@volverjs/form-vue 1.0.0-beta.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,107 +0,0 @@
1
- import { type InjectionKey, type Ref, type DeepReadonly } from 'vue';
2
- import type { TypeOf, z } from 'zod';
3
- import type { FormSchema, InjectedFormData, InjectedFormWrapperData } from './types';
4
- export declare const defineFormWrapper: <Schema extends FormSchema>(formProvideKey: InjectionKey<InjectedFormData<Schema>>, wrapperProvideKey: InjectionKey<InjectedFormWrapperData<Schema>>) => {
5
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
6
- name: {
7
- type: StringConstructor;
8
- required: true;
9
- };
10
- tag: {
11
- type: StringConstructor;
12
- default: undefined;
13
- };
14
- }>> & {
15
- onInvalid?: ((...args: any[]) => any) | undefined;
16
- onValid?: ((...args: any[]) => any) | undefined;
17
- }, {
18
- formData: Ref<Partial<TypeOf<Schema>> | undefined> | undefined;
19
- errors: Readonly<Ref<DeepReadonly<z.inferFormattedError<Schema, string>> | undefined>> | undefined;
20
- submit: (() => Promise<boolean>) | undefined;
21
- validate: (() => Promise<boolean>) | undefined;
22
- invalid: import("vue").ComputedRef<boolean>;
23
- fields: Ref<Set<string> & Omit<Set<string>, keyof Set<any>>>;
24
- fieldsErrors: Ref<Map<string, z.inferFormattedError<Schema, string>>>;
25
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("invalid" | "valid")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
26
- name: {
27
- type: StringConstructor;
28
- required: true;
29
- };
30
- tag: {
31
- type: StringConstructor;
32
- default: undefined;
33
- };
34
- }>> & {
35
- onInvalid?: ((...args: any[]) => any) | undefined;
36
- onValid?: ((...args: any[]) => any) | undefined;
37
- }, {
38
- tag: string;
39
- }, true, {}, {}, {
40
- P: {};
41
- B: {};
42
- D: {};
43
- C: {};
44
- M: {};
45
- Defaults: {};
46
- }, Readonly<import("vue").ExtractPropTypes<{
47
- name: {
48
- type: StringConstructor;
49
- required: true;
50
- };
51
- tag: {
52
- type: StringConstructor;
53
- default: undefined;
54
- };
55
- }>> & {
56
- onInvalid?: ((...args: any[]) => any) | undefined;
57
- onValid?: ((...args: any[]) => any) | undefined;
58
- }, {
59
- formData: Ref<Partial<TypeOf<Schema>> | undefined> | undefined;
60
- errors: Readonly<Ref<DeepReadonly<z.inferFormattedError<Schema, string>> | undefined>> | undefined;
61
- submit: (() => Promise<boolean>) | undefined;
62
- validate: (() => Promise<boolean>) | undefined;
63
- invalid: import("vue").ComputedRef<boolean>;
64
- fields: Ref<Set<string> & Omit<Set<string>, keyof Set<any>>>;
65
- fieldsErrors: Ref<Map<string, z.inferFormattedError<Schema, string>>>;
66
- }, {}, {}, {}, {
67
- tag: string;
68
- }>;
69
- __isFragment?: undefined;
70
- __isTeleport?: undefined;
71
- __isSuspense?: undefined;
72
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
73
- name: {
74
- type: StringConstructor;
75
- required: true;
76
- };
77
- tag: {
78
- type: StringConstructor;
79
- default: undefined;
80
- };
81
- }>> & {
82
- onInvalid?: ((...args: any[]) => any) | undefined;
83
- onValid?: ((...args: any[]) => any) | undefined;
84
- }, {
85
- formData: Ref<Partial<TypeOf<Schema>> | undefined> | undefined;
86
- errors: Readonly<Ref<DeepReadonly<z.inferFormattedError<Schema, string>> | undefined>> | undefined;
87
- submit: (() => Promise<boolean>) | undefined;
88
- validate: (() => Promise<boolean>) | undefined;
89
- invalid: import("vue").ComputedRef<boolean>;
90
- fields: Ref<Set<string> & Omit<Set<string>, keyof Set<any>>>;
91
- fieldsErrors: Ref<Map<string, z.inferFormattedError<Schema, string>>>;
92
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", {
93
- tag: string;
94
- }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
95
- $slots: {
96
- default: (_: {
97
- invalid: boolean;
98
- formData: unknown extends Partial<TypeOf<Schema>> | undefined ? undefined : Partial<TypeOf<Schema>> | undefined;
99
- submit: () => Promise<boolean>;
100
- validate: () => Promise<boolean>;
101
- errors: Readonly<Ref<DeepReadonly<z.inferFormattedError<Schema, string>>>>;
102
- fieldsErrors: Map<string, Record<string, {
103
- _errors: string[];
104
- }>>;
105
- }) => any;
106
- };
107
- });