primevue 3.23.0 → 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 (266) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +12 -12
  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/button/Button.d.ts +74 -17
  27. package/button/Button.vue +51 -8
  28. package/button/button.cjs.js +51 -8
  29. package/button/button.cjs.min.js +1 -1
  30. package/button/button.esm.js +51 -8
  31. package/button/button.esm.min.js +1 -1
  32. package/button/button.js +51 -8
  33. package/button/button.min.js +1 -1
  34. package/calendar/Calendar.d.ts +112 -77
  35. package/card/Card.d.ts +35 -15
  36. package/carousel/Carousel.d.ts +47 -29
  37. package/cascadeselect/CascadeSelect.d.ts +70 -59
  38. package/chart/Chart.d.ts +41 -23
  39. package/checkbox/Checkbox.d.ts +39 -15
  40. package/checkbox/Checkbox.vue +1 -1
  41. package/checkbox/checkbox.cjs.js +1 -1
  42. package/checkbox/checkbox.cjs.min.js +1 -1
  43. package/checkbox/checkbox.esm.js +1 -1
  44. package/checkbox/checkbox.esm.min.js +1 -1
  45. package/checkbox/checkbox.js +1 -1
  46. package/checkbox/checkbox.min.js +1 -1
  47. package/chip/Chip.d.ts +35 -14
  48. package/chips/Chips.d.ts +45 -20
  49. package/colorpicker/ColorPicker.d.ts +46 -28
  50. package/column/Column.d.ts +81 -65
  51. package/columngroup/ColumnGroup.d.ts +29 -13
  52. package/config/config.cjs.js +20 -1
  53. package/config/config.cjs.min.js +1 -1
  54. package/config/config.esm.js +20 -1
  55. package/config/config.esm.min.js +1 -1
  56. package/config/config.js +20 -1
  57. package/config/config.min.js +1 -1
  58. package/confirmationoptions/ConfirmationOptions.d.ts +15 -6
  59. package/confirmationservice/ConfirmationService.d.ts +11 -0
  60. package/confirmdialog/ConfirmDialog.d.ts +35 -17
  61. package/confirmpopup/ConfirmPopup.d.ts +32 -17
  62. package/contextmenu/ContextMenu.d.ts +51 -35
  63. package/core/core.js +339 -104
  64. package/core/core.min.js +6 -6
  65. package/datatable/DataTable.d.ts +248 -205
  66. package/datatable/DataTable.vue +72 -111
  67. package/datatable/TableBody.vue +3 -17
  68. package/datatable/datatable.cjs.js +63 -57
  69. package/datatable/datatable.cjs.min.js +1 -1
  70. package/datatable/datatable.esm.js +63 -57
  71. package/datatable/datatable.esm.min.js +1 -1
  72. package/datatable/datatable.js +63 -57
  73. package/datatable/datatable.min.js +1 -1
  74. package/dataview/DataView.d.ts +65 -47
  75. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +33 -13
  76. package/deferredcontent/DeferredContent.d.ts +30 -13
  77. package/dialog/Dialog.d.ts +67 -46
  78. package/dialogservice/DialogService.d.ts +13 -2
  79. package/divider/Divider.d.ts +35 -30
  80. package/dock/Dock.d.ts +49 -36
  81. package/dropdown/Dropdown.d.ts +90 -82
  82. package/dropdown/Dropdown.vue +1 -1
  83. package/dropdown/dropdown.cjs.js +1 -1
  84. package/dropdown/dropdown.cjs.min.js +1 -1
  85. package/dropdown/dropdown.esm.js +1 -1
  86. package/dropdown/dropdown.esm.min.js +1 -1
  87. package/dropdown/dropdown.js +1 -1
  88. package/dropdown/dropdown.min.js +1 -1
  89. package/dynamicdialog/DynamicDialog.d.ts +30 -10
  90. package/dynamicdialog/DynamicDialog.vue +2 -2
  91. package/dynamicdialog/dynamicdialog.cjs.js +3 -3
  92. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  93. package/dynamicdialog/dynamicdialog.esm.js +2 -2
  94. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  95. package/dynamicdialog/dynamicdialog.js +3 -3
  96. package/dynamicdialog/dynamicdialog.min.js +1 -1
  97. package/dynamicdialogoptions/DynamicDialogOptions.d.ts +28 -8
  98. package/editor/Editor.d.ts +48 -17
  99. package/fieldset/Fieldset.d.ts +43 -16
  100. package/fileupload/FileUpload.d.ts +101 -47
  101. package/focustrap/FocusTrap.d.ts +42 -3
  102. package/fullcalendar/FullCalendar.d.ts +1 -1
  103. package/galleria/Galleria.d.ts +64 -40
  104. package/image/Image.d.ts +33 -14
  105. package/inlinemessage/InlineMessage.d.ts +31 -17
  106. package/inplace/Inplace.d.ts +41 -18
  107. package/inputmask/InputMask.d.ts +41 -17
  108. package/inputnumber/InputNumber.d.ts +60 -41
  109. package/inputswitch/InputSwitch.d.ts +35 -15
  110. package/inputswitch/InputSwitch.vue +1 -0
  111. package/inputswitch/inputswitch.cjs.js +1 -1
  112. package/inputswitch/inputswitch.cjs.min.js +1 -1
  113. package/inputswitch/inputswitch.esm.js +1 -1
  114. package/inputswitch/inputswitch.esm.min.js +1 -1
  115. package/inputswitch/inputswitch.js +1 -1
  116. package/inputswitch/inputswitch.min.js +1 -1
  117. package/inputtext/InputText.d.ts +32 -12
  118. package/knob/Knob.d.ts +47 -21
  119. package/listbox/Listbox.d.ts +81 -60
  120. package/megamenu/MegaMenu.d.ts +42 -27
  121. package/megamenu/MegaMenu.vue +17 -0
  122. package/megamenu/megamenu.cjs.js +1 -1
  123. package/megamenu/megamenu.cjs.min.js +1 -1
  124. package/megamenu/megamenu.esm.js +1 -1
  125. package/megamenu/megamenu.esm.min.js +1 -1
  126. package/megamenu/megamenu.js +1 -1
  127. package/megamenu/megamenu.min.js +1 -1
  128. package/menu/Menu.d.ts +51 -30
  129. package/menubar/Menubar.d.ts +36 -19
  130. package/menuitem/MenuItem.d.ts +22 -10
  131. package/message/Message.d.ts +40 -21
  132. package/multiselect/MultiSelect.d.ts +111 -90
  133. package/orderlist/OrderList.d.ts +51 -23
  134. package/organizationchart/OrganizationChart.d.ts +43 -26
  135. package/overlaypanel/OverlayPanel.d.ts +46 -26
  136. package/package.json +2 -2
  137. package/paginator/Paginator.d.ts +49 -24
  138. package/panel/Panel.d.ts +39 -14
  139. package/panelmenu/PanelMenu.d.ts +49 -21
  140. package/password/Password.d.ts +47 -28
  141. package/picklist/PickList.d.ts +74 -33
  142. package/progressbar/ProgressBar.d.ts +34 -17
  143. package/progressspinner/ProgressSpinner.d.ts +32 -13
  144. package/radiobutton/RadioButton.d.ts +32 -14
  145. package/rating/Rating.d.ts +51 -25
  146. package/resources/themes/arya-blue/theme.css +34 -11
  147. package/resources/themes/arya-green/theme.css +34 -11
  148. package/resources/themes/arya-orange/theme.css +34 -11
  149. package/resources/themes/arya-purple/theme.css +34 -11
  150. package/resources/themes/bootstrap4-dark-blue/theme.css +34 -11
  151. package/resources/themes/bootstrap4-dark-purple/theme.css +34 -11
  152. package/resources/themes/bootstrap4-light-blue/theme.css +34 -11
  153. package/resources/themes/bootstrap4-light-purple/theme.css +34 -11
  154. package/resources/themes/fluent-light/theme.css +34 -11
  155. package/resources/themes/lara-dark-blue/theme.css +34 -11
  156. package/resources/themes/lara-dark-indigo/theme.css +34 -11
  157. package/resources/themes/lara-dark-purple/theme.css +34 -11
  158. package/resources/themes/lara-dark-teal/theme.css +34 -11
  159. package/resources/themes/lara-light-blue/theme.css +34 -11
  160. package/resources/themes/lara-light-indigo/theme.css +34 -11
  161. package/resources/themes/lara-light-purple/theme.css +34 -11
  162. package/resources/themes/lara-light-teal/theme.css +34 -11
  163. package/resources/themes/luna-amber/theme.css +34 -11
  164. package/resources/themes/luna-blue/theme.css +34 -11
  165. package/resources/themes/luna-green/theme.css +34 -11
  166. package/resources/themes/luna-pink/theme.css +34 -11
  167. package/resources/themes/md-dark-deeppurple/theme.css +34 -11
  168. package/resources/themes/md-dark-indigo/theme.css +34 -11
  169. package/resources/themes/md-light-deeppurple/theme.css +34 -11
  170. package/resources/themes/md-light-indigo/theme.css +34 -11
  171. package/resources/themes/mdc-dark-deeppurple/theme.css +34 -11
  172. package/resources/themes/mdc-dark-indigo/theme.css +34 -11
  173. package/resources/themes/mdc-light-deeppurple/theme.css +34 -11
  174. package/resources/themes/mdc-light-indigo/theme.css +34 -11
  175. package/resources/themes/mira/theme.css +34 -11
  176. package/resources/themes/nano/theme.css +34 -11
  177. package/resources/themes/nova/theme.css +34 -11
  178. package/resources/themes/nova-accent/theme.css +34 -11
  179. package/resources/themes/nova-alt/theme.css +34 -11
  180. package/resources/themes/nova-vue/theme.css +34 -11
  181. package/resources/themes/rhea/theme.css +34 -11
  182. package/resources/themes/saga-blue/theme.css +34 -11
  183. package/resources/themes/saga-green/theme.css +34 -11
  184. package/resources/themes/saga-orange/theme.css +34 -11
  185. package/resources/themes/saga-purple/theme.css +34 -11
  186. package/resources/themes/soho-dark/theme.css +34 -11
  187. package/resources/themes/soho-light/theme.css +34 -11
  188. package/resources/themes/tailwind-light/theme.css +34 -11
  189. package/resources/themes/vela-blue/theme.css +34 -11
  190. package/resources/themes/vela-green/theme.css +34 -11
  191. package/resources/themes/vela-orange/theme.css +34 -11
  192. package/resources/themes/vela-purple/theme.css +34 -11
  193. package/resources/themes/viva-dark/theme.css +34 -11
  194. package/resources/themes/viva-light/theme.css +34 -11
  195. package/ripple/Ripple.d.ts +24 -1
  196. package/row/Row.d.ts +28 -10
  197. package/scrollpanel/ScrollPanel.d.ts +29 -11
  198. package/scrolltop/ScrollTop.d.ts +35 -18
  199. package/selectbutton/SelectButton.d.ts +47 -27
  200. package/sidebar/Sidebar.d.ts +46 -27
  201. package/skeleton/Skeleton.d.ts +36 -22
  202. package/slider/Slider.d.ts +46 -23
  203. package/speeddial/SpeedDial.d.ts +64 -51
  204. package/splitbutton/SplitButton.d.ts +73 -24
  205. package/splitbutton/SplitButton.vue +41 -1
  206. package/splitbutton/splitbutton.cjs.js +43 -3
  207. package/splitbutton/splitbutton.cjs.min.js +1 -1
  208. package/splitbutton/splitbutton.esm.js +43 -3
  209. package/splitbutton/splitbutton.esm.min.js +1 -1
  210. package/splitbutton/splitbutton.js +43 -3
  211. package/splitbutton/splitbutton.min.js +1 -1
  212. package/splitter/Splitter.d.ts +49 -30
  213. package/splitterpanel/SplitterPanel.d.ts +28 -10
  214. package/steps/Steps.d.ts +36 -15
  215. package/styleclass/StyleClass.d.ts +72 -1
  216. package/tabmenu/TabMenu.d.ts +41 -16
  217. package/tabmenu/TabMenu.vue +1 -1
  218. package/tabmenu/tabmenu.cjs.js +1 -0
  219. package/tabmenu/tabmenu.cjs.min.js +1 -1
  220. package/tabmenu/tabmenu.esm.js +1 -0
  221. package/tabmenu/tabmenu.esm.min.js +1 -1
  222. package/tabmenu/tabmenu.js +1 -0
  223. package/tabmenu/tabmenu.min.js +1 -1
  224. package/tabpanel/TabPanel.d.ts +29 -11
  225. package/tabview/TabView.d.ts +47 -19
  226. package/tag/Tag.d.ts +33 -15
  227. package/terminal/Terminal.d.ts +30 -14
  228. package/terminalservice/TerminalService.d.ts +24 -5
  229. package/textarea/Textarea.d.ts +33 -11
  230. package/tieredmenu/TieredMenu.d.ts +45 -31
  231. package/timeline/Timeline.d.ts +41 -32
  232. package/toast/Toast.d.ts +63 -35
  233. package/toast/Toast.vue +4 -2
  234. package/toast/ToastMessage.vue +4 -4
  235. package/toast/toast.cjs.js +8 -6
  236. package/toast/toast.cjs.min.js +1 -1
  237. package/toast/toast.esm.js +8 -6
  238. package/toast/toast.esm.min.js +1 -1
  239. package/toast/toast.js +8 -6
  240. package/toast/toast.min.js +1 -1
  241. package/toastservice/ToastService.d.ts +16 -3
  242. package/togglebutton/ToggleButton.d.ts +42 -22
  243. package/toolbar/Toolbar.d.ts +34 -14
  244. package/tooltip/Tooltip.d.ts +99 -1
  245. package/tree/Tree.d.ts +55 -36
  246. package/treeselect/TreeSelect.d.ts +63 -55
  247. package/treetable/TreeTable.d.ts +121 -107
  248. package/tristatecheckbox/TriStateCheckbox.d.ts +35 -12
  249. package/ts-helpers.d.ts +2 -2
  250. package/utils/utils.cjs.js +18 -15
  251. package/utils/utils.cjs.min.js +1 -1
  252. package/utils/utils.esm.js +18 -15
  253. package/utils/utils.esm.min.js +1 -1
  254. package/utils/utils.js +18 -15
  255. package/utils/utils.min.js +1 -1
  256. package/vetur-attributes.json +62 -2
  257. package/vetur-tags.json +17 -2
  258. package/virtualscroller/VirtualScroller.d.ts +99 -43
  259. package/virtualscroller/VirtualScroller.vue +248 -72
  260. package/virtualscroller/virtualscroller.cjs.js +234 -72
  261. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  262. package/virtualscroller/virtualscroller.esm.js +234 -72
  263. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  264. package/virtualscroller/virtualscroller.js +235 -74
  265. package/virtualscroller/virtualscroller.min.js +1 -1
  266. package/web-types.json +1922 -1744
@@ -1,35 +1,61 @@
1
+ /**
2
+ *
3
+ * ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/scrolltop/)
6
+ *
7
+ * @module scrolltop
8
+ *
9
+ */
1
10
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
11
 
3
- type ScrollTopTargetType = 'window' | 'parent' | undefined;
4
-
12
+ /**
13
+ * Defines valid properties in ScrollTop component.
14
+ */
5
15
  export interface ScrollTopProps {
6
16
  /**
7
17
  * Target of the ScrollTop.
8
- * @see ScrollTopTargetType
9
- * Default value is 'window'.
18
+ * @defaultValue window
10
19
  */
11
- target?: ScrollTopTargetType;
20
+ target?: 'window' | 'parent' | undefined;
12
21
  /**
13
22
  * Defines the threshold value of the vertical scroll position of the target to toggle the visibility.
14
- * Default value is 400.
23
+ * @defaultValue 400
15
24
  */
16
25
  threshold?: number | undefined;
17
26
  /**
18
27
  * Icon to display.
19
- * Default value is 'pi pi-chevron-up'.
28
+ * @defaultValue pi pi-chevron-up
20
29
  */
21
30
  icon?: string | undefined;
22
31
  /**
23
32
  * Defines the scrolling behaviour, 'smooth' adds an animation and 'auto' scrolls with a jump.
24
- * Default value is 'smooth'.
33
+ * @defaultValue smooth
25
34
  */
26
35
  behavior?: string | undefined;
27
36
  }
28
37
 
38
+ /**
39
+ * Defines valid slots in ScrollTop component.
40
+ */
29
41
  export interface ScrollTopSlots {}
30
42
 
31
- export declare type ScrollTopEmits = {};
43
+ /**
44
+ * Defines valid emits in ScrollTop component.
45
+ */
46
+ export interface ScrollTopEmits {}
32
47
 
48
+ /**
49
+ * **PrimeVue - ScrollTop**
50
+ *
51
+ * _ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly._
52
+ *
53
+ * [Live Demo](https://www.primevue.org/scrolltop/)
54
+ * --- ---
55
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
56
+ *
57
+ * @group Component
58
+ */
33
59
  declare class ScrollTop extends ClassComponent<ScrollTopProps, ScrollTopSlots, ScrollTopEmits> {}
34
60
 
35
61
  declare module '@vue/runtime-core' {
@@ -38,13 +64,4 @@ declare module '@vue/runtime-core' {
38
64
  }
39
65
  }
40
66
 
41
- /**
42
- *
43
- * ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly.
44
- *
45
- * Demos:
46
- *
47
- * - [ScrollTop](https://www.primefaces.org/primevue/scrolltop)
48
- *
49
- */
50
67
  export default ScrollTop;
@@ -1,12 +1,19 @@
1
+ /**
2
+ *
3
+ * SelectButton is used to choose single or multiple items from a list using buttons.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/selectbutton/)
6
+ *
7
+ * @module selectbutton
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type SelectButtonOptionLabelType = string | ((data: any) => string) | undefined;
5
-
6
- type SelectButtonOptionValueType = string | ((data: any) => any) | undefined;
7
-
8
- type SelectButtonOptionDisabledType = string | ((data: any) => boolean) | undefined;
9
-
13
+ /**
14
+ * Custom change event.
15
+ * @see {@link SelectButtonEmits.change}
16
+ */
10
17
  export interface SelectButtonChangeEvent {
11
18
  /**
12
19
  * Browser event.
@@ -18,6 +25,9 @@ export interface SelectButtonChangeEvent {
18
25
  value: any;
19
26
  }
20
27
 
28
+ /**
29
+ * Defines valid properties in SelectButton component.
30
+ */
21
31
  export interface SelectButtonProps {
22
32
  /**
23
33
  * Value of the component.
@@ -30,21 +40,23 @@ export interface SelectButtonProps {
30
40
  /**
31
41
  * Property name or getter function to use as the label of an option.
32
42
  */
33
- optionLabel?: SelectButtonOptionLabelType;
43
+ optionLabel?: string | ((data: any) => string) | undefined;
34
44
  /**
35
45
  * Property name or getter function to use as the value of an option, defaults to the option itself when not defined.
36
46
  */
37
- optionValue?: SelectButtonOptionValueType;
47
+ optionValue?: string | ((data: any) => any) | undefined;
38
48
  /**
39
49
  * Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
40
50
  */
41
- optionDisabled?: SelectButtonOptionDisabledType;
51
+ optionDisabled?: string | ((data: any) => boolean) | undefined;
42
52
  /**
43
53
  * When specified, allows selecting multiple values.
54
+ * @defaultValue false
44
55
  */
45
56
  multiple?: boolean | undefined;
46
57
  /**
47
58
  * When present, it specifies that the element should be disabled.
59
+ * @defaultValue false
48
60
  */
49
61
  disabled?: boolean | undefined;
50
62
  /**
@@ -53,6 +65,7 @@ export interface SelectButtonProps {
53
65
  dataKey?: string | undefined;
54
66
  /**
55
67
  * Whether selection can be cleared.
68
+ * @defaultValue true
56
69
  */
57
70
  unselectable?: boolean | undefined;
58
71
  /**
@@ -61,12 +74,15 @@ export interface SelectButtonProps {
61
74
  'aria-labelledby'?: string | undefined;
62
75
  }
63
76
 
77
+ /**
78
+ * Defines valid slots in SelectButton component.
79
+ */
64
80
  export interface SelectButtonSlots {
65
81
  /**
66
82
  * Custom content for each option.
67
83
  * @param {Object} scope - option slot's params.
68
84
  */
69
- option: (scope: {
85
+ option(scope: {
70
86
  /**
71
87
  * Option instance
72
88
  */
@@ -75,32 +91,45 @@ export interface SelectButtonSlots {
75
91
  * Index of the option
76
92
  */
77
93
  index: number;
78
- }) => VNode[];
94
+ }): VNode[];
79
95
  }
80
96
 
81
- export declare type SelectButtonEmits = {
97
+ /**
98
+ * Defines valid emits in SelectButton component.
99
+ */
100
+ export interface SelectButtonEmits {
82
101
  /**
83
102
  * Emitted when the value changes.
84
103
  * @param {*} value - New value.
85
104
  */
86
- 'update:modelValue': (value: any) => void;
105
+ 'update:modelValue'(value: any): void;
87
106
  /**
88
107
  * Callback to invoke on value change.
89
108
  * @param {SelectButtonChangeEvent} event - Custom change event.
90
109
  */
91
- change: (event: SelectButtonChangeEvent) => void;
110
+ change(event: SelectButtonChangeEvent): void;
92
111
  /**
93
112
  * Callback to invoke on focus.
94
- * @param {SelectButtonChangeEvent} event - Browser event.
95
113
  */
96
- focus: (event: Event) => void;
114
+ focus(event: Event): void;
97
115
  /**
98
116
  * Callback to invoke on blur.
99
117
  * @param {Event} event - Browser event.
100
118
  */
101
- blur: (event: Event) => void;
102
- };
119
+ blur(event: Event): void;
120
+ }
103
121
 
122
+ /**
123
+ * **PrimeVue - SelectButton**
124
+ *
125
+ * _SelectButton is used to choose single or multiple items from a list using buttons._
126
+ *
127
+ * [Live Demo](https://www.primevue.org/selectbutton/)
128
+ * --- ---
129
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
130
+ *
131
+ * @group Component
132
+ */
104
133
  declare class SelectButton extends ClassComponent<SelectButtonProps, SelectButtonSlots, SelectButtonEmits> {}
105
134
 
106
135
  declare module '@vue/runtime-core' {
@@ -109,13 +138,4 @@ declare module '@vue/runtime-core' {
109
138
  }
110
139
  }
111
140
 
112
- /**
113
- *
114
- * SelectButton is a form component to choose a value from a list of options using button elements.
115
- *
116
- * Demos:
117
- *
118
- * - [SelectButton](https://www.primefaces.org/primevue/selectbutton)
119
- *
120
- */
121
141
  export default SelectButton;
@@ -1,82 +1,110 @@
1
+ /**
2
+ *
3
+ * Sidebar is a panel component displayed as an overlay at the edges of the screen.
4
+ *
5
+ * [Live Demo](https://primevue.org/sidebar)
6
+ *
7
+ * @module sidebar
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type SidebarPositionType = 'left' | 'right' | 'top' | 'bottom' | 'full' | undefined;
5
-
13
+ /**
14
+ * Defines valid properties in Sidebar component.
15
+ */
6
16
  export interface SidebarProps {
7
17
  /**
8
18
  * Specifies the visibility of the dialog.
19
+ * @defaultValue false
9
20
  */
10
21
  visible?: boolean | undefined;
11
22
  /**
12
23
  * Specifies the position of the sidebar.
13
- * @see SidebarPositionType
14
- * Default value is 'left'.
24
+ * @defaultValue left
15
25
  */
16
- position?: SidebarPositionType;
26
+ position?: 'left' | 'right' | 'top' | 'bottom' | 'full' | undefined;
17
27
  /**
18
28
  * Base zIndex value to use in layering.
19
- * Default value is 0.
29
+ * @defaultValue 0
20
30
  */
21
31
  baseZIndex?: number | undefined;
22
32
  /**
23
33
  * Whether to automatically manage layering.
24
- * Default value is true.
34
+ * @defaultValue true
25
35
  */
26
36
  autoZIndex?: boolean | undefined;
27
37
  /**
28
38
  * Whether clicking outside closes the panel.
29
- * Default value is true.
39
+ * @defaultValue true
30
40
  */
31
41
  dismissable?: boolean | undefined;
32
42
  /**
33
43
  * Whether to display a close icon inside the panel.
34
- * Default value is true.
44
+ * @defaultValue true
35
45
  */
36
46
  showCloseIcon?: boolean | undefined;
37
47
  /**
38
48
  * Icon to display in the sidebar close button.
39
- * Default value is 'pi pi-times'.
49
+ * @defaultValue pi pi-times
40
50
  */
41
51
  closeIcon?: string | undefined;
42
52
  /**
43
53
  * Whether to a modal layer behind the sidebar.
44
- * Default value is true.
54
+ * @defaultValue true
45
55
  */
46
56
  modal?: boolean | undefined;
47
57
  /**
48
58
  * Whether background scroll should be blocked when sidebar is visible.
59
+ * @defaultValue false
49
60
  */
50
61
  blockScroll?: boolean | undefined;
51
62
  }
52
63
 
64
+ /**
65
+ * Defines valid slots in Sidebar component.
66
+ */
53
67
  export interface SidebarSlots {
54
68
  /**
55
69
  * Custom content template.
56
70
  */
57
- default: () => VNode[];
71
+ default(): VNode[];
58
72
  /**
59
73
  * Custom header template.
60
74
  */
61
- header: () => VNode[];
75
+ header(): VNode[];
62
76
  }
63
77
 
64
- export declare type SidebarEmits = {
78
+ /**
79
+ * Defines valid emits in Sidebar component.
80
+ */
81
+ export interface SidebarEmits {
65
82
  /**
66
83
  * Emitted when the value changes.
67
84
  * @param {boolean} value - New value.
68
85
  */
69
- 'update:modelValue': (value: boolean) => void;
86
+ 'update:modelValue'(value: boolean): void;
70
87
  /**
71
88
  * Callback to invoke when sidebar gets shown.
72
89
  */
73
- show: () => void;
90
+ show(): void;
74
91
  /**
75
92
  * Callback to invoke when sidebar gets hidden.
76
93
  */
77
- hide: () => void;
78
- };
94
+ hide(): void;
95
+ }
79
96
 
97
+ /**
98
+ * **PrimeVue - Sidebar**
99
+ *
100
+ * _Sidebar is a panel component displayed as an overlay._
101
+ *
102
+ * [Live Demo](https://www.primevue.org/sidebar/)
103
+ * --- ---
104
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
105
+ *
106
+ * @group Component
107
+ */
80
108
  declare class Sidebar extends ClassComponent<SidebarProps, SidebarSlots, SidebarEmits> {}
81
109
 
82
110
  declare module '@vue/runtime-core' {
@@ -85,13 +113,4 @@ declare module '@vue/runtime-core' {
85
113
  }
86
114
  }
87
115
 
88
- /**
89
- *
90
- * Sidebar is a panel component displayed as an overlay at the edges of the screen.
91
- *
92
- * Demos:
93
- *
94
- * - [Sidebar](https://www.primefaces.org/primevue/sidebar)
95
- *
96
- */
97
116
  export default Sidebar;
@@ -1,28 +1,35 @@
1
+ /**
2
+ *
3
+ * Skeleton is a placeholder to display instead of the actual content.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/skeleton/)
6
+ *
7
+ * @module skeleton
8
+ *
9
+ */
1
10
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
11
 
3
- type SkeletonShapeType = 'rectangle' | 'circle' | undefined;
4
-
5
- type SkeletonAnimationType = 'wave' | 'none' | undefined;
6
-
12
+ /**
13
+ * Defines valid properties in Skeleton component.
14
+ */
7
15
  export interface SkeletonProps {
8
16
  /**
9
17
  * Shape of the element.
10
- * @see SkeletonShapeType
11
- * Default value is 'rectangle'.
18
+ * @defaultValue rectangle
12
19
  */
13
- shape?: SkeletonShapeType;
20
+ shape?: 'rectangle' | 'circle' | undefined;
14
21
  /**
15
22
  * Size of the Circle or Square.
16
23
  */
17
24
  size?: string | undefined;
18
25
  /**
19
26
  * Width of the element.
20
- * Default value is '100%'.
27
+ * @defaultValue 100%
21
28
  */
22
29
  width?: string | undefined;
23
30
  /**
24
31
  * Height of the element.
25
- * Default value is '1rem'.
32
+ * @defaultValue 1rem
26
33
  */
27
34
  height?: string | undefined;
28
35
  /**
@@ -31,16 +38,32 @@ export interface SkeletonProps {
31
38
  borderRadius?: string | undefined;
32
39
  /**
33
40
  * Type of the animation.
34
- * @see SkeletonAnimationType
35
- * Default value is 'wave'.
41
+ * @defaultValue wave
36
42
  */
37
- animation?: SkeletonAnimationType;
43
+ animation?: 'wave' | 'none' | undefined;
38
44
  }
39
45
 
46
+ /**
47
+ * Defines valid slots in Skeleton component.
48
+ */
40
49
  export interface SkeletonSlots {}
41
50
 
42
- export declare type SkeletonEmits = {};
51
+ /**
52
+ * Defines valid emits in Skeleton component.
53
+ */
54
+ export interface SkeletonEmits {}
43
55
 
56
+ /**
57
+ * **PrimeVue - Skeleton**
58
+ *
59
+ * _Skeleton is a placeholder to display instead of the actual content._
60
+ *
61
+ * [Live Demo](https://www.primevue.org/skeleton/)
62
+ * --- ---
63
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
64
+ *
65
+ * @group Component
66
+ */
44
67
  declare class Skeleton extends ClassComponent<SkeletonProps, SkeletonSlots, SkeletonEmits> {}
45
68
 
46
69
  declare module '@vue/runtime-core' {
@@ -49,13 +72,4 @@ declare module '@vue/runtime-core' {
49
72
  }
50
73
  }
51
74
 
52
- /**
53
- *
54
- * Skeleton is a placeholder to display instead of the actual content.
55
- *
56
- * Demos:
57
- *
58
- * - [Skeleton](https://www.primefaces.org/primevue/skeleton)
59
- *
60
- */
61
75
  export default Skeleton;
@@ -1,7 +1,18 @@
1
+ /**
2
+ *
3
+ * Slider is a component to provide input with a drag handle.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/slider/)
6
+ *
7
+ * @module slider
8
+ *
9
+ */
1
10
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
11
 
3
- type SliderOrientationType = 'horizontal' | 'vertical' | undefined;
4
-
12
+ /**
13
+ * Custom slide end event.
14
+ * @see {@link SliderEmits.slideend}
15
+ */
5
16
  export interface SliderSlideEndEvent {
6
17
  /**
7
18
  * Original event
@@ -13,39 +24,42 @@ export interface SliderSlideEndEvent {
13
24
  value: number;
14
25
  }
15
26
 
27
+ /**
28
+ * Defines valid properties in Slider component.
29
+ */
16
30
  export interface SliderProps {
17
31
  /**
18
32
  * Value of the component.
19
- * Default value is 0.
20
33
  */
21
34
  modelValue?: number | number[] | undefined;
22
35
  /**
23
36
  * Mininum boundary value.
24
- * Default value is 0.
37
+ * @defaultValue 0
25
38
  */
26
39
  min?: number | undefined;
27
40
  /**
28
41
  * Maximum boundary value.
29
- * Default value is 100.
42
+ * @defaultValue 100
30
43
  */
31
44
  max?: number | undefined;
32
45
  /**
33
46
  * Orientation of the slider.
34
- * @see SliderOrientationType
35
- * Default value is 'horizontal'.
47
+ * @defaultValue horizontal
36
48
  */
37
- orientation?: SliderOrientationType;
49
+ orientation?: 'horizontal' | 'vertical' | undefined;
38
50
  /**
39
51
  * Step factor to increment/decrement the value.
40
- * Default value is 1.
52
+ * @defaultValue 1
41
53
  */
42
54
  step?: number | undefined;
43
55
  /**
44
56
  * When speficed, allows two boundary values to be picked.
57
+ * @defaultValue false
45
58
  */
46
59
  range?: boolean | undefined;
47
60
  /**
48
61
  * When present, it specifies that the component should be disabled.
62
+ * @defaultValue false
49
63
  */
50
64
  disabled?: boolean | undefined;
51
65
  /**
@@ -62,26 +76,44 @@ export interface SliderProps {
62
76
  'aria-label'?: string | undefined;
63
77
  }
64
78
 
79
+ /**
80
+ * Defines valid slots in Slider component.
81
+ */
65
82
  export interface SliderSlots {}
66
83
 
67
- export declare type SliderEmits = {
84
+ /**
85
+ * Defines valid emits in Slider component.
86
+ */
87
+ export interface SliderEmits {
68
88
  /**
69
89
  * Emitted when the value changes.
70
90
  * @param {number | number[]} value - New value.
71
91
  */
72
- 'update:modelValue': (value: number | number[]) => void;
92
+ 'update:modelValue'(value: number | number[]): void;
73
93
  /**
74
94
  * Callback to invoke on value change.
75
95
  * @param {number} value - New value
76
96
  */
77
- change: (value: number) => void;
97
+ change(value: number): void;
78
98
  /**
79
99
  * Callback to invoke when slide ends.
80
100
  * @param {SliderSlideEndEvent} event - Custom slide end event.
81
101
  */
82
- slideend: (event: SliderSlideEndEvent) => void;
83
- };
102
+ slideend(event: SliderSlideEndEvent): void;
103
+ }
84
104
 
105
+ /**
106
+ * **PrimeVue - Slider**
107
+ *
108
+ * _Slider is a component to provide input with a drag handle._
109
+ *
110
+ * [Live Demo](https://www.primevue.org/slider/)
111
+ * --- ---
112
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
113
+ *
114
+ * @group Component
115
+ *
116
+ */
85
117
  declare class Slider extends ClassComponent<SliderProps, SliderSlots, SliderEmits> {}
86
118
 
87
119
  declare module '@vue/runtime-core' {
@@ -90,13 +122,4 @@ declare module '@vue/runtime-core' {
90
122
  }
91
123
  }
92
124
 
93
- /**
94
- *
95
- * Slider is an input component to provide a numerical input.
96
- *
97
- * Demos:
98
- *
99
- * - [Slider](https://www.primefaces.org/primevue/slider)
100
- *
101
- */
102
125
  export default Slider;