primereact 8.7.2 → 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 (566) 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 +82 -154
  14. package/autocomplete/autocomplete.cjs.min.js +1 -1
  15. package/autocomplete/autocomplete.esm.js +82 -154
  16. package/autocomplete/autocomplete.esm.min.js +1 -1
  17. package/autocomplete/autocomplete.js +82 -154
  18. package/autocomplete/autocomplete.min.js +1 -1
  19. package/avatar/avatar.cjs.js +86 -14
  20. package/avatar/avatar.cjs.min.js +1 -1
  21. package/avatar/avatar.d.ts +5 -4
  22. package/avatar/avatar.esm.js +86 -14
  23. package/avatar/avatar.esm.min.js +1 -1
  24. package/avatar/avatar.js +86 -14
  25. package/avatar/avatar.min.js +1 -1
  26. package/avatargroup/avatargroup.cjs.js +0 -2
  27. package/avatargroup/avatargroup.esm.js +0 -2
  28. package/avatargroup/avatargroup.js +0 -2
  29. package/badge/badge.cjs.js +27 -3
  30. package/badge/badge.cjs.min.js +1 -1
  31. package/badge/badge.esm.js +27 -3
  32. package/badge/badge.esm.min.js +1 -1
  33. package/badge/badge.js +27 -3
  34. package/badge/badge.min.js +1 -1
  35. package/blockui/blockui.cjs.js +40 -54
  36. package/blockui/blockui.cjs.min.js +1 -1
  37. package/blockui/blockui.d.ts +5 -3
  38. package/blockui/blockui.esm.js +40 -54
  39. package/blockui/blockui.esm.min.js +1 -1
  40. package/blockui/blockui.js +40 -54
  41. package/blockui/blockui.min.js +1 -1
  42. package/breadcrumb/breadcrumb.cjs.js +6 -29
  43. package/breadcrumb/breadcrumb.esm.js +6 -29
  44. package/breadcrumb/breadcrumb.js +6 -29
  45. package/button/button.cjs.js +29 -11
  46. package/button/button.cjs.min.js +1 -1
  47. package/button/button.esm.js +29 -11
  48. package/button/button.esm.min.js +1 -1
  49. package/button/button.js +29 -11
  50. package/button/button.min.js +1 -1
  51. package/calendar/calendar.cjs.js +186 -664
  52. package/calendar/calendar.cjs.min.js +1 -1
  53. package/calendar/calendar.d.ts +6 -4
  54. package/calendar/calendar.esm.js +186 -664
  55. package/calendar/calendar.esm.min.js +1 -1
  56. package/calendar/calendar.js +186 -664
  57. package/calendar/calendar.min.js +1 -1
  58. package/captcha/captcha.cjs.js +0 -15
  59. package/captcha/captcha.esm.js +0 -15
  60. package/captcha/captcha.js +0 -15
  61. package/card/card.cjs.js +0 -6
  62. package/card/card.esm.js +0 -6
  63. package/card/card.js +0 -6
  64. package/carousel/carousel.cjs.js +42 -130
  65. package/carousel/carousel.cjs.min.js +1 -1
  66. package/carousel/carousel.esm.js +42 -130
  67. package/carousel/carousel.esm.min.js +1 -1
  68. package/carousel/carousel.js +42 -130
  69. package/carousel/carousel.min.js +1 -1
  70. package/cascadeselect/cascadeselect.cjs.js +47 -132
  71. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  72. package/cascadeselect/cascadeselect.esm.js +47 -132
  73. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  74. package/cascadeselect/cascadeselect.js +47 -132
  75. package/cascadeselect/cascadeselect.min.js +1 -1
  76. package/chart/chart.cjs.js +6 -7
  77. package/chart/chart.cjs.min.js +1 -1
  78. package/chart/chart.esm.js +6 -7
  79. package/chart/chart.esm.min.js +1 -1
  80. package/chart/chart.js +6 -7
  81. package/chart/chart.min.js +1 -1
  82. package/checkbox/checkbox.cjs.js +26 -40
  83. package/checkbox/checkbox.cjs.min.js +1 -1
  84. package/checkbox/checkbox.esm.js +26 -40
  85. package/checkbox/checkbox.esm.min.js +1 -1
  86. package/checkbox/checkbox.js +26 -40
  87. package/checkbox/checkbox.min.css +1 -1
  88. package/checkbox/checkbox.min.js +1 -1
  89. package/chip/chip.cjs.js +26 -41
  90. package/chip/chip.cjs.min.js +1 -1
  91. package/chip/chip.esm.js +26 -41
  92. package/chip/chip.esm.min.js +1 -1
  93. package/chip/chip.js +26 -41
  94. package/chip/chip.min.js +1 -1
  95. package/chips/chips.cjs.js +29 -72
  96. package/chips/chips.cjs.min.js +1 -1
  97. package/chips/chips.esm.js +29 -72
  98. package/chips/chips.esm.min.js +1 -1
  99. package/chips/chips.js +29 -72
  100. package/chips/chips.min.js +1 -1
  101. package/colorpicker/colorpicker.cjs.js +75 -143
  102. package/colorpicker/colorpicker.cjs.min.js +1 -1
  103. package/colorpicker/colorpicker.d.ts +8 -6
  104. package/colorpicker/colorpicker.esm.js +75 -143
  105. package/colorpicker/colorpicker.esm.min.js +1 -1
  106. package/colorpicker/colorpicker.js +75 -143
  107. package/colorpicker/colorpicker.min.js +1 -1
  108. package/confirmdialog/confirmdialog.cjs.js +60 -60
  109. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  110. package/confirmdialog/confirmdialog.esm.js +60 -60
  111. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  112. package/confirmdialog/confirmdialog.js +60 -60
  113. package/confirmdialog/confirmdialog.min.js +1 -1
  114. package/confirmpopup/confirmpopup.cjs.js +74 -94
  115. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  116. package/confirmpopup/confirmpopup.esm.js +74 -94
  117. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  118. package/confirmpopup/confirmpopup.js +74 -94
  119. package/confirmpopup/confirmpopup.min.js +1 -1
  120. package/contextmenu/contextmenu.cjs.js +75 -120
  121. package/contextmenu/contextmenu.cjs.min.js +1 -1
  122. package/contextmenu/contextmenu.esm.js +75 -120
  123. package/contextmenu/contextmenu.esm.min.js +1 -1
  124. package/contextmenu/contextmenu.js +75 -120
  125. package/contextmenu/contextmenu.min.js +1 -1
  126. package/core/core.js +970 -2021
  127. package/core/core.min.js +15 -15
  128. package/csstransition/csstransition.cjs.js +27 -13
  129. package/csstransition/csstransition.cjs.min.js +1 -1
  130. package/csstransition/csstransition.esm.js +27 -13
  131. package/csstransition/csstransition.esm.min.js +1 -1
  132. package/csstransition/csstransition.js +27 -13
  133. package/csstransition/csstransition.min.js +1 -1
  134. package/datascroller/datascroller.cjs.js +32 -64
  135. package/datascroller/datascroller.cjs.min.js +1 -1
  136. package/datascroller/datascroller.esm.js +32 -64
  137. package/datascroller/datascroller.esm.min.js +1 -1
  138. package/datascroller/datascroller.js +32 -64
  139. package/datascroller/datascroller.min.js +1 -1
  140. package/datatable/datatable.cjs.js +318 -1077
  141. package/datatable/datatable.cjs.min.js +1 -1
  142. package/datatable/datatable.d.ts +6 -1
  143. package/datatable/datatable.esm.js +318 -1077
  144. package/datatable/datatable.esm.min.js +1 -1
  145. package/datatable/datatable.js +318 -1077
  146. package/datatable/datatable.min.js +1 -1
  147. package/dataview/dataview.cjs.js +56 -68
  148. package/dataview/dataview.cjs.min.js +1 -1
  149. package/dataview/dataview.esm.js +56 -68
  150. package/dataview/dataview.esm.min.js +1 -1
  151. package/dataview/dataview.js +56 -68
  152. package/dataview/dataview.min.js +1 -1
  153. package/deferredcontent/deferredcontent.cjs.js +37 -46
  154. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  155. package/deferredcontent/deferredcontent.esm.js +37 -46
  156. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  157. package/deferredcontent/deferredcontent.js +37 -46
  158. package/deferredcontent/deferredcontent.min.js +1 -1
  159. package/dialog/dialog.cjs.js +89 -175
  160. package/dialog/dialog.cjs.min.js +1 -1
  161. package/dialog/dialog.esm.js +89 -175
  162. package/dialog/dialog.esm.min.js +1 -1
  163. package/dialog/dialog.js +89 -175
  164. package/dialog/dialog.min.css +1 -1
  165. package/dialog/dialog.min.js +1 -1
  166. package/divider/divider.cjs.js +0 -2
  167. package/divider/divider.esm.js +0 -2
  168. package/divider/divider.js +0 -2
  169. package/dock/dock.cjs.js +31 -53
  170. package/dock/dock.cjs.min.js +1 -1
  171. package/dock/dock.esm.js +31 -53
  172. package/dock/dock.esm.min.js +1 -1
  173. package/dock/dock.js +31 -53
  174. package/dock/dock.min.js +1 -1
  175. package/dropdown/dropdown.cjs.js +72 -199
  176. package/dropdown/dropdown.cjs.min.js +1 -1
  177. package/dropdown/dropdown.d.ts +39 -38
  178. package/dropdown/dropdown.esm.js +72 -199
  179. package/dropdown/dropdown.esm.min.js +1 -1
  180. package/dropdown/dropdown.js +72 -199
  181. package/dropdown/dropdown.min.js +1 -1
  182. package/editor/editor.cjs.js +31 -22
  183. package/editor/editor.cjs.min.js +1 -1
  184. package/editor/editor.esm.js +31 -22
  185. package/editor/editor.esm.min.js +1 -1
  186. package/editor/editor.js +31 -22
  187. package/editor/editor.min.js +1 -1
  188. package/fieldset/fieldset.cjs.js +29 -51
  189. package/fieldset/fieldset.cjs.min.js +1 -1
  190. package/fieldset/fieldset.esm.js +29 -51
  191. package/fieldset/fieldset.esm.min.js +1 -1
  192. package/fieldset/fieldset.js +29 -51
  193. package/fieldset/fieldset.min.js +1 -1
  194. package/fileupload/fileupload.cjs.js +45 -128
  195. package/fileupload/fileupload.cjs.min.js +1 -1
  196. package/fileupload/fileupload.esm.js +45 -128
  197. package/fileupload/fileupload.esm.min.js +1 -1
  198. package/fileupload/fileupload.js +45 -128
  199. package/fileupload/fileupload.min.js +1 -1
  200. package/galleria/galleria.cjs.js +54 -165
  201. package/galleria/galleria.cjs.min.js +1 -1
  202. package/galleria/galleria.esm.js +54 -165
  203. package/galleria/galleria.esm.min.js +1 -1
  204. package/galleria/galleria.js +54 -165
  205. package/galleria/galleria.min.js +1 -1
  206. package/gmap/gmap.cjs.js +2 -23
  207. package/gmap/gmap.esm.js +2 -23
  208. package/gmap/gmap.js +2 -23
  209. package/hooks/hooks.cjs.js +102 -131
  210. package/hooks/hooks.cjs.min.js +1 -1
  211. package/hooks/hooks.esm.js +102 -131
  212. package/hooks/hooks.esm.min.js +1 -1
  213. package/hooks/hooks.js +102 -131
  214. package/hooks/hooks.min.js +1 -1
  215. package/image/image.cjs.js +41 -67
  216. package/image/image.cjs.min.js +1 -1
  217. package/image/image.d.ts +1 -1
  218. package/image/image.esm.js +41 -67
  219. package/image/image.esm.min.js +1 -1
  220. package/image/image.js +41 -67
  221. package/image/image.min.js +1 -1
  222. package/inplace/inplace.cjs.js +26 -45
  223. package/inplace/inplace.cjs.min.js +1 -1
  224. package/inplace/inplace.esm.js +26 -45
  225. package/inplace/inplace.esm.min.js +1 -1
  226. package/inplace/inplace.js +26 -45
  227. package/inplace/inplace.min.js +1 -1
  228. package/inputmask/inputmask.cjs.js +16 -108
  229. package/inputmask/inputmask.d.ts +1 -1
  230. package/inputmask/inputmask.esm.js +16 -108
  231. package/inputmask/inputmask.js +16 -108
  232. package/inputnumber/inputnumber.cjs.js +82 -234
  233. package/inputnumber/inputnumber.cjs.min.js +1 -1
  234. package/inputnumber/inputnumber.d.ts +1 -1
  235. package/inputnumber/inputnumber.esm.js +82 -234
  236. package/inputnumber/inputnumber.esm.min.js +1 -1
  237. package/inputnumber/inputnumber.js +82 -234
  238. package/inputnumber/inputnumber.min.js +1 -1
  239. package/inputswitch/inputswitch.cjs.js +26 -37
  240. package/inputswitch/inputswitch.cjs.min.js +1 -1
  241. package/inputswitch/inputswitch.esm.js +26 -37
  242. package/inputswitch/inputswitch.esm.min.js +1 -1
  243. package/inputswitch/inputswitch.js +26 -37
  244. package/inputswitch/inputswitch.min.js +1 -1
  245. package/inputtext/inputtext.cjs.js +0 -11
  246. package/inputtext/inputtext.d.ts +1 -3
  247. package/inputtext/inputtext.esm.js +0 -11
  248. package/inputtext/inputtext.js +0 -11
  249. package/inputtextarea/inputtextarea.cjs.js +0 -20
  250. package/inputtextarea/inputtextarea.d.ts +1 -3
  251. package/inputtextarea/inputtextarea.esm.js +0 -20
  252. package/inputtextarea/inputtextarea.js +0 -20
  253. package/keyfilter/keyfilter.cjs.js +4 -15
  254. package/keyfilter/keyfilter.esm.js +4 -15
  255. package/keyfilter/keyfilter.js +4 -15
  256. package/knob/knob.cjs.js +74 -106
  257. package/knob/knob.cjs.min.js +1 -1
  258. package/knob/knob.esm.js +74 -106
  259. package/knob/knob.esm.min.js +1 -1
  260. package/knob/knob.js +74 -106
  261. package/knob/knob.min.js +1 -1
  262. package/listbox/listbox.cjs.js +94 -125
  263. package/listbox/listbox.cjs.min.js +1 -1
  264. package/listbox/listbox.d.ts +6 -0
  265. package/listbox/listbox.esm.js +95 -126
  266. package/listbox/listbox.esm.min.js +1 -1
  267. package/listbox/listbox.js +94 -125
  268. package/listbox/listbox.min.js +1 -1
  269. package/megamenu/megamenu.cjs.js +36 -99
  270. package/megamenu/megamenu.cjs.min.js +1 -1
  271. package/megamenu/megamenu.esm.js +36 -99
  272. package/megamenu/megamenu.esm.min.js +1 -1
  273. package/megamenu/megamenu.js +36 -99
  274. package/megamenu/megamenu.min.js +1 -1
  275. package/mention/mention.cjs.js +82 -138
  276. package/mention/mention.cjs.min.js +1 -1
  277. package/mention/mention.d.ts +1 -1
  278. package/mention/mention.esm.js +82 -138
  279. package/mention/mention.esm.min.js +1 -1
  280. package/mention/mention.js +82 -138
  281. package/mention/mention.min.js +1 -1
  282. package/menu/menu.cjs.js +38 -72
  283. package/menu/menu.cjs.min.js +1 -1
  284. package/menu/menu.esm.js +38 -72
  285. package/menu/menu.esm.min.js +1 -1
  286. package/menu/menu.js +38 -72
  287. package/menu/menu.min.css +1 -1
  288. package/menu/menu.min.js +1 -1
  289. package/menubar/menubar.cjs.js +49 -99
  290. package/menubar/menubar.cjs.min.js +1 -1
  291. package/menubar/menubar.esm.js +49 -99
  292. package/menubar/menubar.esm.min.js +1 -1
  293. package/menubar/menubar.js +49 -99
  294. package/menubar/menubar.min.js +1 -1
  295. package/message/message.cjs.js +0 -7
  296. package/message/message.esm.js +0 -7
  297. package/message/message.js +0 -7
  298. package/messages/messages.cjs.js +39 -67
  299. package/messages/messages.cjs.min.js +1 -1
  300. package/messages/messages.esm.js +39 -67
  301. package/messages/messages.esm.min.js +1 -1
  302. package/messages/messages.js +39 -67
  303. package/messages/messages.min.js +1 -1
  304. package/multiselect/multiselect.cjs.js +137 -210
  305. package/multiselect/multiselect.cjs.min.js +1 -1
  306. package/multiselect/multiselect.d.ts +46 -41
  307. package/multiselect/multiselect.esm.js +137 -210
  308. package/multiselect/multiselect.esm.min.js +1 -1
  309. package/multiselect/multiselect.js +137 -210
  310. package/multiselect/multiselect.min.css +1 -1
  311. package/multiselect/multiselect.min.js +1 -1
  312. package/multistatecheckbox/multistatecheckbox.cjs.js +58 -53
  313. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  314. package/multistatecheckbox/multistatecheckbox.esm.js +58 -53
  315. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  316. package/multistatecheckbox/multistatecheckbox.js +58 -53
  317. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  318. package/orderlist/orderlist.cjs.js +38 -103
  319. package/orderlist/orderlist.cjs.min.js +1 -1
  320. package/orderlist/orderlist.esm.js +38 -103
  321. package/orderlist/orderlist.esm.min.js +1 -1
  322. package/orderlist/orderlist.js +38 -103
  323. package/orderlist/orderlist.min.css +1 -1
  324. package/orderlist/orderlist.min.js +1 -1
  325. package/organizationchart/organizationchart.cjs.js +26 -52
  326. package/organizationchart/organizationchart.cjs.min.js +1 -1
  327. package/organizationchart/organizationchart.esm.js +26 -52
  328. package/organizationchart/organizationchart.esm.min.js +1 -1
  329. package/organizationchart/organizationchart.js +26 -52
  330. package/organizationchart/organizationchart.min.js +1 -1
  331. package/overlaypanel/overlaypanel.cjs.js +40 -79
  332. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  333. package/overlaypanel/overlaypanel.esm.js +40 -79
  334. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  335. package/overlaypanel/overlaypanel.js +40 -79
  336. package/overlaypanel/overlaypanel.min.css +1 -1
  337. package/overlaypanel/overlaypanel.min.js +1 -1
  338. package/package.json +1 -1
  339. package/paginator/paginator.cjs.js +46 -87
  340. package/paginator/paginator.cjs.min.js +1 -1
  341. package/paginator/paginator.esm.js +46 -87
  342. package/paginator/paginator.esm.min.js +1 -1
  343. package/paginator/paginator.js +46 -87
  344. package/paginator/paginator.min.js +1 -1
  345. package/panel/panel.cjs.js +29 -50
  346. package/panel/panel.cjs.min.js +1 -1
  347. package/panel/panel.esm.js +29 -50
  348. package/panel/panel.esm.min.js +1 -1
  349. package/panel/panel.js +29 -50
  350. package/panel/panel.min.js +1 -1
  351. package/panelmenu/panelmenu.cjs.js +35 -81
  352. package/panelmenu/panelmenu.cjs.min.js +1 -1
  353. package/panelmenu/panelmenu.esm.js +35 -81
  354. package/panelmenu/panelmenu.esm.min.js +1 -1
  355. package/panelmenu/panelmenu.js +35 -81
  356. package/panelmenu/panelmenu.min.js +1 -1
  357. package/password/password.cjs.js +54 -107
  358. package/password/password.cjs.min.js +1 -1
  359. package/password/password.d.ts +1 -1
  360. package/password/password.esm.js +54 -107
  361. package/password/password.esm.min.js +1 -1
  362. package/password/password.js +54 -107
  363. package/password/password.min.js +1 -1
  364. package/picklist/picklist.cjs.js +48 -159
  365. package/picklist/picklist.cjs.min.js +1 -1
  366. package/picklist/picklist.esm.js +48 -159
  367. package/picklist/picklist.esm.min.js +1 -1
  368. package/picklist/picklist.js +48 -159
  369. package/picklist/picklist.min.js +1 -1
  370. package/portal/portal.cjs.js +26 -31
  371. package/portal/portal.cjs.min.js +1 -1
  372. package/portal/portal.esm.js +26 -31
  373. package/portal/portal.esm.min.js +1 -1
  374. package/portal/portal.js +26 -31
  375. package/portal/portal.min.js +1 -1
  376. package/primereact.all.cjs.js +2246 -7336
  377. package/primereact.all.cjs.min.js +1 -1
  378. package/primereact.all.esm.js +2246 -7336
  379. package/primereact.all.esm.min.js +1 -1
  380. package/primereact.all.js +2246 -7336
  381. package/primereact.all.min.js +1 -1
  382. package/progressbar/progressbar.cjs.js +0 -7
  383. package/progressbar/progressbar.esm.js +0 -7
  384. package/progressbar/progressbar.js +0 -7
  385. package/progressspinner/progressspinner.cjs.js +0 -2
  386. package/progressspinner/progressspinner.esm.js +0 -2
  387. package/progressspinner/progressspinner.js +0 -2
  388. package/radiobutton/radiobutton.cjs.js +30 -40
  389. package/radiobutton/radiobutton.cjs.min.js +1 -1
  390. package/radiobutton/radiobutton.esm.js +30 -40
  391. package/radiobutton/radiobutton.esm.min.js +1 -1
  392. package/radiobutton/radiobutton.js +30 -40
  393. package/radiobutton/radiobutton.min.js +1 -1
  394. package/rating/rating.cjs.js +27 -14
  395. package/rating/rating.cjs.min.js +1 -1
  396. package/rating/rating.esm.js +27 -14
  397. package/rating/rating.esm.min.js +1 -1
  398. package/rating/rating.js +27 -14
  399. package/rating/rating.min.js +1 -1
  400. package/resources/primereact.css +47 -1
  401. package/resources/primereact.min.css +1 -1
  402. package/ripple/ripple.cjs.js +0 -12
  403. package/ripple/ripple.esm.js +0 -12
  404. package/ripple/ripple.js +0 -12
  405. package/row/row.cjs.js +0 -2
  406. package/row/row.esm.js +0 -2
  407. package/row/row.js +0 -2
  408. package/scrollpanel/scrollpanel.cjs.js +2 -16
  409. package/scrollpanel/scrollpanel.esm.js +2 -16
  410. package/scrollpanel/scrollpanel.js +2 -16
  411. package/scrolltop/scrolltop.cjs.js +44 -57
  412. package/scrolltop/scrolltop.cjs.min.js +1 -1
  413. package/scrolltop/scrolltop.esm.js +44 -57
  414. package/scrolltop/scrolltop.esm.min.js +1 -1
  415. package/scrolltop/scrolltop.js +44 -57
  416. package/scrolltop/scrolltop.min.js +1 -1
  417. package/selectbutton/selectbutton.cjs.js +26 -53
  418. package/selectbutton/selectbutton.cjs.min.js +1 -1
  419. package/selectbutton/selectbutton.esm.js +26 -53
  420. package/selectbutton/selectbutton.esm.min.js +1 -1
  421. package/selectbutton/selectbutton.js +26 -53
  422. package/selectbutton/selectbutton.min.js +1 -1
  423. package/sidebar/sidebar.cjs.js +52 -83
  424. package/sidebar/sidebar.cjs.min.js +1 -1
  425. package/sidebar/sidebar.esm.js +52 -83
  426. package/sidebar/sidebar.esm.min.js +1 -1
  427. package/sidebar/sidebar.js +52 -83
  428. package/sidebar/sidebar.min.css +1 -1
  429. package/sidebar/sidebar.min.js +1 -1
  430. package/skeleton/skeleton.cjs.js +0 -2
  431. package/skeleton/skeleton.esm.js +0 -2
  432. package/skeleton/skeleton.js +0 -2
  433. package/slidemenu/slidemenu.cjs.js +73 -87
  434. package/slidemenu/slidemenu.cjs.min.js +1 -1
  435. package/slidemenu/slidemenu.esm.js +73 -87
  436. package/slidemenu/slidemenu.esm.min.js +1 -1
  437. package/slidemenu/slidemenu.js +73 -87
  438. package/slidemenu/slidemenu.min.js +1 -1
  439. package/slider/slider.cjs.js +61 -96
  440. package/slider/slider.cjs.min.js +1 -1
  441. package/slider/slider.esm.js +61 -96
  442. package/slider/slider.esm.min.js +1 -1
  443. package/slider/slider.js +61 -96
  444. package/slider/slider.min.js +1 -1
  445. package/speeddial/speeddial.cjs.js +70 -89
  446. package/speeddial/speeddial.cjs.min.js +1 -1
  447. package/speeddial/speeddial.esm.js +70 -89
  448. package/speeddial/speeddial.esm.min.js +1 -1
  449. package/speeddial/speeddial.js +70 -89
  450. package/speeddial/speeddial.min.js +1 -1
  451. package/splitbutton/splitbutton.cjs.js +46 -80
  452. package/splitbutton/splitbutton.cjs.min.js +1 -1
  453. package/splitbutton/splitbutton.esm.js +46 -80
  454. package/splitbutton/splitbutton.esm.min.js +1 -1
  455. package/splitbutton/splitbutton.js +46 -80
  456. package/splitbutton/splitbutton.min.js +1 -1
  457. package/splitter/splitter.cjs.js +72 -85
  458. package/splitter/splitter.cjs.min.js +1 -1
  459. package/splitter/splitter.esm.js +72 -85
  460. package/splitter/splitter.esm.min.js +1 -1
  461. package/splitter/splitter.js +72 -85
  462. package/splitter/splitter.min.js +1 -1
  463. package/steps/steps.cjs.js +0 -14
  464. package/steps/steps.esm.js +0 -14
  465. package/steps/steps.js +0 -14
  466. package/styleclass/styleclass.cjs.js +75 -111
  467. package/styleclass/styleclass.cjs.min.js +1 -1
  468. package/styleclass/styleclass.esm.js +75 -111
  469. package/styleclass/styleclass.esm.min.js +1 -1
  470. package/styleclass/styleclass.js +75 -111
  471. package/styleclass/styleclass.min.js +1 -1
  472. package/tabmenu/tabmenu.cjs.js +33 -54
  473. package/tabmenu/tabmenu.cjs.min.js +1 -1
  474. package/tabmenu/tabmenu.esm.js +33 -54
  475. package/tabmenu/tabmenu.esm.min.js +1 -1
  476. package/tabmenu/tabmenu.js +33 -54
  477. package/tabmenu/tabmenu.min.js +1 -1
  478. package/tabview/tabview.cjs.js +83 -102
  479. package/tabview/tabview.cjs.min.js +1 -1
  480. package/tabview/tabview.esm.js +83 -102
  481. package/tabview/tabview.esm.min.js +1 -1
  482. package/tabview/tabview.js +83 -102
  483. package/tabview/tabview.min.js +1 -1
  484. package/tag/tag.cjs.js +27 -4
  485. package/tag/tag.cjs.min.js +1 -1
  486. package/tag/tag.esm.js +27 -4
  487. package/tag/tag.esm.min.js +1 -1
  488. package/tag/tag.js +27 -4
  489. package/tag/tag.min.js +1 -1
  490. package/terminal/terminal.cjs.js +37 -63
  491. package/terminal/terminal.cjs.min.js +1 -1
  492. package/terminal/terminal.esm.js +37 -63
  493. package/terminal/terminal.esm.min.js +1 -1
  494. package/terminal/terminal.js +37 -63
  495. package/terminal/terminal.min.js +1 -1
  496. package/tieredmenu/tieredmenu.cjs.js +65 -110
  497. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  498. package/tieredmenu/tieredmenu.esm.js +65 -110
  499. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  500. package/tieredmenu/tieredmenu.js +65 -110
  501. package/tieredmenu/tieredmenu.min.js +1 -1
  502. package/timeline/timeline.cjs.js +27 -7
  503. package/timeline/timeline.cjs.min.js +1 -1
  504. package/timeline/timeline.esm.js +27 -7
  505. package/timeline/timeline.esm.min.js +1 -1
  506. package/timeline/timeline.js +27 -7
  507. package/timeline/timeline.min.js +1 -1
  508. package/toast/toast.cjs.js +81 -99
  509. package/toast/toast.cjs.min.js +1 -1
  510. package/toast/toast.esm.js +81 -99
  511. package/toast/toast.esm.min.js +1 -1
  512. package/toast/toast.js +81 -99
  513. package/toast/toast.min.js +1 -1
  514. package/togglebutton/togglebutton.cjs.js +0 -7
  515. package/togglebutton/togglebutton.esm.js +0 -7
  516. package/togglebutton/togglebutton.js +0 -7
  517. package/toolbar/toolbar.cjs.js +0 -2
  518. package/toolbar/toolbar.esm.js +0 -2
  519. package/toolbar/toolbar.js +0 -2
  520. package/tooltip/tooltip.cjs.js +111 -164
  521. package/tooltip/tooltip.cjs.min.js +1 -1
  522. package/tooltip/tooltip.esm.js +111 -164
  523. package/tooltip/tooltip.esm.min.js +1 -1
  524. package/tooltip/tooltip.js +111 -164
  525. package/tooltip/tooltip.min.css +1 -1
  526. package/tooltip/tooltip.min.js +1 -1
  527. package/tooltip/tooltipoptions.d.ts +13 -13
  528. package/tree/tree.cjs.js +68 -223
  529. package/tree/tree.cjs.min.js +1 -1
  530. package/tree/tree.esm.js +68 -223
  531. package/tree/tree.esm.min.js +1 -1
  532. package/tree/tree.js +68 -223
  533. package/tree/tree.min.js +1 -1
  534. package/treenode/treenode.d.ts +1 -0
  535. package/treeselect/treeselect.cjs.js +117 -167
  536. package/treeselect/treeselect.cjs.min.js +1 -1
  537. package/treeselect/treeselect.d.ts +30 -29
  538. package/treeselect/treeselect.esm.js +117 -167
  539. package/treeselect/treeselect.esm.min.js +1 -1
  540. package/treeselect/treeselect.js +117 -167
  541. package/treeselect/treeselect.min.js +1 -1
  542. package/treetable/treetable.cjs.js +140 -460
  543. package/treetable/treetable.cjs.min.js +1 -1
  544. package/treetable/treetable.esm.js +140 -460
  545. package/treetable/treetable.esm.min.js +1 -1
  546. package/treetable/treetable.js +140 -460
  547. package/treetable/treetable.min.js +1 -1
  548. package/tristatecheckbox/tristatecheckbox.cjs.js +29 -39
  549. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  550. package/tristatecheckbox/tristatecheckbox.esm.js +29 -39
  551. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  552. package/tristatecheckbox/tristatecheckbox.js +29 -39
  553. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  554. package/utils/utils.cjs.js +110 -328
  555. package/utils/utils.cjs.min.js +1 -1
  556. package/utils/utils.esm.js +110 -328
  557. package/utils/utils.esm.min.js +1 -1
  558. package/utils/utils.js +110 -328
  559. package/utils/utils.min.js +1 -1
  560. package/virtualscroller/virtualscroller.cjs.js +108 -204
  561. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  562. package/virtualscroller/virtualscroller.esm.js +108 -204
  563. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  564. package/virtualscroller/virtualscroller.js +108 -204
  565. package/virtualscroller/virtualscroller.min.js +1 -1
  566. package/web-types.json +152 -38
@@ -39,20 +39,45 @@ function _extends() {
39
39
  _extends = Object.assign ? Object.assign.bind() : function (target) {
40
40
  for (var i = 1; i < arguments.length; i++) {
41
41
  var source = arguments[i];
42
-
43
42
  for (var key in source) {
44
43
  if (Object.prototype.hasOwnProperty.call(source, key)) {
45
44
  target[key] = source[key];
46
45
  }
47
46
  }
48
47
  }
49
-
50
48
  return target;
51
49
  };
52
50
  return _extends.apply(this, arguments);
53
51
  }
54
52
 
53
+ function _typeof(obj) {
54
+ "@babel/helpers - typeof";
55
+
56
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
57
+ return typeof obj;
58
+ } : function (obj) {
59
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
60
+ }, _typeof(obj);
61
+ }
62
+
63
+ function _toPrimitive(input, hint) {
64
+ if (_typeof(input) !== "object" || input === null) return input;
65
+ var prim = input[Symbol.toPrimitive];
66
+ if (prim !== undefined) {
67
+ var res = prim.call(input, hint || "default");
68
+ if (_typeof(res) !== "object") return res;
69
+ throw new TypeError("@@toPrimitive must return a primitive value.");
70
+ }
71
+ return (hint === "string" ? String : Number)(input);
72
+ }
73
+
74
+ function _toPropertyKey(arg) {
75
+ var key = _toPrimitive(arg, "string");
76
+ return _typeof(key) === "symbol" ? key : String(key);
77
+ }
78
+
55
79
  function _defineProperty(obj, key, value) {
80
+ key = _toPropertyKey(key);
56
81
  if (key in obj) {
57
82
  Object.defineProperty(obj, key, {
58
83
  value: value,
@@ -63,7 +88,6 @@ function _defineProperty(obj, key, value) {
63
88
  } else {
64
89
  obj[key] = value;
65
90
  }
66
-
67
91
  return obj;
68
92
  }
69
93
 
@@ -72,42 +96,40 @@ function _arrayWithHoles(arr) {
72
96
  }
73
97
 
74
98
  function _iterableToArrayLimit(arr, i) {
75
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
76
-
77
- if (_i == null) return;
78
- var _arr = [];
79
- var _n = true;
80
- var _d = false;
81
-
82
- var _s, _e;
83
-
84
- try {
85
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
86
- _arr.push(_s.value);
87
-
88
- if (i && _arr.length === i) break;
89
- }
90
- } catch (err) {
91
- _d = true;
92
- _e = err;
93
- } finally {
99
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
100
+ if (null != _i) {
101
+ var _s,
102
+ _e,
103
+ _x,
104
+ _r,
105
+ _arr = [],
106
+ _n = !0,
107
+ _d = !1;
94
108
  try {
95
- if (!_n && _i["return"] != null) _i["return"]();
109
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
110
+ if (Object(_i) !== _i) return;
111
+ _n = !1;
112
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
113
+ ;
114
+ }
115
+ } catch (err) {
116
+ _d = !0, _e = err;
96
117
  } finally {
97
- if (_d) throw _e;
118
+ try {
119
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
120
+ } finally {
121
+ if (_d) throw _e;
122
+ }
98
123
  }
124
+ return _arr;
99
125
  }
100
-
101
- return _arr;
102
126
  }
103
127
 
104
128
  function _arrayLikeToArray$1(arr, len) {
105
129
  if (len == null || len > arr.length) len = arr.length;
106
-
107
130
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
108
131
  arr2[i] = arr[i];
109
132
  }
110
-
111
133
  return arr2;
112
134
  }
113
135
 
@@ -159,7 +181,6 @@ var TreeSelectPanel = /*#__PURE__*/React__namespace.forwardRef(function (props,
159
181
  style: wrapperStyle
160
182
  }, props.children), props.footer));
161
183
  };
162
-
163
184
  var element = createElement();
164
185
  return /*#__PURE__*/React__namespace.createElement(portal.Portal, {
165
186
  element: element,
@@ -169,39 +190,31 @@ var TreeSelectPanel = /*#__PURE__*/React__namespace.forwardRef(function (props,
169
190
  TreeSelectPanel.displayName = 'TreeSelectPanel';
170
191
 
171
192
  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; }
172
-
173
193
  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; }
174
-
175
194
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
176
-
177
195
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
178
-
179
196
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
180
197
  var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
181
198
  var _React$useState = React__namespace.useState(false),
182
- _React$useState2 = _slicedToArray(_React$useState, 2),
183
- focusedState = _React$useState2[0],
184
- setFocusedState = _React$useState2[1];
185
-
199
+ _React$useState2 = _slicedToArray(_React$useState, 2),
200
+ focusedState = _React$useState2[0],
201
+ setFocusedState = _React$useState2[1];
186
202
  var _React$useState3 = React__namespace.useState(false),
187
- _React$useState4 = _slicedToArray(_React$useState3, 2),
188
- overlayVisibleState = _React$useState4[0],
189
- setOverlayVisibleState = _React$useState4[1];
190
-
203
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
204
+ overlayVisibleState = _React$useState4[0],
205
+ setOverlayVisibleState = _React$useState4[1];
191
206
  var _React$useState5 = React__namespace.useState(props.expandedKeys),
192
- _React$useState6 = _slicedToArray(_React$useState5, 2),
193
- expandedKeysState = _React$useState6[0],
194
- setExpandedKeysState = _React$useState6[1];
195
-
207
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
208
+ expandedKeysState = _React$useState6[0],
209
+ setExpandedKeysState = _React$useState6[1];
196
210
  var _React$useState7 = React__namespace.useState(''),
197
- _React$useState8 = _slicedToArray(_React$useState7, 2),
198
- filterValueState = _React$useState8[0],
199
- setFilterValueState = _React$useState8[1];
200
-
211
+ _React$useState8 = _slicedToArray(_React$useState7, 2),
212
+ filterValueState = _React$useState8[0],
213
+ setFilterValueState = _React$useState8[1];
201
214
  var elementRef = React__namespace.useRef(null);
202
215
  var overlayRef = React__namespace.useRef(null);
203
216
  var filterInputRef = React__namespace.useRef(null);
204
- var focusInputRef = React__namespace.useRef(null);
217
+ var focusInputRef = React__namespace.useRef(props.inputRef);
205
218
  var triggerRef = React__namespace.useRef(null);
206
219
  var selfChange = React__namespace.useRef(null);
207
220
  var expandedKeys = props.onToggle ? props.expandedKeys : expandedKeysState;
@@ -218,49 +231,41 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
218
231
  return resetFilter();
219
232
  }
220
233
  };
221
-
222
234
  var _useOverlayListener = hooks.useOverlayListener({
223
- target: elementRef,
224
- overlay: overlayRef,
225
- listener: function listener(event, _ref) {
226
- var valid = _ref.valid;
227
- valid && hide();
228
- },
229
- when: overlayVisibleState
230
- }),
231
- _useOverlayListener2 = _slicedToArray(_useOverlayListener, 2),
232
- bindOverlayListener = _useOverlayListener2[0],
233
- unbindOverlayListener = _useOverlayListener2[1];
234
-
235
+ target: elementRef,
236
+ overlay: overlayRef,
237
+ listener: function listener(event, _ref) {
238
+ var valid = _ref.valid;
239
+ valid && hide();
240
+ },
241
+ when: overlayVisibleState
242
+ }),
243
+ _useOverlayListener2 = _slicedToArray(_useOverlayListener, 2),
244
+ bindOverlayListener = _useOverlayListener2[0],
245
+ unbindOverlayListener = _useOverlayListener2[1];
235
246
  var getLabel = function getLabel() {
236
247
  return selectedNodes.length ? selectedNodes.map(function (node) {
237
248
  return node.label;
238
249
  }).join(', ') : props.placeholder;
239
250
  };
240
-
241
251
  var show = function show() {
242
252
  setOverlayVisibleState(true);
243
253
  };
244
-
245
254
  var hide = function hide() {
246
255
  setOverlayVisibleState(false);
247
256
  };
248
-
249
257
  var onInputFocus = function onInputFocus() {
250
258
  setFocusedState(true);
251
259
  };
252
-
253
260
  var onInputBlur = function onInputBlur() {
254
261
  setFocusedState(false);
255
262
  };
256
-
257
263
  var onClick = function onClick(event) {
258
264
  if (!props.disabled && (!overlayRef.current || !overlayRef.current.contains(event.target)) && !utils.DomHandler.hasClass(event.target, 'p-treeselect-close')) {
259
265
  utils.DomHandler.focus(focusInputRef.current);
260
266
  overlayVisibleState ? hide() : show();
261
267
  }
262
268
  };
263
-
264
269
  var onSelectionChange = function onSelectionChange(event) {
265
270
  if (props.onChange) {
266
271
  selfChange.current = true;
@@ -277,16 +282,13 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
277
282
  });
278
283
  }
279
284
  };
280
-
281
285
  var onNodeSelect = function onNodeSelect(node) {
282
286
  props.onNodeSelect && props.onNodeSelect(node);
283
287
  isSingleSelectionMode && hide();
284
288
  };
285
-
286
289
  var onNodeUnselect = function onNodeUnselect(node) {
287
290
  props.onNodeUnselect && props.onNodeUnselect(node);
288
291
  };
289
-
290
292
  var onNodeToggle = function onNodeToggle(e) {
291
293
  if (props.onToggle) {
292
294
  props.onToggle(e);
@@ -294,18 +296,15 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
294
296
  setExpandedKeysState(e.value);
295
297
  }
296
298
  };
297
-
298
299
  var onFilterValueChange = function onFilterValueChange(e) {
299
300
  setFilterValueState(e.value);
300
301
  };
301
-
302
302
  var onOverlayClick = function onOverlayClick(event) {
303
303
  overlayservice.OverlayService.emit('overlay-click', {
304
304
  originalEvent: event,
305
305
  target: elementRef.current
306
306
  });
307
307
  };
308
-
309
308
  var onInputKeyDown = function onInputKeyDown(event) {
310
309
  switch (event.which) {
311
310
  //down
@@ -313,45 +312,39 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
313
312
  if (!overlayVisibleState && event.altKey) {
314
313
  show();
315
314
  }
316
-
317
315
  break;
318
- //space
319
316
 
317
+ //space
320
318
  case 32:
321
319
  if (!overlayVisibleState) {
322
320
  show();
323
321
  event.preventDefault();
324
322
  }
325
-
326
323
  break;
327
- //enter and escape
328
324
 
325
+ //enter and escape
329
326
  case 13:
330
327
  case 27:
331
328
  if (overlayVisibleState) {
332
329
  hide();
333
330
  event.preventDefault();
334
331
  }
335
-
336
332
  break;
337
- //tab
338
333
 
334
+ //tab
339
335
  case 9:
340
336
  hide();
341
337
  break;
342
338
  }
343
339
  };
344
-
345
340
  var onFilterInputKeyDown = function onFilterInputKeyDown(event) {
346
341
  //enter
347
342
  if (event.which === 13) {
348
343
  event.preventDefault();
349
344
  }
350
345
  };
351
-
352
346
  var onFilterInputChange = function onFilterInputChange(event) {
353
347
  var value = event.target.value;
354
-
355
348
  if (props.onFilterValueChange) {
356
349
  props.onFilterValueChange({
357
350
  originalEvent: event,
@@ -361,47 +354,36 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
361
354
  setFilterValueState(value);
362
355
  }
363
356
  };
364
-
365
357
  var resetFilter = function resetFilter() {
366
358
  setFilterValueState('');
367
359
  };
368
-
369
360
  var onOverlayEnter = function onOverlayEnter() {
370
361
  utils.ZIndexUtils.set('overlay', overlayRef.current, PrimeReact__default["default"].autoZIndex, PrimeReact__default["default"].zIndex['overlay']);
371
362
  alignOverlay();
372
363
  scrollInView();
373
364
  };
374
-
375
365
  var onOverlayEntered = function onOverlayEntered() {
376
366
  bindOverlayListener();
377
-
378
367
  if (props.filter && props.filterInputAutoFocus) {
379
368
  utils.DomHandler.focus(filterInputRef.current, props.filterInputAutoFocus);
380
369
  }
381
-
382
370
  props.onShow && props.onShow();
383
371
  };
384
-
385
372
  var onOverlayExit = function onOverlayExit() {
386
373
  unbindOverlayListener();
387
374
  };
388
-
389
375
  var onOverlayExited = function onOverlayExited() {
390
376
  if (props.filter && props.resetFilterOnHide) {
391
377
  resetFilter();
392
378
  }
393
-
394
379
  utils.ZIndexUtils.clear(overlayRef.current);
395
380
  props.onHide && props.onHide();
396
381
  };
397
-
398
382
  var alignOverlay = function alignOverlay() {
399
383
  utils.DomHandler.alignOverlay(overlayRef.current, triggerRef.current.parentElement, props.appendTo || PrimeReact__default["default"].appendTo);
400
384
  };
401
-
402
385
  var scrollInView = function scrollInView() {
403
386
  var highlightItem = utils.DomHandler.findSingle(overlayRef.current, '.p-treenode-content.p-highlight');
404
-
405
387
  if (highlightItem && highlightItem.scrollIntoView) {
406
388
  highlightItem.scrollIntoView({
407
389
  block: 'nearest',
@@ -409,18 +391,15 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
409
391
  });
410
392
  }
411
393
  };
412
-
413
394
  var findSelectedNodes = function findSelectedNodes(node, keys, selectedNodes) {
414
395
  if (node) {
415
396
  if (isSelected(node, keys)) {
416
397
  selectedNodes.push(node);
417
398
  delete keys[node.key];
418
399
  }
419
-
420
400
  if (Object.keys(keys).length && node.children) {
421
401
  var _iterator = _createForOfIteratorHelper(node.children),
422
- _step;
423
-
402
+ _step;
424
403
  try {
425
404
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
426
405
  var childNode = _step.value;
@@ -434,8 +413,7 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
434
413
  }
435
414
  } else {
436
415
  var _iterator2 = _createForOfIteratorHelper(props.options),
437
- _step2;
438
-
416
+ _step2;
439
417
  try {
440
418
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
441
419
  var _childNode = _step2.value;
@@ -448,31 +426,25 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
448
426
  }
449
427
  }
450
428
  };
451
-
452
429
  var isSelected = function isSelected(node, keys) {
453
430
  return isCheckboxSelectionMode ? keys[node.key] && keys[node.key].checked : keys[node.key];
454
431
  };
455
-
456
432
  var updateTreeState = function updateTreeState() {
457
433
  var keys = isSingleSelectionMode ? _defineProperty({}, "".concat(props.value), true) : _objectSpread({}, props.value);
458
434
  setExpandedKeysState({});
459
-
460
435
  if (keys && props.options) {
461
436
  updateTreeBranchState(null, null, keys);
462
437
  }
463
438
  };
464
-
465
439
  var updateTreeBranchState = function updateTreeBranchState(node, path, keys) {
466
440
  if (node) {
467
441
  if (isSelected(node, keys)) {
468
442
  expandPath(path);
469
443
  delete keys[node.key];
470
444
  }
471
-
472
445
  if (Object.keys(keys).length && node.children) {
473
446
  var _iterator3 = _createForOfIteratorHelper(node.children),
474
- _step3;
475
-
447
+ _step3;
476
448
  try {
477
449
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
478
450
  var childNode = _step3.value;
@@ -487,8 +459,7 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
487
459
  }
488
460
  } else {
489
461
  var _iterator4 = _createForOfIteratorHelper(props.options),
490
- _step4;
491
-
462
+ _step4;
492
463
  try {
493
464
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
494
465
  var _childNode2 = _step4.value;
@@ -501,14 +472,11 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
501
472
  }
502
473
  }
503
474
  };
504
-
505
475
  var expandPath = function expandPath(path) {
506
476
  if (path.length > 0) {
507
477
  var _expandedKeys = _objectSpread({}, expandedKeysState || {});
508
-
509
478
  var _iterator5 = _createForOfIteratorHelper(path),
510
- _step5;
511
-
479
+ _step5;
512
480
  try {
513
481
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
514
482
  var key = _step5.value;
@@ -519,22 +487,17 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
519
487
  } finally {
520
488
  _iterator5.f();
521
489
  }
522
-
523
490
  setExpandedKeysState(_expandedKeys);
524
491
  }
525
492
  };
526
-
527
493
  var getSelectedNodes = function getSelectedNodes() {
528
494
  var selectedNodes = [];
529
-
530
495
  if (utils.ObjectUtils.isNotEmpty(props.value) && props.options) {
531
496
  var keys = isSingleSelectionMode ? _defineProperty({}, "".concat(props.value), true) : _objectSpread({}, props.value);
532
497
  findSelectedNodes(null, keys, selectedNodes);
533
498
  }
534
-
535
499
  return selectedNodes;
536
500
  };
537
-
538
501
  React__namespace.useImperativeHandle(ref, function () {
539
502
  return {
540
503
  props: props,
@@ -543,6 +506,9 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
543
506
  }
544
507
  };
545
508
  });
509
+ React__namespace.useEffect(function () {
510
+ utils.ObjectUtils.combinedRefs(focusInputRef, props.inputRef);
511
+ }, [focusInputRef, props.inputRef]);
546
512
  hooks.useMountEffect(function () {
547
513
  updateTreeState();
548
514
  });
@@ -564,14 +530,12 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
564
530
  if (!selfChange.current) {
565
531
  updateTreeState();
566
532
  }
567
-
568
533
  selfChange.current = false;
569
534
  }
570
535
  }, [props.value]);
571
536
  hooks.useUnmountEffect(function () {
572
537
  utils.ZIndexUtils.clear(overlayRef.current);
573
538
  });
574
-
575
539
  var createKeyboardHelper = function createKeyboardHelper() {
576
540
  return /*#__PURE__*/React__namespace.createElement("div", {
577
541
  className: "p-hidden-accessible"
@@ -589,14 +553,12 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
589
553
  tabIndex: props.tabIndex
590
554
  }, ariaProps)));
591
555
  };
592
-
593
556
  var createLabel = function createLabel() {
594
557
  var labelClassName = utils.classNames('p-treeselect-label', {
595
558
  'p-placeholder': getLabel() === props.placeholder,
596
559
  'p-treeselect-label-empty': !props.placeholder && isValueEmpty
597
560
  });
598
561
  var content = null;
599
-
600
562
  if (props.valueTemplate) {
601
563
  content = utils.ObjectUtils.getJSXElement(props.valueTemplate, selectedNodes, props);
602
564
  } else {
@@ -613,14 +575,12 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
613
575
  }), isValueEmpty && (props.placeholder || 'empty'));
614
576
  }
615
577
  }
616
-
617
578
  return /*#__PURE__*/React__namespace.createElement("div", {
618
579
  className: "p-treeselect-label-container"
619
580
  }, /*#__PURE__*/React__namespace.createElement("div", {
620
581
  className: labelClassName
621
582
  }, content));
622
583
  };
623
-
624
584
  var createDropdownIcon = function createDropdownIcon() {
625
585
  var iconClassName = utils.classNames('p-treeselect-trigger-icon p-clickable', props.dropdownIcon);
626
586
  return /*#__PURE__*/React__namespace.createElement("div", {
@@ -633,7 +593,6 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
633
593
  className: iconClassName
634
594
  }));
635
595
  };
636
-
637
596
  var createContent = function createContent() {
638
597
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(tree.Tree, {
639
598
  value: props.options,
@@ -659,7 +618,6 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
659
618
  className: "p-treeselect-empty-message"
660
619
  }, props.emptyMessage || PrimeReact.localeOption('emptyMessage')));
661
620
  };
662
-
663
621
  var createFilterElement = function createFilterElement() {
664
622
  if (props.filter) {
665
623
  var filterValue = utils.ObjectUtils.isNotEmpty(filteredValue) ? filteredValue : '';
@@ -678,7 +636,6 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
678
636
  }), /*#__PURE__*/React__namespace.createElement("span", {
679
637
  className: "p-treeselect-filter-icon pi pi-search"
680
638
  }));
681
-
682
639
  if (props.filterTemplate) {
683
640
  var defaultContentOptions = {
684
641
  className: 'p-treeselect-filter-container',
@@ -691,11 +648,9 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
691
648
  };
692
649
  filterContent = utils.ObjectUtils.getJSXElement(props.filterTemplate, defaultContentOptions);
693
650
  }
694
-
695
651
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, filterContent);
696
652
  }
697
653
  };
698
-
699
654
  var createHeader = function createHeader() {
700
655
  var filterElement = createFilterElement();
701
656
  var closeElement = /*#__PURE__*/React__namespace.createElement("button", {
@@ -710,7 +665,6 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
710
665
  var content = /*#__PURE__*/React__namespace.createElement("div", {
711
666
  className: "p-treeselect-header"
712
667
  }, filterElement, closeElement);
713
-
714
668
  if (props.panelHeaderTemplate) {
715
669
  var defaultOptions = {
716
670
  className: 'p-treeselect-header',
@@ -724,14 +678,11 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
724
678
  };
725
679
  return utils.ObjectUtils.getJSXElement(props.panelHeaderTemplate, defaultOptions);
726
680
  }
727
-
728
681
  return content;
729
682
  };
730
-
731
683
  var createFooter = function createFooter() {
732
684
  return utils.ObjectUtils.getJSXElement(props.panelFooterTemplate, props);
733
685
  };
734
-
735
686
  var selectedNodes = getSelectedNodes();
736
687
  var otherProps = utils.ObjectUtils.findDiffKeys(props, TreeSelect.defaultProps);
737
688
  var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
@@ -749,7 +700,6 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
749
700
  var header = createHeader();
750
701
  var footer = createFooter();
751
702
  return /*#__PURE__*/React__namespace.createElement("div", _extends({
752
- id: props.id,
753
703
  ref: elementRef,
754
704
  className: className,
755
705
  style: props.style
@@ -775,49 +725,49 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
775
725
  TreeSelect.displayName = 'TreeSelect';
776
726
  TreeSelect.defaultProps = {
777
727
  __TYPE: 'TreeSelect',
778
- id: null,
779
- value: null,
780
- name: null,
781
- style: null,
782
- className: null,
783
- disabled: false,
784
- options: null,
785
- scrollHeight: '400px',
786
- placeholder: null,
787
- tabIndex: null,
788
- inputId: null,
728
+ appendTo: null,
789
729
  ariaLabel: null,
790
730
  ariaLabelledBy: null,
791
- selectionMode: 'single',
792
- expandedKeys: null,
793
- panelStyle: null,
794
- panelClassName: null,
795
- appendTo: null,
796
- emptyMessage: null,
731
+ className: null,
732
+ disabled: false,
797
733
  display: 'comma',
798
- metaKeySelection: true,
799
- valueTemplate: null,
800
- panelHeaderTemplate: null,
801
- panelFooterTemplate: null,
802
- transitionOptions: null,
803
734
  dropdownIcon: 'pi pi-chevron-down',
735
+ emptyMessage: null,
736
+ expandedKeys: null,
804
737
  filter: false,
805
- filterTemplate: null,
806
- filterValue: null,
807
738
  filterBy: 'label',
739
+ filterInputAutoFocus: true,
740
+ filterLocale: undefined,
808
741
  filterMode: 'lenient',
809
742
  filterPlaceholder: null,
810
- filterLocale: undefined,
811
- filterInputAutoFocus: true,
812
- resetFilterOnHide: false,
813
- onShow: null,
814
- onHide: null,
743
+ filterTemplate: null,
744
+ filterValue: null,
745
+ inputId: null,
746
+ inputRef: null,
747
+ metaKeySelection: true,
748
+ name: null,
815
749
  onChange: null,
750
+ onFilterValueChange: null,
751
+ onHide: null,
752
+ onNodeCollapse: null,
753
+ onNodeExpand: null,
816
754
  onNodeSelect: null,
817
755
  onNodeUnselect: null,
818
- onNodeExpand: null,
819
- onNodeCollapse: null,
820
- onFilterValueChange: null
756
+ onShow: null,
757
+ options: null,
758
+ panelClassName: null,
759
+ panelFooterTemplate: null,
760
+ panelHeaderTemplate: null,
761
+ panelStyle: null,
762
+ placeholder: null,
763
+ resetFilterOnHide: false,
764
+ scrollHeight: '400px',
765
+ selectionMode: 'single',
766
+ style: null,
767
+ tabIndex: null,
768
+ transitionOptions: null,
769
+ value: null,
770
+ valueTemplate: null
821
771
  };
822
772
 
823
773
  exports.TreeSelect = TreeSelect;