primereact 8.7.3 → 9.0.0-beta.1

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 (450) hide show
  1. package/accordion/accordion.d.ts +168 -25
  2. package/api/api.cjs.js +1 -1
  3. package/api/api.cjs.min.js +1 -1
  4. package/api/api.d.ts +11 -3
  5. package/api/api.esm.js +1 -1
  6. package/api/api.esm.min.js +1 -1
  7. package/api/api.js +1 -1
  8. package/api/api.min.js +1 -1
  9. package/autocomplete/autocomplete.cjs.js +18 -3
  10. package/autocomplete/autocomplete.cjs.min.js +1 -1
  11. package/autocomplete/autocomplete.d.ts +385 -80
  12. package/autocomplete/autocomplete.esm.js +18 -3
  13. package/autocomplete/autocomplete.esm.min.js +1 -1
  14. package/autocomplete/autocomplete.js +18 -3
  15. package/autocomplete/autocomplete.min.js +1 -1
  16. package/avatar/avatar.d.ts +77 -15
  17. package/avatargroup/avatargroup.d.ts +33 -1
  18. package/badge/badge.d.ts +48 -8
  19. package/blockui/blockui.d.ts +71 -10
  20. package/breadcrumb/breadcrumb.d.ts +41 -3
  21. package/button/button.d.ts +67 -15
  22. package/calendar/calendar.cjs.js +18 -5
  23. package/calendar/calendar.cjs.min.js +1 -1
  24. package/calendar/calendar.d.ts +585 -112
  25. package/calendar/calendar.esm.js +18 -5
  26. package/calendar/calendar.esm.min.js +1 -1
  27. package/calendar/calendar.js +18 -5
  28. package/calendar/calendar.min.js +1 -1
  29. package/captcha/captcha.cjs.js +7 -6
  30. package/captcha/captcha.cjs.min.js +1 -1
  31. package/captcha/captcha.d.ts +77 -7
  32. package/captcha/captcha.esm.js +7 -6
  33. package/captcha/captcha.esm.min.js +1 -1
  34. package/captcha/captcha.js +7 -6
  35. package/captcha/captcha.min.js +1 -1
  36. package/card/card.d.ts +45 -7
  37. package/carousel/carousel.d.ts +138 -22
  38. package/cascadeselect/cascadeselect.cjs.js +7 -1
  39. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  40. package/cascadeselect/cascadeselect.d.ts +177 -29
  41. package/cascadeselect/cascadeselect.esm.js +7 -1
  42. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  43. package/cascadeselect/cascadeselect.js +7 -1
  44. package/cascadeselect/cascadeselect.min.js +1 -1
  45. package/chart/chart.d.ts +88 -10
  46. package/checkbox/checkbox.cjs.js +5 -1
  47. package/checkbox/checkbox.cjs.min.js +1 -1
  48. package/checkbox/checkbox.d.ts +137 -33
  49. package/checkbox/checkbox.esm.js +6 -2
  50. package/checkbox/checkbox.esm.min.js +1 -1
  51. package/checkbox/checkbox.js +5 -1
  52. package/checkbox/checkbox.min.js +1 -1
  53. package/chip/chip.d.ts +75 -7
  54. package/chips/chips.cjs.js +11 -8
  55. package/chips/chips.cjs.min.js +1 -1
  56. package/chips/chips.d.ts +188 -36
  57. package/chips/chips.esm.js +11 -8
  58. package/chips/chips.esm.min.js +1 -1
  59. package/chips/chips.js +11 -8
  60. package/chips/chips.min.js +1 -1
  61. package/colorpicker/colorpicker.cjs.js +6 -1
  62. package/colorpicker/colorpicker.cjs.min.js +1 -1
  63. package/colorpicker/colorpicker.d.ts +148 -31
  64. package/colorpicker/colorpicker.esm.js +6 -1
  65. package/colorpicker/colorpicker.esm.min.js +1 -1
  66. package/colorpicker/colorpicker.js +6 -1
  67. package/colorpicker/colorpicker.min.js +1 -1
  68. package/column/column.d.ts +736 -134
  69. package/columngroup/columngroup.d.ts +30 -1
  70. package/confirmdialog/confirmdialog.d.ts +142 -18
  71. package/confirmpopup/confirmpopup.cjs.js +5 -2
  72. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  73. package/confirmpopup/confirmpopup.d.ts +165 -22
  74. package/confirmpopup/confirmpopup.esm.js +5 -2
  75. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  76. package/confirmpopup/confirmpopup.js +5 -2
  77. package/confirmpopup/confirmpopup.min.js +1 -1
  78. package/contextmenu/contextmenu.cjs.js +4 -1
  79. package/contextmenu/contextmenu.cjs.min.js +1 -1
  80. package/contextmenu/contextmenu.d.ts +79 -11
  81. package/contextmenu/contextmenu.esm.js +4 -1
  82. package/contextmenu/contextmenu.esm.min.js +1 -1
  83. package/contextmenu/contextmenu.js +4 -1
  84. package/contextmenu/contextmenu.min.js +1 -1
  85. package/core/core.js +85 -78
  86. package/core/core.min.js +7 -7
  87. package/csstransition/csstransition.d.ts +31 -1
  88. package/datascroller/datascroller.d.ts +102 -16
  89. package/datatable/datatable.cjs.js +27 -15
  90. package/datatable/datatable.cjs.min.js +1 -1
  91. package/datatable/datatable.d.ts +1257 -229
  92. package/datatable/datatable.esm.js +27 -15
  93. package/datatable/datatable.esm.min.js +1 -1
  94. package/datatable/datatable.js +27 -15
  95. package/datatable/datatable.min.js +1 -1
  96. package/dataview/dataview.d.ts +222 -43
  97. package/deferredcontent/deferredcontent.d.ts +37 -1
  98. package/dialog/dialog.cjs.js +13 -19
  99. package/dialog/dialog.cjs.min.js +1 -1
  100. package/dialog/dialog.d.ts +282 -51
  101. package/dialog/dialog.esm.js +14 -20
  102. package/dialog/dialog.esm.min.js +1 -1
  103. package/dialog/dialog.js +13 -19
  104. package/dialog/dialog.min.css +1 -1
  105. package/dialog/dialog.min.js +1 -1
  106. package/divider/divider.d.ts +47 -10
  107. package/dock/dock.d.ts +68 -12
  108. package/dropdown/dropdown.cjs.js +27 -11
  109. package/dropdown/dropdown.cjs.min.js +1 -1
  110. package/dropdown/dropdown.d.ts +337 -83
  111. package/dropdown/dropdown.esm.js +28 -12
  112. package/dropdown/dropdown.esm.min.js +1 -1
  113. package/dropdown/dropdown.js +27 -11
  114. package/dropdown/dropdown.min.js +1 -1
  115. package/editor/editor.d.ts +129 -12
  116. package/fieldset/fieldset.d.ts +85 -7
  117. package/fileupload/fileupload.cjs.js +4 -0
  118. package/fileupload/fileupload.cjs.min.js +1 -1
  119. package/fileupload/fileupload.d.ts +425 -62
  120. package/fileupload/fileupload.esm.js +4 -0
  121. package/fileupload/fileupload.esm.min.js +1 -1
  122. package/fileupload/fileupload.js +4 -0
  123. package/fileupload/fileupload.min.js +1 -1
  124. package/galleria/galleria.cjs.js +3 -1
  125. package/galleria/galleria.cjs.min.js +1 -1
  126. package/galleria/galleria.d.ts +198 -30
  127. package/galleria/galleria.esm.js +3 -1
  128. package/galleria/galleria.esm.min.js +1 -1
  129. package/galleria/galleria.js +3 -1
  130. package/galleria/galleria.min.js +1 -1
  131. package/gmap/gmap.d.ts +91 -5
  132. package/hooks/hooks.cjs.js +1 -2
  133. package/hooks/hooks.cjs.min.js +1 -1
  134. package/hooks/hooks.d.ts +114 -7
  135. package/hooks/hooks.esm.js +1 -2
  136. package/hooks/hooks.esm.min.js +1 -1
  137. package/hooks/hooks.js +1 -2
  138. package/hooks/hooks.min.js +1 -1
  139. package/image/image.d.ts +91 -11
  140. package/inplace/inplace.d.ts +101 -9
  141. package/inputmask/inputmask.cjs.js +6 -5
  142. package/inputmask/inputmask.cjs.min.js +1 -1
  143. package/inputmask/inputmask.d.ts +119 -27
  144. package/inputmask/inputmask.esm.js +7 -6
  145. package/inputmask/inputmask.esm.min.js +1 -1
  146. package/inputmask/inputmask.js +6 -5
  147. package/inputmask/inputmask.min.js +1 -1
  148. package/inputnumber/inputnumber.cjs.js +11 -33
  149. package/inputnumber/inputnumber.cjs.min.js +1 -1
  150. package/inputnumber/inputnumber.d.ts +265 -57
  151. package/inputnumber/inputnumber.esm.js +12 -34
  152. package/inputnumber/inputnumber.esm.min.js +1 -1
  153. package/inputnumber/inputnumber.js +11 -33
  154. package/inputnumber/inputnumber.min.js +1 -1
  155. package/inputswitch/inputswitch.cjs.js +4 -1
  156. package/inputswitch/inputswitch.cjs.min.js +1 -1
  157. package/inputswitch/inputswitch.d.ts +118 -27
  158. package/inputswitch/inputswitch.esm.js +5 -2
  159. package/inputswitch/inputswitch.esm.min.js +1 -1
  160. package/inputswitch/inputswitch.js +4 -1
  161. package/inputswitch/inputswitch.min.js +1 -1
  162. package/inputtext/inputtext.d.ts +57 -6
  163. package/inputtextarea/inputtextarea.d.ts +52 -6
  164. package/keyfilter/keyfilteroptions.d.ts +15 -0
  165. package/knob/knob.d.ts +127 -20
  166. package/listbox/listbox.cjs.js +3 -0
  167. package/listbox/listbox.cjs.min.js +1 -1
  168. package/listbox/listbox.d.ts +270 -48
  169. package/listbox/listbox.esm.js +3 -0
  170. package/listbox/listbox.esm.min.js +1 -1
  171. package/listbox/listbox.js +3 -0
  172. package/listbox/listbox.min.js +1 -1
  173. package/megamenu/megamenu.d.ts +50 -11
  174. package/mention/mention.cjs.js +3 -0
  175. package/mention/mention.cjs.min.js +1 -1
  176. package/mention/mention.d.ts +186 -32
  177. package/mention/mention.esm.js +3 -0
  178. package/mention/mention.esm.min.js +1 -1
  179. package/mention/mention.js +3 -0
  180. package/mention/mention.min.js +1 -1
  181. package/menu/menu.cjs.js +3 -1
  182. package/menu/menu.cjs.min.js +1 -1
  183. package/menu/menu.d.ts +89 -12
  184. package/menu/menu.esm.js +3 -1
  185. package/menu/menu.esm.min.js +1 -1
  186. package/menu/menu.js +3 -1
  187. package/menu/menu.min.js +1 -1
  188. package/menubar/menubar.d.ts +53 -8
  189. package/menuitem/menuitem.d.ts +114 -19
  190. package/message/message.d.ts +50 -11
  191. package/messages/messages.d.ts +91 -11
  192. package/multiselect/multiselect.cjs.js +11 -2
  193. package/multiselect/multiselect.cjs.min.js +1 -1
  194. package/multiselect/multiselect.d.ts +429 -82
  195. package/multiselect/multiselect.esm.js +12 -3
  196. package/multiselect/multiselect.esm.min.js +1 -1
  197. package/multiselect/multiselect.js +11 -2
  198. package/multiselect/multiselect.min.js +1 -1
  199. package/multistatecheckbox/multistatecheckbox.cjs.js +3 -0
  200. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  201. package/multistatecheckbox/multistatecheckbox.d.ts +157 -22
  202. package/multistatecheckbox/multistatecheckbox.esm.js +4 -1
  203. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  204. package/multistatecheckbox/multistatecheckbox.js +3 -0
  205. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  206. package/orderlist/orderlist.d.ts +113 -16
  207. package/organizationchart/organizationchart.d.ts +107 -16
  208. package/overlaypanel/overlaypanel.cjs.js +4 -1
  209. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  210. package/overlaypanel/overlaypanel.d.ts +89 -15
  211. package/overlaypanel/overlaypanel.esm.js +4 -1
  212. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  213. package/overlaypanel/overlaypanel.js +4 -1
  214. package/overlaypanel/overlaypanel.min.js +1 -1
  215. package/overlayservice/overlayservice.d.ts +52 -7
  216. package/package.json +2 -2
  217. package/paginator/paginator.d.ts +409 -44
  218. package/panel/panel.d.ts +142 -16
  219. package/panelmenu/panelmenu.d.ts +46 -4
  220. package/password/password.cjs.js +7 -1
  221. package/password/password.cjs.min.js +1 -1
  222. package/password/password.d.ts +176 -36
  223. package/password/password.esm.js +7 -1
  224. package/password/password.esm.min.js +1 -1
  225. package/password/password.js +7 -1
  226. package/password/password.min.css +1 -1
  227. package/password/password.min.js +1 -1
  228. package/picklist/picklist.d.ts +272 -46
  229. package/primereact.all.cjs.js +305 -158
  230. package/primereact.all.cjs.min.js +1 -1
  231. package/primereact.all.esm.js +305 -158
  232. package/primereact.all.esm.min.js +1 -1
  233. package/primereact.all.js +305 -158
  234. package/primereact.all.min.js +1 -1
  235. package/progressbar/progressbar.d.ts +60 -11
  236. package/progressspinner/progressspinner.d.ts +47 -4
  237. package/radiobutton/radiobutton.cjs.js +5 -1
  238. package/radiobutton/radiobutton.cjs.min.js +1 -1
  239. package/radiobutton/radiobutton.d.ts +99 -29
  240. package/radiobutton/radiobutton.esm.js +5 -1
  241. package/radiobutton/radiobutton.esm.min.js +1 -1
  242. package/radiobutton/radiobutton.js +5 -1
  243. package/radiobutton/radiobutton.min.js +1 -1
  244. package/rating/rating.d.ts +101 -24
  245. package/resources/primereact.css +74 -63
  246. package/resources/primereact.min.css +1 -1
  247. package/resources/themes/arya-blue/theme.css +5 -9
  248. package/resources/themes/arya-green/theme.css +4 -10
  249. package/resources/themes/arya-orange/theme.css +4 -9
  250. package/resources/themes/arya-purple/theme.css +4 -9
  251. package/resources/themes/bootstrap4-dark-blue/theme.css +4 -9
  252. package/resources/themes/bootstrap4-dark-purple/theme.css +4 -9
  253. package/resources/themes/bootstrap4-light-blue/theme.css +4 -9
  254. package/resources/themes/bootstrap4-light-purple/theme.css +4 -10
  255. package/resources/themes/fluent-light/theme.css +4 -10
  256. package/resources/themes/lara-dark-blue/theme.css +4 -9
  257. package/resources/themes/lara-dark-indigo/theme.css +4 -10
  258. package/resources/themes/lara-dark-purple/theme.css +4 -9
  259. package/resources/themes/lara-dark-teal/theme.css +4 -10
  260. package/resources/themes/lara-light-blue/theme.css +4 -9
  261. package/resources/themes/lara-light-indigo/theme.css +4 -9
  262. package/resources/themes/lara-light-purple/theme.css +4 -9
  263. package/resources/themes/lara-light-teal/theme.css +4 -9
  264. package/resources/themes/luna-amber/theme.css +5 -9
  265. package/resources/themes/luna-blue/theme.css +4 -9
  266. package/resources/themes/luna-green/theme.css +5 -9
  267. package/resources/themes/luna-pink/theme.css +4 -9
  268. package/resources/themes/md-dark-deeppurple/theme.css +4 -9
  269. package/resources/themes/md-dark-indigo/theme.css +5 -9
  270. package/resources/themes/md-light-deeppurple/theme.css +5 -9
  271. package/resources/themes/md-light-indigo/theme.css +5 -9
  272. package/resources/themes/mdc-dark-deeppurple/theme.css +5 -9
  273. package/resources/themes/mdc-dark-indigo/theme.css +4 -9
  274. package/resources/themes/mdc-light-deeppurple/theme.css +5 -9
  275. package/resources/themes/mdc-light-indigo/theme.css +4 -9
  276. package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
  277. package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
  278. package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
  279. package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
  280. package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
  281. package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
  282. package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
  283. package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
  284. package/resources/themes/mira/theme.css +6237 -0
  285. package/resources/themes/nano/theme.css +6009 -0
  286. package/resources/themes/nova/theme.css +4 -9
  287. package/resources/themes/nova-accent/theme.css +5 -9
  288. package/resources/themes/nova-alt/theme.css +4 -9
  289. package/resources/themes/rhea/theme.css +5 -9
  290. package/resources/themes/saga-blue/theme.css +4 -9
  291. package/resources/themes/saga-green/theme.css +5 -9
  292. package/resources/themes/saga-orange/theme.css +5 -9
  293. package/resources/themes/saga-purple/theme.css +5 -9
  294. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  295. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  296. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  297. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  298. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  299. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  300. package/resources/themes/soho-dark/theme.css +6002 -0
  301. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  302. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  303. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  304. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  305. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  306. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  307. package/resources/themes/soho-light/theme.css +6056 -0
  308. package/resources/themes/vela-blue/theme.css +4 -9
  309. package/resources/themes/vela-green/theme.css +4 -9
  310. package/resources/themes/vela-orange/theme.css +4 -9
  311. package/resources/themes/vela-purple/theme.css +5 -9
  312. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  313. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  314. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  315. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  316. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  317. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  318. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  319. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  320. package/resources/themes/viva-dark/theme.css +6164 -0
  321. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  322. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  323. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  324. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  325. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  326. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  327. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  328. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  329. package/resources/themes/viva-light/theme.css +6164 -0
  330. package/ripple/ripple.d.ts +29 -1
  331. package/row/row.d.ts +37 -3
  332. package/scrollpanel/scrollpanel.d.ts +45 -1
  333. package/scrolltop/scrolltop.d.ts +70 -10
  334. package/selectbutton/selectbutton.cjs.js +3 -0
  335. package/selectbutton/selectbutton.cjs.min.js +1 -1
  336. package/selectbutton/selectbutton.d.ts +111 -32
  337. package/selectbutton/selectbutton.esm.js +4 -1
  338. package/selectbutton/selectbutton.esm.min.js +1 -1
  339. package/selectbutton/selectbutton.js +3 -0
  340. package/selectbutton/selectbutton.min.js +1 -1
  341. package/selectitem/selectitem.d.ts +34 -0
  342. package/sidebar/sidebar.cjs.js +13 -1
  343. package/sidebar/sidebar.cjs.min.js +1 -1
  344. package/sidebar/sidebar.d.ts +120 -22
  345. package/sidebar/sidebar.esm.js +13 -1
  346. package/sidebar/sidebar.esm.min.js +1 -1
  347. package/sidebar/sidebar.js +13 -1
  348. package/sidebar/sidebar.min.js +1 -1
  349. package/skeleton/skeleton.d.ts +61 -11
  350. package/slidemenu/slidemenu.d.ts +132 -18
  351. package/slider/slider.d.ts +101 -18
  352. package/speeddial/speeddial.d.ts +149 -20
  353. package/splitbutton/splitbutton.cjs.js +3 -2
  354. package/splitbutton/splitbutton.cjs.min.js +1 -1
  355. package/splitbutton/splitbutton.d.ts +131 -23
  356. package/splitbutton/splitbutton.esm.js +3 -2
  357. package/splitbutton/splitbutton.esm.min.js +1 -1
  358. package/splitbutton/splitbutton.js +3 -2
  359. package/splitbutton/splitbutton.min.js +1 -1
  360. package/splitter/splitter.d.ts +98 -12
  361. package/steps/steps.d.ts +67 -6
  362. package/styleclass/styleclass.d.ts +77 -12
  363. package/tabmenu/tabmenu.d.ts +62 -5
  364. package/tabview/tabview.cjs.js +1 -1
  365. package/tabview/tabview.cjs.min.js +1 -1
  366. package/tabview/tabview.d.ts +213 -27
  367. package/tabview/tabview.esm.js +1 -1
  368. package/tabview/tabview.esm.min.js +1 -1
  369. package/tabview/tabview.js +1 -1
  370. package/tabview/tabview.min.js +1 -1
  371. package/tag/tag.d.ts +50 -6
  372. package/terminal/terminal.cjs.js +3 -0
  373. package/terminal/terminal.cjs.min.js +1 -1
  374. package/terminal/terminal.d.ts +45 -3
  375. package/terminal/terminal.esm.js +4 -1
  376. package/terminal/terminal.esm.min.js +1 -1
  377. package/terminal/terminal.js +3 -0
  378. package/terminal/terminal.min.js +1 -1
  379. package/terminalservice/terminalservice.d.ts +42 -4
  380. package/tieredmenu/tieredmenu.cjs.js +3 -1
  381. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  382. package/tieredmenu/tieredmenu.d.ts +77 -12
  383. package/tieredmenu/tieredmenu.esm.js +3 -1
  384. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  385. package/tieredmenu/tieredmenu.js +3 -1
  386. package/tieredmenu/tieredmenu.min.js +1 -1
  387. package/timeline/timeline.cjs.js +6 -10
  388. package/timeline/timeline.cjs.min.js +1 -1
  389. package/timeline/timeline.d.ts +62 -13
  390. package/timeline/timeline.esm.js +6 -10
  391. package/timeline/timeline.esm.min.js +1 -1
  392. package/timeline/timeline.js +6 -10
  393. package/timeline/timeline.min.js +1 -1
  394. package/toast/toast.cjs.js +4 -1
  395. package/toast/toast.cjs.min.js +1 -1
  396. package/toast/toast.d.ts +134 -27
  397. package/toast/toast.esm.js +4 -1
  398. package/toast/toast.esm.min.js +1 -1
  399. package/toast/toast.js +4 -1
  400. package/toast/toast.min.js +1 -1
  401. package/togglebutton/togglebutton.cjs.js +4 -1
  402. package/togglebutton/togglebutton.cjs.min.js +1 -1
  403. package/togglebutton/togglebutton.d.ts +122 -15
  404. package/togglebutton/togglebutton.esm.js +5 -2
  405. package/togglebutton/togglebutton.esm.min.js +1 -1
  406. package/togglebutton/togglebutton.js +4 -1
  407. package/togglebutton/togglebutton.min.js +1 -1
  408. package/toolbar/toolbar.cjs.js +13 -7
  409. package/toolbar/toolbar.cjs.min.js +1 -1
  410. package/toolbar/toolbar.d.ts +55 -5
  411. package/toolbar/toolbar.esm.js +13 -7
  412. package/toolbar/toolbar.esm.min.js +1 -1
  413. package/toolbar/toolbar.js +13 -7
  414. package/toolbar/toolbar.min.css +1 -1
  415. package/toolbar/toolbar.min.js +1 -1
  416. package/tooltip/tooltip.d.ts +73 -9
  417. package/tooltip/tooltipoptions.d.ts +350 -31
  418. package/tree/tree.d.ts +435 -71
  419. package/treenode/treenode.d.ts +62 -13
  420. package/treeselect/treeselect.cjs.js +7 -1
  421. package/treeselect/treeselect.cjs.min.js +1 -1
  422. package/treeselect/treeselect.d.ts +326 -77
  423. package/treeselect/treeselect.esm.js +8 -2
  424. package/treeselect/treeselect.esm.min.js +1 -1
  425. package/treeselect/treeselect.js +7 -1
  426. package/treeselect/treeselect.min.js +1 -1
  427. package/treetable/treetable.cjs.js +3 -1
  428. package/treetable/treetable.cjs.min.js +1 -1
  429. package/treetable/treetable.d.ts +501 -112
  430. package/treetable/treetable.esm.js +3 -1
  431. package/treetable/treetable.esm.min.js +1 -1
  432. package/treetable/treetable.js +3 -1
  433. package/treetable/treetable.min.js +1 -1
  434. package/tristatecheckbox/tristatecheckbox.cjs.js +3 -0
  435. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  436. package/tristatecheckbox/tristatecheckbox.d.ts +72 -20
  437. package/tristatecheckbox/tristatecheckbox.esm.js +4 -1
  438. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  439. package/tristatecheckbox/tristatecheckbox.js +3 -0
  440. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  441. package/ts-helpers.d.ts +24 -0
  442. package/utils/utils.cjs.js +27 -11
  443. package/utils/utils.cjs.min.js +1 -1
  444. package/utils/utils.d.ts +8 -1
  445. package/utils/utils.esm.js +27 -11
  446. package/utils/utils.esm.min.js +1 -1
  447. package/utils/utils.js +27 -11
  448. package/utils/utils.min.js +1 -1
  449. package/virtualscroller/virtualscroller.d.ts +351 -59
  450. package/web-types.json +22 -4
@@ -858,6 +858,11 @@ var DomHandler = /*#__PURE__*/function () {
858
858
  value: function isAndroid() {
859
859
  return /(android)/i.test(navigator.userAgent);
860
860
  }
861
+ }, {
862
+ key: "isChrome",
863
+ value: function isChrome() {
864
+ return /(chrome)/i.test(navigator.userAgent);
865
+ }
861
866
  }, {
862
867
  key: "isTouchDevice",
863
868
  value: function isTouchDevice() {
@@ -973,7 +978,7 @@ var DomHandler = /*#__PURE__*/function () {
973
978
  }, {
974
979
  key: "isExist",
975
980
  value: function isExist(element) {
976
- return element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode;
981
+ return !!(element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode);
977
982
  }
978
983
  }, {
979
984
  key: "hasDOM",
@@ -1027,6 +1032,22 @@ var DomHandler = /*#__PURE__*/function () {
1027
1032
  preventScroll: preventScroll
1028
1033
  });
1029
1034
  }
1035
+
1036
+ /**
1037
+ * Focus the first focusable element if it does not already have focus.
1038
+ *
1039
+ * @param {HTMLElement} el a HTML element
1040
+ * @param {boolean} scrollTo flag to control whether to scroll to the element, false by default
1041
+ * @return {HTMLElement | undefined} the first focusable HTML element found
1042
+ */
1043
+ }, {
1044
+ key: "focusFirstElement",
1045
+ value: function focusFirstElement(el, scrollTo) {
1046
+ if (!el) return;
1047
+ var firstFocusableElement = DomHandler.getFirstFocusableElement(el);
1048
+ firstFocusableElement && DomHandler.focus(firstFocusableElement, scrollTo);
1049
+ return firstFocusableElement;
1050
+ }
1030
1051
  }, {
1031
1052
  key: "getCursorOffset",
1032
1053
  value: function getCursorOffset(el, prevText, nextText, currentText) {
@@ -1480,11 +1501,10 @@ function mask(el, options) {
1480
1501
  pos,
1481
1502
  begin,
1482
1503
  end;
1483
- var iPhone = /iphone/i.test(DomHandler.getUserAgent());
1484
1504
  oldVal = el.value;
1485
1505
 
1486
1506
  //backspace, delete, and escape get special treatment
1487
- if (k === 8 || k === 46 || iPhone && k === 127) {
1507
+ if (k === 8 || k === 46 || DomHandler.isIOS() && k === 127) {
1488
1508
  pos = caret();
1489
1509
  begin = pos.begin;
1490
1510
  end = pos.end;
@@ -1534,7 +1554,7 @@ function mask(el, options) {
1534
1554
  buffer[p] = c;
1535
1555
  writeBuffer();
1536
1556
  next = seekNext(p);
1537
- if (/android/i.test(DomHandler.getUserAgent())) {
1557
+ if (DomHandler.isAndroid()) {
1538
1558
  //Path for CSP Violation on FireFox OS 1.1
1539
1559
  var proxy = function proxy() {
1540
1560
  caret(next);
@@ -1704,8 +1724,7 @@ function mask(el, options) {
1704
1724
  a: '[A-Za-z]',
1705
1725
  '*': '[A-Za-z0-9]'
1706
1726
  };
1707
- var ua = DomHandler.getUserAgent();
1708
- androidChrome = /chrome/i.test(ua) && /android/i.test(ua);
1727
+ androidChrome = DomHandler.isChrome() && DomHandler.isAndroid();
1709
1728
  var maskTokens = options.mask.split('');
1710
1729
  for (var i = 0; i < maskTokens.length; i++) {
1711
1730
  var c = maskTokens[i];
@@ -1874,13 +1893,10 @@ var ObjectUtils = /*#__PURE__*/function () {
1874
1893
  }, {
1875
1894
  key: "reorderArray",
1876
1895
  value: function reorderArray(value, from, to) {
1877
- var target;
1878
1896
  if (value && from !== to) {
1879
1897
  if (to >= value.length) {
1880
- target = to - value.length;
1881
- while (target-- + 1) {
1882
- value.push(undefined);
1883
- }
1898
+ to %= value.length;
1899
+ from %= value.length;
1884
1900
  }
1885
1901
  value.splice(to, 0, value.splice(from, 1)[0]);
1886
1902
  }
@@ -2178,7 +2194,7 @@ var FilterService = {
2178
2194
  },
2179
2195
  notEquals: function notEquals(value, filter, filterLocale) {
2180
2196
  if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {
2181
- return false;
2197
+ return true;
2182
2198
  }
2183
2199
  if (value === undefined || value === null) {
2184
2200
  return true;
@@ -2853,7 +2869,7 @@ var useOverlayListener = function useOverlayListener(_ref) {
2853
2869
  bindWindowResizeListener = _useResizeListener2[0],
2854
2870
  unbindWindowResizeListener = _useResizeListener2[1];
2855
2871
  var _useOverlayScrollList = useOverlayScrollListener({
2856
- target: targetRef,
2872
+ target: target,
2857
2873
  listener: function listener(event) {
2858
2874
  _listener && _listener(event, {
2859
2875
  type: 'scroll',
@@ -2888,7 +2904,6 @@ var useOverlayListener = function useOverlayListener(_ref) {
2888
2904
  }, [target, overlay, when]);
2889
2905
  React__namespace.useEffect(function () {
2890
2906
  unbind();
2891
- // when && bind();
2892
2907
  }, [when]);
2893
2908
  useUnmountEffect(function () {
2894
2909
  unbind();
@@ -4872,11 +4887,14 @@ var AutoCompletePanel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__
4872
4887
  var key = i + '_' + j;
4873
4888
  var selected = props.selectedItem === item;
4874
4889
  var content = props.itemTemplate ? ObjectUtils.getJSXElement(props.itemTemplate, item, j) : props.field ? ObjectUtils.resolveFieldData(item, props.field) : item;
4890
+ var className = classNames('p-autocomplete-item', {
4891
+ 'p-disabled': item.disabled
4892
+ });
4875
4893
  return /*#__PURE__*/React__namespace.createElement("li", {
4876
4894
  key: key,
4877
4895
  role: "option",
4878
4896
  "aria-selected": selected,
4879
- className: "p-autocomplete-item",
4897
+ className: className,
4880
4898
  style: style,
4881
4899
  onClick: function onClick(e) {
4882
4900
  return props.onItemClick(e, item);
@@ -4903,11 +4921,14 @@ var AutoCompletePanel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__
4903
4921
  }, content), childrenContent);
4904
4922
  } else {
4905
4923
  var _content = props.itemTemplate ? ObjectUtils.getJSXElement(props.itemTemplate, suggestion, index) : props.field ? ObjectUtils.resolveFieldData(suggestion, props.field) : suggestion;
4924
+ var className = classNames('p-autocomplete-item', {
4925
+ 'p-disabled': suggestion.disabled
4926
+ });
4906
4927
  return /*#__PURE__*/React__namespace.createElement("li", {
4907
4928
  key: index,
4908
4929
  role: "option",
4909
4930
  "aria-selected": props.selectedItem === suggestion,
4910
- className: "p-autocomplete-item",
4931
+ className: className,
4911
4932
  style: style,
4912
4933
  onClick: function onClick(e) {
4913
4934
  return props.onItemClick(e, suggestion);
@@ -4960,7 +4981,10 @@ var AutoCompletePanel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__
4960
4981
  }
4961
4982
  };
4962
4983
  var createElement = function createElement() {
4963
- var className = classNames('p-autocomplete-panel p-component', props.panelClassName);
4984
+ var className = classNames('p-autocomplete-panel p-component', props.panelClassName, {
4985
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
4986
+ 'p-ripple-disabled': PrimeReact.ripple === false
4987
+ });
4964
4988
  var style = _objectSpread$u({
4965
4989
  maxHeight: props.scrollHeight
4966
4990
  }, props.panelStyle || {});
@@ -5373,6 +5397,9 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
5373
5397
  if (inputRef.current && !props.multiple) {
5374
5398
  updateInputField(props.value);
5375
5399
  }
5400
+ if (overlayVisibleState) {
5401
+ alignOverlay();
5402
+ }
5376
5403
  });
5377
5404
  useUnmountEffect(function () {
5378
5405
  if (timeout.current) {
@@ -5386,6 +5413,9 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
5386
5413
  search: search,
5387
5414
  show: show,
5388
5415
  hide: hide,
5416
+ focus: function focus() {
5417
+ return DomHandler.focus(inputRef.current);
5418
+ },
5389
5419
  getElement: function getElement() {
5390
5420
  return elementRef.current;
5391
5421
  },
@@ -8191,6 +8221,9 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
8191
8221
  getCurrentDateTime: getCurrentDateTime,
8192
8222
  getViewDate: getViewDate,
8193
8223
  updateViewDate: updateViewDate,
8224
+ focus: function focus() {
8225
+ return DomHandler.focus(inputRef.current);
8226
+ },
8194
8227
  getElement: function getElement() {
8195
8228
  return elementRef.current;
8196
8229
  },
@@ -8302,7 +8335,7 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
8302
8335
  disabled: switchViewButtonDisabled()
8303
8336
  }, monthNames[month]);
8304
8337
  };
8305
- var createTitleYearElement = function createTitleYearElement() {
8338
+ var createTitleYearElement = function createTitleYearElement(metaYear) {
8306
8339
  if (props.yearNavigator) {
8307
8340
  var _yearOptions2 = [];
8308
8341
  var years = props.yearRange.split(':');
@@ -8349,11 +8382,12 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
8349
8382
  }
8350
8383
  return _content2;
8351
8384
  }
8385
+ var displayYear = props.inline ? metaYear : currentYear;
8352
8386
  return currentView !== 'year' && /*#__PURE__*/React__namespace.createElement("button", {
8353
8387
  className: "p-datepicker-year p-link",
8354
8388
  onClick: switchToYearView,
8355
8389
  disabled: switchViewButtonDisabled()
8356
- }, currentYear);
8390
+ }, displayYear);
8357
8391
  };
8358
8392
  var createTitleDecadeElement = function createTitleDecadeElement() {
8359
8393
  var years = yearPickerValues();
@@ -8514,7 +8548,11 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
8514
8548
  };
8515
8549
  var createHourPicker = function createHourPicker() {
8516
8550
  var currentTime = getCurrentDateTime();
8551
+ var minute = doStepMinute(currentTime.getMinutes());
8517
8552
  var hour = currentTime.getHours();
8553
+
8554
+ // #3770 account for step minutes rolling to next hour
8555
+ hour = minute > 59 ? hour + 1 : hour;
8518
8556
  if (props.hourFormat === '12') {
8519
8557
  if (hour === 0) hour = 12;else if (hour > 11 && hour !== 12) hour = hour - 12;
8520
8558
  }
@@ -8551,7 +8589,8 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
8551
8589
  };
8552
8590
  var createMinutePicker = function createMinutePicker() {
8553
8591
  var currentTime = getCurrentDateTime();
8554
- var minute = currentTime.getMinutes();
8592
+ var minute = doStepMinute(currentTime.getMinutes());
8593
+ minute = minute > 59 ? minute - 60 : minute;
8555
8594
  var minuteDisplay = minute < 10 ? '0' + minute : minute;
8556
8595
  return /*#__PURE__*/React__namespace.createElement("div", {
8557
8596
  className: "p-minute-picker"
@@ -8810,7 +8849,7 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
8810
8849
  key: "year".concat(i + 1),
8811
8850
  className: classNames('p-yearpicker-year', {
8812
8851
  'p-highlight': isYearSelected(y),
8813
- 'p-disabled': !isSelectable(0, 0, y)
8852
+ 'p-disabled': !(isSelectable(0, 0, y) || isSelectable(30, 11, y))
8814
8853
  })
8815
8854
  }, y);
8816
8855
  }));
@@ -8825,7 +8864,9 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
8825
8864
  'p-datepicker-timeonly': props.timeOnly,
8826
8865
  'p-datepicker-multiple-month': props.numberOfMonths > 1,
8827
8866
  'p-datepicker-monthpicker': currentView === 'month',
8828
- 'p-datepicker-touch-ui': props.touchUI
8867
+ 'p-datepicker-touch-ui': props.touchUI,
8868
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
8869
+ 'p-ripple-disabled': PrimeReact.ripple === false
8829
8870
  });
8830
8871
  var content = createContent();
8831
8872
  var datePicker = createDatePicker();
@@ -8871,6 +8912,7 @@ Calendar.defaultProps = {
8871
8912
  disabledDates: null,
8872
8913
  disabledDays: null,
8873
8914
  footerTemplate: null,
8915
+ formatDateTime: null,
8874
8916
  headerTemplate: null,
8875
8917
  hideOnDateTimeSelect: false,
8876
8918
  hourFormat: '24',
@@ -8907,6 +8949,7 @@ Calendar.defaultProps = {
8907
8949
  onVisibleChange: null,
8908
8950
  panelClassName: null,
8909
8951
  panelStyle: null,
8952
+ parseDateTime: null,
8910
8953
  placeholder: null,
8911
8954
  readOnlyInput: false,
8912
8955
  required: false,
@@ -8979,7 +9022,7 @@ var Captcha = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
8979
9022
  if (!window.grecaptcha) {
8980
9023
  var head = document.head || document.getElementsByTagName('head')[0];
8981
9024
  var script = document.createElement('script');
8982
- script.src = 'https://www.google.com/recaptcha/api.js?render=explicit';
9025
+ script.src = props.sourceUrl;
8983
9026
  script.async = true;
8984
9027
  script.defer = true;
8985
9028
  script.onload = function () {
@@ -9030,14 +9073,15 @@ Captcha.displayName = 'Captcha';
9030
9073
  Captcha.defaultProps = {
9031
9074
  __TYPE: 'Captcha',
9032
9075
  id: null,
9076
+ language: 'en',
9077
+ onExpire: null,
9078
+ onResponse: null,
9033
9079
  siteKey: null,
9034
- theme: 'light',
9035
- type: 'image',
9036
9080
  size: 'normal',
9081
+ sourceUrl: 'https://www.google.com/recaptcha/api.js?render=explicit',
9037
9082
  tabIndex: 0,
9038
- language: 'en',
9039
- onResponse: null,
9040
- onExpire: null
9083
+ theme: 'light',
9084
+ type: 'image'
9041
9085
  };
9042
9086
 
9043
9087
  var Card = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
@@ -9815,7 +9859,10 @@ var CascadeSelectSub = /*#__PURE__*/React__namespace.memo(function (props) {
9815
9859
  var createMenu = function createMenu() {
9816
9860
  return props.options ? props.options.map(createOption) : null;
9817
9861
  };
9818
- var className = classNames('p-cascadeselect-panel p-cascadeselect-items', props.className);
9862
+ var className = classNames('p-cascadeselect-panel p-cascadeselect-items', props.className, {
9863
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
9864
+ 'p-ripple-disabled': PrimeReact.ripple === false
9865
+ });
9819
9866
  var submenu = createMenu();
9820
9867
  return /*#__PURE__*/React__namespace.createElement("ul", {
9821
9868
  ref: elementRef,
@@ -10015,6 +10062,9 @@ var CascadeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
10015
10062
  },
10016
10063
  getLabel: function getLabel() {
10017
10064
  return labelRef.current;
10065
+ },
10066
+ focus: function focus() {
10067
+ return DomHandler.focus(inputRef.current);
10018
10068
  }
10019
10069
  };
10020
10070
  });
@@ -10320,7 +10370,8 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
10320
10370
  setFocusedState(false);
10321
10371
  };
10322
10372
  var onKeyDown = function onKeyDown(event) {
10323
- if (event.code === 'Space') {
10373
+ if (event.code === 'Space' || event.key === ' ') {
10374
+ // event.key is for Android support
10324
10375
  onClick(event);
10325
10376
  }
10326
10377
  };
@@ -10330,6 +10381,9 @@ var Checkbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
10330
10381
  React__namespace.useImperativeHandle(ref, function () {
10331
10382
  return {
10332
10383
  props: props,
10384
+ focus: function focus() {
10385
+ return DomHandler.focus(inputRef.current);
10386
+ },
10333
10387
  getElement: function getElement() {
10334
10388
  return elementRef.current;
10335
10389
  },
@@ -10579,16 +10633,13 @@ var Chips = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
10579
10633
  if (event.defaultPrevented) {
10580
10634
  return;
10581
10635
  }
10582
- switch (event.which) {
10583
- //backspace
10584
- case 8:
10636
+ switch (event.key) {
10637
+ case 'Backspace':
10585
10638
  if (inputRef.current.value.length === 0 && values.length > 0) {
10586
10639
  removeItem(event, values.length - 1);
10587
10640
  }
10588
10641
  break;
10589
-
10590
- //enter
10591
- case 13:
10642
+ case 'Enter':
10592
10643
  if (inputValue && inputValue.trim().length && (!props.max || props.max > values.length)) {
10593
10644
  addItem(event, inputValue, true);
10594
10645
  }
@@ -10599,8 +10650,11 @@ var Chips = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
10599
10650
  }
10600
10651
  if (isMaxedOut()) {
10601
10652
  event.preventDefault();
10602
- } else if (props.separator === ',' && event.which === 188) {
10603
- addItem(event, inputValue, true);
10653
+ } else if (props.separator === ',') {
10654
+ // GitHub #3885 Android Opera gives strange code 229 for comma
10655
+ if (event.key === props.separator || DomHandler.isAndroid() && event.which === 229) {
10656
+ addItem(event, inputValue, true);
10657
+ }
10604
10658
  }
10605
10659
  break;
10606
10660
  }
@@ -10671,6 +10725,9 @@ var Chips = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
10671
10725
  React__namespace.useImperativeHandle(ref, function () {
10672
10726
  return {
10673
10727
  props: props,
10728
+ focus: function focus() {
10729
+ return DomHandler.focus(inputRef.current);
10730
+ },
10674
10731
  getElement: function getElement() {
10675
10732
  return elementRef.current;
10676
10733
  },
@@ -10790,7 +10847,9 @@ var ColorPickerPanel = /*#__PURE__*/React__namespace.forwardRef(function (props,
10790
10847
  var createElement = function createElement() {
10791
10848
  var className = classNames('p-colorpicker-panel', props.panelClassName, {
10792
10849
  'p-colorpicker-overlay-panel': !props.inline,
10793
- 'p-disabled': props.disabled
10850
+ 'p-disabled': props.disabled,
10851
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
10852
+ 'p-ripple-disabled': PrimeReact.ripple === false
10794
10853
  });
10795
10854
  return /*#__PURE__*/React__namespace.createElement(CSSTransition, {
10796
10855
  nodeRef: ref,
@@ -11208,6 +11267,9 @@ var ColorPicker = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
11208
11267
  props: props,
11209
11268
  show: show,
11210
11269
  hide: hide,
11270
+ focus: function focus() {
11271
+ return DomHandler.focus(inputRef.current);
11272
+ },
11211
11273
  getElement: function getElement() {
11212
11274
  return elementRef.current;
11213
11275
  },
@@ -11437,10 +11499,11 @@ ColumnGroup.defaultProps = {
11437
11499
  };
11438
11500
 
11439
11501
  var Dialog = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
11440
- var _React$useState = React__namespace.useState(props.id),
11502
+ var uniqueId = props.id ? props.id : UniqueComponentId();
11503
+ var _React$useState = React__namespace.useState(uniqueId),
11441
11504
  _React$useState2 = _slicedToArray(_React$useState, 2),
11442
- idState = _React$useState2[0],
11443
- setIdState = _React$useState2[1];
11505
+ idState = _React$useState2[0];
11506
+ _React$useState2[1];
11444
11507
  var _React$useState3 = React__namespace.useState(false),
11445
11508
  _React$useState4 = _slicedToArray(_React$useState3, 2),
11446
11509
  maskVisibleState = _React$useState4[0],
@@ -11464,7 +11527,7 @@ var Dialog = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
11464
11527
  var lastPageX = React__namespace.useRef(null);
11465
11528
  var lastPageY = React__namespace.useRef(null);
11466
11529
  var styleElement = React__namespace.useRef(null);
11467
- var attributeSelector = React__namespace.useRef('');
11530
+ var attributeSelector = React__namespace.useRef(uniqueId);
11468
11531
  var maximized = props.onMaximize ? props.maximized : maximizedState;
11469
11532
  var _useEventListener = useEventListener({
11470
11533
  type: 'keydown',
@@ -11771,14 +11834,12 @@ var Dialog = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
11771
11834
  });
11772
11835
  };
11773
11836
  var createStyle = function createStyle() {
11774
- if (!styleElement.current) {
11775
- styleElement.current = DomHandler.createInlineStyle(PrimeReact.nonce);
11776
- var innerHTML = '';
11777
- for (var breakpoint in props.breakpoints) {
11778
- innerHTML += "\n @media screen and (max-width: ".concat(breakpoint, ") {\n .p-dialog[").concat(attributeSelector.current, "] {\n width: ").concat(props.breakpoints[breakpoint], " !important;\n }\n }\n ");
11779
- }
11780
- styleElement.current.innerHTML = innerHTML;
11837
+ styleElement.current = DomHandler.createInlineStyle(PrimeReact.nonce);
11838
+ var innerHTML = '';
11839
+ for (var breakpoint in props.breakpoints) {
11840
+ innerHTML += "\n @media screen and (max-width: ".concat(breakpoint, ") {\n .p-dialog[").concat(attributeSelector.current, "] {\n width: ").concat(props.breakpoints[breakpoint], " !important;\n }\n }\n ");
11781
11841
  }
11842
+ styleElement.current.innerHTML = innerHTML;
11782
11843
  };
11783
11844
  var changeScrollOnMaximizable = function changeScrollOnMaximizable() {
11784
11845
  if (!props.blockScroll) {
@@ -11787,13 +11848,6 @@ var Dialog = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
11787
11848
  }
11788
11849
  };
11789
11850
  useMountEffect(function () {
11790
- var unqiueId = UniqueComponentId();
11791
- if (!idState) {
11792
- setIdState(unqiueId);
11793
- }
11794
- if (!attributeSelector.current) {
11795
- attributeSelector.current = unqiueId;
11796
- }
11797
11851
  if (props.visible) {
11798
11852
  setMaskVisibleState(true);
11799
11853
  }
@@ -11935,7 +11989,9 @@ var Dialog = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
11935
11989
  var className = classNames('p-dialog p-component', props.className, {
11936
11990
  'p-dialog-rtl': props.rtl,
11937
11991
  'p-dialog-maximized': maximized,
11938
- 'p-dialog-default': !maximized
11992
+ 'p-dialog-default': !maximized,
11993
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
11994
+ 'p-ripple-disabled': PrimeReact.ripple === false
11939
11995
  });
11940
11996
  var maskClassName = classNames('p-dialog-mask', getPositionClass(), {
11941
11997
  'p-component-overlay p-component-overlay-enter': props.modal,
@@ -12286,7 +12342,7 @@ var ConfirmPopup = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
12286
12342
  var type = _ref.type,
12287
12343
  valid = _ref.valid;
12288
12344
  if (valid) {
12289
- type === 'outside' ? props.dismissable && !isPanelClicked.current && hide() : hide();
12345
+ type === 'outside' ? props.dismissable && !isPanelClicked.current && hide('hide') : hide('hide');
12290
12346
  }
12291
12347
  isPanelClicked.current = false;
12292
12348
  },
@@ -12457,7 +12513,10 @@ var ConfirmPopup = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
12457
12513
  };
12458
12514
  var createElement = function createElement() {
12459
12515
  var otherProps = ObjectUtils.findDiffKeys(props, ConfirmPopup.defaultProps);
12460
- var className = classNames('p-confirm-popup p-component', getPropValue('className'));
12516
+ var className = classNames('p-confirm-popup p-component', getPropValue('className'), {
12517
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
12518
+ 'p-ripple-disabled': PrimeReact.ripple === false
12519
+ });
12461
12520
  var content = createContent();
12462
12521
  var footer = createFooter();
12463
12522
  return /*#__PURE__*/React__namespace.createElement(CSSTransition, {
@@ -12843,7 +12902,10 @@ var ContextMenu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
12843
12902
  });
12844
12903
  var createContextMenu = function createContextMenu() {
12845
12904
  var otherProps = ObjectUtils.findDiffKeys(props, ContextMenu.defaultProps);
12846
- var className = classNames('p-contextmenu p-component', props.className);
12905
+ var className = classNames('p-contextmenu p-component', props.className, {
12906
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
12907
+ 'p-ripple-disabled': PrimeReact.ripple === false
12908
+ });
12847
12909
  return /*#__PURE__*/React__namespace.createElement(CSSTransition, {
12848
12910
  nodeRef: menuRef,
12849
12911
  classNames: "p-contextmenu",
@@ -13335,16 +13397,11 @@ var InputNumber = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
13335
13397
  return;
13336
13398
  }
13337
13399
 
13400
+ // #3913 onChange should be called before onValueChange
13401
+ handleOnChange(event, currentValue, newValue);
13338
13402
  // touch devices trigger the keyboard to display because of setSelectionRange
13339
13403
  !DomHandler.isTouchDevice() && updateInput(newValue, null, 'spin');
13340
13404
  updateModel(event, newValue);
13341
- handleOnChange(event, currentValue, newValue);
13342
- }
13343
- };
13344
- var onUpButtonTouchStart = function onUpButtonTouchStart(event) {
13345
- if (!props.disabled && !props.readOnly) {
13346
- repeat(event, null, 1);
13347
- event.preventDefault();
13348
13405
  }
13349
13406
  };
13350
13407
  var onUpButtonMouseDown = function onUpButtonMouseDown(event) {
@@ -13354,11 +13411,6 @@ var InputNumber = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
13354
13411
  event.preventDefault();
13355
13412
  }
13356
13413
  };
13357
- var onUpButtonTouchEnd = function onUpButtonTouchEnd() {
13358
- if (!props.disabled && !props.readOnly) {
13359
- clearTimer();
13360
- }
13361
- };
13362
13414
  var onUpButtonMouseUp = function onUpButtonMouseUp() {
13363
13415
  if (!props.disabled && !props.readOnly) {
13364
13416
  clearTimer();
@@ -13379,17 +13431,6 @@ var InputNumber = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
13379
13431
  repeat(event, null, 1);
13380
13432
  }
13381
13433
  };
13382
- var onDownButtonTouchStart = function onDownButtonTouchStart(event) {
13383
- if (!props.disabled && !props.readOnly) {
13384
- repeat(event, null, -1);
13385
- event.preventDefault();
13386
- }
13387
- };
13388
- var onDownButtonTouchEnd = function onDownButtonTouchEnd() {
13389
- if (!props.disabled && !props.readOnly) {
13390
- clearTimer();
13391
- }
13392
- };
13393
13434
  var onDownButtonMouseDown = function onDownButtonMouseDown(event) {
13394
13435
  if (!props.disabled && !props.readOnly) {
13395
13436
  props.autoFocus && DomHandler.focus(inputRef.current, props.autoFocus);
@@ -13963,6 +14004,9 @@ var InputNumber = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
13963
14004
  React__namespace.useImperativeHandle(ref, function () {
13964
14005
  return {
13965
14006
  props: props,
14007
+ focus: function focus() {
14008
+ return DomHandler.focus(inputRef.current);
14009
+ },
13966
14010
  getFormatter: getFormatter,
13967
14011
  getElement: function getElement() {
13968
14012
  return elementRef.current;
@@ -14033,13 +14077,11 @@ var InputNumber = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
14033
14077
  return /*#__PURE__*/React__namespace.createElement("button", {
14034
14078
  type: "button",
14035
14079
  className: className,
14036
- onMouseLeave: onUpButtonMouseLeave,
14037
- onMouseDown: onUpButtonMouseDown,
14038
- onMouseUp: onUpButtonMouseUp,
14080
+ onPointerLeave: onUpButtonMouseLeave,
14081
+ onPointerDown: onUpButtonMouseDown,
14082
+ onPointerUp: onUpButtonMouseUp,
14039
14083
  onKeyDown: onUpButtonKeyDown,
14040
14084
  onKeyUp: onUpButtonKeyUp,
14041
- onTouchStart: onUpButtonTouchStart,
14042
- onTouchEnd: onUpButtonTouchEnd,
14043
14085
  disabled: props.disabled,
14044
14086
  tabIndex: -1
14045
14087
  }, /*#__PURE__*/React__namespace.createElement("span", {
@@ -14054,13 +14096,11 @@ var InputNumber = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
14054
14096
  return /*#__PURE__*/React__namespace.createElement("button", {
14055
14097
  type: "button",
14056
14098
  className: className,
14057
- onMouseLeave: onDownButtonMouseLeave,
14058
- onMouseDown: onDownButtonMouseDown,
14059
- onMouseUp: onDownButtonMouseUp,
14099
+ onPointerLeave: onDownButtonMouseLeave,
14100
+ onPointerDown: onDownButtonMouseDown,
14101
+ onPointerUp: onDownButtonMouseUp,
14060
14102
  onKeyDown: onDownButtonKeyDown,
14061
14103
  onKeyUp: onDownButtonKeyUp,
14062
- onTouchStart: onDownButtonTouchStart,
14063
- onTouchEnd: onDownButtonTouchEnd,
14064
14104
  disabled: props.disabled,
14065
14105
  tabIndex: -1
14066
14106
  }, /*#__PURE__*/React__namespace.createElement("span", {
@@ -14587,7 +14627,10 @@ var DropdownPanel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
14587
14627
  }
14588
14628
  };
14589
14629
  var createElement = function createElement() {
14590
- var className = classNames('p-dropdown-panel p-component', props.panelClassName);
14630
+ var className = classNames('p-dropdown-panel p-component', props.panelClassName, {
14631
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
14632
+ 'p-ripple-disabled': PrimeReact.ripple === false
14633
+ });
14591
14634
  var filter = createFilter();
14592
14635
  var content = createContent();
14593
14636
  return /*#__PURE__*/React__namespace.createElement(CSSTransition, {
@@ -14701,6 +14744,12 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
14701
14744
  if (props.disabled) {
14702
14745
  return;
14703
14746
  }
14747
+ props.onClick && props.onClick(event);
14748
+
14749
+ // do not continue if the user defined click wants to prevent it
14750
+ if (event.defaultPrevented) {
14751
+ return;
14752
+ }
14704
14753
  if (DomHandler.hasClass(event.target, 'p-dropdown-clear-icon') || event.target.tagName === 'INPUT') {
14705
14754
  return;
14706
14755
  } else if (!overlayRef.current || !(overlayRef.current && overlayRef.current.contains(event.target))) {
@@ -15127,6 +15176,9 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
15127
15176
  props: props,
15128
15177
  show: show,
15129
15178
  hide: hide,
15179
+ focus: function focus() {
15180
+ return DomHandler.focus(focusInputRef.current);
15181
+ },
15130
15182
  getElement: function getElement() {
15131
15183
  return elementRef.current;
15132
15184
  },
@@ -15156,10 +15208,10 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
15156
15208
  }
15157
15209
  }, [overlayVisibleState, props.value]);
15158
15210
  useUpdateEffect(function () {
15159
- if (overlayVisibleState && props.filter) {
15211
+ if (overlayVisibleState && filterState && props.filter) {
15160
15212
  alignOverlay();
15161
15213
  }
15162
- }, [overlayVisibleState, props.filter]);
15214
+ }, [overlayVisibleState, filterState, props.filter]);
15163
15215
  useUpdateEffect(function () {
15164
15216
  if (filterState && (!props.options || props.options.length === 0)) {
15165
15217
  setFilterState('');
@@ -15246,15 +15298,20 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
15246
15298
  };
15247
15299
  var createClearIcon = function createClearIcon() {
15248
15300
  if (props.value != null && props.showClear && !props.disabled) {
15249
- return /*#__PURE__*/React__namespace.createElement("i", {
15250
- className: "p-dropdown-clear-icon pi pi-times",
15251
- onClick: clear
15252
- });
15301
+ var iconClassName = classNames('p-dropdown-clear-icon p-clickable');
15302
+ var iconProps = {
15303
+ className: iconClassName,
15304
+ onPointerUp: clear
15305
+ };
15306
+ return IconUtils.getJSXIcon(props.clearIcon, iconProps);
15253
15307
  }
15254
15308
  return null;
15255
15309
  };
15256
15310
  var createDropdownIcon = function createDropdownIcon() {
15257
- var iconClassName = classNames('p-dropdown-trigger-icon p-clickable', props.dropdownIcon);
15311
+ var iconClassName = classNames('p-dropdown-trigger-icon p-clickable');
15312
+ var icon = IconUtils.getJSXIcon(props.dropdownIcon, {
15313
+ className: iconClassName
15314
+ });
15258
15315
  var ariaLabel = props.placeholder || props.ariaLabel;
15259
15316
  return /*#__PURE__*/React__namespace.createElement("div", {
15260
15317
  className: "p-dropdown-trigger",
@@ -15262,9 +15319,7 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
15262
15319
  "aria-haspopup": "listbox",
15263
15320
  "aria-expanded": overlayVisibleState,
15264
15321
  "aria-label": ariaLabel
15265
- }, /*#__PURE__*/React__namespace.createElement("span", {
15266
- className: iconClassName
15267
- }));
15322
+ }, icon);
15268
15323
  };
15269
15324
  var visibleOptions = getVisibleOptions();
15270
15325
  var selectedOption = getSelectedOption();
@@ -15331,6 +15386,7 @@ Dropdown.defaultProps = {
15331
15386
  ariaLabelledBy: null,
15332
15387
  autoFocus: false,
15333
15388
  className: null,
15389
+ clearIcon: 'pi pi-times',
15334
15390
  dataKey: null,
15335
15391
  disabled: false,
15336
15392
  dropdownIcon: 'pi pi-chevron-down',
@@ -15719,7 +15775,8 @@ var RowCheckbox = /*#__PURE__*/React__namespace.memo(function (props) {
15719
15775
  }
15720
15776
  };
15721
15777
  var onKeyDown = function onKeyDown(event) {
15722
- if (event.code === 'Space') {
15778
+ if (event.code === 'Space' || event.key === ' ') {
15779
+ // event.key is for Android support
15723
15780
  onClick(event);
15724
15781
  event.preventDefault();
15725
15782
  }
@@ -15773,7 +15830,8 @@ var RowRadioButton = /*#__PURE__*/React__namespace.memo(function (props) {
15773
15830
  }
15774
15831
  };
15775
15832
  var onKeyDown = function onKeyDown(event) {
15776
- if (event.code === 'Space') {
15833
+ if (event.code === 'Space' || event.key === ' ') {
15834
+ // event.key is for Android support
15777
15835
  onClick(event);
15778
15836
  event.preventDefault();
15779
15837
  }
@@ -15840,7 +15898,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
15840
15898
  return props.column ? props.column.props[prop] : null;
15841
15899
  };
15842
15900
  var field = getColumnProp('field') || "field_".concat(props.index);
15843
- var editingKey = props.dataKey ? props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
15901
+ var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
15844
15902
  var _useEventListener = useEventListener({
15845
15903
  type: 'click',
15846
15904
  listener: function listener(e) {
@@ -15867,7 +15925,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
15867
15925
  return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
15868
15926
  };
15869
15927
  var equals = function equals(selectedCell) {
15870
- return (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
15928
+ return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
15871
15929
  };
15872
15930
  var isOutsideClicked = function isOutsideClicked(target) {
15873
15931
  return elementRef.current && !(elementRef.current.isSameNode(target) || elementRef.current.contains(target));
@@ -16002,14 +16060,14 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
16002
16060
  var align = getColumnProp('alignFrozen');
16003
16061
  if (align === 'right') {
16004
16062
  var right = 0;
16005
- var next = elementRef.current.nextElementSibling;
16063
+ var next = elementRef.current && elementRef.current.nextElementSibling;
16006
16064
  if (next) {
16007
16065
  right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
16008
16066
  }
16009
16067
  styleObject['right'] = right + 'px';
16010
16068
  } else {
16011
16069
  var left = 0;
16012
- var prev = elementRef.current.previousElementSibling;
16070
+ var prev = elementRef.current && elementRef.current.previousElementSibling;
16013
16071
  if (prev) {
16014
16072
  left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
16015
16073
  }
@@ -16025,7 +16083,10 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
16025
16083
  setEditingRowDataState(editingRowData);
16026
16084
 
16027
16085
  // update editing meta for complete methods on row mode
16028
- props.editingMeta[editingKey].data[field] = val;
16086
+ var currentData = getEditingRowData();
16087
+ if (currentData) {
16088
+ currentData[field] = val;
16089
+ }
16029
16090
  };
16030
16091
  var onClick = function onClick(event) {
16031
16092
  var params = getCellCallbackParams(event);
@@ -16992,7 +17053,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
16992
17053
  return null;
16993
17054
  };
16994
17055
  var getRowKey = function getRowKey(rowData, index) {
16995
- return props.dataKey ? ObjectUtils.resolveFieldData(rowData, props.dataKey) + '_' + index : index;
17056
+ return props.dataKey ? ObjectUtils.resolveFieldData(rowData, props.dataKey) : index;
16996
17057
  };
16997
17058
  var shouldRenderRowGroupHeader = function shouldRenderRowGroupHeader(value, rowData, i) {
16998
17059
  var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, props.groupRowsBy);
@@ -17469,14 +17530,14 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
17469
17530
  var event = e.originalEvent;
17470
17531
  if (droppedRowIndex.current != null) {
17471
17532
  var dropIndex = draggedRowIndex.current > droppedRowIndex.current ? droppedRowIndex.current : droppedRowIndex.current === 0 ? 0 : droppedRowIndex.current - 1;
17472
- var val = _toConsumableArray(props.value);
17533
+ var val = _toConsumableArray(props.tableProps.value);
17473
17534
  ObjectUtils.reorderArray(val, draggedRowIndex.current, dropIndex);
17474
17535
  if (props.onRowReorder) {
17475
17536
  props.onRowReorder({
17476
17537
  originalEvent: event,
17477
17538
  value: val,
17478
17539
  dragIndex: draggedRowIndex.current,
17479
- dropIndex: droppedRowIndex.current
17540
+ dropIndex: dropIndex
17480
17541
  });
17481
17542
  }
17482
17543
  }
@@ -18602,7 +18663,8 @@ var HeaderCheckbox = /*#__PURE__*/React__namespace.memo(function (props) {
18602
18663
  }
18603
18664
  };
18604
18665
  var onKeyDown = function onKeyDown(event) {
18605
- if (event.code === 'Space') {
18666
+ if (event.code === 'Space' || event.key === ' ') {
18667
+ // event.key is for Android support
18606
18668
  onClick(event);
18607
18669
  event.preventDefault();
18608
18670
  }
@@ -19484,7 +19546,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
19484
19546
  return props.selectAll;
19485
19547
  } else {
19486
19548
  var _data = props.selectionPageOnly ? dataToRender(processedData) : processedData;
19487
- var val = props.frozenValue ? [].concat(_toConsumableArray(props.frozenValue), _toConsumableArray(_data)) : _data;
19549
+ var val = ObjectUtils.isNotEmpty(props.frozenValue) ? [].concat(_toConsumableArray(props.frozenValue), _toConsumableArray(_data)) : _data;
19488
19550
  var selectableVal = getSelectableData(val);
19489
19551
  return selectableVal && props.selection && selectableVal.every(function (sv) {
19490
19552
  return props.selection.some(function (s) {
@@ -19645,7 +19707,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
19645
19707
  });
19646
19708
  }) : [];
19647
19709
  if (checked) {
19648
- selection = props.frozenValue ? [].concat(_toConsumableArray(selection), _toConsumableArray(props.frozenValue), _toConsumableArray(_data2)) : [].concat(_toConsumableArray(selection), _toConsumableArray(_data2));
19710
+ selection = ObjectUtils.isNotEmpty(props.frozenValue) ? [].concat(_toConsumableArray(selection), _toConsumableArray(props.frozenValue), _toConsumableArray(_data2)) : [].concat(_toConsumableArray(selection), _toConsumableArray(_data2));
19649
19711
  selection = getSelectableData(selection);
19650
19712
  props.onAllRowsSelect && props.onAllRowsSelect({
19651
19713
  originalEvent: originalEvent,
@@ -19993,6 +20055,9 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
19993
20055
  var globalMatch = false;
19994
20056
  var localFiltered = false;
19995
20057
  for (var prop in filters) {
20058
+ if (prop === 'null') {
20059
+ continue;
20060
+ }
19996
20061
  if (Object.prototype.hasOwnProperty.call(filters, prop) && prop !== 'global') {
19997
20062
  localFiltered = true;
19998
20063
  var filterField = prop;
@@ -20284,8 +20349,11 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
20284
20349
  useUpdateEffect(function () {
20285
20350
  if (props.globalFilter) {
20286
20351
  filter(props.globalFilter, 'global', props.globalFilterMatchMode);
20352
+ } else {
20353
+ // #3819 was filtering but now reset filter state
20354
+ setFiltersState(props.filters);
20287
20355
  }
20288
- }, [props.globalFilter]);
20356
+ }, [props.globalFilter, props.globalFilterMatchMode]);
20289
20357
  useUnmountEffect(function () {
20290
20358
  unbindColumnResizeEvents();
20291
20359
  destroyStyleElement();
@@ -20389,7 +20457,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
20389
20457
  contentRef = options.contentRef,
20390
20458
  className = options.className;
20391
20459
  options.itemSize;
20392
- var frozenBody = props.frozenValue && /*#__PURE__*/React__namespace.createElement(TableBody, {
20460
+ var frozenBody = ObjectUtils.isNotEmpty(props.frozenValue) && /*#__PURE__*/React__namespace.createElement(TableBody, {
20393
20461
  ref: frozenBodyRef,
20394
20462
  value: props.frozenValue,
20395
20463
  className: "p-datatable-frozen-tbody",
@@ -22305,6 +22373,9 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
22305
22373
  },
22306
22374
  getFiles: function getFiles() {
22307
22375
  return filesState;
22376
+ },
22377
+ setFiles: function setFiles(files) {
22378
+ return setFilesState(files || []);
22308
22379
  }
22309
22380
  };
22310
22381
  });
@@ -22383,6 +22454,7 @@ var FileUpload = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
22383
22454
  removeElement: removeButton,
22384
22455
  formatSize: formatSize(file.size),
22385
22456
  element: content,
22457
+ index: index,
22386
22458
  props: props
22387
22459
  };
22388
22460
  content = ObjectUtils.getJSXElement(props.itemTemplate, file, defaultContentOptions);
@@ -23215,7 +23287,9 @@ var Galleria = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
23215
23287
  var galleriaClassName = classNames('p-galleria p-component', props.className, {
23216
23288
  'p-galleria-fullscreen': props.fullScreen,
23217
23289
  'p-galleria-indicator-onitem': props.showIndicatorsOnItem,
23218
- 'p-galleria-item-nav-onhover': props.showItemNavigatorsOnHover && !props.fullScreen
23290
+ 'p-galleria-item-nav-onhover': props.showItemNavigatorsOnHover && !props.fullScreen,
23291
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
23292
+ 'p-ripple-disabled': PrimeReact.ripple === false
23219
23293
  }, thumbnailsPosClassName, indicatorPosClassName);
23220
23294
  var closeIcon = props.fullScreen && /*#__PURE__*/React__namespace.createElement("button", {
23221
23295
  type: "button",
@@ -24011,11 +24085,10 @@ var InputMask = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
24011
24085
  pos,
24012
24086
  begin,
24013
24087
  end;
24014
- var iPhone = /iphone/i.test(DomHandler.getUserAgent());
24015
24088
  oldVal.current = elementRef.current.value;
24016
24089
 
24017
24090
  //backspace, delete, and escape get special treatment
24018
- if (k === 8 || k === 46 || iPhone && k === 127) {
24091
+ if (k === 8 || k === 46 || DomHandler.isIOS() && k === 127) {
24019
24092
  pos = caret();
24020
24093
  begin = pos.begin;
24021
24094
  end = pos.end;
@@ -24065,7 +24138,7 @@ var InputMask = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
24065
24138
  buffer.current[p] = c;
24066
24139
  writeBuffer();
24067
24140
  next = seekNext(p);
24068
- if (/android/i.test(DomHandler.getUserAgent())) {
24141
+ if (DomHandler.isAndroid()) {
24069
24142
  //Path for CSP Violation on FireFox OS 1.1
24070
24143
  var proxy = function proxy() {
24071
24144
  caret(next);
@@ -24254,8 +24327,7 @@ var InputMask = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
24254
24327
  a: '[A-Za-z]',
24255
24328
  '*': '[A-Za-z0-9]'
24256
24329
  };
24257
- var ua = DomHandler.getUserAgent();
24258
- androidChrome.current = /chrome/i.test(ua) && /android/i.test(ua);
24330
+ androidChrome.current = DomHandler.isChrome() && DomHandler.isAndroid();
24259
24331
  var maskTokens = props.mask.split('');
24260
24332
  for (var i = 0; i < maskTokens.length; i++) {
24261
24333
  var c = maskTokens[i];
@@ -24287,6 +24359,9 @@ var InputMask = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
24287
24359
  React__namespace.useImperativeHandle(ref, function () {
24288
24360
  return {
24289
24361
  props: props,
24362
+ focus: function focus() {
24363
+ return DomHandler.focus(elementRef.current);
24364
+ },
24290
24365
  getElement: function getElement() {
24291
24366
  return elementRef.current;
24292
24367
  }
@@ -24409,11 +24484,14 @@ var InputSwitch = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
24409
24484
  React__namespace.useImperativeHandle(ref, function () {
24410
24485
  return {
24411
24486
  props: props,
24487
+ focus: function focus() {
24488
+ return DomHandler.focus(inputRef.current);
24489
+ },
24412
24490
  getElement: function getElement() {
24413
24491
  return elementRef.current;
24414
24492
  },
24415
24493
  getInput: function getInput() {
24416
- return elementRef.current;
24494
+ return inputRef.current;
24417
24495
  }
24418
24496
  };
24419
24497
  });
@@ -25153,6 +25231,9 @@ var ListBox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
25153
25231
  React__namespace.useImperativeHandle(ref, function () {
25154
25232
  return {
25155
25233
  props: props,
25234
+ focus: function focus() {
25235
+ return DomHandler.focusFirstElement(elementRef.current);
25236
+ },
25156
25237
  getElement: function getElement() {
25157
25238
  return elementRef.current;
25158
25239
  },
@@ -25996,6 +26077,9 @@ var Mention = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
25996
26077
  props: props,
25997
26078
  show: show,
25998
26079
  hide: hide,
26080
+ focus: function focus() {
26081
+ return DomHandler.focus(inputRef.current);
26082
+ },
25999
26083
  getElement: function getElement() {
26000
26084
  return elementRef.current;
26001
26085
  },
@@ -26347,7 +26431,9 @@ var Menu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.for
26347
26431
  if (props.model) {
26348
26432
  var otherProps = ObjectUtils.findDiffKeys(props, Menu.defaultProps);
26349
26433
  var className = classNames('p-menu p-component', {
26350
- 'p-menu-overlay': props.popup
26434
+ 'p-menu-overlay': props.popup,
26435
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
26436
+ 'p-ripple-disabled': PrimeReact.ripple === false
26351
26437
  }, props.className);
26352
26438
  var menuitems = createMenu();
26353
26439
  return /*#__PURE__*/React__namespace.createElement(CSSTransition, {
@@ -27153,7 +27239,9 @@ var MultiSelectPanel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__n
27153
27239
  var panelClassName = classNames('p-multiselect-panel p-component', {
27154
27240
  'p-multiselect-inline': props.inline,
27155
27241
  'p-multiselect-flex': props.flex,
27156
- 'p-multiselect-limited': !allowOptionSelect
27242
+ 'p-multiselect-limited': !allowOptionSelect,
27243
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
27244
+ 'p-ripple-disabled': PrimeReact.ripple === false
27157
27245
  }, props.panelClassName);
27158
27246
  var header = createHeader();
27159
27247
  var content = createContent();
@@ -27703,6 +27791,9 @@ var MultiSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
27703
27791
  props: props,
27704
27792
  show: show,
27705
27793
  hide: hide,
27794
+ focus: function focus() {
27795
+ return DomHandler.focus(inputRef.current);
27796
+ },
27706
27797
  getElement: function getElement() {
27707
27798
  return elementRef.current;
27708
27799
  },
@@ -27966,6 +28057,9 @@ var MultiStateCheckbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React_
27966
28057
  React__namespace.useImperativeHandle(ref, function () {
27967
28058
  return {
27968
28059
  props: props,
28060
+ focus: function focus() {
28061
+ return DomHandler.focusFirstElement(elementRef.current);
28062
+ },
27969
28063
  getElement: function getElement() {
27970
28064
  return elementRef.current;
27971
28065
  }
@@ -28954,7 +29048,10 @@ var OverlayPanel = /*#__PURE__*/React__namespace.forwardRef(function (props, ref
28954
29048
  };
28955
29049
  var createElement = function createElement() {
28956
29050
  var otherProps = ObjectUtils.findDiffKeys(props, OverlayPanel.defaultProps);
28957
- var className = classNames('p-overlaypanel p-component', props.className);
29051
+ var className = classNames('p-overlaypanel p-component', props.className, {
29052
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
29053
+ 'p-ripple-disabled': PrimeReact.ripple === false
29054
+ });
28958
29055
  var closeIcon = createCloseIcon();
28959
29056
  return /*#__PURE__*/React__namespace.createElement(CSSTransition, {
28960
29057
  nodeRef: overlayRef,
@@ -29719,6 +29816,9 @@ var Password = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
29719
29816
  React__namespace.useImperativeHandle(ref, function () {
29720
29817
  return {
29721
29818
  props: props,
29819
+ focus: function focus() {
29820
+ return DomHandler.focus(inputRef.current);
29821
+ },
29722
29822
  getElement: function getElement() {
29723
29823
  return elementRef.current;
29724
29824
  },
@@ -29768,7 +29868,10 @@ var Password = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
29768
29868
  return null;
29769
29869
  };
29770
29870
  var createPanel = function createPanel() {
29771
- var panelClassName = classNames('p-password-panel p-component', props.panelClassName);
29871
+ var panelClassName = classNames('p-password-panel p-component', props.panelClassName, {
29872
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
29873
+ 'p-ripple-disabled': PrimeReact.ripple === false
29874
+ });
29772
29875
  var _ref2 = meterState || {
29773
29876
  strength: '',
29774
29877
  width: '0%'
@@ -30716,7 +30819,8 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
30716
30819
  setFocusedState(false);
30717
30820
  };
30718
30821
  var onKeyDown = function onKeyDown(event) {
30719
- if (event.code === 'Space') {
30822
+ if (event.code === 'Space' || event.key === ' ') {
30823
+ // event.key is for Android support
30720
30824
  onClick(event);
30721
30825
  }
30722
30826
  };
@@ -30732,6 +30836,9 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
30732
30836
  return {
30733
30837
  props: props,
30734
30838
  select: select,
30839
+ focus: function focus() {
30840
+ return DomHandler.focus(inputRef.current);
30841
+ },
30735
30842
  getElement: function getElement() {
30736
30843
  return elementRef.current;
30737
30844
  },
@@ -31378,6 +31485,9 @@ var SelectButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
31378
31485
  React__namespace.useImperativeHandle(ref, function () {
31379
31486
  return {
31380
31487
  props: props,
31488
+ focus: function focus() {
31489
+ return DomHandler.focusFirstElement(elementRef.current);
31490
+ },
31381
31491
  getElement: function getElement() {
31382
31492
  return elementRef.current;
31383
31493
  }
@@ -31553,6 +31663,15 @@ var Sidebar = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
31553
31663
  setVisibleState(true);
31554
31664
  }
31555
31665
  }, [maskVisibleState]);
31666
+ useUpdateEffect(function () {
31667
+ // #3811 if dismissible state is toggled while open we must unregister and re-regisetr
31668
+ if (visibleState) {
31669
+ unbindDocumentClickListener();
31670
+ if (props.dismissable && !props.modal) {
31671
+ bindDocumentClickListener();
31672
+ }
31673
+ }
31674
+ }, [props.dismissable, props.modal, visibleState]);
31556
31675
  useUnmountEffect(function () {
31557
31676
  disableDocumentSettings();
31558
31677
  maskRef.current && ZIndexUtils.clear(maskRef.current);
@@ -31578,7 +31697,10 @@ var Sidebar = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
31578
31697
  };
31579
31698
  var createElement = function createElement() {
31580
31699
  var otherProps = ObjectUtils.findDiffKeys(props, Sidebar.defaultProps);
31581
- var className = classNames('p-sidebar p-component', props.className);
31700
+ var className = classNames('p-sidebar p-component', props.className, {
31701
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
31702
+ 'p-ripple-disabled': PrimeReact.ripple === false
31703
+ });
31582
31704
  var maskClassName = classNames('p-sidebar-mask', {
31583
31705
  'p-component-overlay p-component-overlay-enter': props.modal,
31584
31706
  'p-sidebar-mask-scrollblocker': props.blockScroll,
@@ -32634,8 +32756,9 @@ var SplitButtonItem = /*#__PURE__*/React__namespace.memo(function (props) {
32634
32756
  _label = _props$menuitem.label,
32635
32757
  template = _props$menuitem.template,
32636
32758
  url = _props$menuitem.url,
32637
- target = _props$menuitem.target;
32638
- var className = classNames('p-menuitem-link', {
32759
+ target = _props$menuitem.target,
32760
+ _className = _props$menuitem.className;
32761
+ var className = classNames('p-menuitem-link', _className, {
32639
32762
  'p-disabled': disabled
32640
32763
  });
32641
32764
  var iconClassName = classNames('p-menuitem-icon', _icon);
@@ -33715,7 +33838,7 @@ var TabView = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
33715
33838
  updateScrollBar(index);
33716
33839
  };
33717
33840
  var _onKeyDown = function onKeyDown(event, tab, index) {
33718
- if (event.code === 'Enter') {
33841
+ if (event.key === 'Enter') {
33719
33842
  onTabHeaderClick(event, tab, index);
33720
33843
  }
33721
33844
  };
@@ -34106,6 +34229,9 @@ var Terminal = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
34106
34229
  React__namespace.useImperativeHandle(ref, function () {
34107
34230
  return {
34108
34231
  props: props,
34232
+ focus: function focus() {
34233
+ return DomHandler.focus(inputRef.current);
34234
+ },
34109
34235
  getElement: function getElement() {
34110
34236
  return elementRef.current;
34111
34237
  }
@@ -34530,7 +34656,9 @@ var TieredMenu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
34530
34656
  var createElement = function createElement() {
34531
34657
  var otherProps = ObjectUtils.findDiffKeys(props, TieredMenu.defaultProps);
34532
34658
  var className = classNames('p-tieredmenu p-component', {
34533
- 'p-tieredmenu-overlay': props.popup
34659
+ 'p-tieredmenu-overlay': props.popup,
34660
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
34661
+ 'p-ripple-disabled': PrimeReact.ripple === false
34534
34662
  }, props.className);
34535
34663
  return /*#__PURE__*/React__namespace.createElement(CSSTransition, {
34536
34664
  nodeRef: menuRef,
@@ -34623,25 +34751,21 @@ var Timeline = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
34623
34751
  var className = classNames('p-timeline p-component', (_classNames = {}, _defineProperty(_classNames, "p-timeline-".concat(props.align), true), _defineProperty(_classNames, "p-timeline-".concat(props.layout), true), _classNames), props.className);
34624
34752
  var events = createEvents();
34625
34753
  return /*#__PURE__*/React__namespace.createElement("div", _extends({
34626
- id: props.id,
34627
34754
  ref: elementRef,
34628
- className: className,
34629
- style: props.style
34755
+ className: className
34630
34756
  }, otherProps), events);
34631
34757
  }));
34632
34758
  Timeline.displayName = 'Timeline';
34633
34759
  Timeline.defaultProps = {
34634
34760
  __TYPE: 'Timeline',
34635
- id: null,
34636
- value: null,
34637
34761
  align: 'left',
34638
- layout: 'vertical',
34639
- dataKey: null,
34640
34762
  className: null,
34641
- style: null,
34642
- opposite: null,
34763
+ content: null,
34764
+ dataKey: null,
34765
+ layout: 'vertical',
34643
34766
  marker: null,
34644
- content: null
34767
+ opposite: null,
34768
+ value: null
34645
34769
  };
34646
34770
 
34647
34771
  var ToastMessage = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
@@ -34847,7 +34971,10 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
34847
34971
  });
34848
34972
  var createElement = function createElement() {
34849
34973
  var otherProps = ObjectUtils.findDiffKeys(props, Toast.defaultProps);
34850
- var className = classNames('p-toast p-component p-toast-' + props.position, props.className);
34974
+ var className = classNames('p-toast p-component p-toast-' + props.position, props.className, {
34975
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
34976
+ 'p-ripple-disabled': PrimeReact.ripple === false
34977
+ });
34851
34978
  return /*#__PURE__*/React__namespace.createElement("div", _extends({
34852
34979
  ref: containerRef,
34853
34980
  id: props.id,
@@ -34945,13 +35072,16 @@ var ToggleButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
34945
35072
  React__namespace.useImperativeHandle(ref, function () {
34946
35073
  return {
34947
35074
  props: props,
35075
+ focus: function focus() {
35076
+ return DomHandler.focusFirstElement(elementRef.current);
35077
+ },
34948
35078
  getElement: function getElement() {
34949
35079
  return elementRef.current;
34950
35080
  }
34951
35081
  };
34952
35082
  });
34953
35083
  var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
34954
- var tabIndex = !props.disabled && props.tabIndex;
35084
+ var tabIndex = props.disabled ? -1 : props.tabIndex;
34955
35085
  var otherProps = ObjectUtils.findDiffKeys(props, ToggleButton.defaultProps);
34956
35086
  var className = classNames('p-button p-togglebutton p-component', {
34957
35087
  'p-button-icon-only': hasIcon && !hasLabel,
@@ -35003,8 +35133,9 @@ var Toolbar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
35003
35133
  var elementRef = React__namespace.useRef(null);
35004
35134
  var otherProps = ObjectUtils.findDiffKeys(props, Toolbar.defaultProps);
35005
35135
  var toolbarClass = classNames('p-toolbar p-component', props.className);
35006
- var left = ObjectUtils.getJSXElement(props.left, props);
35007
- var right = ObjectUtils.getJSXElement(props.right, props);
35136
+ var start = ObjectUtils.getJSXElement(props.left || props.start, props);
35137
+ var center = ObjectUtils.getJSXElement(props.center, props);
35138
+ var end = ObjectUtils.getJSXElement(props.right || props.end, props);
35008
35139
  React__namespace.useImperativeHandle(ref, function () {
35009
35140
  return {
35010
35141
  props: props,
@@ -35020,10 +35151,12 @@ var Toolbar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
35020
35151
  style: props.style,
35021
35152
  role: "toolbar"
35022
35153
  }, otherProps), /*#__PURE__*/React__namespace.createElement("div", {
35023
- className: "p-toolbar-group-left"
35024
- }, left), /*#__PURE__*/React__namespace.createElement("div", {
35025
- className: "p-toolbar-group-right"
35026
- }, right));
35154
+ className: "p-toolbar-group-start p-toolbar-group-left"
35155
+ }, start), /*#__PURE__*/React__namespace.createElement("div", {
35156
+ className: "p-toolbar-group-center"
35157
+ }, center), /*#__PURE__*/React__namespace.createElement("div", {
35158
+ className: "p-toolbar-group-end p-toolbar-group-right"
35159
+ }, end));
35027
35160
  }));
35028
35161
  Toolbar.displayName = 'Toolbar';
35029
35162
  Toolbar.defaultProps = {
@@ -35032,7 +35165,10 @@ Toolbar.defaultProps = {
35032
35165
  style: null,
35033
35166
  className: null,
35034
35167
  left: null,
35035
- right: null
35168
+ right: null,
35169
+ start: null,
35170
+ center: null,
35171
+ end: null
35036
35172
  };
35037
35173
 
35038
35174
  function _createForOfIteratorHelper$6(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$6(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; } } }; }
@@ -36163,7 +36299,10 @@ var TreeSelectPanel = /*#__PURE__*/React__namespace.forwardRef(function (props,
36163
36299
  var wrapperStyle = {
36164
36300
  maxHeight: props.scrollHeight || 'auto'
36165
36301
  };
36166
- var className = classNames('p-treeselect-panel p-component', props.panelClassName);
36302
+ var className = classNames('p-treeselect-panel p-component', props.panelClassName, {
36303
+ 'p-input-filled': PrimeReact.inputStyle === 'filled',
36304
+ 'p-ripple-disabled': PrimeReact.ripple === false
36305
+ });
36167
36306
  return /*#__PURE__*/React__namespace.createElement(CSSTransition, {
36168
36307
  nodeRef: ref,
36169
36308
  classNames: "p-connected-overlay",
@@ -36509,6 +36648,9 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
36509
36648
  React__namespace.useImperativeHandle(ref, function () {
36510
36649
  return {
36511
36650
  props: props,
36651
+ focus: function focus() {
36652
+ return DomHandler.focus(focusInputRef.current);
36653
+ },
36512
36654
  getElement: function getElement() {
36513
36655
  return elementRef.current;
36514
36656
  }
@@ -38006,6 +38148,7 @@ var TreeTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
38006
38148
  columnOrderState = _React$useState16[0],
38007
38149
  setColumnOrderState = _React$useState16[1];
38008
38150
  var elementRef = React__namespace.useRef(null);
38151
+ var tableRef = React__namespace.useRef(null);
38009
38152
  var resizerHelperRef = React__namespace.useRef(null);
38010
38153
  var reorderIndicatorUpRef = React__namespace.useRef(null);
38011
38154
  var reorderIndicatorDownRef = React__namespace.useRef(null);
@@ -38278,7 +38421,7 @@ var TreeTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
38278
38421
  resizeColGroup(_scrollableBodyTable, _resizeColumnIndex, newColumnWidth, null);
38279
38422
  resizeColGroup(_scrollableFooterTable, _resizeColumnIndex, newColumnWidth, null);
38280
38423
  } else {
38281
- table.style.width = table.offsetWidth + delta + 'px';
38424
+ tableRef.current.style.width = tableRef.current.offsetWidth + delta + 'px';
38282
38425
  resizeColumn.current.style.width = newColumnWidth + 'px';
38283
38426
  }
38284
38427
  }
@@ -38836,6 +38979,7 @@ var TreeTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
38836
38979
  return /*#__PURE__*/React__namespace.createElement("div", {
38837
38980
  className: "p-treetable-wrapper"
38838
38981
  }, /*#__PURE__*/React__namespace.createElement("table", {
38982
+ ref: tableRef,
38839
38983
  style: props.tableStyle,
38840
38984
  className: props.tableClassName
38841
38985
  }, header, footer, body));
@@ -39033,6 +39177,9 @@ var TriStateCheckbox = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__n
39033
39177
  React__namespace.useImperativeHandle(ref, function () {
39034
39178
  return {
39035
39179
  props: props,
39180
+ focus: function focus() {
39181
+ return DomHandler.focusFirstElement(elementRef.current);
39182
+ },
39036
39183
  getElement: function getElement() {
39037
39184
  return elementRef.current;
39038
39185
  }