@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
package/lib/framework.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework.mjs","names":["createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createIcons","IconSymbol","createLocale","LocaleAdapterSymbol","createTheme","ThemeSymbol","RtlSymbol","defineComponent","getUid","
|
|
1
|
+
{"version":3,"file":"framework.mjs","names":["createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createIcons","IconSymbol","createLocale","LocaleAdapterSymbol","createTheme","ThemeSymbol","RtlSymbol","defineComponent","getUid","mergeDeep","reactive","createVuetify","vuetify","blueprint","rest","options","aliases","components","directives","defaults","display","ssr","theme","icons","locale","install","app","key","directive","component","name","aliasName","provide","adapter","reset","mixin","computed","$vuetify","inject","call","rtl","version","vm","$","provides","parent","vnode","appContext"],"sources":["../src/framework.ts"],"sourcesContent":["// Composables\nimport { createDefaults, DefaultsSymbol } from '@/composables/defaults'\nimport { createDisplay, DisplaySymbol } from '@/composables/display'\nimport { createIcons, IconSymbol } from '@/composables/icons'\nimport { createLocale, LocaleAdapterSymbol } from '@/composables/locale'\nimport { createTheme, ThemeSymbol } from '@/composables/theme'\nimport { RtlSymbol } from '@/composables/rtl'\n\n// Utilities\nimport { defineComponent, getUid, mergeDeep } from '@/util'\nimport { reactive } from 'vue'\n\n// Types\nimport type { App, ComponentPublicInstance, InjectionKey } from 'vue'\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { DisplayOptions } from '@/composables/display'\nimport type { IconOptions } from '@/composables/icons'\nimport type { LocaleAdapter, LocaleOptions } from '@/composables/locale'\nimport type { RtlOptions } from '@/composables/rtl'\nimport type { ThemeOptions } from '@/composables/theme'\n\nexport * from './composables'\n\nexport interface VuetifyOptions {\n aliases?: Record<string, any>\n blueprint?: Blueprint\n components?: Record<string, any>\n directives?: Record<string, any>\n defaults?: DefaultsOptions\n display?: DisplayOptions\n theme?: ThemeOptions\n icons?: IconOptions\n locale?: (LocaleOptions & RtlOptions) | (LocaleAdapter & RtlOptions)\n ssr?: boolean\n}\n\nexport interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {}\n\nexport function createVuetify (vuetify: VuetifyOptions = {}) {\n const { blueprint, ...rest } = vuetify\n const options = 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\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 locale.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(LocaleAdapterSymbol, locale.adapter)\n\n getUid.reset()\n\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, LocaleAdapterSymbol),\n rtl: inject.call(this, RtlSymbol),\n })\n },\n },\n })\n }\n\n return {\n install,\n defaults,\n display,\n theme,\n icons,\n locale: locale.adapter,\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;SACSA,c,EAAgBC,c;SAChBC,a,EAAeC,a;SACfC,W,EAAaC,U;SACbC,Y,EAAcC,mB;SACdC,W,EAAaC,W;SACbC,S,iCAET;;SACSC,e,EAAiBC,M,EAAQC,S;AAClC,SAASC,QAAT,QAAyB,KAAzB,C,CAEA;;;AA0BA,OAAO,SAASC,aAAT,GAAsD;EAAA,IAA9BC,OAA8B,uEAAJ,EAAI;EAC3D,MAAM;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ACG,MAAH,gCAAWD,QAAX,8BAAuBF,EAAE,CAACI,KAAH,CAASC,UAAhC,qBAAuB,qBAAqBH,QAA5C,CAAjB;;EAEA,IAAIA,QAAQ,IAAKjB,GAAD,IAAgBiB,QAAhC,EAA0C;IACxC,OAAOA,QAAQ,CAAEjB,GAAF,CAAf;EACD;AACF"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
1
2
|
import { Ref, DeepReadonly, ToRefs, JSXComponent, PropType, App, ComponentInternalInstance, CSSProperties } from 'vue';
|
|
2
3
|
|
|
3
4
|
declare type DeepPartial<T> = T extends object ? {
|
|
@@ -58,12 +59,6 @@ interface ThemeInstance {
|
|
|
58
59
|
}
|
|
59
60
|
declare function useTheme(): ThemeInstance;
|
|
60
61
|
|
|
61
|
-
interface DefaultsInstance {
|
|
62
|
-
[key: string]: undefined | Record<string, unknown>;
|
|
63
|
-
global?: Record<string, unknown>;
|
|
64
|
-
}
|
|
65
|
-
declare type DefaultsOptions = Partial<DefaultsInstance>;
|
|
66
|
-
|
|
67
62
|
declare type DisplayBreakpoint = keyof DisplayThresholds;
|
|
68
63
|
interface DisplayThresholds {
|
|
69
64
|
xs: number;
|
|
@@ -117,6 +112,12 @@ interface DisplayInstance {
|
|
|
117
112
|
}
|
|
118
113
|
declare function useDisplay(): ToRefs<DisplayInstance>;
|
|
119
114
|
|
|
115
|
+
interface DefaultsInstance {
|
|
116
|
+
[key: string]: undefined | Record<string, unknown>;
|
|
117
|
+
global?: Record<string, unknown>;
|
|
118
|
+
}
|
|
119
|
+
declare type DefaultsOptions = Partial<DefaultsInstance>;
|
|
120
|
+
|
|
120
121
|
declare type IconValue = string | JSXComponent;
|
|
121
122
|
declare const IconValue: PropType<IconValue>;
|
|
122
123
|
interface IconAliases {
|
|
@@ -265,15 +266,23 @@ interface VuetifyOptions {
|
|
|
265
266
|
theme?: ThemeOptions;
|
|
266
267
|
icons?: IconOptions;
|
|
267
268
|
locale?: (LocaleOptions & RtlOptions) | (LocaleAdapter & RtlOptions);
|
|
269
|
+
ssr?: boolean;
|
|
268
270
|
}
|
|
269
271
|
interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {
|
|
270
272
|
}
|
|
271
|
-
declare
|
|
272
|
-
(
|
|
273
|
-
|
|
273
|
+
declare function createVuetify(vuetify?: VuetifyOptions): {
|
|
274
|
+
install: (app: App) => void;
|
|
275
|
+
defaults: vue.Ref<DefaultsInstance>;
|
|
276
|
+
display: vue.ToRefs<DisplayInstance>;
|
|
277
|
+
theme: ThemeInstance & {
|
|
278
|
+
install: (app: App<any>) => void;
|
|
274
279
|
};
|
|
275
|
-
|
|
280
|
+
icons: Record<string, any>;
|
|
281
|
+
locale: LocaleAdapter;
|
|
276
282
|
};
|
|
283
|
+
declare namespace createVuetify {
|
|
284
|
+
var version: string;
|
|
285
|
+
}
|
|
277
286
|
declare const version: string;
|
|
278
287
|
|
|
279
288
|
export { Blueprint, DefaultsInstance, DisplayBreakpoint, DisplayInstance, DisplayThresholds, IconAliases, IconOptions, IconProps, IconSet, LocaleAdapter, LocaleInstance, RtlInstance, SubmitEventPromise, ThemeDefinition, ThemeInstance, VuetifyOptions, createVuetify, provideRtl, useDisplay, useLayout, useLocale, useRtl, useTheme, version };
|
|
@@ -325,15 +334,16 @@ declare module '@vue/runtime-core' {
|
|
|
325
334
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
|
326
335
|
VHover: typeof import('vuetify/components')['VHover']
|
|
327
336
|
VForm: typeof import('vuetify/components')['VForm']
|
|
328
|
-
VLazy: typeof import('vuetify/components')['VLazy']
|
|
329
|
-
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
|
330
337
|
VLayout: typeof import('vuetify/components')['VLayout']
|
|
331
338
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
|
339
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
|
340
|
+
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
|
332
341
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
|
342
|
+
VParallax: typeof import('vuetify/components')['VParallax']
|
|
333
343
|
VRadio: typeof import('vuetify/components')['VRadio']
|
|
334
344
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
|
335
|
-
VParallax: typeof import('vuetify/components')['VParallax']
|
|
336
345
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
|
346
|
+
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
|
337
347
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
|
338
348
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
|
339
349
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
|
@@ -350,6 +360,7 @@ declare module '@vue/runtime-core' {
|
|
|
350
360
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
|
351
361
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
|
352
362
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
|
363
|
+
VValidation: typeof import('vuetify/components')['VValidation']
|
|
353
364
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
354
365
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
355
366
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
@@ -358,14 +369,13 @@ declare module '@vue/runtime-core' {
|
|
|
358
369
|
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
359
370
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
360
371
|
VBadge: typeof import('vuetify/components')['VBadge']
|
|
361
|
-
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
|
362
372
|
VBanner: typeof import('vuetify/components')['VBanner']
|
|
363
373
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
|
364
374
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
|
375
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
365
376
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
|
366
377
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
|
367
378
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
|
368
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
369
379
|
VBtn: typeof import('vuetify/components')['VBtn']
|
|
370
380
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
|
371
381
|
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
@@ -379,18 +389,18 @@ declare module '@vue/runtime-core' {
|
|
|
379
389
|
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
380
390
|
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
381
391
|
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
382
|
-
VChip: typeof import('vuetify/components')['VChip']
|
|
383
392
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
|
393
|
+
VChip: typeof import('vuetify/components')['VChip']
|
|
384
394
|
VCode: typeof import('vuetify/components')['VCode']
|
|
385
395
|
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
|
386
396
|
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
387
397
|
VCounter: typeof import('vuetify/components')['VCounter']
|
|
388
398
|
VDialog: typeof import('vuetify/components')['VDialog']
|
|
399
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
|
389
400
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
390
401
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
391
402
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
392
403
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
393
|
-
VDivider: typeof import('vuetify/components')['VDivider']
|
|
394
404
|
VField: typeof import('vuetify/components')['VField']
|
|
395
405
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
396
406
|
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
@@ -400,7 +410,6 @@ declare module '@vue/runtime-core' {
|
|
|
400
410
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
|
401
411
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
|
402
412
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
|
403
|
-
VImg: typeof import('vuetify/components')['VImg']
|
|
404
413
|
VInput: typeof import('vuetify/components')['VInput']
|
|
405
414
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
|
406
415
|
VItem: typeof import('vuetify/components')['VItem']
|
|
@@ -432,22 +441,22 @@ declare module '@vue/runtime-core' {
|
|
|
432
441
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
|
433
442
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
|
434
443
|
VSlider: typeof import('vuetify/components')['VSlider']
|
|
435
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
436
444
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
445
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
437
446
|
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
438
447
|
VTabs: typeof import('vuetify/components')['VTabs']
|
|
439
448
|
VTab: typeof import('vuetify/components')['VTab']
|
|
440
449
|
VTable: typeof import('vuetify/components')['VTable']
|
|
441
450
|
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
442
451
|
VTextField: typeof import('vuetify/components')['VTextField']
|
|
452
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
453
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
443
454
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
|
444
455
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
|
445
456
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
446
|
-
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
447
|
-
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
448
457
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
449
458
|
VWindow: typeof import('vuetify/components')['VWindow']
|
|
450
459
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
|
451
|
-
|
|
460
|
+
VImg: typeof import('vuetify/components')['VImg']
|
|
452
461
|
}
|
|
453
462
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { I18n, useI18n } from 'vue-i18n';
|
|
2
|
+
import { App, Ref } from 'vue';
|
|
3
|
+
|
|
4
|
+
interface RtlOptions {
|
|
5
|
+
rtl?: Record<string, boolean>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface LocaleMessages {
|
|
9
|
+
[key: string]: LocaleMessages | string;
|
|
10
|
+
}
|
|
11
|
+
interface LocaleProps {
|
|
12
|
+
locale?: string;
|
|
13
|
+
fallbackLocale?: string;
|
|
14
|
+
messages?: LocaleMessages;
|
|
15
|
+
}
|
|
16
|
+
interface LocaleInstance {
|
|
17
|
+
current: Ref<string>;
|
|
18
|
+
fallback: Ref<string>;
|
|
19
|
+
messages: Ref<LocaleMessages>;
|
|
20
|
+
t: (key: string, ...params: unknown[]) => string;
|
|
21
|
+
n: (value: number) => string;
|
|
22
|
+
}
|
|
23
|
+
interface LocaleAdapter {
|
|
24
|
+
createRoot: (app?: App) => LocaleInstance;
|
|
25
|
+
getScope: () => LocaleInstance;
|
|
26
|
+
createScope: (options?: LocaleProps) => LocaleInstance;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare type VueI18nAdapterParams = {
|
|
30
|
+
i18n: I18n<{}, {}, {}, string, false>;
|
|
31
|
+
useI18n: typeof useI18n;
|
|
32
|
+
} & RtlOptions;
|
|
33
|
+
declare function createVueI18nAdapter({ i18n, useI18n, ...rest }: VueI18nAdapterParams): (LocaleAdapter & RtlOptions);
|
|
34
|
+
|
|
35
|
+
export { createVueI18nAdapter };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { App, Ref } from 'vue';
|
|
2
|
+
import { createIntl } from '@formatjs/intl';
|
|
3
|
+
|
|
4
|
+
interface RtlOptions {
|
|
5
|
+
rtl?: Record<string, boolean>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface LocaleMessages {
|
|
9
|
+
[key: string]: LocaleMessages | string;
|
|
10
|
+
}
|
|
11
|
+
interface LocaleProps {
|
|
12
|
+
locale?: string;
|
|
13
|
+
fallbackLocale?: string;
|
|
14
|
+
messages?: LocaleMessages;
|
|
15
|
+
}
|
|
16
|
+
interface LocaleInstance {
|
|
17
|
+
current: Ref<string>;
|
|
18
|
+
fallback: Ref<string>;
|
|
19
|
+
messages: Ref<LocaleMessages>;
|
|
20
|
+
t: (key: string, ...params: unknown[]) => string;
|
|
21
|
+
n: (value: number) => string;
|
|
22
|
+
}
|
|
23
|
+
interface LocaleAdapter {
|
|
24
|
+
createRoot: (app?: App) => LocaleInstance;
|
|
25
|
+
getScope: () => LocaleInstance;
|
|
26
|
+
createScope: (options?: LocaleProps) => LocaleInstance;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare type VueIntlAdapterOptions = {
|
|
30
|
+
createIntl: typeof createIntl;
|
|
31
|
+
useIntl: any;
|
|
32
|
+
provideIntl: any;
|
|
33
|
+
locale: string;
|
|
34
|
+
defaultLocale: string;
|
|
35
|
+
messages: Record<string, Record<string, string>>;
|
|
36
|
+
} & RtlOptions;
|
|
37
|
+
/**
|
|
38
|
+
* There is no reactivity in this adapter, because vue-intl package does not seem to support it
|
|
39
|
+
*/
|
|
40
|
+
declare function createVueIntlAdapter({ createIntl, useIntl, provideIntl, locale, defaultLocale, messages, ...rest }: VueIntlAdapterOptions): (LocaleAdapter & RtlOptions);
|
|
41
|
+
|
|
42
|
+
export { createVueIntlAdapter };
|