Commit 9c81968843774bed7ff2a8bca076ab7005060f6d

Authored by Igor Kulikov
Committed by GitHub
2 parents ccb04f34 806d4621

Merge pull request #4872 from vvlladd28/imrpovement/material-chip/add-on-blur

UI: Improvement added chip after blur input
@@ -73,8 +73,8 @@ @@ -73,8 +73,8 @@
73 style="max-width: 200px;" 73 style="max-width: 200px;"
74 [matChipInputFor]="relationTypesChipList" 74 [matChipInputFor]="relationTypesChipList"
75 [matChipInputSeparatorKeyCodes]="separatorKeysCodes" 75 [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
76 - (matChipInputTokenEnd)="addRelationType($event)"  
77 - [matChipInputAddOnBlur]="true"> 76 + matChipInputAddOnBlur
  77 + (matChipInputTokenEnd)="addRelationType($event)">
78 </mat-chip-list> 78 </mat-chip-list>
79 <mat-hint innerHTML="{{ 'device-profile.alarm-rule-relation-types-list-hint' | translate }}"></mat-hint> 79 <mat-hint innerHTML="{{ 'device-profile.alarm-rule-relation-types-list-hint' | translate }}"></mat-hint>
80 </mat-form-field> 80 </mat-form-field>
@@ -86,6 +86,7 @@ @@ -86,6 +86,7 @@
86 [matAutocompleteDisabled]="isEntityCountDatasource" 86 [matAutocompleteDisabled]="isEntityCountDatasource"
87 [matChipInputFor]="chipList" 87 [matChipInputFor]="chipList"
88 [matChipInputSeparatorKeyCodes]="separatorKeysCodes" 88 [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
  89 + matChipInputAddOnBlur
89 (matChipInputTokenEnd)="add($event)"> 90 (matChipInputTokenEnd)="add($event)">
90 </mat-chip-list> 91 </mat-chip-list>
91 <mat-autocomplete #keyAutocomplete="matAutocomplete" 92 <mat-autocomplete #keyAutocomplete="matAutocomplete"
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 <input placeholder="{{ !alarmFilterFormGroup.get('alarmTypeList').value?.length ? ('alarm.any-type' | translate) : '' }}" 45 <input placeholder="{{ !alarmFilterFormGroup.get('alarmTypeList').value?.length ? ('alarm.any-type' | translate) : '' }}"
46 [matChipInputFor]="alarmTypeChipList" 46 [matChipInputFor]="alarmTypeChipList"
47 [matChipInputSeparatorKeyCodes]="separatorKeysCodes" 47 [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
48 - [matChipInputAddOnBlur]="true" 48 + matChipInputAddOnBlur
49 (matChipInputTokenEnd)="addAlarmType($event)"> 49 (matChipInputTokenEnd)="addAlarmType($event)">
50 </mat-chip-list> 50 </mat-chip-list>
51 </mat-form-field> 51 </mat-form-field>
@@ -73,7 +73,7 @@ @@ -73,7 +73,7 @@
73 <input placeholder="{{ !dataSettings.get('alarmTypeList').value?.length ? ('alarm.any-type' | translate) : '' }}" 73 <input placeholder="{{ !dataSettings.get('alarmTypeList').value?.length ? ('alarm.any-type' | translate) : '' }}"
74 [matChipInputFor]="alarmTypeChipList" 74 [matChipInputFor]="alarmTypeChipList"
75 [matChipInputSeparatorKeyCodes]="separatorKeysCodes" 75 [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
76 - [matChipInputAddOnBlur]="true" 76 + matChipInputAddOnBlur
77 (matChipInputTokenEnd)="addAlarmType($event)"> 77 (matChipInputTokenEnd)="addAlarmType($event)">
78 </mat-chip-list> 78 </mat-chip-list>
79 </mat-form-field> 79 </mat-form-field>
@@ -37,6 +37,7 @@ @@ -37,6 +37,7 @@
37 [matAutocomplete]="labelAutocomplete" 37 [matAutocomplete]="labelAutocomplete"
38 [matChipInputFor]="chipList" 38 [matChipInputFor]="chipList"
39 [matChipInputSeparatorKeyCodes]="separatorKeysCodes" 39 [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
  40 + matChipInputAddOnBlur
40 (matChipInputTokenEnd)="add($event)"> 41 (matChipInputTokenEnd)="add($event)">
41 </mat-chip-list> 42 </mat-chip-list>
42 <mat-autocomplete #labelAutocomplete="matAutocomplete" 43 <mat-autocomplete #labelAutocomplete="matAutocomplete"
@@ -36,6 +36,7 @@ @@ -36,6 +36,7 @@
36 [matAutocomplete]="keyAutocomplete" 36 [matAutocomplete]="keyAutocomplete"
37 [matChipInputFor]="chipList" 37 [matChipInputFor]="chipList"
38 [matChipInputSeparatorKeyCodes]="separatorKeysCodes" 38 [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
  39 + matChipInputAddOnBlur
39 (matChipInputTokenEnd)="add($event)"> 40 (matChipInputTokenEnd)="add($event)">
40 </mat-chip-list> 41 </mat-chip-list>
41 <mat-autocomplete #keyAutocomplete="matAutocomplete" 42 <mat-autocomplete #keyAutocomplete="matAutocomplete"
@@ -36,6 +36,7 @@ @@ -36,6 +36,7 @@
36 [matAutocomplete]="entitySubtypeAutocomplete" 36 [matAutocomplete]="entitySubtypeAutocomplete"
37 [matChipInputFor]="chipList" 37 [matChipInputFor]="chipList"
38 [matChipInputSeparatorKeyCodes]="separatorKeysCodes" 38 [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
  39 + matChipInputAddOnBlur
39 (matChipInputTokenEnd)="chipAdd($event)"> 40 (matChipInputTokenEnd)="chipAdd($event)">
40 </mat-chip-list> 41 </mat-chip-list>
41 <mat-autocomplete #entitySubtypeAutocomplete="matAutocomplete" 42 <mat-autocomplete #entitySubtypeAutocomplete="matAutocomplete"