UNPKG

@velis/dynamicforms

Version:

Data entry boilerplate components and a RESTful API consumer

38 lines 1.23 kB
import FilteredActions from '../../actions/filtered-actions'; import FormField from '../definitions/field'; import type { ActionsNS } from '@/actions/namespace'; type IHandlers = ActionsNS.IHandlers; export interface BaseProps { field: FormField; actions: FilteredActions; errors: any; showLabelOrHelpText?: boolean; modelValue: any; handlers?: IHandlers; dialogHandlers?: IHandlers; } export interface BaseEmits { (e: 'update:modelValue', value: any): void; } export declare const basePropsDefault: { showLabelOrHelpText: boolean; handlers: undefined; dialogHandlers: undefined; }; export declare function useInputBase(props: BaseProps, emit: BaseEmits): { value: import("vue").WritableComputedRef<any, any>; errorsList: import("vue").ComputedRef<any>; errorsDisplayCount: import("vue").ComputedRef<any>; label: import("vue").ComputedRef<string>; helpText: import("vue").ComputedRef<string>; baseBinds: import("vue").ComputedRef<{ label: any; 'error-messages': any; 'error-count': any; hint?: any; 'persistent-hint': any; 'hide-details'?: boolean | "auto"; }>; }; export {}; //# sourceMappingURL=base.d.ts.map