162 lines
3.7 KiB
JavaScript
162 lines
3.7 KiB
JavaScript
import {
|
|
DateAdapterSymbol,
|
|
DateOptionsSymbol,
|
|
GoToSymbol,
|
|
createDate,
|
|
createGoTo,
|
|
useDate,
|
|
useGoTo
|
|
} from "./chunk-AGK43WUJ.js";
|
|
import {
|
|
DisplaySymbol,
|
|
createDisplay,
|
|
useDisplay
|
|
} from "./chunk-O5EKZW2J.js";
|
|
import {
|
|
IconSymbol,
|
|
createIcons
|
|
} from "./chunk-472DNWSX.js";
|
|
import {
|
|
LocaleSymbol,
|
|
createLocale,
|
|
useLocale,
|
|
useRtl
|
|
} from "./chunk-IR5437QA.js";
|
|
import "./chunk-PVQHDZXM.js";
|
|
import {
|
|
useLayout
|
|
} from "./chunk-JVLWTAZ5.js";
|
|
import "./chunk-6MYZNPKW.js";
|
|
import {
|
|
ThemeSymbol,
|
|
createTheme,
|
|
useTheme
|
|
} from "./chunk-CYOEVGGH.js";
|
|
import {
|
|
DefaultsSymbol,
|
|
IN_BROWSER,
|
|
createDefaults,
|
|
defineComponent,
|
|
getUid,
|
|
mergeDeep,
|
|
useDefaults
|
|
} from "./chunk-I4KGD5X4.js";
|
|
import {
|
|
nextTick,
|
|
reactive
|
|
} from "./chunk-PD2AWGJV.js";
|
|
import "./chunk-QWN5BXRD.js";
|
|
|
|
// node_modules/vuetify/lib/framework.mjs
|
|
function createVuetify() {
|
|
let vuetify = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
const {
|
|
blueprint,
|
|
...rest
|
|
} = vuetify;
|
|
const options = mergeDeep(blueprint, rest);
|
|
const {
|
|
aliases = {},
|
|
components = {},
|
|
directives = {}
|
|
} = options;
|
|
const defaults = createDefaults(options.defaults);
|
|
const display = createDisplay(options.display, options.ssr);
|
|
const theme = createTheme(options.theme);
|
|
const icons = createIcons(options.icons);
|
|
const locale = createLocale(options.locale);
|
|
const date = createDate(options.date, locale);
|
|
const goTo = createGoTo(options.goTo, locale);
|
|
const install = (app) => {
|
|
for (const key in directives) {
|
|
app.directive(key, directives[key]);
|
|
}
|
|
for (const key in components) {
|
|
app.component(key, components[key]);
|
|
}
|
|
for (const key in aliases) {
|
|
app.component(key, defineComponent({
|
|
...aliases[key],
|
|
name: key,
|
|
aliasName: aliases[key].name
|
|
}));
|
|
}
|
|
theme.install(app);
|
|
app.provide(DefaultsSymbol, defaults);
|
|
app.provide(DisplaySymbol, display);
|
|
app.provide(ThemeSymbol, theme);
|
|
app.provide(IconSymbol, icons);
|
|
app.provide(LocaleSymbol, locale);
|
|
app.provide(DateOptionsSymbol, date.options);
|
|
app.provide(DateAdapterSymbol, date.instance);
|
|
app.provide(GoToSymbol, goTo);
|
|
if (IN_BROWSER && options.ssr) {
|
|
if (app.$nuxt) {
|
|
app.$nuxt.hook("app:suspense:resolve", () => {
|
|
display.update();
|
|
});
|
|
} else {
|
|
const {
|
|
mount
|
|
} = app;
|
|
app.mount = function() {
|
|
const vm = mount(...arguments);
|
|
nextTick(() => display.update());
|
|
app.mount = mount;
|
|
return vm;
|
|
};
|
|
}
|
|
}
|
|
getUid.reset();
|
|
if (typeof __VUE_OPTIONS_API__ !== "boolean" || __VUE_OPTIONS_API__) {
|
|
app.mixin({
|
|
computed: {
|
|
$vuetify() {
|
|
return reactive({
|
|
defaults: inject.call(this, DefaultsSymbol),
|
|
display: inject.call(this, DisplaySymbol),
|
|
theme: inject.call(this, ThemeSymbol),
|
|
icons: inject.call(this, IconSymbol),
|
|
locale: inject.call(this, LocaleSymbol),
|
|
date: inject.call(this, DateAdapterSymbol)
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
};
|
|
return {
|
|
install,
|
|
defaults,
|
|
display,
|
|
theme,
|
|
icons,
|
|
locale,
|
|
date,
|
|
goTo
|
|
};
|
|
}
|
|
var version = "3.5.4";
|
|
createVuetify.version = version;
|
|
function inject(key) {
|
|
var _a, _b;
|
|
const vm = this.$;
|
|
const provides = ((_a = vm.parent) == null ? void 0 : _a.provides) ?? ((_b = vm.vnode.appContext) == null ? void 0 : _b.provides);
|
|
if (provides && key in provides) {
|
|
return provides[key];
|
|
}
|
|
}
|
|
export {
|
|
createVuetify,
|
|
useDate,
|
|
useDefaults,
|
|
useDisplay,
|
|
useGoTo,
|
|
useLayout,
|
|
useLocale,
|
|
useRtl,
|
|
useTheme,
|
|
version
|
|
};
|
|
//# sourceMappingURL=vuetify.js.map
|