primereact 7.0.0-rc.2 → 7.2.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 (823) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +35 -10
  3. package/accordion/accordion.cjs.js +55 -42
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.d.ts +7 -3
  6. package/accordion/accordion.esm.js +42 -29
  7. package/accordion/accordion.esm.min.js +1 -1
  8. package/accordion/accordion.js +55 -43
  9. package/accordion/accordion.min.js +1 -1
  10. package/api/api.cjs.js +109 -52
  11. package/api/api.cjs.min.js +1 -1
  12. package/api/api.d.ts +96 -61
  13. package/api/api.esm.js +96 -39
  14. package/api/api.esm.min.js +1 -1
  15. package/api/api.js +110 -53
  16. package/api/api.min.js +1 -1
  17. package/autocomplete/autocomplete.cjs.js +97 -89
  18. package/autocomplete/autocomplete.cjs.min.js +1 -1
  19. package/autocomplete/autocomplete.d.ts +11 -4
  20. package/autocomplete/autocomplete.esm.js +34 -26
  21. package/autocomplete/autocomplete.esm.min.js +1 -1
  22. package/autocomplete/autocomplete.js +93 -90
  23. package/autocomplete/autocomplete.min.js +1 -1
  24. package/avatar/avatar.cjs.js +21 -20
  25. package/avatar/avatar.cjs.min.js +1 -1
  26. package/avatar/avatar.d.ts +2 -1
  27. package/avatar/avatar.esm.js +16 -15
  28. package/avatar/avatar.esm.min.js +1 -1
  29. package/avatar/avatar.js +22 -21
  30. package/avatar/avatar.min.js +1 -1
  31. package/avatargroup/avatargroup.cjs.js +14 -14
  32. package/avatargroup/avatargroup.cjs.min.js +1 -1
  33. package/avatargroup/avatargroup.esm.js +12 -12
  34. package/avatargroup/avatargroup.esm.min.js +1 -1
  35. package/avatargroup/avatargroup.js +15 -15
  36. package/avatargroup/avatargroup.min.js +1 -1
  37. package/badge/badge.cjs.js +14 -14
  38. package/badge/badge.cjs.min.js +1 -1
  39. package/badge/badge.esm.js +12 -12
  40. package/badge/badge.esm.min.js +1 -1
  41. package/badge/badge.js +15 -15
  42. package/badge/badge.min.js +1 -1
  43. package/blockui/blockui.cjs.js +38 -27
  44. package/blockui/blockui.cjs.min.js +1 -1
  45. package/blockui/blockui.esm.js +28 -18
  46. package/blockui/blockui.esm.min.js +1 -1
  47. package/blockui/blockui.js +37 -28
  48. package/blockui/blockui.min.js +1 -1
  49. package/breadcrumb/breadcrumb.cjs.js +27 -27
  50. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  51. package/breadcrumb/breadcrumb.esm.js +12 -12
  52. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  53. package/breadcrumb/breadcrumb.js +28 -28
  54. package/breadcrumb/breadcrumb.min.js +1 -1
  55. package/button/button.cjs.js +44 -55
  56. package/button/button.cjs.min.js +1 -1
  57. package/button/button.d.ts +4 -11
  58. package/button/button.esm.js +33 -44
  59. package/button/button.esm.min.js +1 -1
  60. package/button/button.js +43 -56
  61. package/button/button.min.js +1 -1
  62. package/calendar/calendar.cjs.js +209 -170
  63. package/calendar/calendar.cjs.min.js +1 -1
  64. package/calendar/calendar.d.ts +7 -2
  65. package/calendar/calendar.esm.js +84 -45
  66. package/calendar/calendar.esm.min.js +1 -1
  67. package/calendar/calendar.js +205 -171
  68. package/calendar/calendar.min.css +1 -1
  69. package/calendar/calendar.min.js +1 -1
  70. package/captcha/captcha.cjs.js +12 -12
  71. package/captcha/captcha.cjs.min.js +1 -1
  72. package/captcha/captcha.esm.js +11 -11
  73. package/captcha/captcha.esm.min.js +1 -1
  74. package/captcha/captcha.js +13 -13
  75. package/captcha/captcha.min.js +1 -1
  76. package/card/card.cjs.js +24 -24
  77. package/card/card.cjs.min.js +1 -1
  78. package/card/card.esm.js +12 -12
  79. package/card/card.esm.min.js +1 -1
  80. package/card/card.js +25 -25
  81. package/card/card.min.js +1 -1
  82. package/carousel/carousel.cjs.js +60 -58
  83. package/carousel/carousel.cjs.min.js +1 -1
  84. package/carousel/carousel.esm.js +24 -23
  85. package/carousel/carousel.esm.min.js +1 -1
  86. package/carousel/carousel.js +59 -59
  87. package/carousel/carousel.min.js +1 -1
  88. package/cascadeselect/cascadeselect.cjs.js +65 -61
  89. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  90. package/cascadeselect/cascadeselect.d.ts +2 -1
  91. package/cascadeselect/cascadeselect.esm.js +21 -17
  92. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  93. package/cascadeselect/cascadeselect.js +62 -62
  94. package/cascadeselect/cascadeselect.min.js +1 -1
  95. package/chart/chart.cjs.js +19 -21
  96. package/chart/chart.cjs.min.js +1 -1
  97. package/chart/chart.esm.js +14 -14
  98. package/chart/chart.esm.min.js +1 -1
  99. package/chart/chart.js +18 -18
  100. package/chart/chart.min.js +1 -1
  101. package/checkbox/checkbox.cjs.js +33 -28
  102. package/checkbox/checkbox.cjs.min.js +1 -1
  103. package/checkbox/checkbox.d.ts +2 -1
  104. package/checkbox/checkbox.esm.js +26 -21
  105. package/checkbox/checkbox.esm.min.js +1 -1
  106. package/checkbox/checkbox.js +33 -29
  107. package/checkbox/checkbox.min.js +1 -1
  108. package/chip/chip.cjs.js +27 -25
  109. package/chip/chip.cjs.min.js +1 -1
  110. package/chip/chip.d.ts +3 -4
  111. package/chip/chip.esm.js +22 -20
  112. package/chip/chip.esm.min.js +1 -1
  113. package/chip/chip.js +28 -26
  114. package/chip/chip.min.js +1 -1
  115. package/chips/chips.cjs.js +59 -33
  116. package/chips/chips.cjs.min.js +1 -1
  117. package/chips/chips.d.ts +10 -0
  118. package/chips/chips.esm.js +50 -24
  119. package/chips/chips.esm.min.js +1 -1
  120. package/chips/chips.js +59 -34
  121. package/chips/chips.min.js +1 -1
  122. package/colorpicker/colorpicker.cjs.js +50 -46
  123. package/colorpicker/colorpicker.cjs.min.js +1 -1
  124. package/colorpicker/colorpicker.d.ts +20 -6
  125. package/colorpicker/colorpicker.esm.js +22 -18
  126. package/colorpicker/colorpicker.esm.min.js +1 -1
  127. package/colorpicker/colorpicker.js +47 -47
  128. package/colorpicker/colorpicker.min.js +1 -1
  129. package/column/column.cjs.js +31 -12
  130. package/column/column.cjs.min.js +1 -1
  131. package/column/column.d.ts +28 -2
  132. package/column/column.esm.js +31 -12
  133. package/column/column.esm.min.js +1 -1
  134. package/column/column.js +32 -13
  135. package/column/column.min.js +1 -1
  136. package/columngroup/columngroup.cjs.js +28 -12
  137. package/columngroup/columngroup.cjs.min.js +1 -1
  138. package/columngroup/columngroup.esm.js +28 -12
  139. package/columngroup/columngroup.esm.min.js +1 -1
  140. package/columngroup/columngroup.js +29 -13
  141. package/columngroup/columngroup.min.js +1 -1
  142. package/confirmdialog/confirmdialog.cjs.js +35 -33
  143. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  144. package/confirmdialog/confirmdialog.d.ts +4 -3
  145. package/confirmdialog/confirmdialog.esm.js +19 -17
  146. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  147. package/confirmdialog/confirmdialog.js +35 -34
  148. package/confirmdialog/confirmdialog.min.js +1 -1
  149. package/confirmpopup/confirmpopup.cjs.js +60 -55
  150. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  151. package/confirmpopup/confirmpopup.d.ts +6 -4
  152. package/confirmpopup/confirmpopup.esm.js +26 -22
  153. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  154. package/confirmpopup/confirmpopup.js +57 -55
  155. package/confirmpopup/confirmpopup.min.js +1 -1
  156. package/contextmenu/contextmenu.cjs.js +81 -76
  157. package/contextmenu/contextmenu.cjs.min.js +1 -1
  158. package/contextmenu/contextmenu.d.ts +2 -1
  159. package/contextmenu/contextmenu.esm.js +48 -44
  160. package/contextmenu/contextmenu.esm.min.js +1 -1
  161. package/contextmenu/contextmenu.js +78 -77
  162. package/contextmenu/contextmenu.min.js +1 -1
  163. package/core/core.js +11284 -852
  164. package/core/core.min.js +40 -1
  165. package/csstransition/csstransition.cjs.js +62 -32
  166. package/csstransition/csstransition.cjs.min.js +1 -1
  167. package/csstransition/csstransition.d.ts +8 -0
  168. package/csstransition/csstransition.esm.js +61 -32
  169. package/csstransition/csstransition.esm.min.js +1 -1
  170. package/csstransition/csstransition.js +62 -34
  171. package/csstransition/csstransition.min.js +1 -1
  172. package/csstransition/package.json +2 -1
  173. package/datascroller/datascroller.cjs.js +23 -22
  174. package/datascroller/datascroller.cjs.min.js +1 -1
  175. package/datascroller/datascroller.esm.js +15 -14
  176. package/datascroller/datascroller.esm.min.js +1 -1
  177. package/datascroller/datascroller.js +23 -23
  178. package/datascroller/datascroller.min.js +1 -1
  179. package/datatable/datatable.cjs.js +838 -632
  180. package/datatable/datatable.cjs.min.js +1 -1
  181. package/datatable/datatable.d.ts +38 -14
  182. package/datatable/datatable.esm.js +575 -369
  183. package/datatable/datatable.esm.min.js +1 -1
  184. package/datatable/datatable.js +835 -633
  185. package/datatable/datatable.min.css +1 -1
  186. package/datatable/datatable.min.js +1 -1
  187. package/dataview/dataview.cjs.js +43 -40
  188. package/dataview/dataview.cjs.min.js +1 -1
  189. package/dataview/dataview.esm.js +17 -14
  190. package/dataview/dataview.esm.min.js +1 -1
  191. package/dataview/dataview.js +42 -41
  192. package/dataview/dataview.min.js +1 -1
  193. package/deferredcontent/deferredcontent.cjs.js +12 -12
  194. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  195. package/deferredcontent/deferredcontent.esm.js +11 -11
  196. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  197. package/deferredcontent/deferredcontent.js +13 -13
  198. package/deferredcontent/deferredcontent.min.js +1 -1
  199. package/dialog/dialog.cjs.js +78 -73
  200. package/dialog/dialog.cjs.min.js +1 -1
  201. package/dialog/dialog.d.ts +3 -1
  202. package/dialog/dialog.esm.js +31 -27
  203. package/dialog/dialog.esm.min.js +1 -1
  204. package/dialog/dialog.js +75 -74
  205. package/dialog/dialog.min.js +1 -1
  206. package/divider/divider.cjs.js +15 -15
  207. package/divider/divider.cjs.min.js +1 -1
  208. package/divider/divider.esm.js +12 -12
  209. package/divider/divider.esm.min.js +1 -1
  210. package/divider/divider.js +16 -16
  211. package/divider/divider.min.js +1 -1
  212. package/dock/dock.cjs.js +62 -28
  213. package/dock/dock.cjs.min.js +1 -1
  214. package/dock/dock.d.ts +13 -0
  215. package/dock/dock.esm.js +50 -16
  216. package/dock/dock.esm.min.js +1 -1
  217. package/dock/dock.js +62 -29
  218. package/dock/dock.min.css +1 -1
  219. package/dock/dock.min.js +1 -1
  220. package/dropdown/dropdown.cjs.js +120 -98
  221. package/dropdown/dropdown.cjs.min.js +1 -1
  222. package/dropdown/dropdown.d.ts +2 -1
  223. package/dropdown/dropdown.esm.js +58 -36
  224. package/dropdown/dropdown.esm.min.js +1 -1
  225. package/dropdown/dropdown.js +116 -99
  226. package/dropdown/dropdown.min.js +1 -1
  227. package/editor/editor.cjs.js +58 -56
  228. package/editor/editor.cjs.min.js +1 -1
  229. package/editor/editor.d.ts +1 -0
  230. package/editor/editor.esm.js +22 -18
  231. package/editor/editor.esm.min.js +1 -1
  232. package/editor/editor.js +57 -53
  233. package/editor/editor.min.js +1 -1
  234. package/fieldset/fieldset.cjs.js +31 -29
  235. package/fieldset/fieldset.cjs.min.js +1 -1
  236. package/fieldset/fieldset.d.ts +2 -1
  237. package/fieldset/fieldset.esm.js +17 -15
  238. package/fieldset/fieldset.esm.min.js +1 -1
  239. package/fieldset/fieldset.js +30 -30
  240. package/fieldset/fieldset.min.js +1 -1
  241. package/fileupload/fileupload.cjs.js +79 -69
  242. package/fileupload/fileupload.cjs.min.js +1 -1
  243. package/fileupload/fileupload.d.ts +4 -1
  244. package/fileupload/fileupload.esm.js +40 -30
  245. package/fileupload/fileupload.esm.min.js +1 -1
  246. package/fileupload/fileupload.js +79 -70
  247. package/fileupload/fileupload.min.js +1 -1
  248. package/fullcalendar/fullcalendar.cjs.js +17 -19
  249. package/fullcalendar/fullcalendar.cjs.min.js +1 -1
  250. package/fullcalendar/fullcalendar.esm.js +12 -12
  251. package/fullcalendar/fullcalendar.esm.min.js +1 -1
  252. package/fullcalendar/fullcalendar.js +16 -16
  253. package/fullcalendar/fullcalendar.min.js +1 -1
  254. package/galleria/galleria.cjs.js +85 -81
  255. package/galleria/galleria.cjs.min.js +1 -1
  256. package/galleria/galleria.d.ts +2 -1
  257. package/galleria/galleria.esm.js +21 -18
  258. package/galleria/galleria.esm.min.js +1 -1
  259. package/galleria/galleria.js +82 -82
  260. package/galleria/galleria.min.js +1 -1
  261. package/gmap/gmap.cjs.js +13 -13
  262. package/gmap/gmap.cjs.min.js +1 -1
  263. package/gmap/gmap.esm.js +12 -12
  264. package/gmap/gmap.esm.min.js +1 -1
  265. package/gmap/gmap.js +14 -14
  266. package/gmap/gmap.min.js +1 -1
  267. package/image/image.cjs.js +69 -44
  268. package/image/image.cjs.min.js +1 -1
  269. package/image/image.d.ts +6 -5
  270. package/image/image.esm.js +44 -20
  271. package/image/image.esm.min.js +1 -1
  272. package/image/image.js +67 -45
  273. package/image/image.min.js +1 -1
  274. package/inplace/inplace.cjs.js +19 -19
  275. package/inplace/inplace.cjs.min.js +1 -1
  276. package/inplace/inplace.esm.js +12 -12
  277. package/inplace/inplace.esm.min.js +1 -1
  278. package/inplace/inplace.js +20 -20
  279. package/inplace/inplace.min.js +1 -1
  280. package/inputmask/inputmask.cjs.js +24 -23
  281. package/inputmask/inputmask.cjs.min.js +1 -1
  282. package/inputmask/inputmask.d.ts +1 -1
  283. package/inputmask/inputmask.esm.js +17 -16
  284. package/inputmask/inputmask.esm.min.js +1 -1
  285. package/inputmask/inputmask.js +24 -24
  286. package/inputmask/inputmask.min.js +1 -1
  287. package/inputnumber/inputnumber.cjs.js +90 -63
  288. package/inputnumber/inputnumber.cjs.min.js +1 -1
  289. package/inputnumber/inputnumber.d.ts +4 -4
  290. package/inputnumber/inputnumber.esm.js +73 -46
  291. package/inputnumber/inputnumber.esm.min.js +1 -1
  292. package/inputnumber/inputnumber.js +89 -64
  293. package/inputnumber/inputnumber.min.js +1 -1
  294. package/inputswitch/inputswitch.cjs.js +28 -25
  295. package/inputswitch/inputswitch.cjs.min.js +1 -1
  296. package/inputswitch/inputswitch.esm.js +21 -18
  297. package/inputswitch/inputswitch.esm.min.js +1 -1
  298. package/inputswitch/inputswitch.js +28 -26
  299. package/inputswitch/inputswitch.min.js +1 -1
  300. package/inputtext/inputtext.cjs.js +25 -23
  301. package/inputtext/inputtext.cjs.min.js +1 -1
  302. package/inputtext/inputtext.d.ts +1 -1
  303. package/inputtext/inputtext.esm.js +16 -14
  304. package/inputtext/inputtext.esm.min.js +1 -1
  305. package/inputtext/inputtext.js +24 -24
  306. package/inputtext/inputtext.min.css +1 -1
  307. package/inputtext/inputtext.min.js +1 -1
  308. package/inputtextarea/inputtextarea.cjs.js +23 -22
  309. package/inputtextarea/inputtextarea.cjs.min.js +1 -1
  310. package/inputtextarea/inputtextarea.d.ts +1 -1
  311. package/inputtextarea/inputtextarea.esm.js +15 -14
  312. package/inputtextarea/inputtextarea.esm.min.js +1 -1
  313. package/inputtextarea/inputtextarea.js +23 -23
  314. package/inputtextarea/inputtextarea.min.js +1 -1
  315. package/keyfilter/keyfilter.cjs.js +9 -6
  316. package/keyfilter/keyfilter.cjs.min.js +1 -1
  317. package/keyfilter/keyfilter.esm.js +5 -2
  318. package/keyfilter/keyfilter.esm.min.js +1 -1
  319. package/keyfilter/keyfilter.js +10 -7
  320. package/keyfilter/keyfilter.min.js +1 -1
  321. package/knob/knob.cjs.js +18 -18
  322. package/knob/knob.cjs.min.js +1 -1
  323. package/knob/knob.esm.js +12 -12
  324. package/knob/knob.esm.min.js +1 -1
  325. package/knob/knob.js +19 -19
  326. package/knob/knob.min.js +1 -1
  327. package/listbox/listbox.cjs.js +52 -50
  328. package/listbox/listbox.cjs.min.js +1 -1
  329. package/listbox/listbox.esm.js +17 -15
  330. package/listbox/listbox.esm.min.js +1 -1
  331. package/listbox/listbox.js +51 -51
  332. package/listbox/listbox.min.js +1 -1
  333. package/megamenu/megamenu.cjs.js +47 -46
  334. package/megamenu/megamenu.cjs.min.js +1 -1
  335. package/megamenu/megamenu.esm.js +13 -12
  336. package/megamenu/megamenu.esm.min.js +1 -1
  337. package/megamenu/megamenu.js +47 -47
  338. package/megamenu/megamenu.min.js +1 -1
  339. package/mention/mention.cjs.js +69 -62
  340. package/mention/mention.cjs.min.js +1 -1
  341. package/mention/mention.d.ts +2 -1
  342. package/mention/mention.esm.js +25 -19
  343. package/mention/mention.esm.min.js +1 -1
  344. package/mention/mention.js +64 -63
  345. package/mention/mention.min.js +1 -1
  346. package/menu/menu.cjs.js +45 -40
  347. package/menu/menu.cjs.min.js +1 -1
  348. package/menu/menu.d.ts +4 -1
  349. package/menu/menu.esm.js +19 -15
  350. package/menu/menu.esm.min.js +1 -1
  351. package/menu/menu.js +42 -41
  352. package/menu/menu.min.js +1 -1
  353. package/menubar/menubar.cjs.js +49 -46
  354. package/menubar/menubar.cjs.min.js +1 -1
  355. package/menubar/menubar.esm.js +15 -13
  356. package/menubar/menubar.esm.min.js +1 -1
  357. package/menubar/menubar.js +48 -47
  358. package/menubar/menubar.min.css +1 -1
  359. package/menubar/menubar.min.js +1 -1
  360. package/message/message.cjs.js +20 -19
  361. package/message/message.cjs.min.js +1 -1
  362. package/message/message.d.ts +3 -1
  363. package/message/message.esm.js +14 -13
  364. package/message/message.esm.min.js +1 -1
  365. package/message/message.js +21 -20
  366. package/message/message.min.js +1 -1
  367. package/messages/messages.cjs.js +30 -28
  368. package/messages/messages.cjs.min.js +1 -1
  369. package/messages/messages.d.ts +2 -1
  370. package/messages/messages.esm.js +14 -12
  371. package/messages/messages.esm.min.js +1 -1
  372. package/messages/messages.js +29 -29
  373. package/messages/messages.min.js +1 -1
  374. package/multiselect/multiselect.cjs.js +148 -136
  375. package/multiselect/multiselect.cjs.min.js +1 -1
  376. package/multiselect/multiselect.d.ts +5 -2
  377. package/multiselect/multiselect.esm.js +64 -52
  378. package/multiselect/multiselect.esm.min.js +1 -1
  379. package/multiselect/multiselect.js +144 -137
  380. package/multiselect/multiselect.min.js +1 -1
  381. package/multistatecheckbox/multistatecheckbox.cjs.js +27 -26
  382. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  383. package/multistatecheckbox/multistatecheckbox.d.ts +2 -1
  384. package/multistatecheckbox/multistatecheckbox.esm.js +15 -14
  385. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  386. package/multistatecheckbox/multistatecheckbox.js +27 -27
  387. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  388. package/orderlist/orderlist.cjs.js +46 -45
  389. package/orderlist/orderlist.cjs.min.js +1 -1
  390. package/orderlist/orderlist.esm.js +13 -12
  391. package/orderlist/orderlist.esm.min.js +1 -1
  392. package/orderlist/orderlist.js +46 -46
  393. package/orderlist/orderlist.min.js +1 -1
  394. package/organizationchart/organizationchart.cjs.js +37 -37
  395. package/organizationchart/organizationchart.cjs.min.js +1 -1
  396. package/organizationchart/organizationchart.esm.js +12 -12
  397. package/organizationchart/organizationchart.esm.min.js +1 -1
  398. package/organizationchart/organizationchart.js +38 -38
  399. package/organizationchart/organizationchart.min.css +1 -1
  400. package/organizationchart/organizationchart.min.js +1 -1
  401. package/overlaypanel/overlaypanel.cjs.js +45 -42
  402. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  403. package/overlaypanel/overlaypanel.d.ts +3 -2
  404. package/overlaypanel/overlaypanel.esm.js +23 -21
  405. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  406. package/overlaypanel/overlaypanel.js +41 -43
  407. package/overlaypanel/overlaypanel.min.js +1 -1
  408. package/overlayservice/overlayservice.cjs.js +2 -2
  409. package/overlayservice/overlayservice.cjs.min.js +1 -1
  410. package/overlayservice/overlayservice.esm.js +1 -1
  411. package/overlayservice/overlayservice.esm.min.js +1 -1
  412. package/overlayservice/overlayservice.js +3 -3
  413. package/overlayservice/overlayservice.min.js +1 -1
  414. package/package.json +11 -4
  415. package/paginator/paginator.cjs.js +61 -60
  416. package/paginator/paginator.cjs.min.js +1 -1
  417. package/paginator/paginator.esm.js +15 -14
  418. package/paginator/paginator.esm.min.js +1 -1
  419. package/paginator/paginator.js +61 -61
  420. package/paginator/paginator.min.js +1 -1
  421. package/panel/panel.cjs.js +35 -32
  422. package/panel/panel.cjs.min.js +1 -1
  423. package/panel/panel.d.ts +5 -3
  424. package/panel/panel.esm.js +20 -17
  425. package/panel/panel.esm.min.js +1 -1
  426. package/panel/panel.js +34 -33
  427. package/panel/panel.min.js +1 -1
  428. package/panelmenu/panelmenu.cjs.js +53 -52
  429. package/panelmenu/panelmenu.cjs.min.js +1 -1
  430. package/panelmenu/panelmenu.d.ts +2 -1
  431. package/panelmenu/panelmenu.esm.js +15 -14
  432. package/panelmenu/panelmenu.esm.min.js +1 -1
  433. package/panelmenu/panelmenu.js +53 -53
  434. package/panelmenu/panelmenu.min.js +1 -1
  435. package/password/password.cjs.js +47 -43
  436. package/password/password.cjs.min.js +1 -1
  437. package/password/password.d.ts +3 -2
  438. package/password/password.esm.js +21 -17
  439. package/password/password.esm.min.js +1 -1
  440. package/password/password.js +44 -44
  441. package/password/password.min.js +1 -1
  442. package/picklist/picklist.cjs.js +69 -65
  443. package/picklist/picklist.cjs.min.js +1 -1
  444. package/picklist/picklist.esm.js +25 -21
  445. package/picklist/picklist.esm.min.js +1 -1
  446. package/picklist/picklist.js +69 -66
  447. package/picklist/picklist.min.js +1 -1
  448. package/portal/portal.cjs.js +17 -20
  449. package/portal/portal.cjs.min.js +1 -1
  450. package/portal/portal.esm.js +15 -18
  451. package/portal/portal.esm.min.js +1 -1
  452. package/portal/portal.js +18 -22
  453. package/portal/portal.min.js +1 -1
  454. package/primereact.all.cjs.js +3793 -2921
  455. package/primereact.all.cjs.min.js +1 -1
  456. package/primereact.all.esm.js +2567 -1694
  457. package/primereact.all.esm.min.js +1 -1
  458. package/primereact.all.js +3792 -2918
  459. package/primereact.all.min.js +1 -1
  460. package/progressbar/progressbar.cjs.js +20 -20
  461. package/progressbar/progressbar.cjs.min.js +1 -1
  462. package/progressbar/progressbar.esm.js +12 -12
  463. package/progressbar/progressbar.esm.min.js +1 -1
  464. package/progressbar/progressbar.js +21 -21
  465. package/progressbar/progressbar.min.js +1 -1
  466. package/progressspinner/progressspinner.cjs.js +16 -16
  467. package/progressspinner/progressspinner.cjs.min.js +1 -1
  468. package/progressspinner/progressspinner.esm.js +12 -12
  469. package/progressspinner/progressspinner.esm.min.js +1 -1
  470. package/progressspinner/progressspinner.js +17 -17
  471. package/progressspinner/progressspinner.min.js +1 -1
  472. package/radiobutton/radiobutton.cjs.js +23 -22
  473. package/radiobutton/radiobutton.cjs.min.js +1 -1
  474. package/radiobutton/radiobutton.esm.js +15 -14
  475. package/radiobutton/radiobutton.esm.min.js +1 -1
  476. package/radiobutton/radiobutton.js +23 -23
  477. package/radiobutton/radiobutton.min.js +1 -1
  478. package/rating/rating.cjs.js +23 -22
  479. package/rating/rating.cjs.min.js +1 -1
  480. package/rating/rating.esm.js +17 -16
  481. package/rating/rating.esm.min.js +1 -1
  482. package/rating/rating.js +23 -23
  483. package/rating/rating.min.js +1 -1
  484. package/resources/primereact.css +216 -140
  485. package/resources/primereact.min.css +1 -1
  486. package/resources/themes/arya-blue/theme.css +94 -42
  487. package/resources/themes/arya-green/theme.css +94 -42
  488. package/resources/themes/arya-orange/theme.css +94 -42
  489. package/resources/themes/arya-purple/theme.css +94 -42
  490. package/resources/themes/bootstrap4-dark-blue/theme.css +75 -30
  491. package/resources/themes/bootstrap4-dark-purple/theme.css +75 -30
  492. package/resources/themes/bootstrap4-light-blue/theme.css +74 -29
  493. package/resources/themes/bootstrap4-light-purple/theme.css +74 -29
  494. package/resources/themes/fluent-light/theme.css +94 -42
  495. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  496. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  497. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  498. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  499. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  500. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  501. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  502. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  503. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  504. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  505. package/resources/themes/lara-dark-blue/theme.css +5707 -0
  506. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  507. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  508. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  509. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  510. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  511. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  512. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  513. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  514. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  515. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  516. package/resources/themes/lara-dark-indigo/theme.css +5707 -0
  517. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  518. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  519. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  520. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  521. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  522. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  523. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  524. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  525. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  526. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  527. package/resources/themes/lara-dark-purple/theme.css +5707 -0
  528. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  529. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  530. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  531. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  532. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  533. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  534. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  535. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  536. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  537. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  538. package/resources/themes/lara-dark-teal/theme.css +5707 -0
  539. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  540. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  541. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  542. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  543. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  544. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  545. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  546. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  547. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  548. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  549. package/resources/themes/lara-light-blue/theme.css +5707 -0
  550. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  551. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  552. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  553. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  554. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  555. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  556. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  557. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  558. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  559. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  560. package/resources/themes/lara-light-indigo/theme.css +5707 -0
  561. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  562. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  563. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  564. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  565. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  566. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  567. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  568. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  569. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  570. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  571. package/resources/themes/lara-light-purple/theme.css +5707 -0
  572. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  573. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  574. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  575. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  576. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  577. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  578. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  579. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  580. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  581. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  582. package/resources/themes/lara-light-teal/theme.css +5707 -0
  583. package/resources/themes/luna-amber/theme.css +91 -46
  584. package/resources/themes/luna-blue/theme.css +91 -46
  585. package/resources/themes/luna-green/theme.css +91 -46
  586. package/resources/themes/luna-pink/theme.css +91 -46
  587. package/resources/themes/md-dark-deeppurple/theme.css +265 -53
  588. package/resources/themes/md-dark-indigo/theme.css +265 -53
  589. package/resources/themes/md-light-deeppurple/theme.css +265 -53
  590. package/resources/themes/md-light-indigo/theme.css +265 -53
  591. package/resources/themes/mdc-dark-deeppurple/theme.css +265 -53
  592. package/resources/themes/mdc-dark-indigo/theme.css +265 -53
  593. package/resources/themes/mdc-light-deeppurple/theme.css +265 -53
  594. package/resources/themes/mdc-light-indigo/theme.css +265 -53
  595. package/resources/themes/nova/theme.css +91 -46
  596. package/resources/themes/nova-accent/theme.css +91 -46
  597. package/resources/themes/nova-alt/theme.css +91 -46
  598. package/resources/themes/rhea/theme.css +91 -46
  599. package/resources/themes/saga-blue/theme.css +77 -25
  600. package/resources/themes/saga-green/theme.css +77 -25
  601. package/resources/themes/saga-orange/theme.css +77 -25
  602. package/resources/themes/saga-purple/theme.css +77 -25
  603. package/resources/themes/tailwind-light/theme.css +101 -49
  604. package/resources/themes/vela-blue/theme.css +94 -42
  605. package/resources/themes/vela-green/theme.css +94 -42
  606. package/resources/themes/vela-orange/theme.css +94 -42
  607. package/resources/themes/vela-purple/theme.css +94 -42
  608. package/ripple/ripple.cjs.js +22 -22
  609. package/ripple/ripple.cjs.min.js +1 -1
  610. package/ripple/ripple.esm.js +14 -14
  611. package/ripple/ripple.esm.min.js +1 -1
  612. package/ripple/ripple.js +23 -23
  613. package/ripple/ripple.min.js +1 -1
  614. package/row/row.cjs.js +12 -12
  615. package/row/row.cjs.min.js +1 -1
  616. package/row/row.esm.js +11 -11
  617. package/row/row.esm.min.js +1 -1
  618. package/row/row.js +13 -13
  619. package/row/row.min.js +1 -1
  620. package/scrollpanel/scrollpanel.cjs.js +30 -30
  621. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  622. package/scrollpanel/scrollpanel.esm.js +12 -12
  623. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  624. package/scrollpanel/scrollpanel.js +31 -31
  625. package/scrollpanel/scrollpanel.min.js +1 -1
  626. package/scrolltop/scrolltop.cjs.js +30 -25
  627. package/scrolltop/scrolltop.cjs.min.js +1 -1
  628. package/scrolltop/scrolltop.d.ts +4 -2
  629. package/scrolltop/scrolltop.esm.js +21 -17
  630. package/scrolltop/scrolltop.esm.min.js +1 -1
  631. package/scrolltop/scrolltop.js +28 -26
  632. package/scrolltop/scrolltop.min.js +1 -1
  633. package/selectbutton/selectbutton.cjs.js +31 -29
  634. package/selectbutton/selectbutton.cjs.min.js +1 -1
  635. package/selectbutton/selectbutton.esm.js +17 -15
  636. package/selectbutton/selectbutton.esm.min.js +1 -1
  637. package/selectbutton/selectbutton.js +30 -30
  638. package/selectbutton/selectbutton.min.js +1 -1
  639. package/selectitem/selectitem.d.ts +3 -1
  640. package/sidebar/sidebar.cjs.js +154 -127
  641. package/sidebar/sidebar.cjs.min.js +1 -1
  642. package/sidebar/sidebar.d.ts +4 -1
  643. package/sidebar/sidebar.esm.js +145 -119
  644. package/sidebar/sidebar.esm.min.js +1 -1
  645. package/sidebar/sidebar.js +151 -128
  646. package/sidebar/sidebar.min.css +1 -1
  647. package/sidebar/sidebar.min.js +1 -1
  648. package/skeleton/skeleton.cjs.js +14 -14
  649. package/skeleton/skeleton.cjs.min.js +1 -1
  650. package/skeleton/skeleton.esm.js +12 -12
  651. package/skeleton/skeleton.esm.min.js +1 -1
  652. package/skeleton/skeleton.js +15 -15
  653. package/skeleton/skeleton.min.js +1 -1
  654. package/slidemenu/slidemenu.cjs.js +49 -44
  655. package/slidemenu/slidemenu.cjs.min.js +1 -1
  656. package/slidemenu/slidemenu.d.ts +2 -1
  657. package/slidemenu/slidemenu.esm.js +19 -15
  658. package/slidemenu/slidemenu.esm.min.js +1 -1
  659. package/slidemenu/slidemenu.js +46 -45
  660. package/slidemenu/slidemenu.min.js +1 -1
  661. package/slider/slider.cjs.js +40 -30
  662. package/slider/slider.cjs.min.js +1 -1
  663. package/slider/slider.esm.js +32 -22
  664. package/slider/slider.esm.min.js +1 -1
  665. package/slider/slider.js +41 -31
  666. package/slider/slider.min.js +1 -1
  667. package/speeddial/speeddial.cjs.js +33 -32
  668. package/speeddial/speeddial.cjs.min.js +1 -1
  669. package/speeddial/speeddial.d.ts +3 -2
  670. package/speeddial/speeddial.esm.js +15 -14
  671. package/speeddial/speeddial.esm.min.js +1 -1
  672. package/speeddial/speeddial.js +33 -33
  673. package/speeddial/speeddial.min.js +1 -1
  674. package/splitbutton/splitbutton.cjs.js +58 -50
  675. package/splitbutton/splitbutton.cjs.min.js +1 -1
  676. package/splitbutton/splitbutton.d.ts +8 -6
  677. package/splitbutton/splitbutton.esm.js +28 -20
  678. package/splitbutton/splitbutton.esm.min.js +1 -1
  679. package/splitbutton/splitbutton.js +55 -51
  680. package/splitbutton/splitbutton.min.js +1 -1
  681. package/splitter/splitter.cjs.js +31 -31
  682. package/splitter/splitter.cjs.min.js +1 -1
  683. package/splitter/splitter.esm.js +14 -14
  684. package/splitter/splitter.esm.min.js +1 -1
  685. package/splitter/splitter.js +32 -32
  686. package/splitter/splitter.min.js +1 -1
  687. package/steps/steps.cjs.js +21 -21
  688. package/steps/steps.cjs.min.js +1 -1
  689. package/steps/steps.esm.js +12 -12
  690. package/steps/steps.esm.min.js +1 -1
  691. package/steps/steps.js +22 -22
  692. package/steps/steps.min.js +1 -1
  693. package/styleclass/styleclass.cjs.js +28 -28
  694. package/styleclass/styleclass.cjs.min.js +1 -1
  695. package/styleclass/styleclass.esm.js +12 -12
  696. package/styleclass/styleclass.esm.min.js +1 -1
  697. package/styleclass/styleclass.js +29 -29
  698. package/styleclass/styleclass.min.js +1 -1
  699. package/tabmenu/tabmenu.cjs.js +27 -26
  700. package/tabmenu/tabmenu.cjs.min.js +1 -1
  701. package/tabmenu/tabmenu.esm.js +13 -12
  702. package/tabmenu/tabmenu.esm.min.js +1 -1
  703. package/tabmenu/tabmenu.js +27 -27
  704. package/tabmenu/tabmenu.min.js +1 -1
  705. package/tabview/tabview.cjs.js +224 -79
  706. package/tabview/tabview.cjs.min.js +1 -1
  707. package/tabview/tabview.d.ts +12 -1
  708. package/tabview/tabview.esm.js +194 -49
  709. package/tabview/tabview.esm.min.js +1 -1
  710. package/tabview/tabview.js +224 -80
  711. package/tabview/tabview.min.css +1 -1
  712. package/tabview/tabview.min.js +1 -1
  713. package/tag/tag.cjs.js +20 -19
  714. package/tag/tag.cjs.min.js +1 -1
  715. package/tag/tag.d.ts +2 -1
  716. package/tag/tag.esm.js +16 -15
  717. package/tag/tag.esm.min.js +1 -1
  718. package/tag/tag.js +21 -20
  719. package/tag/tag.min.js +1 -1
  720. package/terminal/terminal.cjs.js +23 -23
  721. package/terminal/terminal.cjs.min.js +1 -1
  722. package/terminal/terminal.esm.js +12 -12
  723. package/terminal/terminal.esm.min.js +1 -1
  724. package/terminal/terminal.js +24 -24
  725. package/terminal/terminal.min.js +1 -1
  726. package/terminalservice/terminalservice.cjs.js +2 -2
  727. package/terminalservice/terminalservice.cjs.min.js +1 -1
  728. package/terminalservice/terminalservice.esm.js +1 -1
  729. package/terminalservice/terminalservice.esm.min.js +1 -1
  730. package/terminalservice/terminalservice.js +3 -3
  731. package/terminalservice/terminalservice.min.js +1 -1
  732. package/tieredmenu/tieredmenu.cjs.js +54 -48
  733. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  734. package/tieredmenu/tieredmenu.d.ts +2 -1
  735. package/tieredmenu/tieredmenu.esm.js +20 -15
  736. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  737. package/tieredmenu/tieredmenu.js +50 -49
  738. package/tieredmenu/tieredmenu.min.js +1 -1
  739. package/timeline/timeline.cjs.js +23 -23
  740. package/timeline/timeline.cjs.min.js +1 -1
  741. package/timeline/timeline.esm.js +12 -12
  742. package/timeline/timeline.esm.min.js +1 -1
  743. package/timeline/timeline.js +24 -24
  744. package/timeline/timeline.min.js +1 -1
  745. package/toast/toast.cjs.js +72 -55
  746. package/toast/toast.cjs.min.js +1 -1
  747. package/toast/toast.d.ts +5 -1
  748. package/toast/toast.esm.js +46 -30
  749. package/toast/toast.esm.min.js +1 -1
  750. package/toast/toast.js +69 -56
  751. package/toast/toast.min.js +1 -1
  752. package/togglebutton/togglebutton.cjs.js +27 -22
  753. package/togglebutton/togglebutton.cjs.min.js +1 -1
  754. package/togglebutton/togglebutton.d.ts +3 -2
  755. package/togglebutton/togglebutton.esm.js +21 -16
  756. package/togglebutton/togglebutton.esm.min.js +1 -1
  757. package/togglebutton/togglebutton.js +26 -23
  758. package/togglebutton/togglebutton.min.js +1 -1
  759. package/toolbar/toolbar.cjs.js +18 -18
  760. package/toolbar/toolbar.cjs.min.js +1 -1
  761. package/toolbar/toolbar.esm.js +12 -12
  762. package/toolbar/toolbar.esm.min.js +1 -1
  763. package/toolbar/toolbar.js +19 -19
  764. package/toolbar/toolbar.min.js +1 -1
  765. package/tooltip/tooltip.cjs.js +78 -49
  766. package/tooltip/tooltip.cjs.min.js +1 -1
  767. package/tooltip/tooltip.d.ts +0 -1
  768. package/tooltip/tooltip.esm.js +49 -21
  769. package/tooltip/tooltip.esm.min.js +1 -1
  770. package/tooltip/tooltip.js +77 -50
  771. package/tooltip/tooltip.min.css +1 -1
  772. package/tooltip/tooltip.min.js +1 -1
  773. package/tooltip/tooltipoptions.d.ts +2 -0
  774. package/tree/tree.cjs.js +69 -68
  775. package/tree/tree.cjs.min.js +1 -1
  776. package/tree/tree.d.ts +14 -3
  777. package/tree/tree.esm.js +19 -18
  778. package/tree/tree.esm.min.js +1 -1
  779. package/tree/tree.js +69 -69
  780. package/tree/tree.min.js +1 -1
  781. package/treenode/treenode.d.ts +4 -1
  782. package/treeselect/treeselect.cjs.js +66 -62
  783. package/treeselect/treeselect.cjs.min.js +1 -1
  784. package/treeselect/treeselect.d.ts +11 -3
  785. package/treeselect/treeselect.esm.js +26 -22
  786. package/treeselect/treeselect.esm.min.js +1 -1
  787. package/treeselect/treeselect.js +63 -63
  788. package/treeselect/treeselect.min.js +1 -1
  789. package/treetable/treetable.cjs.js +1393 -330
  790. package/treetable/treetable.cjs.min.js +1 -1
  791. package/treetable/treetable.d.ts +11 -3
  792. package/treetable/treetable.esm.js +1303 -240
  793. package/treetable/treetable.esm.min.js +1 -1
  794. package/treetable/treetable.js +1392 -331
  795. package/treetable/treetable.min.css +1 -1
  796. package/treetable/treetable.min.js +1 -1
  797. package/tristatecheckbox/tristatecheckbox.cjs.js +24 -23
  798. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  799. package/tristatecheckbox/tristatecheckbox.esm.js +15 -14
  800. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  801. package/tristatecheckbox/tristatecheckbox.js +24 -24
  802. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  803. package/utils/utils.cjs.js +174 -51
  804. package/utils/utils.cjs.min.js +1 -1
  805. package/utils/utils.d.ts +18 -0
  806. package/utils/utils.esm.js +173 -51
  807. package/utils/utils.esm.min.js +1 -1
  808. package/utils/utils.js +175 -52
  809. package/utils/utils.min.js +1 -1
  810. package/virtualscroller/virtualscroller.cjs.js +79 -53
  811. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  812. package/virtualscroller/virtualscroller.esm.js +64 -38
  813. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  814. package/virtualscroller/virtualscroller.js +80 -54
  815. package/virtualscroller/virtualscroller.min.css +1 -1
  816. package/virtualscroller/virtualscroller.min.js +1 -1
  817. package/web-types.json +45 -8
  818. package/core/core.cjs.js +0 -2987
  819. package/core/core.cjs.min.js +0 -1
  820. package/core/core.esm.js +0 -2963
  821. package/core/core.esm.min.js +0 -1
  822. package/core/package.json +0 -5
  823. package/util.d.ts +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/core");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e){if(Array.isArray(e))return r(e)}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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&&f(e,t)}function m(e){return(m="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 y(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=N();return function(){var n,o=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return y(this,n)}}function N(){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 S=function(n){h(i,e.Component);var r=b(i);function i(e){var t;return d(this,i),(t=r.call(this,e)).node=t.props.node,t.state={expanded:t.node.expanded},t}return p(i,[{key:"getLeaf",value:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)}},{key:"getColspan",value:function(){return this.node.children&&this.node.children.length?2*this.node.children.length:null}},{key:"onNodeClick",value:function(e,t){this.props.onNodeClick(e,t)}},{key:"toggleNode",value:function(e,t){this.setState((function(e){return{expanded:!e.expanded}})),e.preventDefault()}},{key:"isSelected",value:function(){return this.props.isSelected(this.node)}},{key:"render",value:function(){var e=this;this.node=this.props.node;var n=this.getColspan(),r=t.classNames("p-organizationchart-node-content",this.node.className,{"p-organizationchart-selectable-node":this.props.selectionMode&&!1!==this.node.selectable,"p-highlight":this.isSelected()}),l=this.props.nodeTemplate&&this.props.nodeTemplate(this.node)?o.default.createElement("div",null,this.props.nodeTemplate(this.node)):o.default.createElement("div",null,this.node.label),a=t.classNames("p-node-toggler-icon",{"pi pi-chevron-down":this.state.expanded,"pi pi-chevron-up":!this.state.expanded}),s=o.default.createElement("tr",null,o.default.createElement("td",{colSpan:n},o.default.createElement("div",{className:r,onClick:function(t){return e.onNodeClick(t,e.node)}},l,!this.getLeaf()&&o.default.createElement("a",{href:"#",className:"p-node-toggler",onClick:function(t){return e.toggleNode(t,e.node)}},o.default.createElement("i",{className:a}))))),c=!this.getLeaf()&&this.state.expanded?"inherit":"hidden",d=o.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},o.default.createElement("td",{colSpan:n},o.default.createElement("div",{className:"p-organizationchart-line-down"}))),u=this.node.children&&this.node.children.length,p=o.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},this.node.children&&1===this.node.children.length&&o.default.createElement("td",{colSpan:this.getColspan()},o.default.createElement("div",{className:"p-organizationchart-line-down"})),this.node.children&&this.node.children.length>1&&this.node.children.map((function(e,n){var r=t.classNames("p-organizationchart-line-left",{"p-organizationchart-line-top":0!==n}),i=t.classNames("p-organizationchart-line-right",{"p-organizationchart-line-top":n!==u-1});return[o.default.createElement("td",{key:n+"_lineleft",className:r}," "),o.default.createElement("td",{key:n+"_lineright",className:i}," ")]}))),f=o.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-nodes"},this.node.children&&this.node.children.map((function(t,n){return o.default.createElement("td",{key:n,colSpan:"2"},o.default.createElement(i,{node:t,nodeTemplate:e.props.nodeTemplate,selectionMode:e.props.selectionMode,onNodeClick:e.props.onNodeClick,isSelected:e.props.isSelected}))})));return o.default.createElement("table",{className:"p-organizationchart-table"},o.default.createElement("tbody",null,s,d,p,f))}}]),i}();g(S,"defaultProps",{node:null,nodeTemplate:null,root:!1,first:!1,last:!1,selectionMode:null,onNodeClick:null,isSelected:null});var E=function(n){h(u,e.Component);var r=b(u);function u(e){var t;return d(this,u),(t=r.call(this,e)).root=t.props.value&&t.props.value.length?t.props.value[0]:null,t.onNodeClick=t.onNodeClick.bind(c(t)),t.isSelected=t.isSelected.bind(c(t)),t}return p(u,[{key:"onNodeClick",value:function(e,t){if(this.props.selectionMode){var n=e.target;if(n.className&&(-1!==n.className.indexOf("p-node-toggler")||-1!==n.className.indexOf("p-node-toggler-icon")))return;if(!1===t.selectable)return;var o,r=this.findIndexInSelection(t),c=r>=0;"single"===this.props.selectionMode?c?(o=null,this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=t,this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t})):"multiple"===this.props.selectionMode&&(c?(o=this.props.selection.filter((function(e,t){return t!==r})),this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=[].concat(i(d=this.props.selection||[])||l(d)||a(d)||s(),[t]),this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t}))),this.props.onSelectionChange&&this.props.onSelectionChange({originalEvent:e,data:o})}var d}},{key:"findIndexInSelection",value:function(e){var t=-1;if(this.props.selectionMode&&this.props.selection)if("single"===this.props.selectionMode)t=this.props.selection===e?0:-1;else if("multiple"===this.props.selectionMode)for(var n=0;n<this.props.selection.length;n++)if(this.props.selection[n]===e){t=n;break}return t}},{key:"isSelected",value:function(e){return-1!==this.findIndexInSelection(e)}},{key:"render",value:function(){this.root=this.props.value&&this.props.value.length?this.props.value[0]:null;var e=t.classNames("p-organizationchart p-component",this.props.className);return o.default.createElement("div",{id:this.props.id,style:this.props.style,className:e},o.default.createElement(S,{node:this.root,nodeTemplate:this.props.nodeTemplate,selectionMode:this.props.selectionMode,onNodeClick:this.onNodeClick,isSelected:this.isSelected}))}}]),u}();g(E,"defaultProps",{id:null,value:null,style:null,className:null,selectionMode:null,selection:null,nodeTemplate:null,onSelectionChange:null,onNodeSelect:null,onNodeUnselect:null}),exports.OrganizationChart=E,exports.OrganizationChartNode=S;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e){if(Array.isArray(e))return r(e)}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function m(e){return m="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},m(e)}function y(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=N();return function(){var n,o=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return y(this,n)}}function N(){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 S=function(n){h(i,e.Component);var r=b(i);function i(e){var t;return d(this,i),(t=r.call(this,e)).node=t.props.node,t.state={expanded:t.node.expanded},t}return u(i,[{key:"getLeaf",value:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)}},{key:"getColspan",value:function(){return this.node.children&&this.node.children.length?2*this.node.children.length:null}},{key:"onNodeClick",value:function(e,t){this.props.onNodeClick(e,t)}},{key:"toggleNode",value:function(e,t){this.setState((function(e){return{expanded:!e.expanded}})),e.preventDefault()}},{key:"isSelected",value:function(){return this.props.isSelected(this.node)}},{key:"render",value:function(){var e=this;this.node=this.props.node;var n=this.getColspan(),r=t.classNames("p-organizationchart-node-content",this.node.className,{"p-organizationchart-selectable-node":this.props.selectionMode&&!1!==this.node.selectable,"p-highlight":this.isSelected()}),l=this.props.nodeTemplate&&this.props.nodeTemplate(this.node)?o.default.createElement("div",null,this.props.nodeTemplate(this.node)):o.default.createElement("div",null,this.node.label),a=t.classNames("p-node-toggler-icon",{"pi pi-chevron-down":this.state.expanded,"pi pi-chevron-up":!this.state.expanded}),s=o.default.createElement("tr",null,o.default.createElement("td",{colSpan:n},o.default.createElement("div",{className:r,onClick:function(t){return e.onNodeClick(t,e.node)}},l,!this.getLeaf()&&o.default.createElement("a",{href:"#",className:"p-node-toggler",onClick:function(t){return e.toggleNode(t,e.node)}},o.default.createElement("i",{className:a}))))),c=!this.getLeaf()&&this.state.expanded?"inherit":"hidden",d=o.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},o.default.createElement("td",{colSpan:n},o.default.createElement("div",{className:"p-organizationchart-line-down"}))),p=this.node.children&&this.node.children.length,u=o.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},this.node.children&&1===this.node.children.length&&o.default.createElement("td",{colSpan:this.getColspan()},o.default.createElement("div",{className:"p-organizationchart-line-down"})),this.node.children&&this.node.children.length>1&&this.node.children.map((function(e,n){var r=t.classNames("p-organizationchart-line-left",{"p-organizationchart-line-top":0!==n}),i=t.classNames("p-organizationchart-line-right",{"p-organizationchart-line-top":n!==p-1});return[o.default.createElement("td",{key:n+"_lineleft",className:r}," "),o.default.createElement("td",{key:n+"_lineright",className:i}," ")]}))),f=o.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-nodes"},this.node.children&&this.node.children.map((function(t,n){return o.default.createElement("td",{key:n,colSpan:"2"},o.default.createElement(i,{node:t,nodeTemplate:e.props.nodeTemplate,selectionMode:e.props.selectionMode,onNodeClick:e.props.onNodeClick,isSelected:e.props.isSelected}))})));return o.default.createElement("table",{className:"p-organizationchart-table"},o.default.createElement("tbody",null,s,d,u,f))}}]),i}();g(S,"defaultProps",{node:null,nodeTemplate:null,root:!1,first:!1,last:!1,selectionMode:null,onNodeClick:null,isSelected:null});var E=function(n){h(p,e.Component);var r=b(p);function p(e){var t;return d(this,p),(t=r.call(this,e)).root=t.props.value&&t.props.value.length?t.props.value[0]:null,t.onNodeClick=t.onNodeClick.bind(c(t)),t.isSelected=t.isSelected.bind(c(t)),t}return u(p,[{key:"onNodeClick",value:function(e,t){if(this.props.selectionMode){var n=e.target;if(n.className&&(-1!==n.className.indexOf("p-node-toggler")||-1!==n.className.indexOf("p-node-toggler-icon")))return;if(!1===t.selectable)return;var o,r=this.findIndexInSelection(t),c=r>=0;"single"===this.props.selectionMode?c?(o=null,this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=t,this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t})):"multiple"===this.props.selectionMode&&(c?(o=this.props.selection.filter((function(e,t){return t!==r})),this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=[].concat(i(d=this.props.selection||[])||l(d)||a(d)||s(),[t]),this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t}))),this.props.onSelectionChange&&this.props.onSelectionChange({originalEvent:e,data:o})}var d}},{key:"findIndexInSelection",value:function(e){var t=-1;if(this.props.selectionMode&&this.props.selection)if("single"===this.props.selectionMode)t=this.props.selection===e?0:-1;else if("multiple"===this.props.selectionMode)for(var n=0;n<this.props.selection.length;n++)if(this.props.selection[n]===e){t=n;break}return t}},{key:"isSelected",value:function(e){return-1!==this.findIndexInSelection(e)}},{key:"render",value:function(){this.root=this.props.value&&this.props.value.length?this.props.value[0]:null;var e=t.classNames("p-organizationchart p-component",this.props.className);return o.default.createElement("div",{id:this.props.id,style:this.props.style,className:e},o.default.createElement(S,{node:this.root,nodeTemplate:this.props.nodeTemplate,selectionMode:this.props.selectionMode,onNodeClick:this.onNodeClick,isSelected:this.isSelected}))}}]),p}();g(E,"defaultProps",{id:null,value:null,style:null,className:null,selectionMode:null,selection:null,nodeTemplate:null,onSelectionChange:null,onNodeSelect:null,onNodeUnselect:null}),exports.OrganizationChart=E,exports.OrganizationChartNode=S;
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import { classNames } from 'primereact/core';
2
+ import { classNames } from 'primereact/utils';
3
3
 
4
4
  function _arrayLikeToArray(arr, len) {
5
5
  if (len == null || len > arr.length) len = arr.length;
@@ -63,6 +63,9 @@ function _defineProperties(target, props) {
63
63
  function _createClass(Constructor, protoProps, staticProps) {
64
64
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
65
65
  if (staticProps) _defineProperties(Constructor, staticProps);
66
+ Object.defineProperty(Constructor, "prototype", {
67
+ writable: false
68
+ });
66
69
  return Constructor;
67
70
  }
68
71
 
@@ -87,23 +90,20 @@ function _inherits(subClass, superClass) {
87
90
  configurable: true
88
91
  }
89
92
  });
93
+ Object.defineProperty(subClass, "prototype", {
94
+ writable: false
95
+ });
90
96
  if (superClass) _setPrototypeOf(subClass, superClass);
91
97
  }
92
98
 
93
99
  function _typeof(obj) {
94
100
  "@babel/helpers - typeof";
95
101
 
96
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
97
- _typeof = function _typeof(obj) {
98
- return typeof obj;
99
- };
100
- } else {
101
- _typeof = function _typeof(obj) {
102
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
103
- };
104
- }
105
-
106
- return _typeof(obj);
102
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
103
+ return typeof obj;
104
+ } : function (obj) {
105
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
106
+ }, _typeof(obj);
107
107
  }
108
108
 
109
109
  function _possibleConstructorReturn(self, call) {
@@ -1 +1 @@
1
- import e,{Component as t}from"react";import{classNames as n}from"primereact/core";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function r(e){if(Array.isArray(e))return o(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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&&u(e,t)}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 m(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 a(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=b();return function(){var n,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function b(){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 N=function(o){h(i,t);var r=v(i);function i(e){var t;return c(this,i),(t=r.call(this,e)).node=t.props.node,t.state={expanded:t.node.expanded},t}return d(i,[{key:"getLeaf",value:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)}},{key:"getColspan",value:function(){return this.node.children&&this.node.children.length?2*this.node.children.length:null}},{key:"onNodeClick",value:function(e,t){this.props.onNodeClick(e,t)}},{key:"toggleNode",value:function(e,t){this.setState((function(e){return{expanded:!e.expanded}})),e.preventDefault()}},{key:"isSelected",value:function(){return this.props.isSelected(this.node)}},{key:"render",value:function(){var t=this;this.node=this.props.node;var o=this.getColspan(),r=n("p-organizationchart-node-content",this.node.className,{"p-organizationchart-selectable-node":this.props.selectionMode&&!1!==this.node.selectable,"p-highlight":this.isSelected()}),l=this.props.nodeTemplate&&this.props.nodeTemplate(this.node)?e.createElement("div",null,this.props.nodeTemplate(this.node)):e.createElement("div",null,this.node.label),s=n("p-node-toggler-icon",{"pi pi-chevron-down":this.state.expanded,"pi pi-chevron-up":!this.state.expanded}),a=e.createElement("tr",null,e.createElement("td",{colSpan:o},e.createElement("div",{className:r,onClick:function(e){return t.onNodeClick(e,t.node)}},l,!this.getLeaf()&&e.createElement("a",{href:"#",className:"p-node-toggler",onClick:function(e){return t.toggleNode(e,t.node)}},e.createElement("i",{className:s}))))),c=!this.getLeaf()&&this.state.expanded?"inherit":"hidden",p=e.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},e.createElement("td",{colSpan:o},e.createElement("div",{className:"p-organizationchart-line-down"}))),d=this.node.children&&this.node.children.length,u=e.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},this.node.children&&1===this.node.children.length&&e.createElement("td",{colSpan:this.getColspan()},e.createElement("div",{className:"p-organizationchart-line-down"})),this.node.children&&this.node.children.length>1&&this.node.children.map((function(t,o){var r=n("p-organizationchart-line-left",{"p-organizationchart-line-top":0!==o}),i=n("p-organizationchart-line-right",{"p-organizationchart-line-top":o!==d-1});return[e.createElement("td",{key:o+"_lineleft",className:r}," "),e.createElement("td",{key:o+"_lineright",className:i}," ")]}))),h=e.createElement("tr",{style:{visibility:c},className:"p-organizationchart-nodes"},this.node.children&&this.node.children.map((function(n,o){return e.createElement("td",{key:o,colSpan:"2"},e.createElement(i,{node:n,nodeTemplate:t.props.nodeTemplate,selectionMode:t.props.selectionMode,onNodeClick:t.props.onNodeClick,isSelected:t.props.isSelected}))})));return e.createElement("table",{className:"p-organizationchart-table"},e.createElement("tbody",null,a,p,u,h))}}]),i}();g(N,"defaultProps",{node:null,nodeTemplate:null,root:!1,first:!1,last:!1,selectionMode:null,onNodeClick:null,isSelected:null});var S=function(o){h(u,t);var p=v(u);function u(e){var t;return c(this,u),(t=p.call(this,e)).root=t.props.value&&t.props.value.length?t.props.value[0]:null,t.onNodeClick=t.onNodeClick.bind(a(t)),t.isSelected=t.isSelected.bind(a(t)),t}return d(u,[{key:"onNodeClick",value:function(e,t){if(this.props.selectionMode){var n=e.target;if(n.className&&(-1!==n.className.indexOf("p-node-toggler")||-1!==n.className.indexOf("p-node-toggler-icon")))return;if(!1===t.selectable)return;var o,a=this.findIndexInSelection(t),c=a>=0;"single"===this.props.selectionMode?c?(o=null,this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=t,this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t})):"multiple"===this.props.selectionMode&&(c?(o=this.props.selection.filter((function(e,t){return t!==a})),this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=[].concat(r(p=this.props.selection||[])||i(p)||l(p)||s(),[t]),this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t}))),this.props.onSelectionChange&&this.props.onSelectionChange({originalEvent:e,data:o})}var p}},{key:"findIndexInSelection",value:function(e){var t=-1;if(this.props.selectionMode&&this.props.selection)if("single"===this.props.selectionMode)t=this.props.selection===e?0:-1;else if("multiple"===this.props.selectionMode)for(var n=0;n<this.props.selection.length;n++)if(this.props.selection[n]===e){t=n;break}return t}},{key:"isSelected",value:function(e){return-1!==this.findIndexInSelection(e)}},{key:"render",value:function(){this.root=this.props.value&&this.props.value.length?this.props.value[0]:null;var t=n("p-organizationchart p-component",this.props.className);return e.createElement("div",{id:this.props.id,style:this.props.style,className:t},e.createElement(N,{node:this.root,nodeTemplate:this.props.nodeTemplate,selectionMode:this.props.selectionMode,onNodeClick:this.onNodeClick,isSelected:this.isSelected}))}}]),u}();g(S,"defaultProps",{id:null,value:null,style:null,className:null,selectionMode:null,selection:null,nodeTemplate:null,onSelectionChange:null,onNodeSelect:null,onNodeUnselect:null});export{S as OrganizationChart,N as OrganizationChartNode};
1
+ import e,{Component as t}from"react";import{classNames as n}from"primereact/utils";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function r(e){if(Array.isArray(e))return o(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function h(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}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},f(e)}function m(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 a(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=b();return function(){var n,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function b(){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 N=function(o){h(i,t);var r=v(i);function i(e){var t;return c(this,i),(t=r.call(this,e)).node=t.props.node,t.state={expanded:t.node.expanded},t}return d(i,[{key:"getLeaf",value:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)}},{key:"getColspan",value:function(){return this.node.children&&this.node.children.length?2*this.node.children.length:null}},{key:"onNodeClick",value:function(e,t){this.props.onNodeClick(e,t)}},{key:"toggleNode",value:function(e,t){this.setState((function(e){return{expanded:!e.expanded}})),e.preventDefault()}},{key:"isSelected",value:function(){return this.props.isSelected(this.node)}},{key:"render",value:function(){var t=this;this.node=this.props.node;var o=this.getColspan(),r=n("p-organizationchart-node-content",this.node.className,{"p-organizationchart-selectable-node":this.props.selectionMode&&!1!==this.node.selectable,"p-highlight":this.isSelected()}),l=this.props.nodeTemplate&&this.props.nodeTemplate(this.node)?e.createElement("div",null,this.props.nodeTemplate(this.node)):e.createElement("div",null,this.node.label),s=n("p-node-toggler-icon",{"pi pi-chevron-down":this.state.expanded,"pi pi-chevron-up":!this.state.expanded}),a=e.createElement("tr",null,e.createElement("td",{colSpan:o},e.createElement("div",{className:r,onClick:function(e){return t.onNodeClick(e,t.node)}},l,!this.getLeaf()&&e.createElement("a",{href:"#",className:"p-node-toggler",onClick:function(e){return t.toggleNode(e,t.node)}},e.createElement("i",{className:s}))))),c=!this.getLeaf()&&this.state.expanded?"inherit":"hidden",p=e.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},e.createElement("td",{colSpan:o},e.createElement("div",{className:"p-organizationchart-line-down"}))),d=this.node.children&&this.node.children.length,u=e.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},this.node.children&&1===this.node.children.length&&e.createElement("td",{colSpan:this.getColspan()},e.createElement("div",{className:"p-organizationchart-line-down"})),this.node.children&&this.node.children.length>1&&this.node.children.map((function(t,o){var r=n("p-organizationchart-line-left",{"p-organizationchart-line-top":0!==o}),i=n("p-organizationchart-line-right",{"p-organizationchart-line-top":o!==d-1});return[e.createElement("td",{key:o+"_lineleft",className:r}," "),e.createElement("td",{key:o+"_lineright",className:i}," ")]}))),h=e.createElement("tr",{style:{visibility:c},className:"p-organizationchart-nodes"},this.node.children&&this.node.children.map((function(n,o){return e.createElement("td",{key:o,colSpan:"2"},e.createElement(i,{node:n,nodeTemplate:t.props.nodeTemplate,selectionMode:t.props.selectionMode,onNodeClick:t.props.onNodeClick,isSelected:t.props.isSelected}))})));return e.createElement("table",{className:"p-organizationchart-table"},e.createElement("tbody",null,a,p,u,h))}}]),i}();g(N,"defaultProps",{node:null,nodeTemplate:null,root:!1,first:!1,last:!1,selectionMode:null,onNodeClick:null,isSelected:null});var S=function(o){h(u,t);var p=v(u);function u(e){var t;return c(this,u),(t=p.call(this,e)).root=t.props.value&&t.props.value.length?t.props.value[0]:null,t.onNodeClick=t.onNodeClick.bind(a(t)),t.isSelected=t.isSelected.bind(a(t)),t}return d(u,[{key:"onNodeClick",value:function(e,t){if(this.props.selectionMode){var n=e.target;if(n.className&&(-1!==n.className.indexOf("p-node-toggler")||-1!==n.className.indexOf("p-node-toggler-icon")))return;if(!1===t.selectable)return;var o,a=this.findIndexInSelection(t),c=a>=0;"single"===this.props.selectionMode?c?(o=null,this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=t,this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t})):"multiple"===this.props.selectionMode&&(c?(o=this.props.selection.filter((function(e,t){return t!==a})),this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=[].concat(r(p=this.props.selection||[])||i(p)||l(p)||s(),[t]),this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t}))),this.props.onSelectionChange&&this.props.onSelectionChange({originalEvent:e,data:o})}var p}},{key:"findIndexInSelection",value:function(e){var t=-1;if(this.props.selectionMode&&this.props.selection)if("single"===this.props.selectionMode)t=this.props.selection===e?0:-1;else if("multiple"===this.props.selectionMode)for(var n=0;n<this.props.selection.length;n++)if(this.props.selection[n]===e){t=n;break}return t}},{key:"isSelected",value:function(e){return-1!==this.findIndexInSelection(e)}},{key:"render",value:function(){this.root=this.props.value&&this.props.value.length?this.props.value[0]:null;var t=n("p-organizationchart p-component",this.props.className);return e.createElement("div",{id:this.props.id,style:this.props.style,className:t},e.createElement(N,{node:this.root,nodeTemplate:this.props.nodeTemplate,selectionMode:this.props.selectionMode,onNodeClick:this.onNodeClick,isSelected:this.isSelected}))}}]),u}();g(S,"defaultProps",{id:null,value:null,style:null,className:null,selectionMode:null,selection:null,nodeTemplate:null,onSelectionChange:null,onNodeSelect:null,onNodeUnselect:null});export{S as OrganizationChart,N as OrganizationChartNode};
@@ -1,5 +1,5 @@
1
1
  this.primereact = this.primereact || {};
2
- this.primereact.organizationchart = (function (exports, React, core) {
2
+ this.primereact.organizationchart = (function (exports, React, utils) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -68,6 +68,9 @@ this.primereact.organizationchart = (function (exports, React, core) {
68
68
  function _createClass(Constructor, protoProps, staticProps) {
69
69
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
70
70
  if (staticProps) _defineProperties(Constructor, staticProps);
71
+ Object.defineProperty(Constructor, "prototype", {
72
+ writable: false
73
+ });
71
74
  return Constructor;
72
75
  }
73
76
 
@@ -92,23 +95,20 @@ this.primereact.organizationchart = (function (exports, React, core) {
92
95
  configurable: true
93
96
  }
94
97
  });
98
+ Object.defineProperty(subClass, "prototype", {
99
+ writable: false
100
+ });
95
101
  if (superClass) _setPrototypeOf(subClass, superClass);
96
102
  }
97
103
 
98
104
  function _typeof(obj) {
99
105
  "@babel/helpers - typeof";
100
106
 
101
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
102
- _typeof = function _typeof(obj) {
103
- return typeof obj;
104
- };
105
- } else {
106
- _typeof = function _typeof(obj) {
107
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
108
- };
109
- }
110
-
111
- return _typeof(obj);
107
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
108
+ return typeof obj;
109
+ } : function (obj) {
110
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
111
+ }, _typeof(obj);
112
112
  }
113
113
 
114
114
  function _possibleConstructorReturn(self, call) {
@@ -201,82 +201,82 @@ this.primereact.organizationchart = (function (exports, React, core) {
201
201
 
202
202
  this.node = this.props.node;
203
203
  var colspan = this.getColspan();
204
- var nodeClassName = core.classNames('p-organizationchart-node-content', this.node.className, {
204
+ var nodeClassName = utils.classNames('p-organizationchart-node-content', this.node.className, {
205
205
  'p-organizationchart-selectable-node': this.props.selectionMode && this.node.selectable !== false,
206
206
  'p-highlight': this.isSelected()
207
207
  }),
208
- nodeLabel = this.props.nodeTemplate && this.props.nodeTemplate(this.node) ? /*#__PURE__*/React__default['default'].createElement("div", null, this.props.nodeTemplate(this.node)) : /*#__PURE__*/React__default['default'].createElement("div", null, this.node.label),
209
- toggleIcon = core.classNames('p-node-toggler-icon', {
208
+ nodeLabel = this.props.nodeTemplate && this.props.nodeTemplate(this.node) ? /*#__PURE__*/React__default["default"].createElement("div", null, this.props.nodeTemplate(this.node)) : /*#__PURE__*/React__default["default"].createElement("div", null, this.node.label),
209
+ toggleIcon = utils.classNames('p-node-toggler-icon', {
210
210
  'pi pi-chevron-down': this.state.expanded,
211
211
  'pi pi-chevron-up': !this.state.expanded
212
212
  }),
213
- nodeContent = /*#__PURE__*/React__default['default'].createElement("tr", null, /*#__PURE__*/React__default['default'].createElement("td", {
213
+ nodeContent = /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("td", {
214
214
  colSpan: colspan
215
- }, /*#__PURE__*/React__default['default'].createElement("div", {
215
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
216
216
  className: nodeClassName,
217
217
  onClick: function onClick(e) {
218
218
  return _this2.onNodeClick(e, _this2.node);
219
219
  }
220
220
  }, nodeLabel,
221
221
  /* eslint-disable */
222
- !this.getLeaf() && /*#__PURE__*/React__default['default'].createElement("a", {
222
+ !this.getLeaf() && /*#__PURE__*/React__default["default"].createElement("a", {
223
223
  href: "#",
224
224
  className: "p-node-toggler",
225
225
  onClick: function onClick(e) {
226
226
  return _this2.toggleNode(e, _this2.node);
227
227
  }
228
- }, /*#__PURE__*/React__default['default'].createElement("i", {
228
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
229
229
  className: toggleIcon
230
230
  }))
231
231
  /* eslint-enable */
232
232
  )));
233
233
 
234
234
  var _visibility = !this.getLeaf() && this.state.expanded ? 'inherit' : 'hidden',
235
- linesDown = /*#__PURE__*/React__default['default'].createElement("tr", {
235
+ linesDown = /*#__PURE__*/React__default["default"].createElement("tr", {
236
236
  style: {
237
237
  visibility: _visibility
238
238
  },
239
239
  className: "p-organizationchart-lines"
240
- }, /*#__PURE__*/React__default['default'].createElement("td", {
240
+ }, /*#__PURE__*/React__default["default"].createElement("td", {
241
241
  colSpan: colspan
242
- }, /*#__PURE__*/React__default['default'].createElement("div", {
242
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
243
243
  className: "p-organizationchart-line-down"
244
244
  }))),
245
245
  nodeChildLength = this.node.children && this.node.children.length,
246
- linesMiddle = /*#__PURE__*/React__default['default'].createElement("tr", {
246
+ linesMiddle = /*#__PURE__*/React__default["default"].createElement("tr", {
247
247
  style: {
248
248
  visibility: _visibility
249
249
  },
250
250
  className: "p-organizationchart-lines"
251
- }, this.node.children && this.node.children.length === 1 && /*#__PURE__*/React__default['default'].createElement("td", {
251
+ }, this.node.children && this.node.children.length === 1 && /*#__PURE__*/React__default["default"].createElement("td", {
252
252
  colSpan: this.getColspan()
253
- }, /*#__PURE__*/React__default['default'].createElement("div", {
253
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
254
254
  className: "p-organizationchart-line-down"
255
255
  })), this.node.children && this.node.children.length > 1 && this.node.children.map(function (item, index) {
256
- var leftClass = core.classNames('p-organizationchart-line-left', {
256
+ var leftClass = utils.classNames('p-organizationchart-line-left', {
257
257
  'p-organizationchart-line-top': index !== 0
258
258
  }),
259
- rightClass = core.classNames('p-organizationchart-line-right', {
259
+ rightClass = utils.classNames('p-organizationchart-line-right', {
260
260
  'p-organizationchart-line-top': index !== nodeChildLength - 1
261
261
  });
262
- return [/*#__PURE__*/React__default['default'].createElement("td", {
262
+ return [/*#__PURE__*/React__default["default"].createElement("td", {
263
263
  key: index + '_lineleft',
264
264
  className: leftClass
265
- }, "\xA0"), /*#__PURE__*/React__default['default'].createElement("td", {
265
+ }, "\xA0"), /*#__PURE__*/React__default["default"].createElement("td", {
266
266
  key: index + '_lineright',
267
267
  className: rightClass
268
268
  }, "\xA0")];
269
269
  })),
270
- childNodes = /*#__PURE__*/React__default['default'].createElement("tr", {
270
+ childNodes = /*#__PURE__*/React__default["default"].createElement("tr", {
271
271
  style: {
272
272
  visibility: _visibility
273
273
  },
274
274
  className: "p-organizationchart-nodes"
275
275
  }, this.node.children && this.node.children.map(function (child, index) {
276
- return /*#__PURE__*/React__default['default'].createElement("td", {
276
+ return /*#__PURE__*/React__default["default"].createElement("td", {
277
277
  key: index,
278
278
  colSpan: "2"
279
- }, /*#__PURE__*/React__default['default'].createElement(OrganizationChartNode, {
279
+ }, /*#__PURE__*/React__default["default"].createElement(OrganizationChartNode, {
280
280
  node: child,
281
281
  nodeTemplate: _this2.props.nodeTemplate,
282
282
  selectionMode: _this2.props.selectionMode,
@@ -285,9 +285,9 @@ this.primereact.organizationchart = (function (exports, React, core) {
285
285
  }));
286
286
  }));
287
287
 
288
- return /*#__PURE__*/React__default['default'].createElement("table", {
288
+ return /*#__PURE__*/React__default["default"].createElement("table", {
289
289
  className: "p-organizationchart-table"
290
- }, /*#__PURE__*/React__default['default'].createElement("tbody", null, nodeContent, linesDown, linesMiddle, childNodes));
290
+ }, /*#__PURE__*/React__default["default"].createElement("tbody", null, nodeContent, linesDown, linesMiddle, childNodes));
291
291
  }
292
292
  }]);
293
293
 
@@ -421,12 +421,12 @@ this.primereact.organizationchart = (function (exports, React, core) {
421
421
  key: "render",
422
422
  value: function render() {
423
423
  this.root = this.props.value && this.props.value.length ? this.props.value[0] : null;
424
- var className = core.classNames('p-organizationchart p-component', this.props.className);
425
- return /*#__PURE__*/React__default['default'].createElement("div", {
424
+ var className = utils.classNames('p-organizationchart p-component', this.props.className);
425
+ return /*#__PURE__*/React__default["default"].createElement("div", {
426
426
  id: this.props.id,
427
427
  style: this.props.style,
428
428
  className: className
429
- }, /*#__PURE__*/React__default['default'].createElement(OrganizationChartNode, {
429
+ }, /*#__PURE__*/React__default["default"].createElement(OrganizationChartNode, {
430
430
  node: this.root,
431
431
  nodeTemplate: this.props.nodeTemplate,
432
432
  selectionMode: this.props.selectionMode,
@@ -459,4 +459,4 @@ this.primereact.organizationchart = (function (exports, React, core) {
459
459
 
460
460
  return exports;
461
461
 
462
- }({}, React, primereact.core));
462
+ })({}, React, primereact.utils);
@@ -1 +1 @@
1
- .p-organizationchart-table{border-spacing:0;border-collapse:separate;margin:0 auto}.p-organizationchart-table>tbody>tr>td{text-align:center;vertical-align:top;padding:0 .75rem}.p-organizationchart-node-content{display:inline-block;position:relative}.p-organizationchart-node-content .p-node-toggler{position:absolute;bottom:-.75rem;margin-left:-.75rem;z-index:2;left:50%;user-select:none;cursor:pointer;width:1.5rem;height:1.5rem}.p-organizationchart-node-content .p-node-toggler .p-node-toggler-icon{position:relative;top:.25rem}.p-organizationchart-line-down{margin:0 auto;height:20px;width:1px}.p-organizationchart-line-right{border-radius:0}.p-organizationchart-line-left{border-radius:0}.p-organizationchart-selectable-node{cursor:pointer}
1
+ .p-organizationchart-table{border-spacing:0;border-collapse:separate;margin:0 auto}.p-organizationchart-table>tbody>tr>td{text-align:center;vertical-align:top;padding:0 .75rem}.p-organizationchart-node-content{display:inline-block;position:relative}.p-organizationchart-node-content .p-node-toggler{position:absolute;bottom:-.75rem;margin-left:-.75rem;z-index:2;left:50%;user-select:none;cursor:pointer;width:1.5rem;height:1.5rem;text-decoration:none}.p-organizationchart-node-content .p-node-toggler .p-node-toggler-icon{position:relative;top:.25rem}.p-organizationchart-line-down{margin:0 auto;height:20px;width:1px}.p-organizationchart-line-right{border-radius:0}.p-organizationchart-line-left{border-radius:0}.p-organizationchart-selectable-node{cursor:pointer}
@@ -1 +1 @@
1
- this.primereact=this.primereact||{},this.primereact.organizationchart=function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=o(t);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function l(e){if(Array.isArray(e))return i(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function f(e,t){return(f=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&&f(e,t)}function y(e){return(y="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 g(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){var t=S();return function(){var n,o=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function S(){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 E=function(e){m(o,e);var t=N(o);function o(e){var n;return u(this,o),(n=t.call(this,e)).node=n.props.node,n.state={expanded:n.node.expanded},n}return h(o,[{key:"getLeaf",value:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)}},{key:"getColspan",value:function(){return this.node.children&&this.node.children.length?2*this.node.children.length:null}},{key:"onNodeClick",value:function(e,t){this.props.onNodeClick(e,t)}},{key:"toggleNode",value:function(e,t){this.setState((function(e){return{expanded:!e.expanded}})),e.preventDefault()}},{key:"isSelected",value:function(){return this.props.isSelected(this.node)}},{key:"render",value:function(){var e=this;this.node=this.props.node;var t=this.getColspan(),i=n.classNames("p-organizationchart-node-content",this.node.className,{"p-organizationchart-selectable-node":this.props.selectionMode&&!1!==this.node.selectable,"p-highlight":this.isSelected()}),l=this.props.nodeTemplate&&this.props.nodeTemplate(this.node)?r.default.createElement("div",null,this.props.nodeTemplate(this.node)):r.default.createElement("div",null,this.node.label),a=n.classNames("p-node-toggler-icon",{"pi pi-chevron-down":this.state.expanded,"pi pi-chevron-up":!this.state.expanded}),s=r.default.createElement("tr",null,r.default.createElement("td",{colSpan:t},r.default.createElement("div",{className:i,onClick:function(t){return e.onNodeClick(t,e.node)}},l,!this.getLeaf()&&r.default.createElement("a",{href:"#",className:"p-node-toggler",onClick:function(t){return e.toggleNode(t,e.node)}},r.default.createElement("i",{className:a}))))),c=!this.getLeaf()&&this.state.expanded?"inherit":"hidden",d=r.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},r.default.createElement("td",{colSpan:t},r.default.createElement("div",{className:"p-organizationchart-line-down"}))),u=this.node.children&&this.node.children.length,p=r.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},this.node.children&&1===this.node.children.length&&r.default.createElement("td",{colSpan:this.getColspan()},r.default.createElement("div",{className:"p-organizationchart-line-down"})),this.node.children&&this.node.children.length>1&&this.node.children.map((function(e,t){var o=n.classNames("p-organizationchart-line-left",{"p-organizationchart-line-top":0!==t}),i=n.classNames("p-organizationchart-line-right",{"p-organizationchart-line-top":t!==u-1});return[r.default.createElement("td",{key:t+"_lineleft",className:o}," "),r.default.createElement("td",{key:t+"_lineright",className:i}," ")]}))),h=r.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-nodes"},this.node.children&&this.node.children.map((function(t,n){return r.default.createElement("td",{key:n,colSpan:"2"},r.default.createElement(o,{node:t,nodeTemplate:e.props.nodeTemplate,selectionMode:e.props.selectionMode,onNodeClick:e.props.onNodeClick,isSelected:e.props.isSelected}))})));return r.default.createElement("table",{className:"p-organizationchart-table"},r.default.createElement("tbody",null,s,d,p,h))}}]),o}(t.Component);b(E,"defaultProps",{node:null,nodeTemplate:null,root:!1,first:!1,last:!1,selectionMode:null,onNodeClick:null,isSelected:null});var k=function(e){m(o,e);var t=N(o);function o(e){var n;return u(this,o),(n=t.call(this,e)).root=n.props.value&&n.props.value.length?n.props.value[0]:null,n.onNodeClick=n.onNodeClick.bind(d(n)),n.isSelected=n.isSelected.bind(d(n)),n}return h(o,[{key:"onNodeClick",value:function(e,t){if(this.props.selectionMode){var n=e.target;if(n.className&&(-1!==n.className.indexOf("p-node-toggler")||-1!==n.className.indexOf("p-node-toggler-icon")))return;if(!1===t.selectable)return;var o,r=this.findIndexInSelection(t),i=r>=0;"single"===this.props.selectionMode?i?(o=null,this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=t,this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t})):"multiple"===this.props.selectionMode&&(i?(o=this.props.selection.filter((function(e,t){return t!==r})),this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=[].concat(l(d=this.props.selection||[])||a(d)||s(d)||c(),[t]),this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t}))),this.props.onSelectionChange&&this.props.onSelectionChange({originalEvent:e,data:o})}var d}},{key:"findIndexInSelection",value:function(e){var t=-1;if(this.props.selectionMode&&this.props.selection)if("single"===this.props.selectionMode)t=this.props.selection===e?0:-1;else if("multiple"===this.props.selectionMode)for(var n=0;n<this.props.selection.length;n++)if(this.props.selection[n]===e){t=n;break}return t}},{key:"isSelected",value:function(e){return-1!==this.findIndexInSelection(e)}},{key:"render",value:function(){this.root=this.props.value&&this.props.value.length?this.props.value[0]:null;var e=n.classNames("p-organizationchart p-component",this.props.className);return r.default.createElement("div",{id:this.props.id,style:this.props.style,className:e},r.default.createElement(E,{node:this.root,nodeTemplate:this.props.nodeTemplate,selectionMode:this.props.selectionMode,onNodeClick:this.onNodeClick,isSelected:this.isSelected}))}}]),o}(t.Component);return b(k,"defaultProps",{id:null,value:null,style:null,className:null,selectionMode:null,selection:null,nodeTemplate:null,onSelectionChange:null,onNodeSelect:null,onNodeUnselect:null}),e.OrganizationChart=k,e.OrganizationChartNode=E,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.core);
1
+ this.primereact=this.primereact||{},this.primereact.organizationchart=function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=o(t);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function l(e){if(Array.isArray(e))return i(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function y(e){return y="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},y(e)}function g(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){var t=S();return function(){var n,o=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function S(){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 E=function(e){m(o,e);var t=N(o);function o(e){var n;return p(this,o),(n=t.call(this,e)).node=n.props.node,n.state={expanded:n.node.expanded},n}return f(o,[{key:"getLeaf",value:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)}},{key:"getColspan",value:function(){return this.node.children&&this.node.children.length?2*this.node.children.length:null}},{key:"onNodeClick",value:function(e,t){this.props.onNodeClick(e,t)}},{key:"toggleNode",value:function(e,t){this.setState((function(e){return{expanded:!e.expanded}})),e.preventDefault()}},{key:"isSelected",value:function(){return this.props.isSelected(this.node)}},{key:"render",value:function(){var e=this;this.node=this.props.node;var t=this.getColspan(),i=n.classNames("p-organizationchart-node-content",this.node.className,{"p-organizationchart-selectable-node":this.props.selectionMode&&!1!==this.node.selectable,"p-highlight":this.isSelected()}),l=this.props.nodeTemplate&&this.props.nodeTemplate(this.node)?r.default.createElement("div",null,this.props.nodeTemplate(this.node)):r.default.createElement("div",null,this.node.label),a=n.classNames("p-node-toggler-icon",{"pi pi-chevron-down":this.state.expanded,"pi pi-chevron-up":!this.state.expanded}),s=r.default.createElement("tr",null,r.default.createElement("td",{colSpan:t},r.default.createElement("div",{className:i,onClick:function(t){return e.onNodeClick(t,e.node)}},l,!this.getLeaf()&&r.default.createElement("a",{href:"#",className:"p-node-toggler",onClick:function(t){return e.toggleNode(t,e.node)}},r.default.createElement("i",{className:a}))))),c=!this.getLeaf()&&this.state.expanded?"inherit":"hidden",d=r.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},r.default.createElement("td",{colSpan:t},r.default.createElement("div",{className:"p-organizationchart-line-down"}))),p=this.node.children&&this.node.children.length,u=r.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-lines"},this.node.children&&1===this.node.children.length&&r.default.createElement("td",{colSpan:this.getColspan()},r.default.createElement("div",{className:"p-organizationchart-line-down"})),this.node.children&&this.node.children.length>1&&this.node.children.map((function(e,t){var o=n.classNames("p-organizationchart-line-left",{"p-organizationchart-line-top":0!==t}),i=n.classNames("p-organizationchart-line-right",{"p-organizationchart-line-top":t!==p-1});return[r.default.createElement("td",{key:t+"_lineleft",className:o}," "),r.default.createElement("td",{key:t+"_lineright",className:i}," ")]}))),f=r.default.createElement("tr",{style:{visibility:c},className:"p-organizationchart-nodes"},this.node.children&&this.node.children.map((function(t,n){return r.default.createElement("td",{key:n,colSpan:"2"},r.default.createElement(o,{node:t,nodeTemplate:e.props.nodeTemplate,selectionMode:e.props.selectionMode,onNodeClick:e.props.onNodeClick,isSelected:e.props.isSelected}))})));return r.default.createElement("table",{className:"p-organizationchart-table"},r.default.createElement("tbody",null,s,d,u,f))}}]),o}(t.Component);b(E,"defaultProps",{node:null,nodeTemplate:null,root:!1,first:!1,last:!1,selectionMode:null,onNodeClick:null,isSelected:null});var k=function(e){m(o,e);var t=N(o);function o(e){var n;return p(this,o),(n=t.call(this,e)).root=n.props.value&&n.props.value.length?n.props.value[0]:null,n.onNodeClick=n.onNodeClick.bind(d(n)),n.isSelected=n.isSelected.bind(d(n)),n}return f(o,[{key:"onNodeClick",value:function(e,t){if(this.props.selectionMode){var n=e.target;if(n.className&&(-1!==n.className.indexOf("p-node-toggler")||-1!==n.className.indexOf("p-node-toggler-icon")))return;if(!1===t.selectable)return;var o,r=this.findIndexInSelection(t),i=r>=0;"single"===this.props.selectionMode?i?(o=null,this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=t,this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t})):"multiple"===this.props.selectionMode&&(i?(o=this.props.selection.filter((function(e,t){return t!==r})),this.props.onNodeUnselect&&this.props.onNodeUnselect({originalEvent:e,node:t})):(o=[].concat(l(d=this.props.selection||[])||a(d)||s(d)||c(),[t]),this.props.onNodeSelect&&this.props.onNodeSelect({originalEvent:e,node:t}))),this.props.onSelectionChange&&this.props.onSelectionChange({originalEvent:e,data:o})}var d}},{key:"findIndexInSelection",value:function(e){var t=-1;if(this.props.selectionMode&&this.props.selection)if("single"===this.props.selectionMode)t=this.props.selection===e?0:-1;else if("multiple"===this.props.selectionMode)for(var n=0;n<this.props.selection.length;n++)if(this.props.selection[n]===e){t=n;break}return t}},{key:"isSelected",value:function(e){return-1!==this.findIndexInSelection(e)}},{key:"render",value:function(){this.root=this.props.value&&this.props.value.length?this.props.value[0]:null;var e=n.classNames("p-organizationchart p-component",this.props.className);return r.default.createElement("div",{id:this.props.id,style:this.props.style,className:e},r.default.createElement(E,{node:this.root,nodeTemplate:this.props.nodeTemplate,selectionMode:this.props.selectionMode,onNodeClick:this.onNodeClick,isSelected:this.isSelected}))}}]),o}(t.Component);return b(k,"defaultProps",{id:null,value:null,style:null,className:null,selectionMode:null,selection:null,nodeTemplate:null,onSelectionChange:null,onNodeSelect:null,onNodeUnselect:null}),e.OrganizationChart=k,e.OrganizationChartNode=E,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);
@@ -3,11 +3,17 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var core = require('primereact/core');
6
+ var utils = require('primereact/utils');
7
+ var csstransition = require('primereact/csstransition');
8
+ var ripple = require('primereact/ripple');
9
+ var overlayservice = require('primereact/overlayservice');
10
+ var portal = require('primereact/portal');
11
+ var PrimeReact = require('primereact/api');
7
12
 
8
13
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
14
 
10
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
+ var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
11
17
 
12
18
  function _classCallCheck(instance, Constructor) {
13
19
  if (!(instance instanceof Constructor)) {
@@ -28,6 +34,9 @@ function _defineProperties(target, props) {
28
34
  function _createClass(Constructor, protoProps, staticProps) {
29
35
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
30
36
  if (staticProps) _defineProperties(Constructor, staticProps);
37
+ Object.defineProperty(Constructor, "prototype", {
38
+ writable: false
39
+ });
31
40
  return Constructor;
32
41
  }
33
42
 
@@ -60,23 +69,20 @@ function _inherits(subClass, superClass) {
60
69
  configurable: true
61
70
  }
62
71
  });
72
+ Object.defineProperty(subClass, "prototype", {
73
+ writable: false
74
+ });
63
75
  if (superClass) _setPrototypeOf(subClass, superClass);
64
76
  }
65
77
 
66
78
  function _typeof(obj) {
67
79
  "@babel/helpers - typeof";
68
80
 
69
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
70
- _typeof = function _typeof(obj) {
71
- return typeof obj;
72
- };
73
- } else {
74
- _typeof = function _typeof(obj) {
75
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
76
- };
77
- }
78
-
79
- return _typeof(obj);
81
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
82
+ return typeof obj;
83
+ } : function (obj) {
84
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
85
+ }, _typeof(obj);
80
86
  }
81
87
 
82
88
  function _possibleConstructorReturn(self, call) {
@@ -134,8 +140,9 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
134
140
  _this.onEntered = _this.onEntered.bind(_assertThisInitialized(_this));
135
141
  _this.onExit = _this.onExit.bind(_assertThisInitialized(_this));
136
142
  _this.onExited = _this.onExited.bind(_assertThisInitialized(_this));
137
- _this.attributeSelector = core.UniqueComponentId();
138
- _this.overlayRef = /*#__PURE__*/React__default['default'].createRef();
143
+ _this.onContentClick = _this.onContentClick.bind(_assertThisInitialized(_this));
144
+ _this.attributeSelector = utils.UniqueComponentId();
145
+ _this.overlayRef = /*#__PURE__*/React__default["default"].createRef();
139
146
  return _this;
140
147
  }
141
148
 
@@ -170,7 +177,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
170
177
  var _this3 = this;
171
178
 
172
179
  if (!this.scrollHandler) {
173
- this.scrollHandler = new core.ConnectedOverlayScrollHandler(this.target, function () {
180
+ this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.target, function () {
174
181
  if (_this3.state.visible) {
175
182
  _this3.hide();
176
183
  }
@@ -193,7 +200,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
193
200
 
194
201
  if (!this.resizeListener) {
195
202
  this.resizeListener = function () {
196
- if (_this4.state.visible && !core.DomHandler.isAndroid()) {
203
+ if (_this4.state.visible && !utils.DomHandler.isTouchDevice()) {
197
204
  _this4.hide();
198
205
  }
199
206
  };
@@ -229,7 +236,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
229
236
  key: "onPanelClick",
230
237
  value: function onPanelClick(event) {
231
238
  this.isPanelClicked = true;
232
- core.OverlayService.emit('overlay-click', {
239
+ overlayservice.OverlayService.emit('overlay-click', {
233
240
  originalEvent: event,
234
241
  target: this.target
235
242
  });
@@ -276,7 +283,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
276
283
  }
277
284
  };
278
285
 
279
- core.OverlayService.on('overlay-click', _this6.overlayEventListener);
286
+ overlayservice.OverlayService.on('overlay-click', _this6.overlayEventListener);
280
287
  });
281
288
  }
282
289
  }
@@ -288,14 +295,14 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
288
295
  this.setState({
289
296
  visible: false
290
297
  }, function () {
291
- core.OverlayService.off('overlay-click', _this7.overlayEventListener);
298
+ overlayservice.OverlayService.off('overlay-click', _this7.overlayEventListener);
292
299
  _this7.overlayEventListener = null;
293
300
  });
294
301
  }
295
302
  }, {
296
303
  key: "onEnter",
297
304
  value: function onEnter() {
298
- core.ZIndexUtils.set('overlay', this.overlayRef.current);
305
+ utils.ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact__default["default"].autoZIndex, PrimeReact__default["default"].zIndex['overlay']);
299
306
  this.overlayRef.current.setAttribute(this.attributeSelector, '');
300
307
  this.align();
301
308
  }
@@ -317,16 +324,16 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
317
324
  }, {
318
325
  key: "onExited",
319
326
  value: function onExited() {
320
- core.ZIndexUtils.clear(this.overlayRef.current);
327
+ utils.ZIndexUtils.clear(this.overlayRef.current);
321
328
  this.props.onHide && this.props.onHide();
322
329
  }
323
330
  }, {
324
331
  key: "align",
325
332
  value: function align() {
326
333
  if (this.target) {
327
- core.DomHandler.absolutePosition(this.overlayRef.current, this.target);
328
- var containerOffset = core.DomHandler.getOffset(this.overlayRef.current);
329
- var targetOffset = core.DomHandler.getOffset(this.target);
334
+ utils.DomHandler.absolutePosition(this.overlayRef.current, this.target);
335
+ var containerOffset = utils.DomHandler.getOffset(this.overlayRef.current);
336
+ var targetOffset = utils.DomHandler.getOffset(this.target);
330
337
  var arrowLeft = 0;
331
338
 
332
339
  if (containerOffset.left < targetOffset.left) {
@@ -336,7 +343,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
336
343
  this.overlayRef.current.style.setProperty('--overlayArrowLeft', "".concat(arrowLeft, "px"));
337
344
 
338
345
  if (containerOffset.top < targetOffset.top) {
339
- core.DomHandler.addClass(this.overlayRef.current, 'p-overlaypanel-flipped');
346
+ utils.DomHandler.addClass(this.overlayRef.current, 'p-overlaypanel-flipped');
340
347
  }
341
348
  }
342
349
  }
@@ -344,8 +351,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
344
351
  key: "createStyle",
345
352
  value: function createStyle() {
346
353
  if (!this.styleElement) {
347
- this.styleElement = document.createElement('style');
348
- document.head.appendChild(this.styleElement);
354
+ this.styleElement = utils.DomHandler.createInlineStyle(PrimeReact__default["default"].nonce);
349
355
  var innerHTML = '';
350
356
 
351
357
  for (var breakpoint in this.props.breakpoints) {
@@ -373,30 +379,27 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
373
379
  this.scrollHandler = null;
374
380
  }
375
381
 
376
- if (this.styleElement) {
377
- document.head.removeChild(this.styleElement);
378
- this.styleElement = null;
379
- }
382
+ this.styleElement = utils.DomHandler.removeInlineStyle(this.styleElement);
380
383
 
381
384
  if (this.overlayEventListener) {
382
- core.OverlayService.off('overlay-click', this.overlayEventListener);
385
+ overlayservice.OverlayService.off('overlay-click', this.overlayEventListener);
383
386
  this.overlayEventListener = null;
384
387
  }
385
388
 
386
- core.ZIndexUtils.clear(this.overlayRef.current);
389
+ utils.ZIndexUtils.clear(this.overlayRef.current);
387
390
  }
388
391
  }, {
389
392
  key: "renderCloseIcon",
390
393
  value: function renderCloseIcon() {
391
394
  if (this.props.showCloseIcon) {
392
- return /*#__PURE__*/React__default['default'].createElement("button", {
395
+ return /*#__PURE__*/React__default["default"].createElement("button", {
393
396
  type: "button",
394
397
  className: "p-overlaypanel-close p-link",
395
398
  onClick: this.onCloseClick,
396
399
  "aria-label": this.props.ariaCloseLabel
397
- }, /*#__PURE__*/React__default['default'].createElement("span", {
400
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
398
401
  className: "p-overlaypanel-close-icon pi pi-times"
399
- }), /*#__PURE__*/React__default['default'].createElement(core.Ripple, null));
402
+ }), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
400
403
  }
401
404
 
402
405
  return null;
@@ -404,12 +407,12 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
404
407
  }, {
405
408
  key: "renderElement",
406
409
  value: function renderElement() {
407
- var className = core.classNames('p-overlaypanel p-component', this.props.className);
410
+ var className = utils.classNames('p-overlaypanel p-component', this.props.className);
408
411
  var closeIcon = this.renderCloseIcon();
409
- return /*#__PURE__*/React__default['default'].createElement(core.CSSTransition, {
412
+ return /*#__PURE__*/React__default["default"].createElement(csstransition.CSSTransition, {
410
413
  nodeRef: this.overlayRef,
411
414
  classNames: "p-overlaypanel",
412
- in: this.state.visible,
415
+ "in": this.state.visible,
413
416
  timeout: {
414
417
  enter: 120,
415
418
  exit: 100
@@ -420,13 +423,13 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
420
423
  onEntered: this.onEntered,
421
424
  onExit: this.onExit,
422
425
  onExited: this.onExited
423
- }, /*#__PURE__*/React__default['default'].createElement("div", {
426
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
424
427
  ref: this.overlayRef,
425
428
  id: this.props.id,
426
429
  className: className,
427
430
  style: this.props.style,
428
431
  onClick: this.onPanelClick
429
- }, /*#__PURE__*/React__default['default'].createElement("div", {
432
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
430
433
  className: "p-overlaypanel-content",
431
434
  onClick: this.onContentClick,
432
435
  onMouseDown: this.onContentClick
@@ -436,7 +439,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
436
439
  key: "render",
437
440
  value: function render() {
438
441
  var element = this.renderElement();
439
- return /*#__PURE__*/React__default['default'].createElement(core.Portal, {
442
+ return /*#__PURE__*/React__default["default"].createElement(portal.Portal, {
440
443
  element: element,
441
444
  appendTo: this.props.appendTo
442
445
  });