|
|
@ -41,17 +41,9 @@ |
|
|
|
|
|
|
|
|
<div class="tb-form-row space-between column-xs"> |
|
|
<div class="tb-form-row space-between column-xs"> |
|
|
<mat-slide-toggle class="mat-slide fixed-title-width" formControlName="showMinMax"> |
|
|
<mat-slide-toggle class="mat-slide fixed-title-width" formControlName="showMinMax"> |
|
|
{{ 'widgets.gauge.min-and-max-value' | translate }} |
|
|
{{ 'widgets.gauge.min-and-max-label' | translate }} |
|
|
</mat-slide-toggle> |
|
|
</mat-slide-toggle> |
|
|
<div fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="8px"> |
|
|
<div fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="8px"> |
|
|
<div class="tb-small-label" translate>widgets.gauge.min-value-short</div> |
|
|
|
|
|
<mat-form-field appearance="outline" class="number" subscriptSizing="dynamic"> |
|
|
|
|
|
<input matInput formControlName="minValue" type="number" step="1" placeholder="{{ 'widget-config.set' | translate }}"> |
|
|
|
|
|
</mat-form-field> |
|
|
|
|
|
<div class="tb-small-label" translate>widgets.gauge.max-value-short</div> |
|
|
|
|
|
<mat-form-field appearance="outline" class="number" subscriptSizing="dynamic"> |
|
|
|
|
|
<input matInput formControlName="maxValue" type="number" step="1" placeholder="{{ 'widget-config.set' | translate }}"> |
|
|
|
|
|
</mat-form-field> |
|
|
|
|
|
<tb-font-settings formControlName="minMaxFont" |
|
|
<tb-font-settings formControlName="minMaxFont" |
|
|
disabledLineHeight |
|
|
disabledLineHeight |
|
|
[previewText]="previewFn"> |
|
|
[previewText]="previewFn"> |
|
|
@ -63,6 +55,20 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="tb-form-row space-between column-xs"> |
|
|
|
|
|
<div class="fixed-title-width">{{ 'widgets.gauge.min-and-max-value' | translate }}</div> |
|
|
|
|
|
<div fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="8px"> |
|
|
|
|
|
<div class="tb-small-label" translate>widgets.gauge.min-value-short</div> |
|
|
|
|
|
<mat-form-field appearance="outline" class="number" subscriptSizing="dynamic"> |
|
|
|
|
|
<input matInput formControlName="minValue" type="number" step="1" placeholder="{{ 'widget-config.set' | translate }}"> |
|
|
|
|
|
</mat-form-field> |
|
|
|
|
|
<div class="tb-small-label" translate>widgets.gauge.max-value-short</div> |
|
|
|
|
|
<mat-form-field appearance="outline" class="number" subscriptSizing="dynamic"> |
|
|
|
|
|
<input matInput formControlName="maxValue" type="number" step="1" placeholder="{{ 'widget-config.set' | translate }}"> |
|
|
|
|
|
</mat-form-field> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="tb-form-row space-between column-xs"> |
|
|
<div class="tb-form-row space-between column-xs"> |
|
|
<mat-slide-toggle class="mat-slide fixed-title-width" formControlName="showValue"> |
|
|
<mat-slide-toggle class="mat-slide fixed-title-width" formControlName="showValue"> |
|
|
{{ 'widgets.gauge.value' | translate }} |
|
|
{{ 'widgets.gauge.value' | translate }} |
|
|
@ -160,14 +166,6 @@ |
|
|
</mat-slide-toggle> |
|
|
</mat-slide-toggle> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="tb-form-row space-between"> |
|
|
|
|
|
<div class="fixed-title-width">{{ 'widgets.gauge.default-color' | translate }}</div> |
|
|
|
|
|
<tb-color-input asBoxInput |
|
|
|
|
|
colorClearButton |
|
|
|
|
|
formControlName="defaultColor"> |
|
|
|
|
|
</tb-color-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="tb-form-row space-between"> |
|
|
<div class="tb-form-row space-between"> |
|
|
<div class="fixed-title-width">{{ 'widgets.gauge.gauge-bar-background' | translate }}</div> |
|
|
<div class="fixed-title-width">{{ 'widgets.gauge.gauge-bar-background' | translate }}</div> |
|
|
<tb-color-input asBoxInput |
|
|
<tb-color-input asBoxInput |
|
|
@ -180,6 +178,7 @@ |
|
|
<div class="fixed-title-width">{{ 'widgets.gauge.bar-color' | translate }}</div> |
|
|
<div class="fixed-title-width">{{ 'widgets.gauge.bar-color' | translate }}</div> |
|
|
<tb-color-settings formControlName="barColor" |
|
|
<tb-color-settings formControlName="barColor" |
|
|
rangeAdvancedMode |
|
|
rangeAdvancedMode |
|
|
|
|
|
gradientAdvancedMode |
|
|
[minValue]="digitalGaugeWidgetSettingsForm.get('minValue').value" |
|
|
[minValue]="digitalGaugeWidgetSettingsForm.get('minValue').value" |
|
|
[maxValue]="digitalGaugeWidgetSettingsForm.get('maxValue').value" |
|
|
[maxValue]="digitalGaugeWidgetSettingsForm.get('maxValue').value" |
|
|
[aliasController]="aliasController" |
|
|
[aliasController]="aliasController" |
|
|
@ -222,13 +221,23 @@ |
|
|
<div class="tb-control-list tb-drop-list" cdkDropList cdkDropListOrientation="vertical" |
|
|
<div class="tb-control-list tb-drop-list" cdkDropList cdkDropListOrientation="vertical" |
|
|
(cdkDropListDropped)="tickValueDrop($event)"> |
|
|
(cdkDropListDropped)="tickValueDrop($event)"> |
|
|
<div cdkDrag class="tb-draggable" *ngFor="let tickValueControl of tickValuesFormArray().controls; trackBy: trackByTickValue; |
|
|
<div cdkDrag class="tb-draggable" *ngFor="let tickValueControl of tickValuesFormArray().controls; trackBy: trackByTickValue; |
|
|
let $index = index; last as isLast;" fxLayout="column" [ngStyle]="!isLast ? {paddingBottom: '8px'} : {}"> |
|
|
let $index = index; last as isLast;" fxLayout="row" [ngStyle]="!isLast ? {paddingBottom: '8px'} : {}"> |
|
|
<tb-tick-value [formControl]="tickValueControl" |
|
|
<tb-tick-value fxFlex |
|
|
|
|
|
[formControl]="tickValueControl" |
|
|
[aliasController]="aliasController" |
|
|
[aliasController]="aliasController" |
|
|
[dataKeyCallbacks]="dataKeyCallbacks" |
|
|
[dataKeyCallbacks]="dataKeyCallbacks" |
|
|
[datasource]="datasource" |
|
|
[datasource]="datasource" |
|
|
(removeTickValue)="removeTickValue($index)"> |
|
|
(removeTickValue)="removeTickValue($index)"> |
|
|
</tb-tick-value> |
|
|
</tb-tick-value> |
|
|
|
|
|
<button class="tb-box-button" |
|
|
|
|
|
fxHide.lt-lg |
|
|
|
|
|
mat-icon-button |
|
|
|
|
|
type="button" |
|
|
|
|
|
cdkDragHandle |
|
|
|
|
|
matTooltip="{{ 'action.drag' | translate }}" |
|
|
|
|
|
matTooltipPosition="above"> |
|
|
|
|
|
<mat-icon>drag_indicator</mat-icon> |
|
|
|
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div *ngIf="!tickValuesFormArray().controls.length"> |
|
|
<div *ngIf="!tickValuesFormArray().controls.length"> |
|
|
|