@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,7 @@ export * from '@exhaustive-ui/core/types/image';
2
2
  import * as i2 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, input, computed, output, viewChild, contentChild, signal, contentChildren, booleanAttribute, HostListener, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, inject, afterEveryRender, input, booleanAttribute, computed, output, viewChild, contentChild, signal, contentChildren, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { focus, appendChild } from '@exhaustive-ui/utils';
7
7
  import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
8
8
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -21,7 +21,7 @@ const classes = {
21
21
  root: ({ instance }) => [
22
22
  'p-image p-component',
23
23
  {
24
- 'p-image-preview': instance.preview
24
+ 'p-image-preview': instance.preview()
25
25
  }
26
26
  ],
27
27
  previewMask: 'p-image-preview-mask',
@@ -33,13 +33,13 @@ const classes = {
33
33
  zoomOutButton: ({ instance }) => [
34
34
  'p-image-action p-image-zoom-out-button',
35
35
  {
36
- 'p-disabled': instance.isZoomOutDisabled
36
+ 'p-disabled': instance.isZoomOutDisabled()
37
37
  }
38
38
  ],
39
39
  zoomInButton: ({ instance }) => [
40
40
  'p-image-action p-image-zoom-in-button',
41
41
  {
42
- 'p-disabled': instance.isZoomInDisabled
42
+ 'p-disabled': instance.isZoomInDisabled()
43
43
  }
44
44
  ],
45
45
  closeButton: 'p-image-action p-image-close-button',
@@ -112,112 +112,94 @@ var ImageClasses;
112
112
  ImageClasses["original"] = "p-image-original";
113
113
  })(ImageClasses || (ImageClasses = {}));
114
114
 
115
- const IMAGE_INSTANCE = new InjectionToken('IMAGE_INSTANCE');
116
115
  /**
117
116
  * Displays an image with preview and tranformation options. For multiple image, see Galleria.
118
117
  * @group Components
119
118
  */
120
119
  class Image extends BaseComponent {
121
120
  componentName = 'Image';
122
- $pcImage = inject(IMAGE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
123
121
  bindDirectiveInstance = inject(Bind, { self: true });
122
+ constructor() {
123
+ super();
124
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
125
+ }
124
126
  /**
125
127
  * Style class of the image element.
126
128
  * @group Props
127
129
  */
128
- imageClass;
130
+ imageClass = input(undefined, /* @ts-ignore */
131
+ ...(ngDevMode ? [{ debugName: "imageClass" }] : /* istanbul ignore next */ []));
129
132
  /**
130
133
  * Inline style of the image element.
131
134
  * @group Props
132
135
  */
133
- imageStyle;
134
- /**
135
- * Class of the element.
136
- * @deprecated since v20.0.0, use `class` instead.
137
- * @group Props
138
- */
139
- styleClass;
136
+ imageStyle = input(undefined, /* @ts-ignore */
137
+ ...(ngDevMode ? [{ debugName: "imageStyle" }] : /* istanbul ignore next */ []));
140
138
  /**
141
139
  * The source path for the main image.
142
140
  * @group Props
143
141
  */
144
- src;
142
+ src = input(undefined, /* @ts-ignore */
143
+ ...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
145
144
  /**
146
145
  * The srcset definition for the main image.
147
146
  * @group Props
148
147
  */
149
- srcSet;
148
+ srcSet = input(undefined, /* @ts-ignore */
149
+ ...(ngDevMode ? [{ debugName: "srcSet" }] : /* istanbul ignore next */ []));
150
150
  /**
151
151
  * The sizes definition for the main image.
152
152
  * @group Props
153
153
  */
154
- sizes;
154
+ sizes = input(undefined, /* @ts-ignore */
155
+ ...(ngDevMode ? [{ debugName: "sizes" }] : /* istanbul ignore next */ []));
155
156
  /**
156
157
  * The source path for the preview image.
157
158
  * @group Props
158
159
  */
159
- previewImageSrc;
160
+ previewImageSrc = input(undefined, /* @ts-ignore */
161
+ ...(ngDevMode ? [{ debugName: "previewImageSrc" }] : /* istanbul ignore next */ []));
160
162
  /**
161
163
  * The srcset definition for the preview image.
162
164
  * @group Props
163
165
  */
164
- previewImageSrcSet;
166
+ previewImageSrcSet = input(undefined, /* @ts-ignore */
167
+ ...(ngDevMode ? [{ debugName: "previewImageSrcSet" }] : /* istanbul ignore next */ []));
165
168
  /**
166
169
  * The sizes definition for the preview image.
167
170
  * @group Props
168
171
  */
169
- previewImageSizes;
172
+ previewImageSizes = input(undefined, /* @ts-ignore */
173
+ ...(ngDevMode ? [{ debugName: "previewImageSizes" }] : /* istanbul ignore next */ []));
170
174
  /**
171
175
  * Attribute of the preview image element.
172
176
  * @group Props
173
177
  */
174
- alt;
178
+ alt = input(undefined, /* @ts-ignore */
179
+ ...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
175
180
  /**
176
181
  * Attribute of the image element.
177
182
  * @group Props
178
183
  */
179
- width;
184
+ width = input(undefined, /* @ts-ignore */
185
+ ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
180
186
  /**
181
187
  * Attribute of the image element.
182
188
  * @group Props
183
189
  */
184
- height;
190
+ height = input(undefined, /* @ts-ignore */
191
+ ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
185
192
  /**
186
193
  * Attribute of the image element.
187
194
  * @group Props
188
195
  */
189
- loading;
196
+ loading = input(undefined, /* @ts-ignore */
197
+ ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
190
198
  /**
191
199
  * Controls the preview functionality.
192
200
  * @group Props
193
201
  */
194
- preview = false;
195
- /**
196
- * Transition options of the show animation
197
- * @group Props
198
- * @deprecated since v21.0.0. Use `motionOptions` instead.
199
- */
200
- showTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
201
- /**
202
- * Transition options of the hide animation
203
- * @group Props
204
- * @deprecated since v21.0.0. Use `motionOptions` instead.
205
- */
206
- hideTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
207
- /**
208
- * Enter animation class name of modal.
209
- * @defaultValue 'p-modal-enter'
210
- * @group Props
211
- */
212
- modalEnterAnimation = input('p-modal-enter', /* @ts-ignore */
213
- ...(ngDevMode ? [{ debugName: "modalEnterAnimation" }] : /* istanbul ignore next */ []));
214
- /**
215
- * Leave animation class name of modal.
216
- * @defaultValue 'p-modal-leave'
217
- * @group Props
218
- */
219
- modalLeaveAnimation = input('p-modal-leave', /* @ts-ignore */
220
- ...(ngDevMode ? [{ debugName: "modalLeaveAnimation" }] : /* istanbul ignore next */ []));
202
+ preview = input(false, { ...(ngDevMode ? { debugName: "preview" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
221
203
  /**
222
204
  * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
223
205
  * @defaultValue 'self'
@@ -315,22 +297,27 @@ class Image extends BaseComponent {
315
297
  ...(ngDevMode ? [{ debugName: "renderMask" }] : /* istanbul ignore next */ []));
316
298
  renderPreview = signal(false, /* @ts-ignore */
317
299
  ...(ngDevMode ? [{ debugName: "renderPreview" }] : /* istanbul ignore next */ []));
318
- maskVisible = false;
319
- previewVisible = false;
320
- rotate = 0;
321
- scale = 1;
322
- previewClick = false;
323
- container;
324
- wrapper;
300
+ maskVisible = signal(false, /* @ts-ignore */
301
+ ...(ngDevMode ? [{ debugName: "maskVisible" }] : /* istanbul ignore next */ []));
302
+ previewVisible = signal(false, /* @ts-ignore */
303
+ ...(ngDevMode ? [{ debugName: "previewVisible" }] : /* istanbul ignore next */ []));
304
+ rotate = signal(0, /* @ts-ignore */
305
+ ...(ngDevMode ? [{ debugName: "rotate" }] : /* istanbul ignore next */ []));
306
+ scale = signal(1, /* @ts-ignore */
307
+ ...(ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []));
308
+ previewClick = signal(false, /* @ts-ignore */
309
+ ...(ngDevMode ? [{ debugName: "previewClick" }] : /* istanbul ignore next */ []));
310
+ container = signal(undefined, /* @ts-ignore */
311
+ ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
312
+ wrapper = signal(undefined, /* @ts-ignore */
313
+ ...(ngDevMode ? [{ debugName: "wrapper" }] : /* istanbul ignore next */ []));
325
314
  _componentStyle = inject(ImageStyle);
326
315
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
327
316
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
328
- get isZoomOutDisabled() {
329
- return this.scale - this.zoomSettings.step <= this.zoomSettings.min;
330
- }
331
- get isZoomInDisabled() {
332
- return this.scale + this.zoomSettings.step >= this.zoomSettings.max;
333
- }
317
+ isZoomOutDisabled = computed(() => this.scale() - this.zoomSettings.step <= this.zoomSettings.min, /* @ts-ignore */
318
+ ...(ngDevMode ? [{ debugName: "isZoomOutDisabled" }] : /* istanbul ignore next */ []));
319
+ isZoomInDisabled = computed(() => this.scale() + this.zoomSettings.step >= this.zoomSettings.max, /* @ts-ignore */
320
+ ...(ngDevMode ? [{ debugName: "isZoomInDisabled" }] : /* istanbul ignore next */ []));
334
321
  zoomSettings = {
335
322
  default: 1,
336
323
  step: 0.1,
@@ -339,64 +326,52 @@ class Image extends BaseComponent {
339
326
  };
340
327
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
341
328
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
342
- _indicatorTemplate;
343
- _rotateRightIconTemplate;
344
- _rotateLeftIconTemplate;
345
- _zoomOutIconTemplate;
346
- _zoomInIconTemplate;
347
- _closeIconTemplate;
348
- _imageTemplate;
349
- _previewTemplate;
350
- onAfterViewChecked() {
351
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
352
- }
353
- onAfterContentInit() {
354
- this.templates()?.forEach((item) => {
355
- switch (item.getType()) {
356
- case 'indicator':
357
- this._indicatorTemplate = item.template;
358
- break;
359
- case 'rotaterighticon':
360
- this._rotateRightIconTemplate = item.template;
361
- break;
362
- case 'rotatelefticon':
363
- this._rotateLeftIconTemplate = item.template;
364
- break;
365
- case 'zoomouticon':
366
- this._zoomOutIconTemplate = item.template;
367
- break;
368
- case 'zoominicon':
369
- this._zoomInIconTemplate = item.template;
370
- break;
371
- case 'closeicon':
372
- this._closeIconTemplate = item.template;
373
- break;
374
- case 'image':
375
- this._imageTemplate = item.template;
376
- break;
377
- case 'preview':
378
- this._previewTemplate = item.template;
379
- break;
380
- default:
381
- this._indicatorTemplate = item.template;
382
- break;
383
- }
384
- });
385
- }
329
+ _indicatorTemplate = computed(() => this.templates()
330
+ .filter((item) => !['rotaterighticon', 'rotatelefticon', 'zoomouticon', 'zoominicon', 'closeicon', 'image', 'preview'].includes(item.getType()))
331
+ .at(-1)?.template, /* @ts-ignore */
332
+ ...(ngDevMode ? [{ debugName: "_indicatorTemplate" }] : /* istanbul ignore next */ []));
333
+ _rotateRightIconTemplate = computed(() => this.templates()
334
+ .filter((item) => item.getType() === 'rotaterighticon')
335
+ .at(-1)?.template, /* @ts-ignore */
336
+ ...(ngDevMode ? [{ debugName: "_rotateRightIconTemplate" }] : /* istanbul ignore next */ []));
337
+ _rotateLeftIconTemplate = computed(() => this.templates()
338
+ .filter((item) => item.getType() === 'rotatelefticon')
339
+ .at(-1)?.template, /* @ts-ignore */
340
+ ...(ngDevMode ? [{ debugName: "_rotateLeftIconTemplate" }] : /* istanbul ignore next */ []));
341
+ _zoomOutIconTemplate = computed(() => this.templates()
342
+ .filter((item) => item.getType() === 'zoomouticon')
343
+ .at(-1)?.template, /* @ts-ignore */
344
+ ...(ngDevMode ? [{ debugName: "_zoomOutIconTemplate" }] : /* istanbul ignore next */ []));
345
+ _zoomInIconTemplate = computed(() => this.templates()
346
+ .filter((item) => item.getType() === 'zoominicon')
347
+ .at(-1)?.template, /* @ts-ignore */
348
+ ...(ngDevMode ? [{ debugName: "_zoomInIconTemplate" }] : /* istanbul ignore next */ []));
349
+ _closeIconTemplate = computed(() => this.templates()
350
+ .filter((item) => item.getType() === 'closeicon')
351
+ .at(-1)?.template, /* @ts-ignore */
352
+ ...(ngDevMode ? [{ debugName: "_closeIconTemplate" }] : /* istanbul ignore next */ []));
353
+ _imageTemplate = computed(() => this.templates()
354
+ .filter((item) => item.getType() === 'image')
355
+ .at(-1)?.template, /* @ts-ignore */
356
+ ...(ngDevMode ? [{ debugName: "_imageTemplate" }] : /* istanbul ignore next */ []));
357
+ _previewTemplate = computed(() => this.templates()
358
+ .filter((item) => item.getType() === 'preview')
359
+ .at(-1)?.template, /* @ts-ignore */
360
+ ...(ngDevMode ? [{ debugName: "_previewTemplate" }] : /* istanbul ignore next */ []));
386
361
  onImageClick() {
387
- if (this.preview) {
388
- this.maskVisible = true;
389
- this.previewVisible = true;
362
+ if (this.preview()) {
363
+ this.maskVisible.set(true);
364
+ this.previewVisible.set(true);
390
365
  this.renderMask.set(true);
391
366
  this.renderPreview.set(true);
392
367
  blockBodyScroll();
393
368
  }
394
369
  }
395
370
  onMaskClick() {
396
- if (!this.previewClick) {
371
+ if (!this.previewClick()) {
397
372
  this.closePreview();
398
373
  }
399
- this.previewClick = false;
374
+ this.previewClick.set(false);
400
375
  }
401
376
  onMaskKeydown(event) {
402
377
  switch (event.code) {
@@ -412,28 +387,28 @@ class Image extends BaseComponent {
412
387
  }
413
388
  }
414
389
  onPreviewImageClick() {
415
- this.previewClick = true;
390
+ this.previewClick.set(true);
416
391
  }
417
392
  rotateRight() {
418
- this.rotate += 90;
419
- this.previewClick = true;
393
+ this.rotate.update((rotate) => rotate + 90);
394
+ this.previewClick.set(true);
420
395
  }
421
396
  rotateLeft() {
422
- this.rotate -= 90;
423
- this.previewClick = true;
397
+ this.rotate.update((rotate) => rotate - 90);
398
+ this.previewClick.set(true);
424
399
  }
425
400
  zoomIn() {
426
- this.scale = this.scale + this.zoomSettings.step;
427
- this.previewClick = true;
401
+ this.scale.update((scale) => scale + this.zoomSettings.step);
402
+ this.previewClick.set(true);
428
403
  }
429
404
  zoomOut() {
430
- this.scale = this.scale - this.zoomSettings.step;
431
- this.previewClick = true;
405
+ this.scale.update((scale) => scale - this.zoomSettings.step);
406
+ this.previewClick.set(true);
432
407
  }
433
408
  onAnimationStart(event) {
434
- this.container = event.element;
435
- this.wrapper = this.container?.parentElement;
436
- this.$attrSelector && this.wrapper?.setAttribute(this.$attrSelector, '');
409
+ this.container.set(event.element);
410
+ this.wrapper.set(this.container()?.parentElement);
411
+ this.$attrSelector && this.wrapper()?.setAttribute(this.$attrSelector, '');
437
412
  this.appendContainer();
438
413
  this.moveOnTop();
439
414
  this.onShow.emit({});
@@ -442,7 +417,7 @@ class Image extends BaseComponent {
442
417
  }, 25);
443
418
  }
444
419
  onBeforeLeave() {
445
- this.maskVisible = false;
420
+ this.maskVisible.set(false);
446
421
  }
447
422
  onAnimationEnd() {
448
423
  this.renderPreview.set(false);
@@ -451,31 +426,32 @@ class Image extends BaseComponent {
451
426
  if (!this.renderPreview()) {
452
427
  this.renderMask.set(false);
453
428
  }
454
- ZIndexUtils.clear(this.wrapper);
455
- this.container = null;
456
- this.wrapper = null;
457
- this.rotate = 0;
458
- this.scale = this.zoomSettings.default;
429
+ ZIndexUtils.clear(this.wrapper());
430
+ this.container.set(null);
431
+ this.wrapper.set(null);
432
+ this.rotate.set(0);
433
+ this.scale.set(this.zoomSettings.default);
459
434
  unblockBodyScroll();
460
435
  this.onHide.emit({});
461
- this.cd.markForCheck();
462
436
  }
463
437
  moveOnTop() {
464
- ZIndexUtils.set('modal', this.wrapper, this.config.zIndex.modal);
438
+ ZIndexUtils.set('modal', this.wrapper(), this.config.zIndex.modal);
465
439
  }
466
440
  appendContainer() {
441
+ const wrapper = this.wrapper();
467
442
  if (this.$appendTo() && this.$appendTo() !== 'self') {
468
- if (this.$appendTo() === 'body' && this.wrapper) {
469
- this.document.body.appendChild(this.wrapper);
443
+ if (this.$appendTo() === 'body' && wrapper) {
444
+ this.document.body.appendChild(wrapper);
470
445
  }
471
- else if (this.wrapper) {
472
- appendChild(this.$appendTo(), this.wrapper);
446
+ else if (wrapper) {
447
+ appendChild(this.$appendTo(), wrapper);
473
448
  }
474
449
  }
475
450
  }
476
- imagePreviewStyle() {
477
- return { transform: 'rotate(' + this.rotate + 'deg) scale(' + this.scale + ')' };
478
- }
451
+ imagePreviewStyle = computed(() => {
452
+ return { transform: 'rotate(' + this.rotate() + 'deg) scale(' + this.scale() + ')' };
453
+ }, /* @ts-ignore */
454
+ ...(ngDevMode ? [{ debugName: "imagePreviewStyle" }] : /* istanbul ignore next */ []));
479
455
  get zoomImageAriaLabel() {
480
456
  return this.config.translation.aria ? this.config.translation.aria.zoomImage : undefined;
481
457
  }
@@ -483,7 +459,7 @@ class Image extends BaseComponent {
483
459
  event.stopPropagation();
484
460
  }
485
461
  closePreview() {
486
- this.previewVisible = false;
462
+ this.previewVisible.set(false);
487
463
  }
488
464
  imageError(event) {
489
465
  this.onImageError.emit(event);
@@ -504,34 +480,34 @@ class Image extends BaseComponent {
504
480
  return this.config.translation.aria ? this.config.translation.aria.close : undefined;
505
481
  }
506
482
  onKeydownHandler() {
507
- if (this.previewVisible) {
483
+ if (this.previewVisible()) {
508
484
  this.closePreview();
509
485
  }
510
486
  }
511
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Image, deps: null, target: i0.ɵɵFactoryTarget.Component });
512
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Image, isStandalone: true, selector: "p-image", inputs: { imageClass: { classPropertyName: "imageClass", publicName: "imageClass", isSignal: false, isRequired: false, transformFunction: null }, imageStyle: { classPropertyName: "imageStyle", publicName: "imageStyle", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: false, isRequired: false, transformFunction: null }, srcSet: { classPropertyName: "srcSet", publicName: "srcSet", isSignal: false, isRequired: false, transformFunction: null }, sizes: { classPropertyName: "sizes", publicName: "sizes", isSignal: false, isRequired: false, transformFunction: null }, previewImageSrc: { classPropertyName: "previewImageSrc", publicName: "previewImageSrc", isSignal: false, isRequired: false, transformFunction: null }, previewImageSrcSet: { classPropertyName: "previewImageSrcSet", publicName: "previewImageSrcSet", isSignal: false, isRequired: false, transformFunction: null }, previewImageSizes: { classPropertyName: "previewImageSizes", publicName: "previewImageSizes", isSignal: false, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: false, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: false, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: false, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: false, isRequired: false, transformFunction: null }, preview: { classPropertyName: "preview", publicName: "preview", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, modalEnterAnimation: { classPropertyName: "modalEnterAnimation", publicName: "modalEnterAnimation", isSignal: true, isRequired: false, transformFunction: null }, modalLeaveAnimation: { classPropertyName: "modalLeaveAnimation", publicName: "modalLeaveAnimation", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, maskMotionOptions: { classPropertyName: "maskMotionOptions", publicName: "maskMotionOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide", onImageError: "onImageError" }, host: { listeners: { "document:keydown.escape": "onKeydownHandler()" }, properties: { "class": "cn(cx('root'),styleClass)" } }, providers: [ImageStyle, { provide: IMAGE_INSTANCE, useExisting: Image }, { provide: PARENT_INSTANCE, useExisting: Image }], queries: [{ propertyName: "indicatorTemplate", first: true, predicate: ["indicator"], isSignal: true }, { propertyName: "rotateRightIconTemplate", first: true, predicate: ["rotaterighticon"], isSignal: true }, { propertyName: "rotateLeftIconTemplate", first: true, predicate: ["rotatelefticon"], isSignal: true }, { propertyName: "zoomOutIconTemplate", first: true, predicate: ["zoomouticon"], isSignal: true }, { propertyName: "zoomInIconTemplate", first: true, predicate: ["zoominicon"], isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "previewTemplate", first: true, predicate: ["preview"], isSignal: true }, { propertyName: "imageTemplate", first: true, predicate: ["image"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "previewButton", first: true, predicate: ["previewButton"], descendants: true, isSignal: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
513
- @if (!imageTemplate() && !_imageTemplate) {
487
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Image, deps: [], target: i0.ɵɵFactoryTarget.Component });
488
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Image, isStandalone: true, selector: "p-image", inputs: { imageClass: { classPropertyName: "imageClass", publicName: "imageClass", isSignal: true, isRequired: false, transformFunction: null }, imageStyle: { classPropertyName: "imageStyle", publicName: "imageStyle", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, srcSet: { classPropertyName: "srcSet", publicName: "srcSet", isSignal: true, isRequired: false, transformFunction: null }, sizes: { classPropertyName: "sizes", publicName: "sizes", isSignal: true, isRequired: false, transformFunction: null }, previewImageSrc: { classPropertyName: "previewImageSrc", publicName: "previewImageSrc", isSignal: true, isRequired: false, transformFunction: null }, previewImageSrcSet: { classPropertyName: "previewImageSrcSet", publicName: "previewImageSrcSet", isSignal: true, isRequired: false, transformFunction: null }, previewImageSizes: { classPropertyName: "previewImageSizes", publicName: "previewImageSizes", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, preview: { classPropertyName: "preview", publicName: "preview", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, maskMotionOptions: { classPropertyName: "maskMotionOptions", publicName: "maskMotionOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide", onImageError: "onImageError" }, host: { listeners: { "document:keydown.escape": "onKeydownHandler()" }, properties: { "class": "cx('root')" } }, providers: [ImageStyle, { provide: PARENT_INSTANCE, useExisting: Image }], queries: [{ propertyName: "indicatorTemplate", first: true, predicate: ["indicator"], isSignal: true }, { propertyName: "rotateRightIconTemplate", first: true, predicate: ["rotaterighticon"], isSignal: true }, { propertyName: "rotateLeftIconTemplate", first: true, predicate: ["rotatelefticon"], isSignal: true }, { propertyName: "zoomOutIconTemplate", first: true, predicate: ["zoomouticon"], isSignal: true }, { propertyName: "zoomInIconTemplate", first: true, predicate: ["zoominicon"], isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "previewTemplate", first: true, predicate: ["preview"], isSignal: true }, { propertyName: "imageTemplate", first: true, predicate: ["image"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "previewButton", first: true, predicate: ["previewButton"], descendants: true, isSignal: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
489
+ @if (!imageTemplate() && !_imageTemplate()) {
514
490
  <img
515
- [attr.src]="src"
516
- [attr.srcset]="srcSet"
517
- [attr.sizes]="sizes"
518
- [attr.alt]="alt"
519
- [attr.width]="width"
520
- [attr.height]="height"
521
- [attr.loading]="loading"
522
- [ngStyle]="imageStyle"
523
- [class]="imageClass"
491
+ [attr.src]="src()"
492
+ [attr.srcset]="srcSet()"
493
+ [attr.sizes]="sizes()"
494
+ [attr.alt]="alt()"
495
+ [attr.width]="width()"
496
+ [attr.height]="height()"
497
+ [attr.loading]="loading()"
498
+ [ngStyle]="imageStyle()"
499
+ [class]="imageClass()"
524
500
  (error)="imageError($event)"
525
501
  [pBind]="ptm('image')"
526
502
  />
527
503
  }
528
504
 
529
- <ng-container *ngTemplateOutlet="imageTemplate() || _imageTemplate; context: { errorCallback: imageError.bind(this) }"></ng-container>
505
+ <ng-container *ngTemplateOutlet="imageTemplate() || _imageTemplate(); context: { errorCallback: imageError.bind(this) }"></ng-container>
530
506
 
531
- @if (preview) {
532
- <button [attr.aria-label]="zoomImageAriaLabel" type="button" [class]="cx('previewMask')" (click)="onImageClick()" #previewButton [ngStyle]="{ height: height + 'px', width: width + 'px' }" [pBind]="ptm('previewMask')">
533
- @if (indicatorTemplate() || _indicatorTemplate) {
534
- <ng-container *ngTemplateOutlet="indicatorTemplate() || _indicatorTemplate"></ng-container>
507
+ @if (preview()) {
508
+ <button [attr.aria-label]="zoomImageAriaLabel" type="button" [class]="cx('previewMask')" (click)="onImageClick()" #previewButton [ngStyle]="{ height: height() + 'px', width: width() + 'px' }" [pBind]="ptm('previewMask')">
509
+ @if (indicatorTemplate() || _indicatorTemplate()) {
510
+ <ng-container *ngTemplateOutlet="indicatorTemplate() || _indicatorTemplate()"></ng-container>
535
511
  } @else {
536
512
  <svg data-p-icon="eye" [class]="cx('previewIcon')" [pBind]="ptm('previewIcon')" />
537
513
  }
@@ -541,13 +517,13 @@ class Image extends BaseComponent {
541
517
  <div
542
518
  #mask
543
519
  [class]="cx('mask')"
544
- [attr.aria-modal]="maskVisible"
520
+ [attr.aria-modal]="maskVisible()"
545
521
  role="dialog"
546
522
  (click)="onMaskClick()"
547
523
  (keydown)="onMaskKeydown($event)"
548
524
  pFocusTrap
549
525
  [pBind]="ptm('mask')"
550
- [pMotion]="maskVisible"
526
+ [pMotion]="maskVisible()"
551
527
  [pMotionAppear]="true"
552
528
  [pMotionEnterActiveClass]="'p-overlay-mask-enter-active'"
553
529
  [pMotionLeaveActiveClass]="'p-overlay-mask-leave-active'"
@@ -556,43 +532,51 @@ class Image extends BaseComponent {
556
532
  >
557
533
  <div [class]="cx('toolbar')" (click)="handleToolbarClick($event)" [pBind]="ptm('toolbar')">
558
534
  <button [class]="cx('rotateRightButton')" (click)="rotateRight()" type="button" [attr.aria-label]="rightAriaLabel()" [pBind]="ptm('rotateRightButton')">
559
- @if (!rotateRightIconTemplate() && !_rotateRightIconTemplate) {
535
+ @if (!rotateRightIconTemplate() && !_rotateRightIconTemplate()) {
560
536
  <svg data-p-icon="refresh" />
561
537
  }
562
- <ng-template *ngTemplateOutlet="rotateRightIconTemplate() || _rotateRightIconTemplate"></ng-template>
538
+ <ng-template *ngTemplateOutlet="rotateRightIconTemplate() || _rotateRightIconTemplate()"></ng-template>
563
539
  </button>
564
540
  <button [class]="cx('rotateLeftButton')" (click)="rotateLeft()" type="button" [attr.aria-label]="leftAriaLabel()" [pBind]="ptm('rotateLeftButton')">
565
- @if (!rotateLeftIconTemplate() && !_rotateLeftIconTemplate) {
541
+ @if (!rotateLeftIconTemplate() && !_rotateLeftIconTemplate()) {
566
542
  <svg data-p-icon="undo" />
567
543
  }
568
- <ng-template *ngTemplateOutlet="rotateLeftIconTemplate() || _rotateLeftIconTemplate"></ng-template>
544
+ <ng-template *ngTemplateOutlet="rotateLeftIconTemplate() || _rotateLeftIconTemplate()"></ng-template>
569
545
  </button>
570
- <button [class]="cx('zoomOutButton')" (click)="zoomOut()" type="button" [disabled]="isZoomOutDisabled" [attr.aria-label]="zoomOutAriaLabel()" [pBind]="ptm('zoomOutButton')">
571
- @if (!zoomOutIconTemplate() && !_zoomOutIconTemplate) {
546
+ <button [class]="cx('zoomOutButton')" (click)="zoomOut()" type="button" [disabled]="isZoomOutDisabled()" [attr.aria-label]="zoomOutAriaLabel()" [pBind]="ptm('zoomOutButton')">
547
+ @if (!zoomOutIconTemplate() && !_zoomOutIconTemplate()) {
572
548
  <svg data-p-icon="search-minus" />
573
549
  }
574
- <ng-template *ngTemplateOutlet="zoomOutIconTemplate() || _zoomOutIconTemplate"></ng-template>
550
+ <ng-template *ngTemplateOutlet="zoomOutIconTemplate() || _zoomOutIconTemplate()"></ng-template>
575
551
  </button>
576
- <button [class]="cx('zoomInButton')" (click)="zoomIn()" type="button" [disabled]="isZoomInDisabled" [attr.aria-label]="zoomInAriaLabel()" [pBind]="ptm('zoomInButton')">
577
- @if (!zoomInIconTemplate() && !_zoomInIconTemplate) {
552
+ <button [class]="cx('zoomInButton')" (click)="zoomIn()" type="button" [disabled]="isZoomInDisabled()" [attr.aria-label]="zoomInAriaLabel()" [pBind]="ptm('zoomInButton')">
553
+ @if (!zoomInIconTemplate() && !_zoomInIconTemplate()) {
578
554
  <svg data-p-icon="search-plus" />
579
555
  }
580
- <ng-template *ngTemplateOutlet="zoomInIconTemplate() || _zoomInIconTemplate"></ng-template>
556
+ <ng-template *ngTemplateOutlet="zoomInIconTemplate() || _zoomInIconTemplate()"></ng-template>
581
557
  </button>
582
558
  <button [class]="cx('closeButton')" type="button" (click)="closePreview()" [attr.aria-label]="closeAriaLabel()" #closeButton [pBind]="ptm('closeButton')">
583
- @if (!closeIconTemplate() && !_closeIconTemplate) {
559
+ @if (!closeIconTemplate() && !_closeIconTemplate()) {
584
560
  <svg data-p-icon="times" />
585
561
  }
586
- <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate"></ng-template>
562
+ <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate()"></ng-template>
587
563
  </button>
588
564
  </div>
589
565
  @if (renderPreview()) {
590
- <p-motion [visible]="previewVisible" name="p-image-original" [appear]="true" [options]="computedMotionOptions()" (onBeforeEnter)="onAnimationStart($event)" (onBeforeLeave)="onBeforeLeave()" (onAfterLeave)="onAnimationEnd($event)">
591
- @if (!previewTemplate() && !_previewTemplate) {
566
+ <p-motion
567
+ [visible]="previewVisible()"
568
+ name="p-image-original"
569
+ [appear]="true"
570
+ [options]="computedMotionOptions()"
571
+ (onBeforeEnter)="onAnimationStart($event)"
572
+ (onBeforeLeave)="onBeforeLeave()"
573
+ (onAfterLeave)="onAnimationEnd($event)"
574
+ >
575
+ @if (!previewTemplate() && !_previewTemplate()) {
592
576
  <img
593
- [attr.src]="previewImageSrc ? previewImageSrc : src"
594
- [attr.srcset]="previewImageSrcSet"
595
- [attr.sizes]="previewImageSizes"
577
+ [attr.src]="previewImageSrc() ? previewImageSrc() : src()"
578
+ [attr.srcset]="previewImageSrcSet()"
579
+ [attr.sizes]="previewImageSizes()"
596
580
  [class]="cx('original')"
597
581
  [ngStyle]="imagePreviewStyle()"
598
582
  (click)="onPreviewImageClick()"
@@ -601,7 +585,7 @@ class Image extends BaseComponent {
601
585
  }
602
586
  <ng-container
603
587
  *ngTemplateOutlet="
604
- previewTemplate() || _previewTemplate;
588
+ previewTemplate() || _previewTemplate();
605
589
  context: {
606
590
  class: cx('original'),
607
591
  style: imagePreviewStyle(),
@@ -620,31 +604,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
620
604
  type: Component,
621
605
  args: [{
622
606
  selector: 'p-image',
623
- standalone: true,
624
607
  imports: [CommonModule, RefreshIcon, EyeIcon, UndoIcon, SearchMinusIcon, SearchPlusIcon, TimesIcon, FocusTrap, SharedModule, BindModule, MotionModule],
625
608
  template: `
626
- @if (!imageTemplate() && !_imageTemplate) {
609
+ @if (!imageTemplate() && !_imageTemplate()) {
627
610
  <img
628
- [attr.src]="src"
629
- [attr.srcset]="srcSet"
630
- [attr.sizes]="sizes"
631
- [attr.alt]="alt"
632
- [attr.width]="width"
633
- [attr.height]="height"
634
- [attr.loading]="loading"
635
- [ngStyle]="imageStyle"
636
- [class]="imageClass"
611
+ [attr.src]="src()"
612
+ [attr.srcset]="srcSet()"
613
+ [attr.sizes]="sizes()"
614
+ [attr.alt]="alt()"
615
+ [attr.width]="width()"
616
+ [attr.height]="height()"
617
+ [attr.loading]="loading()"
618
+ [ngStyle]="imageStyle()"
619
+ [class]="imageClass()"
637
620
  (error)="imageError($event)"
638
621
  [pBind]="ptm('image')"
639
622
  />
640
623
  }
641
624
 
642
- <ng-container *ngTemplateOutlet="imageTemplate() || _imageTemplate; context: { errorCallback: imageError.bind(this) }"></ng-container>
625
+ <ng-container *ngTemplateOutlet="imageTemplate() || _imageTemplate(); context: { errorCallback: imageError.bind(this) }"></ng-container>
643
626
 
644
- @if (preview) {
645
- <button [attr.aria-label]="zoomImageAriaLabel" type="button" [class]="cx('previewMask')" (click)="onImageClick()" #previewButton [ngStyle]="{ height: height + 'px', width: width + 'px' }" [pBind]="ptm('previewMask')">
646
- @if (indicatorTemplate() || _indicatorTemplate) {
647
- <ng-container *ngTemplateOutlet="indicatorTemplate() || _indicatorTemplate"></ng-container>
627
+ @if (preview()) {
628
+ <button [attr.aria-label]="zoomImageAriaLabel" type="button" [class]="cx('previewMask')" (click)="onImageClick()" #previewButton [ngStyle]="{ height: height() + 'px', width: width() + 'px' }" [pBind]="ptm('previewMask')">
629
+ @if (indicatorTemplate() || _indicatorTemplate()) {
630
+ <ng-container *ngTemplateOutlet="indicatorTemplate() || _indicatorTemplate()"></ng-container>
648
631
  } @else {
649
632
  <svg data-p-icon="eye" [class]="cx('previewIcon')" [pBind]="ptm('previewIcon')" />
650
633
  }
@@ -654,13 +637,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
654
637
  <div
655
638
  #mask
656
639
  [class]="cx('mask')"
657
- [attr.aria-modal]="maskVisible"
640
+ [attr.aria-modal]="maskVisible()"
658
641
  role="dialog"
659
642
  (click)="onMaskClick()"
660
643
  (keydown)="onMaskKeydown($event)"
661
644
  pFocusTrap
662
645
  [pBind]="ptm('mask')"
663
- [pMotion]="maskVisible"
646
+ [pMotion]="maskVisible()"
664
647
  [pMotionAppear]="true"
665
648
  [pMotionEnterActiveClass]="'p-overlay-mask-enter-active'"
666
649
  [pMotionLeaveActiveClass]="'p-overlay-mask-leave-active'"
@@ -669,43 +652,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
669
652
  >
670
653
  <div [class]="cx('toolbar')" (click)="handleToolbarClick($event)" [pBind]="ptm('toolbar')">
671
654
  <button [class]="cx('rotateRightButton')" (click)="rotateRight()" type="button" [attr.aria-label]="rightAriaLabel()" [pBind]="ptm('rotateRightButton')">
672
- @if (!rotateRightIconTemplate() && !_rotateRightIconTemplate) {
655
+ @if (!rotateRightIconTemplate() && !_rotateRightIconTemplate()) {
673
656
  <svg data-p-icon="refresh" />
674
657
  }
675
- <ng-template *ngTemplateOutlet="rotateRightIconTemplate() || _rotateRightIconTemplate"></ng-template>
658
+ <ng-template *ngTemplateOutlet="rotateRightIconTemplate() || _rotateRightIconTemplate()"></ng-template>
676
659
  </button>
677
660
  <button [class]="cx('rotateLeftButton')" (click)="rotateLeft()" type="button" [attr.aria-label]="leftAriaLabel()" [pBind]="ptm('rotateLeftButton')">
678
- @if (!rotateLeftIconTemplate() && !_rotateLeftIconTemplate) {
661
+ @if (!rotateLeftIconTemplate() && !_rotateLeftIconTemplate()) {
679
662
  <svg data-p-icon="undo" />
680
663
  }
681
- <ng-template *ngTemplateOutlet="rotateLeftIconTemplate() || _rotateLeftIconTemplate"></ng-template>
664
+ <ng-template *ngTemplateOutlet="rotateLeftIconTemplate() || _rotateLeftIconTemplate()"></ng-template>
682
665
  </button>
683
- <button [class]="cx('zoomOutButton')" (click)="zoomOut()" type="button" [disabled]="isZoomOutDisabled" [attr.aria-label]="zoomOutAriaLabel()" [pBind]="ptm('zoomOutButton')">
684
- @if (!zoomOutIconTemplate() && !_zoomOutIconTemplate) {
666
+ <button [class]="cx('zoomOutButton')" (click)="zoomOut()" type="button" [disabled]="isZoomOutDisabled()" [attr.aria-label]="zoomOutAriaLabel()" [pBind]="ptm('zoomOutButton')">
667
+ @if (!zoomOutIconTemplate() && !_zoomOutIconTemplate()) {
685
668
  <svg data-p-icon="search-minus" />
686
669
  }
687
- <ng-template *ngTemplateOutlet="zoomOutIconTemplate() || _zoomOutIconTemplate"></ng-template>
670
+ <ng-template *ngTemplateOutlet="zoomOutIconTemplate() || _zoomOutIconTemplate()"></ng-template>
688
671
  </button>
689
- <button [class]="cx('zoomInButton')" (click)="zoomIn()" type="button" [disabled]="isZoomInDisabled" [attr.aria-label]="zoomInAriaLabel()" [pBind]="ptm('zoomInButton')">
690
- @if (!zoomInIconTemplate() && !_zoomInIconTemplate) {
672
+ <button [class]="cx('zoomInButton')" (click)="zoomIn()" type="button" [disabled]="isZoomInDisabled()" [attr.aria-label]="zoomInAriaLabel()" [pBind]="ptm('zoomInButton')">
673
+ @if (!zoomInIconTemplate() && !_zoomInIconTemplate()) {
691
674
  <svg data-p-icon="search-plus" />
692
675
  }
693
- <ng-template *ngTemplateOutlet="zoomInIconTemplate() || _zoomInIconTemplate"></ng-template>
676
+ <ng-template *ngTemplateOutlet="zoomInIconTemplate() || _zoomInIconTemplate()"></ng-template>
694
677
  </button>
695
678
  <button [class]="cx('closeButton')" type="button" (click)="closePreview()" [attr.aria-label]="closeAriaLabel()" #closeButton [pBind]="ptm('closeButton')">
696
- @if (!closeIconTemplate() && !_closeIconTemplate) {
679
+ @if (!closeIconTemplate() && !_closeIconTemplate()) {
697
680
  <svg data-p-icon="times" />
698
681
  }
699
- <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate"></ng-template>
682
+ <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate()"></ng-template>
700
683
  </button>
701
684
  </div>
702
685
  @if (renderPreview()) {
703
- <p-motion [visible]="previewVisible" name="p-image-original" [appear]="true" [options]="computedMotionOptions()" (onBeforeEnter)="onAnimationStart($event)" (onBeforeLeave)="onBeforeLeave()" (onAfterLeave)="onAnimationEnd($event)">
704
- @if (!previewTemplate() && !_previewTemplate) {
686
+ <p-motion
687
+ [visible]="previewVisible()"
688
+ name="p-image-original"
689
+ [appear]="true"
690
+ [options]="computedMotionOptions()"
691
+ (onBeforeEnter)="onAnimationStart($event)"
692
+ (onBeforeLeave)="onBeforeLeave()"
693
+ (onAfterLeave)="onAnimationEnd($event)"
694
+ >
695
+ @if (!previewTemplate() && !_previewTemplate()) {
705
696
  <img
706
- [attr.src]="previewImageSrc ? previewImageSrc : src"
707
- [attr.srcset]="previewImageSrcSet"
708
- [attr.sizes]="previewImageSizes"
697
+ [attr.src]="previewImageSrc() ? previewImageSrc() : src()"
698
+ [attr.srcset]="previewImageSrcSet()"
699
+ [attr.sizes]="previewImageSizes()"
709
700
  [class]="cx('original')"
710
701
  [ngStyle]="imagePreviewStyle()"
711
702
  (click)="onPreviewImageClick()"
@@ -714,7 +705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
714
705
  }
715
706
  <ng-container
716
707
  *ngTemplateOutlet="
717
- previewTemplate() || _previewTemplate;
708
+ previewTemplate() || _previewTemplate();
718
709
  context: {
719
710
  class: cx('original'),
720
711
  style: imagePreviewStyle(),
@@ -730,46 +721,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
730
721
  `,
731
722
  changeDetection: ChangeDetectionStrategy.OnPush,
732
723
  encapsulation: ViewEncapsulation.None,
733
- providers: [ImageStyle, { provide: IMAGE_INSTANCE, useExisting: Image }, { provide: PARENT_INSTANCE, useExisting: Image }],
724
+ providers: [ImageStyle, { provide: PARENT_INSTANCE, useExisting: Image }],
734
725
  host: {
735
- '[class]': "cn(cx('root'),styleClass)"
726
+ '[class]': "cx('root')"
736
727
  },
737
728
  hostDirectives: [Bind]
738
729
  }]
739
- }], propDecorators: { imageClass: [{
740
- type: Input
741
- }], imageStyle: [{
742
- type: Input
743
- }], styleClass: [{
744
- type: Input
745
- }], src: [{
746
- type: Input
747
- }], srcSet: [{
748
- type: Input
749
- }], sizes: [{
750
- type: Input
751
- }], previewImageSrc: [{
752
- type: Input
753
- }], previewImageSrcSet: [{
754
- type: Input
755
- }], previewImageSizes: [{
756
- type: Input
757
- }], alt: [{
758
- type: Input
759
- }], width: [{
760
- type: Input
761
- }], height: [{
762
- type: Input
763
- }], loading: [{
764
- type: Input
765
- }], preview: [{
766
- type: Input,
767
- args: [{ transform: booleanAttribute }]
768
- }], showTransitionOptions: [{
769
- type: Input
770
- }], hideTransitionOptions: [{
771
- type: Input
772
- }], modalEnterAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "modalEnterAnimation", required: false }] }], modalLeaveAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "modalLeaveAnimation", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onImageError: [{ type: i0.Output, args: ["onImageError"] }], previewButton: [{ type: i0.ViewChild, args: ['previewButton', { isSignal: true }] }], closeButton: [{ type: i0.ViewChild, args: ['closeButton', { isSignal: true }] }], indicatorTemplate: [{ type: i0.ContentChild, args: ['indicator', { ...{ descendants: false }, isSignal: true }] }], rotateRightIconTemplate: [{ type: i0.ContentChild, args: ['rotaterighticon', { ...{ descendants: false }, isSignal: true }] }], rotateLeftIconTemplate: [{ type: i0.ContentChild, args: ['rotatelefticon', { ...{ descendants: false }, isSignal: true }] }], zoomOutIconTemplate: [{ type: i0.ContentChild, args: ['zoomouticon', { ...{ descendants: false }, isSignal: true }] }], zoomInIconTemplate: [{ type: i0.ContentChild, args: ['zoominicon', { ...{ descendants: false }, isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], previewTemplate: [{ type: i0.ContentChild, args: ['preview', { ...{ descendants: false }, isSignal: true }] }], imageTemplate: [{ type: i0.ContentChild, args: ['image', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onKeydownHandler: [{
730
+ }], ctorParameters: () => [], propDecorators: { imageClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageClass", required: false }] }], imageStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageStyle", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], srcSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "srcSet", required: false }] }], sizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizes", required: false }] }], previewImageSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewImageSrc", required: false }] }], previewImageSrcSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewImageSrcSet", required: false }] }], previewImageSizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewImageSizes", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], preview: [{ type: i0.Input, args: [{ isSignal: true, alias: "preview", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onImageError: [{ type: i0.Output, args: ["onImageError"] }], previewButton: [{ type: i0.ViewChild, args: ['previewButton', { isSignal: true }] }], closeButton: [{ type: i0.ViewChild, args: ['closeButton', { isSignal: true }] }], indicatorTemplate: [{ type: i0.ContentChild, args: ['indicator', { ...{ descendants: false }, isSignal: true }] }], rotateRightIconTemplate: [{ type: i0.ContentChild, args: ['rotaterighticon', { ...{ descendants: false }, isSignal: true }] }], rotateLeftIconTemplate: [{ type: i0.ContentChild, args: ['rotatelefticon', { ...{ descendants: false }, isSignal: true }] }], zoomOutIconTemplate: [{ type: i0.ContentChild, args: ['zoomouticon', { ...{ descendants: false }, isSignal: true }] }], zoomInIconTemplate: [{ type: i0.ContentChild, args: ['zoominicon', { ...{ descendants: false }, isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], previewTemplate: [{ type: i0.ContentChild, args: ['preview', { ...{ descendants: false }, isSignal: true }] }], imageTemplate: [{ type: i0.ContentChild, args: ['image', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onKeydownHandler: [{
773
731
  type: HostListener,
774
732
  args: ['document:keydown.escape']
775
733
  }] } });