vuetify 3.1.10 → 3.1.11
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 +203 -27
- package/dist/json/importMap.json +98 -98
- package/dist/json/tags.json +46 -2
- package/dist/json/web-types.json +481 -49
- package/dist/vuetify-labs.css +224 -204
- package/dist/vuetify-labs.d.ts +56923 -14294
- package/dist/vuetify-labs.esm.js +121 -129
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +121 -129
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +47 -39
- package/dist/vuetify.d.ts +55374 -15927
- package/dist/vuetify.esm.js +118 -129
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +118 -129
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +640 -642
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.d.ts +6 -9
- package/lib/blueprints/md1.d.ts +6 -9
- package/lib/blueprints/md2.d.ts +6 -9
- package/lib/blueprints/md3.d.ts +6 -9
- package/lib/blueprints/md3.mjs +6 -0
- package/lib/blueprints/md3.mjs.map +1 -1
- package/lib/components/VAlert/index.d.ts +509 -83
- package/lib/components/VApp/VApp.css +1 -0
- package/lib/components/VApp/VApp.sass +1 -0
- package/lib/components/VApp/index.d.ts +158 -20
- package/lib/components/VAppBar/VAppBar.mjs +2 -2
- package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
- package/lib/components/VAppBar/index.d.ts +616 -110
- package/lib/components/VAutocomplete/VAutocomplete.mjs +2 -2
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.ts +1656 -130
- package/lib/components/VAvatar/index.d.ts +205 -29
- package/lib/components/VBadge/index.d.ts +284 -42
- package/lib/components/VBanner/index.d.ts +478 -84
- package/lib/components/VBottomNavigation/index.d.ts +321 -40
- package/lib/components/VBreadcrumbs/index.d.ts +325 -45
- package/lib/components/VBtn/VBtn.css +0 -5
- package/lib/components/VBtn/VBtn.mjs +40 -39
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/VBtn.sass +0 -7
- package/lib/components/VBtn/_variables.scss +0 -2
- package/lib/components/VBtn/index.d.ts +452 -69
- package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -7
- package/lib/components/VBtnGroup/VBtnGroup.mjs.map +1 -1
- package/lib/components/VBtnGroup/index.d.ts +185 -26
- package/lib/components/VBtnToggle/VBtnToggle.mjs +2 -2
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.ts +245 -35
- package/lib/components/VCard/index.d.ts +938 -172
- package/lib/components/VCarousel/index.d.ts +561 -123
- package/lib/components/VCheckbox/VCheckbox.mjs +2 -2
- package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -4
- package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
- package/lib/components/VCheckbox/index.d.ts +831 -147
- package/lib/components/VChip/index.d.ts +473 -75
- package/lib/components/VChipGroup/index.d.ts +227 -32
- package/lib/components/VCode/index.d.ts +109 -16
- package/lib/components/VColorPicker/index.d.ts +284 -20
- package/lib/components/VCombobox/VCombobox.mjs +2 -2
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.ts +1668 -130
- package/lib/components/VCounter/index.d.ts +1894 -87
- package/lib/components/VDefaultsProvider/index.d.ts +131 -22
- package/lib/components/VDialog/VDialog.css +31 -24
- package/lib/components/VDialog/VDialog.mjs +2 -2
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.sass +19 -12
- package/lib/components/VDialog/index.d.ts +2362 -146
- package/lib/components/VDivider/index.d.ts +130 -23
- package/lib/components/VExpansionPanel/index.d.ts +719 -119
- package/lib/components/VField/index.d.ts +163 -21
- package/lib/components/VFileInput/index.d.ts +1038 -104
- package/lib/components/VFooter/index.d.ts +203 -28
- package/lib/components/VForm/index.d.ts +204 -23
- package/lib/components/VGrid/VCol.mjs +6 -5
- package/lib/components/VGrid/VCol.mjs.map +1 -1
- package/lib/components/VGrid/VRow.mjs +4 -4
- package/lib/components/VGrid/VRow.mjs.map +1 -1
- package/lib/components/VGrid/index.d.ts +733 -76
- package/lib/components/VHover/index.d.ts +182 -35
- package/lib/components/VIcon/index.d.ts +494 -50
- package/lib/components/VImg/index.d.ts +275 -46
- package/lib/components/VInput/index.d.ts +315 -53
- package/lib/components/VItemGroup/index.d.ts +308 -52
- package/lib/components/VKbd/VKbd.css +1 -0
- package/lib/components/VKbd/VKbd.sass +1 -0
- package/lib/components/VKbd/_variables.scss +1 -0
- package/lib/components/VKbd/index.d.ts +109 -16
- package/lib/components/VLabel/index.d.ts +113 -20
- package/lib/components/VLayout/index.d.ts +296 -41
- package/lib/components/VLazy/VLazy.mjs +4 -1
- package/lib/components/VLazy/VLazy.mjs.map +1 -1
- package/lib/components/VLazy/index.d.ts +219 -30
- package/lib/components/VList/VListChildren.mjs +2 -2
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/VList/VListGroup.mjs +1 -4
- package/lib/components/VList/VListGroup.mjs.map +1 -1
- package/lib/components/VList/index.d.ts +1461 -223
- package/lib/components/VLocaleProvider/index.d.ts +121 -20
- package/lib/components/VMain/index.d.ts +118 -17
- package/lib/components/VMenu/VMenu.css +4 -4
- package/lib/components/VMenu/VMenu.mjs +2 -2
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/VMenu.sass +1 -1
- package/lib/components/VMenu/index.d.ts +2368 -142
- package/lib/components/VMessages/index.d.ts +1921 -98
- package/lib/components/VNavigationDrawer/index.d.ts +379 -56
- package/lib/components/VOverlay/VOverlay.css +2 -2
- package/lib/components/VOverlay/VOverlay.mjs +1 -4
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.sass +1 -1
- package/lib/components/VOverlay/_variables.scss +1 -1
- package/lib/components/VOverlay/index.d.ts +519 -85
- package/lib/components/VPagination/index.d.ts +502 -68
- package/lib/components/VParallax/VParallax.mjs +3 -3
- package/lib/components/VParallax/VParallax.mjs.map +1 -1
- package/lib/components/VParallax/index.d.ts +141 -28
- package/lib/components/VProgressCircular/index.d.ts +186 -25
- package/lib/components/VProgressLinear/index.d.ts +319 -48
- package/lib/components/VRadio/index.d.ts +313 -57
- package/lib/components/VRadioGroup/VRadioGroup.mjs +4 -6
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/index.d.ts +463 -83
- package/lib/components/VRangeSlider/index.d.ts +528 -80
- package/lib/components/VRating/index.d.ts +305 -43
- package/lib/components/VResponsive/index.d.ts +142 -27
- package/lib/components/VSelect/VSelect.mjs +2 -2
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.ts +3060 -328
- package/lib/components/VSelectionControl/VSelectionControl.mjs +1 -4
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.ts +76 -4
- package/lib/components/VSelectionControlGroup/index.d.ts +242 -38
- package/lib/components/VSheet/VSheet.mjs +1 -7
- package/lib/components/VSheet/VSheet.mjs.map +1 -1
- package/lib/components/VSheet/index.d.ts +194 -31
- package/lib/components/VSlideGroup/index.d.ts +475 -83
- package/lib/components/VSlider/index.d.ts +521 -79
- package/lib/components/VSlider/slider.mjs +2 -5
- package/lib/components/VSlider/slider.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.mjs +2 -2
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/index.d.ts +1219 -81
- package/lib/components/VSwitch/VSwitch.mjs +2 -2
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/index.d.ts +498 -92
- package/lib/components/VSystemBar/index.d.ts +184 -27
- package/lib/components/VTable/index.d.ts +190 -35
- package/lib/components/VTabs/VTab.mjs +7 -23
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/index.d.ts +623 -71
- package/lib/components/VTextField/VTextField.mjs +8 -5
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/index.d.ts +1404 -106
- package/lib/components/VTextarea/VTextarea.mjs +7 -1
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/index.d.ts +1014 -102
- package/lib/components/VThemeProvider/index.d.ts +124 -19
- package/lib/components/VTimeline/index.d.ts +441 -71
- package/lib/components/VToolbar/VToolbar.mjs +1 -4
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/index.d.ts +542 -93
- package/lib/components/VTooltip/VTooltip.css +3 -3
- package/lib/components/VTooltip/VTooltip.mjs +2 -2
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/VTooltip.sass +1 -1
- package/lib/components/VTooltip/index.d.ts +1263 -81
- package/lib/components/VValidation/index.d.ts +201 -30
- package/lib/components/VWindow/index.d.ts +527 -95
- package/lib/components/index.d.ts +55131 -15681
- package/lib/components/transitions/index.d.ts +2097 -308
- package/lib/composables/display.mjs +2 -0
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/form.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.ts +32 -35
- package/lib/labs/VDataTable/VDataTable.css +12 -0
- package/lib/labs/VDataTable/VDataTable.sass +6 -0
- package/lib/labs/VDataTable/VDataTableRow.mjs +2 -0
- package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs +1 -0
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/index.d.ts +4176 -1016
- package/lib/labs/VVirtualScroll/index.d.ts +32 -1
- package/lib/labs/components.d.ts +4212 -1026
- package/lib/styles/main.css +4 -0
- package/lib/styles/settings/_utilities.scss +7 -0
- package/lib/util/animation.mjs +8 -1
- package/lib/util/animation.mjs.map +1 -1
- package/lib/util/defineComponent.mjs +12 -5
- package/lib/util/defineComponent.mjs.map +1 -1
- package/lib/util/helpers.mjs +4 -0
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
|
|
6
|
+
}
|
|
2
7
|
|
|
3
8
|
type DefaultsInstance = undefined | {
|
|
4
9
|
[key: string]: undefined | Record<string, unknown>;
|
|
@@ -6,7 +11,118 @@ type DefaultsInstance = undefined | {
|
|
|
6
11
|
};
|
|
7
12
|
type DefaultsOptions = Partial<DefaultsInstance>;
|
|
8
13
|
|
|
9
|
-
declare const VDefaultsProvider:
|
|
14
|
+
declare const VDefaultsProvider: {
|
|
15
|
+
new (...args: any[]): {
|
|
16
|
+
$: vue.ComponentInternalInstance;
|
|
17
|
+
$data: {};
|
|
18
|
+
$props: Partial<{
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
root: boolean;
|
|
21
|
+
scoped: boolean;
|
|
22
|
+
}> & Omit<{
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
root: boolean;
|
|
25
|
+
scoped: boolean;
|
|
26
|
+
} & {
|
|
27
|
+
reset?: string | number | undefined;
|
|
28
|
+
defaults?: DefaultsOptions;
|
|
29
|
+
} & {
|
|
30
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
31
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
32
|
+
};
|
|
33
|
+
$slots?: {
|
|
34
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
'v-slots'?: {
|
|
37
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
} & {
|
|
40
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
41
|
+
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "disabled" | "root" | "scoped">;
|
|
42
|
+
$attrs: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
$refs: {
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
$slots: Readonly<{
|
|
49
|
+
[name: string]: vue.Slot | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
52
|
+
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
53
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
54
|
+
$el: any;
|
|
55
|
+
$options: vue.ComponentOptionsBase<{
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
root: boolean;
|
|
58
|
+
scoped: boolean;
|
|
59
|
+
} & {
|
|
60
|
+
reset?: string | number | undefined;
|
|
61
|
+
defaults?: DefaultsOptions;
|
|
62
|
+
} & {
|
|
63
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
64
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
65
|
+
};
|
|
66
|
+
$slots?: {
|
|
67
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
'v-slots'?: {
|
|
70
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
} & {
|
|
73
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
74
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
}>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
root: boolean;
|
|
79
|
+
scoped: boolean;
|
|
80
|
+
}, {}, string> & {
|
|
81
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
92
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
93
|
+
renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
94
|
+
renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
95
|
+
errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
96
|
+
};
|
|
97
|
+
$forceUpdate: () => void;
|
|
98
|
+
$nextTick: typeof vue.nextTick;
|
|
99
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
|
|
100
|
+
} & {
|
|
101
|
+
disabled: boolean;
|
|
102
|
+
root: boolean;
|
|
103
|
+
scoped: boolean;
|
|
104
|
+
} & {
|
|
105
|
+
reset?: string | number | undefined;
|
|
106
|
+
defaults?: DefaultsOptions;
|
|
107
|
+
} & {
|
|
108
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
109
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
110
|
+
};
|
|
111
|
+
$slots?: {
|
|
112
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
'v-slots'?: {
|
|
115
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
} & {
|
|
118
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
119
|
+
} & vue.ShallowUnwrapRef<() => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
120
|
+
[key: string]: any;
|
|
121
|
+
}>[] | undefined> & {} & vue.ComponentCustomProperties & {};
|
|
122
|
+
__isFragment?: undefined;
|
|
123
|
+
__isTeleport?: undefined;
|
|
124
|
+
__isSuspense?: undefined;
|
|
125
|
+
} & vue.ComponentOptionsBase<{
|
|
10
126
|
disabled: boolean;
|
|
11
127
|
root: boolean;
|
|
12
128
|
scoped: boolean;
|
|
@@ -27,30 +143,23 @@ declare const VDefaultsProvider: vue.DefineComponent<{
|
|
|
27
143
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
28
144
|
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
29
145
|
[key: string]: any;
|
|
30
|
-
}>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string,
|
|
31
|
-
disabled: boolean;
|
|
32
|
-
root: boolean;
|
|
33
|
-
scoped: boolean;
|
|
34
|
-
} & {
|
|
35
|
-
reset?: string | number | undefined;
|
|
36
|
-
defaults?: DefaultsOptions;
|
|
37
|
-
} & {
|
|
38
|
-
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
39
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
40
|
-
};
|
|
41
|
-
$slots?: {
|
|
42
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
'v-slots'?: {
|
|
45
|
-
default?: false | (() => vue.VNodeChild) | undefined;
|
|
46
|
-
} | undefined;
|
|
47
|
-
} & {
|
|
48
|
-
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
49
|
-
}, {
|
|
146
|
+
}>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
50
147
|
disabled: boolean;
|
|
51
148
|
root: boolean;
|
|
52
149
|
scoped: boolean;
|
|
53
|
-
}
|
|
150
|
+
}, {}, string> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
151
|
+
defaults: PropType<DefaultsOptions>;
|
|
152
|
+
disabled: BooleanConstructor;
|
|
153
|
+
reset: (StringConstructor | NumberConstructor)[];
|
|
154
|
+
root: BooleanConstructor;
|
|
155
|
+
scoped: BooleanConstructor;
|
|
156
|
+
}, vue.ExtractPropTypes<{
|
|
157
|
+
defaults: PropType<DefaultsOptions>;
|
|
158
|
+
disabled: BooleanConstructor;
|
|
159
|
+
reset: (StringConstructor | NumberConstructor)[];
|
|
160
|
+
root: BooleanConstructor;
|
|
161
|
+
scoped: BooleanConstructor;
|
|
162
|
+
}>>;
|
|
54
163
|
type VDefaultsProvider = InstanceType<typeof VDefaultsProvider>;
|
|
55
164
|
|
|
56
165
|
export { VDefaultsProvider };
|
|
@@ -1,44 +1,50 @@
|
|
|
1
1
|
.v-dialog {
|
|
2
|
-
align-items: center;
|
|
3
|
-
justify-content: center;
|
|
4
|
-
margin: auto;
|
|
5
|
-
}
|
|
6
|
-
.v-dialog .v-overlay__content {
|
|
7
|
-
max-height: calc(100% - 48px);
|
|
8
|
-
width: calc(100% - 48px);
|
|
9
|
-
max-width: calc(100% - 48px);
|
|
10
2
|
margin: 24px;
|
|
3
|
+
margin-inline-end: 24px;
|
|
4
|
+
}
|
|
5
|
+
.v-dialog.v-overlay--scroll-blocked {
|
|
6
|
+
margin-inline-end: calc(24px + var(--v-scrollbar-offset));
|
|
7
|
+
}
|
|
8
|
+
.v-dialog > .v-overlay__content {
|
|
9
|
+
max-height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
max-width: 100%;
|
|
11
12
|
display: flex;
|
|
12
13
|
flex-direction: column;
|
|
14
|
+
top: 50%;
|
|
15
|
+
left: 50%;
|
|
16
|
+
transform: translate(-50%, -50%);
|
|
13
17
|
}
|
|
14
|
-
.v-dialog .v-overlay__content > .v-card,
|
|
15
|
-
.v-dialog .v-overlay__content > .v-sheet {
|
|
18
|
+
.v-dialog > .v-overlay__content > .v-card,
|
|
19
|
+
.v-dialog > .v-overlay__content > .v-sheet {
|
|
16
20
|
--v-scrollbar-offset: 0px;
|
|
17
21
|
border-radius: 4px;
|
|
18
22
|
overflow-y: auto;
|
|
19
23
|
box-shadow: 0px 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 9px 46px 8px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.12));
|
|
20
24
|
}
|
|
21
|
-
.v-dialog .v-overlay__content > .v-card {
|
|
25
|
+
.v-dialog > .v-overlay__content > .v-card {
|
|
22
26
|
display: flex;
|
|
23
27
|
flex-direction: column;
|
|
24
28
|
}
|
|
25
|
-
.v-dialog .v-overlay__content > .v-card > .v-card-item {
|
|
29
|
+
.v-dialog > .v-overlay__content > .v-card > .v-card-item {
|
|
26
30
|
padding: 14px 24px 0;
|
|
27
31
|
}
|
|
28
|
-
.v-dialog .v-overlay__content > .v-card > .v-card-item + .v-card-text {
|
|
32
|
+
.v-dialog > .v-overlay__content > .v-card > .v-card-item + .v-card-text {
|
|
29
33
|
padding-top: 10px;
|
|
30
34
|
}
|
|
31
|
-
.v-dialog .v-overlay__content > .v-card > .v-card-text {
|
|
35
|
+
.v-dialog > .v-overlay__content > .v-card > .v-card-text {
|
|
32
36
|
font-size: inherit;
|
|
33
37
|
letter-spacing: 0.03125em;
|
|
34
38
|
line-height: inherit;
|
|
35
39
|
padding: 16px 24px 10px;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
|
-
.v-dialog--fullscreen {
|
|
42
|
+
.v-dialog.v-dialog--fullscreen {
|
|
43
|
+
margin: 0;
|
|
44
|
+
margin-inline-end: 0;
|
|
39
45
|
--v-scrollbar-offset: 0px;
|
|
40
46
|
}
|
|
41
|
-
.v-dialog--fullscreen .v-overlay__content {
|
|
47
|
+
.v-dialog.v-dialog--fullscreen > .v-overlay__content {
|
|
42
48
|
border-radius: 0;
|
|
43
49
|
margin: 0;
|
|
44
50
|
padding: 0;
|
|
@@ -49,28 +55,29 @@
|
|
|
49
55
|
overflow-y: auto;
|
|
50
56
|
top: 0;
|
|
51
57
|
left: 0;
|
|
58
|
+
transform: none;
|
|
52
59
|
}
|
|
53
|
-
.v-dialog--fullscreen .v-overlay__content > .v-card,
|
|
54
|
-
.v-dialog--fullscreen .v-overlay__content > .v-sheet {
|
|
60
|
+
.v-dialog.v-dialog--fullscreen > .v-overlay__content > .v-card,
|
|
61
|
+
.v-dialog.v-dialog--fullscreen > .v-overlay__content > .v-sheet {
|
|
55
62
|
min-height: 100%;
|
|
56
63
|
min-width: 100%;
|
|
57
64
|
border-radius: 0;
|
|
58
65
|
}
|
|
59
66
|
|
|
60
|
-
.v-dialog--scrollable .v-overlay__content,
|
|
61
|
-
.v-dialog--scrollable .v-overlay__content > form {
|
|
67
|
+
.v-dialog--scrollable > .v-overlay__content,
|
|
68
|
+
.v-dialog--scrollable > .v-overlay__content > form {
|
|
62
69
|
display: flex;
|
|
63
70
|
}
|
|
64
|
-
.v-dialog--scrollable .v-overlay__content > .v-card,
|
|
65
|
-
.v-dialog--scrollable .v-overlay__content > form > .v-card {
|
|
71
|
+
.v-dialog--scrollable > .v-overlay__content > .v-card,
|
|
72
|
+
.v-dialog--scrollable > .v-overlay__content > form > .v-card {
|
|
66
73
|
display: flex;
|
|
67
74
|
flex: 1 1 100%;
|
|
68
75
|
flex-direction: column;
|
|
69
76
|
max-height: 100%;
|
|
70
77
|
max-width: 100%;
|
|
71
78
|
}
|
|
72
|
-
.v-dialog--scrollable .v-overlay__content > .v-card > .v-card-text,
|
|
73
|
-
.v-dialog--scrollable .v-overlay__content > form > .v-card > .v-card-text {
|
|
79
|
+
.v-dialog--scrollable > .v-overlay__content > .v-card > .v-card-text,
|
|
80
|
+
.v-dialog--scrollable > .v-overlay__content > form > .v-card > .v-card-text {
|
|
74
81
|
backface-visibility: hidden;
|
|
75
82
|
overflow-y: auto;
|
|
76
83
|
}
|
|
@@ -11,7 +11,7 @@ import { useScopeId } from "../../composables/scopeId.mjs";
|
|
|
11
11
|
import { forwardRefs } from "../../composables/forwardRefs.mjs"; // Utilities
|
|
12
12
|
import { computed, mergeProps, nextTick, ref, watch } from 'vue';
|
|
13
13
|
import { genericComponent, IN_BROWSER, useRender } from "../../util/index.mjs";
|
|
14
|
-
import {
|
|
14
|
+
import { makeVOverlayProps } from "../VOverlay/VOverlay.mjs"; // Types
|
|
15
15
|
export const VDialog = genericComponent()({
|
|
16
16
|
name: 'VDialog',
|
|
17
17
|
props: {
|
|
@@ -87,7 +87,7 @@ export const VDialog = genericComponent()({
|
|
|
87
87
|
'aria-expanded': String(isActive.value)
|
|
88
88
|
}, props.activatorProps));
|
|
89
89
|
useRender(() => {
|
|
90
|
-
const [overlayProps] =
|
|
90
|
+
const [overlayProps] = VOverlay.filterProps(props);
|
|
91
91
|
return _createVNode(VOverlay, _mergeProps({
|
|
92
92
|
"ref": overlay,
|
|
93
93
|
"class": ['v-dialog', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VDialog.mjs","names":["VDialogTransition","VDefaultsProvider","VOverlay","useProxiedModel","useScopeId","forwardRefs","computed","mergeProps","nextTick","ref","watch","genericComponent","IN_BROWSER","useRender","
|
|
1
|
+
{"version":3,"file":"VDialog.mjs","names":["VDialogTransition","VDefaultsProvider","VOverlay","useProxiedModel","useScopeId","forwardRefs","computed","mergeProps","nextTick","ref","watch","genericComponent","IN_BROWSER","useRender","makeVOverlayProps","VDialog","name","props","fullscreen","Boolean","retainFocus","type","default","scrollable","origin","scrollStrategy","transition","component","zIndex","emits","value","setup","slots","isActive","scopeId","overlay","onFocusin","e","before","relatedTarget","after","target","contentEl","globalTop","document","includes","contains","focusable","querySelectorAll","filter","el","hasAttribute","matches","length","firstElement","lastElement","focus","val","addEventListener","removeEventListener","immediate","preventScroll","activatorEl","activatorProps","String","overlayProps","filterProps","activator","args"],"sources":["../../../src/components/VDialog/VDialog.tsx"],"sourcesContent":["// Styles\nimport './VDialog.sass'\n\n// Components\nimport { VDialogTransition } from '@/components/transitions'\nimport { VDefaultsProvider } from '@/components/VDefaultsProvider'\nimport { VOverlay } from '@/components/VOverlay'\n\n// Composables\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useScopeId } from '@/composables/scopeId'\nimport { forwardRefs } from '@/composables/forwardRefs'\n\n// Utilities\nimport { computed, mergeProps, nextTick, ref, watch } from 'vue'\nimport { genericComponent, IN_BROWSER, useRender } from '@/util'\nimport { makeVOverlayProps } from '@/components/VOverlay/VOverlay'\n\n// Types\nimport type { OverlaySlots } from '@/components/VOverlay/VOverlay'\n\nexport const VDialog = genericComponent<OverlaySlots>()({\n name: 'VDialog',\n\n props: {\n fullscreen: Boolean,\n retainFocus: {\n type: Boolean,\n default: true,\n },\n scrollable: Boolean,\n\n ...makeVOverlayProps({\n origin: 'center center' as const,\n scrollStrategy: 'block' as const,\n transition: { component: VDialogTransition },\n zIndex: 2400,\n }),\n },\n\n emits: {\n 'update:modelValue': (value: boolean) => true,\n },\n\n setup (props, { slots }) {\n const isActive = useProxiedModel(props, 'modelValue')\n const { scopeId } = useScopeId()\n\n const overlay = ref<VOverlay>()\n function onFocusin (e: FocusEvent) {\n const before = e.relatedTarget as HTMLElement | null\n const after = e.target as HTMLElement | null\n\n if (\n before !== after &&\n overlay.value?.contentEl &&\n // We're the topmost dialog\n overlay.value?.globalTop &&\n // It isn't the document or the dialog body\n ![document, overlay.value.contentEl].includes(after!) &&\n // It isn't inside the dialog body\n !overlay.value.contentEl.contains(after)\n ) {\n const focusable = [...overlay.value.contentEl.querySelectorAll(\n 'button, [href], input:not([type=\"hidden\"]), select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n )].filter(el => !el.hasAttribute('disabled') && !el.matches('[tabindex=\"-1\"]')) as HTMLElement[]\n\n if (!focusable.length) return\n\n const firstElement = focusable[0]\n const lastElement = focusable[focusable.length - 1]\n\n if (before === firstElement) {\n lastElement.focus()\n } else {\n firstElement.focus()\n }\n }\n }\n\n if (IN_BROWSER) {\n watch(() => isActive.value && props.retainFocus, val => {\n val\n ? document.addEventListener('focusin', onFocusin)\n : document.removeEventListener('focusin', onFocusin)\n }, { immediate: true })\n }\n\n watch(isActive, async val => {\n await nextTick()\n if (val) {\n overlay.value!.contentEl?.focus({ preventScroll: true })\n } else {\n overlay.value!.activatorEl?.focus({ preventScroll: true })\n }\n })\n\n const activatorProps = computed(() =>\n mergeProps({\n 'aria-haspopup': 'dialog',\n 'aria-expanded': String(isActive.value),\n }, props.activatorProps)\n )\n\n useRender(() => {\n const [overlayProps] = VOverlay.filterProps(props)\n\n return (\n <VOverlay\n ref={ overlay }\n class={[\n 'v-dialog',\n {\n 'v-dialog--fullscreen': props.fullscreen,\n 'v-dialog--scrollable': props.scrollable,\n },\n ]}\n { ...overlayProps }\n v-model={ isActive.value }\n aria-role=\"dialog\"\n aria-modal=\"true\"\n activatorProps={ activatorProps.value }\n { ...scopeId }\n >\n {{\n activator: slots.activator,\n default: (...args) => (\n <VDefaultsProvider root>\n { slots.default?.(...args) }\n </VDefaultsProvider>\n ),\n }}\n </VOverlay>\n )\n })\n\n return forwardRefs({}, overlay)\n },\n})\n\nexport type VDialog = InstanceType<typeof VDialog>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,iBAAiB;AAAA,SACjBC,iBAAiB;AAAA,SACjBC,QAAQ,iCAEjB;AAAA,SACSC,eAAe;AAAA,SACfC,UAAU;AAAA,SACVC,WAAW,6CAEpB;AACA,SAASC,QAAQ,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACvDC,gBAAgB,EAAEC,UAAU,EAAEC,SAAS;AAAA,SACvCC,iBAAiB,oCAE1B;AAGA,OAAO,MAAMC,OAAO,GAAGJ,gBAAgB,EAAgB,CAAC;EACtDK,IAAI,EAAE,SAAS;EAEfC,KAAK,EAAE;IACLC,UAAU,EAAEC,OAAO;IACnBC,WAAW,EAAE;MACXC,IAAI,EAAEF,OAAO;MACbG,OAAO,EAAE;IACX,CAAC;IACDC,UAAU,EAAEJ,OAAO;IAEnB,GAAGL,iBAAiB,CAAC;MACnBU,MAAM,EAAE,eAAwB;MAChCC,cAAc,EAAE,OAAgB;MAChCC,UAAU,EAAE;QAAEC,SAAS,EAAE3B;MAAkB,CAA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AAA,iCAAdG,QAAQ,CAACH,KAAK;QAAA,aACd,QAAQ;QAAA,cACP,MAAM;QAAA,kBACAiC,cAAc,CAACjC;MAAK,GAChCI,OAAO;QAGViC,SAAS,EAAEnC,KAAK,CAACmC,SAAS;QAC1B7C,OAAO,EAAE;UAAA,kCAAI8C,IAAI;YAAJA,IAAI;UAAA;UAAA;YAAA;UAAA;YAAA,gBAEXpC,KAAK,CAACV,OAAO,GAAG,GAAG8C,IAAI,CAAC;UAAA;QAAA;MAE7B;IAIT,CAAC,CAAC;IAEF,OAAO/D,WAAW,CAAC,CAAC,CAAC,EAAE8B,OAAO,CAAC;EACjC;AACF,CAAC,CAAC"}
|
|
@@ -3,17 +3,21 @@
|
|
|
3
3
|
|
|
4
4
|
// Block
|
|
5
5
|
.v-dialog
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
margin: auto
|
|
6
|
+
margin: $dialog-margin
|
|
7
|
+
margin-inline-end: $dialog-margin
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
&.v-overlay--scroll-blocked
|
|
10
|
+
margin-inline-end: calc(#{$dialog-margin} + var(--v-scrollbar-offset))
|
|
11
|
+
|
|
12
|
+
> .v-overlay__content
|
|
13
|
+
max-height: 100%
|
|
14
|
+
width: 100%
|
|
15
|
+
max-width: 100%
|
|
15
16
|
display: flex
|
|
16
17
|
flex-direction: column
|
|
18
|
+
top: 50%
|
|
19
|
+
left: 50%
|
|
20
|
+
transform: translate(-50%, -50%)
|
|
17
21
|
|
|
18
22
|
> .v-card,
|
|
19
23
|
> .v-sheet
|
|
@@ -39,10 +43,12 @@
|
|
|
39
43
|
line-height: inherit
|
|
40
44
|
padding: $dialog-card-text-padding
|
|
41
45
|
|
|
42
|
-
.v-dialog--fullscreen
|
|
46
|
+
.v-dialog.v-dialog--fullscreen
|
|
47
|
+
margin: 0
|
|
48
|
+
margin-inline-end: 0
|
|
43
49
|
--v-scrollbar-offset: 0px
|
|
44
50
|
|
|
45
|
-
.v-overlay__content
|
|
51
|
+
> .v-overlay__content
|
|
46
52
|
border-radius: 0
|
|
47
53
|
margin: 0
|
|
48
54
|
padding: 0
|
|
@@ -53,6 +59,7 @@
|
|
|
53
59
|
overflow-y: auto
|
|
54
60
|
top: 0
|
|
55
61
|
left: 0
|
|
62
|
+
transform: none
|
|
56
63
|
|
|
57
64
|
> .v-card,
|
|
58
65
|
> .v-sheet
|
|
@@ -60,8 +67,8 @@
|
|
|
60
67
|
min-width: 100%
|
|
61
68
|
border-radius: 0
|
|
62
69
|
|
|
63
|
-
.v-dialog--scrollable .v-overlay__content,
|
|
64
|
-
.v-dialog--scrollable .v-overlay__content > form
|
|
70
|
+
.v-dialog--scrollable > .v-overlay__content,
|
|
71
|
+
.v-dialog--scrollable > .v-overlay__content > form
|
|
65
72
|
display: flex
|
|
66
73
|
|
|
67
74
|
> .v-card
|