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.
- package/accordion/Accordion.d.ts +74 -11
- package/accordiontab/AccordionTab.d.ts +37 -8
- package/api/Api.d.ts +292 -285
- package/autocomplete/AutoComplete.d.ts +279 -62
- package/avatar/Avatar.d.ts +57 -8
- package/avatargroup/AvatarGroup.d.ts +29 -3
- package/badge/Badge.d.ts +46 -5
- package/blockui/BlockUI.d.ts +52 -11
- package/breadcrumb/Breadcrumb.d.ts +49 -9
- package/button/Button.d.ts +68 -11
- package/calendar/Calendar.d.ts +322 -62
- package/calendar/Calendar.vue +48 -20
- package/calendar/calendar.cjs.js +120 -93
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +120 -92
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +122 -94
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +43 -9
- package/carousel/Carousel.d.ts +121 -24
- package/cascadeselect/CascadeSelect.d.ts +164 -31
- package/chart/Chart.d.ts +104 -12
- package/chart/Chart.vue +9 -2
- package/chart/chart.cjs.js +9 -2
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +9 -2
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +9 -2
- package/chart/chart.min.js +1 -1
- package/checkbox/Checkbox.d.ts +65 -7
- package/chip/Chip.d.ts +50 -4
- package/chips/Chips.d.ts +88 -15
- package/colorpicker/ColorPicker.d.ts +105 -16
- package/column/Column.d.ts +448 -78
- package/columngroup/ColumnGroup.d.ts +30 -4
- package/confirmationoptions/ConfirmationOptions.d.ts +50 -0
- package/confirmationoptions/package.json +3 -0
- package/confirmationservice/ConfirmationService.d.ts +2 -1
- package/confirmdialog/ConfirmDialog.d.ts +57 -5
- package/confirmpopup/ConfirmPopup.d.ts +38 -7
- package/contextmenu/ContextMenu.d.ts +88 -16
- package/core/core.js +364 -268
- package/core/core.min.js +2 -2
- package/datatable/BodyCell.vue +26 -1
- package/datatable/DataTable.d.ts +1056 -131
- package/datatable/DataTable.vue +102 -81
- package/datatable/HeaderCheckbox.vue +4 -1
- package/datatable/TableBody.vue +53 -14
- package/datatable/datatable.cjs.js +414 -307
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +414 -308
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +415 -309
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +198 -32
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +34 -5
- package/deferredcontent/DeferredContent.d.ts +31 -6
- package/dialog/Dialog.d.ts +188 -35
- package/divider/Divider.d.ts +53 -8
- package/dock/Dock.d.ts +92 -15
- package/dropdown/Dropdown.d.ts +335 -76
- package/editor/Editor.d.ts +78 -11
- package/fieldset/Fieldset.d.ts +63 -11
- package/fileupload/FileUpload.d.ts +255 -37
- package/fullcalendar/FullCalendar.d.ts +29 -3
- package/galleria/Galleria.d.ts +196 -46
- package/image/Image.d.ts +51 -6
- package/inlinemessage/InlineMessage.d.ts +34 -6
- package/inplace/Inplace.d.ts +57 -12
- package/inputmask/InputMask.d.ts +75 -15
- package/inputnumber/InputNumber.d.ts +180 -30
- package/inputswitch/InputSwitch.d.ts +61 -9
- package/inputtext/InputText.d.ts +34 -5
- package/knob/Knob.d.ts +92 -18
- package/listbox/Listbox.d.ts +240 -55
- package/megamenu/MegaMenu.d.ts +60 -12
- package/menu/Menu.d.ts +84 -15
- package/menubar/Menubar.d.ts +52 -11
- package/menuitem/MenuItem.d.ts +80 -0
- package/menuitem/package.json +3 -0
- package/message/Message.d.ts +57 -11
- package/multiselect/MultiSelect.d.ts +363 -83
- package/orderlist/OrderList.d.ts +122 -19
- package/organizationchart/OrganizationChart.d.ts +137 -15
- package/overlaypanel/OverlayPanel.d.ts +107 -12
- package/package.json +1 -1
- package/paginator/Paginator.d.ts +129 -27
- package/panel/Panel.d.ts +64 -9
- package/panelmenu/PanelMenu.d.ts +59 -11
- package/panelmenu/PanelMenu.vue +2 -2
- package/panelmenu/panelmenu.cjs.js +4 -4
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +4 -4
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +4 -4
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.d.ts +115 -24
- package/picklist/PickList.d.ts +199 -32
- package/progressbar/ProgressBar.d.ts +43 -8
- package/progressspinner/ProgressSpinner.d.ts +39 -6
- package/radiobutton/RadioButton.d.ts +51 -6
- package/rating/Rating.d.ts +67 -10
- package/resources/themes/arya-blue/theme.css +5 -1
- package/resources/themes/arya-green/theme.css +5 -1
- package/resources/themes/arya-orange/theme.css +5 -1
- package/resources/themes/arya-purple/theme.css +5 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +5 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +5 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +5 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +5 -1
- package/resources/themes/fluent-light/theme.css +5 -1
- package/resources/themes/lara-dark-blue/theme.css +43 -39
- package/resources/themes/lara-dark-indigo/theme.css +43 -39
- package/resources/themes/lara-dark-purple/theme.css +43 -39
- package/resources/themes/lara-dark-teal/theme.css +43 -39
- package/resources/themes/lara-light-blue/theme.css +5 -1
- package/resources/themes/lara-light-indigo/theme.css +5 -1
- package/resources/themes/lara-light-purple/theme.css +5 -1
- package/resources/themes/lara-light-teal/theme.css +5 -1
- package/resources/themes/luna-amber/theme.css +5 -1
- package/resources/themes/luna-blue/theme.css +5 -1
- package/resources/themes/luna-green/theme.css +5 -1
- package/resources/themes/luna-pink/theme.css +5 -1
- package/resources/themes/md-dark-deeppurple/theme.css +5 -1
- package/resources/themes/md-dark-indigo/theme.css +5 -1
- package/resources/themes/md-light-deeppurple/theme.css +5 -1
- package/resources/themes/md-light-indigo/theme.css +5 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +5 -1
- package/resources/themes/mdc-dark-indigo/theme.css +5 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +5 -1
- package/resources/themes/mdc-light-indigo/theme.css +5 -1
- package/resources/themes/nova/theme.css +5 -1
- package/resources/themes/nova-accent/theme.css +5 -1
- package/resources/themes/nova-alt/theme.css +5 -1
- package/resources/themes/nova-vue/theme.css +5 -1
- package/resources/themes/rhea/theme.css +5 -1
- package/resources/themes/saga-blue/theme.css +5 -1
- package/resources/themes/saga-green/theme.css +5 -1
- package/resources/themes/saga-orange/theme.css +5 -1
- package/resources/themes/saga-purple/theme.css +5 -1
- package/resources/themes/tailwind-light/theme.css +5 -1
- package/resources/themes/vela-blue/theme.css +5 -1
- package/resources/themes/vela-green/theme.css +5 -1
- package/resources/themes/vela-orange/theme.css +5 -1
- package/resources/themes/vela-purple/theme.css +5 -1
- package/row/Row.d.ts +25 -3
- package/scrollpanel/ScrollPanel.d.ts +27 -5
- package/scrolltop/ScrollTop.d.ts +47 -7
- package/selectbutton/SelectButton.d.ts +101 -17
- package/sidebar/Sidebar.d.ts +81 -16
- package/skeleton/Skeleton.d.ts +58 -9
- package/slider/Slider.d.ts +90 -14
- package/speeddial/SpeedDial.d.ts +166 -29
- package/splitbutton/SplitButton.d.ts +71 -11
- package/splitter/Splitter.d.ts +74 -7
- package/splitterpanel/SplitterPanel.d.ts +34 -7
- package/steps/Steps.d.ts +51 -11
- package/tabmenu/TabMenu.d.ts +63 -10
- package/tabpanel/TabPanel.d.ts +34 -7
- package/tabview/TabView.d.ts +73 -11
- package/tag/Tag.d.ts +44 -8
- package/terminal/Terminal.d.ts +36 -5
- package/terminalservice/TerminalService.d.ts +1 -1
- package/textarea/Textarea.d.ts +38 -6
- package/tieredmenu/TieredMenu.d.ts +89 -15
- package/timeline/Timeline.d.ts +94 -15
- package/toast/Toast.d.ts +110 -12
- package/toastservice/ToastService.d.ts +17 -5
- package/togglebutton/ToggleButton.d.ts +64 -11
- package/toolbar/Toolbar.d.ts +31 -6
- package/tree/Tree.d.ts +189 -26
- package/treeselect/TreeSelect.d.ts +201 -44
- package/treetable/TreeTable.d.ts +459 -63
- package/tristatecheckbox/TriStateCheckbox.d.ts +39 -5
- package/ts-helpers.d.ts +28 -0
- package/useconfirm/UseConfirm.d.ts +5 -19
- package/usetoast/UseToast.d.ts +3 -5
- package/utils/Utils.d.ts +3 -0
- package/utils/utils.cjs.js +39 -2
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +39 -2
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +39 -2
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +57 -25
- package/vetur-tags.json +11 -3
- package/virtualscroller/VirtualScroller.d.ts +294 -53
- package/virtualscroller/VirtualScroller.vue +296 -255
- package/virtualscroller/virtualscroller.cjs.js +325 -266
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +325 -266
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +325 -266
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +153 -28
|
@@ -1,81 +1,298 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
|
+
import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
|
|
2
4
|
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
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
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
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
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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;
|
package/avatar/Avatar.d.ts
CHANGED
|
@@ -1,13 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
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;
|
package/blockui/BlockUI.d.ts
CHANGED
|
@@ -1,19 +1,60 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
3
|
|
|
3
|
-
interface BlockUIProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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;
|