@vuetify/nightly 3.6.14-master.2024-08-12 → 3.6.14-master.2024-08-13
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/dist/json/attributes.json +7 -7
- package/dist/json/importMap-labs.json +30 -30
- package/dist/json/importMap.json +138 -138
- package/dist/json/web-types.json +8 -8
- package/dist/vuetify-labs.css +2728 -2728
- package/dist/vuetify-labs.d.ts +33444 -40135
- package/dist/vuetify-labs.esm.js +16 -8
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +16 -8
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +556 -556
- package/dist/vuetify.d.ts +32672 -39038
- package/dist/vuetify.esm.js +16 -8
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +16 -8
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +22 -22
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/index.d.mts +50 -73
- package/lib/components/VApp/index.d.mts +9 -11
- package/lib/components/VAppBar/index.d.mts +92 -128
- package/lib/components/VAutocomplete/index.d.mts +4771 -3230
- package/lib/components/VAvatar/index.d.mts +23 -22
- package/lib/components/VBadge/index.d.mts +53 -59
- package/lib/components/VBanner/index.d.mts +44 -66
- package/lib/components/VBottomNavigation/index.d.mts +25 -32
- package/lib/components/VBottomSheet/index.d.mts +125 -135
- package/lib/components/VBreadcrumbs/index.d.mts +35 -78
- package/lib/components/VBtn/index.d.mts +49 -53
- package/lib/components/VBtnGroup/index.d.mts +14 -13
- package/lib/components/VBtnToggle/index.d.mts +21 -23
- package/lib/components/VCard/index.d.mts +104 -168
- package/lib/components/VCarousel/index.d.mts +59 -96
- package/lib/components/VCheckbox/index.d.mts +132 -155
- package/lib/components/VChip/index.d.mts +47 -59
- package/lib/components/VChipGroup/index.d.mts +39 -41
- package/lib/components/VCode/index.d.mts +9 -11
- package/lib/components/VColorPicker/index.d.mts +58 -133
- package/lib/components/VCombobox/index.d.mts +4785 -3244
- package/lib/components/VConfirmEdit/index.d.mts +11 -19
- package/lib/components/VCounter/index.d.mts +40 -42
- package/lib/components/VDataIterator/index.d.mts +171 -185
- package/lib/components/VDataTable/index.d.mts +480 -1204
- package/lib/components/VDatePicker/index.d.mts +120 -158
- package/lib/components/VDefaultsProvider/index.d.mts +5 -9
- package/lib/components/VDialog/index.d.mts +243 -277
- package/lib/components/VDivider/index.d.mts +9 -11
- package/lib/components/VEmptyState/index.d.mts +30 -52
- package/lib/components/VExpansionPanel/index.d.mts +60 -85
- package/lib/components/VFab/index.d.mts +81 -73
- package/lib/components/VField/index.d.mts +35 -62
- package/lib/components/VFileInput/VFileInput.mjs +1 -1
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.mts +172 -259
- package/lib/components/VFooter/index.d.mts +9 -11
- package/lib/components/VForm/index.d.mts +105 -77
- package/lib/components/VGrid/index.d.mts +41 -52
- package/lib/components/VHover/index.d.mts +5 -9
- package/lib/components/VIcon/index.d.mts +23 -29
- package/lib/components/VImg/index.d.mts +28 -42
- package/lib/components/VInfiniteScroll/index.d.mts +17 -37
- package/lib/components/VInput/index.d.mts +48 -50
- package/lib/components/VItemGroup/index.d.mts +21 -30
- package/lib/components/VKbd/index.d.mts +9 -11
- package/lib/components/VLabel/index.d.mts +9 -11
- package/lib/components/VLayout/index.d.mts +18 -24
- package/lib/components/VLazy/index.d.mts +42 -44
- package/lib/components/VList/index.d.mts +210 -329
- package/lib/components/VLocaleProvider/index.d.mts +9 -11
- package/lib/components/VMain/index.d.mts +9 -11
- package/lib/components/VMenu/index.d.mts +272 -306
- package/lib/components/VMessages/index.d.mts +49 -51
- package/lib/components/VNavigationDrawer/index.d.mts +27 -40
- package/lib/components/VOtpInput/index.d.mts +22 -28
- package/lib/components/VOverlay/VOverlay.mjs +4 -3
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.mts +53 -63
- package/lib/components/VPagination/index.d.mts +31 -46
- package/lib/components/VParallax/index.d.mts +15 -29
- package/lib/components/VProgressCircular/index.d.mts +9 -11
- package/lib/components/VProgressLinear/index.d.mts +22 -24
- package/lib/components/VRadio/index.d.mts +49 -52
- package/lib/components/VRadioGroup/index.d.mts +66 -66
- package/lib/components/VRangeSlider/index.d.mts +58 -69
- package/lib/components/VRating/index.d.mts +13 -19
- package/lib/components/VResponsive/index.d.mts +11 -17
- package/lib/components/VSelect/index.d.mts +4762 -3221
- package/lib/components/VSelectionControl/index.d.mts +38 -44
- package/lib/components/VSelectionControlGroup/index.d.mts +34 -34
- package/lib/components/VSheet/index.d.mts +15 -17
- package/lib/components/VSkeletonLoader/index.d.mts +41 -11
- package/lib/components/VSlideGroup/index.d.mts +112 -129
- package/lib/components/VSlider/index.d.mts +58 -69
- package/lib/components/VSnackbar/VSnackbar.mjs +5 -1
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/index.d.mts +231 -270
- package/lib/components/VSparkline/index.d.mts +11 -19
- package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.mjs.map +1 -1
- package/lib/components/VSpeedDial/index.d.mts +179 -189
- package/lib/components/VStepper/index.d.mts +105 -180
- package/lib/components/VSwitch/index.d.mts +78 -98
- package/lib/components/VSystemBar/index.d.mts +13 -15
- package/lib/components/VTable/index.d.mts +15 -29
- package/lib/components/VTabs/index.d.mts +213 -297
- package/lib/components/VTextField/index.d.mts +253 -408
- package/lib/components/VTextarea/index.d.mts +157 -236
- package/lib/components/VThemeProvider/index.d.mts +9 -11
- package/lib/components/VTimeline/index.d.mts +29 -43
- package/lib/components/VToolbar/index.d.mts +49 -80
- package/lib/components/VTooltip/index.d.mts +282 -316
- package/lib/components/VValidation/index.d.mts +16 -23
- package/lib/components/VVirtualScroll/index.d.mts +14 -23
- package/lib/components/VWindow/index.d.mts +29 -50
- package/lib/components/index.d.mts +31169 -37524
- package/lib/components/transitions/index.d.mts +84 -148
- package/lib/composables/location.mjs.map +1 -1
- package/lib/directives/click-outside/index.mjs +3 -0
- package/lib/directives/click-outside/index.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +58 -58
- package/lib/labs/VCalendar/index.d.mts +146 -166
- package/lib/labs/VDateInput/index.d.mts +83 -62
- package/lib/labs/VNumberInput/index.d.mts +61 -88
- package/lib/labs/VPicker/index.d.mts +28 -46
- package/lib/labs/VPullToRefresh/index.d.mts +7 -15
- package/lib/labs/VSnackbarQueue/index.d.mts +311 -369
- package/lib/labs/VStepperVertical/index.d.mts +109 -184
- package/lib/labs/VTimePicker/index.d.mts +35 -53
- package/lib/labs/VTreeview/index.d.mts +200 -277
- package/lib/labs/components.d.mts +905 -1231
- package/lib/util/propsFactory.mjs.map +1 -1
- package/package.json +3 -3
@@ -1,5 +1,7 @@
|
|
1
1
|
import * as vue from 'vue';
|
2
|
-
import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode,
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, PropType, JSXComponent, ComputedRef, Ref, DirectiveBinding } from 'vue';
|
3
|
+
|
4
|
+
type ClassValue = any;
|
3
5
|
|
4
6
|
type SlotsToProps<U extends RawSlots, T = MakeInternalSlots<U>> = {
|
5
7
|
$children?: (VNodeChild | (T extends {
|
@@ -31,11 +33,29 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
|
|
31
33
|
}
|
32
34
|
|
33
35
|
declare function deepEqual(a: any, b: any): boolean;
|
36
|
+
type EventProp<T extends any[] = any[], F = (...args: T) => void> = F;
|
37
|
+
declare const EventProp: <T extends any[] = any[]>() => PropType<EventProp<T>>;
|
34
38
|
|
35
39
|
type Density = null | 'default' | 'comfortable' | 'compact';
|
36
40
|
|
37
41
|
type ValidationResult = string | boolean;
|
38
42
|
type ValidationRule = ValidationResult | PromiseLike<ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike<ValidationResult>);
|
43
|
+
type ValidateOnValue = 'blur' | 'input' | 'submit';
|
44
|
+
interface ValidationProps {
|
45
|
+
disabled: boolean | null;
|
46
|
+
error: boolean;
|
47
|
+
errorMessages: string | readonly string[] | null;
|
48
|
+
focused: boolean;
|
49
|
+
maxErrors: string | number;
|
50
|
+
name: string | undefined;
|
51
|
+
label: string | undefined;
|
52
|
+
readonly: boolean | null;
|
53
|
+
rules: readonly ValidationRule[];
|
54
|
+
modelValue: any;
|
55
|
+
'onUpdate:modelValue': EventProp | undefined;
|
56
|
+
validateOn?: ValidateOnValue | `${ValidateOnValue} lazy` | `lazy ${ValidateOnValue}` | 'lazy';
|
57
|
+
validationValue: any;
|
58
|
+
}
|
39
59
|
|
40
60
|
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
41
61
|
declare const IconValue: PropType<IconValue>;
|
@@ -65,6 +85,17 @@ type VInputSlots = {
|
|
65
85
|
message: VMessageSlot;
|
66
86
|
};
|
67
87
|
|
88
|
+
interface RippleDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
|
89
|
+
value?: boolean | {
|
90
|
+
class: string;
|
91
|
+
};
|
92
|
+
modifiers: {
|
93
|
+
center?: boolean;
|
94
|
+
circle?: boolean;
|
95
|
+
stop?: boolean;
|
96
|
+
};
|
97
|
+
}
|
98
|
+
|
68
99
|
type VRadioGroupSlots = Omit<VInputSlots, 'default'> & {
|
69
100
|
default: never;
|
70
101
|
label: {
|
@@ -98,9 +129,9 @@ declare const VRadioGroup: {
|
|
98
129
|
hideSpinButtons: boolean;
|
99
130
|
persistentHint: boolean;
|
100
131
|
} & {
|
132
|
+
name?: string | undefined;
|
101
133
|
id?: string | undefined;
|
102
134
|
width?: string | number | undefined;
|
103
|
-
name?: string | undefined;
|
104
135
|
color?: string | undefined;
|
105
136
|
maxWidth?: string | number | undefined;
|
106
137
|
minWidth?: string | number | undefined;
|
@@ -118,8 +149,8 @@ declare const VRadioGroup: {
|
|
118
149
|
hint?: string | undefined;
|
119
150
|
hideDetails?: boolean | "auto" | undefined;
|
120
151
|
} & {}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
121
|
-
'update:modelValue': (value: any) =>
|
122
|
-
}, "$children" | "v-
|
152
|
+
'update:modelValue': (value: any) => true;
|
153
|
+
}, "$children" | "v-slots" | "v-slot:default" | "modelValue" | "v-slot:prepend" | "v-slot:append" | "update:modelValue" | "v-slot:label" | "v-slot:message" | "v-slot:details">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
123
154
|
type: string;
|
124
155
|
inline: boolean;
|
125
156
|
error: boolean;
|
@@ -144,9 +175,9 @@ declare const VRadioGroup: {
|
|
144
175
|
hideSpinButtons: boolean;
|
145
176
|
persistentHint: boolean;
|
146
177
|
} & {
|
178
|
+
name?: string | undefined;
|
147
179
|
id?: string | undefined;
|
148
180
|
width?: string | number | undefined;
|
149
|
-
name?: string | undefined;
|
150
181
|
color?: string | undefined;
|
151
182
|
maxWidth?: string | number | undefined;
|
152
183
|
minWidth?: string | number | undefined;
|
@@ -188,27 +219,15 @@ declare const VRadioGroup: {
|
|
188
219
|
hideSpinButtons: boolean;
|
189
220
|
persistentHint: boolean;
|
190
221
|
}, true, {}, vue.SlotsType<Partial<{
|
191
|
-
message: (arg: VMessageSlot) => vue.VNode
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
}>[];
|
197
|
-
append: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
198
|
-
[key: string]: any;
|
199
|
-
}>[];
|
200
|
-
prepend: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
201
|
-
[key: string]: any;
|
202
|
-
}>[];
|
203
|
-
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
204
|
-
[key: string]: any;
|
205
|
-
}>[];
|
222
|
+
message: (arg: VMessageSlot) => vue.VNode[];
|
223
|
+
details: (arg: VInputSlot) => vue.VNode[];
|
224
|
+
append: (arg: VInputSlot) => vue.VNode[];
|
225
|
+
prepend: (arg: VInputSlot) => vue.VNode[];
|
226
|
+
default: () => vue.VNode[];
|
206
227
|
label: (arg: {
|
207
228
|
label: string | undefined;
|
208
229
|
props: Record<string, any>;
|
209
|
-
}) => vue.VNode
|
210
|
-
[key: string]: any;
|
211
|
-
}>[];
|
230
|
+
}) => vue.VNode[];
|
212
231
|
}>>, {
|
213
232
|
P: {};
|
214
233
|
B: {};
|
@@ -241,9 +260,9 @@ declare const VRadioGroup: {
|
|
241
260
|
hideSpinButtons: boolean;
|
242
261
|
persistentHint: boolean;
|
243
262
|
} & {
|
263
|
+
name?: string | undefined;
|
244
264
|
id?: string | undefined;
|
245
265
|
width?: string | number | undefined;
|
246
|
-
name?: string | undefined;
|
247
266
|
color?: string | undefined;
|
248
267
|
maxWidth?: string | number | undefined;
|
249
268
|
minWidth?: string | number | undefined;
|
@@ -285,9 +304,9 @@ declare const VRadioGroup: {
|
|
285
304
|
hideSpinButtons: boolean;
|
286
305
|
persistentHint: boolean;
|
287
306
|
}>;
|
288
|
-
__isFragment?:
|
289
|
-
__isTeleport?:
|
290
|
-
__isSuspense?:
|
307
|
+
__isFragment?: never;
|
308
|
+
__isTeleport?: never;
|
309
|
+
__isSuspense?: never;
|
291
310
|
} & vue.ComponentOptionsBase<{
|
292
311
|
type: string;
|
293
312
|
inline: boolean;
|
@@ -313,9 +332,9 @@ declare const VRadioGroup: {
|
|
313
332
|
hideSpinButtons: boolean;
|
314
333
|
persistentHint: boolean;
|
315
334
|
} & {
|
335
|
+
name?: string | undefined;
|
316
336
|
id?: string | undefined;
|
317
337
|
width?: string | number | undefined;
|
318
|
-
name?: string | undefined;
|
319
338
|
color?: string | undefined;
|
320
339
|
maxWidth?: string | number | undefined;
|
321
340
|
minWidth?: string | number | undefined;
|
@@ -333,8 +352,8 @@ declare const VRadioGroup: {
|
|
333
352
|
hint?: string | undefined;
|
334
353
|
hideDetails?: boolean | "auto" | undefined;
|
335
354
|
} & {}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
336
|
-
'update:modelValue': (value: any) =>
|
337
|
-
}, "$children" | "v-
|
355
|
+
'update:modelValue': (value: any) => true;
|
356
|
+
}, "$children" | "v-slots" | "v-slot:default" | "modelValue" | "v-slot:prepend" | "v-slot:append" | "update:modelValue" | "v-slot:label" | "v-slot:message" | "v-slot:details">, string, {
|
338
357
|
type: string;
|
339
358
|
inline: boolean;
|
340
359
|
error: boolean;
|
@@ -359,34 +378,19 @@ declare const VRadioGroup: {
|
|
359
378
|
hideSpinButtons: boolean;
|
360
379
|
persistentHint: boolean;
|
361
380
|
}, {}, string, vue.SlotsType<Partial<{
|
362
|
-
message: (arg: VMessageSlot) => vue.VNode
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
}>[];
|
368
|
-
append: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
369
|
-
[key: string]: any;
|
370
|
-
}>[];
|
371
|
-
prepend: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
372
|
-
[key: string]: any;
|
373
|
-
}>[];
|
374
|
-
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
375
|
-
[key: string]: any;
|
376
|
-
}>[];
|
381
|
+
message: (arg: VMessageSlot) => vue.VNode[];
|
382
|
+
details: (arg: VInputSlot) => vue.VNode[];
|
383
|
+
append: (arg: VInputSlot) => vue.VNode[];
|
384
|
+
prepend: (arg: VInputSlot) => vue.VNode[];
|
385
|
+
default: () => vue.VNode[];
|
377
386
|
label: (arg: {
|
378
387
|
label: string | undefined;
|
379
388
|
props: Record<string, any>;
|
380
|
-
}) => vue.VNode
|
381
|
-
[key: string]: any;
|
382
|
-
}>[];
|
389
|
+
}) => vue.VNode[];
|
383
390
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T>(props: {
|
384
|
-
modelValue?: T | null
|
385
|
-
|
386
|
-
}, slots: VRadioGroupSlots) => GenericProps<{
|
387
|
-
modelValue?: T | null | undefined;
|
388
|
-
'onUpdate:modelValue'?: ((value: T | null) => void) | undefined;
|
389
|
-
}, VRadioGroupSlots>) & FilterPropsOptions<{
|
391
|
+
modelValue?: T | null;
|
392
|
+
"onUpdate:modelValue"?: (value: T | null) => void;
|
393
|
+
}, slots: VRadioGroupSlots) => GenericProps<typeof props, typeof slots>) & FilterPropsOptions<{
|
390
394
|
trueIcon: {
|
391
395
|
type: vue.PropType<IconValue>;
|
392
396
|
default: string;
|
@@ -399,10 +403,10 @@ declare const VRadioGroup: {
|
|
399
403
|
type: StringConstructor;
|
400
404
|
default: string;
|
401
405
|
};
|
406
|
+
name: StringConstructor;
|
402
407
|
inline: BooleanConstructor;
|
403
408
|
error: BooleanConstructor;
|
404
409
|
id: StringConstructor;
|
405
|
-
name: StringConstructor;
|
406
410
|
color: StringConstructor;
|
407
411
|
style: {
|
408
412
|
type: vue.PropType<vue.StyleValue>;
|
@@ -416,7 +420,7 @@ declare const VRadioGroup: {
|
|
416
420
|
type: vue.PropType<boolean | null>;
|
417
421
|
default: null;
|
418
422
|
};
|
419
|
-
class: vue.PropType<
|
423
|
+
class: vue.PropType<ClassValue>;
|
420
424
|
theme: StringConstructor;
|
421
425
|
modelValue: null;
|
422
426
|
density: {
|
@@ -425,9 +429,7 @@ declare const VRadioGroup: {
|
|
425
429
|
validator: (v: any) => boolean;
|
426
430
|
};
|
427
431
|
ripple: {
|
428
|
-
type: vue.PropType<
|
429
|
-
class: string;
|
430
|
-
} | undefined>;
|
432
|
+
type: vue.PropType<RippleDirectiveBinding["value"]>;
|
431
433
|
default: boolean;
|
432
434
|
};
|
433
435
|
defaultsTarget: StringConstructor;
|
@@ -450,7 +452,7 @@ declare const VRadioGroup: {
|
|
450
452
|
type: vue.PropType<readonly ValidationRule[]>;
|
451
453
|
default: () => never[];
|
452
454
|
};
|
453
|
-
validateOn: vue.PropType<"
|
455
|
+
validateOn: vue.PropType<ValidationProps["validateOn"]>;
|
454
456
|
validationValue: null;
|
455
457
|
width: (StringConstructor | NumberConstructor)[];
|
456
458
|
maxWidth: (StringConstructor | NumberConstructor)[];
|
@@ -493,10 +495,10 @@ declare const VRadioGroup: {
|
|
493
495
|
type: StringConstructor;
|
494
496
|
default: string;
|
495
497
|
};
|
498
|
+
name: StringConstructor;
|
496
499
|
inline: BooleanConstructor;
|
497
500
|
error: BooleanConstructor;
|
498
501
|
id: StringConstructor;
|
499
|
-
name: StringConstructor;
|
500
502
|
color: StringConstructor;
|
501
503
|
style: {
|
502
504
|
type: vue.PropType<vue.StyleValue>;
|
@@ -510,7 +512,7 @@ declare const VRadioGroup: {
|
|
510
512
|
type: vue.PropType<boolean | null>;
|
511
513
|
default: null;
|
512
514
|
};
|
513
|
-
class: vue.PropType<
|
515
|
+
class: vue.PropType<ClassValue>;
|
514
516
|
theme: StringConstructor;
|
515
517
|
modelValue: null;
|
516
518
|
density: {
|
@@ -519,9 +521,7 @@ declare const VRadioGroup: {
|
|
519
521
|
validator: (v: any) => boolean;
|
520
522
|
};
|
521
523
|
ripple: {
|
522
|
-
type: vue.PropType<
|
523
|
-
class: string;
|
524
|
-
} | undefined>;
|
524
|
+
type: vue.PropType<RippleDirectiveBinding["value"]>;
|
525
525
|
default: boolean;
|
526
526
|
};
|
527
527
|
defaultsTarget: StringConstructor;
|
@@ -544,7 +544,7 @@ declare const VRadioGroup: {
|
|
544
544
|
type: vue.PropType<readonly ValidationRule[]>;
|
545
545
|
default: () => never[];
|
546
546
|
};
|
547
|
-
validateOn: vue.PropType<"
|
547
|
+
validateOn: vue.PropType<ValidationProps["validateOn"]>;
|
548
548
|
validationValue: null;
|
549
549
|
width: (StringConstructor | NumberConstructor)[];
|
550
550
|
maxWidth: (StringConstructor | NumberConstructor)[];
|
@@ -1,10 +1,15 @@
|
|
1
1
|
import * as vue from 'vue';
|
2
|
-
import { ComponentPropsOptions, ExtractPropTypes,
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, PropType, JSXComponent, ComputedRef, Ref } from 'vue';
|
3
3
|
|
4
4
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
5
5
|
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
6
6
|
}
|
7
7
|
|
8
|
+
type ClassValue = any;
|
9
|
+
|
10
|
+
type EventProp<T extends any[] = any[], F = (...args: T) => void> = F;
|
11
|
+
declare const EventProp: <T extends any[] = any[]>() => PropType<EventProp<T>>;
|
12
|
+
|
8
13
|
type Tick = {
|
9
14
|
value: number;
|
10
15
|
position: number;
|
@@ -19,6 +24,22 @@ type Density = null | 'default' | 'comfortable' | 'compact';
|
|
19
24
|
|
20
25
|
type ValidationResult = string | boolean;
|
21
26
|
type ValidationRule = ValidationResult | PromiseLike<ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike<ValidationResult>);
|
27
|
+
type ValidateOnValue = 'blur' | 'input' | 'submit';
|
28
|
+
interface ValidationProps {
|
29
|
+
disabled: boolean | null;
|
30
|
+
error: boolean;
|
31
|
+
errorMessages: string | readonly string[] | null;
|
32
|
+
focused: boolean;
|
33
|
+
maxErrors: string | number;
|
34
|
+
name: string | undefined;
|
35
|
+
label: string | undefined;
|
36
|
+
readonly: boolean | null;
|
37
|
+
rules: readonly ValidationRule[];
|
38
|
+
modelValue: any;
|
39
|
+
'onUpdate:modelValue': EventProp | undefined;
|
40
|
+
validateOn?: ValidateOnValue | `${ValidateOnValue} lazy` | `lazy ${ValidateOnValue}` | 'lazy';
|
41
|
+
validationValue: any;
|
42
|
+
}
|
22
43
|
|
23
44
|
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
24
45
|
declare const IconValue: PropType<IconValue>;
|
@@ -49,7 +70,7 @@ declare const VRangeSlider: {
|
|
49
70
|
disabled: boolean | null;
|
50
71
|
readonly: boolean | null;
|
51
72
|
step: string | number;
|
52
|
-
elevation:
|
73
|
+
elevation: string | number;
|
53
74
|
messages: string | readonly string[];
|
54
75
|
focused: boolean;
|
55
76
|
errorMessages: string | readonly string[] | null;
|
@@ -67,9 +88,9 @@ declare const VRangeSlider: {
|
|
67
88
|
trackSize: string | number;
|
68
89
|
thumbSize: string | number;
|
69
90
|
} & {
|
91
|
+
name?: string | undefined;
|
70
92
|
id?: string | undefined;
|
71
93
|
width?: string | number | undefined;
|
72
|
-
name?: string | undefined;
|
73
94
|
color?: string | undefined;
|
74
95
|
maxWidth?: string | number | undefined;
|
75
96
|
minWidth?: string | number | undefined;
|
@@ -157,7 +178,7 @@ declare const VRangeSlider: {
|
|
157
178
|
disabled: boolean | null;
|
158
179
|
readonly: boolean | null;
|
159
180
|
step: string | number;
|
160
|
-
elevation:
|
181
|
+
elevation: string | number;
|
161
182
|
messages: string | readonly string[];
|
162
183
|
focused: boolean;
|
163
184
|
errorMessages: string | readonly string[] | null;
|
@@ -175,9 +196,9 @@ declare const VRangeSlider: {
|
|
175
196
|
trackSize: string | number;
|
176
197
|
thumbSize: string | number;
|
177
198
|
} & {
|
199
|
+
name?: string | undefined;
|
178
200
|
id?: string | undefined;
|
179
201
|
width?: string | number | undefined;
|
180
|
-
name?: string | undefined;
|
181
202
|
color?: string | undefined;
|
182
203
|
maxWidth?: string | number | undefined;
|
183
204
|
minWidth?: string | number | undefined;
|
@@ -260,7 +281,7 @@ declare const VRangeSlider: {
|
|
260
281
|
disabled: boolean | null;
|
261
282
|
readonly: boolean | null;
|
262
283
|
step: string | number;
|
263
|
-
elevation:
|
284
|
+
elevation: string | number;
|
264
285
|
messages: string | readonly string[];
|
265
286
|
focused: boolean;
|
266
287
|
errorMessages: string | readonly string[] | null;
|
@@ -280,35 +301,19 @@ declare const VRangeSlider: {
|
|
280
301
|
thumbLabel: boolean | "always" | undefined;
|
281
302
|
thumbSize: string | number;
|
282
303
|
}, true, {}, vue.SlotsType<Partial<{
|
283
|
-
default: (arg: VInputSlot) => vue.VNode
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
}>[];
|
289
|
-
append: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
290
|
-
[key: string]: any;
|
291
|
-
}>[];
|
292
|
-
details: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
293
|
-
[key: string]: any;
|
294
|
-
}>[];
|
295
|
-
message: (arg: VMessageSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
296
|
-
[key: string]: any;
|
297
|
-
}>[];
|
304
|
+
default: (arg: VInputSlot) => vue.VNode[];
|
305
|
+
prepend: (arg: VInputSlot) => vue.VNode[];
|
306
|
+
append: (arg: VInputSlot) => vue.VNode[];
|
307
|
+
details: (arg: VInputSlot) => vue.VNode[];
|
308
|
+
message: (arg: VMessageSlot) => vue.VNode[];
|
298
309
|
'thumb-label': (arg: {
|
299
310
|
modelValue: number;
|
300
|
-
}) => vue.VNode
|
301
|
-
[key: string]: any;
|
302
|
-
}>[];
|
311
|
+
}) => vue.VNode[];
|
303
312
|
'tick-label': (arg: {
|
304
313
|
tick: Tick;
|
305
314
|
index: number;
|
306
|
-
}) => vue.VNode
|
307
|
-
|
308
|
-
}>[];
|
309
|
-
label: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
310
|
-
[key: string]: any;
|
311
|
-
}>[];
|
315
|
+
}) => vue.VNode[];
|
316
|
+
label: (arg: VInputSlot) => vue.VNode[];
|
312
317
|
}>>, {
|
313
318
|
P: {};
|
314
319
|
B: {};
|
@@ -327,7 +332,7 @@ declare const VRangeSlider: {
|
|
327
332
|
disabled: boolean | null;
|
328
333
|
readonly: boolean | null;
|
329
334
|
step: string | number;
|
330
|
-
elevation:
|
335
|
+
elevation: string | number;
|
331
336
|
messages: string | readonly string[];
|
332
337
|
focused: boolean;
|
333
338
|
errorMessages: string | readonly string[] | null;
|
@@ -345,9 +350,9 @@ declare const VRangeSlider: {
|
|
345
350
|
trackSize: string | number;
|
346
351
|
thumbSize: string | number;
|
347
352
|
} & {
|
353
|
+
name?: string | undefined;
|
348
354
|
id?: string | undefined;
|
349
355
|
width?: string | number | undefined;
|
350
|
-
name?: string | undefined;
|
351
356
|
color?: string | undefined;
|
352
357
|
maxWidth?: string | number | undefined;
|
353
358
|
minWidth?: string | number | undefined;
|
@@ -430,7 +435,7 @@ declare const VRangeSlider: {
|
|
430
435
|
disabled: boolean | null;
|
431
436
|
readonly: boolean | null;
|
432
437
|
step: string | number;
|
433
|
-
elevation:
|
438
|
+
elevation: string | number;
|
434
439
|
messages: string | readonly string[];
|
435
440
|
focused: boolean;
|
436
441
|
errorMessages: string | readonly string[] | null;
|
@@ -450,9 +455,9 @@ declare const VRangeSlider: {
|
|
450
455
|
thumbLabel: boolean | "always" | undefined;
|
451
456
|
thumbSize: string | number;
|
452
457
|
}>;
|
453
|
-
__isFragment?:
|
454
|
-
__isTeleport?:
|
455
|
-
__isSuspense?:
|
458
|
+
__isFragment?: never;
|
459
|
+
__isTeleport?: never;
|
460
|
+
__isSuspense?: never;
|
456
461
|
} & vue.ComponentOptionsBase<{
|
457
462
|
reverse: boolean;
|
458
463
|
max: string | number;
|
@@ -464,7 +469,7 @@ declare const VRangeSlider: {
|
|
464
469
|
disabled: boolean | null;
|
465
470
|
readonly: boolean | null;
|
466
471
|
step: string | number;
|
467
|
-
elevation:
|
472
|
+
elevation: string | number;
|
468
473
|
messages: string | readonly string[];
|
469
474
|
focused: boolean;
|
470
475
|
errorMessages: string | readonly string[] | null;
|
@@ -482,9 +487,9 @@ declare const VRangeSlider: {
|
|
482
487
|
trackSize: string | number;
|
483
488
|
thumbSize: string | number;
|
484
489
|
} & {
|
490
|
+
name?: string | undefined;
|
485
491
|
id?: string | undefined;
|
486
492
|
width?: string | number | undefined;
|
487
|
-
name?: string | undefined;
|
488
493
|
color?: string | undefined;
|
489
494
|
maxWidth?: string | number | undefined;
|
490
495
|
minWidth?: string | number | undefined;
|
@@ -572,7 +577,7 @@ declare const VRangeSlider: {
|
|
572
577
|
disabled: boolean | null;
|
573
578
|
readonly: boolean | null;
|
574
579
|
step: string | number;
|
575
|
-
elevation:
|
580
|
+
elevation: string | number;
|
576
581
|
messages: string | readonly string[];
|
577
582
|
focused: boolean;
|
578
583
|
errorMessages: string | readonly string[] | null;
|
@@ -592,35 +597,19 @@ declare const VRangeSlider: {
|
|
592
597
|
thumbLabel: boolean | "always" | undefined;
|
593
598
|
thumbSize: string | number;
|
594
599
|
}, {}, string, vue.SlotsType<Partial<{
|
595
|
-
default: (arg: VInputSlot) => vue.VNode
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
}>[];
|
601
|
-
append: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
602
|
-
[key: string]: any;
|
603
|
-
}>[];
|
604
|
-
details: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
605
|
-
[key: string]: any;
|
606
|
-
}>[];
|
607
|
-
message: (arg: VMessageSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
608
|
-
[key: string]: any;
|
609
|
-
}>[];
|
600
|
+
default: (arg: VInputSlot) => vue.VNode[];
|
601
|
+
prepend: (arg: VInputSlot) => vue.VNode[];
|
602
|
+
append: (arg: VInputSlot) => vue.VNode[];
|
603
|
+
details: (arg: VInputSlot) => vue.VNode[];
|
604
|
+
message: (arg: VMessageSlot) => vue.VNode[];
|
610
605
|
'thumb-label': (arg: {
|
611
606
|
modelValue: number;
|
612
|
-
}) => vue.VNode
|
613
|
-
[key: string]: any;
|
614
|
-
}>[];
|
607
|
+
}) => vue.VNode[];
|
615
608
|
'tick-label': (arg: {
|
616
609
|
tick: Tick;
|
617
610
|
index: number;
|
618
|
-
}) => vue.VNode
|
619
|
-
|
620
|
-
}>[];
|
621
|
-
label: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
622
|
-
[key: string]: any;
|
623
|
-
}>[];
|
611
|
+
}) => vue.VNode[];
|
612
|
+
label: (arg: VInputSlot) => vue.VNode[];
|
624
613
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
625
614
|
strict: BooleanConstructor;
|
626
615
|
modelValue: {
|
@@ -635,7 +624,7 @@ declare const VRangeSlider: {
|
|
635
624
|
type: (StringConstructor | NumberConstructor)[];
|
636
625
|
validator(v: any): boolean;
|
637
626
|
}, "type" | "default"> & {
|
638
|
-
type: PropType<
|
627
|
+
type: PropType<string | number>;
|
639
628
|
default: NonNullable<string | number>;
|
640
629
|
};
|
641
630
|
rounded: {
|
@@ -715,7 +704,7 @@ declare const VRangeSlider: {
|
|
715
704
|
type: PropType<readonly ValidationRule[]>;
|
716
705
|
default: () => never[];
|
717
706
|
};
|
718
|
-
validateOn: PropType<"
|
707
|
+
validateOn: PropType<ValidationProps["validateOn"]>;
|
719
708
|
validationValue: null;
|
720
709
|
theme: StringConstructor;
|
721
710
|
width: (StringConstructor | NumberConstructor)[];
|
@@ -726,7 +715,7 @@ declare const VRangeSlider: {
|
|
726
715
|
default: string;
|
727
716
|
validator: (v: any) => boolean;
|
728
717
|
};
|
729
|
-
class: PropType<
|
718
|
+
class: PropType<ClassValue>;
|
730
719
|
style: {
|
731
720
|
type: PropType<vue.StyleValue>;
|
732
721
|
default: null;
|
@@ -762,7 +751,7 @@ declare const VRangeSlider: {
|
|
762
751
|
type: (StringConstructor | NumberConstructor)[];
|
763
752
|
validator(v: any): boolean;
|
764
753
|
}, "type" | "default"> & {
|
765
|
-
type: PropType<
|
754
|
+
type: PropType<string | number>;
|
766
755
|
default: NonNullable<string | number>;
|
767
756
|
};
|
768
757
|
rounded: {
|
@@ -842,7 +831,7 @@ declare const VRangeSlider: {
|
|
842
831
|
type: PropType<readonly ValidationRule[]>;
|
843
832
|
default: () => never[];
|
844
833
|
};
|
845
|
-
validateOn: PropType<"
|
834
|
+
validateOn: PropType<ValidationProps["validateOn"]>;
|
846
835
|
validationValue: null;
|
847
836
|
theme: StringConstructor;
|
848
837
|
width: (StringConstructor | NumberConstructor)[];
|
@@ -853,7 +842,7 @@ declare const VRangeSlider: {
|
|
853
842
|
default: string;
|
854
843
|
validator: (v: any) => boolean;
|
855
844
|
};
|
856
|
-
class: PropType<
|
845
|
+
class: PropType<ClassValue>;
|
857
846
|
style: {
|
858
847
|
type: PropType<vue.StyleValue>;
|
859
848
|
default: null;
|
@@ -5,6 +5,8 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
|
|
5
5
|
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
6
6
|
}
|
7
7
|
|
8
|
+
type ClassValue = any;
|
9
|
+
|
8
10
|
type Density = null | 'default' | 'comfortable' | 'compact';
|
9
11
|
|
10
12
|
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
@@ -65,7 +67,7 @@ declare const VRating: {
|
|
65
67
|
} & {
|
66
68
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
67
69
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
68
|
-
'update:modelValue': (value: number | string) =>
|
70
|
+
'update:modelValue': (value: number | string) => true;
|
69
71
|
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
70
72
|
length: string | number;
|
71
73
|
style: vue.StyleValue;
|
@@ -122,12 +124,8 @@ declare const VRating: {
|
|
122
124
|
halfIncrements: boolean;
|
123
125
|
itemLabelPosition: string;
|
124
126
|
}, true, {}, vue.SlotsType<Partial<{
|
125
|
-
item: (arg: VRatingItemSlot) => vue.VNode
|
126
|
-
|
127
|
-
}>[];
|
128
|
-
'item-label': (arg: VRatingItemLabelSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
129
|
-
[key: string]: any;
|
130
|
-
}>[];
|
127
|
+
item: (arg: VRatingItemSlot) => vue.VNode[];
|
128
|
+
'item-label': (arg: VRatingItemLabelSlot) => vue.VNode[];
|
131
129
|
}>>, {
|
132
130
|
P: {};
|
133
131
|
B: {};
|
@@ -191,9 +189,9 @@ declare const VRating: {
|
|
191
189
|
halfIncrements: boolean;
|
192
190
|
itemLabelPosition: string;
|
193
191
|
}>;
|
194
|
-
__isFragment?:
|
195
|
-
__isTeleport?:
|
196
|
-
__isSuspense?:
|
192
|
+
__isFragment?: never;
|
193
|
+
__isTeleport?: never;
|
194
|
+
__isSuspense?: never;
|
197
195
|
} & vue.ComponentOptionsBase<{
|
198
196
|
length: string | number;
|
199
197
|
style: vue.StyleValue;
|
@@ -233,7 +231,7 @@ declare const VRating: {
|
|
233
231
|
} & {
|
234
232
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
235
233
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
236
|
-
'update:modelValue': (value: number | string) =>
|
234
|
+
'update:modelValue': (value: number | string) => true;
|
237
235
|
}, string, {
|
238
236
|
length: string | number;
|
239
237
|
style: vue.StyleValue;
|
@@ -252,12 +250,8 @@ declare const VRating: {
|
|
252
250
|
halfIncrements: boolean;
|
253
251
|
itemLabelPosition: string;
|
254
252
|
}, {}, string, vue.SlotsType<Partial<{
|
255
|
-
item: (arg: VRatingItemSlot) => vue.VNode
|
256
|
-
|
257
|
-
}>[];
|
258
|
-
'item-label': (arg: VRatingItemLabelSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
259
|
-
[key: string]: any;
|
260
|
-
}>[];
|
253
|
+
item: (arg: VRatingItemSlot) => vue.VNode[];
|
254
|
+
'item-label': (arg: VRatingItemLabelSlot) => vue.VNode[];
|
261
255
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
262
256
|
theme: StringConstructor;
|
263
257
|
tag: {
|
@@ -273,7 +267,7 @@ declare const VRating: {
|
|
273
267
|
default: string;
|
274
268
|
validator: (v: any) => boolean;
|
275
269
|
};
|
276
|
-
class: vue.PropType<
|
270
|
+
class: vue.PropType<ClassValue>;
|
277
271
|
style: {
|
278
272
|
type: vue.PropType<vue.StyleValue>;
|
279
273
|
default: null;
|
@@ -328,7 +322,7 @@ declare const VRating: {
|
|
328
322
|
default: string;
|
329
323
|
validator: (v: any) => boolean;
|
330
324
|
};
|
331
|
-
class: vue.PropType<
|
325
|
+
class: vue.PropType<ClassValue>;
|
332
326
|
style: {
|
333
327
|
type: vue.PropType<vue.StyleValue>;
|
334
328
|
default: null;
|