primereact 8.4.0 → 8.5.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 (388) hide show
  1. package/accordion/accordion.d.ts +2 -2
  2. package/api/api.cjs.js +1 -1
  3. package/api/api.d.ts +3 -3
  4. package/api/api.esm.js +1 -1
  5. package/api/api.js +1 -1
  6. package/autocomplete/autocomplete.cjs.js +3 -7
  7. package/autocomplete/autocomplete.cjs.min.js +1 -1
  8. package/autocomplete/autocomplete.d.ts +2 -2
  9. package/autocomplete/autocomplete.esm.js +3 -7
  10. package/autocomplete/autocomplete.esm.min.js +1 -1
  11. package/autocomplete/autocomplete.js +3 -7
  12. package/autocomplete/autocomplete.min.js +1 -1
  13. package/avatar/avatar.d.ts +1 -1
  14. package/avatargroup/avatargroup.d.ts +1 -1
  15. package/badge/badge.d.ts +1 -1
  16. package/breadcrumb/breadcrumb.cjs.js +12 -0
  17. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  18. package/breadcrumb/breadcrumb.d.ts +1 -1
  19. package/breadcrumb/breadcrumb.esm.js +12 -0
  20. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  21. package/breadcrumb/breadcrumb.js +12 -0
  22. package/breadcrumb/breadcrumb.min.js +1 -1
  23. package/button/button.cjs.js +5 -1
  24. package/button/button.cjs.min.js +1 -1
  25. package/button/button.d.ts +3 -2
  26. package/button/button.esm.js +5 -1
  27. package/button/button.esm.min.js +1 -1
  28. package/button/button.js +5 -1
  29. package/button/button.min.js +1 -1
  30. package/calendar/calendar.cjs.js +40 -40
  31. package/calendar/calendar.cjs.min.js +1 -1
  32. package/calendar/calendar.d.ts +2 -5
  33. package/calendar/calendar.esm.js +40 -40
  34. package/calendar/calendar.esm.min.js +1 -1
  35. package/calendar/calendar.js +41 -41
  36. package/calendar/calendar.min.js +1 -1
  37. package/captcha/captcha.cjs.js +7 -7
  38. package/captcha/captcha.esm.js +7 -7
  39. package/captcha/captcha.js +7 -7
  40. package/card/card.d.ts +1 -1
  41. package/carousel/carousel.cjs.js +61 -42
  42. package/carousel/carousel.cjs.min.js +1 -1
  43. package/carousel/carousel.d.ts +3 -1
  44. package/carousel/carousel.esm.js +61 -42
  45. package/carousel/carousel.esm.min.js +1 -1
  46. package/carousel/carousel.js +61 -42
  47. package/carousel/carousel.min.js +1 -1
  48. package/cascadeselect/cascadeselect.cjs.js +1 -1
  49. package/cascadeselect/cascadeselect.d.ts +2 -2
  50. package/cascadeselect/cascadeselect.esm.js +1 -1
  51. package/cascadeselect/cascadeselect.js +1 -1
  52. package/checkbox/checkbox.cjs.js +12 -2
  53. package/checkbox/checkbox.cjs.min.js +1 -1
  54. package/checkbox/checkbox.d.ts +1 -1
  55. package/checkbox/checkbox.esm.js +12 -2
  56. package/checkbox/checkbox.esm.min.js +1 -1
  57. package/checkbox/checkbox.js +12 -2
  58. package/checkbox/checkbox.min.js +1 -1
  59. package/chip/chip.d.ts +1 -1
  60. package/chips/chips.cjs.js +3 -2
  61. package/chips/chips.cjs.min.js +1 -1
  62. package/chips/chips.d.ts +3 -3
  63. package/chips/chips.esm.js +3 -2
  64. package/chips/chips.esm.min.js +1 -1
  65. package/chips/chips.js +3 -2
  66. package/chips/chips.min.js +1 -1
  67. package/colorpicker/colorpicker.cjs.js +2 -2
  68. package/colorpicker/colorpicker.d.ts +1 -1
  69. package/colorpicker/colorpicker.esm.js +2 -2
  70. package/colorpicker/colorpicker.js +2 -2
  71. package/column/column.d.ts +5 -4
  72. package/columngroup/columngroup.d.ts +1 -1
  73. package/confirmdialog/confirmdialog.cjs.js +6 -2
  74. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  75. package/confirmdialog/confirmdialog.esm.js +6 -2
  76. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  77. package/confirmdialog/confirmdialog.js +6 -2
  78. package/confirmdialog/confirmdialog.min.js +1 -1
  79. package/confirmpopup/confirmpopup.cjs.js +9 -3
  80. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  81. package/confirmpopup/confirmpopup.esm.js +9 -3
  82. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  83. package/confirmpopup/confirmpopup.js +9 -3
  84. package/confirmpopup/confirmpopup.min.js +1 -1
  85. package/contextmenu/contextmenu.cjs.js +4 -0
  86. package/contextmenu/contextmenu.cjs.min.js +1 -1
  87. package/contextmenu/contextmenu.esm.js +4 -0
  88. package/contextmenu/contextmenu.esm.min.js +1 -1
  89. package/contextmenu/contextmenu.js +4 -0
  90. package/contextmenu/contextmenu.min.js +1 -1
  91. package/core/core.js +121 -122
  92. package/core/core.min.js +8 -8
  93. package/csstransition/csstransition.d.ts +2 -2
  94. package/datascroller/datascroller.cjs.js +1 -1
  95. package/datascroller/datascroller.esm.js +1 -1
  96. package/datascroller/datascroller.js +1 -1
  97. package/datatable/datatable.cjs.js +2 -2
  98. package/datatable/datatable.d.ts +2 -2
  99. package/datatable/datatable.esm.js +2 -2
  100. package/datatable/datatable.js +2 -2
  101. package/dataview/dataview.d.ts +2 -2
  102. package/deferredcontent/deferredcontent.d.ts +1 -1
  103. package/dialog/dialog.cjs.js +10 -3
  104. package/dialog/dialog.cjs.min.js +1 -1
  105. package/dialog/dialog.esm.js +10 -3
  106. package/dialog/dialog.esm.min.js +1 -1
  107. package/dialog/dialog.js +10 -3
  108. package/dialog/dialog.min.css +1 -1
  109. package/dialog/dialog.min.js +1 -1
  110. package/divider/divider.d.ts +1 -1
  111. package/dock/dock.cjs.js +4 -0
  112. package/dock/dock.cjs.min.js +1 -1
  113. package/dock/dock.d.ts +1 -1
  114. package/dock/dock.esm.js +4 -0
  115. package/dock/dock.esm.min.js +1 -1
  116. package/dock/dock.js +4 -0
  117. package/dock/dock.min.js +1 -1
  118. package/dropdown/dropdown.cjs.js +4 -3
  119. package/dropdown/dropdown.cjs.min.js +1 -1
  120. package/dropdown/dropdown.d.ts +1 -1
  121. package/dropdown/dropdown.esm.js +4 -3
  122. package/dropdown/dropdown.esm.min.js +1 -1
  123. package/dropdown/dropdown.js +4 -3
  124. package/dropdown/dropdown.min.js +1 -1
  125. package/editor/editor.cjs.js +3 -3
  126. package/editor/editor.esm.js +3 -3
  127. package/editor/editor.js +3 -3
  128. package/fieldset/fieldset.d.ts +1 -1
  129. package/fileupload/fileupload.cjs.js +13 -7
  130. package/fileupload/fileupload.cjs.min.js +1 -1
  131. package/fileupload/fileupload.d.ts +7 -6
  132. package/fileupload/fileupload.esm.js +13 -7
  133. package/fileupload/fileupload.esm.min.js +1 -1
  134. package/fileupload/fileupload.js +13 -7
  135. package/fileupload/fileupload.min.js +1 -1
  136. package/fullcalendar/fullcalendar.d.ts +1 -1
  137. package/galleria/galleria.cjs.js +4 -4
  138. package/galleria/galleria.esm.js +4 -4
  139. package/galleria/galleria.js +4 -4
  140. package/gmap/gmap.d.ts +2 -2
  141. package/image/image.d.ts +1 -1
  142. package/inplace/inplace.d.ts +1 -1
  143. package/inputmask/inputmask.cjs.js +3 -3
  144. package/inputmask/inputmask.d.ts +1 -1
  145. package/inputmask/inputmask.esm.js +3 -3
  146. package/inputmask/inputmask.js +3 -3
  147. package/inputswitch/inputswitch.d.ts +1 -1
  148. package/inputtext/inputtext.d.ts +3 -6
  149. package/inputtextarea/inputtextarea.d.ts +2 -5
  150. package/keyfilter/keyfilter.cjs.js +3 -56
  151. package/keyfilter/keyfilter.cjs.min.js +1 -1
  152. package/keyfilter/keyfilter.esm.js +3 -56
  153. package/keyfilter/keyfilter.esm.min.js +1 -1
  154. package/keyfilter/keyfilter.js +5 -56
  155. package/keyfilter/keyfilter.min.js +1 -1
  156. package/knob/knob.cjs.js +1 -1
  157. package/knob/knob.d.ts +1 -1
  158. package/knob/knob.esm.js +1 -1
  159. package/knob/knob.js +1 -1
  160. package/listbox/listbox.d.ts +0 -1
  161. package/megamenu/megamenu.cjs.js +4 -0
  162. package/megamenu/megamenu.cjs.min.js +1 -1
  163. package/megamenu/megamenu.d.ts +1 -2
  164. package/megamenu/megamenu.esm.js +4 -0
  165. package/megamenu/megamenu.esm.min.js +1 -1
  166. package/megamenu/megamenu.js +4 -0
  167. package/megamenu/megamenu.min.js +1 -1
  168. package/menu/menu.cjs.js +4 -0
  169. package/menu/menu.cjs.min.js +1 -1
  170. package/menu/menu.esm.js +4 -0
  171. package/menu/menu.esm.min.js +1 -1
  172. package/menu/menu.js +4 -0
  173. package/menu/menu.min.js +1 -1
  174. package/menubar/menubar.cjs.js +9 -0
  175. package/menubar/menubar.cjs.min.js +1 -1
  176. package/menubar/menubar.d.ts +1 -1
  177. package/menubar/menubar.esm.js +9 -0
  178. package/menubar/menubar.esm.min.js +1 -1
  179. package/menubar/menubar.js +9 -0
  180. package/menubar/menubar.min.js +1 -1
  181. package/menuitem/menuitem.d.ts +1 -0
  182. package/message/message.cjs.js +17 -8
  183. package/message/message.cjs.min.js +1 -1
  184. package/message/message.d.ts +3 -1
  185. package/message/message.esm.js +18 -9
  186. package/message/message.esm.min.js +1 -1
  187. package/message/message.js +17 -8
  188. package/message/message.min.js +1 -1
  189. package/messages/messages.cjs.js +18 -9
  190. package/messages/messages.cjs.min.js +1 -1
  191. package/messages/messages.d.ts +3 -0
  192. package/messages/messages.esm.js +19 -10
  193. package/messages/messages.esm.min.js +1 -1
  194. package/messages/messages.js +18 -9
  195. package/messages/messages.min.js +1 -1
  196. package/multiselect/multiselect.cjs.js +12 -2
  197. package/multiselect/multiselect.cjs.min.js +1 -1
  198. package/multiselect/multiselect.d.ts +1 -1
  199. package/multiselect/multiselect.esm.js +12 -2
  200. package/multiselect/multiselect.esm.min.js +1 -1
  201. package/multiselect/multiselect.js +12 -2
  202. package/multiselect/multiselect.min.js +1 -1
  203. package/multistatecheckbox/multistatecheckbox.cjs.js +1 -1
  204. package/multistatecheckbox/multistatecheckbox.d.ts +1 -1
  205. package/multistatecheckbox/multistatecheckbox.esm.js +1 -1
  206. package/multistatecheckbox/multistatecheckbox.js +1 -1
  207. package/orderlist/orderlist.d.ts +1 -1
  208. package/organizationchart/organizationchart.d.ts +2 -2
  209. package/overlaypanel/overlaypanel.min.css +1 -1
  210. package/package.json +1 -1
  211. package/paginator/paginator.cjs.js +1 -1
  212. package/paginator/paginator.d.ts +2 -2
  213. package/paginator/paginator.esm.js +1 -1
  214. package/paginator/paginator.js +1 -1
  215. package/panel/panel.d.ts +1 -1
  216. package/panelmenu/panelmenu.cjs.js +8 -0
  217. package/panelmenu/panelmenu.cjs.min.js +1 -1
  218. package/panelmenu/panelmenu.d.ts +1 -1
  219. package/panelmenu/panelmenu.esm.js +8 -0
  220. package/panelmenu/panelmenu.esm.min.js +1 -1
  221. package/panelmenu/panelmenu.js +8 -0
  222. package/panelmenu/panelmenu.min.js +1 -1
  223. package/password/password.d.ts +2 -2
  224. package/picklist/picklist.d.ts +1 -1
  225. package/primereact.all.cjs.js +474 -311
  226. package/primereact.all.cjs.min.js +1 -1
  227. package/primereact.all.esm.js +474 -311
  228. package/primereact.all.esm.min.js +1 -1
  229. package/primereact.all.js +474 -311
  230. package/primereact.all.min.js +1 -1
  231. package/progressbar/progressbar.d.ts +1 -1
  232. package/progressspinner/progressspinner.d.ts +1 -1
  233. package/radiobutton/radiobutton.cjs.js +12 -3
  234. package/radiobutton/radiobutton.cjs.min.js +1 -1
  235. package/radiobutton/radiobutton.esm.js +12 -3
  236. package/radiobutton/radiobutton.esm.min.js +1 -1
  237. package/radiobutton/radiobutton.js +12 -3
  238. package/radiobutton/radiobutton.min.js +1 -1
  239. package/rating/rating.cjs.js +56 -15
  240. package/rating/rating.cjs.min.js +1 -1
  241. package/rating/rating.d.ts +8 -1
  242. package/rating/rating.esm.js +57 -16
  243. package/rating/rating.esm.min.js +1 -1
  244. package/rating/rating.js +56 -15
  245. package/rating/rating.min.css +1 -1
  246. package/rating/rating.min.js +1 -1
  247. package/resources/primereact.css +292 -270
  248. package/resources/primereact.min.css +1 -1
  249. package/resources/themes/arya-blue/theme.css +9 -10
  250. package/resources/themes/arya-green/theme.css +9 -10
  251. package/resources/themes/arya-orange/theme.css +9 -10
  252. package/resources/themes/arya-purple/theme.css +9 -10
  253. package/resources/themes/bootstrap4-dark-blue/theme.css +10 -11
  254. package/resources/themes/bootstrap4-dark-purple/theme.css +10 -11
  255. package/resources/themes/bootstrap4-light-blue/theme.css +10 -11
  256. package/resources/themes/bootstrap4-light-purple/theme.css +10 -11
  257. package/resources/themes/fluent-light/theme.css +9 -10
  258. package/resources/themes/lara-dark-blue/theme.css +9 -10
  259. package/resources/themes/lara-dark-indigo/theme.css +9 -10
  260. package/resources/themes/lara-dark-purple/theme.css +9 -10
  261. package/resources/themes/lara-dark-teal/theme.css +9 -10
  262. package/resources/themes/lara-light-blue/theme.css +9 -10
  263. package/resources/themes/lara-light-indigo/theme.css +9 -10
  264. package/resources/themes/lara-light-purple/theme.css +9 -10
  265. package/resources/themes/lara-light-teal/theme.css +9 -10
  266. package/resources/themes/luna-amber/theme.css +10 -11
  267. package/resources/themes/luna-blue/theme.css +10 -11
  268. package/resources/themes/luna-green/theme.css +10 -11
  269. package/resources/themes/luna-pink/theme.css +10 -11
  270. package/resources/themes/md-dark-deeppurple/theme.css +17 -18
  271. package/resources/themes/md-dark-indigo/theme.css +17 -18
  272. package/resources/themes/md-light-deeppurple/theme.css +17 -18
  273. package/resources/themes/md-light-indigo/theme.css +17 -18
  274. package/resources/themes/mdc-dark-deeppurple/theme.css +17 -18
  275. package/resources/themes/mdc-dark-indigo/theme.css +17 -18
  276. package/resources/themes/mdc-light-deeppurple/theme.css +17 -18
  277. package/resources/themes/mdc-light-indigo/theme.css +17 -18
  278. package/resources/themes/nova/theme.css +10 -11
  279. package/resources/themes/nova-accent/theme.css +9 -10
  280. package/resources/themes/nova-alt/theme.css +10 -11
  281. package/resources/themes/rhea/theme.css +9 -10
  282. package/resources/themes/saga-blue/theme.css +9 -10
  283. package/resources/themes/saga-green/theme.css +9 -10
  284. package/resources/themes/saga-orange/theme.css +9 -10
  285. package/resources/themes/saga-purple/theme.css +9 -10
  286. package/resources/themes/tailwind-light/theme.css +9 -10
  287. package/resources/themes/vela-blue/theme.css +9 -10
  288. package/resources/themes/vela-green/theme.css +9 -10
  289. package/resources/themes/vela-orange/theme.css +9 -10
  290. package/resources/themes/vela-purple/theme.css +9 -10
  291. package/ripple/ripple.d.ts +1 -1
  292. package/row/row.d.ts +1 -1
  293. package/scrollpanel/scrollpanel.cjs.js +1 -1
  294. package/scrollpanel/scrollpanel.d.ts +1 -1
  295. package/scrollpanel/scrollpanel.esm.js +1 -1
  296. package/scrollpanel/scrollpanel.js +1 -1
  297. package/scrolltop/scrolltop.d.ts +1 -1
  298. package/selectbutton/selectbutton.d.ts +1 -1
  299. package/selectitem/selectitem.d.ts +1 -1
  300. package/sidebar/sidebar.d.ts +1 -1
  301. package/sidebar/sidebar.min.css +1 -1
  302. package/skeleton/skeleton.d.ts +1 -1
  303. package/slidemenu/slidemenu.cjs.js +4 -0
  304. package/slidemenu/slidemenu.cjs.min.js +1 -1
  305. package/slidemenu/slidemenu.esm.js +4 -0
  306. package/slidemenu/slidemenu.esm.min.js +1 -1
  307. package/slidemenu/slidemenu.js +4 -0
  308. package/slidemenu/slidemenu.min.js +1 -1
  309. package/slider/slider.d.ts +2 -2
  310. package/speeddial/speeddial.cjs.js +4 -0
  311. package/speeddial/speeddial.cjs.min.js +1 -1
  312. package/speeddial/speeddial.esm.js +4 -0
  313. package/speeddial/speeddial.esm.min.js +1 -1
  314. package/speeddial/speeddial.js +4 -0
  315. package/speeddial/speeddial.min.js +1 -1
  316. package/splitbutton/splitbutton.cjs.js +8 -0
  317. package/splitbutton/splitbutton.cjs.min.js +1 -1
  318. package/splitbutton/splitbutton.d.ts +2 -1
  319. package/splitbutton/splitbutton.esm.js +8 -0
  320. package/splitbutton/splitbutton.esm.min.js +1 -1
  321. package/splitbutton/splitbutton.js +8 -0
  322. package/splitbutton/splitbutton.min.js +1 -1
  323. package/splitter/splitter.d.ts +2 -2
  324. package/steps/steps.cjs.js +4 -0
  325. package/steps/steps.cjs.min.js +1 -1
  326. package/steps/steps.esm.js +4 -0
  327. package/steps/steps.esm.min.js +1 -1
  328. package/steps/steps.js +4 -0
  329. package/steps/steps.min.js +1 -1
  330. package/styleclass/styleclass.d.ts +1 -1
  331. package/tabmenu/tabmenu.cjs.js +6 -1
  332. package/tabmenu/tabmenu.cjs.min.js +1 -1
  333. package/tabmenu/tabmenu.d.ts +1 -1
  334. package/tabmenu/tabmenu.esm.js +6 -1
  335. package/tabmenu/tabmenu.esm.min.js +1 -1
  336. package/tabmenu/tabmenu.js +6 -1
  337. package/tabmenu/tabmenu.min.js +1 -1
  338. package/tabview/tabview.d.ts +1 -1
  339. package/tag/tag.d.ts +1 -1
  340. package/tieredmenu/tieredmenu.cjs.js +6 -1
  341. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  342. package/tieredmenu/tieredmenu.esm.js +6 -1
  343. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  344. package/tieredmenu/tieredmenu.js +6 -1
  345. package/tieredmenu/tieredmenu.min.js +1 -1
  346. package/timeline/timeline.d.ts +1 -1
  347. package/toast/toast.cjs.js +39 -32
  348. package/toast/toast.cjs.min.js +1 -1
  349. package/toast/toast.esm.js +39 -32
  350. package/toast/toast.esm.min.js +1 -1
  351. package/toast/toast.js +39 -32
  352. package/toast/toast.min.js +1 -1
  353. package/togglebutton/togglebutton.d.ts +1 -1
  354. package/toolbar/toolbar.d.ts +1 -1
  355. package/tooltip/tooltip.cjs.js +29 -16
  356. package/tooltip/tooltip.cjs.min.js +1 -1
  357. package/tooltip/tooltip.esm.js +29 -16
  358. package/tooltip/tooltip.esm.min.js +1 -1
  359. package/tooltip/tooltip.js +29 -16
  360. package/tooltip/tooltip.min.js +1 -1
  361. package/tooltip/tooltipoptions.d.ts +1 -1
  362. package/tree/tree.cjs.js +1 -1
  363. package/tree/tree.d.ts +1 -1
  364. package/tree/tree.esm.js +1 -1
  365. package/tree/tree.js +1 -1
  366. package/treeselect/treeselect.cjs.js +12 -6
  367. package/treeselect/treeselect.cjs.min.js +1 -1
  368. package/treeselect/treeselect.d.ts +13 -3
  369. package/treeselect/treeselect.esm.js +12 -6
  370. package/treeselect/treeselect.esm.min.js +1 -1
  371. package/treeselect/treeselect.js +12 -6
  372. package/treeselect/treeselect.min.js +1 -1
  373. package/treetable/treetable.cjs.js +2 -2
  374. package/treetable/treetable.d.ts +1 -1
  375. package/treetable/treetable.esm.js +2 -2
  376. package/treetable/treetable.js +2 -2
  377. package/tristatecheckbox/tristatecheckbox.cjs.js +1 -1
  378. package/tristatecheckbox/tristatecheckbox.d.ts +1 -1
  379. package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
  380. package/tristatecheckbox/tristatecheckbox.js +1 -1
  381. package/utils/utils.cjs.js +35 -29
  382. package/utils/utils.cjs.min.js +1 -1
  383. package/utils/utils.d.ts +13 -10
  384. package/utils/utils.esm.js +35 -29
  385. package/utils/utils.esm.min.js +1 -1
  386. package/utils/utils.js +35 -29
  387. package/utils/utils.min.js +1 -1
  388. package/web-types.json +100 -6
@@ -192,7 +192,7 @@ function ownKeys$z(object, enumerableOnly) { var keys = Object.keys(object); if
192
192
 
193
193
  function _objectSpread$z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
194
194
  var locales = {
195
- 'en': {
195
+ en: {
196
196
  startsWith: 'Starts with',
197
197
  contains: 'Contains',
198
198
  notContains: 'Not contains',
@@ -1305,7 +1305,7 @@ var DomHandler = /*#__PURE__*/function () {
1305
1305
  }, {
1306
1306
  key: "isElement",
1307
1307
  value: function isElement(obj) {
1308
- return (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) === "object" ? obj instanceof HTMLElement : obj && _typeof(obj) === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string";
1308
+ return (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) === 'object' ? obj instanceof HTMLElement : obj && _typeof(obj) === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
1309
1309
  }
1310
1310
  }, {
1311
1311
  key: "scrollInView",
@@ -1351,8 +1351,8 @@ var DomHandler = /*#__PURE__*/function () {
1351
1351
  return el.offsetWidth - el.clientWidth - parseFloat(style.borderLeftWidth) - parseFloat(style.borderRightWidth);
1352
1352
  } else {
1353
1353
  if (this.calculatedScrollbarWidth != null) return this.calculatedScrollbarWidth;
1354
- var scrollDiv = document.createElement("div");
1355
- scrollDiv.className = "p-scrollbar-measure";
1354
+ var scrollDiv = document.createElement('div');
1355
+ scrollDiv.className = 'p-scrollbar-measure';
1356
1356
  document.body.appendChild(scrollDiv);
1357
1357
  var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
1358
1358
  document.body.removeChild(scrollDiv);
@@ -1385,10 +1385,10 @@ var DomHandler = /*#__PURE__*/function () {
1385
1385
  key: "resolveUserAgent",
1386
1386
  value: function resolveUserAgent() {
1387
1387
  var ua = navigator.userAgent.toLowerCase();
1388
- var match = /(chrome)[ ]([\w.]+)/.exec(ua) || /(webkit)[ ]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];
1388
+ var match = /(chrome)[ ]([\w.]+)/.exec(ua) || /(webkit)[ ]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];
1389
1389
  return {
1390
- browser: match[1] || "",
1391
- version: match[2] || "0"
1390
+ browser: match[1] || '',
1391
+ version: match[2] || '0'
1392
1392
  };
1393
1393
  }
1394
1394
  }, {
@@ -1420,7 +1420,7 @@ var DomHandler = /*#__PURE__*/function () {
1420
1420
  try {
1421
1421
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
1422
1422
  var focusableElement = _step3.value;
1423
- if (getComputedStyle(focusableElement).display !== "none" && getComputedStyle(focusableElement).visibility !== "hidden") visibleFocusableElements.push(focusableElement);
1423
+ if (getComputedStyle(focusableElement).display !== 'none' && getComputedStyle(focusableElement).visibility !== 'hidden') visibleFocusableElements.push(focusableElement);
1424
1424
  }
1425
1425
  } catch (err) {
1426
1426
  _iterator3.e(err);
@@ -1647,7 +1647,7 @@ var DomHandler = /*#__PURE__*/function () {
1647
1647
  attrs1 = DomHandler.getAttributeNames(elm1);
1648
1648
  attrs2 = DomHandler.getAttributeNames(elm2);
1649
1649
 
1650
- if (attrs1.join(",") !== attrs2.join(",")) {
1650
+ if (attrs1.join(',') !== attrs2.join(',')) {
1651
1651
  // console.log("Found nodes with different sets of attributes; not equiv");
1652
1652
  return false;
1653
1653
  } // ...and values
@@ -2145,7 +2145,7 @@ function mask(el, options) {
2145
2145
 
2146
2146
  writeBuffer();
2147
2147
 
2148
- if (pos === options.mask.replace("?", "").length) {
2148
+ if (pos === options.mask.replace('?', '').length) {
2149
2149
  caret(0, pos);
2150
2150
  } else {
2151
2151
  caret(pos);
@@ -2226,8 +2226,8 @@ function mask(el, options) {
2226
2226
  len = options.mask.length;
2227
2227
  firstNonMaskPos = null;
2228
2228
  defs = {
2229
- '9': '[0-9]',
2230
- 'a': '[A-Za-z]',
2229
+ 9: '[0-9]',
2230
+ a: '[A-Za-z]',
2231
2231
  '*': '[A-Za-z0-9]'
2232
2232
  };
2233
2233
  var ua = DomHandler.getUserAgent();
@@ -2437,7 +2437,13 @@ var ObjectUtils = /*#__PURE__*/function () {
2437
2437
  params[_key2 - 1] = arguments[_key2];
2438
2438
  }
2439
2439
 
2440
- return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
2440
+ var methodParams = params;
2441
+
2442
+ if (params && params.length === 1) {
2443
+ methodParams = params[0];
2444
+ }
2445
+
2446
+ return this.isFunction(obj) ? obj.apply(void 0, _toConsumableArray(methodParams)) : obj;
2441
2447
  }
2442
2448
  }, {
2443
2449
  key: "getRefElement",
@@ -2463,7 +2469,7 @@ var ObjectUtils = /*#__PURE__*/function () {
2463
2469
  key: "removeAccents",
2464
2470
  value: function removeAccents(str) {
2465
2471
  if (str && str.search(/[\xC0-\xFF]/g) > -1) {
2466
- str = str.replace(/[\xC0-\xC5]/g, "A").replace(/[\xC6]/g, "AE").replace(/[\xC7]/g, "C").replace(/[\xC8-\xCB]/g, "E").replace(/[\xCC-\xCF]/g, "I").replace(/[\xD0]/g, "D").replace(/[\xD1]/g, "N").replace(/[\xD2-\xD6\xD8]/g, "O").replace(/[\xD9-\xDC]/g, "U").replace(/[\xDD]/g, "Y").replace(/[\xDE]/g, "P").replace(/[\xE0-\xE5]/g, "a").replace(/[\xE6]/g, "ae").replace(/[\xE7]/g, "c").replace(/[\xE8-\xEB]/g, "e").replace(/[\xEC-\xEF]/g, "i").replace(/[\xF1]/g, "n").replace(/[\xF2-\xF6\xF8]/g, "o").replace(/[\xF9-\xFC]/g, "u").replace(/[\xFE]/g, "p").replace(/[\xFD\xFF]/g, "y");
2472
+ str = str.replace(/[\xC0-\xC5]/g, 'A').replace(/[\xC6]/g, 'AE').replace(/[\xC7]/g, 'C').replace(/[\xC8-\xCB]/g, 'E').replace(/[\xCC-\xCF]/g, 'I').replace(/[\xD0]/g, 'D').replace(/[\xD1]/g, 'N').replace(/[\xD2-\xD6\xD8]/g, 'O').replace(/[\xD9-\xDC]/g, 'U').replace(/[\xDD]/g, 'Y').replace(/[\xDE]/g, 'P').replace(/[\xE0-\xE5]/g, 'a').replace(/[\xE6]/g, 'ae').replace(/[\xE7]/g, 'c').replace(/[\xE8-\xEB]/g, 'e').replace(/[\xEC-\xEF]/g, 'i').replace(/[\xF1]/g, 'n').replace(/[\xF2-\xF6\xF8]/g, 'o').replace(/[\xF9-\xFC]/g, 'u').replace(/[\xFE]/g, 'p').replace(/[\xFD\xFF]/g, 'y');
2467
2473
  }
2468
2474
 
2469
2475
  return str;
@@ -3737,24 +3743,29 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
3737
3743
  };
3738
3744
 
3739
3745
  var getEvents = function getEvents(target) {
3740
- var showEvent = getTargetOption(target, 'showevent') || props.showEvent;
3741
- var hideEvent = getTargetOption(target, 'hideevent') || props.hideEvent;
3746
+ var showEvents = [getTargetOption(target, 'showevent') || props.showEvent];
3747
+ var hideEvents = [getTargetOption(target, 'hideevent') || props.hideEvent];
3742
3748
 
3743
3749
  if (isMouseTrack(target)) {
3744
- showEvent = 'mousemove';
3745
- hideEvent = 'mouseleave';
3750
+ showEvents = ['mousemove'];
3751
+ hideEvents = ['mouseleave'];
3746
3752
  } else {
3747
3753
  var event = getTargetOption(target, 'event') || props.event;
3748
3754
 
3749
3755
  if (event === 'focus') {
3750
- showEvent = 'focus';
3751
- hideEvent = 'blur';
3756
+ showEvents = ['focus'];
3757
+ hideEvents = ['blur'];
3758
+ }
3759
+
3760
+ if (event === 'both') {
3761
+ showEvents = ['focus', 'mouseenter'];
3762
+ hideEvents = ['blur', 'mouseleave'];
3752
3763
  }
3753
3764
  }
3754
3765
 
3755
3766
  return {
3756
- showEvent: showEvent,
3757
- hideEvent: hideEvent
3767
+ showEvents: showEvents,
3768
+ hideEvents: hideEvents
3758
3769
  };
3759
3770
  };
3760
3771
 
@@ -3967,24 +3978,32 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
3967
3978
  var bindTargetEvent = function bindTargetEvent(target) {
3968
3979
  if (target) {
3969
3980
  var _getEvents = getEvents(target),
3970
- showEvent = _getEvents.showEvent,
3971
- hideEvent = _getEvents.hideEvent;
3981
+ showEvents = _getEvents.showEvents,
3982
+ hideEvents = _getEvents.hideEvents;
3972
3983
 
3973
3984
  var currentTarget = getTarget(target);
3974
- currentTarget.addEventListener(showEvent, show);
3975
- currentTarget.addEventListener(hideEvent, hide);
3985
+ showEvents.forEach(function (event) {
3986
+ return currentTarget.addEventListener(event, show);
3987
+ });
3988
+ hideEvents.forEach(function (event) {
3989
+ return currentTarget.addEventListener(event, hide);
3990
+ });
3976
3991
  }
3977
3992
  };
3978
3993
 
3979
3994
  var unbindTargetEvent = function unbindTargetEvent(target) {
3980
3995
  if (target) {
3981
3996
  var _getEvents2 = getEvents(target),
3982
- showEvent = _getEvents2.showEvent,
3983
- hideEvent = _getEvents2.hideEvent;
3997
+ showEvents = _getEvents2.showEvents,
3998
+ hideEvents = _getEvents2.hideEvents;
3984
3999
 
3985
4000
  var currentTarget = getTarget(target);
3986
- currentTarget.removeEventListener(showEvent, show);
3987
- currentTarget.removeEventListener(hideEvent, hide);
4001
+ showEvents.forEach(function (event) {
4002
+ return currentTarget.removeEventListener(event, show);
4003
+ });
4004
+ hideEvents.forEach(function (event) {
4005
+ return currentTarget.removeEventListener(event, hide);
4006
+ });
3988
4007
  }
3989
4008
  };
3990
4009
 
@@ -4220,6 +4239,10 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pr
4220
4239
  ObjectUtils.combinedRefs(elementRef, ref);
4221
4240
  }, [elementRef, ref]);
4222
4241
 
4242
+ if (props.visible === false) {
4243
+ return null;
4244
+ }
4245
+
4223
4246
  var createIcon = function createIcon() {
4224
4247
  var icon = props.loading ? props.loadingIcon : props.icon;
4225
4248
  var className = classNames('p-button-icon p-c', _defineProperty({
@@ -4242,7 +4265,7 @@ var Button = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pr
4242
4265
  return !props.children && !props.label && /*#__PURE__*/React.createElement("span", {
4243
4266
  className: "p-button-label p-c",
4244
4267
  dangerouslySetInnerHTML: {
4245
- __html: "&nbsp;"
4268
+ __html: '&nbsp;'
4246
4269
  }
4247
4270
  });
4248
4271
  };
@@ -4313,49 +4336,6 @@ var KeyFilter = {
4313
4336
  },
4314
4337
 
4315
4338
  /* eslint-enable */
4316
- KEYS: {
4317
- TAB: 9,
4318
- RETURN: 13,
4319
- ESC: 27,
4320
- BACKSPACE: 8,
4321
- DELETE: 46
4322
- },
4323
- SAFARI_KEYS: {
4324
- 63234: 37,
4325
- // left
4326
- 63235: 39,
4327
- // right
4328
- 63232: 38,
4329
- // up
4330
- 63233: 40,
4331
- // down
4332
- 63276: 33,
4333
- // page up
4334
- 63277: 34,
4335
- // page down
4336
- 63272: 46,
4337
- // delete
4338
- 63273: 36,
4339
- // home
4340
- 63275: 35 // end
4341
-
4342
- },
4343
- isNavKeyPress: function isNavKeyPress(e) {
4344
- var k = e.keyCode;
4345
- k = DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
4346
- return k >= 33 && k <= 40 || k === KeyFilter.KEYS.RETURN || k === KeyFilter.KEYS.TAB || k === KeyFilter.KEYS.ESC;
4347
- },
4348
- isSpecialKey: function isSpecialKey(e) {
4349
- var k = e.keyCode;
4350
- return k === 9 || k === 13 || k === 27 || k === 16 || k === 17 || k >= 18 && k <= 20 || DomHandler.getBrowser().opera && !e.shiftKey && (k === 8 || k >= 33 && k <= 35 || k >= 36 && k <= 39 || k >= 44 && k <= 45);
4351
- },
4352
- getKey: function getKey(e) {
4353
- var k = e.keyCode || e.charCode;
4354
- return DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
4355
- },
4356
- getCharCode: function getCharCode(e) {
4357
- return e.charCode || e.keyCode || e.which;
4358
- },
4359
4339
  getRegex: function getRegex(keyfilter) {
4360
4340
  return KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
4361
4341
  },
@@ -4368,17 +4348,9 @@ var KeyFilter = {
4368
4348
  return;
4369
4349
  }
4370
4350
 
4371
- var browser = DomHandler.getBrowser();
4372
- var k = this.getKey(e);
4351
+ var isPrintableKey = e.key.length === 1;
4373
4352
 
4374
- if (browser.mozilla && (this.isNavKeyPress(e) || k === KeyFilter.KEYS.BACKSPACE || k === KeyFilter.KEYS.DELETE && e.charCode === 0)) {
4375
- return;
4376
- }
4377
-
4378
- var c = this.getCharCode(e);
4379
- var cc = String.fromCharCode(c);
4380
-
4381
- if (browser.mozilla && (this.isSpecialKey(e) || !cc)) {
4353
+ if (!isPrintableKey) {
4382
4354
  return;
4383
4355
  }
4384
4356
 
@@ -4394,7 +4366,7 @@ var KeyFilter = {
4394
4366
  }
4395
4367
 
4396
4368
  var regex = this.getRegex(keyfilter);
4397
- var clipboard = e.clipboardData.getData("text"); // loop over each letter pasted and if any fail prevent the paste
4369
+ var clipboard = e.clipboardData.getData('text'); // loop over each letter pasted and if any fail prevent the paste
4398
4370
 
4399
4371
  _toConsumableArray(clipboard).forEach(function (c) {
4400
4372
  if (!regex.test(c)) {
@@ -5628,7 +5600,9 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
5628
5600
 
5629
5601
  var formatValue = function formatValue(value) {
5630
5602
  if (value) {
5631
- if (props.selectedItemTemplate && (props.multiple ? isSelected(value) : findOptionIndex(value) > -1)) {
5603
+ if (typeof value === 'string') {
5604
+ return value;
5605
+ } else if (props.selectedItemTemplate) {
5632
5606
  var resolvedFieldData = ObjectUtils.getJSXElement(props.selectedItemTemplate, value);
5633
5607
  return resolvedFieldData ? resolvedFieldData : value;
5634
5608
  } else if (props.field) {
@@ -5889,12 +5863,6 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
5889
5863
  }) : false;
5890
5864
  };
5891
5865
 
5892
- var findOptionIndex = function findOptionIndex(option) {
5893
- return props.suggestions ? props.suggestions.findIndex(function (s) {
5894
- return ObjectUtils.equals(s, option);
5895
- }) : -1;
5896
- };
5897
-
5898
5866
  var getScrollableElement = function getScrollableElement() {
5899
5867
  return virtualScrollerRef.current ? overlayRef.current.firstChild : overlayRef.current;
5900
5868
  };
@@ -6461,6 +6429,10 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
6461
6429
  var home = props.home;
6462
6430
 
6463
6431
  if (home) {
6432
+ if (home.visible === false) {
6433
+ return null;
6434
+ }
6435
+
6464
6436
  var _icon = home.icon,
6465
6437
  target = home.target,
6466
6438
  url = home.url,
@@ -6517,6 +6489,10 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
6517
6489
  };
6518
6490
 
6519
6491
  var createMenuitem = function createMenuitem(item) {
6492
+ if (item.visible === false) {
6493
+ return null;
6494
+ }
6495
+
6520
6496
  var className = classNames(item.className, {
6521
6497
  'p-disabled': item.disabled
6522
6498
  });
@@ -6555,6 +6531,10 @@ var BreadCrumb = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
6555
6531
  var createMenuitems = function createMenuitems() {
6556
6532
  if (props.model) {
6557
6533
  var _items = props.model.map(function (item, index) {
6534
+ if (item.visible === false) {
6535
+ return null;
6536
+ }
6537
+
6558
6538
  var menuitem = createMenuitem(item);
6559
6539
  var separator = index === props.model.length - 1 ? null : createSeparator();
6560
6540
  var key = item.label + '_' + index;
@@ -8203,8 +8183,8 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8203
8183
  }
8204
8184
 
8205
8185
  return {
8206
- 'month': m,
8207
- 'year': y
8186
+ month: m,
8187
+ year: y
8208
8188
  };
8209
8189
  };
8210
8190
 
@@ -8220,8 +8200,8 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8220
8200
  }
8221
8201
 
8222
8202
  return {
8223
- 'month': m,
8224
- 'year': y
8203
+ month: m,
8204
+ year: y
8225
8205
  };
8226
8206
  };
8227
8207
 
@@ -8365,7 +8345,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8365
8345
  if (props.minDate.getMonth() > month) {
8366
8346
  validMin = false;
8367
8347
  } else if (props.minDate.getMonth() === month) {
8368
- if (props.minDate.getDate() > day) {
8348
+ if (day > 0 && props.minDate.getDate() > day) {
8369
8349
  validMin = false;
8370
8350
  }
8371
8351
  }
@@ -8379,7 +8359,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8379
8359
  if (props.maxDate.getMonth() < month) {
8380
8360
  validMax = false;
8381
8361
  } else if (props.maxDate.getMonth() === month) {
8382
- if (props.maxDate.getDate() < day) {
8362
+ if (day > 0 && props.maxDate.getDate() < day) {
8383
8363
  validMax = false;
8384
8364
  }
8385
8365
  }
@@ -8654,7 +8634,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8654
8634
  if (date) {
8655
8635
  for (iFormat = 0; iFormat < format.length; iFormat++) {
8656
8636
  if (literal) {
8657
- if (format.charAt(iFormat) === '\'' && !lookAhead('\'')) {
8637
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
8658
8638
  literal = false;
8659
8639
  } else {
8660
8640
  output += format.charAt(iFormat);
@@ -8693,9 +8673,9 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8693
8673
  output += date.getTime() * 10000 + ticksTo1970;
8694
8674
  break;
8695
8675
 
8696
- case '\'':
8697
- if (lookAhead('\'')) {
8698
- output += '\'';
8676
+ case "'":
8677
+ if (lookAhead("'")) {
8678
+ output += "'";
8699
8679
  } else {
8700
8680
  literal = true;
8701
8681
  }
@@ -8860,9 +8840,9 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8860
8840
  throw new Error('Invalid arguments');
8861
8841
  }
8862
8842
 
8863
- value = _typeof(value) === "object" ? value.toString() : value + "";
8843
+ value = _typeof(value) === 'object' ? value.toString() : value + '';
8864
8844
 
8865
- if (value === "") {
8845
+ if (value === '') {
8866
8846
  return null;
8867
8847
  }
8868
8848
 
@@ -8870,7 +8850,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8870
8850
  dim,
8871
8851
  extra,
8872
8852
  iValue = 0,
8873
- shortYearCutoff = typeof props.shortYearCutoff !== "string" ? props.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(props.shortYearCutoff, 10),
8853
+ shortYearCutoff = typeof props.shortYearCutoff !== 'string' ? props.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(props.shortYearCutoff, 10),
8874
8854
  year = -1,
8875
8855
  month = -1,
8876
8856
  day = -1,
@@ -8888,9 +8868,9 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8888
8868
  },
8889
8869
  getNumber = function getNumber(match) {
8890
8870
  var isDoubled = lookAhead(match),
8891
- size = match === "@" ? 14 : match === "!" ? 20 : match === "y" && isDoubled ? 4 : match === "o" ? 3 : 2,
8892
- minSize = match === "y" ? size : 1,
8893
- digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
8871
+ size = match === '@' ? 14 : match === '!' ? 20 : match === 'y' && isDoubled ? 4 : match === 'o' ? 3 : 2,
8872
+ minSize = match === 'y' ? size : 1,
8873
+ digits = new RegExp('^\\d{' + minSize + ',' + size + '}'),
8894
8874
  num = value.substring(iValue).match(digits);
8895
8875
 
8896
8876
  if (!num) {
@@ -8956,39 +8936,39 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
8956
8936
  }
8957
8937
  } else {
8958
8938
  switch (format.charAt(iFormat)) {
8959
- case "d":
8960
- day = getNumber("d");
8939
+ case 'd':
8940
+ day = getNumber('d');
8961
8941
  break;
8962
8942
 
8963
- case "D":
8964
- getName("D", dayNamesShort, dayNames);
8943
+ case 'D':
8944
+ getName('D', dayNamesShort, dayNames);
8965
8945
  break;
8966
8946
 
8967
- case "o":
8968
- doy = getNumber("o");
8947
+ case 'o':
8948
+ doy = getNumber('o');
8969
8949
  break;
8970
8950
 
8971
- case "m":
8972
- month = getNumber("m");
8951
+ case 'm':
8952
+ month = getNumber('m');
8973
8953
  break;
8974
8954
 
8975
- case "M":
8976
- month = getName("M", monthNamesShort, monthNames);
8955
+ case 'M':
8956
+ month = getName('M', monthNamesShort, monthNames);
8977
8957
  break;
8978
8958
 
8979
- case "y":
8980
- year = getNumber("y");
8959
+ case 'y':
8960
+ year = getNumber('y');
8981
8961
  break;
8982
8962
 
8983
- case "@":
8984
- date = new Date(getNumber("@"));
8963
+ case '@':
8964
+ date = new Date(getNumber('@'));
8985
8965
  year = date.getFullYear();
8986
8966
  month = date.getMonth() + 1;
8987
8967
  day = date.getDate();
8988
8968
  break;
8989
8969
 
8990
- case "!":
8991
- date = new Date((getNumber("!") - ticksTo1970) / 10000);
8970
+ case '!':
8971
+ date = new Date((getNumber('!') - ticksTo1970) / 10000);
8992
8972
  year = date.getFullYear();
8993
8973
  month = date.getMonth() + 1;
8994
8974
  day = date.getDate();
@@ -9169,12 +9149,12 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
9169
9149
 
9170
9150
  var createBackwardNavigator = function createBackwardNavigator(isVisible) {
9171
9151
  var navigatorProps = isVisible ? {
9172
- 'onClick': onPrevButtonClick,
9173
- 'onKeyDown': function onKeyDown(e) {
9152
+ onClick: onPrevButtonClick,
9153
+ onKeyDown: function onKeyDown(e) {
9174
9154
  return onContainerButtonKeydown(e);
9175
9155
  }
9176
9156
  } : {
9177
- 'style': {
9157
+ style: {
9178
9158
  visibility: 'hidden'
9179
9159
  }
9180
9160
  };
@@ -9188,12 +9168,12 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
9188
9168
 
9189
9169
  var createForwardNavigator = function createForwardNavigator(isVisible) {
9190
9170
  var navigatorProps = isVisible ? {
9191
- 'onClick': onNextButtonClick,
9192
- 'onKeyDown': function onKeyDown(e) {
9171
+ onClick: onNextButtonClick,
9172
+ onKeyDown: function onKeyDown(e) {
9193
9173
  return onContainerButtonKeydown(e);
9194
9174
  }
9195
9175
  } : {
9196
- 'style': {
9176
+ style: {
9197
9177
  visibility: 'hidden'
9198
9178
  }
9199
9179
  };
@@ -9809,7 +9789,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
9809
9789
  key: "month".concat(i + 1),
9810
9790
  className: classNames('p-monthpicker-month', {
9811
9791
  'p-highlight': isMonthSelected(i),
9812
- 'p-disabled': !isSelectable(1, i, currentYear)
9792
+ 'p-disabled': !isSelectable(0, i, currentYear)
9813
9793
  })
9814
9794
  }, m);
9815
9795
  }));
@@ -9972,13 +9952,13 @@ var Captcha = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
9972
9952
 
9973
9953
  var init = function init() {
9974
9954
  instance.current = window.grecaptcha.render(elementRef.current, {
9975
- 'sitekey': props.siteKey,
9976
- 'theme': props.theme,
9977
- 'type': props.type,
9978
- 'size': props.size,
9979
- 'tabindex': props.tabIndex,
9980
- 'hl': props.language,
9981
- 'callback': recaptchaCallback,
9955
+ sitekey: props.siteKey,
9956
+ theme: props.theme,
9957
+ type: props.type,
9958
+ size: props.size,
9959
+ tabindex: props.tabIndex,
9960
+ hl: props.language,
9961
+ callback: recaptchaCallback,
9982
9962
  'expired-callback': recaptchaExpiredCallback
9983
9963
  });
9984
9964
  };
@@ -10604,7 +10584,7 @@ var Carousel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
10604
10584
  }, backwardNavigator, /*#__PURE__*/React.createElement("div", {
10605
10585
  className: "p-carousel-items-content",
10606
10586
  style: {
10607
- 'height': height
10587
+ height: height
10608
10588
  },
10609
10589
  onTouchStart: onTouchStart,
10610
10590
  onTouchMove: onTouchMove,
@@ -10617,41 +10597,53 @@ var Carousel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
10617
10597
  };
10618
10598
 
10619
10599
  var createBackwardNavigator = function createBackwardNavigator() {
10620
- var isDisabled = (!circular || props.value && props.value.length < numVisibleState) && currentPage === 0;
10621
- var className = classNames('p-carousel-prev p-link', {
10622
- 'p-disabled': isDisabled
10623
- });
10624
- var iconClassName = classNames('p-carousel-prev-icon pi', {
10625
- 'pi-chevron-left': !isVertical,
10626
- 'pi-chevron-up': isVertical
10627
- });
10628
- return /*#__PURE__*/React.createElement(Button, {
10629
- type: "button",
10630
- className: className,
10631
- icon: iconClassName,
10632
- onClick: navBackward,
10633
- disabled: isDisabled,
10634
- "aria-label": ariaLabel('previousPageLabel')
10635
- });
10600
+ if (props.showNavigators) {
10601
+ var isDisabled = (!circular || props.value && props.value.length < numVisibleState) && currentPage === 0;
10602
+
10603
+ var _className = classNames('p-carousel-prev p-link', {
10604
+ 'p-disabled': isDisabled
10605
+ });
10606
+
10607
+ var iconClassName = classNames('p-carousel-prev-icon pi', {
10608
+ 'pi-chevron-left': !isVertical,
10609
+ 'pi-chevron-up': isVertical
10610
+ });
10611
+ return /*#__PURE__*/React.createElement(Button, {
10612
+ type: "button",
10613
+ className: _className,
10614
+ icon: iconClassName,
10615
+ onClick: navBackward,
10616
+ disabled: isDisabled,
10617
+ "aria-label": ariaLabel('previousPageLabel')
10618
+ });
10619
+ }
10620
+
10621
+ return null;
10636
10622
  };
10637
10623
 
10638
10624
  var createForwardNavigator = function createForwardNavigator() {
10639
- var isDisabled = (!circular || props.value && props.value.length < numVisibleState) && (currentPage === totalIndicators - 1 || totalIndicators === 0);
10640
- var className = classNames('p-carousel-next p-link', {
10641
- 'p-disabled': isDisabled
10642
- });
10643
- var iconClassName = classNames('p-carousel-next-icon pi', {
10644
- 'pi-chevron-right': !isVertical,
10645
- 'pi-chevron-down': isVertical
10646
- });
10647
- return /*#__PURE__*/React.createElement(Button, {
10648
- type: "button",
10649
- className: className,
10650
- icon: iconClassName,
10651
- onClick: navForward,
10652
- disabled: isDisabled,
10653
- "aria-label": ariaLabel('nextPageLabel')
10654
- });
10625
+ if (props.showNavigators) {
10626
+ var isDisabled = (!circular || props.value && props.value.length < numVisibleState) && (currentPage === totalIndicators - 1 || totalIndicators === 0);
10627
+
10628
+ var _className2 = classNames('p-carousel-next p-link', {
10629
+ 'p-disabled': isDisabled
10630
+ });
10631
+
10632
+ var iconClassName = classNames('p-carousel-next-icon pi', {
10633
+ 'pi-chevron-right': !isVertical,
10634
+ 'pi-chevron-down': isVertical
10635
+ });
10636
+ return /*#__PURE__*/React.createElement(Button, {
10637
+ type: "button",
10638
+ className: _className2,
10639
+ icon: iconClassName,
10640
+ onClick: navForward,
10641
+ disabled: isDisabled,
10642
+ "aria-label": ariaLabel('nextPageLabel')
10643
+ });
10644
+ }
10645
+
10646
+ return null;
10655
10647
  };
10656
10648
 
10657
10649
  var createIndicator = function createIndicator(index) {
@@ -10674,16 +10666,21 @@ var Carousel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
10674
10666
  };
10675
10667
 
10676
10668
  var createIndicators = function createIndicators() {
10677
- var className = classNames('p-carousel-indicators p-reset', props.indicatorsContentClassName);
10678
- var indicators = [];
10669
+ if (props.showIndicators) {
10670
+ var _className3 = classNames('p-carousel-indicators p-reset', props.indicatorsContentClassName);
10671
+
10672
+ var _indicators = [];
10673
+
10674
+ for (var i = 0; i < totalIndicators; i++) {
10675
+ _indicators.push(createIndicator(i));
10676
+ }
10679
10677
 
10680
- for (var i = 0; i < totalIndicators; i++) {
10681
- indicators.push(createIndicator(i));
10678
+ return /*#__PURE__*/React.createElement("ul", {
10679
+ className: _className3
10680
+ }, _indicators);
10682
10681
  }
10683
10682
 
10684
- return /*#__PURE__*/React.createElement("ul", {
10685
- className: className
10686
- }, indicators);
10683
+ return null;
10687
10684
  };
10688
10685
 
10689
10686
  var otherProps = ObjectUtils.findDiffKeys(props, Carousel.defaultProps);
@@ -10718,12 +10715,14 @@ Carousel.defaultProps = {
10718
10715
  className: null,
10719
10716
  itemTemplate: null,
10720
10717
  circular: false,
10718
+ showIndicators: true,
10719
+ showNavigators: true,
10721
10720
  autoplayInterval: 0,
10722
10721
  numVisible: 1,
10723
10722
  numScroll: 1,
10724
10723
  responsiveOptions: null,
10725
- orientation: "horizontal",
10726
- verticalViewPortHeight: "300px",
10724
+ orientation: 'horizontal',
10725
+ verticalViewPortHeight: '300px',
10727
10726
  contentClassName: null,
10728
10727
  containerClassName: null,
10729
10728
  indicatorsContentClassName: null,
@@ -11273,7 +11272,7 @@ var CascadeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
11273
11272
  }, /*#__PURE__*/React.createElement(CascadeSelectSub, {
11274
11273
  options: props.options,
11275
11274
  selectionPath: selectionPath.current,
11276
- className: "p-cascadeselect-items",
11275
+ className: 'p-cascadeselect-items',
11277
11276
  optionLabel: props.optionLabel,
11278
11277
  optionValue: props.optionValue,
11279
11278
  level: 0,
@@ -11472,7 +11471,11 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
11472
11471
  if (!props.disabled && !props.readOnly && props.onChange) {
11473
11472
  var _checked = isChecked();
11474
11473
 
11475
- if (inputRef.current.checked === _checked) {
11474
+ var checkboxClicked = event.target instanceof HTMLDivElement || event.target instanceof HTMLSpanElement;
11475
+ var isInputToggled = event.target === inputRef.current;
11476
+ var isCheckboxToggled = checkboxClicked && event.target.checked !== _checked;
11477
+
11478
+ if (isInputToggled || isCheckboxToggled) {
11476
11479
  var value = _checked ? props.falseValue : props.trueValue;
11477
11480
  props.onChange({
11478
11481
  originalEvent: event,
@@ -11488,7 +11491,6 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
11488
11491
  checked: value
11489
11492
  }
11490
11493
  });
11491
- inputRef.current.checked = !_checked;
11492
11494
  }
11493
11495
 
11494
11496
  DomHandler.focus(inputRef.current);
@@ -11504,6 +11506,12 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
11504
11506
  setFocusedState(false);
11505
11507
  };
11506
11508
 
11509
+ var onKeyDown = function onKeyDown(event) {
11510
+ if (event.code === 'Space') {
11511
+ onClick(event);
11512
+ }
11513
+ };
11514
+
11507
11515
  var isChecked = function isChecked() {
11508
11516
  return props.checked === props.trueValue;
11509
11517
  };
@@ -11566,6 +11574,7 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
11566
11574
  "aria-label": props['aria-label'],
11567
11575
  onFocus: onFocus,
11568
11576
  onBlur: onBlur,
11577
+ onKeyDown: onKeyDown,
11569
11578
  disabled: props.disabled,
11570
11579
  readOnly: props.readOnly,
11571
11580
  required: props.required
@@ -11881,9 +11890,10 @@ var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
11881
11890
  return props.max && props.value && props.max === props.value.length;
11882
11891
  };
11883
11892
 
11893
+ var currentValue = inputRef.current && inputRef.current.value;
11884
11894
  var isFilled = React.useMemo(function () {
11885
- return props.value && props.value.length || inputRef.current && inputRef.current.value && inputRef.current.value.length;
11886
- }, [props.value]);
11895
+ return ObjectUtils.isNotEmpty(props.value) || ObjectUtils.isNotEmpty(currentValue);
11896
+ }, [props.value, currentValue]);
11887
11897
 
11888
11898
  var isRemovable = function isRemovable(value, index) {
11889
11899
  return ObjectUtils.getPropValue(props.removable, {
@@ -12364,8 +12374,8 @@ var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
12364
12374
  var hexValue = parseInt(hex.indexOf('#') > -1 ? hex.substring(1) : hex, 16);
12365
12375
  return {
12366
12376
  r: hexValue >> 16,
12367
- g: (hexValue & 0x00FF00) >> 8,
12368
- b: hexValue & 0x0000FF
12377
+ g: (hexValue & 0x00ff00) >> 8,
12378
+ b: hexValue & 0x0000ff
12369
12379
  };
12370
12380
  };
12371
12381
 
@@ -12828,7 +12838,6 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
12828
12838
  unbindDocumentDragEndListener = _useEventListener10[1];
12829
12839
 
12830
12840
  var onClose = function onClose(event) {
12831
- DomHandler.removeClass(document.body, 'p-overflow-hidden');
12832
12841
  props.onHide();
12833
12842
  event.preventDefault();
12834
12843
  };
@@ -13053,6 +13062,10 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
13053
13062
  if (props.modal) {
13054
13063
  DomHandler.addClass(maskRef.current, 'p-component-overlay-leave');
13055
13064
  }
13065
+
13066
+ if (props.blockScroll) {
13067
+ DomHandler.removeClass(document.body, 'p-overflow-hidden');
13068
+ }
13056
13069
  };
13057
13070
 
13058
13071
  var onExited = function onExited() {
@@ -13139,11 +13152,15 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
13139
13152
  };
13140
13153
 
13141
13154
  useMountEffect(function () {
13155
+ var unqiueId = UniqueComponentId();
13156
+
13142
13157
  if (!idState) {
13143
- setIdState(UniqueComponentId());
13158
+ setIdState(unqiueId);
13144
13159
  }
13145
13160
 
13146
- attributeSelector.current = UniqueComponentId();
13161
+ if (!attributeSelector.current) {
13162
+ attributeSelector.current = unqiueId;
13163
+ }
13147
13164
 
13148
13165
  if (props.visible) {
13149
13166
  setMaskVisibleState(true);
@@ -13429,7 +13446,10 @@ var confirmDialog = function confirmDialog() {
13429
13446
  });
13430
13447
  };
13431
13448
 
13432
- return [show, hide];
13449
+ return {
13450
+ show: show,
13451
+ hide: hide
13452
+ };
13433
13453
  };
13434
13454
  var ConfirmDialog = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
13435
13455
  var _React$useState = React.useState(props.visible),
@@ -13477,7 +13497,8 @@ var ConfirmDialog = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
13477
13497
  setVisibleState(true);
13478
13498
  };
13479
13499
 
13480
- var hide = function hide(result) {
13500
+ var hide = function hide() {
13501
+ var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'cancel';
13481
13502
  setVisibleState(false);
13482
13503
  callbackFromProp('onHide', result);
13483
13504
  };
@@ -13632,7 +13653,10 @@ var confirmPopup = function confirmPopup() {
13632
13653
  });
13633
13654
  };
13634
13655
 
13635
- return [show, hide];
13656
+ return {
13657
+ show: show,
13658
+ hide: hide
13659
+ };
13636
13660
  };
13637
13661
  var ConfirmPopup = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
13638
13662
  var _React$useState = React.useState(props.visible),
@@ -13678,7 +13702,7 @@ var ConfirmPopup = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
13678
13702
  valid = _ref.valid;
13679
13703
 
13680
13704
  if (valid) {
13681
- type === 'outside' ? !isPanelClicked.current && hide() : hide();
13705
+ type === 'outside' ? props.dismissable && !isPanelClicked.current && hide() : hide();
13682
13706
  }
13683
13707
 
13684
13708
  isPanelClicked.current = false;
@@ -13722,7 +13746,10 @@ var ConfirmPopup = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
13722
13746
  setVisibleState(false);
13723
13747
  OverlayService.off('overlay-click', overlayEventListener.current);
13724
13748
  overlayEventListener.current = null;
13725
- callbackFromProp('onHide', result);
13749
+
13750
+ if (result) {
13751
+ callbackFromProp('onHide', result);
13752
+ }
13726
13753
  };
13727
13754
 
13728
13755
  var onEnter = function onEnter() {
@@ -14023,6 +14050,10 @@ var ContextMenuSub = /*#__PURE__*/React.memo(function (props) {
14023
14050
  };
14024
14051
 
14025
14052
  var createMenuItem = function createMenuItem(item, index) {
14053
+ if (item.visible === false) {
14054
+ return null;
14055
+ }
14056
+
14026
14057
  var active = activeItemState === item;
14027
14058
  var key = item.label + '_' + index;
14028
14059
  var className = classNames('p-menuitem', {
@@ -14532,7 +14563,7 @@ var DataScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
14532
14563
  ref: contentRef,
14533
14564
  className: "p-datascroller-content",
14534
14565
  style: {
14535
- 'maxHeight': props.scrollHeight
14566
+ maxHeight: props.scrollHeight
14536
14567
  }
14537
14568
  }, /*#__PURE__*/React.createElement("ul", {
14538
14569
  className: "p-datascroller-list"
@@ -14584,7 +14615,7 @@ var CurrentPageReport = /*#__PURE__*/React.memo(function (props) {
14584
14615
  rows: props.rows,
14585
14616
  totalRecords: props.totalRecords
14586
14617
  };
14587
- var text = props.reportTemplate.replace("{currentPage}", report.currentPage).replace("{totalPages}", report.totalPages).replace("{first}", report.first).replace("{last}", report.last).replace("{rows}", report.rows).replace("{totalRecords}", report.totalRecords);
14618
+ var text = props.reportTemplate.replace('{currentPage}', report.currentPage).replace('{totalPages}', report.totalPages).replace('{first}', report.first).replace('{last}', report.last).replace('{rows}', report.rows).replace('{totalRecords}', report.totalRecords);
14588
14619
  var element = /*#__PURE__*/React.createElement("span", {
14589
14620
  className: "p-paginator-current"
14590
14621
  }, text);
@@ -16411,15 +16442,16 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
16411
16442
 
16412
16443
  if (props.onBlur) {
16413
16444
  setTimeout(function () {
16445
+ var currentValue = inputRef.current ? inputRef.current.value : undefined;
16414
16446
  props.onBlur({
16415
16447
  originalEvent: event.originalEvent,
16416
- value: inputRef.current.value,
16448
+ value: currentValue,
16417
16449
  stopPropagation: function stopPropagation() {},
16418
16450
  preventDefault: function preventDefault() {},
16419
16451
  target: {
16420
16452
  name: props.name,
16421
16453
  id: props.id,
16422
- value: inputRef.current.value
16454
+ value: currentValue
16423
16455
  }
16424
16456
  });
16425
16457
  }, 200);
@@ -16976,7 +17008,7 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
16976
17008
  "aria-hidden": "true"
16977
17009
  }, /*#__PURE__*/React.createElement("option", {
16978
17010
  value: option.value
16979
- }, option.label), ";"));
17011
+ }, option.label)));
16980
17012
  };
16981
17013
 
16982
17014
  var createKeyboardHelper = function createKeyboardHelper() {
@@ -21678,7 +21710,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
21678
21710
  var dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
21679
21711
 
21680
21712
  var reviver = function reviver(key, value) {
21681
- return typeof value === "string" && dateFormat.test(value) ? new Date(value) : value;
21713
+ return typeof value === 'string' && dateFormat.test(value) ? new Date(value) : value;
21682
21714
  };
21683
21715
 
21684
21716
  if (stateString) {
@@ -22705,7 +22737,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
22705
22737
  };
22706
22738
 
22707
22739
  var closeEditingCell = function closeEditingCell() {
22708
- if (props.editMode !== "row") {
22740
+ if (props.editMode !== 'row') {
22709
22741
  document.body.click();
22710
22742
  }
22711
22743
  };
@@ -23796,6 +23828,10 @@ var Dock = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (prop
23796
23828
  };
23797
23829
 
23798
23830
  var createItem = function createItem(item, index) {
23831
+ if (item.visible === false) {
23832
+ return null;
23833
+ }
23834
+
23799
23835
  var disabled = item.disabled,
23800
23836
  _icon = item.icon,
23801
23837
  label = item.label,
@@ -24008,10 +24044,10 @@ var Editor = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pr
24008
24044
  } // GitHub #2271 prevent infinite loop on clipboard paste of HTML
24009
24045
 
24010
24046
 
24011
- if (source === "api") {
24047
+ if (source === 'api') {
24012
24048
  var htmlValue = contentRef.current.children[0];
24013
- var editorValue = document.createElement("div");
24014
- editorValue.innerHTML = props.value || ""; // this is necessary because Quill rearranged style elements
24049
+ var editorValue = document.createElement('div');
24050
+ editorValue.innerHTML = props.value || ''; // this is necessary because Quill rearranged style elements
24015
24051
 
24016
24052
  if (DomHandler.isEqualElement(htmlValue, editorValue)) {
24017
24053
  return;
@@ -24365,7 +24401,8 @@ var UIMessage = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
24365
24401
  detail = _props$message.detail,
24366
24402
  closable = _props$message.closable,
24367
24403
  life = _props$message.life,
24368
- sticky = _props$message.sticky;
24404
+ sticky = _props$message.sticky,
24405
+ icon = _props$message.icon;
24369
24406
 
24370
24407
  var _useTimeout = useTimeout(function () {
24371
24408
  onClose(null);
@@ -24403,15 +24440,23 @@ var UIMessage = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
24403
24440
 
24404
24441
  var createMessage = function createMessage() {
24405
24442
  if (props.message) {
24406
- var icon = classNames('p-message-icon pi ', {
24407
- 'pi-info-circle': severity === 'info',
24408
- 'pi-check': severity === 'success',
24409
- 'pi-exclamation-triangle': severity === 'warn',
24410
- 'pi-times-circle': severity === 'error'
24443
+ var iconValue = icon;
24444
+
24445
+ if (!iconValue) {
24446
+ iconValue = classNames('pi', {
24447
+ 'pi-info-circle': severity === 'info',
24448
+ 'pi-exclamation-triangle': severity === 'warn',
24449
+ 'pi-times-circle': severity === 'error',
24450
+ 'pi-check': severity === 'success'
24451
+ });
24452
+ }
24453
+
24454
+ var iconContent = IconUtils.getJSXIcon(iconValue, {
24455
+ className: 'p-message-icon'
24456
+ }, {
24457
+ props: props
24411
24458
  });
24412
- return content || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
24413
- className: icon
24414
- }), /*#__PURE__*/React.createElement("span", {
24459
+ return content || /*#__PURE__*/React.createElement(React.Fragment, null, iconContent, /*#__PURE__*/React.createElement("span", {
24415
24460
  className: "p-message-summary"
24416
24461
  }, summary), /*#__PURE__*/React.createElement("span", {
24417
24462
  className: "p-message-detail"
@@ -24694,7 +24739,10 @@ var FileUpload = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
24694
24739
 
24695
24740
  var onFileSelect = function onFileSelect(event) {
24696
24741
  // give caller a chance to stop the selection
24697
- if (props.onBeforeSelect && props.onBeforeSelect(event) === false) {
24742
+ if (props.onBeforeSelect && props.onBeforeSelect({
24743
+ originalEvent: event,
24744
+ files: filesState
24745
+ }) === false) {
24698
24746
  return;
24699
24747
  }
24700
24748
 
@@ -24805,8 +24853,8 @@ var FileUpload = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
24805
24853
 
24806
24854
  if (props.onBeforeUpload) {
24807
24855
  props.onBeforeUpload({
24808
- 'xhr': xhr,
24809
- 'formData': formData
24856
+ xhr: xhr,
24857
+ formData: formData
24810
24858
  });
24811
24859
  }
24812
24860
 
@@ -24871,8 +24919,8 @@ var FileUpload = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
24871
24919
 
24872
24920
  if (props.onBeforeSend) {
24873
24921
  props.onBeforeSend({
24874
- 'xhr': xhr,
24875
- 'formData': formData
24922
+ xhr: xhr,
24923
+ formData: formData
24876
24924
  });
24877
24925
  }
24878
24926
 
@@ -24965,6 +25013,9 @@ var FileUpload = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
24965
25013
  },
24966
25014
  getContent: function getContent() {
24967
25015
  return contentRef.current;
25016
+ },
25017
+ getFiles: function getFiles() {
25018
+ return filesState;
24968
25019
  }
24969
25020
  };
24970
25021
  });
@@ -24984,7 +25035,7 @@ var FileUpload = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
24984
25035
  var label = iconOnly ? /*#__PURE__*/React.createElement("span", {
24985
25036
  className: labelClassName,
24986
25037
  dangerouslySetInnerHTML: {
24987
- __html: "&nbsp;"
25038
+ __html: '&nbsp;'
24988
25039
  }
24989
25040
  }) : /*#__PURE__*/React.createElement("span", {
24990
25041
  className: labelClassName
@@ -25169,7 +25220,7 @@ var FileUpload = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
25169
25220
  var chooseLabel = chooseOptions.iconOnly ? /*#__PURE__*/React.createElement("span", {
25170
25221
  className: labelClassName,
25171
25222
  dangerouslySetInnerHTML: {
25172
- __html: "&nbsp;"
25223
+ __html: '&nbsp;'
25173
25224
  }
25174
25225
  }) : /*#__PURE__*/React.createElement("span", {
25175
25226
  className: labelClassName
@@ -25909,7 +25960,7 @@ var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
25909
25960
  }, backwardNavigator, /*#__PURE__*/React.createElement("div", {
25910
25961
  className: "p-galleria-thumbnail-items-container",
25911
25962
  style: {
25912
- 'height': height
25963
+ height: height
25913
25964
  }
25914
25965
  }, /*#__PURE__*/React.createElement("div", {
25915
25966
  ref: itemsContainerRef,
@@ -26192,11 +26243,11 @@ Galleria.defaultProps = {
26192
26243
  autoPlay: false,
26193
26244
  transitionInterval: 4000,
26194
26245
  showThumbnails: true,
26195
- thumbnailsPosition: "bottom",
26196
- verticalThumbnailViewPortHeight: "300px",
26246
+ thumbnailsPosition: 'bottom',
26247
+ verticalThumbnailViewPortHeight: '300px',
26197
26248
  showIndicators: false,
26198
26249
  showIndicatorsOnItem: false,
26199
- indicatorsPosition: "bottom",
26250
+ indicatorsPosition: 'bottom',
26200
26251
  baseZIndex: 0,
26201
26252
  transitionOptions: null,
26202
26253
  onItemChange: null
@@ -27143,7 +27194,7 @@ var InputMask = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
27143
27194
 
27144
27195
  writeBuffer();
27145
27196
 
27146
- if (pos === props.mask.replace("?", "").length) {
27197
+ if (pos === props.mask.replace('?', '').length) {
27147
27198
  caret(0, pos);
27148
27199
  } else {
27149
27200
  caret(pos);
@@ -27245,8 +27296,8 @@ var InputMask = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
27245
27296
  len.current = props.mask.length;
27246
27297
  firstNonMaskPos.current = null;
27247
27298
  var defs = {
27248
- '9': '[0-9]',
27249
- 'a': '[A-Za-z]',
27299
+ 9: '[0-9]',
27300
+ a: '[A-Za-z]',
27250
27301
  '*': '[A-Za-z0-9]'
27251
27302
  };
27252
27303
  var ua = DomHandler.getUserAgent();
@@ -27723,7 +27774,7 @@ var Knob = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (prop
27723
27774
  var valuePath = "M ".concat(zeroX(), " ").concat(zeroY(), " A ").concat(radius, " ").concat(radius, " 0 ").concat(largeArc(), " ").concat(sweep(), " ").concat(valueX(), " ").concat(valueY());
27724
27775
 
27725
27776
  var valueToDisplay = function valueToDisplay() {
27726
- return props.valueTemplate.replace("{value}", props.value.toString());
27777
+ return props.valueTemplate.replace('{value}', props.value.toString());
27727
27778
  };
27728
27779
 
27729
27780
  var updateValue = function updateValue(offsetX, offsetY) {
@@ -28650,6 +28701,10 @@ var MegaMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
28650
28701
  };
28651
28702
 
28652
28703
  var createSubmenuItem = function createSubmenuItem(item, index) {
28704
+ if (item.visible === false) {
28705
+ return null;
28706
+ }
28707
+
28653
28708
  if (item.separator) {
28654
28709
  return createSeparator(index);
28655
28710
  } else {
@@ -29516,6 +29571,10 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (prop
29516
29571
  };
29517
29572
 
29518
29573
  var createMenuItem = function createMenuItem(item, index) {
29574
+ if (item.visible === false) {
29575
+ return null;
29576
+ }
29577
+
29519
29578
  var className = classNames('p-menuitem', item.className);
29520
29579
  var linkClassName = classNames('p-menuitem-link', {
29521
29580
  'p-disabled': item.disabled
@@ -29812,6 +29871,10 @@ var MenubarSub = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
29812
29871
  };
29813
29872
 
29814
29873
  var createMenuitem = function createMenuitem(item, index) {
29874
+ if (item.visible === false) {
29875
+ return null;
29876
+ }
29877
+
29815
29878
  var key = item.label + '_' + index;
29816
29879
  var className = classNames('p-menuitem', {
29817
29880
  'p-menuitem-active': activeItemState === item
@@ -29993,7 +30056,12 @@ var Menubar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
29993
30056
  };
29994
30057
 
29995
30058
  var createMenuButton = function createMenuButton() {
30059
+ if (props.model && props.model.length < 1) {
30060
+ return null;
30061
+ }
29996
30062
  /* eslint-disable */
30063
+
30064
+
29997
30065
  var button = /*#__PURE__*/React.createElement("a", {
29998
30066
  ref: menuButtonRef,
29999
30067
  href: '#',
@@ -30050,15 +30118,23 @@ var Message = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
30050
30118
  }
30051
30119
 
30052
30120
  var text = ObjectUtils.getJSXElement(props.text, props);
30053
- var icon = classNames('p-inline-message-icon pi', {
30054
- 'pi-info-circle': props.severity === 'info',
30055
- 'pi-exclamation-triangle': props.severity === 'warn',
30056
- 'pi-times-circle': props.severity === 'error',
30057
- 'pi-check': props.severity === 'success'
30121
+ var iconValue = props.icon;
30122
+
30123
+ if (!iconValue) {
30124
+ iconValue = classNames('pi', {
30125
+ 'pi-info-circle': props.severity === 'info',
30126
+ 'pi-exclamation-triangle': props.severity === 'warn',
30127
+ 'pi-times-circle': props.severity === 'error',
30128
+ 'pi-check': props.severity === 'success'
30129
+ });
30130
+ }
30131
+
30132
+ var icon = IconUtils.getJSXIcon(iconValue, {
30133
+ className: 'p-inline-message-icon'
30134
+ }, {
30135
+ props: props
30058
30136
  });
30059
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
30060
- className: icon
30061
- }), /*#__PURE__*/React.createElement("span", {
30137
+ return /*#__PURE__*/React.createElement(React.Fragment, null, icon, /*#__PURE__*/React.createElement("span", {
30062
30138
  className: "p-inline-message-text"
30063
30139
  }, text));
30064
30140
  };
@@ -30097,6 +30173,7 @@ Message.defaultProps = {
30097
30173
  className: null,
30098
30174
  style: null,
30099
30175
  text: null,
30176
+ icon: null,
30100
30177
  severity: 'info',
30101
30178
  content: null
30102
30179
  };
@@ -31422,7 +31499,7 @@ MultiStateCheckbox.defaultProps = {
31422
31499
  disabled: false,
31423
31500
  readOnly: false,
31424
31501
  empty: true,
31425
- tabIndex: "0",
31502
+ tabIndex: '0',
31426
31503
  'aria-label': null,
31427
31504
  'aria-labelledby': null,
31428
31505
  tooltip: null,
@@ -32784,6 +32861,10 @@ var PanelMenuSub = /*#__PURE__*/React.memo(function (props) {
32784
32861
  };
32785
32862
 
32786
32863
  var createMenuItem = function createMenuItem(item, index) {
32864
+ if (item.visible === false) {
32865
+ return null;
32866
+ }
32867
+
32787
32868
  var key = item.label + '_' + index;
32788
32869
  var active = isItemActive(item);
32789
32870
  var className = classNames('p-menuitem', item.className);
@@ -32965,6 +33046,10 @@ var PanelMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
32965
33046
  };
32966
33047
 
32967
33048
  var createPanel = function createPanel(item, index) {
33049
+ if (item.visible === false) {
33050
+ return null;
33051
+ }
33052
+
32968
33053
  var key = item.label + '_' + index;
32969
33054
  var active = isItemActive(item);
32970
33055
  var className = classNames('p-panelmenu-panel', item.className);
@@ -34376,15 +34461,18 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
34376
34461
  var inputRef = React.useRef(props.inputRef);
34377
34462
 
34378
34463
  var select = function select(e) {
34379
- inputRef.current.checked = true;
34380
34464
  onClick(e);
34381
34465
  };
34382
34466
 
34383
34467
  var onClick = function onClick(e) {
34384
34468
  if (!props.disabled && props.onChange) {
34385
34469
  var checked = props.checked;
34470
+ var radioClicked = e.target instanceof HTMLDivElement;
34471
+ var inputClicked = e.target === inputRef.current;
34472
+ var isInputToggled = inputClicked && e.target.checked !== checked;
34473
+ var isRadioToggled = radioClicked && !e.target.checked;
34386
34474
 
34387
- if (inputRef.current.checked === checked) {
34475
+ if (isInputToggled || isRadioToggled) {
34388
34476
  var value = !checked;
34389
34477
  props.onChange({
34390
34478
  originalEvent: e,
@@ -34400,7 +34488,6 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
34400
34488
  checked: value
34401
34489
  }
34402
34490
  });
34403
- inputRef.current.checked = value;
34404
34491
  }
34405
34492
 
34406
34493
  DomHandler.focus(inputRef.current);
@@ -34416,6 +34503,12 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
34416
34503
  setFocusedState(false);
34417
34504
  };
34418
34505
 
34506
+ var onKeyDown = function onKeyDown(event) {
34507
+ if (event.code === 'Space') {
34508
+ onClick(event);
34509
+ }
34510
+ };
34511
+
34419
34512
  React.useEffect(function () {
34420
34513
  if (inputRef.current) {
34421
34514
  inputRef.current.checked = props.checked;
@@ -34467,6 +34560,7 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
34467
34560
  "aria-label": props['aria-label'],
34468
34561
  onFocus: onFocus,
34469
34562
  onBlur: onBlur,
34563
+ onKeyDown: onKeyDown,
34470
34564
  disabled: props.disabled,
34471
34565
  required: props.required,
34472
34566
  tabIndex: props.tabIndex
@@ -34500,6 +34594,9 @@ RadioButton.defaultProps = {
34500
34594
  onChange: null
34501
34595
  };
34502
34596
 
34597
+ function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
34598
+
34599
+ function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
34503
34600
  var Rating = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
34504
34601
  var elementRef = React.useRef(null);
34505
34602
  var enabled = !props.disabled && !props.readOnly;
@@ -34553,38 +34650,55 @@ var Rating = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pr
34553
34650
  }
34554
34651
  };
34555
34652
 
34556
- var createStars = function createStars() {
34653
+ var createIcons = function createIcons() {
34557
34654
  return Array.from({
34558
34655
  length: props.stars
34559
34656
  }, function (_, i) {
34560
34657
  return i + 1;
34561
34658
  }).map(function (value) {
34562
- var iconClassName = classNames('p-rating-icon', {
34563
- 'pi pi-star': !props.value || value > props.value,
34564
- 'pi pi-star-fill': value <= props.value
34659
+ var active = value <= props.value;
34660
+ var className = classNames('p-rating-item', {
34661
+ 'p-rating-item-active': active
34662
+ });
34663
+ var icon = active ? {
34664
+ type: props.onIcon,
34665
+ props: props.onIconProps
34666
+ } : {
34667
+ type: props.offIcon,
34668
+ props: props.offIconProps
34669
+ };
34670
+ var content = IconUtils.getJSXIcon(icon.type, _objectSpread$9({
34671
+ className: 'p-rating-icon'
34672
+ }, icon.props), {
34673
+ props: props
34565
34674
  });
34566
- return /*#__PURE__*/React.createElement("span", {
34567
- className: iconClassName,
34675
+ return /*#__PURE__*/React.createElement("div", {
34676
+ key: value,
34677
+ className: className,
34678
+ tabIndex: tabIndex,
34568
34679
  onClick: function onClick(e) {
34569
34680
  return rate(e, value);
34570
34681
  },
34571
- key: value,
34572
- tabIndex: tabIndex,
34573
34682
  onKeyDown: function onKeyDown(e) {
34574
34683
  return onStarKeyDown(e, value);
34575
34684
  }
34576
- });
34685
+ }, content);
34577
34686
  });
34578
34687
  };
34579
34688
 
34580
34689
  var createCancelIcon = function createCancelIcon() {
34581
34690
  if (props.cancel) {
34582
- return /*#__PURE__*/React.createElement("span", {
34583
- className: "p-rating-icon p-rating-cancel pi pi-ban",
34691
+ var content = IconUtils.getJSXIcon(props.cancelIcon, _objectSpread$9({
34692
+ className: 'p-rating-icon p-rating-cancel'
34693
+ }, props.cancelIconProps), {
34694
+ props: props
34695
+ });
34696
+ return /*#__PURE__*/React.createElement("div", {
34697
+ className: "p-rating-item p-rating-cancel-item",
34584
34698
  onClick: clear,
34585
34699
  tabIndex: tabIndex,
34586
34700
  onKeyDown: onCancelKeyDown
34587
- });
34701
+ }, content);
34588
34702
  }
34589
34703
 
34590
34704
  return null;
@@ -34605,13 +34719,13 @@ var Rating = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pr
34605
34719
  'p-readonly': props.readOnly
34606
34720
  }, props.className);
34607
34721
  var cancelIcon = createCancelIcon();
34608
- var stars = createStars();
34722
+ var icons = createIcons();
34609
34723
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({
34610
34724
  ref: elementRef,
34611
34725
  id: props.id,
34612
34726
  className: className,
34613
34727
  style: props.style
34614
- }, otherProps), cancelIcon, stars), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
34728
+ }, otherProps), cancelIcon, icons), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
34615
34729
  target: elementRef,
34616
34730
  content: props.tooltip
34617
34731
  }, props.tooltipOptions)));
@@ -34629,7 +34743,13 @@ Rating.defaultProps = {
34629
34743
  className: null,
34630
34744
  tooltip: null,
34631
34745
  tooltipOptions: null,
34632
- onChange: null
34746
+ onChange: null,
34747
+ onIcon: 'pi pi-star-fill',
34748
+ offIcon: 'pi pi-star',
34749
+ cancelIcon: 'pi pi-ban',
34750
+ cancelIconProps: null,
34751
+ onIconProps: null,
34752
+ offIconProps: null
34633
34753
  };
34634
34754
 
34635
34755
  var Row = function Row(props) {
@@ -34669,7 +34789,7 @@ var ScrollPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
34669
34789
  if (contentRef.current.offsetHeight + parseInt(xBarStyles['height'], 10) > parseInt(containerStyles['max-height'], 10)) {
34670
34790
  containerRef.current.style.height = containerStyles['max-height'];
34671
34791
  } else {
34672
- containerRef.current.style.height = contentRef.current.offsetHeight + parseFloat(containerStyles.paddingTop) + parseFloat(containerStyles.paddingBottom) + parseFloat(containerStyles.borderTopWidth) + parseFloat(containerStyles.borderBottomWidth) + "px";
34792
+ containerRef.current.style.height = contentRef.current.offsetHeight + parseFloat(containerStyles.paddingTop) + parseFloat(containerStyles.paddingBottom) + parseFloat(containerStyles.borderTopWidth) + parseFloat(containerStyles.borderBottomWidth) + 'px';
34673
34793
  }
34674
34794
  }
34675
34795
  };
@@ -35449,9 +35569,9 @@ Skeleton.defaultProps = {
35449
35569
  className: null
35450
35570
  };
35451
35571
 
35452
- function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
35572
+ function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
35453
35573
 
35454
- function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
35574
+ function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
35455
35575
  var SlideMenuSub = /*#__PURE__*/React.memo(function (props) {
35456
35576
  var _React$useState = React.useState(null),
35457
35577
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -35482,7 +35602,7 @@ var SlideMenuSub = /*#__PURE__*/React.memo(function (props) {
35482
35602
 
35483
35603
  if (item.items) {
35484
35604
  var key = createKey(item, index);
35485
- setRenderSubMenu(_objectSpread$9(_objectSpread$9({}, renderSubMenu), {}, _defineProperty({}, key, true)));
35605
+ setRenderSubMenu(_objectSpread$8(_objectSpread$8({}, renderSubMenu), {}, _defineProperty({}, key, true)));
35486
35606
  setActiveItemState(item);
35487
35607
  props.onForward();
35488
35608
  }
@@ -35519,6 +35639,10 @@ var SlideMenuSub = /*#__PURE__*/React.memo(function (props) {
35519
35639
  };
35520
35640
 
35521
35641
  var createMenuitem = function createMenuitem(item, index) {
35642
+ if (item.visible === false) {
35643
+ return null;
35644
+ }
35645
+
35522
35646
  var key = createKey(item, index);
35523
35647
  var active = activeItemState === item;
35524
35648
  var className = classNames('p-menuitem', {
@@ -36108,9 +36232,9 @@ Slider.defaultProps = {
36108
36232
  'aria-labelledby': null
36109
36233
  };
36110
36234
 
36111
- function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
36235
+ function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
36112
36236
 
36113
- function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
36237
+ function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
36114
36238
  var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
36115
36239
  var _classNames2;
36116
36240
 
@@ -36255,7 +36379,7 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
36255
36379
  var getItemStyle = function getItemStyle(index) {
36256
36380
  var transitionDelay = calculateTransitionDelay(index);
36257
36381
  var pointStyle = calculatePointStyle(index);
36258
- return _objectSpread$8({
36382
+ return _objectSpread$7({
36259
36383
  transitionDelay: "".concat(transitionDelay, "ms")
36260
36384
  }, pointStyle);
36261
36385
  };
@@ -36295,6 +36419,10 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
36295
36419
  });
36296
36420
 
36297
36421
  var createItem = function createItem(item, index) {
36422
+ if (item.visible === false) {
36423
+ return null;
36424
+ }
36425
+
36298
36426
  var style = getItemStyle(index);
36299
36427
  var disabled = item.disabled,
36300
36428
  _icon = item.icon,
@@ -36473,6 +36601,10 @@ var SplitButtonItem = /*#__PURE__*/React.memo(function (props) {
36473
36601
  };
36474
36602
 
36475
36603
  var createMenuitem = function createMenuitem() {
36604
+ if (props.menuitem.visible === false) {
36605
+ return null;
36606
+ }
36607
+
36476
36608
  var _props$menuitem = props.menuitem,
36477
36609
  disabled = _props$menuitem.disabled,
36478
36610
  _icon = _props$menuitem.icon,
@@ -36675,6 +36807,10 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
36675
36807
  return null;
36676
36808
  };
36677
36809
 
36810
+ if (props.visible === false) {
36811
+ return null;
36812
+ }
36813
+
36678
36814
  var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
36679
36815
  var otherProps = ObjectUtils.findDiffKeys(props, SplitButton.defaultProps);
36680
36816
  var className = classNames('p-splitbutton p-component', props.className, {
@@ -37084,6 +37220,10 @@ var Steps = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
37084
37220
  };
37085
37221
 
37086
37222
  var createItem = function createItem(item, index) {
37223
+ if (item.visible === false) {
37224
+ return null;
37225
+ }
37226
+
37087
37227
  var key = item.label + '_' + index;
37088
37228
  var active = index === props.activeIndex;
37089
37229
  var disabled = item.disabled || index !== props.activeIndex && props.readOnly;
@@ -37476,6 +37616,10 @@ var TabMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
37476
37616
  });
37477
37617
 
37478
37618
  var createMenuItem = function createMenuItem(item, index) {
37619
+ if (item.visible === false) {
37620
+ return null;
37621
+ }
37622
+
37479
37623
  var _className = item.className,
37480
37624
  style = item.style,
37481
37625
  disabled = item.disabled,
@@ -37522,7 +37666,8 @@ var TabMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
37522
37666
  element: content,
37523
37667
  props: props,
37524
37668
  active: active,
37525
- index: index
37669
+ index: index,
37670
+ disabled: disabled
37526
37671
  };
37527
37672
  content = ObjectUtils.getJSXElement(template, item, defaultContentOptions);
37528
37673
  }
@@ -37575,9 +37720,9 @@ TabMenu.defaultProps = {
37575
37720
  onTabChange: null
37576
37721
  };
37577
37722
 
37578
- function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37723
+ function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37579
37724
 
37580
- function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
37725
+ function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
37581
37726
  var TabPanel = function TabPanel() {};
37582
37727
  var TabView = /*#__PURE__*/React.forwardRef(function (props, ref) {
37583
37728
  var _React$useState = React.useState(props.id),
@@ -37777,7 +37922,7 @@ var TabView = /*#__PURE__*/React.forwardRef(function (props, ref) {
37777
37922
  headerTemplate = _tab$props.headerTemplate,
37778
37923
  closable = _tab$props.closable;
37779
37924
 
37780
- var style = _objectSpread$7(_objectSpread$7({}, headerStyle || {}), _style || {});
37925
+ var style = _objectSpread$6(_objectSpread$6({}, headerStyle || {}), _style || {});
37781
37926
 
37782
37927
  var className = classNames('p-unselectable-text', {
37783
37928
  'p-tabview-selected p-highlight': selected,
@@ -37884,7 +38029,7 @@ var TabView = /*#__PURE__*/React.forwardRef(function (props, ref) {
37884
38029
  if (shouldUseTab(tab, index) && (!props.renderActiveOnly || isSelected(index))) {
37885
38030
  var selected = isSelected(index);
37886
38031
 
37887
- var style = _objectSpread$7(_objectSpread$7({}, tab.props.contentStyle || {}), tab.props.style || {});
38032
+ var style = _objectSpread$6(_objectSpread$6({}, tab.props.contentStyle || {}), tab.props.style || {});
37888
38033
 
37889
38034
  var _className2 = classNames(tab.props.contentClassName, tab.props.className, 'p-tabview-panel', {
37890
38035
  'p-hidden': !selected
@@ -38374,6 +38519,10 @@ var TieredMenuSub = /*#__PURE__*/React.memo(function (props) {
38374
38519
  };
38375
38520
 
38376
38521
  var createMenuItem = function createMenuItem(item, index) {
38522
+ if (item.visible === false) {
38523
+ return null;
38524
+ }
38525
+
38377
38526
  item.id;
38378
38527
  var _className = item.className,
38379
38528
  style = item.style,
@@ -38437,7 +38586,8 @@ var TieredMenuSub = /*#__PURE__*/React.memo(function (props) {
38437
38586
  submenuIconClassName: submenuIconClassName,
38438
38587
  element: content,
38439
38588
  props: props,
38440
- active: active
38589
+ active: active,
38590
+ disabled: disabled
38441
38591
  };
38442
38592
  content = ObjectUtils.getJSXElement(template, item, defaultContentOptions);
38443
38593
  }
@@ -38681,22 +38831,20 @@ Timeline.defaultProps = {
38681
38831
  content: null
38682
38832
  };
38683
38833
 
38684
- function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
38685
-
38686
- function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
38687
38834
  var ToastMessage = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
38688
- var _props$message = props.message,
38689
- severity = _props$message.severity,
38690
- content = _props$message.content,
38691
- summary = _props$message.summary,
38692
- detail = _props$message.detail,
38693
- closable = _props$message.closable,
38694
- life = _props$message.life,
38695
- sticky = _props$message.sticky,
38696
- _className = _props$message.className,
38697
- style = _props$message.style,
38698
- _contentClassName = _props$message.contentClassName,
38699
- contentStyle = _props$message.contentStyle;
38835
+ var messageInfo = props.messageInfo;
38836
+ var _messageInfo$message = messageInfo.message,
38837
+ severity = _messageInfo$message.severity,
38838
+ content = _messageInfo$message.content,
38839
+ summary = _messageInfo$message.summary,
38840
+ detail = _messageInfo$message.detail,
38841
+ closable = _messageInfo$message.closable,
38842
+ life = _messageInfo$message.life,
38843
+ sticky = _messageInfo$message.sticky,
38844
+ _className = _messageInfo$message.className,
38845
+ style = _messageInfo$message.style,
38846
+ _contentClassName = _messageInfo$message.contentClassName,
38847
+ contentStyle = _messageInfo$message.contentStyle;
38700
38848
 
38701
38849
  var _useTimeout = useTimeout(function () {
38702
38850
  onClose();
@@ -38706,12 +38854,12 @@ var ToastMessage = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
38706
38854
 
38707
38855
  var onClose = function onClose() {
38708
38856
  clearTimer();
38709
- props.onClose && props.onClose(props.message);
38857
+ props.onClose && props.onClose(messageInfo);
38710
38858
  };
38711
38859
 
38712
38860
  var onClick = function onClick(event) {
38713
38861
  if (props.onClick && !(DomHandler.hasClass(event.target, 'p-toast-icon-close') || DomHandler.hasClass(event.target, 'p-toast-icon-close-icon'))) {
38714
- props.onClick(props.message);
38862
+ props.onClick(messageInfo.message);
38715
38863
  }
38716
38864
  };
38717
38865
 
@@ -38730,10 +38878,12 @@ var ToastMessage = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
38730
38878
  };
38731
38879
 
38732
38880
  var createMessage = function createMessage() {
38733
- if (props.message) {
38734
- var contentEl = ObjectUtils.getJSXElement(content, _objectSpread$6(_objectSpread$6({}, props), {}, {
38881
+ if (messageInfo) {
38882
+ var contentEl = ObjectUtils.getJSXElement(content, {
38883
+ message: messageInfo.message,
38884
+ onClick: onClick,
38735
38885
  onClose: onClose
38736
- }));
38886
+ });
38737
38887
  var iconClassName = classNames('p-toast-message-icon pi', {
38738
38888
  'pi-info-circle': severity === 'info',
38739
38889
  'pi-exclamation-triangle': severity === 'warn',
@@ -38787,13 +38937,20 @@ var Toast = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
38787
38937
  var messages;
38788
38938
 
38789
38939
  if (Array.isArray(value)) {
38790
- for (var i = 0; i < value.length; i++) {
38791
- value[i].id = messageIdx++;
38792
- messages = [].concat(_toConsumableArray(messagesState), _toConsumableArray(value));
38793
- }
38940
+ var multipleMessages = value.reduce(function (acc, message) {
38941
+ acc.push({
38942
+ _pId: messageIdx++,
38943
+ message: message
38944
+ });
38945
+ return acc;
38946
+ }, []);
38947
+ messages = messagesState ? [].concat(_toConsumableArray(messagesState), _toConsumableArray(multipleMessages)) : multipleMessages;
38794
38948
  } else {
38795
- value.id = messageIdx++;
38796
- messages = messagesState ? [].concat(_toConsumableArray(messagesState), [value]) : [value];
38949
+ var message = {
38950
+ _pId: messageIdx++,
38951
+ message: value
38952
+ };
38953
+ messages = messagesState ? [].concat(_toConsumableArray(messagesState), [message]) : [message];
38797
38954
  }
38798
38955
 
38799
38956
  messagesState.length === 0 && ZIndexUtils.set('toast', containerRef.current, PrimeReact.autoZIndex, props.baseZIndex || PrimeReact.zIndex['toast']);
@@ -38811,12 +38968,12 @@ var Toast = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
38811
38968
  setMessagesState(replaced);
38812
38969
  };
38813
38970
 
38814
- var onClose = function onClose(message) {
38971
+ var onClose = function onClose(messageInfo) {
38815
38972
  var messages = messagesState.filter(function (msg) {
38816
- return msg.id !== message.id;
38973
+ return msg._pId !== messageInfo._pId;
38817
38974
  });
38818
38975
  setMessagesState(messages);
38819
- props.onRemove && props.onRemove(message);
38976
+ props.onRemove && props.onRemove(messageInfo.message);
38820
38977
  };
38821
38978
 
38822
38979
  var onEntered = function onEntered() {
@@ -38851,11 +39008,11 @@ var Toast = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
38851
39008
  id: props.id,
38852
39009
  className: className,
38853
39010
  style: props.style
38854
- }, otherProps), /*#__PURE__*/React.createElement(TransitionGroup, null, messagesState.map(function (message) {
39011
+ }, otherProps), /*#__PURE__*/React.createElement(TransitionGroup, null, messagesState.map(function (messageInfo) {
38855
39012
  var messageRef = /*#__PURE__*/React.createRef();
38856
39013
  return /*#__PURE__*/React.createElement(CSSTransition, {
38857
39014
  nodeRef: messageRef,
38858
- key: message.id,
39015
+ key: messageInfo._pId,
38859
39016
  classNames: "p-toast-message",
38860
39017
  unmountOnExit: true,
38861
39018
  timeout: {
@@ -38867,7 +39024,7 @@ var Toast = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
38867
39024
  options: props.transitionOptions
38868
39025
  }, /*#__PURE__*/React.createElement(ToastMessage, {
38869
39026
  ref: messageRef,
38870
- message: message,
39027
+ messageInfo: messageInfo,
38871
39028
  onClick: props.onClick,
38872
39029
  onClose: onClose
38873
39030
  }));
@@ -39545,7 +39702,7 @@ var UITreeNode = /*#__PURE__*/React.memo(function (props) {
39545
39702
  };
39546
39703
 
39547
39704
  var onDragStart = function onDragStart(event) {
39548
- event.dataTransfer.setData("text", props.dragdropScope);
39705
+ event.dataTransfer.setData('text', props.dragdropScope);
39549
39706
  event.dataTransfer.setData(props.dragdropScope, props.dragdropScope);
39550
39707
 
39551
39708
  if (props.onDragStart) {
@@ -40393,7 +40550,7 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
40393
40550
  overlayVisibleState = _React$useState4[0],
40394
40551
  setOverlayVisibleState = _React$useState4[1];
40395
40552
 
40396
- var _React$useState5 = React.useState({}),
40553
+ var _React$useState5 = React.useState(props.expandedKeys),
40397
40554
  _React$useState6 = _slicedToArray(_React$useState5, 2),
40398
40555
  expandedKeysState = _React$useState6[0],
40399
40556
  setExpandedKeysState = _React$useState6[1];
@@ -40409,6 +40566,7 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
40409
40566
  var focusInputRef = React.useRef(null);
40410
40567
  var triggerRef = React.useRef(null);
40411
40568
  var selfChange = React.useRef(null);
40569
+ var expandedKeys = props.onToggle ? props.expandedKeys : expandedKeysState;
40412
40570
  var filteredValue = props.onFilterValueChange ? props.filterValue : filterValueState;
40413
40571
  var isValueEmpty = ObjectUtils.isEmpty(props.value);
40414
40572
  var hasNoOptions = ObjectUtils.isEmpty(props.options);
@@ -40492,7 +40650,11 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
40492
40650
  };
40493
40651
 
40494
40652
  var onNodeToggle = function onNodeToggle(e) {
40495
- setExpandedKeysState(e.value);
40653
+ if (props.onToggle) {
40654
+ props.onToggle(e);
40655
+ } else {
40656
+ setExpandedKeysState(e.value);
40657
+ }
40496
40658
  };
40497
40659
 
40498
40660
  var onFilterValueChange = function onFilterValueChange(e) {
@@ -40704,7 +40866,7 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
40704
40866
 
40705
40867
  var expandPath = function expandPath(path) {
40706
40868
  if (path.length > 0) {
40707
- var expandedKeys = _objectSpread$3({}, expandedKeysState || {});
40869
+ var _expandedKeys = _objectSpread$3({}, expandedKeysState || {});
40708
40870
 
40709
40871
  var _iterator5 = _createForOfIteratorHelper$4(path),
40710
40872
  _step5;
@@ -40712,7 +40874,7 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
40712
40874
  try {
40713
40875
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
40714
40876
  var key = _step5.value;
40715
- expandedKeys[key] = true;
40877
+ _expandedKeys[key] = true;
40716
40878
  }
40717
40879
  } catch (err) {
40718
40880
  _iterator5.e(err);
@@ -40720,7 +40882,7 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
40720
40882
  _iterator5.f();
40721
40883
  }
40722
40884
 
40723
- setExpandedKeysState(expandedKeys);
40885
+ setExpandedKeysState(_expandedKeys);
40724
40886
  }
40725
40887
  };
40726
40888
 
@@ -40845,7 +41007,7 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
40845
41007
  onSelectionChange: onSelectionChange,
40846
41008
  onSelect: onNodeSelect,
40847
41009
  onUnselect: onNodeUnselect,
40848
- expandedKeys: expandedKeysState,
41010
+ expandedKeys: expandedKeys,
40849
41011
  onToggle: onNodeToggle,
40850
41012
  onExpand: props.onNodeExpand,
40851
41013
  onCollapse: props.onNodeCollapse,
@@ -40988,6 +41150,7 @@ TreeSelect.defaultProps = {
40988
41150
  ariaLabel: null,
40989
41151
  ariaLabelledBy: null,
40990
41152
  selectionMode: 'single',
41153
+ expandedKeys: null,
40991
41154
  panelStyle: null,
40992
41155
  panelClassName: null,
40993
41156
  appendTo: null,
@@ -41142,7 +41305,7 @@ var TreeTableBodyCell = function TreeTableBodyCell(props) {
41142
41305
  field: props.field,
41143
41306
  rowIndex: props.rowIndex,
41144
41307
  props: props
41145
- });else throw new Error("Editor is not found on column.");
41308
+ });else throw new Error('Editor is not found on column.');
41146
41309
  } else {
41147
41310
  if (props.body) content = ObjectUtils.getJSXElement(props.body, props.node, {
41148
41311
  field: props.field,
@@ -42775,7 +42938,7 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
42775
42938
  nextCol.style.width = nextColumnWidth + 'px';
42776
42939
  }
42777
42940
  } else {
42778
- throw new Error("Scrollable tables require a colgroup to support resizable columns");
42941
+ throw new Error('Scrollable tables require a colgroup to support resizable columns');
42779
42942
  }
42780
42943
  }
42781
42944
  };
@@ -43658,7 +43821,7 @@ TriStateCheckbox.defaultProps = {
43658
43821
  className: null,
43659
43822
  disabled: false,
43660
43823
  readOnly: false,
43661
- tabIndex: "0",
43824
+ tabIndex: '0',
43662
43825
  'aria-label': null,
43663
43826
  'aria-labelledby': null,
43664
43827
  tooltip: null,