primevue 3.44.0 → 3.46.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 (752) hide show
  1. package/accordion/Accordion.vue +1 -0
  2. package/accordion/accordion.cjs.js +1 -0
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.esm.js +1 -0
  5. package/accordion/accordion.esm.min.js +1 -1
  6. package/accordion/accordion.js +1 -0
  7. package/accordion/accordion.min.js +1 -1
  8. package/autocomplete/BaseAutoComplete.vue +1 -1
  9. package/autocomplete/autocomplete.cjs.js +1 -1
  10. package/autocomplete/autocomplete.cjs.min.js +1 -1
  11. package/autocomplete/autocomplete.esm.js +1 -1
  12. package/autocomplete/autocomplete.esm.min.js +1 -1
  13. package/autocomplete/autocomplete.js +1 -1
  14. package/autocomplete/autocomplete.min.js +1 -1
  15. package/basecomponent/BaseComponent.vue +1 -1
  16. package/basecomponent/basecomponent.cjs.js +2 -2
  17. package/basecomponent/basecomponent.cjs.min.js +1 -1
  18. package/basecomponent/basecomponent.esm.js +2 -2
  19. package/basecomponent/basecomponent.esm.min.js +1 -1
  20. package/basecomponent/basecomponent.js +2 -2
  21. package/basecomponent/basecomponent.min.js +1 -1
  22. package/basecomponent/style/basecomponentstyle.cjs.js +1 -1
  23. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  24. package/basecomponent/style/basecomponentstyle.esm.js +1 -1
  25. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  26. package/basecomponent/style/basecomponentstyle.js +1 -1
  27. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  28. package/baseicon/BaseIcon.vue +8 -14
  29. package/baseicon/baseicon.cjs.js +10 -15
  30. package/baseicon/baseicon.cjs.min.js +1 -1
  31. package/baseicon/baseicon.esm.js +10 -15
  32. package/baseicon/baseicon.esm.min.js +1 -1
  33. package/baseicon/baseicon.js +10 -15
  34. package/baseicon/baseicon.min.js +1 -1
  35. package/calendar/BaseCalendar.vue +1 -1
  36. package/calendar/Calendar.vue +5 -2
  37. package/calendar/calendar.cjs.js +6 -3
  38. package/calendar/calendar.cjs.min.js +1 -1
  39. package/calendar/calendar.esm.js +6 -3
  40. package/calendar/calendar.esm.min.js +1 -1
  41. package/calendar/calendar.js +6 -3
  42. package/calendar/calendar.min.js +1 -1
  43. package/card/Card.d.ts +4 -0
  44. package/card/Card.vue +7 -5
  45. package/card/card.cjs.js +6 -3
  46. package/card/card.cjs.min.js +1 -1
  47. package/card/card.esm.js +6 -3
  48. package/card/card.esm.min.js +1 -1
  49. package/card/card.js +6 -3
  50. package/card/card.min.js +1 -1
  51. package/card/style/cardstyle.cjs.js +1 -0
  52. package/card/style/cardstyle.cjs.min.js +1 -1
  53. package/card/style/cardstyle.esm.js +1 -0
  54. package/card/style/cardstyle.esm.min.js +1 -1
  55. package/card/style/cardstyle.js +1 -0
  56. package/card/style/cardstyle.min.js +1 -1
  57. package/cascadeselect/BaseCascadeSelect.vue +1 -1
  58. package/cascadeselect/CascadeSelect.d.ts +41 -0
  59. package/cascadeselect/CascadeSelect.vue +1 -0
  60. package/cascadeselect/CascadeSelectSub.vue +18 -5
  61. package/cascadeselect/cascadeselect.cjs.js +20 -6
  62. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  63. package/cascadeselect/cascadeselect.esm.js +20 -6
  64. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  65. package/cascadeselect/cascadeselect.js +20 -6
  66. package/cascadeselect/cascadeselect.min.js +1 -1
  67. package/cascadeselect/style/cascadeselectstyle.cjs.js +1 -1
  68. package/cascadeselect/style/cascadeselectstyle.cjs.min.js +1 -1
  69. package/cascadeselect/style/cascadeselectstyle.esm.js +1 -1
  70. package/cascadeselect/style/cascadeselectstyle.esm.min.js +1 -1
  71. package/cascadeselect/style/cascadeselectstyle.js +1 -1
  72. package/cascadeselect/style/cascadeselectstyle.min.js +1 -1
  73. package/chips/Chips.vue +1 -0
  74. package/chips/chips.cjs.js +1 -0
  75. package/chips/chips.cjs.min.js +1 -1
  76. package/chips/chips.esm.js +1 -0
  77. package/chips/chips.esm.min.js +1 -1
  78. package/chips/chips.js +1 -0
  79. package/chips/chips.min.js +1 -1
  80. package/colorpicker/BaseColorPicker.vue +1 -1
  81. package/colorpicker/ColorPicker.d.ts +1 -1
  82. package/colorpicker/colorpicker.cjs.js +1 -1
  83. package/colorpicker/colorpicker.cjs.min.js +1 -1
  84. package/colorpicker/colorpicker.esm.js +1 -1
  85. package/colorpicker/colorpicker.esm.min.js +1 -1
  86. package/colorpicker/colorpicker.js +1 -1
  87. package/colorpicker/colorpicker.min.js +1 -1
  88. package/column/Column.d.ts +4 -0
  89. package/column/Column.vue +7 -0
  90. package/column/column.cjs.js +9 -0
  91. package/column/column.cjs.min.js +1 -1
  92. package/column/column.esm.js +9 -0
  93. package/column/column.esm.min.js +1 -1
  94. package/column/column.js +9 -0
  95. package/column/column.min.js +1 -1
  96. package/columngroup/ColumnGroup.vue +7 -0
  97. package/columngroup/columngroup.cjs.js +9 -0
  98. package/columngroup/columngroup.cjs.min.js +1 -1
  99. package/columngroup/columngroup.esm.js +9 -0
  100. package/columngroup/columngroup.esm.min.js +1 -1
  101. package/columngroup/columngroup.js +9 -0
  102. package/columngroup/columngroup.min.js +1 -1
  103. package/confirmdialog/ConfirmDialog.d.ts +1 -1
  104. package/confirmdialog/ConfirmDialog.vue +1 -1
  105. package/confirmdialog/confirmdialog.cjs.js +1 -1
  106. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  107. package/confirmdialog/confirmdialog.esm.js +1 -1
  108. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  109. package/confirmdialog/confirmdialog.js +1 -1
  110. package/confirmdialog/confirmdialog.min.js +1 -1
  111. package/confirmdialog/style/confirmdialogstyle.cjs.js +3 -6
  112. package/confirmdialog/style/confirmdialogstyle.cjs.min.js +1 -1
  113. package/confirmdialog/style/confirmdialogstyle.esm.js +3 -6
  114. package/confirmdialog/style/confirmdialogstyle.esm.min.js +1 -1
  115. package/confirmdialog/style/confirmdialogstyle.js +3 -6
  116. package/confirmdialog/style/confirmdialogstyle.min.js +1 -1
  117. package/confirmpopup/ConfirmPopup.vue +3 -3
  118. package/confirmpopup/confirmpopup.cjs.js +3 -3
  119. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  120. package/confirmpopup/confirmpopup.esm.js +3 -3
  121. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  122. package/confirmpopup/confirmpopup.js +3 -3
  123. package/confirmpopup/confirmpopup.min.js +1 -1
  124. package/confirmpopup/style/confirmpopupstyle.cjs.js +5 -8
  125. package/confirmpopup/style/confirmpopupstyle.cjs.min.js +1 -1
  126. package/confirmpopup/style/confirmpopupstyle.esm.js +5 -8
  127. package/confirmpopup/style/confirmpopupstyle.esm.min.js +1 -1
  128. package/confirmpopup/style/confirmpopupstyle.js +5 -8
  129. package/confirmpopup/style/confirmpopupstyle.min.js +1 -1
  130. package/contextmenu/BaseContextMenu.vue +1 -1
  131. package/contextmenu/ContextMenu.vue +1 -0
  132. package/contextmenu/ContextMenuSub.vue +6 -1
  133. package/contextmenu/contextmenu.cjs.js +12 -5
  134. package/contextmenu/contextmenu.cjs.min.js +1 -1
  135. package/contextmenu/contextmenu.esm.js +12 -5
  136. package/contextmenu/contextmenu.esm.min.js +1 -1
  137. package/contextmenu/contextmenu.js +12 -5
  138. package/contextmenu/contextmenu.min.js +1 -1
  139. package/core/core.js +357 -209
  140. package/core/core.min.js +53 -53
  141. package/datatable/BaseDataTable.vue +2 -2
  142. package/datatable/BodyRow.vue +582 -0
  143. package/datatable/ColumnFilter.vue +1 -0
  144. package/datatable/DataTable.d.ts +1 -1
  145. package/datatable/DataTable.vue +111 -132
  146. package/datatable/HeaderCell.vue +10 -7
  147. package/datatable/TableBody.vue +74 -414
  148. package/datatable/TableFooter.vue +19 -26
  149. package/datatable/TableHeader.vue +19 -26
  150. package/datatable/datatable.cjs.js +895 -634
  151. package/datatable/datatable.cjs.min.js +1 -1
  152. package/datatable/datatable.esm.js +896 -635
  153. package/datatable/datatable.esm.min.js +1 -1
  154. package/datatable/datatable.js +895 -634
  155. package/datatable/datatable.min.js +1 -1
  156. package/datatable/style/datatablestyle.cjs.js +5 -4
  157. package/datatable/style/datatablestyle.cjs.min.js +1 -1
  158. package/datatable/style/datatablestyle.esm.js +5 -4
  159. package/datatable/style/datatablestyle.esm.min.js +1 -1
  160. package/datatable/style/datatablestyle.js +5 -4
  161. package/datatable/style/datatablestyle.min.js +1 -1
  162. package/dialog/BaseDialog.vue +1 -1
  163. package/dialog/dialog.cjs.js +1 -1
  164. package/dialog/dialog.cjs.min.js +1 -1
  165. package/dialog/dialog.esm.js +1 -1
  166. package/dialog/dialog.esm.min.js +1 -1
  167. package/dialog/dialog.js +1 -1
  168. package/dialog/dialog.min.js +1 -1
  169. package/dialog/style/dialogstyle.cjs.js +1 -1
  170. package/dialog/style/dialogstyle.cjs.min.js +1 -1
  171. package/dialog/style/dialogstyle.esm.js +1 -1
  172. package/dialog/style/dialogstyle.esm.min.js +1 -1
  173. package/dialog/style/dialogstyle.js +1 -1
  174. package/dialog/style/dialogstyle.min.js +1 -1
  175. package/dock/DockSub.vue +1 -0
  176. package/dock/dock.cjs.js +1 -0
  177. package/dock/dock.cjs.min.js +1 -1
  178. package/dock/dock.esm.js +1 -0
  179. package/dock/dock.esm.min.js +1 -1
  180. package/dock/dock.js +1 -0
  181. package/dock/dock.min.js +1 -1
  182. package/dropdown/BaseDropdown.vue +1 -1
  183. package/dropdown/Dropdown.vue +26 -0
  184. package/dropdown/dropdown.cjs.js +50 -26
  185. package/dropdown/dropdown.cjs.min.js +1 -1
  186. package/dropdown/dropdown.esm.js +50 -26
  187. package/dropdown/dropdown.esm.min.js +1 -1
  188. package/dropdown/dropdown.js +50 -26
  189. package/dropdown/dropdown.min.js +1 -1
  190. package/fieldset/Fieldset.vue +1 -1
  191. package/fieldset/fieldset.cjs.js +1 -1
  192. package/fieldset/fieldset.cjs.min.js +1 -1
  193. package/fieldset/fieldset.esm.js +1 -1
  194. package/fieldset/fieldset.esm.min.js +1 -1
  195. package/fieldset/fieldset.js +1 -1
  196. package/fieldset/fieldset.min.js +1 -1
  197. package/galleria/GalleriaItem.vue +1 -0
  198. package/galleria/GalleriaThumbnails.vue +1 -1
  199. package/galleria/galleria.cjs.js +2 -1
  200. package/galleria/galleria.cjs.min.js +1 -1
  201. package/galleria/galleria.esm.js +2 -1
  202. package/galleria/galleria.esm.min.js +1 -1
  203. package/galleria/galleria.js +2 -1
  204. package/galleria/galleria.min.js +1 -1
  205. package/icons/arrowdown/index.cjs.js +2 -2
  206. package/icons/arrowdown/index.cjs.min.js +1 -1
  207. package/icons/arrowdown/index.esm.js +2 -2
  208. package/icons/arrowdown/index.esm.min.js +1 -1
  209. package/icons/arrowdown/index.js +2 -2
  210. package/icons/arrowdown/index.min.js +1 -1
  211. package/icons/arrowdown/index.vue +1 -1
  212. package/icons/arrowup/index.cjs.js +2 -2
  213. package/icons/arrowup/index.cjs.min.js +1 -1
  214. package/icons/arrowup/index.esm.js +2 -2
  215. package/icons/arrowup/index.esm.min.js +1 -1
  216. package/icons/arrowup/index.js +2 -2
  217. package/icons/arrowup/index.min.js +1 -1
  218. package/icons/arrowup/index.vue +1 -1
  219. package/icons/ban/index.cjs.js +2 -2
  220. package/icons/ban/index.cjs.min.js +1 -1
  221. package/icons/ban/index.esm.js +2 -2
  222. package/icons/ban/index.esm.min.js +1 -1
  223. package/icons/ban/index.js +2 -2
  224. package/icons/ban/index.min.js +1 -1
  225. package/icons/ban/index.vue +1 -1
  226. package/icons/exclamationtriangle/index.cjs.js +2 -2
  227. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  228. package/icons/exclamationtriangle/index.esm.js +2 -2
  229. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  230. package/icons/exclamationtriangle/index.js +2 -2
  231. package/icons/exclamationtriangle/index.min.js +1 -1
  232. package/icons/exclamationtriangle/index.vue +1 -1
  233. package/icons/eyeslash/index.cjs.js +2 -2
  234. package/icons/eyeslash/index.cjs.min.js +1 -1
  235. package/icons/eyeslash/index.esm.js +2 -2
  236. package/icons/eyeslash/index.esm.min.js +1 -1
  237. package/icons/eyeslash/index.js +2 -2
  238. package/icons/eyeslash/index.min.js +1 -1
  239. package/icons/eyeslash/index.vue +1 -1
  240. package/icons/filter/index.cjs.js +2 -2
  241. package/icons/filter/index.cjs.min.js +1 -1
  242. package/icons/filter/index.esm.js +2 -2
  243. package/icons/filter/index.esm.min.js +1 -1
  244. package/icons/filter/index.js +2 -2
  245. package/icons/filter/index.min.js +1 -1
  246. package/icons/filter/index.vue +1 -1
  247. package/icons/filterslash/index.cjs.js +2 -2
  248. package/icons/filterslash/index.cjs.min.js +1 -1
  249. package/icons/filterslash/index.esm.js +2 -2
  250. package/icons/filterslash/index.esm.min.js +1 -1
  251. package/icons/filterslash/index.js +2 -2
  252. package/icons/filterslash/index.min.js +1 -1
  253. package/icons/filterslash/index.vue +1 -1
  254. package/icons/infocircle/index.cjs.js +2 -2
  255. package/icons/infocircle/index.cjs.min.js +1 -1
  256. package/icons/infocircle/index.esm.js +2 -2
  257. package/icons/infocircle/index.esm.min.js +1 -1
  258. package/icons/infocircle/index.js +2 -2
  259. package/icons/infocircle/index.min.js +1 -1
  260. package/icons/infocircle/index.vue +1 -1
  261. package/icons/pencil/index.cjs.js +2 -2
  262. package/icons/pencil/index.cjs.min.js +1 -1
  263. package/icons/pencil/index.esm.js +2 -2
  264. package/icons/pencil/index.esm.min.js +1 -1
  265. package/icons/pencil/index.js +2 -2
  266. package/icons/pencil/index.min.js +1 -1
  267. package/icons/pencil/index.vue +1 -1
  268. package/icons/plus/index.cjs.js +2 -2
  269. package/icons/plus/index.cjs.min.js +1 -1
  270. package/icons/plus/index.esm.js +2 -2
  271. package/icons/plus/index.esm.min.js +1 -1
  272. package/icons/plus/index.js +2 -2
  273. package/icons/plus/index.min.js +1 -1
  274. package/icons/plus/index.vue +1 -1
  275. package/icons/refresh/index.cjs.js +2 -2
  276. package/icons/refresh/index.cjs.min.js +1 -1
  277. package/icons/refresh/index.esm.js +2 -2
  278. package/icons/refresh/index.esm.min.js +1 -1
  279. package/icons/refresh/index.js +2 -2
  280. package/icons/refresh/index.min.js +1 -1
  281. package/icons/refresh/index.vue +1 -1
  282. package/icons/search/index.cjs.js +2 -2
  283. package/icons/search/index.cjs.min.js +1 -1
  284. package/icons/search/index.esm.js +2 -2
  285. package/icons/search/index.esm.min.js +1 -1
  286. package/icons/search/index.js +2 -2
  287. package/icons/search/index.min.js +1 -1
  288. package/icons/search/index.vue +1 -1
  289. package/icons/searchminus/index.cjs.js +2 -2
  290. package/icons/searchminus/index.cjs.min.js +1 -1
  291. package/icons/searchminus/index.esm.js +2 -2
  292. package/icons/searchminus/index.esm.min.js +1 -1
  293. package/icons/searchminus/index.js +2 -2
  294. package/icons/searchminus/index.min.js +1 -1
  295. package/icons/searchminus/index.vue +1 -1
  296. package/icons/searchplus/index.cjs.js +2 -2
  297. package/icons/searchplus/index.cjs.min.js +1 -1
  298. package/icons/searchplus/index.esm.js +2 -2
  299. package/icons/searchplus/index.esm.min.js +1 -1
  300. package/icons/searchplus/index.js +2 -2
  301. package/icons/searchplus/index.min.js +1 -1
  302. package/icons/searchplus/index.vue +1 -1
  303. package/icons/sortalt/index.cjs.js +2 -2
  304. package/icons/sortalt/index.cjs.min.js +1 -1
  305. package/icons/sortalt/index.esm.js +2 -2
  306. package/icons/sortalt/index.esm.min.js +1 -1
  307. package/icons/sortalt/index.js +2 -2
  308. package/icons/sortalt/index.min.js +1 -1
  309. package/icons/sortalt/index.vue +1 -1
  310. package/icons/sortamountdown/index.cjs.js +12 -9
  311. package/icons/sortamountdown/index.cjs.min.js +1 -1
  312. package/icons/sortamountdown/index.esm.js +13 -10
  313. package/icons/sortamountdown/index.esm.min.js +1 -1
  314. package/icons/sortamountdown/index.js +12 -9
  315. package/icons/sortamountdown/index.min.js +1 -1
  316. package/icons/sortamountdown/index.vue +2 -22
  317. package/icons/sortamountupalt/index.cjs.js +12 -9
  318. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  319. package/icons/sortamountupalt/index.esm.js +13 -10
  320. package/icons/sortamountupalt/index.esm.min.js +1 -1
  321. package/icons/sortamountupalt/index.js +12 -9
  322. package/icons/sortamountupalt/index.min.js +1 -1
  323. package/icons/sortamountupalt/index.vue +2 -22
  324. package/icons/spinner/index.cjs.js +2 -2
  325. package/icons/spinner/index.cjs.min.js +1 -1
  326. package/icons/spinner/index.esm.js +2 -2
  327. package/icons/spinner/index.esm.min.js +1 -1
  328. package/icons/spinner/index.js +2 -2
  329. package/icons/spinner/index.min.js +1 -1
  330. package/icons/spinner/index.vue +1 -1
  331. package/icons/star/index.cjs.js +2 -2
  332. package/icons/star/index.cjs.min.js +1 -1
  333. package/icons/star/index.esm.js +2 -2
  334. package/icons/star/index.esm.min.js +1 -1
  335. package/icons/star/index.js +2 -2
  336. package/icons/star/index.min.js +1 -1
  337. package/icons/star/index.vue +1 -1
  338. package/icons/starfill/index.cjs.js +2 -2
  339. package/icons/starfill/index.cjs.min.js +1 -1
  340. package/icons/starfill/index.esm.js +2 -2
  341. package/icons/starfill/index.esm.min.js +1 -1
  342. package/icons/starfill/index.js +2 -2
  343. package/icons/starfill/index.min.js +1 -1
  344. package/icons/starfill/index.vue +1 -1
  345. package/icons/thlarge/index.cjs.js +2 -2
  346. package/icons/thlarge/index.cjs.min.js +1 -1
  347. package/icons/thlarge/index.esm.js +2 -2
  348. package/icons/thlarge/index.esm.min.js +1 -1
  349. package/icons/thlarge/index.js +2 -2
  350. package/icons/thlarge/index.min.js +1 -1
  351. package/icons/thlarge/index.vue +1 -1
  352. package/icons/timescircle/index.cjs.js +2 -2
  353. package/icons/timescircle/index.cjs.min.js +1 -1
  354. package/icons/timescircle/index.esm.js +2 -2
  355. package/icons/timescircle/index.esm.min.js +1 -1
  356. package/icons/timescircle/index.js +2 -2
  357. package/icons/timescircle/index.min.js +1 -1
  358. package/icons/timescircle/index.vue +1 -1
  359. package/icons/trash/index.cjs.js +2 -2
  360. package/icons/trash/index.cjs.min.js +1 -1
  361. package/icons/trash/index.esm.js +2 -2
  362. package/icons/trash/index.esm.min.js +1 -1
  363. package/icons/trash/index.js +2 -2
  364. package/icons/trash/index.min.js +1 -1
  365. package/icons/trash/index.vue +1 -1
  366. package/icons/undo/index.cjs.js +2 -2
  367. package/icons/undo/index.cjs.min.js +1 -1
  368. package/icons/undo/index.esm.js +2 -2
  369. package/icons/undo/index.esm.min.js +1 -1
  370. package/icons/undo/index.js +2 -2
  371. package/icons/undo/index.min.js +1 -1
  372. package/icons/undo/index.vue +1 -1
  373. package/icons/upload/index.cjs.js +2 -2
  374. package/icons/upload/index.cjs.min.js +1 -1
  375. package/icons/upload/index.esm.js +2 -2
  376. package/icons/upload/index.esm.min.js +1 -1
  377. package/icons/upload/index.js +2 -2
  378. package/icons/upload/index.min.js +1 -1
  379. package/icons/upload/index.vue +1 -1
  380. package/icons/windowmaximize/index.cjs.js +2 -2
  381. package/icons/windowmaximize/index.cjs.min.js +1 -1
  382. package/icons/windowmaximize/index.esm.js +2 -2
  383. package/icons/windowmaximize/index.esm.min.js +1 -1
  384. package/icons/windowmaximize/index.js +2 -2
  385. package/icons/windowmaximize/index.min.js +1 -1
  386. package/icons/windowmaximize/index.vue +1 -1
  387. package/icons/windowminimize/index.cjs.js +2 -2
  388. package/icons/windowminimize/index.cjs.min.js +1 -1
  389. package/icons/windowminimize/index.esm.js +2 -2
  390. package/icons/windowminimize/index.esm.min.js +1 -1
  391. package/icons/windowminimize/index.js +2 -2
  392. package/icons/windowminimize/index.min.js +1 -1
  393. package/icons/windowminimize/index.vue +1 -1
  394. package/image/Image.vue +2 -6
  395. package/image/image.cjs.js +2 -5
  396. package/image/image.cjs.min.js +1 -1
  397. package/image/image.esm.js +2 -5
  398. package/image/image.esm.min.js +1 -1
  399. package/image/image.js +2 -5
  400. package/image/image.min.js +1 -1
  401. package/image/style/imagestyle.cjs.js +1 -1
  402. package/image/style/imagestyle.cjs.min.js +1 -1
  403. package/image/style/imagestyle.esm.js +1 -1
  404. package/image/style/imagestyle.esm.min.js +1 -1
  405. package/image/style/imagestyle.js +1 -1
  406. package/image/style/imagestyle.min.js +1 -1
  407. package/inputnumber/BaseInputNumber.vue +7 -0
  408. package/inputnumber/InputNumber.d.ts +7 -0
  409. package/inputnumber/InputNumber.vue +8 -3
  410. package/inputnumber/inputnumber.cjs.js +16 -3
  411. package/inputnumber/inputnumber.cjs.min.js +1 -1
  412. package/inputnumber/inputnumber.esm.js +16 -3
  413. package/inputnumber/inputnumber.esm.min.js +1 -1
  414. package/inputnumber/inputnumber.js +16 -3
  415. package/inputnumber/inputnumber.min.js +1 -1
  416. package/knob/Knob.vue +1 -1
  417. package/knob/knob.cjs.js +1 -1
  418. package/knob/knob.cjs.min.js +1 -1
  419. package/knob/knob.esm.js +1 -1
  420. package/knob/knob.esm.min.js +1 -1
  421. package/knob/knob.js +1 -1
  422. package/knob/knob.min.js +1 -1
  423. package/listbox/BaseListbox.vue +1 -1
  424. package/listbox/Listbox.d.ts +1 -1
  425. package/listbox/Listbox.vue +2 -0
  426. package/listbox/listbox.cjs.js +3 -1
  427. package/listbox/listbox.cjs.min.js +1 -1
  428. package/listbox/listbox.esm.js +3 -1
  429. package/listbox/listbox.esm.min.js +1 -1
  430. package/listbox/listbox.js +3 -1
  431. package/listbox/listbox.min.js +1 -1
  432. package/megamenu/MegaMenu.vue +2 -1
  433. package/megamenu/megamenu.cjs.js +2 -1
  434. package/megamenu/megamenu.cjs.min.js +1 -1
  435. package/megamenu/megamenu.esm.js +2 -1
  436. package/megamenu/megamenu.esm.min.js +1 -1
  437. package/megamenu/megamenu.js +2 -1
  438. package/megamenu/megamenu.min.js +1 -1
  439. package/menu/BaseMenu.vue +1 -1
  440. package/menu/Menu.vue +1 -0
  441. package/menu/menu.cjs.js +2 -1
  442. package/menu/menu.cjs.min.js +1 -1
  443. package/menu/menu.esm.js +2 -1
  444. package/menu/menu.esm.min.js +1 -1
  445. package/menu/menu.js +2 -1
  446. package/menu/menu.min.js +1 -1
  447. package/menubar/Menubar.vue +4 -2
  448. package/menubar/MenubarSub.vue +5 -1
  449. package/menubar/menubar.cjs.js +12 -5
  450. package/menubar/menubar.cjs.min.js +1 -1
  451. package/menubar/menubar.esm.js +12 -5
  452. package/menubar/menubar.esm.min.js +1 -1
  453. package/menubar/menubar.js +12 -5
  454. package/menubar/menubar.min.js +1 -1
  455. package/menuitem/MenuItem.d.ts +0 -6
  456. package/message/style/messagestyle.cjs.js +1 -1
  457. package/message/style/messagestyle.cjs.min.js +1 -1
  458. package/message/style/messagestyle.esm.js +1 -1
  459. package/message/style/messagestyle.esm.min.js +1 -1
  460. package/message/style/messagestyle.js +1 -1
  461. package/message/style/messagestyle.min.js +1 -1
  462. package/multiselect/BaseMultiSelect.vue +1 -1
  463. package/multiselect/MultiSelect.vue +2 -0
  464. package/multiselect/multiselect.cjs.js +3 -1
  465. package/multiselect/multiselect.cjs.min.js +1 -1
  466. package/multiselect/multiselect.esm.js +3 -1
  467. package/multiselect/multiselect.esm.min.js +1 -1
  468. package/multiselect/multiselect.js +3 -1
  469. package/multiselect/multiselect.min.js +1 -1
  470. package/orderlist/BaseOrderList.vue +1 -1
  471. package/orderlist/OrderList.d.ts +1 -1
  472. package/orderlist/OrderList.vue +1 -0
  473. package/orderlist/orderlist.cjs.js +2 -1
  474. package/orderlist/orderlist.cjs.min.js +1 -1
  475. package/orderlist/orderlist.esm.js +2 -1
  476. package/orderlist/orderlist.esm.min.js +1 -1
  477. package/orderlist/orderlist.js +2 -1
  478. package/orderlist/orderlist.min.js +1 -1
  479. package/organizationchart/OrganizationChartNode.vue +1 -1
  480. package/organizationchart/organizationchart.cjs.js +1 -1
  481. package/organizationchart/organizationchart.cjs.min.js +1 -1
  482. package/organizationchart/organizationchart.esm.js +1 -1
  483. package/organizationchart/organizationchart.esm.min.js +1 -1
  484. package/organizationchart/organizationchart.js +1 -1
  485. package/organizationchart/organizationchart.min.js +1 -1
  486. package/overlaypanel/BaseOverlayPanel.vue +1 -1
  487. package/overlaypanel/overlaypanel.cjs.js +1 -1
  488. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  489. package/overlaypanel/overlaypanel.esm.js +1 -1
  490. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  491. package/overlaypanel/overlaypanel.js +1 -1
  492. package/overlaypanel/overlaypanel.min.js +1 -1
  493. package/package.json +1 -1
  494. package/paginator/Paginator.vue +4 -4
  495. package/paginator/paginator.cjs.js +2 -2
  496. package/paginator/paginator.cjs.min.js +1 -1
  497. package/paginator/paginator.esm.js +2 -2
  498. package/paginator/paginator.esm.min.js +1 -1
  499. package/paginator/paginator.js +2 -2
  500. package/paginator/paginator.min.js +1 -1
  501. package/panel/Panel.vue +1 -1
  502. package/panel/panel.cjs.js +1 -1
  503. package/panel/panel.cjs.min.js +1 -1
  504. package/panel/panel.esm.js +1 -1
  505. package/panel/panel.esm.min.js +1 -1
  506. package/panel/panel.js +1 -1
  507. package/panel/panel.min.js +1 -1
  508. package/panelmenu/PanelMenu.vue +1 -0
  509. package/panelmenu/PanelMenuList.vue +1 -0
  510. package/panelmenu/panelmenu.cjs.js +2 -0
  511. package/panelmenu/panelmenu.cjs.min.js +1 -1
  512. package/panelmenu/panelmenu.esm.js +2 -0
  513. package/panelmenu/panelmenu.esm.min.js +1 -1
  514. package/panelmenu/panelmenu.js +2 -0
  515. package/panelmenu/panelmenu.min.js +1 -1
  516. package/password/BasePassword.vue +1 -1
  517. package/password/password.cjs.js +1 -1
  518. package/password/password.cjs.min.js +1 -1
  519. package/password/password.esm.js +1 -1
  520. package/password/password.esm.min.js +1 -1
  521. package/password/password.js +1 -1
  522. package/password/password.min.js +1 -1
  523. package/picklist/BasePickList.vue +1 -1
  524. package/picklist/PickList.d.ts +1 -1
  525. package/picklist/PickList.vue +2 -1
  526. package/picklist/picklist.cjs.js +3 -2
  527. package/picklist/picklist.cjs.min.js +1 -1
  528. package/picklist/picklist.esm.js +3 -2
  529. package/picklist/picklist.esm.min.js +1 -1
  530. package/picklist/picklist.js +3 -2
  531. package/picklist/picklist.min.js +1 -1
  532. package/picklist/style/pickliststyle.cjs.js +1 -1
  533. package/picklist/style/pickliststyle.cjs.min.js +1 -1
  534. package/picklist/style/pickliststyle.esm.js +1 -1
  535. package/picklist/style/pickliststyle.esm.min.js +1 -1
  536. package/picklist/style/pickliststyle.js +1 -1
  537. package/picklist/style/pickliststyle.min.js +1 -1
  538. package/portal/Portal.vue +1 -1
  539. package/portal/portal.cjs.js +1 -1
  540. package/portal/portal.cjs.min.js +1 -1
  541. package/portal/portal.esm.js +1 -1
  542. package/portal/portal.esm.min.js +1 -1
  543. package/portal/portal.js +1 -1
  544. package/portal/portal.min.js +1 -1
  545. package/resources/themes/arya-blue/theme.css +4 -4
  546. package/resources/themes/arya-green/theme.css +4 -4
  547. package/resources/themes/arya-orange/theme.css +4 -4
  548. package/resources/themes/arya-purple/theme.css +4 -4
  549. package/resources/themes/bootstrap4-dark-blue/theme.css +4 -4
  550. package/resources/themes/bootstrap4-dark-purple/theme.css +4 -4
  551. package/resources/themes/bootstrap4-light-blue/theme.css +4 -4
  552. package/resources/themes/bootstrap4-light-purple/theme.css +4 -4
  553. package/resources/themes/fluent-light/theme.css +4 -4
  554. package/resources/themes/lara-dark-amber/theme.css +4 -4
  555. package/resources/themes/lara-dark-blue/theme.css +4 -4
  556. package/resources/themes/lara-dark-cyan/theme.css +4 -4
  557. package/resources/themes/lara-dark-green/theme.css +4 -4
  558. package/resources/themes/lara-dark-indigo/theme.css +4 -4
  559. package/resources/themes/lara-dark-pink/theme.css +4 -4
  560. package/resources/themes/lara-dark-purple/theme.css +4 -4
  561. package/resources/themes/lara-dark-teal/theme.css +4 -4
  562. package/resources/themes/lara-light-amber/theme.css +4 -4
  563. package/resources/themes/lara-light-blue/theme.css +4 -4
  564. package/resources/themes/lara-light-cyan/theme.css +4 -4
  565. package/resources/themes/lara-light-green/theme.css +4 -4
  566. package/resources/themes/lara-light-indigo/theme.css +4 -4
  567. package/resources/themes/lara-light-pink/theme.css +4 -4
  568. package/resources/themes/lara-light-purple/theme.css +4 -4
  569. package/resources/themes/lara-light-teal/theme.css +44 -44
  570. package/resources/themes/luna-amber/theme.css +4 -4
  571. package/resources/themes/luna-blue/theme.css +4 -4
  572. package/resources/themes/luna-green/theme.css +4 -4
  573. package/resources/themes/luna-pink/theme.css +4 -4
  574. package/resources/themes/md-dark-deeppurple/theme.css +4 -4
  575. package/resources/themes/md-dark-indigo/theme.css +4 -4
  576. package/resources/themes/md-light-deeppurple/theme.css +4 -4
  577. package/resources/themes/md-light-indigo/theme.css +4 -4
  578. package/resources/themes/mdc-dark-deeppurple/theme.css +4 -4
  579. package/resources/themes/mdc-dark-indigo/theme.css +4 -4
  580. package/resources/themes/mdc-light-deeppurple/theme.css +4 -4
  581. package/resources/themes/mdc-light-indigo/theme.css +4 -4
  582. package/resources/themes/mira/theme.css +4 -4
  583. package/resources/themes/nano/theme.css +4 -4
  584. package/resources/themes/nova/theme.css +4 -4
  585. package/resources/themes/nova-accent/theme.css +4 -4
  586. package/resources/themes/nova-alt/theme.css +4 -4
  587. package/resources/themes/nova-vue/theme.css +4 -4
  588. package/resources/themes/rhea/theme.css +4 -4
  589. package/resources/themes/saga-blue/theme.css +4 -4
  590. package/resources/themes/saga-green/theme.css +4 -4
  591. package/resources/themes/saga-orange/theme.css +4 -4
  592. package/resources/themes/saga-purple/theme.css +4 -4
  593. package/resources/themes/soho-dark/theme.css +4 -4
  594. package/resources/themes/soho-light/theme.css +4 -4
  595. package/resources/themes/tailwind-light/theme.css +4 -4
  596. package/resources/themes/vela-blue/theme.css +4 -4
  597. package/resources/themes/vela-green/theme.css +4 -4
  598. package/resources/themes/vela-orange/theme.css +4 -4
  599. package/resources/themes/vela-purple/theme.css +4 -4
  600. package/resources/themes/viva-dark/theme.css +4 -4
  601. package/resources/themes/viva-light/theme.css +4 -4
  602. package/ripple/style/ripplestyle.cjs.js +1 -1
  603. package/ripple/style/ripplestyle.cjs.min.js +1 -1
  604. package/ripple/style/ripplestyle.esm.js +1 -1
  605. package/ripple/style/ripplestyle.esm.min.js +1 -1
  606. package/ripple/style/ripplestyle.js +1 -1
  607. package/ripple/style/ripplestyle.min.js +1 -1
  608. package/row/Row.vue +7 -0
  609. package/row/row.cjs.js +9 -0
  610. package/row/row.cjs.min.js +1 -1
  611. package/row/row.esm.js +9 -0
  612. package/row/row.esm.min.js +1 -1
  613. package/row/row.js +9 -0
  614. package/row/row.min.js +1 -1
  615. package/sidebar/Sidebar.vue +16 -1
  616. package/sidebar/sidebar.cjs.js +17 -5
  617. package/sidebar/sidebar.cjs.min.js +1 -1
  618. package/sidebar/sidebar.esm.js +17 -5
  619. package/sidebar/sidebar.esm.min.js +1 -1
  620. package/sidebar/sidebar.js +17 -5
  621. package/sidebar/sidebar.min.js +1 -1
  622. package/slider/Slider.vue +26 -19
  623. package/slider/slider.cjs.js +19 -11
  624. package/slider/slider.cjs.min.js +1 -1
  625. package/slider/slider.esm.js +19 -11
  626. package/slider/slider.esm.min.js +1 -1
  627. package/slider/slider.js +19 -11
  628. package/slider/slider.min.js +1 -1
  629. package/speeddial/SpeedDial.vue +1 -0
  630. package/speeddial/speeddial.cjs.js +1 -0
  631. package/speeddial/speeddial.cjs.min.js +1 -1
  632. package/speeddial/speeddial.esm.js +1 -0
  633. package/speeddial/speeddial.esm.min.js +1 -1
  634. package/speeddial/speeddial.js +1 -0
  635. package/speeddial/speeddial.min.js +1 -1
  636. package/splitbutton/BaseSplitButton.vue +1 -1
  637. package/splitbutton/splitbutton.cjs.js +1 -1
  638. package/splitbutton/splitbutton.cjs.min.js +1 -1
  639. package/splitbutton/splitbutton.esm.js +1 -1
  640. package/splitbutton/splitbutton.esm.min.js +1 -1
  641. package/splitbutton/splitbutton.js +1 -1
  642. package/splitbutton/splitbutton.min.js +1 -1
  643. package/steps/Steps.vue +3 -1
  644. package/steps/steps.cjs.js +4 -2
  645. package/steps/steps.cjs.min.js +1 -1
  646. package/steps/steps.esm.js +4 -2
  647. package/steps/steps.esm.min.js +1 -1
  648. package/steps/steps.js +4 -2
  649. package/steps/steps.min.js +1 -1
  650. package/tabmenu/TabMenu.vue +1 -0
  651. package/tabmenu/tabmenu.cjs.js +1 -0
  652. package/tabmenu/tabmenu.cjs.min.js +1 -1
  653. package/tabmenu/tabmenu.esm.js +1 -0
  654. package/tabmenu/tabmenu.esm.min.js +1 -1
  655. package/tabmenu/tabmenu.js +1 -0
  656. package/tabmenu/tabmenu.min.js +1 -1
  657. package/tabview/TabView.vue +1 -0
  658. package/tabview/tabview.cjs.js +1 -0
  659. package/tabview/tabview.cjs.min.js +1 -1
  660. package/tabview/tabview.esm.js +1 -0
  661. package/tabview/tabview.esm.min.js +1 -1
  662. package/tabview/tabview.js +1 -0
  663. package/tabview/tabview.min.js +1 -1
  664. package/terminal/Terminal.vue +1 -1
  665. package/terminal/terminal.cjs.js +1 -1
  666. package/terminal/terminal.cjs.min.js +1 -1
  667. package/terminal/terminal.esm.js +1 -1
  668. package/terminal/terminal.esm.min.js +1 -1
  669. package/terminal/terminal.js +1 -1
  670. package/terminal/terminal.min.js +1 -1
  671. package/tieredmenu/BaseTieredMenu.vue +1 -1
  672. package/tieredmenu/TieredMenu.d.ts +4 -0
  673. package/tieredmenu/TieredMenu.vue +1 -0
  674. package/tieredmenu/TieredMenuSub.vue +5 -1
  675. package/tieredmenu/tieredmenu.cjs.js +11 -4
  676. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  677. package/tieredmenu/tieredmenu.esm.js +11 -4
  678. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  679. package/tieredmenu/tieredmenu.js +11 -4
  680. package/tieredmenu/tieredmenu.min.js +1 -1
  681. package/tooltip/style/tooltipstyle.cjs.js +1 -1
  682. package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
  683. package/tooltip/style/tooltipstyle.esm.js +1 -1
  684. package/tooltip/style/tooltipstyle.esm.min.js +1 -1
  685. package/tooltip/style/tooltipstyle.js +1 -1
  686. package/tooltip/style/tooltipstyle.min.js +1 -1
  687. package/tree/BaseTree.vue +1 -1
  688. package/tree/Tree.d.ts +1 -1
  689. package/tree/Tree.vue +1 -1
  690. package/tree/TreeNode.vue +1 -0
  691. package/tree/tree.cjs.js +3 -2
  692. package/tree/tree.cjs.min.js +1 -1
  693. package/tree/tree.esm.js +3 -2
  694. package/tree/tree.esm.min.js +1 -1
  695. package/tree/tree.js +3 -2
  696. package/tree/tree.min.js +1 -1
  697. package/treeselect/BaseTreeSelect.vue +2 -2
  698. package/treeselect/TreeSelect.d.ts +1 -1
  699. package/treeselect/TreeSelect.vue +1 -4
  700. package/treeselect/treeselect.cjs.js +3 -6
  701. package/treeselect/treeselect.cjs.min.js +1 -1
  702. package/treeselect/treeselect.esm.js +3 -6
  703. package/treeselect/treeselect.esm.min.js +1 -1
  704. package/treeselect/treeselect.js +3 -6
  705. package/treeselect/treeselect.min.js +1 -1
  706. package/treetable/BaseTreeTable.vue +5 -1
  707. package/treetable/HeaderCell.vue +1 -1
  708. package/treetable/TreeTable.d.ts +6 -1
  709. package/treetable/TreeTable.vue +32 -24
  710. package/treetable/TreeTableRow.vue +32 -20
  711. package/treetable/style/treetablestyle.cjs.js +1 -1
  712. package/treetable/style/treetablestyle.cjs.min.js +1 -1
  713. package/treetable/style/treetablestyle.esm.js +1 -1
  714. package/treetable/style/treetablestyle.esm.min.js +1 -1
  715. package/treetable/style/treetablestyle.js +1 -1
  716. package/treetable/style/treetablestyle.min.js +1 -1
  717. package/treetable/treetable.cjs.js +70 -43
  718. package/treetable/treetable.cjs.min.js +1 -1
  719. package/treetable/treetable.esm.js +71 -44
  720. package/treetable/treetable.esm.min.js +1 -1
  721. package/treetable/treetable.js +70 -43
  722. package/treetable/treetable.min.js +1 -1
  723. package/tristatecheckbox/TriStateCheckbox.vue +1 -1
  724. package/tristatecheckbox/tristatecheckbox.cjs.js +1 -1
  725. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  726. package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
  727. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  728. package/tristatecheckbox/tristatecheckbox.js +1 -1
  729. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  730. package/utils/Utils.d.ts +9 -0
  731. package/utils/utils.cjs.js +142 -41
  732. package/utils/utils.cjs.min.js +1 -1
  733. package/utils/utils.esm.js +142 -42
  734. package/utils/utils.esm.min.js +1 -1
  735. package/utils/utils.js +142 -41
  736. package/utils/utils.min.js +1 -1
  737. package/vetur-attributes.json +4 -0
  738. package/vetur-tags.json +1 -0
  739. package/virtualscroller/VirtualScroller.vue +19 -15
  740. package/virtualscroller/style/virtualscrollerstyle.cjs.js +1 -1
  741. package/virtualscroller/style/virtualscrollerstyle.cjs.min.js +1 -1
  742. package/virtualscroller/style/virtualscrollerstyle.esm.js +1 -1
  743. package/virtualscroller/style/virtualscrollerstyle.esm.min.js +1 -1
  744. package/virtualscroller/style/virtualscrollerstyle.js +1 -1
  745. package/virtualscroller/style/virtualscrollerstyle.min.js +1 -1
  746. package/virtualscroller/virtualscroller.cjs.js +19 -15
  747. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  748. package/virtualscroller/virtualscroller.esm.js +19 -15
  749. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  750. package/virtualscroller/virtualscroller.js +19 -15
  751. package/virtualscroller/virtualscroller.min.js +1 -1
  752. package/web-types.json +11 -1
@@ -59,7 +59,7 @@ var SortAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAltIcon);
59
59
  var SortAmountDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountDownIcon);
60
60
  var SortAmountUpAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountUpAltIcon);
61
61
 
62
- var script$b = {
62
+ var script$c = {
63
63
  name: 'BaseDataTable',
64
64
  "extends": BaseComponent__default["default"],
65
65
  props: {
@@ -181,7 +181,7 @@ var script$b = {
181
181
  },
182
182
  metaKeySelection: {
183
183
  type: Boolean,
184
- "default": true
184
+ "default": false
185
185
  },
186
186
  contextMenu: {
187
187
  type: Boolean,
@@ -224,7 +224,7 @@ var script$b = {
224
224
  "default": false
225
225
  },
226
226
  expandedRows: {
227
- type: Array,
227
+ type: [Array, Object],
228
228
  "default": null
229
229
  },
230
230
  expandedRowIcon: {
@@ -336,7 +336,7 @@ var script$b = {
336
336
  }
337
337
  };
338
338
 
339
- var script$a = {
339
+ var script$b = {
340
340
  name: 'RowCheckbox',
341
341
  hostName: 'DataTable',
342
342
  "extends": BaseComponent__default["default"],
@@ -420,7 +420,7 @@ var script$a = {
420
420
  };
421
421
 
422
422
  var _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
423
- function render$a(_ctx, _cache, $props, $setup, $data, $options) {
423
+ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
424
424
  var _component_CheckIcon = vue.resolveComponent("CheckIcon");
425
425
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
426
426
  "class": _ctx.cx('checkboxWrapper'),
@@ -460,9 +460,9 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
460
460
  }, $options.getColumnPT('checkboxIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 16)], 16);
461
461
  }
462
462
 
463
- script$a.render = render$a;
463
+ script$b.render = render$b;
464
464
 
465
- var script$9 = {
465
+ var script$a = {
466
466
  name: 'RowRadioButton',
467
467
  hostName: 'DataTable',
468
468
  "extends": BaseComponent__default["default"],
@@ -527,7 +527,7 @@ var script$9 = {
527
527
  };
528
528
 
529
529
  var _hoisted_1$6 = ["checked", "disabled", "name"];
530
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
530
+ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
531
531
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
532
532
  "class": _ctx.cx('radiobuttonWrapper'),
533
533
  onClick: _cache[3] || (_cache[3] = function () {
@@ -561,9 +561,9 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
561
561
  }, $options.getColumnPT('radiobuttonIcon')), null, 16)], 16)], 16);
562
562
  }
563
563
 
564
- script$9.render = render$9;
564
+ script$a.render = render$a;
565
565
 
566
- var script$8 = {
566
+ var script$9 = {
567
567
  name: 'BodyCell',
568
568
  hostName: 'DataTable',
569
569
  "extends": BaseComponent__default["default"],
@@ -1015,8 +1015,8 @@ var script$8 = {
1015
1015
  }
1016
1016
  },
1017
1017
  components: {
1018
- DTRadioButton: script$9,
1019
- DTCheckbox: script$a,
1018
+ DTRadioButton: script$a,
1019
+ DTCheckbox: script$b,
1020
1020
  ChevronDownIcon: ChevronDownIcon__default["default"],
1021
1021
  ChevronRightIcon: ChevronRightIcon__default["default"],
1022
1022
  BarsIcon: BarsIcon__default["default"],
@@ -1029,18 +1029,18 @@ var script$8 = {
1029
1029
  }
1030
1030
  };
1031
1031
 
1032
- 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); }
1033
- 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; }
1034
- 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; }
1035
- 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; }
1036
- function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : String(i); }
1037
- 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); }
1032
+ function _typeof$a(o) { "@babel/helpers - typeof"; return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$a(o); }
1033
+ function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1034
+ function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty$a(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1035
+ function _defineProperty$a(obj, key, value) { key = _toPropertyKey$a(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1036
+ function _toPropertyKey$a(t) { var i = _toPrimitive$a(t, "string"); return "symbol" == _typeof$a(i) ? i : String(i); }
1037
+ function _toPrimitive$a(t, r) { if ("object" != _typeof$a(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$a(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1038
1038
  var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
1039
1039
  var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
1040
1040
  var _hoisted_3$2 = ["aria-label"];
1041
1041
  var _hoisted_4$1 = ["aria-label"];
1042
1042
  var _hoisted_5$1 = ["aria-label"];
1043
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1043
+ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
1044
1044
  var _component_DTRadioButton = vue.resolveComponent("DTRadioButton");
1045
1045
  var _component_DTCheckbox = vue.resolveComponent("DTCheckbox");
1046
1046
  var _component_BarsIcon = vue.resolveComponent("BarsIcon");
@@ -1052,7 +1052,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1052
1052
  style: $options.containerStyle,
1053
1053
  "class": $options.containerClass,
1054
1054
  role: "cell"
1055
- }, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
1055
+ }, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
1056
1056
  data: $props.rowData,
1057
1057
  column: $props.column,
1058
1058
  field: $options.field,
@@ -1072,7 +1072,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1072
1072
  return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1073
1073
  }),
1074
1074
  role: "cell"
1075
- }, _objectSpread$9(_objectSpread$9({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1075
+ }, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
1076
1076
  "data-p-selection-column": $options.columnProp('selectionMode') != null,
1077
1077
  "data-p-editable-column": $options.isEditable(),
1078
1078
  "data-p-cell-editing": $data.d_editing,
@@ -1215,14 +1215,28 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1215
1215
  }, [vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$5));
1216
1216
  }
1217
1217
 
1218
- script$8.render = render$8;
1218
+ script$9.render = render$9;
1219
1219
 
1220
- var script$7 = {
1221
- name: 'TableBody',
1220
+ function _typeof$9(o) { "@babel/helpers - typeof"; return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$9(o); }
1221
+ function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1222
+ function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty$9(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1223
+ function _defineProperty$9(obj, key, value) { key = _toPropertyKey$9(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1224
+ function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : String(i); }
1225
+ function _toPrimitive$9(t, r) { if ("object" != _typeof$9(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$9(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1226
+ var script$8 = {
1227
+ name: 'BodyRow',
1222
1228
  hostName: 'DataTable',
1223
1229
  "extends": BaseComponent__default["default"],
1224
1230
  emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown', 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle', 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
1225
1231
  props: {
1232
+ rowData: {
1233
+ type: Object,
1234
+ "default": null
1235
+ },
1236
+ index: {
1237
+ type: Number,
1238
+ "default": 0
1239
+ },
1226
1240
  value: {
1227
1241
  type: Array,
1228
1242
  "default": null
@@ -1272,11 +1286,7 @@ var script$7 = {
1272
1286
  "default": null
1273
1287
  },
1274
1288
  expandedRows: {
1275
- type: Array,
1276
- "default": null
1277
- },
1278
- expandedRowKeys: {
1279
- type: null,
1289
+ type: [Array, Object],
1280
1290
  "default": null
1281
1291
  },
1282
1292
  selection: {
@@ -1307,6 +1317,10 @@ var script$7 = {
1307
1317
  type: null,
1308
1318
  "default": null
1309
1319
  },
1320
+ rowGroupHeaderStyle: {
1321
+ type: null,
1322
+ "default": null
1323
+ },
1310
1324
  editMode: {
1311
1325
  type: String,
1312
1326
  "default": null
@@ -1346,35 +1360,34 @@ var script$7 = {
1346
1360
  isVirtualScrollerDisabled: {
1347
1361
  type: Boolean,
1348
1362
  "default": false
1363
+ },
1364
+ expandedRowId: {
1365
+ type: String,
1366
+ "default": null
1367
+ },
1368
+ nameAttributeSelector: {
1369
+ type: String,
1370
+ "default": null
1349
1371
  }
1350
1372
  },
1351
1373
  data: function data() {
1352
1374
  return {
1353
- rowGroupHeaderStyleObject: {},
1354
- tabindexArray: [],
1355
- isARowSelected: false
1375
+ d_rowExpanded: false
1356
1376
  };
1357
1377
  },
1358
- mounted: function mounted() {
1359
- if (this.frozenRow) {
1360
- this.updateFrozenRowStickyPosition();
1361
- }
1362
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1363
- this.updateFrozenRowGroupHeaderStickyPosition();
1364
- }
1365
- },
1366
- updated: function updated() {
1367
- if (this.frozenRow) {
1368
- this.updateFrozenRowStickyPosition();
1369
- }
1370
- if (this.scrollable && this.rowGroupMode === 'subheader') {
1371
- this.updateFrozenRowGroupHeaderStickyPosition();
1378
+ watch: {
1379
+ expandedRows: function expandedRows(newValue) {
1380
+ var _this = this;
1381
+ this.d_rowExpanded = this.dataKey ? (newValue === null || newValue === void 0 ? void 0 : newValue[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)]) !== undefined : newValue === null || newValue === void 0 ? void 0 : newValue.some(function (d) {
1382
+ return _this.equals(_this.rowData, d);
1383
+ });
1372
1384
  }
1373
1385
  },
1374
1386
  methods: {
1375
1387
  columnProp: function columnProp(col, prop) {
1376
1388
  return utils.ObjectUtils.getVNodeProp(col, prop);
1377
1389
  },
1390
+ //@todo - update this method
1378
1391
  getColumnPT: function getColumnPT(key) {
1379
1392
  var columnMetaData = {
1380
1393
  parent: {
@@ -1385,80 +1398,33 @@ var script$7 = {
1385
1398
  };
1386
1399
  return vue.mergeProps(this.ptm("column.".concat(key), {
1387
1400
  column: columnMetaData
1388
- }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp({}), key, columnMetaData));
1389
- },
1390
- getColumnProp: function getColumnProp(column) {
1391
- return column.props && column.props.pt ? column.props.pt : undefined; //@todo
1401
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.columnProp({}, 'pt'), key, columnMetaData));
1392
1402
  },
1393
- getBodyRowPTOptions: function getBodyRowPTOptions(key, rowdata, index) {
1394
- var _this$$parentInstance, _this$$parentInstance2, _this$$parentInstance3;
1403
+ //@todo - update this method
1404
+ getBodyRowPTOptions: function getBodyRowPTOptions(key) {
1405
+ var _this$$parentInstance;
1406
+ var datatable = (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.$parentInstance;
1395
1407
  return this.ptm(key, {
1396
1408
  context: {
1397
- index: index,
1398
- 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),
1399
- selected: this.isSelected(rowdata),
1400
- stripedRows: ((_this$$parentInstance3 = this.$parentInstance) === null || _this$$parentInstance3 === void 0 || (_this$$parentInstance3 = _this$$parentInstance3.$parentInstance) === null || _this$$parentInstance3 === void 0 ? void 0 : _this$$parentInstance3.stripedRows) || false
1409
+ index: this.rowIndex,
1410
+ selectable: (datatable === null || datatable === void 0 ? void 0 : datatable.rowHover) || (datatable === null || datatable === void 0 ? void 0 : datatable.selectionMode),
1411
+ selected: this.isSelected,
1412
+ stripedRows: (datatable === null || datatable === void 0 ? void 0 : datatable.stripedRows) || false
1401
1413
  }
1402
1414
  });
1403
1415
  },
1404
- shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader(value, rowData, i) {
1405
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1406
- var prevRowData = value[i - 1];
1407
- if (prevRowData) {
1408
- var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
1409
- return currentRowFieldData !== previousRowFieldData;
1410
- } else {
1411
- return true;
1412
- }
1413
- },
1414
- getRowKey: function getRowKey(rowData, index) {
1415
- return this.dataKey ? utils.ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
1416
- },
1417
- getRowIndex: function getRowIndex(index) {
1418
- var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
1419
- return getItemOptions ? getItemOptions(index).index : index;
1420
- },
1421
- getRowStyle: function getRowStyle(rowData) {
1422
- if (this.rowStyle) {
1423
- return this.rowStyle(rowData);
1424
- }
1425
- },
1426
- getRowClass: function getRowClass(rowData) {
1427
- var rowStyleClass = [];
1428
- if (this.rowClass) {
1429
- var rowClassValue = this.rowClass(rowData);
1430
- if (rowClassValue) {
1431
- rowStyleClass.push(rowClassValue);
1432
- }
1433
- }
1434
- return [this.cx('row', {
1435
- rowData: rowData
1436
- }), rowStyleClass];
1437
- },
1438
- shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter(value, rowData, i) {
1439
- if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
1440
- return false;
1441
- } else {
1442
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1443
- var nextRowData = value[i + 1];
1444
- if (nextRowData) {
1445
- var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
1446
- return currentRowFieldData !== nextRowFieldData;
1447
- } else {
1448
- return true;
1449
- }
1450
- }
1451
- },
1452
- shouldRenderBodyCell: function shouldRenderBodyCell(value, column, i) {
1453
- if (this.rowGroupMode) {
1416
+ shouldRenderBodyCell: function shouldRenderBodyCell(column) {
1417
+ var isHidden = this.columnProp(column, 'hidden');
1418
+ if (this.rowGroupMode && !isHidden) {
1419
+ var field = this.columnProp(column, 'field');
1454
1420
  if (this.rowGroupMode === 'subheader') {
1455
- return this.groupRowsBy !== this.columnProp(column, 'field');
1421
+ return this.groupRowsBy !== field;
1456
1422
  } else if (this.rowGroupMode === 'rowspan') {
1457
1423
  if (this.isGrouped(column)) {
1458
- var prevRowData = value[i - 1];
1424
+ var prevRowData = this.value[this.rowIndex - 1];
1459
1425
  if (prevRowData) {
1460
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
1461
- var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.columnProp(column, 'field'));
1426
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[this.rowIndex], field);
1427
+ var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, field);
1462
1428
  return currentRowFieldData !== previousRowFieldData;
1463
1429
  } else {
1464
1430
  return true;
@@ -1468,19 +1434,21 @@ var script$7 = {
1468
1434
  }
1469
1435
  }
1470
1436
  } else {
1471
- return !this.columnProp(column, 'hidden');
1437
+ return !isHidden;
1472
1438
  }
1473
1439
  },
1474
- calculateRowGroupSize: function calculateRowGroupSize(value, column, index) {
1440
+ calculateRowGroupSize: function calculateRowGroupSize(column) {
1475
1441
  if (this.isGrouped(column)) {
1476
- var currentRowFieldData = utils.ObjectUtils.resolveFieldData(value[index], this.columnProp(column, 'field'));
1442
+ var index = this.rowIndex;
1443
+ var field = this.columnProp(column, 'field');
1444
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[index], field);
1477
1445
  var nextRowFieldData = currentRowFieldData;
1478
1446
  var groupRowSpan = 0;
1479
1447
  while (currentRowFieldData === nextRowFieldData) {
1480
1448
  groupRowSpan++;
1481
- var nextRowData = value[++index];
1449
+ var nextRowData = this.value[++index];
1482
1450
  if (nextRowData) {
1483
- nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
1451
+ nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, field);
1484
1452
  } else {
1485
1453
  break;
1486
1454
  }
@@ -1491,55 +1459,21 @@ var script$7 = {
1491
1459
  }
1492
1460
  },
1493
1461
  isGrouped: function isGrouped(column) {
1494
- if (this.groupRowsBy && this.columnProp(column, 'field')) {
1495
- if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(column.props.field) > -1;else return this.groupRowsBy === column.props.field;
1462
+ var field = this.columnProp(column, 'field');
1463
+ if (this.groupRowsBy && field) {
1464
+ if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(field) > -1;else return this.groupRowsBy === field;
1496
1465
  } else {
1497
1466
  return false;
1498
1467
  }
1499
1468
  },
1500
- isRowEditing: function isRowEditing(rowData) {
1501
- if (rowData && this.editingRows) {
1502
- if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.editingRows) > -1;
1503
- }
1504
- return false;
1469
+ findIndexInSelection: function findIndexInSelection(data) {
1470
+ return this.findIndex(data, this.selection);
1505
1471
  },
1506
- isRowExpanded: function isRowExpanded(rowData) {
1507
- if (rowData && this.expandedRows) {
1508
- if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.expandedRows) > -1;
1509
- }
1510
- return false;
1511
- },
1512
- isRowGroupExpanded: function isRowGroupExpanded(rowData) {
1513
- if (this.expandableRowGroups && this.expandedRowGroups) {
1514
- var groupFieldValue = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1515
- return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
1516
- }
1517
- return false;
1518
- },
1519
- isSelected: function isSelected(rowData) {
1520
- if (rowData && this.selection) {
1521
- if (this.dataKey) {
1522
- return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
1523
- } else {
1524
- if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);
1525
- }
1526
- }
1527
- return false;
1528
- },
1529
- isSelectedWithContextMenu: function isSelectedWithContextMenu(rowData) {
1530
- if (rowData && this.contextMenuSelection) {
1531
- return this.equals(rowData, this.contextMenuSelection, this.dataKey);
1532
- }
1533
- return false;
1534
- },
1535
- findIndexInSelection: function findIndexInSelection(rowData) {
1536
- return this.findIndex(rowData, this.selection);
1537
- },
1538
- findIndex: function findIndex(rowData, collection) {
1472
+ findIndex: function findIndex(data, collection) {
1539
1473
  var index = -1;
1540
1474
  if (collection && collection.length) {
1541
1475
  for (var i = 0; i < collection.length; i++) {
1542
- if (this.equals(rowData, collection[i])) {
1476
+ if (this.equals(data, collection[i])) {
1543
1477
  index = i;
1544
1478
  break;
1545
1479
  }
@@ -1550,56 +1484,56 @@ var script$7 = {
1550
1484
  equals: function equals(data1, data2) {
1551
1485
  return this.compareSelectionBy === 'equals' ? data1 === data2 : utils.ObjectUtils.equals(data1, data2, this.dataKey);
1552
1486
  },
1553
- onRowGroupToggle: function onRowGroupToggle(event, data) {
1487
+ onRowGroupToggle: function onRowGroupToggle(event) {
1554
1488
  this.$emit('rowgroup-toggle', {
1555
1489
  originalEvent: event,
1556
- data: data
1490
+ data: this.rowData
1557
1491
  });
1558
1492
  },
1559
- onRowClick: function onRowClick(event, rowData, rowIndex) {
1493
+ onRowClick: function onRowClick(event) {
1560
1494
  this.$emit('row-click', {
1561
1495
  originalEvent: event,
1562
- data: rowData,
1563
- index: rowIndex
1496
+ data: this.rowData,
1497
+ index: this.rowIndex
1564
1498
  });
1565
1499
  },
1566
- onRowDblClick: function onRowDblClick(event, rowData, rowIndex) {
1500
+ onRowDblClick: function onRowDblClick(event) {
1567
1501
  this.$emit('row-dblclick', {
1568
1502
  originalEvent: event,
1569
- data: rowData,
1570
- index: rowIndex
1503
+ data: this.rowData,
1504
+ index: this.rowIndex
1571
1505
  });
1572
1506
  },
1573
- onRowRightClick: function onRowRightClick(event, rowData, rowIndex) {
1507
+ onRowRightClick: function onRowRightClick(event) {
1574
1508
  this.$emit('row-rightclick', {
1575
1509
  originalEvent: event,
1576
- data: rowData,
1577
- index: rowIndex
1510
+ data: this.rowData,
1511
+ index: this.rowIndex
1578
1512
  });
1579
1513
  },
1580
1514
  onRowTouchEnd: function onRowTouchEnd(event) {
1581
1515
  this.$emit('row-touchend', event);
1582
1516
  },
1583
- onRowKeyDown: function onRowKeyDown(event, rowData, rowIndex) {
1517
+ onRowKeyDown: function onRowKeyDown(event) {
1584
1518
  this.$emit('row-keydown', {
1585
1519
  originalEvent: event,
1586
- data: rowData,
1587
- index: rowIndex
1520
+ data: this.rowData,
1521
+ index: this.rowIndex
1588
1522
  });
1589
1523
  },
1590
1524
  onRowMouseDown: function onRowMouseDown(event) {
1591
1525
  this.$emit('row-mousedown', event);
1592
1526
  },
1593
- onRowDragStart: function onRowDragStart(event, rowIndex) {
1527
+ onRowDragStart: function onRowDragStart(event) {
1594
1528
  this.$emit('row-dragstart', {
1595
1529
  originalEvent: event,
1596
- index: rowIndex
1530
+ index: this.rowIndex
1597
1531
  });
1598
1532
  },
1599
- onRowDragOver: function onRowDragOver(event, rowIndex) {
1533
+ onRowDragOver: function onRowDragOver(event) {
1600
1534
  this.$emit('row-dragover', {
1601
1535
  originalEvent: event,
1602
- index: rowIndex
1536
+ index: this.rowIndex
1603
1537
  });
1604
1538
  },
1605
1539
  onRowDragLeave: function onRowDragLeave(event) {
@@ -1612,7 +1546,10 @@ var script$7 = {
1612
1546
  this.$emit('row-drop', event);
1613
1547
  },
1614
1548
  onRowToggle: function onRowToggle(event) {
1615
- this.$emit('row-toggle', event);
1549
+ this.d_rowExpanded = !this.d_rowExpanded;
1550
+ this.$emit('row-toggle', _objectSpread$9(_objectSpread$9({}, event), {}, {
1551
+ expanded: this.d_rowExpanded
1552
+ }));
1616
1553
  },
1617
1554
  onRadioChange: function onRadioChange(event) {
1618
1555
  this.$emit('radio-change', event);
@@ -1641,6 +1578,423 @@ var script$7 = {
1641
1578
  onEditingMetaChange: function onEditingMetaChange(event) {
1642
1579
  this.$emit('editing-meta-change', event);
1643
1580
  },
1581
+ getVirtualScrollerProp: function getVirtualScrollerProp(option, options) {
1582
+ options = options || this.virtualScrollerContentProps;
1583
+ return options ? options[option] : null;
1584
+ }
1585
+ },
1586
+ computed: {
1587
+ rowIndex: function rowIndex() {
1588
+ var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
1589
+ return getItemOptions ? getItemOptions(this.index).index : this.index;
1590
+ },
1591
+ rowStyles: function rowStyles() {
1592
+ var _this$rowStyle;
1593
+ return (_this$rowStyle = this.rowStyle) === null || _this$rowStyle === void 0 ? void 0 : _this$rowStyle.call(this, this.rowData);
1594
+ },
1595
+ rowClasses: function rowClasses() {
1596
+ var rowStyleClass = [];
1597
+ if (this.rowClass) {
1598
+ var rowClassValue = this.rowClass(this.rowData);
1599
+ if (rowClassValue) {
1600
+ rowStyleClass.push(rowClassValue);
1601
+ }
1602
+ }
1603
+ return [this.cx('row', {
1604
+ rowData: this.rowData,
1605
+ index: this.rowIndex
1606
+ }), rowStyleClass];
1607
+ },
1608
+ rowTabindex: function rowTabindex() {
1609
+ if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
1610
+ return this.rowIndex === 0 ? 0 : -1;
1611
+ }
1612
+ return -1;
1613
+ },
1614
+ isRowEditing: function isRowEditing() {
1615
+ if (this.rowData && this.editingRows) {
1616
+ if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;else return this.findIndex(this.rowData, this.editingRows) > -1;
1617
+ }
1618
+ return false;
1619
+ },
1620
+ isRowGroupExpanded: function isRowGroupExpanded() {
1621
+ if (this.expandableRowGroups && this.expandedRowGroups) {
1622
+ var groupFieldValue = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1623
+ return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
1624
+ }
1625
+ return false;
1626
+ },
1627
+ isSelected: function isSelected() {
1628
+ if (this.rowData && this.selection) {
1629
+ if (this.dataKey) {
1630
+ return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;
1631
+ } else {
1632
+ if (this.selection instanceof Array) return this.findIndexInSelection(this.rowData) > -1;else return this.equals(this.rowData, this.selection);
1633
+ }
1634
+ }
1635
+ return false;
1636
+ },
1637
+ isSelectedWithContextMenu: function isSelectedWithContextMenu() {
1638
+ if (this.rowData && this.contextMenuSelection) {
1639
+ return this.equals(this.rowData, this.contextMenuSelection, this.dataKey);
1640
+ }
1641
+ return false;
1642
+ },
1643
+ shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader() {
1644
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1645
+ var prevRowData = this.value[this.rowIndex - 1];
1646
+ if (prevRowData) {
1647
+ var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
1648
+ return currentRowFieldData !== previousRowFieldData;
1649
+ } else {
1650
+ return true;
1651
+ }
1652
+ },
1653
+ shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter() {
1654
+ if (this.expandableRowGroups && !this.isRowGroupExpanded) {
1655
+ return false;
1656
+ } else {
1657
+ var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
1658
+ var nextRowData = this.value[this.rowIndex + 1];
1659
+ if (nextRowData) {
1660
+ var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
1661
+ return currentRowFieldData !== nextRowFieldData;
1662
+ } else {
1663
+ return true;
1664
+ }
1665
+ }
1666
+ },
1667
+ columnsLength: function columnsLength() {
1668
+ var _this2 = this;
1669
+ if (this.columns) {
1670
+ var hiddenColLength = 0;
1671
+ this.columns.forEach(function (column) {
1672
+ if (_this2.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
1673
+ if (_this2.columnProp(column, 'hidden')) hiddenColLength++;
1674
+ });
1675
+ return this.columns.length - hiddenColLength;
1676
+ }
1677
+ return 0;
1678
+ }
1679
+ },
1680
+ components: {
1681
+ DTBodyCell: script$9,
1682
+ ChevronDownIcon: ChevronDownIcon__default["default"],
1683
+ ChevronRightIcon: ChevronRightIcon__default["default"]
1684
+ }
1685
+ };
1686
+
1687
+ 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); }
1688
+ 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; }
1689
+ 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; }
1690
+ 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; }
1691
+ function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
1692
+ 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); }
1693
+ var _hoisted_1$4 = ["colspan"];
1694
+ var _hoisted_2$1 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
1695
+ var _hoisted_3$1 = ["id"];
1696
+ var _hoisted_4 = ["colspan"];
1697
+ var _hoisted_5 = ["colspan"];
1698
+ var _hoisted_6 = ["colspan"];
1699
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1700
+ var _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
1701
+ var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
1702
+ var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
1703
+ return !$props.empty ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1704
+ key: 0
1705
+ }, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1706
+ key: 0,
1707
+ "class": _ctx.cx('rowGroupHeader'),
1708
+ style: $props.rowGroupHeaderStyle,
1709
+ role: "row"
1710
+ }, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
1711
+ colspan: $options.columnsLength - 1
1712
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1713
+ key: 0,
1714
+ "class": _ctx.cx('rowGroupToggler'),
1715
+ onClick: _cache[0] || (_cache[0] = function () {
1716
+ return $options.onRowGroupToggle && $options.onRowGroupToggle.apply($options, arguments);
1717
+ }),
1718
+ type: "button"
1719
+ }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1720
+ key: 0,
1721
+ expanded: $options.isRowGroupExpanded
1722
+ }, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1723
+ key: 1
1724
+ }, [$options.isRowGroupExpanded && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1725
+ key: 0,
1726
+ "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1727
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
1728
+ key: 1,
1729
+ "class": _ctx.cx('rowGroupTogglerIcon')
1730
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1731
+ key: 2,
1732
+ "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1733
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
1734
+ key: 3,
1735
+ "class": _ctx.cx('rowGroupTogglerIcon')
1736
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
1737
+ data: $props.rowData,
1738
+ index: $options.rowIndex
1739
+ }, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : vue.createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1740
+ key: 1,
1741
+ "class": $options.rowClasses,
1742
+ style: $options.rowStyles,
1743
+ tabindex: $options.rowTabindex,
1744
+ role: "row",
1745
+ "aria-selected": $props.selectionMode ? $options.isSelected : null,
1746
+ onClick: _cache[1] || (_cache[1] = function () {
1747
+ return $options.onRowClick && $options.onRowClick.apply($options, arguments);
1748
+ }),
1749
+ onDblclick: _cache[2] || (_cache[2] = function () {
1750
+ return $options.onRowDblClick && $options.onRowDblClick.apply($options, arguments);
1751
+ }),
1752
+ onContextmenu: _cache[3] || (_cache[3] = function () {
1753
+ return $options.onRowRightClick && $options.onRowRightClick.apply($options, arguments);
1754
+ }),
1755
+ onTouchend: _cache[4] || (_cache[4] = function () {
1756
+ return $options.onRowTouchEnd && $options.onRowTouchEnd.apply($options, arguments);
1757
+ }),
1758
+ onKeydown: _cache[5] || (_cache[5] = vue.withModifiers(function () {
1759
+ return $options.onRowKeyDown && $options.onRowKeyDown.apply($options, arguments);
1760
+ }, ["self"])),
1761
+ onMousedown: _cache[6] || (_cache[6] = function () {
1762
+ return $options.onRowMouseDown && $options.onRowMouseDown.apply($options, arguments);
1763
+ }),
1764
+ onDragstart: _cache[7] || (_cache[7] = function () {
1765
+ return $options.onRowDragStart && $options.onRowDragStart.apply($options, arguments);
1766
+ }),
1767
+ onDragover: _cache[8] || (_cache[8] = function () {
1768
+ return $options.onRowDragOver && $options.onRowDragOver.apply($options, arguments);
1769
+ }),
1770
+ onDragleave: _cache[9] || (_cache[9] = function () {
1771
+ return $options.onRowDragLeave && $options.onRowDragLeave.apply($options, arguments);
1772
+ }),
1773
+ onDragend: _cache[10] || (_cache[10] = function () {
1774
+ return $options.onRowDragEnd && $options.onRowDragEnd.apply($options, arguments);
1775
+ }),
1776
+ onDrop: _cache[11] || (_cache[11] = function () {
1777
+ return $options.onRowDrop && $options.onRowDrop.apply($options, arguments);
1778
+ })
1779
+ }, $options.getBodyRowPTOptions('bodyRow'), {
1780
+ "data-p-index": $options.rowIndex,
1781
+ "data-p-selectable-row": $props.selectionMode ? true : false,
1782
+ "data-p-highlight": $props.selection && $options.isSelected,
1783
+ "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu
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(col) ? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
1786
+ key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
1787
+ rowData: $props.rowData,
1788
+ column: col,
1789
+ rowIndex: $options.rowIndex,
1790
+ index: i,
1791
+ selected: $options.isSelected,
1792
+ frozenRow: $props.frozenRow,
1793
+ rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize(col) : null,
1794
+ editMode: $props.editMode,
1795
+ editing: $props.editMode === 'row' && $options.isRowEditing,
1796
+ editingMeta: $props.editingMeta,
1797
+ responsiveLayout: $props.responsiveLayout,
1798
+ virtualScrollerContentProps: $props.virtualScrollerContentProps,
1799
+ ariaControls: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
1800
+ name: $props.nameAttributeSelector,
1801
+ isRowExpanded: $data.d_rowExpanded,
1802
+ expandedRowIcon: $props.expandedRowIcon,
1803
+ collapsedRowIcon: $props.collapsedRowIcon,
1804
+ onRadioChange: $options.onRadioChange,
1805
+ onCheckboxChange: $options.onCheckboxChange,
1806
+ onRowToggle: $options.onRowToggle,
1807
+ onCellEditInit: $options.onCellEditInit,
1808
+ onCellEditComplete: $options.onCellEditComplete,
1809
+ onCellEditCancel: $options.onCellEditCancel,
1810
+ onRowEditInit: $options.onRowEditInit,
1811
+ onRowEditSave: $options.onRowEditSave,
1812
+ onRowEditCancel: $options.onRowEditCancel,
1813
+ onEditingMetaChange: $options.onEditingMetaChange,
1814
+ unstyled: _ctx.unstyled,
1815
+ pt: _ctx.pt
1816
+ }, 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);
1817
+ }), 256))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1818
+ key: 2,
1819
+ id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
1820
+ "class": _ctx.cx('rowExpansion'),
1821
+ role: "row"
1822
+ }, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
1823
+ colspan: $options.columnsLength
1824
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
1825
+ data: $props.rowData,
1826
+ index: $options.rowIndex
1827
+ }, 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({
1828
+ key: 3,
1829
+ "class": _ctx.cx('rowGroupFooter'),
1830
+ role: "row"
1831
+ }, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
1832
+ colspan: $options.columnsLength - 1
1833
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
1834
+ data: $props.rowData,
1835
+ index: $options.rowIndex
1836
+ }, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16)) : vue.createCommentVNode("", true)], 64)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1837
+ key: 1,
1838
+ "class": _ctx.cx('emptyMessage'),
1839
+ role: "row"
1840
+ }, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
1841
+ colspan: $options.columnsLength
1842
+ }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
1843
+ key: 0
1844
+ })) : vue.createCommentVNode("", true)], 16, _hoisted_6)], 16));
1845
+ }
1846
+
1847
+ script$8.render = render$8;
1848
+
1849
+ var script$7 = {
1850
+ name: 'TableBody',
1851
+ hostName: 'DataTable',
1852
+ "extends": BaseComponent__default["default"],
1853
+ 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'],
1854
+ props: {
1855
+ value: {
1856
+ type: Array,
1857
+ "default": null
1858
+ },
1859
+ columns: {
1860
+ type: null,
1861
+ "default": null
1862
+ },
1863
+ frozenRow: {
1864
+ type: Boolean,
1865
+ "default": false
1866
+ },
1867
+ empty: {
1868
+ type: Boolean,
1869
+ "default": false
1870
+ },
1871
+ rowGroupMode: {
1872
+ type: String,
1873
+ "default": null
1874
+ },
1875
+ groupRowsBy: {
1876
+ type: [Array, String, Function],
1877
+ "default": null
1878
+ },
1879
+ expandableRowGroups: {
1880
+ type: Boolean,
1881
+ "default": false
1882
+ },
1883
+ expandedRowGroups: {
1884
+ type: Array,
1885
+ "default": null
1886
+ },
1887
+ first: {
1888
+ type: Number,
1889
+ "default": 0
1890
+ },
1891
+ dataKey: {
1892
+ type: [String, Function],
1893
+ "default": null
1894
+ },
1895
+ expandedRowIcon: {
1896
+ type: String,
1897
+ "default": null
1898
+ },
1899
+ collapsedRowIcon: {
1900
+ type: String,
1901
+ "default": null
1902
+ },
1903
+ expandedRows: {
1904
+ type: [Array, Object],
1905
+ "default": null
1906
+ },
1907
+ selection: {
1908
+ type: [Array, Object],
1909
+ "default": null
1910
+ },
1911
+ selectionKeys: {
1912
+ type: null,
1913
+ "default": null
1914
+ },
1915
+ selectionMode: {
1916
+ type: String,
1917
+ "default": null
1918
+ },
1919
+ contextMenu: {
1920
+ type: Boolean,
1921
+ "default": false
1922
+ },
1923
+ contextMenuSelection: {
1924
+ type: Object,
1925
+ "default": null
1926
+ },
1927
+ rowClass: {
1928
+ type: null,
1929
+ "default": null
1930
+ },
1931
+ rowStyle: {
1932
+ type: null,
1933
+ "default": null
1934
+ },
1935
+ editMode: {
1936
+ type: String,
1937
+ "default": null
1938
+ },
1939
+ compareSelectionBy: {
1940
+ type: String,
1941
+ "default": 'deepEquals'
1942
+ },
1943
+ editingRows: {
1944
+ type: Array,
1945
+ "default": null
1946
+ },
1947
+ editingRowKeys: {
1948
+ type: null,
1949
+ "default": null
1950
+ },
1951
+ editingMeta: {
1952
+ type: Object,
1953
+ "default": null
1954
+ },
1955
+ templates: {
1956
+ type: null,
1957
+ "default": null
1958
+ },
1959
+ scrollable: {
1960
+ type: Boolean,
1961
+ "default": false
1962
+ },
1963
+ responsiveLayout: {
1964
+ type: String,
1965
+ "default": 'stack'
1966
+ },
1967
+ virtualScrollerContentProps: {
1968
+ type: Object,
1969
+ "default": null
1970
+ },
1971
+ isVirtualScrollerDisabled: {
1972
+ type: Boolean,
1973
+ "default": false
1974
+ }
1975
+ },
1976
+ data: function data() {
1977
+ return {
1978
+ rowGroupHeaderStyleObject: {}
1979
+ };
1980
+ },
1981
+ mounted: function mounted() {
1982
+ if (this.frozenRow) {
1983
+ this.updateFrozenRowStickyPosition();
1984
+ }
1985
+ if (this.scrollable && this.rowGroupMode === 'subheader') {
1986
+ this.updateFrozenRowGroupHeaderStickyPosition();
1987
+ }
1988
+ },
1989
+ updated: function updated() {
1990
+ if (this.frozenRow) {
1991
+ this.updateFrozenRowStickyPosition();
1992
+ }
1993
+ if (this.scrollable && this.rowGroupMode === 'subheader') {
1994
+ this.updateFrozenRowGroupHeaderStickyPosition();
1995
+ }
1996
+ },
1997
+ methods: {
1644
1998
  updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
1645
1999
  this.$el.style.top = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
1646
2000
  },
@@ -1656,24 +2010,9 @@ var script$7 = {
1656
2010
  // For VirtualScroller
1657
2011
  var contentRef = this.getVirtualScrollerProp('contentRef');
1658
2012
  contentRef && contentRef(el);
1659
- },
1660
- setRowTabindex: function setRowTabindex(index) {
1661
- if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
1662
- return index === 0 ? 0 : -1;
1663
- }
1664
- return -1;
1665
2013
  }
1666
2014
  },
1667
2015
  computed: {
1668
- columnsLength: function columnsLength() {
1669
- var _this = this;
1670
- var hiddenColLength = 0;
1671
- this.columns.forEach(function (column) {
1672
- if (_this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
1673
- if (_this.columnProp(column, 'hidden')) hiddenColLength++;
1674
- });
1675
- return this.columns ? this.columns.length - hiddenColLength : 0;
1676
- },
1677
2016
  rowGroupHeaderStyle: function rowGroupHeaderStyle() {
1678
2017
  if (this.scrollable) {
1679
2018
  return {
@@ -1682,48 +2021,31 @@ var script$7 = {
1682
2021
  }
1683
2022
  return null;
1684
2023
  },
1685
- bodyStyle: function bodyStyle() {
1686
- return this.getVirtualScrollerProp('contentStyle');
1687
- },
1688
- expandedRowId: function expandedRowId() {
1689
- return utils.UniqueComponentId();
1690
- },
1691
- nameAttributeSelector: function nameAttributeSelector() {
1692
- return utils.UniqueComponentId();
1693
- },
2024
+ bodyStyle: function bodyStyle() {
2025
+ return this.getVirtualScrollerProp('contentStyle');
2026
+ },
1694
2027
  ptmTBodyOptions: function ptmTBodyOptions() {
1695
- var _this$$parentInstance4;
2028
+ var _this$$parentInstance;
1696
2029
  return {
1697
2030
  context: {
1698
- 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
2031
+ 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
1699
2032
  }
1700
2033
  };
2034
+ },
2035
+ expandedRowId: function expandedRowId() {
2036
+ return utils.UniqueComponentId();
2037
+ },
2038
+ nameAttributeSelector: function nameAttributeSelector() {
2039
+ return utils.UniqueComponentId();
1701
2040
  }
1702
2041
  },
1703
2042
  components: {
1704
- DTBodyCell: script$8,
1705
- ChevronDownIcon: ChevronDownIcon__default["default"],
1706
- ChevronRightIcon: ChevronRightIcon__default["default"]
2043
+ DTBodyRow: script$8
1707
2044
  }
1708
2045
  };
1709
2046
 
1710
- 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); }
1711
- 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; }
1712
- 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; }
1713
- 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; }
1714
- function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
1715
- 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); }
1716
- var _hoisted_1$4 = ["colspan"];
1717
- var _hoisted_2$1 = ["onClick"];
1718
- var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
1719
- var _hoisted_4 = ["id"];
1720
- var _hoisted_5 = ["colspan"];
1721
- var _hoisted_6 = ["colspan"];
1722
- var _hoisted_7 = ["colspan"];
1723
2047
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1724
- var _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
1725
- var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
1726
- var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
2048
+ var _component_DTBodyRow = vue.resolveComponent("DTBodyRow");
1727
2049
  return vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
1728
2050
  ref: $options.bodyRef,
1729
2051
  "class": _ctx.cx('tbody'),
@@ -1731,165 +2053,119 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1731
2053
  style: $options.bodyStyle
1732
2054
  }, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
1733
2055
  key: 0
1734
- }, vue.renderList($props.value, function (rowData, index) {
1735
- 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({
1736
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader',
1737
- "class": _ctx.cx('rowGroupHeader'),
1738
- style: $options.rowGroupHeaderStyle,
1739
- role: "row"
1740
- }, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
1741
- colspan: $options.columnsLength - 1
1742
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1743
- key: 0,
1744
- "class": _ctx.cx('rowGroupToggler'),
1745
- onClick: function onClick($event) {
1746
- return $options.onRowGroupToggle($event, rowData);
1747
- },
1748
- type: "button"
1749
- }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1750
- key: 0,
1751
- expanded: $options.isRowGroupExpanded(rowData)
1752
- }, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1753
- key: 1
1754
- }, [$options.isRowGroupExpanded(rowData) && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1755
- key: 0,
1756
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1757
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
1758
- key: 1,
1759
- "class": _ctx.cx('rowGroupTogglerIcon')
1760
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1761
- key: 2,
1762
- "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1763
- }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
1764
- key: 3,
1765
- "class": _ctx.cx('rowGroupTogglerIcon')
1766
- }, _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']), {
1767
- data: rowData,
1768
- index: $options.getRowIndex(index)
1769
- }, 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({
1770
- key: $options.getRowKey(rowData, $options.getRowIndex(index)),
1771
- "class": $options.getRowClass(rowData),
1772
- style: $options.getRowStyle(rowData),
1773
- tabindex: $options.setRowTabindex(index),
1774
- role: "row",
1775
- "aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
1776
- onClick: function onClick($event) {
1777
- return $options.onRowClick($event, rowData, $options.getRowIndex(index));
1778
- },
1779
- onDblclick: function onDblclick($event) {
1780
- return $options.onRowDblClick($event, rowData, $options.getRowIndex(index));
1781
- },
1782
- onContextmenu: function onContextmenu($event) {
1783
- return $options.onRowRightClick($event, rowData, $options.getRowIndex(index));
1784
- },
1785
- onTouchend: _cache[9] || (_cache[9] = function ($event) {
1786
- return $options.onRowTouchEnd($event);
2056
+ }, vue.renderList($props.value, function (rowData, rowIndex) {
2057
+ return vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
2058
+ key: rowIndex,
2059
+ rowData: rowData,
2060
+ index: rowIndex,
2061
+ value: $props.value,
2062
+ columns: $props.columns,
2063
+ frozenRow: $props.frozenRow,
2064
+ empty: $props.empty,
2065
+ first: $props.first,
2066
+ dataKey: $props.dataKey,
2067
+ selection: $props.selection,
2068
+ selectionKeys: $props.selectionKeys,
2069
+ selectionMode: $props.selectionMode,
2070
+ contextMenu: $props.contextMenu,
2071
+ contextMenuSelection: $props.contextMenuSelection,
2072
+ rowGroupMode: $props.rowGroupMode,
2073
+ groupRowsBy: $props.groupRowsBy,
2074
+ expandableRowGroups: $props.expandableRowGroups,
2075
+ rowClass: $props.rowClass,
2076
+ rowStyle: $props.rowStyle,
2077
+ editMode: $props.editMode,
2078
+ compareSelectionBy: $props.compareSelectionBy,
2079
+ scrollable: $props.scrollable,
2080
+ expandedRowIcon: $props.expandedRowIcon,
2081
+ collapsedRowIcon: $props.collapsedRowIcon,
2082
+ expandedRows: $props.expandedRows,
2083
+ expandedRowGroups: $props.expandedRowGroups,
2084
+ editingRows: $props.editingRows,
2085
+ editingRowKeys: $props.editingRowKeys,
2086
+ templates: $props.templates,
2087
+ responsiveLayout: $props.responsiveLayout,
2088
+ virtualScrollerContentProps: $props.virtualScrollerContentProps,
2089
+ isVirtualScrollerDisabled: $props.isVirtualScrollerDisabled,
2090
+ editingMeta: $props.editingMeta,
2091
+ rowGroupHeaderStyle: $options.rowGroupHeaderStyle,
2092
+ expandedRowId: $options.expandedRowId,
2093
+ nameAttributeSelector: $options.nameAttributeSelector,
2094
+ onRowgroupToggle: _cache[0] || (_cache[0] = function ($event) {
2095
+ return _ctx.$emit('rowgroup-toggle', $event);
1787
2096
  }),
1788
- onKeydown: vue.withModifiers(function ($event) {
1789
- return $options.onRowKeyDown($event, rowData, $options.getRowIndex(index));
1790
- }, ["self"]),
1791
- onMousedown: _cache[10] || (_cache[10] = function ($event) {
1792
- return $options.onRowMouseDown($event);
2097
+ onRowClick: _cache[1] || (_cache[1] = function ($event) {
2098
+ return _ctx.$emit('row-click', $event);
1793
2099
  }),
1794
- onDragstart: function onDragstart($event) {
1795
- return $options.onRowDragStart($event, $options.getRowIndex(index));
1796
- },
1797
- onDragover: function onDragover($event) {
1798
- return $options.onRowDragOver($event, $options.getRowIndex(index));
1799
- },
1800
- onDragleave: _cache[11] || (_cache[11] = function ($event) {
1801
- return $options.onRowDragLeave($event);
2100
+ onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
2101
+ return _ctx.$emit('row-dblclick', $event);
1802
2102
  }),
1803
- onDragend: _cache[12] || (_cache[12] = function ($event) {
1804
- return $options.onRowDragEnd($event);
2103
+ onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
2104
+ return _ctx.$emit('row-rightclick', $event);
1805
2105
  }),
1806
- onDrop: _cache[13] || (_cache[13] = function ($event) {
1807
- return $options.onRowDrop($event);
1808
- })
1809
- }, $options.getBodyRowPTOptions('bodyRow', rowData, index), {
1810
- "data-p-selectable-row": $props.selectionMode ? true : false,
1811
- "data-p-highlight": $props.selection && $options.isSelected(rowData),
1812
- "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu(rowData)
1813
- }), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
1814
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
1815
- key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
1816
- rowData: rowData,
1817
- column: col,
1818
- rowIndex: $options.getRowIndex(index),
1819
- index: i,
1820
- selected: $options.isSelected(rowData),
1821
- frozenRow: $props.frozenRow,
1822
- rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
1823
- editMode: $props.editMode,
1824
- editing: $props.editMode === 'row' && $options.isRowEditing(rowData),
1825
- editingMeta: $props.editingMeta,
1826
- responsiveLayout: $props.responsiveLayout,
1827
- virtualScrollerContentProps: $props.virtualScrollerContentProps,
1828
- ariaControls: $options.expandedRowId + '_' + index + '_expansion',
1829
- name: $options.nameAttributeSelector,
1830
- isRowExpanded: $options.isRowExpanded(rowData),
1831
- expandedRowIcon: $props.expandedRowIcon,
1832
- collapsedRowIcon: $props.collapsedRowIcon,
1833
- onRadioChange: _cache[0] || (_cache[0] = function ($event) {
1834
- return $options.onRadioChange($event);
1835
- }),
1836
- onCheckboxChange: _cache[1] || (_cache[1] = function ($event) {
1837
- return $options.onCheckboxChange($event);
1838
- }),
1839
- onRowToggle: _cache[2] || (_cache[2] = function ($event) {
1840
- return $options.onRowToggle($event);
1841
- }),
1842
- onCellEditInit: _cache[3] || (_cache[3] = function ($event) {
1843
- return $options.onCellEditInit($event);
1844
- }),
1845
- onCellEditComplete: _cache[4] || (_cache[4] = function ($event) {
1846
- return $options.onCellEditComplete($event);
1847
- }),
1848
- onCellEditCancel: _cache[5] || (_cache[5] = function ($event) {
1849
- return $options.onCellEditCancel($event);
1850
- }),
1851
- onRowEditInit: _cache[6] || (_cache[6] = function ($event) {
1852
- return $options.onRowEditInit($event);
1853
- }),
1854
- onRowEditSave: _cache[7] || (_cache[7] = function ($event) {
1855
- return $options.onRowEditSave($event);
1856
- }),
1857
- onRowEditCancel: _cache[8] || (_cache[8] = function ($event) {
1858
- return $options.onRowEditCancel($event);
1859
- }),
1860
- onEditingMetaChange: $options.onEditingMetaChange,
1861
- unstyled: _ctx.unstyled,
1862
- pt: _ctx.pt
1863
- }, 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);
1864
- }), 256))], 16, _hoisted_3$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1865
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
1866
- id: $options.expandedRowId + '_' + index + '_expansion',
1867
- "class": _ctx.cx('rowExpansion'),
1868
- role: "row"
1869
- }, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
1870
- colspan: $options.columnsLength
1871
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
1872
- data: rowData,
1873
- index: $options.getRowIndex(index)
1874
- }, 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({
1875
- key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
1876
- "class": _ctx.cx('rowGroupFooter'),
1877
- role: "row"
1878
- }, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
1879
- colspan: $options.columnsLength - 1
1880
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
1881
- data: rowData,
1882
- index: $options.getRowIndex(index)
1883
- }, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : vue.createCommentVNode("", true)], 64);
1884
- }), 256)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
2106
+ onRowTouchend: _cache[4] || (_cache[4] = function ($event) {
2107
+ return _ctx.$emit('row-touchend', $event);
2108
+ }),
2109
+ onRowKeydown: _cache[5] || (_cache[5] = function ($event) {
2110
+ return _ctx.$emit('row-keydown', $event);
2111
+ }),
2112
+ onRowMousedown: _cache[6] || (_cache[6] = function ($event) {
2113
+ return _ctx.$emit('row-mousedown', $event);
2114
+ }),
2115
+ onRowDragstart: _cache[7] || (_cache[7] = function ($event) {
2116
+ return _ctx.$emit('row-dragstart', $event);
2117
+ }),
2118
+ onRowDragover: _cache[8] || (_cache[8] = function ($event) {
2119
+ return _ctx.$emit('row-dragover', $event);
2120
+ }),
2121
+ onRowDragleave: _cache[9] || (_cache[9] = function ($event) {
2122
+ return _ctx.$emit('row-dragleave', $event);
2123
+ }),
2124
+ onRowDragend: _cache[10] || (_cache[10] = function ($event) {
2125
+ return _ctx.$emit('row-dragend', $event);
2126
+ }),
2127
+ onRowDrop: _cache[11] || (_cache[11] = function ($event) {
2128
+ return _ctx.$emit('row-drop', $event);
2129
+ }),
2130
+ onRowToggle: _cache[12] || (_cache[12] = function ($event) {
2131
+ return _ctx.$emit('row-toggle', $event);
2132
+ }),
2133
+ onRadioChange: _cache[13] || (_cache[13] = function ($event) {
2134
+ return _ctx.$emit('radio-change', $event);
2135
+ }),
2136
+ onCheckboxChange: _cache[14] || (_cache[14] = function ($event) {
2137
+ return _ctx.$emit('checkbox-change', $event);
2138
+ }),
2139
+ onCellEditInit: _cache[15] || (_cache[15] = function ($event) {
2140
+ return _ctx.$emit('cell-edit-init', $event);
2141
+ }),
2142
+ onCellEditComplete: _cache[16] || (_cache[16] = function ($event) {
2143
+ return _ctx.$emit('cell-edit-complete', $event);
2144
+ }),
2145
+ onCellEditCancel: _cache[17] || (_cache[17] = function ($event) {
2146
+ return _ctx.$emit('cell-edit-cancel', $event);
2147
+ }),
2148
+ onRowEditInit: _cache[18] || (_cache[18] = function ($event) {
2149
+ return _ctx.$emit('row-edit-init', $event);
2150
+ }),
2151
+ onRowEditSave: _cache[19] || (_cache[19] = function ($event) {
2152
+ return _ctx.$emit('row-edit-save', $event);
2153
+ }),
2154
+ onRowEditCancel: _cache[20] || (_cache[20] = function ($event) {
2155
+ return _ctx.$emit('row-edit-cancel', $event);
2156
+ }),
2157
+ onEditingMetaChange: _cache[21] || (_cache[21] = function ($event) {
2158
+ return _ctx.$emit('editing-meta-change', $event);
2159
+ }),
2160
+ unstyled: _ctx.unstyled,
2161
+ pt: _ctx.pt
2162
+ }, 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"]);
2163
+ }), 128)) : (vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
1885
2164
  key: 1,
1886
- "class": _ctx.cx('emptyMessage'),
1887
- role: "row"
1888
- }, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
1889
- colspan: $options.columnsLength
1890
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
1891
- key: 0
1892
- })) : vue.createCommentVNode("", true)], 16, _hoisted_7)], 16))], 16);
2165
+ empty: $props.empty,
2166
+ columns: $props.columns,
2167
+ templates: $props.templates
2168
+ }, null, 8, ["empty", "columns", "templates"]))], 16);
1893
2169
  }
1894
2170
 
1895
2171
  script$7.render = render$7;
@@ -2006,13 +2282,9 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
2006
2282
 
2007
2283
  script$6.render = render$6;
2008
2284
 
2009
- function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2(); }
2010
- 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."); }
2011
- function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
2012
- function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
2013
- 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; } } }; }
2014
- 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); }
2015
- 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; }
2285
+ 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; } } }; }
2286
+ 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); }
2287
+ 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; }
2016
2288
  var script$5 = {
2017
2289
  name: 'TableFooter',
2018
2290
  hostName: 'DataTable',
@@ -2027,6 +2299,26 @@ var script$5 = {
2027
2299
  "default": null
2028
2300
  }
2029
2301
  },
2302
+ provide: function provide() {
2303
+ return {
2304
+ $rows: this.d_footerRows,
2305
+ $columns: this.d_footerColumns
2306
+ };
2307
+ },
2308
+ data: function data() {
2309
+ return {
2310
+ d_footerRows: new utils.HelperSet({
2311
+ type: 'Row'
2312
+ }),
2313
+ d_footerColumns: new utils.HelperSet({
2314
+ type: 'Column'
2315
+ })
2316
+ };
2317
+ },
2318
+ beforeUnmount: function beforeUnmount() {
2319
+ this.d_footerRows.clear();
2320
+ this.d_footerColumns.clear();
2321
+ },
2030
2322
  methods: {
2031
2323
  columnProp: function columnProp(col, prop) {
2032
2324
  return utils.ObjectUtils.getVNodeProp(col, prop);
@@ -2071,36 +2363,12 @@ var script$5 = {
2071
2363
  return row.props && row.props.pt ? row.props.pt : undefined; //@todo
2072
2364
  },
2073
2365
  getFooterRows: function getFooterRows() {
2074
- var rows = [];
2075
- var columnGroup = this.columnGroup;
2076
- if (columnGroup.children && columnGroup.children["default"]) {
2077
- var _iterator = _createForOfIteratorHelper$2(columnGroup.children["default"]()),
2078
- _step;
2079
- try {
2080
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2081
- var child = _step.value;
2082
- if (child.type.name === 'Row') {
2083
- rows.push(child);
2084
- } else if (child.children && child.children instanceof Array) {
2085
- rows = child.children;
2086
- }
2087
- }
2088
- } catch (err) {
2089
- _iterator.e(err);
2090
- } finally {
2091
- _iterator.f();
2092
- }
2093
- return rows;
2094
- }
2366
+ var _this$d_footerRows;
2367
+ return (_this$d_footerRows = this.d_footerRows) === null || _this$d_footerRows === void 0 ? void 0 : _this$d_footerRows.get(this.columnGroup, this.columnGroup.children);
2095
2368
  },
2096
2369
  getFooterColumns: function getFooterColumns(row) {
2097
- var cols = [];
2098
- if (row.children && row.children["default"]) {
2099
- row.children["default"]().forEach(function (child) {
2100
- 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);
2101
- });
2102
- return cols;
2103
- }
2370
+ var _this$d_footerColumns;
2371
+ return (_this$d_footerColumns = this.d_footerColumns) === null || _this$d_footerColumns === void 0 ? void 0 : _this$d_footerColumns.get(row, row.children);
2104
2372
  }
2105
2373
  },
2106
2374
  computed: {
@@ -2109,20 +2377,20 @@ var script$5 = {
2109
2377
  if (this.columnGroup) {
2110
2378
  hasFooter = true;
2111
2379
  } else if (this.columns) {
2112
- var _iterator2 = _createForOfIteratorHelper$2(this.columns),
2113
- _step2;
2380
+ var _iterator = _createForOfIteratorHelper$1(this.columns),
2381
+ _step;
2114
2382
  try {
2115
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2116
- var col = _step2.value;
2383
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2384
+ var col = _step.value;
2117
2385
  if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
2118
2386
  hasFooter = true;
2119
2387
  break;
2120
2388
  }
2121
2389
  }
2122
2390
  } catch (err) {
2123
- _iterator2.e(err);
2391
+ _iterator.e(err);
2124
2392
  } finally {
2125
- _iterator2.f();
2393
+ _iterator.f();
2126
2394
  }
2127
2395
  }
2128
2396
  return hasFooter;
@@ -2412,6 +2680,7 @@ var script$4 = {
2412
2680
  onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
2413
2681
  switch (event.code) {
2414
2682
  case 'Enter':
2683
+ case 'NumpadEnter':
2415
2684
  case 'Space':
2416
2685
  this.toggleMenu(event);
2417
2686
  break;
@@ -3193,6 +3462,7 @@ var script$2 = {
3193
3462
  },
3194
3463
  context: {
3195
3464
  index: this.index,
3465
+ sortable: this.column.props.sortable === '' || this.column.props.sortable,
3196
3466
  sorted: this.isColumnSorted(),
3197
3467
  resizable: this.resizableColumns,
3198
3468
  size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size,
@@ -3213,7 +3483,7 @@ var script$2 = {
3213
3483
  });
3214
3484
  },
3215
3485
  onKeyDown: function onKeyDown(event) {
3216
- if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
3486
+ if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
3217
3487
  this.$emit('column-click', {
3218
3488
  originalEvent: event,
3219
3489
  column: this.column
@@ -3228,16 +3498,28 @@ var script$2 = {
3228
3498
  });
3229
3499
  },
3230
3500
  onDragStart: function onDragStart(event) {
3231
- this.$emit('column-dragstart', event);
3501
+ this.$emit('column-dragstart', {
3502
+ originalEvent: event,
3503
+ column: this.column
3504
+ });
3232
3505
  },
3233
3506
  onDragOver: function onDragOver(event) {
3234
- this.$emit('column-dragover', event);
3507
+ this.$emit('column-dragover', {
3508
+ originalEvent: event,
3509
+ column: this.column
3510
+ });
3235
3511
  },
3236
3512
  onDragLeave: function onDragLeave(event) {
3237
- this.$emit('column-dragleave', event);
3513
+ this.$emit('column-dragleave', {
3514
+ originalEvent: event,
3515
+ column: this.column
3516
+ });
3238
3517
  },
3239
3518
  onDrop: function onDrop(event) {
3240
- this.$emit('column-drop', event);
3519
+ this.$emit('column-drop', {
3520
+ originalEvent: event,
3521
+ column: this.column
3522
+ });
3241
3523
  },
3242
3524
  onResizeStart: function onResizeStart(event) {
3243
3525
  this.$emit('column-resizestart', event);
@@ -3279,8 +3561,10 @@ var script$2 = {
3279
3561
  var filterRow = this.$el.parentElement.nextElementSibling;
3280
3562
  if (filterRow) {
3281
3563
  var index = utils.DomHandler.index(this.$el);
3282
- filterRow.children[index].style.left = this.styleObject.left;
3283
- filterRow.children[index].style.right = this.styleObject.right;
3564
+ if (filterRow.children[index]) {
3565
+ filterRow.children[index].style.left = this.styleObject.left;
3566
+ filterRow.children[index].style.right = this.styleObject.right;
3567
+ }
3284
3568
  }
3285
3569
  }
3286
3570
  },
@@ -3477,13 +3761,6 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
3477
3761
 
3478
3762
  script$2.render = render$2;
3479
3763
 
3480
- function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
3481
- 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."); }
3482
- function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
3483
- function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
3484
- 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; } } }; }
3485
- 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); }
3486
- 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; }
3487
3764
  var script$1 = {
3488
3765
  name: 'TableHeader',
3489
3766
  hostName: 'DataTable',
@@ -3559,6 +3836,26 @@ var script$1 = {
3559
3836
  "default": null
3560
3837
  }
3561
3838
  },
3839
+ provide: function provide() {
3840
+ return {
3841
+ $rows: this.d_headerRows,
3842
+ $columns: this.d_headerColumns
3843
+ };
3844
+ },
3845
+ data: function data() {
3846
+ return {
3847
+ d_headerRows: new utils.HelperSet({
3848
+ type: 'Row'
3849
+ }),
3850
+ d_headerColumns: new utils.HelperSet({
3851
+ type: 'Column'
3852
+ })
3853
+ };
3854
+ },
3855
+ beforeUnmount: function beforeUnmount() {
3856
+ this.d_headerRows.clear();
3857
+ this.d_headerColumns.clear();
3858
+ },
3562
3859
  methods: {
3563
3860
  columnProp: function columnProp(col, prop) {
3564
3861
  return utils.ObjectUtils.getVNodeProp(col, prop);
@@ -3631,36 +3928,12 @@ var script$1 = {
3631
3928
  return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
3632
3929
  },
3633
3930
  getHeaderRows: function getHeaderRows() {
3634
- var rows = [];
3635
- var columnGroup = this.columnGroup;
3636
- if (columnGroup.children && columnGroup.children["default"]) {
3637
- var _iterator = _createForOfIteratorHelper$1(columnGroup.children["default"]()),
3638
- _step;
3639
- try {
3640
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3641
- var child = _step.value;
3642
- if (child.type.name === 'Row') {
3643
- rows.push(child);
3644
- } else if (child.children && child.children instanceof Array) {
3645
- rows = child.children;
3646
- }
3647
- }
3648
- } catch (err) {
3649
- _iterator.e(err);
3650
- } finally {
3651
- _iterator.f();
3652
- }
3653
- return rows;
3654
- }
3931
+ var _this$d_headerRows;
3932
+ return (_this$d_headerRows = this.d_headerRows) === null || _this$d_headerRows === void 0 ? void 0 : _this$d_headerRows.get(this.columnGroup, this.columnGroup.children);
3655
3933
  },
3656
3934
  getHeaderColumns: function getHeaderColumns(row) {
3657
- var cols = [];
3658
- if (row.children && row.children["default"]) {
3659
- row.children["default"]().forEach(function (child) {
3660
- 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);
3661
- });
3662
- return cols;
3663
- }
3935
+ var _this$d_headerColumns;
3936
+ return (_this$d_headerColumns = this.d_headerColumns) === null || _this$d_headerColumns === void 0 ? void 0 : _this$d_headerColumns.get(row, row.children);
3664
3937
  }
3665
3938
  },
3666
3939
  computed: {
@@ -3901,6 +4174,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3901
4174
  script$1.render = render$1;
3902
4175
 
3903
4176
  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); }
4177
+ var _excluded = ["expanded"];
4178
+ 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; }
4179
+ 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; }
3904
4180
  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; }
3905
4181
  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; }
3906
4182
  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; }
@@ -3919,8 +4195,14 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
3919
4195
  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; }
3920
4196
  var script = {
3921
4197
  name: 'DataTable',
3922
- "extends": script$b,
4198
+ "extends": script$c,
3923
4199
  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'],
4200
+ provide: function provide() {
4201
+ return {
4202
+ $columns: this.d_columns,
4203
+ $columnGroups: this.d_columnGroups
4204
+ };
4205
+ },
3924
4206
  data: function data() {
3925
4207
  return {
3926
4208
  d_first: this.first,
@@ -3931,11 +4213,16 @@ var script = {
3931
4213
  d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
3932
4214
  d_groupRowsSortMeta: null,
3933
4215
  d_selectionKeys: null,
3934
- d_expandedRowKeys: null,
3935
4216
  d_columnOrder: null,
3936
4217
  d_editingRowKeys: null,
3937
4218
  d_editingMeta: {},
3938
- d_filters: this.cloneFilters(this.filters)
4219
+ d_filters: this.cloneFilters(this.filters),
4220
+ d_columns: new utils.HelperSet({
4221
+ type: 'Column'
4222
+ }),
4223
+ d_columnGroups: new utils.HelperSet({
4224
+ type: 'ColumnGroup'
4225
+ })
3939
4226
  };
3940
4227
  },
3941
4228
  rowTouched: false,
@@ -3949,6 +4236,7 @@ var script = {
3949
4236
  colReorderIconWidth: null,
3950
4237
  colReorderIconHeight: null,
3951
4238
  draggedColumn: null,
4239
+ draggedColumnElement: null,
3952
4240
  draggedRowIndex: null,
3953
4241
  droppedRowIndex: null,
3954
4242
  rowDragging: null,
@@ -3982,11 +4270,6 @@ var script = {
3982
4270
  }
3983
4271
  }
3984
4272
  },
3985
- expandedRows: function expandedRows(newValue) {
3986
- if (this.dataKey) {
3987
- this.updateExpandedRowKeys(newValue);
3988
- }
3989
- },
3990
4273
  editingRows: {
3991
4274
  immediate: true,
3992
4275
  handler: function handler(newValue) {
@@ -4019,6 +4302,8 @@ var script = {
4019
4302
  this.unbindColumnResizeEvents();
4020
4303
  this.destroyStyleElement();
4021
4304
  this.destroyResponsiveStyle();
4305
+ this.d_columns.clear();
4306
+ this.d_columnGroups.clear();
4022
4307
  },
4023
4308
  updated: function updated() {
4024
4309
  if (this.isStateful()) {
@@ -4033,6 +4318,7 @@ var script = {
4033
4318
  return utils.ObjectUtils.getVNodeProp(col, prop);
4034
4319
  },
4035
4320
  onPage: function onPage(event) {
4321
+ var _this = this;
4036
4322
  this.clearEditingMetaData();
4037
4323
  this.d_first = event.first;
4038
4324
  this.d_rows = event.rows;
@@ -4042,15 +4328,18 @@ var script = {
4042
4328
  this.$emit('update:first', this.d_first);
4043
4329
  this.$emit('update:rows', this.d_rows);
4044
4330
  this.$emit('page', pageEvent);
4045
- this.$emit('value-change', this.processedData);
4331
+ this.$nextTick(function () {
4332
+ _this.$emit('value-change', _this.processedData);
4333
+ });
4046
4334
  },
4047
4335
  onColumnHeaderClick: function onColumnHeaderClick(e) {
4336
+ var _this2 = this;
4048
4337
  var event = e.originalEvent;
4049
4338
  var column = e.column;
4050
4339
  if (this.columnProp(column, 'sortable')) {
4051
4340
  var targetNode = event.target;
4052
4341
  var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
4053
- 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"]')) {
4342
+ 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)) {
4054
4343
  utils.DomHandler.clearSelection();
4055
4344
  if (this.sortMode === 'single') {
4056
4345
  if (this.d_sortField === columnField) {
@@ -4078,12 +4367,14 @@ var script = {
4078
4367
  this.$emit('update:multiSortMeta', this.d_multiSortMeta);
4079
4368
  }
4080
4369
  this.$emit('sort', this.createLazyLoadEvent(event));
4081
- this.$emit('value-change', this.processedData);
4370
+ this.$nextTick(function () {
4371
+ _this2.$emit('value-change', _this2.processedData);
4372
+ });
4082
4373
  }
4083
4374
  }
4084
4375
  },
4085
4376
  sortSingle: function sortSingle(value) {
4086
- var _this = this;
4377
+ var _this3 = this;
4087
4378
  this.clearEditingMetaData();
4088
4379
  if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
4089
4380
  this.d_multiSortMeta = [{
@@ -4113,12 +4404,12 @@ var script = {
4113
4404
  data.sort(function (data1, data2) {
4114
4405
  var value1 = resolvedFieldData.get(data1);
4115
4406
  var value2 = resolvedFieldData.get(data2);
4116
- return utils.ObjectUtils.sort(value1, value2, _this.d_sortOrder, comparer, _this.d_nullSortOrder);
4407
+ return utils.ObjectUtils.sort(value1, value2, _this3.d_sortOrder, comparer, _this3.d_nullSortOrder);
4117
4408
  });
4118
4409
  return data;
4119
4410
  },
4120
4411
  sortMultiple: function sortMultiple(value) {
4121
- var _this2 = this;
4412
+ var _this4 = this;
4122
4413
  this.clearEditingMetaData();
4123
4414
  if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
4124
4415
  var firstSortMeta = this.d_multiSortMeta[0];
@@ -4129,7 +4420,7 @@ var script = {
4129
4420
  }
4130
4421
  var data = _toConsumableArray(value);
4131
4422
  data.sort(function (data1, data2) {
4132
- return _this2.multisortField(data1, data2, 0);
4423
+ return _this4.multisortField(data1, data2, 0);
4133
4424
  });
4134
4425
  return data;
4135
4426
  },
@@ -4185,7 +4476,7 @@ var script = {
4185
4476
  return Object.fromEntries(entries);
4186
4477
  },
4187
4478
  filter: function filter(data) {
4188
- var _this3 = this;
4479
+ var _this5 = this;
4189
4480
  if (!data) {
4190
4481
  return;
4191
4482
  }
@@ -4194,7 +4485,7 @@ var script = {
4194
4485
  var globalFilterFieldsArray;
4195
4486
  if (activeFilters['global']) {
4196
4487
  globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
4197
- return _this3.columnProp(col, 'filterField') || _this3.columnProp(col, 'field');
4488
+ return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
4198
4489
  });
4199
4490
  }
4200
4491
  var filteredValue = [];
@@ -4256,7 +4547,9 @@ var script = {
4256
4547
  var filterEvent = this.createLazyLoadEvent();
4257
4548
  filterEvent.filteredValue = filteredValue;
4258
4549
  this.$emit('filter', filterEvent);
4259
- this.$emit('value-change', filteredValue);
4550
+ this.$nextTick(function () {
4551
+ _this5.$emit('value-change', _this5.processedData);
4552
+ });
4260
4553
  return filteredValue;
4261
4554
  },
4262
4555
  executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
@@ -4412,6 +4705,7 @@ var script = {
4412
4705
  this.onEndKey(event, row, rowIndex, slotProps);
4413
4706
  break;
4414
4707
  case 'Enter':
4708
+ case 'NumpadEnter':
4415
4709
  this.onEnterKey(event, rowData, rowIndex);
4416
4710
  break;
4417
4711
  case 'Space':
@@ -4662,40 +4956,21 @@ var script = {
4662
4956
  this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
4663
4957
  }
4664
4958
  },
4665
- updateExpandedRowKeys: function updateExpandedRowKeys(expandedRows) {
4666
- if (expandedRows && expandedRows.length) {
4667
- this.d_expandedRowKeys = {};
4668
- var _iterator4 = _createForOfIteratorHelper(expandedRows),
4959
+ updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4960
+ if (editingRows && editingRows.length) {
4961
+ this.d_editingRowKeys = {};
4962
+ var _iterator4 = _createForOfIteratorHelper(editingRows),
4669
4963
  _step4;
4670
4964
  try {
4671
4965
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
4672
4966
  var data = _step4.value;
4673
- this.d_expandedRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4967
+ this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4674
4968
  }
4675
4969
  } catch (err) {
4676
4970
  _iterator4.e(err);
4677
4971
  } finally {
4678
4972
  _iterator4.f();
4679
4973
  }
4680
- } else {
4681
- this.d_expandedRowKeys = null;
4682
- }
4683
- },
4684
- updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
4685
- if (editingRows && editingRows.length) {
4686
- this.d_editingRowKeys = {};
4687
- var _iterator5 = _createForOfIteratorHelper(editingRows),
4688
- _step5;
4689
- try {
4690
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
4691
- var data = _step5.value;
4692
- this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
4693
- }
4694
- } catch (err) {
4695
- _iterator5.e(err);
4696
- } finally {
4697
- _iterator5.f();
4698
- }
4699
4974
  } else {
4700
4975
  this.d_editingRowKeys = null;
4701
4976
  }
@@ -4733,7 +5008,7 @@ var script = {
4733
5008
  this.$emit('update:selection', _selection);
4734
5009
  },
4735
5010
  exportCSV: function exportCSV(options, data) {
4736
- var _this4 = this;
5011
+ var _this6 = this;
4737
5012
  var csv = "\uFEFF";
4738
5013
  if (!data) {
4739
5014
  data = this.processedData;
@@ -4755,16 +5030,16 @@ var script = {
4755
5030
  data.forEach(function (record) {
4756
5031
  csv += '\n';
4757
5032
  var rowInitiated = false;
4758
- for (var _i = 0; _i < _this4.columns.length; _i++) {
4759
- var _column = _this4.columns[_i];
4760
- if (_this4.columnProp(_column, 'exportable') !== false && _this4.columnProp(_column, 'field')) {
4761
- if (rowInitiated) csv += _this4.csvSeparator;else rowInitiated = true;
4762
- var cellData = utils.ObjectUtils.resolveFieldData(record, _this4.columnProp(_column, 'field'));
5033
+ for (var _i = 0; _i < _this6.columns.length; _i++) {
5034
+ var _column = _this6.columns[_i];
5035
+ if (_this6.columnProp(_column, 'exportable') !== false && _this6.columnProp(_column, 'field')) {
5036
+ if (rowInitiated) csv += _this6.csvSeparator;else rowInitiated = true;
5037
+ var cellData = utils.ObjectUtils.resolveFieldData(record, _this6.columnProp(_column, 'field'));
4763
5038
  if (cellData != null) {
4764
- if (_this4.exportFunction) {
4765
- cellData = _this4.exportFunction({
5039
+ if (_this6.exportFunction) {
5040
+ cellData = _this6.exportFunction({
4766
5041
  data: cellData,
4767
- field: _this4.columnProp(_column, 'field')
5042
+ field: _this6.columnProp(_column, 'field')
4768
5043
  });
4769
5044
  } else cellData = String(cellData).replace(/"/g, '""');
4770
5045
  } else cellData = '';
@@ -4867,19 +5142,19 @@ var script = {
4867
5142
  this.styleElement.innerHTML = innerHTML;
4868
5143
  },
4869
5144
  bindColumnResizeEvents: function bindColumnResizeEvents() {
4870
- var _this5 = this;
5145
+ var _this7 = this;
4871
5146
  if (!this.documentColumnResizeListener) {
4872
5147
  this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
4873
- if (_this5.columnResizing) {
4874
- _this5.onColumnResize(event);
5148
+ if (_this7.columnResizing) {
5149
+ _this7.onColumnResize(event);
4875
5150
  }
4876
5151
  });
4877
5152
  }
4878
5153
  if (!this.documentColumnResizeEndListener) {
4879
5154
  this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
4880
- if (_this5.columnResizing) {
4881
- _this5.columnResizing = false;
4882
- _this5.onColumnResizeEnd();
5155
+ if (_this7.columnResizing) {
5156
+ _this7.columnResizing = false;
5157
+ _this7.onColumnResizeEnd();
4883
5158
  }
4884
5159
  });
4885
5160
  }
@@ -4901,23 +5176,28 @@ var script = {
4901
5176
  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;
4902
5177
  }
4903
5178
  },
4904
- onColumnHeaderDragStart: function onColumnHeaderDragStart(event) {
5179
+ onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
5180
+ var event = e.originalEvent,
5181
+ column = e.column;
4905
5182
  if (this.columnResizing) {
4906
5183
  event.preventDefault();
4907
5184
  return;
4908
5185
  }
4909
5186
  this.colReorderIconWidth = utils.DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
4910
5187
  this.colReorderIconHeight = utils.DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
4911
- this.draggedColumn = this.findParentHeader(event.target);
5188
+ this.draggedColumn = column;
5189
+ this.draggedColumnElement = this.findParentHeader(event.target);
4912
5190
  event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
4913
5191
  },
4914
- onColumnHeaderDragOver: function onColumnHeaderDragOver(event) {
5192
+ onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
5193
+ var event = e.originalEvent,
5194
+ column = e.column;
4915
5195
  var dropHeader = this.findParentHeader(event.target);
4916
- if (this.reorderableColumns && this.draggedColumn && dropHeader) {
5196
+ if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
4917
5197
  event.preventDefault();
4918
5198
  var containerOffset = utils.DomHandler.getOffset(this.$el);
4919
5199
  var dropHeaderOffset = utils.DomHandler.getOffset(dropHeader);
4920
- if (this.draggedColumn !== dropHeader) {
5200
+ if (this.draggedColumnElement !== dropHeader) {
4921
5201
  var targetLeft = dropHeaderOffset.left - containerOffset.left;
4922
5202
  var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
4923
5203
  this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
@@ -4936,34 +5216,67 @@ var script = {
4936
5216
  }
4937
5217
  }
4938
5218
  },
4939
- onColumnHeaderDragLeave: function onColumnHeaderDragLeave(event) {
4940
- if (this.reorderableColumns && this.draggedColumn) {
5219
+ onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
5220
+ var event = e.originalEvent;
5221
+ if (this.reorderableColumns && this.draggedColumnElement) {
4941
5222
  event.preventDefault();
4942
5223
  this.$refs.reorderIndicatorUp.style.display = 'none';
4943
5224
  this.$refs.reorderIndicatorDown.style.display = 'none';
4944
5225
  }
4945
5226
  },
4946
- onColumnHeaderDrop: function onColumnHeaderDrop(event) {
5227
+ onColumnHeaderDrop: function onColumnHeaderDrop(e) {
5228
+ var _this8 = this;
5229
+ var event = e.originalEvent,
5230
+ column = e.column;
4947
5231
  event.preventDefault();
4948
- if (this.draggedColumn) {
4949
- var dragIndex = utils.DomHandler.index(this.draggedColumn);
5232
+ if (this.draggedColumnElement) {
5233
+ var dragIndex = utils.DomHandler.index(this.draggedColumnElement);
4950
5234
  var dropIndex = utils.DomHandler.index(this.findParentHeader(event.target));
4951
5235
  var allowDrop = dragIndex !== dropIndex;
4952
5236
  if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
4953
5237
  allowDrop = false;
4954
5238
  }
4955
5239
  if (allowDrop) {
4956
- utils.ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);
5240
+ var isSameColumn = function isSameColumn(col1, col2) {
5241
+ 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');
5242
+ };
5243
+ var dragColIndex = this.columns.findIndex(function (child) {
5244
+ return isSameColumn(child, _this8.draggedColumn);
5245
+ });
5246
+ var dropColIndex = this.columns.findIndex(function (child) {
5247
+ return isSameColumn(child, column);
5248
+ });
5249
+ var widths = [];
5250
+ var headers = utils.DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
5251
+ headers.forEach(function (header) {
5252
+ return widths.push(utils.DomHandler.getOuterWidth(header));
5253
+ });
5254
+ var movedItem = widths.find(function (_, index) {
5255
+ return index === dragColIndex;
5256
+ });
5257
+ var remainingItems = widths.filter(function (_, index) {
5258
+ return index !== dragColIndex;
5259
+ });
5260
+ var reorderedWidths = [].concat(_toConsumableArray(remainingItems.slice(0, dropColIndex)), [movedItem], _toConsumableArray(remainingItems.slice(dropColIndex)));
5261
+ this.addColumnWidthStyles(reorderedWidths);
5262
+ if (dropColIndex < dragColIndex && this.dropPosition === 1) {
5263
+ dropColIndex++;
5264
+ }
5265
+ if (dropColIndex > dragColIndex && this.dropPosition === -1) {
5266
+ dropColIndex--;
5267
+ }
5268
+ utils.ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
4957
5269
  this.updateReorderableColumns();
4958
5270
  this.$emit('column-reorder', {
4959
5271
  originalEvent: event,
4960
- dragIndex: dragIndex,
4961
- dropIndex: dropIndex
5272
+ dragIndex: dragColIndex,
5273
+ dropIndex: dropColIndex
4962
5274
  });
4963
5275
  }
4964
5276
  this.$refs.reorderIndicatorUp.style.display = 'none';
4965
5277
  this.$refs.reorderIndicatorDown.style.display = 'none';
4966
- this.draggedColumn.draggable = false;
5278
+ this.draggedColumnElement.draggable = false;
5279
+ this.draggedColumnElement = null;
4967
5280
  this.draggedColumn = null;
4968
5281
  this.dropPosition = null;
4969
5282
  }
@@ -5073,28 +5386,23 @@ var script = {
5073
5386
  event.preventDefault();
5074
5387
  },
5075
5388
  toggleRow: function toggleRow(event) {
5389
+ var _this9 = this;
5390
+ var expanded = event.expanded,
5391
+ rest = _objectWithoutProperties(event, _excluded);
5076
5392
  var rowData = event.data;
5077
- var expanded;
5078
- var expandedRowIndex;
5079
- var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
5393
+ var expandedRows;
5080
5394
  if (this.dataKey) {
5081
- expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
5082
- } else {
5083
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5084
- expanded = expandedRowIndex > -1;
5085
- }
5086
- if (expanded) {
5087
- if (expandedRowIndex == null) {
5088
- expandedRowIndex = this.findIndex(rowData, this.expandedRows);
5089
- }
5090
- _expandedRows.splice(expandedRowIndex, 1);
5091
- this.$emit('update:expandedRows', _expandedRows);
5092
- this.$emit('row-collapse', event);
5395
+ var value = utils.ObjectUtils.resolveFieldData(rowData, this.dataKey);
5396
+ expandedRows = this.expandedRows ? _objectSpread$1({}, this.expandedRows) : {};
5397
+ expanded ? expandedRows[value] = true : delete expandedRows[value];
5093
5398
  } else {
5094
- _expandedRows.push(rowData);
5095
- this.$emit('update:expandedRows', _expandedRows);
5096
- this.$emit('row-expand', event);
5399
+ expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
5400
+ expanded ? expandedRows.push(rowData) : expandedRows = expandedRows.filter(function (d) {
5401
+ return !_this9.equals(rowData, d);
5402
+ });
5097
5403
  }
5404
+ this.$emit('update:expandedRows', expandedRows);
5405
+ expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
5098
5406
  },
5099
5407
  toggleRowGroup: function toggleRowGroup(e) {
5100
5408
  var event = e.originalEvent;
@@ -5164,7 +5472,6 @@ var script = {
5164
5472
  }
5165
5473
  if (this.expandedRows) {
5166
5474
  state.expandedRows = this.expandedRows;
5167
- state.expandedRowKeys = this.d_expandedRowKeys;
5168
5475
  }
5169
5476
  if (this.expandedRowGroups) {
5170
5477
  state.expandedRowGroups = this.expandedRowGroups;
@@ -5212,7 +5519,6 @@ var script = {
5212
5519
  this.d_columnOrder = restoredState.columnOrder;
5213
5520
  }
5214
5521
  if (restoredState.expandedRows) {
5215
- this.d_expandedRowKeys = restoredState.expandedRowKeys;
5216
5522
  this.$emit('update:expandedRows', restoredState.expandedRows);
5217
5523
  }
5218
5524
  if (restoredState.expandedRowGroups) {
@@ -5236,23 +5542,25 @@ var script = {
5236
5542
  state.tableWidth = utils.DomHandler.getOuterWidth(this.$refs.table) + 'px';
5237
5543
  }
5238
5544
  },
5545
+ addColumnWidthStyles: function addColumnWidthStyles(widths) {
5546
+ this.createStyleElement();
5547
+ var innerHTML = '';
5548
+ 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\"]");
5549
+ widths.forEach(function (width, index) {
5550
+ var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
5551
+ 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 ");
5552
+ });
5553
+ this.styleElement.innerHTML = innerHTML;
5554
+ },
5239
5555
  restoreColumnWidths: function restoreColumnWidths() {
5240
5556
  if (this.columnWidthsState) {
5241
5557
  var widths = this.columnWidthsState.split(',');
5242
5558
  if (this.columnResizeMode === 'expand' && this.tableWidthState) {
5243
5559
  this.$refs.table.style.width = this.tableWidthState;
5244
5560
  this.$refs.table.style.minWidth = this.tableWidthState;
5245
- this.$el.style.width = this.tableWidthState;
5246
5561
  }
5247
5562
  if (utils.ObjectUtils.isNotEmpty(widths)) {
5248
- this.createStyleElement();
5249
- var innerHTML = '';
5250
- 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\"]");
5251
- widths.forEach(function (width, index) {
5252
- var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
5253
- 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 ");
5254
- });
5255
- this.styleElement.innerHTML = innerHTML;
5563
+ this.addColumnWidthStyles(widths);
5256
5564
  }
5257
5565
  }
5258
5566
  },
@@ -5323,9 +5631,6 @@ var script = {
5323
5631
  hasGlobalFilter: function hasGlobalFilter() {
5324
5632
  return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
5325
5633
  },
5326
- getChildren: function getChildren() {
5327
- return this.$slots["default"] ? this.$slots["default"]() : null;
5328
- },
5329
5634
  onFilterChange: function onFilterChange(filters) {
5330
5635
  this.d_filters = filters;
5331
5636
  },
@@ -5355,10 +5660,10 @@ var script = {
5355
5660
  return cloned;
5356
5661
  },
5357
5662
  updateReorderableColumns: function updateReorderableColumns() {
5358
- var _this6 = this;
5663
+ var _this10 = this;
5359
5664
  var columnOrder = [];
5360
5665
  this.columns.forEach(function (col) {
5361
- return columnOrder.push(_this6.columnProp(col, 'columnKey') || _this6.columnProp(col, 'field'));
5666
+ return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
5362
5667
  });
5363
5668
  this.d_columnOrder = columnOrder;
5364
5669
  },
@@ -5379,7 +5684,7 @@ var script = {
5379
5684
  var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
5380
5685
  var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
5381
5686
  var gridLinesSelector = ".p-datatable[".concat(this.attributeSelector, "].p-datatable-gridlines > ").concat(tableSelector);
5382
- 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");
5687
+ 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");
5383
5688
  this.responsiveStyleElement.innerHTML = innerHTML;
5384
5689
  }
5385
5690
  },
@@ -5395,22 +5700,6 @@ var script = {
5395
5700
  this.styleElement = null;
5396
5701
  }
5397
5702
  },
5398
- recursiveGetChildren: function recursiveGetChildren(children, results) {
5399
- var _this7 = this;
5400
- if (!results) {
5401
- results = [];
5402
- }
5403
- if (children && children.length) {
5404
- children.forEach(function (child) {
5405
- if (child.children instanceof Array) {
5406
- results.concat(_this7.recursiveGetChildren(child.children, results));
5407
- } else if (child.type.name == 'Column') {
5408
- results.push(child);
5409
- }
5410
- });
5411
- }
5412
- return results;
5413
- },
5414
5703
  dataToRender: function dataToRender(data) {
5415
5704
  var _data = data || this.processedData;
5416
5705
  if (_data && this.paginator) {
@@ -5428,27 +5717,23 @@ var script = {
5428
5717
  },
5429
5718
  computed: {
5430
5719
  columns: function columns() {
5431
- var children = this.getChildren();
5432
- if (!children) {
5433
- return;
5434
- }
5435
- var cols = this.recursiveGetChildren(children, []);
5720
+ var cols = this.d_columns.get(this);
5436
5721
  if (this.reorderableColumns && this.d_columnOrder) {
5437
5722
  var orderedColumns = [];
5438
- var _iterator6 = _createForOfIteratorHelper(this.d_columnOrder),
5439
- _step6;
5723
+ var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
5724
+ _step5;
5440
5725
  try {
5441
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
5442
- var columnKey = _step6.value;
5726
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
5727
+ var columnKey = _step5.value;
5443
5728
  var column = this.findColumnByKey(cols, columnKey);
5444
5729
  if (column && !this.columnProp(column, 'hidden')) {
5445
5730
  orderedColumns.push(column);
5446
5731
  }
5447
5732
  }
5448
5733
  } catch (err) {
5449
- _iterator6.e(err);
5734
+ _iterator5.e(err);
5450
5735
  } finally {
5451
- _iterator6.f();
5736
+ _iterator5.f();
5452
5737
  }
5453
5738
  return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
5454
5739
  return orderedColumns.indexOf(item) < 0;
@@ -5456,52 +5741,30 @@ var script = {
5456
5741
  }
5457
5742
  return cols;
5458
5743
  },
5744
+ columnGroups: function columnGroups() {
5745
+ return this.d_columnGroups.get(this);
5746
+ },
5459
5747
  headerColumnGroup: function headerColumnGroup() {
5460
- var children = this.getChildren();
5461
- if (children) {
5462
- var _iterator7 = _createForOfIteratorHelper(children),
5463
- _step7;
5464
- try {
5465
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
5466
- var child = _step7.value;
5467
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
5468
- return child;
5469
- }
5470
- }
5471
- } catch (err) {
5472
- _iterator7.e(err);
5473
- } finally {
5474
- _iterator7.f();
5475
- }
5476
- }
5477
- return null;
5748
+ var _this$columnGroups,
5749
+ _this11 = this;
5750
+ return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
5751
+ return _this11.columnProp(group, 'type') === 'header';
5752
+ });
5478
5753
  },
5479
5754
  footerColumnGroup: function footerColumnGroup() {
5480
- var children = this.getChildren();
5481
- if (children) {
5482
- var _iterator8 = _createForOfIteratorHelper(children),
5483
- _step8;
5484
- try {
5485
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
5486
- var child = _step8.value;
5487
- if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
5488
- return child;
5489
- }
5490
- }
5491
- } catch (err) {
5492
- _iterator8.e(err);
5493
- } finally {
5494
- _iterator8.f();
5495
- }
5496
- }
5497
- return null;
5755
+ var _this$columnGroups2,
5756
+ _this12 = this;
5757
+ return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
5758
+ return _this12.columnProp(group, 'type') === 'footer';
5759
+ });
5498
5760
  },
5499
5761
  hasFilters: function hasFilters() {
5500
5762
  return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
5501
5763
  },
5502
5764
  processedData: function processedData() {
5765
+ var _this$virtualScroller;
5503
5766
  var data = this.value || [];
5504
- if (!this.lazy) {
5767
+ if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
5505
5768
  if (data && data.length) {
5506
5769
  if (this.hasFilters) {
5507
5770
  data = this.filter(data);
@@ -5535,14 +5798,14 @@ var script = {
5535
5798
  return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
5536
5799
  },
5537
5800
  allRowsSelected: function allRowsSelected() {
5538
- var _this8 = this;
5801
+ var _this13 = this;
5539
5802
  if (this.selectAll !== null) {
5540
5803
  return this.selectAll;
5541
5804
  } else {
5542
5805
  var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
5543
5806
  return utils.ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
5544
- return _this8.selection.some(function (s) {
5545
- return _this8.equals(s, v);
5807
+ return _this13.selection.some(function (s) {
5808
+ return _this13.equals(s, v);
5546
5809
  });
5547
5810
  });
5548
5811
  }
@@ -5782,7 +6045,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5782
6045
  expandedRowIcon: _ctx.expandedRowIcon,
5783
6046
  collapsedRowIcon: _ctx.collapsedRowIcon,
5784
6047
  expandedRows: _ctx.expandedRows,
5785
- expandedRowKeys: $data.d_expandedRowKeys,
5786
6048
  expandedRowGroups: _ctx.expandedRowGroups,
5787
6049
  editingRows: _ctx.editingRows,
5788
6050
  editingRowKeys: $data.d_editingRowKeys,
@@ -5848,7 +6110,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5848
6110
  onEditingMetaChange: $options.onEditingMetaChange,
5849
6111
  unstyled: _ctx.unstyled,
5850
6112
  pt: _ctx.pt
5851
- }, 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, {
6113
+ }, 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, {
5852
6114
  ref: "bodyRef",
5853
6115
  value: $options.dataToRender(slotProps.rows),
5854
6116
  "class": vue.normalizeClass(slotProps.styleClass),
@@ -5872,7 +6134,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5872
6134
  expandedRowIcon: _ctx.expandedRowIcon,
5873
6135
  collapsedRowIcon: _ctx.collapsedRowIcon,
5874
6136
  expandedRows: _ctx.expandedRows,
5875
- expandedRowKeys: $data.d_expandedRowKeys,
5876
6137
  expandedRowGroups: _ctx.expandedRowGroups,
5877
6138
  editingRows: _ctx.editingRows,
5878
6139
  editingRowKeys: $data.d_editingRowKeys,
@@ -5941,7 +6202,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5941
6202
  onEditingMetaChange: $options.onEditingMetaChange,
5942
6203
  unstyled: _ctx.unstyled,
5943
6204
  pt: _ctx.pt
5944
- }, 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({
6205
+ }, 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({
5945
6206
  key: 1,
5946
6207
  "class": _ctx.cx('virtualScrollerSpacer'),
5947
6208
  style: {