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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +10 -17
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +786 -928
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +561 -599
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +227 -394
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +255 -266
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +585 -653
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1792 -1787
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +480 -577
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +774 -745
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
  68. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
  70. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
  72. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
  74. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
  76. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
  78. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
  80. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
  84. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
  86. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
  88. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
  90. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
  92. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
  94. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
  96. package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
  98. package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  100. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
  102. package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
  104. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
  106. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
  108. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
  110. package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
  112. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
  114. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
  116. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
  118. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
  120. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
  122. package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
  124. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
  126. package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
  128. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
  130. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
  132. package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
  134. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
  136. package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
  138. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
  140. package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
  142. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
  144. package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
  146. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
  148. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
  150. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
  152. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
  154. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
  156. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
  158. package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
  160. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
  162. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
  164. package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
  166. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
  168. package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
  170. package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
  171. package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
  172. package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
  173. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
  174. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
  175. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
  176. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
  177. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  178. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  179. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  180. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  181. package/fesm2022/exhaustive-ui-core-inplace.mjs +68 -102
  182. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  183. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  184. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  185. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  186. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  187. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  188. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  189. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  190. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  191. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  192. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  193. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  194. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  195. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  196. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  197. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  198. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  199. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  200. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  201. package/fesm2022/exhaustive-ui-core-listbox.mjs +591 -728
  202. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  203. package/fesm2022/exhaustive-ui-core-megamenu.mjs +324 -375
  204. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  205. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  206. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  207. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  208. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  209. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  210. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  211. package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
  212. package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
  213. package/fesm2022/exhaustive-ui-core-multiselect.mjs +945 -1045
  214. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  215. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  216. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  217. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  218. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  219. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  220. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  221. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  222. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  223. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  224. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  225. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  226. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  227. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  228. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  229. package/fesm2022/exhaustive-ui-core-picklist.mjs +861 -879
  230. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  231. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  232. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  233. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  234. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  235. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  236. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  237. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  238. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  239. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  240. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  241. package/fesm2022/exhaustive-ui-core-select.mjs +837 -986
  242. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  243. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  244. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  245. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  246. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  247. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  248. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  249. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  250. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  251. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  252. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  253. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  254. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  255. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  256. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  257. package/fesm2022/exhaustive-ui-core-table.mjs +2435 -2721
  258. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  259. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  260. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  261. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  262. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  263. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +604 -690
  264. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  265. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  266. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  267. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  268. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  269. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  270. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  271. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  272. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  273. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  274. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  275. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  276. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  277. package/fesm2022/exhaustive-ui-core-treeselect.mjs +333 -423
  278. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  279. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  280. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  281. package/package.json +11 -11
  282. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  283. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  284. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  285. package/schematics/migrations.json +11 -6
  286. package/schematics/utils/removed-inputs.js +0 -0
  287. package/schematics/utils/renamed-inputs.js +175 -0
  288. package/schematics/utils/styleclass.js +24 -8
  289. package/schematics/utils/versions.json +8 -8
  290. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  291. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  292. package/types/exhaustive-ui-core-api.d.ts +2 -3
  293. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  294. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  295. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  296. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  297. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  298. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  299. package/types/exhaustive-ui-core-button.d.ts +57 -89
  300. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  301. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  302. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  303. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  304. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  305. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  306. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  307. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  308. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  309. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  310. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  311. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  312. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  313. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  314. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  315. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  316. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  317. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  318. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  319. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  320. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  321. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  322. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  323. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  324. package/types/exhaustive-ui-core-image.d.ts +35 -68
  325. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  326. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  327. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  328. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  329. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  330. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  331. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  332. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  333. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  334. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  335. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  336. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  337. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  338. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  339. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  340. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  341. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  342. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  343. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  344. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  345. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  346. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  347. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  348. package/types/exhaustive-ui-core-password.d.ts +56 -93
  349. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  350. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  351. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  352. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  353. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  354. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  355. package/types/exhaustive-ui-core-select.d.ts +137 -188
  356. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  357. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  358. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  359. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  360. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  361. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  362. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  363. package/types/exhaustive-ui-core-table.d.ts +349 -453
  364. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  365. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  366. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  367. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  368. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  369. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  370. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  371. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  372. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  373. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  374. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  375. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
@@ -2,7 +2,8 @@ export * from '@exhaustive-ui/core/types/confirmpopup';
2
2
  import * as i2 from '@angular/common';
3
3
  import { DOCUMENT, CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, ElementRef, Renderer2, ChangeDetectorRef, input, signal, computed, contentChild, viewChild, effect, untracked, contentChildren, numberAttribute, booleanAttribute, HostListener, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input, booleanAttribute, numberAttribute, signal, computed, contentChild, viewChild, afterEveryRender, effect, untracked, contentChildren, isSignal, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
7
  import { findSingle, absolutePosition, getOffset, addClass, appendChild, focus, isIOS, isTouchDevice } from '@exhaustive-ui/utils';
7
8
  import { ConfirmationService, OverlayService, PrimeTemplate, TranslationKeys, SharedModule } from '@exhaustive-ui/core/api';
8
9
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -88,57 +89,45 @@ class ConfirmPopup extends BaseComponent {
88
89
  el = inject(ElementRef);
89
90
  confirmationService = inject(ConfirmationService);
90
91
  renderer = inject(Renderer2);
91
- cd = inject(ChangeDetectorRef);
92
92
  overlayService = inject(OverlayService);
93
93
  document = inject(DOCUMENT);
94
94
  componentName = 'ConfirmPopup';
95
95
  $pcConfirmPopup = inject(CONFIRMPOPUP_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
96
96
  bindDirectiveInstance = inject(Bind, { self: true });
97
- onAfterViewChecked() {
98
- this.bindDirectiveInstance.setAttrs(this.ptm('host'));
99
- }
100
97
  /**
101
98
  * Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs.
102
99
  * @group Props
103
100
  */
104
- key;
101
+ key = input(/* @ts-ignore */
102
+ ...(ngDevMode ? [undefined, { debugName: "key" }] : /* istanbul ignore next */ []));
105
103
  /**
106
104
  * Element to receive the focus when the popup gets visible, valid values are "accept", "reject", and "none".
107
105
  * @group Props
108
106
  */
109
- defaultFocus = 'accept';
110
- /**
111
- * Transition options of the show animation.
112
- * @group Props
113
- * @deprecated since v21.0.0. Use `motionOptions` instead.
114
- */
115
- showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
116
- /**
117
- * Transition options of the hide animation.
118
- * @group Props
119
- * @deprecated since v21.0.0. Use `motionOptions` instead.
120
- */
121
- hideTransitionOptions = '.1s linear';
107
+ defaultFocus = input('accept', /* @ts-ignore */
108
+ ...(ngDevMode ? [{ debugName: "defaultFocus" }] : /* istanbul ignore next */ []));
122
109
  /**
123
110
  * Whether to automatically manage layering.
124
111
  * @group Props
125
112
  */
126
- autoZIndex = true;
113
+ autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
127
114
  /**
128
115
  * Base zIndex value to use in layering.
129
116
  * @group Props
130
117
  */
131
- baseZIndex = 0;
118
+ baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
132
119
  /**
133
120
  * Inline style of the component.
134
121
  * @group Props
135
122
  */
136
- style;
123
+ style = input(/* @ts-ignore */
124
+ ...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
137
125
  /**
138
126
  * Style class of the component.
139
127
  * @group Props
140
128
  */
141
- styleClass;
129
+ styleClass = input(/* @ts-ignore */
130
+ ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
142
131
  /**
143
132
  * Defines if the component is visible.
144
133
  * @group Props
@@ -173,11 +162,14 @@ class ConfirmPopup extends BaseComponent {
173
162
  ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
174
163
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
175
164
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
176
- container;
177
- subscription;
178
- confirmation;
179
- autoFocusAccept = false;
180
- autoFocusReject = false;
165
+ container = signal(undefined, /* @ts-ignore */
166
+ ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
167
+ confirmation = signal(undefined, /* @ts-ignore */
168
+ ...(ngDevMode ? [{ debugName: "confirmation" }] : /* istanbul ignore next */ []));
169
+ autoFocusAccept = signal(false, /* @ts-ignore */
170
+ ...(ngDevMode ? [{ debugName: "autoFocusAccept" }] : /* istanbul ignore next */ []));
171
+ autoFocusReject = signal(false, /* @ts-ignore */
172
+ ...(ngDevMode ? [{ debugName: "autoFocusReject" }] : /* istanbul ignore next */ []));
181
173
  /**
182
174
  * Custom content template.
183
175
  * @group Templates
@@ -200,19 +192,34 @@ class ConfirmPopup extends BaseComponent {
200
192
  headlessTemplate = contentChild('headless', { ...(ngDevMode ? { debugName: "headlessTemplate" } : /* istanbul ignore next */ {}), descendants: false });
201
193
  acceptButtonViewChild = viewChild('acceptButton', { ...(ngDevMode ? { debugName: "acceptButtonViewChild" } : /* istanbul ignore next */ {}), read: ElementRef });
202
194
  rejectButtonViewChild = viewChild('rejectButton', { ...(ngDevMode ? { debugName: "rejectButtonViewChild" } : /* istanbul ignore next */ {}), read: ElementRef });
203
- _contentTemplate;
204
- _acceptIconTemplate;
205
- _rejectIconTemplate;
206
- _headlessTemplate;
207
- documentClickListener;
208
- documentResizeListener;
209
- scrollHandler;
210
- window;
195
+ _contentTemplate = computed(() => this.templates()
196
+ .filter((item) => item.getType() === 'content')
197
+ .at(-1)?.template, /* @ts-ignore */
198
+ ...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
199
+ _acceptIconTemplate = computed(() => this.templates()
200
+ .filter((item) => item.getType() === 'accepticon')
201
+ .at(-1)?.template, /* @ts-ignore */
202
+ ...(ngDevMode ? [{ debugName: "_acceptIconTemplate" }] : /* istanbul ignore next */ []));
203
+ _rejectIconTemplate = computed(() => this.templates()
204
+ .filter((item) => item.getType() === 'rejecticon')
205
+ .at(-1)?.template, /* @ts-ignore */
206
+ ...(ngDevMode ? [{ debugName: "_rejectIconTemplate" }] : /* istanbul ignore next */ []));
207
+ _headlessTemplate = computed(() => this.templates()
208
+ .filter((item) => item.getType() === 'headless')
209
+ .at(-1)?.template, /* @ts-ignore */
210
+ ...(ngDevMode ? [{ debugName: "_headlessTemplate" }] : /* istanbul ignore next */ []));
211
+ documentClickListener = signal(undefined, /* @ts-ignore */
212
+ ...(ngDevMode ? [{ debugName: "documentClickListener" }] : /* istanbul ignore next */ []));
213
+ documentResizeListener = signal(undefined, /* @ts-ignore */
214
+ ...(ngDevMode ? [{ debugName: "documentResizeListener" }] : /* istanbul ignore next */ []));
215
+ scrollHandler = signal(undefined, /* @ts-ignore */
216
+ ...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
217
+ window = this.document.defaultView;
211
218
  _componentStyle = inject(ConfirmPopupStyle);
212
219
  constructor() {
213
220
  super();
214
- this.window = this.document.defaultView;
215
- this.subscription = this.confirmationService.requireConfirmation$.subscribe((confirmation) => {
221
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
222
+ this.confirmationService.requireConfirmation$.pipe(takeUntilDestroyed()).subscribe((confirmation) => {
216
223
  if (!confirmation) {
217
224
  this.hide();
218
225
  return;
@@ -220,19 +227,18 @@ class ConfirmPopup extends BaseComponent {
220
227
  if (this.computedVisible()) {
221
228
  requestAnimationFrame(() => {
222
229
  this.alignOverlay();
223
- this.cd.markForCheck();
224
230
  });
225
231
  }
226
- if (confirmation.key === this.key) {
227
- this.confirmation = confirmation;
228
- if (this.confirmation.accept) {
229
- this.confirmation.acceptEvent = new Subject();
230
- this.confirmation.acceptEvent.subscribe(this.confirmation.accept);
232
+ if (confirmation.key === this.key()) {
233
+ if (confirmation.accept) {
234
+ confirmation.acceptEvent = new Subject();
235
+ confirmation.acceptEvent.subscribe(confirmation.accept);
231
236
  }
232
- if (this.confirmation.reject) {
233
- this.confirmation.rejectEvent = new Subject();
234
- this.confirmation.rejectEvent.subscribe(this.confirmation.reject);
237
+ if (confirmation.reject) {
238
+ confirmation.rejectEvent = new Subject();
239
+ confirmation.rejectEvent.subscribe(confirmation.reject);
235
240
  }
241
+ this.confirmation.set(confirmation);
236
242
  this._visible.set(true);
237
243
  }
238
244
  });
@@ -248,47 +254,31 @@ class ConfirmPopup extends BaseComponent {
248
254
  }
249
255
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
250
256
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
251
- onAfterContentInit() {
252
- this.templates()?.forEach((item) => {
253
- switch (item.getType()) {
254
- case 'content':
255
- this._contentTemplate = item.template;
256
- break;
257
- case 'rejecticon':
258
- this._rejectIconTemplate = item.template;
259
- break;
260
- case 'accepticon':
261
- this._acceptIconTemplate = item.template;
262
- break;
263
- case 'headless':
264
- this._headlessTemplate = item.template;
265
- break;
266
- }
267
- });
268
- }
269
257
  option(name, k) {
270
- const confirmation = this.confirmation ?? {};
258
+ const confirmation = this.confirmation() ?? {};
271
259
  const source = Object.prototype.hasOwnProperty.call(confirmation, name) ? confirmation : this;
272
260
  if (Object.prototype.hasOwnProperty.call(source, name)) {
261
+ const value = isSignal(source[name]) ? source[name]() : source[name];
273
262
  if (k) {
274
- return source[name]?.[k];
263
+ return value?.[k];
275
264
  }
276
- return source[name];
265
+ return value;
277
266
  }
278
267
  return undefined;
279
268
  }
280
269
  onEscapeKeydown(event) {
281
- if (this.confirmation && this.confirmation.closeOnEscape !== false) {
270
+ const confirmation = this.confirmation();
271
+ if (confirmation && confirmation.closeOnEscape !== false) {
282
272
  this.onReject();
283
273
  }
284
274
  }
285
275
  onBeforeEnter(event) {
286
- if (this.confirmation) {
276
+ if (this.confirmation()) {
287
277
  const focus = this.option('defaultFocus');
288
- this.autoFocusAccept = focus === 'accept';
289
- this.autoFocusReject = focus === 'reject';
278
+ this.autoFocusAccept.set(focus === 'accept');
279
+ this.autoFocusReject.set(focus === 'reject');
290
280
  }
291
- this.container = event.element;
281
+ this.container.set(event.element);
292
282
  this.appendOverlay();
293
283
  this.alignOverlay();
294
284
  this.alignArrow();
@@ -304,56 +294,57 @@ class ConfirmPopup extends BaseComponent {
304
294
  }
305
295
  }
306
296
  onAfterLeave() {
307
- this.autoFocusAccept = false;
308
- this.autoFocusReject = false;
297
+ this.autoFocusAccept.set(false);
298
+ this.autoFocusReject.set(false);
309
299
  this.restoreAppend();
310
300
  this.onContainerDestroy();
311
301
  }
312
- getAcceptButtonProps() {
313
- return this.option('acceptButtonProps');
314
- }
315
- getRejectButtonProps() {
316
- return this.option('rejectButtonProps');
317
- }
302
+ getAcceptButtonProps = computed(() => this.option('acceptButtonProps'), /* @ts-ignore */
303
+ ...(ngDevMode ? [{ debugName: "getAcceptButtonProps" }] : /* istanbul ignore next */ []));
304
+ getRejectButtonProps = computed(() => this.option('rejectButtonProps'), /* @ts-ignore */
305
+ ...(ngDevMode ? [{ debugName: "getRejectButtonProps" }] : /* istanbul ignore next */ []));
318
306
  alignOverlay() {
319
- if (!this.confirmation || !this.confirmation.target) {
307
+ const confirmation = this.confirmation();
308
+ if (!confirmation || !confirmation.target) {
320
309
  return;
321
310
  }
322
- absolutePosition(this.container, this.confirmation?.target, false);
311
+ absolutePosition(this.container(), confirmation.target, false);
323
312
  }
324
313
  setZIndex() {
325
- if (this.autoZIndex) {
326
- ZIndexUtils.set('overlay', this.container, this.config.zIndex.overlay);
314
+ if (this.autoZIndex()) {
315
+ ZIndexUtils.set('overlay', this.container(), this.config.zIndex.overlay);
327
316
  }
328
317
  }
329
318
  alignArrow() {
330
- const containerOffset = getOffset(this.container);
331
- const targetOffset = getOffset(this.confirmation?.target);
319
+ const container = this.container();
320
+ const containerOffset = getOffset(container);
321
+ const targetOffset = getOffset(this.confirmation()?.target);
332
322
  let arrowLeft = 0;
333
323
  if (containerOffset && targetOffset && containerOffset.left < targetOffset.left) {
334
324
  arrowLeft = targetOffset.left - containerOffset.left;
335
325
  }
336
- if (this.container) {
337
- this.container.style.setProperty('--p-confirmpopup-arrow-left', `${arrowLeft}px`);
326
+ if (container) {
327
+ container.style.setProperty('--p-confirmpopup-arrow-left', `${arrowLeft}px`);
338
328
  }
339
329
  if (containerOffset && targetOffset && containerOffset.top < targetOffset.top) {
340
- this.container.setAttribute('data-p-confirmpopup-flipped', 'true');
341
- !this.$unstyled() && addClass(this.container, 'p-confirm-popup-flipped');
330
+ container.setAttribute('data-p-confirmpopup-flipped', 'true');
331
+ !this.$unstyled() && addClass(container, 'p-confirm-popup-flipped');
342
332
  }
343
333
  }
344
334
  appendOverlay() {
345
335
  if (this.$appendTo() && this.$appendTo() !== 'self') {
346
336
  if (this.$appendTo() === 'body') {
347
- appendChild(this.document.body, this.container);
337
+ appendChild(this.document.body, this.container());
348
338
  }
349
339
  else {
350
- appendChild(this.$appendTo(), this.container);
340
+ appendChild(this.$appendTo(), this.container());
351
341
  }
352
342
  }
353
343
  }
354
344
  restoreAppend() {
355
- if (this.container && this.$appendTo() !== 'self') {
356
- appendChild(this.el.nativeElement, this.container);
345
+ const container = this.container();
346
+ if (container && this.$appendTo() !== 'self') {
347
+ appendChild(this.el.nativeElement, container);
357
348
  }
358
349
  this.onContainerDestroy();
359
350
  }
@@ -361,18 +352,20 @@ class ConfirmPopup extends BaseComponent {
361
352
  this._visible.set(false);
362
353
  }
363
354
  onAccept() {
364
- if (this.confirmation?.acceptEvent) {
365
- this.confirmation.acceptEvent.next(undefined);
355
+ const confirmation = this.confirmation();
356
+ if (confirmation?.acceptEvent) {
357
+ confirmation.acceptEvent.next(undefined);
366
358
  }
367
359
  this.hide();
368
- focus(this.confirmation?.target);
360
+ focus(confirmation?.target);
369
361
  }
370
362
  onReject() {
371
- if (this.confirmation?.rejectEvent) {
372
- this.confirmation.rejectEvent.next(undefined);
363
+ const confirmation = this.confirmation();
364
+ if (confirmation?.rejectEvent) {
365
+ confirmation.rejectEvent.next(undefined);
373
366
  }
374
367
  this.hide();
375
- focus(this.confirmation?.target);
368
+ focus(confirmation?.target);
376
369
  }
377
370
  onOverlayClick(event) {
378
371
  this.overlayService.add({
@@ -398,23 +391,26 @@ class ConfirmPopup extends BaseComponent {
398
391
  this.unbindScrollListener();
399
392
  }
400
393
  bindDocumentClickListener() {
401
- if (!this.documentClickListener) {
394
+ if (!this.documentClickListener()) {
402
395
  let documentEvent = isIOS() ? 'touchstart' : 'click';
403
396
  const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;
404
- this.documentClickListener = this.renderer.listen(documentTarget, documentEvent, (event) => {
405
- if (this.confirmation && this.confirmation.dismissableMask !== false) {
406
- let targetElement = this.confirmation.target;
407
- if (this.container !== event.target && !this.container?.contains(event.target) && targetElement !== event.target && !targetElement.contains(event.target)) {
397
+ this.documentClickListener.set(this.renderer.listen(documentTarget, documentEvent, (event) => {
398
+ const confirmation = this.confirmation();
399
+ if (confirmation && confirmation.dismissableMask !== false) {
400
+ const container = this.container();
401
+ let targetElement = confirmation.target;
402
+ if (container !== event.target && !container?.contains(event.target) && targetElement !== event.target && !targetElement.contains(event.target)) {
408
403
  this.hide();
409
404
  }
410
405
  }
411
- });
406
+ }));
412
407
  }
413
408
  }
414
409
  unbindDocumentClickListener() {
415
- if (this.documentClickListener) {
416
- this.documentClickListener();
417
- this.documentClickListener = null;
410
+ const documentClickListener = this.documentClickListener();
411
+ if (documentClickListener) {
412
+ documentClickListener();
413
+ this.documentClickListener.set(null);
418
414
  }
419
415
  }
420
416
  onWindowResize() {
@@ -423,65 +419,65 @@ class ConfirmPopup extends BaseComponent {
423
419
  }
424
420
  }
425
421
  bindDocumentResizeListener() {
426
- if (!this.documentResizeListener) {
427
- this.documentResizeListener = this.renderer.listen(this.window, 'resize', this.onWindowResize.bind(this));
422
+ if (!this.documentResizeListener()) {
423
+ this.documentResizeListener.set(this.renderer.listen(this.window, 'resize', this.onWindowResize.bind(this)));
428
424
  }
429
425
  }
430
426
  unbindDocumentResizeListener() {
431
- if (this.documentResizeListener) {
432
- this.documentResizeListener();
433
- this.documentResizeListener = null;
427
+ const documentResizeListener = this.documentResizeListener();
428
+ if (documentResizeListener) {
429
+ documentResizeListener();
430
+ this.documentResizeListener.set(null);
434
431
  }
435
432
  }
436
433
  bindScrollListener() {
437
- if (!this.scrollHandler) {
438
- this.scrollHandler = new ConnectedOverlayScrollHandler(this.confirmation?.target, () => {
434
+ let scrollHandler = this.scrollHandler();
435
+ if (!scrollHandler) {
436
+ scrollHandler = new ConnectedOverlayScrollHandler(this.confirmation()?.target, () => {
439
437
  if (this.computedVisible()) {
440
438
  this.hide();
441
439
  }
442
440
  });
441
+ this.scrollHandler.set(scrollHandler);
443
442
  }
444
- this.scrollHandler.bindScrollListener();
443
+ scrollHandler.bindScrollListener();
445
444
  }
446
445
  unbindScrollListener() {
447
- if (this.scrollHandler) {
448
- this.scrollHandler.unbindScrollListener();
446
+ const scrollHandler = this.scrollHandler();
447
+ if (scrollHandler) {
448
+ scrollHandler.unbindScrollListener();
449
449
  }
450
450
  }
451
451
  unsubscribeConfirmationSubscriptions() {
452
- if (this.confirmation) {
453
- if (this.confirmation.acceptEvent) {
454
- this.confirmation.acceptEvent.unsubscribe();
452
+ const confirmation = this.confirmation();
453
+ if (confirmation) {
454
+ if (confirmation.acceptEvent) {
455
+ confirmation.acceptEvent.unsubscribe();
455
456
  }
456
- if (this.confirmation.rejectEvent) {
457
- this.confirmation.rejectEvent.unsubscribe();
457
+ if (confirmation.rejectEvent) {
458
+ confirmation.rejectEvent.unsubscribe();
458
459
  }
459
460
  }
460
461
  }
461
462
  onContainerDestroy() {
462
463
  this.unbindListeners();
463
464
  this.unsubscribeConfirmationSubscriptions();
464
- if (this.autoZIndex) {
465
- ZIndexUtils.clear(this.container);
465
+ if (this.autoZIndex()) {
466
+ ZIndexUtils.clear(this.container());
466
467
  }
467
- this.confirmation = null;
468
+ this.confirmation.set(null);
468
469
  this.render.set(false);
469
- this.container = null;
470
- }
471
- get acceptButtonLabel() {
472
- return this.confirmation?.acceptLabel || this.confirmation?.acceptButtonProps?.label || this.config.getTranslation(TranslationKeys.ACCEPT);
473
- }
474
- get rejectButtonLabel() {
475
- return this.confirmation?.rejectLabel || this.confirmation?.rejectButtonProps?.label || this.config.getTranslation(TranslationKeys.REJECT);
470
+ this.container.set(null);
476
471
  }
472
+ acceptButtonLabel = computed(() => this.confirmation()?.acceptLabel || this.confirmation()?.acceptButtonProps?.label || this.config.getTranslation(TranslationKeys.ACCEPT), /* @ts-ignore */
473
+ ...(ngDevMode ? [{ debugName: "acceptButtonLabel" }] : /* istanbul ignore next */ []));
474
+ rejectButtonLabel = computed(() => this.confirmation()?.rejectLabel || this.confirmation()?.rejectButtonProps?.label || this.config.getTranslation(TranslationKeys.REJECT), /* @ts-ignore */
475
+ ...(ngDevMode ? [{ debugName: "rejectButtonLabel" }] : /* istanbul ignore next */ []));
477
476
  onDestroy() {
478
477
  this.restoreAppend();
479
- if (this.subscription) {
480
- this.subscription.unsubscribe();
481
- }
482
478
  }
483
479
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmPopup, deps: [], target: i0.ɵɵFactoryTarget.Component });
484
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmPopup, isStandalone: true, selector: "p-confirmpopup", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: false, isRequired: false, transformFunction: null }, defaultFocus: { classPropertyName: "defaultFocus", publicName: "defaultFocus", isSignal: false, isRequired: false, transformFunction: null }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", 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 }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.Escape": "onEscapeKeydown($event)" } }, providers: [ConfirmPopupStyle, { provide: CONFIRMPOPUP_INSTANCE, useExisting: ConfirmPopup }, { provide: PARENT_INSTANCE, useExisting: ConfirmPopup }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"], isSignal: true }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "acceptButtonViewChild", first: true, predicate: ["acceptButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "rejectButtonViewChild", first: true, predicate: ["rejectButton"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
480
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmPopup, isStandalone: true, selector: "p-confirmpopup", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, defaultFocus: { classPropertyName: "defaultFocus", publicName: "defaultFocus", 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 }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.Escape": "onEscapeKeydown($event)" } }, providers: [ConfirmPopupStyle, { provide: CONFIRMPOPUP_INSTANCE, useExisting: ConfirmPopup }, { provide: PARENT_INSTANCE, useExisting: ConfirmPopup }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"], isSignal: true }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "acceptButtonViewChild", first: true, predicate: ["acceptButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "rejectButtonViewChild", first: true, predicate: ["rejectButton"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
485
481
  @if (render()) {
486
482
  <div
487
483
  [pMotion]="computedVisible()"
@@ -492,75 +488,80 @@ class ConfirmPopup extends BaseComponent {
492
488
  (pMotionOnAfterLeave)="onAfterLeave()"
493
489
  pFocusTrap
494
490
  [pBind]="ptm('root')"
495
- [class]="cn(cx('root'), styleClass)"
496
- [ngStyle]="style"
491
+ [class]="cn(cx('root'), styleClass())"
492
+ [ngStyle]="style()"
497
493
  role="alertdialog"
498
494
  (click)="onOverlayClick($event)"
499
495
  >
500
- <ng-container *ngIf="headlessTemplate() || _headlessTemplate; else notHeadless">
501
- <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate; context: { $implicit: confirmation }"></ng-container>
502
- </ng-container>
503
- <ng-template #notHeadless>
496
+ @if (headlessTemplate() || _headlessTemplate()) {
497
+ <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate(); context: { $implicit: confirmation() }"></ng-container>
498
+ } @else {
504
499
  <div #content [pBind]="ptm('content')" [class]="cx('content')">
505
- <ng-container *ngIf="contentTemplate() || _contentTemplate; else withoutContentTemplate">
506
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { $implicit: confirmation }"></ng-container>
507
- </ng-container>
508
- <ng-template #withoutContentTemplate>
509
- <i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation?.icon"></i>
510
- <span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation?.message }}</span>
511
- </ng-template>
500
+ @if (contentTemplate() || _contentTemplate()) {
501
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { $implicit: confirmation() }"></ng-container>
502
+ } @else {
503
+ @if (confirmation()?.icon) {
504
+ <i [pBind]="ptm('icon')" [class]="cx('icon')"></i>
505
+ }
506
+ <span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation()?.message }}</span>
507
+ }
512
508
  </div>
513
509
  <div [pBind]="ptm('footer')" [class]="cx('footer')">
514
- <p-button
515
- type="button"
516
- [label]="rejectButtonLabel"
517
- (onClick)="onReject()"
518
- [pt]="ptm('pcRejectButton')"
519
- [class]="cx('pcRejectButton')"
520
- [styleClass]="confirmation?.rejectButtonStyleClass"
521
- [size]="confirmation?.rejectButtonProps?.size || 'small'"
522
- [text]="confirmation?.rejectButtonProps?.text || false"
523
- *ngIf="confirmation?.rejectVisible !== false"
524
- [attr.aria-label]="rejectButtonLabel"
525
- [buttonProps]="getRejectButtonProps()"
526
- [autofocus]="autoFocusReject"
527
- [unstyled]="unstyled()"
528
- >
529
- <ng-template #icon>
530
- <i [class]="confirmation?.rejectIcon" *ngIf="confirmation?.rejectIcon; else rejecticon"></i>
531
- <ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate"></ng-template>
532
- </ng-template>
533
- </p-button>
534
- <p-button
535
- type="button"
536
- [label]="acceptButtonLabel"
537
- (onClick)="onAccept()"
538
- [pt]="ptm('pcAcceptButton')"
539
- [class]="cx('pcAcceptButton')"
540
- [styleClass]="confirmation?.acceptButtonStyleClass"
541
- [size]="confirmation?.acceptButtonProps?.size || 'small'"
542
- *ngIf="confirmation?.acceptVisible !== false"
543
- [attr.aria-label]="acceptButtonLabel"
544
- [buttonProps]="getAcceptButtonProps()"
545
- [autofocus]="autoFocusAccept"
546
- [unstyled]="unstyled()"
547
- >
548
- <ng-template #icon>
549
- <i [class]="confirmation?.acceptIcon" *ngIf="confirmation?.acceptIcon; else accepticontemplate"></i>
550
- <ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate"></ng-template>
551
- </ng-template>
552
- </p-button>
510
+ @if (confirmation()?.rejectVisible !== false) {
511
+ <p-button
512
+ type="button"
513
+ [label]="rejectButtonLabel()"
514
+ (onClick)="onReject()"
515
+ [pt]="ptm('pcRejectButton')"
516
+ [class]="cx('pcRejectButton')"
517
+ [styleClass]="confirmation()?.rejectButtonStyleClass"
518
+ [size]="confirmation()?.rejectButtonProps?.size || 'small'"
519
+ [text]="confirmation()?.rejectButtonProps?.text || false"
520
+ [attr.aria-label]="rejectButtonLabel()"
521
+ [buttonProps]="getRejectButtonProps()"
522
+ [autofocus]="autoFocusReject()"
523
+ [unstyled]="unstyled()"
524
+ >
525
+ <ng-template #icon>
526
+ @if (confirmation()?.rejectIcon && !rejectIconTemplate() && !_rejectIconTemplate()) {
527
+ <i [class]="confirmation()?.rejectIcon"></i>
528
+ }
529
+ <ng-template *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate()"></ng-template>
530
+ </ng-template>
531
+ </p-button>
532
+ }
533
+ @if (confirmation()?.acceptVisible !== false) {
534
+ <p-button
535
+ type="button"
536
+ [label]="acceptButtonLabel()"
537
+ (onClick)="onAccept()"
538
+ [pt]="ptm('pcAcceptButton')"
539
+ [class]="cx('pcAcceptButton')"
540
+ [styleClass]="confirmation()?.acceptButtonStyleClass"
541
+ [size]="confirmation()?.acceptButtonProps?.size || 'small'"
542
+ [attr.aria-label]="acceptButtonLabel()"
543
+ [buttonProps]="getAcceptButtonProps()"
544
+ [autofocus]="autoFocusAccept()"
545
+ [unstyled]="unstyled()"
546
+ >
547
+ <ng-template #icon>
548
+ @if (confirmation()?.acceptIcon && !acceptIconTemplate() && !_acceptIconTemplate()) {
549
+ <i [class]="confirmation()?.acceptIcon"></i>
550
+ }
551
+ <ng-template *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate()"></ng-template>
552
+ </ng-template>
553
+ </p-button>
554
+ }
553
555
  </div>
554
- </ng-template>
556
+ }
555
557
  </div>
556
558
  }
557
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: SharedModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i4.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 });
559
+ `, isInline: true, dependencies: [{ 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: SharedModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i4.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 });
558
560
  }
559
561
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmPopup, decorators: [{
560
562
  type: Component,
561
563
  args: [{
562
564
  selector: 'p-confirmpopup',
563
- standalone: true,
564
565
  imports: [CommonModule, SharedModule, ButtonModule, FocusTrap, Bind, MotionModule],
565
566
  providers: [ConfirmPopupStyle, { provide: CONFIRMPOPUP_INSTANCE, useExisting: ConfirmPopup }, { provide: PARENT_INSTANCE, useExisting: ConfirmPopup }],
566
567
  hostDirectives: [Bind],
@@ -575,91 +576,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
575
576
  (pMotionOnAfterLeave)="onAfterLeave()"
576
577
  pFocusTrap
577
578
  [pBind]="ptm('root')"
578
- [class]="cn(cx('root'), styleClass)"
579
- [ngStyle]="style"
579
+ [class]="cn(cx('root'), styleClass())"
580
+ [ngStyle]="style()"
580
581
  role="alertdialog"
581
582
  (click)="onOverlayClick($event)"
582
583
  >
583
- <ng-container *ngIf="headlessTemplate() || _headlessTemplate; else notHeadless">
584
- <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate; context: { $implicit: confirmation }"></ng-container>
585
- </ng-container>
586
- <ng-template #notHeadless>
584
+ @if (headlessTemplate() || _headlessTemplate()) {
585
+ <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate(); context: { $implicit: confirmation() }"></ng-container>
586
+ } @else {
587
587
  <div #content [pBind]="ptm('content')" [class]="cx('content')">
588
- <ng-container *ngIf="contentTemplate() || _contentTemplate; else withoutContentTemplate">
589
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { $implicit: confirmation }"></ng-container>
590
- </ng-container>
591
- <ng-template #withoutContentTemplate>
592
- <i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation?.icon"></i>
593
- <span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation?.message }}</span>
594
- </ng-template>
588
+ @if (contentTemplate() || _contentTemplate()) {
589
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { $implicit: confirmation() }"></ng-container>
590
+ } @else {
591
+ @if (confirmation()?.icon) {
592
+ <i [pBind]="ptm('icon')" [class]="cx('icon')"></i>
593
+ }
594
+ <span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation()?.message }}</span>
595
+ }
595
596
  </div>
596
597
  <div [pBind]="ptm('footer')" [class]="cx('footer')">
597
- <p-button
598
- type="button"
599
- [label]="rejectButtonLabel"
600
- (onClick)="onReject()"
601
- [pt]="ptm('pcRejectButton')"
602
- [class]="cx('pcRejectButton')"
603
- [styleClass]="confirmation?.rejectButtonStyleClass"
604
- [size]="confirmation?.rejectButtonProps?.size || 'small'"
605
- [text]="confirmation?.rejectButtonProps?.text || false"
606
- *ngIf="confirmation?.rejectVisible !== false"
607
- [attr.aria-label]="rejectButtonLabel"
608
- [buttonProps]="getRejectButtonProps()"
609
- [autofocus]="autoFocusReject"
610
- [unstyled]="unstyled()"
611
- >
612
- <ng-template #icon>
613
- <i [class]="confirmation?.rejectIcon" *ngIf="confirmation?.rejectIcon; else rejecticon"></i>
614
- <ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate"></ng-template>
615
- </ng-template>
616
- </p-button>
617
- <p-button
618
- type="button"
619
- [label]="acceptButtonLabel"
620
- (onClick)="onAccept()"
621
- [pt]="ptm('pcAcceptButton')"
622
- [class]="cx('pcAcceptButton')"
623
- [styleClass]="confirmation?.acceptButtonStyleClass"
624
- [size]="confirmation?.acceptButtonProps?.size || 'small'"
625
- *ngIf="confirmation?.acceptVisible !== false"
626
- [attr.aria-label]="acceptButtonLabel"
627
- [buttonProps]="getAcceptButtonProps()"
628
- [autofocus]="autoFocusAccept"
629
- [unstyled]="unstyled()"
630
- >
631
- <ng-template #icon>
632
- <i [class]="confirmation?.acceptIcon" *ngIf="confirmation?.acceptIcon; else accepticontemplate"></i>
633
- <ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate"></ng-template>
634
- </ng-template>
635
- </p-button>
598
+ @if (confirmation()?.rejectVisible !== false) {
599
+ <p-button
600
+ type="button"
601
+ [label]="rejectButtonLabel()"
602
+ (onClick)="onReject()"
603
+ [pt]="ptm('pcRejectButton')"
604
+ [class]="cx('pcRejectButton')"
605
+ [styleClass]="confirmation()?.rejectButtonStyleClass"
606
+ [size]="confirmation()?.rejectButtonProps?.size || 'small'"
607
+ [text]="confirmation()?.rejectButtonProps?.text || false"
608
+ [attr.aria-label]="rejectButtonLabel()"
609
+ [buttonProps]="getRejectButtonProps()"
610
+ [autofocus]="autoFocusReject()"
611
+ [unstyled]="unstyled()"
612
+ >
613
+ <ng-template #icon>
614
+ @if (confirmation()?.rejectIcon && !rejectIconTemplate() && !_rejectIconTemplate()) {
615
+ <i [class]="confirmation()?.rejectIcon"></i>
616
+ }
617
+ <ng-template *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate()"></ng-template>
618
+ </ng-template>
619
+ </p-button>
620
+ }
621
+ @if (confirmation()?.acceptVisible !== false) {
622
+ <p-button
623
+ type="button"
624
+ [label]="acceptButtonLabel()"
625
+ (onClick)="onAccept()"
626
+ [pt]="ptm('pcAcceptButton')"
627
+ [class]="cx('pcAcceptButton')"
628
+ [styleClass]="confirmation()?.acceptButtonStyleClass"
629
+ [size]="confirmation()?.acceptButtonProps?.size || 'small'"
630
+ [attr.aria-label]="acceptButtonLabel()"
631
+ [buttonProps]="getAcceptButtonProps()"
632
+ [autofocus]="autoFocusAccept()"
633
+ [unstyled]="unstyled()"
634
+ >
635
+ <ng-template #icon>
636
+ @if (confirmation()?.acceptIcon && !acceptIconTemplate() && !_acceptIconTemplate()) {
637
+ <i [class]="confirmation()?.acceptIcon"></i>
638
+ }
639
+ <ng-template *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate()"></ng-template>
640
+ </ng-template>
641
+ </p-button>
642
+ }
636
643
  </div>
637
- </ng-template>
644
+ }
638
645
  </div>
639
646
  }
640
647
  `,
641
648
  changeDetection: ChangeDetectionStrategy.OnPush,
642
649
  encapsulation: ViewEncapsulation.None
643
650
  }]
644
- }], ctorParameters: () => [], propDecorators: { key: [{
645
- type: Input
646
- }], defaultFocus: [{
647
- type: Input
648
- }], showTransitionOptions: [{
649
- type: Input
650
- }], hideTransitionOptions: [{
651
- type: Input
652
- }], autoZIndex: [{
653
- type: Input,
654
- args: [{ transform: booleanAttribute }]
655
- }], baseZIndex: [{
656
- type: Input,
657
- args: [{ transform: numberAttribute }]
658
- }], style: [{
659
- type: Input
660
- }], styleClass: [{
661
- type: Input
662
- }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], acceptButtonViewChild: [{ type: i0.ViewChild, args: ['acceptButton', { ...{ read: ElementRef }, isSignal: true }] }], rejectButtonViewChild: [{ type: i0.ViewChild, args: ['rejectButton', { ...{ read: ElementRef }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
651
+ }], ctorParameters: () => [], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], defaultFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultFocus", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], acceptButtonViewChild: [{ type: i0.ViewChild, args: ['acceptButton', { ...{ read: ElementRef }, isSignal: true }] }], rejectButtonViewChild: [{ type: i0.ViewChild, args: ['rejectButton', { ...{ read: ElementRef }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
663
652
  type: HostListener,
664
653
  args: ['document:keydown.Escape', ['$event']]
665
654
  }] } });