primevue 3.7.2 → 3.9.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 (504) hide show
  1. package/README.md +2 -2
  2. package/accordion/Accordion.vue +1 -1
  3. package/accordion/accordion.cjs.js +1 -1
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +1 -1
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +1 -1
  8. package/accordion/accordion.min.js +1 -1
  9. package/api/Api.d.ts +73 -32
  10. package/api/api.cjs.js +66 -32
  11. package/api/api.cjs.min.js +1 -1
  12. package/api/api.esm.js +66 -32
  13. package/api/api.esm.min.js +1 -1
  14. package/api/api.js +66 -32
  15. package/api/api.min.js +1 -1
  16. package/autocomplete/AutoComplete.d.ts +43 -9
  17. package/autocomplete/AutoComplete.vue +16 -9
  18. package/autocomplete/autocomplete.cjs.js +19 -11
  19. package/autocomplete/autocomplete.cjs.min.js +1 -1
  20. package/autocomplete/autocomplete.esm.js +19 -11
  21. package/autocomplete/autocomplete.esm.min.js +1 -1
  22. package/autocomplete/autocomplete.js +19 -11
  23. package/autocomplete/autocomplete.min.js +1 -1
  24. package/blockui/BlockUI.vue +1 -1
  25. package/blockui/blockui.cjs.js +5 -7
  26. package/blockui/blockui.cjs.min.js +1 -1
  27. package/blockui/blockui.esm.js +6 -8
  28. package/blockui/blockui.esm.min.js +1 -1
  29. package/blockui/blockui.js +5 -7
  30. package/blockui/blockui.min.js +1 -1
  31. package/breadcrumb/Breadcrumb.d.ts +7 -0
  32. package/breadcrumb/Breadcrumb.vue +4 -0
  33. package/breadcrumb/BreadcrumbItem.vue +5 -2
  34. package/breadcrumb/breadcrumb.cjs.js +6 -3
  35. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  36. package/breadcrumb/breadcrumb.esm.js +6 -3
  37. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  38. package/breadcrumb/breadcrumb.js +6 -3
  39. package/breadcrumb/breadcrumb.min.js +1 -1
  40. package/calendar/Calendar.d.ts +11 -1
  41. package/calendar/Calendar.vue +362 -67
  42. package/calendar/calendar.cjs.js +459 -168
  43. package/calendar/calendar.cjs.min.js +1 -1
  44. package/calendar/calendar.esm.js +461 -170
  45. package/calendar/calendar.esm.min.js +1 -1
  46. package/calendar/calendar.js +459 -168
  47. package/calendar/calendar.min.js +1 -1
  48. package/carousel/Carousel.d.ts +6 -1
  49. package/carousel/Carousel.vue +2 -2
  50. package/carousel/carousel.cjs.js +6 -6
  51. package/carousel/carousel.cjs.min.js +1 -1
  52. package/carousel/carousel.esm.js +6 -6
  53. package/carousel/carousel.esm.min.js +1 -1
  54. package/carousel/carousel.js +6 -6
  55. package/carousel/carousel.min.js +1 -1
  56. package/cascadeselect/CascadeSelect.d.ts +19 -6
  57. package/chart/Chart.vue +9 -2
  58. package/chart/chart.cjs.js +9 -2
  59. package/chart/chart.cjs.min.js +1 -1
  60. package/chart/chart.esm.js +9 -2
  61. package/chart/chart.esm.min.js +1 -1
  62. package/chart/chart.js +9 -2
  63. package/chart/chart.min.js +1 -1
  64. package/chips/Chips.d.ts +5 -1
  65. package/colorpicker/ColorPicker.d.ts +3 -0
  66. package/colorpicker/ColorPicker.vue +6 -1
  67. package/colorpicker/colorpicker.cjs.js +6 -1
  68. package/colorpicker/colorpicker.cjs.min.js +1 -1
  69. package/colorpicker/colorpicker.esm.js +6 -1
  70. package/colorpicker/colorpicker.esm.min.js +1 -1
  71. package/colorpicker/colorpicker.js +6 -1
  72. package/colorpicker/colorpicker.min.js +1 -1
  73. package/column/Column.d.ts +42 -11
  74. package/confirmationservice/ConfirmationService.d.ts +3 -2
  75. package/confirmdialog/ConfirmDialog.vue +8 -2
  76. package/confirmdialog/confirmdialog.cjs.js +11 -4
  77. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  78. package/confirmdialog/confirmdialog.esm.js +11 -4
  79. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  80. package/confirmdialog/confirmdialog.js +11 -4
  81. package/confirmdialog/confirmdialog.min.js +1 -1
  82. package/confirmpopup/ConfirmPopup.d.ts +7 -0
  83. package/confirmpopup/ConfirmPopup.vue +7 -4
  84. package/confirmpopup/confirmpopup.cjs.js +13 -5
  85. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  86. package/confirmpopup/confirmpopup.esm.js +14 -6
  87. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  88. package/confirmpopup/confirmpopup.js +13 -5
  89. package/confirmpopup/confirmpopup.min.js +1 -1
  90. package/contextmenu/ContextMenu.d.ts +5 -1
  91. package/contextmenu/ContextMenuSub.vue +8 -5
  92. package/contextmenu/contextmenu.cjs.js +8 -5
  93. package/contextmenu/contextmenu.cjs.min.js +1 -1
  94. package/contextmenu/contextmenu.esm.js +8 -5
  95. package/contextmenu/contextmenu.esm.min.js +1 -1
  96. package/contextmenu/contextmenu.js +8 -5
  97. package/contextmenu/contextmenu.min.js +1 -1
  98. package/core/core.js +7644 -0
  99. package/core/core.min.js +47 -0
  100. package/datatable/BodyCell.vue +37 -17
  101. package/datatable/ColumnFilter.vue +17 -6
  102. package/datatable/DataTable.d.ts +37 -9
  103. package/datatable/DataTable.vue +90 -48
  104. package/datatable/FooterCell.vue +2 -2
  105. package/datatable/HeaderCell.vue +2 -2
  106. package/datatable/TableBody.vue +15 -6
  107. package/datatable/TableFooter.vue +17 -2
  108. package/datatable/TableHeader.vue +17 -2
  109. package/datatable/datatable.cjs.js +321 -197
  110. package/datatable/datatable.cjs.min.js +1 -1
  111. package/datatable/datatable.esm.js +321 -197
  112. package/datatable/datatable.esm.min.js +1 -1
  113. package/datatable/datatable.js +321 -197
  114. package/datatable/datatable.min.js +1 -1
  115. package/dataview/DataView.d.ts +9 -4
  116. package/dataview/DataView.vue +8 -8
  117. package/dataview/dataview.cjs.js +12 -12
  118. package/dataview/dataview.cjs.min.js +1 -1
  119. package/dataview/dataview.esm.js +12 -12
  120. package/dataview/dataview.esm.min.js +1 -1
  121. package/dataview/dataview.js +12 -12
  122. package/dataview/dataview.min.js +1 -1
  123. package/dialog/Dialog.vue +6 -1
  124. package/dialog/dialog.cjs.js +4 -2
  125. package/dialog/dialog.cjs.min.js +1 -1
  126. package/dialog/dialog.esm.js +4 -2
  127. package/dialog/dialog.esm.min.js +1 -1
  128. package/dialog/dialog.js +4 -2
  129. package/dialog/dialog.min.js +1 -1
  130. package/dock/Dock.d.ts +10 -1
  131. package/dock/Dock.vue +1 -1
  132. package/dock/DockSub.vue +13 -8
  133. package/dock/dock.cjs.js +24 -10
  134. package/dock/dock.cjs.min.js +1 -1
  135. package/dock/dock.esm.js +20 -10
  136. package/dock/dock.esm.min.js +1 -1
  137. package/dock/dock.js +25 -12
  138. package/dock/dock.min.js +1 -1
  139. package/dropdown/Dropdown.d.ts +56 -13
  140. package/dropdown/Dropdown.vue +1 -0
  141. package/dropdown/dropdown.cjs.js +1 -0
  142. package/dropdown/dropdown.cjs.min.js +1 -1
  143. package/dropdown/dropdown.esm.js +1 -0
  144. package/dropdown/dropdown.esm.min.js +1 -1
  145. package/dropdown/dropdown.js +1 -0
  146. package/dropdown/dropdown.min.js +1 -1
  147. package/fileupload/FileUpload.d.ts +5 -0
  148. package/galleria/Galleria.d.ts +20 -4
  149. package/inplace/Inplace.d.ts +1 -0
  150. package/inplace/Inplace.vue +12 -1
  151. package/inplace/inplace.cjs.js +13 -2
  152. package/inplace/inplace.cjs.min.js +1 -1
  153. package/inplace/inplace.esm.js +13 -2
  154. package/inplace/inplace.esm.min.js +1 -1
  155. package/inplace/inplace.js +13 -2
  156. package/inplace/inplace.min.js +1 -1
  157. package/inputnumber/InputNumber.d.ts +1 -1
  158. package/inputnumber/InputNumber.vue +19 -3
  159. package/inputnumber/inputnumber.cjs.js +19 -3
  160. package/inputnumber/inputnumber.cjs.min.js +1 -1
  161. package/inputnumber/inputnumber.esm.js +19 -3
  162. package/inputnumber/inputnumber.esm.min.js +1 -1
  163. package/inputnumber/inputnumber.js +19 -3
  164. package/inputnumber/inputnumber.min.js +1 -1
  165. package/inputswitch/InputSwitch.vue +6 -3
  166. package/inputswitch/inputswitch.cjs.js +6 -3
  167. package/inputswitch/inputswitch.cjs.min.js +1 -1
  168. package/inputswitch/inputswitch.esm.js +6 -3
  169. package/inputswitch/inputswitch.esm.min.js +1 -1
  170. package/inputswitch/inputswitch.js +6 -3
  171. package/inputswitch/inputswitch.min.js +1 -1
  172. package/inputtext/InputText.d.ts +1 -1
  173. package/inputtext/InputText.vue +1 -1
  174. package/inputtext/inputtext.cjs.js +2 -2
  175. package/inputtext/inputtext.cjs.min.js +1 -1
  176. package/inputtext/inputtext.esm.js +3 -3
  177. package/inputtext/inputtext.esm.min.js +1 -1
  178. package/inputtext/inputtext.js +2 -2
  179. package/inputtext/inputtext.min.js +1 -1
  180. package/listbox/Listbox.d.ts +48 -12
  181. package/megamenu/MegaMenu.d.ts +5 -1
  182. package/megamenu/MegaMenu.vue +11 -8
  183. package/megamenu/megamenu.cjs.js +11 -8
  184. package/megamenu/megamenu.cjs.min.js +1 -1
  185. package/megamenu/megamenu.esm.js +11 -8
  186. package/megamenu/megamenu.esm.min.js +1 -1
  187. package/megamenu/megamenu.js +11 -8
  188. package/megamenu/megamenu.min.js +1 -1
  189. package/menu/Menu.d.ts +5 -1
  190. package/menu/Menu.vue +6 -3
  191. package/menu/Menuitem.vue +5 -2
  192. package/menu/menu.cjs.js +11 -5
  193. package/menu/menu.cjs.min.js +1 -1
  194. package/menu/menu.esm.js +11 -5
  195. package/menu/menu.esm.min.js +1 -1
  196. package/menu/menu.js +11 -5
  197. package/menu/menu.min.js +1 -1
  198. package/menubar/Menubar.d.ts +5 -1
  199. package/menubar/MenubarSub.vue +8 -5
  200. package/menubar/menubar.cjs.js +8 -5
  201. package/menubar/menubar.cjs.min.js +1 -1
  202. package/menubar/menubar.esm.js +8 -5
  203. package/menubar/menubar.esm.min.js +1 -1
  204. package/menubar/menubar.js +8 -5
  205. package/menubar/menubar.min.js +1 -1
  206. package/message/Message.d.ts +1 -0
  207. package/message/Message.vue +6 -2
  208. package/message/message.cjs.js +6 -2
  209. package/message/message.cjs.min.js +1 -1
  210. package/message/message.esm.js +6 -2
  211. package/message/message.esm.min.js +1 -1
  212. package/message/message.js +6 -2
  213. package/message/message.min.js +1 -1
  214. package/multiselect/MultiSelect.d.ts +61 -14
  215. package/orderlist/OrderList.d.ts +8 -1
  216. package/orderlist/OrderList.vue +2 -0
  217. package/orderlist/orderlist.cjs.js +3 -1
  218. package/orderlist/orderlist.cjs.min.js +1 -1
  219. package/orderlist/orderlist.esm.js +3 -1
  220. package/orderlist/orderlist.esm.min.js +1 -1
  221. package/orderlist/orderlist.js +3 -1
  222. package/orderlist/orderlist.min.js +1 -1
  223. package/overlaypanel/OverlayPanel.vue +1 -0
  224. package/overlaypanel/overlaypanel.cjs.js +1 -0
  225. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  226. package/overlaypanel/overlaypanel.esm.js +1 -0
  227. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  228. package/overlaypanel/overlaypanel.js +1 -0
  229. package/overlaypanel/overlaypanel.min.js +1 -1
  230. package/package.json +5 -1
  231. package/paginator/CurrentPageReport.vue +5 -1
  232. package/paginator/JumpToPageInput.vue +1 -1
  233. package/paginator/Paginator.d.ts +10 -4
  234. package/paginator/Paginator.vue +10 -7
  235. package/paginator/paginator.cjs.js +16 -8
  236. package/paginator/paginator.cjs.min.js +1 -1
  237. package/paginator/paginator.esm.js +16 -8
  238. package/paginator/paginator.esm.min.js +1 -1
  239. package/paginator/paginator.js +16 -8
  240. package/paginator/paginator.min.js +1 -1
  241. package/panel/Panel.d.ts +1 -0
  242. package/panel/Panel.vue +1 -1
  243. package/panelmenu/PanelMenu.d.ts +5 -3
  244. package/panelmenu/PanelMenu.vue +6 -3
  245. package/panelmenu/PanelMenuSub.vue +8 -5
  246. package/panelmenu/panelmenu.cjs.js +14 -8
  247. package/panelmenu/panelmenu.cjs.min.js +1 -1
  248. package/panelmenu/panelmenu.esm.js +14 -8
  249. package/panelmenu/panelmenu.esm.min.js +1 -1
  250. package/panelmenu/panelmenu.js +14 -8
  251. package/panelmenu/panelmenu.min.js +1 -1
  252. package/picklist/PickList.d.ts +14 -3
  253. package/picklist/PickList.vue +10 -4
  254. package/picklist/picklist.cjs.js +13 -7
  255. package/picklist/picklist.cjs.min.js +1 -1
  256. package/picklist/picklist.esm.js +13 -7
  257. package/picklist/picklist.esm.min.js +1 -1
  258. package/picklist/picklist.js +13 -7
  259. package/picklist/picklist.min.js +1 -1
  260. package/progressbar/ProgressBar.vue +13 -12
  261. package/progressbar/progressbar.cjs.js +13 -12
  262. package/progressbar/progressbar.cjs.min.js +1 -1
  263. package/progressbar/progressbar.esm.js +14 -13
  264. package/progressbar/progressbar.esm.min.js +1 -1
  265. package/progressbar/progressbar.js +13 -12
  266. package/progressbar/progressbar.min.js +1 -1
  267. package/rating/Rating.vue +1 -1
  268. package/rating/rating.cjs.js +1 -1
  269. package/rating/rating.cjs.min.js +1 -1
  270. package/rating/rating.esm.js +1 -1
  271. package/rating/rating.esm.min.js +1 -1
  272. package/rating/rating.js +1 -1
  273. package/rating/rating.min.js +1 -1
  274. package/resources/primevue.css +5 -0
  275. package/resources/primevue.min.css +1 -1
  276. package/resources/themes/arya-blue/theme.css +57 -16
  277. package/resources/themes/arya-green/theme.css +57 -16
  278. package/resources/themes/arya-orange/theme.css +57 -16
  279. package/resources/themes/arya-purple/theme.css +57 -16
  280. package/resources/themes/bootstrap4-dark-blue/theme.css +54 -20
  281. package/resources/themes/bootstrap4-dark-purple/theme.css +54 -20
  282. package/resources/themes/bootstrap4-light-blue/theme.css +54 -20
  283. package/resources/themes/bootstrap4-light-purple/theme.css +54 -20
  284. package/resources/themes/fluent-light/theme.css +57 -16
  285. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  286. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  287. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  288. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  289. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  290. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  291. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  292. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  293. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  294. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  295. package/resources/themes/lara-dark-blue/theme.css +5414 -0
  296. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  297. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  298. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  299. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  300. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  301. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  302. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  303. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  304. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  305. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  306. package/resources/themes/lara-dark-indigo/theme.css +5414 -0
  307. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  308. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  309. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  310. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  311. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  312. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  313. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  314. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  315. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  316. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  317. package/resources/themes/lara-dark-purple/theme.css +5414 -0
  318. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  319. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  320. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  321. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  322. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  323. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  324. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  325. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  326. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  327. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  328. package/resources/themes/lara-dark-teal/theme.css +5414 -0
  329. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  330. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  331. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  332. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  333. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  334. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  335. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  336. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  337. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  338. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  339. package/resources/themes/lara-light-blue/theme.css +5414 -0
  340. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  341. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  342. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  343. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  344. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  345. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  346. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  347. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  348. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  349. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  350. package/resources/themes/lara-light-indigo/theme.css +5414 -0
  351. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  352. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  353. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  354. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  355. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  356. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  357. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  358. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  359. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  360. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  361. package/resources/themes/lara-light-purple/theme.css +5414 -0
  362. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  363. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  364. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  365. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  366. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  367. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  368. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  369. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  370. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  371. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  372. package/resources/themes/lara-light-teal/theme.css +5414 -0
  373. package/resources/themes/luna-amber/theme.css +54 -20
  374. package/resources/themes/luna-blue/theme.css +54 -20
  375. package/resources/themes/luna-green/theme.css +54 -20
  376. package/resources/themes/luna-pink/theme.css +54 -20
  377. package/resources/themes/md-dark-deeppurple/theme.css +245 -48
  378. package/resources/themes/md-dark-indigo/theme.css +245 -48
  379. package/resources/themes/md-light-deeppurple/theme.css +245 -48
  380. package/resources/themes/md-light-indigo/theme.css +245 -48
  381. package/resources/themes/mdc-dark-deeppurple/theme.css +245 -48
  382. package/resources/themes/mdc-dark-indigo/theme.css +245 -48
  383. package/resources/themes/mdc-light-deeppurple/theme.css +245 -48
  384. package/resources/themes/mdc-light-indigo/theme.css +245 -48
  385. package/resources/themes/nova/theme.css +54 -20
  386. package/resources/themes/nova-accent/theme.css +54 -20
  387. package/resources/themes/nova-alt/theme.css +54 -20
  388. package/resources/themes/nova-vue/theme.css +54 -20
  389. package/resources/themes/rhea/theme.css +54 -20
  390. package/resources/themes/saga-blue/theme.css +57 -16
  391. package/resources/themes/saga-green/theme.css +57 -16
  392. package/resources/themes/saga-orange/theme.css +57 -16
  393. package/resources/themes/saga-purple/theme.css +57 -16
  394. package/resources/themes/tailwind-light/theme.css +68 -19
  395. package/resources/themes/vela-blue/theme.css +57 -16
  396. package/resources/themes/vela-green/theme.css +57 -16
  397. package/resources/themes/vela-orange/theme.css +57 -16
  398. package/resources/themes/vela-purple/theme.css +57 -16
  399. package/selectbutton/SelectButton.d.ts +13 -5
  400. package/selectbutton/SelectButton.vue +8 -2
  401. package/selectbutton/selectbutton.cjs.js +14 -9
  402. package/selectbutton/selectbutton.cjs.min.js +1 -1
  403. package/selectbutton/selectbutton.esm.js +14 -9
  404. package/selectbutton/selectbutton.esm.min.js +1 -1
  405. package/selectbutton/selectbutton.js +14 -9
  406. package/selectbutton/selectbutton.min.js +1 -1
  407. package/speeddial/SpeedDial.d.ts +5 -1
  408. package/speeddial/SpeedDial.vue +2 -1
  409. package/speeddial/speeddial.cjs.js +2 -1
  410. package/speeddial/speeddial.cjs.min.js +1 -1
  411. package/speeddial/speeddial.esm.js +2 -1
  412. package/speeddial/speeddial.esm.min.js +1 -1
  413. package/speeddial/speeddial.js +2 -1
  414. package/speeddial/speeddial.min.js +1 -1
  415. package/splitter/Splitter.vue +5 -3
  416. package/splitter/splitter.cjs.js +4 -2
  417. package/splitter/splitter.cjs.min.js +1 -1
  418. package/splitter/splitter.esm.js +5 -3
  419. package/splitter/splitter.esm.min.js +1 -1
  420. package/splitter/splitter.js +4 -2
  421. package/splitter/splitter.min.js +1 -1
  422. package/steps/Steps.d.ts +5 -3
  423. package/steps/Steps.vue +5 -2
  424. package/steps/steps.cjs.js +5 -2
  425. package/steps/steps.cjs.min.js +1 -1
  426. package/steps/steps.esm.js +5 -2
  427. package/steps/steps.esm.min.js +1 -1
  428. package/steps/steps.js +5 -2
  429. package/steps/steps.min.js +1 -1
  430. package/tabmenu/TabMenu.d.ts +5 -3
  431. package/tabmenu/TabMenu.vue +10 -3
  432. package/tabmenu/tabmenu.cjs.js +7 -4
  433. package/tabmenu/tabmenu.cjs.min.js +1 -1
  434. package/tabmenu/tabmenu.esm.js +7 -4
  435. package/tabmenu/tabmenu.esm.min.js +1 -1
  436. package/tabmenu/tabmenu.js +7 -4
  437. package/tabmenu/tabmenu.min.js +1 -1
  438. package/terminal/terminal.js +1 -1
  439. package/terminal/terminal.min.js +1 -1
  440. package/terminalservice/TerminalService.d.ts +9 -6
  441. package/tieredmenu/TieredMenu.d.ts +5 -3
  442. package/tieredmenu/TieredMenuSub.vue +8 -5
  443. package/tieredmenu/tieredmenu.cjs.js +8 -5
  444. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  445. package/tieredmenu/tieredmenu.esm.js +8 -5
  446. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  447. package/tieredmenu/tieredmenu.js +8 -5
  448. package/tieredmenu/tieredmenu.min.js +1 -1
  449. package/timeline/Timeline.d.ts +8 -3
  450. package/toast/Toast.d.ts +7 -0
  451. package/toastservice/ToastService.d.ts +3 -2
  452. package/tooltip/tooltip.cjs.js +5 -1
  453. package/tooltip/tooltip.cjs.min.js +1 -1
  454. package/tooltip/tooltip.esm.js +5 -1
  455. package/tooltip/tooltip.esm.min.js +1 -1
  456. package/tooltip/tooltip.js +5 -1
  457. package/tooltip/tooltip.min.js +1 -1
  458. package/tree/Tree.d.ts +5 -1
  459. package/tree/TreeNode.vue +4 -1
  460. package/tree/tree.cjs.js +4 -1
  461. package/tree/tree.cjs.min.js +1 -1
  462. package/tree/tree.esm.js +4 -1
  463. package/tree/tree.esm.min.js +1 -1
  464. package/tree/tree.js +4 -1
  465. package/tree/tree.min.js +1 -1
  466. package/treeselect/TreeSelect.d.ts +20 -3
  467. package/treeselect/TreeSelect.vue +9 -0
  468. package/treeselect/treeselect.cjs.js +9 -0
  469. package/treeselect/treeselect.cjs.min.js +1 -1
  470. package/treeselect/treeselect.esm.js +9 -0
  471. package/treeselect/treeselect.esm.min.js +1 -1
  472. package/treeselect/treeselect.js +9 -0
  473. package/treeselect/treeselect.min.js +1 -1
  474. package/treetable/BodyCell.vue +2 -3
  475. package/treetable/FooterCell.vue +2 -2
  476. package/treetable/HeaderCell.vue +2 -2
  477. package/treetable/TreeTable.d.ts +2 -2
  478. package/treetable/TreeTable.vue +10 -10
  479. package/treetable/TreeTableRow.vue +2 -2
  480. package/treetable/treetable.cjs.js +18 -18
  481. package/treetable/treetable.cjs.min.js +1 -1
  482. package/treetable/treetable.esm.js +19 -19
  483. package/treetable/treetable.esm.min.js +1 -1
  484. package/treetable/treetable.js +18 -18
  485. package/treetable/treetable.min.js +1 -1
  486. package/utils/Utils.d.ts +80 -0
  487. package/utils/package.json +3 -2
  488. package/utils/utils.cjs.js +126 -108
  489. package/utils/utils.cjs.min.js +1 -1
  490. package/utils/utils.esm.js +126 -108
  491. package/utils/utils.esm.min.js +1 -1
  492. package/utils/utils.js +126 -108
  493. package/utils/utils.min.js +1 -1
  494. package/vetur-attributes.json +24 -0
  495. package/vetur-tags.json +9 -3
  496. package/virtualscroller/VirtualScroller.d.ts +52 -6
  497. package/virtualscroller/VirtualScroller.vue +1 -1
  498. package/virtualscroller/virtualscroller.cjs.js +1 -1
  499. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  500. package/virtualscroller/virtualscroller.esm.js +1 -1
  501. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  502. package/virtualscroller/virtualscroller.js +1 -1
  503. package/virtualscroller/virtualscroller.min.js +1 -1
  504. package/web-types.json +228 -13
@@ -348,7 +348,15 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
348
348
  hide() {
349
349
  this.overlayVisible = false;
350
350
  },
351
- onContentClick() {
351
+ onContentClick(event) {
352
+ this.selfClick = true;
353
+
354
+ OverlayEventBus__default['default'].emit('overlay-click', {
355
+ originalEvent: event,
356
+ target: this.overlay
357
+ });
358
+ },
359
+ onContentMouseDown() {
352
360
  this.selfClick = true;
353
361
  },
354
362
  onOverlayEnter(el) {
@@ -362,7 +370,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
362
370
  this.bindResizeListener();
363
371
 
364
372
  this.overlayEventListener = (e) => {
365
- if (this.overlay.contains(e.target)) {
373
+ if (!this.isOutsideClicked(e.target)) {
366
374
  this.selfClick = true;
367
375
  }
368
376
  };
@@ -385,13 +393,16 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
385
393
  overlayRef(el) {
386
394
  this.overlay = el;
387
395
  },
388
- isTargetClicked(event) {
389
- return this.$refs.icon && (this.$refs.icon === event.target || this.$refs.icon.contains(event.target));
396
+ isOutsideClicked(target) {
397
+ return !this.isTargetClicked(target) && this.overlay && !(this.overlay.isSameNode(target) || this.overlay.contains(target));
398
+ },
399
+ isTargetClicked(target) {
400
+ return this.$refs.icon && (this.$refs.icon.isSameNode(target) || this.$refs.icon.contains(target));
390
401
  },
391
402
  bindOutsideClickListener() {
392
403
  if (!this.outsideClickListener) {
393
404
  this.outsideClickListener = (event) => {
394
- if (this.overlayVisible && !this.selfClick && !this.isTargetClicked(event)) {
405
+ if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
395
406
  this.overlayVisible = false;
396
407
  }
397
408
  this.selfClick = false;
@@ -524,7 +535,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
524
535
  key: 0,
525
536
  class: "p-column-filter-operator"
526
537
  };
527
- const _hoisted_7$1 = { class: "p-column-filter-constraints" };
538
+ const _hoisted_7 = { class: "p-column-filter-constraints" };
528
539
  const _hoisted_8 = {
529
540
  key: 1,
530
541
  class: "p-column-filter-add-rule"
@@ -583,7 +594,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
583
594
  ref: $options.overlayRef,
584
595
  class: $options.overlayClass,
585
596
  onKeydown: _cache[12] || (_cache[12] = vue.withKeys((...args) => ($options.onEscape && $options.onEscape(...args)), ["escape"])),
586
- onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args)))
597
+ onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args))),
598
+ onMousedown: _cache[14] || (_cache[14] = (...args) => ($options.onContentMouseDown && $options.onContentMouseDown(...args)))
587
599
  }, [
588
600
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterHeaderTemplate), {
589
601
  field: $props.field,
@@ -627,7 +639,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
627
639
  }, null, 8, ["options", "modelValue"])
628
640
  ]))
629
641
  : vue.createCommentVNode("", true),
630
- vue.createVNode("div", _hoisted_7$1, [
642
+ vue.createVNode("div", _hoisted_7, [
631
643
  (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.fieldConstraints, (fieldConstraint, i) => {
632
644
  return (vue.openBlock(), vue.createBlock("div", {
633
645
  key: i,
@@ -809,7 +821,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
809
821
  },
810
822
  methods: {
811
823
  columnProp(prop) {
812
- return this.column.props ? ((this.column.type.props[prop].type === Boolean && this.column.props[prop] === '') ? true : this.column.props[prop]) : null;
824
+ return utils.ObjectUtils.getVNodeProp(this.column, prop);
813
825
  },
814
826
  onClick(event) {
815
827
  this.$emit('column-click', {originalEvent: event, column: this.column});
@@ -1115,7 +1127,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1115
1127
  },
1116
1128
  methods: {
1117
1129
  columnProp(col, prop) {
1118
- return col.props ? ((col.type.props[prop].type === Boolean && col.props[prop] === '') ? true : col.props[prop]) : null;
1130
+ return utils.ObjectUtils.getVNodeProp(col, prop);
1119
1131
  },
1120
1132
  getFilterColumnHeaderClass(column) {
1121
1133
  return ['p-filter-column', this.columnProp(column, 'filterHeaderClass'), this.columnProp(column, 'class'), {
@@ -1124,6 +1136,20 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1124
1136
  },
1125
1137
  getFilterColumnHeaderStyle(column) {
1126
1138
  return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
1139
+ },
1140
+ getHeaderColumns(row){
1141
+ let cols = [];
1142
+
1143
+ if (row.children && row.children.default) {
1144
+ row.children.default().forEach(child => {
1145
+ if (child.children && child.children instanceof Array)
1146
+ cols = [...cols, ...child.children];
1147
+ else if (child.type.name === 'Column')
1148
+ cols.push(child);
1149
+ });
1150
+
1151
+ return cols;
1152
+ }
1127
1153
  }
1128
1154
  },
1129
1155
  components: {
@@ -1256,7 +1282,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1256
1282
  key: i,
1257
1283
  role: "row"
1258
1284
  }, [
1259
- (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(row.children.default(), (col, j) => {
1285
+ (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.getHeaderColumns(row), (col, j) => {
1260
1286
  return (vue.openBlock(), vue.createBlock(vue.Fragment, {
1261
1287
  key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||j
1262
1288
  }, [
@@ -1411,8 +1437,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1411
1437
 
1412
1438
  var script$4 = {
1413
1439
  name: 'BodyCell',
1414
- emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-cell-change',
1415
- 'row-toggle', 'radio-change', 'checkbox-change'],
1440
+ emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
1441
+ 'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
1416
1442
  props: {
1417
1443
  rowData: {
1418
1444
  type: Object,
@@ -1446,6 +1472,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1446
1472
  type: Boolean,
1447
1473
  default: false
1448
1474
  },
1475
+ editingMeta: {
1476
+ type: Object,
1477
+ default: null
1478
+ },
1449
1479
  editMode: {
1450
1480
  type: String,
1451
1481
  default: null
@@ -1467,6 +1497,9 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1467
1497
  watch: {
1468
1498
  editing(newValue) {
1469
1499
  this.d_editing = newValue;
1500
+ },
1501
+ '$data.d_editing': function(newValue) {
1502
+ this.$emit('editing-meta-change', {data: this.rowData, field: (this.field || `field_${this.index}`), index: this.rowIndex, editing: newValue});
1470
1503
  }
1471
1504
  },
1472
1505
  mounted() {
@@ -1478,6 +1511,11 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1478
1511
  if (this.columnProp('frozen')) {
1479
1512
  this.updateStickyPosition();
1480
1513
  }
1514
+
1515
+ if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
1516
+ const focusableEl = utils.DomHandler.getFirstFocusableElement(this.$el);
1517
+ focusableEl && focusableEl.focus();
1518
+ }
1481
1519
  },
1482
1520
  beforeUnmount() {
1483
1521
  if (this.overlayEventListener) {
@@ -1487,10 +1525,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1487
1525
  },
1488
1526
  methods: {
1489
1527
  columnProp(prop) {
1490
- return this.column.props ? ((this.column.type.props[prop].type === Boolean && this.column.props[prop] === '') ? true : this.column.props[prop]) : null;
1528
+ return utils.ObjectUtils.getVNodeProp(this.column, prop);
1491
1529
  },
1492
1530
  resolveFieldData() {
1493
- return utils.ObjectUtils.resolveFieldData(this.rowData, this.columnProp('field'));
1531
+ return utils.ObjectUtils.resolveFieldData(this.rowData, this.field);
1494
1532
  },
1495
1533
  toggleRow(event) {
1496
1534
  this.$emit('row-toggle', {
@@ -1529,7 +1567,6 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1529
1567
  switchCellToViewMode() {
1530
1568
  this.d_editing = false;
1531
1569
  this.unbindDocumentEditListener();
1532
- this.$emit('editing-cell-change', {rowIndex: this.rowIndex, cellIndex: this.index, editing: false});
1533
1570
  OverlayEventBus__default['default'].off('overlay-click', this.overlayEventListener);
1534
1571
  this.overlayEventListener = null;
1535
1572
  },
@@ -1540,8 +1577,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1540
1577
  if (!this.d_editing) {
1541
1578
  this.d_editing = true;
1542
1579
  this.bindDocumentEditListener();
1543
- this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.columnProp('field'), index: this.rowIndex});
1544
- this.$emit('editing-cell-change', {rowIndex: this.rowIndex, cellIndex: this.index, editing: true});
1580
+ this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
1545
1581
 
1546
1582
  this.overlayEventListener = (e) => {
1547
1583
  if (this.$el && this.$el.contains(e.target)) {
@@ -1553,10 +1589,13 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1553
1589
  }
1554
1590
  },
1555
1591
  completeEdit(event, type) {
1556
- let completeEvent = {
1592
+ const completeEvent = {
1557
1593
  originalEvent: event,
1558
1594
  data: this.rowData,
1559
- field: this.columnProp('field'),
1595
+ newData: this.editingRowData,
1596
+ value: this.rowData[this.field],
1597
+ newValue: this.editingRowData[this.field],
1598
+ field: this.field,
1560
1599
  index: this.rowIndex,
1561
1600
  type: type,
1562
1601
  defaultPrevented: false,
@@ -1580,7 +1619,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1580
1619
 
1581
1620
  case 27:
1582
1621
  this.switchCellToViewMode();
1583
- this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.columnProp('field'), index: this.rowIndex});
1622
+ this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
1584
1623
  break;
1585
1624
 
1586
1625
  case 9:
@@ -1669,13 +1708,13 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1669
1708
  return (utils.DomHandler.find(this.$el, '.p-invalid').length === 0);
1670
1709
  },
1671
1710
  onRowEditInit(event) {
1672
- this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, field: this.columnProp('field'), index: this.rowIndex});
1711
+ this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
1673
1712
  },
1674
1713
  onRowEditSave(event) {
1675
- this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, field: this.columnProp('field'), index: this.rowIndex});
1714
+ this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
1676
1715
  },
1677
1716
  onRowEditCancel(event) {
1678
- this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, field: this.columnProp('field'), index: this.rowIndex});
1717
+ this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
1679
1718
  },
1680
1719
  updateStickyPosition() {
1681
1720
  if (this.columnProp('frozen')) {
@@ -1700,6 +1739,12 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1700
1739
  }
1701
1740
  },
1702
1741
  computed: {
1742
+ editingRowData() {
1743
+ return this.editingMeta[this.rowIndex] ? this.editingMeta[this.rowIndex].data : this.rowData;
1744
+ },
1745
+ field() {
1746
+ return this.columnProp('field');
1747
+ },
1703
1748
  containerClass() {
1704
1749
  return [this.columnProp('bodyClass'), this.columnProp('class'), {
1705
1750
  'p-selection-column': this.columnProp('selectionMode') != null,
@@ -1752,93 +1797,104 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1752
1797
  key: 1,
1753
1798
  data: $props.rowData,
1754
1799
  column: $props.column,
1800
+ field: $options.field,
1755
1801
  index: $props.rowIndex,
1756
1802
  frozenRow: $props.frozenRow
1757
- }, null, 8, ["data", "column", "index", "frozenRow"]))
1803
+ }, null, 8, ["data", "column", "field", "index", "frozenRow"]))
1758
1804
  : ($props.column.children && $props.column.children.editor && $data.d_editing)
1759
1805
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.editor), {
1760
1806
  key: 2,
1761
- data: $props.rowData,
1807
+ data: $options.editingRowData,
1762
1808
  column: $props.column,
1809
+ field: $options.field,
1763
1810
  index: $props.rowIndex,
1764
1811
  frozenRow: $props.frozenRow
1765
- }, null, 8, ["data", "column", "index", "frozenRow"]))
1766
- : ($options.columnProp('selectionMode'))
1767
- ? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 3 }, [
1768
- ($props.column.props.selectionMode === 'single')
1769
- ? (vue.openBlock(), vue.createBlock(_component_DTRadioButton, {
1770
- key: 0,
1771
- value: $props.rowData,
1772
- checked: $props.selected,
1773
- onChange: $options.toggleRowWithRadio
1774
- }, null, 8, ["value", "checked", "onChange"]))
1775
- : ($props.column.props.selectionMode ==='multiple')
1776
- ? (vue.openBlock(), vue.createBlock(_component_DTCheckbox, {
1777
- key: 1,
1812
+ }, null, 8, ["data", "column", "field", "index", "frozenRow"]))
1813
+ : ($props.column.children && $props.column.children.body && !$props.column.children.editor && $data.d_editing)
1814
+ ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.body), {
1815
+ key: 3,
1816
+ data: $options.editingRowData,
1817
+ column: $props.column,
1818
+ field: $options.field,
1819
+ index: $props.rowIndex,
1820
+ frozenRow: $props.frozenRow
1821
+ }, null, 8, ["data", "column", "field", "index", "frozenRow"]))
1822
+ : ($options.columnProp('selectionMode'))
1823
+ ? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 4 }, [
1824
+ ($options.columnProp('selectionMode') === 'single')
1825
+ ? (vue.openBlock(), vue.createBlock(_component_DTRadioButton, {
1826
+ key: 0,
1778
1827
  value: $props.rowData,
1779
1828
  checked: $props.selected,
1780
- onChange: $options.toggleRowWithCheckbox
1829
+ onChange: $options.toggleRowWithRadio
1781
1830
  }, null, 8, ["value", "checked", "onChange"]))
1782
- : vue.createCommentVNode("", true)
1783
- ], 64))
1784
- : ($options.columnProp('rowReorder'))
1785
- ? (vue.openBlock(), vue.createBlock("i", {
1786
- key: 4,
1787
- class: ['p-datatable-reorderablerow-handle', ($options.columnProp('rowReorderIcon') || 'pi pi-bars')]
1788
- }, null, 2))
1789
- : ($options.columnProp('expander'))
1790
- ? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
1831
+ : ($options.columnProp('selectionMode') ==='multiple')
1832
+ ? (vue.openBlock(), vue.createBlock(_component_DTCheckbox, {
1833
+ key: 1,
1834
+ value: $props.rowData,
1835
+ checked: $props.selected,
1836
+ onChange: $options.toggleRowWithCheckbox
1837
+ }, null, 8, ["value", "checked", "onChange"]))
1838
+ : vue.createCommentVNode("", true)
1839
+ ], 64))
1840
+ : ($options.columnProp('rowReorder'))
1841
+ ? (vue.openBlock(), vue.createBlock("i", {
1791
1842
  key: 5,
1792
- class: "p-row-toggler p-link",
1793
- onClick: _cache[1] || (_cache[1] = (...args) => ($options.toggleRow && $options.toggleRow(...args))),
1794
- type: "button"
1795
- }, [
1796
- vue.createVNode("span", { class: $props.rowTogglerIcon }, null, 2)
1797
- ], 512)), [
1798
- [_directive_ripple]
1799
- ])
1800
- : ($props.editMode === 'row' && $options.columnProp('rowEditor'))
1801
- ? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 6 }, [
1802
- (!$data.d_editing)
1803
- ? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
1804
- key: 0,
1805
- class: "p-row-editor-init p-link",
1806
- onClick: _cache[2] || (_cache[2] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args))),
1807
- type: "button"
1808
- }, [
1809
- _hoisted_2$3
1810
- ], 512)), [
1811
- [_directive_ripple]
1812
- ])
1813
- : vue.createCommentVNode("", true),
1814
- ($data.d_editing)
1815
- ? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
1816
- key: 1,
1817
- class: "p-row-editor-save p-link",
1818
- onClick: _cache[3] || (_cache[3] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args))),
1819
- type: "button"
1820
- }, [
1821
- _hoisted_3$1
1822
- ], 512)), [
1823
- [_directive_ripple]
1824
- ])
1825
- : vue.createCommentVNode("", true),
1826
- ($data.d_editing)
1827
- ? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
1828
- key: 2,
1829
- class: "p-row-editor-cancel p-link",
1830
- onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args))),
1831
- type: "button"
1832
- }, [
1833
- _hoisted_4$1
1834
- ], 512)), [
1835
- [_directive_ripple]
1836
- ])
1837
- : vue.createCommentVNode("", true)
1838
- ], 64))
1839
- : (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 7 }, [
1840
- vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)
1841
- ], 64))
1843
+ class: ['p-datatable-reorderablerow-handle', ($options.columnProp('rowReorderIcon') || 'pi pi-bars')]
1844
+ }, null, 2))
1845
+ : ($options.columnProp('expander'))
1846
+ ? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
1847
+ key: 6,
1848
+ class: "p-row-toggler p-link",
1849
+ onClick: _cache[1] || (_cache[1] = (...args) => ($options.toggleRow && $options.toggleRow(...args))),
1850
+ type: "button"
1851
+ }, [
1852
+ vue.createVNode("span", { class: $props.rowTogglerIcon }, null, 2)
1853
+ ], 512)), [
1854
+ [_directive_ripple]
1855
+ ])
1856
+ : ($props.editMode === 'row' && $options.columnProp('rowEditor'))
1857
+ ? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 7 }, [
1858
+ (!$data.d_editing)
1859
+ ? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
1860
+ key: 0,
1861
+ class: "p-row-editor-init p-link",
1862
+ onClick: _cache[2] || (_cache[2] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args))),
1863
+ type: "button"
1864
+ }, [
1865
+ _hoisted_2$3
1866
+ ], 512)), [
1867
+ [_directive_ripple]
1868
+ ])
1869
+ : vue.createCommentVNode("", true),
1870
+ ($data.d_editing)
1871
+ ? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
1872
+ key: 1,
1873
+ class: "p-row-editor-save p-link",
1874
+ onClick: _cache[3] || (_cache[3] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args))),
1875
+ type: "button"
1876
+ }, [
1877
+ _hoisted_3$1
1878
+ ], 512)), [
1879
+ [_directive_ripple]
1880
+ ])
1881
+ : vue.createCommentVNode("", true),
1882
+ ($data.d_editing)
1883
+ ? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
1884
+ key: 2,
1885
+ class: "p-row-editor-cancel p-link",
1886
+ onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args))),
1887
+ type: "button"
1888
+ }, [
1889
+ _hoisted_4$1
1890
+ ], 512)), [
1891
+ [_directive_ripple]
1892
+ ])
1893
+ : vue.createCommentVNode("", true)
1894
+ ], 64))
1895
+ : (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 8 }, [
1896
+ vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)
1897
+ ], 64))
1842
1898
  ], 38))
1843
1899
  }
1844
1900
 
@@ -1849,7 +1905,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1849
1905
  emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown',
1850
1906
  'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle',
1851
1907
  'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel',
1852
- 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-cell-change'],
1908
+ 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
1853
1909
  props: {
1854
1910
  value: {
1855
1911
  type: Array,
@@ -1927,6 +1983,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1927
1983
  type: null,
1928
1984
  default: null
1929
1985
  },
1986
+ rowStyle: {
1987
+ type: null,
1988
+ default: null
1989
+ },
1930
1990
  editMode: {
1931
1991
  type: String,
1932
1992
  default: null
@@ -1943,6 +2003,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1943
2003
  type: null,
1944
2004
  default: null
1945
2005
  },
2006
+ editingMeta: {
2007
+ type: Object,
2008
+ default: null
2009
+ },
1946
2010
  loading: {
1947
2011
  type: Boolean,
1948
2012
  default: false
@@ -1985,7 +2049,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
1985
2049
  },
1986
2050
  methods: {
1987
2051
  columnProp(col, prop) {
1988
- return col.props ? ((col.type.props[prop].type === Boolean && col.props[prop] === '') ? true : col.props[prop]) : null;
2052
+ return utils.ObjectUtils.getVNodeProp(col, prop);
1989
2053
  },
1990
2054
  shouldRenderRowGroupHeader(value, rowData, i) {
1991
2055
  let currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
@@ -2244,8 +2308,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2244
2308
  onRowEditCancel(event) {
2245
2309
  this.$emit('row-edit-cancel', event);
2246
2310
  },
2247
- onEditingCellChange(event) {
2248
- this.$emit('editing-cell-change', event);
2311
+ onEditingMetaChange(event) {
2312
+ this.$emit('editing-meta-change', event);
2249
2313
  },
2250
2314
  updateFrozenRowStickyPosition() {
2251
2315
  this.$el.style.top = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
@@ -2323,19 +2387,20 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2323
2387
  ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData): true)
2324
2388
  ? (vue.openBlock(), vue.createBlock("tr", {
2325
2389
  class: $options.getRowClass(rowData),
2390
+ style: $props.rowStyle,
2326
2391
  key: $options.getRowKey(rowData, index),
2327
2392
  onClick: $event => ($options.onRowClick($event, rowData, index)),
2328
2393
  onDblclick: $event => ($options.onRowDblClick($event, rowData, index)),
2329
2394
  onContextmenu: $event => ($options.onRowRightClick($event, rowData, index)),
2330
- onTouchend: _cache[11] || (_cache[11] = $event => ($options.onRowTouchEnd($event))),
2395
+ onTouchend: _cache[10] || (_cache[10] = $event => ($options.onRowTouchEnd($event))),
2331
2396
  onKeydown: $event => ($options.onRowKeyDown($event, rowData, index)),
2332
2397
  tabindex: $props.selectionMode || $props.contextMenu ? '0' : null,
2333
- onMousedown: _cache[12] || (_cache[12] = $event => ($options.onRowMouseDown($event))),
2398
+ onMousedown: _cache[11] || (_cache[11] = $event => ($options.onRowMouseDown($event))),
2334
2399
  onDragstart: $event => ($options.onRowDragStart($event, index)),
2335
2400
  onDragover: $event => ($options.onRowDragOver($event,index)),
2336
- onDragleave: _cache[13] || (_cache[13] = $event => ($options.onRowDragLeave($event))),
2337
- onDragend: _cache[14] || (_cache[14] = $event => ($options.onRowDragEnd($event))),
2338
- onDrop: _cache[15] || (_cache[15] = $event => ($options.onRowDrop($event))),
2401
+ onDragleave: _cache[12] || (_cache[12] = $event => ($options.onRowDragLeave($event))),
2402
+ onDragend: _cache[13] || (_cache[13] = $event => ($options.onRowDragEnd($event))),
2403
+ onDrop: _cache[14] || (_cache[14] = $event => ($options.onRowDrop($event))),
2339
2404
  role: "row"
2340
2405
  }, [
2341
2406
  (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
@@ -2365,12 +2430,13 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2365
2430
  onRowEditInit: _cache[7] || (_cache[7] = $event => ($options.onRowEditInit($event))),
2366
2431
  onRowEditSave: _cache[8] || (_cache[8] = $event => ($options.onRowEditSave($event))),
2367
2432
  onRowEditCancel: _cache[9] || (_cache[9] = $event => ($options.onRowEditCancel($event))),
2368
- onEditingCellChange: _cache[10] || (_cache[10] = $event => ($options.onEditingCellChange($event)))
2369
- }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "rowTogglerIcon", "frozenRow", "rowspan", "editMode", "editing", "responsiveLayout"]))
2433
+ editingMeta: $props.editingMeta,
2434
+ onEditingMetaChange: $options.onEditingMetaChange
2435
+ }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "rowTogglerIcon", "frozenRow", "rowspan", "editMode", "editing", "responsiveLayout", "editingMeta", "onEditingMetaChange"]))
2370
2436
  : vue.createCommentVNode("", true)
2371
2437
  ], 64))
2372
2438
  }), 128))
2373
- ], 42, ["onClick", "onDblclick", "onContextmenu", "onKeydown", "tabindex", "onDragstart", "onDragover"]))
2439
+ ], 46, ["onClick", "onDblclick", "onContextmenu", "onKeydown", "tabindex", "onDragstart", "onDragover"]))
2374
2440
  : vue.createCommentVNode("", true),
2375
2441
  ($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
2376
2442
  ? (vue.openBlock(), vue.createBlock("tr", {
@@ -2440,7 +2506,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2440
2506
  },
2441
2507
  methods: {
2442
2508
  columnProp(prop) {
2443
- return this.column.props ? ((this.column.type.props[prop].type === Boolean && this.column.props[prop] === '') ? true : this.column.props[prop]) : null;
2509
+ return utils.ObjectUtils.getVNodeProp(this.column, prop);
2444
2510
  },
2445
2511
  updateStickyPosition() {
2446
2512
  if (this.columnProp('frozen')) {
@@ -2513,7 +2579,21 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2513
2579
  },
2514
2580
  methods: {
2515
2581
  columnProp(col, prop) {
2516
- return col.props ? ((col.type.props[prop].type === Boolean && col.props[prop] === '') ? true : col.props[prop]) : null;
2582
+ return utils.ObjectUtils.getVNodeProp(col, prop);
2583
+ },
2584
+ getFooterColumns(row){
2585
+ let cols = [];
2586
+
2587
+ if (row.children && row.children.default) {
2588
+ row.children.default().forEach(child => {
2589
+ if (child.children && child.children instanceof Array)
2590
+ cols = [...cols, ...child.children];
2591
+ else if (child.type.name === 'Column')
2592
+ cols.push(child);
2593
+ });
2594
+
2595
+ return cols;
2596
+ }
2517
2597
  }
2518
2598
  },
2519
2599
  computed: {
@@ -2575,7 +2655,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2575
2655
  key: i,
2576
2656
  role: "row"
2577
2657
  }, [
2578
- (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(row.children.default(), (col, j) => {
2658
+ (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.getFooterColumns(row), (col, j) => {
2579
2659
  return (vue.openBlock(), vue.createBlock(vue.Fragment, {
2580
2660
  key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||j
2581
2661
  }, [
@@ -2601,7 +2681,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2601
2681
  'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all',
2602
2682
  'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand',
2603
2683
  'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save',
2604
- 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-cell-change'],
2684
+ 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
2605
2685
  props: {
2606
2686
  value: {
2607
2687
  type: Array,
@@ -2807,6 +2887,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2807
2887
  type: null,
2808
2888
  default: null
2809
2889
  },
2890
+ rowStyle: {
2891
+ type: null,
2892
+ default: null
2893
+ },
2810
2894
  scrollable: {
2811
2895
  type: Boolean,
2812
2896
  default: false
@@ -2838,6 +2922,14 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2838
2922
  stripedRows: {
2839
2923
  type: Boolean,
2840
2924
  default: false
2925
+ },
2926
+ tableStyle: {
2927
+ type: null,
2928
+ default: null
2929
+ },
2930
+ tableClass: {
2931
+ type: String,
2932
+ default: null
2841
2933
  }
2842
2934
  },
2843
2935
  data() {
@@ -2852,8 +2944,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2852
2944
  d_expandedRowKeys: null,
2853
2945
  d_columnOrder: null,
2854
2946
  d_editingRowKeys: null,
2855
- d_filters: this.cloneFilters(this.filters),
2856
- d_editingCells: []
2947
+ d_editingMeta: {},
2948
+ d_filters: this.cloneFilters(this.filters)
2857
2949
  };
2858
2950
  },
2859
2951
  rowTouched: false,
@@ -2929,6 +3021,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2929
3021
  if (this.isStateful() && this.resizableColumns) {
2930
3022
  this.restoreColumnWidths();
2931
3023
  }
3024
+
3025
+ if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
3026
+ this.updateEditingRowKeys(this.editingRows);
3027
+ }
2932
3028
  },
2933
3029
  beforeUnmount() {
2934
3030
  this.unbindColumnResizeEvents();
@@ -2939,12 +3035,18 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
2939
3035
  if (this.isStateful()) {
2940
3036
  this.saveState();
2941
3037
  }
3038
+
3039
+ if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
3040
+ this.updateEditingRowKeys(this.editingRows);
3041
+ }
2942
3042
  },
2943
3043
  methods: {
2944
3044
  columnProp(col, prop) {
2945
- return col.props ? ((col.type.props[prop].type === Boolean && col.props[prop] === '') ? true : col.props[prop]) : null;
3045
+ return utils.ObjectUtils.getVNodeProp(col, prop);
2946
3046
  },
2947
3047
  onPage(event) {
3048
+ this.clearEditingMetaData();
3049
+
2948
3050
  this.d_first = event.first;
2949
3051
  this.d_rows = event.rows;
2950
3052
 
@@ -3004,6 +3106,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
3004
3106
  }
3005
3107
  },
3006
3108
  sortSingle(value) {
3109
+ this.clearEditingMetaData();
3110
+
3007
3111
  if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
3008
3112
  this.d_multiSortMeta = [
3009
3113
  {field: this.sortField, order: this.sortOrder || this.defaultSortOrder},
@@ -3038,6 +3142,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
3038
3142
  return data;
3039
3143
  },
3040
3144
  sortMultiple(value) {
3145
+ this.clearEditingMetaData();
3146
+
3041
3147
  if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
3042
3148
  const firstSortMeta = this.d_multiSortMeta[0];
3043
3149
  !this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
@@ -3095,6 +3201,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
3095
3201
  return;
3096
3202
  }
3097
3203
 
3204
+ this.clearEditingMetaData();
3205
+
3098
3206
  let globalFilterFieldsArray;
3099
3207
  if (this.filters['global']) {
3100
3208
  globalFilterFieldsArray = this.globalFilterFields|| this.columns.map(col => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
@@ -3185,7 +3293,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
3185
3293
 
3186
3294
  if (this.selectionMode) {
3187
3295
  const rowData = e.data;
3188
- const rowIndex = e.index;
3296
+ const rowIndex = this.d_first + e.index;
3189
3297
 
3190
3298
  if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
3191
3299
  utils.DomHandler.clearSelection();
@@ -4105,18 +4213,6 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4105
4213
  onCellEditCancel(event) {
4106
4214
  this.$emit('cell-edit-cancel', event);
4107
4215
  },
4108
- onEditingCellChange(event) {
4109
- let { rowIndex, cellIndex, editing } = event;
4110
- let _editingCells = [...this.d_editingCells];
4111
-
4112
- if (editing)
4113
- _editingCells.push({ rowIndex, cellIndex });
4114
- else
4115
- _editingCells = _editingCells.filter(cell => !(cell.rowIndex === rowIndex && cell.cellIndex === cellIndex));
4116
-
4117
- this.d_editingCells = _editingCells;
4118
- this.$emit('value-change', this.processedData);
4119
- },
4120
4216
  onRowEditInit(event) {
4121
4217
  let _editingRows = this.editingRows ? [...this.editingRows] : [];
4122
4218
  _editingRows.push(event.data);
@@ -4135,6 +4231,24 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4135
4231
  this.$emit('update:editingRows', _editingRows);
4136
4232
  this.$emit('row-edit-cancel', event);
4137
4233
  },
4234
+ onEditingMetaChange(event) {
4235
+ let { data, field, index, editing } = event;
4236
+ let meta = this.d_editingMeta[index];
4237
+
4238
+ if (editing) {
4239
+ !meta && (meta = this.d_editingMeta[index] = { data: { ...data }, fields: [] });
4240
+ meta['fields'].push(field);
4241
+ }
4242
+ else if (meta) {
4243
+ const fields = meta['fields'].filter(f => f !== field);
4244
+ !fields.length ? (delete this.d_editingMeta[index]) : (meta['fields'] = fields);
4245
+ }
4246
+ },
4247
+ clearEditingMetaData() {
4248
+ if (this.editMode) {
4249
+ this.d_editingMeta = {};
4250
+ }
4251
+ },
4138
4252
  createLazyLoadEvent(event) {
4139
4253
  return {
4140
4254
  originalEvent: event,
@@ -4234,7 +4348,22 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4234
4348
  document.head.removeChild(this.styleElement);
4235
4349
  this.styleElement = null;
4236
4350
  }
4237
- }
4351
+ },
4352
+ recursiveGetChildren(children, results) {
4353
+ if (!results) {
4354
+ results = [];
4355
+ }
4356
+ if (children && children.length) {
4357
+ children.forEach((child) => {
4358
+ if (child.children instanceof Array) {
4359
+ results.concat(this.recursiveGetChildren(child.children, results));
4360
+ } else if (child.type.name == 'Column') {
4361
+ results.push(child);
4362
+ }
4363
+ });
4364
+ }
4365
+ return results;
4366
+ },
4238
4367
  },
4239
4368
  computed: {
4240
4369
  containerClass() {
@@ -4259,19 +4388,13 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4259
4388
  ];
4260
4389
  },
4261
4390
  columns() {
4262
- let cols = [];
4263
4391
  let children = this.getChildren();
4264
4392
 
4265
4393
  if (!children) {
4266
4394
  return;
4267
4395
  }
4268
4396
 
4269
- children.forEach(child => {
4270
- if (child.children && child.children instanceof Array)
4271
- cols = [...cols, ...child.children];
4272
- else if (child.type.name === 'Column')
4273
- cols.push(child);
4274
- });
4397
+ const cols = this.recursiveGetChildren(children, []);
4275
4398
 
4276
4399
  if (this.reorderableColumns && this.d_columnOrder) {
4277
4400
  let orderedColumns = [];
@@ -4314,24 +4437,21 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4314
4437
  hasFilters() {
4315
4438
  return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
4316
4439
  },
4317
- hasEditingCell() {
4318
- return this.d_editingCells && this.d_editingCells.length !== 0;
4319
- },
4320
4440
  processedData() {
4321
4441
  let data = this.value || [];
4322
4442
 
4323
- if (!this.lazy && !this.hasEditingCell) {
4443
+ if (!this.lazy) {
4324
4444
  if (data && data.length) {
4445
+ if (this.hasFilters) {
4446
+ data = this.filter(data);
4447
+ }
4448
+
4325
4449
  if (this.sorted) {
4326
4450
  if(this.sortMode === 'single')
4327
4451
  data = this.sortSingle(data);
4328
4452
  else if(this.sortMode === 'multiple')
4329
4453
  data = this.sortMultiple(data);
4330
4454
  }
4331
-
4332
- if (this.hasFilters) {
4333
- data = this.filter(data);
4334
- }
4335
4455
  }
4336
4456
  }
4337
4457
 
@@ -4402,26 +4522,21 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4402
4522
  class: "p-datatable-header"
4403
4523
  };
4404
4524
  const _hoisted_3 = {
4405
- ref: "table",
4406
- role: "table",
4407
- class: "p-datatable-table"
4408
- };
4409
- const _hoisted_4 = {
4410
4525
  key: 4,
4411
4526
  class: "p-datatable-footer"
4412
4527
  };
4413
- const _hoisted_5 = {
4528
+ const _hoisted_4 = {
4414
4529
  ref: "resizeHelper",
4415
4530
  class: "p-column-resizer-helper",
4416
4531
  style: {"display":"none"}
4417
4532
  };
4418
- const _hoisted_6 = {
4533
+ const _hoisted_5 = {
4419
4534
  key: 5,
4420
4535
  ref: "reorderIndicatorUp",
4421
4536
  class: "pi pi-arrow-down p-datatable-reorder-indicator-up",
4422
4537
  style: {"position":"absolute","display":"none"}
4423
4538
  };
4424
- const _hoisted_7 = {
4539
+ const _hoisted_6 = {
4425
4540
  key: 6,
4426
4541
  ref: "reorderIndicatorDown",
4427
4542
  class: "pi pi-arrow-up p-datatable-reorder-indicator-down",
@@ -4453,7 +4568,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4453
4568
  ? (vue.openBlock(), vue.createBlock(_component_DTPaginator, {
4454
4569
  key: 2,
4455
4570
  rows: $data.d_rows,
4456
- first: $data.d_first,
4571
+ first: $props.lazy ? 0 : $data.d_first,
4457
4572
  totalRecords: $options.totalRecordsLength,
4458
4573
  pageLinkSize: $props.pageLinkSize,
4459
4574
  template: $props.paginatorTemplate,
@@ -4463,19 +4578,19 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4463
4578
  onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
4464
4579
  alwaysShow: $props.alwaysShowPaginator
4465
4580
  }, vue.createSlots({ _: 2 }, [
4466
- (_ctx.$slots.paginatorLeft)
4581
+ (_ctx.$slots.paginatorstart)
4467
4582
  ? {
4468
- name: "left",
4583
+ name: "start",
4469
4584
  fn: vue.withCtx(() => [
4470
- vue.renderSlot(_ctx.$slots, "paginatorLeft")
4585
+ vue.renderSlot(_ctx.$slots, "paginatorstart")
4471
4586
  ])
4472
4587
  }
4473
4588
  : undefined,
4474
- (_ctx.$slots.paginatorRight)
4589
+ (_ctx.$slots.paginatorend)
4475
4590
  ? {
4476
- name: "right",
4591
+ name: "end",
4477
4592
  fn: vue.withCtx(() => [
4478
- vue.renderSlot(_ctx.$slots, "paginatorRight")
4593
+ vue.renderSlot(_ctx.$slots, "paginatorend")
4479
4594
  ])
4480
4595
  }
4481
4596
  : undefined
@@ -4485,7 +4600,12 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4485
4600
  class: "p-datatable-wrapper",
4486
4601
  style: {maxHeight: $props.scrollHeight}
4487
4602
  }, [
4488
- vue.createVNode("table", _hoisted_3, [
4603
+ vue.createVNode("table", {
4604
+ ref: "table",
4605
+ role: "table",
4606
+ class: [$props.tableClass, 'p-datatable-table'],
4607
+ style: $props.tableStyle
4608
+ }, [
4489
4609
  vue.createVNode(_component_DTTableHeader, {
4490
4610
  columnGroup: $options.headerColumnGroup,
4491
4611
  columns: $options.columns,
@@ -4530,6 +4650,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4530
4650
  groupRowsBy: $props.groupRowsBy,
4531
4651
  expandableRowGroups: $props.expandableRowGroups,
4532
4652
  rowClass: $props.rowClass,
4653
+ rowStyle: $props.rowStyle,
4533
4654
  editMode: $props.editMode,
4534
4655
  compareSelectionBy: $props.compareSelectionBy,
4535
4656
  scrollable: $props.scrollable,
@@ -4564,8 +4685,9 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4564
4685
  onRowEditInit: _cache[24] || (_cache[24] = $event => ($options.onRowEditInit($event))),
4565
4686
  onRowEditSave: _cache[25] || (_cache[25] = $event => ($options.onRowEditSave($event))),
4566
4687
  onRowEditCancel: _cache[26] || (_cache[26] = $event => ($options.onRowEditCancel($event))),
4567
- onEditingCellChange: _cache[27] || (_cache[27] = $event => ($options.onEditingCellChange($event)))
4568
- }, null, 8, ["value", "columns", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown"]))
4688
+ editingMeta: $data.d_editingMeta,
4689
+ onEditingMetaChange: $options.onEditingMetaChange
4690
+ }, null, 8, ["value", "columns", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]))
4569
4691
  : vue.createCommentVNode("", true),
4570
4692
  vue.createVNode(_component_DTTableBody, {
4571
4693
  value: $options.dataToRender,
@@ -4581,6 +4703,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4581
4703
  groupRowsBy: $props.groupRowsBy,
4582
4704
  expandableRowGroups: $props.expandableRowGroups,
4583
4705
  rowClass: $props.rowClass,
4706
+ rowStyle: $props.rowStyle,
4584
4707
  editMode: $props.editMode,
4585
4708
  compareSelectionBy: $props.compareSelectionBy,
4586
4709
  scrollable: $props.scrollable,
@@ -4595,77 +4718,78 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
4595
4718
  loading: $props.loading,
4596
4719
  responsiveLayout: $props.responsiveLayout,
4597
4720
  onRowgroupToggle: $options.toggleRowGroup,
4598
- onRowClick: _cache[28] || (_cache[28] = $event => ($options.onRowClick($event))),
4599
- onRowDblclick: _cache[29] || (_cache[29] = $event => ($options.onRowDblClick($event))),
4600
- onRowRightclick: _cache[30] || (_cache[30] = $event => ($options.onRowRightClick($event))),
4721
+ onRowClick: _cache[27] || (_cache[27] = $event => ($options.onRowClick($event))),
4722
+ onRowDblclick: _cache[28] || (_cache[28] = $event => ($options.onRowDblClick($event))),
4723
+ onRowRightclick: _cache[29] || (_cache[29] = $event => ($options.onRowRightClick($event))),
4601
4724
  onRowTouchend: $options.onRowTouchEnd,
4602
4725
  onRowKeydown: $options.onRowKeyDown,
4603
4726
  onRowMousedown: $options.onRowMouseDown,
4604
- onRowDragstart: _cache[31] || (_cache[31] = $event => ($options.onRowDragStart($event))),
4605
- onRowDragover: _cache[32] || (_cache[32] = $event => ($options.onRowDragOver($event))),
4606
- onRowDragleave: _cache[33] || (_cache[33] = $event => ($options.onRowDragLeave($event))),
4607
- onRowDragend: _cache[34] || (_cache[34] = $event => ($options.onRowDragEnd($event))),
4608
- onRowDrop: _cache[35] || (_cache[35] = $event => ($options.onRowDrop($event))),
4609
- onRowToggle: _cache[36] || (_cache[36] = $event => ($options.toggleRow($event))),
4610
- onRadioChange: _cache[37] || (_cache[37] = $event => ($options.toggleRowWithRadio($event))),
4611
- onCheckboxChange: _cache[38] || (_cache[38] = $event => ($options.toggleRowWithCheckbox($event))),
4612
- onCellEditInit: _cache[39] || (_cache[39] = $event => ($options.onCellEditInit($event))),
4613
- onCellEditComplete: _cache[40] || (_cache[40] = $event => ($options.onCellEditComplete($event))),
4614
- onCellEditCancel: _cache[41] || (_cache[41] = $event => ($options.onCellEditCancel($event))),
4615
- onRowEditInit: _cache[42] || (_cache[42] = $event => ($options.onRowEditInit($event))),
4616
- onRowEditSave: _cache[43] || (_cache[43] = $event => ($options.onRowEditSave($event))),
4617
- onRowEditCancel: _cache[44] || (_cache[44] = $event => ($options.onRowEditCancel($event))),
4618
- onEditingCellChange: _cache[45] || (_cache[45] = $event => ($options.onEditingCellChange($event)))
4619
- }, null, 8, ["value", "columns", "empty", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown"]),
4727
+ onRowDragstart: _cache[30] || (_cache[30] = $event => ($options.onRowDragStart($event))),
4728
+ onRowDragover: _cache[31] || (_cache[31] = $event => ($options.onRowDragOver($event))),
4729
+ onRowDragleave: _cache[32] || (_cache[32] = $event => ($options.onRowDragLeave($event))),
4730
+ onRowDragend: _cache[33] || (_cache[33] = $event => ($options.onRowDragEnd($event))),
4731
+ onRowDrop: _cache[34] || (_cache[34] = $event => ($options.onRowDrop($event))),
4732
+ onRowToggle: _cache[35] || (_cache[35] = $event => ($options.toggleRow($event))),
4733
+ onRadioChange: _cache[36] || (_cache[36] = $event => ($options.toggleRowWithRadio($event))),
4734
+ onCheckboxChange: _cache[37] || (_cache[37] = $event => ($options.toggleRowWithCheckbox($event))),
4735
+ onCellEditInit: _cache[38] || (_cache[38] = $event => ($options.onCellEditInit($event))),
4736
+ onCellEditComplete: _cache[39] || (_cache[39] = $event => ($options.onCellEditComplete($event))),
4737
+ onCellEditCancel: _cache[40] || (_cache[40] = $event => ($options.onCellEditCancel($event))),
4738
+ onRowEditInit: _cache[41] || (_cache[41] = $event => ($options.onRowEditInit($event))),
4739
+ onRowEditSave: _cache[42] || (_cache[42] = $event => ($options.onRowEditSave($event))),
4740
+ onRowEditCancel: _cache[43] || (_cache[43] = $event => ($options.onRowEditCancel($event))),
4741
+ editingMeta: $data.d_editingMeta,
4742
+ onEditingMetaChange: $options.onEditingMetaChange
4743
+ }, null, 8, ["value", "columns", "empty", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]),
4620
4744
  vue.createVNode(_component_DTTableFooter, {
4621
4745
  columnGroup: $options.footerColumnGroup,
4622
4746
  columns: $options.columns
4623
4747
  }, null, 8, ["columnGroup", "columns"])
4624
- ], 512)
4748
+ ], 6)
4625
4749
  ], 4),
4626
4750
  ($options.paginatorBottom)
4627
4751
  ? (vue.openBlock(), vue.createBlock(_component_DTPaginator, {
4628
4752
  key: 3,
4629
4753
  rows: $data.d_rows,
4630
- first: $data.d_first,
4754
+ first: $props.lazy ? 0 : $data.d_first,
4631
4755
  totalRecords: $options.totalRecordsLength,
4632
4756
  pageLinkSize: $props.pageLinkSize,
4633
4757
  template: $props.paginatorTemplate,
4634
4758
  rowsPerPageOptions: $props.rowsPerPageOptions,
4635
4759
  currentPageReportTemplate: $props.currentPageReportTemplate,
4636
4760
  class: "p-paginator-bottom",
4637
- onPage: _cache[46] || (_cache[46] = $event => ($options.onPage($event))),
4761
+ onPage: _cache[44] || (_cache[44] = $event => ($options.onPage($event))),
4638
4762
  alwaysShow: $props.alwaysShowPaginator
4639
4763
  }, vue.createSlots({ _: 2 }, [
4640
- (_ctx.$slots.paginatorLeft)
4764
+ (_ctx.$slots.paginatorstart)
4641
4765
  ? {
4642
- name: "left",
4766
+ name: "start",
4643
4767
  fn: vue.withCtx(() => [
4644
- vue.renderSlot(_ctx.$slots, "paginatorLeft")
4768
+ vue.renderSlot(_ctx.$slots, "paginatorstart")
4645
4769
  ])
4646
4770
  }
4647
4771
  : undefined,
4648
- (_ctx.$slots.paginatorRight)
4772
+ (_ctx.$slots.paginatorend)
4649
4773
  ? {
4650
- name: "right",
4774
+ name: "end",
4651
4775
  fn: vue.withCtx(() => [
4652
- vue.renderSlot(_ctx.$slots, "paginatorRight")
4776
+ vue.renderSlot(_ctx.$slots, "paginatorend")
4653
4777
  ])
4654
4778
  }
4655
4779
  : undefined
4656
4780
  ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
4657
4781
  : vue.createCommentVNode("", true),
4658
4782
  (_ctx.$slots.footer)
4659
- ? (vue.openBlock(), vue.createBlock("div", _hoisted_4, [
4783
+ ? (vue.openBlock(), vue.createBlock("div", _hoisted_3, [
4660
4784
  vue.renderSlot(_ctx.$slots, "footer")
4661
4785
  ]))
4662
4786
  : vue.createCommentVNode("", true),
4663
- vue.createVNode("div", _hoisted_5, null, 512),
4787
+ vue.createVNode("div", _hoisted_4, null, 512),
4664
4788
  ($props.reorderableColumns)
4665
- ? (vue.openBlock(), vue.createBlock("span", _hoisted_6, null, 512))
4789
+ ? (vue.openBlock(), vue.createBlock("span", _hoisted_5, null, 512))
4666
4790
  : vue.createCommentVNode("", true),
4667
4791
  ($props.reorderableColumns)
4668
- ? (vue.openBlock(), vue.createBlock("span", _hoisted_7, null, 512))
4792
+ ? (vue.openBlock(), vue.createBlock("span", _hoisted_6, null, 512))
4669
4793
  : vue.createCommentVNode("", true)
4670
4794
  ], 2))
4671
4795
  }