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

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 (265) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  68. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  70. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  72. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
  74. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  76. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  78. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  80. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  82. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  84. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  86. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  88. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  90. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  92. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
  94. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
  96. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  98. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  100. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  102. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
  104. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  106. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  108. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  110. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  112. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  114. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  116. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  118. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
  120. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  122. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  124. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  126. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  128. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  130. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
  132. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  134. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  136. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  138. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  140. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  142. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  144. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  146. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
  148. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  150. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  152. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
  154. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  156. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  158. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  160. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  162. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  164. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  166. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
  168. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  170. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  171. package/package.json +5 -5
  172. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  173. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  174. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  175. package/schematics/migrations.json +7 -2
  176. package/schematics/utils/removed-inputs.js +0 -0
  177. package/schematics/utils/renamed-inputs.js +175 -0
  178. package/schematics/utils/styleclass.js +24 -8
  179. package/schematics/utils/versions.json +8 -8
  180. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  181. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  182. package/types/exhaustive-ui-core-api.d.ts +2 -3
  183. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  184. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  185. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  186. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  187. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  188. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  189. package/types/exhaustive-ui-core-button.d.ts +57 -89
  190. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  191. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  192. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  193. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  194. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  195. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  196. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  197. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  198. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  199. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  200. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  201. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  202. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  203. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  204. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  205. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  206. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  207. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  208. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  209. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  210. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  211. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  212. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  213. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  214. package/types/exhaustive-ui-core-image.d.ts +35 -68
  215. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  216. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  217. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  218. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  219. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  220. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  221. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  222. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  223. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  224. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  225. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  226. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  227. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  228. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  229. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  230. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  231. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  232. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  233. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  234. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  235. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  236. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  237. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  238. package/types/exhaustive-ui-core-password.d.ts +56 -93
  239. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  240. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  241. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  242. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  243. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  244. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  245. package/types/exhaustive-ui-core-select.d.ts +137 -188
  246. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  247. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  248. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  249. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  250. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  251. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  252. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  253. package/types/exhaustive-ui-core-table.d.ts +349 -453
  254. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  255. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  256. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  257. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  258. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  259. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  260. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  261. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  262. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  263. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  264. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  265. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
@@ -2,11 +2,12 @@ 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, output, booleanAttribute, numberAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgZone, input, viewChild, contentChild, signal, contentChildren, computed, effect, 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, NgModule } from '@angular/core';
6
+ import { toSignal } from '@angular/core/rxjs-interop';
6
7
  import * as i2 from '@angular/forms';
7
8
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
8
- import { deepEquals, isNotEmpty, isArray, uuid, equals, focus, findLastIndex, resolveFieldData, isPrintableCharacter, getFirstFocusableElement, getLastFocusableElement, findSingle, getFocusableElements } from '@exhaustive-ui/utils';
9
- import { SharedModule, FilterService, OverlayService, Footer, PrimeTemplate, TranslationKeys } from '@exhaustive-ui/core/api';
9
+ import { deepEquals, isNotEmpty, uuid, isArray, equals, focus, findLastIndex, resolveFieldData, isPrintableCharacter, getFirstFocusableElement, getLastFocusableElement, findSingle, getFocusableElements } from '@exhaustive-ui/utils';
10
+ import { SharedModule, FilterService, Footer, PrimeTemplate, TranslationKeys } from '@exhaustive-ui/core/api';
10
11
  import { AutoFocus } from '@exhaustive-ui/core/autofocus';
11
12
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
12
13
  import { BaseEditableHolder } from '@exhaustive-ui/core/baseeditableholder';
@@ -48,15 +49,15 @@ const classes = {
48
49
  'p-multiselect p-component p-inputwrapper',
49
50
  {
50
51
  'p-multiselect p-component p-inputwrapper': true,
51
- 'p-multiselect-display-chip': instance.display === 'chip',
52
+ 'p-multiselect-display-chip': instance.display() === 'chip',
52
53
  'p-disabled': instance.$disabled(),
53
54
  'p-invalid': instance.invalid(),
54
55
  'p-variant-filled': instance.$variant() === 'filled',
55
- 'p-focus': instance.focused,
56
+ 'p-focus': instance.focused(),
56
57
  'p-inputwrapper-filled': instance.$filled(),
57
- 'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
58
- 'p-multiselect-open': instance.overlayVisible,
59
- 'p-multiselect-fluid': instance.hasFluid,
58
+ 'p-inputwrapper-focus': instance.focused() || instance._overlayVisible(),
59
+ 'p-multiselect-open': instance._overlayVisible(),
60
+ 'p-multiselect-fluid': instance.hasFluid(),
60
61
  'p-multiselect-sm p-inputfield-sm': instance.size() === 'small',
61
62
  'p-multiselect-lg p-inputfield-lg': instance.size() === 'large'
62
63
  }
@@ -65,7 +66,7 @@ const classes = {
65
66
  label: ({ instance }) => ({
66
67
  'p-multiselect-label': true,
67
68
  'p-placeholder': instance.label() === instance.placeholder(),
68
- 'p-multiselect-label-empty': !instance.placeholder() && !instance.defaultLabel && (!instance.modelValue() || instance.modelValue().length === 0)
69
+ 'p-multiselect-label-empty': !instance.placeholder() && (!instance.modelValue() || instance.modelValue().length === 0)
69
70
  }),
70
71
  chipItem: 'p-multiselect-chip-item',
71
72
  pcChip: 'p-multiselect-chip',
@@ -82,9 +83,9 @@ const classes = {
82
83
  optionGroup: 'p-multiselect-option-group',
83
84
  option: ({ instance }) => ({
84
85
  'p-multiselect-option': true,
85
- 'p-multiselect-option-selected': instance.selected && instance.highlightOnSelect,
86
- 'p-disabled': instance.disabled,
87
- 'p-focus': instance.focused
86
+ 'p-multiselect-option-selected': instance.selected() && instance.highlightOnSelect(),
87
+ 'p-disabled': instance.disabled(),
88
+ 'p-focus': instance.focused()
88
89
  }),
89
90
  emptyMessage: 'p-multiselect-empty-message',
90
91
  clearIcon: 'p-multiselect-clear-icon'
@@ -202,33 +203,39 @@ class MultiSelectItem extends BaseComponent {
202
203
  getPTOptions(key) {
203
204
  return this.ptm(key, {
204
205
  context: {
205
- selected: this.selected,
206
- focused: this.focused,
207
- disabled: this.disabled
206
+ selected: this.selected(),
207
+ focused: this.focused(),
208
+ disabled: this.disabled()
208
209
  }
209
210
  });
210
211
  }
211
- option;
212
- selected;
213
- label;
214
- disabled;
215
- itemSize;
216
- focused;
217
- ariaPosInset;
218
- ariaSetSize;
219
- variant;
220
- template;
221
- checkIconTemplate;
222
- itemCheckboxIconTemplate;
223
- highlightOnSelect;
212
+ option = input(/* @ts-ignore */
213
+ ...(ngDevMode ? [undefined, { debugName: "option" }] : /* istanbul ignore next */ []));
214
+ selected = input(undefined, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
215
+ label = input(/* @ts-ignore */
216
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
217
+ disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
218
+ itemSize = input(undefined, { ...(ngDevMode ? { debugName: "itemSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
219
+ focused = input(undefined, { ...(ngDevMode ? { debugName: "focused" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
220
+ ariaPosInset = input(/* @ts-ignore */
221
+ ...(ngDevMode ? [undefined, { debugName: "ariaPosInset" }] : /* istanbul ignore next */ []));
222
+ ariaSetSize = input(/* @ts-ignore */
223
+ ...(ngDevMode ? [undefined, { debugName: "ariaSetSize" }] : /* istanbul ignore next */ []));
224
+ variant = input(/* @ts-ignore */
225
+ ...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
226
+ template = input(/* @ts-ignore */
227
+ ...(ngDevMode ? [undefined, { debugName: "template" }] : /* istanbul ignore next */ []));
228
+ itemCheckboxIconTemplate = input(/* @ts-ignore */
229
+ ...(ngDevMode ? [undefined, { debugName: "itemCheckboxIconTemplate" }] : /* istanbul ignore next */ []));
230
+ highlightOnSelect = input(undefined, { ...(ngDevMode ? { debugName: "highlightOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
224
231
  onClick = output();
225
232
  onMouseEnter = output();
226
233
  _componentStyle = inject(MultiSelectStyle);
227
234
  onOptionClick(event) {
228
235
  this.onClick.emit({
229
236
  originalEvent: event,
230
- option: this.option,
231
- selected: this.selected
237
+ option: this.option(),
238
+ selected: this.selected()
232
239
  });
233
240
  event.stopPropagation();
234
241
  event.preventDefault();
@@ -236,440 +243,401 @@ class MultiSelectItem extends BaseComponent {
236
243
  onOptionMouseEnter(event) {
237
244
  this.onMouseEnter.emit({
238
245
  originalEvent: event,
239
- option: this.option,
240
- selected: this.selected
246
+ option: this.option(),
247
+ selected: this.selected()
241
248
  });
242
249
  }
243
250
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelectItem, deps: null, target: i0.ɵɵFactoryTarget.Component });
244
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MultiSelectItem, isStandalone: true, selector: "li[pMultiSelectItem]", inputs: { option: "option", selected: ["selected", "selected", booleanAttribute], label: "label", disabled: ["disabled", "disabled", booleanAttribute], itemSize: ["itemSize", "itemSize", numberAttribute], focused: ["focused", "focused", booleanAttribute], ariaPosInset: "ariaPosInset", ariaSetSize: "ariaSetSize", variant: "variant", template: "template", checkIconTemplate: "checkIconTemplate", itemCheckboxIconTemplate: "itemCheckboxIconTemplate", highlightOnSelect: ["highlightOnSelect", "highlightOnSelect", booleanAttribute] }, 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: `
245
- <p-checkbox [ngModel]="selected" [ngModelOptions]="{ standalone: true }" [binary]="true" [tabindex]="-1" [variant]="variant" [ariaLabel]="label" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
246
- @if (itemCheckboxIconTemplate) {
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()">
253
+ @if (itemCheckboxIconTemplate()) {
247
254
  <ng-template #icon let-klass="class">
248
- <ng-template *ngTemplateOutlet="itemCheckboxIconTemplate; context: { checked: selected, class: klass }"></ng-template>
255
+ <ng-template *ngTemplateOutlet="itemCheckboxIconTemplate(); context: { checked: selected(), class: klass }"></ng-template>
249
256
  </ng-template>
250
257
  }
251
258
  </p-checkbox>
252
- @if (!template) {
253
- <span>{{ label ?? 'empty' }}</span>
259
+ @if (!template()) {
260
+ <span>{{ label() ?? 'empty' }}</span>
254
261
  }
255
- <ng-container *ngTemplateOutlet="template; context: { $implicit: option }"></ng-container>
256
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "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: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
262
+ <ng-container *ngTemplateOutlet="template(); context: { $implicit: option() }"></ng-container>
263
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
257
264
  }
258
265
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelectItem, decorators: [{
259
266
  type: Component,
260
267
  args: [{
261
- changeDetection: ChangeDetectionStrategy.Eager,
268
+ changeDetection: ChangeDetectionStrategy.OnPush,
262
269
  selector: 'li[pMultiSelectItem]',
263
- standalone: true,
264
270
  imports: [CommonModule, Checkbox, FormsModule, SharedModule],
265
271
  template: `
266
- <p-checkbox [ngModel]="selected" [ngModelOptions]="{ standalone: true }" [binary]="true" [tabindex]="-1" [variant]="variant" [ariaLabel]="label" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
267
- @if (itemCheckboxIconTemplate) {
272
+ <p-checkbox [ngModel]="selected()" [ngModelOptions]="{ standalone: true }" [binary]="true" [tabindex]="-1" [variant]="variant()" [ariaLabel]="label()" [pt]="getPTOptions('pcOptionCheckbox')" [unstyled]="unstyled()">
273
+ @if (itemCheckboxIconTemplate()) {
268
274
  <ng-template #icon let-klass="class">
269
- <ng-template *ngTemplateOutlet="itemCheckboxIconTemplate; context: { checked: selected, class: klass }"></ng-template>
275
+ <ng-template *ngTemplateOutlet="itemCheckboxIconTemplate(); context: { checked: selected(), class: klass }"></ng-template>
270
276
  </ng-template>
271
277
  }
272
278
  </p-checkbox>
273
- @if (!template) {
274
- <span>{{ label ?? 'empty' }}</span>
279
+ @if (!template()) {
280
+ <span>{{ label() ?? 'empty' }}</span>
275
281
  }
276
- <ng-container *ngTemplateOutlet="template; context: { $implicit: option }"></ng-container>
282
+ <ng-container *ngTemplateOutlet="template(); context: { $implicit: option() }"></ng-container>
277
283
  `,
278
284
  encapsulation: ViewEncapsulation.None,
279
285
  providers: [MultiSelectStyle],
280
286
  host: {
281
- '[style.height.px]': 'itemSize',
282
- '[attr.aria-label]': 'label',
287
+ '[style.height.px]': 'itemSize()',
288
+ '[attr.aria-label]': 'label()',
283
289
  role: 'option',
284
- '[attr.aria-setsize]': 'ariaSetSize',
285
- '[attr.aria-posinset]': 'ariaPosInset',
286
- '[attr.aria-selected]': 'selected',
287
- '[attr.data-p-selected]': 'selected',
288
- '[attr.data-p-focused]': 'focused',
289
- '[attr.data-p-highlight]': 'selected',
290
- '[attr.data-p-disabled]': 'disabled',
291
- '[attr.aria-checked]': 'selected',
290
+ '[attr.aria-setsize]': 'ariaSetSize()',
291
+ '[attr.aria-posinset]': 'ariaPosInset()',
292
+ '[attr.aria-selected]': 'selected()',
293
+ '[attr.data-p-selected]': 'selected()',
294
+ '[attr.data-p-focused]': 'focused()',
295
+ '[attr.data-p-highlight]': 'selected()',
296
+ '[attr.data-p-disabled]': 'disabled()',
297
+ '[attr.aria-checked]': 'selected()',
292
298
  '(click)': 'onOptionClick($event)',
293
299
  '(mouseenter)': 'onOptionMouseEnter($event)',
294
300
  '[class]': "cx('option')"
295
301
  }
296
302
  }]
297
- }], propDecorators: { option: [{
298
- type: Input
299
- }], selected: [{
300
- type: Input,
301
- args: [{ transform: booleanAttribute }]
302
- }], label: [{
303
- type: Input
304
- }], disabled: [{
305
- type: Input,
306
- args: [{ transform: booleanAttribute }]
307
- }], itemSize: [{
308
- type: Input,
309
- args: [{ transform: numberAttribute }]
310
- }], focused: [{
311
- type: Input,
312
- args: [{ transform: booleanAttribute }]
313
- }], ariaPosInset: [{
314
- type: Input
315
- }], ariaSetSize: [{
316
- type: Input
317
- }], variant: [{
318
- type: Input
319
- }], template: [{
320
- type: Input
321
- }], checkIconTemplate: [{
322
- type: Input
323
- }], itemCheckboxIconTemplate: [{
324
- type: Input
325
- }], highlightOnSelect: [{
326
- type: Input,
327
- args: [{ transform: booleanAttribute }]
328
- }], onClick: [{ type: i0.Output, args: ["onClick"] }], onMouseEnter: [{ type: i0.Output, args: ["onMouseEnter"] }] } });
303
+ }], propDecorators: { option: [{ type: i0.Input, args: [{ isSignal: true, alias: "option", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], focused: [{ type: i0.Input, args: [{ isSignal: true, alias: "focused", required: false }] }], ariaPosInset: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaPosInset", required: false }] }], ariaSetSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaSetSize", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], itemCheckboxIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemCheckboxIconTemplate", required: false }] }], highlightOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightOnSelect", required: false }] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onMouseEnter: [{ type: i0.Output, args: ["onMouseEnter"] }] } });
329
304
  /**
330
305
  * MultiSelect is used to select multiple items from a collection.
331
306
  * @group Components
332
307
  */
333
308
  class MultiSelect extends BaseEditableHolder {
334
- zone = inject(NgZone);
335
309
  filterService = inject(FilterService);
336
- overlayService = inject(OverlayService);
337
310
  componentName = 'MultiSelect';
338
311
  /**
339
312
  * Unique identifier of the component
340
313
  * @group Props
341
314
  */
342
- id;
315
+ id = input(/* @ts-ignore */
316
+ ...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
343
317
  /**
344
318
  * Defines a string that labels the input for accessibility.
345
319
  * @group Props
346
320
  */
347
- ariaLabel;
348
- /**
349
- * Style class of the element.
350
- * @deprecated since v20.0.0, use `class` instead.
351
- * @group Props
352
- */
353
- styleClass;
321
+ ariaLabel = input(/* @ts-ignore */
322
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
354
323
  /**
355
324
  * Inline style of the overlay panel.
356
325
  * @group Props
357
326
  */
358
- panelStyle;
327
+ panelStyle = input(/* @ts-ignore */
328
+ ...(ngDevMode ? [undefined, { debugName: "panelStyle" }] : /* istanbul ignore next */ []));
359
329
  /**
360
330
  * Style class of the overlay panel element.
361
331
  * @group Props
362
332
  */
363
- panelStyleClass;
333
+ panelStyleClass = input(/* @ts-ignore */
334
+ ...(ngDevMode ? [undefined, { debugName: "panelStyleClass" }] : /* istanbul ignore next */ []));
364
335
  /**
365
336
  * Identifier of the focus input to match a label defined for the component.
366
337
  * @group Props
367
338
  */
368
- inputId;
339
+ inputId = input(/* @ts-ignore */
340
+ ...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
369
341
  /**
370
342
  * When present, it specifies that the component cannot be edited.
371
343
  * @group Props
372
344
  */
373
- readonly;
345
+ readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
374
346
  /**
375
347
  * Whether to display options as grouped when nested options are provided.
376
348
  * @group Props
377
349
  */
378
- group;
350
+ group = input(undefined, { ...(ngDevMode ? { debugName: "group" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
379
351
  /**
380
352
  * When specified, displays an input field to filter the items on keyup.
381
353
  * @group Props
382
354
  */
383
- filter = true;
355
+ filter = input(true, { ...(ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
384
356
  /**
385
357
  * Defines placeholder of the filter input.
386
358
  * @group Props
387
359
  */
388
- filterPlaceHolder;
360
+ filterPlaceHolder = input(/* @ts-ignore */
361
+ ...(ngDevMode ? [undefined, { debugName: "filterPlaceHolder" }] : /* istanbul ignore next */ []));
389
362
  /**
390
363
  * Locale to use in filtering. The default locale is the host environment's current locale.
391
364
  * @group Props
392
365
  */
393
- filterLocale;
366
+ filterLocale = input(/* @ts-ignore */
367
+ ...(ngDevMode ? [undefined, { debugName: "filterLocale" }] : /* istanbul ignore next */ []));
394
368
  /**
395
369
  * Specifies the visibility of the options panel.
396
370
  * @group Props
397
371
  */
398
- overlayVisible = false;
372
+ overlayVisible = input(false, { ...(ngDevMode ? { debugName: "overlayVisible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
399
373
  /**
400
374
  * Index of the element in tabbing order.
401
375
  * @group Props
402
376
  */
403
- tabindex = 0;
377
+ tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
404
378
  /**
405
379
  * A property to uniquely identify a value in options.
406
380
  * @group Props
407
381
  */
408
- dataKey;
382
+ dataKey = input(/* @ts-ignore */
383
+ ...(ngDevMode ? [undefined, { debugName: "dataKey" }] : /* istanbul ignore next */ []));
409
384
  /**
410
385
  * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
411
386
  * @group Props
412
387
  */
413
- ariaLabelledBy;
388
+ ariaLabelledBy = input(/* @ts-ignore */
389
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
414
390
  /**
415
391
  * Whether to show labels of selected item labels or use default label.
416
392
  * @group Props
417
393
  * @defaultValue true
418
394
  */
419
- set displaySelectedLabel(val) {
420
- this._displaySelectedLabel = val;
421
- }
422
- get displaySelectedLabel() {
423
- return this._displaySelectedLabel;
424
- }
395
+ displaySelectedLabel = input(true, /* @ts-ignore */
396
+ ...(ngDevMode ? [{ debugName: "displaySelectedLabel" }] : /* istanbul ignore next */ []));
425
397
  /**
426
398
  * Decides how many selected item labels to show at most.
427
399
  * @group Props
428
400
  * @defaultValue 3
429
401
  */
430
- set maxSelectedLabels(val) {
431
- this._maxSelectedLabels = val;
432
- }
433
- get maxSelectedLabels() {
434
- return this._maxSelectedLabels;
435
- }
402
+ maxSelectedLabels = input(3, /* @ts-ignore */
403
+ ...(ngDevMode ? [{ debugName: "maxSelectedLabels" }] : /* istanbul ignore next */ []));
436
404
  /**
437
405
  * Maximum number of selectable items.
438
406
  * @group Props
439
407
  */
440
- selectionLimit;
408
+ selectionLimit = input(undefined, { ...(ngDevMode ? { debugName: "selectionLimit" } : /* istanbul ignore next */ {}), transform: numberAttribute });
441
409
  /**
442
410
  * Label to display after exceeding max selected labels e.g. ({0} items selected), defaults "ellipsis" keyword to indicate a text-overflow.
443
411
  * @group Props
444
412
  */
445
- selectedItemsLabel;
413
+ selectedItemsLabel = input(/* @ts-ignore */
414
+ ...(ngDevMode ? [undefined, { debugName: "selectedItemsLabel" }] : /* istanbul ignore next */ []));
446
415
  /**
447
416
  * Whether to show the checkbox at header to toggle all items at once.
448
417
  * @group Props
449
418
  */
450
- showToggleAll = true;
419
+ showToggleAll = input(true, { ...(ngDevMode ? { debugName: "showToggleAll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
451
420
  /**
452
421
  * Text to display when filtering does not return any results.
453
422
  * @group Props
454
423
  */
455
- emptyFilterMessage = '';
424
+ emptyFilterMessage = input('', /* @ts-ignore */
425
+ ...(ngDevMode ? [{ debugName: "emptyFilterMessage" }] : /* istanbul ignore next */ []));
456
426
  /**
457
427
  * Text to display when there is no data. Defaults to global value in i18n translation configuration.
458
428
  * @group Props
459
429
  */
460
- emptyMessage = '';
430
+ emptyMessage = input('', /* @ts-ignore */
431
+ ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
461
432
  /**
462
433
  * Clears the filter value when hiding the dropdown.
463
434
  * @group Props
464
435
  */
465
- resetFilterOnHide = false;
436
+ resetFilterOnHide = input(false, { ...(ngDevMode ? { debugName: "resetFilterOnHide" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
466
437
  /**
467
438
  * Icon class of the dropdown icon.
468
439
  * @group Props
469
440
  */
470
- dropdownIcon;
441
+ dropdownIcon = input(/* @ts-ignore */
442
+ ...(ngDevMode ? [undefined, { debugName: "dropdownIcon" }] : /* istanbul ignore next */ []));
471
443
  /**
472
444
  * Icon class of the chip icon.
473
445
  * @group Props
474
446
  */
475
- chipIcon;
447
+ chipIcon = input(/* @ts-ignore */
448
+ ...(ngDevMode ? [undefined, { debugName: "chipIcon" }] : /* istanbul ignore next */ []));
476
449
  /**
477
450
  * Name of the label field of an option.
478
451
  * @group Props
479
452
  */
480
- optionLabel;
453
+ optionLabel = input(/* @ts-ignore */
454
+ ...(ngDevMode ? [undefined, { debugName: "optionLabel" }] : /* istanbul ignore next */ []));
481
455
  /**
482
456
  * Name of the value field of an option.
483
457
  * @group Props
484
458
  */
485
- optionValue;
459
+ optionValue = input(/* @ts-ignore */
460
+ ...(ngDevMode ? [undefined, { debugName: "optionValue" }] : /* istanbul ignore next */ []));
486
461
  /**
487
462
  * Name of the disabled field of an option.
488
463
  * @group Props
489
464
  */
490
- optionDisabled;
465
+ optionDisabled = input(/* @ts-ignore */
466
+ ...(ngDevMode ? [undefined, { debugName: "optionDisabled" }] : /* istanbul ignore next */ []));
491
467
  /**
492
468
  * Name of the label field of an option group.
493
469
  * @group Props
494
470
  */
495
- optionGroupLabel = 'label';
471
+ optionGroupLabel = input('label', /* @ts-ignore */
472
+ ...(ngDevMode ? [{ debugName: "optionGroupLabel" }] : /* istanbul ignore next */ []));
496
473
  /**
497
474
  * Name of the options field of an option group.
498
475
  * @group Props
499
476
  */
500
- optionGroupChildren = 'items';
477
+ optionGroupChildren = input('items', /* @ts-ignore */
478
+ ...(ngDevMode ? [{ debugName: "optionGroupChildren" }] : /* istanbul ignore next */ []));
501
479
  /**
502
480
  * Whether to show the header.
503
481
  * @group Props
504
482
  */
505
- showHeader = true;
483
+ showHeader = input(true, { ...(ngDevMode ? { debugName: "showHeader" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
506
484
  /**
507
485
  * When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
508
486
  * @group Props
509
487
  */
510
- filterBy;
488
+ filterBy = input(/* @ts-ignore */
489
+ ...(ngDevMode ? [undefined, { debugName: "filterBy" }] : /* istanbul ignore next */ []));
511
490
  /**
512
491
  * Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
513
492
  * @group Props
514
493
  */
515
- scrollHeight = '200px';
494
+ scrollHeight = input('200px', /* @ts-ignore */
495
+ ...(ngDevMode ? [{ debugName: "scrollHeight" }] : /* istanbul ignore next */ []));
516
496
  /**
517
497
  * Defines if data is loaded and interacted with in lazy manner.
518
498
  * @group Props
519
499
  */
520
- lazy = false;
500
+ lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
521
501
  /**
522
502
  * Whether the data should be loaded on demand during scroll.
523
503
  * @group Props
524
504
  */
525
- virtualScroll;
505
+ virtualScroll = input(undefined, { ...(ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
526
506
  /**
527
507
  * Whether the multiselect is in loading state.
528
508
  * @group Props
529
509
  */
530
- loading = false;
510
+ loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
531
511
  /**
532
512
  * Height of an item in the list for VirtualScrolling.
533
513
  * @group Props
534
514
  */
535
- virtualScrollItemSize;
515
+ virtualScrollItemSize = input(undefined, { ...(ngDevMode ? { debugName: "virtualScrollItemSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
536
516
  /**
537
517
  * Icon to display in loading state.
538
518
  * @group Props
539
519
  */
540
- loadingIcon;
520
+ loadingIcon = input(/* @ts-ignore */
521
+ ...(ngDevMode ? [undefined, { debugName: "loadingIcon" }] : /* istanbul ignore next */ []));
541
522
  /**
542
523
  * Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
543
524
  * @group Props
544
525
  */
545
- virtualScrollOptions;
526
+ virtualScrollOptions = input(/* @ts-ignore */
527
+ ...(ngDevMode ? [undefined, { debugName: "virtualScrollOptions" }] : /* istanbul ignore next */ []));
546
528
  /**
547
529
  * Whether to use overlay API feature. The properties of overlay API can be used like an object in it.
548
530
  * @group Props
549
531
  */
550
- overlayOptions;
532
+ overlayOptions = input(/* @ts-ignore */
533
+ ...(ngDevMode ? [undefined, { debugName: "overlayOptions" }] : /* istanbul ignore next */ []));
551
534
  /**
552
535
  * Defines a string that labels the filter input.
553
536
  * @group Props
554
537
  */
555
- ariaFilterLabel;
538
+ ariaFilterLabel = input(/* @ts-ignore */
539
+ ...(ngDevMode ? [undefined, { debugName: "ariaFilterLabel" }] : /* istanbul ignore next */ []));
556
540
  /**
557
541
  * Defines how the items are filtered.
558
542
  * @group Props
559
543
  */
560
- filterMatchMode = 'contains';
544
+ filterMatchMode = input('contains', /* @ts-ignore */
545
+ ...(ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []));
561
546
  /**
562
547
  * Advisory information to display in a tooltip on hover.
563
548
  * @group Props
564
549
  */
565
- tooltip = '';
550
+ tooltip = input('', /* @ts-ignore */
551
+ ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
566
552
  /**
567
553
  * Position of the tooltip.
568
554
  * @group Props
569
555
  */
570
- tooltipPosition = 'right';
556
+ tooltipPosition = input('right', /* @ts-ignore */
557
+ ...(ngDevMode ? [{ debugName: "tooltipPosition" }] : /* istanbul ignore next */ []));
571
558
  /**
572
559
  * Type of CSS position.
573
560
  * @group Props
574
561
  */
575
- tooltipPositionStyle = 'absolute';
562
+ tooltipPositionStyle = input('absolute', /* @ts-ignore */
563
+ ...(ngDevMode ? [{ debugName: "tooltipPositionStyle" }] : /* istanbul ignore next */ []));
576
564
  /**
577
565
  * Style class of the tooltip.
578
566
  * @group Props
579
567
  */
580
- tooltipStyleClass;
568
+ tooltipStyleClass = input(/* @ts-ignore */
569
+ ...(ngDevMode ? [undefined, { debugName: "tooltipStyleClass" }] : /* istanbul ignore next */ []));
581
570
  /**
582
571
  * Applies focus to the filter element when the overlay is shown.
583
572
  * @group Props
584
573
  */
585
- autofocusFilter = false;
574
+ autofocusFilter = input(false, { ...(ngDevMode ? { debugName: "autofocusFilter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
586
575
  /**
587
576
  * Defines how the selected items are displayed.
588
577
  * @group Props
589
578
  */
590
- display = 'comma';
579
+ display = input('comma', /* @ts-ignore */
580
+ ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
591
581
  /**
592
582
  * Defines the autocomplete is active.
593
583
  * @group Props
594
584
  */
595
- autocomplete = 'off';
585
+ autocomplete = input('off', /* @ts-ignore */
586
+ ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
596
587
  /**
597
588
  * When enabled, a clear icon is displayed to clear the value.
598
589
  * @group Props
599
590
  */
600
- showClear = false;
591
+ showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
601
592
  /**
602
593
  * When present, it specifies that the component should automatically get focus on load.
603
594
  * @group Props
604
595
  */
605
- autofocus;
596
+ autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
606
597
  /**
607
598
  * Label to display when there are no selections.
608
599
  * @group Props
609
600
  */
610
- set placeholder(val) {
611
- this._placeholder.set(val);
612
- }
613
- get placeholder() {
614
- return this._placeholder.asReadonly();
615
- }
601
+ placeholder = input(/* @ts-ignore */
602
+ ...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
616
603
  /**
617
604
  * An array of objects to display as the available options.
618
605
  * @group Props
619
606
  */
620
- get options() {
621
- return this._options();
622
- }
623
- set options(val) {
624
- if (!deepEquals(this._options(), val)) {
625
- this._options.set(val || []);
626
- }
627
- }
607
+ options = input(/* @ts-ignore */
608
+ ...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
628
609
  /**
629
610
  * When specified, filter displays with this value.
630
611
  * @group Props
631
612
  */
632
- get filterValue() {
633
- return this._filterValue();
634
- }
635
- set filterValue(val) {
636
- this._filterValue.set(val);
637
- }
613
+ filterValue = input(null, /* @ts-ignore */
614
+ ...(ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []));
638
615
  /**
639
616
  * Whether all data is selected.
640
617
  * @group Props
641
618
  */
642
- get selectAll() {
643
- return this._selectAll;
644
- }
645
- set selectAll(value) {
646
- this._selectAll = value;
647
- }
619
+ selectAll = input(null, /* @ts-ignore */
620
+ ...(ngDevMode ? [{ debugName: "selectAll" }] : /* istanbul ignore next */ []));
648
621
  /**
649
622
  * Indicates whether to focus on options when hovering over them, defaults to optionLabel.
650
623
  * @group Props
651
624
  */
652
- focusOnHover = true;
653
- /**
654
- * Fields used when filtering the options, defaults to optionLabel.
655
- * @group Props
656
- */
657
- filterFields;
625
+ focusOnHover = input(true, { ...(ngDevMode ? { debugName: "focusOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
658
626
  /**
659
627
  * Determines if the option will be selected on focus.
660
628
  * @group Props
661
629
  */
662
- selectOnFocus = false;
630
+ selectOnFocus = input(false, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
663
631
  /**
664
632
  * Whether to focus on the first visible or selected element when the overlay panel is shown.
665
633
  * @group Props
666
634
  */
667
- autoOptionFocus = false;
635
+ autoOptionFocus = input(false, { ...(ngDevMode ? { debugName: "autoOptionFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
668
636
  /**
669
637
  * Whether the selected option will be add highlight class.
670
638
  * @group Props
671
639
  */
672
- highlightOnSelect = true;
640
+ highlightOnSelect = input(true, { ...(ngDevMode ? { debugName: "highlightOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
673
641
  /**
674
642
  * Specifies the size of the component.
675
643
  * @defaultValue undefined
@@ -788,16 +756,14 @@ class MultiSelect extends BaseEditableHolder {
788
756
  ...(ngDevMode ? [{ debugName: "footerFacet" }] : /* istanbul ignore next */ []));
789
757
  _componentStyle = inject(MultiSelectStyle);
790
758
  bindDirectiveInstance = inject(Bind, { self: true });
791
- searchValue;
792
- searchTimeout;
793
- _selectAll = null;
794
- _placeholder = signal(undefined, /* @ts-ignore */
795
- ...(ngDevMode ? [{ debugName: "_placeholder" }] : /* istanbul ignore next */ []));
796
- _disableTooltip = false;
797
- value;
798
- _filteredOptions;
799
- focus;
800
- filtered;
759
+ searchValue = signal(undefined, /* @ts-ignore */
760
+ ...(ngDevMode ? [{ debugName: "searchValue" }] : /* istanbul ignore next */ []));
761
+ searchTimeout = signal(undefined, /* @ts-ignore */
762
+ ...(ngDevMode ? [{ debugName: "searchTimeout" }] : /* istanbul ignore next */ []));
763
+ _disableTooltip = signal(false, /* @ts-ignore */
764
+ ...(ngDevMode ? [{ debugName: "_disableTooltip" }] : /* istanbul ignore next */ []));
765
+ value = signal(undefined, /* @ts-ignore */
766
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
801
767
  /**
802
768
  * Custom item template.
803
769
  * @group Templates
@@ -885,143 +851,164 @@ class MultiSelect extends BaseEditableHolder {
885
851
  headerCheckboxIconTemplate = contentChild('headercheckboxicon', { ...(ngDevMode ? { debugName: "headerCheckboxIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
886
852
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
887
853
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
888
- _itemTemplate;
889
- _groupTemplate;
890
- _loaderTemplate;
891
- _headerTemplate;
892
- _filterTemplate;
893
- _footerTemplate;
894
- _emptyFilterTemplate;
895
- _emptyTemplate;
896
- _selectedItemsTemplate;
897
- _loadingIconTemplate;
898
- _filterIconTemplate;
899
- _removeTokenIconTemplate;
900
- _chipIconTemplate;
901
- _clearIconTemplate;
902
- _dropdownIconTemplate;
903
- _itemCheckboxIconTemplate;
904
- _headerCheckboxIconTemplate;
854
+ _itemTemplate = computed(() => this.templates()
855
+ .filter((item) => ![
856
+ 'group',
857
+ 'selectedItems',
858
+ 'selecteditems',
859
+ 'header',
860
+ 'filter',
861
+ 'emptyfilter',
862
+ 'empty',
863
+ 'footer',
864
+ 'loader',
865
+ 'headercheckboxicon',
866
+ 'loadingicon',
867
+ 'filtericon',
868
+ 'removetokenicon',
869
+ 'clearicon',
870
+ 'dropdownicon',
871
+ 'itemcheckboxicon',
872
+ 'chipicon'
873
+ ].includes(item.getType()))
874
+ .at(-1)?.template, /* @ts-ignore */
875
+ ...(ngDevMode ? [{ debugName: "_itemTemplate" }] : /* istanbul ignore next */ []));
876
+ _groupTemplate = computed(() => this.templates()
877
+ .filter((item) => item.getType() === 'group')
878
+ .at(-1)?.template, /* @ts-ignore */
879
+ ...(ngDevMode ? [{ debugName: "_groupTemplate" }] : /* istanbul ignore next */ []));
880
+ _loaderTemplate = computed(() => this.templates()
881
+ .filter((item) => item.getType() === 'loader')
882
+ .at(-1)?.template, /* @ts-ignore */
883
+ ...(ngDevMode ? [{ debugName: "_loaderTemplate" }] : /* istanbul ignore next */ []));
884
+ _headerTemplate = computed(() => this.templates()
885
+ .filter((item) => item.getType() === 'header')
886
+ .at(-1)?.template, /* @ts-ignore */
887
+ ...(ngDevMode ? [{ debugName: "_headerTemplate" }] : /* istanbul ignore next */ []));
888
+ _filterTemplate = computed(() => this.templates()
889
+ .filter((item) => item.getType() === 'filter')
890
+ .at(-1)?.template, /* @ts-ignore */
891
+ ...(ngDevMode ? [{ debugName: "_filterTemplate" }] : /* istanbul ignore next */ []));
892
+ _footerTemplate = computed(() => this.templates()
893
+ .filter((item) => item.getType() === 'footer')
894
+ .at(-1)?.template, /* @ts-ignore */
895
+ ...(ngDevMode ? [{ debugName: "_footerTemplate" }] : /* istanbul ignore next */ []));
896
+ _emptyFilterTemplate = computed(() => this.templates()
897
+ .filter((item) => item.getType() === 'emptyfilter')
898
+ .at(-1)?.template, /* @ts-ignore */
899
+ ...(ngDevMode ? [{ debugName: "_emptyFilterTemplate" }] : /* istanbul ignore next */ []));
900
+ _emptyTemplate = computed(() => this.templates()
901
+ .filter((item) => item.getType() === 'empty')
902
+ .at(-1)?.template, /* @ts-ignore */
903
+ ...(ngDevMode ? [{ debugName: "_emptyTemplate" }] : /* istanbul ignore next */ []));
904
+ _selectedItemsTemplate = computed(() => this.templates()
905
+ .filter((item) => ['selectedItems', 'selecteditems'].includes(item.getType()))
906
+ .at(-1)?.template, /* @ts-ignore */
907
+ ...(ngDevMode ? [{ debugName: "_selectedItemsTemplate" }] : /* istanbul ignore next */ []));
908
+ _loadingIconTemplate = computed(() => this.templates()
909
+ .filter((item) => item.getType() === 'loadingicon')
910
+ .at(-1)?.template, /* @ts-ignore */
911
+ ...(ngDevMode ? [{ debugName: "_loadingIconTemplate" }] : /* istanbul ignore next */ []));
912
+ _filterIconTemplate = computed(() => this.templates()
913
+ .filter((item) => item.getType() === 'filtericon')
914
+ .at(-1)?.template, /* @ts-ignore */
915
+ ...(ngDevMode ? [{ debugName: "_filterIconTemplate" }] : /* istanbul ignore next */ []));
916
+ _removeTokenIconTemplate = computed(() => this.templates()
917
+ .filter((item) => item.getType() === 'removetokenicon')
918
+ .at(-1)?.template, /* @ts-ignore */
919
+ ...(ngDevMode ? [{ debugName: "_removeTokenIconTemplate" }] : /* istanbul ignore next */ []));
920
+ _chipIconTemplate = computed(() => this.templates()
921
+ .filter((item) => item.getType() === 'chipicon')
922
+ .at(-1)?.template, /* @ts-ignore */
923
+ ...(ngDevMode ? [{ debugName: "_chipIconTemplate" }] : /* istanbul ignore next */ []));
924
+ _clearIconTemplate = computed(() => this.templates()
925
+ .filter((item) => item.getType() === 'clearicon')
926
+ .at(-1)?.template, /* @ts-ignore */
927
+ ...(ngDevMode ? [{ debugName: "_clearIconTemplate" }] : /* istanbul ignore next */ []));
928
+ _dropdownIconTemplate = computed(() => this.templates()
929
+ .filter((item) => item.getType() === 'dropdownicon')
930
+ .at(-1)?.template, /* @ts-ignore */
931
+ ...(ngDevMode ? [{ debugName: "_dropdownIconTemplate" }] : /* istanbul ignore next */ []));
932
+ _itemCheckboxIconTemplate = computed(() => this.templates()
933
+ .filter((item) => item.getType() === 'itemcheckboxicon')
934
+ .at(-1)?.template, /* @ts-ignore */
935
+ ...(ngDevMode ? [{ debugName: "_itemCheckboxIconTemplate" }] : /* istanbul ignore next */ []));
936
+ _headerCheckboxIconTemplate = computed(() => this.templates()
937
+ .filter((item) => item.getType() === 'headercheckboxicon')
938
+ .at(-1)?.template, /* @ts-ignore */
939
+ ...(ngDevMode ? [{ debugName: "_headerCheckboxIconTemplate" }] : /* istanbul ignore next */ []));
905
940
  $variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant(), /* @ts-ignore */
906
941
  ...(ngDevMode ? [{ debugName: "$variant" }] : /* istanbul ignore next */ []));
907
942
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
908
943
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
909
944
  $pcMultiSelect = inject(MULTISELECT_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
910
945
  pcFluid = inject(Fluid, { optional: true, host: true, skipSelf: true });
911
- get hasFluid() {
912
- return this.fluid() ?? !!this.pcFluid;
913
- }
914
- onAfterContentInit() {
915
- this.templates().forEach((item) => {
916
- switch (item.getType()) {
917
- case 'item':
918
- this._itemTemplate = item.template;
919
- break;
920
- case 'group':
921
- this._groupTemplate = item.template;
922
- break;
923
- case 'selectedItems':
924
- case 'selecteditems':
925
- this._selectedItemsTemplate = item.template;
926
- break;
927
- case 'header':
928
- this._headerTemplate = item.template;
929
- break;
930
- case 'filter':
931
- this._filterTemplate = item.template;
932
- break;
933
- case 'emptyfilter':
934
- this._emptyFilterTemplate = item.template;
935
- break;
936
- case 'empty':
937
- this._emptyTemplate = item.template;
938
- break;
939
- case 'footer':
940
- this._footerTemplate = item.template;
941
- break;
942
- case 'loader':
943
- this._loaderTemplate = item.template;
944
- break;
945
- case 'headercheckboxicon':
946
- this._headerCheckboxIconTemplate = item.template;
947
- break;
948
- case 'loadingicon':
949
- this._loadingIconTemplate = item.template;
950
- break;
951
- case 'filtericon':
952
- this._filterIconTemplate = item.template;
953
- break;
954
- case 'removetokenicon':
955
- this._removeTokenIconTemplate = item.template;
956
- break;
957
- case 'clearicon':
958
- this._clearIconTemplate = item.template;
959
- break;
960
- case 'dropdownicon':
961
- this._dropdownIconTemplate = item.template;
962
- break;
963
- case 'itemcheckboxicon':
964
- this._itemCheckboxIconTemplate = item.template;
965
- break;
966
- case 'chipicon':
967
- this._chipIconTemplate = item.template;
968
- break;
969
- default:
970
- this._itemTemplate = item.template;
971
- break;
972
- }
973
- });
974
- }
975
- headerCheckboxFocus;
976
- filterOptions;
977
- preventModelTouched;
978
- focused = false;
979
- itemsWrapper;
980
- _displaySelectedLabel = true;
981
- _maxSelectedLabels = 3;
946
+ hasFluid = computed(() => this.fluid() ?? !!this.pcFluid, /* @ts-ignore */
947
+ ...(ngDevMode ? [{ debugName: "hasFluid" }] : /* istanbul ignore next */ []));
948
+ filterOptions = computed(() => this.filterBy()
949
+ ? {
950
+ filter: (value) => this.onFilterInputChange(value),
951
+ reset: () => this.resetFilter()
952
+ }
953
+ : undefined, /* @ts-ignore */
954
+ ...(ngDevMode ? [{ debugName: "filterOptions" }] : /* istanbul ignore next */ []));
955
+ preventModelTouched = signal(undefined, /* @ts-ignore */
956
+ ...(ngDevMode ? [{ debugName: "preventModelTouched" }] : /* istanbul ignore next */ []));
957
+ focused = signal(false, /* @ts-ignore */
958
+ ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
959
+ itemsWrapper = signal(undefined, /* @ts-ignore */
960
+ ...(ngDevMode ? [{ debugName: "itemsWrapper" }] : /* istanbul ignore next */ []));
982
961
  modelValue = signal(null, /* @ts-ignore */
983
962
  ...(ngDevMode ? [{ debugName: "modelValue" }] : /* istanbul ignore next */ []));
984
- _filterValue = signal(null, /* @ts-ignore */
963
+ _filterValue = linkedSignal(() => this.filterValue(), /* @ts-ignore */
985
964
  ...(ngDevMode ? [{ debugName: "_filterValue" }] : /* istanbul ignore next */ []));
986
- _options = signal([], /* @ts-ignore */
987
- ...(ngDevMode ? [{ debugName: "_options" }] : /* istanbul ignore next */ []));
965
+ _options = computed(() => this.options() || [], { ...(ngDevMode ? { debugName: "_options" } : /* istanbul ignore next */ {}), equal: deepEquals });
966
+ _overlayVisible = linkedSignal(() => this.overlayVisible(), /* @ts-ignore */
967
+ ...(ngDevMode ? [{ debugName: "_overlayVisible" }] : /* istanbul ignore next */ []));
988
968
  startRangeIndex = signal(-1, /* @ts-ignore */
989
969
  ...(ngDevMode ? [{ debugName: "startRangeIndex" }] : /* istanbul ignore next */ []));
990
970
  focusedOptionIndex = signal(-1, /* @ts-ignore */
991
971
  ...(ngDevMode ? [{ debugName: "focusedOptionIndex" }] : /* istanbul ignore next */ []));
992
- selectedOptions;
993
- clickInProgress = false;
994
- get emptyMessageLabel() {
995
- return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);
996
- }
997
- get emptyFilterMessageLabel() {
998
- return this.emptyFilterMessage || this.config.getTranslation(TranslationKeys.EMPTY_FILTER_MESSAGE);
999
- }
1000
- get isVisibleClearIcon() {
1001
- return this.modelValue() != null && this.modelValue() !== '' && isNotEmpty(this.modelValue()) && this.showClear && !this.$disabled() && !this.readonly && this.$filled();
1002
- }
1003
- get toggleAllAriaLabel() {
1004
- return this.config.translation.aria ? this.config.translation.aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined;
1005
- }
1006
- get listLabel() {
1007
- return this.config.getTranslation(TranslationKeys.ARIA)['listLabel'];
1008
- }
1009
- getAllVisibleAndNonVisibleOptions() {
1010
- return this.group ? this.flatOptions(this.options) : this.options || [];
1011
- }
972
+ selectedOptions = linkedSignal({ ...(ngDevMode ? { debugName: "selectedOptions" } : /* istanbul ignore next */ {}), source: () => ({ modelValue: this.modelValue(), options: this.getAllVisibleAndNonVisibleOptions(), optionValue: this.optionValue(), optionLabel: this.optionLabel() }),
973
+ computation: ({ modelValue, options, optionValue, optionLabel }, previous) => {
974
+ if (options && isNotEmpty(options)) {
975
+ if (optionValue && optionLabel && modelValue) {
976
+ return options.filter((option) => modelValue.includes(option[optionLabel]) || modelValue.includes(option[optionValue]));
977
+ }
978
+ return modelValue;
979
+ }
980
+ return previous?.value;
981
+ } });
982
+ clickInProgress = signal(false, /* @ts-ignore */
983
+ ...(ngDevMode ? [{ debugName: "clickInProgress" }] : /* istanbul ignore next */ []));
984
+ translation = toSignal(this.config.translationObserver, { initialValue: this.config.translation });
985
+ _id = computed(() => this.id() || uuid('pn_id_'), /* @ts-ignore */
986
+ ...(ngDevMode ? [{ debugName: "_id" }] : /* istanbul ignore next */ []));
987
+ emptyMessageLabel = computed(() => this.emptyMessage() || this.translation()[TranslationKeys.EMPTY_MESSAGE], /* @ts-ignore */
988
+ ...(ngDevMode ? [{ debugName: "emptyMessageLabel" }] : /* istanbul ignore next */ []));
989
+ emptyFilterMessageLabel = computed(() => this.emptyFilterMessage() || this.translation()[TranslationKeys.EMPTY_FILTER_MESSAGE], /* @ts-ignore */
990
+ ...(ngDevMode ? [{ debugName: "emptyFilterMessageLabel" }] : /* istanbul ignore next */ []));
991
+ isVisibleClearIcon = computed(() => this.modelValue() != null && this.modelValue() !== '' && isNotEmpty(this.modelValue()) && this.showClear() && !this.$disabled() && !this.readonly() && this.$filled(), /* @ts-ignore */
992
+ ...(ngDevMode ? [{ debugName: "isVisibleClearIcon" }] : /* istanbul ignore next */ []));
993
+ toggleAllAriaLabel = computed(() => (this.translation().aria ? this.translation().aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined), /* @ts-ignore */
994
+ ...(ngDevMode ? [{ debugName: "toggleAllAriaLabel" }] : /* istanbul ignore next */ []));
995
+ listLabel = computed(() => this.translation()[TranslationKeys.ARIA]['listLabel'], /* @ts-ignore */
996
+ ...(ngDevMode ? [{ debugName: "listLabel" }] : /* istanbul ignore next */ []));
997
+ getAllVisibleAndNonVisibleOptions = computed(() => (this.group() ? this.flatOptions(this._options()) : this._options() || []), /* @ts-ignore */
998
+ ...(ngDevMode ? [{ debugName: "getAllVisibleAndNonVisibleOptions" }] : /* istanbul ignore next */ []));
1012
999
  visibleOptions = computed(() => {
1013
1000
  const options = this.getAllVisibleAndNonVisibleOptions();
1014
1001
  const isArrayOfObjects = isArray(options) && ObjectUtils.isObject(options[0]);
1015
1002
  if (this._filterValue()) {
1016
1003
  let filteredOptions;
1017
1004
  if (isArrayOfObjects) {
1018
- filteredOptions = this.filterService.filter(options, this.searchFields(), this._filterValue(), this.filterMatchMode, this.filterLocale);
1005
+ filteredOptions = this.filterService.filter(options, this.searchFields(), this._filterValue(), this.filterMatchMode(), this.filterLocale());
1019
1006
  }
1020
1007
  else {
1021
1008
  filteredOptions = options.filter((option) => option.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase()));
1022
1009
  }
1023
- if (this.group) {
1024
- const optionGroups = this.options || [];
1010
+ if (this.group()) {
1011
+ const optionGroups = this._options() || [];
1025
1012
  const filtered = [];
1026
1013
  optionGroups.forEach((group) => {
1027
1014
  const groupChildren = this.getOptionGroupChildren(group);
@@ -1029,7 +1016,7 @@ class MultiSelect extends BaseEditableHolder {
1029
1016
  if (filteredItems.length > 0)
1030
1017
  filtered.push({
1031
1018
  ...group,
1032
- [typeof this.optionGroupChildren === 'string' ? this.optionGroupChildren : 'items']: [...filteredItems]
1019
+ [typeof this.optionGroupChildren() === 'string' ? this.optionGroupChildren() : 'items']: [...filteredItems]
1033
1020
  });
1034
1021
  });
1035
1022
  return this.flatOptions(filtered);
@@ -1042,8 +1029,8 @@ class MultiSelect extends BaseEditableHolder {
1042
1029
  label = computed(() => {
1043
1030
  let label;
1044
1031
  const modelValue = this.modelValue();
1045
- if (modelValue && modelValue?.length && this.displaySelectedLabel) {
1046
- if (isNotEmpty(this.maxSelectedLabels) && modelValue?.length > (this.maxSelectedLabels || 0)) {
1032
+ if (modelValue && modelValue?.length && this.displaySelectedLabel()) {
1033
+ if (isNotEmpty(this.maxSelectedLabels()) && modelValue?.length > (this.maxSelectedLabels() || 0)) {
1047
1034
  return this.getSelectedItemsLabel();
1048
1035
  }
1049
1036
  else {
@@ -1063,54 +1050,25 @@ class MultiSelect extends BaseEditableHolder {
1063
1050
  }, /* @ts-ignore */
1064
1051
  ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1065
1052
  chipSelectedItems = computed(() => {
1066
- return isNotEmpty(this.maxSelectedLabels) && this.modelValue() && this.modelValue()?.length > (this.maxSelectedLabels || 0) ? this.modelValue()?.slice(0, this.maxSelectedLabels) : this.modelValue();
1053
+ return isNotEmpty(this.maxSelectedLabels()) && this.modelValue() && this.modelValue()?.length > (this.maxSelectedLabels() || 0) ? this.modelValue()?.slice(0, this.maxSelectedLabels()) : this.modelValue();
1067
1054
  }, /* @ts-ignore */
1068
1055
  ...(ngDevMode ? [{ debugName: "chipSelectedItems" }] : /* istanbul ignore next */ []));
1069
1056
  constructor() {
1070
1057
  super();
1071
- effect(() => {
1072
- const modelValue = this.modelValue();
1073
- const allVisibleAndNonVisibleOptions = this.getAllVisibleAndNonVisibleOptions();
1074
- if (allVisibleAndNonVisibleOptions && isNotEmpty(allVisibleAndNonVisibleOptions)) {
1075
- if (this.optionValue && this.optionLabel && modelValue) {
1076
- this.selectedOptions = allVisibleAndNonVisibleOptions.filter((option) => modelValue.includes(option[this.optionLabel]) || modelValue.includes(option[this.optionValue]));
1077
- }
1078
- else {
1079
- this.selectedOptions = modelValue;
1080
- }
1081
- this.cd.markForCheck();
1058
+ afterNextRender(() => {
1059
+ if (this._overlayVisible()) {
1060
+ this.show();
1082
1061
  }
1083
1062
  });
1063
+ afterEveryRender(() => {
1064
+ this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
1065
+ });
1084
1066
  }
1085
1067
  onInit() {
1086
- this.id = this.id || uuid('pn_id_');
1087
1068
  this.autoUpdateModel();
1088
- if (this.filterBy) {
1089
- this.filterOptions = {
1090
- filter: (value) => this.onFilterInputChange(value),
1091
- reset: () => this.resetFilter()
1092
- };
1093
- }
1094
- }
1095
- maxSelectionLimitReached() {
1096
- return this.selectionLimit && this.modelValue() && this.modelValue().length === this.selectionLimit;
1097
- }
1098
- onAfterViewInit() {
1099
- if (this.overlayVisible) {
1100
- this.show();
1101
- }
1102
- }
1103
- onAfterViewChecked() {
1104
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
1105
- if (this.filtered) {
1106
- this.zone.runOutsideAngular(() => {
1107
- setTimeout(() => {
1108
- this.overlayViewChild().alignOverlay();
1109
- }, 1);
1110
- });
1111
- this.filtered = false;
1112
- }
1113
1069
  }
1070
+ maxSelectionLimitReached = computed(() => this.selectionLimit() && this.modelValue() && this.modelValue().length === this.selectionLimit(), /* @ts-ignore */
1071
+ ...(ngDevMode ? [{ debugName: "maxSelectionLimitReached" }] : /* istanbul ignore next */ []));
1114
1072
  flatOptions(options) {
1115
1073
  return (options || []).reduce((result, option, index) => {
1116
1074
  result.push({ optionGroup: option, group: true, index });
@@ -1120,7 +1078,7 @@ class MultiSelect extends BaseEditableHolder {
1120
1078
  }, []);
1121
1079
  }
1122
1080
  autoUpdateModel() {
1123
- if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption()) {
1081
+ if (this.selectOnFocus() && this.autoOptionFocus() && !this.hasSelectedOption()) {
1124
1082
  this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());
1125
1083
  const value = this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);
1126
1084
  this.onOptionSelect({ originalEvent: null, option: [value] });
@@ -1131,7 +1089,7 @@ class MultiSelect extends BaseEditableHolder {
1131
1089
  * @group Method
1132
1090
  */
1133
1091
  updateModel(value, event) {
1134
- this.value = value;
1092
+ this.value.set(value);
1135
1093
  this.onModelChange(value);
1136
1094
  this.writeValue(value);
1137
1095
  }
@@ -1162,9 +1120,8 @@ class MultiSelect extends BaseEditableHolder {
1162
1120
  itemValue: option
1163
1121
  });
1164
1122
  }
1165
- findSelectedOptionIndex() {
1166
- return this.hasSelectedOption() ? this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option)) : -1;
1167
- }
1123
+ findSelectedOptionIndex = computed(() => (this.hasSelectedOption() ? this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option)) : -1), /* @ts-ignore */
1124
+ ...(ngDevMode ? [{ debugName: "findSelectedOptionIndex" }] : /* istanbul ignore next */ []));
1168
1125
  onOptionSelectRange(event, start = -1, end = -1) {
1169
1126
  start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
1170
1127
  end === -1 && (end = this.findNearestSelectedOptionIndex(start));
@@ -1178,9 +1135,8 @@ class MultiSelect extends BaseEditableHolder {
1178
1135
  this.updateModel(value, event);
1179
1136
  }
1180
1137
  }
1181
- searchFields() {
1182
- return (this.filterBy || this.optionLabel || 'label').split(',');
1183
- }
1138
+ searchFields = computed(() => (this.filterBy() || this.optionLabel() || 'label').split(','), /* @ts-ignore */
1139
+ ...(ngDevMode ? [{ debugName: "searchFields" }] : /* istanbul ignore next */ []));
1184
1140
  findNearestSelectedOptionIndex(index, firstCheckUp = false) {
1185
1141
  let matchedOptionIndex = -1;
1186
1142
  if (this.hasSelectedOption()) {
@@ -1199,16 +1155,15 @@ class MultiSelect extends BaseEditableHolder {
1199
1155
  const matchedOptionIndex = this.hasSelectedOption() && index > 0 ? findLastIndex(this.visibleOptions().slice(0, index), (option) => this.isValidSelectedOption(option)) : -1;
1200
1156
  return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
1201
1157
  }
1202
- findFirstFocusedOptionIndex() {
1158
+ findFirstFocusedOptionIndex = computed(() => {
1203
1159
  const selectedIndex = this.findFirstSelectedOptionIndex();
1204
1160
  return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
1205
- }
1206
- findFirstOptionIndex() {
1207
- return this.visibleOptions().findIndex((option) => this.isValidOption(option));
1208
- }
1209
- findFirstSelectedOptionIndex() {
1210
- return this.hasSelectedOption() ? this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option)) : -1;
1211
- }
1161
+ }, /* @ts-ignore */
1162
+ ...(ngDevMode ? [{ debugName: "findFirstFocusedOptionIndex" }] : /* istanbul ignore next */ []));
1163
+ findFirstOptionIndex = computed(() => this.visibleOptions().findIndex((option) => this.isValidOption(option)), /* @ts-ignore */
1164
+ ...(ngDevMode ? [{ debugName: "findFirstOptionIndex" }] : /* istanbul ignore next */ []));
1165
+ findFirstSelectedOptionIndex = computed(() => (this.hasSelectedOption() ? this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option)) : -1), /* @ts-ignore */
1166
+ ...(ngDevMode ? [{ debugName: "findFirstSelectedOptionIndex" }] : /* istanbul ignore next */ []));
1212
1167
  findNextSelectedOptionIndex(index) {
1213
1168
  const matchedOptionIndex = this.hasSelectedOption() && index < this.visibleOptions().length - 1
1214
1169
  ? this.visibleOptions()
@@ -1217,17 +1172,15 @@ class MultiSelect extends BaseEditableHolder {
1217
1172
  : -1;
1218
1173
  return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
1219
1174
  }
1220
- equalityKey() {
1221
- return this.optionValue ? null : this.dataKey;
1222
- }
1223
- hasSelectedOption() {
1224
- return isNotEmpty(this.modelValue());
1225
- }
1175
+ equalityKey = computed(() => (this.optionValue() ? null : this.dataKey()), /* @ts-ignore */
1176
+ ...(ngDevMode ? [{ debugName: "equalityKey" }] : /* istanbul ignore next */ []));
1177
+ hasSelectedOption = computed(() => isNotEmpty(this.modelValue()), /* @ts-ignore */
1178
+ ...(ngDevMode ? [{ debugName: "hasSelectedOption" }] : /* istanbul ignore next */ []));
1226
1179
  isValidSelectedOption(option) {
1227
1180
  return this.isValidOption(option) && this.isSelected(option);
1228
1181
  }
1229
1182
  isOptionGroup(option) {
1230
- return option && (this.group || this.optionGroupLabel) && option.optionGroup && option.group;
1183
+ return option && (this.group() || this.optionGroupLabel()) && option.optionGroup && option.group;
1231
1184
  }
1232
1185
  isValidOption(option) {
1233
1186
  return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
@@ -1236,56 +1189,55 @@ class MultiSelect extends BaseEditableHolder {
1236
1189
  if (this.maxSelectionLimitReached() && !this.isSelected(option)) {
1237
1190
  return true;
1238
1191
  }
1239
- return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : option && option.disabled !== undefined ? option.disabled : false;
1192
+ return this.optionDisabled() ? resolveFieldData(option, this.optionDisabled()) : option && option.disabled !== undefined ? option.disabled : false;
1240
1193
  }
1241
1194
  isSelected(option) {
1242
1195
  const optionValue = this.getOptionValue(option);
1243
1196
  return (this.modelValue() || []).some((value) => equals(value, optionValue, this.equalityKey() || ''));
1244
1197
  }
1245
1198
  isOptionMatched(option) {
1246
- return this.isValidOption(option) && this.getOptionLabel(option).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale));
1247
- }
1248
- isEmpty() {
1249
- return !this._options() || (this.visibleOptions() && this.visibleOptions().length === 0);
1199
+ return this.isValidOption(option) && this.getOptionLabel(option).toString().toLocaleLowerCase(this.filterLocale()).startsWith(this.searchValue()?.toLocaleLowerCase(this.filterLocale()));
1250
1200
  }
1201
+ isEmpty = computed(() => !this._options() || (this.visibleOptions() && this.visibleOptions().length === 0), /* @ts-ignore */
1202
+ ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
1251
1203
  getOptionIndex(index, scrollerOptions) {
1252
- return this.virtualScrollerDisabled ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];
1204
+ return this.virtualScrollerDisabled() ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];
1253
1205
  }
1254
1206
  getAriaPosInset(index) {
1255
- return ((this.optionGroupLabel
1207
+ return ((this.optionGroupLabel()
1256
1208
  ? index -
1257
1209
  this.visibleOptions()
1258
1210
  .slice(0, index)
1259
1211
  .filter((option) => this.isOptionGroup(option)).length
1260
1212
  : index) + 1);
1261
1213
  }
1262
- get ariaSetSize() {
1263
- return this.visibleOptions().filter((option) => !this.isOptionGroup(option)).length;
1264
- }
1214
+ ariaSetSize = computed(() => this.visibleOptions().filter((option) => !this.isOptionGroup(option)).length, /* @ts-ignore */
1215
+ ...(ngDevMode ? [{ debugName: "ariaSetSize" }] : /* istanbul ignore next */ []));
1265
1216
  getLabelByValue(value) {
1266
- const options = this.group ? this.flatOptions(this._options()) : this._options() || [];
1217
+ const options = this.group() ? this.flatOptions(this._options()) : this._options() || [];
1267
1218
  const matchedOption = options.find((option) => !this.isOptionGroup(option) && equals(this.getOptionValue(option), value, this.equalityKey() || ''));
1268
1219
  return matchedOption ? this.getOptionLabel(matchedOption) : null;
1269
1220
  }
1270
- getSelectedItemsLabel() {
1221
+ getSelectedItemsLabel = computed(() => {
1271
1222
  let pattern = /{(.*?)}/;
1272
- let message = this.selectedItemsLabel ? this.selectedItemsLabel : this.config.getTranslation(TranslationKeys.SELECTION_MESSAGE);
1223
+ let message = this.selectedItemsLabel() ? this.selectedItemsLabel() : this.translation()[TranslationKeys.SELECTION_MESSAGE];
1273
1224
  if (pattern.test(message)) {
1274
1225
  return message.replace(message.match(pattern)[0], this.modelValue().length + '');
1275
1226
  }
1276
1227
  return message;
1277
- }
1228
+ }, /* @ts-ignore */
1229
+ ...(ngDevMode ? [{ debugName: "getSelectedItemsLabel" }] : /* istanbul ignore next */ []));
1278
1230
  getOptionLabel(option) {
1279
- return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option && option.label != undefined ? option.label : option;
1231
+ return this.optionLabel() ? resolveFieldData(option, this.optionLabel()) : option && option.label != undefined ? option.label : option;
1280
1232
  }
1281
1233
  getOptionValue(option) {
1282
- return this.optionValue ? resolveFieldData(option, this.optionValue) : !this.optionLabel && option && option.value !== undefined ? option.value : option;
1234
+ return this.optionValue() ? resolveFieldData(option, this.optionValue()) : !this.optionLabel() && option && option.value !== undefined ? option.value : option;
1283
1235
  }
1284
1236
  getOptionGroupLabel(optionGroup) {
1285
- return this.optionGroupLabel ? resolveFieldData(optionGroup, this.optionGroupLabel) : optionGroup && optionGroup.label != undefined ? optionGroup.label : optionGroup;
1237
+ return this.optionGroupLabel() ? resolveFieldData(optionGroup, this.optionGroupLabel()) : optionGroup && optionGroup.label != undefined ? optionGroup.label : optionGroup;
1286
1238
  }
1287
1239
  getOptionGroupChildren(optionGroup) {
1288
- return optionGroup ? (this.optionGroupChildren ? resolveFieldData(optionGroup, this.optionGroupChildren) : optionGroup.items) : [];
1240
+ return optionGroup ? (this.optionGroupChildren() ? resolveFieldData(optionGroup, this.optionGroupChildren()) : optionGroup.items) : [];
1289
1241
  }
1290
1242
  onKeyDown(event) {
1291
1243
  if (this.$disabled()) {
@@ -1336,7 +1288,7 @@ class MultiSelect extends BaseEditableHolder {
1336
1288
  break;
1337
1289
  }
1338
1290
  if (!metaKey && isPrintableCharacter(event.key)) {
1339
- !this.overlayVisible && this.show();
1291
+ !this._overlayVisible() && this.show();
1340
1292
  this.searchOptions(event, event.key);
1341
1293
  event.preventDefault();
1342
1294
  }
@@ -1384,7 +1336,7 @@ class MultiSelect extends BaseEditableHolder {
1384
1336
  this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);
1385
1337
  }
1386
1338
  this.changeFocusedOptionIndex(event, optionIndex);
1387
- !this.overlayVisible && this.show();
1339
+ !this._overlayVisible() && this.show();
1388
1340
  event.preventDefault();
1389
1341
  event.stopPropagation();
1390
1342
  }
@@ -1393,7 +1345,7 @@ class MultiSelect extends BaseEditableHolder {
1393
1345
  if (this.focusedOptionIndex() !== -1) {
1394
1346
  this.onOptionSelect(event, this.visibleOptions()[this.focusedOptionIndex()]);
1395
1347
  }
1396
- this.overlayVisible && this.hide();
1348
+ this._overlayVisible() && this.hide();
1397
1349
  event.preventDefault();
1398
1350
  }
1399
1351
  else {
@@ -1402,7 +1354,7 @@ class MultiSelect extends BaseEditableHolder {
1402
1354
  this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());
1403
1355
  }
1404
1356
  this.changeFocusedOptionIndex(event, optionIndex);
1405
- !this.overlayVisible && this.show();
1357
+ !this._overlayVisible() && this.show();
1406
1358
  event.preventDefault();
1407
1359
  }
1408
1360
  event.stopPropagation();
@@ -1421,7 +1373,7 @@ class MultiSelect extends BaseEditableHolder {
1421
1373
  this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());
1422
1374
  }
1423
1375
  this.changeFocusedOptionIndex(event, optionIndex);
1424
- !this.overlayVisible && this.show();
1376
+ !this._overlayVisible() && this.show();
1425
1377
  }
1426
1378
  event.preventDefault();
1427
1379
  }
@@ -1439,7 +1391,7 @@ class MultiSelect extends BaseEditableHolder {
1439
1391
  this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);
1440
1392
  }
1441
1393
  this.changeFocusedOptionIndex(event, optionIndex);
1442
- !this.overlayVisible && this.show();
1394
+ !this._overlayVisible() && this.show();
1443
1395
  }
1444
1396
  event.preventDefault();
1445
1397
  }
@@ -1452,7 +1404,7 @@ class MultiSelect extends BaseEditableHolder {
1452
1404
  event.preventDefault();
1453
1405
  }
1454
1406
  onEnterKey(event) {
1455
- if (!this.overlayVisible) {
1407
+ if (!this._overlayVisible()) {
1456
1408
  this.onArrowDownKey(event);
1457
1409
  }
1458
1410
  else {
@@ -1468,7 +1420,7 @@ class MultiSelect extends BaseEditableHolder {
1468
1420
  event.preventDefault();
1469
1421
  }
1470
1422
  onEscapeKey(event) {
1471
- if (this.overlayVisible) {
1423
+ if (this._overlayVisible()) {
1472
1424
  this.hide(true);
1473
1425
  event.stopPropagation();
1474
1426
  event.preventDefault();
@@ -1476,12 +1428,12 @@ class MultiSelect extends BaseEditableHolder {
1476
1428
  }
1477
1429
  onTabKey(event, pressedInInputText = false) {
1478
1430
  if (!pressedInInputText) {
1479
- if (this.overlayVisible && this.hasFocusableElements()) {
1431
+ if (this._overlayVisible() && this.hasFocusableElements()) {
1480
1432
  focus(event.shiftKey ? this.lastHiddenFocusableElementOnOverlay()?.nativeElement : this.firstHiddenFocusableElementOnOverlay()?.nativeElement);
1481
1433
  event.preventDefault();
1482
1434
  }
1483
1435
  else {
1484
- this.overlayVisible && this.hide(this.filter);
1436
+ this._overlayVisible() && this.hide(this.filter());
1485
1437
  }
1486
1438
  }
1487
1439
  }
@@ -1490,23 +1442,22 @@ class MultiSelect extends BaseEditableHolder {
1490
1442
  }
1491
1443
  onContainerClick(event) {
1492
1444
  const focusInputViewChild = this.focusInputViewChild();
1493
- if (this.$disabled() || this.loading || this.readonly || event.target?.isSameNode?.(focusInputViewChild.nativeElement)) {
1445
+ if (this.$disabled() || this.loading() || this.readonly() || event.target?.isSameNode?.(focusInputViewChild.nativeElement)) {
1494
1446
  return;
1495
1447
  }
1496
1448
  const overlayViewChild = this.overlayViewChild();
1497
1449
  if (!overlayViewChild.el.nativeElement.contains(event.target)) {
1498
- if (this.clickInProgress) {
1450
+ if (this.clickInProgress()) {
1499
1451
  return;
1500
1452
  }
1501
- this.clickInProgress = true;
1453
+ this.clickInProgress.set(true);
1502
1454
  setTimeout(() => {
1503
- this.clickInProgress = false;
1455
+ this.clickInProgress.set(false);
1504
1456
  }, 150);
1505
- this.overlayVisible ? this.hide(true) : this.show(true);
1457
+ this._overlayVisible() ? this.hide(true) : this.show(true);
1506
1458
  }
1507
1459
  focusInputViewChild.nativeElement.focus({ preventScroll: true });
1508
1460
  this.onClick.emit(event);
1509
- this.cd.detectChanges();
1510
1461
  }
1511
1462
  onFirstHiddenFocus(event) {
1512
1463
  const focusInputViewChild = this.focusInputViewChild();
@@ -1514,26 +1465,26 @@ class MultiSelect extends BaseEditableHolder {
1514
1465
  focus(focusableEl);
1515
1466
  }
1516
1467
  onInputFocus(event) {
1517
- this.focused = true;
1518
- const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
1468
+ this.focused.set(true);
1469
+ const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this._overlayVisible() && this.autoOptionFocus() ? this.findFirstFocusedOptionIndex() : -1;
1519
1470
  this.focusedOptionIndex.set(focusedOptionIndex);
1520
- this.overlayVisible && this.scrollInView(this.focusedOptionIndex());
1471
+ this._overlayVisible() && this.scrollInView(this.focusedOptionIndex());
1521
1472
  this.onFocus.emit({ originalEvent: event });
1522
1473
  }
1523
1474
  onInputBlur(event) {
1524
- this.focused = false;
1475
+ this.focused.set(false);
1525
1476
  this.onBlur.emit({ originalEvent: event });
1526
- if (!this.preventModelTouched) {
1477
+ if (!this.preventModelTouched()) {
1527
1478
  this.onModelTouched();
1528
1479
  }
1529
- this.preventModelTouched = false;
1480
+ this.preventModelTouched.set(false);
1530
1481
  }
1531
1482
  onFilterInputChange(event) {
1532
1483
  let value = event.target.value;
1533
1484
  this._filterValue.set(value);
1534
1485
  this.focusedOptionIndex.set(-1);
1535
1486
  this.onFilter.emit({ originalEvent: event, filter: this._filterValue() });
1536
- !this.virtualScrollerDisabled && this.scroller()?.scrollToIndex(0);
1487
+ !this.virtualScrollerDisabled() && this.scroller()?.scrollToIndex(0);
1537
1488
  setTimeout(() => {
1538
1489
  this.overlayViewChild().alignOverlay();
1539
1490
  });
@@ -1544,7 +1495,7 @@ class MultiSelect extends BaseEditableHolder {
1544
1495
  focus(focusableEl);
1545
1496
  }
1546
1497
  onOptionMouseEnter(event, index) {
1547
- if (this.focusOnHover) {
1498
+ if (this.focusOnHover()) {
1548
1499
  this.changeFocusedOptionIndex(event, index);
1549
1500
  }
1550
1501
  }
@@ -1552,10 +1503,10 @@ class MultiSelect extends BaseEditableHolder {
1552
1503
  this.focusedOptionIndex.set(-1);
1553
1504
  }
1554
1505
  onToggleAll(event) {
1555
- if (this.$disabled() || this.readonly) {
1506
+ if (this.$disabled() || this.readonly()) {
1556
1507
  return;
1557
1508
  }
1558
- if (this.selectAll != null) {
1509
+ if (this.selectAll() != null) {
1559
1510
  this.onSelectAllChange.emit({
1560
1511
  originalEvent: event,
1561
1512
  checked: !this.allSelected()
@@ -1563,11 +1514,11 @@ class MultiSelect extends BaseEditableHolder {
1563
1514
  }
1564
1515
  else {
1565
1516
  // pre-selected disabled options should always be selected.
1566
- const selectedDisabledOptions = this.getAllVisibleAndNonVisibleOptions().filter((option) => this.isSelected(option) && (this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : option && option.disabled !== undefined ? option.disabled : false));
1517
+ const selectedDisabledOptions = this.getAllVisibleAndNonVisibleOptions().filter((option) => this.isSelected(option) && (this.optionDisabled() ? resolveFieldData(option, this.optionDisabled()) : option && option.disabled !== undefined ? option.disabled : false));
1567
1518
  const visibleOptions = this.allSelected()
1568
1519
  ? this.visibleOptions().filter((option) => !this.isValidOption(option) && this.isSelected(option))
1569
1520
  : this.visibleOptions().filter((option) => this.isSelected(option) || this.isValidOption(option));
1570
- const selectedOptionsBeforeSearch = this.filter && !this.allSelected() ? this.getAllVisibleAndNonVisibleOptions().filter((option) => this.isSelected(option) && this.isValidOption(option)) : [];
1521
+ const selectedOptionsBeforeSearch = this.filter() && !this.allSelected() ? this.getAllVisibleAndNonVisibleOptions().filter((option) => this.isSelected(option) && this.isValidOption(option)) : [];
1571
1522
  const optionValues = [...selectedOptionsBeforeSearch, ...selectedDisabledOptions, ...visibleOptions].map((option) => this.getOptionValue(option));
1572
1523
  const value = [...new Set(optionValues)];
1573
1524
  this.updateModel(value, event);
@@ -1580,12 +1531,10 @@ class MultiSelect extends BaseEditableHolder {
1580
1531
  }
1581
1532
  }
1582
1533
  if (this.partialSelected()) {
1583
- this.selectedOptions = [];
1584
- this.cd.markForCheck();
1534
+ this.selectedOptions.set([]);
1585
1535
  }
1586
- this.onChange.emit({ originalEvent: event, value: this.value });
1536
+ this.onChange.emit({ originalEvent: event, value: this.value() });
1587
1537
  DomHandler.focus(this.headerCheckboxViewChild()?.inputViewChild()?.nativeElement);
1588
- this.headerCheckboxFocus = true;
1589
1538
  event.originalEvent.preventDefault();
1590
1539
  event.originalEvent.stopPropagation();
1591
1540
  }
@@ -1595,74 +1544,68 @@ class MultiSelect extends BaseEditableHolder {
1595
1544
  this.scrollInView();
1596
1545
  }
1597
1546
  }
1598
- get virtualScrollerDisabled() {
1599
- return !this.virtualScroll;
1600
- }
1547
+ virtualScrollerDisabled = computed(() => !this.virtualScroll(), /* @ts-ignore */
1548
+ ...(ngDevMode ? [{ debugName: "virtualScrollerDisabled" }] : /* istanbul ignore next */ []));
1601
1549
  scrollInView(index = -1) {
1602
- const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
1550
+ const id = index !== -1 ? `${this._id()}_${index}` : this.focusedOptionId();
1603
1551
  const itemsViewChild = this.itemsViewChild();
1604
1552
  if (itemsViewChild && itemsViewChild.nativeElement) {
1605
1553
  const element = findSingle(itemsViewChild.nativeElement, `li[id="${id}"]`);
1606
1554
  if (element) {
1607
1555
  element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
1608
1556
  }
1609
- else if (!this.virtualScrollerDisabled) {
1557
+ else if (!this.virtualScrollerDisabled()) {
1610
1558
  setTimeout(() => {
1611
- this.virtualScroll && this.scroller()?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());
1559
+ this.virtualScroll() && this.scroller()?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());
1612
1560
  }, 0);
1613
1561
  }
1614
1562
  }
1615
1563
  }
1616
- get focusedOptionId() {
1617
- return this.focusedOptionIndex() !== -1 ? `${this.id}_${this.focusedOptionIndex()}` : null;
1618
- }
1619
- allSelected() {
1620
- return this.selectAll !== null ? this.selectAll : isNotEmpty(this.visibleOptions()) && this.visibleOptions().every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option));
1621
- }
1622
- partialSelected() {
1623
- return this.selectedOptions && this.selectedOptions.length > 0 && this.selectedOptions.length < (this.options?.length || 0);
1624
- }
1564
+ focusedOptionId = computed(() => (this.focusedOptionIndex() !== -1 ? `${this._id()}_${this.focusedOptionIndex()}` : null), /* @ts-ignore */
1565
+ ...(ngDevMode ? [{ debugName: "focusedOptionId" }] : /* istanbul ignore next */ []));
1566
+ allSelected = computed(() => (this.selectAll() !== null ? this.selectAll() : isNotEmpty(this.visibleOptions()) && this.visibleOptions().every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option))), /* @ts-ignore */
1567
+ ...(ngDevMode ? [{ debugName: "allSelected" }] : /* istanbul ignore next */ []));
1568
+ partialSelected = computed(() => this.selectedOptions() && this.selectedOptions().length > 0 && this.selectedOptions().length < (this._options()?.length || 0), /* @ts-ignore */
1569
+ ...(ngDevMode ? [{ debugName: "partialSelected" }] : /* istanbul ignore next */ []));
1625
1570
  /**
1626
1571
  * Displays the panel.
1627
1572
  * @group Method
1628
1573
  */
1629
1574
  show(isFocus) {
1630
- this.overlayVisible = true;
1631
- const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
1575
+ this._overlayVisible.set(true);
1576
+ const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus() ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
1632
1577
  this.focusedOptionIndex.set(focusedOptionIndex);
1633
1578
  if (isFocus) {
1634
1579
  focus(this.focusInputViewChild().nativeElement);
1635
1580
  }
1636
- this.cd.markForCheck();
1637
1581
  }
1638
1582
  /**
1639
1583
  * Hides the panel.
1640
1584
  * @group Method
1641
1585
  */
1642
1586
  hide(isFocus) {
1643
- this.overlayVisible = false;
1587
+ this._overlayVisible.set(false);
1644
1588
  this.focusedOptionIndex.set(-1);
1645
- if (this.filter && this.resetFilterOnHide) {
1589
+ if (this.filter() && this.resetFilterOnHide()) {
1646
1590
  this.resetFilter();
1647
1591
  }
1648
- if (this.overlayOptions?.mode === 'modal') {
1592
+ if (this.overlayOptions()?.mode === 'modal') {
1649
1593
  unblockBodyScroll();
1650
1594
  }
1651
1595
  isFocus && focus(this.focusInputViewChild().nativeElement);
1652
- this.cd.markForCheck();
1653
1596
  }
1654
1597
  onOverlayBeforeEnter(event) {
1655
- this.itemsWrapper = findSingle(this.overlayViewChild().overlayViewChild()?.nativeElement, this.virtualScroll ? '[data-pc-name="virtualscroller"]' : '[data-pc-section="listcontainer"]');
1656
- this.virtualScroll && this.scroller()?.setContentEl(this.itemsViewChild()?.nativeElement);
1657
- if (this.options && this.options.length) {
1658
- if (this.virtualScroll) {
1598
+ this.itemsWrapper.set(findSingle(this.overlayViewChild().overlayViewChild()?.nativeElement, this.virtualScroll() ? '[data-pc-name="virtualscroller"]' : '[data-pc-section="listcontainer"]'));
1599
+ this.virtualScroll() && this.scroller()?.setContentEl(this.itemsViewChild()?.nativeElement);
1600
+ if (this._options() && this._options().length) {
1601
+ if (this.virtualScroll()) {
1659
1602
  const selectedIndex = this.modelValue() ? this.focusedOptionIndex() : -1;
1660
1603
  if (selectedIndex !== -1) {
1661
1604
  this.scroller()?.scrollToIndex(selectedIndex);
1662
1605
  }
1663
1606
  }
1664
1607
  else {
1665
- let selectedListItem = findSingle(this.itemsWrapper, '[data-pc-section="option"][data-p-selected="true"]');
1608
+ let selectedListItem = findSingle(this.itemsWrapper(), '[data-pc-section="option"][data-p-selected="true"]');
1666
1609
  if (selectedListItem) {
1667
1610
  selectedListItem.scrollIntoView({ block: 'nearest', inline: 'nearest' });
1668
1611
  }
@@ -1670,15 +1613,15 @@ class MultiSelect extends BaseEditableHolder {
1670
1613
  }
1671
1614
  const filterInputChild = this.filterInputChild();
1672
1615
  if (filterInputChild && filterInputChild.nativeElement) {
1673
- this.preventModelTouched = true;
1674
- if (this.autofocusFilter) {
1616
+ this.preventModelTouched.set(true);
1617
+ if (this.autofocusFilter()) {
1675
1618
  filterInputChild.nativeElement.focus();
1676
1619
  }
1677
1620
  }
1678
1621
  this.onPanelShow.emit(event);
1679
1622
  }
1680
1623
  onOverlayAfterLeave(event) {
1681
- this.itemsWrapper = null;
1624
+ this.itemsWrapper.set(null);
1682
1625
  this.onModelTouched();
1683
1626
  this.onPanelHide.emit(event);
1684
1627
  }
@@ -1688,13 +1631,12 @@ class MultiSelect extends BaseEditableHolder {
1688
1631
  filterInputChild.nativeElement.value = '';
1689
1632
  }
1690
1633
  this._filterValue.set(null);
1691
- this._filteredOptions = null;
1692
1634
  }
1693
1635
  onOverlayHide(event) {
1694
1636
  // Called when overlay completes its hide animation
1695
1637
  // Don't call hide() again to avoid recursive calls
1696
1638
  this.focusedOptionIndex.set(-1);
1697
- if (this.filter && this.resetFilterOnHide) {
1639
+ if (this.filter() && this.resetFilterOnHide()) {
1698
1640
  this.resetFilter();
1699
1641
  }
1700
1642
  }
@@ -1704,16 +1646,16 @@ class MultiSelect extends BaseEditableHolder {
1704
1646
  event.stopPropagation();
1705
1647
  }
1706
1648
  clear(event) {
1707
- this.value = [];
1649
+ this.value.set([]);
1708
1650
  this.updateModel(null, event);
1709
- this.selectedOptions = [];
1651
+ this.selectedOptions.set([]);
1710
1652
  this.onClear.emit();
1711
- this._disableTooltip = true;
1653
+ this._disableTooltip.set(true);
1712
1654
  event.stopPropagation();
1713
1655
  }
1714
1656
  labelContainerMouseLeave() {
1715
- if (this._disableTooltip)
1716
- this._disableTooltip = false;
1657
+ if (this._disableTooltip())
1658
+ this._disableTooltip.set(false);
1717
1659
  }
1718
1660
  removeOption(optionValue, event) {
1719
1661
  let value = this.modelValue().filter((val) => !equals(val, optionValue, this.equalityKey() || ''));
@@ -1741,18 +1683,17 @@ class MultiSelect extends BaseEditableHolder {
1741
1683
  const matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions().slice(0, index), (option) => this.isValidOption(option)) : -1;
1742
1684
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
1743
1685
  }
1744
- findLastSelectedOptionIndex() {
1745
- return this.hasSelectedOption() ? findLastIndex(this.visibleOptions(), (option) => this.isValidSelectedOption(option)) : -1;
1746
- }
1747
- findLastFocusedOptionIndex() {
1686
+ findLastSelectedOptionIndex = computed(() => (this.hasSelectedOption() ? findLastIndex(this.visibleOptions(), (option) => this.isValidSelectedOption(option)) : -1), /* @ts-ignore */
1687
+ ...(ngDevMode ? [{ debugName: "findLastSelectedOptionIndex" }] : /* istanbul ignore next */ []));
1688
+ findLastFocusedOptionIndex = computed(() => {
1748
1689
  const selectedIndex = this.findLastSelectedOptionIndex();
1749
1690
  return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
1750
- }
1751
- findLastOptionIndex() {
1752
- return findLastIndex(this.visibleOptions(), (option) => this.isValidOption(option));
1753
- }
1691
+ }, /* @ts-ignore */
1692
+ ...(ngDevMode ? [{ debugName: "findLastFocusedOptionIndex" }] : /* istanbul ignore next */ []));
1693
+ findLastOptionIndex = computed(() => findLastIndex(this.visibleOptions(), (option) => this.isValidOption(option)), /* @ts-ignore */
1694
+ ...(ngDevMode ? [{ debugName: "findLastOptionIndex" }] : /* istanbul ignore next */ []));
1754
1695
  searchOptions(event, char) {
1755
- this.searchValue = (this.searchValue || '') + char;
1696
+ this.searchValue.set((this.searchValue() || '') + char);
1756
1697
  let optionIndex = -1;
1757
1698
  let matched = false;
1758
1699
  if (this.focusedOptionIndex() !== -1) {
@@ -1778,51 +1719,56 @@ class MultiSelect extends BaseEditableHolder {
1778
1719
  if (optionIndex !== -1) {
1779
1720
  this.changeFocusedOptionIndex(event, optionIndex);
1780
1721
  }
1781
- if (this.searchTimeout) {
1782
- clearTimeout(this.searchTimeout);
1722
+ if (this.searchTimeout()) {
1723
+ clearTimeout(this.searchTimeout());
1783
1724
  }
1784
- this.searchTimeout = setTimeout(() => {
1785
- this.searchValue = '';
1786
- this.searchTimeout = null;
1787
- }, 500);
1725
+ this.searchTimeout.set(setTimeout(() => {
1726
+ this.searchValue.set('');
1727
+ this.searchTimeout.set(null);
1728
+ }, 500));
1788
1729
  return matched;
1789
1730
  }
1790
1731
  hasFocusableElements() {
1791
1732
  return getFocusableElements(this.overlayViewChild().overlayViewChild()?.nativeElement, ':not([data-p-hidden-focusable="true"])').length > 0;
1792
1733
  }
1793
- hasFilter() {
1794
- return this._filterValue() && this._filterValue().trim().length > 0;
1795
- }
1796
- get containerDataP() {
1734
+ hasFilter = computed(() => this._filterValue() && this._filterValue().trim().length > 0, /* @ts-ignore */
1735
+ ...(ngDevMode ? [{ debugName: "hasFilter" }] : /* istanbul ignore next */ []));
1736
+ containerDataP = computed(() => {
1797
1737
  return this.cn({
1798
1738
  invalid: this.invalid(),
1799
1739
  disabled: this.$disabled(),
1800
- focus: this.focused,
1801
- fluid: this.hasFluid,
1740
+ focus: this.focused(),
1741
+ fluid: this.hasFluid(),
1802
1742
  filled: this.$variant() === 'filled',
1803
1743
  [this.size()]: this.size()
1804
1744
  });
1805
- }
1806
- get labelDataP() {
1745
+ }, /* @ts-ignore */
1746
+ ...(ngDevMode ? [{ debugName: "containerDataP" }] : /* istanbul ignore next */ []));
1747
+ labelDataP = computed(() => {
1748
+ const value = this.value();
1749
+ const maxSelectedLabels = this.maxSelectedLabels();
1807
1750
  return this.cn({
1808
- placeholder: this.label === this.placeholder,
1809
- clearable: this.showClear,
1810
- disabled: this.disabled,
1751
+ placeholder: this.label() === this.placeholder(),
1752
+ clearable: this.showClear(),
1753
+ disabled: this.$disabled(),
1811
1754
  [this.size()]: this.size(),
1812
- 'has-chip': this.display === 'chip' && this.value && this.value.length && (this.maxSelectedLabels ? this.value.length <= this.maxSelectedLabels : true),
1813
- empty: !this.placeholder && !this.$filled
1755
+ 'has-chip': this.display() === 'chip' && value && value.length && (maxSelectedLabels ? value.length <= maxSelectedLabels : true),
1756
+ empty: !this.placeholder() && !this.$filled()
1814
1757
  });
1815
- }
1816
- get dropdownIconDataP() {
1758
+ }, /* @ts-ignore */
1759
+ ...(ngDevMode ? [{ debugName: "labelDataP" }] : /* istanbul ignore next */ []));
1760
+ dropdownIconDataP = computed(() => {
1817
1761
  return this.cn({
1818
1762
  [this.size()]: this.size()
1819
1763
  });
1820
- }
1821
- get overlayDataP() {
1764
+ }, /* @ts-ignore */
1765
+ ...(ngDevMode ? [{ debugName: "dropdownIconDataP" }] : /* istanbul ignore next */ []));
1766
+ overlayDataP = computed(() => {
1822
1767
  return this.cn({
1823
- ['overlay-' + this.appendTo]: 'overlay-' + this.appendTo
1768
+ ['overlay-' + this.$appendTo()]: 'overlay-' + this.$appendTo()
1824
1769
  });
1825
- }
1770
+ }, /* @ts-ignore */
1771
+ ...(ngDevMode ? [{ debugName: "overlayDataP" }] : /* istanbul ignore next */ []));
1826
1772
  /**
1827
1773
  * @override
1828
1774
  *
@@ -1830,9 +1776,8 @@ class MultiSelect extends BaseEditableHolder {
1830
1776
  * Writes the value to the control.
1831
1777
  */
1832
1778
  writeControlValue(value, setModelValue) {
1833
- this.value = value;
1779
+ this.value.set(value);
1834
1780
  setModelValue(value);
1835
- this.cd.markForCheck();
1836
1781
  }
1837
1782
  getHeaderCheckboxPTOptions(key) {
1838
1783
  return this.ptm(key, {
@@ -1851,29 +1796,29 @@ class MultiSelect extends BaseEditableHolder {
1851
1796
  });
1852
1797
  }
1853
1798
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
1854
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MultiSelect, isStandalone: true, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: false, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: false, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, group: { classPropertyName: "group", publicName: "group", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterPlaceHolder: { classPropertyName: "filterPlaceHolder", publicName: "filterPlaceHolder", isSignal: false, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: false, isRequired: false, transformFunction: null }, overlayVisible: { classPropertyName: "overlayVisible", publicName: "overlayVisible", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, displaySelectedLabel: { classPropertyName: "displaySelectedLabel", publicName: "displaySelectedLabel", isSignal: false, isRequired: false, transformFunction: null }, maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: false, isRequired: false, transformFunction: null }, selectionLimit: { classPropertyName: "selectionLimit", publicName: "selectionLimit", isSignal: false, isRequired: false, transformFunction: numberAttribute }, selectedItemsLabel: { classPropertyName: "selectedItemsLabel", publicName: "selectedItemsLabel", isSignal: false, isRequired: false, transformFunction: null }, showToggleAll: { classPropertyName: "showToggleAll", publicName: "showToggleAll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, emptyFilterMessage: { classPropertyName: "emptyFilterMessage", publicName: "emptyFilterMessage", isSignal: false, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: false, isRequired: false, transformFunction: null }, resetFilterOnHide: { classPropertyName: "resetFilterOnHide", publicName: "resetFilterOnHide", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: false, isRequired: false, transformFunction: null }, chipIcon: { classPropertyName: "chipIcon", publicName: "chipIcon", isSignal: false, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: false, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: false, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: false, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: false, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: false, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: false, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: false, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: false, isRequired: false, transformFunction: numberAttribute }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: false, isRequired: false, transformFunction: null }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: false, isRequired: false, transformFunction: null }, overlayOptions: { classPropertyName: "overlayOptions", publicName: "overlayOptions", isSignal: false, isRequired: false, transformFunction: null }, ariaFilterLabel: { classPropertyName: "ariaFilterLabel", publicName: "ariaFilterLabel", isSignal: false, isRequired: false, transformFunction: null }, filterMatchMode: { classPropertyName: "filterMatchMode", publicName: "filterMatchMode", isSignal: false, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: false, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: false, isRequired: false, transformFunction: null }, tooltipPositionStyle: { classPropertyName: "tooltipPositionStyle", publicName: "tooltipPositionStyle", isSignal: false, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: false, isRequired: false, transformFunction: null }, autofocusFilter: { classPropertyName: "autofocusFilter", publicName: "autofocusFilter", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, display: { classPropertyName: "display", publicName: "display", isSignal: false, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: false, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: false, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: false, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: false, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", isSignal: false, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", 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", onClear: "onClear", onPanelShow: "onPanelShow", onPanelHide: "onPanelHide", onLazyLoad: "onLazyLoad", onRemove: "onRemove", onSelectAllChange: "onSelectAllChange" }, host: { listeners: { "click": "onContainerClick($event)" }, properties: { "attr.id": "id", "attr.data-p": "containerDataP", "class": "cn(cx('root'), styleClass)", "style": "sx('root')" } }, providers: [MULTISELECT_VALUE_ACCESSOR, MultiSelectStyle, { provide: MULTISELECT_INSTANCE, useExisting: MultiSelect }, { provide: PARENT_INSTANCE, useExisting: MultiSelect }], queries: [{ propertyName: "footerFacet", first: true, predicate: Footer, descendants: true, isSignal: true }, { 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: "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: "selectedItemsTemplate", first: true, predicate: ["selecteditems"], isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], isSignal: true }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"], isSignal: true }, { propertyName: "removeTokenIconTemplate", first: true, predicate: ["removetokenicon"], isSignal: true }, { propertyName: "chipIconTemplate", first: true, predicate: ["chipicon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }, { propertyName: "itemCheckboxIconTemplate", first: true, predicate: ["itemcheckboxicon"], isSignal: true }, { propertyName: "headerCheckboxIconTemplate", first: true, predicate: ["headercheckboxicon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true, isSignal: true }, { propertyName: "filterInputChild", first: true, predicate: ["filterInput"], descendants: true, isSignal: true }, { propertyName: "focusInputViewChild", first: true, predicate: ["focusInput"], 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: "lastHiddenFocusableElementOnOverlay", first: true, predicate: ["lastHiddenFocusableEl"], descendants: true, isSignal: true }, { propertyName: "firstHiddenFocusableElementOnOverlay", first: true, predicate: ["firstHiddenFocusableEl"], descendants: true, isSignal: true }, { propertyName: "headerCheckboxViewChild", first: true, predicate: ["headerCheckbox"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i3.Bind }], ngImport: i0, template: `
1799
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: MultiSelect, isStandalone: true, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", 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 }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", 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 }, overlayVisible: { classPropertyName: "overlayVisible", publicName: "overlayVisible", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, displaySelectedLabel: { classPropertyName: "displaySelectedLabel", publicName: "displaySelectedLabel", isSignal: true, isRequired: false, transformFunction: null }, maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, selectionLimit: { classPropertyName: "selectionLimit", publicName: "selectionLimit", isSignal: true, isRequired: false, transformFunction: null }, selectedItemsLabel: { classPropertyName: "selectedItemsLabel", publicName: "selectedItemsLabel", isSignal: true, isRequired: false, transformFunction: null }, showToggleAll: { classPropertyName: "showToggleAll", publicName: "showToggleAll", 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 }, resetFilterOnHide: { classPropertyName: "resetFilterOnHide", publicName: "resetFilterOnHide", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, chipIcon: { classPropertyName: "chipIcon", publicName: "chipIcon", 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 }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", 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 }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", 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 }, 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 }, autofocusFilter: { classPropertyName: "autofocusFilter", publicName: "autofocusFilter", isSignal: true, isRequired: false, transformFunction: null }, display: { classPropertyName: "display", publicName: "display", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", 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 }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", 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", onClear: "onClear", onPanelShow: "onPanelShow", onPanelHide: "onPanelHide", onLazyLoad: "onLazyLoad", onRemove: "onRemove", onSelectAllChange: "onSelectAllChange" }, host: { listeners: { "click": "onContainerClick($event)" }, properties: { "attr.id": "_id()", "attr.data-p": "containerDataP()", "class": "cx('root')", "style": "sx('root')" } }, providers: [MULTISELECT_VALUE_ACCESSOR, MultiSelectStyle, { provide: MULTISELECT_INSTANCE, useExisting: MultiSelect }, { provide: PARENT_INSTANCE, useExisting: MultiSelect }], queries: [{ propertyName: "footerFacet", first: true, predicate: Footer, descendants: true, isSignal: true }, { 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: "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: "selectedItemsTemplate", first: true, predicate: ["selecteditems"], isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], isSignal: true }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"], isSignal: true }, { propertyName: "removeTokenIconTemplate", first: true, predicate: ["removetokenicon"], isSignal: true }, { propertyName: "chipIconTemplate", first: true, predicate: ["chipicon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }, { propertyName: "itemCheckboxIconTemplate", first: true, predicate: ["itemcheckboxicon"], isSignal: true }, { propertyName: "headerCheckboxIconTemplate", first: true, predicate: ["headercheckboxicon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true, isSignal: true }, { propertyName: "filterInputChild", first: true, predicate: ["filterInput"], descendants: true, isSignal: true }, { propertyName: "focusInputViewChild", first: true, predicate: ["focusInput"], 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: "lastHiddenFocusableElementOnOverlay", first: true, predicate: ["lastHiddenFocusableEl"], descendants: true, isSignal: true }, { propertyName: "firstHiddenFocusableElementOnOverlay", first: true, predicate: ["firstHiddenFocusableEl"], descendants: true, isSignal: true }, { propertyName: "headerCheckboxViewChild", first: true, predicate: ["headerCheckbox"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i3.Bind }], ngImport: i0, template: `
1855
1800
  <div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true" [pBind]="ptm('hiddenInputContainer')">
1856
1801
  <input
1857
1802
  #focusInput
1858
- [pTooltip]="tooltip"
1803
+ [pTooltip]="tooltip()"
1859
1804
  [pTooltipUnstyled]="unstyled()"
1860
- [tooltipPosition]="tooltipPosition"
1861
- [positionStyle]="tooltipPositionStyle"
1862
- [tooltipStyleClass]="tooltipStyleClass"
1805
+ [tooltipPosition]="tooltipPosition()"
1806
+ [positionStyle]="tooltipPositionStyle()"
1807
+ [tooltipStyleClass]="tooltipStyleClass()"
1863
1808
  [attr.aria-disabled]="$disabled()"
1864
- [attr.id]="inputId"
1809
+ [attr.id]="inputId()"
1865
1810
  role="combobox"
1866
- [attr.aria-label]="ariaLabel"
1867
- [attr.aria-labelledby]="ariaLabelledBy"
1811
+ [attr.aria-label]="ariaLabel()"
1812
+ [attr.aria-labelledby]="ariaLabelledBy()"
1868
1813
  [attr.aria-haspopup]="'listbox'"
1869
- [attr.aria-expanded]="overlayVisible ?? false"
1870
- [attr.aria-controls]="overlayVisible ? id + '_list' : null"
1871
- [attr.tabindex]="!$disabled() ? tabindex : -1"
1872
- [attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
1814
+ [attr.aria-expanded]="_overlayVisible() ?? false"
1815
+ [attr.aria-controls]="_overlayVisible() ? _id() + '_list' : null"
1816
+ [attr.tabindex]="!$disabled() ? tabindex() : -1"
1817
+ [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1873
1818
  (focus)="onInputFocus($event)"
1874
1819
  (blur)="onInputBlur($event)"
1875
1820
  (keydown)="onKeyDown($event)"
1876
- [pAutoFocus]="autofocus"
1821
+ [pAutoFocus]="autofocus()"
1877
1822
  [attr.value]="modelValue()"
1878
1823
  [attr.name]="name()"
1879
1824
  [attr.required]="required() ? '' : undefined"
@@ -1884,34 +1829,34 @@ class MultiSelect extends BaseEditableHolder {
1884
1829
  <div
1885
1830
  [pBind]="ptm('labelContainer')"
1886
1831
  [class]="cx('labelContainer')"
1887
- [pTooltip]="tooltip"
1832
+ [pTooltip]="tooltip()"
1888
1833
  [pTooltipUnstyled]="unstyled()"
1889
1834
  (mouseleave)="labelContainerMouseLeave()"
1890
- [tooltipDisabled]="_disableTooltip"
1891
- [tooltipPosition]="tooltipPosition"
1892
- [positionStyle]="tooltipPositionStyle"
1893
- [tooltipStyleClass]="tooltipStyleClass"
1835
+ [tooltipDisabled]="_disableTooltip()"
1836
+ [tooltipPosition]="tooltipPosition()"
1837
+ [positionStyle]="tooltipPositionStyle()"
1838
+ [tooltipStyleClass]="tooltipStyleClass()"
1894
1839
  >
1895
- <div [pBind]="ptm('label')" [class]="cx('label')" [attr.data-p]="labelDataP">
1896
- <ng-container *ngIf="!selectedItemsTemplate() && !_selectedItemsTemplate">
1897
- <ng-container *ngIf="display === 'comma'">{{ label() || 'empty' }}</ng-container>
1898
- <ng-container *ngIf="display === 'chip'">
1899
- @if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels) {
1840
+ <div [pBind]="ptm('label')" [class]="cx('label')" [attr.data-p]="labelDataP()">
1841
+ <ng-container *ngIf="!selectedItemsTemplate() && !_selectedItemsTemplate()">
1842
+ <ng-container *ngIf="display() === 'comma'">{{ label() || 'empty' }}</ng-container>
1843
+ <ng-container *ngIf="display() === 'chip'">
1844
+ @if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels()) {
1900
1845
  {{ getSelectedItemsLabel() }}
1901
1846
  } @else {
1902
1847
  <div #token *ngFor="let item of chipSelectedItems(); let i = index" [pBind]="ptm('chipItem')" [class]="cx('chipItem')">
1903
- <p-chip [pt]="ptm('pcChip')" [unstyled]="unstyled()" [class]="cx('pcChip')" [label]="getLabelByValue(item)" [removable]="!$disabled() && !readonly" (onRemove)="removeOption(item, $event)" [removeIcon]="chipIcon">
1904
- <ng-container *ngIf="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate">
1848
+ <p-chip [pt]="ptm('pcChip')" [unstyled]="unstyled()" [class]="cx('pcChip')" [label]="getLabelByValue(item)" [removable]="!$disabled() && !readonly()" (onRemove)="removeOption(item, $event)" [removeIcon]="chipIcon()">
1849
+ <ng-container *ngIf="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()">
1905
1850
  <ng-template #removeicon>
1906
- <ng-container *ngIf="!$disabled() && !readonly">
1851
+ <ng-container *ngIf="!$disabled() && !readonly()">
1907
1852
  <span
1908
1853
  [class]="cx('chipIcon')"
1909
- *ngIf="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate"
1854
+ *ngIf="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()"
1910
1855
  (click)="removeOption(item, $event)"
1911
1856
  [attr.aria-hidden]="true"
1912
1857
  [pBind]="ptm('chipIcon')"
1913
1858
  >
1914
- <ng-container *ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate; context: { class: 'p-multiselect-chip-icon' }"></ng-container>
1859
+ <ng-container *ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate(); context: { class: 'p-multiselect-chip-icon' }"></ng-container>
1915
1860
  </span>
1916
1861
  </ng-container>
1917
1862
  </ng-template>
@@ -1922,43 +1867,43 @@ class MultiSelect extends BaseEditableHolder {
1922
1867
  <ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
1923
1868
  </ng-container>
1924
1869
  </ng-container>
1925
- <ng-container *ngIf="selectedItemsTemplate() || _selectedItemsTemplate">
1926
- <ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate; context: { $implicit: selectedOptions, removeChip: removeOption.bind(this) }"></ng-container>
1870
+ <ng-container *ngIf="selectedItemsTemplate() || _selectedItemsTemplate()">
1871
+ <ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate(); context: { $implicit: selectedOptions(), removeChip: removeOption.bind(this) }"></ng-container>
1927
1872
  <ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
1928
1873
  </ng-container>
1929
1874
  </div>
1930
1875
  </div>
1931
- <ng-container *ngIf="isVisibleClearIcon">
1932
- <svg data-p-icon="times" *ngIf="!clearIconTemplate() && !_clearIconTemplate" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true" />
1933
- <span *ngIf="clearIconTemplate() || _clearIconTemplate" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true">
1934
- <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate"></ng-template>
1876
+ <ng-container *ngIf="isVisibleClearIcon()">
1877
+ <svg data-p-icon="times" *ngIf="!clearIconTemplate() && !_clearIconTemplate()" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true" />
1878
+ <span *ngIf="clearIconTemplate() || _clearIconTemplate()" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true">
1879
+ <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
1935
1880
  </span>
1936
1881
  </ng-container>
1937
1882
  <div [pBind]="ptm('dropdown')" [class]="cx('dropdown')">
1938
- <ng-container *ngIf="loading; else elseBlock">
1939
- <ng-container *ngIf="loadingIconTemplate() || _loadingIconTemplate">
1940
- <ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate"></ng-container>
1883
+ <ng-container *ngIf="loading(); else elseBlock">
1884
+ <ng-container *ngIf="loadingIconTemplate() || _loadingIconTemplate()">
1885
+ <ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
1941
1886
  </ng-container>
1942
- <ng-container *ngIf="!loadingIconTemplate() && !_loadingIconTemplate">
1943
- <span *ngIf="loadingIcon" [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon)" [attr.aria-hidden]="true"></span>
1944
- <span *ngIf="!loadingIcon" [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
1887
+ <ng-container *ngIf="!loadingIconTemplate() && !_loadingIconTemplate()">
1888
+ <span *ngIf="loadingIcon()" [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
1889
+ <span *ngIf="!loadingIcon()" [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
1945
1890
  </ng-container>
1946
1891
  </ng-container>
1947
1892
  <ng-template #elseBlock>
1948
- <ng-container *ngIf="!dropdownIconTemplate() && !_dropdownIconTemplate">
1949
- <span *ngIf="dropdownIcon" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP"></span>
1950
- <svg data-p-icon="chevron-down" *ngIf="!dropdownIcon" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP" />
1893
+ <ng-container *ngIf="!dropdownIconTemplate() && !_dropdownIconTemplate()">
1894
+ <span *ngIf="dropdownIcon()" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon()" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()"></span>
1895
+ <svg data-p-icon="chevron-down" *ngIf="!dropdownIcon()" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()" />
1951
1896
  </ng-container>
1952
- <span *ngIf="dropdownIconTemplate() || _dropdownIconTemplate" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true">
1953
- <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate; context: { dataP: dropdownIconDataP }"></ng-template>
1897
+ <span *ngIf="dropdownIconTemplate() || _dropdownIconTemplate()" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true">
1898
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { dataP: dropdownIconDataP() }"></ng-template>
1954
1899
  </span>
1955
1900
  </ng-template>
1956
1901
  </div>
1957
1902
  <p-overlay
1958
1903
  #overlay
1959
1904
  [hostAttrSelector]="$attrSelector"
1960
- [(visible)]="overlayVisible"
1961
- [options]="overlayOptions"
1905
+ [(visible)]="_overlayVisible"
1906
+ [options]="overlayOptions()"
1962
1907
  [target]="'@parent'"
1963
1908
  [appendTo]="$appendTo()"
1964
1909
  [unstyled]="unstyled()"
@@ -1969,7 +1914,7 @@ class MultiSelect extends BaseEditableHolder {
1969
1914
  (onHide)="onOverlayHide($event)"
1970
1915
  >
1971
1916
  <ng-template #content>
1972
- <div [pBind]="ptm('overlay')" [attr.data-p]="overlayDataP" [attr.id]="id + '_list'" [class]="cn(cx('overlay'), panelStyleClass)" [ngStyle]="panelStyle">
1917
+ <div [pBind]="ptm('overlay')" [attr.data-p]="overlayDataP()" [attr.id]="_id() + '_list'" [class]="cn(cx('overlay'), panelStyleClass())" [ngStyle]="panelStyle()">
1973
1918
  <span
1974
1919
  #firstHiddenFocusableEl
1975
1920
  role="presentation"
@@ -1981,31 +1926,31 @@ class MultiSelect extends BaseEditableHolder {
1981
1926
  [pBind]="ptm('firstHiddenFocusableEl')"
1982
1927
  >
1983
1928
  </span>
1984
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
1985
- <div [pBind]="ptm('header')" [class]="cx('header')" *ngIf="showHeader">
1929
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
1930
+ <div [pBind]="ptm('header')" [class]="cx('header')" *ngIf="showHeader()">
1986
1931
  <ng-content select="p-header"></ng-content>
1987
- <ng-container *ngIf="filterTemplate() || _filterTemplate; else builtInFilterElement">
1988
- <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate; context: { options: filterOptions }"></ng-container>
1932
+ <ng-container *ngIf="filterTemplate() || _filterTemplate(); else builtInFilterElement">
1933
+ <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
1989
1934
  </ng-container>
1990
1935
  <ng-template #builtInFilterElement>
1991
1936
  <p-checkbox
1992
1937
  [pt]="getHeaderCheckboxPTOptions('pcHeaderCheckbox')"
1993
1938
  [ngModel]="allSelected()"
1994
1939
  [ngModelOptions]="{ standalone: true }"
1995
- [ariaLabel]="toggleAllAriaLabel"
1940
+ [ariaLabel]="toggleAllAriaLabel()"
1996
1941
  [binary]="true"
1997
1942
  (onChange)="onToggleAll($event)"
1998
- *ngIf="showToggleAll && !selectionLimit"
1943
+ *ngIf="showToggleAll() && !selectionLimit()"
1999
1944
  [variant]="$variant()"
2000
1945
  [disabled]="$disabled()"
2001
1946
  [unstyled]="unstyled()"
2002
1947
  #headerCheckbox
2003
1948
  >
2004
1949
  <ng-template #icon let-klass="class">
2005
- <svg data-p-icon="check" *ngIf="!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate && allSelected()" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
1950
+ <svg data-p-icon="check" *ngIf="!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate() && allSelected()" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
2006
1951
  <ng-template
2007
1952
  *ngTemplateOutlet="
2008
- headerCheckboxIconTemplate() || _headerCheckboxIconTemplate;
1953
+ headerCheckboxIconTemplate() || _headerCheckboxIconTemplate();
2009
1954
  context: {
2010
1955
  checked: allSelected(),
2011
1956
  partialSelected: partialSelected(),
@@ -2016,17 +1961,17 @@ class MultiSelect extends BaseEditableHolder {
2016
1961
  </ng-template>
2017
1962
  </p-checkbox>
2018
1963
 
2019
- <p-iconfield *ngIf="filter" [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
1964
+ <p-iconfield *ngIf="filter()" [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
2020
1965
  <input
2021
1966
  #filterInput
2022
1967
  pInputText
2023
1968
  [pt]="ptm('pcFilter')"
2024
1969
  [variant]="$variant()"
2025
1970
  type="text"
2026
- [attr.autocomplete]="autocomplete"
1971
+ [attr.autocomplete]="autocomplete()"
2027
1972
  role="searchbox"
2028
- [attr.aria-owns]="id + '_list'"
2029
- [attr.aria-activedescendant]="focusedOptionId"
1973
+ [attr.aria-owns]="_id() + '_list'"
1974
+ [attr.aria-activedescendant]="focusedOptionId()"
2030
1975
  [value]="_filterValue() || ''"
2031
1976
  (input)="onFilterInputChange($event)"
2032
1977
  (keydown)="onFilterKeyDown($event)"
@@ -2034,100 +1979,104 @@ class MultiSelect extends BaseEditableHolder {
2034
1979
  (blur)="onFilterBlur($event)"
2035
1980
  [class]="cx('pcFilter')"
2036
1981
  [attr.disabled]="$disabled() ? '' : undefined"
2037
- [attr.placeholder]="filterPlaceHolder"
2038
- [attr.aria-label]="ariaFilterLabel"
1982
+ [attr.placeholder]="filterPlaceHolder()"
1983
+ [attr.aria-label]="ariaFilterLabel()"
2039
1984
  [unstyled]="unstyled()"
2040
1985
  />
2041
1986
  <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
2042
- <svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate" [pBind]="ptm('filterIcon')" />
2043
- <span *ngIf="filterIconTemplate() || _filterIconTemplate" [pBind]="ptm('filterIcon')" class="p-multiselect-filter-icon">
2044
- <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate"></ng-template>
1987
+ <svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate()" [pBind]="ptm('filterIcon')" />
1988
+ <span *ngIf="filterIconTemplate() || _filterIconTemplate()" [pBind]="ptm('filterIcon')" class="p-multiselect-filter-icon">
1989
+ <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
2045
1990
  </span>
2046
1991
  </p-inputicon>
2047
1992
  </p-iconfield>
2048
1993
  </ng-template>
2049
1994
  </div>
2050
- <div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
1995
+ <div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'">
2051
1996
  <p-scroller
2052
- *ngIf="virtualScroll"
1997
+ *ngIf="virtualScroll()"
2053
1998
  #scroller
2054
1999
  [items]="visibleOptions()"
2055
- [style]="{ height: scrollHeight }"
2056
- [itemSize]="virtualScrollItemSize"
2000
+ [style]="{ height: scrollHeight() }"
2001
+ [itemSize]="virtualScrollItemSize()"
2057
2002
  [autoSize]="true"
2058
2003
  [tabindex]="-1"
2059
- [lazy]="lazy"
2004
+ [lazy]="lazy()"
2060
2005
  (onLazyLoad)="onLazyLoad.emit($event)"
2061
- [options]="virtualScrollOptions"
2006
+ [options]="virtualScrollOptions()"
2062
2007
  >
2063
2008
  <ng-template #content let-items let-scrollerOptions="options">
2064
2009
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
2065
2010
  </ng-template>
2066
- <ng-container *ngIf="loaderTemplate() || _loaderTemplate">
2011
+ <ng-container *ngIf="loaderTemplate() || _loaderTemplate()">
2067
2012
  <ng-template #loader let-scrollerOptions="options">
2068
- <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
2013
+ <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
2069
2014
  </ng-template>
2070
2015
  </ng-container>
2071
2016
  </p-scroller>
2072
- <ng-container *ngIf="!virtualScroll">
2017
+ <ng-container *ngIf="!virtualScroll()">
2073
2018
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
2074
2019
  </ng-container>
2075
2020
 
2076
2021
  <ng-template #buildInItems let-items let-scrollerOptions="options">
2077
- <ul #items [pBind]="ptm('list')" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel">
2022
+ <ul #items [pBind]="ptm('list')" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel()">
2078
2023
  <ng-template ngFor let-option [ngForOf]="items" let-i="index">
2079
2024
  <ng-container *ngIf="isOptionGroup(option)">
2080
- <li [pBind]="ptm('optionGroup')" [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2081
- <span *ngIf="!groupTemplate() && option.optionGroup">{{ getOptionGroupLabel(option.optionGroup) }}</span>
2082
- <ng-container *ngIf="option.optionGroup && groupTemplate()" [ngTemplateOutlet]="groupTemplate()" [ngTemplateOutletContext]="{ $implicit: option.optionGroup }"></ng-container>
2025
+ <li [pBind]="ptm('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2026
+ <span *ngIf="!groupTemplate() && !_groupTemplate() && option.optionGroup">{{ getOptionGroupLabel(option.optionGroup) }}</span>
2027
+ <ng-container
2028
+ *ngIf="option.optionGroup && (groupTemplate() || _groupTemplate())"
2029
+ [ngTemplateOutlet]="groupTemplate() || _groupTemplate()"
2030
+ [ngTemplateOutletContext]="{ $implicit: option.optionGroup }"
2031
+ ></ng-container>
2083
2032
  </li>
2084
2033
  </ng-container>
2085
2034
  <ng-container *ngIf="!isOptionGroup(option)">
2086
2035
  <li
2087
2036
  pMultiSelectItem
2088
2037
  pRipple
2089
- [pBind]="getPTOptions(option, getItemOptions, i, 'option')"
2090
- [id]="id + '_' + getOptionIndex(i, scrollerOptions)"
2038
+ [pBind]="getPTOptions(option, scrollerOptions, i, 'option')"
2039
+ [id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
2091
2040
  [option]="option"
2092
2041
  [selected]="isSelected(option)"
2093
2042
  [label]="getOptionLabel(option)"
2094
2043
  [disabled]="isOptionDisabled(option)"
2095
- [template]="itemTemplate() || _itemTemplate"
2096
- [itemCheckboxIconTemplate]="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate"
2044
+ [template]="itemTemplate() || _itemTemplate()"
2045
+ [itemCheckboxIconTemplate]="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate()"
2097
2046
  [itemSize]="scrollerOptions.itemSize"
2098
2047
  [focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
2099
2048
  [ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
2100
- [ariaSetSize]="ariaSetSize"
2049
+ [ariaSetSize]="ariaSetSize()"
2101
2050
  [variant]="$variant()"
2102
- [highlightOnSelect]="highlightOnSelect"
2051
+ [highlightOnSelect]="highlightOnSelect()"
2103
2052
  (onClick)="onOptionSelect($event, false, getOptionIndex(i, scrollerOptions))"
2104
2053
  (onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
2105
- [pt]="pt"
2054
+ [pt]="pt()"
2106
2055
  [unstyled]="unstyled()"
2107
2056
  ></li>
2108
2057
  </ng-container>
2109
2058
  </ng-template>
2110
2059
 
2111
2060
  <li *ngIf="hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2112
- @if (!emptyFilterTemplate() && !_emptyFilterTemplate && !emptyTemplate() && !_emptyTemplate) {
2113
- {{ emptyFilterMessageLabel }}
2061
+ @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate() && !_emptyTemplate()) {
2062
+ {{ emptyFilterMessageLabel() }}
2114
2063
  } @else {
2115
- <ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate || emptyTemplate() || _emptyFilterTemplate"></ng-container>
2064
+ <ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
2116
2065
  }
2117
2066
  </li>
2118
2067
  <li *ngIf="!hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2119
- @if (!emptyTemplate() && !_emptyTemplate) {
2120
- {{ emptyMessageLabel }}
2068
+ @if (!emptyTemplate() && !_emptyTemplate()) {
2069
+ {{ emptyMessageLabel() }}
2121
2070
  } @else {
2122
- <ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
2071
+ <ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
2123
2072
  }
2124
2073
  </li>
2125
2074
  </ul>
2126
2075
  </ng-template>
2127
2076
  </div>
2128
- <div *ngIf="footerFacet() || footerTemplate() || _footerTemplate">
2077
+ <div *ngIf="footerFacet() || footerTemplate() || _footerTemplate()">
2129
2078
  <ng-content select="p-footer"></ng-content>
2130
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
2079
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
2131
2080
  </div>
2132
2081
 
2133
2082
  <span
@@ -2143,38 +2092,37 @@ class MultiSelect extends BaseEditableHolder {
2143
2092
  </div>
2144
2093
  </ng-template>
2145
2094
  </p-overlay>
2146
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: MultiSelectItem, selector: "li[pMultiSelectItem]", inputs: ["option", "selected", "label", "disabled", "itemSize", "focused", "ariaPosInset", "ariaSetSize", "variant", "template", "checkIconTemplate", "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", "styleClass"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { 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", "styleClass", "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", "styleClass", "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 });
2095
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: 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 });
2147
2096
  }
2148
2097
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelect, decorators: [{
2149
2098
  type: Component,
2150
2099
  args: [{
2151
2100
  selector: 'p-multiSelect, p-multiselect, p-multi-select',
2152
- standalone: true,
2153
2101
  imports: [CommonModule, MultiSelectItem, Overlay, SharedModule, Tooltip, Scroller, AutoFocus, CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon, IconField, InputIcon, InputText, Chip, Checkbox, FormsModule, BindModule],
2154
2102
  hostDirectives: [Bind],
2155
2103
  template: `
2156
2104
  <div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true" [pBind]="ptm('hiddenInputContainer')">
2157
2105
  <input
2158
2106
  #focusInput
2159
- [pTooltip]="tooltip"
2107
+ [pTooltip]="tooltip()"
2160
2108
  [pTooltipUnstyled]="unstyled()"
2161
- [tooltipPosition]="tooltipPosition"
2162
- [positionStyle]="tooltipPositionStyle"
2163
- [tooltipStyleClass]="tooltipStyleClass"
2109
+ [tooltipPosition]="tooltipPosition()"
2110
+ [positionStyle]="tooltipPositionStyle()"
2111
+ [tooltipStyleClass]="tooltipStyleClass()"
2164
2112
  [attr.aria-disabled]="$disabled()"
2165
- [attr.id]="inputId"
2113
+ [attr.id]="inputId()"
2166
2114
  role="combobox"
2167
- [attr.aria-label]="ariaLabel"
2168
- [attr.aria-labelledby]="ariaLabelledBy"
2115
+ [attr.aria-label]="ariaLabel()"
2116
+ [attr.aria-labelledby]="ariaLabelledBy()"
2169
2117
  [attr.aria-haspopup]="'listbox'"
2170
- [attr.aria-expanded]="overlayVisible ?? false"
2171
- [attr.aria-controls]="overlayVisible ? id + '_list' : null"
2172
- [attr.tabindex]="!$disabled() ? tabindex : -1"
2173
- [attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
2118
+ [attr.aria-expanded]="_overlayVisible() ?? false"
2119
+ [attr.aria-controls]="_overlayVisible() ? _id() + '_list' : null"
2120
+ [attr.tabindex]="!$disabled() ? tabindex() : -1"
2121
+ [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
2174
2122
  (focus)="onInputFocus($event)"
2175
2123
  (blur)="onInputBlur($event)"
2176
2124
  (keydown)="onKeyDown($event)"
2177
- [pAutoFocus]="autofocus"
2125
+ [pAutoFocus]="autofocus()"
2178
2126
  [attr.value]="modelValue()"
2179
2127
  [attr.name]="name()"
2180
2128
  [attr.required]="required() ? '' : undefined"
@@ -2185,34 +2133,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2185
2133
  <div
2186
2134
  [pBind]="ptm('labelContainer')"
2187
2135
  [class]="cx('labelContainer')"
2188
- [pTooltip]="tooltip"
2136
+ [pTooltip]="tooltip()"
2189
2137
  [pTooltipUnstyled]="unstyled()"
2190
2138
  (mouseleave)="labelContainerMouseLeave()"
2191
- [tooltipDisabled]="_disableTooltip"
2192
- [tooltipPosition]="tooltipPosition"
2193
- [positionStyle]="tooltipPositionStyle"
2194
- [tooltipStyleClass]="tooltipStyleClass"
2139
+ [tooltipDisabled]="_disableTooltip()"
2140
+ [tooltipPosition]="tooltipPosition()"
2141
+ [positionStyle]="tooltipPositionStyle()"
2142
+ [tooltipStyleClass]="tooltipStyleClass()"
2195
2143
  >
2196
- <div [pBind]="ptm('label')" [class]="cx('label')" [attr.data-p]="labelDataP">
2197
- <ng-container *ngIf="!selectedItemsTemplate() && !_selectedItemsTemplate">
2198
- <ng-container *ngIf="display === 'comma'">{{ label() || 'empty' }}</ng-container>
2199
- <ng-container *ngIf="display === 'chip'">
2200
- @if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels) {
2144
+ <div [pBind]="ptm('label')" [class]="cx('label')" [attr.data-p]="labelDataP()">
2145
+ <ng-container *ngIf="!selectedItemsTemplate() && !_selectedItemsTemplate()">
2146
+ <ng-container *ngIf="display() === 'comma'">{{ label() || 'empty' }}</ng-container>
2147
+ <ng-container *ngIf="display() === 'chip'">
2148
+ @if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels()) {
2201
2149
  {{ getSelectedItemsLabel() }}
2202
2150
  } @else {
2203
2151
  <div #token *ngFor="let item of chipSelectedItems(); let i = index" [pBind]="ptm('chipItem')" [class]="cx('chipItem')">
2204
- <p-chip [pt]="ptm('pcChip')" [unstyled]="unstyled()" [class]="cx('pcChip')" [label]="getLabelByValue(item)" [removable]="!$disabled() && !readonly" (onRemove)="removeOption(item, $event)" [removeIcon]="chipIcon">
2205
- <ng-container *ngIf="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate">
2152
+ <p-chip [pt]="ptm('pcChip')" [unstyled]="unstyled()" [class]="cx('pcChip')" [label]="getLabelByValue(item)" [removable]="!$disabled() && !readonly()" (onRemove)="removeOption(item, $event)" [removeIcon]="chipIcon()">
2153
+ <ng-container *ngIf="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()">
2206
2154
  <ng-template #removeicon>
2207
- <ng-container *ngIf="!$disabled() && !readonly">
2155
+ <ng-container *ngIf="!$disabled() && !readonly()">
2208
2156
  <span
2209
2157
  [class]="cx('chipIcon')"
2210
- *ngIf="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate"
2158
+ *ngIf="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()"
2211
2159
  (click)="removeOption(item, $event)"
2212
2160
  [attr.aria-hidden]="true"
2213
2161
  [pBind]="ptm('chipIcon')"
2214
2162
  >
2215
- <ng-container *ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate; context: { class: 'p-multiselect-chip-icon' }"></ng-container>
2163
+ <ng-container *ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate(); context: { class: 'p-multiselect-chip-icon' }"></ng-container>
2216
2164
  </span>
2217
2165
  </ng-container>
2218
2166
  </ng-template>
@@ -2223,43 +2171,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2223
2171
  <ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
2224
2172
  </ng-container>
2225
2173
  </ng-container>
2226
- <ng-container *ngIf="selectedItemsTemplate() || _selectedItemsTemplate">
2227
- <ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate; context: { $implicit: selectedOptions, removeChip: removeOption.bind(this) }"></ng-container>
2174
+ <ng-container *ngIf="selectedItemsTemplate() || _selectedItemsTemplate()">
2175
+ <ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate(); context: { $implicit: selectedOptions(), removeChip: removeOption.bind(this) }"></ng-container>
2228
2176
  <ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
2229
2177
  </ng-container>
2230
2178
  </div>
2231
2179
  </div>
2232
- <ng-container *ngIf="isVisibleClearIcon">
2233
- <svg data-p-icon="times" *ngIf="!clearIconTemplate() && !_clearIconTemplate" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true" />
2234
- <span *ngIf="clearIconTemplate() || _clearIconTemplate" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true">
2235
- <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate"></ng-template>
2180
+ <ng-container *ngIf="isVisibleClearIcon()">
2181
+ <svg data-p-icon="times" *ngIf="!clearIconTemplate() && !_clearIconTemplate()" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true" />
2182
+ <span *ngIf="clearIconTemplate() || _clearIconTemplate()" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true">
2183
+ <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
2236
2184
  </span>
2237
2185
  </ng-container>
2238
2186
  <div [pBind]="ptm('dropdown')" [class]="cx('dropdown')">
2239
- <ng-container *ngIf="loading; else elseBlock">
2240
- <ng-container *ngIf="loadingIconTemplate() || _loadingIconTemplate">
2241
- <ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate"></ng-container>
2187
+ <ng-container *ngIf="loading(); else elseBlock">
2188
+ <ng-container *ngIf="loadingIconTemplate() || _loadingIconTemplate()">
2189
+ <ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
2242
2190
  </ng-container>
2243
- <ng-container *ngIf="!loadingIconTemplate() && !_loadingIconTemplate">
2244
- <span *ngIf="loadingIcon" [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon)" [attr.aria-hidden]="true"></span>
2245
- <span *ngIf="!loadingIcon" [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
2191
+ <ng-container *ngIf="!loadingIconTemplate() && !_loadingIconTemplate()">
2192
+ <span *ngIf="loadingIcon()" [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
2193
+ <span *ngIf="!loadingIcon()" [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
2246
2194
  </ng-container>
2247
2195
  </ng-container>
2248
2196
  <ng-template #elseBlock>
2249
- <ng-container *ngIf="!dropdownIconTemplate() && !_dropdownIconTemplate">
2250
- <span *ngIf="dropdownIcon" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP"></span>
2251
- <svg data-p-icon="chevron-down" *ngIf="!dropdownIcon" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP" />
2197
+ <ng-container *ngIf="!dropdownIconTemplate() && !_dropdownIconTemplate()">
2198
+ <span *ngIf="dropdownIcon()" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon()" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()"></span>
2199
+ <svg data-p-icon="chevron-down" *ngIf="!dropdownIcon()" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()" />
2252
2200
  </ng-container>
2253
- <span *ngIf="dropdownIconTemplate() || _dropdownIconTemplate" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true">
2254
- <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate; context: { dataP: dropdownIconDataP }"></ng-template>
2201
+ <span *ngIf="dropdownIconTemplate() || _dropdownIconTemplate()" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true">
2202
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { dataP: dropdownIconDataP() }"></ng-template>
2255
2203
  </span>
2256
2204
  </ng-template>
2257
2205
  </div>
2258
2206
  <p-overlay
2259
2207
  #overlay
2260
2208
  [hostAttrSelector]="$attrSelector"
2261
- [(visible)]="overlayVisible"
2262
- [options]="overlayOptions"
2209
+ [(visible)]="_overlayVisible"
2210
+ [options]="overlayOptions()"
2263
2211
  [target]="'@parent'"
2264
2212
  [appendTo]="$appendTo()"
2265
2213
  [unstyled]="unstyled()"
@@ -2270,7 +2218,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2270
2218
  (onHide)="onOverlayHide($event)"
2271
2219
  >
2272
2220
  <ng-template #content>
2273
- <div [pBind]="ptm('overlay')" [attr.data-p]="overlayDataP" [attr.id]="id + '_list'" [class]="cn(cx('overlay'), panelStyleClass)" [ngStyle]="panelStyle">
2221
+ <div [pBind]="ptm('overlay')" [attr.data-p]="overlayDataP()" [attr.id]="_id() + '_list'" [class]="cn(cx('overlay'), panelStyleClass())" [ngStyle]="panelStyle()">
2274
2222
  <span
2275
2223
  #firstHiddenFocusableEl
2276
2224
  role="presentation"
@@ -2282,31 +2230,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2282
2230
  [pBind]="ptm('firstHiddenFocusableEl')"
2283
2231
  >
2284
2232
  </span>
2285
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
2286
- <div [pBind]="ptm('header')" [class]="cx('header')" *ngIf="showHeader">
2233
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
2234
+ <div [pBind]="ptm('header')" [class]="cx('header')" *ngIf="showHeader()">
2287
2235
  <ng-content select="p-header"></ng-content>
2288
- <ng-container *ngIf="filterTemplate() || _filterTemplate; else builtInFilterElement">
2289
- <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate; context: { options: filterOptions }"></ng-container>
2236
+ <ng-container *ngIf="filterTemplate() || _filterTemplate(); else builtInFilterElement">
2237
+ <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
2290
2238
  </ng-container>
2291
2239
  <ng-template #builtInFilterElement>
2292
2240
  <p-checkbox
2293
2241
  [pt]="getHeaderCheckboxPTOptions('pcHeaderCheckbox')"
2294
2242
  [ngModel]="allSelected()"
2295
2243
  [ngModelOptions]="{ standalone: true }"
2296
- [ariaLabel]="toggleAllAriaLabel"
2244
+ [ariaLabel]="toggleAllAriaLabel()"
2297
2245
  [binary]="true"
2298
2246
  (onChange)="onToggleAll($event)"
2299
- *ngIf="showToggleAll && !selectionLimit"
2247
+ *ngIf="showToggleAll() && !selectionLimit()"
2300
2248
  [variant]="$variant()"
2301
2249
  [disabled]="$disabled()"
2302
2250
  [unstyled]="unstyled()"
2303
2251
  #headerCheckbox
2304
2252
  >
2305
2253
  <ng-template #icon let-klass="class">
2306
- <svg data-p-icon="check" *ngIf="!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate && allSelected()" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
2254
+ <svg data-p-icon="check" *ngIf="!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate() && allSelected()" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
2307
2255
  <ng-template
2308
2256
  *ngTemplateOutlet="
2309
- headerCheckboxIconTemplate() || _headerCheckboxIconTemplate;
2257
+ headerCheckboxIconTemplate() || _headerCheckboxIconTemplate();
2310
2258
  context: {
2311
2259
  checked: allSelected(),
2312
2260
  partialSelected: partialSelected(),
@@ -2317,17 +2265,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2317
2265
  </ng-template>
2318
2266
  </p-checkbox>
2319
2267
 
2320
- <p-iconfield *ngIf="filter" [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
2268
+ <p-iconfield *ngIf="filter()" [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
2321
2269
  <input
2322
2270
  #filterInput
2323
2271
  pInputText
2324
2272
  [pt]="ptm('pcFilter')"
2325
2273
  [variant]="$variant()"
2326
2274
  type="text"
2327
- [attr.autocomplete]="autocomplete"
2275
+ [attr.autocomplete]="autocomplete()"
2328
2276
  role="searchbox"
2329
- [attr.aria-owns]="id + '_list'"
2330
- [attr.aria-activedescendant]="focusedOptionId"
2277
+ [attr.aria-owns]="_id() + '_list'"
2278
+ [attr.aria-activedescendant]="focusedOptionId()"
2331
2279
  [value]="_filterValue() || ''"
2332
2280
  (input)="onFilterInputChange($event)"
2333
2281
  (keydown)="onFilterKeyDown($event)"
@@ -2335,100 +2283,104 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2335
2283
  (blur)="onFilterBlur($event)"
2336
2284
  [class]="cx('pcFilter')"
2337
2285
  [attr.disabled]="$disabled() ? '' : undefined"
2338
- [attr.placeholder]="filterPlaceHolder"
2339
- [attr.aria-label]="ariaFilterLabel"
2286
+ [attr.placeholder]="filterPlaceHolder()"
2287
+ [attr.aria-label]="ariaFilterLabel()"
2340
2288
  [unstyled]="unstyled()"
2341
2289
  />
2342
2290
  <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
2343
- <svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate" [pBind]="ptm('filterIcon')" />
2344
- <span *ngIf="filterIconTemplate() || _filterIconTemplate" [pBind]="ptm('filterIcon')" class="p-multiselect-filter-icon">
2345
- <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate"></ng-template>
2291
+ <svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate()" [pBind]="ptm('filterIcon')" />
2292
+ <span *ngIf="filterIconTemplate() || _filterIconTemplate()" [pBind]="ptm('filterIcon')" class="p-multiselect-filter-icon">
2293
+ <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
2346
2294
  </span>
2347
2295
  </p-inputicon>
2348
2296
  </p-iconfield>
2349
2297
  </ng-template>
2350
2298
  </div>
2351
- <div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
2299
+ <div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'">
2352
2300
  <p-scroller
2353
- *ngIf="virtualScroll"
2301
+ *ngIf="virtualScroll()"
2354
2302
  #scroller
2355
2303
  [items]="visibleOptions()"
2356
- [style]="{ height: scrollHeight }"
2357
- [itemSize]="virtualScrollItemSize"
2304
+ [style]="{ height: scrollHeight() }"
2305
+ [itemSize]="virtualScrollItemSize()"
2358
2306
  [autoSize]="true"
2359
2307
  [tabindex]="-1"
2360
- [lazy]="lazy"
2308
+ [lazy]="lazy()"
2361
2309
  (onLazyLoad)="onLazyLoad.emit($event)"
2362
- [options]="virtualScrollOptions"
2310
+ [options]="virtualScrollOptions()"
2363
2311
  >
2364
2312
  <ng-template #content let-items let-scrollerOptions="options">
2365
2313
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
2366
2314
  </ng-template>
2367
- <ng-container *ngIf="loaderTemplate() || _loaderTemplate">
2315
+ <ng-container *ngIf="loaderTemplate() || _loaderTemplate()">
2368
2316
  <ng-template #loader let-scrollerOptions="options">
2369
- <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
2317
+ <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
2370
2318
  </ng-template>
2371
2319
  </ng-container>
2372
2320
  </p-scroller>
2373
- <ng-container *ngIf="!virtualScroll">
2321
+ <ng-container *ngIf="!virtualScroll()">
2374
2322
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
2375
2323
  </ng-container>
2376
2324
 
2377
2325
  <ng-template #buildInItems let-items let-scrollerOptions="options">
2378
- <ul #items [pBind]="ptm('list')" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel">
2326
+ <ul #items [pBind]="ptm('list')" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel()">
2379
2327
  <ng-template ngFor let-option [ngForOf]="items" let-i="index">
2380
2328
  <ng-container *ngIf="isOptionGroup(option)">
2381
- <li [pBind]="ptm('optionGroup')" [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2382
- <span *ngIf="!groupTemplate() && option.optionGroup">{{ getOptionGroupLabel(option.optionGroup) }}</span>
2383
- <ng-container *ngIf="option.optionGroup && groupTemplate()" [ngTemplateOutlet]="groupTemplate()" [ngTemplateOutletContext]="{ $implicit: option.optionGroup }"></ng-container>
2329
+ <li [pBind]="ptm('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2330
+ <span *ngIf="!groupTemplate() && !_groupTemplate() && option.optionGroup">{{ getOptionGroupLabel(option.optionGroup) }}</span>
2331
+ <ng-container
2332
+ *ngIf="option.optionGroup && (groupTemplate() || _groupTemplate())"
2333
+ [ngTemplateOutlet]="groupTemplate() || _groupTemplate()"
2334
+ [ngTemplateOutletContext]="{ $implicit: option.optionGroup }"
2335
+ ></ng-container>
2384
2336
  </li>
2385
2337
  </ng-container>
2386
2338
  <ng-container *ngIf="!isOptionGroup(option)">
2387
2339
  <li
2388
2340
  pMultiSelectItem
2389
2341
  pRipple
2390
- [pBind]="getPTOptions(option, getItemOptions, i, 'option')"
2391
- [id]="id + '_' + getOptionIndex(i, scrollerOptions)"
2342
+ [pBind]="getPTOptions(option, scrollerOptions, i, 'option')"
2343
+ [id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
2392
2344
  [option]="option"
2393
2345
  [selected]="isSelected(option)"
2394
2346
  [label]="getOptionLabel(option)"
2395
2347
  [disabled]="isOptionDisabled(option)"
2396
- [template]="itemTemplate() || _itemTemplate"
2397
- [itemCheckboxIconTemplate]="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate"
2348
+ [template]="itemTemplate() || _itemTemplate()"
2349
+ [itemCheckboxIconTemplate]="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate()"
2398
2350
  [itemSize]="scrollerOptions.itemSize"
2399
2351
  [focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
2400
2352
  [ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
2401
- [ariaSetSize]="ariaSetSize"
2353
+ [ariaSetSize]="ariaSetSize()"
2402
2354
  [variant]="$variant()"
2403
- [highlightOnSelect]="highlightOnSelect"
2355
+ [highlightOnSelect]="highlightOnSelect()"
2404
2356
  (onClick)="onOptionSelect($event, false, getOptionIndex(i, scrollerOptions))"
2405
2357
  (onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
2406
- [pt]="pt"
2358
+ [pt]="pt()"
2407
2359
  [unstyled]="unstyled()"
2408
2360
  ></li>
2409
2361
  </ng-container>
2410
2362
  </ng-template>
2411
2363
 
2412
2364
  <li *ngIf="hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2413
- @if (!emptyFilterTemplate() && !_emptyFilterTemplate && !emptyTemplate() && !_emptyTemplate) {
2414
- {{ emptyFilterMessageLabel }}
2365
+ @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate() && !_emptyTemplate()) {
2366
+ {{ emptyFilterMessageLabel() }}
2415
2367
  } @else {
2416
- <ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate || emptyTemplate() || _emptyFilterTemplate"></ng-container>
2368
+ <ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
2417
2369
  }
2418
2370
  </li>
2419
2371
  <li *ngIf="!hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2420
- @if (!emptyTemplate() && !_emptyTemplate) {
2421
- {{ emptyMessageLabel }}
2372
+ @if (!emptyTemplate() && !_emptyTemplate()) {
2373
+ {{ emptyMessageLabel() }}
2422
2374
  } @else {
2423
- <ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
2375
+ <ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
2424
2376
  }
2425
2377
  </li>
2426
2378
  </ul>
2427
2379
  </ng-template>
2428
2380
  </div>
2429
- <div *ngIf="footerFacet() || footerTemplate() || _footerTemplate">
2381
+ <div *ngIf="footerFacet() || footerTemplate() || _footerTemplate()">
2430
2382
  <ng-content select="p-footer"></ng-content>
2431
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
2383
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
2432
2384
  </div>
2433
2385
 
2434
2386
  <span
@@ -2449,154 +2401,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2449
2401
  changeDetection: ChangeDetectionStrategy.OnPush,
2450
2402
  encapsulation: ViewEncapsulation.None,
2451
2403
  host: {
2452
- '[attr.id]': 'id',
2453
- '[attr.data-p]': 'containerDataP',
2404
+ '[attr.id]': '_id()',
2405
+ '[attr.data-p]': 'containerDataP()',
2454
2406
  '(click)': 'onContainerClick($event)',
2455
- '[class]': "cn(cx('root'), styleClass)",
2407
+ '[class]': "cx('root')",
2456
2408
  '[style]': "sx('root')"
2457
2409
  }
2458
2410
  }]
2459
- }], ctorParameters: () => [], propDecorators: { id: [{
2460
- type: Input
2461
- }], ariaLabel: [{
2462
- type: Input
2463
- }], styleClass: [{
2464
- type: Input
2465
- }], panelStyle: [{
2466
- type: Input
2467
- }], panelStyleClass: [{
2468
- type: Input
2469
- }], inputId: [{
2470
- type: Input
2471
- }], readonly: [{
2472
- type: Input,
2473
- args: [{ transform: booleanAttribute }]
2474
- }], group: [{
2475
- type: Input,
2476
- args: [{ transform: booleanAttribute }]
2477
- }], filter: [{
2478
- type: Input,
2479
- args: [{ transform: booleanAttribute }]
2480
- }], filterPlaceHolder: [{
2481
- type: Input
2482
- }], filterLocale: [{
2483
- type: Input
2484
- }], overlayVisible: [{
2485
- type: Input,
2486
- args: [{ transform: booleanAttribute }]
2487
- }], tabindex: [{
2488
- type: Input,
2489
- args: [{ transform: numberAttribute }]
2490
- }], dataKey: [{
2491
- type: Input
2492
- }], ariaLabelledBy: [{
2493
- type: Input
2494
- }], displaySelectedLabel: [{
2495
- type: Input
2496
- }], maxSelectedLabels: [{
2497
- type: Input
2498
- }], selectionLimit: [{
2499
- type: Input,
2500
- args: [{ transform: numberAttribute }]
2501
- }], selectedItemsLabel: [{
2502
- type: Input
2503
- }], showToggleAll: [{
2504
- type: Input,
2505
- args: [{ transform: booleanAttribute }]
2506
- }], emptyFilterMessage: [{
2507
- type: Input
2508
- }], emptyMessage: [{
2509
- type: Input
2510
- }], resetFilterOnHide: [{
2511
- type: Input,
2512
- args: [{ transform: booleanAttribute }]
2513
- }], dropdownIcon: [{
2514
- type: Input
2515
- }], chipIcon: [{
2516
- type: Input
2517
- }], optionLabel: [{
2518
- type: Input
2519
- }], optionValue: [{
2520
- type: Input
2521
- }], optionDisabled: [{
2522
- type: Input
2523
- }], optionGroupLabel: [{
2524
- type: Input
2525
- }], optionGroupChildren: [{
2526
- type: Input
2527
- }], showHeader: [{
2528
- type: Input,
2529
- args: [{ transform: booleanAttribute }]
2530
- }], filterBy: [{
2531
- type: Input
2532
- }], scrollHeight: [{
2533
- type: Input
2534
- }], lazy: [{
2535
- type: Input,
2536
- args: [{ transform: booleanAttribute }]
2537
- }], virtualScroll: [{
2538
- type: Input,
2539
- args: [{ transform: booleanAttribute }]
2540
- }], loading: [{
2541
- type: Input,
2542
- args: [{ transform: booleanAttribute }]
2543
- }], virtualScrollItemSize: [{
2544
- type: Input,
2545
- args: [{ transform: numberAttribute }]
2546
- }], loadingIcon: [{
2547
- type: Input
2548
- }], virtualScrollOptions: [{
2549
- type: Input
2550
- }], overlayOptions: [{
2551
- type: Input
2552
- }], ariaFilterLabel: [{
2553
- type: Input
2554
- }], filterMatchMode: [{
2555
- type: Input
2556
- }], tooltip: [{
2557
- type: Input
2558
- }], tooltipPosition: [{
2559
- type: Input
2560
- }], tooltipPositionStyle: [{
2561
- type: Input
2562
- }], tooltipStyleClass: [{
2563
- type: Input
2564
- }], autofocusFilter: [{
2565
- type: Input,
2566
- args: [{ transform: booleanAttribute }]
2567
- }], display: [{
2568
- type: Input
2569
- }], autocomplete: [{
2570
- type: Input
2571
- }], showClear: [{
2572
- type: Input,
2573
- args: [{ transform: booleanAttribute }]
2574
- }], autofocus: [{
2575
- type: Input,
2576
- args: [{ transform: booleanAttribute }]
2577
- }], placeholder: [{
2578
- type: Input
2579
- }], options: [{
2580
- type: Input
2581
- }], filterValue: [{
2582
- type: Input
2583
- }], selectAll: [{
2584
- type: Input
2585
- }], focusOnHover: [{
2586
- type: Input,
2587
- args: [{ transform: booleanAttribute }]
2588
- }], filterFields: [{
2589
- type: Input
2590
- }], selectOnFocus: [{
2591
- type: Input,
2592
- args: [{ transform: booleanAttribute }]
2593
- }], autoOptionFocus: [{
2594
- type: Input,
2595
- args: [{ transform: booleanAttribute }]
2596
- }], highlightOnSelect: [{
2597
- type: Input,
2598
- args: [{ transform: booleanAttribute }]
2599
- }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onPanelShow: [{ type: i0.Output, args: ["onPanelShow"] }], onPanelHide: [{ type: i0.Output, args: ["onPanelHide"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onSelectAllChange: [{ type: i0.Output, args: ["onSelectAllChange"] }], overlayViewChild: [{ type: i0.ViewChild, args: ['overlay', { isSignal: true }] }], filterInputChild: [{ type: i0.ViewChild, args: ['filterInput', { isSignal: true }] }], focusInputViewChild: [{ type: i0.ViewChild, args: ['focusInput', { isSignal: true }] }], itemsViewChild: [{ type: i0.ViewChild, args: ['items', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], lastHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['lastHiddenFocusableEl', { isSignal: true }] }], firstHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['firstHiddenFocusableEl', { isSignal: true }] }], headerCheckboxViewChild: [{ type: i0.ViewChild, args: ['headerCheckbox', { isSignal: true }] }], footerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: ['group', { ...{ descendants: false }, isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], filterTemplate: [{ type: i0.ContentChild, args: ['filter', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], emptyFilterTemplate: [{ type: i0.ContentChild, args: ['emptyfilter', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], selectedItemsTemplate: [{ type: i0.ContentChild, args: ['selecteditems', { ...{ descendants: false }, isSignal: true }] }], loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { ...{ descendants: false }, isSignal: true }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], removeTokenIconTemplate: [{ type: i0.ContentChild, args: ['removetokenicon', { ...{ descendants: false }, isSignal: true }] }], chipIconTemplate: [{ type: i0.ContentChild, args: ['chipicon', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }], itemCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['itemcheckboxicon', { ...{ descendants: false }, isSignal: true }] }], headerCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['headercheckboxicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
2411
+ }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], panelStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyle", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterPlaceHolder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceHolder", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], overlayVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlayVisible", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], displaySelectedLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "displaySelectedLabel", required: false }] }], maxSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelectedLabels", required: false }] }], selectionLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionLimit", required: false }] }], selectedItemsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedItemsLabel", required: false }] }], showToggleAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToggleAll", required: false }] }], emptyFilterMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyFilterMessage", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], resetFilterOnHide: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetFilterOnHide", required: false }] }], dropdownIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownIcon", required: false }] }], chipIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipIcon", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], showHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeader", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], virtualScrollOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollOptions", required: false }] }], overlayOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlayOptions", required: false }] }], ariaFilterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaFilterLabel", required: false }] }], filterMatchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMatchMode", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipPositionStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPositionStyle", required: false }] }], tooltipStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipStyleClass", required: false }] }], autofocusFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocusFilter", required: false }] }], display: [{ type: i0.Input, args: [{ isSignal: true, alias: "display", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], filterValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterValue", required: false }] }], selectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAll", required: false }] }], focusOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnHover", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], autoOptionFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoOptionFocus", required: false }] }], highlightOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightOnSelect", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onPanelShow: [{ type: i0.Output, args: ["onPanelShow"] }], onPanelHide: [{ type: i0.Output, args: ["onPanelHide"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onSelectAllChange: [{ type: i0.Output, args: ["onSelectAllChange"] }], overlayViewChild: [{ type: i0.ViewChild, args: ['overlay', { isSignal: true }] }], filterInputChild: [{ type: i0.ViewChild, args: ['filterInput', { isSignal: true }] }], focusInputViewChild: [{ type: i0.ViewChild, args: ['focusInput', { isSignal: true }] }], itemsViewChild: [{ type: i0.ViewChild, args: ['items', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], lastHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['lastHiddenFocusableEl', { isSignal: true }] }], firstHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['firstHiddenFocusableEl', { isSignal: true }] }], headerCheckboxViewChild: [{ type: i0.ViewChild, args: ['headerCheckbox', { isSignal: true }] }], footerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: ['group', { ...{ descendants: false }, isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], filterTemplate: [{ type: i0.ContentChild, args: ['filter', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], emptyFilterTemplate: [{ type: i0.ContentChild, args: ['emptyfilter', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], selectedItemsTemplate: [{ type: i0.ContentChild, args: ['selecteditems', { ...{ descendants: false }, isSignal: true }] }], loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { ...{ descendants: false }, isSignal: true }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], removeTokenIconTemplate: [{ type: i0.ContentChild, args: ['removetokenicon', { ...{ descendants: false }, isSignal: true }] }], chipIconTemplate: [{ type: i0.ContentChild, args: ['chipicon', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }], itemCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['itemcheckboxicon', { ...{ descendants: false }, isSignal: true }] }], headerCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['headercheckboxicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
2600
2412
  class MultiSelectModule {
2601
2413
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2602
2414
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: MultiSelectModule, imports: [MultiSelect, SharedModule], exports: [MultiSelect, SharedModule] });