1 |
370c3423
|
hlavja
|
<app-nav-bar></app-nav-bar>
|
2 |
|
|
|
3 |
c5edcbf5
|
lmoucka@students.zcu.cz
|
<div class="container graph">
|
4 |
91e53981
|
lmoucka@students.zcu.cz
|
<div class="row graph-information">
|
5 |
|
|
<div class="graph-desc">
|
6 |
|
|
<div>
|
7 |
|
|
<span class="graph-attr-heading">Unit description: </span>
|
8 |
|
|
{{unitDescription}}
|
9 |
|
|
</div>
|
10 |
c5edcbf5
|
lmoucka@students.zcu.cz
|
</div>
|
11 |
91e53981
|
lmoucka@students.zcu.cz
|
<div class="graph-range-dates">
|
12 |
|
|
<div class="col-xs-12">
|
13 |
|
|
<div class="input-group form-group">
|
14 |
|
|
<div class="input-group-prepend">
|
15 |
|
|
<span class="input-group-text text-color-date background-date-color"><i class="fa fa-calendar-alt" aria-hidden="false"></i></span>
|
16 |
|
|
</div>
|
17 |
|
|
<p-calendar id="from" [style]="{'width':'100%'}" [inputStyle]="{'width':'100%'}" [(ngModel)]="from" [showTime]="true" (onSelect)="aggregationShow()" [maxDate]="today" showButtonBar="true"></p-calendar>
|
18 |
2b0d2514
|
hlavja
|
</div>
|
19 |
|
|
</div>
|
20 |
91e53981
|
lmoucka@students.zcu.cz
|
<div class="graph-range-dates-separator"></div>
|
21 |
|
|
<div class="col-xs-12">
|
22 |
|
|
<div class="input-group form-group">
|
23 |
|
|
<div class="input-group-prepend">
|
24 |
|
|
<span class="input-group-text text-color-date background-date-color"><i class="fa fa-calendar-alt" aria-hidden="false"></i></span>
|
25 |
|
|
</div>
|
26 |
|
|
<p-calendar id="to" [style]="{'width':'100%'}" [inputStyle]="{'width':'100%'}" [(ngModel)]="to" [showTime]="true" (onSelect)="aggregationShow()" [maxDate]="today" showButtonBar="true"></p-calendar>
|
27 |
2b0d2514
|
hlavja
|
</div>
|
28 |
|
|
</div>
|
29 |
91e53981
|
lmoucka@students.zcu.cz
|
<div class="">
|
30 |
cbb91c90
|
hlavja
|
<div class="input-group form-group">
|
31 |
91e53981
|
lmoucka@students.zcu.cz
|
<div class="input-group form-group">
|
32 |
|
|
<p-listbox *ngIf="showAggregation" [options]="aggregationFunction" [(ngModel)]="selectedAggregationFunction" optionLabel="name" optionValue="code"></p-listbox>
|
33 |
|
|
</div>
|
34 |
2b0d2514
|
hlavja
|
</div>
|
35 |
|
|
</div>
|
36 |
91e53981
|
lmoucka@students.zcu.cz
|
<div>
|
37 |
|
|
<button pButton type="button" *ngIf="dateChanged" label="Load data" class="p-button-primary" icon="pi pi-check" (click)="showGraph()"></button>
|
38 |
|
|
</div>
|
39 |
cbb91c90
|
hlavja
|
</div>
|
40 |
cd2a65f3
|
hlavja
|
</div>
|
41 |
2b0d2514
|
hlavja
|
<ng-container *ngFor="let group of sensorGroups">
|
42 |
|
|
<div class="row">
|
43 |
c5edcbf5
|
lmoucka@students.zcu.cz
|
<div class="graph-group-heading">
|
44 |
|
|
Group of
|
45 |
|
|
<ng-container *ngFor="let sensorType of sensorTypes">
|
46 |
|
|
<ng-container *ngIf="sensorType.sensorId.toString().slice(0, 5) === group">
|
47 |
|
|
{{sensorType.sensorType}}
|
48 |
|
|
</ng-container>
|
49 |
|
|
</ng-container>
|
50 |
|
|
sensors:
|
51 |
|
|
</div>
|
52 |
2b0d2514
|
hlavja
|
<ng-container *ngFor="let sensor of sensors">
|
53 |
b937b726
|
hlavja
|
<div *ngIf="sensor.sensorId.toString().slice(0, 5) === group" class="p-field-checkbox">
|
54 |
25e66baf
|
hlavja
|
<p-checkbox [id]="sensor.sensorId" name="{{group}}" [value]="sensor.sensorId.toString()" [(ngModel)]="selectedSensors" [inputId]="sensor.sensorId.toString()" (onChange)="addSensorToGraph(sensor.sensorId.toString(), $event)"></p-checkbox>
|
55 |
05d4a2a9
|
hlavja
|
<label>{{sensor.sensorName}}</label>
|
56 |
2b0d2514
|
hlavja
|
</div>
|
57 |
|
|
</ng-container>
|
58 |
|
|
</div>
|
59 |
|
|
<div id="vega_container_{{group}}"></div>
|
60 |
cd2a65f3
|
hlavja
|
</ng-container>
|
61 |
2b0d2514
|
hlavja
|
</div>
|