@vuetify/nightly 3.8.3-master.2025-05-02 → 3.8.3-master.2025-05-04
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 +5 -3
- package/dist/json/attributes.json +3068 -3068
- package/dist/json/importMap-labs.json +8 -8
- package/dist/json/importMap.json +168 -168
- package/dist/json/web-types.json +5445 -5445
- package/dist/vuetify-labs.cjs +8 -6
- package/dist/vuetify-labs.css +4661 -4661
- package/dist/vuetify-labs.d.ts +53 -53
- package/dist/vuetify-labs.esm.js +8 -6
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +8 -6
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +8 -6
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +2640 -2640
- package/dist/vuetify.d.ts +53 -53
- package/dist/vuetify.esm.js +8 -6
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +8 -6
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +8 -8
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +5 -3
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +53 -53
- package/lib/framework.js +1 -1
- package/package.json +1 -1
@@ -89,11 +89,12 @@ export const VTextField = genericComponent()({
|
|
89
89
|
onFocus();
|
90
90
|
emit('click:control', e);
|
91
91
|
}
|
92
|
-
function onClear(e) {
|
92
|
+
function onClear(e, reset) {
|
93
93
|
e.stopPropagation();
|
94
94
|
onFocus();
|
95
95
|
nextTick(() => {
|
96
96
|
model.value = null;
|
97
|
+
reset();
|
97
98
|
callEvent(props['onClick:clear'], e);
|
98
99
|
});
|
99
100
|
}
|
@@ -138,13 +139,14 @@ export const VTextField = genericComponent()({
|
|
138
139
|
isDisabled,
|
139
140
|
isDirty,
|
140
141
|
isReadonly,
|
141
|
-
isValid
|
142
|
+
isValid,
|
143
|
+
reset
|
142
144
|
} = _ref2;
|
143
145
|
return _createVNode(VField, _mergeProps({
|
144
146
|
"ref": vFieldRef,
|
145
147
|
"onMousedown": onControlMousedown,
|
146
148
|
"onClick": onControlClick,
|
147
|
-
"onClick:clear": onClear,
|
149
|
+
"onClick:clear": e => onClear(e, reset),
|
148
150
|
"onClick:prependInner": props['onClick:prependInner'],
|
149
151
|
"onClick:appendInner": props['onClick:appendInner'],
|
150
152
|
"role": props.role
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VTextField.js","names":["VCounter","makeVFieldProps","VField","makeVInputProps","VInput","useFocus","forwardRefs","useProxiedModel","Intersect","cloneVNode","computed","nextTick","ref","callEvent","filterInputAttrs","genericComponent","propsFactory","useRender","activeTypes","makeVTextFieldProps","autofocus","Boolean","counter","Number","String","counterValue","Function","prefix","placeholder","persistentPlaceholder","persistentCounter","suffix","role","type","default","modelModifiers","Object","VTextField","name","directives","inheritAttrs","props","emits","e","focused","val","setup","_ref","attrs","emit","slots","model","isFocused","focus","blur","value","toString","length","max","maxlength","undefined","isPlainOrUnderlined","includes","variant","onIntersect","isIntersecting","entries","target","vInputRef","vFieldRef","inputRef","isActive","active","onFocus","document","activeElement","onControlMousedown","preventDefault","onControlClick","onClear","stopPropagation","onInput","el","trim","caretPosition","selectionStart","selectionEnd","hasCounter","hasDetails","details","rootAttrs","inputAttrs","modelValue","_","inputProps","filterProps","fieldProps","_createVNode","_mergeProps","$event","class","style","_ref2","id","isDisabled","isDirty","isReadonly","isValid","dirty","_ref3","fieldClass","slotProps","inputNode","_withDirectives","_resolveDirective","handler","once","_Fragment","disabled"],"sources":["../../../src/components/VTextField/VTextField.tsx"],"sourcesContent":["// Styles\nimport './VTextField.sass'\n\n// Components\nimport { VCounter } from '@/components/VCounter/VCounter'\nimport { makeVFieldProps, VField } from '@/components/VField/VField'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\n\n// Composables\nimport { useFocus } from '@/composables/focus'\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Directives\nimport Intersect from '@/directives/intersect'\n\n// Utilities\nimport { cloneVNode, computed, nextTick, ref } from 'vue'\nimport { callEvent, filterInputAttrs, genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { VCounterSlot } from '@/components/VCounter/VCounter'\nimport type { VFieldSlots } from '@/components/VField/VField'\nimport type { VInputSlots } from '@/components/VInput/VInput'\n\nconst activeTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'month']\n\nexport const makeVTextFieldProps = propsFactory({\n autofocus: Boolean,\n counter: [Boolean, Number, String],\n counterValue: [Number, Function] as PropType<number | ((value: any) => number)>,\n prefix: String,\n placeholder: String,\n persistentPlaceholder: Boolean,\n persistentCounter: Boolean,\n suffix: String,\n role: String,\n type: {\n type: String,\n default: 'text',\n },\n modelModifiers: Object as PropType<Record<string, boolean>>,\n\n ...makeVInputProps(),\n ...makeVFieldProps(),\n}, 'VTextField')\n\nexport type VTextFieldSlots = Omit<VInputSlots & VFieldSlots, 'default'> & {\n default: never\n counter: VCounterSlot\n}\n\nexport const VTextField = genericComponent<VTextFieldSlots>()({\n name: 'VTextField',\n\n directives: { Intersect },\n\n inheritAttrs: false,\n\n props: makeVTextFieldProps(),\n\n emits: {\n 'click:control': (e: MouseEvent) => true,\n 'mousedown:control': (e: MouseEvent) => true,\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': (val: string) => true,\n },\n\n setup (props, { attrs, emit, slots }) {\n const model = useProxiedModel(props, 'modelValue')\n const { isFocused, focus, blur } = useFocus(props)\n const counterValue = computed(() => {\n return typeof props.counterValue === 'function' ? props.counterValue(model.value)\n : typeof props.counterValue === 'number' ? props.counterValue\n : (model.value ?? '').toString().length\n })\n const max = computed(() => {\n if (attrs.maxlength) return attrs.maxlength as unknown as undefined\n\n if (\n !props.counter ||\n (typeof props.counter !== 'number' &&\n typeof props.counter !== 'string')\n ) return undefined\n\n return props.counter\n })\n\n const isPlainOrUnderlined = computed(() => ['plain', 'underlined'].includes(props.variant))\n\n function onIntersect (\n isIntersecting: boolean,\n entries: IntersectionObserverEntry[]\n ) {\n if (!props.autofocus || !isIntersecting) return\n\n (entries[0].target as HTMLInputElement)?.focus?.()\n }\n\n const vInputRef = ref<VInput>()\n const vFieldRef = ref<VField>()\n const inputRef = ref<HTMLInputElement>()\n const isActive = computed(() => (\n activeTypes.includes(props.type) ||\n props.persistentPlaceholder ||\n isFocused.value ||\n props.active\n ))\n function onFocus () {\n if (inputRef.value !== document.activeElement) {\n inputRef.value?.focus()\n }\n\n if (!isFocused.value) focus()\n }\n function onControlMousedown (e: MouseEvent) {\n emit('mousedown:control', e)\n\n if (e.target === inputRef.value) return\n\n onFocus()\n e.preventDefault()\n }\n function onControlClick (e: MouseEvent) {\n onFocus()\n\n emit('click:control', e)\n }\n function onClear (e: MouseEvent) {\n e.stopPropagation()\n\n onFocus()\n\n nextTick(() => {\n model.value = null\n\n callEvent(props['onClick:clear'], e)\n })\n }\n function onInput (e: Event) {\n const el = e.target as HTMLInputElement\n model.value = el.value\n if (\n props.modelModifiers?.trim &&\n ['text', 'search', 'password', 'tel', 'url'].includes(props.type)\n ) {\n const caretPosition = [el.selectionStart, el.selectionEnd]\n nextTick(() => {\n el.selectionStart = caretPosition[0]\n el.selectionEnd = caretPosition[1]\n })\n }\n }\n\n useRender(() => {\n const hasCounter = !!(slots.counter || (props.counter !== false && props.counter != null))\n const hasDetails = !!(hasCounter || slots.details)\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n const { modelValue: _, ...inputProps } = VInput.filterProps(props)\n const fieldProps = VField.filterProps(props)\n\n return (\n <VInput\n ref={ vInputRef }\n v-model={ model.value }\n class={[\n 'v-text-field',\n {\n 'v-text-field--prefixed': props.prefix,\n 'v-text-field--suffixed': props.suffix,\n 'v-input--plain-underlined': isPlainOrUnderlined.value,\n },\n props.class,\n ]}\n style={ props.style }\n { ...rootAttrs }\n { ...inputProps }\n centerAffix={ !isPlainOrUnderlined.value }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n default: ({\n id,\n isDisabled,\n isDirty,\n isReadonly,\n isValid,\n }) => (\n <VField\n ref={ vFieldRef }\n onMousedown={ onControlMousedown }\n onClick={ onControlClick }\n onClick:clear={ onClear }\n onClick:prependInner={ props['onClick:prependInner'] }\n onClick:appendInner={ props['onClick:appendInner'] }\n role={ props.role }\n { ...fieldProps }\n id={ id.value }\n active={ isActive.value || isDirty.value }\n dirty={ isDirty.value || props.dirty }\n disabled={ isDisabled.value }\n focused={ isFocused.value }\n error={ isValid.value === false }\n >\n {{\n ...slots,\n default: ({\n props: { class: fieldClass, ...slotProps },\n }) => {\n const inputNode = (\n <input\n ref={ inputRef }\n value={ model.value }\n onInput={ onInput }\n v-intersect={[{\n handler: onIntersect,\n }, null, ['once']]}\n autofocus={ props.autofocus }\n readonly={ isReadonly.value }\n disabled={ isDisabled.value }\n name={ props.name }\n placeholder={ props.placeholder }\n size={ 1 }\n type={ props.type }\n onFocus={ onFocus }\n onBlur={ blur }\n { ...slotProps }\n { ...inputAttrs }\n />\n )\n\n return (\n <>\n { props.prefix && (\n <span class=\"v-text-field__prefix\">\n <span class=\"v-text-field__prefix__text\">\n { props.prefix }\n </span>\n </span>\n )}\n\n { slots.default ? (\n <div\n class={ fieldClass }\n data-no-activator=\"\"\n >\n { slots.default() }\n { inputNode }\n </div>\n ) : cloneVNode(inputNode, { class: fieldClass })}\n\n { props.suffix && (\n <span class=\"v-text-field__suffix\">\n <span class=\"v-text-field__suffix__text\">\n { props.suffix }\n </span>\n </span>\n )}\n </>\n )\n },\n }}\n </VField>\n ),\n details: hasDetails ? slotProps => (\n <>\n { slots.details?.(slotProps) }\n\n { hasCounter && (\n <>\n <span />\n\n <VCounter\n active={ props.persistentCounter || isFocused.value }\n value={ counterValue.value }\n max={ max.value }\n disabled={ props.disabled }\n v-slots:default={ slots.counter }\n />\n </>\n )}\n </>\n ) : undefined,\n }}\n </VInput>\n )\n })\n\n return forwardRefs({}, vInputRef, vFieldRef, inputRef)\n },\n})\n\nexport type VTextField = InstanceType<typeof VTextField>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,QAAQ;AAAA,SACRC,eAAe,EAAEC,MAAM;AAAA,SACvBC,eAAe,EAAEC,MAAM,+BAEhC;AAAA,SACSC,QAAQ;AAAA,SACRC,WAAW;AAAA,SACXC,eAAe,6CAExB;AAAA,OACOC,SAAS,6CAEhB;AACA,SAASC,UAAU,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAChDC,SAAS,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,+BAE/E;AAMA,MAAMC,WAAW,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC;AAExF,OAAO,MAAMC,mBAAmB,GAAGH,YAAY,CAAC;EAC9CI,SAAS,EAAEC,OAAO;EAClBC,OAAO,EAAE,CAACD,OAAO,EAAEE,MAAM,EAAEC,MAAM,CAAC;EAClCC,YAAY,EAAE,CAACF,MAAM,EAAEG,QAAQ,CAAgD;EAC/EC,MAAM,EAAEH,MAAM;EACdI,WAAW,EAAEJ,MAAM;EACnBK,qBAAqB,EAAER,OAAO;EAC9BS,iBAAiB,EAAET,OAAO;EAC1BU,MAAM,EAAEP,MAAM;EACdQ,IAAI,EAAER,MAAM;EACZS,IAAI,EAAE;IACJA,IAAI,EAAET,MAAM;IACZU,OAAO,EAAE;EACX,CAAC;EACDC,cAAc,EAAEC,MAA2C;EAE3D,GAAGjC,eAAe,CAAC,CAAC;EACpB,GAAGF,eAAe,CAAC;AACrB,CAAC,EAAE,YAAY,CAAC;AAOhB,OAAO,MAAMoC,UAAU,GAAGtB,gBAAgB,CAAkB,C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UAAU,GAAGuB,SAAS,IAAAd,YAAA,CAAAoB,SAAA,SAEzBnE,KAAK,CAACuC,OAAO,GAAGsB,SAAS,CAAC,EAE1BxB,UAAU,IAAAU,YAAA,CAAAoB,SAAA,SAAApB,YAAA,sBAAAA,YAAA,CAAAjG,QAAA;UAAA,UAKGyC,KAAK,CAACX,iBAAiB,IAAIsB,SAAS,CAACG,KAAK;UAAA,SAC3C9B,YAAY,CAAC8B,KAAK;UAAA,OACpBG,GAAG,CAACH,KAAK;UAAA,YACJd,KAAK,CAAC6E;QAAQ,GACPpE,KAAK,CAAC5B,OAAO,GAGpC,EAEJ,GAAGsC;MAAS;IAIrB,CAAC,CAAC;IAEF,OAAOtD,WAAW,CAAC,CAAC,CAAC,EAAE8D,SAAS,EAAEC,SAAS,EAAEC,QAAQ,CAAC;EACxD;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VTextField.js","names":["VCounter","makeVFieldProps","VField","makeVInputProps","VInput","useFocus","forwardRefs","useProxiedModel","Intersect","cloneVNode","computed","nextTick","ref","callEvent","filterInputAttrs","genericComponent","propsFactory","useRender","activeTypes","makeVTextFieldProps","autofocus","Boolean","counter","Number","String","counterValue","Function","prefix","placeholder","persistentPlaceholder","persistentCounter","suffix","role","type","default","modelModifiers","Object","VTextField","name","directives","inheritAttrs","props","emits","e","focused","val","setup","_ref","attrs","emit","slots","model","isFocused","focus","blur","value","toString","length","max","maxlength","undefined","isPlainOrUnderlined","includes","variant","onIntersect","isIntersecting","entries","target","vInputRef","vFieldRef","inputRef","isActive","active","onFocus","document","activeElement","onControlMousedown","preventDefault","onControlClick","onClear","reset","stopPropagation","onInput","el","trim","caretPosition","selectionStart","selectionEnd","hasCounter","hasDetails","details","rootAttrs","inputAttrs","modelValue","_","inputProps","filterProps","fieldProps","_createVNode","_mergeProps","$event","class","style","_ref2","id","isDisabled","isDirty","isReadonly","isValid","dirty","_ref3","fieldClass","slotProps","inputNode","_withDirectives","_resolveDirective","handler","once","_Fragment","disabled"],"sources":["../../../src/components/VTextField/VTextField.tsx"],"sourcesContent":["// Styles\nimport './VTextField.sass'\n\n// Components\nimport { VCounter } from '@/components/VCounter/VCounter'\nimport { makeVFieldProps, VField } from '@/components/VField/VField'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\n\n// Composables\nimport { useFocus } from '@/composables/focus'\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Directives\nimport Intersect from '@/directives/intersect'\n\n// Utilities\nimport { cloneVNode, computed, nextTick, ref } from 'vue'\nimport { callEvent, filterInputAttrs, genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { VCounterSlot } from '@/components/VCounter/VCounter'\nimport type { VFieldSlots } from '@/components/VField/VField'\nimport type { VInputSlots } from '@/components/VInput/VInput'\n\nconst activeTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'month']\n\nexport const makeVTextFieldProps = propsFactory({\n autofocus: Boolean,\n counter: [Boolean, Number, String],\n counterValue: [Number, Function] as PropType<number | ((value: any) => number)>,\n prefix: String,\n placeholder: String,\n persistentPlaceholder: Boolean,\n persistentCounter: Boolean,\n suffix: String,\n role: String,\n type: {\n type: String,\n default: 'text',\n },\n modelModifiers: Object as PropType<Record<string, boolean>>,\n\n ...makeVInputProps(),\n ...makeVFieldProps(),\n}, 'VTextField')\n\nexport type VTextFieldSlots = Omit<VInputSlots & VFieldSlots, 'default'> & {\n default: never\n counter: VCounterSlot\n}\n\nexport const VTextField = genericComponent<VTextFieldSlots>()({\n name: 'VTextField',\n\n directives: { Intersect },\n\n inheritAttrs: false,\n\n props: makeVTextFieldProps(),\n\n emits: {\n 'click:control': (e: MouseEvent) => true,\n 'mousedown:control': (e: MouseEvent) => true,\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': (val: string) => true,\n },\n\n setup (props, { attrs, emit, slots }) {\n const model = useProxiedModel(props, 'modelValue')\n const { isFocused, focus, blur } = useFocus(props)\n const counterValue = computed(() => {\n return typeof props.counterValue === 'function' ? props.counterValue(model.value)\n : typeof props.counterValue === 'number' ? props.counterValue\n : (model.value ?? '').toString().length\n })\n const max = computed(() => {\n if (attrs.maxlength) return attrs.maxlength as unknown as undefined\n\n if (\n !props.counter ||\n (typeof props.counter !== 'number' &&\n typeof props.counter !== 'string')\n ) return undefined\n\n return props.counter\n })\n\n const isPlainOrUnderlined = computed(() => ['plain', 'underlined'].includes(props.variant))\n\n function onIntersect (\n isIntersecting: boolean,\n entries: IntersectionObserverEntry[]\n ) {\n if (!props.autofocus || !isIntersecting) return\n\n (entries[0].target as HTMLInputElement)?.focus?.()\n }\n\n const vInputRef = ref<VInput>()\n const vFieldRef = ref<VField>()\n const inputRef = ref<HTMLInputElement>()\n const isActive = computed(() => (\n activeTypes.includes(props.type) ||\n props.persistentPlaceholder ||\n isFocused.value ||\n props.active\n ))\n function onFocus () {\n if (inputRef.value !== document.activeElement) {\n inputRef.value?.focus()\n }\n\n if (!isFocused.value) focus()\n }\n function onControlMousedown (e: MouseEvent) {\n emit('mousedown:control', e)\n\n if (e.target === inputRef.value) return\n\n onFocus()\n e.preventDefault()\n }\n function onControlClick (e: MouseEvent) {\n onFocus()\n\n emit('click:control', e)\n }\n function onClear (e: MouseEvent, reset: () => void) {\n e.stopPropagation()\n\n onFocus()\n\n nextTick(() => {\n model.value = null\n reset()\n\n callEvent(props['onClick:clear'], e)\n })\n }\n function onInput (e: Event) {\n const el = e.target as HTMLInputElement\n model.value = el.value\n if (\n props.modelModifiers?.trim &&\n ['text', 'search', 'password', 'tel', 'url'].includes(props.type)\n ) {\n const caretPosition = [el.selectionStart, el.selectionEnd]\n nextTick(() => {\n el.selectionStart = caretPosition[0]\n el.selectionEnd = caretPosition[1]\n })\n }\n }\n\n useRender(() => {\n const hasCounter = !!(slots.counter || (props.counter !== false && props.counter != null))\n const hasDetails = !!(hasCounter || slots.details)\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n const { modelValue: _, ...inputProps } = VInput.filterProps(props)\n const fieldProps = VField.filterProps(props)\n\n return (\n <VInput\n ref={ vInputRef }\n v-model={ model.value }\n class={[\n 'v-text-field',\n {\n 'v-text-field--prefixed': props.prefix,\n 'v-text-field--suffixed': props.suffix,\n 'v-input--plain-underlined': isPlainOrUnderlined.value,\n },\n props.class,\n ]}\n style={ props.style }\n { ...rootAttrs }\n { ...inputProps }\n centerAffix={ !isPlainOrUnderlined.value }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n default: ({\n id,\n isDisabled,\n isDirty,\n isReadonly,\n isValid,\n reset,\n }) => (\n <VField\n ref={ vFieldRef }\n onMousedown={ onControlMousedown }\n onClick={ onControlClick }\n onClick:clear={ (e: MouseEvent) => onClear(e, reset) }\n onClick:prependInner={ props['onClick:prependInner'] }\n onClick:appendInner={ props['onClick:appendInner'] }\n role={ props.role }\n { ...fieldProps }\n id={ id.value }\n active={ isActive.value || isDirty.value }\n dirty={ isDirty.value || props.dirty }\n disabled={ isDisabled.value }\n focused={ isFocused.value }\n error={ isValid.value === false }\n >\n {{\n ...slots,\n default: ({\n props: { class: fieldClass, ...slotProps },\n }) => {\n const inputNode = (\n <input\n ref={ inputRef }\n value={ model.value }\n onInput={ onInput }\n v-intersect={[{\n handler: onIntersect,\n }, null, ['once']]}\n autofocus={ props.autofocus }\n readonly={ isReadonly.value }\n disabled={ isDisabled.value }\n name={ props.name }\n placeholder={ props.placeholder }\n size={ 1 }\n type={ props.type }\n onFocus={ onFocus }\n onBlur={ blur }\n { ...slotProps }\n { ...inputAttrs }\n />\n )\n\n return (\n <>\n { props.prefix && (\n <span class=\"v-text-field__prefix\">\n <span class=\"v-text-field__prefix__text\">\n { props.prefix }\n </span>\n </span>\n )}\n\n { slots.default ? (\n <div\n class={ fieldClass }\n data-no-activator=\"\"\n >\n { slots.default() }\n { inputNode }\n </div>\n ) : cloneVNode(inputNode, { class: fieldClass })}\n\n { props.suffix && (\n <span class=\"v-text-field__suffix\">\n <span class=\"v-text-field__suffix__text\">\n { props.suffix }\n </span>\n </span>\n )}\n </>\n )\n },\n }}\n </VField>\n ),\n details: hasDetails ? slotProps => (\n <>\n { slots.details?.(slotProps) }\n\n { hasCounter && (\n <>\n <span />\n\n <VCounter\n active={ props.persistentCounter || isFocused.value }\n value={ counterValue.value }\n max={ max.value }\n disabled={ props.disabled }\n v-slots:default={ slots.counter }\n />\n </>\n )}\n </>\n ) : undefined,\n }}\n </VInput>\n )\n })\n\n return forwardRefs({}, vInputRef, vFieldRef, inputRef)\n },\n})\n\nexport type VTextField = InstanceType<typeof VTextField>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,QAAQ;AAAA,SACRC,eAAe,EAAEC,MAAM;AAAA,SACvBC,eAAe,EAAEC,MAAM,+BAEhC;AAAA,SACSC,QAAQ;AAAA,SACRC,WAAW;AAAA,SACXC,eAAe,6CAExB;AAAA,OACOC,SAAS,6CAEhB;AACA,SAASC,UAAU,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAChDC,SAAS,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,+BAE/E;AAMA,MAAMC,WAAW,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC;AAExF,OAAO,MAAMC,mBAAmB,GAAGH,YAAY,CAAC;EAC9CI,SAAS,EAAEC,OAAO;EAClBC,OAAO,EAAE,CAACD,OAAO,EAAEE,MAAM,EAAEC,MAAM,CAAC;EAClCC,YAAY,EAAE,CAACF,MAAM,EAAEG,QAAQ,CAAgD;EAC/EC,MAAM,EAAEH,MAAM;EACdI,WAAW,EAAEJ,MAAM;EACnBK,qBAAqB,EAAER,OAAO;EAC9BS,iBAAiB,EAAET,OAAO;EAC1BU,MAAM,EAAEP,MAAM;EACdQ,IAAI,EAAER,MAAM;EACZS,I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,GAAAgE,YAAA;gBAAA,SAEHa,UAAU;gBAAA;cAAA,IAGhB7D,KAAK,CAAChB,OAAO,CAAC,CAAC,EACf+E,SAAS,KAEXxG,UAAU,CAACwG,SAAS,EAAE;gBAAEZ,KAAK,EAAEU;cAAW,CAAC,CAAC,EAE9CtE,KAAK,CAACV,MAAM,IAAAmE,YAAA;gBAAA;cAAA,IAAAA,YAAA;gBAAA;cAAA,IAGNzD,KAAK,CAACV,MAAM,IAGnB;YAGP;UAAC;QAAA,CAGN;QACD2D,OAAO,EAAED,UAAU,GAAGuB,SAAS,IAAAd,YAAA,CAAAoB,SAAA,SAEzBpE,KAAK,CAACwC,OAAO,GAAGsB,SAAS,CAAC,EAE1BxB,UAAU,IAAAU,YAAA,CAAAoB,SAAA,SAAApB,YAAA,sBAAAA,YAAA,CAAAlG,QAAA;UAAA,UAKGyC,KAAK,CAACX,iBAAiB,IAAIsB,SAAS,CAACG,KAAK;UAAA,SAC3C9B,YAAY,CAAC8B,KAAK;UAAA,OACpBG,GAAG,CAACH,KAAK;UAAA,YACJd,KAAK,CAAC8E;QAAQ,GACPrE,KAAK,CAAC5B,OAAO,GAGpC,EAEJ,GAAGsC;MAAS;IAIrB,CAAC,CAAC;IAEF,OAAOtD,WAAW,CAAC,CAAC,CAAC,EAAE8D,SAAS,EAAEC,SAAS,EAAEC,QAAQ,CAAC;EACxD;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/entry-bundler.js
CHANGED
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
16
16
|
...options
|
17
17
|
});
|
18
18
|
};
|
19
|
-
export const version = "3.8.3-master.2025-05-
|
19
|
+
export const version = "3.8.3-master.2025-05-04";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.js";
|
package/lib/framework.d.ts
CHANGED
@@ -2540,35 +2540,36 @@ declare module 'vue' {
|
|
2540
2540
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
2541
2541
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
2542
2542
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
2543
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
2543
2544
|
VAlert: typeof import('vuetify/components')['VAlert']
|
2544
2545
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
2545
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
2546
2546
|
VApp: typeof import('vuetify/components')['VApp']
|
2547
2547
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
2548
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
2549
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
2548
2550
|
VBanner: typeof import('vuetify/components')['VBanner']
|
2549
2551
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
2550
2552
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
2551
|
-
|
2552
|
-
|
2553
|
-
|
2554
|
-
|
2553
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
2554
|
+
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
2555
|
+
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
2556
|
+
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
2555
2557
|
VCard: typeof import('vuetify/components')['VCard']
|
2556
2558
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
2557
2559
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
2558
2560
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
2559
2561
|
VCardText: typeof import('vuetify/components')['VCardText']
|
2560
2562
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
2563
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
2564
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
2565
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
2561
2566
|
VChip: typeof import('vuetify/components')['VChip']
|
2562
2567
|
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
2563
2568
|
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
2564
|
-
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
2565
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
2566
2569
|
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
2567
|
-
|
2568
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
2569
|
-
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
2570
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
2570
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
2571
2571
|
VCounter: typeof import('vuetify/components')['VCounter']
|
2572
|
+
VCode: typeof import('vuetify/components')['VCode']
|
2572
2573
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
2573
2574
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
2574
2575
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -2576,32 +2577,38 @@ declare module 'vue' {
|
|
2576
2577
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
2577
2578
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
2578
2579
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
2580
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
2579
2581
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
2580
2582
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
2581
2583
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
2582
2584
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
2583
2585
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
2584
2586
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
2585
|
-
|
2586
|
-
VFab: typeof import('vuetify/components')['VFab']
|
2587
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
2587
2588
|
VDivider: typeof import('vuetify/components')['VDivider']
|
2589
|
+
VField: typeof import('vuetify/components')['VField']
|
2590
|
+
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
2591
|
+
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
2588
2592
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
2589
2593
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
2590
2594
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
2591
2595
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
2592
|
-
|
2593
|
-
VField: typeof import('vuetify/components')['VField']
|
2594
|
-
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
2595
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
2596
|
+
VFab: typeof import('vuetify/components')['VFab']
|
2596
2597
|
VFooter: typeof import('vuetify/components')['VFooter']
|
2598
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
2599
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
2597
2600
|
VInput: typeof import('vuetify/components')['VInput']
|
2598
|
-
|
2601
|
+
VImg: typeof import('vuetify/components')['VImg']
|
2602
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
2599
2603
|
VIcon: typeof import('vuetify/components')['VIcon']
|
2600
2604
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
2601
2605
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
2602
2606
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
2603
2607
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
2604
|
-
|
2608
|
+
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
2609
|
+
VItem: typeof import('vuetify/components')['VItem']
|
2610
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
2611
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
2605
2612
|
VList: typeof import('vuetify/components')['VList']
|
2606
2613
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
2607
2614
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -2611,81 +2618,67 @@ declare module 'vue' {
|
|
2611
2618
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
2612
2619
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
2613
2620
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
2614
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
2615
|
-
VKbd: typeof import('vuetify/components')['VKbd']
|
2616
|
-
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
2617
|
-
VItem: typeof import('vuetify/components')['VItem']
|
2618
|
-
VImg: typeof import('vuetify/components')['VImg']
|
2619
|
-
VMenu: typeof import('vuetify/components')['VMenu']
|
2620
2621
|
VMain: typeof import('vuetify/components')['VMain']
|
2622
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
2621
2623
|
VMessages: typeof import('vuetify/components')['VMessages']
|
2622
2624
|
VNumberInput: typeof import('vuetify/components')['VNumberInput']
|
2623
2625
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
2624
2626
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
2625
|
-
VPagination: typeof import('vuetify/components')['VPagination']
|
2626
|
-
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
2627
2627
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
2628
|
-
|
2628
|
+
VPagination: typeof import('vuetify/components')['VPagination']
|
2629
2629
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
2630
|
+
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
2630
2631
|
VRating: typeof import('vuetify/components')['VRating']
|
2632
|
+
VSelect: typeof import('vuetify/components')['VSelect']
|
2633
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
2631
2634
|
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
2632
2635
|
VSheet: typeof import('vuetify/components')['VSheet']
|
2633
|
-
VSelect: typeof import('vuetify/components')['VSelect']
|
2634
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
2635
2636
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
2636
2637
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
2638
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
2637
2639
|
VSlider: typeof import('vuetify/components')['VSlider']
|
2638
2640
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
2639
|
-
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
2640
|
-
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
2641
|
-
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
2642
|
-
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
2643
|
-
VStepper: typeof import('vuetify/components')['VStepper']
|
2644
|
-
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
2645
|
-
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
2646
|
-
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
2647
|
-
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
2648
|
-
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
2649
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
2650
2641
|
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
2651
|
-
|
2652
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
2642
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
2653
2643
|
VTab: typeof import('vuetify/components')['VTab']
|
2654
2644
|
VTabs: typeof import('vuetify/components')['VTabs']
|
2655
2645
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
2656
2646
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
2657
2647
|
VTable: typeof import('vuetify/components')['VTable']
|
2648
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
2649
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
2658
2650
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
2659
2651
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
2660
2652
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
2661
|
-
|
2653
|
+
VWindow: typeof import('vuetify/components')['VWindow']
|
2654
|
+
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
2655
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
2662
2656
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
2663
2657
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
2664
2658
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
2665
2659
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
2666
2660
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
2667
|
-
VForm: typeof import('vuetify/components')['VForm']
|
2668
2661
|
VContainer: typeof import('vuetify/components')['VContainer']
|
2669
2662
|
VCol: typeof import('vuetify/components')['VCol']
|
2670
2663
|
VRow: typeof import('vuetify/components')['VRow']
|
2671
2664
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
2672
2665
|
VHover: typeof import('vuetify/components')['VHover']
|
2666
|
+
VForm: typeof import('vuetify/components')['VForm']
|
2673
2667
|
VLazy: typeof import('vuetify/components')['VLazy']
|
2674
|
-
VWindow: typeof import('vuetify/components')['VWindow']
|
2675
|
-
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
2676
|
-
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
2677
2668
|
VLayout: typeof import('vuetify/components')['VLayout']
|
2678
2669
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
2679
|
-
|
2670
|
+
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
2680
2671
|
VParallax: typeof import('vuetify/components')['VParallax']
|
2672
|
+
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
2681
2673
|
VRadio: typeof import('vuetify/components')['VRadio']
|
2682
2674
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
2683
2675
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
2684
2676
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
2685
|
-
|
2677
|
+
VSnackbarQueue: typeof import('vuetify/components')['VSnackbarQueue']
|
2686
2678
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
2687
2679
|
VValidation: typeof import('vuetify/components')['VValidation']
|
2688
2680
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
2681
|
+
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
2689
2682
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
2690
2683
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
2691
2684
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
@@ -2702,7 +2695,14 @@ declare module 'vue' {
|
|
2702
2695
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
2703
2696
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
2704
2697
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
2705
|
-
|
2698
|
+
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
2699
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
2700
|
+
VStepper: typeof import('vuetify/components')['VStepper']
|
2701
|
+
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
2702
|
+
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
2703
|
+
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
2704
|
+
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
2705
|
+
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
2706
2706
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
2707
2707
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
2708
2708
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
@@ -2713,17 +2713,17 @@ declare module 'vue' {
|
|
2713
2713
|
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
2714
2714
|
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
2715
2715
|
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
2716
|
-
VIconBtn: typeof import('vuetify/labs/components')['VIconBtn']
|
2717
2716
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
2718
2717
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
2719
2718
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
2719
|
+
VIconBtn: typeof import('vuetify/labs/components')['VIconBtn']
|
2720
2720
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
2721
2721
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
2722
2722
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
2723
2723
|
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
2724
2724
|
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
2725
2725
|
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
2726
|
-
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
2727
2726
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
2727
|
+
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
2728
2728
|
}
|
2729
2729
|
}
|
package/lib/framework.js
CHANGED