@verbb/formie-vue 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.
- package/CHANGELOG.md +5 -0
- package/LICENSE.md +40 -0
- package/README.md +24 -0
- package/dist/definition-form.d.ts +243 -0
- package/dist/definition-form.d.ts.map +1 -0
- package/dist/index.d.ts +473 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1246 -0
- package/dist/signature_pad-69C-Dgt3.js +389 -0
- package/dist/stable.d.ts +2 -0
- package/dist/stable.d.ts.map +1 -0
- package/package.json +52 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import type { FormAction, FormieClient, FormieFormInstance, FormMountOptions, FormEndpointPayload, FormTransport, FormSubmitResult } from '@verbb/formie-browser';
|
|
2
|
+
import type { FrontendFieldType, FrontendFormInstance, FrontendSubmitResult } from '@verbb/formie-core';
|
|
3
|
+
import { type Component, type PropType, type Ref, type ShallowRef } from 'vue';
|
|
4
|
+
import { type FormieDefinitionSource, type FormieVueComponents, type FormieVueEvent, useFormie, useFormieField, useFormiePage, useFormieInstance, useFormieSlot } from './definition-form';
|
|
5
|
+
export type FormieHtmlSource = {
|
|
6
|
+
payload: FormEndpointPayload;
|
|
7
|
+
};
|
|
8
|
+
export type FormieFormProps = {
|
|
9
|
+
source?: FormieHtmlSource;
|
|
10
|
+
transport?: FormTransport;
|
|
11
|
+
endpoint?: string;
|
|
12
|
+
formHandle?: string;
|
|
13
|
+
staticCache?: boolean;
|
|
14
|
+
refreshTokens?: boolean;
|
|
15
|
+
locale?: string;
|
|
16
|
+
siteId?: number;
|
|
17
|
+
autoVisible?: boolean;
|
|
18
|
+
theme?: FormMountOptions['theme'];
|
|
19
|
+
themeConfig?: FormMountOptions['themeConfig'];
|
|
20
|
+
className?: string;
|
|
21
|
+
onMount?: (instance: FormieFormInstance) => void;
|
|
22
|
+
onReady?: (instance: FormieFormInstance) => void;
|
|
23
|
+
onUnmount?: () => void;
|
|
24
|
+
onResult?: (result: FormSubmitResult) => void;
|
|
25
|
+
onSuccess?: (result: FormSubmitResult) => void;
|
|
26
|
+
onError?: (result: FormSubmitResult) => void;
|
|
27
|
+
onSubmitResult?: (result: FormSubmitResult) => void;
|
|
28
|
+
onSubmitSuccess?: (result: FormSubmitResult) => void;
|
|
29
|
+
onSubmitError?: (result: FormSubmitResult) => void;
|
|
30
|
+
onEvent?: (event: FormieVueEvent) => void;
|
|
31
|
+
};
|
|
32
|
+
export type FormieClientFormProps = {
|
|
33
|
+
source?: FormieDefinitionSource;
|
|
34
|
+
transport?: FormTransport;
|
|
35
|
+
endpoint?: string;
|
|
36
|
+
formHandle?: string;
|
|
37
|
+
siteId?: number;
|
|
38
|
+
components?: FormieVueComponents;
|
|
39
|
+
fieldComponents?: Partial<Record<FrontendFieldType, Component>>;
|
|
40
|
+
slots?: Partial<Record<string, Component>>;
|
|
41
|
+
className?: string;
|
|
42
|
+
onMount?: (instance: FrontendFormInstance) => void;
|
|
43
|
+
onReady?: (instance: FrontendFormInstance) => void;
|
|
44
|
+
onUnmount?: () => void;
|
|
45
|
+
onResult?: (result: FrontendSubmitResult) => void;
|
|
46
|
+
onSuccess?: (result: FrontendSubmitResult) => void;
|
|
47
|
+
onError?: (result: FrontendSubmitResult) => void;
|
|
48
|
+
onSubmitResult?: (result: FrontendSubmitResult) => void;
|
|
49
|
+
onSubmitSuccess?: (result: FrontendSubmitResult) => void;
|
|
50
|
+
onSubmitError?: (result: FrontendSubmitResult) => void;
|
|
51
|
+
onEvent?: (event: FormieVueEvent) => void;
|
|
52
|
+
};
|
|
53
|
+
export type FormieHtmlOptions = Omit<FormMountOptions, 'mode'>;
|
|
54
|
+
export type UseFormieHtmlState = {
|
|
55
|
+
instance: ShallowRef<FormieFormInstance | null>;
|
|
56
|
+
isMounted: Ref<boolean>;
|
|
57
|
+
error: Ref<Error | null>;
|
|
58
|
+
};
|
|
59
|
+
export declare function createVueFormieClient(): FormieClient;
|
|
60
|
+
export declare function useFormieClient(): FormieClient;
|
|
61
|
+
export declare function useFormieHtml(options: FormieHtmlOptions): {
|
|
62
|
+
rootRef: Ref<HTMLElement | null>;
|
|
63
|
+
state: UseFormieHtmlState;
|
|
64
|
+
submit: (action?: FormAction) => Promise<FormSubmitResult | null>;
|
|
65
|
+
};
|
|
66
|
+
export declare const FormieForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
67
|
+
readonly source: {
|
|
68
|
+
readonly type: PropType<FormieFormProps["source"]>;
|
|
69
|
+
readonly default: any;
|
|
70
|
+
};
|
|
71
|
+
readonly transport: {
|
|
72
|
+
readonly type: PropType<FormTransport | undefined>;
|
|
73
|
+
readonly default: any;
|
|
74
|
+
};
|
|
75
|
+
readonly endpoint: {
|
|
76
|
+
readonly type: StringConstructor;
|
|
77
|
+
readonly default: any;
|
|
78
|
+
};
|
|
79
|
+
readonly formHandle: {
|
|
80
|
+
readonly type: StringConstructor;
|
|
81
|
+
readonly default: any;
|
|
82
|
+
};
|
|
83
|
+
readonly staticCache: {
|
|
84
|
+
readonly type: BooleanConstructor;
|
|
85
|
+
readonly default: any;
|
|
86
|
+
};
|
|
87
|
+
readonly refreshTokens: {
|
|
88
|
+
readonly type: BooleanConstructor;
|
|
89
|
+
readonly default: any;
|
|
90
|
+
};
|
|
91
|
+
readonly locale: {
|
|
92
|
+
readonly type: StringConstructor;
|
|
93
|
+
readonly default: any;
|
|
94
|
+
};
|
|
95
|
+
readonly siteId: {
|
|
96
|
+
readonly type: NumberConstructor;
|
|
97
|
+
readonly default: any;
|
|
98
|
+
};
|
|
99
|
+
readonly autoVisible: {
|
|
100
|
+
readonly type: BooleanConstructor;
|
|
101
|
+
readonly default: any;
|
|
102
|
+
};
|
|
103
|
+
readonly theme: {
|
|
104
|
+
readonly type: PropType<FormMountOptions["theme"] | undefined>;
|
|
105
|
+
readonly default: any;
|
|
106
|
+
};
|
|
107
|
+
readonly themeConfig: {
|
|
108
|
+
readonly type: PropType<FormMountOptions["themeConfig"] | undefined>;
|
|
109
|
+
readonly default: any;
|
|
110
|
+
};
|
|
111
|
+
readonly className: {
|
|
112
|
+
readonly type: StringConstructor;
|
|
113
|
+
readonly default: any;
|
|
114
|
+
};
|
|
115
|
+
readonly onMount: {
|
|
116
|
+
readonly type: PropType<FormieFormProps["onMount"]>;
|
|
117
|
+
readonly default: any;
|
|
118
|
+
};
|
|
119
|
+
readonly onReady: {
|
|
120
|
+
readonly type: PropType<FormieFormProps["onReady"]>;
|
|
121
|
+
readonly default: any;
|
|
122
|
+
};
|
|
123
|
+
readonly onUnmount: {
|
|
124
|
+
readonly type: PropType<FormieFormProps["onUnmount"]>;
|
|
125
|
+
readonly default: any;
|
|
126
|
+
};
|
|
127
|
+
readonly onResult: {
|
|
128
|
+
readonly type: PropType<FormieFormProps["onResult"]>;
|
|
129
|
+
readonly default: any;
|
|
130
|
+
};
|
|
131
|
+
readonly onSuccess: {
|
|
132
|
+
readonly type: PropType<FormieFormProps["onSuccess"]>;
|
|
133
|
+
readonly default: any;
|
|
134
|
+
};
|
|
135
|
+
readonly onError: {
|
|
136
|
+
readonly type: PropType<FormieFormProps["onError"]>;
|
|
137
|
+
readonly default: any;
|
|
138
|
+
};
|
|
139
|
+
readonly onSubmitResult: {
|
|
140
|
+
readonly type: PropType<FormieFormProps["onSubmitResult"]>;
|
|
141
|
+
readonly default: any;
|
|
142
|
+
};
|
|
143
|
+
readonly onSubmitSuccess: {
|
|
144
|
+
readonly type: PropType<FormieFormProps["onSubmitSuccess"]>;
|
|
145
|
+
readonly default: any;
|
|
146
|
+
};
|
|
147
|
+
readonly onSubmitError: {
|
|
148
|
+
readonly type: PropType<FormieFormProps["onSubmitError"]>;
|
|
149
|
+
readonly default: any;
|
|
150
|
+
};
|
|
151
|
+
readonly onEvent: {
|
|
152
|
+
readonly type: PropType<FormieFormProps["onEvent"]>;
|
|
153
|
+
readonly default: any;
|
|
154
|
+
};
|
|
155
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
156
|
+
[key: string]: any;
|
|
157
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "mount" | "ready" | "unmount" | "result" | "success" | "submit-result" | "submit-success" | "submit-error" | "event")[], "error" | "mount" | "ready" | "unmount" | "result" | "success" | "submit-result" | "submit-success" | "submit-error" | "event", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
158
|
+
readonly source: {
|
|
159
|
+
readonly type: PropType<FormieFormProps["source"]>;
|
|
160
|
+
readonly default: any;
|
|
161
|
+
};
|
|
162
|
+
readonly transport: {
|
|
163
|
+
readonly type: PropType<FormTransport | undefined>;
|
|
164
|
+
readonly default: any;
|
|
165
|
+
};
|
|
166
|
+
readonly endpoint: {
|
|
167
|
+
readonly type: StringConstructor;
|
|
168
|
+
readonly default: any;
|
|
169
|
+
};
|
|
170
|
+
readonly formHandle: {
|
|
171
|
+
readonly type: StringConstructor;
|
|
172
|
+
readonly default: any;
|
|
173
|
+
};
|
|
174
|
+
readonly staticCache: {
|
|
175
|
+
readonly type: BooleanConstructor;
|
|
176
|
+
readonly default: any;
|
|
177
|
+
};
|
|
178
|
+
readonly refreshTokens: {
|
|
179
|
+
readonly type: BooleanConstructor;
|
|
180
|
+
readonly default: any;
|
|
181
|
+
};
|
|
182
|
+
readonly locale: {
|
|
183
|
+
readonly type: StringConstructor;
|
|
184
|
+
readonly default: any;
|
|
185
|
+
};
|
|
186
|
+
readonly siteId: {
|
|
187
|
+
readonly type: NumberConstructor;
|
|
188
|
+
readonly default: any;
|
|
189
|
+
};
|
|
190
|
+
readonly autoVisible: {
|
|
191
|
+
readonly type: BooleanConstructor;
|
|
192
|
+
readonly default: any;
|
|
193
|
+
};
|
|
194
|
+
readonly theme: {
|
|
195
|
+
readonly type: PropType<FormMountOptions["theme"] | undefined>;
|
|
196
|
+
readonly default: any;
|
|
197
|
+
};
|
|
198
|
+
readonly themeConfig: {
|
|
199
|
+
readonly type: PropType<FormMountOptions["themeConfig"] | undefined>;
|
|
200
|
+
readonly default: any;
|
|
201
|
+
};
|
|
202
|
+
readonly className: {
|
|
203
|
+
readonly type: StringConstructor;
|
|
204
|
+
readonly default: any;
|
|
205
|
+
};
|
|
206
|
+
readonly onMount: {
|
|
207
|
+
readonly type: PropType<FormieFormProps["onMount"]>;
|
|
208
|
+
readonly default: any;
|
|
209
|
+
};
|
|
210
|
+
readonly onReady: {
|
|
211
|
+
readonly type: PropType<FormieFormProps["onReady"]>;
|
|
212
|
+
readonly default: any;
|
|
213
|
+
};
|
|
214
|
+
readonly onUnmount: {
|
|
215
|
+
readonly type: PropType<FormieFormProps["onUnmount"]>;
|
|
216
|
+
readonly default: any;
|
|
217
|
+
};
|
|
218
|
+
readonly onResult: {
|
|
219
|
+
readonly type: PropType<FormieFormProps["onResult"]>;
|
|
220
|
+
readonly default: any;
|
|
221
|
+
};
|
|
222
|
+
readonly onSuccess: {
|
|
223
|
+
readonly type: PropType<FormieFormProps["onSuccess"]>;
|
|
224
|
+
readonly default: any;
|
|
225
|
+
};
|
|
226
|
+
readonly onError: {
|
|
227
|
+
readonly type: PropType<FormieFormProps["onError"]>;
|
|
228
|
+
readonly default: any;
|
|
229
|
+
};
|
|
230
|
+
readonly onSubmitResult: {
|
|
231
|
+
readonly type: PropType<FormieFormProps["onSubmitResult"]>;
|
|
232
|
+
readonly default: any;
|
|
233
|
+
};
|
|
234
|
+
readonly onSubmitSuccess: {
|
|
235
|
+
readonly type: PropType<FormieFormProps["onSubmitSuccess"]>;
|
|
236
|
+
readonly default: any;
|
|
237
|
+
};
|
|
238
|
+
readonly onSubmitError: {
|
|
239
|
+
readonly type: PropType<FormieFormProps["onSubmitError"]>;
|
|
240
|
+
readonly default: any;
|
|
241
|
+
};
|
|
242
|
+
readonly onEvent: {
|
|
243
|
+
readonly type: PropType<FormieFormProps["onEvent"]>;
|
|
244
|
+
readonly default: any;
|
|
245
|
+
};
|
|
246
|
+
}>> & Readonly<{
|
|
247
|
+
onError?: (...args: any[]) => any;
|
|
248
|
+
onMount?: (...args: any[]) => any;
|
|
249
|
+
onReady?: (...args: any[]) => any;
|
|
250
|
+
onUnmount?: (...args: any[]) => any;
|
|
251
|
+
onResult?: (...args: any[]) => any;
|
|
252
|
+
onSuccess?: (...args: any[]) => any;
|
|
253
|
+
onEvent?: (...args: any[]) => any;
|
|
254
|
+
"onSubmit-result"?: (...args: any[]) => any;
|
|
255
|
+
"onSubmit-success"?: (...args: any[]) => any;
|
|
256
|
+
"onSubmit-error"?: (...args: any[]) => any;
|
|
257
|
+
}>, {
|
|
258
|
+
readonly onError: (result: FormSubmitResult) => void;
|
|
259
|
+
readonly source: FormieHtmlSource;
|
|
260
|
+
readonly className: string;
|
|
261
|
+
readonly onMount: (instance: FormieFormInstance) => void;
|
|
262
|
+
readonly onReady: (instance: FormieFormInstance) => void;
|
|
263
|
+
readonly onUnmount: () => void;
|
|
264
|
+
readonly onResult: (result: FormSubmitResult) => void;
|
|
265
|
+
readonly onSuccess: (result: FormSubmitResult) => void;
|
|
266
|
+
readonly onSubmitResult: (result: FormSubmitResult) => void;
|
|
267
|
+
readonly onSubmitSuccess: (result: FormSubmitResult) => void;
|
|
268
|
+
readonly onSubmitError: (result: FormSubmitResult) => void;
|
|
269
|
+
readonly onEvent: (event: FormieVueEvent) => void;
|
|
270
|
+
readonly theme: any;
|
|
271
|
+
readonly themeConfig: any;
|
|
272
|
+
readonly endpoint: string;
|
|
273
|
+
readonly formHandle: string;
|
|
274
|
+
readonly siteId: number;
|
|
275
|
+
readonly transport: any;
|
|
276
|
+
readonly staticCache: boolean;
|
|
277
|
+
readonly refreshTokens: boolean;
|
|
278
|
+
readonly locale: string;
|
|
279
|
+
readonly autoVisible: boolean;
|
|
280
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
281
|
+
export declare const FormieClientForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
282
|
+
readonly source: {
|
|
283
|
+
readonly type: PropType<FormieClientFormProps["source"]>;
|
|
284
|
+
readonly default: any;
|
|
285
|
+
};
|
|
286
|
+
readonly transport: {
|
|
287
|
+
readonly type: PropType<FormTransport | undefined>;
|
|
288
|
+
readonly default: any;
|
|
289
|
+
};
|
|
290
|
+
readonly endpoint: {
|
|
291
|
+
readonly type: StringConstructor;
|
|
292
|
+
readonly default: any;
|
|
293
|
+
};
|
|
294
|
+
readonly formHandle: {
|
|
295
|
+
readonly type: StringConstructor;
|
|
296
|
+
readonly default: any;
|
|
297
|
+
};
|
|
298
|
+
readonly siteId: {
|
|
299
|
+
readonly type: NumberConstructor;
|
|
300
|
+
readonly default: any;
|
|
301
|
+
};
|
|
302
|
+
readonly components: {
|
|
303
|
+
readonly type: PropType<FormieVueComponents | undefined>;
|
|
304
|
+
readonly default: any;
|
|
305
|
+
};
|
|
306
|
+
readonly fieldComponents: {
|
|
307
|
+
readonly type: PropType<Partial<Record<FrontendFieldType, Component>> | undefined>;
|
|
308
|
+
readonly default: any;
|
|
309
|
+
};
|
|
310
|
+
readonly slots: {
|
|
311
|
+
readonly type: PropType<Partial<Record<string, Component>> | undefined>;
|
|
312
|
+
readonly default: any;
|
|
313
|
+
};
|
|
314
|
+
readonly className: {
|
|
315
|
+
readonly type: StringConstructor;
|
|
316
|
+
readonly default: any;
|
|
317
|
+
};
|
|
318
|
+
readonly onMount: {
|
|
319
|
+
readonly type: PropType<FormieClientFormProps["onMount"]>;
|
|
320
|
+
readonly default: any;
|
|
321
|
+
};
|
|
322
|
+
readonly onReady: {
|
|
323
|
+
readonly type: PropType<FormieClientFormProps["onReady"]>;
|
|
324
|
+
readonly default: any;
|
|
325
|
+
};
|
|
326
|
+
readonly onUnmount: {
|
|
327
|
+
readonly type: PropType<FormieClientFormProps["onUnmount"]>;
|
|
328
|
+
readonly default: any;
|
|
329
|
+
};
|
|
330
|
+
readonly onResult: {
|
|
331
|
+
readonly type: PropType<FormieClientFormProps["onResult"]>;
|
|
332
|
+
readonly default: any;
|
|
333
|
+
};
|
|
334
|
+
readonly onSuccess: {
|
|
335
|
+
readonly type: PropType<FormieClientFormProps["onSuccess"]>;
|
|
336
|
+
readonly default: any;
|
|
337
|
+
};
|
|
338
|
+
readonly onError: {
|
|
339
|
+
readonly type: PropType<FormieClientFormProps["onError"]>;
|
|
340
|
+
readonly default: any;
|
|
341
|
+
};
|
|
342
|
+
readonly onSubmitResult: {
|
|
343
|
+
readonly type: PropType<FormieClientFormProps["onSubmitResult"]>;
|
|
344
|
+
readonly default: any;
|
|
345
|
+
};
|
|
346
|
+
readonly onSubmitSuccess: {
|
|
347
|
+
readonly type: PropType<FormieClientFormProps["onSubmitSuccess"]>;
|
|
348
|
+
readonly default: any;
|
|
349
|
+
};
|
|
350
|
+
readonly onSubmitError: {
|
|
351
|
+
readonly type: PropType<FormieClientFormProps["onSubmitError"]>;
|
|
352
|
+
readonly default: any;
|
|
353
|
+
};
|
|
354
|
+
readonly onEvent: {
|
|
355
|
+
readonly type: PropType<FormieClientFormProps["onEvent"]>;
|
|
356
|
+
readonly default: any;
|
|
357
|
+
};
|
|
358
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
359
|
+
[key: string]: any;
|
|
360
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "mount" | "ready" | "unmount" | "result" | "success" | "submit-result" | "submit-success" | "submit-error" | "event")[], "error" | "mount" | "ready" | "unmount" | "result" | "success" | "submit-result" | "submit-success" | "submit-error" | "event", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
361
|
+
readonly source: {
|
|
362
|
+
readonly type: PropType<FormieClientFormProps["source"]>;
|
|
363
|
+
readonly default: any;
|
|
364
|
+
};
|
|
365
|
+
readonly transport: {
|
|
366
|
+
readonly type: PropType<FormTransport | undefined>;
|
|
367
|
+
readonly default: any;
|
|
368
|
+
};
|
|
369
|
+
readonly endpoint: {
|
|
370
|
+
readonly type: StringConstructor;
|
|
371
|
+
readonly default: any;
|
|
372
|
+
};
|
|
373
|
+
readonly formHandle: {
|
|
374
|
+
readonly type: StringConstructor;
|
|
375
|
+
readonly default: any;
|
|
376
|
+
};
|
|
377
|
+
readonly siteId: {
|
|
378
|
+
readonly type: NumberConstructor;
|
|
379
|
+
readonly default: any;
|
|
380
|
+
};
|
|
381
|
+
readonly components: {
|
|
382
|
+
readonly type: PropType<FormieVueComponents | undefined>;
|
|
383
|
+
readonly default: any;
|
|
384
|
+
};
|
|
385
|
+
readonly fieldComponents: {
|
|
386
|
+
readonly type: PropType<Partial<Record<FrontendFieldType, Component>> | undefined>;
|
|
387
|
+
readonly default: any;
|
|
388
|
+
};
|
|
389
|
+
readonly slots: {
|
|
390
|
+
readonly type: PropType<Partial<Record<string, Component>> | undefined>;
|
|
391
|
+
readonly default: any;
|
|
392
|
+
};
|
|
393
|
+
readonly className: {
|
|
394
|
+
readonly type: StringConstructor;
|
|
395
|
+
readonly default: any;
|
|
396
|
+
};
|
|
397
|
+
readonly onMount: {
|
|
398
|
+
readonly type: PropType<FormieClientFormProps["onMount"]>;
|
|
399
|
+
readonly default: any;
|
|
400
|
+
};
|
|
401
|
+
readonly onReady: {
|
|
402
|
+
readonly type: PropType<FormieClientFormProps["onReady"]>;
|
|
403
|
+
readonly default: any;
|
|
404
|
+
};
|
|
405
|
+
readonly onUnmount: {
|
|
406
|
+
readonly type: PropType<FormieClientFormProps["onUnmount"]>;
|
|
407
|
+
readonly default: any;
|
|
408
|
+
};
|
|
409
|
+
readonly onResult: {
|
|
410
|
+
readonly type: PropType<FormieClientFormProps["onResult"]>;
|
|
411
|
+
readonly default: any;
|
|
412
|
+
};
|
|
413
|
+
readonly onSuccess: {
|
|
414
|
+
readonly type: PropType<FormieClientFormProps["onSuccess"]>;
|
|
415
|
+
readonly default: any;
|
|
416
|
+
};
|
|
417
|
+
readonly onError: {
|
|
418
|
+
readonly type: PropType<FormieClientFormProps["onError"]>;
|
|
419
|
+
readonly default: any;
|
|
420
|
+
};
|
|
421
|
+
readonly onSubmitResult: {
|
|
422
|
+
readonly type: PropType<FormieClientFormProps["onSubmitResult"]>;
|
|
423
|
+
readonly default: any;
|
|
424
|
+
};
|
|
425
|
+
readonly onSubmitSuccess: {
|
|
426
|
+
readonly type: PropType<FormieClientFormProps["onSubmitSuccess"]>;
|
|
427
|
+
readonly default: any;
|
|
428
|
+
};
|
|
429
|
+
readonly onSubmitError: {
|
|
430
|
+
readonly type: PropType<FormieClientFormProps["onSubmitError"]>;
|
|
431
|
+
readonly default: any;
|
|
432
|
+
};
|
|
433
|
+
readonly onEvent: {
|
|
434
|
+
readonly type: PropType<FormieClientFormProps["onEvent"]>;
|
|
435
|
+
readonly default: any;
|
|
436
|
+
};
|
|
437
|
+
}>> & Readonly<{
|
|
438
|
+
onError?: (...args: any[]) => any;
|
|
439
|
+
onMount?: (...args: any[]) => any;
|
|
440
|
+
onReady?: (...args: any[]) => any;
|
|
441
|
+
onUnmount?: (...args: any[]) => any;
|
|
442
|
+
onResult?: (...args: any[]) => any;
|
|
443
|
+
onSuccess?: (...args: any[]) => any;
|
|
444
|
+
onEvent?: (...args: any[]) => any;
|
|
445
|
+
"onSubmit-result"?: (...args: any[]) => any;
|
|
446
|
+
"onSubmit-success"?: (...args: any[]) => any;
|
|
447
|
+
"onSubmit-error"?: (...args: any[]) => any;
|
|
448
|
+
}>, {
|
|
449
|
+
readonly onError: (result: FrontendSubmitResult) => void;
|
|
450
|
+
readonly source: FormieDefinitionSource;
|
|
451
|
+
readonly components: FormieVueComponents;
|
|
452
|
+
readonly slots: Partial<Record<string, Component>>;
|
|
453
|
+
readonly className: string;
|
|
454
|
+
readonly fieldComponents: Partial<Record<FrontendFieldType, Component>>;
|
|
455
|
+
readonly onMount: (instance: FrontendFormInstance) => void;
|
|
456
|
+
readonly onReady: (instance: FrontendFormInstance) => void;
|
|
457
|
+
readonly onUnmount: () => void;
|
|
458
|
+
readonly onResult: (result: FrontendSubmitResult) => void;
|
|
459
|
+
readonly onSuccess: (result: FrontendSubmitResult) => void;
|
|
460
|
+
readonly onSubmitResult: (result: FrontendSubmitResult) => void;
|
|
461
|
+
readonly onSubmitSuccess: (result: FrontendSubmitResult) => void;
|
|
462
|
+
readonly onSubmitError: (result: FrontendSubmitResult) => void;
|
|
463
|
+
readonly onEvent: (event: FormieVueEvent) => void;
|
|
464
|
+
readonly endpoint: string;
|
|
465
|
+
readonly formHandle: string;
|
|
466
|
+
readonly siteId: number;
|
|
467
|
+
readonly transport: any;
|
|
468
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
469
|
+
export type { FormAction, FormEventUnsubscribe, FormDefinitionPayload, FormEndpointPayload, FormieClient, FormieFormInstance, FormMountOptions, FormSubmitResult, } from '@verbb/formie-browser';
|
|
470
|
+
export type { FrontendFieldDefinition, FrontendFieldType, FrontendFormDefinition, FrontendFormEnvelope, FrontendFormSession, FrontendFormInstance, FrontendFormState, FrontendSubmitResult, } from '@verbb/formie-core';
|
|
471
|
+
export type { FormieDefinitionSource, FormieErrorSummaryProps, FormieFieldComponentProps, FormieFieldProps, FormieFormComponentProps, FormiePageComponentProps, FormieSlotComponentProps, FormieVueComponents, FormieVueEvent, } from './definition-form';
|
|
472
|
+
export { useFormie, useFormieField, useFormiePage, useFormieInstance, useFormieSlot, };
|
|
473
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,UAAU,EAEV,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACR,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAOH,KAAK,SAAS,EAC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