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
@@ -1,53 +1,47 @@
1
1
  'use client';
2
2
  import * as React from 'react';
3
- import React__default, { useState, useEffect, useContext, useRef, Children, cloneElement } from 'react';
3
+ import React__default, { useState, useEffect, useContext, useRef, Fragment, Children, cloneElement } from 'react';
4
4
  import { CSSTransition as CSSTransition$1, TransitionGroup } from 'react-transition-group';
5
5
  import ReactDOM from 'react-dom';
6
6
 
7
7
  function _extends() {
8
- _extends = Object.assign ? Object.assign.bind() : function (target) {
9
- for (var i = 1; i < arguments.length; i++) {
10
- var source = arguments[i];
11
- for (var key in source) {
12
- if (Object.prototype.hasOwnProperty.call(source, key)) {
13
- target[key] = source[key];
14
- }
15
- }
8
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
9
+ for (var e = 1; e < arguments.length; e++) {
10
+ var t = arguments[e];
11
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
16
12
  }
17
- return target;
18
- };
19
- return _extends.apply(this, arguments);
13
+ return n;
14
+ }, _extends.apply(null, arguments);
20
15
  }
21
16
 
22
- function _arrayLikeToArray$i(arr, len) {
23
- if (len == null || len > arr.length) len = arr.length;
24
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
25
- return arr2;
17
+ function _arrayLikeToArray$i(r, a) {
18
+ (null == a || a > r.length) && (a = r.length);
19
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
20
+ return n;
26
21
  }
27
22
 
28
- function _arrayWithoutHoles(arr) {
29
- if (Array.isArray(arr)) return _arrayLikeToArray$i(arr);
23
+ function _arrayWithoutHoles(r) {
24
+ if (Array.isArray(r)) return _arrayLikeToArray$i(r);
30
25
  }
31
26
 
32
- function _iterableToArray(iter) {
33
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
27
+ function _iterableToArray(r) {
28
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
34
29
  }
35
30
 
36
- function _unsupportedIterableToArray$i(o, minLen) {
37
- if (!o) return;
38
- if (typeof o === "string") return _arrayLikeToArray$i(o, minLen);
39
- var n = Object.prototype.toString.call(o).slice(8, -1);
40
- if (n === "Object" && o.constructor) n = o.constructor.name;
41
- if (n === "Map" || n === "Set") return Array.from(o);
42
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$i(o, minLen);
31
+ function _unsupportedIterableToArray$i(r, a) {
32
+ if (r) {
33
+ if ("string" == typeof r) return _arrayLikeToArray$i(r, a);
34
+ var t = {}.toString.call(r).slice(8, -1);
35
+ 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;
36
+ }
43
37
  }
44
38
 
45
39
  function _nonIterableSpread() {
46
40
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47
41
  }
48
42
 
49
- function _toConsumableArray(arr) {
50
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$i(arr) || _nonIterableSpread();
43
+ function _toConsumableArray(r) {
44
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$i(r) || _nonIterableSpread();
51
45
  }
52
46
 
53
47
  function _typeof(o) {
@@ -60,39 +54,33 @@ function _typeof(o) {
60
54
  }, _typeof(o);
61
55
  }
62
56
 
63
- function _toPrimitive(input, hint) {
64
- if (_typeof(input) !== "object" || input === null) return input;
65
- var prim = input[Symbol.toPrimitive];
66
- if (prim !== undefined) {
67
- var res = prim.call(input, hint || "default");
68
- if (_typeof(res) !== "object") return res;
57
+ function toPrimitive(t, r) {
58
+ if ("object" != _typeof(t) || !t) return t;
59
+ var e = t[Symbol.toPrimitive];
60
+ if (void 0 !== e) {
61
+ var i = e.call(t, r || "default");
62
+ if ("object" != _typeof(i)) return i;
69
63
  throw new TypeError("@@toPrimitive must return a primitive value.");
70
64
  }
71
- return (hint === "string" ? String : Number)(input);
65
+ return ("string" === r ? String : Number)(t);
72
66
  }
73
67
 
74
- function _toPropertyKey(arg) {
75
- var key = _toPrimitive(arg, "string");
76
- return _typeof(key) === "symbol" ? key : String(key);
68
+ function toPropertyKey(t) {
69
+ var i = toPrimitive(t, "string");
70
+ return "symbol" == _typeof(i) ? i : i + "";
77
71
  }
78
72
 
79
- function _defineProperty(obj, key, value) {
80
- key = _toPropertyKey(key);
81
- if (key in obj) {
82
- Object.defineProperty(obj, key, {
83
- value: value,
84
- enumerable: true,
85
- configurable: true,
86
- writable: true
87
- });
88
- } else {
89
- obj[key] = value;
90
- }
91
- return obj;
73
+ function _defineProperty(e, r, t) {
74
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
75
+ value: t,
76
+ enumerable: !0,
77
+ configurable: !0,
78
+ writable: !0
79
+ }) : e[r] = t, e;
92
80
  }
93
81
 
94
- function _arrayWithHoles(arr) {
95
- if (Array.isArray(arr)) return arr;
82
+ function _arrayWithHoles(r) {
83
+ if (Array.isArray(r)) return r;
96
84
  }
97
85
 
98
86
  function _iterableToArrayLimit(r, l) {
@@ -127,8 +115,8 @@ function _nonIterableRest() {
127
115
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
128
116
  }
129
117
 
130
- function _slicedToArray(arr, i) {
131
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$i(arr, i) || _nonIterableRest();
118
+ function _slicedToArray(r, e) {
119
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$i(r, e) || _nonIterableRest();
132
120
  }
133
121
 
134
122
  var FilterMatchMode = Object.freeze({
@@ -187,33 +175,25 @@ function classNames() {
187
175
  return undefined;
188
176
  }
189
177
 
190
- function _classCallCheck(instance, Constructor) {
191
- if (!(instance instanceof Constructor)) {
192
- throw new TypeError("Cannot call a class as a function");
193
- }
178
+ function _classCallCheck(a, n) {
179
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
194
180
  }
195
181
 
196
- function _defineProperties(target, props) {
197
- for (var i = 0; i < props.length; i++) {
198
- var descriptor = props[i];
199
- descriptor.enumerable = descriptor.enumerable || false;
200
- descriptor.configurable = true;
201
- if ("value" in descriptor) descriptor.writable = true;
202
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
182
+ function _defineProperties(e, r) {
183
+ for (var t = 0; t < r.length; t++) {
184
+ var o = r[t];
185
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
203
186
  }
204
187
  }
205
- function _createClass(Constructor, protoProps, staticProps) {
206
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
207
- if (staticProps) _defineProperties(Constructor, staticProps);
208
- Object.defineProperty(Constructor, "prototype", {
209
- writable: false
210
- });
211
- return Constructor;
188
+ function _createClass(e, r, t) {
189
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
190
+ writable: !1
191
+ }), e;
212
192
  }
213
193
 
214
- 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; } } }; }
215
- 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); }
216
- 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; }
194
+ 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; } } }; }
195
+ 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; } }
196
+ 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; }
217
197
  var DomHandler = /*#__PURE__*/function () {
218
198
  function DomHandler() {
219
199
  _classCallCheck(this, DomHandler);
@@ -586,11 +566,18 @@ var DomHandler = /*#__PURE__*/function () {
586
566
  element.style.transformOrigin = 'top';
587
567
  }
588
568
  var targetOffsetPx = targetOffset.left;
589
- var alignOffset = align === 'left' ? 0 : elementOuterWidth - targetOuterWidth;
590
- if (targetOffsetPx + targetOuterWidth + elementOuterWidth > viewport.width) {
591
- left = Math.max(0, targetOffsetPx + windowScrollLeft + targetOuterWidth - elementOuterWidth);
569
+ if (align === 'left') {
570
+ if (targetOffsetPx + elementOuterWidth > viewport.width) {
571
+ left = Math.max(0, targetOffsetPx + windowScrollLeft + targetOuterWidth - elementOuterWidth);
572
+ } else {
573
+ left = targetOffsetPx + windowScrollLeft;
574
+ }
592
575
  } else {
593
- left = targetOffsetPx - alignOffset + windowScrollLeft;
576
+ if (targetOffsetPx + targetOuterWidth - elementOuterWidth < 0) {
577
+ left = windowScrollLeft;
578
+ } else {
579
+ left = targetOffsetPx + targetOuterWidth - elementOuterWidth + windowScrollLeft;
580
+ }
594
581
  }
595
582
  element.style.top = top + 'px';
596
583
  element.style.left = left + 'px';
@@ -799,13 +786,12 @@ var DomHandler = /*#__PURE__*/function () {
799
786
  /**
800
787
  * Gets all scrollable parent elements of a given element
801
788
  * @param {HTMLElement} element - The element to find scrollable parents for
802
- * @param {boolean} hideOverlaysOnDocumentScrolling - Whether to include window/document level scrolling
803
789
  * @returns {Array} Array of scrollable parent elements
804
790
  */
805
791
  }, {
806
792
  key: "getScrollableParents",
807
793
  value: function getScrollableParents(element) {
808
- var hideOverlaysOnDocumentScrolling = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
794
+ var _this3 = this;
809
795
  var scrollableParents = [];
810
796
  if (element) {
811
797
  // Get all parent elements
@@ -828,10 +814,8 @@ var DomHandler = /*#__PURE__*/function () {
828
814
  * @param {HTMLElement} node - Element to add
829
815
  */
830
816
  var addScrollableParent = function addScrollableParent(node) {
831
- if (hideOverlaysOnDocumentScrolling) {
832
- // For document/body/html elements, add window instead
833
- scrollableParents.push(node.nodeName === 'BODY' || node.nodeName === 'HTML' || node.nodeType === 9 ? window : node);
834
- }
817
+ // For document/body/html elements, add window instead
818
+ scrollableParents.push(node.nodeName === 'BODY' || node.nodeName === 'HTML' || _this3.isDocument(node) ? window : node);
835
819
  };
836
820
 
837
821
  // Iterate through all parent elements
@@ -875,13 +859,6 @@ var DomHandler = /*#__PURE__*/function () {
875
859
  _iterator.f();
876
860
  }
877
861
  }
878
-
879
- // Ensure window/body is always included as fallback
880
- if (!scrollableParents.some(function (node) {
881
- return node === document.body || node === window;
882
- })) {
883
- scrollableParents.push(hideOverlaysOnDocumentScrolling ? window : document.body);
884
- }
885
862
  return scrollableParents;
886
863
  }
887
864
  }, {
@@ -1021,6 +998,11 @@ var DomHandler = /*#__PURE__*/function () {
1021
998
  value: function isElement(obj) {
1022
999
  return (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) === 'object' ? obj instanceof HTMLElement : obj && _typeof(obj) === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
1023
1000
  }
1001
+ }, {
1002
+ key: "isDocument",
1003
+ value: function isDocument(obj) {
1004
+ return (typeof Document === "undefined" ? "undefined" : _typeof(Document)) === 'object' ? obj instanceof Document : obj && _typeof(obj) === 'object' && obj !== null && obj.nodeType === 9;
1005
+ }
1024
1006
  }, {
1025
1007
  key: "scrollInView",
1026
1008
  value: function scrollInView(container, item) {
@@ -1358,7 +1340,7 @@ var DomHandler = /*#__PURE__*/function () {
1358
1340
  return !!(obj && obj.constructor && obj.call && obj.apply);
1359
1341
  };
1360
1342
  var element = isFunction(target) ? target() : target;
1361
- return element && element.nodeType === 9 || this.isExist(element) ? element : null;
1343
+ return this.isDocument(element) || this.isExist(element) ? element : null;
1362
1344
  }
1363
1345
 
1364
1346
  /**
@@ -1507,9 +1489,9 @@ function EventBus() {
1507
1489
  };
1508
1490
  }
1509
1491
 
1510
- 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; } } }; }
1511
- 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); }
1512
- 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; }
1492
+ 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; } } }; }
1493
+ 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; } }
1494
+ 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; }
1513
1495
  var ObjectUtils = /*#__PURE__*/function () {
1514
1496
  function ObjectUtils() {
1515
1497
  _classCallCheck(this, ObjectUtils);
@@ -1764,13 +1746,13 @@ var ObjectUtils = /*#__PURE__*/function () {
1764
1746
  params[_key4 - 1] = arguments[_key4];
1765
1747
  }
1766
1748
  if (params.length === 1) {
1767
- // For single parameter, unwrap array if needed
1749
+ // For single parameter case, unwrap array if needed to avoid extra nesting
1768
1750
  var param = params[0];
1769
1751
  return obj(Array.isArray(param) ? param[0] : param);
1770
1752
  }
1771
1753
 
1772
1754
  // Pass all parameters to function
1773
- return obj(params);
1755
+ return obj.apply(void 0, params);
1774
1756
  }
1775
1757
  }, {
1776
1758
  key: "getComponentProp",
@@ -2061,6 +2043,122 @@ var ObjectUtils = /*#__PURE__*/function () {
2061
2043
  obj = obj[fields[i]];
2062
2044
  }
2063
2045
  }
2046
+
2047
+ /**
2048
+ * This helper function takes an object and a dot-separated key path. It traverses the object based on the path,
2049
+ * returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
2050
+ *
2051
+ * Example:
2052
+ * const obj = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2053
+ * const path = 'address.city';
2054
+ * const result = ObjectUtils.getNestedValue(obj, path);
2055
+ * console.log(result); // Output: "Wonderland"
2056
+ *
2057
+ * @param {object} obj - The object to traverse.
2058
+ * @param {string} path - The dot-separated key path.
2059
+ * @returns {*} The value at the specified depth, or undefined if any part of the path is missing or undefined.
2060
+ */
2061
+ }, {
2062
+ key: "getNestedValue",
2063
+ value: function getNestedValue(obj, path) {
2064
+ return path.split('.').reduce(function (acc, part) {
2065
+ return acc && acc[part] !== undefined ? acc[part] : undefined;
2066
+ }, obj);
2067
+ }
2068
+
2069
+ /**
2070
+ * This function takes an object and a dot-separated key path. It traverses the object based on the path,
2071
+ * returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
2072
+ *
2073
+ * Example:
2074
+ * const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2075
+ * const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2076
+ * const result = ObjectUtils.absoluteCompare(objA, objB);
2077
+ * console.log(result); // Output: true
2078
+ *
2079
+ * const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
2080
+ * const result2 = ObjectUtils.absoluteCompare(objA, objC);
2081
+ * console.log(result2); // Output: false
2082
+ *
2083
+ * @param {object} objA - The first object to compare.
2084
+ * @param {object} objB - The second object to compare.
2085
+ * @param {number} [maxDepth=1] - The maximum depth to compare.
2086
+ * @param {number} [currentDepth=0] - The current depth (used internally for recursion).
2087
+ * @returns {boolean} True if the objects are equal within the specified depth, false otherwise.
2088
+ *
2089
+ */
2090
+ }, {
2091
+ key: "absoluteCompare",
2092
+ value: function absoluteCompare(objA, objB) {
2093
+ var maxDepth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
2094
+ var currentDepth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
2095
+ if (!objA || !objB) return true;
2096
+ if (currentDepth > maxDepth) return true;
2097
+ if (_typeof(objA) !== _typeof(objB)) return false;
2098
+ var aKeys = Object.keys(objA);
2099
+ var bKeys = Object.keys(objB);
2100
+ if (aKeys.length !== bKeys.length) return false;
2101
+ for (var _i = 0, _aKeys = aKeys; _i < _aKeys.length; _i++) {
2102
+ var key = _aKeys[_i];
2103
+ var aValue = objA[key];
2104
+ var bValue = objB[key];
2105
+
2106
+ // Skip comparison if values are objects
2107
+ var isObject = ObjectUtils.isObject(aValue) && ObjectUtils.isObject(bValue);
2108
+ var isFunction = ObjectUtils.isFunction(aValue) && ObjectUtils.isFunction(bValue);
2109
+ if ((isObject || isFunction) && !this.absoluteCompare(aValue, bValue, maxDepth, currentDepth + 1)) return false;
2110
+ if (!isObject && aValue !== bValue) return false;
2111
+ }
2112
+ return true;
2113
+ }
2114
+
2115
+ /**
2116
+ * This helper function takes two objects and a list of keys to compare. It compares the values of the specified keys
2117
+ * in both objects. If any comparison fails, it returns false. If all specified properties are equal, it returns true.
2118
+ * It performs a shallow comparison using absoluteCompare if no keys are provided.
2119
+ *
2120
+ * Example:
2121
+ * const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2122
+ * const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
2123
+ * const keysToCompare = ['name', 'address.city', 'address.zip'];
2124
+ * const result = ObjectUtils.selectiveCompare(objA, objB, keysToCompare);
2125
+ * console.log(result); // Output: true
2126
+ *
2127
+ * const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
2128
+ * const result2 = ObjectUtils.selectiveCompare(objA, objC, keysToCompare);
2129
+ * console.log(result2); // Output: false
2130
+ *
2131
+ * @param {object} a - The first object to compare.
2132
+ * @param {object} b - The second object to compare.
2133
+ * @param {string[]} [keysToCompare] - The keys to compare. If not provided, performs a shallow comparison using absoluteCompare.
2134
+ * @returns {boolean} True if all specified properties are equal, false otherwise.
2135
+ */
2136
+ }, {
2137
+ key: "selectiveCompare",
2138
+ value: function selectiveCompare(a, b, keysToCompare) {
2139
+ if (a === b) return true;
2140
+ if (!a || !b || _typeof(a) !== 'object' || _typeof(b) !== 'object') return false;
2141
+ if (!keysToCompare) return this.absoluteCompare(a, b, 1); // If no keys are provided, the comparison is limited to one depth level.
2142
+ var _iterator2 = _createForOfIteratorHelper$g(keysToCompare),
2143
+ _step2;
2144
+ try {
2145
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2146
+ var key = _step2.value;
2147
+ var aValue = this.getNestedValue(a, key);
2148
+ var bValue = this.getNestedValue(b, key);
2149
+ var isObject = _typeof(aValue) === 'object' && aValue !== null && _typeof(bValue) === 'object' && bValue !== null;
2150
+
2151
+ // If the current key is an object, they are compared in one further level only.
2152
+ if (isObject && !this.absoluteCompare(aValue, bValue, 1)) return false;
2153
+ if (!isObject && aValue !== bValue) return false;
2154
+ }
2155
+ } catch (err) {
2156
+ _iterator2.e(err);
2157
+ } finally {
2158
+ _iterator2.f();
2159
+ }
2160
+ return true;
2161
+ }
2064
2162
  }]);
2065
2163
  }();
2066
2164
 
@@ -2663,9 +2761,9 @@ function handler() {
2663
2761
  }
2664
2762
  var ZIndexUtils = handler();
2665
2763
 
2666
- 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; } } }; }
2667
- 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); }
2668
- 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; }
2764
+ 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; } } }; }
2765
+ 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; } }
2766
+ 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; }
2669
2767
  var FilterService = {
2670
2768
  filter: function filter(value, fields, filterValue, filterMatchMode, filterLocale) {
2671
2769
  var filteredItems = [];
@@ -4387,7 +4485,14 @@ var useOverlayScrollListener = function useOverlayScrollListener(_ref) {
4387
4485
  }
4388
4486
  if (!listenerRef.current && targetRef.current) {
4389
4487
  var hideOnScroll = context ? context.hideOverlaysOnDocumentScrolling : PrimeReact.hideOverlaysOnDocumentScrolling;
4390
- var nodes = scrollableParentsRef.current = DomHandler.getScrollableParents(targetRef.current, hideOnScroll);
4488
+ var nodes = scrollableParentsRef.current = DomHandler.getScrollableParents(targetRef.current);
4489
+
4490
+ // Ensure window/body is always included as fallback
4491
+ if (!nodes.some(function (node) {
4492
+ return node === document.body || node === window;
4493
+ })) {
4494
+ nodes.push(hideOnScroll ? window : document.body);
4495
+ }
4391
4496
  listenerRef.current = function (event) {
4392
4497
  return listener && listener(event);
4393
4498
  };
@@ -4479,19 +4584,20 @@ var useOverlayListener = function useOverlayListener(_ref) {
4479
4584
  type: 'outside',
4480
4585
  valid: event.which !== 3 && isOutsideClicked(event)
4481
4586
  });
4482
- }
4587
+ },
4588
+ when: when
4483
4589
  }),
4484
4590
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
4485
4591
  bindDocumentClickListener = _useEventListener2[0],
4486
4592
  unbindDocumentClickListener = _useEventListener2[1];
4487
4593
  var _useResizeListener = useResizeListener({
4488
- target: 'window',
4489
4594
  listener: function listener(event) {
4490
4595
  _listener && _listener(event, {
4491
4596
  type: 'resize',
4492
4597
  valid: !DomHandler.isTouchDevice()
4493
4598
  });
4494
- }
4599
+ },
4600
+ when: when
4495
4601
  }),
4496
4602
  _useResizeListener2 = _slicedToArray(_useResizeListener, 2),
4497
4603
  bindWindowResizeListener = _useResizeListener2[0],
@@ -4504,7 +4610,8 @@ var useOverlayListener = function useOverlayListener(_ref) {
4504
4610
  type: 'orientationchange',
4505
4611
  valid: true
4506
4612
  });
4507
- }
4613
+ },
4614
+ when: when
4508
4615
  }),
4509
4616
  _useEventListener4 = _slicedToArray(_useEventListener3, 2),
4510
4617
  bindWindowOrientationChangeListener = _useEventListener4[0],
@@ -4516,7 +4623,8 @@ var useOverlayListener = function useOverlayListener(_ref) {
4516
4623
  type: 'scroll',
4517
4624
  valid: true
4518
4625
  });
4519
- }
4626
+ },
4627
+ when: when
4520
4628
  }),
4521
4629
  _useOverlayScrollList2 = _slicedToArray(_useOverlayScrollList, 2),
4522
4630
  bindOverlayScrollListener = _useOverlayScrollList2[0],
@@ -6765,7 +6873,8 @@ var InputText = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
6765
6873
  }, [props.value, props.defaultValue]);
6766
6874
  var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
6767
6875
  React.useEffect(function () {
6768
- if (isFilled) {
6876
+ var _elementRef$current;
6877
+ if (isFilled || (_elementRef$current = elementRef.current) !== null && _elementRef$current !== void 0 && _elementRef$current.value) {
6769
6878
  DomHandler.addClass(elementRef.current, 'p-filled');
6770
6879
  } else {
6771
6880
  DomHandler.removeClass(elementRef.current, 'p-filled');
@@ -8130,7 +8239,15 @@ var AutoComplete = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functio
8130
8239
  var type = _ref.type,
8131
8240
  valid = _ref.valid;
8132
8241
  if (valid) {
8133
- type === 'outside' ? !isInputClicked(event) && hide() : hide();
8242
+ if (type === 'outside') {
8243
+ if (!isInputClicked(event)) {
8244
+ hide();
8245
+ }
8246
+ } else if (context.hideOverlaysOnDocumentScrolling) {
8247
+ hide();
8248
+ } else if (!DomHandler.isDocument(event.target)) {
8249
+ alignOverlay();
8250
+ }
8134
8251
  }
8135
8252
  },
8136
8253
  when: overlayVisibleState
@@ -8306,6 +8423,9 @@ var AutoComplete = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functio
8306
8423
  }
8307
8424
  };
8308
8425
  var removeItem = function removeItem(event, index) {
8426
+ if (props.disabled || props.readOnly) {
8427
+ return;
8428
+ }
8309
8429
  var removedValue = props.value[index];
8310
8430
  var newValue = props.value.filter(function (_, i) {
8311
8431
  return index !== i;
@@ -8748,6 +8868,7 @@ var AutoComplete = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functio
8748
8868
  listId: listId,
8749
8869
  onItemClick: selectItem,
8750
8870
  selectedItem: selectedItem,
8871
+ onOverlayHide: hide,
8751
8872
  onClick: onPanelClick,
8752
8873
  getOptionGroupLabel: getOptionGroupLabel,
8753
8874
  getOptionGroupChildren: getOptionGroupChildren,
@@ -9269,7 +9390,8 @@ var BreadCrumb = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
9269
9390
  onClick: function onClick(event) {
9270
9391
  return itemClick(event, item);
9271
9392
  },
9272
- 'aria-disabled': item.disabled
9393
+ 'aria-disabled': item.disabled,
9394
+ tabIndex: item.disabled ? -1 : undefined
9273
9395
  }, ptm('action'));
9274
9396
  var content = /*#__PURE__*/React.createElement("a", actionProps, label);
9275
9397
  if (item.template) {
@@ -9635,9 +9757,9 @@ CalendarPanel.displayName = 'CalendarPanel';
9635
9757
 
9636
9758
  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; }
9637
9759
  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; }
9638
- 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; } } }; }
9639
- 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); }
9640
- 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; }
9760
+ 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; } } }; }
9761
+ 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; } }
9762
+ 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; }
9641
9763
  var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
9642
9764
  var mergeProps = useMergeProps();
9643
9765
  var context = React.useContext(PrimeReactContext);
@@ -9674,7 +9796,7 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
9674
9796
  isUnstyled = _CalendarBase$setMeta.isUnstyled;
9675
9797
  useGlobalOnEscapeKey({
9676
9798
  callback: function callback() {
9677
- hide();
9799
+ hide(null, reFocusInputField);
9678
9800
  },
9679
9801
  when: overlayVisibleState && overlayDisplayOrder,
9680
9802
  priority: [ESC_KEY_HANDLING_PRIORITIES.OVERLAY_PANEL, overlayDisplayOrder]
@@ -9725,7 +9847,15 @@ var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
9725
9847
  var type = _ref.type,
9726
9848
  valid = _ref.valid;
9727
9849
  if (valid) {
9728
- type === 'outside' ? !isOverlayClicked.current && !isNavIconClicked(event.target) && hide('outside') : hide();
9850
+ if (type === 'outside') {
9851
+ if (!isOverlayClicked.current && !isNavIconClicked(event.target)) {
9852
+ hide('outside');
9853
+ }
9854
+ } else if (context.hideOverlaysOnDocumentScrolling) {
9855
+ hide();
9856
+ } else if (!DomHandler.isDocument(event.target)) {
9857
+ alignOverlay();
9858
+ }
9729
9859
  }
9730
9860
  isOverlayClicked.current = false;
9731
9861
  },
@@ -14532,9 +14662,9 @@ var CascadeSelectSub = /*#__PURE__*/React.memo(function (props) {
14532
14662
  return element;
14533
14663
  });
14534
14664
 
14535
- 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; } } }; }
14536
- 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); }
14537
- 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; }
14665
+ 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; } } }; }
14666
+ 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; } }
14667
+ 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; }
14538
14668
  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; }
14539
14669
  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; }
14540
14670
  var CascadeSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
@@ -14579,8 +14709,15 @@ var CascadeSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
14579
14709
  target: elementRef,
14580
14710
  overlay: overlayRef,
14581
14711
  listener: function listener(event, _ref) {
14582
- var valid = _ref.valid;
14583
- valid && hide();
14712
+ var valid = _ref.valid,
14713
+ type = _ref.type;
14714
+ if (valid) {
14715
+ if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
14716
+ hide();
14717
+ } else if (!DomHandler.isDocument(event.target)) {
14718
+ alignOverlay();
14719
+ }
14720
+ }
14584
14721
  },
14585
14722
  when: overlayVisibleState
14586
14723
  }),
@@ -15191,7 +15328,7 @@ var Checkbox = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
15191
15328
  return props.checked === props.trueValue;
15192
15329
  };
15193
15330
  var _onChange = function onChange(event) {
15194
- if (props.disabled || props.readonly) {
15331
+ if (props.disabled || props.readOnly) {
15195
15332
  return;
15196
15333
  }
15197
15334
  if (props.onChange) {
@@ -15375,6 +15512,10 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
15375
15512
  _React$useState2 = _slicedToArray(_React$useState, 2),
15376
15513
  visibleState = _React$useState2[0],
15377
15514
  setVisibleState = _React$useState2[1];
15515
+ var _React$useState3 = React.useState(props.id),
15516
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
15517
+ idState = _React$useState4[0],
15518
+ setIdState = _React$useState4[1];
15378
15519
  var _ChipBase$setMetaData = ChipBase.setMetaData({
15379
15520
  props: props
15380
15521
  }),
@@ -15392,6 +15533,7 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
15392
15533
  var close = function close(event) {
15393
15534
  var result = true;
15394
15535
  if (props.onRemove) {
15536
+ event.stopPropagation();
15395
15537
  result = props.onRemove({
15396
15538
  originalEvent: event,
15397
15539
  value: props.label || props.image || props.icon
@@ -15411,7 +15553,7 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
15411
15553
  onKeyDown: onKeyDown
15412
15554
  }, ptm('removeIcon'));
15413
15555
  var icon = props.removeIcon || /*#__PURE__*/React.createElement(TimesCircleIcon, _extends({}, removeIconProps, {
15414
- key: UniqueComponentId('removeIcon')
15556
+ key: "".concat(idState, "-removeIcon")
15415
15557
  }));
15416
15558
  if (props.image) {
15417
15559
  var imageProps = mergeProps({
@@ -15421,7 +15563,7 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
15421
15563
  content.push(/*#__PURE__*/React.createElement("img", _extends({
15422
15564
  alt: props.imageAlt
15423
15565
  }, imageProps, {
15424
- key: UniqueComponentId('image')
15566
+ key: "".concat(idState, "-image")
15425
15567
  })));
15426
15568
  } else if (props.icon) {
15427
15569
  var chipIconProps = mergeProps({
@@ -15472,6 +15614,14 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
15472
15614
  }
15473
15615
  };
15474
15616
  });
15617
+ useMountEffect(function () {
15618
+ if (!idState) {
15619
+ setIdState(UniqueComponentId());
15620
+ }
15621
+ });
15622
+ if (!idState) {
15623
+ return null;
15624
+ }
15475
15625
  return visibleState && createElement();
15476
15626
  }));
15477
15627
  Chip.displayName = 'Chip';
@@ -15580,7 +15730,7 @@ var Chips = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPr
15580
15730
  var listRef = React.useRef(null);
15581
15731
  var inputRef = React.useRef(props.inputRef);
15582
15732
  var removeItem = function removeItem(event, index) {
15583
- if (props.disabled && props.readOnly) {
15733
+ if (props.disabled || props.readOnly) {
15584
15734
  return;
15585
15735
  }
15586
15736
  var values = _toConsumableArray(props.value);
@@ -16113,8 +16263,15 @@ var ColorPicker = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
16113
16263
  target: elementRef,
16114
16264
  overlay: overlayRef,
16115
16265
  listener: function listener(event, _ref) {
16116
- var valid = _ref.valid;
16117
- valid && hide();
16266
+ var valid = _ref.valid,
16267
+ type = _ref.type;
16268
+ if (valid) {
16269
+ if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
16270
+ hide();
16271
+ } else if (!DomHandler.isDocument(event.target)) {
16272
+ alignOverlay();
16273
+ }
16274
+ }
16118
16275
  },
16119
16276
  when: overlayVisibleState
16120
16277
  }),
@@ -16165,6 +16322,7 @@ var ColorPicker = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
16165
16322
  hueDragging.current = true;
16166
16323
  pickHue(event);
16167
16324
  !isUnstyled && DomHandler.addClass(elementRef.current, 'p-colorpicker-dragging');
16325
+ event.preventDefault();
16168
16326
  };
16169
16327
  var getPositionY = function getPositionY(event) {
16170
16328
  if (event.pageY !== undefined) return event.pageY;else if (event.changedTouches !== undefined) return event.changedTouches[0].pageY;else return 0;
@@ -17986,9 +18144,17 @@ var ConfirmPopup = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functio
17986
18144
  var type = _ref.type,
17987
18145
  valid = _ref.valid;
17988
18146
  if (valid) {
17989
- type === 'outside' ? props.dismissable && !isPanelClicked.current && hide('hide') : hide('hide');
18147
+ if (type === 'outside') {
18148
+ if (props.dismissable && !isPanelClicked.current) {
18149
+ hide('hide');
18150
+ }
18151
+ isPanelClicked.current = false;
18152
+ } else if (context.hideOverlaysOnDocumentScrolling) {
18153
+ hide('hide');
18154
+ } else if (!DomHandler.isDocument(event.target)) {
18155
+ align();
18156
+ }
17990
18157
  }
17991
- isPanelClicked.current = false;
17992
18158
  },
17993
18159
  when: visibleState
17994
18160
  }),
@@ -20640,7 +20806,7 @@ var InputNumber = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
20640
20806
  if (data) {
20641
20807
  var filteredData = parseValue(data);
20642
20808
  if (filteredData != null) {
20643
- if (isFloat(data)) {
20809
+ if (isFloat(filteredData)) {
20644
20810
  var _formattedValue2 = formatValue(filteredData);
20645
20811
  inputRef.current.value = _formattedValue2;
20646
20812
  updateModel(event, filteredData);
@@ -20752,8 +20918,11 @@ var InputNumber = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
20752
20918
  newValueStr = insertText(inputValue, text, selectionStart, selectionEnd);
20753
20919
  updateValue(event, newValueStr, text, 'insert');
20754
20920
  } else if (decimalCharIndex === -1 && (maxFractionDigits || props.maxFractionDigits)) {
20755
- newValueStr = insertText(inputValue, text, selectionStart, selectionEnd);
20756
- updateValue(event, newValueStr, text, 'insert');
20921
+ var allowedDecimal = inputMode !== 'numeric' || inputMode === 'numeric' && (props.min || props.max);
20922
+ if (allowedDecimal) {
20923
+ newValueStr = insertText(inputValue, text, selectionStart, selectionEnd);
20924
+ updateValue(event, newValueStr, text, 'insert');
20925
+ }
20757
20926
  }
20758
20927
  } else {
20759
20928
  var operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
@@ -22162,9 +22331,9 @@ var DropdownPanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
22162
22331
  }));
22163
22332
  DropdownPanel.displayName = 'DropdownPanel';
22164
22333
 
22165
- 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; } } }; }
22166
- 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); }
22167
- 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; }
22334
+ 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; } } }; }
22335
+ 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; } }
22336
+ 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; }
22168
22337
  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; }
22169
22338
  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; }
22170
22339
  var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
@@ -22224,7 +22393,15 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
22224
22393
  var type = _ref.type,
22225
22394
  valid = _ref.valid;
22226
22395
  if (valid) {
22227
- type === 'outside' ? !isClearClicked(event) && hide() : hide();
22396
+ if (type === 'outside') {
22397
+ if (!isClearClicked(event)) {
22398
+ hide();
22399
+ }
22400
+ } else if (context.hideOverlaysOnDocumentScrolling) {
22401
+ hide();
22402
+ } else if (!DomHandler.isDocument(event.target)) {
22403
+ alignOverlay();
22404
+ }
22228
22405
  }
22229
22406
  },
22230
22407
  when: overlayVisibleState
@@ -22423,12 +22600,14 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
22423
22600
  case 'ArrowRight':
22424
22601
  onArrowLeftKey(event, true);
22425
22602
  break;
22426
- case 'Escape':
22427
22603
  case 'Enter':
22428
22604
  case 'NumpadEnter':
22429
22605
  onEnterKey(event);
22430
22606
  event.preventDefault();
22431
22607
  break;
22608
+ case 'Escape':
22609
+ onEscapeKey(event);
22610
+ break;
22432
22611
  }
22433
22612
  };
22434
22613
  var hasFocusableElements = function hasFocusableElements() {
@@ -22948,9 +23127,6 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
22948
23127
  virtualScrollerRef.current && virtualScrollerRef.current.scrollInView(0);
22949
23128
  }, [filterState]);
22950
23129
  useUpdateEffect(function () {
22951
- if (filterState && (!props.options || props.options.length === 0)) {
22952
- setFilterState('');
22953
- }
22954
23130
  updateInputField();
22955
23131
  if (inputRef.current) {
22956
23132
  inputRef.current.selectedIndex = 1;
@@ -23173,6 +23349,7 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
23173
23349
  "in": overlayVisibleState,
23174
23350
  isOptionDisabled: isOptionDisabled,
23175
23351
  isSelected: isSelected,
23352
+ onOverlayHide: hide,
23176
23353
  onClick: onPanelClick,
23177
23354
  onEnter: onOverlayEnter,
23178
23355
  onEntered: onOverlayEntered,
@@ -23876,33 +24053,26 @@ var DataTableBase = ComponentBase.extend({
23876
24053
  }
23877
24054
  });
23878
24055
 
23879
- function _objectWithoutPropertiesLoose(source, excluded) {
23880
- if (source == null) return {};
23881
- var target = {};
23882
- var sourceKeys = Object.keys(source);
23883
- var key, i;
23884
- for (i = 0; i < sourceKeys.length; i++) {
23885
- key = sourceKeys[i];
23886
- if (excluded.indexOf(key) >= 0) continue;
23887
- target[key] = source[key];
24056
+ function _objectWithoutPropertiesLoose(r, e) {
24057
+ if (null == r) return {};
24058
+ var t = {};
24059
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
24060
+ if (-1 !== e.indexOf(n)) continue;
24061
+ t[n] = r[n];
23888
24062
  }
23889
- return target;
24063
+ return t;
23890
24064
  }
23891
24065
 
23892
- function _objectWithoutProperties(source, excluded) {
23893
- if (source == null) return {};
23894
- var target = _objectWithoutPropertiesLoose(source, excluded);
23895
- var key, i;
24066
+ function _objectWithoutProperties(e, t) {
24067
+ if (null == e) return {};
24068
+ var o,
24069
+ r,
24070
+ i = _objectWithoutPropertiesLoose(e, t);
23896
24071
  if (Object.getOwnPropertySymbols) {
23897
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
23898
- for (i = 0; i < sourceSymbolKeys.length; i++) {
23899
- key = sourceSymbolKeys[i];
23900
- if (excluded.indexOf(key) >= 0) continue;
23901
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
23902
- target[key] = source[key];
23903
- }
24072
+ var n = Object.getOwnPropertySymbols(e);
24073
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
23904
24074
  }
23905
- return target;
24075
+ return i;
23906
24076
  }
23907
24077
 
23908
24078
  var BarsIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
@@ -24059,7 +24229,7 @@ var RadioButton = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
24059
24229
  onChange(event);
24060
24230
  };
24061
24231
  var onChange = function onChange(event) {
24062
- if (props.disabled || props.readonly) {
24232
+ if (props.disabled || props.readOnly) {
24063
24233
  return;
24064
24234
  }
24065
24235
  if (props.onChange) {
@@ -24162,7 +24332,7 @@ var RadioButton = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
24162
24332
  onBlur: onBlur,
24163
24333
  onChange: onChange,
24164
24334
  disabled: props.disabled,
24165
- readOnly: props.readonly,
24335
+ readOnly: props.readOnly,
24166
24336
  required: props.required,
24167
24337
  tabIndex: props.tabIndex,
24168
24338
  className: cx('input')
@@ -24235,7 +24405,7 @@ RowRadioButton.displayName = 'RowRadioButton';
24235
24405
 
24236
24406
  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; }
24237
24407
  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; }
24238
- var BodyCell = /*#__PURE__*/React.memo(function (props) {
24408
+ var Cell = function Cell(props) {
24239
24409
  var mergeProps = useMergeProps();
24240
24410
  var _React$useState = React.useState(props.editing),
24241
24411
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -24263,13 +24433,9 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24263
24433
  var getColumnProp = function getColumnProp(name) {
24264
24434
  return ColumnBase.getCProp(props.column, name);
24265
24435
  };
24266
- var getColumnProps = function getColumnProps() {
24267
- return ColumnBase.getCProps(props.column);
24268
- };
24269
24436
  var getColumnPTOptions = function getColumnPTOptions(key) {
24270
- var cProps = getColumnProps();
24271
24437
  var columnMetaData = {
24272
- props: cProps,
24438
+ props: props.cProps,
24273
24439
  parent: props.metaData,
24274
24440
  hostName: props.hostName,
24275
24441
  state: {
@@ -24285,10 +24451,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24285
24451
  };
24286
24452
  return mergeProps(ptm("column.".concat(key), {
24287
24453
  column: columnMetaData
24288
- }), ptm("column.".concat(key), columnMetaData), ptmo(cProps, key, columnMetaData));
24454
+ }), ptm("column.".concat(key), columnMetaData), ptmo(props.cProps, key, columnMetaData));
24289
24455
  };
24290
- var field = getColumnProp('field') || "field_".concat(props.index);
24291
- var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
24292
24456
  var isEditable = function isEditable() {
24293
24457
  return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
24294
24458
  };
@@ -24313,34 +24477,22 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24313
24477
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
24314
24478
  bindDocumentClickListener = _useEventListener2[0],
24315
24479
  unbindDocumentClickListener = _useEventListener2[1];
24316
- var isSelected = function isSelected() {
24317
- return props.selection ? props.selection instanceof Array ? findIndex(props.selection) > -1 : equals(props.selection) : false;
24318
- };
24319
- var equalsData = function equalsData(data) {
24320
- return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
24321
- };
24322
- var equals = function equals(selectedCell) {
24323
- return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
24324
- };
24325
24480
  var isOutsideClicked = function isOutsideClicked(target) {
24326
24481
  return elementRef.current && !(elementRef.current.isSameNode(target) || elementRef.current.contains(target));
24327
24482
  };
24328
- var getVirtualScrollerOption = function getVirtualScrollerOption(option) {
24329
- return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
24330
- };
24331
24483
  var getStyle = function getStyle() {
24332
24484
  var bodyStyle = getColumnProp('bodyStyle');
24333
24485
  var columnStyle = getColumnProp('style');
24334
- return getColumnProp('frozen') ? Object.assign({}, columnStyle, bodyStyle, styleObjectState) : Object.assign({}, columnStyle, bodyStyle);
24486
+ return props.frozenCol ? Object.assign({}, columnStyle, bodyStyle, styleObjectState) : Object.assign({}, columnStyle, bodyStyle);
24335
24487
  };
24336
24488
  var getCellParams = function getCellParams() {
24337
24489
  return {
24338
- value: resolveFieldData(),
24339
- field: field,
24490
+ value: props.resolveFieldData(),
24491
+ field: props.field,
24340
24492
  rowData: props.rowData,
24341
24493
  rowIndex: props.rowIndex,
24342
24494
  cellIndex: props.index,
24343
- selected: isSelected(),
24495
+ selected: props.isCellSelected,
24344
24496
  column: props.column,
24345
24497
  props: props
24346
24498
  };
@@ -24351,20 +24503,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24351
24503
  originalEvent: event
24352
24504
  }, params);
24353
24505
  };
24354
- var resolveFieldData = function resolveFieldData(data) {
24355
- return ObjectUtils.resolveFieldData(data || props.rowData, field);
24356
- };
24357
- var getEditingRowData = function getEditingRowData() {
24358
- return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
24359
- };
24360
- var getTabIndex = function getTabIndex(cellSelected) {
24361
- return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && props.index === 0 ? props.tabIndex : -1 : null;
24362
- };
24363
- var findIndex = function findIndex(collection) {
24364
- return (collection || []).findIndex(function (data) {
24365
- return equals(data);
24366
- });
24367
- };
24368
24506
  var closeCell = function closeCell(event) {
24369
24507
  var params = getCellCallbackParams(event);
24370
24508
  var onBeforeCellEditHide = getColumnProp('onBeforeCellEditHide');
@@ -24385,7 +24523,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24385
24523
  var switchCellToViewMode = function switchCellToViewMode(event, submit) {
24386
24524
  var callbackParams = getCellCallbackParams(event);
24387
24525
  var newRowData = _objectSpread$1i({}, editingRowDataStateRef.current);
24388
- var newValue = resolveFieldData(newRowData);
24526
+ var newValue = props.resolveFieldData(newRowData);
24389
24527
  var params = _objectSpread$1i(_objectSpread$1i({}, callbackParams), {}, {
24390
24528
  newRowData: newRowData,
24391
24529
  newValue: newValue
@@ -24410,128 +24548,20 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24410
24548
  }
24411
24549
  setEditingRowDataState(newRowData);
24412
24550
  };
24413
- var _findNextSelectableCell = function findNextSelectableCell(cell) {
24414
- var nextCell = cell.nextElementSibling;
24415
- return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : _findNextSelectableCell(nextCell) : null;
24416
- };
24417
- var _findPrevSelectableCell = function findPrevSelectableCell(cell) {
24418
- var prevCell = cell.previousElementSibling;
24419
- return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : _findPrevSelectableCell(prevCell) : null;
24420
- };
24421
- var _findDownSelectableCell = function findDownSelectableCell(cell) {
24422
- var downRow = cell.parentElement.nextElementSibling;
24423
- var downCell = downRow ? downRow.children[props.index] : null;
24424
- return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : _findDownSelectableCell(downCell) : null;
24425
- };
24426
- var _findUpSelectableCell = function findUpSelectableCell(cell) {
24427
- var upRow = cell.parentElement.previousElementSibling;
24428
- var upCell = upRow ? upRow.children[props.index] : null;
24429
- return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : _findUpSelectableCell(upCell) : null;
24430
- };
24431
- var changeTabIndex = function changeTabIndex(currentCell, nextCell) {
24432
- if (currentCell && nextCell) {
24433
- currentCell.tabIndex = -1;
24434
- nextCell.tabIndex = props.tabIndex;
24435
- }
24436
- };
24437
- var focusOnElement = function focusOnElement() {
24438
- clearTimeout(focusTimeout.current);
24439
- focusTimeout.current = setTimeout(function () {
24440
- if (editingState) {
24441
- var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
24442
- focusableEl && focusableEl.focus();
24443
- }
24444
- keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
24445
- }, 1);
24446
- };
24447
- var focusOnInit = function focusOnInit() {
24448
- clearTimeout(initFocusTimeout.current);
24449
- initFocusTimeout.current = setTimeout(function () {
24450
- var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
24451
- focusableEl && focusableEl.focus();
24452
- }, 1);
24453
- };
24454
- var updateStickyPosition = function updateStickyPosition() {
24455
- if (getColumnProp('frozen')) {
24456
- var styleObject = _objectSpread$1i({}, styleObjectState);
24457
- var align = getColumnProp('alignFrozen');
24458
- if (align === 'right') {
24459
- var right = 0;
24460
- var next = elementRef.current && elementRef.current.nextElementSibling;
24461
- if (next && next.classList.contains('p-frozen-column')) {
24462
- right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
24463
- }
24464
- styleObject.right = right + 'px';
24465
- } else {
24466
- var left = 0;
24467
- var prev = elementRef.current && elementRef.current.previousElementSibling;
24468
- if (prev && prev.classList.contains('p-frozen-column')) {
24469
- left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
24470
- }
24471
- styleObject.left = left + 'px';
24472
- }
24473
- var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
24474
- !isSameStyle && setStyleObjectState(styleObject);
24475
- }
24476
- };
24477
24551
  var editorCallback = function editorCallback(val) {
24478
24552
  var editingRowData = _objectSpread$1i({}, editingRowDataState);
24479
- ObjectUtils.mutateFieldData(editingRowData, field, val);
24553
+ ObjectUtils.mutateFieldData(editingRowData, props.field, val);
24480
24554
  setEditingRowDataState(editingRowData);
24481
24555
 
24482
24556
  // update editing meta for complete methods on row mode
24483
- var currentData = getEditingRowData();
24557
+ var currentData = props.getEditingRowData();
24484
24558
  if (currentData) {
24485
- ObjectUtils.mutateFieldData(currentData, field, val);
24559
+ ObjectUtils.mutateFieldData(currentData, props.field, val);
24486
24560
  }
24487
24561
  editingRowDataStateRef.current = editingRowData;
24488
24562
  };
24489
24563
  var _onClick = function onClick(event) {
24490
- var params = getCellCallbackParams(event);
24491
- if (props.editMode !== 'row' && isEditable() && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.selected)) {
24492
- selfClick.current = true;
24493
- var onBeforeCellEditShow = getColumnProp('onBeforeCellEditShow');
24494
- var onCellEditInit = getColumnProp('onCellEditInit');
24495
- var cellEditValidatorEvent = getColumnProp('cellEditValidatorEvent');
24496
- if (onBeforeCellEditShow) {
24497
- // if user returns false do not show the editor
24498
- if (onBeforeCellEditShow(params) === false) {
24499
- return;
24500
- }
24501
-
24502
- // if user prevents default stop the editor
24503
- if (event && event.defaultPrevented) {
24504
- return;
24505
- }
24506
- }
24507
-
24508
- // 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.
24509
- setTimeout(function () {
24510
- setEditingState(true);
24511
- if (onCellEditInit) {
24512
- if (onCellEditInit(params) === false) {
24513
- return;
24514
- }
24515
-
24516
- // if user prevents default stop the editor
24517
- if (event && event.defaultPrevented) {
24518
- return;
24519
- }
24520
- }
24521
- if (cellEditValidatorEvent === 'click') {
24522
- bindDocumentClickListener();
24523
- overlayEventListener.current = function (e) {
24524
- if (!isOutsideClicked(e.target)) {
24525
- selfClick.current = true;
24526
- }
24527
- };
24528
- OverlayService.on('overlay-click', overlayEventListener.current);
24529
- }
24530
- }, 1);
24531
- }
24532
- if (props.allowCellSelection && props.onClick) {
24533
- props.onClick(params);
24534
- }
24564
+ props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState, selfClick, props.column, bindDocumentClickListener, overlayEventListener);
24535
24565
  };
24536
24566
  var _onMouseDown = function onMouseDown(event) {
24537
24567
  var params = getCellCallbackParams(event);
@@ -24555,7 +24585,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24555
24585
  cell = event.currentTarget;
24556
24586
  switch (event.code) {
24557
24587
  case 'ArrowLeft':
24558
- var prevCell = _findPrevSelectableCell(cell);
24588
+ var prevCell = props.findPrevSelectableCell(cell);
24559
24589
  if (prevCell) {
24560
24590
  changeTabIndex(cell, prevCell);
24561
24591
  prevCell.focus();
@@ -24563,7 +24593,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24563
24593
  event.preventDefault();
24564
24594
  break;
24565
24595
  case 'ArrowRight':
24566
- var nextCell = _findNextSelectableCell(cell);
24596
+ var nextCell = props.findNextSelectableCell(cell);
24567
24597
  if (nextCell) {
24568
24598
  changeTabIndex(cell, nextCell);
24569
24599
  nextCell.focus();
@@ -24571,7 +24601,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24571
24601
  event.preventDefault();
24572
24602
  break;
24573
24603
  case 'ArrowUp':
24574
- var upCell = _findUpSelectableCell(cell);
24604
+ var upCell = props.findUpSelectableCell(cell, index);
24575
24605
  if (upCell) {
24576
24606
  changeTabIndex(cell, upCell);
24577
24607
  upCell.focus();
@@ -24579,7 +24609,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24579
24609
  event.preventDefault();
24580
24610
  break;
24581
24611
  case 'ArrowDown':
24582
- var downCell = _findDownSelectableCell(cell);
24612
+ var downCell = props.findDownSelectableCell(cell, index);
24583
24613
  if (downCell) {
24584
24614
  changeTabIndex(cell, downCell);
24585
24615
  downCell.focus();
@@ -24618,13 +24648,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24618
24648
  index: props.rowIndex
24619
24649
  });
24620
24650
  };
24621
- var onCheckboxChange = function onCheckboxChange(event) {
24622
- props.onCheckboxChange({
24623
- originalEvent: event,
24624
- data: props.rowData,
24625
- index: props.rowIndex
24626
- });
24627
- };
24628
24651
  var onRowToggle = function onRowToggle(event) {
24629
24652
  props.onRowToggle({
24630
24653
  originalEvent: event,
@@ -24637,8 +24660,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24637
24660
  props.onRowEditInit({
24638
24661
  originalEvent: event,
24639
24662
  data: props.rowData,
24640
- newData: getEditingRowData(),
24641
- field: field,
24663
+ newData: props.getEditingRowData(),
24664
+ field: props.field,
24642
24665
  index: props.rowIndex
24643
24666
  });
24644
24667
  };
@@ -24646,32 +24669,26 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24646
24669
  props.onRowEditSave({
24647
24670
  originalEvent: event,
24648
24671
  data: props.rowData,
24649
- newData: getEditingRowData(),
24650
- field: field,
24672
+ newData: props.getEditingRowData(),
24673
+ field: props.field,
24651
24674
  index: props.rowIndex
24652
24675
  });
24653
- focusOnInit();
24676
+ props.focusOnInit(initFocusTimeout, elementRef);
24654
24677
  };
24655
24678
  var onRowEditCancel = function onRowEditCancel(event) {
24656
24679
  props.onRowEditCancel({
24657
24680
  originalEvent: event,
24658
24681
  data: props.rowData,
24659
- newData: getEditingRowData(),
24660
- field: field,
24682
+ newData: props.getEditingRowData(),
24683
+ field: props.field,
24661
24684
  index: props.rowIndex
24662
24685
  });
24663
- focusOnInit();
24686
+ props.focusOnInit();
24664
24687
  };
24665
24688
  React.useEffect(function () {
24666
- if (getColumnProp('frozen')) {
24667
- updateStickyPosition();
24668
- }
24669
- });
24670
- React.useEffect(function () {
24671
- if (props.editMode === 'cell' || props.editMode === 'row') {
24672
- focusOnElement();
24673
- }
24674
- }, [props.editMode, props.editing, editingState]); // eslint-disable-line react-hooks/exhaustive-deps
24689
+ if (props.frozenCol) props.updateStickyPosition(elementRef, props.frozenCol, props.alignFrozenCol, styleObjectState, setStyleObjectState);
24690
+ if (props.editMode === 'cell' || props.editMode === 'row') props.focusOnElement(focusTimeout, editingState, elementRef, keyHelperRef);
24691
+ }, [props.editMode, props.editing, editingState, props.frozenCol, props.alignFrozenCol]); // eslint-disable-line react-hooks/exhaustive-deps
24675
24692
 
24676
24693
  React.useEffect(function () {
24677
24694
  if (props.editMode === 'row' && props.editing !== editingState) {
@@ -24680,7 +24697,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24680
24697
  }, [props.editMode, props.editing, editingState]);
24681
24698
  useUpdateEffect(function () {
24682
24699
  if (props.editMode === 'cell' || props.editMode === 'row') {
24683
- var editingRowData = getEditingRowData();
24700
+ var editingRowData = props.getEditingRowData();
24684
24701
  setEditingRowDataState(editingRowData);
24685
24702
  editingRowDataStateRef.current = editingRowData;
24686
24703
  }
@@ -24690,7 +24707,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24690
24707
  var callbackParams = getCellCallbackParams();
24691
24708
  var params = _objectSpread$1i(_objectSpread$1i({}, callbackParams), {}, {
24692
24709
  editing: editingState,
24693
- editingKey: editingKey
24710
+ editingKey: props.editingKey
24694
24711
  });
24695
24712
  props.onEditingMetaChange(params);
24696
24713
  }
@@ -24703,16 +24720,16 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24703
24720
  }
24704
24721
  });
24705
24722
  var createLoading = function createLoading() {
24706
- var options = getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
24723
+ var options = props.getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
24707
24724
  cellIndex: props.index,
24708
24725
  cellFirst: props.index === 0,
24709
- cellLast: props.index === getVirtualScrollerOption('columns').length - 1,
24726
+ cellLast: props.index === props.getVirtualScrollerOption('columns').length - 1,
24710
24727
  cellEven: props.index % 2 === 0,
24711
24728
  cellOdd: props.index % 2 !== 0,
24712
24729
  column: props.column,
24713
- field: field
24730
+ field: props.field
24714
24731
  });
24715
- var content = ObjectUtils.getJSXElement(getVirtualScrollerOption('loadingTemplate'), options);
24732
+ var content = ObjectUtils.getJSXElement(props.getVirtualScrollerOption('loadingTemplate'), options);
24716
24733
  var bodyCellProps = mergeProps(getColumnPTOptions('bodyCell'), {
24717
24734
  role: 'cell'
24718
24735
  });
@@ -24721,20 +24738,20 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24721
24738
  var createElement = function createElement() {
24722
24739
  var content;
24723
24740
  var editorKeyHelper;
24724
- var cellSelected = props.allowCellSelection && isSelected();
24741
+ var cellSelected = props.allowCellSelection && props.isCellSelected;
24725
24742
  var isRowEditor = props.editMode === 'row';
24726
- var tabIndex = getTabIndex(cellSelected);
24743
+ var tabIndex = props.getTabIndex(cellSelected, props.index);
24727
24744
  var selectionMode = getColumnProp('selectionMode');
24728
24745
  var rowReorder = getColumnProp('rowReorder');
24729
24746
  var header = getColumnProp('header');
24730
24747
  var body = getColumnProp('body');
24731
24748
  var editor = getColumnProp('editor');
24732
- var frozen = getColumnProp('frozen');
24749
+ var frozen = props.frozenCol;
24733
24750
  var align = getColumnProp('align');
24734
- var value = resolveFieldData();
24751
+ var value = props.resolveFieldData();
24735
24752
  var columnBodyOptions = {
24736
24753
  column: props.column,
24737
- field: field,
24754
+ field: props.field,
24738
24755
  rowIndex: props.rowIndex,
24739
24756
  frozenRow: props.frozenRow,
24740
24757
  props: props.tableProps
@@ -24759,12 +24776,12 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24759
24776
  if (showSelection) {
24760
24777
  var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
24761
24778
  var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
24762
- label = "".concat(props.selected ? ariaLabel('unselectRow') : ariaLabel('selectRow'), " ").concat(ariaLabelText);
24779
+ label = "".concat(props.isRowSelected ? ariaLabel('unselectRow') : ariaLabel('selectRow'), " ").concat(ariaLabelText);
24763
24780
  }
24764
24781
  content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {
24765
24782
  hostName: props.hostName,
24766
24783
  column: props.column,
24767
- checked: props.selected,
24784
+ checked: props.isRowSelected,
24768
24785
  disabled: !props.isSelectable({
24769
24786
  data: props.rowData,
24770
24787
  index: props.rowIndex
@@ -24779,12 +24796,12 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24779
24796
  }), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {
24780
24797
  hostName: props.hostName,
24781
24798
  column: props.column,
24782
- checked: props.selected,
24799
+ checked: props.isRowSelected,
24783
24800
  disabled: !props.isSelectable({
24784
24801
  data: props.rowData,
24785
24802
  index: props.rowIndex
24786
24803
  }),
24787
- onChange: onCheckboxChange,
24804
+ onChange: props.onCheckboxChange,
24788
24805
  tabIndex: props.tabIndex,
24789
24806
  ariaLabel: label,
24790
24807
  checkIcon: props.checkIcon,
@@ -24834,7 +24851,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24834
24851
  expanderProps.element = content;
24835
24852
  content = ObjectUtils.getJSXElement(body, props.rowData, {
24836
24853
  column: props.column,
24837
- field: field,
24854
+ field: props.field,
24838
24855
  rowIndex: props.rowIndex,
24839
24856
  frozenRow: props.frozenRow,
24840
24857
  props: props.tableProps,
@@ -24908,7 +24925,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24908
24925
  rowEditorProps.element = content;
24909
24926
  content = ObjectUtils.getJSXElement(body, props.rowData, {
24910
24927
  column: props.column,
24911
- field: field,
24928
+ field: props.field,
24912
24929
  rowIndex: props.rowIndex,
24913
24930
  frozenRow: props.frozenRow,
24914
24931
  props: props.tableProps,
@@ -24918,7 +24935,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24918
24935
  } else if (body && (!editingState || !editor)) {
24919
24936
  content = body ? ObjectUtils.getJSXElement(body, props.rowData, {
24920
24937
  column: props.column,
24921
- field: field,
24938
+ field: props.field,
24922
24939
  rowIndex: props.rowIndex,
24923
24940
  frozenRow: props.frozenRow,
24924
24941
  props: props.tableProps
@@ -24926,9 +24943,9 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24926
24943
  } else if (editor && editingState) {
24927
24944
  content = ObjectUtils.getJSXElement(editor, {
24928
24945
  rowData: editingRowDataState,
24929
- value: resolveFieldData(editingRowDataState),
24946
+ value: props.resolveFieldData(editingRowDataState),
24930
24947
  column: props.column,
24931
- field: field,
24948
+ field: props.field,
24932
24949
  rowIndex: props.rowIndex,
24933
24950
  frozenRow: props.frozenRow,
24934
24951
  props: props.tableProps,
@@ -24996,7 +25013,22 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
24996
25013
  ref: elementRef
24997
25014
  }, bodyCellProps), editorKeyHelper, title, content);
24998
25015
  };
24999
- return getVirtualScrollerOption('loading') ? createLoading() : createElement();
25016
+ return props.getVirtualScrollerOption('loading') ? createLoading() : createElement();
25017
+ };
25018
+
25019
+ // RadioCheckCell is used for the Radio and Checkbox selection and has the isRowSelected dependency
25020
+ var RadioCheckCell = /*#__PURE__*/React.memo(function (props) {
25021
+ return /*#__PURE__*/React.createElement(Cell, props);
25022
+ }, function (prevProps, nextProps) {
25023
+ var keysToCompare = ['isRowSelected', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData'];
25024
+ return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
25025
+ });
25026
+ RadioCheckCell.displayName = 'RadioCheckCell';
25027
+ var BodyCell = /*#__PURE__*/React.memo(function (props) {
25028
+ return /*#__PURE__*/React.createElement(Cell, props);
25029
+ }, function (prevProps, nextProps) {
25030
+ var keysToCompare = ['field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData', 'frozenCol', 'alignFrozenCol'];
25031
+ return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
25000
25032
  });
25001
25033
  BodyCell.displayName = 'BodyCell';
25002
25034
 
@@ -25012,6 +25044,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
25012
25044
  var _props$ptCallbacks = props.ptCallbacks,
25013
25045
  ptm = _props$ptCallbacks.ptm,
25014
25046
  cx = _props$ptCallbacks.cx;
25047
+ var isRowSelected = !props.allowCellSelection && props.selected || props.contextMenuSelected;
25015
25048
  var getBodyRowPTOptions = function getBodyRowPTOptions(key) {
25016
25049
  return ptm(key, {
25017
25050
  parent: props.metaData,
@@ -25025,7 +25058,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
25025
25058
  data: props.rowData,
25026
25059
  index: props.rowIndex
25027
25060
  }),
25028
- selected: !props.allowCellSelection && props.selected || props.contextMenuSelected,
25061
+ selected: isRowSelected,
25029
25062
  stripedRows: props.metaData.props.stripedRows
25030
25063
  }
25031
25064
  });
@@ -25054,10 +25087,10 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
25054
25087
  return equals(rowData, data);
25055
25088
  });
25056
25089
  };
25057
- var changeTabIndex = function changeTabIndex(currentRow, nextRow) {
25058
- if (currentRow && nextRow) {
25059
- currentRow.tabIndex = -1;
25060
- nextRow.tabIndex = props.tabIndex;
25090
+ var changeTabIndex = function changeTabIndex(currentElement, nextElement) {
25091
+ if (currentElement && nextElement) {
25092
+ currentElement.tabIndex = -1;
25093
+ nextElement.tabIndex = props.tabIndex;
25061
25094
  }
25062
25095
  };
25063
25096
  var findFirstSelectableRow = function findFirstSelectableRow(row) {
@@ -25384,32 +25417,176 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
25384
25417
  onEditChange(e, false);
25385
25418
  event.preventDefault();
25386
25419
  };
25420
+ var equalsDataCell = function equalsDataCell(data) {
25421
+ return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
25422
+ };
25423
+ var equalsCell = function equalsCell(selectedCell, field, colIndex) {
25424
+ return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsDataCell(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === colIndex);
25425
+ };
25426
+ var findIndexCell = function findIndexCell(collection, field, colIndex) {
25427
+ return (collection || []).findIndex(function (data) {
25428
+ return equalsCell(data, field, colIndex);
25429
+ });
25430
+ };
25431
+ var isCellSelected = function isCellSelected(selection, field, colIndex) {
25432
+ return selection ? selection instanceof Array ? findIndexCell(selection, field, colIndex) > -1 : equalsCell(selection, field, colIndex) : false;
25433
+ };
25434
+ var onCheckboxChange = function onCheckboxChange(event) {
25435
+ props.onCheckboxChange({
25436
+ originalEvent: event,
25437
+ data: props.rowData,
25438
+ index: props.rowIndex
25439
+ });
25440
+ };
25441
+ var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
25442
+ var getVirtualScrollerOption = React.useCallback(function (option) {
25443
+ return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
25444
+ }, [props.virtualScrollerOptions]);
25445
+ var getEditingRowData = function getEditingRowData() {
25446
+ return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
25447
+ };
25448
+ var getTabIndexCell = React.useCallback(function (cellSelected, cellIndex) {
25449
+ return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && cellIndex === 0 ? props.tabIndex : -1 : null;
25450
+ }, [props.allowCellSelection, props.rowIndex, props.tabIndex]);
25451
+ var findNextSelectableCell = React.useCallback(function (cell) {
25452
+ var nextCell = cell.nextElementSibling;
25453
+ return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : findNextSelectableCell(nextCell) : null;
25454
+ }, []);
25455
+ var findPrevSelectableCell = React.useCallback(function (cell) {
25456
+ var prevCell = cell.previousElementSibling;
25457
+ return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : findPrevSelectableCell(prevCell) : null;
25458
+ }, []);
25459
+ var findDownSelectableCell = React.useCallback(function (cell, cellIndex) {
25460
+ var downRow = cell.parentElement.nextElementSibling;
25461
+ var downCell = downRow ? downRow.children[cellIndex] : null;
25462
+ return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : findDownSelectableCell(downCell) : null;
25463
+ }, []);
25464
+ var findUpSelectableCell = React.useCallback(function (cell, cellIndex) {
25465
+ var upRow = cell.parentElement.previousElementSibling;
25466
+ var upCell = upRow ? upRow.children[cellIndex] : null;
25467
+ return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : findUpSelectableCell(upCell) : null;
25468
+ }, []);
25469
+ var focusOnElement = React.useCallback(function (focusTimeoutRef, editingState, elementRef, keyHelperRef) {
25470
+ clearTimeout(focusTimeoutRef.current);
25471
+ focusTimeoutRef.current = setTimeout(function () {
25472
+ if (editingState) {
25473
+ var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
25474
+ focusableEl && focusableEl.focus();
25475
+ }
25476
+ keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
25477
+ }, 1);
25478
+ }, [props.editMode]);
25479
+ var focusOnInit = React.useCallback(function (initFocusTimeoutRef, elementRef) {
25480
+ clearTimeout(initFocusTimeoutRef.current);
25481
+ initFocusTimeoutRef.current = setTimeout(function () {
25482
+ var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
25483
+ focusableEl && focusableEl.focus();
25484
+ }, 1);
25485
+ }, [props.editMode]);
25486
+ var updateStickyPosition = React.useCallback(function (elementRef, frozen, alignFrozen, styleObjectState, setStyleObjectState) {
25487
+ if (frozen) {
25488
+ var styleObject = _objectSpread$1h({}, styleObjectState);
25489
+ if (alignFrozen === 'right') {
25490
+ var right = 0;
25491
+ var next = elementRef.current && elementRef.current.nextElementSibling;
25492
+ if (next && next.classList.contains('p-frozen-column')) {
25493
+ right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
25494
+ }
25495
+ styleObject.right = right + 'px';
25496
+ } else {
25497
+ var left = 0;
25498
+ var prev = elementRef.current && elementRef.current.previousElementSibling;
25499
+ if (prev && prev.classList.contains('p-frozen-column')) {
25500
+ left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
25501
+ }
25502
+ styleObject.left = left + 'px';
25503
+ }
25504
+ var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
25505
+ !isSameStyle && setStyleObjectState(styleObject);
25506
+ }
25507
+ }, []);
25508
+ var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState, selfClick, column, bindDocumentClickListener, overlayEventListener) {
25509
+ if (props.editMode !== 'row' && isEditable && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.isRowSelected)) {
25510
+ selfClick.current = true;
25511
+ var onBeforeCellEditShow = getColumnProp(column, 'onBeforeCellEditShow');
25512
+ var onCellEditInit = getColumnProp(column, 'onCellEditInit');
25513
+ var cellEditValidatorEvent = getColumnProp(column, 'cellEditValidatorEvent');
25514
+ if (onBeforeCellEditShow) {
25515
+ // if user returns false do not show the editor
25516
+ if (onBeforeCellEditShow(params) === false) {
25517
+ return;
25518
+ }
25519
+
25520
+ // if user prevents default stop the editor
25521
+ if (event && event.defaultPrevented) {
25522
+ return;
25523
+ }
25524
+ }
25525
+
25526
+ // 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.
25527
+ setTimeout(function () {
25528
+ setEditingState(true);
25529
+ if (onCellEditInit) {
25530
+ if (onCellEditInit(params) === false) {
25531
+ return;
25532
+ }
25533
+
25534
+ // if user prevents default stop the editor
25535
+ if (event && event.defaultPrevented) {
25536
+ return;
25537
+ }
25538
+ }
25539
+ if (cellEditValidatorEvent === 'click') {
25540
+ bindDocumentClickListener();
25541
+ overlayEventListener.current = function (e) {
25542
+ if (!isOutsideClicked(e.target)) {
25543
+ selfClick.current = true;
25544
+ }
25545
+ };
25546
+ OverlayService.on('overlay-click', overlayEventListener.current);
25547
+ }
25548
+ }, 1);
25549
+ }
25550
+ if (props.allowCellSelection && props.onCellClick) {
25551
+ props.onCellClick(params);
25552
+ }
25553
+ };
25387
25554
  var createContent = function createContent() {
25388
25555
  return props.columns.map(function (col, i) {
25389
25556
  if (shouldRenderBodyCell(props.value, col, props.index)) {
25390
25557
  var key = "".concat(props.rowIndex, "_").concat(getColumnProp(col, 'columnKey') || getColumnProp(col, 'field'), "_").concat(i);
25391
25558
  var rowSpan = props.rowGroupMode === 'rowspan' ? calculateRowGroupSize(props.value, col, props.index) : null;
25392
- return /*#__PURE__*/React.createElement(BodyCell, {
25559
+ var field = getColumnProp(col, 'field') || "field_".concat(i);
25560
+ var resolveFieldData = function resolveFieldData(data) {
25561
+ return ObjectUtils.resolveFieldData(data || props.rowData, field);
25562
+ };
25563
+ var selectionMode = getColumnProp(col, 'selectionMode');
25564
+ var cellProps = mergeProps({
25393
25565
  hostName: props.hostName,
25394
- key: key,
25395
25566
  allowCellSelection: props.allowCellSelection,
25396
25567
  cellClassName: props.cellClassName,
25397
25568
  checkIcon: props.checkIcon,
25398
25569
  collapsedRowIcon: props.collapsedRowIcon,
25570
+ field: field,
25571
+ resolveFieldData: resolveFieldData,
25399
25572
  column: col,
25400
- compareSelectionBy: props.compareSelectionBy,
25573
+ cProps: props.colsProps[i],
25401
25574
  dataKey: props.dataKey,
25402
25575
  editMode: props.editMode,
25403
25576
  editing: editing,
25404
25577
  editingMeta: props.editingMeta,
25578
+ onEditingMetaChange: props.onEditingMetaChange,
25579
+ editingKey: editingKey,
25580
+ getEditingRowData: getEditingRowData,
25405
25581
  expanded: props.expanded,
25406
25582
  expandedRowIcon: props.expandedRowIcon,
25407
25583
  frozenRow: props.frozenRow,
25584
+ frozenCol: getColumnProp(col, 'frozen'),
25585
+ alignFrozenCol: getColumnProp(col, 'alignFrozen'),
25408
25586
  index: i,
25409
25587
  isSelectable: props.isSelectable,
25410
- onCheckboxChange: props.onCheckboxChange,
25411
- onClick: props.onCellClick,
25412
- onEditingMetaChange: props.onEditingMetaChange,
25588
+ onCheckboxChange: onCheckboxChange,
25589
+ onClick: onCellClick,
25413
25590
  onMouseDown: props.onCellMouseDown,
25414
25591
  onMouseUp: props.onCellMouseUp,
25415
25592
  onRadioChange: props.onRadioChange,
@@ -25425,20 +25602,31 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
25425
25602
  rowIndex: props.rowIndex,
25426
25603
  rowSpan: rowSpan,
25427
25604
  selectOnEdit: props.selectOnEdit,
25428
- selected: props.selected,
25429
- selection: props.selection,
25605
+ isRowSelected: isRowSelected,
25606
+ isCellSelected: isCellSelected(props.selection, field, i),
25430
25607
  selectionAriaLabel: props.tableProps.selectionAriaLabel,
25431
25608
  showRowReorderElement: props.showRowReorderElement,
25432
25609
  showSelectionElement: props.showSelectionElement,
25433
25610
  tabIndex: props.tabIndex,
25611
+ getTabIndex: getTabIndexCell,
25434
25612
  tableProps: props.tableProps,
25435
25613
  tableSelector: props.tableSelector,
25436
25614
  value: props.value,
25437
- virtualScrollerOptions: props.virtualScrollerOptions,
25615
+ getVirtualScrollerOption: getVirtualScrollerOption,
25438
25616
  ptCallbacks: props.ptCallbacks,
25439
25617
  metaData: props.metaData,
25440
- unstyled: props.unstyled
25618
+ unstyled: props.unstyled,
25619
+ findNextSelectableCell: findNextSelectableCell,
25620
+ findPrevSelectableCell: findPrevSelectableCell,
25621
+ findDownSelectableCell: findDownSelectableCell,
25622
+ findUpSelectableCell: findUpSelectableCell,
25623
+ focusOnElement: focusOnElement,
25624
+ focusOnInit: focusOnInit,
25625
+ updateStickyPosition: updateStickyPosition
25441
25626
  });
25627
+ return /*#__PURE__*/React.createElement(Fragment, {
25628
+ key: key
25629
+ }, selectionMode ? /*#__PURE__*/React.createElement(RadioCheckCell, cellProps) : /*#__PURE__*/React.createElement(BodyCell, cellProps));
25442
25630
  }
25443
25631
  return null;
25444
25632
  });
@@ -25588,8 +25776,11 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25588
25776
  var getColumnProps = function getColumnProps(column) {
25589
25777
  return ColumnBase.getCProps(column);
25590
25778
  };
25779
+ var cProps = getColumnProps(props.column);
25780
+ var colsProps = props.columns ? props.columns.map(function (col) {
25781
+ return getColumnProps(col);
25782
+ }) : [];
25591
25783
  var getColumnPTOptions = function getColumnPTOptions(key) {
25592
- var cProps = getColumnProps(props.column);
25593
25784
  var columnMetaData = {
25594
25785
  props: cProps,
25595
25786
  parent: props.metaData,
@@ -25714,8 +25905,12 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25714
25905
  var allowSelection = function allowSelection(event) {
25715
25906
  return !DomHandler.isClickable(event.originalEvent.target);
25716
25907
  };
25908
+ var metaKeySelectionRef = React.useRef(props.metaKeySelection);
25909
+ React.useEffect(function () {
25910
+ metaKeySelectionRef.current = props.metaKeySelection;
25911
+ }, [props.metaKeySelection]);
25717
25912
  var allowMetaKeySelection = function allowMetaKeySelection(event) {
25718
- return !rowTouched.current && (!props.metaKeySelection || props.metaKeySelection && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));
25913
+ return !rowTouched.current && (!metaKeySelectionRef.current || metaKeySelectionRef.current && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));
25719
25914
  };
25720
25915
  var allowRangeSelection = function allowRangeSelection(event) {
25721
25916
  return isMultipleSelection() && event.originalEvent.shiftKey && anchorRowIndex.current !== null;
@@ -25736,6 +25931,9 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25736
25931
  options = options || props.virtualScrollerOptions;
25737
25932
  return options ? options[option] : null;
25738
25933
  };
25934
+ var getProcessedDataIndex = function getProcessedDataIndex(rowIndex) {
25935
+ return props.lazy ? rowIndex - props.first : rowIndex;
25936
+ };
25739
25937
  var findIndex = function findIndex(collection, rowData) {
25740
25938
  return (collection || []).findIndex(function (data) {
25741
25939
  return equals(rowData, data);
@@ -25785,6 +25983,10 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25785
25983
  });
25786
25984
  }
25787
25985
  };
25986
+ var selectionRef = React.useRef(props.selection);
25987
+ React.useEffect(function () {
25988
+ selectionRef.current = props.selection;
25989
+ }, [props.selection]);
25788
25990
  var onSingleSelection = function onSingleSelection(_ref) {
25789
25991
  var originalEvent = _ref.originalEvent,
25790
25992
  data = _ref.data,
@@ -25798,10 +26000,11 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25798
26000
  return;
25799
26001
  }
25800
26002
  var selected = isSelected(data);
25801
- var selection = props.selection;
26003
+ var currentSelection = selectionRef.current || [];
26004
+ var newSelection = currentSelection;
25802
26005
  if (selected) {
25803
26006
  if (toggleable) {
25804
- selection = null;
26007
+ newSelection = null;
25805
26008
  onUnselect({
25806
26009
  originalEvent: originalEvent,
25807
26010
  data: data,
@@ -25809,7 +26012,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25809
26012
  });
25810
26013
  }
25811
26014
  } else {
25812
- selection = data;
26015
+ newSelection = data;
25813
26016
  onSelect({
25814
26017
  originalEvent: originalEvent,
25815
26018
  data: data,
@@ -25817,10 +26020,10 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25817
26020
  });
25818
26021
  }
25819
26022
  focusOnElement(originalEvent, true);
25820
- if (props.onSelectionChange && selection !== props.selection) {
26023
+ if (props.onSelectionChange && newSelection !== currentSelection) {
25821
26024
  props.onSelectionChange({
25822
26025
  originalEvent: originalEvent,
25823
- value: selection,
26026
+ value: newSelection,
25824
26027
  type: type
25825
26028
  });
25826
26029
  }
@@ -25838,11 +26041,12 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25838
26041
  return;
25839
26042
  }
25840
26043
  var selected = isSelected(data);
25841
- var selection = props.selection || [];
26044
+ var currentSelection = selectionRef.current || [];
26045
+ var newSelection = currentSelection;
25842
26046
  if (selected) {
25843
26047
  if (toggleable) {
25844
- var selectionIndex = findIndex(selection, data);
25845
- selection = props.selection.filter(function (val, i) {
26048
+ var selectionIndex = findIndex(currentSelection, data);
26049
+ newSelection = currentSelection.filter(function (val, i) {
25846
26050
  return i !== selectionIndex;
25847
26051
  });
25848
26052
  onUnselect({
@@ -25850,15 +26054,15 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25850
26054
  data: data,
25851
26055
  type: type
25852
26056
  });
25853
- } else if (selection.length) {
25854
- props.selection.forEach(function (d) {
26057
+ } else if (currentSelection.length) {
26058
+ currentSelection.forEach(function (d) {
25855
26059
  return onUnselect({
25856
26060
  originalEvent: originalEvent,
25857
26061
  data: d,
25858
26062
  type: type
25859
26063
  });
25860
26064
  });
25861
- selection = [data];
26065
+ newSelection = [data];
25862
26066
  onSelect({
25863
26067
  originalEvent: originalEvent,
25864
26068
  data: data,
@@ -25866,18 +26070,18 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25866
26070
  });
25867
26071
  }
25868
26072
  } else {
25869
- selection = ObjectUtils.isObject(selection) ? [selection] : selection;
25870
- selection = toggleable && isMultipleSelection() ? [].concat(_toConsumableArray(selection), [data]) : [data];
26073
+ newSelection = ObjectUtils.isObject(currentSelection) ? [currentSelection] : currentSelection;
26074
+ newSelection = toggleable && isMultipleSelection() ? [].concat(_toConsumableArray(newSelection), [data]) : [data];
25871
26075
  onSelect({
25872
26076
  originalEvent: originalEvent,
25873
26077
  data: data,
25874
26078
  type: type
25875
26079
  });
25876
26080
  }
25877
- if (props.onSelectionChange && selection !== props.selection) {
26081
+ if (props.onSelectionChange && newSelection !== currentSelection) {
25878
26082
  props.onSelectionChange({
25879
26083
  originalEvent: originalEvent,
25880
- value: selection,
26084
+ value: newSelection,
25881
26085
  type: type
25882
26086
  });
25883
26087
  }
@@ -25900,14 +26104,16 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25900
26104
  var rangeStart;
25901
26105
  var rangeEnd;
25902
26106
  var isAllowCellSelection = allowCellSelection();
25903
- if (rangeRowIndex.current > anchorRowIndex.current) {
25904
- rangeStart = anchorRowIndex.current;
25905
- rangeEnd = rangeRowIndex.current;
25906
- } else if (rangeRowIndex.current < anchorRowIndex.current) {
25907
- rangeStart = rangeRowIndex.current;
25908
- rangeEnd = anchorRowIndex.current;
26107
+ var rangeRowIndexInProcessedData = getProcessedDataIndex(rangeRowIndex.current);
26108
+ var anchorRowIndexInProcessedData = getProcessedDataIndex(anchorRowIndex.current);
26109
+ if (rangeRowIndexInProcessedData > anchorRowIndexInProcessedData) {
26110
+ rangeStart = anchorRowIndexInProcessedData;
26111
+ rangeEnd = rangeRowIndexInProcessedData;
26112
+ } else if (rangeRowIndexInProcessedData < anchorRowIndexInProcessedData) {
26113
+ rangeStart = rangeRowIndexInProcessedData;
26114
+ rangeEnd = anchorRowIndexInProcessedData;
25909
26115
  } else {
25910
- rangeStart = rangeEnd = rangeRowIndex.current;
26116
+ rangeStart = rangeEnd = rangeRowIndexInProcessedData;
25911
26117
  }
25912
26118
  return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
25913
26119
  };
@@ -25948,7 +26154,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
25948
26154
  for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
25949
26155
  var rowData = value[i];
25950
26156
  var columns = props.columns;
25951
- var rowIndex = props.paginator ? i + props.first : i;
26157
+ var rowIndex = props.lazy ? i + props.first : i;
25952
26158
  for (var j = cellRangeStart; j <= cellRangeEnd; j++) {
25953
26159
  var field = getColumnProp(columns[j], 'field');
25954
26160
  var _value = ObjectUtils.resolveFieldData(rowData, field);
@@ -26413,7 +26619,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
26413
26619
  var emptyMessageProps = mergeProps({
26414
26620
  className: cx('emptyMessage'),
26415
26621
  role: 'row'
26416
- }, getColumnPTOptions('emptyMessage'));
26622
+ }, ptm('emptyMessage'));
26417
26623
  var bodyCellProps = mergeProps({
26418
26624
  colSpan: colSpan,
26419
26625
  role: 'cell'
@@ -26423,7 +26629,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
26423
26629
  return null;
26424
26630
  };
26425
26631
  var createGroupHeader = function createGroupHeader(rowData, rowIndex, expanded, colSpan) {
26426
- if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, rowIndex - props.first)) {
26632
+ if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, getProcessedDataIndex(rowIndex))) {
26427
26633
  var style = rowGroupHeaderStyle();
26428
26634
  var toggler = props.expandableRowGroups && /*#__PURE__*/React.createElement(RowTogglerButton, {
26429
26635
  hostName: props.hostName,
@@ -26450,14 +26656,14 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
26450
26656
  }, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
26451
26657
  var rowGroupHeaderNameProps = mergeProps({
26452
26658
  className: cx('rowGroupHeaderName')
26453
- }, getColumnPTOptions('rowGroupHeaderName'));
26659
+ }, ptm('rowGroupHeaderName'));
26454
26660
  _content2 = /*#__PURE__*/React.createElement("td", bodyCellProps, toggler, /*#__PURE__*/React.createElement("span", rowGroupHeaderNameProps, _content2));
26455
26661
  }
26456
26662
  var rowGroupHeaderProps = mergeProps({
26457
26663
  className: cx('rowGroupHeader'),
26458
26664
  style: style,
26459
26665
  role: 'row'
26460
- }, getColumnPTOptions('rowGroupHeader'));
26666
+ }, ptm('rowGroupHeader'));
26461
26667
  return /*#__PURE__*/React.createElement("tr", rowGroupHeaderProps, _content2);
26462
26668
  }
26463
26669
  return null;
@@ -26477,6 +26683,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
26477
26683
  checkIcon: props.checkIcon,
26478
26684
  collapsedRowIcon: props.collapsedRowIcon,
26479
26685
  columns: props.columns,
26686
+ colsProps: colsProps,
26480
26687
  compareSelectionBy: props.compareSelectionBy,
26481
26688
  contextMenuSelected: contextMenuSelected,
26482
26689
  dataKey: props.dataKey,
@@ -26565,7 +26772,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
26565
26772
  id: id,
26566
26773
  className: cx('rowExpansion'),
26567
26774
  role: 'row'
26568
- }, getColumnPTOptions('rowExpansion'));
26775
+ }, ptm('rowExpansion'));
26569
26776
  return /*#__PURE__*/React.createElement("tr", rowExpansionProps, _content3);
26570
26777
  }
26571
26778
  return null;
@@ -26580,7 +26787,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
26580
26787
  var rowGroupFooterProps = mergeProps({
26581
26788
  className: cx('rowGroupFooter'),
26582
26789
  role: 'row'
26583
- }, getColumnPTOptions('rowGroupFooter'));
26790
+ }, ptm('rowGroupFooter'));
26584
26791
  return /*#__PURE__*/React.createElement("tr", rowGroupFooterProps, _content4);
26585
26792
  }
26586
26793
  return null;
@@ -26956,9 +27163,17 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
26956
27163
  var type = _ref.type,
26957
27164
  valid = _ref.valid;
26958
27165
  if (valid) {
26959
- type === 'outside' ? !selfClick.current && !isTargetClicked(event.target) && hide() : hide();
27166
+ if (type === 'outside') {
27167
+ if (!selfClick.current && !isTargetClicked(event.target)) {
27168
+ hide();
27169
+ }
27170
+ selfClick.current = false;
27171
+ } else if (context.hideOverlaysOnDocumentScrolling) {
27172
+ hide();
27173
+ } else if (!DomHandler.isDocument(event.target)) {
27174
+ DomHandler.alignOverlay(overlayRef.current, iconRef.current, context && context.appendTo || PrimeReact.appendTo, false);
27175
+ }
26960
27176
  }
26961
- selfClick.current = false;
26962
27177
  },
26963
27178
  when: overlayVisibleState
26964
27179
  }),
@@ -28505,9 +28720,9 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
28505
28720
  });
28506
28721
  TableHeader.displayName = 'TableHeader';
28507
28722
 
28508
- 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; } } }; }
28509
- 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); }
28510
- 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; }
28723
+ 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; } } }; }
28724
+ 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; } }
28725
+ 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; }
28511
28726
  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; }
28512
28727
  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; }
28513
28728
  var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
@@ -28550,14 +28765,18 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
28550
28765
  _React$useState18 = _slicedToArray(_React$useState17, 2),
28551
28766
  editingMetaState = _React$useState18[0],
28552
28767
  setEditingMetaState = _React$useState18[1];
28553
- var _React$useState19 = React.useState(props.rows),
28768
+ var _React$useState19 = React.useState({}),
28554
28769
  _React$useState20 = _slicedToArray(_React$useState19, 2),
28555
- d_rowsState = _React$useState20[0],
28556
- setD_rowsState = _React$useState20[1];
28557
- var _React$useState21 = React.useState({}),
28770
+ frozenEditingMetaState = _React$useState20[0],
28771
+ setFrozenEditingMetaState = _React$useState20[1];
28772
+ var _React$useState21 = React.useState(props.rows),
28558
28773
  _React$useState22 = _slicedToArray(_React$useState21, 2),
28559
- d_filtersState = _React$useState22[0],
28560
- setD_filtersState = _React$useState22[1];
28774
+ d_rowsState = _React$useState22[0],
28775
+ setD_rowsState = _React$useState22[1];
28776
+ var _React$useState23 = React.useState({}),
28777
+ _React$useState24 = _slicedToArray(_React$useState23, 2),
28778
+ d_filtersState = _React$useState24[0],
28779
+ setD_filtersState = _React$useState24[1];
28561
28780
  var metaData = {
28562
28781
  props: props,
28563
28782
  state: {
@@ -28570,6 +28789,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
28570
28789
  columnOrder: columnOrderState,
28571
28790
  groupRowsSortMeta: groupRowsSortMetaState,
28572
28791
  editingMeta: editingMetaState,
28792
+ frozenEditingMeta: frozenEditingMetaState,
28573
28793
  d_rows: d_rowsState,
28574
28794
  d_filters: d_filtersState
28575
28795
  },
@@ -28974,6 +29194,32 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
28974
29194
  setEditingMetaState({});
28975
29195
  }
28976
29196
  };
29197
+ var onFrozenEditingMetaChange = function onFrozenEditingMetaChange(e) {
29198
+ var rowData = e.rowData,
29199
+ field = e.field,
29200
+ editingKey = e.editingKey,
29201
+ editing = e.editing;
29202
+ var frozenEditingMeta = _objectSpread$18({}, frozenEditingMetaState);
29203
+ var meta = frozenEditingMeta[editingKey];
29204
+ if (editing) {
29205
+ !meta && (meta = frozenEditingMeta[editingKey] = {
29206
+ data: _objectSpread$18({}, rowData),
29207
+ fields: []
29208
+ });
29209
+ meta.fields.push(field);
29210
+ } else if (meta) {
29211
+ var fields = meta.fields.filter(function (f) {
29212
+ return f !== field;
29213
+ });
29214
+ !fields.length ? delete frozenEditingMeta[editingKey] : meta.fields = fields;
29215
+ }
29216
+ setFrozenEditingMetaState(frozenEditingMeta);
29217
+ };
29218
+ var clearFrozenEditingMetaData = function clearFrozenEditingMetaData() {
29219
+ if (props.editMode && ObjectUtils.isNotEmpty(frozenEditingMetaState)) {
29220
+ setFrozenEditingMetaState({});
29221
+ }
29222
+ };
28977
29223
  var onColumnResizeStart = function onColumnResizeStart(e) {
28978
29224
  createBeforeResizeStyleElement();
28979
29225
  var event = e.originalEvent,
@@ -29264,6 +29510,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29264
29510
  };
29265
29511
  var onPageChange = function onPageChange(e) {
29266
29512
  clearEditingMetaData();
29513
+ clearFrozenEditingMetaData();
29267
29514
  if (props.onPage) {
29268
29515
  props.onPage(createEvent(e));
29269
29516
  } else {
@@ -29276,6 +29523,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29276
29523
  };
29277
29524
  var onSortChange = function onSortChange(e) {
29278
29525
  clearEditingMetaData();
29526
+ clearFrozenEditingMetaData();
29279
29527
  var event = e.originalEvent,
29280
29528
  column = e.column,
29281
29529
  sortableDisabledFields = e.sortableDisabledFields;
@@ -29453,6 +29701,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29453
29701
  };
29454
29702
  var onFilterChange = function onFilterChange(filters) {
29455
29703
  clearEditingMetaData();
29704
+ clearFrozenEditingMetaData();
29456
29705
  setD_filtersState(filters);
29457
29706
  };
29458
29707
  var onFilterApply = function onFilterApply(filtersToApply) {
@@ -29642,6 +29891,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
29642
29891
  setD_filtersState(cloneFilters(props.filters));
29643
29892
  setGroupRowsSortMetaState(null);
29644
29893
  setEditingMetaState({});
29894
+ setFrozenEditingMetaState({});
29645
29895
  if (!props.onPage) {
29646
29896
  setFirstState(props.first);
29647
29897
  setRowsState(props.rows);
@@ -30006,7 +30256,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
30006
30256
  dataKey: props.dataKey,
30007
30257
  dragSelection: props.dragSelection,
30008
30258
  editMode: props.editMode,
30009
- editingMeta: editingMetaState,
30259
+ editingMeta: frozenEditingMetaState,
30010
30260
  editingRows: props.editingRows,
30011
30261
  emptyMessage: props.emptyMessage,
30012
30262
  expandableRowGroups: props.expandableRowGroups,
@@ -30025,7 +30275,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
30025
30275
  onCellUnselect: props.onCellUnselect,
30026
30276
  onContextMenu: props.onContextMenu,
30027
30277
  onContextMenuSelectionChange: props.onContextMenuSelectionChange,
30028
- onEditingMetaChange: onEditingMetaChange,
30278
+ onEditingMetaChange: onFrozenEditingMetaChange,
30029
30279
  onRowClick: props.onRowClick,
30030
30280
  onRowCollapse: props.onRowCollapse,
30031
30281
  onRowDoubleClick: props.onRowDoubleClick,
@@ -30472,9 +30722,9 @@ var DataViewLayoutOptionsBase = ComponentBase.extend({
30472
30722
  }
30473
30723
  });
30474
30724
 
30475
- 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; } } }; }
30476
- 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); }
30477
- 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; }
30725
+ 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; } } }; }
30726
+ 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; } }
30727
+ 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; }
30478
30728
  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; }
30479
30729
  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; }
30480
30730
  var DataViewLayoutOptions = /*#__PURE__*/React.memo(function (inProps) {
@@ -31777,8 +32027,8 @@ var Fieldset = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
31777
32027
  });
31778
32028
  Fieldset.displayName = 'Fieldset';
31779
32029
 
31780
- function _readOnlyError(name) {
31781
- throw new TypeError("\"" + name + "\" is read-only");
32030
+ function _readOnlyError(r) {
32031
+ throw new TypeError('"' + r + '" is read-only');
31782
32032
  }
31783
32033
 
31784
32034
  var UploadIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
@@ -32404,9 +32654,9 @@ var FileUploadBase = ComponentBase.extend({
32404
32654
 
32405
32655
  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; }
32406
32656
  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; }
32407
- 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; } } }; }
32408
- 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); }
32409
- 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; }
32657
+ 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; } } }; }
32658
+ 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; } }
32659
+ 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; }
32410
32660
  var FileUpload = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
32411
32661
  var mergeProps = useMergeProps();
32412
32662
  var context = React.useContext(PrimeReactContext);
@@ -35606,7 +35856,7 @@ var InputMask = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
35606
35856
  var updateValue = function updateValue(allow) {
35607
35857
  var pos;
35608
35858
  if (elementRef.current) {
35609
- if (props.value == null) {
35859
+ if (ObjectUtils.isEmpty(props.value)) {
35610
35860
  elementRef.current.value = '';
35611
35861
  } else {
35612
35862
  elementRef.current.value = props.value;
@@ -36100,7 +36350,7 @@ var KnobBase = ComponentBase.extend({
36100
36350
  });
36101
36351
  }
36102
36352
  },
36103
- 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 "
36353
+ 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 "
36104
36354
  }
36105
36355
  });
36106
36356
 
@@ -36628,9 +36878,9 @@ ListBoxItem.displayName = 'ListBoxItem';
36628
36878
 
36629
36879
  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; }
36630
36880
  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; }
36631
- 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; } } }; }
36632
- 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); }
36633
- 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; }
36881
+ 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; } } }; }
36882
+ 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; } }
36883
+ 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; }
36634
36884
  var ListBox = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
36635
36885
  var mergeProps = useMergeProps();
36636
36886
  var context = React.useContext(PrimeReactContext);
@@ -38717,13 +38967,6 @@ var MentionBase = ComponentBase.extend({
38717
38967
  inputRef: null,
38718
38968
  inputStyle: null,
38719
38969
  itemTemplate: null,
38720
- panelClassName: null,
38721
- panelStyle: null,
38722
- scrollHeight: '200px',
38723
- style: null,
38724
- suggestions: null,
38725
- transitionOptions: null,
38726
- trigger: '@',
38727
38970
  onBlur: null,
38728
38971
  onChange: null,
38729
38972
  onFocus: null,
@@ -38732,6 +38975,14 @@ var MentionBase = ComponentBase.extend({
38732
38975
  onSearch: null,
38733
38976
  onSelect: null,
38734
38977
  onShow: null,
38978
+ panelClassName: null,
38979
+ panelStyle: null,
38980
+ scrollHeight: '200px',
38981
+ style: null,
38982
+ suggestions: null,
38983
+ transitionOptions: null,
38984
+ trigger: '@',
38985
+ variant: null,
38735
38986
  children: undefined
38736
38987
  },
38737
38988
  css: {
@@ -38800,8 +39051,15 @@ var Mention = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
38800
39051
  target: elementRef,
38801
39052
  overlay: overlayRef,
38802
39053
  listener: function listener(event, _ref) {
38803
- var valid = _ref.valid;
38804
- valid && hide();
39054
+ var valid = _ref.valid,
39055
+ type = _ref.type;
39056
+ if (valid) {
39057
+ if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
39058
+ hide();
39059
+ } else if (!DomHandler.isDocument(event.target)) {
39060
+ alignOverlay();
39061
+ }
39062
+ }
38805
39063
  },
38806
39064
  when: overlayVisibleState
38807
39065
  }),
@@ -39204,6 +39462,7 @@ var Mention = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
39204
39462
  style: props.inputStyle
39205
39463
  }, inputProps), {}, {
39206
39464
  unstyled: props.unstyled,
39465
+ variant: props.variant,
39207
39466
  autoResize: props.autoResize,
39208
39467
  onFocus: onFocus,
39209
39468
  onBlur: onBlur,
@@ -39371,10 +39630,15 @@ var Menu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
39371
39630
  target: targetRef,
39372
39631
  overlay: menuRef,
39373
39632
  listener: function listener(event, _ref) {
39374
- var valid = _ref.valid;
39633
+ var valid = _ref.valid,
39634
+ type = _ref.type;
39375
39635
  if (valid) {
39376
- hide(event);
39377
- setFocusedOptionIndex(-1);
39636
+ if (context.hideOverlaysOnDocumentScrolling || type === 'outside') {
39637
+ hide(event);
39638
+ setFocusedOptionIndex(-1);
39639
+ } else if (!DomHandler.isDocument(event.target)) {
39640
+ DomHandler.absolutePosition(menuRef.current, targetRef.current, props.popupAlignment);
39641
+ }
39378
39642
  }
39379
39643
  },
39380
39644
  when: visibleState
@@ -39430,6 +39694,9 @@ var Menu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
39430
39694
  props.onFocus && props.onFocus(event);
39431
39695
  };
39432
39696
  var onListBlur = function onListBlur(event) {
39697
+ var currentTarget = event.currentTarget,
39698
+ relatedTarget = event.relatedTarget;
39699
+ if (relatedTarget && currentTarget.contains(relatedTarget)) return;
39433
39700
  setFocused(false);
39434
39701
  setFocusedOptionIndex(-1);
39435
39702
  props.onBlur && props.onBlur(event);
@@ -39673,6 +39940,9 @@ var Menu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
39673
39940
  onClick: function onClick(event) {
39674
39941
  return onItemClick(event, item, key);
39675
39942
  },
39943
+ onMouseMove: function onMouseMove(event) {
39944
+ return onItemMouseMove(event, key);
39945
+ },
39676
39946
  className: linkClassName,
39677
39947
  tabIndex: '-1',
39678
39948
  labelClassName: 'p-menuitem-text',
@@ -40029,7 +40299,6 @@ var MenubarSub = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
40029
40299
  'aria-disabled': disabled,
40030
40300
  'aria-expanded': group ? active : undefined,
40031
40301
  'aria-haspopup': group && !item.url ? 'menu' : undefined,
40032
- 'aria-level': props.level + 1,
40033
40302
  'aria-setsize': getAriaSetSize(),
40034
40303
  'aria-posinset': getAriaPosInset(index),
40035
40304
  'data-p-highlight': active,
@@ -40147,12 +40416,13 @@ var Menubar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
40147
40416
  var _useEventListener = useEventListener({
40148
40417
  type: 'click',
40149
40418
  listener: function listener(event) {
40150
- if (isOutsideClicked(event)) {
40151
- var isOutsideContainer = elementRef.current && !elementRef.current.contains(event.target);
40152
- if (isOutsideContainer) {
40153
- hide();
40154
- }
40419
+ var isOutsideButton = menuButtonRef.current && !menuButtonRef.current.contains(event.target);
40420
+ if (isOutsideButton) {
40421
+ hide();
40155
40422
  }
40423
+ },
40424
+ options: {
40425
+ capture: true
40156
40426
  }
40157
40427
  }),
40158
40428
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
@@ -40207,9 +40477,6 @@ var Menubar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (in
40207
40477
  var menuButtonKeydown = function menuButtonKeydown(event) {
40208
40478
  (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && toggle(event);
40209
40479
  };
40210
- var isOutsideClicked = function isOutsideClicked(event) {
40211
- return rootMenuRef.current !== event.target && !rootMenuRef.current.contains(event.target) && menuButtonRef.current !== event.target && !menuButtonRef.current.contains(event.target);
40212
- };
40213
40480
  var getItemProp = function getItemProp(item, name) {
40214
40481
  return item ? ObjectUtils.getItemValue(item[name]) : undefined;
40215
40482
  };
@@ -41059,12 +41326,13 @@ var MeterGroup = function MeterGroup(inProps) {
41059
41326
 
41060
41327
  var classes$w = {
41061
41328
  root: function root(_ref) {
41329
+ var _props$value;
41062
41330
  var props = _ref.props,
41063
41331
  context = _ref.context,
41064
41332
  focusedState = _ref.focusedState,
41065
41333
  overlayVisibleState = _ref.overlayVisibleState;
41066
41334
  return classNames('p-multiselect p-component p-inputwrapper', {
41067
- 'p-multiselect-chip': props.display === 'chip' && (props.maxSelectedLabels == null ? true : props.value.length <= props.maxSelectedLabels),
41335
+ '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),
41068
41336
  'p-disabled': props.disabled,
41069
41337
  'p-invalid': props.invalid,
41070
41338
  'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled',
@@ -41075,12 +41343,13 @@ var classes$w = {
41075
41343
  });
41076
41344
  },
41077
41345
  label: function label(_ref2) {
41346
+ var _props$value2;
41078
41347
  var props = _ref2.props,
41079
41348
  empty = _ref2.empty;
41080
41349
  return classNames('p-multiselect-label', {
41081
41350
  'p-placeholder': empty && props.placeholder,
41082
41351
  'p-multiselect-label-empty': empty && !props.placeholder && !props.selectedItemTemplate,
41083
- 'p-multiselect-items-label': !empty && props.display !== 'chip' && props.value.length > props.maxSelectedLabels
41352
+ 'p-multiselect-items-label': !empty && props.display !== 'chip' && ((_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.length) > props.maxSelectedLabels
41084
41353
  });
41085
41354
  },
41086
41355
  panel: function panel(_ref3) {
@@ -41213,7 +41482,7 @@ var MultiSelectBase = ComponentBase.extend({
41213
41482
  selectAll: false,
41214
41483
  selectAllLabel: null,
41215
41484
  selectedItemTemplate: null,
41216
- selectedItemsLabel: '{0} items selected',
41485
+ selectedItemsLabel: undefined,
41217
41486
  selectionLimit: null,
41218
41487
  showClear: false,
41219
41488
  showSelectAll: true,
@@ -41744,9 +42013,9 @@ MultiSelectPanel.displayName = 'MultiSelectPanel';
41744
42013
 
41745
42014
  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; }
41746
42015
  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; }
41747
- 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; } } }; }
41748
- 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); }
41749
- 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; }
42016
+ 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; } } }; }
42017
+ 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; } }
42018
+ 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; }
41750
42019
  var MultiSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
41751
42020
  var mergeProps = useMergeProps();
41752
42021
  var context = React.useContext(PrimeReactContext);
@@ -41812,9 +42081,13 @@ var MultiSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
41812
42081
  valid = _ref.valid;
41813
42082
  if (valid) {
41814
42083
  if (type === 'outside') {
41815
- !isClearClicked(event) && !isSelectAllClicked(event) && hide();
41816
- } else {
42084
+ if (!isClearClicked(event) && !isSelectAllClicked(event)) {
42085
+ hide();
42086
+ }
42087
+ } else if (context.hideOverlaysOnDocumentScrolling) {
41817
42088
  hide();
42089
+ } else if (!DomHandler.isDocument(event.target)) {
42090
+ alignOverlay();
41818
42091
  }
41819
42092
  }
41820
42093
  },
@@ -42488,15 +42761,17 @@ var MultiSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
42488
42761
  var getSelectedItemsLabel = function getSelectedItemsLabel() {
42489
42762
  var pattern = /{(.*?)}/;
42490
42763
  var selectedItemsLabel = props.selectedItemsLabel || localeOption('selectionMessage');
42764
+ var valueLength = props.value ? props.value.length : 0;
42491
42765
  if (pattern.test(selectedItemsLabel)) {
42492
- return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], props.value.length + '');
42766
+ return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], valueLength + '');
42493
42767
  }
42494
42768
  return selectedItemsLabel;
42495
42769
  };
42496
42770
  var getLabel = function getLabel() {
42497
42771
  var label;
42498
42772
  if (!empty && !props.fixedPlaceholder) {
42499
- if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && props.value.length > props.maxSelectedLabels) {
42773
+ var _props$value;
42774
+ if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) > props.maxSelectedLabels) {
42500
42775
  return getSelectedItemsLabel();
42501
42776
  }
42502
42777
  if (ObjectUtils.isArray(props.value)) {
@@ -42509,7 +42784,8 @@ var MultiSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
42509
42784
  return label;
42510
42785
  };
42511
42786
  var getLabelContent = function getLabelContent() {
42512
- if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && props.value.length > props.maxSelectedLabels) {
42787
+ var valueLength = props.value ? props.value.length : 0;
42788
+ if (ObjectUtils.isNotEmpty(props.maxSelectedLabels) && valueLength > props.maxSelectedLabels) {
42513
42789
  return getSelectedItemsLabel();
42514
42790
  }
42515
42791
  if (props.selectedItemTemplate) {
@@ -42524,7 +42800,7 @@ var MultiSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
42524
42800
  return ObjectUtils.getJSXElement(props.selectedItemTemplate);
42525
42801
  }
42526
42802
  if (props.display === 'chip' && !empty) {
42527
- var value = props.value.slice(0, props.maxSelectedLabels || props.value.length);
42803
+ var value = props.value.slice(0, props.maxSelectedLabels || valueLength);
42528
42804
  return value.map(function (val, i) {
42529
42805
  var context = {
42530
42806
  context: {
@@ -42617,8 +42893,6 @@ var MultiSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
42617
42893
  }
42618
42894
  };
42619
42895
  var onRemoveTokenIconKeyDown = function onRemoveTokenIconKeyDown(event, val) {
42620
- event.preventDefault();
42621
- event.stopPropagation();
42622
42896
  switch (event.code) {
42623
42897
  case 'Space':
42624
42898
  case 'NumpadEnter':
@@ -42627,6 +42901,8 @@ var MultiSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
42627
42901
  break;
42628
42902
  }
42629
42903
  removeChip(event, val);
42904
+ event.preventDefault();
42905
+ event.stopPropagation();
42630
42906
  break;
42631
42907
  }
42632
42908
  };
@@ -42706,15 +42982,6 @@ var MultiSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
42706
42982
  }, ptm('label'));
42707
42983
  return /*#__PURE__*/React.createElement("div", labelContainerProps, /*#__PURE__*/React.createElement("div", labelProps, content || props.placeholder || props.emptyMessage || 'empty'));
42708
42984
  };
42709
- var getInputValue = function getInputValue() {
42710
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
42711
- if (Array.isArray(value)) {
42712
- return value.map(function (val) {
42713
- return getLabelByValue(val);
42714
- }).join(', ');
42715
- }
42716
- return value ? value : '';
42717
- };
42718
42985
  var visibleOptions = getVisibleOptions();
42719
42986
  var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
42720
42987
  var otherProps = MultiSelectBase.getOtherProps(props);
@@ -42764,7 +43031,7 @@ var MultiSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
42764
43031
  'aria-expanded': overlayVisibleState,
42765
43032
  disabled: props.disabled,
42766
43033
  tabIndex: !props.disabled ? props.tabIndex : -1,
42767
- value: getInputValue(props.value)
43034
+ value: getLabel()
42768
43035
  }, ariaProps), ptm('input'));
42769
43036
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, /*#__PURE__*/React.createElement("div", hiddenInputWrapperProps, /*#__PURE__*/React.createElement("input", _extends({}, inputProps, {
42770
43037
  readOnly: true
@@ -43566,6 +43833,7 @@ var OrderList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
43566
43833
  var styleElementRef = React.useRef(null);
43567
43834
  var reorderDirection = React.useRef(null);
43568
43835
  var listElementRef = React.useRef(null);
43836
+ var reorderedListElementRef = React.useRef(null);
43569
43837
  var metaData = {
43570
43838
  props: props,
43571
43839
  state: {
@@ -43791,9 +44059,9 @@ var OrderList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
43791
44059
  }
43792
44060
  var _focusedOptionIndex = items[order] ? items[order].getAttribute('id') : -1;
43793
44061
  setFocusedOptionIndex(_focusedOptionIndex);
43794
- scrollInView(_focusedOptionIndex);
44062
+ scrollInViewWithFocus(_focusedOptionIndex);
43795
44063
  };
43796
- var scrollInView = function scrollInView(id) {
44064
+ var scrollInViewWithFocus = function scrollInViewWithFocus(id) {
43797
44065
  var listElement = getListElement();
43798
44066
  var element = DomHandler.findSingle(listElement, "[data-pc-section=\"item\"][id=\"".concat(id, "\"]"));
43799
44067
  if (element) {
@@ -43803,6 +44071,33 @@ var OrderList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
43803
44071
  });
43804
44072
  }
43805
44073
  };
44074
+ var scrollInView = function scrollInView(listContainer) {
44075
+ var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
44076
+ var selectedItems = listContainer.getElementsByClassName('p-highlight');
44077
+ if (ObjectUtils.isNotEmpty(selectedItems)) {
44078
+ DomHandler.scrollInView(listContainer, direction === -1 ? selectedItems[0] : selectedItems[selectedItems.length - 1]);
44079
+ }
44080
+ };
44081
+ var handleScrollPosition = function handleScrollPosition(listElement, direction) {
44082
+ if (listElement) {
44083
+ switch (direction) {
44084
+ case 'up':
44085
+ scrollInView(listElement, -1);
44086
+ break;
44087
+ case 'top':
44088
+ listElement.scrollTop = 0;
44089
+ break;
44090
+ case 'down':
44091
+ scrollInView(listElement, 1);
44092
+ break;
44093
+ case 'bottom':
44094
+ setTimeout(function () {
44095
+ return listElement.scrollTop = listElement.scrollHeight;
44096
+ }, 100);
44097
+ break;
44098
+ }
44099
+ }
44100
+ };
43806
44101
  var onFilter = function onFilter(event) {
43807
44102
  var _filterValue = event.target.value;
43808
44103
  setFilterValueState(_filterValue);
@@ -43837,6 +44132,7 @@ var OrderList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
43837
44132
  });
43838
44133
  }
43839
44134
  reorderDirection.current = event.direction;
44135
+ reorderedListElementRef.current = getListElement();
43840
44136
  };
43841
44137
  var createStyle = function createStyle() {
43842
44138
  if (!styleElementRef.current) {
@@ -43873,7 +44169,9 @@ var OrderList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
43873
44169
  setFocusedOptionId(_focusedOptionId);
43874
44170
  }, [focusedOptionIndex]);
43875
44171
  useUpdateEffect(function () {
43876
- if (reorderDirection.current) {
44172
+ if (reorderedListElementRef.current) {
44173
+ handleScrollPosition(reorderedListElementRef.current, reorderDirection.current);
44174
+ reorderedListElementRef.current = null;
43877
44175
  reorderDirection.current = null;
43878
44176
  }
43879
44177
  });
@@ -44364,18 +44662,17 @@ var OverlayPanel = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
44364
44662
  var type = _ref.type,
44365
44663
  valid = _ref.valid;
44366
44664
  if (valid) {
44367
- switch (type) {
44368
- case 'outside':
44369
- props.dismissable && !isPanelClicked.current && hide();
44370
- break;
44371
- case 'resize':
44372
- case 'scroll':
44373
- case 'orientationchange':
44374
- align();
44375
- break;
44665
+ if (type === 'outside') {
44666
+ if (props.dismissable && !isPanelClicked.current) {
44667
+ hide();
44668
+ }
44669
+ isPanelClicked.current = false;
44670
+ } else if (context.hideOverlaysOnDocumentScrolling) {
44671
+ hide();
44672
+ } else if (!DomHandler.isDocument(event.target)) {
44673
+ align();
44376
44674
  }
44377
44675
  }
44378
- isPanelClicked.current = false;
44379
44676
  },
44380
44677
  when: visibleState
44381
44678
  }),
@@ -46132,8 +46429,15 @@ var Password = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
46132
46429
  target: elementRef,
46133
46430
  overlay: overlayRef,
46134
46431
  listener: function listener(event, _ref) {
46135
- var valid = _ref.valid;
46136
- valid && hide();
46432
+ var valid = _ref.valid,
46433
+ type = _ref.type;
46434
+ if (valid) {
46435
+ if (type === 'outside' || context.hideOverlaysOnDocumentScrolling) {
46436
+ hide();
46437
+ } else if (!DomHandler.isDocument(event.target)) {
46438
+ alignOverlay();
46439
+ }
46440
+ }
46137
46441
  },
46138
46442
  when: overlayVisibleState
46139
46443
  }),
@@ -46863,7 +47167,7 @@ var PickListSubList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(func
46863
47167
  var createItems = function createItems() {
46864
47168
  if (props.list) {
46865
47169
  return props.list.map(function (item, index) {
46866
- var key = props.parentId + '_' + index;
47170
+ var key = props.parentId + '_' + props.type + '_' + index;
46867
47171
  var selected = isSelected(item);
46868
47172
  return /*#__PURE__*/React.createElement(PickListItem, {
46869
47173
  hostName: props.hostName,
@@ -49698,8 +50002,15 @@ var SlideMenu = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
49698
50002
  target: targetRef,
49699
50003
  overlay: menuRef,
49700
50004
  listener: function listener(event, _ref) {
49701
- var valid = _ref.valid;
49702
- valid && hide(event);
50005
+ var valid = _ref.valid,
50006
+ type = _ref.type;
50007
+ if (valid) {
50008
+ if (type === 'outside' || context.hideOverlaysOnDocumentScrolling) {
50009
+ hide(event);
50010
+ } else if (!DomHandler.isDocument(event.target)) {
50011
+ DomHandler.absolutePosition(menuRef.current, targetRef.current);
50012
+ }
50013
+ }
49703
50014
  },
49704
50015
  when: visibleState
49705
50016
  }),
@@ -52786,7 +53097,8 @@ var StepperBase = ComponentBase.extend({
52786
53097
  linear: false,
52787
53098
  onChangeStep: null,
52788
53099
  start: null,
52789
- end: null
53100
+ end: null,
53101
+ children: undefined
52790
53102
  },
52791
53103
  css: {
52792
53104
  classes: classes$b,
@@ -55859,9 +56171,9 @@ var TreeBase = ComponentBase.extend({
55859
56171
  }
55860
56172
  });
55861
56173
 
55862
- 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; } } }; }
55863
- 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); }
55864
- 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; }
56174
+ 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; } } }; }
56175
+ 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; } }
56176
+ 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; }
55865
56177
  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; }
55866
56178
  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; }
55867
56179
  var UITreeNode = /*#__PURE__*/React.memo(function (props) {
@@ -56670,9 +56982,9 @@ UITreeNode.displayName = 'UITreeNode';
56670
56982
 
56671
56983
  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; }
56672
56984
  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; }
56673
- 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; } } }; }
56674
- 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); }
56675
- 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; }
56985
+ 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; } } }; }
56986
+ 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; } }
56987
+ 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; }
56676
56988
  var Tree = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
56677
56989
  var mergeProps = useMergeProps();
56678
56990
  var context = React.useContext(PrimeReactContext);
@@ -56802,7 +57114,7 @@ var Tree = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
56802
57114
  var onDrop = function onDrop(event) {
56803
57115
  var _dragState$current;
56804
57116
  if (validateDropNode((_dragState$current = dragState.current) === null || _dragState$current === void 0 ? void 0 : _dragState$current.path, event.path)) {
56805
- var value = _cloneValue(props.value);
57117
+ var value = _cloneValue(getRootNode());
56806
57118
  var dragPaths = dragState.current.path.split('-');
56807
57119
  dragPaths.pop();
56808
57120
  var dragNodeParent = _findNode(value, dragPaths);
@@ -56831,7 +57143,7 @@ var Tree = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
56831
57143
  };
56832
57144
  var onDropPoint = function onDropPoint(event) {
56833
57145
  if (validateDropPoint(event)) {
56834
- var value = _cloneValue(props.value);
57146
+ var value = _cloneValue(getRootNode());
56835
57147
  var dragPaths = dragState.current.path.split('-');
56836
57148
  dragPaths.pop();
56837
57149
  var dropPaths = event.path.split('-');
@@ -57426,9 +57738,9 @@ TreeSelectPanel.displayName = 'TreeSelectPanel';
57426
57738
 
57427
57739
  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; }
57428
57740
  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; }
57429
- 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; } } }; }
57430
- 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); }
57431
- 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; }
57741
+ 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; } } }; }
57742
+ 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; } }
57743
+ 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; }
57432
57744
  var TreeSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
57433
57745
  var mergeProps = useMergeProps();
57434
57746
  var context = React.useContext(PrimeReactContext);
@@ -57446,9 +57758,9 @@ var TreeSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
57446
57758
  expandedKeysState = _React$useState6[0],
57447
57759
  setExpandedKeysState = _React$useState6[1];
57448
57760
  var _useDebounce = useDebounce('', props.filterDelay || 0),
57449
- _useDebounce2 = _slicedToArray(_useDebounce, 3);
57450
- _useDebounce2[0];
57451
- var filterValueState = _useDebounce2[1],
57761
+ _useDebounce2 = _slicedToArray(_useDebounce, 3),
57762
+ filterValue = _useDebounce2[0],
57763
+ filterValueState = _useDebounce2[1],
57452
57764
  setFilterValueState = _useDebounce2[2];
57453
57765
  var elementRef = React.useRef(null);
57454
57766
  var overlayRef = React.useRef(null);
@@ -57495,8 +57807,15 @@ var TreeSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
57495
57807
  target: elementRef,
57496
57808
  overlay: overlayRef,
57497
57809
  listener: function listener(event, _ref) {
57498
- var valid = _ref.valid;
57499
- valid && hide();
57810
+ var valid = _ref.valid,
57811
+ type = _ref.type;
57812
+ if (valid) {
57813
+ if (type === 'outside' || context.hideOverlaysOnDocumentScrolling) {
57814
+ hide();
57815
+ } else if (!DomHandler.isDocument(event.target)) {
57816
+ alignOverlay();
57817
+ }
57818
+ }
57500
57819
  },
57501
57820
  when: overlayVisibleState
57502
57821
  }),
@@ -58034,15 +58353,15 @@ var TreeSelect = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
58034
58353
  };
58035
58354
  var createFilterElement = function createFilterElement() {
58036
58355
  if (props.filter) {
58037
- var _filterValue = props.onFilterValueChange ? props.filterValue : filteredValue;
58038
- _filterValue = ObjectUtils.isNotEmpty(_filterValue) ? _filterValue : '';
58356
+ var newValue = props.onFilterValueChange ? props.filterValue : filterValue;
58357
+ newValue = ObjectUtils.isNotEmpty(newValue) ? newValue : '';
58039
58358
  var filterContainerProps = mergeProps({
58040
58359
  className: cx('filterContainer')
58041
58360
  }, ptm('filterContainer'));
58042
58361
  var filterProps = mergeProps({
58043
58362
  ref: filterInputRef,
58044
58363
  type: 'text',
58045
- value: _filterValue,
58364
+ value: newValue,
58046
58365
  autoComplete: 'off',
58047
58366
  className: cx('filter'),
58048
58367
  placeholder: props.filterPlaceholder,
@@ -58636,9 +58955,9 @@ var TreeTableBodyCell = function TreeTableBodyCell(props) {
58636
58955
  };
58637
58956
  TreeTableBodyCell.displayName = 'TreeTableBodyCell';
58638
58957
 
58639
- 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; } } }; }
58640
- 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); }
58641
- 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; }
58958
+ 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; } } }; }
58959
+ 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; } }
58960
+ 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; }
58642
58961
  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; }
58643
58962
  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; }
58644
58963
  var TreeTableRow = /*#__PURE__*/React.memo(function (props) {
@@ -59093,7 +59412,7 @@ var TreeTableRow = /*#__PURE__*/React.memo(function (props) {
59093
59412
  var partialChecked = isPartialChecked();
59094
59413
  var checkboxIconProps = mergeProps({
59095
59414
  className: cx('checkIcon')
59096
- }, getColumnPTOptions('rowCheckbox.icon'));
59415
+ }, getColumnPTOptions(column, 'rowCheckbox.icon'));
59097
59416
  var icon = checked ? props.checkboxIcon || /*#__PURE__*/React.createElement(CheckIcon, checkboxIconProps) : partialChecked ? props.checkboxIcon || /*#__PURE__*/React.createElement(MinusIcon, null) : null;
59098
59417
  var checkIcon = IconUtils.getJSXIcon(icon, {}, {
59099
59418
  props: props,
@@ -59228,9 +59547,9 @@ var TreeTableRow = /*#__PURE__*/React.memo(function (props) {
59228
59547
  });
59229
59548
  TreeTableRow.displayName = 'TreeTableRow';
59230
59549
 
59231
- 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; } } }; }
59232
- 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); }
59233
- 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; }
59550
+ 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; } } }; }
59551
+ 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; } }
59552
+ 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; }
59234
59553
  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; }
59235
59554
  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; }
59236
59555
  var TreeTableBody = /*#__PURE__*/React.memo(function (props) {
@@ -59546,9 +59865,9 @@ var TreeTableFooter = /*#__PURE__*/React.memo(function (props) {
59546
59865
  });
59547
59866
  TreeTableFooter.displayName = 'TreeTableFooter';
59548
59867
 
59549
- 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; } } }; }
59550
- 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); }
59551
- 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; }
59868
+ 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; } } }; }
59869
+ 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; } }
59870
+ 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; }
59552
59871
  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; }
59553
59872
  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; }
59554
59873
  var TreeTableHeader = /*#__PURE__*/React.memo(function (props) {
@@ -60104,9 +60423,9 @@ TreeTableScrollableView.displayName = 'TreeTableScrollableView';
60104
60423
 
60105
60424
  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; }
60106
60425
  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; }
60107
- 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; } } }; }
60108
- 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); }
60109
- 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; }
60426
+ 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; } } }; }
60427
+ 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; } }
60428
+ 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; }
60110
60429
  var TreeTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
60111
60430
  var mergeProps = useMergeProps();
60112
60431
  var context = React.useContext(PrimeReactContext);
@@ -61460,7 +61779,7 @@ var TriStateCheckboxBase = ComponentBase.extend({
61460
61779
  tooltip: null,
61461
61780
  tooltipOptions: null,
61462
61781
  uncheckIcon: null,
61463
- value: '',
61782
+ value: null,
61464
61783
  children: undefined
61465
61784
  },
61466
61785
  css: {
@@ -61474,7 +61793,7 @@ var TriStateCheckbox = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(fun
61474
61793
  var mergeProps = useMergeProps();
61475
61794
  var context = React.useContext(PrimeReactContext);
61476
61795
  var props = TriStateCheckboxBase.getProps(inProps, context);
61477
- var _useState = useState(''),
61796
+ var _useState = useState(null),
61478
61797
  _useState2 = _slicedToArray(_useState, 2),
61479
61798
  checkBoxValue = _useState2[0],
61480
61799
  setCheckBoxValue = _useState2[1];
@@ -61489,10 +61808,10 @@ var TriStateCheckbox = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(fun
61489
61808
  name: 'tristatecheckbox'
61490
61809
  });
61491
61810
  useEffect(function () {
61492
- if ([true, false, ''].includes(props.value)) {
61811
+ if ([true, false, null].includes(props.value)) {
61493
61812
  setCheckBoxValue(props.value);
61494
61813
  } else {
61495
- setCheckBoxValue('');
61814
+ setCheckBoxValue(null);
61496
61815
  }
61497
61816
  }, [props.value]);
61498
61817
  var onChange = function onChange(event) {
@@ -61500,12 +61819,12 @@ var TriStateCheckbox = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(fun
61500
61819
  return;
61501
61820
  }
61502
61821
  var newValue;
61503
- if (checkBoxValue === '') {
61822
+ if (checkBoxValue === null) {
61504
61823
  newValue = true;
61505
61824
  } else if (checkBoxValue === true) {
61506
61825
  newValue = false;
61507
61826
  } else if (checkBoxValue === false) {
61508
- newValue = '';
61827
+ newValue = null;
61509
61828
  }
61510
61829
  if (props.onChange) {
61511
61830
  props.onChange({