primereact 10.6.6 → 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 (300) hide show
  1. package/button/button.cjs.js +1 -0
  2. package/button/button.cjs.min.js +1 -1
  3. package/button/button.esm.js +1 -0
  4. package/button/button.esm.min.js +1 -1
  5. package/button/button.js +1 -0
  6. package/button/button.min.js +1 -1
  7. package/calendar/calendar.cjs.js +81 -45
  8. package/calendar/calendar.cjs.min.js +1 -1
  9. package/calendar/calendar.d.ts +8 -10
  10. package/calendar/calendar.esm.js +81 -45
  11. package/calendar/calendar.esm.min.js +1 -1
  12. package/calendar/calendar.js +81 -45
  13. package/calendar/calendar.min.js +1 -1
  14. package/checkbox/checkbox.cjs.js +64 -0
  15. package/checkbox/checkbox.cjs.min.js +1 -1
  16. package/checkbox/checkbox.d.ts +12 -0
  17. package/checkbox/checkbox.esm.js +64 -0
  18. package/checkbox/checkbox.esm.min.js +1 -1
  19. package/checkbox/checkbox.js +64 -0
  20. package/checkbox/checkbox.min.js +1 -1
  21. package/colorpicker/colorpicker.cjs.js +18 -4
  22. package/colorpicker/colorpicker.cjs.min.js +1 -1
  23. package/colorpicker/colorpicker.esm.js +19 -5
  24. package/colorpicker/colorpicker.esm.min.js +1 -1
  25. package/colorpicker/colorpicker.js +18 -4
  26. package/colorpicker/colorpicker.min.js +1 -1
  27. package/column/column.d.ts +30 -14
  28. package/core/core.js +122 -31
  29. package/core/core.min.js +9 -9
  30. package/csstransition/csstransition.cjs.js +0 -6
  31. package/csstransition/csstransition.esm.js +0 -6
  32. package/csstransition/csstransition.js +0 -6
  33. package/datatable/datatable.cjs.js +119 -72
  34. package/datatable/datatable.cjs.min.js +1 -1
  35. package/datatable/datatable.d.ts +1 -1
  36. package/datatable/datatable.esm.js +119 -72
  37. package/datatable/datatable.esm.min.js +1 -1
  38. package/datatable/datatable.js +119 -72
  39. package/datatable/datatable.min.js +1 -1
  40. package/dialog/dialog.cjs.js +15 -2
  41. package/dialog/dialog.cjs.min.js +1 -1
  42. package/dialog/dialog.esm.js +15 -2
  43. package/dialog/dialog.esm.min.js +1 -1
  44. package/dialog/dialog.js +15 -2
  45. package/dialog/dialog.min.js +1 -1
  46. package/dropdown/dropdown.cjs.js +8 -6
  47. package/dropdown/dropdown.cjs.min.js +1 -1
  48. package/dropdown/dropdown.esm.js +8 -6
  49. package/dropdown/dropdown.esm.min.js +1 -1
  50. package/dropdown/dropdown.js +8 -6
  51. package/dropdown/dropdown.min.js +1 -1
  52. package/focustrap/focustrap.cjs.js +12 -1
  53. package/focustrap/focustrap.cjs.min.js +1 -1
  54. package/focustrap/focustrap.esm.js +12 -1
  55. package/focustrap/focustrap.esm.min.js +1 -1
  56. package/focustrap/focustrap.js +12 -1
  57. package/focustrap/focustrap.min.js +1 -1
  58. package/hooks/hooks.cjs.js +2 -1
  59. package/hooks/hooks.cjs.min.js +1 -1
  60. package/hooks/hooks.esm.js +2 -1
  61. package/hooks/hooks.esm.min.js +1 -1
  62. package/hooks/hooks.js +2 -1
  63. package/hooks/hooks.min.js +1 -1
  64. package/inputnumber/inputnumber.cjs.js +4 -3
  65. package/inputnumber/inputnumber.cjs.min.js +1 -1
  66. package/inputnumber/inputnumber.esm.js +4 -3
  67. package/inputnumber/inputnumber.esm.min.js +1 -1
  68. package/inputnumber/inputnumber.js +4 -3
  69. package/inputnumber/inputnumber.min.js +1 -1
  70. package/inputotp/inputotp.cjs.js +1 -2
  71. package/inputotp/inputotp.cjs.min.js +1 -1
  72. package/inputotp/inputotp.esm.js +1 -2
  73. package/inputotp/inputotp.esm.min.js +1 -1
  74. package/inputotp/inputotp.js +1 -2
  75. package/inputotp/inputotp.min.js +1 -1
  76. package/inputtext/inputtext.d.ts +1 -1
  77. package/listbox/listbox.cjs.js +23 -35
  78. package/listbox/listbox.cjs.min.js +1 -1
  79. package/listbox/listbox.esm.js +23 -35
  80. package/listbox/listbox.esm.min.js +1 -1
  81. package/listbox/listbox.js +23 -35
  82. package/listbox/listbox.min.js +1 -1
  83. package/menubar/menubar.d.ts +9 -0
  84. package/metergroup/metergroup.cjs.js +3 -3
  85. package/metergroup/metergroup.cjs.min.js +1 -1
  86. package/metergroup/metergroup.d.ts +3 -10
  87. package/metergroup/metergroup.esm.js +3 -3
  88. package/metergroup/metergroup.esm.min.js +1 -1
  89. package/metergroup/metergroup.js +3 -3
  90. package/metergroup/metergroup.min.js +1 -1
  91. package/multiselect/multiselect.cjs.js +9 -0
  92. package/multiselect/multiselect.cjs.min.js +1 -1
  93. package/multiselect/multiselect.esm.js +9 -0
  94. package/multiselect/multiselect.esm.min.js +1 -1
  95. package/multiselect/multiselect.js +9 -0
  96. package/multiselect/multiselect.min.js +1 -1
  97. package/multistatecheckbox/multistatecheckbox.cjs.js +9 -0
  98. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  99. package/multistatecheckbox/multistatecheckbox.esm.js +9 -0
  100. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  101. package/multistatecheckbox/multistatecheckbox.js +9 -0
  102. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  103. package/organizationchart/organizationchart.cjs.js +0 -1
  104. package/organizationchart/organizationchart.esm.js +0 -1
  105. package/organizationchart/organizationchart.js +0 -1
  106. package/package.json +4 -4
  107. package/passthrough/tailwind/index.cjs.js +10 -81
  108. package/passthrough/tailwind/index.cjs.min.js +1 -1
  109. package/passthrough/tailwind/index.esm.js +10 -81
  110. package/passthrough/tailwind/index.esm.min.js +1 -1
  111. package/passthrough/tailwind/index.js +10 -81
  112. package/passthrough/tailwind/index.min.js +1 -1
  113. package/primereact.all.cjs.js +281 -195
  114. package/primereact.all.cjs.min.js +1 -1
  115. package/primereact.all.esm.js +281 -195
  116. package/primereact.all.esm.min.js +1 -1
  117. package/primereact.all.js +281 -195
  118. package/primereact.all.min.js +1 -1
  119. package/radiobutton/radiobutton.cjs.js +13 -10
  120. package/radiobutton/radiobutton.cjs.min.js +1 -1
  121. package/radiobutton/radiobutton.esm.js +13 -10
  122. package/radiobutton/radiobutton.esm.min.js +1 -1
  123. package/radiobutton/radiobutton.js +13 -10
  124. package/radiobutton/radiobutton.min.js +1 -1
  125. package/resources/images/line.gif +0 -0
  126. package/resources/themes/lara-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
  127. package/resources/themes/lara-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
  128. package/resources/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
  129. package/resources/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
  130. package/resources/themes/lara-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
  131. package/resources/themes/lara-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
  132. package/resources/themes/lara-dark-green/fonts/Inter-italic.var.woff2 +0 -0
  133. package/resources/themes/lara-dark-green/fonts/Inter-roman.var.woff2 +0 -0
  134. package/resources/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
  135. package/resources/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
  136. package/resources/themes/lara-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
  137. package/resources/themes/lara-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
  138. package/resources/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
  139. package/resources/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
  140. package/resources/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
  141. package/resources/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
  142. package/resources/themes/lara-light-amber/fonts/Inter-italic.var.woff2 +0 -0
  143. package/resources/themes/lara-light-amber/fonts/Inter-roman.var.woff2 +0 -0
  144. package/resources/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
  145. package/resources/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
  146. package/resources/themes/lara-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
  147. package/resources/themes/lara-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
  148. package/resources/themes/lara-light-green/fonts/Inter-italic.var.woff2 +0 -0
  149. package/resources/themes/lara-light-green/fonts/Inter-roman.var.woff2 +0 -0
  150. package/resources/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
  151. package/resources/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
  152. package/resources/themes/lara-light-pink/fonts/Inter-italic.var.woff2 +0 -0
  153. package/resources/themes/lara-light-pink/fonts/Inter-roman.var.woff2 +0 -0
  154. package/resources/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
  155. package/resources/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
  156. package/resources/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
  157. package/resources/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
  158. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  159. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  160. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  161. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  162. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  163. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  164. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  165. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  166. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  167. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  168. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  169. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  170. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  171. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  172. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  173. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  174. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  175. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  176. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  177. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  178. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  179. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  180. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  181. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  182. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  183. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  184. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  185. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  186. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  187. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  188. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  189. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  190. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  191. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  192. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  193. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  194. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  195. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  196. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  197. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  198. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  199. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  200. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  201. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  202. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  203. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  204. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  205. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  206. package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
  207. package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
  208. package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
  209. package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
  210. package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
  211. package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
  212. package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
  213. package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
  214. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  215. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  216. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  217. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  218. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  219. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  220. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  221. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  222. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  223. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  224. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  225. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  226. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
  227. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
  228. package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
  229. package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
  230. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
  231. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
  232. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
  233. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
  234. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
  235. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
  236. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  237. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  238. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  239. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  240. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  241. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  242. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  243. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  244. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  245. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  246. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  247. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  248. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  249. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  250. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  251. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  252. package/sidebar/sidebar.d.ts +4 -0
  253. package/splitbutton/splitbutton.cjs.js +0 -1
  254. package/splitbutton/splitbutton.cjs.min.js +1 -1
  255. package/splitbutton/splitbutton.esm.js +0 -1
  256. package/splitbutton/splitbutton.esm.min.js +1 -1
  257. package/splitbutton/splitbutton.js +0 -1
  258. package/splitbutton/splitbutton.min.js +1 -1
  259. package/tabview/tabview.cjs.js +0 -1
  260. package/tabview/tabview.d.ts +1 -1
  261. package/tabview/tabview.esm.js +0 -1
  262. package/tabview/tabview.js +0 -1
  263. package/tieredmenu/tieredmenu.cjs.js +0 -1
  264. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  265. package/tieredmenu/tieredmenu.esm.js +0 -1
  266. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  267. package/tieredmenu/tieredmenu.js +0 -1
  268. package/tieredmenu/tieredmenu.min.js +1 -1
  269. package/tooltip/tooltip.cjs.js +10 -1
  270. package/tooltip/tooltip.cjs.min.js +1 -1
  271. package/tooltip/tooltip.esm.js +11 -2
  272. package/tooltip/tooltip.esm.min.js +1 -1
  273. package/tooltip/tooltip.js +10 -1
  274. package/tooltip/tooltip.min.js +1 -1
  275. package/tooltip/tooltipoptions.d.ts +5 -0
  276. package/tree/tree.cjs.js +15 -6
  277. package/tree/tree.cjs.min.js +1 -1
  278. package/tree/tree.esm.js +15 -6
  279. package/tree/tree.esm.min.js +1 -1
  280. package/tree/tree.js +15 -6
  281. package/tree/tree.min.js +1 -1
  282. package/treeselect/treeselect.cjs.js +0 -1
  283. package/treeselect/treeselect.cjs.min.js +1 -1
  284. package/treeselect/treeselect.esm.js +0 -1
  285. package/treeselect/treeselect.esm.min.js +1 -1
  286. package/treeselect/treeselect.js +0 -1
  287. package/treeselect/treeselect.min.js +1 -1
  288. package/treetable/treetable.cjs.js +9 -2
  289. package/treetable/treetable.cjs.min.js +1 -1
  290. package/treetable/treetable.esm.js +9 -2
  291. package/treetable/treetable.esm.min.js +1 -1
  292. package/treetable/treetable.js +9 -2
  293. package/treetable/treetable.min.js +1 -1
  294. package/utils/utils.cjs.js +3 -6
  295. package/utils/utils.cjs.min.js +1 -1
  296. package/utils/utils.esm.js +3 -6
  297. package/utils/utils.esm.min.js +1 -1
  298. package/utils/utils.js +3 -6
  299. package/utils/utils.min.js +1 -1
  300. package/web-types.json +12 -3
@@ -96,32 +96,26 @@ var CSSTransition = /*#__PURE__*/React__namespace.forwardRef(function (inProps,
96
96
  props.onEnter && props.onEnter(node, isAppearing); // component
97
97
  props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
98
98
  };
99
-
100
99
  var onEntering = function onEntering(node, isAppearing) {
101
100
  props.onEntering && props.onEntering(node, isAppearing); // component
102
101
  props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
103
102
  };
104
-
105
103
  var onEntered = function onEntered(node, isAppearing) {
106
104
  props.onEntered && props.onEntered(node, isAppearing); // component
107
105
  props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
108
106
  };
109
-
110
107
  var onExit = function onExit(node) {
111
108
  props.onExit && props.onExit(node); // component
112
109
  props.options && props.options.onExit && props.options.onExit(node); // user option
113
110
  };
114
-
115
111
  var onExiting = function onExiting(node) {
116
112
  props.onExiting && props.onExiting(node); // component
117
113
  props.options && props.options.onExiting && props.options.onExiting(node); // user option
118
114
  };
119
-
120
115
  var onExited = function onExited(node) {
121
116
  props.onExited && props.onExited(node); // component
122
117
  props.options && props.options.onExited && props.options.onExited(node); // user option
123
118
  };
124
-
125
119
  hooks.useUpdateEffect(function () {
126
120
  if (disabled) {
127
121
  // no animation
@@ -69,32 +69,26 @@ var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
69
69
  props.onEnter && props.onEnter(node, isAppearing); // component
70
70
  props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
71
71
  };
72
-
73
72
  var onEntering = function onEntering(node, isAppearing) {
74
73
  props.onEntering && props.onEntering(node, isAppearing); // component
75
74
  props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
76
75
  };
77
-
78
76
  var onEntered = function onEntered(node, isAppearing) {
79
77
  props.onEntered && props.onEntered(node, isAppearing); // component
80
78
  props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
81
79
  };
82
-
83
80
  var onExit = function onExit(node) {
84
81
  props.onExit && props.onExit(node); // component
85
82
  props.options && props.options.onExit && props.options.onExit(node); // user option
86
83
  };
87
-
88
84
  var onExiting = function onExiting(node) {
89
85
  props.onExiting && props.onExiting(node); // component
90
86
  props.options && props.options.onExiting && props.options.onExiting(node); // user option
91
87
  };
92
-
93
88
  var onExited = function onExited(node) {
94
89
  props.onExited && props.onExited(node); // component
95
90
  props.options && props.options.onExited && props.options.onExited(node); // user option
96
91
  };
97
-
98
92
  useUpdateEffect(function () {
99
93
  if (disabled) {
100
94
  // no animation
@@ -89,32 +89,26 @@ this.primereact.csstransition = (function (exports, React, reactTransitionGroup,
89
89
  props.onEnter && props.onEnter(node, isAppearing); // component
90
90
  props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
91
91
  };
92
-
93
92
  var onEntering = function onEntering(node, isAppearing) {
94
93
  props.onEntering && props.onEntering(node, isAppearing); // component
95
94
  props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
96
95
  };
97
-
98
96
  var onEntered = function onEntered(node, isAppearing) {
99
97
  props.onEntered && props.onEntered(node, isAppearing); // component
100
98
  props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
101
99
  };
102
-
103
100
  var onExit = function onExit(node) {
104
101
  props.onExit && props.onExit(node); // component
105
102
  props.options && props.options.onExit && props.options.onExit(node); // user option
106
103
  };
107
-
108
104
  var onExiting = function onExiting(node) {
109
105
  props.onExiting && props.onExiting(node); // component
110
106
  props.options && props.options.onExiting && props.options.onExiting(node); // user option
111
107
  };
112
-
113
108
  var onExited = function onExited(node) {
114
109
  props.onExited && props.onExited(node); // component
115
110
  props.options && props.options.onExited && props.options.onExited(node); // user option
116
111
  };
117
-
118
112
  hooks.useUpdateEffect(function () {
119
113
  if (disabled) {
120
114
  // no animation
@@ -186,6 +186,19 @@ function _slicedToArray(arr, i) {
186
186
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
187
187
  }
188
188
 
189
+ var getStorage = function getStorage(stateStorageProp) {
190
+ switch (stateStorageProp) {
191
+ case 'local':
192
+ return window.localStorage;
193
+ case 'session':
194
+ return window.sessionStorage;
195
+ case 'custom':
196
+ return null;
197
+ default:
198
+ throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
199
+ }
200
+ };
201
+
189
202
  var ColumnBase = componentbase.ComponentBase.extend({
190
203
  defaultProps: {
191
204
  __TYPE: 'Column',
@@ -720,8 +733,15 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
720
733
  var mergeProps = hooks.useMergeProps();
721
734
  var context = React__namespace.useContext(PrimeReact$1.PrimeReactContext);
722
735
  var props = CheckboxBase.getProps(inProps, context);
736
+ var _React$useState = React__namespace.useState(false),
737
+ _React$useState2 = _slicedToArray(_React$useState, 2),
738
+ focusedState = _React$useState2[0],
739
+ setFocusedState = _React$useState2[1];
723
740
  var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
724
741
  props: props,
742
+ state: {
743
+ focused: focusedState
744
+ },
725
745
  context: {
726
746
  checked: props.checked === props.trueValue,
727
747
  disabled: props.disabled
@@ -775,10 +795,12 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
775
795
  };
776
796
  var _onFocus = function onFocus() {
777
797
  var _props$onFocus;
798
+ setFocusedState(true);
778
799
  props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
779
800
  };
780
801
  var _onBlur = function onBlur() {
781
802
  var _props$onBlur;
803
+ setFocusedState(false);
782
804
  props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
783
805
  };
784
806
  React__namespace.useImperativeHandle(ref, function () {
@@ -941,9 +963,9 @@ var classes = {
941
963
  'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
942
964
  });
943
965
  },
944
- box: 'p-radiobutton-box',
945
- input: 'p-radiobutton-input',
946
- icon: 'p-radiobutton-icon'
966
+ radiobuttonbox: 'p-radiobutton-box',
967
+ radiobuttoninput: 'p-radiobutton-input',
968
+ radiobuttonicon: 'p-radiobutton-icon'
947
969
  };
948
970
  var RadioButtonBase = componentbase.ComponentBase.extend({
949
971
  defaultProps: {
@@ -1082,7 +1104,10 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
1082
1104
  })),
1083
1105
  style: props.style,
1084
1106
  'data-p-checked': props.checked
1085
- }, RadioButtonBase.getOtherProps(props), ptm('root'));
1107
+ }, otherProps, ptm('root'));
1108
+ delete rootProps.input;
1109
+ delete rootProps.box;
1110
+ delete rootProps.icon;
1086
1111
  var createInputElement = function createInputElement() {
1087
1112
  var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
1088
1113
  var inputProps = mergeProps(_objectSpread$b({
@@ -1097,19 +1122,19 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
1097
1122
  readOnly: props.readonly,
1098
1123
  required: props.required,
1099
1124
  tabIndex: props.tabIndex,
1100
- className: cx('input')
1101
- }, ariaProps), ptm('input'));
1125
+ className: cx('radiobuttoninput')
1126
+ }, ariaProps), inProps.input, ptm('radiobuttoninput'));
1102
1127
  return /*#__PURE__*/React__namespace.createElement("input", _extends({
1103
1128
  ref: inputRef
1104
1129
  }, inputProps));
1105
1130
  };
1106
1131
  var createBoxElement = function createBoxElement() {
1107
1132
  var boxProps = mergeProps({
1108
- className: cx('box')
1109
- }, ptm('box'));
1133
+ className: cx('radiobuttonbox')
1134
+ }, inProps.box, ptm('radiobuttonbox'));
1110
1135
  var iconProps = mergeProps({
1111
- className: cx('icon')
1112
- }, ptm('icon'));
1136
+ className: cx('radiobuttonicon')
1137
+ }, inProps.icon, ptm('radiobuttonicon'));
1113
1138
  return /*#__PURE__*/React__namespace.createElement("div", boxProps, /*#__PURE__*/React__namespace.createElement("div", iconProps));
1114
1139
  };
1115
1140
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", _extends({
@@ -1157,7 +1182,11 @@ var RowRadioButton = /*#__PURE__*/React__namespace.memo(function (props) {
1157
1182
  checked: props.checked,
1158
1183
  disabled: props.disabled,
1159
1184
  name: "".concat(props.tableSelector, "_dt_radio"),
1160
- onChange: onChange
1185
+ onChange: onChange,
1186
+ input: getColumnPTOptions('radiobuttoninput'),
1187
+ box: getColumnPTOptions('radiobuttonbox'),
1188
+ icon: getColumnPTOptions('radiobuttonicon'),
1189
+ unstyled: props.unstyled
1161
1190
  }, getColumnPTOptions('radiobutton'));
1162
1191
  return /*#__PURE__*/React__namespace.createElement(RadioButton, radioButtonProps);
1163
1192
  });
@@ -1183,7 +1212,6 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
1183
1212
  var keyHelperRef = React__namespace.useRef(null);
1184
1213
  var overlayEventListener = React__namespace.useRef(null);
1185
1214
  var selfClick = React__namespace.useRef(false);
1186
- var tabindexTimeout = React__namespace.useRef(null);
1187
1215
  var initFocusTimeout = React__namespace.useRef(null);
1188
1216
  var editingRowDataStateRef = React__namespace.useRef(null);
1189
1217
  var _props$ptCallbacks = props.ptCallbacks,
@@ -1220,7 +1248,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
1220
1248
  var field = getColumnProp('field') || "field_".concat(props.index);
1221
1249
  var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
1222
1250
  var isEditable = function isEditable() {
1223
- return getColumnProp('editor');
1251
+ return utils.ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
1224
1252
  };
1225
1253
  var cellEditValidateOnClose = function cellEditValidateOnClose() {
1226
1254
  return getColumnProp('cellEditValidateOnClose');
@@ -1364,14 +1392,11 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
1364
1392
  }
1365
1393
  };
1366
1394
  var focusOnElement = function focusOnElement() {
1367
- clearTimeout(tabindexTimeout.current);
1368
- tabindexTimeout.current = setTimeout(function () {
1369
- if (editingState) {
1370
- var focusableEl = props.editMode === 'cell' ? utils.DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : utils.DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
1371
- focusableEl && focusableEl.focus();
1372
- }
1373
- keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
1374
- }, 1);
1395
+ if (editingState) {
1396
+ var focusableEl = props.editMode === 'cell' ? utils.DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : utils.DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
1397
+ focusableEl && focusableEl.focus();
1398
+ }
1399
+ keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
1375
1400
  };
1376
1401
  var focusOnInit = function focusOnInit() {
1377
1402
  clearTimeout(initFocusTimeout.current);
@@ -1413,6 +1438,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
1413
1438
  if (currentData) {
1414
1439
  utils.ObjectUtils.mutateFieldData(currentData, field, val);
1415
1440
  }
1441
+ editingRowDataStateRef.current = editingRowData;
1416
1442
  };
1417
1443
  var _onClick = function onClick(event) {
1418
1444
  var params = getCellCallbackParams(event);
@@ -1605,14 +1631,11 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
1605
1631
  }, [props.editMode, props.editing, editingState]);
1606
1632
  hooks.useUpdateEffect(function () {
1607
1633
  if (props.editMode === 'cell' || props.editMode === 'row') {
1608
- setEditingRowDataState(getEditingRowData());
1634
+ var editingRowData = getEditingRowData();
1635
+ setEditingRowDataState(editingRowData);
1636
+ editingRowDataStateRef.current = editingRowData;
1609
1637
  }
1610
1638
  }, [props.editingMeta]);
1611
- React__namespace.useEffect(function () {
1612
- if (editingRowDataState) {
1613
- editingRowDataStateRef.current = editingRowDataState;
1614
- }
1615
- }, [editingRowDataState]);
1616
1639
  React__namespace.useEffect(function () {
1617
1640
  if (props.editMode === 'cell' || props.editMode === 'row') {
1618
1641
  var callbackParams = getCellCallbackParams();
@@ -1687,7 +1710,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
1687
1710
  if (showSelection) {
1688
1711
  var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
1689
1712
  var ariaLabelText = utils.ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
1690
- label = "".concat(props.selected ? PrimeReact$1.ariaLabel('unselectLabel') : PrimeReact$1.ariaLabel('selectLabel'), " ").concat(ariaLabelText);
1713
+ label = "".concat(props.selected ? PrimeReact$1.ariaLabel('unselectRow') : PrimeReact$1.ariaLabel('selectRow'), " ").concat(ariaLabelText);
1691
1714
  }
1692
1715
  content = showSelection && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React__namespace.createElement(RowRadioButton, {
1693
1716
  hostName: props.hostName,
@@ -1702,7 +1725,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
1702
1725
  tableSelector: props.tableSelector,
1703
1726
  ariaLabel: label,
1704
1727
  ptCallbacks: props.ptCallbacks,
1705
- metaData: props.metaData
1728
+ metaData: props.metaData,
1729
+ unstyled: props.unstyled
1706
1730
  }), selectionMode === 'multiple' && /*#__PURE__*/React__namespace.createElement(RowCheckbox, {
1707
1731
  hostName: props.hostName,
1708
1732
  column: props.column,
@@ -1716,7 +1740,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
1716
1740
  ariaLabel: label,
1717
1741
  checkIcon: props.checkIcon,
1718
1742
  ptCallbacks: props.ptCallbacks,
1719
- metaData: props.metaData
1743
+ metaData: props.metaData,
1744
+ unstyled: props.unstyled
1720
1745
  }));
1721
1746
  } else if (rowReorder) {
1722
1747
  var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
@@ -1879,7 +1904,6 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
1879
1904
  }, editorKeyHelperProps), /*#__PURE__*/React__namespace.createElement("span", editorKeyHelperLabelProps));
1880
1905
  /* eslint-enable */
1881
1906
  }
1882
-
1883
1907
  var bodyCellProps = mergeProps({
1884
1908
  style: style,
1885
1909
  className: utils.classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
@@ -2363,7 +2387,8 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
2363
2387
  value: props.value,
2364
2388
  virtualScrollerOptions: props.virtualScrollerOptions,
2365
2389
  ptCallbacks: props.ptCallbacks,
2366
- metaData: props.metaData
2390
+ metaData: props.metaData,
2391
+ unstyled: props.unstyled
2367
2392
  });
2368
2393
  }
2369
2394
  return null;
@@ -2442,7 +2467,6 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
2442
2467
  }, getBodyRowPTOptions('bodyRow'), {
2443
2468
  className: utils.classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
2444
2469
  });
2445
-
2446
2470
  return /*#__PURE__*/React__namespace.createElement("tr", rowProps, content);
2447
2471
  });
2448
2472
  BodyRow.displayName = 'BodyRow';
@@ -3150,7 +3174,6 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
3150
3174
  event.dataTransfer.setData('text', 'b'); // For firefox
3151
3175
  }
3152
3176
  };
3153
-
3154
3177
  var onRowDragOver = function onRowDragOver(e) {
3155
3178
  var event = e.originalEvent,
3156
3179
  index = e.index;
@@ -3372,7 +3395,8 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
3372
3395
  expandedRowIcon: props.expandedRowIcon,
3373
3396
  collapsedRowIcon: props.collapsedRowIcon,
3374
3397
  ptCallbacks: props.ptCallbacks,
3375
- metaData: props.metaData
3398
+ metaData: props.metaData,
3399
+ unstyled: props.unstyled
3376
3400
  });
3377
3401
  var options = {
3378
3402
  index: rowIndex,
@@ -3477,7 +3501,8 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
3477
3501
  value: props.value,
3478
3502
  virtualScrollerOptions: props.virtualScrollerOptions,
3479
3503
  ptCallbacks: props.ptCallbacks,
3480
- metaData: props.metaData
3504
+ metaData: props.metaData,
3505
+ unstyled: props.unstyled
3481
3506
  });
3482
3507
  }
3483
3508
  };
@@ -4074,6 +4099,15 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo( /*#__PURE__*/React_
4074
4099
  var getTarget = function getTarget() {
4075
4100
  return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
4076
4101
  };
4102
+
4103
+ /**
4104
+ * This method sets the auto focus on the first focusable element within the target element.
4105
+ * It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
4106
+ * it then tries to find a focusable element using the firstFocusableSelector.
4107
+ * If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
4108
+ *
4109
+ * @param {HTMLElement} target - The target element within which to find a focusable element.
4110
+ */
4077
4111
  var setAutoFocus = function setAutoFocus(target) {
4078
4112
  var _ref = props || {},
4079
4113
  _ref$autoFocusSelecto = _ref.autoFocusSelector,
@@ -4082,7 +4116,9 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo( /*#__PURE__*/React_
4082
4116
  firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
4083
4117
  _ref$autoFocus = _ref.autoFocus,
4084
4118
  autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
4085
- var focusableElement = utils.DomHandler.getFirstFocusableElement(target, "[autofocus]".concat(getComputedSelector(autoFocusSelector)));
4119
+ var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
4120
+ var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
4121
+ var focusableElement = utils.DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
4086
4122
  autoFocus && !focusableElement && (focusableElement = utils.DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
4087
4123
  utils.DomHandler.focus(focusableElement);
4088
4124
  };
@@ -5198,7 +5234,7 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
5198
5234
  column: props.column
5199
5235
  });
5200
5236
  };
5201
- var onResizerMouseDown = function onResizerMouseDown(event) {
5237
+ var onResizeStart = function onResizeStart(event) {
5202
5238
  props.onColumnResizeStart({
5203
5239
  originalEvent: event,
5204
5240
  column: props.column
@@ -5235,7 +5271,10 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
5235
5271
  var columnResizerProps = mergeProps({
5236
5272
  className: cx('columnResizer'),
5237
5273
  onMouseDown: function onMouseDown(e) {
5238
- return onResizerMouseDown(e);
5274
+ return onResizeStart(e);
5275
+ },
5276
+ onTouchStart: function onTouchStart(e) {
5277
+ return onResizeStart(e);
5239
5278
  },
5240
5279
  onClick: function onClick(e) {
5241
5280
  return onResizerClick(e);
@@ -5295,7 +5334,8 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
5295
5334
  onChange: props.onColumnCheckboxChange,
5296
5335
  disabled: props.empty,
5297
5336
  ptCallbacks: ptCallbacks,
5298
- metaData: parentMetaData
5337
+ metaData: parentMetaData,
5338
+ unstyled: props.unstyled
5299
5339
  });
5300
5340
  }
5301
5341
  return null;
@@ -5653,19 +5693,6 @@ var TableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
5653
5693
  });
5654
5694
  TableHeader.displayName = 'TableHeader';
5655
5695
 
5656
- var getStorage = function getStorage(stateStorageProp) {
5657
- switch (stateStorageProp) {
5658
- case 'local':
5659
- return window.localStorage;
5660
- case 'session':
5661
- return window.sessionStorage;
5662
- case 'custom':
5663
- return null;
5664
- default:
5665
- throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
5666
- }
5667
- };
5668
-
5669
5696
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
5670
5697
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5671
5698
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
@@ -5774,29 +5801,40 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
5774
5801
  setRowsState(props.rows);
5775
5802
  setD_rowsState(props.rows);
5776
5803
  }
5804
+ var columnResizeStartListener = function columnResizeStartListener(event) {
5805
+ return columnResizing.current && onColumnResize(event);
5806
+ };
5807
+ var columnResizeEndListener = function columnResizeEndListener() {
5808
+ return columnResizing.current && (columnResizing.current = false, onColumnResizeEnd());
5809
+ };
5777
5810
  var _useEventListener = hooks.useEventListener({
5778
5811
  type: 'mousemove',
5779
- listener: function listener(event) {
5780
- if (columnResizing.current) {
5781
- onColumnResize(event);
5782
- }
5783
- }
5812
+ listener: columnResizeStartListener
5784
5813
  }),
5785
5814
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
5786
5815
  bindDocumentMouseMoveListener = _useEventListener2[0],
5787
5816
  unbindDocumentMouseMoveListener = _useEventListener2[1];
5788
5817
  var _useEventListener3 = hooks.useEventListener({
5789
5818
  type: 'mouseup',
5790
- listener: function listener() {
5791
- if (columnResizing.current) {
5792
- columnResizing.current = false;
5793
- onColumnResizeEnd();
5794
- }
5795
- }
5819
+ listener: columnResizeEndListener
5796
5820
  }),
5797
5821
  _useEventListener4 = _slicedToArray(_useEventListener3, 2),
5798
5822
  bindDocumentMouseUpListener = _useEventListener4[0],
5799
5823
  unbindDocumentMouseUpListener = _useEventListener4[1];
5824
+ var _useEventListener5 = hooks.useEventListener({
5825
+ type: 'touchmove',
5826
+ listener: columnResizeStartListener
5827
+ }),
5828
+ _useEventListener6 = _slicedToArray(_useEventListener5, 2),
5829
+ bindDocumentTouchMoveListener = _useEventListener6[0],
5830
+ unbindDocumentTouchMoveListener = _useEventListener6[1];
5831
+ var _useEventListener7 = hooks.useEventListener({
5832
+ type: 'touchend',
5833
+ listener: columnResizeEndListener
5834
+ }),
5835
+ _useEventListener8 = _slicedToArray(_useEventListener7, 2),
5836
+ bindDocumentTouchEndListener = _useEventListener8[0],
5837
+ unbindDocumentTouchEndListener = _useEventListener8[1];
5800
5838
  var isCustomStateStorage = function isCustomStateStorage() {
5801
5839
  return props.stateStorage === 'custom';
5802
5840
  };
@@ -6132,7 +6170,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
6132
6170
  resizeColumn.current = column;
6133
6171
  resizeColumnElement.current = event.currentTarget.parentElement;
6134
6172
  columnResizing.current = true;
6135
- lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
6173
+ lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
6136
6174
  bindColumnResizeEvents();
6137
6175
  };
6138
6176
  var onColumnResize = function onColumnResize(event) {
@@ -6140,7 +6178,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
6140
6178
  elementRef.current.setAttribute('data-p-unselectable-text', true);
6141
6179
  resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
6142
6180
  resizeHelperRef.current.style.top = 0 + 'px';
6143
- resizeHelperRef.current.style.left = event.pageX - containerLeft + elementRef.current.scrollLeft + 'px';
6181
+ resizeHelperRef.current.style.left = (event.type === 'touchmove' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft + 'px';
6144
6182
  resizeHelperRef.current.style.display = 'block';
6145
6183
  };
6146
6184
  var onColumnResizeEnd = function onColumnResizeEnd() {
@@ -6211,10 +6249,14 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
6211
6249
  var bindColumnResizeEvents = function bindColumnResizeEvents() {
6212
6250
  bindDocumentMouseMoveListener();
6213
6251
  bindDocumentMouseUpListener();
6252
+ bindDocumentTouchMoveListener();
6253
+ bindDocumentTouchEndListener();
6214
6254
  };
6215
6255
  var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
6216
6256
  unbindDocumentMouseMoveListener();
6217
6257
  unbindDocumentMouseUpListener();
6258
+ unbindDocumentTouchMoveListener();
6259
+ unbindDocumentTouchEndListener();
6218
6260
  };
6219
6261
  var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
6220
6262
  utils.DomHandler.clearSelection();
@@ -6280,7 +6322,6 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
6280
6322
  draggedColumnElement.current = findParentHeader(event.currentTarget);
6281
6323
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
6282
6324
  };
6283
-
6284
6325
  var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
6285
6326
  var event = e.originalEvent,
6286
6327
  column = e.column;
@@ -7045,7 +7086,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
7045
7086
  className: ptCallbacks.cx('loadingIcon')
7046
7087
  }, ptCallbacks.ptm('loadingIcon'));
7047
7088
  var icon = props.loadingIcon || /*#__PURE__*/React__namespace.createElement(spinner.SpinnerIcon, _extends({}, loadingIconProps, {
7048
- spin: true
7089
+ spin: true,
7090
+ unstyled: props.unstyled
7049
7091
  }));
7050
7092
  var loadingIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, loadingIconProps), {
7051
7093
  props: props
@@ -7212,7 +7254,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
7212
7254
  value: props.frozenValue,
7213
7255
  virtualScrollerOptions: options,
7214
7256
  ptCallbacks: ptCallbacks,
7215
- metaData: metaData
7257
+ metaData: metaData,
7258
+ unstyled: props.unstyled
7216
7259
  });
7217
7260
  var body = /*#__PURE__*/React__namespace.createElement(TableBody, {
7218
7261
  hostName: "DataTable",
@@ -7295,7 +7338,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
7295
7338
  virtualScrollerContentRef: contentRef,
7296
7339
  virtualScrollerOptions: options,
7297
7340
  ptCallbacks: ptCallbacks,
7298
- metaData: metaData
7341
+ metaData: metaData,
7342
+ unstyled: props.unstyled
7299
7343
  });
7300
7344
  var spacerBody = utils.ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React__namespace.createElement(TableBody, {
7301
7345
  hostName: "DataTable",
@@ -7304,7 +7348,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
7304
7348
  },
7305
7349
  className: "p-datatable-virtualscroller-spacer",
7306
7350
  ptCallbacks: ptCallbacks,
7307
- metaData: metaData
7351
+ metaData: metaData,
7352
+ unstyled: props.unstyled
7308
7353
  }) : null;
7309
7354
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, frozenBody, body, spacerBody);
7310
7355
  };
@@ -7316,7 +7361,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
7316
7361
  columns: columns,
7317
7362
  footerColumnGroup: props.footerColumnGroup,
7318
7363
  ptCallbacks: ptCallbacks,
7319
- metaData: metaData
7364
+ metaData: metaData,
7365
+ unstyled: props.unstyled
7320
7366
  });
7321
7367
  };
7322
7368
  var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
@@ -7351,6 +7397,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
7351
7397
  parent: metaData
7352
7398
  },
7353
7399
  showSpacer: false,
7400
+ unstyled: props.unstyled,
7354
7401
  contentTemplate: function contentTemplate(options) {
7355
7402
  var ref = function ref(el) {
7356
7403
  tableRef.current = el;