|
|
@ -22,7 +22,7 @@ |
|
|
(selectedIndexChange)="timewindowForm.markAsDirty()" [(selectedIndex)]="timewindow.selectedTab"> |
|
|
(selectedIndexChange)="timewindowForm.markAsDirty()" [(selectedIndex)]="timewindow.selectedTab"> |
|
|
<mat-tab label="{{ 'timewindow.realtime' | translate }}"> |
|
|
<mat-tab label="{{ 'timewindow.realtime' | translate }}"> |
|
|
<section fxLayout="row"> |
|
|
<section fxLayout="row"> |
|
|
<section *ngIf="isEdit" fxLayout="column" style="padding-top: 8px; padding-left: 16px;"> |
|
|
<section *ngIf="isEdit" fxLayout="column" fxLayoutAlign="start center" style="padding-top: 8px; padding-left: 16px;"> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideInterval" |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideInterval" |
|
|
(ngModelChange)="onHideIntervalChanged()"></mat-checkbox> |
|
|
(ngModelChange)="onHideIntervalChanged()"></mat-checkbox> |
|
|
@ -33,7 +33,7 @@ |
|
|
formControlName="realtimeType"> |
|
|
formControlName="realtimeType"> |
|
|
<mat-radio-button [value]="realtimeTypes.LAST_INTERVAL" color="primary"> |
|
|
<mat-radio-button [value]="realtimeTypes.LAST_INTERVAL" color="primary"> |
|
|
<section fxLayout="row"> |
|
|
<section fxLayout="row"> |
|
|
<section *ngIf="isEdit" fxLayout="column" style="padding-right: 8px;"> |
|
|
<section *ngIf="isEdit" fxLayout="column" fxLayoutAlign="start center" style="padding-right: 8px;"> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideLastInterval" |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideLastInterval" |
|
|
(ngModelChange)="onHideLastIntervalChanged()"></mat-checkbox> |
|
|
(ngModelChange)="onHideLastIntervalChanged()"></mat-checkbox> |
|
|
@ -52,7 +52,7 @@ |
|
|
</mat-radio-button> |
|
|
</mat-radio-button> |
|
|
<mat-radio-button [value]="realtimeTypes.INTERVAL" color="primary"> |
|
|
<mat-radio-button [value]="realtimeTypes.INTERVAL" color="primary"> |
|
|
<section fxLayout="row"> |
|
|
<section fxLayout="row"> |
|
|
<section *ngIf="isEdit" fxLayout="column" style="padding-right: 8px;"> |
|
|
<section *ngIf="isEdit" fxLayout="column" fxLayoutAlign="start center" style="padding-right: 8px;"> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideQuickInterval" |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideQuickInterval" |
|
|
(ngModelChange)="onHideQuickIntervalChanged()"></mat-checkbox> |
|
|
(ngModelChange)="onHideQuickIntervalChanged()"></mat-checkbox> |
|
|
@ -86,7 +86,7 @@ |
|
|
</mat-tab> |
|
|
</mat-tab> |
|
|
<mat-tab label="{{ 'timewindow.history' | translate }}"> |
|
|
<mat-tab label="{{ 'timewindow.history' | translate }}"> |
|
|
<section fxLayout="row"> |
|
|
<section fxLayout="row"> |
|
|
<section *ngIf="isEdit" fxLayout="column" style="padding-top: 8px; padding-left: 16px;"> |
|
|
<section *ngIf="isEdit" fxLayout="column" fxLayoutAlign="start center" style="padding-top: 8px; padding-left: 16px;"> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideInterval" |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideInterval" |
|
|
(ngModelChange)="onHideIntervalChanged()"></mat-checkbox> |
|
|
(ngModelChange)="onHideIntervalChanged()"></mat-checkbox> |
|
|
@ -139,7 +139,7 @@ |
|
|
</mat-tab-group> |
|
|
</mat-tab-group> |
|
|
<div *ngIf="aggregation" formGroupName="aggregation" class="mat-content mat-padding" fxLayout="column"> |
|
|
<div *ngIf="aggregation" formGroupName="aggregation" class="mat-content mat-padding" fxLayout="column"> |
|
|
<section fxLayout="row"> |
|
|
<section fxLayout="row"> |
|
|
<section fxLayout="column" [fxShow]="isEdit"> |
|
|
<section fxLayout="column" fxLayoutAlign="start center" [fxShow]="isEdit"> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideAggregation" |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideAggregation" |
|
|
(ngModelChange)="onHideAggregationChanged()"></mat-checkbox> |
|
|
(ngModelChange)="onHideAggregationChanged()"></mat-checkbox> |
|
|
@ -156,7 +156,7 @@ |
|
|
</section> |
|
|
</section> |
|
|
</section> |
|
|
</section> |
|
|
<section fxLayout="row" *ngIf="timewindowForm.get('aggregation.type').value === aggregationTypes.NONE"> |
|
|
<section fxLayout="row" *ngIf="timewindowForm.get('aggregation.type').value === aggregationTypes.NONE"> |
|
|
<section fxLayout="column" [fxShow]="isEdit"> |
|
|
<section fxLayout="column" fxLayoutAlign="start center" [fxShow]="isEdit"> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideAggInterval" |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideAggInterval" |
|
|
(ngModelChange)="onHideAggIntervalChanged()"></mat-checkbox> |
|
|
(ngModelChange)="onHideAggIntervalChanged()"></mat-checkbox> |
|
|
@ -166,10 +166,10 @@ |
|
|
fxLayout.xs="column" fxLayoutAlign.xs="stretch"> |
|
|
fxLayout.xs="column" fxLayoutAlign.xs="stretch"> |
|
|
<label translate>aggregation.limit</label> |
|
|
<label translate>aggregation.limit</label> |
|
|
<div fxLayout="row" fxLayoutAlign="start center" fxFlex> |
|
|
<div fxLayout="row" fxLayoutAlign="start center" fxFlex> |
|
|
<mat-slider fxFlex formControlName="limit" |
|
|
<mat-slider fxFlex |
|
|
thumbLabel |
|
|
discrete |
|
|
min="{{minDatapointsLimit()}}" |
|
|
min="{{minDatapointsLimit()}}" |
|
|
max="{{maxDatapointsLimit()}}"><input matSliderThumb [value]="timewindowForm.get('aggregation.limit').value" /> |
|
|
max="{{maxDatapointsLimit()}}"><input matSliderThumb formControlName="limit" /> |
|
|
</mat-slider> |
|
|
</mat-slider> |
|
|
<mat-form-field class="limit-slider-value"> |
|
|
<mat-form-field class="limit-slider-value"> |
|
|
<input matInput formControlName="limit" type="number" step="1" |
|
|
<input matInput formControlName="limit" type="number" step="1" |
|
|
@ -207,7 +207,7 @@ |
|
|
</tb-timeinterval> |
|
|
</tb-timeinterval> |
|
|
</div> |
|
|
</div> |
|
|
<div *ngIf="timezone" class="mat-content mat-padding" fxLayout="row"> |
|
|
<div *ngIf="timezone" class="mat-content mat-padding" fxLayout="row"> |
|
|
<section fxLayout="column" [fxShow]="isEdit"> |
|
|
<section fxLayout="column" fxLayoutAlign="start center" [fxShow]="isEdit"> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<label class="tb-small hide-label" translate>timewindow.hide</label> |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideTimezone" |
|
|
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="timewindow.hideTimezone" |
|
|
(ngModelChange)="onHideTimezoneChanged()"></mat-checkbox> |
|
|
(ngModelChange)="onHideTimezoneChanged()"></mat-checkbox> |
|
|
|