primeng 17.18.2 → 17.18.3

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.
@@ -1009,7 +1009,7 @@ class MultiSelect {
1009
1009
  index !== -1 && this.focusedOptionIndex.set(index);
1010
1010
  isFocus && DomHandler.focus(this.focusInputViewChild?.nativeElement);
1011
1011
  this.onChange.emit({
1012
- originalEvent: event,
1012
+ originalEvent: { ...event, selected: !event.selected },
1013
1013
  value: value,
1014
1014
  itemValue: option
1015
1015
  });
@@ -1746,6 +1746,7 @@ class MultiSelect {
1746
1746
  (keydown)="onKeyDown($event)"
1747
1747
  pAutoFocus
1748
1748
  [autofocus]="autofocus"
1749
+ [attr.value]="label() || 'empty'"
1749
1750
  />
1750
1751
  </div>
1751
1752
  <div
@@ -1764,7 +1765,14 @@ class MultiSelect {
1764
1765
  <div #token *ngFor="let item of chipSelectedItems(); let i = index" class="p-multiselect-token">
1765
1766
  <span class="p-multiselect-token-label">{{ getLabelByValue(item) }}</span>
1766
1767
  <ng-container *ngIf="!disabled">
1767
- <TimesCircleIcon *ngIf="!removeTokenIconTemplate" [styleClass]="'p-multiselect-token-icon'" (click)="removeOption(item, event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true" />
1768
+ <TimesCircleIcon
1769
+ *ngIf="!removeTokenIconTemplate"
1770
+ [ngClass]="{ 'p-disabled': isOptionDisabled(item) }"
1771
+ [styleClass]="'p-multiselect-token-icon'"
1772
+ (click)="removeOption(item, event)"
1773
+ [attr.data-pc-section]="'clearicon'"
1774
+ [attr.aria-hidden]="true"
1775
+ />
1768
1776
  <span *ngIf="removeTokenIconTemplate" class="p-multiselect-token-icon" (click)="removeOption(item, event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true">
1769
1777
  <ng-container *ngTemplateOutlet="removeTokenIconTemplate"></ng-container>
1770
1778
  </span>
@@ -2024,6 +2032,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImpor
2024
2032
  (keydown)="onKeyDown($event)"
2025
2033
  pAutoFocus
2026
2034
  [autofocus]="autofocus"
2035
+ [attr.value]="label() || 'empty'"
2027
2036
  />
2028
2037
  </div>
2029
2038
  <div
@@ -2042,7 +2051,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImpor
2042
2051
  <div #token *ngFor="let item of chipSelectedItems(); let i = index" class="p-multiselect-token">
2043
2052
  <span class="p-multiselect-token-label">{{ getLabelByValue(item) }}</span>
2044
2053
  <ng-container *ngIf="!disabled">
2045
- <TimesCircleIcon *ngIf="!removeTokenIconTemplate" [styleClass]="'p-multiselect-token-icon'" (click)="removeOption(item, event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true" />
2054
+ <TimesCircleIcon
2055
+ *ngIf="!removeTokenIconTemplate"
2056
+ [ngClass]="{ 'p-disabled': isOptionDisabled(item) }"
2057
+ [styleClass]="'p-multiselect-token-icon'"
2058
+ (click)="removeOption(item, event)"
2059
+ [attr.data-pc-section]="'clearicon'"
2060
+ [attr.aria-hidden]="true"
2061
+ />
2046
2062
  <span *ngIf="removeTokenIconTemplate" class="p-multiselect-token-icon" (click)="removeOption(item, event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true">
2047
2063
  <ng-container *ngTemplateOutlet="removeTokenIconTemplate"></ng-container>
2048
2064
  </span>