primevue 3.22.4 → 3.24.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 (338) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +13 -13
  3. package/accordion/Accordion.d.ts +53 -21
  4. package/accordiontab/AccordionTab.d.ts +33 -12
  5. package/autocomplete/AutoComplete.d.ts +111 -84
  6. package/avatar/Avatar.d.ts +38 -25
  7. package/avatar/Avatar.vue +1 -1
  8. package/avatar/avatar.cjs.js +2 -1
  9. package/avatar/avatar.cjs.min.js +1 -1
  10. package/avatar/avatar.esm.js +2 -1
  11. package/avatar/avatar.esm.min.js +1 -1
  12. package/avatar/avatar.js +2 -1
  13. package/avatar/avatar.min.js +1 -1
  14. package/avatargroup/AvatarGroup.d.ts +30 -14
  15. package/badge/Badge.d.ts +34 -20
  16. package/badge/Badge.vue +16 -5
  17. package/badge/badge.cjs.js +15 -5
  18. package/badge/badge.cjs.min.js +1 -1
  19. package/badge/badge.esm.js +15 -5
  20. package/badge/badge.esm.min.js +1 -1
  21. package/badge/badge.js +16 -7
  22. package/badge/badge.min.js +1 -1
  23. package/badgedirective/BadgeDirective.d.ts +60 -1
  24. package/blockui/BlockUI.d.ts +36 -16
  25. package/breadcrumb/Breadcrumb.d.ts +37 -20
  26. package/breadcrumb/Breadcrumb.vue +1 -1
  27. package/breadcrumb/breadcrumb.cjs.js +2 -1
  28. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  29. package/breadcrumb/breadcrumb.esm.js +2 -1
  30. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  31. package/breadcrumb/breadcrumb.js +2 -1
  32. package/breadcrumb/breadcrumb.min.js +1 -1
  33. package/button/Button.d.ts +74 -17
  34. package/button/Button.vue +51 -8
  35. package/button/button.cjs.js +51 -8
  36. package/button/button.cjs.min.js +1 -1
  37. package/button/button.esm.js +51 -8
  38. package/button/button.esm.min.js +1 -1
  39. package/button/button.js +51 -8
  40. package/button/button.min.js +1 -1
  41. package/calendar/Calendar.d.ts +112 -77
  42. package/calendar/Calendar.vue +4 -4
  43. package/calendar/calendar.cjs.js +4 -4
  44. package/calendar/calendar.cjs.min.js +1 -1
  45. package/calendar/calendar.esm.js +4 -4
  46. package/calendar/calendar.esm.min.js +1 -1
  47. package/calendar/calendar.js +4 -4
  48. package/calendar/calendar.min.js +1 -1
  49. package/card/Card.d.ts +35 -15
  50. package/carousel/Carousel.d.ts +47 -29
  51. package/cascadeselect/CascadeSelect.d.ts +70 -59
  52. package/chart/Chart.d.ts +41 -23
  53. package/checkbox/Checkbox.d.ts +39 -15
  54. package/checkbox/Checkbox.vue +1 -1
  55. package/checkbox/checkbox.cjs.js +1 -1
  56. package/checkbox/checkbox.cjs.min.js +1 -1
  57. package/checkbox/checkbox.esm.js +1 -1
  58. package/checkbox/checkbox.esm.min.js +1 -1
  59. package/checkbox/checkbox.js +1 -1
  60. package/checkbox/checkbox.min.js +1 -1
  61. package/chip/Chip.d.ts +35 -14
  62. package/chips/Chips.d.ts +45 -20
  63. package/colorpicker/ColorPicker.d.ts +46 -28
  64. package/column/Column.d.ts +81 -65
  65. package/columngroup/ColumnGroup.d.ts +29 -13
  66. package/config/PrimeVue.d.ts +1 -2
  67. package/config/config.cjs.js +20 -2
  68. package/config/config.cjs.min.js +1 -1
  69. package/config/config.esm.js +20 -2
  70. package/config/config.esm.min.js +1 -1
  71. package/config/config.js +20 -2
  72. package/config/config.min.js +1 -1
  73. package/confirmationoptions/ConfirmationOptions.d.ts +15 -6
  74. package/confirmationservice/ConfirmationService.d.ts +11 -0
  75. package/confirmdialog/ConfirmDialog.d.ts +35 -17
  76. package/confirmpopup/ConfirmPopup.d.ts +32 -17
  77. package/contextmenu/ContextMenu.d.ts +51 -35
  78. package/core/core.js +368 -121
  79. package/core/core.min.js +8 -8
  80. package/datatable/DataTable.d.ts +248 -205
  81. package/datatable/DataTable.vue +78 -117
  82. package/datatable/TableBody.vue +3 -17
  83. package/datatable/datatable.cjs.js +73 -67
  84. package/datatable/datatable.cjs.min.js +1 -1
  85. package/datatable/datatable.esm.js +73 -67
  86. package/datatable/datatable.esm.min.js +1 -1
  87. package/datatable/datatable.js +73 -67
  88. package/datatable/datatable.min.js +1 -1
  89. package/dataview/DataView.d.ts +65 -47
  90. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +33 -13
  91. package/deferredcontent/DeferredContent.d.ts +30 -13
  92. package/dialog/Dialog.d.ts +67 -46
  93. package/dialog/Dialog.vue +1 -1
  94. package/dialog/dialog.cjs.js +1 -1
  95. package/dialog/dialog.cjs.min.js +1 -1
  96. package/dialog/dialog.esm.js +1 -1
  97. package/dialog/dialog.esm.min.js +1 -1
  98. package/dialog/dialog.js +1 -1
  99. package/dialog/dialog.min.js +1 -1
  100. package/dialogservice/DialogService.d.ts +13 -2
  101. package/divider/Divider.d.ts +35 -30
  102. package/dock/Dock.d.ts +49 -36
  103. package/dropdown/Dropdown.d.ts +90 -82
  104. package/dropdown/Dropdown.vue +1 -1
  105. package/dropdown/dropdown.cjs.js +1 -1
  106. package/dropdown/dropdown.cjs.min.js +1 -1
  107. package/dropdown/dropdown.esm.js +1 -1
  108. package/dropdown/dropdown.esm.min.js +1 -1
  109. package/dropdown/dropdown.js +1 -1
  110. package/dropdown/dropdown.min.js +1 -1
  111. package/dynamicdialog/DynamicDialog.d.ts +30 -10
  112. package/dynamicdialog/DynamicDialog.vue +2 -2
  113. package/dynamicdialog/dynamicdialog.cjs.js +3 -3
  114. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  115. package/dynamicdialog/dynamicdialog.esm.js +2 -2
  116. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  117. package/dynamicdialog/dynamicdialog.js +3 -3
  118. package/dynamicdialog/dynamicdialog.min.js +1 -1
  119. package/dynamicdialogoptions/DynamicDialogOptions.d.ts +28 -8
  120. package/editor/Editor.d.ts +48 -17
  121. package/fieldset/Fieldset.d.ts +43 -16
  122. package/fileupload/FileUpload.d.ts +101 -47
  123. package/focustrap/FocusTrap.d.ts +42 -3
  124. package/fullcalendar/FullCalendar.d.ts +1 -1
  125. package/galleria/Galleria.d.ts +64 -40
  126. package/image/Image.d.ts +33 -14
  127. package/inlinemessage/InlineMessage.d.ts +31 -17
  128. package/inplace/Inplace.d.ts +41 -18
  129. package/inputmask/InputMask.d.ts +41 -17
  130. package/inputnumber/InputNumber.d.ts +60 -41
  131. package/inputswitch/InputSwitch.d.ts +35 -15
  132. package/inputswitch/InputSwitch.vue +1 -0
  133. package/inputswitch/inputswitch.cjs.js +1 -1
  134. package/inputswitch/inputswitch.cjs.min.js +1 -1
  135. package/inputswitch/inputswitch.esm.js +1 -1
  136. package/inputswitch/inputswitch.esm.min.js +1 -1
  137. package/inputswitch/inputswitch.js +1 -1
  138. package/inputswitch/inputswitch.min.js +1 -1
  139. package/inputtext/InputText.d.ts +32 -12
  140. package/knob/Knob.d.ts +47 -21
  141. package/listbox/Listbox.d.ts +81 -60
  142. package/megamenu/MegaMenu.d.ts +42 -27
  143. package/megamenu/MegaMenu.vue +17 -0
  144. package/megamenu/megamenu.cjs.js +1 -1
  145. package/megamenu/megamenu.cjs.min.js +1 -1
  146. package/megamenu/megamenu.esm.js +1 -1
  147. package/megamenu/megamenu.esm.min.js +1 -1
  148. package/megamenu/megamenu.js +1 -1
  149. package/megamenu/megamenu.min.js +1 -1
  150. package/menu/Menu.d.ts +57 -28
  151. package/menu/Menu.vue +6 -0
  152. package/menu/menu.cjs.js +26 -8
  153. package/menu/menu.cjs.min.js +1 -1
  154. package/menu/menu.esm.js +27 -9
  155. package/menu/menu.esm.min.js +1 -1
  156. package/menu/menu.js +26 -8
  157. package/menu/menu.min.js +1 -1
  158. package/menubar/Menubar.d.ts +36 -19
  159. package/menuitem/MenuItem.d.ts +22 -10
  160. package/message/Message.d.ts +40 -21
  161. package/multiselect/MultiSelect.d.ts +111 -90
  162. package/orderlist/OrderList.d.ts +51 -23
  163. package/organizationchart/OrganizationChart.d.ts +43 -26
  164. package/overlaypanel/OverlayPanel.d.ts +46 -26
  165. package/package.json +2 -2
  166. package/paginator/Paginator.d.ts +49 -24
  167. package/panel/Panel.d.ts +39 -14
  168. package/panelmenu/PanelMenu.d.ts +49 -21
  169. package/password/Password.d.ts +47 -28
  170. package/picklist/PickList.d.ts +74 -33
  171. package/progressbar/ProgressBar.d.ts +34 -17
  172. package/progressspinner/ProgressSpinner.d.ts +32 -13
  173. package/radiobutton/RadioButton.d.ts +32 -14
  174. package/rating/Rating.d.ts +51 -25
  175. package/resources/themes/arya-blue/theme.css +34 -11
  176. package/resources/themes/arya-green/theme.css +34 -11
  177. package/resources/themes/arya-orange/theme.css +34 -11
  178. package/resources/themes/arya-purple/theme.css +34 -11
  179. package/resources/themes/bootstrap4-dark-blue/theme.css +34 -11
  180. package/resources/themes/bootstrap4-dark-purple/theme.css +34 -11
  181. package/resources/themes/bootstrap4-light-blue/theme.css +34 -11
  182. package/resources/themes/bootstrap4-light-purple/theme.css +34 -11
  183. package/resources/themes/fluent-light/theme.css +34 -11
  184. package/resources/themes/lara-dark-blue/theme.css +34 -11
  185. package/resources/themes/lara-dark-indigo/theme.css +34 -11
  186. package/resources/themes/lara-dark-purple/theme.css +34 -11
  187. package/resources/themes/lara-dark-teal/theme.css +34 -11
  188. package/resources/themes/lara-light-blue/theme.css +34 -11
  189. package/resources/themes/lara-light-indigo/theme.css +34 -11
  190. package/resources/themes/lara-light-purple/theme.css +34 -11
  191. package/resources/themes/lara-light-teal/theme.css +34 -11
  192. package/resources/themes/luna-amber/theme.css +34 -11
  193. package/resources/themes/luna-blue/theme.css +34 -11
  194. package/resources/themes/luna-green/theme.css +34 -11
  195. package/resources/themes/luna-pink/theme.css +34 -11
  196. package/resources/themes/md-dark-deeppurple/theme.css +34 -11
  197. package/resources/themes/md-dark-indigo/theme.css +34 -11
  198. package/resources/themes/md-light-deeppurple/theme.css +34 -11
  199. package/resources/themes/md-light-indigo/theme.css +34 -11
  200. package/resources/themes/mdc-dark-deeppurple/theme.css +34 -11
  201. package/resources/themes/mdc-dark-indigo/theme.css +34 -11
  202. package/resources/themes/mdc-light-deeppurple/theme.css +34 -11
  203. package/resources/themes/mdc-light-indigo/theme.css +34 -11
  204. package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
  205. package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
  206. package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
  207. package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
  208. package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
  209. package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
  210. package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
  211. package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
  212. package/resources/themes/mira/theme.css +6089 -0
  213. package/resources/themes/nano/theme.css +5861 -0
  214. package/resources/themes/nova/theme.css +34 -11
  215. package/resources/themes/nova-accent/theme.css +34 -11
  216. package/resources/themes/nova-alt/theme.css +34 -11
  217. package/resources/themes/nova-vue/theme.css +34 -11
  218. package/resources/themes/rhea/theme.css +34 -11
  219. package/resources/themes/saga-blue/theme.css +34 -11
  220. package/resources/themes/saga-green/theme.css +34 -11
  221. package/resources/themes/saga-orange/theme.css +34 -11
  222. package/resources/themes/saga-purple/theme.css +34 -11
  223. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  224. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  225. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  226. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  227. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  228. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  229. package/resources/themes/soho-dark/theme.css +5854 -0
  230. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  231. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  232. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  233. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  234. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  235. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  236. package/resources/themes/soho-light/theme.css +5908 -0
  237. package/resources/themes/tailwind-light/theme.css +34 -11
  238. package/resources/themes/vela-blue/theme.css +34 -11
  239. package/resources/themes/vela-green/theme.css +34 -11
  240. package/resources/themes/vela-orange/theme.css +34 -11
  241. package/resources/themes/vela-purple/theme.css +34 -11
  242. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  243. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  244. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  245. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  246. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  247. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  248. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  249. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  250. package/resources/themes/viva-dark/theme.css +6016 -0
  251. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  252. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  253. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  254. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  255. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  256. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  257. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  258. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  259. package/resources/themes/viva-light/theme.css +6016 -0
  260. package/ripple/Ripple.d.ts +24 -1
  261. package/row/Row.d.ts +28 -10
  262. package/scrollpanel/ScrollPanel.d.ts +29 -11
  263. package/scrolltop/ScrollTop.d.ts +35 -18
  264. package/selectbutton/SelectButton.d.ts +47 -27
  265. package/sidebar/Sidebar.d.ts +46 -27
  266. package/skeleton/Skeleton.d.ts +36 -22
  267. package/slider/Slider.d.ts +46 -23
  268. package/speeddial/SpeedDial.d.ts +64 -51
  269. package/splitbutton/SplitButton.d.ts +73 -24
  270. package/splitbutton/SplitButton.vue +41 -1
  271. package/splitbutton/splitbutton.cjs.js +43 -3
  272. package/splitbutton/splitbutton.cjs.min.js +1 -1
  273. package/splitbutton/splitbutton.esm.js +43 -3
  274. package/splitbutton/splitbutton.esm.min.js +1 -1
  275. package/splitbutton/splitbutton.js +43 -3
  276. package/splitbutton/splitbutton.min.js +1 -1
  277. package/splitter/Splitter.d.ts +49 -30
  278. package/splitterpanel/SplitterPanel.d.ts +28 -10
  279. package/steps/Steps.d.ts +36 -15
  280. package/styleclass/StyleClass.d.ts +72 -1
  281. package/tabmenu/TabMenu.d.ts +41 -16
  282. package/tabmenu/TabMenu.vue +1 -1
  283. package/tabmenu/tabmenu.cjs.js +1 -0
  284. package/tabmenu/tabmenu.cjs.min.js +1 -1
  285. package/tabmenu/tabmenu.esm.js +1 -0
  286. package/tabmenu/tabmenu.esm.min.js +1 -1
  287. package/tabmenu/tabmenu.js +1 -0
  288. package/tabmenu/tabmenu.min.js +1 -1
  289. package/tabpanel/TabPanel.d.ts +29 -11
  290. package/tabview/TabView.d.ts +47 -19
  291. package/tag/Tag.d.ts +33 -15
  292. package/tag/Tag.vue +1 -1
  293. package/tag/tag.cjs.js +4 -2
  294. package/tag/tag.cjs.min.js +1 -1
  295. package/tag/tag.esm.js +5 -3
  296. package/tag/tag.esm.min.js +1 -1
  297. package/tag/tag.js +4 -2
  298. package/tag/tag.min.js +1 -1
  299. package/terminal/Terminal.d.ts +30 -14
  300. package/terminalservice/TerminalService.d.ts +24 -5
  301. package/textarea/Textarea.d.ts +33 -11
  302. package/tieredmenu/TieredMenu.d.ts +45 -31
  303. package/timeline/Timeline.d.ts +41 -32
  304. package/toast/Toast.d.ts +63 -35
  305. package/toast/Toast.vue +4 -2
  306. package/toast/ToastMessage.vue +4 -4
  307. package/toast/toast.cjs.js +8 -6
  308. package/toast/toast.cjs.min.js +1 -1
  309. package/toast/toast.esm.js +8 -6
  310. package/toast/toast.esm.min.js +1 -1
  311. package/toast/toast.js +8 -6
  312. package/toast/toast.min.js +1 -1
  313. package/toastservice/ToastService.d.ts +16 -3
  314. package/togglebutton/ToggleButton.d.ts +42 -22
  315. package/toolbar/Toolbar.d.ts +34 -14
  316. package/tooltip/Tooltip.d.ts +99 -1
  317. package/tree/Tree.d.ts +55 -36
  318. package/treeselect/TreeSelect.d.ts +63 -55
  319. package/treetable/TreeTable.d.ts +121 -107
  320. package/tristatecheckbox/TriStateCheckbox.d.ts +35 -12
  321. package/ts-helpers.d.ts +2 -2
  322. package/utils/utils.cjs.js +20 -22
  323. package/utils/utils.cjs.min.js +1 -1
  324. package/utils/utils.esm.js +20 -22
  325. package/utils/utils.esm.min.js +1 -1
  326. package/utils/utils.js +20 -22
  327. package/utils/utils.min.js +1 -1
  328. package/vetur-attributes.json +62 -2
  329. package/vetur-tags.json +17 -2
  330. package/virtualscroller/VirtualScroller.d.ts +99 -43
  331. package/virtualscroller/VirtualScroller.vue +248 -72
  332. package/virtualscroller/virtualscroller.cjs.js +234 -72
  333. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  334. package/virtualscroller/virtualscroller.esm.js +234 -72
  335. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  336. package/virtualscroller/virtualscroller.js +235 -74
  337. package/virtualscroller/virtualscroller.min.js +1 -1
  338. package/web-types.json +1930 -1742
@@ -1,12 +1,19 @@
1
+ /**
2
+ *
3
+ * DataView displays data in grid or list layout with pagination and sorting features.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/dataview/)
6
+ *
7
+ * @module dataview
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type DataViewLayoutType = 'list' | 'grid' | undefined;
5
-
6
- type DataTablePositionType = 'top' | 'bottom' | 'both' | undefined;
7
-
8
- type DataViewSortFieldType = string | ((item: any) => string) | undefined;
9
-
13
+ /**
14
+ * Custom page event.
15
+ * @see {@link DataViewEmits.page}
16
+ */
10
17
  export interface DataViewPageEvent {
11
18
  /**
12
19
  * New page number
@@ -26,6 +33,9 @@ export interface DataViewPageEvent {
26
33
  pageCount: number;
27
34
  }
28
35
 
36
+ /**
37
+ * Defines valid properties in DataView component. In addition to these, all properties of HTMLDivElement can be used in this component.
38
+ */
29
39
  export interface DataViewProps {
30
40
  /**
31
41
  * An array of objects to display.
@@ -33,18 +43,17 @@ export interface DataViewProps {
33
43
  value?: any[] | undefined;
34
44
  /**
35
45
  * Layout of the items, valid values are 'list' and 'grid'.
36
- * @see DataViewLayoutType
37
- * Default value is 'list'.
46
+ * @defaultValue list
38
47
  */
39
- layout?: any;
48
+ layout?: 'list' | 'grid' | undefined;
40
49
  /**
41
50
  * Number of rows to display per page.
42
- * Default value is 0.
51
+ * @defaultValue 0
43
52
  */
44
53
  rows?: number | undefined;
45
54
  /**
46
55
  * Index of the first record to render.
47
- * Default value is 0.
56
+ * @defaultValue 0
48
57
  */
49
58
  first?: number | undefined;
50
59
  /**
@@ -53,21 +62,21 @@ export interface DataViewProps {
53
62
  totalRecords?: number | undefined;
54
63
  /**
55
64
  * When specified as true, enables the pagination.
65
+ * @defaultValue false
56
66
  */
57
67
  paginator?: boolean | undefined;
58
68
  /**
59
69
  * Position of the paginator, options are 'top','bottom' or 'both'.
60
- * @see DataTablePositionType
61
- * Default value is 'bottom'.
70
+ * @defaultValue bottom
62
71
  */
63
- paginatorPosition?: DataTablePositionType;
72
+ paginatorPosition?: 'top' | 'bottom' | 'both' | undefined;
64
73
  /**
65
74
  * Whether to show it even there is only one page.
66
- * Default value is true.
75
+ * @defaultValue true
67
76
  */
68
77
  alwaysShowPaginator?: boolean | undefined;
69
78
  /**
70
- * Template of the paginator. It can be customized using the template property using the predefined keys, default value is 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'. Here are the available elements that can be placed inside a paginator in any order.
79
+ * Template of the paginator. It can be customized using the template property using the predefined keys,
71
80
  *
72
81
  * - FirstPageLink
73
82
  * - PrevPageLink
@@ -78,11 +87,13 @@ export interface DataViewProps {
78
87
  * - JumpToPageDropdown
79
88
  * - JumpToPageInput
80
89
  * - CurrentPageReport
90
+ *
91
+ * @defaultValue FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown
81
92
  */
82
93
  paginatorTemplate?: string | undefined;
83
94
  /**
84
95
  * Number of page links to display.
85
- * Default value is 5.
96
+ * @defaultValue 5
86
97
  */
87
98
  pageLinkSize?: number | undefined;
88
99
  /**
@@ -90,7 +101,7 @@ export interface DataViewProps {
90
101
  */
91
102
  rowsPerPageOptions?: number[] | undefined;
92
103
  /**
93
- * Template of the current page report element. It displays information about the pagination state. Default value is ({currentPage} of {totalPages}) whereas available placeholders are the following;
104
+ * Template of the current page report element. It displays information about the pagination state.
94
105
  *
95
106
  * - {currentPage}
96
107
  * - {totalPages}
@@ -98,19 +109,21 @@ export interface DataViewProps {
98
109
  * - {first}
99
110
  * - {last}
100
111
  * - {totalRecords}
112
+ *
113
+ * @defaultValue '({currentPage} of {totalPages})'
101
114
  */
102
115
  currentPageReportTemplate?: string | undefined;
103
116
  /**
104
117
  * Property name or a getter function of data to use in sorting by default.
105
- * @see DataViewSortFieldType
106
118
  */
107
- sortField?: DataViewSortFieldType;
119
+ sortField?: string | ((item: any) => string) | undefined;
108
120
  /**
109
121
  * Order to sort the data by default.
110
122
  */
111
123
  sortOrder?: number | undefined;
112
124
  /**
113
125
  * Defines if data is loaded and interacted with in lazy manner.
126
+ * @defaultValue false
114
127
  */
115
128
  lazy?: boolean | undefined;
116
129
  /**
@@ -119,32 +132,35 @@ export interface DataViewProps {
119
132
  dataKey: string | undefined;
120
133
  }
121
134
 
135
+ /**
136
+ * Defines valid slots in DataView component.
137
+ */
122
138
  export interface DataViewSlots {
123
139
  /**
124
140
  * Custom header template.
125
141
  */
126
- header: () => VNode[];
142
+ header(): VNode[];
127
143
  /**
128
144
  * Custom footer template.
129
145
  */
130
- footer: () => VNode[];
146
+ footer(): VNode[];
131
147
  /**
132
148
  * Custom empty template.
133
149
  */
134
- empty: () => VNode[];
150
+ empty(): VNode[];
135
151
  /**
136
152
  * Custom paginator start template.
137
153
  */
138
- paginatorstart: () => VNode[];
154
+ paginatorstart(): VNode[];
139
155
  /**
140
156
  * Custom paginator end template.
141
157
  */
142
- paginatorend: () => VNode[];
158
+ paginatorend(): VNode[];
143
159
  /**
144
160
  * Custom list template.
145
161
  * @param {Object} scope - list slot's params.
146
162
  */
147
- list: (scope: {
163
+ list(scope: {
148
164
  /**
149
165
  * Value of the component
150
166
  */
@@ -153,12 +169,12 @@ export interface DataViewSlots {
153
169
  * Index of the grid
154
170
  */
155
171
  index: number;
156
- }) => VNode[];
172
+ }): VNode[];
157
173
  /**
158
174
  * Custom list template.
159
175
  * @param {Object} scope - list slot's params.
160
176
  */
161
- grid: (scope: {
177
+ grid(scope: {
162
178
  /**
163
179
  * Value of the component
164
180
  */
@@ -167,27 +183,42 @@ export interface DataViewSlots {
167
183
  * Index of the grid
168
184
  */
169
185
  index: number;
170
- }) => VNode[];
186
+ }): VNode[];
171
187
  }
172
188
 
173
- export declare type DataViewEmits = {
189
+ /**
190
+ * Defines valid slots in DataView component.
191
+ */
192
+ export interface DataViewEmits {
174
193
  /**
175
194
  * Emitted when the first changes.
176
195
  * @param {number} value - New value.
177
196
  */
178
- 'update:first': (value: number) => void;
197
+ 'update:first'(value: number): void;
179
198
  /**
180
199
  * Emitted when the rows changes.
181
200
  * @param {number} value - New value.
182
201
  */
183
- 'update:rows': (value: number) => void;
202
+ 'update:rows'(value: number): void;
184
203
  /**
185
204
  * Callback to invoke when page changes, the event object contains information about the new state.
186
205
  * @param {DataViewPageEvent} event - Custom page event.
187
206
  */
188
- page: (event: DataViewPageEvent) => void;
189
- };
207
+ page(event: DataViewPageEvent): void;
208
+ }
190
209
 
210
+ /**
211
+ * **PrimeVue - DataViewLayoutOptions**
212
+ *
213
+ * _DataView displays data in grid or list layout with pagination and sorting features._
214
+ *
215
+ * [Live Demo](https://www.primevue.org/dataview/)
216
+ * --- ---
217
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
218
+ *
219
+ * @group Component
220
+ *
221
+ */
191
222
  declare class DataView extends ClassComponent<DataViewProps, DataViewSlots, DataViewEmits> {}
192
223
 
193
224
  declare module '@vue/runtime-core' {
@@ -196,17 +227,4 @@ declare module '@vue/runtime-core' {
196
227
  }
197
228
  }
198
229
 
199
- /**
200
- *
201
- * DataView displays data in grid or list layout with pagination and sorting features.
202
- *
203
- * Helper API:
204
- *
205
- * - PrimeFlex
206
- *
207
- * Demos:
208
- *
209
- * - [DataView](https://www.primefaces.org/primevue/dataview)
210
- *
211
- */
212
230
  export default DataView;
@@ -1,5 +1,17 @@
1
+ /**
2
+ *
3
+ * The helper DataViewLayoutOptions component can be used to switch between the modes however this component is optional and you may use your own UI to switch modes as well.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/dataview/)
6
+ *
7
+ * @module dataviewlayoutoptions
8
+ *
9
+ */
1
10
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
11
 
12
+ /**
13
+ * Defines valid properties in DataViewLayoutOptions component.
14
+ */
3
15
  export interface DataViewLayoutOptionsProps {
4
16
  /**
5
17
  * Value of the component.
@@ -7,16 +19,34 @@ export interface DataViewLayoutOptionsProps {
7
19
  modelValue?: string | undefined;
8
20
  }
9
21
 
22
+ /**
23
+ * Defines valid propslotserties in DataViewLayoutOptions component.
24
+ */
10
25
  export interface DataViewLayoutOptionsSlots {}
11
26
 
12
- export declare type DataViewLayoutOptionsEmits = {
27
+ /**
28
+ * Defines valid emits in DataViewLayoutOptions component.
29
+ */
30
+ export interface DataViewLayoutOptionsEmits {
13
31
  /**
14
32
  * Emitted when the value changes.
15
33
  * @param {*} value - New value.
16
34
  */
17
- 'update:modelValue': (value: string) => void;
18
- };
35
+ 'update:modelValue'(value: string): void;
36
+ }
19
37
 
38
+ /**
39
+ * **PrimeVue - DataViewLayoutOptions**
40
+ *
41
+ * _The helper DataViewLayoutOptions component can be used to switch between the modes however this component is optional and you may use your own UI to switch modes as well._
42
+ *
43
+ * [Live Demo](https://www.primevue.org/dataview/)
44
+ * --- ---
45
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
46
+ *
47
+ * @group Component
48
+ *
49
+ */
20
50
  declare class DataViewLayoutOptions extends ClassComponent<DataViewLayoutOptionsProps, DataViewLayoutOptionsSlots, DataViewLayoutOptionsEmits> {}
21
51
 
22
52
  declare module '@vue/runtime-core' {
@@ -25,14 +55,4 @@ declare module '@vue/runtime-core' {
25
55
  }
26
56
  }
27
57
 
28
- /**
29
- *
30
- * When both layout modes are enabled in DataView, a UI element would be necessary to let the user toggle between the view.
31
- * DataViewLayoutOptions is a helper component to display a buttonset to choose the layout mode in DataView.
32
- *
33
- * Demos:
34
- *
35
- * - [DataViewLayoutOptions](https://www.primefaces.org/primevue/dataview)
36
- *
37
- */
38
58
  export default DataViewLayoutOptions;
@@ -1,22 +1,48 @@
1
+ /**
2
+ *
3
+ * DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/deferredcontent/)
6
+ *
7
+ * @module deferredcontent
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
13
  export interface DeferredContentProps {}
5
14
 
15
+ /**
16
+ * Defines valid slots in DeferredContent component.
17
+ */
6
18
  export interface DeferredContentSlots {
7
19
  /**
8
20
  * Default content slot.
9
21
  */
10
- default: () => VNode[];
22
+ default(): VNode[];
11
23
  }
12
24
 
13
- export declare type DeferredContentEmits = {
25
+ /**
26
+ * Defines valid emits in DeferredContent component.
27
+ */
28
+ export interface DeferredContentEmits {
14
29
  /**
15
30
  * Callback to invoke when deferred content is loaded.
16
31
  */
17
- load: () => void;
18
- };
32
+ load(): void;
33
+ }
19
34
 
35
+ /**
36
+ * **PrimeVue - DeferredContent**
37
+ *
38
+ * _DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll._
39
+ *
40
+ * [Live Demo](https://www.primevue.org/deferredcontent/)
41
+ * --- ---
42
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
43
+ *
44
+ * @group Component
45
+ */
20
46
  declare class DeferredContent extends ClassComponent<DeferredContentProps, DeferredContentSlots, DeferredContentEmits> {}
21
47
 
22
48
  declare module '@vue/runtime-core' {
@@ -25,13 +51,4 @@ declare module '@vue/runtime-core' {
25
51
  }
26
52
  }
27
53
 
28
- /**
29
- *
30
- * DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll.
31
- *
32
- * Demos:
33
- *
34
- * - [DeferredContent](https://www.primefaces.org/primevue/deferredcontent)
35
- *
36
- */
37
54
  export default DeferredContent;
@@ -1,10 +1,18 @@
1
+ /**
2
+ *
3
+ * Dialog is a container to display content in an overlay window.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/dialog)
6
+ *
7
+ * @module dialog
8
+ *
9
+ */
1
10
  import { HTMLAttributes, VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type DialogPositionType = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright' | undefined;
5
-
6
- type DialogAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
7
-
13
+ /**
14
+ * Custom breakpoint metadata.
15
+ */
8
16
  export interface DialogBreakpoints {
9
17
  /**
10
18
  * Breakpoint for responsive mode.
@@ -24,6 +32,9 @@ export interface DialogBreakpoints {
24
32
  [key: string]: string;
25
33
  }
26
34
 
35
+ /**
36
+ * Defines valid properties in Dialog component.
37
+ */
27
38
  export interface DialogProps {
28
39
  /**
29
40
  * Title content of the dialog.
@@ -35,10 +46,12 @@ export interface DialogProps {
35
46
  footer?: string | undefined;
36
47
  /**
37
48
  * Specifies the visibility of the dialog.
49
+ * @defaultValue false
38
50
  */
39
51
  visible?: boolean | undefined;
40
52
  /**
41
53
  * Defines if background should be blocked when dialog is displayed.
54
+ * @defaultValue false
42
55
  */
43
56
  modal?: boolean | undefined;
44
57
  /**
@@ -55,149 +68,166 @@ export interface DialogProps {
55
68
  contentProps?: HTMLAttributes | undefined;
56
69
  /**
57
70
  * When enabled dialog is displayed in RTL direction.
71
+ * @defaultValue false
58
72
  */
59
73
  rtl?: boolean | undefined;
60
74
  /**
61
75
  * Adds a close icon to the header to hide the dialog.
62
- * Default value is true.
76
+ * @defaultValue true
63
77
  */
64
78
  closable?: boolean | undefined;
65
79
  /**
66
80
  * Specifies if clicking the modal background should hide the dialog.
81
+ * @defaultValue false
67
82
  */
68
83
  dismissableMask?: boolean | undefined;
69
84
  /**
70
85
  * Specifies if pressing escape key should hide the dialog.
71
- * Default value is true.
86
+ * @defaultValue true
72
87
  */
73
88
  closeOnEscape?: boolean | undefined;
74
89
  /**
75
90
  * Whether to show the header or not.
76
- * Default value is true.
91
+ * @defaultValue true
77
92
  */
78
93
  showHeader?: boolean | undefined;
79
94
  /**
80
95
  * Base zIndex value to use in layering.
81
- * Default value is 0.
96
+ * @defaultValue 0
82
97
  */
83
98
  baseZIndex?: number | undefined;
84
99
  /**
85
100
  * Whether to automatically manage layering.
86
- * Default value is true.
101
+ * @defaultValue true
87
102
  */
88
103
  autoZIndex?: boolean | undefined;
89
104
  /**
90
- * Position of the dialog, options are 'center', 'top', 'bottom', 'left', 'right', 'topleft', 'topright', 'bottomleft' or 'bottomright'.
91
- * @see DialogPositionType
92
- * Default value is 'center'.
105
+ * Position of the dialog.
106
+ * @defaultValue center
93
107
  */
94
- position?: DialogPositionType;
108
+ position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright' | undefined;
95
109
  /**
96
110
  * Whether the dialog can be displayed full screen.
111
+ * @defaultValue false
97
112
  */
98
113
  maximizable?: boolean | undefined;
99
114
  /**
100
115
  * Object literal to define widths per screen size.
101
- * @see DialogBreakpoints
102
116
  */
103
117
  breakpoints?: DialogBreakpoints;
104
118
  /**
105
119
  * Enables dragging to change the position using header.
106
- * Default value is true.
120
+ * @defaultValue true
107
121
  */
108
122
  draggable?: boolean | undefined;
109
123
  /**
110
124
  * Keeps dialog in the viewport when dragging.
111
- * Default value is true.
125
+ * @defaultValue true
112
126
  */
113
127
  keepInViewPort?: boolean | undefined;
114
128
  /**
115
129
  * Minimum value for the left coordinate of dialog in dragging.
116
- * Default value is 0.
130
+ * @defaultValue 0.
117
131
  */
118
132
  minX?: number | undefined;
119
133
  /**
120
134
  * Minimum value for the top coordinate of dialog in dragging.
121
- * Default value is 0.
135
+ * @defaultValue 0
122
136
  */
123
137
  minY?: number | undefined;
124
138
  /**
125
- * A valid query selector or an HTMLElement to specify where the dialog gets attached. Special keywords are 'body' for document body and 'self' for the element itself.
126
- * @see DialogAppendToType
127
- * Default value is 'body'.
139
+ * A valid query selector or an HTMLElement to specify where the dialog gets attached.
140
+ * @defaultValue body
128
141
  */
129
- appendTo?: DialogAppendToType;
142
+ appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
130
143
  /**
131
144
  * Style of the dynamic dialog.
132
145
  */
133
146
  style?: any;
134
147
  /**
135
148
  * Icon to display in the dialog close button.
136
- * Default value is 'pi pi-times'.
149
+ * @defaultValue pi pi-times
137
150
  */
138
151
  closeIcon?: string | undefined;
139
152
  /**
140
153
  * Icon to display in the dialog maximize button when dialog is not maximized.
141
- * Default value is 'pi pi-window-maximize'.
154
+ * @defaultValue pi pi-window-maximize
142
155
  */
143
156
  maximizeIcon?: string | undefined;
144
157
  /**
145
158
  * Icon to display in the dialog maximize button when dialog is maximized.
146
- * Default value is 'pi pi-window-minimize'.
159
+ * @defaultValue pi pi-window-minimize
147
160
  */
148
161
  minimizeIcon?: string | undefined;
149
162
  }
150
163
 
164
+ /**
165
+ * Defines valid slots in Dialog component.
166
+ */
151
167
  export interface DialogSlots {
152
168
  /**
153
169
  * Default content slot.
154
170
  */
155
- default: () => VNode[];
171
+ default(): VNode[];
156
172
  /**
157
173
  * Custom header template.
158
174
  */
159
- header: () => VNode[];
175
+ header(): VNode[];
160
176
  /**
161
177
  * Custom footer template.
162
178
  */
163
- footer: () => VNode[];
179
+ footer(): VNode[];
164
180
  }
165
181
 
166
- export declare type DialogEmits = {
182
+ /**
183
+ * Defines valid emits in Dialog component.
184
+ */
185
+ export interface DialogEmits {
167
186
  /**
168
187
  * Emitted when the visible changes.
169
188
  * @param {boolean} value - New value.
170
189
  */
171
- 'update:visible': (value: boolean) => void;
190
+ 'update:visible'(value: boolean): void;
172
191
  /**
173
192
  * Callback to invoke when dialog is hidden.
174
193
  */
175
- hide: () => void;
194
+ hide(): void;
176
195
  /**
177
196
  * Callback to invoke after dialog is hidden.
178
197
  */
179
- 'after-hide': () => void;
198
+ 'after-hide'(): void;
180
199
  /**
181
200
  * Callback to invoke when dialog is shown.
182
201
  */
183
- show: () => void;
202
+ show(): void;
184
203
  /**
185
204
  * Fired when a dialog gets maximized.
186
205
  * @param {event} event - Browser event.
187
206
  */
188
- maximize: (event: Event) => void;
207
+ maximize(event: Event): void;
189
208
  /**
190
209
  * Fired when a dialog gets unmaximized.
191
210
  * @param {event} event - Browser event.
192
211
  */
193
- unmaximize: (event: Event) => void;
212
+ unmaximize(event: Event): void;
194
213
  /**
195
214
  * Fired when a dialog drag completes.
196
215
  * @param {event} event - Browser event.
197
216
  */
198
- dragend: (event: Event) => void;
199
- };
217
+ dragend(event: Event): void;
218
+ }
200
219
 
220
+ /**
221
+ * **PrimeVue - Dialog**
222
+ *
223
+ * _Dialog is a container to display content in an overlay window._
224
+ *
225
+ * [Live Demo](https://www.primevue.org/dialog/)
226
+ * --- ---
227
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
228
+ *
229
+ * @group Component
230
+ */
201
231
  declare class Dialog extends ClassComponent<DialogProps, DialogSlots, DialogEmits> {}
202
232
 
203
233
  declare module '@vue/runtime-core' {
@@ -206,13 +236,4 @@ declare module '@vue/runtime-core' {
206
236
  }
207
237
  }
208
238
 
209
- /**
210
- *
211
- * Dialog is a container to display content in an overlay window.
212
- *
213
- * Demos:
214
- *
215
- * - [Dialog](https://www.primefaces.org/primevue/dialog)
216
- *
217
- */
218
239
  export default Dialog;
package/dialog/Dialog.vue CHANGED
@@ -231,7 +231,7 @@ export default {
231
231
  this.$emit('after-hide');
232
232
  },
233
233
  onMaskClick(event) {
234
- if (this.dismissableMask && this.closable && this.modal && this.mask === event.target) {
234
+ if (this.dismissableMask && this.modal && this.mask === event.target) {
235
235
  this.close();
236
236
  }
237
237
  },
@@ -208,7 +208,7 @@ var script = {
208
208
  this.$emit('after-hide');
209
209
  },
210
210
  onMaskClick(event) {
211
- if (this.dismissableMask && this.closable && this.modal && this.mask === event.target) {
211
+ if (this.dismissableMask && this.modal && this.mask === event.target) {
212
212
  this.close();
213
213
  }
214
214
  },