@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,175 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType, JSXComponent } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare function deepEqual(a: any, b: any): boolean;
|
|
5
|
+
declare type EventProp<T = (...args: any[]) => any> = T | T[];
|
|
6
|
+
declare const EventProp: PropType<EventProp<(...args: any[]) => any>>;
|
|
7
|
+
|
|
8
|
+
declare type ValidationResult = string | boolean;
|
|
9
|
+
declare type ValidationRule = ValidationResult | PromiseLike<ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike<ValidationResult>);
|
|
10
|
+
|
|
11
|
+
declare type IconValue = string | JSXComponent;
|
|
12
|
+
declare const IconValue: PropType<IconValue>;
|
|
13
|
+
|
|
14
|
+
declare const VSwitch: vue.DefineComponent<{
|
|
15
|
+
density: {
|
|
16
|
+
type: vue.PropType<"default" | "compact" | "comfortable" | null>;
|
|
17
|
+
default: string;
|
|
18
|
+
validator: (v: any) => boolean;
|
|
19
|
+
};
|
|
20
|
+
theme: StringConstructor;
|
|
21
|
+
color: StringConstructor;
|
|
22
|
+
disabled: BooleanConstructor;
|
|
23
|
+
error: BooleanConstructor;
|
|
24
|
+
id: StringConstructor;
|
|
25
|
+
inline: BooleanConstructor;
|
|
26
|
+
label: StringConstructor;
|
|
27
|
+
falseIcon: vue.PropType<IconValue>;
|
|
28
|
+
trueIcon: vue.PropType<IconValue>;
|
|
29
|
+
ripple: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
multiple: {
|
|
34
|
+
type: vue.PropType<boolean | null>;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
name: StringConstructor;
|
|
38
|
+
readonly: BooleanConstructor;
|
|
39
|
+
trueValue: null;
|
|
40
|
+
falseValue: null;
|
|
41
|
+
modelValue: null;
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
value: null;
|
|
44
|
+
valueComparator: {
|
|
45
|
+
type: vue.PropType<typeof deepEqual>;
|
|
46
|
+
default: typeof deepEqual;
|
|
47
|
+
};
|
|
48
|
+
errorMessages: {
|
|
49
|
+
type: vue.PropType<string | string[]>;
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
maxErrors: {
|
|
53
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
rules: {
|
|
57
|
+
type: vue.PropType<ValidationRule[]>;
|
|
58
|
+
default: () => never[];
|
|
59
|
+
};
|
|
60
|
+
validationValue: null;
|
|
61
|
+
appendIcon: vue.PropType<IconValue>;
|
|
62
|
+
prependIcon: vue.PropType<IconValue>;
|
|
63
|
+
hideDetails: vue.PropType<boolean | "auto">;
|
|
64
|
+
messages: {
|
|
65
|
+
type: vue.PropType<string | string[]>;
|
|
66
|
+
default: () => never[];
|
|
67
|
+
};
|
|
68
|
+
direction: {
|
|
69
|
+
type: vue.PropType<"horizontal" | "vertical">;
|
|
70
|
+
default: string;
|
|
71
|
+
validator: (v: any) => boolean;
|
|
72
|
+
};
|
|
73
|
+
'onClick:prepend': vue.PropType<EventProp<(...args: any[]) => any>>;
|
|
74
|
+
'onClick:append': vue.PropType<EventProp<(...args: any[]) => any>>;
|
|
75
|
+
indeterminate: BooleanConstructor;
|
|
76
|
+
inset: BooleanConstructor;
|
|
77
|
+
flat: BooleanConstructor;
|
|
78
|
+
loading: {
|
|
79
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
83
|
+
'update:indeterminate': (val: boolean) => true;
|
|
84
|
+
}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
85
|
+
density: {
|
|
86
|
+
type: vue.PropType<"default" | "compact" | "comfortable" | null>;
|
|
87
|
+
default: string;
|
|
88
|
+
validator: (v: any) => boolean;
|
|
89
|
+
};
|
|
90
|
+
theme: StringConstructor;
|
|
91
|
+
color: StringConstructor;
|
|
92
|
+
disabled: BooleanConstructor;
|
|
93
|
+
error: BooleanConstructor;
|
|
94
|
+
id: StringConstructor;
|
|
95
|
+
inline: BooleanConstructor;
|
|
96
|
+
label: StringConstructor;
|
|
97
|
+
falseIcon: vue.PropType<IconValue>;
|
|
98
|
+
trueIcon: vue.PropType<IconValue>;
|
|
99
|
+
ripple: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
multiple: {
|
|
104
|
+
type: vue.PropType<boolean | null>;
|
|
105
|
+
default: null;
|
|
106
|
+
};
|
|
107
|
+
name: StringConstructor;
|
|
108
|
+
readonly: BooleanConstructor;
|
|
109
|
+
trueValue: null;
|
|
110
|
+
falseValue: null;
|
|
111
|
+
modelValue: null;
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
value: null;
|
|
114
|
+
valueComparator: {
|
|
115
|
+
type: vue.PropType<typeof deepEqual>;
|
|
116
|
+
default: typeof deepEqual;
|
|
117
|
+
};
|
|
118
|
+
errorMessages: {
|
|
119
|
+
type: vue.PropType<string | string[]>;
|
|
120
|
+
default: () => never[];
|
|
121
|
+
};
|
|
122
|
+
maxErrors: {
|
|
123
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
124
|
+
default: number;
|
|
125
|
+
};
|
|
126
|
+
rules: {
|
|
127
|
+
type: vue.PropType<ValidationRule[]>;
|
|
128
|
+
default: () => never[];
|
|
129
|
+
};
|
|
130
|
+
validationValue: null;
|
|
131
|
+
appendIcon: vue.PropType<IconValue>;
|
|
132
|
+
prependIcon: vue.PropType<IconValue>;
|
|
133
|
+
hideDetails: vue.PropType<boolean | "auto">;
|
|
134
|
+
messages: {
|
|
135
|
+
type: vue.PropType<string | string[]>;
|
|
136
|
+
default: () => never[];
|
|
137
|
+
};
|
|
138
|
+
direction: {
|
|
139
|
+
type: vue.PropType<"horizontal" | "vertical">;
|
|
140
|
+
default: string;
|
|
141
|
+
validator: (v: any) => boolean;
|
|
142
|
+
};
|
|
143
|
+
'onClick:prepend': vue.PropType<EventProp<(...args: any[]) => any>>;
|
|
144
|
+
'onClick:append': vue.PropType<EventProp<(...args: any[]) => any>>;
|
|
145
|
+
indeterminate: BooleanConstructor;
|
|
146
|
+
inset: BooleanConstructor;
|
|
147
|
+
flat: BooleanConstructor;
|
|
148
|
+
loading: {
|
|
149
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
}>> & {
|
|
153
|
+
"onUpdate:indeterminate"?: ((val: boolean) => any) | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
flat: boolean;
|
|
156
|
+
inline: boolean;
|
|
157
|
+
error: boolean;
|
|
158
|
+
direction: "horizontal" | "vertical";
|
|
159
|
+
inset: boolean;
|
|
160
|
+
loading: string | boolean;
|
|
161
|
+
disabled: boolean;
|
|
162
|
+
multiple: boolean | null;
|
|
163
|
+
readonly: boolean;
|
|
164
|
+
indeterminate: boolean;
|
|
165
|
+
messages: string | string[];
|
|
166
|
+
density: "default" | "compact" | "comfortable" | null;
|
|
167
|
+
ripple: boolean;
|
|
168
|
+
errorMessages: string | string[];
|
|
169
|
+
maxErrors: string | number;
|
|
170
|
+
rules: ValidationRule[];
|
|
171
|
+
valueComparator: typeof deepEqual;
|
|
172
|
+
}>;
|
|
173
|
+
declare type VSwitch = InstanceType<typeof VSwitch>;
|
|
174
|
+
|
|
175
|
+
export { VSwitch };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const VSystemBar: vue.DefineComponent<{
|
|
4
|
+
theme: StringConstructor;
|
|
5
|
+
tag: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
rounded: {
|
|
10
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
name: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
order: {
|
|
17
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
absolute: BooleanConstructor;
|
|
21
|
+
elevation: {
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
validator(v: any): boolean;
|
|
24
|
+
};
|
|
25
|
+
color: StringConstructor;
|
|
26
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
27
|
+
window: BooleanConstructor;
|
|
28
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
29
|
+
theme: StringConstructor;
|
|
30
|
+
tag: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
rounded: {
|
|
35
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
name: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
41
|
+
order: {
|
|
42
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
absolute: BooleanConstructor;
|
|
46
|
+
elevation: {
|
|
47
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
48
|
+
validator(v: any): boolean;
|
|
49
|
+
};
|
|
50
|
+
color: StringConstructor;
|
|
51
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
52
|
+
window: BooleanConstructor;
|
|
53
|
+
}>>, {
|
|
54
|
+
window: boolean;
|
|
55
|
+
absolute: boolean;
|
|
56
|
+
order: string | number;
|
|
57
|
+
tag: string;
|
|
58
|
+
rounded: string | number | boolean;
|
|
59
|
+
}>;
|
|
60
|
+
|
|
61
|
+
export { VSystemBar };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const VTable: vue.DefineComponent<{
|
|
4
|
+
theme: StringConstructor;
|
|
5
|
+
tag: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
density: {
|
|
10
|
+
type: vue.PropType<"default" | "compact" | "comfortable" | null>;
|
|
11
|
+
default: string;
|
|
12
|
+
validator: (v: any) => boolean;
|
|
13
|
+
};
|
|
14
|
+
fixedHeader: BooleanConstructor;
|
|
15
|
+
fixedFooter: BooleanConstructor;
|
|
16
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
17
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
18
|
+
theme: StringConstructor;
|
|
19
|
+
tag: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
density: {
|
|
24
|
+
type: vue.PropType<"default" | "compact" | "comfortable" | null>;
|
|
25
|
+
default: string;
|
|
26
|
+
validator: (v: any) => boolean;
|
|
27
|
+
};
|
|
28
|
+
fixedHeader: BooleanConstructor;
|
|
29
|
+
fixedFooter: BooleanConstructor;
|
|
30
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
31
|
+
}>>, {
|
|
32
|
+
tag: string;
|
|
33
|
+
density: "default" | "compact" | "comfortable" | null;
|
|
34
|
+
fixedHeader: boolean;
|
|
35
|
+
fixedFooter: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
declare type VTable = InstanceType<typeof VTable>;
|
|
38
|
+
|
|
39
|
+
export { VTable };
|
|
@@ -105,6 +105,7 @@ export const VTab = defineComponent({
|
|
|
105
105
|
"tabindex": isSelected.value ? 0 : -1,
|
|
106
106
|
"role": "tab",
|
|
107
107
|
"aria-selected": String(isSelected.value),
|
|
108
|
+
"active": false,
|
|
108
109
|
"block": props.fixed,
|
|
109
110
|
"maxWidth": props.fixed ? 300 : undefined,
|
|
110
111
|
"variant": "text",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTab.mjs","names":["VBtn","IconValue","makeGroupItemProps","makeRouterProps","makeTagProps","makeThemeProps","useTextColor","computed","ref","animate","defineComponent","pick","standardEasing","useRender","VTabsSymbol","VTab","name","props","fixed","Boolean","icon","String","Function","Object","prependIcon","appendIcon","stacked","title","ripple","type","default","color","sliderColor","hideSlider","direction","selectedClass","setup","slots","attrs","textColorClasses","sliderColorClasses","textColorStyles","sliderColorStyles","isHorizontal","isSelected","rootEl","sliderEl","updateSlider","value","prevEl","$el","parentElement","querySelector","nextEl","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","undefined"],"sources":["../../../src/components/VTabs/VTab.tsx"],"sourcesContent":["// Styles\nimport './VTab.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { makeGroupItemProps } from '@/composables/group'\nimport { makeRouterProps } from '@/composables/router'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps } from '@/composables/theme'\nimport { useTextColor } from '@/composables/color'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { animate, defineComponent, pick, standardEasing, useRender } from '@/util'\n\n// Types\nimport { VTabsSymbol } from './shared'\nimport type { PropType } from 'vue'\n\nexport const VTab = defineComponent({\n name: 'VTab',\n\n props: {\n fixed: Boolean,\n icon: [Boolean, String, Function, Object] as PropType<boolean | IconValue>,\n prependIcon: IconValue,\n appendIcon: IconValue,\n\n stacked: Boolean,\n title: String,\n\n ripple: {\n type: Boolean,\n default: true,\n },\n color: String,\n sliderColor: String,\n hideSlider: Boolean,\n\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n },\n\n ...makeTagProps(),\n ...makeRouterProps(),\n ...makeGroupItemProps({\n selectedClass: 'v-tab--selected',\n }),\n ...makeThemeProps(),\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] = pick(props, [\n 'href',\n 'to',\n 'replace',\n 'icon',\n 'stacked',\n 'prependIcon',\n 'appendIcon',\n 'ripple',\n 'theme',\n 'disabled',\n 'selectedClass',\n 'value',\n 'color',\n ])\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 block={ props.fixed }\n maxWidth={ props.fixed ? 300 : undefined }\n variant=\"text\"\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,oB,CAEA;;SACSA,I,6BAET;;SACSC,S;SACAC,kB;SACAC,e;SACAC,Y;SACAC,c;SACAC,Y,uCAET;;AACA,SAASC,QAAT,EAAmBC,GAAnB,QAA8B,KAA9B;SACSC,O,EAASC,e,EAAiBC,I,EAAMC,c,EAAgBC,S,gCAEzD;;SACSC,W;AAGT,OAAO,MAAMC,IAAI,GAAGL,eAAe,CAAC;EAClCM,IAAI,EAAE,MAD4B;EAGlCC,KAAK,EAAE;IACLC,KAAK,EAAEC,OADF;IAELC,IAAI,EAAE,CAACD,OAAD,EAAUE,MAAV,EAAkBC,QAAlB,EAA4BC,MAA5B,CAFD;IAGLC,WAAW,EAAEvB,SAHR;IAILwB,UAAU,EAAExB,SAJP;IAMLyB,OAAO,EAAEP,OANJ;IAOLQ,KAAK,EAAEN,MAPF;IASLO,MAAM,EAAE;MACNC,IAAI,EAAEV,OADA;MAENW,OAAO,EAAE;IAFH,CATH;IAaLC,KAAK,EA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CAACI,WAAD,CAAnD;QAEA,MAAMY,KAAK,GAAG,GAAd;QACAhE,OAAO,CAAC4C,MAAD,EAAS;UACdqB,eAAe,EAAE,CAAC3C,KAAD,EAAQ,EAAR,CADH;UAEd4C,SAAS,EAAE,CACR,YAAWhB,EAAG,IAAGK,KAAM,YAAWL,EAAG,IAAGa,YAAa,GAD7C,EAER,YAAWb,EAAG,IAAGK,KAAK,GAAGS,KAAM,YAAWd,EAAG,IAAG,CAACW,KAAK,GAAG,CAAT,IAAcG,KAAd,GAAsB,CAAE,GAFhE,EAGT,EAHS,CAFG;UAOdG,eAAe,EAAEC,KAAK,CAAC,CAAD,CAAL,CAASC,IAAT,CAAcb,MAAd;QAPH,CAAT,EAQJ;UACDc,QAAQ,EAAE,GADT;UAEDC,MAAM,EAAEpE;QAFP,CARI,CAAP;MAYD;IACF;;IAEDC,SAAS,CAAC,MAAM;MACd,MAAM,CAACoE,QAAD,IAAatE,IAAI,CAACM,KAAD,EAAQ,CAC7B,MAD6B,EAE7B,IAF6B,EAG7B,SAH6B,EAI7B,MAJ6B,EAK7B,SAL6B,EAM7B,aAN6B,EAO7B,YAP6B,EAQ7B,QAR6B,EAS7B,OAT6B,EAU7B,UAV6B,EAW7B,eAX6B,EAY7B,OAZ6B,EAa7B,OAb6B,CAAR,CAAvB;MAgBA;QAAA,OAEQ,MAFR;QAAA,UAGaH,WAHb;QAAA,OAIU+B,MAJV;QAAA,SAKW,CACL,OADK,CALX;QAAA,YAQeD,UAAU,CAACI,KAAX,GAAmB,CAAnB,GAAuB,CAAC,CARvC;QAAA,QASS,KATT;QAAA,iBAUoB3B,MAAM,CAACuB,UAAU,CAACI,KAAZ,CAV1B;QAAA,
|
|
1
|
+
{"version":3,"file":"VTab.mjs","names":["VBtn","IconValue","makeGroupItemProps","makeRouterProps","makeTagProps","makeThemeProps","useTextColor","computed","ref","animate","defineComponent","pick","standardEasing","useRender","VTabsSymbol","VTab","name","props","fixed","Boolean","icon","String","Function","Object","prependIcon","appendIcon","stacked","title","ripple","type","default","color","sliderColor","hideSlider","direction","selectedClass","setup","slots","attrs","textColorClasses","sliderColorClasses","textColorStyles","sliderColorStyles","isHorizontal","isSelected","rootEl","sliderEl","updateSlider","value","prevEl","$el","parentElement","querySelector","nextEl","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","undefined"],"sources":["../../../src/components/VTabs/VTab.tsx"],"sourcesContent":["// Styles\nimport './VTab.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { makeGroupItemProps } from '@/composables/group'\nimport { makeRouterProps } from '@/composables/router'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps } from '@/composables/theme'\nimport { useTextColor } from '@/composables/color'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { animate, defineComponent, pick, standardEasing, useRender } from '@/util'\n\n// Types\nimport { VTabsSymbol } from './shared'\nimport type { PropType } from 'vue'\n\nexport const VTab = defineComponent({\n name: 'VTab',\n\n props: {\n fixed: Boolean,\n icon: [Boolean, String, Function, Object] as PropType<boolean | IconValue>,\n prependIcon: IconValue,\n appendIcon: IconValue,\n\n stacked: Boolean,\n title: String,\n\n ripple: {\n type: Boolean,\n default: true,\n },\n color: String,\n sliderColor: String,\n hideSlider: Boolean,\n\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n },\n\n ...makeTagProps(),\n ...makeRouterProps(),\n ...makeGroupItemProps({\n selectedClass: 'v-tab--selected',\n }),\n ...makeThemeProps(),\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] = pick(props, [\n 'href',\n 'to',\n 'replace',\n 'icon',\n 'stacked',\n 'prependIcon',\n 'appendIcon',\n 'ripple',\n 'theme',\n 'disabled',\n 'selectedClass',\n 'value',\n 'color',\n ])\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 variant=\"text\"\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,oB,CAEA;;SACSA,I,6BAET;;SACSC,S;SACAC,kB;SACAC,e;SACAC,Y;SACAC,c;SACAC,Y,uCAET;;AACA,SAASC,QAAT,EAAmBC,GAAnB,QAA8B,KAA9B;SACSC,O,EAASC,e,EAAiBC,I,EAAMC,c,EAAgBC,S,gCAEzD;;SACSC,W;AAGT,OAAO,MAAMC,IAAI,GAAGL,eAAe,CAAC;EAClCM,IAAI,EAAE,MAD4B;EAGlCC,KAAK,EAAE;IACLC,KAAK,EAAEC,OADF;IAELC,IAAI,EAAE,CAACD,OAAD,EAAUE,MAAV,EAAkBC,QAAlB,EAA4BC,MAA5B,CAFD;IAGLC,WAAW,EAAEvB,SAHR;IAILwB,UAAU,EAAExB,SAJP;IAMLyB,OAAO,EAAEP,OANJ;IAOLQ,KAAK,EAAEN,MAPF;IASLO,MAAM,EAAE;MACNC,IAAI,EAAEV,OADA;MAENW,OAAO,EAAE;IAFH,CATH;IAaLC,KAAK,EAAEV,MAbF;IAcLW,WAAW,EAAEX,MAdR;IAeLY,UAAU,EAAEd,OAfP;IAiBLe,SAAS,EAAE;MACTL,IAAI,EAAER,MADG;MAETS,OAAO,EAAE;IAFA,CAjBN;IAsBL,GAAG1B,YAAY,EAtBV;IAuBL,GAAGD,eAAe,EAvBb;IAwBL,GAAGD,kBAAkB,CAAC;MACpBiC,aAAa,EAAE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M;QAP5B,QArBN;MAAA;IAiCD,CAlDQ,CAAT;IAoDA,OAAO,EAAP;EACD;;AA9IiC,CAAD,CAA5B"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType, JSXComponent } from 'vue';
|
|
3
|
+
import * as vue_router from 'vue-router';
|
|
4
|
+
|
|
5
|
+
declare type TabItem = string | Record<string, any>;
|
|
6
|
+
declare const VTabs: vue.DefineComponent<{
|
|
7
|
+
tag: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
density: {
|
|
12
|
+
type: PropType<"default" | "compact" | "comfortable" | null>;
|
|
13
|
+
default: string;
|
|
14
|
+
validator: (v: any) => boolean;
|
|
15
|
+
};
|
|
16
|
+
alignWithTitle: BooleanConstructor;
|
|
17
|
+
color: StringConstructor;
|
|
18
|
+
direction: {
|
|
19
|
+
type: PropType<"horizontal" | "vertical">;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
fixedTabs: BooleanConstructor;
|
|
23
|
+
items: {
|
|
24
|
+
type: PropType<TabItem[]>;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
stacked: BooleanConstructor;
|
|
28
|
+
bgColor: StringConstructor;
|
|
29
|
+
centered: BooleanConstructor;
|
|
30
|
+
grow: BooleanConstructor;
|
|
31
|
+
height: {
|
|
32
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
hideSlider: BooleanConstructor;
|
|
36
|
+
optional: BooleanConstructor;
|
|
37
|
+
end: BooleanConstructor;
|
|
38
|
+
sliderColor: StringConstructor;
|
|
39
|
+
modelValue: null;
|
|
40
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
41
|
+
'update:modelValue': (v: unknown) => true;
|
|
42
|
+
}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
43
|
+
tag: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
density: {
|
|
48
|
+
type: PropType<"default" | "compact" | "comfortable" | null>;
|
|
49
|
+
default: string;
|
|
50
|
+
validator: (v: any) => boolean;
|
|
51
|
+
};
|
|
52
|
+
alignWithTitle: BooleanConstructor;
|
|
53
|
+
color: StringConstructor;
|
|
54
|
+
direction: {
|
|
55
|
+
type: PropType<"horizontal" | "vertical">;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
fixedTabs: BooleanConstructor;
|
|
59
|
+
items: {
|
|
60
|
+
type: PropType<TabItem[]>;
|
|
61
|
+
default: () => never[];
|
|
62
|
+
};
|
|
63
|
+
stacked: BooleanConstructor;
|
|
64
|
+
bgColor: StringConstructor;
|
|
65
|
+
centered: BooleanConstructor;
|
|
66
|
+
grow: BooleanConstructor;
|
|
67
|
+
height: {
|
|
68
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
hideSlider: BooleanConstructor;
|
|
72
|
+
optional: BooleanConstructor;
|
|
73
|
+
end: BooleanConstructor;
|
|
74
|
+
sliderColor: StringConstructor;
|
|
75
|
+
modelValue: null;
|
|
76
|
+
}>> & {
|
|
77
|
+
"onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
optional: boolean;
|
|
80
|
+
height: string | number;
|
|
81
|
+
end: boolean;
|
|
82
|
+
direction: "horizontal" | "vertical";
|
|
83
|
+
tag: string;
|
|
84
|
+
items: TabItem[];
|
|
85
|
+
density: "default" | "compact" | "comfortable" | null;
|
|
86
|
+
centered: boolean;
|
|
87
|
+
stacked: boolean;
|
|
88
|
+
grow: boolean;
|
|
89
|
+
hideSlider: boolean;
|
|
90
|
+
alignWithTitle: boolean;
|
|
91
|
+
fixedTabs: boolean;
|
|
92
|
+
}>;
|
|
93
|
+
declare type VTabs = InstanceType<typeof VTabs>;
|
|
94
|
+
|
|
95
|
+
declare type IconValue = string | JSXComponent;
|
|
96
|
+
declare const IconValue: PropType<IconValue>;
|
|
97
|
+
|
|
98
|
+
declare const VTab: vue.DefineComponent<{
|
|
99
|
+
theme: StringConstructor;
|
|
100
|
+
value: null;
|
|
101
|
+
disabled: BooleanConstructor;
|
|
102
|
+
selectedClass: {
|
|
103
|
+
type: PropType<string>;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
href: StringConstructor;
|
|
107
|
+
replace: BooleanConstructor;
|
|
108
|
+
to: PropType<vue_router.RouteLocationRaw>;
|
|
109
|
+
exact: BooleanConstructor;
|
|
110
|
+
tag: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
fixed: BooleanConstructor;
|
|
115
|
+
icon: PropType<boolean | IconValue>;
|
|
116
|
+
prependIcon: PropType<IconValue>;
|
|
117
|
+
appendIcon: PropType<IconValue>;
|
|
118
|
+
stacked: BooleanConstructor;
|
|
119
|
+
title: StringConstructor;
|
|
120
|
+
ripple: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
color: StringConstructor;
|
|
125
|
+
sliderColor: StringConstructor;
|
|
126
|
+
hideSlider: BooleanConstructor;
|
|
127
|
+
direction: {
|
|
128
|
+
type: PropType<"horizontal" | "vertical">;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
132
|
+
theme: StringConstructor;
|
|
133
|
+
value: null;
|
|
134
|
+
disabled: BooleanConstructor;
|
|
135
|
+
selectedClass: {
|
|
136
|
+
type: PropType<string>;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
href: StringConstructor;
|
|
140
|
+
replace: BooleanConstructor;
|
|
141
|
+
to: PropType<vue_router.RouteLocationRaw>;
|
|
142
|
+
exact: BooleanConstructor;
|
|
143
|
+
tag: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
fixed: BooleanConstructor;
|
|
148
|
+
icon: PropType<boolean | IconValue>;
|
|
149
|
+
prependIcon: PropType<IconValue>;
|
|
150
|
+
appendIcon: PropType<IconValue>;
|
|
151
|
+
stacked: BooleanConstructor;
|
|
152
|
+
title: StringConstructor;
|
|
153
|
+
ripple: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
color: StringConstructor;
|
|
158
|
+
sliderColor: StringConstructor;
|
|
159
|
+
hideSlider: BooleanConstructor;
|
|
160
|
+
direction: {
|
|
161
|
+
type: PropType<"horizontal" | "vertical">;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
}>>, {
|
|
165
|
+
replace: boolean;
|
|
166
|
+
fixed: boolean;
|
|
167
|
+
exact: boolean;
|
|
168
|
+
direction: "horizontal" | "vertical";
|
|
169
|
+
disabled: boolean;
|
|
170
|
+
tag: string;
|
|
171
|
+
selectedClass: string;
|
|
172
|
+
stacked: boolean;
|
|
173
|
+
ripple: boolean;
|
|
174
|
+
hideSlider: boolean;
|
|
175
|
+
}>;
|
|
176
|
+
declare type VTab = InstanceType<typeof VTab>;
|
|
177
|
+
|
|
178
|
+
export { VTab, VTabs };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* region BLOCK */
|
|
2
2
|
.v-text-field input {
|
|
3
3
|
color: inherit;
|
|
4
|
+
opacity: 0;
|
|
4
5
|
flex: 1;
|
|
5
6
|
transition: 0.15s opacity cubic-bezier(0.4, 0, 0.2, 1);
|
|
6
7
|
min-width: 0;
|
|
@@ -26,9 +27,7 @@
|
|
|
26
27
|
padding-inline-start: 16px;
|
|
27
28
|
padding-inline-end: 16px;
|
|
28
29
|
}
|
|
29
|
-
.v-text-field .v-field--
|
|
30
|
-
opacity: 0;
|
|
31
|
-
}
|
|
30
|
+
.v-text-field .v-field--no-label input,
|
|
32
31
|
.v-text-field .v-field--active input {
|
|
33
32
|
opacity: 1;
|
|
34
33
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
.v-text-field
|
|
7
7
|
input
|
|
8
8
|
color: inherit
|
|
9
|
+
opacity: 0
|
|
9
10
|
flex: $text-field-input-flex
|
|
10
11
|
transition: $text-field-input-transition
|
|
11
12
|
min-width: 0
|
|
@@ -32,10 +33,7 @@
|
|
|
32
33
|
padding-inline-start: $text-field-details-padding-inline
|
|
33
34
|
padding-inline-end: $text-field-details-padding-inline
|
|
34
35
|
|
|
35
|
-
.v-field--
|
|
36
|
-
input
|
|
37
|
-
opacity: 0
|
|
38
|
-
|
|
36
|
+
.v-field--no-label,
|
|
39
37
|
.v-field--active
|
|
40
38
|
input
|
|
41
39
|
opacity: 1
|