@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
@@ -4,10 +4,11 @@ import { moveItemInArray, DragDropModule, CDK_DRAG_CONFIG } from '@angular/cdk/d
4
4
  import * as i2 from '@angular/common';
5
5
  import { CommonModule } from '@angular/common';
6
6
  import * as i0 from '@angular/core';
7
- import { Injectable, InjectionToken, forwardRef, inject, computed, input, booleanAttribute, output, viewChild, contentChild, contentChildren, signal, numberAttribute, HostListener, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
7
+ import { Injectable, InjectionToken, forwardRef, inject, input, afterEveryRender, booleanAttribute, numberAttribute, computed, output, viewChild, contentChild, contentChildren, linkedSignal, signal, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
8
+ import { toSignal } from '@angular/core/rxjs-interop';
8
9
  import * as i3 from '@angular/forms';
9
10
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
10
- import { isNotEmpty, uuid, equals, focus, getFirstFocusableElement, isEmpty, isPrintableCharacter, resolveFieldData, findSingle, findLastIndex, isFunction } from '@exhaustive-ui/utils';
11
+ import { uuid, isNotEmpty, equals, focus, getFirstFocusableElement, isEmpty, isPrintableCharacter, resolveFieldData, findSingle, findLastIndex, isFunction } from '@exhaustive-ui/utils';
11
12
  import { FilterService, Header, Footer, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
12
13
  import { PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
13
14
  import { BaseEditableHolder } from '@exhaustive-ui/core/baseeditableholder';
@@ -66,7 +67,7 @@ const classes = {
66
67
  root: ({ instance }) => [
67
68
  'p-listbox p-component',
68
69
  {
69
- 'p-listbox-striped': instance.striped,
70
+ 'p-listbox-striped': instance.striped(),
70
71
  'p-disabled': instance.$disabled(),
71
72
  'p-invalid': instance.invalid(),
72
73
  'p-listbox-fluid': instance.fluid(),
@@ -81,7 +82,7 @@ const classes = {
81
82
  option: ({ instance, option, i, scrollerOptions }) => [
82
83
  'p-listbox-option',
83
84
  {
84
- 'p-listbox-option-selected': instance.isSelected(option) && instance.highlightOnSelect,
85
+ 'p-listbox-option-selected': instance.isSelected(option) && instance.highlightOnSelect(),
85
86
  'p-focus': instance.focusedOptionIndex() === instance.getOptionIndex(i, scrollerOptions),
86
87
  'p-disabled': instance.isOptionDisabled(option)
87
88
  }
@@ -166,279 +167,288 @@ const LISTBOX_VALUE_ACCESSOR = {
166
167
  class Listbox extends BaseEditableHolder {
167
168
  filterService = inject(FilterService);
168
169
  componentName = 'Listbox';
169
- hostName = '';
170
+ hostName = input('', /* @ts-ignore */
171
+ ...(ngDevMode ? [{ debugName: "hostName" }] : /* istanbul ignore next */ []));
170
172
  bindDirectiveInstance = inject(Bind, { self: true });
171
173
  $pcListbox = inject(LISTBOX_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
172
- onAfterViewChecked() {
173
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
174
+ constructor() {
175
+ super();
176
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
174
177
  }
175
178
  /**
176
179
  * Unique identifier of the component.
177
180
  * @group Props
178
181
  */
179
- id;
182
+ id = input(/* @ts-ignore */
183
+ ...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
180
184
  /**
181
185
  * Text to display when the search is active. Defaults to global value in i18n translation configuration.
182
186
  * @group Props
183
187
  * @defaultValue '{0} results are available'
184
188
  */
185
- searchMessage;
189
+ searchMessage = input(/* @ts-ignore */
190
+ ...(ngDevMode ? [undefined, { debugName: "searchMessage" }] : /* istanbul ignore next */ []));
186
191
  /**
187
192
  * Text to display when filtering does not return any results. Defaults to global value in i18n translation configuration.
188
193
  * @group Props
189
194
  * @defaultValue 'No selected item'
190
195
  */
191
- emptySelectionMessage;
196
+ emptySelectionMessage = input(/* @ts-ignore */
197
+ ...(ngDevMode ? [undefined, { debugName: "emptySelectionMessage" }] : /* istanbul ignore next */ []));
192
198
  /**
193
199
  * Text to be displayed in hidden accessible field when options are selected. Defaults to global value in i18n translation configuration.
194
200
  * @group Props
195
201
  * @defaultValue '{0} items selected'
196
202
  */
197
- selectionMessage;
203
+ selectionMessage = input(/* @ts-ignore */
204
+ ...(ngDevMode ? [undefined, { debugName: "selectionMessage" }] : /* istanbul ignore next */ []));
198
205
  /**
199
206
  * Whether to focus on the first visible or selected element when the overlay panel is shown.
200
207
  * @group Props
201
208
  */
202
- autoOptionFocus = true;
209
+ autoOptionFocus = input(true, { ...(ngDevMode ? { debugName: "autoOptionFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
203
210
  /**
204
211
  * Defines a string that labels the input for accessibility.
205
212
  * @group Props
206
213
  */
207
- ariaLabel;
214
+ ariaLabel = input(/* @ts-ignore */
215
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
208
216
  /**
209
217
  * When enabled, the focused option is selected.
210
218
  * @group Props
211
219
  */
212
- selectOnFocus;
220
+ selectOnFocus = input(undefined, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
213
221
  /**
214
222
  * Locale to use in searching. The default locale is the host environment's current locale.
215
223
  * @group Props
216
224
  */
217
- searchLocale;
225
+ searchLocale = input(undefined, { ...(ngDevMode ? { debugName: "searchLocale" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
218
226
  /**
219
227
  * When enabled, the hovered option will be focused.
220
228
  * @group Props
221
229
  */
222
- focusOnHover = true;
230
+ focusOnHover = input(true, { ...(ngDevMode ? { debugName: "focusOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
223
231
  /**
224
232
  * Text to display when filtering.
225
233
  * @group Props
226
234
  */
227
- filterMessage;
235
+ filterMessage = input(/* @ts-ignore */
236
+ ...(ngDevMode ? [undefined, { debugName: "filterMessage" }] : /* istanbul ignore next */ []));
228
237
  /**
229
238
  * Fields used when filtering the options, defaults to optionLabel.
230
239
  * @group Props
231
240
  */
232
- filterFields;
241
+ filterFields = input(/* @ts-ignore */
242
+ ...(ngDevMode ? [undefined, { debugName: "filterFields" }] : /* istanbul ignore next */ []));
233
243
  /**
234
244
  * Defines if data is loaded and interacted with in lazy manner.
235
245
  * @group Props
236
246
  */
237
- lazy = false;
247
+ lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
238
248
  /**
239
249
  * Whether the data should be loaded on demand during scroll.
240
250
  * @group Props
241
251
  */
242
- virtualScroll;
252
+ virtualScroll = input(undefined, { ...(ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
243
253
  /**
244
254
  * Height of an item in the list for VirtualScrolling.
245
255
  * @group Props
246
256
  */
247
- virtualScrollItemSize;
257
+ virtualScrollItemSize = input(undefined, { ...(ngDevMode ? { debugName: "virtualScrollItemSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
248
258
  /**
249
259
  * Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
250
260
  * @group Props
251
261
  */
252
- virtualScrollOptions;
262
+ virtualScrollOptions = input(/* @ts-ignore */
263
+ ...(ngDevMode ? [undefined, { debugName: "virtualScrollOptions" }] : /* istanbul ignore next */ []));
253
264
  /**
254
265
  * Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
255
266
  * @group Props
256
267
  */
257
- scrollHeight = '14rem';
268
+ scrollHeight = input('14rem', /* @ts-ignore */
269
+ ...(ngDevMode ? [{ debugName: "scrollHeight" }] : /* istanbul ignore next */ []));
258
270
  /**
259
271
  * Index of the element in tabbing order.
260
272
  * @group Props
261
273
  */
262
- tabindex = 0;
274
+ tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
263
275
  /**
264
276
  * When specified, allows selecting multiple values.
265
277
  * @group Props
266
278
  */
267
- multiple;
268
- /**
269
- * Style class of the container.
270
- * @deprecated since v20.0.0, use `class` instead.
271
- * @group Props
272
- */
273
- styleClass;
279
+ multiple = input(undefined, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
274
280
  /**
275
281
  * Inline style of the list element.
276
282
  * @group Props
277
283
  */
278
- listStyle;
284
+ listStyle = input(/* @ts-ignore */
285
+ ...(ngDevMode ? [undefined, { debugName: "listStyle" }] : /* istanbul ignore next */ []));
279
286
  /**
280
287
  * Style class of the list element.
281
288
  * @group Props
282
289
  */
283
- listStyleClass;
290
+ listStyleClass = input(/* @ts-ignore */
291
+ ...(ngDevMode ? [undefined, { debugName: "listStyleClass" }] : /* istanbul ignore next */ []));
284
292
  /**
285
293
  * When present, it specifies that the element value cannot be changed.
286
294
  * @group Props
287
295
  */
288
- readonly;
296
+ readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
289
297
  /**
290
298
  * When specified, allows selecting items with checkboxes.
291
299
  * @group Props
292
300
  */
293
- checkbox = false;
301
+ checkbox = input(false, { ...(ngDevMode ? { debugName: "checkbox" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
294
302
  /**
295
303
  * When specified, displays a filter input at header.
296
304
  * @group Props
297
305
  */
298
- filter = false;
306
+ filter = input(false, { ...(ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
299
307
  /**
300
308
  * When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
301
309
  * @group Props
302
310
  */
303
- filterBy;
311
+ filterBy = input(/* @ts-ignore */
312
+ ...(ngDevMode ? [undefined, { debugName: "filterBy" }] : /* istanbul ignore next */ []));
304
313
  /**
305
314
  * Defines how the items are filtered.
306
315
  * @group Props
307
316
  */
308
- filterMatchMode = 'contains';
317
+ filterMatchMode = input('contains', /* @ts-ignore */
318
+ ...(ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []));
309
319
  /**
310
320
  * Locale to use in filtering. The default locale is the host environment's current locale.
311
321
  * @group Props
312
322
  */
313
- filterLocale;
323
+ filterLocale = input(/* @ts-ignore */
324
+ ...(ngDevMode ? [undefined, { debugName: "filterLocale" }] : /* istanbul ignore next */ []));
314
325
  /**
315
326
  * Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.
316
327
  * @group Props
317
328
  */
318
- metaKeySelection = false;
329
+ metaKeySelection = input(false, { ...(ngDevMode ? { debugName: "metaKeySelection" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
319
330
  /**
320
331
  * A property to uniquely identify a value in options.
321
332
  * @group Props
322
333
  */
323
- dataKey;
334
+ dataKey = input(/* @ts-ignore */
335
+ ...(ngDevMode ? [undefined, { debugName: "dataKey" }] : /* istanbul ignore next */ []));
324
336
  /**
325
337
  * Whether header checkbox is shown in multiple mode.
326
338
  * @group Props
327
339
  */
328
- showToggleAll = true;
340
+ showToggleAll = input(true, { ...(ngDevMode ? { debugName: "showToggleAll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
329
341
  /**
330
342
  * Name of the label field of an option.
331
343
  * @group Props
332
344
  */
333
- optionLabel;
345
+ optionLabel = input(/* @ts-ignore */
346
+ ...(ngDevMode ? [undefined, { debugName: "optionLabel" }] : /* istanbul ignore next */ []));
334
347
  /**
335
348
  * Name of the value field of an option.
336
349
  * @group Props
337
350
  */
338
- optionValue;
351
+ optionValue = input(/* @ts-ignore */
352
+ ...(ngDevMode ? [undefined, { debugName: "optionValue" }] : /* istanbul ignore next */ []));
339
353
  /**
340
354
  * Name of the options field of an option group.
341
355
  * @group Props
342
356
  */
343
- optionGroupChildren = 'items';
357
+ optionGroupChildren = input('items', /* @ts-ignore */
358
+ ...(ngDevMode ? [{ debugName: "optionGroupChildren" }] : /* istanbul ignore next */ []));
344
359
  /**
345
360
  * Name of the label field of an option group.
346
361
  * @group Props
347
362
  */
348
- optionGroupLabel = 'label';
363
+ optionGroupLabel = input('label', /* @ts-ignore */
364
+ ...(ngDevMode ? [{ debugName: "optionGroupLabel" }] : /* istanbul ignore next */ []));
349
365
  /**
350
366
  * Name of the disabled field of an option or function to determine disabled state.
351
367
  * @group Props
352
368
  */
353
- optionDisabled;
369
+ optionDisabled = input(/* @ts-ignore */
370
+ ...(ngDevMode ? [undefined, { debugName: "optionDisabled" }] : /* istanbul ignore next */ []));
354
371
  /**
355
372
  * Defines a string that labels the filter input.
356
373
  * @group Props
357
374
  */
358
- ariaFilterLabel;
375
+ ariaFilterLabel = input(/* @ts-ignore */
376
+ ...(ngDevMode ? [undefined, { debugName: "ariaFilterLabel" }] : /* istanbul ignore next */ []));
359
377
  /**
360
378
  * Defines placeholder of the filter input.
361
379
  * @group Props
362
380
  */
363
- filterPlaceHolder;
381
+ filterPlaceHolder = input(/* @ts-ignore */
382
+ ...(ngDevMode ? [undefined, { debugName: "filterPlaceHolder" }] : /* istanbul ignore next */ []));
364
383
  /**
365
384
  * Text to display when filtering does not return any results.
366
385
  * @group Props
367
386
  */
368
- emptyFilterMessage;
387
+ emptyFilterMessage = input(/* @ts-ignore */
388
+ ...(ngDevMode ? [undefined, { debugName: "emptyFilterMessage" }] : /* istanbul ignore next */ []));
369
389
  /**
370
390
  * Text to display when there is no data. Defaults to global value in i18n translation configuration.
371
391
  * @group Props
372
392
  */
373
- emptyMessage;
393
+ emptyMessage = input(/* @ts-ignore */
394
+ ...(ngDevMode ? [undefined, { debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
374
395
  /**
375
396
  * Whether to display options as grouped when nested options are provided.
376
397
  * @group Props
377
398
  */
378
- group;
399
+ group = input(undefined, { ...(ngDevMode ? { debugName: "group" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
379
400
  /**
380
401
  * An array of selectitems to display as the available options.
381
402
  * @group Props
382
403
  */
383
- get options() {
384
- return this._options();
385
- }
386
- set options(val) {
387
- this._options.set(val);
388
- }
404
+ options = input(/* @ts-ignore */
405
+ ...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
389
406
  /**
390
407
  * When specified, filter displays with this value.
391
408
  * @group Props
392
409
  */
393
- get filterValue() {
394
- return this._filterValue() || '';
395
- }
396
- set filterValue(val) {
397
- this._filterValue.set(val);
398
- }
410
+ filterValue = input(/* @ts-ignore */
411
+ ...(ngDevMode ? [undefined, { debugName: "filterValue" }] : /* istanbul ignore next */ []));
399
412
  /**
400
413
  * Whether all data is selected.
401
414
  * @group Props
402
415
  */
403
- get selectAll() {
404
- return this._selectAll;
405
- }
406
- set selectAll(value) {
407
- this._selectAll = value;
408
- }
416
+ selectAll = input(null, /* @ts-ignore */
417
+ ...(ngDevMode ? [{ debugName: "selectAll" }] : /* istanbul ignore next */ []));
409
418
  /**
410
419
  * Whether to displays rows with alternating colors.
411
420
  * @group Props
412
421
  * @defaultValue false
413
422
  */
414
- striped = false;
423
+ striped = input(false, { ...(ngDevMode ? { debugName: "striped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
415
424
  /**
416
425
  * Whether the selected option will be add highlight class.
417
426
  * @group Props
418
427
  * @defaultValue true
419
428
  */
420
- highlightOnSelect = true;
429
+ highlightOnSelect = input(true, { ...(ngDevMode ? { debugName: "highlightOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
421
430
  /**
422
431
  * Whether the selected option will be shown with a check mark.
423
432
  * @group Props
424
433
  * @defaultValue false
425
434
  */
426
- checkmark = false;
435
+ checkmark = input(false, { ...(ngDevMode ? { debugName: "checkmark" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
427
436
  /**
428
437
  * Whether to enable dragdrop based reordering.
429
438
  * @group Props
430
439
  */
431
- dragdrop = false;
440
+ dragdrop = input(false, { ...(ngDevMode ? { debugName: "dragdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
432
441
  /**
433
442
  * Array to use for CDK drop list data binding. When not provided, uses options array.
434
443
  * @group Props
435
444
  */
436
- dropListData;
445
+ dropListData = input(/* @ts-ignore */
446
+ ...(ngDevMode ? [undefined, { debugName: "dropListData" }] : /* istanbul ignore next */ []));
437
447
  /**
438
448
  * Computed property for stable CDK drop list data reference
439
449
  */
440
450
  cdkDropData = computed(() => {
441
- return this.dropListData || this._options();
451
+ return this.dropListData() || this._options();
442
452
  }, /* @ts-ignore */
443
453
  ...(ngDevMode ? [{ debugName: "cdkDropData" }] : /* istanbul ignore next */ []));
444
454
  /**
@@ -590,70 +600,80 @@ class Listbox extends BaseEditableHolder {
590
600
  loaderTemplate = contentChild('loader', { ...(ngDevMode ? { debugName: "loaderTemplate" } : /* istanbul ignore next */ {}), descendants: false });
591
601
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
592
602
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
593
- _itemTemplate;
594
- _groupTemplate;
595
- _headerTemplate;
596
- _filterTemplate;
597
- _footerTemplate;
598
- _emptyFilterTemplate;
599
- _emptyTemplate;
600
- _filterIconTemplate;
601
- _checkIconTemplate;
602
- _checkmarkTemplate;
603
- _loaderTemplate;
604
- _filterValue = signal(null, /* @ts-ignore */
603
+ _itemTemplate = computed(() => this.templates()
604
+ .filter((item) => !['group', 'header', 'filter', 'footer', 'empty', 'emptyfilter', 'filtericon', 'checkicon', 'checkmark', 'loader'].includes(item.getType()))
605
+ .at(-1)?.template, /* @ts-ignore */
606
+ ...(ngDevMode ? [{ debugName: "_itemTemplate" }] : /* istanbul ignore next */ []));
607
+ _groupTemplate = computed(() => this.findTemplate('group'), /* @ts-ignore */
608
+ ...(ngDevMode ? [{ debugName: "_groupTemplate" }] : /* istanbul ignore next */ []));
609
+ _headerTemplate = computed(() => this.findTemplate('header'), /* @ts-ignore */
610
+ ...(ngDevMode ? [{ debugName: "_headerTemplate" }] : /* istanbul ignore next */ []));
611
+ _filterTemplate = computed(() => this.findTemplate('filter'), /* @ts-ignore */
612
+ ...(ngDevMode ? [{ debugName: "_filterTemplate" }] : /* istanbul ignore next */ []));
613
+ _footerTemplate = computed(() => this.findTemplate('footer'), /* @ts-ignore */
614
+ ...(ngDevMode ? [{ debugName: "_footerTemplate" }] : /* istanbul ignore next */ []));
615
+ _emptyFilterTemplate = computed(() => this.findTemplate('emptyfilter'), /* @ts-ignore */
616
+ ...(ngDevMode ? [{ debugName: "_emptyFilterTemplate" }] : /* istanbul ignore next */ []));
617
+ _emptyTemplate = computed(() => this.findTemplate('empty'), /* @ts-ignore */
618
+ ...(ngDevMode ? [{ debugName: "_emptyTemplate" }] : /* istanbul ignore next */ []));
619
+ _filterIconTemplate = computed(() => this.findTemplate('filtericon'), /* @ts-ignore */
620
+ ...(ngDevMode ? [{ debugName: "_filterIconTemplate" }] : /* istanbul ignore next */ []));
621
+ _checkIconTemplate = computed(() => this.findTemplate('checkicon'), /* @ts-ignore */
622
+ ...(ngDevMode ? [{ debugName: "_checkIconTemplate" }] : /* istanbul ignore next */ []));
623
+ _checkmarkTemplate = computed(() => this.findTemplate('checkmark'), /* @ts-ignore */
624
+ ...(ngDevMode ? [{ debugName: "_checkmarkTemplate" }] : /* istanbul ignore next */ []));
625
+ _loaderTemplate = computed(() => this.findTemplate('loader'), /* @ts-ignore */
626
+ ...(ngDevMode ? [{ debugName: "_loaderTemplate" }] : /* istanbul ignore next */ []));
627
+ _filterValue = linkedSignal(() => this.filterValue() ?? null, /* @ts-ignore */
605
628
  ...(ngDevMode ? [{ debugName: "_filterValue" }] : /* istanbul ignore next */ []));
606
- _filteredOptions;
607
- filterOptions;
608
- filtered;
609
- value;
610
- optionTouched;
611
- focus;
612
- headerCheckboxFocus;
613
- translationSubscription;
614
- focused;
615
- scrollerTabIndex = '0';
629
+ filterOptions = computed(() => this.filterBy()
630
+ ? {
631
+ filter: (value) => this.onFilterChange(value),
632
+ reset: () => this.resetFilter()
633
+ }
634
+ : undefined, /* @ts-ignore */
635
+ ...(ngDevMode ? [{ debugName: "filterOptions" }] : /* istanbul ignore next */ []));
636
+ value = signal(undefined, /* @ts-ignore */
637
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
638
+ optionTouched = signal(undefined, /* @ts-ignore */
639
+ ...(ngDevMode ? [{ debugName: "optionTouched" }] : /* istanbul ignore next */ []));
640
+ translation = toSignal(this.config.translationObserver, { initialValue: this.config.translation });
641
+ focused = signal(undefined, /* @ts-ignore */
642
+ ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
643
+ scrollerTabIndex = signal('0', /* @ts-ignore */
644
+ ...(ngDevMode ? [{ debugName: "scrollerTabIndex" }] : /* istanbul ignore next */ []));
616
645
  _componentStyle = inject(ListBoxStyle);
617
- get focusedOptionId() {
618
- return this.focusedOptionIndex() !== -1 ? `${this.id}_${this.focusedOptionIndex()}` : null;
619
- }
620
- get filterResultMessageText() {
621
- return isNotEmpty(this.visibleOptions()) ? this.filterMessageText.replaceAll('{0}', this.visibleOptions().length) : this.emptyFilterMessageText;
622
- }
623
- get filterMessageText() {
624
- return this.filterMessage || this.config.translation.searchMessage || '';
625
- }
626
- get searchMessageText() {
627
- return this.searchMessage || this.config.translation.searchMessage || '';
628
- }
629
- get emptyFilterMessageText() {
630
- return this.emptyFilterMessage || this.config.translation.emptySearchMessage || this.config.translation.emptyFilterMessage || '';
631
- }
632
- get selectionMessageText() {
633
- return this.selectionMessage || this.config.translation.selectionMessage || '';
634
- }
635
- get emptySelectionMessageText() {
636
- return this.emptySelectionMessage || this.config.translation.emptySelectionMessage || '';
637
- }
638
- get selectedMessageText() {
639
- return this.hasSelectedOption() ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue().length : '1') : this.emptySelectionMessageText;
640
- }
641
- get ariaSetSize() {
642
- return this.visibleOptions().filter((option) => !this.isOptionGroup(option)).length;
643
- }
644
- get virtualScrollerDisabled() {
645
- return !this.virtualScroll;
646
- }
647
- get searchFields() {
648
- return this.filterBy?.split(',') || this.filterFields || [this.optionLabel];
649
- }
650
- get toggleAllAriaLabel() {
651
- return this.config.translation.aria ? this.config.translation.aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined;
652
- }
653
- searchValue;
654
- searchTimeout;
655
- _selectAll = null;
656
- _options = signal(null, /* @ts-ignore */
646
+ _id = computed(() => this.id() || uuid('pn_id_'), /* @ts-ignore */
647
+ ...(ngDevMode ? [{ debugName: "_id" }] : /* istanbul ignore next */ []));
648
+ focusedOptionId = computed(() => (this.focusedOptionIndex() !== -1 ? `${this._id()}_${this.focusedOptionIndex()}` : null), /* @ts-ignore */
649
+ ...(ngDevMode ? [{ debugName: "focusedOptionId" }] : /* istanbul ignore next */ []));
650
+ filterResultMessageText = computed(() => (isNotEmpty(this.visibleOptions()) ? this.filterMessageText().replaceAll('{0}', this.visibleOptions().length) : this.emptyFilterMessageText()), /* @ts-ignore */
651
+ ...(ngDevMode ? [{ debugName: "filterResultMessageText" }] : /* istanbul ignore next */ []));
652
+ filterMessageText = computed(() => this.filterMessage() || this.translation().searchMessage || '', /* @ts-ignore */
653
+ ...(ngDevMode ? [{ debugName: "filterMessageText" }] : /* istanbul ignore next */ []));
654
+ searchMessageText = computed(() => this.searchMessage() || this.translation().searchMessage || '', /* @ts-ignore */
655
+ ...(ngDevMode ? [{ debugName: "searchMessageText" }] : /* istanbul ignore next */ []));
656
+ emptyFilterMessageText = computed(() => this.emptyFilterMessage() || this.translation().emptySearchMessage || this.translation().emptyFilterMessage || '', /* @ts-ignore */
657
+ ...(ngDevMode ? [{ debugName: "emptyFilterMessageText" }] : /* istanbul ignore next */ []));
658
+ selectionMessageText = computed(() => this.selectionMessage() || this.translation().selectionMessage || '', /* @ts-ignore */
659
+ ...(ngDevMode ? [{ debugName: "selectionMessageText" }] : /* istanbul ignore next */ []));
660
+ emptySelectionMessageText = computed(() => this.emptySelectionMessage() || this.translation().emptySelectionMessage || '', /* @ts-ignore */
661
+ ...(ngDevMode ? [{ debugName: "emptySelectionMessageText" }] : /* istanbul ignore next */ []));
662
+ selectedMessageText = computed(() => (this.hasSelectedOption() ? this.selectionMessageText().replaceAll('{0}', this.multiple() ? this.modelValue().length : '1') : this.emptySelectionMessageText()), /* @ts-ignore */
663
+ ...(ngDevMode ? [{ debugName: "selectedMessageText" }] : /* istanbul ignore next */ []));
664
+ ariaSetSize = computed(() => this.visibleOptions().filter((option) => !this.isOptionGroup(option)).length, /* @ts-ignore */
665
+ ...(ngDevMode ? [{ debugName: "ariaSetSize" }] : /* istanbul ignore next */ []));
666
+ virtualScrollerDisabled = computed(() => !this.virtualScroll(), /* @ts-ignore */
667
+ ...(ngDevMode ? [{ debugName: "virtualScrollerDisabled" }] : /* istanbul ignore next */ []));
668
+ searchFields = computed(() => this.filterBy()?.split(',') || this.filterFields() || [this.optionLabel()], /* @ts-ignore */
669
+ ...(ngDevMode ? [{ debugName: "searchFields" }] : /* istanbul ignore next */ []));
670
+ toggleAllAriaLabel = computed(() => (this.translation().aria ? this.translation().aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined), /* @ts-ignore */
671
+ ...(ngDevMode ? [{ debugName: "toggleAllAriaLabel" }] : /* istanbul ignore next */ []));
672
+ searchValue = signal(undefined, /* @ts-ignore */
673
+ ...(ngDevMode ? [{ debugName: "searchValue" }] : /* istanbul ignore next */ []));
674
+ searchTimeout = signal(undefined, /* @ts-ignore */
675
+ ...(ngDevMode ? [{ debugName: "searchTimeout" }] : /* istanbul ignore next */ []));
676
+ _options = linkedSignal(() => this.options() ?? null, /* @ts-ignore */
657
677
  ...(ngDevMode ? [{ debugName: "_options" }] : /* istanbul ignore next */ []));
658
678
  startRangeIndex = signal(-1, /* @ts-ignore */
659
679
  ...(ngDevMode ? [{ debugName: "startRangeIndex" }] : /* istanbul ignore next */ []));
@@ -665,64 +685,17 @@ class Listbox extends BaseEditableHolder {
665
685
  this.onFocusout(event);
666
686
  }
667
687
  visibleOptions = computed(() => {
668
- const options = this.group ? this.flatOptions(this._options()) : this._options() || [];
669
- return this._filterValue() ? this.filterService.filter(options, this.searchFields, this._filterValue(), this.filterMatchMode, this.filterLocale) : options;
688
+ const options = this.group() ? this.flatOptions(this._options()) : this._options() || [];
689
+ return this._filterValue() ? this.filterService.filter(options, this.searchFields(), this._filterValue(), this.filterMatchMode(), this.filterLocale()) : options;
670
690
  }, /* @ts-ignore */
671
691
  ...(ngDevMode ? [{ debugName: "visibleOptions" }] : /* istanbul ignore next */ []));
672
692
  onInit() {
673
- this.id = this.id || uuid('pn_id_');
674
- this.translationSubscription = this.config.translationObserver.subscribe(() => {
675
- this.cd.markForCheck();
676
- });
677
693
  this.autoUpdateModel();
678
- if (this.filterBy) {
679
- this.filterOptions = {
680
- filter: (value) => this.onFilterChange(value),
681
- reset: () => this.resetFilter()
682
- };
683
- }
684
694
  }
685
- onAfterContentInit() {
686
- this.templates().forEach((item) => {
687
- switch (item.getType()) {
688
- case 'item':
689
- this._itemTemplate = item.template;
690
- break;
691
- case 'group':
692
- this._groupTemplate = item.template;
693
- break;
694
- case 'header':
695
- this._headerTemplate = item.template;
696
- break;
697
- case 'filter':
698
- this._filterTemplate = item.template;
699
- break;
700
- case 'footer':
701
- this._footerTemplate = item.template;
702
- break;
703
- case 'empty':
704
- this._emptyTemplate = item.template;
705
- break;
706
- case 'emptyfilter':
707
- this._emptyFilterTemplate = item.template;
708
- break;
709
- case 'filtericon':
710
- this._filterIconTemplate = item.template;
711
- break;
712
- case 'checkicon':
713
- this._checkIconTemplate = item.template;
714
- break;
715
- case 'checkmark':
716
- this._checkmarkTemplate = item.template;
717
- break;
718
- case 'loader':
719
- this._loaderTemplate = item.template;
720
- break;
721
- default:
722
- this._itemTemplate = item.template;
723
- break;
724
- }
725
- });
695
+ findTemplate(type) {
696
+ return this.templates()
697
+ .filter((item) => item.getType() === type)
698
+ .at(-1)?.template;
726
699
  }
727
700
  flatOptions(options) {
728
701
  return (options || []).reduce((result, option, index) => {
@@ -733,7 +706,7 @@ class Listbox extends BaseEditableHolder {
733
706
  }, []);
734
707
  }
735
708
  autoUpdateModel() {
736
- if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption() && !this.multiple) {
709
+ if (this.selectOnFocus() && this.autoOptionFocus() && !this.hasSelectedOption() && !this.multiple()) {
737
710
  const focusedOptionIndex = this.findFirstFocusedOptionIndex();
738
711
  this.focusedOptionIndex.set(focusedOptionIndex);
739
712
  this.onOptionSelect(null, this.visibleOptions()[this.focusedOptionIndex()]);
@@ -744,27 +717,27 @@ class Listbox extends BaseEditableHolder {
744
717
  * @group Method
745
718
  */
746
719
  updateModel(value, event) {
747
- this.value = value;
720
+ this.value.set(value);
748
721
  this.writeModelValue(value);
749
722
  this.onModelChange(value);
750
- this.onChange.emit({ originalEvent: event, value: this.value });
723
+ this.onChange.emit({ originalEvent: event, value: this.value() });
751
724
  }
752
725
  removeOption(option) {
753
726
  return this.modelValue().filter((val) => !equals(val, this.getOptionValue(option), this.equalityKey() || ''));
754
727
  }
755
728
  onOptionSelect(event, option, index = -1) {
756
- if (this.$disabled() || this.isOptionDisabled(option) || this.readonly) {
729
+ if (this.$disabled() || this.isOptionDisabled(option) || this.readonly()) {
757
730
  return;
758
731
  }
759
- event && this.onClick.emit({ originalEvent: event, option, value: this.value });
760
- this.multiple ? this.onOptionSelectMultiple(event, option) : this.onOptionSelectSingle(event, option);
761
- this.optionTouched = false;
732
+ event && this.onClick.emit({ originalEvent: event, option, value: this.value() });
733
+ this.multiple() ? this.onOptionSelectMultiple(event, option) : this.onOptionSelectSingle(event, option);
734
+ this.optionTouched.set(false);
762
735
  index !== -1 && this.focusedOptionIndex.set(index);
763
736
  }
764
737
  onOptionSelectMultiple(event, option) {
765
738
  let selected = this.isSelected(option);
766
739
  let value = [];
767
- let metaSelection = this.optionTouched ? false : this.metaKeySelection;
740
+ let metaSelection = this.optionTouched() ? false : this.metaKeySelection();
768
741
  if (metaSelection) {
769
742
  let metaKey = event.metaKey || event.ctrlKey;
770
743
  if (selected) {
@@ -784,7 +757,7 @@ class Listbox extends BaseEditableHolder {
784
757
  let selected = this.isSelected(option);
785
758
  let valueChanged = false;
786
759
  let value = null;
787
- let metaSelection = this.optionTouched ? false : this.metaKeySelection;
760
+ let metaSelection = this.optionTouched() ? false : this.metaKeySelection();
788
761
  if (metaSelection) {
789
762
  let metaKey = event.metaKey || event.ctrlKey;
790
763
  if (selected) {
@@ -820,11 +793,11 @@ class Listbox extends BaseEditableHolder {
820
793
  }
821
794
  }
822
795
  onToggleAll(event) {
823
- if (this.$disabled() || this.readonly) {
796
+ if (this.$disabled() || this.readonly()) {
824
797
  return;
825
798
  }
826
799
  focus(this.headerCheckboxViewChild()?.nativeElement);
827
- if (this.selectAll !== null) {
800
+ if (this.selectAll() !== null) {
828
801
  this.onSelectAllChange.emit({
829
802
  originalEvent: event,
830
803
  checked: !this.allSelected()
@@ -837,34 +810,33 @@ class Listbox extends BaseEditableHolder {
837
810
  .filter((option) => this.isValidOption(option))
838
811
  .map((option) => this.getOptionValue(option));
839
812
  this.updateModel(value, event);
840
- this.onChange.emit({ originalEvent: event, value: this.value });
813
+ this.onChange.emit({ originalEvent: event, value: this.value() });
841
814
  }
842
815
  }
843
- allSelected() {
844
- return this.selectAll !== null ? this.selectAll : isNotEmpty(this.visibleOptions()) && this.visibleOptions().every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option));
845
- }
816
+ 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 */
817
+ ...(ngDevMode ? [{ debugName: "allSelected" }] : /* istanbul ignore next */ []));
846
818
  onOptionTouchEnd() {
847
819
  if (this.$disabled()) {
848
820
  return;
849
821
  }
850
- this.optionTouched = true;
822
+ this.optionTouched.set(true);
851
823
  }
852
824
  onOptionMouseDown(event, index) {
853
825
  this.changeFocusedOptionIndex(event, index);
854
826
  }
855
827
  onOptionMouseEnter(event, index) {
856
- if (this.focusOnHover && this.focused) {
828
+ if (this.focusOnHover() && this.focused()) {
857
829
  this.changeFocusedOptionIndex(event, index);
858
830
  }
859
831
  }
860
832
  onOptionDoubleClick(event, option) {
861
- if (this.$disabled() || this.isOptionDisabled(option) || this.readonly) {
833
+ if (this.$disabled() || this.isOptionDisabled(option) || this.readonly()) {
862
834
  return;
863
835
  }
864
836
  this.onDblClick.emit({
865
837
  originalEvent: event,
866
838
  option: option,
867
- value: this.value
839
+ value: this.value()
868
840
  });
869
841
  }
870
842
  onFirstHiddenFocus(event) {
@@ -892,54 +864,31 @@ class Listbox extends BaseEditableHolder {
892
864
  const firstHiddenFocusableElement = this.firstHiddenFocusableElement();
893
865
  if (!this.el.nativeElement.contains(event.relatedTarget)) {
894
866
  firstHiddenFocusableElement.nativeElement.tabIndex = lastHiddenFocusableElement.nativeElement.tabIndex = undefined;
895
- this.scrollerTabIndex = '0';
867
+ this.scrollerTabIndex.set('0');
896
868
  }
897
869
  }
898
870
  onListFocus(event) {
899
- this.focused = true;
900
- const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
871
+ this.focused.set(true);
872
+ const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus() ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
901
873
  this.focusedOptionIndex.set(focusedOptionIndex);
902
874
  this.scrollInView(focusedOptionIndex);
903
875
  this.onFocus.emit(event);
904
- this.scrollerTabIndex = '-1';
876
+ this.scrollerTabIndex.set('-1');
905
877
  }
906
878
  onListBlur(event) {
907
- this.focused = false;
879
+ this.focused.set(false);
908
880
  this.focusedOptionIndex.set(-1);
909
881
  this.startRangeIndex.set(-1);
910
- this.searchValue = '';
882
+ this.searchValue.set('');
911
883
  this.onBlur.emit(event);
912
884
  }
913
- onHeaderCheckboxKeyDown(event) {
914
- if (this.$disabled()) {
915
- event.preventDefault();
916
- return;
917
- }
918
- switch (event.code) {
919
- case 'Space':
920
- this.onToggleAll(event);
921
- break;
922
- case 'Enter':
923
- this.onToggleAll(event);
924
- break;
925
- case 'Tab':
926
- this.onHeaderCheckboxTabKeyDown(event);
927
- break;
928
- default:
929
- break;
930
- }
931
- }
932
- onHeaderCheckboxTabKeyDown(event) {
933
- focus(this.listViewChild()?.nativeElement);
934
- event.preventDefault();
935
- }
936
885
  onFilterChange(event) {
937
886
  let value = event.target.value?.trim();
938
887
  this._filterValue.set(value);
939
888
  this.focusedOptionIndex.set(-1);
940
889
  this.startRangeIndex.set(-1);
941
890
  this.onFilter.emit({ originalEvent: event, filter: this._filterValue() });
942
- !this.virtualScrollerDisabled && this.scroller()?.scrollToIndex(0);
891
+ !this.virtualScrollerDisabled() && this.scroller()?.scrollToIndex(0);
943
892
  }
944
893
  onFilterBlur(event) {
945
894
  this.focusedOptionIndex.set(-1);
@@ -979,7 +928,7 @@ class Listbox extends BaseEditableHolder {
979
928
  this.onShiftKey();
980
929
  break;
981
930
  default:
982
- if (this.multiple && event.code === 'KeyA' && metaKey) {
931
+ if (this.multiple() && event.code === 'KeyA' && metaKey) {
983
932
  const value = this.visibleOptions()
984
933
  .filter((option) => this.isValidOption(option))
985
934
  .map((option) => this.getOptionValue(option));
@@ -1025,7 +974,7 @@ class Listbox extends BaseEditableHolder {
1025
974
  }
1026
975
  onArrowDownKey(event) {
1027
976
  const optionIndex = this.focusedOptionIndex() !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex()) : this.findFirstFocusedOptionIndex();
1028
- if (this.multiple && event.shiftKey) {
977
+ if (this.multiple() && event.shiftKey) {
1029
978
  this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);
1030
979
  }
1031
980
  this.changeFocusedOptionIndex(event, optionIndex);
@@ -1033,7 +982,7 @@ class Listbox extends BaseEditableHolder {
1033
982
  }
1034
983
  onArrowUpKey(event) {
1035
984
  const optionIndex = this.focusedOptionIndex() !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex()) : this.findLastFocusedOptionIndex();
1036
- if (this.multiple && event.shiftKey) {
985
+ if (this.multiple() && event.shiftKey) {
1037
986
  this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());
1038
987
  }
1039
988
  this.changeFocusedOptionIndex(event, optionIndex);
@@ -1050,7 +999,7 @@ class Listbox extends BaseEditableHolder {
1050
999
  else {
1051
1000
  let metaKey = event.metaKey || event.ctrlKey;
1052
1001
  let optionIndex = this.findFirstOptionIndex();
1053
- if (this.multiple && event.shiftKey && metaKey) {
1002
+ if (this.multiple() && event.shiftKey && metaKey) {
1054
1003
  this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());
1055
1004
  }
1056
1005
  this.changeFocusedOptionIndex(event, optionIndex);
@@ -1067,7 +1016,7 @@ class Listbox extends BaseEditableHolder {
1067
1016
  else {
1068
1017
  let metaKey = event.metaKey || event.ctrlKey;
1069
1018
  let optionIndex = this.findLastOptionIndex();
1070
- if (this.multiple && event.shiftKey && metaKey) {
1019
+ if (this.multiple() && event.shiftKey && metaKey) {
1071
1020
  this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);
1072
1021
  }
1073
1022
  this.changeFocusedOptionIndex(event, optionIndex);
@@ -1084,7 +1033,7 @@ class Listbox extends BaseEditableHolder {
1084
1033
  }
1085
1034
  onEnterKey(event) {
1086
1035
  if (this.focusedOptionIndex() !== -1) {
1087
- if (this.multiple && event.shiftKey)
1036
+ if (this.multiple() && event.shiftKey)
1088
1037
  this.onOptionSelectRange(event, this.focusedOptionIndex());
1089
1038
  else
1090
1039
  this.onOptionSelect(event, this.visibleOptions()[this.focusedOptionIndex()]);
@@ -1099,22 +1048,22 @@ class Listbox extends BaseEditableHolder {
1099
1048
  this.startRangeIndex.set(focusedOptionIndex);
1100
1049
  }
1101
1050
  getOptionGroupChildren(optionGroup) {
1102
- return this.optionGroupChildren ? resolveFieldData(optionGroup, this.optionGroupChildren) : optionGroup.items;
1051
+ return this.optionGroupChildren() ? resolveFieldData(optionGroup, this.optionGroupChildren()) : optionGroup.items;
1103
1052
  }
1104
1053
  getOptionGroupLabel(optionGroup) {
1105
- return this.optionGroupLabel ? resolveFieldData(optionGroup, this.optionGroupLabel) : optionGroup && optionGroup.label !== undefined ? optionGroup.label : optionGroup;
1054
+ return this.optionGroupLabel() ? resolveFieldData(optionGroup, this.optionGroupLabel()) : optionGroup && optionGroup.label !== undefined ? optionGroup.label : optionGroup;
1106
1055
  }
1107
1056
  getOptionLabel(option) {
1108
- return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option.label != undefined ? option.label : option;
1057
+ return this.optionLabel() ? resolveFieldData(option, this.optionLabel()) : option.label != undefined ? option.label : option;
1109
1058
  }
1110
1059
  getOptionIndex(index, scrollerOptions) {
1111
- return this.virtualScrollerDisabled ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];
1060
+ return this.virtualScrollerDisabled() ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];
1112
1061
  }
1113
1062
  getOptionValue(option) {
1114
- return this.optionValue ? resolveFieldData(option, this.optionValue) : !this.optionLabel && option && option.value !== undefined ? option.value : option;
1063
+ return this.optionValue() ? resolveFieldData(option, this.optionValue()) : !this.optionLabel() && option && option.value !== undefined ? option.value : option;
1115
1064
  }
1116
1065
  getAriaPosInset(index) {
1117
- return ((this.optionGroupLabel
1066
+ return ((this.optionGroupLabel()
1118
1067
  ? index -
1119
1068
  this.visibleOptions()
1120
1069
  .slice(0, index)
@@ -1130,23 +1079,22 @@ class Listbox extends BaseEditableHolder {
1130
1079
  }
1131
1080
  });
1132
1081
  }
1133
- hasSelectedOption() {
1134
- return isNotEmpty(this.modelValue());
1135
- }
1082
+ hasSelectedOption = computed(() => isNotEmpty(this.modelValue()), /* @ts-ignore */
1083
+ ...(ngDevMode ? [{ debugName: "hasSelectedOption" }] : /* istanbul ignore next */ []));
1136
1084
  isOptionGroup(option) {
1137
- return this.optionGroupLabel && option.optionGroup && option.group;
1085
+ return this.optionGroupLabel() && option.optionGroup && option.group;
1138
1086
  }
1139
1087
  changeFocusedOptionIndex(event, index) {
1140
1088
  if (this.focusedOptionIndex() !== index) {
1141
1089
  this.focusedOptionIndex.set(index);
1142
1090
  this.scrollInView();
1143
- if (this.selectOnFocus && !this.multiple) {
1091
+ if (this.selectOnFocus() && !this.multiple()) {
1144
1092
  this.onOptionSelect(event, this.visibleOptions()[index]);
1145
1093
  }
1146
1094
  }
1147
1095
  }
1148
1096
  searchOptions(event, char) {
1149
- this.searchValue = (this.searchValue || '') + char;
1097
+ this.searchValue.set((this.searchValue() || '') + char);
1150
1098
  let optionIndex = -1;
1151
1099
  let matched = false;
1152
1100
  if (this.focusedOptionIndex() !== -1) {
@@ -1172,26 +1120,26 @@ class Listbox extends BaseEditableHolder {
1172
1120
  if (optionIndex !== -1) {
1173
1121
  this.changeFocusedOptionIndex(event, optionIndex);
1174
1122
  }
1175
- if (this.searchTimeout) {
1176
- clearTimeout(this.searchTimeout);
1123
+ if (this.searchTimeout()) {
1124
+ clearTimeout(this.searchTimeout());
1177
1125
  }
1178
- this.searchTimeout = setTimeout(() => {
1179
- this.searchValue = '';
1180
- this.searchTimeout = null;
1181
- }, 500);
1126
+ this.searchTimeout.set(setTimeout(() => {
1127
+ this.searchValue.set('');
1128
+ this.searchTimeout.set(null);
1129
+ }, 500));
1182
1130
  return matched;
1183
1131
  }
1184
1132
  isOptionMatched(option) {
1185
- return this.isValidOption(option) && this.getOptionLabel(option)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale));
1133
+ return this.isValidOption(option) && this.getOptionLabel(option)?.toLocaleLowerCase(this.filterLocale()).startsWith(this.searchValue()?.toLocaleLowerCase(this.filterLocale()));
1186
1134
  }
1187
1135
  scrollInView(index = -1) {
1188
- const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
1136
+ const id = index !== -1 ? `${this._id()}_${index}` : this.focusedOptionId();
1189
1137
  const element = findSingle(this.listViewChild()?.nativeElement, `li[id="${id}"]`);
1190
1138
  if (element) {
1191
1139
  element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
1192
1140
  }
1193
- else if (!this.virtualScrollerDisabled) {
1194
- this.virtualScroll && this.scroller()?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());
1141
+ else if (!this.virtualScrollerDisabled()) {
1142
+ this.virtualScroll() && this.scroller()?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());
1195
1143
  }
1196
1144
  }
1197
1145
  findFirstOptionIndex() {
@@ -1240,7 +1188,7 @@ class Listbox extends BaseEditableHolder {
1240
1188
  }
1241
1189
  findSelectedOptionIndex() {
1242
1190
  if (this.$filled()) {
1243
- if (this.multiple) {
1191
+ if (this.multiple()) {
1244
1192
  for (let index = this.modelValue().length - 1; index >= 0; index--) {
1245
1193
  const value = this.modelValue()[index];
1246
1194
  const matchedOptionIndex = this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option) && this.isEquals(value, this.getOptionValue(option)));
@@ -1268,24 +1216,24 @@ class Listbox extends BaseEditableHolder {
1268
1216
  }
1269
1217
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
1270
1218
  }
1271
- equalityKey() {
1272
- return this.optionValue ? null : this.dataKey;
1273
- }
1219
+ equalityKey = computed(() => (this.optionValue() ? null : this.dataKey()), /* @ts-ignore */
1220
+ ...(ngDevMode ? [{ debugName: "equalityKey" }] : /* istanbul ignore next */ []));
1274
1221
  isValidSelectedOption(option) {
1275
1222
  return this.isValidOption(option) && this.isSelected(option);
1276
1223
  }
1277
1224
  isOptionDisabled(option) {
1278
- if (isFunction(this.optionDisabled)) {
1279
- return this.optionDisabled(option);
1225
+ const optionDisabled = this.optionDisabled();
1226
+ if (isFunction(optionDisabled)) {
1227
+ return optionDisabled(option);
1280
1228
  }
1281
- return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;
1229
+ return optionDisabled ? resolveFieldData(option, optionDisabled) : false;
1282
1230
  }
1283
1231
  isEquals(value1, value2) {
1284
1232
  return equals(value1, value2, this.equalityKey() || '');
1285
1233
  }
1286
1234
  isSelected(option) {
1287
1235
  const optionValue = this.getOptionValue(option);
1288
- if (this.multiple)
1236
+ if (this.multiple())
1289
1237
  return (this.modelValue() || []).some((value) => this.isEquals(value, optionValue));
1290
1238
  else
1291
1239
  return this.isEquals(this.modelValue(), optionValue);
@@ -1293,12 +1241,10 @@ class Listbox extends BaseEditableHolder {
1293
1241
  isValidOption(option) {
1294
1242
  return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
1295
1243
  }
1296
- isEmpty() {
1297
- return !this._options()?.length || !this.visibleOptions()?.length;
1298
- }
1299
- hasFilter() {
1300
- return this._filterValue() && (this._filterValue()?.trim().length || 0) > 0;
1301
- }
1244
+ isEmpty = computed(() => !this._options()?.length || !this.visibleOptions()?.length, /* @ts-ignore */
1245
+ ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
1246
+ hasFilter = computed(() => this._filterValue() && (this._filterValue()?.trim().length || 0) > 0, /* @ts-ignore */
1247
+ ...(ngDevMode ? [{ debugName: "hasFilter" }] : /* istanbul ignore next */ []));
1302
1248
  resetFilter() {
1303
1249
  const filterViewChild = this.filterViewChild();
1304
1250
  if (filterViewChild && filterViewChild.nativeElement) {
@@ -1318,7 +1264,7 @@ class Listbox extends BaseEditableHolder {
1318
1264
  this.isDragging.set(false);
1319
1265
  if (event) {
1320
1266
  // If dragdrop is enabled and same container (reordering), automatically handle reordering
1321
- if (this.dragdrop && event.previousContainer === event.container) {
1267
+ if (this.dragdrop() && event.previousContainer === event.container) {
1322
1268
  const currentOptions = [...this._options()];
1323
1269
  moveItemInArray(currentOptions, event.previousIndex, event.currentIndex);
1324
1270
  this._options.set(currentOptions);
@@ -1328,19 +1274,16 @@ class Listbox extends BaseEditableHolder {
1328
1274
  this.writeModelValue(this.modelValue());
1329
1275
  this.onModelChange(this.modelValue());
1330
1276
  }
1331
- // Mark for change detection
1332
- this.cd.markForCheck();
1333
1277
  }
1334
1278
  // Always emit the event for custom handling
1335
1279
  this.onDrop.emit(event);
1336
1280
  }
1337
1281
  }
1338
- get containerDataP() {
1339
- return this.cn({
1340
- invalid: this.invalid(),
1341
- disabled: this.$disabled()
1342
- });
1343
- }
1282
+ containerDataP = computed(() => this.cn({
1283
+ invalid: this.invalid(),
1284
+ disabled: this.$disabled()
1285
+ }), /* @ts-ignore */
1286
+ ...(ngDevMode ? [{ debugName: "containerDataP" }] : /* istanbul ignore next */ []));
1344
1287
  /**
1345
1288
  * @override
1346
1289
  *
@@ -1348,17 +1291,11 @@ class Listbox extends BaseEditableHolder {
1348
1291
  * Writes the value to the control.
1349
1292
  */
1350
1293
  writeControlValue(value, setModelValue) {
1351
- this.value = value;
1352
- setModelValue(this.value);
1353
- this.cd.markForCheck();
1354
- }
1355
- onDestroy() {
1356
- if (this.translationSubscription) {
1357
- this.translationSubscription.unsubscribe();
1358
- }
1294
+ this.value.set(value);
1295
+ setModelValue(this.value());
1359
1296
  }
1360
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Listbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
1361
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Listbox, isStandalone: true, selector: "p-listbox, p-listBox, p-list-box", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, searchMessage: { classPropertyName: "searchMessage", publicName: "searchMessage", isSignal: false, isRequired: false, transformFunction: null }, emptySelectionMessage: { classPropertyName: "emptySelectionMessage", publicName: "emptySelectionMessage", isSignal: false, isRequired: false, transformFunction: null }, selectionMessage: { classPropertyName: "selectionMessage", publicName: "selectionMessage", isSignal: false, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, searchLocale: { classPropertyName: "searchLocale", publicName: "searchLocale", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterMessage: { classPropertyName: "filterMessage", publicName: "filterMessage", isSignal: false, isRequired: false, transformFunction: null }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", 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 }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: false, isRequired: false, transformFunction: numberAttribute }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: false, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, listStyle: { classPropertyName: "listStyle", publicName: "listStyle", isSignal: false, isRequired: false, transformFunction: null }, listStyleClass: { classPropertyName: "listStyleClass", publicName: "listStyleClass", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, checkbox: { classPropertyName: "checkbox", publicName: "checkbox", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: false, isRequired: false, transformFunction: null }, filterMatchMode: { classPropertyName: "filterMatchMode", publicName: "filterMatchMode", isSignal: false, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: false, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: false, isRequired: false, transformFunction: null }, showToggleAll: { classPropertyName: "showToggleAll", publicName: "showToggleAll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: false, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: false, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: false, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: false, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: false, isRequired: false, transformFunction: null }, ariaFilterLabel: { classPropertyName: "ariaFilterLabel", publicName: "ariaFilterLabel", isSignal: false, isRequired: false, transformFunction: null }, filterPlaceHolder: { classPropertyName: "filterPlaceHolder", publicName: "filterPlaceHolder", isSignal: false, isRequired: false, transformFunction: null }, emptyFilterMessage: { classPropertyName: "emptyFilterMessage", publicName: "emptyFilterMessage", isSignal: false, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: false, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, 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 }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, checkmark: { classPropertyName: "checkmark", publicName: "checkmark", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dragdrop: { classPropertyName: "dragdrop", publicName: "dragdrop", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dropListData: { classPropertyName: "dropListData", publicName: "dropListData", isSignal: false, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onClick: "onClick", onDblClick: "onDblClick", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onSelectAllChange: "onSelectAllChange", onLazyLoad: "onLazyLoad", onDrop: "onDrop" }, host: { listeners: { "focusout": "onHostFocusOut($event)" }, properties: { "attr.id": "id", "class": "cn(cx('root'), styleClass)", "attr.data-p": "containerDataP" } }, providers: [
1297
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Listbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
1298
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Listbox, isStandalone: true, selector: "p-listbox, p-listBox, p-list-box", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, searchMessage: { classPropertyName: "searchMessage", publicName: "searchMessage", isSignal: true, isRequired: false, transformFunction: null }, emptySelectionMessage: { classPropertyName: "emptySelectionMessage", publicName: "emptySelectionMessage", isSignal: true, isRequired: false, transformFunction: null }, selectionMessage: { classPropertyName: "selectionMessage", publicName: "selectionMessage", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, searchLocale: { classPropertyName: "searchLocale", publicName: "searchLocale", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, filterMessage: { classPropertyName: "filterMessage", publicName: "filterMessage", isSignal: true, isRequired: false, transformFunction: null }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, listStyle: { classPropertyName: "listStyle", publicName: "listStyle", isSignal: true, isRequired: false, transformFunction: null }, listStyleClass: { classPropertyName: "listStyleClass", publicName: "listStyleClass", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, checkbox: { classPropertyName: "checkbox", publicName: "checkbox", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, filterMatchMode: { classPropertyName: "filterMatchMode", publicName: "filterMatchMode", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, showToggleAll: { classPropertyName: "showToggleAll", publicName: "showToggleAll", 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 }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, ariaFilterLabel: { classPropertyName: "ariaFilterLabel", publicName: "ariaFilterLabel", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceHolder: { classPropertyName: "filterPlaceHolder", publicName: "filterPlaceHolder", 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 }, group: { classPropertyName: "group", publicName: "group", 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 }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null }, checkmark: { classPropertyName: "checkmark", publicName: "checkmark", isSignal: true, isRequired: false, transformFunction: null }, dragdrop: { classPropertyName: "dragdrop", publicName: "dragdrop", isSignal: true, isRequired: false, transformFunction: null }, dropListData: { classPropertyName: "dropListData", publicName: "dropListData", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onClick: "onClick", onDblClick: "onDblClick", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onSelectAllChange: "onSelectAllChange", onLazyLoad: "onLazyLoad", onDrop: "onDrop" }, host: { listeners: { "focusout": "onHostFocusOut($event)" }, properties: { "attr.id": "_id()", "class": "cx('root')", "attr.data-p": "containerDataP()" } }, providers: [
1362
1299
  LISTBOX_VALUE_ACCESSOR,
1363
1300
  ListBoxStyle,
1364
1301
  {
@@ -1374,82 +1311,90 @@ class Listbox extends BaseEditableHolder {
1374
1311
  #firstHiddenFocusableElement
1375
1312
  role="presentation"
1376
1313
  class="p-hidden-accessible p-hidden-focusable"
1377
- [tabindex]="!$disabled() ? tabindex : -1"
1314
+ [tabindex]="!$disabled() ? tabindex() : -1"
1378
1315
  (focus)="onFirstHiddenFocus($event)"
1379
1316
  [attr.data-p-hidden-focusable]="true"
1380
1317
  [pBind]="ptm('hiddenFirstFocusableElement')"
1381
1318
  >
1382
1319
  </span>
1383
- <div [class]="cx('header')" *ngIf="headerFacet() || headerTemplate() || _headerTemplate" [pBind]="ptm('header')">
1384
- <ng-content select="p-header"></ng-content>
1385
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1386
- </div>
1387
- <div [class]="cx('header')" *ngIf="(checkbox && multiple && showToggleAll) || filter" [pBind]="ptm('header')">
1388
- <p-checkbox
1389
- #headerchkbox
1390
- (onChange)="onToggleAll($event)"
1391
- *ngIf="checkbox && multiple && showToggleAll"
1392
- [class]="cx('optionCheckIcon')"
1393
- [ngModel]="allSelected()"
1394
- [ngModelOptions]="{ standalone: true }"
1395
- [disabled]="$disabled()"
1396
- [tabindex]="-1"
1397
- [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1398
- [binary]="true"
1399
- [attr.aria-label]="toggleAllAriaLabel"
1400
- [pt]="ptm('pcCheckbox')"
1401
- [unstyled]="unstyled()"
1402
- >
1403
- <ng-container *ngIf="checkIconTemplate() || _checkIconTemplate">
1404
- <ng-template #icon>
1405
- <ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate; context: { $implicit: allSelected() }"></ng-template>
1406
- </ng-template>
1407
- </ng-container>
1408
- </p-checkbox>
1409
- <ng-container *ngIf="filterTemplate() || _filterTemplate; else builtInFilterElement">
1410
- <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate; context: { options: filterOptions }"></ng-container>
1411
- </ng-container>
1412
- <ng-template #builtInFilterElement>
1413
- @if (filter) {
1414
- <p-iconfield [pt]="ptm('pcFilterContainer')" hostName="listbox" [unstyled]="unstyled()">
1415
- <input
1416
- #filterInput
1417
- pInputText
1418
- type="text"
1419
- [class]="cx('pcFilter')"
1420
- role="searchbox"
1421
- [value]="_filterValue() || ''"
1422
- [attr.disabled]="$disabled() ? '' : undefined"
1423
- [attr.aria-owns]="id + '_list'"
1424
- [attr.aria-activedescendant]="focusedOptionId"
1425
- [attr.placeholder]="filterPlaceHolder"
1426
- [attr.aria-label]="ariaFilterLabel"
1427
- [attr.tabindex]="!$disabled() && !focused ? tabindex : -1"
1428
- (input)="onFilterChange($event)"
1429
- (keydown)="onFilterKeyDown($event)"
1430
- (blur)="onFilterBlur($event)"
1431
- [pt]="ptm('pcFilter')"
1432
- [unstyled]="unstyled()"
1433
- hostName="listbox"
1434
- />
1435
- <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
1436
- <svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate" [attr.aria-hidden]="true" [pBind]="ptm('filterIcon')" />
1437
- <span *ngIf="filterIconTemplate() || _filterIconTemplate" [attr.aria-hidden]="true">
1438
- <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate"></ng-template>
1439
- </span>
1440
- </p-inputicon>
1441
- </p-iconfield>
1320
+ @if (headerFacet() || headerTemplate() || _headerTemplate()) {
1321
+ <div [class]="cx('header')" [pBind]="ptm('header')">
1322
+ <ng-content select="p-header"></ng-content>
1323
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate(); context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1324
+ </div>
1325
+ }
1326
+ @if ((checkbox() && multiple() && showToggleAll()) || filter()) {
1327
+ <div [class]="cx('header')" [pBind]="ptm('header')">
1328
+ @if (checkbox() && multiple() && showToggleAll()) {
1329
+ <p-checkbox
1330
+ #headerchkbox
1331
+ (onChange)="onToggleAll($event)"
1332
+ [class]="cx('optionCheckIcon')"
1333
+ [ngModel]="allSelected()"
1334
+ [ngModelOptions]="{ standalone: true }"
1335
+ [disabled]="$disabled()"
1336
+ [tabindex]="-1"
1337
+ [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1338
+ [binary]="true"
1339
+ [attr.aria-label]="toggleAllAriaLabel()"
1340
+ [pt]="ptm('pcCheckbox')"
1341
+ [unstyled]="unstyled()"
1342
+ >
1343
+ @if (checkIconTemplate() || _checkIconTemplate()) {
1344
+ <ng-template #icon>
1345
+ <ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate(); context: { $implicit: allSelected() }"></ng-template>
1346
+ </ng-template>
1347
+ }
1348
+ </p-checkbox>
1442
1349
  }
1443
- <span role="status" [pBind]="ptm('hiddenFilterResult')" [attr.aria-live]="'polite'" class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
1444
- {{ filterResultMessageText }}
1445
- </span>
1446
- </ng-template>
1447
- </div>
1350
+ @if (filterTemplate() || _filterTemplate()) {
1351
+ <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
1352
+ } @else {
1353
+ @if (filter()) {
1354
+ <p-iconfield [pt]="ptm('pcFilterContainer')" hostName="listbox" [unstyled]="unstyled()">
1355
+ <input
1356
+ #filterInput
1357
+ pInputText
1358
+ type="text"
1359
+ [class]="cx('pcFilter')"
1360
+ role="searchbox"
1361
+ [value]="_filterValue() || ''"
1362
+ [attr.disabled]="$disabled() ? '' : undefined"
1363
+ [attr.aria-owns]="_id() + '_list'"
1364
+ [attr.aria-activedescendant]="focusedOptionId()"
1365
+ [attr.placeholder]="filterPlaceHolder()"
1366
+ [attr.aria-label]="ariaFilterLabel()"
1367
+ [attr.tabindex]="!$disabled() && !focused() ? tabindex() : -1"
1368
+ (input)="onFilterChange($event)"
1369
+ (keydown)="onFilterKeyDown($event)"
1370
+ (blur)="onFilterBlur($event)"
1371
+ [pt]="ptm('pcFilter')"
1372
+ [unstyled]="unstyled()"
1373
+ hostName="listbox"
1374
+ />
1375
+ <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
1376
+ @if (!filterIconTemplate() && !_filterIconTemplate()) {
1377
+ <svg data-p-icon="search" [attr.aria-hidden]="true" [pBind]="ptm('filterIcon')" />
1378
+ }
1379
+ @if (filterIconTemplate() || _filterIconTemplate()) {
1380
+ <span [attr.aria-hidden]="true">
1381
+ <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
1382
+ </span>
1383
+ }
1384
+ </p-inputicon>
1385
+ </p-iconfield>
1386
+ }
1387
+ <span role="status" [pBind]="ptm('hiddenFilterResult')" [attr.aria-live]="'polite'" class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
1388
+ {{ filterResultMessageText() }}
1389
+ </span>
1390
+ }
1391
+ </div>
1392
+ }
1448
1393
  <div
1449
1394
  #container
1450
- [class]="cn(cx('listContainer'), listStyleClass)"
1451
- [ngStyle]="listStyle"
1452
- [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'"
1395
+ [class]="cn(cx('listContainer'), listStyleClass())"
1396
+ [ngStyle]="listStyle()"
1397
+ [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'"
1453
1398
  cdkDropList
1454
1399
  [cdkDropListData]="cdkDropData()"
1455
1400
  (cdkDropListDropped)="drop($event)"
@@ -1459,95 +1404,98 @@ class Listbox extends BaseEditableHolder {
1459
1404
  >
1460
1405
  @if (hasFilter() && isEmpty()) {
1461
1406
  <div [class]="cx('emptyMessage')" [pBind]="ptm('emptyMessage')">
1462
- @if (!emptyFilterTemplate() && !_emptyFilterTemplate && !_emptyTemplate && !emptyTemplate()) {
1463
- {{ emptyFilterMessageText }}
1407
+ @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !_emptyTemplate() && !emptyTemplate()) {
1408
+ {{ emptyFilterMessageText() }}
1464
1409
  } @else {
1465
- <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate || _emptyTemplate || emptyTemplate()"></ng-container>
1410
+ <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || _emptyTemplate() || emptyTemplate()"></ng-container>
1466
1411
  }
1467
1412
  </div>
1468
1413
  } @else if (!hasFilter() && isEmpty()) {
1469
1414
  <div [class]="cx('emptyMessage')" [pBind]="ptm('emptyMessage')">
1470
- @if (!emptyTemplate() && !_emptyTemplate) {
1471
- {{ emptyMessage }}
1415
+ @if (!emptyTemplate() && !_emptyTemplate()) {
1416
+ {{ emptyMessage() }}
1472
1417
  } @else {
1473
- <ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
1418
+ <ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
1474
1419
  }
1475
1420
  </div>
1476
1421
  } @else {
1477
- <p-scroller
1478
- [pt]="ptm('virtualScroller')"
1479
- hostName="listbox"
1480
- #scroller
1481
- *ngIf="virtualScroll"
1482
- [items]="visibleOptions()"
1483
- [style]="{ height: scrollHeight }"
1484
- [itemSize]="virtualScrollItemSize"
1485
- [autoSize]="true"
1486
- [lazy]="lazy"
1487
- [options]="virtualScrollOptions"
1488
- (onLazyLoad)="onLazyLoad.emit($event)"
1489
- [tabindex]="scrollerTabIndex"
1490
- >
1491
- <ng-template #content let-items let-scrollerOptions="options">
1492
- <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
1493
- </ng-template>
1494
- @if (loaderTemplate() || _loaderTemplate) {
1495
- <ng-template #loader let-scrollerOptions="options">
1496
- <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
1422
+ @if (virtualScroll()) {
1423
+ <p-scroller
1424
+ [pt]="ptm('virtualScroller')"
1425
+ hostName="listbox"
1426
+ #scroller
1427
+ [items]="visibleOptions()"
1428
+ [style]="{ height: scrollHeight() }"
1429
+ [itemSize]="virtualScrollItemSize()"
1430
+ [autoSize]="true"
1431
+ [lazy]="lazy()"
1432
+ [options]="virtualScrollOptions()"
1433
+ (onLazyLoad)="onLazyLoad.emit($event)"
1434
+ [tabindex]="scrollerTabIndex()"
1435
+ >
1436
+ <ng-template #content let-items let-scrollerOptions="options">
1437
+ <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
1497
1438
  </ng-template>
1498
- }
1499
- </p-scroller>
1500
- <ng-container *ngIf="!virtualScroll">
1439
+ @if (loaderTemplate() || _loaderTemplate()) {
1440
+ <ng-template #loader let-scrollerOptions="options">
1441
+ <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
1442
+ </ng-template>
1443
+ }
1444
+ </p-scroller>
1445
+ }
1446
+ @if (!virtualScroll()) {
1501
1447
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
1502
- </ng-container>
1448
+ }
1503
1449
 
1504
1450
  <ng-template #buildInItems let-items let-scrollerOptions="options">
1505
1451
  <ul
1506
1452
  #list
1507
- [id]="id + '_list'"
1453
+ [id]="_id() + '_list'"
1508
1454
  [class]="cx('list')"
1509
1455
  role="listbox"
1510
1456
  [tabindex]="-1"
1511
1457
  [attr.aria-multiselectable]="true"
1512
1458
  [ngClass]="scrollerOptions.contentStyleClass"
1513
1459
  [style]="scrollerOptions.contentStyle"
1514
- [attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
1515
- [attr.aria-label]="ariaLabel"
1460
+ [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1461
+ [attr.aria-label]="ariaLabel()"
1516
1462
  [attr.aria-disabled]="$disabled()"
1517
1463
  (focus)="onListFocus($event)"
1518
1464
  (blur)="onListBlur($event)"
1519
1465
  (keydown)="onListKeyDown($event)"
1520
1466
  [pBind]="ptm('list')"
1521
1467
  >
1522
- <ng-template ngFor let-option [ngForOf]="items" let-i="index">
1523
- <ng-container *ngIf="isOptionGroup(option)">
1468
+ @for (option of items; track $index; let i = $index) {
1469
+ @if (isOptionGroup(option)) {
1524
1470
  <li
1525
- [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)"
1471
+ [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
1526
1472
  [class]="cx('optionGroup')"
1527
1473
  [pBind]="getPTOptions(option.optionGroup, scrollerOptions, i, 'optionGroup')"
1528
1474
  [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
1529
1475
  role="option"
1530
1476
  cdkDrag
1531
1477
  [cdkDragData]="option"
1532
- [cdkDragDisabled]="!dragdrop"
1478
+ [cdkDragDisabled]="!dragdrop()"
1533
1479
  (cdkDragStarted)="isDragging.set(true)"
1534
1480
  (cdkDragEnded)="isDragging.set(false)"
1535
1481
  >
1536
- <span *ngIf="!groupTemplate() && !_groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
1537
- <ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
1482
+ @if (!groupTemplate() && !_groupTemplate()) {
1483
+ <span>{{ getOptionGroupLabel(option.optionGroup) }}</span>
1484
+ }
1485
+ <ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate(); context: { $implicit: option.optionGroup }"></ng-container>
1538
1486
  </li>
1539
- </ng-container>
1540
- <ng-container *ngIf="!isOptionGroup(option)">
1487
+ }
1488
+ @if (!isOptionGroup(option)) {
1541
1489
  <li
1542
1490
  pRipple
1543
1491
  [class]="cx('option', { option, i, scrollerOptions })"
1544
1492
  role="option"
1545
- [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)"
1493
+ [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
1546
1494
  [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
1547
1495
  [attr.aria-label]="getOptionLabel(option)"
1548
1496
  [attr.aria-selected]="isSelected(option)"
1549
1497
  [attr.aria-disabled]="isOptionDisabled(option)"
1550
- [attr.aria-setsize]="ariaSetSize"
1498
+ [attr.aria-setsize]="ariaSetSize()"
1551
1499
  [attr.ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
1552
1500
  [attr.data-p-selected]="isSelected(option)"
1553
1501
  [attr.data-p-focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
@@ -1560,41 +1508,48 @@ class Listbox extends BaseEditableHolder {
1560
1508
  (touchend)="onOptionTouchEnd()"
1561
1509
  cdkDrag
1562
1510
  [cdkDragData]="option"
1563
- [cdkDragDisabled]="!dragdrop"
1511
+ [cdkDragDisabled]="!dragdrop()"
1564
1512
  (cdkDragStarted)="isDragging.set(true)"
1565
1513
  (cdkDragEnded)="isDragging.set(false)"
1566
1514
  >
1567
- <p-checkbox
1568
- *ngIf="checkbox && multiple"
1569
- [class]="cx('optionCheckIcon')"
1570
- [ngModel]="isSelected(option)"
1571
- [ngModelOptions]="{ standalone: true }"
1572
- [readonly]="true"
1573
- [disabled]="$disabled() || isOptionDisabled(option)"
1574
- [tabindex]="-1"
1575
- [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1576
- [binary]="true"
1577
- [pt]="ptm('pcCheckbox')"
1578
- hostName="listbox"
1579
- [unstyled]="unstyled()"
1580
- >
1581
- <ng-container *ngIf="checkIconTemplate() || _checkIconTemplate">
1582
- <ng-template #icon>
1583
- <ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate; context: { $implicit: isSelected(option) }"></ng-template>
1584
- </ng-template>
1585
- </ng-container>
1586
- </p-checkbox>
1587
- <ng-container *ngIf="checkmark">
1588
- <ng-container *ngIf="!checkmarkTemplate() && !_checkmarkTemplate">
1589
- <svg data-p-icon="blank" *ngIf="!isSelected(option)" [class]="cx('optionBlankIcon')" [pBind]="ptm('optionBlankIcon')" />
1590
- <svg data-p-icon="check" *ngIf="isSelected(option)" [class]="cx('optionCheckIcon')" [pBind]="ptm('optionCheckIcon')" />
1591
- </ng-container>
1592
- <ng-container *ngTemplateOutlet="checkmarkTemplate() || _checkmarkTemplate; context: { implicit: isSelected(option) }"></ng-container>
1593
- </ng-container>
1594
- <span *ngIf="!itemTemplate() && !_itemTemplate">{{ getOptionLabel(option) }}</span>
1515
+ @if (checkbox() && multiple()) {
1516
+ <p-checkbox
1517
+ [class]="cx('optionCheckIcon')"
1518
+ [ngModel]="isSelected(option)"
1519
+ [ngModelOptions]="{ standalone: true }"
1520
+ [readonly]="true"
1521
+ [disabled]="$disabled() || isOptionDisabled(option)"
1522
+ [tabindex]="-1"
1523
+ [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1524
+ [binary]="true"
1525
+ [pt]="ptm('pcCheckbox')"
1526
+ hostName="listbox"
1527
+ [unstyled]="unstyled()"
1528
+ >
1529
+ @if (checkIconTemplate() || _checkIconTemplate()) {
1530
+ <ng-template #icon>
1531
+ <ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate(); context: { $implicit: isSelected(option) }"></ng-template>
1532
+ </ng-template>
1533
+ }
1534
+ </p-checkbox>
1535
+ }
1536
+ @if (checkmark()) {
1537
+ @if (!checkmarkTemplate() && !_checkmarkTemplate()) {
1538
+ @if (!isSelected(option)) {
1539
+ <svg data-p-icon="blank" [class]="cx('optionBlankIcon')" [pBind]="ptm('optionBlankIcon')" />
1540
+ }
1541
+ @if (isSelected(option)) {
1542
+ <svg data-p-icon="check" [class]="cx('optionCheckIcon')" [pBind]="ptm('optionCheckIcon')" />
1543
+ }
1544
+ }
1545
+ <ng-container *ngTemplateOutlet="checkmarkTemplate() || _checkmarkTemplate(); context: { implicit: isSelected(option) }"></ng-container>
1546
+ }
1547
+ @if (!itemTemplate() && !_itemTemplate()) {
1548
+ <span>{{ getOptionLabel(option) }}</span>
1549
+ }
1595
1550
  <ng-container
1596
1551
  *ngTemplateOutlet="
1597
- itemTemplate() || _itemTemplate;
1552
+ itemTemplate() || _itemTemplate();
1598
1553
  context: {
1599
1554
  $implicit: option,
1600
1555
  index: getOptionIndex(i, scrollerOptions),
@@ -1604,121 +1559,132 @@ class Listbox extends BaseEditableHolder {
1604
1559
  "
1605
1560
  ></ng-container>
1606
1561
  </li>
1607
- </ng-container>
1608
- </ng-template>
1562
+ }
1563
+ }
1609
1564
  </ul>
1610
1565
  </ng-template>
1611
1566
  }
1612
1567
  </div>
1613
- <div *ngIf="footerFacet() || footerTemplate() || _footerTemplate">
1614
- <ng-content select="p-footer"></ng-content>
1615
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1616
- </div>
1617
- <span *ngIf="isEmpty()" role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenEmptyMessage')">
1618
- {{ emptyMessage }}
1619
- </span>
1568
+ @if (footerFacet() || footerTemplate() || _footerTemplate()) {
1569
+ <div>
1570
+ <ng-content select="p-footer"></ng-content>
1571
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate(); context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1572
+ </div>
1573
+ }
1574
+ @if (isEmpty()) {
1575
+ <span role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenEmptyMessage')">
1576
+ {{ emptyMessage() }}
1577
+ </span>
1578
+ }
1620
1579
  <span role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenSelectedMessage')">
1621
- {{ selectedMessageText }}
1580
+ {{ selectedMessageText() }}
1622
1581
  </span>
1623
1582
  <span
1624
1583
  #lastHiddenFocusableElement
1625
1584
  role="presentation"
1626
1585
  class="p-hidden-accessible p-hidden-focusable"
1627
- [tabindex]="!$disabled() ? tabindex : -1"
1586
+ [tabindex]="!$disabled() ? tabindex() : -1"
1628
1587
  (focus)="onLastHiddenFocus($event)"
1629
1588
  [attr.data-p-hidden-focusable]="true"
1630
1589
  [pBind]="ptm('hiddenLastFocusableEl')"
1631
1590
  >
1632
1591
  </span>
1633
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { 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: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { 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: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: BlankIcon, selector: "[data-p-icon=\"blank\"]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1592
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { 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: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"] }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { 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: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: BlankIcon, selector: "[data-p-icon=\"blank\"]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1634
1593
  }
1635
1594
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Listbox, decorators: [{
1636
1595
  type: Component,
1637
1596
  args: [{
1638
1597
  selector: 'p-listbox, p-listBox, p-list-box',
1639
- standalone: true,
1640
1598
  imports: [CommonModule, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, SharedModule, DragDropModule, BindModule],
1641
1599
  template: `
1642
1600
  <span
1643
1601
  #firstHiddenFocusableElement
1644
1602
  role="presentation"
1645
1603
  class="p-hidden-accessible p-hidden-focusable"
1646
- [tabindex]="!$disabled() ? tabindex : -1"
1604
+ [tabindex]="!$disabled() ? tabindex() : -1"
1647
1605
  (focus)="onFirstHiddenFocus($event)"
1648
1606
  [attr.data-p-hidden-focusable]="true"
1649
1607
  [pBind]="ptm('hiddenFirstFocusableElement')"
1650
1608
  >
1651
1609
  </span>
1652
- <div [class]="cx('header')" *ngIf="headerFacet() || headerTemplate() || _headerTemplate" [pBind]="ptm('header')">
1653
- <ng-content select="p-header"></ng-content>
1654
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1655
- </div>
1656
- <div [class]="cx('header')" *ngIf="(checkbox && multiple && showToggleAll) || filter" [pBind]="ptm('header')">
1657
- <p-checkbox
1658
- #headerchkbox
1659
- (onChange)="onToggleAll($event)"
1660
- *ngIf="checkbox && multiple && showToggleAll"
1661
- [class]="cx('optionCheckIcon')"
1662
- [ngModel]="allSelected()"
1663
- [ngModelOptions]="{ standalone: true }"
1664
- [disabled]="$disabled()"
1665
- [tabindex]="-1"
1666
- [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1667
- [binary]="true"
1668
- [attr.aria-label]="toggleAllAriaLabel"
1669
- [pt]="ptm('pcCheckbox')"
1670
- [unstyled]="unstyled()"
1671
- >
1672
- <ng-container *ngIf="checkIconTemplate() || _checkIconTemplate">
1673
- <ng-template #icon>
1674
- <ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate; context: { $implicit: allSelected() }"></ng-template>
1675
- </ng-template>
1676
- </ng-container>
1677
- </p-checkbox>
1678
- <ng-container *ngIf="filterTemplate() || _filterTemplate; else builtInFilterElement">
1679
- <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate; context: { options: filterOptions }"></ng-container>
1680
- </ng-container>
1681
- <ng-template #builtInFilterElement>
1682
- @if (filter) {
1683
- <p-iconfield [pt]="ptm('pcFilterContainer')" hostName="listbox" [unstyled]="unstyled()">
1684
- <input
1685
- #filterInput
1686
- pInputText
1687
- type="text"
1688
- [class]="cx('pcFilter')"
1689
- role="searchbox"
1690
- [value]="_filterValue() || ''"
1691
- [attr.disabled]="$disabled() ? '' : undefined"
1692
- [attr.aria-owns]="id + '_list'"
1693
- [attr.aria-activedescendant]="focusedOptionId"
1694
- [attr.placeholder]="filterPlaceHolder"
1695
- [attr.aria-label]="ariaFilterLabel"
1696
- [attr.tabindex]="!$disabled() && !focused ? tabindex : -1"
1697
- (input)="onFilterChange($event)"
1698
- (keydown)="onFilterKeyDown($event)"
1699
- (blur)="onFilterBlur($event)"
1700
- [pt]="ptm('pcFilter')"
1701
- [unstyled]="unstyled()"
1702
- hostName="listbox"
1703
- />
1704
- <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
1705
- <svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate" [attr.aria-hidden]="true" [pBind]="ptm('filterIcon')" />
1706
- <span *ngIf="filterIconTemplate() || _filterIconTemplate" [attr.aria-hidden]="true">
1707
- <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate"></ng-template>
1708
- </span>
1709
- </p-inputicon>
1710
- </p-iconfield>
1610
+ @if (headerFacet() || headerTemplate() || _headerTemplate()) {
1611
+ <div [class]="cx('header')" [pBind]="ptm('header')">
1612
+ <ng-content select="p-header"></ng-content>
1613
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate(); context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1614
+ </div>
1615
+ }
1616
+ @if ((checkbox() && multiple() && showToggleAll()) || filter()) {
1617
+ <div [class]="cx('header')" [pBind]="ptm('header')">
1618
+ @if (checkbox() && multiple() && showToggleAll()) {
1619
+ <p-checkbox
1620
+ #headerchkbox
1621
+ (onChange)="onToggleAll($event)"
1622
+ [class]="cx('optionCheckIcon')"
1623
+ [ngModel]="allSelected()"
1624
+ [ngModelOptions]="{ standalone: true }"
1625
+ [disabled]="$disabled()"
1626
+ [tabindex]="-1"
1627
+ [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1628
+ [binary]="true"
1629
+ [attr.aria-label]="toggleAllAriaLabel()"
1630
+ [pt]="ptm('pcCheckbox')"
1631
+ [unstyled]="unstyled()"
1632
+ >
1633
+ @if (checkIconTemplate() || _checkIconTemplate()) {
1634
+ <ng-template #icon>
1635
+ <ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate(); context: { $implicit: allSelected() }"></ng-template>
1636
+ </ng-template>
1637
+ }
1638
+ </p-checkbox>
1711
1639
  }
1712
- <span role="status" [pBind]="ptm('hiddenFilterResult')" [attr.aria-live]="'polite'" class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
1713
- {{ filterResultMessageText }}
1714
- </span>
1715
- </ng-template>
1716
- </div>
1640
+ @if (filterTemplate() || _filterTemplate()) {
1641
+ <ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
1642
+ } @else {
1643
+ @if (filter()) {
1644
+ <p-iconfield [pt]="ptm('pcFilterContainer')" hostName="listbox" [unstyled]="unstyled()">
1645
+ <input
1646
+ #filterInput
1647
+ pInputText
1648
+ type="text"
1649
+ [class]="cx('pcFilter')"
1650
+ role="searchbox"
1651
+ [value]="_filterValue() || ''"
1652
+ [attr.disabled]="$disabled() ? '' : undefined"
1653
+ [attr.aria-owns]="_id() + '_list'"
1654
+ [attr.aria-activedescendant]="focusedOptionId()"
1655
+ [attr.placeholder]="filterPlaceHolder()"
1656
+ [attr.aria-label]="ariaFilterLabel()"
1657
+ [attr.tabindex]="!$disabled() && !focused() ? tabindex() : -1"
1658
+ (input)="onFilterChange($event)"
1659
+ (keydown)="onFilterKeyDown($event)"
1660
+ (blur)="onFilterBlur($event)"
1661
+ [pt]="ptm('pcFilter')"
1662
+ [unstyled]="unstyled()"
1663
+ hostName="listbox"
1664
+ />
1665
+ <p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
1666
+ @if (!filterIconTemplate() && !_filterIconTemplate()) {
1667
+ <svg data-p-icon="search" [attr.aria-hidden]="true" [pBind]="ptm('filterIcon')" />
1668
+ }
1669
+ @if (filterIconTemplate() || _filterIconTemplate()) {
1670
+ <span [attr.aria-hidden]="true">
1671
+ <ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
1672
+ </span>
1673
+ }
1674
+ </p-inputicon>
1675
+ </p-iconfield>
1676
+ }
1677
+ <span role="status" [pBind]="ptm('hiddenFilterResult')" [attr.aria-live]="'polite'" class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
1678
+ {{ filterResultMessageText() }}
1679
+ </span>
1680
+ }
1681
+ </div>
1682
+ }
1717
1683
  <div
1718
1684
  #container
1719
- [class]="cn(cx('listContainer'), listStyleClass)"
1720
- [ngStyle]="listStyle"
1721
- [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'"
1685
+ [class]="cn(cx('listContainer'), listStyleClass())"
1686
+ [ngStyle]="listStyle()"
1687
+ [style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'"
1722
1688
  cdkDropList
1723
1689
  [cdkDropListData]="cdkDropData()"
1724
1690
  (cdkDropListDropped)="drop($event)"
@@ -1728,95 +1694,98 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1728
1694
  >
1729
1695
  @if (hasFilter() && isEmpty()) {
1730
1696
  <div [class]="cx('emptyMessage')" [pBind]="ptm('emptyMessage')">
1731
- @if (!emptyFilterTemplate() && !_emptyFilterTemplate && !_emptyTemplate && !emptyTemplate()) {
1732
- {{ emptyFilterMessageText }}
1697
+ @if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !_emptyTemplate() && !emptyTemplate()) {
1698
+ {{ emptyFilterMessageText() }}
1733
1699
  } @else {
1734
- <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate || _emptyTemplate || emptyTemplate()"></ng-container>
1700
+ <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || _emptyTemplate() || emptyTemplate()"></ng-container>
1735
1701
  }
1736
1702
  </div>
1737
1703
  } @else if (!hasFilter() && isEmpty()) {
1738
1704
  <div [class]="cx('emptyMessage')" [pBind]="ptm('emptyMessage')">
1739
- @if (!emptyTemplate() && !_emptyTemplate) {
1740
- {{ emptyMessage }}
1705
+ @if (!emptyTemplate() && !_emptyTemplate()) {
1706
+ {{ emptyMessage() }}
1741
1707
  } @else {
1742
- <ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
1708
+ <ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
1743
1709
  }
1744
1710
  </div>
1745
1711
  } @else {
1746
- <p-scroller
1747
- [pt]="ptm('virtualScroller')"
1748
- hostName="listbox"
1749
- #scroller
1750
- *ngIf="virtualScroll"
1751
- [items]="visibleOptions()"
1752
- [style]="{ height: scrollHeight }"
1753
- [itemSize]="virtualScrollItemSize"
1754
- [autoSize]="true"
1755
- [lazy]="lazy"
1756
- [options]="virtualScrollOptions"
1757
- (onLazyLoad)="onLazyLoad.emit($event)"
1758
- [tabindex]="scrollerTabIndex"
1759
- >
1760
- <ng-template #content let-items let-scrollerOptions="options">
1761
- <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
1762
- </ng-template>
1763
- @if (loaderTemplate() || _loaderTemplate) {
1764
- <ng-template #loader let-scrollerOptions="options">
1765
- <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
1712
+ @if (virtualScroll()) {
1713
+ <p-scroller
1714
+ [pt]="ptm('virtualScroller')"
1715
+ hostName="listbox"
1716
+ #scroller
1717
+ [items]="visibleOptions()"
1718
+ [style]="{ height: scrollHeight() }"
1719
+ [itemSize]="virtualScrollItemSize()"
1720
+ [autoSize]="true"
1721
+ [lazy]="lazy()"
1722
+ [options]="virtualScrollOptions()"
1723
+ (onLazyLoad)="onLazyLoad.emit($event)"
1724
+ [tabindex]="scrollerTabIndex()"
1725
+ >
1726
+ <ng-template #content let-items let-scrollerOptions="options">
1727
+ <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
1766
1728
  </ng-template>
1767
- }
1768
- </p-scroller>
1769
- <ng-container *ngIf="!virtualScroll">
1729
+ @if (loaderTemplate() || _loaderTemplate()) {
1730
+ <ng-template #loader let-scrollerOptions="options">
1731
+ <ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
1732
+ </ng-template>
1733
+ }
1734
+ </p-scroller>
1735
+ }
1736
+ @if (!virtualScroll()) {
1770
1737
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
1771
- </ng-container>
1738
+ }
1772
1739
 
1773
1740
  <ng-template #buildInItems let-items let-scrollerOptions="options">
1774
1741
  <ul
1775
1742
  #list
1776
- [id]="id + '_list'"
1743
+ [id]="_id() + '_list'"
1777
1744
  [class]="cx('list')"
1778
1745
  role="listbox"
1779
1746
  [tabindex]="-1"
1780
1747
  [attr.aria-multiselectable]="true"
1781
1748
  [ngClass]="scrollerOptions.contentStyleClass"
1782
1749
  [style]="scrollerOptions.contentStyle"
1783
- [attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
1784
- [attr.aria-label]="ariaLabel"
1750
+ [attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
1751
+ [attr.aria-label]="ariaLabel()"
1785
1752
  [attr.aria-disabled]="$disabled()"
1786
1753
  (focus)="onListFocus($event)"
1787
1754
  (blur)="onListBlur($event)"
1788
1755
  (keydown)="onListKeyDown($event)"
1789
1756
  [pBind]="ptm('list')"
1790
1757
  >
1791
- <ng-template ngFor let-option [ngForOf]="items" let-i="index">
1792
- <ng-container *ngIf="isOptionGroup(option)">
1758
+ @for (option of items; track $index; let i = $index) {
1759
+ @if (isOptionGroup(option)) {
1793
1760
  <li
1794
- [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)"
1761
+ [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
1795
1762
  [class]="cx('optionGroup')"
1796
1763
  [pBind]="getPTOptions(option.optionGroup, scrollerOptions, i, 'optionGroup')"
1797
1764
  [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
1798
1765
  role="option"
1799
1766
  cdkDrag
1800
1767
  [cdkDragData]="option"
1801
- [cdkDragDisabled]="!dragdrop"
1768
+ [cdkDragDisabled]="!dragdrop()"
1802
1769
  (cdkDragStarted)="isDragging.set(true)"
1803
1770
  (cdkDragEnded)="isDragging.set(false)"
1804
1771
  >
1805
- <span *ngIf="!groupTemplate() && !_groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
1806
- <ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
1772
+ @if (!groupTemplate() && !_groupTemplate()) {
1773
+ <span>{{ getOptionGroupLabel(option.optionGroup) }}</span>
1774
+ }
1775
+ <ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate(); context: { $implicit: option.optionGroup }"></ng-container>
1807
1776
  </li>
1808
- </ng-container>
1809
- <ng-container *ngIf="!isOptionGroup(option)">
1777
+ }
1778
+ @if (!isOptionGroup(option)) {
1810
1779
  <li
1811
1780
  pRipple
1812
1781
  [class]="cx('option', { option, i, scrollerOptions })"
1813
1782
  role="option"
1814
- [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)"
1783
+ [attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
1815
1784
  [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
1816
1785
  [attr.aria-label]="getOptionLabel(option)"
1817
1786
  [attr.aria-selected]="isSelected(option)"
1818
1787
  [attr.aria-disabled]="isOptionDisabled(option)"
1819
- [attr.aria-setsize]="ariaSetSize"
1788
+ [attr.aria-setsize]="ariaSetSize()"
1820
1789
  [attr.ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
1821
1790
  [attr.data-p-selected]="isSelected(option)"
1822
1791
  [attr.data-p-focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
@@ -1829,41 +1798,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1829
1798
  (touchend)="onOptionTouchEnd()"
1830
1799
  cdkDrag
1831
1800
  [cdkDragData]="option"
1832
- [cdkDragDisabled]="!dragdrop"
1801
+ [cdkDragDisabled]="!dragdrop()"
1833
1802
  (cdkDragStarted)="isDragging.set(true)"
1834
1803
  (cdkDragEnded)="isDragging.set(false)"
1835
1804
  >
1836
- <p-checkbox
1837
- *ngIf="checkbox && multiple"
1838
- [class]="cx('optionCheckIcon')"
1839
- [ngModel]="isSelected(option)"
1840
- [ngModelOptions]="{ standalone: true }"
1841
- [readonly]="true"
1842
- [disabled]="$disabled() || isOptionDisabled(option)"
1843
- [tabindex]="-1"
1844
- [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1845
- [binary]="true"
1846
- [pt]="ptm('pcCheckbox')"
1847
- hostName="listbox"
1848
- [unstyled]="unstyled()"
1849
- >
1850
- <ng-container *ngIf="checkIconTemplate() || _checkIconTemplate">
1851
- <ng-template #icon>
1852
- <ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate; context: { $implicit: isSelected(option) }"></ng-template>
1853
- </ng-template>
1854
- </ng-container>
1855
- </p-checkbox>
1856
- <ng-container *ngIf="checkmark">
1857
- <ng-container *ngIf="!checkmarkTemplate() && !_checkmarkTemplate">
1858
- <svg data-p-icon="blank" *ngIf="!isSelected(option)" [class]="cx('optionBlankIcon')" [pBind]="ptm('optionBlankIcon')" />
1859
- <svg data-p-icon="check" *ngIf="isSelected(option)" [class]="cx('optionCheckIcon')" [pBind]="ptm('optionCheckIcon')" />
1860
- </ng-container>
1861
- <ng-container *ngTemplateOutlet="checkmarkTemplate() || _checkmarkTemplate; context: { implicit: isSelected(option) }"></ng-container>
1862
- </ng-container>
1863
- <span *ngIf="!itemTemplate() && !_itemTemplate">{{ getOptionLabel(option) }}</span>
1805
+ @if (checkbox() && multiple()) {
1806
+ <p-checkbox
1807
+ [class]="cx('optionCheckIcon')"
1808
+ [ngModel]="isSelected(option)"
1809
+ [ngModelOptions]="{ standalone: true }"
1810
+ [readonly]="true"
1811
+ [disabled]="$disabled() || isOptionDisabled(option)"
1812
+ [tabindex]="-1"
1813
+ [variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
1814
+ [binary]="true"
1815
+ [pt]="ptm('pcCheckbox')"
1816
+ hostName="listbox"
1817
+ [unstyled]="unstyled()"
1818
+ >
1819
+ @if (checkIconTemplate() || _checkIconTemplate()) {
1820
+ <ng-template #icon>
1821
+ <ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate(); context: { $implicit: isSelected(option) }"></ng-template>
1822
+ </ng-template>
1823
+ }
1824
+ </p-checkbox>
1825
+ }
1826
+ @if (checkmark()) {
1827
+ @if (!checkmarkTemplate() && !_checkmarkTemplate()) {
1828
+ @if (!isSelected(option)) {
1829
+ <svg data-p-icon="blank" [class]="cx('optionBlankIcon')" [pBind]="ptm('optionBlankIcon')" />
1830
+ }
1831
+ @if (isSelected(option)) {
1832
+ <svg data-p-icon="check" [class]="cx('optionCheckIcon')" [pBind]="ptm('optionCheckIcon')" />
1833
+ }
1834
+ }
1835
+ <ng-container *ngTemplateOutlet="checkmarkTemplate() || _checkmarkTemplate(); context: { implicit: isSelected(option) }"></ng-container>
1836
+ }
1837
+ @if (!itemTemplate() && !_itemTemplate()) {
1838
+ <span>{{ getOptionLabel(option) }}</span>
1839
+ }
1864
1840
  <ng-container
1865
1841
  *ngTemplateOutlet="
1866
- itemTemplate() || _itemTemplate;
1842
+ itemTemplate() || _itemTemplate();
1867
1843
  context: {
1868
1844
  $implicit: option,
1869
1845
  index: getOptionIndex(i, scrollerOptions),
@@ -1873,27 +1849,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1873
1849
  "
1874
1850
  ></ng-container>
1875
1851
  </li>
1876
- </ng-container>
1877
- </ng-template>
1852
+ }
1853
+ }
1878
1854
  </ul>
1879
1855
  </ng-template>
1880
1856
  }
1881
1857
  </div>
1882
- <div *ngIf="footerFacet() || footerTemplate() || _footerTemplate">
1883
- <ng-content select="p-footer"></ng-content>
1884
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1885
- </div>
1886
- <span *ngIf="isEmpty()" role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenEmptyMessage')">
1887
- {{ emptyMessage }}
1888
- </span>
1858
+ @if (footerFacet() || footerTemplate() || _footerTemplate()) {
1859
+ <div>
1860
+ <ng-content select="p-footer"></ng-content>
1861
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate(); context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
1862
+ </div>
1863
+ }
1864
+ @if (isEmpty()) {
1865
+ <span role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenEmptyMessage')">
1866
+ {{ emptyMessage() }}
1867
+ </span>
1868
+ }
1889
1869
  <span role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenSelectedMessage')">
1890
- {{ selectedMessageText }}
1870
+ {{ selectedMessageText() }}
1891
1871
  </span>
1892
1872
  <span
1893
1873
  #lastHiddenFocusableElement
1894
1874
  role="presentation"
1895
1875
  class="p-hidden-accessible p-hidden-focusable"
1896
- [tabindex]="!$disabled() ? tabindex : -1"
1876
+ [tabindex]="!$disabled() ? tabindex() : -1"
1897
1877
  (focus)="onLastHiddenFocus($event)"
1898
1878
  [attr.data-p-hidden-focusable]="true"
1899
1879
  [pBind]="ptm('hiddenLastFocusableEl')"
@@ -1915,130 +1895,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1915
1895
  changeDetection: ChangeDetectionStrategy.OnPush,
1916
1896
  encapsulation: ViewEncapsulation.None,
1917
1897
  host: {
1918
- '[attr.id]': 'id',
1919
- '[class]': "cn(cx('root'), styleClass)",
1920
- '[attr.data-p]': 'containerDataP'
1898
+ '[attr.id]': '_id()',
1899
+ '[class]': "cx('root')",
1900
+ '[attr.data-p]': 'containerDataP()'
1921
1901
  },
1922
1902
  hostDirectives: [Bind]
1923
1903
  }]
1924
- }], propDecorators: { hostName: [{
1925
- type: Input
1926
- }], id: [{
1927
- type: Input
1928
- }], searchMessage: [{
1929
- type: Input
1930
- }], emptySelectionMessage: [{
1931
- type: Input
1932
- }], selectionMessage: [{
1933
- type: Input
1934
- }], autoOptionFocus: [{
1935
- type: Input,
1936
- args: [{ transform: booleanAttribute }]
1937
- }], ariaLabel: [{
1938
- type: Input
1939
- }], selectOnFocus: [{
1940
- type: Input,
1941
- args: [{ transform: booleanAttribute }]
1942
- }], searchLocale: [{
1943
- type: Input,
1944
- args: [{ transform: booleanAttribute }]
1945
- }], focusOnHover: [{
1946
- type: Input,
1947
- args: [{ transform: booleanAttribute }]
1948
- }], filterMessage: [{
1949
- type: Input
1950
- }], filterFields: [{
1951
- type: Input
1952
- }], lazy: [{
1953
- type: Input,
1954
- args: [{ transform: booleanAttribute }]
1955
- }], virtualScroll: [{
1956
- type: Input,
1957
- args: [{ transform: booleanAttribute }]
1958
- }], virtualScrollItemSize: [{
1959
- type: Input,
1960
- args: [{ transform: numberAttribute }]
1961
- }], virtualScrollOptions: [{
1962
- type: Input
1963
- }], scrollHeight: [{
1964
- type: Input
1965
- }], tabindex: [{
1966
- type: Input,
1967
- args: [{ transform: numberAttribute }]
1968
- }], multiple: [{
1969
- type: Input,
1970
- args: [{ transform: booleanAttribute }]
1971
- }], styleClass: [{
1972
- type: Input
1973
- }], listStyle: [{
1974
- type: Input
1975
- }], listStyleClass: [{
1976
- type: Input
1977
- }], readonly: [{
1978
- type: Input,
1979
- args: [{ transform: booleanAttribute }]
1980
- }], checkbox: [{
1981
- type: Input,
1982
- args: [{ transform: booleanAttribute }]
1983
- }], filter: [{
1984
- type: Input,
1985
- args: [{ transform: booleanAttribute }]
1986
- }], filterBy: [{
1987
- type: Input
1988
- }], filterMatchMode: [{
1989
- type: Input
1990
- }], filterLocale: [{
1991
- type: Input
1992
- }], metaKeySelection: [{
1993
- type: Input,
1994
- args: [{ transform: booleanAttribute }]
1995
- }], dataKey: [{
1996
- type: Input
1997
- }], showToggleAll: [{
1998
- type: Input,
1999
- args: [{ transform: booleanAttribute }]
2000
- }], optionLabel: [{
2001
- type: Input
2002
- }], optionValue: [{
2003
- type: Input
2004
- }], optionGroupChildren: [{
2005
- type: Input
2006
- }], optionGroupLabel: [{
2007
- type: Input
2008
- }], optionDisabled: [{
2009
- type: Input
2010
- }], ariaFilterLabel: [{
2011
- type: Input
2012
- }], filterPlaceHolder: [{
2013
- type: Input
2014
- }], emptyFilterMessage: [{
2015
- type: Input
2016
- }], emptyMessage: [{
2017
- type: Input
2018
- }], group: [{
2019
- type: Input,
2020
- args: [{ transform: booleanAttribute }]
2021
- }], options: [{
2022
- type: Input
2023
- }], filterValue: [{
2024
- type: Input
2025
- }], selectAll: [{
2026
- type: Input
2027
- }], striped: [{
2028
- type: Input,
2029
- args: [{ transform: booleanAttribute }]
2030
- }], highlightOnSelect: [{
2031
- type: Input,
2032
- args: [{ transform: booleanAttribute }]
2033
- }], checkmark: [{
2034
- type: Input,
2035
- args: [{ transform: booleanAttribute }]
2036
- }], dragdrop: [{
2037
- type: Input,
2038
- args: [{ transform: booleanAttribute }]
2039
- }], dropListData: [{
2040
- type: Input
2041
- }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onDblClick: [{ type: i0.Output, args: ["onDblClick"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onSelectAllChange: [{ type: i0.Output, args: ["onSelectAllChange"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onDrop: [{ type: i0.Output, args: ["onDrop"] }], headerCheckboxViewChild: [{ type: i0.ViewChild, args: ['headerchkbox', { isSignal: true }] }], filterViewChild: [{ type: i0.ViewChild, args: ['filterInput', { isSignal: true }] }], lastHiddenFocusableElement: [{ type: i0.ViewChild, args: ['lastHiddenFocusableElement', { isSignal: true }] }], firstHiddenFocusableElement: [{ type: i0.ViewChild, args: ['firstHiddenFocusableElement', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], listViewChild: [{ type: i0.ViewChild, args: ['list', { isSignal: true }] }], headerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Header), { 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 }] }], 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 }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], checkIconTemplate: [{ type: i0.ContentChild, args: ['checkicon', { ...{ descendants: false }, isSignal: true }] }], checkmarkTemplate: [{ type: i0.ContentChild, args: ['checkmark', { ...{ descendants: false }, isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onHostFocusOut: [{
1904
+ }], ctorParameters: () => [], propDecorators: { hostName: [{ type: i0.Input, args: [{ isSignal: true, alias: "hostName", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], searchMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchMessage", required: false }] }], emptySelectionMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptySelectionMessage", required: false }] }], selectionMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMessage", required: false }] }], autoOptionFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoOptionFocus", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], searchLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchLocale", required: false }] }], focusOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnHover", required: false }] }], filterMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMessage", required: false }] }], filterFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFields", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], virtualScrollOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollOptions", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], listStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "listStyle", required: false }] }], listStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "listStyleClass", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], checkbox: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkbox", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], filterMatchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMatchMode", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], metaKeySelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "metaKeySelection", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], showToggleAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToggleAll", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], ariaFilterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaFilterLabel", required: false }] }], filterPlaceHolder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceHolder", required: false }] }], emptyFilterMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyFilterMessage", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", 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 }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], highlightOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightOnSelect", required: false }] }], checkmark: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkmark", required: false }] }], dragdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragdrop", required: false }] }], dropListData: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropListData", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onDblClick: [{ type: i0.Output, args: ["onDblClick"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onSelectAllChange: [{ type: i0.Output, args: ["onSelectAllChange"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onDrop: [{ type: i0.Output, args: ["onDrop"] }], headerCheckboxViewChild: [{ type: i0.ViewChild, args: ['headerchkbox', { isSignal: true }] }], filterViewChild: [{ type: i0.ViewChild, args: ['filterInput', { isSignal: true }] }], lastHiddenFocusableElement: [{ type: i0.ViewChild, args: ['lastHiddenFocusableElement', { isSignal: true }] }], firstHiddenFocusableElement: [{ type: i0.ViewChild, args: ['firstHiddenFocusableElement', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], listViewChild: [{ type: i0.ViewChild, args: ['list', { isSignal: true }] }], headerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Header), { 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 }] }], 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 }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], checkIconTemplate: [{ type: i0.ContentChild, args: ['checkicon', { ...{ descendants: false }, isSignal: true }] }], checkmarkTemplate: [{ type: i0.ContentChild, args: ['checkmark', { ...{ descendants: false }, isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onHostFocusOut: [{
2042
1905
  type: HostListener,
2043
1906
  args: ['focusout', ['$event']]
2044
1907
  }] } });