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
@@ -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',
@@ -693,8 +706,15 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
693
706
  var mergeProps = useMergeProps();
694
707
  var context = React.useContext(PrimeReactContext);
695
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];
696
713
  var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
697
714
  props: props,
715
+ state: {
716
+ focused: focusedState
717
+ },
698
718
  context: {
699
719
  checked: props.checked === props.trueValue,
700
720
  disabled: props.disabled
@@ -748,10 +768,12 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
748
768
  };
749
769
  var _onFocus = function onFocus() {
750
770
  var _props$onFocus;
771
+ setFocusedState(true);
751
772
  props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
752
773
  };
753
774
  var _onBlur = function onBlur() {
754
775
  var _props$onBlur;
776
+ setFocusedState(false);
755
777
  props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
756
778
  };
757
779
  React.useImperativeHandle(ref, function () {
@@ -914,9 +936,9 @@ var classes = {
914
936
  'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
915
937
  });
916
938
  },
917
- box: 'p-radiobutton-box',
918
- input: 'p-radiobutton-input',
919
- icon: 'p-radiobutton-icon'
939
+ radiobuttonbox: 'p-radiobutton-box',
940
+ radiobuttoninput: 'p-radiobutton-input',
941
+ radiobuttonicon: 'p-radiobutton-icon'
920
942
  };
921
943
  var RadioButtonBase = ComponentBase.extend({
922
944
  defaultProps: {
@@ -1055,7 +1077,10 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1055
1077
  })),
1056
1078
  style: props.style,
1057
1079
  'data-p-checked': props.checked
1058
- }, RadioButtonBase.getOtherProps(props), ptm('root'));
1080
+ }, otherProps, ptm('root'));
1081
+ delete rootProps.input;
1082
+ delete rootProps.box;
1083
+ delete rootProps.icon;
1059
1084
  var createInputElement = function createInputElement() {
1060
1085
  var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
1061
1086
  var inputProps = mergeProps(_objectSpread$b({
@@ -1070,19 +1095,19 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1070
1095
  readOnly: props.readonly,
1071
1096
  required: props.required,
1072
1097
  tabIndex: props.tabIndex,
1073
- className: cx('input')
1074
- }, ariaProps), ptm('input'));
1098
+ className: cx('radiobuttoninput')
1099
+ }, ariaProps), inProps.input, ptm('radiobuttoninput'));
1075
1100
  return /*#__PURE__*/React.createElement("input", _extends({
1076
1101
  ref: inputRef
1077
1102
  }, inputProps));
1078
1103
  };
1079
1104
  var createBoxElement = function createBoxElement() {
1080
1105
  var boxProps = mergeProps({
1081
- className: cx('box')
1082
- }, ptm('box'));
1106
+ className: cx('radiobuttonbox')
1107
+ }, inProps.box, ptm('radiobuttonbox'));
1083
1108
  var iconProps = mergeProps({
1084
- className: cx('icon')
1085
- }, ptm('icon'));
1109
+ className: cx('radiobuttonicon')
1110
+ }, inProps.icon, ptm('radiobuttonicon'));
1086
1111
  return /*#__PURE__*/React.createElement("div", boxProps, /*#__PURE__*/React.createElement("div", iconProps));
1087
1112
  };
1088
1113
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
@@ -1130,7 +1155,11 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
1130
1155
  checked: props.checked,
1131
1156
  disabled: props.disabled,
1132
1157
  name: "".concat(props.tableSelector, "_dt_radio"),
1133
- onChange: onChange
1158
+ onChange: onChange,
1159
+ input: getColumnPTOptions('radiobuttoninput'),
1160
+ box: getColumnPTOptions('radiobuttonbox'),
1161
+ icon: getColumnPTOptions('radiobuttonicon'),
1162
+ unstyled: props.unstyled
1134
1163
  }, getColumnPTOptions('radiobutton'));
1135
1164
  return /*#__PURE__*/React.createElement(RadioButton, radioButtonProps);
1136
1165
  });
@@ -1156,7 +1185,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1156
1185
  var keyHelperRef = React.useRef(null);
1157
1186
  var overlayEventListener = React.useRef(null);
1158
1187
  var selfClick = React.useRef(false);
1159
- var tabindexTimeout = React.useRef(null);
1160
1188
  var initFocusTimeout = React.useRef(null);
1161
1189
  var editingRowDataStateRef = React.useRef(null);
1162
1190
  var _props$ptCallbacks = props.ptCallbacks,
@@ -1193,7 +1221,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1193
1221
  var field = getColumnProp('field') || "field_".concat(props.index);
1194
1222
  var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
1195
1223
  var isEditable = function isEditable() {
1196
- return getColumnProp('editor');
1224
+ return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
1197
1225
  };
1198
1226
  var cellEditValidateOnClose = function cellEditValidateOnClose() {
1199
1227
  return getColumnProp('cellEditValidateOnClose');
@@ -1337,14 +1365,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1337
1365
  }
1338
1366
  };
1339
1367
  var focusOnElement = function focusOnElement() {
1340
- clearTimeout(tabindexTimeout.current);
1341
- tabindexTimeout.current = setTimeout(function () {
1342
- if (editingState) {
1343
- var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
1344
- focusableEl && focusableEl.focus();
1345
- }
1346
- keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
1347
- }, 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);
1348
1373
  };
1349
1374
  var focusOnInit = function focusOnInit() {
1350
1375
  clearTimeout(initFocusTimeout.current);
@@ -1386,6 +1411,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1386
1411
  if (currentData) {
1387
1412
  ObjectUtils.mutateFieldData(currentData, field, val);
1388
1413
  }
1414
+ editingRowDataStateRef.current = editingRowData;
1389
1415
  };
1390
1416
  var _onClick = function onClick(event) {
1391
1417
  var params = getCellCallbackParams(event);
@@ -1578,14 +1604,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1578
1604
  }, [props.editMode, props.editing, editingState]);
1579
1605
  useUpdateEffect(function () {
1580
1606
  if (props.editMode === 'cell' || props.editMode === 'row') {
1581
- setEditingRowDataState(getEditingRowData());
1607
+ var editingRowData = getEditingRowData();
1608
+ setEditingRowDataState(editingRowData);
1609
+ editingRowDataStateRef.current = editingRowData;
1582
1610
  }
1583
1611
  }, [props.editingMeta]);
1584
- React.useEffect(function () {
1585
- if (editingRowDataState) {
1586
- editingRowDataStateRef.current = editingRowDataState;
1587
- }
1588
- }, [editingRowDataState]);
1589
1612
  React.useEffect(function () {
1590
1613
  if (props.editMode === 'cell' || props.editMode === 'row') {
1591
1614
  var callbackParams = getCellCallbackParams();
@@ -1660,7 +1683,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1660
1683
  if (showSelection) {
1661
1684
  var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
1662
1685
  var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
1663
- 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);
1664
1687
  }
1665
1688
  content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {
1666
1689
  hostName: props.hostName,
@@ -1675,7 +1698,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1675
1698
  tableSelector: props.tableSelector,
1676
1699
  ariaLabel: label,
1677
1700
  ptCallbacks: props.ptCallbacks,
1678
- metaData: props.metaData
1701
+ metaData: props.metaData,
1702
+ unstyled: props.unstyled
1679
1703
  }), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {
1680
1704
  hostName: props.hostName,
1681
1705
  column: props.column,
@@ -1689,7 +1713,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1689
1713
  ariaLabel: label,
1690
1714
  checkIcon: props.checkIcon,
1691
1715
  ptCallbacks: props.ptCallbacks,
1692
- metaData: props.metaData
1716
+ metaData: props.metaData,
1717
+ unstyled: props.unstyled
1693
1718
  }));
1694
1719
  } else if (rowReorder) {
1695
1720
  var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
@@ -1852,7 +1877,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1852
1877
  }, editorKeyHelperProps), /*#__PURE__*/React.createElement("span", editorKeyHelperLabelProps));
1853
1878
  /* eslint-enable */
1854
1879
  }
1855
-
1856
1880
  var bodyCellProps = mergeProps({
1857
1881
  style: style,
1858
1882
  className: classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
@@ -2336,7 +2360,8 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
2336
2360
  value: props.value,
2337
2361
  virtualScrollerOptions: props.virtualScrollerOptions,
2338
2362
  ptCallbacks: props.ptCallbacks,
2339
- metaData: props.metaData
2363
+ metaData: props.metaData,
2364
+ unstyled: props.unstyled
2340
2365
  });
2341
2366
  }
2342
2367
  return null;
@@ -2415,7 +2440,6 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
2415
2440
  }, getBodyRowPTOptions('bodyRow'), {
2416
2441
  className: classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
2417
2442
  });
2418
-
2419
2443
  return /*#__PURE__*/React.createElement("tr", rowProps, content);
2420
2444
  });
2421
2445
  BodyRow.displayName = 'BodyRow';
@@ -3123,7 +3147,6 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
3123
3147
  event.dataTransfer.setData('text', 'b'); // For firefox
3124
3148
  }
3125
3149
  };
3126
-
3127
3150
  var onRowDragOver = function onRowDragOver(e) {
3128
3151
  var event = e.originalEvent,
3129
3152
  index = e.index;
@@ -3345,7 +3368,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
3345
3368
  expandedRowIcon: props.expandedRowIcon,
3346
3369
  collapsedRowIcon: props.collapsedRowIcon,
3347
3370
  ptCallbacks: props.ptCallbacks,
3348
- metaData: props.metaData
3371
+ metaData: props.metaData,
3372
+ unstyled: props.unstyled
3349
3373
  });
3350
3374
  var options = {
3351
3375
  index: rowIndex,
@@ -3450,7 +3474,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
3450
3474
  value: props.value,
3451
3475
  virtualScrollerOptions: props.virtualScrollerOptions,
3452
3476
  ptCallbacks: props.ptCallbacks,
3453
- metaData: props.metaData
3477
+ metaData: props.metaData,
3478
+ unstyled: props.unstyled
3454
3479
  });
3455
3480
  }
3456
3481
  };
@@ -4047,6 +4072,15 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
4047
4072
  var getTarget = function getTarget() {
4048
4073
  return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
4049
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
+ */
4050
4084
  var setAutoFocus = function setAutoFocus(target) {
4051
4085
  var _ref = props || {},
4052
4086
  _ref$autoFocusSelecto = _ref.autoFocusSelector,
@@ -4055,7 +4089,9 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
4055
4089
  firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
4056
4090
  _ref$autoFocus = _ref.autoFocus,
4057
4091
  autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
4058
- 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);
4059
4095
  autoFocus && !focusableElement && (focusableElement = DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
4060
4096
  DomHandler.focus(focusableElement);
4061
4097
  };
@@ -5171,7 +5207,7 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
5171
5207
  column: props.column
5172
5208
  });
5173
5209
  };
5174
- var onResizerMouseDown = function onResizerMouseDown(event) {
5210
+ var onResizeStart = function onResizeStart(event) {
5175
5211
  props.onColumnResizeStart({
5176
5212
  originalEvent: event,
5177
5213
  column: props.column
@@ -5208,7 +5244,10 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
5208
5244
  var columnResizerProps = mergeProps({
5209
5245
  className: cx('columnResizer'),
5210
5246
  onMouseDown: function onMouseDown(e) {
5211
- return onResizerMouseDown(e);
5247
+ return onResizeStart(e);
5248
+ },
5249
+ onTouchStart: function onTouchStart(e) {
5250
+ return onResizeStart(e);
5212
5251
  },
5213
5252
  onClick: function onClick(e) {
5214
5253
  return onResizerClick(e);
@@ -5268,7 +5307,8 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
5268
5307
  onChange: props.onColumnCheckboxChange,
5269
5308
  disabled: props.empty,
5270
5309
  ptCallbacks: ptCallbacks,
5271
- metaData: parentMetaData
5310
+ metaData: parentMetaData,
5311
+ unstyled: props.unstyled
5272
5312
  });
5273
5313
  }
5274
5314
  return null;
@@ -5626,19 +5666,6 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
5626
5666
  });
5627
5667
  TableHeader.displayName = 'TableHeader';
5628
5668
 
5629
- var getStorage = function getStorage(stateStorageProp) {
5630
- switch (stateStorageProp) {
5631
- case 'local':
5632
- return window.localStorage;
5633
- case 'session':
5634
- return window.sessionStorage;
5635
- case 'custom':
5636
- return null;
5637
- default:
5638
- throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
5639
- }
5640
- };
5641
-
5642
5669
  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; } } }; }
5643
5670
  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); }
5644
5671
  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; }
@@ -5747,29 +5774,40 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
5747
5774
  setRowsState(props.rows);
5748
5775
  setD_rowsState(props.rows);
5749
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
+ };
5750
5783
  var _useEventListener = useEventListener({
5751
5784
  type: 'mousemove',
5752
- listener: function listener(event) {
5753
- if (columnResizing.current) {
5754
- onColumnResize(event);
5755
- }
5756
- }
5785
+ listener: columnResizeStartListener
5757
5786
  }),
5758
5787
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
5759
5788
  bindDocumentMouseMoveListener = _useEventListener2[0],
5760
5789
  unbindDocumentMouseMoveListener = _useEventListener2[1];
5761
5790
  var _useEventListener3 = useEventListener({
5762
5791
  type: 'mouseup',
5763
- listener: function listener() {
5764
- if (columnResizing.current) {
5765
- columnResizing.current = false;
5766
- onColumnResizeEnd();
5767
- }
5768
- }
5792
+ listener: columnResizeEndListener
5769
5793
  }),
5770
5794
  _useEventListener4 = _slicedToArray(_useEventListener3, 2),
5771
5795
  bindDocumentMouseUpListener = _useEventListener4[0],
5772
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];
5773
5811
  var isCustomStateStorage = function isCustomStateStorage() {
5774
5812
  return props.stateStorage === 'custom';
5775
5813
  };
@@ -6105,7 +6143,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6105
6143
  resizeColumn.current = column;
6106
6144
  resizeColumnElement.current = event.currentTarget.parentElement;
6107
6145
  columnResizing.current = true;
6108
- lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
6146
+ lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
6109
6147
  bindColumnResizeEvents();
6110
6148
  };
6111
6149
  var onColumnResize = function onColumnResize(event) {
@@ -6113,7 +6151,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6113
6151
  elementRef.current.setAttribute('data-p-unselectable-text', true);
6114
6152
  resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
6115
6153
  resizeHelperRef.current.style.top = 0 + 'px';
6116
- 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';
6117
6155
  resizeHelperRef.current.style.display = 'block';
6118
6156
  };
6119
6157
  var onColumnResizeEnd = function onColumnResizeEnd() {
@@ -6184,10 +6222,14 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6184
6222
  var bindColumnResizeEvents = function bindColumnResizeEvents() {
6185
6223
  bindDocumentMouseMoveListener();
6186
6224
  bindDocumentMouseUpListener();
6225
+ bindDocumentTouchMoveListener();
6226
+ bindDocumentTouchEndListener();
6187
6227
  };
6188
6228
  var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
6189
6229
  unbindDocumentMouseMoveListener();
6190
6230
  unbindDocumentMouseUpListener();
6231
+ unbindDocumentTouchMoveListener();
6232
+ unbindDocumentTouchEndListener();
6191
6233
  };
6192
6234
  var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
6193
6235
  DomHandler.clearSelection();
@@ -6253,7 +6295,6 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6253
6295
  draggedColumnElement.current = findParentHeader(event.currentTarget);
6254
6296
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
6255
6297
  };
6256
-
6257
6298
  var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
6258
6299
  var event = e.originalEvent,
6259
6300
  column = e.column;
@@ -7018,7 +7059,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7018
7059
  className: ptCallbacks.cx('loadingIcon')
7019
7060
  }, ptCallbacks.ptm('loadingIcon'));
7020
7061
  var icon = props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, _extends({}, loadingIconProps, {
7021
- spin: true
7062
+ spin: true,
7063
+ unstyled: props.unstyled
7022
7064
  }));
7023
7065
  var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, loadingIconProps), {
7024
7066
  props: props
@@ -7185,7 +7227,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7185
7227
  value: props.frozenValue,
7186
7228
  virtualScrollerOptions: options,
7187
7229
  ptCallbacks: ptCallbacks,
7188
- metaData: metaData
7230
+ metaData: metaData,
7231
+ unstyled: props.unstyled
7189
7232
  });
7190
7233
  var body = /*#__PURE__*/React.createElement(TableBody, {
7191
7234
  hostName: "DataTable",
@@ -7268,7 +7311,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7268
7311
  virtualScrollerContentRef: contentRef,
7269
7312
  virtualScrollerOptions: options,
7270
7313
  ptCallbacks: ptCallbacks,
7271
- metaData: metaData
7314
+ metaData: metaData,
7315
+ unstyled: props.unstyled
7272
7316
  });
7273
7317
  var spacerBody = ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React.createElement(TableBody, {
7274
7318
  hostName: "DataTable",
@@ -7277,7 +7321,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7277
7321
  },
7278
7322
  className: "p-datatable-virtualscroller-spacer",
7279
7323
  ptCallbacks: ptCallbacks,
7280
- metaData: metaData
7324
+ metaData: metaData,
7325
+ unstyled: props.unstyled
7281
7326
  }) : null;
7282
7327
  return /*#__PURE__*/React.createElement(React.Fragment, null, frozenBody, body, spacerBody);
7283
7328
  };
@@ -7289,7 +7334,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7289
7334
  columns: columns,
7290
7335
  footerColumnGroup: props.footerColumnGroup,
7291
7336
  ptCallbacks: ptCallbacks,
7292
- metaData: metaData
7337
+ metaData: metaData,
7338
+ unstyled: props.unstyled
7293
7339
  });
7294
7340
  };
7295
7341
  var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
@@ -7324,6 +7370,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7324
7370
  parent: metaData
7325
7371
  },
7326
7372
  showSpacer: false,
7373
+ unstyled: props.unstyled,
7327
7374
  contentTemplate: function contentTemplate(options) {
7328
7375
  var ref = function ref(el) {
7329
7376
  tableRef.current = el;