@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/slider';
2
2
  import * as i2 from '@angular/common';
3
3
  import { isPlatformBrowser, CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, forwardRef, inject, output, viewChild, NgZone, booleanAttribute, numberAttribute, HostListener, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, forwardRef, inject, afterEveryRender, input, booleanAttribute, numberAttribute, output, viewChild, signal, computed, NgZone, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
7
7
  import { removeClass, addClass, getWindowScrollLeft, getWindowScrollTop, isRTL } from '@exhaustive-ui/utils';
8
8
  import { SharedModule } from '@exhaustive-ui/core/api';
@@ -24,9 +24,9 @@ const classes = {
24
24
  {
25
25
  'p-disabled': instance.$disabled(),
26
26
  'p-invalid': instance.invalid(),
27
- 'p-slider-horizontal': instance.orientation === 'horizontal',
28
- 'p-slider-vertical': instance.orientation === 'vertical',
29
- 'p-slider-animate': instance.animate
27
+ 'p-slider-horizontal': instance.orientation() === 'horizontal',
28
+ 'p-slider-vertical': instance.orientation() === 'vertical',
29
+ 'p-slider-animate': instance.animate()
30
30
  }
31
31
  ],
32
32
  range: 'p-slider-range',
@@ -82,65 +82,63 @@ class Slider extends BaseEditableHolder {
82
82
  componentName = 'Slider';
83
83
  $pcSlider = inject(SLIDER_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
84
84
  bindDirectiveInstance = inject(Bind, { self: true });
85
- onAfterViewChecked() {
86
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
85
+ constructor() {
86
+ super();
87
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
87
88
  }
88
89
  /**
89
90
  * When enabled, displays an animation on click of the slider bar.
90
91
  * @group Props
91
92
  */
92
- animate;
93
+ animate = input(undefined, { ...(ngDevMode ? { debugName: "animate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
93
94
  /**
94
95
  * Mininum boundary value.
95
96
  * @group Props
96
97
  */
97
- min = 0;
98
+ min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
98
99
  /**
99
100
  * Maximum boundary value.
100
101
  * @group Props
101
102
  */
102
- max = 100;
103
+ max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
103
104
  /**
104
105
  * Orientation of the slider.
105
106
  * @group Props
106
107
  */
107
- orientation = 'horizontal';
108
+ orientation = input('horizontal', /* @ts-ignore */
109
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
108
110
  /**
109
111
  * Step factor to increment/decrement the value.
110
112
  * @group Props
111
113
  */
112
- step;
114
+ step = input(undefined, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
113
115
  /**
114
116
  * When specified, allows two boundary values to be picked.
115
117
  * @group Props
116
118
  */
117
- range;
118
- /**
119
- * Style class of the component.
120
- * @deprecated since v20.0.0, use `class` instead.
121
- * @group Props
122
- */
123
- styleClass;
119
+ range = input(undefined, { ...(ngDevMode ? { debugName: "range" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
124
120
  /**
125
121
  * Defines a string that labels the input for accessibility.
126
122
  * @group Props
127
123
  */
128
- ariaLabel;
124
+ ariaLabel = input(/* @ts-ignore */
125
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
129
126
  /**
130
127
  * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
131
128
  * @group Props
132
129
  */
133
- ariaLabelledBy;
130
+ ariaLabelledBy = input(/* @ts-ignore */
131
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
134
132
  /**
135
133
  * Index of the element in tabbing order.
136
134
  * @group Props
137
135
  */
138
- tabindex = 0;
136
+ tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
139
137
  /**
140
138
  * When present, it specifies that the component should automatically get focus on load.
141
139
  * @group Props
142
140
  */
143
- autofocus;
141
+ autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
144
142
  /**
145
143
  * Callback to invoke on value change.
146
144
  * @param {SliderChangeEvent} event - Custom value change event.
@@ -160,25 +158,42 @@ class Slider extends BaseEditableHolder {
160
158
  sliderHandleEnd = viewChild('sliderHandleEnd', /* @ts-ignore */
161
159
  ...(ngDevMode ? [{ debugName: "sliderHandleEnd" }] : /* istanbul ignore next */ []));
162
160
  _componentStyle = inject(SliderStyle);
163
- value;
164
- values;
165
- handleValue;
166
- handleValues = [];
167
- diff;
168
- offset;
169
- bottom;
170
- dragging;
171
- dragListener;
172
- mouseupListener;
173
- initX;
174
- initY;
175
- barWidth;
176
- barHeight;
177
- sliderHandleClick;
178
- handleIndex = 0;
179
- startHandleValue;
180
- startx;
181
- starty;
161
+ value = signal(undefined, /* @ts-ignore */
162
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
163
+ values = signal(undefined, /* @ts-ignore */
164
+ ...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
165
+ handleValue = signal(undefined, /* @ts-ignore */
166
+ ...(ngDevMode ? [{ debugName: "handleValue" }] : /* istanbul ignore next */ []));
167
+ handleValues = signal([], /* @ts-ignore */
168
+ ...(ngDevMode ? [{ debugName: "handleValues" }] : /* istanbul ignore next */ []));
169
+ diff = computed(() => this.getDiff(), /* @ts-ignore */
170
+ ...(ngDevMode ? [{ debugName: "diff" }] : /* istanbul ignore next */ []));
171
+ offset = computed(() => this.getOffset(), /* @ts-ignore */
172
+ ...(ngDevMode ? [{ debugName: "offset" }] : /* istanbul ignore next */ []));
173
+ dragging = signal(undefined, /* @ts-ignore */
174
+ ...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
175
+ dragListener = signal(undefined, /* @ts-ignore */
176
+ ...(ngDevMode ? [{ debugName: "dragListener" }] : /* istanbul ignore next */ []));
177
+ mouseupListener = signal(undefined, /* @ts-ignore */
178
+ ...(ngDevMode ? [{ debugName: "mouseupListener" }] : /* istanbul ignore next */ []));
179
+ initX = signal(undefined, /* @ts-ignore */
180
+ ...(ngDevMode ? [{ debugName: "initX" }] : /* istanbul ignore next */ []));
181
+ initY = signal(undefined, /* @ts-ignore */
182
+ ...(ngDevMode ? [{ debugName: "initY" }] : /* istanbul ignore next */ []));
183
+ barWidth = signal(undefined, /* @ts-ignore */
184
+ ...(ngDevMode ? [{ debugName: "barWidth" }] : /* istanbul ignore next */ []));
185
+ barHeight = signal(undefined, /* @ts-ignore */
186
+ ...(ngDevMode ? [{ debugName: "barHeight" }] : /* istanbul ignore next */ []));
187
+ sliderHandleClick = signal(undefined, /* @ts-ignore */
188
+ ...(ngDevMode ? [{ debugName: "sliderHandleClick" }] : /* istanbul ignore next */ []));
189
+ handleIndex = signal(0, /* @ts-ignore */
190
+ ...(ngDevMode ? [{ debugName: "handleIndex" }] : /* istanbul ignore next */ []));
191
+ startHandleValue = signal(undefined, /* @ts-ignore */
192
+ ...(ngDevMode ? [{ debugName: "startHandleValue" }] : /* istanbul ignore next */ []));
193
+ startx = signal(undefined, /* @ts-ignore */
194
+ ...(ngDevMode ? [{ debugName: "startx" }] : /* istanbul ignore next */ []));
195
+ starty = signal(undefined, /* @ts-ignore */
196
+ ...(ngDevMode ? [{ debugName: "starty" }] : /* istanbul ignore next */ []));
182
197
  ngZone = inject(NgZone);
183
198
  onHostClick(event) {
184
199
  this.onBarClick(event);
@@ -187,19 +202,19 @@ class Slider extends BaseEditableHolder {
187
202
  if (this.$disabled()) {
188
203
  return;
189
204
  }
190
- this.dragging = true;
205
+ this.dragging.set(true);
191
206
  this.updateDomData();
192
- this.sliderHandleClick = true;
193
- if (this.range && this.handleValues && this.handleValues[0] === this.max) {
194
- this.handleIndex = 0;
207
+ this.sliderHandleClick.set(true);
208
+ if (this.range() && this.handleValues() && this.handleValues()[0] === this.max()) {
209
+ this.handleIndex.set(0);
195
210
  }
196
211
  else {
197
- this.handleIndex = index;
212
+ this.handleIndex.set(index);
198
213
  }
199
214
  this.bindDragListeners();
200
215
  event.target.focus();
201
216
  event.preventDefault();
202
- if (this.animate) {
217
+ if (this.animate()) {
203
218
  removeClass(this.el.nativeElement, 'p-slider-animate');
204
219
  }
205
220
  }
@@ -209,23 +224,23 @@ class Slider extends BaseEditableHolder {
209
224
  }
210
225
  this.el.nativeElement.setAttribute('data-p-sliding', true);
211
226
  var touchobj = event.changedTouches[0];
212
- this.startHandleValue = this.range ? this.handleValues[index] : this.handleValue;
213
- this.dragging = true;
214
- if (this.range && this.handleValues && this.handleValues[0] === this.max) {
215
- this.handleIndex = 0;
227
+ this.startHandleValue.set(this.range() ? this.handleValues()[index] : this.handleValue());
228
+ this.dragging.set(true);
229
+ if (this.range() && this.handleValues() && this.handleValues()[0] === this.max()) {
230
+ this.handleIndex.set(0);
216
231
  }
217
232
  else {
218
- this.handleIndex = index;
233
+ this.handleIndex.set(index);
219
234
  }
220
- if (this.orientation === 'horizontal') {
221
- this.startx = parseInt(touchobj.clientX, 10);
222
- this.barWidth = this.el.nativeElement.offsetWidth;
235
+ if (this.orientation() === 'horizontal') {
236
+ this.startx.set(parseInt(touchobj.clientX, 10));
237
+ this.barWidth.set(this.el.nativeElement.offsetWidth);
223
238
  }
224
239
  else {
225
- this.starty = parseInt(touchobj.clientY, 10);
226
- this.barHeight = this.el.nativeElement.offsetHeight;
240
+ this.starty.set(parseInt(touchobj.clientY, 10));
241
+ this.barHeight.set(this.el.nativeElement.offsetHeight);
227
242
  }
228
- if (this.animate) {
243
+ if (this.animate()) {
229
244
  removeClass(this.el.nativeElement, 'p-slider-animate');
230
245
  }
231
246
  event.preventDefault();
@@ -235,11 +250,11 @@ class Slider extends BaseEditableHolder {
235
250
  return;
236
251
  }
237
252
  var touchobj = event.changedTouches[0], handleValue = 0;
238
- if (this.orientation === 'horizontal') {
239
- handleValue = Math.floor(((parseInt(touchobj.clientX, 10) - this.startx) * 100) / this.barWidth) + this.startHandleValue;
253
+ if (this.orientation() === 'horizontal') {
254
+ handleValue = Math.floor(((parseInt(touchobj.clientX, 10) - this.startx()) * 100) / this.barWidth()) + this.startHandleValue();
240
255
  }
241
256
  else {
242
- handleValue = Math.floor(((this.starty - parseInt(touchobj.clientY, 10)) * 100) / this.barHeight) + this.startHandleValue;
257
+ handleValue = Math.floor(((this.starty() - parseInt(touchobj.clientY, 10)) * 100) / this.barHeight()) + this.startHandleValue();
243
258
  }
244
259
  this.setValueFromHandle(event, handleValue);
245
260
  event.preventDefault();
@@ -248,13 +263,13 @@ class Slider extends BaseEditableHolder {
248
263
  if (this.$disabled()) {
249
264
  return;
250
265
  }
251
- this.dragging = false;
266
+ this.dragging.set(false);
252
267
  this.el.nativeElement.setAttribute('data-p-sliding', false);
253
- if (this.range)
254
- this.onSlideEnd.emit({ originalEvent: event, values: this.values });
268
+ if (this.range())
269
+ this.onSlideEnd.emit({ originalEvent: event, values: this.values() });
255
270
  else
256
- this.onSlideEnd.emit({ originalEvent: event, value: this.value });
257
- if (this.animate) {
271
+ this.onSlideEnd.emit({ originalEvent: event, value: this.value() });
272
+ if (this.animate()) {
258
273
  addClass(this.el.nativeElement, 'p-slider-animate');
259
274
  }
260
275
  event.preventDefault();
@@ -263,18 +278,18 @@ class Slider extends BaseEditableHolder {
263
278
  if (this.$disabled()) {
264
279
  return;
265
280
  }
266
- if (!this.sliderHandleClick) {
281
+ if (!this.sliderHandleClick()) {
267
282
  this.updateDomData();
268
283
  this.handleChange(event);
269
- if (this.range)
270
- this.onSlideEnd.emit({ originalEvent: event, values: this.values });
284
+ if (this.range())
285
+ this.onSlideEnd.emit({ originalEvent: event, values: this.values() });
271
286
  else
272
- this.onSlideEnd.emit({ originalEvent: event, value: this.value });
287
+ this.onSlideEnd.emit({ originalEvent: event, value: this.value() });
273
288
  }
274
- this.sliderHandleClick = false;
289
+ this.sliderHandleClick.set(false);
275
290
  }
276
291
  onKeyDown(event, index) {
277
- this.handleIndex = index;
292
+ this.handleIndex.set(index);
278
293
  switch (event.code) {
279
294
  case 'ArrowDown':
280
295
  case 'ArrowLeft':
@@ -295,11 +310,11 @@ class Slider extends BaseEditableHolder {
295
310
  event.preventDefault();
296
311
  break;
297
312
  case 'Home':
298
- this.updateValue(this.min, event);
313
+ this.updateValue(this.min(), event);
299
314
  event.preventDefault();
300
315
  break;
301
316
  case 'End':
302
- this.updateValue(this.max, event);
317
+ this.updateValue(this.max(), event);
303
318
  event.preventDefault();
304
319
  break;
305
320
  default:
@@ -308,38 +323,38 @@ class Slider extends BaseEditableHolder {
308
323
  }
309
324
  decrementValue(event, index, pageKey = false) {
310
325
  let newValue;
311
- if (this.range) {
312
- if (this.step)
313
- newValue = (this.values?.[index] ?? 0) - this.step;
326
+ if (this.range()) {
327
+ if (this.step())
328
+ newValue = (this.values()?.[index] ?? 0) - this.step();
314
329
  else
315
- newValue = (this.values?.[index] ?? 0) - 1;
330
+ newValue = (this.values()?.[index] ?? 0) - 1;
316
331
  }
317
332
  else {
318
- if (this.step)
319
- newValue = this.value - this.step;
320
- else if (!this.step && pageKey)
321
- newValue = this.value - 10;
333
+ if (this.step())
334
+ newValue = this.value() - this.step();
335
+ else if (!this.step() && pageKey)
336
+ newValue = this.value() - 10;
322
337
  else
323
- newValue = this.value - 1;
338
+ newValue = this.value() - 1;
324
339
  }
325
340
  this.updateValue(newValue, event);
326
341
  event.preventDefault();
327
342
  }
328
343
  incrementValue(event, index, pageKey = false) {
329
344
  let newValue;
330
- if (this.range) {
331
- if (this.step)
332
- newValue = (this.values?.[index] ?? 0) + this.step;
345
+ if (this.range()) {
346
+ if (this.step())
347
+ newValue = (this.values()?.[index] ?? 0) + this.step();
333
348
  else
334
- newValue = (this.values?.[index] ?? 0) + 1;
349
+ newValue = (this.values()?.[index] ?? 0) + 1;
335
350
  }
336
351
  else {
337
- if (this.step)
338
- newValue = this.value + this.step;
339
- else if (!this.step && pageKey)
340
- newValue = this.value + 10;
352
+ if (this.step())
353
+ newValue = this.value() + this.step();
354
+ else if (!this.step() && pageKey)
355
+ newValue = this.value() + 10;
341
356
  else
342
- newValue = this.value + 1;
357
+ newValue = this.value() + 1;
343
358
  }
344
359
  this.updateValue(newValue, event);
345
360
  event.preventDefault();
@@ -352,72 +367,77 @@ class Slider extends BaseEditableHolder {
352
367
  if (isPlatformBrowser(this.platformId)) {
353
368
  this.ngZone.runOutsideAngular(() => {
354
369
  const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;
355
- if (!this.dragListener) {
356
- this.dragListener = this.renderer.listen(documentTarget, 'mousemove', (event) => {
357
- if (this.dragging) {
370
+ if (!this.dragListener()) {
371
+ this.dragListener.set(this.renderer.listen(documentTarget, 'mousemove', (event) => {
372
+ if (this.dragging()) {
358
373
  this.el.nativeElement.setAttribute('data-p-sliding', true);
359
374
  this.ngZone.run(() => {
360
375
  this.handleChange(event);
361
376
  });
362
377
  }
363
- });
378
+ }));
364
379
  }
365
- if (!this.mouseupListener) {
366
- this.mouseupListener = this.renderer.listen(documentTarget, 'mouseup', (event) => {
367
- if (this.dragging) {
368
- this.dragging = false;
380
+ if (!this.mouseupListener()) {
381
+ this.mouseupListener.set(this.renderer.listen(documentTarget, 'mouseup', (event) => {
382
+ if (this.dragging()) {
383
+ this.dragging.set(false);
369
384
  this.el.nativeElement.setAttribute('data-p-sliding', false);
370
385
  this.ngZone.run(() => {
371
- if (this.range)
372
- this.onSlideEnd.emit({ originalEvent: event, values: this.values });
386
+ if (this.range())
387
+ this.onSlideEnd.emit({ originalEvent: event, values: this.values() });
373
388
  else
374
- this.onSlideEnd.emit({ originalEvent: event, value: this.value });
375
- if (this.animate) {
389
+ this.onSlideEnd.emit({ originalEvent: event, value: this.value() });
390
+ if (this.animate()) {
376
391
  addClass(this.el.nativeElement, 'p-slider-animate');
377
392
  }
378
393
  });
379
394
  }
380
- });
395
+ }));
381
396
  }
382
397
  });
383
398
  }
384
399
  }
385
400
  unbindDragListeners() {
386
- if (this.dragListener) {
387
- this.dragListener();
388
- this.dragListener = null;
401
+ const dragListener = this.dragListener();
402
+ if (dragListener) {
403
+ dragListener();
404
+ this.dragListener.set(null);
389
405
  }
390
- if (this.mouseupListener) {
391
- this.mouseupListener();
392
- this.mouseupListener = null;
406
+ const mouseupListener = this.mouseupListener();
407
+ if (mouseupListener) {
408
+ mouseupListener();
409
+ this.mouseupListener.set(null);
393
410
  }
394
411
  }
395
412
  setValueFromHandle(event, handleValue) {
396
413
  let newValue = this.getValueFromHandle(handleValue);
397
- if (this.range) {
398
- if (this.step) {
399
- this.handleStepChange(newValue, this.values[this.handleIndex]);
414
+ if (this.range()) {
415
+ if (this.step()) {
416
+ this.handleStepChange(newValue, this.values()[this.handleIndex()]);
400
417
  }
401
418
  else {
402
- this.handleValues[this.handleIndex] = handleValue;
419
+ this.handleValues.update((handleValues) => {
420
+ const _handleValues = [...handleValues];
421
+ _handleValues[this.handleIndex()] = handleValue;
422
+ return _handleValues;
423
+ });
403
424
  this.updateValue(newValue, event);
404
425
  }
405
426
  }
406
427
  else {
407
- if (this.step) {
408
- this.handleStepChange(newValue, this.value);
428
+ if (this.step()) {
429
+ this.handleStepChange(newValue, this.value());
409
430
  }
410
431
  else {
411
- this.handleValue = handleValue;
432
+ this.handleValue.set(handleValue);
412
433
  this.updateValue(newValue, event);
413
434
  }
414
435
  }
415
- this.cd.markForCheck();
416
436
  }
417
437
  handleStepChange(newValue, oldValue) {
418
438
  let diff = newValue - oldValue;
419
439
  let val = oldValue;
420
- let _step = this.step;
440
+ let _step = this.step();
421
441
  if (diff < 0) {
422
442
  val = oldValue + Math.ceil(newValue / _step - oldValue / _step) * _step;
423
443
  }
@@ -427,130 +447,115 @@ class Slider extends BaseEditableHolder {
427
447
  this.updateValue(val);
428
448
  this.updateHandleValue();
429
449
  }
430
- get rangeStartLeft() {
450
+ rangeStartLeft = computed(() => {
431
451
  if (!this.isVertical())
432
- return this.handleValues[0] > 100 ? 100 + '%' : this.handleValues[0] + '%';
452
+ return this.handleValues()[0] > 100 ? 100 + '%' : this.handleValues()[0] + '%';
433
453
  return null;
434
- }
435
- get rangeStartBottom() {
436
- return this.isVertical() ? this.handleValues[0] + '%' : 'auto';
437
- }
438
- get rangeEndLeft() {
439
- return this.isVertical() ? null : this.handleValues[1] + '%';
440
- }
441
- get rangeEndBottom() {
442
- return this.isVertical() ? this.handleValues[1] + '%' : 'auto';
443
- }
444
- isVertical() {
445
- return this.orientation === 'vertical';
446
- }
454
+ }, /* @ts-ignore */
455
+ ...(ngDevMode ? [{ debugName: "rangeStartLeft" }] : /* istanbul ignore next */ []));
456
+ rangeStartBottom = computed(() => (this.isVertical() ? this.handleValues()[0] + '%' : 'auto'), /* @ts-ignore */
457
+ ...(ngDevMode ? [{ debugName: "rangeStartBottom" }] : /* istanbul ignore next */ []));
458
+ rangeEndLeft = computed(() => (this.isVertical() ? null : this.handleValues()[1] + '%'), /* @ts-ignore */
459
+ ...(ngDevMode ? [{ debugName: "rangeEndLeft" }] : /* istanbul ignore next */ []));
460
+ rangeEndBottom = computed(() => (this.isVertical() ? this.handleValues()[1] + '%' : 'auto'), /* @ts-ignore */
461
+ ...(ngDevMode ? [{ debugName: "rangeEndBottom" }] : /* istanbul ignore next */ []));
462
+ isVertical = computed(() => this.orientation() === 'vertical', /* @ts-ignore */
463
+ ...(ngDevMode ? [{ debugName: "isVertical" }] : /* istanbul ignore next */ []));
447
464
  updateDomData() {
448
465
  let rect = this.el.nativeElement.getBoundingClientRect();
449
- this.initX = rect.left + getWindowScrollLeft();
450
- this.initY = rect.top + getWindowScrollTop();
451
- this.barWidth = this.el.nativeElement.offsetWidth;
452
- this.barHeight = this.el.nativeElement.offsetHeight;
466
+ this.initX.set(rect.left + getWindowScrollLeft());
467
+ this.initY.set(rect.top + getWindowScrollTop());
468
+ this.barWidth.set(this.el.nativeElement.offsetWidth);
469
+ this.barHeight.set(this.el.nativeElement.offsetHeight);
453
470
  }
454
471
  calculateHandleValue(event) {
455
- if (this.orientation === 'horizontal') {
472
+ if (this.orientation() === 'horizontal') {
456
473
  if (isRTL(this.el.nativeElement)) {
457
- return ((this.initX + this.barWidth - event.pageX) * 100) / this.barWidth;
474
+ return ((this.initX() + this.barWidth() - event.pageX) * 100) / this.barWidth();
458
475
  }
459
476
  else {
460
- return ((event.pageX - this.initX) * 100) / this.barWidth;
477
+ return ((event.pageX - this.initX()) * 100) / this.barWidth();
461
478
  }
462
479
  }
463
480
  else {
464
- return ((this.initY + this.barHeight - event.pageY) * 100) / this.barHeight;
481
+ return ((this.initY() + this.barHeight() - event.pageY) * 100) / this.barHeight();
465
482
  }
466
483
  }
467
484
  updateHandleValue() {
468
- if (this.range) {
469
- this.handleValues[0] = ((this.values[0] < this.min ? 0 : this.values[0] - this.min) * 100) / (this.max - this.min);
470
- this.handleValues[1] = ((this.values[1] > this.max ? 100 : this.values[1] - this.min) * 100) / (this.max - this.min);
485
+ if (this.range()) {
486
+ const values = this.values();
487
+ this.handleValues.set([((values[0] < this.min() ? 0 : values[0] - this.min()) * 100) / (this.max() - this.min()), ((values[1] > this.max() ? 100 : values[1] - this.min()) * 100) / (this.max() - this.min())]);
471
488
  }
472
489
  else {
473
- if (this.value < this.min)
474
- this.handleValue = 0;
475
- else if (this.value > this.max)
476
- this.handleValue = 100;
490
+ if (this.value() < this.min())
491
+ this.handleValue.set(0);
492
+ else if (this.value() > this.max())
493
+ this.handleValue.set(100);
477
494
  else
478
- this.handleValue = ((this.value - this.min) * 100) / (this.max - this.min);
495
+ this.handleValue.set(((this.value() - this.min()) * 100) / (this.max() - this.min()));
479
496
  }
480
- if (this.step) {
481
- this.updateDiffAndOffset();
482
- }
483
- }
484
- updateDiffAndOffset() {
485
- this.diff = this.getDiff();
486
- this.offset = this.getOffset();
487
- }
488
- getDiff() {
489
- return Math.abs(this.handleValues[0] - this.handleValues[1]);
490
- }
491
- getOffset() {
492
- return Math.min(this.handleValues[0], this.handleValues[1]);
493
497
  }
498
+ getDiff = computed(() => Math.abs(this.handleValues()[0] - this.handleValues()[1]), /* @ts-ignore */
499
+ ...(ngDevMode ? [{ debugName: "getDiff" }] : /* istanbul ignore next */ []));
500
+ getOffset = computed(() => Math.min(this.handleValues()[0], this.handleValues()[1]), /* @ts-ignore */
501
+ ...(ngDevMode ? [{ debugName: "getOffset" }] : /* istanbul ignore next */ []));
494
502
  updateValue(val, event) {
495
- if (this.range) {
503
+ if (this.range()) {
496
504
  let value = val;
497
- if (this.handleIndex == 0) {
498
- if (value < this.min) {
499
- value = this.min;
500
- this.handleValues[0] = 0;
505
+ if (this.handleIndex() == 0) {
506
+ if (value < this.min()) {
507
+ value = this.min();
508
+ this.handleValues.update((handleValues) => [0, handleValues[1]]);
501
509
  }
502
- else if (value > this.values[1]) {
503
- if (value > this.max) {
504
- value = this.max;
505
- this.handleValues[0] = 100;
510
+ else if (value > this.values()[1]) {
511
+ if (value > this.max()) {
512
+ value = this.max();
513
+ this.handleValues.update((handleValues) => [100, handleValues[1]]);
506
514
  }
507
515
  }
508
516
  this.sliderHandleStart()?.nativeElement.focus();
509
517
  }
510
518
  else {
511
- if (value > this.max) {
512
- value = this.max;
513
- this.handleValues[1] = 100;
514
- this.offset = this.handleValues[1];
515
- }
516
- else if (value < this.min) {
517
- value = this.min;
518
- this.handleValues[1] = 0;
519
+ if (value > this.max()) {
520
+ value = this.max();
521
+ this.handleValues.update((handleValues) => [handleValues[0], 100]);
519
522
  }
520
- else if (value < this.values[0]) {
521
- this.offset = this.handleValues[1];
523
+ else if (value < this.min()) {
524
+ value = this.min();
525
+ this.handleValues.update((handleValues) => [handleValues[0], 0]);
522
526
  }
523
527
  this.sliderHandleEnd()?.nativeElement.focus();
524
528
  }
525
- if (this.step) {
529
+ if (this.step()) {
526
530
  this.updateHandleValue();
527
531
  }
528
- else {
529
- this.updateDiffAndOffset();
530
- }
531
- this.values[this.handleIndex] = this.getNormalizedValue(value);
532
- let newValues = [this.minVal, this.maxVal];
532
+ this.values.update((values) => {
533
+ const _values = [...values];
534
+ _values[this.handleIndex()] = this.getNormalizedValue(value);
535
+ return _values;
536
+ });
537
+ let newValues = [this.minVal(), this.maxVal()];
533
538
  this.onModelChange(newValues);
534
- this.onChange.emit({ event: event, values: this.values });
539
+ this.onChange.emit({ event: event, values: this.values() });
535
540
  }
536
541
  else {
537
- if (val < this.min) {
538
- val = this.min;
539
- this.handleValue = 0;
542
+ if (val < this.min()) {
543
+ val = this.min();
544
+ this.handleValue.set(0);
540
545
  }
541
- else if (val > this.max) {
542
- val = this.max;
543
- this.handleValue = 100;
546
+ else if (val > this.max()) {
547
+ val = this.max();
548
+ this.handleValue.set(100);
544
549
  }
545
- this.value = this.getNormalizedValue(val);
546
- this.onModelChange(this.value);
547
- this.onChange.emit({ event: event, value: this.value });
550
+ this.value.set(this.getNormalizedValue(val));
551
+ this.onModelChange(this.value());
552
+ this.onChange.emit({ event: event, value: this.value() });
548
553
  this.sliderHandle()?.nativeElement.focus();
549
554
  }
550
555
  this.updateHandleValue();
551
556
  }
552
557
  getValueFromHandle(handleValue) {
553
- return (this.max - this.min) * (handleValue / 100) + this.min;
558
+ return (this.max() - this.min()) * (handleValue / 100) + this.min();
554
559
  }
555
560
  getDecimalsCount(value) {
556
561
  if (value && Math.floor(value) !== value)
@@ -558,7 +563,7 @@ class Slider extends BaseEditableHolder {
558
563
  return 0;
559
564
  }
560
565
  getNormalizedValue(val) {
561
- let decimalsCount = this.getDecimalsCount(this.step);
566
+ let decimalsCount = this.getDecimalsCount(this.step());
562
567
  if (decimalsCount > 0) {
563
568
  return +parseFloat(val.toString()).toFixed(decimalsCount);
564
569
  }
@@ -569,12 +574,10 @@ class Slider extends BaseEditableHolder {
569
574
  onDestroy() {
570
575
  this.unbindDragListeners();
571
576
  }
572
- get minVal() {
573
- return Math.min(this.values[1], this.values[0]);
574
- }
575
- get maxVal() {
576
- return Math.max(this.values[1], this.values[0]);
577
- }
577
+ minVal = computed(() => Math.min(this.values()[1], this.values()[0]), /* @ts-ignore */
578
+ ...(ngDevMode ? [{ debugName: "minVal" }] : /* istanbul ignore next */ []));
579
+ maxVal = computed(() => Math.max(this.values()[1], this.values()[0]), /* @ts-ignore */
580
+ ...(ngDevMode ? [{ debugName: "maxVal" }] : /* istanbul ignore next */ []));
578
581
  /**
579
582
  * @override
580
583
  *
@@ -582,61 +585,58 @@ class Slider extends BaseEditableHolder {
582
585
  * Writes the value to the control.
583
586
  */
584
587
  writeControlValue(value) {
585
- if (this.range)
586
- this.values = value || [0, 0];
588
+ if (this.range())
589
+ this.values.set(value || [0, 0]);
587
590
  else
588
- this.value = value || 0;
591
+ this.value.set(value || 0);
589
592
  this.updateHandleValue();
590
- this.updateDiffAndOffset();
591
- this.cd.markForCheck();
592
- }
593
- get dataP() {
594
- return this.cn({
595
- [this.orientation]: this.orientation
596
- });
597
593
  }
598
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Slider, deps: null, target: i0.ɵɵFactoryTarget.Component });
599
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Slider, isStandalone: true, selector: "p-slider", inputs: { animate: ["animate", "animate", booleanAttribute], min: ["min", "min", numberAttribute], max: ["max", "max", numberAttribute], orientation: "orientation", step: ["step", "step", numberAttribute], range: ["range", "range", booleanAttribute], styleClass: "styleClass", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", tabindex: ["tabindex", "tabindex", numberAttribute], autofocus: ["autofocus", "autofocus", booleanAttribute] }, outputs: { onChange: "onChange", onSlideEnd: "onSlideEnd" }, host: { listeners: { "click": "onHostClick($event)" }, properties: { "attr.data-pc-name": "'slider'", "attr.data-pc-section": "'root'", "class": "cn(cx('root'), styleClass)", "attr.data-p": "dataP", "attr.data-p-sliding": "false" } }, providers: [SLIDER_VALUE_ACCESSOR, SliderStyle, { provide: SLIDER_INSTANCE, useExisting: Slider }, { provide: PARENT_INSTANCE, useExisting: Slider }], viewQueries: [{ propertyName: "sliderHandle", first: true, predicate: ["sliderHandle"], descendants: true, isSignal: true }, { propertyName: "sliderHandleStart", first: true, predicate: ["sliderHandleStart"], descendants: true, isSignal: true }, { propertyName: "sliderHandleEnd", first: true, predicate: ["sliderHandleEnd"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
600
- @if (range && orientation == 'horizontal') {
594
+ dataP = computed(() => this.cn({
595
+ [this.orientation()]: this.orientation()
596
+ }), /* @ts-ignore */
597
+ ...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
598
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Slider, deps: [], target: i0.ɵɵFactoryTarget.Component });
599
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Slider, isStandalone: true, selector: "p-slider", inputs: { animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, range: { classPropertyName: "range", publicName: "range", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onSlideEnd: "onSlideEnd" }, host: { listeners: { "click": "onHostClick($event)" }, properties: { "attr.data-pc-name": "'slider'", "attr.data-pc-section": "'root'", "class": "cx('root')", "attr.data-p": "dataP()", "attr.data-p-sliding": "false" } }, providers: [SLIDER_VALUE_ACCESSOR, SliderStyle, { provide: SLIDER_INSTANCE, useExisting: Slider }, { provide: PARENT_INSTANCE, useExisting: Slider }], viewQueries: [{ propertyName: "sliderHandle", first: true, predicate: ["sliderHandle"], descendants: true, isSignal: true }, { propertyName: "sliderHandleStart", first: true, predicate: ["sliderHandleStart"], descendants: true, isSignal: true }, { propertyName: "sliderHandleEnd", first: true, predicate: ["sliderHandleEnd"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
600
+ @if (range() && orientation() == 'horizontal') {
601
601
  <span
602
602
  [class]="cx('range')"
603
603
  [ngStyle]="{
604
- 'inset-inline-start': offset !== null && offset !== undefined ? offset + '%' : handleValues[0] + '%',
605
- width: diff ? diff + '%' : handleValues[1] - handleValues[0] + '%'
604
+ 'inset-inline-start': offset() !== null && offset() !== undefined ? offset() + '%' : handleValues()[0] + '%',
605
+ width: diff() ? diff() + '%' : handleValues()[1] - handleValues()[0] + '%'
606
606
  }"
607
607
  [style]="sx('range')"
608
608
  [attr.data-pc-section]="'range'"
609
- [attr.data-p]="dataP"
609
+ [attr.data-p]="dataP()"
610
610
  [pBind]="ptm('range')"
611
611
  ></span>
612
612
  }
613
- @if (range && orientation == 'vertical') {
613
+ @if (range() && orientation() == 'vertical') {
614
614
  <span
615
615
  [class]="cx('range')"
616
616
  [ngStyle]="{
617
- bottom: offset !== null && offset !== undefined ? offset + '%' : handleValues[0] + '%',
618
- height: diff ? diff + '%' : handleValues[1] - handleValues[0] + '%'
617
+ bottom: offset() !== null && offset() !== undefined ? offset() + '%' : handleValues()[0] + '%',
618
+ height: diff() ? diff() + '%' : handleValues()[1] - handleValues()[0] + '%'
619
619
  }"
620
620
  [style]="sx('range')"
621
621
  [attr.data-pc-section]="'range'"
622
- [attr.data-p]="dataP"
622
+ [attr.data-p]="dataP()"
623
623
  [pBind]="ptm('range')"
624
624
  ></span>
625
625
  }
626
- @if (!range && orientation == 'vertical') {
627
- <span [class]="cx('range')" [attr.data-pc-section]="'range'" [style]="sx('range')" [ngStyle]="{ height: handleValue + '%' }" [pBind]="ptm('range')"></span>
626
+ @if (!range() && orientation() == 'vertical') {
627
+ <span [class]="cx('range')" [attr.data-pc-section]="'range'" [style]="sx('range')" [ngStyle]="{ height: handleValue() + '%' }" [pBind]="ptm('range')"></span>
628
628
  }
629
- @if (!range && orientation == 'horizontal') {
630
- <span [class]="cx('range')" [attr.data-pc-section]="'range'" [style]="sx('range')" [ngStyle]="{ width: handleValue + '%' }" [pBind]="ptm('range')"></span>
629
+ @if (!range() && orientation() == 'horizontal') {
630
+ <span [class]="cx('range')" [attr.data-pc-section]="'range'" [style]="sx('range')" [ngStyle]="{ width: handleValue() + '%' }" [pBind]="ptm('range')"></span>
631
631
  }
632
- @if (!range) {
632
+ @if (!range()) {
633
633
  <span
634
634
  #sliderHandle
635
635
  [class]="cx('handle')"
636
- [style.transition]="dragging ? 'none' : null"
636
+ [style.transition]="dragging() ? 'none' : null"
637
637
  [ngStyle]="{
638
- 'inset-inline-start': orientation == 'horizontal' ? handleValue + '%' : null,
639
- bottom: orientation == 'vertical' ? handleValue + '%' : null
638
+ 'inset-inline-start': orientation() == 'horizontal' ? handleValue() + '%' : null,
639
+ bottom: orientation() == 'vertical' ? handleValue() + '%' : null
640
640
  }"
641
641
  [style]="sx('handle')"
642
642
  (touchstart)="onDragStart($event)"
@@ -644,69 +644,69 @@ class Slider extends BaseEditableHolder {
644
644
  (touchend)="onDragEnd($event)"
645
645
  (mousedown)="onMouseDown($event)"
646
646
  (keydown)="onKeyDown($event)"
647
- [attr.tabindex]="$disabled() ? null : tabindex"
647
+ [attr.tabindex]="$disabled() ? null : tabindex()"
648
648
  role="slider"
649
- [attr.aria-valuemin]="min"
650
- [attr.aria-valuenow]="value"
651
- [attr.aria-valuemax]="max"
652
- [attr.aria-labelledby]="ariaLabelledBy"
653
- [attr.aria-label]="ariaLabel"
654
- [attr.aria-orientation]="orientation"
649
+ [attr.aria-valuemin]="min()"
650
+ [attr.aria-valuenow]="value()"
651
+ [attr.aria-valuemax]="max()"
652
+ [attr.aria-labelledby]="ariaLabelledBy()"
653
+ [attr.aria-label]="ariaLabel()"
654
+ [attr.aria-orientation]="orientation()"
655
655
  [attr.data-pc-section]="'handle'"
656
- [pAutoFocus]="autofocus"
656
+ [pAutoFocus]="autofocus()"
657
657
  [pBind]="ptm('handle')"
658
- [attr.data-p]="dataP"
658
+ [attr.data-p]="dataP()"
659
659
  ></span>
660
660
  }
661
- @if (range) {
661
+ @if (range()) {
662
662
  <span
663
663
  #sliderHandleStart
664
- [style.transition]="dragging ? 'none' : null"
665
- [class]="cn(cx('handle'), handleIndex == 0 && 'p-slider-handle-active')"
664
+ [style.transition]="dragging() ? 'none' : null"
665
+ [class]="cn(cx('handle'), handleIndex() == 0 && 'p-slider-handle-active')"
666
666
  [style]="sx('handle')"
667
- [ngStyle]="{ 'inset-inline-start': rangeStartLeft, bottom: rangeStartBottom }"
667
+ [ngStyle]="{ 'inset-inline-start': rangeStartLeft(), bottom: rangeStartBottom() }"
668
668
  (keydown)="onKeyDown($event, 0)"
669
669
  (mousedown)="onMouseDown($event, 0)"
670
670
  (touchstart)="onDragStart($event, 0)"
671
671
  (touchmove)="onDrag($event)"
672
672
  (touchend)="onDragEnd($event)"
673
- [attr.tabindex]="$disabled() ? null : tabindex"
673
+ [attr.tabindex]="$disabled() ? null : tabindex()"
674
674
  role="slider"
675
- [attr.aria-valuemin]="min"
676
- [attr.aria-valuenow]="value ? value[0] : null"
677
- [attr.aria-valuemax]="max"
678
- [attr.aria-labelledby]="ariaLabelledBy"
679
- [attr.aria-label]="ariaLabel"
680
- [attr.aria-orientation]="orientation"
675
+ [attr.aria-valuemin]="min()"
676
+ [attr.aria-valuenow]="value() ? value()[0] : null"
677
+ [attr.aria-valuemax]="max()"
678
+ [attr.aria-labelledby]="ariaLabelledBy()"
679
+ [attr.aria-label]="ariaLabel()"
680
+ [attr.aria-orientation]="orientation()"
681
681
  [attr.data-pc-section]="'startHandler'"
682
- [pAutoFocus]="autofocus"
682
+ [pAutoFocus]="autofocus()"
683
683
  [pBind]="ptm('startHandler')"
684
- [attr.data-p]="dataP"
684
+ [attr.data-p]="dataP()"
685
685
  ></span>
686
686
  }
687
- @if (range) {
687
+ @if (range()) {
688
688
  <span
689
689
  #sliderHandleEnd
690
- [style.transition]="dragging ? 'none' : null"
691
- [class]="cn(cx('handle'), handleIndex == 1 && 'p-slider-handle-active')"
692
- [ngStyle]="{ 'inset-inline-start': rangeEndLeft, bottom: rangeEndBottom }"
690
+ [style.transition]="dragging() ? 'none' : null"
691
+ [class]="cn(cx('handle'), handleIndex() == 1 && 'p-slider-handle-active')"
692
+ [ngStyle]="{ 'inset-inline-start': rangeEndLeft(), bottom: rangeEndBottom() }"
693
693
  [style]="sx('handle')"
694
694
  (keydown)="onKeyDown($event, 1)"
695
695
  (mousedown)="onMouseDown($event, 1)"
696
696
  (touchstart)="onDragStart($event, 1)"
697
697
  (touchmove)="onDrag($event)"
698
698
  (touchend)="onDragEnd($event)"
699
- [attr.tabindex]="$disabled() ? null : tabindex"
699
+ [attr.tabindex]="$disabled() ? null : tabindex()"
700
700
  role="slider"
701
- [attr.aria-valuemin]="min"
702
- [attr.aria-valuenow]="value ? value[1] : null"
703
- [attr.aria-valuemax]="max"
704
- [attr.aria-labelledby]="ariaLabelledBy"
705
- [attr.aria-label]="ariaLabel"
706
- [attr.aria-orientation]="orientation"
701
+ [attr.aria-valuemin]="min()"
702
+ [attr.aria-valuenow]="value() ? value()[1] : null"
703
+ [attr.aria-valuemax]="max()"
704
+ [attr.aria-labelledby]="ariaLabelledBy()"
705
+ [attr.aria-label]="ariaLabel()"
706
+ [attr.aria-orientation]="orientation()"
707
707
  [attr.data-pc-section]="'endHandler'"
708
708
  [pBind]="ptm('endHandler')"
709
- [attr.data-p]="dataP"
709
+ [attr.data-p]="dataP()"
710
710
  ></span>
711
711
  }
712
712
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
@@ -715,49 +715,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
715
715
  type: Component,
716
716
  args: [{
717
717
  selector: 'p-slider',
718
- standalone: true,
719
718
  imports: [CommonModule, AutoFocus, SharedModule, BindModule],
720
719
  template: `
721
- @if (range && orientation == 'horizontal') {
720
+ @if (range() && orientation() == 'horizontal') {
722
721
  <span
723
722
  [class]="cx('range')"
724
723
  [ngStyle]="{
725
- 'inset-inline-start': offset !== null && offset !== undefined ? offset + '%' : handleValues[0] + '%',
726
- width: diff ? diff + '%' : handleValues[1] - handleValues[0] + '%'
724
+ 'inset-inline-start': offset() !== null && offset() !== undefined ? offset() + '%' : handleValues()[0] + '%',
725
+ width: diff() ? diff() + '%' : handleValues()[1] - handleValues()[0] + '%'
727
726
  }"
728
727
  [style]="sx('range')"
729
728
  [attr.data-pc-section]="'range'"
730
- [attr.data-p]="dataP"
729
+ [attr.data-p]="dataP()"
731
730
  [pBind]="ptm('range')"
732
731
  ></span>
733
732
  }
734
- @if (range && orientation == 'vertical') {
733
+ @if (range() && orientation() == 'vertical') {
735
734
  <span
736
735
  [class]="cx('range')"
737
736
  [ngStyle]="{
738
- bottom: offset !== null && offset !== undefined ? offset + '%' : handleValues[0] + '%',
739
- height: diff ? diff + '%' : handleValues[1] - handleValues[0] + '%'
737
+ bottom: offset() !== null && offset() !== undefined ? offset() + '%' : handleValues()[0] + '%',
738
+ height: diff() ? diff() + '%' : handleValues()[1] - handleValues()[0] + '%'
740
739
  }"
741
740
  [style]="sx('range')"
742
741
  [attr.data-pc-section]="'range'"
743
- [attr.data-p]="dataP"
742
+ [attr.data-p]="dataP()"
744
743
  [pBind]="ptm('range')"
745
744
  ></span>
746
745
  }
747
- @if (!range && orientation == 'vertical') {
748
- <span [class]="cx('range')" [attr.data-pc-section]="'range'" [style]="sx('range')" [ngStyle]="{ height: handleValue + '%' }" [pBind]="ptm('range')"></span>
746
+ @if (!range() && orientation() == 'vertical') {
747
+ <span [class]="cx('range')" [attr.data-pc-section]="'range'" [style]="sx('range')" [ngStyle]="{ height: handleValue() + '%' }" [pBind]="ptm('range')"></span>
749
748
  }
750
- @if (!range && orientation == 'horizontal') {
751
- <span [class]="cx('range')" [attr.data-pc-section]="'range'" [style]="sx('range')" [ngStyle]="{ width: handleValue + '%' }" [pBind]="ptm('range')"></span>
749
+ @if (!range() && orientation() == 'horizontal') {
750
+ <span [class]="cx('range')" [attr.data-pc-section]="'range'" [style]="sx('range')" [ngStyle]="{ width: handleValue() + '%' }" [pBind]="ptm('range')"></span>
752
751
  }
753
- @if (!range) {
752
+ @if (!range()) {
754
753
  <span
755
754
  #sliderHandle
756
755
  [class]="cx('handle')"
757
- [style.transition]="dragging ? 'none' : null"
756
+ [style.transition]="dragging() ? 'none' : null"
758
757
  [ngStyle]="{
759
- 'inset-inline-start': orientation == 'horizontal' ? handleValue + '%' : null,
760
- bottom: orientation == 'vertical' ? handleValue + '%' : null
758
+ 'inset-inline-start': orientation() == 'horizontal' ? handleValue() + '%' : null,
759
+ bottom: orientation() == 'vertical' ? handleValue() + '%' : null
761
760
  }"
762
761
  [style]="sx('handle')"
763
762
  (touchstart)="onDragStart($event)"
@@ -765,69 +764,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
765
764
  (touchend)="onDragEnd($event)"
766
765
  (mousedown)="onMouseDown($event)"
767
766
  (keydown)="onKeyDown($event)"
768
- [attr.tabindex]="$disabled() ? null : tabindex"
767
+ [attr.tabindex]="$disabled() ? null : tabindex()"
769
768
  role="slider"
770
- [attr.aria-valuemin]="min"
771
- [attr.aria-valuenow]="value"
772
- [attr.aria-valuemax]="max"
773
- [attr.aria-labelledby]="ariaLabelledBy"
774
- [attr.aria-label]="ariaLabel"
775
- [attr.aria-orientation]="orientation"
769
+ [attr.aria-valuemin]="min()"
770
+ [attr.aria-valuenow]="value()"
771
+ [attr.aria-valuemax]="max()"
772
+ [attr.aria-labelledby]="ariaLabelledBy()"
773
+ [attr.aria-label]="ariaLabel()"
774
+ [attr.aria-orientation]="orientation()"
776
775
  [attr.data-pc-section]="'handle'"
777
- [pAutoFocus]="autofocus"
776
+ [pAutoFocus]="autofocus()"
778
777
  [pBind]="ptm('handle')"
779
- [attr.data-p]="dataP"
778
+ [attr.data-p]="dataP()"
780
779
  ></span>
781
780
  }
782
- @if (range) {
781
+ @if (range()) {
783
782
  <span
784
783
  #sliderHandleStart
785
- [style.transition]="dragging ? 'none' : null"
786
- [class]="cn(cx('handle'), handleIndex == 0 && 'p-slider-handle-active')"
784
+ [style.transition]="dragging() ? 'none' : null"
785
+ [class]="cn(cx('handle'), handleIndex() == 0 && 'p-slider-handle-active')"
787
786
  [style]="sx('handle')"
788
- [ngStyle]="{ 'inset-inline-start': rangeStartLeft, bottom: rangeStartBottom }"
787
+ [ngStyle]="{ 'inset-inline-start': rangeStartLeft(), bottom: rangeStartBottom() }"
789
788
  (keydown)="onKeyDown($event, 0)"
790
789
  (mousedown)="onMouseDown($event, 0)"
791
790
  (touchstart)="onDragStart($event, 0)"
792
791
  (touchmove)="onDrag($event)"
793
792
  (touchend)="onDragEnd($event)"
794
- [attr.tabindex]="$disabled() ? null : tabindex"
793
+ [attr.tabindex]="$disabled() ? null : tabindex()"
795
794
  role="slider"
796
- [attr.aria-valuemin]="min"
797
- [attr.aria-valuenow]="value ? value[0] : null"
798
- [attr.aria-valuemax]="max"
799
- [attr.aria-labelledby]="ariaLabelledBy"
800
- [attr.aria-label]="ariaLabel"
801
- [attr.aria-orientation]="orientation"
795
+ [attr.aria-valuemin]="min()"
796
+ [attr.aria-valuenow]="value() ? value()[0] : null"
797
+ [attr.aria-valuemax]="max()"
798
+ [attr.aria-labelledby]="ariaLabelledBy()"
799
+ [attr.aria-label]="ariaLabel()"
800
+ [attr.aria-orientation]="orientation()"
802
801
  [attr.data-pc-section]="'startHandler'"
803
- [pAutoFocus]="autofocus"
802
+ [pAutoFocus]="autofocus()"
804
803
  [pBind]="ptm('startHandler')"
805
- [attr.data-p]="dataP"
804
+ [attr.data-p]="dataP()"
806
805
  ></span>
807
806
  }
808
- @if (range) {
807
+ @if (range()) {
809
808
  <span
810
809
  #sliderHandleEnd
811
- [style.transition]="dragging ? 'none' : null"
812
- [class]="cn(cx('handle'), handleIndex == 1 && 'p-slider-handle-active')"
813
- [ngStyle]="{ 'inset-inline-start': rangeEndLeft, bottom: rangeEndBottom }"
810
+ [style.transition]="dragging() ? 'none' : null"
811
+ [class]="cn(cx('handle'), handleIndex() == 1 && 'p-slider-handle-active')"
812
+ [ngStyle]="{ 'inset-inline-start': rangeEndLeft(), bottom: rangeEndBottom() }"
814
813
  [style]="sx('handle')"
815
814
  (keydown)="onKeyDown($event, 1)"
816
815
  (mousedown)="onMouseDown($event, 1)"
817
816
  (touchstart)="onDragStart($event, 1)"
818
817
  (touchmove)="onDrag($event)"
819
818
  (touchend)="onDragEnd($event)"
820
- [attr.tabindex]="$disabled() ? null : tabindex"
819
+ [attr.tabindex]="$disabled() ? null : tabindex()"
821
820
  role="slider"
822
- [attr.aria-valuemin]="min"
823
- [attr.aria-valuenow]="value ? value[1] : null"
824
- [attr.aria-valuemax]="max"
825
- [attr.aria-labelledby]="ariaLabelledBy"
826
- [attr.aria-label]="ariaLabel"
827
- [attr.aria-orientation]="orientation"
821
+ [attr.aria-valuemin]="min()"
822
+ [attr.aria-valuenow]="value() ? value()[1] : null"
823
+ [attr.aria-valuemax]="max()"
824
+ [attr.aria-labelledby]="ariaLabelledBy()"
825
+ [attr.aria-label]="ariaLabel()"
826
+ [attr.aria-orientation]="orientation()"
828
827
  [attr.data-pc-section]="'endHandler'"
829
828
  [pBind]="ptm('endHandler')"
830
- [attr.data-p]="dataP"
829
+ [attr.data-p]="dataP()"
831
830
  ></span>
832
831
  }
833
832
  `,
@@ -837,42 +836,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
837
836
  host: {
838
837
  '[attr.data-pc-name]': "'slider'",
839
838
  '[attr.data-pc-section]': "'root'",
840
- '[class]': "cn(cx('root'), styleClass)",
841
- '[attr.data-p]': 'dataP',
839
+ '[class]': "cx('root')",
840
+ '[attr.data-p]': 'dataP()',
842
841
  '[attr.data-p-sliding]': 'false'
843
842
  },
844
843
  hostDirectives: [Bind]
845
844
  }]
846
- }], propDecorators: { animate: [{
847
- type: Input,
848
- args: [{ transform: booleanAttribute }]
849
- }], min: [{
850
- type: Input,
851
- args: [{ transform: numberAttribute }]
852
- }], max: [{
853
- type: Input,
854
- args: [{ transform: numberAttribute }]
855
- }], orientation: [{
856
- type: Input
857
- }], step: [{
858
- type: Input,
859
- args: [{ transform: numberAttribute }]
860
- }], range: [{
861
- type: Input,
862
- args: [{ transform: booleanAttribute }]
863
- }], styleClass: [{
864
- type: Input
865
- }], ariaLabel: [{
866
- type: Input
867
- }], ariaLabelledBy: [{
868
- type: Input
869
- }], tabindex: [{
870
- type: Input,
871
- args: [{ transform: numberAttribute }]
872
- }], autofocus: [{
873
- type: Input,
874
- args: [{ transform: booleanAttribute }]
875
- }], onChange: [{ type: i0.Output, args: ["onChange"] }], onSlideEnd: [{ type: i0.Output, args: ["onSlideEnd"] }], sliderHandle: [{ type: i0.ViewChild, args: ['sliderHandle', { isSignal: true }] }], sliderHandleStart: [{ type: i0.ViewChild, args: ['sliderHandleStart', { isSignal: true }] }], sliderHandleEnd: [{ type: i0.ViewChild, args: ['sliderHandleEnd', { isSignal: true }] }], onHostClick: [{
845
+ }], ctorParameters: () => [], propDecorators: { animate: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], range: [{ type: i0.Input, args: [{ isSignal: true, alias: "range", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onSlideEnd: [{ type: i0.Output, args: ["onSlideEnd"] }], sliderHandle: [{ type: i0.ViewChild, args: ['sliderHandle', { isSignal: true }] }], sliderHandleStart: [{ type: i0.ViewChild, args: ['sliderHandleStart', { isSignal: true }] }], sliderHandleEnd: [{ type: i0.ViewChild, args: ['sliderHandleEnd', { isSignal: true }] }], onHostClick: [{
876
846
  type: HostListener,
877
847
  args: ['click', ['$event']]
878
848
  }] } });