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
@@ -31,7 +31,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
31
31
  var SortAmountDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountDownIcon);
32
32
  var SortAmountUpAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountUpAltIcon);
33
33
 
34
- var script$b = {
34
+ var script$c = {
35
35
  name: 'BaseDataTable',
36
36
  "extends": BaseComponent__default["default"],
37
37
  props: {
@@ -153,7 +153,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
153
153
  },
154
154
  metaKeySelection: {
155
155
  type: Boolean,
156
- "default": true
156
+ "default": false
157
157
  },
158
158
  contextMenu: {
159
159
  type: Boolean,
@@ -196,7 +196,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
196
196
  "default": false
197
197
  },
198
198
  expandedRows: {
199
- type: Array,
199
+ type: [Array, Object],
200
200
  "default": null
201
201
  },
202
202
  expandedRowIcon: {
@@ -308,7 +308,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
308
308
  }
309
309
  };
310
310
 
311
- var script$a = {
311
+ var script$b = {
312
312
  name: 'RowCheckbox',
313
313
  hostName: 'DataTable',
314
314
  "extends": BaseComponent__default["default"],
@@ -363,6 +363,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
363
363
  utils.DomHandler.focus(this.$refs.input);
364
364
  }
365
365
  event.preventDefault();
366
+ event.stopPropagation();
366
367
  },
367
368
  onFocus: function onFocus() {
368
369
  this.focused = true;
@@ -391,7 +392,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
391
392
  };
392
393
 
393
394
  var _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
394
- function render$a(_ctx, _cache, $props, $setup, $data, $options) {
395
+ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
395
396
  var _component_CheckIcon = vue.resolveComponent("CheckIcon");
396
397
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
397
398
  "class": _ctx.cx('checkboxWrapper'),
@@ -431,9 +432,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
431
432
  }, $options.getColumnPT('checkboxIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 16)], 16);
432
433
  }
433
434
 
434
- script$a.render = render$a;
435
+ script$b.render = render$b;
435
436
 
436
- var script$9 = {
437
+ var script$a = {
437
438
  name: 'RowRadioButton',
438
439
  hostName: 'DataTable',
439
440
  "extends": BaseComponent__default["default"],
@@ -498,7 +499,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
498
499
  };
499
500
 
500
501
  var _hoisted_1$6 = ["checked", "disabled", "name"];
501
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
502
+ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
502
503
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
503
504
  "class": _ctx.cx('radiobuttonWrapper'),
504
505
  onClick: _cache[3] || (_cache[3] = function () {
@@ -532,9 +533,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
532
533
  }, $options.getColumnPT('radiobuttonIcon')), null, 16)], 16)], 16);
533
534
  }
534
535
 
535
- script$9.render = render$9;
536
+ script$a.render = render$a;
536
537
 
537
- var script$8 = {
538
+ var script$9 = {
538
539
  name: 'BodyCell',
539
540
  hostName: 'DataTable',
540
541
  "extends": BaseComponent__default["default"],
@@ -986,8 +987,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
986
987
  }
987
988
  },
988
989
  components: {
989
- DTRadioButton: script$9,
990
- DTCheckbox: script$a,
990
+ DTRadioButton: script$a,
991
+ DTCheckbox: script$b,
991
992
  ChevronDownIcon: ChevronDownIcon__default["default"],
992
993
  ChevronRightIcon: ChevronRightIcon__default["default"],
993
994
  BarsIcon: BarsIcon__default["default"],
@@ -1000,18 +1001,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1000
1001
  }
1001
1002
  };
1002
1003
 
1003
- 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); }
1004
- 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; }
1005
- 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; }
1006
- 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; }
1007
- function _toPropertyKey$9(arg) { var key = _toPrimitive$9(arg, "string"); return _typeof$9(key) === "symbol" ? key : String(key); }
1008
- 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); }
1004
+ 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); }
1005
+ 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; }
1006
+ 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; }
1007
+ 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; }
1008
+ function _toPropertyKey$a(t) { var i = _toPrimitive$a(t, "string"); return "symbol" == _typeof$a(i) ? i : String(i); }
1009
+ 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); }
1009
1010
  var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
1010
1011
  var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
1011
1012
  var _hoisted_3$2 = ["aria-label"];
1012
1013
  var _hoisted_4$1 = ["aria-label"];
1013
1014
  var _hoisted_5$1 = ["aria-label"];
1014
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1015
+ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
1015
1016
  var _component_DTRadioButton = vue.resolveComponent("DTRadioButton");
1016
1017
  var _component_DTCheckbox = vue.resolveComponent("DTCheckbox");
1017
1018
  var _component_BarsIcon = vue.resolveComponent("BarsIcon");
@@ -1023,7 +1024,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1023
1024
  style: $options.containerStyle,
1024
1025
  "class": $options.containerClass,
1025
1026
  role: "cell"
1026
- }, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
1027
+ }, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
1027
1028
  data: $props.rowData,
1028
1029
  column: $props.column,
1029
1030
  field: $options.field,
@@ -1043,7 +1044,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1043
1044
  return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1044
1045
  }),
1045
1046
  role: "cell"
1046
- }, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1047
+ }, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1047
1048
  "data-p-selection-column": $options.columnProp('selectionMode') != null,
1048
1049
  "data-p-editable-column": $options.isEditable(),
1049
1050
  "data-p-cell-editing": $data.d_editing,
@@ -1186,14 +1187,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1186
1187
  }, [vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$5));
1187
1188
  }
1188
1189
 
1189
- script$8.render = render$8;
1190
+ script$9.render = render$9;
1190
1191
 
1191
- var script$7 = {
1192
- name: 'TableBody',
1192
+ 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); }
1193
+ 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; }
1194
+ 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; }
1195
+ 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; }
1196
+ function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : String(i); }
1197
+ 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); }
1198
+ var script$8 = {
1199
+ name: 'BodyRow',
1193
1200
  hostName: 'DataTable',
1194
1201
  "extends": BaseComponent__default["default"],
1195
1202
  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'],
1196
1203
  props: {
1204
+ rowData: {
1205
+ type: Object,
1206
+ "default": null
1207
+ },
1208
+ index: {
1209
+ type: Number,
1210
+ "default": 0
1211
+ },
1197
1212
  value: {
1198
1213
  type: Array,
1199
1214
  "default": null
@@ -1243,11 +1258,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1243
1258
  "default": null
1244
1259
  },
1245
1260
  expandedRows: {
1246
- type: Array,
1247
- "default": null
1248
- },
1249
- expandedRowKeys: {
1250
- type: null,
1261
+ type: [Array, Object],
1251
1262
  "default": null
1252
1263
  },
1253
1264
  selection: {
@@ -1278,6 +1289,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1278
1289
  type: null,
1279
1290
  "default": null
1280
1291
  },
1292
+ rowGroupHeaderStyle: {
1293
+ type: null,
1294
+ "default": null
1295
+ },
1281
1296
  editMode: {
1282
1297
  type: String,
1283
1298
  "default": null
@@ -1317,35 +1332,34 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1317
1332
  isVirtualScrollerDisabled: {
1318
1333
  type: Boolean,
1319
1334
  "default": false
1335
+ },
1336
+ expandedRowId: {
1337
+ type: String,
1338
+ "default": null
1339
+ },
1340
+ nameAttributeSelector: {
1341
+ type: String,
1342
+ "default": null
1320
1343
  }
1321
1344
  },
1322
1345
  data: function data() {
1323
1346
  return {
1324
- rowGroupHeaderStyleObject: {},
1325
- tabindexArray: [],
1326
- isARowSelected: false
1347
+ d_rowExpanded: false
1327
1348
  };
1328
1349
  },
1329
- mounted: function mounted() {
1330
- if (this.frozenRow) {
1331
- this.updateFrozenRowStickyPosition();
1332
- }
1333
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1334
- this.updateFrozenRowGroupHeaderStickyPosition();
1335
- }
1336
- },
1337
- updated: function updated() {
1338
- if (this.frozenRow) {
1339
- this.updateFrozenRowStickyPosition();
1340
- }
1341
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1342
- this.updateFrozenRowGroupHeaderStickyPosition();
1350
+ watch: {
1351
+ expandedRows: function expandedRows(newValue) {
1352
+ var _this = this;
1353
+ 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) {
1354
+ return _this.equals(_this.rowData, d);
1355
+ });
1343
1356
  }
1344
1357
  },
1345
1358
  methods: {
1346
1359
  columnProp: function columnProp(col, prop) {
1347
1360
  return utils.ObjectUtils.getVNodeProp(col, prop);
1348
1361
  },
1362
+ //@todo - update this method
1349
1363
  getColumnPT: function getColumnPT(key) {
1350
1364
  var columnMetaData = {
1351
1365
  parent: {
@@ -1356,80 +1370,33 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1356
1370
  };
1357
1371
  return vue.mergeProps(this.ptm("column.".concat(key), {
1358
1372
  column: columnMetaData
1359
- }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp({}), key, columnMetaData));
1360
- },
1361
- getColumnProp: function getColumnProp(column) {
1362
- return column.props && column.props.pt ? column.props.pt : undefined; //@todo
1373
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.columnProp({}, 'pt'), key, columnMetaData));
1363
1374
  },
1364
- getBodyRowPTOptions: function getBodyRowPTOptions(key, rowdata, index) {
1365
- var _this$$parentInstance, _this$$parentInstance2, _this$$parentInstance3;
1375
+ //@todo - update this method
1376
+ getBodyRowPTOptions: function getBodyRowPTOptions(key) {
1377
+ var _this$$parentInstance;
1378
+ 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;
1366
1379
  return this.ptm(key, {
1367
1380
  context: {
1368
- index: index,
1369
- 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),
1370
- selected: this.isSelected(rowdata),
1371
- 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
1381
+ index: this.rowIndex,
1382
+ selectable: (datatable === null || datatable === void 0 ? void 0 : datatable.rowHover) || (datatable === null || datatable === void 0 ? void 0 : datatable.selectionMode),
1383
+ selected: this.isSelected,
1384
+ stripedRows: (datatable === null || datatable === void 0 ? void 0 : datatable.stripedRows) || false
1372
1385
  }
1373
1386
  });
1374
1387
  },
1375
- shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader(value, rowData, i) {
1376
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1377
- var prevRowData = value[i - 1];
1378
- if (prevRowData) {
1379
- var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
1380
- return currentRowFieldData !== previousRowFieldData;
1381
- } else {
1382
- return true;
1383
- }
1384
- },
1385
- getRowKey: function getRowKey(rowData, index) {
1386
- return this.dataKey ? utils.ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
1387
- },
1388
- getRowIndex: function getRowIndex(index) {
1389
- var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
1390
- return getItemOptions ? getItemOptions(index).index : index;
1391
- },
1392
- getRowStyle: function getRowStyle(rowData) {
1393
- if (this.rowStyle) {
1394
- return this.rowStyle(rowData);
1395
- }
1396
- },
1397
- getRowClass: function getRowClass(rowData) {
1398
- var rowStyleClass = [];
1399
- if (this.rowClass) {
1400
- var rowClassValue = this.rowClass(rowData);
1401
- if (rowClassValue) {
1402
- rowStyleClass.push(rowClassValue);
1403
- }
1404
- }
1405
- return [this.cx('row', {
1406
- rowData: rowData
1407
- }), rowStyleClass];
1408
- },
1409
- shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter(value, rowData, i) {
1410
- if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
1411
- return false;
1412
- } else {
1413
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1414
- var nextRowData = value[i + 1];
1415
- if (nextRowData) {
1416
- var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
1417
- return currentRowFieldData !== nextRowFieldData;
1418
- } else {
1419
- return true;
1420
- }
1421
- }
1422
- },
1423
- shouldRenderBodyCell: function shouldRenderBodyCell(value, column, i) {
1424
- if (this.rowGroupMode) {
1388
+ shouldRenderBodyCell: function shouldRenderBodyCell(column) {
1389
+ var isHidden = this.columnProp(column, 'hidden');
1390
+ if (this.rowGroupMode && !isHidden) {
1391
+ var field = this.columnProp(column, 'field');
1425
1392
  if (this.rowGroupMode === 'subheader') {
1426
- return this.groupRowsBy !== this.columnProp(column, 'field');
1393
+ return this.groupRowsBy !== field;
1427
1394
  } else if (this.rowGroupMode === 'rowspan') {
1428
1395
  if (this.isGrouped(column)) {
1429
- var prevRowData = value[i - 1];
1396
+ var prevRowData = this.value[this.rowIndex - 1];
1430
1397
  if (prevRowData) {
1431
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
1432
- var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.columnProp(column, 'field'));
1398
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[this.rowIndex], field);
1399
+ var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, field);
1433
1400
  return currentRowFieldData !== previousRowFieldData;
1434
1401
  } else {
1435
1402
  return true;
@@ -1439,19 +1406,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1439
1406
  }
1440
1407
  }
1441
1408
  } else {
1442
- return !this.columnProp(column, 'hidden');
1409
+ return !isHidden;
1443
1410
  }
1444
1411
  },
1445
- calculateRowGroupSize: function calculateRowGroupSize(value, column, index) {
1412
+ calculateRowGroupSize: function calculateRowGroupSize(column) {
1446
1413
  if (this.isGrouped(column)) {
1447
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(value[index], this.columnProp(column, 'field'));
1414
+ var index = this.rowIndex;
1415
+ var field = this.columnProp(column, 'field');
1416
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[index], field);
1448
1417
  var nextRowFieldData = currentRowFieldData;
1449
1418
  var groupRowSpan = 0;
1450
1419
  while (currentRowFieldData === nextRowFieldData) {
1451
1420
  groupRowSpan++;
1452
- var nextRowData = value[++index];
1421
+ var nextRowData = this.value[++index];
1453
1422
  if (nextRowData) {
1454
- nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
1423
+ nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, field);
1455
1424
  } else {
1456
1425
  break;
1457
1426
  }
@@ -1462,55 +1431,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1462
1431
  }
1463
1432
  },
1464
1433
  isGrouped: function isGrouped(column) {
1465
- if (this.groupRowsBy && this.columnProp(column, 'field')) {
1466
- if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(column.props.field) > -1;else return this.groupRowsBy === column.props.field;
1434
+ var field = this.columnProp(column, 'field');
1435
+ if (this.groupRowsBy && field) {
1436
+ if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(field) > -1;else return this.groupRowsBy === field;
1467
1437
  } else {
1468
1438
  return false;
1469
1439
  }
1470
1440
  },
1471
- isRowEditing: function isRowEditing(rowData) {
1472
- if (rowData && this.editingRows) {
1473
- if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.editingRows) > -1;
1474
- }
1475
- return false;
1476
- },
1477
- isRowExpanded: function isRowExpanded(rowData) {
1478
- if (rowData && this.expandedRows) {
1479
- if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.expandedRows) > -1;
1480
- }
1481
- return false;
1482
- },
1483
- isRowGroupExpanded: function isRowGroupExpanded(rowData) {
1484
- if (this.expandableRowGroups && this.expandedRowGroups) {
1485
- var groupFieldValue = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1486
- return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
1487
- }
1488
- return false;
1489
- },
1490
- isSelected: function isSelected(rowData) {
1491
- if (rowData && this.selection) {
1492
- if (this.dataKey) {
1493
- return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
1494
- } else {
1495
- if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);
1496
- }
1497
- }
1498
- return false;
1441
+ findIndexInSelection: function findIndexInSelection(data) {
1442
+ return this.findIndex(data, this.selection);
1499
1443
  },
1500
- isSelectedWithContextMenu: function isSelectedWithContextMenu(rowData) {
1501
- if (rowData && this.contextMenuSelection) {
1502
- return this.equals(rowData, this.contextMenuSelection, this.dataKey);
1503
- }
1504
- return false;
1505
- },
1506
- findIndexInSelection: function findIndexInSelection(rowData) {
1507
- return this.findIndex(rowData, this.selection);
1508
- },
1509
- findIndex: function findIndex(rowData, collection) {
1444
+ findIndex: function findIndex(data, collection) {
1510
1445
  var index = -1;
1511
1446
  if (collection && collection.length) {
1512
1447
  for (var i = 0; i < collection.length; i++) {
1513
- if (this.equals(rowData, collection[i])) {
1448
+ if (this.equals(data, collection[i])) {
1514
1449
  index = i;
1515
1450
  break;
1516
1451
  }
@@ -1521,56 +1456,56 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1521
1456
  equals: function equals(data1, data2) {
1522
1457
  return this.compareSelectionBy === 'equals' ? data1 === data2 : utils.ObjectUtils.equals(data1, data2, this.dataKey);
1523
1458
  },
1524
- onRowGroupToggle: function onRowGroupToggle(event, data) {
1459
+ onRowGroupToggle: function onRowGroupToggle(event) {
1525
1460
  this.$emit('rowgroup-toggle', {
1526
1461
  originalEvent: event,
1527
- data: data
1462
+ data: this.rowData
1528
1463
  });
1529
1464
  },
1530
- onRowClick: function onRowClick(event, rowData, rowIndex) {
1465
+ onRowClick: function onRowClick(event) {
1531
1466
  this.$emit('row-click', {
1532
1467
  originalEvent: event,
1533
- data: rowData,
1534
- index: rowIndex
1468
+ data: this.rowData,
1469
+ index: this.rowIndex
1535
1470
  });
1536
1471
  },
1537
- onRowDblClick: function onRowDblClick(event, rowData, rowIndex) {
1472
+ onRowDblClick: function onRowDblClick(event) {
1538
1473
  this.$emit('row-dblclick', {
1539
1474
  originalEvent: event,
1540
- data: rowData,
1541
- index: rowIndex
1475
+ data: this.rowData,
1476
+ index: this.rowIndex
1542
1477
  });
1543
1478
  },
1544
- onRowRightClick: function onRowRightClick(event, rowData, rowIndex) {
1479
+ onRowRightClick: function onRowRightClick(event) {
1545
1480
  this.$emit('row-rightclick', {
1546
1481
  originalEvent: event,
1547
- data: rowData,
1548
- index: rowIndex
1482
+ data: this.rowData,
1483
+ index: this.rowIndex
1549
1484
  });
1550
1485
  },
1551
1486
  onRowTouchEnd: function onRowTouchEnd(event) {
1552
1487
  this.$emit('row-touchend', event);
1553
1488
  },
1554
- onRowKeyDown: function onRowKeyDown(event, rowData, rowIndex) {
1489
+ onRowKeyDown: function onRowKeyDown(event) {
1555
1490
  this.$emit('row-keydown', {
1556
1491
  originalEvent: event,
1557
- data: rowData,
1558
- index: rowIndex
1492
+ data: this.rowData,
1493
+ index: this.rowIndex
1559
1494
  });
1560
1495
  },
1561
1496
  onRowMouseDown: function onRowMouseDown(event) {
1562
1497
  this.$emit('row-mousedown', event);
1563
1498
  },
1564
- onRowDragStart: function onRowDragStart(event, rowIndex) {
1499
+ onRowDragStart: function onRowDragStart(event) {
1565
1500
  this.$emit('row-dragstart', {
1566
1501
  originalEvent: event,
1567
- index: rowIndex
1502
+ index: this.rowIndex
1568
1503
  });
1569
1504
  },
1570
- onRowDragOver: function onRowDragOver(event, rowIndex) {
1505
+ onRowDragOver: function onRowDragOver(event) {
1571
1506
  this.$emit('row-dragover', {
1572
1507
  originalEvent: event,
1573
- index: rowIndex
1508
+ index: this.rowIndex
1574
1509
  });
1575
1510
  },
1576
1511
  onRowDragLeave: function onRowDragLeave(event) {
@@ -1583,7 +1518,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1583
1518
  this.$emit('row-drop', event);
1584
1519
  },
1585
1520
  onRowToggle: function onRowToggle(event) {
1586
- this.$emit('row-toggle', event);
1521
+ this.d_rowExpanded = !this.d_rowExpanded;
1522
+ this.$emit('row-toggle', _objectSpread$9(_objectSpread$9({}, event), {}, {
1523
+ expanded: this.d_rowExpanded
1524
+ }));
1587
1525
  },
1588
1526
  onRadioChange: function onRadioChange(event) {
1589
1527
  this.$emit('radio-change', event);
@@ -1612,6 +1550,420 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1612
1550
  onEditingMetaChange: function onEditingMetaChange(event) {
1613
1551
  this.$emit('editing-meta-change', event);
1614
1552
  },
1553
+ getVirtualScrollerProp: function getVirtualScrollerProp(option, options) {
1554
+ options = options || this.virtualScrollerContentProps;
1555
+ return options ? options[option] : null;
1556
+ }
1557
+ },
1558
+ computed: {
1559
+ rowIndex: function rowIndex() {
1560
+ var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
1561
+ return getItemOptions ? getItemOptions(this.index).index : this.index;
1562
+ },
1563
+ rowStyles: function rowStyles() {
1564
+ var _this$rowStyle;
1565
+ return (_this$rowStyle = this.rowStyle) === null || _this$rowStyle === void 0 ? void 0 : _this$rowStyle.call(this, this.rowData);
1566
+ },
1567
+ rowClasses: function rowClasses() {
1568
+ var rowStyleClass = [];
1569
+ if (this.rowClass) {
1570
+ var rowClassValue = this.rowClass(this.rowData);
1571
+ if (rowClassValue) {
1572
+ rowStyleClass.push(rowClassValue);
1573
+ }
1574
+ }
1575
+ return [this.cx('row', {
1576
+ rowData: this.rowData,
1577
+ index: this.rowIndex
1578
+ }), rowStyleClass];
1579
+ },
1580
+ rowTabindex: function rowTabindex() {
1581
+ if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
1582
+ return this.rowIndex === 0 ? 0 : -1;
1583
+ }
1584
+ return -1;
1585
+ },
1586
+ isRowEditing: function isRowEditing() {
1587
+ if (this.rowData && this.editingRows) {
1588
+ 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;
1589
+ }
1590
+ return false;
1591
+ },
1592
+ isRowGroupExpanded: function isRowGroupExpanded() {
1593
+ if (this.expandableRowGroups && this.expandedRowGroups) {
1594
+ var groupFieldValue = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1595
+ return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
1596
+ }
1597
+ return false;
1598
+ },
1599
+ isSelected: function isSelected() {
1600
+ if (this.rowData && this.selection) {
1601
+ if (this.dataKey) {
1602
+ return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;
1603
+ } else {
1604
+ if (this.selection instanceof Array) return this.findIndexInSelection(this.rowData) > -1;else return this.equals(this.rowData, this.selection);
1605
+ }
1606
+ }
1607
+ return false;
1608
+ },
1609
+ isSelectedWithContextMenu: function isSelectedWithContextMenu() {
1610
+ if (this.rowData && this.contextMenuSelection) {
1611
+ return this.equals(this.rowData, this.contextMenuSelection, this.dataKey);
1612
+ }
1613
+ return false;
1614
+ },
1615
+ shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader() {
1616
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1617
+ var prevRowData = this.value[this.rowIndex - 1];
1618
+ if (prevRowData) {
1619
+ var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
1620
+ return currentRowFieldData !== previousRowFieldData;
1621
+ } else {
1622
+ return true;
1623
+ }
1624
+ },
1625
+ shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter() {
1626
+ if (this.expandableRowGroups && !this.isRowGroupExpanded) {
1627
+ return false;
1628
+ } else {
1629
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1630
+ var nextRowData = this.value[this.rowIndex + 1];
1631
+ if (nextRowData) {
1632
+ var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
1633
+ return currentRowFieldData !== nextRowFieldData;
1634
+ } else {
1635
+ return true;
1636
+ }
1637
+ }
1638
+ },
1639
+ columnsLength: function columnsLength() {
1640
+ var _this2 = this;
1641
+ var hiddenColLength = 0;
1642
+ this.columns.forEach(function (column) {
1643
+ if (_this2.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
1644
+ if (_this2.columnProp(column, 'hidden')) hiddenColLength++;
1645
+ });
1646
+ return this.columns ? this.columns.length - hiddenColLength : 0;
1647
+ }
1648
+ },
1649
+ components: {
1650
+ DTBodyCell: script$9,
1651
+ ChevronDownIcon: ChevronDownIcon__default["default"],
1652
+ ChevronRightIcon: ChevronRightIcon__default["default"]
1653
+ }
1654
+ };
1655
+
1656
+ 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); }
1657
+ 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; }
1658
+ 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; }
1659
+ 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; }
1660
+ function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
1661
+ 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); }
1662
+ var _hoisted_1$4 = ["colspan"];
1663
+ var _hoisted_2$1 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
1664
+ var _hoisted_3$1 = ["id"];
1665
+ var _hoisted_4 = ["colspan"];
1666
+ var _hoisted_5 = ["colspan"];
1667
+ var _hoisted_6 = ["colspan"];
1668
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1669
+ var _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
1670
+ var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
1671
+ var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
1672
+ return !$props.empty ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1673
+ key: 0
1674
+ }, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1675
+ key: 0,
1676
+ "class": _ctx.cx('rowGroupHeader'),
1677
+ style: $props.rowGroupHeaderStyle,
1678
+ role: "row"
1679
+ }, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
1680
+ colspan: $options.columnsLength - 1
1681
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1682
+ key: 0,
1683
+ "class": _ctx.cx('rowGroupToggler'),
1684
+ onClick: _cache[0] || (_cache[0] = function () {
1685
+ return $options.onRowGroupToggle && $options.onRowGroupToggle.apply($options, arguments);
1686
+ }),
1687
+ type: "button"
1688
+ }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1689
+ key: 0,
1690
+ expanded: $options.isRowGroupExpanded
1691
+ }, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1692
+ key: 1
1693
+ }, [$options.isRowGroupExpanded && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1694
+ key: 0,
1695
+ "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1696
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
1697
+ key: 1,
1698
+ "class": _ctx.cx('rowGroupTogglerIcon')
1699
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1700
+ key: 2,
1701
+ "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1702
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
1703
+ key: 3,
1704
+ "class": _ctx.cx('rowGroupTogglerIcon')
1705
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
1706
+ data: $props.rowData,
1707
+ index: $options.rowIndex
1708
+ }, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : vue.createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1709
+ key: 1,
1710
+ "class": $options.rowClasses,
1711
+ style: $options.rowStyles,
1712
+ tabindex: $options.rowTabindex,
1713
+ role: "row",
1714
+ "aria-selected": $props.selectionMode ? $options.isSelected : null,
1715
+ onClick: _cache[1] || (_cache[1] = function () {
1716
+ return $options.onRowClick && $options.onRowClick.apply($options, arguments);
1717
+ }),
1718
+ onDblclick: _cache[2] || (_cache[2] = function () {
1719
+ return $options.onRowDblClick && $options.onRowDblClick.apply($options, arguments);
1720
+ }),
1721
+ onContextmenu: _cache[3] || (_cache[3] = function () {
1722
+ return $options.onRowRightClick && $options.onRowRightClick.apply($options, arguments);
1723
+ }),
1724
+ onTouchend: _cache[4] || (_cache[4] = function () {
1725
+ return $options.onRowTouchEnd && $options.onRowTouchEnd.apply($options, arguments);
1726
+ }),
1727
+ onKeydown: _cache[5] || (_cache[5] = vue.withModifiers(function () {
1728
+ return $options.onRowKeyDown && $options.onRowKeyDown.apply($options, arguments);
1729
+ }, ["self"])),
1730
+ onMousedown: _cache[6] || (_cache[6] = function () {
1731
+ return $options.onRowMouseDown && $options.onRowMouseDown.apply($options, arguments);
1732
+ }),
1733
+ onDragstart: _cache[7] || (_cache[7] = function () {
1734
+ return $options.onRowDragStart && $options.onRowDragStart.apply($options, arguments);
1735
+ }),
1736
+ onDragover: _cache[8] || (_cache[8] = function () {
1737
+ return $options.onRowDragOver && $options.onRowDragOver.apply($options, arguments);
1738
+ }),
1739
+ onDragleave: _cache[9] || (_cache[9] = function () {
1740
+ return $options.onRowDragLeave && $options.onRowDragLeave.apply($options, arguments);
1741
+ }),
1742
+ onDragend: _cache[10] || (_cache[10] = function () {
1743
+ return $options.onRowDragEnd && $options.onRowDragEnd.apply($options, arguments);
1744
+ }),
1745
+ onDrop: _cache[11] || (_cache[11] = function () {
1746
+ return $options.onRowDrop && $options.onRowDrop.apply($options, arguments);
1747
+ })
1748
+ }, $options.getBodyRowPTOptions('bodyRow'), {
1749
+ "data-p-index": $options.rowIndex,
1750
+ "data-p-selectable-row": $props.selectionMode ? true : false,
1751
+ "data-p-highlight": $props.selection && $options.isSelected,
1752
+ "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu
1753
+ }), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
1754
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$options.shouldRenderBodyCell(col) ? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
1755
+ key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
1756
+ rowData: $props.rowData,
1757
+ column: col,
1758
+ rowIndex: $options.rowIndex,
1759
+ index: i,
1760
+ selected: $options.isSelected,
1761
+ frozenRow: $props.frozenRow,
1762
+ rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize(col) : null,
1763
+ editMode: $props.editMode,
1764
+ editing: $props.editMode === 'row' && $options.isRowEditing,
1765
+ editingMeta: $props.editingMeta,
1766
+ responsiveLayout: $props.responsiveLayout,
1767
+ virtualScrollerContentProps: $props.virtualScrollerContentProps,
1768
+ ariaControls: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
1769
+ name: $props.nameAttributeSelector,
1770
+ isRowExpanded: $data.d_rowExpanded,
1771
+ expandedRowIcon: $props.expandedRowIcon,
1772
+ collapsedRowIcon: $props.collapsedRowIcon,
1773
+ onRadioChange: $options.onRadioChange,
1774
+ onCheckboxChange: $options.onCheckboxChange,
1775
+ onRowToggle: $options.onRowToggle,
1776
+ onCellEditInit: $options.onCellEditInit,
1777
+ onCellEditComplete: $options.onCellEditComplete,
1778
+ onCellEditCancel: $options.onCellEditCancel,
1779
+ onRowEditInit: $options.onRowEditInit,
1780
+ onRowEditSave: $options.onRowEditSave,
1781
+ onRowEditCancel: $options.onRowEditCancel,
1782
+ onEditingMetaChange: $options.onEditingMetaChange,
1783
+ unstyled: _ctx.unstyled,
1784
+ pt: _ctx.pt
1785
+ }, 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);
1786
+ }), 256))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1787
+ key: 2,
1788
+ id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
1789
+ "class": _ctx.cx('rowExpansion'),
1790
+ role: "row"
1791
+ }, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
1792
+ colspan: $options.columnsLength
1793
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
1794
+ data: $props.rowData,
1795
+ index: $options.rowIndex
1796
+ }, 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({
1797
+ key: 3,
1798
+ "class": _ctx.cx('rowGroupFooter'),
1799
+ role: "row"
1800
+ }, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
1801
+ colspan: $options.columnsLength - 1
1802
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
1803
+ data: $props.rowData,
1804
+ index: $options.rowIndex
1805
+ }, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16)) : vue.createCommentVNode("", true)], 64)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1806
+ key: 1,
1807
+ "class": _ctx.cx('emptyMessage'),
1808
+ role: "row"
1809
+ }, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
1810
+ colspan: $options.columnsLength
1811
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
1812
+ key: 0
1813
+ })) : vue.createCommentVNode("", true)], 16, _hoisted_6)], 16));
1814
+ }
1815
+
1816
+ script$8.render = render$8;
1817
+
1818
+ var script$7 = {
1819
+ name: 'TableBody',
1820
+ hostName: 'DataTable',
1821
+ "extends": BaseComponent__default["default"],
1822
+ 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'],
1823
+ props: {
1824
+ value: {
1825
+ type: Array,
1826
+ "default": null
1827
+ },
1828
+ columns: {
1829
+ type: null,
1830
+ "default": null
1831
+ },
1832
+ frozenRow: {
1833
+ type: Boolean,
1834
+ "default": false
1835
+ },
1836
+ empty: {
1837
+ type: Boolean,
1838
+ "default": false
1839
+ },
1840
+ rowGroupMode: {
1841
+ type: String,
1842
+ "default": null
1843
+ },
1844
+ groupRowsBy: {
1845
+ type: [Array, String, Function],
1846
+ "default": null
1847
+ },
1848
+ expandableRowGroups: {
1849
+ type: Boolean,
1850
+ "default": false
1851
+ },
1852
+ expandedRowGroups: {
1853
+ type: Array,
1854
+ "default": null
1855
+ },
1856
+ first: {
1857
+ type: Number,
1858
+ "default": 0
1859
+ },
1860
+ dataKey: {
1861
+ type: [String, Function],
1862
+ "default": null
1863
+ },
1864
+ expandedRowIcon: {
1865
+ type: String,
1866
+ "default": null
1867
+ },
1868
+ collapsedRowIcon: {
1869
+ type: String,
1870
+ "default": null
1871
+ },
1872
+ expandedRows: {
1873
+ type: [Array, Object],
1874
+ "default": null
1875
+ },
1876
+ selection: {
1877
+ type: [Array, Object],
1878
+ "default": null
1879
+ },
1880
+ selectionKeys: {
1881
+ type: null,
1882
+ "default": null
1883
+ },
1884
+ selectionMode: {
1885
+ type: String,
1886
+ "default": null
1887
+ },
1888
+ contextMenu: {
1889
+ type: Boolean,
1890
+ "default": false
1891
+ },
1892
+ contextMenuSelection: {
1893
+ type: Object,
1894
+ "default": null
1895
+ },
1896
+ rowClass: {
1897
+ type: null,
1898
+ "default": null
1899
+ },
1900
+ rowStyle: {
1901
+ type: null,
1902
+ "default": null
1903
+ },
1904
+ editMode: {
1905
+ type: String,
1906
+ "default": null
1907
+ },
1908
+ compareSelectionBy: {
1909
+ type: String,
1910
+ "default": 'deepEquals'
1911
+ },
1912
+ editingRows: {
1913
+ type: Array,
1914
+ "default": null
1915
+ },
1916
+ editingRowKeys: {
1917
+ type: null,
1918
+ "default": null
1919
+ },
1920
+ editingMeta: {
1921
+ type: Object,
1922
+ "default": null
1923
+ },
1924
+ templates: {
1925
+ type: null,
1926
+ "default": null
1927
+ },
1928
+ scrollable: {
1929
+ type: Boolean,
1930
+ "default": false
1931
+ },
1932
+ responsiveLayout: {
1933
+ type: String,
1934
+ "default": 'stack'
1935
+ },
1936
+ virtualScrollerContentProps: {
1937
+ type: Object,
1938
+ "default": null
1939
+ },
1940
+ isVirtualScrollerDisabled: {
1941
+ type: Boolean,
1942
+ "default": false
1943
+ }
1944
+ },
1945
+ data: function data() {
1946
+ return {
1947
+ rowGroupHeaderStyleObject: {}
1948
+ };
1949
+ },
1950
+ mounted: function mounted() {
1951
+ if (this.frozenRow) {
1952
+ this.updateFrozenRowStickyPosition();
1953
+ }
1954
+ if (this.scrollable && this.rowGroupMode === 'subheader') {
1955
+ this.updateFrozenRowGroupHeaderStickyPosition();
1956
+ }
1957
+ },
1958
+ updated: function updated() {
1959
+ if (this.frozenRow) {
1960
+ this.updateFrozenRowStickyPosition();
1961
+ }
1962
+ if (this.scrollable && this.rowGroupMode === 'subheader') {
1963
+ this.updateFrozenRowGroupHeaderStickyPosition();
1964
+ }
1965
+ },
1966
+ methods: {
1615
1967
  updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
1616
1968
  this.$el.style.top = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
1617
1969
  },
@@ -1627,74 +1979,42 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1627
1979
  // For VirtualScroller
1628
1980
  var contentRef = this.getVirtualScrollerProp('contentRef');
1629
1981
  contentRef && contentRef(el);
1630
- },
1631
- setRowTabindex: function setRowTabindex(index) {
1632
- if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
1633
- return index === 0 ? 0 : -1;
1634
- }
1635
- return -1;
1636
1982
  }
1637
1983
  },
1638
1984
  computed: {
1639
- columnsLength: function columnsLength() {
1640
- var _this = this;
1641
- var hiddenColLength = 0;
1642
- this.columns.forEach(function (column) {
1643
- if (_this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
1644
- if (_this.columnProp(column, 'hidden')) hiddenColLength++;
1645
- });
1646
- return this.columns ? this.columns.length - hiddenColLength : 0;
1647
- },
1648
1985
  rowGroupHeaderStyle: function rowGroupHeaderStyle() {
1649
1986
  if (this.scrollable) {
1650
1987
  return {
1651
1988
  top: this.rowGroupHeaderStyleObject.top
1652
1989
  };
1653
1990
  }
1654
- return null;
1655
- },
1656
- bodyStyle: function bodyStyle() {
1657
- return this.getVirtualScrollerProp('contentStyle');
1658
- },
1659
- expandedRowId: function expandedRowId() {
1660
- return utils.UniqueComponentId();
1991
+ return null;
1661
1992
  },
1662
- nameAttributeSelector: function nameAttributeSelector() {
1663
- return utils.UniqueComponentId();
1993
+ bodyStyle: function bodyStyle() {
1994
+ return this.getVirtualScrollerProp('contentStyle');
1664
1995
  },
1665
1996
  ptmTBodyOptions: function ptmTBodyOptions() {
1666
- var _this$$parentInstance4;
1997
+ var _this$$parentInstance;
1667
1998
  return {
1668
1999
  context: {
1669
- 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
2000
+ 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
1670
2001
  }
1671
2002
  };
2003
+ },
2004
+ expandedRowId: function expandedRowId() {
2005
+ return utils.UniqueComponentId();
2006
+ },
2007
+ nameAttributeSelector: function nameAttributeSelector() {
2008
+ return utils.UniqueComponentId();
1672
2009
  }
1673
2010
  },
1674
2011
  components: {
1675
- DTBodyCell: script$8,
1676
- ChevronDownIcon: ChevronDownIcon__default["default"],
1677
- ChevronRightIcon: ChevronRightIcon__default["default"]
2012
+ DTBodyRow: script$8
1678
2013
  }
1679
2014
  };
1680
2015
 
1681
- 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); }
1682
- 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; }
1683
- 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; }
1684
- 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; }
1685
- function _toPropertyKey$8(arg) { var key = _toPrimitive$8(arg, "string"); return _typeof$8(key) === "symbol" ? key : String(key); }
1686
- 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); }
1687
- var _hoisted_1$4 = ["colspan"];
1688
- var _hoisted_2$1 = ["onClick"];
1689
- var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
1690
- var _hoisted_4 = ["id"];
1691
- var _hoisted_5 = ["colspan"];
1692
- var _hoisted_6 = ["colspan"];
1693
- var _hoisted_7 = ["colspan"];
1694
2016
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1695
- var _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
1696
- var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
1697
- var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
2017
+ var _component_DTBodyRow = vue.resolveComponent("DTBodyRow");
1698
2018
  return vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
1699
2019
  ref: $options.bodyRef,
1700
2020
  "class": _ctx.cx('tbody'),
@@ -1702,165 +2022,119 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1702
2022
  style: $options.bodyStyle
1703
2023
  }, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
1704
2024
  key: 0
1705
- }, vue.renderList($props.value, function (rowData, index) {
1706
- 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({
1707
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader',
1708
- "class": _ctx.cx('rowGroupHeader'),
1709
- style: $options.rowGroupHeaderStyle,
1710
- role: "row"
1711
- }, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
1712
- colspan: $options.columnsLength - 1
1713
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1714
- key: 0,
1715
- "class": _ctx.cx('rowGroupToggler'),
1716
- onClick: function onClick($event) {
1717
- return $options.onRowGroupToggle($event, rowData);
1718
- },
1719
- type: "button"
1720
- }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1721
- key: 0,
1722
- expanded: $options.isRowGroupExpanded(rowData)
1723
- }, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1724
- key: 1
1725
- }, [$options.isRowGroupExpanded(rowData) && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1726
- key: 0,
1727
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1728
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
1729
- key: 1,
1730
- "class": _ctx.cx('rowGroupTogglerIcon')
1731
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1732
- key: 2,
1733
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1734
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
1735
- key: 3,
1736
- "class": _ctx.cx('rowGroupTogglerIcon')
1737
- }, _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']), {
1738
- data: rowData,
1739
- index: $options.getRowIndex(index)
1740
- }, 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({
1741
- key: $options.getRowKey(rowData, $options.getRowIndex(index)),
1742
- "class": $options.getRowClass(rowData),
1743
- style: $options.getRowStyle(rowData),
1744
- tabindex: $options.setRowTabindex(index),
1745
- role: "row",
1746
- "aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
1747
- onClick: function onClick($event) {
1748
- return $options.onRowClick($event, rowData, $options.getRowIndex(index));
1749
- },
1750
- onDblclick: function onDblclick($event) {
1751
- return $options.onRowDblClick($event, rowData, $options.getRowIndex(index));
1752
- },
1753
- onContextmenu: function onContextmenu($event) {
1754
- return $options.onRowRightClick($event, rowData, $options.getRowIndex(index));
1755
- },
1756
- onTouchend: _cache[9] || (_cache[9] = function ($event) {
1757
- return $options.onRowTouchEnd($event);
2025
+ }, vue.renderList($props.value, function (rowData, rowIndex) {
2026
+ return vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
2027
+ key: rowIndex,
2028
+ rowData: rowData,
2029
+ index: rowIndex,
2030
+ value: $props.value,
2031
+ columns: $props.columns,
2032
+ frozenRow: $props.frozenRow,
2033
+ empty: $props.empty,
2034
+ first: $props.first,
2035
+ dataKey: $props.dataKey,
2036
+ selection: $props.selection,
2037
+ selectionKeys: $props.selectionKeys,
2038
+ selectionMode: $props.selectionMode,
2039
+ contextMenu: $props.contextMenu,
2040
+ contextMenuSelection: $props.contextMenuSelection,
2041
+ rowGroupMode: $props.rowGroupMode,
2042
+ groupRowsBy: $props.groupRowsBy,
2043
+ expandableRowGroups: $props.expandableRowGroups,
2044
+ rowClass: $props.rowClass,
2045
+ rowStyle: $props.rowStyle,
2046
+ editMode: $props.editMode,
2047
+ compareSelectionBy: $props.compareSelectionBy,
2048
+ scrollable: $props.scrollable,
2049
+ expandedRowIcon: $props.expandedRowIcon,
2050
+ collapsedRowIcon: $props.collapsedRowIcon,
2051
+ expandedRows: $props.expandedRows,
2052
+ expandedRowGroups: $props.expandedRowGroups,
2053
+ editingRows: $props.editingRows,
2054
+ editingRowKeys: $props.editingRowKeys,
2055
+ templates: $props.templates,
2056
+ responsiveLayout: $props.responsiveLayout,
2057
+ virtualScrollerContentProps: $props.virtualScrollerContentProps,
2058
+ isVirtualScrollerDisabled: $props.isVirtualScrollerDisabled,
2059
+ editingMeta: $props.editingMeta,
2060
+ rowGroupHeaderStyle: $options.rowGroupHeaderStyle,
2061
+ expandedRowId: $options.expandedRowId,
2062
+ nameAttributeSelector: $options.nameAttributeSelector,
2063
+ onRowgroupToggle: _cache[0] || (_cache[0] = function ($event) {
2064
+ return _ctx.$emit('rowgroup-toggle', $event);
1758
2065
  }),
1759
- onKeydown: vue.withModifiers(function ($event) {
1760
- return $options.onRowKeyDown($event, rowData, $options.getRowIndex(index));
1761
- }, ["self"]),
1762
- onMousedown: _cache[10] || (_cache[10] = function ($event) {
1763
- return $options.onRowMouseDown($event);
2066
+ onRowClick: _cache[1] || (_cache[1] = function ($event) {
2067
+ return _ctx.$emit('row-click', $event);
1764
2068
  }),
1765
- onDragstart: function onDragstart($event) {
1766
- return $options.onRowDragStart($event, $options.getRowIndex(index));
1767
- },
1768
- onDragover: function onDragover($event) {
1769
- return $options.onRowDragOver($event, $options.getRowIndex(index));
1770
- },
1771
- onDragleave: _cache[11] || (_cache[11] = function ($event) {
1772
- return $options.onRowDragLeave($event);
2069
+ onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
2070
+ return _ctx.$emit('row-dblclick', $event);
1773
2071
  }),
1774
- onDragend: _cache[12] || (_cache[12] = function ($event) {
1775
- return $options.onRowDragEnd($event);
2072
+ onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
2073
+ return _ctx.$emit('row-rightclick', $event);
1776
2074
  }),
1777
- onDrop: _cache[13] || (_cache[13] = function ($event) {
1778
- return $options.onRowDrop($event);
1779
- })
1780
- }, $options.getBodyRowPTOptions('bodyRow', rowData, index), {
1781
- "data-p-selectable-row": $props.selectionMode ? true : false,
1782
- "data-p-highlight": $props.selection && $options.isSelected(rowData),
1783
- "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu(rowData)
1784
- }), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
1785
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
1786
- key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
1787
- rowData: rowData,
1788
- column: col,
1789
- rowIndex: $options.getRowIndex(index),
1790
- index: i,
1791
- selected: $options.isSelected(rowData),
1792
- frozenRow: $props.frozenRow,
1793
- rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
1794
- editMode: $props.editMode,
1795
- editing: $props.editMode === 'row' && $options.isRowEditing(rowData),
1796
- editingMeta: $props.editingMeta,
1797
- responsiveLayout: $props.responsiveLayout,
1798
- virtualScrollerContentProps: $props.virtualScrollerContentProps,
1799
- ariaControls: $options.expandedRowId + '_' + index + '_expansion',
1800
- name: $options.nameAttributeSelector,
1801
- isRowExpanded: $options.isRowExpanded(rowData),
1802
- expandedRowIcon: $props.expandedRowIcon,
1803
- collapsedRowIcon: $props.collapsedRowIcon,
1804
- onRadioChange: _cache[0] || (_cache[0] = function ($event) {
1805
- return $options.onRadioChange($event);
1806
- }),
1807
- onCheckboxChange: _cache[1] || (_cache[1] = function ($event) {
1808
- return $options.onCheckboxChange($event);
1809
- }),
1810
- onRowToggle: _cache[2] || (_cache[2] = function ($event) {
1811
- return $options.onRowToggle($event);
1812
- }),
1813
- onCellEditInit: _cache[3] || (_cache[3] = function ($event) {
1814
- return $options.onCellEditInit($event);
1815
- }),
1816
- onCellEditComplete: _cache[4] || (_cache[4] = function ($event) {
1817
- return $options.onCellEditComplete($event);
1818
- }),
1819
- onCellEditCancel: _cache[5] || (_cache[5] = function ($event) {
1820
- return $options.onCellEditCancel($event);
1821
- }),
1822
- onRowEditInit: _cache[6] || (_cache[6] = function ($event) {
1823
- return $options.onRowEditInit($event);
1824
- }),
1825
- onRowEditSave: _cache[7] || (_cache[7] = function ($event) {
1826
- return $options.onRowEditSave($event);
1827
- }),
1828
- onRowEditCancel: _cache[8] || (_cache[8] = function ($event) {
1829
- return $options.onRowEditCancel($event);
1830
- }),
1831
- onEditingMetaChange: $options.onEditingMetaChange,
1832
- unstyled: _ctx.unstyled,
1833
- pt: _ctx.pt
1834
- }, 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);
1835
- }), 256))], 16, _hoisted_3$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1836
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
1837
- id: $options.expandedRowId + '_' + index + '_expansion',
1838
- "class": _ctx.cx('rowExpansion'),
1839
- role: "row"
1840
- }, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
1841
- colspan: $options.columnsLength
1842
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
1843
- data: rowData,
1844
- index: $options.getRowIndex(index)
1845
- }, 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({
1846
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
1847
- "class": _ctx.cx('rowGroupFooter'),
1848
- role: "row"
1849
- }, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
1850
- colspan: $options.columnsLength - 1
1851
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
1852
- data: rowData,
1853
- index: $options.getRowIndex(index)
1854
- }, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : vue.createCommentVNode("", true)], 64);
1855
- }), 256)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
2075
+ onRowTouchend: _cache[4] || (_cache[4] = function ($event) {
2076
+ return _ctx.$emit('row-touchend', $event);
2077
+ }),
2078
+ onRowKeydown: _cache[5] || (_cache[5] = function ($event) {
2079
+ return _ctx.$emit('row-keydown', $event);
2080
+ }),
2081
+ onRowMousedown: _cache[6] || (_cache[6] = function ($event) {
2082
+ return _ctx.$emit('row-mousedown', $event);
2083
+ }),
2084
+ onRowDragstart: _cache[7] || (_cache[7] = function ($event) {
2085
+ return _ctx.$emit('row-dragstart', $event);
2086
+ }),
2087
+ onRowDragover: _cache[8] || (_cache[8] = function ($event) {
2088
+ return _ctx.$emit('row-dragover', $event);
2089
+ }),
2090
+ onRowDragleave: _cache[9] || (_cache[9] = function ($event) {
2091
+ return _ctx.$emit('row-dragleave', $event);
2092
+ }),
2093
+ onRowDragend: _cache[10] || (_cache[10] = function ($event) {
2094
+ return _ctx.$emit('row-dragend', $event);
2095
+ }),
2096
+ onRowDrop: _cache[11] || (_cache[11] = function ($event) {
2097
+ return _ctx.$emit('row-drop', $event);
2098
+ }),
2099
+ onRowToggle: _cache[12] || (_cache[12] = function ($event) {
2100
+ return _ctx.$emit('row-toggle', $event);
2101
+ }),
2102
+ onRadioChange: _cache[13] || (_cache[13] = function ($event) {
2103
+ return _ctx.$emit('radio-change', $event);
2104
+ }),
2105
+ onCheckboxChange: _cache[14] || (_cache[14] = function ($event) {
2106
+ return _ctx.$emit('checkbox-change', $event);
2107
+ }),
2108
+ onCellEditInit: _cache[15] || (_cache[15] = function ($event) {
2109
+ return _ctx.$emit('cell-edit-init', $event);
2110
+ }),
2111
+ onCellEditComplete: _cache[16] || (_cache[16] = function ($event) {
2112
+ return _ctx.$emit('cell-edit-complete', $event);
2113
+ }),
2114
+ onCellEditCancel: _cache[17] || (_cache[17] = function ($event) {
2115
+ return _ctx.$emit('cell-edit-cancel', $event);
2116
+ }),
2117
+ onRowEditInit: _cache[18] || (_cache[18] = function ($event) {
2118
+ return _ctx.$emit('row-edit-init', $event);
2119
+ }),
2120
+ onRowEditSave: _cache[19] || (_cache[19] = function ($event) {
2121
+ return _ctx.$emit('row-edit-save', $event);
2122
+ }),
2123
+ onRowEditCancel: _cache[20] || (_cache[20] = function ($event) {
2124
+ return _ctx.$emit('row-edit-cancel', $event);
2125
+ }),
2126
+ onEditingMetaChange: _cache[21] || (_cache[21] = function ($event) {
2127
+ return _ctx.$emit('editing-meta-change', $event);
2128
+ }),
2129
+ unstyled: _ctx.unstyled,
2130
+ pt: _ctx.pt
2131
+ }, 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"]);
2132
+ }), 128)) : (vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
1856
2133
  key: 1,
1857
- "class": _ctx.cx('emptyMessage'),
1858
- role: "row"
1859
- }, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
1860
- colspan: $options.columnsLength
1861
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
1862
- key: 0
1863
- })) : vue.createCommentVNode("", true)], 16, _hoisted_7)], 16))], 16);
2134
+ empty: $props.empty,
2135
+ columns: $props.columns,
2136
+ templates: $props.templates
2137
+ }, null, 8, ["empty", "columns", "templates"]))], 16);
1864
2138
  }
1865
2139
 
1866
2140
  script$7.render = render$7;
@@ -1957,8 +2231,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1957
2231
  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; }
1958
2232
  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; }
1959
2233
  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; }
1960
- function _toPropertyKey$7(arg) { var key = _toPrimitive$7(arg, "string"); return _typeof$7(key) === "symbol" ? key : String(key); }
1961
- 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); }
2234
+ function _toPropertyKey$7(t) { var i = _toPrimitive$7(t, "string"); return "symbol" == _typeof$7(i) ? i : String(i); }
2235
+ 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); }
1962
2236
  var _hoisted_1$3 = ["colspan", "rowspan", "data-p-frozen-column"];
1963
2237
  function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1964
2238
  return vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
@@ -1977,13 +2251,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1977
2251
 
1978
2252
  script$6.render = render$6;
1979
2253
 
1980
- function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2(); }
1981
- 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."); }
1982
- function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
1983
- function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
1984
- 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; } } }; }
1985
- 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); }
1986
- 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; }
2254
+ 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; } } }; }
2255
+ 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); }
2256
+ 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; }
1987
2257
  var script$5 = {
1988
2258
  name: 'TableFooter',
1989
2259
  hostName: 'DataTable',
@@ -1998,6 +2268,26 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1998
2268
  "default": null
1999
2269
  }
2000
2270
  },
2271
+ provide: function provide() {
2272
+ return {
2273
+ $rows: this.d_footerRows,
2274
+ $columns: this.d_footerColumns
2275
+ };
2276
+ },
2277
+ data: function data() {
2278
+ return {
2279
+ d_footerRows: new utils.HelperSet({
2280
+ type: 'Row'
2281
+ }),
2282
+ d_footerColumns: new utils.HelperSet({
2283
+ type: 'Column'
2284
+ })
2285
+ };
2286
+ },
2287
+ beforeUnmount: function beforeUnmount() {
2288
+ this.d_footerRows.clear();
2289
+ this.d_footerColumns.clear();
2290
+ },
2001
2291
  methods: {
2002
2292
  columnProp: function columnProp(col, prop) {
2003
2293
  return utils.ObjectUtils.getVNodeProp(col, prop);
@@ -2042,36 +2332,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2042
2332
  return row.props && row.props.pt ? row.props.pt : undefined; //@todo
2043
2333
  },
2044
2334
  getFooterRows: function getFooterRows() {
2045
- var rows = [];
2046
- var columnGroup = this.columnGroup;
2047
- if (columnGroup.children && columnGroup.children["default"]) {
2048
- var _iterator = _createForOfIteratorHelper$2(columnGroup.children["default"]()),
2049
- _step;
2050
- try {
2051
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2052
- var child = _step.value;
2053
- if (child.type.name === 'Row') {
2054
- rows.push(child);
2055
- } else if (child.children && child.children instanceof Array) {
2056
- rows = child.children;
2057
- }
2058
- }
2059
- } catch (err) {
2060
- _iterator.e(err);
2061
- } finally {
2062
- _iterator.f();
2063
- }
2064
- return rows;
2065
- }
2335
+ var _this$d_footerRows;
2336
+ return (_this$d_footerRows = this.d_footerRows) === null || _this$d_footerRows === void 0 ? void 0 : _this$d_footerRows.get(this.columnGroup, this.columnGroup.children);
2066
2337
  },
2067
2338
  getFooterColumns: function getFooterColumns(row) {
2068
- var cols = [];
2069
- if (row.children && row.children["default"]) {
2070
- row.children["default"]().forEach(function (child) {
2071
- 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);
2072
- });
2073
- return cols;
2074
- }
2339
+ var _this$d_footerColumns;
2340
+ return (_this$d_footerColumns = this.d_footerColumns) === null || _this$d_footerColumns === void 0 ? void 0 : _this$d_footerColumns.get(row, row.children);
2075
2341
  }
2076
2342
  },
2077
2343
  computed: {
@@ -2080,20 +2346,20 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2080
2346
  if (this.columnGroup) {
2081
2347
  hasFooter = true;
2082
2348
  } else if (this.columns) {
2083
- var _iterator2 = _createForOfIteratorHelper$2(this.columns),
2084
- _step2;
2349
+ var _iterator = _createForOfIteratorHelper$1(this.columns),
2350
+ _step;
2085
2351
  try {
2086
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2087
- var col = _step2.value;
2352
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2353
+ var col = _step.value;
2088
2354
  if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
2089
2355
  hasFooter = true;
2090
2356
  break;
2091
2357
  }
2092
2358
  }
2093
2359
  } catch (err) {
2094
- _iterator2.e(err);
2360
+ _iterator.e(err);
2095
2361
  } finally {
2096
- _iterator2.f();
2362
+ _iterator.f();
2097
2363
  }
2098
2364
  }
2099
2365
  return hasFooter;
@@ -2116,8 +2382,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2116
2382
  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; }
2117
2383
  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; }
2118
2384
  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; }
2119
- function _toPropertyKey$6(arg) { var key = _toPrimitive$6(arg, "string"); return _typeof$6(key) === "symbol" ? key : String(key); }
2120
- 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); }
2385
+ function _toPropertyKey$6(t) { var i = _toPrimitive$6(t, "string"); return "symbol" == _typeof$6(i) ? i : String(i); }
2386
+ 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); }
2121
2387
  function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2122
2388
  var _component_DTFooterCell = vue.resolveComponent("DTFooterCell");
2123
2389
  return $options.hasFooter ? (vue.openBlock(), vue.createElementBlock("tfoot", vue.mergeProps({
@@ -2163,8 +2429,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2163
2429
  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; }
2164
2430
  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; }
2165
2431
  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; }
2166
- function _toPropertyKey$5(arg) { var key = _toPrimitive$5(arg, "string"); return _typeof$5(key) === "symbol" ? key : String(key); }
2167
- 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); }
2432
+ function _toPropertyKey$5(t) { var i = _toPrimitive$5(t, "string"); return "symbol" == _typeof$5(i) ? i : String(i); }
2433
+ 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); }
2168
2434
  var script$4 = {
2169
2435
  name: 'ColumnFilter',
2170
2436
  hostName: 'DataTable',
@@ -2383,6 +2649,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2383
2649
  onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
2384
2650
  switch (event.code) {
2385
2651
  case 'Enter':
2652
+ case 'NumpadEnter':
2386
2653
  case 'Space':
2387
2654
  this.toggleMenu(event);
2388
2655
  break;
@@ -2704,8 +2971,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2704
2971
  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; }
2705
2972
  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; }
2706
2973
  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; }
2707
- function _toPropertyKey$4(arg) { var key = _toPrimitive$4(arg, "string"); return _typeof$4(key) === "symbol" ? key : String(key); }
2708
- 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); }
2974
+ function _toPropertyKey$4(t) { var i = _toPrimitive$4(t, "string"); return "symbol" == _typeof$4(i) ? i : String(i); }
2975
+ 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); }
2709
2976
  var _hoisted_1$2 = ["aria-label", "aria-expanded", "aria-controls"];
2710
2977
  var _hoisted_2 = ["id", "aria-modal"];
2711
2978
  var _hoisted_3 = ["onClick", "onKeydown", "tabindex"];
@@ -3184,7 +3451,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3184
3451
  });
3185
3452
  },
3186
3453
  onKeyDown: function onKeyDown(event) {
3187
- if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
3454
+ if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
3188
3455
  this.$emit('column-click', {
3189
3456
  originalEvent: event,
3190
3457
  column: this.column
@@ -3199,16 +3466,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3199
3466
  });
3200
3467
  },
3201
3468
  onDragStart: function onDragStart(event) {
3202
- this.$emit('column-dragstart', event);
3469
+ this.$emit('column-dragstart', {
3470
+ originalEvent: event,
3471
+ column: this.column
3472
+ });
3203
3473
  },
3204
3474
  onDragOver: function onDragOver(event) {
3205
- this.$emit('column-dragover', event);
3475
+ this.$emit('column-dragover', {
3476
+ originalEvent: event,
3477
+ column: this.column
3478
+ });
3206
3479
  },
3207
3480
  onDragLeave: function onDragLeave(event) {
3208
- this.$emit('column-dragleave', event);
3481
+ this.$emit('column-dragleave', {
3482
+ originalEvent: event,
3483
+ column: this.column
3484
+ });
3209
3485
  },
3210
3486
  onDrop: function onDrop(event) {
3211
- this.$emit('column-drop', event);
3487
+ this.$emit('column-drop', {
3488
+ originalEvent: event,
3489
+ column: this.column
3490
+ });
3212
3491
  },
3213
3492
  onResizeStart: function onResizeStart(event) {
3214
3493
  this.$emit('column-resizestart', event);
@@ -3250,8 +3529,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3250
3529
  var filterRow = this.$el.parentElement.nextElementSibling;
3251
3530
  if (filterRow) {
3252
3531
  var index = utils.DomHandler.index(this.$el);
3253
- filterRow.children[index].style.left = this.styleObject.left;
3254
- filterRow.children[index].style.right = this.styleObject.right;
3532
+ if (filterRow.children[index]) {
3533
+ filterRow.children[index].style.left = this.styleObject.left;
3534
+ filterRow.children[index].style.right = this.styleObject.right;
3535
+ }
3255
3536
  }
3256
3537
  }
3257
3538
  },
@@ -3317,8 +3598,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3317
3598
  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; }
3318
3599
  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; }
3319
3600
  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; }
3320
- function _toPropertyKey$3(arg) { var key = _toPrimitive$3(arg, "string"); return _typeof$3(key) === "symbol" ? key : String(key); }
3321
- 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); }
3601
+ function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == _typeof$3(i) ? i : String(i); }
3602
+ 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); }
3322
3603
  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"];
3323
3604
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
3324
3605
  var _component_DTHeaderCheckbox = vue.resolveComponent("DTHeaderCheckbox");
@@ -3448,13 +3729,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3448
3729
 
3449
3730
  script$2.render = render$2;
3450
3731
 
3451
- function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
3452
- 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."); }
3453
- function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
3454
- function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
3455
- 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; } } }; }
3456
- 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); }
3457
- 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; }
3458
3732
  var script$1 = {
3459
3733
  name: 'TableHeader',
3460
3734
  hostName: 'DataTable',
@@ -3530,6 +3804,26 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3530
3804
  "default": null
3531
3805
  }
3532
3806
  },
3807
+ provide: function provide() {
3808
+ return {
3809
+ $rows: this.d_headerRows,
3810
+ $columns: this.d_headerColumns
3811
+ };
3812
+ },
3813
+ data: function data() {
3814
+ return {
3815
+ d_headerRows: new utils.HelperSet({
3816
+ type: 'Row'
3817
+ }),
3818
+ d_headerColumns: new utils.HelperSet({
3819
+ type: 'Column'
3820
+ })
3821
+ };
3822
+ },
3823
+ beforeUnmount: function beforeUnmount() {
3824
+ this.d_headerRows.clear();
3825
+ this.d_headerColumns.clear();
3826
+ },
3533
3827
  methods: {
3534
3828
  columnProp: function columnProp(col, prop) {
3535
3829
  return utils.ObjectUtils.getVNodeProp(col, prop);
@@ -3602,36 +3896,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3602
3896
  return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
3603
3897
  },
3604
3898
  getHeaderRows: function getHeaderRows() {
3605
- var rows = [];
3606
- var columnGroup = this.columnGroup;
3607
- if (columnGroup.children && columnGroup.children["default"]) {
3608
- var _iterator = _createForOfIteratorHelper$1(columnGroup.children["default"]()),
3609
- _step;
3610
- try {
3611
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3612
- var child = _step.value;
3613
- if (child.type.name === 'Row') {
3614
- rows.push(child);
3615
- } else if (child.children && child.children instanceof Array) {
3616
- rows = child.children;
3617
- }
3618
- }
3619
- } catch (err) {
3620
- _iterator.e(err);
3621
- } finally {
3622
- _iterator.f();
3623
- }
3624
- return rows;
3625
- }
3899
+ var _this$d_headerRows;
3900
+ return (_this$d_headerRows = this.d_headerRows) === null || _this$d_headerRows === void 0 ? void 0 : _this$d_headerRows.get(this.columnGroup, this.columnGroup.children);
3626
3901
  },
3627
3902
  getHeaderColumns: function getHeaderColumns(row) {
3628
- var cols = [];
3629
- if (row.children && row.children["default"]) {
3630
- row.children["default"]().forEach(function (child) {
3631
- 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);
3632
- });
3633
- return cols;
3634
- }
3903
+ var _this$d_headerColumns;
3904
+ return (_this$d_headerColumns = this.d_headerColumns) === null || _this$d_headerColumns === void 0 ? void 0 : _this$d_headerColumns.get(row, row.children);
3635
3905
  }
3636
3906
  },
3637
3907
  computed: {
@@ -3655,8 +3925,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3655
3925
  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; }
3656
3926
  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; }
3657
3927
  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; }
3658
- function _toPropertyKey$2(arg) { var key = _toPrimitive$2(arg, "string"); return _typeof$2(key) === "symbol" ? key : String(key); }
3659
- 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); }
3928
+ function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : String(i); }
3929
+ 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); }
3660
3930
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3661
3931
  var _component_DTHeaderCell = vue.resolveComponent("DTHeaderCell");
3662
3932
  var _component_DTHeaderCheckbox = vue.resolveComponent("DTHeaderCheckbox");
@@ -3872,11 +4142,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3872
4142
  script$1.render = render$1;
3873
4143
 
3874
4144
  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); }
4145
+ var _excluded = ["expanded"];
4146
+ 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; }
4147
+ 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; }
3875
4148
  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; }
3876
4149
  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; }
3877
4150
  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; }
3878
- function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
3879
- 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); }
4151
+ function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : String(i); }
4152
+ 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); }
3880
4153
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3881
4154
  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."); }
3882
4155
  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; } }
@@ -3890,8 +4163,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3890
4163
  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; }
3891
4164
  var script = {
3892
4165
  name: 'DataTable',
3893
- "extends": script$b,
4166
+ "extends": script$c,
3894
4167
  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'],
4168
+ provide: function provide() {
4169
+ return {
4170
+ $columns: this.d_columns,
4171
+ $columnGroups: this.d_columnGroups
4172
+ };
4173
+ },
3895
4174
  data: function data() {
3896
4175
  return {
3897
4176
  d_first: this.first,
@@ -3902,11 +4181,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3902
4181
  d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
3903
4182
  d_groupRowsSortMeta: null,
3904
4183
  d_selectionKeys: null,
3905
- d_expandedRowKeys: null,
3906
4184
  d_columnOrder: null,
3907
4185
  d_editingRowKeys: null,
3908
4186
  d_editingMeta: {},
3909
- d_filters: this.cloneFilters(this.filters)
4187
+ d_filters: this.cloneFilters(this.filters),
4188
+ d_columns: new utils.HelperSet({
4189
+ type: 'Column'
4190
+ }),
4191
+ d_columnGroups: new utils.HelperSet({
4192
+ type: 'ColumnGroup'
4193
+ })
3910
4194
  };
3911
4195
  },
3912
4196
  rowTouched: false,
@@ -3920,6 +4204,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3920
4204
  colReorderIconWidth: null,
3921
4205
  colReorderIconHeight: null,
3922
4206
  draggedColumn: null,
4207
+ draggedColumnElement: null,
3923
4208
  draggedRowIndex: null,
3924
4209
  droppedRowIndex: null,
3925
4210
  rowDragging: null,
@@ -3953,11 +4238,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3953
4238
  }
3954
4239
  }
3955
4240
  },
3956
- expandedRows: function expandedRows(newValue) {
3957
- if (this.dataKey) {
3958
- this.updateExpandedRowKeys(newValue);
3959
- }
3960
- },
3961
4241
  editingRows: {
3962
4242
  immediate: true,
3963
4243
  handler: function handler(newValue) {
@@ -3990,6 +4270,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3990
4270
  this.unbindColumnResizeEvents();
3991
4271
  this.destroyStyleElement();
3992
4272
  this.destroyResponsiveStyle();
4273
+ this.d_columns.clear();
4274
+ this.d_columnGroups.clear();
3993
4275
  },
3994
4276
  updated: function updated() {
3995
4277
  if (this.isStateful()) {
@@ -4004,6 +4286,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4004
4286
  return utils.ObjectUtils.getVNodeProp(col, prop);
4005
4287
  },
4006
4288
  onPage: function onPage(event) {
4289
+ var _this = this;
4007
4290
  this.clearEditingMetaData();
4008
4291
  this.d_first = event.first;
4009
4292
  this.d_rows = event.rows;
@@ -4013,15 +4296,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4013
4296
  this.$emit('update:first', this.d_first);
4014
4297
  this.$emit('update:rows', this.d_rows);
4015
4298
  this.$emit('page', pageEvent);
4016
- this.$emit('value-change', this.processedData);
4299
+ this.$nextTick(function () {
4300
+ _this.$emit('value-change', _this.processedData);
4301
+ });
4017
4302
  },
4018
4303
  onColumnHeaderClick: function onColumnHeaderClick(e) {
4304
+ var _this2 = this;
4019
4305
  var event = e.originalEvent;
4020
4306
  var column = e.column;
4021
4307
  if (this.columnProp(column, 'sortable')) {
4022
4308
  var targetNode = event.target;
4023
4309
  var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
4024
- 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"]')) {
4310
+ 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)) {
4025
4311
  utils.DomHandler.clearSelection();
4026
4312
  if (this.sortMode === 'single') {
4027
4313
  if (this.d_sortField === columnField) {
@@ -4049,12 +4335,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4049
4335
  this.$emit('update:multiSortMeta', this.d_multiSortMeta);
4050
4336
  }
4051
4337
  this.$emit('sort', this.createLazyLoadEvent(event));
4052
- this.$emit('value-change', this.processedData);
4338
+ this.$nextTick(function () {
4339
+ _this2.$emit('value-change', _this2.processedData);
4340
+ });
4053
4341
  }
4054
4342
  }
4055
4343
  },
4056
4344
  sortSingle: function sortSingle(value) {
4057
- var _this = this;
4345
+ var _this3 = this;
4058
4346
  this.clearEditingMetaData();
4059
4347
  if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
4060
4348
  this.d_multiSortMeta = [{
@@ -4084,12 +4372,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4084
4372
  data.sort(function (data1, data2) {
4085
4373
  var value1 = resolvedFieldData.get(data1);
4086
4374
  var value2 = resolvedFieldData.get(data2);
4087
- return utils.ObjectUtils.sort(value1, value2, _this.d_sortOrder, comparer, _this.d_nullSortOrder);
4375
+ return utils.ObjectUtils.sort(value1, value2, _this3.d_sortOrder, comparer, _this3.d_nullSortOrder);
4088
4376
  });
4089
4377
  return data;
4090
4378
  },
4091
4379
  sortMultiple: function sortMultiple(value) {
4092
- var _this2 = this;
4380
+ var _this4 = this;
4093
4381
  this.clearEditingMetaData();
4094
4382
  if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
4095
4383
  var firstSortMeta = this.d_multiSortMeta[0];
@@ -4100,7 +4388,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4100
4388
  }
4101
4389
  var data = _toConsumableArray(value);
4102
4390
  data.sort(function (data1, data2) {
4103
- return _this2.multisortField(data1, data2, 0);
4391
+ return _this4.multisortField(data1, data2, 0);
4104
4392
  });
4105
4393
  return data;
4106
4394
  },
@@ -4156,7 +4444,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4156
4444
  return Object.fromEntries(entries);
4157
4445
  },
4158
4446
  filter: function filter(data) {
4159
- var _this3 = this;
4447
+ var _this5 = this;
4160
4448
  if (!data) {
4161
4449
  return;
4162
4450
  }
@@ -4165,7 +4453,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4165
4453
  var globalFilterFieldsArray;
4166
4454
  if (activeFilters['global']) {
4167
4455
  globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
4168
- return _this3.columnProp(col, 'filterField') || _this3.columnProp(col, 'field');
4456
+ return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
4169
4457
  });
4170
4458
  }
4171
4459
  var filteredValue = [];
@@ -4227,7 +4515,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4227
4515
  var filterEvent = this.createLazyLoadEvent();
4228
4516
  filterEvent.filteredValue = filteredValue;
4229
4517
  this.$emit('filter', filterEvent);
4230
- this.$emit('value-change', filteredValue);
4518
+ this.$nextTick(function () {
4519
+ _this5.$emit('value-change', _this5.processedData);
4520
+ });
4231
4521
  return filteredValue;
4232
4522
  },
4233
4523
  executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
@@ -4383,6 +4673,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4383
4673
  this.onEndKey(event, row, rowIndex, slotProps);
4384
4674
  break;
4385
4675
  case 'Enter':
4676
+ case 'NumpadEnter':
4386
4677
  this.onEnterKey(event, rowData, rowIndex);
4387
4678
  break;
4388
4679
  case 'Space':
@@ -4633,40 +4924,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4633
4924
  this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
4634
4925
  }
4635
4926
  },
4636
- updateExpandedRowKeys: function updateExpandedRowKeys(expandedRows) {
4637
- if (expandedRows && expandedRows.length) {
4638
- this.d_expandedRowKeys = {};
4639
- var _iterator4 = _createForOfIteratorHelper(expandedRows),
4927
+ updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4928
+ if (editingRows && editingRows.length) {
4929
+ this.d_editingRowKeys = {};
4930
+ var _iterator4 = _createForOfIteratorHelper(editingRows),
4640
4931
  _step4;
4641
4932
  try {
4642
4933
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
4643
4934
  var data = _step4.value;
4644
- this.d_expandedRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4935
+ this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4645
4936
  }
4646
4937
  } catch (err) {
4647
4938
  _iterator4.e(err);
4648
4939
  } finally {
4649
4940
  _iterator4.f();
4650
4941
  }
4651
- } else {
4652
- this.d_expandedRowKeys = null;
4653
- }
4654
- },
4655
- updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4656
- if (editingRows && editingRows.length) {
4657
- this.d_editingRowKeys = {};
4658
- var _iterator5 = _createForOfIteratorHelper(editingRows),
4659
- _step5;
4660
- try {
4661
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
4662
- var data = _step5.value;
4663
- this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4664
- }
4665
- } catch (err) {
4666
- _iterator5.e(err);
4667
- } finally {
4668
- _iterator5.f();
4669
- }
4670
4942
  } else {
4671
4943
  this.d_editingRowKeys = null;
4672
4944
  }
@@ -4704,7 +4976,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4704
4976
  this.$emit('update:selection', _selection);
4705
4977
  },
4706
4978
  exportCSV: function exportCSV(options, data) {
4707
- var _this4 = this;
4979
+ var _this6 = this;
4708
4980
  var csv = "\uFEFF";
4709
4981
  if (!data) {
4710
4982
  data = this.processedData;
@@ -4726,16 +4998,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4726
4998
  data.forEach(function (record) {
4727
4999
  csv += '\n';
4728
5000
  var rowInitiated = false;
4729
- for (var _i = 0; _i < _this4.columns.length; _i++) {
4730
- var _column = _this4.columns[_i];
4731
- if (_this4.columnProp(_column, 'exportable') !== false && _this4.columnProp(_column, 'field')) {
4732
- if (rowInitiated) csv += _this4.csvSeparator;else rowInitiated = true;
4733
- var cellData = utils.ObjectUtils.resolveFieldData(record, _this4.columnProp(_column, 'field'));
5001
+ for (var _i = 0; _i < _this6.columns.length; _i++) {
5002
+ var _column = _this6.columns[_i];
5003
+ if (_this6.columnProp(_column, 'exportable') !== false && _this6.columnProp(_column, 'field')) {
5004
+ if (rowInitiated) csv += _this6.csvSeparator;else rowInitiated = true;
5005
+ var cellData = utils.ObjectUtils.resolveFieldData(record, _this6.columnProp(_column, 'field'));
4734
5006
  if (cellData != null) {
4735
- if (_this4.exportFunction) {
4736
- cellData = _this4.exportFunction({
5007
+ if (_this6.exportFunction) {
5008
+ cellData = _this6.exportFunction({
4737
5009
  data: cellData,
4738
- field: _this4.columnProp(_column, 'field')
5010
+ field: _this6.columnProp(_column, 'field')
4739
5011
  });
4740
5012
  } else cellData = String(cellData).replace(/"/g, '""');
4741
5013
  } else cellData = '';
@@ -4838,19 +5110,19 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4838
5110
  this.styleElement.innerHTML = innerHTML;
4839
5111
  },
4840
5112
  bindColumnResizeEvents: function bindColumnResizeEvents() {
4841
- var _this5 = this;
5113
+ var _this7 = this;
4842
5114
  if (!this.documentColumnResizeListener) {
4843
5115
  this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
4844
- if (_this5.columnResizing) {
4845
- _this5.onColumnResize(event);
5116
+ if (_this7.columnResizing) {
5117
+ _this7.onColumnResize(event);
4846
5118
  }
4847
5119
  });
4848
5120
  }
4849
5121
  if (!this.documentColumnResizeEndListener) {
4850
5122
  this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
4851
- if (_this5.columnResizing) {
4852
- _this5.columnResizing = false;
4853
- _this5.onColumnResizeEnd();
5123
+ if (_this7.columnResizing) {
5124
+ _this7.columnResizing = false;
5125
+ _this7.onColumnResizeEnd();
4854
5126
  }
4855
5127
  });
4856
5128
  }
@@ -4872,23 +5144,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4872
5144
  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;
4873
5145
  }
4874
5146
  },
4875
- onColumnHeaderDragStart: function onColumnHeaderDragStart(event) {
5147
+ onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
5148
+ var event = e.originalEvent,
5149
+ column = e.column;
4876
5150
  if (this.columnResizing) {
4877
5151
  event.preventDefault();
4878
5152
  return;
4879
5153
  }
4880
5154
  this.colReorderIconWidth = utils.DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
4881
5155
  this.colReorderIconHeight = utils.DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
4882
- this.draggedColumn = this.findParentHeader(event.target);
5156
+ this.draggedColumn = column;
5157
+ this.draggedColumnElement = this.findParentHeader(event.target);
4883
5158
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
4884
5159
  },
4885
- onColumnHeaderDragOver: function onColumnHeaderDragOver(event) {
5160
+ onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
5161
+ var event = e.originalEvent,
5162
+ column = e.column;
4886
5163
  var dropHeader = this.findParentHeader(event.target);
4887
- if (this.reorderableColumns && this.draggedColumn && dropHeader) {
5164
+ if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
4888
5165
  event.preventDefault();
4889
5166
  var containerOffset = utils.DomHandler.getOffset(this.$el);
4890
5167
  var dropHeaderOffset = utils.DomHandler.getOffset(dropHeader);
4891
- if (this.draggedColumn !== dropHeader) {
5168
+ if (this.draggedColumnElement !== dropHeader) {
4892
5169
  var targetLeft = dropHeaderOffset.left - containerOffset.left;
4893
5170
  var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
4894
5171
  this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
@@ -4907,34 +5184,67 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
4907
5184
  }
4908
5185
  }
4909
5186
  },
4910
- onColumnHeaderDragLeave: function onColumnHeaderDragLeave(event) {
4911
- if (this.reorderableColumns && this.draggedColumn) {
5187
+ onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
5188
+ var event = e.originalEvent;
5189
+ if (this.reorderableColumns && this.draggedColumnElement) {
4912
5190
  event.preventDefault();
4913
5191
  this.$refs.reorderIndicatorUp.style.display = 'none';
4914
5192
  this.$refs.reorderIndicatorDown.style.display = 'none';
4915
5193
  }
4916
5194
  },
4917
- onColumnHeaderDrop: function onColumnHeaderDrop(event) {
5195
+ onColumnHeaderDrop: function onColumnHeaderDrop(e) {
5196
+ var _this8 = this;
5197
+ var event = e.originalEvent,
5198
+ column = e.column;
4918
5199
  event.preventDefault();
4919
- if (this.draggedColumn) {
4920
- var dragIndex = utils.DomHandler.index(this.draggedColumn);
5200
+ if (this.draggedColumnElement) {
5201
+ var dragIndex = utils.DomHandler.index(this.draggedColumnElement);
4921
5202
  var dropIndex = utils.DomHandler.index(this.findParentHeader(event.target));
4922
5203
  var allowDrop = dragIndex !== dropIndex;
4923
5204
  if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
4924
5205
  allowDrop = false;
4925
5206
  }
4926
5207
  if (allowDrop) {
4927
- utils.ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);
5208
+ var isSameColumn = function isSameColumn(col1, col2) {
5209
+ 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');
5210
+ };
5211
+ var dragColIndex = this.columns.findIndex(function (child) {
5212
+ return isSameColumn(child, _this8.draggedColumn);
5213
+ });
5214
+ var dropColIndex = this.columns.findIndex(function (child) {
5215
+ return isSameColumn(child, column);
5216
+ });
5217
+ var widths = [];
5218
+ var headers = utils.DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
5219
+ headers.forEach(function (header) {
5220
+ return widths.push(utils.DomHandler.getOuterWidth(header));
5221
+ });
5222
+ var movedItem = widths.find(function (_, index) {
5223
+ return index === dragColIndex;
5224
+ });
5225
+ var remainingItems = widths.filter(function (_, index) {
5226
+ return index !== dragColIndex;
5227
+ });
5228
+ var reorderedWidths = [].concat(_toConsumableArray(remainingItems.slice(0, dropColIndex)), [movedItem], _toConsumableArray(remainingItems.slice(dropColIndex)));
5229
+ this.addColumnWidthStyles(reorderedWidths);
5230
+ if (dropColIndex < dragColIndex && this.dropPosition === 1) {
5231
+ dropColIndex++;
5232
+ }
5233
+ if (dropColIndex > dragColIndex && this.dropPosition === -1) {
5234
+ dropColIndex--;
5235
+ }
5236
+ utils.ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
4928
5237
  this.updateReorderableColumns();
4929
5238
  this.$emit('column-reorder', {
4930
5239
  originalEvent: event,
4931
- dragIndex: dragIndex,
4932
- dropIndex: dropIndex
5240
+ dragIndex: dragColIndex,
5241
+ dropIndex: dropColIndex
4933
5242
  });
4934
5243
  }
4935
5244
  this.$refs.reorderIndicatorUp.style.display = 'none';
4936
5245
  this.$refs.reorderIndicatorDown.style.display = 'none';
4937
- this.draggedColumn.draggable = false;
5246
+ this.draggedColumnElement.draggable = false;
5247
+ this.draggedColumnElement = null;
4938
5248
  this.draggedColumn = null;
4939
5249
  this.dropPosition = null;
4940
5250
  }
@@ -5044,28 +5354,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5044
5354
  event.preventDefault();
5045
5355
  },
5046
5356
  toggleRow: function toggleRow(event) {
5357
+ var _this9 = this;
5358
+ var expanded = event.expanded,
5359
+ rest = _objectWithoutProperties(event, _excluded);
5047
5360
  var rowData = event.data;
5048
- var expanded;
5049
- var expandedRowIndex;
5050
- var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
5361
+ var expandedRows;
5051
5362
  if (this.dataKey) {
5052
- expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
5053
- } else {
5054
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5055
- expanded = expandedRowIndex > -1;
5056
- }
5057
- if (expanded) {
5058
- if (expandedRowIndex == null) {
5059
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5060
- }
5061
- _expandedRows.splice(expandedRowIndex, 1);
5062
- this.$emit('update:expandedRows', _expandedRows);
5063
- this.$emit('row-collapse', event);
5363
+ var value = utils.ObjectUtils.resolveFieldData(rowData, this.dataKey);
5364
+ expandedRows = this.expandedRows ? _objectSpread$1({}, this.expandedRows) : {};
5365
+ expanded ? expandedRows[value] = true : delete expandedRows[value];
5064
5366
  } else {
5065
- _expandedRows.push(rowData);
5066
- this.$emit('update:expandedRows', _expandedRows);
5067
- this.$emit('row-expand', event);
5367
+ expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
5368
+ expanded ? expandedRows.push(rowData) : expandedRows = expandedRows.filter(function (d) {
5369
+ return !_this9.equals(rowData, d);
5370
+ });
5068
5371
  }
5372
+ this.$emit('update:expandedRows', expandedRows);
5373
+ expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
5069
5374
  },
5070
5375
  toggleRowGroup: function toggleRowGroup(e) {
5071
5376
  var event = e.originalEvent;
@@ -5135,7 +5440,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5135
5440
  }
5136
5441
  if (this.expandedRows) {
5137
5442
  state.expandedRows = this.expandedRows;
5138
- state.expandedRowKeys = this.d_expandedRowKeys;
5139
5443
  }
5140
5444
  if (this.expandedRowGroups) {
5141
5445
  state.expandedRowGroups = this.expandedRowGroups;
@@ -5183,7 +5487,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5183
5487
  this.d_columnOrder = restoredState.columnOrder;
5184
5488
  }
5185
5489
  if (restoredState.expandedRows) {
5186
- this.d_expandedRowKeys = restoredState.expandedRowKeys;
5187
5490
  this.$emit('update:expandedRows', restoredState.expandedRows);
5188
5491
  }
5189
5492
  if (restoredState.expandedRowGroups) {
@@ -5207,23 +5510,25 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5207
5510
  state.tableWidth = utils.DomHandler.getOuterWidth(this.$refs.table) + 'px';
5208
5511
  }
5209
5512
  },
5513
+ addColumnWidthStyles: function addColumnWidthStyles(widths) {
5514
+ this.createStyleElement();
5515
+ var innerHTML = '';
5516
+ 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\"]");
5517
+ widths.forEach(function (width, index) {
5518
+ var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
5519
+ 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 ");
5520
+ });
5521
+ this.styleElement.innerHTML = innerHTML;
5522
+ },
5210
5523
  restoreColumnWidths: function restoreColumnWidths() {
5211
5524
  if (this.columnWidthsState) {
5212
5525
  var widths = this.columnWidthsState.split(',');
5213
5526
  if (this.columnResizeMode === 'expand' && this.tableWidthState) {
5214
5527
  this.$refs.table.style.width = this.tableWidthState;
5215
5528
  this.$refs.table.style.minWidth = this.tableWidthState;
5216
- this.$el.style.width = this.tableWidthState;
5217
5529
  }
5218
5530
  if (utils.ObjectUtils.isNotEmpty(widths)) {
5219
- this.createStyleElement();
5220
- var innerHTML = '';
5221
- 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\"]");
5222
- widths.forEach(function (width, index) {
5223
- var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
5224
- 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 ");
5225
- });
5226
- this.styleElement.innerHTML = innerHTML;
5531
+ this.addColumnWidthStyles(widths);
5227
5532
  }
5228
5533
  }
5229
5534
  },
@@ -5294,9 +5599,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5294
5599
  hasGlobalFilter: function hasGlobalFilter() {
5295
5600
  return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
5296
5601
  },
5297
- getChildren: function getChildren() {
5298
- return this.$slots["default"] ? this.$slots["default"]() : null;
5299
- },
5300
5602
  onFilterChange: function onFilterChange(filters) {
5301
5603
  this.d_filters = filters;
5302
5604
  },
@@ -5326,10 +5628,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5326
5628
  return cloned;
5327
5629
  },
5328
5630
  updateReorderableColumns: function updateReorderableColumns() {
5329
- var _this6 = this;
5631
+ var _this10 = this;
5330
5632
  var columnOrder = [];
5331
5633
  this.columns.forEach(function (col) {
5332
- return columnOrder.push(_this6.columnProp(col, 'columnKey') || _this6.columnProp(col, 'field'));
5634
+ return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
5333
5635
  });
5334
5636
  this.d_columnOrder = columnOrder;
5335
5637
  },
@@ -5350,7 +5652,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5350
5652
  var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
5351
5653
  var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
5352
5654
  var gridLinesSelector = ".p-datatable[".concat(this.attributeSelector, "].p-datatable-gridlines > ").concat(tableSelector);
5353
- 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");
5655
+ 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");
5354
5656
  this.responsiveStyleElement.innerHTML = innerHTML;
5355
5657
  }
5356
5658
  },
@@ -5366,22 +5668,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5366
5668
  this.styleElement = null;
5367
5669
  }
5368
5670
  },
5369
- recursiveGetChildren: function recursiveGetChildren(children, results) {
5370
- var _this7 = this;
5371
- if (!results) {
5372
- results = [];
5373
- }
5374
- if (children && children.length) {
5375
- children.forEach(function (child) {
5376
- if (child.children instanceof Array) {
5377
- results.concat(_this7.recursiveGetChildren(child.children, results));
5378
- } else if (child.type.name == 'Column') {
5379
- results.push(child);
5380
- }
5381
- });
5382
- }
5383
- return results;
5384
- },
5385
5671
  dataToRender: function dataToRender(data) {
5386
5672
  var _data = data || this.processedData;
5387
5673
  if (_data && this.paginator) {
@@ -5399,27 +5685,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5399
5685
  },
5400
5686
  computed: {
5401
5687
  columns: function columns() {
5402
- var children = this.getChildren();
5403
- if (!children) {
5404
- return;
5405
- }
5406
- var cols = this.recursiveGetChildren(children, []);
5688
+ var cols = this.d_columns.get(this);
5407
5689
  if (this.reorderableColumns && this.d_columnOrder) {
5408
5690
  var orderedColumns = [];
5409
- var _iterator6 = _createForOfIteratorHelper(this.d_columnOrder),
5410
- _step6;
5691
+ var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
5692
+ _step5;
5411
5693
  try {
5412
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
5413
- var columnKey = _step6.value;
5694
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
5695
+ var columnKey = _step5.value;
5414
5696
  var column = this.findColumnByKey(cols, columnKey);
5415
5697
  if (column && !this.columnProp(column, 'hidden')) {
5416
5698
  orderedColumns.push(column);
5417
5699
  }
5418
5700
  }
5419
5701
  } catch (err) {
5420
- _iterator6.e(err);
5702
+ _iterator5.e(err);
5421
5703
  } finally {
5422
- _iterator6.f();
5704
+ _iterator5.f();
5423
5705
  }
5424
5706
  return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
5425
5707
  return orderedColumns.indexOf(item) < 0;
@@ -5427,52 +5709,30 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5427
5709
  }
5428
5710
  return cols;
5429
5711
  },
5712
+ columnGroups: function columnGroups() {
5713
+ return this.d_columnGroups.get(this);
5714
+ },
5430
5715
  headerColumnGroup: function headerColumnGroup() {
5431
- var children = this.getChildren();
5432
- if (children) {
5433
- var _iterator7 = _createForOfIteratorHelper(children),
5434
- _step7;
5435
- try {
5436
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
5437
- var child = _step7.value;
5438
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
5439
- return child;
5440
- }
5441
- }
5442
- } catch (err) {
5443
- _iterator7.e(err);
5444
- } finally {
5445
- _iterator7.f();
5446
- }
5447
- }
5448
- return null;
5716
+ var _this$columnGroups,
5717
+ _this11 = this;
5718
+ return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
5719
+ return _this11.columnProp(group, 'type') === 'header';
5720
+ });
5449
5721
  },
5450
5722
  footerColumnGroup: function footerColumnGroup() {
5451
- var children = this.getChildren();
5452
- if (children) {
5453
- var _iterator8 = _createForOfIteratorHelper(children),
5454
- _step8;
5455
- try {
5456
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
5457
- var child = _step8.value;
5458
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
5459
- return child;
5460
- }
5461
- }
5462
- } catch (err) {
5463
- _iterator8.e(err);
5464
- } finally {
5465
- _iterator8.f();
5466
- }
5467
- }
5468
- return null;
5723
+ var _this$columnGroups2,
5724
+ _this12 = this;
5725
+ return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
5726
+ return _this12.columnProp(group, 'type') === 'footer';
5727
+ });
5469
5728
  },
5470
5729
  hasFilters: function hasFilters() {
5471
5730
  return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
5472
5731
  },
5473
5732
  processedData: function processedData() {
5733
+ var _this$virtualScroller;
5474
5734
  var data = this.value || [];
5475
- if (!this.lazy) {
5735
+ if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
5476
5736
  if (data && data.length) {
5477
5737
  if (this.hasFilters) {
5478
5738
  data = this.filter(data);
@@ -5506,14 +5766,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5506
5766
  return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
5507
5767
  },
5508
5768
  allRowsSelected: function allRowsSelected() {
5509
- var _this8 = this;
5769
+ var _this13 = this;
5510
5770
  if (this.selectAll !== null) {
5511
5771
  return this.selectAll;
5512
5772
  } else {
5513
5773
  var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
5514
5774
  return utils.ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
5515
- return _this8.selection.some(function (s) {
5516
- return _this8.equals(s, v);
5775
+ return _this13.selection.some(function (s) {
5776
+ return _this13.equals(s, v);
5517
5777
  });
5518
5778
  });
5519
5779
  }
@@ -5544,8 +5804,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5544
5804
  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; }
5545
5805
  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; }
5546
5806
  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; }
5547
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5548
- 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); }
5807
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5808
+ 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); }
5549
5809
  function render(_ctx, _cache, $props, $setup, $data, $options) {
5550
5810
  var _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
5551
5811
  var _component_DTPaginator = vue.resolveComponent("DTPaginator");
@@ -5753,7 +6013,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5753
6013
  expandedRowIcon: _ctx.expandedRowIcon,
5754
6014
  collapsedRowIcon: _ctx.collapsedRowIcon,
5755
6015
  expandedRows: _ctx.expandedRows,
5756
- expandedRowKeys: $data.d_expandedRowKeys,
5757
6016
  expandedRowGroups: _ctx.expandedRowGroups,
5758
6017
  editingRows: _ctx.editingRows,
5759
6018
  editingRowKeys: $data.d_editingRowKeys,
@@ -5819,7 +6078,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5819
6078
  onEditingMetaChange: $options.onEditingMetaChange,
5820
6079
  unstyled: _ctx.unstyled,
5821
6080
  pt: _ctx.pt
5822
- }, 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, {
6081
+ }, 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, {
5823
6082
  ref: "bodyRef",
5824
6083
  value: $options.dataToRender(slotProps.rows),
5825
6084
  "class": vue.normalizeClass(slotProps.styleClass),
@@ -5843,7 +6102,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5843
6102
  expandedRowIcon: _ctx.expandedRowIcon,
5844
6103
  collapsedRowIcon: _ctx.collapsedRowIcon,
5845
6104
  expandedRows: _ctx.expandedRows,
5846
- expandedRowKeys: $data.d_expandedRowKeys,
5847
6105
  expandedRowGroups: _ctx.expandedRowGroups,
5848
6106
  editingRows: _ctx.editingRows,
5849
6107
  editingRowKeys: $data.d_editingRowKeys,
@@ -5912,7 +6170,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5912
6170
  onEditingMetaChange: $options.onEditingMetaChange,
5913
6171
  unstyled: _ctx.unstyled,
5914
6172
  pt: _ctx.pt
5915
- }, 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({
6173
+ }, 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({
5916
6174
  key: 1,
5917
6175
  "class": _ctx.cx('virtualScrollerSpacer'),
5918
6176
  style: {