@agendize/design-system
Version:
Agendize web design system
177 lines • 7.81 kB
TypeScript
import { Mandatory } from "../viewModel";
export interface Props {
id: string;
description?: string;
}
declare function focus(): void;
declare const _default: import("vue").DefineComponent<Props, {
checkField: (showError?: boolean, onMounted?: boolean) => {
isValid: boolean;
id: any;
values: any;
} | {
isValid: boolean;
id: any;
values?: undefined;
};
focus: typeof focus;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
error: () => any;
"update:modelValue": (item: string) => any;
validated: (validation: {
isValid: boolean;
id: string;
values: any;
}) => any;
onEnter: () => any;
success: () => any;
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
onError?: (() => any) | undefined;
"onUpdate:modelValue"?: ((item: string) => any) | undefined;
onValidated?: ((validation: {
isValid: boolean;
id: string;
values: any;
}) => any) | undefined;
onOnEnter?: (() => any) | undefined;
onSuccess?: (() => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
codeInput: ({
$: import("vue").ComponentInternalInstance;
$data: {};
$props: {
readonly id: string;
readonly label: string;
readonly modelValue?: string | undefined;
readonly helperMessage?: string | undefined;
readonly placeholder?: string | undefined;
readonly mandatory: Mandatory;
readonly pattern?: string | undefined;
readonly minlength?: number | undefined;
readonly maxlength?: number | undefined;
readonly maxFieldLength?: number | undefined;
readonly disabled?: boolean | undefined;
readonly readonly?: boolean | undefined;
readonly showError?: boolean | undefined;
readonly clickToCopy?: boolean | undefined;
readonly onError?: ((item: any) => any) | undefined;
readonly "onUpdate:modelValue"?: ((item: string) => any) | undefined;
readonly onValidated?: ((validation: {
isValid: boolean;
id: string;
values: any;
}) => any) | undefined;
readonly onCopied?: (() => any) | undefined;
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
$attrs: {
[x: string]: unknown;
};
$refs: {
[x: string]: unknown;
} & {
inputField: HTMLInputElement;
slot: HTMLDivElement;
};
$slots: Readonly<{
[name: string]: import("vue").Slot<any> | undefined;
}>;
$root: import("vue").ComponentPublicInstance | null;
$parent: import("vue").ComponentPublicInstance | null;
$host: Element | null;
$emit: ((event: "error", item: any) => void) & ((event: "update:modelValue", item: string) => void) & ((event: "validated", validation: {
isValid: boolean;
id: string;
values: any;
}) => void) & ((event: "copied") => void);
$el: HTMLDivElement;
$options: import("vue").ComponentOptionsBase<Readonly<import("../form/fields/field-input/viewModel.js").FieldInputProps> & Readonly<{
onError?: ((item: any) => any) | undefined;
"onUpdate:modelValue"?: ((item: string) => any) | undefined;
onValidated?: ((validation: {
isValid: boolean;
id: string;
values: any;
}) => any) | undefined;
onCopied?: (() => any) | undefined;
}>, {
checkField: (showError?: boolean, onMounted?: boolean) => {
isValid: boolean;
id: any;
values: any;
} | {
isValid: boolean;
id: any;
values?: undefined;
};
copy: (showMicroToaster: boolean, target?: HTMLInputElement) => void;
focus: () => void;
resetError: () => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
error: (item: any) => any;
"update:modelValue": (item: string) => any;
validated: (validation: {
isValid: boolean;
id: string;
values: any;
}) => any;
copied: () => any;
}, string, {
showError: boolean;
disabled: boolean;
readonly: boolean;
clickToCopy: boolean;
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
beforeCreate?: (() => void) | (() => void)[];
created?: (() => void) | (() => void)[];
beforeMount?: (() => void) | (() => void)[];
mounted?: (() => void) | (() => void)[];
beforeUpdate?: (() => void) | (() => void)[];
updated?: (() => void) | (() => void)[];
activated?: (() => void) | (() => void)[];
deactivated?: (() => void) | (() => void)[];
beforeDestroy?: (() => void) | (() => void)[];
beforeUnmount?: (() => void) | (() => void)[];
destroyed?: (() => void) | (() => void)[];
unmounted?: (() => void) | (() => void)[];
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
};
$forceUpdate: () => void;
$nextTick: typeof import("vue").nextTick;
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
} & Readonly<{
showError: boolean;
disabled: boolean;
readonly: boolean;
clickToCopy: boolean;
}> & Omit<Readonly<import("../form/fields/field-input/viewModel.js").FieldInputProps> & Readonly<{
onError?: ((item: any) => any) | undefined;
"onUpdate:modelValue"?: ((item: string) => any) | undefined;
onValidated?: ((validation: {
isValid: boolean;
id: string;
values: any;
}) => any) | undefined;
onCopied?: (() => any) | undefined;
}>, "copy" | "focus" | "checkField" | "resetError" | ("showError" | "disabled" | "readonly" | "clickToCopy")> & import("vue").ShallowUnwrapRef<{
checkField: (showError?: boolean, onMounted?: boolean) => {
isValid: boolean;
id: any;
values: any;
} | {
isValid: boolean;
id: any;
values?: undefined;
};
copy: (showMicroToaster: boolean, target?: HTMLInputElement) => void;
focus: () => void;
resetError: () => void;
}> & {} & import("vue").ComponentCustomProperties & {} & {
$slots: {
default?(_: {}): any;
};
}) | null;
}, HTMLDivElement>;
export default _default;
//# sourceMappingURL=View.vue.d.ts.map