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
@@ -59,7 +59,7 @@ var SortAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAltIcon);
59
59
  var SortAmountDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountDownIcon);
60
60
  var SortAmountUpAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountUpAltIcon);
61
61
 
62
- var script$b = {
62
+ var script$c = {
63
63
  name: 'BaseDataTable',
64
64
  "extends": BaseComponent__default["default"],
65
65
  props: {
@@ -181,7 +181,7 @@ var script$b = {
181
181
  },
182
182
  metaKeySelection: {
183
183
  type: Boolean,
184
- "default": true
184
+ "default": false
185
185
  },
186
186
  contextMenu: {
187
187
  type: Boolean,
@@ -224,7 +224,7 @@ var script$b = {
224
224
  "default": false
225
225
  },
226
226
  expandedRows: {
227
- type: Array,
227
+ type: [Array, Object],
228
228
  "default": null
229
229
  },
230
230
  expandedRowIcon: {
@@ -336,7 +336,7 @@ var script$b = {
336
336
  }
337
337
  };
338
338
 
339
- var script$a = {
339
+ var script$b = {
340
340
  name: 'RowCheckbox',
341
341
  hostName: 'DataTable',
342
342
  "extends": BaseComponent__default["default"],
@@ -391,6 +391,7 @@ var script$a = {
391
391
  utils.DomHandler.focus(this.$refs.input);
392
392
  }
393
393
  event.preventDefault();
394
+ event.stopPropagation();
394
395
  },
395
396
  onFocus: function onFocus() {
396
397
  this.focused = true;
@@ -419,7 +420,7 @@ var script$a = {
419
420
  };
420
421
 
421
422
  var _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
422
- function render$a(_ctx, _cache, $props, $setup, $data, $options) {
423
+ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
423
424
  var _component_CheckIcon = vue.resolveComponent("CheckIcon");
424
425
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
425
426
  "class": _ctx.cx('checkboxWrapper'),
@@ -459,9 +460,9 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
459
460
  }, $options.getColumnPT('checkboxIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 16)], 16);
460
461
  }
461
462
 
462
- script$a.render = render$a;
463
+ script$b.render = render$b;
463
464
 
464
- var script$9 = {
465
+ var script$a = {
465
466
  name: 'RowRadioButton',
466
467
  hostName: 'DataTable',
467
468
  "extends": BaseComponent__default["default"],
@@ -526,7 +527,7 @@ var script$9 = {
526
527
  };
527
528
 
528
529
  var _hoisted_1$6 = ["checked", "disabled", "name"];
529
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
530
+ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
530
531
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
531
532
  "class": _ctx.cx('radiobuttonWrapper'),
532
533
  onClick: _cache[3] || (_cache[3] = function () {
@@ -560,9 +561,9 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
560
561
  }, $options.getColumnPT('radiobuttonIcon')), null, 16)], 16)], 16);
561
562
  }
562
563
 
563
- script$9.render = render$9;
564
+ script$a.render = render$a;
564
565
 
565
- var script$8 = {
566
+ var script$9 = {
566
567
  name: 'BodyCell',
567
568
  hostName: 'DataTable',
568
569
  "extends": BaseComponent__default["default"],
@@ -1014,8 +1015,8 @@ var script$8 = {
1014
1015
  }
1015
1016
  },
1016
1017
  components: {
1017
- DTRadioButton: script$9,
1018
- DTCheckbox: script$a,
1018
+ DTRadioButton: script$a,
1019
+ DTCheckbox: script$b,
1019
1020
  ChevronDownIcon: ChevronDownIcon__default["default"],
1020
1021
  ChevronRightIcon: ChevronRightIcon__default["default"],
1021
1022
  BarsIcon: BarsIcon__default["default"],
@@ -1028,18 +1029,18 @@ var script$8 = {
1028
1029
  }
1029
1030
  };
1030
1031
 
1031
- 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); }
1032
- 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; }
1033
- 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; }
1034
- 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; }
1035
- function _toPropertyKey$9(arg) { var key = _toPrimitive$9(arg, "string"); return _typeof$9(key) === "symbol" ? key : String(key); }
1036
- 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); }
1032
+ 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); }
1033
+ 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; }
1034
+ 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; }
1035
+ 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; }
1036
+ function _toPropertyKey$a(t) { var i = _toPrimitive$a(t, "string"); return "symbol" == _typeof$a(i) ? i : String(i); }
1037
+ 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); }
1037
1038
  var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
1038
1039
  var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
1039
1040
  var _hoisted_3$2 = ["aria-label"];
1040
1041
  var _hoisted_4$1 = ["aria-label"];
1041
1042
  var _hoisted_5$1 = ["aria-label"];
1042
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1043
+ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
1043
1044
  var _component_DTRadioButton = vue.resolveComponent("DTRadioButton");
1044
1045
  var _component_DTCheckbox = vue.resolveComponent("DTCheckbox");
1045
1046
  var _component_BarsIcon = vue.resolveComponent("BarsIcon");
@@ -1051,7 +1052,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1051
1052
  style: $options.containerStyle,
1052
1053
  "class": $options.containerClass,
1053
1054
  role: "cell"
1054
- }, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
1055
+ }, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
1055
1056
  data: $props.rowData,
1056
1057
  column: $props.column,
1057
1058
  field: $options.field,
@@ -1071,7 +1072,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1071
1072
  return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1072
1073
  }),
1073
1074
  role: "cell"
1074
- }, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1075
+ }, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1075
1076
  "data-p-selection-column": $options.columnProp('selectionMode') != null,
1076
1077
  "data-p-editable-column": $options.isEditable(),
1077
1078
  "data-p-cell-editing": $data.d_editing,
@@ -1214,14 +1215,28 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1214
1215
  }, [vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$5));
1215
1216
  }
1216
1217
 
1217
- script$8.render = render$8;
1218
+ script$9.render = render$9;
1218
1219
 
1219
- var script$7 = {
1220
- name: 'TableBody',
1220
+ 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); }
1221
+ 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; }
1222
+ 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; }
1223
+ 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; }
1224
+ function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : String(i); }
1225
+ 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); }
1226
+ var script$8 = {
1227
+ name: 'BodyRow',
1221
1228
  hostName: 'DataTable',
1222
1229
  "extends": BaseComponent__default["default"],
1223
1230
  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'],
1224
1231
  props: {
1232
+ rowData: {
1233
+ type: Object,
1234
+ "default": null
1235
+ },
1236
+ index: {
1237
+ type: Number,
1238
+ "default": 0
1239
+ },
1225
1240
  value: {
1226
1241
  type: Array,
1227
1242
  "default": null
@@ -1271,11 +1286,7 @@ var script$7 = {
1271
1286
  "default": null
1272
1287
  },
1273
1288
  expandedRows: {
1274
- type: Array,
1275
- "default": null
1276
- },
1277
- expandedRowKeys: {
1278
- type: null,
1289
+ type: [Array, Object],
1279
1290
  "default": null
1280
1291
  },
1281
1292
  selection: {
@@ -1306,6 +1317,10 @@ var script$7 = {
1306
1317
  type: null,
1307
1318
  "default": null
1308
1319
  },
1320
+ rowGroupHeaderStyle: {
1321
+ type: null,
1322
+ "default": null
1323
+ },
1309
1324
  editMode: {
1310
1325
  type: String,
1311
1326
  "default": null
@@ -1345,35 +1360,34 @@ var script$7 = {
1345
1360
  isVirtualScrollerDisabled: {
1346
1361
  type: Boolean,
1347
1362
  "default": false
1363
+ },
1364
+ expandedRowId: {
1365
+ type: String,
1366
+ "default": null
1367
+ },
1368
+ nameAttributeSelector: {
1369
+ type: String,
1370
+ "default": null
1348
1371
  }
1349
1372
  },
1350
1373
  data: function data() {
1351
1374
  return {
1352
- rowGroupHeaderStyleObject: {},
1353
- tabindexArray: [],
1354
- isARowSelected: false
1375
+ d_rowExpanded: false
1355
1376
  };
1356
1377
  },
1357
- mounted: function mounted() {
1358
- if (this.frozenRow) {
1359
- this.updateFrozenRowStickyPosition();
1360
- }
1361
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1362
- this.updateFrozenRowGroupHeaderStickyPosition();
1363
- }
1364
- },
1365
- updated: function updated() {
1366
- if (this.frozenRow) {
1367
- this.updateFrozenRowStickyPosition();
1368
- }
1369
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1370
- this.updateFrozenRowGroupHeaderStickyPosition();
1378
+ watch: {
1379
+ expandedRows: function expandedRows(newValue) {
1380
+ var _this = this;
1381
+ this.d_rowExpanded = this.dataKey ? (newValue === null || newValue === void 0 ? void 0 : newValue[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)]) !== undefined : newValue === null || newValue === void 0 ? void 0 : newValue.some(function (d) {
1382
+ return _this.equals(_this.rowData, d);
1383
+ });
1371
1384
  }
1372
1385
  },
1373
1386
  methods: {
1374
1387
  columnProp: function columnProp(col, prop) {
1375
1388
  return utils.ObjectUtils.getVNodeProp(col, prop);
1376
1389
  },
1390
+ //@todo - update this method
1377
1391
  getColumnPT: function getColumnPT(key) {
1378
1392
  var columnMetaData = {
1379
1393
  parent: {
@@ -1384,80 +1398,33 @@ var script$7 = {
1384
1398
  };
1385
1399
  return vue.mergeProps(this.ptm("column.".concat(key), {
1386
1400
  column: columnMetaData
1387
- }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp({}), key, columnMetaData));
1388
- },
1389
- getColumnProp: function getColumnProp(column) {
1390
- return column.props && column.props.pt ? column.props.pt : undefined; //@todo
1401
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.columnProp({}, 'pt'), key, columnMetaData));
1391
1402
  },
1392
- getBodyRowPTOptions: function getBodyRowPTOptions(key, rowdata, index) {
1393
- var _this$$parentInstance, _this$$parentInstance2, _this$$parentInstance3;
1403
+ //@todo - update this method
1404
+ getBodyRowPTOptions: function getBodyRowPTOptions(key) {
1405
+ var _this$$parentInstance;
1406
+ 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;
1394
1407
  return this.ptm(key, {
1395
1408
  context: {
1396
- index: index,
1397
- 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),
1398
- selected: this.isSelected(rowdata),
1399
- 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
1409
+ index: this.rowIndex,
1410
+ selectable: (datatable === null || datatable === void 0 ? void 0 : datatable.rowHover) || (datatable === null || datatable === void 0 ? void 0 : datatable.selectionMode),
1411
+ selected: this.isSelected,
1412
+ stripedRows: (datatable === null || datatable === void 0 ? void 0 : datatable.stripedRows) || false
1400
1413
  }
1401
1414
  });
1402
1415
  },
1403
- shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader(value, rowData, i) {
1404
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1405
- var prevRowData = value[i - 1];
1406
- if (prevRowData) {
1407
- var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
1408
- return currentRowFieldData !== previousRowFieldData;
1409
- } else {
1410
- return true;
1411
- }
1412
- },
1413
- getRowKey: function getRowKey(rowData, index) {
1414
- return this.dataKey ? utils.ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
1415
- },
1416
- getRowIndex: function getRowIndex(index) {
1417
- var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
1418
- return getItemOptions ? getItemOptions(index).index : index;
1419
- },
1420
- getRowStyle: function getRowStyle(rowData) {
1421
- if (this.rowStyle) {
1422
- return this.rowStyle(rowData);
1423
- }
1424
- },
1425
- getRowClass: function getRowClass(rowData) {
1426
- var rowStyleClass = [];
1427
- if (this.rowClass) {
1428
- var rowClassValue = this.rowClass(rowData);
1429
- if (rowClassValue) {
1430
- rowStyleClass.push(rowClassValue);
1431
- }
1432
- }
1433
- return [this.cx('row', {
1434
- rowData: rowData
1435
- }), rowStyleClass];
1436
- },
1437
- shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter(value, rowData, i) {
1438
- if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
1439
- return false;
1440
- } else {
1441
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1442
- var nextRowData = value[i + 1];
1443
- if (nextRowData) {
1444
- var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
1445
- return currentRowFieldData !== nextRowFieldData;
1446
- } else {
1447
- return true;
1448
- }
1449
- }
1450
- },
1451
- shouldRenderBodyCell: function shouldRenderBodyCell(value, column, i) {
1452
- if (this.rowGroupMode) {
1416
+ shouldRenderBodyCell: function shouldRenderBodyCell(column) {
1417
+ var isHidden = this.columnProp(column, 'hidden');
1418
+ if (this.rowGroupMode && !isHidden) {
1419
+ var field = this.columnProp(column, 'field');
1453
1420
  if (this.rowGroupMode === 'subheader') {
1454
- return this.groupRowsBy !== this.columnProp(column, 'field');
1421
+ return this.groupRowsBy !== field;
1455
1422
  } else if (this.rowGroupMode === 'rowspan') {
1456
1423
  if (this.isGrouped(column)) {
1457
- var prevRowData = value[i - 1];
1424
+ var prevRowData = this.value[this.rowIndex - 1];
1458
1425
  if (prevRowData) {
1459
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
1460
- var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.columnProp(column, 'field'));
1426
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[this.rowIndex], field);
1427
+ var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, field);
1461
1428
  return currentRowFieldData !== previousRowFieldData;
1462
1429
  } else {
1463
1430
  return true;
@@ -1467,19 +1434,21 @@ var script$7 = {
1467
1434
  }
1468
1435
  }
1469
1436
  } else {
1470
- return !this.columnProp(column, 'hidden');
1437
+ return !isHidden;
1471
1438
  }
1472
1439
  },
1473
- calculateRowGroupSize: function calculateRowGroupSize(value, column, index) {
1440
+ calculateRowGroupSize: function calculateRowGroupSize(column) {
1474
1441
  if (this.isGrouped(column)) {
1475
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(value[index], this.columnProp(column, 'field'));
1442
+ var index = this.rowIndex;
1443
+ var field = this.columnProp(column, 'field');
1444
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[index], field);
1476
1445
  var nextRowFieldData = currentRowFieldData;
1477
1446
  var groupRowSpan = 0;
1478
1447
  while (currentRowFieldData === nextRowFieldData) {
1479
1448
  groupRowSpan++;
1480
- var nextRowData = value[++index];
1449
+ var nextRowData = this.value[++index];
1481
1450
  if (nextRowData) {
1482
- nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
1451
+ nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, field);
1483
1452
  } else {
1484
1453
  break;
1485
1454
  }
@@ -1490,55 +1459,21 @@ var script$7 = {
1490
1459
  }
1491
1460
  },
1492
1461
  isGrouped: function isGrouped(column) {
1493
- if (this.groupRowsBy && this.columnProp(column, 'field')) {
1494
- if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(column.props.field) > -1;else return this.groupRowsBy === column.props.field;
1462
+ var field = this.columnProp(column, 'field');
1463
+ if (this.groupRowsBy && field) {
1464
+ if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(field) > -1;else return this.groupRowsBy === field;
1495
1465
  } else {
1496
1466
  return false;
1497
1467
  }
1498
1468
  },
1499
- isRowEditing: function isRowEditing(rowData) {
1500
- if (rowData && this.editingRows) {
1501
- if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.editingRows) > -1;
1502
- }
1503
- return false;
1504
- },
1505
- isRowExpanded: function isRowExpanded(rowData) {
1506
- if (rowData && this.expandedRows) {
1507
- if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.expandedRows) > -1;
1508
- }
1509
- return false;
1510
- },
1511
- isRowGroupExpanded: function isRowGroupExpanded(rowData) {
1512
- if (this.expandableRowGroups && this.expandedRowGroups) {
1513
- var groupFieldValue = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1514
- return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
1515
- }
1516
- return false;
1517
- },
1518
- isSelected: function isSelected(rowData) {
1519
- if (rowData && this.selection) {
1520
- if (this.dataKey) {
1521
- return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
1522
- } else {
1523
- if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);
1524
- }
1525
- }
1526
- return false;
1469
+ findIndexInSelection: function findIndexInSelection(data) {
1470
+ return this.findIndex(data, this.selection);
1527
1471
  },
1528
- isSelectedWithContextMenu: function isSelectedWithContextMenu(rowData) {
1529
- if (rowData && this.contextMenuSelection) {
1530
- return this.equals(rowData, this.contextMenuSelection, this.dataKey);
1531
- }
1532
- return false;
1533
- },
1534
- findIndexInSelection: function findIndexInSelection(rowData) {
1535
- return this.findIndex(rowData, this.selection);
1536
- },
1537
- findIndex: function findIndex(rowData, collection) {
1472
+ findIndex: function findIndex(data, collection) {
1538
1473
  var index = -1;
1539
1474
  if (collection && collection.length) {
1540
1475
  for (var i = 0; i < collection.length; i++) {
1541
- if (this.equals(rowData, collection[i])) {
1476
+ if (this.equals(data, collection[i])) {
1542
1477
  index = i;
1543
1478
  break;
1544
1479
  }
@@ -1549,56 +1484,56 @@ var script$7 = {
1549
1484
  equals: function equals(data1, data2) {
1550
1485
  return this.compareSelectionBy === 'equals' ? data1 === data2 : utils.ObjectUtils.equals(data1, data2, this.dataKey);
1551
1486
  },
1552
- onRowGroupToggle: function onRowGroupToggle(event, data) {
1487
+ onRowGroupToggle: function onRowGroupToggle(event) {
1553
1488
  this.$emit('rowgroup-toggle', {
1554
1489
  originalEvent: event,
1555
- data: data
1490
+ data: this.rowData
1556
1491
  });
1557
1492
  },
1558
- onRowClick: function onRowClick(event, rowData, rowIndex) {
1493
+ onRowClick: function onRowClick(event) {
1559
1494
  this.$emit('row-click', {
1560
1495
  originalEvent: event,
1561
- data: rowData,
1562
- index: rowIndex
1496
+ data: this.rowData,
1497
+ index: this.rowIndex
1563
1498
  });
1564
1499
  },
1565
- onRowDblClick: function onRowDblClick(event, rowData, rowIndex) {
1500
+ onRowDblClick: function onRowDblClick(event) {
1566
1501
  this.$emit('row-dblclick', {
1567
1502
  originalEvent: event,
1568
- data: rowData,
1569
- index: rowIndex
1503
+ data: this.rowData,
1504
+ index: this.rowIndex
1570
1505
  });
1571
1506
  },
1572
- onRowRightClick: function onRowRightClick(event, rowData, rowIndex) {
1507
+ onRowRightClick: function onRowRightClick(event) {
1573
1508
  this.$emit('row-rightclick', {
1574
1509
  originalEvent: event,
1575
- data: rowData,
1576
- index: rowIndex
1510
+ data: this.rowData,
1511
+ index: this.rowIndex
1577
1512
  });
1578
1513
  },
1579
1514
  onRowTouchEnd: function onRowTouchEnd(event) {
1580
1515
  this.$emit('row-touchend', event);
1581
1516
  },
1582
- onRowKeyDown: function onRowKeyDown(event, rowData, rowIndex) {
1517
+ onRowKeyDown: function onRowKeyDown(event) {
1583
1518
  this.$emit('row-keydown', {
1584
1519
  originalEvent: event,
1585
- data: rowData,
1586
- index: rowIndex
1520
+ data: this.rowData,
1521
+ index: this.rowIndex
1587
1522
  });
1588
1523
  },
1589
1524
  onRowMouseDown: function onRowMouseDown(event) {
1590
1525
  this.$emit('row-mousedown', event);
1591
1526
  },
1592
- onRowDragStart: function onRowDragStart(event, rowIndex) {
1527
+ onRowDragStart: function onRowDragStart(event) {
1593
1528
  this.$emit('row-dragstart', {
1594
1529
  originalEvent: event,
1595
- index: rowIndex
1530
+ index: this.rowIndex
1596
1531
  });
1597
1532
  },
1598
- onRowDragOver: function onRowDragOver(event, rowIndex) {
1533
+ onRowDragOver: function onRowDragOver(event) {
1599
1534
  this.$emit('row-dragover', {
1600
1535
  originalEvent: event,
1601
- index: rowIndex
1536
+ index: this.rowIndex
1602
1537
  });
1603
1538
  },
1604
1539
  onRowDragLeave: function onRowDragLeave(event) {
@@ -1611,7 +1546,10 @@ var script$7 = {
1611
1546
  this.$emit('row-drop', event);
1612
1547
  },
1613
1548
  onRowToggle: function onRowToggle(event) {
1614
- this.$emit('row-toggle', event);
1549
+ this.d_rowExpanded = !this.d_rowExpanded;
1550
+ this.$emit('row-toggle', _objectSpread$9(_objectSpread$9({}, event), {}, {
1551
+ expanded: this.d_rowExpanded
1552
+ }));
1615
1553
  },
1616
1554
  onRadioChange: function onRadioChange(event) {
1617
1555
  this.$emit('radio-change', event);
@@ -1640,6 +1578,420 @@ var script$7 = {
1640
1578
  onEditingMetaChange: function onEditingMetaChange(event) {
1641
1579
  this.$emit('editing-meta-change', event);
1642
1580
  },
1581
+ getVirtualScrollerProp: function getVirtualScrollerProp(option, options) {
1582
+ options = options || this.virtualScrollerContentProps;
1583
+ return options ? options[option] : null;
1584
+ }
1585
+ },
1586
+ computed: {
1587
+ rowIndex: function rowIndex() {
1588
+ var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
1589
+ return getItemOptions ? getItemOptions(this.index).index : this.index;
1590
+ },
1591
+ rowStyles: function rowStyles() {
1592
+ var _this$rowStyle;
1593
+ return (_this$rowStyle = this.rowStyle) === null || _this$rowStyle === void 0 ? void 0 : _this$rowStyle.call(this, this.rowData);
1594
+ },
1595
+ rowClasses: function rowClasses() {
1596
+ var rowStyleClass = [];
1597
+ if (this.rowClass) {
1598
+ var rowClassValue = this.rowClass(this.rowData);
1599
+ if (rowClassValue) {
1600
+ rowStyleClass.push(rowClassValue);
1601
+ }
1602
+ }
1603
+ return [this.cx('row', {
1604
+ rowData: this.rowData,
1605
+ index: this.rowIndex
1606
+ }), rowStyleClass];
1607
+ },
1608
+ rowTabindex: function rowTabindex() {
1609
+ if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
1610
+ return this.rowIndex === 0 ? 0 : -1;
1611
+ }
1612
+ return -1;
1613
+ },
1614
+ isRowEditing: function isRowEditing() {
1615
+ if (this.rowData && this.editingRows) {
1616
+ if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;else return this.findIndex(this.rowData, this.editingRows) > -1;
1617
+ }
1618
+ return false;
1619
+ },
1620
+ isRowGroupExpanded: function isRowGroupExpanded() {
1621
+ if (this.expandableRowGroups && this.expandedRowGroups) {
1622
+ var groupFieldValue = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1623
+ return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
1624
+ }
1625
+ return false;
1626
+ },
1627
+ isSelected: function isSelected() {
1628
+ if (this.rowData && this.selection) {
1629
+ if (this.dataKey) {
1630
+ return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;
1631
+ } else {
1632
+ if (this.selection instanceof Array) return this.findIndexInSelection(this.rowData) > -1;else return this.equals(this.rowData, this.selection);
1633
+ }
1634
+ }
1635
+ return false;
1636
+ },
1637
+ isSelectedWithContextMenu: function isSelectedWithContextMenu() {
1638
+ if (this.rowData && this.contextMenuSelection) {
1639
+ return this.equals(this.rowData, this.contextMenuSelection, this.dataKey);
1640
+ }
1641
+ return false;
1642
+ },
1643
+ shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader() {
1644
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1645
+ var prevRowData = this.value[this.rowIndex - 1];
1646
+ if (prevRowData) {
1647
+ var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
1648
+ return currentRowFieldData !== previousRowFieldData;
1649
+ } else {
1650
+ return true;
1651
+ }
1652
+ },
1653
+ shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter() {
1654
+ if (this.expandableRowGroups && !this.isRowGroupExpanded) {
1655
+ return false;
1656
+ } else {
1657
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1658
+ var nextRowData = this.value[this.rowIndex + 1];
1659
+ if (nextRowData) {
1660
+ var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
1661
+ return currentRowFieldData !== nextRowFieldData;
1662
+ } else {
1663
+ return true;
1664
+ }
1665
+ }
1666
+ },
1667
+ columnsLength: function columnsLength() {
1668
+ var _this2 = this;
1669
+ var hiddenColLength = 0;
1670
+ this.columns.forEach(function (column) {
1671
+ if (_this2.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
1672
+ if (_this2.columnProp(column, 'hidden')) hiddenColLength++;
1673
+ });
1674
+ return this.columns ? this.columns.length - hiddenColLength : 0;
1675
+ }
1676
+ },
1677
+ components: {
1678
+ DTBodyCell: script$9,
1679
+ ChevronDownIcon: ChevronDownIcon__default["default"],
1680
+ ChevronRightIcon: ChevronRightIcon__default["default"]
1681
+ }
1682
+ };
1683
+
1684
+ 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); }
1685
+ 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; }
1686
+ 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; }
1687
+ 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; }
1688
+ function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
1689
+ 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); }
1690
+ var _hoisted_1$4 = ["colspan"];
1691
+ var _hoisted_2$1 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
1692
+ var _hoisted_3$1 = ["id"];
1693
+ var _hoisted_4 = ["colspan"];
1694
+ var _hoisted_5 = ["colspan"];
1695
+ var _hoisted_6 = ["colspan"];
1696
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1697
+ var _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
1698
+ var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
1699
+ var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
1700
+ return !$props.empty ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1701
+ key: 0
1702
+ }, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1703
+ key: 0,
1704
+ "class": _ctx.cx('rowGroupHeader'),
1705
+ style: $props.rowGroupHeaderStyle,
1706
+ role: "row"
1707
+ }, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
1708
+ colspan: $options.columnsLength - 1
1709
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1710
+ key: 0,
1711
+ "class": _ctx.cx('rowGroupToggler'),
1712
+ onClick: _cache[0] || (_cache[0] = function () {
1713
+ return $options.onRowGroupToggle && $options.onRowGroupToggle.apply($options, arguments);
1714
+ }),
1715
+ type: "button"
1716
+ }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1717
+ key: 0,
1718
+ expanded: $options.isRowGroupExpanded
1719
+ }, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1720
+ key: 1
1721
+ }, [$options.isRowGroupExpanded && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1722
+ key: 0,
1723
+ "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1724
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
1725
+ key: 1,
1726
+ "class": _ctx.cx('rowGroupTogglerIcon')
1727
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1728
+ key: 2,
1729
+ "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1730
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
1731
+ key: 3,
1732
+ "class": _ctx.cx('rowGroupTogglerIcon')
1733
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
1734
+ data: $props.rowData,
1735
+ index: $options.rowIndex
1736
+ }, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : vue.createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1737
+ key: 1,
1738
+ "class": $options.rowClasses,
1739
+ style: $options.rowStyles,
1740
+ tabindex: $options.rowTabindex,
1741
+ role: "row",
1742
+ "aria-selected": $props.selectionMode ? $options.isSelected : null,
1743
+ onClick: _cache[1] || (_cache[1] = function () {
1744
+ return $options.onRowClick && $options.onRowClick.apply($options, arguments);
1745
+ }),
1746
+ onDblclick: _cache[2] || (_cache[2] = function () {
1747
+ return $options.onRowDblClick && $options.onRowDblClick.apply($options, arguments);
1748
+ }),
1749
+ onContextmenu: _cache[3] || (_cache[3] = function () {
1750
+ return $options.onRowRightClick && $options.onRowRightClick.apply($options, arguments);
1751
+ }),
1752
+ onTouchend: _cache[4] || (_cache[4] = function () {
1753
+ return $options.onRowTouchEnd && $options.onRowTouchEnd.apply($options, arguments);
1754
+ }),
1755
+ onKeydown: _cache[5] || (_cache[5] = vue.withModifiers(function () {
1756
+ return $options.onRowKeyDown && $options.onRowKeyDown.apply($options, arguments);
1757
+ }, ["self"])),
1758
+ onMousedown: _cache[6] || (_cache[6] = function () {
1759
+ return $options.onRowMouseDown && $options.onRowMouseDown.apply($options, arguments);
1760
+ }),
1761
+ onDragstart: _cache[7] || (_cache[7] = function () {
1762
+ return $options.onRowDragStart && $options.onRowDragStart.apply($options, arguments);
1763
+ }),
1764
+ onDragover: _cache[8] || (_cache[8] = function () {
1765
+ return $options.onRowDragOver && $options.onRowDragOver.apply($options, arguments);
1766
+ }),
1767
+ onDragleave: _cache[9] || (_cache[9] = function () {
1768
+ return $options.onRowDragLeave && $options.onRowDragLeave.apply($options, arguments);
1769
+ }),
1770
+ onDragend: _cache[10] || (_cache[10] = function () {
1771
+ return $options.onRowDragEnd && $options.onRowDragEnd.apply($options, arguments);
1772
+ }),
1773
+ onDrop: _cache[11] || (_cache[11] = function () {
1774
+ return $options.onRowDrop && $options.onRowDrop.apply($options, arguments);
1775
+ })
1776
+ }, $options.getBodyRowPTOptions('bodyRow'), {
1777
+ "data-p-index": $options.rowIndex,
1778
+ "data-p-selectable-row": $props.selectionMode ? true : false,
1779
+ "data-p-highlight": $props.selection && $options.isSelected,
1780
+ "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu
1781
+ }), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
1782
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$options.shouldRenderBodyCell(col) ? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
1783
+ key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
1784
+ rowData: $props.rowData,
1785
+ column: col,
1786
+ rowIndex: $options.rowIndex,
1787
+ index: i,
1788
+ selected: $options.isSelected,
1789
+ frozenRow: $props.frozenRow,
1790
+ rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize(col) : null,
1791
+ editMode: $props.editMode,
1792
+ editing: $props.editMode === 'row' && $options.isRowEditing,
1793
+ editingMeta: $props.editingMeta,
1794
+ responsiveLayout: $props.responsiveLayout,
1795
+ virtualScrollerContentProps: $props.virtualScrollerContentProps,
1796
+ ariaControls: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
1797
+ name: $props.nameAttributeSelector,
1798
+ isRowExpanded: $data.d_rowExpanded,
1799
+ expandedRowIcon: $props.expandedRowIcon,
1800
+ collapsedRowIcon: $props.collapsedRowIcon,
1801
+ onRadioChange: $options.onRadioChange,
1802
+ onCheckboxChange: $options.onCheckboxChange,
1803
+ onRowToggle: $options.onRowToggle,
1804
+ onCellEditInit: $options.onCellEditInit,
1805
+ onCellEditComplete: $options.onCellEditComplete,
1806
+ onCellEditCancel: $options.onCellEditCancel,
1807
+ onRowEditInit: $options.onRowEditInit,
1808
+ onRowEditSave: $options.onRowEditSave,
1809
+ onRowEditCancel: $options.onRowEditCancel,
1810
+ onEditingMetaChange: $options.onEditingMetaChange,
1811
+ unstyled: _ctx.unstyled,
1812
+ pt: _ctx.pt
1813
+ }, 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"])) : vue.createCommentVNode("", true)], 64);
1814
+ }), 256))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1815
+ key: 2,
1816
+ id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
1817
+ "class": _ctx.cx('rowExpansion'),
1818
+ role: "row"
1819
+ }, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
1820
+ colspan: $options.columnsLength
1821
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
1822
+ data: $props.rowData,
1823
+ index: $options.rowIndex
1824
+ }, null, 8, ["data", "index"]))], 16, _hoisted_4)], 16, _hoisted_3$1)) : vue.createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1825
+ key: 3,
1826
+ "class": _ctx.cx('rowGroupFooter'),
1827
+ role: "row"
1828
+ }, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
1829
+ colspan: $options.columnsLength - 1
1830
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
1831
+ data: $props.rowData,
1832
+ index: $options.rowIndex
1833
+ }, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16)) : vue.createCommentVNode("", true)], 64)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1834
+ key: 1,
1835
+ "class": _ctx.cx('emptyMessage'),
1836
+ role: "row"
1837
+ }, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
1838
+ colspan: $options.columnsLength
1839
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
1840
+ key: 0
1841
+ })) : vue.createCommentVNode("", true)], 16, _hoisted_6)], 16));
1842
+ }
1843
+
1844
+ script$8.render = render$8;
1845
+
1846
+ var script$7 = {
1847
+ name: 'TableBody',
1848
+ hostName: 'DataTable',
1849
+ "extends": BaseComponent__default["default"],
1850
+ 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'],
1851
+ props: {
1852
+ value: {
1853
+ type: Array,
1854
+ "default": null
1855
+ },
1856
+ columns: {
1857
+ type: null,
1858
+ "default": null
1859
+ },
1860
+ frozenRow: {
1861
+ type: Boolean,
1862
+ "default": false
1863
+ },
1864
+ empty: {
1865
+ type: Boolean,
1866
+ "default": false
1867
+ },
1868
+ rowGroupMode: {
1869
+ type: String,
1870
+ "default": null
1871
+ },
1872
+ groupRowsBy: {
1873
+ type: [Array, String, Function],
1874
+ "default": null
1875
+ },
1876
+ expandableRowGroups: {
1877
+ type: Boolean,
1878
+ "default": false
1879
+ },
1880
+ expandedRowGroups: {
1881
+ type: Array,
1882
+ "default": null
1883
+ },
1884
+ first: {
1885
+ type: Number,
1886
+ "default": 0
1887
+ },
1888
+ dataKey: {
1889
+ type: [String, Function],
1890
+ "default": null
1891
+ },
1892
+ expandedRowIcon: {
1893
+ type: String,
1894
+ "default": null
1895
+ },
1896
+ collapsedRowIcon: {
1897
+ type: String,
1898
+ "default": null
1899
+ },
1900
+ expandedRows: {
1901
+ type: [Array, Object],
1902
+ "default": null
1903
+ },
1904
+ selection: {
1905
+ type: [Array, Object],
1906
+ "default": null
1907
+ },
1908
+ selectionKeys: {
1909
+ type: null,
1910
+ "default": null
1911
+ },
1912
+ selectionMode: {
1913
+ type: String,
1914
+ "default": null
1915
+ },
1916
+ contextMenu: {
1917
+ type: Boolean,
1918
+ "default": false
1919
+ },
1920
+ contextMenuSelection: {
1921
+ type: Object,
1922
+ "default": null
1923
+ },
1924
+ rowClass: {
1925
+ type: null,
1926
+ "default": null
1927
+ },
1928
+ rowStyle: {
1929
+ type: null,
1930
+ "default": null
1931
+ },
1932
+ editMode: {
1933
+ type: String,
1934
+ "default": null
1935
+ },
1936
+ compareSelectionBy: {
1937
+ type: String,
1938
+ "default": 'deepEquals'
1939
+ },
1940
+ editingRows: {
1941
+ type: Array,
1942
+ "default": null
1943
+ },
1944
+ editingRowKeys: {
1945
+ type: null,
1946
+ "default": null
1947
+ },
1948
+ editingMeta: {
1949
+ type: Object,
1950
+ "default": null
1951
+ },
1952
+ templates: {
1953
+ type: null,
1954
+ "default": null
1955
+ },
1956
+ scrollable: {
1957
+ type: Boolean,
1958
+ "default": false
1959
+ },
1960
+ responsiveLayout: {
1961
+ type: String,
1962
+ "default": 'stack'
1963
+ },
1964
+ virtualScrollerContentProps: {
1965
+ type: Object,
1966
+ "default": null
1967
+ },
1968
+ isVirtualScrollerDisabled: {
1969
+ type: Boolean,
1970
+ "default": false
1971
+ }
1972
+ },
1973
+ data: function data() {
1974
+ return {
1975
+ rowGroupHeaderStyleObject: {}
1976
+ };
1977
+ },
1978
+ mounted: function mounted() {
1979
+ if (this.frozenRow) {
1980
+ this.updateFrozenRowStickyPosition();
1981
+ }
1982
+ if (this.scrollable && this.rowGroupMode === 'subheader') {
1983
+ this.updateFrozenRowGroupHeaderStickyPosition();
1984
+ }
1985
+ },
1986
+ updated: function updated() {
1987
+ if (this.frozenRow) {
1988
+ this.updateFrozenRowStickyPosition();
1989
+ }
1990
+ if (this.scrollable && this.rowGroupMode === 'subheader') {
1991
+ this.updateFrozenRowGroupHeaderStickyPosition();
1992
+ }
1993
+ },
1994
+ methods: {
1643
1995
  updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
1644
1996
  this.$el.style.top = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
1645
1997
  },
@@ -1655,74 +2007,42 @@ var script$7 = {
1655
2007
  // For VirtualScroller
1656
2008
  var contentRef = this.getVirtualScrollerProp('contentRef');
1657
2009
  contentRef && contentRef(el);
1658
- },
1659
- setRowTabindex: function setRowTabindex(index) {
1660
- if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
1661
- return index === 0 ? 0 : -1;
1662
- }
1663
- return -1;
1664
2010
  }
1665
2011
  },
1666
2012
  computed: {
1667
- columnsLength: function columnsLength() {
1668
- var _this = this;
1669
- var hiddenColLength = 0;
1670
- this.columns.forEach(function (column) {
1671
- if (_this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
1672
- if (_this.columnProp(column, 'hidden')) hiddenColLength++;
1673
- });
1674
- return this.columns ? this.columns.length - hiddenColLength : 0;
1675
- },
1676
2013
  rowGroupHeaderStyle: function rowGroupHeaderStyle() {
1677
2014
  if (this.scrollable) {
1678
2015
  return {
1679
2016
  top: this.rowGroupHeaderStyleObject.top
1680
2017
  };
1681
2018
  }
1682
- return null;
1683
- },
1684
- bodyStyle: function bodyStyle() {
1685
- return this.getVirtualScrollerProp('contentStyle');
1686
- },
1687
- expandedRowId: function expandedRowId() {
1688
- return utils.UniqueComponentId();
2019
+ return null;
1689
2020
  },
1690
- nameAttributeSelector: function nameAttributeSelector() {
1691
- return utils.UniqueComponentId();
2021
+ bodyStyle: function bodyStyle() {
2022
+ return this.getVirtualScrollerProp('contentStyle');
1692
2023
  },
1693
2024
  ptmTBodyOptions: function ptmTBodyOptions() {
1694
- var _this$$parentInstance4;
2025
+ var _this$$parentInstance;
1695
2026
  return {
1696
2027
  context: {
1697
- 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
2028
+ 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
1698
2029
  }
1699
2030
  };
2031
+ },
2032
+ expandedRowId: function expandedRowId() {
2033
+ return utils.UniqueComponentId();
2034
+ },
2035
+ nameAttributeSelector: function nameAttributeSelector() {
2036
+ return utils.UniqueComponentId();
1700
2037
  }
1701
2038
  },
1702
2039
  components: {
1703
- DTBodyCell: script$8,
1704
- ChevronDownIcon: ChevronDownIcon__default["default"],
1705
- ChevronRightIcon: ChevronRightIcon__default["default"]
2040
+ DTBodyRow: script$8
1706
2041
  }
1707
2042
  };
1708
2043
 
1709
- 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); }
1710
- 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; }
1711
- 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; }
1712
- 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; }
1713
- function _toPropertyKey$8(arg) { var key = _toPrimitive$8(arg, "string"); return _typeof$8(key) === "symbol" ? key : String(key); }
1714
- 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); }
1715
- var _hoisted_1$4 = ["colspan"];
1716
- var _hoisted_2$1 = ["onClick"];
1717
- var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
1718
- var _hoisted_4 = ["id"];
1719
- var _hoisted_5 = ["colspan"];
1720
- var _hoisted_6 = ["colspan"];
1721
- var _hoisted_7 = ["colspan"];
1722
2044
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1723
- var _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
1724
- var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
1725
- var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
2045
+ var _component_DTBodyRow = vue.resolveComponent("DTBodyRow");
1726
2046
  return vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
1727
2047
  ref: $options.bodyRef,
1728
2048
  "class": _ctx.cx('tbody'),
@@ -1730,165 +2050,119 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1730
2050
  style: $options.bodyStyle
1731
2051
  }, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
1732
2052
  key: 0
1733
- }, vue.renderList($props.value, function (rowData, index) {
1734
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1735
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader',
1736
- "class": _ctx.cx('rowGroupHeader'),
1737
- style: $options.rowGroupHeaderStyle,
1738
- role: "row"
1739
- }, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
1740
- colspan: $options.columnsLength - 1
1741
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1742
- key: 0,
1743
- "class": _ctx.cx('rowGroupToggler'),
1744
- onClick: function onClick($event) {
1745
- return $options.onRowGroupToggle($event, rowData);
1746
- },
1747
- type: "button"
1748
- }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1749
- key: 0,
1750
- expanded: $options.isRowGroupExpanded(rowData)
1751
- }, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1752
- key: 1
1753
- }, [$options.isRowGroupExpanded(rowData) && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1754
- key: 0,
1755
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1756
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
1757
- key: 1,
1758
- "class": _ctx.cx('rowGroupTogglerIcon')
1759
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1760
- key: 2,
1761
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1762
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
1763
- key: 3,
1764
- "class": _ctx.cx('rowGroupTogglerIcon')
1765
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
1766
- data: rowData,
1767
- index: $options.getRowIndex(index)
1768
- }, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : vue.createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1769
- key: $options.getRowKey(rowData, $options.getRowIndex(index)),
1770
- "class": $options.getRowClass(rowData),
1771
- style: $options.getRowStyle(rowData),
1772
- tabindex: $options.setRowTabindex(index),
1773
- role: "row",
1774
- "aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
1775
- onClick: function onClick($event) {
1776
- return $options.onRowClick($event, rowData, $options.getRowIndex(index));
1777
- },
1778
- onDblclick: function onDblclick($event) {
1779
- return $options.onRowDblClick($event, rowData, $options.getRowIndex(index));
1780
- },
1781
- onContextmenu: function onContextmenu($event) {
1782
- return $options.onRowRightClick($event, rowData, $options.getRowIndex(index));
1783
- },
1784
- onTouchend: _cache[9] || (_cache[9] = function ($event) {
1785
- return $options.onRowTouchEnd($event);
2053
+ }, vue.renderList($props.value, function (rowData, rowIndex) {
2054
+ return vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
2055
+ key: rowIndex,
2056
+ rowData: rowData,
2057
+ index: rowIndex,
2058
+ value: $props.value,
2059
+ columns: $props.columns,
2060
+ frozenRow: $props.frozenRow,
2061
+ empty: $props.empty,
2062
+ first: $props.first,
2063
+ dataKey: $props.dataKey,
2064
+ selection: $props.selection,
2065
+ selectionKeys: $props.selectionKeys,
2066
+ selectionMode: $props.selectionMode,
2067
+ contextMenu: $props.contextMenu,
2068
+ contextMenuSelection: $props.contextMenuSelection,
2069
+ rowGroupMode: $props.rowGroupMode,
2070
+ groupRowsBy: $props.groupRowsBy,
2071
+ expandableRowGroups: $props.expandableRowGroups,
2072
+ rowClass: $props.rowClass,
2073
+ rowStyle: $props.rowStyle,
2074
+ editMode: $props.editMode,
2075
+ compareSelectionBy: $props.compareSelectionBy,
2076
+ scrollable: $props.scrollable,
2077
+ expandedRowIcon: $props.expandedRowIcon,
2078
+ collapsedRowIcon: $props.collapsedRowIcon,
2079
+ expandedRows: $props.expandedRows,
2080
+ expandedRowGroups: $props.expandedRowGroups,
2081
+ editingRows: $props.editingRows,
2082
+ editingRowKeys: $props.editingRowKeys,
2083
+ templates: $props.templates,
2084
+ responsiveLayout: $props.responsiveLayout,
2085
+ virtualScrollerContentProps: $props.virtualScrollerContentProps,
2086
+ isVirtualScrollerDisabled: $props.isVirtualScrollerDisabled,
2087
+ editingMeta: $props.editingMeta,
2088
+ rowGroupHeaderStyle: $options.rowGroupHeaderStyle,
2089
+ expandedRowId: $options.expandedRowId,
2090
+ nameAttributeSelector: $options.nameAttributeSelector,
2091
+ onRowgroupToggle: _cache[0] || (_cache[0] = function ($event) {
2092
+ return _ctx.$emit('rowgroup-toggle', $event);
1786
2093
  }),
1787
- onKeydown: vue.withModifiers(function ($event) {
1788
- return $options.onRowKeyDown($event, rowData, $options.getRowIndex(index));
1789
- }, ["self"]),
1790
- onMousedown: _cache[10] || (_cache[10] = function ($event) {
1791
- return $options.onRowMouseDown($event);
2094
+ onRowClick: _cache[1] || (_cache[1] = function ($event) {
2095
+ return _ctx.$emit('row-click', $event);
1792
2096
  }),
1793
- onDragstart: function onDragstart($event) {
1794
- return $options.onRowDragStart($event, $options.getRowIndex(index));
1795
- },
1796
- onDragover: function onDragover($event) {
1797
- return $options.onRowDragOver($event, $options.getRowIndex(index));
1798
- },
1799
- onDragleave: _cache[11] || (_cache[11] = function ($event) {
1800
- return $options.onRowDragLeave($event);
2097
+ onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
2098
+ return _ctx.$emit('row-dblclick', $event);
1801
2099
  }),
1802
- onDragend: _cache[12] || (_cache[12] = function ($event) {
1803
- return $options.onRowDragEnd($event);
2100
+ onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
2101
+ return _ctx.$emit('row-rightclick', $event);
1804
2102
  }),
1805
- onDrop: _cache[13] || (_cache[13] = function ($event) {
1806
- return $options.onRowDrop($event);
1807
- })
1808
- }, $options.getBodyRowPTOptions('bodyRow', rowData, index), {
1809
- "data-p-selectable-row": $props.selectionMode ? true : false,
1810
- "data-p-highlight": $props.selection && $options.isSelected(rowData),
1811
- "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu(rowData)
1812
- }), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
1813
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
1814
- key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
1815
- rowData: rowData,
1816
- column: col,
1817
- rowIndex: $options.getRowIndex(index),
1818
- index: i,
1819
- selected: $options.isSelected(rowData),
1820
- frozenRow: $props.frozenRow,
1821
- rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
1822
- editMode: $props.editMode,
1823
- editing: $props.editMode === 'row' && $options.isRowEditing(rowData),
1824
- editingMeta: $props.editingMeta,
1825
- responsiveLayout: $props.responsiveLayout,
1826
- virtualScrollerContentProps: $props.virtualScrollerContentProps,
1827
- ariaControls: $options.expandedRowId + '_' + index + '_expansion',
1828
- name: $options.nameAttributeSelector,
1829
- isRowExpanded: $options.isRowExpanded(rowData),
1830
- expandedRowIcon: $props.expandedRowIcon,
1831
- collapsedRowIcon: $props.collapsedRowIcon,
1832
- onRadioChange: _cache[0] || (_cache[0] = function ($event) {
1833
- return $options.onRadioChange($event);
1834
- }),
1835
- onCheckboxChange: _cache[1] || (_cache[1] = function ($event) {
1836
- return $options.onCheckboxChange($event);
1837
- }),
1838
- onRowToggle: _cache[2] || (_cache[2] = function ($event) {
1839
- return $options.onRowToggle($event);
1840
- }),
1841
- onCellEditInit: _cache[3] || (_cache[3] = function ($event) {
1842
- return $options.onCellEditInit($event);
1843
- }),
1844
- onCellEditComplete: _cache[4] || (_cache[4] = function ($event) {
1845
- return $options.onCellEditComplete($event);
1846
- }),
1847
- onCellEditCancel: _cache[5] || (_cache[5] = function ($event) {
1848
- return $options.onCellEditCancel($event);
1849
- }),
1850
- onRowEditInit: _cache[6] || (_cache[6] = function ($event) {
1851
- return $options.onRowEditInit($event);
1852
- }),
1853
- onRowEditSave: _cache[7] || (_cache[7] = function ($event) {
1854
- return $options.onRowEditSave($event);
1855
- }),
1856
- onRowEditCancel: _cache[8] || (_cache[8] = function ($event) {
1857
- return $options.onRowEditCancel($event);
1858
- }),
1859
- onEditingMetaChange: $options.onEditingMetaChange,
1860
- unstyled: _ctx.unstyled,
1861
- pt: _ctx.pt
1862
- }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onEditingMetaChange", "unstyled", "pt"])) : vue.createCommentVNode("", true)], 64);
1863
- }), 256))], 16, _hoisted_3$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1864
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
1865
- id: $options.expandedRowId + '_' + index + '_expansion',
1866
- "class": _ctx.cx('rowExpansion'),
1867
- role: "row"
1868
- }, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
1869
- colspan: $options.columnsLength
1870
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
1871
- data: rowData,
1872
- index: $options.getRowIndex(index)
1873
- }, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16, _hoisted_4)) : vue.createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1874
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
1875
- "class": _ctx.cx('rowGroupFooter'),
1876
- role: "row"
1877
- }, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
1878
- colspan: $options.columnsLength - 1
1879
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
1880
- data: rowData,
1881
- index: $options.getRowIndex(index)
1882
- }, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : vue.createCommentVNode("", true)], 64);
1883
- }), 256)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
2103
+ onRowTouchend: _cache[4] || (_cache[4] = function ($event) {
2104
+ return _ctx.$emit('row-touchend', $event);
2105
+ }),
2106
+ onRowKeydown: _cache[5] || (_cache[5] = function ($event) {
2107
+ return _ctx.$emit('row-keydown', $event);
2108
+ }),
2109
+ onRowMousedown: _cache[6] || (_cache[6] = function ($event) {
2110
+ return _ctx.$emit('row-mousedown', $event);
2111
+ }),
2112
+ onRowDragstart: _cache[7] || (_cache[7] = function ($event) {
2113
+ return _ctx.$emit('row-dragstart', $event);
2114
+ }),
2115
+ onRowDragover: _cache[8] || (_cache[8] = function ($event) {
2116
+ return _ctx.$emit('row-dragover', $event);
2117
+ }),
2118
+ onRowDragleave: _cache[9] || (_cache[9] = function ($event) {
2119
+ return _ctx.$emit('row-dragleave', $event);
2120
+ }),
2121
+ onRowDragend: _cache[10] || (_cache[10] = function ($event) {
2122
+ return _ctx.$emit('row-dragend', $event);
2123
+ }),
2124
+ onRowDrop: _cache[11] || (_cache[11] = function ($event) {
2125
+ return _ctx.$emit('row-drop', $event);
2126
+ }),
2127
+ onRowToggle: _cache[12] || (_cache[12] = function ($event) {
2128
+ return _ctx.$emit('row-toggle', $event);
2129
+ }),
2130
+ onRadioChange: _cache[13] || (_cache[13] = function ($event) {
2131
+ return _ctx.$emit('radio-change', $event);
2132
+ }),
2133
+ onCheckboxChange: _cache[14] || (_cache[14] = function ($event) {
2134
+ return _ctx.$emit('checkbox-change', $event);
2135
+ }),
2136
+ onCellEditInit: _cache[15] || (_cache[15] = function ($event) {
2137
+ return _ctx.$emit('cell-edit-init', $event);
2138
+ }),
2139
+ onCellEditComplete: _cache[16] || (_cache[16] = function ($event) {
2140
+ return _ctx.$emit('cell-edit-complete', $event);
2141
+ }),
2142
+ onCellEditCancel: _cache[17] || (_cache[17] = function ($event) {
2143
+ return _ctx.$emit('cell-edit-cancel', $event);
2144
+ }),
2145
+ onRowEditInit: _cache[18] || (_cache[18] = function ($event) {
2146
+ return _ctx.$emit('row-edit-init', $event);
2147
+ }),
2148
+ onRowEditSave: _cache[19] || (_cache[19] = function ($event) {
2149
+ return _ctx.$emit('row-edit-save', $event);
2150
+ }),
2151
+ onRowEditCancel: _cache[20] || (_cache[20] = function ($event) {
2152
+ return _ctx.$emit('row-edit-cancel', $event);
2153
+ }),
2154
+ onEditingMetaChange: _cache[21] || (_cache[21] = function ($event) {
2155
+ return _ctx.$emit('editing-meta-change', $event);
2156
+ }),
2157
+ unstyled: _ctx.unstyled,
2158
+ pt: _ctx.pt
2159
+ }, 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"]);
2160
+ }), 128)) : (vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
1884
2161
  key: 1,
1885
- "class": _ctx.cx('emptyMessage'),
1886
- role: "row"
1887
- }, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
1888
- colspan: $options.columnsLength
1889
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
1890
- key: 0
1891
- })) : vue.createCommentVNode("", true)], 16, _hoisted_7)], 16))], 16);
2162
+ empty: $props.empty,
2163
+ columns: $props.columns,
2164
+ templates: $props.templates
2165
+ }, null, 8, ["empty", "columns", "templates"]))], 16);
1892
2166
  }
1893
2167
 
1894
2168
  script$7.render = render$7;
@@ -1985,8 +2259,8 @@ function _typeof$7(o) { "@babel/helpers - typeof"; return _typeof$7 = "function"
1985
2259
  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; }
1986
2260
  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; }
1987
2261
  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; }
1988
- function _toPropertyKey$7(arg) { var key = _toPrimitive$7(arg, "string"); return _typeof$7(key) === "symbol" ? key : String(key); }
1989
- 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); }
2262
+ function _toPropertyKey$7(t) { var i = _toPrimitive$7(t, "string"); return "symbol" == _typeof$7(i) ? i : String(i); }
2263
+ 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); }
1990
2264
  var _hoisted_1$3 = ["colspan", "rowspan", "data-p-frozen-column"];
1991
2265
  function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1992
2266
  return vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
@@ -2005,13 +2279,9 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
2005
2279
 
2006
2280
  script$6.render = render$6;
2007
2281
 
2008
- function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2(); }
2009
- 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."); }
2010
- function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
2011
- function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
2012
- 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; } } }; }
2013
- 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); }
2014
- 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; }
2282
+ 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; } } }; }
2283
+ 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); }
2284
+ 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; }
2015
2285
  var script$5 = {
2016
2286
  name: 'TableFooter',
2017
2287
  hostName: 'DataTable',
@@ -2026,6 +2296,26 @@ var script$5 = {
2026
2296
  "default": null
2027
2297
  }
2028
2298
  },
2299
+ provide: function provide() {
2300
+ return {
2301
+ $rows: this.d_footerRows,
2302
+ $columns: this.d_footerColumns
2303
+ };
2304
+ },
2305
+ data: function data() {
2306
+ return {
2307
+ d_footerRows: new utils.HelperSet({
2308
+ type: 'Row'
2309
+ }),
2310
+ d_footerColumns: new utils.HelperSet({
2311
+ type: 'Column'
2312
+ })
2313
+ };
2314
+ },
2315
+ beforeUnmount: function beforeUnmount() {
2316
+ this.d_footerRows.clear();
2317
+ this.d_footerColumns.clear();
2318
+ },
2029
2319
  methods: {
2030
2320
  columnProp: function columnProp(col, prop) {
2031
2321
  return utils.ObjectUtils.getVNodeProp(col, prop);
@@ -2070,36 +2360,12 @@ var script$5 = {
2070
2360
  return row.props && row.props.pt ? row.props.pt : undefined; //@todo
2071
2361
  },
2072
2362
  getFooterRows: function getFooterRows() {
2073
- var rows = [];
2074
- var columnGroup = this.columnGroup;
2075
- if (columnGroup.children && columnGroup.children["default"]) {
2076
- var _iterator = _createForOfIteratorHelper$2(columnGroup.children["default"]()),
2077
- _step;
2078
- try {
2079
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2080
- var child = _step.value;
2081
- if (child.type.name === 'Row') {
2082
- rows.push(child);
2083
- } else if (child.children && child.children instanceof Array) {
2084
- rows = child.children;
2085
- }
2086
- }
2087
- } catch (err) {
2088
- _iterator.e(err);
2089
- } finally {
2090
- _iterator.f();
2091
- }
2092
- return rows;
2093
- }
2363
+ var _this$d_footerRows;
2364
+ return (_this$d_footerRows = this.d_footerRows) === null || _this$d_footerRows === void 0 ? void 0 : _this$d_footerRows.get(this.columnGroup, this.columnGroup.children);
2094
2365
  },
2095
2366
  getFooterColumns: function getFooterColumns(row) {
2096
- var cols = [];
2097
- if (row.children && row.children["default"]) {
2098
- row.children["default"]().forEach(function (child) {
2099
- 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);
2100
- });
2101
- return cols;
2102
- }
2367
+ var _this$d_footerColumns;
2368
+ return (_this$d_footerColumns = this.d_footerColumns) === null || _this$d_footerColumns === void 0 ? void 0 : _this$d_footerColumns.get(row, row.children);
2103
2369
  }
2104
2370
  },
2105
2371
  computed: {
@@ -2108,20 +2374,20 @@ var script$5 = {
2108
2374
  if (this.columnGroup) {
2109
2375
  hasFooter = true;
2110
2376
  } else if (this.columns) {
2111
- var _iterator2 = _createForOfIteratorHelper$2(this.columns),
2112
- _step2;
2377
+ var _iterator = _createForOfIteratorHelper$1(this.columns),
2378
+ _step;
2113
2379
  try {
2114
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2115
- var col = _step2.value;
2380
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2381
+ var col = _step.value;
2116
2382
  if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
2117
2383
  hasFooter = true;
2118
2384
  break;
2119
2385
  }
2120
2386
  }
2121
2387
  } catch (err) {
2122
- _iterator2.e(err);
2388
+ _iterator.e(err);
2123
2389
  } finally {
2124
- _iterator2.f();
2390
+ _iterator.f();
2125
2391
  }
2126
2392
  }
2127
2393
  return hasFooter;
@@ -2144,8 +2410,8 @@ function _typeof$6(o) { "@babel/helpers - typeof"; return _typeof$6 = "function"
2144
2410
  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; }
2145
2411
  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; }
2146
2412
  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; }
2147
- function _toPropertyKey$6(arg) { var key = _toPrimitive$6(arg, "string"); return _typeof$6(key) === "symbol" ? key : String(key); }
2148
- 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); }
2413
+ function _toPropertyKey$6(t) { var i = _toPrimitive$6(t, "string"); return "symbol" == _typeof$6(i) ? i : String(i); }
2414
+ 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); }
2149
2415
  function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2150
2416
  var _component_DTFooterCell = vue.resolveComponent("DTFooterCell");
2151
2417
  return $options.hasFooter ? (vue.openBlock(), vue.createElementBlock("tfoot", vue.mergeProps({
@@ -2191,8 +2457,8 @@ function _typeof$5(o) { "@babel/helpers - typeof"; return _typeof$5 = "function"
2191
2457
  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; }
2192
2458
  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; }
2193
2459
  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; }
2194
- function _toPropertyKey$5(arg) { var key = _toPrimitive$5(arg, "string"); return _typeof$5(key) === "symbol" ? key : String(key); }
2195
- 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); }
2460
+ function _toPropertyKey$5(t) { var i = _toPrimitive$5(t, "string"); return "symbol" == _typeof$5(i) ? i : String(i); }
2461
+ 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); }
2196
2462
  var script$4 = {
2197
2463
  name: 'ColumnFilter',
2198
2464
  hostName: 'DataTable',
@@ -2411,6 +2677,7 @@ var script$4 = {
2411
2677
  onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
2412
2678
  switch (event.code) {
2413
2679
  case 'Enter':
2680
+ case 'NumpadEnter':
2414
2681
  case 'Space':
2415
2682
  this.toggleMenu(event);
2416
2683
  break;
@@ -2732,8 +2999,8 @@ function _typeof$4(o) { "@babel/helpers - typeof"; return _typeof$4 = "function"
2732
2999
  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; }
2733
3000
  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; }
2734
3001
  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; }
2735
- function _toPropertyKey$4(arg) { var key = _toPrimitive$4(arg, "string"); return _typeof$4(key) === "symbol" ? key : String(key); }
2736
- 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); }
3002
+ function _toPropertyKey$4(t) { var i = _toPrimitive$4(t, "string"); return "symbol" == _typeof$4(i) ? i : String(i); }
3003
+ 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); }
2737
3004
  var _hoisted_1$2 = ["aria-label", "aria-expanded", "aria-controls"];
2738
3005
  var _hoisted_2 = ["id", "aria-modal"];
2739
3006
  var _hoisted_3 = ["onClick", "onKeydown", "tabindex"];
@@ -3212,7 +3479,7 @@ var script$2 = {
3212
3479
  });
3213
3480
  },
3214
3481
  onKeyDown: function onKeyDown(event) {
3215
- if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
3482
+ if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
3216
3483
  this.$emit('column-click', {
3217
3484
  originalEvent: event,
3218
3485
  column: this.column
@@ -3227,16 +3494,28 @@ var script$2 = {
3227
3494
  });
3228
3495
  },
3229
3496
  onDragStart: function onDragStart(event) {
3230
- this.$emit('column-dragstart', event);
3497
+ this.$emit('column-dragstart', {
3498
+ originalEvent: event,
3499
+ column: this.column
3500
+ });
3231
3501
  },
3232
3502
  onDragOver: function onDragOver(event) {
3233
- this.$emit('column-dragover', event);
3503
+ this.$emit('column-dragover', {
3504
+ originalEvent: event,
3505
+ column: this.column
3506
+ });
3234
3507
  },
3235
3508
  onDragLeave: function onDragLeave(event) {
3236
- this.$emit('column-dragleave', event);
3509
+ this.$emit('column-dragleave', {
3510
+ originalEvent: event,
3511
+ column: this.column
3512
+ });
3237
3513
  },
3238
3514
  onDrop: function onDrop(event) {
3239
- this.$emit('column-drop', event);
3515
+ this.$emit('column-drop', {
3516
+ originalEvent: event,
3517
+ column: this.column
3518
+ });
3240
3519
  },
3241
3520
  onResizeStart: function onResizeStart(event) {
3242
3521
  this.$emit('column-resizestart', event);
@@ -3278,8 +3557,10 @@ var script$2 = {
3278
3557
  var filterRow = this.$el.parentElement.nextElementSibling;
3279
3558
  if (filterRow) {
3280
3559
  var index = utils.DomHandler.index(this.$el);
3281
- filterRow.children[index].style.left = this.styleObject.left;
3282
- filterRow.children[index].style.right = this.styleObject.right;
3560
+ if (filterRow.children[index]) {
3561
+ filterRow.children[index].style.left = this.styleObject.left;
3562
+ filterRow.children[index].style.right = this.styleObject.right;
3563
+ }
3283
3564
  }
3284
3565
  }
3285
3566
  },
@@ -3345,8 +3626,8 @@ function _typeof$3(o) { "@babel/helpers - typeof"; return _typeof$3 = "function"
3345
3626
  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; }
3346
3627
  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; }
3347
3628
  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; }
3348
- function _toPropertyKey$3(arg) { var key = _toPrimitive$3(arg, "string"); return _typeof$3(key) === "symbol" ? key : String(key); }
3349
- 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); }
3629
+ function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == _typeof$3(i) ? i : String(i); }
3630
+ 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); }
3350
3631
  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"];
3351
3632
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
3352
3633
  var _component_DTHeaderCheckbox = vue.resolveComponent("DTHeaderCheckbox");
@@ -3476,13 +3757,6 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
3476
3757
 
3477
3758
  script$2.render = render$2;
3478
3759
 
3479
- function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
3480
- 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."); }
3481
- function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
3482
- function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
3483
- 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; } } }; }
3484
- 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); }
3485
- 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; }
3486
3760
  var script$1 = {
3487
3761
  name: 'TableHeader',
3488
3762
  hostName: 'DataTable',
@@ -3558,6 +3832,26 @@ var script$1 = {
3558
3832
  "default": null
3559
3833
  }
3560
3834
  },
3835
+ provide: function provide() {
3836
+ return {
3837
+ $rows: this.d_headerRows,
3838
+ $columns: this.d_headerColumns
3839
+ };
3840
+ },
3841
+ data: function data() {
3842
+ return {
3843
+ d_headerRows: new utils.HelperSet({
3844
+ type: 'Row'
3845
+ }),
3846
+ d_headerColumns: new utils.HelperSet({
3847
+ type: 'Column'
3848
+ })
3849
+ };
3850
+ },
3851
+ beforeUnmount: function beforeUnmount() {
3852
+ this.d_headerRows.clear();
3853
+ this.d_headerColumns.clear();
3854
+ },
3561
3855
  methods: {
3562
3856
  columnProp: function columnProp(col, prop) {
3563
3857
  return utils.ObjectUtils.getVNodeProp(col, prop);
@@ -3630,36 +3924,12 @@ var script$1 = {
3630
3924
  return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
3631
3925
  },
3632
3926
  getHeaderRows: function getHeaderRows() {
3633
- var rows = [];
3634
- var columnGroup = this.columnGroup;
3635
- if (columnGroup.children && columnGroup.children["default"]) {
3636
- var _iterator = _createForOfIteratorHelper$1(columnGroup.children["default"]()),
3637
- _step;
3638
- try {
3639
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3640
- var child = _step.value;
3641
- if (child.type.name === 'Row') {
3642
- rows.push(child);
3643
- } else if (child.children && child.children instanceof Array) {
3644
- rows = child.children;
3645
- }
3646
- }
3647
- } catch (err) {
3648
- _iterator.e(err);
3649
- } finally {
3650
- _iterator.f();
3651
- }
3652
- return rows;
3653
- }
3927
+ var _this$d_headerRows;
3928
+ return (_this$d_headerRows = this.d_headerRows) === null || _this$d_headerRows === void 0 ? void 0 : _this$d_headerRows.get(this.columnGroup, this.columnGroup.children);
3654
3929
  },
3655
3930
  getHeaderColumns: function getHeaderColumns(row) {
3656
- var cols = [];
3657
- if (row.children && row.children["default"]) {
3658
- row.children["default"]().forEach(function (child) {
3659
- 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);
3660
- });
3661
- return cols;
3662
- }
3931
+ var _this$d_headerColumns;
3932
+ return (_this$d_headerColumns = this.d_headerColumns) === null || _this$d_headerColumns === void 0 ? void 0 : _this$d_headerColumns.get(row, row.children);
3663
3933
  }
3664
3934
  },
3665
3935
  computed: {
@@ -3683,8 +3953,8 @@ function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function"
3683
3953
  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; }
3684
3954
  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; }
3685
3955
  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; }
3686
- function _toPropertyKey$2(arg) { var key = _toPrimitive$2(arg, "string"); return _typeof$2(key) === "symbol" ? key : String(key); }
3687
- 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); }
3956
+ function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : String(i); }
3957
+ 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); }
3688
3958
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3689
3959
  var _component_DTHeaderCell = vue.resolveComponent("DTHeaderCell");
3690
3960
  var _component_DTHeaderCheckbox = vue.resolveComponent("DTHeaderCheckbox");
@@ -3900,11 +4170,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3900
4170
  script$1.render = render$1;
3901
4171
 
3902
4172
  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); }
4173
+ var _excluded = ["expanded"];
4174
+ 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; }
4175
+ 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; }
3903
4176
  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; }
3904
4177
  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; }
3905
4178
  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; }
3906
- function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
3907
- 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); }
4179
+ function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : String(i); }
4180
+ 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); }
3908
4181
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3909
4182
  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."); }
3910
4183
  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; } }
@@ -3918,8 +4191,14 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
3918
4191
  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; }
3919
4192
  var script = {
3920
4193
  name: 'DataTable',
3921
- "extends": script$b,
4194
+ "extends": script$c,
3922
4195
  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'],
4196
+ provide: function provide() {
4197
+ return {
4198
+ $columns: this.d_columns,
4199
+ $columnGroups: this.d_columnGroups
4200
+ };
4201
+ },
3923
4202
  data: function data() {
3924
4203
  return {
3925
4204
  d_first: this.first,
@@ -3930,11 +4209,16 @@ var script = {
3930
4209
  d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
3931
4210
  d_groupRowsSortMeta: null,
3932
4211
  d_selectionKeys: null,
3933
- d_expandedRowKeys: null,
3934
4212
  d_columnOrder: null,
3935
4213
  d_editingRowKeys: null,
3936
4214
  d_editingMeta: {},
3937
- d_filters: this.cloneFilters(this.filters)
4215
+ d_filters: this.cloneFilters(this.filters),
4216
+ d_columns: new utils.HelperSet({
4217
+ type: 'Column'
4218
+ }),
4219
+ d_columnGroups: new utils.HelperSet({
4220
+ type: 'ColumnGroup'
4221
+ })
3938
4222
  };
3939
4223
  },
3940
4224
  rowTouched: false,
@@ -3948,6 +4232,7 @@ var script = {
3948
4232
  colReorderIconWidth: null,
3949
4233
  colReorderIconHeight: null,
3950
4234
  draggedColumn: null,
4235
+ draggedColumnElement: null,
3951
4236
  draggedRowIndex: null,
3952
4237
  droppedRowIndex: null,
3953
4238
  rowDragging: null,
@@ -3981,11 +4266,6 @@ var script = {
3981
4266
  }
3982
4267
  }
3983
4268
  },
3984
- expandedRows: function expandedRows(newValue) {
3985
- if (this.dataKey) {
3986
- this.updateExpandedRowKeys(newValue);
3987
- }
3988
- },
3989
4269
  editingRows: {
3990
4270
  immediate: true,
3991
4271
  handler: function handler(newValue) {
@@ -4018,6 +4298,8 @@ var script = {
4018
4298
  this.unbindColumnResizeEvents();
4019
4299
  this.destroyStyleElement();
4020
4300
  this.destroyResponsiveStyle();
4301
+ this.d_columns.clear();
4302
+ this.d_columnGroups.clear();
4021
4303
  },
4022
4304
  updated: function updated() {
4023
4305
  if (this.isStateful()) {
@@ -4032,6 +4314,7 @@ var script = {
4032
4314
  return utils.ObjectUtils.getVNodeProp(col, prop);
4033
4315
  },
4034
4316
  onPage: function onPage(event) {
4317
+ var _this = this;
4035
4318
  this.clearEditingMetaData();
4036
4319
  this.d_first = event.first;
4037
4320
  this.d_rows = event.rows;
@@ -4041,15 +4324,18 @@ var script = {
4041
4324
  this.$emit('update:first', this.d_first);
4042
4325
  this.$emit('update:rows', this.d_rows);
4043
4326
  this.$emit('page', pageEvent);
4044
- this.$emit('value-change', this.processedData);
4327
+ this.$nextTick(function () {
4328
+ _this.$emit('value-change', _this.processedData);
4329
+ });
4045
4330
  },
4046
4331
  onColumnHeaderClick: function onColumnHeaderClick(e) {
4332
+ var _this2 = this;
4047
4333
  var event = e.originalEvent;
4048
4334
  var column = e.column;
4049
4335
  if (this.columnProp(column, 'sortable')) {
4050
4336
  var targetNode = event.target;
4051
4337
  var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
4052
- if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]')) {
4338
+ if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]') && !utils.DomHandler.isClickable(event.target)) {
4053
4339
  utils.DomHandler.clearSelection();
4054
4340
  if (this.sortMode === 'single') {
4055
4341
  if (this.d_sortField === columnField) {
@@ -4077,12 +4363,14 @@ var script = {
4077
4363
  this.$emit('update:multiSortMeta', this.d_multiSortMeta);
4078
4364
  }
4079
4365
  this.$emit('sort', this.createLazyLoadEvent(event));
4080
- this.$emit('value-change', this.processedData);
4366
+ this.$nextTick(function () {
4367
+ _this2.$emit('value-change', _this2.processedData);
4368
+ });
4081
4369
  }
4082
4370
  }
4083
4371
  },
4084
4372
  sortSingle: function sortSingle(value) {
4085
- var _this = this;
4373
+ var _this3 = this;
4086
4374
  this.clearEditingMetaData();
4087
4375
  if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
4088
4376
  this.d_multiSortMeta = [{
@@ -4112,12 +4400,12 @@ var script = {
4112
4400
  data.sort(function (data1, data2) {
4113
4401
  var value1 = resolvedFieldData.get(data1);
4114
4402
  var value2 = resolvedFieldData.get(data2);
4115
- return utils.ObjectUtils.sort(value1, value2, _this.d_sortOrder, comparer, _this.d_nullSortOrder);
4403
+ return utils.ObjectUtils.sort(value1, value2, _this3.d_sortOrder, comparer, _this3.d_nullSortOrder);
4116
4404
  });
4117
4405
  return data;
4118
4406
  },
4119
4407
  sortMultiple: function sortMultiple(value) {
4120
- var _this2 = this;
4408
+ var _this4 = this;
4121
4409
  this.clearEditingMetaData();
4122
4410
  if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
4123
4411
  var firstSortMeta = this.d_multiSortMeta[0];
@@ -4128,7 +4416,7 @@ var script = {
4128
4416
  }
4129
4417
  var data = _toConsumableArray(value);
4130
4418
  data.sort(function (data1, data2) {
4131
- return _this2.multisortField(data1, data2, 0);
4419
+ return _this4.multisortField(data1, data2, 0);
4132
4420
  });
4133
4421
  return data;
4134
4422
  },
@@ -4184,7 +4472,7 @@ var script = {
4184
4472
  return Object.fromEntries(entries);
4185
4473
  },
4186
4474
  filter: function filter(data) {
4187
- var _this3 = this;
4475
+ var _this5 = this;
4188
4476
  if (!data) {
4189
4477
  return;
4190
4478
  }
@@ -4193,7 +4481,7 @@ var script = {
4193
4481
  var globalFilterFieldsArray;
4194
4482
  if (activeFilters['global']) {
4195
4483
  globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
4196
- return _this3.columnProp(col, 'filterField') || _this3.columnProp(col, 'field');
4484
+ return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
4197
4485
  });
4198
4486
  }
4199
4487
  var filteredValue = [];
@@ -4255,7 +4543,9 @@ var script = {
4255
4543
  var filterEvent = this.createLazyLoadEvent();
4256
4544
  filterEvent.filteredValue = filteredValue;
4257
4545
  this.$emit('filter', filterEvent);
4258
- this.$emit('value-change', filteredValue);
4546
+ this.$nextTick(function () {
4547
+ _this5.$emit('value-change', _this5.processedData);
4548
+ });
4259
4549
  return filteredValue;
4260
4550
  },
4261
4551
  executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
@@ -4411,6 +4701,7 @@ var script = {
4411
4701
  this.onEndKey(event, row, rowIndex, slotProps);
4412
4702
  break;
4413
4703
  case 'Enter':
4704
+ case 'NumpadEnter':
4414
4705
  this.onEnterKey(event, rowData, rowIndex);
4415
4706
  break;
4416
4707
  case 'Space':
@@ -4661,40 +4952,21 @@ var script = {
4661
4952
  this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
4662
4953
  }
4663
4954
  },
4664
- updateExpandedRowKeys: function updateExpandedRowKeys(expandedRows) {
4665
- if (expandedRows && expandedRows.length) {
4666
- this.d_expandedRowKeys = {};
4667
- var _iterator4 = _createForOfIteratorHelper(expandedRows),
4955
+ updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4956
+ if (editingRows && editingRows.length) {
4957
+ this.d_editingRowKeys = {};
4958
+ var _iterator4 = _createForOfIteratorHelper(editingRows),
4668
4959
  _step4;
4669
4960
  try {
4670
4961
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
4671
4962
  var data = _step4.value;
4672
- this.d_expandedRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4963
+ this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4673
4964
  }
4674
4965
  } catch (err) {
4675
4966
  _iterator4.e(err);
4676
4967
  } finally {
4677
4968
  _iterator4.f();
4678
4969
  }
4679
- } else {
4680
- this.d_expandedRowKeys = null;
4681
- }
4682
- },
4683
- updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4684
- if (editingRows && editingRows.length) {
4685
- this.d_editingRowKeys = {};
4686
- var _iterator5 = _createForOfIteratorHelper(editingRows),
4687
- _step5;
4688
- try {
4689
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
4690
- var data = _step5.value;
4691
- this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4692
- }
4693
- } catch (err) {
4694
- _iterator5.e(err);
4695
- } finally {
4696
- _iterator5.f();
4697
- }
4698
4970
  } else {
4699
4971
  this.d_editingRowKeys = null;
4700
4972
  }
@@ -4732,7 +5004,7 @@ var script = {
4732
5004
  this.$emit('update:selection', _selection);
4733
5005
  },
4734
5006
  exportCSV: function exportCSV(options, data) {
4735
- var _this4 = this;
5007
+ var _this6 = this;
4736
5008
  var csv = "\uFEFF";
4737
5009
  if (!data) {
4738
5010
  data = this.processedData;
@@ -4754,16 +5026,16 @@ var script = {
4754
5026
  data.forEach(function (record) {
4755
5027
  csv += '\n';
4756
5028
  var rowInitiated = false;
4757
- for (var _i = 0; _i < _this4.columns.length; _i++) {
4758
- var _column = _this4.columns[_i];
4759
- if (_this4.columnProp(_column, 'exportable') !== false && _this4.columnProp(_column, 'field')) {
4760
- if (rowInitiated) csv += _this4.csvSeparator;else rowInitiated = true;
4761
- var cellData = utils.ObjectUtils.resolveFieldData(record, _this4.columnProp(_column, 'field'));
5029
+ for (var _i = 0; _i < _this6.columns.length; _i++) {
5030
+ var _column = _this6.columns[_i];
5031
+ if (_this6.columnProp(_column, 'exportable') !== false && _this6.columnProp(_column, 'field')) {
5032
+ if (rowInitiated) csv += _this6.csvSeparator;else rowInitiated = true;
5033
+ var cellData = utils.ObjectUtils.resolveFieldData(record, _this6.columnProp(_column, 'field'));
4762
5034
  if (cellData != null) {
4763
- if (_this4.exportFunction) {
4764
- cellData = _this4.exportFunction({
5035
+ if (_this6.exportFunction) {
5036
+ cellData = _this6.exportFunction({
4765
5037
  data: cellData,
4766
- field: _this4.columnProp(_column, 'field')
5038
+ field: _this6.columnProp(_column, 'field')
4767
5039
  });
4768
5040
  } else cellData = String(cellData).replace(/"/g, '""');
4769
5041
  } else cellData = '';
@@ -4866,19 +5138,19 @@ var script = {
4866
5138
  this.styleElement.innerHTML = innerHTML;
4867
5139
  },
4868
5140
  bindColumnResizeEvents: function bindColumnResizeEvents() {
4869
- var _this5 = this;
5141
+ var _this7 = this;
4870
5142
  if (!this.documentColumnResizeListener) {
4871
5143
  this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
4872
- if (_this5.columnResizing) {
4873
- _this5.onColumnResize(event);
5144
+ if (_this7.columnResizing) {
5145
+ _this7.onColumnResize(event);
4874
5146
  }
4875
5147
  });
4876
5148
  }
4877
5149
  if (!this.documentColumnResizeEndListener) {
4878
5150
  this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
4879
- if (_this5.columnResizing) {
4880
- _this5.columnResizing = false;
4881
- _this5.onColumnResizeEnd();
5151
+ if (_this7.columnResizing) {
5152
+ _this7.columnResizing = false;
5153
+ _this7.onColumnResizeEnd();
4882
5154
  }
4883
5155
  });
4884
5156
  }
@@ -4900,23 +5172,28 @@ var script = {
4900
5172
  if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || utils.DomHandler.getAttribute(event.target, '[data-pc-section="columnresizer"]')) event.currentTarget.draggable = false;else event.currentTarget.draggable = true;
4901
5173
  }
4902
5174
  },
4903
- onColumnHeaderDragStart: function onColumnHeaderDragStart(event) {
5175
+ onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
5176
+ var event = e.originalEvent,
5177
+ column = e.column;
4904
5178
  if (this.columnResizing) {
4905
5179
  event.preventDefault();
4906
5180
  return;
4907
5181
  }
4908
5182
  this.colReorderIconWidth = utils.DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
4909
5183
  this.colReorderIconHeight = utils.DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
4910
- this.draggedColumn = this.findParentHeader(event.target);
5184
+ this.draggedColumn = column;
5185
+ this.draggedColumnElement = this.findParentHeader(event.target);
4911
5186
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
4912
5187
  },
4913
- onColumnHeaderDragOver: function onColumnHeaderDragOver(event) {
5188
+ onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
5189
+ var event = e.originalEvent,
5190
+ column = e.column;
4914
5191
  var dropHeader = this.findParentHeader(event.target);
4915
- if (this.reorderableColumns && this.draggedColumn && dropHeader) {
5192
+ if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
4916
5193
  event.preventDefault();
4917
5194
  var containerOffset = utils.DomHandler.getOffset(this.$el);
4918
5195
  var dropHeaderOffset = utils.DomHandler.getOffset(dropHeader);
4919
- if (this.draggedColumn !== dropHeader) {
5196
+ if (this.draggedColumnElement !== dropHeader) {
4920
5197
  var targetLeft = dropHeaderOffset.left - containerOffset.left;
4921
5198
  var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
4922
5199
  this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
@@ -4935,34 +5212,67 @@ var script = {
4935
5212
  }
4936
5213
  }
4937
5214
  },
4938
- onColumnHeaderDragLeave: function onColumnHeaderDragLeave(event) {
4939
- if (this.reorderableColumns && this.draggedColumn) {
5215
+ onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
5216
+ var event = e.originalEvent;
5217
+ if (this.reorderableColumns && this.draggedColumnElement) {
4940
5218
  event.preventDefault();
4941
5219
  this.$refs.reorderIndicatorUp.style.display = 'none';
4942
5220
  this.$refs.reorderIndicatorDown.style.display = 'none';
4943
5221
  }
4944
5222
  },
4945
- onColumnHeaderDrop: function onColumnHeaderDrop(event) {
5223
+ onColumnHeaderDrop: function onColumnHeaderDrop(e) {
5224
+ var _this8 = this;
5225
+ var event = e.originalEvent,
5226
+ column = e.column;
4946
5227
  event.preventDefault();
4947
- if (this.draggedColumn) {
4948
- var dragIndex = utils.DomHandler.index(this.draggedColumn);
5228
+ if (this.draggedColumnElement) {
5229
+ var dragIndex = utils.DomHandler.index(this.draggedColumnElement);
4949
5230
  var dropIndex = utils.DomHandler.index(this.findParentHeader(event.target));
4950
5231
  var allowDrop = dragIndex !== dropIndex;
4951
5232
  if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
4952
5233
  allowDrop = false;
4953
5234
  }
4954
5235
  if (allowDrop) {
4955
- utils.ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);
5236
+ var isSameColumn = function isSameColumn(col1, col2) {
5237
+ 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');
5238
+ };
5239
+ var dragColIndex = this.columns.findIndex(function (child) {
5240
+ return isSameColumn(child, _this8.draggedColumn);
5241
+ });
5242
+ var dropColIndex = this.columns.findIndex(function (child) {
5243
+ return isSameColumn(child, column);
5244
+ });
5245
+ var widths = [];
5246
+ var headers = utils.DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
5247
+ headers.forEach(function (header) {
5248
+ return widths.push(utils.DomHandler.getOuterWidth(header));
5249
+ });
5250
+ var movedItem = widths.find(function (_, index) {
5251
+ return index === dragColIndex;
5252
+ });
5253
+ var remainingItems = widths.filter(function (_, index) {
5254
+ return index !== dragColIndex;
5255
+ });
5256
+ var reorderedWidths = [].concat(_toConsumableArray(remainingItems.slice(0, dropColIndex)), [movedItem], _toConsumableArray(remainingItems.slice(dropColIndex)));
5257
+ this.addColumnWidthStyles(reorderedWidths);
5258
+ if (dropColIndex < dragColIndex && this.dropPosition === 1) {
5259
+ dropColIndex++;
5260
+ }
5261
+ if (dropColIndex > dragColIndex && this.dropPosition === -1) {
5262
+ dropColIndex--;
5263
+ }
5264
+ utils.ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
4956
5265
  this.updateReorderableColumns();
4957
5266
  this.$emit('column-reorder', {
4958
5267
  originalEvent: event,
4959
- dragIndex: dragIndex,
4960
- dropIndex: dropIndex
5268
+ dragIndex: dragColIndex,
5269
+ dropIndex: dropColIndex
4961
5270
  });
4962
5271
  }
4963
5272
  this.$refs.reorderIndicatorUp.style.display = 'none';
4964
5273
  this.$refs.reorderIndicatorDown.style.display = 'none';
4965
- this.draggedColumn.draggable = false;
5274
+ this.draggedColumnElement.draggable = false;
5275
+ this.draggedColumnElement = null;
4966
5276
  this.draggedColumn = null;
4967
5277
  this.dropPosition = null;
4968
5278
  }
@@ -5072,28 +5382,23 @@ var script = {
5072
5382
  event.preventDefault();
5073
5383
  },
5074
5384
  toggleRow: function toggleRow(event) {
5385
+ var _this9 = this;
5386
+ var expanded = event.expanded,
5387
+ rest = _objectWithoutProperties(event, _excluded);
5075
5388
  var rowData = event.data;
5076
- var expanded;
5077
- var expandedRowIndex;
5078
- var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
5389
+ var expandedRows;
5079
5390
  if (this.dataKey) {
5080
- expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
5081
- } else {
5082
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5083
- expanded = expandedRowIndex > -1;
5084
- }
5085
- if (expanded) {
5086
- if (expandedRowIndex == null) {
5087
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5088
- }
5089
- _expandedRows.splice(expandedRowIndex, 1);
5090
- this.$emit('update:expandedRows', _expandedRows);
5091
- this.$emit('row-collapse', event);
5391
+ var value = utils.ObjectUtils.resolveFieldData(rowData, this.dataKey);
5392
+ expandedRows = this.expandedRows ? _objectSpread$1({}, this.expandedRows) : {};
5393
+ expanded ? expandedRows[value] = true : delete expandedRows[value];
5092
5394
  } else {
5093
- _expandedRows.push(rowData);
5094
- this.$emit('update:expandedRows', _expandedRows);
5095
- this.$emit('row-expand', event);
5395
+ expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
5396
+ expanded ? expandedRows.push(rowData) : expandedRows = expandedRows.filter(function (d) {
5397
+ return !_this9.equals(rowData, d);
5398
+ });
5096
5399
  }
5400
+ this.$emit('update:expandedRows', expandedRows);
5401
+ expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
5097
5402
  },
5098
5403
  toggleRowGroup: function toggleRowGroup(e) {
5099
5404
  var event = e.originalEvent;
@@ -5163,7 +5468,6 @@ var script = {
5163
5468
  }
5164
5469
  if (this.expandedRows) {
5165
5470
  state.expandedRows = this.expandedRows;
5166
- state.expandedRowKeys = this.d_expandedRowKeys;
5167
5471
  }
5168
5472
  if (this.expandedRowGroups) {
5169
5473
  state.expandedRowGroups = this.expandedRowGroups;
@@ -5211,7 +5515,6 @@ var script = {
5211
5515
  this.d_columnOrder = restoredState.columnOrder;
5212
5516
  }
5213
5517
  if (restoredState.expandedRows) {
5214
- this.d_expandedRowKeys = restoredState.expandedRowKeys;
5215
5518
  this.$emit('update:expandedRows', restoredState.expandedRows);
5216
5519
  }
5217
5520
  if (restoredState.expandedRowGroups) {
@@ -5235,23 +5538,25 @@ var script = {
5235
5538
  state.tableWidth = utils.DomHandler.getOuterWidth(this.$refs.table) + 'px';
5236
5539
  }
5237
5540
  },
5541
+ addColumnWidthStyles: function addColumnWidthStyles(widths) {
5542
+ this.createStyleElement();
5543
+ var innerHTML = '';
5544
+ 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\"]");
5545
+ widths.forEach(function (width, index) {
5546
+ var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
5547
+ 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 ");
5548
+ });
5549
+ this.styleElement.innerHTML = innerHTML;
5550
+ },
5238
5551
  restoreColumnWidths: function restoreColumnWidths() {
5239
5552
  if (this.columnWidthsState) {
5240
5553
  var widths = this.columnWidthsState.split(',');
5241
5554
  if (this.columnResizeMode === 'expand' && this.tableWidthState) {
5242
5555
  this.$refs.table.style.width = this.tableWidthState;
5243
5556
  this.$refs.table.style.minWidth = this.tableWidthState;
5244
- this.$el.style.width = this.tableWidthState;
5245
5557
  }
5246
5558
  if (utils.ObjectUtils.isNotEmpty(widths)) {
5247
- this.createStyleElement();
5248
- var innerHTML = '';
5249
- 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\"]");
5250
- widths.forEach(function (width, index) {
5251
- var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
5252
- 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 ");
5253
- });
5254
- this.styleElement.innerHTML = innerHTML;
5559
+ this.addColumnWidthStyles(widths);
5255
5560
  }
5256
5561
  }
5257
5562
  },
@@ -5322,9 +5627,6 @@ var script = {
5322
5627
  hasGlobalFilter: function hasGlobalFilter() {
5323
5628
  return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
5324
5629
  },
5325
- getChildren: function getChildren() {
5326
- return this.$slots["default"] ? this.$slots["default"]() : null;
5327
- },
5328
5630
  onFilterChange: function onFilterChange(filters) {
5329
5631
  this.d_filters = filters;
5330
5632
  },
@@ -5354,10 +5656,10 @@ var script = {
5354
5656
  return cloned;
5355
5657
  },
5356
5658
  updateReorderableColumns: function updateReorderableColumns() {
5357
- var _this6 = this;
5659
+ var _this10 = this;
5358
5660
  var columnOrder = [];
5359
5661
  this.columns.forEach(function (col) {
5360
- return columnOrder.push(_this6.columnProp(col, 'columnKey') || _this6.columnProp(col, 'field'));
5662
+ return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
5361
5663
  });
5362
5664
  this.d_columnOrder = columnOrder;
5363
5665
  },
@@ -5378,7 +5680,7 @@ var script = {
5378
5680
  var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
5379
5681
  var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
5380
5682
  var gridLinesSelector = ".p-datatable[".concat(this.attributeSelector, "].p-datatable-gridlines > ").concat(tableSelector);
5381
- 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");
5683
+ 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");
5382
5684
  this.responsiveStyleElement.innerHTML = innerHTML;
5383
5685
  }
5384
5686
  },
@@ -5394,22 +5696,6 @@ var script = {
5394
5696
  this.styleElement = null;
5395
5697
  }
5396
5698
  },
5397
- recursiveGetChildren: function recursiveGetChildren(children, results) {
5398
- var _this7 = this;
5399
- if (!results) {
5400
- results = [];
5401
- }
5402
- if (children && children.length) {
5403
- children.forEach(function (child) {
5404
- if (child.children instanceof Array) {
5405
- results.concat(_this7.recursiveGetChildren(child.children, results));
5406
- } else if (child.type.name == 'Column') {
5407
- results.push(child);
5408
- }
5409
- });
5410
- }
5411
- return results;
5412
- },
5413
5699
  dataToRender: function dataToRender(data) {
5414
5700
  var _data = data || this.processedData;
5415
5701
  if (_data && this.paginator) {
@@ -5427,27 +5713,23 @@ var script = {
5427
5713
  },
5428
5714
  computed: {
5429
5715
  columns: function columns() {
5430
- var children = this.getChildren();
5431
- if (!children) {
5432
- return;
5433
- }
5434
- var cols = this.recursiveGetChildren(children, []);
5716
+ var cols = this.d_columns.get(this);
5435
5717
  if (this.reorderableColumns && this.d_columnOrder) {
5436
5718
  var orderedColumns = [];
5437
- var _iterator6 = _createForOfIteratorHelper(this.d_columnOrder),
5438
- _step6;
5719
+ var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
5720
+ _step5;
5439
5721
  try {
5440
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
5441
- var columnKey = _step6.value;
5722
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
5723
+ var columnKey = _step5.value;
5442
5724
  var column = this.findColumnByKey(cols, columnKey);
5443
5725
  if (column && !this.columnProp(column, 'hidden')) {
5444
5726
  orderedColumns.push(column);
5445
5727
  }
5446
5728
  }
5447
5729
  } catch (err) {
5448
- _iterator6.e(err);
5730
+ _iterator5.e(err);
5449
5731
  } finally {
5450
- _iterator6.f();
5732
+ _iterator5.f();
5451
5733
  }
5452
5734
  return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
5453
5735
  return orderedColumns.indexOf(item) < 0;
@@ -5455,52 +5737,30 @@ var script = {
5455
5737
  }
5456
5738
  return cols;
5457
5739
  },
5740
+ columnGroups: function columnGroups() {
5741
+ return this.d_columnGroups.get(this);
5742
+ },
5458
5743
  headerColumnGroup: function headerColumnGroup() {
5459
- var children = this.getChildren();
5460
- if (children) {
5461
- var _iterator7 = _createForOfIteratorHelper(children),
5462
- _step7;
5463
- try {
5464
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
5465
- var child = _step7.value;
5466
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
5467
- return child;
5468
- }
5469
- }
5470
- } catch (err) {
5471
- _iterator7.e(err);
5472
- } finally {
5473
- _iterator7.f();
5474
- }
5475
- }
5476
- return null;
5744
+ var _this$columnGroups,
5745
+ _this11 = this;
5746
+ return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
5747
+ return _this11.columnProp(group, 'type') === 'header';
5748
+ });
5477
5749
  },
5478
5750
  footerColumnGroup: function footerColumnGroup() {
5479
- var children = this.getChildren();
5480
- if (children) {
5481
- var _iterator8 = _createForOfIteratorHelper(children),
5482
- _step8;
5483
- try {
5484
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
5485
- var child = _step8.value;
5486
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
5487
- return child;
5488
- }
5489
- }
5490
- } catch (err) {
5491
- _iterator8.e(err);
5492
- } finally {
5493
- _iterator8.f();
5494
- }
5495
- }
5496
- return null;
5751
+ var _this$columnGroups2,
5752
+ _this12 = this;
5753
+ return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
5754
+ return _this12.columnProp(group, 'type') === 'footer';
5755
+ });
5497
5756
  },
5498
5757
  hasFilters: function hasFilters() {
5499
5758
  return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
5500
5759
  },
5501
5760
  processedData: function processedData() {
5761
+ var _this$virtualScroller;
5502
5762
  var data = this.value || [];
5503
- if (!this.lazy) {
5763
+ if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
5504
5764
  if (data && data.length) {
5505
5765
  if (this.hasFilters) {
5506
5766
  data = this.filter(data);
@@ -5534,14 +5794,14 @@ var script = {
5534
5794
  return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
5535
5795
  },
5536
5796
  allRowsSelected: function allRowsSelected() {
5537
- var _this8 = this;
5797
+ var _this13 = this;
5538
5798
  if (this.selectAll !== null) {
5539
5799
  return this.selectAll;
5540
5800
  } else {
5541
5801
  var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
5542
5802
  return utils.ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
5543
- return _this8.selection.some(function (s) {
5544
- return _this8.equals(s, v);
5803
+ return _this13.selection.some(function (s) {
5804
+ return _this13.equals(s, v);
5545
5805
  });
5546
5806
  });
5547
5807
  }
@@ -5572,8 +5832,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
5572
5832
  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; }
5573
5833
  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; }
5574
5834
  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; }
5575
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5576
- 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); }
5835
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5836
+ 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); }
5577
5837
  function render(_ctx, _cache, $props, $setup, $data, $options) {
5578
5838
  var _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
5579
5839
  var _component_DTPaginator = vue.resolveComponent("DTPaginator");
@@ -5781,7 +6041,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5781
6041
  expandedRowIcon: _ctx.expandedRowIcon,
5782
6042
  collapsedRowIcon: _ctx.collapsedRowIcon,
5783
6043
  expandedRows: _ctx.expandedRows,
5784
- expandedRowKeys: $data.d_expandedRowKeys,
5785
6044
  expandedRowGroups: _ctx.expandedRowGroups,
5786
6045
  editingRows: _ctx.editingRows,
5787
6046
  editingRowKeys: $data.d_editingRowKeys,
@@ -5847,7 +6106,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5847
6106
  onEditingMetaChange: $options.onEditingMetaChange,
5848
6107
  unstyled: _ctx.unstyled,
5849
6108
  pt: _ctx.pt
5850
- }, 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"])) : vue.createCommentVNode("", true), vue.createVNode(_component_DTTableBody, {
6109
+ }, 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"])) : vue.createCommentVNode("", true), vue.createVNode(_component_DTTableBody, {
5851
6110
  ref: "bodyRef",
5852
6111
  value: $options.dataToRender(slotProps.rows),
5853
6112
  "class": vue.normalizeClass(slotProps.styleClass),
@@ -5871,7 +6130,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5871
6130
  expandedRowIcon: _ctx.expandedRowIcon,
5872
6131
  collapsedRowIcon: _ctx.collapsedRowIcon,
5873
6132
  expandedRows: _ctx.expandedRows,
5874
- expandedRowKeys: $data.d_expandedRowKeys,
5875
6133
  expandedRowGroups: _ctx.expandedRowGroups,
5876
6134
  editingRows: _ctx.editingRows,
5877
6135
  editingRowKeys: $data.d_editingRowKeys,
@@ -5940,7 +6198,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5940
6198
  onEditingMetaChange: $options.onEditingMetaChange,
5941
6199
  unstyled: _ctx.unstyled,
5942
6200
  pt: _ctx.pt
5943
- }, 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) ? (vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
6201
+ }, 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) ? (vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
5944
6202
  key: 1,
5945
6203
  "class": _ctx.cx('virtualScrollerSpacer'),
5946
6204
  style: {