primevue 3.28.0 → 3.29.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 (420) hide show
  1. package/README.md +3 -3
  2. package/autocomplete/AutoComplete.d.ts +153 -1
  3. package/autocomplete/AutoComplete.vue +46 -17
  4. package/autocomplete/autocomplete.cjs.js +80 -74
  5. package/autocomplete/autocomplete.cjs.min.js +1 -1
  6. package/autocomplete/autocomplete.esm.js +80 -75
  7. package/autocomplete/autocomplete.esm.min.js +1 -1
  8. package/autocomplete/autocomplete.js +81 -76
  9. package/autocomplete/autocomplete.min.js +1 -1
  10. package/basecomponent/BaseComponent.vue +19 -5
  11. package/basecomponent/basecomponent.cjs.js +19 -5
  12. package/basecomponent/basecomponent.cjs.min.js +1 -1
  13. package/basecomponent/basecomponent.esm.js +19 -5
  14. package/basecomponent/basecomponent.esm.min.js +1 -1
  15. package/basecomponent/basecomponent.js +20 -7
  16. package/basecomponent/basecomponent.min.js +1 -1
  17. package/calendar/Calendar.d.ts +269 -0
  18. package/calendar/Calendar.vue +75 -59
  19. package/calendar/calendar.cjs.js +223 -259
  20. package/calendar/calendar.cjs.min.js +1 -1
  21. package/calendar/calendar.esm.js +223 -260
  22. package/calendar/calendar.esm.min.js +1 -1
  23. package/calendar/calendar.js +224 -261
  24. package/calendar/calendar.min.js +1 -1
  25. package/carousel/Carousel.d.ts +154 -0
  26. package/carousel/Carousel.vue +27 -14
  27. package/carousel/carousel.cjs.js +64 -65
  28. package/carousel/carousel.cjs.min.js +1 -1
  29. package/carousel/carousel.esm.js +64 -66
  30. package/carousel/carousel.esm.min.js +1 -1
  31. package/carousel/carousel.js +65 -67
  32. package/carousel/carousel.min.js +1 -1
  33. package/cascadeselect/CascadeSelect.d.ts +133 -0
  34. package/cascadeselect/CascadeSelect.vue +15 -12
  35. package/cascadeselect/CascadeSelectSub.vue +7 -3
  36. package/cascadeselect/cascadeselect.cjs.js +63 -66
  37. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  38. package/cascadeselect/cascadeselect.esm.js +63 -67
  39. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  40. package/cascadeselect/cascadeselect.js +64 -68
  41. package/cascadeselect/cascadeselect.min.js +1 -1
  42. package/checkbox/Checkbox.d.ts +60 -0
  43. package/checkbox/Checkbox.vue +7 -5
  44. package/checkbox/checkbox.cjs.js +17 -15
  45. package/checkbox/checkbox.cjs.min.js +1 -1
  46. package/checkbox/checkbox.esm.js +17 -16
  47. package/checkbox/checkbox.esm.min.js +1 -1
  48. package/checkbox/checkbox.js +18 -17
  49. package/checkbox/checkbox.min.js +1 -1
  50. package/chips/Chips.d.ts +80 -0
  51. package/chips/Chips.vue +9 -5
  52. package/chips/chips.cjs.js +23 -24
  53. package/chips/chips.cjs.min.js +1 -1
  54. package/chips/chips.esm.js +23 -25
  55. package/chips/chips.esm.min.js +1 -1
  56. package/chips/chips.js +24 -26
  57. package/chips/chips.min.js +1 -1
  58. package/colorpicker/ColorPicker.d.ts +76 -0
  59. package/colorpicker/ColorPicker.vue +11 -9
  60. package/colorpicker/colorpicker.cjs.js +28 -27
  61. package/colorpicker/colorpicker.cjs.min.js +1 -1
  62. package/colorpicker/colorpicker.esm.js +28 -28
  63. package/colorpicker/colorpicker.esm.min.js +1 -1
  64. package/colorpicker/colorpicker.js +29 -29
  65. package/colorpicker/colorpicker.min.js +1 -1
  66. package/column/Column.d.ts +303 -2
  67. package/column/Column.vue +3 -0
  68. package/column/column.cjs.js +7 -0
  69. package/column/column.cjs.min.js +1 -1
  70. package/column/column.esm.js +3 -0
  71. package/column/column.esm.min.js +1 -1
  72. package/column/column.js +7 -2
  73. package/column/column.min.js +1 -1
  74. package/columngroup/ColumnGroup.d.ts +34 -0
  75. package/columngroup/ColumnGroup.vue +3 -0
  76. package/columngroup/columngroup.cjs.js +7 -0
  77. package/columngroup/columngroup.cjs.min.js +1 -1
  78. package/columngroup/columngroup.esm.js +3 -0
  79. package/columngroup/columngroup.esm.min.js +1 -1
  80. package/columngroup/columngroup.js +7 -2
  81. package/columngroup/columngroup.min.js +1 -1
  82. package/config/PrimeVue.d.ts +163 -2
  83. package/confirmdialog/ConfirmDialog.d.ts +14 -7
  84. package/contextmenu/ContextMenu.d.ts +1 -1
  85. package/core/core.js +448 -331
  86. package/core/core.min.js +9 -9
  87. package/datatable/BodyCell.vue +29 -13
  88. package/datatable/ColumnFilter.vue +49 -20
  89. package/datatable/DataTable.d.ts +188 -1
  90. package/datatable/DataTable.vue +25 -14
  91. package/datatable/FooterCell.vue +15 -1
  92. package/datatable/HeaderCell.vue +31 -6
  93. package/datatable/HeaderCheckbox.vue +35 -5
  94. package/datatable/RowCheckbox.vue +36 -5
  95. package/datatable/RowRadioButton.vue +26 -6
  96. package/datatable/TableBody.vue +41 -11
  97. package/datatable/TableFooter.vue +31 -5
  98. package/datatable/TableHeader.vue +53 -6
  99. package/datatable/datatable.cjs.js +559 -376
  100. package/datatable/datatable.cjs.min.js +1 -1
  101. package/datatable/datatable.esm.js +559 -377
  102. package/datatable/datatable.esm.min.js +1 -1
  103. package/datatable/datatable.js +560 -378
  104. package/datatable/datatable.min.js +1 -1
  105. package/dataview/DataView.d.ts +72 -0
  106. package/dataview/DataView.vue +13 -8
  107. package/dataview/dataview.cjs.js +33 -37
  108. package/dataview/dataview.cjs.min.js +1 -1
  109. package/dataview/dataview.esm.js +33 -38
  110. package/dataview/dataview.esm.min.js +1 -1
  111. package/dataview/dataview.js +33 -38
  112. package/dataview/dataview.min.js +1 -1
  113. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +65 -0
  114. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +7 -5
  115. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +19 -17
  116. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  117. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +19 -18
  118. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  119. package/dataviewlayoutoptions/dataviewlayoutoptions.js +20 -19
  120. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  121. package/dialog/Dialog.d.ts +6 -4
  122. package/dialog/Dialog.vue +2 -3
  123. package/dialog/dialog.cjs.js +4 -5
  124. package/dialog/dialog.cjs.min.js +1 -1
  125. package/dialog/dialog.esm.js +4 -5
  126. package/dialog/dialog.esm.min.js +1 -1
  127. package/dialog/dialog.js +4 -5
  128. package/dialog/dialog.min.js +1 -1
  129. package/dropdown/Dropdown.d.ts +162 -1
  130. package/dropdown/Dropdown.vue +44 -25
  131. package/dropdown/dropdown.cjs.js +97 -93
  132. package/dropdown/dropdown.cjs.min.js +1 -1
  133. package/dropdown/dropdown.esm.js +97 -94
  134. package/dropdown/dropdown.esm.min.js +1 -1
  135. package/dropdown/dropdown.js +98 -95
  136. package/dropdown/dropdown.min.js +1 -1
  137. package/editor/Editor.d.ts +67 -0
  138. package/editor/Editor.vue +35 -33
  139. package/editor/editor.cjs.js +88 -73
  140. package/editor/editor.cjs.min.js +1 -1
  141. package/editor/editor.esm.js +85 -74
  142. package/editor/editor.esm.min.js +1 -1
  143. package/editor/editor.js +89 -75
  144. package/editor/editor.min.js +1 -1
  145. package/fileupload/FileUpload.d.ts +23 -23
  146. package/fileupload/FileUpload.vue +3 -3
  147. package/fileupload/fileupload.cjs.js +4 -4
  148. package/fileupload/fileupload.cjs.min.js +1 -1
  149. package/fileupload/fileupload.esm.js +4 -4
  150. package/fileupload/fileupload.esm.min.js +1 -1
  151. package/fileupload/fileupload.js +4 -4
  152. package/fileupload/fileupload.min.js +1 -1
  153. package/galleria/Galleria.d.ts +196 -0
  154. package/galleria/Galleria.vue +5 -3
  155. package/galleria/GalleriaContent.vue +10 -6
  156. package/galleria/GalleriaItem.vue +12 -9
  157. package/galleria/GalleriaThumbnails.vue +46 -9
  158. package/galleria/galleria.cjs.js +106 -104
  159. package/galleria/galleria.cjs.min.js +1 -1
  160. package/galleria/galleria.esm.js +106 -105
  161. package/galleria/galleria.esm.min.js +1 -1
  162. package/galleria/galleria.js +107 -106
  163. package/galleria/galleria.min.js +1 -1
  164. package/image/Image.d.ts +170 -0
  165. package/image/Image.vue +49 -21
  166. package/image/image.cjs.js +94 -59
  167. package/image/image.cjs.min.js +1 -1
  168. package/image/image.esm.js +94 -60
  169. package/image/image.esm.min.js +1 -1
  170. package/image/image.js +95 -61
  171. package/image/image.min.js +1 -1
  172. package/inputmask/InputMask.d.ts +25 -0
  173. package/inputmask/InputMask.vue +3 -1
  174. package/inputmask/inputmask.cjs.js +9 -3
  175. package/inputmask/inputmask.cjs.min.js +1 -1
  176. package/inputmask/inputmask.esm.js +6 -4
  177. package/inputmask/inputmask.esm.min.js +1 -1
  178. package/inputmask/inputmask.js +10 -5
  179. package/inputmask/inputmask.min.js +1 -1
  180. package/inputnumber/InputNumber.d.ts +69 -0
  181. package/inputnumber/InputNumber.vue +13 -11
  182. package/inputnumber/inputnumber.cjs.js +19 -28
  183. package/inputnumber/inputnumber.cjs.min.js +1 -1
  184. package/inputnumber/inputnumber.esm.js +19 -29
  185. package/inputnumber/inputnumber.esm.min.js +1 -1
  186. package/inputnumber/inputnumber.js +20 -30
  187. package/inputnumber/inputnumber.min.js +1 -1
  188. package/inputswitch/InputSwitch.d.ts +51 -0
  189. package/inputswitch/InputSwitch.vue +7 -4
  190. package/inputswitch/inputswitch.cjs.js +15 -11
  191. package/inputswitch/inputswitch.cjs.min.js +1 -1
  192. package/inputswitch/inputswitch.esm.js +12 -12
  193. package/inputswitch/inputswitch.esm.min.js +1 -1
  194. package/inputswitch/inputswitch.js +16 -13
  195. package/inputswitch/inputswitch.min.js +1 -1
  196. package/inputtext/InputText.d.ts +25 -0
  197. package/inputtext/InputText.vue +4 -1
  198. package/inputtext/inputtext.cjs.js +9 -3
  199. package/inputtext/inputtext.cjs.min.js +1 -1
  200. package/inputtext/inputtext.esm.js +6 -4
  201. package/inputtext/inputtext.esm.min.js +1 -1
  202. package/inputtext/inputtext.js +10 -5
  203. package/inputtext/inputtext.min.js +1 -1
  204. package/knob/Knob.d.ts +78 -0
  205. package/knob/Knob.vue +8 -4
  206. package/knob/knob.cjs.js +17 -13
  207. package/knob/knob.cjs.min.js +1 -1
  208. package/knob/knob.esm.js +14 -14
  209. package/knob/knob.esm.min.js +1 -1
  210. package/knob/knob.js +18 -15
  211. package/knob/knob.min.js +1 -1
  212. package/listbox/Listbox.d.ts +137 -1
  213. package/listbox/Listbox.vue +28 -15
  214. package/listbox/listbox.cjs.js +83 -78
  215. package/listbox/listbox.cjs.min.js +1 -1
  216. package/listbox/listbox.esm.js +83 -79
  217. package/listbox/listbox.esm.min.js +1 -1
  218. package/listbox/listbox.js +84 -80
  219. package/listbox/listbox.min.js +1 -1
  220. package/megamenu/MegaMenu.d.ts +5 -5
  221. package/menu/Menu.d.ts +4 -4
  222. package/menubar/Menubar.d.ts +1 -1
  223. package/multiselect/MultiSelect.d.ts +223 -1
  224. package/multiselect/MultiSelect.vue +72 -41
  225. package/multiselect/multiselect.cjs.js +156 -151
  226. package/multiselect/multiselect.cjs.min.js +1 -1
  227. package/multiselect/multiselect.esm.js +156 -152
  228. package/multiselect/multiselect.esm.min.js +1 -1
  229. package/multiselect/multiselect.js +157 -153
  230. package/multiselect/multiselect.min.js +1 -1
  231. package/orderlist/OrderList.d.ts +94 -0
  232. package/orderlist/OrderList.vue +38 -18
  233. package/orderlist/orderlist.cjs.js +50 -36
  234. package/orderlist/orderlist.cjs.min.js +1 -1
  235. package/orderlist/orderlist.esm.js +50 -37
  236. package/orderlist/orderlist.esm.min.js +1 -1
  237. package/orderlist/orderlist.js +51 -38
  238. package/orderlist/orderlist.min.js +1 -1
  239. package/organizationchart/OrganizationChart.d.ts +129 -0
  240. package/organizationchart/OrganizationChart.vue +14 -2
  241. package/organizationchart/OrganizationChartNode.vue +37 -16
  242. package/organizationchart/organizationchart.cjs.js +77 -61
  243. package/organizationchart/organizationchart.cjs.min.js +1 -1
  244. package/organizationchart/organizationchart.esm.js +77 -62
  245. package/organizationchart/organizationchart.esm.min.js +1 -1
  246. package/organizationchart/organizationchart.js +78 -63
  247. package/organizationchart/organizationchart.min.js +1 -1
  248. package/package.json +1 -1
  249. package/paginator/CurrentPageReport.vue +5 -1
  250. package/paginator/FirstPageLink.vue +13 -2
  251. package/paginator/JumpToPageDropdown.vue +3 -1
  252. package/paginator/JumpToPageInput.vue +3 -1
  253. package/paginator/LastPageLink.vue +13 -2
  254. package/paginator/NextPageLink.vue +13 -2
  255. package/paginator/PageLinks.vue +12 -2
  256. package/paginator/Paginator.d.ts +133 -0
  257. package/paginator/Paginator.vue +23 -12
  258. package/paginator/PrevPageLink.vue +13 -2
  259. package/paginator/RowsPerPageDropdown.vue +3 -1
  260. package/paginator/paginator.cjs.js +135 -76
  261. package/paginator/paginator.cjs.min.js +1 -1
  262. package/paginator/paginator.esm.js +135 -77
  263. package/paginator/paginator.esm.min.js +1 -1
  264. package/paginator/paginator.js +136 -78
  265. package/paginator/paginator.min.js +1 -1
  266. package/panelmenu/PanelMenu.d.ts +4 -8
  267. package/password/Password.d.ts +104 -0
  268. package/password/Password.vue +11 -9
  269. package/password/password.cjs.js +26 -28
  270. package/password/password.cjs.min.js +1 -1
  271. package/password/password.esm.js +26 -29
  272. package/password/password.esm.min.js +1 -1
  273. package/password/password.js +27 -30
  274. package/password/password.min.js +1 -1
  275. package/picklist/PickList.d.ts +160 -0
  276. package/picklist/PickList.vue +46 -34
  277. package/picklist/picklist.cjs.js +111 -85
  278. package/picklist/picklist.cjs.min.js +1 -1
  279. package/picklist/picklist.esm.js +111 -86
  280. package/picklist/picklist.esm.min.js +1 -1
  281. package/picklist/picklist.js +112 -87
  282. package/picklist/picklist.min.js +1 -1
  283. package/radiobutton/RadioButton.d.ts +55 -0
  284. package/radiobutton/RadioButton.vue +7 -5
  285. package/radiobutton/radiobutton.cjs.js +19 -16
  286. package/radiobutton/radiobutton.cjs.min.js +1 -1
  287. package/radiobutton/radiobutton.esm.js +16 -17
  288. package/radiobutton/radiobutton.esm.min.js +1 -1
  289. package/radiobutton/radiobutton.js +20 -18
  290. package/radiobutton/radiobutton.min.js +1 -1
  291. package/rating/Rating.d.ts +96 -0
  292. package/rating/Rating.vue +32 -9
  293. package/rating/rating.cjs.js +41 -34
  294. package/rating/rating.cjs.min.js +1 -1
  295. package/rating/rating.esm.js +41 -35
  296. package/rating/rating.esm.min.js +1 -1
  297. package/rating/rating.js +42 -36
  298. package/rating/rating.min.js +1 -1
  299. package/row/Row.d.ts +29 -0
  300. package/row/Row.vue +3 -0
  301. package/row/row.cjs.js +7 -0
  302. package/row/row.cjs.min.js +1 -1
  303. package/row/row.esm.js +3 -0
  304. package/row/row.esm.min.js +1 -1
  305. package/row/row.js +7 -2
  306. package/row/row.min.js +1 -1
  307. package/selectbutton/SelectButton.d.ts +68 -0
  308. package/selectbutton/SelectButton.vue +13 -2
  309. package/selectbutton/selectbutton.cjs.js +20 -10
  310. package/selectbutton/selectbutton.cjs.min.js +1 -1
  311. package/selectbutton/selectbutton.esm.js +20 -11
  312. package/selectbutton/selectbutton.esm.min.js +1 -1
  313. package/selectbutton/selectbutton.js +21 -12
  314. package/selectbutton/selectbutton.min.js +1 -1
  315. package/slider/Slider.d.ts +48 -0
  316. package/slider/Slider.vue +7 -2
  317. package/slider/slider.cjs.js +22 -16
  318. package/slider/slider.cjs.min.js +1 -1
  319. package/slider/slider.esm.js +19 -17
  320. package/slider/slider.esm.min.js +1 -1
  321. package/slider/slider.js +23 -18
  322. package/slider/slider.min.js +1 -1
  323. package/splitbutton/SplitButton.d.ts +0 -4
  324. package/splitbutton/SplitButton.vue +2 -2
  325. package/splitbutton/splitbutton.cjs.js +7 -6
  326. package/splitbutton/splitbutton.cjs.min.js +1 -1
  327. package/splitbutton/splitbutton.esm.js +7 -6
  328. package/splitbutton/splitbutton.esm.min.js +1 -1
  329. package/splitbutton/splitbutton.js +7 -6
  330. package/splitbutton/splitbutton.min.js +1 -1
  331. package/splitter/Splitter.d.ts +3 -3
  332. package/textarea/Textarea.d.ts +32 -0
  333. package/textarea/Textarea.vue +4 -1
  334. package/textarea/textarea.cjs.js +9 -3
  335. package/textarea/textarea.cjs.min.js +1 -1
  336. package/textarea/textarea.esm.js +6 -4
  337. package/textarea/textarea.esm.min.js +1 -1
  338. package/textarea/textarea.js +10 -5
  339. package/textarea/textarea.min.js +1 -1
  340. package/timeline/Timeline.d.ts +49 -0
  341. package/timeline/Timeline.vue +9 -7
  342. package/timeline/timeline.cjs.js +19 -21
  343. package/timeline/timeline.cjs.min.js +1 -1
  344. package/timeline/timeline.esm.js +16 -22
  345. package/timeline/timeline.esm.min.js +1 -1
  346. package/timeline/timeline.js +20 -23
  347. package/timeline/timeline.min.js +1 -1
  348. package/toast/Toast.d.ts +4 -0
  349. package/toast/Toast.vue +1 -1
  350. package/toast/toast.cjs.js +3 -3
  351. package/toast/toast.cjs.min.js +1 -1
  352. package/toast/toast.esm.js +3 -3
  353. package/toast/toast.esm.min.js +1 -1
  354. package/toast/toast.js +3 -3
  355. package/toast/toast.min.js +1 -1
  356. package/togglebutton/ToggleButton.d.ts +59 -0
  357. package/togglebutton/ToggleButton.vue +7 -5
  358. package/togglebutton/togglebutton.cjs.js +15 -14
  359. package/togglebutton/togglebutton.cjs.min.js +1 -1
  360. package/togglebutton/togglebutton.esm.js +15 -15
  361. package/togglebutton/togglebutton.esm.min.js +1 -1
  362. package/togglebutton/togglebutton.js +16 -16
  363. package/togglebutton/togglebutton.min.js +1 -1
  364. package/tooltip/Tooltip.d.ts +10 -0
  365. package/tooltip/tooltip.cjs.js +51 -9
  366. package/tooltip/tooltip.cjs.min.js +1 -1
  367. package/tooltip/tooltip.esm.js +52 -10
  368. package/tooltip/tooltip.esm.min.js +1 -1
  369. package/tooltip/tooltip.js +51 -9
  370. package/tooltip/tooltip.min.js +1 -1
  371. package/tree/Tree.d.ts +137 -0
  372. package/tree/Tree.vue +12 -9
  373. package/tree/TreeNode.vue +23 -10
  374. package/tree/tree.cjs.js +85 -79
  375. package/tree/tree.cjs.min.js +1 -1
  376. package/tree/tree.esm.js +85 -80
  377. package/tree/tree.esm.min.js +1 -1
  378. package/tree/tree.js +86 -81
  379. package/tree/tree.min.js +1 -1
  380. package/treeselect/TreeSelect.d.ts +103 -1
  381. package/treeselect/TreeSelect.vue +15 -12
  382. package/treeselect/treeselect.cjs.js +37 -39
  383. package/treeselect/treeselect.cjs.min.js +1 -1
  384. package/treeselect/treeselect.esm.js +37 -40
  385. package/treeselect/treeselect.esm.min.js +1 -1
  386. package/treeselect/treeselect.js +38 -41
  387. package/treeselect/treeselect.min.js +1 -1
  388. package/treetable/BodyCell.vue +38 -10
  389. package/treetable/FooterCell.vue +15 -1
  390. package/treetable/HeaderCell.vue +28 -5
  391. package/treetable/TreeTable.d.ts +162 -0
  392. package/treetable/TreeTable.vue +25 -19
  393. package/treetable/TreeTableRow.vue +5 -0
  394. package/treetable/treetable.cjs.js +205 -158
  395. package/treetable/treetable.cjs.min.js +1 -1
  396. package/treetable/treetable.esm.js +205 -159
  397. package/treetable/treetable.esm.min.js +1 -1
  398. package/treetable/treetable.js +206 -160
  399. package/treetable/treetable.min.js +1 -1
  400. package/tristatecheckbox/TriStateCheckbox.d.ts +93 -0
  401. package/tristatecheckbox/TriStateCheckbox.vue +19 -8
  402. package/tristatecheckbox/tristatecheckbox.cjs.js +31 -22
  403. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  404. package/tristatecheckbox/tristatecheckbox.esm.js +31 -23
  405. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  406. package/tristatecheckbox/tristatecheckbox.js +32 -24
  407. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  408. package/ts-helpers.d.ts +3 -1
  409. package/vetur-attributes.json +180 -0
  410. package/vetur-tags.json +94 -39
  411. package/virtualscroller/VirtualScroller.d.ts +97 -0
  412. package/virtualscroller/VirtualScroller.vue +7 -5
  413. package/virtualscroller/virtualscroller.cjs.js +22 -19
  414. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  415. package/virtualscroller/virtualscroller.esm.js +22 -20
  416. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  417. package/virtualscroller/virtualscroller.js +23 -21
  418. package/virtualscroller/virtualscroller.min.js +1 -1
  419. package/web-types.json +467 -3
  420. package/datatable/TableLoadingBody.vue +0 -25
@@ -1,9 +1,10 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIcon, Paginator, utils, VirtualScroller, ChevronDownIcon, ChevronRightIcon, BarsIcon, CheckIcon, PencilIcon, TimesIcon, OverlayEventBus, Ripple, vue, Button, Dropdown, FocusTrap, FilterIcon, FilterSlashIcon, PlusIcon, TrashIcon, Portal, SortAltIcon, SortAmountDownIcon, SortAmountUpAltIcon) {
2
+ this.primevue.datatable = (function (api, BaseComponent, ArrowDownIcon, ArrowUpIcon, SpinnerIcon, Paginator, utils, VirtualScroller, ChevronDownIcon, ChevronRightIcon, BarsIcon, CheckIcon, PencilIcon, TimesIcon, OverlayEventBus, Ripple, vue, Button, Dropdown, FocusTrap, FilterIcon, FilterSlashIcon, PlusIcon, TrashIcon, Portal, SortAltIcon, SortAmountDownIcon, SortAmountUpAltIcon) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
6
 
7
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
7
8
  var ArrowDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowDownIcon);
8
9
  var ArrowUpIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowUpIcon);
9
10
  var SpinnerIcon__default = /*#__PURE__*/_interopDefaultLegacy(SpinnerIcon);
@@ -31,10 +32,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
31
32
 
32
33
  var script$a = {
33
34
  name: 'RowCheckbox',
35
+ extends: BaseComponent__default["default"],
34
36
  emits: ['change'],
35
37
  props: {
36
38
  value: null,
37
39
  checked: null,
40
+ column: null,
38
41
  rowCheckboxIconTemplate: {
39
42
  type: Function,
40
43
  default: null
@@ -46,6 +49,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
46
49
  };
47
50
  },
48
51
  methods: {
52
+ getColumnPTOptions(key) {
53
+ return this.ptmo(this.getColumnProp(), key, {
54
+ props: this.column.props,
55
+ parent: {
56
+ props: this.$props,
57
+ state: this.$data
58
+ },
59
+ context: {
60
+ checked: this.checked,
61
+ focused: this.focused,
62
+ disabled: this.$attrs.disabled
63
+ }
64
+ });
65
+ },
66
+ getColumnProp() {
67
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
68
+ },
49
69
  onClick(event) {
50
70
  if (!this.$attrs.disabled) {
51
71
  this.$emit('change', {
@@ -84,18 +104,17 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
84
104
  }
85
105
  };
86
106
 
87
- const _hoisted_1$a = { class: "p-hidden-accessible" };
88
- const _hoisted_2$9 = ["checked", "disabled", "tabindex", "aria-label"];
107
+ const _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
89
108
 
90
109
  function render$a(_ctx, _cache, $props, $setup, $data, $options) {
91
110
  const _component_CheckIcon = vue.resolveComponent("CheckIcon");
92
111
 
93
- return (vue.openBlock(), vue.createElementBlock("div", {
94
- class: vue.normalizeClass(['p-checkbox p-component', { 'p-checkbox-focused': $data.focused }]),
112
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
113
+ class: ['p-checkbox p-component', { 'p-checkbox-focused': $data.focused }],
95
114
  onClick: _cache[3] || (_cache[3] = (...args) => ($options.onClick && $options.onClick(...args)))
96
- }, [
97
- vue.createElementVNode("div", _hoisted_1$a, [
98
- vue.createElementVNode("input", {
115
+ }, $options.getColumnPTOptions('checkboxWrapper')), [
116
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-hidden-accessible" }, $options.getColumnPTOptions('hiddenInputWrapper')), [
117
+ vue.createElementVNode("input", vue.mergeProps({
99
118
  ref: "input",
100
119
  type: "checkbox",
101
120
  checked: $props.checked,
@@ -105,36 +124,38 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
105
124
  onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
106
125
  onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event))),
107
126
  onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeydown && $options.onKeydown(...args)))
108
- }, null, 40, _hoisted_2$9)
109
- ]),
110
- vue.createElementVNode("div", {
127
+ }, $options.getColumnPTOptions('hiddenInput')), null, 16, _hoisted_1$7)
128
+ ], 16),
129
+ vue.createElementVNode("div", vue.mergeProps({
111
130
  ref: "box",
112
- class: vue.normalizeClass(['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }])
113
- }, [
131
+ class: ['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]
132
+ }, $options.getColumnPTOptions('checkbox')), [
114
133
  ($props.rowCheckboxIconTemplate)
115
134
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.rowCheckboxIconTemplate), {
116
135
  key: 0,
117
136
  checked: $props.checked,
118
137
  class: "p-checkbox-icon"
119
138
  }, null, 8, ["checked"]))
120
- : (vue.openBlock(), vue.createBlock(_component_CheckIcon, {
139
+ : (vue.openBlock(), vue.createBlock(_component_CheckIcon, vue.mergeProps({
121
140
  key: 1,
122
141
  class: "p-checkbox-icon"
123
- }))
124
- ], 2)
125
- ], 2))
142
+ }, $options.getColumnPTOptions('checkboxIcon')), null, 16))
143
+ ], 16)
144
+ ], 16))
126
145
  }
127
146
 
128
147
  script$a.render = render$a;
129
148
 
130
149
  var script$9 = {
131
150
  name: 'RowRadioButton',
151
+ extends: BaseComponent__default["default"],
132
152
  inheritAttrs: false,
133
153
  emits: ['change'],
134
154
  props: {
135
155
  value: null,
136
156
  checked: null,
137
- name: null
157
+ name: null,
158
+ column: null
138
159
  },
139
160
  data() {
140
161
  return {
@@ -142,6 +163,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
142
163
  };
143
164
  },
144
165
  methods: {
166
+ getColumnPTOptions(key) {
167
+ return this.ptmo(this.getColumnProp(), key, {
168
+ props: this.column.props,
169
+ parent: {
170
+ props: this.$props,
171
+ state: this.$data
172
+ },
173
+ context: {
174
+ checked: this.checked,
175
+ focused: this.focused,
176
+ disabled: this.$attrs.disabled
177
+ }
178
+ });
179
+ },
180
+ getColumnProp() {
181
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
182
+ },
145
183
  onClick(event) {
146
184
  if (!this.disabled) {
147
185
  if (!this.checked) {
@@ -163,20 +201,15 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
163
201
  }
164
202
  };
165
203
 
166
- const _hoisted_1$9 = { class: "p-hidden-accessible" };
167
- const _hoisted_2$8 = ["checked", "disabled", "name"];
168
- const _hoisted_3$6 = /*#__PURE__*/vue.createElementVNode("div", { class: "p-radiobutton-icon" }, null, -1);
169
- const _hoisted_4$5 = [
170
- _hoisted_3$6
171
- ];
204
+ const _hoisted_1$6 = ["checked", "disabled", "name"];
172
205
 
173
206
  function render$9(_ctx, _cache, $props, $setup, $data, $options) {
174
- return (vue.openBlock(), vue.createElementBlock("div", {
175
- class: vue.normalizeClass(['p-radiobutton p-component', { 'p-radiobutton-focused': $data.focused }]),
207
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
208
+ class: ['p-radiobutton p-component', { 'p-radiobutton-focused': $data.focused }],
176
209
  onClick: _cache[3] || (_cache[3] = (...args) => ($options.onClick && $options.onClick(...args)))
177
- }, [
178
- vue.createElementVNode("div", _hoisted_1$9, [
179
- vue.createElementVNode("input", {
210
+ }, $options.getColumnPTOptions('radiobuttonWrapper')), [
211
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-hidden-accessible" }, _ctx.ptm('hiddenInputWrapper')), [
212
+ vue.createElementVNode("input", vue.mergeProps({
180
213
  ref: "input",
181
214
  type: "radio",
182
215
  checked: $props.checked,
@@ -186,19 +219,22 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
186
219
  onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
187
220
  onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event))),
188
221
  onKeydown: _cache[2] || (_cache[2] = vue.withKeys(vue.withModifiers((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
189
- }, null, 40, _hoisted_2$8)
190
- ]),
191
- vue.createElementVNode("div", {
222
+ }, $options.getColumnPTOptions('hiddenInput')), null, 16, _hoisted_1$6)
223
+ ], 16),
224
+ vue.createElementVNode("div", vue.mergeProps({
192
225
  ref: "box",
193
- class: vue.normalizeClass(['p-radiobutton-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }])
194
- }, _hoisted_4$5, 2)
195
- ], 2))
226
+ class: ['p-radiobutton-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]
227
+ }, $options.getColumnPTOptions('radiobutton')), [
228
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-radiobutton-icon" }, $options.getColumnPTOptions('radiobuttonIcon')), null, 16)
229
+ ], 16)
230
+ ], 16))
196
231
  }
197
232
 
198
233
  script$9.render = render$9;
199
234
 
200
235
  var script$8 = {
201
236
  name: 'BodyCell',
237
+ extends: BaseComponent__default["default"],
202
238
  emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
203
239
  props: {
204
240
  rowData: {
@@ -311,6 +347,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
311
347
  columnProp(prop) {
312
348
  return utils.ObjectUtils.getVNodeProp(this.column, prop);
313
349
  },
350
+ getColumnPTOptions(column, key) {
351
+ return this.ptmo(this.getColumnProp(column), key, {
352
+ props: column.props,
353
+ parent: {
354
+ props: this.$props,
355
+ state: this.$data
356
+ }
357
+ });
358
+ },
359
+ getColumnProp(column) {
360
+ return column.props && column.props.pt ? column.props.pt : undefined; //@todo
361
+ },
314
362
  resolveFieldData() {
315
363
  return utils.ObjectUtils.resolveFieldData(this.rowData, this.field);
316
364
  },
@@ -615,14 +663,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
615
663
  }
616
664
  };
617
665
 
618
- const _hoisted_1$8 = {
619
- key: 0,
620
- class: "p-column-title"
621
- };
622
- const _hoisted_2$7 = ["aria-expanded", "aria-controls", "aria-label"];
623
- const _hoisted_3$5 = ["aria-label"];
624
- const _hoisted_4$4 = ["aria-label"];
625
- const _hoisted_5$4 = ["aria-label"];
666
+ const _hoisted_1$5 = ["aria-expanded", "aria-controls", "aria-label"];
667
+ const _hoisted_2$2 = ["aria-label"];
668
+ const _hoisted_3$2 = ["aria-label"];
669
+ const _hoisted_4$1 = ["aria-label"];
626
670
 
627
671
  function render$8(_ctx, _cache, $props, $setup, $data, $options) {
628
672
  const _component_DTRadioButton = vue.resolveComponent("DTRadioButton");
@@ -632,11 +676,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
632
676
  const _directive_ripple = vue.resolveDirective("ripple");
633
677
 
634
678
  return ($options.loading)
635
- ? (vue.openBlock(), vue.createElementBlock("td", {
679
+ ? (vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
636
680
  key: 0,
637
- style: vue.normalizeStyle($options.containerStyle),
638
- class: vue.normalizeClass($options.containerClass)
639
- }, [
681
+ style: $options.containerStyle,
682
+ class: $options.containerClass,
683
+ role: "cell"
684
+ }, { ...$options.getColumnPTOptions($props.column, 'root'), ...$options.getColumnPTOptions($props.column, 'bodyCell') }), [
640
685
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
641
686
  data: $props.rowData,
642
687
  column: $props.column,
@@ -645,17 +690,20 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
645
690
  frozenRow: $props.frozenRow,
646
691
  loadingOptions: $options.loadingOptions
647
692
  }, null, 8, ["data", "column", "field", "index", "frozenRow", "loadingOptions"]))
648
- ], 6))
649
- : (vue.openBlock(), vue.createElementBlock("td", {
693
+ ], 16))
694
+ : (vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
650
695
  key: 1,
651
- style: vue.normalizeStyle($options.containerStyle),
652
- class: vue.normalizeClass($options.containerClass),
696
+ style: $options.containerStyle,
697
+ class: $options.containerClass,
653
698
  onClick: _cache[6] || (_cache[6] = (...args) => ($options.onClick && $options.onClick(...args))),
654
699
  onKeydown: _cache[7] || (_cache[7] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
655
700
  role: "cell"
656
- }, [
701
+ }, { ...$options.getColumnPTOptions($props.column, 'root'), ...$options.getColumnPTOptions($props.column, 'bodyCell') }), [
657
702
  ($props.responsiveLayout === 'stack')
658
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$8, vue.toDisplayString($options.columnProp('header')), 1))
703
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
704
+ key: 0,
705
+ class: "p-column-title"
706
+ }, $options.getColumnPTOptions($props.column, 'columnTitle')), vue.toDisplayString($options.columnProp('header')), 17))
659
707
  : vue.createCommentVNode("", true),
660
708
  ($props.column.children && $props.column.children.body && !$data.d_editing)
661
709
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.body), {
@@ -695,8 +743,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
695
743
  value: $props.rowData,
696
744
  name: $props.name,
697
745
  checked: $props.selected,
698
- onChange: _cache[0] || (_cache[0] = $event => ($options.toggleRowWithRadio($event, $props.rowIndex)))
699
- }, null, 8, ["value", "name", "checked"]))
746
+ onChange: _cache[0] || (_cache[0] = $event => ($options.toggleRowWithRadio($event, $props.rowIndex))),
747
+ column: $props.column,
748
+ pt: _ctx.pt
749
+ }, null, 8, ["value", "name", "checked", "column", "pt"]))
700
750
  : ($options.columnProp('selectionMode') === 'multiple')
701
751
  ? (vue.openBlock(), vue.createBlock(_component_DTCheckbox, {
702
752
  key: 1,
@@ -704,8 +754,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
704
754
  checked: $props.selected,
705
755
  rowCheckboxIconTemplate: $props.column.children && $props.column.children.rowcheckboxicon,
706
756
  "aria-selected": $props.selected ? true : undefined,
707
- onChange: _cache[1] || (_cache[1] = $event => ($options.toggleRowWithCheckbox($event, $props.rowIndex)))
708
- }, null, 8, ["value", "checked", "rowCheckboxIconTemplate", "aria-selected"]))
757
+ onChange: _cache[1] || (_cache[1] = $event => ($options.toggleRowWithCheckbox($event, $props.rowIndex))),
758
+ column: $props.column,
759
+ pt: _ctx.pt
760
+ }, null, 8, ["value", "checked", "rowCheckboxIconTemplate", "aria-selected", "column", "pt"]))
709
761
  : vue.createCommentVNode("", true)
710
762
  ], 64))
711
763
  : ($options.columnProp('rowReorder'))
@@ -714,7 +766,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
714
766
  class: vue.normalizeClass(['p-datatable-reorderablerow-handle', $options.columnProp('rowReorderIcon')])
715
767
  }, null, 8, ["class"]))
716
768
  : ($options.columnProp('expander'))
717
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
769
+ ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
718
770
  key: 6,
719
771
  class: "p-row-toggler p-link",
720
772
  type: "button",
@@ -722,7 +774,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
722
774
  "aria-controls": $props.ariaControls,
723
775
  "aria-label": $options.expandButtonAriaLabel,
724
776
  onClick: _cache[2] || (_cache[2] = (...args) => ($options.toggleRow && $options.toggleRow(...args)))
725
- }, [
777
+ }, $options.getColumnPTOptions($props.column, 'rowToggler')), [
726
778
  ($props.column.children && $props.column.children.rowtogglericon)
727
779
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.rowtogglericon), {
728
780
  key: 0,
@@ -735,63 +787,63 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
735
787
  class: vue.normalizeClass(['p-row-toggler-icon', $props.expandedRowIcon])
736
788
  }, null, 2))
737
789
  : ($props.isRowExpanded && !$props.expandedRowIcon)
738
- ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, {
790
+ ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
739
791
  key: 1,
740
792
  class: "p-row-toggler-icon"
741
- }))
793
+ }, $options.getColumnPTOptions($props.column, 'rowTogglerIcon')), null, 16))
742
794
  : (!$props.isRowExpanded && $props.collapsedRowIcon)
743
795
  ? (vue.openBlock(), vue.createElementBlock("span", {
744
796
  key: 2,
745
797
  class: vue.normalizeClass(['p-row-toggler-icon', $props.collapsedRowIcon])
746
798
  }, null, 2))
747
799
  : (!$props.isRowExpanded && !$props.collapsedRowIcon)
748
- ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, {
800
+ ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
749
801
  key: 3,
750
802
  class: "p-row-toggler-icon"
751
- }))
803
+ }, $options.getColumnPTOptions($props.column, 'rowTogglerIcon')), null, 16))
752
804
  : vue.createCommentVNode("", true)
753
805
  ], 64))
754
- ], 8, _hoisted_2$7)), [
806
+ ], 16, _hoisted_1$5)), [
755
807
  [_directive_ripple]
756
808
  ])
757
809
  : ($props.editMode === 'row' && $options.columnProp('rowEditor'))
758
810
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 7 }, [
759
811
  (!$data.d_editing)
760
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
812
+ ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
761
813
  key: 0,
762
814
  class: "p-row-editor-init p-link",
763
815
  type: "button",
764
816
  "aria-label": $options.initButtonAriaLabel,
765
817
  onClick: _cache[3] || (_cache[3] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args)))
766
- }, [
767
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(($props.column.children && $props.column.children.roweditoriniticon) || 'PencilIcon'), { class: "p-row-editor-init-icon" }))
768
- ], 8, _hoisted_3$5)), [
818
+ }, $options.getColumnPTOptions($props.column, 'rowEditorInitButton')), [
819
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(($props.column.children && $props.column.children.roweditoriniticon) || 'PencilIcon'), vue.mergeProps({ class: "p-row-editor-init-icon" }, $options.getColumnPTOptions($props.column, 'rowEditorInitIcon')), null, 16))
820
+ ], 16, _hoisted_2$2)), [
769
821
  [_directive_ripple]
770
822
  ])
771
823
  : vue.createCommentVNode("", true),
772
824
  ($data.d_editing)
773
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
825
+ ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
774
826
  key: 1,
775
827
  class: "p-row-editor-save p-link",
776
828
  type: "button",
777
829
  "aria-label": $options.saveButtonAriaLabel,
778
830
  onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args)))
779
- }, [
780
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(($props.column.children && $props.column.children.roweditorsaveicon) || 'CheckIcon'), { class: "p-row-editor-save-icon" }))
781
- ], 8, _hoisted_4$4)), [
831
+ }, $options.getColumnPTOptions($props.column, 'rowEditorEditButton')), [
832
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(($props.column.children && $props.column.children.roweditorsaveicon) || 'CheckIcon'), vue.mergeProps({ class: "p-row-editor-save-icon" }, $options.getColumnPTOptions($props.column, 'rowEditorEditIcon')), null, 16))
833
+ ], 16, _hoisted_3$2)), [
782
834
  [_directive_ripple]
783
835
  ])
784
836
  : vue.createCommentVNode("", true),
785
837
  ($data.d_editing)
786
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
838
+ ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
787
839
  key: 2,
788
840
  class: "p-row-editor-cancel p-link",
789
841
  type: "button",
790
842
  "aria-label": $options.cancelButtonAriaLabel,
791
843
  onClick: _cache[5] || (_cache[5] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args)))
792
- }, [
793
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(($props.column.children && $props.column.children.roweditorcancelicon) || 'TimesIcon'), { class: "p-row-editor-cancel-icon" }))
794
- ], 8, _hoisted_5$4)), [
844
+ }, $options.getColumnPTOptions($props.column, 'rowEditorCancelButton')), [
845
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(($props.column.children && $props.column.children.roweditorcancelicon) || 'TimesIcon'), vue.mergeProps({ class: "p-row-editor-cancel-icon" }, $options.getColumnPTOptions($props.column, 'rowEditorCancelIcon')), null, 16))
846
+ ], 16, _hoisted_4$1)), [
795
847
  [_directive_ripple]
796
848
  ])
797
849
  : vue.createCommentVNode("", true)
@@ -799,13 +851,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
799
851
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 8 }, [
800
852
  vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)
801
853
  ], 64))
802
- ], 38))
854
+ ], 16))
803
855
  }
804
856
 
805
857
  script$8.render = render$8;
806
858
 
807
859
  var script$7 = {
808
860
  name: 'TableBody',
861
+ extends: BaseComponent__default["default"],
809
862
  emits: [
810
863
  'rowgroup-toggle',
811
864
  'row-click',
@@ -985,6 +1038,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
985
1038
  columnProp(col, prop) {
986
1039
  return utils.ObjectUtils.getVNodeProp(col, prop);
987
1040
  },
1041
+ getColumnPTOptions(column, key) {
1042
+ return this.ptmo(this.getColumnProp(column), key, {
1043
+ props: column.props,
1044
+ parent: {
1045
+ props: this.$props,
1046
+ state: this.$data
1047
+ }
1048
+ });
1049
+ },
1050
+ getColumnProp(column) {
1051
+ return column.props && column.props.pt ? column.props.pt : undefined; //@todo
1052
+ },
988
1053
  shouldRenderRowGroupHeader(value, rowData, i) {
989
1054
  let currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
990
1055
  let prevRowData = value[i - 1];
@@ -1301,50 +1366,45 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1301
1366
  }
1302
1367
  };
1303
1368
 
1304
- const _hoisted_1$7 = ["colspan"];
1305
- const _hoisted_2$6 = ["onClick"];
1306
- const _hoisted_3$4 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover"];
1307
- const _hoisted_4$3 = ["id"];
1308
- const _hoisted_5$3 = ["colspan"];
1309
- const _hoisted_6$2 = ["colspan"];
1310
- const _hoisted_7$1 = {
1311
- key: 1,
1312
- class: "p-datatable-emptymessage",
1313
- role: "row"
1314
- };
1315
- const _hoisted_8$1 = ["colspan"];
1369
+ const _hoisted_1$4 = ["colspan"];
1370
+ const _hoisted_2$1 = ["onClick"];
1371
+ const _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover"];
1372
+ const _hoisted_4 = ["id"];
1373
+ const _hoisted_5 = ["colspan"];
1374
+ const _hoisted_6 = ["colspan"];
1375
+ const _hoisted_7 = ["colspan"];
1316
1376
 
1317
1377
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1318
1378
  const _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
1319
1379
  const _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
1320
1380
  const _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
1321
1381
 
1322
- return (vue.openBlock(), vue.createElementBlock("tbody", {
1382
+ return (vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
1323
1383
  ref: $options.bodyRef,
1324
1384
  class: "p-datatable-tbody",
1325
1385
  role: "rowgroup",
1326
- style: vue.normalizeStyle($options.bodyStyle)
1327
- }, [
1386
+ style: $options.bodyStyle
1387
+ }, _ctx.ptm('tbody')), [
1328
1388
  (!$props.empty)
1329
1389
  ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList($props.value, (rowData, index) => {
1330
1390
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
1331
1391
  ($props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)))
1332
- ? (vue.openBlock(), vue.createElementBlock("tr", {
1392
+ ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1333
1393
  key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader',
1334
1394
  class: "p-rowgroup-header",
1335
- style: vue.normalizeStyle($options.rowGroupHeaderStyle),
1395
+ style: $options.rowGroupHeaderStyle,
1336
1396
  role: "row"
1337
- }, [
1338
- vue.createElementVNode("td", {
1397
+ }, _ctx.ptm('rowgroupHeader')), [
1398
+ vue.createElementVNode("td", vue.mergeProps({
1339
1399
  colspan: $options.columnsLength - 1
1340
- }, [
1400
+ }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('bodyCell') }), [
1341
1401
  ($props.expandableRowGroups)
1342
- ? (vue.openBlock(), vue.createElementBlock("button", {
1402
+ ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1343
1403
  key: 0,
1344
1404
  class: "p-row-toggler p-link",
1345
1405
  onClick: $event => ($options.onRowGroupToggle($event, rowData)),
1346
1406
  type: "button"
1347
- }, [
1407
+ }, $options.getColumnPTOptions('rowGroupToggler')), [
1348
1408
  ($props.templates['rowgrouptogglericon'])
1349
1409
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1350
1410
  key: 0,
@@ -1357,36 +1417,36 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1357
1417
  class: vue.normalizeClass(['p-row-toggler-icon', $props.expandedRowIcon])
1358
1418
  }, null, 2))
1359
1419
  : ($options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon)
1360
- ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, {
1420
+ ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
1361
1421
  key: 1,
1362
1422
  class: "p-row-toggler-icon"
1363
- }))
1423
+ }, $options.getColumnPTOptions('rowGroupTogglerIcon')), null, 16))
1364
1424
  : (!$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon)
1365
1425
  ? (vue.openBlock(), vue.createElementBlock("span", {
1366
1426
  key: 2,
1367
1427
  class: vue.normalizeClass(['p-row-toggler-icon', $props.collapsedRowIcon])
1368
1428
  }, null, 2))
1369
1429
  : (!$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon)
1370
- ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, {
1430
+ ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
1371
1431
  key: 3,
1372
1432
  class: "p-row-toggler-icon"
1373
- }))
1433
+ }, $options.getColumnPTOptions('rowGroupTogglerIcon')), null, 16))
1374
1434
  : vue.createCommentVNode("", true)
1375
1435
  ], 64))
1376
- ], 8, _hoisted_2$6))
1436
+ ], 16, _hoisted_2$1))
1377
1437
  : vue.createCommentVNode("", true),
1378
1438
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
1379
1439
  data: rowData,
1380
1440
  index: $options.getRowIndex(index)
1381
1441
  }, null, 8, ["data", "index"]))
1382
- ], 8, _hoisted_1$7)
1383
- ], 4))
1442
+ ], 16, _hoisted_1$4)
1443
+ ], 16))
1384
1444
  : vue.createCommentVNode("", true),
1385
1445
  ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true)
1386
- ? (vue.openBlock(), vue.createElementBlock("tr", {
1446
+ ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1387
1447
  key: $options.getRowKey(rowData, $options.getRowIndex(index)),
1388
- class: vue.normalizeClass($options.getRowClass(rowData)),
1389
- style: vue.normalizeStyle($options.getRowStyle(rowData)),
1448
+ class: $options.getRowClass(rowData),
1449
+ style: $options.getRowStyle(rowData),
1390
1450
  tabindex: $options.setRowTabindex(index),
1391
1451
  role: "row",
1392
1452
  "aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
@@ -1401,7 +1461,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1401
1461
  onDragleave: _cache[11] || (_cache[11] = $event => ($options.onRowDragLeave($event))),
1402
1462
  onDragend: _cache[12] || (_cache[12] = $event => ($options.onRowDragEnd($event))),
1403
1463
  onDrop: _cache[13] || (_cache[13] = $event => ($options.onRowDrop($event)))
1404
- }, [
1464
+ }, _ctx.ptm('row')), [
1405
1465
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
1406
1466
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
1407
1467
  ($options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)))
@@ -1433,60 +1493,66 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1433
1493
  onRowEditInit: _cache[6] || (_cache[6] = $event => ($options.onRowEditInit($event))),
1434
1494
  onRowEditSave: _cache[7] || (_cache[7] = $event => ($options.onRowEditSave($event))),
1435
1495
  onRowEditCancel: _cache[8] || (_cache[8] = $event => ($options.onRowEditCancel($event))),
1436
- onEditingMetaChange: $options.onEditingMetaChange
1437
- }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onEditingMetaChange"]))
1496
+ onEditingMetaChange: $options.onEditingMetaChange,
1497
+ pt: _ctx.pt
1498
+ }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onEditingMetaChange", "pt"]))
1438
1499
  : vue.createCommentVNode("", true)
1439
1500
  ], 64))
1440
1501
  }), 256))
1441
- ], 46, _hoisted_3$4))
1502
+ ], 16, _hoisted_3$1))
1442
1503
  : vue.createCommentVNode("", true),
1443
1504
  ($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
1444
- ? (vue.openBlock(), vue.createElementBlock("tr", {
1505
+ ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1445
1506
  key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
1446
1507
  id: $options.expandedRowId + '_' + index + '_expansion',
1447
1508
  class: "p-datatable-row-expansion",
1448
1509
  role: "row"
1449
- }, [
1450
- vue.createElementVNode("td", { colspan: $options.columnsLength }, [
1510
+ }, _ctx.ptm('rowExpansion')), [
1511
+ vue.createElementVNode("td", vue.mergeProps({ colspan: $options.columnsLength }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('bodyCell') }), [
1451
1512
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
1452
1513
  data: rowData,
1453
1514
  index: $options.getRowIndex(index)
1454
1515
  }, null, 8, ["data", "index"]))
1455
- ], 8, _hoisted_5$3)
1456
- ], 8, _hoisted_4$3))
1516
+ ], 16, _hoisted_5)
1517
+ ], 16, _hoisted_4))
1457
1518
  : vue.createCommentVNode("", true),
1458
1519
  ($props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)))
1459
- ? (vue.openBlock(), vue.createElementBlock("tr", {
1520
+ ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1460
1521
  key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
1461
1522
  class: "p-rowgroup-footer",
1462
1523
  role: "row"
1463
- }, [
1464
- vue.createElementVNode("td", {
1524
+ }, _ctx.ptm('rowgroupFooter')), [
1525
+ vue.createElementVNode("td", vue.mergeProps({
1465
1526
  colspan: $options.columnsLength - 1
1466
- }, [
1527
+ }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('bodyCell') }), [
1467
1528
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
1468
1529
  data: rowData,
1469
1530
  index: $options.getRowIndex(index)
1470
1531
  }, null, 8, ["data", "index"]))
1471
- ], 8, _hoisted_6$2)
1472
- ]))
1532
+ ], 16, _hoisted_6)
1533
+ ], 16))
1473
1534
  : vue.createCommentVNode("", true)
1474
1535
  ], 64))
1475
1536
  }), 256))
1476
- : (vue.openBlock(), vue.createElementBlock("tr", _hoisted_7$1, [
1477
- vue.createElementVNode("td", { colspan: $options.columnsLength }, [
1537
+ : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1538
+ key: 1,
1539
+ class: "p-datatable-emptymessage",
1540
+ role: "row"
1541
+ }, _ctx.ptm('emptyMessage')), [
1542
+ vue.createElementVNode("td", vue.mergeProps({ colspan: $options.columnsLength }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('bodyCell') }), [
1478
1543
  ($props.templates.empty)
1479
1544
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), { key: 0 }))
1480
1545
  : vue.createCommentVNode("", true)
1481
- ], 8, _hoisted_8$1)
1482
- ]))
1483
- ], 4))
1546
+ ], 16, _hoisted_7)
1547
+ ], 16))
1548
+ ], 16))
1484
1549
  }
1485
1550
 
1486
1551
  script$7.render = render$7;
1487
1552
 
1488
1553
  var script$6 = {
1489
1554
  name: 'FooterCell',
1555
+ extends: BaseComponent__default["default"],
1490
1556
  props: {
1491
1557
  column: {
1492
1558
  type: Object,
@@ -1512,6 +1578,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1512
1578
  columnProp(prop) {
1513
1579
  return utils.ObjectUtils.getVNodeProp(this.column, prop);
1514
1580
  },
1581
+ getColumnPTOptions(key) {
1582
+ return this.ptmo(this.getColumnProp(), key, {
1583
+ props: this.column.props,
1584
+ parent: {
1585
+ props: this.$props,
1586
+ state: this.$data
1587
+ }
1588
+ });
1589
+ },
1590
+ getColumnProp() {
1591
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
1592
+ },
1515
1593
  updateStickyPosition() {
1516
1594
  if (this.columnProp('frozen')) {
1517
1595
  let align = this.columnProp('alignFrozen');
@@ -1557,16 +1635,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1557
1635
  }
1558
1636
  };
1559
1637
 
1560
- const _hoisted_1$6 = ["colspan", "rowspan"];
1638
+ const _hoisted_1$3 = ["colspan", "rowspan"];
1561
1639
 
1562
1640
  function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1563
- return (vue.openBlock(), vue.createElementBlock("td", {
1564
- style: vue.normalizeStyle($options.containerStyle),
1565
- class: vue.normalizeClass($options.containerClass),
1641
+ return (vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
1642
+ style: $options.containerStyle,
1643
+ class: $options.containerClass,
1566
1644
  role: "cell",
1567
1645
  colspan: $options.columnProp('colspan'),
1568
1646
  rowspan: $options.columnProp('rowspan')
1569
- }, [
1647
+ }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('footerCell') }), [
1570
1648
  ($props.column.children && $props.column.children.footer)
1571
1649
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.footer), {
1572
1650
  key: 0,
@@ -1574,13 +1652,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1574
1652
  }, null, 8, ["column"]))
1575
1653
  : vue.createCommentVNode("", true),
1576
1654
  vue.createTextVNode(" " + vue.toDisplayString($options.columnProp('footer')), 1)
1577
- ], 14, _hoisted_1$6))
1655
+ ], 16, _hoisted_1$3))
1578
1656
  }
1579
1657
 
1580
1658
  script$6.render = render$6;
1581
1659
 
1582
1660
  var script$5 = {
1583
1661
  name: 'TableFooter',
1662
+ extends: BaseComponent__default["default"],
1584
1663
  props: {
1585
1664
  columnGroup: {
1586
1665
  type: null,
@@ -1595,6 +1674,30 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1595
1674
  columnProp(col, prop) {
1596
1675
  return utils.ObjectUtils.getVNodeProp(col, prop);
1597
1676
  },
1677
+ getColumnGroupPTOptions(key) {
1678
+ return this.ptmo(this.getColumnGroupProps(), key, {
1679
+ props: this.getColumnGroupProps(),
1680
+ parent: {
1681
+ props: this.$props,
1682
+ state: this.$data
1683
+ }
1684
+ });
1685
+ },
1686
+ getColumnGroupProps() {
1687
+ return this.columnGroup && this.columnGroup.props && this.columnGroup.props.pt ? this.columnGroup.props.pt : undefined; //@todo
1688
+ },
1689
+ getRowPTOptions(row, key) {
1690
+ return this.ptmo(this.getRowProp(row), key, {
1691
+ props: row.props,
1692
+ parent: {
1693
+ props: this.$props,
1694
+ state: this.$data
1695
+ }
1696
+ });
1697
+ },
1698
+ getRowProp(row) {
1699
+ return row.props && row.props.pt ? row.props.pt : undefined; //@todo
1700
+ },
1598
1701
  getFooterRows() {
1599
1702
  let rows = [];
1600
1703
 
@@ -1648,23 +1751,20 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1648
1751
  }
1649
1752
  };
1650
1753
 
1651
- const _hoisted_1$5 = {
1652
- key: 0,
1653
- class: "p-datatable-tfoot",
1654
- role: "rowgroup"
1655
- };
1656
- const _hoisted_2$5 = {
1657
- key: 0,
1658
- role: "row"
1659
- };
1660
-
1661
1754
  function render$5(_ctx, _cache, $props, $setup, $data, $options) {
1662
1755
  const _component_DTFooterCell = vue.resolveComponent("DTFooterCell");
1663
1756
 
1664
1757
  return ($options.hasFooter)
1665
- ? (vue.openBlock(), vue.createElementBlock("tfoot", _hoisted_1$5, [
1758
+ ? (vue.openBlock(), vue.createElementBlock("tfoot", vue.mergeProps({
1759
+ key: 0,
1760
+ class: "p-datatable-tfoot",
1761
+ role: "rowgroup"
1762
+ }, { ..._ctx.ptm('tfoot'), ...$options.getColumnGroupPTOptions('root') }), [
1666
1763
  (!$props.columnGroup)
1667
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_2$5, [
1764
+ ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1765
+ key: 0,
1766
+ role: "row"
1767
+ }, _ctx.ptm('footerRow')), [
1668
1768
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
1669
1769
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1670
1770
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
@@ -1672,17 +1772,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1672
1772
  (!$options.columnProp(col, 'hidden'))
1673
1773
  ? (vue.openBlock(), vue.createBlock(_component_DTFooterCell, {
1674
1774
  key: 0,
1675
- column: col
1676
- }, null, 8, ["column"]))
1775
+ column: col,
1776
+ pt: _ctx.pt
1777
+ }, null, 8, ["column", "pt"]))
1677
1778
  : vue.createCommentVNode("", true)
1678
1779
  ], 64))
1679
1780
  }), 128))
1680
- ]))
1781
+ ], 16))
1681
1782
  : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList($options.getFooterRows(), (row, i) => {
1682
- return (vue.openBlock(), vue.createElementBlock("tr", {
1783
+ return (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
1683
1784
  key: i,
1684
1785
  role: "row"
1685
- }, [
1786
+ }, $options.getRowPTOptions(row, 'root')), [
1686
1787
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.getFooterColumns(row), (col, j) => {
1687
1788
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1688
1789
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || j
@@ -1690,14 +1791,15 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1690
1791
  (!$options.columnProp(col, 'hidden'))
1691
1792
  ? (vue.openBlock(), vue.createBlock(_component_DTFooterCell, {
1692
1793
  key: 0,
1693
- column: col
1694
- }, null, 8, ["column"]))
1794
+ column: col,
1795
+ pt: _ctx.pt
1796
+ }, null, 8, ["column", "pt"]))
1695
1797
  : vue.createCommentVNode("", true)
1696
1798
  ], 64))
1697
1799
  }), 128))
1698
- ]))
1800
+ ], 16))
1699
1801
  }), 128))
1700
- ]))
1802
+ ], 16))
1701
1803
  : vue.createCommentVNode("", true)
1702
1804
  }
1703
1805
 
@@ -1705,6 +1807,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1705
1807
 
1706
1808
  var script$4 = {
1707
1809
  name: 'ColumnFilter',
1810
+ extends: BaseComponent__default["default"],
1708
1811
  emits: ['filter-change', 'filter-apply', 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
1709
1812
  props: {
1710
1813
  field: {
@@ -1810,7 +1913,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1810
1913
  filterInputProps: {
1811
1914
  type: null,
1812
1915
  default: null
1813
- }
1916
+ },
1917
+ column: null
1814
1918
  },
1815
1919
  data() {
1816
1920
  return {
@@ -1846,6 +1950,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
1846
1950
  }
1847
1951
  },
1848
1952
  methods: {
1953
+ getColumnPTOptions(key) {
1954
+ return this.ptmo(this.getColumnProp(), key, {
1955
+ props: this.column.props,
1956
+ parent: {
1957
+ props: this.$props,
1958
+ state: this.$data
1959
+ }
1960
+ });
1961
+ },
1962
+ getColumnProp() {
1963
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
1964
+ },
1849
1965
  clearFilter() {
1850
1966
  let _filters = { ...this.filters };
1851
1967
 
@@ -2218,24 +2334,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2218
2334
  }
2219
2335
  };
2220
2336
 
2221
- const _hoisted_1$4 = ["aria-label", "aria-expanded", "aria-controls"];
2222
- const _hoisted_2$4 = ["id", "aria-modal"];
2223
- const _hoisted_3$3 = {
2224
- key: 0,
2225
- class: "p-column-filter-row-items"
2226
- };
2227
- const _hoisted_4$2 = ["onClick", "onKeydown", "tabindex"];
2228
- const _hoisted_5$2 = /*#__PURE__*/vue.createElementVNode("li", { class: "p-column-filter-separator" }, null, -1);
2229
- const _hoisted_6$1 = {
2230
- key: 0,
2231
- class: "p-column-filter-operator"
2232
- };
2233
- const _hoisted_7 = { class: "p-column-filter-constraints" };
2234
- const _hoisted_8 = {
2235
- key: 1,
2236
- class: "p-column-filter-add-rule"
2237
- };
2238
- const _hoisted_9 = { class: "p-column-filter-buttonbar" };
2337
+ const _hoisted_1$2 = ["aria-label", "aria-expanded", "aria-controls"];
2338
+ const _hoisted_2 = ["id", "aria-modal"];
2339
+ const _hoisted_3 = ["onClick", "onKeydown", "tabindex"];
2239
2340
 
2240
2341
  function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2241
2342
  const _component_CFDropdown = vue.resolveComponent("CFDropdown");
@@ -2243,14 +2344,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2243
2344
  const _component_Portal = vue.resolveComponent("Portal");
2244
2345
  const _directive_focustrap = vue.resolveDirective("focustrap");
2245
2346
 
2246
- return (vue.openBlock(), vue.createElementBlock("div", {
2247
- class: vue.normalizeClass($options.containerClass)
2248
- }, [
2347
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: $options.containerClass }, $options.getColumnPTOptions('columnFilter')), [
2249
2348
  ($props.display === 'row')
2250
2349
  ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
2251
2350
  key: 0,
2252
2351
  class: "p-fluid p-column-filter-element"
2253
- }, $props.filterInputProps), [
2352
+ }, { ...$props.filterInputProps, ...$options.getColumnPTOptions('filterInput') }), [
2254
2353
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterElement), {
2255
2354
  field: $props.field,
2256
2355
  filterModel: $props.filters[$props.field],
@@ -2259,30 +2358,30 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2259
2358
  ], 16))
2260
2359
  : vue.createCommentVNode("", true),
2261
2360
  ($options.showMenuButton)
2262
- ? (vue.openBlock(), vue.createElementBlock("button", {
2361
+ ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
2263
2362
  key: 1,
2264
2363
  ref: "icon",
2265
2364
  type: "button",
2266
- class: vue.normalizeClass(["p-column-filter-menu-button p-link", { 'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter() }]),
2365
+ class: ["p-column-filter-menu-button p-link", { 'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter() }],
2267
2366
  "aria-label": $options.filterMenuButtonAriaLabel,
2268
2367
  "aria-haspopup": "true",
2269
2368
  "aria-expanded": $data.overlayVisible,
2270
2369
  "aria-controls": $options.overlayId,
2271
2370
  onClick: _cache[0] || (_cache[0] = $event => ($options.toggleMenu())),
2272
2371
  onKeydown: _cache[1] || (_cache[1] = $event => ($options.onToggleButtonKeyDown($event)))
2273
- }, [
2372
+ }, $options.getColumnPTOptions('filterMenuButton')), [
2274
2373
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterIconTemplate || 'FilterIcon')))
2275
- ], 42, _hoisted_1$4))
2374
+ ], 16, _hoisted_1$2))
2276
2375
  : vue.createCommentVNode("", true),
2277
2376
  ($props.showClearButton && $props.display === 'row')
2278
- ? (vue.openBlock(), vue.createElementBlock("button", {
2377
+ ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
2279
2378
  key: 2,
2280
- class: vue.normalizeClass([{ 'p-hidden-space': !$options.hasRowFilter() }, "p-column-filter-clear-button p-link"]),
2379
+ class: [{ 'p-hidden-space': !$options.hasRowFilter() }, "p-column-filter-clear-button p-link"],
2281
2380
  type: "button",
2282
2381
  onClick: _cache[2] || (_cache[2] = $event => ($options.clearFilter()))
2283
- }, [
2284
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon')))
2285
- ], 2))
2382
+ }, $options.getColumnPTOptions('headerFilterClearButton')), [
2383
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), vue.normalizeProps(vue.guardReactiveProps($options.getColumnPTOptions('filterClearIcon'))), null, 16))
2384
+ ], 16))
2286
2385
  : vue.createCommentVNode("", true),
2287
2386
  vue.createVNode(_component_Portal, null, {
2288
2387
  default: vue.withCtx(() => [
@@ -2294,49 +2393,55 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2294
2393
  }, {
2295
2394
  default: vue.withCtx(() => [
2296
2395
  ($data.overlayVisible)
2297
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
2396
+ ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
2298
2397
  key: 0,
2299
2398
  ref: $options.overlayRef,
2300
2399
  id: $options.overlayId,
2301
2400
  "aria-modal": $data.overlayVisible,
2302
2401
  role: "dialog",
2303
- class: vue.normalizeClass($options.overlayClass),
2402
+ class: $options.overlayClass,
2304
2403
  onKeydown: _cache[10] || (_cache[10] = vue.withKeys((...args) => ($options.hide && $options.hide(...args)), ["escape"])),
2305
2404
  onClick: _cache[11] || (_cache[11] = (...args) => ($options.onContentClick && $options.onContentClick(...args))),
2306
2405
  onMousedown: _cache[12] || (_cache[12] = (...args) => ($options.onContentMouseDown && $options.onContentMouseDown(...args)))
2307
- }, [
2406
+ }, $options.getColumnPTOptions('filterOverlay')), [
2308
2407
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterHeaderTemplate), {
2309
2408
  field: $props.field,
2310
2409
  filterModel: $props.filters[$props.field],
2311
2410
  filterCallback: $options.filterCallback
2312
2411
  }, null, 8, ["field", "filterModel", "filterCallback"])),
2313
2412
  ($props.display === 'row')
2314
- ? (vue.openBlock(), vue.createElementBlock("ul", _hoisted_3$3, [
2413
+ ? (vue.openBlock(), vue.createElementBlock("ul", vue.mergeProps({
2414
+ key: 0,
2415
+ class: "p-column-filter-row-items"
2416
+ }, $options.getColumnPTOptions('filterRowItems')), [
2315
2417
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.matchModes, (matchMode, i) => {
2316
- return (vue.openBlock(), vue.createElementBlock("li", {
2418
+ return (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
2317
2419
  key: matchMode.label,
2318
- class: vue.normalizeClass(["p-column-filter-row-item", { 'p-highlight': $options.isRowMatchModeSelected(matchMode.value) }]),
2420
+ class: ["p-column-filter-row-item", { 'p-highlight': $options.isRowMatchModeSelected(matchMode.value) }],
2319
2421
  onClick: $event => ($options.onRowMatchModeChange(matchMode.value)),
2320
2422
  onKeydown: [
2321
2423
  _cache[3] || (_cache[3] = $event => ($options.onRowMatchModeKeyDown($event))),
2322
2424
  vue.withKeys(vue.withModifiers($event => ($options.onRowMatchModeChange(matchMode.value)), ["prevent"]), ["enter"])
2323
2425
  ],
2324
2426
  tabindex: i === 0 ? '0' : null
2325
- }, vue.toDisplayString(matchMode.label), 43, _hoisted_4$2))
2427
+ }, $options.getColumnPTOptions('filterRowItem')), vue.toDisplayString(matchMode.label), 17, _hoisted_3))
2326
2428
  }), 128)),
2327
- _hoisted_5$2,
2328
- vue.createElementVNode("li", {
2429
+ vue.createElementVNode("li", vue.mergeProps({ class: "p-column-filter-separator" }, $options.getColumnPTOptions('filterInput')), null, 16),
2430
+ vue.createElementVNode("li", vue.mergeProps({
2329
2431
  class: "p-column-filter-row-item",
2330
2432
  onClick: _cache[4] || (_cache[4] = $event => ($options.clearFilter())),
2331
2433
  onKeydown: [
2332
2434
  _cache[5] || (_cache[5] = $event => ($options.onRowMatchModeKeyDown($event))),
2333
2435
  _cache[6] || (_cache[6] = vue.withKeys($event => (_ctx.onRowClearItemClick()), ["enter"]))
2334
2436
  ]
2335
- }, vue.toDisplayString($options.noFilterLabel), 33)
2336
- ]))
2437
+ }, $options.getColumnPTOptions('filterRowItem')), vue.toDisplayString($options.noFilterLabel), 17)
2438
+ ], 16))
2337
2439
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
2338
2440
  ($options.isShowOperator)
2339
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
2441
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
2442
+ key: 0,
2443
+ class: "p-column-filter-operator"
2444
+ }, $options.getColumnPTOptions('filterOperator')), [
2340
2445
  vue.createVNode(_component_CFDropdown, {
2341
2446
  options: $options.operatorOptions,
2342
2447
  modelValue: $options.operator,
@@ -2344,16 +2449,17 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2344
2449
  class: "p-column-filter-operator-dropdown",
2345
2450
  optionLabel: "label",
2346
2451
  optionValue: "value",
2347
- "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ($options.onOperatorChange($event)))
2348
- }, null, 8, ["options", "modelValue", "aria-label"])
2349
- ]))
2452
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ($options.onOperatorChange($event))),
2453
+ pt: $options.getColumnPTOptions('filterOperatorDropdown')
2454
+ }, null, 8, ["options", "modelValue", "aria-label", "pt"])
2455
+ ], 16))
2350
2456
  : vue.createCommentVNode("", true),
2351
- vue.createElementVNode("div", _hoisted_7, [
2457
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-column-filter-constraints" }, $options.getColumnPTOptions('filterConstraints')), [
2352
2458
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.fieldConstraints, (fieldConstraint, i) => {
2353
- return (vue.openBlock(), vue.createElementBlock("div", {
2459
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
2354
2460
  key: i,
2355
2461
  class: "p-column-filter-constraint"
2356
- }, [
2462
+ }, $options.getColumnPTOptions('filterConstraint')), [
2357
2463
  ($options.isShowMatchModes)
2358
2464
  ? (vue.openBlock(), vue.createBlock(_component_CFDropdown, {
2359
2465
  key: 0,
@@ -2363,8 +2469,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2363
2469
  optionLabel: "label",
2364
2470
  optionValue: "value",
2365
2471
  "aria-label": $options.filterConstraintAriaLabel,
2366
- "onUpdate:modelValue": $event => ($options.onMenuMatchModeChange($event, i))
2367
- }, null, 8, ["options", "modelValue", "aria-label", "onUpdate:modelValue"]))
2472
+ "onUpdate:modelValue": $event => ($options.onMenuMatchModeChange($event, i)),
2473
+ pt: $options.getColumnPTOptions('filterMatchModeDropdown')
2474
+ }, null, 8, ["options", "modelValue", "aria-label", "onUpdate:modelValue", "pt"]))
2368
2475
  : vue.createCommentVNode("", true),
2369
2476
  ($props.display === 'menu')
2370
2477
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterElement), {
@@ -2374,54 +2481,60 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2374
2481
  filterCallback: $options.filterCallback
2375
2482
  }, null, 8, ["field", "filterModel", "filterCallback"]))
2376
2483
  : vue.createCommentVNode("", true),
2377
- vue.createElementVNode("div", null, [
2484
+ vue.createElementVNode("div", vue.normalizeProps(vue.guardReactiveProps($options.getColumnPTOptions('filterRemove'))), [
2378
2485
  ($options.showRemoveIcon)
2379
2486
  ? (vue.openBlock(), vue.createBlock(_component_CFButton, {
2380
2487
  key: 0,
2381
2488
  type: "button",
2382
2489
  class: "p-column-filter-remove-button p-button-text p-button-danger p-button-sm",
2383
2490
  onClick: $event => ($options.removeConstraint(i)),
2384
- label: $options.removeRuleButtonLabel
2491
+ label: $options.removeRuleButtonLabel,
2492
+ pt: $options.getColumnPTOptions('filterRemoveButton')
2385
2493
  }, {
2386
2494
  icon: vue.withCtx((iconProps) => [
2387
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterRemoveIconTemplate || 'TrashIcon'), {
2388
- class: vue.normalizeClass(iconProps.class)
2389
- }, null, 8, ["class"]))
2495
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterRemoveIconTemplate || 'TrashIcon'), vue.mergeProps({
2496
+ class: iconProps.class
2497
+ }, $options.getColumnPTOptions('filterRemoveButton')['icon']), null, 16, ["class"]))
2390
2498
  ]),
2391
2499
  _: 2
2392
- }, 1032, ["onClick", "label"]))
2500
+ }, 1032, ["onClick", "label", "pt"]))
2393
2501
  : vue.createCommentVNode("", true)
2394
- ])
2395
- ]))
2502
+ ], 16)
2503
+ ], 16))
2396
2504
  }), 128))
2397
- ]),
2505
+ ], 16),
2398
2506
  ($options.isShowAddConstraint)
2399
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
2507
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
2508
+ key: 1,
2509
+ class: "p-column-filter-add-rule"
2510
+ }, $options.getColumnPTOptions('filterAddRule')), [
2400
2511
  vue.createVNode(_component_CFButton, {
2401
2512
  type: "button",
2402
2513
  label: $options.addRuleButtonLabel,
2403
2514
  iconPos: "left",
2404
2515
  class: "p-column-filter-add-button p-button-text p-button-sm",
2405
- onClick: _cache[8] || (_cache[8] = $event => ($options.addConstraint()))
2516
+ onClick: _cache[8] || (_cache[8] = $event => ($options.addConstraint())),
2517
+ pt: $options.getColumnPTOptions('filterAddRuleButton')
2406
2518
  }, {
2407
2519
  icon: vue.withCtx((iconProps) => [
2408
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterAddIconTemplate || 'PlusIcon'), {
2409
- class: vue.normalizeClass(iconProps.class)
2410
- }, null, 8, ["class"]))
2520
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterAddIconTemplate || 'PlusIcon'), vue.mergeProps({
2521
+ class: iconProps.class
2522
+ }, $options.getColumnPTOptions('filterAddRuleButton')['icon']), null, 16, ["class"]))
2411
2523
  ]),
2412
2524
  _: 1
2413
- }, 8, ["label"])
2414
- ]))
2525
+ }, 8, ["label", "pt"])
2526
+ ], 16))
2415
2527
  : vue.createCommentVNode("", true),
2416
- vue.createElementVNode("div", _hoisted_9, [
2528
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-column-filter-buttonbar" }, $options.getColumnPTOptions('filterButtonbar')), [
2417
2529
  (!$props.filterClearTemplate && $props.showClearButton)
2418
2530
  ? (vue.openBlock(), vue.createBlock(_component_CFButton, {
2419
2531
  key: 0,
2420
2532
  type: "button",
2421
2533
  class: "p-button-outlined p-button-sm",
2422
2534
  label: $options.clearButtonLabel,
2423
- onClick: $options.clearFilter
2424
- }, null, 8, ["label", "onClick"]))
2535
+ onClick: $options.clearFilter,
2536
+ pt: $options.getColumnPTOptions('filterClearButton')
2537
+ }, null, 8, ["label", "onClick", "pt"]))
2425
2538
  : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearTemplate), {
2426
2539
  key: 1,
2427
2540
  field: $props.field,
@@ -2431,13 +2544,13 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2431
2544
  ($props.showApplyButton)
2432
2545
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
2433
2546
  (!$props.filterApplyTemplate)
2434
- ? (vue.openBlock(), vue.createBlock(_component_CFButton, {
2547
+ ? (vue.openBlock(), vue.createBlock(_component_CFButton, vue.mergeProps({
2435
2548
  key: 0,
2436
2549
  type: "button",
2437
2550
  class: "p-button-sm",
2438
2551
  label: $options.applyButtonLabel,
2439
2552
  onClick: _cache[9] || (_cache[9] = $event => ($options.applyFilter()))
2440
- }, null, 8, ["label"]))
2553
+ }, $options.getColumnPTOptions('filterApplyButton')), null, 16, ["label"]))
2441
2554
  : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterApplyTemplate), {
2442
2555
  key: 1,
2443
2556
  field: $props.field,
@@ -2446,14 +2559,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2446
2559
  }, null, 8, ["field", "filterModel", "filterCallback"]))
2447
2560
  ], 64))
2448
2561
  : vue.createCommentVNode("", true)
2449
- ])
2562
+ ], 16)
2450
2563
  ], 64)),
2451
2564
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterFooterTemplate), {
2452
2565
  field: $props.field,
2453
2566
  filterModel: $props.filters[$props.field],
2454
2567
  filterCallback: $options.filterCallback
2455
2568
  }, null, 8, ["field", "filterModel", "filterCallback"]))
2456
- ], 42, _hoisted_2$4)), [
2569
+ ], 16, _hoisted_2)), [
2457
2570
  [_directive_focustrap, { autoFocus: true }]
2458
2571
  ])
2459
2572
  : vue.createCommentVNode("", true)
@@ -2463,17 +2576,19 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2463
2576
  ]),
2464
2577
  _: 1
2465
2578
  })
2466
- ], 2))
2579
+ ], 16))
2467
2580
  }
2468
2581
 
2469
2582
  script$4.render = render$4;
2470
2583
 
2471
2584
  var script$3 = {
2472
2585
  name: 'HeaderCheckbox',
2586
+ extends: BaseComponent__default["default"],
2473
2587
  emits: ['change'],
2474
2588
  props: {
2475
2589
  checked: null,
2476
2590
  disabled: null,
2591
+ column: null,
2477
2592
  headerCheckboxIconTemplate: {
2478
2593
  type: Function,
2479
2594
  default: null
@@ -2485,6 +2600,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2485
2600
  };
2486
2601
  },
2487
2602
  methods: {
2603
+ getColumnPTOptions(key) {
2604
+ return this.ptmo(this.getColumnProp(), key, {
2605
+ props: this.column.props,
2606
+ parent: {
2607
+ props: this.$props,
2608
+ state: this.$data
2609
+ },
2610
+ context: {
2611
+ checked: this.checked,
2612
+ focused: this.focused,
2613
+ disabled: this.disabled
2614
+ }
2615
+ });
2616
+ },
2617
+ getColumnProp() {
2618
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
2619
+ },
2488
2620
  onClick(event) {
2489
2621
  if (!this.disabled) {
2490
2622
  this.$emit('change', {
@@ -2512,19 +2644,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2512
2644
  }
2513
2645
  };
2514
2646
 
2515
- const _hoisted_1$3 = { class: "p-hidden-accessible" };
2516
- const _hoisted_2$3 = ["checked", "disabled", "tabindex", "aria-label"];
2647
+ const _hoisted_1$1 = ["checked", "disabled", "tabindex", "aria-label"];
2517
2648
 
2518
2649
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2519
2650
  const _component_CheckIcon = vue.resolveComponent("CheckIcon");
2520
2651
 
2521
- return (vue.openBlock(), vue.createElementBlock("div", {
2522
- class: vue.normalizeClass(['p-checkbox p-component', { 'p-checkbox-focused': $data.focused, 'p-disabled': $props.disabled }]),
2652
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
2653
+ class: ['p-checkbox p-component', { 'p-checkbox-focused': $data.focused, 'p-disabled': $props.disabled }],
2523
2654
  onClick: _cache[2] || (_cache[2] = (...args) => ($options.onClick && $options.onClick(...args))),
2524
2655
  onKeydown: _cache[3] || (_cache[3] = vue.withKeys(vue.withModifiers((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
2525
- }, [
2526
- vue.createElementVNode("div", _hoisted_1$3, [
2527
- vue.createElementVNode("input", {
2656
+ }, $options.getColumnPTOptions('headerCheckboxWrapper')), [
2657
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-hidden-accessible" }, $options.getColumnPTOptions('hiddenHeaderInputWrapper')), [
2658
+ vue.createElementVNode("input", vue.mergeProps({
2528
2659
  ref: "input",
2529
2660
  type: "checkbox",
2530
2661
  checked: $props.checked,
@@ -2533,30 +2664,31 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2533
2664
  "aria-label": $options.headerCheckboxAriaLabel,
2534
2665
  onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
2535
2666
  onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event)))
2536
- }, null, 40, _hoisted_2$3)
2537
- ]),
2538
- vue.createElementVNode("div", {
2667
+ }, $options.getColumnPTOptions('hiddenHeaderInput')), null, 16, _hoisted_1$1)
2668
+ ], 16),
2669
+ vue.createElementVNode("div", vue.mergeProps({
2539
2670
  ref: "box",
2540
- class: vue.normalizeClass(['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': $props.disabled, 'p-focus': $data.focused }])
2541
- }, [
2671
+ class: ['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': $props.disabled, 'p-focus': $data.focused }]
2672
+ }, $options.getColumnPTOptions('headerCheckbox')), [
2542
2673
  ($props.headerCheckboxIconTemplate)
2543
2674
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.headerCheckboxIconTemplate), {
2544
2675
  key: 0,
2545
2676
  checked: $props.checked,
2546
2677
  class: "p-checkbox-icon"
2547
2678
  }, null, 8, ["checked"]))
2548
- : (vue.openBlock(), vue.createBlock(_component_CheckIcon, {
2679
+ : (vue.openBlock(), vue.createBlock(_component_CheckIcon, vue.mergeProps({
2549
2680
  key: 1,
2550
2681
  class: "p-checkbox-icon"
2551
- }))
2552
- ], 2)
2553
- ], 34))
2682
+ }, $options.getColumnPTOptions('headerCheckboxIcon')), null, 16))
2683
+ ], 16)
2684
+ ], 16))
2554
2685
  }
2555
2686
 
2556
2687
  script$3.render = render$3;
2557
2688
 
2558
2689
  var script$2 = {
2559
2690
  name: 'HeaderCell',
2691
+ extends: BaseComponent__default["default"],
2560
2692
  emits: [
2561
2693
  'column-click',
2562
2694
  'column-mousedown',
@@ -2664,6 +2796,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2664
2796
  columnProp(prop) {
2665
2797
  return utils.ObjectUtils.getVNodeProp(this.column, prop);
2666
2798
  },
2799
+ getColumnPTOptions(key) {
2800
+ return this.ptmo(this.getColumnProp(), key, {
2801
+ props: this.column.props,
2802
+ parent: {
2803
+ props: this.$props,
2804
+ state: this.$data
2805
+ }
2806
+ });
2807
+ },
2808
+ getColumnProp() {
2809
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
2810
+ },
2667
2811
  onClick(event) {
2668
2812
  this.$emit('column-click', { originalEvent: event, column: this.column });
2669
2813
  },
@@ -2815,25 +2959,15 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2815
2959
  }
2816
2960
  };
2817
2961
 
2818
- const _hoisted_1$2 = ["tabindex", "colspan", "rowspan", "aria-sort"];
2819
- const _hoisted_2$2 = { class: "p-column-header-content" };
2820
- const _hoisted_3$2 = {
2821
- key: 1,
2822
- class: "p-column-title"
2823
- };
2824
- const _hoisted_4$1 = { key: 2 };
2825
- const _hoisted_5$1 = {
2826
- key: 3,
2827
- class: "p-sortable-column-badge"
2828
- };
2962
+ const _hoisted_1 = ["tabindex", "colspan", "rowspan", "aria-sort"];
2829
2963
 
2830
2964
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2831
2965
  const _component_DTHeaderCheckbox = vue.resolveComponent("DTHeaderCheckbox");
2832
2966
  const _component_DTColumnFilter = vue.resolveComponent("DTColumnFilter");
2833
2967
 
2834
- return (vue.openBlock(), vue.createElementBlock("th", {
2835
- style: vue.normalizeStyle($options.containerStyle),
2836
- class: vue.normalizeClass($options.containerClass),
2968
+ return (vue.openBlock(), vue.createElementBlock("th", vue.mergeProps({
2969
+ style: $options.containerStyle,
2970
+ class: $options.containerClass,
2837
2971
  tabindex: $options.columnProp('sortable') ? '0' : null,
2838
2972
  role: "columnheader",
2839
2973
  colspan: $options.columnProp('colspan'),
@@ -2846,15 +2980,15 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2846
2980
  onDragover: _cache[12] || (_cache[12] = (...args) => ($options.onDragOver && $options.onDragOver(...args))),
2847
2981
  onDragleave: _cache[13] || (_cache[13] = (...args) => ($options.onDragLeave && $options.onDragLeave(...args))),
2848
2982
  onDrop: _cache[14] || (_cache[14] = (...args) => ($options.onDrop && $options.onDrop(...args)))
2849
- }, [
2983
+ }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('headerCell') }), [
2850
2984
  ($props.resizableColumns && !$options.columnProp('frozen'))
2851
- ? (vue.openBlock(), vue.createElementBlock("span", {
2985
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
2852
2986
  key: 0,
2853
2987
  class: "p-column-resizer",
2854
2988
  onMousedown: _cache[0] || (_cache[0] = (...args) => ($options.onResizeStart && $options.onResizeStart(...args)))
2855
- }, null, 32))
2989
+ }, $options.getColumnPTOptions('columnResizer')), null, 16))
2856
2990
  : vue.createCommentVNode("", true),
2857
- vue.createElementVNode("div", _hoisted_2$2, [
2991
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-column-header-content" }, $options.getColumnPTOptions('headerContent')), [
2858
2992
  ($props.column.children && $props.column.children.header)
2859
2993
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.header), {
2860
2994
  key: 0,
@@ -2862,19 +2996,25 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2862
2996
  }, null, 8, ["column"]))
2863
2997
  : vue.createCommentVNode("", true),
2864
2998
  ($options.columnProp('header'))
2865
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$2, vue.toDisplayString($options.columnProp('header')), 1))
2999
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
3000
+ key: 1,
3001
+ class: "p-column-title"
3002
+ }, $options.getColumnPTOptions('headerTitle')), vue.toDisplayString($options.columnProp('header')), 17))
2866
3003
  : vue.createCommentVNode("", true),
2867
3004
  ($options.columnProp('sortable'))
2868
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$1, [
3005
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.normalizeProps(vue.mergeProps({ key: 2 }, $options.getColumnPTOptions('sort'))), [
2869
3006
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(($props.column.children && $props.column.children.sorticon) || $options.sortableColumnIcon), {
2870
3007
  sorted: $options.sortState.sorted,
2871
3008
  sortOrder: $options.sortState.sortOrder,
2872
3009
  class: "p-sortable-column-icon"
2873
3010
  }, null, 8, ["sorted", "sortOrder"]))
2874
- ]))
3011
+ ], 16))
2875
3012
  : vue.createCommentVNode("", true),
2876
3013
  ($options.isMultiSorted())
2877
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$1, vue.toDisplayString($options.getBadgeValue()), 1))
3014
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
3015
+ key: 3,
3016
+ class: "p-sortable-column-badge"
3017
+ }, $options.getColumnPTOptions('sortBadge')), vue.toDisplayString($options.getBadgeValue()), 17))
2878
3018
  : vue.createCommentVNode("", true),
2879
3019
  ($options.columnProp('selectionMode') === 'multiple' && $props.filterDisplay !== 'row')
2880
3020
  ? (vue.openBlock(), vue.createBlock(_component_DTHeaderCheckbox, {
@@ -2882,8 +3022,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2882
3022
  checked: $props.allRowsSelected,
2883
3023
  onChange: $options.onHeaderCheckboxChange,
2884
3024
  disabled: $props.empty,
2885
- headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate
2886
- }, null, 8, ["checked", "onChange", "disabled", "headerCheckboxIconTemplate"]))
3025
+ headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate,
3026
+ column: $props.column,
3027
+ pt: _ctx.pt
3028
+ }, null, 8, ["checked", "onChange", "disabled", "headerCheckboxIconTemplate", "column", "pt"]))
2887
3029
  : vue.createCommentVNode("", true),
2888
3030
  ($props.filterDisplay === 'menu' && $props.column.children && $props.column.children.filter)
2889
3031
  ? (vue.openBlock(), vue.createBlock(_component_DTColumnFilter, {
@@ -2919,17 +3061,20 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
2919
3061
  onMatchmodeChange: _cache[4] || (_cache[4] = $event => (_ctx.$emit('matchmode-change', $event))),
2920
3062
  onConstraintAdd: _cache[5] || (_cache[5] = $event => (_ctx.$emit('constraint-add', $event))),
2921
3063
  onConstraintRemove: _cache[6] || (_cache[6] = $event => (_ctx.$emit('constraint-remove', $event))),
2922
- onApplyClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('apply-click', $event)))
2923
- }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filterIconTemplate", "filterAddIconTemplate", "filterRemoveIconTemplate", "filterClearIconTemplate", "filters", "filtersStore", "filterInputProps", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
3064
+ onApplyClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('apply-click', $event))),
3065
+ pt: _ctx.pt,
3066
+ column: $props.column
3067
+ }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filterIconTemplate", "filterAddIconTemplate", "filterRemoveIconTemplate", "filterClearIconTemplate", "filters", "filtersStore", "filterInputProps", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints", "pt", "column"]))
2924
3068
  : vue.createCommentVNode("", true)
2925
- ])
2926
- ], 46, _hoisted_1$2))
3069
+ ], 16)
3070
+ ], 16, _hoisted_1))
2927
3071
  }
2928
3072
 
2929
3073
  script$2.render = render$2;
2930
3074
 
2931
3075
  var script$1 = {
2932
3076
  name: 'TableHeader',
3077
+ extends: BaseComponent__default["default"],
2933
3078
  emits: [
2934
3079
  'column-click',
2935
3080
  'column-mousedown',
@@ -3026,6 +3171,42 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3026
3171
  columnProp(col, prop) {
3027
3172
  return utils.ObjectUtils.getVNodeProp(col, prop);
3028
3173
  },
3174
+ getColumnGroupPTOptions(key) {
3175
+ return this.ptmo(this.getColumnGroupProps(), key, {
3176
+ props: this.getColumnGroupProps(),
3177
+ parent: {
3178
+ props: this.$props,
3179
+ state: this.$data
3180
+ }
3181
+ });
3182
+ },
3183
+ getColumnGroupProps() {
3184
+ return this.columnGroup && this.columnGroup.props && this.columnGroup.props.pt ? this.columnGroup.props.pt : undefined; //@todo
3185
+ },
3186
+ getRowPTOptions(row, key) {
3187
+ return this.ptmo(this.getRowProp(row), key, {
3188
+ props: row.props,
3189
+ parent: {
3190
+ props: this.$props,
3191
+ state: this.$data
3192
+ }
3193
+ });
3194
+ },
3195
+ getRowProp(row) {
3196
+ return row.props && row.props.pt ? row.props.pt : undefined; //@todo
3197
+ },
3198
+ getColumnPTOptions(column, key) {
3199
+ return this.ptmo(this.getColumnProp(column), key, {
3200
+ props: column.props,
3201
+ parent: {
3202
+ props: this.$props,
3203
+ state: this.$data
3204
+ }
3205
+ });
3206
+ },
3207
+ getColumnProp(column) {
3208
+ return column.props && column.props.pt ? column.props.pt : undefined; //@todo
3209
+ },
3029
3210
  getFilterColumnHeaderClass(column) {
3030
3211
  return [
3031
3212
  'p-filter-column',
@@ -3076,25 +3257,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3076
3257
  }
3077
3258
  };
3078
3259
 
3079
- const _hoisted_1$1 = {
3080
- class: "p-datatable-thead",
3081
- role: "rowgroup"
3082
- };
3083
- const _hoisted_2$1 = { role: "row" };
3084
- const _hoisted_3$1 = {
3085
- key: 0,
3086
- role: "row"
3087
- };
3088
-
3089
3260
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3090
3261
  const _component_DTHeaderCell = vue.resolveComponent("DTHeaderCell");
3091
3262
  const _component_DTHeaderCheckbox = vue.resolveComponent("DTHeaderCheckbox");
3092
3263
  const _component_DTColumnFilter = vue.resolveComponent("DTColumnFilter");
3093
3264
 
3094
- return (vue.openBlock(), vue.createElementBlock("thead", _hoisted_1$1, [
3265
+ return (vue.openBlock(), vue.createElementBlock("thead", vue.mergeProps({
3266
+ class: "p-datatable-thead",
3267
+ role: "rowgroup"
3268
+ }, { ..._ctx.ptm('thead'), ...$options.getColumnGroupPTOptions('root') }), [
3095
3269
  (!$props.columnGroup)
3096
3270
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
3097
- vue.createElementVNode("tr", _hoisted_2$1, [
3271
+ vue.createElementVNode("tr", vue.mergeProps({ role: "row" }, _ctx.ptm('headerRow')), [
3098
3272
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
3099
3273
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
3100
3274
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
@@ -3132,31 +3306,37 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3132
3306
  onConstraintAdd: _cache[12] || (_cache[12] = $event => (_ctx.$emit('constraint-add', $event))),
3133
3307
  onConstraintRemove: _cache[13] || (_cache[13] = $event => (_ctx.$emit('constraint-remove', $event))),
3134
3308
  onApplyClick: _cache[14] || (_cache[14] = $event => (_ctx.$emit('apply-click', $event))),
3135
- headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate
3136
- }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "filterInputProps", "headerCheckboxIconTemplate"]))
3309
+ headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate,
3310
+ pt: _ctx.pt
3311
+ }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "filterInputProps", "headerCheckboxIconTemplate", "pt"]))
3137
3312
  : vue.createCommentVNode("", true)
3138
3313
  ], 64))
3139
3314
  }), 128))
3140
- ]),
3315
+ ], 16),
3141
3316
  ($props.filterDisplay === 'row')
3142
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_3$1, [
3317
+ ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
3318
+ key: 0,
3319
+ role: "row"
3320
+ }, _ctx.ptm('headerRow')), [
3143
3321
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
3144
3322
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
3145
3323
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
3146
3324
  }, [
3147
3325
  (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || $props.groupRowsBy !== $options.columnProp(col, 'field')))
3148
- ? (vue.openBlock(), vue.createElementBlock("th", {
3326
+ ? (vue.openBlock(), vue.createElementBlock("th", vue.mergeProps({
3149
3327
  key: 0,
3150
- style: vue.normalizeStyle($options.getFilterColumnHeaderStyle(col)),
3151
- class: vue.normalizeClass($options.getFilterColumnHeaderClass(col))
3152
- }, [
3328
+ style: $options.getFilterColumnHeaderStyle(col),
3329
+ class: $options.getFilterColumnHeaderClass(col)
3330
+ }, { ...$options.getColumnPTOptions(col, 'root'), ...$options.getColumnPTOptions(col, 'headerCell') }), [
3153
3331
  ($options.columnProp(col, 'selectionMode') === 'multiple')
3154
3332
  ? (vue.openBlock(), vue.createBlock(_component_DTHeaderCheckbox, {
3155
3333
  key: 0,
3156
3334
  checked: $props.allRowsSelected,
3157
3335
  disabled: $props.empty,
3158
- onChange: _cache[15] || (_cache[15] = $event => (_ctx.$emit('checkbox-change', $event)))
3159
- }, null, 8, ["checked", "disabled"]))
3336
+ onChange: _cache[15] || (_cache[15] = $event => (_ctx.$emit('checkbox-change', $event))),
3337
+ column: col,
3338
+ pt: _ctx.pt
3339
+ }, null, 8, ["checked", "disabled", "column", "pt"]))
3160
3340
  : vue.createCommentVNode("", true),
3161
3341
  (col.children && col.children.filter)
3162
3342
  ? (vue.openBlock(), vue.createBlock(_component_DTColumnFilter, {
@@ -3192,21 +3372,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3192
3372
  onMatchmodeChange: _cache[19] || (_cache[19] = $event => (_ctx.$emit('matchmode-change', $event))),
3193
3373
  onConstraintAdd: _cache[20] || (_cache[20] = $event => (_ctx.$emit('constraint-add', $event))),
3194
3374
  onConstraintRemove: _cache[21] || (_cache[21] = $event => (_ctx.$emit('constraint-remove', $event))),
3195
- onApplyClick: _cache[22] || (_cache[22] = $event => (_ctx.$emit('apply-click', $event)))
3196
- }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filterIconTemplate", "filterAddIconTemplate", "filterRemoveIconTemplate", "filterClearIconTemplate", "filters", "filtersStore", "filterInputProps", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
3375
+ onApplyClick: _cache[22] || (_cache[22] = $event => (_ctx.$emit('apply-click', $event))),
3376
+ pt: _ctx.pt,
3377
+ column: col
3378
+ }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filterIconTemplate", "filterAddIconTemplate", "filterRemoveIconTemplate", "filterClearIconTemplate", "filters", "filtersStore", "filterInputProps", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints", "pt", "column"]))
3197
3379
  : vue.createCommentVNode("", true)
3198
- ], 6))
3380
+ ], 16))
3199
3381
  : vue.createCommentVNode("", true)
3200
3382
  ], 64))
3201
3383
  }), 128))
3202
- ]))
3384
+ ], 16))
3203
3385
  : vue.createCommentVNode("", true)
3204
3386
  ], 64))
3205
3387
  : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList($options.getHeaderRows(), (row, i) => {
3206
- return (vue.openBlock(), vue.createElementBlock("tr", {
3388
+ return (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
3207
3389
  key: i,
3208
3390
  role: "row"
3209
- }, [
3391
+ }, $options.getRowPTOptions(row, 'root')), [
3210
3392
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.getHeaderColumns(row), (col, j) => {
3211
3393
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
3212
3394
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || j
@@ -3236,20 +3418,22 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
3236
3418
  onConstraintAdd: _cache[30] || (_cache[30] = $event => (_ctx.$emit('constraint-add', $event))),
3237
3419
  onConstraintRemove: _cache[31] || (_cache[31] = $event => (_ctx.$emit('constraint-remove', $event))),
3238
3420
  onApplyClick: _cache[32] || (_cache[32] = $event => (_ctx.$emit('apply-click', $event))),
3239
- headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate
3240
- }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "headerCheckboxIconTemplate"]))
3421
+ headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate,
3422
+ pt: _ctx.pt
3423
+ }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "headerCheckboxIconTemplate", "pt"]))
3241
3424
  : vue.createCommentVNode("", true)
3242
3425
  ], 64))
3243
3426
  }), 128))
3244
- ]))
3427
+ ], 16))
3245
3428
  }), 128))
3246
- ]))
3429
+ ], 16))
3247
3430
  }
3248
3431
 
3249
3432
  script$1.render = render$1;
3250
3433
 
3251
3434
  var script = {
3252
3435
  name: 'DataTable',
3436
+ extends: BaseComponent__default["default"],
3253
3437
  emits: [
3254
3438
  'value-change',
3255
3439
  'update:first',
@@ -5301,36 +5485,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5301
5485
  }
5302
5486
  };
5303
5487
 
5304
- const _hoisted_1 = {
5305
- key: 0,
5306
- class: "p-datatable-loading-overlay p-component-overlay"
5307
- };
5308
- const _hoisted_2 = {
5309
- key: 1,
5310
- class: "p-datatable-header"
5311
- };
5312
- const _hoisted_3 = {
5313
- key: 3,
5314
- class: "p-datatable-footer"
5315
- };
5316
- const _hoisted_4 = {
5317
- ref: "resizeHelper",
5318
- class: "p-column-resizer-helper",
5319
- style: {"display":"none"}
5320
- };
5321
- const _hoisted_5 = {
5322
- key: 5,
5323
- ref: "reorderIndicatorUp",
5324
- class: "p-datatable-reorder-indicator-up",
5325
- style: {"position":"absolute","display":"none"}
5326
- };
5327
- const _hoisted_6 = {
5328
- key: 6,
5329
- ref: "reorderIndicatorDown",
5330
- class: "p-datatable-reorder-indicator-down",
5331
- style: {"position":"absolute","display":"none"}
5332
- };
5333
-
5334
5488
  function render(_ctx, _cache, $props, $setup, $data, $options) {
5335
5489
  const _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
5336
5490
  const _component_DTPaginator = vue.resolveComponent("DTPaginator");
@@ -5339,13 +5493,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5339
5493
  const _component_DTTableFooter = vue.resolveComponent("DTTableFooter");
5340
5494
  const _component_DTVirtualScroller = vue.resolveComponent("DTVirtualScroller");
5341
5495
 
5342
- return (vue.openBlock(), vue.createElementBlock("div", {
5343
- class: vue.normalizeClass($options.containerClass),
5496
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
5497
+ class: $options.containerClass,
5344
5498
  "data-scrollselectors": ".p-datatable-wrapper"
5345
- }, [
5499
+ }, _ctx.ptm('root')), [
5346
5500
  vue.renderSlot(_ctx.$slots, "default"),
5347
5501
  ($props.loading)
5348
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
5502
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
5503
+ key: 0,
5504
+ class: "p-datatable-loading-overlay p-component-overlay"
5505
+ }, _ctx.ptm('loadingOverlay')), [
5349
5506
  (_ctx.$slots.loading)
5350
5507
  ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 })
5351
5508
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -5355,22 +5512,25 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5355
5512
  class: "p-datatable-loading-icon"
5356
5513
  }))
5357
5514
  : ($props.loadingIcon)
5358
- ? (vue.openBlock(), vue.createElementBlock("i", {
5515
+ ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
5359
5516
  key: 1,
5360
- class: vue.normalizeClass(['p-datatable-loading-icon pi-spin', $props.loadingIcon])
5361
- }, null, 2))
5362
- : (vue.openBlock(), vue.createBlock(_component_SpinnerIcon, {
5517
+ class: ['p-datatable-loading-icon pi-spin', $props.loadingIcon]
5518
+ }, _ctx.ptm('loadingIcon')), null, 16))
5519
+ : (vue.openBlock(), vue.createBlock(_component_SpinnerIcon, vue.mergeProps({
5363
5520
  key: 2,
5364
5521
  spin: "",
5365
5522
  class: "p-datatable-loading-icon"
5366
- }))
5523
+ }, _ctx.ptm('loadingIcon')), null, 16))
5367
5524
  ], 64))
5368
- ]))
5525
+ ], 16))
5369
5526
  : vue.createCommentVNode("", true),
5370
5527
  (_ctx.$slots.header)
5371
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
5528
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
5529
+ key: 1,
5530
+ class: "p-datatable-header"
5531
+ }, _ctx.ptm('header')), [
5372
5532
  vue.renderSlot(_ctx.$slots, "header")
5373
- ]))
5533
+ ], 16))
5374
5534
  : vue.createCommentVNode("", true),
5375
5535
  ($options.paginatorTop)
5376
5536
  ? (vue.openBlock(), vue.createBlock(_component_DTPaginator, {
@@ -5384,7 +5544,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5384
5544
  currentPageReportTemplate: $props.currentPageReportTemplate,
5385
5545
  class: "p-paginator-top",
5386
5546
  onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event))),
5387
- alwaysShow: $props.alwaysShowPaginator
5547
+ alwaysShow: $props.alwaysShowPaginator,
5548
+ pt: _ctx.ptm('paginator')
5388
5549
  }, vue.createSlots({ _: 2 }, [
5389
5550
  (_ctx.$slots.paginatorstart)
5390
5551
  ? {
@@ -5440,13 +5601,13 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5440
5601
  key: "5"
5441
5602
  }
5442
5603
  : undefined
5443
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
5604
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow", "pt"]))
5444
5605
  : vue.createCommentVNode("", true),
5445
- vue.createElementVNode("div", {
5606
+ vue.createElementVNode("div", vue.mergeProps({
5446
5607
  class: "p-datatable-wrapper",
5447
- style: vue.normalizeStyle({ maxHeight: $options.virtualScrollerDisabled ? $props.scrollHeight : '' })
5448
- }, [
5449
- vue.createVNode(_component_DTVirtualScroller, vue.mergeProps({ ref: "virtualScroller" }, $props.virtualScrollerOptions, {
5608
+ style: { maxHeight: $options.virtualScrollerDisabled ? $props.scrollHeight : '' }
5609
+ }, _ctx.ptm('wrapper')), [
5610
+ vue.createVNode(_component_DTVirtualScroller, vue.mergeProps({ ref: "virtualScroller" }, { ...$props.virtualScrollerOptions, ..._ctx.ptm('virtualScroller') }, {
5450
5611
  items: $options.processedData,
5451
5612
  columns: $options.columns,
5452
5613
  style: $props.scrollHeight !== 'flex' ? { height: $props.scrollHeight } : undefined,
@@ -5463,7 +5624,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5463
5624
  role: "table",
5464
5625
  class: $options.tableStyleClass,
5465
5626
  style: [$props.tableStyle, slotProps.spacerStyle]
5466
- }, $props.tableProps), [
5627
+ }, { ...$props.tableProps, ..._ctx.ptm('table') }), [
5467
5628
  vue.createVNode(_component_DTTableHeader, {
5468
5629
  columnGroup: $options.headerColumnGroup,
5469
5630
  columns: slotProps.columns,
@@ -5492,8 +5653,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5492
5653
  onColumnDragleave: _cache[5] || (_cache[5] = $event => ($options.onColumnHeaderDragLeave($event))),
5493
5654
  onColumnDrop: _cache[6] || (_cache[6] = $event => ($options.onColumnHeaderDrop($event))),
5494
5655
  onColumnResizestart: _cache[7] || (_cache[7] = $event => ($options.onColumnResizeStart($event))),
5495
- onCheckboxChange: _cache[8] || (_cache[8] = $event => ($options.toggleRowsWithCheckbox($event)))
5496
- }, null, 8, ["columnGroup", "columns", "rowGroupMode", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "allRowsSelected", "empty", "sortMode", "sortField", "sortOrder", "multiSortMeta", "filters", "filtersStore", "filterDisplay", "filterInputProps", "headerCheckboxIconTemplate", "onFilterChange", "onFilterApply"]),
5656
+ onCheckboxChange: _cache[8] || (_cache[8] = $event => ($options.toggleRowsWithCheckbox($event))),
5657
+ pt: _ctx.pt
5658
+ }, null, 8, ["columnGroup", "columns", "rowGroupMode", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "allRowsSelected", "empty", "sortMode", "sortField", "sortOrder", "multiSortMeta", "filters", "filtersStore", "filterDisplay", "filterInputProps", "headerCheckboxIconTemplate", "onFilterChange", "onFilterApply", "pt"]),
5497
5659
  ($props.frozenValue)
5498
5660
  ? (vue.openBlock(), vue.createBlock(_component_DTTableBody, {
5499
5661
  key: 0,
@@ -5606,28 +5768,33 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5606
5768
  onRowEditSave: _cache[41] || (_cache[41] = $event => ($options.onRowEditSave($event))),
5607
5769
  onRowEditCancel: _cache[42] || (_cache[42] = $event => ($options.onRowEditCancel($event))),
5608
5770
  editingMeta: $data.d_editingMeta,
5609
- onEditingMetaChange: $options.onEditingMetaChange
5610
- }, 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"]),
5771
+ onEditingMetaChange: $options.onEditingMetaChange,
5772
+ pt: _ctx.pt
5773
+ }, 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", "pt"]),
5611
5774
  ($options.hasSpacerStyle(slotProps.spacerStyle))
5612
- ? (vue.openBlock(), vue.createElementBlock("tbody", {
5775
+ ? (vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
5613
5776
  key: 1,
5614
- style: vue.normalizeStyle({ height: `calc(${slotProps.spacerStyle.height} - ${slotProps.rows.length * slotProps.itemSize}px)` }),
5777
+ style: { height: `calc(${slotProps.spacerStyle.height} - ${slotProps.rows.length * slotProps.itemSize}px)` },
5615
5778
  class: "p-datatable-virtualscroller-spacer"
5616
- }, null, 4))
5779
+ }, _ctx.ptm('virtualScrollerSpacer')), null, 16))
5617
5780
  : vue.createCommentVNode("", true),
5618
5781
  vue.createVNode(_component_DTTableFooter, {
5619
5782
  columnGroup: $options.footerColumnGroup,
5620
- columns: slotProps.columns
5621
- }, null, 8, ["columnGroup", "columns"])
5783
+ columns: slotProps.columns,
5784
+ pt: _ctx.pt
5785
+ }, null, 8, ["columnGroup", "columns", "pt"])
5622
5786
  ], 16)
5623
5787
  ]),
5624
5788
  _: 1
5625
5789
  }, 16, ["items", "columns", "style", "scrollHeight", "disabled"])
5626
- ], 4),
5790
+ ], 16),
5627
5791
  (_ctx.$slots.footer)
5628
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
5792
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
5793
+ key: 3,
5794
+ class: "p-datatable-footer"
5795
+ }, _ctx.ptm('footer')), [
5629
5796
  vue.renderSlot(_ctx.$slots, "footer")
5630
- ]))
5797
+ ], 16))
5631
5798
  : vue.createCommentVNode("", true),
5632
5799
  ($options.paginatorBottom)
5633
5800
  ? (vue.openBlock(), vue.createBlock(_component_DTPaginator, {
@@ -5641,7 +5808,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5641
5808
  currentPageReportTemplate: $props.currentPageReportTemplate,
5642
5809
  class: "p-paginator-bottom",
5643
5810
  onPage: _cache[43] || (_cache[43] = $event => ($options.onPage($event))),
5644
- alwaysShow: $props.alwaysShowPaginator
5811
+ alwaysShow: $props.alwaysShowPaginator,
5812
+ pt: _ctx.ptm('paginator')
5645
5813
  }, vue.createSlots({ _: 2 }, [
5646
5814
  (_ctx.$slots.paginatorstart)
5647
5815
  ? {
@@ -5697,20 +5865,34 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5697
5865
  key: "5"
5698
5866
  }
5699
5867
  : undefined
5700
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
5868
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow", "pt"]))
5701
5869
  : vue.createCommentVNode("", true),
5702
- vue.createElementVNode("div", _hoisted_4, null, 512),
5870
+ vue.createElementVNode("div", vue.mergeProps({
5871
+ ref: "resizeHelper",
5872
+ class: "p-column-resizer-helper",
5873
+ style: {"display":"none"}
5874
+ }, _ctx.ptm('resizeHelper')), null, 16),
5703
5875
  ($props.reorderableColumns)
5704
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5, [
5876
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
5877
+ key: 5,
5878
+ ref: "reorderIndicatorUp",
5879
+ class: "p-datatable-reorder-indicator-up",
5880
+ style: {"position":"absolute","display":"none"}
5881
+ }, _ctx.ptm('reorderIndicatorUp')), [
5705
5882
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.reorderindicatorupicon || 'ArrowDownIcon')))
5706
- ], 512))
5883
+ ], 16))
5707
5884
  : vue.createCommentVNode("", true),
5708
5885
  ($props.reorderableColumns)
5709
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, [
5886
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
5887
+ key: 6,
5888
+ ref: "reorderIndicatorDown",
5889
+ class: "p-datatable-reorder-indicator-down",
5890
+ style: {"position":"absolute","display":"none"}
5891
+ }, _ctx.ptm('reorderIndicatorDown')), [
5710
5892
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.reorderindicatordownicon || 'ArrowUpIcon')))
5711
- ], 512))
5893
+ ], 16))
5712
5894
  : vue.createCommentVNode("", true)
5713
- ], 2))
5895
+ ], 16))
5714
5896
  }
5715
5897
 
5716
5898
  function styleInject(css, ref) {
@@ -5747,4 +5929,4 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
5747
5929
 
5748
5930
  return script;
5749
5931
 
5750
- })(primevue.api, primevue.icons.arrowdown, primevue.icons.arrowup, primevue.icons.spinner, primevue.paginator, primevue.utils, primevue.virtualscroller, primevue.icons.chevrondown, primevue.icons.chevronright, primevue.icons.bars, primevue.icons.check, primevue.icons.pencil, primevue.icons.times, primevue.overlayeventbus, primevue.ripple, Vue, primevue.button, primevue.dropdown, primevue.focustrap, primevue.icons.filter, primevue.icons.filterslash, primevue.icons.plus, primevue.icons.trash, primevue.portal, primevue.icons.sortalt, primevue.icons.sortamountdown, primevue.icons.sortamountupalt);
5932
+ })(primevue.api, primevue.basecomponent, primevue.icons.arrowdown, primevue.icons.arrowup, primevue.icons.spinner, primevue.paginator, primevue.utils, primevue.virtualscroller, primevue.icons.chevrondown, primevue.icons.chevronright, primevue.icons.bars, primevue.icons.check, primevue.icons.pencil, primevue.icons.times, primevue.overlayeventbus, primevue.ripple, Vue, primevue.button, primevue.dropdown, primevue.focustrap, primevue.icons.filter, primevue.icons.filterslash, primevue.icons.plus, primevue.icons.trash, primevue.portal, primevue.icons.sortalt, primevue.icons.sortamountdown, primevue.icons.sortamountupalt);