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,6 +1,6 @@
1
1
  'use client';
2
2
  import * as React from 'react';
3
- import React__default from 'react';
3
+ import React__default, { Fragment } from 'react';
4
4
  import PrimeReact$1, { FilterMatchMode as FilterMatchMode$1, PrimeReactContext, ariaLabel as ariaLabel$1, localeOption, FilterOperator, FilterService } from 'primereact/api';
5
5
  import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
6
6
  import { ObjectUtils, classNames, DomHandler, IconUtils, UniqueComponentId, ZIndexUtils } from 'primereact/utils';
@@ -33,18 +33,13 @@ import { SortAmountDownIcon } from 'primereact/icons/sortamountdown';
33
33
  import { SortAmountUpAltIcon } from 'primereact/icons/sortamountupalt';
34
34
 
35
35
  function _extends() {
36
- _extends = Object.assign ? Object.assign.bind() : function (target) {
37
- for (var i = 1; i < arguments.length; i++) {
38
- var source = arguments[i];
39
- for (var key in source) {
40
- if (Object.prototype.hasOwnProperty.call(source, key)) {
41
- target[key] = source[key];
42
- }
43
- }
36
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
37
+ for (var e = 1; e < arguments.length; e++) {
38
+ var t = arguments[e];
39
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
44
40
  }
45
- return target;
46
- };
47
- return _extends.apply(this, arguments);
41
+ return n;
42
+ }, _extends.apply(null, arguments);
48
43
  }
49
44
 
50
45
  function _typeof(o) {
@@ -57,70 +52,63 @@ function _typeof(o) {
57
52
  }, _typeof(o);
58
53
  }
59
54
 
60
- function _toPrimitive(input, hint) {
61
- if (_typeof(input) !== "object" || input === null) return input;
62
- var prim = input[Symbol.toPrimitive];
63
- if (prim !== undefined) {
64
- var res = prim.call(input, hint || "default");
65
- if (_typeof(res) !== "object") return res;
55
+ function toPrimitive(t, r) {
56
+ if ("object" != _typeof(t) || !t) return t;
57
+ var e = t[Symbol.toPrimitive];
58
+ if (void 0 !== e) {
59
+ var i = e.call(t, r || "default");
60
+ if ("object" != _typeof(i)) return i;
66
61
  throw new TypeError("@@toPrimitive must return a primitive value.");
67
62
  }
68
- return (hint === "string" ? String : Number)(input);
63
+ return ("string" === r ? String : Number)(t);
69
64
  }
70
65
 
71
- function _toPropertyKey(arg) {
72
- var key = _toPrimitive(arg, "string");
73
- return _typeof(key) === "symbol" ? key : String(key);
66
+ function toPropertyKey(t) {
67
+ var i = toPrimitive(t, "string");
68
+ return "symbol" == _typeof(i) ? i : i + "";
74
69
  }
75
70
 
76
- function _defineProperty(obj, key, value) {
77
- key = _toPropertyKey(key);
78
- if (key in obj) {
79
- Object.defineProperty(obj, key, {
80
- value: value,
81
- enumerable: true,
82
- configurable: true,
83
- writable: true
84
- });
85
- } else {
86
- obj[key] = value;
87
- }
88
- return obj;
71
+ function _defineProperty(e, r, t) {
72
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
73
+ value: t,
74
+ enumerable: !0,
75
+ configurable: !0,
76
+ writable: !0
77
+ }) : e[r] = t, e;
89
78
  }
90
79
 
91
- function _arrayLikeToArray$1(arr, len) {
92
- if (len == null || len > arr.length) len = arr.length;
93
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
94
- return arr2;
80
+ function _arrayLikeToArray$1(r, a) {
81
+ (null == a || a > r.length) && (a = r.length);
82
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
83
+ return n;
95
84
  }
96
85
 
97
- function _arrayWithoutHoles(arr) {
98
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
86
+ function _arrayWithoutHoles(r) {
87
+ if (Array.isArray(r)) return _arrayLikeToArray$1(r);
99
88
  }
100
89
 
101
- function _iterableToArray(iter) {
102
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
90
+ function _iterableToArray(r) {
91
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
103
92
  }
104
93
 
105
- function _unsupportedIterableToArray$1(o, minLen) {
106
- if (!o) return;
107
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
108
- var n = Object.prototype.toString.call(o).slice(8, -1);
109
- if (n === "Object" && o.constructor) n = o.constructor.name;
110
- if (n === "Map" || n === "Set") return Array.from(o);
111
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
94
+ function _unsupportedIterableToArray$1(r, a) {
95
+ if (r) {
96
+ if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
97
+ var t = {}.toString.call(r).slice(8, -1);
98
+ 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;
99
+ }
112
100
  }
113
101
 
114
102
  function _nonIterableSpread() {
115
103
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
116
104
  }
117
105
 
118
- function _toConsumableArray(arr) {
119
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
106
+ function _toConsumableArray(r) {
107
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread();
120
108
  }
121
109
 
122
- function _arrayWithHoles(arr) {
123
- if (Array.isArray(arr)) return arr;
110
+ function _arrayWithHoles(r) {
111
+ if (Array.isArray(r)) return r;
124
112
  }
125
113
 
126
114
  function _iterableToArrayLimit(r, l) {
@@ -155,8 +143,8 @@ function _nonIterableRest() {
155
143
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
156
144
  }
157
145
 
158
- function _slicedToArray(arr, i) {
159
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
146
+ function _slicedToArray(r, e) {
147
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
160
148
  }
161
149
 
162
150
  var getStorage = function getStorage(stateStorageProp) {
@@ -622,33 +610,26 @@ var DataTableBase = ComponentBase.extend({
622
610
  }
623
611
  });
624
612
 
625
- function _objectWithoutPropertiesLoose(source, excluded) {
626
- if (source == null) return {};
627
- var target = {};
628
- var sourceKeys = Object.keys(source);
629
- var key, i;
630
- for (i = 0; i < sourceKeys.length; i++) {
631
- key = sourceKeys[i];
632
- if (excluded.indexOf(key) >= 0) continue;
633
- target[key] = source[key];
613
+ function _objectWithoutPropertiesLoose(r, e) {
614
+ if (null == r) return {};
615
+ var t = {};
616
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
617
+ if (-1 !== e.indexOf(n)) continue;
618
+ t[n] = r[n];
634
619
  }
635
- return target;
620
+ return t;
636
621
  }
637
622
 
638
- function _objectWithoutProperties(source, excluded) {
639
- if (source == null) return {};
640
- var target = _objectWithoutPropertiesLoose(source, excluded);
641
- var key, i;
623
+ function _objectWithoutProperties(e, t) {
624
+ if (null == e) return {};
625
+ var o,
626
+ r,
627
+ i = _objectWithoutPropertiesLoose(e, t);
642
628
  if (Object.getOwnPropertySymbols) {
643
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
644
- for (i = 0; i < sourceSymbolKeys.length; i++) {
645
- key = sourceSymbolKeys[i];
646
- if (excluded.indexOf(key) >= 0) continue;
647
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
648
- target[key] = source[key];
649
- }
629
+ var n = Object.getOwnPropertySymbols(e);
630
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
650
631
  }
651
- return target;
632
+ return i;
652
633
  }
653
634
 
654
635
  var classes$1 = {
@@ -732,7 +713,7 @@ var Checkbox = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
732
713
  return props.checked === props.trueValue;
733
714
  };
734
715
  var _onChange = function onChange(event) {
735
- if (props.disabled || props.readonly) {
716
+ if (props.disabled || props.readOnly) {
736
717
  return;
737
718
  }
738
719
  if (props.onChange) {
@@ -991,7 +972,7 @@ var RadioButton = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
991
972
  onChange(event);
992
973
  };
993
974
  var onChange = function onChange(event) {
994
- if (props.disabled || props.readonly) {
975
+ if (props.disabled || props.readOnly) {
995
976
  return;
996
977
  }
997
978
  if (props.onChange) {
@@ -1094,7 +1075,7 @@ var RadioButton = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
1094
1075
  onBlur: onBlur,
1095
1076
  onChange: onChange,
1096
1077
  disabled: props.disabled,
1097
- readOnly: props.readonly,
1078
+ readOnly: props.readOnly,
1098
1079
  required: props.required,
1099
1080
  tabIndex: props.tabIndex,
1100
1081
  className: cx('input')
@@ -1167,7 +1148,7 @@ RowRadioButton.displayName = 'RowRadioButton';
1167
1148
 
1168
1149
  function ownKeys$b(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; }
1169
1150
  function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1170
- var BodyCell = /*#__PURE__*/React.memo(function (props) {
1151
+ var Cell = function Cell(props) {
1171
1152
  var mergeProps = useMergeProps();
1172
1153
  var _React$useState = React.useState(props.editing),
1173
1154
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -1195,13 +1176,9 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1195
1176
  var getColumnProp = function getColumnProp(name) {
1196
1177
  return ColumnBase.getCProp(props.column, name);
1197
1178
  };
1198
- var getColumnProps = function getColumnProps() {
1199
- return ColumnBase.getCProps(props.column);
1200
- };
1201
1179
  var getColumnPTOptions = function getColumnPTOptions(key) {
1202
- var cProps = getColumnProps();
1203
1180
  var columnMetaData = {
1204
- props: cProps,
1181
+ props: props.cProps,
1205
1182
  parent: props.metaData,
1206
1183
  hostName: props.hostName,
1207
1184
  state: {
@@ -1217,10 +1194,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1217
1194
  };
1218
1195
  return mergeProps(ptm("column.".concat(key), {
1219
1196
  column: columnMetaData
1220
- }), ptm("column.".concat(key), columnMetaData), ptmo(cProps, key, columnMetaData));
1197
+ }), ptm("column.".concat(key), columnMetaData), ptmo(props.cProps, key, columnMetaData));
1221
1198
  };
1222
- var field = getColumnProp('field') || "field_".concat(props.index);
1223
- var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
1224
1199
  var isEditable = function isEditable() {
1225
1200
  return ObjectUtils.isNotEmpty(props.editMode) && getColumnProp('editor');
1226
1201
  };
@@ -1245,34 +1220,22 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1245
1220
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
1246
1221
  bindDocumentClickListener = _useEventListener2[0],
1247
1222
  unbindDocumentClickListener = _useEventListener2[1];
1248
- var isSelected = function isSelected() {
1249
- return props.selection ? props.selection instanceof Array ? findIndex(props.selection) > -1 : equals(props.selection) : false;
1250
- };
1251
- var equalsData = function equalsData(data) {
1252
- return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
1253
- };
1254
- var equals = function equals(selectedCell) {
1255
- return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
1256
- };
1257
1223
  var isOutsideClicked = function isOutsideClicked(target) {
1258
1224
  return elementRef.current && !(elementRef.current.isSameNode(target) || elementRef.current.contains(target));
1259
1225
  };
1260
- var getVirtualScrollerOption = function getVirtualScrollerOption(option) {
1261
- return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
1262
- };
1263
1226
  var getStyle = function getStyle() {
1264
1227
  var bodyStyle = getColumnProp('bodyStyle');
1265
1228
  var columnStyle = getColumnProp('style');
1266
- return getColumnProp('frozen') ? Object.assign({}, columnStyle, bodyStyle, styleObjectState) : Object.assign({}, columnStyle, bodyStyle);
1229
+ return props.frozenCol ? Object.assign({}, columnStyle, bodyStyle, styleObjectState) : Object.assign({}, columnStyle, bodyStyle);
1267
1230
  };
1268
1231
  var getCellParams = function getCellParams() {
1269
1232
  return {
1270
- value: resolveFieldData(),
1271
- field: field,
1233
+ value: props.resolveFieldData(),
1234
+ field: props.field,
1272
1235
  rowData: props.rowData,
1273
1236
  rowIndex: props.rowIndex,
1274
1237
  cellIndex: props.index,
1275
- selected: isSelected(),
1238
+ selected: props.isCellSelected,
1276
1239
  column: props.column,
1277
1240
  props: props
1278
1241
  };
@@ -1283,20 +1246,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1283
1246
  originalEvent: event
1284
1247
  }, params);
1285
1248
  };
1286
- var resolveFieldData = function resolveFieldData(data) {
1287
- return ObjectUtils.resolveFieldData(data || props.rowData, field);
1288
- };
1289
- var getEditingRowData = function getEditingRowData() {
1290
- return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
1291
- };
1292
- var getTabIndex = function getTabIndex(cellSelected) {
1293
- return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && props.index === 0 ? props.tabIndex : -1 : null;
1294
- };
1295
- var findIndex = function findIndex(collection) {
1296
- return (collection || []).findIndex(function (data) {
1297
- return equals(data);
1298
- });
1299
- };
1300
1249
  var closeCell = function closeCell(event) {
1301
1250
  var params = getCellCallbackParams(event);
1302
1251
  var onBeforeCellEditHide = getColumnProp('onBeforeCellEditHide');
@@ -1317,7 +1266,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1317
1266
  var switchCellToViewMode = function switchCellToViewMode(event, submit) {
1318
1267
  var callbackParams = getCellCallbackParams(event);
1319
1268
  var newRowData = _objectSpread$b({}, editingRowDataStateRef.current);
1320
- var newValue = resolveFieldData(newRowData);
1269
+ var newValue = props.resolveFieldData(newRowData);
1321
1270
  var params = _objectSpread$b(_objectSpread$b({}, callbackParams), {}, {
1322
1271
  newRowData: newRowData,
1323
1272
  newValue: newValue
@@ -1342,128 +1291,20 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1342
1291
  }
1343
1292
  setEditingRowDataState(newRowData);
1344
1293
  };
1345
- var _findNextSelectableCell = function findNextSelectableCell(cell) {
1346
- var nextCell = cell.nextElementSibling;
1347
- return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : _findNextSelectableCell(nextCell) : null;
1348
- };
1349
- var _findPrevSelectableCell = function findPrevSelectableCell(cell) {
1350
- var prevCell = cell.previousElementSibling;
1351
- return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : _findPrevSelectableCell(prevCell) : null;
1352
- };
1353
- var _findDownSelectableCell = function findDownSelectableCell(cell) {
1354
- var downRow = cell.parentElement.nextElementSibling;
1355
- var downCell = downRow ? downRow.children[props.index] : null;
1356
- return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : _findDownSelectableCell(downCell) : null;
1357
- };
1358
- var _findUpSelectableCell = function findUpSelectableCell(cell) {
1359
- var upRow = cell.parentElement.previousElementSibling;
1360
- var upCell = upRow ? upRow.children[props.index] : null;
1361
- return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : _findUpSelectableCell(upCell) : null;
1362
- };
1363
- var changeTabIndex = function changeTabIndex(currentCell, nextCell) {
1364
- if (currentCell && nextCell) {
1365
- currentCell.tabIndex = -1;
1366
- nextCell.tabIndex = props.tabIndex;
1367
- }
1368
- };
1369
- var focusOnElement = function focusOnElement() {
1370
- clearTimeout(focusTimeout.current);
1371
- focusTimeout.current = setTimeout(function () {
1372
- if (editingState) {
1373
- var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
1374
- focusableEl && focusableEl.focus();
1375
- }
1376
- keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
1377
- }, 1);
1378
- };
1379
- var focusOnInit = function focusOnInit() {
1380
- clearTimeout(initFocusTimeout.current);
1381
- initFocusTimeout.current = setTimeout(function () {
1382
- var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
1383
- focusableEl && focusableEl.focus();
1384
- }, 1);
1385
- };
1386
- var updateStickyPosition = function updateStickyPosition() {
1387
- if (getColumnProp('frozen')) {
1388
- var styleObject = _objectSpread$b({}, styleObjectState);
1389
- var align = getColumnProp('alignFrozen');
1390
- if (align === 'right') {
1391
- var right = 0;
1392
- var next = elementRef.current && elementRef.current.nextElementSibling;
1393
- if (next && next.classList.contains('p-frozen-column')) {
1394
- right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
1395
- }
1396
- styleObject.right = right + 'px';
1397
- } else {
1398
- var left = 0;
1399
- var prev = elementRef.current && elementRef.current.previousElementSibling;
1400
- if (prev && prev.classList.contains('p-frozen-column')) {
1401
- left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
1402
- }
1403
- styleObject.left = left + 'px';
1404
- }
1405
- var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
1406
- !isSameStyle && setStyleObjectState(styleObject);
1407
- }
1408
- };
1409
1294
  var editorCallback = function editorCallback(val) {
1410
1295
  var editingRowData = _objectSpread$b({}, editingRowDataState);
1411
- ObjectUtils.mutateFieldData(editingRowData, field, val);
1296
+ ObjectUtils.mutateFieldData(editingRowData, props.field, val);
1412
1297
  setEditingRowDataState(editingRowData);
1413
1298
 
1414
1299
  // update editing meta for complete methods on row mode
1415
- var currentData = getEditingRowData();
1300
+ var currentData = props.getEditingRowData();
1416
1301
  if (currentData) {
1417
- ObjectUtils.mutateFieldData(currentData, field, val);
1302
+ ObjectUtils.mutateFieldData(currentData, props.field, val);
1418
1303
  }
1419
1304
  editingRowDataStateRef.current = editingRowData;
1420
1305
  };
1421
1306
  var _onClick = function onClick(event) {
1422
- var params = getCellCallbackParams(event);
1423
- if (props.editMode !== 'row' && isEditable() && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.selected)) {
1424
- selfClick.current = true;
1425
- var onBeforeCellEditShow = getColumnProp('onBeforeCellEditShow');
1426
- var onCellEditInit = getColumnProp('onCellEditInit');
1427
- var cellEditValidatorEvent = getColumnProp('cellEditValidatorEvent');
1428
- if (onBeforeCellEditShow) {
1429
- // if user returns false do not show the editor
1430
- if (onBeforeCellEditShow(params) === false) {
1431
- return;
1432
- }
1433
-
1434
- // if user prevents default stop the editor
1435
- if (event && event.defaultPrevented) {
1436
- return;
1437
- }
1438
- }
1439
-
1440
- // 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.
1441
- setTimeout(function () {
1442
- setEditingState(true);
1443
- if (onCellEditInit) {
1444
- if (onCellEditInit(params) === false) {
1445
- return;
1446
- }
1447
-
1448
- // if user prevents default stop the editor
1449
- if (event && event.defaultPrevented) {
1450
- return;
1451
- }
1452
- }
1453
- if (cellEditValidatorEvent === 'click') {
1454
- bindDocumentClickListener();
1455
- overlayEventListener.current = function (e) {
1456
- if (!isOutsideClicked(e.target)) {
1457
- selfClick.current = true;
1458
- }
1459
- };
1460
- OverlayService.on('overlay-click', overlayEventListener.current);
1461
- }
1462
- }, 1);
1463
- }
1464
- if (props.allowCellSelection && props.onClick) {
1465
- props.onClick(params);
1466
- }
1307
+ props.onClick(event, getCellCallbackParams(event), isEditable(), editingState, setEditingState, selfClick, props.column, bindDocumentClickListener, overlayEventListener);
1467
1308
  };
1468
1309
  var _onMouseDown = function onMouseDown(event) {
1469
1310
  var params = getCellCallbackParams(event);
@@ -1487,7 +1328,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1487
1328
  cell = event.currentTarget;
1488
1329
  switch (event.code) {
1489
1330
  case 'ArrowLeft':
1490
- var prevCell = _findPrevSelectableCell(cell);
1331
+ var prevCell = props.findPrevSelectableCell(cell);
1491
1332
  if (prevCell) {
1492
1333
  changeTabIndex(cell, prevCell);
1493
1334
  prevCell.focus();
@@ -1495,7 +1336,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1495
1336
  event.preventDefault();
1496
1337
  break;
1497
1338
  case 'ArrowRight':
1498
- var nextCell = _findNextSelectableCell(cell);
1339
+ var nextCell = props.findNextSelectableCell(cell);
1499
1340
  if (nextCell) {
1500
1341
  changeTabIndex(cell, nextCell);
1501
1342
  nextCell.focus();
@@ -1503,7 +1344,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1503
1344
  event.preventDefault();
1504
1345
  break;
1505
1346
  case 'ArrowUp':
1506
- var upCell = _findUpSelectableCell(cell);
1347
+ var upCell = props.findUpSelectableCell(cell, index);
1507
1348
  if (upCell) {
1508
1349
  changeTabIndex(cell, upCell);
1509
1350
  upCell.focus();
@@ -1511,7 +1352,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1511
1352
  event.preventDefault();
1512
1353
  break;
1513
1354
  case 'ArrowDown':
1514
- var downCell = _findDownSelectableCell(cell);
1355
+ var downCell = props.findDownSelectableCell(cell, index);
1515
1356
  if (downCell) {
1516
1357
  changeTabIndex(cell, downCell);
1517
1358
  downCell.focus();
@@ -1550,13 +1391,6 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1550
1391
  index: props.rowIndex
1551
1392
  });
1552
1393
  };
1553
- var onCheckboxChange = function onCheckboxChange(event) {
1554
- props.onCheckboxChange({
1555
- originalEvent: event,
1556
- data: props.rowData,
1557
- index: props.rowIndex
1558
- });
1559
- };
1560
1394
  var onRowToggle = function onRowToggle(event) {
1561
1395
  props.onRowToggle({
1562
1396
  originalEvent: event,
@@ -1569,8 +1403,8 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1569
1403
  props.onRowEditInit({
1570
1404
  originalEvent: event,
1571
1405
  data: props.rowData,
1572
- newData: getEditingRowData(),
1573
- field: field,
1406
+ newData: props.getEditingRowData(),
1407
+ field: props.field,
1574
1408
  index: props.rowIndex
1575
1409
  });
1576
1410
  };
@@ -1578,32 +1412,26 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1578
1412
  props.onRowEditSave({
1579
1413
  originalEvent: event,
1580
1414
  data: props.rowData,
1581
- newData: getEditingRowData(),
1582
- field: field,
1415
+ newData: props.getEditingRowData(),
1416
+ field: props.field,
1583
1417
  index: props.rowIndex
1584
1418
  });
1585
- focusOnInit();
1419
+ props.focusOnInit(initFocusTimeout, elementRef);
1586
1420
  };
1587
1421
  var onRowEditCancel = function onRowEditCancel(event) {
1588
1422
  props.onRowEditCancel({
1589
1423
  originalEvent: event,
1590
1424
  data: props.rowData,
1591
- newData: getEditingRowData(),
1592
- field: field,
1425
+ newData: props.getEditingRowData(),
1426
+ field: props.field,
1593
1427
  index: props.rowIndex
1594
1428
  });
1595
- focusOnInit();
1429
+ props.focusOnInit();
1596
1430
  };
1597
1431
  React.useEffect(function () {
1598
- if (getColumnProp('frozen')) {
1599
- updateStickyPosition();
1600
- }
1601
- });
1602
- React.useEffect(function () {
1603
- if (props.editMode === 'cell' || props.editMode === 'row') {
1604
- focusOnElement();
1605
- }
1606
- }, [props.editMode, props.editing, editingState]); // eslint-disable-line react-hooks/exhaustive-deps
1432
+ if (props.frozenCol) props.updateStickyPosition(elementRef, props.frozenCol, props.alignFrozenCol, styleObjectState, setStyleObjectState);
1433
+ if (props.editMode === 'cell' || props.editMode === 'row') props.focusOnElement(focusTimeout, editingState, elementRef, keyHelperRef);
1434
+ }, [props.editMode, props.editing, editingState, props.frozenCol, props.alignFrozenCol]); // eslint-disable-line react-hooks/exhaustive-deps
1607
1435
 
1608
1436
  React.useEffect(function () {
1609
1437
  if (props.editMode === 'row' && props.editing !== editingState) {
@@ -1612,7 +1440,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1612
1440
  }, [props.editMode, props.editing, editingState]);
1613
1441
  useUpdateEffect(function () {
1614
1442
  if (props.editMode === 'cell' || props.editMode === 'row') {
1615
- var editingRowData = getEditingRowData();
1443
+ var editingRowData = props.getEditingRowData();
1616
1444
  setEditingRowDataState(editingRowData);
1617
1445
  editingRowDataStateRef.current = editingRowData;
1618
1446
  }
@@ -1622,7 +1450,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1622
1450
  var callbackParams = getCellCallbackParams();
1623
1451
  var params = _objectSpread$b(_objectSpread$b({}, callbackParams), {}, {
1624
1452
  editing: editingState,
1625
- editingKey: editingKey
1453
+ editingKey: props.editingKey
1626
1454
  });
1627
1455
  props.onEditingMetaChange(params);
1628
1456
  }
@@ -1635,16 +1463,16 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1635
1463
  }
1636
1464
  });
1637
1465
  var createLoading = function createLoading() {
1638
- var options = getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
1466
+ var options = props.getVirtualScrollerOption('getLoaderOptions')(props.rowIndex, {
1639
1467
  cellIndex: props.index,
1640
1468
  cellFirst: props.index === 0,
1641
- cellLast: props.index === getVirtualScrollerOption('columns').length - 1,
1469
+ cellLast: props.index === props.getVirtualScrollerOption('columns').length - 1,
1642
1470
  cellEven: props.index % 2 === 0,
1643
1471
  cellOdd: props.index % 2 !== 0,
1644
1472
  column: props.column,
1645
- field: field
1473
+ field: props.field
1646
1474
  });
1647
- var content = ObjectUtils.getJSXElement(getVirtualScrollerOption('loadingTemplate'), options);
1475
+ var content = ObjectUtils.getJSXElement(props.getVirtualScrollerOption('loadingTemplate'), options);
1648
1476
  var bodyCellProps = mergeProps(getColumnPTOptions('bodyCell'), {
1649
1477
  role: 'cell'
1650
1478
  });
@@ -1653,20 +1481,20 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1653
1481
  var createElement = function createElement() {
1654
1482
  var content;
1655
1483
  var editorKeyHelper;
1656
- var cellSelected = props.allowCellSelection && isSelected();
1484
+ var cellSelected = props.allowCellSelection && props.isCellSelected;
1657
1485
  var isRowEditor = props.editMode === 'row';
1658
- var tabIndex = getTabIndex(cellSelected);
1486
+ var tabIndex = props.getTabIndex(cellSelected, props.index);
1659
1487
  var selectionMode = getColumnProp('selectionMode');
1660
1488
  var rowReorder = getColumnProp('rowReorder');
1661
1489
  var header = getColumnProp('header');
1662
1490
  var body = getColumnProp('body');
1663
1491
  var editor = getColumnProp('editor');
1664
- var frozen = getColumnProp('frozen');
1492
+ var frozen = props.frozenCol;
1665
1493
  var align = getColumnProp('align');
1666
- var value = resolveFieldData();
1494
+ var value = props.resolveFieldData();
1667
1495
  var columnBodyOptions = {
1668
1496
  column: props.column,
1669
- field: field,
1497
+ field: props.field,
1670
1498
  rowIndex: props.rowIndex,
1671
1499
  frozenRow: props.frozenRow,
1672
1500
  props: props.tableProps
@@ -1691,12 +1519,12 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1691
1519
  if (showSelection) {
1692
1520
  var ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
1693
1521
  var ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);
1694
- label = "".concat(props.selected ? ariaLabel$1('unselectRow') : ariaLabel$1('selectRow'), " ").concat(ariaLabelText);
1522
+ label = "".concat(props.isRowSelected ? ariaLabel$1('unselectRow') : ariaLabel$1('selectRow'), " ").concat(ariaLabelText);
1695
1523
  }
1696
1524
  content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {
1697
1525
  hostName: props.hostName,
1698
1526
  column: props.column,
1699
- checked: props.selected,
1527
+ checked: props.isRowSelected,
1700
1528
  disabled: !props.isSelectable({
1701
1529
  data: props.rowData,
1702
1530
  index: props.rowIndex
@@ -1711,12 +1539,12 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1711
1539
  }), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {
1712
1540
  hostName: props.hostName,
1713
1541
  column: props.column,
1714
- checked: props.selected,
1542
+ checked: props.isRowSelected,
1715
1543
  disabled: !props.isSelectable({
1716
1544
  data: props.rowData,
1717
1545
  index: props.rowIndex
1718
1546
  }),
1719
- onChange: onCheckboxChange,
1547
+ onChange: props.onCheckboxChange,
1720
1548
  tabIndex: props.tabIndex,
1721
1549
  ariaLabel: label,
1722
1550
  checkIcon: props.checkIcon,
@@ -1766,7 +1594,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1766
1594
  expanderProps.element = content;
1767
1595
  content = ObjectUtils.getJSXElement(body, props.rowData, {
1768
1596
  column: props.column,
1769
- field: field,
1597
+ field: props.field,
1770
1598
  rowIndex: props.rowIndex,
1771
1599
  frozenRow: props.frozenRow,
1772
1600
  props: props.tableProps,
@@ -1840,7 +1668,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1840
1668
  rowEditorProps.element = content;
1841
1669
  content = ObjectUtils.getJSXElement(body, props.rowData, {
1842
1670
  column: props.column,
1843
- field: field,
1671
+ field: props.field,
1844
1672
  rowIndex: props.rowIndex,
1845
1673
  frozenRow: props.frozenRow,
1846
1674
  props: props.tableProps,
@@ -1850,7 +1678,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1850
1678
  } else if (body && (!editingState || !editor)) {
1851
1679
  content = body ? ObjectUtils.getJSXElement(body, props.rowData, {
1852
1680
  column: props.column,
1853
- field: field,
1681
+ field: props.field,
1854
1682
  rowIndex: props.rowIndex,
1855
1683
  frozenRow: props.frozenRow,
1856
1684
  props: props.tableProps
@@ -1858,9 +1686,9 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1858
1686
  } else if (editor && editingState) {
1859
1687
  content = ObjectUtils.getJSXElement(editor, {
1860
1688
  rowData: editingRowDataState,
1861
- value: resolveFieldData(editingRowDataState),
1689
+ value: props.resolveFieldData(editingRowDataState),
1862
1690
  column: props.column,
1863
- field: field,
1691
+ field: props.field,
1864
1692
  rowIndex: props.rowIndex,
1865
1693
  frozenRow: props.frozenRow,
1866
1694
  props: props.tableProps,
@@ -1928,7 +1756,22 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1928
1756
  ref: elementRef
1929
1757
  }, bodyCellProps), editorKeyHelper, title, content);
1930
1758
  };
1931
- return getVirtualScrollerOption('loading') ? createLoading() : createElement();
1759
+ return props.getVirtualScrollerOption('loading') ? createLoading() : createElement();
1760
+ };
1761
+
1762
+ // RadioCheckCell is used for the Radio and Checkbox selection and has the isRowSelected dependency
1763
+ var RadioCheckCell = /*#__PURE__*/React.memo(function (props) {
1764
+ return /*#__PURE__*/React.createElement(Cell, props);
1765
+ }, function (prevProps, nextProps) {
1766
+ var keysToCompare = ['isRowSelected', 'field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData'];
1767
+ return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
1768
+ });
1769
+ RadioCheckCell.displayName = 'RadioCheckCell';
1770
+ var BodyCell = /*#__PURE__*/React.memo(function (props) {
1771
+ return /*#__PURE__*/React.createElement(Cell, props);
1772
+ }, function (prevProps, nextProps) {
1773
+ var keysToCompare = ['field', 'allowCellSelection', 'isCellSelected', 'editMode', 'index', 'tabIndex', 'editing', 'expanded', 'editingMeta', 'rowData', 'frozenCol', 'alignFrozenCol'];
1774
+ return ObjectUtils.selectiveCompare(prevProps, nextProps, keysToCompare);
1932
1775
  });
1933
1776
  BodyCell.displayName = 'BodyCell';
1934
1777
 
@@ -1944,6 +1787,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
1944
1787
  var _props$ptCallbacks = props.ptCallbacks,
1945
1788
  ptm = _props$ptCallbacks.ptm,
1946
1789
  cx = _props$ptCallbacks.cx;
1790
+ var isRowSelected = !props.allowCellSelection && props.selected || props.contextMenuSelected;
1947
1791
  var getBodyRowPTOptions = function getBodyRowPTOptions(key) {
1948
1792
  return ptm(key, {
1949
1793
  parent: props.metaData,
@@ -1957,7 +1801,7 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
1957
1801
  data: props.rowData,
1958
1802
  index: props.rowIndex
1959
1803
  }),
1960
- selected: !props.allowCellSelection && props.selected || props.contextMenuSelected,
1804
+ selected: isRowSelected,
1961
1805
  stripedRows: props.metaData.props.stripedRows
1962
1806
  }
1963
1807
  });
@@ -1986,10 +1830,10 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
1986
1830
  return equals(rowData, data);
1987
1831
  });
1988
1832
  };
1989
- var changeTabIndex = function changeTabIndex(currentRow, nextRow) {
1990
- if (currentRow && nextRow) {
1991
- currentRow.tabIndex = -1;
1992
- nextRow.tabIndex = props.tabIndex;
1833
+ var changeTabIndex = function changeTabIndex(currentElement, nextElement) {
1834
+ if (currentElement && nextElement) {
1835
+ currentElement.tabIndex = -1;
1836
+ nextElement.tabIndex = props.tabIndex;
1993
1837
  }
1994
1838
  };
1995
1839
  var findFirstSelectableRow = function findFirstSelectableRow(row) {
@@ -2316,32 +2160,176 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
2316
2160
  onEditChange(e, false);
2317
2161
  event.preventDefault();
2318
2162
  };
2163
+ var equalsDataCell = function equalsDataCell(data) {
2164
+ return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
2165
+ };
2166
+ var equalsCell = function equalsCell(selectedCell, field, colIndex) {
2167
+ return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsDataCell(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === colIndex);
2168
+ };
2169
+ var findIndexCell = function findIndexCell(collection, field, colIndex) {
2170
+ return (collection || []).findIndex(function (data) {
2171
+ return equalsCell(data, field, colIndex);
2172
+ });
2173
+ };
2174
+ var isCellSelected = function isCellSelected(selection, field, colIndex) {
2175
+ return selection ? selection instanceof Array ? findIndexCell(selection, field, colIndex) > -1 : equalsCell(selection, field, colIndex) : false;
2176
+ };
2177
+ var onCheckboxChange = function onCheckboxChange(event) {
2178
+ props.onCheckboxChange({
2179
+ originalEvent: event,
2180
+ data: props.rowData,
2181
+ index: props.rowIndex
2182
+ });
2183
+ };
2184
+ var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
2185
+ var getVirtualScrollerOption = React.useCallback(function (option) {
2186
+ return props.virtualScrollerOptions ? props.virtualScrollerOptions[option] : null;
2187
+ }, [props.virtualScrollerOptions]);
2188
+ var getEditingRowData = function getEditingRowData() {
2189
+ return props.editingMeta && props.editingMeta[editingKey] ? props.editingMeta[editingKey].data : props.rowData;
2190
+ };
2191
+ var getTabIndexCell = React.useCallback(function (cellSelected, cellIndex) {
2192
+ return props.allowCellSelection ? cellSelected ? 0 : props.rowIndex === 0 && cellIndex === 0 ? props.tabIndex : -1 : null;
2193
+ }, [props.allowCellSelection, props.rowIndex, props.tabIndex]);
2194
+ var findNextSelectableCell = React.useCallback(function (cell) {
2195
+ var nextCell = cell.nextElementSibling;
2196
+ return nextCell ? DomHandler.getAttribute(nextCell, 'data-p-selectable-cell') ? nextCell : findNextSelectableCell(nextCell) : null;
2197
+ }, []);
2198
+ var findPrevSelectableCell = React.useCallback(function (cell) {
2199
+ var prevCell = cell.previousElementSibling;
2200
+ return prevCell ? DomHandler.getAttribute(prevCell, 'data-p-selectable-cell') ? prevCell : findPrevSelectableCell(prevCell) : null;
2201
+ }, []);
2202
+ var findDownSelectableCell = React.useCallback(function (cell, cellIndex) {
2203
+ var downRow = cell.parentElement.nextElementSibling;
2204
+ var downCell = downRow ? downRow.children[cellIndex] : null;
2205
+ return downRow && downCell ? DomHandler.getAttribute(downRow, 'data-p-selectable-row') && DomHandler.getAttribute(downCell, 'data-p-selectable-cell') ? downCell : findDownSelectableCell(downCell) : null;
2206
+ }, []);
2207
+ var findUpSelectableCell = React.useCallback(function (cell, cellIndex) {
2208
+ var upRow = cell.parentElement.previousElementSibling;
2209
+ var upCell = upRow ? upRow.children[cellIndex] : null;
2210
+ return upRow && upCell ? DomHandler.getAttribute(upRow, 'data-p-selectable-row') && DomHandler.getAttribute(upCell, 'data-p-selectable-cell') ? upCell : findUpSelectableCell(upCell) : null;
2211
+ }, []);
2212
+ var focusOnElement = React.useCallback(function (focusTimeoutRef, editingState, elementRef, keyHelperRef) {
2213
+ clearTimeout(focusTimeoutRef.current);
2214
+ focusTimeoutRef.current = setTimeout(function () {
2215
+ if (editingState) {
2216
+ var focusableEl = props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(elementRef.current, ':not([data-pc-section="editorkeyhelperlabel"])') : DomHandler.findSingle(elementRef.current, '[data-p-row-editor-save="true"]');
2217
+ focusableEl && focusableEl.focus();
2218
+ }
2219
+ keyHelperRef.current && (keyHelperRef.current.tabIndex = editingState ? -1 : 0);
2220
+ }, 1);
2221
+ }, [props.editMode]);
2222
+ var focusOnInit = React.useCallback(function (initFocusTimeoutRef, elementRef) {
2223
+ clearTimeout(initFocusTimeoutRef.current);
2224
+ initFocusTimeoutRef.current = setTimeout(function () {
2225
+ var focusableEl = props.editMode === 'row' ? DomHandler.findSingle(elementRef.current, '[data-p-row-editor-init="true"]') : null;
2226
+ focusableEl && focusableEl.focus();
2227
+ }, 1);
2228
+ }, [props.editMode]);
2229
+ var updateStickyPosition = React.useCallback(function (elementRef, frozen, alignFrozen, styleObjectState, setStyleObjectState) {
2230
+ if (frozen) {
2231
+ var styleObject = _objectSpread$a({}, styleObjectState);
2232
+ if (alignFrozen === 'right') {
2233
+ var right = 0;
2234
+ var next = elementRef.current && elementRef.current.nextElementSibling;
2235
+ if (next && next.classList.contains('p-frozen-column')) {
2236
+ right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
2237
+ }
2238
+ styleObject.right = right + 'px';
2239
+ } else {
2240
+ var left = 0;
2241
+ var prev = elementRef.current && elementRef.current.previousElementSibling;
2242
+ if (prev && prev.classList.contains('p-frozen-column')) {
2243
+ left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
2244
+ }
2245
+ styleObject.left = left + 'px';
2246
+ }
2247
+ var isSameStyle = styleObjectState.left === styleObject.left && styleObjectState.right === styleObject.right;
2248
+ !isSameStyle && setStyleObjectState(styleObject);
2249
+ }
2250
+ }, []);
2251
+ var onCellClick = function onCellClick(event, params, isEditable, editingState, setEditingState, selfClick, column, bindDocumentClickListener, overlayEventListener) {
2252
+ if (props.editMode !== 'row' && isEditable && !editingState && (props.selectOnEdit || !props.selectOnEdit && props.isRowSelected)) {
2253
+ selfClick.current = true;
2254
+ var onBeforeCellEditShow = getColumnProp(column, 'onBeforeCellEditShow');
2255
+ var onCellEditInit = getColumnProp(column, 'onCellEditInit');
2256
+ var cellEditValidatorEvent = getColumnProp(column, 'cellEditValidatorEvent');
2257
+ if (onBeforeCellEditShow) {
2258
+ // if user returns false do not show the editor
2259
+ if (onBeforeCellEditShow(params) === false) {
2260
+ return;
2261
+ }
2262
+
2263
+ // if user prevents default stop the editor
2264
+ if (event && event.defaultPrevented) {
2265
+ return;
2266
+ }
2267
+ }
2268
+
2269
+ // 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.
2270
+ setTimeout(function () {
2271
+ setEditingState(true);
2272
+ if (onCellEditInit) {
2273
+ if (onCellEditInit(params) === false) {
2274
+ return;
2275
+ }
2276
+
2277
+ // if user prevents default stop the editor
2278
+ if (event && event.defaultPrevented) {
2279
+ return;
2280
+ }
2281
+ }
2282
+ if (cellEditValidatorEvent === 'click') {
2283
+ bindDocumentClickListener();
2284
+ overlayEventListener.current = function (e) {
2285
+ if (!isOutsideClicked(e.target)) {
2286
+ selfClick.current = true;
2287
+ }
2288
+ };
2289
+ OverlayService.on('overlay-click', overlayEventListener.current);
2290
+ }
2291
+ }, 1);
2292
+ }
2293
+ if (props.allowCellSelection && props.onCellClick) {
2294
+ props.onCellClick(params);
2295
+ }
2296
+ };
2319
2297
  var createContent = function createContent() {
2320
2298
  return props.columns.map(function (col, i) {
2321
2299
  if (shouldRenderBodyCell(props.value, col, props.index)) {
2322
2300
  var key = "".concat(props.rowIndex, "_").concat(getColumnProp(col, 'columnKey') || getColumnProp(col, 'field'), "_").concat(i);
2323
2301
  var rowSpan = props.rowGroupMode === 'rowspan' ? calculateRowGroupSize(props.value, col, props.index) : null;
2324
- return /*#__PURE__*/React.createElement(BodyCell, {
2302
+ var field = getColumnProp(col, 'field') || "field_".concat(i);
2303
+ var resolveFieldData = function resolveFieldData(data) {
2304
+ return ObjectUtils.resolveFieldData(data || props.rowData, field);
2305
+ };
2306
+ var selectionMode = getColumnProp(col, 'selectionMode');
2307
+ var cellProps = mergeProps({
2325
2308
  hostName: props.hostName,
2326
- key: key,
2327
2309
  allowCellSelection: props.allowCellSelection,
2328
2310
  cellClassName: props.cellClassName,
2329
2311
  checkIcon: props.checkIcon,
2330
2312
  collapsedRowIcon: props.collapsedRowIcon,
2313
+ field: field,
2314
+ resolveFieldData: resolveFieldData,
2331
2315
  column: col,
2332
- compareSelectionBy: props.compareSelectionBy,
2316
+ cProps: props.colsProps[i],
2333
2317
  dataKey: props.dataKey,
2334
2318
  editMode: props.editMode,
2335
2319
  editing: editing,
2336
2320
  editingMeta: props.editingMeta,
2321
+ onEditingMetaChange: props.onEditingMetaChange,
2322
+ editingKey: editingKey,
2323
+ getEditingRowData: getEditingRowData,
2337
2324
  expanded: props.expanded,
2338
2325
  expandedRowIcon: props.expandedRowIcon,
2339
2326
  frozenRow: props.frozenRow,
2327
+ frozenCol: getColumnProp(col, 'frozen'),
2328
+ alignFrozenCol: getColumnProp(col, 'alignFrozen'),
2340
2329
  index: i,
2341
2330
  isSelectable: props.isSelectable,
2342
- onCheckboxChange: props.onCheckboxChange,
2343
- onClick: props.onCellClick,
2344
- onEditingMetaChange: props.onEditingMetaChange,
2331
+ onCheckboxChange: onCheckboxChange,
2332
+ onClick: onCellClick,
2345
2333
  onMouseDown: props.onCellMouseDown,
2346
2334
  onMouseUp: props.onCellMouseUp,
2347
2335
  onRadioChange: props.onRadioChange,
@@ -2357,20 +2345,31 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
2357
2345
  rowIndex: props.rowIndex,
2358
2346
  rowSpan: rowSpan,
2359
2347
  selectOnEdit: props.selectOnEdit,
2360
- selected: props.selected,
2361
- selection: props.selection,
2348
+ isRowSelected: isRowSelected,
2349
+ isCellSelected: isCellSelected(props.selection, field, i),
2362
2350
  selectionAriaLabel: props.tableProps.selectionAriaLabel,
2363
2351
  showRowReorderElement: props.showRowReorderElement,
2364
2352
  showSelectionElement: props.showSelectionElement,
2365
2353
  tabIndex: props.tabIndex,
2354
+ getTabIndex: getTabIndexCell,
2366
2355
  tableProps: props.tableProps,
2367
2356
  tableSelector: props.tableSelector,
2368
2357
  value: props.value,
2369
- virtualScrollerOptions: props.virtualScrollerOptions,
2358
+ getVirtualScrollerOption: getVirtualScrollerOption,
2370
2359
  ptCallbacks: props.ptCallbacks,
2371
2360
  metaData: props.metaData,
2372
- unstyled: props.unstyled
2361
+ unstyled: props.unstyled,
2362
+ findNextSelectableCell: findNextSelectableCell,
2363
+ findPrevSelectableCell: findPrevSelectableCell,
2364
+ findDownSelectableCell: findDownSelectableCell,
2365
+ findUpSelectableCell: findUpSelectableCell,
2366
+ focusOnElement: focusOnElement,
2367
+ focusOnInit: focusOnInit,
2368
+ updateStickyPosition: updateStickyPosition
2373
2369
  });
2370
+ return /*#__PURE__*/React.createElement(Fragment, {
2371
+ key: key
2372
+ }, selectionMode ? /*#__PURE__*/React.createElement(RadioCheckCell, cellProps) : /*#__PURE__*/React.createElement(BodyCell, cellProps));
2374
2373
  }
2375
2374
  return null;
2376
2375
  });
@@ -2520,8 +2519,11 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2520
2519
  var getColumnProps = function getColumnProps(column) {
2521
2520
  return ColumnBase.getCProps(column);
2522
2521
  };
2522
+ var cProps = getColumnProps(props.column);
2523
+ var colsProps = props.columns ? props.columns.map(function (col) {
2524
+ return getColumnProps(col);
2525
+ }) : [];
2523
2526
  var getColumnPTOptions = function getColumnPTOptions(key) {
2524
- var cProps = getColumnProps(props.column);
2525
2527
  var columnMetaData = {
2526
2528
  props: cProps,
2527
2529
  parent: props.metaData,
@@ -2646,8 +2648,12 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2646
2648
  var allowSelection = function allowSelection(event) {
2647
2649
  return !DomHandler.isClickable(event.originalEvent.target);
2648
2650
  };
2651
+ var metaKeySelectionRef = React.useRef(props.metaKeySelection);
2652
+ React.useEffect(function () {
2653
+ metaKeySelectionRef.current = props.metaKeySelection;
2654
+ }, [props.metaKeySelection]);
2649
2655
  var allowMetaKeySelection = function allowMetaKeySelection(event) {
2650
- return !rowTouched.current && (!props.metaKeySelection || props.metaKeySelection && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));
2656
+ return !rowTouched.current && (!metaKeySelectionRef.current || metaKeySelectionRef.current && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));
2651
2657
  };
2652
2658
  var allowRangeSelection = function allowRangeSelection(event) {
2653
2659
  return isMultipleSelection() && event.originalEvent.shiftKey && anchorRowIndex.current !== null;
@@ -2668,6 +2674,9 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2668
2674
  options = options || props.virtualScrollerOptions;
2669
2675
  return options ? options[option] : null;
2670
2676
  };
2677
+ var getProcessedDataIndex = function getProcessedDataIndex(rowIndex) {
2678
+ return props.lazy ? rowIndex - props.first : rowIndex;
2679
+ };
2671
2680
  var findIndex = function findIndex(collection, rowData) {
2672
2681
  return (collection || []).findIndex(function (data) {
2673
2682
  return equals(rowData, data);
@@ -2717,6 +2726,10 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2717
2726
  });
2718
2727
  }
2719
2728
  };
2729
+ var selectionRef = React.useRef(props.selection);
2730
+ React.useEffect(function () {
2731
+ selectionRef.current = props.selection;
2732
+ }, [props.selection]);
2720
2733
  var onSingleSelection = function onSingleSelection(_ref) {
2721
2734
  var originalEvent = _ref.originalEvent,
2722
2735
  data = _ref.data,
@@ -2730,10 +2743,11 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2730
2743
  return;
2731
2744
  }
2732
2745
  var selected = isSelected(data);
2733
- var selection = props.selection;
2746
+ var currentSelection = selectionRef.current || [];
2747
+ var newSelection = currentSelection;
2734
2748
  if (selected) {
2735
2749
  if (toggleable) {
2736
- selection = null;
2750
+ newSelection = null;
2737
2751
  onUnselect({
2738
2752
  originalEvent: originalEvent,
2739
2753
  data: data,
@@ -2741,7 +2755,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2741
2755
  });
2742
2756
  }
2743
2757
  } else {
2744
- selection = data;
2758
+ newSelection = data;
2745
2759
  onSelect({
2746
2760
  originalEvent: originalEvent,
2747
2761
  data: data,
@@ -2749,10 +2763,10 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2749
2763
  });
2750
2764
  }
2751
2765
  focusOnElement(originalEvent, true);
2752
- if (props.onSelectionChange && selection !== props.selection) {
2766
+ if (props.onSelectionChange && newSelection !== currentSelection) {
2753
2767
  props.onSelectionChange({
2754
2768
  originalEvent: originalEvent,
2755
- value: selection,
2769
+ value: newSelection,
2756
2770
  type: type
2757
2771
  });
2758
2772
  }
@@ -2770,11 +2784,12 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2770
2784
  return;
2771
2785
  }
2772
2786
  var selected = isSelected(data);
2773
- var selection = props.selection || [];
2787
+ var currentSelection = selectionRef.current || [];
2788
+ var newSelection = currentSelection;
2774
2789
  if (selected) {
2775
2790
  if (toggleable) {
2776
- var selectionIndex = findIndex(selection, data);
2777
- selection = props.selection.filter(function (val, i) {
2791
+ var selectionIndex = findIndex(currentSelection, data);
2792
+ newSelection = currentSelection.filter(function (val, i) {
2778
2793
  return i !== selectionIndex;
2779
2794
  });
2780
2795
  onUnselect({
@@ -2782,15 +2797,15 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2782
2797
  data: data,
2783
2798
  type: type
2784
2799
  });
2785
- } else if (selection.length) {
2786
- props.selection.forEach(function (d) {
2800
+ } else if (currentSelection.length) {
2801
+ currentSelection.forEach(function (d) {
2787
2802
  return onUnselect({
2788
2803
  originalEvent: originalEvent,
2789
2804
  data: d,
2790
2805
  type: type
2791
2806
  });
2792
2807
  });
2793
- selection = [data];
2808
+ newSelection = [data];
2794
2809
  onSelect({
2795
2810
  originalEvent: originalEvent,
2796
2811
  data: data,
@@ -2798,18 +2813,18 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2798
2813
  });
2799
2814
  }
2800
2815
  } else {
2801
- selection = ObjectUtils.isObject(selection) ? [selection] : selection;
2802
- selection = toggleable && isMultipleSelection() ? [].concat(_toConsumableArray(selection), [data]) : [data];
2816
+ newSelection = ObjectUtils.isObject(currentSelection) ? [currentSelection] : currentSelection;
2817
+ newSelection = toggleable && isMultipleSelection() ? [].concat(_toConsumableArray(newSelection), [data]) : [data];
2803
2818
  onSelect({
2804
2819
  originalEvent: originalEvent,
2805
2820
  data: data,
2806
2821
  type: type
2807
2822
  });
2808
2823
  }
2809
- if (props.onSelectionChange && selection !== props.selection) {
2824
+ if (props.onSelectionChange && newSelection !== currentSelection) {
2810
2825
  props.onSelectionChange({
2811
2826
  originalEvent: originalEvent,
2812
- value: selection,
2827
+ value: newSelection,
2813
2828
  type: type
2814
2829
  });
2815
2830
  }
@@ -2832,14 +2847,16 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2832
2847
  var rangeStart;
2833
2848
  var rangeEnd;
2834
2849
  var isAllowCellSelection = allowCellSelection();
2835
- if (rangeRowIndex.current > anchorRowIndex.current) {
2836
- rangeStart = anchorRowIndex.current;
2837
- rangeEnd = rangeRowIndex.current;
2838
- } else if (rangeRowIndex.current < anchorRowIndex.current) {
2839
- rangeStart = rangeRowIndex.current;
2840
- rangeEnd = anchorRowIndex.current;
2850
+ var rangeRowIndexInProcessedData = getProcessedDataIndex(rangeRowIndex.current);
2851
+ var anchorRowIndexInProcessedData = getProcessedDataIndex(anchorRowIndex.current);
2852
+ if (rangeRowIndexInProcessedData > anchorRowIndexInProcessedData) {
2853
+ rangeStart = anchorRowIndexInProcessedData;
2854
+ rangeEnd = rangeRowIndexInProcessedData;
2855
+ } else if (rangeRowIndexInProcessedData < anchorRowIndexInProcessedData) {
2856
+ rangeStart = rangeRowIndexInProcessedData;
2857
+ rangeEnd = anchorRowIndexInProcessedData;
2841
2858
  } else {
2842
- rangeStart = rangeEnd = rangeRowIndex.current;
2859
+ rangeStart = rangeEnd = rangeRowIndexInProcessedData;
2843
2860
  }
2844
2861
  return isAllowCellSelection ? selectRangeOnCell(event, rangeStart, rangeEnd) : selectRangeOnRow(event, rangeStart, rangeEnd);
2845
2862
  };
@@ -2880,7 +2897,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
2880
2897
  for (var i = rowRangeStart; i <= rowRangeEnd; i++) {
2881
2898
  var rowData = value[i];
2882
2899
  var columns = props.columns;
2883
- var rowIndex = props.paginator ? i + props.first : i;
2900
+ var rowIndex = props.lazy ? i + props.first : i;
2884
2901
  for (var j = cellRangeStart; j <= cellRangeEnd; j++) {
2885
2902
  var field = getColumnProp(columns[j], 'field');
2886
2903
  var _value = ObjectUtils.resolveFieldData(rowData, field);
@@ -3345,7 +3362,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
3345
3362
  var emptyMessageProps = mergeProps({
3346
3363
  className: cx('emptyMessage'),
3347
3364
  role: 'row'
3348
- }, getColumnPTOptions('emptyMessage'));
3365
+ }, ptm('emptyMessage'));
3349
3366
  var bodyCellProps = mergeProps({
3350
3367
  colSpan: colSpan,
3351
3368
  role: 'cell'
@@ -3355,7 +3372,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
3355
3372
  return null;
3356
3373
  };
3357
3374
  var createGroupHeader = function createGroupHeader(rowData, rowIndex, expanded, colSpan) {
3358
- if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, rowIndex - props.first)) {
3375
+ if (isSubheaderGrouping && shouldRenderRowGroupHeader(props.value, rowData, getProcessedDataIndex(rowIndex))) {
3359
3376
  var style = rowGroupHeaderStyle();
3360
3377
  var toggler = props.expandableRowGroups && /*#__PURE__*/React.createElement(RowTogglerButton, {
3361
3378
  hostName: props.hostName,
@@ -3382,14 +3399,14 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
3382
3399
  }, getColumnPTOptions('root'), getColumnPTOptions('bodyCell'));
3383
3400
  var rowGroupHeaderNameProps = mergeProps({
3384
3401
  className: cx('rowGroupHeaderName')
3385
- }, getColumnPTOptions('rowGroupHeaderName'));
3402
+ }, ptm('rowGroupHeaderName'));
3386
3403
  _content2 = /*#__PURE__*/React.createElement("td", bodyCellProps, toggler, /*#__PURE__*/React.createElement("span", rowGroupHeaderNameProps, _content2));
3387
3404
  }
3388
3405
  var rowGroupHeaderProps = mergeProps({
3389
3406
  className: cx('rowGroupHeader'),
3390
3407
  style: style,
3391
3408
  role: 'row'
3392
- }, getColumnPTOptions('rowGroupHeader'));
3409
+ }, ptm('rowGroupHeader'));
3393
3410
  return /*#__PURE__*/React.createElement("tr", rowGroupHeaderProps, _content2);
3394
3411
  }
3395
3412
  return null;
@@ -3409,6 +3426,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
3409
3426
  checkIcon: props.checkIcon,
3410
3427
  collapsedRowIcon: props.collapsedRowIcon,
3411
3428
  columns: props.columns,
3429
+ colsProps: colsProps,
3412
3430
  compareSelectionBy: props.compareSelectionBy,
3413
3431
  contextMenuSelected: contextMenuSelected,
3414
3432
  dataKey: props.dataKey,
@@ -3497,7 +3515,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
3497
3515
  id: id,
3498
3516
  className: cx('rowExpansion'),
3499
3517
  role: 'row'
3500
- }, getColumnPTOptions('rowExpansion'));
3518
+ }, ptm('rowExpansion'));
3501
3519
  return /*#__PURE__*/React.createElement("tr", rowExpansionProps, _content3);
3502
3520
  }
3503
3521
  return null;
@@ -3512,7 +3530,7 @@ var TableBody = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (
3512
3530
  var rowGroupFooterProps = mergeProps({
3513
3531
  className: cx('rowGroupFooter'),
3514
3532
  role: 'row'
3515
- }, getColumnPTOptions('rowGroupFooter'));
3533
+ }, ptm('rowGroupFooter'));
3516
3534
  return /*#__PURE__*/React.createElement("tr", rowGroupFooterProps, _content4);
3517
3535
  }
3518
3536
  return null;
@@ -3772,28 +3790,20 @@ var TableFooter = /*#__PURE__*/React.memo(function (props) {
3772
3790
  });
3773
3791
  TableFooter.displayName = 'TableFooter';
3774
3792
 
3775
- function _defineProperties(target, props) {
3776
- for (var i = 0; i < props.length; i++) {
3777
- var descriptor = props[i];
3778
- descriptor.enumerable = descriptor.enumerable || false;
3779
- descriptor.configurable = true;
3780
- if ("value" in descriptor) descriptor.writable = true;
3781
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
3793
+ function _defineProperties(e, r) {
3794
+ for (var t = 0; t < r.length; t++) {
3795
+ var o = r[t];
3796
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
3782
3797
  }
3783
3798
  }
3784
- function _createClass(Constructor, protoProps, staticProps) {
3785
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3786
- if (staticProps) _defineProperties(Constructor, staticProps);
3787
- Object.defineProperty(Constructor, "prototype", {
3788
- writable: false
3789
- });
3790
- return Constructor;
3799
+ function _createClass(e, r, t) {
3800
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
3801
+ writable: !1
3802
+ }), e;
3791
3803
  }
3792
3804
 
3793
- function _classCallCheck(instance, Constructor) {
3794
- if (!(instance instanceof Constructor)) {
3795
- throw new TypeError("Cannot call a class as a function");
3796
- }
3805
+ function _classCallCheck(a, n) {
3806
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
3797
3807
  }
3798
3808
 
3799
3809
  var FilterMatchMode = Object.freeze({
@@ -4200,9 +4210,17 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
4200
4210
  var type = _ref.type,
4201
4211
  valid = _ref.valid;
4202
4212
  if (valid) {
4203
- type === 'outside' ? !selfClick.current && !isTargetClicked(event.target) && hide() : hide();
4213
+ if (type === 'outside') {
4214
+ if (!selfClick.current && !isTargetClicked(event.target)) {
4215
+ hide();
4216
+ }
4217
+ selfClick.current = false;
4218
+ } else if (context.hideOverlaysOnDocumentScrolling) {
4219
+ hide();
4220
+ } else if (!DomHandler.isDocument(event.target)) {
4221
+ DomHandler.alignOverlay(overlayRef.current, iconRef.current, context && context.appendTo || PrimeReact$1.appendTo, false);
4222
+ }
4204
4223
  }
4205
- selfClick.current = false;
4206
4224
  },
4207
4225
  when: overlayVisibleState
4208
4226
  }),
@@ -5692,9 +5710,9 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
5692
5710
  });
5693
5711
  TableHeader.displayName = 'TableHeader';
5694
5712
 
5695
- 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; } } }; }
5696
- 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); }
5697
- 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; }
5713
+ 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; } } }; }
5714
+ 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; } }
5715
+ 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; }
5698
5716
  function ownKeys(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; }
5699
5717
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5700
5718
  var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
@@ -5737,14 +5755,18 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
5737
5755
  _React$useState18 = _slicedToArray(_React$useState17, 2),
5738
5756
  editingMetaState = _React$useState18[0],
5739
5757
  setEditingMetaState = _React$useState18[1];
5740
- var _React$useState19 = React.useState(props.rows),
5758
+ var _React$useState19 = React.useState({}),
5741
5759
  _React$useState20 = _slicedToArray(_React$useState19, 2),
5742
- d_rowsState = _React$useState20[0],
5743
- setD_rowsState = _React$useState20[1];
5744
- var _React$useState21 = React.useState({}),
5760
+ frozenEditingMetaState = _React$useState20[0],
5761
+ setFrozenEditingMetaState = _React$useState20[1];
5762
+ var _React$useState21 = React.useState(props.rows),
5745
5763
  _React$useState22 = _slicedToArray(_React$useState21, 2),
5746
- d_filtersState = _React$useState22[0],
5747
- setD_filtersState = _React$useState22[1];
5764
+ d_rowsState = _React$useState22[0],
5765
+ setD_rowsState = _React$useState22[1];
5766
+ var _React$useState23 = React.useState({}),
5767
+ _React$useState24 = _slicedToArray(_React$useState23, 2),
5768
+ d_filtersState = _React$useState24[0],
5769
+ setD_filtersState = _React$useState24[1];
5748
5770
  var metaData = {
5749
5771
  props: props,
5750
5772
  state: {
@@ -5757,6 +5779,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
5757
5779
  columnOrder: columnOrderState,
5758
5780
  groupRowsSortMeta: groupRowsSortMetaState,
5759
5781
  editingMeta: editingMetaState,
5782
+ frozenEditingMeta: frozenEditingMetaState,
5760
5783
  d_rows: d_rowsState,
5761
5784
  d_filters: d_filtersState
5762
5785
  },
@@ -6161,6 +6184,32 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6161
6184
  setEditingMetaState({});
6162
6185
  }
6163
6186
  };
6187
+ var onFrozenEditingMetaChange = function onFrozenEditingMetaChange(e) {
6188
+ var rowData = e.rowData,
6189
+ field = e.field,
6190
+ editingKey = e.editingKey,
6191
+ editing = e.editing;
6192
+ var frozenEditingMeta = _objectSpread({}, frozenEditingMetaState);
6193
+ var meta = frozenEditingMeta[editingKey];
6194
+ if (editing) {
6195
+ !meta && (meta = frozenEditingMeta[editingKey] = {
6196
+ data: _objectSpread({}, rowData),
6197
+ fields: []
6198
+ });
6199
+ meta.fields.push(field);
6200
+ } else if (meta) {
6201
+ var fields = meta.fields.filter(function (f) {
6202
+ return f !== field;
6203
+ });
6204
+ !fields.length ? delete frozenEditingMeta[editingKey] : meta.fields = fields;
6205
+ }
6206
+ setFrozenEditingMetaState(frozenEditingMeta);
6207
+ };
6208
+ var clearFrozenEditingMetaData = function clearFrozenEditingMetaData() {
6209
+ if (props.editMode && ObjectUtils.isNotEmpty(frozenEditingMetaState)) {
6210
+ setFrozenEditingMetaState({});
6211
+ }
6212
+ };
6164
6213
  var onColumnResizeStart = function onColumnResizeStart(e) {
6165
6214
  createBeforeResizeStyleElement();
6166
6215
  var event = e.originalEvent,
@@ -6451,6 +6500,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6451
6500
  };
6452
6501
  var onPageChange = function onPageChange(e) {
6453
6502
  clearEditingMetaData();
6503
+ clearFrozenEditingMetaData();
6454
6504
  if (props.onPage) {
6455
6505
  props.onPage(createEvent(e));
6456
6506
  } else {
@@ -6463,6 +6513,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6463
6513
  };
6464
6514
  var onSortChange = function onSortChange(e) {
6465
6515
  clearEditingMetaData();
6516
+ clearFrozenEditingMetaData();
6466
6517
  var event = e.originalEvent,
6467
6518
  column = e.column,
6468
6519
  sortableDisabledFields = e.sortableDisabledFields;
@@ -6640,6 +6691,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6640
6691
  };
6641
6692
  var onFilterChange = function onFilterChange(filters) {
6642
6693
  clearEditingMetaData();
6694
+ clearFrozenEditingMetaData();
6643
6695
  setD_filtersState(filters);
6644
6696
  };
6645
6697
  var onFilterApply = function onFilterApply(filtersToApply) {
@@ -6829,6 +6881,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
6829
6881
  setD_filtersState(cloneFilters(props.filters));
6830
6882
  setGroupRowsSortMetaState(null);
6831
6883
  setEditingMetaState({});
6884
+ setFrozenEditingMetaState({});
6832
6885
  if (!props.onPage) {
6833
6886
  setFirstState(props.first);
6834
6887
  setRowsState(props.rows);
@@ -7193,7 +7246,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7193
7246
  dataKey: props.dataKey,
7194
7247
  dragSelection: props.dragSelection,
7195
7248
  editMode: props.editMode,
7196
- editingMeta: editingMetaState,
7249
+ editingMeta: frozenEditingMetaState,
7197
7250
  editingRows: props.editingRows,
7198
7251
  emptyMessage: props.emptyMessage,
7199
7252
  expandableRowGroups: props.expandableRowGroups,
@@ -7212,7 +7265,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
7212
7265
  onCellUnselect: props.onCellUnselect,
7213
7266
  onContextMenu: props.onContextMenu,
7214
7267
  onContextMenuSelectionChange: props.onContextMenuSelectionChange,
7215
- onEditingMetaChange: onEditingMetaChange,
7268
+ onEditingMetaChange: onFrozenEditingMetaChange,
7216
7269
  onRowClick: props.onRowClick,
7217
7270
  onRowCollapse: props.onRowCollapse,
7218
7271
  onRowDoubleClick: props.onRowDoubleClick,