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,30 +1,137 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
}
|
|
7
|
+
|
|
8
|
+
declare const VSystemBar: {
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
$: vue.ComponentInternalInstance;
|
|
11
|
+
$data: {};
|
|
12
|
+
$props: Partial<{
|
|
13
|
+
window: boolean;
|
|
14
|
+
absolute: boolean;
|
|
15
|
+
order: string | number;
|
|
16
|
+
tag: string;
|
|
17
|
+
rounded: string | number | boolean;
|
|
18
|
+
}> & Omit<{
|
|
19
|
+
window: boolean;
|
|
20
|
+
absolute: boolean;
|
|
21
|
+
order: string | number;
|
|
22
|
+
tag: string;
|
|
23
|
+
} & {
|
|
24
|
+
height?: string | number | undefined;
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
color?: string | undefined;
|
|
27
|
+
elevation?: string | number | undefined;
|
|
28
|
+
theme?: string | undefined;
|
|
29
|
+
rounded?: string | number | boolean | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
32
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
33
|
+
};
|
|
34
|
+
$slots?: {
|
|
35
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
'v-slots'?: {
|
|
38
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
42
|
+
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "window" | "absolute" | "order" | "tag" | "rounded">;
|
|
43
|
+
$attrs: {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
$refs: {
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
$slots: Readonly<{
|
|
50
|
+
[name: string]: vue.Slot | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
53
|
+
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
54
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
55
|
+
$el: any;
|
|
56
|
+
$options: vue.ComponentOptionsBase<{
|
|
57
|
+
window: boolean;
|
|
58
|
+
absolute: boolean;
|
|
59
|
+
order: string | number;
|
|
60
|
+
tag: string;
|
|
61
|
+
} & {
|
|
62
|
+
height?: string | number | undefined;
|
|
63
|
+
name?: string | undefined;
|
|
64
|
+
color?: string | undefined;
|
|
65
|
+
elevation?: string | number | undefined;
|
|
66
|
+
theme?: string | undefined;
|
|
67
|
+
rounded?: string | number | boolean | undefined;
|
|
68
|
+
} & {
|
|
69
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
70
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
71
|
+
};
|
|
72
|
+
$slots?: {
|
|
73
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
'v-slots'?: {
|
|
76
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
} & {
|
|
79
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
80
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
81
|
+
window: boolean;
|
|
82
|
+
absolute: boolean;
|
|
83
|
+
order: string | number;
|
|
84
|
+
tag: string;
|
|
85
|
+
rounded: string | number | boolean;
|
|
86
|
+
}, {}, string> & {
|
|
87
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
92
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
93
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
94
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
95
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
96
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
97
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
98
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
99
|
+
renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
100
|
+
renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
101
|
+
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;
|
|
102
|
+
};
|
|
103
|
+
$forceUpdate: () => void;
|
|
104
|
+
$nextTick: typeof vue.nextTick;
|
|
105
|
+
$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;
|
|
106
|
+
} & {
|
|
107
|
+
window: boolean;
|
|
108
|
+
absolute: boolean;
|
|
109
|
+
order: string | number;
|
|
110
|
+
tag: string;
|
|
111
|
+
} & {
|
|
112
|
+
height?: string | number | undefined;
|
|
113
|
+
name?: string | undefined;
|
|
114
|
+
color?: string | undefined;
|
|
115
|
+
elevation?: string | number | undefined;
|
|
116
|
+
theme?: string | undefined;
|
|
117
|
+
rounded?: string | number | boolean | undefined;
|
|
118
|
+
} & {
|
|
119
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
120
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
121
|
+
};
|
|
122
|
+
$slots?: {
|
|
123
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
'v-slots'?: {
|
|
126
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
} & {
|
|
129
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
130
|
+
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
131
|
+
__isFragment?: undefined;
|
|
132
|
+
__isTeleport?: undefined;
|
|
133
|
+
__isSuspense?: undefined;
|
|
134
|
+
} & vue.ComponentOptionsBase<{
|
|
28
135
|
window: boolean;
|
|
29
136
|
absolute: boolean;
|
|
30
137
|
order: string | number;
|
|
@@ -48,13 +155,63 @@ declare const VSystemBar: vue.DefineComponent<{
|
|
|
48
155
|
} | undefined;
|
|
49
156
|
} & {
|
|
50
157
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
51
|
-
}, {
|
|
158
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
52
159
|
window: boolean;
|
|
53
160
|
absolute: boolean;
|
|
54
161
|
order: string | number;
|
|
55
162
|
tag: string;
|
|
56
163
|
rounded: string | number | boolean;
|
|
57
|
-
}
|
|
164
|
+
}, {}, string> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
165
|
+
theme: StringConstructor;
|
|
166
|
+
tag: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
default: string;
|
|
169
|
+
};
|
|
170
|
+
rounded: {
|
|
171
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
172
|
+
default: undefined;
|
|
173
|
+
};
|
|
174
|
+
name: {
|
|
175
|
+
type: StringConstructor;
|
|
176
|
+
};
|
|
177
|
+
order: {
|
|
178
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
179
|
+
default: number;
|
|
180
|
+
};
|
|
181
|
+
absolute: BooleanConstructor;
|
|
182
|
+
elevation: {
|
|
183
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
184
|
+
validator(v: any): boolean;
|
|
185
|
+
};
|
|
186
|
+
color: StringConstructor;
|
|
187
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
188
|
+
window: BooleanConstructor;
|
|
189
|
+
}, vue.ExtractPropTypes<{
|
|
190
|
+
theme: StringConstructor;
|
|
191
|
+
tag: {
|
|
192
|
+
type: StringConstructor;
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
195
|
+
rounded: {
|
|
196
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
197
|
+
default: undefined;
|
|
198
|
+
};
|
|
199
|
+
name: {
|
|
200
|
+
type: StringConstructor;
|
|
201
|
+
};
|
|
202
|
+
order: {
|
|
203
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
204
|
+
default: number;
|
|
205
|
+
};
|
|
206
|
+
absolute: BooleanConstructor;
|
|
207
|
+
elevation: {
|
|
208
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
209
|
+
validator(v: any): boolean;
|
|
210
|
+
};
|
|
211
|
+
color: StringConstructor;
|
|
212
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
213
|
+
window: BooleanConstructor;
|
|
214
|
+
}>>;
|
|
58
215
|
type VSystemBar = InstanceType<typeof VSystemBar>;
|
|
59
216
|
|
|
60
217
|
export { VSystemBar };
|
|
@@ -1,8 +1,166 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes } 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 Density = null | 'default' | 'comfortable' | 'compact';
|
|
4
9
|
|
|
5
|
-
declare const VTable:
|
|
10
|
+
declare const VTable: {
|
|
11
|
+
new (...args: any[]): {
|
|
12
|
+
$: vue.ComponentInternalInstance;
|
|
13
|
+
$data: {};
|
|
14
|
+
$props: Partial<{
|
|
15
|
+
tag: string;
|
|
16
|
+
density: Density;
|
|
17
|
+
hover: boolean;
|
|
18
|
+
fixedHeader: boolean;
|
|
19
|
+
fixedFooter: boolean;
|
|
20
|
+
}> & Omit<{
|
|
21
|
+
tag: string;
|
|
22
|
+
density: Density;
|
|
23
|
+
hover: boolean;
|
|
24
|
+
fixedHeader: boolean;
|
|
25
|
+
fixedFooter: boolean;
|
|
26
|
+
} & {
|
|
27
|
+
height?: string | number | undefined;
|
|
28
|
+
theme?: string | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
$children?: {} | vue.VNodeChild | {
|
|
31
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
32
|
+
top?: (() => vue.VNodeChild) | undefined;
|
|
33
|
+
bottom?: (() => vue.VNodeChild) | undefined;
|
|
34
|
+
wrapper?: (() => vue.VNodeChild) | undefined;
|
|
35
|
+
};
|
|
36
|
+
$slots?: {
|
|
37
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
38
|
+
top?: (() => vue.VNodeChild) | undefined;
|
|
39
|
+
bottom?: (() => vue.VNodeChild) | undefined;
|
|
40
|
+
wrapper?: (() => vue.VNodeChild) | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
'v-slots'?: {
|
|
43
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
44
|
+
top?: false | (() => vue.VNodeChild) | undefined;
|
|
45
|
+
bottom?: false | (() => vue.VNodeChild) | undefined;
|
|
46
|
+
wrapper?: false | (() => vue.VNodeChild) | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
50
|
+
"v-slot:top"?: false | (() => vue.VNodeChild) | undefined;
|
|
51
|
+
"v-slot:bottom"?: false | (() => vue.VNodeChild) | undefined;
|
|
52
|
+
"v-slot:wrapper"?: false | (() => vue.VNodeChild) | undefined;
|
|
53
|
+
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "tag" | "density" | "hover" | "fixedHeader" | "fixedFooter">;
|
|
54
|
+
$attrs: {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
$refs: {
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
$slots: Readonly<{
|
|
61
|
+
[name: string]: vue.Slot | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
64
|
+
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
65
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
66
|
+
$el: any;
|
|
67
|
+
$options: vue.ComponentOptionsBase<{
|
|
68
|
+
tag: string;
|
|
69
|
+
density: Density;
|
|
70
|
+
hover: boolean;
|
|
71
|
+
fixedHeader: boolean;
|
|
72
|
+
fixedFooter: boolean;
|
|
73
|
+
} & {
|
|
74
|
+
height?: string | number | undefined;
|
|
75
|
+
theme?: string | undefined;
|
|
76
|
+
} & {
|
|
77
|
+
$children?: {} | vue.VNodeChild | {
|
|
78
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
79
|
+
top?: (() => vue.VNodeChild) | undefined;
|
|
80
|
+
bottom?: (() => vue.VNodeChild) | undefined;
|
|
81
|
+
wrapper?: (() => vue.VNodeChild) | undefined;
|
|
82
|
+
};
|
|
83
|
+
$slots?: {
|
|
84
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
85
|
+
top?: (() => vue.VNodeChild) | undefined;
|
|
86
|
+
bottom?: (() => vue.VNodeChild) | undefined;
|
|
87
|
+
wrapper?: (() => vue.VNodeChild) | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
'v-slots'?: {
|
|
90
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
91
|
+
top?: false | (() => vue.VNodeChild) | undefined;
|
|
92
|
+
bottom?: false | (() => vue.VNodeChild) | undefined;
|
|
93
|
+
wrapper?: false | (() => vue.VNodeChild) | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
} & {
|
|
96
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
97
|
+
"v-slot:top"?: false | (() => vue.VNodeChild) | undefined;
|
|
98
|
+
"v-slot:bottom"?: false | (() => vue.VNodeChild) | undefined;
|
|
99
|
+
"v-slot:wrapper"?: false | (() => vue.VNodeChild) | undefined;
|
|
100
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
101
|
+
tag: string;
|
|
102
|
+
density: Density;
|
|
103
|
+
hover: boolean;
|
|
104
|
+
fixedHeader: boolean;
|
|
105
|
+
fixedFooter: boolean;
|
|
106
|
+
}, {}, string> & {
|
|
107
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
108
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
109
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
110
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
111
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
112
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
113
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
114
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
115
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
116
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
117
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
118
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
119
|
+
renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
120
|
+
renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
121
|
+
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;
|
|
122
|
+
};
|
|
123
|
+
$forceUpdate: () => void;
|
|
124
|
+
$nextTick: typeof vue.nextTick;
|
|
125
|
+
$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;
|
|
126
|
+
} & {
|
|
127
|
+
tag: string;
|
|
128
|
+
density: Density;
|
|
129
|
+
hover: boolean;
|
|
130
|
+
fixedHeader: boolean;
|
|
131
|
+
fixedFooter: boolean;
|
|
132
|
+
} & {
|
|
133
|
+
height?: string | number | undefined;
|
|
134
|
+
theme?: string | undefined;
|
|
135
|
+
} & {
|
|
136
|
+
$children?: {} | vue.VNodeChild | {
|
|
137
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
138
|
+
top?: (() => vue.VNodeChild) | undefined;
|
|
139
|
+
bottom?: (() => vue.VNodeChild) | undefined;
|
|
140
|
+
wrapper?: (() => vue.VNodeChild) | undefined;
|
|
141
|
+
};
|
|
142
|
+
$slots?: {
|
|
143
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
144
|
+
top?: (() => vue.VNodeChild) | undefined;
|
|
145
|
+
bottom?: (() => vue.VNodeChild) | undefined;
|
|
146
|
+
wrapper?: (() => vue.VNodeChild) | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
'v-slots'?: {
|
|
149
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
150
|
+
top?: false | (() => vue.VNodeChild) | undefined;
|
|
151
|
+
bottom?: false | (() => vue.VNodeChild) | undefined;
|
|
152
|
+
wrapper?: false | (() => vue.VNodeChild) | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
} & {
|
|
155
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
156
|
+
"v-slot:top"?: false | (() => vue.VNodeChild) | undefined;
|
|
157
|
+
"v-slot:bottom"?: false | (() => vue.VNodeChild) | undefined;
|
|
158
|
+
"v-slot:wrapper"?: false | (() => vue.VNodeChild) | undefined;
|
|
159
|
+
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
160
|
+
__isFragment?: undefined;
|
|
161
|
+
__isTeleport?: undefined;
|
|
162
|
+
__isSuspense?: undefined;
|
|
163
|
+
} & vue.ComponentOptionsBase<{
|
|
6
164
|
tag: string;
|
|
7
165
|
density: Density;
|
|
8
166
|
hover: boolean;
|
|
@@ -35,46 +193,43 @@ declare const VTable: vue.DefineComponent<{
|
|
|
35
193
|
"v-slot:top"?: false | (() => vue.VNodeChild) | undefined;
|
|
36
194
|
"v-slot:bottom"?: false | (() => vue.VNodeChild) | undefined;
|
|
37
195
|
"v-slot:wrapper"?: false | (() => vue.VNodeChild) | undefined;
|
|
38
|
-
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string,
|
|
196
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
39
197
|
tag: string;
|
|
40
198
|
density: Density;
|
|
41
199
|
hover: boolean;
|
|
42
200
|
fixedHeader: boolean;
|
|
43
201
|
fixedFooter: boolean;
|
|
44
|
-
} & {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
50
|
-
top?: (() => vue.VNodeChild) | undefined;
|
|
51
|
-
bottom?: (() => vue.VNodeChild) | undefined;
|
|
52
|
-
wrapper?: (() => vue.VNodeChild) | undefined;
|
|
202
|
+
}, {}, string> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
203
|
+
theme: StringConstructor;
|
|
204
|
+
tag: {
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
default: string;
|
|
53
207
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
208
|
+
density: {
|
|
209
|
+
type: vue.PropType<Density>;
|
|
210
|
+
default: string;
|
|
211
|
+
validator: (v: any) => boolean;
|
|
212
|
+
};
|
|
213
|
+
fixedHeader: BooleanConstructor;
|
|
214
|
+
fixedFooter: BooleanConstructor;
|
|
215
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
216
|
+
hover: BooleanConstructor;
|
|
217
|
+
}, vue.ExtractPropTypes<{
|
|
218
|
+
theme: StringConstructor;
|
|
219
|
+
tag: {
|
|
220
|
+
type: StringConstructor;
|
|
221
|
+
default: string;
|
|
222
|
+
};
|
|
223
|
+
density: {
|
|
224
|
+
type: vue.PropType<Density>;
|
|
225
|
+
default: string;
|
|
226
|
+
validator: (v: any) => boolean;
|
|
227
|
+
};
|
|
228
|
+
fixedHeader: BooleanConstructor;
|
|
229
|
+
fixedFooter: BooleanConstructor;
|
|
230
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
231
|
+
hover: BooleanConstructor;
|
|
232
|
+
}>>;
|
|
78
233
|
type VTable = InstanceType<typeof VTable>;
|
|
79
234
|
|
|
80
235
|
export { VTable };
|
|
@@ -4,41 +4,26 @@ import "./VTab.css";
|
|
|
4
4
|
|
|
5
5
|
// Components
|
|
6
6
|
import { VBtn } from "../VBtn/index.mjs"; // Composables
|
|
7
|
-
import { IconValue } from "../../composables/icons.mjs";
|
|
8
|
-
import { makeGroupItemProps } from "../../composables/group.mjs";
|
|
9
|
-
import { makeRouterProps } from "../../composables/router.mjs";
|
|
10
|
-
import { makeTagProps } from "../../composables/tag.mjs";
|
|
11
|
-
import { makeThemeProps } from "../../composables/theme.mjs";
|
|
12
7
|
import { useTextColor } from "../../composables/color.mjs"; // Utilities
|
|
13
8
|
import { computed, ref } from 'vue';
|
|
14
|
-
import { animate, genericComponent,
|
|
9
|
+
import { animate, genericComponent, omit, standardEasing, useRender } from "../../util/index.mjs";
|
|
10
|
+
import { makeVBtnProps } from "../VBtn/VBtn.mjs"; // Types
|
|
15
11
|
import { VTabsSymbol } from "./shared.mjs";
|
|
16
12
|
export const VTab = genericComponent()({
|
|
17
13
|
name: 'VTab',
|
|
18
14
|
props: {
|
|
19
15
|
fixed: Boolean,
|
|
20
|
-
icon: [Boolean, String, Function, Object],
|
|
21
|
-
prependIcon: IconValue,
|
|
22
|
-
appendIcon: IconValue,
|
|
23
|
-
stacked: Boolean,
|
|
24
16
|
title: String,
|
|
25
|
-
ripple: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: true
|
|
28
|
-
},
|
|
29
|
-
color: String,
|
|
30
17
|
sliderColor: String,
|
|
31
18
|
hideSlider: Boolean,
|
|
32
19
|
direction: {
|
|
33
20
|
type: String,
|
|
34
21
|
default: 'horizontal'
|
|
35
22
|
},
|
|
36
|
-
...
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}),
|
|
41
|
-
...makeThemeProps()
|
|
23
|
+
...omit(makeVBtnProps({
|
|
24
|
+
selectedClass: 'v-tab--selected',
|
|
25
|
+
variant: 'text'
|
|
26
|
+
}), ['active', 'block', 'flat', 'location', 'position', 'symbol'])
|
|
42
27
|
},
|
|
43
28
|
setup(props, _ref) {
|
|
44
29
|
let {
|
|
@@ -88,7 +73,7 @@ export const VTab = genericComponent()({
|
|
|
88
73
|
}
|
|
89
74
|
}
|
|
90
75
|
useRender(() => {
|
|
91
|
-
const [btnProps] =
|
|
76
|
+
const [btnProps] = VBtn.filterProps(props);
|
|
92
77
|
return _createVNode(VBtn, _mergeProps({
|
|
93
78
|
"_as": "VTab",
|
|
94
79
|
"symbol": VTabsSymbol,
|
|
@@ -100,7 +85,6 @@ export const VTab = genericComponent()({
|
|
|
100
85
|
"active": false,
|
|
101
86
|
"block": props.fixed,
|
|
102
87
|
"maxWidth": props.fixed ? 300 : undefined,
|
|
103
|
-
"variant": "text",
|
|
104
88
|
"rounded": 0
|
|
105
89
|
}, btnProps, attrs, {
|
|
106
90
|
"onGroup:selected": updateSlider
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTab.mjs","names":["VBtn","
|
|
1
|
+
{"version":3,"file":"VTab.mjs","names":["VBtn","useTextColor","computed","ref","animate","genericComponent","omit","standardEasing","useRender","makeVBtnProps","VTabsSymbol","VTab","name","props","fixed","Boolean","title","String","sliderColor","hideSlider","direction","type","default","selectedClass","variant","setup","slots","attrs","textColorClasses","sliderColorClasses","textColorStyles","sliderColorStyles","isHorizontal","isSelected","rootEl","sliderEl","updateSlider","value","prevEl","$el","parentElement","querySelector","nextEl","color","getComputedStyle","prevBox","getBoundingClientRect","nextBox","xy","XY","rightBottom","widthHeight","prevPos","nextPos","delta","origin","Math","sign","size","abs","scale","max","initialScale","sigma","backgroundColor","transform","transformOrigin","Array","fill","duration","easing","btnProps","filterProps","undefined"],"sources":["../../../src/components/VTabs/VTab.tsx"],"sourcesContent":["// Styles\nimport './VTab.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { useTextColor } from '@/composables/color'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { animate, genericComponent, omit, standardEasing, useRender } from '@/util'\nimport { makeVBtnProps } from '@/components/VBtn/VBtn'\n\n// Types\nimport type { PropType } from 'vue'\nimport { VTabsSymbol } from './shared'\n\nexport const VTab = genericComponent()({\n name: 'VTab',\n\n props: {\n fixed: Boolean,\n title: String,\n\n sliderColor: String,\n hideSlider: Boolean,\n\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n },\n\n ...omit(makeVBtnProps({\n selectedClass: 'v-tab--selected',\n variant: 'text' as const,\n }), [\n 'active',\n 'block',\n 'flat',\n 'location',\n 'position',\n 'symbol',\n ]),\n },\n\n setup (props, { slots, attrs }) {\n const { textColorClasses: sliderColorClasses, textColorStyles: sliderColorStyles } = useTextColor(props, 'sliderColor')\n const isHorizontal = computed(() => props.direction === 'horizontal')\n const isSelected = ref(false)\n\n const rootEl = ref<VBtn>()\n const sliderEl = ref<HTMLElement>()\n\n function updateSlider ({ value }: { value: boolean }) {\n isSelected.value = value\n\n if (value) {\n const prevEl: HTMLElement | undefined = rootEl.value?.$el.parentElement?.querySelector('.v-tab--selected .v-tab__slider')\n const nextEl = sliderEl.value\n\n if (!prevEl || !nextEl) return\n\n const color = getComputedStyle(prevEl).color\n\n const prevBox = prevEl.getBoundingClientRect()\n const nextBox = nextEl.getBoundingClientRect()\n\n const xy = isHorizontal.value ? 'x' : 'y'\n const XY = isHorizontal.value ? 'X' : 'Y'\n const rightBottom = isHorizontal.value ? 'right' : 'bottom'\n const widthHeight = isHorizontal.value ? 'width' : 'height'\n\n const prevPos = prevBox[xy]\n const nextPos = nextBox[xy]\n const delta = prevPos > nextPos\n ? prevBox[rightBottom] - nextBox[rightBottom]\n : prevBox[xy] - nextBox[xy]\n const origin =\n Math.sign(delta) > 0 ? (isHorizontal.value ? 'right' : 'bottom')\n : Math.sign(delta) < 0 ? (isHorizontal.value ? 'left' : 'top')\n : 'center'\n const size = Math.abs(delta) + (Math.sign(delta) < 0 ? prevBox[widthHeight] : nextBox[widthHeight])\n const scale = size / Math.max(prevBox[widthHeight], nextBox[widthHeight])\n const initialScale = prevBox[widthHeight] / nextBox[widthHeight]\n\n const sigma = 1.5\n animate(nextEl, {\n backgroundColor: [color, ''],\n transform: [\n `translate${XY}(${delta}px) scale${XY}(${initialScale})`,\n `translate${XY}(${delta / sigma}px) scale${XY}(${(scale - 1) / sigma + 1})`,\n '',\n ],\n transformOrigin: Array(3).fill(origin),\n }, {\n duration: 225,\n easing: standardEasing,\n })\n }\n }\n\n useRender(() => {\n const [btnProps] = VBtn.filterProps(props)\n\n return (\n <VBtn\n _as=\"VTab\"\n symbol={ VTabsSymbol }\n ref={ rootEl }\n class={[\n 'v-tab',\n ]}\n tabindex={ isSelected.value ? 0 : -1 }\n role=\"tab\"\n aria-selected={ String(isSelected.value) }\n active={ false }\n block={ props.fixed }\n maxWidth={ props.fixed ? 300 : undefined }\n rounded={ 0 }\n { ...btnProps }\n { ...attrs }\n onGroup:selected={ updateSlider }\n >\n { slots.default ? slots.default() : props.title }\n { !props.hideSlider && (\n <div\n ref={ sliderEl }\n class={[\n 'v-tab__slider',\n sliderColorClasses.value,\n ]}\n style={ sliderColorStyles.value }\n />\n )}\n </VBtn>\n )\n })\n\n return {}\n },\n})\n\nexport type VTab = InstanceType<typeof VTab>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,6BAEb;AAAA,SACSC,YAAY,uCAErB;AACA,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAC1BC,OAAO,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,cAAc,EAAEC,SAAS;AAAA,SAC1DC,aAAa,4BAEtB;AAAA,SAESC,WAAW;AAEpB,OAAO,MAAMC,IAAI,GAAGN,gBAAgB,EA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