primevue 3.44.0 → 3.45.0

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 (467) hide show
  1. package/accordion/Accordion.vue +1 -0
  2. package/accordion/accordion.cjs.js +1 -0
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.esm.js +1 -0
  5. package/accordion/accordion.esm.min.js +1 -1
  6. package/accordion/accordion.js +1 -0
  7. package/accordion/accordion.min.js +1 -1
  8. package/basecomponent/BaseComponent.vue +1 -1
  9. package/basecomponent/basecomponent.cjs.js +2 -2
  10. package/basecomponent/basecomponent.cjs.min.js +1 -1
  11. package/basecomponent/basecomponent.esm.js +2 -2
  12. package/basecomponent/basecomponent.esm.min.js +1 -1
  13. package/basecomponent/basecomponent.js +2 -2
  14. package/basecomponent/basecomponent.min.js +1 -1
  15. package/basecomponent/style/basecomponentstyle.cjs.js +1 -1
  16. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  17. package/basecomponent/style/basecomponentstyle.esm.js +1 -1
  18. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  19. package/basecomponent/style/basecomponentstyle.js +1 -1
  20. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  21. package/baseicon/BaseIcon.vue +8 -14
  22. package/baseicon/baseicon.cjs.js +10 -15
  23. package/baseicon/baseicon.cjs.min.js +1 -1
  24. package/baseicon/baseicon.esm.js +10 -15
  25. package/baseicon/baseicon.esm.min.js +1 -1
  26. package/baseicon/baseicon.js +10 -15
  27. package/baseicon/baseicon.min.js +1 -1
  28. package/calendar/Calendar.vue +5 -2
  29. package/calendar/calendar.cjs.js +5 -2
  30. package/calendar/calendar.cjs.min.js +1 -1
  31. package/calendar/calendar.esm.js +5 -2
  32. package/calendar/calendar.esm.min.js +1 -1
  33. package/calendar/calendar.js +5 -2
  34. package/calendar/calendar.min.js +1 -1
  35. package/cascadeselect/CascadeSelect.vue +1 -0
  36. package/cascadeselect/cascadeselect.cjs.js +1 -0
  37. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  38. package/cascadeselect/cascadeselect.esm.js +1 -0
  39. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  40. package/cascadeselect/cascadeselect.js +1 -0
  41. package/cascadeselect/cascadeselect.min.js +1 -1
  42. package/cascadeselect/style/cascadeselectstyle.cjs.js +1 -1
  43. package/cascadeselect/style/cascadeselectstyle.cjs.min.js +1 -1
  44. package/cascadeselect/style/cascadeselectstyle.esm.js +1 -1
  45. package/cascadeselect/style/cascadeselectstyle.esm.min.js +1 -1
  46. package/cascadeselect/style/cascadeselectstyle.js +1 -1
  47. package/cascadeselect/style/cascadeselectstyle.min.js +1 -1
  48. package/chips/Chips.vue +1 -0
  49. package/chips/chips.cjs.js +1 -0
  50. package/chips/chips.cjs.min.js +1 -1
  51. package/chips/chips.esm.js +1 -0
  52. package/chips/chips.esm.min.js +1 -1
  53. package/chips/chips.js +1 -0
  54. package/chips/chips.min.js +1 -1
  55. package/column/Column.vue +7 -0
  56. package/column/column.cjs.js +9 -0
  57. package/column/column.cjs.min.js +1 -1
  58. package/column/column.esm.js +9 -0
  59. package/column/column.esm.min.js +1 -1
  60. package/column/column.js +9 -0
  61. package/column/column.min.js +1 -1
  62. package/columngroup/ColumnGroup.vue +7 -0
  63. package/columngroup/columngroup.cjs.js +9 -0
  64. package/columngroup/columngroup.cjs.min.js +1 -1
  65. package/columngroup/columngroup.esm.js +9 -0
  66. package/columngroup/columngroup.esm.min.js +1 -1
  67. package/columngroup/columngroup.js +9 -0
  68. package/columngroup/columngroup.min.js +1 -1
  69. package/confirmdialog/ConfirmDialog.d.ts +1 -1
  70. package/confirmpopup/ConfirmPopup.vue +2 -2
  71. package/confirmpopup/confirmpopup.cjs.js +2 -2
  72. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  73. package/confirmpopup/confirmpopup.esm.js +2 -2
  74. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  75. package/confirmpopup/confirmpopup.js +2 -2
  76. package/confirmpopup/confirmpopup.min.js +1 -1
  77. package/contextmenu/ContextMenu.vue +1 -0
  78. package/contextmenu/contextmenu.cjs.js +1 -0
  79. package/contextmenu/contextmenu.cjs.min.js +1 -1
  80. package/contextmenu/contextmenu.esm.js +1 -0
  81. package/contextmenu/contextmenu.esm.min.js +1 -1
  82. package/contextmenu/contextmenu.js +1 -0
  83. package/contextmenu/contextmenu.min.js +1 -1
  84. package/core/core.js +276 -132
  85. package/core/core.min.js +22 -22
  86. package/datatable/BaseDataTable.vue +2 -2
  87. package/datatable/BodyRow.vue +578 -0
  88. package/datatable/ColumnFilter.vue +1 -0
  89. package/datatable/DataTable.d.ts +1 -1
  90. package/datatable/DataTable.vue +111 -132
  91. package/datatable/HeaderCell.vue +9 -7
  92. package/datatable/TableBody.vue +74 -414
  93. package/datatable/TableFooter.vue +19 -26
  94. package/datatable/TableHeader.vue +19 -26
  95. package/datatable/datatable.cjs.js +891 -634
  96. package/datatable/datatable.cjs.min.js +1 -1
  97. package/datatable/datatable.esm.js +892 -635
  98. package/datatable/datatable.esm.min.js +1 -1
  99. package/datatable/datatable.js +891 -634
  100. package/datatable/datatable.min.js +1 -1
  101. package/datatable/style/datatablestyle.cjs.js +5 -4
  102. package/datatable/style/datatablestyle.cjs.min.js +1 -1
  103. package/datatable/style/datatablestyle.esm.js +5 -4
  104. package/datatable/style/datatablestyle.esm.min.js +1 -1
  105. package/datatable/style/datatablestyle.js +5 -4
  106. package/datatable/style/datatablestyle.min.js +1 -1
  107. package/dialog/style/dialogstyle.cjs.js +1 -1
  108. package/dialog/style/dialogstyle.cjs.min.js +1 -1
  109. package/dialog/style/dialogstyle.esm.js +1 -1
  110. package/dialog/style/dialogstyle.esm.min.js +1 -1
  111. package/dialog/style/dialogstyle.js +1 -1
  112. package/dialog/style/dialogstyle.min.js +1 -1
  113. package/dock/DockSub.vue +1 -0
  114. package/dock/dock.cjs.js +1 -0
  115. package/dock/dock.cjs.min.js +1 -1
  116. package/dock/dock.esm.js +1 -0
  117. package/dock/dock.esm.min.js +1 -1
  118. package/dock/dock.js +1 -0
  119. package/dock/dock.min.js +1 -1
  120. package/dropdown/Dropdown.vue +26 -0
  121. package/dropdown/dropdown.cjs.js +49 -25
  122. package/dropdown/dropdown.cjs.min.js +1 -1
  123. package/dropdown/dropdown.esm.js +49 -25
  124. package/dropdown/dropdown.esm.min.js +1 -1
  125. package/dropdown/dropdown.js +49 -25
  126. package/dropdown/dropdown.min.js +1 -1
  127. package/fieldset/Fieldset.vue +1 -1
  128. package/fieldset/fieldset.cjs.js +1 -1
  129. package/fieldset/fieldset.cjs.min.js +1 -1
  130. package/fieldset/fieldset.esm.js +1 -1
  131. package/fieldset/fieldset.esm.min.js +1 -1
  132. package/fieldset/fieldset.js +1 -1
  133. package/fieldset/fieldset.min.js +1 -1
  134. package/galleria/GalleriaItem.vue +1 -0
  135. package/galleria/GalleriaThumbnails.vue +1 -1
  136. package/galleria/galleria.cjs.js +2 -1
  137. package/galleria/galleria.cjs.min.js +1 -1
  138. package/galleria/galleria.esm.js +2 -1
  139. package/galleria/galleria.esm.min.js +1 -1
  140. package/galleria/galleria.js +2 -1
  141. package/galleria/galleria.min.js +1 -1
  142. package/icons/sortamountdown/index.cjs.js +10 -7
  143. package/icons/sortamountdown/index.cjs.min.js +1 -1
  144. package/icons/sortamountdown/index.esm.js +11 -8
  145. package/icons/sortamountdown/index.esm.min.js +1 -1
  146. package/icons/sortamountdown/index.js +10 -7
  147. package/icons/sortamountdown/index.min.js +1 -1
  148. package/icons/sortamountdown/index.vue +1 -21
  149. package/icons/sortamountupalt/index.cjs.js +10 -7
  150. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  151. package/icons/sortamountupalt/index.esm.js +11 -8
  152. package/icons/sortamountupalt/index.esm.min.js +1 -1
  153. package/icons/sortamountupalt/index.js +10 -7
  154. package/icons/sortamountupalt/index.min.js +1 -1
  155. package/icons/sortamountupalt/index.vue +1 -21
  156. package/image/Image.vue +2 -6
  157. package/image/image.cjs.js +2 -5
  158. package/image/image.cjs.min.js +1 -1
  159. package/image/image.esm.js +2 -5
  160. package/image/image.esm.min.js +1 -1
  161. package/image/image.js +2 -5
  162. package/image/image.min.js +1 -1
  163. package/image/style/imagestyle.cjs.js +1 -1
  164. package/image/style/imagestyle.cjs.min.js +1 -1
  165. package/image/style/imagestyle.esm.js +1 -1
  166. package/image/style/imagestyle.esm.min.js +1 -1
  167. package/image/style/imagestyle.js +1 -1
  168. package/image/style/imagestyle.min.js +1 -1
  169. package/inputnumber/BaseInputNumber.vue +7 -0
  170. package/inputnumber/InputNumber.d.ts +7 -0
  171. package/inputnumber/InputNumber.vue +4 -3
  172. package/inputnumber/inputnumber.cjs.js +13 -3
  173. package/inputnumber/inputnumber.cjs.min.js +1 -1
  174. package/inputnumber/inputnumber.esm.js +13 -3
  175. package/inputnumber/inputnumber.esm.min.js +1 -1
  176. package/inputnumber/inputnumber.js +13 -3
  177. package/inputnumber/inputnumber.min.js +1 -1
  178. package/knob/Knob.vue +1 -1
  179. package/knob/knob.cjs.js +1 -1
  180. package/knob/knob.cjs.min.js +1 -1
  181. package/knob/knob.esm.js +1 -1
  182. package/knob/knob.esm.min.js +1 -1
  183. package/knob/knob.js +1 -1
  184. package/knob/knob.min.js +1 -1
  185. package/listbox/BaseListbox.vue +1 -1
  186. package/listbox/Listbox.d.ts +1 -1
  187. package/listbox/Listbox.vue +2 -0
  188. package/listbox/listbox.cjs.js +3 -1
  189. package/listbox/listbox.cjs.min.js +1 -1
  190. package/listbox/listbox.esm.js +3 -1
  191. package/listbox/listbox.esm.min.js +1 -1
  192. package/listbox/listbox.js +3 -1
  193. package/listbox/listbox.min.js +1 -1
  194. package/megamenu/MegaMenu.vue +2 -1
  195. package/megamenu/megamenu.cjs.js +2 -1
  196. package/megamenu/megamenu.cjs.min.js +1 -1
  197. package/megamenu/megamenu.esm.js +2 -1
  198. package/megamenu/megamenu.esm.min.js +1 -1
  199. package/megamenu/megamenu.js +2 -1
  200. package/megamenu/megamenu.min.js +1 -1
  201. package/menu/Menu.vue +1 -0
  202. package/menu/menu.cjs.js +1 -0
  203. package/menu/menu.cjs.min.js +1 -1
  204. package/menu/menu.esm.js +1 -0
  205. package/menu/menu.esm.min.js +1 -1
  206. package/menu/menu.js +1 -0
  207. package/menu/menu.min.js +1 -1
  208. package/menubar/Menubar.vue +2 -1
  209. package/menubar/menubar.cjs.js +2 -1
  210. package/menubar/menubar.cjs.min.js +1 -1
  211. package/menubar/menubar.esm.js +2 -1
  212. package/menubar/menubar.esm.min.js +1 -1
  213. package/menubar/menubar.js +2 -1
  214. package/menubar/menubar.min.js +1 -1
  215. package/menuitem/MenuItem.d.ts +0 -6
  216. package/message/style/messagestyle.cjs.js +1 -1
  217. package/message/style/messagestyle.cjs.min.js +1 -1
  218. package/message/style/messagestyle.esm.js +1 -1
  219. package/message/style/messagestyle.esm.min.js +1 -1
  220. package/message/style/messagestyle.js +1 -1
  221. package/message/style/messagestyle.min.js +1 -1
  222. package/multiselect/MultiSelect.vue +2 -0
  223. package/multiselect/multiselect.cjs.js +2 -0
  224. package/multiselect/multiselect.cjs.min.js +1 -1
  225. package/multiselect/multiselect.esm.js +2 -0
  226. package/multiselect/multiselect.esm.min.js +1 -1
  227. package/multiselect/multiselect.js +2 -0
  228. package/multiselect/multiselect.min.js +1 -1
  229. package/orderlist/BaseOrderList.vue +1 -1
  230. package/orderlist/OrderList.d.ts +1 -1
  231. package/orderlist/OrderList.vue +1 -0
  232. package/orderlist/orderlist.cjs.js +2 -1
  233. package/orderlist/orderlist.cjs.min.js +1 -1
  234. package/orderlist/orderlist.esm.js +2 -1
  235. package/orderlist/orderlist.esm.min.js +1 -1
  236. package/orderlist/orderlist.js +2 -1
  237. package/orderlist/orderlist.min.js +1 -1
  238. package/organizationchart/OrganizationChartNode.vue +1 -1
  239. package/organizationchart/organizationchart.cjs.js +1 -1
  240. package/organizationchart/organizationchart.cjs.min.js +1 -1
  241. package/organizationchart/organizationchart.esm.js +1 -1
  242. package/organizationchart/organizationchart.esm.min.js +1 -1
  243. package/organizationchart/organizationchart.js +1 -1
  244. package/organizationchart/organizationchart.min.js +1 -1
  245. package/package.json +1 -1
  246. package/paginator/Paginator.vue +4 -4
  247. package/paginator/paginator.cjs.js +2 -2
  248. package/paginator/paginator.cjs.min.js +1 -1
  249. package/paginator/paginator.esm.js +2 -2
  250. package/paginator/paginator.esm.min.js +1 -1
  251. package/paginator/paginator.js +2 -2
  252. package/paginator/paginator.min.js +1 -1
  253. package/panel/Panel.vue +1 -1
  254. package/panel/panel.cjs.js +1 -1
  255. package/panel/panel.cjs.min.js +1 -1
  256. package/panel/panel.esm.js +1 -1
  257. package/panel/panel.esm.min.js +1 -1
  258. package/panel/panel.js +1 -1
  259. package/panel/panel.min.js +1 -1
  260. package/panelmenu/PanelMenu.vue +1 -0
  261. package/panelmenu/PanelMenuList.vue +1 -0
  262. package/panelmenu/panelmenu.cjs.js +2 -0
  263. package/panelmenu/panelmenu.cjs.min.js +1 -1
  264. package/panelmenu/panelmenu.esm.js +2 -0
  265. package/panelmenu/panelmenu.esm.min.js +1 -1
  266. package/panelmenu/panelmenu.js +2 -0
  267. package/panelmenu/panelmenu.min.js +1 -1
  268. package/picklist/BasePickList.vue +1 -1
  269. package/picklist/PickList.d.ts +1 -1
  270. package/picklist/PickList.vue +2 -1
  271. package/picklist/picklist.cjs.js +3 -2
  272. package/picklist/picklist.cjs.min.js +1 -1
  273. package/picklist/picklist.esm.js +3 -2
  274. package/picklist/picklist.esm.min.js +1 -1
  275. package/picklist/picklist.js +3 -2
  276. package/picklist/picklist.min.js +1 -1
  277. package/picklist/style/pickliststyle.cjs.js +1 -1
  278. package/picklist/style/pickliststyle.cjs.min.js +1 -1
  279. package/picklist/style/pickliststyle.esm.js +1 -1
  280. package/picklist/style/pickliststyle.esm.min.js +1 -1
  281. package/picklist/style/pickliststyle.js +1 -1
  282. package/picklist/style/pickliststyle.min.js +1 -1
  283. package/resources/themes/arya-blue/theme.css +4 -4
  284. package/resources/themes/arya-green/theme.css +4 -4
  285. package/resources/themes/arya-orange/theme.css +4 -4
  286. package/resources/themes/arya-purple/theme.css +4 -4
  287. package/resources/themes/bootstrap4-dark-blue/theme.css +4 -4
  288. package/resources/themes/bootstrap4-dark-purple/theme.css +4 -4
  289. package/resources/themes/bootstrap4-light-blue/theme.css +4 -4
  290. package/resources/themes/bootstrap4-light-purple/theme.css +4 -4
  291. package/resources/themes/fluent-light/theme.css +4 -4
  292. package/resources/themes/lara-dark-amber/theme.css +4 -4
  293. package/resources/themes/lara-dark-blue/theme.css +4 -4
  294. package/resources/themes/lara-dark-cyan/theme.css +4 -4
  295. package/resources/themes/lara-dark-green/theme.css +4 -4
  296. package/resources/themes/lara-dark-indigo/theme.css +4 -4
  297. package/resources/themes/lara-dark-pink/theme.css +4 -4
  298. package/resources/themes/lara-dark-purple/theme.css +4 -4
  299. package/resources/themes/lara-dark-teal/theme.css +4 -4
  300. package/resources/themes/lara-light-amber/theme.css +4 -4
  301. package/resources/themes/lara-light-blue/theme.css +4 -4
  302. package/resources/themes/lara-light-cyan/theme.css +4 -4
  303. package/resources/themes/lara-light-green/theme.css +4 -4
  304. package/resources/themes/lara-light-indigo/theme.css +4 -4
  305. package/resources/themes/lara-light-pink/theme.css +4 -4
  306. package/resources/themes/lara-light-purple/theme.css +4 -4
  307. package/resources/themes/lara-light-teal/theme.css +44 -44
  308. package/resources/themes/luna-amber/theme.css +4 -4
  309. package/resources/themes/luna-blue/theme.css +4 -4
  310. package/resources/themes/luna-green/theme.css +4 -4
  311. package/resources/themes/luna-pink/theme.css +4 -4
  312. package/resources/themes/md-dark-deeppurple/theme.css +4 -4
  313. package/resources/themes/md-dark-indigo/theme.css +4 -4
  314. package/resources/themes/md-light-deeppurple/theme.css +4 -4
  315. package/resources/themes/md-light-indigo/theme.css +4 -4
  316. package/resources/themes/mdc-dark-deeppurple/theme.css +4 -4
  317. package/resources/themes/mdc-dark-indigo/theme.css +4 -4
  318. package/resources/themes/mdc-light-deeppurple/theme.css +4 -4
  319. package/resources/themes/mdc-light-indigo/theme.css +4 -4
  320. package/resources/themes/mira/theme.css +4 -4
  321. package/resources/themes/nano/theme.css +4 -4
  322. package/resources/themes/nova/theme.css +4 -4
  323. package/resources/themes/nova-accent/theme.css +4 -4
  324. package/resources/themes/nova-alt/theme.css +4 -4
  325. package/resources/themes/nova-vue/theme.css +4 -4
  326. package/resources/themes/rhea/theme.css +4 -4
  327. package/resources/themes/saga-blue/theme.css +4 -4
  328. package/resources/themes/saga-green/theme.css +4 -4
  329. package/resources/themes/saga-orange/theme.css +4 -4
  330. package/resources/themes/saga-purple/theme.css +4 -4
  331. package/resources/themes/soho-dark/theme.css +4 -4
  332. package/resources/themes/soho-light/theme.css +4 -4
  333. package/resources/themes/tailwind-light/theme.css +4 -4
  334. package/resources/themes/vela-blue/theme.css +4 -4
  335. package/resources/themes/vela-green/theme.css +4 -4
  336. package/resources/themes/vela-orange/theme.css +4 -4
  337. package/resources/themes/vela-purple/theme.css +4 -4
  338. package/resources/themes/viva-dark/theme.css +4 -4
  339. package/resources/themes/viva-light/theme.css +4 -4
  340. package/ripple/style/ripplestyle.cjs.js +1 -1
  341. package/ripple/style/ripplestyle.cjs.min.js +1 -1
  342. package/ripple/style/ripplestyle.esm.js +1 -1
  343. package/ripple/style/ripplestyle.esm.min.js +1 -1
  344. package/ripple/style/ripplestyle.js +1 -1
  345. package/ripple/style/ripplestyle.min.js +1 -1
  346. package/row/Row.vue +7 -0
  347. package/row/row.cjs.js +9 -0
  348. package/row/row.cjs.min.js +1 -1
  349. package/row/row.esm.js +9 -0
  350. package/row/row.esm.min.js +1 -1
  351. package/row/row.js +9 -0
  352. package/row/row.min.js +1 -1
  353. package/slider/Slider.vue +26 -19
  354. package/slider/slider.cjs.js +19 -11
  355. package/slider/slider.cjs.min.js +1 -1
  356. package/slider/slider.esm.js +19 -11
  357. package/slider/slider.esm.min.js +1 -1
  358. package/slider/slider.js +19 -11
  359. package/slider/slider.min.js +1 -1
  360. package/speeddial/SpeedDial.vue +1 -0
  361. package/speeddial/speeddial.cjs.js +1 -0
  362. package/speeddial/speeddial.cjs.min.js +1 -1
  363. package/speeddial/speeddial.esm.js +1 -0
  364. package/speeddial/speeddial.esm.min.js +1 -1
  365. package/speeddial/speeddial.js +1 -0
  366. package/speeddial/speeddial.min.js +1 -1
  367. package/steps/Steps.vue +1 -0
  368. package/steps/steps.cjs.js +1 -0
  369. package/steps/steps.cjs.min.js +1 -1
  370. package/steps/steps.esm.js +1 -0
  371. package/steps/steps.esm.min.js +1 -1
  372. package/steps/steps.js +1 -0
  373. package/steps/steps.min.js +1 -1
  374. package/tabmenu/TabMenu.vue +1 -0
  375. package/tabmenu/tabmenu.cjs.js +1 -0
  376. package/tabmenu/tabmenu.cjs.min.js +1 -1
  377. package/tabmenu/tabmenu.esm.js +1 -0
  378. package/tabmenu/tabmenu.esm.min.js +1 -1
  379. package/tabmenu/tabmenu.js +1 -0
  380. package/tabmenu/tabmenu.min.js +1 -1
  381. package/tabview/TabView.vue +1 -0
  382. package/tabview/tabview.cjs.js +1 -0
  383. package/tabview/tabview.cjs.min.js +1 -1
  384. package/tabview/tabview.esm.js +1 -0
  385. package/tabview/tabview.esm.min.js +1 -1
  386. package/tabview/tabview.js +1 -0
  387. package/tabview/tabview.min.js +1 -1
  388. package/terminal/Terminal.vue +1 -1
  389. package/terminal/terminal.cjs.js +1 -1
  390. package/terminal/terminal.cjs.min.js +1 -1
  391. package/terminal/terminal.esm.js +1 -1
  392. package/terminal/terminal.esm.min.js +1 -1
  393. package/terminal/terminal.js +1 -1
  394. package/terminal/terminal.min.js +1 -1
  395. package/tieredmenu/TieredMenu.vue +1 -0
  396. package/tieredmenu/tieredmenu.cjs.js +1 -0
  397. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  398. package/tieredmenu/tieredmenu.esm.js +1 -0
  399. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  400. package/tieredmenu/tieredmenu.js +1 -0
  401. package/tieredmenu/tieredmenu.min.js +1 -1
  402. package/tree/BaseTree.vue +1 -1
  403. package/tree/Tree.d.ts +1 -1
  404. package/tree/Tree.vue +1 -1
  405. package/tree/TreeNode.vue +1 -0
  406. package/tree/tree.cjs.js +3 -2
  407. package/tree/tree.cjs.min.js +1 -1
  408. package/tree/tree.esm.js +3 -2
  409. package/tree/tree.esm.min.js +1 -1
  410. package/tree/tree.js +3 -2
  411. package/tree/tree.min.js +1 -1
  412. package/treeselect/BaseTreeSelect.vue +1 -1
  413. package/treeselect/TreeSelect.d.ts +1 -1
  414. package/treeselect/TreeSelect.vue +1 -0
  415. package/treeselect/treeselect.cjs.js +2 -1
  416. package/treeselect/treeselect.cjs.min.js +1 -1
  417. package/treeselect/treeselect.esm.js +2 -1
  418. package/treeselect/treeselect.esm.min.js +1 -1
  419. package/treeselect/treeselect.js +2 -1
  420. package/treeselect/treeselect.min.js +1 -1
  421. package/treetable/BaseTreeTable.vue +5 -1
  422. package/treetable/HeaderCell.vue +1 -1
  423. package/treetable/TreeTable.d.ts +6 -1
  424. package/treetable/TreeTable.vue +32 -24
  425. package/treetable/TreeTableRow.vue +32 -20
  426. package/treetable/style/treetablestyle.cjs.js +1 -1
  427. package/treetable/style/treetablestyle.cjs.min.js +1 -1
  428. package/treetable/style/treetablestyle.esm.js +1 -1
  429. package/treetable/style/treetablestyle.esm.min.js +1 -1
  430. package/treetable/style/treetablestyle.js +1 -1
  431. package/treetable/style/treetablestyle.min.js +1 -1
  432. package/treetable/treetable.cjs.js +70 -43
  433. package/treetable/treetable.cjs.min.js +1 -1
  434. package/treetable/treetable.esm.js +71 -44
  435. package/treetable/treetable.esm.min.js +1 -1
  436. package/treetable/treetable.js +70 -43
  437. package/treetable/treetable.min.js +1 -1
  438. package/tristatecheckbox/TriStateCheckbox.vue +1 -1
  439. package/tristatecheckbox/tristatecheckbox.cjs.js +1 -1
  440. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  441. package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
  442. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  443. package/tristatecheckbox/tristatecheckbox.js +1 -1
  444. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  445. package/utils/Utils.d.ts +9 -0
  446. package/utils/utils.cjs.js +142 -41
  447. package/utils/utils.cjs.min.js +1 -1
  448. package/utils/utils.esm.js +142 -42
  449. package/utils/utils.esm.min.js +1 -1
  450. package/utils/utils.js +142 -41
  451. package/utils/utils.min.js +1 -1
  452. package/vetur-attributes.json +4 -0
  453. package/vetur-tags.json +1 -0
  454. package/virtualscroller/VirtualScroller.vue +19 -15
  455. package/virtualscroller/style/virtualscrollerstyle.cjs.js +1 -1
  456. package/virtualscroller/style/virtualscrollerstyle.cjs.min.js +1 -1
  457. package/virtualscroller/style/virtualscrollerstyle.esm.js +1 -1
  458. package/virtualscroller/style/virtualscrollerstyle.esm.min.js +1 -1
  459. package/virtualscroller/style/virtualscrollerstyle.js +1 -1
  460. package/virtualscroller/style/virtualscrollerstyle.min.js +1 -1
  461. package/virtualscroller/virtualscroller.cjs.js +19 -15
  462. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  463. package/virtualscroller/virtualscroller.esm.js +19 -15
  464. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  465. package/virtualscroller/virtualscroller.js +19 -15
  466. package/virtualscroller/virtualscroller.min.js +1 -1
  467. package/web-types.json +11 -1
@@ -3,7 +3,7 @@ import ArrowDownIcon from 'primevue/icons/arrowdown';
3
3
  import ArrowUpIcon from 'primevue/icons/arrowup';
4
4
  import SpinnerIcon from 'primevue/icons/spinner';
5
5
  import Paginator from 'primevue/paginator';
6
- import { DomHandler, ObjectUtils, UniqueComponentId, ZIndexUtils, ConnectedOverlayScrollHandler } from 'primevue/utils';
6
+ import { DomHandler, ObjectUtils, UniqueComponentId, HelperSet, ZIndexUtils, ConnectedOverlayScrollHandler } from 'primevue/utils';
7
7
  import VirtualScroller from 'primevue/virtualscroller';
8
8
  import BaseComponent from 'primevue/basecomponent';
9
9
  import DataTableStyle from 'primevue/datatable/style';
@@ -28,7 +28,7 @@ import SortAltIcon from 'primevue/icons/sortalt';
28
28
  import SortAmountDownIcon from 'primevue/icons/sortamountdown';
29
29
  import SortAmountUpAltIcon from 'primevue/icons/sortamountupalt';
30
30
 
31
- var script$b = {
31
+ var script$c = {
32
32
  name: 'BaseDataTable',
33
33
  "extends": BaseComponent,
34
34
  props: {
@@ -150,7 +150,7 @@ var script$b = {
150
150
  },
151
151
  metaKeySelection: {
152
152
  type: Boolean,
153
- "default": true
153
+ "default": false
154
154
  },
155
155
  contextMenu: {
156
156
  type: Boolean,
@@ -193,7 +193,7 @@ var script$b = {
193
193
  "default": false
194
194
  },
195
195
  expandedRows: {
196
- type: Array,
196
+ type: [Array, Object],
197
197
  "default": null
198
198
  },
199
199
  expandedRowIcon: {
@@ -305,7 +305,7 @@ var script$b = {
305
305
  }
306
306
  };
307
307
 
308
- var script$a = {
308
+ var script$b = {
309
309
  name: 'RowCheckbox',
310
310
  hostName: 'DataTable',
311
311
  "extends": BaseComponent,
@@ -389,7 +389,7 @@ var script$a = {
389
389
  };
390
390
 
391
391
  var _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
392
- function render$a(_ctx, _cache, $props, $setup, $data, $options) {
392
+ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
393
393
  var _component_CheckIcon = resolveComponent("CheckIcon");
394
394
  return openBlock(), createElementBlock("div", mergeProps({
395
395
  "class": _ctx.cx('checkboxWrapper'),
@@ -429,9 +429,9 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
429
429
  }, $options.getColumnPT('checkboxIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 16)], 16);
430
430
  }
431
431
 
432
- script$a.render = render$a;
432
+ script$b.render = render$b;
433
433
 
434
- var script$9 = {
434
+ var script$a = {
435
435
  name: 'RowRadioButton',
436
436
  hostName: 'DataTable',
437
437
  "extends": BaseComponent,
@@ -496,7 +496,7 @@ var script$9 = {
496
496
  };
497
497
 
498
498
  var _hoisted_1$6 = ["checked", "disabled", "name"];
499
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
499
+ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
500
500
  return openBlock(), createElementBlock("div", mergeProps({
501
501
  "class": _ctx.cx('radiobuttonWrapper'),
502
502
  onClick: _cache[3] || (_cache[3] = function () {
@@ -530,9 +530,9 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
530
530
  }, $options.getColumnPT('radiobuttonIcon')), null, 16)], 16)], 16);
531
531
  }
532
532
 
533
- script$9.render = render$9;
533
+ script$a.render = render$a;
534
534
 
535
- var script$8 = {
535
+ var script$9 = {
536
536
  name: 'BodyCell',
537
537
  hostName: 'DataTable',
538
538
  "extends": BaseComponent,
@@ -984,8 +984,8 @@ var script$8 = {
984
984
  }
985
985
  },
986
986
  components: {
987
- DTRadioButton: script$9,
988
- DTCheckbox: script$a,
987
+ DTRadioButton: script$a,
988
+ DTCheckbox: script$b,
989
989
  ChevronDownIcon: ChevronDownIcon,
990
990
  ChevronRightIcon: ChevronRightIcon,
991
991
  BarsIcon: BarsIcon,
@@ -998,18 +998,18 @@ var script$8 = {
998
998
  }
999
999
  };
1000
1000
 
1001
- function _typeof$9(o) { "@babel/helpers - typeof"; return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$9(o); }
1002
- function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1003
- function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty$9(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1004
- function _defineProperty$9(obj, key, value) { key = _toPropertyKey$9(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1005
- function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : String(i); }
1006
- function _toPrimitive$9(t, r) { if ("object" != _typeof$9(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$9(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1001
+ function _typeof$a(o) { "@babel/helpers - typeof"; return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$a(o); }
1002
+ function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1003
+ function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty$a(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1004
+ function _defineProperty$a(obj, key, value) { key = _toPropertyKey$a(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1005
+ function _toPropertyKey$a(t) { var i = _toPrimitive$a(t, "string"); return "symbol" == _typeof$a(i) ? i : String(i); }
1006
+ function _toPrimitive$a(t, r) { if ("object" != _typeof$a(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$a(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1007
1007
  var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
1008
1008
  var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
1009
1009
  var _hoisted_3$2 = ["aria-label"];
1010
1010
  var _hoisted_4$1 = ["aria-label"];
1011
1011
  var _hoisted_5$1 = ["aria-label"];
1012
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1012
+ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
1013
1013
  var _component_DTRadioButton = resolveComponent("DTRadioButton");
1014
1014
  var _component_DTCheckbox = resolveComponent("DTCheckbox");
1015
1015
  var _component_BarsIcon = resolveComponent("BarsIcon");
@@ -1021,7 +1021,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1021
1021
  style: $options.containerStyle,
1022
1022
  "class": $options.containerClass,
1023
1023
  role: "cell"
1024
- }, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.column.children.loading), {
1024
+ }, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.column.children.loading), {
1025
1025
  data: $props.rowData,
1026
1026
  column: $props.column,
1027
1027
  field: $options.field,
@@ -1041,7 +1041,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1041
1041
  return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1042
1042
  }),
1043
1043
  role: "cell"
1044
- }, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1044
+ }, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1045
1045
  "data-p-selection-column": $options.columnProp('selectionMode') != null,
1046
1046
  "data-p-editable-column": $options.isEditable(),
1047
1047
  "data-p-cell-editing": $data.d_editing,
@@ -1184,14 +1184,28 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1184
1184
  }, [createTextVNode(toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$5));
1185
1185
  }
1186
1186
 
1187
- script$8.render = render$8;
1187
+ script$9.render = render$9;
1188
1188
 
1189
- var script$7 = {
1190
- name: 'TableBody',
1189
+ function _typeof$9(o) { "@babel/helpers - typeof"; return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$9(o); }
1190
+ function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1191
+ function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty$9(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1192
+ function _defineProperty$9(obj, key, value) { key = _toPropertyKey$9(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1193
+ function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : String(i); }
1194
+ function _toPrimitive$9(t, r) { if ("object" != _typeof$9(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$9(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1195
+ var script$8 = {
1196
+ name: 'BodyRow',
1191
1197
  hostName: 'DataTable',
1192
1198
  "extends": BaseComponent,
1193
1199
  emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown', 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle', 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
1194
1200
  props: {
1201
+ rowData: {
1202
+ type: Object,
1203
+ "default": null
1204
+ },
1205
+ index: {
1206
+ type: Number,
1207
+ "default": 0
1208
+ },
1195
1209
  value: {
1196
1210
  type: Array,
1197
1211
  "default": null
@@ -1241,11 +1255,7 @@ var script$7 = {
1241
1255
  "default": null
1242
1256
  },
1243
1257
  expandedRows: {
1244
- type: Array,
1245
- "default": null
1246
- },
1247
- expandedRowKeys: {
1248
- type: null,
1258
+ type: [Array, Object],
1249
1259
  "default": null
1250
1260
  },
1251
1261
  selection: {
@@ -1276,6 +1286,10 @@ var script$7 = {
1276
1286
  type: null,
1277
1287
  "default": null
1278
1288
  },
1289
+ rowGroupHeaderStyle: {
1290
+ type: null,
1291
+ "default": null
1292
+ },
1279
1293
  editMode: {
1280
1294
  type: String,
1281
1295
  "default": null
@@ -1315,35 +1329,34 @@ var script$7 = {
1315
1329
  isVirtualScrollerDisabled: {
1316
1330
  type: Boolean,
1317
1331
  "default": false
1332
+ },
1333
+ expandedRowId: {
1334
+ type: String,
1335
+ "default": null
1336
+ },
1337
+ nameAttributeSelector: {
1338
+ type: String,
1339
+ "default": null
1318
1340
  }
1319
1341
  },
1320
1342
  data: function data() {
1321
1343
  return {
1322
- rowGroupHeaderStyleObject: {},
1323
- tabindexArray: [],
1324
- isARowSelected: false
1344
+ d_rowExpanded: false
1325
1345
  };
1326
1346
  },
1327
- mounted: function mounted() {
1328
- if (this.frozenRow) {
1329
- this.updateFrozenRowStickyPosition();
1330
- }
1331
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1332
- this.updateFrozenRowGroupHeaderStickyPosition();
1333
- }
1334
- },
1335
- updated: function updated() {
1336
- if (this.frozenRow) {
1337
- this.updateFrozenRowStickyPosition();
1338
- }
1339
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1340
- this.updateFrozenRowGroupHeaderStickyPosition();
1347
+ watch: {
1348
+ expandedRows: function expandedRows(newValue) {
1349
+ var _this = this;
1350
+ this.d_rowExpanded = this.dataKey ? (newValue === null || newValue === void 0 ? void 0 : newValue[ObjectUtils.resolveFieldData(this.rowData, this.dataKey)]) !== undefined : newValue === null || newValue === void 0 ? void 0 : newValue.some(function (d) {
1351
+ return _this.equals(_this.rowData, d);
1352
+ });
1341
1353
  }
1342
1354
  },
1343
1355
  methods: {
1344
1356
  columnProp: function columnProp(col, prop) {
1345
1357
  return ObjectUtils.getVNodeProp(col, prop);
1346
1358
  },
1359
+ //@todo - update this method
1347
1360
  getColumnPT: function getColumnPT(key) {
1348
1361
  var columnMetaData = {
1349
1362
  parent: {
@@ -1354,80 +1367,33 @@ var script$7 = {
1354
1367
  };
1355
1368
  return mergeProps(this.ptm("column.".concat(key), {
1356
1369
  column: columnMetaData
1357
- }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp({}), key, columnMetaData));
1370
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.columnProp({}, 'pt'), key, columnMetaData));
1358
1371
  },
1359
- getColumnProp: function getColumnProp(column) {
1360
- return column.props && column.props.pt ? column.props.pt : undefined; //@todo
1361
- },
1362
- getBodyRowPTOptions: function getBodyRowPTOptions(key, rowdata, index) {
1363
- var _this$$parentInstance, _this$$parentInstance2, _this$$parentInstance3;
1372
+ //@todo - update this method
1373
+ getBodyRowPTOptions: function getBodyRowPTOptions(key) {
1374
+ var _this$$parentInstance;
1375
+ var datatable = (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.$parentInstance;
1364
1376
  return this.ptm(key, {
1365
1377
  context: {
1366
- index: index,
1367
- selectable: ((_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.rowHover) || ((_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.selectionMode),
1368
- selected: this.isSelected(rowdata),
1369
- stripedRows: ((_this$$parentInstance3 = this.$parentInstance) === null || _this$$parentInstance3 === void 0 || (_this$$parentInstance3 = _this$$parentInstance3.$parentInstance) === null || _this$$parentInstance3 === void 0 ? void 0 : _this$$parentInstance3.stripedRows) || false
1378
+ index: this.rowIndex,
1379
+ selectable: (datatable === null || datatable === void 0 ? void 0 : datatable.rowHover) || (datatable === null || datatable === void 0 ? void 0 : datatable.selectionMode),
1380
+ selected: this.isSelected,
1381
+ stripedRows: (datatable === null || datatable === void 0 ? void 0 : datatable.stripedRows) || false
1370
1382
  }
1371
1383
  });
1372
1384
  },
1373
- shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader(value, rowData, i) {
1374
- var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1375
- var prevRowData = value[i - 1];
1376
- if (prevRowData) {
1377
- var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
1378
- return currentRowFieldData !== previousRowFieldData;
1379
- } else {
1380
- return true;
1381
- }
1382
- },
1383
- getRowKey: function getRowKey(rowData, index) {
1384
- return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
1385
- },
1386
- getRowIndex: function getRowIndex(index) {
1387
- var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
1388
- return getItemOptions ? getItemOptions(index).index : index;
1389
- },
1390
- getRowStyle: function getRowStyle(rowData) {
1391
- if (this.rowStyle) {
1392
- return this.rowStyle(rowData);
1393
- }
1394
- },
1395
- getRowClass: function getRowClass(rowData) {
1396
- var rowStyleClass = [];
1397
- if (this.rowClass) {
1398
- var rowClassValue = this.rowClass(rowData);
1399
- if (rowClassValue) {
1400
- rowStyleClass.push(rowClassValue);
1401
- }
1402
- }
1403
- return [this.cx('row', {
1404
- rowData: rowData
1405
- }), rowStyleClass];
1406
- },
1407
- shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter(value, rowData, i) {
1408
- if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
1409
- return false;
1410
- } else {
1411
- var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1412
- var nextRowData = value[i + 1];
1413
- if (nextRowData) {
1414
- var nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
1415
- return currentRowFieldData !== nextRowFieldData;
1416
- } else {
1417
- return true;
1418
- }
1419
- }
1420
- },
1421
- shouldRenderBodyCell: function shouldRenderBodyCell(value, column, i) {
1422
- if (this.rowGroupMode) {
1385
+ shouldRenderBodyCell: function shouldRenderBodyCell(column) {
1386
+ var isHidden = this.columnProp(column, 'hidden');
1387
+ if (this.rowGroupMode && !isHidden) {
1388
+ var field = this.columnProp(column, 'field');
1423
1389
  if (this.rowGroupMode === 'subheader') {
1424
- return this.groupRowsBy !== this.columnProp(column, 'field');
1390
+ return this.groupRowsBy !== field;
1425
1391
  } else if (this.rowGroupMode === 'rowspan') {
1426
1392
  if (this.isGrouped(column)) {
1427
- var prevRowData = value[i - 1];
1393
+ var prevRowData = this.value[this.rowIndex - 1];
1428
1394
  if (prevRowData) {
1429
- var currentRowFieldData = ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
1430
- var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.columnProp(column, 'field'));
1395
+ var currentRowFieldData = ObjectUtils.resolveFieldData(this.value[this.rowIndex], field);
1396
+ var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, field);
1431
1397
  return currentRowFieldData !== previousRowFieldData;
1432
1398
  } else {
1433
1399
  return true;
@@ -1437,19 +1403,21 @@ var script$7 = {
1437
1403
  }
1438
1404
  }
1439
1405
  } else {
1440
- return !this.columnProp(column, 'hidden');
1406
+ return !isHidden;
1441
1407
  }
1442
1408
  },
1443
- calculateRowGroupSize: function calculateRowGroupSize(value, column, index) {
1409
+ calculateRowGroupSize: function calculateRowGroupSize(column) {
1444
1410
  if (this.isGrouped(column)) {
1445
- var currentRowFieldData = ObjectUtils.resolveFieldData(value[index], this.columnProp(column, 'field'));
1411
+ var index = this.rowIndex;
1412
+ var field = this.columnProp(column, 'field');
1413
+ var currentRowFieldData = ObjectUtils.resolveFieldData(this.value[index], field);
1446
1414
  var nextRowFieldData = currentRowFieldData;
1447
1415
  var groupRowSpan = 0;
1448
1416
  while (currentRowFieldData === nextRowFieldData) {
1449
1417
  groupRowSpan++;
1450
- var nextRowData = value[++index];
1418
+ var nextRowData = this.value[++index];
1451
1419
  if (nextRowData) {
1452
- nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
1420
+ nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, field);
1453
1421
  } else {
1454
1422
  break;
1455
1423
  }
@@ -1460,55 +1428,21 @@ var script$7 = {
1460
1428
  }
1461
1429
  },
1462
1430
  isGrouped: function isGrouped(column) {
1463
- if (this.groupRowsBy && this.columnProp(column, 'field')) {
1464
- if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(column.props.field) > -1;else return this.groupRowsBy === column.props.field;
1431
+ var field = this.columnProp(column, 'field');
1432
+ if (this.groupRowsBy && field) {
1433
+ if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(field) > -1;else return this.groupRowsBy === field;
1465
1434
  } else {
1466
1435
  return false;
1467
1436
  }
1468
1437
  },
1469
- isRowEditing: function isRowEditing(rowData) {
1470
- if (rowData && this.editingRows) {
1471
- if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.editingRows) > -1;
1472
- }
1473
- return false;
1474
- },
1475
- isRowExpanded: function isRowExpanded(rowData) {
1476
- if (rowData && this.expandedRows) {
1477
- if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.expandedRows) > -1;
1478
- }
1479
- return false;
1480
- },
1481
- isRowGroupExpanded: function isRowGroupExpanded(rowData) {
1482
- if (this.expandableRowGroups && this.expandedRowGroups) {
1483
- var groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1484
- return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
1485
- }
1486
- return false;
1438
+ findIndexInSelection: function findIndexInSelection(data) {
1439
+ return this.findIndex(data, this.selection);
1487
1440
  },
1488
- isSelected: function isSelected(rowData) {
1489
- if (rowData && this.selection) {
1490
- if (this.dataKey) {
1491
- return this.selectionKeys ? this.selectionKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
1492
- } else {
1493
- if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);
1494
- }
1495
- }
1496
- return false;
1497
- },
1498
- isSelectedWithContextMenu: function isSelectedWithContextMenu(rowData) {
1499
- if (rowData && this.contextMenuSelection) {
1500
- return this.equals(rowData, this.contextMenuSelection, this.dataKey);
1501
- }
1502
- return false;
1503
- },
1504
- findIndexInSelection: function findIndexInSelection(rowData) {
1505
- return this.findIndex(rowData, this.selection);
1506
- },
1507
- findIndex: function findIndex(rowData, collection) {
1441
+ findIndex: function findIndex(data, collection) {
1508
1442
  var index = -1;
1509
1443
  if (collection && collection.length) {
1510
1444
  for (var i = 0; i < collection.length; i++) {
1511
- if (this.equals(rowData, collection[i])) {
1445
+ if (this.equals(data, collection[i])) {
1512
1446
  index = i;
1513
1447
  break;
1514
1448
  }
@@ -1519,56 +1453,56 @@ var script$7 = {
1519
1453
  equals: function equals(data1, data2) {
1520
1454
  return this.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.dataKey);
1521
1455
  },
1522
- onRowGroupToggle: function onRowGroupToggle(event, data) {
1456
+ onRowGroupToggle: function onRowGroupToggle(event) {
1523
1457
  this.$emit('rowgroup-toggle', {
1524
1458
  originalEvent: event,
1525
- data: data
1459
+ data: this.rowData
1526
1460
  });
1527
1461
  },
1528
- onRowClick: function onRowClick(event, rowData, rowIndex) {
1462
+ onRowClick: function onRowClick(event) {
1529
1463
  this.$emit('row-click', {
1530
1464
  originalEvent: event,
1531
- data: rowData,
1532
- index: rowIndex
1465
+ data: this.rowData,
1466
+ index: this.rowIndex
1533
1467
  });
1534
1468
  },
1535
- onRowDblClick: function onRowDblClick(event, rowData, rowIndex) {
1469
+ onRowDblClick: function onRowDblClick(event) {
1536
1470
  this.$emit('row-dblclick', {
1537
1471
  originalEvent: event,
1538
- data: rowData,
1539
- index: rowIndex
1472
+ data: this.rowData,
1473
+ index: this.rowIndex
1540
1474
  });
1541
1475
  },
1542
- onRowRightClick: function onRowRightClick(event, rowData, rowIndex) {
1476
+ onRowRightClick: function onRowRightClick(event) {
1543
1477
  this.$emit('row-rightclick', {
1544
1478
  originalEvent: event,
1545
- data: rowData,
1546
- index: rowIndex
1479
+ data: this.rowData,
1480
+ index: this.rowIndex
1547
1481
  });
1548
1482
  },
1549
1483
  onRowTouchEnd: function onRowTouchEnd(event) {
1550
1484
  this.$emit('row-touchend', event);
1551
1485
  },
1552
- onRowKeyDown: function onRowKeyDown(event, rowData, rowIndex) {
1486
+ onRowKeyDown: function onRowKeyDown(event) {
1553
1487
  this.$emit('row-keydown', {
1554
1488
  originalEvent: event,
1555
- data: rowData,
1556
- index: rowIndex
1489
+ data: this.rowData,
1490
+ index: this.rowIndex
1557
1491
  });
1558
1492
  },
1559
1493
  onRowMouseDown: function onRowMouseDown(event) {
1560
1494
  this.$emit('row-mousedown', event);
1561
1495
  },
1562
- onRowDragStart: function onRowDragStart(event, rowIndex) {
1496
+ onRowDragStart: function onRowDragStart(event) {
1563
1497
  this.$emit('row-dragstart', {
1564
1498
  originalEvent: event,
1565
- index: rowIndex
1499
+ index: this.rowIndex
1566
1500
  });
1567
1501
  },
1568
- onRowDragOver: function onRowDragOver(event, rowIndex) {
1502
+ onRowDragOver: function onRowDragOver(event) {
1569
1503
  this.$emit('row-dragover', {
1570
1504
  originalEvent: event,
1571
- index: rowIndex
1505
+ index: this.rowIndex
1572
1506
  });
1573
1507
  },
1574
1508
  onRowDragLeave: function onRowDragLeave(event) {
@@ -1581,7 +1515,10 @@ var script$7 = {
1581
1515
  this.$emit('row-drop', event);
1582
1516
  },
1583
1517
  onRowToggle: function onRowToggle(event) {
1584
- this.$emit('row-toggle', event);
1518
+ this.d_rowExpanded = !this.d_rowExpanded;
1519
+ this.$emit('row-toggle', _objectSpread$9(_objectSpread$9({}, event), {}, {
1520
+ expanded: this.d_rowExpanded
1521
+ }));
1585
1522
  },
1586
1523
  onRadioChange: function onRadioChange(event) {
1587
1524
  this.$emit('radio-change', event);
@@ -1610,6 +1547,420 @@ var script$7 = {
1610
1547
  onEditingMetaChange: function onEditingMetaChange(event) {
1611
1548
  this.$emit('editing-meta-change', event);
1612
1549
  },
1550
+ getVirtualScrollerProp: function getVirtualScrollerProp(option, options) {
1551
+ options = options || this.virtualScrollerContentProps;
1552
+ return options ? options[option] : null;
1553
+ }
1554
+ },
1555
+ computed: {
1556
+ rowIndex: function rowIndex() {
1557
+ var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
1558
+ return getItemOptions ? getItemOptions(this.index).index : this.index;
1559
+ },
1560
+ rowStyles: function rowStyles() {
1561
+ var _this$rowStyle;
1562
+ return (_this$rowStyle = this.rowStyle) === null || _this$rowStyle === void 0 ? void 0 : _this$rowStyle.call(this, this.rowData);
1563
+ },
1564
+ rowClasses: function rowClasses() {
1565
+ var rowStyleClass = [];
1566
+ if (this.rowClass) {
1567
+ var rowClassValue = this.rowClass(this.rowData);
1568
+ if (rowClassValue) {
1569
+ rowStyleClass.push(rowClassValue);
1570
+ }
1571
+ }
1572
+ return [this.cx('row', {
1573
+ rowData: this.rowData,
1574
+ index: this.rowIndex
1575
+ }), rowStyleClass];
1576
+ },
1577
+ rowTabindex: function rowTabindex() {
1578
+ if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
1579
+ return this.rowIndex === 0 ? 0 : -1;
1580
+ }
1581
+ return -1;
1582
+ },
1583
+ isRowEditing: function isRowEditing() {
1584
+ if (this.rowData && this.editingRows) {
1585
+ if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;else return this.findIndex(this.rowData, this.editingRows) > -1;
1586
+ }
1587
+ return false;
1588
+ },
1589
+ isRowGroupExpanded: function isRowGroupExpanded() {
1590
+ if (this.expandableRowGroups && this.expandedRowGroups) {
1591
+ var groupFieldValue = ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1592
+ return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
1593
+ }
1594
+ return false;
1595
+ },
1596
+ isSelected: function isSelected() {
1597
+ if (this.rowData && this.selection) {
1598
+ if (this.dataKey) {
1599
+ return this.selectionKeys ? this.selectionKeys[ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;
1600
+ } else {
1601
+ if (this.selection instanceof Array) return this.findIndexInSelection(this.rowData) > -1;else return this.equals(this.rowData, this.selection);
1602
+ }
1603
+ }
1604
+ return false;
1605
+ },
1606
+ isSelectedWithContextMenu: function isSelectedWithContextMenu() {
1607
+ if (this.rowData && this.contextMenuSelection) {
1608
+ return this.equals(this.rowData, this.contextMenuSelection, this.dataKey);
1609
+ }
1610
+ return false;
1611
+ },
1612
+ shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader() {
1613
+ var currentRowFieldData = ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1614
+ var prevRowData = this.value[this.rowIndex - 1];
1615
+ if (prevRowData) {
1616
+ var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
1617
+ return currentRowFieldData !== previousRowFieldData;
1618
+ } else {
1619
+ return true;
1620
+ }
1621
+ },
1622
+ shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter() {
1623
+ if (this.expandableRowGroups && !this.isRowGroupExpanded) {
1624
+ return false;
1625
+ } else {
1626
+ var currentRowFieldData = ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1627
+ var nextRowData = this.value[this.rowIndex + 1];
1628
+ if (nextRowData) {
1629
+ var nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
1630
+ return currentRowFieldData !== nextRowFieldData;
1631
+ } else {
1632
+ return true;
1633
+ }
1634
+ }
1635
+ },
1636
+ columnsLength: function columnsLength() {
1637
+ var _this2 = this;
1638
+ var hiddenColLength = 0;
1639
+ this.columns.forEach(function (column) {
1640
+ if (_this2.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
1641
+ if (_this2.columnProp(column, 'hidden')) hiddenColLength++;
1642
+ });
1643
+ return this.columns ? this.columns.length - hiddenColLength : 0;
1644
+ }
1645
+ },
1646
+ components: {
1647
+ DTBodyCell: script$9,
1648
+ ChevronDownIcon: ChevronDownIcon,
1649
+ ChevronRightIcon: ChevronRightIcon
1650
+ }
1651
+ };
1652
+
1653
+ function _typeof$8(o) { "@babel/helpers - typeof"; return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$8(o); }
1654
+ function ownKeys$8(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; }
1655
+ function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty$8(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1656
+ function _defineProperty$8(obj, key, value) { key = _toPropertyKey$8(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1657
+ function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
1658
+ function _toPrimitive$8(t, r) { if ("object" != _typeof$8(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$8(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1659
+ var _hoisted_1$4 = ["colspan"];
1660
+ var _hoisted_2$1 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
1661
+ var _hoisted_3$1 = ["id"];
1662
+ var _hoisted_4 = ["colspan"];
1663
+ var _hoisted_5 = ["colspan"];
1664
+ var _hoisted_6 = ["colspan"];
1665
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1666
+ var _component_ChevronDownIcon = resolveComponent("ChevronDownIcon");
1667
+ var _component_ChevronRightIcon = resolveComponent("ChevronRightIcon");
1668
+ var _component_DTBodyCell = resolveComponent("DTBodyCell");
1669
+ return !$props.empty ? (openBlock(), createElementBlock(Fragment, {
1670
+ key: 0
1671
+ }, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader ? (openBlock(), createElementBlock("tr", mergeProps({
1672
+ key: 0,
1673
+ "class": _ctx.cx('rowGroupHeader'),
1674
+ style: $props.rowGroupHeaderStyle,
1675
+ role: "row"
1676
+ }, _ctx.ptm('rowGroupHeader')), [createElementVNode("td", mergeProps({
1677
+ colspan: $options.columnsLength - 1
1678
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (openBlock(), createElementBlock("button", mergeProps({
1679
+ key: 0,
1680
+ "class": _ctx.cx('rowGroupToggler'),
1681
+ onClick: _cache[0] || (_cache[0] = function () {
1682
+ return $options.onRowGroupToggle && $options.onRowGroupToggle.apply($options, arguments);
1683
+ }),
1684
+ type: "button"
1685
+ }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1686
+ key: 0,
1687
+ expanded: $options.isRowGroupExpanded
1688
+ }, null, 8, ["expanded"])) : (openBlock(), createElementBlock(Fragment, {
1689
+ key: 1
1690
+ }, [$options.isRowGroupExpanded && $props.expandedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
1691
+ key: 0,
1692
+ "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1693
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded && !$props.expandedRowIcon ? (openBlock(), createBlock(_component_ChevronDownIcon, mergeProps({
1694
+ key: 1,
1695
+ "class": _ctx.cx('rowGroupTogglerIcon')
1696
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded && $props.collapsedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
1697
+ key: 2,
1698
+ "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1699
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded && !$props.collapsedRowIcon ? (openBlock(), createBlock(_component_ChevronRightIcon, mergeProps({
1700
+ key: 3,
1701
+ "class": _ctx.cx('rowGroupTogglerIcon')
1702
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 64))], 16)) : createCommentVNode("", true), (openBlock(), createBlock(resolveDynamicComponent($props.templates['groupheader']), {
1703
+ data: $props.rowData,
1704
+ index: $options.rowIndex
1705
+ }, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (openBlock(), createElementBlock("tr", mergeProps({
1706
+ key: 1,
1707
+ "class": $options.rowClasses,
1708
+ style: $options.rowStyles,
1709
+ tabindex: $options.rowTabindex,
1710
+ role: "row",
1711
+ "aria-selected": $props.selectionMode ? $options.isSelected : null,
1712
+ onClick: _cache[1] || (_cache[1] = function () {
1713
+ return $options.onRowClick && $options.onRowClick.apply($options, arguments);
1714
+ }),
1715
+ onDblclick: _cache[2] || (_cache[2] = function () {
1716
+ return $options.onRowDblClick && $options.onRowDblClick.apply($options, arguments);
1717
+ }),
1718
+ onContextmenu: _cache[3] || (_cache[3] = function () {
1719
+ return $options.onRowRightClick && $options.onRowRightClick.apply($options, arguments);
1720
+ }),
1721
+ onTouchend: _cache[4] || (_cache[4] = function () {
1722
+ return $options.onRowTouchEnd && $options.onRowTouchEnd.apply($options, arguments);
1723
+ }),
1724
+ onKeydown: _cache[5] || (_cache[5] = withModifiers(function () {
1725
+ return $options.onRowKeyDown && $options.onRowKeyDown.apply($options, arguments);
1726
+ }, ["self"])),
1727
+ onMousedown: _cache[6] || (_cache[6] = function () {
1728
+ return $options.onRowMouseDown && $options.onRowMouseDown.apply($options, arguments);
1729
+ }),
1730
+ onDragstart: _cache[7] || (_cache[7] = function () {
1731
+ return $options.onRowDragStart && $options.onRowDragStart.apply($options, arguments);
1732
+ }),
1733
+ onDragover: _cache[8] || (_cache[8] = function () {
1734
+ return $options.onRowDragOver && $options.onRowDragOver.apply($options, arguments);
1735
+ }),
1736
+ onDragleave: _cache[9] || (_cache[9] = function () {
1737
+ return $options.onRowDragLeave && $options.onRowDragLeave.apply($options, arguments);
1738
+ }),
1739
+ onDragend: _cache[10] || (_cache[10] = function () {
1740
+ return $options.onRowDragEnd && $options.onRowDragEnd.apply($options, arguments);
1741
+ }),
1742
+ onDrop: _cache[11] || (_cache[11] = function () {
1743
+ return $options.onRowDrop && $options.onRowDrop.apply($options, arguments);
1744
+ })
1745
+ }, $options.getBodyRowPTOptions('bodyRow'), {
1746
+ "data-p-index": $options.rowIndex,
1747
+ "data-p-selectable-row": $props.selectionMode ? true : false,
1748
+ "data-p-highlight": $props.selection && $options.isSelected,
1749
+ "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu
1750
+ }), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, function (col, i) {
1751
+ return openBlock(), createElementBlock(Fragment, null, [$options.shouldRenderBodyCell(col) ? (openBlock(), createBlock(_component_DTBodyCell, {
1752
+ key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
1753
+ rowData: $props.rowData,
1754
+ column: col,
1755
+ rowIndex: $options.rowIndex,
1756
+ index: i,
1757
+ selected: $options.isSelected,
1758
+ frozenRow: $props.frozenRow,
1759
+ rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize(col) : null,
1760
+ editMode: $props.editMode,
1761
+ editing: $props.editMode === 'row' && $options.isRowEditing,
1762
+ editingMeta: $props.editingMeta,
1763
+ responsiveLayout: $props.responsiveLayout,
1764
+ virtualScrollerContentProps: $props.virtualScrollerContentProps,
1765
+ ariaControls: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
1766
+ name: $props.nameAttributeSelector,
1767
+ isRowExpanded: $data.d_rowExpanded,
1768
+ expandedRowIcon: $props.expandedRowIcon,
1769
+ collapsedRowIcon: $props.collapsedRowIcon,
1770
+ onRadioChange: $options.onRadioChange,
1771
+ onCheckboxChange: $options.onCheckboxChange,
1772
+ onRowToggle: $options.onRowToggle,
1773
+ onCellEditInit: $options.onCellEditInit,
1774
+ onCellEditComplete: $options.onCellEditComplete,
1775
+ onCellEditCancel: $options.onCellEditCancel,
1776
+ onRowEditInit: $options.onRowEditInit,
1777
+ onRowEditSave: $options.onRowEditSave,
1778
+ onRowEditCancel: $options.onRowEditCancel,
1779
+ onEditingMetaChange: $options.onEditingMetaChange,
1780
+ unstyled: _ctx.unstyled,
1781
+ pt: _ctx.pt
1782
+ }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onRadioChange", "onCheckboxChange", "onRowToggle", "onCellEditInit", "onCellEditComplete", "onCellEditCancel", "onRowEditInit", "onRowEditSave", "onRowEditCancel", "onEditingMetaChange", "unstyled", "pt"])) : createCommentVNode("", true)], 64);
1783
+ }), 256))], 16, _hoisted_2$1)) : createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (openBlock(), createElementBlock("tr", mergeProps({
1784
+ key: 2,
1785
+ id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
1786
+ "class": _ctx.cx('rowExpansion'),
1787
+ role: "row"
1788
+ }, _ctx.ptm('rowExpansion')), [createElementVNode("td", mergeProps({
1789
+ colspan: $options.columnsLength
1790
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['expansion']), {
1791
+ data: $props.rowData,
1792
+ index: $options.rowIndex
1793
+ }, null, 8, ["data", "index"]))], 16, _hoisted_4)], 16, _hoisted_3$1)) : createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter ? (openBlock(), createElementBlock("tr", mergeProps({
1794
+ key: 3,
1795
+ "class": _ctx.cx('rowGroupFooter'),
1796
+ role: "row"
1797
+ }, _ctx.ptm('rowGroupFooter')), [createElementVNode("td", mergeProps({
1798
+ colspan: $options.columnsLength - 1
1799
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
1800
+ data: $props.rowData,
1801
+ index: $options.rowIndex
1802
+ }, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16)) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("tr", mergeProps({
1803
+ key: 1,
1804
+ "class": _ctx.cx('emptyMessage'),
1805
+ role: "row"
1806
+ }, _ctx.ptm('emptyMessage')), [createElementVNode("td", mergeProps({
1807
+ colspan: $options.columnsLength
1808
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.empty), {
1809
+ key: 0
1810
+ })) : createCommentVNode("", true)], 16, _hoisted_6)], 16));
1811
+ }
1812
+
1813
+ script$8.render = render$8;
1814
+
1815
+ var script$7 = {
1816
+ name: 'TableBody',
1817
+ hostName: 'DataTable',
1818
+ "extends": BaseComponent,
1819
+ emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown', 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle', 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
1820
+ props: {
1821
+ value: {
1822
+ type: Array,
1823
+ "default": null
1824
+ },
1825
+ columns: {
1826
+ type: null,
1827
+ "default": null
1828
+ },
1829
+ frozenRow: {
1830
+ type: Boolean,
1831
+ "default": false
1832
+ },
1833
+ empty: {
1834
+ type: Boolean,
1835
+ "default": false
1836
+ },
1837
+ rowGroupMode: {
1838
+ type: String,
1839
+ "default": null
1840
+ },
1841
+ groupRowsBy: {
1842
+ type: [Array, String, Function],
1843
+ "default": null
1844
+ },
1845
+ expandableRowGroups: {
1846
+ type: Boolean,
1847
+ "default": false
1848
+ },
1849
+ expandedRowGroups: {
1850
+ type: Array,
1851
+ "default": null
1852
+ },
1853
+ first: {
1854
+ type: Number,
1855
+ "default": 0
1856
+ },
1857
+ dataKey: {
1858
+ type: [String, Function],
1859
+ "default": null
1860
+ },
1861
+ expandedRowIcon: {
1862
+ type: String,
1863
+ "default": null
1864
+ },
1865
+ collapsedRowIcon: {
1866
+ type: String,
1867
+ "default": null
1868
+ },
1869
+ expandedRows: {
1870
+ type: [Array, Object],
1871
+ "default": null
1872
+ },
1873
+ selection: {
1874
+ type: [Array, Object],
1875
+ "default": null
1876
+ },
1877
+ selectionKeys: {
1878
+ type: null,
1879
+ "default": null
1880
+ },
1881
+ selectionMode: {
1882
+ type: String,
1883
+ "default": null
1884
+ },
1885
+ contextMenu: {
1886
+ type: Boolean,
1887
+ "default": false
1888
+ },
1889
+ contextMenuSelection: {
1890
+ type: Object,
1891
+ "default": null
1892
+ },
1893
+ rowClass: {
1894
+ type: null,
1895
+ "default": null
1896
+ },
1897
+ rowStyle: {
1898
+ type: null,
1899
+ "default": null
1900
+ },
1901
+ editMode: {
1902
+ type: String,
1903
+ "default": null
1904
+ },
1905
+ compareSelectionBy: {
1906
+ type: String,
1907
+ "default": 'deepEquals'
1908
+ },
1909
+ editingRows: {
1910
+ type: Array,
1911
+ "default": null
1912
+ },
1913
+ editingRowKeys: {
1914
+ type: null,
1915
+ "default": null
1916
+ },
1917
+ editingMeta: {
1918
+ type: Object,
1919
+ "default": null
1920
+ },
1921
+ templates: {
1922
+ type: null,
1923
+ "default": null
1924
+ },
1925
+ scrollable: {
1926
+ type: Boolean,
1927
+ "default": false
1928
+ },
1929
+ responsiveLayout: {
1930
+ type: String,
1931
+ "default": 'stack'
1932
+ },
1933
+ virtualScrollerContentProps: {
1934
+ type: Object,
1935
+ "default": null
1936
+ },
1937
+ isVirtualScrollerDisabled: {
1938
+ type: Boolean,
1939
+ "default": false
1940
+ }
1941
+ },
1942
+ data: function data() {
1943
+ return {
1944
+ rowGroupHeaderStyleObject: {}
1945
+ };
1946
+ },
1947
+ mounted: function mounted() {
1948
+ if (this.frozenRow) {
1949
+ this.updateFrozenRowStickyPosition();
1950
+ }
1951
+ if (this.scrollable && this.rowGroupMode === 'subheader') {
1952
+ this.updateFrozenRowGroupHeaderStickyPosition();
1953
+ }
1954
+ },
1955
+ updated: function updated() {
1956
+ if (this.frozenRow) {
1957
+ this.updateFrozenRowStickyPosition();
1958
+ }
1959
+ if (this.scrollable && this.rowGroupMode === 'subheader') {
1960
+ this.updateFrozenRowGroupHeaderStickyPosition();
1961
+ }
1962
+ },
1963
+ methods: {
1613
1964
  updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
1614
1965
  this.$el.style.top = DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
1615
1966
  },
@@ -1625,24 +1976,9 @@ var script$7 = {
1625
1976
  // For VirtualScroller
1626
1977
  var contentRef = this.getVirtualScrollerProp('contentRef');
1627
1978
  contentRef && contentRef(el);
1628
- },
1629
- setRowTabindex: function setRowTabindex(index) {
1630
- if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
1631
- return index === 0 ? 0 : -1;
1632
- }
1633
- return -1;
1634
1979
  }
1635
1980
  },
1636
1981
  computed: {
1637
- columnsLength: function columnsLength() {
1638
- var _this = this;
1639
- var hiddenColLength = 0;
1640
- this.columns.forEach(function (column) {
1641
- if (_this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
1642
- if (_this.columnProp(column, 'hidden')) hiddenColLength++;
1643
- });
1644
- return this.columns ? this.columns.length - hiddenColLength : 0;
1645
- },
1646
1982
  rowGroupHeaderStyle: function rowGroupHeaderStyle() {
1647
1983
  if (this.scrollable) {
1648
1984
  return {
@@ -1651,48 +1987,31 @@ var script$7 = {
1651
1987
  }
1652
1988
  return null;
1653
1989
  },
1654
- bodyStyle: function bodyStyle() {
1655
- return this.getVirtualScrollerProp('contentStyle');
1656
- },
1657
- expandedRowId: function expandedRowId() {
1658
- return UniqueComponentId();
1659
- },
1660
- nameAttributeSelector: function nameAttributeSelector() {
1661
- return UniqueComponentId();
1662
- },
1990
+ bodyStyle: function bodyStyle() {
1991
+ return this.getVirtualScrollerProp('contentStyle');
1992
+ },
1663
1993
  ptmTBodyOptions: function ptmTBodyOptions() {
1664
- var _this$$parentInstance4;
1994
+ var _this$$parentInstance;
1665
1995
  return {
1666
1996
  context: {
1667
- scrollable: (_this$$parentInstance4 = this.$parentInstance) === null || _this$$parentInstance4 === void 0 || (_this$$parentInstance4 = _this$$parentInstance4.$parentInstance) === null || _this$$parentInstance4 === void 0 ? void 0 : _this$$parentInstance4.scrollable
1997
+ scrollable: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.scrollable
1668
1998
  }
1669
1999
  };
2000
+ },
2001
+ expandedRowId: function expandedRowId() {
2002
+ return UniqueComponentId();
2003
+ },
2004
+ nameAttributeSelector: function nameAttributeSelector() {
2005
+ return UniqueComponentId();
1670
2006
  }
1671
2007
  },
1672
2008
  components: {
1673
- DTBodyCell: script$8,
1674
- ChevronDownIcon: ChevronDownIcon,
1675
- ChevronRightIcon: ChevronRightIcon
2009
+ DTBodyRow: script$8
1676
2010
  }
1677
2011
  };
1678
2012
 
1679
- function _typeof$8(o) { "@babel/helpers - typeof"; return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$8(o); }
1680
- function ownKeys$8(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; }
1681
- function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty$8(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1682
- function _defineProperty$8(obj, key, value) { key = _toPropertyKey$8(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1683
- function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
1684
- function _toPrimitive$8(t, r) { if ("object" != _typeof$8(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$8(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1685
- var _hoisted_1$4 = ["colspan"];
1686
- var _hoisted_2$1 = ["onClick"];
1687
- var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
1688
- var _hoisted_4 = ["id"];
1689
- var _hoisted_5 = ["colspan"];
1690
- var _hoisted_6 = ["colspan"];
1691
- var _hoisted_7 = ["colspan"];
1692
2013
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1693
- var _component_ChevronDownIcon = resolveComponent("ChevronDownIcon");
1694
- var _component_ChevronRightIcon = resolveComponent("ChevronRightIcon");
1695
- var _component_DTBodyCell = resolveComponent("DTBodyCell");
2014
+ var _component_DTBodyRow = resolveComponent("DTBodyRow");
1696
2015
  return openBlock(), createElementBlock("tbody", mergeProps({
1697
2016
  ref: $options.bodyRef,
1698
2017
  "class": _ctx.cx('tbody'),
@@ -1700,165 +2019,119 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1700
2019
  style: $options.bodyStyle
1701
2020
  }, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (openBlock(true), createElementBlock(Fragment, {
1702
2021
  key: 0
1703
- }, renderList($props.value, function (rowData, index) {
1704
- return openBlock(), createElementBlock(Fragment, null, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)) ? (openBlock(), createElementBlock("tr", mergeProps({
1705
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader',
1706
- "class": _ctx.cx('rowGroupHeader'),
1707
- style: $options.rowGroupHeaderStyle,
1708
- role: "row"
1709
- }, _ctx.ptm('rowGroupHeader')), [createElementVNode("td", mergeProps({
1710
- colspan: $options.columnsLength - 1
1711
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (openBlock(), createElementBlock("button", mergeProps({
1712
- key: 0,
1713
- "class": _ctx.cx('rowGroupToggler'),
1714
- onClick: function onClick($event) {
1715
- return $options.onRowGroupToggle($event, rowData);
1716
- },
1717
- type: "button"
1718
- }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1719
- key: 0,
1720
- expanded: $options.isRowGroupExpanded(rowData)
1721
- }, null, 8, ["expanded"])) : (openBlock(), createElementBlock(Fragment, {
1722
- key: 1
1723
- }, [$options.isRowGroupExpanded(rowData) && $props.expandedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
1724
- key: 0,
1725
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1726
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (openBlock(), createBlock(_component_ChevronDownIcon, mergeProps({
1727
- key: 1,
1728
- "class": _ctx.cx('rowGroupTogglerIcon')
1729
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
1730
- key: 2,
1731
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1732
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (openBlock(), createBlock(_component_ChevronRightIcon, mergeProps({
1733
- key: 3,
1734
- "class": _ctx.cx('rowGroupTogglerIcon')
1735
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 64))], 16, _hoisted_2$1)) : createCommentVNode("", true), (openBlock(), createBlock(resolveDynamicComponent($props.templates['groupheader']), {
1736
- data: rowData,
1737
- index: $options.getRowIndex(index)
1738
- }, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true) ? (openBlock(), createElementBlock("tr", mergeProps({
1739
- key: $options.getRowKey(rowData, $options.getRowIndex(index)),
1740
- "class": $options.getRowClass(rowData),
1741
- style: $options.getRowStyle(rowData),
1742
- tabindex: $options.setRowTabindex(index),
1743
- role: "row",
1744
- "aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
1745
- onClick: function onClick($event) {
1746
- return $options.onRowClick($event, rowData, $options.getRowIndex(index));
1747
- },
1748
- onDblclick: function onDblclick($event) {
1749
- return $options.onRowDblClick($event, rowData, $options.getRowIndex(index));
1750
- },
1751
- onContextmenu: function onContextmenu($event) {
1752
- return $options.onRowRightClick($event, rowData, $options.getRowIndex(index));
1753
- },
1754
- onTouchend: _cache[9] || (_cache[9] = function ($event) {
1755
- return $options.onRowTouchEnd($event);
2022
+ }, renderList($props.value, function (rowData, rowIndex) {
2023
+ return openBlock(), createBlock(_component_DTBodyRow, {
2024
+ key: rowIndex,
2025
+ rowData: rowData,
2026
+ index: rowIndex,
2027
+ value: $props.value,
2028
+ columns: $props.columns,
2029
+ frozenRow: $props.frozenRow,
2030
+ empty: $props.empty,
2031
+ first: $props.first,
2032
+ dataKey: $props.dataKey,
2033
+ selection: $props.selection,
2034
+ selectionKeys: $props.selectionKeys,
2035
+ selectionMode: $props.selectionMode,
2036
+ contextMenu: $props.contextMenu,
2037
+ contextMenuSelection: $props.contextMenuSelection,
2038
+ rowGroupMode: $props.rowGroupMode,
2039
+ groupRowsBy: $props.groupRowsBy,
2040
+ expandableRowGroups: $props.expandableRowGroups,
2041
+ rowClass: $props.rowClass,
2042
+ rowStyle: $props.rowStyle,
2043
+ editMode: $props.editMode,
2044
+ compareSelectionBy: $props.compareSelectionBy,
2045
+ scrollable: $props.scrollable,
2046
+ expandedRowIcon: $props.expandedRowIcon,
2047
+ collapsedRowIcon: $props.collapsedRowIcon,
2048
+ expandedRows: $props.expandedRows,
2049
+ expandedRowGroups: $props.expandedRowGroups,
2050
+ editingRows: $props.editingRows,
2051
+ editingRowKeys: $props.editingRowKeys,
2052
+ templates: $props.templates,
2053
+ responsiveLayout: $props.responsiveLayout,
2054
+ virtualScrollerContentProps: $props.virtualScrollerContentProps,
2055
+ isVirtualScrollerDisabled: $props.isVirtualScrollerDisabled,
2056
+ editingMeta: $props.editingMeta,
2057
+ rowGroupHeaderStyle: $options.rowGroupHeaderStyle,
2058
+ expandedRowId: $options.expandedRowId,
2059
+ nameAttributeSelector: $options.nameAttributeSelector,
2060
+ onRowgroupToggle: _cache[0] || (_cache[0] = function ($event) {
2061
+ return _ctx.$emit('rowgroup-toggle', $event);
1756
2062
  }),
1757
- onKeydown: withModifiers(function ($event) {
1758
- return $options.onRowKeyDown($event, rowData, $options.getRowIndex(index));
1759
- }, ["self"]),
1760
- onMousedown: _cache[10] || (_cache[10] = function ($event) {
1761
- return $options.onRowMouseDown($event);
2063
+ onRowClick: _cache[1] || (_cache[1] = function ($event) {
2064
+ return _ctx.$emit('row-click', $event);
1762
2065
  }),
1763
- onDragstart: function onDragstart($event) {
1764
- return $options.onRowDragStart($event, $options.getRowIndex(index));
1765
- },
1766
- onDragover: function onDragover($event) {
1767
- return $options.onRowDragOver($event, $options.getRowIndex(index));
1768
- },
1769
- onDragleave: _cache[11] || (_cache[11] = function ($event) {
1770
- return $options.onRowDragLeave($event);
2066
+ onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
2067
+ return _ctx.$emit('row-dblclick', $event);
1771
2068
  }),
1772
- onDragend: _cache[12] || (_cache[12] = function ($event) {
1773
- return $options.onRowDragEnd($event);
2069
+ onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
2070
+ return _ctx.$emit('row-rightclick', $event);
1774
2071
  }),
1775
- onDrop: _cache[13] || (_cache[13] = function ($event) {
1776
- return $options.onRowDrop($event);
1777
- })
1778
- }, $options.getBodyRowPTOptions('bodyRow', rowData, index), {
1779
- "data-p-selectable-row": $props.selectionMode ? true : false,
1780
- "data-p-highlight": $props.selection && $options.isSelected(rowData),
1781
- "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu(rowData)
1782
- }), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, function (col, i) {
1783
- return openBlock(), createElementBlock(Fragment, null, [$options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)) ? (openBlock(), createBlock(_component_DTBodyCell, {
1784
- key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
1785
- rowData: rowData,
1786
- column: col,
1787
- rowIndex: $options.getRowIndex(index),
1788
- index: i,
1789
- selected: $options.isSelected(rowData),
1790
- frozenRow: $props.frozenRow,
1791
- rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
1792
- editMode: $props.editMode,
1793
- editing: $props.editMode === 'row' && $options.isRowEditing(rowData),
1794
- editingMeta: $props.editingMeta,
1795
- responsiveLayout: $props.responsiveLayout,
1796
- virtualScrollerContentProps: $props.virtualScrollerContentProps,
1797
- ariaControls: $options.expandedRowId + '_' + index + '_expansion',
1798
- name: $options.nameAttributeSelector,
1799
- isRowExpanded: $options.isRowExpanded(rowData),
1800
- expandedRowIcon: $props.expandedRowIcon,
1801
- collapsedRowIcon: $props.collapsedRowIcon,
1802
- onRadioChange: _cache[0] || (_cache[0] = function ($event) {
1803
- return $options.onRadioChange($event);
1804
- }),
1805
- onCheckboxChange: _cache[1] || (_cache[1] = function ($event) {
1806
- return $options.onCheckboxChange($event);
1807
- }),
1808
- onRowToggle: _cache[2] || (_cache[2] = function ($event) {
1809
- return $options.onRowToggle($event);
1810
- }),
1811
- onCellEditInit: _cache[3] || (_cache[3] = function ($event) {
1812
- return $options.onCellEditInit($event);
1813
- }),
1814
- onCellEditComplete: _cache[4] || (_cache[4] = function ($event) {
1815
- return $options.onCellEditComplete($event);
1816
- }),
1817
- onCellEditCancel: _cache[5] || (_cache[5] = function ($event) {
1818
- return $options.onCellEditCancel($event);
1819
- }),
1820
- onRowEditInit: _cache[6] || (_cache[6] = function ($event) {
1821
- return $options.onRowEditInit($event);
1822
- }),
1823
- onRowEditSave: _cache[7] || (_cache[7] = function ($event) {
1824
- return $options.onRowEditSave($event);
1825
- }),
1826
- onRowEditCancel: _cache[8] || (_cache[8] = function ($event) {
1827
- return $options.onRowEditCancel($event);
1828
- }),
1829
- onEditingMetaChange: $options.onEditingMetaChange,
1830
- unstyled: _ctx.unstyled,
1831
- pt: _ctx.pt
1832
- }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onEditingMetaChange", "unstyled", "pt"])) : createCommentVNode("", true)], 64);
1833
- }), 256))], 16, _hoisted_3$1)) : createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData) ? (openBlock(), createElementBlock("tr", mergeProps({
1834
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
1835
- id: $options.expandedRowId + '_' + index + '_expansion',
1836
- "class": _ctx.cx('rowExpansion'),
1837
- role: "row"
1838
- }, _ctx.ptm('rowExpansion')), [createElementVNode("td", mergeProps({
1839
- colspan: $options.columnsLength
1840
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['expansion']), {
1841
- data: rowData,
1842
- index: $options.getRowIndex(index)
1843
- }, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16, _hoisted_4)) : createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)) ? (openBlock(), createElementBlock("tr", mergeProps({
1844
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
1845
- "class": _ctx.cx('rowGroupFooter'),
1846
- role: "row"
1847
- }, _ctx.ptm('rowGroupFooter')), [createElementVNode("td", mergeProps({
1848
- colspan: $options.columnsLength - 1
1849
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
1850
- data: rowData,
1851
- index: $options.getRowIndex(index)
1852
- }, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : createCommentVNode("", true)], 64);
1853
- }), 256)) : (openBlock(), createElementBlock("tr", mergeProps({
2072
+ onRowTouchend: _cache[4] || (_cache[4] = function ($event) {
2073
+ return _ctx.$emit('row-touchend', $event);
2074
+ }),
2075
+ onRowKeydown: _cache[5] || (_cache[5] = function ($event) {
2076
+ return _ctx.$emit('row-keydown', $event);
2077
+ }),
2078
+ onRowMousedown: _cache[6] || (_cache[6] = function ($event) {
2079
+ return _ctx.$emit('row-mousedown', $event);
2080
+ }),
2081
+ onRowDragstart: _cache[7] || (_cache[7] = function ($event) {
2082
+ return _ctx.$emit('row-dragstart', $event);
2083
+ }),
2084
+ onRowDragover: _cache[8] || (_cache[8] = function ($event) {
2085
+ return _ctx.$emit('row-dragover', $event);
2086
+ }),
2087
+ onRowDragleave: _cache[9] || (_cache[9] = function ($event) {
2088
+ return _ctx.$emit('row-dragleave', $event);
2089
+ }),
2090
+ onRowDragend: _cache[10] || (_cache[10] = function ($event) {
2091
+ return _ctx.$emit('row-dragend', $event);
2092
+ }),
2093
+ onRowDrop: _cache[11] || (_cache[11] = function ($event) {
2094
+ return _ctx.$emit('row-drop', $event);
2095
+ }),
2096
+ onRowToggle: _cache[12] || (_cache[12] = function ($event) {
2097
+ return _ctx.$emit('row-toggle', $event);
2098
+ }),
2099
+ onRadioChange: _cache[13] || (_cache[13] = function ($event) {
2100
+ return _ctx.$emit('radio-change', $event);
2101
+ }),
2102
+ onCheckboxChange: _cache[14] || (_cache[14] = function ($event) {
2103
+ return _ctx.$emit('checkbox-change', $event);
2104
+ }),
2105
+ onCellEditInit: _cache[15] || (_cache[15] = function ($event) {
2106
+ return _ctx.$emit('cell-edit-init', $event);
2107
+ }),
2108
+ onCellEditComplete: _cache[16] || (_cache[16] = function ($event) {
2109
+ return _ctx.$emit('cell-edit-complete', $event);
2110
+ }),
2111
+ onCellEditCancel: _cache[17] || (_cache[17] = function ($event) {
2112
+ return _ctx.$emit('cell-edit-cancel', $event);
2113
+ }),
2114
+ onRowEditInit: _cache[18] || (_cache[18] = function ($event) {
2115
+ return _ctx.$emit('row-edit-init', $event);
2116
+ }),
2117
+ onRowEditSave: _cache[19] || (_cache[19] = function ($event) {
2118
+ return _ctx.$emit('row-edit-save', $event);
2119
+ }),
2120
+ onRowEditCancel: _cache[20] || (_cache[20] = function ($event) {
2121
+ return _ctx.$emit('row-edit-cancel', $event);
2122
+ }),
2123
+ onEditingMetaChange: _cache[21] || (_cache[21] = function ($event) {
2124
+ return _ctx.$emit('editing-meta-change', $event);
2125
+ }),
2126
+ unstyled: _ctx.unstyled,
2127
+ pt: _ctx.pt
2128
+ }, null, 8, ["rowData", "index", "value", "columns", "frozenRow", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "editingMeta", "rowGroupHeaderStyle", "expandedRowId", "nameAttributeSelector", "unstyled", "pt"]);
2129
+ }), 128)) : (openBlock(), createBlock(_component_DTBodyRow, {
1854
2130
  key: 1,
1855
- "class": _ctx.cx('emptyMessage'),
1856
- role: "row"
1857
- }, _ctx.ptm('emptyMessage')), [createElementVNode("td", mergeProps({
1858
- colspan: $options.columnsLength
1859
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.empty), {
1860
- key: 0
1861
- })) : createCommentVNode("", true)], 16, _hoisted_7)], 16))], 16);
2131
+ empty: $props.empty,
2132
+ columns: $props.columns,
2133
+ templates: $props.templates
2134
+ }, null, 8, ["empty", "columns", "templates"]))], 16);
1862
2135
  }
1863
2136
 
1864
2137
  script$7.render = render$7;
@@ -1975,13 +2248,9 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1975
2248
 
1976
2249
  script$6.render = render$6;
1977
2250
 
1978
- function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2(); }
1979
- function _nonIterableSpread$2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1980
- function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
1981
- function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
1982
- function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1983
- function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
1984
- function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2251
+ function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
2252
+ function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
2253
+ function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
1985
2254
  var script$5 = {
1986
2255
  name: 'TableFooter',
1987
2256
  hostName: 'DataTable',
@@ -1996,6 +2265,26 @@ var script$5 = {
1996
2265
  "default": null
1997
2266
  }
1998
2267
  },
2268
+ provide: function provide() {
2269
+ return {
2270
+ $rows: this.d_footerRows,
2271
+ $columns: this.d_footerColumns
2272
+ };
2273
+ },
2274
+ data: function data() {
2275
+ return {
2276
+ d_footerRows: new HelperSet({
2277
+ type: 'Row'
2278
+ }),
2279
+ d_footerColumns: new HelperSet({
2280
+ type: 'Column'
2281
+ })
2282
+ };
2283
+ },
2284
+ beforeUnmount: function beforeUnmount() {
2285
+ this.d_footerRows.clear();
2286
+ this.d_footerColumns.clear();
2287
+ },
1999
2288
  methods: {
2000
2289
  columnProp: function columnProp(col, prop) {
2001
2290
  return ObjectUtils.getVNodeProp(col, prop);
@@ -2040,36 +2329,12 @@ var script$5 = {
2040
2329
  return row.props && row.props.pt ? row.props.pt : undefined; //@todo
2041
2330
  },
2042
2331
  getFooterRows: function getFooterRows() {
2043
- var rows = [];
2044
- var columnGroup = this.columnGroup;
2045
- if (columnGroup.children && columnGroup.children["default"]) {
2046
- var _iterator = _createForOfIteratorHelper$2(columnGroup.children["default"]()),
2047
- _step;
2048
- try {
2049
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2050
- var child = _step.value;
2051
- if (child.type.name === 'Row') {
2052
- rows.push(child);
2053
- } else if (child.children && child.children instanceof Array) {
2054
- rows = child.children;
2055
- }
2056
- }
2057
- } catch (err) {
2058
- _iterator.e(err);
2059
- } finally {
2060
- _iterator.f();
2061
- }
2062
- return rows;
2063
- }
2332
+ var _this$d_footerRows;
2333
+ return (_this$d_footerRows = this.d_footerRows) === null || _this$d_footerRows === void 0 ? void 0 : _this$d_footerRows.get(this.columnGroup, this.columnGroup.children);
2064
2334
  },
2065
2335
  getFooterColumns: function getFooterColumns(row) {
2066
- var cols = [];
2067
- if (row.children && row.children["default"]) {
2068
- row.children["default"]().forEach(function (child) {
2069
- if (child.children && child.children instanceof Array) cols = [].concat(_toConsumableArray$2(cols), _toConsumableArray$2(child.children));else if (child.type.name === 'Column') cols.push(child);
2070
- });
2071
- return cols;
2072
- }
2336
+ var _this$d_footerColumns;
2337
+ return (_this$d_footerColumns = this.d_footerColumns) === null || _this$d_footerColumns === void 0 ? void 0 : _this$d_footerColumns.get(row, row.children);
2073
2338
  }
2074
2339
  },
2075
2340
  computed: {
@@ -2078,20 +2343,20 @@ var script$5 = {
2078
2343
  if (this.columnGroup) {
2079
2344
  hasFooter = true;
2080
2345
  } else if (this.columns) {
2081
- var _iterator2 = _createForOfIteratorHelper$2(this.columns),
2082
- _step2;
2346
+ var _iterator = _createForOfIteratorHelper$1(this.columns),
2347
+ _step;
2083
2348
  try {
2084
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2085
- var col = _step2.value;
2349
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2350
+ var col = _step.value;
2086
2351
  if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
2087
2352
  hasFooter = true;
2088
2353
  break;
2089
2354
  }
2090
2355
  }
2091
2356
  } catch (err) {
2092
- _iterator2.e(err);
2357
+ _iterator.e(err);
2093
2358
  } finally {
2094
- _iterator2.f();
2359
+ _iterator.f();
2095
2360
  }
2096
2361
  }
2097
2362
  return hasFooter;
@@ -2381,6 +2646,7 @@ var script$4 = {
2381
2646
  onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
2382
2647
  switch (event.code) {
2383
2648
  case 'Enter':
2649
+ case 'NumpadEnter':
2384
2650
  case 'Space':
2385
2651
  this.toggleMenu(event);
2386
2652
  break;
@@ -3182,7 +3448,7 @@ var script$2 = {
3182
3448
  });
3183
3449
  },
3184
3450
  onKeyDown: function onKeyDown(event) {
3185
- if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
3451
+ if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
3186
3452
  this.$emit('column-click', {
3187
3453
  originalEvent: event,
3188
3454
  column: this.column
@@ -3197,16 +3463,28 @@ var script$2 = {
3197
3463
  });
3198
3464
  },
3199
3465
  onDragStart: function onDragStart(event) {
3200
- this.$emit('column-dragstart', event);
3466
+ this.$emit('column-dragstart', {
3467
+ originalEvent: event,
3468
+ column: this.column
3469
+ });
3201
3470
  },
3202
3471
  onDragOver: function onDragOver(event) {
3203
- this.$emit('column-dragover', event);
3472
+ this.$emit('column-dragover', {
3473
+ originalEvent: event,
3474
+ column: this.column
3475
+ });
3204
3476
  },
3205
3477
  onDragLeave: function onDragLeave(event) {
3206
- this.$emit('column-dragleave', event);
3478
+ this.$emit('column-dragleave', {
3479
+ originalEvent: event,
3480
+ column: this.column
3481
+ });
3207
3482
  },
3208
3483
  onDrop: function onDrop(event) {
3209
- this.$emit('column-drop', event);
3484
+ this.$emit('column-drop', {
3485
+ originalEvent: event,
3486
+ column: this.column
3487
+ });
3210
3488
  },
3211
3489
  onResizeStart: function onResizeStart(event) {
3212
3490
  this.$emit('column-resizestart', event);
@@ -3248,8 +3526,10 @@ var script$2 = {
3248
3526
  var filterRow = this.$el.parentElement.nextElementSibling;
3249
3527
  if (filterRow) {
3250
3528
  var index = DomHandler.index(this.$el);
3251
- filterRow.children[index].style.left = this.styleObject.left;
3252
- filterRow.children[index].style.right = this.styleObject.right;
3529
+ if (filterRow.children[index]) {
3530
+ filterRow.children[index].style.left = this.styleObject.left;
3531
+ filterRow.children[index].style.right = this.styleObject.right;
3532
+ }
3253
3533
  }
3254
3534
  }
3255
3535
  },
@@ -3446,13 +3726,6 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
3446
3726
 
3447
3727
  script$2.render = render$2;
3448
3728
 
3449
- function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
3450
- function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3451
- function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
3452
- function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
3453
- function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
3454
- function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
3455
- function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
3456
3729
  var script$1 = {
3457
3730
  name: 'TableHeader',
3458
3731
  hostName: 'DataTable',
@@ -3528,6 +3801,26 @@ var script$1 = {
3528
3801
  "default": null
3529
3802
  }
3530
3803
  },
3804
+ provide: function provide() {
3805
+ return {
3806
+ $rows: this.d_headerRows,
3807
+ $columns: this.d_headerColumns
3808
+ };
3809
+ },
3810
+ data: function data() {
3811
+ return {
3812
+ d_headerRows: new HelperSet({
3813
+ type: 'Row'
3814
+ }),
3815
+ d_headerColumns: new HelperSet({
3816
+ type: 'Column'
3817
+ })
3818
+ };
3819
+ },
3820
+ beforeUnmount: function beforeUnmount() {
3821
+ this.d_headerRows.clear();
3822
+ this.d_headerColumns.clear();
3823
+ },
3531
3824
  methods: {
3532
3825
  columnProp: function columnProp(col, prop) {
3533
3826
  return ObjectUtils.getVNodeProp(col, prop);
@@ -3600,36 +3893,12 @@ var script$1 = {
3600
3893
  return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
3601
3894
  },
3602
3895
  getHeaderRows: function getHeaderRows() {
3603
- var rows = [];
3604
- var columnGroup = this.columnGroup;
3605
- if (columnGroup.children && columnGroup.children["default"]) {
3606
- var _iterator = _createForOfIteratorHelper$1(columnGroup.children["default"]()),
3607
- _step;
3608
- try {
3609
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3610
- var child = _step.value;
3611
- if (child.type.name === 'Row') {
3612
- rows.push(child);
3613
- } else if (child.children && child.children instanceof Array) {
3614
- rows = child.children;
3615
- }
3616
- }
3617
- } catch (err) {
3618
- _iterator.e(err);
3619
- } finally {
3620
- _iterator.f();
3621
- }
3622
- return rows;
3623
- }
3896
+ var _this$d_headerRows;
3897
+ return (_this$d_headerRows = this.d_headerRows) === null || _this$d_headerRows === void 0 ? void 0 : _this$d_headerRows.get(this.columnGroup, this.columnGroup.children);
3624
3898
  },
3625
3899
  getHeaderColumns: function getHeaderColumns(row) {
3626
- var cols = [];
3627
- if (row.children && row.children["default"]) {
3628
- row.children["default"]().forEach(function (child) {
3629
- if (child.children && child.children instanceof Array) cols = [].concat(_toConsumableArray$1(cols), _toConsumableArray$1(child.children));else if (child.type.name === 'Column') cols.push(child);
3630
- });
3631
- return cols;
3632
- }
3900
+ var _this$d_headerColumns;
3901
+ return (_this$d_headerColumns = this.d_headerColumns) === null || _this$d_headerColumns === void 0 ? void 0 : _this$d_headerColumns.get(row, row.children);
3633
3902
  }
3634
3903
  },
3635
3904
  computed: {
@@ -3870,6 +4139,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3870
4139
  script$1.render = render$1;
3871
4140
 
3872
4141
  function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
4142
+ var _excluded = ["expanded"];
4143
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4144
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3873
4145
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3874
4146
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3875
4147
  function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -3888,8 +4160,14 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
3888
4160
  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; }
3889
4161
  var script = {
3890
4162
  name: 'DataTable',
3891
- "extends": script$b,
4163
+ "extends": script$c,
3892
4164
  emits: ['value-change', 'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'row-click', 'row-dblclick', 'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all', 'select-all-change', 'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand', 'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
4165
+ provide: function provide() {
4166
+ return {
4167
+ $columns: this.d_columns,
4168
+ $columnGroups: this.d_columnGroups
4169
+ };
4170
+ },
3893
4171
  data: function data() {
3894
4172
  return {
3895
4173
  d_first: this.first,
@@ -3900,11 +4178,16 @@ var script = {
3900
4178
  d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
3901
4179
  d_groupRowsSortMeta: null,
3902
4180
  d_selectionKeys: null,
3903
- d_expandedRowKeys: null,
3904
4181
  d_columnOrder: null,
3905
4182
  d_editingRowKeys: null,
3906
4183
  d_editingMeta: {},
3907
- d_filters: this.cloneFilters(this.filters)
4184
+ d_filters: this.cloneFilters(this.filters),
4185
+ d_columns: new HelperSet({
4186
+ type: 'Column'
4187
+ }),
4188
+ d_columnGroups: new HelperSet({
4189
+ type: 'ColumnGroup'
4190
+ })
3908
4191
  };
3909
4192
  },
3910
4193
  rowTouched: false,
@@ -3918,6 +4201,7 @@ var script = {
3918
4201
  colReorderIconWidth: null,
3919
4202
  colReorderIconHeight: null,
3920
4203
  draggedColumn: null,
4204
+ draggedColumnElement: null,
3921
4205
  draggedRowIndex: null,
3922
4206
  droppedRowIndex: null,
3923
4207
  rowDragging: null,
@@ -3951,11 +4235,6 @@ var script = {
3951
4235
  }
3952
4236
  }
3953
4237
  },
3954
- expandedRows: function expandedRows(newValue) {
3955
- if (this.dataKey) {
3956
- this.updateExpandedRowKeys(newValue);
3957
- }
3958
- },
3959
4238
  editingRows: {
3960
4239
  immediate: true,
3961
4240
  handler: function handler(newValue) {
@@ -3988,6 +4267,8 @@ var script = {
3988
4267
  this.unbindColumnResizeEvents();
3989
4268
  this.destroyStyleElement();
3990
4269
  this.destroyResponsiveStyle();
4270
+ this.d_columns.clear();
4271
+ this.d_columnGroups.clear();
3991
4272
  },
3992
4273
  updated: function updated() {
3993
4274
  if (this.isStateful()) {
@@ -4002,6 +4283,7 @@ var script = {
4002
4283
  return ObjectUtils.getVNodeProp(col, prop);
4003
4284
  },
4004
4285
  onPage: function onPage(event) {
4286
+ var _this = this;
4005
4287
  this.clearEditingMetaData();
4006
4288
  this.d_first = event.first;
4007
4289
  this.d_rows = event.rows;
@@ -4011,15 +4293,18 @@ var script = {
4011
4293
  this.$emit('update:first', this.d_first);
4012
4294
  this.$emit('update:rows', this.d_rows);
4013
4295
  this.$emit('page', pageEvent);
4014
- this.$emit('value-change', this.processedData);
4296
+ this.$nextTick(function () {
4297
+ _this.$emit('value-change', _this.processedData);
4298
+ });
4015
4299
  },
4016
4300
  onColumnHeaderClick: function onColumnHeaderClick(e) {
4301
+ var _this2 = this;
4017
4302
  var event = e.originalEvent;
4018
4303
  var column = e.column;
4019
4304
  if (this.columnProp(column, 'sortable')) {
4020
4305
  var targetNode = event.target;
4021
4306
  var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
4022
- if (DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]')) {
4307
+ if (DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]') && !DomHandler.isClickable(event.target)) {
4023
4308
  DomHandler.clearSelection();
4024
4309
  if (this.sortMode === 'single') {
4025
4310
  if (this.d_sortField === columnField) {
@@ -4047,12 +4332,14 @@ var script = {
4047
4332
  this.$emit('update:multiSortMeta', this.d_multiSortMeta);
4048
4333
  }
4049
4334
  this.$emit('sort', this.createLazyLoadEvent(event));
4050
- this.$emit('value-change', this.processedData);
4335
+ this.$nextTick(function () {
4336
+ _this2.$emit('value-change', _this2.processedData);
4337
+ });
4051
4338
  }
4052
4339
  }
4053
4340
  },
4054
4341
  sortSingle: function sortSingle(value) {
4055
- var _this = this;
4342
+ var _this3 = this;
4056
4343
  this.clearEditingMetaData();
4057
4344
  if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
4058
4345
  this.d_multiSortMeta = [{
@@ -4082,12 +4369,12 @@ var script = {
4082
4369
  data.sort(function (data1, data2) {
4083
4370
  var value1 = resolvedFieldData.get(data1);
4084
4371
  var value2 = resolvedFieldData.get(data2);
4085
- return ObjectUtils.sort(value1, value2, _this.d_sortOrder, comparer, _this.d_nullSortOrder);
4372
+ return ObjectUtils.sort(value1, value2, _this3.d_sortOrder, comparer, _this3.d_nullSortOrder);
4086
4373
  });
4087
4374
  return data;
4088
4375
  },
4089
4376
  sortMultiple: function sortMultiple(value) {
4090
- var _this2 = this;
4377
+ var _this4 = this;
4091
4378
  this.clearEditingMetaData();
4092
4379
  if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
4093
4380
  var firstSortMeta = this.d_multiSortMeta[0];
@@ -4098,7 +4385,7 @@ var script = {
4098
4385
  }
4099
4386
  var data = _toConsumableArray(value);
4100
4387
  data.sort(function (data1, data2) {
4101
- return _this2.multisortField(data1, data2, 0);
4388
+ return _this4.multisortField(data1, data2, 0);
4102
4389
  });
4103
4390
  return data;
4104
4391
  },
@@ -4154,7 +4441,7 @@ var script = {
4154
4441
  return Object.fromEntries(entries);
4155
4442
  },
4156
4443
  filter: function filter(data) {
4157
- var _this3 = this;
4444
+ var _this5 = this;
4158
4445
  if (!data) {
4159
4446
  return;
4160
4447
  }
@@ -4163,7 +4450,7 @@ var script = {
4163
4450
  var globalFilterFieldsArray;
4164
4451
  if (activeFilters['global']) {
4165
4452
  globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
4166
- return _this3.columnProp(col, 'filterField') || _this3.columnProp(col, 'field');
4453
+ return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
4167
4454
  });
4168
4455
  }
4169
4456
  var filteredValue = [];
@@ -4225,7 +4512,9 @@ var script = {
4225
4512
  var filterEvent = this.createLazyLoadEvent();
4226
4513
  filterEvent.filteredValue = filteredValue;
4227
4514
  this.$emit('filter', filterEvent);
4228
- this.$emit('value-change', filteredValue);
4515
+ this.$nextTick(function () {
4516
+ _this5.$emit('value-change', _this5.processedData);
4517
+ });
4229
4518
  return filteredValue;
4230
4519
  },
4231
4520
  executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
@@ -4381,6 +4670,7 @@ var script = {
4381
4670
  this.onEndKey(event, row, rowIndex, slotProps);
4382
4671
  break;
4383
4672
  case 'Enter':
4673
+ case 'NumpadEnter':
4384
4674
  this.onEnterKey(event, rowData, rowIndex);
4385
4675
  break;
4386
4676
  case 'Space':
@@ -4631,40 +4921,21 @@ var script = {
4631
4921
  this.d_selectionKeys[String(ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
4632
4922
  }
4633
4923
  },
4634
- updateExpandedRowKeys: function updateExpandedRowKeys(expandedRows) {
4635
- if (expandedRows && expandedRows.length) {
4636
- this.d_expandedRowKeys = {};
4637
- var _iterator4 = _createForOfIteratorHelper(expandedRows),
4924
+ updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4925
+ if (editingRows && editingRows.length) {
4926
+ this.d_editingRowKeys = {};
4927
+ var _iterator4 = _createForOfIteratorHelper(editingRows),
4638
4928
  _step4;
4639
4929
  try {
4640
4930
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
4641
4931
  var data = _step4.value;
4642
- this.d_expandedRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4932
+ this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4643
4933
  }
4644
4934
  } catch (err) {
4645
4935
  _iterator4.e(err);
4646
4936
  } finally {
4647
4937
  _iterator4.f();
4648
4938
  }
4649
- } else {
4650
- this.d_expandedRowKeys = null;
4651
- }
4652
- },
4653
- updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4654
- if (editingRows && editingRows.length) {
4655
- this.d_editingRowKeys = {};
4656
- var _iterator5 = _createForOfIteratorHelper(editingRows),
4657
- _step5;
4658
- try {
4659
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
4660
- var data = _step5.value;
4661
- this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4662
- }
4663
- } catch (err) {
4664
- _iterator5.e(err);
4665
- } finally {
4666
- _iterator5.f();
4667
- }
4668
4939
  } else {
4669
4940
  this.d_editingRowKeys = null;
4670
4941
  }
@@ -4702,7 +4973,7 @@ var script = {
4702
4973
  this.$emit('update:selection', _selection);
4703
4974
  },
4704
4975
  exportCSV: function exportCSV(options, data) {
4705
- var _this4 = this;
4976
+ var _this6 = this;
4706
4977
  var csv = "\uFEFF";
4707
4978
  if (!data) {
4708
4979
  data = this.processedData;
@@ -4724,16 +4995,16 @@ var script = {
4724
4995
  data.forEach(function (record) {
4725
4996
  csv += '\n';
4726
4997
  var rowInitiated = false;
4727
- for (var _i = 0; _i < _this4.columns.length; _i++) {
4728
- var _column = _this4.columns[_i];
4729
- if (_this4.columnProp(_column, 'exportable') !== false && _this4.columnProp(_column, 'field')) {
4730
- if (rowInitiated) csv += _this4.csvSeparator;else rowInitiated = true;
4731
- var cellData = ObjectUtils.resolveFieldData(record, _this4.columnProp(_column, 'field'));
4998
+ for (var _i = 0; _i < _this6.columns.length; _i++) {
4999
+ var _column = _this6.columns[_i];
5000
+ if (_this6.columnProp(_column, 'exportable') !== false && _this6.columnProp(_column, 'field')) {
5001
+ if (rowInitiated) csv += _this6.csvSeparator;else rowInitiated = true;
5002
+ var cellData = ObjectUtils.resolveFieldData(record, _this6.columnProp(_column, 'field'));
4732
5003
  if (cellData != null) {
4733
- if (_this4.exportFunction) {
4734
- cellData = _this4.exportFunction({
5004
+ if (_this6.exportFunction) {
5005
+ cellData = _this6.exportFunction({
4735
5006
  data: cellData,
4736
- field: _this4.columnProp(_column, 'field')
5007
+ field: _this6.columnProp(_column, 'field')
4737
5008
  });
4738
5009
  } else cellData = String(cellData).replace(/"/g, '""');
4739
5010
  } else cellData = '';
@@ -4836,19 +5107,19 @@ var script = {
4836
5107
  this.styleElement.innerHTML = innerHTML;
4837
5108
  },
4838
5109
  bindColumnResizeEvents: function bindColumnResizeEvents() {
4839
- var _this5 = this;
5110
+ var _this7 = this;
4840
5111
  if (!this.documentColumnResizeListener) {
4841
5112
  this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
4842
- if (_this5.columnResizing) {
4843
- _this5.onColumnResize(event);
5113
+ if (_this7.columnResizing) {
5114
+ _this7.onColumnResize(event);
4844
5115
  }
4845
5116
  });
4846
5117
  }
4847
5118
  if (!this.documentColumnResizeEndListener) {
4848
5119
  this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
4849
- if (_this5.columnResizing) {
4850
- _this5.columnResizing = false;
4851
- _this5.onColumnResizeEnd();
5120
+ if (_this7.columnResizing) {
5121
+ _this7.columnResizing = false;
5122
+ _this7.onColumnResizeEnd();
4852
5123
  }
4853
5124
  });
4854
5125
  }
@@ -4870,23 +5141,28 @@ var script = {
4870
5141
  if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.getAttribute(event.target, '[data-pc-section="columnresizer"]')) event.currentTarget.draggable = false;else event.currentTarget.draggable = true;
4871
5142
  }
4872
5143
  },
4873
- onColumnHeaderDragStart: function onColumnHeaderDragStart(event) {
5144
+ onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
5145
+ var event = e.originalEvent,
5146
+ column = e.column;
4874
5147
  if (this.columnResizing) {
4875
5148
  event.preventDefault();
4876
5149
  return;
4877
5150
  }
4878
5151
  this.colReorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
4879
5152
  this.colReorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
4880
- this.draggedColumn = this.findParentHeader(event.target);
5153
+ this.draggedColumn = column;
5154
+ this.draggedColumnElement = this.findParentHeader(event.target);
4881
5155
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
4882
5156
  },
4883
- onColumnHeaderDragOver: function onColumnHeaderDragOver(event) {
5157
+ onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
5158
+ var event = e.originalEvent,
5159
+ column = e.column;
4884
5160
  var dropHeader = this.findParentHeader(event.target);
4885
- if (this.reorderableColumns && this.draggedColumn && dropHeader) {
5161
+ if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
4886
5162
  event.preventDefault();
4887
5163
  var containerOffset = DomHandler.getOffset(this.$el);
4888
5164
  var dropHeaderOffset = DomHandler.getOffset(dropHeader);
4889
- if (this.draggedColumn !== dropHeader) {
5165
+ if (this.draggedColumnElement !== dropHeader) {
4890
5166
  var targetLeft = dropHeaderOffset.left - containerOffset.left;
4891
5167
  var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
4892
5168
  this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
@@ -4905,34 +5181,67 @@ var script = {
4905
5181
  }
4906
5182
  }
4907
5183
  },
4908
- onColumnHeaderDragLeave: function onColumnHeaderDragLeave(event) {
4909
- if (this.reorderableColumns && this.draggedColumn) {
5184
+ onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
5185
+ var event = e.originalEvent;
5186
+ if (this.reorderableColumns && this.draggedColumnElement) {
4910
5187
  event.preventDefault();
4911
5188
  this.$refs.reorderIndicatorUp.style.display = 'none';
4912
5189
  this.$refs.reorderIndicatorDown.style.display = 'none';
4913
5190
  }
4914
5191
  },
4915
- onColumnHeaderDrop: function onColumnHeaderDrop(event) {
5192
+ onColumnHeaderDrop: function onColumnHeaderDrop(e) {
5193
+ var _this8 = this;
5194
+ var event = e.originalEvent,
5195
+ column = e.column;
4916
5196
  event.preventDefault();
4917
- if (this.draggedColumn) {
4918
- var dragIndex = DomHandler.index(this.draggedColumn);
5197
+ if (this.draggedColumnElement) {
5198
+ var dragIndex = DomHandler.index(this.draggedColumnElement);
4919
5199
  var dropIndex = DomHandler.index(this.findParentHeader(event.target));
4920
5200
  var allowDrop = dragIndex !== dropIndex;
4921
5201
  if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
4922
5202
  allowDrop = false;
4923
5203
  }
4924
5204
  if (allowDrop) {
4925
- ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);
5205
+ var isSameColumn = function isSameColumn(col1, col2) {
5206
+ return _this8.columnProp(col1, 'columnKey') || _this8.columnProp(col2, 'columnKey') ? _this8.columnProp(col1, 'columnKey') === _this8.columnProp(col2, 'columnKey') : _this8.columnProp(col1, 'field') === _this8.columnProp(col2, 'field');
5207
+ };
5208
+ var dragColIndex = this.columns.findIndex(function (child) {
5209
+ return isSameColumn(child, _this8.draggedColumn);
5210
+ });
5211
+ var dropColIndex = this.columns.findIndex(function (child) {
5212
+ return isSameColumn(child, column);
5213
+ });
5214
+ var widths = [];
5215
+ var headers = DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
5216
+ headers.forEach(function (header) {
5217
+ return widths.push(DomHandler.getOuterWidth(header));
5218
+ });
5219
+ var movedItem = widths.find(function (_, index) {
5220
+ return index === dragColIndex;
5221
+ });
5222
+ var remainingItems = widths.filter(function (_, index) {
5223
+ return index !== dragColIndex;
5224
+ });
5225
+ var reorderedWidths = [].concat(_toConsumableArray(remainingItems.slice(0, dropColIndex)), [movedItem], _toConsumableArray(remainingItems.slice(dropColIndex)));
5226
+ this.addColumnWidthStyles(reorderedWidths);
5227
+ if (dropColIndex < dragColIndex && this.dropPosition === 1) {
5228
+ dropColIndex++;
5229
+ }
5230
+ if (dropColIndex > dragColIndex && this.dropPosition === -1) {
5231
+ dropColIndex--;
5232
+ }
5233
+ ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
4926
5234
  this.updateReorderableColumns();
4927
5235
  this.$emit('column-reorder', {
4928
5236
  originalEvent: event,
4929
- dragIndex: dragIndex,
4930
- dropIndex: dropIndex
5237
+ dragIndex: dragColIndex,
5238
+ dropIndex: dropColIndex
4931
5239
  });
4932
5240
  }
4933
5241
  this.$refs.reorderIndicatorUp.style.display = 'none';
4934
5242
  this.$refs.reorderIndicatorDown.style.display = 'none';
4935
- this.draggedColumn.draggable = false;
5243
+ this.draggedColumnElement.draggable = false;
5244
+ this.draggedColumnElement = null;
4936
5245
  this.draggedColumn = null;
4937
5246
  this.dropPosition = null;
4938
5247
  }
@@ -5042,28 +5351,23 @@ var script = {
5042
5351
  event.preventDefault();
5043
5352
  },
5044
5353
  toggleRow: function toggleRow(event) {
5354
+ var _this9 = this;
5355
+ var expanded = event.expanded,
5356
+ rest = _objectWithoutProperties(event, _excluded);
5045
5357
  var rowData = event.data;
5046
- var expanded;
5047
- var expandedRowIndex;
5048
- var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
5358
+ var expandedRows;
5049
5359
  if (this.dataKey) {
5050
- expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
5051
- } else {
5052
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5053
- expanded = expandedRowIndex > -1;
5054
- }
5055
- if (expanded) {
5056
- if (expandedRowIndex == null) {
5057
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5058
- }
5059
- _expandedRows.splice(expandedRowIndex, 1);
5060
- this.$emit('update:expandedRows', _expandedRows);
5061
- this.$emit('row-collapse', event);
5360
+ var value = ObjectUtils.resolveFieldData(rowData, this.dataKey);
5361
+ expandedRows = this.expandedRows ? _objectSpread$1({}, this.expandedRows) : {};
5362
+ expanded ? expandedRows[value] = true : delete expandedRows[value];
5062
5363
  } else {
5063
- _expandedRows.push(rowData);
5064
- this.$emit('update:expandedRows', _expandedRows);
5065
- this.$emit('row-expand', event);
5364
+ expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
5365
+ expanded ? expandedRows.push(rowData) : expandedRows = expandedRows.filter(function (d) {
5366
+ return !_this9.equals(rowData, d);
5367
+ });
5066
5368
  }
5369
+ this.$emit('update:expandedRows', expandedRows);
5370
+ expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
5067
5371
  },
5068
5372
  toggleRowGroup: function toggleRowGroup(e) {
5069
5373
  var event = e.originalEvent;
@@ -5133,7 +5437,6 @@ var script = {
5133
5437
  }
5134
5438
  if (this.expandedRows) {
5135
5439
  state.expandedRows = this.expandedRows;
5136
- state.expandedRowKeys = this.d_expandedRowKeys;
5137
5440
  }
5138
5441
  if (this.expandedRowGroups) {
5139
5442
  state.expandedRowGroups = this.expandedRowGroups;
@@ -5181,7 +5484,6 @@ var script = {
5181
5484
  this.d_columnOrder = restoredState.columnOrder;
5182
5485
  }
5183
5486
  if (restoredState.expandedRows) {
5184
- this.d_expandedRowKeys = restoredState.expandedRowKeys;
5185
5487
  this.$emit('update:expandedRows', restoredState.expandedRows);
5186
5488
  }
5187
5489
  if (restoredState.expandedRowGroups) {
@@ -5205,23 +5507,25 @@ var script = {
5205
5507
  state.tableWidth = DomHandler.getOuterWidth(this.$refs.table) + 'px';
5206
5508
  }
5207
5509
  },
5510
+ addColumnWidthStyles: function addColumnWidthStyles(widths) {
5511
+ this.createStyleElement();
5512
+ var innerHTML = '';
5513
+ var selector = "[data-pc-name=\"datatable\"][".concat(this.attributeSelector, "] > [data-pc-section=\"wrapper\"] ").concat(this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]', " > table[data-pc-section=\"table\"]");
5514
+ widths.forEach(function (width, index) {
5515
+ var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
5516
+ innerHTML += "\n ".concat(selector, " > thead[data-pc-section=\"thead\"] > tr > th:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tbody[data-pc-section=\"tbody\"] > tr > td:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tfoot[data-pc-section=\"tfoot\"] > tr > td:nth-child(").concat(index + 1, ") {\n ").concat(style, "\n }\n ");
5517
+ });
5518
+ this.styleElement.innerHTML = innerHTML;
5519
+ },
5208
5520
  restoreColumnWidths: function restoreColumnWidths() {
5209
5521
  if (this.columnWidthsState) {
5210
5522
  var widths = this.columnWidthsState.split(',');
5211
5523
  if (this.columnResizeMode === 'expand' && this.tableWidthState) {
5212
5524
  this.$refs.table.style.width = this.tableWidthState;
5213
5525
  this.$refs.table.style.minWidth = this.tableWidthState;
5214
- this.$el.style.width = this.tableWidthState;
5215
5526
  }
5216
5527
  if (ObjectUtils.isNotEmpty(widths)) {
5217
- this.createStyleElement();
5218
- var innerHTML = '';
5219
- var selector = "[data-pc-name=\"datatable\"][".concat(this.attributeSelector, "] > [data-pc-section=\"wrapper\"] ").concat(this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]', " > table[data-pc-section=\"table\"]");
5220
- widths.forEach(function (width, index) {
5221
- var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
5222
- innerHTML += "\n ".concat(selector, " > thead[data-pc-section=\"thead\"] > tr > th:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tbody[data-pc-section=\"tbody\"] > tr > td:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tfoot[data-pc-section=\"tfoot\"] > tr > td:nth-child(").concat(index + 1, ") {\n ").concat(style, "\n }\n ");
5223
- });
5224
- this.styleElement.innerHTML = innerHTML;
5528
+ this.addColumnWidthStyles(widths);
5225
5529
  }
5226
5530
  }
5227
5531
  },
@@ -5292,9 +5596,6 @@ var script = {
5292
5596
  hasGlobalFilter: function hasGlobalFilter() {
5293
5597
  return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
5294
5598
  },
5295
- getChildren: function getChildren() {
5296
- return this.$slots["default"] ? this.$slots["default"]() : null;
5297
- },
5298
5599
  onFilterChange: function onFilterChange(filters) {
5299
5600
  this.d_filters = filters;
5300
5601
  },
@@ -5324,10 +5625,10 @@ var script = {
5324
5625
  return cloned;
5325
5626
  },
5326
5627
  updateReorderableColumns: function updateReorderableColumns() {
5327
- var _this6 = this;
5628
+ var _this10 = this;
5328
5629
  var columnOrder = [];
5329
5630
  this.columns.forEach(function (col) {
5330
- return columnOrder.push(_this6.columnProp(col, 'columnKey') || _this6.columnProp(col, 'field'));
5631
+ return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
5331
5632
  });
5332
5633
  this.d_columnOrder = columnOrder;
5333
5634
  },
@@ -5348,7 +5649,7 @@ var script = {
5348
5649
  var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
5349
5650
  var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
5350
5651
  var gridLinesSelector = ".p-datatable[".concat(this.attributeSelector, "].p-datatable-gridlines > ").concat(tableSelector);
5351
- var innerHTML = "\n@media screen and (max-width: ".concat(this.breakpoint, ") {\n ").concat(selector, " > .p-datatable-thead > tr > th,\n ").concat(selector, " > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n ").concat(gridLinesSelector, " > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n");
5652
+ var innerHTML = "\n@media screen and (max-width: ".concat(this.breakpoint, ") {\n ").concat(selector, " > .p-datatable-thead > tr > th,\n ").concat(selector, " > .p-datatable-tfoot > tr > td {\n display: none;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n ").concat(gridLinesSelector, " > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n");
5352
5653
  this.responsiveStyleElement.innerHTML = innerHTML;
5353
5654
  }
5354
5655
  },
@@ -5364,22 +5665,6 @@ var script = {
5364
5665
  this.styleElement = null;
5365
5666
  }
5366
5667
  },
5367
- recursiveGetChildren: function recursiveGetChildren(children, results) {
5368
- var _this7 = this;
5369
- if (!results) {
5370
- results = [];
5371
- }
5372
- if (children && children.length) {
5373
- children.forEach(function (child) {
5374
- if (child.children instanceof Array) {
5375
- results.concat(_this7.recursiveGetChildren(child.children, results));
5376
- } else if (child.type.name == 'Column') {
5377
- results.push(child);
5378
- }
5379
- });
5380
- }
5381
- return results;
5382
- },
5383
5668
  dataToRender: function dataToRender(data) {
5384
5669
  var _data = data || this.processedData;
5385
5670
  if (_data && this.paginator) {
@@ -5397,27 +5682,23 @@ var script = {
5397
5682
  },
5398
5683
  computed: {
5399
5684
  columns: function columns() {
5400
- var children = this.getChildren();
5401
- if (!children) {
5402
- return;
5403
- }
5404
- var cols = this.recursiveGetChildren(children, []);
5685
+ var cols = this.d_columns.get(this);
5405
5686
  if (this.reorderableColumns && this.d_columnOrder) {
5406
5687
  var orderedColumns = [];
5407
- var _iterator6 = _createForOfIteratorHelper(this.d_columnOrder),
5408
- _step6;
5688
+ var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
5689
+ _step5;
5409
5690
  try {
5410
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
5411
- var columnKey = _step6.value;
5691
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
5692
+ var columnKey = _step5.value;
5412
5693
  var column = this.findColumnByKey(cols, columnKey);
5413
5694
  if (column && !this.columnProp(column, 'hidden')) {
5414
5695
  orderedColumns.push(column);
5415
5696
  }
5416
5697
  }
5417
5698
  } catch (err) {
5418
- _iterator6.e(err);
5699
+ _iterator5.e(err);
5419
5700
  } finally {
5420
- _iterator6.f();
5701
+ _iterator5.f();
5421
5702
  }
5422
5703
  return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
5423
5704
  return orderedColumns.indexOf(item) < 0;
@@ -5425,52 +5706,30 @@ var script = {
5425
5706
  }
5426
5707
  return cols;
5427
5708
  },
5709
+ columnGroups: function columnGroups() {
5710
+ return this.d_columnGroups.get(this);
5711
+ },
5428
5712
  headerColumnGroup: function headerColumnGroup() {
5429
- var children = this.getChildren();
5430
- if (children) {
5431
- var _iterator7 = _createForOfIteratorHelper(children),
5432
- _step7;
5433
- try {
5434
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
5435
- var child = _step7.value;
5436
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
5437
- return child;
5438
- }
5439
- }
5440
- } catch (err) {
5441
- _iterator7.e(err);
5442
- } finally {
5443
- _iterator7.f();
5444
- }
5445
- }
5446
- return null;
5713
+ var _this$columnGroups,
5714
+ _this11 = this;
5715
+ return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
5716
+ return _this11.columnProp(group, 'type') === 'header';
5717
+ });
5447
5718
  },
5448
5719
  footerColumnGroup: function footerColumnGroup() {
5449
- var children = this.getChildren();
5450
- if (children) {
5451
- var _iterator8 = _createForOfIteratorHelper(children),
5452
- _step8;
5453
- try {
5454
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
5455
- var child = _step8.value;
5456
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
5457
- return child;
5458
- }
5459
- }
5460
- } catch (err) {
5461
- _iterator8.e(err);
5462
- } finally {
5463
- _iterator8.f();
5464
- }
5465
- }
5466
- return null;
5720
+ var _this$columnGroups2,
5721
+ _this12 = this;
5722
+ return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
5723
+ return _this12.columnProp(group, 'type') === 'footer';
5724
+ });
5467
5725
  },
5468
5726
  hasFilters: function hasFilters() {
5469
5727
  return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
5470
5728
  },
5471
5729
  processedData: function processedData() {
5730
+ var _this$virtualScroller;
5472
5731
  var data = this.value || [];
5473
- if (!this.lazy) {
5732
+ if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
5474
5733
  if (data && data.length) {
5475
5734
  if (this.hasFilters) {
5476
5735
  data = this.filter(data);
@@ -5504,14 +5763,14 @@ var script = {
5504
5763
  return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
5505
5764
  },
5506
5765
  allRowsSelected: function allRowsSelected() {
5507
- var _this8 = this;
5766
+ var _this13 = this;
5508
5767
  if (this.selectAll !== null) {
5509
5768
  return this.selectAll;
5510
5769
  } else {
5511
5770
  var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
5512
5771
  return ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
5513
- return _this8.selection.some(function (s) {
5514
- return _this8.equals(s, v);
5772
+ return _this13.selection.some(function (s) {
5773
+ return _this13.equals(s, v);
5515
5774
  });
5516
5775
  });
5517
5776
  }
@@ -5751,7 +6010,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5751
6010
  expandedRowIcon: _ctx.expandedRowIcon,
5752
6011
  collapsedRowIcon: _ctx.collapsedRowIcon,
5753
6012
  expandedRows: _ctx.expandedRows,
5754
- expandedRowKeys: $data.d_expandedRowKeys,
5755
6013
  expandedRowGroups: _ctx.expandedRowGroups,
5756
6014
  editingRows: _ctx.editingRows,
5757
6015
  editingRowKeys: $data.d_editingRowKeys,
@@ -5817,7 +6075,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5817
6075
  onEditingMetaChange: $options.onEditingMetaChange,
5818
6076
  unstyled: _ctx.unstyled,
5819
6077
  pt: _ctx.pt
5820
- }, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"])) : createCommentVNode("", true), createVNode(_component_DTTableBody, {
6078
+ }, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"])) : createCommentVNode("", true), createVNode(_component_DTTableBody, {
5821
6079
  ref: "bodyRef",
5822
6080
  value: $options.dataToRender(slotProps.rows),
5823
6081
  "class": normalizeClass(slotProps.styleClass),
@@ -5841,7 +6099,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5841
6099
  expandedRowIcon: _ctx.expandedRowIcon,
5842
6100
  collapsedRowIcon: _ctx.collapsedRowIcon,
5843
6101
  expandedRows: _ctx.expandedRows,
5844
- expandedRowKeys: $data.d_expandedRowKeys,
5845
6102
  expandedRowGroups: _ctx.expandedRowGroups,
5846
6103
  editingRows: _ctx.editingRows,
5847
6104
  editingRowKeys: $data.d_editingRowKeys,
@@ -5910,7 +6167,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5910
6167
  onEditingMetaChange: $options.onEditingMetaChange,
5911
6168
  unstyled: _ctx.unstyled,
5912
6169
  pt: _ctx.pt
5913
- }, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"]), $options.hasSpacerStyle(slotProps.spacerStyle) ? (openBlock(), createElementBlock("tbody", mergeProps({
6170
+ }, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"]), $options.hasSpacerStyle(slotProps.spacerStyle) ? (openBlock(), createElementBlock("tbody", mergeProps({
5914
6171
  key: 1,
5915
6172
  "class": _ctx.cx('virtualScrollerSpacer'),
5916
6173
  style: {