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
@@ -218,7 +218,7 @@ var DomHandler = /*#__PURE__*/function () {
218
218
  function DomHandler() {
219
219
  _classCallCheck(this, DomHandler);
220
220
  }
221
- _createClass(DomHandler, null, [{
221
+ return _createClass(DomHandler, null, [{
222
222
  key: "innerWidth",
223
223
  value: function innerWidth(el) {
224
224
  if (el) {
@@ -1448,7 +1448,6 @@ var DomHandler = /*#__PURE__*/function () {
1448
1448
  return false;
1449
1449
  }
1450
1450
  }]);
1451
- return DomHandler;
1452
1451
  }();
1453
1452
  /**
1454
1453
  * All data- properties like data-test-id
@@ -1491,7 +1490,7 @@ var ObjectUtils = /*#__PURE__*/function () {
1491
1490
  function ObjectUtils() {
1492
1491
  _classCallCheck(this, ObjectUtils);
1493
1492
  }
1494
- _createClass(ObjectUtils, null, [{
1493
+ return _createClass(ObjectUtils, null, [{
1495
1494
  key: "equals",
1496
1495
  value: function equals(obj1, obj2, field) {
1497
1496
  if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
@@ -2013,7 +2012,6 @@ var ObjectUtils = /*#__PURE__*/function () {
2013
2012
  }
2014
2013
  }
2015
2014
  }]);
2016
- return ObjectUtils;
2017
2015
  }();
2018
2016
 
2019
2017
  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; }
@@ -2022,7 +2020,7 @@ var IconUtils = /*#__PURE__*/function () {
2022
2020
  function IconUtils() {
2023
2021
  _classCallCheck(this, IconUtils);
2024
2022
  }
2025
- _createClass(IconUtils, null, [{
2023
+ return _createClass(IconUtils, null, [{
2026
2024
  key: "getJSXIcon",
2027
2025
  value: function getJSXIcon(icon) {
2028
2026
  var iconProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -2045,7 +2043,6 @@ var IconUtils = /*#__PURE__*/function () {
2045
2043
  return content;
2046
2044
  }
2047
2045
  }]);
2048
- return IconUtils;
2049
2046
  }();
2050
2047
 
2051
2048
  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; }
@@ -3848,7 +3845,8 @@ var ESC_KEY_HANDLING_PRIORITIES = {
3848
3845
  PASSWORD: 700,
3849
3846
  CASCADE_SELECT: 800,
3850
3847
  SPLIT_BUTTON: 900,
3851
- SPEED_DIAL: 1000
3848
+ SPEED_DIAL: 1000,
3849
+ TOOLTIP: 1200
3852
3850
  };
3853
3851
 
3854
3852
  /**
@@ -5018,32 +5016,26 @@ var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
5018
5016
  props.onEnter && props.onEnter(node, isAppearing); // component
5019
5017
  props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
5020
5018
  };
5021
-
5022
5019
  var onEntering = function onEntering(node, isAppearing) {
5023
5020
  props.onEntering && props.onEntering(node, isAppearing); // component
5024
5021
  props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
5025
5022
  };
5026
-
5027
5023
  var onEntered = function onEntered(node, isAppearing) {
5028
5024
  props.onEntered && props.onEntered(node, isAppearing); // component
5029
5025
  props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
5030
5026
  };
5031
-
5032
5027
  var onExit = function onExit(node) {
5033
5028
  props.onExit && props.onExit(node); // component
5034
5029
  props.options && props.options.onExit && props.options.onExit(node); // user option
5035
5030
  };
5036
-
5037
5031
  var onExiting = function onExiting(node) {
5038
5032
  props.onExiting && props.onExiting(node); // component
5039
5033
  props.options && props.options.onExiting && props.options.onExiting(node); // user option
5040
5034
  };
5041
-
5042
5035
  var onExited = function onExited(node) {
5043
5036
  props.onExited && props.onExited(node); // component
5044
5037
  props.options && props.options.onExited && props.options.onExited(node); // user option
5045
5038
  };
5046
-
5047
5039
  useUpdateEffect(function () {
5048
5040
  if (disabled) {
5049
5041
  // no animation
@@ -5794,6 +5786,7 @@ var TooltipBase = ComponentBase.extend({
5794
5786
  autoZIndex: true,
5795
5787
  baseZIndex: 0,
5796
5788
  className: null,
5789
+ closeOnEscape: false,
5797
5790
  content: null,
5798
5791
  disabled: false,
5799
5792
  event: null,
@@ -5864,6 +5857,13 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
5864
5857
  useHandleStyle(TooltipBase.css.styles, isUnstyled, {
5865
5858
  name: 'tooltip'
5866
5859
  });
5860
+ useGlobalOnEscapeKey({
5861
+ callback: function callback() {
5862
+ hide();
5863
+ },
5864
+ when: props.closeOnEscape,
5865
+ priority: [ESC_KEY_HANDLING_PRIORITIES.TOOLTIP, 0]
5866
+ });
5867
5867
  var elementRef = React.useRef(null);
5868
5868
  var textRef = React.useRef(null);
5869
5869
  var currentTargetRef = React.useRef(null);
@@ -6261,7 +6261,8 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
6261
6261
  };
6262
6262
  }, [visibleState]);
6263
6263
  useUpdateEffect(function () {
6264
- if (visibleState) {
6264
+ var position = getPosition(currentTargetRef.current);
6265
+ if (visibleState && position !== 'mouse') {
6265
6266
  applyDelay('updateDelay', function () {
6266
6267
  updateText(currentTargetRef.current, function () {
6267
6268
  align(currentTargetRef.current);
@@ -6484,6 +6485,7 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (in
6484
6485
  var rootProps = mergeProps({
6485
6486
  ref: elementRef,
6486
6487
  'aria-label': defaultAriaLabel,
6488
+ 'data-pc-autofocus': props.autoFocus,
6487
6489
  className: classNames(props.className, cx('root', {
6488
6490
  size: size,
6489
6491
  disabled: disabled
@@ -9810,24 +9812,33 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
9810
9812
  newViewDate.setDate(1);
9811
9813
  if (currentView === 'date') {
9812
9814
  if (newViewDate.getMonth() === 0) {
9815
+ var newYear = decrementYear();
9813
9816
  newViewDate.setMonth(11);
9814
- newViewDate.setFullYear(decrementYear());
9817
+ newViewDate.setFullYear(newYear);
9818
+ props.onMonthChange && props.onMonthChange({
9819
+ month: 11,
9820
+ year: newYear
9821
+ });
9815
9822
  setCurrentMonth(11);
9816
9823
  } else {
9817
9824
  newViewDate.setMonth(newViewDate.getMonth() - 1);
9825
+ props.onMonthChange && props.onMonthChange({
9826
+ month: currentMonth - 1,
9827
+ year: currentYear
9828
+ });
9818
9829
  setCurrentMonth(function (prevState) {
9819
9830
  return prevState - 1;
9820
9831
  });
9821
9832
  }
9822
9833
  } else if (currentView === 'month') {
9823
- var newYear = newViewDate.getFullYear() - 1;
9834
+ var _newYear = newViewDate.getFullYear() - 1;
9824
9835
  if (props.yearNavigator) {
9825
9836
  var minYear = parseInt(props.yearRange.split(':')[0], 10);
9826
- if (newYear < minYear) {
9827
- newYear = minYear;
9837
+ if (_newYear < minYear) {
9838
+ _newYear = minYear;
9828
9839
  }
9829
9840
  }
9830
- newViewDate.setFullYear(newYear);
9841
+ newViewDate.setFullYear(_newYear);
9831
9842
  }
9832
9843
  if (currentView === 'month') {
9833
9844
  newViewDate.setFullYear(decrementYear());
@@ -9846,24 +9857,33 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
9846
9857
  newViewDate.setDate(1);
9847
9858
  if (currentView === 'date') {
9848
9859
  if (newViewDate.getMonth() === 11) {
9860
+ var newYear = incrementYear();
9849
9861
  newViewDate.setMonth(0);
9850
- newViewDate.setFullYear(incrementYear());
9862
+ newViewDate.setFullYear(newYear);
9863
+ props.onMonthChange && props.onMonthChange({
9864
+ month: 0,
9865
+ year: newYear
9866
+ });
9851
9867
  setCurrentMonth(0);
9852
9868
  } else {
9853
9869
  newViewDate.setMonth(newViewDate.getMonth() + 1);
9870
+ props.onMonthChange && props.onMonthChange({
9871
+ month: currentMonth + 1,
9872
+ year: currentYear
9873
+ });
9854
9874
  setCurrentMonth(function (prevState) {
9855
9875
  return prevState + 1;
9856
9876
  });
9857
9877
  }
9858
9878
  } else if (currentView === 'month') {
9859
- var newYear = newViewDate.getFullYear() + 1;
9879
+ var _newYear2 = newViewDate.getFullYear() + 1;
9860
9880
  if (props.yearNavigator) {
9861
9881
  var maxYear = parseInt(props.yearRange.split(':')[1], 10);
9862
- if (newYear > maxYear) {
9863
- newYear = maxYear;
9882
+ if (_newYear2 > maxYear) {
9883
+ _newYear2 = maxYear;
9864
9884
  }
9865
9885
  }
9866
- newViewDate.setFullYear(newYear);
9886
+ newViewDate.setFullYear(_newYear2);
9867
9887
  }
9868
9888
  if (currentView === 'month') {
9869
9889
  newViewDate.setFullYear(incrementYear());
@@ -9901,6 +9921,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
9901
9921
  var onMonthDropdownChange = function onMonthDropdownChange(event, value) {
9902
9922
  var currentViewDate = getViewDate();
9903
9923
  var newViewDate = cloneDate(currentViewDate);
9924
+ newViewDate.setDate(1);
9904
9925
  newViewDate.setMonth(parseInt(value, 10));
9905
9926
  updateViewDate(event, newViewDate);
9906
9927
  };
@@ -10860,6 +10881,9 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
10860
10881
  }
10861
10882
  };
10862
10883
  var onDateSelect = function onDateSelect(event, dateMeta, timeMeta) {
10884
+ if (!event) {
10885
+ return;
10886
+ }
10863
10887
  if (props.disabled || !dateMeta.selectable) {
10864
10888
  event.preventDefault();
10865
10889
  return;
@@ -11484,28 +11508,44 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
11484
11508
  return props.value != null && typeof props.value !== 'string';
11485
11509
  };
11486
11510
  var isMonthSelected = function isMonthSelected(month) {
11487
- if (isComparable()) {
11488
- var value = isRangeSelection() ? props.value[0] : props.value;
11489
- if (isMultipleSelection()) {
11490
- return value.some(function (currentValue) {
11491
- return currentValue.getMonth() === month && currentValue.getFullYear() === currentYear;
11492
- });
11511
+ if (!isComparable()) return false;
11512
+ if (isMultipleSelection()) {
11513
+ return props.value.some(function (v) {
11514
+ return v.getMonth() === month && v.getFullYear() === currentYear;
11515
+ });
11516
+ } else if (isRangeSelection()) {
11517
+ var _props$value = _slicedToArray(props.value, 2),
11518
+ start = _props$value[0],
11519
+ end = _props$value[1];
11520
+ var startYear = start ? start.getFullYear() : null;
11521
+ var endYear = end ? end.getFullYear() : null;
11522
+ var startMonth = start ? start.getMonth() : null;
11523
+ var endMonth = end ? end.getMonth() : null;
11524
+ if (!end) {
11525
+ return startYear === currentYear && startMonth === month;
11526
+ } else {
11527
+ var currentDate = new Date(currentYear, month, 1);
11528
+ var startDate = new Date(startYear, startMonth, 1);
11529
+ var endDate = new Date(endYear, endMonth, 1);
11530
+ return currentDate >= startDate && currentDate <= endDate;
11493
11531
  }
11494
- return value.getMonth() === month && value.getFullYear() === currentYear;
11532
+ } else {
11533
+ return props.value.getMonth() === month && props.value.getFullYear() === currentYear;
11495
11534
  }
11496
- return false;
11497
11535
  };
11498
11536
  var isYearSelected = function isYearSelected(year) {
11499
- if (isComparable()) {
11500
- var value = isRangeSelection() ? props.value[0] : props.value;
11501
- if (isMultipleSelection()) {
11502
- return value.some(function (currentValue) {
11503
- return currentValue.getFullYear() === year;
11504
- });
11505
- }
11506
- return value.getFullYear() === year;
11537
+ if (!isComparable()) return false;
11538
+ if (isMultipleSelection()) {
11539
+ return props.value.some(function (v) {
11540
+ return v.getFullYear() === year;
11541
+ });
11542
+ } else if (isRangeSelection()) {
11543
+ var start = props.value[0] ? props.value[0].getFullYear() : null;
11544
+ var end = props.value[1] ? props.value[1].getFullYear() : null;
11545
+ return start === year || end === year || start < year && end > year;
11546
+ } else {
11547
+ return props.value.getFullYear() === year;
11507
11548
  }
11508
- return false;
11509
11549
  };
11510
11550
  var switchViewButtonDisabled = function switchViewButtonDisabled() {
11511
11551
  return props.numberOfMonths > 1 || props.disabled;
@@ -11998,7 +12038,6 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
11998
12038
  if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
11999
12039
  throw new Error('Invalid date'); // E.g. 31/02/00
12000
12040
  }
12001
-
12002
12041
  return date;
12003
12042
  };
12004
12043
  var isInMinYear = function isInMinYear(viewDate) {
@@ -12101,26 +12140,25 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
12101
12140
  isTypingRef.current = false;
12102
12141
 
12103
12142
  // #3516 view date not updated when value set programatically
12104
- if (!visible && newDate) {
12105
- var viewDate = newDate;
12106
- if (isMultipleSelection()) {
12107
- if (newDate.length) {
12108
- viewDate = newDate[newDate.length - 1];
12109
- }
12110
- } else if (isRangeSelection()) {
12111
- if (newDate.length) {
12112
- var startDate = newDate[0];
12113
- var endDate = newDate[1];
12114
- viewDate = endDate || startDate;
12115
- }
12143
+ if (!newDate) return;
12144
+ var viewDate = newDate;
12145
+ if (isMultipleSelection()) {
12146
+ if (newDate.length) {
12147
+ viewDate = newDate[newDate.length - 1];
12116
12148
  }
12117
- if (viewDate instanceof Date) {
12118
- validateDate(viewDate);
12119
- setViewDateState(viewDate);
12120
- setCurrentMonth(viewDate.getMonth());
12121
- setCurrentYear(viewDate.getFullYear());
12149
+ } else if (isRangeSelection()) {
12150
+ if (newDate.length) {
12151
+ var startDate = newDate[0];
12152
+ var endDate = newDate[1];
12153
+ viewDate = endDate || startDate;
12122
12154
  }
12123
12155
  }
12156
+ if (viewDate instanceof Date) {
12157
+ validateDate(viewDate);
12158
+ setViewDateState(viewDate);
12159
+ setCurrentMonth(viewDate.getMonth());
12160
+ setCurrentYear(viewDate.getFullYear());
12161
+ }
12124
12162
  }
12125
12163
  }, [props.value, visible]);
12126
12164
  useUpdateEffect(function () {
@@ -14912,8 +14950,15 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
14912
14950
  var mergeProps = useMergeProps();
14913
14951
  var context = React.useContext(PrimeReactContext);
14914
14952
  var props = CheckboxBase.getProps(inProps, context);
14953
+ var _React$useState = React.useState(false),
14954
+ _React$useState2 = _slicedToArray(_React$useState, 2),
14955
+ focusedState = _React$useState2[0],
14956
+ setFocusedState = _React$useState2[1];
14915
14957
  var _CheckboxBase$setMeta = CheckboxBase.setMetaData({
14916
14958
  props: props,
14959
+ state: {
14960
+ focused: focusedState
14961
+ },
14917
14962
  context: {
14918
14963
  checked: props.checked === props.trueValue,
14919
14964
  disabled: props.disabled
@@ -14967,10 +15012,12 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
14967
15012
  };
14968
15013
  var _onFocus = function onFocus() {
14969
15014
  var _props$onFocus;
15015
+ setFocusedState(true);
14970
15016
  props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
14971
15017
  };
14972
15018
  var _onBlur = function onBlur() {
14973
15019
  var _props$onBlur;
15020
+ setFocusedState(false);
14974
15021
  props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
14975
15022
  };
14976
15023
  React.useImperativeHandle(ref, function () {
@@ -15803,9 +15850,18 @@ var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
15803
15850
  ptm = _ColorPickerBase$setM.ptm,
15804
15851
  cx = _ColorPickerBase$setM.cx,
15805
15852
  isUnstyled = _ColorPickerBase$setM.isUnstyled;
15853
+ var isCloseOnEscape = overlayVisibleState && props.closeOnEscape;
15854
+ var overlayDisplayOrder = useDisplayOrder('overlay-panel', isCloseOnEscape);
15806
15855
  useHandleStyle(ColorPickerBase.css.styles, isUnstyled, {
15807
15856
  name: 'colorpicker'
15808
15857
  });
15858
+ useGlobalOnEscapeKey({
15859
+ callback: function callback() {
15860
+ hide();
15861
+ },
15862
+ when: overlayVisibleState && overlayDisplayOrder,
15863
+ priority: [ESC_KEY_HANDLING_PRIORITIES.OVERLAY_PANEL, overlayDisplayOrder]
15864
+ });
15809
15865
  var elementRef = React.useRef(null);
15810
15866
  var overlayRef = React.useRef(null);
15811
15867
  var inputRef = React.useRef(props.inputRef);
@@ -15873,12 +15929,17 @@ var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
15873
15929
  pickHue(event);
15874
15930
  !isUnstyled && DomHandler.addClass(elementRef.current, 'p-colorpicker-dragging');
15875
15931
  };
15932
+ var getPositionY = function getPositionY(event) {
15933
+ if (event.pageY !== undefined) return event.pageY;else if (event.changedTouches !== undefined) return event.changedTouches[0].pageY;else return 0;
15934
+ };
15876
15935
  var pickHue = function pickHue(event) {
15877
- var top = hueViewRef.current.getBoundingClientRect().top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);
15936
+ var top = hueViewRef.current.getBoundingClientRect().top + (window.scrollY || document.documentElement.scrollTop || document.body.scrollTop || 0);
15937
+ var yPos = getPositionY(event);
15938
+ var hue = Math.floor(360 * (150 - Math.max(0, Math.min(150, yPos - top))) / 150);
15878
15939
  hsbValue.current = validateHSB({
15879
- h: Math.floor(360 * (150 - Math.max(0, Math.min(150, (event.pageY || event.changedTouches[0].pageY) - top))) / 150),
15880
- s: 100,
15881
- b: 100
15940
+ h: hue,
15941
+ s: hsbValue.current.s,
15942
+ b: hsbValue.current.b
15882
15943
  });
15883
15944
  updateColorSelector();
15884
15945
  updateHue();
@@ -16401,6 +16462,15 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
16401
16462
  var getTarget = function getTarget() {
16402
16463
  return firstFocusableElementRef.current && firstFocusableElementRef.current.parentElement;
16403
16464
  };
16465
+
16466
+ /**
16467
+ * This method sets the auto focus on the first focusable element within the target element.
16468
+ * It first tries to find a focusable element using the autoFocusSelector. If no such element is found,
16469
+ * it then tries to find a focusable element using the firstFocusableSelector.
16470
+ * If the autoFocus prop is set to true and a focusable element is found, it sets the focus on that element.
16471
+ *
16472
+ * @param {HTMLElement} target - The target element within which to find a focusable element.
16473
+ */
16404
16474
  var setAutoFocus = function setAutoFocus(target) {
16405
16475
  var _ref = props || {},
16406
16476
  _ref$autoFocusSelecto = _ref.autoFocusSelector,
@@ -16409,7 +16479,9 @@ var FocusTrap = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__default.fo
16409
16479
  firstFocusableSelector = _ref$firstFocusableSe === void 0 ? '' : _ref$firstFocusableSe,
16410
16480
  _ref$autoFocus = _ref.autoFocus,
16411
16481
  autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
16412
- var focusableElement = DomHandler.getFirstFocusableElement(target, "[autofocus]".concat(getComputedSelector(autoFocusSelector)));
16482
+ var defaultAutoFocusSelector = "".concat(getComputedSelector(autoFocusSelector));
16483
+ var computedAutoFocusSelector = "[autofocus]".concat(defaultAutoFocusSelector, ", [data-pc-autofocus='true']").concat(defaultAutoFocusSelector);
16484
+ var focusableElement = DomHandler.getFirstFocusableElement(target, computedAutoFocusSelector);
16413
16485
  autoFocus && !focusableElement && (focusableElement = DomHandler.getFirstFocusableElement(target, getComputedSelector(firstFocusableSelector)));
16414
16486
  DomHandler.focus(focusableElement);
16415
16487
  };
@@ -17083,7 +17155,9 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
17083
17155
  'aria-label': ariaLabel,
17084
17156
  onClick: onClose,
17085
17157
  onKeyDown: function onKeyDown(ev) {
17086
- return ev.stopPropagation();
17158
+ if (ev.key !== 'Escape') {
17159
+ ev.stopPropagation();
17160
+ }
17087
17161
  }
17088
17162
  }, ptm('closeButton'));
17089
17163
  return /*#__PURE__*/React.createElement("button", closeButtonProps, headerCloseIcon, /*#__PURE__*/React.createElement(Ripple, null));
@@ -19271,6 +19345,19 @@ var DataScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
19271
19345
  }));
19272
19346
  DataScroller.displayName = 'DataScroller';
19273
19347
 
19348
+ var getStorage = function getStorage(stateStorageProp) {
19349
+ switch (stateStorageProp) {
19350
+ case 'local':
19351
+ return window.localStorage;
19352
+ case 'session':
19353
+ return window.sessionStorage;
19354
+ case 'custom':
19355
+ return null;
19356
+ default:
19357
+ throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
19358
+ }
19359
+ };
19360
+
19274
19361
  var ColumnBase = ComponentBase.extend({
19275
19362
  defaultProps: {
19276
19363
  __TYPE: 'Column',
@@ -19857,14 +19944,15 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
19857
19944
  var vertical = props.showButtons && props.buttonLayout === 'vertical';
19858
19945
  var inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits ? 'numeric' : 'decimal');
19859
19946
  var getOptions = function getOptions() {
19947
+ var _props$minFractionDig, _props$maxFractionDig;
19860
19948
  return {
19861
19949
  localeMatcher: props.localeMatcher,
19862
19950
  style: props.mode,
19863
19951
  currency: props.currency,
19864
19952
  currencyDisplay: props.currencyDisplay,
19865
19953
  useGrouping: props.useGrouping,
19866
- minimumFractionDigits: props.minFractionDigits,
19867
- maximumFractionDigits: props.maxFractionDigits,
19954
+ minimumFractionDigits: (_props$minFractionDig = props.minFractionDigits) !== null && _props$minFractionDig !== void 0 ? _props$minFractionDig : undefined,
19955
+ maximumFractionDigits: (_props$maxFractionDig = props.maxFractionDigits) !== null && _props$maxFractionDig !== void 0 ? _props$maxFractionDig : undefined,
19868
19956
  roundingMode: props.roundingMode
19869
19957
  };
19870
19958
  };
@@ -20282,7 +20370,7 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
20282
20370
  if (_char2) {
20283
20371
  var _isDecimalSign = isDecimalSign(_char2);
20284
20372
  var _isMinusSign = isMinusSign(_char2);
20285
- if (event.code && (event.code.startsWith('Digit') || event.code.startsWith('Numpad')) && Number(_char2) >= 0 && Number(_char2) <= 9 || _isMinusSign || _isDecimalSign) {
20373
+ if (Number(_char2) >= 0 && Number(_char2) <= 9 || _isMinusSign || _isDecimalSign) {
20286
20374
  insert(event, _char2, {
20287
20375
  isDecimalSign: _isDecimalSign,
20288
20376
  isMinusSign: _isMinusSign
@@ -21966,10 +22054,9 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
21966
22054
  };
21967
22055
  var onOptionSelect = function onOptionSelect(event, option) {
21968
22056
  var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
21969
- var value = getOptionValue(option);
21970
22057
  selectItem({
21971
22058
  originalEvent: event,
21972
- option: value
22059
+ option: option
21973
22060
  });
21974
22061
  isHide && hide();
21975
22062
  };
@@ -22252,8 +22339,9 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
22252
22339
  }
22253
22340
  };
22254
22341
  var onEditableInputChange = function onEditableInputChange(event) {
22342
+ !overlayVisibleState && show();
22255
22343
  var searchIndex = null;
22256
- if (event.target.value) {
22344
+ if (event.target.value && visibleOptions) {
22257
22345
  searchIndex = visibleOptions.findIndex(function (item) {
22258
22346
  return getOptionLabel(item).toLocaleLowerCase().startsWith(event.target.value.toLocaleLowerCase());
22259
22347
  });
@@ -22459,10 +22547,12 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
22459
22547
  }
22460
22548
  };
22461
22549
  var getOptionLabel = function getOptionLabel(option) {
22462
- return props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : ObjectUtils.resolveFieldData(option, 'label') || option;
22550
+ var optionLabel = props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : ObjectUtils.resolveFieldData(option, 'label');
22551
+ return ObjectUtils.isNotEmpty(optionLabel) ? optionLabel : option;
22463
22552
  };
22464
22553
  var getOptionValue = function getOptionValue(option) {
22465
- return props.optionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : ObjectUtils.resolveFieldData(option, 'value') || option;
22554
+ var optionValue = props.OptionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : ObjectUtils.resolveFieldData(option, 'value');
22555
+ return ObjectUtils.isNotEmpty(optionValue) ? optionValue : option;
22466
22556
  };
22467
22557
  var getOptionRenderKey = function getOptionRenderKey(option) {
22468
22558
  return props.dataKey ? ObjectUtils.resolveFieldData(option, props.dataKey) : getOptionLabel(option);
@@ -22635,7 +22725,7 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
22635
22725
  }, ariaProps), ptm('input'));
22636
22726
  return /*#__PURE__*/React.createElement("input", _inputProps);
22637
22727
  }
22638
- var content = props.valueTemplate ? ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder || 'empty';
22728
+ var content = props.valueTemplate ? ObjectUtils.getJSXElement(props.valueTemplate, selectedOption, props) : label || props.placeholder || props.emptyMessage || /*#__PURE__*/React.createElement(React.Fragment, null, "\xA0");
22639
22729
  var inputProps = mergeProps({
22640
22730
  ref: inputRef,
22641
22731
  className: cx('input', {
@@ -23605,9 +23695,9 @@ var classes$S = {
23605
23695
  'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
23606
23696
  });
23607
23697
  },
23608
- box: 'p-radiobutton-box',
23609
- input: 'p-radiobutton-input',
23610
- icon: 'p-radiobutton-icon'
23698
+ radiobuttonbox: 'p-radiobutton-box',
23699
+ radiobuttoninput: 'p-radiobutton-input',
23700
+ radiobuttonicon: 'p-radiobutton-icon'
23611
23701
  };
23612
23702
  var RadioButtonBase = ComponentBase.extend({
23613
23703
  defaultProps: {
@@ -23746,7 +23836,10 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
23746
23836
  })),
23747
23837
  style: props.style,
23748
23838
  'data-p-checked': props.checked
23749
- }, RadioButtonBase.getOtherProps(props), ptm('root'));
23839
+ }, otherProps, ptm('root'));
23840
+ delete rootProps.input;
23841
+ delete rootProps.box;
23842
+ delete rootProps.icon;
23750
23843
  var createInputElement = function createInputElement() {
23751
23844
  var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
23752
23845
  var inputProps = mergeProps(_objectSpread$1h({
@@ -23761,19 +23854,19 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
23761
23854
  readOnly: props.readonly,
23762
23855
  required: props.required,
23763
23856
  tabIndex: props.tabIndex,
23764
- className: cx('input')
23765
- }, ariaProps), ptm('input'));
23857
+ className: cx('radiobuttoninput')
23858
+ }, ariaProps), inProps.input, ptm('radiobuttoninput'));
23766
23859
  return /*#__PURE__*/React.createElement("input", _extends({
23767
23860
  ref: inputRef
23768
23861
  }, inputProps));
23769
23862
  };
23770
23863
  var createBoxElement = function createBoxElement() {
23771
23864
  var boxProps = mergeProps({
23772
- className: cx('box')
23773
- }, ptm('box'));
23865
+ className: cx('radiobuttonbox')
23866
+ }, inProps.box, ptm('radiobuttonbox'));
23774
23867
  var iconProps = mergeProps({
23775
- className: cx('icon')
23776
- }, ptm('icon'));
23868
+ className: cx('radiobuttonicon')
23869
+ }, inProps.icon, ptm('radiobuttonicon'));
23777
23870
  return /*#__PURE__*/React.createElement("div", boxProps, /*#__PURE__*/React.createElement("div", iconProps));
23778
23871
  };
23779
23872
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
@@ -23821,7 +23914,11 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
23821
23914
  checked: props.checked,
23822
23915
  disabled: props.disabled,
23823
23916
  name: "".concat(props.tableSelector, "_dt_radio"),
23824
- onChange: onChange
23917
+ onChange: onChange,
23918
+ input: getColumnPTOptions('radiobuttoninput'),
23919
+ box: getColumnPTOptions('radiobuttonbox'),
23920
+ icon: getColumnPTOptions('radiobuttonicon'),
23921
+ unstyled: props.unstyled
23825
23922
  }, getColumnPTOptions('radiobutton'));
23826
23923
  return /*#__PURE__*/React.createElement(RadioButton, radioButtonProps);
23827
23924
  });
@@ -23847,7 +23944,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
23847
23944
  var keyHelperRef = React.useRef(null);
23848
23945
  var overlayEventListener = React.useRef(null);
23849
23946
  var selfClick = React.useRef(false);
23850
- var tabindexTimeout = React.useRef(null);
23851
23947
  var initFocusTimeout = React.useRef(null);
23852
23948
  var editingRowDataStateRef = React.useRef(null);
23853
23949
  var _props$ptCallbacks = props.ptCallbacks,
@@ -23884,7 +23980,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
23884
23980
  var field = getColumnProp('field') || "field_".concat(props.index);
23885
23981
  var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
23886
23982
  var isEditable = function isEditable() {
23887
- return getColumnProp('editor');
23983
+ return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
23888
23984
  };
23889
23985
  var cellEditValidateOnClose = function cellEditValidateOnClose() {
23890
23986
  return getColumnProp('cellEditValidateOnClose');
@@ -24028,14 +24124,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24028
24124
  }
24029
24125
  };
24030
24126
  var focusOnElement = function focusOnElement() {
24031
- clearTimeout(tabindexTimeout.current);
24032
- tabindexTimeout.current = setTimeout(function () {
24033
- if (editingState) {
24034
- var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
24035
- focusableEl && focusableEl.focus();
24036
- }
24037
- keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
24038
- }, 1);
24127
+ if (editingState) {
24128
+ var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
24129
+ focusableEl && focusableEl.focus();
24130
+ }
24131
+ keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
24039
24132
  };
24040
24133
  var focusOnInit = function focusOnInit() {
24041
24134
  clearTimeout(initFocusTimeout.current);
@@ -24077,6 +24170,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24077
24170
  if (currentData) {
24078
24171
  ObjectUtils.mutateFieldData(currentData, field, val);
24079
24172
  }
24173
+ editingRowDataStateRef.current = editingRowData;
24080
24174
  };
24081
24175
  var _onClick = function onClick(event) {
24082
24176
  var params = getCellCallbackParams(event);
@@ -24269,14 +24363,11 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24269
24363
  }, [props.editMode, props.editing, editingState]);
24270
24364
  useUpdateEffect(function () {
24271
24365
  if (props.editMode === 'cell' || props.editMode === 'row') {
24272
- setEditingRowDataState(getEditingRowData());
24366
+ var editingRowData = getEditingRowData();
24367
+ setEditingRowDataState(editingRowData);
24368
+ editingRowDataStateRef.current = editingRowData;
24273
24369
  }
24274
24370
  }, [props.editingMeta]);
24275
- React.useEffect(function () {
24276
- if (editingRowDataState) {
24277
- editingRowDataStateRef.current = editingRowDataState;
24278
- }
24279
- }, [editingRowDataState]);
24280
24371
  React.useEffect(function () {
24281
24372
  if (props.editMode === 'cell' || props.editMode === 'row') {
24282
24373
  var callbackParams = getCellCallbackParams();
@@ -24351,7 +24442,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24351
24442
  if (showSelection) {
24352
24443
  var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
24353
24444
  var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
24354
- label = "".concat(props.selected ? ariaLabel('unselectLabel') : ariaLabel('selectLabel'), " ").concat(ariaLabelText);
24445
+ label = "".concat(props.selected ? ariaLabel('unselectRow') : ariaLabel('selectRow'), " ").concat(ariaLabelText);
24355
24446
  }
24356
24447
  content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {
24357
24448
  hostName: props.hostName,
@@ -24366,7 +24457,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24366
24457
  tableSelector: props.tableSelector,
24367
24458
  ariaLabel: label,
24368
24459
  ptCallbacks: props.ptCallbacks,
24369
- metaData: props.metaData
24460
+ metaData: props.metaData,
24461
+ unstyled: props.unstyled
24370
24462
  }), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {
24371
24463
  hostName: props.hostName,
24372
24464
  column: props.column,
@@ -24380,7 +24472,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24380
24472
  ariaLabel: label,
24381
24473
  checkIcon: props.checkIcon,
24382
24474
  ptCallbacks: props.ptCallbacks,
24383
- metaData: props.metaData
24475
+ metaData: props.metaData,
24476
+ unstyled: props.unstyled
24384
24477
  }));
24385
24478
  } else if (rowReorder) {
24386
24479
  var showReorder = props.showRowReorderElement ? props.showRowReorderElement(props.rowData, {
@@ -24543,7 +24636,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24543
24636
  }, editorKeyHelperProps), /*#__PURE__*/React.createElement("span", editorKeyHelperLabelProps));
24544
24637
  /* eslint-enable */
24545
24638
  }
24546
-
24547
24639
  var bodyCellProps = mergeProps({
24548
24640
  style: style,
24549
24641
  className: classNames(bodyClassName, getColumnProp('className'), cellClassName, cx('bodyCell', {
@@ -25027,7 +25119,8 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
25027
25119
  value: props.value,
25028
25120
  virtualScrollerOptions: props.virtualScrollerOptions,
25029
25121
  ptCallbacks: props.ptCallbacks,
25030
- metaData: props.metaData
25122
+ metaData: props.metaData,
25123
+ unstyled: props.unstyled
25031
25124
  });
25032
25125
  }
25033
25126
  return null;
@@ -25106,7 +25199,6 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
25106
25199
  }, getBodyRowPTOptions('bodyRow'), {
25107
25200
  className: classNames(rowClassName) // #5983 must be last so all unstyled merging takes place first
25108
25201
  });
25109
-
25110
25202
  return /*#__PURE__*/React.createElement("tr", rowProps, content);
25111
25203
  });
25112
25204
  BodyRow.displayName = 'BodyRow';
@@ -25814,7 +25906,6 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
25814
25906
  event.dataTransfer.setData('text', 'b'); // For firefox
25815
25907
  }
25816
25908
  };
25817
-
25818
25909
  var onRowDragOver = function onRowDragOver(e) {
25819
25910
  var event = e.originalEvent,
25820
25911
  index = e.index;
@@ -26036,7 +26127,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
26036
26127
  expandedRowIcon: props.expandedRowIcon,
26037
26128
  collapsedRowIcon: props.collapsedRowIcon,
26038
26129
  ptCallbacks: props.ptCallbacks,
26039
- metaData: props.metaData
26130
+ metaData: props.metaData,
26131
+ unstyled: props.unstyled
26040
26132
  });
26041
26133
  var options = {
26042
26134
  index: rowIndex,
@@ -26141,7 +26233,8 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
26141
26233
  value: props.value,
26142
26234
  virtualScrollerOptions: props.virtualScrollerOptions,
26143
26235
  ptCallbacks: props.ptCallbacks,
26144
- metaData: props.metaData
26236
+ metaData: props.metaData,
26237
+ unstyled: props.unstyled
26145
26238
  });
26146
26239
  }
26147
26240
  };
@@ -27651,7 +27744,7 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
27651
27744
  column: props.column
27652
27745
  });
27653
27746
  };
27654
- var onResizerMouseDown = function onResizerMouseDown(event) {
27747
+ var onResizeStart = function onResizeStart(event) {
27655
27748
  props.onColumnResizeStart({
27656
27749
  originalEvent: event,
27657
27750
  column: props.column
@@ -27688,7 +27781,10 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
27688
27781
  var columnResizerProps = mergeProps({
27689
27782
  className: cx('columnResizer'),
27690
27783
  onMouseDown: function onMouseDown(e) {
27691
- return onResizerMouseDown(e);
27784
+ return onResizeStart(e);
27785
+ },
27786
+ onTouchStart: function onTouchStart(e) {
27787
+ return onResizeStart(e);
27692
27788
  },
27693
27789
  onClick: function onClick(e) {
27694
27790
  return onResizerClick(e);
@@ -27748,7 +27844,8 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
27748
27844
  onChange: props.onColumnCheckboxChange,
27749
27845
  disabled: props.empty,
27750
27846
  ptCallbacks: ptCallbacks,
27751
- metaData: parentMetaData
27847
+ metaData: parentMetaData,
27848
+ unstyled: props.unstyled
27752
27849
  });
27753
27850
  }
27754
27851
  return null;
@@ -28106,19 +28203,6 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
28106
28203
  });
28107
28204
  TableHeader.displayName = 'TableHeader';
28108
28205
 
28109
- var getStorage = function getStorage(stateStorageProp) {
28110
- switch (stateStorageProp) {
28111
- case 'local':
28112
- return window.localStorage;
28113
- case 'session':
28114
- return window.sessionStorage;
28115
- case 'custom':
28116
- return null;
28117
- default:
28118
- throw new Error(stateStorageProp + ' is not a valid value for the state storage, supported values are "local", "session" and "custom".');
28119
- }
28120
- };
28121
-
28122
28206
  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; } } }; }
28123
28207
  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); }
28124
28208
  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; }
@@ -28227,29 +28311,40 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
28227
28311
  setRowsState(props.rows);
28228
28312
  setD_rowsState(props.rows);
28229
28313
  }
28314
+ var columnResizeStartListener = function columnResizeStartListener(event) {
28315
+ return columnResizing.current && onColumnResize(event);
28316
+ };
28317
+ var columnResizeEndListener = function columnResizeEndListener() {
28318
+ return columnResizing.current && (columnResizing.current = false, onColumnResizeEnd());
28319
+ };
28230
28320
  var _useEventListener = useEventListener({
28231
28321
  type: 'mousemove',
28232
- listener: function listener(event) {
28233
- if (columnResizing.current) {
28234
- onColumnResize(event);
28235
- }
28236
- }
28322
+ listener: columnResizeStartListener
28237
28323
  }),
28238
28324
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
28239
28325
  bindDocumentMouseMoveListener = _useEventListener2[0],
28240
28326
  unbindDocumentMouseMoveListener = _useEventListener2[1];
28241
28327
  var _useEventListener3 = useEventListener({
28242
28328
  type: 'mouseup',
28243
- listener: function listener() {
28244
- if (columnResizing.current) {
28245
- columnResizing.current = false;
28246
- onColumnResizeEnd();
28247
- }
28248
- }
28329
+ listener: columnResizeEndListener
28249
28330
  }),
28250
28331
  _useEventListener4 = _slicedToArray(_useEventListener3, 2),
28251
28332
  bindDocumentMouseUpListener = _useEventListener4[0],
28252
28333
  unbindDocumentMouseUpListener = _useEventListener4[1];
28334
+ var _useEventListener5 = useEventListener({
28335
+ type: 'touchmove',
28336
+ listener: columnResizeStartListener
28337
+ }),
28338
+ _useEventListener6 = _slicedToArray(_useEventListener5, 2),
28339
+ bindDocumentTouchMoveListener = _useEventListener6[0],
28340
+ unbindDocumentTouchMoveListener = _useEventListener6[1];
28341
+ var _useEventListener7 = useEventListener({
28342
+ type: 'touchend',
28343
+ listener: columnResizeEndListener
28344
+ }),
28345
+ _useEventListener8 = _slicedToArray(_useEventListener7, 2),
28346
+ bindDocumentTouchEndListener = _useEventListener8[0],
28347
+ unbindDocumentTouchEndListener = _useEventListener8[1];
28253
28348
  var isCustomStateStorage = function isCustomStateStorage() {
28254
28349
  return props.stateStorage === 'custom';
28255
28350
  };
@@ -28585,7 +28680,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
28585
28680
  resizeColumn.current = column;
28586
28681
  resizeColumnElement.current = event.currentTarget.parentElement;
28587
28682
  columnResizing.current = true;
28588
- lastResizeHelperX.current = event.pageX - containerLeft + elementRef.current.scrollLeft;
28683
+ lastResizeHelperX.current = (event.type === 'touchstart' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft;
28589
28684
  bindColumnResizeEvents();
28590
28685
  };
28591
28686
  var onColumnResize = function onColumnResize(event) {
@@ -28593,7 +28688,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
28593
28688
  elementRef.current.setAttribute('data-p-unselectable-text', true);
28594
28689
  resizeHelperRef.current.style.height = elementRef.current.offsetHeight + 'px';
28595
28690
  resizeHelperRef.current.style.top = 0 + 'px';
28596
- resizeHelperRef.current.style.left = event.pageX - containerLeft + elementRef.current.scrollLeft + 'px';
28691
+ resizeHelperRef.current.style.left = (event.type === 'touchmove' ? event.changedTouches[0].clientX : event.pageX) - containerLeft + elementRef.current.scrollLeft + 'px';
28597
28692
  resizeHelperRef.current.style.display = 'block';
28598
28693
  };
28599
28694
  var onColumnResizeEnd = function onColumnResizeEnd() {
@@ -28664,10 +28759,14 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
28664
28759
  var bindColumnResizeEvents = function bindColumnResizeEvents() {
28665
28760
  bindDocumentMouseMoveListener();
28666
28761
  bindDocumentMouseUpListener();
28762
+ bindDocumentTouchMoveListener();
28763
+ bindDocumentTouchEndListener();
28667
28764
  };
28668
28765
  var unbindColumnResizeEvents = function unbindColumnResizeEvents() {
28669
28766
  unbindDocumentMouseMoveListener();
28670
28767
  unbindDocumentMouseUpListener();
28768
+ unbindDocumentTouchMoveListener();
28769
+ unbindDocumentTouchEndListener();
28671
28770
  };
28672
28771
  var onColumnHeaderMouseDown = function onColumnHeaderMouseDown(e) {
28673
28772
  DomHandler.clearSelection();
@@ -28733,7 +28832,6 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
28733
28832
  draggedColumnElement.current = findParentHeader(event.currentTarget);
28734
28833
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
28735
28834
  };
28736
-
28737
28835
  var onColumnHeaderDragOver = function onColumnHeaderDragOver(e) {
28738
28836
  var event = e.originalEvent,
28739
28837
  column = e.column;
@@ -29498,7 +29596,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29498
29596
  className: ptCallbacks.cx('loadingIcon')
29499
29597
  }, ptCallbacks.ptm('loadingIcon'));
29500
29598
  var icon = props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, _extends({}, loadingIconProps, {
29501
- spin: true
29599
+ spin: true,
29600
+ unstyled: props.unstyled
29502
29601
  }));
29503
29602
  var loadingIcon = IconUtils.getJSXIcon(icon, _objectSpread$17({}, loadingIconProps), {
29504
29603
  props: props
@@ -29665,7 +29764,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29665
29764
  value: props.frozenValue,
29666
29765
  virtualScrollerOptions: options,
29667
29766
  ptCallbacks: ptCallbacks,
29668
- metaData: metaData
29767
+ metaData: metaData,
29768
+ unstyled: props.unstyled
29669
29769
  });
29670
29770
  var body = /*#__PURE__*/React.createElement(TableBody, {
29671
29771
  hostName: "DataTable",
@@ -29748,7 +29848,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29748
29848
  virtualScrollerContentRef: contentRef,
29749
29849
  virtualScrollerOptions: options,
29750
29850
  ptCallbacks: ptCallbacks,
29751
- metaData: metaData
29851
+ metaData: metaData,
29852
+ unstyled: props.unstyled
29752
29853
  });
29753
29854
  var spacerBody = ObjectUtils.isNotEmpty(spacerStyle) ? /*#__PURE__*/React.createElement(TableBody, {
29754
29855
  hostName: "DataTable",
@@ -29757,7 +29858,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29757
29858
  },
29758
29859
  className: "p-datatable-virtualscroller-spacer",
29759
29860
  ptCallbacks: ptCallbacks,
29760
- metaData: metaData
29861
+ metaData: metaData,
29862
+ unstyled: props.unstyled
29761
29863
  }) : null;
29762
29864
  return /*#__PURE__*/React.createElement(React.Fragment, null, frozenBody, body, spacerBody);
29763
29865
  };
@@ -29769,7 +29871,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29769
29871
  columns: columns,
29770
29872
  footerColumnGroup: props.footerColumnGroup,
29771
29873
  ptCallbacks: ptCallbacks,
29772
- metaData: metaData
29874
+ metaData: metaData,
29875
+ unstyled: props.unstyled
29773
29876
  });
29774
29877
  };
29775
29878
  var createContent = function createContent(processedData, columns, selectionModeInColumn, empty) {
@@ -29804,6 +29907,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29804
29907
  parent: metaData
29805
29908
  },
29806
29909
  showSpacer: false,
29910
+ unstyled: props.unstyled,
29807
29911
  contentTemplate: function contentTemplate(options) {
29808
29912
  var ref = function ref(el) {
29809
29913
  tableRef.current = el;
@@ -36766,7 +36870,24 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
36766
36870
  var getOptionGroupChildren = function getOptionGroupChildren(optionGroup) {
36767
36871
  return ObjectUtils.resolveFieldData(optionGroup, props.optionGroupChildren);
36768
36872
  };
36873
+ var flatOptions = function flatOptions(options) {
36874
+ return (options || []).reduce(function (result, option, index) {
36875
+ result.push({
36876
+ optionGroup: option,
36877
+ group: true,
36878
+ index: index,
36879
+ code: option.code,
36880
+ label: option.label
36881
+ });
36882
+ var optionGroupChildren = getOptionGroupChildren(option);
36883
+ optionGroupChildren && optionGroupChildren.forEach(function (o) {
36884
+ return result.push(o);
36885
+ });
36886
+ return result;
36887
+ }, []);
36888
+ };
36769
36889
  var getVisibleOptions = function getVisibleOptions() {
36890
+ var options = props.optionGroupLabel ? flatOptions(props.options) : props.options;
36770
36891
  if (hasFilter) {
36771
36892
  var filterValue = filteredValue.trim().toLocaleLowerCase(props.filterLocale);
36772
36893
  var searchFields = props.filterBy ? props.filterBy.split(',') : [props.optionLabel || 'label'];
@@ -36789,11 +36910,11 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
36789
36910
  } finally {
36790
36911
  _iterator.f();
36791
36912
  }
36792
- return filteredGroups;
36913
+ return flatOptions(filteredGroups);
36793
36914
  }
36794
- return FilterService.filter(props.options, searchFields, filterValue, props.filterMatchMode, props.filterLocale);
36915
+ return FilterService.filter(options, searchFields, filterValue, props.filterMatchMode, props.filterLocale);
36795
36916
  }
36796
- return props.options;
36917
+ return options;
36797
36918
  };
36798
36919
  var scrollToSelectedIndex = function scrollToSelectedIndex() {
36799
36920
  if (virtualScrollerRef.current) {
@@ -36838,42 +36959,13 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
36838
36959
  metaData: metaData
36839
36960
  }) : null;
36840
36961
  };
36841
- var createGroupChildren = function createGroupChildren(optionGroup, style) {
36842
- var groupChildren = getOptionGroupChildren(optionGroup);
36843
- return groupChildren.map(function (option, j) {
36844
- var optionLabel = getOptionLabel(option);
36845
- var optionKey = j + '_' + getOptionRenderKey(option);
36846
- var disabled = isOptionDisabled(option);
36847
- return /*#__PURE__*/React.createElement(ListBoxItem, {
36848
- id: id.current + '_' + j,
36849
- hostName: "ListBox",
36850
- optionKey: optionKey,
36851
- key: optionKey,
36852
- label: optionLabel,
36853
- option: option,
36854
- style: style,
36855
- template: props.itemTemplate,
36856
- selected: isSelected(option),
36857
- onOptionMouseDown: onOptionMouseDown,
36858
- onOptionMouseMove: onOptionMouseMove,
36859
- onClick: onOptionSelect,
36860
- index: j,
36861
- focusedOptionIndex: focusedOptionIndex,
36862
- onTouchEnd: onOptionTouchEnd,
36863
- disabled: disabled,
36864
- ptCallbacks: ptCallbacks,
36865
- metaData: metaData
36866
- });
36867
- });
36868
- };
36869
36962
  var createItem = function createItem(option, index) {
36870
36963
  var scrollerOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
36871
36964
  var style = {
36872
36965
  height: scrollerOptions.props ? scrollerOptions.props.itemSize : undefined
36873
36966
  };
36874
- if (props.optionGroupLabel) {
36967
+ if (option.group && option.optionGroup && props.optionGroupLabel) {
36875
36968
  var groupContent = props.optionGroupTemplate ? ObjectUtils.getJSXElement(props.optionGroupTemplate, option, index) : getOptionGroupLabel(option);
36876
- var groupChildrenContent = createGroupChildren(option, style);
36877
36969
  var key = index + '_' + getOptionGroupRenderKey(option);
36878
36970
  var itemGroupProps = mergeProps({
36879
36971
  className: ptCallbacks.cx('itemGroup'),
@@ -36882,9 +36974,9 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (i
36882
36974
  }),
36883
36975
  role: 'group'
36884
36976
  }, ptCallbacks.ptm('itemGroup'));
36885
- return /*#__PURE__*/React.createElement(React.Fragment, {
36977
+ return /*#__PURE__*/React.createElement("li", _extends({
36886
36978
  key: key
36887
- }, /*#__PURE__*/React.createElement("li", itemGroupProps, groupContent), groupChildrenContent);
36979
+ }, itemGroupProps), groupContent);
36888
36980
  }
36889
36981
  var optionLabel = getOptionLabel(option);
36890
36982
  var optionKey = index + '_' + getOptionRenderKey(option);
@@ -40497,10 +40589,10 @@ var MeterGroup = function MeterGroup(inProps) {
40497
40589
  name: 'metergroup'
40498
40590
  });
40499
40591
  var totalPercent = 0;
40500
- var precentages = [];
40592
+ var percentages = [];
40501
40593
  values.map(function (item) {
40502
40594
  totalPercent = totalPercent + item.value;
40503
- precentages.push(Math.round(item.value / totalPercent * 100));
40595
+ percentages.push(Math.round(item.value / totalPercent * 100));
40504
40596
  });
40505
40597
  var calculatePercentage = function calculatePercentage() {
40506
40598
  var meterValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
@@ -40574,7 +40666,7 @@ var MeterGroup = function MeterGroup(inProps) {
40574
40666
  };
40575
40667
  var templateProps = {
40576
40668
  totalPercent: totalPercent,
40577
- precentages: precentages,
40669
+ percentages: percentages,
40578
40670
  values: values
40579
40671
  };
40580
40672
  var labelListContent = labelList || createLabelList();
@@ -43666,7 +43758,6 @@ var OrganizationChartNode = /*#__PURE__*/React.memo(function (props) {
43666
43758
  /* eslint-enable */
43667
43759
  );
43668
43760
  }
43669
-
43670
43761
  return null;
43671
43762
  };
43672
43763
  var createNodeLabel = function createNodeLabel() {
@@ -50688,7 +50779,6 @@ var TieredMenuSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
50688
50779
  'aria-disabled': disabled,
50689
50780
  'aria-expanded': grouped ? active : undefined,
50690
50781
  'aria-haspopup': grouped && !url ? 'menu' : undefined,
50691
- 'aria-level': props.level + 1,
50692
50782
  'aria-setsize': getAriaSetSize(),
50693
50783
  'aria-posinset': getAriaPosInset(index),
50694
50784
  'data-p-highlight': active,
@@ -53967,7 +54057,6 @@ var TabView = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
53967
54057
  React.createElement("a", headerActionProps, leftIconElement, titleElement, rightIconElement, closableIconElement, /*#__PURE__*/React.createElement(Ripple, null))
53968
54058
  // eslint-enable /
53969
54059
  ;
53970
-
53971
54060
  if (headerTemplate) {
53972
54061
  var defaultContentOptions = {
53973
54062
  className: 'p-tabview-nav-link',
@@ -55778,18 +55867,18 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
55778
55867
  }
55779
55868
  };
55780
55869
  var onDropPointDragOver = function onDropPointDragOver(event) {
55781
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55870
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55782
55871
  event.dataTransfer.dropEffect = 'move';
55783
55872
  event.preventDefault();
55784
55873
  }
55785
55874
  };
55786
55875
  var onDropPointDragEnter = function onDropPointDragEnter(event) {
55787
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55876
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55788
55877
  DomHandler.addClass(event.target, 'p-treenode-droppoint-active');
55789
55878
  }
55790
55879
  };
55791
55880
  var onDropPointDragLeave = function onDropPointDragLeave(event) {
55792
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55881
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase()) {
55793
55882
  DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
55794
55883
  }
55795
55884
  };
@@ -55808,19 +55897,19 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
55808
55897
  }
55809
55898
  };
55810
55899
  var onDragOver = function onDragOver(event) {
55811
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55900
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55812
55901
  event.dataTransfer.dropEffect = 'move';
55813
55902
  event.preventDefault();
55814
55903
  event.stopPropagation();
55815
55904
  }
55816
55905
  };
55817
55906
  var onDragEnter = function onDragEnter(event) {
55818
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55907
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55819
55908
  DomHandler.addClass(contentRef.current, 'p-treenode-dragover');
55820
55909
  }
55821
55910
  };
55822
55911
  var onDragLeave = function onDragLeave(event) {
55823
- if (event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55912
+ if (props.dragdropScope && event.dataTransfer.types[1] === props.dragdropScope.toLocaleLowerCase() && props.node.droppable !== false) {
55824
55913
  var rect = event.currentTarget.getBoundingClientRect();
55825
55914
  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) {
55826
55915
  DomHandler.removeClass(contentRef.current, 'p-treenode-dragover');
@@ -57000,7 +57089,6 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
57000
57089
  event.preventDefault();
57001
57090
  focusInputRef.current && DomHandler.focus(focusInputRef.current);
57002
57091
  break;
57003
- case 'Space':
57004
57092
  case 'Enter':
57005
57093
  case 'NumpadEnter':
57006
57094
  event.preventDefault();
@@ -58599,7 +58687,6 @@ var TreeTableRow = /*#__PURE__*/React.memo(function (props) {
58599
58687
  }, getRowPTOptions('row'), {
58600
58688
  className: classNames(rowClassName, props.node.className) // #5983 must be last so all unstyled merging takes place first
58601
58689
  });
58602
-
58603
58690
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("tr", _extends({
58604
58691
  ref: elementRef
58605
58692
  }, rowProps), cells), children);
@@ -60123,7 +60210,6 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
60123
60210
  draggedColumn.current = column;
60124
60211
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
60125
60212
  };
60126
-
60127
60213
  var onColumnDragOver = function onColumnDragOver(e) {
60128
60214
  var event = e.originalEvent,
60129
60215
  column = e.column;