primereact 10.6.5 → 10.7.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 (395) hide show
  1. package/README.md +1 -1
  2. package/api/api.d.ts +8 -0
  3. package/button/button.cjs.js +1 -0
  4. package/button/button.cjs.min.js +1 -1
  5. package/button/button.esm.js +1 -0
  6. package/button/button.esm.min.js +1 -1
  7. package/button/button.js +1 -0
  8. package/button/button.min.js +1 -1
  9. package/calendar/calendar.cjs.js +81 -45
  10. package/calendar/calendar.cjs.min.js +1 -1
  11. package/calendar/calendar.d.ts +8 -10
  12. package/calendar/calendar.esm.js +81 -45
  13. package/calendar/calendar.esm.min.js +1 -1
  14. package/calendar/calendar.js +81 -45
  15. package/calendar/calendar.min.js +1 -1
  16. package/chart/chart.d.ts +1 -13
  17. package/checkbox/checkbox.cjs.js +64 -0
  18. package/checkbox/checkbox.cjs.min.js +1 -1
  19. package/checkbox/checkbox.d.ts +12 -0
  20. package/checkbox/checkbox.esm.js +64 -0
  21. package/checkbox/checkbox.esm.min.js +1 -1
  22. package/checkbox/checkbox.js +64 -0
  23. package/checkbox/checkbox.min.js +1 -1
  24. package/colorpicker/colorpicker.cjs.js +18 -4
  25. package/colorpicker/colorpicker.cjs.min.js +1 -1
  26. package/colorpicker/colorpicker.esm.js +19 -5
  27. package/colorpicker/colorpicker.esm.min.js +1 -1
  28. package/colorpicker/colorpicker.js +18 -4
  29. package/colorpicker/colorpicker.min.js +1 -1
  30. package/column/column.d.ts +36 -14
  31. package/core/core.js +213 -58
  32. package/core/core.min.js +12 -12
  33. package/csstransition/csstransition.cjs.js +0 -6
  34. package/csstransition/csstransition.esm.js +0 -6
  35. package/csstransition/csstransition.js +0 -6
  36. package/datatable/datatable.cjs.js +157 -100
  37. package/datatable/datatable.cjs.min.js +1 -1
  38. package/datatable/datatable.d.ts +1 -1
  39. package/datatable/datatable.esm.js +157 -100
  40. package/datatable/datatable.esm.min.js +1 -1
  41. package/datatable/datatable.js +157 -100
  42. package/datatable/datatable.min.js +1 -1
  43. package/dialog/dialog.cjs.js +19 -4
  44. package/dialog/dialog.cjs.min.js +1 -1
  45. package/dialog/dialog.esm.js +19 -4
  46. package/dialog/dialog.esm.min.js +1 -1
  47. package/dialog/dialog.js +19 -4
  48. package/dialog/dialog.min.js +1 -1
  49. package/dropdown/dropdown.cjs.js +10 -8
  50. package/dropdown/dropdown.cjs.min.js +1 -1
  51. package/dropdown/dropdown.esm.js +10 -8
  52. package/dropdown/dropdown.esm.min.js +1 -1
  53. package/dropdown/dropdown.js +10 -8
  54. package/dropdown/dropdown.min.js +1 -1
  55. package/focustrap/focustrap.cjs.js +12 -1
  56. package/focustrap/focustrap.cjs.min.js +1 -1
  57. package/focustrap/focustrap.esm.js +12 -1
  58. package/focustrap/focustrap.esm.min.js +1 -1
  59. package/focustrap/focustrap.js +12 -1
  60. package/focustrap/focustrap.min.js +1 -1
  61. package/galleria/galleria.cjs.js +7 -0
  62. package/galleria/galleria.cjs.min.js +1 -1
  63. package/galleria/galleria.esm.js +8 -1
  64. package/galleria/galleria.esm.min.js +1 -1
  65. package/galleria/galleria.js +7 -0
  66. package/galleria/galleria.min.js +1 -1
  67. package/hooks/hooks.cjs.js +2 -1
  68. package/hooks/hooks.cjs.min.js +1 -1
  69. package/hooks/hooks.esm.js +2 -1
  70. package/hooks/hooks.esm.min.js +1 -1
  71. package/hooks/hooks.js +2 -1
  72. package/hooks/hooks.min.js +1 -1
  73. package/inputnumber/inputnumber.cjs.js +17 -13
  74. package/inputnumber/inputnumber.cjs.min.js +1 -1
  75. package/inputnumber/inputnumber.esm.js +17 -13
  76. package/inputnumber/inputnumber.esm.min.js +1 -1
  77. package/inputnumber/inputnumber.js +17 -13
  78. package/inputnumber/inputnumber.min.js +1 -1
  79. package/inputotp/inputotp.cjs.js +26 -3
  80. package/inputotp/inputotp.cjs.min.js +1 -1
  81. package/inputotp/inputotp.esm.js +27 -4
  82. package/inputotp/inputotp.esm.min.js +1 -1
  83. package/inputotp/inputotp.js +26 -3
  84. package/inputotp/inputotp.min.js +1 -1
  85. package/inputtext/inputtext.d.ts +1 -1
  86. package/keyfilter/keyfilter.cjs.js +1 -1
  87. package/keyfilter/keyfilter.cjs.min.js +1 -1
  88. package/keyfilter/keyfilter.esm.js +1 -1
  89. package/keyfilter/keyfilter.esm.min.js +1 -1
  90. package/keyfilter/keyfilter.js +1 -1
  91. package/keyfilter/keyfilter.min.js +1 -1
  92. package/listbox/listbox.cjs.js +23 -35
  93. package/listbox/listbox.cjs.min.js +1 -1
  94. package/listbox/listbox.esm.js +23 -35
  95. package/listbox/listbox.esm.min.js +1 -1
  96. package/listbox/listbox.js +23 -35
  97. package/listbox/listbox.min.js +1 -1
  98. package/menubar/menubar.d.ts +9 -0
  99. package/metergroup/metergroup.cjs.js +5 -4
  100. package/metergroup/metergroup.cjs.min.js +1 -1
  101. package/metergroup/metergroup.d.ts +3 -10
  102. package/metergroup/metergroup.esm.js +5 -4
  103. package/metergroup/metergroup.esm.min.js +1 -1
  104. package/metergroup/metergroup.js +5 -4
  105. package/metergroup/metergroup.min.js +1 -1
  106. package/multiselect/multiselect.cjs.js +11 -2
  107. package/multiselect/multiselect.cjs.min.js +1 -1
  108. package/multiselect/multiselect.esm.js +11 -2
  109. package/multiselect/multiselect.esm.min.js +1 -1
  110. package/multiselect/multiselect.js +11 -2
  111. package/multiselect/multiselect.min.js +1 -1
  112. package/multistatecheckbox/multistatecheckbox.cjs.js +9 -0
  113. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  114. package/multistatecheckbox/multistatecheckbox.esm.js +9 -0
  115. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  116. package/multistatecheckbox/multistatecheckbox.js +9 -0
  117. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  118. package/organizationchart/organizationchart.cjs.js +0 -1
  119. package/organizationchart/organizationchart.esm.js +0 -1
  120. package/organizationchart/organizationchart.js +0 -1
  121. package/package.json +4 -4
  122. package/paginator/paginator.cjs.js +1 -1
  123. package/paginator/paginator.cjs.min.js +1 -1
  124. package/paginator/paginator.esm.js +1 -1
  125. package/paginator/paginator.esm.min.js +1 -1
  126. package/paginator/paginator.js +1 -1
  127. package/paginator/paginator.min.js +1 -1
  128. package/panelmenu/panelmenu.cjs.js +13 -12
  129. package/panelmenu/panelmenu.cjs.min.js +1 -1
  130. package/panelmenu/panelmenu.esm.js +13 -12
  131. package/panelmenu/panelmenu.esm.min.js +1 -1
  132. package/panelmenu/panelmenu.js +13 -12
  133. package/panelmenu/panelmenu.min.js +1 -1
  134. package/passthrough/tailwind/index.cjs.js +10 -81
  135. package/passthrough/tailwind/index.cjs.min.js +1 -1
  136. package/passthrough/tailwind/index.esm.js +10 -81
  137. package/passthrough/tailwind/index.esm.min.js +1 -1
  138. package/passthrough/tailwind/index.js +10 -81
  139. package/passthrough/tailwind/index.min.js +1 -1
  140. package/password/password.cjs.js +2 -2
  141. package/password/password.cjs.min.js +1 -1
  142. package/password/password.esm.js +2 -2
  143. package/password/password.esm.min.js +1 -1
  144. package/password/password.js +2 -2
  145. package/password/password.min.js +1 -1
  146. package/primereact.all.cjs.js +2826 -1797
  147. package/primereact.all.cjs.min.js +1 -1
  148. package/primereact.all.esm.js +2823 -1798
  149. package/primereact.all.esm.min.js +1 -1
  150. package/primereact.all.js +2826 -1797
  151. package/primereact.all.min.js +1 -1
  152. package/radiobutton/radiobutton.cjs.js +13 -10
  153. package/radiobutton/radiobutton.cjs.min.js +1 -1
  154. package/radiobutton/radiobutton.esm.js +13 -10
  155. package/radiobutton/radiobutton.esm.min.js +1 -1
  156. package/radiobutton/radiobutton.js +13 -10
  157. package/radiobutton/radiobutton.min.js +1 -1
  158. package/resources/images/line.gif +0 -0
  159. package/resources/themes/arya-blue/theme.css +62 -0
  160. package/resources/themes/arya-green/theme.css +62 -0
  161. package/resources/themes/arya-orange/theme.css +62 -0
  162. package/resources/themes/bootstrap4-dark-blue/theme.css +62 -0
  163. package/resources/themes/bootstrap4-dark-purple/theme.css +207 -43
  164. package/resources/themes/bootstrap4-light-blue/theme.css +62 -0
  165. package/resources/themes/bootstrap4-light-purple/theme.css +207 -43
  166. package/resources/themes/fluent-light/theme.css +62 -0
  167. package/resources/themes/lara-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
  168. package/resources/themes/lara-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
  169. package/resources/themes/lara-dark-amber/theme.css +62 -9
  170. package/resources/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
  171. package/resources/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
  172. package/resources/themes/lara-dark-blue/theme.css +62 -9
  173. package/resources/themes/lara-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
  174. package/resources/themes/lara-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
  175. package/resources/themes/lara-dark-cyan/theme.css +62 -9
  176. package/resources/themes/lara-dark-green/fonts/Inter-italic.var.woff2 +0 -0
  177. package/resources/themes/lara-dark-green/fonts/Inter-roman.var.woff2 +0 -0
  178. package/resources/themes/lara-dark-green/theme.css +62 -9
  179. package/resources/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
  180. package/resources/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
  181. package/resources/themes/lara-dark-indigo/theme.css +62 -9
  182. package/resources/themes/lara-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
  183. package/resources/themes/lara-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
  184. package/resources/themes/lara-dark-pink/theme.css +62 -9
  185. package/resources/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
  186. package/resources/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
  187. package/resources/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
  188. package/resources/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
  189. package/resources/themes/lara-dark-teal/theme.css +62 -9
  190. package/resources/themes/lara-light-amber/fonts/Inter-italic.var.woff2 +0 -0
  191. package/resources/themes/lara-light-amber/fonts/Inter-roman.var.woff2 +0 -0
  192. package/resources/themes/lara-light-amber/theme.css +62 -9
  193. package/resources/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
  194. package/resources/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
  195. package/resources/themes/lara-light-blue/theme.css +62 -9
  196. package/resources/themes/lara-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
  197. package/resources/themes/lara-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
  198. package/resources/themes/lara-light-cyan/theme.css +62 -9
  199. package/resources/themes/lara-light-green/fonts/Inter-italic.var.woff2 +0 -0
  200. package/resources/themes/lara-light-green/fonts/Inter-roman.var.woff2 +0 -0
  201. package/resources/themes/lara-light-green/theme.css +62 -9
  202. package/resources/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
  203. package/resources/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
  204. package/resources/themes/lara-light-indigo/theme.css +62 -9
  205. package/resources/themes/lara-light-pink/fonts/Inter-italic.var.woff2 +0 -0
  206. package/resources/themes/lara-light-pink/fonts/Inter-roman.var.woff2 +0 -0
  207. package/resources/themes/lara-light-pink/theme.css +62 -9
  208. package/resources/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
  209. package/resources/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
  210. package/resources/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
  211. package/resources/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
  212. package/resources/themes/lara-light-teal/theme.css +62 -9
  213. package/resources/themes/luna-amber/theme.css +62 -0
  214. package/resources/themes/luna-blue/theme.css +62 -0
  215. package/resources/themes/luna-green/theme.css +62 -0
  216. package/resources/themes/luna-pink/theme.css +62 -0
  217. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  218. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  219. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  220. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  221. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  222. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  223. package/resources/themes/md-dark-deeppurple/theme.css +225 -43
  224. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  225. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  226. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  227. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  228. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  229. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  230. package/resources/themes/md-dark-indigo/theme.css +213 -151
  231. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  232. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  233. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  234. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  235. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  236. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  237. package/resources/themes/md-light-deeppurple/theme.css +225 -43
  238. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  239. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  240. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  241. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  242. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  243. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  244. package/resources/themes/md-light-indigo/theme.css +62 -0
  245. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  246. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  247. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  248. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  249. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  250. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  251. package/resources/themes/mdc-dark-deeppurple/theme.css +225 -43
  252. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  253. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  254. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  255. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  256. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  257. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  258. package/resources/themes/mdc-dark-indigo/theme.css +213 -151
  259. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  260. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  261. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  262. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  263. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  264. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  265. package/resources/themes/mdc-light-deeppurple/theme.css +225 -43
  266. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  267. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  268. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  269. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  270. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  271. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  272. package/resources/themes/mdc-light-indigo/theme.css +62 -0
  273. package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
  274. package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
  275. package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
  276. package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
  277. package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
  278. package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
  279. package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
  280. package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
  281. package/resources/themes/mira/theme.css +62 -0
  282. package/resources/themes/nano/theme.css +62 -0
  283. package/resources/themes/nova/theme.css +62 -0
  284. package/resources/themes/nova-accent/theme.css +62 -0
  285. package/resources/themes/nova-alt/theme.css +62 -0
  286. package/resources/themes/rhea/theme.css +62 -0
  287. package/resources/themes/saga-blue/theme.css +62 -0
  288. package/resources/themes/saga-green/theme.css +62 -0
  289. package/resources/themes/saga-orange/theme.css +62 -0
  290. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  291. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  292. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  293. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  294. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  295. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  296. package/resources/themes/soho-dark/theme.css +87 -25
  297. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  298. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  299. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  300. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  301. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  302. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  303. package/resources/themes/soho-light/theme.css +62 -0
  304. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
  305. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
  306. package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
  307. package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
  308. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
  309. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
  310. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
  311. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
  312. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
  313. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
  314. package/resources/themes/tailwind-light/theme.css +62 -0
  315. package/resources/themes/vela-blue/theme.css +62 -0
  316. package/resources/themes/vela-green/theme.css +62 -0
  317. package/resources/themes/vela-orange/theme.css +62 -0
  318. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  319. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  320. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  321. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  322. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  323. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  324. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  325. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  326. package/resources/themes/viva-dark/theme.css +62 -0
  327. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  328. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  329. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  330. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  331. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  332. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  333. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  334. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  335. package/resources/themes/viva-light/theme.css +62 -0
  336. package/sidebar/sidebar.d.ts +4 -0
  337. package/splitbutton/splitbutton.cjs.js +0 -1
  338. package/splitbutton/splitbutton.cjs.min.js +1 -1
  339. package/splitbutton/splitbutton.esm.js +0 -1
  340. package/splitbutton/splitbutton.esm.min.js +1 -1
  341. package/splitbutton/splitbutton.js +0 -1
  342. package/splitbutton/splitbutton.min.js +1 -1
  343. package/tabview/tabview.cjs.js +0 -3
  344. package/tabview/tabview.cjs.min.js +1 -1
  345. package/tabview/tabview.d.ts +1 -1
  346. package/tabview/tabview.esm.js +0 -3
  347. package/tabview/tabview.esm.min.js +1 -1
  348. package/tabview/tabview.js +0 -3
  349. package/tabview/tabview.min.js +1 -1
  350. package/tieredmenu/tieredmenu.cjs.js +0 -1
  351. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  352. package/tieredmenu/tieredmenu.esm.js +0 -1
  353. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  354. package/tieredmenu/tieredmenu.js +0 -1
  355. package/tieredmenu/tieredmenu.min.js +1 -1
  356. package/tooltip/tooltip.cjs.js +12 -3
  357. package/tooltip/tooltip.cjs.min.js +1 -1
  358. package/tooltip/tooltip.esm.js +13 -4
  359. package/tooltip/tooltip.esm.min.js +1 -1
  360. package/tooltip/tooltip.js +12 -3
  361. package/tooltip/tooltip.min.js +1 -1
  362. package/tooltip/tooltipoptions.d.ts +5 -0
  363. package/tree/tree.cjs.js +60 -14
  364. package/tree/tree.cjs.min.js +1 -1
  365. package/tree/tree.esm.js +60 -14
  366. package/tree/tree.esm.min.js +1 -1
  367. package/tree/tree.js +60 -14
  368. package/tree/tree.min.js +1 -1
  369. package/treeselect/treeselect.cjs.js +0 -1
  370. package/treeselect/treeselect.cjs.min.js +1 -1
  371. package/treeselect/treeselect.esm.js +0 -1
  372. package/treeselect/treeselect.esm.min.js +1 -1
  373. package/treeselect/treeselect.js +0 -1
  374. package/treeselect/treeselect.min.js +1 -1
  375. package/treetable/treetable.cjs.js +249 -9
  376. package/treetable/treetable.cjs.min.js +1 -1
  377. package/treetable/treetable.d.ts +29 -0
  378. package/treetable/treetable.esm.js +249 -9
  379. package/treetable/treetable.esm.min.js +1 -1
  380. package/treetable/treetable.js +249 -9
  381. package/treetable/treetable.min.js +1 -1
  382. package/utils/utils.cjs.js +3 -6
  383. package/utils/utils.cjs.min.js +1 -1
  384. package/utils/utils.d.ts +7 -4
  385. package/utils/utils.esm.js +3 -6
  386. package/utils/utils.esm.min.js +1 -1
  387. package/utils/utils.js +3 -6
  388. package/utils/utils.min.js +1 -1
  389. package/virtualscroller/virtualscroller.cjs.js +23 -1
  390. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  391. package/virtualscroller/virtualscroller.esm.js +23 -1
  392. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  393. package/virtualscroller/virtualscroller.js +23 -1
  394. package/virtualscroller/virtualscroller.min.js +1 -1
  395. package/web-types.json +77 -30
@@ -1081,7 +1081,7 @@ interface DataTableBaseProps<TValue extends DataTableValueArray> extends Omit<Re
1081
1081
  dragSelection?: boolean;
1082
1082
  /**
1083
1083
  * Defines editing mode, options are "cell" and "row".
1084
- * @defaultValue cell
1084
+ * @defaultValue null
1085
1085
  */
1086
1086
  editMode?: string | undefined;
1087
1087
  /**
@@ -159,6 +159,19 @@ function _slicedToArray(arr, i) {
159
159
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
160
160
  }
161
161
 
162
+ var getStorage = function getStorage(stateStorageProp) {
163
+ switch (stateStorageProp) {
164
+ case 'local':
165
+ return window.localStorage;
166
+ case 'session':
167
+ return window.sessionStorage;
168
+ case 'custom':
169
+ return null;
170
+ default:
171
+ throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
172
+ }
173
+ };
174
+
162
175
  var ColumnBase = ComponentBase.extend({
163
176
  defaultProps: {
164
177
  __TYPE: 'Column',
@@ -168,6 +181,7 @@ var ColumnBase = ComponentBase.extend({
168
181
  body: null,
169
182
  bodyClassName: null,
170
183
  bodyStyle: null,
184
+ cellEditValidateOnClose: false,
171
185
  cellEditValidator: null,
172
186
  cellEditValidatorEvent: 'click',
173
187
  className: null,
@@ -692,8 +706,15 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
692
706
  var mergeProps = useMergeProps();
693
707
  var context = React.useContext(PrimeReactContext);
694
708
  var props = CheckboxBase.getProps(inProps, context);
709
+ var _React$useState = React.useState(false),
710
+ _React$useState2 = _slicedToArray(_React$useState, 2),
711
+ focusedState = _React$useState2[0],
712
+ setFocusedState = _React$useState2[1];
695
713
  var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
696
714
  props: props,
715
+ state: {
716
+ focused: focusedState
717
+ },
697
718
  context: {
698
719
  checked: props.checked === props.trueValue,
699
720
  disabled: props.disabled
@@ -747,10 +768,12 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
747
768
  };
748
769
  var _onFocus = function onFocus() {
749
770
  var _props$onFocus;
771
+ setFocusedState(true);
750
772
  props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
751
773
  };
752
774
  var _onBlur = function onBlur() {
753
775
  var _props$onBlur;
776
+ setFocusedState(false);
754
777
  props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
755
778
  };
756
779
  React.useImperativeHandle(ref, function () {
@@ -913,9 +936,9 @@ var classes = {
913
936
  'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
914
937
  });
915
938
  },
916
- box: 'p-radiobutton-box',
917
- input: 'p-radiobutton-input',
918
- icon: 'p-radiobutton-icon'
939
+ radiobuttonbox: 'p-radiobutton-box',
940
+ radiobuttoninput: 'p-radiobutton-input',
941
+ radiobuttonicon: 'p-radiobutton-icon'
919
942
  };
920
943
  var RadioButtonBase = ComponentBase.extend({
921
944
  defaultProps: {
@@ -1054,7 +1077,10 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1054
1077
  })),
1055
1078
  style: props.style,
1056
1079
  'data-p-checked': props.checked
1057
- }, RadioButtonBase.getOtherProps(props), ptm('root'));
1080
+ }, otherProps, ptm('root'));
1081
+ delete rootProps.input;
1082
+ delete rootProps.box;
1083
+ delete rootProps.icon;
1058
1084
  var createInputElement = function createInputElement() {
1059
1085
  var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
1060
1086
  var inputProps = mergeProps(_objectSpread$b({
@@ -1069,19 +1095,19 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1069
1095
  readOnly: props.readonly,
1070
1096
  required: props.required,
1071
1097
  tabIndex: props.tabIndex,
1072
- className: cx('input')
1073
- }, ariaProps), ptm('input'));
1098
+ className: cx('radiobuttoninput')
1099
+ }, ariaProps), inProps.input, ptm('radiobuttoninput'));
1074
1100
  return /*#__PURE__*/React.createElement("input", _extends({
1075
1101
  ref: inputRef
1076
1102
  }, inputProps));
1077
1103
  };
1078
1104
  var createBoxElement = function createBoxElement() {
1079
1105
  var boxProps = mergeProps({
1080
- className: cx('box')
1081
- }, ptm('box'));
1106
+ className: cx('radiobuttonbox')
1107
+ }, inProps.box, ptm('radiobuttonbox'));
1082
1108
  var iconProps = mergeProps({
1083
- className: cx('icon')
1084
- }, ptm('icon'));
1109
+ className: cx('radiobuttonicon')
1110
+ }, inProps.icon, ptm('radiobuttonicon'));
1085
1111
  return /*#__PURE__*/React.createElement("div", boxProps, /*#__PURE__*/React.createElement("div", iconProps));
1086
1112
  };
1087
1113
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
@@ -1129,7 +1155,11 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
1129
1155
  checked: props.checked,
1130
1156
  disabled: props.disabled,
1131
1157
  name: "".concat(props.tableSelector, "_dt_radio"),
1132
- onChange: onChange
1158
+ onChange: onChange,
1159
+ input: getColumnPTOptions('radiobuttoninput'),
1160
+ box: getColumnPTOptions('radiobuttonbox'),
1161
+ icon: getColumnPTOptions('radiobuttonicon'),
1162
+ unstyled: props.unstyled
1133
1163
  }, getColumnPTOptions('radiobutton'));
1134
1164
  return /*#__PURE__*/React.createElement(RadioButton, radioButtonProps);
1135
1165
  });
@@ -1155,8 +1185,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1155
1185
  var keyHelperRef = React.useRef(null);
1156
1186
  var overlayEventListener = React.useRef(null);
1157
1187
  var selfClick = React.useRef(false);
1158
- var tabindexTimeout = React.useRef(null);
1159
1188
  var initFocusTimeout = React.useRef(null);
1189
+ var editingRowDataStateRef = React.useRef(null);
1160
1190
  var _props$ptCallbacks = props.ptCallbacks,
1161
1191
  ptm = _props$ptCallbacks.ptm,
1162
1192
  ptmo = _props$ptCallbacks.ptmo,
@@ -1191,7 +1221,10 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1191
1221
  var field = getColumnProp('field') || "field_".concat(props.index);
1192
1222
  var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
1193
1223
  var isEditable = function isEditable() {
1194
- return getColumnProp('editor');
1224
+ return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
1225
+ };
1226
+ var cellEditValidateOnClose = function cellEditValidateOnClose() {
1227
+ return getColumnProp('cellEditValidateOnClose');
1195
1228
  };
1196
1229
  var _useEventListener = useEventListener({
1197
1230
  type: 'click',
@@ -1275,40 +1308,37 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1275
1308
  unbindDocumentClickListener();
1276
1309
  OverlayService.off('overlay-click', overlayEventListener.current);
1277
1310
  overlayEventListener.current = null;
1311
+ editingRowDataStateRef.current = null;
1278
1312
  selfClick.current = false;
1279
1313
  }, 1);
1280
1314
  };
1281
1315
  var switchCellToViewMode = function switchCellToViewMode(event, submit) {
1282
1316
  var callbackParams = getCellCallbackParams(event);
1283
- setEditingRowDataState(function (prev) {
1284
- var newRowData = prev;
1285
- var newValue = resolveFieldData(newRowData);
1286
- var params = _objectSpread$a(_objectSpread$a({}, callbackParams), {}, {
1287
- newRowData: newRowData,
1288
- newValue: newValue
1289
- });
1290
- var onCellEditCancel = getColumnProp('onCellEditCancel');
1291
- var cellEditValidator = getColumnProp('cellEditValidator');
1292
- var onCellEditComplete = getColumnProp('onCellEditComplete');
1293
- if (!submit && onCellEditCancel) {
1294
- onCellEditCancel(params);
1295
- }
1296
- var valid = true;
1297
- if (!submit && cellEditValidator) {
1298
- valid = cellEditValidator(params);
1299
- }
1300
- if (valid) {
1301
- if (submit && onCellEditComplete) {
1302
- setTimeout(function () {
1303
- return onCellEditComplete(params);
1304
- });
1305
- }
1306
- closeCell(event);
1307
- } else {
1308
- event.preventDefault();
1309
- }
1310
- return newRowData;
1317
+ var newRowData = _objectSpread$a({}, editingRowDataStateRef.current);
1318
+ var newValue = resolveFieldData(newRowData);
1319
+ var params = _objectSpread$a(_objectSpread$a({}, callbackParams), {}, {
1320
+ newRowData: newRowData,
1321
+ newValue: newValue
1311
1322
  });
1323
+ var onCellEditCancel = getColumnProp('onCellEditCancel');
1324
+ var cellEditValidator = getColumnProp('cellEditValidator');
1325
+ var onCellEditComplete = getColumnProp('onCellEditComplete');
1326
+ if (!submit && onCellEditCancel) {
1327
+ onCellEditCancel(params);
1328
+ }
1329
+ var valid = true;
1330
+ if ((!submit || cellEditValidateOnClose()) && cellEditValidator) {
1331
+ valid = cellEditValidator(params);
1332
+ }
1333
+ if (valid) {
1334
+ if (submit && onCellEditComplete) {
1335
+ onCellEditComplete(params);
1336
+ }
1337
+ closeCell(event);
1338
+ } else {
1339
+ event.preventDefault();
1340
+ }
1341
+ setEditingRowDataState(newRowData);
1312
1342
  };
1313
1343
  var findNextSelectableCell = function findNextSelectableCell(cell) {
1314
1344
  var nextCell = cell.nextElementSibling;
@@ -1335,14 +1365,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1335
1365
  }
1336
1366
  };
1337
1367
  var focusOnElement = function focusOnElement() {
1338
- clearTimeout(tabindexTimeout.current);
1339
- tabindexTimeout.current = setTimeout(function () {
1340
- if (editingState) {
1341
- var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
1342
- focusableEl && focusableEl.focus();
1343
- }
1344
- keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
1345
- }, 1);
1368
+ if (editingState) {
1369
+ var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
1370
+ focusableEl && focusableEl.focus();
1371
+ }
1372
+ keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
1346
1373
  };
1347
1374
  var focusOnInit = function focusOnInit() {
1348
1375
  clearTimeout(initFocusTimeout.current);
@@ -1384,6 +1411,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1384
1411
  if (currentData) {
1385
1412
  ObjectUtils.mutateFieldData(currentData, field, val);
1386
1413
  }
1414
+ editingRowDataStateRef.current = editingRowData;
1387
1415
  };
1388
1416
  var _onClick = function onClick(event) {
1389
1417
  var params = getCellCallbackParams(event);
@@ -1576,7 +1604,9 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1576
1604
  }, [props.editMode, props.editing, editingState]);
1577
1605
  useUpdateEffect(function () {
1578
1606
  if (props.editMode === 'cell' || props.editMode === 'row') {
1579
- setEditingRowDataState(getEditingRowData());
1607
+ var editingRowData = getEditingRowData();
1608
+ setEditingRowDataState(editingRowData);
1609
+ editingRowDataStateRef.current = editingRowData;
1580
1610
  }
1581
1611
  }, [props.editingMeta]);
1582
1612
  React.useEffect(function () {
@@ -1653,7 +1683,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1653
1683
  if (showSelection) {
1654
1684
  var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
1655
1685
  var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
1656
- label = "".concat(props.selected ? ariaLabel$1('unselectLabel') : ariaLabel$1('selectLabel'), " ").concat(ariaLabelText);
1686
+ label = "".concat(props.selected ? ariaLabel$1('unselectRow') : ariaLabel$1('selectRow'), " ").concat(ariaLabelText);
1657
1687
  }
1658
1688
  content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {
1659
1689
  hostName: props.hostName,
@@ -1668,7 +1698,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1668
1698
  tableSelector: props.tableSelector,
1669
1699
  ariaLabel: label,
1670
1700
  ptCallbacks: props.ptCallbacks,
1671
- metaData: props.metaData
1701
+ metaData: props.metaData,
1702
+ unstyled: props.unstyled
1672
1703
  }), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {
1673
1704
  hostName: props.hostName,
1674
1705
  column: props.column,
@@ -1682,17 +1713,19 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1682
1713
  ariaLabel: label,
1683
1714
  checkIcon: props.checkIcon,
1684
1715
  ptCallbacks: props.ptCallbacks,
1685
- metaData: props.metaData
1716
+ metaData: props.metaData,
1717
+ unstyled: props.unstyled
1686
1718
  }));
1687
1719
  } else if (rowReorder) {
1688
1720
  var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
1689
1721
  rowIndex: props.rowIndex,
1690
1722
  props: props.tableProps
1691
1723
  }) : true;
1724
+ var customIcon = getColumnProp('rowReorderIcon');
1692
1725
  var rowReorderIconProps = mergeProps({
1693
1726
  className: cx('rowReorderIcon')
1694
- }, getColumnPTOptions('rowReorderIcon'));
1695
- var rowReorderIcon = getColumnProp('rowReorderIcon') || /*#__PURE__*/React.createElement(BarsIcon, rowReorderIconProps);
1727
+ }, customIcon ? null : getColumnPTOptions('rowReorderIcon'));
1728
+ var rowReorderIcon = customIcon || /*#__PURE__*/React.createElement(BarsIcon, rowReorderIconProps);
1696
1729
  content = showReorder ? IconUtils.getJSXIcon(rowReorderIcon, _objectSpread$a({}, rowReorderIconProps), {
1697
1730
  props: props
1698
1731
  }) : null;
@@ -1844,7 +1877,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1844
1877
  }, editorKeyHelperProps), /*#__PURE__*/React.createElement("span", editorKeyHelperLabelProps));
1845
1878
  /* eslint-enable */
1846
1879
  }
1847
-
1848
1880
  var bodyCellProps = mergeProps({
1849
1881
  style: style,
1850
1882
  className: classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
@@ -2136,7 +2168,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
2136
2168
  focusedItem && focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1');
2137
2169
  } else {
2138
2170
  rows[0].tabIndex = '0';
2139
- focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1');
2171
+ focusedItem !== rows[0] && (rows[props.rowIndex].tabIndex = '-1');
2140
2172
  }
2141
2173
  }
2142
2174
  };
@@ -2328,7 +2360,8 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
2328
2360
  value: props.value,
2329
2361
  virtualScrollerOptions: props.virtualScrollerOptions,
2330
2362
  ptCallbacks: props.ptCallbacks,
2331
- metaData: props.metaData
2363
+ metaData: props.metaData,
2364
+ unstyled: props.unstyled
2332
2365
  });
2333
2366
  }
2334
2367
  return null;
@@ -2407,7 +2440,6 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
2407
2440
  }, getBodyRowPTOptions('bodyRow'), {
2408
2441
  className: classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
2409
2442
  });
2410
-
2411
2443
  return /*#__PURE__*/React.createElement("tr", rowProps, content);
2412
2444
  });
2413
2445
  BodyRow.displayName = 'BodyRow';
@@ -3036,6 +3068,7 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
3036
3068
  var event = e.originalEvent;
3037
3069
  if (!isUnsyled && DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle')) {
3038
3070
  event.currentTarget.draggable = true;
3071
+ event.target.draggable = false;
3039
3072
  } else {
3040
3073
  event.currentTarget.draggable = false;
3041
3074
  }
@@ -3114,7 +3147,6 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
3114
3147
  event.dataTransfer.setData('text', 'b'); // For firefox
3115
3148
  }
3116
3149
  };
3117
-
3118
3150
  var onRowDragOver = function onRowDragOver(e) {
3119
3151
  var event = e.originalEvent,
3120
3152
  index = e.index;
@@ -3336,7 +3368,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
3336
3368
  expandedRowIcon: props.expandedRowIcon,
3337
3369
  collapsedRowIcon: props.collapsedRowIcon,
3338
3370
  ptCallbacks: props.ptCallbacks,
3339
- metaData: props.metaData
3371
+ metaData: props.metaData,
3372
+ unstyled: props.unstyled
3340
3373
  });
3341
3374
  var options = {
3342
3375
  index: rowIndex,
@@ -3441,7 +3474,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
3441
3474
  value: props.value,
3442
3475
  virtualScrollerOptions: props.virtualScrollerOptions,
3443
3476
  ptCallbacks: props.ptCallbacks,
3444
- metaData: props.metaData
3477
+ metaData: props.metaData,
3478
+ unstyled: props.unstyled
3445
3479
  });
3446
3480
  }
3447
3481
  };
@@ -4038,6 +4072,15 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
4038
4072
  var getTarget = function getTarget() {
4039
4073
  return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
4040
4074
  };
4075
+
4076
+ /**
4077
+ * This method sets the auto focus on the first focusable element within the target element.
4078
+ * It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
4079
+ * it then tries to find a focusable element using the firstFocusableSelector.
4080
+ * If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
4081
+ *
4082
+ * @param {HTMLElement} target - The target element within which to find a focusable element.
4083
+ */
4041
4084
  var setAutoFocus = function setAutoFocus(target) {
4042
4085
  var _ref = props || {},
4043
4086
  _ref$autoFocusSelecto = _ref.autoFocusSelector,
@@ -4046,7 +4089,9 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
4046
4089
  firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
4047
4090
  _ref$autoFocus = _ref.autoFocus,
4048
4091
  autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
4049
- var focusableElement = DomHandler.getFirstFocusableElement(target, "[autofocus]".concat(getComputedSelector(autoFocusSelector)));
4092
+ var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
4093
+ var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
4094
+ var focusableElement = DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
4050
4095
  autoFocus && !focusableElement && (focusableElement = DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
4051
4096
  DomHandler.focus(focusableElement);
4052
4097
  };
@@ -5162,7 +5207,7 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
5162
5207
  column: props.column
5163
5208
  });
5164
5209
  };
5165
- var onResizerMouseDown = function onResizerMouseDown(event) {
5210
+ var onResizeStart = function onResizeStart(event) {
5166
5211
  props.onColumnResizeStart({
5167
5212
  originalEvent: event,
5168
5213
  column: props.column
@@ -5199,7 +5244,10 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
5199
5244
  var columnResizerProps = mergeProps({
5200
5245
  className: cx('columnResizer'),
5201
5246
  onMouseDown: function onMouseDown(e) {
5202
- return onResizerMouseDown(e);
5247
+ return onResizeStart(e);
5248
+ },
5249
+ onTouchStart: function onTouchStart(e) {
5250
+ return onResizeStart(e);
5203
5251
  },
5204
5252
  onClick: function onClick(e) {
5205
5253
  return onResizerClick(e);
@@ -5259,7 +5307,8 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
5259
5307
  onChange: props.onColumnCheckboxChange,
5260
5308
  disabled: props.empty,
5261
5309
  ptCallbacks: ptCallbacks,
5262
- metaData: parentMetaData
5310
+ metaData: parentMetaData,
5311
+ unstyled: props.unstyled
5263
5312
  });
5264
5313
  }
5265
5314
  return null;
@@ -5725,29 +5774,40 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
5725
5774
  setRowsState(props.rows);
5726
5775
  setD_rowsState(props.rows);
5727
5776
  }
5777
+ var columnResizeStartListener = function columnResizeStartListener(event) {
5778
+ return columnResizing.current && onColumnResize(event);
5779
+ };
5780
+ var columnResizeEndListener = function columnResizeEndListener() {
5781
+ return columnResizing.current && (columnResizing.current = false, onColumnResizeEnd());
5782
+ };
5728
5783
  var _useEventListener = useEventListener({
5729
5784
  type: 'mousemove',
5730
- listener: function listener(event) {
5731
- if (columnResizing.current) {
5732
- onColumnResize(event);
5733
- }
5734
- }
5785
+ listener: columnResizeStartListener
5735
5786
  }),
5736
5787
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
5737
5788
  bindDocumentMouseMoveListener = _useEventListener2[0],
5738
5789
  unbindDocumentMouseMoveListener = _useEventListener2[1];
5739
5790
  var _useEventListener3 = useEventListener({
5740
5791
  type: 'mouseup',
5741
- listener: function listener() {
5742
- if (columnResizing.current) {
5743
- columnResizing.current = false;
5744
- onColumnResizeEnd();
5745
- }
5746
- }
5792
+ listener: columnResizeEndListener
5747
5793
  }),
5748
5794
  _useEventListener4 = _slicedToArray(_useEventListener3, 2),
5749
5795
  bindDocumentMouseUpListener = _useEventListener4[0],
5750
5796
  unbindDocumentMouseUpListener = _useEventListener4[1];
5797
+ var _useEventListener5 = useEventListener({
5798
+ type: 'touchmove',
5799
+ listener: columnResizeStartListener
5800
+ }),
5801
+ _useEventListener6 = _slicedToArray(_useEventListener5, 2),
5802
+ bindDocumentTouchMoveListener = _useEventListener6[0],
5803
+ unbindDocumentTouchMoveListener = _useEventListener6[1];
5804
+ var _useEventListener7 = useEventListener({
5805
+ type: 'touchend',
5806
+ listener: columnResizeEndListener
5807
+ }),
5808
+ _useEventListener8 = _slicedToArray(_useEventListener7, 2),
5809
+ bindDocumentTouchEndListener = _useEventListener8[0],
5810
+ unbindDocumentTouchEndListener = _useEventListener8[1];
5751
5811
  var isCustomStateStorage = function isCustomStateStorage() {
5752
5812
  return props.stateStorage === 'custom';
5753
5813
  };
@@ -5801,18 +5861,6 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
5801
5861
  }
5802
5862
  return columns;
5803
5863
  };
5804
- var getStorage = function getStorage() {
5805
- switch (props.stateStorage) {
5806
- case 'local':
5807
- return window.localStorage;
5808
- case 'session':
5809
- return window.sessionStorage;
5810
- case 'custom':
5811
- return null;
5812
- default:
5813
- throw new Error(props.stateStorage + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
5814
- }
5815
- };
5816
5864
  var saveState = function saveState() {
5817
5865
  var state = {};
5818
5866
  if (props.paginator) {
@@ -5848,7 +5896,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
5848
5896
  props.customSaveState(state);
5849
5897
  }
5850
5898
  } else {
5851
- var storage = getStorage();
5899
+ var storage = getStorage(props.stateStorage);
5852
5900
  if (ObjectUtils.isNotEmpty(state)) {
5853
5901
  storage.setItem(props.stateKey, JSON.stringify(state));
5854
5902
  }
@@ -5858,7 +5906,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
5858
5906
  }
5859
5907
  };
5860
5908
  var clearState = function clearState() {
5861
- var storage = getStorage();
5909
+ var storage = getStorage(props.stateStorage);
5862
5910
  if (storage && props.stateKey) {
5863
5911
  storage.removeItem(props.stateKey);
5864
5912
  }
@@ -5870,7 +5918,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
5870
5918
  restoredState = props.customRestoreState();
5871
5919
  }
5872
5920
  } else {
5873
- var storage = getStorage();
5921
+ var storage = getStorage(props.stateStorage);
5874
5922
  var stateString = storage.getItem(props.stateKey);
5875
5923
  var dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
5876
5924
  var reviver = function reviver(key, value) {
@@ -6095,7 +6143,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6095
6143
  resizeColumn.current = column;
6096
6144
  resizeColumnElement.current = event.currentTarget.parentElement;
6097
6145
  columnResizing.current = true;
6098
- lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
6146
+ lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
6099
6147
  bindColumnResizeEvents();
6100
6148
  };
6101
6149
  var onColumnResize = function onColumnResize(event) {
@@ -6103,7 +6151,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6103
6151
  elementRef.current.setAttribute('data-p-unselectable-text', true);
6104
6152
  resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
6105
6153
  resizeHelperRef.current.style.top = 0 + 'px';
6106
- resizeHelperRef.current.style.left = event.pageX - containerLeft + elementRef.current.scrollLeft + 'px';
6154
+ resizeHelperRef.current.style.left = (event.type === 'touchmove' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft + 'px';
6107
6155
  resizeHelperRef.current.style.display = 'block';
6108
6156
  };
6109
6157
  var onColumnResizeEnd = function onColumnResizeEnd() {
@@ -6174,10 +6222,14 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6174
6222
  var bindColumnResizeEvents = function bindColumnResizeEvents() {
6175
6223
  bindDocumentMouseMoveListener();
6176
6224
  bindDocumentMouseUpListener();
6225
+ bindDocumentTouchMoveListener();
6226
+ bindDocumentTouchEndListener();
6177
6227
  };
6178
6228
  var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
6179
6229
  unbindDocumentMouseMoveListener();
6180
6230
  unbindDocumentMouseUpListener();
6231
+ unbindDocumentTouchMoveListener();
6232
+ unbindDocumentTouchEndListener();
6181
6233
  };
6182
6234
  var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
6183
6235
  DomHandler.clearSelection();
@@ -6243,7 +6295,6 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6243
6295
  draggedColumnElement.current = findParentHeader(event.currentTarget);
6244
6296
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
6245
6297
  };
6246
-
6247
6298
  var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
6248
6299
  var event = e.originalEvent,
6249
6300
  column = e.column;
@@ -7008,7 +7059,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7008
7059
  className: ptCallbacks.cx('loadingIcon')
7009
7060
  }, ptCallbacks.ptm('loadingIcon'));
7010
7061
  var icon = props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, _extends({}, loadingIconProps, {
7011
- spin: true
7062
+ spin: true,
7063
+ unstyled: props.unstyled
7012
7064
  }));
7013
7065
  var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, loadingIconProps), {
7014
7066
  props: props
@@ -7175,7 +7227,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7175
7227
  value: props.frozenValue,
7176
7228
  virtualScrollerOptions: options,
7177
7229
  ptCallbacks: ptCallbacks,
7178
- metaData: metaData
7230
+ metaData: metaData,
7231
+ unstyled: props.unstyled
7179
7232
  });
7180
7233
  var body = /*#__PURE__*/React.createElement(TableBody, {
7181
7234
  hostName: "DataTable",
@@ -7258,7 +7311,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7258
7311
  virtualScrollerContentRef: contentRef,
7259
7312
  virtualScrollerOptions: options,
7260
7313
  ptCallbacks: ptCallbacks,
7261
- metaData: metaData
7314
+ metaData: metaData,
7315
+ unstyled: props.unstyled
7262
7316
  });
7263
7317
  var spacerBody = ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React.createElement(TableBody, {
7264
7318
  hostName: "DataTable",
@@ -7267,7 +7321,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7267
7321
  },
7268
7322
  className: "p-datatable-virtualscroller-spacer",
7269
7323
  ptCallbacks: ptCallbacks,
7270
- metaData: metaData
7324
+ metaData: metaData,
7325
+ unstyled: props.unstyled
7271
7326
  }) : null;
7272
7327
  return /*#__PURE__*/React.createElement(React.Fragment, null, frozenBody, body, spacerBody);
7273
7328
  };
@@ -7279,7 +7334,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7279
7334
  columns: columns,
7280
7335
  footerColumnGroup: props.footerColumnGroup,
7281
7336
  ptCallbacks: ptCallbacks,
7282
- metaData: metaData
7337
+ metaData: metaData,
7338
+ unstyled: props.unstyled
7283
7339
  });
7284
7340
  };
7285
7341
  var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
@@ -7314,6 +7370,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7314
7370
  parent: metaData
7315
7371
  },
7316
7372
  showSpacer: false,
7373
+ unstyled: props.unstyled,
7317
7374
  contentTemplate: function contentTemplate(options) {
7318
7375
  var ref = function ref(el) {
7319
7376
  tableRef.current = el;