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
@@ -245,7 +245,7 @@ var DomHandler = /*#__PURE__*/function () {
245
245
  function DomHandler() {
246
246
  _classCallCheck(this, DomHandler);
247
247
  }
248
- _createClass(DomHandler, null, [{
248
+ return _createClass(DomHandler, null, [{
249
249
  key: "innerWidth",
250
250
  value: function innerWidth(el) {
251
251
  if (el) {
@@ -1475,7 +1475,6 @@ var DomHandler = /*#__PURE__*/function () {
1475
1475
  return false;
1476
1476
  }
1477
1477
  }]);
1478
- return DomHandler;
1479
1478
  }();
1480
1479
  /**
1481
1480
  * All data- properties like data-test-id
@@ -1518,7 +1517,7 @@ var ObjectUtils = /*#__PURE__*/function () {
1518
1517
  function ObjectUtils() {
1519
1518
  _classCallCheck(this, ObjectUtils);
1520
1519
  }
1521
- _createClass(ObjectUtils, null, [{
1520
+ return _createClass(ObjectUtils, null, [{
1522
1521
  key: "equals",
1523
1522
  value: function equals(obj1, obj2, field) {
1524
1523
  if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
@@ -2040,7 +2039,6 @@ var ObjectUtils = /*#__PURE__*/function () {
2040
2039
  }
2041
2040
  }
2042
2041
  }]);
2043
- return ObjectUtils;
2044
2042
  }();
2045
2043
 
2046
2044
  function ownKeys$1$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -2049,7 +2047,7 @@ var IconUtils = /*#__PURE__*/function () {
2049
2047
  function IconUtils() {
2050
2048
  _classCallCheck(this, IconUtils);
2051
2049
  }
2052
- _createClass(IconUtils, null, [{
2050
+ return _createClass(IconUtils, null, [{
2053
2051
  key: "getJSXIcon",
2054
2052
  value: function getJSXIcon(icon) {
2055
2053
  var iconProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -2072,7 +2070,6 @@ var IconUtils = /*#__PURE__*/function () {
2072
2070
  return content;
2073
2071
  }
2074
2072
  }]);
2075
- return IconUtils;
2076
2073
  }();
2077
2074
 
2078
2075
  function ownKeys$1_(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -3875,7 +3872,8 @@ var ESC_KEY_HANDLING_PRIORITIES = {
3875
3872
  PASSWORD: 700,
3876
3873
  CASCADE_SELECT: 800,
3877
3874
  SPLIT_BUTTON: 900,
3878
- SPEED_DIAL: 1000
3875
+ SPEED_DIAL: 1000,
3876
+ TOOLTIP: 1200
3879
3877
  };
3880
3878
 
3881
3879
  /**
@@ -5045,32 +5043,26 @@ var CSSTransition = /*#__PURE__*/React__namespace.forwardRef(function (inProps,
5045
5043
  props.onEnter && props.onEnter(node, isAppearing); // component
5046
5044
  props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
5047
5045
  };
5048
-
5049
5046
  var onEntering = function onEntering(node, isAppearing) {
5050
5047
  props.onEntering && props.onEntering(node, isAppearing); // component
5051
5048
  props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
5052
5049
  };
5053
-
5054
5050
  var onEntered = function onEntered(node, isAppearing) {
5055
5051
  props.onEntered && props.onEntered(node, isAppearing); // component
5056
5052
  props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
5057
5053
  };
5058
-
5059
5054
  var onExit = function onExit(node) {
5060
5055
  props.onExit && props.onExit(node); // component
5061
5056
  props.options && props.options.onExit && props.options.onExit(node); // user option
5062
5057
  };
5063
-
5064
5058
  var onExiting = function onExiting(node) {
5065
5059
  props.onExiting && props.onExiting(node); // component
5066
5060
  props.options && props.options.onExiting && props.options.onExiting(node); // user option
5067
5061
  };
5068
-
5069
5062
  var onExited = function onExited(node) {
5070
5063
  props.onExited && props.onExited(node); // component
5071
5064
  props.options && props.options.onExited && props.options.onExited(node); // user option
5072
5065
  };
5073
-
5074
5066
  useUpdateEffect(function () {
5075
5067
  if (disabled) {
5076
5068
  // no animation
@@ -5821,6 +5813,7 @@ var TooltipBase = ComponentBase.extend({
5821
5813
  autoZIndex: true,
5822
5814
  baseZIndex: 0,
5823
5815
  className: null,
5816
+ closeOnEscape: false,
5824
5817
  content: null,
5825
5818
  disabled: false,
5826
5819
  event: null,
@@ -5891,6 +5884,13 @@ var Tooltip = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
5891
5884
  useHandleStyle(TooltipBase.css.styles, isUnstyled, {
5892
5885
  name: 'tooltip'
5893
5886
  });
5887
+ useGlobalOnEscapeKey({
5888
+ callback: function callback() {
5889
+ hide();
5890
+ },
5891
+ when: props.closeOnEscape,
5892
+ priority: [ESC_KEY_HANDLING_PRIORITIES.TOOLTIP, 0]
5893
+ });
5894
5894
  var elementRef = React__namespace.useRef(null);
5895
5895
  var textRef = React__namespace.useRef(null);
5896
5896
  var currentTargetRef = React__namespace.useRef(null);
@@ -6288,7 +6288,8 @@ var Tooltip = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
6288
6288
  };
6289
6289
  }, [visibleState]);
6290
6290
  useUpdateEffect(function () {
6291
- if (visibleState) {
6291
+ var position = getPosition(currentTargetRef.current);
6292
+ if (visibleState && position !== 'mouse') {
6292
6293
  applyDelay('updateDelay', function () {
6293
6294
  updateText(currentTargetRef.current, function () {
6294
6295
  align(currentTargetRef.current);
@@ -6511,6 +6512,7 @@ var Button = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.f
6511
6512
  var rootProps = mergeProps({
6512
6513
  ref: elementRef,
6513
6514
  'aria-label': defaultAriaLabel,
6515
+ 'data-pc-autofocus': props.autoFocus,
6514
6516
  className: classNames(props.className, cx('root', {
6515
6517
  size: size,
6516
6518
  disabled: disabled
@@ -9837,24 +9839,33 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
9837
9839
  newViewDate.setDate(1);
9838
9840
  if (currentView === 'date') {
9839
9841
  if (newViewDate.getMonth() === 0) {
9842
+ var newYear = decrementYear();
9840
9843
  newViewDate.setMonth(11);
9841
- newViewDate.setFullYear(decrementYear());
9844
+ newViewDate.setFullYear(newYear);
9845
+ props.onMonthChange && props.onMonthChange({
9846
+ month: 11,
9847
+ year: newYear
9848
+ });
9842
9849
  setCurrentMonth(11);
9843
9850
  } else {
9844
9851
  newViewDate.setMonth(newViewDate.getMonth() - 1);
9852
+ props.onMonthChange && props.onMonthChange({
9853
+ month: currentMonth - 1,
9854
+ year: currentYear
9855
+ });
9845
9856
  setCurrentMonth(function (prevState) {
9846
9857
  return prevState - 1;
9847
9858
  });
9848
9859
  }
9849
9860
  } else if (currentView === 'month') {
9850
- var newYear = newViewDate.getFullYear() - 1;
9861
+ var _newYear = newViewDate.getFullYear() - 1;
9851
9862
  if (props.yearNavigator) {
9852
9863
  var minYear = parseInt(props.yearRange.split(':')[0], 10);
9853
- if (newYear < minYear) {
9854
- newYear = minYear;
9864
+ if (_newYear < minYear) {
9865
+ _newYear = minYear;
9855
9866
  }
9856
9867
  }
9857
- newViewDate.setFullYear(newYear);
9868
+ newViewDate.setFullYear(_newYear);
9858
9869
  }
9859
9870
  if (currentView === 'month') {
9860
9871
  newViewDate.setFullYear(decrementYear());
@@ -9873,24 +9884,33 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
9873
9884
  newViewDate.setDate(1);
9874
9885
  if (currentView === 'date') {
9875
9886
  if (newViewDate.getMonth() === 11) {
9887
+ var newYear = incrementYear();
9876
9888
  newViewDate.setMonth(0);
9877
- newViewDate.setFullYear(incrementYear());
9889
+ newViewDate.setFullYear(newYear);
9890
+ props.onMonthChange && props.onMonthChange({
9891
+ month: 0,
9892
+ year: newYear
9893
+ });
9878
9894
  setCurrentMonth(0);
9879
9895
  } else {
9880
9896
  newViewDate.setMonth(newViewDate.getMonth() + 1);
9897
+ props.onMonthChange && props.onMonthChange({
9898
+ month: currentMonth + 1,
9899
+ year: currentYear
9900
+ });
9881
9901
  setCurrentMonth(function (prevState) {
9882
9902
  return prevState + 1;
9883
9903
  });
9884
9904
  }
9885
9905
  } else if (currentView === 'month') {
9886
- var newYear = newViewDate.getFullYear() + 1;
9906
+ var _newYear2 = newViewDate.getFullYear() + 1;
9887
9907
  if (props.yearNavigator) {
9888
9908
  var maxYear = parseInt(props.yearRange.split(':')[1], 10);
9889
- if (newYear > maxYear) {
9890
- newYear = maxYear;
9909
+ if (_newYear2 > maxYear) {
9910
+ _newYear2 = maxYear;
9891
9911
  }
9892
9912
  }
9893
- newViewDate.setFullYear(newYear);
9913
+ newViewDate.setFullYear(_newYear2);
9894
9914
  }
9895
9915
  if (currentView === 'month') {
9896
9916
  newViewDate.setFullYear(incrementYear());
@@ -9928,6 +9948,7 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
9928
9948
  var onMonthDropdownChange = function onMonthDropdownChange(event, value) {
9929
9949
  var currentViewDate = getViewDate();
9930
9950
  var newViewDate = cloneDate(currentViewDate);
9951
+ newViewDate.setDate(1);
9931
9952
  newViewDate.setMonth(parseInt(value, 10));
9932
9953
  updateViewDate(event, newViewDate);
9933
9954
  };
@@ -10887,6 +10908,9 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
10887
10908
  }
10888
10909
  };
10889
10910
  var onDateSelect = function onDateSelect(event, dateMeta, timeMeta) {
10911
+ if (!event) {
10912
+ return;
10913
+ }
10890
10914
  if (props.disabled || !dateMeta.selectable) {
10891
10915
  event.preventDefault();
10892
10916
  return;
@@ -11511,28 +11535,44 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
11511
11535
  return props.value != null && typeof props.value !== 'string';
11512
11536
  };
11513
11537
  var isMonthSelected = function isMonthSelected(month) {
11514
- if (isComparable()) {
11515
- var value = isRangeSelection() ? props.value[0] : props.value;
11516
- if (isMultipleSelection()) {
11517
- return value.some(function (currentValue) {
11518
- return currentValue.getMonth() === month && currentValue.getFullYear() === currentYear;
11519
- });
11538
+ if (!isComparable()) return false;
11539
+ if (isMultipleSelection()) {
11540
+ return props.value.some(function (v) {
11541
+ return v.getMonth() === month && v.getFullYear() === currentYear;
11542
+ });
11543
+ } else if (isRangeSelection()) {
11544
+ var _props$value = _slicedToArray(props.value, 2),
11545
+ start = _props$value[0],
11546
+ end = _props$value[1];
11547
+ var startYear = start ? start.getFullYear() : null;
11548
+ var endYear = end ? end.getFullYear() : null;
11549
+ var startMonth = start ? start.getMonth() : null;
11550
+ var endMonth = end ? end.getMonth() : null;
11551
+ if (!end) {
11552
+ return startYear === currentYear && startMonth === month;
11553
+ } else {
11554
+ var currentDate = new Date(currentYear, month, 1);
11555
+ var startDate = new Date(startYear, startMonth, 1);
11556
+ var endDate = new Date(endYear, endMonth, 1);
11557
+ return currentDate >= startDate && currentDate <= endDate;
11520
11558
  }
11521
- return value.getMonth() === month && value.getFullYear() === currentYear;
11559
+ } else {
11560
+ return props.value.getMonth() === month && props.value.getFullYear() === currentYear;
11522
11561
  }
11523
- return false;
11524
11562
  };
11525
11563
  var isYearSelected = function isYearSelected(year) {
11526
- if (isComparable()) {
11527
- var value = isRangeSelection() ? props.value[0] : props.value;
11528
- if (isMultipleSelection()) {
11529
- return value.some(function (currentValue) {
11530
- return currentValue.getFullYear() === year;
11531
- });
11532
- }
11533
- return value.getFullYear() === year;
11564
+ if (!isComparable()) return false;
11565
+ if (isMultipleSelection()) {
11566
+ return props.value.some(function (v) {
11567
+ return v.getFullYear() === year;
11568
+ });
11569
+ } else if (isRangeSelection()) {
11570
+ var start = props.value[0] ? props.value[0].getFullYear() : null;
11571
+ var end = props.value[1] ? props.value[1].getFullYear() : null;
11572
+ return start === year || end === year || start < year && end > year;
11573
+ } else {
11574
+ return props.value.getFullYear() === year;
11534
11575
  }
11535
- return false;
11536
11576
  };
11537
11577
  var switchViewButtonDisabled = function switchViewButtonDisabled() {
11538
11578
  return props.numberOfMonths > 1 || props.disabled;
@@ -12025,7 +12065,6 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
12025
12065
  if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
12026
12066
  throw new Error('Invalid date'); // E.g. 31/02/00
12027
12067
  }
12028
-
12029
12068
  return date;
12030
12069
  };
12031
12070
  var isInMinYear = function isInMinYear(viewDate) {
@@ -12128,26 +12167,25 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
12128
12167
  isTypingRef.current = false;
12129
12168
 
12130
12169
  // #3516 view date not updated when value set programatically
12131
- if (!visible && newDate) {
12132
- var viewDate = newDate;
12133
- if (isMultipleSelection()) {
12134
- if (newDate.length) {
12135
- viewDate = newDate[newDate.length - 1];
12136
- }
12137
- } else if (isRangeSelection()) {
12138
- if (newDate.length) {
12139
- var startDate = newDate[0];
12140
- var endDate = newDate[1];
12141
- viewDate = endDate || startDate;
12142
- }
12170
+ if (!newDate) return;
12171
+ var viewDate = newDate;
12172
+ if (isMultipleSelection()) {
12173
+ if (newDate.length) {
12174
+ viewDate = newDate[newDate.length - 1];
12143
12175
  }
12144
- if (viewDate instanceof Date) {
12145
- validateDate(viewDate);
12146
- setViewDateState(viewDate);
12147
- setCurrentMonth(viewDate.getMonth());
12148
- setCurrentYear(viewDate.getFullYear());
12176
+ } else if (isRangeSelection()) {
12177
+ if (newDate.length) {
12178
+ var startDate = newDate[0];
12179
+ var endDate = newDate[1];
12180
+ viewDate = endDate || startDate;
12149
12181
  }
12150
12182
  }
12183
+ if (viewDate instanceof Date) {
12184
+ validateDate(viewDate);
12185
+ setViewDateState(viewDate);
12186
+ setCurrentMonth(viewDate.getMonth());
12187
+ setCurrentYear(viewDate.getFullYear());
12188
+ }
12151
12189
  }
12152
12190
  }, [props.value, visible]);
12153
12191
  useUpdateEffect(function () {
@@ -14939,8 +14977,15 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
14939
14977
  var mergeProps = useMergeProps();
14940
14978
  var context = React__namespace.useContext(PrimeReactContext);
14941
14979
  var props = CheckboxBase.getProps(inProps, context);
14980
+ var _React$useState = React__namespace.useState(false),
14981
+ _React$useState2 = _slicedToArray(_React$useState, 2),
14982
+ focusedState = _React$useState2[0],
14983
+ setFocusedState = _React$useState2[1];
14942
14984
  var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
14943
14985
  props: props,
14986
+ state: {
14987
+ focused: focusedState
14988
+ },
14944
14989
  context: {
14945
14990
  checked: props.checked === props.trueValue,
14946
14991
  disabled: props.disabled
@@ -14994,10 +15039,12 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
14994
15039
  };
14995
15040
  var _onFocus = function onFocus() {
14996
15041
  var _props$onFocus;
15042
+ setFocusedState(true);
14997
15043
  props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
14998
15044
  };
14999
15045
  var _onBlur = function onBlur() {
15000
15046
  var _props$onBlur;
15047
+ setFocusedState(false);
15001
15048
  props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
15002
15049
  };
15003
15050
  React__namespace.useImperativeHandle(ref, function () {
@@ -15830,9 +15877,18 @@ var ColorPicker = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
15830
15877
  ptm = _ColorPickerBase$setM.ptm,
15831
15878
  cx = _ColorPickerBase$setM.cx,
15832
15879
  isUnstyled = _ColorPickerBase$setM.isUnstyled;
15880
+ var isCloseOnEscape = overlayVisibleState && props.closeOnEscape;
15881
+ var overlayDisplayOrder = useDisplayOrder('overlay-panel', isCloseOnEscape);
15833
15882
  useHandleStyle(ColorPickerBase.css.styles, isUnstyled, {
15834
15883
  name: 'colorpicker'
15835
15884
  });
15885
+ useGlobalOnEscapeKey({
15886
+ callback: function callback() {
15887
+ hide();
15888
+ },
15889
+ when: overlayVisibleState && overlayDisplayOrder,
15890
+ priority: [ESC_KEY_HANDLING_PRIORITIES.OVERLAY_PANEL, overlayDisplayOrder]
15891
+ });
15836
15892
  var elementRef = React__namespace.useRef(null);
15837
15893
  var overlayRef = React__namespace.useRef(null);
15838
15894
  var inputRef = React__namespace.useRef(props.inputRef);
@@ -15900,12 +15956,17 @@ var ColorPicker = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
15900
15956
  pickHue(event);
15901
15957
  !isUnstyled && DomHandler.addClass(elementRef.current, 'p-colorpicker-dragging');
15902
15958
  };
15959
+ var getPositionY = function getPositionY(event) {
15960
+ if (event.pageY !== undefined) return event.pageY;else if (event.changedTouches !== undefined) return event.changedTouches[0].pageY;else return 0;
15961
+ };
15903
15962
  var pickHue = function pickHue(event) {
15904
- var top = hueViewRef.current.getBoundingClientRect().top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);
15963
+ var top = hueViewRef.current.getBoundingClientRect().top + (window.scrollY || document.documentElement.scrollTop || document.body.scrollTop || 0);
15964
+ var yPos = getPositionY(event);
15965
+ var hue = Math.floor(360 * (150 - Math.max(0, Math.min(150, yPos - top))) / 150);
15905
15966
  hsbValue.current = validateHSB({
15906
- h: Math.floor(360 * (150 - Math.max(0, Math.min(150, (event.pageY || event.changedTouches[0].pageY) - top))) / 150),
15907
- s: 100,
15908
- b: 100
15967
+ h: hue,
15968
+ s: hsbValue.current.s,
15969
+ b: hsbValue.current.b
15909
15970
  });
15910
15971
  updateColorSelector();
15911
15972
  updateHue();
@@ -16428,6 +16489,15 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo( /*#__PURE__*/React_
16428
16489
  var getTarget = function getTarget() {
16429
16490
  return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
16430
16491
  };
16492
+
16493
+ /**
16494
+ * This method sets the auto focus on the first focusable element within the target element.
16495
+ * It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
16496
+ * it then tries to find a focusable element using the firstFocusableSelector.
16497
+ * If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
16498
+ *
16499
+ * @param {HTMLElement} target - The target element within which to find a focusable element.
16500
+ */
16431
16501
  var setAutoFocus = function setAutoFocus(target) {
16432
16502
  var _ref = props || {},
16433
16503
  _ref$autoFocusSelecto = _ref.autoFocusSelector,
@@ -16436,7 +16506,9 @@ var FocusTrap = /*#__PURE__*/React__default["default"].memo( /*#__PURE__*/React_
16436
16506
  firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
16437
16507
  _ref$autoFocus = _ref.autoFocus,
16438
16508
  autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
16439
- var focusableElement = DomHandler.getFirstFocusableElement(target, "[autofocus]".concat(getComputedSelector(autoFocusSelector)));
16509
+ var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
16510
+ var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
16511
+ var focusableElement = DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
16440
16512
  autoFocus && !focusableElement && (focusableElement = DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
16441
16513
  DomHandler.focus(focusableElement);
16442
16514
  };
@@ -17110,7 +17182,9 @@ var Dialog = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
17110
17182
  'aria-label': ariaLabel,
17111
17183
  onClick: onClose,
17112
17184
  onKeyDown: function onKeyDown(ev) {
17113
- return ev.stopPropagation();
17185
+ if (ev.key !== 'Escape') {
17186
+ ev.stopPropagation();
17187
+ }
17114
17188
  }
17115
17189
  }, ptm('closeButton'));
17116
17190
  return /*#__PURE__*/React__namespace.createElement("button", closeButtonProps, headerCloseIcon, /*#__PURE__*/React__namespace.createElement(Ripple, null));
@@ -19298,6 +19372,19 @@ var DataScroller = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
19298
19372
  }));
19299
19373
  DataScroller.displayName = 'DataScroller';
19300
19374
 
19375
+ var getStorage = function getStorage(stateStorageProp) {
19376
+ switch (stateStorageProp) {
19377
+ case 'local':
19378
+ return window.localStorage;
19379
+ case 'session':
19380
+ return window.sessionStorage;
19381
+ case 'custom':
19382
+ return null;
19383
+ default:
19384
+ throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
19385
+ }
19386
+ };
19387
+
19301
19388
  var ColumnBase = ComponentBase.extend({
19302
19389
  defaultProps: {
19303
19390
  __TYPE: 'Column',
@@ -19884,14 +19971,15 @@ var InputNumber = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
19884
19971
  var vertical = props.showButtons && props.buttonLayout === 'vertical';
19885
19972
  var inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits ? 'numeric' : 'decimal');
19886
19973
  var getOptions = function getOptions() {
19974
+ var _props$minFractionDig, _props$maxFractionDig;
19887
19975
  return {
19888
19976
  localeMatcher: props.localeMatcher,
19889
19977
  style: props.mode,
19890
19978
  currency: props.currency,
19891
19979
  currencyDisplay: props.currencyDisplay,
19892
19980
  useGrouping: props.useGrouping,
19893
- minimumFractionDigits: props.minFractionDigits,
19894
- maximumFractionDigits: props.maxFractionDigits,
19981
+ minimumFractionDigits: (_props$minFractionDig = props.minFractionDigits) !== null && _props$minFractionDig !== void 0 ? _props$minFractionDig : undefined,
19982
+ maximumFractionDigits: (_props$maxFractionDig = props.maxFractionDigits) !== null && _props$maxFractionDig !== void 0 ? _props$maxFractionDig : undefined,
19895
19983
  roundingMode: props.roundingMode
19896
19984
  };
19897
19985
  };
@@ -20309,7 +20397,7 @@ var InputNumber = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
20309
20397
  if (_char2) {
20310
20398
  var _isDecimalSign = isDecimalSign(_char2);
20311
20399
  var _isMinusSign = isMinusSign(_char2);
20312
- if (event.code && (event.code.startsWith('Digit') || event.code.startsWith('Numpad')) && Number(_char2) >= 0 && Number(_char2) <= 9 || _isMinusSign || _isDecimalSign) {
20400
+ if (Number(_char2) >= 0 && Number(_char2) <= 9 || _isMinusSign || _isDecimalSign) {
20313
20401
  insert(event, _char2, {
20314
20402
  isDecimalSign: _isDecimalSign,
20315
20403
  isMinusSign: _isMinusSign
@@ -21993,10 +22081,9 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
21993
22081
  };
21994
22082
  var onOptionSelect = function onOptionSelect(event, option) {
21995
22083
  var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
21996
- var value = getOptionValue(option);
21997
22084
  selectItem({
21998
22085
  originalEvent: event,
21999
- option: value
22086
+ option: option
22000
22087
  });
22001
22088
  isHide && hide();
22002
22089
  };
@@ -22279,8 +22366,9 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
22279
22366
  }
22280
22367
  };
22281
22368
  var onEditableInputChange = function onEditableInputChange(event) {
22369
+ !overlayVisibleState && show();
22282
22370
  var searchIndex = null;
22283
- if (event.target.value) {
22371
+ if (event.target.value && visibleOptions) {
22284
22372
  searchIndex = visibleOptions.findIndex(function (item) {
22285
22373
  return getOptionLabel(item).toLocaleLowerCase().startsWith(event.target.value.toLocaleLowerCase());
22286
22374
  });
@@ -22486,10 +22574,12 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
22486
22574
  }
22487
22575
  };
22488
22576
  var getOptionLabel = function getOptionLabel(option) {
22489
- return props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : ObjectUtils.resolveFieldData(option, 'label') || option;
22577
+ var optionLabel = props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : ObjectUtils.resolveFieldData(option, 'label');
22578
+ return ObjectUtils.isNotEmpty(optionLabel) ? optionLabel : option;
22490
22579
  };
22491
22580
  var getOptionValue = function getOptionValue(option) {
22492
- return props.optionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : ObjectUtils.resolveFieldData(option, 'value') || option;
22581
+ var optionValue = props.OptionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : ObjectUtils.resolveFieldData(option, 'value');
22582
+ return ObjectUtils.isNotEmpty(optionValue) ? optionValue : option;
22493
22583
  };
22494
22584
  var getOptionRenderKey = function getOptionRenderKey(option) {
22495
22585
  return props.dataKey ? ObjectUtils.resolveFieldData(option, props.dataKey) : getOptionLabel(option);
@@ -22662,7 +22752,7 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
22662
22752
  }, ariaProps), ptm('input'));
22663
22753
  return /*#__PURE__*/React__namespace.createElement("input", _inputProps);
22664
22754
  }
22665
- var content = props.valueTemplate ? ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder || 'empty';
22755
+ var content = props.valueTemplate ? ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder || props.emptyMessage || /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, "\xA0");
22666
22756
  var inputProps = mergeProps({
22667
22757
  ref: inputRef,
22668
22758
  className: cx('input', {
@@ -23632,9 +23722,9 @@ var classes$S = {
23632
23722
  'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
23633
23723
  });
23634
23724
  },
23635
- box: 'p-radiobutton-box',
23636
- input: 'p-radiobutton-input',
23637
- icon: 'p-radiobutton-icon'
23725
+ radiobuttonbox: 'p-radiobutton-box',
23726
+ radiobuttoninput: 'p-radiobutton-input',
23727
+ radiobuttonicon: 'p-radiobutton-icon'
23638
23728
  };
23639
23729
  var RadioButtonBase = ComponentBase.extend({
23640
23730
  defaultProps: {
@@ -23773,7 +23863,10 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
23773
23863
  })),
23774
23864
  style: props.style,
23775
23865
  'data-p-checked': props.checked
23776
- }, RadioButtonBase.getOtherProps(props), ptm('root'));
23866
+ }, otherProps, ptm('root'));
23867
+ delete rootProps.input;
23868
+ delete rootProps.box;
23869
+ delete rootProps.icon;
23777
23870
  var createInputElement = function createInputElement() {
23778
23871
  var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
23779
23872
  var inputProps = mergeProps(_objectSpread$1h({
@@ -23788,19 +23881,19 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
23788
23881
  readOnly: props.readonly,
23789
23882
  required: props.required,
23790
23883
  tabIndex: props.tabIndex,
23791
- className: cx('input')
23792
- }, ariaProps), ptm('input'));
23884
+ className: cx('radiobuttoninput')
23885
+ }, ariaProps), inProps.input, ptm('radiobuttoninput'));
23793
23886
  return /*#__PURE__*/React__namespace.createElement("input", _extends({
23794
23887
  ref: inputRef
23795
23888
  }, inputProps));
23796
23889
  };
23797
23890
  var createBoxElement = function createBoxElement() {
23798
23891
  var boxProps = mergeProps({
23799
- className: cx('box')
23800
- }, ptm('box'));
23892
+ className: cx('radiobuttonbox')
23893
+ }, inProps.box, ptm('radiobuttonbox'));
23801
23894
  var iconProps = mergeProps({
23802
- className: cx('icon')
23803
- }, ptm('icon'));
23895
+ className: cx('radiobuttonicon')
23896
+ }, inProps.icon, ptm('radiobuttonicon'));
23804
23897
  return /*#__PURE__*/React__namespace.createElement("div", boxProps, /*#__PURE__*/React__namespace.createElement("div", iconProps));
23805
23898
  };
23806
23899
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", _extends({
@@ -23848,7 +23941,11 @@ var RowRadioButton = /*#__PURE__*/React__namespace.memo(function (props) {
23848
23941
  checked: props.checked,
23849
23942
  disabled: props.disabled,
23850
23943
  name: "".concat(props.tableSelector, "_dt_radio"),
23851
- onChange: onChange
23944
+ onChange: onChange,
23945
+ input: getColumnPTOptions('radiobuttoninput'),
23946
+ box: getColumnPTOptions('radiobuttonbox'),
23947
+ icon: getColumnPTOptions('radiobuttonicon'),
23948
+ unstyled: props.unstyled
23852
23949
  }, getColumnPTOptions('radiobutton'));
23853
23950
  return /*#__PURE__*/React__namespace.createElement(RadioButton, radioButtonProps);
23854
23951
  });
@@ -23874,7 +23971,6 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
23874
23971
  var keyHelperRef = React__namespace.useRef(null);
23875
23972
  var overlayEventListener = React__namespace.useRef(null);
23876
23973
  var selfClick = React__namespace.useRef(false);
23877
- var tabindexTimeout = React__namespace.useRef(null);
23878
23974
  var initFocusTimeout = React__namespace.useRef(null);
23879
23975
  var editingRowDataStateRef = React__namespace.useRef(null);
23880
23976
  var _props$ptCallbacks = props.ptCallbacks,
@@ -23911,7 +24007,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
23911
24007
  var field = getColumnProp('field') || "field_".concat(props.index);
23912
24008
  var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
23913
24009
  var isEditable = function isEditable() {
23914
- return getColumnProp('editor');
24010
+ return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
23915
24011
  };
23916
24012
  var cellEditValidateOnClose = function cellEditValidateOnClose() {
23917
24013
  return getColumnProp('cellEditValidateOnClose');
@@ -24055,14 +24151,11 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
24055
24151
  }
24056
24152
  };
24057
24153
  var focusOnElement = function focusOnElement() {
24058
- clearTimeout(tabindexTimeout.current);
24059
- tabindexTimeout.current = setTimeout(function () {
24060
- if (editingState) {
24061
- var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
24062
- focusableEl && focusableEl.focus();
24063
- }
24064
- keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
24065
- }, 1);
24154
+ if (editingState) {
24155
+ var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
24156
+ focusableEl && focusableEl.focus();
24157
+ }
24158
+ keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
24066
24159
  };
24067
24160
  var focusOnInit = function focusOnInit() {
24068
24161
  clearTimeout(initFocusTimeout.current);
@@ -24104,6 +24197,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
24104
24197
  if (currentData) {
24105
24198
  ObjectUtils.mutateFieldData(currentData, field, val);
24106
24199
  }
24200
+ editingRowDataStateRef.current = editingRowData;
24107
24201
  };
24108
24202
  var _onClick = function onClick(event) {
24109
24203
  var params = getCellCallbackParams(event);
@@ -24296,14 +24390,11 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
24296
24390
  }, [props.editMode, props.editing, editingState]);
24297
24391
  useUpdateEffect(function () {
24298
24392
  if (props.editMode === 'cell' || props.editMode === 'row') {
24299
- setEditingRowDataState(getEditingRowData());
24393
+ var editingRowData = getEditingRowData();
24394
+ setEditingRowDataState(editingRowData);
24395
+ editingRowDataStateRef.current = editingRowData;
24300
24396
  }
24301
24397
  }, [props.editingMeta]);
24302
- React__namespace.useEffect(function () {
24303
- if (editingRowDataState) {
24304
- editingRowDataStateRef.current = editingRowDataState;
24305
- }
24306
- }, [editingRowDataState]);
24307
24398
  React__namespace.useEffect(function () {
24308
24399
  if (props.editMode === 'cell' || props.editMode === 'row') {
24309
24400
  var callbackParams = getCellCallbackParams();
@@ -24378,7 +24469,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
24378
24469
  if (showSelection) {
24379
24470
  var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
24380
24471
  var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
24381
- label = "".concat(props.selected ? ariaLabel('unselectLabel') : ariaLabel('selectLabel'), " ").concat(ariaLabelText);
24472
+ label = "".concat(props.selected ? ariaLabel('unselectRow') : ariaLabel('selectRow'), " ").concat(ariaLabelText);
24382
24473
  }
24383
24474
  content = showSelection && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React__namespace.createElement(RowRadioButton, {
24384
24475
  hostName: props.hostName,
@@ -24393,7 +24484,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
24393
24484
  tableSelector: props.tableSelector,
24394
24485
  ariaLabel: label,
24395
24486
  ptCallbacks: props.ptCallbacks,
24396
- metaData: props.metaData
24487
+ metaData: props.metaData,
24488
+ unstyled: props.unstyled
24397
24489
  }), selectionMode === 'multiple' && /*#__PURE__*/React__namespace.createElement(RowCheckbox, {
24398
24490
  hostName: props.hostName,
24399
24491
  column: props.column,
@@ -24407,7 +24499,8 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
24407
24499
  ariaLabel: label,
24408
24500
  checkIcon: props.checkIcon,
24409
24501
  ptCallbacks: props.ptCallbacks,
24410
- metaData: props.metaData
24502
+ metaData: props.metaData,
24503
+ unstyled: props.unstyled
24411
24504
  }));
24412
24505
  } else if (rowReorder) {
24413
24506
  var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
@@ -24570,7 +24663,6 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
24570
24663
  }, editorKeyHelperProps), /*#__PURE__*/React__namespace.createElement("span", editorKeyHelperLabelProps));
24571
24664
  /* eslint-enable */
24572
24665
  }
24573
-
24574
24666
  var bodyCellProps = mergeProps({
24575
24667
  style: style,
24576
24668
  className: classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
@@ -25054,7 +25146,8 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
25054
25146
  value: props.value,
25055
25147
  virtualScrollerOptions: props.virtualScrollerOptions,
25056
25148
  ptCallbacks: props.ptCallbacks,
25057
- metaData: props.metaData
25149
+ metaData: props.metaData,
25150
+ unstyled: props.unstyled
25058
25151
  });
25059
25152
  }
25060
25153
  return null;
@@ -25133,7 +25226,6 @@ var BodyRow = /*#__PURE__*/React__namespace.memo(function (props) {
25133
25226
  }, getBodyRowPTOptions('bodyRow'), {
25134
25227
  className: classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
25135
25228
  });
25136
-
25137
25229
  return /*#__PURE__*/React__namespace.createElement("tr", rowProps, content);
25138
25230
  });
25139
25231
  BodyRow.displayName = 'BodyRow';
@@ -25841,7 +25933,6 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
25841
25933
  event.dataTransfer.setData('text', 'b'); // For firefox
25842
25934
  }
25843
25935
  };
25844
-
25845
25936
  var onRowDragOver = function onRowDragOver(e) {
25846
25937
  var event = e.originalEvent,
25847
25938
  index = e.index;
@@ -26063,7 +26154,8 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
26063
26154
  expandedRowIcon: props.expandedRowIcon,
26064
26155
  collapsedRowIcon: props.collapsedRowIcon,
26065
26156
  ptCallbacks: props.ptCallbacks,
26066
- metaData: props.metaData
26157
+ metaData: props.metaData,
26158
+ unstyled: props.unstyled
26067
26159
  });
26068
26160
  var options = {
26069
26161
  index: rowIndex,
@@ -26168,7 +26260,8 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
26168
26260
  value: props.value,
26169
26261
  virtualScrollerOptions: props.virtualScrollerOptions,
26170
26262
  ptCallbacks: props.ptCallbacks,
26171
- metaData: props.metaData
26263
+ metaData: props.metaData,
26264
+ unstyled: props.unstyled
26172
26265
  });
26173
26266
  }
26174
26267
  };
@@ -27678,7 +27771,7 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
27678
27771
  column: props.column
27679
27772
  });
27680
27773
  };
27681
- var onResizerMouseDown = function onResizerMouseDown(event) {
27774
+ var onResizeStart = function onResizeStart(event) {
27682
27775
  props.onColumnResizeStart({
27683
27776
  originalEvent: event,
27684
27777
  column: props.column
@@ -27715,7 +27808,10 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
27715
27808
  var columnResizerProps = mergeProps({
27716
27809
  className: cx('columnResizer'),
27717
27810
  onMouseDown: function onMouseDown(e) {
27718
- return onResizerMouseDown(e);
27811
+ return onResizeStart(e);
27812
+ },
27813
+ onTouchStart: function onTouchStart(e) {
27814
+ return onResizeStart(e);
27719
27815
  },
27720
27816
  onClick: function onClick(e) {
27721
27817
  return onResizerClick(e);
@@ -27775,7 +27871,8 @@ var HeaderCell = /*#__PURE__*/React__namespace.memo(function (props) {
27775
27871
  onChange: props.onColumnCheckboxChange,
27776
27872
  disabled: props.empty,
27777
27873
  ptCallbacks: ptCallbacks,
27778
- metaData: parentMetaData
27874
+ metaData: parentMetaData,
27875
+ unstyled: props.unstyled
27779
27876
  });
27780
27877
  }
27781
27878
  return null;
@@ -28133,19 +28230,6 @@ var TableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
28133
28230
  });
28134
28231
  TableHeader.displayName = 'TableHeader';
28135
28232
 
28136
- var getStorage = function getStorage(stateStorageProp) {
28137
- switch (stateStorageProp) {
28138
- case 'local':
28139
- return window.localStorage;
28140
- case 'session':
28141
- return window.sessionStorage;
28142
- case 'custom':
28143
- return null;
28144
- default:
28145
- throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
28146
- }
28147
- };
28148
-
28149
28233
  function _createForOfIteratorHelper$b(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$b(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; } } }; }
28150
28234
  function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(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$b(o, minLen); }
28151
28235
  function _arrayLikeToArray$b(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; }
@@ -28254,29 +28338,40 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
28254
28338
  setRowsState(props.rows);
28255
28339
  setD_rowsState(props.rows);
28256
28340
  }
28341
+ var columnResizeStartListener = function columnResizeStartListener(event) {
28342
+ return columnResizing.current && onColumnResize(event);
28343
+ };
28344
+ var columnResizeEndListener = function columnResizeEndListener() {
28345
+ return columnResizing.current && (columnResizing.current = false, onColumnResizeEnd());
28346
+ };
28257
28347
  var _useEventListener = useEventListener({
28258
28348
  type: 'mousemove',
28259
- listener: function listener(event) {
28260
- if (columnResizing.current) {
28261
- onColumnResize(event);
28262
- }
28263
- }
28349
+ listener: columnResizeStartListener
28264
28350
  }),
28265
28351
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
28266
28352
  bindDocumentMouseMoveListener = _useEventListener2[0],
28267
28353
  unbindDocumentMouseMoveListener = _useEventListener2[1];
28268
28354
  var _useEventListener3 = useEventListener({
28269
28355
  type: 'mouseup',
28270
- listener: function listener() {
28271
- if (columnResizing.current) {
28272
- columnResizing.current = false;
28273
- onColumnResizeEnd();
28274
- }
28275
- }
28356
+ listener: columnResizeEndListener
28276
28357
  }),
28277
28358
  _useEventListener4 = _slicedToArray(_useEventListener3, 2),
28278
28359
  bindDocumentMouseUpListener = _useEventListener4[0],
28279
28360
  unbindDocumentMouseUpListener = _useEventListener4[1];
28361
+ var _useEventListener5 = useEventListener({
28362
+ type: 'touchmove',
28363
+ listener: columnResizeStartListener
28364
+ }),
28365
+ _useEventListener6 = _slicedToArray(_useEventListener5, 2),
28366
+ bindDocumentTouchMoveListener = _useEventListener6[0],
28367
+ unbindDocumentTouchMoveListener = _useEventListener6[1];
28368
+ var _useEventListener7 = useEventListener({
28369
+ type: 'touchend',
28370
+ listener: columnResizeEndListener
28371
+ }),
28372
+ _useEventListener8 = _slicedToArray(_useEventListener7, 2),
28373
+ bindDocumentTouchEndListener = _useEventListener8[0],
28374
+ unbindDocumentTouchEndListener = _useEventListener8[1];
28280
28375
  var isCustomStateStorage = function isCustomStateStorage() {
28281
28376
  return props.stateStorage === 'custom';
28282
28377
  };
@@ -28612,7 +28707,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
28612
28707
  resizeColumn.current = column;
28613
28708
  resizeColumnElement.current = event.currentTarget.parentElement;
28614
28709
  columnResizing.current = true;
28615
- lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
28710
+ lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
28616
28711
  bindColumnResizeEvents();
28617
28712
  };
28618
28713
  var onColumnResize = function onColumnResize(event) {
@@ -28620,7 +28715,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
28620
28715
  elementRef.current.setAttribute('data-p-unselectable-text', true);
28621
28716
  resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
28622
28717
  resizeHelperRef.current.style.top = 0 + 'px';
28623
- resizeHelperRef.current.style.left = event.pageX - containerLeft + elementRef.current.scrollLeft + 'px';
28718
+ resizeHelperRef.current.style.left = (event.type === 'touchmove' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft + 'px';
28624
28719
  resizeHelperRef.current.style.display = 'block';
28625
28720
  };
28626
28721
  var onColumnResizeEnd = function onColumnResizeEnd() {
@@ -28691,10 +28786,14 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
28691
28786
  var bindColumnResizeEvents = function bindColumnResizeEvents() {
28692
28787
  bindDocumentMouseMoveListener();
28693
28788
  bindDocumentMouseUpListener();
28789
+ bindDocumentTouchMoveListener();
28790
+ bindDocumentTouchEndListener();
28694
28791
  };
28695
28792
  var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
28696
28793
  unbindDocumentMouseMoveListener();
28697
28794
  unbindDocumentMouseUpListener();
28795
+ unbindDocumentTouchMoveListener();
28796
+ unbindDocumentTouchEndListener();
28698
28797
  };
28699
28798
  var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
28700
28799
  DomHandler.clearSelection();
@@ -28760,7 +28859,6 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
28760
28859
  draggedColumnElement.current = findParentHeader(event.currentTarget);
28761
28860
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
28762
28861
  };
28763
-
28764
28862
  var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
28765
28863
  var event = e.originalEvent,
28766
28864
  column = e.column;
@@ -29525,7 +29623,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
29525
29623
  className: ptCallbacks.cx('loadingIcon')
29526
29624
  }, ptCallbacks.ptm('loadingIcon'));
29527
29625
  var icon = props.loadingIcon || /*#__PURE__*/React__namespace.createElement(SpinnerIcon, _extends({}, loadingIconProps, {
29528
- spin: true
29626
+ spin: true,
29627
+ unstyled: props.unstyled
29529
29628
  }));
29530
29629
  var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread$17({}, loadingIconProps), {
29531
29630
  props: props
@@ -29692,7 +29791,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
29692
29791
  value: props.frozenValue,
29693
29792
  virtualScrollerOptions: options,
29694
29793
  ptCallbacks: ptCallbacks,
29695
- metaData: metaData
29794
+ metaData: metaData,
29795
+ unstyled: props.unstyled
29696
29796
  });
29697
29797
  var body = /*#__PURE__*/React__namespace.createElement(TableBody, {
29698
29798
  hostName: "DataTable",
@@ -29775,7 +29875,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
29775
29875
  virtualScrollerContentRef: contentRef,
29776
29876
  virtualScrollerOptions: options,
29777
29877
  ptCallbacks: ptCallbacks,
29778
- metaData: metaData
29878
+ metaData: metaData,
29879
+ unstyled: props.unstyled
29779
29880
  });
29780
29881
  var spacerBody = ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React__namespace.createElement(TableBody, {
29781
29882
  hostName: "DataTable",
@@ -29784,7 +29885,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
29784
29885
  },
29785
29886
  className: "p-datatable-virtualscroller-spacer",
29786
29887
  ptCallbacks: ptCallbacks,
29787
- metaData: metaData
29888
+ metaData: metaData,
29889
+ unstyled: props.unstyled
29788
29890
  }) : null;
29789
29891
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, frozenBody, body, spacerBody);
29790
29892
  };
@@ -29796,7 +29898,8 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
29796
29898
  columns: columns,
29797
29899
  footerColumnGroup: props.footerColumnGroup,
29798
29900
  ptCallbacks: ptCallbacks,
29799
- metaData: metaData
29901
+ metaData: metaData,
29902
+ unstyled: props.unstyled
29800
29903
  });
29801
29904
  };
29802
29905
  var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
@@ -29831,6 +29934,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
29831
29934
  parent: metaData
29832
29935
  },
29833
29936
  showSpacer: false,
29937
+ unstyled: props.unstyled,
29834
29938
  contentTemplate: function contentTemplate(options) {
29835
29939
  var ref = function ref(el) {
29836
29940
  tableRef.current = el;
@@ -36793,7 +36897,24 @@ var ListBox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
36793
36897
  var getOptionGroupChildren = function getOptionGroupChildren(optionGroup) {
36794
36898
  return ObjectUtils.resolveFieldData(optionGroup, props.optionGroupChildren);
36795
36899
  };
36900
+ var flatOptions = function flatOptions(options) {
36901
+ return (options || []).reduce(function (result, option, index) {
36902
+ result.push({
36903
+ optionGroup: option,
36904
+ group: true,
36905
+ index: index,
36906
+ code: option.code,
36907
+ label: option.label
36908
+ });
36909
+ var optionGroupChildren = getOptionGroupChildren(option);
36910
+ optionGroupChildren && optionGroupChildren.forEach(function (o) {
36911
+ return result.push(o);
36912
+ });
36913
+ return result;
36914
+ }, []);
36915
+ };
36796
36916
  var getVisibleOptions = function getVisibleOptions() {
36917
+ var options = props.optionGroupLabel ? flatOptions(props.options) : props.options;
36797
36918
  if (hasFilter) {
36798
36919
  var filterValue = filteredValue.trim().toLocaleLowerCase(props.filterLocale);
36799
36920
  var searchFields = props.filterBy ? props.filterBy.split(',') : [props.optionLabel || 'label'];
@@ -36816,11 +36937,11 @@ var ListBox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
36816
36937
  } finally {
36817
36938
  _iterator.f();
36818
36939
  }
36819
- return filteredGroups;
36940
+ return flatOptions(filteredGroups);
36820
36941
  }
36821
- return FilterService.filter(props.options, searchFields, filterValue, props.filterMatchMode, props.filterLocale);
36942
+ return FilterService.filter(options, searchFields, filterValue, props.filterMatchMode, props.filterLocale);
36822
36943
  }
36823
- return props.options;
36944
+ return options;
36824
36945
  };
36825
36946
  var scrollToSelectedIndex = function scrollToSelectedIndex() {
36826
36947
  if (virtualScrollerRef.current) {
@@ -36865,42 +36986,13 @@ var ListBox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
36865
36986
  metaData: metaData
36866
36987
  }) : null;
36867
36988
  };
36868
- var createGroupChildren = function createGroupChildren(optionGroup, style) {
36869
- var groupChildren = getOptionGroupChildren(optionGroup);
36870
- return groupChildren.map(function (option, j) {
36871
- var optionLabel = getOptionLabel(option);
36872
- var optionKey = j + '_' + getOptionRenderKey(option);
36873
- var disabled = isOptionDisabled(option);
36874
- return /*#__PURE__*/React__namespace.createElement(ListBoxItem, {
36875
- id: id.current + '_' + j,
36876
- hostName: "ListBox",
36877
- optionKey: optionKey,
36878
- key: optionKey,
36879
- label: optionLabel,
36880
- option: option,
36881
- style: style,
36882
- template: props.itemTemplate,
36883
- selected: isSelected(option),
36884
- onOptionMouseDown: onOptionMouseDown,
36885
- onOptionMouseMove: onOptionMouseMove,
36886
- onClick: onOptionSelect,
36887
- index: j,
36888
- focusedOptionIndex: focusedOptionIndex,
36889
- onTouchEnd: onOptionTouchEnd,
36890
- disabled: disabled,
36891
- ptCallbacks: ptCallbacks,
36892
- metaData: metaData
36893
- });
36894
- });
36895
- };
36896
36989
  var createItem = function createItem(option, index) {
36897
36990
  var scrollerOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
36898
36991
  var style = {
36899
36992
  height: scrollerOptions.props ? scrollerOptions.props.itemSize : undefined
36900
36993
  };
36901
- if (props.optionGroupLabel) {
36994
+ if (option.group && option.optionGroup && props.optionGroupLabel) {
36902
36995
  var groupContent = props.optionGroupTemplate ? ObjectUtils.getJSXElement(props.optionGroupTemplate, option, index) : getOptionGroupLabel(option);
36903
- var groupChildrenContent = createGroupChildren(option, style);
36904
36996
  var key = index + '_' + getOptionGroupRenderKey(option);
36905
36997
  var itemGroupProps = mergeProps({
36906
36998
  className: ptCallbacks.cx('itemGroup'),
@@ -36909,9 +37001,9 @@ var ListBox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
36909
37001
  }),
36910
37002
  role: 'group'
36911
37003
  }, ptCallbacks.ptm('itemGroup'));
36912
- return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, {
37004
+ return /*#__PURE__*/React__namespace.createElement("li", _extends({
36913
37005
  key: key
36914
- }, /*#__PURE__*/React__namespace.createElement("li", itemGroupProps, groupContent), groupChildrenContent);
37006
+ }, itemGroupProps), groupContent);
36915
37007
  }
36916
37008
  var optionLabel = getOptionLabel(option);
36917
37009
  var optionKey = index + '_' + getOptionRenderKey(option);
@@ -40524,10 +40616,10 @@ var MeterGroup = function MeterGroup(inProps) {
40524
40616
  name: 'metergroup'
40525
40617
  });
40526
40618
  var totalPercent = 0;
40527
- var precentages = [];
40619
+ var percentages = [];
40528
40620
  values.map(function (item) {
40529
40621
  totalPercent = totalPercent + item.value;
40530
- precentages.push(Math.round(item.value / totalPercent * 100));
40622
+ percentages.push(Math.round(item.value / totalPercent * 100));
40531
40623
  });
40532
40624
  var calculatePercentage = function calculatePercentage() {
40533
40625
  var meterValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
@@ -40601,7 +40693,7 @@ var MeterGroup = function MeterGroup(inProps) {
40601
40693
  };
40602
40694
  var templateProps = {
40603
40695
  totalPercent: totalPercent,
40604
- precentages: precentages,
40696
+ percentages: percentages,
40605
40697
  values: values
40606
40698
  };
40607
40699
  var labelListContent = labelList || createLabelList();
@@ -43693,7 +43785,6 @@ var OrganizationChartNode = /*#__PURE__*/React__namespace.memo(function (props)
43693
43785
  /* eslint-enable */
43694
43786
  );
43695
43787
  }
43696
-
43697
43788
  return null;
43698
43789
  };
43699
43790
  var createNodeLabel = function createNodeLabel() {
@@ -50715,7 +50806,6 @@ var TieredMenuSub = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
50715
50806
  'aria-disabled': disabled,
50716
50807
  'aria-expanded': grouped ? active : undefined,
50717
50808
  'aria-haspopup': grouped && !url ? 'menu' : undefined,
50718
- 'aria-level': props.level + 1,
50719
50809
  'aria-setsize': getAriaSetSize(),
50720
50810
  'aria-posinset': getAriaPosInset(index),
50721
50811
  'data-p-highlight': active,
@@ -53994,7 +54084,6 @@ var TabView = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
53994
54084
  React__namespace.createElement("a", headerActionProps, leftIconElement, titleElement, rightIconElement, closableIconElement, /*#__PURE__*/React__namespace.createElement(Ripple, null))
53995
54085
  // eslint-enable /
53996
54086
  ;
53997
-
53998
54087
  if (headerTemplate) {
53999
54088
  var defaultContentOptions = {
54000
54089
  className: 'p-tabview-nav-link',
@@ -55805,18 +55894,18 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
55805
55894
  }
55806
55895
  };
55807
55896
  var onDropPointDragOver = function onDropPointDragOver(event) {
55808
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55897
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55809
55898
  event.dataTransfer.dropEffect = 'move';
55810
55899
  event.preventDefault();
55811
55900
  }
55812
55901
  };
55813
55902
  var onDropPointDragEnter = function onDropPointDragEnter(event) {
55814
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55903
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55815
55904
  DomHandler.addClass(event.target, 'p-treenode-droppoint-active');
55816
55905
  }
55817
55906
  };
55818
55907
  var onDropPointDragLeave = function onDropPointDragLeave(event) {
55819
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55908
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55820
55909
  DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
55821
55910
  }
55822
55911
  };
@@ -55835,19 +55924,19 @@ var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
55835
55924
  }
55836
55925
  };
55837
55926
  var onDragOver = function onDragOver(event) {
55838
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55927
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55839
55928
  event.dataTransfer.dropEffect = 'move';
55840
55929
  event.preventDefault();
55841
55930
  event.stopPropagation();
55842
55931
  }
55843
55932
  };
55844
55933
  var onDragEnter = function onDragEnter(event) {
55845
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55934
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55846
55935
  DomHandler.addClass(contentRef.current, 'p-treenode-dragover');
55847
55936
  }
55848
55937
  };
55849
55938
  var onDragLeave = function onDragLeave(event) {
55850
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55939
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55851
55940
  var rect = event.currentTarget.getBoundingClientRect();
55852
55941
  if (event.nativeEvent.x > rect.left + rect.width || event.nativeEvent.x < rect.left || event.nativeEvent.y >= Math.floor(rect.top + rect.height) || event.nativeEvent.y < rect.top) {
55853
55942
  DomHandler.removeClass(contentRef.current, 'p-treenode-dragover');
@@ -57027,7 +57116,6 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
57027
57116
  event.preventDefault();
57028
57117
  focusInputRef.current && DomHandler.focus(focusInputRef.current);
57029
57118
  break;
57030
- case 'Space':
57031
57119
  case 'Enter':
57032
57120
  case 'NumpadEnter':
57033
57121
  event.preventDefault();
@@ -58626,7 +58714,6 @@ var TreeTableRow = /*#__PURE__*/React__namespace.memo(function (props) {
58626
58714
  }, getRowPTOptions('row'), {
58627
58715
  className: classNames(rowClassName, props.node.className) // #5983 must be last so all unstyled merging takes place first
58628
58716
  });
58629
-
58630
58717
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("tr", _extends({
58631
58718
  ref: elementRef
58632
58719
  }, rowProps), cells), children);
@@ -60150,7 +60237,6 @@ var TreeTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref)
60150
60237
  draggedColumn.current = column;
60151
60238
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
60152
60239
  };
60153
-
60154
60240
  var onColumnDragOver = function onColumnDragOver(e) {
60155
60241
  var event = e.originalEvent,
60156
60242
  column = e.column;