Merge pull request #3805 from vvlladd28/improvement/mac/filter
UI: Fixed show in Safari browser dashboard filter
This commit is contained in:
commit
8519f0a9f1
@ -27,10 +27,10 @@
|
|||||||
</mat-toolbar>
|
</mat-toolbar>
|
||||||
<div mat-dialog-content>
|
<div mat-dialog-content>
|
||||||
<fieldset [disabled]="isLoading$ | async" fxLayout="column">
|
<fieldset [disabled]="isLoading$ | async" fxLayout="column">
|
||||||
<mat-checkbox fxFlex formControlName="editable" style="margin-bottom: 16px;">
|
<mat-checkbox formControlName="editable" style="margin-bottom: 16px;">
|
||||||
{{ 'filter.editable' | translate }}
|
{{ 'filter.editable' | translate }}
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
<div fxFlex fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="8px">
|
<div fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="8px">
|
||||||
<mat-form-field fxFlex class="mat-block">
|
<mat-form-field fxFlex class="mat-block">
|
||||||
<mat-label translate>filter.display-label</mat-label>
|
<mat-label translate>filter.display-label</mat-label>
|
||||||
<input matInput formControlName="label">
|
<input matInput formControlName="label">
|
||||||
@ -39,7 +39,7 @@
|
|||||||
{{ 'filter.autogenerated-label' | translate }}
|
{{ 'filter.autogenerated-label' | translate }}
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<mat-form-field fxFlex class="mat-block">
|
<mat-form-field class="mat-block">
|
||||||
<mat-label translate>filter.order-priority</mat-label>
|
<mat-label translate>filter.order-priority</mat-label>
|
||||||
<input matInput type="number" formControlName="order">
|
<input matInput type="number" formControlName="order">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|||||||
@ -16,8 +16,8 @@
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
<div fxLayout="column" class="mat-content mat-padding">
|
<div fxLayout="column" class="mat-content mat-padding">
|
||||||
<div fxLayout="column" *ngFor="let filter of filtersInfo | keyvalue; let last = last">
|
<div *ngFor="let filter of filtersInfo | keyvalue; let last = last">
|
||||||
<div fxFlex fxLayout="row" fxLayoutAlign="start center">
|
<div fxLayout="row" fxLayoutAlign="start center">
|
||||||
<mat-label fxFlex>{{filter.value.filter}}</mat-label>
|
<mat-label fxFlex>{{filter.value.filter}}</mat-label>
|
||||||
<button mat-icon-button color="primary"
|
<button mat-icon-button color="primary"
|
||||||
style="min-width: 40px;"
|
style="min-width: 40px;"
|
||||||
|
|||||||
@ -29,39 +29,35 @@
|
|||||||
</mat-progress-bar>
|
</mat-progress-bar>
|
||||||
<div mat-dialog-content>
|
<div mat-dialog-content>
|
||||||
<fieldset [disabled]="isLoading$ | async">
|
<fieldset [disabled]="isLoading$ | async">
|
||||||
<div fxFlex fxLayout="column">
|
<div formArrayName="userInputs"
|
||||||
<div fxFlex fxLayout="row" fxLayoutAlign="start center"
|
|
||||||
formArrayName="userInputs"
|
|
||||||
*ngFor="let userInputControl of userInputsFormArray().controls; let $index = index">
|
*ngFor="let userInputControl of userInputsFormArray().controls; let $index = index">
|
||||||
<div fxFlex fxLayout="column"
|
<div [ngSwitch]="userInputControl.get('valueType').value">
|
||||||
[ngSwitch]="userInputControl.get('valueType').value">
|
|
||||||
<ng-template [ngSwitchCase]="valueTypeEnum.STRING">
|
<ng-template [ngSwitchCase]="valueTypeEnum.STRING">
|
||||||
<mat-form-field fxFlex class="mat-block">
|
<mat-form-field class="mat-block">
|
||||||
<mat-label>{{ userInputControl.get('label').value }}</mat-label>
|
<mat-label>{{ userInputControl.get('label').value }}</mat-label>
|
||||||
<input matInput [formControl]="userInputControl.get('value')">
|
<input matInput [formControl]="userInputControl.get('value')">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template [ngSwitchCase]="valueTypeEnum.NUMERIC">
|
<ng-template [ngSwitchCase]="valueTypeEnum.NUMERIC">
|
||||||
<mat-form-field fxFlex class="mat-block">
|
<mat-form-field class="mat-block">
|
||||||
<mat-label>{{ userInputControl.get('label').value }}</mat-label>
|
<mat-label>{{ userInputControl.get('label').value }}</mat-label>
|
||||||
<input required type="number" matInput [formControl]="userInputControl.get('value')">
|
<input required type="number" matInput [formControl]="userInputControl.get('value')">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template [ngSwitchCase]="valueTypeEnum.DATE_TIME">
|
<ng-template [ngSwitchCase]="valueTypeEnum.DATE_TIME">
|
||||||
<label class="tb-title no-padding tb-required">{{ userInputControl.get('label').value }}</label>
|
<label class="tb-title no-padding tb-required">{{ userInputControl.get('label').value }}</label>
|
||||||
<tb-datetime fxFlex [formControl]="userInputControl.get('value')"
|
<tb-datetime [formControl]="userInputControl.get('value')"
|
||||||
dateText="filter.date"
|
dateText="filter.date"
|
||||||
timeText="filter.time"
|
timeText="filter.time"
|
||||||
required [showLabel]="false"></tb-datetime>
|
required [showLabel]="false"></tb-datetime>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template [ngSwitchCase]="valueTypeEnum.BOOLEAN">
|
<ng-template [ngSwitchCase]="valueTypeEnum.BOOLEAN">
|
||||||
<mat-checkbox labelPosition="before" fxFlex [formControl]="userInputControl.get('value')">
|
<mat-checkbox labelPosition="before" [formControl]="userInputControl.get('value')">
|
||||||
{{ userInputControl.get('label').value }}
|
{{ userInputControl.get('label').value }}
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<div mat-dialog-actions fxLayoutAlign="end center">
|
<div mat-dialog-actions fxLayoutAlign="end center">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user