@vuetify/nightly 3.0.0-beta.10 → 3.0.0-beta.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/CHANGELOG.md +13 -2
- package/dist/json/attributes.json +37 -29
- package/dist/json/importMap.json +46 -46
- package/dist/json/tags.json +10 -8
- package/dist/json/web-types.json +101 -87
- package/dist/vuetify.css +545 -441
- package/dist/vuetify.d.ts +12095 -10059
- package/dist/vuetify.esm.js +401 -266
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +371 -236
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +3 -3
- package/dist/vuetify.min.js +496 -490
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.d.ts +171 -0
- package/lib/blueprints/md1.d.ts +167 -0
- package/lib/blueprints/md2.d.ts +167 -0
- package/lib/blueprints/md3.d.ts +167 -0
- package/lib/components/VAlert/index.d.ts +185 -0
- package/lib/components/VApp/index.d.ts +83 -0
- package/lib/components/VAppBar/VAppBar.css +3 -0
- package/lib/components/VAppBar/VAppBar.sass +3 -0
- package/lib/components/VAppBar/index.d.ts +156 -0
- package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.ts +1569 -0
- package/lib/components/VAvatar/VAvatar.css +44 -2
- package/lib/components/VAvatar/VAvatar.mjs +16 -12
- package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
- package/lib/components/VAvatar/VAvatar.sass +5 -1
- package/lib/components/VAvatar/_variables.scss +9 -4
- package/lib/components/VAvatar/index.d.ts +80 -0
- package/lib/components/VBadge/index.d.ts +123 -0
- package/lib/components/VBanner/index.d.ts +122 -0
- package/lib/components/VBottomNavigation/index.d.ts +143 -0
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +2 -2
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/index.d.ts +301 -0
- package/lib/components/VBtn/VBtn.css +8 -3
- package/lib/components/VBtn/VBtn.mjs +16 -6
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/index.d.ts +210 -0
- package/lib/components/VBtnGroup/index.d.ts +65 -0
- package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -3
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.ts +175 -0
- package/lib/components/VCard/VCard.css +8 -3
- package/lib/components/VCard/index.d.ts +230 -0
- package/lib/components/VCarousel/VCarousel.mjs +3 -3
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/index.d.ts +80 -0
- package/lib/components/VCheckbox/index.d.ts +291 -0
- package/lib/components/VChip/index.d.ts +195 -0
- package/lib/components/VChipGroup/index.d.ts +89 -0
- package/lib/components/VCode/index.d.ts +19 -0
- package/lib/components/VColorPicker/index.d.ts +116 -0
- package/lib/components/VCombobox/VCombobox.mjs +1 -1
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.ts +1590 -0
- package/lib/components/VCounter/index.d.ts +223 -0
- package/lib/components/VDefaultsProvider/index.d.ts +26 -0
- package/lib/components/VDialog/VDialog.css +2 -0
- package/lib/components/VDialog/VDialog.mjs +17 -12
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.sass +2 -0
- package/lib/components/VDialog/index.d.ts +859 -0
- package/lib/components/VDivider/index.d.ts +22 -0
- package/lib/components/VExpansionPanel/VExpansionPanel.css +8 -3
- package/lib/components/VExpansionPanel/index.d.ts +206 -0
- package/lib/components/VField/VField.css +27 -24
- package/lib/components/VField/VField.mjs +1 -1
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/VField.sass +23 -21
- package/lib/components/VField/index.d.ts +332 -0
- package/lib/components/VFileInput/VFileInput.mjs +3 -3
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.ts +236 -0
- package/lib/components/VFooter/VFooter.css +7 -0
- package/lib/components/VFooter/VFooter.sass +1 -1
- package/lib/components/VFooter/_variables.scss +11 -0
- package/lib/components/VFooter/index.d.ts +76 -0
- package/lib/components/VForm/index.d.ts +72 -0
- package/lib/components/VGrid/index.d.ts +154 -0
- package/lib/components/VHover/index.d.ts +30 -0
- package/lib/components/VIcon/index.d.ts +124 -0
- package/lib/components/VImg/VImg.mjs +29 -27
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/index.d.ts +89 -0
- package/lib/components/VInput/VInput.mjs +4 -4
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/index.d.ts +325 -0
- package/lib/components/VItemGroup/index.d.ts +210 -0
- package/lib/components/VKbd/index.d.ts +19 -0
- package/lib/components/VLabel/VLabel.css +4 -1
- package/lib/components/VLabel/VLabel.mjs +4 -1
- package/lib/components/VLabel/VLabel.mjs.map +1 -1
- package/lib/components/VLabel/VLabel.sass +3 -1
- package/lib/components/VLabel/index.d.ts +16 -0
- package/lib/components/VLayout/index.d.ts +75 -0
- package/lib/components/VLazy/index.d.ts +85 -0
- package/lib/components/VList/VListItem.css +8 -3
- package/lib/components/VList/VListItem.mjs +4 -4
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/index.d.ts +1250 -0
- package/lib/components/VLocaleProvider/index.d.ts +23 -0
- package/lib/components/VMain/index.d.ts +26 -0
- package/lib/components/VMenu/VMenu.mjs +16 -3
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/index.d.ts +817 -0
- package/lib/components/VMessages/index.d.ts +234 -0
- package/lib/components/VNavigationDrawer/index.d.ts +148 -0
- package/lib/components/VNoSsr/index.d.ts +7 -0
- package/lib/components/VOverlay/VOverlay.mjs +4 -3
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.ts +579 -0
- package/lib/components/VOverlay/useActivator.mjs +27 -1
- package/lib/components/VOverlay/useActivator.mjs.map +1 -1
- package/lib/components/VPagination/VPagination.mjs +6 -3
- package/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/lib/components/VPagination/index.d.ts +247 -0
- package/lib/components/VParallax/VParallax.mjs +24 -10
- package/lib/components/VParallax/VParallax.mjs.map +1 -1
- package/lib/components/VParallax/index.d.ts +18 -0
- package/lib/components/VProgressCircular/index.d.ts +68 -0
- package/lib/components/VProgressLinear/index.d.ts +101 -0
- package/lib/components/VRadio/index.d.ts +103 -0
- package/lib/components/VRadioGroup/VRadioGroup.css +2 -3
- package/lib/components/VRadioGroup/VRadioGroup.mjs +2 -1
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.sass +2 -2
- package/lib/components/VRadioGroup/_variables.scss +0 -1
- package/lib/components/VRadioGroup/index.d.ts +186 -0
- package/lib/components/VRangeSlider/VRangeSlider.mjs +12 -2
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/index.d.ts +242 -0
- package/lib/components/VRating/index.d.ts +356 -0
- package/lib/components/VResponsive/index.d.ts +23 -0
- package/lib/components/VSelect/VSelect.mjs +1 -1
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.ts +1521 -0
- package/lib/components/VSelectionControl/VSelectionControl.mjs +2 -1
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.ts +275 -0
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.css +5 -0
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +3 -1
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -1
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.sass +5 -0
- package/lib/components/VSelectionControlGroup/index.d.ts +47 -0
- package/lib/components/VSheet/index.d.ts +68 -0
- package/lib/components/VSlideGroup/index.d.ts +151 -0
- package/lib/components/VSlider/VSlider.css +7 -2
- package/lib/components/VSlider/VSlider.mjs +14 -4
- package/lib/components/VSlider/VSlider.mjs.map +1 -1
- package/lib/components/VSlider/VSlider.sass +6 -2
- package/lib/components/VSlider/VSliderTrack.css +20 -20
- package/lib/components/VSlider/VSliderTrack.mjs +7 -3
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSlider/VSliderTrack.sass +14 -14
- package/lib/components/VSlider/_variables.scss +2 -2
- package/lib/components/VSlider/index.d.ts +239 -0
- package/lib/components/VSlider/slider.mjs +2 -2
- package/lib/components/VSlider/slider.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.mjs +3 -2
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/index.d.ts +892 -0
- package/lib/components/VSwitch/index.d.ts +175 -0
- package/lib/components/VSystemBar/index.d.ts +61 -0
- package/lib/components/VTable/index.d.ts +39 -0
- package/lib/components/VTabs/VTab.mjs +1 -0
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/index.d.ts +178 -0
- package/lib/components/VTextField/VTextField.css +2 -3
- package/lib/components/VTextField/VTextField.sass +2 -4
- package/lib/components/VTextField/index.d.ts +582 -0
- package/lib/components/VTextarea/VTextarea.css +5 -3
- package/lib/components/VTextarea/VTextarea.mjs +2 -1
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/VTextarea.sass +5 -4
- package/lib/components/VTextarea/index.d.ts +218 -0
- package/lib/components/VThemeProvider/index.d.ts +24 -0
- package/lib/components/VTimeline/VTimeline.css +21 -6
- package/lib/components/VTimeline/VTimeline.mjs +6 -1
- package/lib/components/VTimeline/VTimeline.mjs.map +1 -1
- package/lib/components/VTimeline/VTimeline.sass +16 -2
- package/lib/components/VTimeline/_variables.scss +4 -3
- package/lib/components/VTimeline/index.d.ts +154 -0
- package/lib/components/VToolbar/VToolbar.css +0 -1
- package/lib/components/VToolbar/VToolbar.sass +0 -1
- package/lib/components/VToolbar/index.d.ts +414 -0
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/index.d.ts +799 -0
- package/lib/components/VValidation/index.d.ts +61 -0
- package/lib/components/VWindow/index.d.ts +428 -0
- package/lib/components/index.d.ts +12037 -10009
- package/lib/components/transitions/index.d.ts +454 -0
- package/lib/composables/display.mjs +3 -3
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/items.mjs.map +1 -1
- package/lib/composables/locale.mjs +10 -3
- package/lib/composables/locale.mjs.map +1 -1
- package/lib/composables/proxiedModel.mjs +28 -10
- package/lib/composables/proxiedModel.mjs.map +1 -1
- package/lib/composables/router.mjs +10 -2
- package/lib/composables/router.mjs.map +1 -1
- package/lib/composables/selectLink.mjs +4 -4
- package/lib/composables/selectLink.mjs.map +1 -1
- package/lib/composables/theme.mjs +37 -33
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/validation.mjs +1 -1
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +46 -51
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.ts +31 -22
- package/lib/locale/adapters/vue-i18n.d.ts +35 -0
- package/lib/locale/adapters/vue-intl.d.ts +42 -0
- package/lib/styles/main.css +73 -73
- package/lib/styles/settings/_colors.scss +84 -84
- package/lib/styles/tools/_states.sass +8 -3
- package/lib/util/getCurrentInstance.mjs +2 -3
- package/lib/util/getCurrentInstance.mjs.map +1 -1
- package/lib/util/helpers.mjs +6 -11
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const VCounter: vue.DefineComponent<{
|
|
4
|
+
transition: Omit<{
|
|
5
|
+
type: vue.PropType<string | boolean | (vue.TransitionProps & {
|
|
6
|
+
component?: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions> | undefined;
|
|
7
|
+
})>;
|
|
8
|
+
default: string;
|
|
9
|
+
validator: (val: unknown) => boolean;
|
|
10
|
+
}, "type" | "default"> & {
|
|
11
|
+
type: vue.PropType<string | boolean | (vue.TransitionProps & {
|
|
12
|
+
component?: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions> | undefined;
|
|
13
|
+
}) | {
|
|
14
|
+
component: vue.DefineComponent<{
|
|
15
|
+
group: BooleanConstructor;
|
|
16
|
+
hideOnLeave: BooleanConstructor;
|
|
17
|
+
leaveAbsolute: BooleanConstructor;
|
|
18
|
+
mode: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
origin: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
29
|
+
group: BooleanConstructor;
|
|
30
|
+
hideOnLeave: BooleanConstructor;
|
|
31
|
+
leaveAbsolute: BooleanConstructor;
|
|
32
|
+
mode: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
origin: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
}>>, {
|
|
41
|
+
origin: string;
|
|
42
|
+
group: boolean;
|
|
43
|
+
mode: string;
|
|
44
|
+
hideOnLeave: boolean;
|
|
45
|
+
leaveAbsolute: boolean;
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
48
|
+
default: string | boolean | (vue.TransitionProps & {
|
|
49
|
+
component?: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions> | undefined;
|
|
50
|
+
}) | {
|
|
51
|
+
component: vue.DefineComponent<{
|
|
52
|
+
group: BooleanConstructor;
|
|
53
|
+
hideOnLeave: BooleanConstructor;
|
|
54
|
+
leaveAbsolute: BooleanConstructor;
|
|
55
|
+
mode: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
origin: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
66
|
+
group: BooleanConstructor;
|
|
67
|
+
hideOnLeave: BooleanConstructor;
|
|
68
|
+
leaveAbsolute: BooleanConstructor;
|
|
69
|
+
mode: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
origin: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
}>>, {
|
|
78
|
+
origin: string;
|
|
79
|
+
group: boolean;
|
|
80
|
+
mode: string;
|
|
81
|
+
hideOnLeave: boolean;
|
|
82
|
+
leaveAbsolute: boolean;
|
|
83
|
+
}>;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
active: BooleanConstructor;
|
|
87
|
+
max: (StringConstructor | NumberConstructor)[];
|
|
88
|
+
value: {
|
|
89
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
93
|
+
transition: Omit<{
|
|
94
|
+
type: vue.PropType<string | boolean | (vue.TransitionProps & {
|
|
95
|
+
component?: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions> | undefined;
|
|
96
|
+
})>;
|
|
97
|
+
default: string;
|
|
98
|
+
validator: (val: unknown) => boolean;
|
|
99
|
+
}, "type" | "default"> & {
|
|
100
|
+
type: vue.PropType<string | boolean | (vue.TransitionProps & {
|
|
101
|
+
component?: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions> | undefined;
|
|
102
|
+
}) | {
|
|
103
|
+
component: vue.DefineComponent<{
|
|
104
|
+
group: BooleanConstructor;
|
|
105
|
+
hideOnLeave: BooleanConstructor;
|
|
106
|
+
leaveAbsolute: BooleanConstructor;
|
|
107
|
+
mode: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
origin: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
118
|
+
group: BooleanConstructor;
|
|
119
|
+
hideOnLeave: BooleanConstructor;
|
|
120
|
+
leaveAbsolute: BooleanConstructor;
|
|
121
|
+
mode: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string | undefined;
|
|
124
|
+
};
|
|
125
|
+
origin: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
}>>, {
|
|
130
|
+
origin: string;
|
|
131
|
+
group: boolean;
|
|
132
|
+
mode: string;
|
|
133
|
+
hideOnLeave: boolean;
|
|
134
|
+
leaveAbsolute: boolean;
|
|
135
|
+
}>;
|
|
136
|
+
}>;
|
|
137
|
+
default: string | boolean | (vue.TransitionProps & {
|
|
138
|
+
component?: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions> | undefined;
|
|
139
|
+
}) | {
|
|
140
|
+
component: vue.DefineComponent<{
|
|
141
|
+
group: BooleanConstructor;
|
|
142
|
+
hideOnLeave: BooleanConstructor;
|
|
143
|
+
leaveAbsolute: BooleanConstructor;
|
|
144
|
+
mode: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string | undefined;
|
|
147
|
+
};
|
|
148
|
+
origin: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
152
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
153
|
+
[key: string]: any;
|
|
154
|
+
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
155
|
+
group: BooleanConstructor;
|
|
156
|
+
hideOnLeave: BooleanConstructor;
|
|
157
|
+
leaveAbsolute: BooleanConstructor;
|
|
158
|
+
mode: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
default: string | undefined;
|
|
161
|
+
};
|
|
162
|
+
origin: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
}>>, {
|
|
167
|
+
origin: string;
|
|
168
|
+
group: boolean;
|
|
169
|
+
mode: string;
|
|
170
|
+
hideOnLeave: boolean;
|
|
171
|
+
leaveAbsolute: boolean;
|
|
172
|
+
}>;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
active: BooleanConstructor;
|
|
176
|
+
max: (StringConstructor | NumberConstructor)[];
|
|
177
|
+
value: {
|
|
178
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
179
|
+
default: number;
|
|
180
|
+
};
|
|
181
|
+
}>>, {
|
|
182
|
+
active: boolean;
|
|
183
|
+
transition: string | boolean | (vue.TransitionProps & {
|
|
184
|
+
component?: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions> | undefined;
|
|
185
|
+
}) | {
|
|
186
|
+
component: vue.DefineComponent<{
|
|
187
|
+
group: BooleanConstructor;
|
|
188
|
+
hideOnLeave: BooleanConstructor;
|
|
189
|
+
leaveAbsolute: BooleanConstructor;
|
|
190
|
+
mode: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
default: string | undefined;
|
|
193
|
+
};
|
|
194
|
+
origin: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
198
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
199
|
+
[key: string]: any;
|
|
200
|
+
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
201
|
+
group: BooleanConstructor;
|
|
202
|
+
hideOnLeave: BooleanConstructor;
|
|
203
|
+
leaveAbsolute: BooleanConstructor;
|
|
204
|
+
mode: {
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
default: string | undefined;
|
|
207
|
+
};
|
|
208
|
+
origin: {
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
default: string;
|
|
211
|
+
};
|
|
212
|
+
}>>, {
|
|
213
|
+
origin: string;
|
|
214
|
+
group: boolean;
|
|
215
|
+
mode: string;
|
|
216
|
+
hideOnLeave: boolean;
|
|
217
|
+
leaveAbsolute: boolean;
|
|
218
|
+
}>;
|
|
219
|
+
};
|
|
220
|
+
value: string | number;
|
|
221
|
+
}>;
|
|
222
|
+
|
|
223
|
+
export { VCounter };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
interface DefaultsInstance {
|
|
5
|
+
[key: string]: undefined | Record<string, unknown>;
|
|
6
|
+
global?: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare const VDefaultsProvider: vue.DefineComponent<{
|
|
10
|
+
defaults: PropType<Partial<DefaultsInstance>>;
|
|
11
|
+
reset: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
root: BooleanConstructor;
|
|
13
|
+
scoped: BooleanConstructor;
|
|
14
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
17
|
+
defaults: PropType<Partial<DefaultsInstance>>;
|
|
18
|
+
reset: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
root: BooleanConstructor;
|
|
20
|
+
scoped: BooleanConstructor;
|
|
21
|
+
}>>, {
|
|
22
|
+
root: boolean;
|
|
23
|
+
scoped: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
|
|
26
|
+
export { VDefaultsProvider };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
2
2
|
// Styles
|
|
3
3
|
import "./VDialog.css"; // Components
|
|
4
4
|
|
|
5
5
|
import { VDialogTransition } from "../transitions/index.mjs";
|
|
6
|
+
import { VDefaultsProvider } from "../VDefaultsProvider/index.mjs";
|
|
6
7
|
import { VOverlay } from "../VOverlay/index.mjs"; // Composables
|
|
7
8
|
|
|
8
|
-
import { makeDimensionProps, useDimension } from "../../composables/dimensions.mjs";
|
|
9
9
|
import { makeTransitionProps } from "../../composables/transition.mjs";
|
|
10
10
|
import { useProxiedModel } from "../../composables/proxiedModel.mjs";
|
|
11
11
|
import { useScopeId } from "../../composables/scopeId.mjs";
|
|
@@ -29,9 +29,6 @@ export const VDialog = genericComponent()({
|
|
|
29
29
|
},
|
|
30
30
|
scrollable: Boolean,
|
|
31
31
|
modelValue: Boolean,
|
|
32
|
-
...makeDimensionProps({
|
|
33
|
-
width: 'auto'
|
|
34
|
-
}),
|
|
35
32
|
...makeTransitionProps({
|
|
36
33
|
transition: {
|
|
37
34
|
component: VDialogTransition
|
|
@@ -48,9 +45,6 @@ export const VDialog = genericComponent()({
|
|
|
48
45
|
slots
|
|
49
46
|
} = _ref;
|
|
50
47
|
const isActive = useProxiedModel(props, 'modelValue');
|
|
51
|
-
const {
|
|
52
|
-
dimensionStyles
|
|
53
|
-
} = useDimension(props);
|
|
54
48
|
const {
|
|
55
49
|
scopeId
|
|
56
50
|
} = useScopeId();
|
|
@@ -66,7 +60,7 @@ export const VDialog = genericComponent()({
|
|
|
66
60
|
(_overlay$value2 = overlay.value) != null && _overlay$value2.globalTop && // It isn't the document or the dialog body
|
|
67
61
|
![document, overlay.value.contentEl].includes(after) && // It isn't inside the dialog body
|
|
68
62
|
!overlay.value.contentEl.contains(after)) {
|
|
69
|
-
const focusable = [...overlay.value.contentEl.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')].filter(el => !el.hasAttribute('disabled'));
|
|
63
|
+
const focusable = [...overlay.value.contentEl.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])')].filter(el => !el.hasAttribute('disabled') && !el.matches('[tabindex="-1"]'));
|
|
70
64
|
if (!focusable.length) return;
|
|
71
65
|
const firstElement = focusable[0];
|
|
72
66
|
const lastElement = focusable[focusable.length - 1];
|
|
@@ -111,7 +105,6 @@ export const VDialog = genericComponent()({
|
|
|
111
105
|
'v-dialog--fullscreen': props.fullscreen,
|
|
112
106
|
'v-dialog--scrollable': props.scrollable
|
|
113
107
|
}],
|
|
114
|
-
"style": dimensionStyles.value,
|
|
115
108
|
"transition": props.transition,
|
|
116
109
|
"scrollStrategy": "block",
|
|
117
110
|
"ref": overlay,
|
|
@@ -123,8 +116,20 @@ export const VDialog = genericComponent()({
|
|
|
123
116
|
},
|
|
124
117
|
"z-index": 2400
|
|
125
118
|
}, scopeId, attrs), {
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
activator: slots.activator,
|
|
120
|
+
default: function () {
|
|
121
|
+
var _slots$default;
|
|
122
|
+
|
|
123
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
124
|
+
args[_key] = arguments[_key];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return _createVNode(VDefaultsProvider, {
|
|
128
|
+
"root": true
|
|
129
|
+
}, {
|
|
130
|
+
default: () => [(_slots$default = slots.default) == null ? void 0 : _slots$default.call(slots, ...args)]
|
|
131
|
+
});
|
|
132
|
+
}
|
|
128
133
|
}));
|
|
129
134
|
return forwardRefs({}, overlay);
|
|
130
135
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VDialog.mjs","names":["VDialogTransition","
|
|
1
|
+
{"version":3,"file":"VDialog.mjs","names":["VDialogTransition","VDefaultsProvider","VOverlay","makeTransitionProps","useProxiedModel","useScopeId","forwardRefs","nextTick","ref","watch","genericComponent","IN_BROWSER","useRender","VDialog","name","inheritAttrs","props","fullscreen","Boolean","origin","type","String","default","retainFocus","scrollable","modelValue","transition","component","emits","value","setup","attrs","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","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 { makeTransitionProps } from '@/composables/transition'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useScopeId } from '@/composables/scopeId'\nimport { forwardRefs } from '@/composables/forwardRefs'\n\n// Utilities\nimport { nextTick, ref, watch } from 'vue'\nimport { genericComponent, IN_BROWSER, useRender } from '@/util'\n\n// Types\nimport type { OverlaySlots } from '@/components/VOverlay/VOverlay'\n\nexport const VDialog = genericComponent<new () => {\n $slots: OverlaySlots\n $props: VOverlay['$props']\n}>()({\n name: 'VDialog',\n\n inheritAttrs: false,\n\n props: {\n fullscreen: Boolean,\n origin: {\n type: String,\n default: 'center center',\n },\n retainFocus: {\n type: Boolean,\n default: true,\n },\n scrollable: Boolean,\n modelValue: Boolean,\n\n ...makeTransitionProps({\n transition: { component: VDialogTransition },\n }),\n },\n\n emits: {\n 'update:modelValue': (value: boolean) => true,\n },\n\n setup (props, { attrs, 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 useRender(() => (\n <VOverlay\n v-model={ isActive.value }\n class={[\n 'v-dialog',\n {\n 'v-dialog--fullscreen': props.fullscreen,\n 'v-dialog--scrollable': props.scrollable,\n },\n ]}\n transition={ props.transition }\n scrollStrategy=\"block\"\n ref={ overlay }\n aria-role=\"dialog\"\n aria-modal=\"true\"\n activatorProps={{\n 'aria-haspopup': 'dialog',\n 'aria-expanded': String(isActive.value),\n }}\n z-index={ 2400 }\n { ...scopeId }\n { ...attrs }\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 return forwardRefs({}, overlay)\n },\n})\n\nexport type VDialog = InstanceType<typeof VDialog>\n"],"mappings":";AAAA;AACA,uB,CAEA;;SACSA,iB;SACAC,iB;SACAC,Q,iCAET;;SACSC,mB;SACAC,e;SACAC,U;SACAC,W,6CAET;;AACA,SAASC,QAAT,EAAmBC,GAAnB,EAAwBC,KAAxB,QAAqC,KAArC;SACSC,gB,EAAkBC,U,EAAYC,S,gCAEvC;;AAGA,OAAO,MAAMC,OAAO,GAAGH,gBAAgB,GAGlC;EACHI,IAAI,EAAE,SADH;EAGHC,YAAY,EAAE,KAHX;EAKHC,KAAK,EAAE;IACLC,UAAU,EAAEC,OADP;IAELC,MAAM,EAAE;MACNC,IAAI,EAAEC,MADA;MAENC,OAAO,EAAE;IAFH,CAFH;IAMLC,WAAW,EAAE;MACXH,IAAI,EAAEF,OADK;MAEXI,OAAO,EAAE;IAFE,CANR;IAULE,UAAU,EAAEN,OAVP;IAWLO,UAAU,EAAEP,OAXP;IAaL,GAAGf,mBAAmB,CAAC;MACrBuB,UAAU,E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