primereact 10.9.2 → 10.9.4

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 (976) hide show
  1. package/accordion/accordion.cjs.js +43 -55
  2. package/accordion/accordion.cjs.min.js +1 -1
  3. package/accordion/accordion.d.ts +2 -2
  4. package/accordion/accordion.esm.js +43 -55
  5. package/accordion/accordion.esm.min.js +1 -1
  6. package/accordion/accordion.js +43 -55
  7. package/accordion/accordion.min.js +1 -1
  8. package/api/api.cjs.js +46 -60
  9. package/api/api.cjs.min.js +1 -1
  10. package/api/api.d.ts +5 -1
  11. package/api/api.esm.js +46 -60
  12. package/api/api.esm.min.js +1 -1
  13. package/api/api.js +46 -60
  14. package/api/api.min.js +1 -1
  15. package/autocomplete/autocomplete.cjs.js +64 -55
  16. package/autocomplete/autocomplete.cjs.min.js +1 -1
  17. package/autocomplete/autocomplete.d.ts +27 -25
  18. package/autocomplete/autocomplete.esm.js +64 -55
  19. package/autocomplete/autocomplete.esm.min.js +1 -1
  20. package/autocomplete/autocomplete.js +64 -55
  21. package/autocomplete/autocomplete.min.js +1 -1
  22. package/avatar/avatar.cjs.js +37 -49
  23. package/avatar/avatar.cjs.min.js +1 -1
  24. package/avatar/avatar.d.ts +2 -2
  25. package/avatar/avatar.esm.js +37 -49
  26. package/avatar/avatar.esm.min.js +1 -1
  27. package/avatar/avatar.js +37 -49
  28. package/avatar/avatar.min.js +1 -1
  29. package/avatargroup/avatargroup.d.ts +2 -2
  30. package/badge/badge.cjs.js +17 -23
  31. package/badge/badge.cjs.min.js +1 -1
  32. package/badge/badge.d.ts +2 -2
  33. package/badge/badge.esm.js +17 -23
  34. package/badge/badge.esm.min.js +1 -1
  35. package/badge/badge.js +17 -23
  36. package/badge/badge.min.js +1 -1
  37. package/blockui/blockui.cjs.js +37 -49
  38. package/blockui/blockui.cjs.min.js +1 -1
  39. package/blockui/blockui.d.ts +2 -2
  40. package/blockui/blockui.esm.js +37 -49
  41. package/blockui/blockui.esm.min.js +1 -1
  42. package/blockui/blockui.js +37 -49
  43. package/blockui/blockui.min.js +1 -1
  44. package/breadcrumb/breadcrumb.cjs.js +37 -49
  45. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  46. package/breadcrumb/breadcrumb.d.ts +2 -2
  47. package/breadcrumb/breadcrumb.esm.js +37 -49
  48. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  49. package/breadcrumb/breadcrumb.js +37 -49
  50. package/breadcrumb/breadcrumb.min.js +1 -1
  51. package/button/button.cjs.js +23 -34
  52. package/button/button.cjs.min.js +1 -1
  53. package/button/button.esm.js +23 -34
  54. package/button/button.esm.min.js +1 -1
  55. package/button/button.js +23 -34
  56. package/button/button.min.js +1 -1
  57. package/buttongroup/buttongroup.cjs.js +4 -1
  58. package/buttongroup/buttongroup.cjs.min.js +1 -1
  59. package/buttongroup/buttongroup.esm.js +4 -1
  60. package/buttongroup/buttongroup.esm.min.js +1 -1
  61. package/buttongroup/buttongroup.js +4 -1
  62. package/buttongroup/buttongroup.min.js +1 -1
  63. package/calendar/calendar.cjs.js +52 -59
  64. package/calendar/calendar.cjs.min.js +1 -1
  65. package/calendar/calendar.d.ts +7 -7
  66. package/calendar/calendar.esm.js +52 -59
  67. package/calendar/calendar.esm.min.js +1 -1
  68. package/calendar/calendar.js +52 -59
  69. package/calendar/calendar.min.js +1 -1
  70. package/carousel/carousel.cjs.js +44 -56
  71. package/carousel/carousel.cjs.min.js +1 -1
  72. package/carousel/carousel.d.ts +2 -2
  73. package/carousel/carousel.esm.js +44 -56
  74. package/carousel/carousel.esm.min.js +1 -1
  75. package/carousel/carousel.js +44 -56
  76. package/carousel/carousel.min.js +1 -1
  77. package/cascadeselect/cascadeselect.cjs.js +40 -52
  78. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  79. package/cascadeselect/cascadeselect.d.ts +8 -8
  80. package/cascadeselect/cascadeselect.esm.js +40 -52
  81. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  82. package/cascadeselect/cascadeselect.js +40 -52
  83. package/cascadeselect/cascadeselect.min.js +1 -1
  84. package/chart/chart.d.ts +2 -2
  85. package/checkbox/checkbox.cjs.js +37 -49
  86. package/checkbox/checkbox.cjs.min.js +1 -1
  87. package/checkbox/checkbox.d.ts +4 -4
  88. package/checkbox/checkbox.esm.js +37 -49
  89. package/checkbox/checkbox.esm.min.js +1 -1
  90. package/checkbox/checkbox.js +37 -49
  91. package/checkbox/checkbox.min.js +1 -1
  92. package/chip/chip.cjs.js +48 -51
  93. package/chip/chip.cjs.min.js +1 -1
  94. package/chip/chip.d.ts +15 -4
  95. package/chip/chip.esm.js +48 -51
  96. package/chip/chip.esm.min.js +1 -1
  97. package/chip/chip.js +48 -51
  98. package/chip/chip.min.js +1 -1
  99. package/chips/chips.cjs.js +43 -55
  100. package/chips/chips.cjs.min.js +1 -1
  101. package/chips/chips.d.ts +2 -2
  102. package/chips/chips.esm.js +43 -55
  103. package/chips/chips.esm.min.js +1 -1
  104. package/chips/chips.js +43 -55
  105. package/chips/chips.min.js +1 -1
  106. package/colorpicker/colorpicker.cjs.js +38 -49
  107. package/colorpicker/colorpicker.cjs.min.js +1 -1
  108. package/colorpicker/colorpicker.d.ts +6 -6
  109. package/colorpicker/colorpicker.esm.js +38 -49
  110. package/colorpicker/colorpicker.esm.min.js +1 -1
  111. package/colorpicker/colorpicker.js +38 -49
  112. package/colorpicker/colorpicker.min.js +1 -1
  113. package/componentbase/componentbase.cjs.js +47 -45
  114. package/componentbase/componentbase.cjs.min.js +1 -1
  115. package/componentbase/componentbase.esm.js +47 -45
  116. package/componentbase/componentbase.esm.min.js +1 -1
  117. package/componentbase/componentbase.js +47 -45
  118. package/componentbase/componentbase.min.js +1 -1
  119. package/confirmdialog/confirmdialog.cjs.js +41 -52
  120. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  121. package/confirmdialog/confirmdialog.esm.js +41 -52
  122. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  123. package/confirmdialog/confirmdialog.js +41 -52
  124. package/confirmdialog/confirmdialog.min.js +1 -1
  125. package/confirmpopup/confirmpopup.cjs.js +37 -49
  126. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  127. package/confirmpopup/confirmpopup.esm.js +37 -49
  128. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  129. package/confirmpopup/confirmpopup.js +37 -49
  130. package/confirmpopup/confirmpopup.min.js +1 -1
  131. package/contextmenu/contextmenu.cjs.js +37 -49
  132. package/contextmenu/contextmenu.cjs.min.js +1 -1
  133. package/contextmenu/contextmenu.d.ts +2 -2
  134. package/contextmenu/contextmenu.esm.js +37 -49
  135. package/contextmenu/contextmenu.esm.min.js +1 -1
  136. package/contextmenu/contextmenu.js +37 -49
  137. package/contextmenu/contextmenu.min.js +1 -1
  138. package/core/core.js +1050 -1445
  139. package/core/core.min.js +65 -65
  140. package/csstransition/csstransition.cjs.js +17 -23
  141. package/csstransition/csstransition.cjs.min.js +1 -1
  142. package/csstransition/csstransition.esm.js +17 -23
  143. package/csstransition/csstransition.esm.min.js +1 -1
  144. package/csstransition/csstransition.js +17 -23
  145. package/csstransition/csstransition.min.js +1 -1
  146. package/datascroller/datascroller.cjs.js +28 -32
  147. package/datascroller/datascroller.cjs.min.js +1 -1
  148. package/datascroller/datascroller.d.ts +2 -2
  149. package/datascroller/datascroller.esm.js +28 -32
  150. package/datascroller/datascroller.esm.min.js +1 -1
  151. package/datascroller/datascroller.js +28 -32
  152. package/datascroller/datascroller.min.js +1 -1
  153. package/datatable/datatable.cjs.js +203 -171
  154. package/datatable/datatable.cjs.min.js +1 -1
  155. package/datatable/datatable.d.ts +6 -5
  156. package/datatable/datatable.esm.js +203 -171
  157. package/datatable/datatable.esm.min.js +1 -1
  158. package/datatable/datatable.js +203 -171
  159. package/datatable/datatable.min.js +1 -1
  160. package/dataview/dataview.cjs.js +47 -59
  161. package/dataview/dataview.cjs.min.js +1 -1
  162. package/dataview/dataview.d.ts +2 -2
  163. package/dataview/dataview.esm.js +47 -59
  164. package/dataview/dataview.esm.min.js +1 -1
  165. package/dataview/dataview.js +47 -59
  166. package/dataview/dataview.min.js +1 -1
  167. package/deferredcontent/deferredcontent.cjs.js +14 -15
  168. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  169. package/deferredcontent/deferredcontent.d.ts +2 -2
  170. package/deferredcontent/deferredcontent.esm.js +14 -15
  171. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  172. package/deferredcontent/deferredcontent.js +14 -15
  173. package/deferredcontent/deferredcontent.min.js +1 -1
  174. package/dialog/dialog.cjs.js +43 -56
  175. package/dialog/dialog.cjs.min.js +1 -1
  176. package/dialog/dialog.d.ts +12 -12
  177. package/dialog/dialog.esm.js +43 -56
  178. package/dialog/dialog.esm.min.js +1 -1
  179. package/dialog/dialog.js +43 -56
  180. package/dialog/dialog.min.js +1 -1
  181. package/divider/divider.cjs.js +2 -2
  182. package/divider/divider.cjs.min.js +1 -1
  183. package/divider/divider.d.ts +2 -2
  184. package/divider/divider.esm.js +2 -2
  185. package/divider/divider.esm.min.js +1 -1
  186. package/divider/divider.js +2 -2
  187. package/divider/divider.min.js +1 -1
  188. package/dock/dock.cjs.js +43 -55
  189. package/dock/dock.cjs.min.js +1 -1
  190. package/dock/dock.d.ts +2 -2
  191. package/dock/dock.esm.js +43 -55
  192. package/dock/dock.esm.min.js +1 -1
  193. package/dock/dock.js +43 -55
  194. package/dock/dock.min.js +1 -1
  195. package/dropdown/dropdown.cjs.js +52 -63
  196. package/dropdown/dropdown.cjs.min.js +1 -1
  197. package/dropdown/dropdown.d.ts +10 -10
  198. package/dropdown/dropdown.esm.js +53 -64
  199. package/dropdown/dropdown.esm.min.js +1 -1
  200. package/dropdown/dropdown.js +52 -63
  201. package/dropdown/dropdown.min.js +1 -1
  202. package/editor/editor.cjs.js +37 -49
  203. package/editor/editor.cjs.min.js +1 -1
  204. package/editor/editor.d.ts +6 -6
  205. package/editor/editor.esm.js +37 -49
  206. package/editor/editor.esm.min.js +1 -1
  207. package/editor/editor.js +37 -49
  208. package/editor/editor.min.js +1 -1
  209. package/fieldset/fieldset.cjs.js +20 -26
  210. package/fieldset/fieldset.cjs.min.js +1 -1
  211. package/fieldset/fieldset.d.ts +4 -4
  212. package/fieldset/fieldset.esm.js +20 -26
  213. package/fieldset/fieldset.esm.min.js +1 -1
  214. package/fieldset/fieldset.js +20 -26
  215. package/fieldset/fieldset.min.js +1 -1
  216. package/fileupload/fileupload.cjs.js +50 -61
  217. package/fileupload/fileupload.cjs.min.js +1 -1
  218. package/fileupload/fileupload.d.ts +8 -4
  219. package/fileupload/fileupload.esm.js +50 -61
  220. package/fileupload/fileupload.esm.min.js +1 -1
  221. package/fileupload/fileupload.js +50 -61
  222. package/fileupload/fileupload.min.js +1 -1
  223. package/focustrap/focustrap.cjs.js +17 -23
  224. package/focustrap/focustrap.cjs.min.js +1 -1
  225. package/focustrap/focustrap.esm.js +17 -23
  226. package/focustrap/focustrap.esm.min.js +1 -1
  227. package/focustrap/focustrap.js +17 -23
  228. package/focustrap/focustrap.min.js +1 -1
  229. package/galleria/galleria.cjs.js +44 -56
  230. package/galleria/galleria.cjs.min.js +1 -1
  231. package/galleria/galleria.d.ts +2 -2
  232. package/galleria/galleria.esm.js +44 -56
  233. package/galleria/galleria.esm.min.js +1 -1
  234. package/galleria/galleria.js +44 -56
  235. package/galleria/galleria.min.js +1 -1
  236. package/hooks/hooks.cjs.js +37 -44
  237. package/hooks/hooks.cjs.min.js +1 -1
  238. package/hooks/hooks.d.ts +3 -2
  239. package/hooks/hooks.esm.js +37 -44
  240. package/hooks/hooks.esm.min.js +1 -1
  241. package/hooks/hooks.js +37 -44
  242. package/hooks/hooks.min.js +1 -1
  243. package/iconfield/iconfield.cjs.js +23 -34
  244. package/iconfield/iconfield.cjs.min.js +1 -1
  245. package/iconfield/iconfield.esm.js +23 -34
  246. package/iconfield/iconfield.esm.min.js +1 -1
  247. package/iconfield/iconfield.js +23 -34
  248. package/iconfield/iconfield.min.js +1 -1
  249. package/icons/angledoubledown/index.cjs.js +6 -11
  250. package/icons/angledoubledown/index.cjs.min.js +1 -1
  251. package/icons/angledoubledown/index.esm.js +6 -11
  252. package/icons/angledoubledown/index.esm.min.js +1 -1
  253. package/icons/angledoubledown/index.js +6 -11
  254. package/icons/angledoubledown/index.min.js +1 -1
  255. package/icons/angledoubleleft/index.cjs.js +6 -11
  256. package/icons/angledoubleleft/index.cjs.min.js +1 -1
  257. package/icons/angledoubleleft/index.esm.js +6 -11
  258. package/icons/angledoubleleft/index.esm.min.js +1 -1
  259. package/icons/angledoubleleft/index.js +6 -11
  260. package/icons/angledoubleleft/index.min.js +1 -1
  261. package/icons/angledoubleright/index.cjs.js +6 -11
  262. package/icons/angledoubleright/index.cjs.min.js +1 -1
  263. package/icons/angledoubleright/index.esm.js +6 -11
  264. package/icons/angledoubleright/index.esm.min.js +1 -1
  265. package/icons/angledoubleright/index.js +6 -11
  266. package/icons/angledoubleright/index.min.js +1 -1
  267. package/icons/angledoubleup/index.cjs.js +6 -11
  268. package/icons/angledoubleup/index.cjs.min.js +1 -1
  269. package/icons/angledoubleup/index.esm.js +6 -11
  270. package/icons/angledoubleup/index.esm.min.js +1 -1
  271. package/icons/angledoubleup/index.js +6 -11
  272. package/icons/angledoubleup/index.min.js +1 -1
  273. package/icons/angledown/index.cjs.js +6 -11
  274. package/icons/angledown/index.cjs.min.js +1 -1
  275. package/icons/angledown/index.esm.js +6 -11
  276. package/icons/angledown/index.esm.min.js +1 -1
  277. package/icons/angledown/index.js +6 -11
  278. package/icons/angledown/index.min.js +1 -1
  279. package/icons/angleleft/index.cjs.js +6 -11
  280. package/icons/angleleft/index.cjs.min.js +1 -1
  281. package/icons/angleleft/index.esm.js +6 -11
  282. package/icons/angleleft/index.esm.min.js +1 -1
  283. package/icons/angleleft/index.js +6 -11
  284. package/icons/angleleft/index.min.js +1 -1
  285. package/icons/angleright/index.cjs.js +6 -11
  286. package/icons/angleright/index.cjs.min.js +1 -1
  287. package/icons/angleright/index.esm.js +6 -11
  288. package/icons/angleright/index.esm.min.js +1 -1
  289. package/icons/angleright/index.js +6 -11
  290. package/icons/angleright/index.min.js +1 -1
  291. package/icons/angleup/index.cjs.js +6 -11
  292. package/icons/angleup/index.cjs.min.js +1 -1
  293. package/icons/angleup/index.esm.js +6 -11
  294. package/icons/angleup/index.esm.min.js +1 -1
  295. package/icons/angleup/index.js +6 -11
  296. package/icons/angleup/index.min.js +1 -1
  297. package/icons/arrowdown/index.cjs.js +6 -11
  298. package/icons/arrowdown/index.cjs.min.js +1 -1
  299. package/icons/arrowdown/index.esm.js +6 -11
  300. package/icons/arrowdown/index.esm.min.js +1 -1
  301. package/icons/arrowdown/index.js +6 -11
  302. package/icons/arrowdown/index.min.js +1 -1
  303. package/icons/arrowup/index.cjs.js +6 -11
  304. package/icons/arrowup/index.cjs.min.js +1 -1
  305. package/icons/arrowup/index.esm.js +6 -11
  306. package/icons/arrowup/index.esm.min.js +1 -1
  307. package/icons/arrowup/index.js +6 -11
  308. package/icons/arrowup/index.min.js +1 -1
  309. package/icons/ban/index.cjs.js +6 -11
  310. package/icons/ban/index.cjs.min.js +1 -1
  311. package/icons/ban/index.esm.js +6 -11
  312. package/icons/ban/index.esm.min.js +1 -1
  313. package/icons/ban/index.js +6 -11
  314. package/icons/ban/index.min.js +1 -1
  315. package/icons/bars/index.cjs.js +6 -11
  316. package/icons/bars/index.cjs.min.js +1 -1
  317. package/icons/bars/index.esm.js +6 -11
  318. package/icons/bars/index.esm.min.js +1 -1
  319. package/icons/bars/index.js +6 -11
  320. package/icons/bars/index.min.js +1 -1
  321. package/icons/blank/index.cjs.js +6 -11
  322. package/icons/blank/index.cjs.min.js +1 -1
  323. package/icons/blank/index.esm.js +6 -11
  324. package/icons/blank/index.esm.min.js +1 -1
  325. package/icons/blank/index.js +6 -11
  326. package/icons/blank/index.min.js +1 -1
  327. package/icons/calendar/index.cjs.js +6 -11
  328. package/icons/calendar/index.cjs.min.js +1 -1
  329. package/icons/calendar/index.esm.js +6 -11
  330. package/icons/calendar/index.esm.min.js +1 -1
  331. package/icons/calendar/index.js +6 -11
  332. package/icons/calendar/index.min.js +1 -1
  333. package/icons/check/index.cjs.js +6 -11
  334. package/icons/check/index.cjs.min.js +1 -1
  335. package/icons/check/index.esm.js +6 -11
  336. package/icons/check/index.esm.min.js +1 -1
  337. package/icons/check/index.js +6 -11
  338. package/icons/check/index.min.js +1 -1
  339. package/icons/chevrondown/index.cjs.js +6 -11
  340. package/icons/chevrondown/index.cjs.min.js +1 -1
  341. package/icons/chevrondown/index.esm.js +6 -11
  342. package/icons/chevrondown/index.esm.min.js +1 -1
  343. package/icons/chevrondown/index.js +6 -11
  344. package/icons/chevrondown/index.min.js +1 -1
  345. package/icons/chevronleft/index.cjs.js +6 -11
  346. package/icons/chevronleft/index.cjs.min.js +1 -1
  347. package/icons/chevronleft/index.esm.js +6 -11
  348. package/icons/chevronleft/index.esm.min.js +1 -1
  349. package/icons/chevronleft/index.js +6 -11
  350. package/icons/chevronleft/index.min.js +1 -1
  351. package/icons/chevronright/index.cjs.js +6 -11
  352. package/icons/chevronright/index.cjs.min.js +1 -1
  353. package/icons/chevronright/index.esm.js +6 -11
  354. package/icons/chevronright/index.esm.min.js +1 -1
  355. package/icons/chevronright/index.js +6 -11
  356. package/icons/chevronright/index.min.js +1 -1
  357. package/icons/chevronup/index.cjs.js +6 -11
  358. package/icons/chevronup/index.cjs.min.js +1 -1
  359. package/icons/chevronup/index.esm.js +6 -11
  360. package/icons/chevronup/index.esm.min.js +1 -1
  361. package/icons/chevronup/index.js +6 -11
  362. package/icons/chevronup/index.min.js +1 -1
  363. package/icons/download/index.cjs.js +6 -11
  364. package/icons/download/index.cjs.min.js +1 -1
  365. package/icons/download/index.esm.js +6 -11
  366. package/icons/download/index.esm.min.js +1 -1
  367. package/icons/download/index.js +6 -11
  368. package/icons/download/index.min.js +1 -1
  369. package/icons/exclamationtriangle/index.cjs.js +6 -11
  370. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  371. package/icons/exclamationtriangle/index.esm.js +6 -11
  372. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  373. package/icons/exclamationtriangle/index.js +6 -11
  374. package/icons/exclamationtriangle/index.min.js +1 -1
  375. package/icons/eye/index.cjs.js +6 -11
  376. package/icons/eye/index.cjs.min.js +1 -1
  377. package/icons/eye/index.esm.js +6 -11
  378. package/icons/eye/index.esm.min.js +1 -1
  379. package/icons/eye/index.js +6 -11
  380. package/icons/eye/index.min.js +1 -1
  381. package/icons/eyeslash/index.cjs.js +6 -11
  382. package/icons/eyeslash/index.cjs.min.js +1 -1
  383. package/icons/eyeslash/index.esm.js +6 -11
  384. package/icons/eyeslash/index.esm.min.js +1 -1
  385. package/icons/eyeslash/index.js +6 -11
  386. package/icons/eyeslash/index.min.js +1 -1
  387. package/icons/filter/index.cjs.js +6 -11
  388. package/icons/filter/index.cjs.min.js +1 -1
  389. package/icons/filter/index.esm.js +6 -11
  390. package/icons/filter/index.esm.min.js +1 -1
  391. package/icons/filter/index.js +6 -11
  392. package/icons/filter/index.min.js +1 -1
  393. package/icons/filterslash/index.cjs.js +6 -11
  394. package/icons/filterslash/index.cjs.min.js +1 -1
  395. package/icons/filterslash/index.esm.js +6 -11
  396. package/icons/filterslash/index.esm.min.js +1 -1
  397. package/icons/filterslash/index.js +6 -11
  398. package/icons/filterslash/index.min.js +1 -1
  399. package/icons/infocircle/index.cjs.js +6 -11
  400. package/icons/infocircle/index.cjs.min.js +1 -1
  401. package/icons/infocircle/index.esm.js +6 -11
  402. package/icons/infocircle/index.esm.min.js +1 -1
  403. package/icons/infocircle/index.js +6 -11
  404. package/icons/infocircle/index.min.js +1 -1
  405. package/icons/minus/index.cjs.js +6 -11
  406. package/icons/minus/index.cjs.min.js +1 -1
  407. package/icons/minus/index.esm.js +6 -11
  408. package/icons/minus/index.esm.min.js +1 -1
  409. package/icons/minus/index.js +6 -11
  410. package/icons/minus/index.min.js +1 -1
  411. package/icons/pencil/index.cjs.js +6 -11
  412. package/icons/pencil/index.cjs.min.js +1 -1
  413. package/icons/pencil/index.esm.js +6 -11
  414. package/icons/pencil/index.esm.min.js +1 -1
  415. package/icons/pencil/index.js +6 -11
  416. package/icons/pencil/index.min.js +1 -1
  417. package/icons/plus/index.cjs.js +6 -11
  418. package/icons/plus/index.cjs.min.js +1 -1
  419. package/icons/plus/index.esm.js +6 -11
  420. package/icons/plus/index.esm.min.js +1 -1
  421. package/icons/plus/index.js +6 -11
  422. package/icons/plus/index.min.js +1 -1
  423. package/icons/refresh/index.cjs.js +6 -11
  424. package/icons/refresh/index.cjs.min.js +1 -1
  425. package/icons/refresh/index.esm.js +6 -11
  426. package/icons/refresh/index.esm.min.js +1 -1
  427. package/icons/refresh/index.js +6 -11
  428. package/icons/refresh/index.min.js +1 -1
  429. package/icons/search/index.cjs.js +6 -11
  430. package/icons/search/index.cjs.min.js +1 -1
  431. package/icons/search/index.esm.js +6 -11
  432. package/icons/search/index.esm.min.js +1 -1
  433. package/icons/search/index.js +6 -11
  434. package/icons/search/index.min.js +1 -1
  435. package/icons/searchminus/index.cjs.js +6 -11
  436. package/icons/searchminus/index.cjs.min.js +1 -1
  437. package/icons/searchminus/index.esm.js +6 -11
  438. package/icons/searchminus/index.esm.min.js +1 -1
  439. package/icons/searchminus/index.js +6 -11
  440. package/icons/searchminus/index.min.js +1 -1
  441. package/icons/searchplus/index.cjs.js +6 -11
  442. package/icons/searchplus/index.cjs.min.js +1 -1
  443. package/icons/searchplus/index.esm.js +6 -11
  444. package/icons/searchplus/index.esm.min.js +1 -1
  445. package/icons/searchplus/index.js +6 -11
  446. package/icons/searchplus/index.min.js +1 -1
  447. package/icons/sortalt/index.cjs.js +6 -11
  448. package/icons/sortalt/index.cjs.min.js +1 -1
  449. package/icons/sortalt/index.esm.js +6 -11
  450. package/icons/sortalt/index.esm.min.js +1 -1
  451. package/icons/sortalt/index.js +6 -11
  452. package/icons/sortalt/index.min.js +1 -1
  453. package/icons/sortamountdown/index.cjs.js +6 -11
  454. package/icons/sortamountdown/index.cjs.min.js +1 -1
  455. package/icons/sortamountdown/index.esm.js +6 -11
  456. package/icons/sortamountdown/index.esm.min.js +1 -1
  457. package/icons/sortamountdown/index.js +6 -11
  458. package/icons/sortamountdown/index.min.js +1 -1
  459. package/icons/sortamountupalt/index.cjs.js +6 -11
  460. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  461. package/icons/sortamountupalt/index.esm.js +6 -11
  462. package/icons/sortamountupalt/index.esm.min.js +1 -1
  463. package/icons/sortamountupalt/index.js +6 -11
  464. package/icons/sortamountupalt/index.min.js +1 -1
  465. package/icons/spinner/index.cjs.js +6 -11
  466. package/icons/spinner/index.cjs.min.js +1 -1
  467. package/icons/spinner/index.esm.js +6 -11
  468. package/icons/spinner/index.esm.min.js +1 -1
  469. package/icons/spinner/index.js +6 -11
  470. package/icons/spinner/index.min.js +1 -1
  471. package/icons/star/index.cjs.js +6 -11
  472. package/icons/star/index.cjs.min.js +1 -1
  473. package/icons/star/index.esm.js +6 -11
  474. package/icons/star/index.esm.min.js +1 -1
  475. package/icons/star/index.js +6 -11
  476. package/icons/star/index.min.js +1 -1
  477. package/icons/starfill/index.cjs.js +6 -11
  478. package/icons/starfill/index.cjs.min.js +1 -1
  479. package/icons/starfill/index.esm.js +6 -11
  480. package/icons/starfill/index.esm.min.js +1 -1
  481. package/icons/starfill/index.js +6 -11
  482. package/icons/starfill/index.min.js +1 -1
  483. package/icons/thlarge/index.cjs.js +6 -11
  484. package/icons/thlarge/index.cjs.min.js +1 -1
  485. package/icons/thlarge/index.esm.js +6 -11
  486. package/icons/thlarge/index.esm.min.js +1 -1
  487. package/icons/thlarge/index.js +6 -11
  488. package/icons/thlarge/index.min.js +1 -1
  489. package/icons/times/index.cjs.js +6 -11
  490. package/icons/times/index.cjs.min.js +1 -1
  491. package/icons/times/index.esm.js +6 -11
  492. package/icons/times/index.esm.min.js +1 -1
  493. package/icons/times/index.js +6 -11
  494. package/icons/times/index.min.js +1 -1
  495. package/icons/timescircle/index.cjs.js +6 -11
  496. package/icons/timescircle/index.cjs.min.js +1 -1
  497. package/icons/timescircle/index.esm.js +6 -11
  498. package/icons/timescircle/index.esm.min.js +1 -1
  499. package/icons/timescircle/index.js +6 -11
  500. package/icons/timescircle/index.min.js +1 -1
  501. package/icons/trash/index.cjs.js +6 -11
  502. package/icons/trash/index.cjs.min.js +1 -1
  503. package/icons/trash/index.esm.js +6 -11
  504. package/icons/trash/index.esm.min.js +1 -1
  505. package/icons/trash/index.js +6 -11
  506. package/icons/trash/index.min.js +1 -1
  507. package/icons/undo/index.cjs.js +6 -11
  508. package/icons/undo/index.cjs.min.js +1 -1
  509. package/icons/undo/index.esm.js +6 -11
  510. package/icons/undo/index.esm.min.js +1 -1
  511. package/icons/undo/index.js +6 -11
  512. package/icons/undo/index.min.js +1 -1
  513. package/icons/upload/index.cjs.js +6 -11
  514. package/icons/upload/index.cjs.min.js +1 -1
  515. package/icons/upload/index.esm.js +6 -11
  516. package/icons/upload/index.esm.min.js +1 -1
  517. package/icons/upload/index.js +6 -11
  518. package/icons/upload/index.min.js +1 -1
  519. package/icons/windowmaximize/index.cjs.js +6 -11
  520. package/icons/windowmaximize/index.cjs.min.js +1 -1
  521. package/icons/windowmaximize/index.esm.js +6 -11
  522. package/icons/windowmaximize/index.esm.min.js +1 -1
  523. package/icons/windowmaximize/index.js +6 -11
  524. package/icons/windowmaximize/index.min.js +1 -1
  525. package/icons/windowminimize/index.cjs.js +6 -11
  526. package/icons/windowminimize/index.cjs.min.js +1 -1
  527. package/icons/windowminimize/index.esm.js +6 -11
  528. package/icons/windowminimize/index.esm.min.js +1 -1
  529. package/icons/windowminimize/index.js +6 -11
  530. package/icons/windowminimize/index.min.js +1 -1
  531. package/image/image.cjs.js +37 -49
  532. package/image/image.cjs.min.js +1 -1
  533. package/image/image.d.ts +4 -4
  534. package/image/image.esm.js +37 -49
  535. package/image/image.esm.min.js +1 -1
  536. package/image/image.js +37 -49
  537. package/image/image.min.js +1 -1
  538. package/inplace/inplace.cjs.js +14 -15
  539. package/inplace/inplace.cjs.min.js +1 -1
  540. package/inplace/inplace.d.ts +2 -2
  541. package/inplace/inplace.esm.js +14 -15
  542. package/inplace/inplace.esm.min.js +1 -1
  543. package/inplace/inplace.js +14 -15
  544. package/inplace/inplace.min.js +1 -1
  545. package/inputicon/inputicon.cjs.js +23 -34
  546. package/inputicon/inputicon.cjs.min.js +1 -1
  547. package/inputicon/inputicon.esm.js +23 -34
  548. package/inputicon/inputicon.esm.min.js +1 -1
  549. package/inputicon/inputicon.js +23 -34
  550. package/inputicon/inputicon.min.js +1 -1
  551. package/inputmask/inputmask.cjs.js +10 -13
  552. package/inputmask/inputmask.cjs.min.js +1 -1
  553. package/inputmask/inputmask.d.ts +2 -2
  554. package/inputmask/inputmask.esm.js +10 -13
  555. package/inputmask/inputmask.esm.min.js +1 -1
  556. package/inputmask/inputmask.js +10 -13
  557. package/inputmask/inputmask.min.js +1 -1
  558. package/inputnumber/inputnumber.cjs.js +50 -56
  559. package/inputnumber/inputnumber.cjs.min.js +1 -1
  560. package/inputnumber/inputnumber.d.ts +4 -4
  561. package/inputnumber/inputnumber.esm.js +50 -56
  562. package/inputnumber/inputnumber.esm.min.js +1 -1
  563. package/inputnumber/inputnumber.js +50 -56
  564. package/inputnumber/inputnumber.min.js +1 -1
  565. package/inputotp/inputotp.cjs.js +64 -56
  566. package/inputotp/inputotp.cjs.min.js +1 -1
  567. package/inputotp/inputotp.esm.js +64 -56
  568. package/inputotp/inputotp.esm.min.js +1 -1
  569. package/inputotp/inputotp.js +64 -56
  570. package/inputotp/inputotp.min.js +1 -1
  571. package/inputswitch/inputswitch.cjs.js +23 -34
  572. package/inputswitch/inputswitch.cjs.min.js +1 -1
  573. package/inputswitch/inputswitch.d.ts +4 -4
  574. package/inputswitch/inputswitch.esm.js +23 -34
  575. package/inputswitch/inputswitch.esm.min.js +1 -1
  576. package/inputswitch/inputswitch.js +23 -34
  577. package/inputswitch/inputswitch.min.js +1 -1
  578. package/inputtext/inputtext.cjs.js +25 -35
  579. package/inputtext/inputtext.cjs.min.js +1 -1
  580. package/inputtext/inputtext.esm.js +25 -35
  581. package/inputtext/inputtext.esm.min.js +1 -1
  582. package/inputtext/inputtext.js +25 -35
  583. package/inputtext/inputtext.min.js +1 -1
  584. package/inputtextarea/inputtextarea.cjs.js +23 -34
  585. package/inputtextarea/inputtextarea.cjs.min.js +1 -1
  586. package/inputtextarea/inputtextarea.esm.js +23 -34
  587. package/inputtextarea/inputtextarea.esm.min.js +1 -1
  588. package/inputtextarea/inputtextarea.js +23 -34
  589. package/inputtextarea/inputtextarea.min.js +1 -1
  590. package/keyfilter/keyfilter.cjs.js +16 -17
  591. package/keyfilter/keyfilter.cjs.min.js +1 -1
  592. package/keyfilter/keyfilter.esm.js +16 -17
  593. package/keyfilter/keyfilter.esm.min.js +1 -1
  594. package/keyfilter/keyfilter.js +16 -17
  595. package/keyfilter/keyfilter.min.js +1 -1
  596. package/knob/knob.cjs.js +15 -16
  597. package/knob/knob.cjs.min.js +1 -1
  598. package/knob/knob.d.ts +2 -2
  599. package/knob/knob.esm.js +15 -16
  600. package/knob/knob.esm.min.js +1 -1
  601. package/knob/knob.js +15 -16
  602. package/knob/knob.min.js +1 -1
  603. package/listbox/listbox.cjs.js +46 -58
  604. package/listbox/listbox.cjs.min.js +1 -1
  605. package/listbox/listbox.d.ts +4 -4
  606. package/listbox/listbox.esm.js +46 -58
  607. package/listbox/listbox.esm.min.js +1 -1
  608. package/listbox/listbox.js +46 -58
  609. package/listbox/listbox.min.js +1 -1
  610. package/megamenu/megamenu.cjs.js +41 -57
  611. package/megamenu/megamenu.cjs.min.js +1 -1
  612. package/megamenu/megamenu.d.ts +2 -2
  613. package/megamenu/megamenu.esm.js +41 -57
  614. package/megamenu/megamenu.esm.min.js +1 -1
  615. package/megamenu/megamenu.js +41 -57
  616. package/megamenu/megamenu.min.js +1 -1
  617. package/mention/mention.cjs.js +43 -55
  618. package/mention/mention.cjs.min.js +1 -1
  619. package/mention/mention.d.ts +6 -6
  620. package/mention/mention.esm.js +43 -55
  621. package/mention/mention.esm.min.js +1 -1
  622. package/mention/mention.js +43 -55
  623. package/mention/mention.min.js +1 -1
  624. package/menu/menu.cjs.js +52 -55
  625. package/menu/menu.cjs.min.js +1 -1
  626. package/menu/menu.d.ts +2 -2
  627. package/menu/menu.esm.js +52 -55
  628. package/menu/menu.esm.min.js +1 -1
  629. package/menu/menu.js +52 -55
  630. package/menu/menu.min.js +1 -1
  631. package/menubar/menubar.cjs.js +39 -51
  632. package/menubar/menubar.cjs.min.js +1 -1
  633. package/menubar/menubar.d.ts +8 -8
  634. package/menubar/menubar.esm.js +39 -51
  635. package/menubar/menubar.esm.min.js +1 -1
  636. package/menubar/menubar.js +39 -51
  637. package/menubar/menubar.min.js +1 -1
  638. package/message/message.cjs.js +23 -34
  639. package/message/message.cjs.min.js +1 -1
  640. package/message/message.d.ts +2 -2
  641. package/message/message.esm.js +23 -34
  642. package/message/message.esm.min.js +1 -1
  643. package/message/message.js +23 -34
  644. package/message/message.min.js +1 -1
  645. package/messages/messages.cjs.js +43 -55
  646. package/messages/messages.cjs.min.js +1 -1
  647. package/messages/messages.d.ts +2 -2
  648. package/messages/messages.esm.js +43 -55
  649. package/messages/messages.esm.min.js +1 -1
  650. package/messages/messages.js +43 -55
  651. package/messages/messages.min.js +1 -1
  652. package/metergroup/metergroup.cjs.js +23 -34
  653. package/metergroup/metergroup.cjs.min.js +1 -1
  654. package/metergroup/metergroup.esm.js +23 -34
  655. package/metergroup/metergroup.esm.min.js +1 -1
  656. package/metergroup/metergroup.js +23 -34
  657. package/metergroup/metergroup.min.js +1 -1
  658. package/multiselect/multiselect.cjs.js +67 -85
  659. package/multiselect/multiselect.cjs.min.js +1 -1
  660. package/multiselect/multiselect.d.ts +6 -6
  661. package/multiselect/multiselect.esm.js +67 -85
  662. package/multiselect/multiselect.esm.min.js +1 -1
  663. package/multiselect/multiselect.js +67 -85
  664. package/multiselect/multiselect.min.js +1 -1
  665. package/multistatecheckbox/multistatecheckbox.cjs.js +37 -49
  666. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  667. package/multistatecheckbox/multistatecheckbox.d.ts +2 -2
  668. package/multistatecheckbox/multistatecheckbox.esm.js +37 -49
  669. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  670. package/multistatecheckbox/multistatecheckbox.js +37 -49
  671. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  672. package/orderlist/orderlist.cjs.js +67 -78
  673. package/orderlist/orderlist.cjs.min.js +1 -1
  674. package/orderlist/orderlist.d.ts +2 -2
  675. package/orderlist/orderlist.esm.js +67 -78
  676. package/orderlist/orderlist.esm.min.js +1 -1
  677. package/orderlist/orderlist.js +67 -78
  678. package/orderlist/orderlist.min.js +1 -1
  679. package/organizationchart/organizationchart.cjs.js +43 -55
  680. package/organizationchart/organizationchart.cjs.min.js +1 -1
  681. package/organizationchart/organizationchart.d.ts +2 -2
  682. package/organizationchart/organizationchart.esm.js +43 -55
  683. package/organizationchart/organizationchart.esm.min.js +1 -1
  684. package/organizationchart/organizationchart.js +43 -55
  685. package/organizationchart/organizationchart.min.js +1 -1
  686. package/overlaypanel/overlaypanel.cjs.js +37 -49
  687. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  688. package/overlaypanel/overlaypanel.d.ts +2 -2
  689. package/overlaypanel/overlaypanel.esm.js +37 -49
  690. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  691. package/overlaypanel/overlaypanel.js +37 -49
  692. package/overlaypanel/overlaypanel.min.js +1 -1
  693. package/package.json +1 -1
  694. package/paginator/paginator.cjs.js +44 -58
  695. package/paginator/paginator.cjs.min.js +1 -1
  696. package/paginator/paginator.d.ts +2 -2
  697. package/paginator/paginator.esm.js +44 -58
  698. package/paginator/paginator.esm.min.js +1 -1
  699. package/paginator/paginator.js +44 -58
  700. package/paginator/paginator.min.js +1 -1
  701. package/panel/panel.cjs.js +20 -26
  702. package/panel/panel.cjs.min.js +1 -1
  703. package/panel/panel.d.ts +4 -4
  704. package/panel/panel.esm.js +20 -26
  705. package/panel/panel.esm.min.js +1 -1
  706. package/panel/panel.js +20 -26
  707. package/panel/panel.min.js +1 -1
  708. package/panelmenu/panelmenu.cjs.js +37 -49
  709. package/panelmenu/panelmenu.cjs.min.js +1 -1
  710. package/panelmenu/panelmenu.d.ts +2 -2
  711. package/panelmenu/panelmenu.esm.js +37 -49
  712. package/panelmenu/panelmenu.esm.min.js +1 -1
  713. package/panelmenu/panelmenu.js +37 -49
  714. package/panelmenu/panelmenu.min.js +1 -1
  715. package/passthrough/index.cjs.js +17 -23
  716. package/passthrough/index.cjs.min.js +1 -1
  717. package/passthrough/index.esm.js +17 -23
  718. package/passthrough/index.esm.min.js +1 -1
  719. package/passthrough/index.js +17 -23
  720. package/passthrough/index.min.js +1 -1
  721. package/passthrough/tailwind/index.cjs.js +14 -15
  722. package/passthrough/tailwind/index.cjs.min.js +1 -1
  723. package/passthrough/tailwind/index.esm.js +14 -15
  724. package/passthrough/tailwind/index.esm.min.js +1 -1
  725. package/passthrough/tailwind/index.js +14 -15
  726. package/passthrough/tailwind/index.min.js +1 -1
  727. package/password/password.cjs.js +37 -49
  728. package/password/password.cjs.min.js +1 -1
  729. package/password/password.d.ts +6 -6
  730. package/password/password.esm.js +37 -49
  731. package/password/password.esm.min.js +1 -1
  732. package/password/password.js +37 -49
  733. package/password/password.min.js +1 -1
  734. package/picklist/picklist.cjs.js +53 -67
  735. package/picklist/picklist.cjs.min.js +1 -1
  736. package/picklist/picklist.d.ts +2 -2
  737. package/picklist/picklist.esm.js +53 -67
  738. package/picklist/picklist.esm.min.js +1 -1
  739. package/picklist/picklist.js +53 -67
  740. package/picklist/picklist.min.js +1 -1
  741. package/portal/portal.cjs.js +14 -15
  742. package/portal/portal.cjs.min.js +1 -1
  743. package/portal/portal.esm.js +14 -15
  744. package/portal/portal.esm.min.js +1 -1
  745. package/portal/portal.js +14 -15
  746. package/portal/portal.min.js +1 -1
  747. package/primereact.all.cjs.js +690 -565
  748. package/primereact.all.cjs.min.js +1 -1
  749. package/primereact.all.esm.js +690 -565
  750. package/primereact.all.esm.min.js +1 -1
  751. package/primereact.all.js +690 -565
  752. package/primereact.all.min.js +1 -1
  753. package/progressbar/progressbar.cjs.js +23 -34
  754. package/progressbar/progressbar.cjs.min.js +1 -1
  755. package/progressbar/progressbar.d.ts +2 -2
  756. package/progressbar/progressbar.esm.js +23 -34
  757. package/progressbar/progressbar.esm.min.js +1 -1
  758. package/progressbar/progressbar.js +23 -34
  759. package/progressbar/progressbar.min.js +1 -1
  760. package/progressspinner/progressspinner.d.ts +2 -2
  761. package/radiobutton/radiobutton.cjs.js +23 -34
  762. package/radiobutton/radiobutton.cjs.min.js +1 -1
  763. package/radiobutton/radiobutton.d.ts +4 -4
  764. package/radiobutton/radiobutton.esm.js +23 -34
  765. package/radiobutton/radiobutton.esm.min.js +1 -1
  766. package/radiobutton/radiobutton.js +23 -34
  767. package/radiobutton/radiobutton.min.js +1 -1
  768. package/rating/rating.cjs.js +37 -49
  769. package/rating/rating.cjs.min.js +1 -1
  770. package/rating/rating.d.ts +2 -2
  771. package/rating/rating.esm.js +37 -49
  772. package/rating/rating.esm.min.js +1 -1
  773. package/rating/rating.js +37 -49
  774. package/rating/rating.min.js +1 -1
  775. package/ripple/ripple.cjs.js +37 -49
  776. package/ripple/ripple.cjs.min.js +1 -1
  777. package/ripple/ripple.esm.js +37 -49
  778. package/ripple/ripple.esm.min.js +1 -1
  779. package/ripple/ripple.js +37 -49
  780. package/ripple/ripple.min.js +1 -1
  781. package/scrollpanel/scrollpanel.cjs.js +20 -26
  782. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  783. package/scrollpanel/scrollpanel.d.ts +8 -8
  784. package/scrollpanel/scrollpanel.esm.js +20 -26
  785. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  786. package/scrollpanel/scrollpanel.js +20 -26
  787. package/scrollpanel/scrollpanel.min.js +1 -1
  788. package/scrolltop/scrolltop.cjs.js +37 -49
  789. package/scrolltop/scrolltop.cjs.min.js +1 -1
  790. package/scrolltop/scrolltop.d.ts +2 -2
  791. package/scrolltop/scrolltop.esm.js +37 -49
  792. package/scrolltop/scrolltop.esm.min.js +1 -1
  793. package/scrolltop/scrolltop.js +37 -49
  794. package/scrolltop/scrolltop.min.js +1 -1
  795. package/selectbutton/selectbutton.cjs.js +26 -32
  796. package/selectbutton/selectbutton.cjs.min.js +1 -1
  797. package/selectbutton/selectbutton.d.ts +2 -2
  798. package/selectbutton/selectbutton.esm.js +26 -32
  799. package/selectbutton/selectbutton.esm.min.js +1 -1
  800. package/selectbutton/selectbutton.js +26 -32
  801. package/selectbutton/selectbutton.min.js +1 -1
  802. package/sidebar/sidebar.cjs.js +38 -50
  803. package/sidebar/sidebar.cjs.min.js +1 -1
  804. package/sidebar/sidebar.d.ts +6 -6
  805. package/sidebar/sidebar.esm.js +38 -50
  806. package/sidebar/sidebar.esm.min.js +1 -1
  807. package/sidebar/sidebar.js +38 -50
  808. package/sidebar/sidebar.min.js +1 -1
  809. package/skeleton/skeleton.cjs.js +17 -23
  810. package/skeleton/skeleton.cjs.min.js +1 -1
  811. package/skeleton/skeleton.d.ts +2 -2
  812. package/skeleton/skeleton.esm.js +17 -23
  813. package/skeleton/skeleton.esm.min.js +1 -1
  814. package/skeleton/skeleton.js +17 -23
  815. package/skeleton/skeleton.min.js +1 -1
  816. package/slidemenu/slidemenu.cjs.js +37 -49
  817. package/slidemenu/slidemenu.cjs.min.js +1 -1
  818. package/slidemenu/slidemenu.d.ts +2 -2
  819. package/slidemenu/slidemenu.esm.js +37 -49
  820. package/slidemenu/slidemenu.esm.min.js +1 -1
  821. package/slidemenu/slidemenu.js +37 -49
  822. package/slidemenu/slidemenu.min.js +1 -1
  823. package/slider/slider.cjs.js +43 -55
  824. package/slider/slider.cjs.min.js +1 -1
  825. package/slider/slider.d.ts +3 -2
  826. package/slider/slider.esm.js +43 -55
  827. package/slider/slider.esm.min.js +1 -1
  828. package/slider/slider.js +43 -55
  829. package/slider/slider.min.js +1 -1
  830. package/speeddial/speeddial.cjs.js +44 -56
  831. package/speeddial/speeddial.cjs.min.js +1 -1
  832. package/speeddial/speeddial.d.ts +2 -2
  833. package/speeddial/speeddial.esm.js +44 -56
  834. package/speeddial/speeddial.esm.min.js +1 -1
  835. package/speeddial/speeddial.js +44 -56
  836. package/speeddial/speeddial.min.js +1 -1
  837. package/splitbutton/splitbutton.cjs.js +37 -49
  838. package/splitbutton/splitbutton.cjs.min.js +1 -1
  839. package/splitbutton/splitbutton.d.ts +2 -2
  840. package/splitbutton/splitbutton.esm.js +37 -49
  841. package/splitbutton/splitbutton.esm.min.js +1 -1
  842. package/splitbutton/splitbutton.js +37 -49
  843. package/splitbutton/splitbutton.min.js +1 -1
  844. package/splitter/splitter.cjs.js +43 -55
  845. package/splitter/splitter.cjs.min.js +1 -1
  846. package/splitter/splitter.d.ts +2 -2
  847. package/splitter/splitter.esm.js +43 -55
  848. package/splitter/splitter.esm.min.js +1 -1
  849. package/splitter/splitter.js +43 -55
  850. package/splitter/splitter.min.js +1 -1
  851. package/stepper/stepper.cjs.js +39 -50
  852. package/stepper/stepper.cjs.min.js +1 -1
  853. package/stepper/stepper.d.ts +33 -14
  854. package/stepper/stepper.esm.js +39 -50
  855. package/stepper/stepper.esm.min.js +1 -1
  856. package/stepper/stepper.js +39 -50
  857. package/stepper/stepper.min.js +1 -1
  858. package/steps/steps.cjs.js +37 -49
  859. package/steps/steps.cjs.min.js +1 -1
  860. package/steps/steps.d.ts +2 -2
  861. package/steps/steps.esm.js +37 -49
  862. package/steps/steps.esm.min.js +1 -1
  863. package/steps/steps.js +37 -49
  864. package/steps/steps.min.js +1 -1
  865. package/styleclass/styleclass.cjs.js +14 -15
  866. package/styleclass/styleclass.cjs.min.js +1 -1
  867. package/styleclass/styleclass.d.ts +4 -4
  868. package/styleclass/styleclass.esm.js +14 -15
  869. package/styleclass/styleclass.esm.min.js +1 -1
  870. package/styleclass/styleclass.js +14 -15
  871. package/styleclass/styleclass.min.js +1 -1
  872. package/tabmenu/tabmenu.cjs.js +37 -49
  873. package/tabmenu/tabmenu.cjs.min.js +1 -1
  874. package/tabmenu/tabmenu.d.ts +2 -2
  875. package/tabmenu/tabmenu.esm.js +37 -49
  876. package/tabmenu/tabmenu.esm.min.js +1 -1
  877. package/tabmenu/tabmenu.js +37 -49
  878. package/tabmenu/tabmenu.min.js +1 -1
  879. package/tabview/tabview.cjs.js +38 -45
  880. package/tabview/tabview.cjs.min.js +1 -1
  881. package/tabview/tabview.d.ts +2 -2
  882. package/tabview/tabview.esm.js +38 -45
  883. package/tabview/tabview.esm.min.js +1 -1
  884. package/tabview/tabview.js +38 -45
  885. package/tabview/tabview.min.js +1 -1
  886. package/tag/tag.cjs.js +17 -23
  887. package/tag/tag.cjs.min.js +1 -1
  888. package/tag/tag.d.ts +2 -2
  889. package/tag/tag.esm.js +17 -23
  890. package/tag/tag.esm.min.js +1 -1
  891. package/tag/tag.js +17 -23
  892. package/tag/tag.min.js +1 -1
  893. package/terminal/terminal.cjs.js +20 -21
  894. package/terminal/terminal.cjs.min.js +1 -1
  895. package/terminal/terminal.d.ts +2 -2
  896. package/terminal/terminal.esm.js +20 -21
  897. package/terminal/terminal.esm.min.js +1 -1
  898. package/terminal/terminal.js +20 -21
  899. package/terminal/terminal.min.js +1 -1
  900. package/tieredmenu/tieredmenu.cjs.js +37 -49
  901. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  902. package/tieredmenu/tieredmenu.d.ts +2 -2
  903. package/tieredmenu/tieredmenu.esm.js +37 -49
  904. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  905. package/tieredmenu/tieredmenu.js +37 -49
  906. package/tieredmenu/tieredmenu.min.js +1 -1
  907. package/timeline/timeline.cjs.js +23 -34
  908. package/timeline/timeline.cjs.min.js +1 -1
  909. package/timeline/timeline.d.ts +4 -4
  910. package/timeline/timeline.esm.js +23 -34
  911. package/timeline/timeline.esm.min.js +1 -1
  912. package/timeline/timeline.js +23 -34
  913. package/timeline/timeline.min.js +1 -1
  914. package/toast/toast.cjs.js +43 -55
  915. package/toast/toast.cjs.min.js +1 -1
  916. package/toast/toast.d.ts +2 -2
  917. package/toast/toast.esm.js +43 -55
  918. package/toast/toast.esm.min.js +1 -1
  919. package/toast/toast.js +43 -55
  920. package/toast/toast.min.js +1 -1
  921. package/togglebutton/togglebutton.cjs.js +25 -36
  922. package/togglebutton/togglebutton.cjs.min.js +1 -1
  923. package/togglebutton/togglebutton.d.ts +2 -2
  924. package/togglebutton/togglebutton.esm.js +25 -36
  925. package/togglebutton/togglebutton.esm.min.js +1 -1
  926. package/togglebutton/togglebutton.js +25 -36
  927. package/togglebutton/togglebutton.min.js +1 -1
  928. package/toolbar/toolbar.d.ts +2 -2
  929. package/tooltip/tooltip.cjs.js +51 -62
  930. package/tooltip/tooltip.cjs.min.js +1 -1
  931. package/tooltip/tooltip.d.ts +3 -3
  932. package/tooltip/tooltip.esm.js +51 -62
  933. package/tooltip/tooltip.esm.min.js +1 -1
  934. package/tooltip/tooltip.js +51 -62
  935. package/tooltip/tooltip.min.js +1 -1
  936. package/tree/tree.cjs.js +55 -64
  937. package/tree/tree.cjs.min.js +1 -1
  938. package/tree/tree.d.ts +2 -2
  939. package/tree/tree.esm.js +55 -64
  940. package/tree/tree.esm.min.js +1 -1
  941. package/tree/tree.js +55 -64
  942. package/tree/tree.min.js +1 -1
  943. package/treeselect/treeselect.cjs.js +48 -65
  944. package/treeselect/treeselect.cjs.min.js +1 -1
  945. package/treeselect/treeselect.d.ts +2 -2
  946. package/treeselect/treeselect.esm.js +48 -65
  947. package/treeselect/treeselect.esm.min.js +1 -1
  948. package/treeselect/treeselect.js +48 -65
  949. package/treeselect/treeselect.min.js +1 -1
  950. package/treetable/treetable.cjs.js +97 -99
  951. package/treetable/treetable.cjs.min.js +1 -1
  952. package/treetable/treetable.d.ts +2 -2
  953. package/treetable/treetable.esm.js +97 -99
  954. package/treetable/treetable.esm.min.js +1 -1
  955. package/treetable/treetable.js +97 -99
  956. package/treetable/treetable.min.js +1 -1
  957. package/tristatecheckbox/tristatecheckbox.cjs.js +37 -49
  958. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  959. package/tristatecheckbox/tristatecheckbox.d.ts +2 -2
  960. package/tristatecheckbox/tristatecheckbox.esm.js +37 -49
  961. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  962. package/tristatecheckbox/tristatecheckbox.js +37 -49
  963. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  964. package/utils/utils.cjs.js +81 -80
  965. package/utils/utils.cjs.min.js +1 -1
  966. package/utils/utils.esm.js +81 -80
  967. package/utils/utils.esm.min.js +1 -1
  968. package/utils/utils.js +81 -80
  969. package/utils/utils.min.js +1 -1
  970. package/virtualscroller/virtualscroller.cjs.js +39 -51
  971. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  972. package/virtualscroller/virtualscroller.esm.js +39 -51
  973. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  974. package/virtualscroller/virtualscroller.js +39 -51
  975. package/virtualscroller/virtualscroller.min.js +1 -1
  976. package/web-types.json +29 -11
@@ -34,18 +34,13 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
34
34
  var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
35
35
 
36
36
  function _extends() {
37
- _extends = Object.assign ? Object.assign.bind() : function (target) {
38
- for (var i = 1; i < arguments.length; i++) {
39
- var source = arguments[i];
40
- for (var key in source) {
41
- if (Object.prototype.hasOwnProperty.call(source, key)) {
42
- target[key] = source[key];
43
- }
44
- }
37
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
38
+ for (var e = 1; e < arguments.length; e++) {
39
+ var t = arguments[e];
40
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
45
41
  }
46
- return target;
47
- };
48
- return _extends.apply(this, arguments);
42
+ return n;
43
+ }, _extends.apply(null, arguments);
49
44
  }
50
45
 
51
46
  function _typeof(o) {
@@ -58,70 +53,63 @@ function _typeof(o) {
58
53
  }, _typeof(o);
59
54
  }
60
55
 
61
- function _toPrimitive(input, hint) {
62
- if (_typeof(input) !== "object" || input === null) return input;
63
- var prim = input[Symbol.toPrimitive];
64
- if (prim !== undefined) {
65
- var res = prim.call(input, hint || "default");
66
- if (_typeof(res) !== "object") return res;
56
+ function toPrimitive(t, r) {
57
+ if ("object" != _typeof(t) || !t) return t;
58
+ var e = t[Symbol.toPrimitive];
59
+ if (void 0 !== e) {
60
+ var i = e.call(t, r || "default");
61
+ if ("object" != _typeof(i)) return i;
67
62
  throw new TypeError("@@toPrimitive must return a primitive value.");
68
63
  }
69
- return (hint === "string" ? String : Number)(input);
64
+ return ("string" === r ? String : Number)(t);
70
65
  }
71
66
 
72
- function _toPropertyKey(arg) {
73
- var key = _toPrimitive(arg, "string");
74
- return _typeof(key) === "symbol" ? key : String(key);
67
+ function toPropertyKey(t) {
68
+ var i = toPrimitive(t, "string");
69
+ return "symbol" == _typeof(i) ? i : i + "";
75
70
  }
76
71
 
77
- function _defineProperty(obj, key, value) {
78
- key = _toPropertyKey(key);
79
- if (key in obj) {
80
- Object.defineProperty(obj, key, {
81
- value: value,
82
- enumerable: true,
83
- configurable: true,
84
- writable: true
85
- });
86
- } else {
87
- obj[key] = value;
88
- }
89
- return obj;
72
+ function _defineProperty(e, r, t) {
73
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
74
+ value: t,
75
+ enumerable: !0,
76
+ configurable: !0,
77
+ writable: !0
78
+ }) : e[r] = t, e;
90
79
  }
91
80
 
92
- function _arrayLikeToArray(arr, len) {
93
- if (len == null || len > arr.length) len = arr.length;
94
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
95
- return arr2;
81
+ function _arrayLikeToArray(r, a) {
82
+ (null == a || a > r.length) && (a = r.length);
83
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
84
+ return n;
96
85
  }
97
86
 
98
- function _arrayWithoutHoles(arr) {
99
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
87
+ function _arrayWithoutHoles(r) {
88
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
100
89
  }
101
90
 
102
- function _iterableToArray(iter) {
103
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
91
+ function _iterableToArray(r) {
92
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
104
93
  }
105
94
 
106
- function _unsupportedIterableToArray(o, minLen) {
107
- if (!o) return;
108
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
109
- var n = Object.prototype.toString.call(o).slice(8, -1);
110
- if (n === "Object" && o.constructor) n = o.constructor.name;
111
- if (n === "Map" || n === "Set") return Array.from(o);
112
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
95
+ function _unsupportedIterableToArray(r, a) {
96
+ if (r) {
97
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
98
+ var t = {}.toString.call(r).slice(8, -1);
99
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
100
+ }
113
101
  }
114
102
 
115
103
  function _nonIterableSpread() {
116
104
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
117
105
  }
118
106
 
119
- function _toConsumableArray(arr) {
120
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
107
+ function _toConsumableArray(r) {
108
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
121
109
  }
122
110
 
123
- function _arrayWithHoles(arr) {
124
- if (Array.isArray(arr)) return arr;
111
+ function _arrayWithHoles(r) {
112
+ if (Array.isArray(r)) return r;
125
113
  }
126
114
 
127
115
  function _iterableToArrayLimit(r, l) {
@@ -156,8 +144,8 @@ function _nonIterableRest() {
156
144
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
157
145
  }
158
146
 
159
- function _slicedToArray(arr, i) {
160
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
147
+ function _slicedToArray(r, e) {
148
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
161
149
  }
162
150
 
163
151
  var classes = {
@@ -427,9 +415,8 @@ var Tooltip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
427
415
  var hide = function hide(e) {
428
416
  if (e && e.type === 'blur') setMultipleFocusEvents(false);
429
417
  clearTimeouts();
430
- var success = true;
431
418
  if (visibleState) {
432
- success = sendCallback(props.onBeforeHide, {
419
+ var success = sendCallback(props.onBeforeHide, {
433
420
  originalEvent: e,
434
421
  target: currentTargetRef.current
435
422
  });
@@ -440,16 +427,15 @@ var Tooltip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
440
427
  }
441
428
  utils.ZIndexUtils.clear(elementRef.current);
442
429
  utils.DomHandler.removeClass(elementRef.current, 'p-tooltip-active');
430
+ setVisibleState(false);
443
431
  sendCallback(props.onHide, {
444
432
  originalEvent: e,
445
433
  target: currentTargetRef.current
446
434
  });
447
435
  });
448
436
  }
449
- }
450
-
451
- // handles the case when visibleState change from mouseenter was queued and mouseleave handler was called earlier than queued re-render
452
- if (success) {
437
+ } else if (!props.onBeforeHide && !getDelay('hideDelay')) {
438
+ // handles the case when visibleState change from mouseenter was queued and mouseleave handler was called earlier than queued re-render
453
439
  setVisibleState(false);
454
440
  }
455
441
  };
@@ -562,9 +548,12 @@ var Tooltip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.f
562
548
  });
563
549
  }
564
550
  };
551
+ var getDelay = function getDelay(delayProp) {
552
+ return getTargetOption(currentTargetRef.current, delayProp.toLowerCase()) || props[delayProp];
553
+ };
565
554
  var applyDelay = function applyDelay(delayProp, callback) {
566
555
  clearTimeouts();
567
- var delay = getTargetOption(currentTargetRef.current, delayProp.toLowerCase()) || props[delayProp];
556
+ var delay = getDelay(delayProp);
568
557
  delay ? timeouts.current["".concat(delayProp)] = setTimeout(function () {
569
558
  return callback();
570
559
  }, delay) : callback();
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("primereact/api"),r=require("primereact/componentbase"),n=require("primereact/hooks"),o=require("primereact/portal"),i=require("primereact/utils");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function l(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var u=l(t),c=a(e);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s.apply(this,arguments)}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e){if("object"!==p(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function d(t){var e=f(t,"string");return"symbol"===p(e)?e:String(e)}function m(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function v(t){if(Array.isArray(t))return h(t)}function y(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function b(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(t){if(Array.isArray(t))return t}function E(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function O(){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 x(t,e){return w(t)||E(t,e)||b(t,e)||O()}var S=r.ComponentBase.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(t){var e=t.classNameState;return i.classNames("p-tooltip p-component",m({},"p-tooltip-".concat(t.positionState),!0),e)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(t){var e=t.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:!e.right&&(e.right||e.left||e.top||e.bottom)?e.top||e.bottom?"50%":null:"0",right:e.left?"0":null}}}}});function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var D=u.memo(u.forwardRef((function(t,a){var l=n.useMergeProps(),p=u.useContext(e.PrimeReactContext),f=S.getProps(t,p),d=x(u.useState(!1),2),m=d[0],h=d[1],w=x(u.useState(f.position||"right"),2),E=w[0],O=w[1],T=x(u.useState(""),2),D=T[0],H=T[1],P=x(u.useState(!1),2),I=P[0],k=P[1],N=m&&f.closeOnEscape,C=n.useDisplayOrder("tooltip",N),A={props:f,state:{visible:m,position:E,className:D},context:{right:"right"===E,left:"left"===E,top:"top"===E,bottom:"bottom"===E}},L=S.setMetaData(A),R=L.ptm,U=L.cx,M=L.sx;r.useHandleStyle(S.css.styles,L.isUnstyled,{name:"tooltip"}),n.useGlobalOnEscapeKey({callback:function(){st()},when:N,priority:[n.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP,C]});var Z=u.useRef(null),_=u.useRef(null),W=u.useRef(null),q=u.useRef(null),B=u.useRef(!0),z=u.useRef({}),F=u.useRef(null),Y=x(n.useResizeListener({listener:function(t){!i.DomHandler.isTouchDevice()&&st(t)}}),2),G=Y[0],K=Y[1],X=x(n.useOverlayScrollListener({target:W.current,listener:function(t){st(t)},when:m}),2),$=X[0],J=X[1],Q=function(t){return rt(t,"mousetrack")||f.mouseTrack},V=function(t){return"true"===rt(t,"disabled")||nt(t,"disabled")||f.disabled},tt=function(t){return rt(t,"showondisabled")||f.showOnDisabled},et=function(){return rt(W.current,"autohide")||f.autoHide},rt=function(t,e){return nt(t,"data-pr-".concat(e))?t.getAttribute("data-pr-".concat(e)):null},nt=function(t,e){return t&&t.hasAttribute(e)},ot=function(t){var e=[rt(t,"showevent")||f.showEvent],r=[rt(t,"hideevent")||f.hideEvent];if(Q(t))e=["mousemove"],r=["mouseleave"];else{var n=rt(t,"event")||f.event;"focus"===n&&(e=["focus"],r=["blur"]),"both"===n&&(e=["focus","mouseenter"],r=I?["blur"]:["mouseleave","blur"])}return{showEvents:e,hideEvents:r}},it=function(t){return rt(t,"position")||E},at=function(t){return{top:rt(t,"mousetracktop")||f.mouseTrackTop,left:rt(t,"mousetrackleft")||f.mouseTrackLeft}},lt=function(t,e){if(_.current){var r=rt(t,"tooltip")||f.content;r?(_.current.innerHTML="",_.current.appendChild(document.createTextNode(r)),e()):f.children&&e()}},ut=function(t){lt(W.current,(function(){var e=F.current,r=e.pageX,n=e.pageY;f.autoZIndex&&!i.ZIndexUtils.get(Z.current)&&i.ZIndexUtils.set("tooltip",Z.current,p&&p.autoZIndex||c.default.autoZIndex,f.baseZIndex||p&&p.zIndex.tooltip||c.default.zIndex.tooltip),Z.current.style.left="",Z.current.style.top="",et()&&(Z.current.style.pointerEvents="none");var o=Q(W.current)||"mouse"===t;(o&&!q.current||o)&&(q.current={width:i.DomHandler.getOuterWidth(Z.current),height:i.DomHandler.getOuterHeight(Z.current)}),pt(W.current,{x:r,y:n},t)}))},ct=function(t){t.type&&"focus"===t.type&&k(!0),W.current=t.currentTarget;var e,r=V(W.current);(e=tt(W.current)&&r?W.current.firstChild:W.current,!(f.content||rt(e,"tooltip")||f.children))||r||(F.current=t,m?vt("updateDelay",ut):yt(f.onBeforeShow,{originalEvent:t,target:W.current})&&vt("showDelay",(function(){h(!0),yt(f.onShow,{originalEvent:t,target:W.current})})))},st=function(t){t&&"blur"===t.type&&k(!1),bt();var e=!0;m&&(e=yt(f.onBeforeHide,{originalEvent:t,target:W.current}))&&vt("hideDelay",(function(){(et()||!1!==B.current)&&(i.ZIndexUtils.clear(Z.current),i.DomHandler.removeClass(Z.current,"p-tooltip-active"),yt(f.onHide,{originalEvent:t,target:W.current}))})),e&&h(!1)},pt=function(t,e,r){var n=0,o=0,a=r||E;if((Q(t)||"mouse"==a)&&e){var l={width:i.DomHandler.getOuterWidth(Z.current),height:i.DomHandler.getOuterHeight(Z.current)};n=e.x,o=e.y;var u=at(t),c=u.top,s=u.left;switch(a){case"left":n-=l.width+s,o-=l.height/2-c;break;case"right":case"mouse":n+=s,o-=l.height/2-c;break;case"top":n-=l.width/2-s,o-=l.height+c;break;case"bottom":n-=l.width/2-s,o+=c}n<=0||q.current.width>l.width?(Z.current.style.left="0px",Z.current.style.right=window.innerWidth-l.width-n+"px"):(Z.current.style.right="",Z.current.style.left=n+"px"),Z.current.style.top=o+"px",i.DomHandler.addClass(Z.current,"p-tooltip-active")}else{var p=i.DomHandler.findCollisionPosition(a),d=rt(t,"my")||f.my||p.my,m=rt(t,"at")||f.at||p.at;Z.current.style.padding="0px",i.DomHandler.flipfitCollision(Z.current,t,d,m,(function(t){var e=t.at,r=e.x,n=f.at?"center"!==r&&r!==t.my.x?r:e.y:t.at["".concat(p.axis)];Z.current.style.padding="",O(n),ft(n),i.DomHandler.addClass(Z.current,"p-tooltip-active")}))}},ft=function(t){if(Z.current){var e=getComputedStyle(Z.current);"left"===t?Z.current.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===t&&(Z.current.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}},dt=function(t){et()||(B.current=!0,st(t))},mt=function(t){if(t){var e=ot(t),r=e.showEvents,n=e.hideEvents,o=gt(t);r.forEach((function(t){return null==o?void 0:o.addEventListener(t,ct)})),n.forEach((function(t){return null==o?void 0:o.addEventListener(t,st)}))}},ht=function(t){if(t){var e=ot(t),r=e.showEvents,n=e.hideEvents,o=gt(t);r.forEach((function(t){return null==o?void 0:o.removeEventListener(t,ct)})),n.forEach((function(t){return null==o?void 0:o.removeEventListener(t,st)}))}},vt=function(t,e){bt();var r=rt(W.current,t.toLowerCase())||f[t];r?z.current["".concat(t)]=setTimeout((function(){return e()}),r):e()},yt=function(t){if(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},bt=function(){Object.values(z.current).forEach((function(t){return clearTimeout(t)}))},gt=function(t){if(t){if(tt(t)){if(!t.hasWrapper){var e=document.createElement("div");return"INPUT"===t.nodeName?i.DomHandler.addMultipleClasses(e,"p-tooltip-target-wrapper p-inputwrapper"):i.DomHandler.addClass(e,"p-tooltip-target-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t),t.hasWrapper=!0,e}return t.parentElement}var r;return t.hasWrapper&&((r=t.parentElement).replaceWith.apply(r,v(n=t.parentElement.childNodes)||y(n)||b(n)||g()),delete t.hasWrapper),t}var n;return null},wt=function(t){Ot(t),Et(t)},Et=function(t){xt(t||f.target,mt)},Ot=function(t){xt(t||f.target,ht)},xt=function(t,e){if(t=i.ObjectUtils.getRefElement(t))if(i.DomHandler.isElement(t))e(t);else{var r=function(t){i.DomHandler.find(document,t).forEach((function(t){e(t)}))};t instanceof Array?t.forEach((function(t){r(t)})):r(t)}};n.useMountEffect((function(){m&&W.current&&V(W.current)&&st()})),n.useUpdateEffect((function(){return Et(),function(){Ot()}}),[ct,st,f.target]),n.useUpdateEffect((function(){if(m){var t=it(W.current),e=rt(W.current,"classname");O(t),H(e),ut(t),G(),$()}else O(f.position||"right"),H(""),W.current=null,q.current=null,B.current=!0;return function(){K(),J()}}),[m]),n.useUpdateEffect((function(){var t=it(W.current);m&&"mouse"!==t&&vt("updateDelay",(function(){lt(W.current,(function(){pt(W.current)}))}))}),[f.content]),n.useUnmountEffect((function(){st(),i.ZIndexUtils.clear(Z.current)})),u.useImperativeHandle(a,(function(){return{props:f,updateTargetEvents:wt,loadTargetEvents:Et,unloadTargetEvents:Ot,show:ct,hide:st,getElement:function(){return Z.current},getTarget:function(){return W.current}}}));var St,Tt,jt,Dt,Ht;if(m){var Pt=(St=W.current,Tt=!(f.content||rt(St,"tooltip")),jt=l({id:f.id,className:i.classNames(f.className,U("root",{positionState:E,classNameState:D})),style:f.style,role:"tooltip","aria-hidden":m,onMouseEnter:function(t){et()||(B.current=!1)},onMouseLeave:function(t){return dt(t)}},S.getOtherProps(f),R("root")),Dt=l({className:U("arrow"),style:M("arrow",j({},A))},R("arrow")),Ht=l({className:U("text")},R("text")),u.createElement("div",s({ref:Z},jt),u.createElement("div",Dt),u.createElement("div",s({ref:_},Ht),Tt&&f.children)));return u.createElement(o.Portal,{element:Pt,appendTo:f.appendTo,visible:!0})}return null})));D.displayName="Tooltip",exports.Tooltip=D;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),r=require("primereact/componentbase"),n=require("primereact/hooks"),o=require("primereact/portal"),i=require("primereact/utils");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var l=u(e),c=a(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(null,arguments)}function p(e){return p="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},p(e)}function f(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function d(e){var t=f(e,"string");return"symbol"==p(t)?t:t+""}function m(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e){if(Array.isArray(e))return h(e)}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){if(e){if("string"==typeof e)return h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e){if(Array.isArray(e))return e}function E(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}function O(){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 x(e,t){return w(e)||E(e,t)||b(e,t)||O()}var S=r.ComponentBase.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(e){var t=e.classNameState;return i.classNames("p-tooltip p-component",m({},"p-tooltip-".concat(e.positionState),!0),t)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(e){var t=e.context;return{top:t.bottom?"0":t.right||t.left||!t.right&&!t.left&&!t.top&&!t.bottom?"50%":null,bottom:t.top?"0":null,left:!t.right&&(t.right||t.left||t.top||t.bottom)?t.top||t.bottom?"50%":null:"0",right:t.left?"0":null}}}}});function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=l.memo(l.forwardRef((function(e,a){var u=n.useMergeProps(),p=l.useContext(t.PrimeReactContext),f=S.getProps(e,p),d=x(l.useState(!1),2),m=d[0],h=d[1],w=x(l.useState(f.position||"right"),2),E=w[0],O=w[1],T=x(l.useState(""),2),j=T[0],H=T[1],P=x(l.useState(!1),2),I=P[0],k=P[1],N=m&&f.closeOnEscape,C=n.useDisplayOrder("tooltip",N),A={props:f,state:{visible:m,position:E,className:j},context:{right:"right"===E,left:"left"===E,top:"top"===E,bottom:"bottom"===E}},L=S.setMetaData(A),R=L.ptm,U=L.cx,M=L.sx;r.useHandleStyle(S.css.styles,L.isUnstyled,{name:"tooltip"}),n.useGlobalOnEscapeKey({callback:function(){se()},when:N,priority:[n.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP,C]});var Z=l.useRef(null),_=l.useRef(null),W=l.useRef(null),B=l.useRef(null),q=l.useRef(!0),z=l.useRef({}),F=l.useRef(null),Y=x(n.useResizeListener({listener:function(e){!i.DomHandler.isTouchDevice()&&se(e)}}),2),G=Y[0],K=Y[1],X=x(n.useOverlayScrollListener({target:W.current,listener:function(e){se(e)},when:m}),2),$=X[0],J=X[1],Q=function(e){return re(e,"mousetrack")||f.mouseTrack},V=function(e){return"true"===re(e,"disabled")||ne(e,"disabled")||f.disabled},ee=function(e){return re(e,"showondisabled")||f.showOnDisabled},te=function(){return re(W.current,"autohide")||f.autoHide},re=function(e,t){return ne(e,"data-pr-".concat(t))?e.getAttribute("data-pr-".concat(t)):null},ne=function(e,t){return e&&e.hasAttribute(t)},oe=function(e){var t=[re(e,"showevent")||f.showEvent],r=[re(e,"hideevent")||f.hideEvent];if(Q(e))t=["mousemove"],r=["mouseleave"];else{var n=re(e,"event")||f.event;"focus"===n&&(t=["focus"],r=["blur"]),"both"===n&&(t=["focus","mouseenter"],r=I?["blur"]:["mouseleave","blur"])}return{showEvents:t,hideEvents:r}},ie=function(e){return re(e,"position")||E},ae=function(e){return{top:re(e,"mousetracktop")||f.mouseTrackTop,left:re(e,"mousetrackleft")||f.mouseTrackLeft}},ue=function(e,t){if(_.current){var r=re(e,"tooltip")||f.content;r?(_.current.innerHTML="",_.current.appendChild(document.createTextNode(r)),t()):f.children&&t()}},le=function(e){ue(W.current,(function(){var t=F.current,r=t.pageX,n=t.pageY;f.autoZIndex&&!i.ZIndexUtils.get(Z.current)&&i.ZIndexUtils.set("tooltip",Z.current,p&&p.autoZIndex||c.default.autoZIndex,f.baseZIndex||p&&p.zIndex.tooltip||c.default.zIndex.tooltip),Z.current.style.left="",Z.current.style.top="",te()&&(Z.current.style.pointerEvents="none");var o=Q(W.current)||"mouse"===e;(o&&!B.current||o)&&(B.current={width:i.DomHandler.getOuterWidth(Z.current),height:i.DomHandler.getOuterHeight(Z.current)}),pe(W.current,{x:r,y:n},e)}))},ce=function(e){e.type&&"focus"===e.type&&k(!0),W.current=e.currentTarget;var t,r=V(W.current);(t=ee(W.current)&&r?W.current.firstChild:W.current,!(f.content||re(t,"tooltip")||f.children))||r||(F.current=e,m?ye("updateDelay",le):be(f.onBeforeShow,{originalEvent:e,target:W.current})&&ye("showDelay",(function(){h(!0),be(f.onShow,{originalEvent:e,target:W.current})})))},se=function(e){(e&&"blur"===e.type&&k(!1),ge(),m)?be(f.onBeforeHide,{originalEvent:e,target:W.current})&&ye("hideDelay",(function(){(te()||!1!==q.current)&&(i.ZIndexUtils.clear(Z.current),i.DomHandler.removeClass(Z.current,"p-tooltip-active"),h(!1),be(f.onHide,{originalEvent:e,target:W.current}))})):f.onBeforeHide||ve("hideDelay")||h(!1)},pe=function(e,t,r){var n=0,o=0,a=r||E;if((Q(e)||"mouse"==a)&&t){var u={width:i.DomHandler.getOuterWidth(Z.current),height:i.DomHandler.getOuterHeight(Z.current)};n=t.x,o=t.y;var l=ae(e),c=l.top,s=l.left;switch(a){case"left":n-=u.width+s,o-=u.height/2-c;break;case"right":case"mouse":n+=s,o-=u.height/2-c;break;case"top":n-=u.width/2-s,o-=u.height+c;break;case"bottom":n-=u.width/2-s,o+=c}n<=0||B.current.width>u.width?(Z.current.style.left="0px",Z.current.style.right=window.innerWidth-u.width-n+"px"):(Z.current.style.right="",Z.current.style.left=n+"px"),Z.current.style.top=o+"px",i.DomHandler.addClass(Z.current,"p-tooltip-active")}else{var p=i.DomHandler.findCollisionPosition(a),d=re(e,"my")||f.my||p.my,m=re(e,"at")||f.at||p.at;Z.current.style.padding="0px",i.DomHandler.flipfitCollision(Z.current,e,d,m,(function(e){var t=e.at,r=t.x,n=f.at?"center"!==r&&r!==e.my.x?r:t.y:e.at["".concat(p.axis)];Z.current.style.padding="",O(n),fe(n),i.DomHandler.addClass(Z.current,"p-tooltip-active")}))}},fe=function(e){if(Z.current){var t=getComputedStyle(Z.current);"left"===e?Z.current.style.left=parseFloat(t.left)-2*parseFloat(t.paddingLeft)+"px":"top"===e&&(Z.current.style.top=parseFloat(t.top)-2*parseFloat(t.paddingTop)+"px")}},de=function(e){te()||(q.current=!0,se(e))},me=function(e){if(e){var t=oe(e),r=t.showEvents,n=t.hideEvents,o=we(e);r.forEach((function(e){return null==o?void 0:o.addEventListener(e,ce)})),n.forEach((function(e){return null==o?void 0:o.addEventListener(e,se)}))}},he=function(e){if(e){var t=oe(e),r=t.showEvents,n=t.hideEvents,o=we(e);r.forEach((function(e){return null==o?void 0:o.removeEventListener(e,ce)})),n.forEach((function(e){return null==o?void 0:o.removeEventListener(e,se)}))}},ve=function(e){return re(W.current,e.toLowerCase())||f[e]},ye=function(e,t){ge();var r=ve(e);r?z.current["".concat(e)]=setTimeout((function(){return t()}),r):t()},be=function(e){if(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=e.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},ge=function(){Object.values(z.current).forEach((function(e){return clearTimeout(e)}))},we=function(e){if(e){if(ee(e)){if(!e.hasWrapper){var t=document.createElement("div");return"INPUT"===e.nodeName?i.DomHandler.addMultipleClasses(t,"p-tooltip-target-wrapper p-inputwrapper"):i.DomHandler.addClass(t,"p-tooltip-target-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e),e.hasWrapper=!0,t}return e.parentElement}var r;return e.hasWrapper&&((r=e.parentElement).replaceWith.apply(r,v(n=e.parentElement.childNodes)||y(n)||b(n)||g()),delete e.hasWrapper),e}var n;return null},Ee=function(e){xe(e),Oe(e)},Oe=function(e){Se(e||f.target,me)},xe=function(e){Se(e||f.target,he)},Se=function(e,t){if(e=i.ObjectUtils.getRefElement(e))if(i.DomHandler.isElement(e))t(e);else{var r=function(e){i.DomHandler.find(document,e).forEach((function(e){t(e)}))};e instanceof Array?e.forEach((function(e){r(e)})):r(e)}};n.useMountEffect((function(){m&&W.current&&V(W.current)&&se()})),n.useUpdateEffect((function(){return Oe(),function(){xe()}}),[ce,se,f.target]),n.useUpdateEffect((function(){if(m){var e=ie(W.current),t=re(W.current,"classname");O(e),H(t),le(e),G(),$()}else O(f.position||"right"),H(""),W.current=null,B.current=null,q.current=!0;return function(){K(),J()}}),[m]),n.useUpdateEffect((function(){var e=ie(W.current);m&&"mouse"!==e&&ye("updateDelay",(function(){ue(W.current,(function(){pe(W.current)}))}))}),[f.content]),n.useUnmountEffect((function(){se(),i.ZIndexUtils.clear(Z.current)})),l.useImperativeHandle(a,(function(){return{props:f,updateTargetEvents:Ee,loadTargetEvents:Oe,unloadTargetEvents:xe,show:ce,hide:se,getElement:function(){return Z.current},getTarget:function(){return W.current}}}));var Te,De,je,He,Pe;if(m){var Ie=(Te=W.current,De=!(f.content||re(Te,"tooltip")),je=u({id:f.id,className:i.classNames(f.className,U("root",{positionState:E,classNameState:j})),style:f.style,role:"tooltip","aria-hidden":m,onMouseEnter:function(e){te()||(q.current=!1)},onMouseLeave:function(e){return de(e)}},S.getOtherProps(f),R("root")),He=u({className:U("arrow"),style:M("arrow",D({},A))},R("arrow")),Pe=u({className:U("text")},R("text")),l.createElement("div",s({ref:Z},je),l.createElement("div",He),l.createElement("div",s({ref:_},Pe),De&&f.children)));return l.createElement(o.Portal,{element:Ie,appendTo:f.appendTo,visible:!0})}return null})));j.displayName="Tooltip",exports.Tooltip=j;
@@ -158,12 +158,12 @@ export declare class Tooltip extends React.Component<TooltipProps, any> {
158
158
  public unloadTargetEvents(target?: string | string[] | HTMLElement | React.RefObject<HTMLElement> | undefined): void;
159
159
  /**
160
160
  * Used to get container element.
161
- * @return {HTMLElement} Container element
161
+ * @return {HTMLElement | null} Container element
162
162
  */
163
- public getElement(): HTMLElement;
163
+ public getElement(): HTMLElement | null;
164
164
  /**
165
165
  * Used to get target element.
166
- * @return {HTMLElement} Target element
166
+ * @return {HTMLElement | null} Target element
167
167
  */
168
168
  public getTarget(): HTMLElement | null;
169
169
  /**
@@ -7,18 +7,13 @@ import { Portal } from 'primereact/portal';
7
7
  import { classNames, DomHandler, ZIndexUtils, ObjectUtils } from 'primereact/utils';
8
8
 
9
9
  function _extends() {
10
- _extends = Object.assign ? Object.assign.bind() : function (target) {
11
- for (var i = 1; i < arguments.length; i++) {
12
- var source = arguments[i];
13
- for (var key in source) {
14
- if (Object.prototype.hasOwnProperty.call(source, key)) {
15
- target[key] = source[key];
16
- }
17
- }
10
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
11
+ for (var e = 1; e < arguments.length; e++) {
12
+ var t = arguments[e];
13
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
18
14
  }
19
- return target;
20
- };
21
- return _extends.apply(this, arguments);
15
+ return n;
16
+ }, _extends.apply(null, arguments);
22
17
  }
23
18
 
24
19
  function _typeof(o) {
@@ -31,70 +26,63 @@ function _typeof(o) {
31
26
  }, _typeof(o);
32
27
  }
33
28
 
34
- function _toPrimitive(input, hint) {
35
- if (_typeof(input) !== "object" || input === null) return input;
36
- var prim = input[Symbol.toPrimitive];
37
- if (prim !== undefined) {
38
- var res = prim.call(input, hint || "default");
39
- if (_typeof(res) !== "object") return res;
29
+ function toPrimitive(t, r) {
30
+ if ("object" != _typeof(t) || !t) return t;
31
+ var e = t[Symbol.toPrimitive];
32
+ if (void 0 !== e) {
33
+ var i = e.call(t, r || "default");
34
+ if ("object" != _typeof(i)) return i;
40
35
  throw new TypeError("@@toPrimitive must return a primitive value.");
41
36
  }
42
- return (hint === "string" ? String : Number)(input);
37
+ return ("string" === r ? String : Number)(t);
43
38
  }
44
39
 
45
- function _toPropertyKey(arg) {
46
- var key = _toPrimitive(arg, "string");
47
- return _typeof(key) === "symbol" ? key : String(key);
40
+ function toPropertyKey(t) {
41
+ var i = toPrimitive(t, "string");
42
+ return "symbol" == _typeof(i) ? i : i + "";
48
43
  }
49
44
 
50
- function _defineProperty(obj, key, value) {
51
- key = _toPropertyKey(key);
52
- if (key in obj) {
53
- Object.defineProperty(obj, key, {
54
- value: value,
55
- enumerable: true,
56
- configurable: true,
57
- writable: true
58
- });
59
- } else {
60
- obj[key] = value;
61
- }
62
- return obj;
45
+ function _defineProperty(e, r, t) {
46
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
47
+ value: t,
48
+ enumerable: !0,
49
+ configurable: !0,
50
+ writable: !0
51
+ }) : e[r] = t, e;
63
52
  }
64
53
 
65
- function _arrayLikeToArray(arr, len) {
66
- if (len == null || len > arr.length) len = arr.length;
67
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
68
- return arr2;
54
+ function _arrayLikeToArray(r, a) {
55
+ (null == a || a > r.length) && (a = r.length);
56
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
57
+ return n;
69
58
  }
70
59
 
71
- function _arrayWithoutHoles(arr) {
72
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
60
+ function _arrayWithoutHoles(r) {
61
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
73
62
  }
74
63
 
75
- function _iterableToArray(iter) {
76
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
64
+ function _iterableToArray(r) {
65
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
77
66
  }
78
67
 
79
- function _unsupportedIterableToArray(o, minLen) {
80
- if (!o) return;
81
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
82
- var n = Object.prototype.toString.call(o).slice(8, -1);
83
- if (n === "Object" && o.constructor) n = o.constructor.name;
84
- if (n === "Map" || n === "Set") return Array.from(o);
85
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
68
+ function _unsupportedIterableToArray(r, a) {
69
+ if (r) {
70
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
71
+ var t = {}.toString.call(r).slice(8, -1);
72
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
73
+ }
86
74
  }
87
75
 
88
76
  function _nonIterableSpread() {
89
77
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
90
78
  }
91
79
 
92
- function _toConsumableArray(arr) {
93
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
80
+ function _toConsumableArray(r) {
81
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
94
82
  }
95
83
 
96
- function _arrayWithHoles(arr) {
97
- if (Array.isArray(arr)) return arr;
84
+ function _arrayWithHoles(r) {
85
+ if (Array.isArray(r)) return r;
98
86
  }
99
87
 
100
88
  function _iterableToArrayLimit(r, l) {
@@ -129,8 +117,8 @@ function _nonIterableRest() {
129
117
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
130
118
  }
131
119
 
132
- function _slicedToArray(arr, i) {
133
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
120
+ function _slicedToArray(r, e) {
121
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
134
122
  }
135
123
 
136
124
  var classes = {
@@ -400,9 +388,8 @@ var Tooltip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
400
388
  var hide = function hide(e) {
401
389
  if (e && e.type === 'blur') setMultipleFocusEvents(false);
402
390
  clearTimeouts();
403
- var success = true;
404
391
  if (visibleState) {
405
- success = sendCallback(props.onBeforeHide, {
392
+ var success = sendCallback(props.onBeforeHide, {
406
393
  originalEvent: e,
407
394
  target: currentTargetRef.current
408
395
  });
@@ -413,16 +400,15 @@ var Tooltip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
413
400
  }
414
401
  ZIndexUtils.clear(elementRef.current);
415
402
  DomHandler.removeClass(elementRef.current, 'p-tooltip-active');
403
+ setVisibleState(false);
416
404
  sendCallback(props.onHide, {
417
405
  originalEvent: e,
418
406
  target: currentTargetRef.current
419
407
  });
420
408
  });
421
409
  }
422
- }
423
-
424
- // handles the case when visibleState change from mouseenter was queued and mouseleave handler was called earlier than queued re-render
425
- if (success) {
410
+ } else if (!props.onBeforeHide && !getDelay('hideDelay')) {
411
+ // handles the case when visibleState change from mouseenter was queued and mouseleave handler was called earlier than queued re-render
426
412
  setVisibleState(false);
427
413
  }
428
414
  };
@@ -535,9 +521,12 @@ var Tooltip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
535
521
  });
536
522
  }
537
523
  };
524
+ var getDelay = function getDelay(delayProp) {
525
+ return getTargetOption(currentTargetRef.current, delayProp.toLowerCase()) || props[delayProp];
526
+ };
538
527
  var applyDelay = function applyDelay(delayProp, callback) {
539
528
  clearTimeouts();
540
- var delay = getTargetOption(currentTargetRef.current, delayProp.toLowerCase()) || props[delayProp];
529
+ var delay = getDelay(delayProp);
541
530
  delay ? timeouts.current["".concat(delayProp)] = setTimeout(function () {
542
531
  return callback();
543
532
  }, delay) : callback();
@@ -1 +1 @@
1
- import*as t from"react";import e,{PrimeReactContext as r}from"primereact/api";import{ComponentBase as n,useHandleStyle as o}from"primereact/componentbase";import{useMergeProps as i,useDisplayOrder as a,useGlobalOnEscapeKey as u,ESC_KEY_HANDLING_PRIORITIES as l,useResizeListener as c,useOverlayScrollListener as p,useMountEffect as s,useUpdateEffect as f,useUnmountEffect as d}from"primereact/hooks";import{Portal as m}from"primereact/portal";import{classNames as h,DomHandler as v,ZIndexUtils as y,ObjectUtils as b}from"primereact/utils";function g(){return g=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},g.apply(this,arguments)}function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function E(t,e){if("object"!==w(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function O(t){var e=E(t,"string");return"symbol"===w(e)?e:String(e)}function x(t,e,r){return(e=O(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function T(t){if(Array.isArray(t))return S(t)}function j(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function P(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(t){if(Array.isArray(t))return t}function D(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(t,e){return I(t)||D(t,e)||P(t,e)||N()}var A=n.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(t){var e=t.classNameState;return h("p-tooltip p-component",x({},"p-tooltip-".concat(t.positionState),!0),e)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(t){var e=t.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:!e.right&&(e.right||e.left||e.top||e.bottom)?e.top||e.bottom?"50%":null:"0",right:e.left?"0":null}}}}});function L(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function H(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach((function(e){x(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var R=t.memo(t.forwardRef((function(n,w){var E=i(),O=t.useContext(r),x=A.getProps(n,O),S=C(t.useState(!1),2),I=S[0],D=S[1],N=C(t.useState(x.position||"right"),2),L=N[0],R=N[1],W=C(t.useState(""),2),M=W[0],Z=W[1],B=C(t.useState(!1),2),F=B[0],U=B[1],z=I&&x.closeOnEscape,Y=a("tooltip",z),_={props:x,state:{visible:I,position:L,className:M},context:{right:"right"===L,left:"left"===L,top:"top"===L,bottom:"bottom"===L}},X=A.setMetaData(_),$=X.ptm,q=X.cx,G=X.sx;o(A.css.styles,X.isUnstyled,{name:"tooltip"}),u({callback:function(){Et()},when:z,priority:[l.TOOLTIP,Y]});var J=t.useRef(null),K=t.useRef(null),Q=t.useRef(null),V=t.useRef(null),tt=t.useRef(!0),et=t.useRef({}),rt=t.useRef(null),nt=C(c({listener:function(t){!v.isTouchDevice()&&Et(t)}}),2),ot=nt[0],it=nt[1],at=C(p({target:Q.current,listener:function(t){Et(t)},when:I}),2),ut=at[0],lt=at[1],ct=function(t){return dt(t,"mousetrack")||x.mouseTrack},pt=function(t){return"true"===dt(t,"disabled")||mt(t,"disabled")||x.disabled},st=function(t){return dt(t,"showondisabled")||x.showOnDisabled},ft=function(){return dt(Q.current,"autohide")||x.autoHide},dt=function(t,e){return mt(t,"data-pr-".concat(e))?t.getAttribute("data-pr-".concat(e)):null},mt=function(t,e){return t&&t.hasAttribute(e)},ht=function(t){var e=[dt(t,"showevent")||x.showEvent],r=[dt(t,"hideevent")||x.hideEvent];if(ct(t))e=["mousemove"],r=["mouseleave"];else{var n=dt(t,"event")||x.event;"focus"===n&&(e=["focus"],r=["blur"]),"both"===n&&(e=["focus","mouseenter"],r=F?["blur"]:["mouseleave","blur"])}return{showEvents:e,hideEvents:r}},vt=function(t){return dt(t,"position")||L},yt=function(t){return{top:dt(t,"mousetracktop")||x.mouseTrackTop,left:dt(t,"mousetrackleft")||x.mouseTrackLeft}},bt=function(t,e){if(K.current){var r=dt(t,"tooltip")||x.content;r?(K.current.innerHTML="",K.current.appendChild(document.createTextNode(r)),e()):x.children&&e()}},gt=function(t){bt(Q.current,(function(){var r=rt.current,n=r.pageX,o=r.pageY;x.autoZIndex&&!y.get(J.current)&&y.set("tooltip",J.current,O&&O.autoZIndex||e.autoZIndex,x.baseZIndex||O&&O.zIndex.tooltip||e.zIndex.tooltip),J.current.style.left="",J.current.style.top="",ft()&&(J.current.style.pointerEvents="none");var i=ct(Q.current)||"mouse"===t;(i&&!V.current||i)&&(V.current={width:v.getOuterWidth(J.current),height:v.getOuterHeight(J.current)}),Ot(Q.current,{x:n,y:o},t)}))},wt=function(t){t.type&&"focus"===t.type&&U(!0),Q.current=t.currentTarget;var e,r=pt(Q.current);(e=st(Q.current)&&r?Q.current.firstChild:Q.current,!(x.content||dt(e,"tooltip")||x.children))||r||(rt.current=t,I?Pt("updateDelay",gt):kt(x.onBeforeShow,{originalEvent:t,target:Q.current})&&Pt("showDelay",(function(){D(!0),kt(x.onShow,{originalEvent:t,target:Q.current})})))},Et=function(t){t&&"blur"===t.type&&U(!1),It();var e=!0;I&&(e=kt(x.onBeforeHide,{originalEvent:t,target:Q.current}))&&Pt("hideDelay",(function(){(ft()||!1!==tt.current)&&(y.clear(J.current),v.removeClass(J.current,"p-tooltip-active"),kt(x.onHide,{originalEvent:t,target:Q.current}))})),e&&D(!1)},Ot=function(t,e,r){var n=0,o=0,i=r||L;if((ct(t)||"mouse"==i)&&e){var a={width:v.getOuterWidth(J.current),height:v.getOuterHeight(J.current)};n=e.x,o=e.y;var u=yt(t),l=u.top,c=u.left;switch(i){case"left":n-=a.width+c,o-=a.height/2-l;break;case"right":case"mouse":n+=c,o-=a.height/2-l;break;case"top":n-=a.width/2-c,o-=a.height+l;break;case"bottom":n-=a.width/2-c,o+=l}n<=0||V.current.width>a.width?(J.current.style.left="0px",J.current.style.right=window.innerWidth-a.width-n+"px"):(J.current.style.right="",J.current.style.left=n+"px"),J.current.style.top=o+"px",v.addClass(J.current,"p-tooltip-active")}else{var p=v.findCollisionPosition(i),s=dt(t,"my")||x.my||p.my,f=dt(t,"at")||x.at||p.at;J.current.style.padding="0px",v.flipfitCollision(J.current,t,s,f,(function(t){var e=t.at,r=e.x,n=x.at?"center"!==r&&r!==t.my.x?r:e.y:t.at["".concat(p.axis)];J.current.style.padding="",R(n),xt(n),v.addClass(J.current,"p-tooltip-active")}))}},xt=function(t){if(J.current){var e=getComputedStyle(J.current);"left"===t?J.current.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===t&&(J.current.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}},St=function(t){ft()||(tt.current=!0,Et(t))},Tt=function(t){if(t){var e=ht(t),r=e.showEvents,n=e.hideEvents,o=Dt(t);r.forEach((function(t){return null==o?void 0:o.addEventListener(t,wt)})),n.forEach((function(t){return null==o?void 0:o.addEventListener(t,Et)}))}},jt=function(t){if(t){var e=ht(t),r=e.showEvents,n=e.hideEvents,o=Dt(t);r.forEach((function(t){return null==o?void 0:o.removeEventListener(t,wt)})),n.forEach((function(t){return null==o?void 0:o.removeEventListener(t,Et)}))}},Pt=function(t,e){It();var r=dt(Q.current,t.toLowerCase())||x[t];r?et.current["".concat(t)]=setTimeout((function(){return e()}),r):e()},kt=function(t){if(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},It=function(){Object.values(et.current).forEach((function(t){return clearTimeout(t)}))},Dt=function(t){if(t){if(st(t)){if(!t.hasWrapper){var e=document.createElement("div");return"INPUT"===t.nodeName?v.addMultipleClasses(e,"p-tooltip-target-wrapper p-inputwrapper"):v.addClass(e,"p-tooltip-target-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t),t.hasWrapper=!0,e}return t.parentElement}var r;return t.hasWrapper&&((r=t.parentElement).replaceWith.apply(r,T(n=t.parentElement.childNodes)||j(n)||P(n)||k()),delete t.hasWrapper),t}var n;return null},Nt=function(t){At(t),Ct(t)},Ct=function(t){Lt(t||x.target,Tt)},At=function(t){Lt(t||x.target,jt)},Lt=function(t,e){if(t=b.getRefElement(t))if(v.isElement(t))e(t);else{var r=function(t){v.find(document,t).forEach((function(t){e(t)}))};t instanceof Array?t.forEach((function(t){r(t)})):r(t)}};s((function(){I&&Q.current&&pt(Q.current)&&Et()})),f((function(){return Ct(),function(){At()}}),[wt,Et,x.target]),f((function(){if(I){var t=vt(Q.current),e=dt(Q.current,"classname");R(t),Z(e),gt(t),ot(),ut()}else R(x.position||"right"),Z(""),Q.current=null,V.current=null,tt.current=!0;return function(){it(),lt()}}),[I]),f((function(){var t=vt(Q.current);I&&"mouse"!==t&&Pt("updateDelay",(function(){bt(Q.current,(function(){Ot(Q.current)}))}))}),[x.content]),d((function(){Et(),y.clear(J.current)})),t.useImperativeHandle(w,(function(){return{props:x,updateTargetEvents:Nt,loadTargetEvents:Ct,unloadTargetEvents:At,show:wt,hide:Et,getElement:function(){return J.current},getTarget:function(){return Q.current}}}));var Ht,Rt,Wt,Mt,Zt;if(I){var Bt=(Ht=Q.current,Rt=!(x.content||dt(Ht,"tooltip")),Wt=E({id:x.id,className:h(x.className,q("root",{positionState:L,classNameState:M})),style:x.style,role:"tooltip","aria-hidden":I,onMouseEnter:function(t){ft()||(tt.current=!1)},onMouseLeave:function(t){return St(t)}},A.getOtherProps(x),$("root")),Mt=E({className:q("arrow"),style:G("arrow",H({},_))},$("arrow")),Zt=E({className:q("text")},$("text")),t.createElement("div",g({ref:J},Wt),t.createElement("div",Mt),t.createElement("div",g({ref:K},Zt),Rt&&x.children)));return t.createElement(m,{element:Bt,appendTo:x.appendTo,visible:!0})}return null})));R.displayName="Tooltip";export{R as Tooltip};
1
+ import*as t from"react";import e,{PrimeReactContext as r}from"primereact/api";import{ComponentBase as n,useHandleStyle as o}from"primereact/componentbase";import{useMergeProps as i,useDisplayOrder as a,useGlobalOnEscapeKey as u,ESC_KEY_HANDLING_PRIORITIES as l,useResizeListener as c,useOverlayScrollListener as p,useMountEffect as s,useUpdateEffect as f,useUnmountEffect as d}from"primereact/hooks";import{Portal as m}from"primereact/portal";import{classNames as h,DomHandler as v,ZIndexUtils as y,ObjectUtils as b}from"primereact/utils";function g(){return g=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},g.apply(null,arguments)}function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function E(t,e){if("object"!=w(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function x(t){var e=E(t,"string");return"symbol"==w(e)?e:e+""}function O(t,e,r){return(e=x(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function S(t){if(Array.isArray(t))return T(t)}function j(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function P(t,e){if(t){if("string"==typeof t)return T(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(t,e):void 0}}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(t){if(Array.isArray(t))return t}function I(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(t,e){return D(t)||I(t,e)||P(t,e)||N()}var A=n.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(t){var e=t.classNameState;return h("p-tooltip p-component",O({},"p-tooltip-".concat(t.positionState),!0),e)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(t){var e=t.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:!e.right&&(e.right||e.left||e.top||e.bottom)?e.top||e.bottom?"50%":null:"0",right:e.left?"0":null}}}}});function H(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?H(Object(r),!0).forEach((function(e){O(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var R=t.memo(t.forwardRef((function(n,w){var E=i(),x=t.useContext(r),O=A.getProps(n,x),T=C(t.useState(!1),2),D=T[0],I=T[1],N=C(t.useState(O.position||"right"),2),H=N[0],R=N[1],W=C(t.useState(""),2),B=W[0],M=W[1],Z=C(t.useState(!1),2),F=Z[0],U=Z[1],z=D&&O.closeOnEscape,Y=a("tooltip",z),_={props:O,state:{visible:D,position:H,className:B},context:{right:"right"===H,left:"left"===H,top:"top"===H,bottom:"bottom"===H}},X=A.setMetaData(_),$=X.ptm,q=X.cx,G=X.sx;o(A.css.styles,X.isUnstyled,{name:"tooltip"}),u({callback:function(){Et()},when:z,priority:[l.TOOLTIP,Y]});var J=t.useRef(null),K=t.useRef(null),Q=t.useRef(null),V=t.useRef(null),tt=t.useRef(!0),et=t.useRef({}),rt=t.useRef(null),nt=C(c({listener:function(t){!v.isTouchDevice()&&Et(t)}}),2),ot=nt[0],it=nt[1],at=C(p({target:Q.current,listener:function(t){Et(t)},when:D}),2),ut=at[0],lt=at[1],ct=function(t){return dt(t,"mousetrack")||O.mouseTrack},pt=function(t){return"true"===dt(t,"disabled")||mt(t,"disabled")||O.disabled},st=function(t){return dt(t,"showondisabled")||O.showOnDisabled},ft=function(){return dt(Q.current,"autohide")||O.autoHide},dt=function(t,e){return mt(t,"data-pr-".concat(e))?t.getAttribute("data-pr-".concat(e)):null},mt=function(t,e){return t&&t.hasAttribute(e)},ht=function(t){var e=[dt(t,"showevent")||O.showEvent],r=[dt(t,"hideevent")||O.hideEvent];if(ct(t))e=["mousemove"],r=["mouseleave"];else{var n=dt(t,"event")||O.event;"focus"===n&&(e=["focus"],r=["blur"]),"both"===n&&(e=["focus","mouseenter"],r=F?["blur"]:["mouseleave","blur"])}return{showEvents:e,hideEvents:r}},vt=function(t){return dt(t,"position")||H},yt=function(t){return{top:dt(t,"mousetracktop")||O.mouseTrackTop,left:dt(t,"mousetrackleft")||O.mouseTrackLeft}},bt=function(t,e){if(K.current){var r=dt(t,"tooltip")||O.content;r?(K.current.innerHTML="",K.current.appendChild(document.createTextNode(r)),e()):O.children&&e()}},gt=function(t){bt(Q.current,(function(){var r=rt.current,n=r.pageX,o=r.pageY;O.autoZIndex&&!y.get(J.current)&&y.set("tooltip",J.current,x&&x.autoZIndex||e.autoZIndex,O.baseZIndex||x&&x.zIndex.tooltip||e.zIndex.tooltip),J.current.style.left="",J.current.style.top="",ft()&&(J.current.style.pointerEvents="none");var i=ct(Q.current)||"mouse"===t;(i&&!V.current||i)&&(V.current={width:v.getOuterWidth(J.current),height:v.getOuterHeight(J.current)}),xt(Q.current,{x:n,y:o},t)}))},wt=function(t){t.type&&"focus"===t.type&&U(!0),Q.current=t.currentTarget;var e,r=pt(Q.current);(e=st(Q.current)&&r?Q.current.firstChild:Q.current,!(O.content||dt(e,"tooltip")||O.children))||r||(rt.current=t,D?kt("updateDelay",gt):Dt(O.onBeforeShow,{originalEvent:t,target:Q.current})&&kt("showDelay",(function(){I(!0),Dt(O.onShow,{originalEvent:t,target:Q.current})})))},Et=function(t){(t&&"blur"===t.type&&U(!1),It(),D)?Dt(O.onBeforeHide,{originalEvent:t,target:Q.current})&&kt("hideDelay",(function(){(ft()||!1!==tt.current)&&(y.clear(J.current),v.removeClass(J.current,"p-tooltip-active"),I(!1),Dt(O.onHide,{originalEvent:t,target:Q.current}))})):O.onBeforeHide||Pt("hideDelay")||I(!1)},xt=function(t,e,r){var n=0,o=0,i=r||H;if((ct(t)||"mouse"==i)&&e){var a={width:v.getOuterWidth(J.current),height:v.getOuterHeight(J.current)};n=e.x,o=e.y;var u=yt(t),l=u.top,c=u.left;switch(i){case"left":n-=a.width+c,o-=a.height/2-l;break;case"right":case"mouse":n+=c,o-=a.height/2-l;break;case"top":n-=a.width/2-c,o-=a.height+l;break;case"bottom":n-=a.width/2-c,o+=l}n<=0||V.current.width>a.width?(J.current.style.left="0px",J.current.style.right=window.innerWidth-a.width-n+"px"):(J.current.style.right="",J.current.style.left=n+"px"),J.current.style.top=o+"px",v.addClass(J.current,"p-tooltip-active")}else{var p=v.findCollisionPosition(i),s=dt(t,"my")||O.my||p.my,f=dt(t,"at")||O.at||p.at;J.current.style.padding="0px",v.flipfitCollision(J.current,t,s,f,(function(t){var e=t.at,r=e.x,n=O.at?"center"!==r&&r!==t.my.x?r:e.y:t.at["".concat(p.axis)];J.current.style.padding="",R(n),Ot(n),v.addClass(J.current,"p-tooltip-active")}))}},Ot=function(t){if(J.current){var e=getComputedStyle(J.current);"left"===t?J.current.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===t&&(J.current.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}},Tt=function(t){ft()||(tt.current=!0,Et(t))},St=function(t){if(t){var e=ht(t),r=e.showEvents,n=e.hideEvents,o=Nt(t);r.forEach((function(t){return null==o?void 0:o.addEventListener(t,wt)})),n.forEach((function(t){return null==o?void 0:o.addEventListener(t,Et)}))}},jt=function(t){if(t){var e=ht(t),r=e.showEvents,n=e.hideEvents,o=Nt(t);r.forEach((function(t){return null==o?void 0:o.removeEventListener(t,wt)})),n.forEach((function(t){return null==o?void 0:o.removeEventListener(t,Et)}))}},Pt=function(t){return dt(Q.current,t.toLowerCase())||O[t]},kt=function(t,e){It();var r=Pt(t);r?et.current["".concat(t)]=setTimeout((function(){return e()}),r):e()},Dt=function(t){if(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},It=function(){Object.values(et.current).forEach((function(t){return clearTimeout(t)}))},Nt=function(t){if(t){if(st(t)){if(!t.hasWrapper){var e=document.createElement("div");return"INPUT"===t.nodeName?v.addMultipleClasses(e,"p-tooltip-target-wrapper p-inputwrapper"):v.addClass(e,"p-tooltip-target-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t),t.hasWrapper=!0,e}return t.parentElement}var r;return t.hasWrapper&&((r=t.parentElement).replaceWith.apply(r,S(n=t.parentElement.childNodes)||j(n)||P(n)||k()),delete t.hasWrapper),t}var n;return null},Ct=function(t){Ht(t),At(t)},At=function(t){Lt(t||O.target,St)},Ht=function(t){Lt(t||O.target,jt)},Lt=function(t,e){if(t=b.getRefElement(t))if(v.isElement(t))e(t);else{var r=function(t){v.find(document,t).forEach((function(t){e(t)}))};t instanceof Array?t.forEach((function(t){r(t)})):r(t)}};s((function(){D&&Q.current&&pt(Q.current)&&Et()})),f((function(){return At(),function(){Ht()}}),[wt,Et,O.target]),f((function(){if(D){var t=vt(Q.current),e=dt(Q.current,"classname");R(t),M(e),gt(t),ot(),ut()}else R(O.position||"right"),M(""),Q.current=null,V.current=null,tt.current=!0;return function(){it(),lt()}}),[D]),f((function(){var t=vt(Q.current);D&&"mouse"!==t&&kt("updateDelay",(function(){bt(Q.current,(function(){xt(Q.current)}))}))}),[O.content]),d((function(){Et(),y.clear(J.current)})),t.useImperativeHandle(w,(function(){return{props:O,updateTargetEvents:Ct,loadTargetEvents:At,unloadTargetEvents:Ht,show:wt,hide:Et,getElement:function(){return J.current},getTarget:function(){return Q.current}}}));var Rt,Wt,Bt,Mt,Zt;if(D){var Ft=(Rt=Q.current,Wt=!(O.content||dt(Rt,"tooltip")),Bt=E({id:O.id,className:h(O.className,q("root",{positionState:H,classNameState:B})),style:O.style,role:"tooltip","aria-hidden":D,onMouseEnter:function(t){ft()||(tt.current=!1)},onMouseLeave:function(t){return Tt(t)}},A.getOtherProps(O),$("root")),Mt=E({className:q("arrow"),style:G("arrow",L({},_))},$("arrow")),Zt=E({className:q("text")},$("text")),t.createElement("div",g({ref:J},Bt),t.createElement("div",Mt),t.createElement("div",g({ref:K},Zt),Wt&&O.children)));return t.createElement(m,{element:Ft,appendTo:O.appendTo,visible:!0})}return null})));R.displayName="Tooltip";export{R as Tooltip};