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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +10 -17
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +786 -928
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +561 -599
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +227 -394
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +255 -266
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +585 -653
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1792 -1787
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +480 -577
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +774 -745
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
  68. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
  70. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
  72. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
  74. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
  76. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
  78. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
  80. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
  84. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
  86. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
  88. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
  90. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
  92. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
  94. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
  96. package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
  98. package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  100. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
  102. package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
  104. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
  106. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
  108. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
  110. package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
  112. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
  114. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
  116. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
  118. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
  120. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
  122. package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
  124. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
  126. package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
  128. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
  130. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
  132. package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
  134. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
  136. package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
  138. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
  140. package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
  142. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
  144. package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
  146. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
  148. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
  150. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
  152. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
  154. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
  156. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
  158. package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
  160. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
  162. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
  164. package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
  166. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
  168. package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
  170. package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
  171. package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
  172. package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
  173. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
  174. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
  175. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
  176. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
  177. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  178. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  179. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  180. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  181. package/fesm2022/exhaustive-ui-core-inplace.mjs +68 -102
  182. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  183. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  184. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  185. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  186. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  187. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  188. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  189. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  190. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  191. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  192. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  193. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  194. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  195. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  196. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  197. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  198. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  199. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  200. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  201. package/fesm2022/exhaustive-ui-core-listbox.mjs +591 -728
  202. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  203. package/fesm2022/exhaustive-ui-core-megamenu.mjs +324 -375
  204. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  205. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  206. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  207. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  208. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  209. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  210. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  211. package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
  212. package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
  213. package/fesm2022/exhaustive-ui-core-multiselect.mjs +945 -1045
  214. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  215. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  216. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  217. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  218. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  219. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  220. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  221. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  222. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  223. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  224. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  225. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  226. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  227. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  228. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  229. package/fesm2022/exhaustive-ui-core-picklist.mjs +861 -879
  230. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  231. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  232. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  233. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  234. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  235. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  236. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  237. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  238. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  239. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  240. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  241. package/fesm2022/exhaustive-ui-core-select.mjs +837 -986
  242. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  243. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  244. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  245. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  246. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  247. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  248. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  249. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  250. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  251. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  252. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  253. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  254. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  255. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  256. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  257. package/fesm2022/exhaustive-ui-core-table.mjs +2435 -2721
  258. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  259. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  260. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  261. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  262. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  263. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +604 -690
  264. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  265. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  266. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  267. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  268. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  269. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  270. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  271. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  272. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  273. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  274. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  275. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  276. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  277. package/fesm2022/exhaustive-ui-core-treeselect.mjs +333 -423
  278. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  279. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  280. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  281. package/package.json +11 -11
  282. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  283. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  284. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  285. package/schematics/migrations.json +11 -6
  286. package/schematics/utils/removed-inputs.js +0 -0
  287. package/schematics/utils/renamed-inputs.js +175 -0
  288. package/schematics/utils/styleclass.js +24 -8
  289. package/schematics/utils/versions.json +8 -8
  290. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  291. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  292. package/types/exhaustive-ui-core-api.d.ts +2 -3
  293. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  294. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  295. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  296. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  297. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  298. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  299. package/types/exhaustive-ui-core-button.d.ts +57 -89
  300. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  301. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  302. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  303. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  304. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  305. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  306. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  307. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  308. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  309. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  310. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  311. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  312. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  313. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  314. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  315. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  316. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  317. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  318. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  319. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  320. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  321. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  322. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  323. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  324. package/types/exhaustive-ui-core-image.d.ts +35 -68
  325. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  326. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  327. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  328. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  329. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  330. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  331. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  332. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  333. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  334. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  335. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  336. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  337. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  338. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  339. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  340. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  341. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  342. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  343. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  344. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  345. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  346. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  347. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  348. package/types/exhaustive-ui-core-password.d.ts +56 -93
  349. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  350. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  351. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  352. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  353. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  354. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  355. package/types/exhaustive-ui-core-select.d.ts +137 -188
  356. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  357. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  358. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  359. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  360. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  361. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  362. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  363. package/types/exhaustive-ui-core-table.d.ts +349 -453
  364. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  365. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  366. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  367. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  368. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  369. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  370. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  371. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  372. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  373. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  374. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  375. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
@@ -2,7 +2,8 @@ export * from '@exhaustive-ui/core/types/dataview';
2
2
  import * as i2 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, output, contentChild, numberAttribute, booleanAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, inject, afterEveryRender, afterNextRender, effect, untracked, input, booleanAttribute, numberAttribute, output, contentChild, signal, linkedSignal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
+ import { toSignal } from '@angular/core/rxjs-interop';
6
7
  import { resolveFieldData } from '@exhaustive-ui/utils';
7
8
  import { Header, Footer, TranslationKeys, FilterService, SharedModule } from '@exhaustive-ui/core/api';
8
9
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -18,8 +19,8 @@ const classes = {
18
19
  root: ({ instance }) => [
19
20
  'p-dataview p-component',
20
21
  {
21
- 'p-dataview-list': instance.layout === 'list',
22
- 'p-dataview-grid': instance.layout === 'grid'
22
+ 'p-dataview-list': instance.layout() === 'list',
23
+ 'p-dataview-grid': instance.layout() === 'grid'
23
24
  }
24
25
  ],
25
26
  header: 'p-dataview-header',
@@ -99,160 +100,197 @@ class DataView extends BaseComponent {
99
100
  componentName = 'DataView';
100
101
  bindDirectiveInstance = inject(Bind, { self: true });
101
102
  $pcDataView = inject(DATAVIEW_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
102
- onAfterViewChecked() {
103
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
103
+ constructor() {
104
+ super();
105
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
106
+ afterNextRender(() => this.initialized.set(true));
107
+ effect(() => {
108
+ const layout = this.layout();
109
+ untracked(() => {
110
+ if (this.initialized()) {
111
+ this.onChangeLayout.emit({ layout });
112
+ }
113
+ });
114
+ });
115
+ effect(() => {
116
+ this.value();
117
+ untracked(() => {
118
+ if (!this.lazy() && this.hasFilter()) {
119
+ this.filter(this.filterValue());
120
+ }
121
+ });
122
+ });
123
+ effect(() => {
124
+ const sortField = this.sortField();
125
+ const sortOrder = this.sortOrder();
126
+ untracked(() => {
127
+ //avoid triggering lazy load prior to lazy initialization at onInit
128
+ if (this.initialized() || (!this.lazy() && (sortField !== undefined || sortOrder !== undefined))) {
129
+ this.sort();
130
+ }
131
+ });
132
+ });
104
133
  }
105
134
  /**
106
135
  * When specified as true, enables the pagination.
107
136
  * @group Props
108
137
  */
109
- paginator;
138
+ paginator = input(undefined, { ...(ngDevMode ? { debugName: "paginator" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
110
139
  /**
111
140
  * Number of rows to display per page.
112
141
  * @group Props
113
142
  */
114
- rows;
143
+ rows = input(undefined, { ...(ngDevMode ? { debugName: "rows" } : /* istanbul ignore next */ {}), transform: numberAttribute });
115
144
  /**
116
145
  * Number of total records, defaults to length of value when not defined.
117
146
  * @group Props
118
147
  */
119
- totalRecords;
148
+ totalRecords = input(undefined, { ...(ngDevMode ? { debugName: "totalRecords" } : /* istanbul ignore next */ {}), transform: numberAttribute });
120
149
  /**
121
150
  * Number of page links to display in paginator.
122
151
  * @group Props
123
152
  */
124
- pageLinks = 5;
153
+ pageLinks = input(5, { ...(ngDevMode ? { debugName: "pageLinks" } : /* istanbul ignore next */ {}), transform: numberAttribute });
125
154
  /**
126
155
  * Array of integer/object values to display inside rows per page dropdown of paginator
127
156
  * @group Props
128
157
  */
129
- rowsPerPageOptions;
158
+ rowsPerPageOptions = input(/* @ts-ignore */
159
+ ...(ngDevMode ? [undefined, { debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
130
160
  /**
131
161
  * Position of the paginator.
132
162
  * @group Props
133
163
  */
134
- paginatorPosition = 'bottom';
164
+ paginatorPosition = input('bottom', /* @ts-ignore */
165
+ ...(ngDevMode ? [{ debugName: "paginatorPosition" }] : /* istanbul ignore next */ []));
135
166
  /**
136
167
  * Custom style class for paginator
137
168
  * @group Props
138
169
  */
139
- paginatorStyleClass;
170
+ paginatorStyleClass = input(/* @ts-ignore */
171
+ ...(ngDevMode ? [undefined, { debugName: "paginatorStyleClass" }] : /* istanbul ignore next */ []));
140
172
  /**
141
173
  * Whether to show it even there is only one page.
142
174
  * @group Props
143
175
  */
144
- alwaysShowPaginator = true;
176
+ alwaysShowPaginator = input(true, { ...(ngDevMode ? { debugName: "alwaysShowPaginator" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
145
177
  /**
146
178
  * Target element to attach the paginator dropdown overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
147
179
  * @group Props
148
180
  */
149
- paginatorDropdownAppendTo;
181
+ paginatorDropdownAppendTo = input(/* @ts-ignore */
182
+ ...(ngDevMode ? [undefined, { debugName: "paginatorDropdownAppendTo" }] : /* istanbul ignore next */ []));
150
183
  /**
151
184
  * Paginator dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
152
185
  * @group Props
153
186
  */
154
- paginatorDropdownScrollHeight = '200px';
187
+ paginatorDropdownScrollHeight = input('200px', /* @ts-ignore */
188
+ ...(ngDevMode ? [{ debugName: "paginatorDropdownScrollHeight" }] : /* istanbul ignore next */ []));
155
189
  /**
156
190
  * Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}
157
191
  * @group Props
158
192
  */
159
- currentPageReportTemplate = '{currentPage} of {totalPages}';
193
+ currentPageReportTemplate = input('{currentPage} of {totalPages}', /* @ts-ignore */
194
+ ...(ngDevMode ? [{ debugName: "currentPageReportTemplate" }] : /* istanbul ignore next */ []));
160
195
  /**
161
196
  * Whether to display current page report.
162
197
  * @group Props
163
198
  */
164
- showCurrentPageReport;
199
+ showCurrentPageReport = input(undefined, { ...(ngDevMode ? { debugName: "showCurrentPageReport" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
165
200
  /**
166
201
  * Whether to display a dropdown to navigate to any page.
167
202
  * @group Props
168
203
  */
169
- showJumpToPageDropdown;
204
+ showJumpToPageDropdown = input(undefined, { ...(ngDevMode ? { debugName: "showJumpToPageDropdown" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
170
205
  /**
171
206
  * When enabled, icons are displayed on paginator to go first and last page.
172
207
  * @group Props
173
208
  */
174
- showFirstLastIcon = true;
209
+ showFirstLastIcon = input(true, { ...(ngDevMode ? { debugName: "showFirstLastIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
175
210
  /**
176
211
  * Whether to show page links.
177
212
  * @group Props
178
213
  */
179
- showPageLinks = true;
214
+ showPageLinks = input(true, { ...(ngDevMode ? { debugName: "showPageLinks" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
180
215
  /**
181
216
  * Defines if data is loaded and interacted with in lazy manner.
182
217
  * @group Props
183
218
  */
184
- lazy;
219
+ lazy = input(undefined, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
185
220
  /**
186
221
  * Whether to call lazy loading on initialization.
187
222
  * @group Props
188
223
  */
189
- lazyLoadOnInit = true;
224
+ lazyLoadOnInit = input(true, { ...(ngDevMode ? { debugName: "lazyLoadOnInit" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
190
225
  /**
191
226
  * Text to display when there is no data. Defaults to global value in i18n translation configuration.
192
227
  * @group Props
193
228
  */
194
- emptyMessage = '';
195
- /**
196
- * Style class of the component.
197
- * @deprecated since v20.0.0, use `class` instead.
198
- * @group Props
199
- */
200
- styleClass;
229
+ emptyMessage = input('', /* @ts-ignore */
230
+ ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
201
231
  /**
202
232
  * Style class of the grid.
203
233
  * @group Props
204
234
  */
205
- gridStyleClass = '';
235
+ gridStyleClass = input('', /* @ts-ignore */
236
+ ...(ngDevMode ? [{ debugName: "gridStyleClass" }] : /* istanbul ignore next */ []));
206
237
  /**
207
238
  * Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity.
208
239
  * @group Props
209
240
  */
210
- trackBy = (index, item) => item;
241
+ trackBy = input((index, item) => item, /* @ts-ignore */
242
+ ...(ngDevMode ? [{ debugName: "trackBy" }] : /* istanbul ignore next */ []));
211
243
  /**
212
244
  * Comma separated list of fields in the object graph to search against.
213
245
  * @group Props
214
246
  */
215
- filterBy;
247
+ filterBy = input(/* @ts-ignore */
248
+ ...(ngDevMode ? [undefined, { debugName: "filterBy" }] : /* istanbul ignore next */ []));
216
249
  /**
217
250
  * Locale to use in filtering. The default locale is the host environment's current locale.
218
251
  * @group Props
219
252
  */
220
- filterLocale;
253
+ filterLocale = input(/* @ts-ignore */
254
+ ...(ngDevMode ? [undefined, { debugName: "filterLocale" }] : /* istanbul ignore next */ []));
221
255
  /**
222
256
  * Displays a loader to indicate data load is in progress.
223
257
  * @group Props
224
258
  */
225
- loading;
259
+ loading = input(undefined, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
226
260
  /**
227
261
  * The icon to show while indicating data load is in progress.
228
262
  * @group Props
229
263
  */
230
- loadingIcon;
264
+ loadingIcon = input(/* @ts-ignore */
265
+ ...(ngDevMode ? [undefined, { debugName: "loadingIcon" }] : /* istanbul ignore next */ []));
231
266
  /**
232
267
  * Index of the first row to be displayed.
233
268
  * @group Props
234
269
  */
235
- first = 0;
270
+ first = input(0, { ...(ngDevMode ? { debugName: "first" } : /* istanbul ignore next */ {}), transform: numberAttribute });
236
271
  /**
237
272
  * Property name of data to use in sorting by default.
238
273
  * @group Props
239
274
  */
240
- sortField;
275
+ sortField = input(/* @ts-ignore */
276
+ ...(ngDevMode ? [undefined, { debugName: "sortField" }] : /* istanbul ignore next */ []));
241
277
  /**
242
278
  * Order to sort the data by default.
243
279
  * @group Props
244
280
  */
245
- sortOrder;
281
+ sortOrder = input(undefined, { ...(ngDevMode ? { debugName: "sortOrder" } : /* istanbul ignore next */ {}), transform: numberAttribute });
246
282
  /**
247
283
  * An array of objects to display.
248
284
  * @group Props
249
285
  */
250
- value;
286
+ value = input(/* @ts-ignore */
287
+ ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
251
288
  /**
252
289
  * Defines the layout mode.
253
290
  * @group Props
254
291
  */
255
- layout = 'list';
292
+ layout = input('list', /* @ts-ignore */
293
+ ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
256
294
  /**
257
295
  * Callback to invoke when paging, sorting or filtering happens in lazy mode.
258
296
  * @param {DataViewLazyLoadEvent} event - Custom lazy load event.
@@ -340,68 +378,62 @@ class DataView extends BaseComponent {
340
378
  ...(ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []));
341
379
  footer = contentChild(Footer, /* @ts-ignore */
342
380
  ...(ngDevMode ? [{ debugName: "footer" }] : /* istanbul ignore next */ []));
343
- _value;
344
- filteredValue;
345
- filterValue;
346
- initialized;
347
- _layout = 'list';
348
- translationSubscription;
381
+ filteredValue = signal(undefined, /* @ts-ignore */
382
+ ...(ngDevMode ? [{ debugName: "filteredValue" }] : /* istanbul ignore next */ []));
383
+ filterValue = signal(undefined, /* @ts-ignore */
384
+ ...(ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []));
385
+ initialized = signal(undefined, /* @ts-ignore */
386
+ ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
387
+ _first = linkedSignal(() => this.first(), /* @ts-ignore */
388
+ ...(ngDevMode ? [{ debugName: "_first" }] : /* istanbul ignore next */ []));
389
+ _rows = linkedSignal(() => this.rows(), /* @ts-ignore */
390
+ ...(ngDevMode ? [{ debugName: "_rows" }] : /* istanbul ignore next */ []));
391
+ _totalRecords = linkedSignal(() => {
392
+ const totalRecords = this.totalRecords();
393
+ const value = this.value();
394
+ if (this.lazy() || (totalRecords != null && !Number.isNaN(totalRecords))) {
395
+ return totalRecords;
396
+ }
397
+ return value ? value.length : 0;
398
+ }, /* @ts-ignore */
399
+ ...(ngDevMode ? [{ debugName: "_totalRecords" }] : /* istanbul ignore next */ []));
400
+ translation = toSignal(this.config.translationObserver, { initialValue: this.config.translation });
349
401
  _componentStyle = inject(DataViewStyle);
350
- get emptyMessageLabel() {
351
- return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);
352
- }
402
+ emptyMessageLabel = computed(() => this.emptyMessage() || this.translation()[TranslationKeys.EMPTY_MESSAGE], /* @ts-ignore */
403
+ ...(ngDevMode ? [{ debugName: "emptyMessageLabel" }] : /* istanbul ignore next */ []));
353
404
  filterService = inject(FilterService);
354
405
  onInit() {
355
- if (this.lazy && this.lazyLoadOnInit) {
406
+ if (this.lazy() && this.lazyLoadOnInit()) {
356
407
  this.onLazyLoad.emit(this.createLazyLoadMetadata());
357
408
  }
358
- this.translationSubscription = this.config.translationObserver.subscribe(() => {
359
- this.cd.markForCheck();
360
- });
361
- this.initialized = true;
362
- }
363
- onAfterViewInit() { }
364
- onChanges(simpleChanges) {
365
- if (simpleChanges.layout && !simpleChanges.layout.firstChange) {
366
- this.onChangeLayout.emit({ layout: simpleChanges.layout.currentValue });
367
- }
368
- if (simpleChanges.value) {
369
- this._value = simpleChanges.value.currentValue;
370
- this.updateTotalRecords();
371
- if (!this.lazy && this.hasFilter()) {
372
- this.filter(this.filterValue);
373
- }
374
- }
375
- if (simpleChanges.sortField || simpleChanges.sortOrder) {
376
- //avoid triggering lazy load prior to lazy initialization at onInit
377
- if (!this.lazy || this.initialized) {
378
- this.sort();
379
- }
380
- }
381
409
  }
382
410
  updateTotalRecords() {
383
- this.totalRecords = this.lazy ? this.totalRecords : this._value ? this._value.length : 0;
411
+ const value = this.value();
412
+ this._totalRecords.set(this.lazy() ? this._totalRecords() : value ? value.length : 0);
384
413
  }
385
414
  paginate(event) {
386
- this.first = event.first;
387
- this.rows = event.rows;
388
- if (this.lazy) {
415
+ this._first.set(event.first);
416
+ this._rows.set(event.rows);
417
+ if (this.lazy()) {
389
418
  this.onLazyLoad.emit(this.createLazyLoadMetadata());
390
419
  }
391
420
  this.onPage.emit({
392
- first: this.first,
393
- rows: this.rows
421
+ first: this._first(),
422
+ rows: this._rows()
394
423
  });
395
424
  }
396
425
  sort() {
397
- this.first = 0;
398
- if (this.lazy) {
426
+ this._first.set(0);
427
+ const value = this.value();
428
+ if (this.lazy()) {
399
429
  this.onLazyLoad.emit(this.createLazyLoadMetadata());
400
430
  }
401
- else if (this.value) {
402
- this.value.sort((data1, data2) => {
403
- let value1 = resolveFieldData(data1, this.sortField);
404
- let value2 = resolveFieldData(data2, this.sortField);
431
+ else if (value) {
432
+ const sortField = this.sortField();
433
+ const sortOrder = this.sortOrder();
434
+ value.sort((data1, data2) => {
435
+ let value1 = resolveFieldData(data1, sortField);
436
+ let value2 = resolveFieldData(data2, sortField);
405
437
  let result;
406
438
  if (value1 == null && value2 != null)
407
439
  result = -1;
@@ -413,62 +445,58 @@ class DataView extends BaseComponent {
413
445
  result = value1.localeCompare(value2);
414
446
  else
415
447
  result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
416
- return this.sortOrder * result;
448
+ return sortOrder * result;
417
449
  });
418
450
  if (this.hasFilter()) {
419
- this.filter(this.filterValue);
451
+ this.filter(this.filterValue());
420
452
  }
421
453
  }
422
454
  this.onSort.emit({
423
- sortField: this.sortField,
424
- sortOrder: this.sortOrder
455
+ sortField: this.sortField(),
456
+ sortOrder: this.sortOrder()
425
457
  });
426
458
  }
427
- isEmpty() {
428
- let data = this.filteredValue || this.value;
459
+ isEmpty = computed(() => {
460
+ let data = this.filteredValue() || this.value();
429
461
  return data == null || data.length == 0;
430
- }
462
+ }, /* @ts-ignore */
463
+ ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
431
464
  createLazyLoadMetadata() {
432
465
  return {
433
- first: this.first,
434
- rows: this.rows,
435
- sortField: this.sortField,
436
- sortOrder: this.sortOrder
466
+ first: this._first(),
467
+ rows: this._rows(),
468
+ sortField: this.sortField(),
469
+ sortOrder: this.sortOrder()
437
470
  };
438
471
  }
439
472
  getBlockableElement() {
440
473
  return this.el.nativeElement.children[0];
441
474
  }
442
475
  filter(filter, filterMatchMode = 'contains') {
443
- this.filterValue = filter;
444
- if (this.value && this.value.length) {
445
- let searchFields = this.filterBy.split(',');
446
- this.filteredValue = this.filterService.filter(this.value, searchFields, filter, filterMatchMode, this.filterLocale);
447
- if (this.filteredValue.length === this.value.length) {
448
- this.filteredValue = null;
476
+ this.filterValue.set(filter);
477
+ const value = this.value();
478
+ if (value && value.length) {
479
+ let searchFields = this.filterBy().split(',');
480
+ let filteredValue = this.filterService.filter(value, searchFields, filter, filterMatchMode, this.filterLocale());
481
+ if (filteredValue.length === value.length) {
482
+ filteredValue = null;
449
483
  }
450
- if (this.paginator) {
451
- this.first = 0;
452
- this.totalRecords = this.filteredValue ? this.filteredValue.length : this.value ? this.value.length : 0;
484
+ this.filteredValue.set(filteredValue);
485
+ if (this.paginator()) {
486
+ this._first.set(0);
487
+ this._totalRecords.set(filteredValue ? filteredValue.length : value ? value.length : 0);
453
488
  }
454
- this.cd.markForCheck();
455
- }
456
- }
457
- hasFilter() {
458
- return this.filterValue && this.filterValue.trim().length > 0;
459
- }
460
- onDestroy() {
461
- if (this.translationSubscription) {
462
- this.translationSubscription.unsubscribe();
463
489
  }
464
490
  }
465
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DataView, deps: null, target: i0.ɵɵFactoryTarget.Component });
466
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: DataView, isStandalone: true, selector: "p-dataView, p-dataview, p-data-view", inputs: { paginator: ["paginator", "paginator", booleanAttribute], rows: ["rows", "rows", numberAttribute], totalRecords: ["totalRecords", "totalRecords", numberAttribute], pageLinks: ["pageLinks", "pageLinks", numberAttribute], rowsPerPageOptions: "rowsPerPageOptions", paginatorPosition: "paginatorPosition", paginatorStyleClass: "paginatorStyleClass", alwaysShowPaginator: ["alwaysShowPaginator", "alwaysShowPaginator", booleanAttribute], paginatorDropdownAppendTo: "paginatorDropdownAppendTo", paginatorDropdownScrollHeight: "paginatorDropdownScrollHeight", currentPageReportTemplate: "currentPageReportTemplate", showCurrentPageReport: ["showCurrentPageReport", "showCurrentPageReport", booleanAttribute], showJumpToPageDropdown: ["showJumpToPageDropdown", "showJumpToPageDropdown", booleanAttribute], showFirstLastIcon: ["showFirstLastIcon", "showFirstLastIcon", booleanAttribute], showPageLinks: ["showPageLinks", "showPageLinks", booleanAttribute], lazy: ["lazy", "lazy", booleanAttribute], lazyLoadOnInit: ["lazyLoadOnInit", "lazyLoadOnInit", booleanAttribute], emptyMessage: "emptyMessage", styleClass: "styleClass", gridStyleClass: "gridStyleClass", trackBy: "trackBy", filterBy: "filterBy", filterLocale: "filterLocale", loading: ["loading", "loading", booleanAttribute], loadingIcon: "loadingIcon", first: ["first", "first", numberAttribute], sortField: "sortField", sortOrder: ["sortOrder", "sortOrder", numberAttribute], value: "value", layout: "layout" }, outputs: { onLazyLoad: "onLazyLoad", onPage: "onPage", onSort: "onSort", onChangeLayout: "onChangeLayout" }, host: { properties: { "class": "cn(cx('root'), styleClass)" } }, providers: [DataViewStyle, { provide: DATAVIEW_INSTANCE, useExisting: DataView }, { provide: PARENT_INSTANCE, useExisting: DataView }], queries: [{ propertyName: "listTemplate", first: true, predicate: ["list"], descendants: true, isSignal: true }, { propertyName: "gridTemplate", first: true, predicate: ["grid"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "emptymessageTemplate", first: true, predicate: ["emptymessage"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "paginatorleft", first: true, predicate: ["paginatorleft"], descendants: true, isSignal: true }, { propertyName: "paginatorright", first: true, predicate: ["paginatorright"], descendants: true, isSignal: true }, { propertyName: "paginatordropdownitem", first: true, predicate: ["paginatordropdownitem"], descendants: true, isSignal: true }, { propertyName: "loadingicon", first: true, predicate: ["loadingicon"], descendants: true, isSignal: true }, { propertyName: "header", first: true, predicate: Header, descendants: true, isSignal: true }, { propertyName: "footer", first: true, predicate: Footer, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
467
- @if (loading) {
491
+ hasFilter = computed(() => this.filterValue() && this.filterValue().trim().length > 0, /* @ts-ignore */
492
+ ...(ngDevMode ? [{ debugName: "hasFilter" }] : /* istanbul ignore next */ []));
493
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DataView, deps: [], target: i0.ɵɵFactoryTarget.Component });
494
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: DataView, isStandalone: true, selector: "p-dataView, p-dataview, p-data-view", inputs: { paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, paginatorPosition: { classPropertyName: "paginatorPosition", publicName: "paginatorPosition", isSignal: true, isRequired: false, transformFunction: null }, paginatorStyleClass: { classPropertyName: "paginatorStyleClass", publicName: "paginatorStyleClass", isSignal: true, isRequired: false, transformFunction: null }, alwaysShowPaginator: { classPropertyName: "alwaysShowPaginator", publicName: "alwaysShowPaginator", isSignal: true, isRequired: false, transformFunction: null }, paginatorDropdownAppendTo: { classPropertyName: "paginatorDropdownAppendTo", publicName: "paginatorDropdownAppendTo", isSignal: true, isRequired: false, transformFunction: null }, paginatorDropdownScrollHeight: { classPropertyName: "paginatorDropdownScrollHeight", publicName: "paginatorDropdownScrollHeight", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, showJumpToPageDropdown: { classPropertyName: "showJumpToPageDropdown", publicName: "showJumpToPageDropdown", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, lazyLoadOnInit: { classPropertyName: "lazyLoadOnInit", publicName: "lazyLoadOnInit", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, gridStyleClass: { classPropertyName: "gridStyleClass", publicName: "gridStyleClass", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, sortField: { classPropertyName: "sortField", publicName: "sortField", isSignal: true, isRequired: false, transformFunction: null }, sortOrder: { classPropertyName: "sortOrder", publicName: "sortOrder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onLazyLoad: "onLazyLoad", onPage: "onPage", onSort: "onSort", onChangeLayout: "onChangeLayout" }, host: { properties: { "class": "cx('root')" } }, providers: [DataViewStyle, { provide: DATAVIEW_INSTANCE, useExisting: DataView }, { provide: PARENT_INSTANCE, useExisting: DataView }], queries: [{ propertyName: "listTemplate", first: true, predicate: ["list"], descendants: true, isSignal: true }, { propertyName: "gridTemplate", first: true, predicate: ["grid"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "emptymessageTemplate", first: true, predicate: ["emptymessage"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "paginatorleft", first: true, predicate: ["paginatorleft"], descendants: true, isSignal: true }, { propertyName: "paginatorright", first: true, predicate: ["paginatorright"], descendants: true, isSignal: true }, { propertyName: "paginatordropdownitem", first: true, predicate: ["paginatordropdownitem"], descendants: true, isSignal: true }, { propertyName: "loadingicon", first: true, predicate: ["loadingicon"], descendants: true, isSignal: true }, { propertyName: "header", first: true, predicate: Header, descendants: true, isSignal: true }, { propertyName: "footer", first: true, predicate: Footer, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
495
+ @if (loading()) {
468
496
  <div [pBind]="ptm('loading')" [class]="cx('loading')">
469
497
  <div [pBind]="ptm('loadingOverlay')" [class]="cx('loadingOverlay')">
470
- @if (loadingIcon) {
471
- <i [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon)"></i>
498
+ @if (loadingIcon()) {
499
+ <i [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())"></i>
472
500
  } @else {
473
501
  <ng-container>
474
502
  <svg [pBind]="ptm('loadingIcon')" data-p-icon="spinner" [spin]="true" [class]="cx('loadingIcon')" />
@@ -484,55 +512,55 @@ class DataView extends BaseComponent {
484
512
  <ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
485
513
  </div>
486
514
  }
487
- @if (paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')) {
515
+ @if (paginator() && (paginatorPosition() === 'top' || paginatorPosition() == 'both')) {
488
516
  <p-paginator
489
- [rows]="rows"
490
- [first]="first"
491
- [totalRecords]="totalRecords"
492
- [pageLinkSize]="pageLinks"
493
- [alwaysShow]="alwaysShowPaginator"
517
+ [rows]="_rows()"
518
+ [first]="_first()"
519
+ [totalRecords]="_totalRecords()"
520
+ [pageLinkSize]="pageLinks()"
521
+ [alwaysShow]="alwaysShowPaginator()"
494
522
  (onPageChange)="paginate($event)"
495
- [rowsPerPageOptions]="rowsPerPageOptions"
496
- [appendTo]="paginatorDropdownAppendTo"
497
- [dropdownScrollHeight]="paginatorDropdownScrollHeight"
523
+ [rowsPerPageOptions]="rowsPerPageOptions()"
524
+ [appendTo]="paginatorDropdownAppendTo()"
525
+ [dropdownScrollHeight]="paginatorDropdownScrollHeight()"
498
526
  [templateLeft]="paginatorleft()"
499
527
  [templateRight]="paginatorright()"
500
- [currentPageReportTemplate]="currentPageReportTemplate"
501
- [showFirstLastIcon]="showFirstLastIcon"
528
+ [currentPageReportTemplate]="currentPageReportTemplate()"
529
+ [showFirstLastIcon]="showFirstLastIcon()"
502
530
  [dropdownItemTemplate]="paginatordropdownitem()"
503
- [showCurrentPageReport]="showCurrentPageReport"
504
- [showJumpToPageDropdown]="showJumpToPageDropdown"
505
- [showPageLinks]="showPageLinks"
506
- [styleClass]="cn(cx('pcPaginator', { position: 'top' }), paginatorStyleClass)"
531
+ [showCurrentPageReport]="showCurrentPageReport()"
532
+ [showJumpToPageDropdown]="showJumpToPageDropdown()"
533
+ [showPageLinks]="showPageLinks()"
534
+ [class]="cn(cx('pcPaginator', { position: 'top' }), paginatorStyleClass())"
507
535
  [pt]="ptm('pcPaginator')"
508
536
  [unstyled]="unstyled()"
509
537
  ></p-paginator>
510
538
  }
511
539
  <div [pBind]="ptm('content')" [class]="cx('content')">
512
- @if (layout === 'list') {
540
+ @if (layout() === 'list') {
513
541
  <ng-container
514
542
  *ngTemplateOutlet="
515
543
  listTemplate();
516
544
  context: {
517
- $implicit: paginator ? (filteredValue || value | slice: (lazy ? 0 : first) : (lazy ? 0 : first) + rows) : filteredValue || value
545
+ $implicit: paginator() ? (filteredValue() || value() | slice: (lazy() ? 0 : _first()) : (lazy() ? 0 : _first()) + _rows()) : filteredValue() || value()
518
546
  }
519
547
  "
520
548
  ></ng-container>
521
549
  }
522
- @if (layout === 'grid') {
550
+ @if (layout() === 'grid') {
523
551
  <ng-container
524
552
  *ngTemplateOutlet="
525
553
  gridTemplate();
526
554
  context: {
527
- $implicit: paginator ? (filteredValue || value | slice: (lazy ? 0 : first) : (lazy ? 0 : first) + rows) : filteredValue || value
555
+ $implicit: paginator() ? (filteredValue() || value() | slice: (lazy() ? 0 : _first()) : (lazy() ? 0 : _first()) + _rows()) : filteredValue() || value()
528
556
  }
529
557
  "
530
558
  ></ng-container>
531
559
  }
532
- @if (isEmpty() && !loading) {
560
+ @if (isEmpty() && !loading()) {
533
561
  <div [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')">
534
562
  @if (!emptymessageTemplate()) {
535
- {{ emptyMessageLabel }}
563
+ {{ emptyMessageLabel() }}
536
564
  } @else {
537
565
  <ng-template [ngTemplateOutlet]="empty"></ng-template>
538
566
  }
@@ -540,26 +568,26 @@ class DataView extends BaseComponent {
540
568
  </div>
541
569
  }
542
570
  </div>
543
- @if (paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')) {
571
+ @if (paginator() && (paginatorPosition() === 'bottom' || paginatorPosition() == 'both')) {
544
572
  <p-paginator
545
- [rows]="rows"
546
- [first]="first"
547
- [totalRecords]="totalRecords"
548
- [pageLinkSize]="pageLinks"
549
- [alwaysShow]="alwaysShowPaginator"
573
+ [rows]="_rows()"
574
+ [first]="_first()"
575
+ [totalRecords]="_totalRecords()"
576
+ [pageLinkSize]="pageLinks()"
577
+ [alwaysShow]="alwaysShowPaginator()"
550
578
  (onPageChange)="paginate($event)"
551
- [rowsPerPageOptions]="rowsPerPageOptions"
552
- [appendTo]="paginatorDropdownAppendTo"
553
- [dropdownScrollHeight]="paginatorDropdownScrollHeight"
579
+ [rowsPerPageOptions]="rowsPerPageOptions()"
580
+ [appendTo]="paginatorDropdownAppendTo()"
581
+ [dropdownScrollHeight]="paginatorDropdownScrollHeight()"
554
582
  [templateLeft]="paginatorleft()"
555
583
  [templateRight]="paginatorright()"
556
- [currentPageReportTemplate]="currentPageReportTemplate"
557
- [showFirstLastIcon]="showFirstLastIcon"
584
+ [currentPageReportTemplate]="currentPageReportTemplate()"
585
+ [showFirstLastIcon]="showFirstLastIcon()"
558
586
  [dropdownItemTemplate]="paginatordropdownitem()"
559
- [showCurrentPageReport]="showCurrentPageReport"
560
- [showJumpToPageDropdown]="showJumpToPageDropdown"
561
- [showPageLinks]="showPageLinks"
562
- [styleClass]="cn(cx('pcPaginator', { position: 'bottom' }), paginatorStyleClass)"
587
+ [showCurrentPageReport]="showCurrentPageReport()"
588
+ [showJumpToPageDropdown]="showJumpToPageDropdown()"
589
+ [showPageLinks]="showPageLinks()"
590
+ [class]="cn(cx('pcPaginator', { position: 'bottom' }), paginatorStyleClass())"
563
591
  [pt]="ptm('pcPaginator')"
564
592
  [unstyled]="unstyled()"
565
593
  ></p-paginator>
@@ -570,20 +598,19 @@ class DataView extends BaseComponent {
570
598
  <ng-container *ngTemplateOutlet="footerTemplate()"></ng-container>
571
599
  </div>
572
600
  }
573
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: PaginatorModule }, { kind: "component", type: i3.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first", "appendTo"], outputs: ["onPageChange"] }, { kind: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "pipe", type: i2.SlicePipe, name: "slice" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
601
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: PaginatorModule }, { kind: "component", type: i3.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "alwaysShow", "templateLeft", "templateRight", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first", "appendTo"], outputs: ["onPageChange"] }, { kind: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "pipe", type: i2.SlicePipe, name: "slice" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
574
602
  }
575
603
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DataView, decorators: [{
576
604
  type: Component,
577
605
  args: [{
578
606
  selector: 'p-dataView, p-dataview, p-data-view',
579
- standalone: true,
580
607
  imports: [CommonModule, PaginatorModule, SpinnerIcon, SharedModule, Bind],
581
608
  template: `
582
- @if (loading) {
609
+ @if (loading()) {
583
610
  <div [pBind]="ptm('loading')" [class]="cx('loading')">
584
611
  <div [pBind]="ptm('loadingOverlay')" [class]="cx('loadingOverlay')">
585
- @if (loadingIcon) {
586
- <i [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon)"></i>
612
+ @if (loadingIcon()) {
613
+ <i [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())"></i>
587
614
  } @else {
588
615
  <ng-container>
589
616
  <svg [pBind]="ptm('loadingIcon')" data-p-icon="spinner" [spin]="true" [class]="cx('loadingIcon')" />
@@ -599,55 +626,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
599
626
  <ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
600
627
  </div>
601
628
  }
602
- @if (paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')) {
629
+ @if (paginator() && (paginatorPosition() === 'top' || paginatorPosition() == 'both')) {
603
630
  <p-paginator
604
- [rows]="rows"
605
- [first]="first"
606
- [totalRecords]="totalRecords"
607
- [pageLinkSize]="pageLinks"
608
- [alwaysShow]="alwaysShowPaginator"
631
+ [rows]="_rows()"
632
+ [first]="_first()"
633
+ [totalRecords]="_totalRecords()"
634
+ [pageLinkSize]="pageLinks()"
635
+ [alwaysShow]="alwaysShowPaginator()"
609
636
  (onPageChange)="paginate($event)"
610
- [rowsPerPageOptions]="rowsPerPageOptions"
611
- [appendTo]="paginatorDropdownAppendTo"
612
- [dropdownScrollHeight]="paginatorDropdownScrollHeight"
637
+ [rowsPerPageOptions]="rowsPerPageOptions()"
638
+ [appendTo]="paginatorDropdownAppendTo()"
639
+ [dropdownScrollHeight]="paginatorDropdownScrollHeight()"
613
640
  [templateLeft]="paginatorleft()"
614
641
  [templateRight]="paginatorright()"
615
- [currentPageReportTemplate]="currentPageReportTemplate"
616
- [showFirstLastIcon]="showFirstLastIcon"
642
+ [currentPageReportTemplate]="currentPageReportTemplate()"
643
+ [showFirstLastIcon]="showFirstLastIcon()"
617
644
  [dropdownItemTemplate]="paginatordropdownitem()"
618
- [showCurrentPageReport]="showCurrentPageReport"
619
- [showJumpToPageDropdown]="showJumpToPageDropdown"
620
- [showPageLinks]="showPageLinks"
621
- [styleClass]="cn(cx('pcPaginator', { position: 'top' }), paginatorStyleClass)"
645
+ [showCurrentPageReport]="showCurrentPageReport()"
646
+ [showJumpToPageDropdown]="showJumpToPageDropdown()"
647
+ [showPageLinks]="showPageLinks()"
648
+ [class]="cn(cx('pcPaginator', { position: 'top' }), paginatorStyleClass())"
622
649
  [pt]="ptm('pcPaginator')"
623
650
  [unstyled]="unstyled()"
624
651
  ></p-paginator>
625
652
  }
626
653
  <div [pBind]="ptm('content')" [class]="cx('content')">
627
- @if (layout === 'list') {
654
+ @if (layout() === 'list') {
628
655
  <ng-container
629
656
  *ngTemplateOutlet="
630
657
  listTemplate();
631
658
  context: {
632
- $implicit: paginator ? (filteredValue || value | slice: (lazy ? 0 : first) : (lazy ? 0 : first) + rows) : filteredValue || value
659
+ $implicit: paginator() ? (filteredValue() || value() | slice: (lazy() ? 0 : _first()) : (lazy() ? 0 : _first()) + _rows()) : filteredValue() || value()
633
660
  }
634
661
  "
635
662
  ></ng-container>
636
663
  }
637
- @if (layout === 'grid') {
664
+ @if (layout() === 'grid') {
638
665
  <ng-container
639
666
  *ngTemplateOutlet="
640
667
  gridTemplate();
641
668
  context: {
642
- $implicit: paginator ? (filteredValue || value | slice: (lazy ? 0 : first) : (lazy ? 0 : first) + rows) : filteredValue || value
669
+ $implicit: paginator() ? (filteredValue() || value() | slice: (lazy() ? 0 : _first()) : (lazy() ? 0 : _first()) + _rows()) : filteredValue() || value()
643
670
  }
644
671
  "
645
672
  ></ng-container>
646
673
  }
647
- @if (isEmpty() && !loading) {
674
+ @if (isEmpty() && !loading()) {
648
675
  <div [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')">
649
676
  @if (!emptymessageTemplate()) {
650
- {{ emptyMessageLabel }}
677
+ {{ emptyMessageLabel() }}
651
678
  } @else {
652
679
  <ng-template [ngTemplateOutlet]="empty"></ng-template>
653
680
  }
@@ -655,26 +682,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
655
682
  </div>
656
683
  }
657
684
  </div>
658
- @if (paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')) {
685
+ @if (paginator() && (paginatorPosition() === 'bottom' || paginatorPosition() == 'both')) {
659
686
  <p-paginator
660
- [rows]="rows"
661
- [first]="first"
662
- [totalRecords]="totalRecords"
663
- [pageLinkSize]="pageLinks"
664
- [alwaysShow]="alwaysShowPaginator"
687
+ [rows]="_rows()"
688
+ [first]="_first()"
689
+ [totalRecords]="_totalRecords()"
690
+ [pageLinkSize]="pageLinks()"
691
+ [alwaysShow]="alwaysShowPaginator()"
665
692
  (onPageChange)="paginate($event)"
666
- [rowsPerPageOptions]="rowsPerPageOptions"
667
- [appendTo]="paginatorDropdownAppendTo"
668
- [dropdownScrollHeight]="paginatorDropdownScrollHeight"
693
+ [rowsPerPageOptions]="rowsPerPageOptions()"
694
+ [appendTo]="paginatorDropdownAppendTo()"
695
+ [dropdownScrollHeight]="paginatorDropdownScrollHeight()"
669
696
  [templateLeft]="paginatorleft()"
670
697
  [templateRight]="paginatorright()"
671
- [currentPageReportTemplate]="currentPageReportTemplate"
672
- [showFirstLastIcon]="showFirstLastIcon"
698
+ [currentPageReportTemplate]="currentPageReportTemplate()"
699
+ [showFirstLastIcon]="showFirstLastIcon()"
673
700
  [dropdownItemTemplate]="paginatordropdownitem()"
674
- [showCurrentPageReport]="showCurrentPageReport"
675
- [showJumpToPageDropdown]="showJumpToPageDropdown"
676
- [showPageLinks]="showPageLinks"
677
- [styleClass]="cn(cx('pcPaginator', { position: 'bottom' }), paginatorStyleClass)"
701
+ [showCurrentPageReport]="showCurrentPageReport()"
702
+ [showJumpToPageDropdown]="showJumpToPageDropdown()"
703
+ [showPageLinks]="showPageLinks()"
704
+ [class]="cn(cx('pcPaginator', { position: 'bottom' }), paginatorStyleClass())"
678
705
  [pt]="ptm('pcPaginator')"
679
706
  [unstyled]="unstyled()"
680
707
  ></p-paginator>
@@ -690,85 +717,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
690
717
  encapsulation: ViewEncapsulation.None,
691
718
  providers: [DataViewStyle, { provide: DATAVIEW_INSTANCE, useExisting: DataView }, { provide: PARENT_INSTANCE, useExisting: DataView }],
692
719
  host: {
693
- '[class]': "cn(cx('root'), styleClass)"
720
+ '[class]': "cx('root')"
694
721
  },
695
722
  hostDirectives: [Bind]
696
723
  }]
697
- }], propDecorators: { paginator: [{
698
- type: Input,
699
- args: [{ transform: booleanAttribute }]
700
- }], rows: [{
701
- type: Input,
702
- args: [{ transform: numberAttribute }]
703
- }], totalRecords: [{
704
- type: Input,
705
- args: [{ transform: numberAttribute }]
706
- }], pageLinks: [{
707
- type: Input,
708
- args: [{ transform: numberAttribute }]
709
- }], rowsPerPageOptions: [{
710
- type: Input
711
- }], paginatorPosition: [{
712
- type: Input
713
- }], paginatorStyleClass: [{
714
- type: Input
715
- }], alwaysShowPaginator: [{
716
- type: Input,
717
- args: [{ transform: booleanAttribute }]
718
- }], paginatorDropdownAppendTo: [{
719
- type: Input
720
- }], paginatorDropdownScrollHeight: [{
721
- type: Input
722
- }], currentPageReportTemplate: [{
723
- type: Input
724
- }], showCurrentPageReport: [{
725
- type: Input,
726
- args: [{ transform: booleanAttribute }]
727
- }], showJumpToPageDropdown: [{
728
- type: Input,
729
- args: [{ transform: booleanAttribute }]
730
- }], showFirstLastIcon: [{
731
- type: Input,
732
- args: [{ transform: booleanAttribute }]
733
- }], showPageLinks: [{
734
- type: Input,
735
- args: [{ transform: booleanAttribute }]
736
- }], lazy: [{
737
- type: Input,
738
- args: [{ transform: booleanAttribute }]
739
- }], lazyLoadOnInit: [{
740
- type: Input,
741
- args: [{ transform: booleanAttribute }]
742
- }], emptyMessage: [{
743
- type: Input
744
- }], styleClass: [{
745
- type: Input
746
- }], gridStyleClass: [{
747
- type: Input
748
- }], trackBy: [{
749
- type: Input
750
- }], filterBy: [{
751
- type: Input
752
- }], filterLocale: [{
753
- type: Input
754
- }], loading: [{
755
- type: Input,
756
- args: [{ transform: booleanAttribute }]
757
- }], loadingIcon: [{
758
- type: Input
759
- }], first: [{
760
- type: Input,
761
- args: [{ transform: numberAttribute }]
762
- }], sortField: [{
763
- type: Input
764
- }], sortOrder: [{
765
- type: Input,
766
- args: [{ transform: numberAttribute }]
767
- }], value: [{
768
- type: Input
769
- }], layout: [{
770
- type: Input
771
- }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onPage: [{ type: i0.Output, args: ["onPage"] }], onSort: [{ type: i0.Output, args: ["onSort"] }], onChangeLayout: [{ type: i0.Output, args: ["onChangeLayout"] }], listTemplate: [{ type: i0.ContentChild, args: ['list', { isSignal: true }] }], gridTemplate: [{ type: i0.ContentChild, args: ['grid', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { isSignal: true }] }], emptymessageTemplate: [{ type: i0.ContentChild, args: ['emptymessage', { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { isSignal: true }] }], paginatorleft: [{ type: i0.ContentChild, args: ['paginatorleft', { isSignal: true }] }], paginatorright: [{ type: i0.ContentChild, args: ['paginatorright', { isSignal: true }] }], paginatordropdownitem: [{ type: i0.ContentChild, args: ['paginatordropdownitem', { isSignal: true }] }], loadingicon: [{ type: i0.ContentChild, args: ['loadingicon', { isSignal: true }] }], header: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Header), { isSignal: true }] }], footer: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }] } });
724
+ }], ctorParameters: () => [], propDecorators: { paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], pageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinks", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], paginatorPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorPosition", required: false }] }], paginatorStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorStyleClass", required: false }] }], alwaysShowPaginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShowPaginator", required: false }] }], paginatorDropdownAppendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorDropdownAppendTo", required: false }] }], paginatorDropdownScrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorDropdownScrollHeight", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], showJumpToPageDropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJumpToPageDropdown", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showPageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageLinks", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], lazyLoadOnInit: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazyLoadOnInit", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], gridStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "gridStyleClass", required: false }] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }], sortField: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortField", required: false }] }], sortOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortOrder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onPage: [{ type: i0.Output, args: ["onPage"] }], onSort: [{ type: i0.Output, args: ["onSort"] }], onChangeLayout: [{ type: i0.Output, args: ["onChangeLayout"] }], listTemplate: [{ type: i0.ContentChild, args: ['list', { isSignal: true }] }], gridTemplate: [{ type: i0.ContentChild, args: ['grid', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { isSignal: true }] }], emptymessageTemplate: [{ type: i0.ContentChild, args: ['emptymessage', { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { isSignal: true }] }], paginatorleft: [{ type: i0.ContentChild, args: ['paginatorleft', { isSignal: true }] }], paginatorright: [{ type: i0.ContentChild, args: ['paginatorright', { isSignal: true }] }], paginatordropdownitem: [{ type: i0.ContentChild, args: ['paginatordropdownitem', { isSignal: true }] }], loadingicon: [{ type: i0.ContentChild, args: ['loadingicon', { isSignal: true }] }], header: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Header), { isSignal: true }] }], footer: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }] } });
772
725
  class DataViewModule {
773
726
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DataViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
774
727
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: DataViewModule, imports: [DataView, SharedModule], exports: [DataView, SharedModule] });