@kris701/ez-ui 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2957,7 +2957,9 @@ class EzUIMultiSelect {
2957
2957
  disabled = false;
2958
2958
  selected = undefined;
2959
2959
  selectedChange = new EventEmitter();
2960
- appearanceMap = {};
2960
+ appearanceMap = {
2961
+ "b": "negative"
2962
+ };
2961
2963
  ngOnChanges(changes) {
2962
2964
  if (changes['selected'] && changes['selected'].currentValue != changes['selected'].previousValue) {
2963
2965
  this.selected = changes['selected'].currentValue;
@@ -2987,13 +2989,13 @@ class EzUIMultiSelect {
2987
2989
  <input tuiInputChip tuiSelectLike [(ngModel)]="selected" (ngModelChange)="selectedChange.emit(this.selected)" [disabled]="disabled"/>
2988
2990
  <tui-input-chip
2989
2991
  *tuiItem="let context"
2990
- [appearance]="appearanceMap[getOptionValue(context.item)] ? appearanceMap[getOptionValue(context.item)] : 'neutral'"/>
2992
+ [appearance]="appearanceMap[context.item] ? appearanceMap[context.item] : 'neutral'"/>
2991
2993
  <tui-data-list *tuiDropdown tuiMultiSelectGroup >
2992
2994
  @for (item of options; track getOptionValue(item)) {
2993
2995
  @let value = getOptionValue(item);
2994
2996
  @let label = getOptionLabel(item);
2995
2997
  <button tuiOption [value]="value" >
2996
- <span tuiChip size="xs" [appearance]="appearanceMap[value]">{{label}}</span>
2998
+ <span tuiChip size="xs" [appearance]="appearanceMap[value] ? appearanceMap[value] : 'neutral'">{{label}}</span>
2997
2999
  </button>
2998
3000
  }
2999
3001
  </tui-data-list>
@@ -3023,13 +3025,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
3023
3025
  <input tuiInputChip tuiSelectLike [(ngModel)]="selected" (ngModelChange)="selectedChange.emit(this.selected)" [disabled]="disabled"/>
3024
3026
  <tui-input-chip
3025
3027
  *tuiItem="let context"
3026
- [appearance]="appearanceMap[getOptionValue(context.item)] ? appearanceMap[getOptionValue(context.item)] : 'neutral'"/>
3028
+ [appearance]="appearanceMap[context.item] ? appearanceMap[context.item] : 'neutral'"/>
3027
3029
  <tui-data-list *tuiDropdown tuiMultiSelectGroup >
3028
3030
  @for (item of options; track getOptionValue(item)) {
3029
3031
  @let value = getOptionValue(item);
3030
3032
  @let label = getOptionLabel(item);
3031
3033
  <button tuiOption [value]="value" >
3032
- <span tuiChip size="xs" [appearance]="appearanceMap[value]">{{label}}</span>
3034
+ <span tuiChip size="xs" [appearance]="appearanceMap[value] ? appearanceMap[value] : 'neutral'">{{label}}</span>
3033
3035
  </button>
3034
3036
  }
3035
3037
  </tui-data-list>