maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
20 lines (19 loc) • 1.01 kB
TypeScript
import { BaseFormPayload, ExtractModelKey, FieldState, FormSchema, StrictOptions } from './types';
export declare function scrollToError(selector?: string): void;
export declare function findInteractiveElements(el: HTMLElement): HTMLElement[];
export declare function addEventToInteractiveElements({ interactiveElements, onBlur, mode, }: {
interactiveElements: HTMLElement[];
onBlur: () => void;
mode: StrictOptions<BaseFormPayload, ExtractModelKey<FormSchema<BaseFormPayload>>>['mode'];
}): void;
export declare function removeEventFromInteractiveElements({ interactiveElements, onBlur, }: {
interactiveElements: HTMLElement[];
onBlur: () => void;
}): void;
export declare function getValidationEvents<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>>, F extends FieldState<Model, ModelKey, Model[ModelKey]>>({ hasRef, fieldState, onBlur, }: {
hasRef?: boolean;
fieldState: F;
onBlur: () => void;
}): {
onBlur: () => void;
} | undefined;