@vuetify/nightly 3.4.11-dev.2024-01-19 → 3.5.0-dev.2024-01-20
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 +2 -29
- package/dist/json/attributes.json +6 -6
- package/dist/json/importMap.json +116 -116
- package/dist/json/web-types.json +42 -7
- package/dist/vuetify-labs.css +2802 -2782
- package/dist/vuetify-labs.d.ts +61 -8
- package/dist/vuetify-labs.esm.js +153 -22
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +153 -21
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +757 -737
- package/dist/vuetify.d.ts +97 -44
- package/dist/vuetify.esm.js +153 -22
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +153 -21
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +359 -337
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.d.mts +11 -1
- package/lib/blueprints/md1.d.mts +11 -1
- package/lib/blueprints/md2.d.mts +11 -1
- package/lib/blueprints/md3.d.mts +11 -1
- package/lib/components/VSwitch/VSwitch.css +22 -2
- package/lib/components/VSwitch/VSwitch.mjs +26 -3
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/VSwitch.sass +20 -2
- package/lib/components/VSwitch/index.d.mts +37 -6
- package/lib/components/index.d.mts +37 -6
- package/lib/composables/goto.mjs +105 -0
- package/lib/composables/goto.mjs.map +1 -0
- package/lib/composables/index.mjs +1 -0
- package/lib/composables/index.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +6 -2
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.mts +60 -38
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goto.mjs","names":["inject","mergeDeep","refElement","GoToSymbol","Symbol","for","genDefaults","container","undefined","duration","layout","offset","easing","patterns","linear","t","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","getContainer","el","getTarget","document","scrollingElement","body","querySelector","getOffset","target","horizontal","rtl","totalOffset","offsetLeft","offsetTop","offsetParent","createGoTo","options","locale","isRtl","scrollTo","_target","_options","goTo","value","HTMLElement","parentElement","ease","TypeError","targetLocation","styles","window","getComputedStyle","layoutOffset","getPropertyValue","parseInt","startLocation","scrollLeft","scrollTop","Promise","resolve","startTime","performance","now","requestAnimationFrame","step","currentTime","timeElapsed","progress","Math","abs","min","location","floor","clientSize","reachEnd","documentElement","clientHeight","scrollHeight","clientWidth","scrollWidth","useGoTo","arguments","length","Error","go"],"sources":["../../src/composables/goto.ts"],"sourcesContent":["// Utilities\nimport { inject } from 'vue'\nimport { mergeDeep, refElement } from '@/util'\n\n// Types\nimport type { ComponentPublicInstance, InjectionKey, Ref } from 'vue'\nimport type { LocaleInstance, RtlInstance } from './locale'\n\nexport interface GoToInstance {\n rtl: Ref<boolean>\n options: GoToOptions\n}\n\nexport interface GoToOptions {\n container: ComponentPublicInstance | HTMLElement | string\n duration: number\n layout: boolean\n offset: number\n easing: string | ((t: number) => number)\n patterns: Record<string, (t: number) => number>\n}\n\nexport const GoToSymbol: InjectionKey<GoToInstance> = Symbol.for('vuetify:goto')\n\nfunction genDefaults () {\n return {\n container: undefined,\n duration: 300,\n layout: false,\n offset: 0,\n easing: 'easeInOutCubic',\n patterns: {\n linear: (t: number) => t,\n easeInQuad: (t: number) => t ** 2,\n easeOutQuad: (t: number) => t * (2 - t),\n easeInOutQuad: (t: number) => (t < 0.5 ? 2 * t ** 2 : -1 + (4 - 2 * t) * t),\n easeInCubic: (t: number) => t ** 3,\n easeOutCubic: (t: number) => --t ** 3 + 1,\n easeInOutCubic: (t: number) => t < 0.5 ? 4 * t ** 3 : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1,\n easeInQuart: (t: number) => t ** 4,\n easeOutQuart: (t: number) => 1 - --t ** 4,\n easeInOutQuart: (t: number) => (t < 0.5 ? 8 * t ** 4 : 1 - 8 * --t ** 4),\n easeInQuint: (t: number) => t ** 5,\n easeOutQuint: (t: number) => 1 + --t ** 5,\n easeInOutQuint: (t: number) => t < 0.5 ? 16 * t ** 5 : 1 + 16 * --t ** 5,\n },\n }\n}\n\nfunction getContainer (el?: ComponentPublicInstance | HTMLElement | string) {\n return getTarget(el) ?? (document.scrollingElement || document.body) as HTMLElement\n}\n\nfunction getTarget (el: ComponentPublicInstance | HTMLElement | string | undefined) {\n return (typeof el === 'string') ? document.querySelector<HTMLElement>(el) : refElement(el)\n}\n\nfunction getOffset (target: any, horizontal?: boolean, rtl?: boolean): number {\n if (typeof target === 'number') return horizontal && rtl ? -target : target\n\n let el = getTarget(target)\n let totalOffset = 0\n while (el) {\n totalOffset += horizontal ? el.offsetLeft : el.offsetTop\n el = el.offsetParent as HTMLElement\n }\n\n return totalOffset\n}\n\nexport function createGoTo (options: Partial<GoToOptions> | undefined, locale: LocaleInstance & RtlInstance) {\n return {\n rtl: locale.isRtl,\n options: mergeDeep(genDefaults(), options),\n }\n}\n\nasync function scrollTo (\n _target: ComponentPublicInstance | HTMLElement | number | string,\n _options: Partial<GoToOptions>,\n horizontal?: boolean,\n goTo?: GoToInstance,\n) {\n const options = mergeDeep(goTo?.options, _options)\n const rtl = goTo?.rtl.value\n const target = (typeof _target === 'number' ? _target : getTarget(_target)) ?? 0\n const container = options.container === 'parent' && target instanceof HTMLElement\n ? target.parentElement!\n : getContainer(options.container)\n const ease = typeof options.easing === 'function' ? options.easing : options.patterns[options.easing]\n\n if (!ease) throw new TypeError(`Easing function \"${options.easing}\" not found.`)\n\n let targetLocation: number\n if (typeof target === 'number') {\n targetLocation = getOffset(target, horizontal, rtl)\n } else {\n targetLocation = getOffset(target, horizontal, rtl) - getOffset(container, horizontal, rtl)\n\n if (options.layout) {\n const styles = window.getComputedStyle(target)\n const layoutOffset = styles.getPropertyValue('--v-layout-top')\n\n if (layoutOffset) targetLocation -= parseInt(layoutOffset, 10)\n }\n }\n\n targetLocation += options.offset\n\n const startLocation = (horizontal ? container.scrollLeft : container.scrollTop) ?? 0\n\n if (targetLocation === startLocation) return Promise.resolve(targetLocation)\n\n const startTime = performance.now()\n\n return new Promise(resolve => requestAnimationFrame(function step (currentTime: number) {\n const timeElapsed = currentTime - startTime\n const progress = Math.abs(options.duration ? Math.min(timeElapsed / options.duration, 1) : 1)\n const location = Math.floor(startLocation + (targetLocation - startLocation) * ease(progress))\n\n container[horizontal ? 'scrollLeft' : 'scrollTop'] = location\n\n if (progress === 1) return resolve(targetLocation)\n\n let clientSize\n let reachEnd\n\n if (!horizontal) {\n clientSize = container === document.body ? document.documentElement.clientHeight : container.clientHeight\n reachEnd = clientSize + container.scrollTop >= container.scrollHeight\n\n if (targetLocation > container.scrollTop && reachEnd) return resolve(targetLocation)\n } else {\n clientSize = container === document.body ? document.documentElement.clientWidth : container.clientWidth\n reachEnd = clientSize + container.scrollLeft >= container.scrollWidth\n\n if (targetLocation > container.scrollLeft && reachEnd) return resolve(targetLocation)\n }\n\n requestAnimationFrame(step)\n }))\n}\n\nexport function useGoTo (_options: Partial<GoToOptions> = {}) {\n const goTo = inject(GoToSymbol)\n\n if (!goTo) throw new Error('[Vuetify] Could not find injected goto instance')\n\n async function go (\n target: ComponentPublicInstance | HTMLElement | string | number,\n options?: Partial<GoToOptions>,\n ) {\n return scrollTo(target, mergeDeep(_options, options), false, goTo)\n }\n\n go.horizontal = async (\n target: ComponentPublicInstance | HTMLElement | string | number,\n options?: Partial<GoToOptions>,\n ) => {\n return scrollTo(target, mergeDeep(_options, options), true, goTo)\n }\n\n return go\n}\n"],"mappings":"AAAA;AACA,SAASA,MAAM,QAAQ,KAAK;AAAA,SACnBC,SAAS,EAAEC,UAAU,6BAE9B;AAkBA,O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from "./defaults.mjs";
|
|
7
7
|
export { useDisplay } from "./display.mjs";
|
|
8
|
+
export { useGoTo } from "./goto.mjs";
|
|
8
9
|
export { useLayout } from "./layout.mjs";
|
|
9
10
|
export { useLocale, useRtl } from "./locale.mjs";
|
|
10
11
|
export { useTheme } from "./theme.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["useDate","useDefaults","useDisplay","useLayout","useLocale","useRtl","useTheme"],"sources":["../../src/composables/index.ts"],"sourcesContent":["/*\n * PUBLIC INTERFACES ONLY\n * Imports in our code should be to the composable directly, not this file\n */\n\nexport { useDate } from './date'\nexport { useDefaults } from './defaults'\nexport { useDisplay } from './display'\nexport { useLayout } from './layout'\nexport { useLocale, useRtl } from './locale'\nexport { useTheme } from './theme'\n\nexport type { DateInstance } from './date'\nexport type { DefaultsInstance } from './defaults'\nexport type { DisplayBreakpoint, DisplayInstance, DisplayThresholds } from './display'\nexport type { SubmitEventPromise } from './form'\nexport type { IconAliases, IconProps, IconSet, IconOptions } from './icons'\nexport type { LocaleInstance, LocaleMessages, RtlInstance, LocaleOptions, RtlOptions } from './locale'\nexport type { ThemeDefinition, ThemeInstance } from './theme'\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHA,SAKSA,OAAO;AAAA,SACPC,WAAW;AAAA,SACXC,UAAU;AAAA,SACVC,SAAS;AAAA,SACTC,SAAS,EAAEC,MAAM;AAAA,SACjBC,QAAQ"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["useDate","useDefaults","useDisplay","useGoTo","useLayout","useLocale","useRtl","useTheme"],"sources":["../../src/composables/index.ts"],"sourcesContent":["/*\n * PUBLIC INTERFACES ONLY\n * Imports in our code should be to the composable directly, not this file\n */\n\nexport { useDate } from './date'\nexport { useDefaults } from './defaults'\nexport { useDisplay } from './display'\nexport { useGoTo } from './goto'\nexport { useLayout } from './layout'\nexport { useLocale, useRtl } from './locale'\nexport { useTheme } from './theme'\n\nexport type { DateInstance } from './date'\nexport type { DefaultsInstance } from './defaults'\nexport type { DisplayBreakpoint, DisplayInstance, DisplayThresholds } from './display'\nexport type { SubmitEventPromise } from './form'\nexport type { GoToInstance } from './goto'\nexport type { IconAliases, IconProps, IconSet, IconOptions } from './icons'\nexport type { LocaleInstance, LocaleMessages, RtlInstance, LocaleOptions, RtlOptions } from './locale'\nexport type { ThemeDefinition, ThemeInstance } from './theme'\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHA,SAKSA,OAAO;AAAA,SACPC,WAAW;AAAA,SACXC,UAAU;AAAA,SACVC,OAAO;AAAA,SACPC,SAAS;AAAA,SACTC,SAAS,EAAEC,MAAM;AAAA,SACjBC,QAAQ"}
|
package/lib/entry-bundler.mjs
CHANGED
|
@@ -15,7 +15,7 @@ export const createVuetify = function () {
|
|
|
15
15
|
...options
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
|
-
export const version = "3.
|
|
18
|
+
export const version = "3.5.0-dev.2024-01-20";
|
|
19
19
|
createVuetify.version = version;
|
|
20
20
|
export { components, directives };
|
|
21
21
|
export * from "./composables/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-bundler.mjs","names":["components","directives","createVuetify","_createVuetify","options","arguments","length","undefined","version"],"sources":["../src/entry-bundler.ts"],"sourcesContent":["/* eslint-disable local-rules/sort-imports */\n\n// Styles\nimport './styles/main.sass'\n\n// Components\nimport * as components from './components'\nimport * as directives from './directives'\nimport { createVuetify as _createVuetify } from './framework'\n\n// Types\nimport type { VuetifyOptions } from './framework'\n\nexport const createVuetify = (options: VuetifyOptions = {}) => {\n return _createVuetify({ components, directives, ...options })\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\nexport {\n components,\n directives,\n}\nexport * from './composables'\n"],"mappings":"AAAA;;AAEA;AACA;;AAEA;AAAA,OACO,KAAKA,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,SACbC,aAAa,IAAIC,cAAc,2BAExC;AAGA,OAAO,MAAMD,aAAa,GAAG,SAAAA,CAAA,EAAkC;EAAA,IAAjCE,OAAuB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACxD,OAAOF,cAAc,CAAC;IAAEH,UAAU;IAAEC,UAAU;IAAE,GAAGG;EAAQ,CAAC,CAAC;AAC/D,CAAC;AAED,OAAO,MAAMI,OAAO,
|
|
1
|
+
{"version":3,"file":"entry-bundler.mjs","names":["components","directives","createVuetify","_createVuetify","options","arguments","length","undefined","version"],"sources":["../src/entry-bundler.ts"],"sourcesContent":["/* eslint-disable local-rules/sort-imports */\n\n// Styles\nimport './styles/main.sass'\n\n// Components\nimport * as components from './components'\nimport * as directives from './directives'\nimport { createVuetify as _createVuetify } from './framework'\n\n// Types\nimport type { VuetifyOptions } from './framework'\n\nexport const createVuetify = (options: VuetifyOptions = {}) => {\n return _createVuetify({ components, directives, ...options })\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\nexport {\n components,\n directives,\n}\nexport * from './composables'\n"],"mappings":"AAAA;;AAEA;AACA;;AAEA;AAAA,OACO,KAAKA,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,SACbC,aAAa,IAAIC,cAAc,2BAExC;AAGA,OAAO,MAAMD,aAAa,GAAG,SAAAA,CAAA,EAAkC;EAAA,IAAjCE,OAAuB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACxD,OAAOF,cAAc,CAAC;IAAEH,UAAU;IAAEC,UAAU;IAAE,GAAGG;EAAQ,CAAC,CAAC;AAC/D,CAAC;AAED,OAAO,MAAMI,OAAO,yBAAsB;AAC1CN,aAAa,CAACM,OAAO,GAAGA,OAAO;AAE/B,SACER,UAAU,EACVC,UAAU;AACX"}
|
package/lib/framework.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { createDate, DateAdapterSymbol, DateOptionsSymbol } from "./composables/date/date.mjs";
|
|
3
3
|
import { createDefaults, DefaultsSymbol } from "./composables/defaults.mjs";
|
|
4
4
|
import { createDisplay, DisplaySymbol } from "./composables/display.mjs";
|
|
5
|
+
import { createGoTo, GoToSymbol } from "./composables/goto.mjs";
|
|
5
6
|
import { createIcons, IconSymbol } from "./composables/icons.mjs";
|
|
6
7
|
import { createLocale, LocaleSymbol } from "./composables/locale.mjs";
|
|
7
8
|
import { createTheme, ThemeSymbol } from "./composables/theme.mjs"; // Utilities
|
|
@@ -26,6 +27,7 @@ export function createVuetify() {
|
|
|
26
27
|
const icons = createIcons(options.icons);
|
|
27
28
|
const locale = createLocale(options.locale);
|
|
28
29
|
const date = createDate(options.date, locale);
|
|
30
|
+
const goTo = createGoTo(options.goTo, locale);
|
|
29
31
|
const install = app => {
|
|
30
32
|
for (const key in directives) {
|
|
31
33
|
app.directive(key, directives[key]);
|
|
@@ -48,6 +50,7 @@ export function createVuetify() {
|
|
|
48
50
|
app.provide(LocaleSymbol, locale);
|
|
49
51
|
app.provide(DateOptionsSymbol, date.options);
|
|
50
52
|
app.provide(DateAdapterSymbol, date.instance);
|
|
53
|
+
app.provide(GoToSymbol, goTo);
|
|
51
54
|
if (IN_BROWSER && options.ssr) {
|
|
52
55
|
if (app.$nuxt) {
|
|
53
56
|
app.$nuxt.hook('app:suspense:resolve', () => {
|
|
@@ -90,10 +93,11 @@ export function createVuetify() {
|
|
|
90
93
|
theme,
|
|
91
94
|
icons,
|
|
92
95
|
locale,
|
|
93
|
-
date
|
|
96
|
+
date,
|
|
97
|
+
goTo
|
|
94
98
|
};
|
|
95
99
|
}
|
|
96
|
-
export const version = "3.
|
|
100
|
+
export const version = "3.5.0-dev.2024-01-20";
|
|
97
101
|
createVuetify.version = version;
|
|
98
102
|
|
|
99
103
|
// Vue's inject() can only be used in setup
|
package/lib/framework.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework.mjs","names":["createDate","DateAdapterSymbol","DateOptionsSymbol","createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createIcons","IconSymbol","createLocale","LocaleSymbol","createTheme","ThemeSymbol","nextTick","reactive","defineComponent","getUid","IN_BROWSER","mergeDeep","createVuetify","vuetify","arguments","length","undefined","blueprint","rest","options","aliases","components","directives","defaults","display","ssr","theme","icons","locale","date","install","app","key","directive","component","name","aliasName","provide","instance","$nuxt","hook","update","mount","vm","reset","__VUE_OPTIONS_API__","mixin","computed","$vuetify","inject","call","version","$","provides","parent","vnode","appContext"],"sources":["../src/framework.ts"],"sourcesContent":["// Composables\nimport { createDate, DateAdapterSymbol, DateOptionsSymbol } from '@/composables/date/date'\nimport { createDefaults, DefaultsSymbol } from '@/composables/defaults'\nimport { createDisplay, DisplaySymbol } from '@/composables/display'\nimport { createIcons, IconSymbol } from '@/composables/icons'\nimport { createLocale, LocaleSymbol } from '@/composables/locale'\nimport { createTheme, ThemeSymbol } from '@/composables/theme'\n\n// Utilities\nimport { nextTick, reactive } from 'vue'\nimport { defineComponent, getUid, IN_BROWSER, mergeDeep } from '@/util'\n\n// Types\nimport type { App, ComponentPublicInstance, InjectionKey } from 'vue'\nimport type { DateOptions } from '@/composables/date'\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { DisplayOptions, SSROptions } from '@/composables/display'\nimport type { IconOptions } from '@/composables/icons'\nimport type { LocaleOptions, RtlOptions } from '@/composables/locale'\nimport type { ThemeOptions } from '@/composables/theme'\nexport * from './composables'\nexport type { DateOptions, DateInstance } from '@/composables/date'\n\nexport interface VuetifyOptions {\n aliases?: Record<string, any>\n blueprint?: Blueprint\n components?: Record<string, any>\n date?: DateOptions\n directives?: Record<string, any>\n defaults?: DefaultsOptions\n display?: DisplayOptions\n theme?: ThemeOptions\n icons?: IconOptions\n locale?: LocaleOptions & RtlOptions\n ssr?: SSROptions\n}\n\nexport interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {}\n\nexport function createVuetify (vuetify: VuetifyOptions = {}) {\n const { blueprint, ...rest } = vuetify\n const options: VuetifyOptions = mergeDeep(blueprint, rest)\n const {\n aliases = {},\n components = {},\n directives = {},\n } = options\n\n const defaults = createDefaults(options.defaults)\n const display = createDisplay(options.display, options.ssr)\n const theme = createTheme(options.theme)\n const icons = createIcons(options.icons)\n const locale = createLocale(options.locale)\n const date = createDate(options.date, locale)\n\n const install = (app: App) => {\n for (const key in directives) {\n app.directive(key, directives[key])\n }\n\n for (const key in components) {\n app.component(key, components[key])\n }\n\n for (const key in aliases) {\n app.component(key, defineComponent({\n ...aliases[key],\n name: key,\n aliasName: aliases[key].name,\n }))\n }\n\n theme.install(app)\n\n app.provide(DefaultsSymbol, defaults)\n app.provide(DisplaySymbol, display)\n app.provide(ThemeSymbol, theme)\n app.provide(IconSymbol, icons)\n app.provide(LocaleSymbol, locale)\n app.provide(DateOptionsSymbol, date.options)\n app.provide(DateAdapterSymbol, date.instance)\n\n if (IN_BROWSER && options.ssr) {\n if (app.$nuxt) {\n app.$nuxt.hook('app:suspense:resolve', () => {\n display.update()\n })\n } else {\n const { mount } = app\n app.mount = (...args) => {\n const vm = mount(...args)\n nextTick(() => display.update())\n app.mount = mount\n return vm\n }\n }\n }\n\n getUid.reset()\n\n if (typeof __VUE_OPTIONS_API__ !== 'boolean' || __VUE_OPTIONS_API__) {\n app.mixin({\n computed: {\n $vuetify () {\n return reactive({\n defaults: inject.call(this, DefaultsSymbol),\n display: inject.call(this, DisplaySymbol),\n theme: inject.call(this, ThemeSymbol),\n icons: inject.call(this, IconSymbol),\n locale: inject.call(this, LocaleSymbol),\n date: inject.call(this, DateAdapterSymbol),\n })\n },\n },\n })\n }\n }\n\n return {\n install,\n defaults,\n display,\n theme,\n icons,\n locale,\n date,\n }\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\n// Vue's inject() can only be used in setup\nfunction inject (this: ComponentPublicInstance, key: InjectionKey<any> | string) {\n const vm = this.$\n\n const provides = vm.parent?.provides ?? vm.vnode.appContext?.provides\n\n if (provides && (key as any) in provides) {\n return provides[(key as string)]\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,UAAU,EAAEC,iBAAiB,EAAEC,iBAAiB;AAAA,SAChDC,cAAc,EAAEC,cAAc;AAAA,SAC9BC,aAAa,EAAEC,aAAa;AAAA,SAC5BC,WAAW,EAAEC,UAAU;AAAA,SACvBC,YAAY,EAAEC,YAAY;AAAA,SAC1BC,WAAW,EAAEC,WAAW,mCAEjC;AACA,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,KAAK;AAAA,SAC/BC,eAAe,EAAEC,MAAM,EAAEC,UAAU,EAAEC,SAAS,4BAEvD;AAAA;
|
|
1
|
+
{"version":3,"file":"framework.mjs","names":["createDate","DateAdapterSymbol","DateOptionsSymbol","createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createGoTo","GoToSymbol","createIcons","IconSymbol","createLocale","LocaleSymbol","createTheme","ThemeSymbol","nextTick","reactive","defineComponent","getUid","IN_BROWSER","mergeDeep","createVuetify","vuetify","arguments","length","undefined","blueprint","rest","options","aliases","components","directives","defaults","display","ssr","theme","icons","locale","date","goTo","install","app","key","directive","component","name","aliasName","provide","instance","$nuxt","hook","update","mount","vm","reset","__VUE_OPTIONS_API__","mixin","computed","$vuetify","inject","call","version","$","provides","parent","vnode","appContext"],"sources":["../src/framework.ts"],"sourcesContent":["// Composables\nimport { createDate, DateAdapterSymbol, DateOptionsSymbol } from '@/composables/date/date'\nimport { createDefaults, DefaultsSymbol } from '@/composables/defaults'\nimport { createDisplay, DisplaySymbol } from '@/composables/display'\nimport { createGoTo, GoToSymbol } from '@/composables/goto'\nimport { createIcons, IconSymbol } from '@/composables/icons'\nimport { createLocale, LocaleSymbol } from '@/composables/locale'\nimport { createTheme, ThemeSymbol } from '@/composables/theme'\n\n// Utilities\nimport { nextTick, reactive } from 'vue'\nimport { defineComponent, getUid, IN_BROWSER, mergeDeep } from '@/util'\n\n// Types\nimport type { App, ComponentPublicInstance, InjectionKey } from 'vue'\nimport type { DateOptions } from '@/composables/date'\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { DisplayOptions, SSROptions } from '@/composables/display'\nimport type { GoToOptions } from '@/composables/goto'\nimport type { IconOptions } from '@/composables/icons'\nimport type { LocaleOptions, RtlOptions } from '@/composables/locale'\nimport type { ThemeOptions } from '@/composables/theme'\nexport * from './composables'\nexport type { DateOptions, DateInstance } from '@/composables/date'\n\nexport interface VuetifyOptions {\n aliases?: Record<string, any>\n blueprint?: Blueprint\n components?: Record<string, any>\n date?: DateOptions\n directives?: Record<string, any>\n defaults?: DefaultsOptions\n display?: DisplayOptions\n goTo?: GoToOptions\n theme?: ThemeOptions\n icons?: IconOptions\n locale?: LocaleOptions & RtlOptions\n ssr?: SSROptions\n}\n\nexport interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {}\n\nexport function createVuetify (vuetify: VuetifyOptions = {}) {\n const { blueprint, ...rest } = vuetify\n const options: VuetifyOptions = mergeDeep(blueprint, rest)\n const {\n aliases = {},\n components = {},\n directives = {},\n } = options\n\n const defaults = createDefaults(options.defaults)\n const display = createDisplay(options.display, options.ssr)\n const theme = createTheme(options.theme)\n const icons = createIcons(options.icons)\n const locale = createLocale(options.locale)\n const date = createDate(options.date, locale)\n const goTo = createGoTo(options.goTo, locale)\n\n const install = (app: App) => {\n for (const key in directives) {\n app.directive(key, directives[key])\n }\n\n for (const key in components) {\n app.component(key, components[key])\n }\n\n for (const key in aliases) {\n app.component(key, defineComponent({\n ...aliases[key],\n name: key,\n aliasName: aliases[key].name,\n }))\n }\n\n theme.install(app)\n\n app.provide(DefaultsSymbol, defaults)\n app.provide(DisplaySymbol, display)\n app.provide(ThemeSymbol, theme)\n app.provide(IconSymbol, icons)\n app.provide(LocaleSymbol, locale)\n app.provide(DateOptionsSymbol, date.options)\n app.provide(DateAdapterSymbol, date.instance)\n app.provide(GoToSymbol, goTo)\n\n if (IN_BROWSER && options.ssr) {\n if (app.$nuxt) {\n app.$nuxt.hook('app:suspense:resolve', () => {\n display.update()\n })\n } else {\n const { mount } = app\n app.mount = (...args) => {\n const vm = mount(...args)\n nextTick(() => display.update())\n app.mount = mount\n return vm\n }\n }\n }\n\n getUid.reset()\n\n if (typeof __VUE_OPTIONS_API__ !== 'boolean' || __VUE_OPTIONS_API__) {\n app.mixin({\n computed: {\n $vuetify () {\n return reactive({\n defaults: inject.call(this, DefaultsSymbol),\n display: inject.call(this, DisplaySymbol),\n theme: inject.call(this, ThemeSymbol),\n icons: inject.call(this, IconSymbol),\n locale: inject.call(this, LocaleSymbol),\n date: inject.call(this, DateAdapterSymbol),\n })\n },\n },\n })\n }\n }\n\n return {\n install,\n defaults,\n display,\n theme,\n icons,\n locale,\n date,\n goTo,\n }\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\n// Vue's inject() can only be used in setup\nfunction inject (this: ComponentPublicInstance, key: InjectionKey<any> | string) {\n const vm = this.$\n\n const provides = vm.parent?.provides ?? vm.vnode.appContext?.provides\n\n if (provides && (key as any) in provides) {\n return provides[(key as string)]\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,UAAU,EAAEC,iBAAiB,EAAEC,iBAAiB;AAAA,SAChDC,cAAc,EAAEC,cAAc;AAAA,SAC9BC,aAAa,EAAEC,aAAa;AAAA,SAC5BC,UAAU,EAAEC,UAAU;AAAA,SACtBC,WAAW,EAAEC,UAAU;AAAA,SACvBC,YAAY,EAAEC,YAAY;AAAA,SAC1BC,WAAW,EAAEC,WAAW,mCAEjC;AACA,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,KAAK;AAAA,SAC/BC,eAAe,EAAEC,MAAM,EAAEC,UAAU,EAAEC,SAAS,4BAEvD;AAAA;AA6BA,OAAO,SAASC,aAAaA,CAAA,EAAgC;EAAA,IAA9BC,OAAuB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACzD,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ponent, PropType, CSSProperties, App } from 'vue';
|
|
2
|
+
import { Ref, DeepReadonly, ComponentPublicInstance, JSXComponent, PropType, CSSProperties, App } from 'vue';
|
|
3
3
|
|
|
4
4
|
interface DateAdapter<T = unknown> {
|
|
5
5
|
date(value?: any): T | null;
|
|
@@ -282,6 +282,23 @@ type DefaultsOptions = Partial<DefaultsInstance>;
|
|
|
282
282
|
declare function useDefaults<T extends Record<string, any>>(props: T, name?: string): T;
|
|
283
283
|
declare function useDefaults(props?: undefined, name?: string): Record<string, any>;
|
|
284
284
|
|
|
285
|
+
interface GoToInstance {
|
|
286
|
+
rtl: Ref<boolean>;
|
|
287
|
+
options: GoToOptions;
|
|
288
|
+
}
|
|
289
|
+
interface GoToOptions {
|
|
290
|
+
container: ComponentPublicInstance | HTMLElement | string;
|
|
291
|
+
duration: number;
|
|
292
|
+
layout: boolean;
|
|
293
|
+
offset: number;
|
|
294
|
+
easing: string | ((t: number) => number);
|
|
295
|
+
patterns: Record<string, (t: number) => number>;
|
|
296
|
+
}
|
|
297
|
+
declare function useGoTo(_options?: Partial<GoToOptions>): {
|
|
298
|
+
(target: ComponentPublicInstance | HTMLElement | string | number, options?: Partial<GoToOptions>): Promise<unknown>;
|
|
299
|
+
horizontal(target: ComponentPublicInstance | HTMLElement | string | number, options?: Partial<GoToOptions>): Promise<unknown>;
|
|
300
|
+
};
|
|
301
|
+
|
|
285
302
|
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
|
286
303
|
declare const IconValue: PropType<IconValue>;
|
|
287
304
|
interface IconAliases {
|
|
@@ -374,6 +391,7 @@ interface VuetifyOptions {
|
|
|
374
391
|
directives?: Record<string, any>;
|
|
375
392
|
defaults?: DefaultsOptions;
|
|
376
393
|
display?: DisplayOptions;
|
|
394
|
+
goTo?: GoToOptions;
|
|
377
395
|
theme?: ThemeOptions;
|
|
378
396
|
icons?: IconOptions;
|
|
379
397
|
locale?: LocaleOptions & RtlOptions;
|
|
@@ -444,13 +462,17 @@ declare function createVuetify(vuetify?: VuetifyOptions): {
|
|
|
444
462
|
setMinutes: (date: unknown, minutes: number) => unknown;
|
|
445
463
|
};
|
|
446
464
|
};
|
|
465
|
+
goTo: {
|
|
466
|
+
rtl: vue.Ref<boolean>;
|
|
467
|
+
options: Record<string, any>;
|
|
468
|
+
};
|
|
447
469
|
};
|
|
448
470
|
declare namespace createVuetify {
|
|
449
471
|
var version: string;
|
|
450
472
|
}
|
|
451
473
|
declare const version: string;
|
|
452
474
|
|
|
453
|
-
export { type Blueprint, type DateInstance, type DateOptions, type DefaultsInstance, type DisplayBreakpoint, type DisplayInstance, type DisplayThresholds, type IconAliases, type IconOptions, type IconProps, type IconSet, type LocaleInstance, type LocaleMessages, type LocaleOptions, type RtlInstance, type RtlOptions, type SubmitEventPromise, type ThemeDefinition, type ThemeInstance, type VuetifyOptions, createVuetify, useDate, useDefaults, useDisplay, useLayout, useLocale, useRtl, useTheme, version };
|
|
475
|
+
export { type Blueprint, type DateInstance, type DateOptions, type DefaultsInstance, type DisplayBreakpoint, type DisplayInstance, type DisplayThresholds, type GoToInstance, type IconAliases, type IconOptions, type IconProps, type IconSet, type LocaleInstance, type LocaleMessages, type LocaleOptions, type RtlInstance, type RtlOptions, type SubmitEventPromise, type ThemeDefinition, type ThemeInstance, type VuetifyOptions, createVuetify, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|
|
454
476
|
|
|
455
477
|
/* eslint-disable local-rules/sort-imports */
|
|
456
478
|
|
|
@@ -494,73 +516,75 @@ declare module '@vue/runtime-core' {
|
|
|
494
516
|
|
|
495
517
|
export interface GlobalComponents {
|
|
496
518
|
VApp: typeof import('vuetify/components')['VApp']
|
|
497
|
-
|
|
498
|
-
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
519
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
499
520
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
500
521
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
501
522
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
502
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
503
|
-
VBadge: typeof import('vuetify/components')['VBadge']
|
|
504
523
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
524
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
|
525
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
526
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
|
505
527
|
VBanner: typeof import('vuetify/components')['VBanner']
|
|
506
528
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
|
507
529
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
|
508
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
509
530
|
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
531
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
|
532
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
510
533
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
|
534
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
535
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
511
536
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
|
512
537
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
|
513
538
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
|
514
|
-
|
|
515
|
-
|
|
539
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
540
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
516
541
|
VCard: typeof import('vuetify/components')['VCard']
|
|
517
542
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
|
518
543
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
|
519
544
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
|
520
545
|
VCardText: typeof import('vuetify/components')['VCardText']
|
|
521
546
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
|
522
|
-
|
|
523
|
-
VCode: typeof import('vuetify/components')['VCode']
|
|
524
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
525
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
547
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
526
548
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
|
527
|
-
|
|
528
|
-
|
|
549
|
+
VCode: typeof import('vuetify/components')['VCode']
|
|
550
|
+
VChip: typeof import('vuetify/components')['VChip']
|
|
529
551
|
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
|
530
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
531
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
|
532
552
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
|
533
553
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
|
534
554
|
VDataTableRows: typeof import('vuetify/components')['VDataTableRows']
|
|
535
555
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
|
536
556
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
|
537
557
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
|
558
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
|
538
559
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
|
539
560
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
|
540
561
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
|
541
562
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
|
542
563
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
|
543
564
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
|
565
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
544
566
|
VDialog: typeof import('vuetify/components')['VDialog']
|
|
545
|
-
VField: typeof import('vuetify/components')['VField']
|
|
546
|
-
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
547
567
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
548
568
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
549
569
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
550
570
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
551
571
|
VDivider: typeof import('vuetify/components')['VDivider']
|
|
572
|
+
VField: typeof import('vuetify/components')['VField']
|
|
573
|
+
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
552
574
|
VFooter: typeof import('vuetify/components')['VFooter']
|
|
553
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
554
575
|
VIcon: typeof import('vuetify/components')['VIcon']
|
|
555
576
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
|
556
577
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
|
557
578
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
|
558
579
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
|
580
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
559
581
|
VImg: typeof import('vuetify/components')['VImg']
|
|
582
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
|
560
583
|
VInput: typeof import('vuetify/components')['VInput']
|
|
584
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
|
561
585
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
|
562
586
|
VItem: typeof import('vuetify/components')['VItem']
|
|
563
|
-
|
|
587
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
|
564
588
|
VList: typeof import('vuetify/components')['VList']
|
|
565
589
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
|
566
590
|
VListImg: typeof import('vuetify/components')['VListImg']
|
|
@@ -570,27 +594,26 @@ declare module '@vue/runtime-core' {
|
|
|
570
594
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
|
571
595
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
|
572
596
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
|
573
|
-
|
|
574
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
|
597
|
+
VMessages: typeof import('vuetify/components')['VMessages']
|
|
575
598
|
VMenu: typeof import('vuetify/components')['VMenu']
|
|
599
|
+
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
|
576
600
|
VMain: typeof import('vuetify/components')['VMain']
|
|
577
|
-
VMessages: typeof import('vuetify/components')['VMessages']
|
|
578
601
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
|
579
|
-
VOverlay: typeof import('vuetify/components')['VOverlay']
|
|
580
|
-
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
|
581
602
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
|
603
|
+
VOverlay: typeof import('vuetify/components')['VOverlay']
|
|
582
604
|
VPagination: typeof import('vuetify/components')['VPagination']
|
|
583
|
-
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
|
584
605
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
|
585
|
-
|
|
606
|
+
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
|
586
607
|
VRating: typeof import('vuetify/components')['VRating']
|
|
587
608
|
VSelect: typeof import('vuetify/components')['VSelect']
|
|
588
|
-
|
|
609
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
|
589
610
|
VSheet: typeof import('vuetify/components')['VSheet']
|
|
590
|
-
|
|
611
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
|
591
612
|
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
592
613
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
|
593
614
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
|
615
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
|
616
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
594
617
|
VStepper: typeof import('vuetify/components')['VStepper']
|
|
595
618
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
|
596
619
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
|
@@ -598,19 +621,18 @@ declare module '@vue/runtime-core' {
|
|
|
598
621
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
|
599
622
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
|
600
623
|
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
601
|
-
VSlider: typeof import('vuetify/components')['VSlider']
|
|
602
624
|
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
603
625
|
VTabs: typeof import('vuetify/components')['VTabs']
|
|
604
626
|
VTab: typeof import('vuetify/components')['VTab']
|
|
605
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
|
606
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
607
627
|
VTable: typeof import('vuetify/components')['VTable']
|
|
608
|
-
|
|
609
|
-
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
610
|
-
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
628
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
611
629
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
|
612
630
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
|
613
631
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
632
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
|
633
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
634
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
635
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
614
636
|
VWindow: typeof import('vuetify/components')['VWindow']
|
|
615
637
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
|
616
638
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
|
@@ -623,8 +645,8 @@ declare module '@vue/runtime-core' {
|
|
|
623
645
|
VHover: typeof import('vuetify/components')['VHover']
|
|
624
646
|
VLayout: typeof import('vuetify/components')['VLayout']
|
|
625
647
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
|
626
|
-
VLazy: typeof import('vuetify/components')['VLazy']
|
|
627
648
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
|
649
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
|
628
650
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
|
629
651
|
VParallax: typeof import('vuetify/components')['VParallax']
|
|
630
652
|
VRadio: typeof import('vuetify/components')['VRadio']
|
|
@@ -632,6 +654,7 @@ declare module '@vue/runtime-core' {
|
|
|
632
654
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
|
633
655
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
|
634
656
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
|
657
|
+
VValidation: typeof import('vuetify/components')['VValidation']
|
|
635
658
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
|
636
659
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
|
637
660
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
|
@@ -648,7 +671,6 @@ declare module '@vue/runtime-core' {
|
|
|
648
671
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
|
649
672
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
|
650
673
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
|
651
|
-
VValidation: typeof import('vuetify/components')['VValidation']
|
|
652
674
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
|
653
675
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
|
654
676
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|