primereact 10.9.3 → 10.9.5

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 (964) 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 +44 -59
  9. package/api/api.cjs.min.js +1 -1
  10. package/api/api.esm.js +44 -59
  11. package/api/api.esm.min.js +1 -1
  12. package/api/api.js +44 -59
  13. package/api/api.min.js +1 -1
  14. package/autocomplete/autocomplete.cjs.js +56 -56
  15. package/autocomplete/autocomplete.cjs.min.js +1 -1
  16. package/autocomplete/autocomplete.d.ts +27 -25
  17. package/autocomplete/autocomplete.esm.js +57 -57
  18. package/autocomplete/autocomplete.esm.min.js +1 -1
  19. package/autocomplete/autocomplete.js +56 -56
  20. package/autocomplete/autocomplete.min.js +1 -1
  21. package/avatar/avatar.cjs.js +37 -49
  22. package/avatar/avatar.cjs.min.js +1 -1
  23. package/avatar/avatar.d.ts +2 -2
  24. package/avatar/avatar.esm.js +37 -49
  25. package/avatar/avatar.esm.min.js +1 -1
  26. package/avatar/avatar.js +37 -49
  27. package/avatar/avatar.min.js +1 -1
  28. package/avatargroup/avatargroup.d.ts +2 -2
  29. package/badge/badge.cjs.js +17 -23
  30. package/badge/badge.cjs.min.js +1 -1
  31. package/badge/badge.d.ts +2 -2
  32. package/badge/badge.esm.js +17 -23
  33. package/badge/badge.esm.min.js +1 -1
  34. package/badge/badge.js +17 -23
  35. package/badge/badge.min.js +1 -1
  36. package/blockui/blockui.cjs.js +37 -49
  37. package/blockui/blockui.cjs.min.js +1 -1
  38. package/blockui/blockui.d.ts +2 -2
  39. package/blockui/blockui.esm.js +37 -49
  40. package/blockui/blockui.esm.min.js +1 -1
  41. package/blockui/blockui.js +37 -49
  42. package/blockui/blockui.min.js +1 -1
  43. package/breadcrumb/breadcrumb.cjs.js +39 -50
  44. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  45. package/breadcrumb/breadcrumb.d.ts +2 -2
  46. package/breadcrumb/breadcrumb.esm.js +39 -50
  47. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  48. package/breadcrumb/breadcrumb.js +39 -50
  49. package/breadcrumb/breadcrumb.min.js +1 -1
  50. package/button/button.cjs.js +23 -34
  51. package/button/button.cjs.min.js +1 -1
  52. package/button/button.esm.js +23 -34
  53. package/button/button.esm.min.js +1 -1
  54. package/button/button.js +23 -34
  55. package/button/button.min.js +1 -1
  56. package/calendar/calendar.cjs.js +56 -60
  57. package/calendar/calendar.cjs.min.js +1 -1
  58. package/calendar/calendar.d.ts +6 -6
  59. package/calendar/calendar.esm.js +57 -61
  60. package/calendar/calendar.esm.min.js +1 -1
  61. package/calendar/calendar.js +56 -60
  62. package/calendar/calendar.min.js +1 -1
  63. package/carousel/carousel.cjs.js +43 -55
  64. package/carousel/carousel.cjs.min.js +1 -1
  65. package/carousel/carousel.d.ts +2 -2
  66. package/carousel/carousel.esm.js +43 -55
  67. package/carousel/carousel.esm.min.js +1 -1
  68. package/carousel/carousel.js +43 -55
  69. package/carousel/carousel.min.js +1 -1
  70. package/cascadeselect/cascadeselect.cjs.js +49 -54
  71. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  72. package/cascadeselect/cascadeselect.d.ts +17 -8
  73. package/cascadeselect/cascadeselect.esm.js +49 -54
  74. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  75. package/cascadeselect/cascadeselect.js +49 -54
  76. package/cascadeselect/cascadeselect.min.js +1 -1
  77. package/chart/chart.d.ts +2 -2
  78. package/checkbox/checkbox.cjs.js +38 -50
  79. package/checkbox/checkbox.cjs.min.js +1 -1
  80. package/checkbox/checkbox.d.ts +4 -4
  81. package/checkbox/checkbox.esm.js +38 -50
  82. package/checkbox/checkbox.esm.min.js +1 -1
  83. package/checkbox/checkbox.js +38 -50
  84. package/checkbox/checkbox.min.js +1 -1
  85. package/chip/chip.cjs.js +52 -51
  86. package/chip/chip.cjs.min.js +1 -1
  87. package/chip/chip.d.ts +2 -2
  88. package/chip/chip.esm.js +54 -53
  89. package/chip/chip.esm.min.js +1 -1
  90. package/chip/chip.js +52 -51
  91. package/chip/chip.min.js +1 -1
  92. package/chips/chips.cjs.js +44 -56
  93. package/chips/chips.cjs.min.js +1 -1
  94. package/chips/chips.d.ts +2 -2
  95. package/chips/chips.esm.js +44 -56
  96. package/chips/chips.esm.min.js +1 -1
  97. package/chips/chips.js +44 -56
  98. package/chips/chips.min.js +1 -1
  99. package/colorpicker/colorpicker.cjs.js +47 -51
  100. package/colorpicker/colorpicker.cjs.min.js +1 -1
  101. package/colorpicker/colorpicker.d.ts +6 -6
  102. package/colorpicker/colorpicker.esm.js +47 -51
  103. package/colorpicker/colorpicker.esm.min.js +1 -1
  104. package/colorpicker/colorpicker.js +47 -51
  105. package/colorpicker/colorpicker.min.js +1 -1
  106. package/componentbase/componentbase.cjs.js +33 -40
  107. package/componentbase/componentbase.cjs.min.js +1 -1
  108. package/componentbase/componentbase.esm.js +33 -40
  109. package/componentbase/componentbase.esm.min.js +1 -1
  110. package/componentbase/componentbase.js +33 -40
  111. package/componentbase/componentbase.min.js +1 -1
  112. package/confirmdialog/confirmdialog.cjs.js +37 -49
  113. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  114. package/confirmdialog/confirmdialog.esm.js +37 -49
  115. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  116. package/confirmdialog/confirmdialog.js +37 -49
  117. package/confirmdialog/confirmdialog.min.js +1 -1
  118. package/confirmpopup/confirmpopup.cjs.js +47 -51
  119. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  120. package/confirmpopup/confirmpopup.esm.js +47 -51
  121. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  122. package/confirmpopup/confirmpopup.js +47 -51
  123. package/confirmpopup/confirmpopup.min.js +1 -1
  124. package/contextmenu/contextmenu.cjs.js +37 -49
  125. package/contextmenu/contextmenu.cjs.min.js +1 -1
  126. package/contextmenu/contextmenu.d.ts +2 -2
  127. package/contextmenu/contextmenu.esm.js +37 -49
  128. package/contextmenu/contextmenu.esm.min.js +1 -1
  129. package/contextmenu/contextmenu.js +37 -49
  130. package/contextmenu/contextmenu.min.js +1 -1
  131. package/core/core.js +1151 -1449
  132. package/core/core.min.js +65 -65
  133. package/csstransition/csstransition.cjs.js +17 -23
  134. package/csstransition/csstransition.cjs.min.js +1 -1
  135. package/csstransition/csstransition.esm.js +17 -23
  136. package/csstransition/csstransition.esm.min.js +1 -1
  137. package/csstransition/csstransition.js +17 -23
  138. package/csstransition/csstransition.min.js +1 -1
  139. package/datascroller/datascroller.cjs.js +26 -32
  140. package/datascroller/datascroller.cjs.min.js +1 -1
  141. package/datascroller/datascroller.d.ts +2 -2
  142. package/datascroller/datascroller.esm.js +26 -32
  143. package/datascroller/datascroller.esm.min.js +1 -1
  144. package/datascroller/datascroller.js +26 -32
  145. package/datascroller/datascroller.min.js +1 -1
  146. package/datatable/datatable.cjs.js +411 -358
  147. package/datatable/datatable.cjs.min.js +1 -1
  148. package/datatable/datatable.d.ts +6 -5
  149. package/datatable/datatable.esm.js +412 -359
  150. package/datatable/datatable.esm.min.js +1 -1
  151. package/datatable/datatable.js +411 -358
  152. package/datatable/datatable.min.js +1 -1
  153. package/dataview/dataview.cjs.js +46 -58
  154. package/dataview/dataview.cjs.min.js +1 -1
  155. package/dataview/dataview.d.ts +2 -2
  156. package/dataview/dataview.esm.js +46 -58
  157. package/dataview/dataview.esm.min.js +1 -1
  158. package/dataview/dataview.js +46 -58
  159. package/dataview/dataview.min.js +1 -1
  160. package/deferredcontent/deferredcontent.cjs.js +14 -15
  161. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  162. package/deferredcontent/deferredcontent.d.ts +2 -2
  163. package/deferredcontent/deferredcontent.esm.js +14 -15
  164. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  165. package/deferredcontent/deferredcontent.js +14 -15
  166. package/deferredcontent/deferredcontent.min.js +1 -1
  167. package/dialog/dialog.cjs.js +43 -55
  168. package/dialog/dialog.cjs.min.js +1 -1
  169. package/dialog/dialog.d.ts +12 -12
  170. package/dialog/dialog.esm.js +43 -55
  171. package/dialog/dialog.esm.min.js +1 -1
  172. package/dialog/dialog.js +43 -55
  173. package/dialog/dialog.min.js +1 -1
  174. package/divider/divider.d.ts +2 -2
  175. package/dock/dock.cjs.js +43 -55
  176. package/dock/dock.cjs.min.js +1 -1
  177. package/dock/dock.d.ts +2 -2
  178. package/dock/dock.esm.js +43 -55
  179. package/dock/dock.esm.min.js +1 -1
  180. package/dock/dock.js +43 -55
  181. package/dock/dock.min.js +1 -1
  182. package/dropdown/dropdown.cjs.js +53 -57
  183. package/dropdown/dropdown.cjs.min.js +1 -1
  184. package/dropdown/dropdown.d.ts +14 -10
  185. package/dropdown/dropdown.esm.js +53 -57
  186. package/dropdown/dropdown.esm.min.js +1 -1
  187. package/dropdown/dropdown.js +53 -57
  188. package/dropdown/dropdown.min.js +1 -1
  189. package/editor/editor.cjs.js +37 -49
  190. package/editor/editor.cjs.min.js +1 -1
  191. package/editor/editor.d.ts +6 -6
  192. package/editor/editor.esm.js +37 -49
  193. package/editor/editor.esm.min.js +1 -1
  194. package/editor/editor.js +37 -49
  195. package/editor/editor.min.js +1 -1
  196. package/fieldset/fieldset.cjs.js +20 -26
  197. package/fieldset/fieldset.cjs.min.js +1 -1
  198. package/fieldset/fieldset.d.ts +4 -4
  199. package/fieldset/fieldset.esm.js +20 -26
  200. package/fieldset/fieldset.esm.min.js +1 -1
  201. package/fieldset/fieldset.js +20 -26
  202. package/fieldset/fieldset.min.js +1 -1
  203. package/fileupload/fileupload.cjs.js +48 -60
  204. package/fileupload/fileupload.cjs.min.js +1 -1
  205. package/fileupload/fileupload.d.ts +4 -4
  206. package/fileupload/fileupload.esm.js +48 -60
  207. package/fileupload/fileupload.esm.min.js +1 -1
  208. package/fileupload/fileupload.js +48 -60
  209. package/fileupload/fileupload.min.js +1 -1
  210. package/focustrap/focustrap.cjs.js +17 -23
  211. package/focustrap/focustrap.cjs.min.js +1 -1
  212. package/focustrap/focustrap.esm.js +17 -23
  213. package/focustrap/focustrap.esm.min.js +1 -1
  214. package/focustrap/focustrap.js +17 -23
  215. package/focustrap/focustrap.min.js +1 -1
  216. package/galleria/galleria.cjs.js +43 -55
  217. package/galleria/galleria.cjs.min.js +1 -1
  218. package/galleria/galleria.d.ts +2 -2
  219. package/galleria/galleria.esm.js +43 -55
  220. package/galleria/galleria.esm.min.js +1 -1
  221. package/galleria/galleria.js +43 -55
  222. package/galleria/galleria.min.js +1 -1
  223. package/hooks/hooks.cjs.js +53 -50
  224. package/hooks/hooks.cjs.min.js +1 -1
  225. package/hooks/hooks.esm.js +53 -50
  226. package/hooks/hooks.esm.min.js +1 -1
  227. package/hooks/hooks.js +53 -50
  228. package/hooks/hooks.min.js +1 -1
  229. package/iconfield/iconfield.cjs.js +23 -34
  230. package/iconfield/iconfield.cjs.min.js +1 -1
  231. package/iconfield/iconfield.esm.js +23 -34
  232. package/iconfield/iconfield.esm.min.js +1 -1
  233. package/iconfield/iconfield.js +23 -34
  234. package/iconfield/iconfield.min.js +1 -1
  235. package/icons/angledoubledown/index.cjs.js +6 -11
  236. package/icons/angledoubledown/index.cjs.min.js +1 -1
  237. package/icons/angledoubledown/index.esm.js +6 -11
  238. package/icons/angledoubledown/index.esm.min.js +1 -1
  239. package/icons/angledoubledown/index.js +6 -11
  240. package/icons/angledoubledown/index.min.js +1 -1
  241. package/icons/angledoubleleft/index.cjs.js +6 -11
  242. package/icons/angledoubleleft/index.cjs.min.js +1 -1
  243. package/icons/angledoubleleft/index.esm.js +6 -11
  244. package/icons/angledoubleleft/index.esm.min.js +1 -1
  245. package/icons/angledoubleleft/index.js +6 -11
  246. package/icons/angledoubleleft/index.min.js +1 -1
  247. package/icons/angledoubleright/index.cjs.js +6 -11
  248. package/icons/angledoubleright/index.cjs.min.js +1 -1
  249. package/icons/angledoubleright/index.esm.js +6 -11
  250. package/icons/angledoubleright/index.esm.min.js +1 -1
  251. package/icons/angledoubleright/index.js +6 -11
  252. package/icons/angledoubleright/index.min.js +1 -1
  253. package/icons/angledoubleup/index.cjs.js +6 -11
  254. package/icons/angledoubleup/index.cjs.min.js +1 -1
  255. package/icons/angledoubleup/index.esm.js +6 -11
  256. package/icons/angledoubleup/index.esm.min.js +1 -1
  257. package/icons/angledoubleup/index.js +6 -11
  258. package/icons/angledoubleup/index.min.js +1 -1
  259. package/icons/angledown/index.cjs.js +6 -11
  260. package/icons/angledown/index.cjs.min.js +1 -1
  261. package/icons/angledown/index.esm.js +6 -11
  262. package/icons/angledown/index.esm.min.js +1 -1
  263. package/icons/angledown/index.js +6 -11
  264. package/icons/angledown/index.min.js +1 -1
  265. package/icons/angleleft/index.cjs.js +6 -11
  266. package/icons/angleleft/index.cjs.min.js +1 -1
  267. package/icons/angleleft/index.esm.js +6 -11
  268. package/icons/angleleft/index.esm.min.js +1 -1
  269. package/icons/angleleft/index.js +6 -11
  270. package/icons/angleleft/index.min.js +1 -1
  271. package/icons/angleright/index.cjs.js +6 -11
  272. package/icons/angleright/index.cjs.min.js +1 -1
  273. package/icons/angleright/index.esm.js +6 -11
  274. package/icons/angleright/index.esm.min.js +1 -1
  275. package/icons/angleright/index.js +6 -11
  276. package/icons/angleright/index.min.js +1 -1
  277. package/icons/angleup/index.cjs.js +6 -11
  278. package/icons/angleup/index.cjs.min.js +1 -1
  279. package/icons/angleup/index.esm.js +6 -11
  280. package/icons/angleup/index.esm.min.js +1 -1
  281. package/icons/angleup/index.js +6 -11
  282. package/icons/angleup/index.min.js +1 -1
  283. package/icons/arrowdown/index.cjs.js +6 -11
  284. package/icons/arrowdown/index.cjs.min.js +1 -1
  285. package/icons/arrowdown/index.esm.js +6 -11
  286. package/icons/arrowdown/index.esm.min.js +1 -1
  287. package/icons/arrowdown/index.js +6 -11
  288. package/icons/arrowdown/index.min.js +1 -1
  289. package/icons/arrowup/index.cjs.js +6 -11
  290. package/icons/arrowup/index.cjs.min.js +1 -1
  291. package/icons/arrowup/index.esm.js +6 -11
  292. package/icons/arrowup/index.esm.min.js +1 -1
  293. package/icons/arrowup/index.js +6 -11
  294. package/icons/arrowup/index.min.js +1 -1
  295. package/icons/ban/index.cjs.js +6 -11
  296. package/icons/ban/index.cjs.min.js +1 -1
  297. package/icons/ban/index.esm.js +6 -11
  298. package/icons/ban/index.esm.min.js +1 -1
  299. package/icons/ban/index.js +6 -11
  300. package/icons/ban/index.min.js +1 -1
  301. package/icons/bars/index.cjs.js +6 -11
  302. package/icons/bars/index.cjs.min.js +1 -1
  303. package/icons/bars/index.esm.js +6 -11
  304. package/icons/bars/index.esm.min.js +1 -1
  305. package/icons/bars/index.js +6 -11
  306. package/icons/bars/index.min.js +1 -1
  307. package/icons/blank/index.cjs.js +6 -11
  308. package/icons/blank/index.cjs.min.js +1 -1
  309. package/icons/blank/index.esm.js +6 -11
  310. package/icons/blank/index.esm.min.js +1 -1
  311. package/icons/blank/index.js +6 -11
  312. package/icons/blank/index.min.js +1 -1
  313. package/icons/calendar/index.cjs.js +6 -11
  314. package/icons/calendar/index.cjs.min.js +1 -1
  315. package/icons/calendar/index.esm.js +6 -11
  316. package/icons/calendar/index.esm.min.js +1 -1
  317. package/icons/calendar/index.js +6 -11
  318. package/icons/calendar/index.min.js +1 -1
  319. package/icons/check/index.cjs.js +6 -11
  320. package/icons/check/index.cjs.min.js +1 -1
  321. package/icons/check/index.esm.js +6 -11
  322. package/icons/check/index.esm.min.js +1 -1
  323. package/icons/check/index.js +6 -11
  324. package/icons/check/index.min.js +1 -1
  325. package/icons/chevrondown/index.cjs.js +6 -11
  326. package/icons/chevrondown/index.cjs.min.js +1 -1
  327. package/icons/chevrondown/index.esm.js +6 -11
  328. package/icons/chevrondown/index.esm.min.js +1 -1
  329. package/icons/chevrondown/index.js +6 -11
  330. package/icons/chevrondown/index.min.js +1 -1
  331. package/icons/chevronleft/index.cjs.js +6 -11
  332. package/icons/chevronleft/index.cjs.min.js +1 -1
  333. package/icons/chevronleft/index.esm.js +6 -11
  334. package/icons/chevronleft/index.esm.min.js +1 -1
  335. package/icons/chevronleft/index.js +6 -11
  336. package/icons/chevronleft/index.min.js +1 -1
  337. package/icons/chevronright/index.cjs.js +6 -11
  338. package/icons/chevronright/index.cjs.min.js +1 -1
  339. package/icons/chevronright/index.esm.js +6 -11
  340. package/icons/chevronright/index.esm.min.js +1 -1
  341. package/icons/chevronright/index.js +6 -11
  342. package/icons/chevronright/index.min.js +1 -1
  343. package/icons/chevronup/index.cjs.js +6 -11
  344. package/icons/chevronup/index.cjs.min.js +1 -1
  345. package/icons/chevronup/index.esm.js +6 -11
  346. package/icons/chevronup/index.esm.min.js +1 -1
  347. package/icons/chevronup/index.js +6 -11
  348. package/icons/chevronup/index.min.js +1 -1
  349. package/icons/download/index.cjs.js +6 -11
  350. package/icons/download/index.cjs.min.js +1 -1
  351. package/icons/download/index.esm.js +6 -11
  352. package/icons/download/index.esm.min.js +1 -1
  353. package/icons/download/index.js +6 -11
  354. package/icons/download/index.min.js +1 -1
  355. package/icons/exclamationtriangle/index.cjs.js +6 -11
  356. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  357. package/icons/exclamationtriangle/index.esm.js +6 -11
  358. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  359. package/icons/exclamationtriangle/index.js +6 -11
  360. package/icons/exclamationtriangle/index.min.js +1 -1
  361. package/icons/eye/index.cjs.js +6 -11
  362. package/icons/eye/index.cjs.min.js +1 -1
  363. package/icons/eye/index.esm.js +6 -11
  364. package/icons/eye/index.esm.min.js +1 -1
  365. package/icons/eye/index.js +6 -11
  366. package/icons/eye/index.min.js +1 -1
  367. package/icons/eyeslash/index.cjs.js +6 -11
  368. package/icons/eyeslash/index.cjs.min.js +1 -1
  369. package/icons/eyeslash/index.esm.js +6 -11
  370. package/icons/eyeslash/index.esm.min.js +1 -1
  371. package/icons/eyeslash/index.js +6 -11
  372. package/icons/eyeslash/index.min.js +1 -1
  373. package/icons/filter/index.cjs.js +6 -11
  374. package/icons/filter/index.cjs.min.js +1 -1
  375. package/icons/filter/index.esm.js +6 -11
  376. package/icons/filter/index.esm.min.js +1 -1
  377. package/icons/filter/index.js +6 -11
  378. package/icons/filter/index.min.js +1 -1
  379. package/icons/filterslash/index.cjs.js +6 -11
  380. package/icons/filterslash/index.cjs.min.js +1 -1
  381. package/icons/filterslash/index.esm.js +6 -11
  382. package/icons/filterslash/index.esm.min.js +1 -1
  383. package/icons/filterslash/index.js +6 -11
  384. package/icons/filterslash/index.min.js +1 -1
  385. package/icons/infocircle/index.cjs.js +6 -11
  386. package/icons/infocircle/index.cjs.min.js +1 -1
  387. package/icons/infocircle/index.esm.js +6 -11
  388. package/icons/infocircle/index.esm.min.js +1 -1
  389. package/icons/infocircle/index.js +6 -11
  390. package/icons/infocircle/index.min.js +1 -1
  391. package/icons/minus/index.cjs.js +6 -11
  392. package/icons/minus/index.cjs.min.js +1 -1
  393. package/icons/minus/index.esm.js +6 -11
  394. package/icons/minus/index.esm.min.js +1 -1
  395. package/icons/minus/index.js +6 -11
  396. package/icons/minus/index.min.js +1 -1
  397. package/icons/pencil/index.cjs.js +6 -11
  398. package/icons/pencil/index.cjs.min.js +1 -1
  399. package/icons/pencil/index.esm.js +6 -11
  400. package/icons/pencil/index.esm.min.js +1 -1
  401. package/icons/pencil/index.js +6 -11
  402. package/icons/pencil/index.min.js +1 -1
  403. package/icons/plus/index.cjs.js +6 -11
  404. package/icons/plus/index.cjs.min.js +1 -1
  405. package/icons/plus/index.esm.js +6 -11
  406. package/icons/plus/index.esm.min.js +1 -1
  407. package/icons/plus/index.js +6 -11
  408. package/icons/plus/index.min.js +1 -1
  409. package/icons/refresh/index.cjs.js +6 -11
  410. package/icons/refresh/index.cjs.min.js +1 -1
  411. package/icons/refresh/index.esm.js +6 -11
  412. package/icons/refresh/index.esm.min.js +1 -1
  413. package/icons/refresh/index.js +6 -11
  414. package/icons/refresh/index.min.js +1 -1
  415. package/icons/search/index.cjs.js +6 -11
  416. package/icons/search/index.cjs.min.js +1 -1
  417. package/icons/search/index.esm.js +6 -11
  418. package/icons/search/index.esm.min.js +1 -1
  419. package/icons/search/index.js +6 -11
  420. package/icons/search/index.min.js +1 -1
  421. package/icons/searchminus/index.cjs.js +6 -11
  422. package/icons/searchminus/index.cjs.min.js +1 -1
  423. package/icons/searchminus/index.esm.js +6 -11
  424. package/icons/searchminus/index.esm.min.js +1 -1
  425. package/icons/searchminus/index.js +6 -11
  426. package/icons/searchminus/index.min.js +1 -1
  427. package/icons/searchplus/index.cjs.js +6 -11
  428. package/icons/searchplus/index.cjs.min.js +1 -1
  429. package/icons/searchplus/index.esm.js +6 -11
  430. package/icons/searchplus/index.esm.min.js +1 -1
  431. package/icons/searchplus/index.js +6 -11
  432. package/icons/searchplus/index.min.js +1 -1
  433. package/icons/sortalt/index.cjs.js +6 -11
  434. package/icons/sortalt/index.cjs.min.js +1 -1
  435. package/icons/sortalt/index.esm.js +6 -11
  436. package/icons/sortalt/index.esm.min.js +1 -1
  437. package/icons/sortalt/index.js +6 -11
  438. package/icons/sortalt/index.min.js +1 -1
  439. package/icons/sortamountdown/index.cjs.js +6 -11
  440. package/icons/sortamountdown/index.cjs.min.js +1 -1
  441. package/icons/sortamountdown/index.esm.js +6 -11
  442. package/icons/sortamountdown/index.esm.min.js +1 -1
  443. package/icons/sortamountdown/index.js +6 -11
  444. package/icons/sortamountdown/index.min.js +1 -1
  445. package/icons/sortamountupalt/index.cjs.js +6 -11
  446. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  447. package/icons/sortamountupalt/index.esm.js +6 -11
  448. package/icons/sortamountupalt/index.esm.min.js +1 -1
  449. package/icons/sortamountupalt/index.js +6 -11
  450. package/icons/sortamountupalt/index.min.js +1 -1
  451. package/icons/spinner/index.cjs.js +6 -11
  452. package/icons/spinner/index.cjs.min.js +1 -1
  453. package/icons/spinner/index.esm.js +6 -11
  454. package/icons/spinner/index.esm.min.js +1 -1
  455. package/icons/spinner/index.js +6 -11
  456. package/icons/spinner/index.min.js +1 -1
  457. package/icons/star/index.cjs.js +6 -11
  458. package/icons/star/index.cjs.min.js +1 -1
  459. package/icons/star/index.esm.js +6 -11
  460. package/icons/star/index.esm.min.js +1 -1
  461. package/icons/star/index.js +6 -11
  462. package/icons/star/index.min.js +1 -1
  463. package/icons/starfill/index.cjs.js +6 -11
  464. package/icons/starfill/index.cjs.min.js +1 -1
  465. package/icons/starfill/index.esm.js +6 -11
  466. package/icons/starfill/index.esm.min.js +1 -1
  467. package/icons/starfill/index.js +6 -11
  468. package/icons/starfill/index.min.js +1 -1
  469. package/icons/thlarge/index.cjs.js +6 -11
  470. package/icons/thlarge/index.cjs.min.js +1 -1
  471. package/icons/thlarge/index.esm.js +6 -11
  472. package/icons/thlarge/index.esm.min.js +1 -1
  473. package/icons/thlarge/index.js +6 -11
  474. package/icons/thlarge/index.min.js +1 -1
  475. package/icons/times/index.cjs.js +6 -11
  476. package/icons/times/index.cjs.min.js +1 -1
  477. package/icons/times/index.esm.js +6 -11
  478. package/icons/times/index.esm.min.js +1 -1
  479. package/icons/times/index.js +6 -11
  480. package/icons/times/index.min.js +1 -1
  481. package/icons/timescircle/index.cjs.js +6 -11
  482. package/icons/timescircle/index.cjs.min.js +1 -1
  483. package/icons/timescircle/index.esm.js +6 -11
  484. package/icons/timescircle/index.esm.min.js +1 -1
  485. package/icons/timescircle/index.js +6 -11
  486. package/icons/timescircle/index.min.js +1 -1
  487. package/icons/trash/index.cjs.js +6 -11
  488. package/icons/trash/index.cjs.min.js +1 -1
  489. package/icons/trash/index.esm.js +6 -11
  490. package/icons/trash/index.esm.min.js +1 -1
  491. package/icons/trash/index.js +6 -11
  492. package/icons/trash/index.min.js +1 -1
  493. package/icons/undo/index.cjs.js +6 -11
  494. package/icons/undo/index.cjs.min.js +1 -1
  495. package/icons/undo/index.esm.js +6 -11
  496. package/icons/undo/index.esm.min.js +1 -1
  497. package/icons/undo/index.js +6 -11
  498. package/icons/undo/index.min.js +1 -1
  499. package/icons/upload/index.cjs.js +6 -11
  500. package/icons/upload/index.cjs.min.js +1 -1
  501. package/icons/upload/index.esm.js +6 -11
  502. package/icons/upload/index.esm.min.js +1 -1
  503. package/icons/upload/index.js +6 -11
  504. package/icons/upload/index.min.js +1 -1
  505. package/icons/windowmaximize/index.cjs.js +6 -11
  506. package/icons/windowmaximize/index.cjs.min.js +1 -1
  507. package/icons/windowmaximize/index.esm.js +6 -11
  508. package/icons/windowmaximize/index.esm.min.js +1 -1
  509. package/icons/windowmaximize/index.js +6 -11
  510. package/icons/windowmaximize/index.min.js +1 -1
  511. package/icons/windowminimize/index.cjs.js +6 -11
  512. package/icons/windowminimize/index.cjs.min.js +1 -1
  513. package/icons/windowminimize/index.esm.js +6 -11
  514. package/icons/windowminimize/index.esm.min.js +1 -1
  515. package/icons/windowminimize/index.js +6 -11
  516. package/icons/windowminimize/index.min.js +1 -1
  517. package/image/image.cjs.js +37 -49
  518. package/image/image.cjs.min.js +1 -1
  519. package/image/image.d.ts +4 -4
  520. package/image/image.esm.js +37 -49
  521. package/image/image.esm.min.js +1 -1
  522. package/image/image.js +37 -49
  523. package/image/image.min.js +1 -1
  524. package/inplace/inplace.cjs.js +14 -15
  525. package/inplace/inplace.cjs.min.js +1 -1
  526. package/inplace/inplace.d.ts +2 -2
  527. package/inplace/inplace.esm.js +14 -15
  528. package/inplace/inplace.esm.min.js +1 -1
  529. package/inplace/inplace.js +14 -15
  530. package/inplace/inplace.min.js +1 -1
  531. package/inputicon/inputicon.cjs.js +23 -34
  532. package/inputicon/inputicon.cjs.min.js +1 -1
  533. package/inputicon/inputicon.esm.js +23 -34
  534. package/inputicon/inputicon.esm.min.js +1 -1
  535. package/inputicon/inputicon.js +23 -34
  536. package/inputicon/inputicon.min.js +1 -1
  537. package/inputmask/inputmask.cjs.js +7 -12
  538. package/inputmask/inputmask.cjs.min.js +1 -1
  539. package/inputmask/inputmask.d.ts +2 -2
  540. package/inputmask/inputmask.esm.js +7 -12
  541. package/inputmask/inputmask.esm.min.js +1 -1
  542. package/inputmask/inputmask.js +7 -12
  543. package/inputmask/inputmask.min.js +1 -1
  544. package/inputnumber/inputnumber.cjs.js +49 -58
  545. package/inputnumber/inputnumber.cjs.min.js +1 -1
  546. package/inputnumber/inputnumber.d.ts +4 -4
  547. package/inputnumber/inputnumber.esm.js +49 -58
  548. package/inputnumber/inputnumber.esm.min.js +1 -1
  549. package/inputnumber/inputnumber.js +49 -58
  550. package/inputnumber/inputnumber.min.js +1 -1
  551. package/inputotp/inputotp.cjs.js +65 -56
  552. package/inputotp/inputotp.cjs.min.js +1 -1
  553. package/inputotp/inputotp.esm.js +65 -56
  554. package/inputotp/inputotp.esm.min.js +1 -1
  555. package/inputotp/inputotp.js +65 -56
  556. package/inputotp/inputotp.min.js +1 -1
  557. package/inputswitch/inputswitch.cjs.js +23 -34
  558. package/inputswitch/inputswitch.cjs.min.js +1 -1
  559. package/inputswitch/inputswitch.d.ts +4 -4
  560. package/inputswitch/inputswitch.esm.js +23 -34
  561. package/inputswitch/inputswitch.esm.min.js +1 -1
  562. package/inputswitch/inputswitch.js +23 -34
  563. package/inputswitch/inputswitch.min.js +1 -1
  564. package/inputtext/inputtext.cjs.js +25 -35
  565. package/inputtext/inputtext.cjs.min.js +1 -1
  566. package/inputtext/inputtext.d.ts +1 -1
  567. package/inputtext/inputtext.esm.js +25 -35
  568. package/inputtext/inputtext.esm.min.js +1 -1
  569. package/inputtext/inputtext.js +25 -35
  570. package/inputtext/inputtext.min.js +1 -1
  571. package/inputtextarea/inputtextarea.cjs.js +23 -34
  572. package/inputtextarea/inputtextarea.cjs.min.js +1 -1
  573. package/inputtextarea/inputtextarea.esm.js +23 -34
  574. package/inputtextarea/inputtextarea.esm.min.js +1 -1
  575. package/inputtextarea/inputtextarea.js +23 -34
  576. package/inputtextarea/inputtextarea.min.js +1 -1
  577. package/keyfilter/keyfilter.cjs.js +16 -17
  578. package/keyfilter/keyfilter.cjs.min.js +1 -1
  579. package/keyfilter/keyfilter.esm.js +16 -17
  580. package/keyfilter/keyfilter.esm.min.js +1 -1
  581. package/keyfilter/keyfilter.js +16 -17
  582. package/keyfilter/keyfilter.min.js +1 -1
  583. package/knob/knob.cjs.js +15 -16
  584. package/knob/knob.cjs.min.js +1 -1
  585. package/knob/knob.d.ts +2 -2
  586. package/knob/knob.esm.js +15 -16
  587. package/knob/knob.esm.min.js +1 -1
  588. package/knob/knob.js +15 -16
  589. package/knob/knob.min.js +1 -1
  590. package/listbox/listbox.cjs.js +46 -58
  591. package/listbox/listbox.cjs.min.js +1 -1
  592. package/listbox/listbox.d.ts +4 -4
  593. package/listbox/listbox.esm.js +46 -58
  594. package/listbox/listbox.esm.min.js +1 -1
  595. package/listbox/listbox.js +46 -58
  596. package/listbox/listbox.min.js +1 -1
  597. package/megamenu/megamenu.cjs.js +37 -49
  598. package/megamenu/megamenu.cjs.min.js +1 -1
  599. package/megamenu/megamenu.d.ts +2 -2
  600. package/megamenu/megamenu.esm.js +37 -49
  601. package/megamenu/megamenu.esm.min.js +1 -1
  602. package/megamenu/megamenu.js +37 -49
  603. package/megamenu/megamenu.min.js +1 -1
  604. package/mention/mention.cjs.js +61 -64
  605. package/mention/mention.cjs.min.js +1 -1
  606. package/mention/mention.d.ts +11 -6
  607. package/mention/mention.esm.js +61 -64
  608. package/mention/mention.esm.min.js +1 -1
  609. package/mention/mention.js +61 -64
  610. package/mention/mention.min.js +1 -1
  611. package/menu/menu.cjs.js +57 -58
  612. package/menu/menu.cjs.min.js +1 -1
  613. package/menu/menu.d.ts +2 -2
  614. package/menu/menu.esm.js +58 -59
  615. package/menu/menu.esm.min.js +1 -1
  616. package/menu/menu.js +57 -58
  617. package/menu/menu.min.js +1 -1
  618. package/menubar/menubar.cjs.js +43 -58
  619. package/menubar/menubar.cjs.min.js +1 -1
  620. package/menubar/menubar.d.ts +8 -8
  621. package/menubar/menubar.esm.js +43 -58
  622. package/menubar/menubar.esm.min.js +1 -1
  623. package/menubar/menubar.js +43 -58
  624. package/menubar/menubar.min.js +1 -1
  625. package/message/message.cjs.js +23 -34
  626. package/message/message.cjs.min.js +1 -1
  627. package/message/message.d.ts +2 -2
  628. package/message/message.esm.js +23 -34
  629. package/message/message.esm.min.js +1 -1
  630. package/message/message.js +23 -34
  631. package/message/message.min.js +1 -1
  632. package/messages/messages.cjs.js +43 -55
  633. package/messages/messages.cjs.min.js +1 -1
  634. package/messages/messages.d.ts +2 -2
  635. package/messages/messages.esm.js +43 -55
  636. package/messages/messages.esm.min.js +1 -1
  637. package/messages/messages.js +43 -55
  638. package/messages/messages.min.js +1 -1
  639. package/metergroup/metergroup.cjs.js +23 -34
  640. package/metergroup/metergroup.cjs.min.js +1 -1
  641. package/metergroup/metergroup.esm.js +23 -34
  642. package/metergroup/metergroup.esm.min.js +1 -1
  643. package/metergroup/metergroup.js +23 -34
  644. package/metergroup/metergroup.min.js +1 -1
  645. package/multiselect/multiselect.cjs.js +70 -82
  646. package/multiselect/multiselect.cjs.min.js +1 -1
  647. package/multiselect/multiselect.d.ts +6 -6
  648. package/multiselect/multiselect.esm.js +70 -82
  649. package/multiselect/multiselect.esm.min.js +1 -1
  650. package/multiselect/multiselect.js +70 -82
  651. package/multiselect/multiselect.min.js +1 -1
  652. package/multistatecheckbox/multistatecheckbox.cjs.js +38 -50
  653. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  654. package/multistatecheckbox/multistatecheckbox.d.ts +2 -2
  655. package/multistatecheckbox/multistatecheckbox.esm.js +38 -50
  656. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  657. package/multistatecheckbox/multistatecheckbox.js +38 -50
  658. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  659. package/orderlist/orderlist.cjs.js +77 -58
  660. package/orderlist/orderlist.cjs.min.js +1 -1
  661. package/orderlist/orderlist.d.ts +2 -2
  662. package/orderlist/orderlist.esm.js +77 -58
  663. package/orderlist/orderlist.esm.min.js +1 -1
  664. package/orderlist/orderlist.js +77 -58
  665. package/orderlist/orderlist.min.js +1 -1
  666. package/organizationchart/organizationchart.cjs.js +43 -55
  667. package/organizationchart/organizationchart.cjs.min.js +1 -1
  668. package/organizationchart/organizationchart.d.ts +2 -2
  669. package/organizationchart/organizationchart.esm.js +43 -55
  670. package/organizationchart/organizationchart.esm.min.js +1 -1
  671. package/organizationchart/organizationchart.js +43 -55
  672. package/organizationchart/organizationchart.min.js +1 -1
  673. package/overlaypanel/overlaypanel.cjs.js +46 -59
  674. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  675. package/overlaypanel/overlaypanel.d.ts +2 -2
  676. package/overlaypanel/overlaypanel.esm.js +46 -59
  677. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  678. package/overlaypanel/overlaypanel.js +46 -59
  679. package/overlaypanel/overlaypanel.min.js +1 -1
  680. package/package.json +1 -1
  681. package/paginator/paginator.cjs.js +41 -56
  682. package/paginator/paginator.cjs.min.js +1 -1
  683. package/paginator/paginator.d.ts +2 -2
  684. package/paginator/paginator.esm.js +41 -56
  685. package/paginator/paginator.esm.min.js +1 -1
  686. package/paginator/paginator.js +41 -56
  687. package/paginator/paginator.min.js +1 -1
  688. package/panel/panel.cjs.js +20 -26
  689. package/panel/panel.cjs.min.js +1 -1
  690. package/panel/panel.d.ts +4 -4
  691. package/panel/panel.esm.js +20 -26
  692. package/panel/panel.esm.min.js +1 -1
  693. package/panel/panel.js +20 -26
  694. package/panel/panel.min.js +1 -1
  695. package/panelmenu/panelmenu.cjs.js +37 -49
  696. package/panelmenu/panelmenu.cjs.min.js +1 -1
  697. package/panelmenu/panelmenu.d.ts +2 -2
  698. package/panelmenu/panelmenu.esm.js +37 -49
  699. package/panelmenu/panelmenu.esm.min.js +1 -1
  700. package/panelmenu/panelmenu.js +37 -49
  701. package/panelmenu/panelmenu.min.js +1 -1
  702. package/passthrough/index.cjs.js +17 -23
  703. package/passthrough/index.cjs.min.js +1 -1
  704. package/passthrough/index.esm.js +17 -23
  705. package/passthrough/index.esm.min.js +1 -1
  706. package/passthrough/index.js +17 -23
  707. package/passthrough/index.min.js +1 -1
  708. package/passthrough/tailwind/index.cjs.js +14 -15
  709. package/passthrough/tailwind/index.cjs.min.js +1 -1
  710. package/passthrough/tailwind/index.esm.js +14 -15
  711. package/passthrough/tailwind/index.esm.min.js +1 -1
  712. package/passthrough/tailwind/index.js +14 -15
  713. package/passthrough/tailwind/index.min.js +1 -1
  714. package/password/password.cjs.js +46 -51
  715. package/password/password.cjs.min.js +1 -1
  716. package/password/password.d.ts +6 -6
  717. package/password/password.esm.js +47 -52
  718. package/password/password.esm.min.js +1 -1
  719. package/password/password.js +46 -51
  720. package/password/password.min.js +1 -1
  721. package/picklist/picklist.cjs.js +50 -65
  722. package/picklist/picklist.cjs.min.js +1 -1
  723. package/picklist/picklist.d.ts +2 -2
  724. package/picklist/picklist.esm.js +50 -65
  725. package/picklist/picklist.esm.min.js +1 -1
  726. package/picklist/picklist.js +50 -65
  727. package/picklist/picklist.min.js +1 -1
  728. package/portal/portal.cjs.js +14 -15
  729. package/portal/portal.cjs.min.js +1 -1
  730. package/portal/portal.esm.js +14 -15
  731. package/portal/portal.esm.min.js +1 -1
  732. package/portal/portal.js +14 -15
  733. package/portal/portal.min.js +1 -1
  734. package/primereact.all.cjs.js +858 -539
  735. package/primereact.all.cjs.min.js +1 -1
  736. package/primereact.all.esm.js +859 -540
  737. package/primereact.all.esm.min.js +1 -1
  738. package/primereact.all.js +858 -539
  739. package/primereact.all.min.js +1 -1
  740. package/progressbar/progressbar.cjs.js +23 -34
  741. package/progressbar/progressbar.cjs.min.js +1 -1
  742. package/progressbar/progressbar.d.ts +2 -2
  743. package/progressbar/progressbar.esm.js +23 -34
  744. package/progressbar/progressbar.esm.min.js +1 -1
  745. package/progressbar/progressbar.js +23 -34
  746. package/progressbar/progressbar.min.js +1 -1
  747. package/progressspinner/progressspinner.d.ts +2 -2
  748. package/radiobutton/radiobutton.cjs.js +25 -36
  749. package/radiobutton/radiobutton.cjs.min.js +1 -1
  750. package/radiobutton/radiobutton.d.ts +5 -5
  751. package/radiobutton/radiobutton.esm.js +25 -36
  752. package/radiobutton/radiobutton.esm.min.js +1 -1
  753. package/radiobutton/radiobutton.js +25 -36
  754. package/radiobutton/radiobutton.min.js +1 -1
  755. package/rating/rating.cjs.js +37 -49
  756. package/rating/rating.cjs.min.js +1 -1
  757. package/rating/rating.d.ts +2 -2
  758. package/rating/rating.esm.js +37 -49
  759. package/rating/rating.esm.min.js +1 -1
  760. package/rating/rating.js +37 -49
  761. package/rating/rating.min.js +1 -1
  762. package/ripple/ripple.cjs.js +37 -49
  763. package/ripple/ripple.cjs.min.js +1 -1
  764. package/ripple/ripple.esm.js +37 -49
  765. package/ripple/ripple.esm.min.js +1 -1
  766. package/ripple/ripple.js +37 -49
  767. package/ripple/ripple.min.js +1 -1
  768. package/scrollpanel/scrollpanel.cjs.js +20 -26
  769. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  770. package/scrollpanel/scrollpanel.d.ts +8 -8
  771. package/scrollpanel/scrollpanel.esm.js +20 -26
  772. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  773. package/scrollpanel/scrollpanel.js +20 -26
  774. package/scrollpanel/scrollpanel.min.js +1 -1
  775. package/scrolltop/scrolltop.cjs.js +37 -49
  776. package/scrolltop/scrolltop.cjs.min.js +1 -1
  777. package/scrolltop/scrolltop.d.ts +2 -2
  778. package/scrolltop/scrolltop.esm.js +37 -49
  779. package/scrolltop/scrolltop.esm.min.js +1 -1
  780. package/scrolltop/scrolltop.js +37 -49
  781. package/scrolltop/scrolltop.min.js +1 -1
  782. package/selectbutton/selectbutton.cjs.js +26 -32
  783. package/selectbutton/selectbutton.cjs.min.js +1 -1
  784. package/selectbutton/selectbutton.d.ts +2 -2
  785. package/selectbutton/selectbutton.esm.js +26 -32
  786. package/selectbutton/selectbutton.esm.min.js +1 -1
  787. package/selectbutton/selectbutton.js +26 -32
  788. package/selectbutton/selectbutton.min.js +1 -1
  789. package/sidebar/sidebar.cjs.js +37 -49
  790. package/sidebar/sidebar.cjs.min.js +1 -1
  791. package/sidebar/sidebar.d.ts +6 -6
  792. package/sidebar/sidebar.esm.js +37 -49
  793. package/sidebar/sidebar.esm.min.js +1 -1
  794. package/sidebar/sidebar.js +37 -49
  795. package/sidebar/sidebar.min.js +1 -1
  796. package/skeleton/skeleton.cjs.js +17 -23
  797. package/skeleton/skeleton.cjs.min.js +1 -1
  798. package/skeleton/skeleton.d.ts +2 -2
  799. package/skeleton/skeleton.esm.js +17 -23
  800. package/skeleton/skeleton.esm.min.js +1 -1
  801. package/skeleton/skeleton.js +17 -23
  802. package/skeleton/skeleton.min.js +1 -1
  803. package/slidemenu/slidemenu.cjs.js +46 -51
  804. package/slidemenu/slidemenu.cjs.min.js +1 -1
  805. package/slidemenu/slidemenu.d.ts +2 -2
  806. package/slidemenu/slidemenu.esm.js +47 -52
  807. package/slidemenu/slidemenu.esm.min.js +1 -1
  808. package/slidemenu/slidemenu.js +46 -51
  809. package/slidemenu/slidemenu.min.js +1 -1
  810. package/slider/slider.cjs.js +43 -55
  811. package/slider/slider.cjs.min.js +1 -1
  812. package/slider/slider.d.ts +3 -2
  813. package/slider/slider.esm.js +43 -55
  814. package/slider/slider.esm.min.js +1 -1
  815. package/slider/slider.js +43 -55
  816. package/slider/slider.min.js +1 -1
  817. package/speeddial/speeddial.cjs.js +43 -55
  818. package/speeddial/speeddial.cjs.min.js +1 -1
  819. package/speeddial/speeddial.d.ts +2 -2
  820. package/speeddial/speeddial.esm.js +43 -55
  821. package/speeddial/speeddial.esm.min.js +1 -1
  822. package/speeddial/speeddial.js +43 -55
  823. package/speeddial/speeddial.min.js +1 -1
  824. package/splitbutton/splitbutton.cjs.js +37 -49
  825. package/splitbutton/splitbutton.cjs.min.js +1 -1
  826. package/splitbutton/splitbutton.d.ts +2 -2
  827. package/splitbutton/splitbutton.esm.js +37 -49
  828. package/splitbutton/splitbutton.esm.min.js +1 -1
  829. package/splitbutton/splitbutton.js +37 -49
  830. package/splitbutton/splitbutton.min.js +1 -1
  831. package/splitter/splitter.cjs.js +43 -55
  832. package/splitter/splitter.cjs.min.js +1 -1
  833. package/splitter/splitter.d.ts +2 -2
  834. package/splitter/splitter.esm.js +43 -55
  835. package/splitter/splitter.esm.min.js +1 -1
  836. package/splitter/splitter.js +43 -55
  837. package/splitter/splitter.min.js +1 -1
  838. package/stepper/stepper.cjs.js +39 -50
  839. package/stepper/stepper.cjs.min.js +1 -1
  840. package/stepper/stepper.d.ts +8 -3
  841. package/stepper/stepper.esm.js +39 -50
  842. package/stepper/stepper.esm.min.js +1 -1
  843. package/stepper/stepper.js +39 -50
  844. package/stepper/stepper.min.js +1 -1
  845. package/steps/steps.cjs.js +37 -49
  846. package/steps/steps.cjs.min.js +1 -1
  847. package/steps/steps.d.ts +2 -2
  848. package/steps/steps.esm.js +37 -49
  849. package/steps/steps.esm.min.js +1 -1
  850. package/steps/steps.js +37 -49
  851. package/steps/steps.min.js +1 -1
  852. package/styleclass/styleclass.cjs.js +14 -15
  853. package/styleclass/styleclass.cjs.min.js +1 -1
  854. package/styleclass/styleclass.d.ts +4 -4
  855. package/styleclass/styleclass.esm.js +14 -15
  856. package/styleclass/styleclass.esm.min.js +1 -1
  857. package/styleclass/styleclass.js +14 -15
  858. package/styleclass/styleclass.min.js +1 -1
  859. package/tabmenu/tabmenu.cjs.js +37 -49
  860. package/tabmenu/tabmenu.cjs.min.js +1 -1
  861. package/tabmenu/tabmenu.d.ts +2 -2
  862. package/tabmenu/tabmenu.esm.js +37 -49
  863. package/tabmenu/tabmenu.esm.min.js +1 -1
  864. package/tabmenu/tabmenu.js +37 -49
  865. package/tabmenu/tabmenu.min.js +1 -1
  866. package/tabview/tabview.cjs.js +37 -44
  867. package/tabview/tabview.cjs.min.js +1 -1
  868. package/tabview/tabview.d.ts +2 -2
  869. package/tabview/tabview.esm.js +37 -44
  870. package/tabview/tabview.esm.min.js +1 -1
  871. package/tabview/tabview.js +37 -44
  872. package/tabview/tabview.min.js +1 -1
  873. package/tag/tag.cjs.js +17 -23
  874. package/tag/tag.cjs.min.js +1 -1
  875. package/tag/tag.d.ts +2 -2
  876. package/tag/tag.esm.js +17 -23
  877. package/tag/tag.esm.min.js +1 -1
  878. package/tag/tag.js +17 -23
  879. package/tag/tag.min.js +1 -1
  880. package/terminal/terminal.cjs.js +20 -21
  881. package/terminal/terminal.cjs.min.js +1 -1
  882. package/terminal/terminal.d.ts +2 -2
  883. package/terminal/terminal.esm.js +20 -21
  884. package/terminal/terminal.esm.min.js +1 -1
  885. package/terminal/terminal.js +20 -21
  886. package/terminal/terminal.min.js +1 -1
  887. package/tieredmenu/tieredmenu.cjs.js +37 -49
  888. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  889. package/tieredmenu/tieredmenu.d.ts +2 -2
  890. package/tieredmenu/tieredmenu.esm.js +37 -49
  891. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  892. package/tieredmenu/tieredmenu.js +37 -49
  893. package/tieredmenu/tieredmenu.min.js +1 -1
  894. package/timeline/timeline.cjs.js +23 -34
  895. package/timeline/timeline.cjs.min.js +1 -1
  896. package/timeline/timeline.d.ts +4 -4
  897. package/timeline/timeline.esm.js +23 -34
  898. package/timeline/timeline.esm.min.js +1 -1
  899. package/timeline/timeline.js +23 -34
  900. package/timeline/timeline.min.js +1 -1
  901. package/toast/toast.cjs.js +43 -55
  902. package/toast/toast.cjs.min.js +1 -1
  903. package/toast/toast.d.ts +2 -2
  904. package/toast/toast.esm.js +43 -55
  905. package/toast/toast.esm.min.js +1 -1
  906. package/toast/toast.js +43 -55
  907. package/toast/toast.min.js +1 -1
  908. package/togglebutton/togglebutton.cjs.js +23 -34
  909. package/togglebutton/togglebutton.cjs.min.js +1 -1
  910. package/togglebutton/togglebutton.d.ts +2 -2
  911. package/togglebutton/togglebutton.esm.js +23 -34
  912. package/togglebutton/togglebutton.esm.min.js +1 -1
  913. package/togglebutton/togglebutton.js +23 -34
  914. package/togglebutton/togglebutton.min.js +1 -1
  915. package/toolbar/toolbar.d.ts +2 -2
  916. package/tooltip/tooltip.cjs.js +43 -55
  917. package/tooltip/tooltip.cjs.min.js +1 -1
  918. package/tooltip/tooltip.d.ts +3 -3
  919. package/tooltip/tooltip.esm.js +43 -55
  920. package/tooltip/tooltip.esm.min.js +1 -1
  921. package/tooltip/tooltip.js +43 -55
  922. package/tooltip/tooltip.min.js +1 -1
  923. package/tree/tree.cjs.js +52 -64
  924. package/tree/tree.cjs.min.js +1 -1
  925. package/tree/tree.d.ts +2 -2
  926. package/tree/tree.esm.js +52 -64
  927. package/tree/tree.esm.min.js +1 -1
  928. package/tree/tree.js +52 -64
  929. package/tree/tree.min.js +1 -1
  930. package/treeselect/treeselect.cjs.js +61 -66
  931. package/treeselect/treeselect.cjs.min.js +1 -1
  932. package/treeselect/treeselect.d.ts +2 -2
  933. package/treeselect/treeselect.esm.js +61 -66
  934. package/treeselect/treeselect.esm.min.js +1 -1
  935. package/treeselect/treeselect.js +61 -66
  936. package/treeselect/treeselect.min.js +1 -1
  937. package/treetable/treetable.cjs.js +57 -69
  938. package/treetable/treetable.cjs.min.js +1 -1
  939. package/treetable/treetable.d.ts +2 -2
  940. package/treetable/treetable.esm.js +57 -69
  941. package/treetable/treetable.esm.min.js +1 -1
  942. package/treetable/treetable.js +57 -69
  943. package/treetable/treetable.min.js +1 -1
  944. package/tristatecheckbox/tristatecheckbox.cjs.js +43 -55
  945. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  946. package/tristatecheckbox/tristatecheckbox.d.ts +2 -2
  947. package/tristatecheckbox/tristatecheckbox.esm.js +43 -55
  948. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  949. package/tristatecheckbox/tristatecheckbox.js +43 -55
  950. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  951. package/utils/utils.cjs.js +197 -99
  952. package/utils/utils.cjs.min.js +1 -1
  953. package/utils/utils.d.ts +5 -1
  954. package/utils/utils.esm.js +197 -99
  955. package/utils/utils.esm.min.js +1 -1
  956. package/utils/utils.js +197 -99
  957. package/utils/utils.min.js +1 -1
  958. package/virtualscroller/virtualscroller.cjs.js +37 -49
  959. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  960. package/virtualscroller/virtualscroller.esm.js +37 -49
  961. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  962. package/virtualscroller/virtualscroller.js +37 -49
  963. package/virtualscroller/virtualscroller.min.js +1 -1
  964. package/web-types.json +46 -10
package/primereact.all.js CHANGED
@@ -26,49 +26,43 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
26
26
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
27
27
 
28
28
  function _extends() {
29
- _extends = Object.assign ? Object.assign.bind() : function (target) {
30
- for (var i = 1; i < arguments.length; i++) {
31
- var source = arguments[i];
32
- for (var key in source) {
33
- if (Object.prototype.hasOwnProperty.call(source, key)) {
34
- target[key] = source[key];
35
- }
36
- }
29
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
30
+ for (var e = 1; e < arguments.length; e++) {
31
+ var t = arguments[e];
32
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
37
33
  }
38
- return target;
39
- };
40
- return _extends.apply(this, arguments);
34
+ return n;
35
+ }, _extends.apply(null, arguments);
41
36
  }
42
37
 
43
- function _arrayLikeToArray$i(arr, len) {
44
- if (len == null || len > arr.length) len = arr.length;
45
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
46
- return arr2;
38
+ function _arrayLikeToArray$i(r, a) {
39
+ (null == a || a > r.length) && (a = r.length);
40
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
41
+ return n;
47
42
  }
48
43
 
49
- function _arrayWithoutHoles(arr) {
50
- if (Array.isArray(arr)) return _arrayLikeToArray$i(arr);
44
+ function _arrayWithoutHoles(r) {
45
+ if (Array.isArray(r)) return _arrayLikeToArray$i(r);
51
46
  }
52
47
 
53
- function _iterableToArray(iter) {
54
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
48
+ function _iterableToArray(r) {
49
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
55
50
  }
56
51
 
57
- function _unsupportedIterableToArray$i(o, minLen) {
58
- if (!o) return;
59
- if (typeof o === "string") return _arrayLikeToArray$i(o, minLen);
60
- var n = Object.prototype.toString.call(o).slice(8, -1);
61
- if (n === "Object" && o.constructor) n = o.constructor.name;
62
- if (n === "Map" || n === "Set") return Array.from(o);
63
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$i(o, minLen);
52
+ function _unsupportedIterableToArray$i(r, a) {
53
+ if (r) {
54
+ if ("string" == typeof r) return _arrayLikeToArray$i(r, a);
55
+ var t = {}.toString.call(r).slice(8, -1);
56
+ 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$i(r, a) : void 0;
57
+ }
64
58
  }
65
59
 
66
60
  function _nonIterableSpread() {
67
61
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68
62
  }
69
63
 
70
- function _toConsumableArray(arr) {
71
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$i(arr) || _nonIterableSpread();
64
+ function _toConsumableArray(r) {
65
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$i(r) || _nonIterableSpread();
72
66
  }
73
67
 
74
68
  function _typeof(o) {
@@ -81,39 +75,33 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
81
75
  }, _typeof(o);
82
76
  }
83
77
 
84
- function _toPrimitive(input, hint) {
85
- if (_typeof(input) !== "object" || input === null) return input;
86
- var prim = input[Symbol.toPrimitive];
87
- if (prim !== undefined) {
88
- var res = prim.call(input, hint || "default");
89
- if (_typeof(res) !== "object") return res;
78
+ function toPrimitive(t, r) {
79
+ if ("object" != _typeof(t) || !t) return t;
80
+ var e = t[Symbol.toPrimitive];
81
+ if (void 0 !== e) {
82
+ var i = e.call(t, r || "default");
83
+ if ("object" != _typeof(i)) return i;
90
84
  throw new TypeError("@@toPrimitive must return a primitive value.");
91
85
  }
92
- return (hint === "string" ? String : Number)(input);
86
+ return ("string" === r ? String : Number)(t);
93
87
  }
94
88
 
95
- function _toPropertyKey(arg) {
96
- var key = _toPrimitive(arg, "string");
97
- return _typeof(key) === "symbol" ? key : String(key);
89
+ function toPropertyKey(t) {
90
+ var i = toPrimitive(t, "string");
91
+ return "symbol" == _typeof(i) ? i : i + "";
98
92
  }
99
93
 
100
- function _defineProperty(obj, key, value) {
101
- key = _toPropertyKey(key);
102
- if (key in obj) {
103
- Object.defineProperty(obj, key, {
104
- value: value,
105
- enumerable: true,
106
- configurable: true,
107
- writable: true
108
- });
109
- } else {
110
- obj[key] = value;
111
- }
112
- return obj;
94
+ function _defineProperty(e, r, t) {
95
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
96
+ value: t,
97
+ enumerable: !0,
98
+ configurable: !0,
99
+ writable: !0
100
+ }) : e[r] = t, e;
113
101
  }
114
102
 
115
- function _arrayWithHoles(arr) {
116
- if (Array.isArray(arr)) return arr;
103
+ function _arrayWithHoles(r) {
104
+ if (Array.isArray(r)) return r;
117
105
  }
118
106
 
119
107
  function _iterableToArrayLimit(r, l) {
@@ -148,8 +136,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
148
136
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
149
137
  }
150
138
 
151
- function _slicedToArray(arr, i) {
152
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$i(arr, i) || _nonIterableRest();
139
+ function _slicedToArray(r, e) {
140
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$i(r, e) || _nonIterableRest();
153
141
  }
154
142
 
155
143
  var FilterMatchMode = Object.freeze({
@@ -208,33 +196,25 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
208
196
  return undefined;
209
197
  }
210
198
 
211
- function _classCallCheck(instance, Constructor) {
212
- if (!(instance instanceof Constructor)) {
213
- throw new TypeError("Cannot call a class as a function");
214
- }
199
+ function _classCallCheck(a, n) {
200
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
215
201
  }
216
202
 
217
- function _defineProperties(target, props) {
218
- for (var i = 0; i < props.length; i++) {
219
- var descriptor = props[i];
220
- descriptor.enumerable = descriptor.enumerable || false;
221
- descriptor.configurable = true;
222
- if ("value" in descriptor) descriptor.writable = true;
223
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
203
+ function _defineProperties(e, r) {
204
+ for (var t = 0; t < r.length; t++) {
205
+ var o = r[t];
206
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
224
207
  }
225
208
  }
226
- function _createClass(Constructor, protoProps, staticProps) {
227
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
228
- if (staticProps) _defineProperties(Constructor, staticProps);
229
- Object.defineProperty(Constructor, "prototype", {
230
- writable: false
231
- });
232
- return Constructor;
209
+ function _createClass(e, r, t) {
210
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
211
+ writable: !1
212
+ }), e;
233
213
  }
234
214
 
235
- function _createForOfIteratorHelper$h(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$h(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
236
- function _unsupportedIterableToArray$h(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$h(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$h(o, minLen); }
237
- function _arrayLikeToArray$h(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
215
+ function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
216
+ function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); 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$h(r, a) : void 0; } }
217
+ function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
238
218
  var DomHandler = /*#__PURE__*/function () {
239
219
  function DomHandler() {
240
220
  _classCallCheck(this, DomHandler);
@@ -607,11 +587,18 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
607
587
  element.style.transformOrigin = 'top';
608
588
  }
609
589
  var targetOffsetPx = targetOffset.left;
610
- var alignOffset = align === 'left' ? 0 : elementOuterWidth - targetOuterWidth;
611
- if (targetOffsetPx + targetOuterWidth + elementOuterWidth > viewport.width) {
612
- left = Math.max(0, targetOffsetPx + windowScrollLeft + targetOuterWidth - elementOuterWidth);
590
+ if (align === 'left') {
591
+ if (targetOffsetPx + elementOuterWidth > viewport.width) {
592
+ left = Math.max(0, targetOffsetPx + windowScrollLeft + targetOuterWidth - elementOuterWidth);
593
+ } else {
594
+ left = targetOffsetPx + windowScrollLeft;
595
+ }
613
596
  } else {
614
- left = targetOffsetPx - alignOffset + windowScrollLeft;
597
+ if (targetOffsetPx + targetOuterWidth - elementOuterWidth < 0) {
598
+ left = windowScrollLeft;
599
+ } else {
600
+ left = targetOffsetPx + targetOuterWidth - elementOuterWidth + windowScrollLeft;
601
+ }
615
602
  }
616
603
  element.style.top = top + 'px';
617
604
  element.style.left = left + 'px';
@@ -820,13 +807,12 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
820
807
  /**
821
808
  * Gets all scrollable parent elements of a given element
822
809
  * @param {HTMLElement} element - The element to find scrollable parents for
823
- * @param {boolean} hideOverlaysOnDocumentScrolling - Whether to include window/document level scrolling
824
810
  * @returns {Array} Array of scrollable parent elements
825
811
  */
826
812
  }, {
827
813
  key: "getScrollableParents",
828
814
  value: function getScrollableParents(element) {
829
- var hideOverlaysOnDocumentScrolling = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
815
+ var _this3 = this;
830
816
  var scrollableParents = [];
831
817
  if (element) {
832
818
  // Get all parent elements
@@ -849,10 +835,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
849
835
  * @param {HTMLElement} node - Element to add
850
836
  */
851
837
  var addScrollableParent = function addScrollableParent(node) {
852
- if (hideOverlaysOnDocumentScrolling) {
853
- // For document/body/html elements, add window instead
854
- scrollableParents.push(node.nodeName === 'BODY' || node.nodeName === 'HTML' || node.nodeType === 9 ? window : node);
855
- }
838
+ // For document/body/html elements, add window instead
839
+ scrollableParents.push(node.nodeName === 'BODY' || node.nodeName === 'HTML' || _this3.isDocument(node) ? window : node);
856
840
  };
857
841
 
858
842
  // Iterate through all parent elements
@@ -896,13 +880,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
896
880
  _iterator.f();
897
881
  }
898
882
  }
899
-
900
- // Ensure window/body is always included as fallback
901
- if (!scrollableParents.some(function (node) {
902
- return node === document.body || node === window;
903
- })) {
904
- scrollableParents.push(hideOverlaysOnDocumentScrolling ? window : document.body);
905
- }
906
883
  return scrollableParents;
907
884
  }
908
885
  }, {
@@ -1042,6 +1019,11 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
1042
1019
  value: function isElement(obj) {
1043
1020
  return (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) === 'object' ? obj instanceof HTMLElement : obj && _typeof(obj) === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
1044
1021
  }
1022
+ }, {
1023
+ key: "isDocument",
1024
+ value: function isDocument(obj) {
1025
+ return (typeof Document === "undefined" ? "undefined" : _typeof(Document)) === 'object' ? obj instanceof Document : obj && _typeof(obj) === 'object' && obj !== null && obj.nodeType === 9;
1026
+ }
1045
1027
  }, {
1046
1028
  key: "scrollInView",
1047
1029
  value: function scrollInView(container, item) {
@@ -1379,7 +1361,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
1379
1361
  return !!(obj && obj.constructor && obj.call && obj.apply);
1380
1362
  };
1381
1363
  var element = isFunction(target) ? target() : target;
1382
- return element && element.nodeType === 9 || this.isExist(element) ? element : null;
1364
+ return this.isDocument(element) || this.isExist(element) ? element : null;
1383
1365
  }
1384
1366
 
1385
1367
  /**
@@ -1528,9 +1510,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
1528
1510
  };
1529
1511
  }
1530
1512
 
1531
- function _createForOfIteratorHelper$g(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$g(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1532
- function _unsupportedIterableToArray$g(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$g(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$g(o, minLen); }
1533
- function _arrayLikeToArray$g(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
1513
+ function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
1514
+ function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); 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$g(r, a) : void 0; } }
1515
+ function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1534
1516
  var ObjectUtils = /*#__PURE__*/function () {
1535
1517
  function ObjectUtils() {
1536
1518
  _classCallCheck(this, ObjectUtils);
@@ -1785,13 +1767,13 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
1785
1767
  params[_key4 - 1] = arguments[_key4];
1786
1768
  }
1787
1769
  if (params.length === 1) {
1788
- // For single parameter, unwrap array if needed
1770
+ // For single parameter case, unwrap array if needed to avoid extra nesting
1789
1771
  var param = params[0];
1790
1772
  return obj(Array.isArray(param) ? param[0] : param);
1791
1773
  }
1792
1774
 
1793
1775
  // Pass all parameters to function
1794
- return obj(params);
1776
+ return obj.apply(void 0, params);
1795
1777
  }
1796
1778
  }, {
1797
1779
  key: "getComponentProp",
@@ -2082,6 +2064,122 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
2082
2064
  obj = obj[fields[i]];
2083
2065
  }
2084
2066
  }
2067
+
2068
+ /**
2069
+ * This helper function takes an object and a dot-separated key path. It traverses the object based on the path,
2070
+ * returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
2071
+ *
2072
+ * Example:
2073
+ * const obj = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2074
+ * const path = 'address.city';
2075
+ * const result = ObjectUtils.getNestedValue(obj, path);
2076
+ * console.log(result); // Output: "Wonderland"
2077
+ *
2078
+ * @param {object} obj - The object to traverse.
2079
+ * @param {string} path - The dot-separated key path.
2080
+ * @returns {*} The value at the specified depth, or undefined if any part of the path is missing or undefined.
2081
+ */
2082
+ }, {
2083
+ key: "getNestedValue",
2084
+ value: function getNestedValue(obj, path) {
2085
+ return path.split('.').reduce(function (acc, part) {
2086
+ return acc && acc[part] !== undefined ? acc[part] : undefined;
2087
+ }, obj);
2088
+ }
2089
+
2090
+ /**
2091
+ * This function takes an object and a dot-separated key path. It traverses the object based on the path,
2092
+ * returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
2093
+ *
2094
+ * Example:
2095
+ * const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2096
+ * const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2097
+ * const result = ObjectUtils.absoluteCompare(objA, objB);
2098
+ * console.log(result); // Output: true
2099
+ *
2100
+ * const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
2101
+ * const result2 = ObjectUtils.absoluteCompare(objA, objC);
2102
+ * console.log(result2); // Output: false
2103
+ *
2104
+ * @param {object} objA - The first object to compare.
2105
+ * @param {object} objB - The second object to compare.
2106
+ * @param {number} [maxDepth=1] - The maximum depth to compare.
2107
+ * @param {number} [currentDepth=0] - The current depth (used internally for recursion).
2108
+ * @returns {boolean} True if the objects are equal within the specified depth, false otherwise.
2109
+ *
2110
+ */
2111
+ }, {
2112
+ key: "absoluteCompare",
2113
+ value: function absoluteCompare(objA, objB) {
2114
+ var maxDepth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
2115
+ var currentDepth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
2116
+ if (!objA || !objB) return true;
2117
+ if (currentDepth > maxDepth) return true;
2118
+ if (_typeof(objA) !== _typeof(objB)) return false;
2119
+ var aKeys = Object.keys(objA);
2120
+ var bKeys = Object.keys(objB);
2121
+ if (aKeys.length !== bKeys.length) return false;
2122
+ for (var _i = 0, _aKeys = aKeys; _i < _aKeys.length; _i++) {
2123
+ var key = _aKeys[_i];
2124
+ var aValue = objA[key];
2125
+ var bValue = objB[key];
2126
+
2127
+ // Skip comparison if values are objects
2128
+ var isObject = ObjectUtils.isObject(aValue) && ObjectUtils.isObject(bValue);
2129
+ var isFunction = ObjectUtils.isFunction(aValue) && ObjectUtils.isFunction(bValue);
2130
+ if ((isObject || isFunction) && !this.absoluteCompare(aValue, bValue, maxDepth, currentDepth + 1)) return false;
2131
+ if (!isObject && aValue !== bValue) return false;
2132
+ }
2133
+ return true;
2134
+ }
2135
+
2136
+ /**
2137
+ * This helper function takes two objects and a list of keys to compare. It compares the values of the specified keys
2138
+ * in both objects. If any comparison fails, it returns false. If all specified properties are equal, it returns true.
2139
+ * It performs a shallow comparison using absoluteCompare if no keys are provided.
2140
+ *
2141
+ * Example:
2142
+ * const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2143
+ * const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2144
+ * const keysToCompare = ['name', 'address.city', 'address.zip'];
2145
+ * const result = ObjectUtils.selectiveCompare(objA, objB, keysToCompare);
2146
+ * console.log(result); // Output: true
2147
+ *
2148
+ * const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
2149
+ * const result2 = ObjectUtils.selectiveCompare(objA, objC, keysToCompare);
2150
+ * console.log(result2); // Output: false
2151
+ *
2152
+ * @param {object} a - The first object to compare.
2153
+ * @param {object} b - The second object to compare.
2154
+ * @param {string[]} [keysToCompare] - The keys to compare. If not provided, performs a shallow comparison using absoluteCompare.
2155
+ * @returns {boolean} True if all specified properties are equal, false otherwise.
2156
+ */
2157
+ }, {
2158
+ key: "selectiveCompare",
2159
+ value: function selectiveCompare(a, b, keysToCompare) {
2160
+ if (a === b) return true;
2161
+ if (!a || !b || _typeof(a) !== 'object' || _typeof(b) !== 'object') return false;
2162
+ if (!keysToCompare) return this.absoluteCompare(a, b, 1); // If no keys are provided, the comparison is limited to one depth level.
2163
+ var _iterator2 = _createForOfIteratorHelper$g(keysToCompare),
2164
+ _step2;
2165
+ try {
2166
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2167
+ var key = _step2.value;
2168
+ var aValue = this.getNestedValue(a, key);
2169
+ var bValue = this.getNestedValue(b, key);
2170
+ var isObject = _typeof(aValue) === 'object' && aValue !== null && _typeof(bValue) === 'object' && bValue !== null;
2171
+
2172
+ // If the current key is an object, they are compared in one further level only.
2173
+ if (isObject && !this.absoluteCompare(aValue, bValue, 1)) return false;
2174
+ if (!isObject && aValue !== bValue) return false;
2175
+ }
2176
+ } catch (err) {
2177
+ _iterator2.e(err);
2178
+ } finally {
2179
+ _iterator2.f();
2180
+ }
2181
+ return true;
2182
+ }
2085
2183
  }]);
2086
2184
  }();
2087
2185
 
@@ -2684,9 +2782,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
2684
2782
  }
2685
2783
  var ZIndexUtils = handler();
2686
2784
 
2687
- function _createForOfIteratorHelper$f(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$f(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
2688
- function _unsupportedIterableToArray$f(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$f(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$f(o, minLen); }
2689
- function _arrayLikeToArray$f(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2785
+ function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
2786
+ function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); 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$f(r, a) : void 0; } }
2787
+ function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
2690
2788
  var FilterService = {
2691
2789
  filter: function filter(value, fields, filterValue, filterMatchMode, filterLocale) {
2692
2790
  var filteredItems = [];
@@ -4408,7 +4506,14 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
4408
4506
  }
4409
4507
  if (!listenerRef.current && targetRef.current) {
4410
4508
  var hideOnScroll = context ? context.hideOverlaysOnDocumentScrolling : PrimeReact.hideOverlaysOnDocumentScrolling;
4411
- var nodes = scrollableParentsRef.current = DomHandler.getScrollableParents(targetRef.current, hideOnScroll);
4509
+ var nodes = scrollableParentsRef.current = DomHandler.getScrollableParents(targetRef.current);
4510
+
4511
+ // Ensure window/body is always included as fallback
4512
+ if (!nodes.some(function (node) {
4513
+ return node === document.body || node === window;
4514
+ })) {
4515
+ nodes.push(hideOnScroll ? window : document.body);
4516
+ }
4412
4517
  listenerRef.current = function (event) {
4413
4518
  return listener && listener(event);
4414
4519
  };
@@ -4500,19 +4605,20 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
4500
4605
  type: 'outside',
4501
4606
  valid: event.which !== 3 && isOutsideClicked(event)
4502
4607
  });
4503
- }
4608
+ },
4609
+ when: when
4504
4610
  }),
4505
4611
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
4506
4612
  bindDocumentClickListener = _useEventListener2[0],
4507
4613
  unbindDocumentClickListener = _useEventListener2[1];
4508
4614
  var _useResizeListener = useResizeListener({
4509
- target: 'window',
4510
4615
  listener: function listener(event) {
4511
4616
  _listener && _listener(event, {
4512
4617
  type: 'resize',
4513
4618
  valid: !DomHandler.isTouchDevice()
4514
4619
  });
4515
- }
4620
+ },
4621
+ when: when
4516
4622
  }),
4517
4623
  _useResizeListener2 = _slicedToArray(_useResizeListener, 2),
4518
4624
  bindWindowResizeListener = _useResizeListener2[0],
@@ -4525,7 +4631,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
4525
4631
  type: 'orientationchange',
4526
4632
  valid: true
4527
4633
  });
4528
- }
4634
+ },
4635
+ when: when
4529
4636
  }),
4530
4637
  _useEventListener4 = _slicedToArray(_useEventListener3, 2),
4531
4638
  bindWindowOrientationChangeListener = _useEventListener4[0],
@@ -4537,7 +4644,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
4537
4644
  type: 'scroll',
4538
4645
  valid: true
4539
4646
  });
4540
- }
4647
+ },
4648
+ when: when
4541
4649
  }),
4542
4650
  _useOverlayScrollList2 = _slicedToArray(_useOverlayScrollList, 2),
4543
4651
  bindOverlayScrollListener = _useOverlayScrollList2[0],
@@ -6786,7 +6894,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
6786
6894
  }, [props.value, props.defaultValue]);
6787
6895
  var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
6788
6896
  React__namespace.useEffect(function () {
6789
- if (isFilled) {
6897
+ var _elementRef$current;
6898
+ if (isFilled || (_elementRef$current = elementRef.current) !== null && _elementRef$current !== void 0 && _elementRef$current.value) {
6790
6899
  DomHandler.addClass(elementRef.current, 'p-filled');
6791
6900
  } else {
6792
6901
  DomHandler.removeClass(elementRef.current, 'p-filled');
@@ -8151,7 +8260,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
8151
8260
  var type = _ref.type,
8152
8261
  valid = _ref.valid;
8153
8262
  if (valid) {
8154
- type === 'outside' ? !isInputClicked(event) && hide() : hide();
8263
+ if (type === 'outside') {
8264
+ if (!isInputClicked(event)) {
8265
+ hide();
8266
+ }
8267
+ } else if (context.hideOverlaysOnDocumentScrolling) {
8268
+ hide();
8269
+ } else if (!DomHandler.isDocument(event.target)) {
8270
+ alignOverlay();
8271
+ }
8155
8272
  }
8156
8273
  },
8157
8274
  when: overlayVisibleState
@@ -8327,6 +8444,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
8327
8444
  }
8328
8445
  };
8329
8446
  var removeItem = function removeItem(event, index) {
8447
+ if (props.disabled || props.readOnly) {
8448
+ return;
8449
+ }
8330
8450
  var removedValue = props.value[index];
8331
8451
  var newValue = props.value.filter(function (_, i) {
8332
8452
  return index !== i;
@@ -8769,6 +8889,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
8769
8889
  listId: listId,
8770
8890
  onItemClick: selectItem,
8771
8891
  selectedItem: selectedItem,
8892
+ onOverlayHide: hide,
8772
8893
  onClick: onPanelClick,
8773
8894
  getOptionGroupLabel: getOptionGroupLabel,
8774
8895
  getOptionGroupChildren: getOptionGroupChildren,
@@ -9290,7 +9411,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
9290
9411
  onClick: function onClick(event) {
9291
9412
  return itemClick(event, item);
9292
9413
  },
9293
- 'aria-disabled': item.disabled
9414
+ 'aria-disabled': item.disabled,
9415
+ tabIndex: item.disabled ? -1 : undefined
9294
9416
  }, ptm('action'));
9295
9417
  var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, label);
9296
9418
  if (item.template) {
@@ -9656,9 +9778,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
9656
9778
 
9657
9779
  function ownKeys$1K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9658
9780
  function _objectSpread$1K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9659
- function _createForOfIteratorHelper$e(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$e(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
9660
- function _unsupportedIterableToArray$e(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$e(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$e(o, minLen); }
9661
- function _arrayLikeToArray$e(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9781
+ function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
9782
+ function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); 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$e(r, a) : void 0; } }
9783
+ function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9662
9784
  var Calendar = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
9663
9785
  var mergeProps = useMergeProps();
9664
9786
  var context = React__namespace.useContext(PrimeReactContext);
@@ -9695,7 +9817,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
9695
9817
  isUnstyled = _CalendarBase$setMeta.isUnstyled;
9696
9818
  useGlobalOnEscapeKey({
9697
9819
  callback: function callback() {
9698
- hide();
9820
+ hide(null, reFocusInputField);
9699
9821
  },
9700
9822
  when: overlayVisibleState && overlayDisplayOrder,
9701
9823
  priority: [ESC_KEY_HANDLING_PRIORITIES.OVERLAY_PANEL, overlayDisplayOrder]
@@ -9746,7 +9868,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
9746
9868
  var type = _ref.type,
9747
9869
  valid = _ref.valid;
9748
9870
  if (valid) {
9749
- type === 'outside' ? !isOverlayClicked.current && !isNavIconClicked(event.target) && hide('outside') : hide();
9871
+ if (type === 'outside') {
9872
+ if (!isOverlayClicked.current && !isNavIconClicked(event.target)) {
9873
+ hide('outside');
9874
+ }
9875
+ } else if (context.hideOverlaysOnDocumentScrolling) {
9876
+ hide();
9877
+ } else if (!DomHandler.isDocument(event.target)) {
9878
+ alignOverlay();
9879
+ }
9750
9880
  }
9751
9881
  isOverlayClicked.current = false;
9752
9882
  },
@@ -14553,9 +14683,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
14553
14683
  return element;
14554
14684
  });
14555
14685
 
14556
- function _createForOfIteratorHelper$d(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$d(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
14557
- function _unsupportedIterableToArray$d(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$d(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$d(o, minLen); }
14558
- function _arrayLikeToArray$d(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14686
+ function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
14687
+ function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); 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$d(r, a) : void 0; } }
14688
+ function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14559
14689
  function ownKeys$1H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14560
14690
  function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14561
14691
  var CascadeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
@@ -14600,8 +14730,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
14600
14730
  target: elementRef,
14601
14731
  overlay: overlayRef,
14602
14732
  listener: function listener(event, _ref) {
14603
- var valid = _ref.valid;
14604
- valid && hide();
14733
+ var valid = _ref.valid,
14734
+ type = _ref.type;
14735
+ if (valid) {
14736
+ if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
14737
+ hide();
14738
+ } else if (!DomHandler.isDocument(event.target)) {
14739
+ alignOverlay();
14740
+ }
14741
+ }
14605
14742
  },
14606
14743
  when: overlayVisibleState
14607
14744
  }),
@@ -15212,7 +15349,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
15212
15349
  return props.checked === props.trueValue;
15213
15350
  };
15214
15351
  var _onChange = function onChange(event) {
15215
- if (props.disabled || props.readonly) {
15352
+ if (props.disabled || props.readOnly) {
15216
15353
  return;
15217
15354
  }
15218
15355
  if (props.onChange) {
@@ -15396,6 +15533,10 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
15396
15533
  _React$useState2 = _slicedToArray(_React$useState, 2),
15397
15534
  visibleState = _React$useState2[0],
15398
15535
  setVisibleState = _React$useState2[1];
15536
+ var _React$useState3 = React__namespace.useState(props.id),
15537
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
15538
+ idState = _React$useState4[0],
15539
+ setIdState = _React$useState4[1];
15399
15540
  var _ChipBase$setMetaData = ChipBase.setMetaData({
15400
15541
  props: props
15401
15542
  }),
@@ -15413,6 +15554,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
15413
15554
  var close = function close(event) {
15414
15555
  var result = true;
15415
15556
  if (props.onRemove) {
15557
+ event.stopPropagation();
15416
15558
  result = props.onRemove({
15417
15559
  originalEvent: event,
15418
15560
  value: props.label || props.image || props.icon
@@ -15432,7 +15574,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
15432
15574
  onKeyDown: onKeyDown
15433
15575
  }, ptm('removeIcon'));
15434
15576
  var icon = props.removeIcon || /*#__PURE__*/React__namespace.createElement(TimesCircleIcon, _extends({}, removeIconProps, {
15435
- key: UniqueComponentId('removeIcon')
15577
+ key: "".concat(idState, "-removeIcon")
15436
15578
  }));
15437
15579
  if (props.image) {
15438
15580
  var imageProps = mergeProps({
@@ -15442,7 +15584,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
15442
15584
  content.push(/*#__PURE__*/React__namespace.createElement("img", _extends({
15443
15585
  alt: props.imageAlt
15444
15586
  }, imageProps, {
15445
- key: UniqueComponentId('image')
15587
+ key: "".concat(idState, "-image")
15446
15588
  })));
15447
15589
  } else if (props.icon) {
15448
15590
  var chipIconProps = mergeProps({
@@ -15493,6 +15635,14 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
15493
15635
  }
15494
15636
  };
15495
15637
  });
15638
+ useMountEffect(function () {
15639
+ if (!idState) {
15640
+ setIdState(UniqueComponentId());
15641
+ }
15642
+ });
15643
+ if (!idState) {
15644
+ return null;
15645
+ }
15496
15646
  return visibleState && createElement();
15497
15647
  }));
15498
15648
  Chip.displayName = 'Chip';
@@ -15601,7 +15751,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
15601
15751
  var listRef = React__namespace.useRef(null);
15602
15752
  var inputRef = React__namespace.useRef(props.inputRef);
15603
15753
  var removeItem = function removeItem(event, index) {
15604
- if (props.disabled && props.readOnly) {
15754
+ if (props.disabled || props.readOnly) {
15605
15755
  return;
15606
15756
  }
15607
15757
  var values = _toConsumableArray(props.value);
@@ -16134,8 +16284,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
16134
16284
  target: elementRef,
16135
16285
  overlay: overlayRef,
16136
16286
  listener: function listener(event, _ref) {
16137
- var valid = _ref.valid;
16138
- valid && hide();
16287
+ var valid = _ref.valid,
16288
+ type = _ref.type;
16289
+ if (valid) {
16290
+ if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
16291
+ hide();
16292
+ } else if (!DomHandler.isDocument(event.target)) {
16293
+ alignOverlay();
16294
+ }
16295
+ }
16139
16296
  },
16140
16297
  when: overlayVisibleState
16141
16298
  }),
@@ -16186,6 +16343,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
16186
16343
  hueDragging.current = true;
16187
16344
  pickHue(event);
16188
16345
  !isUnstyled && DomHandler.addClass(elementRef.current, 'p-colorpicker-dragging');
16346
+ event.preventDefault();
16189
16347
  };
16190
16348
  var getPositionY = function getPositionY(event) {
16191
16349
  if (event.pageY !== undefined) return event.pageY;else if (event.changedTouches !== undefined) return event.changedTouches[0].pageY;else return 0;
@@ -18007,9 +18165,17 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
18007
18165
  var type = _ref.type,
18008
18166
  valid = _ref.valid;
18009
18167
  if (valid) {
18010
- type === 'outside' ? props.dismissable && !isPanelClicked.current && hide('hide') : hide('hide');
18168
+ if (type === 'outside') {
18169
+ if (props.dismissable && !isPanelClicked.current) {
18170
+ hide('hide');
18171
+ }
18172
+ isPanelClicked.current = false;
18173
+ } else if (context.hideOverlaysOnDocumentScrolling) {
18174
+ hide('hide');
18175
+ } else if (!DomHandler.isDocument(event.target)) {
18176
+ align();
18177
+ }
18011
18178
  }
18012
- isPanelClicked.current = false;
18013
18179
  },
18014
18180
  when: visibleState
18015
18181
  }),
@@ -20661,7 +20827,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
20661
20827
  if (data) {
20662
20828
  var filteredData = parseValue(data);
20663
20829
  if (filteredData != null) {
20664
- if (isFloat(data)) {
20830
+ if (isFloat(filteredData)) {
20665
20831
  var _formattedValue2 = formatValue(filteredData);
20666
20832
  inputRef.current.value = _formattedValue2;
20667
20833
  updateModel(event, filteredData);
@@ -20773,8 +20939,11 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
20773
20939
  newValueStr = insertText(inputValue, text, selectionStart, selectionEnd);
20774
20940
  updateValue(event, newValueStr, text, 'insert');
20775
20941
  } else if (decimalCharIndex === -1 && (maxFractionDigits || props.maxFractionDigits)) {
20776
- newValueStr = insertText(inputValue, text, selectionStart, selectionEnd);
20777
- updateValue(event, newValueStr, text, 'insert');
20942
+ var allowedDecimal = inputMode !== 'numeric' || inputMode === 'numeric' && (props.min || props.max);
20943
+ if (allowedDecimal) {
20944
+ newValueStr = insertText(inputValue, text, selectionStart, selectionEnd);
20945
+ updateValue(event, newValueStr, text, 'insert');
20946
+ }
20778
20947
  }
20779
20948
  } else {
20780
20949
  var operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
@@ -22183,9 +22352,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
22183
22352
  }));
22184
22353
  DropdownPanel.displayName = 'DropdownPanel';
22185
22354
 
22186
- function _createForOfIteratorHelper$c(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$c(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
22187
- function _unsupportedIterableToArray$c(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$c(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$c(o, minLen); }
22188
- function _arrayLikeToArray$c(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
22355
+ function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
22356
+ function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); 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$c(r, a) : void 0; } }
22357
+ function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
22189
22358
  function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22190
22359
  function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22191
22360
  var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
@@ -22245,7 +22414,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
22245
22414
  var type = _ref.type,
22246
22415
  valid = _ref.valid;
22247
22416
  if (valid) {
22248
- type === 'outside' ? !isClearClicked(event) && hide() : hide();
22417
+ if (type === 'outside') {
22418
+ if (!isClearClicked(event)) {
22419
+ hide();
22420
+ }
22421
+ } else if (context.hideOverlaysOnDocumentScrolling) {
22422
+ hide();
22423
+ } else if (!DomHandler.isDocument(event.target)) {
22424
+ alignOverlay();
22425
+ }
22249
22426
  }
22250
22427
  },
22251
22428
  when: overlayVisibleState
@@ -22444,12 +22621,14 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
22444
22621
  case 'ArrowRight':
22445
22622
  onArrowLeftKey(event, true);
22446
22623
  break;
22447
- case 'Escape':
22448
22624
  case 'Enter':
22449
22625
  case 'NumpadEnter':
22450
22626
  onEnterKey(event);
22451
22627
  event.preventDefault();
22452
22628
  break;
22629
+ case 'Escape':
22630
+ onEscapeKey(event);
22631
+ break;
22453
22632
  }
22454
22633
  };
22455
22634
  var hasFocusableElements = function hasFocusableElements() {
@@ -22969,9 +23148,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
22969
23148
  virtualScrollerRef.current && virtualScrollerRef.current.scrollInView(0);
22970
23149
  }, [filterState]);
22971
23150
  useUpdateEffect(function () {
22972
- if (filterState && (!props.options || props.options.length === 0)) {
22973
- setFilterState('');
22974
- }
22975
23151
  updateInputField();
22976
23152
  if (inputRef.current) {
22977
23153
  inputRef.current.selectedIndex = 1;
@@ -23194,6 +23370,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
23194
23370
  "in": overlayVisibleState,
23195
23371
  isOptionDisabled: isOptionDisabled,
23196
23372
  isSelected: isSelected,
23373
+ onOverlayHide: hide,
23197
23374
  onClick: onPanelClick,
23198
23375
  onEnter: onOverlayEnter,
23199
23376
  onEntered: onOverlayEntered,
@@ -23897,33 +24074,26 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
23897
24074
  }
23898
24075
  });
23899
24076
 
23900
- function _objectWithoutPropertiesLoose(source, excluded) {
23901
- if (source == null) return {};
23902
- var target = {};
23903
- var sourceKeys = Object.keys(source);
23904
- var key, i;
23905
- for (i = 0; i < sourceKeys.length; i++) {
23906
- key = sourceKeys[i];
23907
- if (excluded.indexOf(key) >= 0) continue;
23908
- target[key] = source[key];
24077
+ function _objectWithoutPropertiesLoose(r, e) {
24078
+ if (null == r) return {};
24079
+ var t = {};
24080
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
24081
+ if (-1 !== e.indexOf(n)) continue;
24082
+ t[n] = r[n];
23909
24083
  }
23910
- return target;
24084
+ return t;
23911
24085
  }
23912
24086
 
23913
- function _objectWithoutProperties(source, excluded) {
23914
- if (source == null) return {};
23915
- var target = _objectWithoutPropertiesLoose(source, excluded);
23916
- var key, i;
24087
+ function _objectWithoutProperties(e, t) {
24088
+ if (null == e) return {};
24089
+ var o,
24090
+ r,
24091
+ i = _objectWithoutPropertiesLoose(e, t);
23917
24092
  if (Object.getOwnPropertySymbols) {
23918
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
23919
- for (i = 0; i < sourceSymbolKeys.length; i++) {
23920
- key = sourceSymbolKeys[i];
23921
- if (excluded.indexOf(key) >= 0) continue;
23922
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
23923
- target[key] = source[key];
23924
- }
24093
+ var n = Object.getOwnPropertySymbols(e);
24094
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
23925
24095
  }
23926
- return target;
24096
+ return i;
23927
24097
  }
23928
24098
 
23929
24099
  var BarsIcon = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
@@ -24080,7 +24250,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24080
24250
  onChange(event);
24081
24251
  };
24082
24252
  var onChange = function onChange(event) {
24083
- if (props.disabled || props.readonly) {
24253
+ if (props.disabled || props.readOnly) {
24084
24254
  return;
24085
24255
  }
24086
24256
  if (props.onChange) {
@@ -24183,7 +24353,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24183
24353
  onBlur: onBlur,
24184
24354
  onChange: onChange,
24185
24355
  disabled: props.disabled,
24186
- readOnly: props.readonly,
24356
+ readOnly: props.readOnly,
24187
24357
  required: props.required,
24188
24358
  tabIndex: props.tabIndex,
24189
24359
  className: cx('input')
@@ -24256,7 +24426,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24256
24426
 
24257
24427
  function ownKeys$1i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
24258
24428
  function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24259
- var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
24429
+ var Cell = function Cell(props) {
24260
24430
  var mergeProps = useMergeProps();
24261
24431
  var _React$useState = React__namespace.useState(props.editing),
24262
24432
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -24284,13 +24454,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24284
24454
  var getColumnProp = function getColumnProp(name) {
24285
24455
  return ColumnBase.getCProp(props.column, name);
24286
24456
  };
24287
- var getColumnProps = function getColumnProps() {
24288
- return ColumnBase.getCProps(props.column);
24289
- };
24290
24457
  var getColumnPTOptions = function getColumnPTOptions(key) {
24291
- var cProps = getColumnProps();
24292
24458
  var columnMetaData = {
24293
- props: cProps,
24459
+ props: props.cProps,
24294
24460
  parent: props.metaData,
24295
24461
  hostName: props.hostName,
24296
24462
  state: {
@@ -24306,10 +24472,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24306
24472
  };
24307
24473
  return mergeProps(ptm("column.".concat(key), {
24308
24474
  column: columnMetaData
24309
- }), ptm("column.".concat(key), columnMetaData), ptmo(cProps, key, columnMetaData));
24475
+ }), ptm("column.".concat(key), columnMetaData), ptmo(props.cProps, key, columnMetaData));
24310
24476
  };
24311
- var field = getColumnProp('field') || "field_".concat(props.index);
24312
- var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
24313
24477
  var isEditable = function isEditable() {
24314
24478
  return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
24315
24479
  };
@@ -24334,34 +24498,22 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24334
24498
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
24335
24499
  bindDocumentClickListener = _useEventListener2[0],
24336
24500
  unbindDocumentClickListener = _useEventListener2[1];
24337
- var isSelected = function isSelected() {
24338
- return props.selection ? props.selection instanceof Array ? findIndex(props.selection) > -1 : equals(props.selection) : false;
24339
- };
24340
- var equalsData = function equalsData(data) {
24341
- return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
24342
- };
24343
- var equals = function equals(selectedCell) {
24344
- return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
24345
- };
24346
24501
  var isOutsideClicked = function isOutsideClicked(target) {
24347
24502
  return elementRef.current && !(elementRef.current.isSameNode(target) || elementRef.current.contains(target));
24348
24503
  };
24349
- var getVirtualScrollerOption = function getVirtualScrollerOption(option) {
24350
- return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
24351
- };
24352
24504
  var getStyle = function getStyle() {
24353
24505
  var bodyStyle = getColumnProp('bodyStyle');
24354
24506
  var columnStyle = getColumnProp('style');
24355
- return getColumnProp('frozen') ? Object.assign({}, columnStyle, bodyStyle, styleObjectState) : Object.assign({}, columnStyle, bodyStyle);
24507
+ return props.frozenCol ? Object.assign({}, columnStyle, bodyStyle, styleObjectState) : Object.assign({}, columnStyle, bodyStyle);
24356
24508
  };
24357
24509
  var getCellParams = function getCellParams() {
24358
24510
  return {
24359
- value: resolveFieldData(),
24360
- field: field,
24511
+ value: props.resolveFieldData(),
24512
+ field: props.field,
24361
24513
  rowData: props.rowData,
24362
24514
  rowIndex: props.rowIndex,
24363
24515
  cellIndex: props.index,
24364
- selected: isSelected(),
24516
+ selected: props.isCellSelected,
24365
24517
  column: props.column,
24366
24518
  props: props
24367
24519
  };
@@ -24372,20 +24524,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24372
24524
  originalEvent: event
24373
24525
  }, params);
24374
24526
  };
24375
- var resolveFieldData = function resolveFieldData(data) {
24376
- return ObjectUtils.resolveFieldData(data || props.rowData, field);
24377
- };
24378
- var getEditingRowData = function getEditingRowData() {
24379
- return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
24380
- };
24381
- var getTabIndex = function getTabIndex(cellSelected) {
24382
- return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && props.index === 0 ? props.tabIndex : -1 : null;
24383
- };
24384
- var findIndex = function findIndex(collection) {
24385
- return (collection || []).findIndex(function (data) {
24386
- return equals(data);
24387
- });
24388
- };
24389
24527
  var closeCell = function closeCell(event) {
24390
24528
  var params = getCellCallbackParams(event);
24391
24529
  var onBeforeCellEditHide = getColumnProp('onBeforeCellEditHide');
@@ -24406,7 +24544,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24406
24544
  var switchCellToViewMode = function switchCellToViewMode(event, submit) {
24407
24545
  var callbackParams = getCellCallbackParams(event);
24408
24546
  var newRowData = _objectSpread$1i({}, editingRowDataStateRef.current);
24409
- var newValue = resolveFieldData(newRowData);
24547
+ var newValue = props.resolveFieldData(newRowData);
24410
24548
  var params = _objectSpread$1i(_objectSpread$1i({}, callbackParams), {}, {
24411
24549
  newRowData: newRowData,
24412
24550
  newValue: newValue
@@ -24431,128 +24569,20 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24431
24569
  }
24432
24570
  setEditingRowDataState(newRowData);
24433
24571
  };
24434
- var _findNextSelectableCell = function findNextSelectableCell(cell) {
24435
- var nextCell = cell.nextElementSibling;
24436
- return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : _findNextSelectableCell(nextCell) : null;
24437
- };
24438
- var _findPrevSelectableCell = function findPrevSelectableCell(cell) {
24439
- var prevCell = cell.previousElementSibling;
24440
- return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : _findPrevSelectableCell(prevCell) : null;
24441
- };
24442
- var _findDownSelectableCell = function findDownSelectableCell(cell) {
24443
- var downRow = cell.parentElement.nextElementSibling;
24444
- var downCell = downRow ? downRow.children[props.index] : null;
24445
- return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : _findDownSelectableCell(downCell) : null;
24446
- };
24447
- var _findUpSelectableCell = function findUpSelectableCell(cell) {
24448
- var upRow = cell.parentElement.previousElementSibling;
24449
- var upCell = upRow ? upRow.children[props.index] : null;
24450
- return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : _findUpSelectableCell(upCell) : null;
24451
- };
24452
- var changeTabIndex = function changeTabIndex(currentCell, nextCell) {
24453
- if (currentCell && nextCell) {
24454
- currentCell.tabIndex = -1;
24455
- nextCell.tabIndex = props.tabIndex;
24456
- }
24457
- };
24458
- var focusOnElement = function focusOnElement() {
24459
- clearTimeout(focusTimeout.current);
24460
- focusTimeout.current = setTimeout(function () {
24461
- if (editingState) {
24462
- var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
24463
- focusableEl && focusableEl.focus();
24464
- }
24465
- keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
24466
- }, 1);
24467
- };
24468
- var focusOnInit = function focusOnInit() {
24469
- clearTimeout(initFocusTimeout.current);
24470
- initFocusTimeout.current = setTimeout(function () {
24471
- var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
24472
- focusableEl && focusableEl.focus();
24473
- }, 1);
24474
- };
24475
- var updateStickyPosition = function updateStickyPosition() {
24476
- if (getColumnProp('frozen')) {
24477
- var styleObject = _objectSpread$1i({}, styleObjectState);
24478
- var align = getColumnProp('alignFrozen');
24479
- if (align === 'right') {
24480
- var right = 0;
24481
- var next = elementRef.current && elementRef.current.nextElementSibling;
24482
- if (next && next.classList.contains('p-frozen-column')) {
24483
- right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
24484
- }
24485
- styleObject.right = right + 'px';
24486
- } else {
24487
- var left = 0;
24488
- var prev = elementRef.current && elementRef.current.previousElementSibling;
24489
- if (prev && prev.classList.contains('p-frozen-column')) {
24490
- left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
24491
- }
24492
- styleObject.left = left + 'px';
24493
- }
24494
- var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
24495
- !isSameStyle && setStyleObjectState(styleObject);
24496
- }
24497
- };
24498
24572
  var editorCallback = function editorCallback(val) {
24499
24573
  var editingRowData = _objectSpread$1i({}, editingRowDataState);
24500
- ObjectUtils.mutateFieldData(editingRowData, field, val);
24574
+ ObjectUtils.mutateFieldData(editingRowData, props.field, val);
24501
24575
  setEditingRowDataState(editingRowData);
24502
24576
 
24503
24577
  // update editing meta for complete methods on row mode
24504
- var currentData = getEditingRowData();
24578
+ var currentData = props.getEditingRowData();
24505
24579
  if (currentData) {
24506
- ObjectUtils.mutateFieldData(currentData, field, val);
24580
+ ObjectUtils.mutateFieldData(currentData, props.field, val);
24507
24581
  }
24508
24582
  editingRowDataStateRef.current = editingRowData;
24509
24583
  };
24510
24584
  var _onClick = function onClick(event) {
24511
- var params = getCellCallbackParams(event);
24512
- if (props.editMode !== 'row' && isEditable() && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.selected)) {
24513
- selfClick.current = true;
24514
- var onBeforeCellEditShow = getColumnProp('onBeforeCellEditShow');
24515
- var onCellEditInit = getColumnProp('onCellEditInit');
24516
- var cellEditValidatorEvent = getColumnProp('cellEditValidatorEvent');
24517
- if (onBeforeCellEditShow) {
24518
- // if user returns false do not show the editor
24519
- if (onBeforeCellEditShow(params) === false) {
24520
- return;
24521
- }
24522
-
24523
- // if user prevents default stop the editor
24524
- if (event && event.defaultPrevented) {
24525
- return;
24526
- }
24527
- }
24528
-
24529
- // If the data is sorted using sort icon, it has been added to wait for the sort operation when any cell is wanted to be opened.
24530
- setTimeout(function () {
24531
- setEditingState(true);
24532
- if (onCellEditInit) {
24533
- if (onCellEditInit(params) === false) {
24534
- return;
24535
- }
24536
-
24537
- // if user prevents default stop the editor
24538
- if (event && event.defaultPrevented) {
24539
- return;
24540
- }
24541
- }
24542
- if (cellEditValidatorEvent === 'click') {
24543
- bindDocumentClickListener();
24544
- overlayEventListener.current = function (e) {
24545
- if (!isOutsideClicked(e.target)) {
24546
- selfClick.current = true;
24547
- }
24548
- };
24549
- OverlayService.on('overlay-click', overlayEventListener.current);
24550
- }
24551
- }, 1);
24552
- }
24553
- if (props.allowCellSelection && props.onClick) {
24554
- props.onClick(params);
24555
- }
24585
+ props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState, selfClick, props.column, bindDocumentClickListener, overlayEventListener);
24556
24586
  };
24557
24587
  var _onMouseDown = function onMouseDown(event) {
24558
24588
  var params = getCellCallbackParams(event);
@@ -24576,7 +24606,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24576
24606
  cell = event.currentTarget;
24577
24607
  switch (event.code) {
24578
24608
  case 'ArrowLeft':
24579
- var prevCell = _findPrevSelectableCell(cell);
24609
+ var prevCell = props.findPrevSelectableCell(cell);
24580
24610
  if (prevCell) {
24581
24611
  changeTabIndex(cell, prevCell);
24582
24612
  prevCell.focus();
@@ -24584,7 +24614,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24584
24614
  event.preventDefault();
24585
24615
  break;
24586
24616
  case 'ArrowRight':
24587
- var nextCell = _findNextSelectableCell(cell);
24617
+ var nextCell = props.findNextSelectableCell(cell);
24588
24618
  if (nextCell) {
24589
24619
  changeTabIndex(cell, nextCell);
24590
24620
  nextCell.focus();
@@ -24592,7 +24622,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24592
24622
  event.preventDefault();
24593
24623
  break;
24594
24624
  case 'ArrowUp':
24595
- var upCell = _findUpSelectableCell(cell);
24625
+ var upCell = props.findUpSelectableCell(cell, index);
24596
24626
  if (upCell) {
24597
24627
  changeTabIndex(cell, upCell);
24598
24628
  upCell.focus();
@@ -24600,7 +24630,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24600
24630
  event.preventDefault();
24601
24631
  break;
24602
24632
  case 'ArrowDown':
24603
- var downCell = _findDownSelectableCell(cell);
24633
+ var downCell = props.findDownSelectableCell(cell, index);
24604
24634
  if (downCell) {
24605
24635
  changeTabIndex(cell, downCell);
24606
24636
  downCell.focus();
@@ -24639,13 +24669,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24639
24669
  index: props.rowIndex
24640
24670
  });
24641
24671
  };
24642
- var onCheckboxChange = function onCheckboxChange(event) {
24643
- props.onCheckboxChange({
24644
- originalEvent: event,
24645
- data: props.rowData,
24646
- index: props.rowIndex
24647
- });
24648
- };
24649
24672
  var onRowToggle = function onRowToggle(event) {
24650
24673
  props.onRowToggle({
24651
24674
  originalEvent: event,
@@ -24658,8 +24681,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24658
24681
  props.onRowEditInit({
24659
24682
  originalEvent: event,
24660
24683
  data: props.rowData,
24661
- newData: getEditingRowData(),
24662
- field: field,
24684
+ newData: props.getEditingRowData(),
24685
+ field: props.field,
24663
24686
  index: props.rowIndex
24664
24687
  });
24665
24688
  };
@@ -24667,32 +24690,26 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24667
24690
  props.onRowEditSave({
24668
24691
  originalEvent: event,
24669
24692
  data: props.rowData,
24670
- newData: getEditingRowData(),
24671
- field: field,
24693
+ newData: props.getEditingRowData(),
24694
+ field: props.field,
24672
24695
  index: props.rowIndex
24673
24696
  });
24674
- focusOnInit();
24697
+ props.focusOnInit(initFocusTimeout, elementRef);
24675
24698
  };
24676
24699
  var onRowEditCancel = function onRowEditCancel(event) {
24677
24700
  props.onRowEditCancel({
24678
24701
  originalEvent: event,
24679
24702
  data: props.rowData,
24680
- newData: getEditingRowData(),
24681
- field: field,
24703
+ newData: props.getEditingRowData(),
24704
+ field: props.field,
24682
24705
  index: props.rowIndex
24683
24706
  });
24684
- focusOnInit();
24707
+ props.focusOnInit();
24685
24708
  };
24686
24709
  React__namespace.useEffect(function () {
24687
- if (getColumnProp('frozen')) {
24688
- updateStickyPosition();
24689
- }
24690
- });
24691
- React__namespace.useEffect(function () {
24692
- if (props.editMode === 'cell' || props.editMode === 'row') {
24693
- focusOnElement();
24694
- }
24695
- }, [props.editMode, props.editing, editingState]); // eslint-disable-line react-hooks/exhaustive-deps
24710
+ if (props.frozenCol) props.updateStickyPosition(elementRef, props.frozenCol, props.alignFrozenCol, styleObjectState, setStyleObjectState);
24711
+ if (props.editMode === 'cell' || props.editMode === 'row') props.focusOnElement(focusTimeout, editingState, elementRef, keyHelperRef);
24712
+ }, [props.editMode, props.editing, editingState, props.frozenCol, props.alignFrozenCol]); // eslint-disable-line react-hooks/exhaustive-deps
24696
24713
 
24697
24714
  React__namespace.useEffect(function () {
24698
24715
  if (props.editMode === 'row' && props.editing !== editingState) {
@@ -24701,7 +24718,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24701
24718
  }, [props.editMode, props.editing, editingState]);
24702
24719
  useUpdateEffect(function () {
24703
24720
  if (props.editMode === 'cell' || props.editMode === 'row') {
24704
- var editingRowData = getEditingRowData();
24721
+ var editingRowData = props.getEditingRowData();
24705
24722
  setEditingRowDataState(editingRowData);
24706
24723
  editingRowDataStateRef.current = editingRowData;
24707
24724
  }
@@ -24711,7 +24728,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24711
24728
  var callbackParams = getCellCallbackParams();
24712
24729
  var params = _objectSpread$1i(_objectSpread$1i({}, callbackParams), {}, {
24713
24730
  editing: editingState,
24714
- editingKey: editingKey
24731
+ editingKey: props.editingKey
24715
24732
  });
24716
24733
  props.onEditingMetaChange(params);
24717
24734
  }
@@ -24724,16 +24741,16 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24724
24741
  }
24725
24742
  });
24726
24743
  var createLoading = function createLoading() {
24727
- var options = getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
24744
+ var options = props.getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
24728
24745
  cellIndex: props.index,
24729
24746
  cellFirst: props.index === 0,
24730
- cellLast: props.index === getVirtualScrollerOption('columns').length - 1,
24747
+ cellLast: props.index === props.getVirtualScrollerOption('columns').length - 1,
24731
24748
  cellEven: props.index % 2 === 0,
24732
24749
  cellOdd: props.index % 2 !== 0,
24733
24750
  column: props.column,
24734
- field: field
24751
+ field: props.field
24735
24752
  });
24736
- var content = ObjectUtils.getJSXElement(getVirtualScrollerOption('loadingTemplate'), options);
24753
+ var content = ObjectUtils.getJSXElement(props.getVirtualScrollerOption('loadingTemplate'), options);
24737
24754
  var bodyCellProps = mergeProps(getColumnPTOptions('bodyCell'), {
24738
24755
  role: 'cell'
24739
24756
  });
@@ -24742,20 +24759,20 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24742
24759
  var createElement = function createElement() {
24743
24760
  var content;
24744
24761
  var editorKeyHelper;
24745
- var cellSelected = props.allowCellSelection && isSelected();
24762
+ var cellSelected = props.allowCellSelection && props.isCellSelected;
24746
24763
  var isRowEditor = props.editMode === 'row';
24747
- var tabIndex = getTabIndex(cellSelected);
24764
+ var tabIndex = props.getTabIndex(cellSelected, props.index);
24748
24765
  var selectionMode = getColumnProp('selectionMode');
24749
24766
  var rowReorder = getColumnProp('rowReorder');
24750
24767
  var header = getColumnProp('header');
24751
24768
  var body = getColumnProp('body');
24752
24769
  var editor = getColumnProp('editor');
24753
- var frozen = getColumnProp('frozen');
24770
+ var frozen = props.frozenCol;
24754
24771
  var align = getColumnProp('align');
24755
- var value = resolveFieldData();
24772
+ var value = props.resolveFieldData();
24756
24773
  var columnBodyOptions = {
24757
24774
  column: props.column,
24758
- field: field,
24775
+ field: props.field,
24759
24776
  rowIndex: props.rowIndex,
24760
24777
  frozenRow: props.frozenRow,
24761
24778
  props: props.tableProps
@@ -24780,12 +24797,12 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24780
24797
  if (showSelection) {
24781
24798
  var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
24782
24799
  var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
24783
- label = "".concat(props.selected ? ariaLabel('unselectRow') : ariaLabel('selectRow'), " ").concat(ariaLabelText);
24800
+ label = "".concat(props.isRowSelected ? ariaLabel('unselectRow') : ariaLabel('selectRow'), " ").concat(ariaLabelText);
24784
24801
  }
24785
24802
  content = showSelection && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React__namespace.createElement(RowRadioButton, {
24786
24803
  hostName: props.hostName,
24787
24804
  column: props.column,
24788
- checked: props.selected,
24805
+ checked: props.isRowSelected,
24789
24806
  disabled: !props.isSelectable({
24790
24807
  data: props.rowData,
24791
24808
  index: props.rowIndex
@@ -24800,12 +24817,12 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24800
24817
  }), selectionMode === 'multiple' && /*#__PURE__*/React__namespace.createElement(RowCheckbox, {
24801
24818
  hostName: props.hostName,
24802
24819
  column: props.column,
24803
- checked: props.selected,
24820
+ checked: props.isRowSelected,
24804
24821
  disabled: !props.isSelectable({
24805
24822
  data: props.rowData,
24806
24823
  index: props.rowIndex
24807
24824
  }),
24808
- onChange: onCheckboxChange,
24825
+ onChange: props.onCheckboxChange,
24809
24826
  tabIndex: props.tabIndex,
24810
24827
  ariaLabel: label,
24811
24828
  checkIcon: props.checkIcon,
@@ -24855,7 +24872,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24855
24872
  expanderProps.element = content;
24856
24873
  content = ObjectUtils.getJSXElement(body, props.rowData, {
24857
24874
  column: props.column,
24858
- field: field,
24875
+ field: props.field,
24859
24876
  rowIndex: props.rowIndex,
24860
24877
  frozenRow: props.frozenRow,
24861
24878
  props: props.tableProps,
@@ -24929,7 +24946,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24929
24946
  rowEditorProps.element = content;
24930
24947
  content = ObjectUtils.getJSXElement(body, props.rowData, {
24931
24948
  column: props.column,
24932
- field: field,
24949
+ field: props.field,
24933
24950
  rowIndex: props.rowIndex,
24934
24951
  frozenRow: props.frozenRow,
24935
24952
  props: props.tableProps,
@@ -24939,7 +24956,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24939
24956
  } else if (body && (!editingState || !editor)) {
24940
24957
  content = body ? ObjectUtils.getJSXElement(body, props.rowData, {
24941
24958
  column: props.column,
24942
- field: field,
24959
+ field: props.field,
24943
24960
  rowIndex: props.rowIndex,
24944
24961
  frozenRow: props.frozenRow,
24945
24962
  props: props.tableProps
@@ -24947,9 +24964,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
24947
24964
  } else if (editor && editingState) {
24948
24965
  content = ObjectUtils.getJSXElement(editor, {
24949
24966
  rowData: editingRowDataState,
24950
- value: resolveFieldData(editingRowDataState),
24967
+ value: props.resolveFieldData(editingRowDataState),
24951
24968
  column: props.column,
24952
- field: field,
24969
+ field: props.field,
24953
24970
  rowIndex: props.rowIndex,
24954
24971
  frozenRow: props.frozenRow,
24955
24972
  props: props.tableProps,
@@ -25017,7 +25034,22 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25017
25034
  ref: elementRef
25018
25035
  }, bodyCellProps), editorKeyHelper, title, content);
25019
25036
  };
25020
- return getVirtualScrollerOption('loading') ? createLoading() : createElement();
25037
+ return props.getVirtualScrollerOption('loading') ? createLoading() : createElement();
25038
+ };
25039
+
25040
+ // RadioCheckCell is used for the Radio and Checkbox selection and has the isRowSelected dependency
25041
+ var RadioCheckCell = /*#__PURE__*/React__namespace.memo(function (props) {
25042
+ return /*#__PURE__*/React__namespace.createElement(Cell, props);
25043
+ }, function (prevProps, nextProps) {
25044
+ var keysToCompare = ['isRowSelected', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData'];
25045
+ return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
25046
+ });
25047
+ RadioCheckCell.displayName = 'RadioCheckCell';
25048
+ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
25049
+ return /*#__PURE__*/React__namespace.createElement(Cell, props);
25050
+ }, function (prevProps, nextProps) {
25051
+ var keysToCompare = ['field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData', 'frozenCol', 'alignFrozenCol'];
25052
+ return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
25021
25053
  });
25022
25054
  BodyCell.displayName = 'BodyCell';
25023
25055
 
@@ -25033,6 +25065,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25033
25065
  var _props$ptCallbacks = props.ptCallbacks,
25034
25066
  ptm = _props$ptCallbacks.ptm,
25035
25067
  cx = _props$ptCallbacks.cx;
25068
+ var isRowSelected = !props.allowCellSelection && props.selected || props.contextMenuSelected;
25036
25069
  var getBodyRowPTOptions = function getBodyRowPTOptions(key) {
25037
25070
  return ptm(key, {
25038
25071
  parent: props.metaData,
@@ -25046,7 +25079,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25046
25079
  data: props.rowData,
25047
25080
  index: props.rowIndex
25048
25081
  }),
25049
- selected: !props.allowCellSelection && props.selected || props.contextMenuSelected,
25082
+ selected: isRowSelected,
25050
25083
  stripedRows: props.metaData.props.stripedRows
25051
25084
  }
25052
25085
  });
@@ -25075,10 +25108,10 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25075
25108
  return equals(rowData, data);
25076
25109
  });
25077
25110
  };
25078
- var changeTabIndex = function changeTabIndex(currentRow, nextRow) {
25079
- if (currentRow && nextRow) {
25080
- currentRow.tabIndex = -1;
25081
- nextRow.tabIndex = props.tabIndex;
25111
+ var changeTabIndex = function changeTabIndex(currentElement, nextElement) {
25112
+ if (currentElement && nextElement) {
25113
+ currentElement.tabIndex = -1;
25114
+ nextElement.tabIndex = props.tabIndex;
25082
25115
  }
25083
25116
  };
25084
25117
  var findFirstSelectableRow = function findFirstSelectableRow(row) {
@@ -25405,32 +25438,176 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25405
25438
  onEditChange(e, false);
25406
25439
  event.preventDefault();
25407
25440
  };
25441
+ var equalsDataCell = function equalsDataCell(data) {
25442
+ return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
25443
+ };
25444
+ var equalsCell = function equalsCell(selectedCell, field, colIndex) {
25445
+ return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsDataCell(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === colIndex);
25446
+ };
25447
+ var findIndexCell = function findIndexCell(collection, field, colIndex) {
25448
+ return (collection || []).findIndex(function (data) {
25449
+ return equalsCell(data, field, colIndex);
25450
+ });
25451
+ };
25452
+ var isCellSelected = function isCellSelected(selection, field, colIndex) {
25453
+ return selection ? selection instanceof Array ? findIndexCell(selection, field, colIndex) > -1 : equalsCell(selection, field, colIndex) : false;
25454
+ };
25455
+ var onCheckboxChange = function onCheckboxChange(event) {
25456
+ props.onCheckboxChange({
25457
+ originalEvent: event,
25458
+ data: props.rowData,
25459
+ index: props.rowIndex
25460
+ });
25461
+ };
25462
+ var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
25463
+ var getVirtualScrollerOption = React__namespace.useCallback(function (option) {
25464
+ return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
25465
+ }, [props.virtualScrollerOptions]);
25466
+ var getEditingRowData = function getEditingRowData() {
25467
+ return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
25468
+ };
25469
+ var getTabIndexCell = React__namespace.useCallback(function (cellSelected, cellIndex) {
25470
+ return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && cellIndex === 0 ? props.tabIndex : -1 : null;
25471
+ }, [props.allowCellSelection, props.rowIndex, props.tabIndex]);
25472
+ var findNextSelectableCell = React__namespace.useCallback(function (cell) {
25473
+ var nextCell = cell.nextElementSibling;
25474
+ return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : findNextSelectableCell(nextCell) : null;
25475
+ }, []);
25476
+ var findPrevSelectableCell = React__namespace.useCallback(function (cell) {
25477
+ var prevCell = cell.previousElementSibling;
25478
+ return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : findPrevSelectableCell(prevCell) : null;
25479
+ }, []);
25480
+ var findDownSelectableCell = React__namespace.useCallback(function (cell, cellIndex) {
25481
+ var downRow = cell.parentElement.nextElementSibling;
25482
+ var downCell = downRow ? downRow.children[cellIndex] : null;
25483
+ return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : findDownSelectableCell(downCell) : null;
25484
+ }, []);
25485
+ var findUpSelectableCell = React__namespace.useCallback(function (cell, cellIndex) {
25486
+ var upRow = cell.parentElement.previousElementSibling;
25487
+ var upCell = upRow ? upRow.children[cellIndex] : null;
25488
+ return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : findUpSelectableCell(upCell) : null;
25489
+ }, []);
25490
+ var focusOnElement = React__namespace.useCallback(function (focusTimeoutRef, editingState, elementRef, keyHelperRef) {
25491
+ clearTimeout(focusTimeoutRef.current);
25492
+ focusTimeoutRef.current = setTimeout(function () {
25493
+ if (editingState) {
25494
+ var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
25495
+ focusableEl && focusableEl.focus();
25496
+ }
25497
+ keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
25498
+ }, 1);
25499
+ }, [props.editMode]);
25500
+ var focusOnInit = React__namespace.useCallback(function (initFocusTimeoutRef, elementRef) {
25501
+ clearTimeout(initFocusTimeoutRef.current);
25502
+ initFocusTimeoutRef.current = setTimeout(function () {
25503
+ var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
25504
+ focusableEl && focusableEl.focus();
25505
+ }, 1);
25506
+ }, [props.editMode]);
25507
+ var updateStickyPosition = React__namespace.useCallback(function (elementRef, frozen, alignFrozen, styleObjectState, setStyleObjectState) {
25508
+ if (frozen) {
25509
+ var styleObject = _objectSpread$1h({}, styleObjectState);
25510
+ if (alignFrozen === 'right') {
25511
+ var right = 0;
25512
+ var next = elementRef.current && elementRef.current.nextElementSibling;
25513
+ if (next && next.classList.contains('p-frozen-column')) {
25514
+ right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
25515
+ }
25516
+ styleObject.right = right + 'px';
25517
+ } else {
25518
+ var left = 0;
25519
+ var prev = elementRef.current && elementRef.current.previousElementSibling;
25520
+ if (prev && prev.classList.contains('p-frozen-column')) {
25521
+ left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
25522
+ }
25523
+ styleObject.left = left + 'px';
25524
+ }
25525
+ var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
25526
+ !isSameStyle && setStyleObjectState(styleObject);
25527
+ }
25528
+ }, []);
25529
+ var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState, selfClick, column, bindDocumentClickListener, overlayEventListener) {
25530
+ if (props.editMode !== 'row' && isEditable && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.isRowSelected)) {
25531
+ selfClick.current = true;
25532
+ var onBeforeCellEditShow = getColumnProp(column, 'onBeforeCellEditShow');
25533
+ var onCellEditInit = getColumnProp(column, 'onCellEditInit');
25534
+ var cellEditValidatorEvent = getColumnProp(column, 'cellEditValidatorEvent');
25535
+ if (onBeforeCellEditShow) {
25536
+ // if user returns false do not show the editor
25537
+ if (onBeforeCellEditShow(params) === false) {
25538
+ return;
25539
+ }
25540
+
25541
+ // if user prevents default stop the editor
25542
+ if (event && event.defaultPrevented) {
25543
+ return;
25544
+ }
25545
+ }
25546
+
25547
+ // If the data is sorted using sort icon, it has been added to wait for the sort operation when any cell is wanted to be opened.
25548
+ setTimeout(function () {
25549
+ setEditingState(true);
25550
+ if (onCellEditInit) {
25551
+ if (onCellEditInit(params) === false) {
25552
+ return;
25553
+ }
25554
+
25555
+ // if user prevents default stop the editor
25556
+ if (event && event.defaultPrevented) {
25557
+ return;
25558
+ }
25559
+ }
25560
+ if (cellEditValidatorEvent === 'click') {
25561
+ bindDocumentClickListener();
25562
+ overlayEventListener.current = function (e) {
25563
+ if (!isOutsideClicked(e.target)) {
25564
+ selfClick.current = true;
25565
+ }
25566
+ };
25567
+ OverlayService.on('overlay-click', overlayEventListener.current);
25568
+ }
25569
+ }, 1);
25570
+ }
25571
+ if (props.allowCellSelection && props.onCellClick) {
25572
+ props.onCellClick(params);
25573
+ }
25574
+ };
25408
25575
  var createContent = function createContent() {
25409
25576
  return props.columns.map(function (col, i) {
25410
25577
  if (shouldRenderBodyCell(props.value, col, props.index)) {
25411
25578
  var key = "".concat(props.rowIndex, "_").concat(getColumnProp(col, 'columnKey') || getColumnProp(col, 'field'), "_").concat(i);
25412
25579
  var rowSpan = props.rowGroupMode === 'rowspan' ? calculateRowGroupSize(props.value, col, props.index) : null;
25413
- return /*#__PURE__*/React__namespace.createElement(BodyCell, {
25580
+ var field = getColumnProp(col, 'field') || "field_".concat(i);
25581
+ var resolveFieldData = function resolveFieldData(data) {
25582
+ return ObjectUtils.resolveFieldData(data || props.rowData, field);
25583
+ };
25584
+ var selectionMode = getColumnProp(col, 'selectionMode');
25585
+ var cellProps = mergeProps({
25414
25586
  hostName: props.hostName,
25415
- key: key,
25416
25587
  allowCellSelection: props.allowCellSelection,
25417
25588
  cellClassName: props.cellClassName,
25418
25589
  checkIcon: props.checkIcon,
25419
25590
  collapsedRowIcon: props.collapsedRowIcon,
25591
+ field: field,
25592
+ resolveFieldData: resolveFieldData,
25420
25593
  column: col,
25421
- compareSelectionBy: props.compareSelectionBy,
25594
+ cProps: props.colsProps[i],
25422
25595
  dataKey: props.dataKey,
25423
25596
  editMode: props.editMode,
25424
25597
  editing: editing,
25425
25598
  editingMeta: props.editingMeta,
25599
+ onEditingMetaChange: props.onEditingMetaChange,
25600
+ editingKey: editingKey,
25601
+ getEditingRowData: getEditingRowData,
25426
25602
  expanded: props.expanded,
25427
25603
  expandedRowIcon: props.expandedRowIcon,
25428
25604
  frozenRow: props.frozenRow,
25605
+ frozenCol: getColumnProp(col, 'frozen'),
25606
+ alignFrozenCol: getColumnProp(col, 'alignFrozen'),
25429
25607
  index: i,
25430
25608
  isSelectable: props.isSelectable,
25431
- onCheckboxChange: props.onCheckboxChange,
25432
- onClick: props.onCellClick,
25433
- onEditingMetaChange: props.onEditingMetaChange,
25609
+ onCheckboxChange: onCheckboxChange,
25610
+ onClick: onCellClick,
25434
25611
  onMouseDown: props.onCellMouseDown,
25435
25612
  onMouseUp: props.onCellMouseUp,
25436
25613
  onRadioChange: props.onRadioChange,
@@ -25446,20 +25623,31 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25446
25623
  rowIndex: props.rowIndex,
25447
25624
  rowSpan: rowSpan,
25448
25625
  selectOnEdit: props.selectOnEdit,
25449
- selected: props.selected,
25450
- selection: props.selection,
25626
+ isRowSelected: isRowSelected,
25627
+ isCellSelected: isCellSelected(props.selection, field, i),
25451
25628
  selectionAriaLabel: props.tableProps.selectionAriaLabel,
25452
25629
  showRowReorderElement: props.showRowReorderElement,
25453
25630
  showSelectionElement: props.showSelectionElement,
25454
25631
  tabIndex: props.tabIndex,
25632
+ getTabIndex: getTabIndexCell,
25455
25633
  tableProps: props.tableProps,
25456
25634
  tableSelector: props.tableSelector,
25457
25635
  value: props.value,
25458
- virtualScrollerOptions: props.virtualScrollerOptions,
25636
+ getVirtualScrollerOption: getVirtualScrollerOption,
25459
25637
  ptCallbacks: props.ptCallbacks,
25460
25638
  metaData: props.metaData,
25461
- unstyled: props.unstyled
25639
+ unstyled: props.unstyled,
25640
+ findNextSelectableCell: findNextSelectableCell,
25641
+ findPrevSelectableCell: findPrevSelectableCell,
25642
+ findDownSelectableCell: findDownSelectableCell,
25643
+ findUpSelectableCell: findUpSelectableCell,
25644
+ focusOnElement: focusOnElement,
25645
+ focusOnInit: focusOnInit,
25646
+ updateStickyPosition: updateStickyPosition
25462
25647
  });
25648
+ return /*#__PURE__*/React__namespace.createElement(React.Fragment, {
25649
+ key: key
25650
+ }, selectionMode ? /*#__PURE__*/React__namespace.createElement(RadioCheckCell, cellProps) : /*#__PURE__*/React__namespace.createElement(BodyCell, cellProps));
25463
25651
  }
25464
25652
  return null;
25465
25653
  });
@@ -25609,8 +25797,11 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25609
25797
  var getColumnProps = function getColumnProps(column) {
25610
25798
  return ColumnBase.getCProps(column);
25611
25799
  };
25800
+ var cProps = getColumnProps(props.column);
25801
+ var colsProps = props.columns ? props.columns.map(function (col) {
25802
+ return getColumnProps(col);
25803
+ }) : [];
25612
25804
  var getColumnPTOptions = function getColumnPTOptions(key) {
25613
- var cProps = getColumnProps(props.column);
25614
25805
  var columnMetaData = {
25615
25806
  props: cProps,
25616
25807
  parent: props.metaData,
@@ -25735,8 +25926,12 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25735
25926
  var allowSelection = function allowSelection(event) {
25736
25927
  return !DomHandler.isClickable(event.originalEvent.target);
25737
25928
  };
25929
+ var metaKeySelectionRef = React__namespace.useRef(props.metaKeySelection);
25930
+ React__namespace.useEffect(function () {
25931
+ metaKeySelectionRef.current = props.metaKeySelection;
25932
+ }, [props.metaKeySelection]);
25738
25933
  var allowMetaKeySelection = function allowMetaKeySelection(event) {
25739
- return !rowTouched.current && (!props.metaKeySelection || props.metaKeySelection && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));
25934
+ return !rowTouched.current && (!metaKeySelectionRef.current || metaKeySelectionRef.current && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));
25740
25935
  };
25741
25936
  var allowRangeSelection = function allowRangeSelection(event) {
25742
25937
  return isMultipleSelection() && event.originalEvent.shiftKey && anchorRowIndex.current !== null;
@@ -25757,6 +25952,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25757
25952
  options = options || props.virtualScrollerOptions;
25758
25953
  return options ? options[option] : null;
25759
25954
  };
25955
+ var getProcessedDataIndex = function getProcessedDataIndex(rowIndex) {
25956
+ return props.lazy ? rowIndex - props.first : rowIndex;
25957
+ };
25760
25958
  var findIndex = function findIndex(collection, rowData) {
25761
25959
  return (collection || []).findIndex(function (data) {
25762
25960
  return equals(rowData, data);
@@ -25806,6 +26004,10 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25806
26004
  });
25807
26005
  }
25808
26006
  };
26007
+ var selectionRef = React__namespace.useRef(props.selection);
26008
+ React__namespace.useEffect(function () {
26009
+ selectionRef.current = props.selection;
26010
+ }, [props.selection]);
25809
26011
  var onSingleSelection = function onSingleSelection(_ref) {
25810
26012
  var originalEvent = _ref.originalEvent,
25811
26013
  data = _ref.data,
@@ -25819,10 +26021,11 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25819
26021
  return;
25820
26022
  }
25821
26023
  var selected = isSelected(data);
25822
- var selection = props.selection;
26024
+ var currentSelection = selectionRef.current || [];
26025
+ var newSelection = currentSelection;
25823
26026
  if (selected) {
25824
26027
  if (toggleable) {
25825
- selection = null;
26028
+ newSelection = null;
25826
26029
  onUnselect({
25827
26030
  originalEvent: originalEvent,
25828
26031
  data: data,
@@ -25830,7 +26033,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25830
26033
  });
25831
26034
  }
25832
26035
  } else {
25833
- selection = data;
26036
+ newSelection = data;
25834
26037
  onSelect({
25835
26038
  originalEvent: originalEvent,
25836
26039
  data: data,
@@ -25838,10 +26041,10 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25838
26041
  });
25839
26042
  }
25840
26043
  focusOnElement(originalEvent, true);
25841
- if (props.onSelectionChange && selection !== props.selection) {
26044
+ if (props.onSelectionChange && newSelection !== currentSelection) {
25842
26045
  props.onSelectionChange({
25843
26046
  originalEvent: originalEvent,
25844
- value: selection,
26047
+ value: newSelection,
25845
26048
  type: type
25846
26049
  });
25847
26050
  }
@@ -25859,11 +26062,12 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25859
26062
  return;
25860
26063
  }
25861
26064
  var selected = isSelected(data);
25862
- var selection = props.selection || [];
26065
+ var currentSelection = selectionRef.current || [];
26066
+ var newSelection = currentSelection;
25863
26067
  if (selected) {
25864
26068
  if (toggleable) {
25865
- var selectionIndex = findIndex(selection, data);
25866
- selection = props.selection.filter(function (val, i) {
26069
+ var selectionIndex = findIndex(currentSelection, data);
26070
+ newSelection = currentSelection.filter(function (val, i) {
25867
26071
  return i !== selectionIndex;
25868
26072
  });
25869
26073
  onUnselect({
@@ -25871,15 +26075,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25871
26075
  data: data,
25872
26076
  type: type
25873
26077
  });
25874
- } else if (selection.length) {
25875
- props.selection.forEach(function (d) {
26078
+ } else if (currentSelection.length) {
26079
+ currentSelection.forEach(function (d) {
25876
26080
  return onUnselect({
25877
26081
  originalEvent: originalEvent,
25878
26082
  data: d,
25879
26083
  type: type
25880
26084
  });
25881
26085
  });
25882
- selection = [data];
26086
+ newSelection = [data];
25883
26087
  onSelect({
25884
26088
  originalEvent: originalEvent,
25885
26089
  data: data,
@@ -25887,18 +26091,18 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25887
26091
  });
25888
26092
  }
25889
26093
  } else {
25890
- selection = ObjectUtils.isObject(selection) ? [selection] : selection;
25891
- selection = toggleable && isMultipleSelection() ? [].concat(_toConsumableArray(selection), [data]) : [data];
26094
+ newSelection = ObjectUtils.isObject(currentSelection) ? [currentSelection] : currentSelection;
26095
+ newSelection = toggleable && isMultipleSelection() ? [].concat(_toConsumableArray(newSelection), [data]) : [data];
25892
26096
  onSelect({
25893
26097
  originalEvent: originalEvent,
25894
26098
  data: data,
25895
26099
  type: type
25896
26100
  });
25897
26101
  }
25898
- if (props.onSelectionChange && selection !== props.selection) {
26102
+ if (props.onSelectionChange && newSelection !== currentSelection) {
25899
26103
  props.onSelectionChange({
25900
26104
  originalEvent: originalEvent,
25901
- value: selection,
26105
+ value: newSelection,
25902
26106
  type: type
25903
26107
  });
25904
26108
  }
@@ -25921,14 +26125,16 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25921
26125
  var rangeStart;
25922
26126
  var rangeEnd;
25923
26127
  var isAllowCellSelection = allowCellSelection();
25924
- if (rangeRowIndex.current > anchorRowIndex.current) {
25925
- rangeStart = anchorRowIndex.current;
25926
- rangeEnd = rangeRowIndex.current;
25927
- } else if (rangeRowIndex.current < anchorRowIndex.current) {
25928
- rangeStart = rangeRowIndex.current;
25929
- rangeEnd = anchorRowIndex.current;
26128
+ var rangeRowIndexInProcessedData = getProcessedDataIndex(rangeRowIndex.current);
26129
+ var anchorRowIndexInProcessedData = getProcessedDataIndex(anchorRowIndex.current);
26130
+ if (rangeRowIndexInProcessedData > anchorRowIndexInProcessedData) {
26131
+ rangeStart = anchorRowIndexInProcessedData;
26132
+ rangeEnd = rangeRowIndexInProcessedData;
26133
+ } else if (rangeRowIndexInProcessedData < anchorRowIndexInProcessedData) {
26134
+ rangeStart = rangeRowIndexInProcessedData;
26135
+ rangeEnd = anchorRowIndexInProcessedData;
25930
26136
  } else {
25931
- rangeStart = rangeEnd = rangeRowIndex.current;
26137
+ rangeStart = rangeEnd = rangeRowIndexInProcessedData;
25932
26138
  }
25933
26139
  return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
25934
26140
  };
@@ -25969,7 +26175,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
25969
26175
  for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
25970
26176
  var rowData = value[i];
25971
26177
  var columns = props.columns;
25972
- var rowIndex = props.paginator ? i + props.first : i;
26178
+ var rowIndex = props.lazy ? i + props.first : i;
25973
26179
  for (var j = cellRangeStart; j <= cellRangeEnd; j++) {
25974
26180
  var field = getColumnProp(columns[j], 'field');
25975
26181
  var _value = ObjectUtils.resolveFieldData(rowData, field);
@@ -26434,7 +26640,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
26434
26640
  var emptyMessageProps = mergeProps({
26435
26641
  className: cx('emptyMessage'),
26436
26642
  role: 'row'
26437
- }, getColumnPTOptions('emptyMessage'));
26643
+ }, ptm('emptyMessage'));
26438
26644
  var bodyCellProps = mergeProps({
26439
26645
  colSpan: colSpan,
26440
26646
  role: 'cell'
@@ -26444,7 +26650,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
26444
26650
  return null;
26445
26651
  };
26446
26652
  var createGroupHeader = function createGroupHeader(rowData, rowIndex, expanded, colSpan) {
26447
- if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, rowIndex - props.first)) {
26653
+ if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, getProcessedDataIndex(rowIndex))) {
26448
26654
  var style = rowGroupHeaderStyle();
26449
26655
  var toggler = props.expandableRowGroups && /*#__PURE__*/React__namespace.createElement(RowTogglerButton, {
26450
26656
  hostName: props.hostName,
@@ -26471,14 +26677,14 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
26471
26677
  }, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
26472
26678
  var rowGroupHeaderNameProps = mergeProps({
26473
26679
  className: cx('rowGroupHeaderName')
26474
- }, getColumnPTOptions('rowGroupHeaderName'));
26680
+ }, ptm('rowGroupHeaderName'));
26475
26681
  _content2 = /*#__PURE__*/React__namespace.createElement("td", bodyCellProps, toggler, /*#__PURE__*/React__namespace.createElement("span", rowGroupHeaderNameProps, _content2));
26476
26682
  }
26477
26683
  var rowGroupHeaderProps = mergeProps({
26478
26684
  className: cx('rowGroupHeader'),
26479
26685
  style: style,
26480
26686
  role: 'row'
26481
- }, getColumnPTOptions('rowGroupHeader'));
26687
+ }, ptm('rowGroupHeader'));
26482
26688
  return /*#__PURE__*/React__namespace.createElement("tr", rowGroupHeaderProps, _content2);
26483
26689
  }
26484
26690
  return null;
@@ -26498,6 +26704,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
26498
26704
  checkIcon: props.checkIcon,
26499
26705
  collapsedRowIcon: props.collapsedRowIcon,
26500
26706
  columns: props.columns,
26707
+ colsProps: colsProps,
26501
26708
  compareSelectionBy: props.compareSelectionBy,
26502
26709
  contextMenuSelected: contextMenuSelected,
26503
26710
  dataKey: props.dataKey,
@@ -26586,7 +26793,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
26586
26793
  id: id,
26587
26794
  className: cx('rowExpansion'),
26588
26795
  role: 'row'
26589
- }, getColumnPTOptions('rowExpansion'));
26796
+ }, ptm('rowExpansion'));
26590
26797
  return /*#__PURE__*/React__namespace.createElement("tr", rowExpansionProps, _content3);
26591
26798
  }
26592
26799
  return null;
@@ -26601,7 +26808,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
26601
26808
  var rowGroupFooterProps = mergeProps({
26602
26809
  className: cx('rowGroupFooter'),
26603
26810
  role: 'row'
26604
- }, getColumnPTOptions('rowGroupFooter'));
26811
+ }, ptm('rowGroupFooter'));
26605
26812
  return /*#__PURE__*/React__namespace.createElement("tr", rowGroupFooterProps, _content4);
26606
26813
  }
26607
26814
  return null;
@@ -26977,9 +27184,17 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
26977
27184
  var type = _ref.type,
26978
27185
  valid = _ref.valid;
26979
27186
  if (valid) {
26980
- type === 'outside' ? !selfClick.current && !isTargetClicked(event.target) && hide() : hide();
27187
+ if (type === 'outside') {
27188
+ if (!selfClick.current && !isTargetClicked(event.target)) {
27189
+ hide();
27190
+ }
27191
+ selfClick.current = false;
27192
+ } else if (context.hideOverlaysOnDocumentScrolling) {
27193
+ hide();
27194
+ } else if (!DomHandler.isDocument(event.target)) {
27195
+ DomHandler.alignOverlay(overlayRef.current, iconRef.current, context && context.appendTo || PrimeReact.appendTo, false);
27196
+ }
26981
27197
  }
26982
- selfClick.current = false;
26983
27198
  },
26984
27199
  when: overlayVisibleState
26985
27200
  }),
@@ -28526,9 +28741,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
28526
28741
  });
28527
28742
  TableHeader.displayName = 'TableHeader';
28528
28743
 
28529
- function _createForOfIteratorHelper$b(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$b(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
28530
- function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$b(o, minLen); }
28531
- function _arrayLikeToArray$b(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
28744
+ function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
28745
+ function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(r, a); var t = {}.toString.call(r).slice(8, -1); 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$b(r, a) : void 0; } }
28746
+ function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28532
28747
  function ownKeys$18(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28533
28748
  function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$18(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$18(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28534
28749
  var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
@@ -28571,14 +28786,18 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
28571
28786
  _React$useState18 = _slicedToArray(_React$useState17, 2),
28572
28787
  editingMetaState = _React$useState18[0],
28573
28788
  setEditingMetaState = _React$useState18[1];
28574
- var _React$useState19 = React__namespace.useState(props.rows),
28789
+ var _React$useState19 = React__namespace.useState({}),
28575
28790
  _React$useState20 = _slicedToArray(_React$useState19, 2),
28576
- d_rowsState = _React$useState20[0],
28577
- setD_rowsState = _React$useState20[1];
28578
- var _React$useState21 = React__namespace.useState({}),
28791
+ frozenEditingMetaState = _React$useState20[0],
28792
+ setFrozenEditingMetaState = _React$useState20[1];
28793
+ var _React$useState21 = React__namespace.useState(props.rows),
28579
28794
  _React$useState22 = _slicedToArray(_React$useState21, 2),
28580
- d_filtersState = _React$useState22[0],
28581
- setD_filtersState = _React$useState22[1];
28795
+ d_rowsState = _React$useState22[0],
28796
+ setD_rowsState = _React$useState22[1];
28797
+ var _React$useState23 = React__namespace.useState({}),
28798
+ _React$useState24 = _slicedToArray(_React$useState23, 2),
28799
+ d_filtersState = _React$useState24[0],
28800
+ setD_filtersState = _React$useState24[1];
28582
28801
  var metaData = {
28583
28802
  props: props,
28584
28803
  state: {
@@ -28591,6 +28810,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
28591
28810
  columnOrder: columnOrderState,
28592
28811
  groupRowsSortMeta: groupRowsSortMetaState,
28593
28812
  editingMeta: editingMetaState,
28813
+ frozenEditingMeta: frozenEditingMetaState,
28594
28814
  d_rows: d_rowsState,
28595
28815
  d_filters: d_filtersState
28596
28816
  },
@@ -28995,6 +29215,32 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
28995
29215
  setEditingMetaState({});
28996
29216
  }
28997
29217
  };
29218
+ var onFrozenEditingMetaChange = function onFrozenEditingMetaChange(e) {
29219
+ var rowData = e.rowData,
29220
+ field = e.field,
29221
+ editingKey = e.editingKey,
29222
+ editing = e.editing;
29223
+ var frozenEditingMeta = _objectSpread$18({}, frozenEditingMetaState);
29224
+ var meta = frozenEditingMeta[editingKey];
29225
+ if (editing) {
29226
+ !meta && (meta = frozenEditingMeta[editingKey] = {
29227
+ data: _objectSpread$18({}, rowData),
29228
+ fields: []
29229
+ });
29230
+ meta.fields.push(field);
29231
+ } else if (meta) {
29232
+ var fields = meta.fields.filter(function (f) {
29233
+ return f !== field;
29234
+ });
29235
+ !fields.length ? delete frozenEditingMeta[editingKey] : meta.fields = fields;
29236
+ }
29237
+ setFrozenEditingMetaState(frozenEditingMeta);
29238
+ };
29239
+ var clearFrozenEditingMetaData = function clearFrozenEditingMetaData() {
29240
+ if (props.editMode && ObjectUtils.isNotEmpty(frozenEditingMetaState)) {
29241
+ setFrozenEditingMetaState({});
29242
+ }
29243
+ };
28998
29244
  var onColumnResizeStart = function onColumnResizeStart(e) {
28999
29245
  createBeforeResizeStyleElement();
29000
29246
  var event = e.originalEvent,
@@ -29285,6 +29531,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
29285
29531
  };
29286
29532
  var onPageChange = function onPageChange(e) {
29287
29533
  clearEditingMetaData();
29534
+ clearFrozenEditingMetaData();
29288
29535
  if (props.onPage) {
29289
29536
  props.onPage(createEvent(e));
29290
29537
  } else {
@@ -29297,6 +29544,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
29297
29544
  };
29298
29545
  var onSortChange = function onSortChange(e) {
29299
29546
  clearEditingMetaData();
29547
+ clearFrozenEditingMetaData();
29300
29548
  var event = e.originalEvent,
29301
29549
  column = e.column,
29302
29550
  sortableDisabledFields = e.sortableDisabledFields;
@@ -29474,6 +29722,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
29474
29722
  };
29475
29723
  var onFilterChange = function onFilterChange(filters) {
29476
29724
  clearEditingMetaData();
29725
+ clearFrozenEditingMetaData();
29477
29726
  setD_filtersState(filters);
29478
29727
  };
29479
29728
  var onFilterApply = function onFilterApply(filtersToApply) {
@@ -29663,6 +29912,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
29663
29912
  setD_filtersState(cloneFilters(props.filters));
29664
29913
  setGroupRowsSortMetaState(null);
29665
29914
  setEditingMetaState({});
29915
+ setFrozenEditingMetaState({});
29666
29916
  if (!props.onPage) {
29667
29917
  setFirstState(props.first);
29668
29918
  setRowsState(props.rows);
@@ -30027,7 +30277,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
30027
30277
  dataKey: props.dataKey,
30028
30278
  dragSelection: props.dragSelection,
30029
30279
  editMode: props.editMode,
30030
- editingMeta: editingMetaState,
30280
+ editingMeta: frozenEditingMetaState,
30031
30281
  editingRows: props.editingRows,
30032
30282
  emptyMessage: props.emptyMessage,
30033
30283
  expandableRowGroups: props.expandableRowGroups,
@@ -30046,7 +30296,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
30046
30296
  onCellUnselect: props.onCellUnselect,
30047
30297
  onContextMenu: props.onContextMenu,
30048
30298
  onContextMenuSelectionChange: props.onContextMenuSelectionChange,
30049
- onEditingMetaChange: onEditingMetaChange,
30299
+ onEditingMetaChange: onFrozenEditingMetaChange,
30050
30300
  onRowClick: props.onRowClick,
30051
30301
  onRowCollapse: props.onRowCollapse,
30052
30302
  onRowDoubleClick: props.onRowDoubleClick,
@@ -30493,9 +30743,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
30493
30743
  }
30494
30744
  });
30495
30745
 
30496
- function _createForOfIteratorHelper$a(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$a(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
30497
- function _unsupportedIterableToArray$a(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$a(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$a(o, minLen); }
30498
- function _arrayLikeToArray$a(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
30746
+ function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30747
+ function _unsupportedIterableToArray$a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$a(r, a); var t = {}.toString.call(r).slice(8, -1); 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$a(r, a) : void 0; } }
30748
+ function _arrayLikeToArray$a(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30499
30749
  function ownKeys$17(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30500
30750
  function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30501
30751
  var DataViewLayoutOptions = /*#__PURE__*/React__namespace.memo(function (inProps) {
@@ -31798,8 +32048,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
31798
32048
  });
31799
32049
  Fieldset.displayName = 'Fieldset';
31800
32050
 
31801
- function _readOnlyError(name) {
31802
- throw new TypeError("\"" + name + "\" is read-only");
32051
+ function _readOnlyError(r) {
32052
+ throw new TypeError('"' + r + '" is read-only');
31803
32053
  }
31804
32054
 
31805
32055
  var UploadIcon = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
@@ -32425,9 +32675,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
32425
32675
 
32426
32676
  function ownKeys$11(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32427
32677
  function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32428
- function _createForOfIteratorHelper$9(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$9(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
32429
- function _unsupportedIterableToArray$9(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$9(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$9(o, minLen); }
32430
- function _arrayLikeToArray$9(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
32678
+ function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
32679
+ function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); 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$9(r, a) : void 0; } }
32680
+ function _arrayLikeToArray$9(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
32431
32681
  var FileUpload = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
32432
32682
  var mergeProps = useMergeProps();
32433
32683
  var context = React__namespace.useContext(PrimeReactContext);
@@ -35627,7 +35877,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
35627
35877
  var updateValue = function updateValue(allow) {
35628
35878
  var pos;
35629
35879
  if (elementRef.current) {
35630
- if (props.value == null) {
35880
+ if (ObjectUtils.isEmpty(props.value)) {
35631
35881
  elementRef.current.value = '';
35632
35882
  } else {
35633
35883
  elementRef.current.value = props.value;
@@ -36121,7 +36371,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
36121
36371
  });
36122
36372
  }
36123
36373
  },
36124
- styles: "\n @keyframes dash-frame {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n @layer primereact {\n .p-knob-range {\n fill: none;\n transition: stroke .1s ease-in;\n }\n .p-knob-value {\n animation-name: dash-frame;\n animation-fill-mode: forwards;\n fill: none;\n }\n .p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n }\n }\n "
36374
+ styles: "\n @keyframes dash-frame {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n @layer primereact {\n .p-knob-range {\n fill: none;\n transition: stroke .1s ease-in;\n cursor: pointer;\n }\n .p-knob-value {\n animation-name: dash-frame;\n animation-fill-mode: forwards;\n fill: none;\n }\n .p-knob-text {\n font-size: 1.3rem;\n text-align: center;\n }\n }\n "
36125
36375
  }
36126
36376
  });
36127
36377
 
@@ -36649,9 +36899,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
36649
36899
 
36650
36900
  function ownKeys$U(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
36651
36901
  function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
36652
- function _createForOfIteratorHelper$8(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$8(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
36653
- function _unsupportedIterableToArray$8(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$8(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$8(o, minLen); }
36654
- function _arrayLikeToArray$8(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
36902
+ function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
36903
+ function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(r, a); var t = {}.toString.call(r).slice(8, -1); 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$8(r, a) : void 0; } }
36904
+ function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
36655
36905
  var ListBox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
36656
36906
  var mergeProps = useMergeProps();
36657
36907
  var context = React__namespace.useContext(PrimeReactContext);
@@ -38738,13 +38988,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
38738
38988
  inputRef: null,
38739
38989
  inputStyle: null,
38740
38990
  itemTemplate: null,
38741
- panelClassName: null,
38742
- panelStyle: null,
38743
- scrollHeight: '200px',
38744
- style: null,
38745
- suggestions: null,
38746
- transitionOptions: null,
38747
- trigger: '@',
38748
38991
  onBlur: null,
38749
38992
  onChange: null,
38750
38993
  onFocus: null,
@@ -38753,6 +38996,14 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
38753
38996
  onSearch: null,
38754
38997
  onSelect: null,
38755
38998
  onShow: null,
38999
+ panelClassName: null,
39000
+ panelStyle: null,
39001
+ scrollHeight: '200px',
39002
+ style: null,
39003
+ suggestions: null,
39004
+ transitionOptions: null,
39005
+ trigger: '@',
39006
+ variant: null,
38756
39007
  children: undefined
38757
39008
  },
38758
39009
  css: {
@@ -38821,8 +39072,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
38821
39072
  target: elementRef,
38822
39073
  overlay: overlayRef,
38823
39074
  listener: function listener(event, _ref) {
38824
- var valid = _ref.valid;
38825
- valid && hide();
39075
+ var valid = _ref.valid,
39076
+ type = _ref.type;
39077
+ if (valid) {
39078
+ if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
39079
+ hide();
39080
+ } else if (!DomHandler.isDocument(event.target)) {
39081
+ alignOverlay();
39082
+ }
39083
+ }
38826
39084
  },
38827
39085
  when: overlayVisibleState
38828
39086
  }),
@@ -39225,6 +39483,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
39225
39483
  style: props.inputStyle
39226
39484
  }, inputProps), {}, {
39227
39485
  unstyled: props.unstyled,
39486
+ variant: props.variant,
39228
39487
  autoResize: props.autoResize,
39229
39488
  onFocus: onFocus,
39230
39489
  onBlur: onBlur,
@@ -39392,10 +39651,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
39392
39651
  target: targetRef,
39393
39652
  overlay: menuRef,
39394
39653
  listener: function listener(event, _ref) {
39395
- var valid = _ref.valid;
39654
+ var valid = _ref.valid,
39655
+ type = _ref.type;
39396
39656
  if (valid) {
39397
- hide(event);
39398
- setFocusedOptionIndex(-1);
39657
+ if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
39658
+ hide(event);
39659
+ setFocusedOptionIndex(-1);
39660
+ } else if (!DomHandler.isDocument(event.target)) {
39661
+ DomHandler.absolutePosition(menuRef.current, targetRef.current, props.popupAlignment);
39662
+ }
39399
39663
  }
39400
39664
  },
39401
39665
  when: visibleState
@@ -39451,6 +39715,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
39451
39715
  props.onFocus && props.onFocus(event);
39452
39716
  };
39453
39717
  var onListBlur = function onListBlur(event) {
39718
+ var currentTarget = event.currentTarget,
39719
+ relatedTarget = event.relatedTarget;
39720
+ if (relatedTarget && currentTarget.contains(relatedTarget)) return;
39454
39721
  setFocused(false);
39455
39722
  setFocusedOptionIndex(-1);
39456
39723
  props.onBlur && props.onBlur(event);
@@ -39694,6 +39961,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
39694
39961
  onClick: function onClick(event) {
39695
39962
  return onItemClick(event, item, key);
39696
39963
  },
39964
+ onMouseMove: function onMouseMove(event) {
39965
+ return onItemMouseMove(event, key);
39966
+ },
39697
39967
  className: linkClassName,
39698
39968
  tabIndex: '-1',
39699
39969
  labelClassName: 'p-menuitem-text',
@@ -40050,7 +40320,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
40050
40320
  'aria-disabled': disabled,
40051
40321
  'aria-expanded': group ? active : undefined,
40052
40322
  'aria-haspopup': group && !item.url ? 'menu' : undefined,
40053
- 'aria-level': props.level + 1,
40054
40323
  'aria-setsize': getAriaSetSize(),
40055
40324
  'aria-posinset': getAriaPosInset(index),
40056
40325
  'data-p-highlight': active,
@@ -40168,12 +40437,13 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
40168
40437
  var _useEventListener = useEventListener({
40169
40438
  type: 'click',
40170
40439
  listener: function listener(event) {
40171
- if (isOutsideClicked(event)) {
40172
- var isOutsideContainer = elementRef.current && !elementRef.current.contains(event.target);
40173
- if (isOutsideContainer) {
40174
- hide();
40175
- }
40440
+ var isOutsideButton = menuButtonRef.current && !menuButtonRef.current.contains(event.target);
40441
+ if (isOutsideButton) {
40442
+ hide();
40176
40443
  }
40444
+ },
40445
+ options: {
40446
+ capture: true
40177
40447
  }
40178
40448
  }),
40179
40449
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
@@ -40228,9 +40498,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
40228
40498
  var menuButtonKeydown = function menuButtonKeydown(event) {
40229
40499
  (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && toggle(event);
40230
40500
  };
40231
- var isOutsideClicked = function isOutsideClicked(event) {
40232
- return rootMenuRef.current !== event.target && !rootMenuRef.current.contains(event.target) && menuButtonRef.current !== event.target && !menuButtonRef.current.contains(event.target);
40233
- };
40234
40501
  var getItemProp = function getItemProp(item, name) {
40235
40502
  return item ? ObjectUtils.getItemValue(item[name]) : undefined;
40236
40503
  };
@@ -41080,12 +41347,13 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
41080
41347
 
41081
41348
  var classes$w = {
41082
41349
  root: function root(_ref) {
41350
+ var _props$value;
41083
41351
  var props = _ref.props,
41084
41352
  context = _ref.context,
41085
41353
  focusedState = _ref.focusedState,
41086
41354
  overlayVisibleState = _ref.overlayVisibleState;
41087
41355
  return classNames('p-multiselect p-component p-inputwrapper', {
41088
- 'p-multiselect-chip': props.display === 'chip' && (props.maxSelectedLabels == null ? true : props.value.length <= props.maxSelectedLabels),
41356
+ 'p-multiselect-chip': props.display === 'chip' && (props.maxSelectedLabels == null ? true : ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) <= props.maxSelectedLabels),
41089
41357
  'p-disabled': props.disabled,
41090
41358
  'p-invalid': props.invalid,
41091
41359
  'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled',
@@ -41096,12 +41364,13 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
41096
41364
  });
41097
41365
  },
41098
41366
  label: function label(_ref2) {
41367
+ var _props$value2;
41099
41368
  var props = _ref2.props,
41100
41369
  empty = _ref2.empty;
41101
41370
  return classNames('p-multiselect-label', {
41102
41371
  'p-placeholder': empty && props.placeholder,
41103
41372
  'p-multiselect-label-empty': empty && !props.placeholder && !props.selectedItemTemplate,
41104
- 'p-multiselect-items-label': !empty && props.display !== 'chip' && props.value.length > props.maxSelectedLabels
41373
+ 'p-multiselect-items-label': !empty && props.display !== 'chip' && ((_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.length) > props.maxSelectedLabels
41105
41374
  });
41106
41375
  },
41107
41376
  panel: function panel(_ref3) {
@@ -41234,7 +41503,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
41234
41503
  selectAll: false,
41235
41504
  selectAllLabel: null,
41236
41505
  selectedItemTemplate: null,
41237
- selectedItemsLabel: '{0} items selected',
41506
+ selectedItemsLabel: undefined,
41238
41507
  selectionLimit: null,
41239
41508
  showClear: false,
41240
41509
  showSelectAll: true,
@@ -41765,9 +42034,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
41765
42034
 
41766
42035
  function ownKeys$J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
41767
42036
  function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
41768
- function _createForOfIteratorHelper$7(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$7(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
41769
- function _unsupportedIterableToArray$7(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$7(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$7(o, minLen); }
41770
- function _arrayLikeToArray$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
42037
+ function _createForOfIteratorHelper$7(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$7(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
42038
+ function _unsupportedIterableToArray$7(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$7(r, a); var t = {}.toString.call(r).slice(8, -1); 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$7(r, a) : void 0; } }
42039
+ function _arrayLikeToArray$7(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
41771
42040
  var MultiSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
41772
42041
  var mergeProps = useMergeProps();
41773
42042
  var context = React__namespace.useContext(PrimeReactContext);
@@ -41833,9 +42102,13 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
41833
42102
  valid = _ref.valid;
41834
42103
  if (valid) {
41835
42104
  if (type === 'outside') {
41836
- !isClearClicked(event) && !isSelectAllClicked(event) && hide();
41837
- } else {
42105
+ if (!isClearClicked(event) && !isSelectAllClicked(event)) {
42106
+ hide();
42107
+ }
42108
+ } else if (context.hideOverlaysOnDocumentScrolling) {
41838
42109
  hide();
42110
+ } else if (!DomHandler.isDocument(event.target)) {
42111
+ alignOverlay();
41839
42112
  }
41840
42113
  }
41841
42114
  },
@@ -42509,15 +42782,17 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
42509
42782
  var getSelectedItemsLabel = function getSelectedItemsLabel() {
42510
42783
  var pattern = /{(.*?)}/;
42511
42784
  var selectedItemsLabel = props.selectedItemsLabel || localeOption('selectionMessage');
42785
+ var valueLength = props.value ? props.value.length : 0;
42512
42786
  if (pattern.test(selectedItemsLabel)) {
42513
- return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], props.value.length + '');
42787
+ return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], valueLength + '');
42514
42788
  }
42515
42789
  return selectedItemsLabel;
42516
42790
  };
42517
42791
  var getLabel = function getLabel() {
42518
42792
  var label;
42519
42793
  if (!empty && !props.fixedPlaceholder) {
42520
- if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && props.value.length > props.maxSelectedLabels) {
42794
+ var _props$value;
42795
+ if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) > props.maxSelectedLabels) {
42521
42796
  return getSelectedItemsLabel();
42522
42797
  }
42523
42798
  if (ObjectUtils.isArray(props.value)) {
@@ -42530,7 +42805,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
42530
42805
  return label;
42531
42806
  };
42532
42807
  var getLabelContent = function getLabelContent() {
42533
- if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && props.value.length > props.maxSelectedLabels) {
42808
+ var valueLength = props.value ? props.value.length : 0;
42809
+ if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && valueLength > props.maxSelectedLabels) {
42534
42810
  return getSelectedItemsLabel();
42535
42811
  }
42536
42812
  if (props.selectedItemTemplate) {
@@ -42545,7 +42821,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
42545
42821
  return ObjectUtils.getJSXElement(props.selectedItemTemplate);
42546
42822
  }
42547
42823
  if (props.display === 'chip' && !empty) {
42548
- var value = props.value.slice(0, props.maxSelectedLabels || props.value.length);
42824
+ var value = props.value.slice(0, props.maxSelectedLabels || valueLength);
42549
42825
  return value.map(function (val, i) {
42550
42826
  var context = {
42551
42827
  context: {
@@ -42638,8 +42914,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
42638
42914
  }
42639
42915
  };
42640
42916
  var onRemoveTokenIconKeyDown = function onRemoveTokenIconKeyDown(event, val) {
42641
- event.preventDefault();
42642
- event.stopPropagation();
42643
42917
  switch (event.code) {
42644
42918
  case 'Space':
42645
42919
  case 'NumpadEnter':
@@ -42648,6 +42922,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
42648
42922
  break;
42649
42923
  }
42650
42924
  removeChip(event, val);
42925
+ event.preventDefault();
42926
+ event.stopPropagation();
42651
42927
  break;
42652
42928
  }
42653
42929
  };
@@ -42727,15 +43003,6 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
42727
43003
  }, ptm('label'));
42728
43004
  return /*#__PURE__*/React__namespace.createElement("div", labelContainerProps, /*#__PURE__*/React__namespace.createElement("div", labelProps, content || props.placeholder || props.emptyMessage || 'empty'));
42729
43005
  };
42730
- var getInputValue = function getInputValue() {
42731
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
42732
- if (Array.isArray(value)) {
42733
- return value.map(function (val) {
42734
- return getLabelByValue(val);
42735
- }).join(', ');
42736
- }
42737
- return value ? value : '';
42738
- };
42739
43006
  var visibleOptions = getVisibleOptions();
42740
43007
  var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
42741
43008
  var otherProps = MultiSelectBase.getOtherProps(props);
@@ -42785,7 +43052,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
42785
43052
  'aria-expanded': overlayVisibleState,
42786
43053
  disabled: props.disabled,
42787
43054
  tabIndex: !props.disabled ? props.tabIndex : -1,
42788
- value: getInputValue(props.value)
43055
+ value: getLabel()
42789
43056
  }, ariaProps), ptm('input'));
42790
43057
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement("div", hiddenInputWrapperProps, /*#__PURE__*/React__namespace.createElement("input", _extends({}, inputProps, {
42791
43058
  readOnly: true
@@ -43587,6 +43854,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
43587
43854
  var styleElementRef = React__namespace.useRef(null);
43588
43855
  var reorderDirection = React__namespace.useRef(null);
43589
43856
  var listElementRef = React__namespace.useRef(null);
43857
+ var reorderedListElementRef = React__namespace.useRef(null);
43590
43858
  var metaData = {
43591
43859
  props: props,
43592
43860
  state: {
@@ -43812,9 +44080,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
43812
44080
  }
43813
44081
  var _focusedOptionIndex = items[order] ? items[order].getAttribute('id') : -1;
43814
44082
  setFocusedOptionIndex(_focusedOptionIndex);
43815
- scrollInView(_focusedOptionIndex);
44083
+ scrollInViewWithFocus(_focusedOptionIndex);
43816
44084
  };
43817
- var scrollInView = function scrollInView(id) {
44085
+ var scrollInViewWithFocus = function scrollInViewWithFocus(id) {
43818
44086
  var listElement = getListElement();
43819
44087
  var element = DomHandler.findSingle(listElement, "[data-pc-section=\"item\"][id=\"".concat(id, "\"]"));
43820
44088
  if (element) {
@@ -43824,6 +44092,33 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
43824
44092
  });
43825
44093
  }
43826
44094
  };
44095
+ var scrollInView = function scrollInView(listContainer) {
44096
+ var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
44097
+ var selectedItems = listContainer.getElementsByClassName('p-highlight');
44098
+ if (ObjectUtils.isNotEmpty(selectedItems)) {
44099
+ DomHandler.scrollInView(listContainer, direction === -1 ? selectedItems[0] : selectedItems[selectedItems.length - 1]);
44100
+ }
44101
+ };
44102
+ var handleScrollPosition = function handleScrollPosition(listElement, direction) {
44103
+ if (listElement) {
44104
+ switch (direction) {
44105
+ case 'up':
44106
+ scrollInView(listElement, -1);
44107
+ break;
44108
+ case 'top':
44109
+ listElement.scrollTop = 0;
44110
+ break;
44111
+ case 'down':
44112
+ scrollInView(listElement, 1);
44113
+ break;
44114
+ case 'bottom':
44115
+ setTimeout(function () {
44116
+ return listElement.scrollTop = listElement.scrollHeight;
44117
+ }, 100);
44118
+ break;
44119
+ }
44120
+ }
44121
+ };
43827
44122
  var onFilter = function onFilter(event) {
43828
44123
  var _filterValue = event.target.value;
43829
44124
  setFilterValueState(_filterValue);
@@ -43858,6 +44153,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
43858
44153
  });
43859
44154
  }
43860
44155
  reorderDirection.current = event.direction;
44156
+ reorderedListElementRef.current = getListElement();
43861
44157
  };
43862
44158
  var createStyle = function createStyle() {
43863
44159
  if (!styleElementRef.current) {
@@ -43894,7 +44190,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
43894
44190
  setFocusedOptionId(_focusedOptionId);
43895
44191
  }, [focusedOptionIndex]);
43896
44192
  useUpdateEffect(function () {
43897
- if (reorderDirection.current) {
44193
+ if (reorderedListElementRef.current) {
44194
+ handleScrollPosition(reorderedListElementRef.current, reorderDirection.current);
44195
+ reorderedListElementRef.current = null;
43898
44196
  reorderDirection.current = null;
43899
44197
  }
43900
44198
  });
@@ -44385,18 +44683,17 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
44385
44683
  var type = _ref.type,
44386
44684
  valid = _ref.valid;
44387
44685
  if (valid) {
44388
- switch (type) {
44389
- case 'outside':
44390
- props.dismissable && !isPanelClicked.current && hide();
44391
- break;
44392
- case 'resize':
44393
- case 'scroll':
44394
- case 'orientationchange':
44395
- align();
44396
- break;
44686
+ if (type === 'outside') {
44687
+ if (props.dismissable && !isPanelClicked.current) {
44688
+ hide();
44689
+ }
44690
+ isPanelClicked.current = false;
44691
+ } else if (context.hideOverlaysOnDocumentScrolling) {
44692
+ hide();
44693
+ } else if (!DomHandler.isDocument(event.target)) {
44694
+ align();
44397
44695
  }
44398
44696
  }
44399
- isPanelClicked.current = false;
44400
44697
  },
44401
44698
  when: visibleState
44402
44699
  }),
@@ -46153,8 +46450,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
46153
46450
  target: elementRef,
46154
46451
  overlay: overlayRef,
46155
46452
  listener: function listener(event, _ref) {
46156
- var valid = _ref.valid;
46157
- valid && hide();
46453
+ var valid = _ref.valid,
46454
+ type = _ref.type;
46455
+ if (valid) {
46456
+ if (type === 'outside' || context.hideOverlaysOnDocumentScrolling) {
46457
+ hide();
46458
+ } else if (!DomHandler.isDocument(event.target)) {
46459
+ alignOverlay();
46460
+ }
46461
+ }
46158
46462
  },
46159
46463
  when: overlayVisibleState
46160
46464
  }),
@@ -46884,7 +47188,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
46884
47188
  var createItems = function createItems() {
46885
47189
  if (props.list) {
46886
47190
  return props.list.map(function (item, index) {
46887
- var key = props.parentId + '_' + index;
47191
+ var key = props.parentId + '_' + props.type + '_' + index;
46888
47192
  var selected = isSelected(item);
46889
47193
  return /*#__PURE__*/React__namespace.createElement(PickListItem, {
46890
47194
  hostName: props.hostName,
@@ -49719,8 +50023,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
49719
50023
  target: targetRef,
49720
50024
  overlay: menuRef,
49721
50025
  listener: function listener(event, _ref) {
49722
- var valid = _ref.valid;
49723
- valid && hide(event);
50026
+ var valid = _ref.valid,
50027
+ type = _ref.type;
50028
+ if (valid) {
50029
+ if (type === 'outside' || context.hideOverlaysOnDocumentScrolling) {
50030
+ hide(event);
50031
+ } else if (!DomHandler.isDocument(event.target)) {
50032
+ DomHandler.absolutePosition(menuRef.current, targetRef.current);
50033
+ }
50034
+ }
49724
50035
  },
49725
50036
  when: visibleState
49726
50037
  }),
@@ -52807,7 +53118,8 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
52807
53118
  linear: false,
52808
53119
  onChangeStep: null,
52809
53120
  start: null,
52810
- end: null
53121
+ end: null,
53122
+ children: undefined
52811
53123
  },
52812
53124
  css: {
52813
53125
  classes: classes$b,
@@ -55880,9 +56192,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
55880
56192
  }
55881
56193
  });
55882
56194
 
55883
- function _createForOfIteratorHelper$6(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$6(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
55884
- function _unsupportedIterableToArray$6(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$6(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }
55885
- function _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
56195
+ function _createForOfIteratorHelper$6(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$6(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
56196
+ function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$6(r, a); var t = {}.toString.call(r).slice(8, -1); 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$6(r, a) : void 0; } }
56197
+ function _arrayLikeToArray$6(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
55886
56198
  function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
55887
56199
  function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
55888
56200
  var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
@@ -56691,9 +57003,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
56691
57003
 
56692
57004
  function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
56693
57005
  function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
56694
- function _createForOfIteratorHelper$5(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
56695
- function _unsupportedIterableToArray$5(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$5(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }
56696
- function _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
57006
+ function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
57007
+ function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(r, a); var t = {}.toString.call(r).slice(8, -1); 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$5(r, a) : void 0; } }
57008
+ function _arrayLikeToArray$5(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
56697
57009
  var Tree = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
56698
57010
  var mergeProps = useMergeProps();
56699
57011
  var context = React__namespace.useContext(PrimeReactContext);
@@ -56823,7 +57135,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
56823
57135
  var onDrop = function onDrop(event) {
56824
57136
  var _dragState$current;
56825
57137
  if (validateDropNode((_dragState$current = dragState.current) === null || _dragState$current === void 0 ? void 0 : _dragState$current.path, event.path)) {
56826
- var value = _cloneValue(props.value);
57138
+ var value = _cloneValue(getRootNode());
56827
57139
  var dragPaths = dragState.current.path.split('-');
56828
57140
  dragPaths.pop();
56829
57141
  var dragNodeParent = _findNode(value, dragPaths);
@@ -56852,7 +57164,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
56852
57164
  };
56853
57165
  var onDropPoint = function onDropPoint(event) {
56854
57166
  if (validateDropPoint(event)) {
56855
- var value = _cloneValue(props.value);
57167
+ var value = _cloneValue(getRootNode());
56856
57168
  var dragPaths = dragState.current.path.split('-');
56857
57169
  dragPaths.pop();
56858
57170
  var dropPaths = event.path.split('-');
@@ -57447,9 +57759,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
57447
57759
 
57448
57760
  function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
57449
57761
  function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
57450
- function _createForOfIteratorHelper$4(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
57451
- function _unsupportedIterableToArray$4(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }
57452
- function _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
57762
+ function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
57763
+ function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(r, a); var t = {}.toString.call(r).slice(8, -1); 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$4(r, a) : void 0; } }
57764
+ function _arrayLikeToArray$4(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
57453
57765
  var TreeSelect = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
57454
57766
  var mergeProps = useMergeProps();
57455
57767
  var context = React__namespace.useContext(PrimeReactContext);
@@ -57467,9 +57779,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
57467
57779
  expandedKeysState = _React$useState6[0],
57468
57780
  setExpandedKeysState = _React$useState6[1];
57469
57781
  var _useDebounce = useDebounce('', props.filterDelay || 0),
57470
- _useDebounce2 = _slicedToArray(_useDebounce, 3);
57471
- _useDebounce2[0];
57472
- var filterValueState = _useDebounce2[1],
57782
+ _useDebounce2 = _slicedToArray(_useDebounce, 3),
57783
+ filterValue = _useDebounce2[0],
57784
+ filterValueState = _useDebounce2[1],
57473
57785
  setFilterValueState = _useDebounce2[2];
57474
57786
  var elementRef = React__namespace.useRef(null);
57475
57787
  var overlayRef = React__namespace.useRef(null);
@@ -57516,8 +57828,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
57516
57828
  target: elementRef,
57517
57829
  overlay: overlayRef,
57518
57830
  listener: function listener(event, _ref) {
57519
- var valid = _ref.valid;
57520
- valid && hide();
57831
+ var valid = _ref.valid,
57832
+ type = _ref.type;
57833
+ if (valid) {
57834
+ if (type === 'outside' || context.hideOverlaysOnDocumentScrolling) {
57835
+ hide();
57836
+ } else if (!DomHandler.isDocument(event.target)) {
57837
+ alignOverlay();
57838
+ }
57839
+ }
57521
57840
  },
57522
57841
  when: overlayVisibleState
57523
57842
  }),
@@ -58055,15 +58374,15 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
58055
58374
  };
58056
58375
  var createFilterElement = function createFilterElement() {
58057
58376
  if (props.filter) {
58058
- var _filterValue = props.onFilterValueChange ? props.filterValue : filteredValue;
58059
- _filterValue = ObjectUtils.isNotEmpty(_filterValue) ? _filterValue : '';
58377
+ var newValue = props.onFilterValueChange ? props.filterValue : filterValue;
58378
+ newValue = ObjectUtils.isNotEmpty(newValue) ? newValue : '';
58060
58379
  var filterContainerProps = mergeProps({
58061
58380
  className: cx('filterContainer')
58062
58381
  }, ptm('filterContainer'));
58063
58382
  var filterProps = mergeProps({
58064
58383
  ref: filterInputRef,
58065
58384
  type: 'text',
58066
- value: _filterValue,
58385
+ value: newValue,
58067
58386
  autoComplete: 'off',
58068
58387
  className: cx('filter'),
58069
58388
  placeholder: props.filterPlaceholder,
@@ -58657,9 +58976,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
58657
58976
  };
58658
58977
  TreeTableBodyCell.displayName = 'TreeTableBodyCell';
58659
58978
 
58660
- function _createForOfIteratorHelper$3(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
58661
- function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
58662
- function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
58979
+ function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
58980
+ function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); 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$3(r, a) : void 0; } }
58981
+ function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
58663
58982
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
58664
58983
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
58665
58984
  var TreeTableRow = /*#__PURE__*/React__namespace.memo(function (props) {
@@ -59114,7 +59433,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
59114
59433
  var partialChecked = isPartialChecked();
59115
59434
  var checkboxIconProps = mergeProps({
59116
59435
  className: cx('checkIcon')
59117
- }, getColumnPTOptions('rowCheckbox.icon'));
59436
+ }, getColumnPTOptions(column, 'rowCheckbox.icon'));
59118
59437
  var icon = checked ? props.checkboxIcon || /*#__PURE__*/React__namespace.createElement(CheckIcon, checkboxIconProps) : partialChecked ? props.checkboxIcon || /*#__PURE__*/React__namespace.createElement(MinusIcon, null) : null;
59119
59438
  var checkIcon = IconUtils.getJSXIcon(icon, {}, {
59120
59439
  props: props,
@@ -59249,9 +59568,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
59249
59568
  });
59250
59569
  TreeTableRow.displayName = 'TreeTableRow';
59251
59570
 
59252
- function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
59253
- function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
59254
- function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
59571
+ function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
59572
+ function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); 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$2(r, a) : void 0; } }
59573
+ function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
59255
59574
  function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
59256
59575
  function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
59257
59576
  var TreeTableBody = /*#__PURE__*/React__namespace.memo(function (props) {
@@ -59567,9 +59886,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
59567
59886
  });
59568
59887
  TreeTableFooter.displayName = 'TreeTableFooter';
59569
59888
 
59570
- function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
59571
- function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
59572
- function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
59889
+ function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
59890
+ function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); 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$1(r, a) : void 0; } }
59891
+ function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
59573
59892
  function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
59574
59893
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
59575
59894
  var TreeTableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
@@ -60125,9 +60444,9 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
60125
60444
 
60126
60445
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
60127
60446
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
60128
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
60129
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
60130
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
60447
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
60448
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } }
60449
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
60131
60450
  var TreeTable = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
60132
60451
  var mergeProps = useMergeProps();
60133
60452
  var context = React__namespace.useContext(PrimeReactContext);
@@ -61481,7 +61800,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
61481
61800
  tooltip: null,
61482
61801
  tooltipOptions: null,
61483
61802
  uncheckIcon: null,
61484
- value: '',
61803
+ value: null,
61485
61804
  children: undefined
61486
61805
  },
61487
61806
  css: {
@@ -61495,7 +61814,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
61495
61814
  var mergeProps = useMergeProps();
61496
61815
  var context = React__namespace.useContext(PrimeReactContext);
61497
61816
  var props = TriStateCheckboxBase.getProps(inProps, context);
61498
- var _useState = React.useState(''),
61817
+ var _useState = React.useState(null),
61499
61818
  _useState2 = _slicedToArray(_useState, 2),
61500
61819
  checkBoxValue = _useState2[0],
61501
61820
  setCheckBoxValue = _useState2[1];
@@ -61510,10 +61829,10 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
61510
61829
  name: 'tristatecheckbox'
61511
61830
  });
61512
61831
  React.useEffect(function () {
61513
- if ([true, false, ''].includes(props.value)) {
61832
+ if ([true, false, null].includes(props.value)) {
61514
61833
  setCheckBoxValue(props.value);
61515
61834
  } else {
61516
- setCheckBoxValue('');
61835
+ setCheckBoxValue(null);
61517
61836
  }
61518
61837
  }, [props.value]);
61519
61838
  var onChange = function onChange(event) {
@@ -61521,12 +61840,12 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
61521
61840
  return;
61522
61841
  }
61523
61842
  var newValue;
61524
- if (checkBoxValue === '') {
61843
+ if (checkBoxValue === null) {
61525
61844
  newValue = true;
61526
61845
  } else if (checkBoxValue === true) {
61527
61846
  newValue = false;
61528
61847
  } else if (checkBoxValue === false) {
61529
- newValue = '';
61848
+ newValue = null;
61530
61849
  }
61531
61850
  if (props.onChange) {
61532
61851
  props.onChange({