@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
@@ -1,6 +1,6 @@
1
1
  export * from '@exhaustive-ui/core/types/tieredmenu';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input, output, viewChild, signal, forwardRef, numberAttribute, booleanAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, effect, NgModule } from '@angular/core';
3
+ import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input, booleanAttribute, numberAttribute, output, viewChild, linkedSignal, afterEveryRender, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, signal, effect, NgModule } from '@angular/core';
4
4
  import { style } from '@exhaustive-ui/styles/tieredmenu';
5
5
  import { BaseStyle } from '@exhaustive-ui/core/base';
6
6
  import * as i2 from '@angular/common';
@@ -28,7 +28,7 @@ const classes = {
28
28
  root: ({ instance }) => [
29
29
  'p-tieredmenu p-component',
30
30
  {
31
- 'p-tieredmenu-overlay': instance.popup,
31
+ 'p-tieredmenu-overlay': instance.popup(),
32
32
  'p-tieredmenu-mobile': instance.queryMatches()
33
33
  }
34
34
  ],
@@ -130,32 +130,30 @@ class TieredMenuSub extends BaseComponent {
130
130
  el = inject(ElementRef);
131
131
  renderer = inject(Renderer2);
132
132
  tieredMenu = inject(TieredMenu);
133
- get visible() {
134
- return this._visible;
135
- }
136
- set visible(value) {
137
- this._visible = value;
138
- if (this._visible || this.root) {
139
- this.render.set(true);
140
- }
141
- }
142
- items;
143
- itemTemplate;
144
- root = false;
145
- autoDisplay;
146
- autoZIndex = true;
147
- baseZIndex = 0;
148
- popup;
149
- menuId;
150
- ariaLabel;
151
- ariaLabelledBy;
152
- level = 0;
153
- focusedItemId;
133
+ visible = input(false, /* @ts-ignore */
134
+ ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
135
+ items = input.required(/* @ts-ignore */
136
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
137
+ itemTemplate = input(undefined, /* @ts-ignore */
138
+ ...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
139
+ root = input(false, { ...(ngDevMode ? { debugName: "root" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
140
+ autoDisplay = input(undefined, { ...(ngDevMode ? { debugName: "autoDisplay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
141
+ menuId = input(undefined, /* @ts-ignore */
142
+ ...(ngDevMode ? [{ debugName: "menuId" }] : /* istanbul ignore next */ []));
143
+ ariaLabel = input(undefined, /* @ts-ignore */
144
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
145
+ ariaLabelledBy = input(undefined, /* @ts-ignore */
146
+ ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
147
+ level = input(0, { ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: numberAttribute });
148
+ focusedItemId = input(undefined, /* @ts-ignore */
149
+ ...(ngDevMode ? [{ debugName: "focusedItemId" }] : /* istanbul ignore next */ []));
154
150
  activeItemPath = input([], /* @ts-ignore */
155
151
  ...(ngDevMode ? [{ debugName: "activeItemPath" }] : /* istanbul ignore next */ []));
156
- motionOptions;
157
- tabindex = 0;
158
- inlineStyles;
152
+ motionOptions = input(undefined, /* @ts-ignore */
153
+ ...(ngDevMode ? [{ debugName: "motionOptions" }] : /* istanbul ignore next */ []));
154
+ tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
155
+ inlineStyles = input(undefined, /* @ts-ignore */
156
+ ...(ngDevMode ? [{ debugName: "inlineStyles" }] : /* istanbul ignore next */ []));
159
157
  itemClick = output();
160
158
  itemMouseEnter = output();
161
159
  menuFocus = output();
@@ -163,20 +161,20 @@ class TieredMenuSub extends BaseComponent {
163
161
  menuKeydown = output();
164
162
  sublistViewChild = viewChild('sublist', /* @ts-ignore */
165
163
  ...(ngDevMode ? [{ debugName: "sublistViewChild" }] : /* istanbul ignore next */ []));
166
- render = signal(false, /* @ts-ignore */
167
- ...(ngDevMode ? [{ debugName: "render" }] : /* istanbul ignore next */ []));
164
+ render = linkedSignal({ ...(ngDevMode ? { debugName: "render" } : /* istanbul ignore next */ {}), source: () => !!(this.visible() || this.root()),
165
+ computation: (show, previous) => show || (previous?.value ?? false) });
168
166
  _componentStyle = inject(TieredMenuStyle);
169
167
  bindDirectiveInstance = inject(Bind, { self: true });
170
168
  $pcTieredMenu = inject(TIEREDMENU_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
171
169
  $pcTieredMenuSub = inject(TIEREDMENUSUB_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
172
- _visible = false;
173
- onAfterViewChecked() {
174
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
170
+ constructor() {
171
+ super();
172
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
175
173
  }
176
174
  positionSubmenu(sublist) {
177
175
  if (isPlatformBrowser(this.tieredMenu.platformId)) {
178
176
  if (sublist) {
179
- nestedPosition(sublist, this.level);
177
+ nestedPosition(sublist, this.level());
180
178
  }
181
179
  }
182
180
  }
@@ -184,7 +182,7 @@ class TieredMenuSub extends BaseComponent {
184
182
  return processedItem && processedItem.item ? resolve(processedItem.item[name], params) : undefined;
185
183
  }
186
184
  getItemId(processedItem) {
187
- return processedItem.item?.id ?? `${this.menuId}_${processedItem.key}`;
185
+ return processedItem.item?.id ?? `${this.menuId()}_${processedItem.key}`;
188
186
  }
189
187
  getItemKey(processedItem) {
190
188
  return this.getItemId(processedItem);
@@ -193,11 +191,13 @@ class TieredMenuSub extends BaseComponent {
193
191
  return this.getItemProp(processedItem, 'label');
194
192
  }
195
193
  getAriaSetSize() {
196
- return this.items.filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
194
+ return this.items().filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
197
195
  }
198
196
  getAriaPosInset(index) {
199
197
  return (index -
200
- this.items.slice(0, index).filter((processedItem) => {
198
+ this.items()
199
+ .slice(0, index)
200
+ .filter((processedItem) => {
201
201
  const isItemVisible = this.isItemVisible(processedItem);
202
202
  const isVisibleSeparator = isItemVisible && this.getItemProp(processedItem, 'separator');
203
203
  return !isItemVisible || isVisibleSeparator;
@@ -217,7 +217,7 @@ class TieredMenuSub extends BaseComponent {
217
217
  return this.getItemProp(processedItem, 'disabled');
218
218
  }
219
219
  isItemFocused(processedItem) {
220
- return this.focusedItemId === this.getItemId(processedItem);
220
+ return this.focusedItemId() === this.getItemId(processedItem);
221
221
  }
222
222
  isItemGroup(processedItem) {
223
223
  return isNotEmpty(processedItem.items);
@@ -238,7 +238,7 @@ class TieredMenuSub extends BaseComponent {
238
238
  });
239
239
  }
240
240
  onItemMouseEnter(param) {
241
- if (this.autoDisplay) {
241
+ if (this.autoDisplay()) {
242
242
  const { event, processedItem } = param;
243
243
  this.itemMouseEnter.emit({ originalEvent: event, processedItem });
244
244
  }
@@ -253,8 +253,8 @@ class TieredMenuSub extends BaseComponent {
253
253
  onAfterLeave() {
254
254
  this.render.set(false);
255
255
  }
256
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuSub, deps: null, target: i0.ɵɵFactoryTarget.Component });
257
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenuSub, isStandalone: true, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: false, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: false, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, menuId: { classPropertyName: "menuId", publicName: "menuId", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: false, isRequired: false, transformFunction: numberAttribute }, focusedItemId: { classPropertyName: "focusedItemId", publicName: "focusedItemId", isSignal: false, isRequired: false, transformFunction: null }, activeItemPath: { classPropertyName: "activeItemPath", publicName: "activeItemPath", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, inlineStyles: { classPropertyName: "inlineStyles", publicName: "inlineStyles", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, providers: [
256
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuSub, deps: [], target: i0.ɵɵFactoryTarget.Component });
257
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenuSub, isStandalone: true, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: true, isRequired: false, transformFunction: null }, menuId: { classPropertyName: "menuId", publicName: "menuId", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, focusedItemId: { classPropertyName: "focusedItemId", publicName: "focusedItemId", isSignal: true, isRequired: false, transformFunction: null }, activeItemPath: { classPropertyName: "activeItemPath", publicName: "activeItemPath", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, inlineStyles: { classPropertyName: "inlineStyles", publicName: "inlineStyles", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, providers: [
258
258
  { provide: TIEREDMENUSUB_INSTANCE, useExisting: forwardRef(() => TieredMenuSub) },
259
259
  { provide: PARENT_INSTANCE, useExisting: forwardRef(() => TieredMenuSub) }
260
260
  ], viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
@@ -262,392 +262,381 @@ class TieredMenuSub extends BaseComponent {
262
262
  <ul
263
263
  #sublist
264
264
  role="menu"
265
- [class]="root ? cx('rootList') : cx('submenu')"
266
- [id]="menuId + '_list'"
267
- [tabindex]="tabindex"
268
- [attr.aria-label]="ariaLabel"
269
- [attr.aria-labelledBy]="ariaLabelledBy"
270
- [attr.aria-activedescendant]="focusedItemId"
265
+ [class]="root() ? cx('rootList') : cx('submenu')"
266
+ [id]="menuId() + '_list'"
267
+ [tabindex]="tabindex()"
268
+ [attr.aria-label]="ariaLabel()"
269
+ [attr.aria-labelledBy]="ariaLabelledBy()"
270
+ [attr.aria-activedescendant]="focusedItemId()"
271
271
  [attr.aria-orientation]="'vertical'"
272
- [pBind]="_ptm(root ? 'rootList' : 'submenu')"
272
+ [pBind]="_ptm(root() ? 'rootList' : 'submenu')"
273
273
  (keydown)="menuKeydown.emit($event)"
274
274
  (focus)="menuFocus.emit($event)"
275
275
  (blur)="menuBlur.emit($event)"
276
- [style]="inlineStyles"
277
- [pMotion]="root ? true : visible"
278
- [pMotionDisabled]="root"
276
+ [style]="inlineStyles()"
277
+ [pMotion]="root() ? true : visible()"
278
+ [pMotionDisabled]="root()"
279
279
  [pMotionAppear]="true"
280
280
  [pMotionName]="'p-anchored-overlay'"
281
- [pMotionOptions]="motionOptions"
281
+ [pMotionOptions]="motionOptions()"
282
282
  (pMotionOnBeforeEnter)="onBeforeEnter($event)"
283
283
  (pMotionOnAfterLeave)="onAfterLeave()"
284
284
  >
285
- <ng-template ngFor let-processedItem [ngForOf]="items" let-index="index">
286
- <li
287
- *ngIf="isItemVisible(processedItem) && getItemProp(processedItem, 'separator')"
288
- [attr.id]="getItemId(processedItem)"
289
- [style]="getItemProp(processedItem, 'style')"
290
- [class]="cn(cx('separator'), getItemProp(processedItem, 'class'), getItemProp(processedItem, 'styleClass'))"
291
- role="separator"
292
- [pBind]="_ptm('separator')"
293
- ></li>
294
- <li
295
- #listItem
296
- *ngIf="isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')"
297
- role="menuitem"
298
- [attr.id]="getItemId(processedItem)"
299
- [attr.data-p-highlight]="isItemActive(processedItem)"
300
- [attr.data-p-focused]="isItemFocused(processedItem)"
301
- [attr.data-p-disabled]="isItemDisabled(processedItem)"
302
- [attr.aria-label]="getItemLabel(processedItem)"
303
- [attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
304
- [attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
305
- [attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
306
- [attr.aria-setsize]="getAriaSetSize()"
307
- [attr.aria-posinset]="getAriaPosInset(index)"
308
- [ngStyle]="getItemProp(processedItem, 'style')"
309
- [class]="cn(cx('item', { processedItem }), getItemProp(processedItem, 'styleClass'))"
310
- [pBind]="getPTOptions(processedItem, index, 'item')"
311
- [pTooltip]="getItemProp(processedItem, 'tooltip')"
312
- [tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
313
- [pTooltipUnstyled]="unstyled()"
314
- >
315
- <div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
316
- <ng-container *ngIf="!itemTemplate">
317
- <a
318
- *ngIf="!getItemProp(processedItem, 'routerLink')"
319
- [attr.href]="getItemProp(processedItem, 'url')"
320
- [attr.data-automationid]="getItemProp(processedItem, 'automationId')"
321
- [attr.title]="getItemProp(processedItem, 'title')"
322
- [target]="getItemProp(processedItem, 'target')"
323
- [class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
324
- [ngStyle]="getItemProp(processedItem, 'linkStyle')"
325
- [attr.tabindex]="-1"
326
- [pBind]="getPTOptions(processedItem, index, 'itemLink')"
327
- pRipple
328
- >
329
- <span
330
- *ngIf="getItemProp(processedItem, 'icon')"
331
- [class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
332
- [ngStyle]="getItemProp(processedItem, 'iconStyle')"
333
- [pBind]="getPTOptions(processedItem, index, 'itemIcon')"
334
- [attr.tabindex]="-1"
335
- >
336
- </span>
337
- <span
338
- *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel"
339
- [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
340
- [ngStyle]="getItemProp(processedItem, 'labelStyle')"
341
- [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
342
- >
343
- {{ getItemLabel(processedItem) }}
344
- </span>
345
- <ng-template #htmlLabel>
346
- <span
347
- [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
348
- [ngStyle]="getItemProp(processedItem, 'labelStyle')"
349
- [innerHTML]="getItemLabel(processedItem)"
350
- [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
351
- ></span>
352
- </ng-template>
353
- <span *ngIf="getItemProp(processedItem, 'badge')" [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
285
+ @for (processedItem of items(); track processedItem.key; let index = $index) {
286
+ @if (isItemVisible(processedItem) && getItemProp(processedItem, 'separator')) {
287
+ <li
288
+ [attr.id]="getItemId(processedItem)"
289
+ [style]="getItemProp(processedItem, 'style')"
290
+ [class]="cn(cx('separator'), getItemProp(processedItem, 'class'), getItemProp(processedItem, 'styleClass'))"
291
+ role="separator"
292
+ [pBind]="_ptm('separator')"
293
+ ></li>
294
+ }
295
+ @if (isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')) {
296
+ <li
297
+ #listItem
298
+ role="menuitem"
299
+ [attr.id]="getItemId(processedItem)"
300
+ [attr.data-p-highlight]="isItemActive(processedItem)"
301
+ [attr.data-p-focused]="isItemFocused(processedItem)"
302
+ [attr.data-p-disabled]="isItemDisabled(processedItem)"
303
+ [attr.aria-label]="getItemLabel(processedItem)"
304
+ [attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
305
+ [attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
306
+ [attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
307
+ [attr.aria-setsize]="getAriaSetSize()"
308
+ [attr.aria-posinset]="getAriaPosInset(index)"
309
+ [ngStyle]="getItemProp(processedItem, 'style')"
310
+ [class]="cn(cx('item', { processedItem }), getItemProp(processedItem, 'styleClass'))"
311
+ [pBind]="getPTOptions(processedItem, index, 'item')"
312
+ [pTooltip]="getItemProp(processedItem, 'tooltip')"
313
+ [tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
314
+ [pTooltipUnstyled]="unstyled()"
315
+ >
316
+ <div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
317
+ @if (!itemTemplate()) {
318
+ @if (!getItemProp(processedItem, 'routerLink')) {
319
+ <a
320
+ [attr.href]="getItemProp(processedItem, 'url')"
321
+ [attr.data-automationid]="getItemProp(processedItem, 'automationId')"
322
+ [attr.title]="getItemProp(processedItem, 'title')"
323
+ [target]="getItemProp(processedItem, 'target')"
324
+ [class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
325
+ [ngStyle]="getItemProp(processedItem, 'linkStyle')"
326
+ [attr.tabindex]="-1"
327
+ [pBind]="getPTOptions(processedItem, index, 'itemLink')"
328
+ pRipple
329
+ >
330
+ @if (getItemProp(processedItem, 'icon')) {
331
+ <span
332
+ [class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
333
+ [ngStyle]="getItemProp(processedItem, 'iconStyle')"
334
+ [pBind]="getPTOptions(processedItem, index, 'itemIcon')"
335
+ [attr.tabindex]="-1"
336
+ >
337
+ </span>
338
+ }
339
+ @if (getItemProp(processedItem, 'escape')) {
340
+ <span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
341
+ {{ getItemLabel(processedItem) }}
342
+ </span>
343
+ } @else {
344
+ <span
345
+ [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
346
+ [ngStyle]="getItemProp(processedItem, 'labelStyle')"
347
+ [innerHTML]="getItemLabel(processedItem)"
348
+ [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
349
+ ></span>
350
+ }
351
+ @if (getItemProp(processedItem, 'badge')) {
352
+ <span [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
353
+ }
354
354
 
355
- <ng-container *ngIf="isItemGroup(processedItem)">
356
- <svg
357
- data-p-icon="angle-right"
358
- *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate"
359
- [class]="cx('submenuIcon')"
360
- [pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
361
- [attr.aria-hidden]="true"
362
- />
363
- <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate" [attr.aria-hidden]="true"></ng-template>
364
- </ng-container>
365
- </a>
366
- <a
367
- *ngIf="getItemProp(processedItem, 'routerLink')"
368
- [routerLink]="getItemProp(processedItem, 'routerLink')"
369
- [attr.data-automationid]="getItemProp(processedItem, 'automationId')"
370
- [attr.title]="getItemProp(processedItem, 'title')"
371
- [attr.tabindex]="-1"
372
- [queryParams]="getItemProp(processedItem, 'queryParams')"
373
- [routerLinkActive]="'p-tieredmenu-item-link-active'"
374
- [routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
375
- [target]="getItemProp(processedItem, 'target')"
376
- [class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
377
- [ngStyle]="getItemProp(processedItem, 'linkStyle')"
378
- [fragment]="getItemProp(processedItem, 'fragment')"
379
- [queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
380
- [preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
381
- [skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
382
- [replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
383
- [state]="getItemProp(processedItem, 'state')"
384
- [pBind]="getPTOptions(processedItem, index, 'itemLink')"
385
- pRipple
386
- >
387
- <span
388
- *ngIf="getItemProp(processedItem, 'icon')"
389
- [class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
390
- [ngStyle]="getItemProp(processedItem, 'iconStyle')"
391
- [pBind]="getPTOptions(processedItem, index, 'itemIcon')"
392
- [attr.aria-hidden]="true"
393
- [attr.tabindex]="-1"
394
- >
395
- </span>
396
- <span
397
- *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel"
398
- [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
399
- [ngStyle]="getItemProp(processedItem, 'labelStyle')"
400
- [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
401
- >
402
- {{ getItemLabel(processedItem) }}
403
- </span>
404
- <ng-template #htmlLabel>
405
- <span
406
- [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
407
- [ngStyle]="getItemProp(processedItem, 'labelStyle')"
408
- [innerHTML]="getItemLabel(processedItem)"
409
- [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
410
- ></span>
411
- </ng-template>
412
- <span *ngIf="getItemProp(processedItem, 'badge')" [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
355
+ @if (isItemGroup(processedItem)) {
356
+ @if (!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()) {
357
+ <svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
358
+ }
359
+ <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
360
+ }
361
+ </a>
362
+ }
363
+ @if (getItemProp(processedItem, 'routerLink')) {
364
+ <a
365
+ [routerLink]="getItemProp(processedItem, 'routerLink')"
366
+ [attr.data-automationid]="getItemProp(processedItem, 'automationId')"
367
+ [attr.title]="getItemProp(processedItem, 'title')"
368
+ [attr.tabindex]="-1"
369
+ [queryParams]="getItemProp(processedItem, 'queryParams')"
370
+ [routerLinkActive]="'p-tieredmenu-item-link-active'"
371
+ [routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
372
+ [target]="getItemProp(processedItem, 'target')"
373
+ [class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
374
+ [ngStyle]="getItemProp(processedItem, 'linkStyle')"
375
+ [fragment]="getItemProp(processedItem, 'fragment')"
376
+ [queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
377
+ [preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
378
+ [skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
379
+ [replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
380
+ [state]="getItemProp(processedItem, 'state')"
381
+ [pBind]="getPTOptions(processedItem, index, 'itemLink')"
382
+ pRipple
383
+ >
384
+ @if (getItemProp(processedItem, 'icon')) {
385
+ <span
386
+ [class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
387
+ [ngStyle]="getItemProp(processedItem, 'iconStyle')"
388
+ [pBind]="getPTOptions(processedItem, index, 'itemIcon')"
389
+ [attr.aria-hidden]="true"
390
+ [attr.tabindex]="-1"
391
+ >
392
+ </span>
393
+ }
394
+ @if (getItemProp(processedItem, 'escape')) {
395
+ <span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
396
+ {{ getItemLabel(processedItem) }}
397
+ </span>
398
+ } @else {
399
+ <span
400
+ [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
401
+ [ngStyle]="getItemProp(processedItem, 'labelStyle')"
402
+ [innerHTML]="getItemLabel(processedItem)"
403
+ [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
404
+ ></span>
405
+ }
406
+ @if (getItemProp(processedItem, 'badge')) {
407
+ <span [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
408
+ }
413
409
 
414
- <ng-container *ngIf="isItemGroup(processedItem)">
415
- <svg
416
- data-p-icon="angle-right"
417
- *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate"
418
- [class]="cx('submenuIcon')"
419
- [pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
420
- [attr.aria-hidden]="true"
421
- />
422
- <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate" [attr.aria-hidden]="true"></ng-template>
423
- </ng-container>
424
- </a>
425
- </ng-container>
426
- <ng-container *ngIf="itemTemplate">
427
- <ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
428
- </ng-container>
429
- </div>
410
+ @if (isItemGroup(processedItem)) {
411
+ @if (!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()) {
412
+ <svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
413
+ }
414
+ <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
415
+ }
416
+ </a>
417
+ }
418
+ }
419
+ @if (itemTemplate()) {
420
+ <ng-template *ngTemplateOutlet="itemTemplate(); context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
421
+ }
422
+ </div>
430
423
 
431
- <p-tieredmenusub
432
- *ngIf="isItemVisible(processedItem) && isItemGroup(processedItem)"
433
- [items]="processedItem.items"
434
- [itemTemplate]="itemTemplate"
435
- [autoDisplay]="autoDisplay"
436
- [menuId]="menuId"
437
- [visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
438
- [activeItemPath]="activeItemPath()"
439
- [focusedItemId]="focusedItemId"
440
- [ariaLabelledBy]="getItemId(processedItem)"
441
- [level]="level + 1"
442
- (itemClick)="itemClick.emit($event)"
443
- (itemMouseEnter)="onItemMouseEnter($event)"
444
- [pt]="pt()"
445
- [motionOptions]="motionOptions"
446
- [unstyled]="unstyled()"
447
- ></p-tieredmenusub>
448
- </li>
449
- </ng-template>
424
+ @if (isItemVisible(processedItem) && isItemGroup(processedItem)) {
425
+ <p-tieredmenusub
426
+ [items]="processedItem.items"
427
+ [itemTemplate]="itemTemplate()"
428
+ [autoDisplay]="autoDisplay()"
429
+ [menuId]="menuId()"
430
+ [visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
431
+ [activeItemPath]="activeItemPath()"
432
+ [focusedItemId]="focusedItemId()"
433
+ [ariaLabelledBy]="getItemId(processedItem)"
434
+ [level]="level() + 1"
435
+ (itemClick)="itemClick.emit($event)"
436
+ (itemMouseEnter)="onItemMouseEnter($event)"
437
+ [pt]="pt()"
438
+ [motionOptions]="motionOptions()"
439
+ [unstyled]="unstyled()"
440
+ ></p-tieredmenusub>
441
+ }
442
+ </li>
443
+ }
444
+ }
450
445
  </ul>
451
446
  }
452
- `, isInline: true, dependencies: [{ kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { 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: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: AngleRightIcon, selector: "[data-p-icon=\"angle-right\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
447
+ `, isInline: true, dependencies: [{ kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: AngleRightIcon, selector: "[data-p-icon=\"angle-right\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
453
448
  }
454
449
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuSub, decorators: [{
455
450
  type: Component,
456
451
  args: [{
457
- changeDetection: ChangeDetectionStrategy.Eager,
452
+ changeDetection: ChangeDetectionStrategy.OnPush,
458
453
  selector: 'p-tieredMenuSub, p-tieredmenusub',
459
- standalone: true,
460
454
  imports: [CommonModule, RouterModule, Ripple, TooltipModule, AngleRightIcon, SharedModule, BindModule, MotionModule],
461
455
  template: `
462
456
  @if (render()) {
463
457
  <ul
464
458
  #sublist
465
459
  role="menu"
466
- [class]="root ? cx('rootList') : cx('submenu')"
467
- [id]="menuId + '_list'"
468
- [tabindex]="tabindex"
469
- [attr.aria-label]="ariaLabel"
470
- [attr.aria-labelledBy]="ariaLabelledBy"
471
- [attr.aria-activedescendant]="focusedItemId"
460
+ [class]="root() ? cx('rootList') : cx('submenu')"
461
+ [id]="menuId() + '_list'"
462
+ [tabindex]="tabindex()"
463
+ [attr.aria-label]="ariaLabel()"
464
+ [attr.aria-labelledBy]="ariaLabelledBy()"
465
+ [attr.aria-activedescendant]="focusedItemId()"
472
466
  [attr.aria-orientation]="'vertical'"
473
- [pBind]="_ptm(root ? 'rootList' : 'submenu')"
467
+ [pBind]="_ptm(root() ? 'rootList' : 'submenu')"
474
468
  (keydown)="menuKeydown.emit($event)"
475
469
  (focus)="menuFocus.emit($event)"
476
470
  (blur)="menuBlur.emit($event)"
477
- [style]="inlineStyles"
478
- [pMotion]="root ? true : visible"
479
- [pMotionDisabled]="root"
471
+ [style]="inlineStyles()"
472
+ [pMotion]="root() ? true : visible()"
473
+ [pMotionDisabled]="root()"
480
474
  [pMotionAppear]="true"
481
475
  [pMotionName]="'p-anchored-overlay'"
482
- [pMotionOptions]="motionOptions"
476
+ [pMotionOptions]="motionOptions()"
483
477
  (pMotionOnBeforeEnter)="onBeforeEnter($event)"
484
478
  (pMotionOnAfterLeave)="onAfterLeave()"
485
479
  >
486
- <ng-template ngFor let-processedItem [ngForOf]="items" let-index="index">
487
- <li
488
- *ngIf="isItemVisible(processedItem) && getItemProp(processedItem, 'separator')"
489
- [attr.id]="getItemId(processedItem)"
490
- [style]="getItemProp(processedItem, 'style')"
491
- [class]="cn(cx('separator'), getItemProp(processedItem, 'class'), getItemProp(processedItem, 'styleClass'))"
492
- role="separator"
493
- [pBind]="_ptm('separator')"
494
- ></li>
495
- <li
496
- #listItem
497
- *ngIf="isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')"
498
- role="menuitem"
499
- [attr.id]="getItemId(processedItem)"
500
- [attr.data-p-highlight]="isItemActive(processedItem)"
501
- [attr.data-p-focused]="isItemFocused(processedItem)"
502
- [attr.data-p-disabled]="isItemDisabled(processedItem)"
503
- [attr.aria-label]="getItemLabel(processedItem)"
504
- [attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
505
- [attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
506
- [attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
507
- [attr.aria-setsize]="getAriaSetSize()"
508
- [attr.aria-posinset]="getAriaPosInset(index)"
509
- [ngStyle]="getItemProp(processedItem, 'style')"
510
- [class]="cn(cx('item', { processedItem }), getItemProp(processedItem, 'styleClass'))"
511
- [pBind]="getPTOptions(processedItem, index, 'item')"
512
- [pTooltip]="getItemProp(processedItem, 'tooltip')"
513
- [tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
514
- [pTooltipUnstyled]="unstyled()"
515
- >
516
- <div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
517
- <ng-container *ngIf="!itemTemplate">
518
- <a
519
- *ngIf="!getItemProp(processedItem, 'routerLink')"
520
- [attr.href]="getItemProp(processedItem, 'url')"
521
- [attr.data-automationid]="getItemProp(processedItem, 'automationId')"
522
- [attr.title]="getItemProp(processedItem, 'title')"
523
- [target]="getItemProp(processedItem, 'target')"
524
- [class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
525
- [ngStyle]="getItemProp(processedItem, 'linkStyle')"
526
- [attr.tabindex]="-1"
527
- [pBind]="getPTOptions(processedItem, index, 'itemLink')"
528
- pRipple
529
- >
530
- <span
531
- *ngIf="getItemProp(processedItem, 'icon')"
532
- [class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
533
- [ngStyle]="getItemProp(processedItem, 'iconStyle')"
534
- [pBind]="getPTOptions(processedItem, index, 'itemIcon')"
535
- [attr.tabindex]="-1"
536
- >
537
- </span>
538
- <span
539
- *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel"
540
- [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
541
- [ngStyle]="getItemProp(processedItem, 'labelStyle')"
542
- [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
543
- >
544
- {{ getItemLabel(processedItem) }}
545
- </span>
546
- <ng-template #htmlLabel>
547
- <span
548
- [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
549
- [ngStyle]="getItemProp(processedItem, 'labelStyle')"
550
- [innerHTML]="getItemLabel(processedItem)"
551
- [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
552
- ></span>
553
- </ng-template>
554
- <span *ngIf="getItemProp(processedItem, 'badge')" [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
480
+ @for (processedItem of items(); track processedItem.key; let index = $index) {
481
+ @if (isItemVisible(processedItem) && getItemProp(processedItem, 'separator')) {
482
+ <li
483
+ [attr.id]="getItemId(processedItem)"
484
+ [style]="getItemProp(processedItem, 'style')"
485
+ [class]="cn(cx('separator'), getItemProp(processedItem, 'class'), getItemProp(processedItem, 'styleClass'))"
486
+ role="separator"
487
+ [pBind]="_ptm('separator')"
488
+ ></li>
489
+ }
490
+ @if (isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')) {
491
+ <li
492
+ #listItem
493
+ role="menuitem"
494
+ [attr.id]="getItemId(processedItem)"
495
+ [attr.data-p-highlight]="isItemActive(processedItem)"
496
+ [attr.data-p-focused]="isItemFocused(processedItem)"
497
+ [attr.data-p-disabled]="isItemDisabled(processedItem)"
498
+ [attr.aria-label]="getItemLabel(processedItem)"
499
+ [attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
500
+ [attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
501
+ [attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
502
+ [attr.aria-setsize]="getAriaSetSize()"
503
+ [attr.aria-posinset]="getAriaPosInset(index)"
504
+ [ngStyle]="getItemProp(processedItem, 'style')"
505
+ [class]="cn(cx('item', { processedItem }), getItemProp(processedItem, 'styleClass'))"
506
+ [pBind]="getPTOptions(processedItem, index, 'item')"
507
+ [pTooltip]="getItemProp(processedItem, 'tooltip')"
508
+ [tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
509
+ [pTooltipUnstyled]="unstyled()"
510
+ >
511
+ <div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
512
+ @if (!itemTemplate()) {
513
+ @if (!getItemProp(processedItem, 'routerLink')) {
514
+ <a
515
+ [attr.href]="getItemProp(processedItem, 'url')"
516
+ [attr.data-automationid]="getItemProp(processedItem, 'automationId')"
517
+ [attr.title]="getItemProp(processedItem, 'title')"
518
+ [target]="getItemProp(processedItem, 'target')"
519
+ [class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
520
+ [ngStyle]="getItemProp(processedItem, 'linkStyle')"
521
+ [attr.tabindex]="-1"
522
+ [pBind]="getPTOptions(processedItem, index, 'itemLink')"
523
+ pRipple
524
+ >
525
+ @if (getItemProp(processedItem, 'icon')) {
526
+ <span
527
+ [class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
528
+ [ngStyle]="getItemProp(processedItem, 'iconStyle')"
529
+ [pBind]="getPTOptions(processedItem, index, 'itemIcon')"
530
+ [attr.tabindex]="-1"
531
+ >
532
+ </span>
533
+ }
534
+ @if (getItemProp(processedItem, 'escape')) {
535
+ <span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
536
+ {{ getItemLabel(processedItem) }}
537
+ </span>
538
+ } @else {
539
+ <span
540
+ [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
541
+ [ngStyle]="getItemProp(processedItem, 'labelStyle')"
542
+ [innerHTML]="getItemLabel(processedItem)"
543
+ [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
544
+ ></span>
545
+ }
546
+ @if (getItemProp(processedItem, 'badge')) {
547
+ <span [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
548
+ }
555
549
 
556
- <ng-container *ngIf="isItemGroup(processedItem)">
557
- <svg
558
- data-p-icon="angle-right"
559
- *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate"
560
- [class]="cx('submenuIcon')"
561
- [pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
562
- [attr.aria-hidden]="true"
563
- />
564
- <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate" [attr.aria-hidden]="true"></ng-template>
565
- </ng-container>
566
- </a>
567
- <a
568
- *ngIf="getItemProp(processedItem, 'routerLink')"
569
- [routerLink]="getItemProp(processedItem, 'routerLink')"
570
- [attr.data-automationid]="getItemProp(processedItem, 'automationId')"
571
- [attr.title]="getItemProp(processedItem, 'title')"
572
- [attr.tabindex]="-1"
573
- [queryParams]="getItemProp(processedItem, 'queryParams')"
574
- [routerLinkActive]="'p-tieredmenu-item-link-active'"
575
- [routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
576
- [target]="getItemProp(processedItem, 'target')"
577
- [class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
578
- [ngStyle]="getItemProp(processedItem, 'linkStyle')"
579
- [fragment]="getItemProp(processedItem, 'fragment')"
580
- [queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
581
- [preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
582
- [skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
583
- [replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
584
- [state]="getItemProp(processedItem, 'state')"
585
- [pBind]="getPTOptions(processedItem, index, 'itemLink')"
586
- pRipple
587
- >
588
- <span
589
- *ngIf="getItemProp(processedItem, 'icon')"
590
- [class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
591
- [ngStyle]="getItemProp(processedItem, 'iconStyle')"
592
- [pBind]="getPTOptions(processedItem, index, 'itemIcon')"
593
- [attr.aria-hidden]="true"
594
- [attr.tabindex]="-1"
595
- >
596
- </span>
597
- <span
598
- *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel"
599
- [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
600
- [ngStyle]="getItemProp(processedItem, 'labelStyle')"
601
- [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
602
- >
603
- {{ getItemLabel(processedItem) }}
604
- </span>
605
- <ng-template #htmlLabel>
606
- <span
607
- [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
608
- [ngStyle]="getItemProp(processedItem, 'labelStyle')"
609
- [innerHTML]="getItemLabel(processedItem)"
610
- [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
611
- ></span>
612
- </ng-template>
613
- <span *ngIf="getItemProp(processedItem, 'badge')" [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
550
+ @if (isItemGroup(processedItem)) {
551
+ @if (!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()) {
552
+ <svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
553
+ }
554
+ <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
555
+ }
556
+ </a>
557
+ }
558
+ @if (getItemProp(processedItem, 'routerLink')) {
559
+ <a
560
+ [routerLink]="getItemProp(processedItem, 'routerLink')"
561
+ [attr.data-automationid]="getItemProp(processedItem, 'automationId')"
562
+ [attr.title]="getItemProp(processedItem, 'title')"
563
+ [attr.tabindex]="-1"
564
+ [queryParams]="getItemProp(processedItem, 'queryParams')"
565
+ [routerLinkActive]="'p-tieredmenu-item-link-active'"
566
+ [routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
567
+ [target]="getItemProp(processedItem, 'target')"
568
+ [class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
569
+ [ngStyle]="getItemProp(processedItem, 'linkStyle')"
570
+ [fragment]="getItemProp(processedItem, 'fragment')"
571
+ [queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
572
+ [preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
573
+ [skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
574
+ [replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
575
+ [state]="getItemProp(processedItem, 'state')"
576
+ [pBind]="getPTOptions(processedItem, index, 'itemLink')"
577
+ pRipple
578
+ >
579
+ @if (getItemProp(processedItem, 'icon')) {
580
+ <span
581
+ [class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
582
+ [ngStyle]="getItemProp(processedItem, 'iconStyle')"
583
+ [pBind]="getPTOptions(processedItem, index, 'itemIcon')"
584
+ [attr.aria-hidden]="true"
585
+ [attr.tabindex]="-1"
586
+ >
587
+ </span>
588
+ }
589
+ @if (getItemProp(processedItem, 'escape')) {
590
+ <span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
591
+ {{ getItemLabel(processedItem) }}
592
+ </span>
593
+ } @else {
594
+ <span
595
+ [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
596
+ [ngStyle]="getItemProp(processedItem, 'labelStyle')"
597
+ [innerHTML]="getItemLabel(processedItem)"
598
+ [pBind]="getPTOptions(processedItem, index, 'itemLabel')"
599
+ ></span>
600
+ }
601
+ @if (getItemProp(processedItem, 'badge')) {
602
+ <span [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
603
+ }
614
604
 
615
- <ng-container *ngIf="isItemGroup(processedItem)">
616
- <svg
617
- data-p-icon="angle-right"
618
- *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate"
619
- [class]="cx('submenuIcon')"
620
- [pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
621
- [attr.aria-hidden]="true"
622
- />
623
- <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate" [attr.aria-hidden]="true"></ng-template>
624
- </ng-container>
625
- </a>
626
- </ng-container>
627
- <ng-container *ngIf="itemTemplate">
628
- <ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
629
- </ng-container>
630
- </div>
605
+ @if (isItemGroup(processedItem)) {
606
+ @if (!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()) {
607
+ <svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
608
+ }
609
+ <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
610
+ }
611
+ </a>
612
+ }
613
+ }
614
+ @if (itemTemplate()) {
615
+ <ng-template *ngTemplateOutlet="itemTemplate(); context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
616
+ }
617
+ </div>
631
618
 
632
- <p-tieredmenusub
633
- *ngIf="isItemVisible(processedItem) && isItemGroup(processedItem)"
634
- [items]="processedItem.items"
635
- [itemTemplate]="itemTemplate"
636
- [autoDisplay]="autoDisplay"
637
- [menuId]="menuId"
638
- [visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
639
- [activeItemPath]="activeItemPath()"
640
- [focusedItemId]="focusedItemId"
641
- [ariaLabelledBy]="getItemId(processedItem)"
642
- [level]="level + 1"
643
- (itemClick)="itemClick.emit($event)"
644
- (itemMouseEnter)="onItemMouseEnter($event)"
645
- [pt]="pt()"
646
- [motionOptions]="motionOptions"
647
- [unstyled]="unstyled()"
648
- ></p-tieredmenusub>
649
- </li>
650
- </ng-template>
619
+ @if (isItemVisible(processedItem) && isItemGroup(processedItem)) {
620
+ <p-tieredmenusub
621
+ [items]="processedItem.items"
622
+ [itemTemplate]="itemTemplate()"
623
+ [autoDisplay]="autoDisplay()"
624
+ [menuId]="menuId()"
625
+ [visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
626
+ [activeItemPath]="activeItemPath()"
627
+ [focusedItemId]="focusedItemId()"
628
+ [ariaLabelledBy]="getItemId(processedItem)"
629
+ [level]="level() + 1"
630
+ (itemClick)="itemClick.emit($event)"
631
+ (itemMouseEnter)="onItemMouseEnter($event)"
632
+ [pt]="pt()"
633
+ [motionOptions]="motionOptions()"
634
+ [unstyled]="unstyled()"
635
+ ></p-tieredmenusub>
636
+ }
637
+ </li>
638
+ }
639
+ }
651
640
  </ul>
652
641
  }
653
642
  `,
@@ -658,46 +647,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
658
647
  ],
659
648
  hostDirectives: [Bind]
660
649
  }]
661
- }], propDecorators: { visible: [{
662
- type: Input
663
- }], items: [{
664
- type: Input
665
- }], itemTemplate: [{
666
- type: Input
667
- }], root: [{
668
- type: Input,
669
- args: [{ transform: booleanAttribute }]
670
- }], autoDisplay: [{
671
- type: Input,
672
- args: [{ transform: booleanAttribute }]
673
- }], autoZIndex: [{
674
- type: Input,
675
- args: [{ transform: booleanAttribute }]
676
- }], baseZIndex: [{
677
- type: Input,
678
- args: [{ transform: numberAttribute }]
679
- }], popup: [{
680
- type: Input,
681
- args: [{ transform: booleanAttribute }]
682
- }], menuId: [{
683
- type: Input
684
- }], ariaLabel: [{
685
- type: Input
686
- }], ariaLabelledBy: [{
687
- type: Input
688
- }], level: [{
689
- type: Input,
690
- args: [{ transform: numberAttribute }]
691
- }], focusedItemId: [{
692
- type: Input
693
- }], activeItemPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeItemPath", required: false }] }], motionOptions: [{
694
- type: Input
695
- }], tabindex: [{
696
- type: Input,
697
- args: [{ transform: numberAttribute }]
698
- }], inlineStyles: [{
699
- type: Input
700
- }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemMouseEnter: [{ type: i0.Output, args: ["itemMouseEnter"] }], menuFocus: [{ type: i0.Output, args: ["menuFocus"] }], menuBlur: [{ type: i0.Output, args: ["menuBlur"] }], menuKeydown: [{ type: i0.Output, args: ["menuKeydown"] }], sublistViewChild: [{ type: i0.ViewChild, args: ['sublist', { isSignal: true }] }] } });
650
+ }], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], autoDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDisplay", required: false }] }], menuId: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuId", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], focusedItemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedItemId", required: false }] }], activeItemPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeItemPath", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], inlineStyles: [{ type: i0.Input, args: [{ isSignal: true, alias: "inlineStyles", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemMouseEnter: [{ type: i0.Output, args: ["itemMouseEnter"] }], menuFocus: [{ type: i0.Output, args: ["menuFocus"] }], menuBlur: [{ type: i0.Output, args: ["menuBlur"] }], menuKeydown: [{ type: i0.Output, args: ["menuKeydown"] }], sublistViewChild: [{ type: i0.ViewChild, args: ['sublist', { isSignal: true }] }] } });
701
651
  /**
702
652
  * TieredMenu displays submenus in nested overlays.
703
653
  * @group Components
@@ -709,86 +659,77 @@ class TieredMenu extends BaseComponent {
709
659
  * An array of menuitems.
710
660
  * @group Props
711
661
  */
712
- set model(value) {
713
- this._model = value;
714
- this._processedItems = this.createProcessedItems(this._model || []);
715
- }
716
- get model() {
717
- return this._model;
718
- }
662
+ model = input(undefined, /* @ts-ignore */
663
+ ...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
719
664
  /**
720
665
  * Defines if menu would displayed as a popup.
721
666
  * @group Props
722
667
  */
723
- popup;
668
+ popup = input(undefined, { ...(ngDevMode ? { debugName: "popup" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
724
669
  /**
725
670
  * Inline style of the component.
726
671
  * @group Props
727
672
  */
728
- style;
673
+ style = input(undefined, /* @ts-ignore */
674
+ ...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
729
675
  /**
730
676
  * Style class of the component.
731
677
  * @group Props
732
678
  */
733
- styleClass;
679
+ styleClass = input(undefined, /* @ts-ignore */
680
+ ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
734
681
  /**
735
682
  * The breakpoint to define the maximum width boundary.
736
683
  * @group Props
737
684
  */
738
- breakpoint = '960px';
685
+ breakpoint = input('960px', /* @ts-ignore */
686
+ ...(ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []));
739
687
  /**
740
688
  * Whether to automatically manage layering.
741
689
  * @group Props
742
690
  */
743
- autoZIndex = true;
691
+ autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
744
692
  /**
745
693
  * Base zIndex value to use in layering.
746
694
  * @group Props
747
695
  */
748
- baseZIndex = 0;
696
+ baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
749
697
  /**
750
698
  * Whether to show a root submenu on mouse over.
751
699
  * @defaultValue true
752
700
  * @group Props
753
701
  */
754
- autoDisplay = true;
755
- /**
756
- * Transition options of the show animation.
757
- * @group Props
758
- * @deprecated since v21.0.0, use `motionOptions` instead.
759
- */
760
- showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
761
- /**
762
- * Transition options of the hide animation.
763
- * @group Props
764
- * @deprecated since v21.0.0, use `motionOptions` instead.
765
- */
766
- hideTransitionOptions = '.1s linear';
702
+ autoDisplay = input(true, { ...(ngDevMode ? { debugName: "autoDisplay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
767
703
  /**
768
704
  * Current id state as a string.
769
705
  * @group Props
770
706
  */
771
- id;
707
+ id = input(undefined, /* @ts-ignore */
708
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
709
+ _id = computed(() => this.id() || uuid('pn_id_'), /* @ts-ignore */
710
+ ...(ngDevMode ? [{ debugName: "_id" }] : /* istanbul ignore next */ []));
772
711
  /**
773
712
  * Defines a string value that labels an interactive element.
774
713
  * @group Props
775
714
  */
776
- ariaLabel;
715
+ ariaLabel = input(undefined, /* @ts-ignore */
716
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
777
717
  /**
778
718
  * Identifier of the underlying input element.
779
719
  * @group Props
780
720
  */
781
- ariaLabelledBy;
721
+ ariaLabelledBy = input(undefined, /* @ts-ignore */
722
+ ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
782
723
  /**
783
724
  * When present, it specifies that the component should be disabled.
784
725
  * @group Props
785
726
  */
786
- disabled = false;
727
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
787
728
  /**
788
729
  * Index of the element in tabbing order.
789
730
  * @group Props
790
731
  */
791
- tabindex = 0;
732
+ tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
792
733
  /**
793
734
  * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
794
735
  * @defaultValue 'self'
@@ -841,47 +782,60 @@ class TieredMenu extends BaseComponent {
841
782
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
842
783
  render = signal(false, /* @ts-ignore */
843
784
  ...(ngDevMode ? [{ debugName: "render" }] : /* istanbul ignore next */ []));
844
- container;
845
- outsideClickListener;
846
- resizeListener;
847
- scrollHandler;
848
- target;
849
- relatedTarget;
850
- visible;
851
- dirty = false;
852
- focused = false;
785
+ container = signal(undefined, /* @ts-ignore */
786
+ ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
787
+ outsideClickListener = signal(undefined, /* @ts-ignore */
788
+ ...(ngDevMode ? [{ debugName: "outsideClickListener" }] : /* istanbul ignore next */ []));
789
+ resizeListener = signal(undefined, /* @ts-ignore */
790
+ ...(ngDevMode ? [{ debugName: "resizeListener" }] : /* istanbul ignore next */ []));
791
+ scrollHandler = signal(undefined, /* @ts-ignore */
792
+ ...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
793
+ target = signal(undefined, /* @ts-ignore */
794
+ ...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
795
+ relatedTarget = signal(undefined, /* @ts-ignore */
796
+ ...(ngDevMode ? [{ debugName: "relatedTarget" }] : /* istanbul ignore next */ []));
797
+ visible = signal(undefined, /* @ts-ignore */
798
+ ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
799
+ dirty = signal(false, /* @ts-ignore */
800
+ ...(ngDevMode ? [{ debugName: "dirty" }] : /* istanbul ignore next */ []));
801
+ focused = signal(false, /* @ts-ignore */
802
+ ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
853
803
  activeItemPath = signal([], /* @ts-ignore */
854
804
  ...(ngDevMode ? [{ debugName: "activeItemPath" }] : /* istanbul ignore next */ []));
855
- number = signal(0, /* @ts-ignore */
856
- ...(ngDevMode ? [{ debugName: "number" }] : /* istanbul ignore next */ []));
857
805
  focusedItemInfo = signal({ index: -1, level: 0, parentKey: '', item: null }, /* @ts-ignore */
858
806
  ...(ngDevMode ? [{ debugName: "focusedItemInfo" }] : /* istanbul ignore next */ []));
859
- searchValue = '';
860
- searchTimeout;
861
- _processedItems;
862
- _model;
807
+ searchValue = signal('', /* @ts-ignore */
808
+ ...(ngDevMode ? [{ debugName: "searchValue" }] : /* istanbul ignore next */ []));
809
+ searchTimeout = signal(undefined, /* @ts-ignore */
810
+ ...(ngDevMode ? [{ debugName: "searchTimeout" }] : /* istanbul ignore next */ []));
863
811
  _componentStyle = inject(TieredMenuStyle);
864
812
  bindDirectiveInstance = inject(Bind, { self: true });
865
- matchMediaListener;
866
- query;
813
+ matchMediaListener = signal(undefined, /* @ts-ignore */
814
+ ...(ngDevMode ? [{ debugName: "matchMediaListener" }] : /* istanbul ignore next */ []));
815
+ query = signal(undefined, /* @ts-ignore */
816
+ ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
867
817
  queryMatches = signal(false, /* @ts-ignore */
868
818
  ...(ngDevMode ? [{ debugName: "queryMatches" }] : /* istanbul ignore next */ []));
869
- _submenuIconTemplate;
870
- _itemTemplate;
871
- get visibleItems() {
819
+ _submenuIconTemplate = computed(() => this.templates()
820
+ .filter((item) => item.getType() === 'submenuicon')
821
+ .at(-1)?.template, /* @ts-ignore */
822
+ ...(ngDevMode ? [{ debugName: "_submenuIconTemplate" }] : /* istanbul ignore next */ []));
823
+ _itemTemplate = computed(() => this.templates()
824
+ .filter((item) => item.getType() !== 'submenuicon')
825
+ .at(-1)?.template, /* @ts-ignore */
826
+ ...(ngDevMode ? [{ debugName: "_itemTemplate" }] : /* istanbul ignore next */ []));
827
+ visibleItems = computed(() => {
872
828
  const processedItem = this.activeItemPath().find((p) => p.key === this.focusedItemInfo().parentKey);
873
- return processedItem ? processedItem.items : this.processedItems;
874
- }
875
- get processedItems() {
876
- if (!this._processedItems || !this._processedItems.length) {
877
- this._processedItems = this.createProcessedItems(this.model || []);
878
- }
879
- return this._processedItems;
880
- }
881
- get focusedItemId() {
829
+ return processedItem ? processedItem.items : this.processedItems();
830
+ }, /* @ts-ignore */
831
+ ...(ngDevMode ? [{ debugName: "visibleItems" }] : /* istanbul ignore next */ []));
832
+ processedItems = computed(() => this.createProcessedItems(this.model() || []), /* @ts-ignore */
833
+ ...(ngDevMode ? [{ debugName: "processedItems" }] : /* istanbul ignore next */ []));
834
+ focusedItemId = computed(() => {
882
835
  const focusedItemInfo = this.focusedItemInfo();
883
- return focusedItemInfo.item?.id ? focusedItemInfo.item.id : focusedItemInfo.index !== -1 ? `${this.id}${isNotEmpty(focusedItemInfo.parentKey) ? '_' + focusedItemInfo.parentKey : ''}_${focusedItemInfo.index}` : null;
884
- }
836
+ return focusedItemInfo.item?.id ? focusedItemInfo.item.id : focusedItemInfo.index !== -1 ? `${this._id()}${isNotEmpty(focusedItemInfo.parentKey) ? '_' + focusedItemInfo.parentKey : ''}_${focusedItemInfo.index}` : null;
837
+ }, /* @ts-ignore */
838
+ ...(ngDevMode ? [{ debugName: "focusedItemId" }] : /* istanbul ignore next */ []));
885
839
  constructor() {
886
840
  super();
887
841
  effect(() => {
@@ -895,46 +849,29 @@ class TieredMenu extends BaseComponent {
895
849
  this.unbindResizeListener();
896
850
  }
897
851
  });
898
- }
899
- onAfterViewChecked() {
900
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
852
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
901
853
  }
902
854
  onInit() {
903
855
  this.bindMatchMediaListener();
904
- this.id = this.id || uuid('pn_id_');
905
- }
906
- onAfterContentInit() {
907
- this.templates()?.forEach((item) => {
908
- switch (item.getType()) {
909
- case 'submenuicon':
910
- this._submenuIconTemplate = item.template;
911
- break;
912
- case 'item':
913
- this._itemTemplate = item.template;
914
- break;
915
- default:
916
- this._itemTemplate = item.template;
917
- break;
918
- }
919
- });
920
856
  }
921
857
  bindMatchMediaListener() {
922
858
  if (isPlatformBrowser(this.platformId)) {
923
- if (!this.matchMediaListener) {
924
- const query = window.matchMedia(`(max-width: ${this.breakpoint})`);
925
- this.query = query;
859
+ if (!this.matchMediaListener()) {
860
+ const query = window.matchMedia(`(max-width: ${this.breakpoint()})`);
861
+ this.query.set(query);
926
862
  this.queryMatches.set(query.matches);
927
- this.matchMediaListener = () => {
863
+ this.matchMediaListener.set(() => {
928
864
  this.queryMatches.set(query.matches);
929
- };
930
- query.addEventListener('change', this.matchMediaListener);
865
+ });
866
+ query.addEventListener('change', this.matchMediaListener());
931
867
  }
932
868
  }
933
869
  }
934
870
  unbindMatchMediaListener() {
935
- if (this.matchMediaListener) {
936
- this.query.removeEventListener('change', this.matchMediaListener);
937
- this.matchMediaListener = null;
871
+ const matchMediaListener = this.matchMediaListener();
872
+ if (matchMediaListener) {
873
+ this.query()?.removeEventListener('change', matchMediaListener);
874
+ this.matchMediaListener.set(null);
938
875
  }
939
876
  }
940
877
  createProcessedItems(items, level = 0, parent = {}, parentKey = '') {
@@ -986,13 +923,13 @@ class TieredMenu extends BaseComponent {
986
923
  return this.getItemProp(item, 'separator');
987
924
  }
988
925
  isItemMatched(processedItem) {
989
- return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase());
926
+ return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue().toLocaleLowerCase());
990
927
  }
991
928
  isProccessedItemGroup(processedItem) {
992
929
  return processedItem && isNotEmpty(processedItem.items);
993
930
  }
994
931
  onOverlayClick(event) {
995
- if (this.popup) {
932
+ if (this.popup()) {
996
933
  this.overlayService.add({
997
934
  originalEvent: event,
998
935
  target: this.el.nativeElement
@@ -1008,7 +945,7 @@ class TieredMenu extends BaseComponent {
1008
945
  const { index, key, level, parentKey, item } = processedItem;
1009
946
  this.activeItemPath.set(this.activeItemPath().filter((p) => key !== p.key && key.startsWith(p.key)));
1010
947
  this.focusedItemInfo.set({ index, level, parentKey, item });
1011
- this.dirty = true;
948
+ this.dirty.set(true);
1012
949
  focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
1013
950
  }
1014
951
  else {
@@ -1025,12 +962,12 @@ class TieredMenu extends BaseComponent {
1025
962
  }
1026
963
  onItemMouseEnter(event) {
1027
964
  if (!isTouchDevice()) {
1028
- if (this.dirty) {
965
+ if (this.dirty()) {
1029
966
  this.onItemChange(event, 'hover');
1030
967
  }
1031
968
  }
1032
969
  else {
1033
- this.onItemChange({ event, processedItem: event.processedItem, focus: this.autoDisplay }, 'hover');
970
+ this.onItemChange({ event, processedItem: event.processedItem, focus: this.autoDisplay() }, 'hover');
1034
971
  }
1035
972
  }
1036
973
  onKeyDown(event) {
@@ -1086,13 +1023,13 @@ class TieredMenu extends BaseComponent {
1086
1023
  event.preventDefault();
1087
1024
  }
1088
1025
  onArrowRightKey(event) {
1089
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1026
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1090
1027
  const grouped = this.isProccessedItemGroup(processedItem);
1091
1028
  const item = processedItem?.item;
1092
1029
  if (grouped) {
1093
1030
  this.onItemChange({ originalEvent: event, processedItem });
1094
1031
  this.focusedItemInfo.set({ index: -1, parentKey: processedItem.key, item });
1095
- this.searchValue = '';
1032
+ this.searchValue.set('');
1096
1033
  this.onArrowDownKey(event);
1097
1034
  }
1098
1035
  event.preventDefault();
@@ -1100,11 +1037,11 @@ class TieredMenu extends BaseComponent {
1100
1037
  onArrowUpKey(event) {
1101
1038
  if (event.altKey) {
1102
1039
  if (this.focusedItemInfo().index !== -1) {
1103
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1040
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1104
1041
  const grouped = this.isProccessedItemGroup(processedItem);
1105
1042
  !grouped && this.onItemChange({ originalEvent: event, processedItem });
1106
1043
  }
1107
- this.popup && this.hide(event, true);
1044
+ this.popup() && this.hide(event, true);
1108
1045
  event.preventDefault();
1109
1046
  }
1110
1047
  else {
@@ -1114,7 +1051,7 @@ class TieredMenu extends BaseComponent {
1114
1051
  }
1115
1052
  }
1116
1053
  onArrowLeftKey(event) {
1117
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1054
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1118
1055
  if (!processedItem) {
1119
1056
  event.preventDefault();
1120
1057
  return;
@@ -1123,7 +1060,7 @@ class TieredMenu extends BaseComponent {
1123
1060
  const root = isEmpty(processedItem.parent);
1124
1061
  if (!root) {
1125
1062
  this.focusedItemInfo.set({ index: -1, parentKey: parentItem ? parentItem.parentKey : '', item: processedItem.item });
1126
- this.searchValue = '';
1063
+ this.searchValue.set('');
1127
1064
  this.onArrowDownKey(event);
1128
1065
  }
1129
1066
  const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== this.focusedItemInfo().parentKey);
@@ -1143,12 +1080,12 @@ class TieredMenu extends BaseComponent {
1143
1080
  }
1144
1081
  onEscapeKey(event) {
1145
1082
  this.hide(event, true);
1146
- this.focusedItemInfo().index = this.findFirstFocusedItemIndex();
1083
+ this.focusedItemInfo.update((focusedItemInfo) => ({ ...focusedItemInfo, index: this.findFirstFocusedItemIndex() }));
1147
1084
  event.preventDefault();
1148
1085
  }
1149
1086
  onTabKey(event) {
1150
1087
  if (this.focusedItemInfo().index !== -1) {
1151
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1088
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1152
1089
  const grouped = this.isProccessedItemGroup(processedItem);
1153
1090
  !grouped && this.onItemChange({ originalEvent: event, processedItem });
1154
1091
  }
@@ -1156,13 +1093,13 @@ class TieredMenu extends BaseComponent {
1156
1093
  }
1157
1094
  onEnterKey(event) {
1158
1095
  if (this.focusedItemInfo().index !== -1) {
1159
- const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${`${this.focusedItemId}`}"]`);
1096
+ const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${`${this.focusedItemId()}`}"]`);
1160
1097
  const anchorElement = element && (findSingle(element, '[data-pc-section="itemlink"]') || findSingle(element, 'a,button'));
1161
1098
  anchorElement ? anchorElement.click() : element && element.click();
1162
- if (!this.popup) {
1163
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1099
+ if (!this.popup()) {
1100
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1164
1101
  const grouped = this.isProccessedItemGroup(processedItem);
1165
- !grouped && (this.focusedItemInfo().index = this.findFirstFocusedItemIndex());
1102
+ !grouped && this.focusedItemInfo.update((focusedItemInfo) => ({ ...focusedItemInfo, index: this.findFirstFocusedItemIndex() }));
1166
1103
  }
1167
1104
  }
1168
1105
  event.preventDefault();
@@ -1176,7 +1113,7 @@ class TieredMenu extends BaseComponent {
1176
1113
  const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== parentKey && p.parentKey !== key);
1177
1114
  grouped && activeItemPath.push(processedItem);
1178
1115
  this.focusedItemInfo.set({ index, level, parentKey, item });
1179
- grouped && (this.dirty = true);
1116
+ grouped && this.dirty.set(true);
1180
1117
  isFocus && focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
1181
1118
  if (type === 'hover' && this.queryMatches()) {
1182
1119
  return;
@@ -1184,30 +1121,30 @@ class TieredMenu extends BaseComponent {
1184
1121
  this.activeItemPath.set(activeItemPath);
1185
1122
  }
1186
1123
  onMenuFocus(event) {
1187
- this.focused = true;
1188
- if (this.focusedItemInfo().index === -1 && !this.popup) {
1124
+ this.focused.set(true);
1125
+ if (this.focusedItemInfo().index === -1 && !this.popup()) {
1189
1126
  // this.onArrowDownKey(event);
1190
1127
  }
1191
1128
  }
1192
1129
  onMenuBlur(event) {
1193
- this.focused = false;
1130
+ this.focused.set(false);
1194
1131
  this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '', item: null });
1195
- this.searchValue = '';
1196
- this.dirty = false;
1132
+ this.searchValue.set('');
1133
+ this.dirty.set(false);
1197
1134
  }
1198
1135
  onOverlayBeforeEnter(event) {
1199
- if (this.popup) {
1200
- this.container = event.element;
1201
- addStyle(this.container, { position: 'absolute' });
1136
+ if (this.popup()) {
1137
+ this.container.set(event.element);
1138
+ addStyle(this.container(), { position: 'absolute' });
1202
1139
  this.moveOnTop();
1203
1140
  this.onShow.emit({});
1204
- this.$attrSelector && this.container?.setAttribute(this.$attrSelector, '');
1141
+ this.$attrSelector && this.container()?.setAttribute(this.$attrSelector, '');
1205
1142
  this.appendOverlay();
1206
1143
  this.alignOverlay();
1207
1144
  }
1208
1145
  }
1209
1146
  onOverlayAfterEnter() {
1210
- if (this.popup) {
1147
+ if (this.popup()) {
1211
1148
  this.bindOutsideClickListener();
1212
1149
  this.bindResizeListener();
1213
1150
  this.bindScrollListener();
@@ -1221,37 +1158,41 @@ class TieredMenu extends BaseComponent {
1221
1158
  this.render.set(false);
1222
1159
  this.onHide.emit({});
1223
1160
  }
1224
- relativeAlign = false;
1161
+ relativeAlign = signal(false, /* @ts-ignore */
1162
+ ...(ngDevMode ? [{ debugName: "relativeAlign" }] : /* istanbul ignore next */ []));
1225
1163
  alignOverlay() {
1226
- if (this.container && this.target) {
1227
- if (this.relativeAlign)
1228
- relativePosition(this.container, this.target);
1164
+ const container = this.container();
1165
+ const target = this.target();
1166
+ if (container && target) {
1167
+ if (this.relativeAlign())
1168
+ relativePosition(container, target);
1229
1169
  else
1230
- absolutePosition(this.container, this.target);
1231
- const targetWidth = getOuterWidth(this.target);
1232
- if (targetWidth > getOuterWidth(this.container)) {
1233
- this.container.style.minWidth = getOuterWidth(this.target) + 'px';
1170
+ absolutePosition(container, target);
1171
+ const targetWidth = getOuterWidth(target);
1172
+ if (targetWidth > getOuterWidth(container)) {
1173
+ container.style.minWidth = getOuterWidth(target) + 'px';
1234
1174
  }
1235
1175
  }
1236
1176
  }
1237
1177
  appendOverlay() {
1238
1178
  if (this.$appendTo() && this.$appendTo() !== 'self') {
1239
1179
  if (this.$appendTo() === 'body') {
1240
- appendChild(this.document.body, this.container);
1180
+ appendChild(this.document.body, this.container());
1241
1181
  }
1242
1182
  else {
1243
- appendChild(this.$appendTo(), this.container);
1183
+ appendChild(this.$appendTo(), this.container());
1244
1184
  }
1245
1185
  }
1246
1186
  }
1247
1187
  restoreOverlayAppend() {
1248
- if (this.container && this.$appendTo() !== 'self') {
1249
- appendChild(this.el.nativeElement, this.container);
1188
+ const container = this.container();
1189
+ if (container && this.$appendTo() !== 'self') {
1190
+ appendChild(this.el.nativeElement, container);
1250
1191
  }
1251
1192
  }
1252
1193
  moveOnTop() {
1253
- if (this.autoZIndex) {
1254
- ZIndexUtils.set('menu', this.container, this.baseZIndex + this.config.zIndex.menu);
1194
+ if (this.autoZIndex()) {
1195
+ ZIndexUtils.set('menu', this.container(), this.baseZIndex() + this.config.zIndex.menu);
1255
1196
  }
1256
1197
  }
1257
1198
  /**
@@ -1259,14 +1200,14 @@ class TieredMenu extends BaseComponent {
1259
1200
  * @group Method
1260
1201
  */
1261
1202
  hide(event, isFocus) {
1262
- if (this.popup) {
1203
+ if (this.popup()) {
1263
1204
  this.onHide.emit({});
1264
- this.visible = false;
1205
+ this.visible.set(false);
1265
1206
  }
1266
1207
  this.activeItemPath.set([]);
1267
1208
  this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '' });
1268
- isFocus && focus(this.relatedTarget || this.target || this.rootmenu()?.sublistViewChild()?.nativeElement);
1269
- this.dirty = false;
1209
+ isFocus && focus(this.relatedTarget() || this.target() || this.rootmenu()?.sublistViewChild()?.nativeElement);
1210
+ this.dirty.set(false);
1270
1211
  }
1271
1212
  /**
1272
1213
  * Toggles the visibility of the popup menu.
@@ -1274,7 +1215,7 @@ class TieredMenu extends BaseComponent {
1274
1215
  * @group Method
1275
1216
  */
1276
1217
  toggle(event) {
1277
- this.visible ? this.hide(event, true) : this.show(event);
1218
+ this.visible() ? this.hide(event, true) : this.show(event);
1278
1219
  }
1279
1220
  /**
1280
1221
  * Displays the popup menu.
@@ -1282,27 +1223,33 @@ class TieredMenu extends BaseComponent {
1282
1223
  * @group Method
1283
1224
  */
1284
1225
  show(event, isFocus) {
1285
- if (this.popup) {
1286
- this.visible = true;
1287
- this.target = this.target || event.currentTarget;
1288
- this.relatedTarget = event.relatedTarget || null;
1289
- this.relativeAlign = event?.relativeAlign || null;
1226
+ if (this.popup()) {
1227
+ this.visible.set(true);
1228
+ this.target.set(this.target() || event.currentTarget);
1229
+ this.relatedTarget.set(event.relatedTarget || null);
1230
+ this.relativeAlign.set(event?.relativeAlign || null);
1290
1231
  }
1291
1232
  this.render.set(true);
1292
1233
  this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '' });
1293
1234
  isFocus && focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
1294
- this.cd.markForCheck();
1295
1235
  }
1296
1236
  searchItems(event, char) {
1297
- this.searchValue = (this.searchValue || '') + char;
1237
+ this.searchValue.set((this.searchValue() || '') + char);
1298
1238
  let itemIndex = -1;
1299
1239
  let matched = false;
1300
1240
  if (this.focusedItemInfo().index !== -1) {
1301
- itemIndex = this.visibleItems.slice(this.focusedItemInfo().index).findIndex((processedItem) => this.isItemMatched(processedItem));
1302
- itemIndex = itemIndex === -1 ? this.visibleItems.slice(0, this.focusedItemInfo().index).findIndex((processedItem) => this.isItemMatched(processedItem)) : itemIndex + this.focusedItemInfo().index;
1241
+ itemIndex = this.visibleItems()
1242
+ .slice(this.focusedItemInfo().index)
1243
+ .findIndex((processedItem) => this.isItemMatched(processedItem));
1244
+ itemIndex =
1245
+ itemIndex === -1
1246
+ ? this.visibleItems()
1247
+ .slice(0, this.focusedItemInfo().index)
1248
+ .findIndex((processedItem) => this.isItemMatched(processedItem))
1249
+ : itemIndex + this.focusedItemInfo().index;
1303
1250
  }
1304
1251
  else {
1305
- itemIndex = this.visibleItems.findIndex((processedItem) => this.isItemMatched(processedItem));
1252
+ itemIndex = this.visibleItems().findIndex((processedItem) => this.isItemMatched(processedItem));
1306
1253
  }
1307
1254
  if (itemIndex !== -1) {
1308
1255
  matched = true;
@@ -1313,13 +1260,13 @@ class TieredMenu extends BaseComponent {
1313
1260
  if (itemIndex !== -1) {
1314
1261
  this.changeFocusedItemIndex(event, itemIndex);
1315
1262
  }
1316
- if (this.searchTimeout) {
1317
- clearTimeout(this.searchTimeout);
1263
+ if (this.searchTimeout()) {
1264
+ clearTimeout(this.searchTimeout());
1318
1265
  }
1319
- this.searchTimeout = setTimeout(() => {
1320
- this.searchValue = '';
1321
- this.searchTimeout = null;
1322
- }, 500);
1266
+ this.searchTimeout.set(setTimeout(() => {
1267
+ this.searchValue.set('');
1268
+ this.searchTimeout.set(null);
1269
+ }, 500));
1323
1270
  return matched;
1324
1271
  }
1325
1272
  findLastFocusedItemIndex() {
@@ -1327,14 +1274,18 @@ class TieredMenu extends BaseComponent {
1327
1274
  return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;
1328
1275
  }
1329
1276
  findLastItemIndex() {
1330
- return findLastIndex(this.visibleItems, (processedItem) => this.isValidItem(processedItem));
1277
+ return findLastIndex(this.visibleItems(), (processedItem) => this.isValidItem(processedItem));
1331
1278
  }
1332
1279
  findPrevItemIndex(index) {
1333
- const matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems.slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
1280
+ const matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems().slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
1334
1281
  return matchedItemIndex > -1 ? matchedItemIndex : index;
1335
1282
  }
1336
1283
  findNextItemIndex(index) {
1337
- const matchedItemIndex = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).findIndex((processedItem) => this.isValidItem(processedItem)) : -1;
1284
+ const matchedItemIndex = index < this.visibleItems().length - 1
1285
+ ? this.visibleItems()
1286
+ .slice(index + 1)
1287
+ .findIndex((processedItem) => this.isValidItem(processedItem))
1288
+ : -1;
1338
1289
  return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;
1339
1290
  }
1340
1291
  findFirstFocusedItemIndex() {
@@ -1342,76 +1293,80 @@ class TieredMenu extends BaseComponent {
1342
1293
  return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;
1343
1294
  }
1344
1295
  findFirstItemIndex() {
1345
- return this.visibleItems.findIndex((processedItem) => this.isValidItem(processedItem));
1296
+ return this.visibleItems().findIndex((processedItem) => this.isValidItem(processedItem));
1346
1297
  }
1347
1298
  findSelectedItemIndex() {
1348
- return this.visibleItems.findIndex((processedItem) => this.isValidSelectedItem(processedItem));
1299
+ return this.visibleItems().findIndex((processedItem) => this.isValidSelectedItem(processedItem));
1349
1300
  }
1350
1301
  changeFocusedItemIndex(event, index) {
1351
1302
  if (this.focusedItemInfo().index !== index) {
1352
1303
  const focusedItemInfo = this.focusedItemInfo();
1353
- this.focusedItemInfo.set({ ...focusedItemInfo, item: this.visibleItems[index].item, index });
1304
+ this.focusedItemInfo.set({ ...focusedItemInfo, item: this.visibleItems()[index].item, index });
1354
1305
  this.scrollInView();
1355
1306
  }
1356
1307
  }
1357
1308
  scrollInView(index = -1) {
1358
- const id = index !== -1 ? `${this.id}_${index}` : this.focusedItemId;
1309
+ const id = index !== -1 ? `${this._id()}_${index}` : this.focusedItemId();
1359
1310
  const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${id}"]`);
1360
1311
  if (element) {
1361
1312
  element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
1362
1313
  }
1363
1314
  }
1364
1315
  bindScrollListener() {
1365
- if (!this.scrollHandler) {
1366
- this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, (event) => {
1367
- if (this.visible) {
1316
+ if (!this.scrollHandler()) {
1317
+ this.scrollHandler.set(new ConnectedOverlayScrollHandler(this.target(), (event) => {
1318
+ if (this.visible()) {
1368
1319
  this.hide(event, true);
1369
1320
  }
1370
- });
1321
+ }));
1371
1322
  }
1372
- this.scrollHandler.bindScrollListener();
1323
+ this.scrollHandler()?.bindScrollListener();
1373
1324
  }
1374
1325
  unbindScrollListener() {
1375
- if (this.scrollHandler) {
1376
- this.scrollHandler.unbindScrollListener();
1377
- this.scrollHandler = null;
1326
+ const scrollHandler = this.scrollHandler();
1327
+ if (scrollHandler) {
1328
+ scrollHandler.unbindScrollListener();
1329
+ this.scrollHandler.set(null);
1378
1330
  }
1379
1331
  }
1380
1332
  bindResizeListener() {
1381
1333
  if (isPlatformBrowser(this.platformId)) {
1382
- if (!this.resizeListener) {
1383
- this.resizeListener = this.renderer.listen(this.document.defaultView, 'resize', (event) => {
1334
+ if (!this.resizeListener()) {
1335
+ this.resizeListener.set(this.renderer.listen(this.document.defaultView, 'resize', (event) => {
1384
1336
  if (!isTouchDevice()) {
1385
1337
  this.hide(event, true);
1386
1338
  }
1387
- });
1339
+ }));
1388
1340
  }
1389
1341
  }
1390
1342
  }
1391
1343
  bindOutsideClickListener() {
1392
1344
  if (isPlatformBrowser(this.platformId)) {
1393
- if (!this.outsideClickListener) {
1394
- this.outsideClickListener = this.renderer.listen(this.document, 'click', (event) => {
1345
+ if (!this.outsideClickListener()) {
1346
+ this.outsideClickListener.set(this.renderer.listen(this.document, 'click', (event) => {
1395
1347
  const containerViewChild = this.containerViewChild();
1348
+ const target = this.target();
1396
1349
  const isOutsideContainer = containerViewChild && !containerViewChild.nativeElement.contains(event.target);
1397
- const isOutsideTarget = this.popup ? !(this.target && (this.target === event.target || this.target.contains(event.target))) : true;
1350
+ const isOutsideTarget = this.popup() ? !(target && (target === event.target || target.contains(event.target))) : true;
1398
1351
  if (isOutsideContainer && isOutsideTarget) {
1399
1352
  this.hide();
1400
1353
  }
1401
- });
1354
+ }));
1402
1355
  }
1403
1356
  }
1404
1357
  }
1405
1358
  unbindOutsideClickListener() {
1406
- if (this.outsideClickListener) {
1407
- document.removeEventListener('click', this.outsideClickListener);
1408
- this.outsideClickListener = null;
1359
+ const outsideClickListener = this.outsideClickListener();
1360
+ if (outsideClickListener) {
1361
+ outsideClickListener();
1362
+ this.outsideClickListener.set(null);
1409
1363
  }
1410
1364
  }
1411
1365
  unbindResizeListener() {
1412
- if (this.resizeListener) {
1413
- this.resizeListener();
1414
- this.resizeListener = null;
1366
+ const resizeListener = this.resizeListener();
1367
+ if (resizeListener) {
1368
+ resizeListener();
1369
+ this.resizeListener.set(null);
1415
1370
  }
1416
1371
  }
1417
1372
  onOverlayHide() {
@@ -1419,17 +1374,19 @@ class TieredMenu extends BaseComponent {
1419
1374
  this.unbindResizeListener();
1420
1375
  this.unbindScrollListener();
1421
1376
  if (!this.cd.destroyed) {
1422
- this.target = null;
1377
+ this.target.set(null);
1423
1378
  }
1424
- if (this.container && this.autoZIndex) {
1425
- ZIndexUtils.clear(this.container);
1379
+ const container = this.container();
1380
+ if (container && this.autoZIndex()) {
1381
+ ZIndexUtils.clear(container);
1426
1382
  }
1427
1383
  }
1428
1384
  onDestroy() {
1429
- if (this.popup) {
1430
- if (this.scrollHandler) {
1431
- this.scrollHandler.destroy();
1432
- this.scrollHandler = null;
1385
+ if (this.popup()) {
1386
+ const scrollHandler = this.scrollHandler();
1387
+ if (scrollHandler) {
1388
+ scrollHandler.destroy();
1389
+ this.scrollHandler.set(null);
1433
1390
  }
1434
1391
  this.restoreOverlayAppend();
1435
1392
  this.onOverlayHide();
@@ -1437,19 +1394,19 @@ class TieredMenu extends BaseComponent {
1437
1394
  this.unbindMatchMediaListener();
1438
1395
  }
1439
1396
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
1440
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenu, isStandalone: true, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: false, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: false, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, providers: [TieredMenuStyle, { provide: TIEREDMENU_INSTANCE, useExisting: TieredMenu }, { provide: PARENT_INSTANCE, useExisting: TieredMenu }], queries: [{ propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"], isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true, isSignal: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
1441
- @if (render() || !popup) {
1397
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenu, isStandalone: true, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, providers: [TieredMenuStyle, { provide: TIEREDMENU_INSTANCE, useExisting: TieredMenu }, { provide: PARENT_INSTANCE, useExisting: TieredMenu }], queries: [{ propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"], isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true, isSignal: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
1398
+ @if (render() || !popup()) {
1442
1399
  <div
1443
1400
  #container
1444
- [id]="id"
1445
- [class]="cn(cx('root'), styleClass)"
1446
- [ngStyle]="style"
1401
+ [id]="_id()"
1402
+ [class]="cn(cx('root'), styleClass())"
1403
+ [ngStyle]="style()"
1447
1404
  [pBind]="ptm('root')"
1448
1405
  (click)="onOverlayClick($event)"
1449
- [pMotion]="visible || !popup"
1406
+ [pMotion]="visible() || !popup()"
1450
1407
  [pMotionName]="'p-anchored-overlay'"
1451
1408
  [pMotionAppear]="true"
1452
- [pMotionDisabled]="!popup"
1409
+ [pMotionDisabled]="!popup()"
1453
1410
  [pMotionOptions]="computedMotionOptions()"
1454
1411
  (pMotionOnBeforeEnter)="onOverlayBeforeEnter($event)"
1455
1412
  (pMotionOnAfterEnter)="onOverlayAfterEnter()"
@@ -1459,17 +1416,14 @@ class TieredMenu extends BaseComponent {
1459
1416
  #rootmenu
1460
1417
  [root]="true"
1461
1418
  [visible]="true"
1462
- [items]="processedItems"
1463
- [itemTemplate]="itemTemplate() || _itemTemplate"
1464
- [menuId]="id"
1465
- [tabindex]="!disabled ? tabindex : -1"
1466
- [ariaLabel]="ariaLabel"
1467
- [ariaLabelledBy]="ariaLabelledBy"
1468
- [baseZIndex]="baseZIndex"
1469
- [autoZIndex]="autoZIndex"
1470
- [autoDisplay]="autoDisplay"
1471
- [popup]="popup"
1472
- [focusedItemId]="focused ? focusedItemId : undefined"
1419
+ [items]="processedItems()"
1420
+ [itemTemplate]="itemTemplate() || _itemTemplate()"
1421
+ [menuId]="_id()"
1422
+ [tabindex]="!disabled() ? tabindex() : -1"
1423
+ [ariaLabel]="ariaLabel()"
1424
+ [ariaLabelledBy]="ariaLabelledBy()"
1425
+ [autoDisplay]="autoDisplay()"
1426
+ [focusedItemId]="focused() ? focusedItemId() : undefined"
1473
1427
  [activeItemPath]="activeItemPath()"
1474
1428
  (itemClick)="onItemClick($event)"
1475
1429
  (menuFocus)="onMenuFocus($event)"
@@ -1482,27 +1436,26 @@ class TieredMenu extends BaseComponent {
1482
1436
  ></p-tieredMenuSub>
1483
1437
  </div>
1484
1438
  }
1485
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1439
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1486
1440
  }
1487
1441
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenu, decorators: [{
1488
1442
  type: Component,
1489
1443
  args: [{
1490
1444
  selector: 'p-tieredMenu, p-tieredmenu, p-tiered-menu',
1491
- standalone: true,
1492
1445
  imports: [CommonModule, TieredMenuSub, RouterModule, TooltipModule, SharedModule, BindModule, MotionModule],
1493
1446
  template: `
1494
- @if (render() || !popup) {
1447
+ @if (render() || !popup()) {
1495
1448
  <div
1496
1449
  #container
1497
- [id]="id"
1498
- [class]="cn(cx('root'), styleClass)"
1499
- [ngStyle]="style"
1450
+ [id]="_id()"
1451
+ [class]="cn(cx('root'), styleClass())"
1452
+ [ngStyle]="style()"
1500
1453
  [pBind]="ptm('root')"
1501
1454
  (click)="onOverlayClick($event)"
1502
- [pMotion]="visible || !popup"
1455
+ [pMotion]="visible() || !popup()"
1503
1456
  [pMotionName]="'p-anchored-overlay'"
1504
1457
  [pMotionAppear]="true"
1505
- [pMotionDisabled]="!popup"
1458
+ [pMotionDisabled]="!popup()"
1506
1459
  [pMotionOptions]="computedMotionOptions()"
1507
1460
  (pMotionOnBeforeEnter)="onOverlayBeforeEnter($event)"
1508
1461
  (pMotionOnAfterEnter)="onOverlayAfterEnter()"
@@ -1512,17 +1465,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1512
1465
  #rootmenu
1513
1466
  [root]="true"
1514
1467
  [visible]="true"
1515
- [items]="processedItems"
1516
- [itemTemplate]="itemTemplate() || _itemTemplate"
1517
- [menuId]="id"
1518
- [tabindex]="!disabled ? tabindex : -1"
1519
- [ariaLabel]="ariaLabel"
1520
- [ariaLabelledBy]="ariaLabelledBy"
1521
- [baseZIndex]="baseZIndex"
1522
- [autoZIndex]="autoZIndex"
1523
- [autoDisplay]="autoDisplay"
1524
- [popup]="popup"
1525
- [focusedItemId]="focused ? focusedItemId : undefined"
1468
+ [items]="processedItems()"
1469
+ [itemTemplate]="itemTemplate() || _itemTemplate()"
1470
+ [menuId]="_id()"
1471
+ [tabindex]="!disabled() ? tabindex() : -1"
1472
+ [ariaLabel]="ariaLabel()"
1473
+ [ariaLabelledBy]="ariaLabelledBy()"
1474
+ [autoDisplay]="autoDisplay()"
1475
+ [focusedItemId]="focused() ? focusedItemId() : undefined"
1526
1476
  [activeItemPath]="activeItemPath()"
1527
1477
  (itemClick)="onItemClick($event)"
1528
1478
  (menuFocus)="onMenuFocus($event)"
@@ -1541,43 +1491,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1541
1491
  providers: [TieredMenuStyle, { provide: TIEREDMENU_INSTANCE, useExisting: TieredMenu }, { provide: PARENT_INSTANCE, useExisting: TieredMenu }],
1542
1492
  hostDirectives: [Bind]
1543
1493
  }]
1544
- }], ctorParameters: () => [], propDecorators: { model: [{
1545
- type: Input
1546
- }], popup: [{
1547
- type: Input,
1548
- args: [{ transform: booleanAttribute }]
1549
- }], style: [{
1550
- type: Input
1551
- }], styleClass: [{
1552
- type: Input
1553
- }], breakpoint: [{
1554
- type: Input
1555
- }], autoZIndex: [{
1556
- type: Input,
1557
- args: [{ transform: booleanAttribute }]
1558
- }], baseZIndex: [{
1559
- type: Input,
1560
- args: [{ transform: numberAttribute }]
1561
- }], autoDisplay: [{
1562
- type: Input,
1563
- args: [{ transform: booleanAttribute }]
1564
- }], showTransitionOptions: [{
1565
- type: Input
1566
- }], hideTransitionOptions: [{
1567
- type: Input
1568
- }], id: [{
1569
- type: Input
1570
- }], ariaLabel: [{
1571
- type: Input
1572
- }], ariaLabelledBy: [{
1573
- type: Input
1574
- }], disabled: [{
1575
- type: Input,
1576
- args: [{ transform: booleanAttribute }]
1577
- }], tabindex: [{
1578
- type: Input,
1579
- args: [{ transform: numberAttribute }]
1580
- }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], rootmenu: [{ type: i0.ViewChild, args: ['rootmenu', { isSignal: true }] }], containerViewChild: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], submenuIconTemplate: [{ type: i0.ContentChild, args: ['submenuicon', { ...{ descendants: false }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
1494
+ }], ctorParameters: () => [], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], popup: [{ type: i0.Input, args: [{ isSignal: true, alias: "popup", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], autoDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDisplay", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], rootmenu: [{ type: i0.ViewChild, args: ['rootmenu', { isSignal: true }] }], containerViewChild: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], submenuIconTemplate: [{ type: i0.ContentChild, args: ['submenuicon', { ...{ descendants: false }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
1581
1495
  class TieredMenuModule {
1582
1496
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1583
1497
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuModule, imports: [TieredMenu, SharedModule], exports: [TieredMenu, SharedModule] });