@zeng-alt/formkit-form-builder 1.1.0 → 1.3.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/dist/builder.css +1 -1
- package/dist/builder.es.js +8689 -12785
- package/dist/builder.umd.js +35 -50
- package/dist/index.d.ts +885 -2
- package/package.json +40 -41
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,52 @@
|
|
|
1
|
+
import { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { Attrs } from 'vue';
|
|
1
3
|
import { AxiosInstance } from 'axios';
|
|
4
|
+
import { Breakpoints } from 'naive-ui/es/config-provider/src/internal-interface';
|
|
2
5
|
import { Component } from 'vue';
|
|
6
|
+
import { ComponentCustomProperties } from 'vue';
|
|
7
|
+
import { ComponentCustomProps } from 'vue';
|
|
8
|
+
import { ComponentInternalInstance } from 'vue';
|
|
9
|
+
import { ComponentOptionsBase } from 'vue';
|
|
3
10
|
import { ComponentOptionsMixin } from 'vue';
|
|
4
11
|
import { ComponentProvideOptions } from 'vue';
|
|
12
|
+
import { ComponentPublicInstance } from 'vue';
|
|
5
13
|
import { ComputedOptions } from 'vue';
|
|
6
14
|
import { ComputedRef } from 'vue';
|
|
7
15
|
import { ConfigProviderProps } from 'naive-ui';
|
|
8
16
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
9
17
|
import { createInput } from '@formkit/vue';
|
|
18
|
+
import { DebuggerEvent } from 'vue';
|
|
10
19
|
import { defaultConfig } from '@formkit/vue';
|
|
11
20
|
import { DefineComponent } from 'vue';
|
|
21
|
+
import { ExtractPropTypes } from 'vue';
|
|
12
22
|
import { FormKitConfig } from '@formkit/core';
|
|
13
23
|
import { FormKitContext } from '@formkit/core';
|
|
14
24
|
import { FormKitNode } from '@formkit/core';
|
|
15
25
|
import { FormKitPlugin } from '@formkit/core';
|
|
16
26
|
import { FormKitProps } from '@formkit/core';
|
|
17
27
|
import { FormKitSchemaFormKit } from '@formkit/core';
|
|
28
|
+
import { GlobalComponentConfig } from 'naive-ui';
|
|
18
29
|
import { GlobalComponents } from 'vue';
|
|
19
30
|
import { GlobalDirectives } from 'vue';
|
|
31
|
+
import { GlobalIconConfig } from 'naive-ui';
|
|
32
|
+
import { GlobalTheme } from 'naive-ui';
|
|
33
|
+
import { GlobalThemeOverrides } from 'naive-ui';
|
|
34
|
+
import { Hljs } from 'naive-ui/es/_mixins';
|
|
35
|
+
import { Katex } from 'naive-ui/es/config-provider/src/katex';
|
|
20
36
|
import { MethodOptions } from 'vue';
|
|
37
|
+
import { NDateLocale } from 'naive-ui';
|
|
38
|
+
import { nextTick } from 'vue';
|
|
39
|
+
import { NLocale } from 'naive-ui';
|
|
40
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
21
41
|
import { Plugin as Plugin_2 } from 'vue';
|
|
42
|
+
import { PropType } from 'vue';
|
|
22
43
|
import { PublicProps } from 'vue';
|
|
23
44
|
import { Ref } from 'vue';
|
|
45
|
+
import { RtlProp } from 'naive-ui/es/config-provider/src/internal-interface';
|
|
46
|
+
import { Slot } from 'vue';
|
|
47
|
+
import { VNodeProps } from 'vue';
|
|
48
|
+
import { WatchOptions } from 'vue';
|
|
49
|
+
import { WatchStopHandle } from 'vue';
|
|
24
50
|
|
|
25
51
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
26
52
|
"update:modelValue": (value: FormDefinition) => any;
|
|
@@ -33,6 +59,7 @@ declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {},
|
|
|
33
59
|
declare const __VLS_component_3: DefineComponent<__VLS_Props_5, {
|
|
34
60
|
submit: () => void | undefined;
|
|
35
61
|
reset: () => void | undefined;
|
|
62
|
+
validate: () => Promise<boolean>;
|
|
36
63
|
loading: Ref<boolean, boolean>;
|
|
37
64
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
38
65
|
submit: (formData: ModelValue_3, id: string | undefined, version: number | undefined) => any;
|
|
@@ -41,6 +68,7 @@ declare const __VLS_component_3: DefineComponent<__VLS_Props_5, {
|
|
|
41
68
|
onSubmit?: ((formData: ModelValue_3, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
42
69
|
"onUpdate:modelValue"?: ((value: ModelValue_3) => any) | undefined;
|
|
43
70
|
}>, {
|
|
71
|
+
disabled: boolean;
|
|
44
72
|
actions: boolean;
|
|
45
73
|
formClass: string;
|
|
46
74
|
dataStructure: "flat" | "nested";
|
|
@@ -95,6 +123,7 @@ declare type __VLS_Props_3 = {
|
|
|
95
123
|
formClass?: string;
|
|
96
124
|
interactiveContainers?: boolean;
|
|
97
125
|
resetOnSubmit?: boolean;
|
|
126
|
+
disabled?: boolean;
|
|
98
127
|
};
|
|
99
128
|
|
|
100
129
|
declare type __VLS_Props_4 = {
|
|
@@ -115,6 +144,7 @@ declare type __VLS_Props_4 = {
|
|
|
115
144
|
/** 右侧数据面板宽度 */
|
|
116
145
|
dataPanelWidth?: string;
|
|
117
146
|
resetOnSubmit?: boolean;
|
|
147
|
+
disabled?: boolean;
|
|
118
148
|
};
|
|
119
149
|
|
|
120
150
|
declare type __VLS_Props_5 = {
|
|
@@ -149,6 +179,8 @@ declare type __VLS_Props_5 = {
|
|
|
149
179
|
theme?: BuilderTheme;
|
|
150
180
|
/** 自定义 HTTP 请求库实例:供 JS 绑定代码里的 axios 变量使用;缺省使用内置 axios */
|
|
151
181
|
http?: AxiosInstance;
|
|
182
|
+
/** 禁用整个表单(所有输入 + 操作区按钮);缺省 false */
|
|
183
|
+
disabled?: boolean;
|
|
152
184
|
} & Omit<Partial<ConfigProviderProps>, 'theme'>;
|
|
153
185
|
|
|
154
186
|
declare function __VLS_template(): {
|
|
@@ -272,6 +304,7 @@ export declare function buildElementSchemaLibrary(): Record<string, Component>;
|
|
|
272
304
|
export declare const BuilderPreview: DefineComponent<__VLS_Props_3, {
|
|
273
305
|
open: () => void;
|
|
274
306
|
close: () => void;
|
|
307
|
+
validate: () => Promise<boolean>;
|
|
275
308
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
276
309
|
submit: (formData: ModelValue, id: string | undefined, version: number | undefined) => any;
|
|
277
310
|
"update:show": (value: boolean) => any;
|
|
@@ -279,12 +312,432 @@ submit: (formData: ModelValue, id: string | undefined, version: number | undefin
|
|
|
279
312
|
onSubmit?: ((formData: ModelValue, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
280
313
|
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
281
314
|
}>, {
|
|
315
|
+
disabled: boolean;
|
|
282
316
|
actions: boolean;
|
|
283
317
|
formClass: string;
|
|
284
318
|
interactiveContainers: boolean;
|
|
285
319
|
showDataPanel: boolean;
|
|
286
320
|
resetOnSubmit: boolean;
|
|
287
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
321
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
322
|
+
rendererRef: ({
|
|
323
|
+
$: ComponentInternalInstance;
|
|
324
|
+
$data: {};
|
|
325
|
+
$props: {
|
|
326
|
+
readonly definition?: FormDefinition | undefined;
|
|
327
|
+
readonly schema?: FormKitSchemaFormKit[] | undefined;
|
|
328
|
+
readonly dataStructure?: "flat" | "nested" | undefined;
|
|
329
|
+
readonly modelValue?: {
|
|
330
|
+
[x: string]: unknown;
|
|
331
|
+
} | undefined;
|
|
332
|
+
readonly actions?: boolean | undefined;
|
|
333
|
+
readonly submitLabel?: string | undefined;
|
|
334
|
+
readonly resetLabel?: string | undefined;
|
|
335
|
+
readonly submitAttrs?: Record<string, unknown> | undefined;
|
|
336
|
+
readonly resetAttrs?: Record<string, unknown> | undefined;
|
|
337
|
+
readonly actionsJustify?: "start" | "center" | "end" | "space-between" | undefined;
|
|
338
|
+
readonly formClass?: string | undefined;
|
|
339
|
+
readonly formName?: string | undefined;
|
|
340
|
+
readonly labelPosition?: "top" | "left" | undefined;
|
|
341
|
+
readonly labelWidth?: number | undefined;
|
|
342
|
+
readonly schemaLibrary?: Record<string, Component> | undefined;
|
|
343
|
+
readonly interactiveContainers?: boolean | undefined;
|
|
344
|
+
readonly config?: FormBuilderConfig | undefined;
|
|
345
|
+
readonly theme?: BuilderTheme | undefined;
|
|
346
|
+
readonly http?: AxiosInstance | undefined;
|
|
347
|
+
readonly disabled?: boolean | undefined;
|
|
348
|
+
readonly themeOverrides?: GlobalThemeOverrides | null | undefined;
|
|
349
|
+
readonly tag?: string | undefined;
|
|
350
|
+
readonly bordered?: boolean | undefined;
|
|
351
|
+
readonly namespace?: string | undefined;
|
|
352
|
+
readonly inlineThemeDisabled?: boolean | undefined;
|
|
353
|
+
readonly abstract?: boolean | undefined;
|
|
354
|
+
readonly as?: string | undefined;
|
|
355
|
+
readonly locale?: {
|
|
356
|
+
name: string;
|
|
357
|
+
global: {
|
|
358
|
+
undo: string;
|
|
359
|
+
redo: string;
|
|
360
|
+
confirm: string;
|
|
361
|
+
clear: string;
|
|
362
|
+
};
|
|
363
|
+
Popconfirm: {
|
|
364
|
+
positiveText: string;
|
|
365
|
+
negativeText: string;
|
|
366
|
+
};
|
|
367
|
+
Cascader: {
|
|
368
|
+
placeholder: string;
|
|
369
|
+
loading: string;
|
|
370
|
+
loadingRequiredMessage: (label: string) => string;
|
|
371
|
+
};
|
|
372
|
+
Time: {
|
|
373
|
+
dateFormat: string;
|
|
374
|
+
dateTimeFormat: string;
|
|
375
|
+
};
|
|
376
|
+
DatePicker: {
|
|
377
|
+
yearFormat: string;
|
|
378
|
+
monthFormat: string;
|
|
379
|
+
dayFormat: string;
|
|
380
|
+
yearTypeFormat: string;
|
|
381
|
+
monthTypeFormat: string;
|
|
382
|
+
dateFormat: string;
|
|
383
|
+
dateTimeFormat: string;
|
|
384
|
+
quarterFormat: string;
|
|
385
|
+
weekFormat: string;
|
|
386
|
+
clear: string;
|
|
387
|
+
now: string;
|
|
388
|
+
confirm: string;
|
|
389
|
+
selectTime: string;
|
|
390
|
+
selectDate: string;
|
|
391
|
+
datePlaceholder: string;
|
|
392
|
+
datetimePlaceholder: string;
|
|
393
|
+
monthPlaceholder: string;
|
|
394
|
+
yearPlaceholder: string;
|
|
395
|
+
quarterPlaceholder: string;
|
|
396
|
+
weekPlaceholder: string;
|
|
397
|
+
startDatePlaceholder: string;
|
|
398
|
+
endDatePlaceholder: string;
|
|
399
|
+
startDatetimePlaceholder: string;
|
|
400
|
+
endDatetimePlaceholder: string;
|
|
401
|
+
startMonthPlaceholder: string;
|
|
402
|
+
endMonthPlaceholder: string;
|
|
403
|
+
monthBeforeYear: boolean;
|
|
404
|
+
firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
405
|
+
today: string;
|
|
406
|
+
};
|
|
407
|
+
DataTable: {
|
|
408
|
+
checkTableAll: string;
|
|
409
|
+
uncheckTableAll: string;
|
|
410
|
+
confirm: string;
|
|
411
|
+
clear: string;
|
|
412
|
+
};
|
|
413
|
+
LegacyTransfer: {
|
|
414
|
+
sourceTitle: string;
|
|
415
|
+
targetTitle: string;
|
|
416
|
+
};
|
|
417
|
+
Transfer: {
|
|
418
|
+
selectAll: string;
|
|
419
|
+
unselectAll: string;
|
|
420
|
+
clearAll: string;
|
|
421
|
+
total: (num: number) => string;
|
|
422
|
+
selected: (num: number) => string;
|
|
423
|
+
};
|
|
424
|
+
Empty: {
|
|
425
|
+
description: string;
|
|
426
|
+
};
|
|
427
|
+
Select: {
|
|
428
|
+
placeholder: string;
|
|
429
|
+
};
|
|
430
|
+
TimePicker: {
|
|
431
|
+
placeholder: string;
|
|
432
|
+
positiveText: string;
|
|
433
|
+
negativeText: string;
|
|
434
|
+
now: string;
|
|
435
|
+
clear: string;
|
|
436
|
+
};
|
|
437
|
+
Pagination: {
|
|
438
|
+
goto: string;
|
|
439
|
+
selectionSuffix: string;
|
|
440
|
+
};
|
|
441
|
+
DynamicTags: {
|
|
442
|
+
add: string;
|
|
443
|
+
};
|
|
444
|
+
Log: {
|
|
445
|
+
loading: string;
|
|
446
|
+
};
|
|
447
|
+
Input: {
|
|
448
|
+
placeholder: string;
|
|
449
|
+
};
|
|
450
|
+
InputNumber: {
|
|
451
|
+
placeholder: string;
|
|
452
|
+
};
|
|
453
|
+
DynamicInput: {
|
|
454
|
+
create: string;
|
|
455
|
+
};
|
|
456
|
+
ThemeEditor: {
|
|
457
|
+
title: string;
|
|
458
|
+
clearAllVars: string;
|
|
459
|
+
clearSearch: string;
|
|
460
|
+
filterCompName: string;
|
|
461
|
+
filterVarName: string;
|
|
462
|
+
import: string;
|
|
463
|
+
export: string;
|
|
464
|
+
restore: string;
|
|
465
|
+
};
|
|
466
|
+
Image: {
|
|
467
|
+
tipPrevious: string;
|
|
468
|
+
tipNext: string;
|
|
469
|
+
tipCounterclockwise: string;
|
|
470
|
+
tipClockwise: string;
|
|
471
|
+
tipZoomOut: string;
|
|
472
|
+
tipZoomIn: string;
|
|
473
|
+
tipDownload: string;
|
|
474
|
+
tipClose: string;
|
|
475
|
+
tipOriginalSize: string;
|
|
476
|
+
};
|
|
477
|
+
Heatmap: {
|
|
478
|
+
less: string;
|
|
479
|
+
more: string;
|
|
480
|
+
monthFormat: string;
|
|
481
|
+
weekdayFormat: string;
|
|
482
|
+
};
|
|
483
|
+
} | null | undefined;
|
|
484
|
+
readonly clsPrefix?: string | undefined;
|
|
485
|
+
readonly dateLocale?: NDateLocale | null | undefined;
|
|
486
|
+
readonly rtl?: RtlProp | undefined;
|
|
487
|
+
readonly hljs?: Hljs | undefined;
|
|
488
|
+
readonly katex?: any;
|
|
489
|
+
readonly componentOptions?: GlobalComponentConfig | undefined;
|
|
490
|
+
readonly icons?: GlobalIconConfig | undefined;
|
|
491
|
+
readonly breakpoints?: Breakpoints;
|
|
492
|
+
readonly preflightStyleDisabled?: boolean | undefined;
|
|
493
|
+
readonly styleMountTarget?: ParentNode | null | undefined;
|
|
494
|
+
readonly onSubmit?: ((formData: {
|
|
495
|
+
[x: string]: unknown;
|
|
496
|
+
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
497
|
+
readonly "onUpdate:modelValue"?: ((value: {
|
|
498
|
+
[x: string]: unknown;
|
|
499
|
+
}) => any) | undefined;
|
|
500
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
501
|
+
$attrs: Attrs;
|
|
502
|
+
$refs: {
|
|
503
|
+
[x: string]: unknown;
|
|
504
|
+
} & {
|
|
505
|
+
formKitRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
506
|
+
type?: string;
|
|
507
|
+
name?: string;
|
|
508
|
+
actions?: boolean;
|
|
509
|
+
formClass?: string;
|
|
510
|
+
disabled?: boolean;
|
|
511
|
+
modelValue?: {
|
|
512
|
+
[x: string]: unknown;
|
|
513
|
+
};
|
|
514
|
+
'onUpdate:modelValue'?: (value: {
|
|
515
|
+
[x: string]: unknown;
|
|
516
|
+
}) => void;
|
|
517
|
+
onSubmit?: (formData: {
|
|
518
|
+
[x: string]: unknown;
|
|
519
|
+
}) => void;
|
|
520
|
+
}>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
521
|
+
P: {};
|
|
522
|
+
B: {};
|
|
523
|
+
D: {};
|
|
524
|
+
C: {};
|
|
525
|
+
M: {};
|
|
526
|
+
Defaults: {};
|
|
527
|
+
}, Readonly<{
|
|
528
|
+
type?: string;
|
|
529
|
+
name?: string;
|
|
530
|
+
actions?: boolean;
|
|
531
|
+
formClass?: string;
|
|
532
|
+
disabled?: boolean;
|
|
533
|
+
modelValue?: {
|
|
534
|
+
[x: string]: unknown;
|
|
535
|
+
};
|
|
536
|
+
'onUpdate:modelValue'?: (value: {
|
|
537
|
+
[x: string]: unknown;
|
|
538
|
+
}) => void;
|
|
539
|
+
onSubmit?: (formData: {
|
|
540
|
+
[x: string]: unknown;
|
|
541
|
+
}) => void;
|
|
542
|
+
}>, {}, {}, ComputedOptions, MethodOptions, {}> | null;
|
|
543
|
+
};
|
|
544
|
+
$slots: Readonly<{
|
|
545
|
+
[name: string]: Slot<any> | undefined;
|
|
546
|
+
}>;
|
|
547
|
+
$root: ComponentPublicInstance | null;
|
|
548
|
+
$parent: ComponentPublicInstance | null;
|
|
549
|
+
$host: Element | null;
|
|
550
|
+
$emit: ((event: "submit", formData: {
|
|
551
|
+
[x: string]: unknown;
|
|
552
|
+
}, id: string | undefined, version: number | undefined) => void) & ((event: "update:modelValue", value: {
|
|
553
|
+
[x: string]: unknown;
|
|
554
|
+
}) => void);
|
|
555
|
+
$el: any;
|
|
556
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
557
|
+
definition?: FormDefinition;
|
|
558
|
+
schema?: FormKitSchemaFormKit[];
|
|
559
|
+
dataStructure?: "flat" | "nested";
|
|
560
|
+
modelValue?: {
|
|
561
|
+
[x: string]: unknown;
|
|
562
|
+
};
|
|
563
|
+
actions?: boolean;
|
|
564
|
+
submitLabel?: string;
|
|
565
|
+
resetLabel?: string;
|
|
566
|
+
submitAttrs?: Record<string, unknown>;
|
|
567
|
+
resetAttrs?: Record<string, unknown>;
|
|
568
|
+
actionsJustify?: "start" | "center" | "end" | "space-between";
|
|
569
|
+
formClass?: string;
|
|
570
|
+
formName?: string;
|
|
571
|
+
labelPosition?: "top" | "left";
|
|
572
|
+
labelWidth?: number;
|
|
573
|
+
schemaLibrary?: Record<string, Component>;
|
|
574
|
+
interactiveContainers?: boolean;
|
|
575
|
+
config?: FormBuilderConfig;
|
|
576
|
+
theme?: BuilderTheme;
|
|
577
|
+
http?: AxiosInstance;
|
|
578
|
+
disabled?: boolean;
|
|
579
|
+
} & Omit<Partial<Partial<ExtractPropTypes< {
|
|
580
|
+
readonly abstract: BooleanConstructor;
|
|
581
|
+
readonly bordered: {
|
|
582
|
+
readonly type: PropType<boolean | undefined>;
|
|
583
|
+
readonly default: undefined;
|
|
584
|
+
};
|
|
585
|
+
readonly clsPrefix: StringConstructor;
|
|
586
|
+
readonly locale: PropType<NLocale | null>;
|
|
587
|
+
readonly dateLocale: PropType<NDateLocale | null>;
|
|
588
|
+
readonly namespace: StringConstructor;
|
|
589
|
+
readonly rtl: PropType<RtlProp>;
|
|
590
|
+
readonly tag: {
|
|
591
|
+
readonly type: StringConstructor;
|
|
592
|
+
readonly default: "div";
|
|
593
|
+
};
|
|
594
|
+
readonly hljs: PropType<Hljs>;
|
|
595
|
+
readonly katex: PropType<Katex>;
|
|
596
|
+
readonly theme: PropType<GlobalTheme | null>;
|
|
597
|
+
readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
|
|
598
|
+
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
599
|
+
readonly icons: PropType<GlobalIconConfig>;
|
|
600
|
+
readonly breakpoints: PropType<Breakpoints>;
|
|
601
|
+
readonly preflightStyleDisabled: BooleanConstructor;
|
|
602
|
+
readonly styleMountTarget: PropType<ParentNode | null>;
|
|
603
|
+
readonly inlineThemeDisabled: {
|
|
604
|
+
readonly type: BooleanConstructor;
|
|
605
|
+
readonly default: undefined;
|
|
606
|
+
};
|
|
607
|
+
readonly as: {
|
|
608
|
+
readonly type: PropType<string | undefined>;
|
|
609
|
+
readonly validator: () => boolean;
|
|
610
|
+
readonly default: undefined;
|
|
611
|
+
};
|
|
612
|
+
}>>>, "theme">> & Readonly<{
|
|
613
|
+
onSubmit?: ((formData: {
|
|
614
|
+
[x: string]: unknown;
|
|
615
|
+
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
616
|
+
"onUpdate:modelValue"?: ((value: {
|
|
617
|
+
[x: string]: unknown;
|
|
618
|
+
}) => any) | undefined;
|
|
619
|
+
}>, {
|
|
620
|
+
submit: () => void | undefined;
|
|
621
|
+
reset: () => void | undefined;
|
|
622
|
+
validate: () => Promise<boolean>;
|
|
623
|
+
loading: Ref<boolean, boolean>;
|
|
624
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
625
|
+
submit: (formData: {
|
|
626
|
+
[x: string]: unknown;
|
|
627
|
+
}, id: string | undefined, version: number | undefined) => any;
|
|
628
|
+
"update:modelValue": (value: {
|
|
629
|
+
[x: string]: unknown;
|
|
630
|
+
}) => any;
|
|
631
|
+
}, string, {
|
|
632
|
+
disabled: boolean;
|
|
633
|
+
actions: boolean;
|
|
634
|
+
formClass: string;
|
|
635
|
+
dataStructure: "flat" | "nested";
|
|
636
|
+
actionsJustify: "start" | "center" | "end" | "space-between";
|
|
637
|
+
interactiveContainers: boolean;
|
|
638
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
639
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
640
|
+
created?: (() => void) | (() => void)[];
|
|
641
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
642
|
+
mounted?: (() => void) | (() => void)[];
|
|
643
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
644
|
+
updated?: (() => void) | (() => void)[];
|
|
645
|
+
activated?: (() => void) | (() => void)[];
|
|
646
|
+
deactivated?: (() => void) | (() => void)[];
|
|
647
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
648
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
649
|
+
destroyed?: (() => void) | (() => void)[];
|
|
650
|
+
unmounted?: (() => void) | (() => void)[];
|
|
651
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
652
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
653
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
654
|
+
};
|
|
655
|
+
$forceUpdate: () => void;
|
|
656
|
+
$nextTick: typeof nextTick;
|
|
657
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
658
|
+
} & Readonly<{
|
|
659
|
+
disabled: boolean;
|
|
660
|
+
actions: boolean;
|
|
661
|
+
formClass: string;
|
|
662
|
+
dataStructure: "flat" | "nested";
|
|
663
|
+
actionsJustify: "start" | "center" | "end" | "space-between";
|
|
664
|
+
interactiveContainers: boolean;
|
|
665
|
+
}> & Omit<Readonly<{
|
|
666
|
+
definition?: FormDefinition;
|
|
667
|
+
schema?: FormKitSchemaFormKit[];
|
|
668
|
+
dataStructure?: "flat" | "nested";
|
|
669
|
+
modelValue?: {
|
|
670
|
+
[x: string]: unknown;
|
|
671
|
+
};
|
|
672
|
+
actions?: boolean;
|
|
673
|
+
submitLabel?: string;
|
|
674
|
+
resetLabel?: string;
|
|
675
|
+
submitAttrs?: Record<string, unknown>;
|
|
676
|
+
resetAttrs?: Record<string, unknown>;
|
|
677
|
+
actionsJustify?: "start" | "center" | "end" | "space-between";
|
|
678
|
+
formClass?: string;
|
|
679
|
+
formName?: string;
|
|
680
|
+
labelPosition?: "top" | "left";
|
|
681
|
+
labelWidth?: number;
|
|
682
|
+
schemaLibrary?: Record<string, Component>;
|
|
683
|
+
interactiveContainers?: boolean;
|
|
684
|
+
config?: FormBuilderConfig;
|
|
685
|
+
theme?: BuilderTheme;
|
|
686
|
+
http?: AxiosInstance;
|
|
687
|
+
disabled?: boolean;
|
|
688
|
+
} & Omit<Partial<Partial<ExtractPropTypes< {
|
|
689
|
+
readonly abstract: BooleanConstructor;
|
|
690
|
+
readonly bordered: {
|
|
691
|
+
readonly type: PropType<boolean | undefined>;
|
|
692
|
+
readonly default: undefined;
|
|
693
|
+
};
|
|
694
|
+
readonly clsPrefix: StringConstructor;
|
|
695
|
+
readonly locale: PropType<NLocale | null>;
|
|
696
|
+
readonly dateLocale: PropType<NDateLocale | null>;
|
|
697
|
+
readonly namespace: StringConstructor;
|
|
698
|
+
readonly rtl: PropType<RtlProp>;
|
|
699
|
+
readonly tag: {
|
|
700
|
+
readonly type: StringConstructor;
|
|
701
|
+
readonly default: "div";
|
|
702
|
+
};
|
|
703
|
+
readonly hljs: PropType<Hljs>;
|
|
704
|
+
readonly katex: PropType<Katex>;
|
|
705
|
+
readonly theme: PropType<GlobalTheme | null>;
|
|
706
|
+
readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
|
|
707
|
+
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
708
|
+
readonly icons: PropType<GlobalIconConfig>;
|
|
709
|
+
readonly breakpoints: PropType<Breakpoints>;
|
|
710
|
+
readonly preflightStyleDisabled: BooleanConstructor;
|
|
711
|
+
readonly styleMountTarget: PropType<ParentNode | null>;
|
|
712
|
+
readonly inlineThemeDisabled: {
|
|
713
|
+
readonly type: BooleanConstructor;
|
|
714
|
+
readonly default: undefined;
|
|
715
|
+
};
|
|
716
|
+
readonly as: {
|
|
717
|
+
readonly type: PropType<string | undefined>;
|
|
718
|
+
readonly validator: () => boolean;
|
|
719
|
+
readonly default: undefined;
|
|
720
|
+
};
|
|
721
|
+
}>>>, "theme">> & Readonly<{
|
|
722
|
+
onSubmit?: ((formData: {
|
|
723
|
+
[x: string]: unknown;
|
|
724
|
+
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
725
|
+
"onUpdate:modelValue"?: ((value: {
|
|
726
|
+
[x: string]: unknown;
|
|
727
|
+
}) => any) | undefined;
|
|
728
|
+
}>, "submit" | "reset" | "loading" | "validate" | ("disabled" | "actions" | "formClass" | "dataStructure" | "actionsJustify" | "interactiveContainers")> & {
|
|
729
|
+
submit: () => void | undefined;
|
|
730
|
+
reset: () => void | undefined;
|
|
731
|
+
validate: () => Promise<boolean>;
|
|
732
|
+
loading: boolean;
|
|
733
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
734
|
+
$slots: Readonly<{
|
|
735
|
+
actions?: (props: FormActionsScope) => unknown;
|
|
736
|
+
}> & {
|
|
737
|
+
actions?: (props: FormActionsScope) => unknown;
|
|
738
|
+
};
|
|
739
|
+
}) | null;
|
|
740
|
+
}, any>;
|
|
288
741
|
|
|
289
742
|
export declare type BuilderTheme = 'light' | 'dark';
|
|
290
743
|
|
|
@@ -543,10 +996,18 @@ declare type FormActionsScope = {
|
|
|
543
996
|
submit: () => void;
|
|
544
997
|
reset: () => void;
|
|
545
998
|
loading: boolean;
|
|
999
|
+
disabled: boolean;
|
|
546
1000
|
};
|
|
547
1001
|
|
|
548
1002
|
export declare interface FormBuilderConfig {
|
|
1003
|
+
/** AI 服务 API Key(建议仅在服务端代理场景使用,勿在前端暴露真实密钥) */
|
|
549
1004
|
apiKey?: string;
|
|
1005
|
+
/** OpenAI 兼容接口地址,默认 https://api.deepseek.com(可指向自建服务端代理) */
|
|
1006
|
+
aiBaseUrl?: string;
|
|
1007
|
+
/** AI 模型名,默认 deepseek-chat(OpenAI 用户可设 gpt-4o-mini 等) */
|
|
1008
|
+
aiModel?: string;
|
|
1009
|
+
/** 自定义 AI 系统提示词;默认使用内置 Instructions.txt */
|
|
1010
|
+
aiSystemPrompt?: string;
|
|
550
1011
|
/** 自定义 HTTP 请求库实例:供 JS 绑定代码里的 axios 变量使用(画布预览 + 渲染器);
|
|
551
1012
|
* 缺省使用内置 axios。FormRenderer 的 http prop 优先级更高。 */
|
|
552
1013
|
http?: AxiosInstance;
|
|
@@ -604,6 +1065,7 @@ export declare const FormDefinitionPreview: DefineComponent<__VLS_Props_4, {
|
|
|
604
1065
|
open: () => void;
|
|
605
1066
|
close: () => void;
|
|
606
1067
|
reset: () => void;
|
|
1068
|
+
validate: () => Promise<boolean>;
|
|
607
1069
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
608
1070
|
submit: (formData: ModelValue_2, id: string | undefined, version: number | undefined) => any;
|
|
609
1071
|
"update:show": (value: boolean) => any;
|
|
@@ -611,6 +1073,7 @@ submit: (formData: ModelValue_2, id: string | undefined, version: number | undef
|
|
|
611
1073
|
onSubmit?: ((formData: ModelValue_2, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
612
1074
|
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
613
1075
|
}>, {
|
|
1076
|
+
disabled: boolean;
|
|
614
1077
|
title: string;
|
|
615
1078
|
actions: boolean;
|
|
616
1079
|
formClass: string;
|
|
@@ -619,7 +1082,426 @@ showDataPanel: boolean;
|
|
|
619
1082
|
initialData: ModelValue_2;
|
|
620
1083
|
resetOnSubmit: boolean;
|
|
621
1084
|
dataPanelWidth: string;
|
|
622
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1085
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1086
|
+
rendererRef: ({
|
|
1087
|
+
$: ComponentInternalInstance;
|
|
1088
|
+
$data: {};
|
|
1089
|
+
$props: {
|
|
1090
|
+
readonly definition?: FormDefinition | undefined;
|
|
1091
|
+
readonly schema?: FormKitSchemaFormKit[] | undefined;
|
|
1092
|
+
readonly dataStructure?: "flat" | "nested" | undefined;
|
|
1093
|
+
readonly modelValue?: {
|
|
1094
|
+
[x: string]: unknown;
|
|
1095
|
+
} | undefined;
|
|
1096
|
+
readonly actions?: boolean | undefined;
|
|
1097
|
+
readonly submitLabel?: string | undefined;
|
|
1098
|
+
readonly resetLabel?: string | undefined;
|
|
1099
|
+
readonly submitAttrs?: Record<string, unknown> | undefined;
|
|
1100
|
+
readonly resetAttrs?: Record<string, unknown> | undefined;
|
|
1101
|
+
readonly actionsJustify?: "start" | "center" | "end" | "space-between" | undefined;
|
|
1102
|
+
readonly formClass?: string | undefined;
|
|
1103
|
+
readonly formName?: string | undefined;
|
|
1104
|
+
readonly labelPosition?: "top" | "left" | undefined;
|
|
1105
|
+
readonly labelWidth?: number | undefined;
|
|
1106
|
+
readonly schemaLibrary?: Record<string, Component> | undefined;
|
|
1107
|
+
readonly interactiveContainers?: boolean | undefined;
|
|
1108
|
+
readonly config?: FormBuilderConfig | undefined;
|
|
1109
|
+
readonly theme?: BuilderTheme | undefined;
|
|
1110
|
+
readonly http?: AxiosInstance | undefined;
|
|
1111
|
+
readonly disabled?: boolean | undefined;
|
|
1112
|
+
readonly themeOverrides?: GlobalThemeOverrides | null | undefined;
|
|
1113
|
+
readonly tag?: string | undefined;
|
|
1114
|
+
readonly bordered?: boolean | undefined;
|
|
1115
|
+
readonly namespace?: string | undefined;
|
|
1116
|
+
readonly inlineThemeDisabled?: boolean | undefined;
|
|
1117
|
+
readonly abstract?: boolean | undefined;
|
|
1118
|
+
readonly as?: string | undefined;
|
|
1119
|
+
readonly locale?: {
|
|
1120
|
+
name: string;
|
|
1121
|
+
global: {
|
|
1122
|
+
undo: string;
|
|
1123
|
+
redo: string;
|
|
1124
|
+
confirm: string;
|
|
1125
|
+
clear: string;
|
|
1126
|
+
};
|
|
1127
|
+
Popconfirm: {
|
|
1128
|
+
positiveText: string;
|
|
1129
|
+
negativeText: string;
|
|
1130
|
+
};
|
|
1131
|
+
Cascader: {
|
|
1132
|
+
placeholder: string;
|
|
1133
|
+
loading: string;
|
|
1134
|
+
loadingRequiredMessage: (label: string) => string;
|
|
1135
|
+
};
|
|
1136
|
+
Time: {
|
|
1137
|
+
dateFormat: string;
|
|
1138
|
+
dateTimeFormat: string;
|
|
1139
|
+
};
|
|
1140
|
+
DatePicker: {
|
|
1141
|
+
yearFormat: string;
|
|
1142
|
+
monthFormat: string;
|
|
1143
|
+
dayFormat: string;
|
|
1144
|
+
yearTypeFormat: string;
|
|
1145
|
+
monthTypeFormat: string;
|
|
1146
|
+
dateFormat: string;
|
|
1147
|
+
dateTimeFormat: string;
|
|
1148
|
+
quarterFormat: string;
|
|
1149
|
+
weekFormat: string;
|
|
1150
|
+
clear: string;
|
|
1151
|
+
now: string;
|
|
1152
|
+
confirm: string;
|
|
1153
|
+
selectTime: string;
|
|
1154
|
+
selectDate: string;
|
|
1155
|
+
datePlaceholder: string;
|
|
1156
|
+
datetimePlaceholder: string;
|
|
1157
|
+
monthPlaceholder: string;
|
|
1158
|
+
yearPlaceholder: string;
|
|
1159
|
+
quarterPlaceholder: string;
|
|
1160
|
+
weekPlaceholder: string;
|
|
1161
|
+
startDatePlaceholder: string;
|
|
1162
|
+
endDatePlaceholder: string;
|
|
1163
|
+
startDatetimePlaceholder: string;
|
|
1164
|
+
endDatetimePlaceholder: string;
|
|
1165
|
+
startMonthPlaceholder: string;
|
|
1166
|
+
endMonthPlaceholder: string;
|
|
1167
|
+
monthBeforeYear: boolean;
|
|
1168
|
+
firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
1169
|
+
today: string;
|
|
1170
|
+
};
|
|
1171
|
+
DataTable: {
|
|
1172
|
+
checkTableAll: string;
|
|
1173
|
+
uncheckTableAll: string;
|
|
1174
|
+
confirm: string;
|
|
1175
|
+
clear: string;
|
|
1176
|
+
};
|
|
1177
|
+
LegacyTransfer: {
|
|
1178
|
+
sourceTitle: string;
|
|
1179
|
+
targetTitle: string;
|
|
1180
|
+
};
|
|
1181
|
+
Transfer: {
|
|
1182
|
+
selectAll: string;
|
|
1183
|
+
unselectAll: string;
|
|
1184
|
+
clearAll: string;
|
|
1185
|
+
total: (num: number) => string;
|
|
1186
|
+
selected: (num: number) => string;
|
|
1187
|
+
};
|
|
1188
|
+
Empty: {
|
|
1189
|
+
description: string;
|
|
1190
|
+
};
|
|
1191
|
+
Select: {
|
|
1192
|
+
placeholder: string;
|
|
1193
|
+
};
|
|
1194
|
+
TimePicker: {
|
|
1195
|
+
placeholder: string;
|
|
1196
|
+
positiveText: string;
|
|
1197
|
+
negativeText: string;
|
|
1198
|
+
now: string;
|
|
1199
|
+
clear: string;
|
|
1200
|
+
};
|
|
1201
|
+
Pagination: {
|
|
1202
|
+
goto: string;
|
|
1203
|
+
selectionSuffix: string;
|
|
1204
|
+
};
|
|
1205
|
+
DynamicTags: {
|
|
1206
|
+
add: string;
|
|
1207
|
+
};
|
|
1208
|
+
Log: {
|
|
1209
|
+
loading: string;
|
|
1210
|
+
};
|
|
1211
|
+
Input: {
|
|
1212
|
+
placeholder: string;
|
|
1213
|
+
};
|
|
1214
|
+
InputNumber: {
|
|
1215
|
+
placeholder: string;
|
|
1216
|
+
};
|
|
1217
|
+
DynamicInput: {
|
|
1218
|
+
create: string;
|
|
1219
|
+
};
|
|
1220
|
+
ThemeEditor: {
|
|
1221
|
+
title: string;
|
|
1222
|
+
clearAllVars: string;
|
|
1223
|
+
clearSearch: string;
|
|
1224
|
+
filterCompName: string;
|
|
1225
|
+
filterVarName: string;
|
|
1226
|
+
import: string;
|
|
1227
|
+
export: string;
|
|
1228
|
+
restore: string;
|
|
1229
|
+
};
|
|
1230
|
+
Image: {
|
|
1231
|
+
tipPrevious: string;
|
|
1232
|
+
tipNext: string;
|
|
1233
|
+
tipCounterclockwise: string;
|
|
1234
|
+
tipClockwise: string;
|
|
1235
|
+
tipZoomOut: string;
|
|
1236
|
+
tipZoomIn: string;
|
|
1237
|
+
tipDownload: string;
|
|
1238
|
+
tipClose: string;
|
|
1239
|
+
tipOriginalSize: string;
|
|
1240
|
+
};
|
|
1241
|
+
Heatmap: {
|
|
1242
|
+
less: string;
|
|
1243
|
+
more: string;
|
|
1244
|
+
monthFormat: string;
|
|
1245
|
+
weekdayFormat: string;
|
|
1246
|
+
};
|
|
1247
|
+
} | null | undefined;
|
|
1248
|
+
readonly clsPrefix?: string | undefined;
|
|
1249
|
+
readonly dateLocale?: NDateLocale | null | undefined;
|
|
1250
|
+
readonly rtl?: RtlProp | undefined;
|
|
1251
|
+
readonly hljs?: Hljs | undefined;
|
|
1252
|
+
readonly katex?: any;
|
|
1253
|
+
readonly componentOptions?: GlobalComponentConfig | undefined;
|
|
1254
|
+
readonly icons?: GlobalIconConfig | undefined;
|
|
1255
|
+
readonly breakpoints?: Breakpoints;
|
|
1256
|
+
readonly preflightStyleDisabled?: boolean | undefined;
|
|
1257
|
+
readonly styleMountTarget?: ParentNode | null | undefined;
|
|
1258
|
+
readonly onSubmit?: ((formData: {
|
|
1259
|
+
[x: string]: unknown;
|
|
1260
|
+
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
1261
|
+
readonly "onUpdate:modelValue"?: ((value: {
|
|
1262
|
+
[x: string]: unknown;
|
|
1263
|
+
}) => any) | undefined;
|
|
1264
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1265
|
+
$attrs: Attrs;
|
|
1266
|
+
$refs: {
|
|
1267
|
+
[x: string]: unknown;
|
|
1268
|
+
} & {
|
|
1269
|
+
formKitRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1270
|
+
type?: string;
|
|
1271
|
+
name?: string;
|
|
1272
|
+
actions?: boolean;
|
|
1273
|
+
formClass?: string;
|
|
1274
|
+
disabled?: boolean;
|
|
1275
|
+
modelValue?: {
|
|
1276
|
+
[x: string]: unknown;
|
|
1277
|
+
};
|
|
1278
|
+
'onUpdate:modelValue'?: (value: {
|
|
1279
|
+
[x: string]: unknown;
|
|
1280
|
+
}) => void;
|
|
1281
|
+
onSubmit?: (formData: {
|
|
1282
|
+
[x: string]: unknown;
|
|
1283
|
+
}) => void;
|
|
1284
|
+
}>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1285
|
+
P: {};
|
|
1286
|
+
B: {};
|
|
1287
|
+
D: {};
|
|
1288
|
+
C: {};
|
|
1289
|
+
M: {};
|
|
1290
|
+
Defaults: {};
|
|
1291
|
+
}, Readonly<{
|
|
1292
|
+
type?: string;
|
|
1293
|
+
name?: string;
|
|
1294
|
+
actions?: boolean;
|
|
1295
|
+
formClass?: string;
|
|
1296
|
+
disabled?: boolean;
|
|
1297
|
+
modelValue?: {
|
|
1298
|
+
[x: string]: unknown;
|
|
1299
|
+
};
|
|
1300
|
+
'onUpdate:modelValue'?: (value: {
|
|
1301
|
+
[x: string]: unknown;
|
|
1302
|
+
}) => void;
|
|
1303
|
+
onSubmit?: (formData: {
|
|
1304
|
+
[x: string]: unknown;
|
|
1305
|
+
}) => void;
|
|
1306
|
+
}>, {}, {}, ComputedOptions, MethodOptions, {}> | null;
|
|
1307
|
+
};
|
|
1308
|
+
$slots: Readonly<{
|
|
1309
|
+
[name: string]: Slot<any> | undefined;
|
|
1310
|
+
}>;
|
|
1311
|
+
$root: ComponentPublicInstance | null;
|
|
1312
|
+
$parent: ComponentPublicInstance | null;
|
|
1313
|
+
$host: Element | null;
|
|
1314
|
+
$emit: ((event: "submit", formData: {
|
|
1315
|
+
[x: string]: unknown;
|
|
1316
|
+
}, id: string | undefined, version: number | undefined) => void) & ((event: "update:modelValue", value: {
|
|
1317
|
+
[x: string]: unknown;
|
|
1318
|
+
}) => void);
|
|
1319
|
+
$el: any;
|
|
1320
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
1321
|
+
definition?: FormDefinition;
|
|
1322
|
+
schema?: FormKitSchemaFormKit[];
|
|
1323
|
+
dataStructure?: "flat" | "nested";
|
|
1324
|
+
modelValue?: {
|
|
1325
|
+
[x: string]: unknown;
|
|
1326
|
+
};
|
|
1327
|
+
actions?: boolean;
|
|
1328
|
+
submitLabel?: string;
|
|
1329
|
+
resetLabel?: string;
|
|
1330
|
+
submitAttrs?: Record<string, unknown>;
|
|
1331
|
+
resetAttrs?: Record<string, unknown>;
|
|
1332
|
+
actionsJustify?: "start" | "center" | "end" | "space-between";
|
|
1333
|
+
formClass?: string;
|
|
1334
|
+
formName?: string;
|
|
1335
|
+
labelPosition?: "top" | "left";
|
|
1336
|
+
labelWidth?: number;
|
|
1337
|
+
schemaLibrary?: Record<string, Component>;
|
|
1338
|
+
interactiveContainers?: boolean;
|
|
1339
|
+
config?: FormBuilderConfig;
|
|
1340
|
+
theme?: BuilderTheme;
|
|
1341
|
+
http?: AxiosInstance;
|
|
1342
|
+
disabled?: boolean;
|
|
1343
|
+
} & Omit<Partial<Partial<ExtractPropTypes< {
|
|
1344
|
+
readonly abstract: BooleanConstructor;
|
|
1345
|
+
readonly bordered: {
|
|
1346
|
+
readonly type: PropType<boolean | undefined>;
|
|
1347
|
+
readonly default: undefined;
|
|
1348
|
+
};
|
|
1349
|
+
readonly clsPrefix: StringConstructor;
|
|
1350
|
+
readonly locale: PropType<NLocale | null>;
|
|
1351
|
+
readonly dateLocale: PropType<NDateLocale | null>;
|
|
1352
|
+
readonly namespace: StringConstructor;
|
|
1353
|
+
readonly rtl: PropType<RtlProp>;
|
|
1354
|
+
readonly tag: {
|
|
1355
|
+
readonly type: StringConstructor;
|
|
1356
|
+
readonly default: "div";
|
|
1357
|
+
};
|
|
1358
|
+
readonly hljs: PropType<Hljs>;
|
|
1359
|
+
readonly katex: PropType<Katex>;
|
|
1360
|
+
readonly theme: PropType<GlobalTheme | null>;
|
|
1361
|
+
readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
|
|
1362
|
+
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
1363
|
+
readonly icons: PropType<GlobalIconConfig>;
|
|
1364
|
+
readonly breakpoints: PropType<Breakpoints>;
|
|
1365
|
+
readonly preflightStyleDisabled: BooleanConstructor;
|
|
1366
|
+
readonly styleMountTarget: PropType<ParentNode | null>;
|
|
1367
|
+
readonly inlineThemeDisabled: {
|
|
1368
|
+
readonly type: BooleanConstructor;
|
|
1369
|
+
readonly default: undefined;
|
|
1370
|
+
};
|
|
1371
|
+
readonly as: {
|
|
1372
|
+
readonly type: PropType<string | undefined>;
|
|
1373
|
+
readonly validator: () => boolean;
|
|
1374
|
+
readonly default: undefined;
|
|
1375
|
+
};
|
|
1376
|
+
}>>>, "theme">> & Readonly<{
|
|
1377
|
+
onSubmit?: ((formData: {
|
|
1378
|
+
[x: string]: unknown;
|
|
1379
|
+
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
1380
|
+
"onUpdate:modelValue"?: ((value: {
|
|
1381
|
+
[x: string]: unknown;
|
|
1382
|
+
}) => any) | undefined;
|
|
1383
|
+
}>, {
|
|
1384
|
+
submit: () => void | undefined;
|
|
1385
|
+
reset: () => void | undefined;
|
|
1386
|
+
validate: () => Promise<boolean>;
|
|
1387
|
+
loading: Ref<boolean, boolean>;
|
|
1388
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1389
|
+
submit: (formData: {
|
|
1390
|
+
[x: string]: unknown;
|
|
1391
|
+
}, id: string | undefined, version: number | undefined) => any;
|
|
1392
|
+
"update:modelValue": (value: {
|
|
1393
|
+
[x: string]: unknown;
|
|
1394
|
+
}) => any;
|
|
1395
|
+
}, string, {
|
|
1396
|
+
disabled: boolean;
|
|
1397
|
+
actions: boolean;
|
|
1398
|
+
formClass: string;
|
|
1399
|
+
dataStructure: "flat" | "nested";
|
|
1400
|
+
actionsJustify: "start" | "center" | "end" | "space-between";
|
|
1401
|
+
interactiveContainers: boolean;
|
|
1402
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1403
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1404
|
+
created?: (() => void) | (() => void)[];
|
|
1405
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1406
|
+
mounted?: (() => void) | (() => void)[];
|
|
1407
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1408
|
+
updated?: (() => void) | (() => void)[];
|
|
1409
|
+
activated?: (() => void) | (() => void)[];
|
|
1410
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1411
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1412
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1413
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1414
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1415
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1416
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1417
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1418
|
+
};
|
|
1419
|
+
$forceUpdate: () => void;
|
|
1420
|
+
$nextTick: typeof nextTick;
|
|
1421
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1422
|
+
} & Readonly<{
|
|
1423
|
+
disabled: boolean;
|
|
1424
|
+
actions: boolean;
|
|
1425
|
+
formClass: string;
|
|
1426
|
+
dataStructure: "flat" | "nested";
|
|
1427
|
+
actionsJustify: "start" | "center" | "end" | "space-between";
|
|
1428
|
+
interactiveContainers: boolean;
|
|
1429
|
+
}> & Omit<Readonly<{
|
|
1430
|
+
definition?: FormDefinition;
|
|
1431
|
+
schema?: FormKitSchemaFormKit[];
|
|
1432
|
+
dataStructure?: "flat" | "nested";
|
|
1433
|
+
modelValue?: {
|
|
1434
|
+
[x: string]: unknown;
|
|
1435
|
+
};
|
|
1436
|
+
actions?: boolean;
|
|
1437
|
+
submitLabel?: string;
|
|
1438
|
+
resetLabel?: string;
|
|
1439
|
+
submitAttrs?: Record<string, unknown>;
|
|
1440
|
+
resetAttrs?: Record<string, unknown>;
|
|
1441
|
+
actionsJustify?: "start" | "center" | "end" | "space-between";
|
|
1442
|
+
formClass?: string;
|
|
1443
|
+
formName?: string;
|
|
1444
|
+
labelPosition?: "top" | "left";
|
|
1445
|
+
labelWidth?: number;
|
|
1446
|
+
schemaLibrary?: Record<string, Component>;
|
|
1447
|
+
interactiveContainers?: boolean;
|
|
1448
|
+
config?: FormBuilderConfig;
|
|
1449
|
+
theme?: BuilderTheme;
|
|
1450
|
+
http?: AxiosInstance;
|
|
1451
|
+
disabled?: boolean;
|
|
1452
|
+
} & Omit<Partial<Partial<ExtractPropTypes< {
|
|
1453
|
+
readonly abstract: BooleanConstructor;
|
|
1454
|
+
readonly bordered: {
|
|
1455
|
+
readonly type: PropType<boolean | undefined>;
|
|
1456
|
+
readonly default: undefined;
|
|
1457
|
+
};
|
|
1458
|
+
readonly clsPrefix: StringConstructor;
|
|
1459
|
+
readonly locale: PropType<NLocale | null>;
|
|
1460
|
+
readonly dateLocale: PropType<NDateLocale | null>;
|
|
1461
|
+
readonly namespace: StringConstructor;
|
|
1462
|
+
readonly rtl: PropType<RtlProp>;
|
|
1463
|
+
readonly tag: {
|
|
1464
|
+
readonly type: StringConstructor;
|
|
1465
|
+
readonly default: "div";
|
|
1466
|
+
};
|
|
1467
|
+
readonly hljs: PropType<Hljs>;
|
|
1468
|
+
readonly katex: PropType<Katex>;
|
|
1469
|
+
readonly theme: PropType<GlobalTheme | null>;
|
|
1470
|
+
readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
|
|
1471
|
+
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
1472
|
+
readonly icons: PropType<GlobalIconConfig>;
|
|
1473
|
+
readonly breakpoints: PropType<Breakpoints>;
|
|
1474
|
+
readonly preflightStyleDisabled: BooleanConstructor;
|
|
1475
|
+
readonly styleMountTarget: PropType<ParentNode | null>;
|
|
1476
|
+
readonly inlineThemeDisabled: {
|
|
1477
|
+
readonly type: BooleanConstructor;
|
|
1478
|
+
readonly default: undefined;
|
|
1479
|
+
};
|
|
1480
|
+
readonly as: {
|
|
1481
|
+
readonly type: PropType<string | undefined>;
|
|
1482
|
+
readonly validator: () => boolean;
|
|
1483
|
+
readonly default: undefined;
|
|
1484
|
+
};
|
|
1485
|
+
}>>>, "theme">> & Readonly<{
|
|
1486
|
+
onSubmit?: ((formData: {
|
|
1487
|
+
[x: string]: unknown;
|
|
1488
|
+
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
1489
|
+
"onUpdate:modelValue"?: ((value: {
|
|
1490
|
+
[x: string]: unknown;
|
|
1491
|
+
}) => any) | undefined;
|
|
1492
|
+
}>, "submit" | "reset" | "loading" | "validate" | ("disabled" | "actions" | "formClass" | "dataStructure" | "actionsJustify" | "interactiveContainers")> & {
|
|
1493
|
+
submit: () => void | undefined;
|
|
1494
|
+
reset: () => void | undefined;
|
|
1495
|
+
validate: () => Promise<boolean>;
|
|
1496
|
+
loading: boolean;
|
|
1497
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
1498
|
+
$slots: Readonly<{
|
|
1499
|
+
actions?: (props: FormActionsScope) => unknown;
|
|
1500
|
+
}> & {
|
|
1501
|
+
actions?: (props: FormActionsScope) => unknown;
|
|
1502
|
+
};
|
|
1503
|
+
}) | null;
|
|
1504
|
+
}, any>;
|
|
623
1505
|
|
|
624
1506
|
declare interface FormDefinitionState {
|
|
625
1507
|
formDefinition: Ref<FormDefinition>;
|
|
@@ -647,6 +1529,7 @@ declare type FormKitTypedProps = {
|
|
|
647
1529
|
name?: string;
|
|
648
1530
|
actions?: boolean;
|
|
649
1531
|
formClass?: string;
|
|
1532
|
+
disabled?: boolean;
|
|
650
1533
|
modelValue?: ModelValue_3;
|
|
651
1534
|
'onUpdate:modelValue'?: (value: ModelValue_3) => void;
|
|
652
1535
|
onSubmit?: (formData: ModelValue_3) => void;
|