@exhaustive-ui/core 3.0.0-alpha.1 → 22.0.0-alpha.0

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 (153) hide show
  1. package/fesm2022/exhaustive-ui-core-api.mjs +4 -4
  2. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +432 -376
  4. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-carousel.mjs +240 -206
  6. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +79 -71
  8. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +109 -97
  10. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +301 -323
  12. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-datepicker.mjs +943 -793
  14. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-dialog.mjs +167 -127
  16. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-fileupload.mjs +485 -401
  18. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
  20. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
  22. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
  24. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
  26. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
  28. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
  30. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
  32. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
  34. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
  36. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
  38. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
  40. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
  42. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
  44. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
  46. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
  48. package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
  50. package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
  52. package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
  54. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
  56. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
  58. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
  60. package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
  62. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
  64. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
  66. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
  68. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
  70. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
  72. package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
  74. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
  76. package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
  78. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
  80. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
  84. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
  86. package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
  88. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
  90. package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
  92. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
  94. package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
  96. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
  98. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
  100. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
  102. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
  104. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
  106. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
  108. package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
  110. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
  112. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
  114. package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
  116. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
  118. package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
  120. package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
  122. package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
  124. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
  126. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-inplace.mjs +4 -4
  128. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-listbox.mjs +303 -259
  130. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-megamenu.mjs +6 -6
  132. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-menubar.mjs +2 -2
  134. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
  136. package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-multiselect.mjs +421 -333
  138. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +4 -4
  140. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-picklist.mjs +426 -346
  142. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-select.mjs +391 -337
  144. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-table.mjs +337 -293
  146. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +315 -325
  148. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-treeselect.mjs +11 -7
  150. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  151. package/package.json +11 -11
  152. package/schematics/migrations.json +5 -5
  153. package/schematics/utils/versions.json +8 -8
@@ -1595,100 +1595,115 @@ class Select extends BaseInput {
1595
1595
  ...(ngDevMode ? [{ debugName: "overlayDataP" }] : /* istanbul ignore next */ []));
1596
1596
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Select, deps: [], target: i0.ɵɵFactoryTarget.Component });
1597
1597
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Select, isStandalone: true, selector: "p-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, resetFilterOnHide: { classPropertyName: "resetFilterOnHide", publicName: "resetFilterOnHide", isSignal: true, isRequired: false, transformFunction: null }, checkmark: { classPropertyName: "checkmark", publicName: "checkmark", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, emptyFilterMessage: { classPropertyName: "emptyFilterMessage", publicName: "emptyFilterMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: true, isRequired: false, transformFunction: null }, overlayOptions: { classPropertyName: "overlayOptions", publicName: "overlayOptions", isSignal: true, isRequired: false, transformFunction: null }, ariaFilterLabel: { classPropertyName: "ariaFilterLabel", publicName: "ariaFilterLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, filterMatchMode: { classPropertyName: "filterMatchMode", publicName: "filterMatchMode", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipPositionStyle: { classPropertyName: "tooltipPositionStyle", publicName: "tooltipPositionStyle", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, autofocusFilter: { classPropertyName: "autofocusFilter", publicName: "autofocusFilter", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onClick: "onClick", onShow: "onShow", onHide: "onHide", onClear: "onClear", onLazyLoad: "onLazyLoad" }, host: { listeners: { "click": "onContainerClick($event)" }, properties: { "class": "cx('root')", "attr.id": "_id()", "attr.data-p": "containerDataP()" } }, providers: [SELECT_VALUE_ACCESSOR, SelectStyle, { provide: SELECT_INSTANCE, useExisting: Select }, { provide: PARENT_INSTANCE, useExisting: Select }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], isSignal: true }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"], isSignal: true }, { propertyName: "selectedItemTemplate", first: true, predicate: ["selectedItem"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "filterTemplate", first: true, predicate: ["filter"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "emptyFilterTemplate", first: true, predicate: ["emptyfilter"], isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], isSignal: true }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "filterViewChild", first: true, predicate: ["filter"], descendants: true, isSignal: true }, { propertyName: "focusInputViewChild", first: true, predicate: ["focusInput"], descendants: true, isSignal: true }, { propertyName: "editableInputViewChild", first: true, predicate: ["editableInput"], descendants: true, isSignal: true }, { propertyName: "itemsViewChild", first: true, predicate: ["items"], descendants: true, isSignal: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }, { propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true, isSignal: true }, { propertyName: "firstHiddenFocusableElementOnOverlay", first: true, predicate: ["firstHiddenFocusableEl"], descendants: true, isSignal: true }, { propertyName: "lastHiddenFocusableElementOnOverlay", first: true, predicate: ["lastHiddenFocusableEl"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
1598
- <span
1599
- #focusInput
1600
- [class]="cx('label')"
1601
- *ngIf="!editable()"
1602
- [pBind]="ptm('label')"
1603
- [pTooltip]="tooltip()"
1604
- [pTooltipUnstyled]="unstyled()"
1605
- [tooltipPosition]="tooltipPosition()"
1606
- [positionStyle]="tooltipPositionStyle()"
1607
- [tooltipStyleClass]="tooltipStyleClass()"
1608
- [attr.aria-disabled]="$disabled()"
1609
- [attr.id]="inputId()"
1610
- role="combobox"
1611
- [attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
1612
- [attr.aria-labelledby]="ariaLabelledBy()"
1613
- [attr.aria-haspopup]="'listbox'"
1614
- [attr.aria-expanded]="overlayVisible() ?? false"
1615
- [attr.aria-controls]="overlayVisible() ? _id() + '_list' : null"
1616
- [attr.tabindex]="!$disabled() ? tabindex() : -1"
1617
- [pAutoFocus]="autofocus()"
1618
- [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1619
- (focus)="onInputFocus($event)"
1620
- (blur)="onInputBlur($event)"
1621
- (keydown)="onKeyDown($event)"
1622
- [attr.aria-required]="required()"
1623
- [attr.required]="required() ? '' : undefined"
1624
- [attr.disabled]="$disabled() ? '' : undefined"
1625
- [attr.data-p]="labelDataP()"
1626
- >
1627
- <ng-container *ngIf="!selectedItemTemplate() && !_selectedItemTemplate(); else defaultPlaceholder">{{ label() === 'p-emptylabel' ? '&nbsp;' : label() }}</ng-container>
1628
- <ng-container
1629
- *ngIf="(selectedItemTemplate() || _selectedItemTemplate()) && !isSelectedOptionEmpty()"
1630
- [ngTemplateOutlet]="selectedItemTemplate() || _selectedItemTemplate()"
1631
- [ngTemplateOutletContext]="{ $implicit: selectedOption() }"
1632
- ></ng-container>
1633
- <ng-template #defaultPlaceholder>
1634
- <span *ngIf="isSelectedOptionEmpty()">{{ label() === 'p-emptylabel' ? '&nbsp;' : label() }}</span>
1635
- </ng-template>
1636
- </span>
1637
- <input
1638
- *ngIf="editable()"
1639
- #editableInput
1640
- type="text"
1641
- [attr.id]="inputId()"
1642
- [class]="cx('label')"
1643
- [pBind]="ptm('label')"
1644
- [attr.aria-haspopup]="'listbox'"
1645
- [attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
1646
- [attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
1647
- (input)="onEditableInput($event)"
1648
- (keydown)="onKeyDown($event)"
1649
- [pAutoFocus]="autofocus()"
1650
- [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1651
- (focus)="onInputFocus($event)"
1652
- (blur)="onInputBlur($event)"
1653
- [attr.name]="name()"
1654
- [attr.minlength]="minlength()"
1655
- [attr.min]="min()"
1656
- [attr.max]="max()"
1657
- [attr.pattern]="pattern()"
1658
- [attr.size]="inputSize()"
1659
- [attr.maxlength]="maxlength()"
1660
- [attr.required]="required() ? '' : undefined"
1661
- [attr.readonly]="readonly() ? '' : undefined"
1662
- [attr.disabled]="$disabled() ? '' : undefined"
1663
- [attr.data-p]="labelDataP()"
1664
- />
1665
- <ng-container *ngIf="isVisibleClearIcon()">
1666
- <svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" *ngIf="!clearIconTemplate() && !_clearIconTemplate()" [attr.data-pc-section]="'clearicon'" />
1667
- <span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" *ngIf="clearIconTemplate() || _clearIconTemplate()" [attr.data-pc-section]="'clearicon'">
1668
- <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
1598
+ @if (!editable()) {
1599
+ <span
1600
+ #focusInput
1601
+ [class]="cx('label')"
1602
+ [pBind]="ptm('label')"
1603
+ [pTooltip]="tooltip()"
1604
+ [pTooltipUnstyled]="unstyled()"
1605
+ [tooltipPosition]="tooltipPosition()"
1606
+ [positionStyle]="tooltipPositionStyle()"
1607
+ [tooltipStyleClass]="tooltipStyleClass()"
1608
+ [attr.aria-disabled]="$disabled()"
1609
+ [attr.id]="inputId()"
1610
+ role="combobox"
1611
+ [attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
1612
+ [attr.aria-labelledby]="ariaLabelledBy()"
1613
+ [attr.aria-haspopup]="'listbox'"
1614
+ [attr.aria-expanded]="overlayVisible() ?? false"
1615
+ [attr.aria-controls]="overlayVisible() ? _id() + '_list' : null"
1616
+ [attr.tabindex]="!$disabled() ? tabindex() : -1"
1617
+ [pAutoFocus]="autofocus()"
1618
+ [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1619
+ (focus)="onInputFocus($event)"
1620
+ (blur)="onInputBlur($event)"
1621
+ (keydown)="onKeyDown($event)"
1622
+ [attr.aria-required]="required()"
1623
+ [attr.required]="required() ? '' : undefined"
1624
+ [attr.disabled]="$disabled() ? '' : undefined"
1625
+ [attr.data-p]="labelDataP()"
1626
+ >
1627
+ @if (!selectedItemTemplate() && !_selectedItemTemplate()) {
1628
+ <ng-container>{{ label() === 'p-emptylabel' ? '&nbsp;' : label() }}</ng-container>
1629
+ } @else {
1630
+ @if (isSelectedOptionEmpty()) {
1631
+ <span>{{ label() === 'p-emptylabel' ? '&nbsp;' : label() }}</span>
1632
+ }
1633
+ }
1634
+ @if ((selectedItemTemplate() || _selectedItemTemplate()) && !isSelectedOptionEmpty()) {
1635
+ <ng-container [ngTemplateOutlet]="selectedItemTemplate() || _selectedItemTemplate()" [ngTemplateOutletContext]="{ $implicit: selectedOption() }"></ng-container>
1636
+ }
1669
1637
  </span>
1670
- </ng-container>
1638
+ }
1639
+ @if (editable()) {
1640
+ <input
1641
+ #editableInput
1642
+ type="text"
1643
+ [attr.id]="inputId()"
1644
+ [class]="cx('label')"
1645
+ [pBind]="ptm('label')"
1646
+ [attr.aria-haspopup]="'listbox'"
1647
+ [attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
1648
+ [attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
1649
+ (input)="onEditableInput($event)"
1650
+ (keydown)="onKeyDown($event)"
1651
+ [pAutoFocus]="autofocus()"
1652
+ [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1653
+ (focus)="onInputFocus($event)"
1654
+ (blur)="onInputBlur($event)"
1655
+ [attr.name]="name()"
1656
+ [attr.minlength]="minlength()"
1657
+ [attr.min]="min()"
1658
+ [attr.max]="max()"
1659
+ [attr.pattern]="pattern()"
1660
+ [attr.size]="inputSize()"
1661
+ [attr.maxlength]="maxlength()"
1662
+ [attr.required]="required() ? '' : undefined"
1663
+ [attr.readonly]="readonly() ? '' : undefined"
1664
+ [attr.disabled]="$disabled() ? '' : undefined"
1665
+ [attr.data-p]="labelDataP()"
1666
+ />
1667
+ }
1668
+ @if (isVisibleClearIcon()) {
1669
+ @if (!clearIconTemplate() && !_clearIconTemplate()) {
1670
+ <svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" />
1671
+ }
1672
+ @if (clearIconTemplate() || _clearIconTemplate()) {
1673
+ <span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'">
1674
+ <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
1675
+ </span>
1676
+ }
1677
+ }
1671
1678
 
1672
1679
  <div [class]="cx('dropdown')" [pBind]="ptm('dropdown')" role="button" aria-label="dropdown trigger" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible() ?? false" [attr.data-pc-section]="'trigger'">
1673
- <ng-container *ngIf="loading(); else elseBlock">
1674
- <ng-container *ngIf="loadingIconTemplate() || _loadingIconTemplate()">
1680
+ @if (loading()) {
1681
+ @if (loadingIconTemplate() || _loadingIconTemplate()) {
1675
1682
  <ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
1676
- </ng-container>
1677
- <ng-container *ngIf="!loadingIconTemplate() && !_loadingIconTemplate()">
1678
- <span *ngIf="loadingIcon()" [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
1679
- <span *ngIf="!loadingIcon()" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
1680
- </ng-container>
1681
- </ng-container>
1682
-
1683
- <ng-template #elseBlock>
1684
- <ng-container *ngIf="!dropdownIconTemplate() && !_dropdownIconTemplate()">
1685
- <span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')" *ngIf="dropdownIcon()"></span>
1686
- <svg data-p-icon="chevron-down" *ngIf="!dropdownIcon()" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
1687
- </ng-container>
1688
- <span *ngIf="dropdownIconTemplate() || _dropdownIconTemplate()" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
1689
- <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { class: cx('dropdownIcon') }"></ng-template>
1690
- </span>
1691
- </ng-template>
1683
+ }
1684
+ @if (!loadingIconTemplate() && !_loadingIconTemplate()) {
1685
+ @if (loadingIcon()) {
1686
+ <span [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
1687
+ }
1688
+ @if (!loadingIcon()) {
1689
+ <span [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
1690
+ }
1691
+ }
1692
+ } @else {
1693
+ @if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
1694
+ @if (dropdownIcon()) {
1695
+ <span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')"></span>
1696
+ }
1697
+ @if (!dropdownIcon()) {
1698
+ <svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
1699
+ }
1700
+ }
1701
+ @if (dropdownIconTemplate() || _dropdownIconTemplate()) {
1702
+ <span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
1703
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { class: cx('dropdownIcon') }"></ng-template>
1704
+ </span>
1705
+ }
1706
+ }
1692
1707
  </div>
1693
1708
 
1694
1709
  <p-overlay
@@ -1719,78 +1734,86 @@ class Select extends BaseInput {
1719
1734
  >
1720
1735
  </span>
1721
1736
  <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
1722
- <div [class]="cx('header')" *ngIf="filter()" (click)="$event.stopPropagation()" [pBind]="ptm('header')">
1723
- <ng-container *ngIf="filterTemplate() || _filterTemplate(); else builtInFilterElement">
1724
- <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
1725
- </ng-container>
1726
- <ng-template #builtInFilterElement>
1727
- <p-iconfield [pt]="ptm('pcFilterContainer')" [unstyled]="unstyled()">
1728
- <input
1729
- #filter
1730
- pInputText
1731
- [pSize]="size()"
1732
- type="text"
1733
- role="searchbox"
1734
- autocomplete="off"
1735
- [value]="_filterValue() || ''"
1736
- [class]="cx('pcFilter')"
1737
- [variant]="$variant()"
1738
- [attr.placeholder]="filterPlaceholder()"
1739
- [attr.aria-owns]="_id() + '_list'"
1740
- (input)="onFilterInputChange($event)"
1741
- [attr.aria-label]="ariaFilterLabel()"
1742
- [attr.aria-activedescendant]="focusedOptionId()"
1743
- (keydown)="onFilterKeyDown($event)"
1744
- (blur)="onFilterBlur($event)"
1745
- [pt]="ptm('pcFilter')"
1746
- [unstyled]="unstyled()"
1747
- />
1748
- <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
1749
- <svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate()" [pBind]="ptm('filterIcon')" />
1750
- <span *ngIf="filterIconTemplate() || _filterIconTemplate()" [pBind]="ptm('filterIcon')">
1751
- <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
1752
- </span>
1753
- </p-inputicon>
1754
- </p-iconfield>
1755
- </ng-template>
1756
- </div>
1737
+ @if (filter()) {
1738
+ <div [class]="cx('header')" (click)="$event.stopPropagation()" [pBind]="ptm('header')">
1739
+ @if (filterTemplate() || _filterTemplate()) {
1740
+ <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
1741
+ } @else {
1742
+ <p-iconfield [pt]="ptm('pcFilterContainer')" [unstyled]="unstyled()">
1743
+ <input
1744
+ #filter
1745
+ pInputText
1746
+ [pSize]="size()"
1747
+ type="text"
1748
+ role="searchbox"
1749
+ autocomplete="off"
1750
+ [value]="_filterValue() || ''"
1751
+ [class]="cx('pcFilter')"
1752
+ [variant]="$variant()"
1753
+ [attr.placeholder]="filterPlaceholder()"
1754
+ [attr.aria-owns]="_id() + '_list'"
1755
+ (input)="onFilterInputChange($event)"
1756
+ [attr.aria-label]="ariaFilterLabel()"
1757
+ [attr.aria-activedescendant]="focusedOptionId()"
1758
+ (keydown)="onFilterKeyDown($event)"
1759
+ (blur)="onFilterBlur($event)"
1760
+ [pt]="ptm('pcFilter')"
1761
+ [unstyled]="unstyled()"
1762
+ />
1763
+ <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
1764
+ @if (!filterIconTemplate() && !_filterIconTemplate()) {
1765
+ <svg data-p-icon="search" [pBind]="ptm('filterIcon')" />
1766
+ }
1767
+ @if (filterIconTemplate() || _filterIconTemplate()) {
1768
+ <span [pBind]="ptm('filterIcon')">
1769
+ <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
1770
+ </span>
1771
+ }
1772
+ </p-inputicon>
1773
+ </p-iconfield>
1774
+ }
1775
+ </div>
1776
+ }
1757
1777
  <div [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'" [pBind]="ptm('listContainer')">
1758
- <p-scroller
1759
- *ngIf="virtualScroll()"
1760
- hostName="select"
1761
- #scroller
1762
- [items]="visibleOptions()"
1763
- [style]="{ height: scrollHeight() }"
1764
- [itemSize]="virtualScrollItemSize()"
1765
- [autoSize]="true"
1766
- [lazy]="lazy()"
1767
- (onLazyLoad)="onLazyLoad.emit($event)"
1768
- [options]="virtualScrollOptions()"
1769
- [pt]="ptm('virtualScroller')"
1770
- >
1771
- <ng-template #content let-items let-scrollerOptions="options">
1772
- <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
1773
- </ng-template>
1774
- <ng-container *ngIf="loaderTemplate() || _loaderTemplate()">
1775
- <ng-template #loader let-scrollerOptions="options">
1776
- <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
1778
+ @if (virtualScroll()) {
1779
+ <p-scroller
1780
+ hostName="select"
1781
+ #scroller
1782
+ [items]="visibleOptions()"
1783
+ [style]="{ height: scrollHeight() }"
1784
+ [itemSize]="virtualScrollItemSize()"
1785
+ [autoSize]="true"
1786
+ [lazy]="lazy()"
1787
+ (onLazyLoad)="onLazyLoad.emit($event)"
1788
+ [options]="virtualScrollOptions()"
1789
+ [pt]="ptm('virtualScroller')"
1790
+ >
1791
+ <ng-template #content let-items let-scrollerOptions="options">
1792
+ <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
1777
1793
  </ng-template>
1778
- </ng-container>
1779
- </p-scroller>
1780
- <ng-container *ngIf="!virtualScroll()">
1794
+ @if (loaderTemplate() || _loaderTemplate()) {
1795
+ <ng-template #loader let-scrollerOptions="options">
1796
+ <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
1797
+ </ng-template>
1798
+ }
1799
+ </p-scroller>
1800
+ }
1801
+ @if (!virtualScroll()) {
1781
1802
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
1782
- </ng-container>
1803
+ }
1783
1804
 
1784
1805
  <ng-template #buildInItems let-items let-scrollerOptions="options">
1785
1806
  <ul #items [attr.id]="_id() + '_list'" [attr.aria-label]="listLabel()" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" [pBind]="ptm('list')">
1786
- <ng-template ngFor let-option [ngForOf]="items" let-i="index">
1787
- <ng-container *ngIf="isOptionGroup(option)">
1807
+ @for (option of items; track $index; let i = $index) {
1808
+ @if (isOptionGroup(option)) {
1788
1809
  <li [class]="cx('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('optionGroup')">
1789
- <span *ngIf="!groupTemplate() && !_groupTemplate()" [class]="cx('optionGroupLabel')" [pBind]="ptm('optionGroupLabel')">{{ getOptionGroupLabel(option.optionGroup) }}</span>
1810
+ @if (!groupTemplate() && !_groupTemplate()) {
1811
+ <span [class]="cx('optionGroupLabel')" [pBind]="ptm('optionGroupLabel')">{{ getOptionGroupLabel(option.optionGroup) }}</span>
1812
+ }
1790
1813
  <ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate(); context: { $implicit: option.optionGroup }"></ng-container>
1791
1814
  </li>
1792
- </ng-container>
1793
- <ng-container *ngIf="!isOptionGroup(option)">
1815
+ }
1816
+ @if (!isOptionGroup(option)) {
1794
1817
  <p-selectItem
1795
1818
  [id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
1796
1819
  [option]="option"
@@ -1808,22 +1831,26 @@ class Select extends BaseInput {
1808
1831
  (onClick)="onOptionSelect($event, option)"
1809
1832
  (onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
1810
1833
  ></p-selectItem>
1811
- </ng-container>
1812
- </ng-template>
1813
- <li *ngIf="_filterValue() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
1814
- @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate()) {
1815
- {{ emptyFilterMessageLabel() }}
1816
- } @else {
1817
- <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
1818
- }
1819
- </li>
1820
- <li *ngIf="!_filterValue() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
1821
- @if (!emptyTemplate() && !_emptyTemplate()) {
1822
- {{ emptyMessageLabel() || emptyFilterMessageLabel() }}
1823
- } @else {
1824
- <ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
1825
1834
  }
1826
- </li>
1835
+ }
1836
+ @if (_filterValue() && isEmpty()) {
1837
+ <li [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
1838
+ @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate()) {
1839
+ {{ emptyFilterMessageLabel() }}
1840
+ } @else {
1841
+ <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
1842
+ }
1843
+ </li>
1844
+ }
1845
+ @if (!_filterValue() && isEmpty()) {
1846
+ <li [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
1847
+ @if (!emptyTemplate() && !_emptyTemplate()) {
1848
+ {{ emptyMessageLabel() || emptyFilterMessageLabel() }}
1849
+ } @else {
1850
+ <ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
1851
+ }
1852
+ </li>
1853
+ }
1827
1854
  </ul>
1828
1855
  </ng-template>
1829
1856
  </div>
@@ -1841,7 +1868,7 @@ class Select extends BaseInput {
1841
1868
  </div>
1842
1869
  </ng-template>
1843
1870
  </p-overlay>
1844
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: SelectItem, selector: "p-selectItem", inputs: ["id", "option", "selected", "focused", "label", "disabled", "ariaPosInset", "ariaSetSize", "template", "checkmark", "index", "scrollerOptions"], 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: "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: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { 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: "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: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i2.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1871
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: SelectItem, selector: "p-selectItem", inputs: ["id", "option", "selected", "focused", "label", "disabled", "ariaPosInset", "ariaSetSize", "template", "checkmark", "index", "scrollerOptions"], 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: "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: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { 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: "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: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i2.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1845
1872
  }
1846
1873
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Select, decorators: [{
1847
1874
  type: Component,
@@ -1849,100 +1876,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1849
1876
  selector: 'p-select',
1850
1877
  imports: [CommonModule, SelectItem, Overlay, Tooltip, AutoFocus, TimesIcon, ChevronDownIcon, SearchIcon, InputText, IconField, InputIcon, Scroller, SharedModule, BindModule],
1851
1878
  template: `
1852
- <span
1853
- #focusInput
1854
- [class]="cx('label')"
1855
- *ngIf="!editable()"
1856
- [pBind]="ptm('label')"
1857
- [pTooltip]="tooltip()"
1858
- [pTooltipUnstyled]="unstyled()"
1859
- [tooltipPosition]="tooltipPosition()"
1860
- [positionStyle]="tooltipPositionStyle()"
1861
- [tooltipStyleClass]="tooltipStyleClass()"
1862
- [attr.aria-disabled]="$disabled()"
1863
- [attr.id]="inputId()"
1864
- role="combobox"
1865
- [attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
1866
- [attr.aria-labelledby]="ariaLabelledBy()"
1867
- [attr.aria-haspopup]="'listbox'"
1868
- [attr.aria-expanded]="overlayVisible() ?? false"
1869
- [attr.aria-controls]="overlayVisible() ? _id() + '_list' : null"
1870
- [attr.tabindex]="!$disabled() ? tabindex() : -1"
1871
- [pAutoFocus]="autofocus()"
1872
- [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1873
- (focus)="onInputFocus($event)"
1874
- (blur)="onInputBlur($event)"
1875
- (keydown)="onKeyDown($event)"
1876
- [attr.aria-required]="required()"
1877
- [attr.required]="required() ? '' : undefined"
1878
- [attr.disabled]="$disabled() ? '' : undefined"
1879
- [attr.data-p]="labelDataP()"
1880
- >
1881
- <ng-container *ngIf="!selectedItemTemplate() && !_selectedItemTemplate(); else defaultPlaceholder">{{ label() === 'p-emptylabel' ? '&nbsp;' : label() }}</ng-container>
1882
- <ng-container
1883
- *ngIf="(selectedItemTemplate() || _selectedItemTemplate()) && !isSelectedOptionEmpty()"
1884
- [ngTemplateOutlet]="selectedItemTemplate() || _selectedItemTemplate()"
1885
- [ngTemplateOutletContext]="{ $implicit: selectedOption() }"
1886
- ></ng-container>
1887
- <ng-template #defaultPlaceholder>
1888
- <span *ngIf="isSelectedOptionEmpty()">{{ label() === 'p-emptylabel' ? '&nbsp;' : label() }}</span>
1889
- </ng-template>
1890
- </span>
1891
- <input
1892
- *ngIf="editable()"
1893
- #editableInput
1894
- type="text"
1895
- [attr.id]="inputId()"
1896
- [class]="cx('label')"
1897
- [pBind]="ptm('label')"
1898
- [attr.aria-haspopup]="'listbox'"
1899
- [attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
1900
- [attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
1901
- (input)="onEditableInput($event)"
1902
- (keydown)="onKeyDown($event)"
1903
- [pAutoFocus]="autofocus()"
1904
- [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1905
- (focus)="onInputFocus($event)"
1906
- (blur)="onInputBlur($event)"
1907
- [attr.name]="name()"
1908
- [attr.minlength]="minlength()"
1909
- [attr.min]="min()"
1910
- [attr.max]="max()"
1911
- [attr.pattern]="pattern()"
1912
- [attr.size]="inputSize()"
1913
- [attr.maxlength]="maxlength()"
1914
- [attr.required]="required() ? '' : undefined"
1915
- [attr.readonly]="readonly() ? '' : undefined"
1916
- [attr.disabled]="$disabled() ? '' : undefined"
1917
- [attr.data-p]="labelDataP()"
1918
- />
1919
- <ng-container *ngIf="isVisibleClearIcon()">
1920
- <svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" *ngIf="!clearIconTemplate() && !_clearIconTemplate()" [attr.data-pc-section]="'clearicon'" />
1921
- <span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" *ngIf="clearIconTemplate() || _clearIconTemplate()" [attr.data-pc-section]="'clearicon'">
1922
- <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
1879
+ @if (!editable()) {
1880
+ <span
1881
+ #focusInput
1882
+ [class]="cx('label')"
1883
+ [pBind]="ptm('label')"
1884
+ [pTooltip]="tooltip()"
1885
+ [pTooltipUnstyled]="unstyled()"
1886
+ [tooltipPosition]="tooltipPosition()"
1887
+ [positionStyle]="tooltipPositionStyle()"
1888
+ [tooltipStyleClass]="tooltipStyleClass()"
1889
+ [attr.aria-disabled]="$disabled()"
1890
+ [attr.id]="inputId()"
1891
+ role="combobox"
1892
+ [attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
1893
+ [attr.aria-labelledby]="ariaLabelledBy()"
1894
+ [attr.aria-haspopup]="'listbox'"
1895
+ [attr.aria-expanded]="overlayVisible() ?? false"
1896
+ [attr.aria-controls]="overlayVisible() ? _id() + '_list' : null"
1897
+ [attr.tabindex]="!$disabled() ? tabindex() : -1"
1898
+ [pAutoFocus]="autofocus()"
1899
+ [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1900
+ (focus)="onInputFocus($event)"
1901
+ (blur)="onInputBlur($event)"
1902
+ (keydown)="onKeyDown($event)"
1903
+ [attr.aria-required]="required()"
1904
+ [attr.required]="required() ? '' : undefined"
1905
+ [attr.disabled]="$disabled() ? '' : undefined"
1906
+ [attr.data-p]="labelDataP()"
1907
+ >
1908
+ @if (!selectedItemTemplate() && !_selectedItemTemplate()) {
1909
+ <ng-container>{{ label() === 'p-emptylabel' ? '&nbsp;' : label() }}</ng-container>
1910
+ } @else {
1911
+ @if (isSelectedOptionEmpty()) {
1912
+ <span>{{ label() === 'p-emptylabel' ? '&nbsp;' : label() }}</span>
1913
+ }
1914
+ }
1915
+ @if ((selectedItemTemplate() || _selectedItemTemplate()) && !isSelectedOptionEmpty()) {
1916
+ <ng-container [ngTemplateOutlet]="selectedItemTemplate() || _selectedItemTemplate()" [ngTemplateOutletContext]="{ $implicit: selectedOption() }"></ng-container>
1917
+ }
1923
1918
  </span>
1924
- </ng-container>
1919
+ }
1920
+ @if (editable()) {
1921
+ <input
1922
+ #editableInput
1923
+ type="text"
1924
+ [attr.id]="inputId()"
1925
+ [class]="cx('label')"
1926
+ [pBind]="ptm('label')"
1927
+ [attr.aria-haspopup]="'listbox'"
1928
+ [attr.placeholder]="modelValue() === undefined || modelValue() === null ? _placeholder() : undefined"
1929
+ [attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
1930
+ (input)="onEditableInput($event)"
1931
+ (keydown)="onKeyDown($event)"
1932
+ [pAutoFocus]="autofocus()"
1933
+ [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1934
+ (focus)="onInputFocus($event)"
1935
+ (blur)="onInputBlur($event)"
1936
+ [attr.name]="name()"
1937
+ [attr.minlength]="minlength()"
1938
+ [attr.min]="min()"
1939
+ [attr.max]="max()"
1940
+ [attr.pattern]="pattern()"
1941
+ [attr.size]="inputSize()"
1942
+ [attr.maxlength]="maxlength()"
1943
+ [attr.required]="required() ? '' : undefined"
1944
+ [attr.readonly]="readonly() ? '' : undefined"
1945
+ [attr.disabled]="$disabled() ? '' : undefined"
1946
+ [attr.data-p]="labelDataP()"
1947
+ />
1948
+ }
1949
+ @if (isVisibleClearIcon()) {
1950
+ @if (!clearIconTemplate() && !_clearIconTemplate()) {
1951
+ <svg data-p-icon="times" [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" />
1952
+ }
1953
+ @if (clearIconTemplate() || _clearIconTemplate()) {
1954
+ <span [class]="cx('clearIcon')" [pBind]="ptm('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'">
1955
+ <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate(); context: { class: cx('clearIcon') }"></ng-template>
1956
+ </span>
1957
+ }
1958
+ }
1925
1959
 
1926
1960
  <div [class]="cx('dropdown')" [pBind]="ptm('dropdown')" role="button" aria-label="dropdown trigger" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible() ?? false" [attr.data-pc-section]="'trigger'">
1927
- <ng-container *ngIf="loading(); else elseBlock">
1928
- <ng-container *ngIf="loadingIconTemplate() || _loadingIconTemplate()">
1961
+ @if (loading()) {
1962
+ @if (loadingIconTemplate() || _loadingIconTemplate()) {
1929
1963
  <ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
1930
- </ng-container>
1931
- <ng-container *ngIf="!loadingIconTemplate() && !_loadingIconTemplate()">
1932
- <span *ngIf="loadingIcon()" [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
1933
- <span *ngIf="!loadingIcon()" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
1934
- </ng-container>
1935
- </ng-container>
1936
-
1937
- <ng-template #elseBlock>
1938
- <ng-container *ngIf="!dropdownIconTemplate() && !_dropdownIconTemplate()">
1939
- <span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')" *ngIf="dropdownIcon()"></span>
1940
- <svg data-p-icon="chevron-down" *ngIf="!dropdownIcon()" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
1941
- </ng-container>
1942
- <span *ngIf="dropdownIconTemplate() || _dropdownIconTemplate()" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
1943
- <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { class: cx('dropdownIcon') }"></ng-template>
1944
- </span>
1945
- </ng-template>
1964
+ }
1965
+ @if (!loadingIconTemplate() && !_loadingIconTemplate()) {
1966
+ @if (loadingIcon()) {
1967
+ <span [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
1968
+ }
1969
+ @if (!loadingIcon()) {
1970
+ <span [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [pBind]="ptm('loadingIcon')" aria-hidden="true"></span>
1971
+ }
1972
+ }
1973
+ } @else {
1974
+ @if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
1975
+ @if (dropdownIcon()) {
1976
+ <span [class]="cn(cx('dropdownIcon'), dropdownIcon())" [pBind]="ptm('dropdownIcon')"></span>
1977
+ }
1978
+ @if (!dropdownIcon()) {
1979
+ <svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
1980
+ }
1981
+ }
1982
+ @if (dropdownIconTemplate() || _dropdownIconTemplate()) {
1983
+ <span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
1984
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { class: cx('dropdownIcon') }"></ng-template>
1985
+ </span>
1986
+ }
1987
+ }
1946
1988
  </div>
1947
1989
 
1948
1990
  <p-overlay
@@ -1973,78 +2015,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1973
2015
  >
1974
2016
  </span>
1975
2017
  <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
1976
- <div [class]="cx('header')" *ngIf="filter()" (click)="$event.stopPropagation()" [pBind]="ptm('header')">
1977
- <ng-container *ngIf="filterTemplate() || _filterTemplate(); else builtInFilterElement">
1978
- <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
1979
- </ng-container>
1980
- <ng-template #builtInFilterElement>
1981
- <p-iconfield [pt]="ptm('pcFilterContainer')" [unstyled]="unstyled()">
1982
- <input
1983
- #filter
1984
- pInputText
1985
- [pSize]="size()"
1986
- type="text"
1987
- role="searchbox"
1988
- autocomplete="off"
1989
- [value]="_filterValue() || ''"
1990
- [class]="cx('pcFilter')"
1991
- [variant]="$variant()"
1992
- [attr.placeholder]="filterPlaceholder()"
1993
- [attr.aria-owns]="_id() + '_list'"
1994
- (input)="onFilterInputChange($event)"
1995
- [attr.aria-label]="ariaFilterLabel()"
1996
- [attr.aria-activedescendant]="focusedOptionId()"
1997
- (keydown)="onFilterKeyDown($event)"
1998
- (blur)="onFilterBlur($event)"
1999
- [pt]="ptm('pcFilter')"
2000
- [unstyled]="unstyled()"
2001
- />
2002
- <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
2003
- <svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate()" [pBind]="ptm('filterIcon')" />
2004
- <span *ngIf="filterIconTemplate() || _filterIconTemplate()" [pBind]="ptm('filterIcon')">
2005
- <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
2006
- </span>
2007
- </p-inputicon>
2008
- </p-iconfield>
2009
- </ng-template>
2010
- </div>
2018
+ @if (filter()) {
2019
+ <div [class]="cx('header')" (click)="$event.stopPropagation()" [pBind]="ptm('header')">
2020
+ @if (filterTemplate() || _filterTemplate()) {
2021
+ <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
2022
+ } @else {
2023
+ <p-iconfield [pt]="ptm('pcFilterContainer')" [unstyled]="unstyled()">
2024
+ <input
2025
+ #filter
2026
+ pInputText
2027
+ [pSize]="size()"
2028
+ type="text"
2029
+ role="searchbox"
2030
+ autocomplete="off"
2031
+ [value]="_filterValue() || ''"
2032
+ [class]="cx('pcFilter')"
2033
+ [variant]="$variant()"
2034
+ [attr.placeholder]="filterPlaceholder()"
2035
+ [attr.aria-owns]="_id() + '_list'"
2036
+ (input)="onFilterInputChange($event)"
2037
+ [attr.aria-label]="ariaFilterLabel()"
2038
+ [attr.aria-activedescendant]="focusedOptionId()"
2039
+ (keydown)="onFilterKeyDown($event)"
2040
+ (blur)="onFilterBlur($event)"
2041
+ [pt]="ptm('pcFilter')"
2042
+ [unstyled]="unstyled()"
2043
+ />
2044
+ <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
2045
+ @if (!filterIconTemplate() && !_filterIconTemplate()) {
2046
+ <svg data-p-icon="search" [pBind]="ptm('filterIcon')" />
2047
+ }
2048
+ @if (filterIconTemplate() || _filterIconTemplate()) {
2049
+ <span [pBind]="ptm('filterIcon')">
2050
+ <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
2051
+ </span>
2052
+ }
2053
+ </p-inputicon>
2054
+ </p-iconfield>
2055
+ }
2056
+ </div>
2057
+ }
2011
2058
  <div [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'" [pBind]="ptm('listContainer')">
2012
- <p-scroller
2013
- *ngIf="virtualScroll()"
2014
- hostName="select"
2015
- #scroller
2016
- [items]="visibleOptions()"
2017
- [style]="{ height: scrollHeight() }"
2018
- [itemSize]="virtualScrollItemSize()"
2019
- [autoSize]="true"
2020
- [lazy]="lazy()"
2021
- (onLazyLoad)="onLazyLoad.emit($event)"
2022
- [options]="virtualScrollOptions()"
2023
- [pt]="ptm('virtualScroller')"
2024
- >
2025
- <ng-template #content let-items let-scrollerOptions="options">
2026
- <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
2027
- </ng-template>
2028
- <ng-container *ngIf="loaderTemplate() || _loaderTemplate()">
2029
- <ng-template #loader let-scrollerOptions="options">
2030
- <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
2059
+ @if (virtualScroll()) {
2060
+ <p-scroller
2061
+ hostName="select"
2062
+ #scroller
2063
+ [items]="visibleOptions()"
2064
+ [style]="{ height: scrollHeight() }"
2065
+ [itemSize]="virtualScrollItemSize()"
2066
+ [autoSize]="true"
2067
+ [lazy]="lazy()"
2068
+ (onLazyLoad)="onLazyLoad.emit($event)"
2069
+ [options]="virtualScrollOptions()"
2070
+ [pt]="ptm('virtualScroller')"
2071
+ >
2072
+ <ng-template #content let-items let-scrollerOptions="options">
2073
+ <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
2031
2074
  </ng-template>
2032
- </ng-container>
2033
- </p-scroller>
2034
- <ng-container *ngIf="!virtualScroll()">
2075
+ @if (loaderTemplate() || _loaderTemplate()) {
2076
+ <ng-template #loader let-scrollerOptions="options">
2077
+ <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
2078
+ </ng-template>
2079
+ }
2080
+ </p-scroller>
2081
+ }
2082
+ @if (!virtualScroll()) {
2035
2083
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
2036
- </ng-container>
2084
+ }
2037
2085
 
2038
2086
  <ng-template #buildInItems let-items let-scrollerOptions="options">
2039
2087
  <ul #items [attr.id]="_id() + '_list'" [attr.aria-label]="listLabel()" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" [pBind]="ptm('list')">
2040
- <ng-template ngFor let-option [ngForOf]="items" let-i="index">
2041
- <ng-container *ngIf="isOptionGroup(option)">
2088
+ @for (option of items; track $index; let i = $index) {
2089
+ @if (isOptionGroup(option)) {
2042
2090
  <li [class]="cx('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('optionGroup')">
2043
- <span *ngIf="!groupTemplate() && !_groupTemplate()" [class]="cx('optionGroupLabel')" [pBind]="ptm('optionGroupLabel')">{{ getOptionGroupLabel(option.optionGroup) }}</span>
2091
+ @if (!groupTemplate() && !_groupTemplate()) {
2092
+ <span [class]="cx('optionGroupLabel')" [pBind]="ptm('optionGroupLabel')">{{ getOptionGroupLabel(option.optionGroup) }}</span>
2093
+ }
2044
2094
  <ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate(); context: { $implicit: option.optionGroup }"></ng-container>
2045
2095
  </li>
2046
- </ng-container>
2047
- <ng-container *ngIf="!isOptionGroup(option)">
2096
+ }
2097
+ @if (!isOptionGroup(option)) {
2048
2098
  <p-selectItem
2049
2099
  [id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
2050
2100
  [option]="option"
@@ -2062,22 +2112,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2062
2112
  (onClick)="onOptionSelect($event, option)"
2063
2113
  (onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
2064
2114
  ></p-selectItem>
2065
- </ng-container>
2066
- </ng-template>
2067
- <li *ngIf="_filterValue() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
2068
- @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate()) {
2069
- {{ emptyFilterMessageLabel() }}
2070
- } @else {
2071
- <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
2072
- }
2073
- </li>
2074
- <li *ngIf="!_filterValue() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
2075
- @if (!emptyTemplate() && !_emptyTemplate()) {
2076
- {{ emptyMessageLabel() || emptyFilterMessageLabel() }}
2077
- } @else {
2078
- <ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
2079
2115
  }
2080
- </li>
2116
+ }
2117
+ @if (_filterValue() && isEmpty()) {
2118
+ <li [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
2119
+ @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate()) {
2120
+ {{ emptyFilterMessageLabel() }}
2121
+ } @else {
2122
+ <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
2123
+ }
2124
+ </li>
2125
+ }
2126
+ @if (!_filterValue() && isEmpty()) {
2127
+ <li [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option" [pBind]="ptm('emptyMessage')">
2128
+ @if (!emptyTemplate() && !_emptyTemplate()) {
2129
+ {{ emptyMessageLabel() || emptyFilterMessageLabel() }}
2130
+ } @else {
2131
+ <ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
2132
+ }
2133
+ </li>
2134
+ }
2081
2135
  </ul>
2082
2136
  </ng-template>
2083
2137
  </div>