primereact 8.0.0-rc.1 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/README.md +8 -5
  2. package/accordion/accordion.cjs.js +1 -1
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.d.ts +2 -0
  5. package/accordion/accordion.esm.js +1 -1
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +1 -1
  8. package/accordion/accordion.min.js +1 -1
  9. package/api/api.cjs.js +2 -5
  10. package/api/api.cjs.min.js +1 -1
  11. package/api/api.esm.js +2 -5
  12. package/api/api.esm.min.js +1 -1
  13. package/api/api.js +2 -5
  14. package/api/api.min.js +1 -1
  15. package/autocomplete/autocomplete.cjs.js +5 -0
  16. package/autocomplete/autocomplete.cjs.min.js +1 -1
  17. package/autocomplete/autocomplete.d.ts +2 -1
  18. package/autocomplete/autocomplete.esm.js +5 -0
  19. package/autocomplete/autocomplete.esm.min.js +1 -1
  20. package/autocomplete/autocomplete.js +5 -0
  21. package/autocomplete/autocomplete.min.js +1 -1
  22. package/avatar/avatar.d.ts +1 -0
  23. package/avatargroup/avatargroup.d.ts +1 -0
  24. package/badge/badge.d.ts +1 -0
  25. package/blockui/blockui.d.ts +1 -0
  26. package/breadcrumb/breadcrumb.cjs.js +7 -5
  27. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  28. package/breadcrumb/breadcrumb.d.ts +1 -0
  29. package/breadcrumb/breadcrumb.esm.js +8 -6
  30. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  31. package/breadcrumb/breadcrumb.js +7 -5
  32. package/breadcrumb/breadcrumb.min.js +1 -1
  33. package/button/button.cjs.js +3 -1
  34. package/button/button.cjs.min.js +1 -1
  35. package/button/button.d.ts +1 -0
  36. package/button/button.esm.js +3 -1
  37. package/button/button.esm.min.js +1 -1
  38. package/button/button.js +3 -1
  39. package/button/button.min.css +1 -1
  40. package/button/button.min.js +1 -1
  41. package/calendar/calendar.cjs.js +314 -151
  42. package/calendar/calendar.cjs.min.js +1 -1
  43. package/calendar/calendar.d.ts +8 -0
  44. package/calendar/calendar.esm.js +314 -151
  45. package/calendar/calendar.esm.min.js +1 -1
  46. package/calendar/calendar.js +315 -152
  47. package/calendar/calendar.min.css +1 -1
  48. package/calendar/calendar.min.js +1 -1
  49. package/captcha/captcha.d.ts +1 -0
  50. package/card/card.d.ts +1 -0
  51. package/carousel/carousel.cjs.js +4 -4
  52. package/carousel/carousel.cjs.min.js +1 -1
  53. package/carousel/carousel.d.ts +1 -0
  54. package/carousel/carousel.esm.js +4 -4
  55. package/carousel/carousel.esm.min.js +1 -1
  56. package/carousel/carousel.js +4 -4
  57. package/carousel/carousel.min.js +1 -1
  58. package/cascadeselect/cascadeselect.d.ts +4 -2
  59. package/chart/chart.d.ts +1 -0
  60. package/checkbox/checkbox.cjs.js +5 -13
  61. package/checkbox/checkbox.cjs.min.js +1 -1
  62. package/checkbox/checkbox.d.ts +2 -2
  63. package/checkbox/checkbox.esm.js +5 -13
  64. package/checkbox/checkbox.esm.min.js +1 -1
  65. package/checkbox/checkbox.js +5 -13
  66. package/checkbox/checkbox.min.js +1 -1
  67. package/chip/chip.d.ts +1 -0
  68. package/chips/chips.cjs.js +6 -2
  69. package/chips/chips.cjs.min.js +1 -1
  70. package/chips/chips.d.ts +1 -0
  71. package/chips/chips.esm.js +6 -2
  72. package/chips/chips.esm.min.js +1 -1
  73. package/chips/chips.js +6 -2
  74. package/chips/chips.min.js +1 -1
  75. package/colorpicker/colorpicker.d.ts +1 -0
  76. package/column/column.d.ts +2 -1
  77. package/columngroup/columngroup.d.ts +3 -1
  78. package/common/common.min.css +1 -1
  79. package/confirmdialog/confirmdialog.cjs.js +2 -2
  80. package/confirmdialog/confirmdialog.d.ts +1 -0
  81. package/confirmdialog/confirmdialog.esm.js +2 -2
  82. package/confirmdialog/confirmdialog.js +2 -2
  83. package/confirmpopup/confirmpopup.cjs.js +2 -2
  84. package/confirmpopup/confirmpopup.d.ts +1 -0
  85. package/confirmpopup/confirmpopup.esm.js +2 -2
  86. package/confirmpopup/confirmpopup.js +2 -2
  87. package/contextmenu/contextmenu.cjs.js +6 -2
  88. package/contextmenu/contextmenu.cjs.min.js +1 -1
  89. package/contextmenu/contextmenu.d.ts +1 -0
  90. package/contextmenu/contextmenu.esm.js +7 -3
  91. package/contextmenu/contextmenu.esm.min.js +1 -1
  92. package/contextmenu/contextmenu.js +6 -2
  93. package/contextmenu/contextmenu.min.js +1 -1
  94. package/core/core.js +249 -134
  95. package/core/core.min.js +10 -10
  96. package/datascroller/datascroller.d.ts +1 -0
  97. package/datatable/datatable.cjs.js +13 -11
  98. package/datatable/datatable.cjs.min.js +1 -1
  99. package/datatable/datatable.d.ts +2 -1
  100. package/datatable/datatable.esm.js +13 -11
  101. package/datatable/datatable.esm.min.js +1 -1
  102. package/datatable/datatable.js +13 -11
  103. package/datatable/datatable.min.js +1 -1
  104. package/dataview/dataview.d.ts +2 -0
  105. package/deferredcontent/deferredcontent.d.ts +1 -0
  106. package/dialog/dialog.d.ts +1 -0
  107. package/divider/divider.d.ts +1 -0
  108. package/dock/dock.cjs.js +5 -3
  109. package/dock/dock.cjs.min.js +1 -1
  110. package/dock/dock.d.ts +1 -0
  111. package/dock/dock.esm.js +6 -4
  112. package/dock/dock.esm.min.js +1 -1
  113. package/dock/dock.js +5 -3
  114. package/dock/dock.min.js +1 -1
  115. package/dropdown/dropdown.cjs.js +2 -6
  116. package/dropdown/dropdown.cjs.min.js +1 -1
  117. package/dropdown/dropdown.d.ts +4 -2
  118. package/dropdown/dropdown.esm.js +2 -6
  119. package/dropdown/dropdown.esm.min.js +1 -1
  120. package/dropdown/dropdown.js +2 -6
  121. package/dropdown/dropdown.min.js +1 -1
  122. package/editor/editor.d.ts +1 -0
  123. package/fieldset/fieldset.d.ts +1 -0
  124. package/fileupload/fileupload.d.ts +2 -1
  125. package/fullcalendar/fullcalendar.d.ts +1 -0
  126. package/galleria/galleria.d.ts +1 -0
  127. package/gmap/gmap.cjs.js +27 -12
  128. package/gmap/gmap.cjs.min.js +1 -1
  129. package/gmap/gmap.d.ts +1 -0
  130. package/gmap/gmap.esm.js +27 -12
  131. package/gmap/gmap.esm.min.js +1 -1
  132. package/gmap/gmap.js +27 -12
  133. package/gmap/gmap.min.js +1 -1
  134. package/hooks/hooks.cjs.js +52 -0
  135. package/hooks/hooks.cjs.min.js +1 -1
  136. package/hooks/hooks.d.ts +7 -5
  137. package/hooks/hooks.esm.js +52 -1
  138. package/hooks/hooks.esm.min.js +1 -1
  139. package/hooks/hooks.js +52 -0
  140. package/hooks/hooks.min.js +1 -1
  141. package/image/image.d.ts +1 -0
  142. package/inplace/inplace.d.ts +7 -2
  143. package/inputmask/inputmask.cjs.js +2 -2
  144. package/inputmask/inputmask.cjs.min.js +1 -1
  145. package/inputmask/inputmask.d.ts +1 -1
  146. package/inputmask/inputmask.esm.js +2 -2
  147. package/inputmask/inputmask.esm.min.js +1 -1
  148. package/inputmask/inputmask.js +2 -2
  149. package/inputmask/inputmask.min.js +1 -1
  150. package/inputnumber/inputnumber.cjs.js +8 -5
  151. package/inputnumber/inputnumber.cjs.min.js +1 -1
  152. package/inputnumber/inputnumber.d.ts +1 -0
  153. package/inputnumber/inputnumber.esm.js +8 -5
  154. package/inputnumber/inputnumber.esm.min.js +1 -1
  155. package/inputnumber/inputnumber.js +8 -5
  156. package/inputnumber/inputnumber.min.js +1 -1
  157. package/inputswitch/inputswitch.cjs.js +7 -10
  158. package/inputswitch/inputswitch.cjs.min.js +1 -1
  159. package/inputswitch/inputswitch.d.ts +2 -1
  160. package/inputswitch/inputswitch.esm.js +7 -10
  161. package/inputswitch/inputswitch.esm.min.js +1 -1
  162. package/inputswitch/inputswitch.js +7 -10
  163. package/inputswitch/inputswitch.min.js +1 -1
  164. package/inputtext/inputtext.cjs.js +12 -2
  165. package/inputtext/inputtext.cjs.min.js +1 -1
  166. package/inputtext/inputtext.d.ts +1 -0
  167. package/inputtext/inputtext.esm.js +12 -2
  168. package/inputtext/inputtext.esm.min.js +1 -1
  169. package/inputtext/inputtext.js +12 -2
  170. package/inputtext/inputtext.min.js +1 -1
  171. package/inputtextarea/inputtextarea.d.ts +1 -0
  172. package/keyfilter/keyfilter.cjs.js +54 -1
  173. package/keyfilter/keyfilter.cjs.min.js +1 -1
  174. package/keyfilter/keyfilter.esm.js +54 -1
  175. package/keyfilter/keyfilter.esm.min.js +1 -1
  176. package/keyfilter/keyfilter.js +146 -93
  177. package/keyfilter/keyfilter.min.js +1 -1
  178. package/knob/knob.d.ts +1 -0
  179. package/listbox/listbox.d.ts +4 -2
  180. package/megamenu/megamenu.cjs.js +8 -5
  181. package/megamenu/megamenu.cjs.min.js +1 -1
  182. package/megamenu/megamenu.d.ts +1 -0
  183. package/megamenu/megamenu.esm.js +9 -6
  184. package/megamenu/megamenu.esm.min.js +1 -1
  185. package/megamenu/megamenu.js +8 -5
  186. package/megamenu/megamenu.min.js +1 -1
  187. package/mention/mention.d.ts +1 -0
  188. package/menu/menu.cjs.js +4 -2
  189. package/menu/menu.cjs.min.js +1 -1
  190. package/menu/menu.d.ts +1 -0
  191. package/menu/menu.esm.js +5 -3
  192. package/menu/menu.esm.min.js +1 -1
  193. package/menu/menu.js +4 -2
  194. package/menu/menu.min.js +1 -1
  195. package/menubar/menubar.cjs.js +6 -2
  196. package/menubar/menubar.cjs.min.js +1 -1
  197. package/menubar/menubar.d.ts +1 -0
  198. package/menubar/menubar.esm.js +7 -3
  199. package/menubar/menubar.esm.min.js +1 -1
  200. package/menubar/menubar.js +6 -2
  201. package/menubar/menubar.min.js +1 -1
  202. package/menuitem/menuitem.d.ts +0 -2
  203. package/message/message.d.ts +1 -0
  204. package/messages/messages.d.ts +1 -0
  205. package/multiselect/multiselect.cjs.js +5 -13
  206. package/multiselect/multiselect.cjs.min.js +1 -1
  207. package/multiselect/multiselect.d.ts +4 -2
  208. package/multiselect/multiselect.esm.js +5 -13
  209. package/multiselect/multiselect.esm.min.js +1 -1
  210. package/multiselect/multiselect.js +5 -13
  211. package/multiselect/multiselect.min.js +1 -1
  212. package/multistatecheckbox/multistatecheckbox.d.ts +1 -0
  213. package/orderlist/orderlist.d.ts +1 -0
  214. package/organizationchart/organizationchart.d.ts +1 -0
  215. package/overlaypanel/overlaypanel.d.ts +1 -0
  216. package/package.json +6 -5
  217. package/paginator/paginator.cjs.js +11 -5
  218. package/paginator/paginator.d.ts +1 -0
  219. package/paginator/paginator.esm.js +11 -5
  220. package/paginator/paginator.js +11 -5
  221. package/panel/panel.d.ts +1 -0
  222. package/panelmenu/panelmenu.cjs.js +12 -6
  223. package/panelmenu/panelmenu.cjs.min.js +1 -1
  224. package/panelmenu/panelmenu.d.ts +1 -0
  225. package/panelmenu/panelmenu.esm.js +13 -7
  226. package/panelmenu/panelmenu.esm.min.js +1 -1
  227. package/panelmenu/panelmenu.js +12 -6
  228. package/panelmenu/panelmenu.min.js +1 -1
  229. package/password/password.d.ts +1 -0
  230. package/picklist/picklist.d.ts +1 -0
  231. package/primereact.all.cjs.js +580 -275
  232. package/primereact.all.cjs.min.js +1 -1
  233. package/primereact.all.esm.js +580 -276
  234. package/primereact.all.esm.min.js +1 -1
  235. package/primereact.all.js +580 -275
  236. package/primereact.all.min.js +1 -1
  237. package/progressbar/progressbar.d.ts +1 -0
  238. package/progressspinner/progressspinner.d.ts +2 -1
  239. package/radiobutton/radiobutton.d.ts +2 -1
  240. package/rating/rating.d.ts +1 -0
  241. package/resources/primereact.css +197 -176
  242. package/resources/primereact.min.css +1 -1
  243. package/resources/themes/arya-blue/theme.css +61 -13
  244. package/resources/themes/arya-green/theme.css +61 -13
  245. package/resources/themes/arya-orange/theme.css +61 -13
  246. package/resources/themes/arya-purple/theme.css +61 -13
  247. package/resources/themes/bootstrap4-dark-blue/theme.css +61 -13
  248. package/resources/themes/bootstrap4-dark-purple/theme.css +61 -13
  249. package/resources/themes/bootstrap4-light-blue/theme.css +61 -13
  250. package/resources/themes/bootstrap4-light-purple/theme.css +61 -13
  251. package/resources/themes/fluent-light/theme.css +61 -13
  252. package/resources/themes/lara-dark-blue/theme.css +61 -13
  253. package/resources/themes/lara-dark-indigo/theme.css +61 -13
  254. package/resources/themes/lara-dark-purple/theme.css +61 -13
  255. package/resources/themes/lara-dark-teal/theme.css +61 -13
  256. package/resources/themes/lara-light-blue/theme.css +61 -13
  257. package/resources/themes/lara-light-indigo/theme.css +61 -13
  258. package/resources/themes/lara-light-purple/theme.css +61 -13
  259. package/resources/themes/lara-light-teal/theme.css +61 -13
  260. package/resources/themes/luna-amber/theme.css +61 -13
  261. package/resources/themes/luna-blue/theme.css +61 -13
  262. package/resources/themes/luna-green/theme.css +61 -13
  263. package/resources/themes/luna-pink/theme.css +61 -13
  264. package/resources/themes/md-dark-deeppurple/theme.css +64 -13
  265. package/resources/themes/md-dark-indigo/theme.css +64 -13
  266. package/resources/themes/md-light-deeppurple/theme.css +64 -13
  267. package/resources/themes/md-light-indigo/theme.css +64 -13
  268. package/resources/themes/mdc-dark-deeppurple/theme.css +64 -13
  269. package/resources/themes/mdc-dark-indigo/theme.css +64 -13
  270. package/resources/themes/mdc-light-deeppurple/theme.css +64 -13
  271. package/resources/themes/mdc-light-indigo/theme.css +64 -13
  272. package/resources/themes/nova/theme.css +61 -13
  273. package/resources/themes/nova-accent/theme.css +61 -13
  274. package/resources/themes/nova-alt/theme.css +61 -13
  275. package/resources/themes/rhea/theme.css +61 -13
  276. package/resources/themes/saga-blue/theme.css +61 -13
  277. package/resources/themes/saga-green/theme.css +61 -13
  278. package/resources/themes/saga-orange/theme.css +61 -13
  279. package/resources/themes/saga-purple/theme.css +61 -13
  280. package/resources/themes/tailwind-light/theme.css +60 -12
  281. package/resources/themes/vela-blue/theme.css +61 -13
  282. package/resources/themes/vela-green/theme.css +61 -13
  283. package/resources/themes/vela-orange/theme.css +61 -13
  284. package/resources/themes/vela-purple/theme.css +61 -13
  285. package/ripple/ripple.cjs.js +1 -0
  286. package/ripple/ripple.cjs.min.js +1 -1
  287. package/ripple/ripple.d.ts +3 -1
  288. package/ripple/ripple.esm.js +1 -0
  289. package/ripple/ripple.esm.min.js +1 -1
  290. package/ripple/ripple.js +1 -0
  291. package/ripple/ripple.min.js +1 -1
  292. package/row/row.d.ts +1 -0
  293. package/scrollpanel/scrollpanel.d.ts +1 -0
  294. package/scrolltop/scrolltop.d.ts +1 -0
  295. package/selectbutton/selectbutton.d.ts +4 -2
  296. package/selectitem/selectitem.d.ts +2 -0
  297. package/sidebar/sidebar.d.ts +1 -0
  298. package/skeleton/skeleton.d.ts +1 -0
  299. package/slidemenu/slidemenu.cjs.js +6 -2
  300. package/slidemenu/slidemenu.cjs.min.js +1 -1
  301. package/slidemenu/slidemenu.d.ts +1 -0
  302. package/slidemenu/slidemenu.esm.js +7 -3
  303. package/slidemenu/slidemenu.esm.min.js +1 -1
  304. package/slidemenu/slidemenu.js +6 -2
  305. package/slidemenu/slidemenu.min.js +1 -1
  306. package/slider/slider.d.ts +1 -0
  307. package/speeddial/speeddial.cjs.js +10 -5
  308. package/speeddial/speeddial.cjs.min.js +1 -1
  309. package/speeddial/speeddial.d.ts +1 -0
  310. package/speeddial/speeddial.esm.js +11 -6
  311. package/speeddial/speeddial.esm.min.js +1 -1
  312. package/speeddial/speeddial.js +10 -5
  313. package/speeddial/speeddial.min.js +1 -1
  314. package/splitbutton/splitbutton.cjs.js +5 -3
  315. package/splitbutton/splitbutton.cjs.min.js +1 -1
  316. package/splitbutton/splitbutton.d.ts +1 -0
  317. package/splitbutton/splitbutton.esm.js +6 -4
  318. package/splitbutton/splitbutton.esm.min.js +1 -1
  319. package/splitbutton/splitbutton.js +5 -3
  320. package/splitbutton/splitbutton.min.js +1 -1
  321. package/splitter/splitter.d.ts +2 -0
  322. package/steps/steps.cjs.js +8 -1
  323. package/steps/steps.cjs.min.js +1 -1
  324. package/steps/steps.d.ts +1 -0
  325. package/steps/steps.esm.js +9 -2
  326. package/steps/steps.esm.min.js +1 -1
  327. package/steps/steps.js +8 -1
  328. package/steps/steps.min.js +1 -1
  329. package/styleclass/styleclass.d.ts +1 -0
  330. package/tabmenu/tabmenu.cjs.js +4 -3
  331. package/tabmenu/tabmenu.cjs.min.js +1 -1
  332. package/tabmenu/tabmenu.d.ts +1 -0
  333. package/tabmenu/tabmenu.esm.js +5 -4
  334. package/tabmenu/tabmenu.esm.min.js +1 -1
  335. package/tabmenu/tabmenu.js +4 -3
  336. package/tabmenu/tabmenu.min.js +1 -1
  337. package/tabview/tabview.d.ts +2 -0
  338. package/tag/tag.d.ts +1 -0
  339. package/terminal/terminal.d.ts +1 -0
  340. package/tieredmenu/tieredmenu.cjs.js +6 -3
  341. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  342. package/tieredmenu/tieredmenu.d.ts +1 -0
  343. package/tieredmenu/tieredmenu.esm.js +7 -4
  344. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  345. package/tieredmenu/tieredmenu.js +6 -3
  346. package/tieredmenu/tieredmenu.min.js +1 -1
  347. package/timeline/timeline.d.ts +1 -0
  348. package/toast/toast.d.ts +1 -0
  349. package/togglebutton/togglebutton.cjs.js +3 -3
  350. package/togglebutton/togglebutton.cjs.min.js +1 -1
  351. package/togglebutton/togglebutton.d.ts +1 -1
  352. package/togglebutton/togglebutton.esm.js +3 -3
  353. package/togglebutton/togglebutton.esm.min.js +1 -1
  354. package/togglebutton/togglebutton.js +3 -3
  355. package/togglebutton/togglebutton.min.js +1 -1
  356. package/toolbar/toolbar.d.ts +1 -0
  357. package/tooltip/tooltip.d.ts +1 -0
  358. package/tree/tree.d.ts +1 -0
  359. package/treeselect/treeselect.cjs.js +0 -1
  360. package/treeselect/treeselect.cjs.min.js +1 -1
  361. package/treeselect/treeselect.d.ts +6 -6
  362. package/treeselect/treeselect.esm.js +0 -1
  363. package/treeselect/treeselect.esm.min.js +1 -1
  364. package/treeselect/treeselect.js +0 -1
  365. package/treeselect/treeselect.min.js +1 -1
  366. package/treetable/treetable.d.ts +2 -1
  367. package/tristatecheckbox/tristatecheckbox.d.ts +1 -0
  368. package/utils/utils.cjs.js +11 -8
  369. package/utils/utils.cjs.min.js +1 -1
  370. package/utils/utils.esm.js +11 -8
  371. package/utils/utils.esm.min.js +1 -1
  372. package/utils/utils.js +11 -8
  373. package/utils/utils.min.js +1 -1
  374. package/virtualscroller/virtualscroller.d.ts +1 -0
  375. package/web-types.json +7 -19
package/core/core.js CHANGED
@@ -86,11 +86,17 @@ this.primereact.utils = (function (exports, React) {
86
86
  function _typeof(obj) {
87
87
  "@babel/helpers - typeof";
88
88
 
89
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
90
- return typeof obj;
91
- } : function (obj) {
92
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
93
- }, _typeof(obj);
89
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
90
+ _typeof = function _typeof(obj) {
91
+ return typeof obj;
92
+ };
93
+ } else {
94
+ _typeof = function _typeof(obj) {
95
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
96
+ };
97
+ }
98
+
99
+ return _typeof(obj);
94
100
  }
95
101
 
96
102
  function classNames() {
@@ -149,9 +155,6 @@ this.primereact.utils = (function (exports, React) {
149
155
  function _createClass(Constructor, protoProps, staticProps) {
150
156
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
151
157
  if (staticProps) _defineProperties(Constructor, staticProps);
152
- Object.defineProperty(Constructor, "prototype", {
153
- writable: false
154
- });
155
158
  return Constructor;
156
159
  }
157
160
 
@@ -2129,9 +2132,6 @@ this.primereact.api = (function (exports, utils) {
2129
2132
  function _createClass(Constructor, protoProps, staticProps) {
2130
2133
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2131
2134
  if (staticProps) _defineProperties(Constructor, staticProps);
2132
- Object.defineProperty(Constructor, "prototype", {
2133
- writable: false
2134
- });
2135
2135
  return Constructor;
2136
2136
  }
2137
2137
 
@@ -2253,8 +2253,8 @@ this.primereact.api = (function (exports, utils) {
2253
2253
  medium: 'Medium',
2254
2254
  strong: 'Strong',
2255
2255
  passwordPrompt: 'Enter a password',
2256
- emptyFilterMessage: 'No results found',
2257
- emptyMessage: 'No available options'
2256
+ emptyFilterMessage: 'No available options',
2257
+ emptyMessage: 'No results found'
2258
2258
  }
2259
2259
  };
2260
2260
 
@@ -3175,6 +3175,57 @@ this.primereact.hooks = (function (exports, React, utils) {
3175
3175
  };
3176
3176
  /* eslint-enable */
3177
3177
 
3178
+ /**
3179
+ * Hook to wrap around useState that stores the value in the browser local/session storage.
3180
+ *
3181
+ * @param {any} initialValue the initial value to store
3182
+ * @param {string} key the key to store the value in local/session storage
3183
+ * @param {string} storage either 'local' or 'session' for what type of storage
3184
+ * @returns a stateful value, and a function to update it.
3185
+ */
3186
+
3187
+ var useStorage = function useStorage(initialValue, key) {
3188
+ var storage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'local';
3189
+ // Since the local storage API isn't available in server-rendering environments,
3190
+ // we check that typeof window !== 'undefined' to make SSR and SSG work properly.
3191
+ var storageAvailable = typeof window !== 'undefined';
3192
+
3193
+ var _React$useState = React__namespace.useState(function () {
3194
+ if (!storageAvailable) {
3195
+ return initialValue;
3196
+ }
3197
+
3198
+ try {
3199
+ var item = storage === 'local' ? window.localStorage.getItem(key) : window.sessionStorage.getItem(key);
3200
+ return item ? JSON.parse(item) : initialValue;
3201
+ } catch (error) {
3202
+ // If error also return initialValue
3203
+ return initialValue;
3204
+ }
3205
+ }),
3206
+ _React$useState2 = _slicedToArray(_React$useState, 2),
3207
+ storedValue = _React$useState2[0],
3208
+ setStoredValue = _React$useState2[1];
3209
+
3210
+ var setValue = function setValue(value) {
3211
+ try {
3212
+ // Allow value to be a function so we have same API as useState
3213
+ var valueToStore = value instanceof Function ? value(storedValue) : value;
3214
+ setStoredValue(valueToStore);
3215
+
3216
+ if (storageAvailable) {
3217
+ var serializedValue = JSON.stringify(valueToStore);
3218
+ storage === 'local' ? window.localStorage.setItem(key, serializedValue) : window.sessionStorage.setItem(key, serializedValue);
3219
+ }
3220
+ } catch (error) {
3221
+ throw new Error("PrimeReact useStorage: Failed to serialize the value at key: ".concat(key));
3222
+ }
3223
+ };
3224
+
3225
+ return [storedValue, setValue];
3226
+ };
3227
+ /* eslint-enable */
3228
+
3178
3229
  /* eslint-disable */
3179
3230
  var useTimeout = function useTimeout(fn) {
3180
3231
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
@@ -3213,6 +3264,7 @@ this.primereact.hooks = (function (exports, React, utils) {
3213
3264
  exports.useOverlayScrollListener = useOverlayScrollListener;
3214
3265
  exports.usePrevious = usePrevious;
3215
3266
  exports.useResizeListener = useResizeListener;
3267
+ exports.useStorage = useStorage;
3216
3268
  exports.useTimeout = useTimeout;
3217
3269
  exports.useUnmountEffect = useUnmountEffect;
3218
3270
  exports.useUpdateEffect = useUpdateEffect;
@@ -3314,6 +3366,7 @@ this.primereact.ripple = (function (exports, React, PrimeReact, hooks, utils) {
3314
3366
  }
3315
3367
  });
3316
3368
  return PrimeReact__default["default"].ripple ? /*#__PURE__*/React__namespace.createElement("span", {
3369
+ role: "presentation",
3317
3370
  ref: inkRef,
3318
3371
  className: "p-ink",
3319
3372
  onAnimationEnd: onAnimationEnd
@@ -3606,112 +3659,165 @@ this.primereact.portal = (function (exports, React, ReactDOM, PrimeReact, hooks,
3606
3659
 
3607
3660
  this.primereact = this.primereact || {};
3608
3661
  this.primereact.keyfilter = (function (exports, utils) {
3609
- 'use strict';
3662
+ 'use strict';
3610
3663
 
3611
- var KeyFilter = {
3612
- /* eslint-disable */
3613
- DEFAULT_MASKS: {
3614
- pint: /[\d]/,
3615
- "int": /[\d\-]/,
3616
- pnum: /[\d\.]/,
3617
- money: /[\d\.\s,]/,
3618
- num: /[\d\-\.]/,
3619
- hex: /[0-9a-f]/i,
3620
- email: /[a-z0-9_\.\-@]/i,
3621
- alpha: /[a-z_]/i,
3622
- alphanum: /[a-z0-9_]/i
3623
- },
3664
+ function _arrayLikeToArray(arr, len) {
3665
+ if (len == null || len > arr.length) len = arr.length;
3624
3666
 
3625
- /* eslint-enable */
3626
- KEYS: {
3627
- TAB: 9,
3628
- RETURN: 13,
3629
- ESC: 27,
3630
- BACKSPACE: 8,
3631
- DELETE: 46
3632
- },
3633
- SAFARI_KEYS: {
3634
- 63234: 37,
3635
- // left
3636
- 63235: 39,
3637
- // right
3638
- 63232: 38,
3639
- // up
3640
- 63233: 40,
3641
- // down
3642
- 63276: 33,
3643
- // page up
3644
- 63277: 34,
3645
- // page down
3646
- 63272: 46,
3647
- // delete
3648
- 63273: 36,
3649
- // home
3650
- 63275: 35 // end
3667
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
3668
+ arr2[i] = arr[i];
3669
+ }
3651
3670
 
3652
- },
3653
- isNavKeyPress: function isNavKeyPress(e) {
3654
- var k = e.keyCode;
3655
- k = utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
3656
- return k >= 33 && k <= 40 || k === KeyFilter.KEYS.RETURN || k === KeyFilter.KEYS.TAB || k === KeyFilter.KEYS.ESC;
3657
- },
3658
- isSpecialKey: function isSpecialKey(e) {
3659
- var k = e.keyCode;
3660
- return k === 9 || k === 13 || k === 27 || k === 16 || k === 17 || k >= 18 && k <= 20 || utils.DomHandler.getBrowser().opera && !e.shiftKey && (k === 8 || k >= 33 && k <= 35 || k >= 36 && k <= 39 || k >= 44 && k <= 45);
3661
- },
3662
- getKey: function getKey(e) {
3663
- var k = e.keyCode || e.charCode;
3664
- return utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
3665
- },
3666
- getCharCode: function getCharCode(e) {
3667
- return e.charCode || e.keyCode || e.which;
3668
- },
3669
- onKeyPress: function onKeyPress(e, keyfilter, validateOnly) {
3670
- if (validateOnly) {
3671
- return;
3672
- }
3671
+ return arr2;
3672
+ }
3673
3673
 
3674
- var regex = KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
3675
- var browser = utils.DomHandler.getBrowser();
3674
+ function _arrayWithoutHoles(arr) {
3675
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
3676
+ }
3676
3677
 
3677
- if (e.ctrlKey || e.altKey) {
3678
- return;
3679
- }
3678
+ function _iterableToArray(iter) {
3679
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3680
+ }
3680
3681
 
3681
- var k = this.getKey(e);
3682
+ function _unsupportedIterableToArray(o, minLen) {
3683
+ if (!o) return;
3684
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
3685
+ var n = Object.prototype.toString.call(o).slice(8, -1);
3686
+ if (n === "Object" && o.constructor) n = o.constructor.name;
3687
+ if (n === "Map" || n === "Set") return Array.from(o);
3688
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
3689
+ }
3682
3690
 
3683
- if (browser.mozilla && (this.isNavKeyPress(e) || k === KeyFilter.KEYS.BACKSPACE || k === KeyFilter.KEYS.DELETE && e.charCode === 0)) {
3684
- return;
3685
- }
3691
+ function _nonIterableSpread() {
3692
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3693
+ }
3686
3694
 
3687
- var c = this.getCharCode(e);
3688
- var cc = String.fromCharCode(c);
3695
+ function _toConsumableArray(arr) {
3696
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
3697
+ }
3689
3698
 
3690
- if (browser.mozilla && (this.isSpecialKey(e) || !cc)) {
3691
- return;
3692
- }
3699
+ var KeyFilter = {
3700
+ /* eslint-disable */
3701
+ DEFAULT_MASKS: {
3702
+ pint: /[\d]/,
3703
+ "int": /[\d\-]/,
3704
+ pnum: /[\d\.]/,
3705
+ money: /[\d\.\s,]/,
3706
+ num: /[\d\-\.]/,
3707
+ hex: /[0-9a-f]/i,
3708
+ email: /[a-z0-9_\.\-@]/i,
3709
+ alpha: /[a-z_]/i,
3710
+ alphanum: /[a-z0-9_]/i
3711
+ },
3693
3712
 
3694
- if (!regex.test(cc)) {
3695
- e.preventDefault();
3696
- }
3697
- },
3698
- validate: function validate(e, keyfilter) {
3699
- var value = e.target.value,
3700
- validatePattern = true;
3713
+ /* eslint-enable */
3714
+ KEYS: {
3715
+ TAB: 9,
3716
+ RETURN: 13,
3717
+ ESC: 27,
3718
+ BACKSPACE: 8,
3719
+ DELETE: 46
3720
+ },
3721
+ SAFARI_KEYS: {
3722
+ 63234: 37,
3723
+ // left
3724
+ 63235: 39,
3725
+ // right
3726
+ 63232: 38,
3727
+ // up
3728
+ 63233: 40,
3729
+ // down
3730
+ 63276: 33,
3731
+ // page up
3732
+ 63277: 34,
3733
+ // page down
3734
+ 63272: 46,
3735
+ // delete
3736
+ 63273: 36,
3737
+ // home
3738
+ 63275: 35 // end
3739
+
3740
+ },
3741
+ isNavKeyPress: function isNavKeyPress(e) {
3742
+ var k = e.keyCode;
3743
+ k = utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
3744
+ return k >= 33 && k <= 40 || k === KeyFilter.KEYS.RETURN || k === KeyFilter.KEYS.TAB || k === KeyFilter.KEYS.ESC;
3745
+ },
3746
+ isSpecialKey: function isSpecialKey(e) {
3747
+ var k = e.keyCode;
3748
+ return k === 9 || k === 13 || k === 27 || k === 16 || k === 17 || k >= 18 && k <= 20 || utils.DomHandler.getBrowser().opera && !e.shiftKey && (k === 8 || k >= 33 && k <= 35 || k >= 36 && k <= 39 || k >= 44 && k <= 45);
3749
+ },
3750
+ getKey: function getKey(e) {
3751
+ var k = e.keyCode || e.charCode;
3752
+ return utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
3753
+ },
3754
+ getCharCode: function getCharCode(e) {
3755
+ return e.charCode || e.keyCode || e.which;
3756
+ },
3757
+ getRegex: function getRegex(keyfilter) {
3758
+ return KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
3759
+ },
3760
+ onKeyPress: function onKeyPress(e, keyfilter, validateOnly) {
3761
+ if (validateOnly) {
3762
+ return;
3763
+ }
3764
+
3765
+ var regex = this.getRegex(keyfilter);
3766
+ var browser = utils.DomHandler.getBrowser();
3767
+
3768
+ if (e.ctrlKey || e.altKey) {
3769
+ return;
3770
+ }
3771
+
3772
+ var k = this.getKey(e);
3701
3773
 
3702
- if (value && !keyfilter.test(value)) {
3703
- validatePattern = false;
3774
+ if (browser.mozilla && (this.isNavKeyPress(e) || k === KeyFilter.KEYS.BACKSPACE || k === KeyFilter.KEYS.DELETE && e.charCode === 0)) {
3775
+ return;
3776
+ }
3777
+
3778
+ var c = this.getCharCode(e);
3779
+ var cc = String.fromCharCode(c);
3780
+
3781
+ if (browser.mozilla && (this.isSpecialKey(e) || !cc)) {
3782
+ return;
3783
+ }
3784
+
3785
+ if (!regex.test(cc)) {
3786
+ e.preventDefault();
3787
+ }
3788
+ },
3789
+ onPaste: function onPaste(e, keyfilter, validateOnly) {
3790
+ if (validateOnly) {
3791
+ return;
3792
+ }
3793
+
3794
+ var regex = this.getRegex(keyfilter);
3795
+ var clipboard = e.clipboardData.getData("text"); // loop over each letter pasted and if any fail prevent the paste
3796
+
3797
+ _toConsumableArray(clipboard).forEach(function (c) {
3798
+ if (!regex.test(c)) {
3799
+ e.preventDefault();
3800
+ return false;
3704
3801
  }
3802
+ });
3803
+ },
3804
+ validate: function validate(e, keyfilter) {
3805
+ var value = e.target.value,
3806
+ validatePattern = true;
3705
3807
 
3706
- return validatePattern;
3808
+ if (value && !keyfilter.test(value)) {
3809
+ validatePattern = false;
3707
3810
  }
3708
- };
3709
3811
 
3710
- exports.KeyFilter = KeyFilter;
3812
+ return validatePattern;
3813
+ }
3814
+ };
3711
3815
 
3712
- Object.defineProperty(exports, '__esModule', { value: true });
3816
+ exports.KeyFilter = KeyFilter;
3713
3817
 
3714
- return exports;
3818
+ Object.defineProperty(exports, '__esModule', { value: true });
3819
+
3820
+ return exports;
3715
3821
 
3716
3822
  })({}, primereact.utils);
3717
3823
 
@@ -5456,13 +5562,6 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
5456
5562
  setFocusedState(false);
5457
5563
  };
5458
5564
 
5459
- var onKeyDown = function onKeyDown(event) {
5460
- if (event.key === 'Enter') {
5461
- onClick(event);
5462
- event.preventDefault();
5463
- }
5464
- };
5465
-
5466
5565
  var isChecked = function isChecked() {
5467
5566
  return props.checked === props.trueValue;
5468
5567
  };
@@ -5510,17 +5609,15 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
5510
5609
  name: props.name,
5511
5610
  tabIndex: props.tabIndex,
5512
5611
  defaultChecked: checked,
5513
- "aria-labelledby": props.ariaLabelledBy,
5514
- onKeyDown: onKeyDown,
5612
+ "aria-labelledby": props['aria-labelledby'],
5613
+ "aria-label": props['aria-label'],
5515
5614
  onFocus: onFocus,
5516
5615
  onBlur: onBlur,
5517
5616
  disabled: props.disabled,
5518
5617
  readOnly: props.readOnly,
5519
5618
  required: props.required
5520
5619
  })), /*#__PURE__*/React__namespace.createElement("div", {
5521
- className: boxClass,
5522
- role: "checkbox",
5523
- "aria-checked": checked
5620
+ className: boxClass
5524
5621
  }, icon)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
5525
5622
  target: elementRef,
5526
5623
  content: props.tooltip
@@ -5546,7 +5643,8 @@ this.primereact.checkbox = (function (exports, React, hooks, tooltip, utils) {
5546
5643
  icon: 'pi pi-check',
5547
5644
  tooltip: null,
5548
5645
  tooltipOptions: null,
5549
- ariaLabelledBy: null,
5646
+ 'aria-label': null,
5647
+ 'aria-labelledby': null,
5550
5648
  onChange: null,
5551
5649
  onMouseDown: null,
5552
5650
  onContextMenu: null
@@ -5674,8 +5772,10 @@ this.primereact.button = (function (exports, React, ripple, tooltip, utils) {
5674
5772
  var icon = createIcon();
5675
5773
  var label = createLabel();
5676
5774
  var badge = createBadge();
5775
+ var defaultAriaLabel = props.label ? props.label + (props.badge ? ' ' + props.badge : '') : '';
5677
5776
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("button", _extends({
5678
- ref: elementRef
5777
+ ref: elementRef,
5778
+ "aria-label": defaultAriaLabel
5679
5779
  }, otherProps, {
5680
5780
  className: className,
5681
5781
  disabled: disabled
@@ -5775,6 +5875,14 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
5775
5875
  }
5776
5876
  };
5777
5877
 
5878
+ var onPaste = function onPaste(event) {
5879
+ props.onPaste && props.onPaste(event);
5880
+
5881
+ if (props.keyfilter) {
5882
+ keyfilter.KeyFilter.onPaste(event, props.keyfilter, props.validateOnly);
5883
+ }
5884
+ };
5885
+
5778
5886
  var isFilled = React__namespace.useMemo(function () {
5779
5887
  return utils.ObjectUtils.isNotEmpty(props.value) || utils.ObjectUtils.isNotEmpty(props.defaultValue) || elementRef.current && utils.ObjectUtils.isNotEmpty(elementRef.current.value);
5780
5888
  }, [props.value, props.defaultValue]);
@@ -5792,7 +5900,8 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
5792
5900
  }, otherProps, {
5793
5901
  className: className,
5794
5902
  onInput: onInput,
5795
- onKeyPress: onKeyPress
5903
+ onKeyPress: onKeyPress,
5904
+ onPaste: onPaste
5796
5905
  })), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
5797
5906
  target: elementRef,
5798
5907
  content: props.tooltip
@@ -5806,7 +5915,8 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
5806
5915
  tooltip: null,
5807
5916
  tooltipOptions: null,
5808
5917
  onInput: null,
5809
- onKeyPress: null
5918
+ onKeyPress: null,
5919
+ onPaste: null
5810
5920
  };
5811
5921
 
5812
5922
  exports.InputText = InputText;
@@ -6831,12 +6941,15 @@ this.primereact.inputnumber = (function (exports, React, hooks, inputtext, rippl
6831
6941
 
6832
6942
  var onInputBlur = function onInputBlur(event) {
6833
6943
  setFocusedState(false);
6834
- var currentValue = inputRef.current.value;
6835
6944
 
6836
- if (isValueChanged(currentValue, props.value)) {
6837
- var newValue = validateValue(parseValue(currentValue));
6838
- updateInputValue(newValue);
6839
- updateModel(event, newValue);
6945
+ if (inputRef.current) {
6946
+ var currentValue = inputRef.current.value;
6947
+
6948
+ if (isValueChanged(currentValue, props.value)) {
6949
+ var newValue = validateValue(parseValue(currentValue));
6950
+ updateInputValue(newValue);
6951
+ updateModel(event, newValue);
6952
+ }
6840
6953
  }
6841
6954
 
6842
6955
  props.onBlur && props.onBlur(event);
@@ -7509,10 +7622,6 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
7509
7622
  return _extends.apply(this, arguments);
7510
7623
  }
7511
7624
 
7512
- function _readOnlyError(name) {
7513
- throw new TypeError("\"" + name + "\" is read-only");
7514
- }
7515
-
7516
7625
  function _defineProperty(obj, key, value) {
7517
7626
  if (key in obj) {
7518
7627
  Object.defineProperty(obj, key, {
@@ -7603,7 +7712,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
7603
7712
  'p-highlight': props.selected,
7604
7713
  'p-disabled': props.disabled,
7605
7714
  'p-dropdown-item-empty': !props.label || props.label.length === 0
7606
- }, props.option.className);
7715
+ }, props.option && props.option.className);
7607
7716
  var content = props.template ? utils.ObjectUtils.getJSXElement(props.template, props.option) : props.label;
7608
7717
  return /*#__PURE__*/React__namespace.createElement("li", {
7609
7718
  className: className,
@@ -8117,7 +8226,7 @@ this.primereact.dropdown = (function (exports, React, PrimeReact, hooks, overlay
8117
8226
 
8118
8227
  if (searchValue.current) {
8119
8228
  var searchIndex = getSelectedOptionIndex();
8120
- var newOption = props.optionGroupLabel ? searchOptionInGroup(searchIndex) : searchOption((_readOnlyError("searchIndex")));
8229
+ var newOption = props.optionGroupLabel ? searchOptionInGroup(searchIndex) : searchOption(searchIndex + 1);
8121
8230
 
8122
8231
  if (newOption) {
8123
8232
  selectItem({
@@ -9555,11 +9664,17 @@ this.primereact.paginator = (function (exports, React, hooks, utils, ripple, inp
9555
9664
  function _typeof(obj) {
9556
9665
  "@babel/helpers - typeof";
9557
9666
 
9558
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
9559
- return typeof obj;
9560
- } : function (obj) {
9561
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9562
- }, _typeof(obj);
9667
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
9668
+ _typeof = function _typeof(obj) {
9669
+ return typeof obj;
9670
+ };
9671
+ } else {
9672
+ _typeof = function _typeof(obj) {
9673
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9674
+ };
9675
+ }
9676
+
9677
+ return _typeof(obj);
9563
9678
  }
9564
9679
 
9565
9680
  function _defineProperty(obj, key, value) {