primevue 3.9.1 → 3.10.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 (195) hide show
  1. package/accordion/Accordion.d.ts +74 -11
  2. package/accordiontab/AccordionTab.d.ts +37 -8
  3. package/api/Api.d.ts +292 -285
  4. package/autocomplete/AutoComplete.d.ts +279 -62
  5. package/avatar/Avatar.d.ts +57 -8
  6. package/avatargroup/AvatarGroup.d.ts +29 -3
  7. package/badge/Badge.d.ts +46 -5
  8. package/blockui/BlockUI.d.ts +52 -11
  9. package/breadcrumb/Breadcrumb.d.ts +49 -9
  10. package/button/Button.d.ts +68 -11
  11. package/calendar/Calendar.d.ts +322 -62
  12. package/calendar/Calendar.vue +48 -20
  13. package/calendar/calendar.cjs.js +120 -93
  14. package/calendar/calendar.cjs.min.js +1 -1
  15. package/calendar/calendar.esm.js +120 -92
  16. package/calendar/calendar.esm.min.js +1 -1
  17. package/calendar/calendar.js +122 -94
  18. package/calendar/calendar.min.js +1 -1
  19. package/card/Card.d.ts +43 -9
  20. package/carousel/Carousel.d.ts +121 -24
  21. package/cascadeselect/CascadeSelect.d.ts +164 -31
  22. package/chart/Chart.d.ts +104 -12
  23. package/chart/Chart.vue +9 -2
  24. package/chart/chart.cjs.js +9 -2
  25. package/chart/chart.cjs.min.js +1 -1
  26. package/chart/chart.esm.js +9 -2
  27. package/chart/chart.esm.min.js +1 -1
  28. package/chart/chart.js +9 -2
  29. package/chart/chart.min.js +1 -1
  30. package/checkbox/Checkbox.d.ts +65 -7
  31. package/chip/Chip.d.ts +50 -4
  32. package/chips/Chips.d.ts +88 -15
  33. package/colorpicker/ColorPicker.d.ts +105 -16
  34. package/column/Column.d.ts +448 -78
  35. package/columngroup/ColumnGroup.d.ts +30 -4
  36. package/confirmationoptions/ConfirmationOptions.d.ts +50 -0
  37. package/confirmationoptions/package.json +3 -0
  38. package/confirmationservice/ConfirmationService.d.ts +2 -1
  39. package/confirmdialog/ConfirmDialog.d.ts +57 -5
  40. package/confirmpopup/ConfirmPopup.d.ts +38 -7
  41. package/contextmenu/ContextMenu.d.ts +88 -16
  42. package/core/core.js +364 -268
  43. package/core/core.min.js +2 -2
  44. package/datatable/BodyCell.vue +26 -1
  45. package/datatable/DataTable.d.ts +1056 -131
  46. package/datatable/DataTable.vue +102 -81
  47. package/datatable/HeaderCheckbox.vue +4 -1
  48. package/datatable/TableBody.vue +53 -14
  49. package/datatable/datatable.cjs.js +414 -307
  50. package/datatable/datatable.cjs.min.js +1 -1
  51. package/datatable/datatable.esm.js +414 -308
  52. package/datatable/datatable.esm.min.js +1 -1
  53. package/datatable/datatable.js +415 -309
  54. package/datatable/datatable.min.js +1 -1
  55. package/dataview/DataView.d.ts +198 -32
  56. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +34 -5
  57. package/deferredcontent/DeferredContent.d.ts +31 -6
  58. package/dialog/Dialog.d.ts +188 -35
  59. package/divider/Divider.d.ts +53 -8
  60. package/dock/Dock.d.ts +92 -15
  61. package/dropdown/Dropdown.d.ts +335 -76
  62. package/editor/Editor.d.ts +78 -11
  63. package/fieldset/Fieldset.d.ts +63 -11
  64. package/fileupload/FileUpload.d.ts +255 -37
  65. package/fullcalendar/FullCalendar.d.ts +29 -3
  66. package/galleria/Galleria.d.ts +196 -46
  67. package/image/Image.d.ts +51 -6
  68. package/inlinemessage/InlineMessage.d.ts +34 -6
  69. package/inplace/Inplace.d.ts +57 -12
  70. package/inputmask/InputMask.d.ts +75 -15
  71. package/inputnumber/InputNumber.d.ts +180 -30
  72. package/inputswitch/InputSwitch.d.ts +61 -9
  73. package/inputtext/InputText.d.ts +34 -5
  74. package/knob/Knob.d.ts +92 -18
  75. package/listbox/Listbox.d.ts +240 -55
  76. package/megamenu/MegaMenu.d.ts +60 -12
  77. package/menu/Menu.d.ts +84 -15
  78. package/menubar/Menubar.d.ts +52 -11
  79. package/menuitem/MenuItem.d.ts +80 -0
  80. package/menuitem/package.json +3 -0
  81. package/message/Message.d.ts +57 -11
  82. package/multiselect/MultiSelect.d.ts +363 -83
  83. package/orderlist/OrderList.d.ts +122 -19
  84. package/organizationchart/OrganizationChart.d.ts +137 -15
  85. package/overlaypanel/OverlayPanel.d.ts +107 -12
  86. package/package.json +1 -1
  87. package/paginator/Paginator.d.ts +129 -27
  88. package/panel/Panel.d.ts +64 -9
  89. package/panelmenu/PanelMenu.d.ts +59 -11
  90. package/panelmenu/PanelMenu.vue +2 -2
  91. package/panelmenu/panelmenu.cjs.js +4 -4
  92. package/panelmenu/panelmenu.cjs.min.js +1 -1
  93. package/panelmenu/panelmenu.esm.js +4 -4
  94. package/panelmenu/panelmenu.esm.min.js +1 -1
  95. package/panelmenu/panelmenu.js +4 -4
  96. package/panelmenu/panelmenu.min.js +1 -1
  97. package/password/Password.d.ts +115 -24
  98. package/picklist/PickList.d.ts +199 -32
  99. package/progressbar/ProgressBar.d.ts +43 -8
  100. package/progressspinner/ProgressSpinner.d.ts +39 -6
  101. package/radiobutton/RadioButton.d.ts +51 -6
  102. package/rating/Rating.d.ts +67 -10
  103. package/resources/themes/arya-blue/theme.css +5 -1
  104. package/resources/themes/arya-green/theme.css +5 -1
  105. package/resources/themes/arya-orange/theme.css +5 -1
  106. package/resources/themes/arya-purple/theme.css +5 -1
  107. package/resources/themes/bootstrap4-dark-blue/theme.css +5 -1
  108. package/resources/themes/bootstrap4-dark-purple/theme.css +5 -1
  109. package/resources/themes/bootstrap4-light-blue/theme.css +5 -1
  110. package/resources/themes/bootstrap4-light-purple/theme.css +5 -1
  111. package/resources/themes/fluent-light/theme.css +5 -1
  112. package/resources/themes/lara-dark-blue/theme.css +43 -39
  113. package/resources/themes/lara-dark-indigo/theme.css +43 -39
  114. package/resources/themes/lara-dark-purple/theme.css +43 -39
  115. package/resources/themes/lara-dark-teal/theme.css +43 -39
  116. package/resources/themes/lara-light-blue/theme.css +5 -1
  117. package/resources/themes/lara-light-indigo/theme.css +5 -1
  118. package/resources/themes/lara-light-purple/theme.css +5 -1
  119. package/resources/themes/lara-light-teal/theme.css +5 -1
  120. package/resources/themes/luna-amber/theme.css +5 -1
  121. package/resources/themes/luna-blue/theme.css +5 -1
  122. package/resources/themes/luna-green/theme.css +5 -1
  123. package/resources/themes/luna-pink/theme.css +5 -1
  124. package/resources/themes/md-dark-deeppurple/theme.css +5 -1
  125. package/resources/themes/md-dark-indigo/theme.css +5 -1
  126. package/resources/themes/md-light-deeppurple/theme.css +5 -1
  127. package/resources/themes/md-light-indigo/theme.css +5 -1
  128. package/resources/themes/mdc-dark-deeppurple/theme.css +5 -1
  129. package/resources/themes/mdc-dark-indigo/theme.css +5 -1
  130. package/resources/themes/mdc-light-deeppurple/theme.css +5 -1
  131. package/resources/themes/mdc-light-indigo/theme.css +5 -1
  132. package/resources/themes/nova/theme.css +5 -1
  133. package/resources/themes/nova-accent/theme.css +5 -1
  134. package/resources/themes/nova-alt/theme.css +5 -1
  135. package/resources/themes/nova-vue/theme.css +5 -1
  136. package/resources/themes/rhea/theme.css +5 -1
  137. package/resources/themes/saga-blue/theme.css +5 -1
  138. package/resources/themes/saga-green/theme.css +5 -1
  139. package/resources/themes/saga-orange/theme.css +5 -1
  140. package/resources/themes/saga-purple/theme.css +5 -1
  141. package/resources/themes/tailwind-light/theme.css +5 -1
  142. package/resources/themes/vela-blue/theme.css +5 -1
  143. package/resources/themes/vela-green/theme.css +5 -1
  144. package/resources/themes/vela-orange/theme.css +5 -1
  145. package/resources/themes/vela-purple/theme.css +5 -1
  146. package/row/Row.d.ts +25 -3
  147. package/scrollpanel/ScrollPanel.d.ts +27 -5
  148. package/scrolltop/ScrollTop.d.ts +47 -7
  149. package/selectbutton/SelectButton.d.ts +101 -17
  150. package/sidebar/Sidebar.d.ts +81 -16
  151. package/skeleton/Skeleton.d.ts +58 -9
  152. package/slider/Slider.d.ts +90 -14
  153. package/speeddial/SpeedDial.d.ts +166 -29
  154. package/splitbutton/SplitButton.d.ts +71 -11
  155. package/splitter/Splitter.d.ts +74 -7
  156. package/splitterpanel/SplitterPanel.d.ts +34 -7
  157. package/steps/Steps.d.ts +51 -11
  158. package/tabmenu/TabMenu.d.ts +63 -10
  159. package/tabpanel/TabPanel.d.ts +34 -7
  160. package/tabview/TabView.d.ts +73 -11
  161. package/tag/Tag.d.ts +44 -8
  162. package/terminal/Terminal.d.ts +36 -5
  163. package/terminalservice/TerminalService.d.ts +1 -1
  164. package/textarea/Textarea.d.ts +38 -6
  165. package/tieredmenu/TieredMenu.d.ts +89 -15
  166. package/timeline/Timeline.d.ts +94 -15
  167. package/toast/Toast.d.ts +110 -12
  168. package/toastservice/ToastService.d.ts +17 -5
  169. package/togglebutton/ToggleButton.d.ts +64 -11
  170. package/toolbar/Toolbar.d.ts +31 -6
  171. package/tree/Tree.d.ts +189 -26
  172. package/treeselect/TreeSelect.d.ts +201 -44
  173. package/treetable/TreeTable.d.ts +459 -63
  174. package/tristatecheckbox/TriStateCheckbox.d.ts +39 -5
  175. package/ts-helpers.d.ts +28 -0
  176. package/useconfirm/UseConfirm.d.ts +5 -19
  177. package/usetoast/UseToast.d.ts +3 -5
  178. package/utils/Utils.d.ts +3 -0
  179. package/utils/utils.cjs.js +39 -2
  180. package/utils/utils.cjs.min.js +1 -1
  181. package/utils/utils.esm.js +39 -2
  182. package/utils/utils.esm.min.js +1 -1
  183. package/utils/utils.js +39 -2
  184. package/utils/utils.min.js +1 -1
  185. package/vetur-attributes.json +57 -25
  186. package/vetur-tags.json +11 -3
  187. package/virtualscroller/VirtualScroller.d.ts +294 -53
  188. package/virtualscroller/VirtualScroller.vue +296 -255
  189. package/virtualscroller/virtualscroller.cjs.js +325 -266
  190. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  191. package/virtualscroller/virtualscroller.esm.js +325 -266
  192. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  193. package/virtualscroller/virtualscroller.js +325 -266
  194. package/virtualscroller/virtualscroller.min.js +1 -1
  195. package/web-types.json +153 -28
@@ -1,81 +1,298 @@
1
- import VirtualScrollerProps from '../virtualscroller';
1
+ import { VNode } from 'vue';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
+ import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
2
4
 
3
- interface AutoCompleteProps {
5
+ type AutoCompleteFieldType = string | ((data: any) => string) | undefined;
6
+
7
+ type AutoCompleteDropdownMode = 'blank' | 'current' | undefined;
8
+
9
+ type AutoCompleteAppendTo = 'body' | 'self' | string | undefined;
10
+
11
+ export interface AutoCompleteItemSelectEvent {
12
+ /**
13
+ * Browser event
14
+ */
15
+ originalEvent: Event;
16
+ /**
17
+ * Selected item
18
+ */
19
+ value: any;
20
+ }
21
+
22
+ /**
23
+ * @extends AutoCompleteItemSelectEvent
24
+ */
25
+ export interface AutoCompleteItemUnselectEvent extends AutoCompleteItemSelectEvent { }
26
+
27
+ export interface AutoCompleteDropdownClickEvent {
28
+ /**
29
+ * Browser mouse event
30
+ */
31
+ originalEvent: MouseEvent;
32
+ /**
33
+ * Current value of the input field
34
+ */
35
+ query: string;
36
+ }
37
+
38
+ export interface AutoCompleteCompleteEvent {
39
+ /**
40
+ * Browser event
41
+ */
42
+ originalEvent: Event;
43
+ /**
44
+ * Value to search with
45
+ */
46
+ query: string;
47
+ }
48
+
49
+ export interface AutoCompleteProps {
50
+ /**
51
+ * Value of the component.
52
+ */
4
53
  modelValue?: any;
54
+ /**
55
+ * An array of suggestions to display.
56
+ */
5
57
  suggestions?: any[];
6
- field?: string|Function;
7
- optionGroupLabel?: string;
8
- optionGroupChildren?: string;
9
- scrollHeight?: string;
10
- dropdown?: boolean;
11
- dropdownMode?: string;
12
- autoHighlight?: boolean;
13
- multiple?: boolean;
14
- minLength?: number;
15
- delay?: number;
16
- appendTo?: string;
17
- completeOnFocus?: boolean;
58
+ /**
59
+ * Property name or getter function of a suggested object to resolve and display.
60
+ * @type {AutoCompleteFieldType}
61
+ */
62
+ field?: AutoCompleteFieldType;
63
+ /**
64
+ * Property name or getter function to use as the label of an option group.
65
+ */
66
+ optionGroupLabel?: string | undefined;
67
+ /**
68
+ * Property name or getter function that refers to the children options of option group.
69
+ */
70
+ optionGroupChildren?: string | undefined;
71
+ /**
72
+ * Maximum height of the suggestions panel.
73
+ * Default value is '200px'.
74
+ */
75
+ scrollHeight?: string | undefined;
76
+ /**
77
+ * Displays a button next to the input field when enabled.
78
+ */
79
+ dropdown?: boolean | undefined;
80
+ /**
81
+ * Specifies the behavior dropdown button. Default 'blank' mode sends an empty string and 'current' mode sends the input value.
82
+ * @see AutoCompleteDropdownMode
83
+ * Default value is 'blank'.
84
+ */
85
+ dropdownMode?: AutoCompleteDropdownMode;
86
+ /**
87
+ * Highlights automatically the first item of the dropdown to be selected.
88
+ */
89
+ autoHighlight?: boolean | undefined;
90
+ /**
91
+ * Specifies if multiple values can be selected.
92
+ */
93
+ multiple?: boolean | undefined;
94
+ /**
95
+ * Minimum number of characters to initiate a search.
96
+ * Default value is 1.
97
+ */
98
+ minLength?: number | undefined;
99
+ /**
100
+ * Delay between keystrokes to wait before sending a query.
101
+ * Default value is 300.
102
+ */
103
+ delay?: number | undefined;
104
+ /**
105
+ * A valid query selector or an HTMLElement to specify where the overlay gets attached.
106
+ * Special keywords are 'body' for document body and 'self' for the element itself.
107
+ * Default value is body.
108
+ */
109
+ appendTo?: AutoCompleteAppendTo;
110
+ /**
111
+ * When present, autocomplete clears the manual input if it does not match of the suggestions to force only accepting values from the suggestions.
112
+ */
113
+ forceSelection?: boolean;
114
+ /**
115
+ * Whether to run a query when input receives focus.
116
+ */
117
+ completeOnFocus?: boolean | undefined;
118
+ /**
119
+ * Inline style of the input field.
120
+ */
18
121
  inputStyle?: any;
122
+ /**
123
+ * Style class of the input field.
124
+ */
19
125
  inputClass?: string;
20
- forceSelection?: boolean;
126
+ /**
127
+ * Inline style of the component.
128
+ */
21
129
  class?: any;
130
+ /**
131
+ * Style class of the component input field.
132
+ */
22
133
  style?: any;
134
+ /**
135
+ * Style class of the overlay panel.
136
+ */
23
137
  panelClass?: string;
138
+ /**
139
+ * Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
140
+ * @see VirtualScroller.VirtualScrollerProps
141
+ */
24
142
  virtualScrollerOptions?: VirtualScrollerProps;
25
143
  }
26
144
 
27
- interface AutoCompleteItemSlotInterface {
28
- item: any;
29
- index: number;
145
+ export interface AutoCompleteSlots {
146
+ /**
147
+ * Custom content for each item.
148
+ * @param {Object} scope - item slot's params.
149
+ */
150
+ item: (scope: {
151
+ /**
152
+ * Option instance
153
+ */
154
+ item: any;
155
+ /**
156
+ * Index of the option
157
+ */
158
+ index: number;
159
+ }) => VNode[];
160
+ /**
161
+ * Custom option group template.
162
+ * @param {Object} scope - option group slot's params.
163
+ */
164
+ optiongroup: (scope: {
165
+ /**
166
+ * Option instance
167
+ */
168
+ item: any;
169
+ /**
170
+ * Index of the option
171
+ */
172
+ index: number;
173
+ }) => VNode[];
174
+ /**
175
+ * Custom header template of panel.
176
+ * @param {Object} scope - header slot's params.
177
+ */
178
+ header: (scope: {
179
+ /**
180
+ * Value of the component
181
+ */
182
+ value: any;
183
+ /**
184
+ * Displayed options
185
+ */
186
+ suggestions: any[];
187
+ }) => VNode[];
188
+ /**
189
+ * Custom footer template of panel.
190
+ * @param {Object} scope - footer slot's params.
191
+ */
192
+ footer: (scope: {
193
+ /**
194
+ * Value of the component
195
+ */
196
+ value: any;
197
+ /**
198
+ * Displayed options
199
+ */
200
+ suggestions: any[];
201
+ }) => VNode[];
202
+ /**
203
+ * Custom chip template.
204
+ * @param {Object} scope - chip slot's params.
205
+ */
206
+ chip: (scope: {
207
+ /**
208
+ * A value in the selection
209
+ */
210
+ value: any;
211
+ }) => VNode[];
212
+ /**
213
+ * Custom panel template.
214
+ * @param {Object} scope - content slot's params.
215
+ */
216
+ content: (scope: {
217
+ /**
218
+ * An array of objects to display for virtualscroller
219
+ */
220
+ items: any;
221
+ /**
222
+ * Style class of the component
223
+ */
224
+ styleClass: string;
225
+ /**
226
+ * Referance of the content
227
+ * @param {HTMLElement} el - Element of 'ref' property
228
+ */
229
+ contentRef(el: any): void;
230
+ /**
231
+ * Options of the items
232
+ * @param {number} index - Rendered index
233
+ * @return {@link VirtualScroller.VirtualScrollerItemOptions}
234
+ */
235
+ getItemOptions(index: number): VirtualScrollerItemOptions;
236
+ }) => VNode[];
237
+ /**
238
+ * Custom loader template.
239
+ * @param {Object} scope - loader slot's params.
240
+ */
241
+ loader: (scope: {
242
+ /**
243
+ * Options of the loader items for virtualscroller
244
+ */
245
+ options: any[];
246
+ }) => VNode[];
30
247
  }
31
248
 
32
- interface AutoCompleteOptionGroupInterface {
33
- item: any;
34
- index: number;
249
+ export declare type AutoCompleteEmits = {
250
+ /**
251
+ * Emitted when the value changes.
252
+ * @param {*} value - New value.
253
+ */
254
+ 'update:modelValue': (value: any) => void;
255
+ /**
256
+ * Callback to invoke when a suggestion is selected.
257
+ * @param {AutoCompleteItemSelectEvent} event - Custom item select event.
258
+ */
259
+ 'item-select': (event: AutoCompleteItemSelectEvent) => void;
260
+ /**
261
+ * Callback to invoke when a selected value is removed.
262
+ * @param {AutoCompleteItemUnselectEvent} event - Custom item unselect event.
263
+ */
264
+ 'item-unselect': (event: AutoCompleteItemUnselectEvent) => void;
265
+ /**
266
+ * Callback to invoke to when dropdown button is clicked.
267
+ * @param {AutoCompleteDropdownClickEvent} event - Custom dropdown click event.
268
+ */
269
+ 'dropdown-click': (event: AutoCompleteDropdownClickEvent) => void;
270
+ /**
271
+ * Callback to invoke to search for suggestions.
272
+ * @param {AutoCompleteCompleteEvent} event - Custom complete event.
273
+ */
274
+ 'complete': (event: AutoCompleteCompleteEvent) => void;
275
+ /**
276
+ * Callback to invoke when input is cleared by the user.
277
+ */
278
+ 'clear': () => void;
35
279
  }
36
280
 
37
- interface AutoCompleteHeaderInterface {
38
- value: any;
39
- suggestions: any;
40
- }
41
-
42
- interface AutoCompleteFooterInterface {
43
- value: any;
44
- suggestions: any;
45
- }
46
-
47
- interface AutoCompleteChipInterface {
48
- value: any;
49
- }
50
-
51
- interface AutoCompleteContentInterface {
52
- items: any;
53
- styleClass: string;
54
- contentRef: string;
55
- getItemOptions: any;
56
- }
57
-
58
- interface AutoCompleteLoaderInterface {
59
- options: any[];
60
- }
281
+ declare class AutoComplete extends ClassComponent<AutoCompleteProps, AutoCompleteSlots, AutoCompleteEmits> { }
61
282
 
62
- declare class AutoComplete {
63
- $props: AutoCompleteProps;
64
- $emit(eventName: 'update:modelValue', value: any): this;
65
- $emit(eventName: 'item-select', e: {originalEvent: Event, value: any}): this;
66
- $emit(eventName: 'item-unselect', e: {originalEvent: Event, value: any}): this;
67
- $emit(eventName: 'dropdown-click', e: {originalEvent: Event, query: string}): this;
68
- $emit(eventName: 'complete', e: {originalEvent: Event, query: string}): this;
69
- $emit(eventName: 'clear'): this;
70
- $slots: {
71
- item: AutoCompleteItemSlotInterface;
72
- optiongroup: AutoCompleteOptionGroupInterface;
73
- header: AutoCompleteHeaderInterface;
74
- footer: AutoCompleteFooterInterface;
75
- chip: AutoCompleteChipInterface;
76
- content: AutoCompleteContentInterface;
77
- loader: AutoCompleteLoaderInterface;
78
- };
283
+ declare module '@vue/runtime-core' {
284
+ interface GlobalComponents {
285
+ AutoComplete: GlobalComponentConstructor<AutoComplete>
286
+ }
79
287
  }
80
288
 
289
+ /**
290
+ *
291
+ * AutoComplete is an input component that provides real-time suggestions when being typed.
292
+ *
293
+ * Demos:
294
+ *
295
+ * - [AutoComplete](https://www.primefaces.org/primevue/showcase/#/autocomplete)
296
+ *
297
+ */
81
298
  export default AutoComplete;
@@ -1,13 +1,62 @@
1
- interface AvatarProps {
2
- label?: string;
3
- icon?: string;
4
- image?: string;
5
- size?: string;
6
- shape?: string;
1
+ import { VNode } from 'vue';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
+
4
+ type AvatarSizeType = 'normal' | 'large' | 'xlarge' | undefined;
5
+
6
+ type AvatarShapeType = 'square' | 'circle' | undefined;
7
+
8
+ export interface AvatarProps {
9
+ /**
10
+ * Defines the text to display.
11
+ */
12
+ label?: string | undefined;
13
+ /**
14
+ * Defines the icon to display.
15
+ */
16
+ icon?: string | undefined;
17
+ /**
18
+ * Defines the image to display.
19
+ */
20
+ image?: string | undefined;
21
+ /**
22
+ * Size of the element, valid options are 'normal', 'large' and 'xlarge'.
23
+ * @see AvatarSizeType
24
+ * Default value is 'normal'.
25
+ */
26
+ size?: AvatarSizeType;
27
+ /**
28
+ * Shape of the element, valid options are 'square' and 'circle'.
29
+ * @see AvatarShapeType
30
+ * Default value is 'square'.
31
+ */
32
+ shape?: AvatarShapeType;
33
+ }
34
+
35
+ export interface AvatarSlots {
36
+ /**
37
+ * Content can easily be customized with the default slot instead of using the built-in modes.
38
+ */
39
+ default: () => VNode[];
40
+ }
41
+
42
+ export declare type AvatarEmits = {
7
43
  }
8
44
 
9
- declare class Avatar {
10
- $props: AvatarProps
45
+ declare class Avatar extends ClassComponent<AvatarProps, AvatarSlots, AvatarEmits> { }
46
+
47
+ declare module '@vue/runtime-core' {
48
+ interface GlobalComponents {
49
+ Avatar: GlobalComponentConstructor<Avatar>
50
+ }
11
51
  }
12
52
 
53
+ /**
54
+ *
55
+ * Avatar represents people using icons, labels and images.
56
+ *
57
+ * Demos:
58
+ *
59
+ * - [Avatar](https://www.primefaces.org/primevue/showcase/#/avatar)
60
+ *
61
+ */
13
62
  export default Avatar;
@@ -1,7 +1,33 @@
1
- interface AvatarGroupProps {}
1
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
2
 
3
- declare class AvatarGroup {
4
- $props: AvatarGroupProps;
3
+ export interface AvatarGroupProps {
5
4
  }
6
5
 
6
+ export interface AvatarGroupSlots {
7
+ }
8
+
9
+ export declare type AvatarGroupEmits = {
10
+ }
11
+
12
+ declare class AvatarGroup extends ClassComponent<AvatarGroupProps, AvatarGroupSlots, AvatarGroupEmits> { }
13
+
14
+ declare module '@vue/runtime-core' {
15
+ interface GlobalComponents {
16
+ AvatarGroup: GlobalComponentConstructor<AvatarGroup>
17
+ }
18
+ }
19
+
20
+ /**
21
+ *
22
+ * A set of Avatars can be displayed together using the AvatarGroup component.
23
+ *
24
+ * Helper Components:
25
+ *
26
+ * - Avatar
27
+ *
28
+ * Demos:
29
+ *
30
+ * - [AvatarGroup](https://www.primefaces.org/primevue/showcase/#/avatar)
31
+ *
32
+ */
7
33
  export default AvatarGroup;
package/badge/Badge.d.ts CHANGED
@@ -1,11 +1,52 @@
1
- interface BadgeProps {
1
+ import { VNode } from 'vue';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
+
4
+ type BadgeSeverityType = 'info' | 'success' | 'warning' | 'danger' | undefined;
5
+
6
+ type BadgeSizeType = 'large' | 'xlarge' | undefined;
7
+
8
+ export interface BadgeProps {
9
+ /**
10
+ * Value to display inside the badge.
11
+ */
2
12
  value?: any;
3
- severity?: string;
4
- size?: string;
13
+ /**
14
+ * Severity type of the badge.
15
+ * @see BadgeSeverityType
16
+ */
17
+ severity?: BadgeSeverityType;
18
+ /**
19
+ * Size of the badge, valid options are 'large' and 'xlarge'.
20
+ * @see BadgeSizeType
21
+ */
22
+ size?: BadgeSizeType;
23
+ }
24
+
25
+ export interface BadgeSlots {
26
+ /**
27
+ * Content can easily be customized with the default slot instead of using the built-in display.
28
+ */
29
+ default: () => VNode[];
30
+ }
31
+
32
+ export declare type BadgeEmits = {
5
33
  }
6
34
 
7
- declare class Badge {
8
- $props: BadgeProps;
35
+ declare class Badge extends ClassComponent<BadgeProps, BadgeSlots, BadgeEmits> { }
36
+
37
+ declare module '@vue/runtime-core' {
38
+ interface GlobalComponents {
39
+ Badge: GlobalComponentConstructor<Badge>
40
+ }
9
41
  }
10
42
 
43
+ /**
44
+ *
45
+ * Badge is a small status indicator for another element.
46
+ *
47
+ * Demos:
48
+ *
49
+ * - [Badge](https://www.primefaces.org/primevue/showcase/#/badge)
50
+ *
51
+ */
11
52
  export default Badge;
@@ -1,19 +1,60 @@
1
1
  import { VNode } from 'vue';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
3
 
3
- interface BlockUIProps {
4
- blocked?: boolean;
5
- fullScreen?: boolean;
6
- baseZIndex?: number;
7
- autoZIndex?: boolean;
4
+ export interface BlockUIProps {
5
+ /**
6
+ * Controls the blocked state.
7
+ */
8
+ blocked?: boolean | undefined;
9
+ /**
10
+ * When enabled, the whole document gets blocked.
11
+ */
12
+ fullScreen?: boolean | undefined;
13
+ /**
14
+ * Base zIndex value to use in layering.
15
+ * Default value is 0.
16
+ */
17
+ baseZIndex?: number | undefined;
18
+ /**
19
+ * Whether to automatically manage layering.
20
+ * Default value is true.
21
+ */
22
+ autoZIndex?: boolean | undefined;
8
23
  }
9
24
 
10
- declare class BlockUI {
11
- $props: BlockUIProps;
12
- $emit(eventName: 'block'): this;
13
- $emit(eventName: 'unblock'): this;
14
- $slots: {
15
- '': VNode[];
25
+ export interface BlockUISlots {
26
+ /**
27
+ * Custom content's slot.
28
+ */
29
+ default: () => VNode[];
30
+ }
31
+
32
+ export declare type BlockUIEmits = {
33
+ /**
34
+ * Fired when the element gets blocked.
35
+ */
36
+ 'block': () => void;
37
+ /**
38
+ * Fired when the element gets unblocked.
39
+ */
40
+ 'unblock': () => void;
41
+ }
42
+
43
+ declare class BlockUI extends ClassComponent<BlockUIProps, BlockUISlots, BlockUIEmits> { }
44
+
45
+ declare module '@vue/runtime-core' {
46
+ interface GlobalComponents {
47
+ BlockUI: GlobalComponentConstructor<BlockUI>
16
48
  }
17
49
  }
18
50
 
51
+ /**
52
+ *
53
+ * BlockUI can either block other components or the whole page.
54
+ *
55
+ * Demos:
56
+ *
57
+ * - [BlockUI](https://www.primefaces.org/primevue/showcase/#/blockui)
58
+ *
59
+ */
19
60
  export default BlockUI;
@@ -1,18 +1,58 @@
1
- interface BreadcrumbProps {
2
- home?: any;
3
- model?: any[];
1
+ import { VNode } from 'vue';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
+ import { MenuItem } from '../menuitem';
4
+
5
+ export interface BreadcrumbProps {
6
+ /**
7
+ * An array of menuitems.
8
+ */
9
+ model?: MenuItem[];
10
+ /**
11
+ * Configuration for the home icon.
12
+ */
13
+ home?: MenuItem;
14
+ /**
15
+ * Whether to apply 'router-link-active-exact' class if route exactly matches the item path.
16
+ * Default value is true.
17
+ */
4
18
  exact?: boolean;
5
19
  }
6
20
 
7
- interface BreadcrumbItemSlotInterface {
8
- item: any;
21
+ export interface BreadcrumbSlots {
22
+ /**
23
+ * Custom item template.
24
+ * @param {Object} scope - item slot's params.
25
+ */
26
+ item: (scope: {
27
+ /**
28
+ * Menuitem instance
29
+ */
30
+ item: MenuItem;
31
+ }) => VNode[];
32
+ }
33
+
34
+ export declare type BreadcrumbEmits = {
9
35
  }
10
36
 
11
- declare class Breadcrumb {
12
- $props: BreadcrumbProps;
13
- $slots: {
14
- item: BreadcrumbItemSlotInterface
37
+ declare class Breadcrumb extends ClassComponent<BreadcrumbProps, BreadcrumbSlots, BreadcrumbEmits> { }
38
+
39
+ declare module '@vue/runtime-core' {
40
+ interface GlobalComponents {
41
+ Breadcrumb: GlobalComponentConstructor<Breadcrumb>
15
42
  }
16
43
  }
17
44
 
45
+ /**
46
+ *
47
+ * Breadcrumb provides contextual information about page hierarchy.
48
+ *
49
+ * Helper API:
50
+ *
51
+ * - [MenuItem](https://www.primefaces.org/primevue/showcase/#/menumodel)
52
+ *
53
+ * Demos:
54
+ *
55
+ * - [Breadcrumb](https://www.primefaces.org/primevue/showcase/#/breadcrumb)
56
+ *
57
+ */
18
58
  export default Breadcrumb;