primereact 8.7.1 → 8.7.3

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 (581) hide show
  1. package/accordion/accordion.cjs.js +56 -57
  2. package/accordion/accordion.cjs.min.js +1 -1
  3. package/accordion/accordion.esm.js +56 -57
  4. package/accordion/accordion.esm.min.js +1 -1
  5. package/accordion/accordion.js +56 -57
  6. package/accordion/accordion.min.js +1 -1
  7. package/api/api.cjs.js +30 -68
  8. package/api/api.cjs.min.js +1 -1
  9. package/api/api.esm.js +30 -68
  10. package/api/api.esm.min.js +1 -1
  11. package/api/api.js +30 -68
  12. package/api/api.min.js +1 -1
  13. package/autocomplete/autocomplete.cjs.js +88 -156
  14. package/autocomplete/autocomplete.cjs.min.js +1 -1
  15. package/autocomplete/autocomplete.d.ts +1 -0
  16. package/autocomplete/autocomplete.esm.js +88 -156
  17. package/autocomplete/autocomplete.esm.min.js +1 -1
  18. package/autocomplete/autocomplete.js +88 -156
  19. package/autocomplete/autocomplete.min.js +1 -1
  20. package/avatar/avatar.cjs.js +86 -14
  21. package/avatar/avatar.cjs.min.js +1 -1
  22. package/avatar/avatar.d.ts +5 -4
  23. package/avatar/avatar.esm.js +86 -14
  24. package/avatar/avatar.esm.min.js +1 -1
  25. package/avatar/avatar.js +86 -14
  26. package/avatar/avatar.min.js +1 -1
  27. package/avatargroup/avatargroup.cjs.js +0 -2
  28. package/avatargroup/avatargroup.esm.js +0 -2
  29. package/avatargroup/avatargroup.js +0 -2
  30. package/badge/badge.cjs.js +27 -3
  31. package/badge/badge.cjs.min.js +1 -1
  32. package/badge/badge.esm.js +27 -3
  33. package/badge/badge.esm.min.js +1 -1
  34. package/badge/badge.js +27 -3
  35. package/badge/badge.min.js +1 -1
  36. package/blockui/blockui.cjs.js +40 -54
  37. package/blockui/blockui.cjs.min.js +1 -1
  38. package/blockui/blockui.d.ts +5 -3
  39. package/blockui/blockui.esm.js +40 -54
  40. package/blockui/blockui.esm.min.js +1 -1
  41. package/blockui/blockui.js +40 -54
  42. package/blockui/blockui.min.js +1 -1
  43. package/breadcrumb/breadcrumb.cjs.js +6 -29
  44. package/breadcrumb/breadcrumb.esm.js +6 -29
  45. package/breadcrumb/breadcrumb.js +6 -29
  46. package/button/button.cjs.js +29 -11
  47. package/button/button.cjs.min.js +1 -1
  48. package/button/button.esm.js +29 -11
  49. package/button/button.esm.min.js +1 -1
  50. package/button/button.js +29 -11
  51. package/button/button.min.js +1 -1
  52. package/calendar/calendar.cjs.js +205 -667
  53. package/calendar/calendar.cjs.min.js +1 -1
  54. package/calendar/calendar.d.ts +6 -4
  55. package/calendar/calendar.esm.js +205 -667
  56. package/calendar/calendar.esm.min.js +1 -1
  57. package/calendar/calendar.js +205 -667
  58. package/calendar/calendar.min.js +1 -1
  59. package/captcha/captcha.cjs.js +0 -15
  60. package/captcha/captcha.esm.js +0 -15
  61. package/captcha/captcha.js +0 -15
  62. package/card/card.cjs.js +0 -6
  63. package/card/card.esm.js +0 -6
  64. package/card/card.js +0 -6
  65. package/carousel/carousel.cjs.js +42 -130
  66. package/carousel/carousel.cjs.min.js +1 -1
  67. package/carousel/carousel.esm.js +42 -130
  68. package/carousel/carousel.esm.min.js +1 -1
  69. package/carousel/carousel.js +42 -130
  70. package/carousel/carousel.min.js +1 -1
  71. package/cascadeselect/cascadeselect.cjs.js +47 -132
  72. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  73. package/cascadeselect/cascadeselect.esm.js +47 -132
  74. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  75. package/cascadeselect/cascadeselect.js +47 -132
  76. package/cascadeselect/cascadeselect.min.js +1 -1
  77. package/chart/chart.cjs.js +6 -7
  78. package/chart/chart.cjs.min.js +1 -1
  79. package/chart/chart.esm.js +6 -7
  80. package/chart/chart.esm.min.js +1 -1
  81. package/chart/chart.js +6 -7
  82. package/chart/chart.min.js +1 -1
  83. package/checkbox/checkbox.cjs.js +26 -40
  84. package/checkbox/checkbox.cjs.min.js +1 -1
  85. package/checkbox/checkbox.esm.js +26 -40
  86. package/checkbox/checkbox.esm.min.js +1 -1
  87. package/checkbox/checkbox.js +26 -40
  88. package/checkbox/checkbox.min.css +1 -1
  89. package/checkbox/checkbox.min.js +1 -1
  90. package/chip/chip.cjs.js +26 -41
  91. package/chip/chip.cjs.min.js +1 -1
  92. package/chip/chip.esm.js +26 -41
  93. package/chip/chip.esm.min.js +1 -1
  94. package/chip/chip.js +26 -41
  95. package/chip/chip.min.js +1 -1
  96. package/chips/chips.cjs.js +29 -72
  97. package/chips/chips.cjs.min.js +1 -1
  98. package/chips/chips.esm.js +29 -72
  99. package/chips/chips.esm.min.js +1 -1
  100. package/chips/chips.js +29 -72
  101. package/chips/chips.min.js +1 -1
  102. package/colorpicker/colorpicker.cjs.js +75 -143
  103. package/colorpicker/colorpicker.cjs.min.js +1 -1
  104. package/colorpicker/colorpicker.d.ts +8 -6
  105. package/colorpicker/colorpicker.esm.js +75 -143
  106. package/colorpicker/colorpicker.esm.min.js +1 -1
  107. package/colorpicker/colorpicker.js +75 -143
  108. package/colorpicker/colorpicker.min.js +1 -1
  109. package/column/column.d.ts +1 -0
  110. package/confirmdialog/confirmdialog.cjs.js +60 -60
  111. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  112. package/confirmdialog/confirmdialog.esm.js +60 -60
  113. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  114. package/confirmdialog/confirmdialog.js +60 -60
  115. package/confirmdialog/confirmdialog.min.js +1 -1
  116. package/confirmpopup/confirmpopup.cjs.js +74 -94
  117. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  118. package/confirmpopup/confirmpopup.esm.js +74 -94
  119. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  120. package/confirmpopup/confirmpopup.js +74 -94
  121. package/confirmpopup/confirmpopup.min.js +1 -1
  122. package/contextmenu/contextmenu.cjs.js +75 -120
  123. package/contextmenu/contextmenu.cjs.min.js +1 -1
  124. package/contextmenu/contextmenu.esm.js +75 -120
  125. package/contextmenu/contextmenu.esm.min.js +1 -1
  126. package/contextmenu/contextmenu.js +75 -120
  127. package/contextmenu/contextmenu.min.js +1 -1
  128. package/core/core.js +986 -2025
  129. package/core/core.min.js +18 -18
  130. package/csstransition/csstransition.cjs.js +27 -13
  131. package/csstransition/csstransition.cjs.min.js +1 -1
  132. package/csstransition/csstransition.esm.js +27 -13
  133. package/csstransition/csstransition.esm.min.js +1 -1
  134. package/csstransition/csstransition.js +27 -13
  135. package/csstransition/csstransition.min.js +1 -1
  136. package/datascroller/datascroller.cjs.js +32 -64
  137. package/datascroller/datascroller.cjs.min.js +1 -1
  138. package/datascroller/datascroller.esm.js +32 -64
  139. package/datascroller/datascroller.esm.min.js +1 -1
  140. package/datascroller/datascroller.js +32 -64
  141. package/datascroller/datascroller.min.js +1 -1
  142. package/datatable/datatable.cjs.js +318 -1077
  143. package/datatable/datatable.cjs.min.js +1 -1
  144. package/datatable/datatable.d.ts +6 -1
  145. package/datatable/datatable.esm.js +318 -1077
  146. package/datatable/datatable.esm.min.js +1 -1
  147. package/datatable/datatable.js +318 -1077
  148. package/datatable/datatable.min.js +1 -1
  149. package/dataview/dataview.cjs.js +56 -68
  150. package/dataview/dataview.cjs.min.js +1 -1
  151. package/dataview/dataview.esm.js +56 -68
  152. package/dataview/dataview.esm.min.js +1 -1
  153. package/dataview/dataview.js +56 -68
  154. package/dataview/dataview.min.js +1 -1
  155. package/deferredcontent/deferredcontent.cjs.js +37 -46
  156. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  157. package/deferredcontent/deferredcontent.esm.js +37 -46
  158. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  159. package/deferredcontent/deferredcontent.js +37 -46
  160. package/deferredcontent/deferredcontent.min.js +1 -1
  161. package/dialog/dialog.cjs.js +89 -175
  162. package/dialog/dialog.cjs.min.js +1 -1
  163. package/dialog/dialog.esm.js +89 -175
  164. package/dialog/dialog.esm.min.js +1 -1
  165. package/dialog/dialog.js +89 -175
  166. package/dialog/dialog.min.css +1 -1
  167. package/dialog/dialog.min.js +1 -1
  168. package/divider/divider.cjs.js +0 -2
  169. package/divider/divider.esm.js +0 -2
  170. package/divider/divider.js +0 -2
  171. package/dock/dock.cjs.js +31 -53
  172. package/dock/dock.cjs.min.js +1 -1
  173. package/dock/dock.esm.js +31 -53
  174. package/dock/dock.esm.min.js +1 -1
  175. package/dock/dock.js +31 -53
  176. package/dock/dock.min.js +1 -1
  177. package/dropdown/dropdown.cjs.js +72 -199
  178. package/dropdown/dropdown.cjs.min.js +1 -1
  179. package/dropdown/dropdown.d.ts +39 -38
  180. package/dropdown/dropdown.esm.js +72 -199
  181. package/dropdown/dropdown.esm.min.js +1 -1
  182. package/dropdown/dropdown.js +72 -199
  183. package/dropdown/dropdown.min.js +1 -1
  184. package/editor/editor.cjs.js +31 -22
  185. package/editor/editor.cjs.min.js +1 -1
  186. package/editor/editor.esm.js +31 -22
  187. package/editor/editor.esm.min.js +1 -1
  188. package/editor/editor.js +31 -22
  189. package/editor/editor.min.js +1 -1
  190. package/fieldset/fieldset.cjs.js +29 -51
  191. package/fieldset/fieldset.cjs.min.js +1 -1
  192. package/fieldset/fieldset.esm.js +29 -51
  193. package/fieldset/fieldset.esm.min.js +1 -1
  194. package/fieldset/fieldset.js +29 -51
  195. package/fieldset/fieldset.min.js +1 -1
  196. package/fileupload/fileupload.cjs.js +45 -128
  197. package/fileupload/fileupload.cjs.min.js +1 -1
  198. package/fileupload/fileupload.esm.js +45 -128
  199. package/fileupload/fileupload.esm.min.js +1 -1
  200. package/fileupload/fileupload.js +45 -128
  201. package/fileupload/fileupload.min.js +1 -1
  202. package/galleria/galleria.cjs.js +54 -165
  203. package/galleria/galleria.cjs.min.js +1 -1
  204. package/galleria/galleria.esm.js +54 -165
  205. package/galleria/galleria.esm.min.js +1 -1
  206. package/galleria/galleria.js +54 -165
  207. package/galleria/galleria.min.js +1 -1
  208. package/gmap/gmap.cjs.js +2 -23
  209. package/gmap/gmap.esm.js +2 -23
  210. package/gmap/gmap.js +2 -23
  211. package/hooks/hooks.cjs.js +102 -131
  212. package/hooks/hooks.cjs.min.js +1 -1
  213. package/hooks/hooks.esm.js +102 -131
  214. package/hooks/hooks.esm.min.js +1 -1
  215. package/hooks/hooks.js +102 -131
  216. package/hooks/hooks.min.js +1 -1
  217. package/image/image.cjs.js +41 -67
  218. package/image/image.cjs.min.js +1 -1
  219. package/image/image.d.ts +1 -1
  220. package/image/image.esm.js +41 -67
  221. package/image/image.esm.min.js +1 -1
  222. package/image/image.js +41 -67
  223. package/image/image.min.js +1 -1
  224. package/inplace/inplace.cjs.js +26 -45
  225. package/inplace/inplace.cjs.min.js +1 -1
  226. package/inplace/inplace.esm.js +26 -45
  227. package/inplace/inplace.esm.min.js +1 -1
  228. package/inplace/inplace.js +26 -45
  229. package/inplace/inplace.min.js +1 -1
  230. package/inputmask/inputmask.cjs.js +16 -108
  231. package/inputmask/inputmask.d.ts +1 -1
  232. package/inputmask/inputmask.esm.js +16 -108
  233. package/inputmask/inputmask.js +16 -108
  234. package/inputnumber/inputnumber.cjs.js +89 -230
  235. package/inputnumber/inputnumber.cjs.min.js +1 -1
  236. package/inputnumber/inputnumber.d.ts +2 -1
  237. package/inputnumber/inputnumber.esm.js +89 -230
  238. package/inputnumber/inputnumber.esm.min.js +1 -1
  239. package/inputnumber/inputnumber.js +89 -230
  240. package/inputnumber/inputnumber.min.js +1 -1
  241. package/inputswitch/inputswitch.cjs.js +26 -37
  242. package/inputswitch/inputswitch.cjs.min.js +1 -1
  243. package/inputswitch/inputswitch.esm.js +26 -37
  244. package/inputswitch/inputswitch.esm.min.js +1 -1
  245. package/inputswitch/inputswitch.js +26 -37
  246. package/inputswitch/inputswitch.min.js +1 -1
  247. package/inputtext/inputtext.cjs.js +4 -15
  248. package/inputtext/inputtext.cjs.min.js +1 -1
  249. package/inputtext/inputtext.d.ts +3 -3
  250. package/inputtext/inputtext.esm.js +4 -15
  251. package/inputtext/inputtext.esm.min.js +1 -1
  252. package/inputtext/inputtext.js +4 -15
  253. package/inputtext/inputtext.min.js +1 -1
  254. package/inputtextarea/inputtextarea.cjs.js +24 -18
  255. package/inputtextarea/inputtextarea.cjs.min.js +1 -1
  256. package/inputtextarea/inputtextarea.d.ts +4 -2
  257. package/inputtextarea/inputtextarea.esm.js +24 -18
  258. package/inputtextarea/inputtextarea.esm.min.js +1 -1
  259. package/inputtextarea/inputtextarea.js +25 -20
  260. package/inputtextarea/inputtextarea.min.js +1 -1
  261. package/keyfilter/keyfilter.cjs.js +6 -16
  262. package/keyfilter/keyfilter.cjs.min.js +1 -1
  263. package/keyfilter/keyfilter.esm.js +6 -16
  264. package/keyfilter/keyfilter.esm.min.js +1 -1
  265. package/keyfilter/keyfilter.js +6 -16
  266. package/keyfilter/keyfilter.min.js +1 -1
  267. package/knob/knob.cjs.js +74 -106
  268. package/knob/knob.cjs.min.js +1 -1
  269. package/knob/knob.esm.js +74 -106
  270. package/knob/knob.esm.min.js +1 -1
  271. package/knob/knob.js +74 -106
  272. package/knob/knob.min.js +1 -1
  273. package/listbox/listbox.cjs.js +94 -125
  274. package/listbox/listbox.cjs.min.js +1 -1
  275. package/listbox/listbox.d.ts +6 -0
  276. package/listbox/listbox.esm.js +95 -126
  277. package/listbox/listbox.esm.min.js +1 -1
  278. package/listbox/listbox.js +94 -125
  279. package/listbox/listbox.min.js +1 -1
  280. package/megamenu/megamenu.cjs.js +36 -99
  281. package/megamenu/megamenu.cjs.min.js +1 -1
  282. package/megamenu/megamenu.esm.js +36 -99
  283. package/megamenu/megamenu.esm.min.js +1 -1
  284. package/megamenu/megamenu.js +36 -99
  285. package/megamenu/megamenu.min.js +1 -1
  286. package/mention/mention.cjs.js +106 -136
  287. package/mention/mention.cjs.min.js +1 -1
  288. package/mention/mention.d.ts +1 -1
  289. package/mention/mention.esm.js +106 -136
  290. package/mention/mention.esm.min.js +1 -1
  291. package/mention/mention.js +107 -138
  292. package/mention/mention.min.js +1 -1
  293. package/menu/menu.cjs.js +38 -72
  294. package/menu/menu.cjs.min.js +1 -1
  295. package/menu/menu.esm.js +38 -72
  296. package/menu/menu.esm.min.js +1 -1
  297. package/menu/menu.js +38 -72
  298. package/menu/menu.min.css +1 -1
  299. package/menu/menu.min.js +1 -1
  300. package/menubar/menubar.cjs.js +49 -99
  301. package/menubar/menubar.cjs.min.js +1 -1
  302. package/menubar/menubar.esm.js +49 -99
  303. package/menubar/menubar.esm.min.js +1 -1
  304. package/menubar/menubar.js +49 -99
  305. package/menubar/menubar.min.js +1 -1
  306. package/message/message.cjs.js +0 -7
  307. package/message/message.esm.js +0 -7
  308. package/message/message.js +0 -7
  309. package/messages/messages.cjs.js +39 -67
  310. package/messages/messages.cjs.min.js +1 -1
  311. package/messages/messages.esm.js +39 -67
  312. package/messages/messages.esm.min.js +1 -1
  313. package/messages/messages.js +39 -67
  314. package/messages/messages.min.js +1 -1
  315. package/multiselect/multiselect.cjs.js +137 -210
  316. package/multiselect/multiselect.cjs.min.js +1 -1
  317. package/multiselect/multiselect.d.ts +46 -41
  318. package/multiselect/multiselect.esm.js +137 -210
  319. package/multiselect/multiselect.esm.min.js +1 -1
  320. package/multiselect/multiselect.js +137 -210
  321. package/multiselect/multiselect.min.css +1 -1
  322. package/multiselect/multiselect.min.js +1 -1
  323. package/multistatecheckbox/multistatecheckbox.cjs.js +58 -53
  324. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  325. package/multistatecheckbox/multistatecheckbox.esm.js +58 -53
  326. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  327. package/multistatecheckbox/multistatecheckbox.js +58 -53
  328. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  329. package/orderlist/orderlist.cjs.js +38 -103
  330. package/orderlist/orderlist.cjs.min.js +1 -1
  331. package/orderlist/orderlist.esm.js +38 -103
  332. package/orderlist/orderlist.esm.min.js +1 -1
  333. package/orderlist/orderlist.js +38 -103
  334. package/orderlist/orderlist.min.css +1 -1
  335. package/orderlist/orderlist.min.js +1 -1
  336. package/organizationchart/organizationchart.cjs.js +26 -52
  337. package/organizationchart/organizationchart.cjs.min.js +1 -1
  338. package/organizationchart/organizationchart.esm.js +26 -52
  339. package/organizationchart/organizationchart.esm.min.js +1 -1
  340. package/organizationchart/organizationchart.js +26 -52
  341. package/organizationchart/organizationchart.min.js +1 -1
  342. package/overlaypanel/overlaypanel.cjs.js +40 -79
  343. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  344. package/overlaypanel/overlaypanel.esm.js +40 -79
  345. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  346. package/overlaypanel/overlaypanel.js +40 -79
  347. package/overlaypanel/overlaypanel.min.css +1 -1
  348. package/overlaypanel/overlaypanel.min.js +1 -1
  349. package/package.json +1 -1
  350. package/paginator/paginator.cjs.js +46 -87
  351. package/paginator/paginator.cjs.min.js +1 -1
  352. package/paginator/paginator.esm.js +46 -87
  353. package/paginator/paginator.esm.min.js +1 -1
  354. package/paginator/paginator.js +46 -87
  355. package/paginator/paginator.min.js +1 -1
  356. package/panel/panel.cjs.js +29 -50
  357. package/panel/panel.cjs.min.js +1 -1
  358. package/panel/panel.esm.js +29 -50
  359. package/panel/panel.esm.min.js +1 -1
  360. package/panel/panel.js +29 -50
  361. package/panel/panel.min.js +1 -1
  362. package/panelmenu/panelmenu.cjs.js +35 -81
  363. package/panelmenu/panelmenu.cjs.min.js +1 -1
  364. package/panelmenu/panelmenu.esm.js +35 -81
  365. package/panelmenu/panelmenu.esm.min.js +1 -1
  366. package/panelmenu/panelmenu.js +35 -81
  367. package/panelmenu/panelmenu.min.js +1 -1
  368. package/password/password.cjs.js +54 -107
  369. package/password/password.cjs.min.js +1 -1
  370. package/password/password.d.ts +1 -1
  371. package/password/password.esm.js +54 -107
  372. package/password/password.esm.min.js +1 -1
  373. package/password/password.js +54 -107
  374. package/password/password.min.js +1 -1
  375. package/picklist/picklist.cjs.js +48 -159
  376. package/picklist/picklist.cjs.min.js +1 -1
  377. package/picklist/picklist.esm.js +48 -159
  378. package/picklist/picklist.esm.min.js +1 -1
  379. package/picklist/picklist.js +48 -159
  380. package/picklist/picklist.min.js +1 -1
  381. package/portal/portal.cjs.js +26 -31
  382. package/portal/portal.cjs.min.js +1 -1
  383. package/portal/portal.esm.js +26 -31
  384. package/portal/portal.esm.min.js +1 -1
  385. package/portal/portal.js +26 -31
  386. package/portal/portal.min.js +1 -1
  387. package/primereact.all.cjs.js +2325 -7353
  388. package/primereact.all.cjs.min.js +1 -1
  389. package/primereact.all.esm.js +2325 -7353
  390. package/primereact.all.esm.min.js +1 -1
  391. package/primereact.all.js +2325 -7353
  392. package/primereact.all.min.js +1 -1
  393. package/progressbar/progressbar.cjs.js +0 -7
  394. package/progressbar/progressbar.esm.js +0 -7
  395. package/progressbar/progressbar.js +0 -7
  396. package/progressspinner/progressspinner.cjs.js +0 -2
  397. package/progressspinner/progressspinner.esm.js +0 -2
  398. package/progressspinner/progressspinner.js +0 -2
  399. package/radiobutton/radiobutton.cjs.js +30 -40
  400. package/radiobutton/radiobutton.cjs.min.js +1 -1
  401. package/radiobutton/radiobutton.esm.js +30 -40
  402. package/radiobutton/radiobutton.esm.min.js +1 -1
  403. package/radiobutton/radiobutton.js +30 -40
  404. package/radiobutton/radiobutton.min.js +1 -1
  405. package/rating/rating.cjs.js +27 -14
  406. package/rating/rating.cjs.min.js +1 -1
  407. package/rating/rating.esm.js +27 -14
  408. package/rating/rating.esm.min.js +1 -1
  409. package/rating/rating.js +27 -14
  410. package/rating/rating.min.js +1 -1
  411. package/resources/primereact.css +47 -1
  412. package/resources/primereact.min.css +1 -1
  413. package/ripple/ripple.cjs.js +0 -13
  414. package/ripple/ripple.cjs.min.js +1 -1
  415. package/ripple/ripple.esm.js +0 -13
  416. package/ripple/ripple.esm.min.js +1 -1
  417. package/ripple/ripple.js +0 -13
  418. package/ripple/ripple.min.js +1 -1
  419. package/row/row.cjs.js +0 -2
  420. package/row/row.esm.js +0 -2
  421. package/row/row.js +0 -2
  422. package/scrollpanel/scrollpanel.cjs.js +2 -16
  423. package/scrollpanel/scrollpanel.esm.js +2 -16
  424. package/scrollpanel/scrollpanel.js +2 -16
  425. package/scrolltop/scrolltop.cjs.js +44 -57
  426. package/scrolltop/scrolltop.cjs.min.js +1 -1
  427. package/scrolltop/scrolltop.esm.js +44 -57
  428. package/scrolltop/scrolltop.esm.min.js +1 -1
  429. package/scrolltop/scrolltop.js +44 -57
  430. package/scrolltop/scrolltop.min.js +1 -1
  431. package/selectbutton/selectbutton.cjs.js +26 -53
  432. package/selectbutton/selectbutton.cjs.min.js +1 -1
  433. package/selectbutton/selectbutton.esm.js +26 -53
  434. package/selectbutton/selectbutton.esm.min.js +1 -1
  435. package/selectbutton/selectbutton.js +26 -53
  436. package/selectbutton/selectbutton.min.js +1 -1
  437. package/sidebar/sidebar.cjs.js +52 -83
  438. package/sidebar/sidebar.cjs.min.js +1 -1
  439. package/sidebar/sidebar.esm.js +52 -83
  440. package/sidebar/sidebar.esm.min.js +1 -1
  441. package/sidebar/sidebar.js +52 -83
  442. package/sidebar/sidebar.min.css +1 -1
  443. package/sidebar/sidebar.min.js +1 -1
  444. package/skeleton/skeleton.cjs.js +0 -2
  445. package/skeleton/skeleton.esm.js +0 -2
  446. package/skeleton/skeleton.js +0 -2
  447. package/slidemenu/slidemenu.cjs.js +73 -87
  448. package/slidemenu/slidemenu.cjs.min.js +1 -1
  449. package/slidemenu/slidemenu.esm.js +73 -87
  450. package/slidemenu/slidemenu.esm.min.js +1 -1
  451. package/slidemenu/slidemenu.js +73 -87
  452. package/slidemenu/slidemenu.min.js +1 -1
  453. package/slider/slider.cjs.js +61 -96
  454. package/slider/slider.cjs.min.js +1 -1
  455. package/slider/slider.esm.js +61 -96
  456. package/slider/slider.esm.min.js +1 -1
  457. package/slider/slider.js +61 -96
  458. package/slider/slider.min.js +1 -1
  459. package/speeddial/speeddial.cjs.js +70 -89
  460. package/speeddial/speeddial.cjs.min.js +1 -1
  461. package/speeddial/speeddial.esm.js +70 -89
  462. package/speeddial/speeddial.esm.min.js +1 -1
  463. package/speeddial/speeddial.js +70 -89
  464. package/speeddial/speeddial.min.js +1 -1
  465. package/splitbutton/splitbutton.cjs.js +46 -80
  466. package/splitbutton/splitbutton.cjs.min.js +1 -1
  467. package/splitbutton/splitbutton.esm.js +46 -80
  468. package/splitbutton/splitbutton.esm.min.js +1 -1
  469. package/splitbutton/splitbutton.js +46 -80
  470. package/splitbutton/splitbutton.min.js +1 -1
  471. package/splitter/splitter.cjs.js +72 -85
  472. package/splitter/splitter.cjs.min.js +1 -1
  473. package/splitter/splitter.esm.js +72 -85
  474. package/splitter/splitter.esm.min.js +1 -1
  475. package/splitter/splitter.js +72 -85
  476. package/splitter/splitter.min.js +1 -1
  477. package/steps/steps.cjs.js +0 -14
  478. package/steps/steps.esm.js +0 -14
  479. package/steps/steps.js +0 -14
  480. package/styleclass/styleclass.cjs.js +75 -111
  481. package/styleclass/styleclass.cjs.min.js +1 -1
  482. package/styleclass/styleclass.esm.js +75 -111
  483. package/styleclass/styleclass.esm.min.js +1 -1
  484. package/styleclass/styleclass.js +75 -111
  485. package/styleclass/styleclass.min.js +1 -1
  486. package/tabmenu/tabmenu.cjs.js +33 -54
  487. package/tabmenu/tabmenu.cjs.min.js +1 -1
  488. package/tabmenu/tabmenu.esm.js +33 -54
  489. package/tabmenu/tabmenu.esm.min.js +1 -1
  490. package/tabmenu/tabmenu.js +33 -54
  491. package/tabmenu/tabmenu.min.js +1 -1
  492. package/tabview/tabview.cjs.js +83 -102
  493. package/tabview/tabview.cjs.min.js +1 -1
  494. package/tabview/tabview.esm.js +83 -102
  495. package/tabview/tabview.esm.min.js +1 -1
  496. package/tabview/tabview.js +83 -102
  497. package/tabview/tabview.min.js +1 -1
  498. package/tag/tag.cjs.js +27 -4
  499. package/tag/tag.cjs.min.js +1 -1
  500. package/tag/tag.esm.js +27 -4
  501. package/tag/tag.esm.min.js +1 -1
  502. package/tag/tag.js +27 -4
  503. package/tag/tag.min.js +1 -1
  504. package/terminal/terminal.cjs.js +37 -63
  505. package/terminal/terminal.cjs.min.js +1 -1
  506. package/terminal/terminal.esm.js +37 -63
  507. package/terminal/terminal.esm.min.js +1 -1
  508. package/terminal/terminal.js +37 -63
  509. package/terminal/terminal.min.js +1 -1
  510. package/tieredmenu/tieredmenu.cjs.js +76 -117
  511. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  512. package/tieredmenu/tieredmenu.esm.js +76 -117
  513. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  514. package/tieredmenu/tieredmenu.js +76 -117
  515. package/tieredmenu/tieredmenu.min.js +1 -1
  516. package/timeline/timeline.cjs.js +27 -7
  517. package/timeline/timeline.cjs.min.js +1 -1
  518. package/timeline/timeline.esm.js +27 -7
  519. package/timeline/timeline.esm.min.js +1 -1
  520. package/timeline/timeline.js +27 -7
  521. package/timeline/timeline.min.js +1 -1
  522. package/toast/toast.cjs.js +81 -99
  523. package/toast/toast.cjs.min.js +1 -1
  524. package/toast/toast.esm.js +81 -99
  525. package/toast/toast.esm.min.js +1 -1
  526. package/toast/toast.js +81 -99
  527. package/toast/toast.min.js +1 -1
  528. package/togglebutton/togglebutton.cjs.js +0 -7
  529. package/togglebutton/togglebutton.esm.js +0 -7
  530. package/togglebutton/togglebutton.js +0 -7
  531. package/toolbar/toolbar.cjs.js +0 -2
  532. package/toolbar/toolbar.esm.js +0 -2
  533. package/toolbar/toolbar.js +0 -2
  534. package/tooltip/tooltip.cjs.js +113 -167
  535. package/tooltip/tooltip.cjs.min.js +1 -1
  536. package/tooltip/tooltip.esm.js +113 -167
  537. package/tooltip/tooltip.esm.min.js +1 -1
  538. package/tooltip/tooltip.js +113 -167
  539. package/tooltip/tooltip.min.css +1 -1
  540. package/tooltip/tooltip.min.js +1 -1
  541. package/tooltip/tooltipoptions.d.ts +13 -13
  542. package/tree/tree.cjs.js +68 -223
  543. package/tree/tree.cjs.min.js +1 -1
  544. package/tree/tree.esm.js +68 -223
  545. package/tree/tree.esm.min.js +1 -1
  546. package/tree/tree.js +68 -223
  547. package/tree/tree.min.js +1 -1
  548. package/treenode/treenode.d.ts +1 -0
  549. package/treeselect/treeselect.cjs.js +117 -167
  550. package/treeselect/treeselect.cjs.min.js +1 -1
  551. package/treeselect/treeselect.d.ts +30 -29
  552. package/treeselect/treeselect.esm.js +117 -167
  553. package/treeselect/treeselect.esm.min.js +1 -1
  554. package/treeselect/treeselect.js +117 -167
  555. package/treeselect/treeselect.min.js +1 -1
  556. package/treetable/treetable.cjs.js +143 -462
  557. package/treetable/treetable.cjs.min.js +1 -1
  558. package/treetable/treetable.esm.js +143 -462
  559. package/treetable/treetable.esm.min.js +1 -1
  560. package/treetable/treetable.js +143 -462
  561. package/treetable/treetable.min.js +1 -1
  562. package/tristatecheckbox/tristatecheckbox.cjs.js +29 -39
  563. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  564. package/tristatecheckbox/tristatecheckbox.esm.js +29 -39
  565. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  566. package/tristatecheckbox/tristatecheckbox.js +29 -39
  567. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  568. package/utils/utils.cjs.js +112 -328
  569. package/utils/utils.cjs.min.js +1 -1
  570. package/utils/utils.d.ts +1 -1
  571. package/utils/utils.esm.js +112 -328
  572. package/utils/utils.esm.min.js +1 -1
  573. package/utils/utils.js +112 -328
  574. package/utils/utils.min.js +1 -1
  575. package/virtualscroller/virtualscroller.cjs.js +108 -204
  576. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  577. package/virtualscroller/virtualscroller.esm.js +108 -204
  578. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  579. package/virtualscroller/virtualscroller.js +108 -204
  580. package/virtualscroller/virtualscroller.min.js +1 -1
  581. package/web-types.json +166 -40
@@ -8,20 +8,45 @@ function _extends() {
8
8
  _extends = Object.assign ? Object.assign.bind() : function (target) {
9
9
  for (var i = 1; i < arguments.length; i++) {
10
10
  var source = arguments[i];
11
-
12
11
  for (var key in source) {
13
12
  if (Object.prototype.hasOwnProperty.call(source, key)) {
14
13
  target[key] = source[key];
15
14
  }
16
15
  }
17
16
  }
18
-
19
17
  return target;
20
18
  };
21
19
  return _extends.apply(this, arguments);
22
20
  }
23
21
 
22
+ function _typeof(obj) {
23
+ "@babel/helpers - typeof";
24
+
25
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
26
+ return typeof obj;
27
+ } : function (obj) {
28
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
29
+ }, _typeof(obj);
30
+ }
31
+
32
+ function _toPrimitive(input, hint) {
33
+ if (_typeof(input) !== "object" || input === null) return input;
34
+ var prim = input[Symbol.toPrimitive];
35
+ if (prim !== undefined) {
36
+ var res = prim.call(input, hint || "default");
37
+ if (_typeof(res) !== "object") return res;
38
+ throw new TypeError("@@toPrimitive must return a primitive value.");
39
+ }
40
+ return (hint === "string" ? String : Number)(input);
41
+ }
42
+
43
+ function _toPropertyKey(arg) {
44
+ var key = _toPrimitive(arg, "string");
45
+ return _typeof(key) === "symbol" ? key : String(key);
46
+ }
47
+
24
48
  function _defineProperty(obj, key, value) {
49
+ key = _toPropertyKey(key);
25
50
  if (key in obj) {
26
51
  Object.defineProperty(obj, key, {
27
52
  value: value,
@@ -32,7 +57,6 @@ function _defineProperty(obj, key, value) {
32
57
  } else {
33
58
  obj[key] = value;
34
59
  }
35
-
36
60
  return obj;
37
61
  }
38
62
 
@@ -41,42 +65,40 @@ function _arrayWithHoles(arr) {
41
65
  }
42
66
 
43
67
  function _iterableToArrayLimit(arr, i) {
44
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
45
-
46
- if (_i == null) return;
47
- var _arr = [];
48
- var _n = true;
49
- var _d = false;
50
-
51
- var _s, _e;
52
-
53
- try {
54
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
55
- _arr.push(_s.value);
56
-
57
- if (i && _arr.length === i) break;
58
- }
59
- } catch (err) {
60
- _d = true;
61
- _e = err;
62
- } finally {
68
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
69
+ if (null != _i) {
70
+ var _s,
71
+ _e,
72
+ _x,
73
+ _r,
74
+ _arr = [],
75
+ _n = !0,
76
+ _d = !1;
63
77
  try {
64
- if (!_n && _i["return"] != null) _i["return"]();
78
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
79
+ if (Object(_i) !== _i) return;
80
+ _n = !1;
81
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
82
+ ;
83
+ }
84
+ } catch (err) {
85
+ _d = !0, _e = err;
65
86
  } finally {
66
- if (_d) throw _e;
87
+ try {
88
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
89
+ } finally {
90
+ if (_d) throw _e;
91
+ }
67
92
  }
93
+ return _arr;
68
94
  }
69
-
70
- return _arr;
71
95
  }
72
96
 
73
97
  function _arrayLikeToArray(arr, len) {
74
98
  if (len == null || len > arr.length) len = arr.length;
75
-
76
99
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
77
100
  arr2[i] = arr[i];
78
101
  }
79
-
80
102
  return arr2;
81
103
  }
82
104
 
@@ -98,52 +120,43 @@ function _slicedToArray(arr, i) {
98
120
  }
99
121
 
100
122
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
101
-
102
123
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
103
124
  var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
104
125
  var _classNames2;
105
-
106
126
  var _React$useState = React.useState(false),
107
- _React$useState2 = _slicedToArray(_React$useState, 2),
108
- visibleState = _React$useState2[0],
109
- setVisibleState = _React$useState2[1];
110
-
127
+ _React$useState2 = _slicedToArray(_React$useState, 2),
128
+ visibleState = _React$useState2[0],
129
+ setVisibleState = _React$useState2[1];
111
130
  var isItemClicked = React.useRef(false);
112
131
  var elementRef = React.useRef(null);
113
132
  var listRef = React.useRef(null);
114
133
  var visible = props.onVisibleChange ? props.visible : visibleState;
115
-
116
134
  var _useEventListener = useEventListener({
117
- type: 'click',
118
- listener: function listener(event) {
119
- if (!isItemClicked.current && isOutsideClicked(event)) {
120
- hide();
121
- }
122
-
123
- isItemClicked.current = false;
124
- },
125
- when: visibleState
126
- }),
127
- _useEventListener2 = _slicedToArray(_useEventListener, 2),
128
- bindDocumentClickListener = _useEventListener2[0],
129
- unbindDocumentClickListener = _useEventListener2[1];
130
-
135
+ type: 'click',
136
+ listener: function listener(event) {
137
+ if (!isItemClicked.current && isOutsideClicked(event)) {
138
+ hide();
139
+ }
140
+ isItemClicked.current = false;
141
+ },
142
+ when: visibleState
143
+ }),
144
+ _useEventListener2 = _slicedToArray(_useEventListener, 2),
145
+ bindDocumentClickListener = _useEventListener2[0],
146
+ unbindDocumentClickListener = _useEventListener2[1];
131
147
  var show = function show() {
132
148
  props.onVisibleChange ? props.onVisibleChange(true) : setVisibleState(true);
133
149
  props.onShow && props.onShow();
134
150
  };
135
-
136
151
  var hide = function hide() {
137
152
  props.onVisibleChange ? props.onVisibleChange(false) : setVisibleState(false);
138
153
  props.onHide && props.onHide();
139
154
  };
140
-
141
155
  var onClick = function onClick(e) {
142
156
  visible ? hide() : show();
143
157
  props.onClick && props.onClick(e);
144
158
  isItemClicked.current = true;
145
159
  };
146
-
147
160
  var onItemClick = function onItemClick(e, item) {
148
161
  item.command && item.command({
149
162
  originalEvent: e,
@@ -153,23 +166,18 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
153
166
  isItemClicked.current = true;
154
167
  e.preventDefault();
155
168
  };
156
-
157
169
  var isOutsideClicked = function isOutsideClicked(event) {
158
170
  return elementRef.current && !(elementRef.current.isSameNode(event.target) || elementRef.current.contains(event.target));
159
171
  };
160
-
161
172
  var calculateTransitionDelay = function calculateTransitionDelay(index) {
162
173
  var length = props.model.length;
163
174
  return (visible ? index : length - index - 1) * props.transitionDelay;
164
175
  };
165
-
166
176
  var calculatePointStyle = function calculatePointStyle(index) {
167
177
  var type = props.type;
168
-
169
178
  if (type !== 'linear') {
170
179
  var length = props.model.length;
171
180
  var radius = props.radius || length * 20;
172
-
173
181
  if (type === 'circle') {
174
182
  var step = 2 * Math.PI / length;
175
183
  return {
@@ -178,12 +186,9 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
178
186
  };
179
187
  } else if (type === 'semi-circle') {
180
188
  var direction = props.direction;
181
-
182
189
  var _step = Math.PI / (length - 1);
183
-
184
190
  var x = "calc(".concat(radius * Math.cos(_step * index), "px + var(--item-diff-x, 0px))");
185
191
  var y = "calc(".concat(radius * Math.sin(_step * index), "px + var(--item-diff-y, 0px))");
186
-
187
192
  if (direction === 'up') {
188
193
  return {
189
194
  left: x,
@@ -207,13 +212,9 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
207
212
  }
208
213
  } else if (type === 'quarter-circle') {
209
214
  var _direction = props.direction;
210
-
211
215
  var _step2 = Math.PI / (2 * (length - 1));
212
-
213
216
  var _x = "calc(".concat(radius * Math.cos(_step2 * index), "px + var(--item-diff-x, 0px))");
214
-
215
217
  var _y = "calc(".concat(radius * Math.sin(_step2 * index), "px + var(--item-diff-y, 0px))");
216
-
217
218
  if (_direction === 'up-left') {
218
219
  return {
219
220
  right: _x,
@@ -237,10 +238,8 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
237
238
  }
238
239
  }
239
240
  }
240
-
241
241
  return {};
242
242
  };
243
-
244
243
  var getItemStyle = function getItemStyle(index) {
245
244
  var transitionDelay = calculateTransitionDelay(index);
246
245
  var pointStyle = calculatePointStyle(index);
@@ -248,13 +247,10 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
248
247
  transitionDelay: "".concat(transitionDelay, "ms")
249
248
  }, pointStyle);
250
249
  };
251
-
252
250
  useMountEffect(function () {
253
251
  if (props.type !== 'linear') {
254
252
  var _button = DomHandler.findSingle(elementRef.current, '.p-speeddial-button');
255
-
256
253
  var firstItem = DomHandler.findSingle(listRef.current, '.p-speeddial-item');
257
-
258
254
  if (_button && firstItem) {
259
255
  var wDiff = Math.abs(_button.offsetWidth - firstItem.offsetWidth);
260
256
  var hDiff = Math.abs(_button.offsetHeight - firstItem.offsetHeight);
@@ -267,7 +263,6 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
267
263
  if (visibleState) {
268
264
  props.hideOnClickOutside && bindDocumentClickListener();
269
265
  }
270
-
271
266
  return function () {
272
267
  props.hideOnClickOutside && unbindDocumentClickListener();
273
268
  };
@@ -282,19 +277,17 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
282
277
  }
283
278
  };
284
279
  });
285
-
286
280
  var createItem = function createItem(item, index) {
287
281
  if (item.visible === false) {
288
282
  return null;
289
283
  }
290
-
291
284
  var style = getItemStyle(index);
292
285
  var disabled = item.disabled,
293
- _icon = item.icon,
294
- label = item.label,
295
- template = item.template,
296
- url = item.url,
297
- target = item.target;
286
+ _icon = item.icon,
287
+ label = item.label,
288
+ template = item.template,
289
+ url = item.url,
290
+ target = item.target;
298
291
  var contentClassName = classNames('p-speeddial-action', {
299
292
  'p-disabled': disabled
300
293
  });
@@ -314,7 +307,6 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
314
307
  return onItemClick(e, item);
315
308
  }
316
309
  }, icon, /*#__PURE__*/React.createElement(Ripple, null));
317
-
318
310
  if (template) {
319
311
  var defaultContentOptions = {
320
312
  onClick: function onClick(e) {
@@ -328,7 +320,6 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
328
320
  };
329
321
  content = ObjectUtils.getJSXElement(template, item, defaultContentOptions);
330
322
  }
331
-
332
323
  return /*#__PURE__*/React.createElement("li", {
333
324
  key: index,
334
325
  className: "p-speeddial-item",
@@ -336,11 +327,9 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
336
327
  role: "none"
337
328
  }, content);
338
329
  };
339
-
340
330
  var createItems = function createItems() {
341
331
  return props.model ? props.model.map(createItem) : null;
342
332
  };
343
-
344
333
  var createList = function createList() {
345
334
  var items = createItems();
346
335
  return /*#__PURE__*/React.createElement("ul", {
@@ -349,10 +338,8 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
349
338
  role: "menu"
350
339
  }, items);
351
340
  };
352
-
353
341
  var createButton = function createButton() {
354
342
  var _classNames;
355
-
356
343
  var showIconVisible = !visible && !!props.showIcon || !props.hideIcon;
357
344
  var hideIconVisible = visible && !!props.hideIcon;
358
345
  var className = classNames('p-speeddial-button p-button-rounded', {
@@ -371,7 +358,6 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
371
358
  disabled: props.disabled,
372
359
  "aria-label": props['aria-label']
373
360
  });
374
-
375
361
  if (props.buttonTemplate) {
376
362
  var defaultContentOptions = {
377
363
  onClick: onClick,
@@ -383,25 +369,20 @@ var SpeedDial = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
383
369
  };
384
370
  return ObjectUtils.getJSXElement(props.buttonTemplate, defaultContentOptions);
385
371
  }
386
-
387
372
  return content;
388
373
  };
389
-
390
374
  var createMask = function createMask() {
391
375
  if (props.mask) {
392
376
  var _className = classNames('p-speeddial-mask', {
393
377
  'p-speeddial-mask-visible': visible
394
378
  }, props.maskClassName);
395
-
396
379
  return /*#__PURE__*/React.createElement("div", {
397
380
  className: _className,
398
381
  style: props.maskStyle
399
382
  });
400
383
  }
401
-
402
384
  return null;
403
385
  };
404
-
405
386
  var otherProps = ObjectUtils.findDiffKeys(props, SpeedDial.defaultProps);
406
387
  var className = classNames("p-speeddial p-component p-speeddial-".concat(props.type), (_classNames2 = {}, _defineProperty(_classNames2, "p-speeddial-direction-".concat(props.direction), props.type !== 'circle'), _defineProperty(_classNames2, 'p-speeddial-opened', visible), _defineProperty(_classNames2, 'p-disabled', props.disabled), _classNames2), props.className);
407
388
  var button = createButton();
@@ -1 +1 @@
1
- import*as e from"react";import{Button as t}from"primereact/button";import{useEventListener as n,useMountEffect as r,useUpdateEffect as i}from"primereact/hooks";import{Ripple as l}from"primereact/ripple";import{DomHandler as a,ObjectUtils as o,classNames as c,IconUtils as s}from"primereact/utils";function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){if(Array.isArray(e))return e}function d(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);a=!0);}catch(e){o=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw i}}return l}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e,t){return f(e)||d(e,t)||b(e,t)||h()}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=e.memo(e.forwardRef((function(f,d){var m,b=y(e.useState(!1),2),h=b[0],v=b[1],w=e.useRef(!1),S=e.useRef(null),C=e.useRef(null),k=f.onVisibleChange?f.visible:h,I=y(n({type:"click",listener:function(e){!w.current&&D(e)&&P(),w.current=!1},when:h}),2),x=I[0],N=I[1],j=function(){f.onVisibleChange?f.onVisibleChange(!0):v(!0),f.onShow&&f.onShow()},P=function(){f.onVisibleChange?f.onVisibleChange(!1):v(!1),f.onHide&&f.onHide()},E=function(e){k?P():j(),f.onClick&&f.onClick(e),w.current=!0},M=function(e,t){t.command&&t.command({originalEvent:e,item:t}),P(),w.current=!0,e.preventDefault()},D=function(e){return S.current&&!(S.current.isSameNode(e.target)||S.current.contains(e.target))},A=function(e){return(k?e:f.model.length-e-1)*f.transitionDelay},H=function(e){var t=f.type;if("linear"!==t){var n=f.model.length,r=f.radius||20*n;if("circle"===t){var i=2*Math.PI/n;return{left:"calc(".concat(r*Math.cos(i*e),"px + var(--item-diff-x, 0px))"),top:"calc(".concat(r*Math.sin(i*e),"px + var(--item-diff-y, 0px))")}}if("semi-circle"===t){var l=f.direction,a=Math.PI/(n-1),o="calc(".concat(r*Math.cos(a*e),"px + var(--item-diff-x, 0px))"),c="calc(".concat(r*Math.sin(a*e),"px + var(--item-diff-y, 0px))");if("up"===l)return{left:o,bottom:c};if("down"===l)return{left:o,top:c};if("left"===l)return{right:c,top:o};if("right"===l)return{left:c,top:o}}else if("quarter-circle"===t){var s=f.direction,u=Math.PI/(2*(n-1)),p="calc(".concat(r*Math.cos(u*e),"px + var(--item-diff-x, 0px))"),d="calc(".concat(r*Math.sin(u*e),"px + var(--item-diff-y, 0px))");if("up-left"===s)return{right:p,bottom:d};if("up-right"===s)return{left:p,bottom:d};if("down-left"===s)return{right:d,top:p};if("down-right"===s)return{left:d,top:p}}}return{}},V=function(e){var t=A(e),n=H(e);return g({transitionDelay:"".concat(t,"ms")},n)};r((function(){if("linear"!==f.type){var e=a.findSingle(S.current,".p-speeddial-button"),t=a.findSingle(C.current,".p-speeddial-item");if(e&&t){var n=Math.abs(e.offsetWidth-t.offsetWidth),r=Math.abs(e.offsetHeight-t.offsetHeight);C.current.style.setProperty("--item-diff-x","".concat(n/2,"px")),C.current.style.setProperty("--item-diff-y","".concat(r/2,"px"))}}})),i((function(){return h&&f.hideOnClickOutside&&x(),function(){f.hideOnClickOutside&&N()}}),[h]),e.useImperativeHandle(d,(function(){return{props:f,show:j,hide:P,getElement:function(){return S.current}}}));var T,J=function(t,n){if(!1===t.visible)return null;var r=V(n),i=t.icon,a=t.label,u=t.template,p=t.url,d=t.target,m=c("p-speeddial-action",{"p-disabled":t.disabled}),b=c("p-speeddial-action-icon",i),h=s.getJSXIcon(i,{className:"p-speeddial-action-icon"},{props:f}),y=e.createElement("a",{href:p||"#",role:"menuitem",className:m,target:d,"data-pr-tooltip":a,onClick:function(e){return M(e,t)}},h,e.createElement(l,null));u&&(y=o.getJSXElement(u,t,{onClick:function(e){return M(e,t)},className:m,iconClassName:b,element:y,props:f,visible:k}));return e.createElement("li",{key:n,className:"p-speeddial-item",style:r,role:"none"},y)},R=o.findDiffKeys(f,O.defaultProps),X=c("p-speeddial p-component p-speeddial-".concat(f.type),(p(m={},"p-speeddial-direction-".concat(f.direction),"circle"!==f.type),p(m,"p-speeddial-opened",k),p(m,"p-disabled",f.disabled),m),f.className),W=function(){var n,r=!k&&!!f.showIcon||!f.hideIcon,i=k&&!!f.hideIcon,l=c("p-speeddial-button p-button-rounded",{"p-speeddial-rotate":f.rotateAnimation&&!f.hideIcon},f.buttonClassName),a=c((p(n={},"".concat(f.showIcon),!k&&!!f.showIcon||!f.hideIcon),p(n,"".concat(f.hideIcon),k&&!!f.hideIcon),n)),u=s.getJSXIcon(r?f.showIcon:i?f.hideIcon:null,void 0,{props:f}),d=e.createElement(t,{type:"button",style:f.buttonStyle,className:l,icon:u,onClick:E,disabled:f.disabled,"aria-label":f["aria-label"]});return f.buttonTemplate?o.getJSXElement(f.buttonTemplate,{onClick:E,className:l,iconClassName:a,element:d,props:f,visible:k}):d}(),_=(T=f.model?f.model.map(J):null,e.createElement("ul",{ref:C,className:"p-speeddial-list",role:"menu"},T)),q=function(){if(f.mask){var t=c("p-speeddial-mask",{"p-speeddial-mask-visible":k},f.maskClassName);return e.createElement("div",{className:t,style:f.maskStyle})}return null}();return e.createElement(e.Fragment,null,e.createElement("div",u({ref:S,id:f.id,className:X,style:f.style},R),W,_),q)})));O.displayName="SpeedDial",O.defaultProps={__TYPE:"SpeedDial",id:null,model:null,visible:!1,style:null,className:null,direction:"up",transitionDelay:30,type:"linear",radius:0,mask:!1,disabled:!1,hideOnClickOutside:!0,buttonStyle:null,buttonClassName:null,buttonTemplate:null,"aria-label":null,maskStyle:null,maskClassName:null,showIcon:"pi pi-plus",hideIcon:null,rotateAnimation:!0,onVisibleChange:null,onClick:null,onShow:null,onHide:null};export{O as SpeedDial};
1
+ import*as e from"react";import{Button as t}from"primereact/button";import{useEventListener as n,useMountEffect as r,useUpdateEffect as i}from"primereact/hooks";import{Ripple as o}from"primereact/ripple";import{DomHandler as l,ObjectUtils as a,classNames as c,IconUtils as u}from"primereact/utils";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}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 p(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function d(e){var t=p(e,"string");return"symbol"===f(t)?t:String(t)}function m(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){if(Array.isArray(e))return e}function y(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,l,a=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return a}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e,t){return b(e)||y(e,t)||v(e,t)||g()}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=e.memo(e.forwardRef((function(f,p){var d,b=O(e.useState(!1),2),y=b[0],h=b[1],v=e.useRef(!1),g=e.useRef(null),S=e.useRef(null),j=f.onVisibleChange?f.visible:y,k=O(n({type:"click",listener:function(e){!v.current&&D(e)&&P(),v.current=!1},when:y}),2),I=k[0],x=k[1],N=function(){f.onVisibleChange?f.onVisibleChange(!0):h(!0),f.onShow&&f.onShow()},P=function(){f.onVisibleChange?f.onVisibleChange(!1):h(!1),f.onHide&&f.onHide()},E=function(e){j?P():N(),f.onClick&&f.onClick(e),v.current=!0},M=function(e,t){t.command&&t.command({originalEvent:e,item:t}),P(),v.current=!0,e.preventDefault()},D=function(e){return g.current&&!(g.current.isSameNode(e.target)||g.current.contains(e.target))},A=function(e){return(j?e:f.model.length-e-1)*f.transitionDelay},H=function(e){var t=f.type;if("linear"!==t){var n=f.model.length,r=f.radius||20*n;if("circle"===t){var i=2*Math.PI/n;return{left:"calc(".concat(r*Math.cos(i*e),"px + var(--item-diff-x, 0px))"),top:"calc(".concat(r*Math.sin(i*e),"px + var(--item-diff-y, 0px))")}}if("semi-circle"===t){var o=f.direction,l=Math.PI/(n-1),a="calc(".concat(r*Math.cos(l*e),"px + var(--item-diff-x, 0px))"),c="calc(".concat(r*Math.sin(l*e),"px + var(--item-diff-y, 0px))");if("up"===o)return{left:a,bottom:c};if("down"===o)return{left:a,top:c};if("left"===o)return{right:c,top:a};if("right"===o)return{left:c,top:a}}else if("quarter-circle"===t){var u=f.direction,s=Math.PI/(2*(n-1)),p="calc(".concat(r*Math.cos(s*e),"px + var(--item-diff-x, 0px))"),d="calc(".concat(r*Math.sin(s*e),"px + var(--item-diff-y, 0px))");if("up-left"===u)return{right:p,bottom:d};if("up-right"===u)return{left:p,bottom:d};if("down-left"===u)return{right:d,top:p};if("down-right"===u)return{left:d,top:p}}}return{}},T=function(e){var t=A(e),n=H(e);return w({transitionDelay:"".concat(t,"ms")},n)};r((function(){if("linear"!==f.type){var e=l.findSingle(g.current,".p-speeddial-button"),t=l.findSingle(S.current,".p-speeddial-item");if(e&&t){var n=Math.abs(e.offsetWidth-t.offsetWidth),r=Math.abs(e.offsetHeight-t.offsetHeight);S.current.style.setProperty("--item-diff-x","".concat(n/2,"px")),S.current.style.setProperty("--item-diff-y","".concat(r/2,"px"))}}})),i((function(){return y&&f.hideOnClickOutside&&I(),function(){f.hideOnClickOutside&&x()}}),[y]),e.useImperativeHandle(p,(function(){return{props:f,show:N,hide:P,getElement:function(){return g.current}}}));var V,J=function(t,n){if(!1===t.visible)return null;var r=T(n),i=t.icon,l=t.label,s=t.template,p=t.url,d=t.target,m=c("p-speeddial-action",{"p-disabled":t.disabled}),b=c("p-speeddial-action-icon",i),y=u.getJSXIcon(i,{className:"p-speeddial-action-icon"},{props:f}),h=e.createElement("a",{href:p||"#",role:"menuitem",className:m,target:d,"data-pr-tooltip":l,onClick:function(e){return M(e,t)}},y,e.createElement(o,null));s&&(h=a.getJSXElement(s,t,{onClick:function(e){return M(e,t)},className:m,iconClassName:b,element:h,props:f,visible:j}));return e.createElement("li",{key:n,className:"p-speeddial-item",style:r,role:"none"},h)},R=a.findDiffKeys(f,C.defaultProps),X=c("p-speeddial p-component p-speeddial-".concat(f.type),(m(d={},"p-speeddial-direction-".concat(f.direction),"circle"!==f.type),m(d,"p-speeddial-opened",j),m(d,"p-disabled",f.disabled),d),f.className),W=function(){var n,r=!j&&!!f.showIcon||!f.hideIcon,i=j&&!!f.hideIcon,o=c("p-speeddial-button p-button-rounded",{"p-speeddial-rotate":f.rotateAnimation&&!f.hideIcon},f.buttonClassName),l=c((m(n={},"".concat(f.showIcon),!j&&!!f.showIcon||!f.hideIcon),m(n,"".concat(f.hideIcon),j&&!!f.hideIcon),n)),s=u.getJSXIcon(r?f.showIcon:i?f.hideIcon:null,void 0,{props:f}),p=e.createElement(t,{type:"button",style:f.buttonStyle,className:o,icon:s,onClick:E,disabled:f.disabled,"aria-label":f["aria-label"]});return f.buttonTemplate?a.getJSXElement(f.buttonTemplate,{onClick:E,className:o,iconClassName:l,element:p,props:f,visible:j}):p}(),_=(V=f.model?f.model.map(J):null,e.createElement("ul",{ref:S,className:"p-speeddial-list",role:"menu"},V)),q=function(){if(f.mask){var t=c("p-speeddial-mask",{"p-speeddial-mask-visible":j},f.maskClassName);return e.createElement("div",{className:t,style:f.maskStyle})}return null}();return e.createElement(e.Fragment,null,e.createElement("div",s({ref:g,id:f.id,className:X,style:f.style},R),W,_),q)})));C.displayName="SpeedDial",C.defaultProps={__TYPE:"SpeedDial",id:null,model:null,visible:!1,style:null,className:null,direction:"up",transitionDelay:30,type:"linear",radius:0,mask:!1,disabled:!1,hideOnClickOutside:!0,buttonStyle:null,buttonClassName:null,buttonTemplate:null,"aria-label":null,maskStyle:null,maskClassName:null,showIcon:"pi pi-plus",hideIcon:null,rotateAnimation:!0,onVisibleChange:null,onClick:null,onShow:null,onHide:null};export{C as SpeedDial};