@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
|
@@ -4,11 +4,18 @@
|
|
|
4
4
|
flex: 1 1 auto;
|
|
5
5
|
padding: 8px 16px;
|
|
6
6
|
position: relative;
|
|
7
|
+
border-color: rgba(var(--v-border-color), var(--v-border-opacity));
|
|
8
|
+
border-style: solid;
|
|
9
|
+
border-width: 0;
|
|
7
10
|
box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.12));
|
|
8
11
|
border-radius: 0;
|
|
9
12
|
background: rgb(var(--v-theme-surface));
|
|
10
13
|
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
11
14
|
}
|
|
15
|
+
.v-footer--border {
|
|
16
|
+
border-width: thin;
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
}
|
|
12
19
|
.v-footer--absolute {
|
|
13
20
|
position: absolute;
|
|
14
21
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
position: relative
|
|
10
10
|
|
|
11
11
|
// missing from variables
|
|
12
|
-
|
|
12
|
+
@include tools.border($footer-border...)
|
|
13
13
|
@include tools.elevation($footer-elevation)
|
|
14
14
|
@include tools.position($footer-positions)
|
|
15
15
|
@include tools.rounded($footer-border-radius)
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
// VFooter
|
|
5
5
|
$footer-background: rgb(var(--v-theme-surface)) !default;
|
|
6
|
+
$footer-border-color: settings.$border-color-root !default;
|
|
7
|
+
$footer-border-style: settings.$border-style-root !default;
|
|
8
|
+
$footer-border-thin-width: thin !default;
|
|
9
|
+
$footer-border-width: 0 !default;
|
|
6
10
|
$footer-border-radius: map.get(settings.$rounded, 0) !default;
|
|
7
11
|
$footer-color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)) !default;
|
|
8
12
|
$footer-flex: 1 1 auto !default;
|
|
@@ -13,6 +17,13 @@ $footer-positions: absolute fixed !default;
|
|
|
13
17
|
$footer-rounded-border-radius: settings.$border-radius-root !default;
|
|
14
18
|
|
|
15
19
|
// Lists
|
|
20
|
+
$footer-border: (
|
|
21
|
+
$footer-border-color,
|
|
22
|
+
$footer-border-style,
|
|
23
|
+
$footer-border-width,
|
|
24
|
+
$footer-border-thin-width
|
|
25
|
+
) !default;
|
|
26
|
+
|
|
16
27
|
$footer-theme: (
|
|
17
28
|
$footer-background,
|
|
18
29
|
$footer-color
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const VFooter: vue.DefineComponent<{
|
|
4
|
+
theme: StringConstructor;
|
|
5
|
+
tag: Omit<{
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
}, "type" | "default"> & {
|
|
9
|
+
type: vue.PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
rounded: {
|
|
13
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
name: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
order: {
|
|
20
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
absolute: BooleanConstructor;
|
|
24
|
+
elevation: {
|
|
25
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
26
|
+
validator(v: any): boolean;
|
|
27
|
+
};
|
|
28
|
+
border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
29
|
+
app: BooleanConstructor;
|
|
30
|
+
color: StringConstructor;
|
|
31
|
+
height: {
|
|
32
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
36
|
+
theme: StringConstructor;
|
|
37
|
+
tag: Omit<{
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
}, "type" | "default"> & {
|
|
41
|
+
type: vue.PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
rounded: {
|
|
45
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
name: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
order: {
|
|
52
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
absolute: BooleanConstructor;
|
|
56
|
+
elevation: {
|
|
57
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
58
|
+
validator(v: any): boolean;
|
|
59
|
+
};
|
|
60
|
+
border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
61
|
+
app: BooleanConstructor;
|
|
62
|
+
color: StringConstructor;
|
|
63
|
+
height: {
|
|
64
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
}>>, {
|
|
68
|
+
absolute: boolean;
|
|
69
|
+
height: string | number;
|
|
70
|
+
order: string | number;
|
|
71
|
+
tag: string;
|
|
72
|
+
rounded: string | number | boolean;
|
|
73
|
+
app: boolean;
|
|
74
|
+
}>;
|
|
75
|
+
|
|
76
|
+
export { VFooter };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
interface FieldValidationResult {
|
|
4
|
+
id: number | string;
|
|
5
|
+
errorMessages: string[];
|
|
6
|
+
}
|
|
7
|
+
interface FormValidationResult {
|
|
8
|
+
valid: boolean;
|
|
9
|
+
errors: FieldValidationResult[];
|
|
10
|
+
}
|
|
11
|
+
interface SubmitEventPromise extends SubmitEvent, Promise<FormValidationResult> {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const VForm: vue.DefineComponent<{
|
|
15
|
+
disabled: BooleanConstructor;
|
|
16
|
+
fastFail: BooleanConstructor;
|
|
17
|
+
lazyValidation: BooleanConstructor;
|
|
18
|
+
readonly: BooleanConstructor;
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: vue.PropType<boolean | null>;
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
errors: vue.Ref<{
|
|
25
|
+
id: string | number;
|
|
26
|
+
errorMessages: string[];
|
|
27
|
+
}[]>;
|
|
28
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
29
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
30
|
+
isValidating: vue.Ref<boolean>;
|
|
31
|
+
items: vue.Ref<{
|
|
32
|
+
id: string | number;
|
|
33
|
+
validate: () => Promise<string[]>;
|
|
34
|
+
reset: () => void;
|
|
35
|
+
resetValidation: () => void;
|
|
36
|
+
isValid: boolean | null;
|
|
37
|
+
errorMessages: string[];
|
|
38
|
+
}[]>;
|
|
39
|
+
validate: () => Promise<{
|
|
40
|
+
valid: boolean;
|
|
41
|
+
errors: {
|
|
42
|
+
id: string | number;
|
|
43
|
+
errorMessages: string[];
|
|
44
|
+
}[];
|
|
45
|
+
}>;
|
|
46
|
+
reset: () => void;
|
|
47
|
+
resetValidation: () => void;
|
|
48
|
+
} & {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
49
|
+
'update:modelValue': (val: boolean | null) => true;
|
|
50
|
+
submit: (e: SubmitEventPromise) => true;
|
|
51
|
+
}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
52
|
+
disabled: BooleanConstructor;
|
|
53
|
+
fastFail: BooleanConstructor;
|
|
54
|
+
lazyValidation: BooleanConstructor;
|
|
55
|
+
readonly: BooleanConstructor;
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: vue.PropType<boolean | null>;
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
}>> & {
|
|
61
|
+
onSubmit?: ((e: SubmitEventPromise) => any) | undefined;
|
|
62
|
+
"onUpdate:modelValue"?: ((val: boolean | null) => any) | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
readonly: boolean;
|
|
66
|
+
modelValue: boolean | null;
|
|
67
|
+
fastFail: boolean;
|
|
68
|
+
lazyValidation: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
declare type VForm = InstanceType<typeof VForm>;
|
|
71
|
+
|
|
72
|
+
export { VForm };
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const VContainer: vue.DefineComponent<{
|
|
5
|
+
tag: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
fluid: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
14
|
+
tag: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
fluid: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}>>, {
|
|
23
|
+
tag: string;
|
|
24
|
+
fluid: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
|
|
27
|
+
declare const VCol: vue.DefineComponent<{
|
|
28
|
+
tag: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
alignSelf: {
|
|
33
|
+
type: PropType<"auto" | "center" | "end" | "start" | "stretch" | "baseline">;
|
|
34
|
+
default: null;
|
|
35
|
+
validator: (str: any) => boolean;
|
|
36
|
+
};
|
|
37
|
+
order: {
|
|
38
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
39
|
+
default: null;
|
|
40
|
+
};
|
|
41
|
+
offset: {
|
|
42
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
45
|
+
cols: {
|
|
46
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
52
|
+
tag: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
alignSelf: {
|
|
57
|
+
type: PropType<"auto" | "center" | "end" | "start" | "stretch" | "baseline">;
|
|
58
|
+
default: null;
|
|
59
|
+
validator: (str: any) => boolean;
|
|
60
|
+
};
|
|
61
|
+
order: {
|
|
62
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
63
|
+
default: null;
|
|
64
|
+
};
|
|
65
|
+
offset: {
|
|
66
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
67
|
+
default: null;
|
|
68
|
+
};
|
|
69
|
+
cols: {
|
|
70
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
}>>, {
|
|
74
|
+
offset: string | number;
|
|
75
|
+
alignSelf: "auto" | "center" | "end" | "start" | "stretch" | "baseline";
|
|
76
|
+
order: string | number;
|
|
77
|
+
tag: string;
|
|
78
|
+
cols: string | number | boolean;
|
|
79
|
+
}>;
|
|
80
|
+
declare type VCol = InstanceType<typeof VCol>;
|
|
81
|
+
|
|
82
|
+
declare const VRow: vue.DefineComponent<{
|
|
83
|
+
tag: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
alignContent: {
|
|
88
|
+
type: PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | "stretch">;
|
|
89
|
+
default: null;
|
|
90
|
+
validator: (str: any) => boolean;
|
|
91
|
+
};
|
|
92
|
+
justify: {
|
|
93
|
+
type: PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | "stretch">;
|
|
94
|
+
default: null;
|
|
95
|
+
validator: (str: any) => boolean;
|
|
96
|
+
};
|
|
97
|
+
dense: BooleanConstructor;
|
|
98
|
+
noGutters: BooleanConstructor;
|
|
99
|
+
align: {
|
|
100
|
+
type: PropType<"center" | "end" | "start" | "stretch" | "baseline">;
|
|
101
|
+
default: null;
|
|
102
|
+
validator: (str: any) => boolean;
|
|
103
|
+
};
|
|
104
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
107
|
+
tag: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
alignContent: {
|
|
112
|
+
type: PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | "stretch">;
|
|
113
|
+
default: null;
|
|
114
|
+
validator: (str: any) => boolean;
|
|
115
|
+
};
|
|
116
|
+
justify: {
|
|
117
|
+
type: PropType<"center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | "stretch">;
|
|
118
|
+
default: null;
|
|
119
|
+
validator: (str: any) => boolean;
|
|
120
|
+
};
|
|
121
|
+
dense: BooleanConstructor;
|
|
122
|
+
noGutters: BooleanConstructor;
|
|
123
|
+
align: {
|
|
124
|
+
type: PropType<"center" | "end" | "start" | "stretch" | "baseline">;
|
|
125
|
+
default: null;
|
|
126
|
+
validator: (str: any) => boolean;
|
|
127
|
+
};
|
|
128
|
+
}>>, {
|
|
129
|
+
alignContent: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | "stretch";
|
|
130
|
+
tag: string;
|
|
131
|
+
dense: boolean;
|
|
132
|
+
justify: "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | "stretch";
|
|
133
|
+
align: "center" | "end" | "start" | "stretch" | "baseline";
|
|
134
|
+
noGutters: boolean;
|
|
135
|
+
}>;
|
|
136
|
+
declare type VRow = InstanceType<typeof VRow>;
|
|
137
|
+
|
|
138
|
+
declare const VSpacer: vue.DefineComponent<{
|
|
139
|
+
tag: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
146
|
+
tag: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
}>>, {
|
|
151
|
+
tag: string;
|
|
152
|
+
}>;
|
|
153
|
+
|
|
154
|
+
export { VCol, VContainer, VRow, VSpacer };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const VHover: vue.DefineComponent<{
|
|
4
|
+
closeDelay: (StringConstructor | NumberConstructor)[];
|
|
5
|
+
openDelay: (StringConstructor | NumberConstructor)[];
|
|
6
|
+
disabled: BooleanConstructor;
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
14
|
+
'update:modelValue': (value: boolean) => true;
|
|
15
|
+
}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
16
|
+
closeDelay: (StringConstructor | NumberConstructor)[];
|
|
17
|
+
openDelay: (StringConstructor | NumberConstructor)[];
|
|
18
|
+
disabled: BooleanConstructor;
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
}>> & {
|
|
24
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
modelValue: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
|
|
30
|
+
export { VHover };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType, JSXComponent } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare type IconValue = string | JSXComponent;
|
|
5
|
+
declare const IconValue: PropType<IconValue>;
|
|
6
|
+
declare const VComponentIcon: vue.DefineComponent<{
|
|
7
|
+
icon: {
|
|
8
|
+
type: PropType<IconValue>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
tag: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
16
|
+
icon: {
|
|
17
|
+
type: PropType<IconValue>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
tag: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
}>>, {}>;
|
|
25
|
+
declare const VSvgIcon: vue.DefineComponent<{
|
|
26
|
+
icon: {
|
|
27
|
+
type: PropType<IconValue>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
tag: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
35
|
+
icon: {
|
|
36
|
+
type: PropType<IconValue>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
tag: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
}>>, {}>;
|
|
44
|
+
declare const VLigatureIcon: vue.DefineComponent<{
|
|
45
|
+
icon: {
|
|
46
|
+
type: PropType<IconValue>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
tag: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
54
|
+
icon: {
|
|
55
|
+
type: PropType<IconValue>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
tag: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
}>>, {}>;
|
|
63
|
+
declare const VClassIcon: vue.DefineComponent<{
|
|
64
|
+
icon: {
|
|
65
|
+
type: PropType<IconValue>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
tag: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
73
|
+
icon: {
|
|
74
|
+
type: PropType<IconValue>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
tag: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
}>>, {}>;
|
|
82
|
+
|
|
83
|
+
declare const VIcon: vue.DefineComponent<{
|
|
84
|
+
theme: StringConstructor;
|
|
85
|
+
tag: Omit<{
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
}, "type" | "default"> & {
|
|
89
|
+
type: vue.PropType<string>;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
size: {
|
|
93
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
color: StringConstructor;
|
|
97
|
+
start: BooleanConstructor;
|
|
98
|
+
end: BooleanConstructor;
|
|
99
|
+
icon: vue.PropType<IconValue>;
|
|
100
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
101
|
+
theme: StringConstructor;
|
|
102
|
+
tag: Omit<{
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
}, "type" | "default"> & {
|
|
106
|
+
type: vue.PropType<string>;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
size: {
|
|
110
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
color: StringConstructor;
|
|
114
|
+
start: BooleanConstructor;
|
|
115
|
+
end: BooleanConstructor;
|
|
116
|
+
icon: vue.PropType<IconValue>;
|
|
117
|
+
}>>, {
|
|
118
|
+
end: boolean;
|
|
119
|
+
start: boolean;
|
|
120
|
+
size: string | number;
|
|
121
|
+
tag: string;
|
|
122
|
+
}>;
|
|
123
|
+
|
|
124
|
+
export { VClassIcon, VComponentIcon, VIcon, VLigatureIcon, VSvgIcon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { withDirectives as _withDirectives, resolveDirective as _resolveDirective, createVNode as _createVNode } from "vue";
|
|
1
|
+
import { withDirectives as _withDirectives, resolveDirective as _resolveDirective, Fragment as _Fragment, createVNode as _createVNode } from "vue";
|
|
2
2
|
import "./VImg.css"; // Components
|
|
3
3
|
|
|
4
4
|
import { VResponsive } from "../VResponsive/index.mjs"; // Directives
|
|
@@ -7,7 +7,7 @@ import intersect from "../../directives/intersect/index.mjs"; // Composables
|
|
|
7
7
|
|
|
8
8
|
import { makeTransitionProps, MaybeTransition } from "../../composables/transition.mjs"; // Utilities
|
|
9
9
|
|
|
10
|
-
import { computed,
|
|
10
|
+
import { computed, nextTick, onBeforeMount, ref, vShow, watch, withDirectives } from 'vue';
|
|
11
11
|
import { convertToUnit, defineComponent, SUPPORTS_INTERSECTION, useRender } from "../../util/index.mjs"; // Types
|
|
12
12
|
|
|
13
13
|
export const VImg = defineComponent({
|
|
@@ -156,20 +156,22 @@ export const VImg = defineComponent({
|
|
|
156
156
|
'v-img__img--contain': !props.cover
|
|
157
157
|
}));
|
|
158
158
|
|
|
159
|
-
const __image =
|
|
159
|
+
const __image = () => {
|
|
160
160
|
var _slots$sources;
|
|
161
161
|
|
|
162
|
-
if (!normalisedSrc.value.src || state.value === 'idle') return;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
162
|
+
if (!normalisedSrc.value.src || state.value === 'idle') return null;
|
|
163
|
+
|
|
164
|
+
const img = _createVNode("img", {
|
|
165
|
+
"class": ['v-img__img', containClasses.value],
|
|
166
|
+
"src": normalisedSrc.value.src,
|
|
167
|
+
"srcset": normalisedSrc.value.srcset,
|
|
168
|
+
"alt": "",
|
|
169
|
+
"sizes": props.sizes,
|
|
170
|
+
"ref": image,
|
|
171
|
+
"onLoad": onLoad,
|
|
172
|
+
"onError": onError
|
|
173
|
+
}, null);
|
|
174
|
+
|
|
173
175
|
const sources = (_slots$sources = slots.sources) == null ? void 0 : _slots$sources.call(slots);
|
|
174
176
|
return _createVNode(MaybeTransition, {
|
|
175
177
|
"transition": props.transition,
|
|
@@ -179,9 +181,9 @@ export const VImg = defineComponent({
|
|
|
179
181
|
"class": "v-img__picture"
|
|
180
182
|
}, [sources, img]) : img, [[vShow, state.value === 'loaded']])]
|
|
181
183
|
});
|
|
182
|
-
}
|
|
184
|
+
};
|
|
183
185
|
|
|
184
|
-
const __preloadImage =
|
|
186
|
+
const __preloadImage = () => _createVNode(MaybeTransition, {
|
|
185
187
|
"transition": props.transition
|
|
186
188
|
}, {
|
|
187
189
|
default: () => [normalisedSrc.value.lazySrc && state.value !== 'loaded' && _createVNode("img", {
|
|
@@ -189,10 +191,10 @@ export const VImg = defineComponent({
|
|
|
189
191
|
"src": normalisedSrc.value.lazySrc,
|
|
190
192
|
"alt": ""
|
|
191
193
|
}, null)]
|
|
192
|
-
})
|
|
194
|
+
});
|
|
193
195
|
|
|
194
|
-
const __placeholder =
|
|
195
|
-
if (!slots.placeholder) return;
|
|
196
|
+
const __placeholder = () => {
|
|
197
|
+
if (!slots.placeholder) return null;
|
|
196
198
|
return _createVNode(MaybeTransition, {
|
|
197
199
|
"transition": props.transition,
|
|
198
200
|
"appear": true
|
|
@@ -201,10 +203,10 @@ export const VImg = defineComponent({
|
|
|
201
203
|
"class": "v-img__placeholder"
|
|
202
204
|
}, [slots.placeholder()])]
|
|
203
205
|
});
|
|
204
|
-
}
|
|
206
|
+
};
|
|
205
207
|
|
|
206
|
-
const __error =
|
|
207
|
-
if (!slots.error) return;
|
|
208
|
+
const __error = () => {
|
|
209
|
+
if (!slots.error) return null;
|
|
208
210
|
return _createVNode(MaybeTransition, {
|
|
209
211
|
"transition": props.transition,
|
|
210
212
|
"appear": true
|
|
@@ -213,17 +215,17 @@ export const VImg = defineComponent({
|
|
|
213
215
|
"class": "v-img__error"
|
|
214
216
|
}, [slots.error()])]
|
|
215
217
|
});
|
|
216
|
-
}
|
|
218
|
+
};
|
|
217
219
|
|
|
218
|
-
const __gradient =
|
|
219
|
-
if (!props.gradient) return;
|
|
220
|
+
const __gradient = () => {
|
|
221
|
+
if (!props.gradient) return null;
|
|
220
222
|
return _createVNode("div", {
|
|
221
223
|
"class": "v-img__gradient",
|
|
222
224
|
"style": {
|
|
223
225
|
backgroundImage: `linear-gradient(${props.gradient})`
|
|
224
226
|
}
|
|
225
227
|
}, null);
|
|
226
|
-
}
|
|
228
|
+
};
|
|
227
229
|
|
|
228
230
|
const isBooted = ref(false);
|
|
229
231
|
{
|
|
@@ -250,7 +252,7 @@ export const VImg = defineComponent({
|
|
|
250
252
|
"aria-label": props.alt,
|
|
251
253
|
"role": props.alt ? 'img' : undefined
|
|
252
254
|
}, {
|
|
253
|
-
additional: () => [__image
|
|
255
|
+
additional: () => _createVNode(_Fragment, null, [_createVNode(__image, null, null), _createVNode(__preloadImage, null, null), _createVNode(__gradient, null, null), _createVNode(__placeholder, null, null), _createVNode(__error, null, null)]),
|
|
254
256
|
default: slots.default
|
|
255
257
|
}), [[_resolveDirective("intersect"), {
|
|
256
258
|
handler: init,
|