@vuetify/nightly 3.6.8-master.2024-06-11 → 3.6.9-dev.2024-06-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 +14 -6
- package/dist/json/attributes.json +293 -121
- package/dist/json/importMap-labs.json +22 -22
- package/dist/json/importMap.json +158 -158
- package/dist/json/tags.json +49 -6
- package/dist/json/web-types.json +610 -221
- package/dist/vuetify-labs.css +3356 -3340
- package/dist/vuetify-labs.d.ts +840 -564
- package/dist/vuetify-labs.esm.js +93 -44
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +93 -44
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +551 -535
- package/dist/vuetify.d.ts +763 -565
- package/dist/vuetify.esm.js +81 -38
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +81 -38
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +51 -48
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAppBar/index.d.mts +6 -0
- package/lib/components/VAutocomplete/index.d.mts +49 -49
- package/lib/components/VAvatar/VAvatar.css +7 -0
- package/lib/components/VAvatar/VAvatar.mjs +6 -1
- package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
- package/lib/components/VAvatar/VAvatar.sass +1 -0
- package/lib/components/VAvatar/_variables.scss +13 -0
- package/lib/components/VAvatar/index.d.mts +6 -0
- package/lib/components/VBottomSheet/index.d.mts +7 -7
- package/lib/components/VBreadcrumbs/index.d.mts +8 -8
- package/lib/components/VBtn/VBtn.mjs +3 -1
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/index.d.mts +6 -0
- package/lib/components/VCarousel/index.d.mts +16 -7
- package/lib/components/VCheckbox/index.d.mts +6 -6
- package/lib/components/VCombobox/index.d.mts +49 -49
- package/lib/components/VDialog/index.d.mts +31 -31
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs +23 -11
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +20 -7
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.mts +122 -14
- package/lib/components/VFab/VFab.mjs +4 -7
- package/lib/components/VFab/VFab.mjs.map +1 -1
- package/lib/components/VFab/index.d.mts +52 -49
- package/lib/components/VFileInput/index.d.mts +18 -18
- package/lib/components/VForm/index.d.mts +9 -9
- package/lib/components/VGrid/VContainer.mjs +6 -1
- package/lib/components/VGrid/VContainer.mjs.map +1 -1
- package/lib/components/VGrid/index.d.mts +36 -0
- package/lib/components/VImg/VImg.css +9 -0
- package/lib/components/VImg/VImg.mjs +2 -0
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/VImg.sass +9 -0
- package/lib/components/VImg/index.d.mts +16 -7
- package/lib/components/VInput/index.d.mts +6 -6
- package/lib/components/VList/VList.mjs +1 -0
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/index.d.mts +14 -12
- package/lib/components/VMenu/VMenu.mjs +1 -1
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/index.d.mts +33 -33
- package/lib/components/VOverlay/VOverlay.mjs +4 -3
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.mts +7 -7
- package/lib/components/VRadioGroup/index.d.mts +6 -6
- package/lib/components/VRangeSlider/index.d.mts +6 -6
- package/lib/components/VSelect/index.d.mts +49 -49
- package/lib/components/VSlider/index.d.mts +6 -6
- package/lib/components/VSnackbar/index.d.mts +33 -33
- package/lib/components/VSpeedDial/index.d.mts +9 -9
- package/lib/components/VSwitch/index.d.mts +6 -6
- package/lib/components/VTabs/index.d.mts +21 -3
- package/lib/components/VTextField/index.d.mts +18 -18
- package/lib/components/VTextarea/index.d.mts +18 -18
- package/lib/components/VTooltip/index.d.mts +39 -39
- package/lib/components/VValidation/index.d.mts +9 -8
- package/lib/components/index.d.mts +707 -509
- package/lib/composables/scroll.mjs +6 -0
- package/lib/composables/scroll.mjs.map +1 -1
- package/lib/composables/validation.mjs +8 -6
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.mts +56 -56
- package/lib/labs/VDateInput/index.d.mts +6 -6
- package/lib/labs/VNumberInput/index.d.mts +6 -6
- package/lib/labs/VSnackbarQueue/index.d.mts +42 -42
- package/lib/labs/VStepperVertical/index.d.mts +90 -18
- package/lib/labs/VTimePicker/VTimePickerClock.mjs +3 -1
- package/lib/labs/VTimePicker/VTimePickerClock.mjs.map +1 -1
- package/lib/labs/VTimePicker/VTimePickerControls.mjs +7 -2
- package/lib/labs/VTimePicker/VTimePickerControls.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeview.mjs +3 -4
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +22 -16
- package/lib/labs/components.d.mts +166 -88
- package/package.json +1 -1
@@ -17,6 +17,7 @@ export function useScroll(props) {
|
|
17
17
|
canScroll
|
18
18
|
} = args;
|
19
19
|
let previousScroll = 0;
|
20
|
+
let previousScrollHeight = 0;
|
20
21
|
const target = ref(null);
|
21
22
|
const currentScroll = shallowRef(0);
|
22
23
|
const savedScroll = shallowRef(0);
|
@@ -39,6 +40,11 @@ export function useScroll(props) {
|
|
39
40
|
if (!targetEl || canScroll && !canScroll.value) return;
|
40
41
|
previousScroll = currentScroll.value;
|
41
42
|
currentScroll.value = 'window' in targetEl ? targetEl.pageYOffset : targetEl.scrollTop;
|
43
|
+
const currentScrollHeight = targetEl instanceof Window ? document.documentElement.scrollHeight : targetEl.scrollHeight;
|
44
|
+
if (previousScrollHeight !== currentScrollHeight) {
|
45
|
+
previousScrollHeight = currentScrollHeight;
|
46
|
+
return;
|
47
|
+
}
|
42
48
|
isScrollingUp.value = currentScroll.value < previousScroll;
|
43
49
|
currentThreshold.value = Math.abs(currentScroll.value - scrollThreshold.value);
|
44
50
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scroll.mjs","names":["computed","onBeforeUnmount","onMounted","ref","shallowRef","watch","clamp","consoleWarn","propsFactory","makeScrollProps","scrollTarget","type","String","scrollThreshold","Number","default","useScroll","props","args","arguments","length","undefined","canScroll","previousScroll","target","currentScroll","savedScroll","currentThreshold","isScrollActive","isScrollingUp","scrollRatio","value","onScroll","targetEl","pageYOffset","scrollTop","Math","abs","newTarget","
|
1
|
+
{"version":3,"file":"scroll.mjs","names":["computed","onBeforeUnmount","onMounted","ref","shallowRef","watch","clamp","consoleWarn","propsFactory","makeScrollProps","scrollTarget","type","String","scrollThreshold","Number","default","useScroll","props","args","arguments","length","undefined","canScroll","previousScroll","previousScrollHeight","target","currentScroll","savedScroll","currentThreshold","isScrollActive","isScrollingUp","scrollRatio","value","onScroll","targetEl","pageYOffset","scrollTop","currentScrollHeight","Window","document","documentElement","scrollHeight","Math","abs","newTarget","querySelector","window","removeEventListener","addEventListener","passive","immediate"],"sources":["../../src/composables/scroll.ts"],"sourcesContent":["// Utilities\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\nimport { clamp, consoleWarn, propsFactory } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\nexport interface ScrollProps {\n scrollTarget?: string\n scrollThreshold?: string | number\n}\n\nexport interface ThresholdMetCallbackData {\n isScrollingUp: boolean\n currentThreshold: number\n savedScroll: Ref<number>\n}\n\n// Composables\nexport const makeScrollProps = propsFactory({\n scrollTarget: {\n type: String,\n },\n scrollThreshold: {\n type: [String, Number],\n default: 300,\n },\n}, 'scroll')\n\nexport interface ScrollArguments {\n canScroll?: Readonly<Ref<boolean>>\n}\n\nexport function useScroll (\n props: ScrollProps,\n args: ScrollArguments = {},\n) {\n const { canScroll } = args\n let previousScroll = 0\n let previousScrollHeight = 0\n const target = ref<Element | Window | null>(null)\n const currentScroll = shallowRef(0)\n const savedScroll = shallowRef(0)\n const currentThreshold = shallowRef(0)\n const isScrollActive = shallowRef(false)\n const isScrollingUp = shallowRef(false)\n\n const scrollThreshold = computed(() => {\n return Number(props.scrollThreshold)\n })\n\n /**\n * 1: at top\n * 0: at threshold\n */\n const scrollRatio = computed(() => {\n return clamp(((scrollThreshold.value - currentScroll.value) / scrollThreshold.value) || 0)\n })\n\n const onScroll = () => {\n const targetEl = target.value\n\n if (!targetEl || (canScroll && !canScroll.value)) return\n\n previousScroll = currentScroll.value\n currentScroll.value = ('window' in targetEl) ? targetEl.pageYOffset : targetEl.scrollTop\n\n const currentScrollHeight = targetEl instanceof Window ? document.documentElement.scrollHeight : targetEl.scrollHeight\n if (previousScrollHeight !== currentScrollHeight) {\n previousScrollHeight = currentScrollHeight\n return\n }\n\n isScrollingUp.value = currentScroll.value < previousScroll\n currentThreshold.value = Math.abs(currentScroll.value - scrollThreshold.value)\n }\n\n watch(isScrollingUp, () => {\n savedScroll.value = savedScroll.value || currentScroll.value\n })\n\n watch(isScrollActive, () => {\n savedScroll.value = 0\n })\n\n onMounted(() => {\n watch(() => props.scrollTarget, scrollTarget => {\n const newTarget = scrollTarget ? document.querySelector(scrollTarget) : window\n\n if (!newTarget) {\n consoleWarn(`Unable to locate element with identifier ${scrollTarget}`)\n return\n }\n\n if (newTarget === target.value) return\n\n target.value?.removeEventListener('scroll', onScroll)\n target.value = newTarget\n target.value.addEventListener('scroll', onScroll, { passive: true })\n }, { immediate: true })\n })\n\n onBeforeUnmount(() => {\n target.value?.removeEventListener('scroll', onScroll)\n })\n\n // Do we need this? If yes - seems that\n // there's no need to expose onScroll\n canScroll && watch(canScroll, onScroll, { immediate: true })\n\n return {\n scrollThreshold,\n currentScroll,\n currentThreshold,\n isScrollActive,\n scrollRatio,\n\n // required only for testing\n // probably can be removed\n // later (2 chars chlng)\n isScrollingUp,\n savedScroll,\n }\n}\n"],"mappings":"AAAA;AACA,SACEA,QAAQ,EACRC,eAAe,EACfC,SAAS,EACTC,GAAG,EACHC,UAAU,EACVC,KAAK,QACA,KAAK;AAAA,SACHC,KAAK,EAAEC,WAAW,EAAEC,YAAY,6BAEzC;AAcA;AACA,OAAO,MAAMC,eAAe,GAAGD,YAAY,CAAC;EAC1CE,YAAY,EAAE;IACZC,IAAI,EAAEC;EACR,CAAC;EACDC,eAAe,EAAE;IACfF,IAAI,EAAE,CAACC,MAAM,EAAEE,MAAM,CAAC;IACtBC,OAAO,EAAE;EACX;AACF,CAAC,EAAE,QAAQ,CAAC;AAMZ,OAAO,SAASC,SAASA,CACvBC,KAAkB,EAElB;EAAA,IADAC,IAAqB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAE1B,MAAM;IAAEG;EAAU,CAAC,GAAGJ,IAAI;EAC1B,IAAIK,cAAc,GAAG,CAAC;EACtB,IAAIC,oBAAoB,GAAG,CAAC;EAC5B,MAAMC,MAAM,GAAGtB,GAAG,CAA0B,IAAI,CAAC;EACjD,MAAMuB,aAAa,GAAGtB,UAAU,CAAC,CAAC,CAAC;EACnC,MAAMuB,WAAW,GAAGvB,UAAU,CAAC,CAAC,CAAC;EACjC,MAAMwB,gBAAgB,GAAGxB,UAAU,CAAC,CAAC,CAAC;EACtC,MAAMyB,cAAc,GAAGzB,UAAU,CAAC,KAAK,CAAC;EACxC,MAAM0B,aAAa,GAAG1B,UAAU,CAAC,KAAK,CAAC;EAEvC,MAAMS,eAAe,GAAGb,QAAQ,CAAC,MAAM;IACrC,OAAOc,MAAM,CAACG,KAAK,CAACJ,eAAe,CAAC;EACtC,CAAC,CAAC;;EAEF;AACF;AACA;AACA;EACE,MAAMkB,WAAW,GAAG/B,QAAQ,CAAC,MAAM;IACjC,OAA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AGoC,MAAM;MAE9E,IAAI,CAACF,SAAS,EAAE;QACdrC,WAAW,CAAE,4CAA2CG,YAAa,EAAC,CAAC;QACvE;MACF;MAEA,IAAIkC,SAAS,KAAKnB,MAAM,CAACO,KAAK,EAAE;MAEhCP,MAAM,CAACO,KAAK,EAAEe,mBAAmB,CAAC,QAAQ,EAAEd,QAAQ,CAAC;MACrDR,MAAM,CAACO,KAAK,GAAGY,SAAS;MACxBnB,MAAM,CAACO,KAAK,CAACgB,gBAAgB,CAAC,QAAQ,EAAEf,QAAQ,EAAE;QAAEgB,OAAO,EAAE;MAAK,CAAC,CAAC;IACtE,CAAC,EAAE;MAAEC,SAAS,EAAE;IAAK,CAAC,CAAC;EACzB,CAAC,CAAC;EAEFjD,eAAe,CAAC,MAAM;IACpBwB,MAAM,CAACO,KAAK,EAAEe,mBAAmB,CAAC,QAAQ,EAAEd,QAAQ,CAAC;EACvD,CAAC,CAAC;;EAEF;EACA;EACAX,SAAS,IAAIjB,KAAK,CAACiB,SAAS,EAAEW,QAAQ,EAAE;IAAEiB,SAAS,EAAE;EAAK,CAAC,CAAC;EAE5D,OAAO;IACLrC,eAAe;IACfa,aAAa;IACbE,gBAAgB;IAChBC,cAAc;IACdE,WAAW;IAEX;IACA;IACA;IACAD,aAAa;IACbH;EACF,CAAC;AACH","ignoreList":[]}
|
@@ -51,12 +51,14 @@ export function useValidation(props) {
|
|
51
51
|
const validateOn = computed(() => {
|
52
52
|
let value = (props.validateOn ?? form?.validateOn.value) || 'input';
|
53
53
|
if (value === 'lazy') value = 'input lazy';
|
54
|
+
if (value === 'eager') value = 'input eager';
|
54
55
|
const set = new Set(value?.split(' ') ?? []);
|
55
56
|
return {
|
56
|
-
blur: set.has('blur') || set.has('input'),
|
57
57
|
input: set.has('input'),
|
58
|
-
|
59
|
-
|
58
|
+
blur: set.has('blur') || set.has('input') || set.has('invalid-input'),
|
59
|
+
invalidInput: set.has('invalid-input'),
|
60
|
+
lazy: set.has('lazy'),
|
61
|
+
eager: set.has('eager')
|
60
62
|
};
|
61
63
|
});
|
62
64
|
const isValid = computed(() => {
|
@@ -93,11 +95,11 @@ export function useValidation(props) {
|
|
93
95
|
});
|
94
96
|
onMounted(async () => {
|
95
97
|
if (!validateOn.value.lazy) {
|
96
|
-
await validate(
|
98
|
+
await validate(!validateOn.value.eager);
|
97
99
|
}
|
98
100
|
form?.update(uid.value, isValid.value, errorMessages.value);
|
99
101
|
});
|
100
|
-
useToggleScope(() => validateOn.value.input, () => {
|
102
|
+
useToggleScope(() => validateOn.value.input || validateOn.value.invalidInput && isValid.value === false, () => {
|
101
103
|
watch(validationModel, () => {
|
102
104
|
if (validationModel.value != null) {
|
103
105
|
validate();
|
@@ -125,7 +127,7 @@ export function useValidation(props) {
|
|
125
127
|
async function resetValidation() {
|
126
128
|
isPristine.value = true;
|
127
129
|
if (!validateOn.value.lazy) {
|
128
|
-
await validate(
|
130
|
+
await validate(!validateOn.value.eager);
|
129
131
|
} else {
|
130
132
|
internalErrorMessages.value = [];
|
131
133
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.mjs","names":["makeFocusProps","useForm","useProxiedModel","useToggleScope","computed","nextTick","onBeforeMount","onBeforeUnmount","onMounted","ref","shallowRef","unref","watch","getCurrentInstance","getCurrentInstanceName","getUid","propsFactory","wrapInArray","makeValidationProps","disabled","type","Boolean","default","error","errorMessages","Array","String","maxErrors","Number","name","label","readonly","rules","modelValue","validateOn","validationValue","useValidation","props","arguments","length","undefined","id","model","validationModel","value","form","internalErrorMessages","isPristine","isDirty","isDisabled","isReadonly","concat","slice","Math","max","set","Set","split","blur","has","input","submit","lazy","isValid","isValidating","validationClasses","vm","uid","register","validate","reset","resetValidation","unregister","update","focused","unwatch","val","silent","results","rule","handler","result","console","warn","push"],"sources":["../../src/composables/validation.ts"],"sourcesContent":["// Composables\nimport { makeFocusProps } from '@/composables/focus'\nimport { useForm } from '@/composables/form'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useToggleScope } from '@/composables/toggleScope'\n\n// Utilities\nimport { computed, nextTick, onBeforeMount, onBeforeUnmount, onMounted, ref, shallowRef, unref, watch } from 'vue'\nimport { getCurrentInstance, getCurrentInstanceName, getUid, propsFactory, wrapInArray } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { EventProp, MaybeRef } from '@/util'\n\nexport type ValidationResult = string | boolean\nexport type ValidationRule =\n | ValidationResult\n | PromiseLike<ValidationResult>\n | ((value: any) => ValidationResult)\n | ((value: any) => PromiseLike<ValidationResult>)\n\ntype ValidateOnValue = 'blur' | 'input' | 'submit'\n\nexport interface ValidationProps {\n disabled: boolean | null\n error: boolean\n errorMessages: string | readonly string[] | null\n focused: boolean\n maxErrors: string | number\n name: string | undefined\n label: string | undefined\n readonly: boolean | null\n rules: readonly ValidationRule[]\n modelValue: any\n 'onUpdate:modelValue': EventProp | undefined\n validateOn?: ValidateOnValue | `${ValidateOnValue} lazy` | `lazy ${ValidateOnValue}` | 'lazy'\n validationValue: any\n}\n\nexport const makeValidationProps = propsFactory({\n disabled: {\n type: Boolean as PropType<boolean | null>,\n default: null,\n },\n error: Boolean,\n errorMessages: {\n type: [Array, String] as PropType<string | readonly string[] | null>,\n default: () => ([]),\n },\n maxErrors: {\n type: [Number, String],\n default: 1,\n },\n name: String,\n label: String,\n readonly: {\n type: Boolean as PropType<boolean | null>,\n default: null,\n },\n rules: {\n type: Array as PropType<readonly ValidationRule[]>,\n default: () => ([]),\n },\n modelValue: null,\n validateOn: String as PropType<ValidationProps['validateOn']>,\n validationValue: null,\n\n ...makeFocusProps(),\n}, 'validation')\n\nexport function useValidation (\n props: ValidationProps,\n name = getCurrentInstanceName(),\n id: MaybeRef<string | number> = getUid(),\n) {\n const model = useProxiedModel(props, 'modelValue')\n const validationModel = computed(() => props.validationValue === undefined ? model.value : props.validationValue)\n const form = useForm()\n const internalErrorMessages = ref<string[]>([])\n const isPristine = shallowRef(true)\n const isDirty = computed(() => !!(\n wrapInArray(model.value === '' ? null : model.value).length ||\n wrapInArray(validationModel.value === '' ? null : validationModel.value).length\n ))\n const isDisabled = computed(() => !!(props.disabled ?? form?.isDisabled.value))\n const isReadonly = computed(() => !!(props.readonly ?? form?.isReadonly.value))\n const errorMessages = computed(() => {\n return props.errorMessages?.length\n ? wrapInArray(props.errorMessages).concat(internalErrorMessages.value).slice(0, Math.max(0, +props.maxErrors))\n : internalErrorMessages.value\n })\n const validateOn = computed(() => {\n let value = (props.validateOn ?? form?.validateOn.value) || 'input'\n if (value === 'lazy') value = 'input lazy'\n const set = new Set(value?.split(' ') ?? [])\n\n return {\n blur: set.has('blur') || set.has('input'),\n input: set.has('input'),\n submit: set.has('submit'),\n lazy: set.has('lazy'),\n }\n })\n const isValid = computed(() => {\n if (props.error || props.errorMessages?.length) return false\n if (!props.rules.length) return true\n if (isPristine.value) {\n return internalErrorMessages.value.length || validateOn.value.lazy ? null : true\n } else {\n return !internalErrorMessages.value.length\n }\n })\n const isValidating = shallowRef(false)\n const validationClasses = computed(() => {\n return {\n [`${name}--error`]: isValid.value === false,\n [`${name}--dirty`]: isDirty.value,\n [`${name}--disabled`]: isDisabled.value,\n [`${name}--readonly`]: isReadonly.value,\n }\n })\n\n const vm = getCurrentInstance('validation')\n const uid = computed(() => props.name ?? unref(id))\n\n onBeforeMount(() => {\n form?.register({\n id: uid.value,\n vm,\n validate,\n reset,\n resetValidation,\n })\n })\n\n onBeforeUnmount(() => {\n form?.unregister(uid.value)\n })\n\n onMounted(async () => {\n if (!validateOn.value.lazy) {\n await validate(true)\n }\n form?.update(uid.value, isValid.value, errorMessages.value)\n })\n\n useToggleScope(() => validateOn.value.input, () => {\n watch(validationModel, () => {\n if (validationModel.value != null) {\n validate()\n } else if (props.focused) {\n const unwatch = watch(() => props.focused, val => {\n if (!val) validate()\n\n unwatch()\n })\n }\n })\n })\n\n useToggleScope(() => validateOn.value.blur, () => {\n watch(() => props.focused, val => {\n if (!val) validate()\n })\n })\n\n watch([isValid, errorMessages], () => {\n form?.update(uid.value, isValid.value, errorMessages.value)\n })\n\n async function reset () {\n model.value = null\n await nextTick()\n await resetValidation()\n }\n\n async function resetValidation () {\n isPristine.value = true\n if (!validateOn.value.lazy) {\n await validate(true)\n } else {\n internalErrorMessages.value = []\n }\n }\n\n async function validate (silent = false) {\n const results = []\n\n isValidating.value = true\n\n for (const rule of props.rules) {\n if (results.length >= +(props.maxErrors ?? 1)) {\n break\n }\n\n const handler = typeof rule === 'function' ? rule : () => rule\n const result = await handler(validationModel.value)\n\n if (result === true) continue\n\n if (result !== false && typeof result !== 'string') {\n // eslint-disable-next-line no-console\n console.warn(`${result} is not a valid value. Rule functions must return boolean true or a string.`)\n\n continue\n }\n\n results.push(result || '')\n }\n\n internalErrorMessages.value = results\n isValidating.value = false\n isPristine.value = silent\n\n return internalErrorMessages.value\n }\n\n return {\n errorMessages,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n validationClasses,\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,cAAc;AAAA,SACdC,OAAO;AAAA,SACPC,eAAe;AAAA,SACfC,cAAc,6BAEvB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,eAAe,EAAEC,SAAS,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACzGC,kBAAkB,EAAEC,sBAAsB,EAAEC,MAAM,EAAEC,YAAY,EAAEC,WAAW,6BAEtF;AA6BA,OAAO,MAAMC,mBAAmB,GAAGF,YAAY,CAAC;EAC9CG,QAAQ,EAAE;IACRC,IAAI,EAAEC,OAAmC;IACzCC,OAAO,EAAE;EACX,CAAC;EACDC,KAAK,EAAEF,OAAO;EACdG,aAAa,EAAE;IACbJ,IAAI,EAAE,CAACK,KAAK,EAAEC,MAAM,CAAgD;IACpEJ,OAAO,EAAEA,CAAA,KAAO;EAClB,CAAC;EACDK,SAAS,EAAE;IACT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;IAEAnC,qBAAqB,CAACF,KAAK,GAAGkC,OAAO;IACrCd,YAAY,CAACpB,KAAK,GAAG,KAAK;IAC1BG,UAAU,CAACH,KAAK,GAAGiC,MAAM;IAEzB,OAAO/B,qBAAqB,CAACF,KAAK;EACpC;EAEA,OAAO;IACLpB,aAAa;IACbwB,OAAO;IACPC,UAAU;IACVC,UAAU;IACVH,UAAU;IACVgB,OAAO;IACPC,YAAY;IACZM,KAAK;IACLC,eAAe;IACfF,QAAQ;IACRJ;EACF,CAAC;AACH","ignoreList":[]}
|
1
|
+
{"version":3,"file":"validation.mjs","names":["makeFocusProps","useForm","useProxiedModel","useToggleScope","computed","nextTick","onBeforeMount","onBeforeUnmount","onMounted","ref","shallowRef","unref","watch","getCurrentInstance","getCurrentInstanceName","getUid","propsFactory","wrapInArray","makeValidationProps","disabled","type","Boolean","default","error","errorMessages","Array","String","maxErrors","Number","name","label","readonly","rules","modelValue","validateOn","validationValue","useValidation","props","arguments","length","undefined","id","model","validationModel","value","form","internalErrorMessages","isPristine","isDirty","isDisabled","isReadonly","concat","slice","Math","max","set","Set","split","input","has","blur","invalidInput","lazy","eager","isValid","isValidating","validationClasses","vm","uid","register","validate","reset","resetValidation","unregister","update","focused","unwatch","val","silent","results","rule","handler","result","console","warn","push"],"sources":["../../src/composables/validation.ts"],"sourcesContent":["// Composables\nimport { makeFocusProps } from '@/composables/focus'\nimport { useForm } from '@/composables/form'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useToggleScope } from '@/composables/toggleScope'\n\n// Utilities\nimport { computed, nextTick, onBeforeMount, onBeforeUnmount, onMounted, ref, shallowRef, unref, watch } from 'vue'\nimport { getCurrentInstance, getCurrentInstanceName, getUid, propsFactory, wrapInArray } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { EventProp, MaybeRef } from '@/util'\n\nexport type ValidationResult = string | boolean\nexport type ValidationRule =\n | ValidationResult\n | PromiseLike<ValidationResult>\n | ((value: any) => ValidationResult)\n | ((value: any) => PromiseLike<ValidationResult>)\n\ntype ValidateOnValue = 'blur' | 'input' | 'submit' | 'invalid-input'\ntype ValidateOn =\n | ValidateOnValue\n | `${ValidateOnValue} lazy`\n | `${ValidateOnValue} eager`\n | `lazy ${ValidateOnValue}`\n | `eager ${ValidateOnValue}`\n | 'lazy'\n | 'eager'\n\nexport interface ValidationProps {\n disabled: boolean | null\n error: boolean\n errorMessages: string | readonly string[] | null\n focused: boolean\n maxErrors: string | number\n name: string | undefined\n label: string | undefined\n readonly: boolean | null\n rules: readonly ValidationRule[]\n modelValue: any\n 'onUpdate:modelValue': EventProp | undefined\n validateOn?: ValidateOn\n validationValue: any\n}\n\nexport const makeValidationProps = propsFactory({\n disabled: {\n type: Boolean as PropType<boolean | null>,\n default: null,\n },\n error: Boolean,\n errorMessages: {\n type: [Array, String] as PropType<string | readonly string[] | null>,\n default: () => ([]),\n },\n maxErrors: {\n type: [Number, String],\n default: 1,\n },\n name: String,\n label: String,\n readonly: {\n type: Boolean as PropType<boolean | null>,\n default: null,\n },\n rules: {\n type: Array as PropType<readonly ValidationRule[]>,\n default: () => ([]),\n },\n modelValue: null,\n validateOn: String as PropType<ValidationProps['validateOn']>,\n validationValue: null,\n\n ...makeFocusProps(),\n}, 'validation')\n\nexport function useValidation (\n props: ValidationProps,\n name = getCurrentInstanceName(),\n id: MaybeRef<string | number> = getUid(),\n) {\n const model = useProxiedModel(props, 'modelValue')\n const validationModel = computed(() => props.validationValue === undefined ? model.value : props.validationValue)\n const form = useForm()\n const internalErrorMessages = ref<string[]>([])\n const isPristine = shallowRef(true)\n const isDirty = computed(() => !!(\n wrapInArray(model.value === '' ? null : model.value).length ||\n wrapInArray(validationModel.value === '' ? null : validationModel.value).length\n ))\n const isDisabled = computed(() => !!(props.disabled ?? form?.isDisabled.value))\n const isReadonly = computed(() => !!(props.readonly ?? form?.isReadonly.value))\n const errorMessages = computed(() => {\n return props.errorMessages?.length\n ? wrapInArray(props.errorMessages).concat(internalErrorMessages.value).slice(0, Math.max(0, +props.maxErrors))\n : internalErrorMessages.value\n })\n const validateOn = computed(() => {\n let value = (props.validateOn ?? form?.validateOn.value) || 'input'\n if (value === 'lazy') value = 'input lazy'\n if (value === 'eager') value = 'input eager'\n const set = new Set(value?.split(' ') ?? [])\n\n return {\n input: set.has('input'),\n blur: set.has('blur') || set.has('input') || set.has('invalid-input'),\n invalidInput: set.has('invalid-input'),\n lazy: set.has('lazy'),\n eager: set.has('eager'),\n }\n })\n const isValid = computed(() => {\n if (props.error || props.errorMessages?.length) return false\n if (!props.rules.length) return true\n if (isPristine.value) {\n return internalErrorMessages.value.length || validateOn.value.lazy ? null : true\n } else {\n return !internalErrorMessages.value.length\n }\n })\n const isValidating = shallowRef(false)\n const validationClasses = computed(() => {\n return {\n [`${name}--error`]: isValid.value === false,\n [`${name}--dirty`]: isDirty.value,\n [`${name}--disabled`]: isDisabled.value,\n [`${name}--readonly`]: isReadonly.value,\n }\n })\n\n const vm = getCurrentInstance('validation')\n const uid = computed(() => props.name ?? unref(id))\n\n onBeforeMount(() => {\n form?.register({\n id: uid.value,\n vm,\n validate,\n reset,\n resetValidation,\n })\n })\n\n onBeforeUnmount(() => {\n form?.unregister(uid.value)\n })\n\n onMounted(async () => {\n if (!validateOn.value.lazy) {\n await validate(!validateOn.value.eager)\n }\n form?.update(uid.value, isValid.value, errorMessages.value)\n })\n\n useToggleScope(() => validateOn.value.input || (validateOn.value.invalidInput && isValid.value === false), () => {\n watch(validationModel, () => {\n if (validationModel.value != null) {\n validate()\n } else if (props.focused) {\n const unwatch = watch(() => props.focused, val => {\n if (!val) validate()\n\n unwatch()\n })\n }\n })\n })\n\n useToggleScope(() => validateOn.value.blur, () => {\n watch(() => props.focused, val => {\n if (!val) validate()\n })\n })\n\n watch([isValid, errorMessages], () => {\n form?.update(uid.value, isValid.value, errorMessages.value)\n })\n\n async function reset () {\n model.value = null\n await nextTick()\n await resetValidation()\n }\n\n async function resetValidation () {\n isPristine.value = true\n if (!validateOn.value.lazy) {\n await validate(!validateOn.value.eager)\n } else {\n internalErrorMessages.value = []\n }\n }\n\n async function validate (silent = false) {\n const results = []\n\n isValidating.value = true\n\n for (const rule of props.rules) {\n if (results.length >= +(props.maxErrors ?? 1)) {\n break\n }\n\n const handler = typeof rule === 'function' ? rule : () => rule\n const result = await handler(validationModel.value)\n\n if (result === true) continue\n\n if (result !== false && typeof result !== 'string') {\n // eslint-disable-next-line no-console\n console.warn(`${result} is not a valid value. Rule functions must return boolean true or a string.`)\n\n continue\n }\n\n results.push(result || '')\n }\n\n internalErrorMessages.value = results\n isValidating.value = false\n isPristine.value = silent\n\n return internalErrorMessages.value\n }\n\n return {\n errorMessages,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n validationClasses,\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,cAAc;AAAA,SACdC,OAAO;AAAA,SACPC,eAAe;AAAA,SACfC,cAAc,6BAEvB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,eAAe,EAAEC,SAAS,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACzGC,kBAAkB,EAAEC,sBAAsB,EAAEC,MAAM,EAAEC,YAAY,EAAEC,WAAW,6BAEtF;AAqCA,OAAO,MAAMC,mBAAmB,GAAGF,YAAY,CAAC;EAC9CG,QAAQ,EAAE;IACRC,IAAI,EAAEC,OAAmC;IACzCC,OAAO,EAAE;EACX,CAAC;EACDC,KAAK,EAAEF,OAAO;EACdG,aAAa,EAAE;IACbJ,IAAI,EAAE,CAACK,KAAK,EAAEC,MAAM,CAAgD;IACpEJ,OAAO,EAAEA,CAAA,KAAO;EAClB,CAAC;EACDK,SAAS,EAAE;IACTP,IAAI,EAAE,CAACQ,MAAM,EAAEF,MAAM,CAAC;IACtBJ,OAAO,EAAE;EACX,CAAC;EACDO,IAAI,EAAEH,MAAM;EACZI,KA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M,KAAK,KAAK,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;QAClD;QACAC,OAAO,CAACC,IAAI,CAAE,GAAEF,MAAO,6EAA4E,CAAC;QAEpG;MACF;MAEAH,OAAO,CAACM,IAAI,CAACH,MAAM,IAAI,EAAE,CAAC;IAC5B;IAEApC,qBAAqB,CAACF,KAAK,GAAGmC,OAAO;IACrCd,YAAY,CAACrB,KAAK,GAAG,KAAK;IAC1BG,UAAU,CAACH,KAAK,GAAGkC,MAAM;IAEzB,OAAOhC,qBAAqB,CAACF,KAAK;EACpC;EAEA,OAAO;IACLpB,aAAa;IACbwB,OAAO;IACPC,UAAU;IACVC,UAAU;IACVH,UAAU;IACViB,OAAO;IACPC,YAAY;IACZM,KAAK;IACLC,eAAe;IACfF,QAAQ;IACRJ;EACF,CAAC;AACH","ignoreList":[]}
|
package/lib/entry-bundler.mjs
CHANGED
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
16
16
|
...options
|
17
17
|
});
|
18
18
|
};
|
19
|
-
export const version = "3.6.
|
19
|
+
export const version = "3.6.9-dev.2024-06-20";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.mjs";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entry-bundler.mjs","names":["blueprints","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 blueprints from './blueprints'\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 blueprints,\n components,\n directives,\n}\nexport * from './composables'\n"],"mappings":"AAAA;;AAEA;AACA;;AAEA;AAAA,OACO,KAAKA,UAAU;AAAA,OACf,KAAKC,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":["blueprints","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 blueprints from './blueprints'\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 blueprints,\n components,\n directives,\n}\nexport * from './composables'\n"],"mappings":"AAAA;;AAEA;AACA;;AAEA;AAAA,OACO,KAAKA,UAAU;AAAA,OACf,KAAKC,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,SACET,UAAU,EACVC,UAAU,EACVC,UAAU;AACX","ignoreList":[]}
|
package/lib/framework.mjs
CHANGED
package/lib/framework.mjs.map
CHANGED
@@ -1 +1 @@
|
|
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, DateModule } 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,MAAM;IAAEG,SAAS;IAAE,GAAGC;EAAK,CAAC,GAAGL,OAAO;EACtC,MAAMM,OAAuB,GAAGR,SAAS,CAACM,SAAS,EAAEC,IAAI,CAAC;EAC1D,MAAM;IACJE,OAAO,GAAG,CAAC,CAAC;IACZC,UAAU,GAAG,CAAC,CAAC;IACfC,UAAU,GAAG,CAA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ACC,IAAI,CAAC,IAAI,EAAEtD,aAAa,CAAC;cACzC6B,KAAK,EAAEwB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAE9C,WAAW,CAAC;cACrCsB,KAAK,EAAEuB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAElD,UAAU,CAAC;cACpC2B,MAAM,EAAEsB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAEhD,YAAY,CAAC;cACvC0B,IAAI,EAAEqB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAE3D,iBAAiB;YAC3C,CAAC,CAAC;UACJ;QACF;MACF,CAAC,CAAC;IACJ;EACF,CAAC;EAED,OAAO;IACLuC,OAAO;IACPR,QAAQ;IACRC,OAAO;IACPE,KAAK;IACLC,KAAK;IACLC,MAAM;IACNC,IAAI;IACJC;EACF,CAAC;AACH;AAEA,OAAO,MAAMsB,OAAO,
|
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, DateModule } 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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F","ignoreList":[]}
|
package/lib/index.d.mts
CHANGED
@@ -495,35 +495,45 @@ declare module '@vue/runtime-core' {
|
|
495
495
|
VApp: typeof import('vuetify/components')['VApp']
|
496
496
|
VAlert: typeof import('vuetify/components')['VAlert']
|
497
497
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
498
|
-
VAvatar: typeof import('vuetify/components')['VAvatar']
|
499
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
500
498
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
501
499
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
502
500
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
501
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
503
502
|
VBadge: typeof import('vuetify/components')['VBadge']
|
504
503
|
VBanner: typeof import('vuetify/components')['VBanner']
|
505
504
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
506
505
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
506
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
507
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
508
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
509
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
507
510
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
508
511
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
509
512
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
510
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
511
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
512
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
513
|
-
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
514
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
515
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
516
513
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
517
|
-
VChip: typeof import('vuetify/components')['VChip']
|
518
|
-
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
519
|
-
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
520
514
|
VCard: typeof import('vuetify/components')['VCard']
|
521
515
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
522
516
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
523
517
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
524
518
|
VCardText: typeof import('vuetify/components')['VCardText']
|
525
519
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
520
|
+
VChip: typeof import('vuetify/components')['VChip']
|
521
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
522
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
523
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
524
|
+
VCode: typeof import('vuetify/components')['VCode']
|
525
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
526
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
527
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
526
528
|
VCombobox: typeof import('vuetify/components')['VCombobox']
|
529
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
530
|
+
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
531
|
+
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
532
|
+
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
533
|
+
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
534
|
+
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
535
|
+
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
536
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
527
537
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
528
538
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
529
539
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -531,40 +541,30 @@ declare module '@vue/runtime-core' {
|
|
531
541
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
532
542
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
533
543
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
534
|
-
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
535
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
536
|
-
VCode: typeof import('vuetify/components')['VCode']
|
537
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
538
544
|
VDialog: typeof import('vuetify/components')['VDialog']
|
539
|
-
|
540
|
-
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
541
|
-
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
542
|
-
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
543
|
-
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
544
|
-
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
545
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
545
546
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
546
547
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
547
548
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
548
549
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
549
|
-
VDivider: typeof import('vuetify/components')['VDivider']
|
550
550
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
551
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
551
552
|
VField: typeof import('vuetify/components')['VField']
|
552
553
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
553
554
|
VFab: typeof import('vuetify/components')['VFab']
|
554
|
-
|
555
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
556
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
555
557
|
VIcon: typeof import('vuetify/components')['VIcon']
|
556
558
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
557
559
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
558
560
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
559
561
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
560
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
561
562
|
VImg: typeof import('vuetify/components')['VImg']
|
562
|
-
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
563
563
|
VInput: typeof import('vuetify/components')['VInput']
|
564
564
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
565
565
|
VItem: typeof import('vuetify/components')['VItem']
|
566
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
567
566
|
VKbd: typeof import('vuetify/components')['VKbd']
|
567
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
568
568
|
VList: typeof import('vuetify/components')['VList']
|
569
569
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
570
570
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -574,72 +574,72 @@ declare module '@vue/runtime-core' {
|
|
574
574
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
575
575
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
576
576
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
577
|
-
VMenu: typeof import('vuetify/components')['VMenu']
|
578
577
|
VMessages: typeof import('vuetify/components')['VMessages']
|
578
|
+
VMain: typeof import('vuetify/components')['VMain']
|
579
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
580
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
579
581
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
580
582
|
VPagination: typeof import('vuetify/components')['VPagination']
|
581
|
-
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
582
|
-
VMain: typeof import('vuetify/components')['VMain']
|
583
583
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
584
584
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
585
|
-
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
586
585
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
587
586
|
VRating: typeof import('vuetify/components')['VRating']
|
587
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
588
588
|
VSelect: typeof import('vuetify/components')['VSelect']
|
589
|
+
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
589
590
|
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
590
591
|
VSheet: typeof import('vuetify/components')['VSheet']
|
591
592
|
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
593
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
594
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
595
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
592
596
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
593
597
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
594
|
-
|
595
|
-
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
596
|
-
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
598
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
597
599
|
VStepper: typeof import('vuetify/components')['VStepper']
|
598
600
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
599
601
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
600
602
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
601
603
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
602
604
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
603
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
604
|
-
VTable: typeof import('vuetify/components')['VTable']
|
605
|
-
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
606
605
|
VTab: typeof import('vuetify/components')['VTab']
|
607
606
|
VTabs: typeof import('vuetify/components')['VTabs']
|
608
607
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
609
608
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
609
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
610
610
|
VTextField: typeof import('vuetify/components')['VTextField']
|
611
|
-
|
612
|
-
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
611
|
+
VTable: typeof import('vuetify/components')['VTable']
|
613
612
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
614
613
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
615
614
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
616
|
-
|
615
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
616
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
617
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
617
618
|
VWindow: typeof import('vuetify/components')['VWindow']
|
618
619
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
619
|
-
VTooltip: typeof import('vuetify/components')['VTooltip']
|
620
620
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
621
|
-
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
622
621
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
623
|
-
|
622
|
+
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
623
|
+
VHover: typeof import('vuetify/components')['VHover']
|
624
624
|
VContainer: typeof import('vuetify/components')['VContainer']
|
625
625
|
VCol: typeof import('vuetify/components')['VCol']
|
626
626
|
VRow: typeof import('vuetify/components')['VRow']
|
627
627
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
628
|
-
|
629
|
-
|
628
|
+
VForm: typeof import('vuetify/components')['VForm']
|
629
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
630
630
|
VLayout: typeof import('vuetify/components')['VLayout']
|
631
631
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
632
|
-
|
633
|
-
VParallax: typeof import('vuetify/components')['VParallax']
|
632
|
+
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
634
633
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
634
|
+
VParallax: typeof import('vuetify/components')['VParallax']
|
635
635
|
VRadio: typeof import('vuetify/components')['VRadio']
|
636
|
-
VResponsive: typeof import('vuetify/components')['VResponsive']
|
637
636
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
638
|
-
|
637
|
+
VResponsive: typeof import('vuetify/components')['VResponsive']
|
639
638
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
639
|
+
VSparkline: typeof import('vuetify/components')['VSparkline']
|
640
640
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
641
|
-
VValidation: typeof import('vuetify/components')['VValidation']
|
642
641
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
642
|
+
VValidation: typeof import('vuetify/components')['VValidation']
|
643
643
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
644
644
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
645
645
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
@@ -656,26 +656,26 @@ declare module '@vue/runtime-core' {
|
|
656
656
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
657
657
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
658
658
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
659
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
659
660
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
660
661
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
661
662
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
662
663
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
663
664
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
664
665
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
666
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
667
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
665
668
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
666
669
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
667
670
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
668
|
-
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
669
|
-
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
670
|
-
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
671
|
-
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
672
|
-
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
673
|
-
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
674
671
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
675
672
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
676
673
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
674
|
+
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
675
|
+
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
676
|
+
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
677
677
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
678
|
-
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
679
678
|
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
679
|
+
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
680
680
|
}
|
681
681
|
}
|
@@ -88,7 +88,7 @@ declare const VDateInput: {
|
|
88
88
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
89
89
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
90
90
|
modelValue?: any;
|
91
|
-
validateOn?: ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined;
|
91
|
+
validateOn?: (("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input" | "lazy" | "eager") | undefined;
|
92
92
|
validationValue?: any;
|
93
93
|
rounded?: string | number | boolean | undefined;
|
94
94
|
maxHeight?: string | number | undefined;
|
@@ -200,7 +200,7 @@ declare const VDateInput: {
|
|
200
200
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
201
201
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
202
202
|
modelValue?: any;
|
203
|
-
validateOn?: ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined;
|
203
|
+
validateOn?: (("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input" | "lazy" | "eager") | undefined;
|
204
204
|
validationValue?: any;
|
205
205
|
rounded?: string | number | boolean | undefined;
|
206
206
|
maxHeight?: string | number | undefined;
|
@@ -372,7 +372,7 @@ declare const VDateInput: {
|
|
372
372
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
373
373
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
374
374
|
modelValue?: any;
|
375
|
-
validateOn?: ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined;
|
375
|
+
validateOn?: (("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input" | "lazy" | "eager") | undefined;
|
376
376
|
validationValue?: any;
|
377
377
|
rounded?: string | number | boolean | undefined;
|
378
378
|
maxHeight?: string | number | undefined;
|
@@ -537,7 +537,7 @@ declare const VDateInput: {
|
|
537
537
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
538
538
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
539
539
|
modelValue?: any;
|
540
|
-
validateOn?: ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined;
|
540
|
+
validateOn?: (("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input" | "lazy" | "eager") | undefined;
|
541
541
|
validationValue?: any;
|
542
542
|
rounded?: string | number | boolean | undefined;
|
543
543
|
maxHeight?: string | number | undefined;
|
@@ -795,7 +795,7 @@ declare const VDateInput: {
|
|
795
795
|
type: vue.PropType<readonly ValidationRule[]>;
|
796
796
|
default: () => never[];
|
797
797
|
};
|
798
|
-
validateOn: vue.PropType<("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined>;
|
798
|
+
validateOn: vue.PropType<(("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input" | "lazy" | "eager") | undefined>;
|
799
799
|
validationValue: null;
|
800
800
|
density: {
|
801
801
|
type: vue.PropType<Density>;
|
@@ -1008,7 +1008,7 @@ declare const VDateInput: {
|
|
1008
1008
|
type: vue.PropType<readonly ValidationRule[]>;
|
1009
1009
|
default: () => never[];
|
1010
1010
|
};
|
1011
|
-
validateOn: vue.PropType<("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined>;
|
1011
|
+
validateOn: vue.PropType<(("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input" | "lazy" | "eager") | undefined>;
|
1012
1012
|
validationValue: null;
|
1013
1013
|
density: {
|
1014
1014
|
type: vue.PropType<Density>;
|