Browse Source
Merge pull request #4872 from vvlladd28/imrpovement/material-chip/add-on-blur
UI: Improvement added chip after blur input
pull/4901/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with
8 additions and
4 deletions
-
ui-ngx/src/app/modules/home/components/profile/alarm/device-profile-alarm.component.html
-
ui-ngx/src/app/modules/home/components/widget/data-keys.component.html
-
ui-ngx/src/app/modules/home/components/widget/lib/alarm-filter-panel.component.html
-
ui-ngx/src/app/modules/home/components/widget/widget-config.component.html
-
ui-ngx/src/app/modules/home/pages/rulechain/link-labels.component.html
-
ui-ngx/src/app/shared/components/entity/entity-keys-list.component.html
-
ui-ngx/src/app/shared/components/entity/entity-subtype-list.component.html
|
|
|
@ -73,8 +73,8 @@ |
|
|
|
style="max-width: 200px;" |
|
|
|
[matChipInputFor]="relationTypesChipList" |
|
|
|
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
|
|
|
(matChipInputTokenEnd)="addRelationType($event)" |
|
|
|
[matChipInputAddOnBlur]="true"> |
|
|
|
matChipInputAddOnBlur |
|
|
|
(matChipInputTokenEnd)="addRelationType($event)"> |
|
|
|
</mat-chip-list> |
|
|
|
<mat-hint innerHTML="{{ 'device-profile.alarm-rule-relation-types-list-hint' | translate }}"></mat-hint> |
|
|
|
</mat-form-field> |
|
|
|
|
|
|
|
@ -86,6 +86,7 @@ |
|
|
|
[matAutocompleteDisabled]="isEntityCountDatasource" |
|
|
|
[matChipInputFor]="chipList" |
|
|
|
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
|
|
|
matChipInputAddOnBlur |
|
|
|
(matChipInputTokenEnd)="add($event)"> |
|
|
|
</mat-chip-list> |
|
|
|
<mat-autocomplete #keyAutocomplete="matAutocomplete" |
|
|
|
|
|
|
|
@ -45,7 +45,7 @@ |
|
|
|
<input placeholder="{{ !alarmFilterFormGroup.get('alarmTypeList').value?.length ? ('alarm.any-type' | translate) : '' }}" |
|
|
|
[matChipInputFor]="alarmTypeChipList" |
|
|
|
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
|
|
|
[matChipInputAddOnBlur]="true" |
|
|
|
matChipInputAddOnBlur |
|
|
|
(matChipInputTokenEnd)="addAlarmType($event)"> |
|
|
|
</mat-chip-list> |
|
|
|
</mat-form-field> |
|
|
|
|
|
|
|
@ -73,7 +73,7 @@ |
|
|
|
<input placeholder="{{ !dataSettings.get('alarmTypeList').value?.length ? ('alarm.any-type' | translate) : '' }}" |
|
|
|
[matChipInputFor]="alarmTypeChipList" |
|
|
|
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
|
|
|
[matChipInputAddOnBlur]="true" |
|
|
|
matChipInputAddOnBlur |
|
|
|
(matChipInputTokenEnd)="addAlarmType($event)"> |
|
|
|
</mat-chip-list> |
|
|
|
</mat-form-field> |
|
|
|
|
|
|
|
@ -37,6 +37,7 @@ |
|
|
|
[matAutocomplete]="labelAutocomplete" |
|
|
|
[matChipInputFor]="chipList" |
|
|
|
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
|
|
|
matChipInputAddOnBlur |
|
|
|
(matChipInputTokenEnd)="add($event)"> |
|
|
|
</mat-chip-list> |
|
|
|
<mat-autocomplete #labelAutocomplete="matAutocomplete" |
|
|
|
|
|
|
|
@ -36,6 +36,7 @@ |
|
|
|
[matAutocomplete]="keyAutocomplete" |
|
|
|
[matChipInputFor]="chipList" |
|
|
|
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
|
|
|
matChipInputAddOnBlur |
|
|
|
(matChipInputTokenEnd)="add($event)"> |
|
|
|
</mat-chip-list> |
|
|
|
<mat-autocomplete #keyAutocomplete="matAutocomplete" |
|
|
|
|
|
|
|
@ -36,6 +36,7 @@ |
|
|
|
[matAutocomplete]="entitySubtypeAutocomplete" |
|
|
|
[matChipInputFor]="chipList" |
|
|
|
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
|
|
|
matChipInputAddOnBlur |
|
|
|
(matChipInputTokenEnd)="chipAdd($event)"> |
|
|
|
</mat-chip-list> |
|
|
|
<mat-autocomplete #entitySubtypeAutocomplete="matAutocomplete" |
|
|
|
|