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,4 +1,5 @@
1
1
  import { FilterOperator, FilterService, FilterMatchMode } from 'primevue/api';
2
+ import BaseComponent from 'primevue/basecomponent';
2
3
  import ArrowDownIcon from 'primevue/icons/arrowdown';
3
4
  import ArrowUpIcon from 'primevue/icons/arrowup';
4
5
  import SpinnerIcon from 'primevue/icons/spinner';
@@ -13,7 +14,7 @@ import PencilIcon from 'primevue/icons/pencil';
13
14
  import TimesIcon from 'primevue/icons/times';
14
15
  import OverlayEventBus from 'primevue/overlayeventbus';
15
16
  import Ripple from 'primevue/ripple';
16
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, resolveDynamicComponent, withKeys, withModifiers, resolveDirective, normalizeStyle, toDisplayString, createCommentVNode, Fragment, withDirectives, createTextVNode, renderList, mergeProps, createVNode, withCtx, Transition, renderSlot, createSlots } from 'vue';
17
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, createBlock, resolveDynamicComponent, withKeys, withModifiers, resolveDirective, toDisplayString, createCommentVNode, Fragment, normalizeClass, withDirectives, createTextVNode, renderList, normalizeProps, guardReactiveProps, createVNode, withCtx, Transition, renderSlot, createSlots } from 'vue';
17
18
  import Button from 'primevue/button';
18
19
  import Dropdown from 'primevue/dropdown';
19
20
  import FocusTrap from 'primevue/focustrap';
@@ -28,10 +29,12 @@ import SortAmountUpAltIcon from 'primevue/icons/sortamountupalt';
28
29
 
29
30
  var script$a = {
30
31
  name: 'RowCheckbox',
32
+ extends: BaseComponent,
31
33
  emits: ['change'],
32
34
  props: {
33
35
  value: null,
34
36
  checked: null,
37
+ column: null,
35
38
  rowCheckboxIconTemplate: {
36
39
  type: Function,
37
40
  default: null
@@ -43,6 +46,23 @@ var script$a = {
43
46
  };
44
47
  },
45
48
  methods: {
49
+ getColumnPTOptions(key) {
50
+ return this.ptmo(this.getColumnProp(), key, {
51
+ props: this.column.props,
52
+ parent: {
53
+ props: this.$props,
54
+ state: this.$data
55
+ },
56
+ context: {
57
+ checked: this.checked,
58
+ focused: this.focused,
59
+ disabled: this.$attrs.disabled
60
+ }
61
+ });
62
+ },
63
+ getColumnProp() {
64
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
65
+ },
46
66
  onClick(event) {
47
67
  if (!this.$attrs.disabled) {
48
68
  this.$emit('change', {
@@ -81,18 +101,17 @@ var script$a = {
81
101
  }
82
102
  };
83
103
 
84
- const _hoisted_1$a = { class: "p-hidden-accessible" };
85
- const _hoisted_2$9 = ["checked", "disabled", "tabindex", "aria-label"];
104
+ const _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
86
105
 
87
106
  function render$a(_ctx, _cache, $props, $setup, $data, $options) {
88
107
  const _component_CheckIcon = resolveComponent("CheckIcon");
89
108
 
90
- return (openBlock(), createElementBlock("div", {
91
- class: normalizeClass(['p-checkbox p-component', { 'p-checkbox-focused': $data.focused }]),
109
+ return (openBlock(), createElementBlock("div", mergeProps({
110
+ class: ['p-checkbox p-component', { 'p-checkbox-focused': $data.focused }],
92
111
  onClick: _cache[3] || (_cache[3] = (...args) => ($options.onClick && $options.onClick(...args)))
93
- }, [
94
- createElementVNode("div", _hoisted_1$a, [
95
- createElementVNode("input", {
112
+ }, $options.getColumnPTOptions('checkboxWrapper')), [
113
+ createElementVNode("div", mergeProps({ class: "p-hidden-accessible" }, $options.getColumnPTOptions('hiddenInputWrapper')), [
114
+ createElementVNode("input", mergeProps({
96
115
  ref: "input",
97
116
  type: "checkbox",
98
117
  checked: $props.checked,
@@ -102,36 +121,38 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
102
121
  onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
103
122
  onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event))),
104
123
  onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeydown && $options.onKeydown(...args)))
105
- }, null, 40, _hoisted_2$9)
106
- ]),
107
- createElementVNode("div", {
124
+ }, $options.getColumnPTOptions('hiddenInput')), null, 16, _hoisted_1$7)
125
+ ], 16),
126
+ createElementVNode("div", mergeProps({
108
127
  ref: "box",
109
- class: normalizeClass(['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }])
110
- }, [
128
+ class: ['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]
129
+ }, $options.getColumnPTOptions('checkbox')), [
111
130
  ($props.rowCheckboxIconTemplate)
112
131
  ? (openBlock(), createBlock(resolveDynamicComponent($props.rowCheckboxIconTemplate), {
113
132
  key: 0,
114
133
  checked: $props.checked,
115
134
  class: "p-checkbox-icon"
116
135
  }, null, 8, ["checked"]))
117
- : (openBlock(), createBlock(_component_CheckIcon, {
136
+ : (openBlock(), createBlock(_component_CheckIcon, mergeProps({
118
137
  key: 1,
119
138
  class: "p-checkbox-icon"
120
- }))
121
- ], 2)
122
- ], 2))
139
+ }, $options.getColumnPTOptions('checkboxIcon')), null, 16))
140
+ ], 16)
141
+ ], 16))
123
142
  }
124
143
 
125
144
  script$a.render = render$a;
126
145
 
127
146
  var script$9 = {
128
147
  name: 'RowRadioButton',
148
+ extends: BaseComponent,
129
149
  inheritAttrs: false,
130
150
  emits: ['change'],
131
151
  props: {
132
152
  value: null,
133
153
  checked: null,
134
- name: null
154
+ name: null,
155
+ column: null
135
156
  },
136
157
  data() {
137
158
  return {
@@ -139,6 +160,23 @@ var script$9 = {
139
160
  };
140
161
  },
141
162
  methods: {
163
+ getColumnPTOptions(key) {
164
+ return this.ptmo(this.getColumnProp(), key, {
165
+ props: this.column.props,
166
+ parent: {
167
+ props: this.$props,
168
+ state: this.$data
169
+ },
170
+ context: {
171
+ checked: this.checked,
172
+ focused: this.focused,
173
+ disabled: this.$attrs.disabled
174
+ }
175
+ });
176
+ },
177
+ getColumnProp() {
178
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
179
+ },
142
180
  onClick(event) {
143
181
  if (!this.disabled) {
144
182
  if (!this.checked) {
@@ -160,20 +198,15 @@ var script$9 = {
160
198
  }
161
199
  };
162
200
 
163
- const _hoisted_1$9 = { class: "p-hidden-accessible" };
164
- const _hoisted_2$8 = ["checked", "disabled", "name"];
165
- const _hoisted_3$6 = /*#__PURE__*/createElementVNode("div", { class: "p-radiobutton-icon" }, null, -1);
166
- const _hoisted_4$5 = [
167
- _hoisted_3$6
168
- ];
201
+ const _hoisted_1$6 = ["checked", "disabled", "name"];
169
202
 
170
203
  function render$9(_ctx, _cache, $props, $setup, $data, $options) {
171
- return (openBlock(), createElementBlock("div", {
172
- class: normalizeClass(['p-radiobutton p-component', { 'p-radiobutton-focused': $data.focused }]),
204
+ return (openBlock(), createElementBlock("div", mergeProps({
205
+ class: ['p-radiobutton p-component', { 'p-radiobutton-focused': $data.focused }],
173
206
  onClick: _cache[3] || (_cache[3] = (...args) => ($options.onClick && $options.onClick(...args)))
174
- }, [
175
- createElementVNode("div", _hoisted_1$9, [
176
- createElementVNode("input", {
207
+ }, $options.getColumnPTOptions('radiobuttonWrapper')), [
208
+ createElementVNode("div", mergeProps({ class: "p-hidden-accessible" }, _ctx.ptm('hiddenInputWrapper')), [
209
+ createElementVNode("input", mergeProps({
177
210
  ref: "input",
178
211
  type: "radio",
179
212
  checked: $props.checked,
@@ -183,19 +216,22 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
183
216
  onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
184
217
  onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event))),
185
218
  onKeydown: _cache[2] || (_cache[2] = withKeys(withModifiers((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
186
- }, null, 40, _hoisted_2$8)
187
- ]),
188
- createElementVNode("div", {
219
+ }, $options.getColumnPTOptions('hiddenInput')), null, 16, _hoisted_1$6)
220
+ ], 16),
221
+ createElementVNode("div", mergeProps({
189
222
  ref: "box",
190
- class: normalizeClass(['p-radiobutton-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }])
191
- }, _hoisted_4$5, 2)
192
- ], 2))
223
+ class: ['p-radiobutton-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]
224
+ }, $options.getColumnPTOptions('radiobutton')), [
225
+ createElementVNode("div", mergeProps({ class: "p-radiobutton-icon" }, $options.getColumnPTOptions('radiobuttonIcon')), null, 16)
226
+ ], 16)
227
+ ], 16))
193
228
  }
194
229
 
195
230
  script$9.render = render$9;
196
231
 
197
232
  var script$8 = {
198
233
  name: 'BodyCell',
234
+ extends: BaseComponent,
199
235
  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'],
200
236
  props: {
201
237
  rowData: {
@@ -308,6 +344,18 @@ var script$8 = {
308
344
  columnProp(prop) {
309
345
  return ObjectUtils.getVNodeProp(this.column, prop);
310
346
  },
347
+ getColumnPTOptions(column, key) {
348
+ return this.ptmo(this.getColumnProp(column), key, {
349
+ props: column.props,
350
+ parent: {
351
+ props: this.$props,
352
+ state: this.$data
353
+ }
354
+ });
355
+ },
356
+ getColumnProp(column) {
357
+ return column.props && column.props.pt ? column.props.pt : undefined; //@todo
358
+ },
311
359
  resolveFieldData() {
312
360
  return ObjectUtils.resolveFieldData(this.rowData, this.field);
313
361
  },
@@ -612,14 +660,10 @@ var script$8 = {
612
660
  }
613
661
  };
614
662
 
615
- const _hoisted_1$8 = {
616
- key: 0,
617
- class: "p-column-title"
618
- };
619
- const _hoisted_2$7 = ["aria-expanded", "aria-controls", "aria-label"];
620
- const _hoisted_3$5 = ["aria-label"];
621
- const _hoisted_4$4 = ["aria-label"];
622
- const _hoisted_5$4 = ["aria-label"];
663
+ const _hoisted_1$5 = ["aria-expanded", "aria-controls", "aria-label"];
664
+ const _hoisted_2$2 = ["aria-label"];
665
+ const _hoisted_3$2 = ["aria-label"];
666
+ const _hoisted_4$1 = ["aria-label"];
623
667
 
624
668
  function render$8(_ctx, _cache, $props, $setup, $data, $options) {
625
669
  const _component_DTRadioButton = resolveComponent("DTRadioButton");
@@ -629,11 +673,12 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
629
673
  const _directive_ripple = resolveDirective("ripple");
630
674
 
631
675
  return ($options.loading)
632
- ? (openBlock(), createElementBlock("td", {
676
+ ? (openBlock(), createElementBlock("td", mergeProps({
633
677
  key: 0,
634
- style: normalizeStyle($options.containerStyle),
635
- class: normalizeClass($options.containerClass)
636
- }, [
678
+ style: $options.containerStyle,
679
+ class: $options.containerClass,
680
+ role: "cell"
681
+ }, { ...$options.getColumnPTOptions($props.column, 'root'), ...$options.getColumnPTOptions($props.column, 'bodyCell') }), [
637
682
  (openBlock(), createBlock(resolveDynamicComponent($props.column.children.loading), {
638
683
  data: $props.rowData,
639
684
  column: $props.column,
@@ -642,17 +687,20 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
642
687
  frozenRow: $props.frozenRow,
643
688
  loadingOptions: $options.loadingOptions
644
689
  }, null, 8, ["data", "column", "field", "index", "frozenRow", "loadingOptions"]))
645
- ], 6))
646
- : (openBlock(), createElementBlock("td", {
690
+ ], 16))
691
+ : (openBlock(), createElementBlock("td", mergeProps({
647
692
  key: 1,
648
- style: normalizeStyle($options.containerStyle),
649
- class: normalizeClass($options.containerClass),
693
+ style: $options.containerStyle,
694
+ class: $options.containerClass,
650
695
  onClick: _cache[6] || (_cache[6] = (...args) => ($options.onClick && $options.onClick(...args))),
651
696
  onKeydown: _cache[7] || (_cache[7] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
652
697
  role: "cell"
653
- }, [
698
+ }, { ...$options.getColumnPTOptions($props.column, 'root'), ...$options.getColumnPTOptions($props.column, 'bodyCell') }), [
654
699
  ($props.responsiveLayout === 'stack')
655
- ? (openBlock(), createElementBlock("span", _hoisted_1$8, toDisplayString($options.columnProp('header')), 1))
700
+ ? (openBlock(), createElementBlock("span", mergeProps({
701
+ key: 0,
702
+ class: "p-column-title"
703
+ }, $options.getColumnPTOptions($props.column, 'columnTitle')), toDisplayString($options.columnProp('header')), 17))
656
704
  : createCommentVNode("", true),
657
705
  ($props.column.children && $props.column.children.body && !$data.d_editing)
658
706
  ? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.body), {
@@ -692,8 +740,10 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
692
740
  value: $props.rowData,
693
741
  name: $props.name,
694
742
  checked: $props.selected,
695
- onChange: _cache[0] || (_cache[0] = $event => ($options.toggleRowWithRadio($event, $props.rowIndex)))
696
- }, null, 8, ["value", "name", "checked"]))
743
+ onChange: _cache[0] || (_cache[0] = $event => ($options.toggleRowWithRadio($event, $props.rowIndex))),
744
+ column: $props.column,
745
+ pt: _ctx.pt
746
+ }, null, 8, ["value", "name", "checked", "column", "pt"]))
697
747
  : ($options.columnProp('selectionMode') === 'multiple')
698
748
  ? (openBlock(), createBlock(_component_DTCheckbox, {
699
749
  key: 1,
@@ -701,8 +751,10 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
701
751
  checked: $props.selected,
702
752
  rowCheckboxIconTemplate: $props.column.children && $props.column.children.rowcheckboxicon,
703
753
  "aria-selected": $props.selected ? true : undefined,
704
- onChange: _cache[1] || (_cache[1] = $event => ($options.toggleRowWithCheckbox($event, $props.rowIndex)))
705
- }, null, 8, ["value", "checked", "rowCheckboxIconTemplate", "aria-selected"]))
754
+ onChange: _cache[1] || (_cache[1] = $event => ($options.toggleRowWithCheckbox($event, $props.rowIndex))),
755
+ column: $props.column,
756
+ pt: _ctx.pt
757
+ }, null, 8, ["value", "checked", "rowCheckboxIconTemplate", "aria-selected", "column", "pt"]))
706
758
  : createCommentVNode("", true)
707
759
  ], 64))
708
760
  : ($options.columnProp('rowReorder'))
@@ -711,7 +763,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
711
763
  class: normalizeClass(['p-datatable-reorderablerow-handle', $options.columnProp('rowReorderIcon')])
712
764
  }, null, 8, ["class"]))
713
765
  : ($options.columnProp('expander'))
714
- ? withDirectives((openBlock(), createElementBlock("button", {
766
+ ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
715
767
  key: 6,
716
768
  class: "p-row-toggler p-link",
717
769
  type: "button",
@@ -719,7 +771,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
719
771
  "aria-controls": $props.ariaControls,
720
772
  "aria-label": $options.expandButtonAriaLabel,
721
773
  onClick: _cache[2] || (_cache[2] = (...args) => ($options.toggleRow && $options.toggleRow(...args)))
722
- }, [
774
+ }, $options.getColumnPTOptions($props.column, 'rowToggler')), [
723
775
  ($props.column.children && $props.column.children.rowtogglericon)
724
776
  ? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.rowtogglericon), {
725
777
  key: 0,
@@ -732,63 +784,63 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
732
784
  class: normalizeClass(['p-row-toggler-icon', $props.expandedRowIcon])
733
785
  }, null, 2))
734
786
  : ($props.isRowExpanded && !$props.expandedRowIcon)
735
- ? (openBlock(), createBlock(_component_ChevronDownIcon, {
787
+ ? (openBlock(), createBlock(_component_ChevronDownIcon, mergeProps({
736
788
  key: 1,
737
789
  class: "p-row-toggler-icon"
738
- }))
790
+ }, $options.getColumnPTOptions($props.column, 'rowTogglerIcon')), null, 16))
739
791
  : (!$props.isRowExpanded && $props.collapsedRowIcon)
740
792
  ? (openBlock(), createElementBlock("span", {
741
793
  key: 2,
742
794
  class: normalizeClass(['p-row-toggler-icon', $props.collapsedRowIcon])
743
795
  }, null, 2))
744
796
  : (!$props.isRowExpanded && !$props.collapsedRowIcon)
745
- ? (openBlock(), createBlock(_component_ChevronRightIcon, {
797
+ ? (openBlock(), createBlock(_component_ChevronRightIcon, mergeProps({
746
798
  key: 3,
747
799
  class: "p-row-toggler-icon"
748
- }))
800
+ }, $options.getColumnPTOptions($props.column, 'rowTogglerIcon')), null, 16))
749
801
  : createCommentVNode("", true)
750
802
  ], 64))
751
- ], 8, _hoisted_2$7)), [
803
+ ], 16, _hoisted_1$5)), [
752
804
  [_directive_ripple]
753
805
  ])
754
806
  : ($props.editMode === 'row' && $options.columnProp('rowEditor'))
755
807
  ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [
756
808
  (!$data.d_editing)
757
- ? withDirectives((openBlock(), createElementBlock("button", {
809
+ ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
758
810
  key: 0,
759
811
  class: "p-row-editor-init p-link",
760
812
  type: "button",
761
813
  "aria-label": $options.initButtonAriaLabel,
762
814
  onClick: _cache[3] || (_cache[3] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args)))
763
- }, [
764
- (openBlock(), createBlock(resolveDynamicComponent(($props.column.children && $props.column.children.roweditoriniticon) || 'PencilIcon'), { class: "p-row-editor-init-icon" }))
765
- ], 8, _hoisted_3$5)), [
815
+ }, $options.getColumnPTOptions($props.column, 'rowEditorInitButton')), [
816
+ (openBlock(), createBlock(resolveDynamicComponent(($props.column.children && $props.column.children.roweditoriniticon) || 'PencilIcon'), mergeProps({ class: "p-row-editor-init-icon" }, $options.getColumnPTOptions($props.column, 'rowEditorInitIcon')), null, 16))
817
+ ], 16, _hoisted_2$2)), [
766
818
  [_directive_ripple]
767
819
  ])
768
820
  : createCommentVNode("", true),
769
821
  ($data.d_editing)
770
- ? withDirectives((openBlock(), createElementBlock("button", {
822
+ ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
771
823
  key: 1,
772
824
  class: "p-row-editor-save p-link",
773
825
  type: "button",
774
826
  "aria-label": $options.saveButtonAriaLabel,
775
827
  onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args)))
776
- }, [
777
- (openBlock(), createBlock(resolveDynamicComponent(($props.column.children && $props.column.children.roweditorsaveicon) || 'CheckIcon'), { class: "p-row-editor-save-icon" }))
778
- ], 8, _hoisted_4$4)), [
828
+ }, $options.getColumnPTOptions($props.column, 'rowEditorEditButton')), [
829
+ (openBlock(), createBlock(resolveDynamicComponent(($props.column.children && $props.column.children.roweditorsaveicon) || 'CheckIcon'), mergeProps({ class: "p-row-editor-save-icon" }, $options.getColumnPTOptions($props.column, 'rowEditorEditIcon')), null, 16))
830
+ ], 16, _hoisted_3$2)), [
779
831
  [_directive_ripple]
780
832
  ])
781
833
  : createCommentVNode("", true),
782
834
  ($data.d_editing)
783
- ? withDirectives((openBlock(), createElementBlock("button", {
835
+ ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
784
836
  key: 2,
785
837
  class: "p-row-editor-cancel p-link",
786
838
  type: "button",
787
839
  "aria-label": $options.cancelButtonAriaLabel,
788
840
  onClick: _cache[5] || (_cache[5] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args)))
789
- }, [
790
- (openBlock(), createBlock(resolveDynamicComponent(($props.column.children && $props.column.children.roweditorcancelicon) || 'TimesIcon'), { class: "p-row-editor-cancel-icon" }))
791
- ], 8, _hoisted_5$4)), [
841
+ }, $options.getColumnPTOptions($props.column, 'rowEditorCancelButton')), [
842
+ (openBlock(), createBlock(resolveDynamicComponent(($props.column.children && $props.column.children.roweditorcancelicon) || 'TimesIcon'), mergeProps({ class: "p-row-editor-cancel-icon" }, $options.getColumnPTOptions($props.column, 'rowEditorCancelIcon')), null, 16))
843
+ ], 16, _hoisted_4$1)), [
792
844
  [_directive_ripple]
793
845
  ])
794
846
  : createCommentVNode("", true)
@@ -796,13 +848,14 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
796
848
  : (openBlock(), createElementBlock(Fragment, { key: 8 }, [
797
849
  createTextVNode(toDisplayString($options.resolveFieldData()), 1)
798
850
  ], 64))
799
- ], 38))
851
+ ], 16))
800
852
  }
801
853
 
802
854
  script$8.render = render$8;
803
855
 
804
856
  var script$7 = {
805
857
  name: 'TableBody',
858
+ extends: BaseComponent,
806
859
  emits: [
807
860
  'rowgroup-toggle',
808
861
  'row-click',
@@ -982,6 +1035,18 @@ var script$7 = {
982
1035
  columnProp(col, prop) {
983
1036
  return ObjectUtils.getVNodeProp(col, prop);
984
1037
  },
1038
+ getColumnPTOptions(column, key) {
1039
+ return this.ptmo(this.getColumnProp(column), key, {
1040
+ props: column.props,
1041
+ parent: {
1042
+ props: this.$props,
1043
+ state: this.$data
1044
+ }
1045
+ });
1046
+ },
1047
+ getColumnProp(column) {
1048
+ return column.props && column.props.pt ? column.props.pt : undefined; //@todo
1049
+ },
985
1050
  shouldRenderRowGroupHeader(value, rowData, i) {
986
1051
  let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
987
1052
  let prevRowData = value[i - 1];
@@ -1298,50 +1363,45 @@ var script$7 = {
1298
1363
  }
1299
1364
  };
1300
1365
 
1301
- const _hoisted_1$7 = ["colspan"];
1302
- const _hoisted_2$6 = ["onClick"];
1303
- const _hoisted_3$4 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover"];
1304
- const _hoisted_4$3 = ["id"];
1305
- const _hoisted_5$3 = ["colspan"];
1306
- const _hoisted_6$2 = ["colspan"];
1307
- const _hoisted_7$1 = {
1308
- key: 1,
1309
- class: "p-datatable-emptymessage",
1310
- role: "row"
1311
- };
1312
- const _hoisted_8$1 = ["colspan"];
1366
+ const _hoisted_1$4 = ["colspan"];
1367
+ const _hoisted_2$1 = ["onClick"];
1368
+ const _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover"];
1369
+ const _hoisted_4 = ["id"];
1370
+ const _hoisted_5 = ["colspan"];
1371
+ const _hoisted_6 = ["colspan"];
1372
+ const _hoisted_7 = ["colspan"];
1313
1373
 
1314
1374
  function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1315
1375
  const _component_ChevronDownIcon = resolveComponent("ChevronDownIcon");
1316
1376
  const _component_ChevronRightIcon = resolveComponent("ChevronRightIcon");
1317
1377
  const _component_DTBodyCell = resolveComponent("DTBodyCell");
1318
1378
 
1319
- return (openBlock(), createElementBlock("tbody", {
1379
+ return (openBlock(), createElementBlock("tbody", mergeProps({
1320
1380
  ref: $options.bodyRef,
1321
1381
  class: "p-datatable-tbody",
1322
1382
  role: "rowgroup",
1323
- style: normalizeStyle($options.bodyStyle)
1324
- }, [
1383
+ style: $options.bodyStyle
1384
+ }, _ctx.ptm('tbody')), [
1325
1385
  (!$props.empty)
1326
1386
  ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($props.value, (rowData, index) => {
1327
1387
  return (openBlock(), createElementBlock(Fragment, null, [
1328
1388
  ($props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)))
1329
- ? (openBlock(), createElementBlock("tr", {
1389
+ ? (openBlock(), createElementBlock("tr", mergeProps({
1330
1390
  key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader',
1331
1391
  class: "p-rowgroup-header",
1332
- style: normalizeStyle($options.rowGroupHeaderStyle),
1392
+ style: $options.rowGroupHeaderStyle,
1333
1393
  role: "row"
1334
- }, [
1335
- createElementVNode("td", {
1394
+ }, _ctx.ptm('rowgroupHeader')), [
1395
+ createElementVNode("td", mergeProps({
1336
1396
  colspan: $options.columnsLength - 1
1337
- }, [
1397
+ }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('bodyCell') }), [
1338
1398
  ($props.expandableRowGroups)
1339
- ? (openBlock(), createElementBlock("button", {
1399
+ ? (openBlock(), createElementBlock("button", mergeProps({
1340
1400
  key: 0,
1341
1401
  class: "p-row-toggler p-link",
1342
1402
  onClick: $event => ($options.onRowGroupToggle($event, rowData)),
1343
1403
  type: "button"
1344
- }, [
1404
+ }, $options.getColumnPTOptions('rowGroupToggler')), [
1345
1405
  ($props.templates['rowgrouptogglericon'])
1346
1406
  ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1347
1407
  key: 0,
@@ -1354,36 +1414,36 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1354
1414
  class: normalizeClass(['p-row-toggler-icon', $props.expandedRowIcon])
1355
1415
  }, null, 2))
1356
1416
  : ($options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon)
1357
- ? (openBlock(), createBlock(_component_ChevronDownIcon, {
1417
+ ? (openBlock(), createBlock(_component_ChevronDownIcon, mergeProps({
1358
1418
  key: 1,
1359
1419
  class: "p-row-toggler-icon"
1360
- }))
1420
+ }, $options.getColumnPTOptions('rowGroupTogglerIcon')), null, 16))
1361
1421
  : (!$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon)
1362
1422
  ? (openBlock(), createElementBlock("span", {
1363
1423
  key: 2,
1364
1424
  class: normalizeClass(['p-row-toggler-icon', $props.collapsedRowIcon])
1365
1425
  }, null, 2))
1366
1426
  : (!$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon)
1367
- ? (openBlock(), createBlock(_component_ChevronRightIcon, {
1427
+ ? (openBlock(), createBlock(_component_ChevronRightIcon, mergeProps({
1368
1428
  key: 3,
1369
1429
  class: "p-row-toggler-icon"
1370
- }))
1430
+ }, $options.getColumnPTOptions('rowGroupTogglerIcon')), null, 16))
1371
1431
  : createCommentVNode("", true)
1372
1432
  ], 64))
1373
- ], 8, _hoisted_2$6))
1433
+ ], 16, _hoisted_2$1))
1374
1434
  : createCommentVNode("", true),
1375
1435
  (openBlock(), createBlock(resolveDynamicComponent($props.templates['groupheader']), {
1376
1436
  data: rowData,
1377
1437
  index: $options.getRowIndex(index)
1378
1438
  }, null, 8, ["data", "index"]))
1379
- ], 8, _hoisted_1$7)
1380
- ], 4))
1439
+ ], 16, _hoisted_1$4)
1440
+ ], 16))
1381
1441
  : createCommentVNode("", true),
1382
1442
  ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true)
1383
- ? (openBlock(), createElementBlock("tr", {
1443
+ ? (openBlock(), createElementBlock("tr", mergeProps({
1384
1444
  key: $options.getRowKey(rowData, $options.getRowIndex(index)),
1385
- class: normalizeClass($options.getRowClass(rowData)),
1386
- style: normalizeStyle($options.getRowStyle(rowData)),
1445
+ class: $options.getRowClass(rowData),
1446
+ style: $options.getRowStyle(rowData),
1387
1447
  tabindex: $options.setRowTabindex(index),
1388
1448
  role: "row",
1389
1449
  "aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
@@ -1398,7 +1458,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1398
1458
  onDragleave: _cache[11] || (_cache[11] = $event => ($options.onRowDragLeave($event))),
1399
1459
  onDragend: _cache[12] || (_cache[12] = $event => ($options.onRowDragEnd($event))),
1400
1460
  onDrop: _cache[13] || (_cache[13] = $event => ($options.onRowDrop($event)))
1401
- }, [
1461
+ }, _ctx.ptm('row')), [
1402
1462
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
1403
1463
  return (openBlock(), createElementBlock(Fragment, null, [
1404
1464
  ($options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)))
@@ -1430,60 +1490,66 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1430
1490
  onRowEditInit: _cache[6] || (_cache[6] = $event => ($options.onRowEditInit($event))),
1431
1491
  onRowEditSave: _cache[7] || (_cache[7] = $event => ($options.onRowEditSave($event))),
1432
1492
  onRowEditCancel: _cache[8] || (_cache[8] = $event => ($options.onRowEditCancel($event))),
1433
- onEditingMetaChange: $options.onEditingMetaChange
1434
- }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onEditingMetaChange"]))
1493
+ onEditingMetaChange: $options.onEditingMetaChange,
1494
+ pt: _ctx.pt
1495
+ }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onEditingMetaChange", "pt"]))
1435
1496
  : createCommentVNode("", true)
1436
1497
  ], 64))
1437
1498
  }), 256))
1438
- ], 46, _hoisted_3$4))
1499
+ ], 16, _hoisted_3$1))
1439
1500
  : createCommentVNode("", true),
1440
1501
  ($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
1441
- ? (openBlock(), createElementBlock("tr", {
1502
+ ? (openBlock(), createElementBlock("tr", mergeProps({
1442
1503
  key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
1443
1504
  id: $options.expandedRowId + '_' + index + '_expansion',
1444
1505
  class: "p-datatable-row-expansion",
1445
1506
  role: "row"
1446
- }, [
1447
- createElementVNode("td", { colspan: $options.columnsLength }, [
1507
+ }, _ctx.ptm('rowExpansion')), [
1508
+ createElementVNode("td", mergeProps({ colspan: $options.columnsLength }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('bodyCell') }), [
1448
1509
  (openBlock(), createBlock(resolveDynamicComponent($props.templates['expansion']), {
1449
1510
  data: rowData,
1450
1511
  index: $options.getRowIndex(index)
1451
1512
  }, null, 8, ["data", "index"]))
1452
- ], 8, _hoisted_5$3)
1453
- ], 8, _hoisted_4$3))
1513
+ ], 16, _hoisted_5)
1514
+ ], 16, _hoisted_4))
1454
1515
  : createCommentVNode("", true),
1455
1516
  ($props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)))
1456
- ? (openBlock(), createElementBlock("tr", {
1517
+ ? (openBlock(), createElementBlock("tr", mergeProps({
1457
1518
  key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
1458
1519
  class: "p-rowgroup-footer",
1459
1520
  role: "row"
1460
- }, [
1461
- createElementVNode("td", {
1521
+ }, _ctx.ptm('rowgroupFooter')), [
1522
+ createElementVNode("td", mergeProps({
1462
1523
  colspan: $options.columnsLength - 1
1463
- }, [
1524
+ }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('bodyCell') }), [
1464
1525
  (openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
1465
1526
  data: rowData,
1466
1527
  index: $options.getRowIndex(index)
1467
1528
  }, null, 8, ["data", "index"]))
1468
- ], 8, _hoisted_6$2)
1469
- ]))
1529
+ ], 16, _hoisted_6)
1530
+ ], 16))
1470
1531
  : createCommentVNode("", true)
1471
1532
  ], 64))
1472
1533
  }), 256))
1473
- : (openBlock(), createElementBlock("tr", _hoisted_7$1, [
1474
- createElementVNode("td", { colspan: $options.columnsLength }, [
1534
+ : (openBlock(), createElementBlock("tr", mergeProps({
1535
+ key: 1,
1536
+ class: "p-datatable-emptymessage",
1537
+ role: "row"
1538
+ }, _ctx.ptm('emptyMessage')), [
1539
+ createElementVNode("td", mergeProps({ colspan: $options.columnsLength }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('bodyCell') }), [
1475
1540
  ($props.templates.empty)
1476
1541
  ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.empty), { key: 0 }))
1477
1542
  : createCommentVNode("", true)
1478
- ], 8, _hoisted_8$1)
1479
- ]))
1480
- ], 4))
1543
+ ], 16, _hoisted_7)
1544
+ ], 16))
1545
+ ], 16))
1481
1546
  }
1482
1547
 
1483
1548
  script$7.render = render$7;
1484
1549
 
1485
1550
  var script$6 = {
1486
1551
  name: 'FooterCell',
1552
+ extends: BaseComponent,
1487
1553
  props: {
1488
1554
  column: {
1489
1555
  type: Object,
@@ -1509,6 +1575,18 @@ var script$6 = {
1509
1575
  columnProp(prop) {
1510
1576
  return ObjectUtils.getVNodeProp(this.column, prop);
1511
1577
  },
1578
+ getColumnPTOptions(key) {
1579
+ return this.ptmo(this.getColumnProp(), key, {
1580
+ props: this.column.props,
1581
+ parent: {
1582
+ props: this.$props,
1583
+ state: this.$data
1584
+ }
1585
+ });
1586
+ },
1587
+ getColumnProp() {
1588
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
1589
+ },
1512
1590
  updateStickyPosition() {
1513
1591
  if (this.columnProp('frozen')) {
1514
1592
  let align = this.columnProp('alignFrozen');
@@ -1554,16 +1632,16 @@ var script$6 = {
1554
1632
  }
1555
1633
  };
1556
1634
 
1557
- const _hoisted_1$6 = ["colspan", "rowspan"];
1635
+ const _hoisted_1$3 = ["colspan", "rowspan"];
1558
1636
 
1559
1637
  function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1560
- return (openBlock(), createElementBlock("td", {
1561
- style: normalizeStyle($options.containerStyle),
1562
- class: normalizeClass($options.containerClass),
1638
+ return (openBlock(), createElementBlock("td", mergeProps({
1639
+ style: $options.containerStyle,
1640
+ class: $options.containerClass,
1563
1641
  role: "cell",
1564
1642
  colspan: $options.columnProp('colspan'),
1565
1643
  rowspan: $options.columnProp('rowspan')
1566
- }, [
1644
+ }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('footerCell') }), [
1567
1645
  ($props.column.children && $props.column.children.footer)
1568
1646
  ? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.footer), {
1569
1647
  key: 0,
@@ -1571,13 +1649,14 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
1571
1649
  }, null, 8, ["column"]))
1572
1650
  : createCommentVNode("", true),
1573
1651
  createTextVNode(" " + toDisplayString($options.columnProp('footer')), 1)
1574
- ], 14, _hoisted_1$6))
1652
+ ], 16, _hoisted_1$3))
1575
1653
  }
1576
1654
 
1577
1655
  script$6.render = render$6;
1578
1656
 
1579
1657
  var script$5 = {
1580
1658
  name: 'TableFooter',
1659
+ extends: BaseComponent,
1581
1660
  props: {
1582
1661
  columnGroup: {
1583
1662
  type: null,
@@ -1592,6 +1671,30 @@ var script$5 = {
1592
1671
  columnProp(col, prop) {
1593
1672
  return ObjectUtils.getVNodeProp(col, prop);
1594
1673
  },
1674
+ getColumnGroupPTOptions(key) {
1675
+ return this.ptmo(this.getColumnGroupProps(), key, {
1676
+ props: this.getColumnGroupProps(),
1677
+ parent: {
1678
+ props: this.$props,
1679
+ state: this.$data
1680
+ }
1681
+ });
1682
+ },
1683
+ getColumnGroupProps() {
1684
+ return this.columnGroup && this.columnGroup.props && this.columnGroup.props.pt ? this.columnGroup.props.pt : undefined; //@todo
1685
+ },
1686
+ getRowPTOptions(row, key) {
1687
+ return this.ptmo(this.getRowProp(row), key, {
1688
+ props: row.props,
1689
+ parent: {
1690
+ props: this.$props,
1691
+ state: this.$data
1692
+ }
1693
+ });
1694
+ },
1695
+ getRowProp(row) {
1696
+ return row.props && row.props.pt ? row.props.pt : undefined; //@todo
1697
+ },
1595
1698
  getFooterRows() {
1596
1699
  let rows = [];
1597
1700
 
@@ -1645,23 +1748,20 @@ var script$5 = {
1645
1748
  }
1646
1749
  };
1647
1750
 
1648
- const _hoisted_1$5 = {
1649
- key: 0,
1650
- class: "p-datatable-tfoot",
1651
- role: "rowgroup"
1652
- };
1653
- const _hoisted_2$5 = {
1654
- key: 0,
1655
- role: "row"
1656
- };
1657
-
1658
1751
  function render$5(_ctx, _cache, $props, $setup, $data, $options) {
1659
1752
  const _component_DTFooterCell = resolveComponent("DTFooterCell");
1660
1753
 
1661
1754
  return ($options.hasFooter)
1662
- ? (openBlock(), createElementBlock("tfoot", _hoisted_1$5, [
1755
+ ? (openBlock(), createElementBlock("tfoot", mergeProps({
1756
+ key: 0,
1757
+ class: "p-datatable-tfoot",
1758
+ role: "rowgroup"
1759
+ }, { ..._ctx.ptm('tfoot'), ...$options.getColumnGroupPTOptions('root') }), [
1663
1760
  (!$props.columnGroup)
1664
- ? (openBlock(), createElementBlock("tr", _hoisted_2$5, [
1761
+ ? (openBlock(), createElementBlock("tr", mergeProps({
1762
+ key: 0,
1763
+ role: "row"
1764
+ }, _ctx.ptm('footerRow')), [
1665
1765
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
1666
1766
  return (openBlock(), createElementBlock(Fragment, {
1667
1767
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
@@ -1669,17 +1769,18 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
1669
1769
  (!$options.columnProp(col, 'hidden'))
1670
1770
  ? (openBlock(), createBlock(_component_DTFooterCell, {
1671
1771
  key: 0,
1672
- column: col
1673
- }, null, 8, ["column"]))
1772
+ column: col,
1773
+ pt: _ctx.pt
1774
+ }, null, 8, ["column", "pt"]))
1674
1775
  : createCommentVNode("", true)
1675
1776
  ], 64))
1676
1777
  }), 128))
1677
- ]))
1778
+ ], 16))
1678
1779
  : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList($options.getFooterRows(), (row, i) => {
1679
- return (openBlock(), createElementBlock("tr", {
1780
+ return (openBlock(), createElementBlock("tr", mergeProps({
1680
1781
  key: i,
1681
1782
  role: "row"
1682
- }, [
1783
+ }, $options.getRowPTOptions(row, 'root')), [
1683
1784
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.getFooterColumns(row), (col, j) => {
1684
1785
  return (openBlock(), createElementBlock(Fragment, {
1685
1786
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || j
@@ -1687,14 +1788,15 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
1687
1788
  (!$options.columnProp(col, 'hidden'))
1688
1789
  ? (openBlock(), createBlock(_component_DTFooterCell, {
1689
1790
  key: 0,
1690
- column: col
1691
- }, null, 8, ["column"]))
1791
+ column: col,
1792
+ pt: _ctx.pt
1793
+ }, null, 8, ["column", "pt"]))
1692
1794
  : createCommentVNode("", true)
1693
1795
  ], 64))
1694
1796
  }), 128))
1695
- ]))
1797
+ ], 16))
1696
1798
  }), 128))
1697
- ]))
1799
+ ], 16))
1698
1800
  : createCommentVNode("", true)
1699
1801
  }
1700
1802
 
@@ -1702,6 +1804,7 @@ script$5.render = render$5;
1702
1804
 
1703
1805
  var script$4 = {
1704
1806
  name: 'ColumnFilter',
1807
+ extends: BaseComponent,
1705
1808
  emits: ['filter-change', 'filter-apply', 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
1706
1809
  props: {
1707
1810
  field: {
@@ -1807,7 +1910,8 @@ var script$4 = {
1807
1910
  filterInputProps: {
1808
1911
  type: null,
1809
1912
  default: null
1810
- }
1913
+ },
1914
+ column: null
1811
1915
  },
1812
1916
  data() {
1813
1917
  return {
@@ -1843,6 +1947,18 @@ var script$4 = {
1843
1947
  }
1844
1948
  },
1845
1949
  methods: {
1950
+ getColumnPTOptions(key) {
1951
+ return this.ptmo(this.getColumnProp(), key, {
1952
+ props: this.column.props,
1953
+ parent: {
1954
+ props: this.$props,
1955
+ state: this.$data
1956
+ }
1957
+ });
1958
+ },
1959
+ getColumnProp() {
1960
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
1961
+ },
1846
1962
  clearFilter() {
1847
1963
  let _filters = { ...this.filters };
1848
1964
 
@@ -2215,24 +2331,9 @@ var script$4 = {
2215
2331
  }
2216
2332
  };
2217
2333
 
2218
- const _hoisted_1$4 = ["aria-label", "aria-expanded", "aria-controls"];
2219
- const _hoisted_2$4 = ["id", "aria-modal"];
2220
- const _hoisted_3$3 = {
2221
- key: 0,
2222
- class: "p-column-filter-row-items"
2223
- };
2224
- const _hoisted_4$2 = ["onClick", "onKeydown", "tabindex"];
2225
- const _hoisted_5$2 = /*#__PURE__*/createElementVNode("li", { class: "p-column-filter-separator" }, null, -1);
2226
- const _hoisted_6$1 = {
2227
- key: 0,
2228
- class: "p-column-filter-operator"
2229
- };
2230
- const _hoisted_7 = { class: "p-column-filter-constraints" };
2231
- const _hoisted_8 = {
2232
- key: 1,
2233
- class: "p-column-filter-add-rule"
2234
- };
2235
- const _hoisted_9 = { class: "p-column-filter-buttonbar" };
2334
+ const _hoisted_1$2 = ["aria-label", "aria-expanded", "aria-controls"];
2335
+ const _hoisted_2 = ["id", "aria-modal"];
2336
+ const _hoisted_3 = ["onClick", "onKeydown", "tabindex"];
2236
2337
 
2237
2338
  function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2238
2339
  const _component_CFDropdown = resolveComponent("CFDropdown");
@@ -2240,14 +2341,12 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2240
2341
  const _component_Portal = resolveComponent("Portal");
2241
2342
  const _directive_focustrap = resolveDirective("focustrap");
2242
2343
 
2243
- return (openBlock(), createElementBlock("div", {
2244
- class: normalizeClass($options.containerClass)
2245
- }, [
2344
+ return (openBlock(), createElementBlock("div", mergeProps({ class: $options.containerClass }, $options.getColumnPTOptions('columnFilter')), [
2246
2345
  ($props.display === 'row')
2247
2346
  ? (openBlock(), createElementBlock("div", mergeProps({
2248
2347
  key: 0,
2249
2348
  class: "p-fluid p-column-filter-element"
2250
- }, $props.filterInputProps), [
2349
+ }, { ...$props.filterInputProps, ...$options.getColumnPTOptions('filterInput') }), [
2251
2350
  (openBlock(), createBlock(resolveDynamicComponent($props.filterElement), {
2252
2351
  field: $props.field,
2253
2352
  filterModel: $props.filters[$props.field],
@@ -2256,30 +2355,30 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2256
2355
  ], 16))
2257
2356
  : createCommentVNode("", true),
2258
2357
  ($options.showMenuButton)
2259
- ? (openBlock(), createElementBlock("button", {
2358
+ ? (openBlock(), createElementBlock("button", mergeProps({
2260
2359
  key: 1,
2261
2360
  ref: "icon",
2262
2361
  type: "button",
2263
- class: normalizeClass(["p-column-filter-menu-button p-link", { 'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter() }]),
2362
+ class: ["p-column-filter-menu-button p-link", { 'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter() }],
2264
2363
  "aria-label": $options.filterMenuButtonAriaLabel,
2265
2364
  "aria-haspopup": "true",
2266
2365
  "aria-expanded": $data.overlayVisible,
2267
2366
  "aria-controls": $options.overlayId,
2268
2367
  onClick: _cache[0] || (_cache[0] = $event => ($options.toggleMenu())),
2269
2368
  onKeydown: _cache[1] || (_cache[1] = $event => ($options.onToggleButtonKeyDown($event)))
2270
- }, [
2369
+ }, $options.getColumnPTOptions('filterMenuButton')), [
2271
2370
  (openBlock(), createBlock(resolveDynamicComponent($props.filterIconTemplate || 'FilterIcon')))
2272
- ], 42, _hoisted_1$4))
2371
+ ], 16, _hoisted_1$2))
2273
2372
  : createCommentVNode("", true),
2274
2373
  ($props.showClearButton && $props.display === 'row')
2275
- ? (openBlock(), createElementBlock("button", {
2374
+ ? (openBlock(), createElementBlock("button", mergeProps({
2276
2375
  key: 2,
2277
- class: normalizeClass([{ 'p-hidden-space': !$options.hasRowFilter() }, "p-column-filter-clear-button p-link"]),
2376
+ class: [{ 'p-hidden-space': !$options.hasRowFilter() }, "p-column-filter-clear-button p-link"],
2278
2377
  type: "button",
2279
2378
  onClick: _cache[2] || (_cache[2] = $event => ($options.clearFilter()))
2280
- }, [
2281
- (openBlock(), createBlock(resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon')))
2282
- ], 2))
2379
+ }, $options.getColumnPTOptions('headerFilterClearButton')), [
2380
+ (openBlock(), createBlock(resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), normalizeProps(guardReactiveProps($options.getColumnPTOptions('filterClearIcon'))), null, 16))
2381
+ ], 16))
2283
2382
  : createCommentVNode("", true),
2284
2383
  createVNode(_component_Portal, null, {
2285
2384
  default: withCtx(() => [
@@ -2291,49 +2390,55 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2291
2390
  }, {
2292
2391
  default: withCtx(() => [
2293
2392
  ($data.overlayVisible)
2294
- ? withDirectives((openBlock(), createElementBlock("div", {
2393
+ ? withDirectives((openBlock(), createElementBlock("div", mergeProps({
2295
2394
  key: 0,
2296
2395
  ref: $options.overlayRef,
2297
2396
  id: $options.overlayId,
2298
2397
  "aria-modal": $data.overlayVisible,
2299
2398
  role: "dialog",
2300
- class: normalizeClass($options.overlayClass),
2399
+ class: $options.overlayClass,
2301
2400
  onKeydown: _cache[10] || (_cache[10] = withKeys((...args) => ($options.hide && $options.hide(...args)), ["escape"])),
2302
2401
  onClick: _cache[11] || (_cache[11] = (...args) => ($options.onContentClick && $options.onContentClick(...args))),
2303
2402
  onMousedown: _cache[12] || (_cache[12] = (...args) => ($options.onContentMouseDown && $options.onContentMouseDown(...args)))
2304
- }, [
2403
+ }, $options.getColumnPTOptions('filterOverlay')), [
2305
2404
  (openBlock(), createBlock(resolveDynamicComponent($props.filterHeaderTemplate), {
2306
2405
  field: $props.field,
2307
2406
  filterModel: $props.filters[$props.field],
2308
2407
  filterCallback: $options.filterCallback
2309
2408
  }, null, 8, ["field", "filterModel", "filterCallback"])),
2310
2409
  ($props.display === 'row')
2311
- ? (openBlock(), createElementBlock("ul", _hoisted_3$3, [
2410
+ ? (openBlock(), createElementBlock("ul", mergeProps({
2411
+ key: 0,
2412
+ class: "p-column-filter-row-items"
2413
+ }, $options.getColumnPTOptions('filterRowItems')), [
2312
2414
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.matchModes, (matchMode, i) => {
2313
- return (openBlock(), createElementBlock("li", {
2415
+ return (openBlock(), createElementBlock("li", mergeProps({
2314
2416
  key: matchMode.label,
2315
- class: normalizeClass(["p-column-filter-row-item", { 'p-highlight': $options.isRowMatchModeSelected(matchMode.value) }]),
2417
+ class: ["p-column-filter-row-item", { 'p-highlight': $options.isRowMatchModeSelected(matchMode.value) }],
2316
2418
  onClick: $event => ($options.onRowMatchModeChange(matchMode.value)),
2317
2419
  onKeydown: [
2318
2420
  _cache[3] || (_cache[3] = $event => ($options.onRowMatchModeKeyDown($event))),
2319
2421
  withKeys(withModifiers($event => ($options.onRowMatchModeChange(matchMode.value)), ["prevent"]), ["enter"])
2320
2422
  ],
2321
2423
  tabindex: i === 0 ? '0' : null
2322
- }, toDisplayString(matchMode.label), 43, _hoisted_4$2))
2424
+ }, $options.getColumnPTOptions('filterRowItem')), toDisplayString(matchMode.label), 17, _hoisted_3))
2323
2425
  }), 128)),
2324
- _hoisted_5$2,
2325
- createElementVNode("li", {
2426
+ createElementVNode("li", mergeProps({ class: "p-column-filter-separator" }, $options.getColumnPTOptions('filterInput')), null, 16),
2427
+ createElementVNode("li", mergeProps({
2326
2428
  class: "p-column-filter-row-item",
2327
2429
  onClick: _cache[4] || (_cache[4] = $event => ($options.clearFilter())),
2328
2430
  onKeydown: [
2329
2431
  _cache[5] || (_cache[5] = $event => ($options.onRowMatchModeKeyDown($event))),
2330
2432
  _cache[6] || (_cache[6] = withKeys($event => (_ctx.onRowClearItemClick()), ["enter"]))
2331
2433
  ]
2332
- }, toDisplayString($options.noFilterLabel), 33)
2333
- ]))
2434
+ }, $options.getColumnPTOptions('filterRowItem')), toDisplayString($options.noFilterLabel), 17)
2435
+ ], 16))
2334
2436
  : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2335
2437
  ($options.isShowOperator)
2336
- ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
2438
+ ? (openBlock(), createElementBlock("div", mergeProps({
2439
+ key: 0,
2440
+ class: "p-column-filter-operator"
2441
+ }, $options.getColumnPTOptions('filterOperator')), [
2337
2442
  createVNode(_component_CFDropdown, {
2338
2443
  options: $options.operatorOptions,
2339
2444
  modelValue: $options.operator,
@@ -2341,16 +2446,17 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2341
2446
  class: "p-column-filter-operator-dropdown",
2342
2447
  optionLabel: "label",
2343
2448
  optionValue: "value",
2344
- "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ($options.onOperatorChange($event)))
2345
- }, null, 8, ["options", "modelValue", "aria-label"])
2346
- ]))
2449
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ($options.onOperatorChange($event))),
2450
+ pt: $options.getColumnPTOptions('filterOperatorDropdown')
2451
+ }, null, 8, ["options", "modelValue", "aria-label", "pt"])
2452
+ ], 16))
2347
2453
  : createCommentVNode("", true),
2348
- createElementVNode("div", _hoisted_7, [
2454
+ createElementVNode("div", mergeProps({ class: "p-column-filter-constraints" }, $options.getColumnPTOptions('filterConstraints')), [
2349
2455
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.fieldConstraints, (fieldConstraint, i) => {
2350
- return (openBlock(), createElementBlock("div", {
2456
+ return (openBlock(), createElementBlock("div", mergeProps({
2351
2457
  key: i,
2352
2458
  class: "p-column-filter-constraint"
2353
- }, [
2459
+ }, $options.getColumnPTOptions('filterConstraint')), [
2354
2460
  ($options.isShowMatchModes)
2355
2461
  ? (openBlock(), createBlock(_component_CFDropdown, {
2356
2462
  key: 0,
@@ -2360,8 +2466,9 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2360
2466
  optionLabel: "label",
2361
2467
  optionValue: "value",
2362
2468
  "aria-label": $options.filterConstraintAriaLabel,
2363
- "onUpdate:modelValue": $event => ($options.onMenuMatchModeChange($event, i))
2364
- }, null, 8, ["options", "modelValue", "aria-label", "onUpdate:modelValue"]))
2469
+ "onUpdate:modelValue": $event => ($options.onMenuMatchModeChange($event, i)),
2470
+ pt: $options.getColumnPTOptions('filterMatchModeDropdown')
2471
+ }, null, 8, ["options", "modelValue", "aria-label", "onUpdate:modelValue", "pt"]))
2365
2472
  : createCommentVNode("", true),
2366
2473
  ($props.display === 'menu')
2367
2474
  ? (openBlock(), createBlock(resolveDynamicComponent($props.filterElement), {
@@ -2371,54 +2478,60 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2371
2478
  filterCallback: $options.filterCallback
2372
2479
  }, null, 8, ["field", "filterModel", "filterCallback"]))
2373
2480
  : createCommentVNode("", true),
2374
- createElementVNode("div", null, [
2481
+ createElementVNode("div", normalizeProps(guardReactiveProps($options.getColumnPTOptions('filterRemove'))), [
2375
2482
  ($options.showRemoveIcon)
2376
2483
  ? (openBlock(), createBlock(_component_CFButton, {
2377
2484
  key: 0,
2378
2485
  type: "button",
2379
2486
  class: "p-column-filter-remove-button p-button-text p-button-danger p-button-sm",
2380
2487
  onClick: $event => ($options.removeConstraint(i)),
2381
- label: $options.removeRuleButtonLabel
2488
+ label: $options.removeRuleButtonLabel,
2489
+ pt: $options.getColumnPTOptions('filterRemoveButton')
2382
2490
  }, {
2383
2491
  icon: withCtx((iconProps) => [
2384
- (openBlock(), createBlock(resolveDynamicComponent($props.filterRemoveIconTemplate || 'TrashIcon'), {
2385
- class: normalizeClass(iconProps.class)
2386
- }, null, 8, ["class"]))
2492
+ (openBlock(), createBlock(resolveDynamicComponent($props.filterRemoveIconTemplate || 'TrashIcon'), mergeProps({
2493
+ class: iconProps.class
2494
+ }, $options.getColumnPTOptions('filterRemoveButton')['icon']), null, 16, ["class"]))
2387
2495
  ]),
2388
2496
  _: 2
2389
- }, 1032, ["onClick", "label"]))
2497
+ }, 1032, ["onClick", "label", "pt"]))
2390
2498
  : createCommentVNode("", true)
2391
- ])
2392
- ]))
2499
+ ], 16)
2500
+ ], 16))
2393
2501
  }), 128))
2394
- ]),
2502
+ ], 16),
2395
2503
  ($options.isShowAddConstraint)
2396
- ? (openBlock(), createElementBlock("div", _hoisted_8, [
2504
+ ? (openBlock(), createElementBlock("div", mergeProps({
2505
+ key: 1,
2506
+ class: "p-column-filter-add-rule"
2507
+ }, $options.getColumnPTOptions('filterAddRule')), [
2397
2508
  createVNode(_component_CFButton, {
2398
2509
  type: "button",
2399
2510
  label: $options.addRuleButtonLabel,
2400
2511
  iconPos: "left",
2401
2512
  class: "p-column-filter-add-button p-button-text p-button-sm",
2402
- onClick: _cache[8] || (_cache[8] = $event => ($options.addConstraint()))
2513
+ onClick: _cache[8] || (_cache[8] = $event => ($options.addConstraint())),
2514
+ pt: $options.getColumnPTOptions('filterAddRuleButton')
2403
2515
  }, {
2404
2516
  icon: withCtx((iconProps) => [
2405
- (openBlock(), createBlock(resolveDynamicComponent($props.filterAddIconTemplate || 'PlusIcon'), {
2406
- class: normalizeClass(iconProps.class)
2407
- }, null, 8, ["class"]))
2517
+ (openBlock(), createBlock(resolveDynamicComponent($props.filterAddIconTemplate || 'PlusIcon'), mergeProps({
2518
+ class: iconProps.class
2519
+ }, $options.getColumnPTOptions('filterAddRuleButton')['icon']), null, 16, ["class"]))
2408
2520
  ]),
2409
2521
  _: 1
2410
- }, 8, ["label"])
2411
- ]))
2522
+ }, 8, ["label", "pt"])
2523
+ ], 16))
2412
2524
  : createCommentVNode("", true),
2413
- createElementVNode("div", _hoisted_9, [
2525
+ createElementVNode("div", mergeProps({ class: "p-column-filter-buttonbar" }, $options.getColumnPTOptions('filterButtonbar')), [
2414
2526
  (!$props.filterClearTemplate && $props.showClearButton)
2415
2527
  ? (openBlock(), createBlock(_component_CFButton, {
2416
2528
  key: 0,
2417
2529
  type: "button",
2418
2530
  class: "p-button-outlined p-button-sm",
2419
2531
  label: $options.clearButtonLabel,
2420
- onClick: $options.clearFilter
2421
- }, null, 8, ["label", "onClick"]))
2532
+ onClick: $options.clearFilter,
2533
+ pt: $options.getColumnPTOptions('filterClearButton')
2534
+ }, null, 8, ["label", "onClick", "pt"]))
2422
2535
  : (openBlock(), createBlock(resolveDynamicComponent($props.filterClearTemplate), {
2423
2536
  key: 1,
2424
2537
  field: $props.field,
@@ -2428,13 +2541,13 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2428
2541
  ($props.showApplyButton)
2429
2542
  ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
2430
2543
  (!$props.filterApplyTemplate)
2431
- ? (openBlock(), createBlock(_component_CFButton, {
2544
+ ? (openBlock(), createBlock(_component_CFButton, mergeProps({
2432
2545
  key: 0,
2433
2546
  type: "button",
2434
2547
  class: "p-button-sm",
2435
2548
  label: $options.applyButtonLabel,
2436
2549
  onClick: _cache[9] || (_cache[9] = $event => ($options.applyFilter()))
2437
- }, null, 8, ["label"]))
2550
+ }, $options.getColumnPTOptions('filterApplyButton')), null, 16, ["label"]))
2438
2551
  : (openBlock(), createBlock(resolveDynamicComponent($props.filterApplyTemplate), {
2439
2552
  key: 1,
2440
2553
  field: $props.field,
@@ -2443,14 +2556,14 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2443
2556
  }, null, 8, ["field", "filterModel", "filterCallback"]))
2444
2557
  ], 64))
2445
2558
  : createCommentVNode("", true)
2446
- ])
2559
+ ], 16)
2447
2560
  ], 64)),
2448
2561
  (openBlock(), createBlock(resolveDynamicComponent($props.filterFooterTemplate), {
2449
2562
  field: $props.field,
2450
2563
  filterModel: $props.filters[$props.field],
2451
2564
  filterCallback: $options.filterCallback
2452
2565
  }, null, 8, ["field", "filterModel", "filterCallback"]))
2453
- ], 42, _hoisted_2$4)), [
2566
+ ], 16, _hoisted_2)), [
2454
2567
  [_directive_focustrap, { autoFocus: true }]
2455
2568
  ])
2456
2569
  : createCommentVNode("", true)
@@ -2460,17 +2573,19 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2460
2573
  ]),
2461
2574
  _: 1
2462
2575
  })
2463
- ], 2))
2576
+ ], 16))
2464
2577
  }
2465
2578
 
2466
2579
  script$4.render = render$4;
2467
2580
 
2468
2581
  var script$3 = {
2469
2582
  name: 'HeaderCheckbox',
2583
+ extends: BaseComponent,
2470
2584
  emits: ['change'],
2471
2585
  props: {
2472
2586
  checked: null,
2473
2587
  disabled: null,
2588
+ column: null,
2474
2589
  headerCheckboxIconTemplate: {
2475
2590
  type: Function,
2476
2591
  default: null
@@ -2482,6 +2597,23 @@ var script$3 = {
2482
2597
  };
2483
2598
  },
2484
2599
  methods: {
2600
+ getColumnPTOptions(key) {
2601
+ return this.ptmo(this.getColumnProp(), key, {
2602
+ props: this.column.props,
2603
+ parent: {
2604
+ props: this.$props,
2605
+ state: this.$data
2606
+ },
2607
+ context: {
2608
+ checked: this.checked,
2609
+ focused: this.focused,
2610
+ disabled: this.disabled
2611
+ }
2612
+ });
2613
+ },
2614
+ getColumnProp() {
2615
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
2616
+ },
2485
2617
  onClick(event) {
2486
2618
  if (!this.disabled) {
2487
2619
  this.$emit('change', {
@@ -2509,19 +2641,18 @@ var script$3 = {
2509
2641
  }
2510
2642
  };
2511
2643
 
2512
- const _hoisted_1$3 = { class: "p-hidden-accessible" };
2513
- const _hoisted_2$3 = ["checked", "disabled", "tabindex", "aria-label"];
2644
+ const _hoisted_1$1 = ["checked", "disabled", "tabindex", "aria-label"];
2514
2645
 
2515
2646
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2516
2647
  const _component_CheckIcon = resolveComponent("CheckIcon");
2517
2648
 
2518
- return (openBlock(), createElementBlock("div", {
2519
- class: normalizeClass(['p-checkbox p-component', { 'p-checkbox-focused': $data.focused, 'p-disabled': $props.disabled }]),
2649
+ return (openBlock(), createElementBlock("div", mergeProps({
2650
+ class: ['p-checkbox p-component', { 'p-checkbox-focused': $data.focused, 'p-disabled': $props.disabled }],
2520
2651
  onClick: _cache[2] || (_cache[2] = (...args) => ($options.onClick && $options.onClick(...args))),
2521
2652
  onKeydown: _cache[3] || (_cache[3] = withKeys(withModifiers((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
2522
- }, [
2523
- createElementVNode("div", _hoisted_1$3, [
2524
- createElementVNode("input", {
2653
+ }, $options.getColumnPTOptions('headerCheckboxWrapper')), [
2654
+ createElementVNode("div", mergeProps({ class: "p-hidden-accessible" }, $options.getColumnPTOptions('hiddenHeaderInputWrapper')), [
2655
+ createElementVNode("input", mergeProps({
2525
2656
  ref: "input",
2526
2657
  type: "checkbox",
2527
2658
  checked: $props.checked,
@@ -2530,30 +2661,31 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2530
2661
  "aria-label": $options.headerCheckboxAriaLabel,
2531
2662
  onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
2532
2663
  onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event)))
2533
- }, null, 40, _hoisted_2$3)
2534
- ]),
2535
- createElementVNode("div", {
2664
+ }, $options.getColumnPTOptions('hiddenHeaderInput')), null, 16, _hoisted_1$1)
2665
+ ], 16),
2666
+ createElementVNode("div", mergeProps({
2536
2667
  ref: "box",
2537
- class: normalizeClass(['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': $props.disabled, 'p-focus': $data.focused }])
2538
- }, [
2668
+ class: ['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': $props.disabled, 'p-focus': $data.focused }]
2669
+ }, $options.getColumnPTOptions('headerCheckbox')), [
2539
2670
  ($props.headerCheckboxIconTemplate)
2540
2671
  ? (openBlock(), createBlock(resolveDynamicComponent($props.headerCheckboxIconTemplate), {
2541
2672
  key: 0,
2542
2673
  checked: $props.checked,
2543
2674
  class: "p-checkbox-icon"
2544
2675
  }, null, 8, ["checked"]))
2545
- : (openBlock(), createBlock(_component_CheckIcon, {
2676
+ : (openBlock(), createBlock(_component_CheckIcon, mergeProps({
2546
2677
  key: 1,
2547
2678
  class: "p-checkbox-icon"
2548
- }))
2549
- ], 2)
2550
- ], 34))
2679
+ }, $options.getColumnPTOptions('headerCheckboxIcon')), null, 16))
2680
+ ], 16)
2681
+ ], 16))
2551
2682
  }
2552
2683
 
2553
2684
  script$3.render = render$3;
2554
2685
 
2555
2686
  var script$2 = {
2556
2687
  name: 'HeaderCell',
2688
+ extends: BaseComponent,
2557
2689
  emits: [
2558
2690
  'column-click',
2559
2691
  'column-mousedown',
@@ -2661,6 +2793,18 @@ var script$2 = {
2661
2793
  columnProp(prop) {
2662
2794
  return ObjectUtils.getVNodeProp(this.column, prop);
2663
2795
  },
2796
+ getColumnPTOptions(key) {
2797
+ return this.ptmo(this.getColumnProp(), key, {
2798
+ props: this.column.props,
2799
+ parent: {
2800
+ props: this.$props,
2801
+ state: this.$data
2802
+ }
2803
+ });
2804
+ },
2805
+ getColumnProp() {
2806
+ return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
2807
+ },
2664
2808
  onClick(event) {
2665
2809
  this.$emit('column-click', { originalEvent: event, column: this.column });
2666
2810
  },
@@ -2812,25 +2956,15 @@ var script$2 = {
2812
2956
  }
2813
2957
  };
2814
2958
 
2815
- const _hoisted_1$2 = ["tabindex", "colspan", "rowspan", "aria-sort"];
2816
- const _hoisted_2$2 = { class: "p-column-header-content" };
2817
- const _hoisted_3$2 = {
2818
- key: 1,
2819
- class: "p-column-title"
2820
- };
2821
- const _hoisted_4$1 = { key: 2 };
2822
- const _hoisted_5$1 = {
2823
- key: 3,
2824
- class: "p-sortable-column-badge"
2825
- };
2959
+ const _hoisted_1 = ["tabindex", "colspan", "rowspan", "aria-sort"];
2826
2960
 
2827
2961
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2828
2962
  const _component_DTHeaderCheckbox = resolveComponent("DTHeaderCheckbox");
2829
2963
  const _component_DTColumnFilter = resolveComponent("DTColumnFilter");
2830
2964
 
2831
- return (openBlock(), createElementBlock("th", {
2832
- style: normalizeStyle($options.containerStyle),
2833
- class: normalizeClass($options.containerClass),
2965
+ return (openBlock(), createElementBlock("th", mergeProps({
2966
+ style: $options.containerStyle,
2967
+ class: $options.containerClass,
2834
2968
  tabindex: $options.columnProp('sortable') ? '0' : null,
2835
2969
  role: "columnheader",
2836
2970
  colspan: $options.columnProp('colspan'),
@@ -2843,15 +2977,15 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2843
2977
  onDragover: _cache[12] || (_cache[12] = (...args) => ($options.onDragOver && $options.onDragOver(...args))),
2844
2978
  onDragleave: _cache[13] || (_cache[13] = (...args) => ($options.onDragLeave && $options.onDragLeave(...args))),
2845
2979
  onDrop: _cache[14] || (_cache[14] = (...args) => ($options.onDrop && $options.onDrop(...args)))
2846
- }, [
2980
+ }, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('headerCell') }), [
2847
2981
  ($props.resizableColumns && !$options.columnProp('frozen'))
2848
- ? (openBlock(), createElementBlock("span", {
2982
+ ? (openBlock(), createElementBlock("span", mergeProps({
2849
2983
  key: 0,
2850
2984
  class: "p-column-resizer",
2851
2985
  onMousedown: _cache[0] || (_cache[0] = (...args) => ($options.onResizeStart && $options.onResizeStart(...args)))
2852
- }, null, 32))
2986
+ }, $options.getColumnPTOptions('columnResizer')), null, 16))
2853
2987
  : createCommentVNode("", true),
2854
- createElementVNode("div", _hoisted_2$2, [
2988
+ createElementVNode("div", mergeProps({ class: "p-column-header-content" }, $options.getColumnPTOptions('headerContent')), [
2855
2989
  ($props.column.children && $props.column.children.header)
2856
2990
  ? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.header), {
2857
2991
  key: 0,
@@ -2859,19 +2993,25 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2859
2993
  }, null, 8, ["column"]))
2860
2994
  : createCommentVNode("", true),
2861
2995
  ($options.columnProp('header'))
2862
- ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString($options.columnProp('header')), 1))
2996
+ ? (openBlock(), createElementBlock("span", mergeProps({
2997
+ key: 1,
2998
+ class: "p-column-title"
2999
+ }, $options.getColumnPTOptions('headerTitle')), toDisplayString($options.columnProp('header')), 17))
2863
3000
  : createCommentVNode("", true),
2864
3001
  ($options.columnProp('sortable'))
2865
- ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
3002
+ ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 2 }, $options.getColumnPTOptions('sort'))), [
2866
3003
  (openBlock(), createBlock(resolveDynamicComponent(($props.column.children && $props.column.children.sorticon) || $options.sortableColumnIcon), {
2867
3004
  sorted: $options.sortState.sorted,
2868
3005
  sortOrder: $options.sortState.sortOrder,
2869
3006
  class: "p-sortable-column-icon"
2870
3007
  }, null, 8, ["sorted", "sortOrder"]))
2871
- ]))
3008
+ ], 16))
2872
3009
  : createCommentVNode("", true),
2873
3010
  ($options.isMultiSorted())
2874
- ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString($options.getBadgeValue()), 1))
3011
+ ? (openBlock(), createElementBlock("span", mergeProps({
3012
+ key: 3,
3013
+ class: "p-sortable-column-badge"
3014
+ }, $options.getColumnPTOptions('sortBadge')), toDisplayString($options.getBadgeValue()), 17))
2875
3015
  : createCommentVNode("", true),
2876
3016
  ($options.columnProp('selectionMode') === 'multiple' && $props.filterDisplay !== 'row')
2877
3017
  ? (openBlock(), createBlock(_component_DTHeaderCheckbox, {
@@ -2879,8 +3019,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2879
3019
  checked: $props.allRowsSelected,
2880
3020
  onChange: $options.onHeaderCheckboxChange,
2881
3021
  disabled: $props.empty,
2882
- headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate
2883
- }, null, 8, ["checked", "onChange", "disabled", "headerCheckboxIconTemplate"]))
3022
+ headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate,
3023
+ column: $props.column,
3024
+ pt: _ctx.pt
3025
+ }, null, 8, ["checked", "onChange", "disabled", "headerCheckboxIconTemplate", "column", "pt"]))
2884
3026
  : createCommentVNode("", true),
2885
3027
  ($props.filterDisplay === 'menu' && $props.column.children && $props.column.children.filter)
2886
3028
  ? (openBlock(), createBlock(_component_DTColumnFilter, {
@@ -2916,17 +3058,20 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2916
3058
  onMatchmodeChange: _cache[4] || (_cache[4] = $event => (_ctx.$emit('matchmode-change', $event))),
2917
3059
  onConstraintAdd: _cache[5] || (_cache[5] = $event => (_ctx.$emit('constraint-add', $event))),
2918
3060
  onConstraintRemove: _cache[6] || (_cache[6] = $event => (_ctx.$emit('constraint-remove', $event))),
2919
- onApplyClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('apply-click', $event)))
2920
- }, 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"]))
3061
+ onApplyClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('apply-click', $event))),
3062
+ pt: _ctx.pt,
3063
+ column: $props.column
3064
+ }, 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"]))
2921
3065
  : createCommentVNode("", true)
2922
- ])
2923
- ], 46, _hoisted_1$2))
3066
+ ], 16)
3067
+ ], 16, _hoisted_1))
2924
3068
  }
2925
3069
 
2926
3070
  script$2.render = render$2;
2927
3071
 
2928
3072
  var script$1 = {
2929
3073
  name: 'TableHeader',
3074
+ extends: BaseComponent,
2930
3075
  emits: [
2931
3076
  'column-click',
2932
3077
  'column-mousedown',
@@ -3023,6 +3168,42 @@ var script$1 = {
3023
3168
  columnProp(col, prop) {
3024
3169
  return ObjectUtils.getVNodeProp(col, prop);
3025
3170
  },
3171
+ getColumnGroupPTOptions(key) {
3172
+ return this.ptmo(this.getColumnGroupProps(), key, {
3173
+ props: this.getColumnGroupProps(),
3174
+ parent: {
3175
+ props: this.$props,
3176
+ state: this.$data
3177
+ }
3178
+ });
3179
+ },
3180
+ getColumnGroupProps() {
3181
+ return this.columnGroup && this.columnGroup.props && this.columnGroup.props.pt ? this.columnGroup.props.pt : undefined; //@todo
3182
+ },
3183
+ getRowPTOptions(row, key) {
3184
+ return this.ptmo(this.getRowProp(row), key, {
3185
+ props: row.props,
3186
+ parent: {
3187
+ props: this.$props,
3188
+ state: this.$data
3189
+ }
3190
+ });
3191
+ },
3192
+ getRowProp(row) {
3193
+ return row.props && row.props.pt ? row.props.pt : undefined; //@todo
3194
+ },
3195
+ getColumnPTOptions(column, key) {
3196
+ return this.ptmo(this.getColumnProp(column), key, {
3197
+ props: column.props,
3198
+ parent: {
3199
+ props: this.$props,
3200
+ state: this.$data
3201
+ }
3202
+ });
3203
+ },
3204
+ getColumnProp(column) {
3205
+ return column.props && column.props.pt ? column.props.pt : undefined; //@todo
3206
+ },
3026
3207
  getFilterColumnHeaderClass(column) {
3027
3208
  return [
3028
3209
  'p-filter-column',
@@ -3073,25 +3254,18 @@ var script$1 = {
3073
3254
  }
3074
3255
  };
3075
3256
 
3076
- const _hoisted_1$1 = {
3077
- class: "p-datatable-thead",
3078
- role: "rowgroup"
3079
- };
3080
- const _hoisted_2$1 = { role: "row" };
3081
- const _hoisted_3$1 = {
3082
- key: 0,
3083
- role: "row"
3084
- };
3085
-
3086
3257
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3087
3258
  const _component_DTHeaderCell = resolveComponent("DTHeaderCell");
3088
3259
  const _component_DTHeaderCheckbox = resolveComponent("DTHeaderCheckbox");
3089
3260
  const _component_DTColumnFilter = resolveComponent("DTColumnFilter");
3090
3261
 
3091
- return (openBlock(), createElementBlock("thead", _hoisted_1$1, [
3262
+ return (openBlock(), createElementBlock("thead", mergeProps({
3263
+ class: "p-datatable-thead",
3264
+ role: "rowgroup"
3265
+ }, { ..._ctx.ptm('thead'), ...$options.getColumnGroupPTOptions('root') }), [
3092
3266
  (!$props.columnGroup)
3093
3267
  ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3094
- createElementVNode("tr", _hoisted_2$1, [
3268
+ createElementVNode("tr", mergeProps({ role: "row" }, _ctx.ptm('headerRow')), [
3095
3269
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
3096
3270
  return (openBlock(), createElementBlock(Fragment, {
3097
3271
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
@@ -3129,31 +3303,37 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3129
3303
  onConstraintAdd: _cache[12] || (_cache[12] = $event => (_ctx.$emit('constraint-add', $event))),
3130
3304
  onConstraintRemove: _cache[13] || (_cache[13] = $event => (_ctx.$emit('constraint-remove', $event))),
3131
3305
  onApplyClick: _cache[14] || (_cache[14] = $event => (_ctx.$emit('apply-click', $event))),
3132
- headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate
3133
- }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "filterInputProps", "headerCheckboxIconTemplate"]))
3306
+ headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate,
3307
+ pt: _ctx.pt
3308
+ }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "filterInputProps", "headerCheckboxIconTemplate", "pt"]))
3134
3309
  : createCommentVNode("", true)
3135
3310
  ], 64))
3136
3311
  }), 128))
3137
- ]),
3312
+ ], 16),
3138
3313
  ($props.filterDisplay === 'row')
3139
- ? (openBlock(), createElementBlock("tr", _hoisted_3$1, [
3314
+ ? (openBlock(), createElementBlock("tr", mergeProps({
3315
+ key: 0,
3316
+ role: "row"
3317
+ }, _ctx.ptm('headerRow')), [
3140
3318
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
3141
3319
  return (openBlock(), createElementBlock(Fragment, {
3142
3320
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
3143
3321
  }, [
3144
3322
  (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || $props.groupRowsBy !== $options.columnProp(col, 'field')))
3145
- ? (openBlock(), createElementBlock("th", {
3323
+ ? (openBlock(), createElementBlock("th", mergeProps({
3146
3324
  key: 0,
3147
- style: normalizeStyle($options.getFilterColumnHeaderStyle(col)),
3148
- class: normalizeClass($options.getFilterColumnHeaderClass(col))
3149
- }, [
3325
+ style: $options.getFilterColumnHeaderStyle(col),
3326
+ class: $options.getFilterColumnHeaderClass(col)
3327
+ }, { ...$options.getColumnPTOptions(col, 'root'), ...$options.getColumnPTOptions(col, 'headerCell') }), [
3150
3328
  ($options.columnProp(col, 'selectionMode') === 'multiple')
3151
3329
  ? (openBlock(), createBlock(_component_DTHeaderCheckbox, {
3152
3330
  key: 0,
3153
3331
  checked: $props.allRowsSelected,
3154
3332
  disabled: $props.empty,
3155
- onChange: _cache[15] || (_cache[15] = $event => (_ctx.$emit('checkbox-change', $event)))
3156
- }, null, 8, ["checked", "disabled"]))
3333
+ onChange: _cache[15] || (_cache[15] = $event => (_ctx.$emit('checkbox-change', $event))),
3334
+ column: col,
3335
+ pt: _ctx.pt
3336
+ }, null, 8, ["checked", "disabled", "column", "pt"]))
3157
3337
  : createCommentVNode("", true),
3158
3338
  (col.children && col.children.filter)
3159
3339
  ? (openBlock(), createBlock(_component_DTColumnFilter, {
@@ -3189,21 +3369,23 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3189
3369
  onMatchmodeChange: _cache[19] || (_cache[19] = $event => (_ctx.$emit('matchmode-change', $event))),
3190
3370
  onConstraintAdd: _cache[20] || (_cache[20] = $event => (_ctx.$emit('constraint-add', $event))),
3191
3371
  onConstraintRemove: _cache[21] || (_cache[21] = $event => (_ctx.$emit('constraint-remove', $event))),
3192
- onApplyClick: _cache[22] || (_cache[22] = $event => (_ctx.$emit('apply-click', $event)))
3193
- }, 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"]))
3372
+ onApplyClick: _cache[22] || (_cache[22] = $event => (_ctx.$emit('apply-click', $event))),
3373
+ pt: _ctx.pt,
3374
+ column: col
3375
+ }, 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"]))
3194
3376
  : createCommentVNode("", true)
3195
- ], 6))
3377
+ ], 16))
3196
3378
  : createCommentVNode("", true)
3197
3379
  ], 64))
3198
3380
  }), 128))
3199
- ]))
3381
+ ], 16))
3200
3382
  : createCommentVNode("", true)
3201
3383
  ], 64))
3202
3384
  : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList($options.getHeaderRows(), (row, i) => {
3203
- return (openBlock(), createElementBlock("tr", {
3385
+ return (openBlock(), createElementBlock("tr", mergeProps({
3204
3386
  key: i,
3205
3387
  role: "row"
3206
- }, [
3388
+ }, $options.getRowPTOptions(row, 'root')), [
3207
3389
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.getHeaderColumns(row), (col, j) => {
3208
3390
  return (openBlock(), createElementBlock(Fragment, {
3209
3391
  key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || j
@@ -3233,20 +3415,22 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3233
3415
  onConstraintAdd: _cache[30] || (_cache[30] = $event => (_ctx.$emit('constraint-add', $event))),
3234
3416
  onConstraintRemove: _cache[31] || (_cache[31] = $event => (_ctx.$emit('constraint-remove', $event))),
3235
3417
  onApplyClick: _cache[32] || (_cache[32] = $event => (_ctx.$emit('apply-click', $event))),
3236
- headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate
3237
- }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "headerCheckboxIconTemplate"]))
3418
+ headerCheckboxIconTemplate: $props.headerCheckboxIconTemplate,
3419
+ pt: _ctx.pt
3420
+ }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore", "headerCheckboxIconTemplate", "pt"]))
3238
3421
  : createCommentVNode("", true)
3239
3422
  ], 64))
3240
3423
  }), 128))
3241
- ]))
3424
+ ], 16))
3242
3425
  }), 128))
3243
- ]))
3426
+ ], 16))
3244
3427
  }
3245
3428
 
3246
3429
  script$1.render = render$1;
3247
3430
 
3248
3431
  var script = {
3249
3432
  name: 'DataTable',
3433
+ extends: BaseComponent,
3250
3434
  emits: [
3251
3435
  'value-change',
3252
3436
  'update:first',
@@ -5298,36 +5482,6 @@ var script = {
5298
5482
  }
5299
5483
  };
5300
5484
 
5301
- const _hoisted_1 = {
5302
- key: 0,
5303
- class: "p-datatable-loading-overlay p-component-overlay"
5304
- };
5305
- const _hoisted_2 = {
5306
- key: 1,
5307
- class: "p-datatable-header"
5308
- };
5309
- const _hoisted_3 = {
5310
- key: 3,
5311
- class: "p-datatable-footer"
5312
- };
5313
- const _hoisted_4 = {
5314
- ref: "resizeHelper",
5315
- class: "p-column-resizer-helper",
5316
- style: {"display":"none"}
5317
- };
5318
- const _hoisted_5 = {
5319
- key: 5,
5320
- ref: "reorderIndicatorUp",
5321
- class: "p-datatable-reorder-indicator-up",
5322
- style: {"position":"absolute","display":"none"}
5323
- };
5324
- const _hoisted_6 = {
5325
- key: 6,
5326
- ref: "reorderIndicatorDown",
5327
- class: "p-datatable-reorder-indicator-down",
5328
- style: {"position":"absolute","display":"none"}
5329
- };
5330
-
5331
5485
  function render(_ctx, _cache, $props, $setup, $data, $options) {
5332
5486
  const _component_SpinnerIcon = resolveComponent("SpinnerIcon");
5333
5487
  const _component_DTPaginator = resolveComponent("DTPaginator");
@@ -5336,13 +5490,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5336
5490
  const _component_DTTableFooter = resolveComponent("DTTableFooter");
5337
5491
  const _component_DTVirtualScroller = resolveComponent("DTVirtualScroller");
5338
5492
 
5339
- return (openBlock(), createElementBlock("div", {
5340
- class: normalizeClass($options.containerClass),
5493
+ return (openBlock(), createElementBlock("div", mergeProps({
5494
+ class: $options.containerClass,
5341
5495
  "data-scrollselectors": ".p-datatable-wrapper"
5342
- }, [
5496
+ }, _ctx.ptm('root')), [
5343
5497
  renderSlot(_ctx.$slots, "default"),
5344
5498
  ($props.loading)
5345
- ? (openBlock(), createElementBlock("div", _hoisted_1, [
5499
+ ? (openBlock(), createElementBlock("div", mergeProps({
5500
+ key: 0,
5501
+ class: "p-datatable-loading-overlay p-component-overlay"
5502
+ }, _ctx.ptm('loadingOverlay')), [
5346
5503
  (_ctx.$slots.loading)
5347
5504
  ? renderSlot(_ctx.$slots, "loading", { key: 0 })
5348
5505
  : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
@@ -5352,22 +5509,25 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5352
5509
  class: "p-datatable-loading-icon"
5353
5510
  }))
5354
5511
  : ($props.loadingIcon)
5355
- ? (openBlock(), createElementBlock("i", {
5512
+ ? (openBlock(), createElementBlock("i", mergeProps({
5356
5513
  key: 1,
5357
- class: normalizeClass(['p-datatable-loading-icon pi-spin', $props.loadingIcon])
5358
- }, null, 2))
5359
- : (openBlock(), createBlock(_component_SpinnerIcon, {
5514
+ class: ['p-datatable-loading-icon pi-spin', $props.loadingIcon]
5515
+ }, _ctx.ptm('loadingIcon')), null, 16))
5516
+ : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
5360
5517
  key: 2,
5361
5518
  spin: "",
5362
5519
  class: "p-datatable-loading-icon"
5363
- }))
5520
+ }, _ctx.ptm('loadingIcon')), null, 16))
5364
5521
  ], 64))
5365
- ]))
5522
+ ], 16))
5366
5523
  : createCommentVNode("", true),
5367
5524
  (_ctx.$slots.header)
5368
- ? (openBlock(), createElementBlock("div", _hoisted_2, [
5525
+ ? (openBlock(), createElementBlock("div", mergeProps({
5526
+ key: 1,
5527
+ class: "p-datatable-header"
5528
+ }, _ctx.ptm('header')), [
5369
5529
  renderSlot(_ctx.$slots, "header")
5370
- ]))
5530
+ ], 16))
5371
5531
  : createCommentVNode("", true),
5372
5532
  ($options.paginatorTop)
5373
5533
  ? (openBlock(), createBlock(_component_DTPaginator, {
@@ -5381,7 +5541,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5381
5541
  currentPageReportTemplate: $props.currentPageReportTemplate,
5382
5542
  class: "p-paginator-top",
5383
5543
  onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event))),
5384
- alwaysShow: $props.alwaysShowPaginator
5544
+ alwaysShow: $props.alwaysShowPaginator,
5545
+ pt: _ctx.ptm('paginator')
5385
5546
  }, createSlots({ _: 2 }, [
5386
5547
  (_ctx.$slots.paginatorstart)
5387
5548
  ? {
@@ -5437,13 +5598,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5437
5598
  key: "5"
5438
5599
  }
5439
5600
  : undefined
5440
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
5601
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow", "pt"]))
5441
5602
  : createCommentVNode("", true),
5442
- createElementVNode("div", {
5603
+ createElementVNode("div", mergeProps({
5443
5604
  class: "p-datatable-wrapper",
5444
- style: normalizeStyle({ maxHeight: $options.virtualScrollerDisabled ? $props.scrollHeight : '' })
5445
- }, [
5446
- createVNode(_component_DTVirtualScroller, mergeProps({ ref: "virtualScroller" }, $props.virtualScrollerOptions, {
5605
+ style: { maxHeight: $options.virtualScrollerDisabled ? $props.scrollHeight : '' }
5606
+ }, _ctx.ptm('wrapper')), [
5607
+ createVNode(_component_DTVirtualScroller, mergeProps({ ref: "virtualScroller" }, { ...$props.virtualScrollerOptions, ..._ctx.ptm('virtualScroller') }, {
5447
5608
  items: $options.processedData,
5448
5609
  columns: $options.columns,
5449
5610
  style: $props.scrollHeight !== 'flex' ? { height: $props.scrollHeight } : undefined,
@@ -5460,7 +5621,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5460
5621
  role: "table",
5461
5622
  class: $options.tableStyleClass,
5462
5623
  style: [$props.tableStyle, slotProps.spacerStyle]
5463
- }, $props.tableProps), [
5624
+ }, { ...$props.tableProps, ..._ctx.ptm('table') }), [
5464
5625
  createVNode(_component_DTTableHeader, {
5465
5626
  columnGroup: $options.headerColumnGroup,
5466
5627
  columns: slotProps.columns,
@@ -5489,8 +5650,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5489
5650
  onColumnDragleave: _cache[5] || (_cache[5] = $event => ($options.onColumnHeaderDragLeave($event))),
5490
5651
  onColumnDrop: _cache[6] || (_cache[6] = $event => ($options.onColumnHeaderDrop($event))),
5491
5652
  onColumnResizestart: _cache[7] || (_cache[7] = $event => ($options.onColumnResizeStart($event))),
5492
- onCheckboxChange: _cache[8] || (_cache[8] = $event => ($options.toggleRowsWithCheckbox($event)))
5493
- }, null, 8, ["columnGroup", "columns", "rowGroupMode", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "allRowsSelected", "empty", "sortMode", "sortField", "sortOrder", "multiSortMeta", "filters", "filtersStore", "filterDisplay", "filterInputProps", "headerCheckboxIconTemplate", "onFilterChange", "onFilterApply"]),
5653
+ onCheckboxChange: _cache[8] || (_cache[8] = $event => ($options.toggleRowsWithCheckbox($event))),
5654
+ pt: _ctx.pt
5655
+ }, null, 8, ["columnGroup", "columns", "rowGroupMode", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "allRowsSelected", "empty", "sortMode", "sortField", "sortOrder", "multiSortMeta", "filters", "filtersStore", "filterDisplay", "filterInputProps", "headerCheckboxIconTemplate", "onFilterChange", "onFilterApply", "pt"]),
5494
5656
  ($props.frozenValue)
5495
5657
  ? (openBlock(), createBlock(_component_DTTableBody, {
5496
5658
  key: 0,
@@ -5603,28 +5765,33 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5603
5765
  onRowEditSave: _cache[41] || (_cache[41] = $event => ($options.onRowEditSave($event))),
5604
5766
  onRowEditCancel: _cache[42] || (_cache[42] = $event => ($options.onRowEditCancel($event))),
5605
5767
  editingMeta: $data.d_editingMeta,
5606
- onEditingMetaChange: $options.onEditingMetaChange
5607
- }, 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"]),
5768
+ onEditingMetaChange: $options.onEditingMetaChange,
5769
+ pt: _ctx.pt
5770
+ }, 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"]),
5608
5771
  ($options.hasSpacerStyle(slotProps.spacerStyle))
5609
- ? (openBlock(), createElementBlock("tbody", {
5772
+ ? (openBlock(), createElementBlock("tbody", mergeProps({
5610
5773
  key: 1,
5611
- style: normalizeStyle({ height: `calc(${slotProps.spacerStyle.height} - ${slotProps.rows.length * slotProps.itemSize}px)` }),
5774
+ style: { height: `calc(${slotProps.spacerStyle.height} - ${slotProps.rows.length * slotProps.itemSize}px)` },
5612
5775
  class: "p-datatable-virtualscroller-spacer"
5613
- }, null, 4))
5776
+ }, _ctx.ptm('virtualScrollerSpacer')), null, 16))
5614
5777
  : createCommentVNode("", true),
5615
5778
  createVNode(_component_DTTableFooter, {
5616
5779
  columnGroup: $options.footerColumnGroup,
5617
- columns: slotProps.columns
5618
- }, null, 8, ["columnGroup", "columns"])
5780
+ columns: slotProps.columns,
5781
+ pt: _ctx.pt
5782
+ }, null, 8, ["columnGroup", "columns", "pt"])
5619
5783
  ], 16)
5620
5784
  ]),
5621
5785
  _: 1
5622
5786
  }, 16, ["items", "columns", "style", "scrollHeight", "disabled"])
5623
- ], 4),
5787
+ ], 16),
5624
5788
  (_ctx.$slots.footer)
5625
- ? (openBlock(), createElementBlock("div", _hoisted_3, [
5789
+ ? (openBlock(), createElementBlock("div", mergeProps({
5790
+ key: 3,
5791
+ class: "p-datatable-footer"
5792
+ }, _ctx.ptm('footer')), [
5626
5793
  renderSlot(_ctx.$slots, "footer")
5627
- ]))
5794
+ ], 16))
5628
5795
  : createCommentVNode("", true),
5629
5796
  ($options.paginatorBottom)
5630
5797
  ? (openBlock(), createBlock(_component_DTPaginator, {
@@ -5638,7 +5805,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5638
5805
  currentPageReportTemplate: $props.currentPageReportTemplate,
5639
5806
  class: "p-paginator-bottom",
5640
5807
  onPage: _cache[43] || (_cache[43] = $event => ($options.onPage($event))),
5641
- alwaysShow: $props.alwaysShowPaginator
5808
+ alwaysShow: $props.alwaysShowPaginator,
5809
+ pt: _ctx.ptm('paginator')
5642
5810
  }, createSlots({ _: 2 }, [
5643
5811
  (_ctx.$slots.paginatorstart)
5644
5812
  ? {
@@ -5694,20 +5862,34 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5694
5862
  key: "5"
5695
5863
  }
5696
5864
  : undefined
5697
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
5865
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow", "pt"]))
5698
5866
  : createCommentVNode("", true),
5699
- createElementVNode("div", _hoisted_4, null, 512),
5867
+ createElementVNode("div", mergeProps({
5868
+ ref: "resizeHelper",
5869
+ class: "p-column-resizer-helper",
5870
+ style: {"display":"none"}
5871
+ }, _ctx.ptm('resizeHelper')), null, 16),
5700
5872
  ($props.reorderableColumns)
5701
- ? (openBlock(), createElementBlock("span", _hoisted_5, [
5873
+ ? (openBlock(), createElementBlock("span", mergeProps({
5874
+ key: 5,
5875
+ ref: "reorderIndicatorUp",
5876
+ class: "p-datatable-reorder-indicator-up",
5877
+ style: {"position":"absolute","display":"none"}
5878
+ }, _ctx.ptm('reorderIndicatorUp')), [
5702
5879
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.reorderindicatorupicon || 'ArrowDownIcon')))
5703
- ], 512))
5880
+ ], 16))
5704
5881
  : createCommentVNode("", true),
5705
5882
  ($props.reorderableColumns)
5706
- ? (openBlock(), createElementBlock("span", _hoisted_6, [
5883
+ ? (openBlock(), createElementBlock("span", mergeProps({
5884
+ key: 6,
5885
+ ref: "reorderIndicatorDown",
5886
+ class: "p-datatable-reorder-indicator-down",
5887
+ style: {"position":"absolute","display":"none"}
5888
+ }, _ctx.ptm('reorderIndicatorDown')), [
5707
5889
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.reorderindicatordownicon || 'ArrowUpIcon')))
5708
- ], 512))
5890
+ ], 16))
5709
5891
  : createCommentVNode("", true)
5710
- ], 2))
5892
+ ], 16))
5711
5893
  }
5712
5894
 
5713
5895
  function styleInject(css, ref) {