@jsonforms/vue-vuetify
Version:
Vue Vuetify renderers for JSON Forms
855 lines (854 loc) • 469 kB
TypeScript
import { ControlElement, JsonSchema, JsonFormsRendererRegistryEntry, JsonFormsCellRendererRegistryEntry, RankedTester } from '@jsonforms/core';
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, StyleValue, CSSProperties, VNodeChild, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, VNode, RendererNode, RendererElement, ComponentPublicInstance, ComponentOptionsBase, SlotsType, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PropType, ExtractPropTypes } from 'vue';
import { Styles, AppliedOptions, ControlWrapperType, ControlWrapperProps } from '..';
import { ValidationResult } from 'vuetify/lib/composables/validation.mjs';
import { Density } from 'vuetify/lib/composables/density.mjs';
import { IconValue } from 'vuetify/lib/composables/icons.mjs';
import { ControlVariant, ControlSlot } from 'vuetify/lib/components/VNumberInput/VNumberInput.mjs';
import { VInputSlot, VInputSlots } from 'vuetify/lib/components/VInput/VInput.mjs';
import { VMessageSlot } from 'vuetify/lib/components/VMessages/VMessages.mjs';
import { DefaultInputSlot, VFieldSlot, VFieldSlots } from 'vuetify/lib/components/VField/VField.mjs';
import { LoaderSlotProps } from 'vuetify/lib/composables/loader.mjs';
import { VCounterSlot } from 'vuetify/lib/components/VCounter/VCounter.mjs';
import { OnCleanup } from '@vue/reactivity';
import { GenericProps, FilterPropsOptions } from 'vuetify/lib/util/defineComponent.mjs';
declare const controlRenderer: DefineComponent<{
schema: JsonSchema;
uischema: ControlElement;
path: string;
enabled?: boolean | undefined;
readonly?: boolean | undefined;
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
cells?: JsonFormsCellRendererRegistryEntry[] | undefined;
config?: any;
}, {
adaptValue: (value: any) => any;
control: ComputedRef<{
uischema: ControlElement;
schema: NonNullable< JsonSchema>;
path: string;
enabled: boolean;
readonly: NonNullable<boolean | undefined>;
renderers: JsonFormsRendererRegistryEntry[];
cells: JsonFormsCellRendererRegistryEntry[] & {
tester: RankedTester;
cell: any;
}[];
config: any;
label: string;
description: string;
required: NonNullable<boolean | undefined>;
i18nKeyPrefix: string;
errors: string;
data: any;
rootSchema: NonNullable< JsonSchema>;
id: string;
visible: boolean;
}> & ComputedRef<{
schema: JsonSchema;
uischema: ControlElement;
path: string;
config: any;
label: string;
description: string;
required: boolean;
errors: string;
id: string;
visible: boolean;
enabled: boolean;
readonly: boolean;
} & {
errors: string;
}>;
handleChange(path: string, value: any): void;
styles: Styles;
isFocused: Ref<boolean, boolean>;
appliedOptions: ComputedRef<any>;
controlWrapper: ComputedRef<{
id: string;
description: string;
errors: string;
label: string;
visible: boolean;
required: boolean;
}>;
onChange: (value: any) => void;
vuetifyProps: (path: string) => any;
persistentHint: () => boolean;
computedLabel: ComputedRef<string>;
clearable: ComputedRef<any>;
touched: Ref<boolean, boolean>;
handleBlur: () => void;
handleFocus: () => void;
rawErrors: ComputedRef<string>;
}, {}, {
step(): number;
precision(): number | undefined;
value(): number | null | undefined;
}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
schema: JsonSchema;
uischema: ControlElement;
path: string;
enabled?: boolean | undefined;
readonly?: boolean | undefined;
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
cells?: JsonFormsCellRendererRegistryEntry[] | undefined;
config?: any;
}> & Readonly<{}>, {
enabled: boolean;
readonly: boolean;
renderers: JsonFormsRendererRegistryEntry[];
cells: JsonFormsCellRendererRegistryEntry[];
config: Record<string, any>;
}, {}, {
ControlWrapper: DefineComponent<{
id?: string | undefined;
description?: string | undefined;
errors?: string | undefined;
label?: string | undefined;
visible?: boolean | undefined;
required?: boolean | undefined;
isFocused?: boolean | undefined;
styles?: Styles | undefined;
appliedOptions?: AppliedOptions | undefined;
}, {
WrapperComponent: ControlWrapperType;
props: ControlWrapperProps;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
id?: string | undefined;
description?: string | undefined;
errors?: string | undefined;
label?: string | undefined;
visible?: boolean | undefined;
required?: boolean | undefined;
isFocused?: boolean | undefined;
styles?: Styles | undefined;
appliedOptions?: AppliedOptions | undefined;
}> & Readonly<{}>, {
visible: boolean;
required: boolean;
isFocused: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
VNumberInput: {
new (...args: any[]): CreateComponentPublicInstanceWithMixins<{
style: string | false | StyleValue[] | CSSProperties | null;
focused: boolean;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
density: Density;
tile: boolean;
hideSpinButtons: boolean;
persistentHint: boolean;
messages: string | readonly string[];
clearable: boolean;
clearIcon: IconValue;
active: boolean;
dirty: boolean;
disabled: boolean;
glow: boolean;
error: boolean;
flat: boolean;
persistentClear: boolean;
reverse: boolean;
singleLine: boolean;
variant: "filled" | "outlined" | "plain" | "solo" | "solo-filled" | "solo-inverted" | "underlined";
autofocus: boolean;
persistentPlaceholder: boolean;
persistentCounter: boolean;
type: string;
controlVariant: ControlVariant;
inset: boolean;
hideInput: boolean;
modelValue: number | null;
min: number;
max: number;
step: number;
precision: number | null;
minFractionDigits: number | null;
} & {
theme?: string | undefined;
class?: any;
"onUpdate:focused"?: ((args_0: boolean) => void) | undefined;
name?: string | undefined;
validateOn?: ("blur eager" | "blur lazy" | "eager" | "eager blur" | "eager input" | "eager invalid-input" | "eager submit" | "input eager" | "input lazy" | "invalid-input eager" | "invalid-input lazy" | "lazy" | "lazy blur" | "lazy input" | "lazy invalid-input" | "lazy submit" | "submit eager" | "submit lazy" | ("blur" | "input" | "invalid-input" | "submit")) | undefined;
rounded?: string | number | boolean | undefined;
maxWidth?: string | number | undefined;
minWidth?: string | number | undefined;
width?: string | number | undefined;
loading?: string | boolean | undefined;
id?: string | undefined;
appendIcon?: IconValue | undefined;
prependIcon?: IconValue | undefined;
hideDetails?: "auto" | boolean | undefined;
hint?: string | undefined;
"onClick:prepend"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:append"?: ((args_0: MouseEvent) => void) | undefined;
appendInnerIcon?: IconValue | undefined;
bgColor?: string | undefined;
centerAffix?: boolean | undefined;
color?: string | undefined;
baseColor?: string | undefined;
iconColor?: string | boolean | undefined;
label?: string | undefined;
prependInnerIcon?: IconValue | undefined;
"onClick:clear"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:appendInner"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:prependInner"?: ((args_0: MouseEvent) => void) | undefined;
autocomplete?: string | undefined;
counter?: string | number | boolean | undefined;
counterValue?: number | ((value: any) => number) | undefined;
prefix?: string | undefined;
placeholder?: string | undefined;
suffix?: string | undefined;
role?: string | undefined;
modelModifiers?: Record<string, boolean> | undefined;
decimalSeparator?: string | undefined;
} & {
$children?: {
prepend?: ((arg: VInputSlot) => VNodeChild) | undefined;
append?: ((arg: VInputSlot) => VNodeChild) | undefined;
details?: ((arg: VInputSlot) => VNodeChild) | undefined;
message?: ((arg: VMessageSlot) => VNodeChild) | undefined;
clear?: ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNodeChild) | undefined;
"prepend-inner"?: ((arg: DefaultInputSlot) => VNodeChild) | undefined;
"append-inner"?: ((arg: DefaultInputSlot) => VNodeChild) | undefined;
label?: ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNodeChild) | undefined;
loader?: ((arg: LoaderSlotProps) => VNodeChild) | undefined;
counter?: ((arg: VCounterSlot) => VNodeChild) | undefined;
increment?: ((arg: ControlSlot) => VNodeChild) | undefined;
decrement?: ((arg: ControlSlot) => VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | {} | VNodeChild;
"v-slots"?: {
prepend?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
append?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
details?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
message?: false | ((arg: VMessageSlot) => VNodeChild) | undefined;
clear?: false | ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNodeChild) | undefined;
"prepend-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
"append-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
label?: false | ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNodeChild) | undefined;
loader?: false | ((arg: LoaderSlotProps) => VNodeChild) | undefined;
counter?: false | ((arg: VCounterSlot) => VNodeChild) | undefined;
increment?: false | ((arg: ControlSlot) => VNodeChild) | undefined;
decrement?: false | ((arg: ControlSlot) => VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:append"?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
"v-slot:append-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
"v-slot:clear"?: false | ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNodeChild) | undefined;
"v-slot:counter"?: false | ((arg: VCounterSlot) => VNodeChild) | undefined;
"v-slot:decrement"?: false | ((arg: ControlSlot) => VNodeChild) | undefined;
"v-slot:details"?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
"v-slot:increment"?: false | ((arg: ControlSlot) => VNodeChild) | undefined;
"v-slot:label"?: false | ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNodeChild) | undefined;
"v-slot:loader"?: false | ((arg: LoaderSlotProps) => VNodeChild) | undefined;
"v-slot:message"?: false | ((arg: VMessageSlot) => VNodeChild) | undefined;
"v-slot:prepend"?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
"v-slot:prepend-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
} & {
"onUpdate:focused"?: ((val: boolean) => any) | undefined;
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
}, Omit<Omit<{
$: ComponentInternalInstance;
$data: {};
$props: Partial<{
style: StyleValue;
focused: boolean;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
density: Density;
rounded: string | number | boolean;
tile: boolean;
hideSpinButtons: boolean;
persistentHint: boolean;
messages: string | readonly string[];
clearable: boolean;
clearIcon: IconValue;
active: boolean;
centerAffix: boolean;
dirty: boolean;
disabled: boolean;
glow: boolean;
error: boolean;
flat: boolean;
persistentClear: boolean;
reverse: boolean;
singleLine: boolean;
variant: "filled" | "outlined" | "plain" | "solo" | "solo-filled" | "solo-inverted" | "underlined";
autofocus: boolean;
persistentPlaceholder: boolean;
persistentCounter: boolean;
type: string;
}> & Omit<{
theme?: string | undefined;
class?: any;
style: string | false | StyleValue[] | CSSProperties | null;
$children?: {
prepend?: ((arg: VInputSlot) => VNodeChild) | undefined;
append?: ((arg: VInputSlot) => VNodeChild) | undefined;
details?: ((arg: VInputSlot) => VNodeChild) | undefined;
message?: ((arg: VMessageSlot) => VNodeChild) | undefined;
clear?: ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNodeChild) | undefined;
"prepend-inner"?: ((arg: DefaultInputSlot) => VNodeChild) | undefined;
"append-inner"?: ((arg: DefaultInputSlot) => VNodeChild) | undefined;
label?: ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNodeChild) | undefined;
loader?: ((arg: LoaderSlotProps) => VNodeChild) | undefined;
default?: ((arg: {
id: Readonly< Ref<string, string>>;
}) => VNodeChild) | undefined;
counter?: ((arg: VCounterSlot) => VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | ((arg: {
id: Readonly< Ref<string, string>>;
}) => VNodeChild) | VNodeChild;
"v-slots"?: {
prepend?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
append?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
details?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
message?: false | ((arg: VMessageSlot) => VNodeChild) | undefined;
clear?: false | ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNodeChild) | undefined;
"prepend-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
"append-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
label?: false | ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNodeChild) | undefined;
loader?: false | ((arg: LoaderSlotProps) => VNodeChild) | undefined;
default?: false | ((arg: {
id: Readonly< Ref<string, string>>;
}) => VNodeChild) | undefined;
counter?: false | ((arg: VCounterSlot) => VNodeChild) | undefined;
} | undefined;
focused: boolean;
"onUpdate:focused"?: (((args_0: boolean) => void) & ((focused: boolean) => any)) | undefined;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
name?: string | undefined;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
modelValue?: any;
validateOn?: ("blur eager" | "blur lazy" | "eager" | "eager blur" | "eager input" | "eager invalid-input" | "eager submit" | "input eager" | "input lazy" | "invalid-input eager" | "invalid-input lazy" | "lazy" | "lazy blur" | "lazy input" | "lazy invalid-input" | "lazy submit" | "submit eager" | "submit lazy" | ("blur" | "input" | "invalid-input" | "submit")) | undefined;
validationValue?: any;
density: Density;
rounded?: string | number | boolean | undefined;
tile: boolean;
maxWidth?: string | number | undefined;
minWidth?: string | number | undefined;
width?: string | number | undefined;
loading?: string | boolean | undefined;
id?: string | undefined;
appendIcon?: IconValue | undefined;
prependIcon?: IconValue | undefined;
hideDetails?: "auto" | boolean | undefined;
hideSpinButtons: boolean;
hint?: string | undefined;
persistentHint: boolean;
messages: string | readonly string[];
"onClick:prepend"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:append"?: ((args_0: MouseEvent) => void) | undefined;
appendInnerIcon?: IconValue | undefined;
bgColor?: string | undefined;
clearable: boolean;
clearIcon: IconValue;
active: boolean;
centerAffix?: boolean | undefined;
color?: string | undefined;
baseColor?: string | undefined;
dirty: boolean;
disabled: boolean;
glow: boolean;
error: boolean;
flat: boolean;
iconColor?: string | boolean | undefined;
label?: string | undefined;
persistentClear: boolean;
prependInnerIcon?: IconValue | undefined;
reverse: boolean;
singleLine: boolean;
variant: "filled" | "outlined" | "plain" | "solo" | "solo-filled" | "solo-inverted" | "underlined";
"onClick:clear"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:appendInner"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:prependInner"?: ((args_0: MouseEvent) => void) | undefined;
autocomplete?: string | undefined;
autofocus: boolean;
counter?: string | number | boolean | undefined;
counterValue?: number | ((value: any) => number) | undefined;
prefix?: string | undefined;
placeholder?: string | undefined;
persistentPlaceholder: boolean;
persistentCounter: boolean;
suffix?: string | undefined;
role?: string | undefined;
type: string;
modelModifiers?: Record<string, boolean> | undefined;
"onClick:control"?: ((e: MouseEvent) => any) | undefined;
"onMousedown:control"?: ((e: MouseEvent) => any) | undefined;
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
"v-slot:append"?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
"v-slot:append-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
"v-slot:clear"?: false | ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNodeChild) | undefined;
"v-slot:counter"?: false | ((arg: VCounterSlot) => VNodeChild) | undefined;
"v-slot:default"?: false | ((arg: {
id: Readonly< Ref<string, string>>;
}) => VNodeChild) | undefined;
"v-slot:details"?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
"v-slot:label"?: false | ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNodeChild) | undefined;
"v-slot:loader"?: false | ((arg: LoaderSlotProps) => VNodeChild) | undefined;
"v-slot:message"?: false | ((arg: VMessageSlot) => VNodeChild) | undefined;
"v-slot:prepend"?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
"v-slot:prepend-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "active" | "autofocus" | "centerAffix" | "clearIcon" | "clearable" | "density" | "dirty" | "disabled" | "error" | "errorMessages" | "flat" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentClear" | "persistentCounter" | "persistentHint" | "persistentPlaceholder" | "readonly" | "reverse" | "rounded" | "rules" | "singleLine" | "style" | "tile" | "type" | "variant">;
$attrs: {
[x: string]: unknown;
};
$refs: {
[x: string]: unknown;
};
$slots: Readonly<{
prepend?: ((arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
append?: ((arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
details?: ((arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
message?: ((arg: VMessageSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
clear?: ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
"prepend-inner"?: ((arg: DefaultInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
"append-inner"?: ((arg: DefaultInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
label?: ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
loader?: ((arg: LoaderSlotProps) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
default?: ((arg: {
id: Readonly< Ref<string, string>>;
}) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
counter?: ((arg: VCounterSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
}>;
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null;
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null;
$host: Element | null;
$emit: ((event: "click:control", e: MouseEvent) => void) & ((event: "mousedown:control", e: MouseEvent) => void) & ((event: "update:focused", focused: boolean) => void) & ((event: "update:modelValue", val: string) => void);
$el: any;
$options: ComponentOptionsBase<{
style: string | false | StyleValue[] | CSSProperties | null;
focused: boolean;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
density: Density;
tile: boolean;
hideSpinButtons: boolean;
persistentHint: boolean;
messages: string | readonly string[];
clearable: boolean;
clearIcon: IconValue;
active: boolean;
dirty: boolean;
disabled: boolean;
glow: boolean;
error: boolean;
flat: boolean;
persistentClear: boolean;
reverse: boolean;
singleLine: boolean;
variant: "filled" | "outlined" | "plain" | "solo" | "solo-filled" | "solo-inverted" | "underlined";
autofocus: boolean;
persistentPlaceholder: boolean;
persistentCounter: boolean;
type: string;
} & {
theme?: string | undefined;
class?: any;
"onUpdate:focused"?: ((args_0: boolean) => void) | undefined;
name?: string | undefined;
modelValue?: any;
validateOn?: ("blur eager" | "blur lazy" | "eager" | "eager blur" | "eager input" | "eager invalid-input" | "eager submit" | "input eager" | "input lazy" | "invalid-input eager" | "invalid-input lazy" | "lazy" | "lazy blur" | "lazy input" | "lazy invalid-input" | "lazy submit" | "submit eager" | "submit lazy" | ("blur" | "input" | "invalid-input" | "submit")) | undefined;
validationValue?: any;
rounded?: string | number | boolean | undefined;
maxWidth?: string | number | undefined;
minWidth?: string | number | undefined;
width?: string | number | undefined;
loading?: string | boolean | undefined;
id?: string | undefined;
appendIcon?: IconValue | undefined;
prependIcon?: IconValue | undefined;
hideDetails?: "auto" | boolean | undefined;
hint?: string | undefined;
"onClick:prepend"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:append"?: ((args_0: MouseEvent) => void) | undefined;
appendInnerIcon?: IconValue | undefined;
bgColor?: string | undefined;
centerAffix?: boolean | undefined;
color?: string | undefined;
baseColor?: string | undefined;
iconColor?: string | boolean | undefined;
label?: string | undefined;
prependInnerIcon?: IconValue | undefined;
"onClick:clear"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:appendInner"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:prependInner"?: ((args_0: MouseEvent) => void) | undefined;
autocomplete?: string | undefined;
counter?: string | number | boolean | undefined;
counterValue?: number | ((value: any) => number) | undefined;
prefix?: string | undefined;
placeholder?: string | undefined;
suffix?: string | undefined;
role?: string | undefined;
modelModifiers?: Record<string, boolean> | undefined;
} & {
$children?: {
prepend?: ((arg: VInputSlot) => VNodeChild) | undefined;
append?: ((arg: VInputSlot) => VNodeChild) | undefined;
details?: ((arg: VInputSlot) => VNodeChild) | undefined;
message?: ((arg: VMessageSlot) => VNodeChild) | undefined;
clear?: ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNodeChild) | undefined;
"prepend-inner"?: ((arg: DefaultInputSlot) => VNodeChild) | undefined;
"append-inner"?: ((arg: DefaultInputSlot) => VNodeChild) | undefined;
label?: ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNodeChild) | undefined;
loader?: ((arg: LoaderSlotProps) => VNodeChild) | undefined;
default?: ((arg: {
id: Readonly< Ref<string, string>>;
}) => VNodeChild) | undefined;
counter?: ((arg: VCounterSlot) => VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | ((arg: {
id: Readonly< Ref<string, string>>;
}) => VNodeChild) | VNodeChild;
"v-slots"?: {
prepend?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
append?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
details?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
message?: false | ((arg: VMessageSlot) => VNodeChild) | undefined;
clear?: false | ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNodeChild) | undefined;
"prepend-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
"append-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
label?: false | ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNodeChild) | undefined;
loader?: false | ((arg: LoaderSlotProps) => VNodeChild) | undefined;
default?: false | ((arg: {
id: Readonly< Ref<string, string>>;
}) => VNodeChild) | undefined;
counter?: false | ((arg: VCounterSlot) => VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:append"?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
"v-slot:append-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
"v-slot:clear"?: false | ((arg: DefaultInputSlot & {
props: Record<string, any>;
}) => VNodeChild) | undefined;
"v-slot:counter"?: false | ((arg: VCounterSlot) => VNodeChild) | undefined;
"v-slot:default"?: false | ((arg: {
id: Readonly< Ref<string, string>>;
}) => VNodeChild) | undefined;
"v-slot:details"?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
"v-slot:label"?: false | ((arg: DefaultInputSlot & {
label: string | undefined;
props: Record<string, any>;
}) => VNodeChild) | undefined;
"v-slot:loader"?: false | ((arg: LoaderSlotProps) => VNodeChild) | undefined;
"v-slot:message"?: false | ((arg: VMessageSlot) => VNodeChild) | undefined;
"v-slot:prepend"?: false | ((arg: VInputSlot) => VNodeChild) | undefined;
"v-slot:prepend-inner"?: false | ((arg: DefaultInputSlot) => VNodeChild) | undefined;
} & {
"onClick:control"?: ((e: MouseEvent) => any) | undefined;
"onMousedown:control"?: ((e: MouseEvent) => any) | undefined;
"onUpdate:focused"?: ((focused: boolean) => any) | undefined;
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
}, HTMLInputElement & Omit<Omit<{
$: ComponentInternalInstance;
$data: {};
$props: Partial<{
style: StyleValue;
focused: boolean;
disabled: boolean | null;
error: boolean;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
density: Density;
centerAffix: boolean;
glow: boolean;
hideSpinButtons: boolean;
persistentHint: boolean;
messages: string | readonly string[];
direction: "horizontal" | "vertical";
}> & Omit<{
theme?: string | undefined;
class?: any;
style: string | false | StyleValue[] | CSSProperties | null;
focused: boolean;
"onUpdate:focused"?: ((args_0: boolean) => void) | undefined;
disabled: boolean | null;
error: boolean;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
name?: string | undefined;
label?: string | undefined;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
validateOn?: ("blur eager" | "blur lazy" | "eager" | "eager blur" | "eager input" | "eager invalid-input" | "eager submit" | "input eager" | "input lazy" | "invalid-input eager" | "invalid-input lazy" | "lazy" | "lazy blur" | "lazy input" | "lazy invalid-input" | "lazy submit" | "submit eager" | "submit lazy" | ("blur" | "input" | "invalid-input" | "submit")) | undefined;
validationValue?: any;
density: Density;
maxWidth?: string | number | undefined;
minWidth?: string | number | undefined;
width?: string | number | undefined;
id?: string | undefined;
appendIcon?: IconValue | undefined;
baseColor?: string | undefined;
centerAffix: boolean;
color?: string | undefined;
glow: boolean;
iconColor?: string | boolean | undefined;
prependIcon?: IconValue | undefined;
hideDetails?: "auto" | boolean | undefined;
hideSpinButtons: boolean;
hint?: string | undefined;
persistentHint: boolean;
messages: string | readonly string[];
direction: "horizontal" | "vertical";
"onClick:prepend"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:append"?: ((args_0: MouseEvent) => void) | undefined;
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "centerAffix" | "density" | "direction" | "disabled" | "error" | "errorMessages" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentHint" | "readonly" | "rules" | "style">;
$attrs: {
[x: string]: unknown;
};
$refs: {
[x: string]: unknown;
};
$slots: Readonly<{
default?: ((arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
prepend?: ((arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
append?: ((arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
details?: ((arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
message?: ((arg: VMessageSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[]) | undefined;
}>;
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null;
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null;
$host: Element | null;
$emit: (event: string, ...args: any[]) => void;
$el: any;
$options: ComponentOptionsBase<{
style: string | false | StyleValue[] | CSSProperties | null;
focused: boolean;
disabled: boolean | null;
error: boolean;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
density: Density;
centerAffix: boolean;
glow: boolean;
hideSpinButtons: boolean;
persistentHint: boolean;
messages: string | readonly string[];
direction: "horizontal" | "vertical";
} & {
theme?: string | undefined;
class?: any;
"onUpdate:focused"?: ((args_0: boolean) => void) | undefined;
name?: string | undefined;
label?: string | undefined;
validateOn?: ("blur eager" | "blur lazy" | "eager" | "eager blur" | "eager input" | "eager invalid-input" | "eager submit" | "input eager" | "input lazy" | "invalid-input eager" | "invalid-input lazy" | "lazy" | "lazy blur" | "lazy input" | "lazy invalid-input" | "lazy submit" | "submit eager" | "submit lazy" | ("blur" | "input" | "invalid-input" | "submit")) | undefined;
validationValue?: any;
maxWidth?: string | number | undefined;
minWidth?: string | number | undefined;
width?: string | number | undefined;
id?: string | undefined;
appendIcon?: IconValue | undefined;
baseColor?: string | undefined;
color?: string | undefined;
iconColor?: string | boolean | undefined;
prependIcon?: IconValue | undefined;
hideDetails?: "auto" | boolean | undefined;
hint?: string | undefined;
"onClick:prepend"?: ((args_0: MouseEvent) => void) | undefined;
"onClick:append"?: ((args_0: MouseEvent) => void) | undefined;
} & {}, {
reset: () => Promise<void>;
resetValidation: () => Promise<void>;
validate: (silent?: boolean) => Promise<string[]>;
isValid: ComputedRef<boolean | null>;
errorMessages: ComputedRef<string[]>;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Omit<{
"update:modelValue": (value: any) => true;
}, "$children" | "modelValue" | "update:modelValue" | "v-slot:append" | "v-slot:default" | "v-slot:details" | "v-slot:message" | "v-slot:prepend" | "v-slots">, string, {
style: StyleValue;
focused: boolean;
disabled: boolean | null;
error: boolean;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
density: Density;
centerAffix: boolean;
glow: boolean;
hideSpinButtons: boolean;
persistentHint: boolean;
messages: string | readonly string[];
direction: "horizontal" | "vertical";
}, {}, string, SlotsType<Partial<{
default: (arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[];
prepend: (arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[];
append: (arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[];
details: (arg: VInputSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[];
message: (arg: VMessageSlot) => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[];
}>>, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
beforeCreate?: ((() => void)[] | (() => void)) | undefined;
created?: ((() => void)[] | (() => void)) | undefined;
beforeMount?: ((() => void)[] | (() => void)) | undefined;
mounted?: ((() => void)[] | (() => void)) | undefined;
beforeUpdate?: ((() => void)[] | (() => void)) | undefined;
updated?: ((() => void)[] | (() => void)) | undefined;
activated?: ((() => void)[] | (() => void)) | undefined;
deactivated?: ((() => void)[] | (() => void)) | undefined;
beforeDestroy?: ((() => void)[] | (() => void)) | undefined;
beforeUnmount?: ((() => void)[] | (() => void)) | undefined;
destroyed?: ((() => void)[] | (() => void)) | undefined;
unmounted?: ((() => void)[] | (() => void)) | undefined;
renderTracked?: (((e: DebuggerEvent) => void)[] | ((e: DebuggerEvent) => void)) | undefined;
renderTriggered?: (((e: DebuggerEvent) => void)[] | ((e: DebuggerEvent) => void)) | undefined;
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => void | boolean)[] | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => void | boolean)) | undefined;
};
$forceUpdate: () => void;
$nextTick: nextTick;
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: OnCleanup) => any : (args_0: any, args_1: any, args_2: OnCleanup) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
} & Readonly<{
style: StyleValue;
focused: boolean;
disabled: boolean | null;
error: boolean;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
density: Density;
centerAffix: boolean;
glow: boolean;
hideSpinButtons: boolean;
persistentHint: boolean;
messages: string | readonly string[];
direction: "horizontal" | "vertical";
}> & Omit<{
style: string | false | StyleValue[] | CSSProperties | null;
focused: boolean;
disabled: boolean | null;
error: boolean;
errorMessages: string | readonly string[] | null;
maxErrors: string | number;
readonly: boolean | null;
rules: readonly (string | boolean | PromiseLike< ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike< ValidationResult>) | [string, any, (string | undefined)?])[];
density: Density;
centerAffix: boolean;
glow: boolean;
hideSpinButtons: boolean;
persistentHint: boolean;
messages: string | readonly string[];
direction: "horizontal" | "vertical";
} & {
theme?: string | undefined;
class?: any;
"onUpdate:focused"?: ((args_0: boolean) => void) | undefined;
name?: string | undefined;
label?: string | undefined;
validateOn?: ("blur eager" | "blur lazy" | "eager" | "eager blur" | "eager input" | "eager invalid-input" | "eager submit" | "input eager" | "input lazy" | "invalid-input eager" | "invalid-input lazy" | "lazy" | "lazy blur" | "lazy input" | "lazy invalid-input" | "lazy submit" | "submit eager" | "submit lazy" | ("blur" | "input" | "invalid-input" | "submit")) | undefined;
validationValue?: any;
maxWidth?: string | number | undefined;
minWidth?: string | number | undefined;
width?: string | number | undefined;
id?: string | undefined;
appendIcon?: IconValue | undefined;
baseColor?: string | undefined;
color?: string | undefined;
iconColor?: string | boolean | undefined;
prependIcon?: IconValue | undefined;
hide