primereact 7.0.0-rc.1 → 7.1.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 (811) hide show
  1. package/README.md +35 -10
  2. package/accordion/accordion.cjs.js +40 -27
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.d.ts +7 -3
  5. package/accordion/accordion.esm.js +27 -14
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +40 -28
  8. package/accordion/accordion.min.js +1 -1
  9. package/api/api.cjs.js +82 -46
  10. package/api/api.cjs.min.js +1 -1
  11. package/api/api.d.ts +95 -61
  12. package/api/api.esm.js +69 -33
  13. package/api/api.esm.min.js +1 -1
  14. package/api/api.js +83 -47
  15. package/api/api.min.js +1 -1
  16. package/autocomplete/autocomplete.cjs.js +79 -71
  17. package/autocomplete/autocomplete.cjs.min.js +1 -1
  18. package/autocomplete/autocomplete.d.ts +11 -4
  19. package/autocomplete/autocomplete.esm.js +16 -8
  20. package/autocomplete/autocomplete.esm.min.js +1 -1
  21. package/autocomplete/autocomplete.js +75 -72
  22. package/autocomplete/autocomplete.min.js +1 -1
  23. package/avatar/avatar.cjs.js +10 -9
  24. package/avatar/avatar.cjs.min.js +1 -1
  25. package/avatar/avatar.d.ts +2 -1
  26. package/avatar/avatar.esm.js +5 -4
  27. package/avatar/avatar.esm.min.js +1 -1
  28. package/avatar/avatar.js +11 -10
  29. package/avatar/avatar.min.js +1 -1
  30. package/avatargroup/avatargroup.cjs.js +3 -3
  31. package/avatargroup/avatargroup.cjs.min.js +1 -1
  32. package/avatargroup/avatargroup.esm.js +1 -1
  33. package/avatargroup/avatargroup.esm.min.js +1 -1
  34. package/avatargroup/avatargroup.js +4 -4
  35. package/avatargroup/avatargroup.min.js +1 -1
  36. package/badge/badge.cjs.js +3 -3
  37. package/badge/badge.cjs.min.js +1 -1
  38. package/badge/badge.esm.js +1 -1
  39. package/badge/badge.esm.min.js +1 -1
  40. package/badge/badge.js +4 -4
  41. package/badge/badge.min.js +1 -1
  42. package/blockui/blockui.cjs.js +27 -16
  43. package/blockui/blockui.cjs.min.js +1 -1
  44. package/blockui/blockui.esm.js +17 -7
  45. package/blockui/blockui.esm.min.js +1 -1
  46. package/blockui/blockui.js +26 -17
  47. package/blockui/blockui.min.js +1 -1
  48. package/breadcrumb/breadcrumb.cjs.js +16 -16
  49. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  50. package/breadcrumb/breadcrumb.esm.js +1 -1
  51. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  52. package/breadcrumb/breadcrumb.js +17 -17
  53. package/breadcrumb/breadcrumb.min.js +1 -1
  54. package/button/button.cjs.js +42 -53
  55. package/button/button.cjs.min.js +1 -1
  56. package/button/button.d.ts +4 -11
  57. package/button/button.esm.js +31 -42
  58. package/button/button.esm.min.js +1 -1
  59. package/button/button.js +41 -54
  60. package/button/button.min.js +1 -1
  61. package/calendar/calendar.cjs.js +193 -154
  62. package/calendar/calendar.cjs.min.js +1 -1
  63. package/calendar/calendar.d.ts +7 -2
  64. package/calendar/calendar.esm.js +68 -29
  65. package/calendar/calendar.esm.min.js +1 -1
  66. package/calendar/calendar.js +189 -155
  67. package/calendar/calendar.min.css +1 -1
  68. package/calendar/calendar.min.js +1 -1
  69. package/captcha/captcha.cjs.js +1 -1
  70. package/captcha/captcha.cjs.min.js +1 -1
  71. package/captcha/captcha.esm.min.js +1 -1
  72. package/captcha/captcha.js +2 -2
  73. package/captcha/captcha.min.js +1 -1
  74. package/card/card.cjs.js +13 -13
  75. package/card/card.cjs.min.js +1 -1
  76. package/card/card.esm.js +1 -1
  77. package/card/card.esm.min.js +1 -1
  78. package/card/card.js +14 -14
  79. package/card/card.min.js +1 -1
  80. package/carousel/carousel.cjs.js +45 -45
  81. package/carousel/carousel.cjs.min.js +1 -1
  82. package/carousel/carousel.esm.js +10 -10
  83. package/carousel/carousel.esm.min.js +1 -1
  84. package/carousel/carousel.js +45 -46
  85. package/carousel/carousel.min.js +1 -1
  86. package/cascadeselect/cascadeselect.cjs.js +51 -47
  87. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  88. package/cascadeselect/cascadeselect.d.ts +2 -1
  89. package/cascadeselect/cascadeselect.esm.js +7 -3
  90. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  91. package/cascadeselect/cascadeselect.js +48 -48
  92. package/cascadeselect/cascadeselect.min.js +1 -1
  93. package/chart/chart.cjs.js +6 -8
  94. package/chart/chart.cjs.min.js +1 -1
  95. package/chart/chart.esm.js +1 -1
  96. package/chart/chart.esm.min.js +1 -1
  97. package/chart/chart.js +5 -5
  98. package/chart/chart.min.js +1 -1
  99. package/checkbox/checkbox.cjs.js +20 -15
  100. package/checkbox/checkbox.cjs.min.js +1 -1
  101. package/checkbox/checkbox.d.ts +2 -1
  102. package/checkbox/checkbox.esm.js +13 -8
  103. package/checkbox/checkbox.esm.min.js +1 -1
  104. package/checkbox/checkbox.js +20 -16
  105. package/checkbox/checkbox.min.js +1 -1
  106. package/chip/chip.cjs.js +16 -14
  107. package/chip/chip.cjs.min.js +1 -1
  108. package/chip/chip.d.ts +3 -4
  109. package/chip/chip.esm.js +11 -9
  110. package/chip/chip.esm.min.js +1 -1
  111. package/chip/chip.js +17 -15
  112. package/chip/chip.min.js +1 -1
  113. package/chips/chips.cjs.js +46 -20
  114. package/chips/chips.cjs.min.js +1 -1
  115. package/chips/chips.d.ts +10 -0
  116. package/chips/chips.esm.js +37 -11
  117. package/chips/chips.esm.min.js +1 -1
  118. package/chips/chips.js +46 -21
  119. package/chips/chips.min.js +1 -1
  120. package/colorpicker/colorpicker.cjs.js +35 -31
  121. package/colorpicker/colorpicker.cjs.min.js +1 -1
  122. package/colorpicker/colorpicker.d.ts +20 -6
  123. package/colorpicker/colorpicker.esm.js +7 -3
  124. package/colorpicker/colorpicker.esm.min.js +1 -1
  125. package/colorpicker/colorpicker.js +32 -32
  126. package/colorpicker/colorpicker.min.js +1 -1
  127. package/column/column.cjs.min.js +1 -1
  128. package/column/column.d.ts +24 -2
  129. package/column/column.esm.min.js +1 -1
  130. package/column/column.js +1 -1
  131. package/column/column.min.js +1 -1
  132. package/columngroup/columngroup.cjs.min.js +1 -1
  133. package/columngroup/columngroup.esm.min.js +1 -1
  134. package/columngroup/columngroup.js +1 -1
  135. package/columngroup/columngroup.min.js +1 -1
  136. package/confirmdialog/confirmdialog.cjs.js +22 -20
  137. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  138. package/confirmdialog/confirmdialog.d.ts +4 -3
  139. package/confirmdialog/confirmdialog.esm.js +6 -4
  140. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  141. package/confirmdialog/confirmdialog.js +22 -21
  142. package/confirmdialog/confirmdialog.min.js +1 -1
  143. package/confirmpopup/confirmpopup.cjs.js +46 -41
  144. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  145. package/confirmpopup/confirmpopup.d.ts +6 -4
  146. package/confirmpopup/confirmpopup.esm.js +12 -8
  147. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  148. package/confirmpopup/confirmpopup.js +43 -41
  149. package/confirmpopup/confirmpopup.min.js +1 -1
  150. package/contextmenu/contextmenu.cjs.js +68 -63
  151. package/contextmenu/contextmenu.cjs.min.js +1 -1
  152. package/contextmenu/contextmenu.d.ts +2 -1
  153. package/contextmenu/contextmenu.esm.js +35 -31
  154. package/contextmenu/contextmenu.esm.min.js +1 -1
  155. package/contextmenu/contextmenu.js +65 -64
  156. package/contextmenu/contextmenu.min.js +1 -1
  157. package/core/core.js +11228 -846
  158. package/core/core.min.js +40 -1
  159. package/csstransition/csstransition.cjs.js +49 -19
  160. package/csstransition/csstransition.cjs.min.js +1 -1
  161. package/csstransition/csstransition.d.ts +8 -0
  162. package/csstransition/csstransition.esm.js +48 -19
  163. package/csstransition/csstransition.esm.min.js +1 -1
  164. package/csstransition/csstransition.js +49 -21
  165. package/csstransition/csstransition.min.js +1 -1
  166. package/csstransition/package.json +2 -1
  167. package/datascroller/datascroller.cjs.js +12 -11
  168. package/datascroller/datascroller.cjs.min.js +1 -1
  169. package/datascroller/datascroller.esm.js +4 -3
  170. package/datascroller/datascroller.esm.min.js +1 -1
  171. package/datascroller/datascroller.js +12 -12
  172. package/datascroller/datascroller.min.js +1 -1
  173. package/datatable/datatable.cjs.js +600 -519
  174. package/datatable/datatable.cjs.min.js +1 -1
  175. package/datatable/datatable.d.ts +30 -14
  176. package/datatable/datatable.esm.js +321 -240
  177. package/datatable/datatable.esm.min.js +1 -1
  178. package/datatable/datatable.js +597 -520
  179. package/datatable/datatable.min.js +1 -1
  180. package/dataview/dataview.cjs.js +32 -29
  181. package/dataview/dataview.cjs.min.js +1 -1
  182. package/dataview/dataview.esm.js +6 -3
  183. package/dataview/dataview.esm.min.js +1 -1
  184. package/dataview/dataview.js +31 -30
  185. package/dataview/dataview.min.js +1 -1
  186. package/deferredcontent/deferredcontent.cjs.js +1 -1
  187. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  188. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  189. package/deferredcontent/deferredcontent.js +2 -2
  190. package/deferredcontent/deferredcontent.min.js +1 -1
  191. package/dialog/dialog.cjs.js +60 -59
  192. package/dialog/dialog.cjs.min.js +1 -1
  193. package/dialog/dialog.d.ts +3 -1
  194. package/dialog/dialog.esm.js +13 -13
  195. package/dialog/dialog.esm.min.js +1 -1
  196. package/dialog/dialog.js +57 -60
  197. package/dialog/dialog.min.js +1 -1
  198. package/divider/divider.cjs.js +4 -4
  199. package/divider/divider.cjs.min.js +1 -1
  200. package/divider/divider.esm.js +1 -1
  201. package/divider/divider.esm.min.js +1 -1
  202. package/divider/divider.js +5 -5
  203. package/divider/divider.min.js +1 -1
  204. package/dock/dock.cjs.js +51 -17
  205. package/dock/dock.cjs.min.js +1 -1
  206. package/dock/dock.d.ts +13 -0
  207. package/dock/dock.esm.js +39 -5
  208. package/dock/dock.esm.min.js +1 -1
  209. package/dock/dock.js +51 -18
  210. package/dock/dock.min.css +1 -1
  211. package/dock/dock.min.js +1 -1
  212. package/dropdown/dropdown.cjs.js +99 -77
  213. package/dropdown/dropdown.cjs.min.js +1 -1
  214. package/dropdown/dropdown.d.ts +2 -1
  215. package/dropdown/dropdown.esm.js +37 -15
  216. package/dropdown/dropdown.esm.min.js +1 -1
  217. package/dropdown/dropdown.js +95 -78
  218. package/dropdown/dropdown.min.js +1 -1
  219. package/editor/editor.cjs.js +44 -42
  220. package/editor/editor.cjs.min.js +1 -1
  221. package/editor/editor.d.ts +1 -0
  222. package/editor/editor.esm.js +8 -4
  223. package/editor/editor.esm.min.js +1 -1
  224. package/editor/editor.js +43 -39
  225. package/editor/editor.min.js +1 -1
  226. package/fieldset/fieldset.cjs.js +17 -15
  227. package/fieldset/fieldset.cjs.min.js +1 -1
  228. package/fieldset/fieldset.d.ts +2 -1
  229. package/fieldset/fieldset.esm.js +3 -1
  230. package/fieldset/fieldset.esm.min.js +1 -1
  231. package/fieldset/fieldset.js +16 -16
  232. package/fieldset/fieldset.min.js +1 -1
  233. package/fileupload/fileupload.cjs.js +63 -56
  234. package/fileupload/fileupload.cjs.min.js +1 -1
  235. package/fileupload/fileupload.d.ts +2 -1
  236. package/fileupload/fileupload.esm.js +24 -17
  237. package/fileupload/fileupload.esm.min.js +1 -1
  238. package/fileupload/fileupload.js +63 -57
  239. package/fileupload/fileupload.min.js +1 -1
  240. package/fullcalendar/fullcalendar.cjs.js +6 -8
  241. package/fullcalendar/fullcalendar.cjs.min.js +1 -1
  242. package/fullcalendar/fullcalendar.esm.js +1 -1
  243. package/fullcalendar/fullcalendar.esm.min.js +1 -1
  244. package/fullcalendar/fullcalendar.js +5 -5
  245. package/fullcalendar/fullcalendar.min.js +1 -1
  246. package/galleria/galleria.cjs.js +71 -67
  247. package/galleria/galleria.cjs.min.js +1 -1
  248. package/galleria/galleria.d.ts +2 -1
  249. package/galleria/galleria.esm.js +7 -4
  250. package/galleria/galleria.esm.min.js +1 -1
  251. package/galleria/galleria.js +68 -68
  252. package/galleria/galleria.min.js +1 -1
  253. package/gmap/gmap.cjs.js +1 -1
  254. package/gmap/gmap.cjs.min.js +1 -1
  255. package/gmap/gmap.esm.min.js +1 -1
  256. package/gmap/gmap.js +2 -2
  257. package/gmap/gmap.min.js +1 -1
  258. package/image/image.cjs.js +31 -27
  259. package/image/image.cjs.min.js +1 -1
  260. package/image/image.d.ts +5 -5
  261. package/image/image.esm.js +5 -2
  262. package/image/image.esm.min.js +1 -1
  263. package/image/image.js +29 -28
  264. package/image/image.min.js +1 -1
  265. package/inplace/inplace.cjs.js +8 -8
  266. package/inplace/inplace.cjs.min.js +1 -1
  267. package/inplace/inplace.esm.js +1 -1
  268. package/inplace/inplace.esm.min.js +1 -1
  269. package/inplace/inplace.js +9 -9
  270. package/inplace/inplace.min.js +1 -1
  271. package/inputmask/inputmask.cjs.js +11 -10
  272. package/inputmask/inputmask.cjs.min.js +1 -1
  273. package/inputmask/inputmask.d.ts +1 -1
  274. package/inputmask/inputmask.esm.js +4 -3
  275. package/inputmask/inputmask.esm.min.js +1 -1
  276. package/inputmask/inputmask.js +11 -11
  277. package/inputmask/inputmask.min.js +1 -1
  278. package/inputnumber/inputnumber.cjs.js +58 -34
  279. package/inputnumber/inputnumber.cjs.min.js +1 -1
  280. package/inputnumber/inputnumber.d.ts +4 -4
  281. package/inputnumber/inputnumber.esm.js +41 -17
  282. package/inputnumber/inputnumber.esm.min.js +1 -1
  283. package/inputnumber/inputnumber.js +57 -35
  284. package/inputnumber/inputnumber.min.js +1 -1
  285. package/inputswitch/inputswitch.cjs.js +15 -12
  286. package/inputswitch/inputswitch.cjs.min.js +1 -1
  287. package/inputswitch/inputswitch.esm.js +8 -5
  288. package/inputswitch/inputswitch.esm.min.js +1 -1
  289. package/inputswitch/inputswitch.js +15 -13
  290. package/inputswitch/inputswitch.min.js +1 -1
  291. package/inputtext/inputtext.cjs.js +12 -10
  292. package/inputtext/inputtext.cjs.min.js +1 -1
  293. package/inputtext/inputtext.d.ts +1 -1
  294. package/inputtext/inputtext.esm.js +3 -1
  295. package/inputtext/inputtext.esm.min.js +1 -1
  296. package/inputtext/inputtext.js +11 -11
  297. package/inputtext/inputtext.min.css +1 -1
  298. package/inputtext/inputtext.min.js +1 -1
  299. package/inputtextarea/inputtextarea.cjs.js +10 -9
  300. package/inputtextarea/inputtextarea.cjs.min.js +1 -1
  301. package/inputtextarea/inputtextarea.d.ts +1 -1
  302. package/inputtextarea/inputtextarea.esm.js +2 -1
  303. package/inputtextarea/inputtextarea.esm.min.js +1 -1
  304. package/inputtextarea/inputtextarea.js +10 -10
  305. package/inputtextarea/inputtextarea.min.js +1 -1
  306. package/keyfilter/keyfilter.cjs.js +5 -5
  307. package/keyfilter/keyfilter.cjs.min.js +1 -1
  308. package/keyfilter/keyfilter.esm.js +1 -1
  309. package/keyfilter/keyfilter.esm.min.js +1 -1
  310. package/keyfilter/keyfilter.js +6 -6
  311. package/keyfilter/keyfilter.min.js +1 -1
  312. package/knob/knob.cjs.js +7 -7
  313. package/knob/knob.cjs.min.js +1 -1
  314. package/knob/knob.esm.js +1 -1
  315. package/knob/knob.esm.min.js +1 -1
  316. package/knob/knob.js +8 -8
  317. package/knob/knob.min.js +1 -1
  318. package/listbox/listbox.cjs.js +38 -36
  319. package/listbox/listbox.cjs.min.js +1 -1
  320. package/listbox/listbox.esm.js +3 -1
  321. package/listbox/listbox.esm.min.js +1 -1
  322. package/listbox/listbox.js +37 -37
  323. package/listbox/listbox.min.js +1 -1
  324. package/megamenu/megamenu.cjs.js +36 -35
  325. package/megamenu/megamenu.cjs.min.js +1 -1
  326. package/megamenu/megamenu.esm.js +2 -1
  327. package/megamenu/megamenu.esm.min.js +1 -1
  328. package/megamenu/megamenu.js +36 -36
  329. package/megamenu/megamenu.min.js +1 -1
  330. package/mention/mention.cjs.js +53 -46
  331. package/mention/mention.cjs.min.js +1 -1
  332. package/mention/mention.d.ts +2 -1
  333. package/mention/mention.esm.js +9 -3
  334. package/mention/mention.esm.min.js +1 -1
  335. package/mention/mention.js +48 -47
  336. package/mention/mention.min.js +1 -1
  337. package/menu/menu.cjs.js +33 -28
  338. package/menu/menu.cjs.min.js +1 -1
  339. package/menu/menu.d.ts +4 -1
  340. package/menu/menu.esm.js +7 -3
  341. package/menu/menu.esm.min.js +1 -1
  342. package/menu/menu.js +30 -29
  343. package/menu/menu.min.js +1 -1
  344. package/menubar/menubar.cjs.js +38 -35
  345. package/menubar/menubar.cjs.min.js +1 -1
  346. package/menubar/menubar.esm.js +4 -2
  347. package/menubar/menubar.esm.min.js +1 -1
  348. package/menubar/menubar.js +37 -36
  349. package/menubar/menubar.min.css +1 -1
  350. package/menubar/menubar.min.js +1 -1
  351. package/message/message.cjs.js +9 -8
  352. package/message/message.cjs.min.js +1 -1
  353. package/message/message.d.ts +3 -1
  354. package/message/message.esm.js +3 -2
  355. package/message/message.esm.min.js +1 -1
  356. package/message/message.js +10 -9
  357. package/message/message.min.js +1 -1
  358. package/messages/messages.cjs.js +19 -17
  359. package/messages/messages.cjs.min.js +1 -1
  360. package/messages/messages.d.ts +2 -1
  361. package/messages/messages.esm.js +3 -1
  362. package/messages/messages.esm.min.js +1 -1
  363. package/messages/messages.js +18 -18
  364. package/messages/messages.min.js +1 -1
  365. package/multiselect/multiselect.cjs.js +128 -116
  366. package/multiselect/multiselect.cjs.min.js +1 -1
  367. package/multiselect/multiselect.d.ts +5 -2
  368. package/multiselect/multiselect.esm.js +44 -32
  369. package/multiselect/multiselect.esm.min.js +1 -1
  370. package/multiselect/multiselect.js +124 -117
  371. package/multiselect/multiselect.min.js +1 -1
  372. package/multistatecheckbox/multistatecheckbox.cjs.js +14 -13
  373. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  374. package/multistatecheckbox/multistatecheckbox.d.ts +2 -1
  375. package/multistatecheckbox/multistatecheckbox.esm.js +2 -1
  376. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  377. package/multistatecheckbox/multistatecheckbox.js +14 -14
  378. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  379. package/orderlist/orderlist.cjs.js +35 -34
  380. package/orderlist/orderlist.cjs.min.js +1 -1
  381. package/orderlist/orderlist.esm.js +2 -1
  382. package/orderlist/orderlist.esm.min.js +1 -1
  383. package/orderlist/orderlist.js +35 -35
  384. package/orderlist/orderlist.min.js +1 -1
  385. package/organizationchart/organizationchart.cjs.js +26 -26
  386. package/organizationchart/organizationchart.cjs.min.js +1 -1
  387. package/organizationchart/organizationchart.esm.js +1 -1
  388. package/organizationchart/organizationchart.esm.min.js +1 -1
  389. package/organizationchart/organizationchart.js +27 -27
  390. package/organizationchart/organizationchart.min.css +1 -1
  391. package/organizationchart/organizationchart.min.js +1 -1
  392. package/overlaypanel/overlaypanel.cjs.js +33 -30
  393. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  394. package/overlaypanel/overlaypanel.d.ts +3 -2
  395. package/overlaypanel/overlaypanel.esm.js +11 -9
  396. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  397. package/overlaypanel/overlaypanel.js +29 -31
  398. package/overlaypanel/overlaypanel.min.js +1 -1
  399. package/overlayservice/overlayservice.cjs.js +2 -2
  400. package/overlayservice/overlayservice.cjs.min.js +1 -1
  401. package/overlayservice/overlayservice.esm.js +1 -1
  402. package/overlayservice/overlayservice.esm.min.js +1 -1
  403. package/overlayservice/overlayservice.js +3 -3
  404. package/overlayservice/overlayservice.min.js +1 -1
  405. package/package.json +11 -4
  406. package/paginator/paginator.cjs.js +48 -47
  407. package/paginator/paginator.cjs.min.js +1 -1
  408. package/paginator/paginator.esm.js +2 -1
  409. package/paginator/paginator.esm.min.js +1 -1
  410. package/paginator/paginator.js +48 -48
  411. package/paginator/paginator.min.js +1 -1
  412. package/panel/panel.cjs.js +21 -18
  413. package/panel/panel.cjs.min.js +1 -1
  414. package/panel/panel.d.ts +5 -3
  415. package/panel/panel.esm.js +6 -3
  416. package/panel/panel.esm.min.js +1 -1
  417. package/panel/panel.js +20 -19
  418. package/panel/panel.min.js +1 -1
  419. package/panelmenu/panelmenu.cjs.js +40 -39
  420. package/panelmenu/panelmenu.cjs.min.js +1 -1
  421. package/panelmenu/panelmenu.d.ts +2 -1
  422. package/panelmenu/panelmenu.esm.js +2 -1
  423. package/panelmenu/panelmenu.esm.min.js +1 -1
  424. package/panelmenu/panelmenu.js +40 -40
  425. package/panelmenu/panelmenu.min.js +1 -1
  426. package/password/password.cjs.js +33 -29
  427. package/password/password.cjs.min.js +1 -1
  428. package/password/password.d.ts +3 -2
  429. package/password/password.esm.js +7 -3
  430. package/password/password.esm.min.js +1 -1
  431. package/password/password.js +30 -30
  432. package/password/password.min.js +1 -1
  433. package/picklist/picklist.cjs.js +58 -54
  434. package/picklist/picklist.cjs.min.js +1 -1
  435. package/picklist/picklist.esm.js +14 -10
  436. package/picklist/picklist.esm.min.js +1 -1
  437. package/picklist/picklist.js +58 -55
  438. package/picklist/picklist.min.js +1 -1
  439. package/portal/portal.cjs.js +4 -8
  440. package/portal/portal.cjs.min.js +1 -1
  441. package/portal/portal.esm.js +2 -6
  442. package/portal/portal.esm.min.js +1 -1
  443. package/portal/portal.js +5 -10
  444. package/portal/portal.min.js +1 -1
  445. package/primereact.all.cjs.js +3168 -2524
  446. package/primereact.all.cjs.min.js +1 -1
  447. package/primereact.all.esm.js +1939 -1294
  448. package/primereact.all.esm.min.js +1 -1
  449. package/primereact.all.js +3167 -2521
  450. package/primereact.all.min.js +1 -1
  451. package/progressbar/progressbar.cjs.js +9 -9
  452. package/progressbar/progressbar.cjs.min.js +1 -1
  453. package/progressbar/progressbar.esm.js +1 -1
  454. package/progressbar/progressbar.esm.min.js +1 -1
  455. package/progressbar/progressbar.js +10 -10
  456. package/progressbar/progressbar.min.js +1 -1
  457. package/progressspinner/progressspinner.cjs.js +5 -5
  458. package/progressspinner/progressspinner.cjs.min.js +1 -1
  459. package/progressspinner/progressspinner.esm.js +1 -1
  460. package/progressspinner/progressspinner.esm.min.js +1 -1
  461. package/progressspinner/progressspinner.js +6 -6
  462. package/progressspinner/progressspinner.min.js +1 -1
  463. package/radiobutton/radiobutton.cjs.js +10 -9
  464. package/radiobutton/radiobutton.cjs.min.js +1 -1
  465. package/radiobutton/radiobutton.esm.js +2 -1
  466. package/radiobutton/radiobutton.esm.min.js +1 -1
  467. package/radiobutton/radiobutton.js +10 -10
  468. package/radiobutton/radiobutton.min.js +1 -1
  469. package/rating/rating.cjs.js +10 -9
  470. package/rating/rating.cjs.min.js +1 -1
  471. package/rating/rating.esm.js +4 -3
  472. package/rating/rating.esm.min.js +1 -1
  473. package/rating/rating.js +10 -10
  474. package/rating/rating.min.js +1 -1
  475. package/resources/primereact.css +484 -431
  476. package/resources/primereact.min.css +1 -1
  477. package/resources/themes/arya-blue/theme.css +38 -18
  478. package/resources/themes/arya-green/theme.css +38 -18
  479. package/resources/themes/arya-orange/theme.css +38 -18
  480. package/resources/themes/arya-purple/theme.css +38 -18
  481. package/resources/themes/bootstrap4-dark-blue/theme.css +42 -22
  482. package/resources/themes/bootstrap4-dark-purple/theme.css +42 -22
  483. package/resources/themes/bootstrap4-light-blue/theme.css +42 -22
  484. package/resources/themes/bootstrap4-light-purple/theme.css +42 -22
  485. package/resources/themes/fluent-light/theme.css +38 -18
  486. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  487. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  488. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  489. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  490. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  491. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  492. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  493. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  494. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  495. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  496. package/resources/themes/lara-dark-blue/theme.css +5675 -0
  497. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  498. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  499. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  500. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  501. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  502. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  503. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  504. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  505. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  506. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  507. package/resources/themes/lara-dark-indigo/theme.css +5675 -0
  508. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  509. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  510. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  511. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  512. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  513. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  514. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  515. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  516. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  517. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  518. package/resources/themes/lara-dark-purple/theme.css +5675 -0
  519. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  520. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  521. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  522. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  523. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  524. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  525. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  526. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  527. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  528. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  529. package/resources/themes/lara-dark-teal/theme.css +5675 -0
  530. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  531. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  532. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  533. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  534. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  535. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  536. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  537. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  538. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  539. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  540. package/resources/themes/lara-light-blue/theme.css +5675 -0
  541. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  542. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  543. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  544. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  545. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  546. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  547. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  548. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  549. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  550. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  551. package/resources/themes/lara-light-indigo/theme.css +5675 -0
  552. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  553. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  554. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  555. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  556. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  557. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  558. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  559. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  560. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  561. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  562. package/resources/themes/lara-light-purple/theme.css +5675 -0
  563. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  564. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  565. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  566. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  567. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  568. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  569. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  570. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  571. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  572. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  573. package/resources/themes/lara-light-teal/theme.css +5675 -0
  574. package/resources/themes/luna-amber/theme.css +42 -22
  575. package/resources/themes/luna-blue/theme.css +42 -22
  576. package/resources/themes/luna-green/theme.css +42 -22
  577. package/resources/themes/luna-pink/theme.css +42 -22
  578. package/resources/themes/md-dark-deeppurple/theme.css +227 -47
  579. package/resources/themes/md-dark-indigo/theme.css +227 -47
  580. package/resources/themes/md-light-deeppurple/theme.css +227 -47
  581. package/resources/themes/md-light-indigo/theme.css +227 -47
  582. package/resources/themes/mdc-dark-deeppurple/theme.css +227 -47
  583. package/resources/themes/mdc-dark-indigo/theme.css +227 -47
  584. package/resources/themes/mdc-light-deeppurple/theme.css +227 -47
  585. package/resources/themes/mdc-light-indigo/theme.css +227 -47
  586. package/resources/themes/nova/theme.css +42 -22
  587. package/resources/themes/nova-accent/theme.css +42 -22
  588. package/resources/themes/nova-alt/theme.css +42 -22
  589. package/resources/themes/rhea/theme.css +42 -22
  590. package/resources/themes/saga-blue/theme.css +38 -18
  591. package/resources/themes/saga-green/theme.css +38 -18
  592. package/resources/themes/saga-orange/theme.css +38 -18
  593. package/resources/themes/saga-purple/theme.css +38 -18
  594. package/resources/themes/tailwind-light/theme.css +42 -22
  595. package/resources/themes/vela-blue/theme.css +38 -18
  596. package/resources/themes/vela-green/theme.css +38 -18
  597. package/resources/themes/vela-orange/theme.css +38 -18
  598. package/resources/themes/vela-purple/theme.css +38 -18
  599. package/ripple/ripple.cjs.js +11 -11
  600. package/ripple/ripple.cjs.min.js +1 -1
  601. package/ripple/ripple.esm.js +3 -3
  602. package/ripple/ripple.esm.min.js +1 -1
  603. package/ripple/ripple.js +12 -12
  604. package/ripple/ripple.min.js +1 -1
  605. package/row/row.cjs.js +1 -1
  606. package/row/row.cjs.min.js +1 -1
  607. package/row/row.esm.min.js +1 -1
  608. package/row/row.js +2 -2
  609. package/row/row.min.js +1 -1
  610. package/scrollpanel/scrollpanel.cjs.js +19 -19
  611. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  612. package/scrollpanel/scrollpanel.esm.js +1 -1
  613. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  614. package/scrollpanel/scrollpanel.js +20 -20
  615. package/scrollpanel/scrollpanel.min.js +1 -1
  616. package/scrolltop/scrolltop.cjs.js +18 -13
  617. package/scrolltop/scrolltop.cjs.min.js +1 -1
  618. package/scrolltop/scrolltop.d.ts +4 -2
  619. package/scrolltop/scrolltop.esm.js +9 -5
  620. package/scrolltop/scrolltop.esm.min.js +1 -1
  621. package/scrolltop/scrolltop.js +16 -14
  622. package/scrolltop/scrolltop.min.js +1 -1
  623. package/selectbutton/selectbutton.cjs.js +17 -15
  624. package/selectbutton/selectbutton.cjs.min.js +1 -1
  625. package/selectbutton/selectbutton.esm.js +3 -1
  626. package/selectbutton/selectbutton.esm.min.js +1 -1
  627. package/selectbutton/selectbutton.js +16 -16
  628. package/selectbutton/selectbutton.min.js +1 -1
  629. package/selectitem/selectitem.d.ts +3 -1
  630. package/sidebar/sidebar.cjs.js +142 -116
  631. package/sidebar/sidebar.cjs.min.js +1 -1
  632. package/sidebar/sidebar.d.ts +4 -1
  633. package/sidebar/sidebar.esm.js +133 -108
  634. package/sidebar/sidebar.esm.min.js +1 -1
  635. package/sidebar/sidebar.js +139 -117
  636. package/sidebar/sidebar.min.css +1 -1
  637. package/sidebar/sidebar.min.js +1 -1
  638. package/skeleton/skeleton.cjs.js +3 -3
  639. package/skeleton/skeleton.cjs.min.js +1 -1
  640. package/skeleton/skeleton.esm.js +1 -1
  641. package/skeleton/skeleton.esm.min.js +1 -1
  642. package/skeleton/skeleton.js +4 -4
  643. package/skeleton/skeleton.min.js +1 -1
  644. package/slidemenu/slidemenu.cjs.js +37 -32
  645. package/slidemenu/slidemenu.cjs.min.js +1 -1
  646. package/slidemenu/slidemenu.d.ts +2 -1
  647. package/slidemenu/slidemenu.esm.js +7 -3
  648. package/slidemenu/slidemenu.esm.min.js +1 -1
  649. package/slidemenu/slidemenu.js +34 -33
  650. package/slidemenu/slidemenu.min.js +1 -1
  651. package/slider/slider.cjs.js +29 -19
  652. package/slider/slider.cjs.min.js +1 -1
  653. package/slider/slider.esm.js +21 -11
  654. package/slider/slider.esm.min.js +1 -1
  655. package/slider/slider.js +30 -20
  656. package/slider/slider.min.js +1 -1
  657. package/speeddial/speeddial.cjs.js +20 -19
  658. package/speeddial/speeddial.cjs.min.js +1 -1
  659. package/speeddial/speeddial.d.ts +3 -2
  660. package/speeddial/speeddial.esm.js +2 -1
  661. package/speeddial/speeddial.esm.min.js +1 -1
  662. package/speeddial/speeddial.js +20 -20
  663. package/speeddial/speeddial.min.js +1 -1
  664. package/splitbutton/splitbutton.cjs.js +43 -35
  665. package/splitbutton/splitbutton.cjs.min.js +1 -1
  666. package/splitbutton/splitbutton.d.ts +8 -6
  667. package/splitbutton/splitbutton.esm.js +13 -5
  668. package/splitbutton/splitbutton.esm.min.js +1 -1
  669. package/splitbutton/splitbutton.js +40 -36
  670. package/splitbutton/splitbutton.min.js +1 -1
  671. package/splitter/splitter.cjs.js +19 -19
  672. package/splitter/splitter.cjs.min.js +1 -1
  673. package/splitter/splitter.esm.js +2 -2
  674. package/splitter/splitter.esm.min.js +1 -1
  675. package/splitter/splitter.js +20 -20
  676. package/splitter/splitter.min.js +1 -1
  677. package/steps/steps.cjs.js +10 -10
  678. package/steps/steps.cjs.min.js +1 -1
  679. package/steps/steps.esm.js +1 -1
  680. package/steps/steps.esm.min.js +1 -1
  681. package/steps/steps.js +11 -11
  682. package/steps/steps.min.js +1 -1
  683. package/styleclass/styleclass.cjs.js +17 -17
  684. package/styleclass/styleclass.cjs.min.js +1 -1
  685. package/styleclass/styleclass.esm.js +1 -1
  686. package/styleclass/styleclass.esm.min.js +1 -1
  687. package/styleclass/styleclass.js +18 -18
  688. package/styleclass/styleclass.min.js +1 -1
  689. package/tabmenu/tabmenu.cjs.js +16 -15
  690. package/tabmenu/tabmenu.cjs.min.js +1 -1
  691. package/tabmenu/tabmenu.esm.js +2 -1
  692. package/tabmenu/tabmenu.esm.min.js +1 -1
  693. package/tabmenu/tabmenu.js +16 -16
  694. package/tabmenu/tabmenu.min.js +1 -1
  695. package/tabview/tabview.cjs.js +195 -57
  696. package/tabview/tabview.cjs.min.js +1 -1
  697. package/tabview/tabview.d.ts +12 -1
  698. package/tabview/tabview.esm.js +165 -27
  699. package/tabview/tabview.esm.min.js +1 -1
  700. package/tabview/tabview.js +195 -58
  701. package/tabview/tabview.min.css +1 -1
  702. package/tabview/tabview.min.js +1 -1
  703. package/tag/tag.cjs.js +9 -8
  704. package/tag/tag.cjs.min.js +1 -1
  705. package/tag/tag.d.ts +2 -1
  706. package/tag/tag.esm.js +5 -4
  707. package/tag/tag.esm.min.js +1 -1
  708. package/tag/tag.js +10 -9
  709. package/tag/tag.min.js +1 -1
  710. package/terminal/terminal.cjs.js +12 -12
  711. package/terminal/terminal.cjs.min.js +1 -1
  712. package/terminal/terminal.esm.js +1 -1
  713. package/terminal/terminal.esm.min.js +1 -1
  714. package/terminal/terminal.js +13 -13
  715. package/terminal/terminal.min.js +1 -1
  716. package/terminalservice/terminalservice.cjs.js +2 -2
  717. package/terminalservice/terminalservice.cjs.min.js +1 -1
  718. package/terminalservice/terminalservice.esm.js +1 -1
  719. package/terminalservice/terminalservice.esm.min.js +1 -1
  720. package/terminalservice/terminalservice.js +3 -3
  721. package/terminalservice/terminalservice.min.js +1 -1
  722. package/tieredmenu/tieredmenu.cjs.js +42 -36
  723. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  724. package/tieredmenu/tieredmenu.d.ts +2 -1
  725. package/tieredmenu/tieredmenu.esm.js +8 -3
  726. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  727. package/tieredmenu/tieredmenu.js +38 -37
  728. package/tieredmenu/tieredmenu.min.js +1 -1
  729. package/timeline/timeline.cjs.js +12 -12
  730. package/timeline/timeline.cjs.min.js +1 -1
  731. package/timeline/timeline.esm.js +1 -1
  732. package/timeline/timeline.esm.min.js +1 -1
  733. package/timeline/timeline.js +13 -13
  734. package/timeline/timeline.min.js +1 -1
  735. package/toast/toast.cjs.js +46 -40
  736. package/toast/toast.cjs.min.js +1 -1
  737. package/toast/toast.d.ts +2 -1
  738. package/toast/toast.esm.js +20 -15
  739. package/toast/toast.esm.min.js +1 -1
  740. package/toast/toast.js +44 -41
  741. package/toast/toast.min.js +1 -1
  742. package/togglebutton/togglebutton.cjs.js +14 -9
  743. package/togglebutton/togglebutton.cjs.min.js +1 -1
  744. package/togglebutton/togglebutton.d.ts +3 -2
  745. package/togglebutton/togglebutton.esm.js +8 -3
  746. package/togglebutton/togglebutton.esm.min.js +1 -1
  747. package/togglebutton/togglebutton.js +13 -10
  748. package/togglebutton/togglebutton.min.js +1 -1
  749. package/toolbar/toolbar.cjs.js +7 -7
  750. package/toolbar/toolbar.cjs.min.js +1 -1
  751. package/toolbar/toolbar.esm.js +1 -1
  752. package/toolbar/toolbar.esm.min.js +1 -1
  753. package/toolbar/toolbar.js +8 -8
  754. package/toolbar/toolbar.min.js +1 -1
  755. package/tooltip/tooltip.cjs.js +65 -36
  756. package/tooltip/tooltip.cjs.min.js +1 -1
  757. package/tooltip/tooltip.d.ts +0 -1
  758. package/tooltip/tooltip.esm.js +36 -8
  759. package/tooltip/tooltip.esm.min.js +1 -1
  760. package/tooltip/tooltip.js +64 -37
  761. package/tooltip/tooltip.min.css +1 -1
  762. package/tooltip/tooltip.min.js +1 -1
  763. package/tooltip/tooltipoptions.d.ts +2 -0
  764. package/tree/tree.cjs.js +52 -51
  765. package/tree/tree.cjs.min.js +1 -1
  766. package/tree/tree.d.ts +14 -3
  767. package/tree/tree.esm.js +2 -1
  768. package/tree/tree.esm.min.js +1 -1
  769. package/tree/tree.js +52 -52
  770. package/tree/tree.min.js +1 -1
  771. package/treenode/treenode.d.ts +3 -1
  772. package/treeselect/treeselect.cjs.js +50 -46
  773. package/treeselect/treeselect.cjs.min.js +1 -1
  774. package/treeselect/treeselect.d.ts +11 -3
  775. package/treeselect/treeselect.esm.js +10 -6
  776. package/treeselect/treeselect.esm.min.js +1 -1
  777. package/treeselect/treeselect.js +47 -47
  778. package/treeselect/treeselect.min.js +1 -1
  779. package/treetable/treetable.cjs.js +1363 -312
  780. package/treetable/treetable.cjs.min.js +1 -1
  781. package/treetable/treetable.d.ts +10 -3
  782. package/treetable/treetable.esm.js +1267 -216
  783. package/treetable/treetable.esm.min.js +1 -1
  784. package/treetable/treetable.js +1362 -313
  785. package/treetable/treetable.min.js +1 -1
  786. package/tristatecheckbox/tristatecheckbox.cjs.js +11 -10
  787. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  788. package/tristatecheckbox/tristatecheckbox.esm.js +2 -1
  789. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  790. package/tristatecheckbox/tristatecheckbox.js +11 -11
  791. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  792. package/utils/utils.cjs.js +154 -33
  793. package/utils/utils.cjs.min.js +1 -1
  794. package/utils/utils.d.ts +17 -0
  795. package/utils/utils.esm.js +153 -33
  796. package/utils/utils.esm.min.js +1 -1
  797. package/utils/utils.js +155 -34
  798. package/utils/utils.min.js +1 -1
  799. package/virtualscroller/virtualscroller.cjs.js +44 -34
  800. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  801. package/virtualscroller/virtualscroller.esm.js +29 -19
  802. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  803. package/virtualscroller/virtualscroller.js +45 -35
  804. package/virtualscroller/virtualscroller.min.js +1 -1
  805. package/web-types.json +2 -2
  806. package/core/core.cjs.js +0 -2987
  807. package/core/core.cjs.min.js +0 -1
  808. package/core/core.esm.js +0 -2963
  809. package/core/core.esm.min.js +0 -1
  810. package/core/package.json +0 -5
  811. package/util.d.ts +0 -1
@@ -1 +0,0 @@
1
- import e from"primereact/api";import t,{Component as n}from"react";import i from"react-dom";import{CSSTransition as r}from"react-transition-group";function o(e){if(Array.isArray(e))return e}function s(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return o(e)||s(e,t)||l(e,t)||u()}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t){for(var i=[],r=0;r<t.length;r++){var o=t[r];if(o){var s=f(o);if("string"===s||"number"===s)i.push(o);else if("object"===s){var a=Array.isArray(o)?o:Object.entries(o).map((function(e){var t=c(e,2);return t[1]?t[0]:null}));i=a.length?i.concat(a.filter((function(e){return!!e}))):i}}}return i.join(" ")}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=y(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function y(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var b=function(){function e(){h(this,e)}return g(e,null,[{key:"innerWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}return 0}},{key:"width",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0}},{key:"getWindowScrollTop",value:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},{key:"getOuterWidth",value:function(e,t){if(e){var n=e.offsetWidth;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return n}return 0}},{key:"getOuterHeight",value:function(e,t){if(e){var n=e.offsetHeight;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return n}return 0}},{key:"getClientHeight",value:function(e,t){if(e){var n=e.clientHeight;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return n}return 0}},{key:"getClientWidth",value:function(e,t){if(e){var n=e.clientWidth;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return n}return 0}},{key:"getViewport",value:function(){var e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}}},{key:"getOffset",value:function(e){if(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(e){if(e)for(var t=e.parentNode.childNodes,n=0,i=0;i<t.length;i++){if(t[i]===e)return n;1===t[i].nodeType&&n++}return-1}},{key:"addMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),i=0;i<n.length;i++)e.classList.add(n[i]);else for(var r=t.split(" "),o=0;o<r.length;o++)e.className+=" "+r[o]}},{key:"removeMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),i=0;i<n.length;i++)e.classList.remove(n[i]);else for(var r=t.split(" "),o=0;o<r.length;o++)e.className=e.className.replace(new RegExp("(^|\\b)"+r[o].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)}},{key:"removeClass",value:function(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(e,t){if(e)return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)}},{key:"find",value:function(e,t){return e?Array.from(e.querySelectorAll(t)):[]}},{key:"findSingle",value:function(e,t){return e?e.querySelector(t):null}},{key:"getHeight",value:function(e){if(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)}return 0}},{key:"getWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}return 0}},{key:"alignOverlay",value:function(t,n,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t&&n&&("self"===i?this.relativePosition(t,n):(r&&(t.style.minWidth=e.getOuterWidth(n)+"px"),this.absolutePosition(t,n)))}},{key:"absolutePosition",value:function(e,t){if(e){var n,i,r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=t.offsetHeight,l=t.offsetWidth,u=t.getBoundingClientRect(),c=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),p=this.getViewport();u.top+a+o>p.height?((n=u.top+c-o)<0&&(n=c),e.style.transformOrigin="bottom"):(n=a+u.top+c,e.style.transformOrigin="top"),i=u.left+l+s>p.width?Math.max(0,u.left+f+l-s):u.left+f,e.style.top=n+"px",e.style.left=i+"px"}}},{key:"relativePosition",value:function(e,t){if(e){var n,i,r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=t.offsetHeight,s=t.getBoundingClientRect(),a=this.getViewport();s.top+o+r.height>a.height?(s.top+(n=-1*r.height)<0&&(n=-1*s.top),e.style.transformOrigin="bottom"):(n=o,e.style.transformOrigin="top"),i=r.width>a.width?-1*s.left:s.left+r.width>a.width?-1*(s.left+r.width-a.width):0,e.style.top=n+"px",e.style.left=i+"px"}}},{key:"flipfitCollision",value:function(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left top",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left bottom",s=arguments.length>4?arguments[4]:void 0,a=n.getBoundingClientRect(),l=this.getViewport(),u=r.split(" "),c=o.split(" "),f=function(e,t){return t?+e.substring(e.search(/(\+|-)/g))||0:e.substring(0,e.search(/(\+|-)/g))||e},p={my:{x:f(u[0]),y:f(u[1]||u[0]),offsetX:f(u[0],!0),offsetY:f(u[1]||u[0],!0)},at:{x:f(c[0]),y:f(c[1]||c[0]),offsetX:f(c[0],!0),offsetY:f(c[1]||c[0],!0)}},h={left:function(){return p.my.offsetX+p.at.offsetX+a.left+("left"===p.my.x?0:-1*("center"===p.my.x?i.getOuterWidth(t)/2:i.getOuterWidth(t)))},top:function(){return p.my.offsetY+p.at.offsetY+a.top+("top"===p.my.y?0:-1*("center"===p.my.y?i.getOuterHeight(t)/2:i.getOuterHeight(t)))}},d={count:{x:0,y:0},left:function(){var n=h.left(),i=e.getWindowScrollLeft();t.style.left=n+i+"px",2===this.count.x?(t.style.left=i+"px",this.count.x=0):n<0&&(this.count.x++,p.my.x="left",p.at.x="right",p.my.offsetX*=-1,p.at.offsetX*=-1,this.right())},right:function(){var i=h.left()+e.getOuterWidth(n),r=e.getWindowScrollLeft();t.style.left=i+r+"px",2===this.count.x?(t.style.left=l.width-e.getOuterWidth(t)+r+"px",this.count.x=0):i+e.getOuterWidth(t)>l.width&&(this.count.x++,p.my.x="right",p.at.x="left",p.my.offsetX*=-1,p.at.offsetX*=-1,this.left())},top:function(){var n=h.top(),i=e.getWindowScrollTop();t.style.top=n+i+"px",2===this.count.y?(t.style.left=i+"px",this.count.y=0):n<0&&(this.count.y++,p.my.y="top",p.at.y="bottom",p.my.offsetY*=-1,p.at.offsetY*=-1,this.bottom())},bottom:function(){var i=h.top()+e.getOuterHeight(n),r=e.getWindowScrollTop();t.style.top=i+r+"px",2===this.count.y?(t.style.left=l.height-e.getOuterHeight(t)+r+"px",this.count.y=0):i+e.getOuterHeight(n)>l.height&&(this.count.y++,p.my.y="bottom",p.at.y="top",p.my.offsetY*=-1,p.at.offsetY*=-1,this.top())},center:function(i){if("y"===i){var r=h.top()+e.getOuterHeight(n)/2;t.style.top=r+e.getWindowScrollTop()+"px",r<0?this.bottom():r+e.getOuterHeight(n)>l.height&&this.top()}else{var o=h.left()+e.getOuterWidth(n)/2;t.style.left=o+e.getWindowScrollLeft()+"px",o<0?this.left():o+e.getOuterWidth(t)>l.width&&this.right()}}};d[p.at.x]("x"),d[p.at.y]("y"),this.isFunction(s)&&s(p)}},{key:"findCollisionPosition",value:function(e){if(e){var t="left"===e?"right":"left";return"top"===e||"bottom"===e?{axis:"y",my:"center ".concat("top"===e?"bottom":"top"),at:"center ".concat(e)}:{axis:"x",my:"".concat(t," center"),at:"".concat(e," center")}}}},{key:"getParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}},{key:"getScrollableParents",value:function(e){var t=[];if(e){var n,i=this.getParents(e),r=/(auto|scroll)/,o=function(e){var t=window.getComputedStyle(e,null);return r.test(t.getPropertyValue("overflow"))||r.test(t.getPropertyValue("overflowX"))||r.test(t.getPropertyValue("overflowY"))},s=v(i);try{for(s.s();!(n=s.n()).done;){var a=n.value,l=1===a.nodeType&&a.dataset.scrollselectors;if(l){var u,c=v(l.split(","));try{for(c.s();!(u=c.n()).done;){var f=this.findSingle(a,u.value);f&&o(f)&&t.push(f)}}catch(e){c.e(e)}finally{c.f()}}9!==a.nodeType&&o(a)&&t.push(a)}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"getHiddenElementOuterHeight",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementOuterWidth",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementDimensions",value:function(e){var t={};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}},{key:"fadeIn",value:function(e,t){if(e){e.style.opacity=0;var n=+new Date,i=0;!function r(){i=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))}()}}},{key:"fadeOut",value:function(e,t){if(e)var n=1,i=50/t,r=setInterval((function(){(n-=i)<=0&&(n=0,clearInterval(r)),e.style.opacity=n}),50)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"appendChild",value:function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot append "+t+" to "+e);t.el.nativeElement.appendChild(e)}}},{key:"removeChild",value:function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot remove "+e+" from "+t);t.el.nativeElement.removeChild(e)}}},{key:"isElement",value:function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":f(HTMLElement))?e instanceof HTMLElement:e&&"object"===f(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}},{key:"scrollInView",value:function(e,t){var n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),o=r?parseFloat(r):0,s=e.getBoundingClientRect(),a=t.getBoundingClientRect().top+document.body.scrollTop-(s.top+document.body.scrollTop)-i-o,l=e.scrollTop,u=e.clientHeight,c=this.getOuterHeight(t);a<0?e.scrollTop=l+a:a+c>u&&(e.scrollTop=l+a-u+c)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}},{key:"calculateScrollbarWidth",value:function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var i=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=i,i}},{key:"getBrowser",value:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}},{key:"isVisible",value:function(e){return e&&null!=e.offsetParent}},{key:"getFocusableElements",value:function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(i,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(i,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(i,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(i,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(i,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(i,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(i)),o=[],s=v(r);try{for(s.s();!(n=s.n()).done;){var a=n.value;"none"!==getComputedStyle(a).display&&"hidden"!==getComputedStyle(a).visibility&&o.push(a)}}catch(e){s.e(e)}finally{s.f()}return o}},{key:"getFirstFocusableElement",value:function(t,n){var i=e.getFocusableElements(t,n);return i.length>0?i[0]:null}},{key:"getLastFocusableElement",value:function(t,n){var i=e.getFocusableElements(t,n);return i.length>0?i[i.length-1]:null}},{key:"getCursorOffset",value:function(e,t,n,i){if(e){var r=getComputedStyle(e),o=document.createElement("div");o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.style.visibility="hidden",o.style.pointerEvents="none",o.style.overflow=r.overflow,o.style.width=r.width,o.style.height=r.height,o.style.padding=r.padding,o.style.border=r.border,o.style.overflowWrap=r.overflowWrap,o.style.whiteSpace=r.whiteSpace,o.style.lineHeight=r.lineHeight,o.innerHTML=t.replace(/\r\n|\r|\n/g,"<br />");var s=document.createElement("span");s.textContent=i,o.appendChild(s);var a=document.createTextNode(n);o.appendChild(a),document.body.appendChild(o);var l=s.offsetLeft,u=s.offsetTop,c=s.clientHeight;return document.body.removeChild(o),{left:Math.abs(l-e.scrollLeft),top:Math.abs(u-e.scrollTop)+c}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"isClickable",value:function(e){var t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"===t||"BUTTON"===t||"A"===t||"INPUT"===n||"BUTTON"===n||"A"===n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(e,t){if("string"==typeof t)e.style.cssText=this.style;else for(var n in this.style)e.style[n]=t[n]}},{key:"exportCSV",value:function(e,t){var n=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(n,t+".csv");else{var i=document.createElement("a");void 0!==i.download?(i.setAttribute("href",URL.createObjectURL(n)),i.setAttribute("download",t+".csv"),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}}]),e}(),E=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};h(this,e),this.element=t,this.listener=n}return g(e,[{key:"bindScrollListener",value:function(){this.scrollableParents=b.getScrollableParents(this.element);for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)}},{key:"unbindScrollListener",value:function(){if(this.scrollableParents)for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)}},{key:"destroy",value:function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}]),e}();function w(){var e=new Map;return{on:function(t,n){var i=e.get(t);i?i.push(n):i=[n],e.set(t,i)},off:function(t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)},emit:function(t,n){var i=e.get(t);i&&i.slice().forEach((function(e){return e(n)}))}}}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t){var n,i,r,o,s,a,l,u,c,f,p,h;t=T(T({},{mask:null,slotChar:"_",autoClear:!0,unmask:!1,readOnly:!1,onComplete:null,onChange:null,onFocus:null,onBlur:null}),t);var d=function(t,n){var i,r,o;if(e.offsetParent&&e===document.activeElement)return"number"!=typeof t?(e.setSelectionRange?(r=e.selectionStart,o=e.selectionEnd):document.selection&&document.selection.createRange&&(o=(r=0-(i=document.selection.createRange()).duplicate().moveStart("character",-1e5))+i.text.length),{begin:r,end:o}):(r=t,o="number"==typeof n?n:r,void(e.setSelectionRange?e.setSelectionRange(r,o):e.createTextRange&&((i=e.createTextRange()).collapse(!0),i.moveEnd("character",o),i.moveStart("character",r),i.select())))},g=function(){for(var e=o;e<=l;e++)if(n[e]&&p[e]===v(e))return!1;return!0},v=function(e){return t.slotChar.charAt(e<t.slotChar.length?e:0)},y=function(){return t.unmask?F():e&&e.value},m=function(e){for(;++e<r&&!n[e];);return e},E=function(e){for(;--e>=0&&!n[e];);return e},w=function(e,t){var i,s;if(!(e<0)){for(i=e,s=m(t);i<r;i++)if(n[i]){if(!(s<r&&n[i].test(p[s])))break;p[i]=p[s],p[s]=v(s),s=m(s)}P(),d(Math.max(o,e))}},k=function(e){var t,i,o,s;for(t=e,i=v(e);t<r;t++)if(n[t]){if(o=m(t),s=p[t],p[t]=i,!(o<r&&n[o].test(s)))break;i=s}},x=function(i){var s=e.value,a=d();if(u&&u.length&&u.length>s.length){for(A(!0);a.begin>0&&!n[a.begin-1];)a.begin--;if(0===a.begin)for(;a.begin<o&&!n[a.begin];)a.begin++;d(a.begin,a.begin)}else{for(A(!0);a.begin<r&&!n[a.begin];)a.begin++;d(a.begin,a.begin)}t.onComplete&&g()&&t.onComplete({originalEvent:i,value:y()})},O=function(n){if(A(),H(n),t.onBlur&&t.onBlur(n),e.value!==c){var i=document.createEvent("HTMLEvents");i.initEvent("change",!0,!1),e.dispatchEvent(i)}},C=function(n){if(!t.readOnly){var i,r,o,s=n.which||n.keyCode,a=/iphone/i.test(b.getUserAgent());u=e.value,8===s||46===s||a&&127===s?((o=(i=d()).end)-(r=i.begin)==0&&(r=46!==s?E(r):o=m(r-1),o=46===s?m(o):o),L(r,o),w(r,o-1),H(n),n.preventDefault()):13===s?(O(n),H(n)):27===s&&(e.value=c,d(0,A()),H(n),n.preventDefault())}},S=function(e){if(!t.readOnly){var i,o,s,a,u=e.which||e.keyCode,c=d();if(!(e.ctrlKey||e.altKey||e.metaKey||u<32)){if(u&&13!==u){if(c.end-c.begin!=0&&(L(c.begin,c.end),w(c.begin,c.end-1)),(i=m(c.begin-1))<r&&(o=String.fromCharCode(u),n[i].test(o))){if(k(i),p[i]=o,P(),s=m(i),/android/i.test(b.getUserAgent())){setTimeout((function(){d(s)}),0)}else d(s);c.begin<=l&&(a=g())}e.preventDefault()}H(e),t.onComplete&&a&&t.onComplete({originalEvent:e,value:y()})}}},L=function(e,t){var i;for(i=e;i<t&&i<r;i++)n[i]&&(p[i]=v(i))},P=function(){e.value=p.join("")},A=function(s){var a,l,u,c=e.value,f=-1;for(a=0,u=0;a<r;a++)if(n[a]){for(p[a]=v(a);u++<c.length;)if(l=c.charAt(u-1),n[a].test(l)){p[a]=l,f=a;break}if(u>c.length){L(a+1,r);break}}else p[a]===c.charAt(u)&&u++,a<i&&(f=a);return s?P():f+1<i?t.autoClear||p.join("")===h?(e.value&&(e.value=""),L(0,r)):P():(P(),e.value=e.value.substring(0,f+1)),i?a:o},D=function(n){var i;t.readOnly||(clearTimeout(f),c=e.value,i=A(),f=setTimeout((function(){e===document.activeElement&&(P(),i===t.mask.replace("?","").length?d(0,i):d(i))}),10),t.onFocus&&t.onFocus(n))},R=function(e){a?x(e):j(e)},j=function(e){if(!t.readOnly){var n=A(!0);d(n),H(e),t.onComplete&&g()&&t.onComplete({originalEvent:e,value:y()})}},F=function(){for(var e=[],t=0;t<p.length;t++){var i=p[t];n[t]&&i!==v(t)&&e.push(i)}return e.join("")},H=function(e){if(t.onChange){var n=y().replace(t.slotChar,"");t.onChange({originalEvent:e,value:h!==n?n:""})}},W=function(){e.addEventListener("focus",D),e.addEventListener("blur",O),e.addEventListener("keydown",C),e.addEventListener("keypress",S),e.addEventListener("input",R),e.addEventListener("paste",j)},M=function(){n=[],i=t.mask.length,r=t.mask.length,o=null,s={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var e=b.getUserAgent();a=/chrome/i.test(e)&&/android/i.test(e);for(var u=t.mask.split(""),c=0;c<u.length;c++){var f=u[c];"?"===f?(r--,i=c):s[f]?(n.push(new RegExp(s[f])),null===o&&(o=n.length-1),c<i&&(l=n.length-1)):n.push(null)}p=[];for(var d=0;d<u.length;d++){var g=u[d];"?"!==g&&p.push(s[g]?v(d):g)}h=p.join("")};return e&&t.mask&&(M(),W()),{init:M,bindEvents:W,unbindEvents:function(){e.removeEventListener("focus",D),e.removeEventListener("blur",O),e.removeEventListener("keydown",C),e.removeEventListener("keypress",S),e.removeEventListener("input",R),e.removeEventListener("paste",j)},updateModel:H,getValue:y}}var C=function(){function e(){h(this,e)}return g(e,null,[{key:"equals",value:function(e,t,n){return n&&e&&"object"===f(e)&&t&&"object"===f(t)?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.deepEquals(e,t)}},{key:"deepEquals",value:function(e,t){if(e===t)return!0;if(e&&t&&"object"==f(e)&&"object"==f(t)){var n,i,r,o=Array.isArray(e),s=Array.isArray(t);if(o&&s){if((i=e.length)!==t.length)return!1;for(n=i;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(o!==s)return!1;var a=e instanceof Date,l=t instanceof Date;if(a!==l)return!1;if(a&&l)return e.getTime()===t.getTime();var u=e instanceof RegExp,c=t instanceof RegExp;if(u!==c)return!1;if(u&&c)return e.toString()===t.toString();var p=Object.keys(e);if((i=p.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,p[n]))return!1;for(n=i;0!=n--;)if(!this.deepEquals(e[r=p[n]],t[r]))return!1;return!0}return e!=e&&t!=t}},{key:"resolveFieldData",value:function(e,t){if(e&&Object.keys(e).length&&t){if(this.isFunction(t))return t(e);if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,r=0,o=n.length;r<o;++r){if(null==i)return null;i=i[n[r]]}return i}return null}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"findDiffKeys",value:function(e,t){return e&&t?Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)})).reduce((function(t,n){return t[n]=e[n],t}),{}):{}}},{key:"reorderArray",value:function(e,t,n){var i;if(e&&t!==n){if(n>=e.length)for(i=n-e.length;1+i--;)e.push(void 0);e.splice(n,0,e.splice(t,1)[0])}}},{key:"findIndexInList",value:function(e,t,n){var i=this;return t?t.findIndex(n?function(t){return i.equals(t,e,n)}:function(t){return t===e}):-1}},{key:"getJSXElement",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getPropValue",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getRefElement",value:function(e){return e?"object"===f(e)&&e.hasOwnProperty("current")?e.current:e:null}},{key:"removeAccents",value:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.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")),e}},{key:"isEmpty",value:function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"===f(e)&&0===Object.keys(e).length}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}}]),e}(),S=0;function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pr_id_";return S++,"".concat(e).concat(S)}var P,A,D,R,j,F=(P=[],A=function(e,t){t=t||D(e);var n=j(e,t),i=n.value+(n.key===e?0:t)+1;return P.push({key:e,value:i}),i},D=function(t){return e.zIndex[t]||999},R=function(e){return j(e).value},j=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(P||[]).reverse().find((function(n){return!!e.autoZIndex||n.key===t}))||{key:t,value:n}},{get:function(e){return e&&parseInt(e.style.zIndex,10)||0},set:function(e,t,n){t&&(t.style.zIndex=String(A(e,n)))},clear:function(e){var t;e&&(t=F.get(e),P=P.filter((function(e){return e.value!==t})),e.style.zIndex="")},getBase:function(e){return D(e)},getCurrent:function(e){return R(e)}});function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}function B(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return H(e)}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var U=function(i){M(a,n);var r,o,s=(r=a,o=I(),function(){var e,t=N(r);if(o){var n=N(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return B(this,e)});function a(e){var t;return h(this,a),(t=s.call(this,e)).onMouseDown=t.onMouseDown.bind(H(t)),t}return g(a,[{key:"getTarget",value:function(){return this.ink&&this.ink.parentElement}},{key:"bindEvents",value:function(){this.target&&this.target.addEventListener("mousedown",this.onMouseDown)}},{key:"unbindEvents",value:function(){this.target&&this.target.removeEventListener("mousedown",this.onMouseDown)}},{key:"onMouseDown",value:function(e){if(this.ink&&"none"!==getComputedStyle(this.ink,null).display){if(b.removeClass(this.ink,"p-ink-active"),!b.getHeight(this.ink)&&!b.getWidth(this.ink)){var t=Math.max(b.getOuterWidth(this.target),b.getOuterHeight(this.target));this.ink.style.height=t+"px",this.ink.style.width=t+"px"}var n=b.getOffset(this.target),i=e.pageX-n.left+document.body.scrollTop-b.getWidth(this.ink)/2,r=e.pageY-n.top+document.body.scrollLeft-b.getHeight(this.ink)/2;this.ink.style.top=r+"px",this.ink.style.left=i+"px",b.addClass(this.ink,"p-ink-active")}}},{key:"onAnimationEnd",value:function(e){b.removeClass(e.currentTarget,"p-ink-active")}},{key:"componentDidMount",value:function(){this.ink&&(this.target=this.getTarget(),this.bindEvents())}},{key:"componentDidUpdate",value:function(){this.ink&&!this.target&&(this.target=this.getTarget(),this.bindEvents())}},{key:"componentWillUnmount",value:function(){this.ink&&(this.target=null,this.unbindEvents())}},{key:"render",value:function(){var n=this;return e.ripple&&t.createElement("span",{ref:function(e){return n.ink=e},className:"p-ink",onAnimationEnd:this.onAnimationEnd})}}]),a}(),z=function(){function e(){h(this,e)}return g(e,null,[{key:"isNavKeyPress",value:function(t){var n=t.keyCode;return(n=b.getBrowser().safari&&e.SAFARI_KEYS[n]||n)>=33&&n<=40||n===e.KEYS.RETURN||n===e.KEYS.TAB||n===e.KEYS.ESC}},{key:"isSpecialKey",value:function(e){var t=e.keyCode;return 9===t||13===t||27===t||16===t||17===t||t>=18&&t<=20||b.getBrowser().opera&&!e.shiftKey&&(8===t||t>=33&&t<=35||t>=36&&t<=39||t>=44&&t<=45)}},{key:"getKey",value:function(t){var n=t.keyCode||t.charCode;return b.getBrowser().safari&&e.SAFARI_KEYS[n]||n}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(t,n,i){if(!i){var r=e.DEFAULT_MASKS[n]?e.DEFAULT_MASKS[n]:n,o=b.getBrowser();if(!t.ctrlKey&&!t.altKey){var s=this.getKey(t);if(!o.mozilla||!(this.isNavKeyPress(t)||s===e.KEYS.BACKSPACE||s===e.KEYS.DELETE&&0===t.charCode)){var a=this.getCharCode(t),l=String.fromCharCode(a);(!o.mozilla||!this.isSpecialKey(t)&&l)&&(r.test(l)||t.preventDefault())}}}}},{key:"validate",value:function(e,t){var n=e.target.value,i=!0;return n&&!t.test(n)&&(i=!1),i}}]),e}();function K(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}k(z,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),k(z,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),k(z,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35});var Y=function(t){M(a,n);var r,o,s=(r=a,o=K(),function(){var e,t=N(r);if(o){var n=N(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return B(this,e)});function a(e){var t;return h(this,a),(t=s.call(this,e)).state={mounted:e.visible},t}return g(a,[{key:"hasDOM",value:function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},{key:"componentDidMount",value:function(){this.hasDOM()&&!this.state.mounted&&this.setState({mounted:!0},this.props.onMounted)}},{key:"componentWillUnmount",value:function(){this.props.onUnmounted&&this.props.onUnmounted()}},{key:"render",value:function(){var t=this.props.element||this.props.children;if(t&&this.state.mounted){var n=this.props.appendTo||e.appendTo||document.body;return"self"===n?t:i.createPortal(t,n)}return null}}]),a}();function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e){var n=e.appendTo||document.body,r=document.createDocumentFragment();b.appendChild(r,n),e=X(X({},e),e.options);var o=t.createElement(Z,e);i.render(o,r);var s=function(n){e=X(X({},e),n),i.render(t.cloneElement(o,e),r)};return{destroy:function(){i.unmountComponentAtNode(r)},updateContent:function(e){console.warn("The 'updateContent' method has been deprecated on Tooltip. Use update(newProps) method."),s({content:e})},update:function(e){s(e)}}}k(Y,"defaultProps",{element:null,appendTo:null,visible:!1,onMounted:null,onUnmounted:null});var Z=function(e){M(a,n);var r,o,s=(r=a,o=_(),function(){var e,t=N(r);if(o){var n=N(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return B(this,e)});function a(e){var t;return h(this,a),(t=s.call(this,e)).state={visible:!1,position:t.props.position},t.show=t.show.bind(H(t)),t.hide=t.hide.bind(H(t)),t.onMouseEnter=t.onMouseEnter.bind(H(t)),t.onMouseLeave=t.onMouseLeave.bind(H(t)),t}return g(a,[{key:"isTargetContentEmpty",value:function(e){return!(this.props.content||this.getTargetOption(e,"tooltip"))}},{key:"isContentEmpty",value:function(e){return!(this.props.content||this.getTargetOption(e,"tooltip")||this.props.children)}},{key:"isMouseTrack",value:function(e){return this.getTargetOption(e,"mousetrack")||this.props.mouseTrack}},{key:"isDisabled",value:function(e){return"true"===this.getTargetOption(e,"disabled")||this.hasTargetOption(e,"disabled")||this.props.disabled}},{key:"isAutoHide",value:function(){return this.getTargetOption(this.currentTarget,"autohide")||this.props.autoHide}},{key:"getTargetOption",value:function(e,t){return this.hasTargetOption(e,"data-pr-".concat(t))?e.getAttribute("data-pr-".concat(t)):null}},{key:"hasTargetOption",value:function(e,t){return e&&e.hasAttribute(t)}},{key:"getEvents",value:function(e){var t=this.getTargetOption(e,"showevent")||this.props.showEvent,n=this.getTargetOption(e,"hideevent")||this.props.hideEvent;this.isMouseTrack(e)?(t="mousemove",n="mouseleave"):"focus"===(this.getTargetOption(e,"event")||this.props.event)&&(t="focus",n="blur");return{showEvent:t,hideEvent:n}}},{key:"getPosition",value:function(e){return this.getTargetOption(e,"position")||this.state.position}},{key:"getMouseTrackPosition",value:function(e){return{top:this.getTargetOption(e,"mousetracktop")||this.props.mouseTrackTop,left:this.getTargetOption(e,"mousetrackleft")||this.props.mouseTrackLeft}}},{key:"updateText",value:function(e,t){if(this.tooltipTextEl){var n=this.getTargetOption(e,"tooltip")||this.props.content;n?(this.tooltipTextEl.innerHTML="",this.tooltipTextEl.appendChild(document.createTextNode(n)),t()):this.props.children&&t()}}},{key:"show",value:function(e){var t=this;if(this.currentTarget=e.currentTarget,!this.isContentEmpty(this.currentTarget)&&!this.isDisabled(this.currentTarget)){var n=function(){t.updateText(t.currentTarget,(function(){t.props.autoZIndex&&!F.get(t.containerEl)&&F.set("tooltip",t.containerEl,t.props.baseZIndex),t.containerEl.style.left="",t.containerEl.style.top="",t.isMouseTrack(t.currentTarget)&&!t.containerSize&&(t.containerSize={width:b.getOuterWidth(t.containerEl),height:b.getOuterHeight(t.containerEl)}),t.align(t.currentTarget,{x:e.pageX,y:e.pageY})}))};this.state.visible?this.applyDelay("updateDelay",n):(this.sendCallback(this.props.onBeforeShow,{originalEvent:e,target:this.currentTarget}),this.applyDelay("showDelay",(function(){t.setState({visible:!0,position:t.getPosition(t.currentTarget)},(function(){n(),t.sendCallback(t.props.onShow,{originalEvent:e,target:t.currentTarget})})),t.bindDocumentResizeListener(),t.bindScrollListener(),b.addClass(t.currentTarget,t.getTargetOption(t.currentTarget,"classname"))})))}}},{key:"hide",value:function(e){var t=this;this.clearTimeouts(),this.state.visible&&(b.removeClass(this.currentTarget,this.getTargetOption(this.currentTarget,"classname")),this.sendCallback(this.props.onBeforeHide,{originalEvent:e,target:this.currentTarget}),this.applyDelay("hideDelay",(function(){F.clear(t.containerEl),b.removeClass(t.containerEl,"p-tooltip-active"),(t.isAutoHide()||!1!==t.allowHide)&&t.setState({visible:!1,position:t.props.position},(function(){t.tooltipTextEl&&i.unmountComponentAtNode(t.tooltipTextEl),t.unbindDocumentResizeListener(),t.unbindScrollListener(),t.currentTarget=null,t.scrollHandler=null,t.containerSize=null,t.allowHide=!0,t.sendCallback(t.props.onHide,{originalEvent:e,target:t.currentTarget})}))})))}},{key:"align",value:function(e,t){var n=this,i=0,r=0;if(this.isMouseTrack(e)&&t){var o={width:b.getOuterWidth(this.containerEl),height:b.getOuterHeight(this.containerEl)};i=t.x,r=t.y;var s=this.getMouseTrackPosition(e),a=s.top,l=s.left;switch(this.state.position){case"left":i-=o.width+l,r-=o.height/2-a;break;case"right":i+=l,r-=o.height/2-a;break;case"top":i-=o.width/2-l,r-=o.height+a;break;case"bottom":i-=o.width/2-l,r+=a}i<=0||this.containerSize.width>o.width?(this.containerEl.style.left="0px",this.containerEl.style.right=window.innerWidth-o.width-i+"px"):(this.containerEl.style.right="",this.containerEl.style.left=i+"px"),this.containerEl.style.top=r+"px",b.addClass(this.containerEl,"p-tooltip-active")}else{var u=b.findCollisionPosition(this.state.position),c=this.getTargetOption(e,"my")||this.props.my||u.my,f=this.getTargetOption(e,"at")||this.props.at||u.at;this.containerEl.style.padding="0px",b.flipfitCollision(this.containerEl,e,c,f,(function(e){var t=e.at,i=t.x,r=n.props.at?"center"!==i&&i!==e.my.x?i:t.y:e.at["".concat(u.axis)];n.containerEl.style.padding="",n.setState({position:r},(function(){n.updateContainerPosition(),b.addClass(n.containerEl,"p-tooltip-active")}))}))}}},{key:"updateContainerPosition",value:function(){if(this.containerEl){var e=getComputedStyle(this.containerEl);"left"===this.state.position?this.containerEl.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===this.state.position&&(this.containerEl.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}}},{key:"onMouseEnter",value:function(){this.isAutoHide()||(this.allowHide=!1)}},{key:"onMouseLeave",value:function(e){this.isAutoHide()||(this.allowHide=!0,this.hide(e))}},{key:"bindDocumentResizeListener",value:function(){var e=this;this.documentResizeListener=function(t){b.isAndroid()||e.hide(t)},window.addEventListener("resize",this.documentResizeListener)}},{key:"unbindDocumentResizeListener",value:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}},{key:"bindScrollListener",value:function(){var e=this;this.scrollHandler||(this.scrollHandler=new E(this.currentTarget,(function(t){e.state.visible&&e.hide(t)}))),this.scrollHandler.bindScrollListener()}},{key:"unbindScrollListener",value:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}},{key:"bindTargetEvent",value:function(e){if(e){var t=this.getEvents(e),n=t.hideEvent;e.addEventListener(t.showEvent,this.show),e.addEventListener(n,this.hide)}}},{key:"unbindTargetEvent",value:function(e){if(e){var t=this.getEvents(e),n=t.hideEvent;e.removeEventListener(t.showEvent,this.show),e.removeEventListener(n,this.hide)}}},{key:"applyDelay",value:function(e,t){this.clearTimeouts();var n=this.getTargetOption(this.currentTarget,e.toLowerCase())||this.props[e];n?this["".concat(e,"Timeout")]=setTimeout((function(){return t()}),n):t()}},{key:"sendCallback",value:function(e){if(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.apply(void 0,n)}}},{key:"clearTimeouts",value:function(){clearTimeout(this.showDelayTimeout),clearTimeout(this.updateDelayTimeout),clearTimeout(this.hideDelayTimeout)}},{key:"updateTargetEvents",value:function(e){this.unloadTargetEvents(e),this.loadTargetEvents(e)}},{key:"loadTargetEvents",value:function(e){this.setTargetEventOperations(e||this.props.target,"bindTargetEvent")}},{key:"unloadTargetEvents",value:function(e){this.setTargetEventOperations(e||this.props.target,"unbindTargetEvent")}},{key:"setTargetEventOperations",value:function(e,t){var n=this;if(e)if(b.isElement(e))this[t](e);else{var i=function(e){b.find(document,e).forEach((function(e){n[t](e)}))};e instanceof Array?e.forEach((function(e){i(e)})):i(e)}}},{key:"componentDidMount",value:function(){this.props.target&&this.loadTargetEvents()}},{key:"componentDidUpdate",value:function(e,t){var n=this;e.target!==this.props.target&&(this.unloadTargetEvents(e.target),this.loadTargetEvents()),this.state.visible&&(e.content!==this.props.content&&this.applyDelay("updateDelay",(function(){n.updateText(n.currentTarget,(function(){n.align(n.currentTarget)}))})),this.currentTarget&&this.isDisabled(this.currentTarget)&&this.hide())}},{key:"componentWillUnmount",value:function(){this.clearTimeouts(),this.unbindDocumentResizeListener(),this.unloadTargetEvents(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),F.clear(this.containerEl)}},{key:"renderElement",value:function(){var e=this,n=p("p-tooltip p-component",k({},"p-tooltip-".concat(this.state.position),!0),this.props.className),i=this.isTargetContentEmpty(this.currentTarget);return t.createElement("div",{id:this.props.id,ref:function(t){return e.containerEl=t},className:n,style:this.props.style,role:"tooltip","aria-hidden":this.state.visible,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},t.createElement("div",{className:"p-tooltip-arrow"}),t.createElement("div",{ref:function(t){return e.tooltipTextEl=t},className:"p-tooltip-text"},i&&this.props.children))}},{key:"render",value:function(){if(this.state.visible){var e=this.renderElement();return t.createElement(Y,{element:e,appendTo:this.props.appendTo,visible:!0})}return null}}]),a}();k(Z,"defaultProps",{id:null,target:null,content:null,disabled:!1,className:null,style:null,appendTo:null,position:"right",my:null,at:null,event:null,showEvent:"mouseenter",hideEvent:"mouseleave",autoZIndex:!0,baseZIndex:0,mouseTrack:!1,mouseTrackTop:5,mouseTrackLeft:5,showDelay:0,updateDelay:0,hideDelay:0,autoHide:!0,onBeforeShow:null,onBeforeHide:null,onShow:null,onHide:null});var $=w();function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var ee=function(e){M(a,n);var i,o,s=(i=a,o=Q(),function(){var e,t=N(i);if(o){var n=N(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return B(this,e)});function a(e){var t;return h(this,a),(t=s.call(this,e)).onEnter=t.onEnter.bind(H(t)),t.onEntering=t.onEntering.bind(H(t)),t.onEntered=t.onEntered.bind(H(t)),t.onExit=t.onExit.bind(H(t)),t.onExiting=t.onExiting.bind(H(t)),t.onExited=t.onExited.bind(H(t)),t}return g(a,[{key:"onEnter",value:function(e,t){this.props.onEnter&&this.props.onEnter(e,t),this.props.options&&this.props.options.onEnter&&this.props.options.onEnter(e,t)}},{key:"onEntering",value:function(e,t){this.props.onEntering&&this.props.onEntering(e,t),this.props.options&&this.props.options.onEntering&&this.props.options.onEntering(e,t)}},{key:"onEntered",value:function(e,t){this.props.onEntered&&this.props.onEntered(e,t),this.props.options&&this.props.options.onEntered&&this.props.options.onEntered(e,t)}},{key:"onExit",value:function(e){this.props.onExit&&this.props.onExit(e),this.props.options&&this.props.options.onExit&&this.props.options.onExit(e)}},{key:"onExiting",value:function(e){this.props.onExiting&&this.props.onExiting(e),this.props.options&&this.props.options.onExiting&&this.props.options.onExiting(e)}},{key:"onExited",value:function(e){this.props.onExited&&this.props.onExited(e),this.props.options&&this.props.options.onExited&&this.props.options.onExited(e)}},{key:"render",value:function(){var e={nodeRef:this.props.nodeRef,in:this.props.in,onEnter:this.onEnter,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited},n=G(G(G({},{classNames:this.props.classNames,timeout:this.props.timeout,unmountOnExit:this.props.unmountOnExit}),this.props.options||{}),e);return t.createElement(r,n,this.props.children)}}]),a}();export{ee as CSSTransition,E as ConnectedOverlayScrollHandler,b as DomHandler,w as EventBus,z as KeyFilter,C as ObjectUtils,$ as OverlayService,Y as Portal,U as Ripple,Z as Tooltip,L as UniqueComponentId,F as ZIndexUtils,p as classNames,O as mask,q as tip};
package/core/package.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "main": "./core.cjs.js",
3
- "module": "./core.esm.js",
4
- "unpkg": "./core.min.js"
5
- }
package/util.d.ts DELETED
@@ -1 +0,0 @@
1
- export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;