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
@@ -8,8 +8,18 @@
8
8
  *
9
9
  */
10
10
  import { VNode } from 'vue';
11
+ import { PaginatorPassThroughOptionType } from '../paginator';
11
12
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
12
13
 
14
+ export declare type DataViewPassThroughOptionType = DataViewPassThroughAttributes | ((options: DataViewPassThroughMethodOptions) => DataViewPassThroughAttributes) | null | undefined;
15
+
16
+ /**
17
+ * Custom passthrough(pt) option method.
18
+ */
19
+ export interface DataViewPassThroughMethodOptions {
20
+ props: DataViewProps;
21
+ state: DataViewState;
22
+ }
13
23
  /**
14
24
  * Custom page event.
15
25
  * @see {@link DataViewEmits.page}
@@ -33,6 +43,63 @@ export interface DataViewPageEvent {
33
43
  pageCount: number;
34
44
  }
35
45
 
46
+ /**
47
+ * Custom passthrough(pt) options.
48
+ * @see {@link DataViewProps.pt}
49
+ */
50
+ export interface DataViewPassThroughOptions {
51
+ /**
52
+ * Uses to pass attributes to the root's DOM element.
53
+ */
54
+ root?: DataViewPassThroughOptionType;
55
+ /**
56
+ * Uses to pass attributes to the header's DOM element.
57
+ */
58
+ header?: DataViewPassThroughOptionType;
59
+ /**
60
+ * Uses to pass attributes to the Paginator component.
61
+ * @see {@link PaginatorPassThroughOptionType}
62
+ */
63
+ paginator?: PaginatorPassThroughOptionType;
64
+ /**
65
+ * Uses to pass attributes to the content's DOM element.
66
+ */
67
+ content?: DataViewPassThroughOptionType;
68
+ /**
69
+ * Uses to pass attributes to the column's DOM element.
70
+ */
71
+ column?: DataViewPassThroughOptionType;
72
+ /**
73
+ * Uses to pass attributes to the empty message's DOM element.
74
+ */
75
+ emptyMessage?: DataViewPassThroughOptionType;
76
+ /**
77
+ * Uses to pass attributes to the footer's DOM element.
78
+ */
79
+ footer?: DataViewPassThroughOptionType;
80
+ }
81
+
82
+ /**
83
+ * Custom passthrough attributes for each DOM elements
84
+ */
85
+ export interface DataViewPassThroughAttributes {
86
+ [key: string]: any;
87
+ }
88
+
89
+ /**
90
+ * Defines current inline state in DataView component.
91
+ */
92
+ export interface DataViewState {
93
+ /**
94
+ * Current index of first record as a number.
95
+ */
96
+ d_first: number;
97
+ /**
98
+ * Current number of rows to display in new page as a number.
99
+ */
100
+ d_rows: number;
101
+ }
102
+
36
103
  /**
37
104
  * Defines valid properties in DataView component. In addition to these, all properties of HTMLDivElement can be used in this component.
38
105
  */
@@ -130,6 +197,11 @@ export interface DataViewProps {
130
197
  * Name of the data that uniquely identifies the a record in the data.
131
198
  */
132
199
  dataKey: string | undefined;
200
+ /**
201
+ * Uses to pass attributes to DOM elements inside the component.
202
+ * @type {DataViewPassThroughOptions}
203
+ */
204
+ pt?: DataViewPassThroughOptions;
133
205
  }
134
206
 
135
207
  /**
@@ -1,6 +1,6 @@
1
1
  <template>
2
- <div :class="containerClass">
3
- <div v-if="$slots.header" class="p-dataview-header">
2
+ <div :class="containerClass" v-bind="ptm('root')">
3
+ <div v-if="$slots.header" class="p-dataview-header" v-bind="ptm('header')">
4
4
  <slot name="header"></slot>
5
5
  </div>
6
6
  <DVPaginator
@@ -15,6 +15,7 @@
15
15
  :class="{ 'p-paginator-top': paginatorTop }"
16
16
  :alwaysShow="alwaysShowPaginator"
17
17
  @page="onPage($event)"
18
+ :pt="ptm('paginator')"
18
19
  >
19
20
  <template v-if="$slots.paginatorstart" #start>
20
21
  <slot name="paginatorstart"></slot>
@@ -23,14 +24,14 @@
23
24
  <slot name="paginatorend"></slot>
24
25
  </template>
25
26
  </DVPaginator>
26
- <div class="p-dataview-content">
27
- <div class="p-grid p-nogutter grid grid-nogutter">
27
+ <div class="p-dataview-content" v-bind="ptm('content')">
28
+ <div class="p-grid p-nogutter grid grid-nogutter" v-bind="ptm('grid')">
28
29
  <template v-for="(item, index) of items" :key="getKey(item, index)">
29
30
  <slot v-if="$slots.list && layout === 'list'" name="list" :data="item" :index="index"></slot>
30
31
  <slot v-if="$slots.grid && layout === 'grid'" name="grid" :data="item" :index="index"></slot>
31
32
  </template>
32
- <div v-if="empty" class="p-col col">
33
- <div class="p-dataview-emptymessage">
33
+ <div v-if="empty" class="p-col col" v-bind="ptm('column')">
34
+ <div class="p-dataview-emptymessage" v-bind="ptm('emptyMessage')">
34
35
  <slot name="empty"></slot>
35
36
  </div>
36
37
  </div>
@@ -48,6 +49,7 @@
48
49
  :class="{ 'p-paginator-bottom': paginatorBottom }"
49
50
  :alwaysShow="alwaysShowPaginator"
50
51
  @page="onPage($event)"
52
+ :pt="ptm('root')"
51
53
  >
52
54
  <template v-if="$slots.paginatorstart" #start>
53
55
  <slot name="paginatorstart"></slot>
@@ -56,17 +58,20 @@
56
58
  <slot name="paginatorend"></slot>
57
59
  </template>
58
60
  </DVPaginator>
59
- <div v-if="$slots.footer" class="p-dataview-footer">
61
+ <div v-if="$slots.footer" class="p-dataview-footer" v-bind="ptm('footer')">
60
62
  <slot name="footer"></slot>
61
63
  </div>
62
64
  </div>
63
65
  </template>
66
+
64
67
  <script>
65
- import { ObjectUtils } from 'primevue/utils';
68
+ import BaseComponent from 'primevue/basecomponent';
66
69
  import Paginator from 'primevue/paginator';
70
+ import { ObjectUtils } from 'primevue/utils';
67
71
 
68
72
  export default {
69
73
  name: 'DataView',
74
+ extends: BaseComponent,
70
75
  emits: ['update:first', 'update:rows', 'page'],
71
76
  props: {
72
77
  value: {
@@ -1,15 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var utils = require('primevue/utils');
3
+ var BaseComponent = require('primevue/basecomponent');
4
4
  var Paginator = require('primevue/paginator');
5
+ var utils = require('primevue/utils');
5
6
  var vue = require('vue');
6
7
 
7
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9
 
10
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
9
11
  var Paginator__default = /*#__PURE__*/_interopDefaultLegacy(Paginator);
10
12
 
11
13
  var script = {
12
14
  name: 'DataView',
15
+ extends: BaseComponent__default["default"],
13
16
  emits: ['update:first', 'update:rows', 'page'],
14
17
  props: {
15
18
  value: {
@@ -185,32 +188,17 @@ var script = {
185
188
  }
186
189
  };
187
190
 
188
- const _hoisted_1 = {
189
- key: 0,
190
- class: "p-dataview-header"
191
- };
192
- const _hoisted_2 = { class: "p-dataview-content" };
193
- const _hoisted_3 = { class: "p-grid p-nogutter grid grid-nogutter" };
194
- const _hoisted_4 = {
195
- key: 0,
196
- class: "p-col col"
197
- };
198
- const _hoisted_5 = { class: "p-dataview-emptymessage" };
199
- const _hoisted_6 = {
200
- key: 3,
201
- class: "p-dataview-footer"
202
- };
203
-
204
191
  function render(_ctx, _cache, $props, $setup, $data, $options) {
205
192
  const _component_DVPaginator = vue.resolveComponent("DVPaginator");
206
193
 
207
- return (vue.openBlock(), vue.createElementBlock("div", {
208
- class: vue.normalizeClass($options.containerClass)
209
- }, [
194
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
210
195
  (_ctx.$slots.header)
211
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
196
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
197
+ key: 0,
198
+ class: "p-dataview-header"
199
+ }, _ctx.ptm('header')), [
212
200
  vue.renderSlot(_ctx.$slots, "header")
213
- ]))
201
+ ], 16))
214
202
  : vue.createCommentVNode("", true),
215
203
  ($options.paginatorTop)
216
204
  ? (vue.openBlock(), vue.createBlock(_component_DVPaginator, {
@@ -224,7 +212,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
224
212
  currentPageReportTemplate: $props.currentPageReportTemplate,
225
213
  class: vue.normalizeClass({ 'p-paginator-top': $options.paginatorTop }),
226
214
  alwaysShow: $props.alwaysShowPaginator,
227
- onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event)))
215
+ onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event))),
216
+ pt: _ctx.ptm('paginator')
228
217
  }, vue.createSlots({ _: 2 }, [
229
218
  (_ctx.$slots.paginatorstart)
230
219
  ? {
@@ -244,10 +233,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
244
233
  key: "1"
245
234
  }
246
235
  : undefined
247
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow"]))
236
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow", "pt"]))
248
237
  : vue.createCommentVNode("", true),
249
- vue.createElementVNode("div", _hoisted_2, [
250
- vue.createElementVNode("div", _hoisted_3, [
238
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-dataview-content" }, _ctx.ptm('content')), [
239
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-grid p-nogutter grid grid-nogutter" }, _ctx.ptm('grid')), [
251
240
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.items, (item, index) => {
252
241
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
253
242
  key: $options.getKey(item, index)
@@ -269,14 +258,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
269
258
  ], 64))
270
259
  }), 128)),
271
260
  ($options.empty)
272
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
273
- vue.createElementVNode("div", _hoisted_5, [
261
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
262
+ key: 0,
263
+ class: "p-col col"
264
+ }, _ctx.ptm('column')), [
265
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-dataview-emptymessage" }, _ctx.ptm('emptyMessage')), [
274
266
  vue.renderSlot(_ctx.$slots, "empty")
275
- ])
276
- ]))
267
+ ], 16)
268
+ ], 16))
277
269
  : vue.createCommentVNode("", true)
278
- ])
279
- ]),
270
+ ], 16)
271
+ ], 16),
280
272
  ($options.paginatorBottom)
281
273
  ? (vue.openBlock(), vue.createBlock(_component_DVPaginator, {
282
274
  key: 2,
@@ -289,7 +281,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
289
281
  currentPageReportTemplate: $props.currentPageReportTemplate,
290
282
  class: vue.normalizeClass({ 'p-paginator-bottom': $options.paginatorBottom }),
291
283
  alwaysShow: $props.alwaysShowPaginator,
292
- onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event)))
284
+ onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
285
+ pt: _ctx.ptm('root')
293
286
  }, vue.createSlots({ _: 2 }, [
294
287
  (_ctx.$slots.paginatorstart)
295
288
  ? {
@@ -309,14 +302,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
309
302
  key: "1"
310
303
  }
311
304
  : undefined
312
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow"]))
305
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow", "pt"]))
313
306
  : vue.createCommentVNode("", true),
314
307
  (_ctx.$slots.footer)
315
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
308
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
309
+ key: 3,
310
+ class: "p-dataview-footer"
311
+ }, _ctx.ptm('footer')), [
316
312
  vue.renderSlot(_ctx.$slots, "footer")
317
- ]))
313
+ ], 16))
318
314
  : vue.createCommentVNode("", true)
319
- ], 2))
315
+ ], 16))
320
316
  }
321
317
 
322
318
  script.render = render;
@@ -1 +1 @@
1
- "use strict";var t=require("primevue/utils"),e=require("primevue/paginator"),a=require("vue");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o={name:"DataView",emits:["update:first","update:rows","page"],props:{value:{type:Array,default:null},layout:{type:String,default:"list"},rows:{type:Number,default:0},first:{type:Number,default:0},totalRecords:{type:Number,default:0},paginator:{type:Boolean,default:!1},paginatorPosition:{type:String,default:"bottom"},alwaysShowPaginator:{type:Boolean,default:!0},paginatorTemplate:{type:String,default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},currentPageReportTemplate:{type:String,default:"({currentPage} of {totalPages})"},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},lazy:{type:Boolean,default:!1},dataKey:{type:String,default:null}},data(){return{d_first:this.first,d_rows:this.rows}},watch:{first(t){this.d_first=t},rows(t){this.d_rows=t},sortField(){this.resetPage()},sortOrder(){this.resetPage()}},methods:{getKey(e,a){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):a},onPage(t){this.d_first=t.first,this.d_rows=t.rows,this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",t)},sort(){if(this.value){const e=[...this.value];return e.sort(((e,a)=>{let r=t.ObjectUtils.resolveFieldData(e,this.sortField),o=t.ObjectUtils.resolveFieldData(a,this.sortField),s=null;return s=null==r&&null!=o?-1:null!=r&&null==o?1:null==r&&null==o?0:"string"==typeof r&&"string"==typeof o?r.localeCompare(o,void 0,{numeric:!0}):r<o?-1:r>o?1:0,this.sortOrder*s})),e}return null},resetPage(){this.d_first=0,this.$emit("update:first",this.d_first)}},computed:{containerClass(){return["p-dataview p-component",{"p-dataview-list":"list"===this.layout,"p-dataview-grid":"grid"===this.layout}]},getTotalRecords(){return this.totalRecords?this.totalRecords:this.value?this.value.length:0},empty(){return!this.value||0===this.value.length},paginatorTop(){return this.paginator&&("bottom"!==this.paginatorPosition||"both"===this.paginatorPosition)},paginatorBottom(){return this.paginator&&("top"!==this.paginatorPosition||"both"===this.paginatorPosition)},items(){if(this.value&&this.value.length){let t=this.value;if(t&&t.length&&this.sortField&&(t=this.sort()),this.paginator){const e=this.lazy?0:this.d_first;return t.slice(e,e+this.d_rows)}return t}return null}},components:{DVPaginator:r(e).default}};const s={key:0,class:"p-dataview-header"},i={class:"p-dataview-content"},l={class:"p-grid p-nogutter grid grid-nogutter"},n={key:0,class:"p-col col"},p={class:"p-dataview-emptymessage"},d={key:3,class:"p-dataview-footer"};o.render=function(t,e,r,o,g,u){const c=a.resolveComponent("DVPaginator");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(u.containerClass)},[t.$slots.header?(a.openBlock(),a.createElementBlock("div",s,[a.renderSlot(t.$slots,"header")])):a.createCommentVNode("",!0),u.paginatorTop?(a.openBlock(),a.createBlock(c,{key:1,rows:g.d_rows,first:g.d_first,totalRecords:u.getTotalRecords,pageLinkSize:r.pageLinkSize,template:r.paginatorTemplate,rowsPerPageOptions:r.rowsPerPageOptions,currentPageReportTemplate:r.currentPageReportTemplate,class:a.normalizeClass({"p-paginator-top":u.paginatorTop}),alwaysShow:r.alwaysShowPaginator,onPage:e[0]||(e[0]=t=>u.onPage(t))},a.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:a.withCtx((()=>[a.renderSlot(t.$slots,"paginatorstart")])),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:a.withCtx((()=>[a.renderSlot(t.$slots,"paginatorend")])),key:"1"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow"])):a.createCommentVNode("",!0),a.createElementVNode("div",i,[a.createElementVNode("div",l,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.items,((e,o)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:u.getKey(e,o)},[t.$slots.list&&"list"===r.layout?a.renderSlot(t.$slots,"list",{key:0,data:e,index:o}):a.createCommentVNode("",!0),t.$slots.grid&&"grid"===r.layout?a.renderSlot(t.$slots,"grid",{key:1,data:e,index:o}):a.createCommentVNode("",!0)],64)))),128)),u.empty?(a.openBlock(),a.createElementBlock("div",n,[a.createElementVNode("div",p,[a.renderSlot(t.$slots,"empty")])])):a.createCommentVNode("",!0)])]),u.paginatorBottom?(a.openBlock(),a.createBlock(c,{key:2,rows:g.d_rows,first:g.d_first,totalRecords:u.getTotalRecords,pageLinkSize:r.pageLinkSize,template:r.paginatorTemplate,rowsPerPageOptions:r.rowsPerPageOptions,currentPageReportTemplate:r.currentPageReportTemplate,class:a.normalizeClass({"p-paginator-bottom":u.paginatorBottom}),alwaysShow:r.alwaysShowPaginator,onPage:e[1]||(e[1]=t=>u.onPage(t))},a.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:a.withCtx((()=>[a.renderSlot(t.$slots,"paginatorstart")])),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:a.withCtx((()=>[a.renderSlot(t.$slots,"paginatorend")])),key:"1"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow"])):a.createCommentVNode("",!0),t.$slots.footer?(a.openBlock(),a.createElementBlock("div",d,[a.renderSlot(t.$slots,"footer")])):a.createCommentVNode("",!0)],2)},module.exports=o;
1
+ "use strict";var t=require("primevue/basecomponent"),e=require("primevue/paginator"),r=require("primevue/utils"),a=require("vue");function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=o(t),i=o(e),l={name:"DataView",extends:s.default,emits:["update:first","update:rows","page"],props:{value:{type:Array,default:null},layout:{type:String,default:"list"},rows:{type:Number,default:0},first:{type:Number,default:0},totalRecords:{type:Number,default:0},paginator:{type:Boolean,default:!1},paginatorPosition:{type:String,default:"bottom"},alwaysShowPaginator:{type:Boolean,default:!0},paginatorTemplate:{type:String,default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},currentPageReportTemplate:{type:String,default:"({currentPage} of {totalPages})"},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},lazy:{type:Boolean,default:!1},dataKey:{type:String,default:null}},data(){return{d_first:this.first,d_rows:this.rows}},watch:{first(t){this.d_first=t},rows(t){this.d_rows=t},sortField(){this.resetPage()},sortOrder(){this.resetPage()}},methods:{getKey(t,e){return this.dataKey?r.ObjectUtils.resolveFieldData(t,this.dataKey):e},onPage(t){this.d_first=t.first,this.d_rows=t.rows,this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",t)},sort(){if(this.value){const t=[...this.value];return t.sort(((t,e)=>{let a=r.ObjectUtils.resolveFieldData(t,this.sortField),o=r.ObjectUtils.resolveFieldData(e,this.sortField),s=null;return s=null==a&&null!=o?-1:null!=a&&null==o?1:null==a&&null==o?0:"string"==typeof a&&"string"==typeof o?a.localeCompare(o,void 0,{numeric:!0}):a<o?-1:a>o?1:0,this.sortOrder*s})),t}return null},resetPage(){this.d_first=0,this.$emit("update:first",this.d_first)}},computed:{containerClass(){return["p-dataview p-component",{"p-dataview-list":"list"===this.layout,"p-dataview-grid":"grid"===this.layout}]},getTotalRecords(){return this.totalRecords?this.totalRecords:this.value?this.value.length:0},empty(){return!this.value||0===this.value.length},paginatorTop(){return this.paginator&&("bottom"!==this.paginatorPosition||"both"===this.paginatorPosition)},paginatorBottom(){return this.paginator&&("top"!==this.paginatorPosition||"both"===this.paginatorPosition)},items(){if(this.value&&this.value.length){let t=this.value;if(t&&t.length&&this.sortField&&(t=this.sort()),this.paginator){const e=this.lazy?0:this.d_first;return t.slice(e,e+this.d_rows)}return t}return null}},components:{DVPaginator:i.default}};l.render=function(t,e,r,o,s,i){const l=a.resolveComponent("DVPaginator");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:i.containerClass},t.ptm("root")),[t.$slots.header?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:"p-dataview-header"},t.ptm("header")),[a.renderSlot(t.$slots,"header")],16)):a.createCommentVNode("",!0),i.paginatorTop?(a.openBlock(),a.createBlock(l,{key:1,rows:s.d_rows,first:s.d_first,totalRecords:i.getTotalRecords,pageLinkSize:r.pageLinkSize,template:r.paginatorTemplate,rowsPerPageOptions:r.rowsPerPageOptions,currentPageReportTemplate:r.currentPageReportTemplate,class:a.normalizeClass({"p-paginator-top":i.paginatorTop}),alwaysShow:r.alwaysShowPaginator,onPage:e[0]||(e[0]=t=>i.onPage(t)),pt:t.ptm("paginator")},a.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:a.withCtx((()=>[a.renderSlot(t.$slots,"paginatorstart")])),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:a.withCtx((()=>[a.renderSlot(t.$slots,"paginatorend")])),key:"1"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","pt"])):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:"p-dataview-content"},t.ptm("content")),[a.createElementVNode("div",a.mergeProps({class:"p-grid p-nogutter grid grid-nogutter"},t.ptm("grid")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.items,((e,o)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:i.getKey(e,o)},[t.$slots.list&&"list"===r.layout?a.renderSlot(t.$slots,"list",{key:0,data:e,index:o}):a.createCommentVNode("",!0),t.$slots.grid&&"grid"===r.layout?a.renderSlot(t.$slots,"grid",{key:1,data:e,index:o}):a.createCommentVNode("",!0)],64)))),128)),i.empty?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:"p-col col"},t.ptm("column")),[a.createElementVNode("div",a.mergeProps({class:"p-dataview-emptymessage"},t.ptm("emptyMessage")),[a.renderSlot(t.$slots,"empty")],16)],16)):a.createCommentVNode("",!0)],16)],16),i.paginatorBottom?(a.openBlock(),a.createBlock(l,{key:2,rows:s.d_rows,first:s.d_first,totalRecords:i.getTotalRecords,pageLinkSize:r.pageLinkSize,template:r.paginatorTemplate,rowsPerPageOptions:r.rowsPerPageOptions,currentPageReportTemplate:r.currentPageReportTemplate,class:a.normalizeClass({"p-paginator-bottom":i.paginatorBottom}),alwaysShow:r.alwaysShowPaginator,onPage:e[1]||(e[1]=t=>i.onPage(t)),pt:t.ptm("root")},a.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:a.withCtx((()=>[a.renderSlot(t.$slots,"paginatorstart")])),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:a.withCtx((()=>[a.renderSlot(t.$slots,"paginatorend")])),key:"1"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","pt"])):a.createCommentVNode("",!0),t.$slots.footer?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:3,class:"p-dataview-footer"},t.ptm("footer")),[a.renderSlot(t.$slots,"footer")],16)):a.createCommentVNode("",!0)],16)},module.exports=l;
@@ -1,9 +1,11 @@
1
- import { ObjectUtils } from 'primevue/utils';
1
+ import BaseComponent from 'primevue/basecomponent';
2
2
  import Paginator from 'primevue/paginator';
3
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createBlock, createSlots, withCtx, createElementVNode, Fragment, renderList } from 'vue';
3
+ import { ObjectUtils } from 'primevue/utils';
4
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, createCommentVNode, createBlock, normalizeClass, createSlots, withCtx, createElementVNode, Fragment, renderList } from 'vue';
4
5
 
5
6
  var script = {
6
7
  name: 'DataView',
8
+ extends: BaseComponent,
7
9
  emits: ['update:first', 'update:rows', 'page'],
8
10
  props: {
9
11
  value: {
@@ -179,32 +181,17 @@ var script = {
179
181
  }
180
182
  };
181
183
 
182
- const _hoisted_1 = {
183
- key: 0,
184
- class: "p-dataview-header"
185
- };
186
- const _hoisted_2 = { class: "p-dataview-content" };
187
- const _hoisted_3 = { class: "p-grid p-nogutter grid grid-nogutter" };
188
- const _hoisted_4 = {
189
- key: 0,
190
- class: "p-col col"
191
- };
192
- const _hoisted_5 = { class: "p-dataview-emptymessage" };
193
- const _hoisted_6 = {
194
- key: 3,
195
- class: "p-dataview-footer"
196
- };
197
-
198
184
  function render(_ctx, _cache, $props, $setup, $data, $options) {
199
185
  const _component_DVPaginator = resolveComponent("DVPaginator");
200
186
 
201
- return (openBlock(), createElementBlock("div", {
202
- class: normalizeClass($options.containerClass)
203
- }, [
187
+ return (openBlock(), createElementBlock("div", mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
204
188
  (_ctx.$slots.header)
205
- ? (openBlock(), createElementBlock("div", _hoisted_1, [
189
+ ? (openBlock(), createElementBlock("div", mergeProps({
190
+ key: 0,
191
+ class: "p-dataview-header"
192
+ }, _ctx.ptm('header')), [
206
193
  renderSlot(_ctx.$slots, "header")
207
- ]))
194
+ ], 16))
208
195
  : createCommentVNode("", true),
209
196
  ($options.paginatorTop)
210
197
  ? (openBlock(), createBlock(_component_DVPaginator, {
@@ -218,7 +205,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
218
205
  currentPageReportTemplate: $props.currentPageReportTemplate,
219
206
  class: normalizeClass({ 'p-paginator-top': $options.paginatorTop }),
220
207
  alwaysShow: $props.alwaysShowPaginator,
221
- onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event)))
208
+ onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event))),
209
+ pt: _ctx.ptm('paginator')
222
210
  }, createSlots({ _: 2 }, [
223
211
  (_ctx.$slots.paginatorstart)
224
212
  ? {
@@ -238,10 +226,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
238
226
  key: "1"
239
227
  }
240
228
  : undefined
241
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow"]))
229
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow", "pt"]))
242
230
  : createCommentVNode("", true),
243
- createElementVNode("div", _hoisted_2, [
244
- createElementVNode("div", _hoisted_3, [
231
+ createElementVNode("div", mergeProps({ class: "p-dataview-content" }, _ctx.ptm('content')), [
232
+ createElementVNode("div", mergeProps({ class: "p-grid p-nogutter grid grid-nogutter" }, _ctx.ptm('grid')), [
245
233
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.items, (item, index) => {
246
234
  return (openBlock(), createElementBlock(Fragment, {
247
235
  key: $options.getKey(item, index)
@@ -263,14 +251,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
263
251
  ], 64))
264
252
  }), 128)),
265
253
  ($options.empty)
266
- ? (openBlock(), createElementBlock("div", _hoisted_4, [
267
- createElementVNode("div", _hoisted_5, [
254
+ ? (openBlock(), createElementBlock("div", mergeProps({
255
+ key: 0,
256
+ class: "p-col col"
257
+ }, _ctx.ptm('column')), [
258
+ createElementVNode("div", mergeProps({ class: "p-dataview-emptymessage" }, _ctx.ptm('emptyMessage')), [
268
259
  renderSlot(_ctx.$slots, "empty")
269
- ])
270
- ]))
260
+ ], 16)
261
+ ], 16))
271
262
  : createCommentVNode("", true)
272
- ])
273
- ]),
263
+ ], 16)
264
+ ], 16),
274
265
  ($options.paginatorBottom)
275
266
  ? (openBlock(), createBlock(_component_DVPaginator, {
276
267
  key: 2,
@@ -283,7 +274,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
283
274
  currentPageReportTemplate: $props.currentPageReportTemplate,
284
275
  class: normalizeClass({ 'p-paginator-bottom': $options.paginatorBottom }),
285
276
  alwaysShow: $props.alwaysShowPaginator,
286
- onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event)))
277
+ onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
278
+ pt: _ctx.ptm('root')
287
279
  }, createSlots({ _: 2 }, [
288
280
  (_ctx.$slots.paginatorstart)
289
281
  ? {
@@ -303,14 +295,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
303
295
  key: "1"
304
296
  }
305
297
  : undefined
306
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow"]))
298
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow", "pt"]))
307
299
  : createCommentVNode("", true),
308
300
  (_ctx.$slots.footer)
309
- ? (openBlock(), createElementBlock("div", _hoisted_6, [
301
+ ? (openBlock(), createElementBlock("div", mergeProps({
302
+ key: 3,
303
+ class: "p-dataview-footer"
304
+ }, _ctx.ptm('footer')), [
310
305
  renderSlot(_ctx.$slots, "footer")
311
- ]))
306
+ ], 16))
312
307
  : createCommentVNode("", true)
313
- ], 2))
308
+ ], 16))
314
309
  }
315
310
 
316
311
  script.render = render;
@@ -1 +1 @@
1
- import{ObjectUtils as t}from"primevue/utils";import e from"primevue/paginator";import{resolveComponent as a,openBlock as s,createElementBlock as r,normalizeClass as o,renderSlot as i,createCommentVNode as l,createBlock as n,createSlots as p,withCtx as d,createElementVNode as g,Fragment as u,renderList as h}from"vue";var m={name:"DataView",emits:["update:first","update:rows","page"],props:{value:{type:Array,default:null},layout:{type:String,default:"list"},rows:{type:Number,default:0},first:{type:Number,default:0},totalRecords:{type:Number,default:0},paginator:{type:Boolean,default:!1},paginatorPosition:{type:String,default:"bottom"},alwaysShowPaginator:{type:Boolean,default:!0},paginatorTemplate:{type:String,default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},currentPageReportTemplate:{type:String,default:"({currentPage} of {totalPages})"},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},lazy:{type:Boolean,default:!1},dataKey:{type:String,default:null}},data(){return{d_first:this.first,d_rows:this.rows}},watch:{first(t){this.d_first=t},rows(t){this.d_rows=t},sortField(){this.resetPage()},sortOrder(){this.resetPage()}},methods:{getKey(e,a){return this.dataKey?t.resolveFieldData(e,this.dataKey):a},onPage(t){this.d_first=t.first,this.d_rows=t.rows,this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",t)},sort(){if(this.value){const e=[...this.value];return e.sort(((e,a)=>{let s=t.resolveFieldData(e,this.sortField),r=t.resolveFieldData(a,this.sortField),o=null;return o=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof s&&"string"==typeof r?s.localeCompare(r,void 0,{numeric:!0}):s<r?-1:s>r?1:0,this.sortOrder*o})),e}return null},resetPage(){this.d_first=0,this.$emit("update:first",this.d_first)}},computed:{containerClass(){return["p-dataview p-component",{"p-dataview-list":"list"===this.layout,"p-dataview-grid":"grid"===this.layout}]},getTotalRecords(){return this.totalRecords?this.totalRecords:this.value?this.value.length:0},empty(){return!this.value||0===this.value.length},paginatorTop(){return this.paginator&&("bottom"!==this.paginatorPosition||"both"===this.paginatorPosition)},paginatorBottom(){return this.paginator&&("top"!==this.paginatorPosition||"both"===this.paginatorPosition)},items(){if(this.value&&this.value.length){let t=this.value;if(t&&t.length&&this.sortField&&(t=this.sort()),this.paginator){const e=this.lazy?0:this.d_first;return t.slice(e,e+this.d_rows)}return t}return null}},components:{DVPaginator:e}};const y={key:0,class:"p-dataview-header"},f={class:"p-dataview-content"},w={class:"p-grid p-nogutter grid grid-nogutter"},P={key:0,class:"p-col col"},c={class:"p-dataview-emptymessage"},v={key:3,class:"p-dataview-footer"};m.render=function(t,e,m,k,$,S){const R=a("DVPaginator");return s(),r("div",{class:o(S.containerClass)},[t.$slots.header?(s(),r("div",y,[i(t.$slots,"header")])):l("",!0),S.paginatorTop?(s(),n(R,{key:1,rows:$.d_rows,first:$.d_first,totalRecords:S.getTotalRecords,pageLinkSize:m.pageLinkSize,template:m.paginatorTemplate,rowsPerPageOptions:m.rowsPerPageOptions,currentPageReportTemplate:m.currentPageReportTemplate,class:o({"p-paginator-top":S.paginatorTop}),alwaysShow:m.alwaysShowPaginator,onPage:e[0]||(e[0]=t=>S.onPage(t))},p({_:2},[t.$slots.paginatorstart?{name:"start",fn:d((()=>[i(t.$slots,"paginatorstart")])),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:d((()=>[i(t.$slots,"paginatorend")])),key:"1"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow"])):l("",!0),g("div",f,[g("div",w,[(s(!0),r(u,null,h(S.items,((e,a)=>(s(),r(u,{key:S.getKey(e,a)},[t.$slots.list&&"list"===m.layout?i(t.$slots,"list",{key:0,data:e,index:a}):l("",!0),t.$slots.grid&&"grid"===m.layout?i(t.$slots,"grid",{key:1,data:e,index:a}):l("",!0)],64)))),128)),S.empty?(s(),r("div",P,[g("div",c,[i(t.$slots,"empty")])])):l("",!0)])]),S.paginatorBottom?(s(),n(R,{key:2,rows:$.d_rows,first:$.d_first,totalRecords:S.getTotalRecords,pageLinkSize:m.pageLinkSize,template:m.paginatorTemplate,rowsPerPageOptions:m.rowsPerPageOptions,currentPageReportTemplate:m.currentPageReportTemplate,class:o({"p-paginator-bottom":S.paginatorBottom}),alwaysShow:m.alwaysShowPaginator,onPage:e[1]||(e[1]=t=>S.onPage(t))},p({_:2},[t.$slots.paginatorstart?{name:"start",fn:d((()=>[i(t.$slots,"paginatorstart")])),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:d((()=>[i(t.$slots,"paginatorend")])),key:"1"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow"])):l("",!0),t.$slots.footer?(s(),r("div",v,[i(t.$slots,"footer")])):l("",!0)],2)};export{m as default};
1
+ import t from"primevue/basecomponent";import e from"primevue/paginator";import{ObjectUtils as a}from"primevue/utils";import{resolveComponent as r,openBlock as o,createElementBlock as s,mergeProps as i,renderSlot as n,createCommentVNode as l,createBlock as p,normalizeClass as d,createSlots as g,withCtx as u,createElementVNode as m,Fragment as h,renderList as f}from"vue";var y={name:"DataView",extends:t,emits:["update:first","update:rows","page"],props:{value:{type:Array,default:null},layout:{type:String,default:"list"},rows:{type:Number,default:0},first:{type:Number,default:0},totalRecords:{type:Number,default:0},paginator:{type:Boolean,default:!1},paginatorPosition:{type:String,default:"bottom"},alwaysShowPaginator:{type:Boolean,default:!0},paginatorTemplate:{type:String,default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},currentPageReportTemplate:{type:String,default:"({currentPage} of {totalPages})"},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},lazy:{type:Boolean,default:!1},dataKey:{type:String,default:null}},data(){return{d_first:this.first,d_rows:this.rows}},watch:{first(t){this.d_first=t},rows(t){this.d_rows=t},sortField(){this.resetPage()},sortOrder(){this.resetPage()}},methods:{getKey(t,e){return this.dataKey?a.resolveFieldData(t,this.dataKey):e},onPage(t){this.d_first=t.first,this.d_rows=t.rows,this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",t)},sort(){if(this.value){const t=[...this.value];return t.sort(((t,e)=>{let r=a.resolveFieldData(t,this.sortField),o=a.resolveFieldData(e,this.sortField),s=null;return s=null==r&&null!=o?-1:null!=r&&null==o?1:null==r&&null==o?0:"string"==typeof r&&"string"==typeof o?r.localeCompare(o,void 0,{numeric:!0}):r<o?-1:r>o?1:0,this.sortOrder*s})),t}return null},resetPage(){this.d_first=0,this.$emit("update:first",this.d_first)}},computed:{containerClass(){return["p-dataview p-component",{"p-dataview-list":"list"===this.layout,"p-dataview-grid":"grid"===this.layout}]},getTotalRecords(){return this.totalRecords?this.totalRecords:this.value?this.value.length:0},empty(){return!this.value||0===this.value.length},paginatorTop(){return this.paginator&&("bottom"!==this.paginatorPosition||"both"===this.paginatorPosition)},paginatorBottom(){return this.paginator&&("top"!==this.paginatorPosition||"both"===this.paginatorPosition)},items(){if(this.value&&this.value.length){let t=this.value;if(t&&t.length&&this.sortField&&(t=this.sort()),this.paginator){const e=this.lazy?0:this.d_first;return t.slice(e,e+this.d_rows)}return t}return null}},components:{DVPaginator:e}};y.render=function(t,e,a,y,c,w){const P=r("DVPaginator");return o(),s("div",i({class:w.containerClass},t.ptm("root")),[t.$slots.header?(o(),s("div",i({key:0,class:"p-dataview-header"},t.ptm("header")),[n(t.$slots,"header")],16)):l("",!0),w.paginatorTop?(o(),p(P,{key:1,rows:c.d_rows,first:c.d_first,totalRecords:w.getTotalRecords,pageLinkSize:a.pageLinkSize,template:a.paginatorTemplate,rowsPerPageOptions:a.rowsPerPageOptions,currentPageReportTemplate:a.currentPageReportTemplate,class:d({"p-paginator-top":w.paginatorTop}),alwaysShow:a.alwaysShowPaginator,onPage:e[0]||(e[0]=t=>w.onPage(t)),pt:t.ptm("paginator")},g({_:2},[t.$slots.paginatorstart?{name:"start",fn:u((()=>[n(t.$slots,"paginatorstart")])),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:u((()=>[n(t.$slots,"paginatorend")])),key:"1"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","pt"])):l("",!0),m("div",i({class:"p-dataview-content"},t.ptm("content")),[m("div",i({class:"p-grid p-nogutter grid grid-nogutter"},t.ptm("grid")),[(o(!0),s(h,null,f(w.items,((e,r)=>(o(),s(h,{key:w.getKey(e,r)},[t.$slots.list&&"list"===a.layout?n(t.$slots,"list",{key:0,data:e,index:r}):l("",!0),t.$slots.grid&&"grid"===a.layout?n(t.$slots,"grid",{key:1,data:e,index:r}):l("",!0)],64)))),128)),w.empty?(o(),s("div",i({key:0,class:"p-col col"},t.ptm("column")),[m("div",i({class:"p-dataview-emptymessage"},t.ptm("emptyMessage")),[n(t.$slots,"empty")],16)],16)):l("",!0)],16)],16),w.paginatorBottom?(o(),p(P,{key:2,rows:c.d_rows,first:c.d_first,totalRecords:w.getTotalRecords,pageLinkSize:a.pageLinkSize,template:a.paginatorTemplate,rowsPerPageOptions:a.rowsPerPageOptions,currentPageReportTemplate:a.currentPageReportTemplate,class:d({"p-paginator-bottom":w.paginatorBottom}),alwaysShow:a.alwaysShowPaginator,onPage:e[1]||(e[1]=t=>w.onPage(t)),pt:t.ptm("root")},g({_:2},[t.$slots.paginatorstart?{name:"start",fn:u((()=>[n(t.$slots,"paginatorstart")])),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:u((()=>[n(t.$slots,"paginatorend")])),key:"1"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","pt"])):l("",!0),t.$slots.footer?(o(),s("div",i({key:3,class:"p-dataview-footer"},t.ptm("footer")),[n(t.$slots,"footer")],16)):l("",!0)],16)};export{y as default};
@@ -1,13 +1,15 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.dataview = (function (utils, Paginator, vue) {
2
+ this.primevue.dataview = (function (BaseComponent, Paginator, utils, vue) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
6
 
7
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
7
8
  var Paginator__default = /*#__PURE__*/_interopDefaultLegacy(Paginator);
8
9
 
9
10
  var script = {
10
11
  name: 'DataView',
12
+ extends: BaseComponent__default["default"],
11
13
  emits: ['update:first', 'update:rows', 'page'],
12
14
  props: {
13
15
  value: {
@@ -183,32 +185,17 @@ this.primevue.dataview = (function (utils, Paginator, vue) {
183
185
  }
184
186
  };
185
187
 
186
- const _hoisted_1 = {
187
- key: 0,
188
- class: "p-dataview-header"
189
- };
190
- const _hoisted_2 = { class: "p-dataview-content" };
191
- const _hoisted_3 = { class: "p-grid p-nogutter grid grid-nogutter" };
192
- const _hoisted_4 = {
193
- key: 0,
194
- class: "p-col col"
195
- };
196
- const _hoisted_5 = { class: "p-dataview-emptymessage" };
197
- const _hoisted_6 = {
198
- key: 3,
199
- class: "p-dataview-footer"
200
- };
201
-
202
188
  function render(_ctx, _cache, $props, $setup, $data, $options) {
203
189
  const _component_DVPaginator = vue.resolveComponent("DVPaginator");
204
190
 
205
- return (vue.openBlock(), vue.createElementBlock("div", {
206
- class: vue.normalizeClass($options.containerClass)
207
- }, [
191
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
208
192
  (_ctx.$slots.header)
209
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
193
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
194
+ key: 0,
195
+ class: "p-dataview-header"
196
+ }, _ctx.ptm('header')), [
210
197
  vue.renderSlot(_ctx.$slots, "header")
211
- ]))
198
+ ], 16))
212
199
  : vue.createCommentVNode("", true),
213
200
  ($options.paginatorTop)
214
201
  ? (vue.openBlock(), vue.createBlock(_component_DVPaginator, {
@@ -222,7 +209,8 @@ this.primevue.dataview = (function (utils, Paginator, vue) {
222
209
  currentPageReportTemplate: $props.currentPageReportTemplate,
223
210
  class: vue.normalizeClass({ 'p-paginator-top': $options.paginatorTop }),
224
211
  alwaysShow: $props.alwaysShowPaginator,
225
- onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event)))
212
+ onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event))),
213
+ pt: _ctx.ptm('paginator')
226
214
  }, vue.createSlots({ _: 2 }, [
227
215
  (_ctx.$slots.paginatorstart)
228
216
  ? {
@@ -242,10 +230,10 @@ this.primevue.dataview = (function (utils, Paginator, vue) {
242
230
  key: "1"
243
231
  }
244
232
  : undefined
245
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow"]))
233
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow", "pt"]))
246
234
  : vue.createCommentVNode("", true),
247
- vue.createElementVNode("div", _hoisted_2, [
248
- vue.createElementVNode("div", _hoisted_3, [
235
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-dataview-content" }, _ctx.ptm('content')), [
236
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-grid p-nogutter grid grid-nogutter" }, _ctx.ptm('grid')), [
249
237
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.items, (item, index) => {
250
238
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
251
239
  key: $options.getKey(item, index)
@@ -267,14 +255,17 @@ this.primevue.dataview = (function (utils, Paginator, vue) {
267
255
  ], 64))
268
256
  }), 128)),
269
257
  ($options.empty)
270
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
271
- vue.createElementVNode("div", _hoisted_5, [
258
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
259
+ key: 0,
260
+ class: "p-col col"
261
+ }, _ctx.ptm('column')), [
262
+ vue.createElementVNode("div", vue.mergeProps({ class: "p-dataview-emptymessage" }, _ctx.ptm('emptyMessage')), [
272
263
  vue.renderSlot(_ctx.$slots, "empty")
273
- ])
274
- ]))
264
+ ], 16)
265
+ ], 16))
275
266
  : vue.createCommentVNode("", true)
276
- ])
277
- ]),
267
+ ], 16)
268
+ ], 16),
278
269
  ($options.paginatorBottom)
279
270
  ? (vue.openBlock(), vue.createBlock(_component_DVPaginator, {
280
271
  key: 2,
@@ -287,7 +278,8 @@ this.primevue.dataview = (function (utils, Paginator, vue) {
287
278
  currentPageReportTemplate: $props.currentPageReportTemplate,
288
279
  class: vue.normalizeClass({ 'p-paginator-bottom': $options.paginatorBottom }),
289
280
  alwaysShow: $props.alwaysShowPaginator,
290
- onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event)))
281
+ onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
282
+ pt: _ctx.ptm('root')
291
283
  }, vue.createSlots({ _: 2 }, [
292
284
  (_ctx.$slots.paginatorstart)
293
285
  ? {
@@ -307,18 +299,21 @@ this.primevue.dataview = (function (utils, Paginator, vue) {
307
299
  key: "1"
308
300
  }
309
301
  : undefined
310
- ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow"]))
302
+ ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow", "pt"]))
311
303
  : vue.createCommentVNode("", true),
312
304
  (_ctx.$slots.footer)
313
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
305
+ ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
306
+ key: 3,
307
+ class: "p-dataview-footer"
308
+ }, _ctx.ptm('footer')), [
314
309
  vue.renderSlot(_ctx.$slots, "footer")
315
- ]))
310
+ ], 16))
316
311
  : vue.createCommentVNode("", true)
317
- ], 2))
312
+ ], 16))
318
313
  }
319
314
 
320
315
  script.render = render;
321
316
 
322
317
  return script;
323
318
 
324
- })(primevue.utils, primevue.paginator, Vue);
319
+ })(primevue.basecomponent, primevue.paginator, primevue.utils, Vue);