|
|
|
@ -39,9 +39,16 @@ |
|
|
|
{{ 'widget-config.title' | translate }} |
|
|
|
</mat-slide-toggle> |
|
|
|
<div class="flex flex-1 flex-row items-center justify-start gap-2"> |
|
|
|
<mat-form-field class="flex" appearance="outline" subscriptSizing="dynamic"> |
|
|
|
<input matInput formControlName="title" placeholder="{{ 'widget-config.set' | translate }}"> |
|
|
|
</mat-form-field> |
|
|
|
<tb-string-pattern-autocomplete class="flex-1" |
|
|
|
appearance="outline" |
|
|
|
brackets="curly" |
|
|
|
subscriptSizing="dynamic" |
|
|
|
predefinedValuesButton="true" |
|
|
|
[predefinedValues]="predefinedValues" |
|
|
|
[disabled]="!aggregatedValueCardWidgetConfigForm.get('showTitle').value" |
|
|
|
placeholderText="{{ 'widget-config.set' | translate }}" |
|
|
|
formControlName="title" |
|
|
|
></tb-string-pattern-autocomplete> |
|
|
|
<tb-font-settings formControlName="titleFont" |
|
|
|
clearButton |
|
|
|
[previewText]="aggregatedValueCardWidgetConfigForm.get('title').value" |
|
|
|
@ -78,9 +85,16 @@ |
|
|
|
{{ 'widgets.aggregated-value-card.subtitle' | translate }} |
|
|
|
</mat-slide-toggle> |
|
|
|
<div class="flex flex-1 flex-row items-center justify-start gap-2"> |
|
|
|
<mat-form-field class="flex" appearance="outline" subscriptSizing="dynamic"> |
|
|
|
<input matInput formControlName="subtitle" placeholder="{{ 'widget-config.set' | translate }}"> |
|
|
|
</mat-form-field> |
|
|
|
<tb-string-pattern-autocomplete class="flex-1" |
|
|
|
appearance="outline" |
|
|
|
brackets="curly" |
|
|
|
subscriptSizing="dynamic" |
|
|
|
[predefinedValuesButton]="true" |
|
|
|
[predefinedValues]="predefinedValues" |
|
|
|
[disabled]="!aggregatedValueCardWidgetConfigForm.get('showSubtitle').value" |
|
|
|
placeholderText="{{ 'widget-config.set' | translate }}" |
|
|
|
formControlName="subtitle" |
|
|
|
></tb-string-pattern-autocomplete> |
|
|
|
<tb-font-settings formControlName="subtitleFont" |
|
|
|
clearButton |
|
|
|
[previewText]="aggregatedValueCardWidgetConfigForm.get('subtitle').value"> |
|
|
|
|