primeng 19.0.5 → 19.0.7

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 (364) hide show
  1. package/badge/badge.d.ts +2 -2
  2. package/base/style/basestyle.d.ts +4 -6
  3. package/config/primeng.d.ts +3 -0
  4. package/dataview/dataview.interface.d.ts +9 -19
  5. package/datepicker/datepicker.d.ts +1 -0
  6. package/datepicker/style/datepickerstyle.d.ts +1 -0
  7. package/dragdrop/dragdrop.d.ts +3 -2
  8. package/dynamicdialog/dynamicdialog-config.d.ts +1 -1
  9. package/dynamicdialog/dynamicdialog.d.ts +2 -1
  10. package/fesm2022/primeng-accordion.mjs +347 -560
  11. package/fesm2022/primeng-accordion.mjs.map +1 -1
  12. package/fesm2022/primeng-animateonscroll.mjs +37 -40
  13. package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
  14. package/fesm2022/primeng-api.mjs +79 -89
  15. package/fesm2022/primeng-api.mjs.map +1 -1
  16. package/fesm2022/primeng-autocomplete.mjs +507 -788
  17. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  18. package/fesm2022/primeng-autofocus.mjs +26 -27
  19. package/fesm2022/primeng-autofocus.mjs.map +1 -1
  20. package/fesm2022/primeng-avatar.mjs +72 -120
  21. package/fesm2022/primeng-avatar.mjs.map +1 -1
  22. package/fesm2022/primeng-avatargroup.mjs +44 -54
  23. package/fesm2022/primeng-avatargroup.mjs.map +1 -1
  24. package/fesm2022/primeng-badge.mjs +62 -71
  25. package/fesm2022/primeng-badge.mjs.map +1 -1
  26. package/fesm2022/primeng-base.mjs +14 -8
  27. package/fesm2022/primeng-base.mjs.map +1 -1
  28. package/fesm2022/primeng-basecomponent.mjs +17 -17
  29. package/fesm2022/primeng-basecomponent.mjs.map +1 -1
  30. package/fesm2022/primeng-blockui.mjs +66 -87
  31. package/fesm2022/primeng-blockui.mjs.map +1 -1
  32. package/fesm2022/primeng-breadcrumb.mjs +175 -386
  33. package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
  34. package/fesm2022/primeng-button.mjs +223 -328
  35. package/fesm2022/primeng-button.mjs.map +1 -1
  36. package/fesm2022/primeng-buttongroup.mjs +36 -40
  37. package/fesm2022/primeng-buttongroup.mjs.map +1 -1
  38. package/fesm2022/primeng-calendar.mjs +727 -1127
  39. package/fesm2022/primeng-calendar.mjs.map +1 -1
  40. package/fesm2022/primeng-card.mjs +89 -193
  41. package/fesm2022/primeng-card.mjs.map +1 -1
  42. package/fesm2022/primeng-carousel.mjs +227 -410
  43. package/fesm2022/primeng-carousel.mjs.map +1 -1
  44. package/fesm2022/primeng-cascadeselect.mjs +393 -577
  45. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  46. package/fesm2022/primeng-chart.mjs +57 -63
  47. package/fesm2022/primeng-chart.mjs.map +1 -1
  48. package/fesm2022/primeng-checkbox.mjs +133 -185
  49. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  50. package/fesm2022/primeng-chip.mjs +92 -188
  51. package/fesm2022/primeng-chip.mjs.map +1 -1
  52. package/fesm2022/primeng-colorpicker.mjs +142 -167
  53. package/fesm2022/primeng-colorpicker.mjs.map +1 -1
  54. package/fesm2022/primeng-config.mjs +18 -16
  55. package/fesm2022/primeng-config.mjs.map +1 -1
  56. package/fesm2022/primeng-confirmdialog.mjs +220 -347
  57. package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
  58. package/fesm2022/primeng-confirmpopup.mjs +161 -251
  59. package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
  60. package/fesm2022/primeng-contextmenu.mjs +336 -450
  61. package/fesm2022/primeng-contextmenu.mjs.map +1 -1
  62. package/fesm2022/primeng-dataview.mjs +249 -352
  63. package/fesm2022/primeng-dataview.mjs.map +1 -1
  64. package/fesm2022/primeng-datepicker.mjs +751 -1144
  65. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  66. package/fesm2022/primeng-defer.mjs +25 -31
  67. package/fesm2022/primeng-defer.mjs.map +1 -1
  68. package/fesm2022/primeng-dialog.mjs +277 -478
  69. package/fesm2022/primeng-dialog.mjs.map +1 -1
  70. package/fesm2022/primeng-divider.mjs +68 -77
  71. package/fesm2022/primeng-divider.mjs.map +1 -1
  72. package/fesm2022/primeng-dock.mjs +138 -167
  73. package/fesm2022/primeng-dock.mjs.map +1 -1
  74. package/fesm2022/primeng-dragdrop.mjs +85 -79
  75. package/fesm2022/primeng-dragdrop.mjs.map +1 -1
  76. package/fesm2022/primeng-drawer.mjs +172 -269
  77. package/fesm2022/primeng-drawer.mjs.map +1 -1
  78. package/fesm2022/primeng-dropdown.mjs +531 -869
  79. package/fesm2022/primeng-dropdown.mjs.map +1 -1
  80. package/fesm2022/primeng-dynamicdialog.mjs +163 -304
  81. package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
  82. package/fesm2022/primeng-editor.mjs +118 -156
  83. package/fesm2022/primeng-editor.mjs.map +1 -1
  84. package/fesm2022/primeng-fieldset.mjs +153 -247
  85. package/fesm2022/primeng-fieldset.mjs.map +1 -1
  86. package/fesm2022/primeng-fileupload.mjs +370 -690
  87. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  88. package/fesm2022/primeng-floatlabel.mjs +38 -46
  89. package/fesm2022/primeng-floatlabel.mjs.map +1 -1
  90. package/fesm2022/primeng-fluid.mjs +33 -41
  91. package/fesm2022/primeng-fluid.mjs.map +1 -1
  92. package/fesm2022/primeng-focustrap.mjs +23 -24
  93. package/fesm2022/primeng-focustrap.mjs.map +1 -1
  94. package/fesm2022/primeng-galleria.mjs +529 -761
  95. package/fesm2022/primeng-galleria.mjs.map +1 -1
  96. package/fesm2022/primeng-iconfield.mjs +42 -51
  97. package/fesm2022/primeng-iconfield.mjs.map +1 -1
  98. package/fesm2022/primeng-icons-angledoubledown.mjs +19 -19
  99. package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
  100. package/fesm2022/primeng-icons-angledoubleleft.mjs +19 -19
  101. package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
  102. package/fesm2022/primeng-icons-angledoubleright.mjs +19 -19
  103. package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
  104. package/fesm2022/primeng-icons-angledoubleup.mjs +19 -19
  105. package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
  106. package/fesm2022/primeng-icons-angledown.mjs +17 -19
  107. package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
  108. package/fesm2022/primeng-icons-angleleft.mjs +17 -19
  109. package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
  110. package/fesm2022/primeng-icons-angleright.mjs +17 -19
  111. package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
  112. package/fesm2022/primeng-icons-angleup.mjs +17 -19
  113. package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
  114. package/fesm2022/primeng-icons-arrowdown.mjs +26 -26
  115. package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
  116. package/fesm2022/primeng-icons-arrowdownleft.mjs +17 -19
  117. package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
  118. package/fesm2022/primeng-icons-arrowdownright.mjs +17 -19
  119. package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
  120. package/fesm2022/primeng-icons-arrowleft.mjs +26 -26
  121. package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
  122. package/fesm2022/primeng-icons-arrowright.mjs +19 -19
  123. package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
  124. package/fesm2022/primeng-icons-arrowup.mjs +26 -26
  125. package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
  126. package/fesm2022/primeng-icons-ban.mjs +24 -26
  127. package/fesm2022/primeng-icons-ban.mjs.map +1 -1
  128. package/fesm2022/primeng-icons-bars.mjs +19 -19
  129. package/fesm2022/primeng-icons-bars.mjs.map +1 -1
  130. package/fesm2022/primeng-icons-baseicon.mjs +28 -33
  131. package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
  132. package/fesm2022/primeng-icons-blank.mjs +14 -16
  133. package/fesm2022/primeng-icons-blank.mjs.map +1 -1
  134. package/fesm2022/primeng-icons-calendar.mjs +17 -19
  135. package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
  136. package/fesm2022/primeng-icons-caretleft.mjs +17 -19
  137. package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
  138. package/fesm2022/primeng-icons-caretright.mjs +17 -19
  139. package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
  140. package/fesm2022/primeng-icons-check.mjs +17 -19
  141. package/fesm2022/primeng-icons-check.mjs.map +1 -1
  142. package/fesm2022/primeng-icons-chevrondown.mjs +17 -19
  143. package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
  144. package/fesm2022/primeng-icons-chevronleft.mjs +17 -19
  145. package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
  146. package/fesm2022/primeng-icons-chevronright.mjs +17 -19
  147. package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
  148. package/fesm2022/primeng-icons-chevronup.mjs +17 -19
  149. package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
  150. package/fesm2022/primeng-icons-exclamationtriangle.mjs +32 -26
  151. package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
  152. package/fesm2022/primeng-icons-eye.mjs +19 -19
  153. package/fesm2022/primeng-icons-eye.mjs.map +1 -1
  154. package/fesm2022/primeng-icons-eyeslash.mjs +26 -26
  155. package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
  156. package/fesm2022/primeng-icons-filter.mjs +24 -26
  157. package/fesm2022/primeng-icons-filter.mjs.map +1 -1
  158. package/fesm2022/primeng-icons-filterslash.mjs +26 -26
  159. package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
  160. package/fesm2022/primeng-icons-home.mjs +26 -26
  161. package/fesm2022/primeng-icons-home.mjs.map +1 -1
  162. package/fesm2022/primeng-icons-infocircle.mjs +26 -26
  163. package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
  164. package/fesm2022/primeng-icons-minus.mjs +17 -19
  165. package/fesm2022/primeng-icons-minus.mjs.map +1 -1
  166. package/fesm2022/primeng-icons-pencil.mjs +24 -26
  167. package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
  168. package/fesm2022/primeng-icons-plus.mjs +24 -26
  169. package/fesm2022/primeng-icons-plus.mjs.map +1 -1
  170. package/fesm2022/primeng-icons-refresh.mjs +26 -26
  171. package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
  172. package/fesm2022/primeng-icons-search.mjs +26 -26
  173. package/fesm2022/primeng-icons-search.mjs.map +1 -1
  174. package/fesm2022/primeng-icons-searchminus.mjs +26 -26
  175. package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
  176. package/fesm2022/primeng-icons-searchplus.mjs +26 -26
  177. package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
  178. package/fesm2022/primeng-icons-sortalt.mjs +30 -26
  179. package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
  180. package/fesm2022/primeng-icons-sortamountdown.mjs +24 -26
  181. package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
  182. package/fesm2022/primeng-icons-sortamountupalt.mjs +24 -26
  183. package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
  184. package/fesm2022/primeng-icons-spinner.mjs +24 -26
  185. package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
  186. package/fesm2022/primeng-icons-star.mjs +24 -26
  187. package/fesm2022/primeng-icons-star.mjs.map +1 -1
  188. package/fesm2022/primeng-icons-starfill.mjs +24 -26
  189. package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
  190. package/fesm2022/primeng-icons-thlarge.mjs +26 -26
  191. package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
  192. package/fesm2022/primeng-icons-times.mjs +17 -19
  193. package/fesm2022/primeng-icons-times.mjs.map +1 -1
  194. package/fesm2022/primeng-icons-timescircle.mjs +26 -26
  195. package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
  196. package/fesm2022/primeng-icons-trash.mjs +26 -26
  197. package/fesm2022/primeng-icons-trash.mjs.map +1 -1
  198. package/fesm2022/primeng-icons-undo.mjs +26 -26
  199. package/fesm2022/primeng-icons-undo.mjs.map +1 -1
  200. package/fesm2022/primeng-icons-upload.mjs +26 -26
  201. package/fesm2022/primeng-icons-upload.mjs.map +1 -1
  202. package/fesm2022/primeng-icons-windowmaximize.mjs +26 -26
  203. package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
  204. package/fesm2022/primeng-icons-windowminimize.mjs +26 -26
  205. package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
  206. package/fesm2022/primeng-iftalabel.mjs +32 -38
  207. package/fesm2022/primeng-iftalabel.mjs.map +1 -1
  208. package/fesm2022/primeng-image.mjs +189 -370
  209. package/fesm2022/primeng-image.mjs.map +1 -1
  210. package/fesm2022/primeng-imagecompare.mjs +57 -86
  211. package/fesm2022/primeng-imagecompare.mjs.map +1 -1
  212. package/fesm2022/primeng-inplace.mjs +108 -206
  213. package/fesm2022/primeng-inplace.mjs.map +1 -1
  214. package/fesm2022/primeng-inputgroup.mjs +40 -50
  215. package/fesm2022/primeng-inputgroup.mjs.map +1 -1
  216. package/fesm2022/primeng-inputgroupaddon.mjs +40 -51
  217. package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
  218. package/fesm2022/primeng-inputicon.mjs +39 -48
  219. package/fesm2022/primeng-inputicon.mjs.map +1 -1
  220. package/fesm2022/primeng-inputmask.mjs +157 -182
  221. package/fesm2022/primeng-inputmask.mjs.map +1 -1
  222. package/fesm2022/primeng-inputnumber.mjs +303 -420
  223. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  224. package/fesm2022/primeng-inputotp.mjs +99 -123
  225. package/fesm2022/primeng-inputotp.mjs.map +1 -1
  226. package/fesm2022/primeng-inputswitch.mjs +87 -92
  227. package/fesm2022/primeng-inputswitch.mjs.map +1 -1
  228. package/fesm2022/primeng-inputtext.mjs +56 -57
  229. package/fesm2022/primeng-inputtext.mjs.map +1 -1
  230. package/fesm2022/primeng-inputtextarea.mjs +51 -56
  231. package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
  232. package/fesm2022/primeng-keyfilter.mjs +44 -47
  233. package/fesm2022/primeng-keyfilter.mjs.map +1 -1
  234. package/fesm2022/primeng-knob.mjs +105 -111
  235. package/fesm2022/primeng-knob.mjs.map +1 -1
  236. package/fesm2022/primeng-listbox.mjs +511 -791
  237. package/fesm2022/primeng-listbox.mjs.map +1 -1
  238. package/fesm2022/primeng-megamenu.mjs +377 -611
  239. package/fesm2022/primeng-megamenu.mjs.map +1 -1
  240. package/fesm2022/primeng-menu.mjs +291 -473
  241. package/fesm2022/primeng-menu.mjs.map +1 -1
  242. package/fesm2022/primeng-menubar.mjs +357 -549
  243. package/fesm2022/primeng-menubar.mjs.map +1 -1
  244. package/fesm2022/primeng-message.mjs +160 -244
  245. package/fesm2022/primeng-message.mjs.map +1 -1
  246. package/fesm2022/primeng-messages.mjs +162 -278
  247. package/fesm2022/primeng-messages.mjs.map +1 -1
  248. package/fesm2022/primeng-metergroup.mjs +135 -264
  249. package/fesm2022/primeng-metergroup.mjs.map +1 -1
  250. package/fesm2022/primeng-multiselect.mjs +660 -1135
  251. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  252. package/fesm2022/primeng-orderlist.mjs +228 -330
  253. package/fesm2022/primeng-orderlist.mjs.map +1 -1
  254. package/fesm2022/primeng-organizationchart.mjs +161 -311
  255. package/fesm2022/primeng-organizationchart.mjs.map +1 -1
  256. package/fesm2022/primeng-overlay.mjs +135 -147
  257. package/fesm2022/primeng-overlay.mjs.map +1 -1
  258. package/fesm2022/primeng-overlaybadge.mjs +50 -58
  259. package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
  260. package/fesm2022/primeng-overlaypanel.mjs +134 -154
  261. package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
  262. package/fesm2022/primeng-paginator.mjs +212 -447
  263. package/fesm2022/primeng-paginator.mjs.map +1 -1
  264. package/fesm2022/primeng-panel.mjs +219 -317
  265. package/fesm2022/primeng-panel.mjs.map +1 -1
  266. package/fesm2022/primeng-panelmenu.mjs +439 -783
  267. package/fesm2022/primeng-panelmenu.mjs.map +1 -1
  268. package/fesm2022/primeng-password.mjs +271 -410
  269. package/fesm2022/primeng-password.mjs.map +1 -1
  270. package/fesm2022/primeng-picklist.mjs +564 -856
  271. package/fesm2022/primeng-picklist.mjs.map +1 -1
  272. package/fesm2022/primeng-popover.mjs +129 -148
  273. package/fesm2022/primeng-popover.mjs.map +1 -1
  274. package/fesm2022/primeng-progressbar.mjs +81 -121
  275. package/fesm2022/primeng-progressbar.mjs.map +1 -1
  276. package/fesm2022/primeng-progressspinner.mjs +48 -58
  277. package/fesm2022/primeng-progressspinner.mjs.map +1 -1
  278. package/fesm2022/primeng-radiobutton.mjs +117 -108
  279. package/fesm2022/primeng-radiobutton.mjs.map +1 -1
  280. package/fesm2022/primeng-rating.mjs +134 -218
  281. package/fesm2022/primeng-rating.mjs.map +1 -1
  282. package/fesm2022/primeng-ripple.mjs +28 -29
  283. package/fesm2022/primeng-ripple.mjs.map +1 -1
  284. package/fesm2022/primeng-scroller.mjs +167 -295
  285. package/fesm2022/primeng-scroller.mjs.map +1 -1
  286. package/fesm2022/primeng-scrollpanel.mjs +96 -116
  287. package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
  288. package/fesm2022/primeng-scrolltop.mjs +106 -150
  289. package/fesm2022/primeng-scrolltop.mjs.map +1 -1
  290. package/fesm2022/primeng-select.mjs +581 -957
  291. package/fesm2022/primeng-select.mjs.map +1 -1
  292. package/fesm2022/primeng-selectbutton.mjs +106 -133
  293. package/fesm2022/primeng-selectbutton.mjs.map +1 -1
  294. package/fesm2022/primeng-sidebar.mjs +151 -239
  295. package/fesm2022/primeng-sidebar.mjs.map +1 -1
  296. package/fesm2022/primeng-skeleton.mjs +46 -54
  297. package/fesm2022/primeng-skeleton.mjs.map +1 -1
  298. package/fesm2022/primeng-slider.mjs +186 -182
  299. package/fesm2022/primeng-slider.mjs.map +1 -1
  300. package/fesm2022/primeng-speeddial.mjs +192 -254
  301. package/fesm2022/primeng-speeddial.mjs.map +1 -1
  302. package/fesm2022/primeng-splitbutton.mjs +211 -231
  303. package/fesm2022/primeng-splitbutton.mjs.map +1 -1
  304. package/fesm2022/primeng-splitter.mjs +126 -159
  305. package/fesm2022/primeng-splitter.mjs.map +1 -1
  306. package/fesm2022/primeng-stepper.mjs +235 -341
  307. package/fesm2022/primeng-stepper.mjs.map +1 -1
  308. package/fesm2022/primeng-steps.mjs +117 -170
  309. package/fesm2022/primeng-steps.mjs.map +1 -1
  310. package/fesm2022/primeng-styleclass.mjs +50 -53
  311. package/fesm2022/primeng-styleclass.mjs.map +1 -1
  312. package/fesm2022/primeng-table.mjs +1869 -2628
  313. package/fesm2022/primeng-table.mjs.map +1 -1
  314. package/fesm2022/primeng-tabmenu.mjs +173 -319
  315. package/fesm2022/primeng-tabmenu.mjs.map +1 -1
  316. package/fesm2022/primeng-tabs.mjs +193 -308
  317. package/fesm2022/primeng-tabs.mjs.map +1 -1
  318. package/fesm2022/primeng-tabview.mjs +263 -435
  319. package/fesm2022/primeng-tabview.mjs.map +1 -1
  320. package/fesm2022/primeng-tag.mjs +63 -110
  321. package/fesm2022/primeng-tag.mjs.map +1 -1
  322. package/fesm2022/primeng-terminal.mjs +60 -104
  323. package/fesm2022/primeng-terminal.mjs.map +1 -1
  324. package/fesm2022/primeng-textarea.mjs +59 -64
  325. package/fesm2022/primeng-textarea.mjs.map +1 -1
  326. package/fesm2022/primeng-tieredmenu.mjs +338 -457
  327. package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
  328. package/fesm2022/primeng-timeline.mjs +90 -156
  329. package/fesm2022/primeng-timeline.mjs.map +1 -1
  330. package/fesm2022/primeng-toast.mjs +260 -365
  331. package/fesm2022/primeng-toast.mjs.map +1 -1
  332. package/fesm2022/primeng-togglebutton.mjs +117 -150
  333. package/fesm2022/primeng-togglebutton.mjs.map +1 -1
  334. package/fesm2022/primeng-toggleswitch.mjs +98 -121
  335. package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
  336. package/fesm2022/primeng-toolbar.mjs +62 -121
  337. package/fesm2022/primeng-toolbar.mjs.map +1 -1
  338. package/fesm2022/primeng-tooltip.mjs +74 -75
  339. package/fesm2022/primeng-tooltip.mjs.map +1 -1
  340. package/fesm2022/primeng-tree.mjs +455 -729
  341. package/fesm2022/primeng-tree.mjs.map +1 -1
  342. package/fesm2022/primeng-treeselect.mjs +344 -533
  343. package/fesm2022/primeng-treeselect.mjs.map +1 -1
  344. package/fesm2022/primeng-treetable.mjs +1027 -1584
  345. package/fesm2022/primeng-treetable.mjs.map +1 -1
  346. package/fesm2022/primeng-usestyle.mjs +6 -6
  347. package/fesm2022/primeng-usestyle.mjs.map +1 -1
  348. package/fesm2022/primeng-utils.mjs +3 -1
  349. package/fesm2022/primeng-utils.mjs.map +1 -1
  350. package/listbox/listbox.d.ts +17 -3
  351. package/message/message.d.ts +1 -0
  352. package/overlaybadge/overlaybadge.d.ts +1 -1
  353. package/package.json +189 -190
  354. package/password/password.d.ts +8 -1
  355. package/password/style/passwordstyle.d.ts +1 -0
  356. package/picklist/picklist.d.ts +11 -1
  357. package/stepper/stepper.d.ts +2 -1
  358. package/table/table.d.ts +1 -1
  359. package/table/table.interface.d.ts +2 -2
  360. package/tabs/tablist.d.ts +1 -1
  361. package/toast/toast.d.ts +1 -1
  362. package/tree/tree.d.ts +10 -2
  363. package/tree/tree.interface.d.ts +8 -0
  364. package/utils/zindexutils.d.ts +2 -0
@@ -2,7 +2,7 @@ import { trigger, transition, style, animate } from '@angular/animations';
2
2
  import * as i2 from '@angular/common';
3
3
  import { isPlatformBrowser, CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, PLATFORM_ID, Pipe, Inject, EventEmitter, forwardRef, Component, ViewEncapsulation, Input, Output, computed, signal, inject, booleanAttribute, numberAttribute, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';
5
+ import { Injectable, PLATFORM_ID, Inject, Pipe, EventEmitter, forwardRef, Output, Input, ViewEncapsulation, Component, computed, signal, inject, numberAttribute, booleanAttribute, ContentChildren, ContentChild, ViewChild, ChangeDetectionStrategy, NgModule } from '@angular/core';
6
6
  import * as i3 from '@angular/router';
7
7
  import { RouterModule } from '@angular/router';
8
8
  import { uuid, focus, relativePosition, absolutePosition, appendChild, isTouchDevice, find, findSingle } from '@primeuix/utils';
@@ -132,12 +132,12 @@ class MenuStyle extends BaseStyle {
132
132
  name = 'menu';
133
133
  theme = theme;
134
134
  classes = classes;
135
- static ɵfac = /*@__PURE__*/ (() => { let ɵMenuStyle_BaseFactory; return function MenuStyle_Factory(__ngFactoryType__) { return (ɵMenuStyle_BaseFactory || (ɵMenuStyle_BaseFactory = i0.ɵɵgetInheritedFactory(MenuStyle)))(__ngFactoryType__ || MenuStyle); }; })();
136
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MenuStyle, factory: MenuStyle.ɵfac });
135
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
136
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuStyle });
137
137
  }
138
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuStyle, [{
139
- type: Injectable
140
- }], null, null); })();
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuStyle, decorators: [{
139
+ type: Injectable
140
+ }] });
141
141
  /**
142
142
  *
143
143
  * Menu is a navigation / command component that supports dynamic and static positioning.
@@ -195,301 +195,6 @@ var MenuClasses;
195
195
  MenuClasses["itemLabel"] = "p-menu-item-label";
196
196
  })(MenuClasses || (MenuClasses = {}));
197
197
 
198
- const _c0 = ["pMenuItemContent", ""];
199
- const _c1 = a0 => ({ "p-disabled": a0 });
200
- const _c2 = a0 => ({ $implicit: a0 });
201
- const _c3 = () => ({ exact: false });
202
- function MenuItemContent_ng_container_1_a_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
203
- i0.ɵɵelementContainer(0);
204
- } }
205
- function MenuItemContent_ng_container_1_a_1_Template(rf, ctx) { if (rf & 1) {
206
- i0.ɵɵelementStart(0, "a", 6);
207
- i0.ɵɵtemplate(1, MenuItemContent_ng_container_1_a_1_ng_container_1_Template, 1, 0, "ng-container", 7);
208
- i0.ɵɵelementEnd();
209
- } if (rf & 2) {
210
- const ctx_r1 = i0.ɵɵnextContext(2);
211
- const itemContent_r3 = i0.ɵɵreference(4);
212
- i0.ɵɵproperty("target", ctx_r1.item.target)("ngClass", i0.ɵɵpureFunction1(9, _c1, ctx_r1.item.disabled));
213
- i0.ɵɵattribute("title", ctx_r1.item.title)("href", ctx_r1.item.url || null, i0.ɵɵsanitizeUrl)("data-automationid", ctx_r1.item.automationId)("tabindex", -1)("data-pc-section", "action");
214
- i0.ɵɵadvance();
215
- i0.ɵɵproperty("ngTemplateOutlet", itemContent_r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(11, _c2, ctx_r1.item));
216
- } }
217
- function MenuItemContent_ng_container_1_a_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
218
- i0.ɵɵelementContainer(0);
219
- } }
220
- function MenuItemContent_ng_container_1_a_2_Template(rf, ctx) { if (rf & 1) {
221
- i0.ɵɵelementStart(0, "a", 8);
222
- i0.ɵɵtemplate(1, MenuItemContent_ng_container_1_a_2_ng_container_1_Template, 1, 0, "ng-container", 7);
223
- i0.ɵɵelementEnd();
224
- } if (rf & 2) {
225
- const ctx_r1 = i0.ɵɵnextContext(2);
226
- const itemContent_r3 = i0.ɵɵreference(4);
227
- i0.ɵɵproperty("routerLink", ctx_r1.item.routerLink)("queryParams", ctx_r1.item.queryParams)("routerLinkActiveOptions", ctx_r1.item.routerLinkActiveOptions || i0.ɵɵpureFunction0(17, _c3))("target", ctx_r1.item.target)("ngClass", i0.ɵɵpureFunction1(18, _c1, ctx_r1.item.disabled))("fragment", ctx_r1.item.fragment)("queryParamsHandling", ctx_r1.item.queryParamsHandling)("preserveFragment", ctx_r1.item.preserveFragment)("skipLocationChange", ctx_r1.item.skipLocationChange)("replaceUrl", ctx_r1.item.replaceUrl)("state", ctx_r1.item.state);
228
- i0.ɵɵattribute("data-automationid", ctx_r1.item.automationId)("tabindex", -1)("data-pc-section", "action")("title", ctx_r1.item.title);
229
- i0.ɵɵadvance();
230
- i0.ɵɵproperty("ngTemplateOutlet", itemContent_r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(20, _c2, ctx_r1.item));
231
- } }
232
- function MenuItemContent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
233
- i0.ɵɵelementContainerStart(0);
234
- i0.ɵɵtemplate(1, MenuItemContent_ng_container_1_a_1_Template, 2, 13, "a", 4)(2, MenuItemContent_ng_container_1_a_2_Template, 2, 22, "a", 5);
235
- i0.ɵɵelementContainerEnd();
236
- } if (rf & 2) {
237
- const ctx_r1 = i0.ɵɵnextContext();
238
- i0.ɵɵadvance();
239
- i0.ɵɵproperty("ngIf", !(ctx_r1.item == null ? null : ctx_r1.item.routerLink));
240
- i0.ɵɵadvance();
241
- i0.ɵɵproperty("ngIf", ctx_r1.item == null ? null : ctx_r1.item.routerLink);
242
- } }
243
- function MenuItemContent_ng_container_2_1_ng_template_0_Template(rf, ctx) { }
244
- function MenuItemContent_ng_container_2_1_Template(rf, ctx) { if (rf & 1) {
245
- i0.ɵɵtemplate(0, MenuItemContent_ng_container_2_1_ng_template_0_Template, 0, 0, "ng-template");
246
- } }
247
- function MenuItemContent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
248
- i0.ɵɵelementContainerStart(0);
249
- i0.ɵɵtemplate(1, MenuItemContent_ng_container_2_1_Template, 1, 0, null, 7);
250
- i0.ɵɵelementContainerEnd();
251
- } if (rf & 2) {
252
- const ctx_r1 = i0.ɵɵnextContext();
253
- i0.ɵɵadvance();
254
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, ctx_r1.item));
255
- } }
256
- function MenuItemContent_ng_template_3_span_0_Template(rf, ctx) { if (rf & 1) {
257
- i0.ɵɵelement(0, "span", 12);
258
- } if (rf & 2) {
259
- const ctx_r1 = i0.ɵɵnextContext(2);
260
- i0.ɵɵclassMap(ctx_r1.item.iconClass);
261
- i0.ɵɵproperty("ngClass", ctx_r1.item.icon)("ngStyle", ctx_r1.item.iconStyle);
262
- } }
263
- function MenuItemContent_ng_template_3_span_1_Template(rf, ctx) { if (rf & 1) {
264
- i0.ɵɵelementStart(0, "span", 13);
265
- i0.ɵɵtext(1);
266
- i0.ɵɵelementEnd();
267
- } if (rf & 2) {
268
- const ctx_r1 = i0.ɵɵnextContext(2);
269
- i0.ɵɵadvance();
270
- i0.ɵɵtextInterpolate(ctx_r1.item.label);
271
- } }
272
- function MenuItemContent_ng_template_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
273
- i0.ɵɵelement(0, "span", 14);
274
- i0.ɵɵpipe(1, "safeHtml");
275
- } if (rf & 2) {
276
- const ctx_r1 = i0.ɵɵnextContext(2);
277
- i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(1, 1, ctx_r1.item.label), i0.ɵɵsanitizeHtml);
278
- } }
279
- function MenuItemContent_ng_template_3_p_badge_4_Template(rf, ctx) { if (rf & 1) {
280
- i0.ɵɵelement(0, "p-badge", 15);
281
- } if (rf & 2) {
282
- const ctx_r1 = i0.ɵɵnextContext(2);
283
- i0.ɵɵproperty("styleClass", ctx_r1.item.badgeStyleClass)("value", ctx_r1.item.badge);
284
- } }
285
- function MenuItemContent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
286
- i0.ɵɵtemplate(0, MenuItemContent_ng_template_3_span_0_Template, 1, 4, "span", 9)(1, MenuItemContent_ng_template_3_span_1_Template, 2, 1, "span", 10)(2, MenuItemContent_ng_template_3_ng_template_2_Template, 2, 3, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(4, MenuItemContent_ng_template_3_p_badge_4_Template, 1, 2, "p-badge", 11);
287
- } if (rf & 2) {
288
- const htmlLabel_r4 = i0.ɵɵreference(3);
289
- const ctx_r1 = i0.ɵɵnextContext();
290
- i0.ɵɵproperty("ngIf", ctx_r1.item.icon);
291
- i0.ɵɵadvance();
292
- i0.ɵɵproperty("ngIf", ctx_r1.item.escape !== false)("ngIfElse", htmlLabel_r4);
293
- i0.ɵɵadvance(3);
294
- i0.ɵɵproperty("ngIf", ctx_r1.item.badge);
295
- } }
296
- const _c4 = ["start"];
297
- const _c5 = ["end"];
298
- const _c6 = ["header"];
299
- const _c7 = ["item"];
300
- const _c8 = ["submenuheader"];
301
- const _c9 = ["list"];
302
- const _c10 = ["container"];
303
- const _c11 = a0 => ({ "p-menu p-component": true, "p-menu-overlay": a0 });
304
- const _c12 = (a0, a1) => ({ showTransitionParams: a0, hideTransitionParams: a1 });
305
- const _c13 = a0 => ({ value: "visible", params: a0 });
306
- const _c14 = (a0, a1) => ({ "p-hidden": a0, flex: a1 });
307
- const _c15 = (a0, a1, a2) => ({ "p-hidden": a0, "p-focus": a1, "p-disabled": a2 });
308
- const _c16 = (a0, a1) => ({ "p-focus": a0, "p-disabled": a1 });
309
- function Menu_div_0_div_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
310
- i0.ɵɵelementContainer(0);
311
- } }
312
- function Menu_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
313
- i0.ɵɵelementStart(0, "div", 9);
314
- i0.ɵɵtemplate(1, Menu_div_0_div_2_ng_container_1_Template, 1, 0, "ng-container", 10);
315
- i0.ɵɵelementEnd();
316
- } if (rf & 2) {
317
- let tmp_5_0;
318
- const ctx_r1 = i0.ɵɵnextContext(2);
319
- i0.ɵɵattribute("data-pc-section", "start");
320
- i0.ɵɵadvance();
321
- i0.ɵɵproperty("ngTemplateOutlet", (tmp_5_0 = ctx_r1.startTemplate) !== null && tmp_5_0 !== undefined ? tmp_5_0 : ctx_r1._startTemplate);
322
- } }
323
- function Menu_div_0_5_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
324
- i0.ɵɵelement(0, "li", 14);
325
- } }
326
- function Menu_div_0_5_ng_template_0_li_1_ng_container_1_span_1_Template(rf, ctx) { if (rf & 1) {
327
- i0.ɵɵelementStart(0, "span");
328
- i0.ɵɵtext(1);
329
- i0.ɵɵelementEnd();
330
- } if (rf & 2) {
331
- const submenu_r3 = i0.ɵɵnextContext(3).$implicit;
332
- i0.ɵɵadvance();
333
- i0.ɵɵtextInterpolate(submenu_r3.label);
334
- } }
335
- function Menu_div_0_5_ng_template_0_li_1_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
336
- i0.ɵɵelement(0, "span", 18);
337
- i0.ɵɵpipe(1, "safeHtml");
338
- } if (rf & 2) {
339
- const submenu_r3 = i0.ɵɵnextContext(3).$implicit;
340
- i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(1, 1, submenu_r3.label), i0.ɵɵsanitizeHtml);
341
- } }
342
- function Menu_div_0_5_ng_template_0_li_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
343
- i0.ɵɵelementContainerStart(0);
344
- i0.ɵɵtemplate(1, Menu_div_0_5_ng_template_0_li_1_ng_container_1_span_1_Template, 2, 1, "span", 17)(2, Menu_div_0_5_ng_template_0_li_1_ng_container_1_ng_template_2_Template, 2, 3, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
345
- i0.ɵɵelementContainerEnd();
346
- } if (rf & 2) {
347
- const htmlSubmenuLabel_r4 = i0.ɵɵreference(3);
348
- const submenu_r3 = i0.ɵɵnextContext(2).$implicit;
349
- i0.ɵɵadvance();
350
- i0.ɵɵproperty("ngIf", submenu_r3.escape !== false)("ngIfElse", htmlSubmenuLabel_r4);
351
- } }
352
- function Menu_div_0_5_ng_template_0_li_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
353
- i0.ɵɵelementContainer(0);
354
- } }
355
- function Menu_div_0_5_ng_template_0_li_1_Template(rf, ctx) { if (rf & 1) {
356
- i0.ɵɵelementStart(0, "li", 15);
357
- i0.ɵɵtemplate(1, Menu_div_0_5_ng_template_0_li_1_ng_container_1_Template, 4, 2, "ng-container", 7)(2, Menu_div_0_5_ng_template_0_li_1_ng_container_2_Template, 1, 0, "ng-container", 16);
358
- i0.ɵɵelementEnd();
359
- } if (rf & 2) {
360
- let tmp_13_0;
361
- const ctx_r4 = i0.ɵɵnextContext();
362
- const submenu_r3 = ctx_r4.$implicit;
363
- const i_r6 = ctx_r4.index;
364
- const ctx_r1 = i0.ɵɵnextContext(3);
365
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c14, submenu_r3.visible === false, submenu_r3.visible))("tooltipOptions", submenu_r3.tooltipOptions);
366
- i0.ɵɵattribute("data-automationid", submenu_r3.automationId)("id", ctx_r1.menuitemId(submenu_r3, ctx_r1.id, i_r6));
367
- i0.ɵɵadvance();
368
- i0.ɵɵproperty("ngIf", !ctx_r1.submenuHeaderTemplate && !ctx_r1._submenuHeaderTemplate);
369
- i0.ɵɵadvance();
370
- i0.ɵɵproperty("ngTemplateOutlet", (tmp_13_0 = ctx_r1.submenuHeaderTemplate) !== null && tmp_13_0 !== undefined ? tmp_13_0 : ctx_r1._submenuHeaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(10, _c2, submenu_r3));
371
- } }
372
- function Menu_div_0_5_ng_template_0_ng_template_2_li_0_Template(rf, ctx) { if (rf & 1) {
373
- i0.ɵɵelement(0, "li", 14);
374
- } }
375
- function Menu_div_0_5_ng_template_0_ng_template_2_li_1_Template(rf, ctx) { if (rf & 1) {
376
- const _r7 = i0.ɵɵgetCurrentView();
377
- i0.ɵɵelementStart(0, "li", 20);
378
- i0.ɵɵlistener("onMenuItemClick", function Menu_div_0_5_ng_template_0_ng_template_2_li_1_Template_li_onMenuItemClick_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r7 = i0.ɵɵnextContext(); const item_r9 = ctx_r7.$implicit; const j_r10 = ctx_r7.index; const i_r6 = i0.ɵɵnextContext().index; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.itemClick($event, ctx_r1.menuitemId(item_r9, ctx_r1.id, i_r6, j_r10))); });
379
- i0.ɵɵelementEnd();
380
- } if (rf & 2) {
381
- let tmp_13_0;
382
- const ctx_r7 = i0.ɵɵnextContext();
383
- const item_r9 = ctx_r7.$implicit;
384
- const j_r10 = ctx_r7.index;
385
- const ctx_r4 = i0.ɵɵnextContext();
386
- const submenu_r3 = ctx_r4.$implicit;
387
- const i_r6 = ctx_r4.index;
388
- const ctx_r1 = i0.ɵɵnextContext(3);
389
- i0.ɵɵclassMap(item_r9.styleClass);
390
- i0.ɵɵproperty("pMenuItemContent", item_r9)("itemTemplate", (tmp_13_0 = ctx_r1.itemTemplate) !== null && tmp_13_0 !== undefined ? tmp_13_0 : ctx_r1._itemTemplate)("ngClass", i0.ɵɵpureFunction3(13, _c15, item_r9.visible === false || submenu_r3.visible === false, ctx_r1.focusedOptionId() && ctx_r1.menuitemId(item_r9, ctx_r1.id, i_r6, j_r10) === ctx_r1.focusedOptionId(), ctx_r1.disabled(item_r9.disabled)))("ngStyle", item_r9.style)("tooltipOptions", item_r9.tooltipOptions);
391
- i0.ɵɵattribute("data-pc-section", "menuitem")("aria-label", ctx_r1.label(item_r9.label))("data-p-focused", ctx_r1.isItemFocused(ctx_r1.menuitemId(item_r9, ctx_r1.id, i_r6, j_r10)))("data-p-disabled", ctx_r1.disabled(item_r9.disabled))("aria-disabled", ctx_r1.disabled(item_r9.disabled))("id", ctx_r1.menuitemId(item_r9, ctx_r1.id, i_r6, j_r10));
392
- } }
393
- function Menu_div_0_5_ng_template_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
394
- i0.ɵɵtemplate(0, Menu_div_0_5_ng_template_0_ng_template_2_li_0_Template, 1, 0, "li", 12)(1, Menu_div_0_5_ng_template_0_ng_template_2_li_1_Template, 1, 17, "li", 19);
395
- } if (rf & 2) {
396
- const item_r9 = ctx.$implicit;
397
- const submenu_r3 = i0.ɵɵnextContext().$implicit;
398
- i0.ɵɵproperty("ngIf", item_r9.separator && (item_r9.visible !== false || submenu_r3.visible !== false));
399
- i0.ɵɵadvance();
400
- i0.ɵɵproperty("ngIf", !item_r9.separator && (item_r9.visible !== false || submenu_r3.visible !== false));
401
- } }
402
- function Menu_div_0_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
403
- i0.ɵɵtemplate(0, Menu_div_0_5_ng_template_0_li_0_Template, 1, 0, "li", 12)(1, Menu_div_0_5_ng_template_0_li_1_Template, 3, 12, "li", 13)(2, Menu_div_0_5_ng_template_0_ng_template_2_Template, 2, 2, "ng-template", 11);
404
- } if (rf & 2) {
405
- const submenu_r3 = ctx.$implicit;
406
- i0.ɵɵproperty("ngIf", submenu_r3.separator && submenu_r3.visible !== false);
407
- i0.ɵɵadvance();
408
- i0.ɵɵproperty("ngIf", !submenu_r3.separator);
409
- i0.ɵɵadvance();
410
- i0.ɵɵproperty("ngForOf", submenu_r3.items);
411
- } }
412
- function Menu_div_0_5_Template(rf, ctx) { if (rf & 1) {
413
- i0.ɵɵtemplate(0, Menu_div_0_5_ng_template_0_Template, 3, 3, "ng-template", 11);
414
- } if (rf & 2) {
415
- const ctx_r1 = i0.ɵɵnextContext(2);
416
- i0.ɵɵproperty("ngForOf", ctx_r1.model);
417
- } }
418
- function Menu_div_0_6_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
419
- i0.ɵɵelement(0, "li", 14);
420
- } }
421
- function Menu_div_0_6_ng_template_0_li_1_Template(rf, ctx) { if (rf & 1) {
422
- const _r11 = i0.ɵɵgetCurrentView();
423
- i0.ɵɵelementStart(0, "li", 20);
424
- i0.ɵɵlistener("onMenuItemClick", function Menu_div_0_6_ng_template_0_li_1_Template_li_onMenuItemClick_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r11 = i0.ɵɵnextContext(); const item_r13 = ctx_r11.$implicit; const i_r14 = ctx_r11.index; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.itemClick($event, ctx_r1.menuitemId(item_r13, ctx_r1.id, i_r14))); });
425
- i0.ɵɵelementEnd();
426
- } if (rf & 2) {
427
- let tmp_10_0;
428
- const ctx_r11 = i0.ɵɵnextContext();
429
- const item_r13 = ctx_r11.$implicit;
430
- const i_r14 = ctx_r11.index;
431
- const ctx_r1 = i0.ɵɵnextContext(3);
432
- i0.ɵɵclassMap(item_r13.styleClass);
433
- i0.ɵɵproperty("pMenuItemContent", item_r13)("itemTemplate", (tmp_10_0 = ctx_r1.itemTemplate) !== null && tmp_10_0 !== undefined ? tmp_10_0 : ctx_r1._itemTemplate)("ngClass", i0.ɵɵpureFunction2(13, _c16, ctx_r1.focusedOptionId() && ctx_r1.menuitemId(item_r13, ctx_r1.id, i_r14) === ctx_r1.focusedOptionId(), ctx_r1.disabled(item_r13.disabled)))("ngStyle", item_r13.style)("tooltipOptions", item_r13.tooltipOptions);
434
- i0.ɵɵattribute("data-pc-section", "menuitem")("aria-label", ctx_r1.label(item_r13.label))("data-p-focused", ctx_r1.isItemFocused(ctx_r1.menuitemId(item_r13, ctx_r1.id, i_r14)))("data-p-disabled", ctx_r1.disabled(item_r13.disabled))("aria-disabled", ctx_r1.disabled(item_r13.disabled))("id", ctx_r1.menuitemId(item_r13, ctx_r1.id, i_r14));
435
- } }
436
- function Menu_div_0_6_ng_template_0_Template(rf, ctx) { if (rf & 1) {
437
- i0.ɵɵtemplate(0, Menu_div_0_6_ng_template_0_li_0_Template, 1, 0, "li", 12)(1, Menu_div_0_6_ng_template_0_li_1_Template, 1, 16, "li", 19);
438
- } if (rf & 2) {
439
- const item_r13 = ctx.$implicit;
440
- i0.ɵɵproperty("ngIf", item_r13.separator && item_r13.visible !== false);
441
- i0.ɵɵadvance();
442
- i0.ɵɵproperty("ngIf", !item_r13.separator && item_r13.visible !== false);
443
- } }
444
- function Menu_div_0_6_Template(rf, ctx) { if (rf & 1) {
445
- i0.ɵɵtemplate(0, Menu_div_0_6_ng_template_0_Template, 2, 2, "ng-template", 11);
446
- } if (rf & 2) {
447
- const ctx_r1 = i0.ɵɵnextContext(2);
448
- i0.ɵɵproperty("ngForOf", ctx_r1.model);
449
- } }
450
- function Menu_div_0_div_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
451
- i0.ɵɵelementContainer(0);
452
- } }
453
- function Menu_div_0_div_7_Template(rf, ctx) { if (rf & 1) {
454
- i0.ɵɵelementStart(0, "div", 21);
455
- i0.ɵɵtemplate(1, Menu_div_0_div_7_ng_container_1_Template, 1, 0, "ng-container", 10);
456
- i0.ɵɵelementEnd();
457
- } if (rf & 2) {
458
- let tmp_5_0;
459
- const ctx_r1 = i0.ɵɵnextContext(2);
460
- i0.ɵɵattribute("data-pc-section", "end");
461
- i0.ɵɵadvance();
462
- i0.ɵɵproperty("ngTemplateOutlet", (tmp_5_0 = ctx_r1.endTemplate) !== null && tmp_5_0 !== undefined ? tmp_5_0 : ctx_r1._endTemplate);
463
- } }
464
- function Menu_div_0_Template(rf, ctx) { if (rf & 1) {
465
- const _r1 = i0.ɵɵgetCurrentView();
466
- i0.ɵɵelementStart(0, "div", 4, 0);
467
- i0.ɵɵlistener("click", function Menu_div_0_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayClick($event)); })("@overlayAnimation.start", function Menu_div_0_Template_div_animation_overlayAnimation_start_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayAnimationStart($event)); })("@overlayAnimation.done", function Menu_div_0_Template_div_animation_overlayAnimation_done_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayAnimationEnd($event)); });
468
- i0.ɵɵtemplate(2, Menu_div_0_div_2_Template, 2, 2, "div", 5);
469
- i0.ɵɵelementStart(3, "ul", 6, 1);
470
- i0.ɵɵlistener("focus", function Menu_div_0_Template_ul_focus_3_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListFocus($event)); })("blur", function Menu_div_0_Template_ul_blur_3_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListBlur($event)); })("keydown", function Menu_div_0_Template_ul_keydown_3_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListKeyDown($event)); });
471
- i0.ɵɵtemplate(5, Menu_div_0_5_Template, 1, 1, null, 7)(6, Menu_div_0_6_Template, 1, 1, null, 7);
472
- i0.ɵɵelementEnd();
473
- i0.ɵɵtemplate(7, Menu_div_0_div_7_Template, 2, 2, "div", 8);
474
- i0.ɵɵelementEnd();
475
- } if (rf & 2) {
476
- let tmp_10_0;
477
- let tmp_19_0;
478
- const ctx_r1 = i0.ɵɵnextContext();
479
- i0.ɵɵclassMap(ctx_r1.styleClass);
480
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c11, ctx_r1.popup))("ngStyle", ctx_r1.style)("@overlayAnimation", i0.ɵɵpureFunction1(23, _c13, i0.ɵɵpureFunction2(20, _c12, ctx_r1.showTransitionOptions, ctx_r1.hideTransitionOptions)))("@.disabled", ctx_r1.popup !== true);
481
- i0.ɵɵattribute("data-pc-name", "menu")("id", ctx_r1.id);
482
- i0.ɵɵadvance(2);
483
- i0.ɵɵproperty("ngIf", (tmp_10_0 = ctx_r1.startTemplate) !== null && tmp_10_0 !== undefined ? tmp_10_0 : ctx_r1._startTemplate);
484
- i0.ɵɵadvance();
485
- i0.ɵɵattribute("id", ctx_r1.id + "_list")("tabindex", ctx_r1.getTabIndexValue())("data-pc-section", "menu")("aria-activedescendant", ctx_r1.activedescendant())("aria-label", ctx_r1.ariaLabel)("aria-labelledBy", ctx_r1.ariaLabelledBy);
486
- i0.ɵɵadvance(2);
487
- i0.ɵɵproperty("ngIf", ctx_r1.hasSubMenu());
488
- i0.ɵɵadvance();
489
- i0.ɵɵproperty("ngIf", !ctx_r1.hasSubMenu());
490
- i0.ɵɵadvance();
491
- i0.ɵɵproperty("ngIf", (tmp_19_0 = ctx_r1.endTemplate) !== null && tmp_19_0 !== undefined ? tmp_19_0 : ctx_r1._endTemplate);
492
- } }
493
198
  class SafeHtmlPipe {
494
199
  platformId;
495
200
  sanitizer;
@@ -503,19 +208,19 @@ class SafeHtmlPipe {
503
208
  }
504
209
  return this.sanitizer.bypassSecurityTrustHtml(value);
505
210
  }
506
- static ɵfac = function SafeHtmlPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SafeHtmlPipe)(i0.ɵɵdirectiveInject(PLATFORM_ID, 16), i0.ɵɵdirectiveInject(i1.DomSanitizer, 16)); };
507
- static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "safeHtml", type: SafeHtmlPipe, pure: true });
211
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: PLATFORM_ID }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
212
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: SafeHtmlPipe, isStandalone: true, name: "safeHtml" });
508
213
  }
509
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SafeHtmlPipe, [{
510
- type: Pipe,
511
- args: [{
512
- name: 'safeHtml',
513
- standalone: true
514
- }]
515
- }], () => [{ type: undefined, decorators: [{
516
- type: Inject,
517
- args: [PLATFORM_ID]
518
- }] }, { type: i1.DomSanitizer }], null); })();
214
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: SafeHtmlPipe, decorators: [{
215
+ type: Pipe,
216
+ args: [{
217
+ name: 'safeHtml',
218
+ standalone: true
219
+ }]
220
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
221
+ type: Inject,
222
+ args: [PLATFORM_ID]
223
+ }] }, { type: i1.DomSanitizer }] });
519
224
  class MenuItemContent {
520
225
  item;
521
226
  itemTemplate;
@@ -527,28 +232,69 @@ class MenuItemContent {
527
232
  onItemClick(event, item) {
528
233
  this.onMenuItemClick.emit({ originalEvent: event, item });
529
234
  }
530
- static ɵfac = function MenuItemContent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuItemContent)(i0.ɵɵdirectiveInject(forwardRef(() => Menu))); };
531
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuItemContent, selectors: [["", "pMenuItemContent", ""]], inputs: { item: [0, "pMenuItemContent", "item"], itemTemplate: "itemTemplate" }, outputs: { onMenuItemClick: "onMenuItemClick" }, attrs: _c0, decls: 5, vars: 3, consts: [["itemContent", ""], ["htmlLabel", ""], [1, "p-menu-item-content", 3, "click"], [4, "ngIf"], ["class", "p-menu-item-link", "pRipple", "", 3, "target", "ngClass", 4, "ngIf"], ["routerLinkActive", "p-menu-item-link-active", "class", "p-menu-item-link", "pRipple", "", 3, "routerLink", "queryParams", "routerLinkActiveOptions", "target", "ngClass", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", 4, "ngIf"], ["pRipple", "", 1, "p-menu-item-link", 3, "target", "ngClass"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["routerLinkActive", "p-menu-item-link-active", "pRipple", "", 1, "p-menu-item-link", 3, "routerLink", "queryParams", "routerLinkActiveOptions", "target", "ngClass", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state"], ["class", "p-menu-item-icon", 3, "ngClass", "class", "ngStyle", 4, "ngIf"], ["class", "p-menu-item-label", 4, "ngIf", "ngIfElse"], [3, "styleClass", "value", 4, "ngIf"], [1, "p-menu-item-icon", 3, "ngClass", "ngStyle"], [1, "p-menu-item-label"], [1, "p-menu-item-label", 3, "innerHTML"], [3, "styleClass", "value"]], template: function MenuItemContent_Template(rf, ctx) { if (rf & 1) {
532
- const _r1 = i0.ɵɵgetCurrentView();
533
- i0.ɵɵelementStart(0, "div", 2);
534
- i0.ɵɵlistener("click", function MenuItemContent_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onItemClick($event, ctx.item)); });
535
- i0.ɵɵtemplate(1, MenuItemContent_ng_container_1_Template, 3, 2, "ng-container", 3)(2, MenuItemContent_ng_container_2_Template, 2, 4, "ng-container", 3)(3, MenuItemContent_ng_template_3_Template, 5, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
536
- i0.ɵɵelementEnd();
537
- } if (rf & 2) {
538
- i0.ɵɵattribute("data-pc-section", "content");
539
- i0.ɵɵadvance();
540
- i0.ɵɵproperty("ngIf", !ctx.itemTemplate);
541
- i0.ɵɵadvance();
542
- i0.ɵɵproperty("ngIf", ctx.itemTemplate);
543
- } }, dependencies: [CommonModule, i2.NgClass, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, RouterModule, i3.RouterLink, i3.RouterLinkActive, Ripple, TooltipModule, BadgeModule, i4.Badge, SharedModule, SafeHtmlPipe], encapsulation: 2 });
235
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuItemContent, deps: [{ token: forwardRef(() => Menu) }], target: i0.ɵɵFactoryTarget.Component });
236
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.7", type: MenuItemContent, isStandalone: true, selector: "[pMenuItemContent]", inputs: { item: ["pMenuItemContent", "item"], itemTemplate: "itemTemplate" }, outputs: { onMenuItemClick: "onMenuItemClick" }, ngImport: i0, template: `
237
+ <div [attr.data-pc-section]="'content'" class="p-menu-item-content" (click)="onItemClick($event, item)">
238
+ <ng-container *ngIf="!itemTemplate">
239
+ <a
240
+ *ngIf="!item?.routerLink"
241
+ [attr.title]="item.title"
242
+ [attr.href]="item.url || null"
243
+ [attr.data-automationid]="item.automationId"
244
+ [attr.tabindex]="-1"
245
+ [attr.data-pc-section]="'action'"
246
+ class="p-menu-item-link"
247
+ [target]="item.target"
248
+ [ngClass]="{ 'p-disabled': item.disabled }"
249
+ pRipple
250
+ >
251
+ <ng-container *ngTemplateOutlet="itemContent; context: { $implicit: item }"></ng-container>
252
+ </a>
253
+ <a
254
+ *ngIf="item?.routerLink"
255
+ [routerLink]="item.routerLink"
256
+ [attr.data-automationid]="item.automationId"
257
+ [attr.tabindex]="-1"
258
+ [attr.data-pc-section]="'action'"
259
+ [attr.title]="item.title"
260
+ [queryParams]="item.queryParams"
261
+ routerLinkActive="p-menu-item-link-active"
262
+ [routerLinkActiveOptions]="item.routerLinkActiveOptions || { exact: false }"
263
+ class="p-menu-item-link"
264
+ [target]="item.target"
265
+ [ngClass]="{ 'p-disabled': item.disabled }"
266
+ [fragment]="item.fragment"
267
+ [queryParamsHandling]="item.queryParamsHandling"
268
+ [preserveFragment]="item.preserveFragment"
269
+ [skipLocationChange]="item.skipLocationChange"
270
+ [replaceUrl]="item.replaceUrl"
271
+ [state]="item.state"
272
+ pRipple
273
+ >
274
+ <ng-container *ngTemplateOutlet="itemContent; context: { $implicit: item }"></ng-container>
275
+ </a>
276
+ </ng-container>
277
+
278
+ <ng-container *ngIf="itemTemplate">
279
+ <ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-template>
280
+ </ng-container>
281
+
282
+ <ng-template #itemContent>
283
+ <span class="p-menu-item-icon" *ngIf="item.icon" [ngClass]="item.icon" [class]="item.iconClass" [ngStyle]="item.iconStyle"></span>
284
+ <span class="p-menu-item-label" *ngIf="item.escape !== false; else htmlLabel">{{ item.label }}</span>
285
+ <ng-template #htmlLabel><span class="p-menu-item-label" [innerHTML]="item.label | safeHtml"></span></ng-template>
286
+ <p-badge *ngIf="item.badge" [styleClass]="item.badgeStyleClass" [value]="item.badge" />
287
+ </ng-template>
288
+ </div>
289
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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", "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: "ngmodule", type: BadgeModule }, { kind: "component", type: i4.Badge, selector: "p-badge", inputs: ["styleClass", "style", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "ngmodule", type: SharedModule }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }], encapsulation: i0.ViewEncapsulation.None });
544
290
  }
545
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuItemContent, [{
546
- type: Component,
547
- args: [{
548
- selector: '[pMenuItemContent]',
549
- standalone: true,
550
- imports: [CommonModule, RouterModule, Ripple, TooltipModule, BadgeModule, SharedModule, SafeHtmlPipe],
551
- template: `
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuItemContent, decorators: [{
292
+ type: Component,
293
+ args: [{
294
+ selector: '[pMenuItemContent]',
295
+ standalone: true,
296
+ imports: [CommonModule, RouterModule, Ripple, TooltipModule, BadgeModule, SharedModule, SafeHtmlPipe],
297
+ template: `
552
298
  <div [attr.data-pc-section]="'content'" class="p-menu-item-content" (click)="onItemClick($event, item)">
553
299
  <ng-container *ngIf="!itemTemplate">
554
300
  <a
@@ -602,20 +348,19 @@ class MenuItemContent {
602
348
  </ng-template>
603
349
  </div>
604
350
  `,
605
- encapsulation: ViewEncapsulation.None
606
- }]
607
- }], () => [{ type: Menu, decorators: [{
608
- type: Inject,
609
- args: [forwardRef(() => Menu)]
610
- }] }], { item: [{
611
- type: Input,
612
- args: ['pMenuItemContent']
613
- }], itemTemplate: [{
614
- type: Input
615
- }], onMenuItemClick: [{
616
- type: Output
617
- }] }); })();
618
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuItemContent, { className: "MenuItemContent", filePath: "menu.ts", lineNumber: 123 }); })();
351
+ encapsulation: ViewEncapsulation.None
352
+ }]
353
+ }], ctorParameters: () => [{ type: Menu, decorators: [{
354
+ type: Inject,
355
+ args: [forwardRef(() => Menu)]
356
+ }] }], propDecorators: { item: [{
357
+ type: Input,
358
+ args: ['pMenuItemContent']
359
+ }], itemTemplate: [{
360
+ type: Input
361
+ }], onMenuItemClick: [{
362
+ type: Output
363
+ }] } });
619
364
  /**
620
365
  * Menu is a navigation / command component that supports dynamic and static positioning.
621
366
  * @group Components
@@ -1114,14 +859,7 @@ class Menu extends BaseComponent {
1114
859
  super.ngOnDestroy();
1115
860
  }
1116
861
  hasSubMenu() {
1117
- if (this.model) {
1118
- for (var item of this.model) {
1119
- if (item.items) {
1120
- return true;
1121
- }
1122
- }
1123
- }
1124
- return false;
862
+ return this.model?.some((item) => item.items) ?? false;
1125
863
  }
1126
864
  isItemHidden(item) {
1127
865
  if (item.separator) {
@@ -1129,42 +867,125 @@ class Menu extends BaseComponent {
1129
867
  }
1130
868
  return item.visible === false;
1131
869
  }
1132
- static ɵfac = function Menu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Menu)(i0.ɵɵdirectiveInject(i5.OverlayService)); };
1133
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Menu, selectors: [["p-menu"]], contentQueries: function Menu_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1134
- i0.ɵɵcontentQuery(dirIndex, _c4, 4);
1135
- i0.ɵɵcontentQuery(dirIndex, _c5, 4);
1136
- i0.ɵɵcontentQuery(dirIndex, _c6, 4);
1137
- i0.ɵɵcontentQuery(dirIndex, _c7, 4);
1138
- i0.ɵɵcontentQuery(dirIndex, _c8, 4);
1139
- i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
1140
- } if (rf & 2) {
1141
- let _t;
1142
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.startTemplate = _t.first);
1143
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.endTemplate = _t.first);
1144
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
1145
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);
1146
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.submenuHeaderTemplate = _t.first);
1147
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
1148
- } }, viewQuery: function Menu_Query(rf, ctx) { if (rf & 1) {
1149
- i0.ɵɵviewQuery(_c9, 5);
1150
- i0.ɵɵviewQuery(_c10, 5);
1151
- } if (rf & 2) {
1152
- let _t;
1153
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listViewChild = _t.first);
1154
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);
1155
- } }, inputs: { model: "model", popup: [2, "popup", "popup", booleanAttribute], style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: [2, "autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: [2, "baseZIndex", "baseZIndex", numberAttribute], showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", id: "id", tabindex: [2, "tabindex", "tabindex", numberAttribute] }, outputs: { onShow: "onShow", onHide: "onHide", onBlur: "onBlur", onFocus: "onFocus" }, features: [i0.ɵɵProvidersFeature([MenuStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["container", ""], ["list", ""], ["htmlSubmenuLabel", ""], [3, "ngClass", "class", "ngStyle", "click", 4, "ngIf"], [3, "click", "ngClass", "ngStyle"], ["class", "p-menu-start", 4, "ngIf"], ["role", "menu", 1, "p-menu-list", "p-reset", 3, "focus", "blur", "keydown"], [4, "ngIf"], ["class", "p-menu-end", 4, "ngIf"], [1, "p-menu-start"], [4, "ngTemplateOutlet"], ["ngFor", "", 3, "ngForOf"], ["class", "p-menu-separator", "role", "separator", 4, "ngIf"], ["class", "p-menu-submenu-label", "pTooltip", "", "role", "none", 3, "ngClass", "tooltipOptions", 4, "ngIf"], ["role", "separator", 1, "p-menu-separator"], ["pTooltip", "", "role", "none", 1, "p-menu-submenu-label", 3, "ngClass", "tooltipOptions"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [4, "ngIf", "ngIfElse"], [3, "innerHTML"], ["class", "p-menu-item", "pTooltip", "", "role", "menuitem", 3, "pMenuItemContent", "itemTemplate", "ngClass", "ngStyle", "class", "tooltipOptions", "onMenuItemClick", 4, "ngIf"], ["pTooltip", "", "role", "menuitem", 1, "p-menu-item", 3, "onMenuItemClick", "pMenuItemContent", "itemTemplate", "ngClass", "ngStyle", "tooltipOptions"], [1, "p-menu-end"]], template: function Menu_Template(rf, ctx) { if (rf & 1) {
1156
- i0.ɵɵtemplate(0, Menu_div_0_Template, 8, 25, "div", 3);
1157
- } if (rf & 2) {
1158
- i0.ɵɵproperty("ngIf", !ctx.popup || ctx.visible);
1159
- } }, dependencies: [CommonModule, i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, RouterModule, MenuItemContent, TooltipModule, i6.Tooltip, BadgeModule, SharedModule, SafeHtmlPipe], encapsulation: 2, data: { animation: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}')]), transition(':leave', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))])])] }, changeDetection: 0 });
870
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Menu, deps: [{ token: i5.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
871
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.1.7", type: Menu, isStandalone: true, selector: "p-menu", inputs: { model: "model", popup: ["popup", "popup", booleanAttribute], style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: ["autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", id: "id", tabindex: ["tabindex", "tabindex", numberAttribute] }, outputs: { onShow: "onShow", onHide: "onHide", onBlur: "onBlur", onFocus: "onFocus" }, providers: [MenuStyle], queries: [{ propertyName: "startTemplate", first: true, predicate: ["start"] }, { propertyName: "endTemplate", first: true, predicate: ["end"] }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "submenuHeaderTemplate", first: true, predicate: ["submenuheader"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "listViewChild", first: true, predicate: ["list"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
872
+ <div
873
+ #container
874
+ [ngClass]="{ 'p-menu p-component': true, 'p-menu-overlay': popup }"
875
+ [class]="styleClass"
876
+ [ngStyle]="style"
877
+ *ngIf="!popup || visible"
878
+ (click)="onOverlayClick($event)"
879
+ [@overlayAnimation]="{
880
+ value: 'visible',
881
+ params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions }
882
+ }"
883
+ [@.disabled]="popup !== true"
884
+ (@overlayAnimation.start)="onOverlayAnimationStart($event)"
885
+ (@overlayAnimation.done)="onOverlayAnimationEnd($event)"
886
+ [attr.data-pc-name]="'menu'"
887
+ [attr.id]="id"
888
+ >
889
+ <div *ngIf="startTemplate ?? _startTemplate" class="p-menu-start" [attr.data-pc-section]="'start'">
890
+ <ng-container *ngTemplateOutlet="startTemplate ?? _startTemplate"></ng-container>
891
+ </div>
892
+ <ul
893
+ #list
894
+ class="p-menu-list p-reset"
895
+ role="menu"
896
+ [attr.id]="id + '_list'"
897
+ [attr.tabindex]="getTabIndexValue()"
898
+ [attr.data-pc-section]="'menu'"
899
+ [attr.aria-activedescendant]="activedescendant()"
900
+ [attr.aria-label]="ariaLabel"
901
+ [attr.aria-labelledBy]="ariaLabelledBy"
902
+ (focus)="onListFocus($event)"
903
+ (blur)="onListBlur($event)"
904
+ (keydown)="onListKeyDown($event)"
905
+ >
906
+ <ng-template ngFor let-submenu let-i="index" [ngForOf]="model" *ngIf="hasSubMenu()">
907
+ <li class="p-menu-separator" *ngIf="submenu.separator && submenu.visible !== false" role="separator"></li>
908
+ <li
909
+ class="p-menu-submenu-label"
910
+ [attr.data-automationid]="submenu.automationId"
911
+ *ngIf="!submenu.separator"
912
+ [ngClass]="{ 'p-hidden': submenu.visible === false, flex: submenu.visible }"
913
+ pTooltip
914
+ [tooltipOptions]="submenu.tooltipOptions"
915
+ role="none"
916
+ [attr.id]="menuitemId(submenu, id, i)"
917
+ >
918
+ <ng-container *ngIf="!submenuHeaderTemplate && !_submenuHeaderTemplate">
919
+ <span *ngIf="submenu.escape !== false; else htmlSubmenuLabel">{{ submenu.label }}</span>
920
+ <ng-template #htmlSubmenuLabel><span [innerHTML]="submenu.label | safeHtml"></span></ng-template>
921
+ </ng-container>
922
+ <ng-container *ngTemplateOutlet="submenuHeaderTemplate ?? _submenuHeaderTemplate; context: { $implicit: submenu }"></ng-container>
923
+ </li>
924
+ <ng-template ngFor let-item let-j="index" [ngForOf]="submenu.items">
925
+ <li class="p-menu-separator" *ngIf="item.separator && (item.visible !== false || submenu.visible !== false)" role="separator"></li>
926
+ <li
927
+ class="p-menu-item"
928
+ *ngIf="!item.separator && item.visible !== false && (item.visible !== undefined || submenu.visible !== false)"
929
+ [pMenuItemContent]="item"
930
+ [itemTemplate]="itemTemplate ?? _itemTemplate"
931
+ [ngClass]="{
932
+ 'p-focus': focusedOptionId() && menuitemId(item, id, i, j) === focusedOptionId(),
933
+ 'p-disabled': disabled(item.disabled)
934
+ }"
935
+ [ngStyle]="item.style"
936
+ [class]="item.styleClass"
937
+ (onMenuItemClick)="itemClick($event, menuitemId(item, id, i, j))"
938
+ pTooltip
939
+ [tooltipOptions]="item.tooltipOptions"
940
+ role="menuitem"
941
+ [attr.data-pc-section]="'menuitem'"
942
+ [attr.aria-label]="label(item.label)"
943
+ [attr.data-p-focused]="isItemFocused(menuitemId(item, id, i, j))"
944
+ [attr.data-p-disabled]="disabled(item.disabled)"
945
+ [attr.aria-disabled]="disabled(item.disabled)"
946
+ [attr.id]="menuitemId(item, id, i, j)"
947
+ ></li>
948
+ </ng-template>
949
+ </ng-template>
950
+ <ng-template ngFor let-item let-i="index" [ngForOf]="model" *ngIf="!hasSubMenu()">
951
+ <li class="p-menu-separator" *ngIf="item.separator && item.visible !== false" role="separator"></li>
952
+ <li
953
+ class="p-menu-item"
954
+ *ngIf="!item.separator && item.visible !== false"
955
+ [pMenuItemContent]="item"
956
+ [itemTemplate]="itemTemplate ?? _itemTemplate"
957
+ [ngClass]="{
958
+ 'p-focus': focusedOptionId() && menuitemId(item, id, i) === focusedOptionId(),
959
+ 'p-disabled': disabled(item.disabled)
960
+ }"
961
+ [ngStyle]="item.style"
962
+ [class]="item.styleClass"
963
+ (onMenuItemClick)="itemClick($event, menuitemId(item, id, i))"
964
+ pTooltip
965
+ [tooltipOptions]="item.tooltipOptions"
966
+ role="menuitem"
967
+ [attr.data-pc-section]="'menuitem'"
968
+ [attr.aria-label]="label(item.label)"
969
+ [attr.data-p-focused]="isItemFocused(menuitemId(item, id, i))"
970
+ [attr.data-p-disabled]="disabled(item.disabled)"
971
+ [attr.aria-disabled]="disabled(item.disabled)"
972
+ [attr.id]="menuitemId(item, id, i)"
973
+ ></li>
974
+ </ng-template>
975
+ </ul>
976
+ <div *ngIf="endTemplate ?? _endTemplate" class="p-menu-end" [attr.data-pc-section]="'end'">
977
+ <ng-container *ngTemplateOutlet="endTemplate ?? _endTemplate"></ng-container>
978
+ </div>
979
+ </div>
980
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "component", type: MenuItemContent, selector: "[pMenuItemContent]", inputs: ["pMenuItemContent", "itemTemplate"], outputs: ["onMenuItemClick"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: BadgeModule }, { kind: "ngmodule", type: SharedModule }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }], animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}')]), transition(':leave', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))])])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1160
981
  }
1161
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Menu, [{
1162
- type: Component,
1163
- args: [{
1164
- selector: 'p-menu',
1165
- standalone: true,
1166
- imports: [CommonModule, RouterModule, MenuItemContent, TooltipModule, BadgeModule, SharedModule, SafeHtmlPipe],
1167
- template: `
982
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Menu, decorators: [{
983
+ type: Component,
984
+ args: [{
985
+ selector: 'p-menu',
986
+ standalone: true,
987
+ imports: [CommonModule, RouterModule, MenuItemContent, TooltipModule, BadgeModule, SharedModule, SafeHtmlPipe],
988
+ template: `
1168
989
  <div
1169
990
  #container
1170
991
  [ngClass]="{ 'p-menu p-component': true, 'p-menu-overlay': popup }"
@@ -1221,11 +1042,10 @@ class Menu extends BaseComponent {
1221
1042
  <li class="p-menu-separator" *ngIf="item.separator && (item.visible !== false || submenu.visible !== false)" role="separator"></li>
1222
1043
  <li
1223
1044
  class="p-menu-item"
1224
- *ngIf="!item.separator && (item.visible !== false || submenu.visible !== false)"
1045
+ *ngIf="!item.separator && item.visible !== false && (item.visible !== undefined || submenu.visible !== false)"
1225
1046
  [pMenuItemContent]="item"
1226
1047
  [itemTemplate]="itemTemplate ?? _itemTemplate"
1227
1048
  [ngClass]="{
1228
- 'p-hidden': item.visible === false || submenu.visible === false,
1229
1049
  'p-focus': focusedOptionId() && menuitemId(item, id, i, j) === focusedOptionId(),
1230
1050
  'p-disabled': disabled(item.disabled)
1231
1051
  }"
@@ -1275,88 +1095,86 @@ class Menu extends BaseComponent {
1275
1095
  </div>
1276
1096
  </div>
1277
1097
  `,
1278
- animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}')]), transition(':leave', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))])])],
1279
- changeDetection: ChangeDetectionStrategy.OnPush,
1280
- encapsulation: ViewEncapsulation.None,
1281
- providers: [MenuStyle]
1282
- }]
1283
- }], () => [{ type: i5.OverlayService }], { model: [{
1284
- type: Input
1285
- }], popup: [{
1286
- type: Input,
1287
- args: [{ transform: booleanAttribute }]
1288
- }], style: [{
1289
- type: Input
1290
- }], styleClass: [{
1291
- type: Input
1292
- }], appendTo: [{
1293
- type: Input
1294
- }], autoZIndex: [{
1295
- type: Input,
1296
- args: [{ transform: booleanAttribute }]
1297
- }], baseZIndex: [{
1298
- type: Input,
1299
- args: [{ transform: numberAttribute }]
1300
- }], showTransitionOptions: [{
1301
- type: Input
1302
- }], hideTransitionOptions: [{
1303
- type: Input
1304
- }], ariaLabel: [{
1305
- type: Input
1306
- }], ariaLabelledBy: [{
1307
- type: Input
1308
- }], id: [{
1309
- type: Input
1310
- }], tabindex: [{
1311
- type: Input,
1312
- args: [{ transform: numberAttribute }]
1313
- }], onShow: [{
1314
- type: Output
1315
- }], onHide: [{
1316
- type: Output
1317
- }], onBlur: [{
1318
- type: Output
1319
- }], onFocus: [{
1320
- type: Output
1321
- }], listViewChild: [{
1322
- type: ViewChild,
1323
- args: ['list']
1324
- }], containerViewChild: [{
1325
- type: ViewChild,
1326
- args: ['container']
1327
- }], startTemplate: [{
1328
- type: ContentChild,
1329
- args: ['start', { descendants: false }]
1330
- }], endTemplate: [{
1331
- type: ContentChild,
1332
- args: ['end', { descendants: false }]
1333
- }], headerTemplate: [{
1334
- type: ContentChild,
1335
- args: ['header', { descendants: false }]
1336
- }], itemTemplate: [{
1337
- type: ContentChild,
1338
- args: ['item', { descendants: false }]
1339
- }], submenuHeaderTemplate: [{
1340
- type: ContentChild,
1341
- args: ['submenuheader', { descendants: false }]
1342
- }], templates: [{
1343
- type: ContentChildren,
1344
- args: [PrimeTemplate]
1345
- }] }); })();
1346
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Menu, { className: "Menu", filePath: "menu.ts", lineNumber: 264 }); })();
1098
+ animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}')]), transition(':leave', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))])])],
1099
+ changeDetection: ChangeDetectionStrategy.OnPush,
1100
+ encapsulation: ViewEncapsulation.None,
1101
+ providers: [MenuStyle]
1102
+ }]
1103
+ }], ctorParameters: () => [{ type: i5.OverlayService }], propDecorators: { model: [{
1104
+ type: Input
1105
+ }], popup: [{
1106
+ type: Input,
1107
+ args: [{ transform: booleanAttribute }]
1108
+ }], style: [{
1109
+ type: Input
1110
+ }], styleClass: [{
1111
+ type: Input
1112
+ }], appendTo: [{
1113
+ type: Input
1114
+ }], autoZIndex: [{
1115
+ type: Input,
1116
+ args: [{ transform: booleanAttribute }]
1117
+ }], baseZIndex: [{
1118
+ type: Input,
1119
+ args: [{ transform: numberAttribute }]
1120
+ }], showTransitionOptions: [{
1121
+ type: Input
1122
+ }], hideTransitionOptions: [{
1123
+ type: Input
1124
+ }], ariaLabel: [{
1125
+ type: Input
1126
+ }], ariaLabelledBy: [{
1127
+ type: Input
1128
+ }], id: [{
1129
+ type: Input
1130
+ }], tabindex: [{
1131
+ type: Input,
1132
+ args: [{ transform: numberAttribute }]
1133
+ }], onShow: [{
1134
+ type: Output
1135
+ }], onHide: [{
1136
+ type: Output
1137
+ }], onBlur: [{
1138
+ type: Output
1139
+ }], onFocus: [{
1140
+ type: Output
1141
+ }], listViewChild: [{
1142
+ type: ViewChild,
1143
+ args: ['list']
1144
+ }], containerViewChild: [{
1145
+ type: ViewChild,
1146
+ args: ['container']
1147
+ }], startTemplate: [{
1148
+ type: ContentChild,
1149
+ args: ['start', { descendants: false }]
1150
+ }], endTemplate: [{
1151
+ type: ContentChild,
1152
+ args: ['end', { descendants: false }]
1153
+ }], headerTemplate: [{
1154
+ type: ContentChild,
1155
+ args: ['header', { descendants: false }]
1156
+ }], itemTemplate: [{
1157
+ type: ContentChild,
1158
+ args: ['item', { descendants: false }]
1159
+ }], submenuHeaderTemplate: [{
1160
+ type: ContentChild,
1161
+ args: ['submenuheader', { descendants: false }]
1162
+ }], templates: [{
1163
+ type: ContentChildren,
1164
+ args: [PrimeTemplate]
1165
+ }] } });
1347
1166
  class MenuModule {
1348
- static ɵfac = function MenuModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuModule)(); };
1349
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MenuModule });
1350
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Menu, SharedModule, SharedModule] });
1167
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1168
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: MenuModule, imports: [Menu, SharedModule, SafeHtmlPipe], exports: [Menu, SharedModule, SafeHtmlPipe] });
1169
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuModule, imports: [Menu, SharedModule, SharedModule] });
1351
1170
  }
1352
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuModule, [{
1353
- type: NgModule,
1354
- args: [{
1355
- imports: [Menu, SharedModule, SafeHtmlPipe],
1356
- exports: [Menu, SharedModule, SafeHtmlPipe]
1357
- }]
1358
- }], null, null); })();
1359
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MenuModule, { imports: [Menu, SharedModule, SafeHtmlPipe], exports: [Menu, SharedModule, SafeHtmlPipe] }); })();
1171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuModule, decorators: [{
1172
+ type: NgModule,
1173
+ args: [{
1174
+ imports: [Menu, SharedModule, SafeHtmlPipe],
1175
+ exports: [Menu, SharedModule, SafeHtmlPipe]
1176
+ }]
1177
+ }] });
1360
1178
 
1361
1179
  /**
1362
1180
  * Generated bundle index. Do not edit.