UNPKG

@kevinkosterr/vue3-form-generator

Version:

A schema-based form generator component for Vue 3, based on the original [`vue-form-generator`](https://github.com/vue-generators/vue-form-generator) library.

16 lines (15 loc) 1.46 kB
import { App } from 'vue'; import { FieldPluginOptions, PluginOptions, ValidationTrigger, FormGeneratorSchema, FieldExposedValues, FieldComponent, FormOptions, FieldValidation } from './resources/types/generic'; import { FieldProps, FieldPropRefs, FieldEmits } from './resources/types/field/fields'; import { FieldBase } from './resources/types/field/base'; import { FieldOption, FormModel } from './resources/types/fieldAttributes'; import { TDynamicAttributeBooleanFunction, TDynamicAttributeStringFunction, TValidatorFunction, TOnValidatedFunction } from './resources/types/functions'; import { useFieldValidate, useFormModel, useFieldAttributes, useValidation, useFieldEmits, useFieldProps, useLabelIcon } from './composables'; import { default as FormLabel } from './components/FormLabel.vue'; import { default as validators } from './validators'; declare const VueFormGenerator: { install(app: App, options: PluginOptions): void; }; export default VueFormGenerator; export { useFieldProps, useFormModel, useFieldEmits, useFieldAttributes, useFieldValidate, useLabelIcon, useValidation, FormLabel, validators }; export type { FieldProps, FieldEmits, FieldPropRefs, FieldPluginOptions, PluginOptions, FieldBase, FieldOption, FormModel, TDynamicAttributeBooleanFunction, TDynamicAttributeStringFunction, TValidatorFunction, TOnValidatedFunction, ValidationTrigger, FormGeneratorSchema, FieldExposedValues, FieldComponent, FormOptions, FieldValidation };