@exhaustive-ui/core 22.0.0-alpha.10 → 22.0.0-alpha.11

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.
Files changed (118) hide show
  1. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +5 -5
  2. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-basecomponent.mjs +6 -1
  4. package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +11 -4
  6. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-card.mjs +0 -4
  8. package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +5 -5
  10. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  12. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +11 -9
  13. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  14. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +18 -1
  15. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  16. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +6 -4
  17. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  18. package/fesm2022/exhaustive-ui-core-datepicker.mjs +42 -7
  19. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  20. package/fesm2022/exhaustive-ui-core-dialog.mjs +2 -1
  21. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  22. package/fesm2022/exhaustive-ui-core-drawer.mjs +11 -2
  23. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  24. package/fesm2022/exhaustive-ui-core-fieldset.mjs +2 -2
  25. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  26. package/fesm2022/exhaustive-ui-core-fileupload.mjs +22 -11
  27. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  28. package/fesm2022/exhaustive-ui-core-iconfield.mjs +16 -1
  29. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  30. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +9 -0
  31. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  32. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +54 -21
  33. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  34. package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -5
  35. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  36. package/fesm2022/exhaustive-ui-core-listbox.mjs +4 -2
  37. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  38. package/fesm2022/exhaustive-ui-core-megamenu.mjs +1 -0
  39. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  40. package/fesm2022/exhaustive-ui-core-menu.mjs +2 -2
  41. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  42. package/fesm2022/exhaustive-ui-core-metergroup.mjs +5 -5
  43. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  44. package/fesm2022/exhaustive-ui-core-multiselect.mjs +25 -14
  45. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  46. package/fesm2022/exhaustive-ui-core-orderlist.mjs +9 -2
  47. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  48. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +2 -2
  49. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  50. package/fesm2022/exhaustive-ui-core-paginator.mjs +4 -1
  51. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  52. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +7 -1
  53. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  54. package/fesm2022/exhaustive-ui-core-password.mjs +34 -14
  55. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  56. package/fesm2022/exhaustive-ui-core-picklist.mjs +4 -4
  57. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  58. package/fesm2022/exhaustive-ui-core-popover.mjs +26 -7
  59. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  60. package/fesm2022/exhaustive-ui-core-select.mjs +20 -14
  61. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  62. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +10 -6
  63. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  64. package/fesm2022/exhaustive-ui-core-slider.mjs +7 -3
  65. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  66. package/fesm2022/exhaustive-ui-core-splitter.mjs +5 -0
  67. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  68. package/fesm2022/exhaustive-ui-core-stepper.mjs +3 -0
  69. package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
  70. package/fesm2022/exhaustive-ui-core-table.mjs +97 -65
  71. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  72. package/fesm2022/exhaustive-ui-core-tabs.mjs +37 -7
  73. package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
  74. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +2 -1
  75. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  76. package/fesm2022/exhaustive-ui-core-toast.mjs +12 -1
  77. package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
  78. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +9 -2
  79. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  80. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +0 -2
  81. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  82. package/fesm2022/exhaustive-ui-core-tree.mjs +4 -4
  83. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  84. package/fesm2022/exhaustive-ui-core-treeselect.mjs +15 -3
  85. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  86. package/fesm2022/exhaustive-ui-core-treetable.mjs +4 -0
  87. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  88. package/package.json +5 -5
  89. package/schematics/utils/versions.json +8 -8
  90. package/types/exhaustive-ui-core-api.d.ts +4 -0
  91. package/types/exhaustive-ui-core-basecomponent.d.ts +1 -0
  92. package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
  93. package/types/exhaustive-ui-core-cascadeselect.d.ts +1 -1
  94. package/types/exhaustive-ui-core-chart.d.ts +2 -2
  95. package/types/exhaustive-ui-core-confirmdialog.d.ts +3 -2
  96. package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
  97. package/types/exhaustive-ui-core-datepicker.d.ts +2 -1
  98. package/types/exhaustive-ui-core-drawer.d.ts +1 -0
  99. package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
  100. package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
  101. package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
  102. package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
  103. package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
  104. package/types/exhaustive-ui-core-orderlist.d.ts +6 -1
  105. package/types/exhaustive-ui-core-password.d.ts +7 -1
  106. package/types/exhaustive-ui-core-popover.d.ts +3 -0
  107. package/types/exhaustive-ui-core-select.d.ts +1 -0
  108. package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
  109. package/types/exhaustive-ui-core-splitter.d.ts +1 -0
  110. package/types/exhaustive-ui-core-stepper.d.ts +3 -2
  111. package/types/exhaustive-ui-core-table.d.ts +8 -1
  112. package/types/exhaustive-ui-core-tabs.d.ts +3 -0
  113. package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
  114. package/types/exhaustive-ui-core-treeselect.d.ts +6 -1
  115. package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
  116. package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
  117. package/types/exhaustive-ui-core-types-table.d.ts +1 -1
  118. package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/multiselect';
2
2
  import * as i1 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, forwardRef, inject, input, booleanAttribute, numberAttribute, output, ViewEncapsulation, ChangeDetectionStrategy, Component, viewChild, contentChild, signal, contentChildren, computed, linkedSignal, afterNextRender, afterEveryRender, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, forwardRef, inject, input, booleanAttribute, numberAttribute, output, ViewEncapsulation, ChangeDetectionStrategy, Component, viewChild, contentChild, signal, contentChildren, computed, linkedSignal, afterNextRender, afterEveryRender, effect, untracked, NgModule } from '@angular/core';
6
6
  import { toSignal } from '@angular/core/rxjs-interop';
7
7
  import * as i2 from '@angular/forms';
8
8
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
@@ -18,7 +18,7 @@ import { Chip } from '@exhaustive-ui/core/chip';
18
18
  import { DomHandler, unblockBodyScroll } from '@exhaustive-ui/core/dom';
19
19
  import { Fluid } from '@exhaustive-ui/core/fluid';
20
20
  import { IconField } from '@exhaustive-ui/core/iconfield';
21
- import { CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon } from '@exhaustive-ui/core/icons';
21
+ import { CheckIcon, SearchIcon, SpinnerIcon, TimesIcon, ChevronDownIcon } from '@exhaustive-ui/core/icons';
22
22
  import { InputIcon } from '@exhaustive-ui/core/inputicon';
23
23
  import { InputText } from '@exhaustive-ui/core/inputtext';
24
24
  import { Overlay } from '@exhaustive-ui/core/overlay';
@@ -248,8 +248,8 @@ class MultiSelectItem extends BaseComponent {
248
248
  });
249
249
  }
250
250
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelectItem, deps: null, target: i0.ɵɵFactoryTarget.Component });
251
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MultiSelectItem, isStandalone: true, selector: "li[pMultiSelectItem]", inputs: { option: { classPropertyName: "option", publicName: "option", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, focused: { classPropertyName: "focused", publicName: "focused", isSignal: true, isRequired: false, transformFunction: null }, ariaPosInset: { classPropertyName: "ariaPosInset", publicName: "ariaPosInset", isSignal: true, isRequired: false, transformFunction: null }, ariaSetSize: { classPropertyName: "ariaSetSize", publicName: "ariaSetSize", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, itemCheckboxIconTemplate: { classPropertyName: "itemCheckboxIconTemplate", publicName: "itemCheckboxIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onMouseEnter: "onMouseEnter" }, host: { attributes: { "role": "option" }, listeners: { "click": "onOptionClick($event)", "mouseenter": "onOptionMouseEnter($event)" }, properties: { "style.height.px": "itemSize()", "attr.aria-label": "label()", "attr.aria-setsize": "ariaSetSize()", "attr.aria-posinset": "ariaPosInset()", "attr.aria-selected": "selected()", "attr.data-p-selected": "selected()", "attr.data-p-focused": "focused()", "attr.data-p-highlight": "selected()", "attr.data-p-disabled": "disabled()", "attr.aria-checked": "selected()", "class": "cx('option')" } }, providers: [MultiSelectStyle], usesInheritance: true, ngImport: i0, template: `
252
- <p-checkbox [ngModel]="selected()" [ngModelOptions]="{ standalone: true }" [binary]="true" [tabindex]="-1" [variant]="variant()" [ariaLabel]="label()" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
251
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MultiSelectItem, isStandalone: true, selector: "li[pMultiSelectItem]", inputs: { option: { classPropertyName: "option", publicName: "option", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, focused: { classPropertyName: "focused", publicName: "focused", isSignal: true, isRequired: false, transformFunction: null }, ariaPosInset: { classPropertyName: "ariaPosInset", publicName: "ariaPosInset", isSignal: true, isRequired: false, transformFunction: null }, ariaSetSize: { classPropertyName: "ariaSetSize", publicName: "ariaSetSize", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, itemCheckboxIconTemplate: { classPropertyName: "itemCheckboxIconTemplate", publicName: "itemCheckboxIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onMouseEnter: "onMouseEnter" }, host: { attributes: { "role": "option" }, listeners: { "click": "onOptionClick($event)", "mouseenter": "onOptionMouseEnter($event)" }, properties: { "style.height.px": "itemSize()", "attr.aria-label": "label()", "attr.aria-setsize": "ariaSetSize()", "attr.aria-posinset": "ariaPosInset()", "attr.aria-selected": "selected()", "attr.data-p-selected": "selected()", "attr.data-p-focused": "focused()", "attr.data-p-highlight": "selected()", "attr.data-p-disabled": "disabled()", "attr.aria-disabled": "disabled()", "attr.aria-checked": "selected()", "class": "cx('option')" } }, providers: [MultiSelectStyle], usesInheritance: true, ngImport: i0, template: `
252
+ <p-checkbox [ngModel]="selected()" [ngModelOptions]="{ standalone: true }" [binary]="true" [disabled]="disabled()" [tabindex]="-1" [variant]="variant()" [ariaLabel]="label()" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
253
253
  @if (itemCheckboxIconTemplate()) {
254
254
  <ng-template #icon let-klass="class">
255
255
  <ng-template *ngTemplateOutlet="itemCheckboxIconTemplate(); context: { checked: selected(), class: klass }"></ng-template>
@@ -269,7 +269,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
269
269
  selector: 'li[pMultiSelectItem]',
270
270
  imports: [CommonModule, Checkbox, FormsModule, SharedModule],
271
271
  template: `
272
- <p-checkbox [ngModel]="selected()" [ngModelOptions]="{ standalone: true }" [binary]="true" [tabindex]="-1" [variant]="variant()" [ariaLabel]="label()" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
272
+ <p-checkbox [ngModel]="selected()" [ngModelOptions]="{ standalone: true }" [binary]="true" [disabled]="disabled()" [tabindex]="-1" [variant]="variant()" [ariaLabel]="label()" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
273
273
  @if (itemCheckboxIconTemplate()) {
274
274
  <ng-template #icon let-klass="class">
275
275
  <ng-template *ngTemplateOutlet="itemCheckboxIconTemplate(); context: { checked: selected(), class: klass }"></ng-template>
@@ -294,6 +294,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
294
294
  '[attr.data-p-focused]': 'focused()',
295
295
  '[attr.data-p-highlight]': 'selected()',
296
296
  '[attr.data-p-disabled]': 'disabled()',
297
+ '[attr.aria-disabled]': 'disabled()',
297
298
  '[attr.aria-checked]': 'selected()',
298
299
  '(click)': 'onOptionClick($event)',
299
300
  '(mouseenter)': 'onOptionMouseEnter($event)',
@@ -1065,6 +1066,14 @@ class MultiSelect extends BaseEditableHolder {
1065
1066
  afterEveryRender(() => {
1066
1067
  this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
1067
1068
  });
1069
+ // the list can change size while the overlay is open: position it again once the new content is rendered
1070
+ effect(() => {
1071
+ this._options();
1072
+ this.scrollHeight();
1073
+ if (untracked(() => this._overlayVisible())) {
1074
+ setTimeout(() => this.overlayViewChild()?.alignOverlay());
1075
+ }
1076
+ });
1068
1077
  }
1069
1078
  onInit() {
1070
1079
  this.autoUpdateModel();
@@ -1476,7 +1485,7 @@ class MultiSelect extends BaseEditableHolder {
1476
1485
  onInputBlur(event) {
1477
1486
  this.focused.set(false);
1478
1487
  this.onBlur.emit({ originalEvent: event });
1479
- if (!this.preventModelTouched()) {
1488
+ if (!this.preventModelTouched() && !this._overlayVisible()) {
1480
1489
  this.onModelTouched();
1481
1490
  }
1482
1491
  this.preventModelTouched.set(false);
@@ -1484,7 +1493,7 @@ class MultiSelect extends BaseEditableHolder {
1484
1493
  onFilterInputChange(event) {
1485
1494
  let value = event.target.value;
1486
1495
  this._filterValue.set(value);
1487
- this.focusedOptionIndex.set(-1);
1496
+ this.focusedOptionIndex.set(this.autoOptionFocus() ? this.findFirstOptionIndex() : -1);
1488
1497
  this.onFilter.emit({ originalEvent: event, filter: this._filterValue() });
1489
1498
  !this.virtualScrollerDisabled() && this.scroller()?.scrollToIndex(0);
1490
1499
  setTimeout(() => {
@@ -1603,7 +1612,9 @@ class MultiSelect extends BaseEditableHolder {
1603
1612
  if (this.virtualScroll()) {
1604
1613
  const selectedIndex = this.modelValue() ? this.focusedOptionIndex() : -1;
1605
1614
  if (selectedIndex !== -1) {
1606
- this.scroller()?.scrollToIndex(selectedIndex);
1615
+ setTimeout(() => {
1616
+ this.scroller()?.scrollToIndex(selectedIndex);
1617
+ }, 10);
1607
1618
  }
1608
1619
  }
1609
1620
  else {
@@ -1909,7 +1920,7 @@ class MultiSelect extends BaseEditableHolder {
1909
1920
  <span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
1910
1921
  }
1911
1922
  @if (!loadingIcon()) {
1912
- <span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
1923
+ <svg data-p-icon="spinner" [pBind]="ptm('loadingIcon')" [class]="cx('loadingIcon')" [spin]="true" [attr.aria-hidden]="true" />
1913
1924
  }
1914
1925
  }
1915
1926
  } @else {
@@ -1971,7 +1982,7 @@ class MultiSelect extends BaseEditableHolder {
1971
1982
  [binary]="true"
1972
1983
  (onChange)="onToggleAll($event)"
1973
1984
  [variant]="$variant()"
1974
- [disabled]="$disabled()"
1985
+ [disabled]="$disabled() || isEmpty()"
1975
1986
  [unstyled]="unstyled()"
1976
1987
  #headerCheckbox
1977
1988
  >
@@ -2138,13 +2149,13 @@ class MultiSelect extends BaseEditableHolder {
2138
2149
  </div>
2139
2150
  </ng-template>
2140
2151
  </p-overlay>
2141
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MultiSelectItem, selector: "li[pMultiSelectItem]", inputs: ["option", "selected", "label", "disabled", "itemSize", "focused", "ariaPosInset", "ariaSetSize", "variant", "template", "itemCheckboxIconTemplate", "highlightOnSelect"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i3.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2152
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MultiSelectItem, selector: "li[pMultiSelectItem]", inputs: ["option", "selected", "label", "disabled", "itemSize", "focused", "ariaPosInset", "ariaSetSize", "variant", "template", "itemCheckboxIconTemplate", "highlightOnSelect"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i3.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2142
2153
  }
2143
2154
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelect, decorators: [{
2144
2155
  type: Component,
2145
2156
  args: [{
2146
2157
  selector: 'p-multiSelect, p-multiselect, p-multi-select',
2147
- imports: [CommonModule, MultiSelectItem, Overlay, SharedModule, Tooltip, Scroller, AutoFocus, CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon, IconField, InputIcon, InputText, Chip, Checkbox, FormsModule, BindModule],
2158
+ imports: [CommonModule, MultiSelectItem, Overlay, SharedModule, Tooltip, Scroller, AutoFocus, CheckIcon, SearchIcon, SpinnerIcon, TimesIcon, ChevronDownIcon, IconField, InputIcon, InputText, Chip, Checkbox, FormsModule, BindModule],
2148
2159
  hostDirectives: [Bind],
2149
2160
  template: `
2150
2161
  <div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true" [pBind]="ptm('hiddenInputContainer')">
@@ -2257,7 +2268,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2257
2268
  <span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
2258
2269
  }
2259
2270
  @if (!loadingIcon()) {
2260
- <span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
2271
+ <svg data-p-icon="spinner" [pBind]="ptm('loadingIcon')" [class]="cx('loadingIcon')" [spin]="true" [attr.aria-hidden]="true" />
2261
2272
  }
2262
2273
  }
2263
2274
  } @else {
@@ -2319,7 +2330,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2319
2330
  [binary]="true"
2320
2331
  (onChange)="onToggleAll($event)"
2321
2332
  [variant]="$variant()"
2322
- [disabled]="$disabled()"
2333
+ [disabled]="$disabled() || isEmpty()"
2323
2334
  [unstyled]="unstyled()"
2324
2335
  #headerCheckbox
2325
2336
  >