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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) 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 +10 -17
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +786 -928
  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 +561 -599
  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 +227 -394
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +255 -266
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +585 -653
  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 +1792 -1787
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +480 -577
  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 +774 -745
  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-angledoubledown.mjs +2 -2
  68. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
  70. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
  72. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
  74. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
  76. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
  78. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
  80. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
  84. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
  86. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
  88. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
  90. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
  92. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
  94. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
  96. package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
  98. package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  100. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
  102. package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
  104. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
  106. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
  108. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
  110. package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
  112. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
  114. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
  116. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
  118. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
  120. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
  122. package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
  124. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
  126. package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
  128. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
  130. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
  132. package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
  134. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
  136. package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
  138. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
  140. package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
  142. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
  144. package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
  146. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
  148. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
  150. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
  152. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
  154. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
  156. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
  158. package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
  160. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
  162. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
  164. package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
  166. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
  168. package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
  170. package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
  171. package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
  172. package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
  173. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
  174. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
  175. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
  176. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
  177. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  178. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  179. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  180. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  181. package/fesm2022/exhaustive-ui-core-inplace.mjs +68 -102
  182. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  183. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  184. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  185. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  186. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  187. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  188. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  189. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  190. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  191. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  192. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  193. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  194. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  195. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  196. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  197. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  198. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  199. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  200. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  201. package/fesm2022/exhaustive-ui-core-listbox.mjs +591 -728
  202. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  203. package/fesm2022/exhaustive-ui-core-megamenu.mjs +324 -375
  204. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  205. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  206. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  207. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  208. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  209. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  210. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  211. package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
  212. package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
  213. package/fesm2022/exhaustive-ui-core-multiselect.mjs +945 -1045
  214. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  215. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  216. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  217. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  218. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  219. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  220. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  221. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  222. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  223. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  224. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  225. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  226. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  227. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  228. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  229. package/fesm2022/exhaustive-ui-core-picklist.mjs +861 -879
  230. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  231. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  232. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  233. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  234. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  235. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  236. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  237. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  238. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  239. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  240. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  241. package/fesm2022/exhaustive-ui-core-select.mjs +837 -986
  242. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  243. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  244. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  245. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  246. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  247. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  248. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  249. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  250. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  251. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  252. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  253. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  254. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  255. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  256. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  257. package/fesm2022/exhaustive-ui-core-table.mjs +2435 -2721
  258. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  259. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  260. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  261. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  262. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  263. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +604 -690
  264. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  265. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  266. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  267. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  268. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  269. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  270. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  271. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  272. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  273. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  274. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  275. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  276. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  277. package/fesm2022/exhaustive-ui-core-treeselect.mjs +333 -423
  278. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  279. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  280. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  281. package/package.json +11 -11
  282. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  283. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  284. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  285. package/schematics/migrations.json +11 -6
  286. package/schematics/utils/removed-inputs.js +0 -0
  287. package/schematics/utils/renamed-inputs.js +175 -0
  288. package/schematics/utils/styleclass.js +24 -8
  289. package/schematics/utils/versions.json +8 -8
  290. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  291. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  292. package/types/exhaustive-ui-core-api.d.ts +2 -3
  293. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  294. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  295. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  296. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  297. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  298. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  299. package/types/exhaustive-ui-core-button.d.ts +57 -89
  300. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  301. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  302. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  303. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  304. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  305. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  306. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  307. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  308. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  309. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  310. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  311. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  312. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  313. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  314. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  315. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  316. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  317. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  318. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  319. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  320. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  321. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  322. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  323. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  324. package/types/exhaustive-ui-core-image.d.ts +35 -68
  325. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  326. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  327. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  328. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  329. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  330. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  331. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  332. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  333. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  334. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  335. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  336. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  337. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  338. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  339. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  340. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  341. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  342. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  343. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  344. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  345. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  346. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  347. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  348. package/types/exhaustive-ui-core-password.d.ts +56 -93
  349. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  350. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  351. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  352. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  353. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  354. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  355. package/types/exhaustive-ui-core-select.d.ts +137 -188
  356. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  357. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  358. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  359. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  360. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  361. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  362. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  363. package/types/exhaustive-ui-core-table.d.ts +349 -453
  364. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  365. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  366. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  367. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  368. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  369. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  370. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  371. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  372. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  373. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  374. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  375. 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,81 +1829,108 @@ 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
+ @if (!selectedItemsTemplate() && !_selectedItemsTemplate()) {
1842
+ @if (display() === 'comma') {
1843
+ <ng-container>{{ label() || 'empty' }}</ng-container>
1844
+ }
1845
+ @if (display() === 'chip') {
1846
+ @if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels()) {
1900
1847
  {{ getSelectedItemsLabel() }}
1901
1848
  } @else {
1902
- <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">
1905
- <ng-template #removeicon>
1906
- <ng-container *ngIf="!$disabled() && !readonly">
1907
- <span
1908
- [class]="cx('chipIcon')"
1909
- *ngIf="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate"
1910
- (click)="removeOption(item, $event)"
1911
- [attr.aria-hidden]="true"
1912
- [pBind]="ptm('chipIcon')"
1913
- >
1914
- <ng-container *ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate; context: { class: 'p-multiselect-chip-icon' }"></ng-container>
1915
- </span>
1916
- </ng-container>
1917
- </ng-template>
1918
- </ng-container>
1919
- </p-chip>
1920
- </div>
1849
+ @for (item of chipSelectedItems(); track $index; let i = $index) {
1850
+ <div #token [pBind]="ptm('chipItem')" [class]="cx('chipItem')">
1851
+ <p-chip
1852
+ [pt]="ptm('pcChip')"
1853
+ [unstyled]="unstyled()"
1854
+ [class]="cx('pcChip')"
1855
+ [label]="getLabelByValue(item)"
1856
+ [removable]="!$disabled() && !readonly()"
1857
+ (onRemove)="removeOption(item, $event)"
1858
+ [removeIcon]="chipIcon()"
1859
+ >
1860
+ @if (chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()) {
1861
+ <ng-template #removeicon>
1862
+ @if (!$disabled() && !readonly()) {
1863
+ @if (chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()) {
1864
+ <span [class]="cx('chipIcon')" (click)="removeOption(item, $event)" [attr.aria-hidden]="true" [pBind]="ptm('chipIcon')">
1865
+ <ng-container
1866
+ *ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate(); context: { class: 'p-multiselect-chip-icon' }"
1867
+ ></ng-container>
1868
+ </span>
1869
+ }
1870
+ }
1871
+ </ng-template>
1872
+ }
1873
+ </p-chip>
1874
+ </div>
1875
+ }
1921
1876
  }
1922
- <ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
1923
- </ng-container>
1924
- </ng-container>
1925
- <ng-container *ngIf="selectedItemsTemplate() || _selectedItemsTemplate">
1926
- <ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate; context: { $implicit: selectedOptions, removeChip: removeOption.bind(this) }"></ng-container>
1927
- <ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
1928
- </ng-container>
1877
+ @if (!modelValue() || modelValue().length === 0) {
1878
+ <ng-container>{{ placeholder() || 'empty' }}</ng-container>
1879
+ }
1880
+ }
1881
+ }
1882
+ @if (selectedItemsTemplate() || _selectedItemsTemplate()) {
1883
+ <ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate(); context: { $implicit: selectedOptions(), removeChip: removeOption.bind(this) }"></ng-container>
1884
+ @if (!modelValue() || modelValue().length === 0) {
1885
+ <ng-container>{{ placeholder() || 'empty' }}</ng-container>
1886
+ }
1887
+ }
1929
1888
  </div>
1930
1889
  </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>
1935
- </span>
1936
- </ng-container>
1937
- <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>
1941
- </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>
1945
- </ng-container>
1946
- </ng-container>
1947
- <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" />
1951
- </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>
1890
+ @if (isVisibleClearIcon()) {
1891
+ @if (!clearIconTemplate() && !_clearIconTemplate()) {
1892
+ <svg data-p-icon="times" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true" />
1893
+ }
1894
+ @if (clearIconTemplate() || _clearIconTemplate()) {
1895
+ <span [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true">
1896
+ <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
1954
1897
  </span>
1955
- </ng-template>
1898
+ }
1899
+ }
1900
+ <div [pBind]="ptm('dropdown')" [class]="cx('dropdown')">
1901
+ @if (loading()) {
1902
+ @if (loadingIconTemplate() || _loadingIconTemplate()) {
1903
+ <ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
1904
+ }
1905
+ @if (!loadingIconTemplate() && !_loadingIconTemplate()) {
1906
+ @if (loadingIcon()) {
1907
+ <span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
1908
+ }
1909
+ @if (!loadingIcon()) {
1910
+ <span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
1911
+ }
1912
+ }
1913
+ } @else {
1914
+ @if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
1915
+ @if (dropdownIcon()) {
1916
+ <span [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon()" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()"></span>
1917
+ }
1918
+ @if (!dropdownIcon()) {
1919
+ <svg data-p-icon="chevron-down" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()" />
1920
+ }
1921
+ }
1922
+ @if (dropdownIconTemplate() || _dropdownIconTemplate()) {
1923
+ <span [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true">
1924
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { dataP: dropdownIconDataP() }"></ng-template>
1925
+ </span>
1926
+ }
1927
+ }
1956
1928
  </div>
1957
1929
  <p-overlay
1958
1930
  #overlay
1959
1931
  [hostAttrSelector]="$attrSelector"
1960
- [(visible)]="overlayVisible"
1961
- [options]="overlayOptions"
1932
+ [(visible)]="_overlayVisible"
1933
+ [options]="overlayOptions()"
1962
1934
  [target]="'@parent'"
1963
1935
  [appendTo]="$appendTo()"
1964
1936
  [unstyled]="unstyled()"
@@ -1969,7 +1941,7 @@ class MultiSelect extends BaseEditableHolder {
1969
1941
  (onHide)="onOverlayHide($event)"
1970
1942
  >
1971
1943
  <ng-template #content>
1972
- <div [pBind]="ptm('overlay')" [attr.data-p]="overlayDataP" [attr.id]="id + '_list'" [class]="cn(cx('overlay'), panelStyleClass)" [ngStyle]="panelStyle">
1944
+ <div [pBind]="ptm('overlay')" [attr.data-p]="overlayDataP()" [attr.id]="_id() + '_list'" [class]="cn(cx('overlay'), panelStyleClass())" [ngStyle]="panelStyle()">
1973
1945
  <span
1974
1946
  #firstHiddenFocusableEl
1975
1947
  role="presentation"
@@ -1981,154 +1953,175 @@ class MultiSelect extends BaseEditableHolder {
1981
1953
  [pBind]="ptm('firstHiddenFocusableEl')"
1982
1954
  >
1983
1955
  </span>
1984
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
1985
- <div [pBind]="ptm('header')" [class]="cx('header')" *ngIf="showHeader">
1986
- <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>
1989
- </ng-container>
1990
- <ng-template #builtInFilterElement>
1991
- <p-checkbox
1992
- [pt]="getHeaderCheckboxPTOptions('pcHeaderCheckbox')"
1993
- [ngModel]="allSelected()"
1994
- [ngModelOptions]="{ standalone: true }"
1995
- [ariaLabel]="toggleAllAriaLabel"
1996
- [binary]="true"
1997
- (onChange)="onToggleAll($event)"
1998
- *ngIf="showToggleAll && !selectionLimit"
1999
- [variant]="$variant()"
2000
- [disabled]="$disabled()"
2001
- [unstyled]="unstyled()"
2002
- #headerCheckbox
2003
- >
2004
- <ng-template #icon let-klass="class">
2005
- <svg data-p-icon="check" *ngIf="!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate && allSelected()" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
2006
- <ng-template
2007
- *ngTemplateOutlet="
2008
- headerCheckboxIconTemplate() || _headerCheckboxIconTemplate;
2009
- context: {
2010
- checked: allSelected(),
2011
- partialSelected: partialSelected(),
2012
- class: klass
1956
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
1957
+ @if (showHeader()) {
1958
+ <div [pBind]="ptm('header')" [class]="cx('header')">
1959
+ <ng-content select="p-header"></ng-content>
1960
+ @if (filterTemplate() || _filterTemplate()) {
1961
+ <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
1962
+ } @else {
1963
+ @if (showToggleAll() && !selectionLimit()) {
1964
+ <p-checkbox
1965
+ [pt]="getHeaderCheckboxPTOptions('pcHeaderCheckbox')"
1966
+ [ngModel]="allSelected()"
1967
+ [ngModelOptions]="{ standalone: true }"
1968
+ [ariaLabel]="toggleAllAriaLabel()"
1969
+ [binary]="true"
1970
+ (onChange)="onToggleAll($event)"
1971
+ [variant]="$variant()"
1972
+ [disabled]="$disabled()"
1973
+ [unstyled]="unstyled()"
1974
+ #headerCheckbox
1975
+ >
1976
+ <ng-template #icon let-klass="class">
1977
+ @if (!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate() && allSelected()) {
1978
+ <svg data-p-icon="check" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
2013
1979
  }
2014
- "
2015
- ></ng-template>
2016
- </ng-template>
2017
- </p-checkbox>
1980
+ <ng-template
1981
+ *ngTemplateOutlet="
1982
+ headerCheckboxIconTemplate() || _headerCheckboxIconTemplate();
1983
+ context: {
1984
+ checked: allSelected(),
1985
+ partialSelected: partialSelected(),
1986
+ class: klass
1987
+ }
1988
+ "
1989
+ ></ng-template>
1990
+ </ng-template>
1991
+ </p-checkbox>
1992
+ }
2018
1993
 
2019
- <p-iconfield *ngIf="filter" [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
2020
- <input
2021
- #filterInput
2022
- pInputText
2023
- [pt]="ptm('pcFilter')"
2024
- [variant]="$variant()"
2025
- type="text"
2026
- [attr.autocomplete]="autocomplete"
2027
- role="searchbox"
2028
- [attr.aria-owns]="id + '_list'"
2029
- [attr.aria-activedescendant]="focusedOptionId"
2030
- [value]="_filterValue() || ''"
2031
- (input)="onFilterInputChange($event)"
2032
- (keydown)="onFilterKeyDown($event)"
2033
- (click)="onInputClick($event)"
2034
- (blur)="onFilterBlur($event)"
2035
- [class]="cx('pcFilter')"
2036
- [attr.disabled]="$disabled() ? '' : undefined"
2037
- [attr.placeholder]="filterPlaceHolder"
2038
- [attr.aria-label]="ariaFilterLabel"
2039
- [unstyled]="unstyled()"
2040
- />
2041
- <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>
2045
- </span>
2046
- </p-inputicon>
2047
- </p-iconfield>
2048
- </ng-template>
2049
- </div>
2050
- <div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
2051
- <p-scroller
2052
- *ngIf="virtualScroll"
2053
- #scroller
2054
- [items]="visibleOptions()"
2055
- [style]="{ height: scrollHeight }"
2056
- [itemSize]="virtualScrollItemSize"
2057
- [autoSize]="true"
2058
- [tabindex]="-1"
2059
- [lazy]="lazy"
2060
- (onLazyLoad)="onLazyLoad.emit($event)"
2061
- [options]="virtualScrollOptions"
2062
- >
2063
- <ng-template #content let-items let-scrollerOptions="options">
2064
- <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
2065
- </ng-template>
2066
- <ng-container *ngIf="loaderTemplate() || _loaderTemplate">
2067
- <ng-template #loader let-scrollerOptions="options">
2068
- <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
1994
+ @if (filter()) {
1995
+ <p-iconfield [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
1996
+ <input
1997
+ #filterInput
1998
+ pInputText
1999
+ [pt]="ptm('pcFilter')"
2000
+ [variant]="$variant()"
2001
+ type="text"
2002
+ [attr.autocomplete]="autocomplete()"
2003
+ role="searchbox"
2004
+ [attr.aria-owns]="_id() + '_list'"
2005
+ [attr.aria-activedescendant]="focusedOptionId()"
2006
+ [value]="_filterValue() || ''"
2007
+ (input)="onFilterInputChange($event)"
2008
+ (keydown)="onFilterKeyDown($event)"
2009
+ (click)="onInputClick($event)"
2010
+ (blur)="onFilterBlur($event)"
2011
+ [class]="cx('pcFilter')"
2012
+ [attr.disabled]="$disabled() ? '' : undefined"
2013
+ [attr.placeholder]="filterPlaceHolder()"
2014
+ [attr.aria-label]="ariaFilterLabel()"
2015
+ [unstyled]="unstyled()"
2016
+ />
2017
+ <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
2018
+ @if (!filterIconTemplate() && !_filterIconTemplate()) {
2019
+ <svg data-p-icon="search" [pBind]="ptm('filterIcon')" />
2020
+ }
2021
+ @if (filterIconTemplate() || _filterIconTemplate()) {
2022
+ <span [pBind]="ptm('filterIcon')" class="p-multiselect-filter-icon">
2023
+ <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
2024
+ </span>
2025
+ }
2026
+ </p-inputicon>
2027
+ </p-iconfield>
2028
+ }
2029
+ }
2030
+ </div>
2031
+ }
2032
+ <div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'">
2033
+ @if (virtualScroll()) {
2034
+ <p-scroller
2035
+ #scroller
2036
+ [items]="visibleOptions()"
2037
+ [style]="{ height: scrollHeight() }"
2038
+ [itemSize]="virtualScrollItemSize()"
2039
+ [autoSize]="true"
2040
+ [tabindex]="-1"
2041
+ [lazy]="lazy()"
2042
+ (onLazyLoad)="onLazyLoad.emit($event)"
2043
+ [options]="virtualScrollOptions()"
2044
+ >
2045
+ <ng-template #content let-items let-scrollerOptions="options">
2046
+ <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
2069
2047
  </ng-template>
2070
- </ng-container>
2071
- </p-scroller>
2072
- <ng-container *ngIf="!virtualScroll">
2048
+ @if (loaderTemplate() || _loaderTemplate()) {
2049
+ <ng-template #loader let-scrollerOptions="options">
2050
+ <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
2051
+ </ng-template>
2052
+ }
2053
+ </p-scroller>
2054
+ }
2055
+ @if (!virtualScroll()) {
2073
2056
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
2074
- </ng-container>
2057
+ }
2075
2058
 
2076
2059
  <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">
2078
- <ng-template ngFor let-option [ngForOf]="items" let-i="index">
2079
- <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>
2060
+ <ul #items [pBind]="ptm('list')" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel()">
2061
+ @for (option of items; track $index; let i = $index) {
2062
+ @if (isOptionGroup(option)) {
2063
+ <li [pBind]="ptm('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2064
+ @if (!groupTemplate() && !_groupTemplate() && option.optionGroup) {
2065
+ <span>{{ getOptionGroupLabel(option.optionGroup) }}</span>
2066
+ }
2067
+ @if (option.optionGroup && (groupTemplate() || _groupTemplate())) {
2068
+ <ng-container [ngTemplateOutlet]="groupTemplate() || _groupTemplate()" [ngTemplateOutletContext]="{ $implicit: option.optionGroup }"></ng-container>
2069
+ }
2083
2070
  </li>
2084
- </ng-container>
2085
- <ng-container *ngIf="!isOptionGroup(option)">
2071
+ }
2072
+ @if (!isOptionGroup(option)) {
2086
2073
  <li
2087
2074
  pMultiSelectItem
2088
2075
  pRipple
2089
- [pBind]="getPTOptions(option, getItemOptions, i, 'option')"
2090
- [id]="id + '_' + getOptionIndex(i, scrollerOptions)"
2076
+ [pBind]="getPTOptions(option, scrollerOptions, i, 'option')"
2077
+ [id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
2091
2078
  [option]="option"
2092
2079
  [selected]="isSelected(option)"
2093
2080
  [label]="getOptionLabel(option)"
2094
2081
  [disabled]="isOptionDisabled(option)"
2095
- [template]="itemTemplate() || _itemTemplate"
2096
- [itemCheckboxIconTemplate]="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate"
2082
+ [template]="itemTemplate() || _itemTemplate()"
2083
+ [itemCheckboxIconTemplate]="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate()"
2097
2084
  [itemSize]="scrollerOptions.itemSize"
2098
2085
  [focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
2099
2086
  [ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
2100
- [ariaSetSize]="ariaSetSize"
2087
+ [ariaSetSize]="ariaSetSize()"
2101
2088
  [variant]="$variant()"
2102
- [highlightOnSelect]="highlightOnSelect"
2089
+ [highlightOnSelect]="highlightOnSelect()"
2103
2090
  (onClick)="onOptionSelect($event, false, getOptionIndex(i, scrollerOptions))"
2104
2091
  (onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
2105
- [pt]="pt"
2092
+ [pt]="pt()"
2106
2093
  [unstyled]="unstyled()"
2107
2094
  ></li>
2108
- </ng-container>
2109
- </ng-template>
2110
-
2111
- <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 }}
2114
- } @else {
2115
- <ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate || emptyTemplate() || _emptyFilterTemplate"></ng-container>
2116
- }
2117
- </li>
2118
- <li *ngIf="!hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2119
- @if (!emptyTemplate() && !_emptyTemplate) {
2120
- {{ emptyMessageLabel }}
2121
- } @else {
2122
- <ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
2123
2095
  }
2124
- </li>
2096
+ }
2097
+
2098
+ @if (hasFilter() && isEmpty()) {
2099
+ <li [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2100
+ @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate() && !_emptyTemplate()) {
2101
+ {{ emptyFilterMessageLabel() }}
2102
+ } @else {
2103
+ <ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
2104
+ }
2105
+ </li>
2106
+ }
2107
+ @if (!hasFilter() && isEmpty()) {
2108
+ <li [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2109
+ @if (!emptyTemplate() && !_emptyTemplate()) {
2110
+ {{ emptyMessageLabel() }}
2111
+ } @else {
2112
+ <ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
2113
+ }
2114
+ </li>
2115
+ }
2125
2116
  </ul>
2126
2117
  </ng-template>
2127
2118
  </div>
2128
- <div *ngIf="footerFacet() || footerTemplate() || _footerTemplate">
2129
- <ng-content select="p-footer"></ng-content>
2130
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
2131
- </div>
2119
+ @if (footerFacet() || footerTemplate() || _footerTemplate()) {
2120
+ <div>
2121
+ <ng-content select="p-footer"></ng-content>
2122
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
2123
+ </div>
2124
+ }
2132
2125
 
2133
2126
  <span
2134
2127
  #lastHiddenFocusableEl
@@ -2143,38 +2136,37 @@ class MultiSelect extends BaseEditableHolder {
2143
2136
  </div>
2144
2137
  </ng-template>
2145
2138
  </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 });
2139
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MultiSelectItem, selector: "li[pMultiSelectItem]", inputs: ["option", "selected", "label", "disabled", "itemSize", "focused", "ariaPosInset", "ariaSetSize", "variant", "template", "itemCheckboxIconTemplate", "highlightOnSelect"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i3.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2147
2140
  }
2148
2141
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelect, decorators: [{
2149
2142
  type: Component,
2150
2143
  args: [{
2151
2144
  selector: 'p-multiSelect, p-multiselect, p-multi-select',
2152
- standalone: true,
2153
2145
  imports: [CommonModule, MultiSelectItem, Overlay, SharedModule, Tooltip, Scroller, AutoFocus, CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon, IconField, InputIcon, InputText, Chip, Checkbox, FormsModule, BindModule],
2154
2146
  hostDirectives: [Bind],
2155
2147
  template: `
2156
2148
  <div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true" [pBind]="ptm('hiddenInputContainer')">
2157
2149
  <input
2158
2150
  #focusInput
2159
- [pTooltip]="tooltip"
2151
+ [pTooltip]="tooltip()"
2160
2152
  [pTooltipUnstyled]="unstyled()"
2161
- [tooltipPosition]="tooltipPosition"
2162
- [positionStyle]="tooltipPositionStyle"
2163
- [tooltipStyleClass]="tooltipStyleClass"
2153
+ [tooltipPosition]="tooltipPosition()"
2154
+ [positionStyle]="tooltipPositionStyle()"
2155
+ [tooltipStyleClass]="tooltipStyleClass()"
2164
2156
  [attr.aria-disabled]="$disabled()"
2165
- [attr.id]="inputId"
2157
+ [attr.id]="inputId()"
2166
2158
  role="combobox"
2167
- [attr.aria-label]="ariaLabel"
2168
- [attr.aria-labelledby]="ariaLabelledBy"
2159
+ [attr.aria-label]="ariaLabel()"
2160
+ [attr.aria-labelledby]="ariaLabelledBy()"
2169
2161
  [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"
2162
+ [attr.aria-expanded]="_overlayVisible() ?? false"
2163
+ [attr.aria-controls]="_overlayVisible() ? _id() + '_list' : null"
2164
+ [attr.tabindex]="!$disabled() ? tabindex() : -1"
2165
+ [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
2174
2166
  (focus)="onInputFocus($event)"
2175
2167
  (blur)="onInputBlur($event)"
2176
2168
  (keydown)="onKeyDown($event)"
2177
- [pAutoFocus]="autofocus"
2169
+ [pAutoFocus]="autofocus()"
2178
2170
  [attr.value]="modelValue()"
2179
2171
  [attr.name]="name()"
2180
2172
  [attr.required]="required() ? '' : undefined"
@@ -2185,81 +2177,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2185
2177
  <div
2186
2178
  [pBind]="ptm('labelContainer')"
2187
2179
  [class]="cx('labelContainer')"
2188
- [pTooltip]="tooltip"
2180
+ [pTooltip]="tooltip()"
2189
2181
  [pTooltipUnstyled]="unstyled()"
2190
2182
  (mouseleave)="labelContainerMouseLeave()"
2191
- [tooltipDisabled]="_disableTooltip"
2192
- [tooltipPosition]="tooltipPosition"
2193
- [positionStyle]="tooltipPositionStyle"
2194
- [tooltipStyleClass]="tooltipStyleClass"
2183
+ [tooltipDisabled]="_disableTooltip()"
2184
+ [tooltipPosition]="tooltipPosition()"
2185
+ [positionStyle]="tooltipPositionStyle()"
2186
+ [tooltipStyleClass]="tooltipStyleClass()"
2195
2187
  >
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) {
2188
+ <div [pBind]="ptm('label')" [class]="cx('label')" [attr.data-p]="labelDataP()">
2189
+ @if (!selectedItemsTemplate() && !_selectedItemsTemplate()) {
2190
+ @if (display() === 'comma') {
2191
+ <ng-container>{{ label() || 'empty' }}</ng-container>
2192
+ }
2193
+ @if (display() === 'chip') {
2194
+ @if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels()) {
2201
2195
  {{ getSelectedItemsLabel() }}
2202
2196
  } @else {
2203
- <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">
2206
- <ng-template #removeicon>
2207
- <ng-container *ngIf="!$disabled() && !readonly">
2208
- <span
2209
- [class]="cx('chipIcon')"
2210
- *ngIf="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate"
2211
- (click)="removeOption(item, $event)"
2212
- [attr.aria-hidden]="true"
2213
- [pBind]="ptm('chipIcon')"
2214
- >
2215
- <ng-container *ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate || removeTokenIconTemplate() || _removeTokenIconTemplate; context: { class: 'p-multiselect-chip-icon' }"></ng-container>
2216
- </span>
2217
- </ng-container>
2218
- </ng-template>
2219
- </ng-container>
2220
- </p-chip>
2221
- </div>
2197
+ @for (item of chipSelectedItems(); track $index; let i = $index) {
2198
+ <div #token [pBind]="ptm('chipItem')" [class]="cx('chipItem')">
2199
+ <p-chip
2200
+ [pt]="ptm('pcChip')"
2201
+ [unstyled]="unstyled()"
2202
+ [class]="cx('pcChip')"
2203
+ [label]="getLabelByValue(item)"
2204
+ [removable]="!$disabled() && !readonly()"
2205
+ (onRemove)="removeOption(item, $event)"
2206
+ [removeIcon]="chipIcon()"
2207
+ >
2208
+ @if (chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()) {
2209
+ <ng-template #removeicon>
2210
+ @if (!$disabled() && !readonly()) {
2211
+ @if (chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate()) {
2212
+ <span [class]="cx('chipIcon')" (click)="removeOption(item, $event)" [attr.aria-hidden]="true" [pBind]="ptm('chipIcon')">
2213
+ <ng-container
2214
+ *ngTemplateOutlet="chipIconTemplate() || _chipIconTemplate() || removeTokenIconTemplate() || _removeTokenIconTemplate(); context: { class: 'p-multiselect-chip-icon' }"
2215
+ ></ng-container>
2216
+ </span>
2217
+ }
2218
+ }
2219
+ </ng-template>
2220
+ }
2221
+ </p-chip>
2222
+ </div>
2223
+ }
2222
2224
  }
2223
- <ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
2224
- </ng-container>
2225
- </ng-container>
2226
- <ng-container *ngIf="selectedItemsTemplate() || _selectedItemsTemplate">
2227
- <ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate; context: { $implicit: selectedOptions, removeChip: removeOption.bind(this) }"></ng-container>
2228
- <ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
2229
- </ng-container>
2225
+ @if (!modelValue() || modelValue().length === 0) {
2226
+ <ng-container>{{ placeholder() || 'empty' }}</ng-container>
2227
+ }
2228
+ }
2229
+ }
2230
+ @if (selectedItemsTemplate() || _selectedItemsTemplate()) {
2231
+ <ng-container *ngTemplateOutlet="selectedItemsTemplate() || _selectedItemsTemplate(); context: { $implicit: selectedOptions(), removeChip: removeOption.bind(this) }"></ng-container>
2232
+ @if (!modelValue() || modelValue().length === 0) {
2233
+ <ng-container>{{ placeholder() || 'empty' }}</ng-container>
2234
+ }
2235
+ }
2230
2236
  </div>
2231
2237
  </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>
2236
- </span>
2237
- </ng-container>
2238
- <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>
2242
- </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>
2246
- </ng-container>
2247
- </ng-container>
2248
- <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" />
2252
- </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>
2238
+ @if (isVisibleClearIcon()) {
2239
+ @if (!clearIconTemplate() && !_clearIconTemplate()) {
2240
+ <svg data-p-icon="times" [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true" />
2241
+ }
2242
+ @if (clearIconTemplate() || _clearIconTemplate()) {
2243
+ <span [pBind]="ptm('clearIcon')" [class]="cx('clearIcon')" (click)="clear($event)" [attr.aria-hidden]="true">
2244
+ <ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
2255
2245
  </span>
2256
- </ng-template>
2246
+ }
2247
+ }
2248
+ <div [pBind]="ptm('dropdown')" [class]="cx('dropdown')">
2249
+ @if (loading()) {
2250
+ @if (loadingIconTemplate() || _loadingIconTemplate()) {
2251
+ <ng-container *ngTemplateOutlet="loadingIconTemplate() || _loadingIconTemplate()"></ng-container>
2252
+ }
2253
+ @if (!loadingIconTemplate() && !_loadingIconTemplate()) {
2254
+ @if (loadingIcon()) {
2255
+ <span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon())" [attr.aria-hidden]="true"></span>
2256
+ }
2257
+ @if (!loadingIcon()) {
2258
+ <span [pBind]="ptm('loadingIcon')" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" [attr.aria-hidden]="true"></span>
2259
+ }
2260
+ }
2261
+ } @else {
2262
+ @if (!dropdownIconTemplate() && !_dropdownIconTemplate()) {
2263
+ @if (dropdownIcon()) {
2264
+ <span [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon()" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()"></span>
2265
+ }
2266
+ @if (!dropdownIcon()) {
2267
+ <svg data-p-icon="chevron-down" [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true" [attr.data-p]="dropdownIconDataP()" />
2268
+ }
2269
+ }
2270
+ @if (dropdownIconTemplate() || _dropdownIconTemplate()) {
2271
+ <span [pBind]="ptm('dropdownIcon')" [class]="cx('dropdownIcon')" [attr.aria-hidden]="true">
2272
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate(); context: { dataP: dropdownIconDataP() }"></ng-template>
2273
+ </span>
2274
+ }
2275
+ }
2257
2276
  </div>
2258
2277
  <p-overlay
2259
2278
  #overlay
2260
2279
  [hostAttrSelector]="$attrSelector"
2261
- [(visible)]="overlayVisible"
2262
- [options]="overlayOptions"
2280
+ [(visible)]="_overlayVisible"
2281
+ [options]="overlayOptions()"
2263
2282
  [target]="'@parent'"
2264
2283
  [appendTo]="$appendTo()"
2265
2284
  [unstyled]="unstyled()"
@@ -2270,7 +2289,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2270
2289
  (onHide)="onOverlayHide($event)"
2271
2290
  >
2272
2291
  <ng-template #content>
2273
- <div [pBind]="ptm('overlay')" [attr.data-p]="overlayDataP" [attr.id]="id + '_list'" [class]="cn(cx('overlay'), panelStyleClass)" [ngStyle]="panelStyle">
2292
+ <div [pBind]="ptm('overlay')" [attr.data-p]="overlayDataP()" [attr.id]="_id() + '_list'" [class]="cn(cx('overlay'), panelStyleClass())" [ngStyle]="panelStyle()">
2274
2293
  <span
2275
2294
  #firstHiddenFocusableEl
2276
2295
  role="presentation"
@@ -2282,154 +2301,175 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2282
2301
  [pBind]="ptm('firstHiddenFocusableEl')"
2283
2302
  >
2284
2303
  </span>
2285
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
2286
- <div [pBind]="ptm('header')" [class]="cx('header')" *ngIf="showHeader">
2287
- <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>
2290
- </ng-container>
2291
- <ng-template #builtInFilterElement>
2292
- <p-checkbox
2293
- [pt]="getHeaderCheckboxPTOptions('pcHeaderCheckbox')"
2294
- [ngModel]="allSelected()"
2295
- [ngModelOptions]="{ standalone: true }"
2296
- [ariaLabel]="toggleAllAriaLabel"
2297
- [binary]="true"
2298
- (onChange)="onToggleAll($event)"
2299
- *ngIf="showToggleAll && !selectionLimit"
2300
- [variant]="$variant()"
2301
- [disabled]="$disabled()"
2302
- [unstyled]="unstyled()"
2303
- #headerCheckbox
2304
- >
2305
- <ng-template #icon let-klass="class">
2306
- <svg data-p-icon="check" *ngIf="!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate && allSelected()" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
2307
- <ng-template
2308
- *ngTemplateOutlet="
2309
- headerCheckboxIconTemplate() || _headerCheckboxIconTemplate;
2310
- context: {
2311
- checked: allSelected(),
2312
- partialSelected: partialSelected(),
2313
- class: klass
2304
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
2305
+ @if (showHeader()) {
2306
+ <div [pBind]="ptm('header')" [class]="cx('header')">
2307
+ <ng-content select="p-header"></ng-content>
2308
+ @if (filterTemplate() || _filterTemplate()) {
2309
+ <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
2310
+ } @else {
2311
+ @if (showToggleAll() && !selectionLimit()) {
2312
+ <p-checkbox
2313
+ [pt]="getHeaderCheckboxPTOptions('pcHeaderCheckbox')"
2314
+ [ngModel]="allSelected()"
2315
+ [ngModelOptions]="{ standalone: true }"
2316
+ [ariaLabel]="toggleAllAriaLabel()"
2317
+ [binary]="true"
2318
+ (onChange)="onToggleAll($event)"
2319
+ [variant]="$variant()"
2320
+ [disabled]="$disabled()"
2321
+ [unstyled]="unstyled()"
2322
+ #headerCheckbox
2323
+ >
2324
+ <ng-template #icon let-klass="class">
2325
+ @if (!headerCheckboxIconTemplate() && !_headerCheckboxIconTemplate() && allSelected()) {
2326
+ <svg data-p-icon="check" [class]="klass" [pBind]="getHeaderCheckboxPTOptions('pcHeaderCheckbox.icon')" />
2314
2327
  }
2315
- "
2316
- ></ng-template>
2317
- </ng-template>
2318
- </p-checkbox>
2328
+ <ng-template
2329
+ *ngTemplateOutlet="
2330
+ headerCheckboxIconTemplate() || _headerCheckboxIconTemplate();
2331
+ context: {
2332
+ checked: allSelected(),
2333
+ partialSelected: partialSelected(),
2334
+ class: klass
2335
+ }
2336
+ "
2337
+ ></ng-template>
2338
+ </ng-template>
2339
+ </p-checkbox>
2340
+ }
2319
2341
 
2320
- <p-iconfield *ngIf="filter" [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
2321
- <input
2322
- #filterInput
2323
- pInputText
2324
- [pt]="ptm('pcFilter')"
2325
- [variant]="$variant()"
2326
- type="text"
2327
- [attr.autocomplete]="autocomplete"
2328
- role="searchbox"
2329
- [attr.aria-owns]="id + '_list'"
2330
- [attr.aria-activedescendant]="focusedOptionId"
2331
- [value]="_filterValue() || ''"
2332
- (input)="onFilterInputChange($event)"
2333
- (keydown)="onFilterKeyDown($event)"
2334
- (click)="onInputClick($event)"
2335
- (blur)="onFilterBlur($event)"
2336
- [class]="cx('pcFilter')"
2337
- [attr.disabled]="$disabled() ? '' : undefined"
2338
- [attr.placeholder]="filterPlaceHolder"
2339
- [attr.aria-label]="ariaFilterLabel"
2340
- [unstyled]="unstyled()"
2341
- />
2342
- <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>
2346
- </span>
2347
- </p-inputicon>
2348
- </p-iconfield>
2349
- </ng-template>
2350
- </div>
2351
- <div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
2352
- <p-scroller
2353
- *ngIf="virtualScroll"
2354
- #scroller
2355
- [items]="visibleOptions()"
2356
- [style]="{ height: scrollHeight }"
2357
- [itemSize]="virtualScrollItemSize"
2358
- [autoSize]="true"
2359
- [tabindex]="-1"
2360
- [lazy]="lazy"
2361
- (onLazyLoad)="onLazyLoad.emit($event)"
2362
- [options]="virtualScrollOptions"
2363
- >
2364
- <ng-template #content let-items let-scrollerOptions="options">
2365
- <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
2366
- </ng-template>
2367
- <ng-container *ngIf="loaderTemplate() || _loaderTemplate">
2368
- <ng-template #loader let-scrollerOptions="options">
2369
- <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
2342
+ @if (filter()) {
2343
+ <p-iconfield [pt]="ptm('pcFilterContainer')" [class]="cx('pcFilterContainer')" [unstyled]="unstyled()">
2344
+ <input
2345
+ #filterInput
2346
+ pInputText
2347
+ [pt]="ptm('pcFilter')"
2348
+ [variant]="$variant()"
2349
+ type="text"
2350
+ [attr.autocomplete]="autocomplete()"
2351
+ role="searchbox"
2352
+ [attr.aria-owns]="_id() + '_list'"
2353
+ [attr.aria-activedescendant]="focusedOptionId()"
2354
+ [value]="_filterValue() || ''"
2355
+ (input)="onFilterInputChange($event)"
2356
+ (keydown)="onFilterKeyDown($event)"
2357
+ (click)="onInputClick($event)"
2358
+ (blur)="onFilterBlur($event)"
2359
+ [class]="cx('pcFilter')"
2360
+ [attr.disabled]="$disabled() ? '' : undefined"
2361
+ [attr.placeholder]="filterPlaceHolder()"
2362
+ [attr.aria-label]="ariaFilterLabel()"
2363
+ [unstyled]="unstyled()"
2364
+ />
2365
+ <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
2366
+ @if (!filterIconTemplate() && !_filterIconTemplate()) {
2367
+ <svg data-p-icon="search" [pBind]="ptm('filterIcon')" />
2368
+ }
2369
+ @if (filterIconTemplate() || _filterIconTemplate()) {
2370
+ <span [pBind]="ptm('filterIcon')" class="p-multiselect-filter-icon">
2371
+ <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
2372
+ </span>
2373
+ }
2374
+ </p-inputicon>
2375
+ </p-iconfield>
2376
+ }
2377
+ }
2378
+ </div>
2379
+ }
2380
+ <div [pBind]="ptm('listContainer')" [class]="cx('listContainer')" [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'">
2381
+ @if (virtualScroll()) {
2382
+ <p-scroller
2383
+ #scroller
2384
+ [items]="visibleOptions()"
2385
+ [style]="{ height: scrollHeight() }"
2386
+ [itemSize]="virtualScrollItemSize()"
2387
+ [autoSize]="true"
2388
+ [tabindex]="-1"
2389
+ [lazy]="lazy()"
2390
+ (onLazyLoad)="onLazyLoad.emit($event)"
2391
+ [options]="virtualScrollOptions()"
2392
+ >
2393
+ <ng-template #content let-items let-scrollerOptions="options">
2394
+ <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
2370
2395
  </ng-template>
2371
- </ng-container>
2372
- </p-scroller>
2373
- <ng-container *ngIf="!virtualScroll">
2396
+ @if (loaderTemplate() || _loaderTemplate()) {
2397
+ <ng-template #loader let-scrollerOptions="options">
2398
+ <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
2399
+ </ng-template>
2400
+ }
2401
+ </p-scroller>
2402
+ }
2403
+ @if (!virtualScroll()) {
2374
2404
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
2375
- </ng-container>
2405
+ }
2376
2406
 
2377
2407
  <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">
2379
- <ng-template ngFor let-option [ngForOf]="items" let-i="index">
2380
- <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>
2408
+ <ul #items [pBind]="ptm('list')" [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel()">
2409
+ @for (option of items; track $index; let i = $index) {
2410
+ @if (isOptionGroup(option)) {
2411
+ <li [pBind]="ptm('optionGroup')" [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2412
+ @if (!groupTemplate() && !_groupTemplate() && option.optionGroup) {
2413
+ <span>{{ getOptionGroupLabel(option.optionGroup) }}</span>
2414
+ }
2415
+ @if (option.optionGroup && (groupTemplate() || _groupTemplate())) {
2416
+ <ng-container [ngTemplateOutlet]="groupTemplate() || _groupTemplate()" [ngTemplateOutletContext]="{ $implicit: option.optionGroup }"></ng-container>
2417
+ }
2384
2418
  </li>
2385
- </ng-container>
2386
- <ng-container *ngIf="!isOptionGroup(option)">
2419
+ }
2420
+ @if (!isOptionGroup(option)) {
2387
2421
  <li
2388
2422
  pMultiSelectItem
2389
2423
  pRipple
2390
- [pBind]="getPTOptions(option, getItemOptions, i, 'option')"
2391
- [id]="id + '_' + getOptionIndex(i, scrollerOptions)"
2424
+ [pBind]="getPTOptions(option, scrollerOptions, i, 'option')"
2425
+ [id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
2392
2426
  [option]="option"
2393
2427
  [selected]="isSelected(option)"
2394
2428
  [label]="getOptionLabel(option)"
2395
2429
  [disabled]="isOptionDisabled(option)"
2396
- [template]="itemTemplate() || _itemTemplate"
2397
- [itemCheckboxIconTemplate]="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate"
2430
+ [template]="itemTemplate() || _itemTemplate()"
2431
+ [itemCheckboxIconTemplate]="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate()"
2398
2432
  [itemSize]="scrollerOptions.itemSize"
2399
2433
  [focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
2400
2434
  [ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
2401
- [ariaSetSize]="ariaSetSize"
2435
+ [ariaSetSize]="ariaSetSize()"
2402
2436
  [variant]="$variant()"
2403
- [highlightOnSelect]="highlightOnSelect"
2437
+ [highlightOnSelect]="highlightOnSelect()"
2404
2438
  (onClick)="onOptionSelect($event, false, getOptionIndex(i, scrollerOptions))"
2405
2439
  (onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
2406
- [pt]="pt"
2440
+ [pt]="pt()"
2407
2441
  [unstyled]="unstyled()"
2408
2442
  ></li>
2409
- </ng-container>
2410
- </ng-template>
2411
-
2412
- <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 }}
2415
- } @else {
2416
- <ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate || emptyTemplate() || _emptyFilterTemplate"></ng-container>
2417
- }
2418
- </li>
2419
- <li *ngIf="!hasFilter() && isEmpty()" [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2420
- @if (!emptyTemplate() && !_emptyTemplate) {
2421
- {{ emptyMessageLabel }}
2422
- } @else {
2423
- <ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
2424
2443
  }
2425
- </li>
2444
+ }
2445
+
2446
+ @if (hasFilter() && isEmpty()) {
2447
+ <li [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2448
+ @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !emptyTemplate() && !_emptyTemplate()) {
2449
+ {{ emptyFilterMessageLabel() }}
2450
+ } @else {
2451
+ <ng-container *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || emptyTemplate() || _emptyTemplate()"></ng-container>
2452
+ }
2453
+ </li>
2454
+ }
2455
+ @if (!hasFilter() && isEmpty()) {
2456
+ <li [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2457
+ @if (!emptyTemplate() && !_emptyTemplate()) {
2458
+ {{ emptyMessageLabel() }}
2459
+ } @else {
2460
+ <ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
2461
+ }
2462
+ </li>
2463
+ }
2426
2464
  </ul>
2427
2465
  </ng-template>
2428
2466
  </div>
2429
- <div *ngIf="footerFacet() || footerTemplate() || _footerTemplate">
2430
- <ng-content select="p-footer"></ng-content>
2431
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
2432
- </div>
2467
+ @if (footerFacet() || footerTemplate() || _footerTemplate()) {
2468
+ <div>
2469
+ <ng-content select="p-footer"></ng-content>
2470
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
2471
+ </div>
2472
+ }
2433
2473
 
2434
2474
  <span
2435
2475
  #lastHiddenFocusableEl
@@ -2449,154 +2489,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
2449
2489
  changeDetection: ChangeDetectionStrategy.OnPush,
2450
2490
  encapsulation: ViewEncapsulation.None,
2451
2491
  host: {
2452
- '[attr.id]': 'id',
2453
- '[attr.data-p]': 'containerDataP',
2492
+ '[attr.id]': '_id()',
2493
+ '[attr.data-p]': 'containerDataP()',
2454
2494
  '(click)': 'onContainerClick($event)',
2455
- '[class]': "cn(cx('root'), styleClass)",
2495
+ '[class]': "cx('root')",
2456
2496
  '[style]': "sx('root')"
2457
2497
  }
2458
2498
  }]
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 }] }] } });
2499
+ }], 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
2500
  class MultiSelectModule {
2601
2501
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: MultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2602
2502
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: MultiSelectModule, imports: [MultiSelect, SharedModule], exports: [MultiSelect, SharedModule] });