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,8 +1,15 @@
1
+ /**
2
+ *
3
+ * Carousel is a content slider featuring various customization options.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/carousel/)
6
+ *
7
+ * @module carousel
8
+ *
9
+ */
1
10
  import { ButtonHTMLAttributes, VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type CarouselOrientationType = 'horizontal' | 'vertical' | undefined;
5
-
6
13
  export interface CarouselResponsiveOptions {
7
14
  /**
8
15
  * Breakpoint for responsive mode. Exp; @media screen and (max-width: ${breakpoint}) {...}
@@ -17,7 +24,9 @@ export interface CarouselResponsiveOptions {
17
24
  */
18
25
  numScroll: number;
19
26
  }
20
-
27
+ /**
28
+ * Defines valid properties in Carousel component.
29
+ */
21
30
  export interface CarouselProps {
22
31
  /**
23
32
  * An array of objects to display.
@@ -25,17 +34,17 @@ export interface CarouselProps {
25
34
  value?: any | undefined;
26
35
  /**
27
36
  * Index of the first item.
28
- * Default value is 0.
37
+ * @defaultValue 0
29
38
  */
30
39
  page?: number | undefined;
31
40
  /**
32
41
  * Number of items per page.
33
- * Default value is 1.
42
+ * @defaultValue 1
34
43
  */
35
44
  numVisible?: number | undefined;
36
45
  /**
37
46
  * Number of items to scroll.
38
- * Default value is 1.
47
+ * @defaultValue 1
39
48
  */
40
49
  numScroll?: number | undefined;
41
50
  /**
@@ -45,13 +54,12 @@ export interface CarouselProps {
45
54
  responsiveOptions?: CarouselResponsiveOptions[] | undefined;
46
55
  /**
47
56
  * Specifies the layout of the component, valid values are 'horizontal' and 'vertical'.
48
- * @see CarouselOrientationType
49
- * Default value is 'horizontal'.
57
+ * @defaultValue horizontal
50
58
  */
51
- orientation?: CarouselOrientationType;
59
+ orientation?: 'horizontal' | 'vertical' | undefined;
52
60
  /**
53
61
  * Height of the viewport in vertical layout.
54
- * Default value is '300px'.
62
+ * @defaultValue 300px
55
63
  */
56
64
  verticalViewPortHeight?: string | undefined;
57
65
  /**
@@ -68,21 +76,22 @@ export interface CarouselProps {
68
76
  indicatorsContentClass?: any;
69
77
  /**
70
78
  * Defines if scrolling would be infinite.
79
+ * @defaultValue false
71
80
  */
72
81
  circular?: boolean | undefined;
73
82
  /**
74
83
  * Time in milliseconds to scroll items automatically.
75
- * Default value is 0.
84
+ * @defaultValue 0
76
85
  */
77
86
  autoplayInterval?: number | undefined;
78
87
  /**
79
88
  * Whether to display navigation buttons in container.
80
- * Default value is true.
89
+ * @defaultValue true
81
90
  */
82
91
  showNavigators?: boolean | undefined;
83
92
  /**
84
93
  * Whether to display indicator container.
85
- * Default value is true.
94
+ * @defaultValue true
86
95
  */
87
96
  showIndicators?: boolean | undefined;
88
97
  /**
@@ -95,12 +104,15 @@ export interface CarouselProps {
95
104
  nextButtonProps?: ButtonHTMLAttributes | undefined;
96
105
  }
97
106
 
107
+ /**
108
+ * Defines valid slots in Carousel slots.
109
+ */
98
110
  export interface CarouselSlots {
99
111
  /**
100
112
  * Custom content for each item.
101
113
  * @param {Object} scope - item slot's params.
102
114
  */
103
- item: (scope: {
115
+ item(scope: {
104
116
  /**
105
117
  * Data of the component
106
118
  */
@@ -109,25 +121,40 @@ export interface CarouselSlots {
109
121
  * Index of the item
110
122
  */
111
123
  index: number;
112
- }) => VNode[];
124
+ }): VNode[];
113
125
  /**
114
126
  * Custom header template.
115
127
  */
116
- header: () => VNode[];
128
+ header(): VNode[];
117
129
  /**
118
130
  * Custom footer template.
119
131
  */
120
- footer: () => VNode[];
132
+ footer(): VNode[];
121
133
  }
122
134
 
123
- export declare type CarouselEmits = {
135
+ /**
136
+ * Defines valid emits in Carousel component.
137
+ */
138
+ export interface CarouselEmits {
124
139
  /**
125
140
  * Emitted when the page changes.
126
141
  * @param {number} value - New page value.
127
142
  */
128
- 'update:page': (value: number) => void;
129
- };
143
+ 'update:page'(value: number): void;
144
+ }
130
145
 
146
+ /**
147
+ * **PrimeVue - Carousel**
148
+ *
149
+ * _Carousel is a content slider featuring various customization options._
150
+ *
151
+ * [Live Demo](https://www.primevue.org/carousel/)
152
+ * --- ---
153
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
154
+ *
155
+ * @group Component
156
+ *
157
+ */
131
158
  declare class Carousel extends ClassComponent<CarouselProps, CarouselSlots, CarouselEmits> {}
132
159
 
133
160
  declare module '@vue/runtime-core' {
@@ -136,13 +163,4 @@ declare module '@vue/runtime-core' {
136
163
  }
137
164
  }
138
165
 
139
- /**
140
- *
141
- * Carousel is a content slider featuring various customization options.
142
- *
143
- * Demos:
144
- *
145
- * - [Carousel](https://www.primefaces.org/primevue/carousel)
146
- *
147
- */
148
166
  export default Carousel;
@@ -1,16 +1,19 @@
1
+ /**
2
+ *
3
+ * CascadeSelect is a form component to select a value from a nested structure of options.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/cascadeselect/)
6
+ *
7
+ * @module cascadeselect
8
+ *
9
+ */
1
10
  import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type CascadeSelectOptionLabelType = string | ((data: any) => string) | undefined;
5
-
6
- type CascadeSelectOptionValueType = string | ((data: any) => any) | undefined;
7
-
8
- type CascadeSelectOptionDisabledType = string | ((data: any) => boolean) | undefined;
9
-
10
- type CascadeSelectOptionChildrenType = string[] | string | ((data: any) => any[]) | undefined;
11
-
12
- type CascadeSelectAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
13
-
13
+ /**
14
+ * Custom change event
15
+ * @see {@link CascadeSelectEmits.change}
16
+ */
14
17
  export interface CascadeSelectChangeEvent {
15
18
  /**
16
19
  * Original event.
@@ -23,10 +26,14 @@ export interface CascadeSelectChangeEvent {
23
26
  }
24
27
 
25
28
  /**
29
+ * @see {@link CascadeSelectEmits.change}
26
30
  * @extends CascadeSelectChangeEvent
27
31
  */
28
32
  export interface CascadeSelectGroupChangeEvent extends CascadeSelectChangeEvent {}
29
33
 
34
+ /**
35
+ * Defines valid properties in CascadeSelect component.
36
+ */
30
37
  export interface CascadeSelectProps {
31
38
  /**
32
39
  * Value of the component.
@@ -38,35 +45,31 @@ export interface CascadeSelectProps {
38
45
  options?: any[] | undefined;
39
46
  /**
40
47
  * Property name or getter function to use as the label of an option.
41
- * @see CascadeSelectOptionLabelType
42
48
  */
43
- optionLabel?: CascadeSelectOptionLabelType;
49
+ optionLabel?: string | ((data: any) => string) | undefined;
44
50
  /**
45
51
  * Property name or getter function to use as the value of an option, defaults to the option itself when not defined.
46
- * @see CascadeSelectOptionValueType
47
52
  */
48
- optionValue?: CascadeSelectOptionValueType;
53
+ optionValue?: string | ((data: any) => any) | undefined;
49
54
  /**
50
55
  * Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
51
- * @see CascadeSelectOptionDisabledType
52
56
  */
53
- optionDisabled?: CascadeSelectOptionDisabledType;
57
+ optionDisabled?: string | ((data: any) => boolean) | undefined;
54
58
  /**
55
59
  * Property name or getter function to use as the label of an option group.
56
- * @see CascadeSelectOptionLabelType
57
60
  */
58
- optionGroupLabel?: CascadeSelectOptionLabelType;
61
+ optionGroupLabel?: string | ((data: any) => string) | undefined;
59
62
  /**
60
63
  * Property name or getter function to retrieve the items of a group.
61
- * @see CascadeSelectOptionChildrenType
62
64
  */
63
- optionGroupChildren?: CascadeSelectOptionChildrenType;
65
+ optionGroupChildren?: string[] | string | ((data: any) => any[]) | undefined;
64
66
  /**
65
67
  * Default text to display when no option is selected.
66
68
  */
67
69
  placeholder?: string | undefined;
68
70
  /**
69
71
  * When present, it specifies that the component should be disabled.
72
+ * @defaultValue false
70
73
  */
71
74
  disabled?: boolean | undefined;
72
75
  /**
@@ -103,37 +106,37 @@ export interface CascadeSelectProps {
103
106
  panelProps?: HTMLAttributes | undefined;
104
107
  /**
105
108
  * A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself.
106
- * @see CascadeSelectAppendToType
107
- * Default value is 'body'.
109
+ * @defaultValue body
108
110
  */
109
- appendTo?: CascadeSelectAppendToType;
111
+ appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
110
112
  /**
111
113
  * Whether the dropdown is in loading state.
114
+ * @defaultValue false
112
115
  */
113
116
  loading?: boolean | undefined;
114
117
  /**
115
118
  * Icon to display in the dropdown.
116
- * Default value is 'pi pi-chevron-down'.
119
+ * @defaultValue pi pi-chevron-down
117
120
  */
118
121
  dropdownIcon?: string | undefined;
119
122
  /**
120
123
  * Icon to display in loading state.
121
- * Default value is 'pi pi-spinner pi-spin'.
124
+ * @defaultValue pi pi-spinner pi-spin
122
125
  */
123
126
  loadingIcon?: string | undefined;
124
127
  /**
125
128
  * Icon to display in the option group.
126
- * Default value is 'pi pi-angle-right'.
129
+ * @defaultValue pi pi-angle-right
127
130
  */
128
131
  optionGroupIcon?: string | undefined;
129
132
  /**
130
133
  * Whether to focus on the first visible or selected element when the overlay panel is shown.
131
- * Default value is true.
134
+ * @defaultValue true
132
135
  */
133
136
  autoOptionFocus?: boolean | undefined;
134
137
  /**
135
138
  * When enabled, the focused option is selected/opened.
136
- * Default value is false.
139
+ * @defaultValue false
137
140
  */
138
141
  selectOnFocus?: boolean | undefined;
139
142
  /**
@@ -142,27 +145,27 @@ export interface CascadeSelectProps {
142
145
  searchLocale?: string | undefined;
143
146
  /**
144
147
  * Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration.
145
- * Default value is '{0} results are available'.
148
+ * @defaultValue '{0} results are available'
146
149
  */
147
150
  searchMessage?: string | undefined;
148
151
  /**
149
152
  * Text to be displayed in hidden accessible field when options are selected. Defaults to value from PrimeVue locale configuration.
150
- * Default value is '{0} items selected'.
153
+ * @defaultValue '{0} items selected'
151
154
  */
152
155
  selectionMessage?: string | undefined;
153
156
  /**
154
157
  * Text to be displayed in hidden accessible field when any option is not selected. Defaults to value from PrimeVue locale configuration.
155
- * Default value is 'No selected item'.
158
+ * @defaultValue No selected item
156
159
  */
157
160
  emptySelectionMessage?: string | undefined;
158
161
  /**
159
162
  * Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration.
160
- * Default value is 'No results found'.
163
+ * @defaultValue No results found
161
164
  */
162
165
  emptySearchMessage?: string | undefined;
163
166
  /**
164
167
  * Text to be displayed when there are no options available. Defaults to value from PrimeVue locale configuration.
165
- * Default value is 'No available options'.
168
+ * @defaultValue No available options
166
169
  */
167
170
  emptyMessage?: string | undefined;
168
171
  /**
@@ -179,22 +182,25 @@ export interface CascadeSelectProps {
179
182
  'aria-label'?: string | undefined;
180
183
  }
181
184
 
185
+ /**
186
+ * Defines valid slots in CascadeSelect component.
187
+ */
182
188
  export interface CascadeSelectSlots {
183
189
  /**
184
190
  * Custom content for each option.
185
191
  * @param {Object} scope - option slot's params.
186
192
  */
187
- option: (scope: {
193
+ option(scope: {
188
194
  /**
189
195
  * Option instance
190
196
  */
191
197
  option: any;
192
- }) => VNode[];
198
+ }): VNode[];
193
199
  /**
194
200
  * Custom value template.
195
201
  * @param {CascadeSelectValueSlot} scope - value slot's params.
196
202
  */
197
- value: (scope: {
203
+ value(scope: {
198
204
  /**
199
205
  * Value of the component
200
206
  */
@@ -203,62 +209,76 @@ export interface CascadeSelectSlots {
203
209
  * Placeholder text to show
204
210
  */
205
211
  placeholder: string;
206
- }) => VNode[];
212
+ }): VNode[];
207
213
  /**
208
214
  * Custom indicator template.
209
215
  */
210
- indicator: () => VNode[];
216
+ indicator(): VNode[];
211
217
  }
212
218
 
213
- export declare type CascadeSelectEmits = {
219
+ /**
220
+ * Defines valid emits in CascadeSelect component.
221
+ */
222
+ export interface CascadeSelectEmits {
214
223
  /**
215
224
  * Emitted when the value changes.
216
225
  * @param {*} value - New value.
217
226
  */
218
- 'update:modelValue': (value: any) => void;
227
+ 'update:modelValue'(value: any): void;
219
228
  /**
220
229
  * Callback to invoke on value change.
221
230
  * @param { CascadeSelectChangeEvent } event - Custom change event.
222
231
  */
223
- change: (event: CascadeSelectChangeEvent) => void;
232
+ change(event: CascadeSelectChangeEvent): void;
224
233
  /**
225
234
  * Callback to invoke when the component receives focus.
226
235
  * @param {Event} event - Browser event.
227
236
  */
228
- focus: (event: Event) => void;
237
+ focus(event: Event): void;
229
238
  /**
230
239
  * Callback to invoke when the component loses focus.
231
240
  * @param {Event} event - Browser event.
232
241
  */
233
- blur: (event: Event) => void;
242
+ blur(event: Event): void;
234
243
  /**
235
244
  * Callback to invoke on click.
236
245
  * @param { Event } event - Browser event.
237
246
  */
238
- click: (event: Event) => void;
247
+ click(event: Event): void;
239
248
  /**
240
249
  * Callback to invoke when a group changes.
241
250
  * @param { CascadeSelectGroupChangeEvent } event - Custom change event.
242
251
  */
243
- 'group-change': (event: CascadeSelectGroupChangeEvent) => void;
252
+ 'group-change'(event: CascadeSelectGroupChangeEvent): void;
244
253
  /**
245
254
  * Callback to invoke before the overlay is shown.
246
255
  */
247
- 'before-show': () => void;
256
+ 'before-show'(): void;
248
257
  /**
249
258
  * Callback to invoke before the overlay is hidden.
250
259
  */
251
- 'before-hide': () => void;
260
+ 'before-hide'(): void;
252
261
  /**
253
262
  * Callback to invoke when the overlay is shown.
254
263
  */
255
- show: () => void;
264
+ show(): void;
256
265
  /**
257
266
  * Callback to invoke when the overlay is hidden.
258
267
  */
259
- hide: () => void;
260
- };
268
+ hide(): void;
269
+ }
261
270
 
271
+ /**
272
+ * **PrimeVue - CascadeSelect**
273
+ *
274
+ * _CascadeSelect is a form component to select a value from a nested structure of options._
275
+ *
276
+ * [Live Demo](https://www.primevue.org/cascadeselect/)
277
+ * --- ---
278
+ * ![PrimeVue(https://primefaces.org/cdn/primevue/images/logo-100.png)
279
+ *
280
+ * @group Component
281
+ */
262
282
  declare class CascadeSelect extends ClassComponent<CascadeSelectProps, CascadeSelectSlots, CascadeSelectEmits> {}
263
283
 
264
284
  declare module '@vue/runtime-core' {
@@ -267,13 +287,4 @@ declare module '@vue/runtime-core' {
267
287
  }
268
288
  }
269
289
 
270
- /**
271
- *
272
- * CascadeSelect displays a nested structure of options.
273
- *
274
- * Demos:
275
- *
276
- * - [CascadeSelect](https://www.primefaces.org/primevue/cascadeselect)
277
- *
278
- */
279
290
  export default CascadeSelect;
package/chart/Chart.d.ts CHANGED
@@ -1,6 +1,19 @@
1
+ /**
2
+ *
3
+ * Chart groups a collection of contents in tabs.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/chart/)
6
+ *
7
+ * @module chart
8
+ *
9
+ */
1
10
  import { CanvasHTMLAttributes } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
13
+ /**
14
+ * Custom select event.
15
+ * @see {@link ChartEmits.select}
16
+ */
4
17
  export interface ChartSelectEvent {
5
18
  /**
6
19
  * Browser event.
@@ -16,6 +29,9 @@ export interface ChartSelectEvent {
16
29
  dataset: any;
17
30
  }
18
31
 
32
+ /**
33
+ * Defines valid properties in Chart component.
34
+ */
19
35
  export interface ChartProps {
20
36
  /**
21
37
  * Type of the chart.
@@ -35,12 +51,12 @@ export interface ChartProps {
35
51
  plugins?: any;
36
52
  /**
37
53
  * Width of the chart in non-responsive mode.
38
- * Default value is 300.
54
+ * @defaultValue 300
39
55
  */
40
56
  width?: number | undefined;
41
57
  /**
42
58
  * Height of the chart in non-responsive mode.
43
- * Default value is 150.
59
+ * @defaultValue 150
44
60
  */
45
61
  height?: number | undefined;
46
62
  /**
@@ -51,44 +67,59 @@ export interface ChartProps {
51
67
 
52
68
  export interface ChartSlots {}
53
69
 
54
- export declare type ChartEmits = {
70
+ /**
71
+ * Defines valid emits in Chart component.
72
+ */
73
+ export interface ChartEmits {
55
74
  /**
56
75
  * Callback to invoke when a tab gets expanded.
57
76
  * @param {ChartSelectEvent} event - Custom select event.
58
77
  */
59
- select: (event: ChartSelectEvent) => void;
78
+ select(event: ChartSelectEvent): void;
60
79
  /**
61
80
  * Callback to invoke when chart is loaded.
62
81
  * @param {*} chart - Chart instance.
63
82
  */
64
- loaded: (chart: any) => void;
65
- };
83
+ loaded(chart: any): void;
84
+ }
66
85
 
86
+ /**
87
+ * **PrimeVue - Chart**
88
+ *
89
+ * _Chart groups a collection of contents in tabs._
90
+ *
91
+ * [Live Demo](https://www.primevue.org/chart/)
92
+ * --- ---
93
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
94
+ *
95
+ * @group Component
96
+ *
97
+ */
67
98
  declare class Chart extends ClassComponent<ChartProps, ChartSlots, ChartEmits> {
68
99
  /**
69
100
  * Redraws the graph.
70
101
  *
71
102
  * @memberof Chart
72
103
  */
73
- refresh: () => void;
104
+ refresh(): void;
74
105
  /**
75
106
  * Destroys the graph first and then creates it again.
76
107
  *
77
108
  * @memberof Chart
78
109
  */
79
- reinit: () => void;
110
+ reinit(): void;
80
111
  /**
81
112
  * Returns an HTML string of a legend for that chart. The legend is generated from the legendCallback in the options.
82
113
  *
83
114
  * @memberof Chart
84
115
  */
85
- generateLegend: () => string | any;
116
+ generateLegend(): string | any;
86
117
  /**
87
118
  * Returns Chart instance.
88
119
  *
89
120
  * @memberof Chart
90
121
  */
91
- getChart: () => any;
122
+ getChart(): any;
92
123
  }
93
124
 
94
125
  declare module '@vue/runtime-core' {
@@ -97,17 +128,4 @@ declare module '@vue/runtime-core' {
97
128
  }
98
129
  }
99
130
 
100
- /**
101
- *
102
- * Chart components are based on Charts.js, an open source HTML5 based charting library.
103
- *
104
- * Helper API;
105
- *
106
- * - [Chart.js](https://www.chartjs.org/)
107
- *
108
- * Demos:
109
- *
110
- * - [Chart](https://www.primefaces.org/primevue/chart)
111
- *
112
- */
113
131
  export default Chart;