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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +10 -17
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +786 -928
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +561 -599
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +227 -394
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +255 -266
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +585 -653
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1792 -1787
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +480 -577
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +774 -745
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
  68. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
  70. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
  72. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
  74. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
  76. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
  78. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
  80. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
  84. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
  86. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
  88. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
  90. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
  92. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
  94. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
  96. package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
  98. package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  100. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
  102. package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
  104. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
  106. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
  108. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
  110. package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
  112. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
  114. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
  116. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
  118. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
  120. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
  122. package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
  124. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
  126. package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
  128. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
  130. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
  132. package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
  134. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
  136. package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
  138. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
  140. package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
  142. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
  144. package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
  146. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
  148. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
  150. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
  152. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
  154. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
  156. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
  158. package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
  160. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
  162. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
  164. package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
  166. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
  168. package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
  170. package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
  171. package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
  172. package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
  173. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
  174. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
  175. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
  176. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
  177. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  178. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  179. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  180. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  181. package/fesm2022/exhaustive-ui-core-inplace.mjs +68 -102
  182. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  183. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  184. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  185. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  186. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  187. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  188. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  189. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  190. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  191. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  192. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  193. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  194. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  195. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  196. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  197. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  198. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  199. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  200. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  201. package/fesm2022/exhaustive-ui-core-listbox.mjs +591 -728
  202. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  203. package/fesm2022/exhaustive-ui-core-megamenu.mjs +324 -375
  204. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  205. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  206. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  207. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  208. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  209. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  210. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  211. package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
  212. package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
  213. package/fesm2022/exhaustive-ui-core-multiselect.mjs +945 -1045
  214. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  215. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  216. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  217. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  218. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  219. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  220. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  221. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  222. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  223. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  224. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  225. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  226. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  227. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  228. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  229. package/fesm2022/exhaustive-ui-core-picklist.mjs +861 -879
  230. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  231. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  232. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  233. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  234. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  235. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  236. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  237. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  238. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  239. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  240. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  241. package/fesm2022/exhaustive-ui-core-select.mjs +837 -986
  242. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  243. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  244. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  245. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  246. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  247. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  248. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  249. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  250. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  251. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  252. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  253. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  254. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  255. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  256. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  257. package/fesm2022/exhaustive-ui-core-table.mjs +2435 -2721
  258. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  259. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  260. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  261. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  262. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  263. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +604 -690
  264. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  265. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  266. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  267. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  268. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  269. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  270. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  271. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  272. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  273. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  274. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  275. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  276. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  277. package/fesm2022/exhaustive-ui-core-treeselect.mjs +333 -423
  278. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  279. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  280. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  281. package/package.json +11 -11
  282. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  283. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  284. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  285. package/schematics/migrations.json +11 -6
  286. package/schematics/utils/removed-inputs.js +0 -0
  287. package/schematics/utils/renamed-inputs.js +175 -0
  288. package/schematics/utils/styleclass.js +24 -8
  289. package/schematics/utils/versions.json +8 -8
  290. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  291. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  292. package/types/exhaustive-ui-core-api.d.ts +2 -3
  293. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  294. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  295. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  296. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  297. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  298. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  299. package/types/exhaustive-ui-core-button.d.ts +57 -89
  300. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  301. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  302. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  303. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  304. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  305. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  306. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  307. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  308. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  309. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  310. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  311. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  312. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  313. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  314. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  315. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  316. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  317. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  318. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  319. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  320. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  321. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  322. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  323. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  324. package/types/exhaustive-ui-core-image.d.ts +35 -68
  325. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  326. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  327. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  328. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  329. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  330. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  331. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  332. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  333. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  334. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  335. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  336. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  337. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  338. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  339. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  340. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  341. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  342. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  343. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  344. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  345. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  346. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  347. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  348. package/types/exhaustive-ui-core-password.d.ts +56 -93
  349. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  350. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  351. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  352. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  353. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  354. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  355. package/types/exhaustive-ui-core-select.d.ts +137 -188
  356. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  357. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  358. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  359. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  360. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  361. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  362. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  363. package/types/exhaustive-ui-core-table.d.ts +349 -453
  364. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  365. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  366. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  367. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  368. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  369. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  370. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  371. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  372. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  373. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  374. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  375. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, NgZone, Renderer2, output, HostListener, Input, Directive, NgModule } from '@angular/core';
2
+ import { inject, ElementRef, NgZone, Renderer2, input, output, signal, effect, untracked, computed, HostListener, Directive, NgModule } from '@angular/core';
3
3
  import { removeClass, addClass } from '@exhaustive-ui/utils';
4
4
  import { DomHandler } from '@exhaustive-ui/core/dom';
5
5
 
@@ -11,17 +11,19 @@ class Draggable {
11
11
  el = inject(ElementRef);
12
12
  zone = inject(NgZone);
13
13
  renderer = inject(Renderer2);
14
- scope;
14
+ scope = input(undefined, { ...(ngDevMode ? { debugName: "scope" } : /* istanbul ignore next */ {}), alias: 'pDraggable' });
15
15
  /**
16
16
  * Defines the cursor style.
17
17
  * @group Props
18
18
  */
19
- dragEffect;
19
+ dragEffect = input(/* @ts-ignore */
20
+ ...(ngDevMode ? [undefined, { debugName: "dragEffect" }] : /* istanbul ignore next */ []));
20
21
  /**
21
22
  * Selector to define the drag handle, by default anywhere on the target element is a drag handle to start dragging.
22
23
  * @group Props
23
24
  */
24
- dragHandle;
25
+ dragHandle = input(/* @ts-ignore */
26
+ ...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
25
27
  /**
26
28
  * Callback to invoke when drag begins.
27
29
  * @param {DragEvent} event - Drag event.
@@ -40,60 +42,63 @@ class Draggable {
40
42
  * @group Emits
41
43
  */
42
44
  onDrag = output();
43
- handle;
44
- dragListener;
45
- mouseDownListener;
46
- mouseUpListener;
47
- _pDraggableDisabled = false;
48
- get pDraggableDisabled() {
49
- return this._pDraggableDisabled;
50
- }
51
- set pDraggableDisabled(_pDraggableDisabled) {
52
- this._pDraggableDisabled = _pDraggableDisabled;
53
- if (this._pDraggableDisabled) {
54
- this.unbindMouseListeners();
55
- }
56
- else {
57
- this.el.nativeElement.draggable = true;
58
- this.bindMouseListeners();
59
- }
60
- }
61
- ngAfterViewInit() {
62
- if (!this.pDraggableDisabled) {
63
- this.el.nativeElement.draggable = true;
64
- this.bindMouseListeners();
65
- }
45
+ handle = signal(undefined, /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "handle" }] : /* istanbul ignore next */ []));
47
+ dragListener = signal(undefined, /* @ts-ignore */
48
+ ...(ngDevMode ? [{ debugName: "dragListener" }] : /* istanbul ignore next */ []));
49
+ mouseDownListener = signal(undefined, /* @ts-ignore */
50
+ ...(ngDevMode ? [{ debugName: "mouseDownListener" }] : /* istanbul ignore next */ []));
51
+ mouseUpListener = signal(undefined, /* @ts-ignore */
52
+ ...(ngDevMode ? [{ debugName: "mouseUpListener" }] : /* istanbul ignore next */ []));
53
+ pDraggableDisabled = input(false, /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "pDraggableDisabled" }] : /* istanbul ignore next */ []));
55
+ constructor() {
56
+ effect(() => {
57
+ const disabled = this.pDraggableDisabled();
58
+ untracked(() => {
59
+ if (disabled) {
60
+ this.unbindMouseListeners();
61
+ }
62
+ else {
63
+ this.el.nativeElement.draggable = true;
64
+ this.bindMouseListeners();
65
+ }
66
+ });
67
+ });
66
68
  }
67
69
  bindDragListener() {
68
- if (!this.dragListener) {
70
+ if (!this.dragListener()) {
69
71
  this.zone.runOutsideAngular(() => {
70
- this.dragListener = this.renderer.listen(this.el.nativeElement, 'drag', this.drag.bind(this));
72
+ this.dragListener.set(this.renderer.listen(this.el.nativeElement, 'drag', this.drag.bind(this)));
71
73
  });
72
74
  }
73
75
  }
74
76
  unbindDragListener() {
75
- if (this.dragListener) {
77
+ const dragListener = this.dragListener();
78
+ if (dragListener) {
76
79
  this.zone.runOutsideAngular(() => {
77
- this.dragListener && this.dragListener();
78
- this.dragListener = null;
80
+ dragListener();
81
+ this.dragListener.set(null);
79
82
  });
80
83
  }
81
84
  }
82
85
  bindMouseListeners() {
83
- if (!this.mouseDownListener && !this.mouseUpListener) {
86
+ if (!this.mouseDownListener() && !this.mouseUpListener()) {
84
87
  this.zone.runOutsideAngular(() => {
85
- this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.mousedown.bind(this));
86
- this.mouseUpListener = this.renderer.listen(this.el.nativeElement, 'mouseup', this.mouseup.bind(this));
88
+ this.mouseDownListener.set(this.renderer.listen(this.el.nativeElement, 'mousedown', this.mousedown.bind(this)));
89
+ this.mouseUpListener.set(this.renderer.listen(this.el.nativeElement, 'mouseup', this.mouseup.bind(this)));
87
90
  });
88
91
  }
89
92
  }
90
93
  unbindMouseListeners() {
91
- if (this.mouseDownListener && this.mouseUpListener) {
94
+ const mouseDownListener = this.mouseDownListener();
95
+ const mouseUpListener = this.mouseUpListener();
96
+ if (mouseDownListener && mouseUpListener) {
92
97
  this.zone.runOutsideAngular(() => {
93
- this.mouseDownListener && this.mouseDownListener();
94
- this.mouseUpListener && this.mouseUpListener();
95
- this.mouseDownListener = null;
96
- this.mouseUpListener = null;
98
+ mouseDownListener();
99
+ mouseUpListener();
100
+ this.mouseDownListener.set(null);
101
+ this.mouseUpListener.set(null);
97
102
  });
98
103
  }
99
104
  }
@@ -101,11 +106,12 @@ class Draggable {
101
106
  this.onDrag.emit(event);
102
107
  }
103
108
  dragStart(event) {
104
- if (this.allowDrag() && !this.pDraggableDisabled) {
105
- if (this.dragEffect) {
106
- event.dataTransfer.effectAllowed = this.dragEffect;
109
+ if (this.allowDrag() && !this.pDraggableDisabled()) {
110
+ const dragEffect = this.dragEffect();
111
+ if (dragEffect) {
112
+ event.dataTransfer.effectAllowed = dragEffect;
107
113
  }
108
- event.dataTransfer.setData('text', this.scope);
114
+ event.dataTransfer.setData('text', this.scope());
109
115
  this.onDragStart.emit(event);
110
116
  this.bindDragListener();
111
117
  }
@@ -118,40 +124,33 @@ class Draggable {
118
124
  this.unbindDragListener();
119
125
  }
120
126
  mousedown(event) {
121
- this.handle = event.target;
127
+ this.handle.set(event.target);
122
128
  }
123
129
  mouseup(event) {
124
- this.handle = null;
130
+ this.handle.set(null);
125
131
  }
126
- allowDrag() {
127
- if (this.dragHandle && this.handle)
128
- return DomHandler.matches(this.handle, this.dragHandle);
132
+ allowDrag = computed(() => {
133
+ const dragHandle = this.dragHandle();
134
+ const handle = this.handle();
135
+ if (dragHandle && handle)
136
+ return DomHandler.matches(handle, dragHandle);
129
137
  else
130
138
  return true;
131
- }
139
+ }, /* @ts-ignore */
140
+ ...(ngDevMode ? [{ debugName: "allowDrag" }] : /* istanbul ignore next */ []));
132
141
  ngOnDestroy() {
133
142
  this.unbindDragListener();
134
143
  this.unbindMouseListeners();
135
144
  }
136
145
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Draggable, deps: [], target: i0.ɵɵFactoryTarget.Directive });
137
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.1", type: Draggable, isStandalone: true, selector: "[pDraggable]", inputs: { scope: ["pDraggable", "scope"], dragEffect: "dragEffect", dragHandle: "dragHandle", pDraggableDisabled: "pDraggableDisabled" }, outputs: { onDragStart: "onDragStart", onDragEnd: "onDragEnd", onDrag: "onDrag" }, host: { listeners: { "dragstart": "dragStart($event)", "dragend": "dragEnd($event)" } }, ngImport: i0 });
146
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: Draggable, isStandalone: true, selector: "[pDraggable]", inputs: { scope: { classPropertyName: "scope", publicName: "pDraggable", isSignal: true, isRequired: false, transformFunction: null }, dragEffect: { classPropertyName: "dragEffect", publicName: "dragEffect", isSignal: true, isRequired: false, transformFunction: null }, dragHandle: { classPropertyName: "dragHandle", publicName: "dragHandle", isSignal: true, isRequired: false, transformFunction: null }, pDraggableDisabled: { classPropertyName: "pDraggableDisabled", publicName: "pDraggableDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onDragStart: "onDragStart", onDragEnd: "onDragEnd", onDrag: "onDrag" }, host: { listeners: { "dragstart": "dragStart($event)", "dragend": "dragEnd($event)" } }, ngImport: i0 });
138
147
  }
139
148
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Draggable, decorators: [{
140
149
  type: Directive,
141
150
  args: [{
142
- selector: '[pDraggable]',
143
- standalone: true
151
+ selector: '[pDraggable]'
144
152
  }]
145
- }], propDecorators: { scope: [{
146
- type: Input,
147
- args: ['pDraggable']
148
- }], dragEffect: [{
149
- type: Input
150
- }], dragHandle: [{
151
- type: Input
152
- }], onDragStart: [{ type: i0.Output, args: ["onDragStart"] }], onDragEnd: [{ type: i0.Output, args: ["onDragEnd"] }], onDrag: [{ type: i0.Output, args: ["onDrag"] }], pDraggableDisabled: [{
153
- type: Input
154
- }], dragStart: [{
153
+ }], ctorParameters: () => [], propDecorators: { scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "pDraggable", required: false }] }], dragEffect: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragEffect", required: false }] }], dragHandle: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragHandle", required: false }] }], onDragStart: [{ type: i0.Output, args: ["onDragStart"] }], onDragEnd: [{ type: i0.Output, args: ["onDragEnd"] }], onDrag: [{ type: i0.Output, args: ["onDrag"] }], pDraggableDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "pDraggableDisabled", required: false }] }], dragStart: [{
155
154
  type: HostListener,
156
155
  args: ['dragstart', ['$event']]
157
156
  }], dragEnd: [{
@@ -166,29 +165,19 @@ class Droppable {
166
165
  el = inject(ElementRef);
167
166
  zone = inject(NgZone);
168
167
  renderer = inject(Renderer2);
169
- scope;
168
+ scope = input(undefined, { ...(ngDevMode ? { debugName: "scope" } : /* istanbul ignore next */ {}), alias: 'pDroppable' });
170
169
  /**
171
170
  * Whether the element is droppable, useful for conditional cases.
172
171
  * @group Props
173
172
  */
174
- _pDroppableDisabled = false;
175
- get pDroppableDisabled() {
176
- return this._pDroppableDisabled;
177
- }
178
- set pDroppableDisabled(_pDroppableDisabled) {
179
- this._pDroppableDisabled = _pDroppableDisabled;
180
- if (this._pDroppableDisabled) {
181
- this.unbindDragOverListener();
182
- }
183
- else {
184
- this.bindDragOverListener();
185
- }
186
- }
173
+ pDroppableDisabled = input(false, /* @ts-ignore */
174
+ ...(ngDevMode ? [{ debugName: "pDroppableDisabled" }] : /* istanbul ignore next */ []));
187
175
  /**
188
176
  * Defines the cursor style, valid values are none, copy, move, link, copyMove, copyLink, linkMove and all.
189
177
  * @group Props
190
178
  */
191
- dropEffect;
179
+ dropEffect = input(/* @ts-ignore */
180
+ ...(ngDevMode ? [undefined, { debugName: "dropEffect" }] : /* istanbul ignore next */ []));
192
181
  /**
193
182
  * Callback to invoke when a draggable enters drop area.
194
183
  * @group Emits
@@ -204,24 +193,34 @@ class Droppable {
204
193
  * @group Emits
205
194
  */
206
195
  onDrop = output();
207
- dragOverListener;
208
- ngAfterViewInit() {
209
- if (!this.pDroppableDisabled) {
210
- this.bindDragOverListener();
211
- }
196
+ dragOverListener = signal(undefined, /* @ts-ignore */
197
+ ...(ngDevMode ? [{ debugName: "dragOverListener" }] : /* istanbul ignore next */ []));
198
+ constructor() {
199
+ effect(() => {
200
+ const disabled = this.pDroppableDisabled();
201
+ untracked(() => {
202
+ if (disabled) {
203
+ this.unbindDragOverListener();
204
+ }
205
+ else {
206
+ this.bindDragOverListener();
207
+ }
208
+ });
209
+ });
212
210
  }
213
211
  bindDragOverListener() {
214
- if (!this.dragOverListener) {
212
+ if (!this.dragOverListener()) {
215
213
  this.zone.runOutsideAngular(() => {
216
- this.dragOverListener = this.renderer.listen(this.el.nativeElement, 'dragover', this.dragOver.bind(this));
214
+ this.dragOverListener.set(this.renderer.listen(this.el.nativeElement, 'dragover', this.dragOver.bind(this)));
217
215
  });
218
216
  }
219
217
  }
220
218
  unbindDragOverListener() {
221
- if (this.dragOverListener) {
219
+ const dragOverListener = this.dragOverListener();
220
+ if (dragOverListener) {
222
221
  this.zone.runOutsideAngular(() => {
223
- this.dragOverListener && this.dragOverListener();
224
- this.dragOverListener = null;
222
+ dragOverListener();
223
+ this.dragOverListener.set(null);
225
224
  });
226
225
  }
227
226
  }
@@ -237,8 +236,9 @@ class Droppable {
237
236
  }
238
237
  dragEnter(event) {
239
238
  event.preventDefault();
240
- if (this.dropEffect) {
241
- event.dataTransfer.dropEffect = this.dropEffect;
239
+ const dropEffect = this.dropEffect();
240
+ if (dropEffect) {
241
+ event.dataTransfer.dropEffect = dropEffect;
242
242
  }
243
243
  addClass(this.el.nativeElement, 'p-draggable-enter');
244
244
  this.onDragEnter.emit(event);
@@ -252,12 +252,13 @@ class Droppable {
252
252
  }
253
253
  allowDrop(event) {
254
254
  let dragScope = event.dataTransfer.getData('text');
255
- if (typeof this.scope == 'string' && dragScope == this.scope) {
255
+ const scope = this.scope();
256
+ if (typeof scope == 'string' && dragScope == scope) {
256
257
  return true;
257
258
  }
258
- else if (Array.isArray(this.scope)) {
259
- for (let j = 0; j < this.scope.length; j++) {
260
- if (dragScope == this.scope[j]) {
259
+ else if (Array.isArray(scope)) {
260
+ for (let j = 0; j < scope.length; j++) {
261
+ if (dragScope == scope[j]) {
261
262
  return true;
262
263
  }
263
264
  }
@@ -268,22 +269,14 @@ class Droppable {
268
269
  this.unbindDragOverListener();
269
270
  }
270
271
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Droppable, deps: [], target: i0.ɵɵFactoryTarget.Directive });
271
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.1", type: Droppable, isStandalone: true, selector: "[pDroppable]", inputs: { scope: ["pDroppable", "scope"], pDroppableDisabled: "pDroppableDisabled", dropEffect: "dropEffect" }, outputs: { onDragEnter: "onDragEnter", onDragLeave: "onDragLeave", onDrop: "onDrop" }, host: { listeners: { "drop": "drop($event)", "dragenter": "dragEnter($event)", "dragleave": "dragLeave($event)" } }, ngImport: i0 });
272
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: Droppable, isStandalone: true, selector: "[pDroppable]", inputs: { scope: { classPropertyName: "scope", publicName: "pDroppable", isSignal: true, isRequired: false, transformFunction: null }, pDroppableDisabled: { classPropertyName: "pDroppableDisabled", publicName: "pDroppableDisabled", isSignal: true, isRequired: false, transformFunction: null }, dropEffect: { classPropertyName: "dropEffect", publicName: "dropEffect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onDragEnter: "onDragEnter", onDragLeave: "onDragLeave", onDrop: "onDrop" }, host: { listeners: { "drop": "drop($event)", "dragenter": "dragEnter($event)", "dragleave": "dragLeave($event)" } }, ngImport: i0 });
272
273
  }
273
274
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Droppable, decorators: [{
274
275
  type: Directive,
275
276
  args: [{
276
- selector: '[pDroppable]',
277
- standalone: true
277
+ selector: '[pDroppable]'
278
278
  }]
279
- }], propDecorators: { scope: [{
280
- type: Input,
281
- args: ['pDroppable']
282
- }], pDroppableDisabled: [{
283
- type: Input
284
- }], dropEffect: [{
285
- type: Input
286
- }], onDragEnter: [{ type: i0.Output, args: ["onDragEnter"] }], onDragLeave: [{ type: i0.Output, args: ["onDragLeave"] }], onDrop: [{ type: i0.Output, args: ["onDrop"] }], drop: [{
279
+ }], ctorParameters: () => [], propDecorators: { scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "pDroppable", required: false }] }], pDroppableDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "pDroppableDisabled", required: false }] }], dropEffect: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropEffect", required: false }] }], onDragEnter: [{ type: i0.Output, args: ["onDragEnter"] }], onDragLeave: [{ type: i0.Output, args: ["onDragLeave"] }], onDrop: [{ type: i0.Output, args: ["onDrop"] }], drop: [{
287
280
  type: HostListener,
288
281
  args: ['drop', ['$event']]
289
282
  }], dragEnter: [{
@@ -1 +1 @@
1
- {"version":3,"file":"exhaustive-ui-core-dragdrop.mjs","sources":["../../src/dragdrop/dragdrop.ts","../../src/dragdrop/exhaustive-ui-core-dragdrop.ts"],"sourcesContent":["import { AfterViewInit, booleanAttribute, Directive, ElementRef, HostListener, Input, NgModule, NgZone, OnDestroy, Renderer2, inject, output } from '@angular/core';\nimport { addClass, removeClass } from '@exhaustive-ui/utils';\nimport { DomHandler } from '@exhaustive-ui/core/dom';\nimport { VoidListener } from '@exhaustive-ui/core/ts-helpers';\n\n/**\n * pDraggable directive apply draggable behavior to any element.\n * @group Components\n */\n@Directive({\n selector: '[pDraggable]',\n standalone: true\n})\nexport class Draggable implements AfterViewInit, OnDestroy {\n el = inject(ElementRef);\n zone = inject(NgZone);\n private renderer = inject(Renderer2);\n\n @Input('pDraggable') scope: string | undefined;\n /**\n * Defines the cursor style.\n * @group Props\n */\n @Input() dragEffect: 'none' | 'copy' | 'copyLink' | 'copyMove' | 'link' | 'linkMove' | 'move' | 'all' | 'uninitialized' | undefined;\n /**\n * Selector to define the drag handle, by default anywhere on the target element is a drag handle to start dragging.\n * @group Props\n */\n @Input() dragHandle: string | undefined;\n /**\n * Callback to invoke when drag begins.\n * @param {DragEvent} event - Drag event.\n * @group Emits\n */\n readonly onDragStart = output<DragEvent>();\n /**\n * Callback to invoke when drag ends.\n * @param {DragEvent} event - Drag event.\n * @group Emits\n */\n readonly onDragEnd = output<DragEvent>();\n /**\n * Callback to invoke on dragging.\n * @param {DragEvent} event - Drag event.\n * @group Emits\n */\n readonly onDrag = output<DragEvent>();\n\n handle: any;\n\n dragListener: VoidListener;\n\n mouseDownListener: VoidListener;\n\n mouseUpListener: VoidListener;\n\n _pDraggableDisabled: boolean = false;\n\n @Input() get pDraggableDisabled(): boolean {\n return this._pDraggableDisabled;\n }\n set pDraggableDisabled(_pDraggableDisabled: boolean) {\n this._pDraggableDisabled = _pDraggableDisabled;\n\n if (this._pDraggableDisabled) {\n this.unbindMouseListeners();\n } else {\n this.el.nativeElement.draggable = true;\n this.bindMouseListeners();\n }\n }\n\n ngAfterViewInit() {\n if (!this.pDraggableDisabled) {\n this.el.nativeElement.draggable = true;\n this.bindMouseListeners();\n }\n }\n\n bindDragListener() {\n if (!this.dragListener) {\n this.zone.runOutsideAngular(() => {\n this.dragListener = this.renderer.listen(this.el.nativeElement, 'drag', this.drag.bind(this));\n });\n }\n }\n\n unbindDragListener() {\n if (this.dragListener) {\n this.zone.runOutsideAngular(() => {\n this.dragListener && this.dragListener();\n this.dragListener = null;\n });\n }\n }\n\n bindMouseListeners() {\n if (!this.mouseDownListener && !this.mouseUpListener) {\n this.zone.runOutsideAngular(() => {\n this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.mousedown.bind(this));\n this.mouseUpListener = this.renderer.listen(this.el.nativeElement, 'mouseup', this.mouseup.bind(this));\n });\n }\n }\n\n unbindMouseListeners() {\n if (this.mouseDownListener && this.mouseUpListener) {\n this.zone.runOutsideAngular(() => {\n this.mouseDownListener && this.mouseDownListener();\n this.mouseUpListener && this.mouseUpListener();\n this.mouseDownListener = null;\n this.mouseUpListener = null;\n });\n }\n }\n\n drag(event: DragEvent) {\n this.onDrag.emit(event);\n }\n\n @HostListener('dragstart', ['$event'])\n dragStart(event: DragEvent) {\n if (this.allowDrag() && !this.pDraggableDisabled) {\n if (this.dragEffect) {\n (event.dataTransfer as DataTransfer).effectAllowed = this.dragEffect;\n }\n (event.dataTransfer as DataTransfer).setData('text', this.scope!);\n\n this.onDragStart.emit(event);\n\n this.bindDragListener();\n } else {\n event.preventDefault();\n }\n }\n\n @HostListener('dragend', ['$event'])\n dragEnd(event: DragEvent) {\n this.onDragEnd.emit(event);\n this.unbindDragListener();\n }\n\n mousedown(event: MouseEvent) {\n this.handle = event.target;\n }\n\n mouseup(event: MouseEvent) {\n this.handle = null;\n }\n\n allowDrag(): boolean {\n if (this.dragHandle && this.handle) return DomHandler.matches(this.handle, this.dragHandle);\n else return true;\n }\n\n ngOnDestroy() {\n this.unbindDragListener();\n this.unbindMouseListeners();\n }\n}\n/**\n * pDroppable directive apply droppable behavior to any element.\n * @group Components\n */\n@Directive({\n selector: '[pDroppable]',\n standalone: true\n})\nexport class Droppable implements AfterViewInit, OnDestroy {\n el = inject(ElementRef);\n zone = inject(NgZone);\n private renderer = inject(Renderer2);\n\n @Input('pDroppable') scope: string | string[] | undefined;\n /**\n * Whether the element is droppable, useful for conditional cases.\n * @group Props\n */\n _pDroppableDisabled: boolean = false;\n\n @Input() get pDroppableDisabled(): boolean {\n return this._pDroppableDisabled;\n }\n set pDroppableDisabled(_pDroppableDisabled: boolean) {\n this._pDroppableDisabled = _pDroppableDisabled;\n\n if (this._pDroppableDisabled) {\n this.unbindDragOverListener();\n } else {\n this.bindDragOverListener();\n }\n }\n /**\n * Defines the cursor style, valid values are none, copy, move, link, copyMove, copyLink, linkMove and all.\n * @group Props\n */\n @Input() dropEffect: 'none' | 'copy' | 'link' | 'move' | undefined;\n /**\n * Callback to invoke when a draggable enters drop area.\n * @group Emits\n */\n readonly onDragEnter = output<DragEvent>();\n /**\n * Callback to invoke when a draggable leave drop area.\n * @group Emits\n */\n readonly onDragLeave = output<DragEvent>();\n /**\n * Callback to invoke when a draggable is dropped onto drop area.\n * @group Emits\n */\n readonly onDrop = output<DragEvent>();\n\n dragOverListener: VoidListener;\n\n ngAfterViewInit() {\n if (!this.pDroppableDisabled) {\n this.bindDragOverListener();\n }\n }\n\n bindDragOverListener() {\n if (!this.dragOverListener) {\n this.zone.runOutsideAngular(() => {\n this.dragOverListener = this.renderer.listen(this.el.nativeElement, 'dragover', this.dragOver.bind(this));\n });\n }\n }\n\n unbindDragOverListener() {\n if (this.dragOverListener) {\n this.zone.runOutsideAngular(() => {\n this.dragOverListener && this.dragOverListener();\n this.dragOverListener = null;\n });\n }\n }\n\n dragOver(event: DragEvent) {\n event.preventDefault();\n }\n\n @HostListener('drop', ['$event'])\n drop(event: DragEvent) {\n if (this.allowDrop(event)) {\n removeClass(this.el.nativeElement, 'p-draggable-enter');\n event.preventDefault();\n this.onDrop.emit(event);\n }\n }\n\n @HostListener('dragenter', ['$event'])\n dragEnter(event: DragEvent) {\n event.preventDefault();\n\n if (this.dropEffect) {\n (event.dataTransfer as DataTransfer).dropEffect = this.dropEffect;\n }\n\n addClass(this.el.nativeElement, 'p-draggable-enter');\n this.onDragEnter.emit(event);\n }\n\n @HostListener('dragleave', ['$event'])\n dragLeave(event: DragEvent) {\n event.preventDefault();\n\n if (!this.el.nativeElement.contains(event.relatedTarget)) {\n removeClass(this.el.nativeElement, 'p-draggable-enter');\n this.onDragLeave.emit(event);\n }\n }\n\n allowDrop(event: DragEvent): boolean {\n let dragScope = (event.dataTransfer as DataTransfer).getData('text');\n if (typeof this.scope == 'string' && dragScope == this.scope) {\n return true;\n } else if (Array.isArray(this.scope)) {\n for (let j = 0; j < this.scope.length; j++) {\n if (dragScope == this.scope[j]) {\n return true;\n }\n }\n }\n return false;\n }\n\n ngOnDestroy() {\n this.unbindDragOverListener();\n }\n}\n\n@NgModule({\n imports: [Draggable, Droppable],\n exports: [Draggable, Droppable]\n})\nexport class DragDropModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './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CAAA,QAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YA3Rd,SAAS,EA2JT,SAAS,CAAA,EAAA,OAAA,EAAA,CA3JT,SAAS,EA2JT,SAAS,CAAA,EAAA,CAAA;wGAgIT,cAAc,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;AAC/B,oBAAA,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS;AACjC,iBAAA;;;ACvSD;;AAEG;;;;"}
1
+ {"version":3,"file":"exhaustive-ui-core-dragdrop.mjs","sources":["../../src/dragdrop/dragdrop.ts","../../src/dragdrop/exhaustive-ui-core-dragdrop.ts"],"sourcesContent":["import { computed, Directive, effect, ElementRef, HostListener, inject, input, NgModule, NgZone, OnDestroy, output, Renderer2, signal, untracked } from '@angular/core';\nimport { addClass, removeClass } from '@exhaustive-ui/utils';\nimport { DomHandler } from '@exhaustive-ui/core/dom';\nimport { VoidListener } from '@exhaustive-ui/core/ts-helpers';\n\n/**\n * pDraggable directive apply draggable behavior to any element.\n * @group Components\n */\n@Directive({\n selector: '[pDraggable]'\n})\nexport class Draggable implements OnDestroy {\n el = inject(ElementRef);\n zone = inject(NgZone);\n private renderer = inject(Renderer2);\n\n scope = input<string | undefined>(undefined, { alias: 'pDraggable' });\n /**\n * Defines the cursor style.\n * @group Props\n */\n dragEffect = input<'none' | 'copy' | 'copyLink' | 'copyMove' | 'link' | 'linkMove' | 'move' | 'all' | 'uninitialized' | undefined>();\n /**\n * Selector to define the drag handle, by default anywhere on the target element is a drag handle to start dragging.\n * @group Props\n */\n dragHandle = input<string | undefined>();\n /**\n * Callback to invoke when drag begins.\n * @param {DragEvent} event - Drag event.\n * @group Emits\n */\n readonly onDragStart = output<DragEvent>();\n /**\n * Callback to invoke when drag ends.\n * @param {DragEvent} event - Drag event.\n * @group Emits\n */\n readonly onDragEnd = output<DragEvent>();\n /**\n * Callback to invoke on dragging.\n * @param {DragEvent} event - Drag event.\n * @group Emits\n */\n readonly onDrag = output<DragEvent>();\n\n handle = signal<any>(undefined);\n\n dragListener = signal<VoidListener>(undefined);\n\n mouseDownListener = signal<VoidListener>(undefined);\n\n mouseUpListener = signal<VoidListener>(undefined);\n\n pDraggableDisabled = input<boolean>(false);\n\n constructor() {\n effect(() => {\n const disabled = this.pDraggableDisabled();\n\n untracked(() => {\n if (disabled) {\n this.unbindMouseListeners();\n } else {\n this.el.nativeElement.draggable = true;\n this.bindMouseListeners();\n }\n });\n });\n }\n\n bindDragListener() {\n if (!this.dragListener()) {\n this.zone.runOutsideAngular(() => {\n this.dragListener.set(this.renderer.listen(this.el.nativeElement, 'drag', this.drag.bind(this)));\n });\n }\n }\n\n unbindDragListener() {\n const dragListener = this.dragListener();\n if (dragListener) {\n this.zone.runOutsideAngular(() => {\n dragListener();\n this.dragListener.set(null);\n });\n }\n }\n\n bindMouseListeners() {\n if (!this.mouseDownListener() && !this.mouseUpListener()) {\n this.zone.runOutsideAngular(() => {\n this.mouseDownListener.set(this.renderer.listen(this.el.nativeElement, 'mousedown', this.mousedown.bind(this)));\n this.mouseUpListener.set(this.renderer.listen(this.el.nativeElement, 'mouseup', this.mouseup.bind(this)));\n });\n }\n }\n\n unbindMouseListeners() {\n const mouseDownListener = this.mouseDownListener();\n const mouseUpListener = this.mouseUpListener();\n if (mouseDownListener && mouseUpListener) {\n this.zone.runOutsideAngular(() => {\n mouseDownListener();\n mouseUpListener();\n this.mouseDownListener.set(null);\n this.mouseUpListener.set(null);\n });\n }\n }\n\n drag(event: DragEvent) {\n this.onDrag.emit(event);\n }\n\n @HostListener('dragstart', ['$event'])\n dragStart(event: DragEvent) {\n if (this.allowDrag() && !this.pDraggableDisabled()) {\n const dragEffect = this.dragEffect();\n if (dragEffect) {\n (event.dataTransfer as DataTransfer).effectAllowed = dragEffect;\n }\n (event.dataTransfer as DataTransfer).setData('text', this.scope()!);\n\n this.onDragStart.emit(event);\n\n this.bindDragListener();\n } else {\n event.preventDefault();\n }\n }\n\n @HostListener('dragend', ['$event'])\n dragEnd(event: DragEvent) {\n this.onDragEnd.emit(event);\n this.unbindDragListener();\n }\n\n mousedown(event: MouseEvent) {\n this.handle.set(event.target);\n }\n\n mouseup(event: MouseEvent) {\n this.handle.set(null);\n }\n\n allowDrag = computed<boolean>(() => {\n const dragHandle = this.dragHandle();\n const handle = this.handle();\n if (dragHandle && handle) return DomHandler.matches(handle, dragHandle);\n else return true;\n });\n\n ngOnDestroy() {\n this.unbindDragListener();\n this.unbindMouseListeners();\n }\n}\n/**\n * pDroppable directive apply droppable behavior to any element.\n * @group Components\n */\n@Directive({\n selector: '[pDroppable]'\n})\nexport class Droppable implements OnDestroy {\n el = inject(ElementRef);\n zone = inject(NgZone);\n private renderer = inject(Renderer2);\n\n scope = input<string | string[] | undefined>(undefined, { alias: 'pDroppable' });\n /**\n * Whether the element is droppable, useful for conditional cases.\n * @group Props\n */\n pDroppableDisabled = input<boolean>(false);\n /**\n * Defines the cursor style, valid values are none, copy, move, link, copyMove, copyLink, linkMove and all.\n * @group Props\n */\n dropEffect = input<'none' | 'copy' | 'link' | 'move' | undefined>();\n /**\n * Callback to invoke when a draggable enters drop area.\n * @group Emits\n */\n readonly onDragEnter = output<DragEvent>();\n /**\n * Callback to invoke when a draggable leave drop area.\n * @group Emits\n */\n readonly onDragLeave = output<DragEvent>();\n /**\n * Callback to invoke when a draggable is dropped onto drop area.\n * @group Emits\n */\n readonly onDrop = output<DragEvent>();\n\n dragOverListener = signal<VoidListener>(undefined);\n\n constructor() {\n effect(() => {\n const disabled = this.pDroppableDisabled();\n\n untracked(() => {\n if (disabled) {\n this.unbindDragOverListener();\n } else {\n this.bindDragOverListener();\n }\n });\n });\n }\n\n bindDragOverListener() {\n if (!this.dragOverListener()) {\n this.zone.runOutsideAngular(() => {\n this.dragOverListener.set(this.renderer.listen(this.el.nativeElement, 'dragover', this.dragOver.bind(this)));\n });\n }\n }\n\n unbindDragOverListener() {\n const dragOverListener = this.dragOverListener();\n if (dragOverListener) {\n this.zone.runOutsideAngular(() => {\n dragOverListener();\n this.dragOverListener.set(null);\n });\n }\n }\n\n dragOver(event: DragEvent) {\n event.preventDefault();\n }\n\n @HostListener('drop', ['$event'])\n drop(event: DragEvent) {\n if (this.allowDrop(event)) {\n removeClass(this.el.nativeElement, 'p-draggable-enter');\n event.preventDefault();\n this.onDrop.emit(event);\n }\n }\n\n @HostListener('dragenter', ['$event'])\n dragEnter(event: DragEvent) {\n event.preventDefault();\n\n const dropEffect = this.dropEffect();\n if (dropEffect) {\n (event.dataTransfer as DataTransfer).dropEffect = dropEffect;\n }\n\n addClass(this.el.nativeElement, 'p-draggable-enter');\n this.onDragEnter.emit(event);\n }\n\n @HostListener('dragleave', ['$event'])\n dragLeave(event: DragEvent) {\n event.preventDefault();\n\n if (!this.el.nativeElement.contains(event.relatedTarget)) {\n removeClass(this.el.nativeElement, 'p-draggable-enter');\n this.onDragLeave.emit(event);\n }\n }\n\n allowDrop(event: DragEvent): boolean {\n let dragScope = (event.dataTransfer as DataTransfer).getData('text');\n const scope = this.scope();\n if (typeof scope == 'string' && dragScope == scope) {\n return true;\n } else if (Array.isArray(scope)) {\n for (let j = 0; j < scope.length; j++) {\n if (dragScope == scope[j]) {\n return true;\n }\n }\n }\n return false;\n }\n\n ngOnDestroy() {\n this.unbindDragOverListener();\n }\n}\n\n@NgModule({\n imports: [Draggable, Droppable],\n exports: [Draggable, Droppable]\n})\nexport class DragDropModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;AAKA;;;AAGG;MAIU,SAAS,CAAA;AAClB,IAAA,EAAE,GAAG,MAA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