primevue 3.43.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 (730) hide show
  1. package/accordion/Accordion.d.ts +4 -0
  2. package/accordion/Accordion.vue +1 -0
  3. package/accordion/accordion.cjs.js +3 -2
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +3 -2
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +3 -2
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/AccordionTab.d.ts +4 -0
  10. package/animateonscroll/animateonscroll.cjs.js +2 -2
  11. package/animateonscroll/animateonscroll.cjs.min.js +1 -1
  12. package/animateonscroll/animateonscroll.esm.js +2 -2
  13. package/animateonscroll/animateonscroll.esm.min.js +1 -1
  14. package/animateonscroll/animateonscroll.js +2 -2
  15. package/animateonscroll/animateonscroll.min.js +1 -1
  16. package/autocomplete/AutoComplete.d.ts +4 -0
  17. package/autocomplete/AutoComplete.vue +2 -1
  18. package/autocomplete/autocomplete.cjs.js +5 -3
  19. package/autocomplete/autocomplete.cjs.min.js +1 -1
  20. package/autocomplete/autocomplete.esm.js +5 -3
  21. package/autocomplete/autocomplete.esm.min.js +1 -1
  22. package/autocomplete/autocomplete.js +5 -3
  23. package/autocomplete/autocomplete.min.js +1 -1
  24. package/avatar/Avatar.d.ts +4 -0
  25. package/badgedirective/BadgeDirective.d.ts +4 -0
  26. package/badgedirective/badgedirective.cjs.js +2 -2
  27. package/badgedirective/badgedirective.cjs.min.js +1 -1
  28. package/badgedirective/badgedirective.esm.js +2 -2
  29. package/badgedirective/badgedirective.esm.min.js +1 -1
  30. package/badgedirective/badgedirective.js +2 -2
  31. package/badgedirective/badgedirective.min.js +1 -1
  32. package/base/style/basestyle.cjs.js +2 -2
  33. package/base/style/basestyle.cjs.min.js +1 -1
  34. package/base/style/basestyle.esm.js +2 -2
  35. package/base/style/basestyle.esm.min.js +1 -1
  36. package/base/style/basestyle.js +2 -2
  37. package/base/style/basestyle.min.js +1 -1
  38. package/basecomponent/BaseComponent.vue +4 -2
  39. package/basecomponent/basecomponent.cjs.js +9 -7
  40. package/basecomponent/basecomponent.cjs.min.js +1 -1
  41. package/basecomponent/basecomponent.esm.js +9 -7
  42. package/basecomponent/basecomponent.esm.min.js +1 -1
  43. package/basecomponent/basecomponent.js +9 -7
  44. package/basecomponent/basecomponent.min.js +1 -1
  45. package/basecomponent/style/basecomponentstyle.cjs.js +3 -3
  46. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  47. package/basecomponent/style/basecomponentstyle.esm.js +3 -3
  48. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  49. package/basecomponent/style/basecomponentstyle.js +3 -3
  50. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  51. package/basedirective/basedirective.cjs.js +2 -3
  52. package/basedirective/basedirective.cjs.min.js +1 -1
  53. package/basedirective/basedirective.esm.js +2 -3
  54. package/basedirective/basedirective.esm.min.js +1 -1
  55. package/basedirective/basedirective.js +2 -3
  56. package/basedirective/basedirective.min.js +1 -1
  57. package/baseicon/BaseIcon.vue +8 -14
  58. package/baseicon/baseicon.cjs.js +10 -15
  59. package/baseicon/baseicon.cjs.min.js +1 -1
  60. package/baseicon/baseicon.esm.js +10 -15
  61. package/baseicon/baseicon.esm.min.js +1 -1
  62. package/baseicon/baseicon.js +10 -15
  63. package/baseicon/baseicon.min.js +1 -1
  64. package/blockui/BlockUI.d.ts +4 -0
  65. package/breadcrumb/Breadcrumb.d.ts +4 -0
  66. package/button/style/buttonstyle.cjs.js +2 -2
  67. package/button/style/buttonstyle.cjs.min.js +1 -1
  68. package/button/style/buttonstyle.esm.js +2 -2
  69. package/button/style/buttonstyle.esm.min.js +1 -1
  70. package/button/style/buttonstyle.js +2 -2
  71. package/button/style/buttonstyle.min.js +1 -1
  72. package/calendar/Calendar.d.ts +8 -0
  73. package/calendar/Calendar.vue +31 -15
  74. package/calendar/calendar.cjs.js +31 -17
  75. package/calendar/calendar.cjs.min.js +1 -1
  76. package/calendar/calendar.esm.js +31 -17
  77. package/calendar/calendar.esm.min.js +1 -1
  78. package/calendar/calendar.js +31 -17
  79. package/calendar/calendar.min.js +1 -1
  80. package/carousel/Carousel.d.ts +4 -0
  81. package/carousel/carousel.cjs.js +2 -2
  82. package/carousel/carousel.cjs.min.js +1 -1
  83. package/carousel/carousel.esm.js +2 -2
  84. package/carousel/carousel.esm.min.js +1 -1
  85. package/carousel/carousel.js +2 -2
  86. package/carousel/carousel.min.js +1 -1
  87. package/cascadeselect/CascadeSelect.d.ts +4 -0
  88. package/cascadeselect/CascadeSelect.vue +2 -1
  89. package/cascadeselect/CascadeSelectSub.vue +4 -1
  90. package/cascadeselect/cascadeselect.cjs.js +8 -4
  91. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  92. package/cascadeselect/cascadeselect.esm.js +8 -4
  93. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  94. package/cascadeselect/cascadeselect.js +8 -4
  95. package/cascadeselect/cascadeselect.min.js +1 -1
  96. package/cascadeselect/style/cascadeselectstyle.cjs.js +1 -1
  97. package/cascadeselect/style/cascadeselectstyle.cjs.min.js +1 -1
  98. package/cascadeselect/style/cascadeselectstyle.esm.js +1 -1
  99. package/cascadeselect/style/cascadeselectstyle.esm.min.js +1 -1
  100. package/cascadeselect/style/cascadeselectstyle.js +1 -1
  101. package/cascadeselect/style/cascadeselectstyle.min.js +1 -1
  102. package/chart/Chart.d.ts +4 -0
  103. package/chart/chart.cjs.js +2 -2
  104. package/chart/chart.cjs.min.js +1 -1
  105. package/chart/chart.esm.js +2 -2
  106. package/chart/chart.esm.min.js +1 -1
  107. package/chart/chart.js +2 -2
  108. package/chart/chart.min.js +1 -1
  109. package/checkbox/Checkbox.d.ts +4 -0
  110. package/checkbox/checkbox.cjs.js +2 -2
  111. package/checkbox/checkbox.cjs.min.js +1 -1
  112. package/checkbox/checkbox.esm.js +2 -2
  113. package/checkbox/checkbox.esm.min.js +1 -1
  114. package/checkbox/checkbox.js +2 -2
  115. package/checkbox/checkbox.min.js +1 -1
  116. package/chip/Chip.d.ts +4 -0
  117. package/chips/Chips.d.ts +4 -0
  118. package/chips/Chips.vue +1 -0
  119. package/chips/chips.cjs.js +3 -2
  120. package/chips/chips.cjs.min.js +1 -1
  121. package/chips/chips.esm.js +3 -2
  122. package/chips/chips.esm.min.js +1 -1
  123. package/chips/chips.js +3 -2
  124. package/chips/chips.min.js +1 -1
  125. package/colorpicker/ColorPicker.d.ts +4 -0
  126. package/column/Column.d.ts +4 -0
  127. package/column/Column.vue +7 -0
  128. package/column/column.cjs.js +9 -0
  129. package/column/column.cjs.min.js +1 -1
  130. package/column/column.esm.js +9 -0
  131. package/column/column.esm.min.js +1 -1
  132. package/column/column.js +9 -0
  133. package/column/column.min.js +1 -1
  134. package/columngroup/ColumnGroup.d.ts +4 -0
  135. package/columngroup/ColumnGroup.vue +7 -0
  136. package/columngroup/columngroup.cjs.js +9 -0
  137. package/columngroup/columngroup.cjs.min.js +1 -1
  138. package/columngroup/columngroup.esm.js +9 -0
  139. package/columngroup/columngroup.esm.min.js +1 -1
  140. package/columngroup/columngroup.js +9 -0
  141. package/columngroup/columngroup.min.js +1 -1
  142. package/config/config.cjs.js +2 -2
  143. package/config/config.cjs.min.js +1 -1
  144. package/config/config.esm.js +2 -2
  145. package/config/config.esm.min.js +1 -1
  146. package/config/config.js +2 -2
  147. package/config/config.min.js +1 -1
  148. package/confirmdialog/ConfirmDialog.d.ts +5 -1
  149. package/confirmpopup/ConfirmPopup.d.ts +4 -0
  150. package/confirmpopup/ConfirmPopup.vue +2 -2
  151. package/confirmpopup/confirmpopup.cjs.js +4 -4
  152. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  153. package/confirmpopup/confirmpopup.esm.js +4 -4
  154. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  155. package/confirmpopup/confirmpopup.js +4 -4
  156. package/confirmpopup/confirmpopup.min.js +1 -1
  157. package/contextmenu/ContextMenu.d.ts +4 -0
  158. package/contextmenu/ContextMenu.vue +1 -0
  159. package/contextmenu/contextmenu.cjs.js +3 -2
  160. package/contextmenu/contextmenu.cjs.min.js +1 -1
  161. package/contextmenu/contextmenu.esm.js +3 -2
  162. package/contextmenu/contextmenu.esm.min.js +1 -1
  163. package/contextmenu/contextmenu.js +3 -2
  164. package/contextmenu/contextmenu.min.js +1 -1
  165. package/core/core.js +358 -257
  166. package/core/core.min.js +36 -36
  167. package/datatable/BaseDataTable.vue +2 -2
  168. package/datatable/BodyRow.vue +578 -0
  169. package/datatable/ColumnFilter.vue +1 -0
  170. package/datatable/DataTable.d.ts +5 -1
  171. package/datatable/DataTable.vue +111 -132
  172. package/datatable/HeaderCell.vue +9 -7
  173. package/datatable/RowCheckbox.vue +1 -0
  174. package/datatable/TableBody.vue +74 -414
  175. package/datatable/TableFooter.vue +19 -26
  176. package/datatable/TableHeader.vue +19 -26
  177. package/datatable/datatable.cjs.js +908 -650
  178. package/datatable/datatable.cjs.min.js +1 -1
  179. package/datatable/datatable.esm.js +909 -651
  180. package/datatable/datatable.esm.min.js +1 -1
  181. package/datatable/datatable.js +908 -650
  182. package/datatable/datatable.min.js +1 -1
  183. package/datatable/style/datatablestyle.cjs.js +5 -4
  184. package/datatable/style/datatablestyle.cjs.min.js +1 -1
  185. package/datatable/style/datatablestyle.esm.js +5 -4
  186. package/datatable/style/datatablestyle.esm.min.js +1 -1
  187. package/datatable/style/datatablestyle.js +5 -4
  188. package/datatable/style/datatablestyle.min.js +1 -1
  189. package/dataview/DataView.d.ts +4 -0
  190. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +4 -0
  191. package/deferredcontent/DeferredContent.d.ts +4 -0
  192. package/dialog/dialog.cjs.js +2 -2
  193. package/dialog/dialog.cjs.min.js +1 -1
  194. package/dialog/dialog.esm.js +2 -2
  195. package/dialog/dialog.esm.min.js +1 -1
  196. package/dialog/dialog.js +2 -2
  197. package/dialog/dialog.min.js +1 -1
  198. package/dialog/style/dialogstyle.cjs.js +1 -1
  199. package/dialog/style/dialogstyle.cjs.min.js +1 -1
  200. package/dialog/style/dialogstyle.esm.js +1 -1
  201. package/dialog/style/dialogstyle.esm.min.js +1 -1
  202. package/dialog/style/dialogstyle.js +1 -1
  203. package/dialog/style/dialogstyle.min.js +1 -1
  204. package/divider/Divider.d.ts +4 -0
  205. package/dock/Dock.d.ts +4 -0
  206. package/dock/DockSub.vue +1 -0
  207. package/dock/dock.cjs.js +1 -0
  208. package/dock/dock.cjs.min.js +1 -1
  209. package/dock/dock.esm.js +1 -0
  210. package/dock/dock.esm.min.js +1 -1
  211. package/dock/dock.js +1 -0
  212. package/dock/dock.min.js +1 -1
  213. package/dropdown/Dropdown.vue +29 -1
  214. package/dropdown/dropdown.cjs.js +55 -30
  215. package/dropdown/dropdown.cjs.min.js +1 -1
  216. package/dropdown/dropdown.esm.js +55 -30
  217. package/dropdown/dropdown.esm.min.js +1 -1
  218. package/dropdown/dropdown.js +55 -30
  219. package/dropdown/dropdown.min.js +1 -1
  220. package/dropdown/style/dropdownstyle.cjs.js +1 -1
  221. package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
  222. package/dropdown/style/dropdownstyle.esm.js +1 -1
  223. package/dropdown/style/dropdownstyle.esm.min.js +1 -1
  224. package/dropdown/style/dropdownstyle.js +1 -1
  225. package/dropdown/style/dropdownstyle.min.js +1 -1
  226. package/dynamicdialog/DynamicDialog.vue +1 -1
  227. package/dynamicdialog/dynamicdialog.cjs.js +1 -3
  228. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  229. package/dynamicdialog/dynamicdialog.esm.js +1 -3
  230. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  231. package/dynamicdialog/dynamicdialog.js +1 -3
  232. package/dynamicdialog/dynamicdialog.min.js +1 -1
  233. package/editor/Editor.d.ts +4 -0
  234. package/editor/editor.cjs.js +2 -2
  235. package/editor/editor.cjs.min.js +1 -1
  236. package/editor/editor.esm.js +2 -2
  237. package/editor/editor.esm.min.js +1 -1
  238. package/editor/editor.js +2 -2
  239. package/editor/editor.min.js +1 -1
  240. package/fieldset/Fieldset.d.ts +4 -0
  241. package/fieldset/Fieldset.vue +1 -1
  242. package/fieldset/fieldset.cjs.js +3 -3
  243. package/fieldset/fieldset.cjs.min.js +1 -1
  244. package/fieldset/fieldset.esm.js +3 -3
  245. package/fieldset/fieldset.esm.min.js +1 -1
  246. package/fieldset/fieldset.js +3 -3
  247. package/fieldset/fieldset.min.js +1 -1
  248. package/fileupload/FileUpload.d.ts +4 -0
  249. package/galleria/Galleria.d.ts +4 -0
  250. package/galleria/GalleriaItem.vue +1 -0
  251. package/galleria/GalleriaThumbnails.vue +1 -1
  252. package/galleria/galleria.cjs.js +8 -7
  253. package/galleria/galleria.cjs.min.js +1 -1
  254. package/galleria/galleria.esm.js +8 -7
  255. package/galleria/galleria.esm.min.js +1 -1
  256. package/galleria/galleria.js +8 -7
  257. package/galleria/galleria.min.js +1 -1
  258. package/icons/sortamountdown/index.cjs.js +10 -7
  259. package/icons/sortamountdown/index.cjs.min.js +1 -1
  260. package/icons/sortamountdown/index.esm.js +11 -8
  261. package/icons/sortamountdown/index.esm.min.js +1 -1
  262. package/icons/sortamountdown/index.js +10 -7
  263. package/icons/sortamountdown/index.min.js +1 -1
  264. package/icons/sortamountdown/index.vue +1 -21
  265. package/icons/sortamountupalt/index.cjs.js +10 -7
  266. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  267. package/icons/sortamountupalt/index.esm.js +11 -8
  268. package/icons/sortamountupalt/index.esm.min.js +1 -1
  269. package/icons/sortamountupalt/index.js +10 -7
  270. package/icons/sortamountupalt/index.min.js +1 -1
  271. package/icons/sortamountupalt/index.vue +1 -21
  272. package/image/Image.d.ts +4 -0
  273. package/image/Image.vue +2 -6
  274. package/image/image.cjs.js +4 -7
  275. package/image/image.cjs.min.js +1 -1
  276. package/image/image.esm.js +4 -7
  277. package/image/image.esm.min.js +1 -1
  278. package/image/image.js +4 -7
  279. package/image/image.min.js +1 -1
  280. package/image/style/imagestyle.cjs.js +1 -1
  281. package/image/style/imagestyle.cjs.min.js +1 -1
  282. package/image/style/imagestyle.esm.js +1 -1
  283. package/image/style/imagestyle.esm.min.js +1 -1
  284. package/image/style/imagestyle.js +1 -1
  285. package/image/style/imagestyle.min.js +1 -1
  286. package/inlinemessage/InlineMessage.d.ts +4 -0
  287. package/inplace/Inplace.d.ts +4 -0
  288. package/inplace/inplace.cjs.js +2 -2
  289. package/inplace/inplace.cjs.min.js +1 -1
  290. package/inplace/inplace.esm.js +2 -2
  291. package/inplace/inplace.esm.min.js +1 -1
  292. package/inplace/inplace.js +2 -2
  293. package/inplace/inplace.min.js +1 -1
  294. package/inputgroup/InputGroup.d.ts +4 -0
  295. package/inputgroupaddon/InputGroupAddon.d.ts +4 -0
  296. package/inputmask/InputMask.d.ts +4 -0
  297. package/inputnumber/BaseInputNumber.vue +7 -0
  298. package/inputnumber/InputNumber.d.ts +7 -0
  299. package/inputnumber/InputNumber.vue +4 -3
  300. package/inputnumber/inputnumber.cjs.js +15 -5
  301. package/inputnumber/inputnumber.cjs.min.js +1 -1
  302. package/inputnumber/inputnumber.esm.js +15 -5
  303. package/inputnumber/inputnumber.esm.min.js +1 -1
  304. package/inputnumber/inputnumber.js +15 -5
  305. package/inputnumber/inputnumber.min.js +1 -1
  306. package/inputswitch/InputSwitch.d.ts +4 -0
  307. package/inputswitch/inputswitch.cjs.js +2 -2
  308. package/inputswitch/inputswitch.cjs.min.js +1 -1
  309. package/inputswitch/inputswitch.esm.js +2 -2
  310. package/inputswitch/inputswitch.esm.min.js +1 -1
  311. package/inputswitch/inputswitch.js +2 -2
  312. package/inputswitch/inputswitch.min.js +1 -1
  313. package/knob/Knob.d.ts +4 -0
  314. package/knob/Knob.vue +1 -1
  315. package/knob/knob.cjs.js +1 -1
  316. package/knob/knob.cjs.min.js +1 -1
  317. package/knob/knob.esm.js +1 -1
  318. package/knob/knob.esm.min.js +1 -1
  319. package/knob/knob.js +1 -1
  320. package/knob/knob.min.js +1 -1
  321. package/listbox/BaseListbox.vue +1 -1
  322. package/listbox/Listbox.d.ts +5 -1
  323. package/listbox/Listbox.vue +2 -0
  324. package/listbox/listbox.cjs.js +5 -3
  325. package/listbox/listbox.cjs.min.js +1 -1
  326. package/listbox/listbox.esm.js +5 -3
  327. package/listbox/listbox.esm.min.js +1 -1
  328. package/listbox/listbox.js +5 -3
  329. package/listbox/listbox.min.js +1 -1
  330. package/megamenu/MegaMenu.d.ts +4 -0
  331. package/megamenu/MegaMenu.vue +2 -1
  332. package/megamenu/megamenu.cjs.js +2 -1
  333. package/megamenu/megamenu.cjs.min.js +1 -1
  334. package/megamenu/megamenu.esm.js +2 -1
  335. package/megamenu/megamenu.esm.min.js +1 -1
  336. package/megamenu/megamenu.js +2 -1
  337. package/megamenu/megamenu.min.js +1 -1
  338. package/menu/Menu.d.ts +4 -0
  339. package/menu/Menu.vue +1 -0
  340. package/menu/menu.cjs.js +3 -2
  341. package/menu/menu.cjs.min.js +1 -1
  342. package/menu/menu.esm.js +3 -2
  343. package/menu/menu.esm.min.js +1 -1
  344. package/menu/menu.js +3 -2
  345. package/menu/menu.min.js +1 -1
  346. package/menubar/Menubar.d.ts +4 -0
  347. package/menubar/Menubar.vue +2 -1
  348. package/menubar/menubar.cjs.js +4 -3
  349. package/menubar/menubar.cjs.min.js +1 -1
  350. package/menubar/menubar.esm.js +4 -3
  351. package/menubar/menubar.esm.min.js +1 -1
  352. package/menubar/menubar.js +4 -3
  353. package/menubar/menubar.min.js +1 -1
  354. package/menuitem/MenuItem.d.ts +0 -6
  355. package/message/message.cjs.js +2 -2
  356. package/message/message.cjs.min.js +1 -1
  357. package/message/message.esm.js +2 -2
  358. package/message/message.esm.min.js +1 -1
  359. package/message/message.js +2 -2
  360. package/message/message.min.js +1 -1
  361. package/message/style/messagestyle.cjs.js +1 -1
  362. package/message/style/messagestyle.cjs.min.js +1 -1
  363. package/message/style/messagestyle.esm.js +1 -1
  364. package/message/style/messagestyle.esm.min.js +1 -1
  365. package/message/style/messagestyle.js +1 -1
  366. package/message/style/messagestyle.min.js +1 -1
  367. package/multiselect/MultiSelect.d.ts +4 -0
  368. package/multiselect/MultiSelect.vue +2 -0
  369. package/multiselect/multiselect.cjs.js +6 -4
  370. package/multiselect/multiselect.cjs.min.js +1 -1
  371. package/multiselect/multiselect.esm.js +6 -4
  372. package/multiselect/multiselect.esm.min.js +1 -1
  373. package/multiselect/multiselect.js +6 -4
  374. package/multiselect/multiselect.min.js +1 -1
  375. package/orderlist/BaseOrderList.vue +1 -1
  376. package/orderlist/OrderList.d.ts +5 -1
  377. package/orderlist/OrderList.vue +1 -0
  378. package/orderlist/orderlist.cjs.js +4 -3
  379. package/orderlist/orderlist.cjs.min.js +1 -1
  380. package/orderlist/orderlist.esm.js +4 -3
  381. package/orderlist/orderlist.esm.min.js +1 -1
  382. package/orderlist/orderlist.js +4 -3
  383. package/orderlist/orderlist.min.js +1 -1
  384. package/organizationchart/OrganizationChart.d.ts +4 -0
  385. package/organizationchart/OrganizationChartNode.vue +1 -1
  386. package/organizationchart/organizationchart.cjs.js +3 -3
  387. package/organizationchart/organizationchart.cjs.min.js +1 -1
  388. package/organizationchart/organizationchart.esm.js +3 -3
  389. package/organizationchart/organizationchart.esm.min.js +1 -1
  390. package/organizationchart/organizationchart.js +3 -3
  391. package/organizationchart/organizationchart.min.js +1 -1
  392. package/overlaypanel/OverlayPanel.d.ts +4 -0
  393. package/overlaypanel/overlaypanel.cjs.js +2 -2
  394. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  395. package/overlaypanel/overlaypanel.esm.js +2 -2
  396. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  397. package/overlaypanel/overlaypanel.js +2 -2
  398. package/overlaypanel/overlaypanel.min.js +1 -1
  399. package/package.json +1 -1
  400. package/paginator/Paginator.vue +4 -4
  401. package/paginator/paginator.cjs.js +2 -2
  402. package/paginator/paginator.cjs.min.js +1 -1
  403. package/paginator/paginator.esm.js +2 -2
  404. package/paginator/paginator.esm.min.js +1 -1
  405. package/paginator/paginator.js +2 -2
  406. package/paginator/paginator.min.js +1 -1
  407. package/paginator/style/paginatorstyle.cjs.js +2 -2
  408. package/paginator/style/paginatorstyle.cjs.min.js +1 -1
  409. package/paginator/style/paginatorstyle.esm.js +2 -2
  410. package/paginator/style/paginatorstyle.esm.min.js +1 -1
  411. package/paginator/style/paginatorstyle.js +2 -2
  412. package/paginator/style/paginatorstyle.min.js +1 -1
  413. package/panel/Panel.d.ts +4 -0
  414. package/panel/Panel.vue +1 -1
  415. package/panel/panel.cjs.js +3 -3
  416. package/panel/panel.cjs.min.js +1 -1
  417. package/panel/panel.esm.js +3 -3
  418. package/panel/panel.esm.min.js +1 -1
  419. package/panel/panel.js +3 -3
  420. package/panel/panel.min.js +1 -1
  421. package/panelmenu/PanelMenu.d.ts +4 -0
  422. package/panelmenu/PanelMenu.vue +1 -0
  423. package/panelmenu/PanelMenuList.vue +1 -0
  424. package/panelmenu/panelmenu.cjs.js +4 -2
  425. package/panelmenu/panelmenu.cjs.min.js +1 -1
  426. package/panelmenu/panelmenu.esm.js +4 -2
  427. package/panelmenu/panelmenu.esm.min.js +1 -1
  428. package/panelmenu/panelmenu.js +4 -2
  429. package/panelmenu/panelmenu.min.js +1 -1
  430. package/passthrough/index.cjs.js +2 -2
  431. package/passthrough/index.cjs.min.js +1 -1
  432. package/passthrough/index.esm.js +2 -2
  433. package/passthrough/index.esm.min.js +1 -1
  434. package/passthrough/index.js +2 -2
  435. package/passthrough/index.min.js +1 -1
  436. package/passthrough/tailwind/index.cjs.js +2 -71
  437. package/passthrough/tailwind/index.cjs.min.js +1 -1
  438. package/passthrough/tailwind/index.esm.js +2 -71
  439. package/passthrough/tailwind/index.esm.min.js +1 -1
  440. package/passthrough/tailwind/index.js +2 -71
  441. package/passthrough/tailwind/index.min.js +1 -1
  442. package/password/Password.d.ts +4 -0
  443. package/password/password.cjs.js +2 -4
  444. package/password/password.cjs.min.js +1 -1
  445. package/password/password.esm.js +2 -4
  446. package/password/password.esm.min.js +1 -1
  447. package/password/password.js +2 -4
  448. package/password/password.min.js +1 -1
  449. package/picklist/BasePickList.vue +1 -1
  450. package/picklist/PickList.d.ts +5 -1
  451. package/picklist/PickList.vue +2 -1
  452. package/picklist/picklist.cjs.js +5 -4
  453. package/picklist/picklist.cjs.min.js +1 -1
  454. package/picklist/picklist.esm.js +5 -4
  455. package/picklist/picklist.esm.min.js +1 -1
  456. package/picklist/picklist.js +5 -4
  457. package/picklist/picklist.min.js +1 -1
  458. package/picklist/style/pickliststyle.cjs.js +1 -1
  459. package/picklist/style/pickliststyle.cjs.min.js +1 -1
  460. package/picklist/style/pickliststyle.esm.js +1 -1
  461. package/picklist/style/pickliststyle.esm.min.js +1 -1
  462. package/picklist/style/pickliststyle.js +1 -1
  463. package/picklist/style/pickliststyle.min.js +1 -1
  464. package/progressspinner/ProgressSpinner.d.ts +4 -0
  465. package/radiobutton/RadioButton.d.ts +4 -0
  466. package/radiobutton/radiobutton.cjs.js +2 -2
  467. package/radiobutton/radiobutton.cjs.min.js +1 -1
  468. package/radiobutton/radiobutton.esm.js +2 -2
  469. package/radiobutton/radiobutton.esm.min.js +1 -1
  470. package/radiobutton/radiobutton.js +2 -2
  471. package/radiobutton/radiobutton.min.js +1 -1
  472. package/rating/Rating.d.ts +4 -0
  473. package/resources/themes/arya-blue/theme.css +4 -4
  474. package/resources/themes/arya-green/theme.css +4 -4
  475. package/resources/themes/arya-orange/theme.css +4 -4
  476. package/resources/themes/arya-purple/theme.css +4 -4
  477. package/resources/themes/bootstrap4-dark-blue/theme.css +4 -4
  478. package/resources/themes/bootstrap4-dark-purple/theme.css +4 -4
  479. package/resources/themes/bootstrap4-light-blue/theme.css +4 -4
  480. package/resources/themes/bootstrap4-light-purple/theme.css +4 -4
  481. package/resources/themes/fluent-light/theme.css +4 -4
  482. package/resources/themes/lara-dark-amber/theme.css +4 -4
  483. package/resources/themes/lara-dark-blue/theme.css +4 -4
  484. package/resources/themes/lara-dark-cyan/theme.css +4 -4
  485. package/resources/themes/lara-dark-green/theme.css +4 -4
  486. package/resources/themes/lara-dark-indigo/theme.css +4 -4
  487. package/resources/themes/lara-dark-pink/theme.css +4 -4
  488. package/resources/themes/lara-dark-purple/theme.css +4 -4
  489. package/resources/themes/lara-dark-teal/theme.css +4 -4
  490. package/resources/themes/lara-light-amber/theme.css +4 -4
  491. package/resources/themes/lara-light-blue/theme.css +4 -4
  492. package/resources/themes/lara-light-cyan/theme.css +4 -4
  493. package/resources/themes/lara-light-green/theme.css +4 -4
  494. package/resources/themes/lara-light-indigo/theme.css +4 -4
  495. package/resources/themes/lara-light-pink/theme.css +4 -4
  496. package/resources/themes/lara-light-purple/theme.css +4 -4
  497. package/resources/themes/lara-light-teal/theme.css +44 -44
  498. package/resources/themes/luna-amber/theme.css +4 -4
  499. package/resources/themes/luna-blue/theme.css +4 -4
  500. package/resources/themes/luna-green/theme.css +4 -4
  501. package/resources/themes/luna-pink/theme.css +4 -4
  502. package/resources/themes/md-dark-deeppurple/theme.css +4 -4
  503. package/resources/themes/md-dark-indigo/theme.css +4 -4
  504. package/resources/themes/md-light-deeppurple/theme.css +4 -4
  505. package/resources/themes/md-light-indigo/theme.css +4 -4
  506. package/resources/themes/mdc-dark-deeppurple/theme.css +4 -4
  507. package/resources/themes/mdc-dark-indigo/theme.css +4 -4
  508. package/resources/themes/mdc-light-deeppurple/theme.css +4 -4
  509. package/resources/themes/mdc-light-indigo/theme.css +4 -4
  510. package/resources/themes/mira/theme.css +4 -4
  511. package/resources/themes/nano/theme.css +4 -4
  512. package/resources/themes/nova/theme.css +4 -4
  513. package/resources/themes/nova-accent/theme.css +4 -4
  514. package/resources/themes/nova-alt/theme.css +4 -4
  515. package/resources/themes/nova-vue/theme.css +4 -4
  516. package/resources/themes/rhea/theme.css +4 -4
  517. package/resources/themes/saga-blue/theme.css +4 -4
  518. package/resources/themes/saga-green/theme.css +4 -4
  519. package/resources/themes/saga-orange/theme.css +4 -4
  520. package/resources/themes/saga-purple/theme.css +4 -4
  521. package/resources/themes/soho-dark/theme.css +4 -4
  522. package/resources/themes/soho-light/theme.css +4 -4
  523. package/resources/themes/tailwind-light/theme.css +4 -4
  524. package/resources/themes/vela-blue/theme.css +4 -4
  525. package/resources/themes/vela-green/theme.css +4 -4
  526. package/resources/themes/vela-orange/theme.css +4 -4
  527. package/resources/themes/vela-purple/theme.css +4 -4
  528. package/resources/themes/viva-dark/theme.css +4 -4
  529. package/resources/themes/viva-light/theme.css +4 -4
  530. package/ripple/style/ripplestyle.cjs.js +1 -1
  531. package/ripple/style/ripplestyle.cjs.min.js +1 -1
  532. package/ripple/style/ripplestyle.esm.js +1 -1
  533. package/ripple/style/ripplestyle.esm.min.js +1 -1
  534. package/ripple/style/ripplestyle.js +1 -1
  535. package/ripple/style/ripplestyle.min.js +1 -1
  536. package/row/Row.d.ts +4 -0
  537. package/row/Row.vue +7 -0
  538. package/row/row.cjs.js +9 -0
  539. package/row/row.cjs.min.js +1 -1
  540. package/row/row.esm.js +9 -0
  541. package/row/row.esm.min.js +1 -1
  542. package/row/row.js +9 -0
  543. package/row/row.min.js +1 -1
  544. package/scrollpanel/ScrollPanel.d.ts +4 -0
  545. package/scrollpanel/ScrollPanel.vue +8 -1
  546. package/scrollpanel/scrollpanel.cjs.js +14 -5
  547. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  548. package/scrollpanel/scrollpanel.esm.js +14 -5
  549. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  550. package/scrollpanel/scrollpanel.js +14 -5
  551. package/scrollpanel/scrollpanel.min.js +1 -1
  552. package/scrolltop/ScrollTop.d.ts +4 -0
  553. package/selectbutton/SelectButton.d.ts +4 -0
  554. package/sidebar/Sidebar.d.ts +4 -0
  555. package/sidebar/sidebar.cjs.js +2 -2
  556. package/sidebar/sidebar.cjs.min.js +1 -1
  557. package/sidebar/sidebar.esm.js +2 -2
  558. package/sidebar/sidebar.esm.min.js +1 -1
  559. package/sidebar/sidebar.js +2 -2
  560. package/sidebar/sidebar.min.js +1 -1
  561. package/skeleton/Skeleton.d.ts +4 -0
  562. package/slider/Slider.d.ts +4 -0
  563. package/slider/Slider.vue +26 -19
  564. package/slider/slider.cjs.js +19 -11
  565. package/slider/slider.cjs.min.js +1 -1
  566. package/slider/slider.esm.js +19 -11
  567. package/slider/slider.esm.min.js +1 -1
  568. package/slider/slider.js +19 -11
  569. package/slider/slider.min.js +1 -1
  570. package/speeddial/SpeedDial.d.ts +4 -0
  571. package/speeddial/SpeedDial.vue +1 -0
  572. package/speeddial/speeddial.cjs.js +3 -2
  573. package/speeddial/speeddial.cjs.min.js +1 -1
  574. package/speeddial/speeddial.esm.js +3 -2
  575. package/speeddial/speeddial.esm.min.js +1 -1
  576. package/speeddial/speeddial.js +3 -2
  577. package/speeddial/speeddial.min.js +1 -1
  578. package/speeddial/style/speeddialstyle.cjs.js +2 -2
  579. package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
  580. package/speeddial/style/speeddialstyle.esm.js +2 -2
  581. package/speeddial/style/speeddialstyle.esm.min.js +1 -1
  582. package/speeddial/style/speeddialstyle.js +2 -2
  583. package/speeddial/style/speeddialstyle.min.js +1 -1
  584. package/splitbutton/SplitButton.d.ts +4 -0
  585. package/splitbutton/style/splitbuttonstyle.cjs.js +2 -2
  586. package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
  587. package/splitbutton/style/splitbuttonstyle.esm.js +2 -2
  588. package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
  589. package/splitbutton/style/splitbuttonstyle.js +2 -2
  590. package/splitbutton/style/splitbuttonstyle.min.js +1 -1
  591. package/splitter/Splitter.d.ts +4 -0
  592. package/splitterpanel/SplitterPanel.d.ts +4 -0
  593. package/steps/Steps.d.ts +4 -0
  594. package/steps/Steps.vue +1 -0
  595. package/steps/steps.cjs.js +1 -0
  596. package/steps/steps.cjs.min.js +1 -1
  597. package/steps/steps.esm.js +1 -0
  598. package/steps/steps.esm.min.js +1 -1
  599. package/steps/steps.js +1 -0
  600. package/steps/steps.min.js +1 -1
  601. package/tabmenu/TabMenu.d.ts +4 -0
  602. package/tabmenu/TabMenu.vue +1 -0
  603. package/tabmenu/tabmenu.cjs.js +1 -0
  604. package/tabmenu/tabmenu.cjs.min.js +1 -1
  605. package/tabmenu/tabmenu.esm.js +1 -0
  606. package/tabmenu/tabmenu.esm.min.js +1 -1
  607. package/tabmenu/tabmenu.js +1 -0
  608. package/tabmenu/tabmenu.min.js +1 -1
  609. package/tabpanel/TabPanel.d.ts +4 -0
  610. package/tabview/TabView.vue +1 -0
  611. package/tabview/tabview.cjs.js +3 -2
  612. package/tabview/tabview.cjs.min.js +1 -1
  613. package/tabview/tabview.esm.js +3 -2
  614. package/tabview/tabview.esm.min.js +1 -1
  615. package/tabview/tabview.js +3 -2
  616. package/tabview/tabview.min.js +1 -1
  617. package/tag/Tag.d.ts +4 -0
  618. package/terminal/Terminal.d.ts +4 -0
  619. package/terminal/Terminal.vue +1 -1
  620. package/terminal/terminal.cjs.js +1 -1
  621. package/terminal/terminal.cjs.min.js +1 -1
  622. package/terminal/terminal.esm.js +1 -1
  623. package/terminal/terminal.esm.min.js +1 -1
  624. package/terminal/terminal.js +1 -1
  625. package/terminal/terminal.min.js +1 -1
  626. package/textarea/Textarea.d.ts +4 -0
  627. package/tieredmenu/TieredMenu.vue +1 -0
  628. package/tieredmenu/tieredmenu.cjs.js +3 -2
  629. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  630. package/tieredmenu/tieredmenu.esm.js +3 -2
  631. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  632. package/tieredmenu/tieredmenu.js +3 -2
  633. package/tieredmenu/tieredmenu.min.js +1 -1
  634. package/timeline/Timeline.d.ts +4 -0
  635. package/toast/Toast.d.ts +4 -0
  636. package/toast/style/toaststyle.cjs.js +2 -2
  637. package/toast/style/toaststyle.cjs.min.js +1 -1
  638. package/toast/style/toaststyle.esm.js +2 -2
  639. package/toast/style/toaststyle.esm.min.js +1 -1
  640. package/toast/style/toaststyle.js +2 -2
  641. package/toast/style/toaststyle.min.js +1 -1
  642. package/toast/toast.cjs.js +4 -4
  643. package/toast/toast.cjs.min.js +1 -1
  644. package/toast/toast.esm.js +4 -4
  645. package/toast/toast.esm.min.js +1 -1
  646. package/toast/toast.js +4 -4
  647. package/toast/toast.min.js +1 -1
  648. package/togglebutton/ToggleButton.d.ts +4 -0
  649. package/togglebutton/togglebutton.cjs.js +2 -2
  650. package/togglebutton/togglebutton.cjs.min.js +1 -1
  651. package/togglebutton/togglebutton.esm.js +2 -2
  652. package/togglebutton/togglebutton.esm.min.js +1 -1
  653. package/togglebutton/togglebutton.js +2 -2
  654. package/togglebutton/togglebutton.min.js +1 -1
  655. package/toolbar/Toolbar.d.ts +4 -0
  656. package/tooltip/Tooltip.d.ts +4 -0
  657. package/tree/BaseTree.vue +1 -1
  658. package/tree/Tree.d.ts +1 -1
  659. package/tree/Tree.vue +1 -1
  660. package/tree/TreeNode.vue +1 -0
  661. package/tree/tree.cjs.js +7 -6
  662. package/tree/tree.cjs.min.js +1 -1
  663. package/tree/tree.esm.js +7 -6
  664. package/tree/tree.esm.min.js +1 -1
  665. package/tree/tree.js +7 -6
  666. package/tree/tree.min.js +1 -1
  667. package/treeselect/BaseTreeSelect.vue +1 -1
  668. package/treeselect/TreeSelect.d.ts +5 -1
  669. package/treeselect/TreeSelect.vue +1 -0
  670. package/treeselect/treeselect.cjs.js +6 -5
  671. package/treeselect/treeselect.cjs.min.js +1 -1
  672. package/treeselect/treeselect.esm.js +6 -5
  673. package/treeselect/treeselect.esm.min.js +1 -1
  674. package/treeselect/treeselect.js +6 -5
  675. package/treeselect/treeselect.min.js +1 -1
  676. package/treetable/BaseTreeTable.vue +5 -1
  677. package/treetable/HeaderCell.vue +1 -1
  678. package/treetable/TreeTable.d.ts +10 -1
  679. package/treetable/TreeTable.vue +32 -24
  680. package/treetable/TreeTableRow.vue +32 -20
  681. package/treetable/style/treetablestyle.cjs.js +1 -1
  682. package/treetable/style/treetablestyle.cjs.min.js +1 -1
  683. package/treetable/style/treetablestyle.esm.js +1 -1
  684. package/treetable/style/treetablestyle.esm.min.js +1 -1
  685. package/treetable/style/treetablestyle.js +1 -1
  686. package/treetable/style/treetablestyle.min.js +1 -1
  687. package/treetable/treetable.cjs.js +82 -55
  688. package/treetable/treetable.cjs.min.js +1 -1
  689. package/treetable/treetable.esm.js +83 -56
  690. package/treetable/treetable.esm.min.js +1 -1
  691. package/treetable/treetable.js +82 -55
  692. package/treetable/treetable.min.js +1 -1
  693. package/tristatecheckbox/TriStateCheckbox.d.ts +4 -0
  694. package/tristatecheckbox/TriStateCheckbox.vue +1 -1
  695. package/tristatecheckbox/tristatecheckbox.cjs.js +3 -3
  696. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  697. package/tristatecheckbox/tristatecheckbox.esm.js +3 -3
  698. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  699. package/tristatecheckbox/tristatecheckbox.js +3 -3
  700. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  701. package/usestyle/usestyle.cjs.js +2 -2
  702. package/usestyle/usestyle.cjs.min.js +1 -1
  703. package/usestyle/usestyle.esm.js +2 -2
  704. package/usestyle/usestyle.esm.min.js +1 -1
  705. package/usestyle/usestyle.js +2 -2
  706. package/usestyle/usestyle.min.js +1 -1
  707. package/utils/Utils.d.ts +10 -0
  708. package/utils/utils.cjs.js +167 -42
  709. package/utils/utils.cjs.min.js +1 -1
  710. package/utils/utils.esm.js +167 -43
  711. package/utils/utils.esm.min.js +1 -1
  712. package/utils/utils.js +167 -42
  713. package/utils/utils.min.js +1 -1
  714. package/vetur-attributes.json +4 -0
  715. package/vetur-tags.json +1 -0
  716. package/virtualscroller/VirtualScroller.d.ts +4 -0
  717. package/virtualscroller/VirtualScroller.vue +20 -16
  718. package/virtualscroller/style/virtualscrollerstyle.cjs.js +1 -1
  719. package/virtualscroller/style/virtualscrollerstyle.cjs.min.js +1 -1
  720. package/virtualscroller/style/virtualscrollerstyle.esm.js +1 -1
  721. package/virtualscroller/style/virtualscrollerstyle.esm.min.js +1 -1
  722. package/virtualscroller/style/virtualscrollerstyle.js +1 -1
  723. package/virtualscroller/style/virtualscrollerstyle.min.js +1 -1
  724. package/virtualscroller/virtualscroller.cjs.js +24 -20
  725. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  726. package/virtualscroller/virtualscroller.esm.js +24 -20
  727. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  728. package/virtualscroller/virtualscroller.js +24 -20
  729. package/virtualscroller/virtualscroller.min.js +1 -1
  730. 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,
@@ -360,6 +360,7 @@ var script$a = {
360
360
  DomHandler.focus(this.$refs.input);
361
361
  }
362
362
  event.preventDefault();
363
+ event.stopPropagation();
363
364
  },
364
365
  onFocus: function onFocus() {
365
366
  this.focused = true;
@@ -388,7 +389,7 @@ var script$a = {
388
389
  };
389
390
 
390
391
  var _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
391
- function render$a(_ctx, _cache, $props, $setup, $data, $options) {
392
+ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
392
393
  var _component_CheckIcon = resolveComponent("CheckIcon");
393
394
  return openBlock(), createElementBlock("div", mergeProps({
394
395
  "class": _ctx.cx('checkboxWrapper'),
@@ -428,9 +429,9 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
428
429
  }, $options.getColumnPT('checkboxIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 16)], 16);
429
430
  }
430
431
 
431
- script$a.render = render$a;
432
+ script$b.render = render$b;
432
433
 
433
- var script$9 = {
434
+ var script$a = {
434
435
  name: 'RowRadioButton',
435
436
  hostName: 'DataTable',
436
437
  "extends": BaseComponent,
@@ -495,7 +496,7 @@ var script$9 = {
495
496
  };
496
497
 
497
498
  var _hoisted_1$6 = ["checked", "disabled", "name"];
498
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
499
+ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
499
500
  return openBlock(), createElementBlock("div", mergeProps({
500
501
  "class": _ctx.cx('radiobuttonWrapper'),
501
502
  onClick: _cache[3] || (_cache[3] = function () {
@@ -529,9 +530,9 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
529
530
  }, $options.getColumnPT('radiobuttonIcon')), null, 16)], 16)], 16);
530
531
  }
531
532
 
532
- script$9.render = render$9;
533
+ script$a.render = render$a;
533
534
 
534
- var script$8 = {
535
+ var script$9 = {
535
536
  name: 'BodyCell',
536
537
  hostName: 'DataTable',
537
538
  "extends": BaseComponent,
@@ -983,8 +984,8 @@ var script$8 = {
983
984
  }
984
985
  },
985
986
  components: {
986
- DTRadioButton: script$9,
987
- DTCheckbox: script$a,
987
+ DTRadioButton: script$a,
988
+ DTCheckbox: script$b,
988
989
  ChevronDownIcon: ChevronDownIcon,
989
990
  ChevronRightIcon: ChevronRightIcon,
990
991
  BarsIcon: BarsIcon,
@@ -997,18 +998,18 @@ var script$8 = {
997
998
  }
998
999
  };
999
1000
 
1000
- 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); }
1001
- 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; }
1002
- 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; }
1003
- 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; }
1004
- function _toPropertyKey$9(arg) { var key = _toPrimitive$9(arg, "string"); return _typeof$9(key) === "symbol" ? key : String(key); }
1005
- function _toPrimitive$9(input, hint) { if (_typeof$9(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$9(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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); }
1006
1007
  var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
1007
1008
  var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
1008
1009
  var _hoisted_3$2 = ["aria-label"];
1009
1010
  var _hoisted_4$1 = ["aria-label"];
1010
1011
  var _hoisted_5$1 = ["aria-label"];
1011
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1012
+ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
1012
1013
  var _component_DTRadioButton = resolveComponent("DTRadioButton");
1013
1014
  var _component_DTCheckbox = resolveComponent("DTCheckbox");
1014
1015
  var _component_BarsIcon = resolveComponent("BarsIcon");
@@ -1020,7 +1021,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1020
1021
  style: $options.containerStyle,
1021
1022
  "class": $options.containerClass,
1022
1023
  role: "cell"
1023
- }, _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), {
1024
1025
  data: $props.rowData,
1025
1026
  column: $props.column,
1026
1027
  field: $options.field,
@@ -1040,7 +1041,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1040
1041
  return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1041
1042
  }),
1042
1043
  role: "cell"
1043
- }, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1044
+ }, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1044
1045
  "data-p-selection-column": $options.columnProp('selectionMode') != null,
1045
1046
  "data-p-editable-column": $options.isEditable(),
1046
1047
  "data-p-cell-editing": $data.d_editing,
@@ -1183,14 +1184,28 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1183
1184
  }, [createTextVNode(toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$5));
1184
1185
  }
1185
1186
 
1186
- script$8.render = render$8;
1187
+ script$9.render = render$9;
1187
1188
 
1188
- var script$7 = {
1189
- 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',
1190
1197
  hostName: 'DataTable',
1191
1198
  "extends": BaseComponent,
1192
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'],
1193
1200
  props: {
1201
+ rowData: {
1202
+ type: Object,
1203
+ "default": null
1204
+ },
1205
+ index: {
1206
+ type: Number,
1207
+ "default": 0
1208
+ },
1194
1209
  value: {
1195
1210
  type: Array,
1196
1211
  "default": null
@@ -1240,11 +1255,7 @@ var script$7 = {
1240
1255
  "default": null
1241
1256
  },
1242
1257
  expandedRows: {
1243
- type: Array,
1244
- "default": null
1245
- },
1246
- expandedRowKeys: {
1247
- type: null,
1258
+ type: [Array, Object],
1248
1259
  "default": null
1249
1260
  },
1250
1261
  selection: {
@@ -1275,6 +1286,10 @@ var script$7 = {
1275
1286
  type: null,
1276
1287
  "default": null
1277
1288
  },
1289
+ rowGroupHeaderStyle: {
1290
+ type: null,
1291
+ "default": null
1292
+ },
1278
1293
  editMode: {
1279
1294
  type: String,
1280
1295
  "default": null
@@ -1314,35 +1329,34 @@ var script$7 = {
1314
1329
  isVirtualScrollerDisabled: {
1315
1330
  type: Boolean,
1316
1331
  "default": false
1332
+ },
1333
+ expandedRowId: {
1334
+ type: String,
1335
+ "default": null
1336
+ },
1337
+ nameAttributeSelector: {
1338
+ type: String,
1339
+ "default": null
1317
1340
  }
1318
1341
  },
1319
1342
  data: function data() {
1320
1343
  return {
1321
- rowGroupHeaderStyleObject: {},
1322
- tabindexArray: [],
1323
- isARowSelected: false
1344
+ d_rowExpanded: false
1324
1345
  };
1325
1346
  },
1326
- mounted: function mounted() {
1327
- if (this.frozenRow) {
1328
- this.updateFrozenRowStickyPosition();
1329
- }
1330
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1331
- this.updateFrozenRowGroupHeaderStickyPosition();
1332
- }
1333
- },
1334
- updated: function updated() {
1335
- if (this.frozenRow) {
1336
- this.updateFrozenRowStickyPosition();
1337
- }
1338
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1339
- 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
+ });
1340
1353
  }
1341
1354
  },
1342
1355
  methods: {
1343
1356
  columnProp: function columnProp(col, prop) {
1344
1357
  return ObjectUtils.getVNodeProp(col, prop);
1345
1358
  },
1359
+ //@todo - update this method
1346
1360
  getColumnPT: function getColumnPT(key) {
1347
1361
  var columnMetaData = {
1348
1362
  parent: {
@@ -1353,80 +1367,33 @@ var script$7 = {
1353
1367
  };
1354
1368
  return mergeProps(this.ptm("column.".concat(key), {
1355
1369
  column: columnMetaData
1356
- }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp({}), key, columnMetaData));
1357
- },
1358
- getColumnProp: function getColumnProp(column) {
1359
- return column.props && column.props.pt ? column.props.pt : undefined; //@todo
1370
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.columnProp({}, 'pt'), key, columnMetaData));
1360
1371
  },
1361
- getBodyRowPTOptions: function getBodyRowPTOptions(key, rowdata, index) {
1362
- 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;
1363
1376
  return this.ptm(key, {
1364
1377
  context: {
1365
- index: index,
1366
- 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),
1367
- selected: this.isSelected(rowdata),
1368
- 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
1369
1382
  }
1370
1383
  });
1371
1384
  },
1372
- shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader(value, rowData, i) {
1373
- var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1374
- var prevRowData = value[i - 1];
1375
- if (prevRowData) {
1376
- var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
1377
- return currentRowFieldData !== previousRowFieldData;
1378
- } else {
1379
- return true;
1380
- }
1381
- },
1382
- getRowKey: function getRowKey(rowData, index) {
1383
- return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
1384
- },
1385
- getRowIndex: function getRowIndex(index) {
1386
- var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
1387
- return getItemOptions ? getItemOptions(index).index : index;
1388
- },
1389
- getRowStyle: function getRowStyle(rowData) {
1390
- if (this.rowStyle) {
1391
- return this.rowStyle(rowData);
1392
- }
1393
- },
1394
- getRowClass: function getRowClass(rowData) {
1395
- var rowStyleClass = [];
1396
- if (this.rowClass) {
1397
- var rowClassValue = this.rowClass(rowData);
1398
- if (rowClassValue) {
1399
- rowStyleClass.push(rowClassValue);
1400
- }
1401
- }
1402
- return [this.cx('row', {
1403
- rowData: rowData
1404
- }), rowStyleClass];
1405
- },
1406
- shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter(value, rowData, i) {
1407
- if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
1408
- return false;
1409
- } else {
1410
- var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1411
- var nextRowData = value[i + 1];
1412
- if (nextRowData) {
1413
- var nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
1414
- return currentRowFieldData !== nextRowFieldData;
1415
- } else {
1416
- return true;
1417
- }
1418
- }
1419
- },
1420
- shouldRenderBodyCell: function shouldRenderBodyCell(value, column, i) {
1421
- 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');
1422
1389
  if (this.rowGroupMode === 'subheader') {
1423
- return this.groupRowsBy !== this.columnProp(column, 'field');
1390
+ return this.groupRowsBy !== field;
1424
1391
  } else if (this.rowGroupMode === 'rowspan') {
1425
1392
  if (this.isGrouped(column)) {
1426
- var prevRowData = value[i - 1];
1393
+ var prevRowData = this.value[this.rowIndex - 1];
1427
1394
  if (prevRowData) {
1428
- var currentRowFieldData = ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
1429
- 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);
1430
1397
  return currentRowFieldData !== previousRowFieldData;
1431
1398
  } else {
1432
1399
  return true;
@@ -1436,19 +1403,21 @@ var script$7 = {
1436
1403
  }
1437
1404
  }
1438
1405
  } else {
1439
- return !this.columnProp(column, 'hidden');
1406
+ return !isHidden;
1440
1407
  }
1441
1408
  },
1442
- calculateRowGroupSize: function calculateRowGroupSize(value, column, index) {
1409
+ calculateRowGroupSize: function calculateRowGroupSize(column) {
1443
1410
  if (this.isGrouped(column)) {
1444
- 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);
1445
1414
  var nextRowFieldData = currentRowFieldData;
1446
1415
  var groupRowSpan = 0;
1447
1416
  while (currentRowFieldData === nextRowFieldData) {
1448
1417
  groupRowSpan++;
1449
- var nextRowData = value[++index];
1418
+ var nextRowData = this.value[++index];
1450
1419
  if (nextRowData) {
1451
- nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
1420
+ nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, field);
1452
1421
  } else {
1453
1422
  break;
1454
1423
  }
@@ -1459,55 +1428,21 @@ var script$7 = {
1459
1428
  }
1460
1429
  },
1461
1430
  isGrouped: function isGrouped(column) {
1462
- if (this.groupRowsBy && this.columnProp(column, 'field')) {
1463
- 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;
1464
1434
  } else {
1465
1435
  return false;
1466
1436
  }
1467
1437
  },
1468
- isRowEditing: function isRowEditing(rowData) {
1469
- if (rowData && this.editingRows) {
1470
- if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.editingRows) > -1;
1471
- }
1472
- return false;
1473
- },
1474
- isRowExpanded: function isRowExpanded(rowData) {
1475
- if (rowData && this.expandedRows) {
1476
- if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.expandedRows) > -1;
1477
- }
1478
- return false;
1479
- },
1480
- isRowGroupExpanded: function isRowGroupExpanded(rowData) {
1481
- if (this.expandableRowGroups && this.expandedRowGroups) {
1482
- var groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1483
- return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
1484
- }
1485
- return false;
1486
- },
1487
- isSelected: function isSelected(rowData) {
1488
- if (rowData && this.selection) {
1489
- if (this.dataKey) {
1490
- return this.selectionKeys ? this.selectionKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
1491
- } else {
1492
- if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);
1493
- }
1494
- }
1495
- return false;
1438
+ findIndexInSelection: function findIndexInSelection(data) {
1439
+ return this.findIndex(data, this.selection);
1496
1440
  },
1497
- isSelectedWithContextMenu: function isSelectedWithContextMenu(rowData) {
1498
- if (rowData && this.contextMenuSelection) {
1499
- return this.equals(rowData, this.contextMenuSelection, this.dataKey);
1500
- }
1501
- return false;
1502
- },
1503
- findIndexInSelection: function findIndexInSelection(rowData) {
1504
- return this.findIndex(rowData, this.selection);
1505
- },
1506
- findIndex: function findIndex(rowData, collection) {
1441
+ findIndex: function findIndex(data, collection) {
1507
1442
  var index = -1;
1508
1443
  if (collection && collection.length) {
1509
1444
  for (var i = 0; i < collection.length; i++) {
1510
- if (this.equals(rowData, collection[i])) {
1445
+ if (this.equals(data, collection[i])) {
1511
1446
  index = i;
1512
1447
  break;
1513
1448
  }
@@ -1518,56 +1453,56 @@ var script$7 = {
1518
1453
  equals: function equals(data1, data2) {
1519
1454
  return this.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.dataKey);
1520
1455
  },
1521
- onRowGroupToggle: function onRowGroupToggle(event, data) {
1456
+ onRowGroupToggle: function onRowGroupToggle(event) {
1522
1457
  this.$emit('rowgroup-toggle', {
1523
1458
  originalEvent: event,
1524
- data: data
1459
+ data: this.rowData
1525
1460
  });
1526
1461
  },
1527
- onRowClick: function onRowClick(event, rowData, rowIndex) {
1462
+ onRowClick: function onRowClick(event) {
1528
1463
  this.$emit('row-click', {
1529
1464
  originalEvent: event,
1530
- data: rowData,
1531
- index: rowIndex
1465
+ data: this.rowData,
1466
+ index: this.rowIndex
1532
1467
  });
1533
1468
  },
1534
- onRowDblClick: function onRowDblClick(event, rowData, rowIndex) {
1469
+ onRowDblClick: function onRowDblClick(event) {
1535
1470
  this.$emit('row-dblclick', {
1536
1471
  originalEvent: event,
1537
- data: rowData,
1538
- index: rowIndex
1472
+ data: this.rowData,
1473
+ index: this.rowIndex
1539
1474
  });
1540
1475
  },
1541
- onRowRightClick: function onRowRightClick(event, rowData, rowIndex) {
1476
+ onRowRightClick: function onRowRightClick(event) {
1542
1477
  this.$emit('row-rightclick', {
1543
1478
  originalEvent: event,
1544
- data: rowData,
1545
- index: rowIndex
1479
+ data: this.rowData,
1480
+ index: this.rowIndex
1546
1481
  });
1547
1482
  },
1548
1483
  onRowTouchEnd: function onRowTouchEnd(event) {
1549
1484
  this.$emit('row-touchend', event);
1550
1485
  },
1551
- onRowKeyDown: function onRowKeyDown(event, rowData, rowIndex) {
1486
+ onRowKeyDown: function onRowKeyDown(event) {
1552
1487
  this.$emit('row-keydown', {
1553
1488
  originalEvent: event,
1554
- data: rowData,
1555
- index: rowIndex
1489
+ data: this.rowData,
1490
+ index: this.rowIndex
1556
1491
  });
1557
1492
  },
1558
1493
  onRowMouseDown: function onRowMouseDown(event) {
1559
1494
  this.$emit('row-mousedown', event);
1560
1495
  },
1561
- onRowDragStart: function onRowDragStart(event, rowIndex) {
1496
+ onRowDragStart: function onRowDragStart(event) {
1562
1497
  this.$emit('row-dragstart', {
1563
1498
  originalEvent: event,
1564
- index: rowIndex
1499
+ index: this.rowIndex
1565
1500
  });
1566
1501
  },
1567
- onRowDragOver: function onRowDragOver(event, rowIndex) {
1502
+ onRowDragOver: function onRowDragOver(event) {
1568
1503
  this.$emit('row-dragover', {
1569
1504
  originalEvent: event,
1570
- index: rowIndex
1505
+ index: this.rowIndex
1571
1506
  });
1572
1507
  },
1573
1508
  onRowDragLeave: function onRowDragLeave(event) {
@@ -1580,7 +1515,10 @@ var script$7 = {
1580
1515
  this.$emit('row-drop', event);
1581
1516
  },
1582
1517
  onRowToggle: function onRowToggle(event) {
1583
- 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
+ }));
1584
1522
  },
1585
1523
  onRadioChange: function onRadioChange(event) {
1586
1524
  this.$emit('radio-change', event);
@@ -1609,6 +1547,420 @@ var script$7 = {
1609
1547
  onEditingMetaChange: function onEditingMetaChange(event) {
1610
1548
  this.$emit('editing-meta-change', event);
1611
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: {
1612
1964
  updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
1613
1965
  this.$el.style.top = DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
1614
1966
  },
@@ -1624,74 +1976,42 @@ var script$7 = {
1624
1976
  // For VirtualScroller
1625
1977
  var contentRef = this.getVirtualScrollerProp('contentRef');
1626
1978
  contentRef && contentRef(el);
1627
- },
1628
- setRowTabindex: function setRowTabindex(index) {
1629
- if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
1630
- return index === 0 ? 0 : -1;
1631
- }
1632
- return -1;
1633
1979
  }
1634
1980
  },
1635
1981
  computed: {
1636
- columnsLength: function columnsLength() {
1637
- var _this = this;
1638
- var hiddenColLength = 0;
1639
- this.columns.forEach(function (column) {
1640
- if (_this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
1641
- if (_this.columnProp(column, 'hidden')) hiddenColLength++;
1642
- });
1643
- return this.columns ? this.columns.length - hiddenColLength : 0;
1644
- },
1645
1982
  rowGroupHeaderStyle: function rowGroupHeaderStyle() {
1646
1983
  if (this.scrollable) {
1647
1984
  return {
1648
1985
  top: this.rowGroupHeaderStyleObject.top
1649
1986
  };
1650
1987
  }
1651
- return null;
1652
- },
1653
- bodyStyle: function bodyStyle() {
1654
- return this.getVirtualScrollerProp('contentStyle');
1655
- },
1656
- expandedRowId: function expandedRowId() {
1657
- return UniqueComponentId();
1988
+ return null;
1658
1989
  },
1659
- nameAttributeSelector: function nameAttributeSelector() {
1660
- return UniqueComponentId();
1990
+ bodyStyle: function bodyStyle() {
1991
+ return this.getVirtualScrollerProp('contentStyle');
1661
1992
  },
1662
1993
  ptmTBodyOptions: function ptmTBodyOptions() {
1663
- var _this$$parentInstance4;
1994
+ var _this$$parentInstance;
1664
1995
  return {
1665
1996
  context: {
1666
- 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
1667
1998
  }
1668
1999
  };
2000
+ },
2001
+ expandedRowId: function expandedRowId() {
2002
+ return UniqueComponentId();
2003
+ },
2004
+ nameAttributeSelector: function nameAttributeSelector() {
2005
+ return UniqueComponentId();
1669
2006
  }
1670
2007
  },
1671
2008
  components: {
1672
- DTBodyCell: script$8,
1673
- ChevronDownIcon: ChevronDownIcon,
1674
- ChevronRightIcon: ChevronRightIcon
2009
+ DTBodyRow: script$8
1675
2010
  }
1676
2011
  };
1677
2012
 
1678
- 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); }
1679
- 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; }
1680
- 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; }
1681
- 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; }
1682
- function _toPropertyKey$8(arg) { var key = _toPrimitive$8(arg, "string"); return _typeof$8(key) === "symbol" ? key : String(key); }
1683
- function _toPrimitive$8(input, hint) { if (_typeof$8(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$8(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1684
- var _hoisted_1$4 = ["colspan"];
1685
- var _hoisted_2$1 = ["onClick"];
1686
- var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
1687
- var _hoisted_4 = ["id"];
1688
- var _hoisted_5 = ["colspan"];
1689
- var _hoisted_6 = ["colspan"];
1690
- var _hoisted_7 = ["colspan"];
1691
2013
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1692
- var _component_ChevronDownIcon = resolveComponent("ChevronDownIcon");
1693
- var _component_ChevronRightIcon = resolveComponent("ChevronRightIcon");
1694
- var _component_DTBodyCell = resolveComponent("DTBodyCell");
2014
+ var _component_DTBodyRow = resolveComponent("DTBodyRow");
1695
2015
  return openBlock(), createElementBlock("tbody", mergeProps({
1696
2016
  ref: $options.bodyRef,
1697
2017
  "class": _ctx.cx('tbody'),
@@ -1699,165 +2019,119 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1699
2019
  style: $options.bodyStyle
1700
2020
  }, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (openBlock(true), createElementBlock(Fragment, {
1701
2021
  key: 0
1702
- }, renderList($props.value, function (rowData, index) {
1703
- return openBlock(), createElementBlock(Fragment, null, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)) ? (openBlock(), createElementBlock("tr", mergeProps({
1704
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader',
1705
- "class": _ctx.cx('rowGroupHeader'),
1706
- style: $options.rowGroupHeaderStyle,
1707
- role: "row"
1708
- }, _ctx.ptm('rowGroupHeader')), [createElementVNode("td", mergeProps({
1709
- colspan: $options.columnsLength - 1
1710
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (openBlock(), createElementBlock("button", mergeProps({
1711
- key: 0,
1712
- "class": _ctx.cx('rowGroupToggler'),
1713
- onClick: function onClick($event) {
1714
- return $options.onRowGroupToggle($event, rowData);
1715
- },
1716
- type: "button"
1717
- }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1718
- key: 0,
1719
- expanded: $options.isRowGroupExpanded(rowData)
1720
- }, null, 8, ["expanded"])) : (openBlock(), createElementBlock(Fragment, {
1721
- key: 1
1722
- }, [$options.isRowGroupExpanded(rowData) && $props.expandedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
1723
- key: 0,
1724
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1725
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (openBlock(), createBlock(_component_ChevronDownIcon, mergeProps({
1726
- key: 1,
1727
- "class": _ctx.cx('rowGroupTogglerIcon')
1728
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
1729
- key: 2,
1730
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1731
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (openBlock(), createBlock(_component_ChevronRightIcon, mergeProps({
1732
- key: 3,
1733
- "class": _ctx.cx('rowGroupTogglerIcon')
1734
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 64))], 16, _hoisted_2$1)) : createCommentVNode("", true), (openBlock(), createBlock(resolveDynamicComponent($props.templates['groupheader']), {
1735
- data: rowData,
1736
- index: $options.getRowIndex(index)
1737
- }, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true) ? (openBlock(), createElementBlock("tr", mergeProps({
1738
- key: $options.getRowKey(rowData, $options.getRowIndex(index)),
1739
- "class": $options.getRowClass(rowData),
1740
- style: $options.getRowStyle(rowData),
1741
- tabindex: $options.setRowTabindex(index),
1742
- role: "row",
1743
- "aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
1744
- onClick: function onClick($event) {
1745
- return $options.onRowClick($event, rowData, $options.getRowIndex(index));
1746
- },
1747
- onDblclick: function onDblclick($event) {
1748
- return $options.onRowDblClick($event, rowData, $options.getRowIndex(index));
1749
- },
1750
- onContextmenu: function onContextmenu($event) {
1751
- return $options.onRowRightClick($event, rowData, $options.getRowIndex(index));
1752
- },
1753
- onTouchend: _cache[9] || (_cache[9] = function ($event) {
1754
- 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);
1755
2062
  }),
1756
- onKeydown: withModifiers(function ($event) {
1757
- return $options.onRowKeyDown($event, rowData, $options.getRowIndex(index));
1758
- }, ["self"]),
1759
- onMousedown: _cache[10] || (_cache[10] = function ($event) {
1760
- return $options.onRowMouseDown($event);
2063
+ onRowClick: _cache[1] || (_cache[1] = function ($event) {
2064
+ return _ctx.$emit('row-click', $event);
1761
2065
  }),
1762
- onDragstart: function onDragstart($event) {
1763
- return $options.onRowDragStart($event, $options.getRowIndex(index));
1764
- },
1765
- onDragover: function onDragover($event) {
1766
- return $options.onRowDragOver($event, $options.getRowIndex(index));
1767
- },
1768
- onDragleave: _cache[11] || (_cache[11] = function ($event) {
1769
- return $options.onRowDragLeave($event);
2066
+ onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
2067
+ return _ctx.$emit('row-dblclick', $event);
1770
2068
  }),
1771
- onDragend: _cache[12] || (_cache[12] = function ($event) {
1772
- return $options.onRowDragEnd($event);
2069
+ onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
2070
+ return _ctx.$emit('row-rightclick', $event);
1773
2071
  }),
1774
- onDrop: _cache[13] || (_cache[13] = function ($event) {
1775
- return $options.onRowDrop($event);
1776
- })
1777
- }, $options.getBodyRowPTOptions('bodyRow', rowData, index), {
1778
- "data-p-selectable-row": $props.selectionMode ? true : false,
1779
- "data-p-highlight": $props.selection && $options.isSelected(rowData),
1780
- "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu(rowData)
1781
- }), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, function (col, i) {
1782
- return openBlock(), createElementBlock(Fragment, null, [$options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)) ? (openBlock(), createBlock(_component_DTBodyCell, {
1783
- key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
1784
- rowData: rowData,
1785
- column: col,
1786
- rowIndex: $options.getRowIndex(index),
1787
- index: i,
1788
- selected: $options.isSelected(rowData),
1789
- frozenRow: $props.frozenRow,
1790
- rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
1791
- editMode: $props.editMode,
1792
- editing: $props.editMode === 'row' && $options.isRowEditing(rowData),
1793
- editingMeta: $props.editingMeta,
1794
- responsiveLayout: $props.responsiveLayout,
1795
- virtualScrollerContentProps: $props.virtualScrollerContentProps,
1796
- ariaControls: $options.expandedRowId + '_' + index + '_expansion',
1797
- name: $options.nameAttributeSelector,
1798
- isRowExpanded: $options.isRowExpanded(rowData),
1799
- expandedRowIcon: $props.expandedRowIcon,
1800
- collapsedRowIcon: $props.collapsedRowIcon,
1801
- onRadioChange: _cache[0] || (_cache[0] = function ($event) {
1802
- return $options.onRadioChange($event);
1803
- }),
1804
- onCheckboxChange: _cache[1] || (_cache[1] = function ($event) {
1805
- return $options.onCheckboxChange($event);
1806
- }),
1807
- onRowToggle: _cache[2] || (_cache[2] = function ($event) {
1808
- return $options.onRowToggle($event);
1809
- }),
1810
- onCellEditInit: _cache[3] || (_cache[3] = function ($event) {
1811
- return $options.onCellEditInit($event);
1812
- }),
1813
- onCellEditComplete: _cache[4] || (_cache[4] = function ($event) {
1814
- return $options.onCellEditComplete($event);
1815
- }),
1816
- onCellEditCancel: _cache[5] || (_cache[5] = function ($event) {
1817
- return $options.onCellEditCancel($event);
1818
- }),
1819
- onRowEditInit: _cache[6] || (_cache[6] = function ($event) {
1820
- return $options.onRowEditInit($event);
1821
- }),
1822
- onRowEditSave: _cache[7] || (_cache[7] = function ($event) {
1823
- return $options.onRowEditSave($event);
1824
- }),
1825
- onRowEditCancel: _cache[8] || (_cache[8] = function ($event) {
1826
- return $options.onRowEditCancel($event);
1827
- }),
1828
- onEditingMetaChange: $options.onEditingMetaChange,
1829
- unstyled: _ctx.unstyled,
1830
- pt: _ctx.pt
1831
- }, 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);
1832
- }), 256))], 16, _hoisted_3$1)) : createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData) ? (openBlock(), createElementBlock("tr", mergeProps({
1833
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
1834
- id: $options.expandedRowId + '_' + index + '_expansion',
1835
- "class": _ctx.cx('rowExpansion'),
1836
- role: "row"
1837
- }, _ctx.ptm('rowExpansion')), [createElementVNode("td", mergeProps({
1838
- colspan: $options.columnsLength
1839
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['expansion']), {
1840
- data: rowData,
1841
- index: $options.getRowIndex(index)
1842
- }, 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({
1843
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
1844
- "class": _ctx.cx('rowGroupFooter'),
1845
- role: "row"
1846
- }, _ctx.ptm('rowGroupFooter')), [createElementVNode("td", mergeProps({
1847
- colspan: $options.columnsLength - 1
1848
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
1849
- data: rowData,
1850
- index: $options.getRowIndex(index)
1851
- }, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : createCommentVNode("", true)], 64);
1852
- }), 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, {
1853
2130
  key: 1,
1854
- "class": _ctx.cx('emptyMessage'),
1855
- role: "row"
1856
- }, _ctx.ptm('emptyMessage')), [createElementVNode("td", mergeProps({
1857
- colspan: $options.columnsLength
1858
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.empty), {
1859
- key: 0
1860
- })) : 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);
1861
2135
  }
1862
2136
 
1863
2137
  script$7.render = render$7;
@@ -1954,8 +2228,8 @@ function _typeof$7(o) { "@babel/helpers - typeof"; return _typeof$7 = "function"
1954
2228
  function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1955
2229
  function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty$7(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1956
2230
  function _defineProperty$7(obj, key, value) { key = _toPropertyKey$7(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1957
- function _toPropertyKey$7(arg) { var key = _toPrimitive$7(arg, "string"); return _typeof$7(key) === "symbol" ? key : String(key); }
1958
- function _toPrimitive$7(input, hint) { if (_typeof$7(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$7(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2231
+ function _toPropertyKey$7(t) { var i = _toPrimitive$7(t, "string"); return "symbol" == _typeof$7(i) ? i : String(i); }
2232
+ function _toPrimitive$7(t, r) { if ("object" != _typeof$7(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$7(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1959
2233
  var _hoisted_1$3 = ["colspan", "rowspan", "data-p-frozen-column"];
1960
2234
  function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1961
2235
  return openBlock(), createElementBlock("td", mergeProps({
@@ -1974,13 +2248,9 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1974
2248
 
1975
2249
  script$6.render = render$6;
1976
2250
 
1977
- function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2(); }
1978
- 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."); }
1979
- function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
1980
- function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
1981
- 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; } } }; }
1982
- 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); }
1983
- 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; }
1984
2254
  var script$5 = {
1985
2255
  name: 'TableFooter',
1986
2256
  hostName: 'DataTable',
@@ -1995,6 +2265,26 @@ var script$5 = {
1995
2265
  "default": null
1996
2266
  }
1997
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
+ },
1998
2288
  methods: {
1999
2289
  columnProp: function columnProp(col, prop) {
2000
2290
  return ObjectUtils.getVNodeProp(col, prop);
@@ -2039,36 +2329,12 @@ var script$5 = {
2039
2329
  return row.props && row.props.pt ? row.props.pt : undefined; //@todo
2040
2330
  },
2041
2331
  getFooterRows: function getFooterRows() {
2042
- var rows = [];
2043
- var columnGroup = this.columnGroup;
2044
- if (columnGroup.children && columnGroup.children["default"]) {
2045
- var _iterator = _createForOfIteratorHelper$2(columnGroup.children["default"]()),
2046
- _step;
2047
- try {
2048
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2049
- var child = _step.value;
2050
- if (child.type.name === 'Row') {
2051
- rows.push(child);
2052
- } else if (child.children && child.children instanceof Array) {
2053
- rows = child.children;
2054
- }
2055
- }
2056
- } catch (err) {
2057
- _iterator.e(err);
2058
- } finally {
2059
- _iterator.f();
2060
- }
2061
- return rows;
2062
- }
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);
2063
2334
  },
2064
2335
  getFooterColumns: function getFooterColumns(row) {
2065
- var cols = [];
2066
- if (row.children && row.children["default"]) {
2067
- row.children["default"]().forEach(function (child) {
2068
- 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);
2069
- });
2070
- return cols;
2071
- }
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);
2072
2338
  }
2073
2339
  },
2074
2340
  computed: {
@@ -2077,20 +2343,20 @@ var script$5 = {
2077
2343
  if (this.columnGroup) {
2078
2344
  hasFooter = true;
2079
2345
  } else if (this.columns) {
2080
- var _iterator2 = _createForOfIteratorHelper$2(this.columns),
2081
- _step2;
2346
+ var _iterator = _createForOfIteratorHelper$1(this.columns),
2347
+ _step;
2082
2348
  try {
2083
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2084
- var col = _step2.value;
2349
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2350
+ var col = _step.value;
2085
2351
  if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
2086
2352
  hasFooter = true;
2087
2353
  break;
2088
2354
  }
2089
2355
  }
2090
2356
  } catch (err) {
2091
- _iterator2.e(err);
2357
+ _iterator.e(err);
2092
2358
  } finally {
2093
- _iterator2.f();
2359
+ _iterator.f();
2094
2360
  }
2095
2361
  }
2096
2362
  return hasFooter;
@@ -2113,8 +2379,8 @@ function _typeof$6(o) { "@babel/helpers - typeof"; return _typeof$6 = "function"
2113
2379
  function ownKeys$6(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; }
2114
2380
  function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty$6(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2115
2381
  function _defineProperty$6(obj, key, value) { key = _toPropertyKey$6(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2116
- function _toPropertyKey$6(arg) { var key = _toPrimitive$6(arg, "string"); return _typeof$6(key) === "symbol" ? key : String(key); }
2117
- function _toPrimitive$6(input, hint) { if (_typeof$6(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$6(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2382
+ function _toPropertyKey$6(t) { var i = _toPrimitive$6(t, "string"); return "symbol" == _typeof$6(i) ? i : String(i); }
2383
+ function _toPrimitive$6(t, r) { if ("object" != _typeof$6(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$6(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2118
2384
  function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2119
2385
  var _component_DTFooterCell = resolveComponent("DTFooterCell");
2120
2386
  return $options.hasFooter ? (openBlock(), createElementBlock("tfoot", mergeProps({
@@ -2160,8 +2426,8 @@ function _typeof$5(o) { "@babel/helpers - typeof"; return _typeof$5 = "function"
2160
2426
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2161
2427
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty$5(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2162
2428
  function _defineProperty$5(obj, key, value) { key = _toPropertyKey$5(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2163
- function _toPropertyKey$5(arg) { var key = _toPrimitive$5(arg, "string"); return _typeof$5(key) === "symbol" ? key : String(key); }
2164
- function _toPrimitive$5(input, hint) { if (_typeof$5(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$5(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2429
+ function _toPropertyKey$5(t) { var i = _toPrimitive$5(t, "string"); return "symbol" == _typeof$5(i) ? i : String(i); }
2430
+ function _toPrimitive$5(t, r) { if ("object" != _typeof$5(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$5(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2165
2431
  var script$4 = {
2166
2432
  name: 'ColumnFilter',
2167
2433
  hostName: 'DataTable',
@@ -2380,6 +2646,7 @@ var script$4 = {
2380
2646
  onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
2381
2647
  switch (event.code) {
2382
2648
  case 'Enter':
2649
+ case 'NumpadEnter':
2383
2650
  case 'Space':
2384
2651
  this.toggleMenu(event);
2385
2652
  break;
@@ -2701,8 +2968,8 @@ function _typeof$4(o) { "@babel/helpers - typeof"; return _typeof$4 = "function"
2701
2968
  function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2702
2969
  function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty$4(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2703
2970
  function _defineProperty$4(obj, key, value) { key = _toPropertyKey$4(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2704
- function _toPropertyKey$4(arg) { var key = _toPrimitive$4(arg, "string"); return _typeof$4(key) === "symbol" ? key : String(key); }
2705
- function _toPrimitive$4(input, hint) { if (_typeof$4(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$4(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2971
+ function _toPropertyKey$4(t) { var i = _toPrimitive$4(t, "string"); return "symbol" == _typeof$4(i) ? i : String(i); }
2972
+ function _toPrimitive$4(t, r) { if ("object" != _typeof$4(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$4(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2706
2973
  var _hoisted_1$2 = ["aria-label", "aria-expanded", "aria-controls"];
2707
2974
  var _hoisted_2 = ["id", "aria-modal"];
2708
2975
  var _hoisted_3 = ["onClick", "onKeydown", "tabindex"];
@@ -3181,7 +3448,7 @@ var script$2 = {
3181
3448
  });
3182
3449
  },
3183
3450
  onKeyDown: function onKeyDown(event) {
3184
- 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')) {
3185
3452
  this.$emit('column-click', {
3186
3453
  originalEvent: event,
3187
3454
  column: this.column
@@ -3196,16 +3463,28 @@ var script$2 = {
3196
3463
  });
3197
3464
  },
3198
3465
  onDragStart: function onDragStart(event) {
3199
- this.$emit('column-dragstart', event);
3466
+ this.$emit('column-dragstart', {
3467
+ originalEvent: event,
3468
+ column: this.column
3469
+ });
3200
3470
  },
3201
3471
  onDragOver: function onDragOver(event) {
3202
- this.$emit('column-dragover', event);
3472
+ this.$emit('column-dragover', {
3473
+ originalEvent: event,
3474
+ column: this.column
3475
+ });
3203
3476
  },
3204
3477
  onDragLeave: function onDragLeave(event) {
3205
- this.$emit('column-dragleave', event);
3478
+ this.$emit('column-dragleave', {
3479
+ originalEvent: event,
3480
+ column: this.column
3481
+ });
3206
3482
  },
3207
3483
  onDrop: function onDrop(event) {
3208
- this.$emit('column-drop', event);
3484
+ this.$emit('column-drop', {
3485
+ originalEvent: event,
3486
+ column: this.column
3487
+ });
3209
3488
  },
3210
3489
  onResizeStart: function onResizeStart(event) {
3211
3490
  this.$emit('column-resizestart', event);
@@ -3247,8 +3526,10 @@ var script$2 = {
3247
3526
  var filterRow = this.$el.parentElement.nextElementSibling;
3248
3527
  if (filterRow) {
3249
3528
  var index = DomHandler.index(this.$el);
3250
- filterRow.children[index].style.left = this.styleObject.left;
3251
- 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
+ }
3252
3533
  }
3253
3534
  }
3254
3535
  },
@@ -3314,8 +3595,8 @@ function _typeof$3(o) { "@babel/helpers - typeof"; return _typeof$3 = "function"
3314
3595
  function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3315
3596
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty$3(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3316
3597
  function _defineProperty$3(obj, key, value) { key = _toPropertyKey$3(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3317
- function _toPropertyKey$3(arg) { var key = _toPrimitive$3(arg, "string"); return _typeof$3(key) === "symbol" ? key : String(key); }
3318
- function _toPrimitive$3(input, hint) { if (_typeof$3(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$3(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3598
+ function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == _typeof$3(i) ? i : String(i); }
3599
+ function _toPrimitive$3(t, r) { if ("object" != _typeof$3(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$3(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
3319
3600
  var _hoisted_1 = ["tabindex", "colspan", "rowspan", "aria-sort", "data-p-sortable-column", "data-p-resizable-column", "data-p-highlight", "data-p-filter-column", "data-p-frozen-column", "data-p-reorderable-column"];
3320
3601
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
3321
3602
  var _component_DTHeaderCheckbox = resolveComponent("DTHeaderCheckbox");
@@ -3445,13 +3726,6 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
3445
3726
 
3446
3727
  script$2.render = render$2;
3447
3728
 
3448
- function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
3449
- 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."); }
3450
- function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
3451
- function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
3452
- 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; } } }; }
3453
- 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); }
3454
- 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; }
3455
3729
  var script$1 = {
3456
3730
  name: 'TableHeader',
3457
3731
  hostName: 'DataTable',
@@ -3527,6 +3801,26 @@ var script$1 = {
3527
3801
  "default": null
3528
3802
  }
3529
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
+ },
3530
3824
  methods: {
3531
3825
  columnProp: function columnProp(col, prop) {
3532
3826
  return ObjectUtils.getVNodeProp(col, prop);
@@ -3599,36 +3893,12 @@ var script$1 = {
3599
3893
  return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
3600
3894
  },
3601
3895
  getHeaderRows: function getHeaderRows() {
3602
- var rows = [];
3603
- var columnGroup = this.columnGroup;
3604
- if (columnGroup.children && columnGroup.children["default"]) {
3605
- var _iterator = _createForOfIteratorHelper$1(columnGroup.children["default"]()),
3606
- _step;
3607
- try {
3608
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3609
- var child = _step.value;
3610
- if (child.type.name === 'Row') {
3611
- rows.push(child);
3612
- } else if (child.children && child.children instanceof Array) {
3613
- rows = child.children;
3614
- }
3615
- }
3616
- } catch (err) {
3617
- _iterator.e(err);
3618
- } finally {
3619
- _iterator.f();
3620
- }
3621
- return rows;
3622
- }
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);
3623
3898
  },
3624
3899
  getHeaderColumns: function getHeaderColumns(row) {
3625
- var cols = [];
3626
- if (row.children && row.children["default"]) {
3627
- row.children["default"]().forEach(function (child) {
3628
- 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);
3629
- });
3630
- return cols;
3631
- }
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);
3632
3902
  }
3633
3903
  },
3634
3904
  computed: {
@@ -3652,8 +3922,8 @@ function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function"
3652
3922
  function ownKeys$2(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; }
3653
3923
  function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3654
3924
  function _defineProperty$2(obj, key, value) { key = _toPropertyKey$2(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3655
- function _toPropertyKey$2(arg) { var key = _toPrimitive$2(arg, "string"); return _typeof$2(key) === "symbol" ? key : String(key); }
3656
- function _toPrimitive$2(input, hint) { if (_typeof$2(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$2(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3925
+ function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : String(i); }
3926
+ function _toPrimitive$2(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
3657
3927
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3658
3928
  var _component_DTHeaderCell = resolveComponent("DTHeaderCell");
3659
3929
  var _component_DTHeaderCheckbox = resolveComponent("DTHeaderCheckbox");
@@ -3869,11 +4139,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3869
4139
  script$1.render = render$1;
3870
4140
 
3871
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; }
3872
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; }
3873
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; }
3874
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; }
3875
- function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
3876
- function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4148
+ function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : String(i); }
4149
+ function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
3877
4150
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3878
4151
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3879
4152
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
@@ -3887,8 +4160,14 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
3887
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; }
3888
4161
  var script = {
3889
4162
  name: 'DataTable',
3890
- "extends": script$b,
4163
+ "extends": script$c,
3891
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
+ },
3892
4171
  data: function data() {
3893
4172
  return {
3894
4173
  d_first: this.first,
@@ -3899,11 +4178,16 @@ var script = {
3899
4178
  d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
3900
4179
  d_groupRowsSortMeta: null,
3901
4180
  d_selectionKeys: null,
3902
- d_expandedRowKeys: null,
3903
4181
  d_columnOrder: null,
3904
4182
  d_editingRowKeys: null,
3905
4183
  d_editingMeta: {},
3906
- 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
+ })
3907
4191
  };
3908
4192
  },
3909
4193
  rowTouched: false,
@@ -3917,6 +4201,7 @@ var script = {
3917
4201
  colReorderIconWidth: null,
3918
4202
  colReorderIconHeight: null,
3919
4203
  draggedColumn: null,
4204
+ draggedColumnElement: null,
3920
4205
  draggedRowIndex: null,
3921
4206
  droppedRowIndex: null,
3922
4207
  rowDragging: null,
@@ -3950,11 +4235,6 @@ var script = {
3950
4235
  }
3951
4236
  }
3952
4237
  },
3953
- expandedRows: function expandedRows(newValue) {
3954
- if (this.dataKey) {
3955
- this.updateExpandedRowKeys(newValue);
3956
- }
3957
- },
3958
4238
  editingRows: {
3959
4239
  immediate: true,
3960
4240
  handler: function handler(newValue) {
@@ -3987,6 +4267,8 @@ var script = {
3987
4267
  this.unbindColumnResizeEvents();
3988
4268
  this.destroyStyleElement();
3989
4269
  this.destroyResponsiveStyle();
4270
+ this.d_columns.clear();
4271
+ this.d_columnGroups.clear();
3990
4272
  },
3991
4273
  updated: function updated() {
3992
4274
  if (this.isStateful()) {
@@ -4001,6 +4283,7 @@ var script = {
4001
4283
  return ObjectUtils.getVNodeProp(col, prop);
4002
4284
  },
4003
4285
  onPage: function onPage(event) {
4286
+ var _this = this;
4004
4287
  this.clearEditingMetaData();
4005
4288
  this.d_first = event.first;
4006
4289
  this.d_rows = event.rows;
@@ -4010,15 +4293,18 @@ var script = {
4010
4293
  this.$emit('update:first', this.d_first);
4011
4294
  this.$emit('update:rows', this.d_rows);
4012
4295
  this.$emit('page', pageEvent);
4013
- this.$emit('value-change', this.processedData);
4296
+ this.$nextTick(function () {
4297
+ _this.$emit('value-change', _this.processedData);
4298
+ });
4014
4299
  },
4015
4300
  onColumnHeaderClick: function onColumnHeaderClick(e) {
4301
+ var _this2 = this;
4016
4302
  var event = e.originalEvent;
4017
4303
  var column = e.column;
4018
4304
  if (this.columnProp(column, 'sortable')) {
4019
4305
  var targetNode = event.target;
4020
4306
  var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
4021
- 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)) {
4022
4308
  DomHandler.clearSelection();
4023
4309
  if (this.sortMode === 'single') {
4024
4310
  if (this.d_sortField === columnField) {
@@ -4046,12 +4332,14 @@ var script = {
4046
4332
  this.$emit('update:multiSortMeta', this.d_multiSortMeta);
4047
4333
  }
4048
4334
  this.$emit('sort', this.createLazyLoadEvent(event));
4049
- this.$emit('value-change', this.processedData);
4335
+ this.$nextTick(function () {
4336
+ _this2.$emit('value-change', _this2.processedData);
4337
+ });
4050
4338
  }
4051
4339
  }
4052
4340
  },
4053
4341
  sortSingle: function sortSingle(value) {
4054
- var _this = this;
4342
+ var _this3 = this;
4055
4343
  this.clearEditingMetaData();
4056
4344
  if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
4057
4345
  this.d_multiSortMeta = [{
@@ -4081,12 +4369,12 @@ var script = {
4081
4369
  data.sort(function (data1, data2) {
4082
4370
  var value1 = resolvedFieldData.get(data1);
4083
4371
  var value2 = resolvedFieldData.get(data2);
4084
- 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);
4085
4373
  });
4086
4374
  return data;
4087
4375
  },
4088
4376
  sortMultiple: function sortMultiple(value) {
4089
- var _this2 = this;
4377
+ var _this4 = this;
4090
4378
  this.clearEditingMetaData();
4091
4379
  if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
4092
4380
  var firstSortMeta = this.d_multiSortMeta[0];
@@ -4097,7 +4385,7 @@ var script = {
4097
4385
  }
4098
4386
  var data = _toConsumableArray(value);
4099
4387
  data.sort(function (data1, data2) {
4100
- return _this2.multisortField(data1, data2, 0);
4388
+ return _this4.multisortField(data1, data2, 0);
4101
4389
  });
4102
4390
  return data;
4103
4391
  },
@@ -4153,7 +4441,7 @@ var script = {
4153
4441
  return Object.fromEntries(entries);
4154
4442
  },
4155
4443
  filter: function filter(data) {
4156
- var _this3 = this;
4444
+ var _this5 = this;
4157
4445
  if (!data) {
4158
4446
  return;
4159
4447
  }
@@ -4162,7 +4450,7 @@ var script = {
4162
4450
  var globalFilterFieldsArray;
4163
4451
  if (activeFilters['global']) {
4164
4452
  globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
4165
- return _this3.columnProp(col, 'filterField') || _this3.columnProp(col, 'field');
4453
+ return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
4166
4454
  });
4167
4455
  }
4168
4456
  var filteredValue = [];
@@ -4224,7 +4512,9 @@ var script = {
4224
4512
  var filterEvent = this.createLazyLoadEvent();
4225
4513
  filterEvent.filteredValue = filteredValue;
4226
4514
  this.$emit('filter', filterEvent);
4227
- this.$emit('value-change', filteredValue);
4515
+ this.$nextTick(function () {
4516
+ _this5.$emit('value-change', _this5.processedData);
4517
+ });
4228
4518
  return filteredValue;
4229
4519
  },
4230
4520
  executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
@@ -4380,6 +4670,7 @@ var script = {
4380
4670
  this.onEndKey(event, row, rowIndex, slotProps);
4381
4671
  break;
4382
4672
  case 'Enter':
4673
+ case 'NumpadEnter':
4383
4674
  this.onEnterKey(event, rowData, rowIndex);
4384
4675
  break;
4385
4676
  case 'Space':
@@ -4630,40 +4921,21 @@ var script = {
4630
4921
  this.d_selectionKeys[String(ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
4631
4922
  }
4632
4923
  },
4633
- updateExpandedRowKeys: function updateExpandedRowKeys(expandedRows) {
4634
- if (expandedRows && expandedRows.length) {
4635
- this.d_expandedRowKeys = {};
4636
- var _iterator4 = _createForOfIteratorHelper(expandedRows),
4924
+ updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4925
+ if (editingRows && editingRows.length) {
4926
+ this.d_editingRowKeys = {};
4927
+ var _iterator4 = _createForOfIteratorHelper(editingRows),
4637
4928
  _step4;
4638
4929
  try {
4639
4930
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
4640
4931
  var data = _step4.value;
4641
- this.d_expandedRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4932
+ this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4642
4933
  }
4643
4934
  } catch (err) {
4644
4935
  _iterator4.e(err);
4645
4936
  } finally {
4646
4937
  _iterator4.f();
4647
4938
  }
4648
- } else {
4649
- this.d_expandedRowKeys = null;
4650
- }
4651
- },
4652
- updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4653
- if (editingRows && editingRows.length) {
4654
- this.d_editingRowKeys = {};
4655
- var _iterator5 = _createForOfIteratorHelper(editingRows),
4656
- _step5;
4657
- try {
4658
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
4659
- var data = _step5.value;
4660
- this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4661
- }
4662
- } catch (err) {
4663
- _iterator5.e(err);
4664
- } finally {
4665
- _iterator5.f();
4666
- }
4667
4939
  } else {
4668
4940
  this.d_editingRowKeys = null;
4669
4941
  }
@@ -4701,7 +4973,7 @@ var script = {
4701
4973
  this.$emit('update:selection', _selection);
4702
4974
  },
4703
4975
  exportCSV: function exportCSV(options, data) {
4704
- var _this4 = this;
4976
+ var _this6 = this;
4705
4977
  var csv = "\uFEFF";
4706
4978
  if (!data) {
4707
4979
  data = this.processedData;
@@ -4723,16 +4995,16 @@ var script = {
4723
4995
  data.forEach(function (record) {
4724
4996
  csv += '\n';
4725
4997
  var rowInitiated = false;
4726
- for (var _i = 0; _i < _this4.columns.length; _i++) {
4727
- var _column = _this4.columns[_i];
4728
- if (_this4.columnProp(_column, 'exportable') !== false && _this4.columnProp(_column, 'field')) {
4729
- if (rowInitiated) csv += _this4.csvSeparator;else rowInitiated = true;
4730
- 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'));
4731
5003
  if (cellData != null) {
4732
- if (_this4.exportFunction) {
4733
- cellData = _this4.exportFunction({
5004
+ if (_this6.exportFunction) {
5005
+ cellData = _this6.exportFunction({
4734
5006
  data: cellData,
4735
- field: _this4.columnProp(_column, 'field')
5007
+ field: _this6.columnProp(_column, 'field')
4736
5008
  });
4737
5009
  } else cellData = String(cellData).replace(/"/g, '""');
4738
5010
  } else cellData = '';
@@ -4835,19 +5107,19 @@ var script = {
4835
5107
  this.styleElement.innerHTML = innerHTML;
4836
5108
  },
4837
5109
  bindColumnResizeEvents: function bindColumnResizeEvents() {
4838
- var _this5 = this;
5110
+ var _this7 = this;
4839
5111
  if (!this.documentColumnResizeListener) {
4840
5112
  this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
4841
- if (_this5.columnResizing) {
4842
- _this5.onColumnResize(event);
5113
+ if (_this7.columnResizing) {
5114
+ _this7.onColumnResize(event);
4843
5115
  }
4844
5116
  });
4845
5117
  }
4846
5118
  if (!this.documentColumnResizeEndListener) {
4847
5119
  this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
4848
- if (_this5.columnResizing) {
4849
- _this5.columnResizing = false;
4850
- _this5.onColumnResizeEnd();
5120
+ if (_this7.columnResizing) {
5121
+ _this7.columnResizing = false;
5122
+ _this7.onColumnResizeEnd();
4851
5123
  }
4852
5124
  });
4853
5125
  }
@@ -4869,23 +5141,28 @@ var script = {
4869
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;
4870
5142
  }
4871
5143
  },
4872
- onColumnHeaderDragStart: function onColumnHeaderDragStart(event) {
5144
+ onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
5145
+ var event = e.originalEvent,
5146
+ column = e.column;
4873
5147
  if (this.columnResizing) {
4874
5148
  event.preventDefault();
4875
5149
  return;
4876
5150
  }
4877
5151
  this.colReorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
4878
5152
  this.colReorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
4879
- this.draggedColumn = this.findParentHeader(event.target);
5153
+ this.draggedColumn = column;
5154
+ this.draggedColumnElement = this.findParentHeader(event.target);
4880
5155
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
4881
5156
  },
4882
- onColumnHeaderDragOver: function onColumnHeaderDragOver(event) {
5157
+ onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
5158
+ var event = e.originalEvent,
5159
+ column = e.column;
4883
5160
  var dropHeader = this.findParentHeader(event.target);
4884
- if (this.reorderableColumns && this.draggedColumn && dropHeader) {
5161
+ if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
4885
5162
  event.preventDefault();
4886
5163
  var containerOffset = DomHandler.getOffset(this.$el);
4887
5164
  var dropHeaderOffset = DomHandler.getOffset(dropHeader);
4888
- if (this.draggedColumn !== dropHeader) {
5165
+ if (this.draggedColumnElement !== dropHeader) {
4889
5166
  var targetLeft = dropHeaderOffset.left - containerOffset.left;
4890
5167
  var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
4891
5168
  this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
@@ -4904,34 +5181,67 @@ var script = {
4904
5181
  }
4905
5182
  }
4906
5183
  },
4907
- onColumnHeaderDragLeave: function onColumnHeaderDragLeave(event) {
4908
- if (this.reorderableColumns && this.draggedColumn) {
5184
+ onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
5185
+ var event = e.originalEvent;
5186
+ if (this.reorderableColumns && this.draggedColumnElement) {
4909
5187
  event.preventDefault();
4910
5188
  this.$refs.reorderIndicatorUp.style.display = 'none';
4911
5189
  this.$refs.reorderIndicatorDown.style.display = 'none';
4912
5190
  }
4913
5191
  },
4914
- onColumnHeaderDrop: function onColumnHeaderDrop(event) {
5192
+ onColumnHeaderDrop: function onColumnHeaderDrop(e) {
5193
+ var _this8 = this;
5194
+ var event = e.originalEvent,
5195
+ column = e.column;
4915
5196
  event.preventDefault();
4916
- if (this.draggedColumn) {
4917
- var dragIndex = DomHandler.index(this.draggedColumn);
5197
+ if (this.draggedColumnElement) {
5198
+ var dragIndex = DomHandler.index(this.draggedColumnElement);
4918
5199
  var dropIndex = DomHandler.index(this.findParentHeader(event.target));
4919
5200
  var allowDrop = dragIndex !== dropIndex;
4920
5201
  if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
4921
5202
  allowDrop = false;
4922
5203
  }
4923
5204
  if (allowDrop) {
4924
- 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);
4925
5234
  this.updateReorderableColumns();
4926
5235
  this.$emit('column-reorder', {
4927
5236
  originalEvent: event,
4928
- dragIndex: dragIndex,
4929
- dropIndex: dropIndex
5237
+ dragIndex: dragColIndex,
5238
+ dropIndex: dropColIndex
4930
5239
  });
4931
5240
  }
4932
5241
  this.$refs.reorderIndicatorUp.style.display = 'none';
4933
5242
  this.$refs.reorderIndicatorDown.style.display = 'none';
4934
- this.draggedColumn.draggable = false;
5243
+ this.draggedColumnElement.draggable = false;
5244
+ this.draggedColumnElement = null;
4935
5245
  this.draggedColumn = null;
4936
5246
  this.dropPosition = null;
4937
5247
  }
@@ -5041,28 +5351,23 @@ var script = {
5041
5351
  event.preventDefault();
5042
5352
  },
5043
5353
  toggleRow: function toggleRow(event) {
5354
+ var _this9 = this;
5355
+ var expanded = event.expanded,
5356
+ rest = _objectWithoutProperties(event, _excluded);
5044
5357
  var rowData = event.data;
5045
- var expanded;
5046
- var expandedRowIndex;
5047
- var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
5358
+ var expandedRows;
5048
5359
  if (this.dataKey) {
5049
- expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
5050
- } else {
5051
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5052
- expanded = expandedRowIndex > -1;
5053
- }
5054
- if (expanded) {
5055
- if (expandedRowIndex == null) {
5056
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5057
- }
5058
- _expandedRows.splice(expandedRowIndex, 1);
5059
- this.$emit('update:expandedRows', _expandedRows);
5060
- 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];
5061
5363
  } else {
5062
- _expandedRows.push(rowData);
5063
- this.$emit('update:expandedRows', _expandedRows);
5064
- 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
+ });
5065
5368
  }
5369
+ this.$emit('update:expandedRows', expandedRows);
5370
+ expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
5066
5371
  },
5067
5372
  toggleRowGroup: function toggleRowGroup(e) {
5068
5373
  var event = e.originalEvent;
@@ -5132,7 +5437,6 @@ var script = {
5132
5437
  }
5133
5438
  if (this.expandedRows) {
5134
5439
  state.expandedRows = this.expandedRows;
5135
- state.expandedRowKeys = this.d_expandedRowKeys;
5136
5440
  }
5137
5441
  if (this.expandedRowGroups) {
5138
5442
  state.expandedRowGroups = this.expandedRowGroups;
@@ -5180,7 +5484,6 @@ var script = {
5180
5484
  this.d_columnOrder = restoredState.columnOrder;
5181
5485
  }
5182
5486
  if (restoredState.expandedRows) {
5183
- this.d_expandedRowKeys = restoredState.expandedRowKeys;
5184
5487
  this.$emit('update:expandedRows', restoredState.expandedRows);
5185
5488
  }
5186
5489
  if (restoredState.expandedRowGroups) {
@@ -5204,23 +5507,25 @@ var script = {
5204
5507
  state.tableWidth = DomHandler.getOuterWidth(this.$refs.table) + 'px';
5205
5508
  }
5206
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
+ },
5207
5520
  restoreColumnWidths: function restoreColumnWidths() {
5208
5521
  if (this.columnWidthsState) {
5209
5522
  var widths = this.columnWidthsState.split(',');
5210
5523
  if (this.columnResizeMode === 'expand' && this.tableWidthState) {
5211
5524
  this.$refs.table.style.width = this.tableWidthState;
5212
5525
  this.$refs.table.style.minWidth = this.tableWidthState;
5213
- this.$el.style.width = this.tableWidthState;
5214
5526
  }
5215
5527
  if (ObjectUtils.isNotEmpty(widths)) {
5216
- this.createStyleElement();
5217
- var innerHTML = '';
5218
- 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\"]");
5219
- widths.forEach(function (width, index) {
5220
- var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
5221
- 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 ");
5222
- });
5223
- this.styleElement.innerHTML = innerHTML;
5528
+ this.addColumnWidthStyles(widths);
5224
5529
  }
5225
5530
  }
5226
5531
  },
@@ -5291,9 +5596,6 @@ var script = {
5291
5596
  hasGlobalFilter: function hasGlobalFilter() {
5292
5597
  return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
5293
5598
  },
5294
- getChildren: function getChildren() {
5295
- return this.$slots["default"] ? this.$slots["default"]() : null;
5296
- },
5297
5599
  onFilterChange: function onFilterChange(filters) {
5298
5600
  this.d_filters = filters;
5299
5601
  },
@@ -5323,10 +5625,10 @@ var script = {
5323
5625
  return cloned;
5324
5626
  },
5325
5627
  updateReorderableColumns: function updateReorderableColumns() {
5326
- var _this6 = this;
5628
+ var _this10 = this;
5327
5629
  var columnOrder = [];
5328
5630
  this.columns.forEach(function (col) {
5329
- return columnOrder.push(_this6.columnProp(col, 'columnKey') || _this6.columnProp(col, 'field'));
5631
+ return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
5330
5632
  });
5331
5633
  this.d_columnOrder = columnOrder;
5332
5634
  },
@@ -5347,7 +5649,7 @@ var script = {
5347
5649
  var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
5348
5650
  var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
5349
5651
  var gridLinesSelector = ".p-datatable[".concat(this.attributeSelector, "].p-datatable-gridlines > ").concat(tableSelector);
5350
- 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");
5351
5653
  this.responsiveStyleElement.innerHTML = innerHTML;
5352
5654
  }
5353
5655
  },
@@ -5363,22 +5665,6 @@ var script = {
5363
5665
  this.styleElement = null;
5364
5666
  }
5365
5667
  },
5366
- recursiveGetChildren: function recursiveGetChildren(children, results) {
5367
- var _this7 = this;
5368
- if (!results) {
5369
- results = [];
5370
- }
5371
- if (children && children.length) {
5372
- children.forEach(function (child) {
5373
- if (child.children instanceof Array) {
5374
- results.concat(_this7.recursiveGetChildren(child.children, results));
5375
- } else if (child.type.name == 'Column') {
5376
- results.push(child);
5377
- }
5378
- });
5379
- }
5380
- return results;
5381
- },
5382
5668
  dataToRender: function dataToRender(data) {
5383
5669
  var _data = data || this.processedData;
5384
5670
  if (_data && this.paginator) {
@@ -5396,27 +5682,23 @@ var script = {
5396
5682
  },
5397
5683
  computed: {
5398
5684
  columns: function columns() {
5399
- var children = this.getChildren();
5400
- if (!children) {
5401
- return;
5402
- }
5403
- var cols = this.recursiveGetChildren(children, []);
5685
+ var cols = this.d_columns.get(this);
5404
5686
  if (this.reorderableColumns && this.d_columnOrder) {
5405
5687
  var orderedColumns = [];
5406
- var _iterator6 = _createForOfIteratorHelper(this.d_columnOrder),
5407
- _step6;
5688
+ var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
5689
+ _step5;
5408
5690
  try {
5409
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
5410
- var columnKey = _step6.value;
5691
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
5692
+ var columnKey = _step5.value;
5411
5693
  var column = this.findColumnByKey(cols, columnKey);
5412
5694
  if (column && !this.columnProp(column, 'hidden')) {
5413
5695
  orderedColumns.push(column);
5414
5696
  }
5415
5697
  }
5416
5698
  } catch (err) {
5417
- _iterator6.e(err);
5699
+ _iterator5.e(err);
5418
5700
  } finally {
5419
- _iterator6.f();
5701
+ _iterator5.f();
5420
5702
  }
5421
5703
  return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
5422
5704
  return orderedColumns.indexOf(item) < 0;
@@ -5424,52 +5706,30 @@ var script = {
5424
5706
  }
5425
5707
  return cols;
5426
5708
  },
5709
+ columnGroups: function columnGroups() {
5710
+ return this.d_columnGroups.get(this);
5711
+ },
5427
5712
  headerColumnGroup: function headerColumnGroup() {
5428
- var children = this.getChildren();
5429
- if (children) {
5430
- var _iterator7 = _createForOfIteratorHelper(children),
5431
- _step7;
5432
- try {
5433
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
5434
- var child = _step7.value;
5435
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
5436
- return child;
5437
- }
5438
- }
5439
- } catch (err) {
5440
- _iterator7.e(err);
5441
- } finally {
5442
- _iterator7.f();
5443
- }
5444
- }
5445
- 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
+ });
5446
5718
  },
5447
5719
  footerColumnGroup: function footerColumnGroup() {
5448
- var children = this.getChildren();
5449
- if (children) {
5450
- var _iterator8 = _createForOfIteratorHelper(children),
5451
- _step8;
5452
- try {
5453
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
5454
- var child = _step8.value;
5455
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
5456
- return child;
5457
- }
5458
- }
5459
- } catch (err) {
5460
- _iterator8.e(err);
5461
- } finally {
5462
- _iterator8.f();
5463
- }
5464
- }
5465
- 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
+ });
5466
5725
  },
5467
5726
  hasFilters: function hasFilters() {
5468
5727
  return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
5469
5728
  },
5470
5729
  processedData: function processedData() {
5730
+ var _this$virtualScroller;
5471
5731
  var data = this.value || [];
5472
- if (!this.lazy) {
5732
+ if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
5473
5733
  if (data && data.length) {
5474
5734
  if (this.hasFilters) {
5475
5735
  data = this.filter(data);
@@ -5503,14 +5763,14 @@ var script = {
5503
5763
  return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
5504
5764
  },
5505
5765
  allRowsSelected: function allRowsSelected() {
5506
- var _this8 = this;
5766
+ var _this13 = this;
5507
5767
  if (this.selectAll !== null) {
5508
5768
  return this.selectAll;
5509
5769
  } else {
5510
5770
  var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
5511
5771
  return ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
5512
- return _this8.selection.some(function (s) {
5513
- return _this8.equals(s, v);
5772
+ return _this13.selection.some(function (s) {
5773
+ return _this13.equals(s, v);
5514
5774
  });
5515
5775
  });
5516
5776
  }
@@ -5541,8 +5801,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
5541
5801
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5542
5802
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5543
5803
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5544
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5545
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5804
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5805
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5546
5806
  function render(_ctx, _cache, $props, $setup, $data, $options) {
5547
5807
  var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
5548
5808
  var _component_DTPaginator = resolveComponent("DTPaginator");
@@ -5750,7 +6010,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5750
6010
  expandedRowIcon: _ctx.expandedRowIcon,
5751
6011
  collapsedRowIcon: _ctx.collapsedRowIcon,
5752
6012
  expandedRows: _ctx.expandedRows,
5753
- expandedRowKeys: $data.d_expandedRowKeys,
5754
6013
  expandedRowGroups: _ctx.expandedRowGroups,
5755
6014
  editingRows: _ctx.editingRows,
5756
6015
  editingRowKeys: $data.d_editingRowKeys,
@@ -5816,7 +6075,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5816
6075
  onEditingMetaChange: $options.onEditingMetaChange,
5817
6076
  unstyled: _ctx.unstyled,
5818
6077
  pt: _ctx.pt
5819
- }, 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, {
5820
6079
  ref: "bodyRef",
5821
6080
  value: $options.dataToRender(slotProps.rows),
5822
6081
  "class": normalizeClass(slotProps.styleClass),
@@ -5840,7 +6099,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5840
6099
  expandedRowIcon: _ctx.expandedRowIcon,
5841
6100
  collapsedRowIcon: _ctx.collapsedRowIcon,
5842
6101
  expandedRows: _ctx.expandedRows,
5843
- expandedRowKeys: $data.d_expandedRowKeys,
5844
6102
  expandedRowGroups: _ctx.expandedRowGroups,
5845
6103
  editingRows: _ctx.editingRows,
5846
6104
  editingRowKeys: $data.d_editingRowKeys,
@@ -5909,7 +6167,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5909
6167
  onEditingMetaChange: $options.onEditingMetaChange,
5910
6168
  unstyled: _ctx.unstyled,
5911
6169
  pt: _ctx.pt
5912
- }, 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({
5913
6171
  key: 1,
5914
6172
  "class": _ctx.cx('virtualScrollerSpacer'),
5915
6173
  style: {