@zeng-alt/formkit-form-builder 1.4.0 → 2.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 +41 -0
- package/README.md +323 -137
- package/dist/builder.css +1 -1
- package/dist/builder.es.js +7922 -42834
- package/dist/builder.es.js.map +1 -0
- package/dist/builder.umd.js +58 -86
- package/dist/chunks/AiPrompt-CWUhBDH4.js +174 -0
- package/dist/chunks/AiPrompt-CWUhBDH4.js.map +1 -0
- package/dist/chunks/BadgeEditor-B1kB2DXg.js +133 -0
- package/dist/chunks/BadgeEditor-B1kB2DXg.js.map +1 -0
- package/dist/chunks/BuilderPreview-CKL5bqCP.js +142 -0
- package/dist/chunks/BuilderPreview-CKL5bqCP.js.map +1 -0
- package/dist/chunks/ButtonGroupEditor-C5pChDFz.js +55 -0
- package/dist/chunks/ButtonGroupEditor-C5pChDFz.js.map +1 -0
- package/dist/chunks/CardEditor-Bsbriwvu.js +61 -0
- package/dist/chunks/CardEditor-Bsbriwvu.js.map +1 -0
- package/dist/chunks/CheckboxEditor-CxNEvn_Y.js +23 -0
- package/dist/chunks/CheckboxEditor-CxNEvn_Y.js.map +1 -0
- package/dist/chunks/CollapseEditor-CUFTdj0V.js +36 -0
- package/dist/chunks/CollapseEditor-CUFTdj0V.js.map +1 -0
- package/dist/chunks/ColorEditor-Bo9QkLsR.js +17 -0
- package/dist/chunks/ColorEditor-Bo9QkLsR.js.map +1 -0
- package/dist/chunks/DataTableContainerPreview-phlGcigM.js +403 -0
- package/dist/chunks/DataTableContainerPreview-phlGcigM.js.map +1 -0
- package/dist/chunks/DataTableEditor-BTDWXdtk.js +473 -0
- package/dist/chunks/DataTableEditor-BTDWXdtk.js.map +1 -0
- package/dist/chunks/DataTableFieldPicker-qWxGmVxr.js +1579 -0
- package/dist/chunks/DataTableFieldPicker-qWxGmVxr.js.map +1 -0
- package/dist/chunks/DataTableRowCellInput-BLTM3I21.js +195 -0
- package/dist/chunks/DataTableRowCellInput-BLTM3I21.js.map +1 -0
- package/dist/chunks/DataTableSearchField-PU89hniM.js +81 -0
- package/dist/chunks/DataTableSearchField-PU89hniM.js.map +1 -0
- package/dist/chunks/DateLikeEditor-ZkCbMhpE.js +74 -0
- package/dist/chunks/DateLikeEditor-ZkCbMhpE.js.map +1 -0
- package/dist/chunks/DateTimeEditor-C-jZKTT5.js +73 -0
- package/dist/chunks/DateTimeEditor-C-jZKTT5.js.map +1 -0
- package/dist/chunks/EditorSection-BR3qdK2c.js +23 -0
- package/dist/chunks/EditorSection-BR3qdK2c.js.map +1 -0
- package/dist/chunks/EditsLayout-fueCrxZM.js +22 -0
- package/dist/chunks/EditsLayout-fueCrxZM.js.map +1 -0
- package/dist/chunks/ExprEditModal-CeXiPStM.js +540 -0
- package/dist/chunks/ExprEditModal-CeXiPStM.js.map +1 -0
- package/dist/chunks/FileEditor-BXELd_SD.js +35 -0
- package/dist/chunks/FileEditor-BXELd_SD.js.map +1 -0
- package/dist/chunks/FormRenderer-BwykpB3h.js +2625 -0
- package/dist/chunks/FormRenderer-BwykpB3h.js.map +1 -0
- package/dist/chunks/GroupEditor-DchDUDDY.js +13 -0
- package/dist/chunks/GroupEditor-DchDUDDY.js.map +1 -0
- package/dist/chunks/HistoryPanel-1p0-Obef.js +104 -0
- package/dist/chunks/HistoryPanel-1p0-Obef.js.map +1 -0
- package/dist/chunks/ImportExportModal-CTqkyp1s.js +266 -0
- package/dist/chunks/ImportExportModal-CTqkyp1s.js.map +1 -0
- package/dist/chunks/InlineEditableText-BO-dT5rp.js +68 -0
- package/dist/chunks/InlineEditableText-BO-dT5rp.js.map +1 -0
- package/dist/chunks/InputGroupEditor-D_5giZtN.js +13 -0
- package/dist/chunks/InputGroupEditor-D_5giZtN.js.map +1 -0
- package/dist/chunks/IssuesPanel-CW5bdwvC.js +82 -0
- package/dist/chunks/IssuesPanel-CW5bdwvC.js.map +1 -0
- package/dist/chunks/JsCodeEditor-CIPxhwZa.js +751 -0
- package/dist/chunks/JsCodeEditor-CIPxhwZa.js.map +1 -0
- package/dist/chunks/JsonTextarea-C3mnRwtG.js +54 -0
- package/dist/chunks/JsonTextarea-C3mnRwtG.js.map +1 -0
- package/dist/chunks/ListEditor-C1hn5yOi.js +25 -0
- package/dist/chunks/ListEditor-C1hn5yOi.js.map +1 -0
- package/dist/chunks/NaiveAlertEditor-DACimYS1.js +67 -0
- package/dist/chunks/NaiveAlertEditor-DACimYS1.js.map +1 -0
- package/dist/chunks/NaiveAutoCompleteEditor-CtCvPe7H.js +122 -0
- package/dist/chunks/NaiveAutoCompleteEditor-CtCvPe7H.js.map +1 -0
- package/dist/chunks/NaiveAvatarEditor-CmDUodoa.js +36 -0
- package/dist/chunks/NaiveAvatarEditor-CmDUodoa.js.map +1 -0
- package/dist/chunks/NaiveBackTopEditor-Iq-li1JT.js +69 -0
- package/dist/chunks/NaiveBackTopEditor-Iq-li1JT.js.map +1 -0
- package/dist/chunks/NaiveBasicSection-wNyhGLou.js +184 -0
- package/dist/chunks/NaiveBasicSection-wNyhGLou.js.map +1 -0
- package/dist/chunks/NaiveBlockquoteEditor-BfqWqKwF.js +13 -0
- package/dist/chunks/NaiveBlockquoteEditor-BfqWqKwF.js.map +1 -0
- package/dist/chunks/NaiveButtonEditor-B4Rp2T7n.js +168 -0
- package/dist/chunks/NaiveButtonEditor-B4Rp2T7n.js.map +1 -0
- package/dist/chunks/NaiveCascaderEditor-BtD6KRXl.js +26 -0
- package/dist/chunks/NaiveCascaderEditor-BtD6KRXl.js.map +1 -0
- package/dist/chunks/NaiveDividerEditor-B1dPteDV.js +52 -0
- package/dist/chunks/NaiveDividerEditor-B1dPteDV.js.map +1 -0
- package/dist/chunks/NaiveH1Editor-Can7c9mh.js +14 -0
- package/dist/chunks/NaiveH1Editor-Can7c9mh.js.map +1 -0
- package/dist/chunks/NaiveH2Editor-BRKeEVf4.js +14 -0
- package/dist/chunks/NaiveH2Editor-BRKeEVf4.js.map +1 -0
- package/dist/chunks/NaiveH3Editor-DCdyd3-n.js +14 -0
- package/dist/chunks/NaiveH3Editor-DCdyd3-n.js.map +1 -0
- package/dist/chunks/NaiveH4Editor-COFS6udv.js +14 -0
- package/dist/chunks/NaiveH4Editor-COFS6udv.js.map +1 -0
- package/dist/chunks/NaiveH5Editor-CQEe6s1O.js +14 -0
- package/dist/chunks/NaiveH5Editor-CQEe6s1O.js.map +1 -0
- package/dist/chunks/NaiveH6Editor-DHGzIUAl.js +14 -0
- package/dist/chunks/NaiveH6Editor-DHGzIUAl.js.map +1 -0
- package/dist/chunks/NaiveHeaderEditor-Cy02AmLI.js +12 -0
- package/dist/chunks/NaiveHeaderEditor-Cy02AmLI.js.map +1 -0
- package/dist/chunks/NaiveImageEditor-WyVYLNbT.js +201 -0
- package/dist/chunks/NaiveImageEditor-WyVYLNbT.js.map +1 -0
- package/dist/chunks/NaiveLiEditor-CC65rrna.js +13 -0
- package/dist/chunks/NaiveLiEditor-CC65rrna.js.map +1 -0
- package/dist/chunks/NaiveLinkEditor-DkjFrzEE.js +38 -0
- package/dist/chunks/NaiveLinkEditor-DkjFrzEE.js.map +1 -0
- package/dist/chunks/NaiveMentionEditor-BupocM2c.js +23 -0
- package/dist/chunks/NaiveMentionEditor-BupocM2c.js.map +1 -0
- package/dist/chunks/NaiveOlEditor-DYFqg6Sp.js +16 -0
- package/dist/chunks/NaiveOlEditor-DYFqg6Sp.js.map +1 -0
- package/dist/chunks/NaiveParagraphEditor-B3Ju6ZNI.js +104 -0
- package/dist/chunks/NaiveParagraphEditor-B3Ju6ZNI.js.map +1 -0
- package/dist/chunks/NaiveProgressEditor-CwpsZG2z.js +119 -0
- package/dist/chunks/NaiveProgressEditor-CwpsZG2z.js.map +1 -0
- package/dist/chunks/NaiveQrCodeEditor-YWWAozHe.js +77 -0
- package/dist/chunks/NaiveQrCodeEditor-YWWAozHe.js.map +1 -0
- package/dist/chunks/NaiveRateEditor-BVY1QiXv.js +44 -0
- package/dist/chunks/NaiveRateEditor-BVY1QiXv.js.map +1 -0
- package/dist/chunks/NaiveSwitchEditor-BP1v-oZf.js +17 -0
- package/dist/chunks/NaiveSwitchEditor-BP1v-oZf.js.map +1 -0
- package/dist/chunks/NaiveTextEditor-C38l4Q-j.js +107 -0
- package/dist/chunks/NaiveTextEditor-C38l4Q-j.js.map +1 -0
- package/dist/chunks/NaiveTransferEditor-BRH_5ioX.js +19 -0
- package/dist/chunks/NaiveTransferEditor-BRH_5ioX.js.map +1 -0
- package/dist/chunks/NaiveTreeSelectEditor-jX2DrMcT.js +26 -0
- package/dist/chunks/NaiveTreeSelectEditor-jX2DrMcT.js.map +1 -0
- package/dist/chunks/NaiveUlEditor-CMKofBid.js +16 -0
- package/dist/chunks/NaiveUlEditor-CMKofBid.js.map +1 -0
- package/dist/chunks/NumberEditor-0P2Li_GH.js +40 -0
- package/dist/chunks/NumberEditor-0P2Li_GH.js.map +1 -0
- package/dist/chunks/NumberInput-DU-FiLxW.js +37 -0
- package/dist/chunks/NumberInput-DU-FiLxW.js.map +1 -0
- package/dist/chunks/OptionsLayoutSection-C9gVadRA.js +21 -0
- package/dist/chunks/OptionsLayoutSection-C9gVadRA.js.map +1 -0
- package/dist/chunks/OptionsSourceTabs-3fsum0OI.js +628 -0
- package/dist/chunks/OptionsSourceTabs-3fsum0OI.js.map +1 -0
- package/dist/chunks/OptionsTagsSection-vKkxlWLw.js +31 -0
- package/dist/chunks/OptionsTagsSection-vKkxlWLw.js.map +1 -0
- package/dist/chunks/PasswordEditor-Igld1ak6.js +29 -0
- package/dist/chunks/PasswordEditor-Igld1ak6.js.map +1 -0
- package/dist/chunks/PlaceholderSection-BKOS-7Qu.js +26 -0
- package/dist/chunks/PlaceholderSection-BKOS-7Qu.js.map +1 -0
- package/dist/chunks/RadioEditor-CyJhILjI.js +23 -0
- package/dist/chunks/RadioEditor-CyJhILjI.js.map +1 -0
- package/dist/chunks/RangeEditor-PGOnGfuV.js +86 -0
- package/dist/chunks/RangeEditor-PGOnGfuV.js.map +1 -0
- package/dist/chunks/RichText-DqcMtoil.js +424 -0
- package/dist/chunks/RichText-DqcMtoil.js.map +1 -0
- package/dist/chunks/RichTextEditor-EfA6m9w2.js +81 -0
- package/dist/chunks/RichTextEditor-EfA6m9w2.js.map +1 -0
- package/dist/chunks/SelectEditor-mJ_zUivj.js +21 -0
- package/dist/chunks/SelectEditor-mJ_zUivj.js.map +1 -0
- package/dist/chunks/SelectInput-DY4Oi2Lp.js +31 -0
- package/dist/chunks/SelectInput-DY4Oi2Lp.js.map +1 -0
- package/dist/chunks/SignatureEditor-BNttg68X.js +52 -0
- package/dist/chunks/SignatureEditor-BNttg68X.js.map +1 -0
- package/dist/chunks/SignaturePad-qhmoMg1E.js +170 -0
- package/dist/chunks/SignaturePad-qhmoMg1E.js.map +1 -0
- package/dist/chunks/StepsEditor-C8U-ext8.js +63 -0
- package/dist/chunks/StepsEditor-C8U-ext8.js.map +1 -0
- package/dist/chunks/SubmitEditor-B9R984q8.js +168 -0
- package/dist/chunks/SubmitEditor-B9R984q8.js.map +1 -0
- package/dist/chunks/SwitchInput-DQrSTyW0.js +34 -0
- package/dist/chunks/SwitchInput-DQrSTyW0.js.map +1 -0
- package/dist/chunks/TabsEditor-DepUhmsz.js +100 -0
- package/dist/chunks/TabsEditor-DepUhmsz.js.map +1 -0
- package/dist/chunks/TagsInput-DeG3Om1R.js +36 -0
- package/dist/chunks/TagsInput-DeG3Om1R.js.map +1 -0
- package/dist/chunks/TemplatePickerModal-DPkdJJJs.js +440 -0
- package/dist/chunks/TemplatePickerModal-DPkdJJJs.js.map +1 -0
- package/dist/chunks/TextInput-D1EMeBPf.js +53 -0
- package/dist/chunks/TextInput-D1EMeBPf.js.map +1 -0
- package/dist/chunks/TextLikeEditor-Du0nHQWQ.js +56 -0
- package/dist/chunks/TextLikeEditor-Du0nHQWQ.js.map +1 -0
- package/dist/chunks/ToggleInput-DoZPwM0A.js +51 -0
- package/dist/chunks/ToggleInput-DoZPwM0A.js.map +1 -0
- package/dist/chunks/_plugin-vue_export-helper-BxNYtmDu.js +8 -0
- package/dist/chunks/axios-agM_iOnv.js +1589 -0
- package/dist/chunks/axios-agM_iOnv.js.map +1 -0
- package/dist/chunks/bind-runtime-CRyrBYCi.js +58 -0
- package/dist/chunks/bind-runtime-CRyrBYCi.js.map +1 -0
- package/dist/chunks/canvas-locate-CxDD4bDp.js +64 -0
- package/dist/chunks/canvas-locate-CxDD4bDp.js.map +1 -0
- package/dist/chunks/context-4zkSHwVA.js +2510 -0
- package/dist/chunks/context-4zkSHwVA.js.map +1 -0
- package/dist/chunks/create-form-builder-state-CoXaJhWO.js +358 -0
- package/dist/chunks/create-form-builder-state-CoXaJhWO.js.map +1 -0
- package/dist/chunks/date-family-BYkr1OaE.js +75 -0
- package/dist/chunks/date-family-BYkr1OaE.js.map +1 -0
- package/dist/chunks/evaluator-DqNftI0d.js +139 -0
- package/dist/chunks/evaluator-DqNftI0d.js.map +1 -0
- package/dist/chunks/expr-parse-u7_CxMWg.js +463 -0
- package/dist/chunks/expr-parse-u7_CxMWg.js.map +1 -0
- package/dist/chunks/expr-source-BRPYrxuB.js +118 -0
- package/dist/chunks/expr-source-BRPYrxuB.js.map +1 -0
- package/dist/chunks/form-builder-plugin-BCbiWZKT.js +280 -0
- package/dist/chunks/form-builder-plugin-BCbiWZKT.js.map +1 -0
- package/dist/chunks/form-fields-DjLk8iH2.js +877 -0
- package/dist/chunks/form-fields-DjLk8iH2.js.map +1 -0
- package/dist/chunks/form-layout-Dm4QeYrL.js +69 -0
- package/dist/chunks/form-layout-Dm4QeYrL.js.map +1 -0
- package/dist/chunks/grid-C8xMKll5.js +137 -0
- package/dist/chunks/grid-C8xMKll5.js.map +1 -0
- package/dist/chunks/keys-D4DlFgJT.js +61 -0
- package/dist/chunks/keys-D4DlFgJT.js.map +1 -0
- package/dist/chunks/media-family-B4Wijm18.js +178 -0
- package/dist/chunks/media-family-B4Wijm18.js.map +1 -0
- package/dist/chunks/misc-family-CQJhCKco.js +133 -0
- package/dist/chunks/misc-family-CQJhCKco.js.map +1 -0
- package/dist/chunks/rich-text-toolbar-CQidmjGI.js +32 -0
- package/dist/chunks/rich-text-toolbar-CQidmjGI.js.map +1 -0
- package/dist/chunks/rolldown-runtime-DMoxecvO.js +11 -0
- package/dist/chunks/schema-adapter-_sLPmdLy.js +2089 -0
- package/dist/chunks/schema-adapter-_sLPmdLy.js.map +1 -0
- package/dist/chunks/selection-family-T_wZGrXc.js +249 -0
- package/dist/chunks/selection-family-T_wZGrXc.js.map +1 -0
- package/dist/chunks/use-ai-prompt-focus-39DHK41R.js +14 -0
- package/dist/chunks/use-ai-prompt-focus-39DHK41R.js.map +1 -0
- package/dist/chunks/use-bind-events-C-H7jhW_.js +89 -0
- package/dist/chunks/use-bind-events-C-H7jhW_.js.map +1 -0
- package/dist/chunks/use-config-DTr8dhzM.js +16 -0
- package/dist/chunks/use-config-DTr8dhzM.js.map +1 -0
- package/dist/chunks/use-dictionary-BAN34x49.js +26 -0
- package/dist/chunks/use-dictionary-BAN34x49.js.map +1 -0
- package/dist/chunks/use-dynamic-options-DbGSz-3_.js +29 -0
- package/dist/chunks/use-dynamic-options-DbGSz-3_.js.map +1 -0
- package/dist/chunks/use-schema-render-data-DagOPKiy.js +33 -0
- package/dist/chunks/use-schema-render-data-DagOPKiy.js.map +1 -0
- package/dist/chunks/utils-DlUMv2vG.js +53 -0
- package/dist/chunks/utils-DlUMv2vG.js.map +1 -0
- package/dist/index.d.ts +243 -1060
- package/dist/renderer.d.ts +632 -0
- package/dist/renderer.es.js +6 -0
- package/dist/renderer.umd.js +34 -0
- package/package.json +48 -33
package/dist/index.d.ts
CHANGED
|
@@ -1,64 +1,34 @@
|
|
|
1
|
-
import { AllowedComponentProps } from 'vue';
|
|
2
|
-
import { Attrs } from 'vue';
|
|
3
1
|
import { AxiosInstance } from 'axios';
|
|
4
|
-
import { Breakpoints } from 'naive-ui/es/config-provider/src/internal-interface';
|
|
5
2
|
import { Component } from 'vue';
|
|
6
|
-
import { ComponentCustomProperties } from 'vue';
|
|
7
|
-
import { ComponentCustomProps } from 'vue';
|
|
8
|
-
import { ComponentInternalInstance } from 'vue';
|
|
9
|
-
import { ComponentOptionsBase } from 'vue';
|
|
10
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
11
4
|
import { ComponentProvideOptions } from 'vue';
|
|
12
|
-
import { ComponentPublicInstance } from 'vue';
|
|
13
|
-
import { ComputedOptions } from 'vue';
|
|
14
5
|
import { ComputedRef } from 'vue';
|
|
15
6
|
import { ConfigProviderProps } from 'naive-ui';
|
|
16
|
-
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
17
7
|
import { createInput } from '@formkit/vue';
|
|
18
|
-
import { DebuggerEvent } from 'vue';
|
|
19
8
|
import { defaultConfig } from '@formkit/vue';
|
|
20
9
|
import { DefineComponent } from 'vue';
|
|
21
|
-
import { ExtractPropTypes } from 'vue';
|
|
22
10
|
import { FormKitConfig } from '@formkit/core';
|
|
23
11
|
import { FormKitContext } from '@formkit/core';
|
|
24
12
|
import { FormKitNode } from '@formkit/core';
|
|
25
13
|
import { FormKitPlugin } from '@formkit/core';
|
|
26
14
|
import { FormKitProps } from '@formkit/core';
|
|
27
15
|
import { FormKitSchemaFormKit } from '@formkit/core';
|
|
28
|
-
import { GlobalComponentConfig } from 'naive-ui';
|
|
29
|
-
import { GlobalComponents } from 'vue';
|
|
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';
|
|
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';
|
|
41
16
|
import { Plugin as Plugin_2 } from 'vue';
|
|
42
|
-
import { PropType } from 'vue';
|
|
43
17
|
import { PublicProps } from 'vue';
|
|
44
18
|
import { Ref } from 'vue';
|
|
45
|
-
import {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
import { WatchStopHandle } from 'vue';
|
|
50
|
-
|
|
51
|
-
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
52
|
-
"update:modelValue": (value: FormDefinition) => any;
|
|
19
|
+
import { ShallowRef } from 'vue';
|
|
20
|
+
|
|
21
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
22
|
+
"update:modelValue": (value: FormDefinition) => any;
|
|
53
23
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
54
|
-
"onUpdate:modelValue"?: ((value: FormDefinition) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: FormDefinition) => any) | undefined;
|
|
55
25
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
56
26
|
|
|
57
|
-
declare const
|
|
27
|
+
declare const __VLS_base_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
58
28
|
|
|
59
|
-
declare const
|
|
29
|
+
declare const __VLS_base_3: DefineComponent<__VLS_Props_5, {
|
|
60
30
|
submit: () => void | undefined;
|
|
61
|
-
reset: () =>
|
|
31
|
+
reset: () => FormKitNode<unknown> | undefined;
|
|
62
32
|
validate: () => Promise<boolean>;
|
|
63
33
|
loading: Ref<boolean, boolean>;
|
|
64
34
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -74,16 +44,57 @@ declare const __VLS_component_3: DefineComponent<__VLS_Props_5, {
|
|
|
74
44
|
dataStructure: "flat" | "nested";
|
|
75
45
|
actionsJustify: "start" | "center" | "end" | "space-between";
|
|
76
46
|
interactiveContainers: boolean;
|
|
77
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
47
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
|
+
|
|
51
|
+
declare const __VLS_export_2: __VLS_WithSlots_2<typeof __VLS_base_2, __VLS_Slots_2>;
|
|
52
|
+
|
|
53
|
+
declare const __VLS_export_3: DefineComponent<__VLS_Props_3, {
|
|
54
|
+
open: () => void;
|
|
55
|
+
close: () => void;
|
|
56
|
+
validate: () => Promise<boolean>;
|
|
57
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
58
|
+
submit: (formData: ModelValue, id: string | undefined, version: number | undefined) => any;
|
|
59
|
+
"update:show": (value: boolean) => any;
|
|
60
|
+
}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
|
|
61
|
+
onSubmit?: ((formData: ModelValue, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
62
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
actions: boolean;
|
|
66
|
+
formClass: string;
|
|
67
|
+
interactiveContainers: boolean;
|
|
68
|
+
showDataPanel: boolean;
|
|
69
|
+
resetOnSubmit: boolean;
|
|
70
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
71
|
+
|
|
72
|
+
declare const __VLS_export_4: DefineComponent<__VLS_Props_4, {
|
|
73
|
+
open: () => void;
|
|
74
|
+
close: () => void;
|
|
75
|
+
reset: () => void;
|
|
76
|
+
validate: () => Promise<boolean>;
|
|
77
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
78
|
+
submit: (formData: ModelValue_2, id: string | undefined, version: number | undefined) => any;
|
|
79
|
+
"update:show": (value: boolean) => any;
|
|
80
|
+
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
81
|
+
onSubmit?: ((formData: ModelValue_2, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
82
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
83
|
+
}>, {
|
|
84
|
+
disabled: boolean;
|
|
85
|
+
title: string;
|
|
86
|
+
actions: boolean;
|
|
87
|
+
formClass: string;
|
|
88
|
+
interactiveContainers: boolean;
|
|
89
|
+
showDataPanel: boolean;
|
|
90
|
+
initialData: ModelValue_2;
|
|
91
|
+
resetOnSubmit: boolean;
|
|
92
|
+
dataPanelWidth: string;
|
|
93
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
94
|
+
|
|
95
|
+
declare const __VLS_export_5: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
96
|
+
|
|
97
|
+
declare const __VLS_export_6: __VLS_WithSlots_3<typeof __VLS_base_3, __VLS_Slots_3>;
|
|
87
98
|
|
|
88
99
|
declare type __VLS_Props = {
|
|
89
100
|
/** 表单定义:v-model 双向绑定,预载已有表单并实时吐出编辑结果 */
|
|
@@ -183,89 +194,43 @@ declare type __VLS_Props_5 = {
|
|
|
183
194
|
disabled?: boolean;
|
|
184
195
|
} & Omit<Partial<ConfigProviderProps>, 'theme'>;
|
|
185
196
|
|
|
186
|
-
declare
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
/** 右侧操作列(导入导出 / 语言切换),不传则用默认 */
|
|
200
|
-
toolbar?: () => unknown;
|
|
201
|
-
}> & {
|
|
202
|
-
/** 整个顶栏(含默认内容) */
|
|
203
|
-
header?: () => unknown;
|
|
204
|
-
/** 顶栏左侧区(清除 / 预览),不传则用默认 */
|
|
205
|
-
'header-left'?: () => unknown;
|
|
206
|
-
/** 顶栏中间区(AI 提示),不传则用默认 */
|
|
207
|
-
'header-center'?: () => unknown;
|
|
208
|
-
/** 顶栏右侧区(undo/redo / 主题),不传则用默认 */
|
|
209
|
-
'header-right'?: () => unknown;
|
|
210
|
-
/** 画布空状态,不传则用默认 NEmpty */
|
|
211
|
-
empty?: () => unknown;
|
|
212
|
-
/** 右侧操作列(导入导出 / 语言切换),不传则用默认 */
|
|
213
|
-
toolbar?: () => unknown;
|
|
214
|
-
};
|
|
215
|
-
refs: {};
|
|
216
|
-
rootEl: any;
|
|
197
|
+
declare type __VLS_Slots = {
|
|
198
|
+
/** 整个顶栏(含默认内容) */
|
|
199
|
+
header?: () => unknown;
|
|
200
|
+
/** 顶栏左侧区(清除 / 预览),不传则用默认 */
|
|
201
|
+
'header-left'?: () => unknown;
|
|
202
|
+
/** 顶栏中间区(AI 提示),不传则用默认 */
|
|
203
|
+
'header-center'?: () => unknown;
|
|
204
|
+
/** 顶栏右侧区(undo/redo / 主题),不传则用默认 */
|
|
205
|
+
'header-right'?: () => unknown;
|
|
206
|
+
/** 画布空状态,不传则用默认 NEmpty */
|
|
207
|
+
empty?: () => unknown;
|
|
208
|
+
/** 右侧操作列(导入导出 / 语言切换),不传则用默认 */
|
|
209
|
+
toolbar?: () => unknown;
|
|
217
210
|
};
|
|
218
211
|
|
|
219
|
-
declare
|
|
220
|
-
|
|
221
|
-
slots: {
|
|
222
|
-
default?(_: {}): any;
|
|
223
|
-
};
|
|
224
|
-
refs: {};
|
|
225
|
-
rootEl: any;
|
|
212
|
+
declare type __VLS_Slots_2 = {
|
|
213
|
+
default?: () => unknown;
|
|
226
214
|
};
|
|
227
215
|
|
|
228
|
-
declare
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
/** 自定义操作区(覆盖默认提交/重置两按钮)。作用域提供 submit / reset / loading */
|
|
232
|
-
actions?: (props: FormActionsScope) => unknown;
|
|
233
|
-
}> & {
|
|
234
|
-
/** 自定义操作区(覆盖默认提交/重置两按钮)。作用域提供 submit / reset / loading */
|
|
235
|
-
actions?: (props: FormActionsScope) => unknown;
|
|
236
|
-
};
|
|
237
|
-
refs: {
|
|
238
|
-
formKitRef: CreateComponentPublicInstanceWithMixins<Readonly<FormKitTypedProps>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
239
|
-
P: {};
|
|
240
|
-
B: {};
|
|
241
|
-
D: {};
|
|
242
|
-
C: {};
|
|
243
|
-
M: {};
|
|
244
|
-
Defaults: {};
|
|
245
|
-
}, Readonly<FormKitTypedProps>, {}, {}, ComputedOptions, MethodOptions, {}> | null;
|
|
246
|
-
};
|
|
247
|
-
rootEl: any;
|
|
216
|
+
declare type __VLS_Slots_3 = {
|
|
217
|
+
/** 自定义操作区(覆盖默认提交/重置两按钮)。作用域提供 submit / reset / loading */
|
|
218
|
+
actions?: (props: FormActionsScope) => unknown;
|
|
248
219
|
};
|
|
249
220
|
|
|
250
|
-
declare type
|
|
251
|
-
|
|
252
|
-
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
253
|
-
|
|
254
|
-
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
255
|
-
|
|
256
|
-
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
221
|
+
declare type __VLS_WithSlots<T, S> = T & {
|
|
257
222
|
new (): {
|
|
258
223
|
$slots: S;
|
|
259
224
|
};
|
|
260
225
|
};
|
|
261
226
|
|
|
262
|
-
declare type
|
|
227
|
+
declare type __VLS_WithSlots_2<T, S> = T & {
|
|
263
228
|
new (): {
|
|
264
229
|
$slots: S;
|
|
265
230
|
};
|
|
266
231
|
};
|
|
267
232
|
|
|
268
|
-
declare type
|
|
233
|
+
declare type __VLS_WithSlots_3<T, S> = T & {
|
|
269
234
|
new (): {
|
|
270
235
|
$slots: S;
|
|
271
236
|
};
|
|
@@ -274,7 +239,8 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
|
274
239
|
declare interface BaseNode {
|
|
275
240
|
/** 稳定唯一 id(前端生成,用于树操作 / 选中 / 绑定) */
|
|
276
241
|
id: string;
|
|
277
|
-
/** 画布 DnD 身份(映射 legacy schema 的 __key
|
|
242
|
+
/** 画布 DnD 身份(映射 legacy schema 的 __key;非画布场景可省略)。
|
|
243
|
+
* 仅前端使用,交给后端前用 toPortableDefinition() 剥离(见 src/dsl/portable.ts)。 */
|
|
278
244
|
key?: string;
|
|
279
245
|
/** 字段名(提交到后端的数据 key);容器 / 布局 / 静态节点可不填 */
|
|
280
246
|
name?: string;
|
|
@@ -299,449 +265,13 @@ declare interface BaseNode {
|
|
|
299
265
|
|
|
300
266
|
export declare function buildElementSchemaLibrary(): Record<string, Component>;
|
|
301
267
|
|
|
302
|
-
export declare const BuilderPreview:
|
|
303
|
-
open: () => void;
|
|
304
|
-
close: () => void;
|
|
305
|
-
validate: () => Promise<boolean>;
|
|
306
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
307
|
-
submit: (formData: ModelValue, id: string | undefined, version: number | undefined) => any;
|
|
308
|
-
"update:show": (value: boolean) => any;
|
|
309
|
-
}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
|
|
310
|
-
onSubmit?: ((formData: ModelValue, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
311
|
-
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
312
|
-
}>, {
|
|
313
|
-
disabled: boolean;
|
|
314
|
-
actions: boolean;
|
|
315
|
-
formClass: string;
|
|
316
|
-
interactiveContainers: boolean;
|
|
317
|
-
showDataPanel: boolean;
|
|
318
|
-
resetOnSubmit: boolean;
|
|
319
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
320
|
-
rendererRef: ({
|
|
321
|
-
$: ComponentInternalInstance;
|
|
322
|
-
$data: {};
|
|
323
|
-
$props: {
|
|
324
|
-
readonly definition?: FormDefinition | undefined;
|
|
325
|
-
readonly schema?: FormKitSchemaFormKit[] | undefined;
|
|
326
|
-
readonly dataStructure?: "flat" | "nested" | undefined;
|
|
327
|
-
readonly modelValue?: {
|
|
328
|
-
[x: string]: unknown;
|
|
329
|
-
} | undefined;
|
|
330
|
-
readonly actions?: boolean | undefined;
|
|
331
|
-
readonly submitLabel?: string | undefined;
|
|
332
|
-
readonly resetLabel?: string | undefined;
|
|
333
|
-
readonly submitAttrs?: Record<string, unknown> | undefined;
|
|
334
|
-
readonly resetAttrs?: Record<string, unknown> | undefined;
|
|
335
|
-
readonly actionsJustify?: "start" | "center" | "end" | "space-between" | undefined;
|
|
336
|
-
readonly formClass?: string | undefined;
|
|
337
|
-
readonly formName?: string | undefined;
|
|
338
|
-
readonly labelPosition?: "top" | "left" | undefined;
|
|
339
|
-
readonly labelWidth?: number | undefined;
|
|
340
|
-
readonly schemaLibrary?: Record<string, Component> | undefined;
|
|
341
|
-
readonly interactiveContainers?: boolean | undefined;
|
|
342
|
-
readonly config?: FormBuilderConfig | undefined;
|
|
343
|
-
readonly theme?: BuilderTheme | undefined;
|
|
344
|
-
readonly http?: AxiosInstance | undefined;
|
|
345
|
-
readonly disabled?: boolean | undefined;
|
|
346
|
-
readonly themeOverrides?: GlobalThemeOverrides | null | undefined;
|
|
347
|
-
readonly tag?: string | undefined;
|
|
348
|
-
readonly bordered?: boolean | undefined;
|
|
349
|
-
readonly namespace?: string | undefined;
|
|
350
|
-
readonly inlineThemeDisabled?: boolean | undefined;
|
|
351
|
-
readonly abstract?: boolean | undefined;
|
|
352
|
-
readonly as?: string | undefined;
|
|
353
|
-
readonly locale?: {
|
|
354
|
-
name: string;
|
|
355
|
-
global: {
|
|
356
|
-
undo: string;
|
|
357
|
-
redo: string;
|
|
358
|
-
confirm: string;
|
|
359
|
-
clear: string;
|
|
360
|
-
};
|
|
361
|
-
Popconfirm: {
|
|
362
|
-
positiveText: string;
|
|
363
|
-
negativeText: string;
|
|
364
|
-
};
|
|
365
|
-
Cascader: {
|
|
366
|
-
placeholder: string;
|
|
367
|
-
loading: string;
|
|
368
|
-
loadingRequiredMessage: (label: string) => string;
|
|
369
|
-
};
|
|
370
|
-
Time: {
|
|
371
|
-
dateFormat: string;
|
|
372
|
-
dateTimeFormat: string;
|
|
373
|
-
};
|
|
374
|
-
DatePicker: {
|
|
375
|
-
yearFormat: string;
|
|
376
|
-
monthFormat: string;
|
|
377
|
-
dayFormat: string;
|
|
378
|
-
yearTypeFormat: string;
|
|
379
|
-
monthTypeFormat: string;
|
|
380
|
-
dateFormat: string;
|
|
381
|
-
dateTimeFormat: string;
|
|
382
|
-
quarterFormat: string;
|
|
383
|
-
weekFormat: string;
|
|
384
|
-
clear: string;
|
|
385
|
-
now: string;
|
|
386
|
-
confirm: string;
|
|
387
|
-
selectTime: string;
|
|
388
|
-
selectDate: string;
|
|
389
|
-
datePlaceholder: string;
|
|
390
|
-
datetimePlaceholder: string;
|
|
391
|
-
monthPlaceholder: string;
|
|
392
|
-
yearPlaceholder: string;
|
|
393
|
-
quarterPlaceholder: string;
|
|
394
|
-
weekPlaceholder: string;
|
|
395
|
-
startDatePlaceholder: string;
|
|
396
|
-
endDatePlaceholder: string;
|
|
397
|
-
startDatetimePlaceholder: string;
|
|
398
|
-
endDatetimePlaceholder: string;
|
|
399
|
-
startMonthPlaceholder: string;
|
|
400
|
-
endMonthPlaceholder: string;
|
|
401
|
-
monthBeforeYear: boolean;
|
|
402
|
-
firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
403
|
-
today: string;
|
|
404
|
-
};
|
|
405
|
-
DataTable: {
|
|
406
|
-
checkTableAll: string;
|
|
407
|
-
uncheckTableAll: string;
|
|
408
|
-
confirm: string;
|
|
409
|
-
clear: string;
|
|
410
|
-
};
|
|
411
|
-
LegacyTransfer: {
|
|
412
|
-
sourceTitle: string;
|
|
413
|
-
targetTitle: string;
|
|
414
|
-
};
|
|
415
|
-
Transfer: {
|
|
416
|
-
selectAll: string;
|
|
417
|
-
unselectAll: string;
|
|
418
|
-
clearAll: string;
|
|
419
|
-
total: (num: number) => string;
|
|
420
|
-
selected: (num: number) => string;
|
|
421
|
-
};
|
|
422
|
-
Empty: {
|
|
423
|
-
description: string;
|
|
424
|
-
};
|
|
425
|
-
Select: {
|
|
426
|
-
placeholder: string;
|
|
427
|
-
};
|
|
428
|
-
TimePicker: {
|
|
429
|
-
placeholder: string;
|
|
430
|
-
positiveText: string;
|
|
431
|
-
negativeText: string;
|
|
432
|
-
now: string;
|
|
433
|
-
clear: string;
|
|
434
|
-
};
|
|
435
|
-
Pagination: {
|
|
436
|
-
goto: string;
|
|
437
|
-
selectionSuffix: string;
|
|
438
|
-
};
|
|
439
|
-
DynamicTags: {
|
|
440
|
-
add: string;
|
|
441
|
-
};
|
|
442
|
-
Log: {
|
|
443
|
-
loading: string;
|
|
444
|
-
};
|
|
445
|
-
Input: {
|
|
446
|
-
placeholder: string;
|
|
447
|
-
};
|
|
448
|
-
InputNumber: {
|
|
449
|
-
placeholder: string;
|
|
450
|
-
};
|
|
451
|
-
DynamicInput: {
|
|
452
|
-
create: string;
|
|
453
|
-
};
|
|
454
|
-
ThemeEditor: {
|
|
455
|
-
title: string;
|
|
456
|
-
clearAllVars: string;
|
|
457
|
-
clearSearch: string;
|
|
458
|
-
filterCompName: string;
|
|
459
|
-
filterVarName: string;
|
|
460
|
-
import: string;
|
|
461
|
-
export: string;
|
|
462
|
-
restore: string;
|
|
463
|
-
};
|
|
464
|
-
Image: {
|
|
465
|
-
tipPrevious: string;
|
|
466
|
-
tipNext: string;
|
|
467
|
-
tipCounterclockwise: string;
|
|
468
|
-
tipClockwise: string;
|
|
469
|
-
tipZoomOut: string;
|
|
470
|
-
tipZoomIn: string;
|
|
471
|
-
tipDownload: string;
|
|
472
|
-
tipClose: string;
|
|
473
|
-
tipOriginalSize: string;
|
|
474
|
-
};
|
|
475
|
-
Heatmap: {
|
|
476
|
-
less: string;
|
|
477
|
-
more: string;
|
|
478
|
-
monthFormat: string;
|
|
479
|
-
weekdayFormat: string;
|
|
480
|
-
};
|
|
481
|
-
} | null | undefined;
|
|
482
|
-
readonly clsPrefix?: string | undefined;
|
|
483
|
-
readonly dateLocale?: NDateLocale | null | undefined;
|
|
484
|
-
readonly rtl?: RtlProp | undefined;
|
|
485
|
-
readonly hljs?: Hljs | undefined;
|
|
486
|
-
readonly katex?: any;
|
|
487
|
-
readonly componentOptions?: GlobalComponentConfig | undefined;
|
|
488
|
-
readonly icons?: GlobalIconConfig | undefined;
|
|
489
|
-
readonly breakpoints?: Breakpoints;
|
|
490
|
-
readonly preflightStyleDisabled?: boolean | undefined;
|
|
491
|
-
readonly styleMountTarget?: ParentNode | null | undefined;
|
|
492
|
-
readonly onSubmit?: ((formData: {
|
|
493
|
-
[x: string]: unknown;
|
|
494
|
-
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
495
|
-
readonly "onUpdate:modelValue"?: ((value: {
|
|
496
|
-
[x: string]: unknown;
|
|
497
|
-
}) => any) | undefined;
|
|
498
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
499
|
-
$attrs: Attrs;
|
|
500
|
-
$refs: {
|
|
501
|
-
[x: string]: unknown;
|
|
502
|
-
} & {
|
|
503
|
-
formKitRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
504
|
-
type?: string;
|
|
505
|
-
name?: string;
|
|
506
|
-
actions?: boolean;
|
|
507
|
-
formClass?: string;
|
|
508
|
-
disabled?: boolean;
|
|
509
|
-
modelValue?: {
|
|
510
|
-
[x: string]: unknown;
|
|
511
|
-
};
|
|
512
|
-
'onUpdate:modelValue'?: (value: {
|
|
513
|
-
[x: string]: unknown;
|
|
514
|
-
}) => void;
|
|
515
|
-
onSubmit?: (formData: {
|
|
516
|
-
[x: string]: unknown;
|
|
517
|
-
}) => void;
|
|
518
|
-
}>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
519
|
-
P: {};
|
|
520
|
-
B: {};
|
|
521
|
-
D: {};
|
|
522
|
-
C: {};
|
|
523
|
-
M: {};
|
|
524
|
-
Defaults: {};
|
|
525
|
-
}, Readonly<{
|
|
526
|
-
type?: string;
|
|
527
|
-
name?: string;
|
|
528
|
-
actions?: boolean;
|
|
529
|
-
formClass?: string;
|
|
530
|
-
disabled?: boolean;
|
|
531
|
-
modelValue?: {
|
|
532
|
-
[x: string]: unknown;
|
|
533
|
-
};
|
|
534
|
-
'onUpdate:modelValue'?: (value: {
|
|
535
|
-
[x: string]: unknown;
|
|
536
|
-
}) => void;
|
|
537
|
-
onSubmit?: (formData: {
|
|
538
|
-
[x: string]: unknown;
|
|
539
|
-
}) => void;
|
|
540
|
-
}>, {}, {}, ComputedOptions, MethodOptions, {}> | null;
|
|
541
|
-
};
|
|
542
|
-
$slots: Readonly<{
|
|
543
|
-
[name: string]: Slot<any> | undefined;
|
|
544
|
-
}>;
|
|
545
|
-
$root: ComponentPublicInstance | null;
|
|
546
|
-
$parent: ComponentPublicInstance | null;
|
|
547
|
-
$host: Element | null;
|
|
548
|
-
$emit: ((event: "submit", formData: {
|
|
549
|
-
[x: string]: unknown;
|
|
550
|
-
}, id: string | undefined, version: number | undefined) => void) & ((event: "update:modelValue", value: {
|
|
551
|
-
[x: string]: unknown;
|
|
552
|
-
}) => void);
|
|
553
|
-
$el: any;
|
|
554
|
-
$options: ComponentOptionsBase<Readonly<{
|
|
555
|
-
definition?: FormDefinition;
|
|
556
|
-
schema?: FormKitSchemaFormKit[];
|
|
557
|
-
dataStructure?: "flat" | "nested";
|
|
558
|
-
modelValue?: {
|
|
559
|
-
[x: string]: unknown;
|
|
560
|
-
};
|
|
561
|
-
actions?: boolean;
|
|
562
|
-
submitLabel?: string;
|
|
563
|
-
resetLabel?: string;
|
|
564
|
-
submitAttrs?: Record<string, unknown>;
|
|
565
|
-
resetAttrs?: Record<string, unknown>;
|
|
566
|
-
actionsJustify?: "start" | "center" | "end" | "space-between";
|
|
567
|
-
formClass?: string;
|
|
568
|
-
formName?: string;
|
|
569
|
-
labelPosition?: "top" | "left";
|
|
570
|
-
labelWidth?: number;
|
|
571
|
-
schemaLibrary?: Record<string, Component>;
|
|
572
|
-
interactiveContainers?: boolean;
|
|
573
|
-
config?: FormBuilderConfig;
|
|
574
|
-
theme?: BuilderTheme;
|
|
575
|
-
http?: AxiosInstance;
|
|
576
|
-
disabled?: boolean;
|
|
577
|
-
} & Omit<Partial<Partial<ExtractPropTypes< {
|
|
578
|
-
readonly abstract: BooleanConstructor;
|
|
579
|
-
readonly bordered: {
|
|
580
|
-
readonly type: PropType<boolean | undefined>;
|
|
581
|
-
readonly default: undefined;
|
|
582
|
-
};
|
|
583
|
-
readonly clsPrefix: StringConstructor;
|
|
584
|
-
readonly locale: PropType<NLocale | null>;
|
|
585
|
-
readonly dateLocale: PropType<NDateLocale | null>;
|
|
586
|
-
readonly namespace: StringConstructor;
|
|
587
|
-
readonly rtl: PropType<RtlProp>;
|
|
588
|
-
readonly tag: {
|
|
589
|
-
readonly type: StringConstructor;
|
|
590
|
-
readonly default: "div";
|
|
591
|
-
};
|
|
592
|
-
readonly hljs: PropType<Hljs>;
|
|
593
|
-
readonly katex: PropType<Katex>;
|
|
594
|
-
readonly theme: PropType<GlobalTheme | null>;
|
|
595
|
-
readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
|
|
596
|
-
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
597
|
-
readonly icons: PropType<GlobalIconConfig>;
|
|
598
|
-
readonly breakpoints: PropType<Breakpoints>;
|
|
599
|
-
readonly preflightStyleDisabled: BooleanConstructor;
|
|
600
|
-
readonly styleMountTarget: PropType<ParentNode | null>;
|
|
601
|
-
readonly inlineThemeDisabled: {
|
|
602
|
-
readonly type: BooleanConstructor;
|
|
603
|
-
readonly default: undefined;
|
|
604
|
-
};
|
|
605
|
-
readonly as: {
|
|
606
|
-
readonly type: PropType<string | undefined>;
|
|
607
|
-
readonly validator: () => boolean;
|
|
608
|
-
readonly default: undefined;
|
|
609
|
-
};
|
|
610
|
-
}>>>, "theme">> & Readonly<{
|
|
611
|
-
onSubmit?: ((formData: {
|
|
612
|
-
[x: string]: unknown;
|
|
613
|
-
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
614
|
-
"onUpdate:modelValue"?: ((value: {
|
|
615
|
-
[x: string]: unknown;
|
|
616
|
-
}) => any) | undefined;
|
|
617
|
-
}>, {
|
|
618
|
-
submit: () => void | undefined;
|
|
619
|
-
reset: () => void | undefined;
|
|
620
|
-
validate: () => Promise<boolean>;
|
|
621
|
-
loading: Ref<boolean, boolean>;
|
|
622
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
623
|
-
submit: (formData: {
|
|
624
|
-
[x: string]: unknown;
|
|
625
|
-
}, id: string | undefined, version: number | undefined) => any;
|
|
626
|
-
"update:modelValue": (value: {
|
|
627
|
-
[x: string]: unknown;
|
|
628
|
-
}) => any;
|
|
629
|
-
}, string, {
|
|
630
|
-
disabled: boolean;
|
|
631
|
-
actions: boolean;
|
|
632
|
-
formClass: string;
|
|
633
|
-
dataStructure: "flat" | "nested";
|
|
634
|
-
actionsJustify: "start" | "center" | "end" | "space-between";
|
|
635
|
-
interactiveContainers: boolean;
|
|
636
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
637
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
638
|
-
created?: (() => void) | (() => void)[];
|
|
639
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
640
|
-
mounted?: (() => void) | (() => void)[];
|
|
641
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
642
|
-
updated?: (() => void) | (() => void)[];
|
|
643
|
-
activated?: (() => void) | (() => void)[];
|
|
644
|
-
deactivated?: (() => void) | (() => void)[];
|
|
645
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
646
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
647
|
-
destroyed?: (() => void) | (() => void)[];
|
|
648
|
-
unmounted?: (() => void) | (() => void)[];
|
|
649
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
650
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
651
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
652
|
-
};
|
|
653
|
-
$forceUpdate: () => void;
|
|
654
|
-
$nextTick: typeof nextTick;
|
|
655
|
-
$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;
|
|
656
|
-
} & Readonly<{
|
|
657
|
-
disabled: boolean;
|
|
658
|
-
actions: boolean;
|
|
659
|
-
formClass: string;
|
|
660
|
-
dataStructure: "flat" | "nested";
|
|
661
|
-
actionsJustify: "start" | "center" | "end" | "space-between";
|
|
662
|
-
interactiveContainers: boolean;
|
|
663
|
-
}> & Omit<Readonly<{
|
|
664
|
-
definition?: FormDefinition;
|
|
665
|
-
schema?: FormKitSchemaFormKit[];
|
|
666
|
-
dataStructure?: "flat" | "nested";
|
|
667
|
-
modelValue?: {
|
|
668
|
-
[x: string]: unknown;
|
|
669
|
-
};
|
|
670
|
-
actions?: boolean;
|
|
671
|
-
submitLabel?: string;
|
|
672
|
-
resetLabel?: string;
|
|
673
|
-
submitAttrs?: Record<string, unknown>;
|
|
674
|
-
resetAttrs?: Record<string, unknown>;
|
|
675
|
-
actionsJustify?: "start" | "center" | "end" | "space-between";
|
|
676
|
-
formClass?: string;
|
|
677
|
-
formName?: string;
|
|
678
|
-
labelPosition?: "top" | "left";
|
|
679
|
-
labelWidth?: number;
|
|
680
|
-
schemaLibrary?: Record<string, Component>;
|
|
681
|
-
interactiveContainers?: boolean;
|
|
682
|
-
config?: FormBuilderConfig;
|
|
683
|
-
theme?: BuilderTheme;
|
|
684
|
-
http?: AxiosInstance;
|
|
685
|
-
disabled?: boolean;
|
|
686
|
-
} & Omit<Partial<Partial<ExtractPropTypes< {
|
|
687
|
-
readonly abstract: BooleanConstructor;
|
|
688
|
-
readonly bordered: {
|
|
689
|
-
readonly type: PropType<boolean | undefined>;
|
|
690
|
-
readonly default: undefined;
|
|
691
|
-
};
|
|
692
|
-
readonly clsPrefix: StringConstructor;
|
|
693
|
-
readonly locale: PropType<NLocale | null>;
|
|
694
|
-
readonly dateLocale: PropType<NDateLocale | null>;
|
|
695
|
-
readonly namespace: StringConstructor;
|
|
696
|
-
readonly rtl: PropType<RtlProp>;
|
|
697
|
-
readonly tag: {
|
|
698
|
-
readonly type: StringConstructor;
|
|
699
|
-
readonly default: "div";
|
|
700
|
-
};
|
|
701
|
-
readonly hljs: PropType<Hljs>;
|
|
702
|
-
readonly katex: PropType<Katex>;
|
|
703
|
-
readonly theme: PropType<GlobalTheme | null>;
|
|
704
|
-
readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
|
|
705
|
-
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
706
|
-
readonly icons: PropType<GlobalIconConfig>;
|
|
707
|
-
readonly breakpoints: PropType<Breakpoints>;
|
|
708
|
-
readonly preflightStyleDisabled: BooleanConstructor;
|
|
709
|
-
readonly styleMountTarget: PropType<ParentNode | null>;
|
|
710
|
-
readonly inlineThemeDisabled: {
|
|
711
|
-
readonly type: BooleanConstructor;
|
|
712
|
-
readonly default: undefined;
|
|
713
|
-
};
|
|
714
|
-
readonly as: {
|
|
715
|
-
readonly type: PropType<string | undefined>;
|
|
716
|
-
readonly validator: () => boolean;
|
|
717
|
-
readonly default: undefined;
|
|
718
|
-
};
|
|
719
|
-
}>>>, "theme">> & Readonly<{
|
|
720
|
-
onSubmit?: ((formData: {
|
|
721
|
-
[x: string]: unknown;
|
|
722
|
-
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
723
|
-
"onUpdate:modelValue"?: ((value: {
|
|
724
|
-
[x: string]: unknown;
|
|
725
|
-
}) => any) | undefined;
|
|
726
|
-
}>, "submit" | "reset" | "loading" | "validate" | ("disabled" | "actions" | "formClass" | "dataStructure" | "actionsJustify" | "interactiveContainers")> & {
|
|
727
|
-
submit: () => void | undefined;
|
|
728
|
-
reset: () => void | undefined;
|
|
729
|
-
validate: () => Promise<boolean>;
|
|
730
|
-
loading: boolean;
|
|
731
|
-
} & {} & ComponentCustomProperties & {} & {
|
|
732
|
-
$slots: Readonly<{
|
|
733
|
-
actions?: (props: FormActionsScope) => unknown;
|
|
734
|
-
}> & {
|
|
735
|
-
actions?: (props: FormActionsScope) => unknown;
|
|
736
|
-
};
|
|
737
|
-
}) | null;
|
|
738
|
-
}, any>;
|
|
268
|
+
export declare const BuilderPreview: typeof __VLS_export_3;
|
|
739
269
|
|
|
740
270
|
export declare type BuilderTheme = 'light' | 'dark';
|
|
741
271
|
|
|
742
272
|
export declare function buildFormkitInputs(): Record<string, ReturnType<typeof createInput>>;
|
|
743
273
|
|
|
744
|
-
export declare const CanvasActionsBar:
|
|
274
|
+
export declare const CanvasActionsBar: typeof __VLS_export_5;
|
|
745
275
|
|
|
746
276
|
declare interface CanvasUiState {
|
|
747
277
|
canvasView: Ref<CanvasView>;
|
|
@@ -754,6 +284,10 @@ declare interface ChildrenConvertCtx {
|
|
|
754
284
|
children?: (sc?: SchemaNode[]) => FormNode[];
|
|
755
285
|
}
|
|
756
286
|
|
|
287
|
+
/** 遍历 DSL 定义收集用到的全部元素类型,去重;容器(含数据表格)按其 children
|
|
288
|
+
* 递归展开——数据表格的列本身就是普通 DSL 字段节点,一并收集在内。 */
|
|
289
|
+
export declare function collectElementTypes(definition: FormDefinition): string[];
|
|
290
|
+
|
|
757
291
|
declare type ContainerDataShape = 'object' | 'array' | 'arrayOfObjects' | 'objectOfObjects' | 'none';
|
|
758
292
|
|
|
759
293
|
declare type ContainerDefinition = {
|
|
@@ -773,7 +307,6 @@ declare type ContainerDefinition = {
|
|
|
773
307
|
|
|
774
308
|
declare type ContainerFormatCtx = {
|
|
775
309
|
key?: string;
|
|
776
|
-
isPlaceholder: boolean;
|
|
777
310
|
format: (node: FormKitSchemaFormKit, index: number) => FormKitSchemaFormKit;
|
|
778
311
|
};
|
|
779
312
|
|
|
@@ -784,8 +317,6 @@ export declare interface ContainerNode extends BaseNode {
|
|
|
784
317
|
children: FormNode[];
|
|
785
318
|
}
|
|
786
319
|
|
|
787
|
-
export declare type ContainerRenderer<T> = (node: ContainerNode, ctx: RenderContext<T>, children?: T[]) => T;
|
|
788
|
-
|
|
789
320
|
declare interface ContainerSpec {
|
|
790
321
|
/** 数据结构(用户记法 → 语义名):
|
|
791
322
|
* object({}) 单对象:children 是对象字段(group 原生;card/inputGroup 壳 + group 包一层)
|
|
@@ -805,18 +336,24 @@ declare interface ContainerSpec {
|
|
|
805
336
|
/** 创建独立的 FormBuilder 状态实例。 */
|
|
806
337
|
export declare function createFormBuilderState(): FormBuilderState;
|
|
807
338
|
|
|
808
|
-
|
|
339
|
+
/** 增量转换投影:持有本实例的 WeakMap 缓存(节点转换 + group 包裹各一份),
|
|
340
|
+
* `toSchema` / `toOutputSchema` 与公开的 dslToSchema / dslToOutputSchema 语义等价,
|
|
341
|
+
* 区别是同一个节点引用命中缓存时直接复用上次的 schema 对象(含冻结),配合不可变
|
|
342
|
+
* 的 DSL 编辑路径实现增量渲染。每个使用方(设计器状态实例、每个 FormRenderer 实例)
|
|
343
|
+
* 应各自持有一个 projector,不共享,否则不同调用方的编辑历史会互相污染缓存。 */
|
|
344
|
+
declare function createSchemaProjector(): {
|
|
345
|
+
toSchema: (form: FormDefinition) => FormKitSchemaFormKit[];
|
|
346
|
+
toOutputSchema: (form: FormDefinition) => FormKitSchemaFormKit[];
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
declare const _default: typeof __VLS_export;
|
|
809
350
|
export { _default as FormBuilder }
|
|
810
351
|
export { _default as FormKitFormBuilder }
|
|
811
352
|
|
|
812
|
-
declare const _default_2:
|
|
353
|
+
declare const _default_2: typeof __VLS_export_2;
|
|
813
354
|
export { _default_2 as BuilderProvider }
|
|
814
355
|
export { _default_2 as FormBuilderProvider }
|
|
815
356
|
|
|
816
|
-
declare const _default_3: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
817
|
-
export { _default_3 as FormRenderer }
|
|
818
|
-
export { _default_3 as FormSchemaRenderer }
|
|
819
|
-
|
|
820
357
|
declare type DefSnapshot = FormDefinition;
|
|
821
358
|
|
|
822
359
|
/** 字典定义(分页搜索返回的一行) */
|
|
@@ -831,6 +368,12 @@ declare interface DictionaryOption {
|
|
|
831
368
|
value: string | number;
|
|
832
369
|
}
|
|
833
370
|
|
|
371
|
+
/**
|
|
372
|
+
* @public
|
|
373
|
+
* 分页字典查询参数:FormBuilderConfig.fetchDictionaryPage 的入参形状,是公共 API
|
|
374
|
+
* 的一部分(宿主实现该回调时对齐这个结构),仓库内部没有代码按名字导入它,
|
|
375
|
+
* knip 会误判为死代码——用 @public 标记精确豁免,而不是整体放宽规则。
|
|
376
|
+
*/
|
|
834
377
|
declare interface DictionaryPageQuery {
|
|
835
378
|
/** 按 code 模糊过滤 */
|
|
836
379
|
code?: string;
|
|
@@ -840,6 +383,7 @@ declare interface DictionaryPageQuery {
|
|
|
840
383
|
pageSize: number;
|
|
841
384
|
}
|
|
842
385
|
|
|
386
|
+
/** @public 分页字典查询结果:FormBuilderConfig.fetchDictionaryPage 的返回形状,理由同 DictionaryPageQuery */
|
|
843
387
|
declare interface DictionaryPageResult {
|
|
844
388
|
pageNum: number;
|
|
845
389
|
pageSize: number;
|
|
@@ -847,13 +391,17 @@ declare interface DictionaryPageResult {
|
|
|
847
391
|
data: DictionaryDefinition[];
|
|
848
392
|
}
|
|
849
393
|
|
|
850
|
-
/** 公开 API:将 DSL 转为含 Group 包裹的 FormKit schema,子节点嵌套为 JSON object
|
|
394
|
+
/** 公开 API:将 DSL 转为含 Group 包裹的 FormKit schema,子节点嵌套为 JSON object 数据。
|
|
395
|
+
* 同 dslToSchema:不缓存、不冻结。 */
|
|
851
396
|
export declare function dslToOutputSchema(form: FormDefinition): FormKitSchemaFormKit[];
|
|
852
397
|
|
|
398
|
+
/** 公开 API:DSL → FormKit schema。每次调用都重新转换整棵树,不缓存、不冻结、
|
|
399
|
+
* 返回全新对象——外部调用方(reactive() 包裹 + 原地修改、或改写返回结果)不会
|
|
400
|
+
* 互相污染,也不会因为命中过期缓存而拿到旧结果。渲染增量场景请用
|
|
401
|
+
* createSchemaProjector()。 */
|
|
853
402
|
export declare function dslToSchema(form: FormDefinition): FormKitSchemaFormKit[];
|
|
854
403
|
|
|
855
404
|
export declare interface DslToSchemaCtx {
|
|
856
|
-
form?: FormDefinition;
|
|
857
405
|
children?: SchemaNode[];
|
|
858
406
|
}
|
|
859
407
|
|
|
@@ -879,6 +427,9 @@ export declare interface ElementCatalogEntry {
|
|
|
879
427
|
schema: ElementTemplate;
|
|
880
428
|
/** 容器元素的数据结构规格(list/card/group/inputGroup/buttonGroup/tabs;字段/静态/纯布局缺省) */
|
|
881
429
|
container?: ContainerSpec;
|
|
430
|
+
/** 右侧面板「事件」分组可绑定的事件 key 列表(取自 elements/definitions/bind-events.ts
|
|
431
|
+
* 的常量);缺省或空数组表示该元素不可绑定事件,外层不显示「事件」分组 */
|
|
432
|
+
bindEvents?: readonly string[];
|
|
882
433
|
}
|
|
883
434
|
|
|
884
435
|
export declare type ElementCategory = NodeCategory;
|
|
@@ -944,10 +495,10 @@ export declare interface ElementTypeDef {
|
|
|
944
495
|
}>;
|
|
945
496
|
icon?: string;
|
|
946
497
|
tooltipKey?: string;
|
|
498
|
+
/** 见 ElementCatalogEntry.bindEvents,注册时原样透传 */
|
|
499
|
+
bindEvents?: readonly string[];
|
|
947
500
|
}
|
|
948
501
|
|
|
949
|
-
declare type ElEvent = 'click' | 'dblclick' | 'mouseenter' | 'mouseleave' | 'keydown' | 'keyup' | 'keypress' | 'submit';
|
|
950
|
-
|
|
951
502
|
declare interface EventBinding {
|
|
952
503
|
event: FormEvent;
|
|
953
504
|
handler: string;
|
|
@@ -979,16 +530,24 @@ export declare interface FieldNode extends BaseNode {
|
|
|
979
530
|
value?: FieldValue;
|
|
980
531
|
/** 表达式字符串(如 "$price * $count"),由运行时 watch 求值并写入 FormKit node */
|
|
981
532
|
expr?: string;
|
|
533
|
+
/** 条件必填:为真时按必填校验(等同临时加一条 required 规则,JSON-safe,方便后端对接)。
|
|
534
|
+
* 字段已有静态 required 规则时静态规则优先,条件必填不生效(编辑器给出提示)。 */
|
|
535
|
+
requiredIf?: Expr;
|
|
536
|
+
/** 条件禁用:为真时禁用该字段,与表单级/字段静态 disabled 叠加(任一为真即禁用)。 */
|
|
537
|
+
disabledIf?: Expr;
|
|
538
|
+
/** 条件只读:为真时原生支持只读的类型(见 READONLY_CAPABLE_TYPES)真只读,
|
|
539
|
+
* 其余退化为禁用,判断口径与表单级 readonly 共用同一份集合,不另起一套。 */
|
|
540
|
+
readonlyIf?: Expr;
|
|
982
541
|
validation?: ValidationRule[];
|
|
983
542
|
/** select / radio / checkbox 等选项(静态数组,或 { dynamic, code } 动态字典) */
|
|
984
543
|
options?: OptionItem[] | DynamicOptionSource;
|
|
985
544
|
}
|
|
986
545
|
|
|
987
|
-
export declare type FieldRenderer<T> = (node: FieldNode, ctx: RenderContext<T>, children?: T[]) => T;
|
|
988
|
-
|
|
989
546
|
/** 字段值:静态值 */
|
|
990
547
|
declare type FieldValue = StaticValue;
|
|
991
548
|
|
|
549
|
+
declare const FORM_EVENTS: readonly ["click", "change", "input", "focus", "blur"];
|
|
550
|
+
|
|
992
551
|
/** #actions 槽作用域:可由外部自定义操作区按钮,复用表单提交/重置 */
|
|
993
552
|
declare type FormActionsScope = {
|
|
994
553
|
submit: () => void;
|
|
@@ -1059,460 +618,24 @@ export declare interface FormDefinition {
|
|
|
1059
618
|
meta?: Record<string, unknown>;
|
|
1060
619
|
}
|
|
1061
620
|
|
|
1062
|
-
export declare const FormDefinitionPreview:
|
|
1063
|
-
open: () => void;
|
|
1064
|
-
close: () => void;
|
|
1065
|
-
reset: () => void;
|
|
1066
|
-
validate: () => Promise<boolean>;
|
|
1067
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1068
|
-
submit: (formData: ModelValue_2, id: string | undefined, version: number | undefined) => any;
|
|
1069
|
-
"update:show": (value: boolean) => any;
|
|
1070
|
-
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
1071
|
-
onSubmit?: ((formData: ModelValue_2, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
1072
|
-
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
1073
|
-
}>, {
|
|
1074
|
-
disabled: boolean;
|
|
1075
|
-
title: string;
|
|
1076
|
-
actions: boolean;
|
|
1077
|
-
formClass: string;
|
|
1078
|
-
interactiveContainers: boolean;
|
|
1079
|
-
showDataPanel: boolean;
|
|
1080
|
-
initialData: ModelValue_2;
|
|
1081
|
-
resetOnSubmit: boolean;
|
|
1082
|
-
dataPanelWidth: string;
|
|
1083
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1084
|
-
rendererRef: ({
|
|
1085
|
-
$: ComponentInternalInstance;
|
|
1086
|
-
$data: {};
|
|
1087
|
-
$props: {
|
|
1088
|
-
readonly definition?: FormDefinition | undefined;
|
|
1089
|
-
readonly schema?: FormKitSchemaFormKit[] | undefined;
|
|
1090
|
-
readonly dataStructure?: "flat" | "nested" | undefined;
|
|
1091
|
-
readonly modelValue?: {
|
|
1092
|
-
[x: string]: unknown;
|
|
1093
|
-
} | undefined;
|
|
1094
|
-
readonly actions?: boolean | undefined;
|
|
1095
|
-
readonly submitLabel?: string | undefined;
|
|
1096
|
-
readonly resetLabel?: string | undefined;
|
|
1097
|
-
readonly submitAttrs?: Record<string, unknown> | undefined;
|
|
1098
|
-
readonly resetAttrs?: Record<string, unknown> | undefined;
|
|
1099
|
-
readonly actionsJustify?: "start" | "center" | "end" | "space-between" | undefined;
|
|
1100
|
-
readonly formClass?: string | undefined;
|
|
1101
|
-
readonly formName?: string | undefined;
|
|
1102
|
-
readonly labelPosition?: "top" | "left" | undefined;
|
|
1103
|
-
readonly labelWidth?: number | undefined;
|
|
1104
|
-
readonly schemaLibrary?: Record<string, Component> | undefined;
|
|
1105
|
-
readonly interactiveContainers?: boolean | undefined;
|
|
1106
|
-
readonly config?: FormBuilderConfig | undefined;
|
|
1107
|
-
readonly theme?: BuilderTheme | undefined;
|
|
1108
|
-
readonly http?: AxiosInstance | undefined;
|
|
1109
|
-
readonly disabled?: boolean | undefined;
|
|
1110
|
-
readonly themeOverrides?: GlobalThemeOverrides | null | undefined;
|
|
1111
|
-
readonly tag?: string | undefined;
|
|
1112
|
-
readonly bordered?: boolean | undefined;
|
|
1113
|
-
readonly namespace?: string | undefined;
|
|
1114
|
-
readonly inlineThemeDisabled?: boolean | undefined;
|
|
1115
|
-
readonly abstract?: boolean | undefined;
|
|
1116
|
-
readonly as?: string | undefined;
|
|
1117
|
-
readonly locale?: {
|
|
1118
|
-
name: string;
|
|
1119
|
-
global: {
|
|
1120
|
-
undo: string;
|
|
1121
|
-
redo: string;
|
|
1122
|
-
confirm: string;
|
|
1123
|
-
clear: string;
|
|
1124
|
-
};
|
|
1125
|
-
Popconfirm: {
|
|
1126
|
-
positiveText: string;
|
|
1127
|
-
negativeText: string;
|
|
1128
|
-
};
|
|
1129
|
-
Cascader: {
|
|
1130
|
-
placeholder: string;
|
|
1131
|
-
loading: string;
|
|
1132
|
-
loadingRequiredMessage: (label: string) => string;
|
|
1133
|
-
};
|
|
1134
|
-
Time: {
|
|
1135
|
-
dateFormat: string;
|
|
1136
|
-
dateTimeFormat: string;
|
|
1137
|
-
};
|
|
1138
|
-
DatePicker: {
|
|
1139
|
-
yearFormat: string;
|
|
1140
|
-
monthFormat: string;
|
|
1141
|
-
dayFormat: string;
|
|
1142
|
-
yearTypeFormat: string;
|
|
1143
|
-
monthTypeFormat: string;
|
|
1144
|
-
dateFormat: string;
|
|
1145
|
-
dateTimeFormat: string;
|
|
1146
|
-
quarterFormat: string;
|
|
1147
|
-
weekFormat: string;
|
|
1148
|
-
clear: string;
|
|
1149
|
-
now: string;
|
|
1150
|
-
confirm: string;
|
|
1151
|
-
selectTime: string;
|
|
1152
|
-
selectDate: string;
|
|
1153
|
-
datePlaceholder: string;
|
|
1154
|
-
datetimePlaceholder: string;
|
|
1155
|
-
monthPlaceholder: string;
|
|
1156
|
-
yearPlaceholder: string;
|
|
1157
|
-
quarterPlaceholder: string;
|
|
1158
|
-
weekPlaceholder: string;
|
|
1159
|
-
startDatePlaceholder: string;
|
|
1160
|
-
endDatePlaceholder: string;
|
|
1161
|
-
startDatetimePlaceholder: string;
|
|
1162
|
-
endDatetimePlaceholder: string;
|
|
1163
|
-
startMonthPlaceholder: string;
|
|
1164
|
-
endMonthPlaceholder: string;
|
|
1165
|
-
monthBeforeYear: boolean;
|
|
1166
|
-
firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
1167
|
-
today: string;
|
|
1168
|
-
};
|
|
1169
|
-
DataTable: {
|
|
1170
|
-
checkTableAll: string;
|
|
1171
|
-
uncheckTableAll: string;
|
|
1172
|
-
confirm: string;
|
|
1173
|
-
clear: string;
|
|
1174
|
-
};
|
|
1175
|
-
LegacyTransfer: {
|
|
1176
|
-
sourceTitle: string;
|
|
1177
|
-
targetTitle: string;
|
|
1178
|
-
};
|
|
1179
|
-
Transfer: {
|
|
1180
|
-
selectAll: string;
|
|
1181
|
-
unselectAll: string;
|
|
1182
|
-
clearAll: string;
|
|
1183
|
-
total: (num: number) => string;
|
|
1184
|
-
selected: (num: number) => string;
|
|
1185
|
-
};
|
|
1186
|
-
Empty: {
|
|
1187
|
-
description: string;
|
|
1188
|
-
};
|
|
1189
|
-
Select: {
|
|
1190
|
-
placeholder: string;
|
|
1191
|
-
};
|
|
1192
|
-
TimePicker: {
|
|
1193
|
-
placeholder: string;
|
|
1194
|
-
positiveText: string;
|
|
1195
|
-
negativeText: string;
|
|
1196
|
-
now: string;
|
|
1197
|
-
clear: string;
|
|
1198
|
-
};
|
|
1199
|
-
Pagination: {
|
|
1200
|
-
goto: string;
|
|
1201
|
-
selectionSuffix: string;
|
|
1202
|
-
};
|
|
1203
|
-
DynamicTags: {
|
|
1204
|
-
add: string;
|
|
1205
|
-
};
|
|
1206
|
-
Log: {
|
|
1207
|
-
loading: string;
|
|
1208
|
-
};
|
|
1209
|
-
Input: {
|
|
1210
|
-
placeholder: string;
|
|
1211
|
-
};
|
|
1212
|
-
InputNumber: {
|
|
1213
|
-
placeholder: string;
|
|
1214
|
-
};
|
|
1215
|
-
DynamicInput: {
|
|
1216
|
-
create: string;
|
|
1217
|
-
};
|
|
1218
|
-
ThemeEditor: {
|
|
1219
|
-
title: string;
|
|
1220
|
-
clearAllVars: string;
|
|
1221
|
-
clearSearch: string;
|
|
1222
|
-
filterCompName: string;
|
|
1223
|
-
filterVarName: string;
|
|
1224
|
-
import: string;
|
|
1225
|
-
export: string;
|
|
1226
|
-
restore: string;
|
|
1227
|
-
};
|
|
1228
|
-
Image: {
|
|
1229
|
-
tipPrevious: string;
|
|
1230
|
-
tipNext: string;
|
|
1231
|
-
tipCounterclockwise: string;
|
|
1232
|
-
tipClockwise: string;
|
|
1233
|
-
tipZoomOut: string;
|
|
1234
|
-
tipZoomIn: string;
|
|
1235
|
-
tipDownload: string;
|
|
1236
|
-
tipClose: string;
|
|
1237
|
-
tipOriginalSize: string;
|
|
1238
|
-
};
|
|
1239
|
-
Heatmap: {
|
|
1240
|
-
less: string;
|
|
1241
|
-
more: string;
|
|
1242
|
-
monthFormat: string;
|
|
1243
|
-
weekdayFormat: string;
|
|
1244
|
-
};
|
|
1245
|
-
} | null | undefined;
|
|
1246
|
-
readonly clsPrefix?: string | undefined;
|
|
1247
|
-
readonly dateLocale?: NDateLocale | null | undefined;
|
|
1248
|
-
readonly rtl?: RtlProp | undefined;
|
|
1249
|
-
readonly hljs?: Hljs | undefined;
|
|
1250
|
-
readonly katex?: any;
|
|
1251
|
-
readonly componentOptions?: GlobalComponentConfig | undefined;
|
|
1252
|
-
readonly icons?: GlobalIconConfig | undefined;
|
|
1253
|
-
readonly breakpoints?: Breakpoints;
|
|
1254
|
-
readonly preflightStyleDisabled?: boolean | undefined;
|
|
1255
|
-
readonly styleMountTarget?: ParentNode | null | undefined;
|
|
1256
|
-
readonly onSubmit?: ((formData: {
|
|
1257
|
-
[x: string]: unknown;
|
|
1258
|
-
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
1259
|
-
readonly "onUpdate:modelValue"?: ((value: {
|
|
1260
|
-
[x: string]: unknown;
|
|
1261
|
-
}) => any) | undefined;
|
|
1262
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1263
|
-
$attrs: Attrs;
|
|
1264
|
-
$refs: {
|
|
1265
|
-
[x: string]: unknown;
|
|
1266
|
-
} & {
|
|
1267
|
-
formKitRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1268
|
-
type?: string;
|
|
1269
|
-
name?: string;
|
|
1270
|
-
actions?: boolean;
|
|
1271
|
-
formClass?: string;
|
|
1272
|
-
disabled?: boolean;
|
|
1273
|
-
modelValue?: {
|
|
1274
|
-
[x: string]: unknown;
|
|
1275
|
-
};
|
|
1276
|
-
'onUpdate:modelValue'?: (value: {
|
|
1277
|
-
[x: string]: unknown;
|
|
1278
|
-
}) => void;
|
|
1279
|
-
onSubmit?: (formData: {
|
|
1280
|
-
[x: string]: unknown;
|
|
1281
|
-
}) => void;
|
|
1282
|
-
}>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1283
|
-
P: {};
|
|
1284
|
-
B: {};
|
|
1285
|
-
D: {};
|
|
1286
|
-
C: {};
|
|
1287
|
-
M: {};
|
|
1288
|
-
Defaults: {};
|
|
1289
|
-
}, Readonly<{
|
|
1290
|
-
type?: string;
|
|
1291
|
-
name?: string;
|
|
1292
|
-
actions?: boolean;
|
|
1293
|
-
formClass?: string;
|
|
1294
|
-
disabled?: boolean;
|
|
1295
|
-
modelValue?: {
|
|
1296
|
-
[x: string]: unknown;
|
|
1297
|
-
};
|
|
1298
|
-
'onUpdate:modelValue'?: (value: {
|
|
1299
|
-
[x: string]: unknown;
|
|
1300
|
-
}) => void;
|
|
1301
|
-
onSubmit?: (formData: {
|
|
1302
|
-
[x: string]: unknown;
|
|
1303
|
-
}) => void;
|
|
1304
|
-
}>, {}, {}, ComputedOptions, MethodOptions, {}> | null;
|
|
1305
|
-
};
|
|
1306
|
-
$slots: Readonly<{
|
|
1307
|
-
[name: string]: Slot<any> | undefined;
|
|
1308
|
-
}>;
|
|
1309
|
-
$root: ComponentPublicInstance | null;
|
|
1310
|
-
$parent: ComponentPublicInstance | null;
|
|
1311
|
-
$host: Element | null;
|
|
1312
|
-
$emit: ((event: "submit", formData: {
|
|
1313
|
-
[x: string]: unknown;
|
|
1314
|
-
}, id: string | undefined, version: number | undefined) => void) & ((event: "update:modelValue", value: {
|
|
1315
|
-
[x: string]: unknown;
|
|
1316
|
-
}) => void);
|
|
1317
|
-
$el: any;
|
|
1318
|
-
$options: ComponentOptionsBase<Readonly<{
|
|
1319
|
-
definition?: FormDefinition;
|
|
1320
|
-
schema?: FormKitSchemaFormKit[];
|
|
1321
|
-
dataStructure?: "flat" | "nested";
|
|
1322
|
-
modelValue?: {
|
|
1323
|
-
[x: string]: unknown;
|
|
1324
|
-
};
|
|
1325
|
-
actions?: boolean;
|
|
1326
|
-
submitLabel?: string;
|
|
1327
|
-
resetLabel?: string;
|
|
1328
|
-
submitAttrs?: Record<string, unknown>;
|
|
1329
|
-
resetAttrs?: Record<string, unknown>;
|
|
1330
|
-
actionsJustify?: "start" | "center" | "end" | "space-between";
|
|
1331
|
-
formClass?: string;
|
|
1332
|
-
formName?: string;
|
|
1333
|
-
labelPosition?: "top" | "left";
|
|
1334
|
-
labelWidth?: number;
|
|
1335
|
-
schemaLibrary?: Record<string, Component>;
|
|
1336
|
-
interactiveContainers?: boolean;
|
|
1337
|
-
config?: FormBuilderConfig;
|
|
1338
|
-
theme?: BuilderTheme;
|
|
1339
|
-
http?: AxiosInstance;
|
|
1340
|
-
disabled?: boolean;
|
|
1341
|
-
} & Omit<Partial<Partial<ExtractPropTypes< {
|
|
1342
|
-
readonly abstract: BooleanConstructor;
|
|
1343
|
-
readonly bordered: {
|
|
1344
|
-
readonly type: PropType<boolean | undefined>;
|
|
1345
|
-
readonly default: undefined;
|
|
1346
|
-
};
|
|
1347
|
-
readonly clsPrefix: StringConstructor;
|
|
1348
|
-
readonly locale: PropType<NLocale | null>;
|
|
1349
|
-
readonly dateLocale: PropType<NDateLocale | null>;
|
|
1350
|
-
readonly namespace: StringConstructor;
|
|
1351
|
-
readonly rtl: PropType<RtlProp>;
|
|
1352
|
-
readonly tag: {
|
|
1353
|
-
readonly type: StringConstructor;
|
|
1354
|
-
readonly default: "div";
|
|
1355
|
-
};
|
|
1356
|
-
readonly hljs: PropType<Hljs>;
|
|
1357
|
-
readonly katex: PropType<Katex>;
|
|
1358
|
-
readonly theme: PropType<GlobalTheme | null>;
|
|
1359
|
-
readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
|
|
1360
|
-
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
1361
|
-
readonly icons: PropType<GlobalIconConfig>;
|
|
1362
|
-
readonly breakpoints: PropType<Breakpoints>;
|
|
1363
|
-
readonly preflightStyleDisabled: BooleanConstructor;
|
|
1364
|
-
readonly styleMountTarget: PropType<ParentNode | null>;
|
|
1365
|
-
readonly inlineThemeDisabled: {
|
|
1366
|
-
readonly type: BooleanConstructor;
|
|
1367
|
-
readonly default: undefined;
|
|
1368
|
-
};
|
|
1369
|
-
readonly as: {
|
|
1370
|
-
readonly type: PropType<string | undefined>;
|
|
1371
|
-
readonly validator: () => boolean;
|
|
1372
|
-
readonly default: undefined;
|
|
1373
|
-
};
|
|
1374
|
-
}>>>, "theme">> & Readonly<{
|
|
1375
|
-
onSubmit?: ((formData: {
|
|
1376
|
-
[x: string]: unknown;
|
|
1377
|
-
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
1378
|
-
"onUpdate:modelValue"?: ((value: {
|
|
1379
|
-
[x: string]: unknown;
|
|
1380
|
-
}) => any) | undefined;
|
|
1381
|
-
}>, {
|
|
1382
|
-
submit: () => void | undefined;
|
|
1383
|
-
reset: () => void | undefined;
|
|
1384
|
-
validate: () => Promise<boolean>;
|
|
1385
|
-
loading: Ref<boolean, boolean>;
|
|
1386
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1387
|
-
submit: (formData: {
|
|
1388
|
-
[x: string]: unknown;
|
|
1389
|
-
}, id: string | undefined, version: number | undefined) => any;
|
|
1390
|
-
"update:modelValue": (value: {
|
|
1391
|
-
[x: string]: unknown;
|
|
1392
|
-
}) => any;
|
|
1393
|
-
}, string, {
|
|
1394
|
-
disabled: boolean;
|
|
1395
|
-
actions: boolean;
|
|
1396
|
-
formClass: string;
|
|
1397
|
-
dataStructure: "flat" | "nested";
|
|
1398
|
-
actionsJustify: "start" | "center" | "end" | "space-between";
|
|
1399
|
-
interactiveContainers: boolean;
|
|
1400
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1401
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
1402
|
-
created?: (() => void) | (() => void)[];
|
|
1403
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
1404
|
-
mounted?: (() => void) | (() => void)[];
|
|
1405
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
1406
|
-
updated?: (() => void) | (() => void)[];
|
|
1407
|
-
activated?: (() => void) | (() => void)[];
|
|
1408
|
-
deactivated?: (() => void) | (() => void)[];
|
|
1409
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
1410
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
1411
|
-
destroyed?: (() => void) | (() => void)[];
|
|
1412
|
-
unmounted?: (() => void) | (() => void)[];
|
|
1413
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1414
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1415
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1416
|
-
};
|
|
1417
|
-
$forceUpdate: () => void;
|
|
1418
|
-
$nextTick: typeof nextTick;
|
|
1419
|
-
$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;
|
|
1420
|
-
} & Readonly<{
|
|
1421
|
-
disabled: boolean;
|
|
1422
|
-
actions: boolean;
|
|
1423
|
-
formClass: string;
|
|
1424
|
-
dataStructure: "flat" | "nested";
|
|
1425
|
-
actionsJustify: "start" | "center" | "end" | "space-between";
|
|
1426
|
-
interactiveContainers: boolean;
|
|
1427
|
-
}> & Omit<Readonly<{
|
|
1428
|
-
definition?: FormDefinition;
|
|
1429
|
-
schema?: FormKitSchemaFormKit[];
|
|
1430
|
-
dataStructure?: "flat" | "nested";
|
|
1431
|
-
modelValue?: {
|
|
1432
|
-
[x: string]: unknown;
|
|
1433
|
-
};
|
|
1434
|
-
actions?: boolean;
|
|
1435
|
-
submitLabel?: string;
|
|
1436
|
-
resetLabel?: string;
|
|
1437
|
-
submitAttrs?: Record<string, unknown>;
|
|
1438
|
-
resetAttrs?: Record<string, unknown>;
|
|
1439
|
-
actionsJustify?: "start" | "center" | "end" | "space-between";
|
|
1440
|
-
formClass?: string;
|
|
1441
|
-
formName?: string;
|
|
1442
|
-
labelPosition?: "top" | "left";
|
|
1443
|
-
labelWidth?: number;
|
|
1444
|
-
schemaLibrary?: Record<string, Component>;
|
|
1445
|
-
interactiveContainers?: boolean;
|
|
1446
|
-
config?: FormBuilderConfig;
|
|
1447
|
-
theme?: BuilderTheme;
|
|
1448
|
-
http?: AxiosInstance;
|
|
1449
|
-
disabled?: boolean;
|
|
1450
|
-
} & Omit<Partial<Partial<ExtractPropTypes< {
|
|
1451
|
-
readonly abstract: BooleanConstructor;
|
|
1452
|
-
readonly bordered: {
|
|
1453
|
-
readonly type: PropType<boolean | undefined>;
|
|
1454
|
-
readonly default: undefined;
|
|
1455
|
-
};
|
|
1456
|
-
readonly clsPrefix: StringConstructor;
|
|
1457
|
-
readonly locale: PropType<NLocale | null>;
|
|
1458
|
-
readonly dateLocale: PropType<NDateLocale | null>;
|
|
1459
|
-
readonly namespace: StringConstructor;
|
|
1460
|
-
readonly rtl: PropType<RtlProp>;
|
|
1461
|
-
readonly tag: {
|
|
1462
|
-
readonly type: StringConstructor;
|
|
1463
|
-
readonly default: "div";
|
|
1464
|
-
};
|
|
1465
|
-
readonly hljs: PropType<Hljs>;
|
|
1466
|
-
readonly katex: PropType<Katex>;
|
|
1467
|
-
readonly theme: PropType<GlobalTheme | null>;
|
|
1468
|
-
readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
|
|
1469
|
-
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
1470
|
-
readonly icons: PropType<GlobalIconConfig>;
|
|
1471
|
-
readonly breakpoints: PropType<Breakpoints>;
|
|
1472
|
-
readonly preflightStyleDisabled: BooleanConstructor;
|
|
1473
|
-
readonly styleMountTarget: PropType<ParentNode | null>;
|
|
1474
|
-
readonly inlineThemeDisabled: {
|
|
1475
|
-
readonly type: BooleanConstructor;
|
|
1476
|
-
readonly default: undefined;
|
|
1477
|
-
};
|
|
1478
|
-
readonly as: {
|
|
1479
|
-
readonly type: PropType<string | undefined>;
|
|
1480
|
-
readonly validator: () => boolean;
|
|
1481
|
-
readonly default: undefined;
|
|
1482
|
-
};
|
|
1483
|
-
}>>>, "theme">> & Readonly<{
|
|
1484
|
-
onSubmit?: ((formData: {
|
|
1485
|
-
[x: string]: unknown;
|
|
1486
|
-
}, id: string | undefined, version: number | undefined) => any) | undefined;
|
|
1487
|
-
"onUpdate:modelValue"?: ((value: {
|
|
1488
|
-
[x: string]: unknown;
|
|
1489
|
-
}) => any) | undefined;
|
|
1490
|
-
}>, "submit" | "reset" | "loading" | "validate" | ("disabled" | "actions" | "formClass" | "dataStructure" | "actionsJustify" | "interactiveContainers")> & {
|
|
1491
|
-
submit: () => void | undefined;
|
|
1492
|
-
reset: () => void | undefined;
|
|
1493
|
-
validate: () => Promise<boolean>;
|
|
1494
|
-
loading: boolean;
|
|
1495
|
-
} & {} & ComponentCustomProperties & {} & {
|
|
1496
|
-
$slots: Readonly<{
|
|
1497
|
-
actions?: (props: FormActionsScope) => unknown;
|
|
1498
|
-
}> & {
|
|
1499
|
-
actions?: (props: FormActionsScope) => unknown;
|
|
1500
|
-
};
|
|
1501
|
-
}) | null;
|
|
1502
|
-
}, any>;
|
|
621
|
+
export declare const FormDefinitionPreview: typeof __VLS_export_4;
|
|
1503
622
|
|
|
1504
623
|
declare interface FormDefinitionState {
|
|
1505
|
-
formDefinition:
|
|
624
|
+
formDefinition: ShallowRef<FormDefinition>;
|
|
1506
625
|
formSchema: ComputedRef<FormKitSchemaFormKit[]>;
|
|
626
|
+
/** 本实例的增量转换投影(按节点身份缓存)。commitSchemaReconcile 的基线投影
|
|
627
|
+
* 复用同一个 projector 才能命中缓存,因此随实例状态一并暴露,不要再改调
|
|
628
|
+
* 公开的 dslToSchema(那是无缓存的纯函数,每次都会重新转换整棵树)。 */
|
|
629
|
+
schemaProjector: ReturnType<typeof createSchemaProjector>;
|
|
1507
630
|
commitSchemaChildren: (children: FormKitSchemaFormKit[], source?: Pick<FormDefinition, 'name' | 'settings'>) => FormDefinition;
|
|
1508
631
|
}
|
|
1509
632
|
|
|
1510
|
-
declare type FormEvent =
|
|
633
|
+
declare type FormEvent = (typeof FORM_EVENTS)[number];
|
|
1511
634
|
|
|
1512
|
-
export declare function formkitConfig(elements?: RegisterElementInput[]): Partial<Omit<FormKitContext, "children" | "config" | "plugins" | "hook"> & {
|
|
1513
|
-
config: Partial<FormKitConfig>;
|
|
1514
|
-
props: Partial<FormKitProps>;
|
|
1515
|
-
children: FormKitNode[] | Set<FormKitNode>;
|
|
635
|
+
export declare function formkitConfig(elements?: RegisterElementInput[]): Partial<Omit< FormKitContext, "children" | "config" | "plugins" | "hook"> & {
|
|
636
|
+
config: Partial< FormKitConfig>;
|
|
637
|
+
props: Partial< FormKitProps>;
|
|
638
|
+
children: FormKitNode[] | Set< FormKitNode>;
|
|
1516
639
|
index?: number;
|
|
1517
640
|
sync: boolean;
|
|
1518
641
|
plugins: FormKitPlugin[];
|
|
@@ -1520,43 +643,39 @@ export declare function formkitConfig(elements?: RegisterElementInput[]): Partia
|
|
|
1520
643
|
schemaAlias: string;
|
|
1521
644
|
}>;
|
|
1522
645
|
|
|
1523
|
-
declare type FormKitEvent = 'change' | 'input' | 'blur' | 'focus';
|
|
1524
|
-
|
|
1525
|
-
declare type FormKitTypedProps = {
|
|
1526
|
-
type?: string;
|
|
1527
|
-
name?: string;
|
|
1528
|
-
actions?: boolean;
|
|
1529
|
-
formClass?: string;
|
|
1530
|
-
disabled?: boolean;
|
|
1531
|
-
modelValue?: ModelValue_3;
|
|
1532
|
-
'onUpdate:modelValue'?: (value: ModelValue_3) => void;
|
|
1533
|
-
onSubmit?: (formData: ModelValue_3) => void;
|
|
1534
|
-
};
|
|
1535
|
-
|
|
1536
646
|
export declare type FormNode = FieldNode | ContainerNode | LayoutNode | StaticNode;
|
|
1537
647
|
|
|
648
|
+
export declare const FormRenderer: typeof __VLS_export_6;
|
|
649
|
+
|
|
1538
650
|
export declare interface FormSettings {
|
|
1539
|
-
|
|
1540
|
-
layout: 'vertical' | 'horizontal' | 'inline';
|
|
651
|
+
labelAlign?: 'top' | 'left';
|
|
1541
652
|
labelWidth?: number;
|
|
1542
|
-
labelAlign?: 'left' | 'right' | 'top';
|
|
1543
|
-
/** 根栅格列数(默认 12) */
|
|
1544
|
-
columns?: number;
|
|
1545
|
-
fullWidth?: boolean;
|
|
1546
653
|
submit?: string;
|
|
654
|
+
/** 统一控件尺寸:字段自身未设置 size 时继承(见 use-schema-attrs.ts 的渲染层默认值) */
|
|
655
|
+
size?: 'small' | 'medium' | 'large';
|
|
656
|
+
/** 整表禁用:级联到每个字段(FormKit 表单级 disabled 天然级联) */
|
|
657
|
+
disabled?: boolean;
|
|
658
|
+
/** 整表只读:原生支持 readonly 的字段真只读,其余组件没有只读语义时退化为禁用 */
|
|
659
|
+
readonly?: boolean;
|
|
660
|
+
/** 提交成功后的提示文案(naive-ui message),为空则不提示 */
|
|
661
|
+
successMessage?: string;
|
|
662
|
+
/** 提交成功后跳转的地址:仅允许 http/https 绝对地址或以 / 开头的站内路径 */
|
|
663
|
+
successRedirect?: string;
|
|
664
|
+
/** 是否显示重置按钮(默认 true) */
|
|
665
|
+
showReset?: boolean;
|
|
666
|
+
submitText?: string;
|
|
667
|
+
resetText?: string;
|
|
1547
668
|
}
|
|
1548
669
|
|
|
1549
670
|
/** 取元素 $cmp 渲染名(统一为 type;兼容旧 libraryName) */
|
|
1550
671
|
export declare function getElementCmpName(type: string): string;
|
|
1551
672
|
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
render(node: FormNode, ctx?: Partial<RenderContext<T>>): T;
|
|
1559
|
-
renderForm(form: FormDefinition): any;
|
|
673
|
+
declare interface HistoryEntry {
|
|
674
|
+
def: DefSnapshot;
|
|
675
|
+
/** 产生这一步状态的提交 reason;初始状态 / 外部 setFormDefinition 时为 undefined,
|
|
676
|
+
* 面板侧统一归为「修改」。 */
|
|
677
|
+
reason?: string;
|
|
678
|
+
at: number;
|
|
1560
679
|
}
|
|
1561
680
|
|
|
1562
681
|
export declare interface LayoutNode extends BaseNode {
|
|
@@ -1565,10 +684,11 @@ export declare interface LayoutNode extends BaseNode {
|
|
|
1565
684
|
children: FormNode[];
|
|
1566
685
|
}
|
|
1567
686
|
|
|
1568
|
-
declare type LayoutRenderer<T> = (node: LayoutNode, ctx: RenderContext<T>, children?: T[]) => T;
|
|
1569
|
-
|
|
1570
687
|
export declare type LayoutType = 'grid' | 'row' | 'column' | 'card' | 'tabs' | 'tabsPane' | 'steps' | 'stepsPane';
|
|
1571
688
|
|
|
689
|
+
/** 语言 → IANA 时区。en 故意不映射(英语无单一时区),回落浏览器本地时区 */
|
|
690
|
+
export declare const LOCALE_TIME_ZONES: Record<string, string>;
|
|
691
|
+
|
|
1572
692
|
declare type ModelValue = Record<string, unknown>;
|
|
1573
693
|
|
|
1574
694
|
declare type ModelValue_2 = Record<string, unknown>;
|
|
@@ -1585,6 +705,10 @@ declare interface OptionItem {
|
|
|
1585
705
|
[key: string]: unknown;
|
|
1586
706
|
}
|
|
1587
707
|
|
|
708
|
+
/** 并行预加载一批元素类型;不是按需类型(始终静态加载)的直接忽略。
|
|
709
|
+
* loader 结果按类型缓存(loadOnce),重复调用同一类型不会重复发起网络请求。 */
|
|
710
|
+
export declare function preloadElementComponents(types: string[]): Promise<void>;
|
|
711
|
+
|
|
1588
712
|
export declare function provideFormBuilderConfig(config: FormBuilderConfig): void;
|
|
1589
713
|
|
|
1590
714
|
/** 为当前组件子树提供 FormBuilder 状态。 */
|
|
@@ -1610,23 +734,19 @@ export declare interface RegisterElementInput extends Omit<ElementCatalogEntry,
|
|
|
1610
734
|
|
|
1611
735
|
export declare function registerElements(inputs: RegisterElementInput[] | undefined): void;
|
|
1612
736
|
|
|
1613
|
-
export declare interface RenderContext<T = any> {
|
|
1614
|
-
form: FormDefinition;
|
|
1615
|
-
engine: IRendererEngine<T>;
|
|
1616
|
-
render(node: FormNode): T;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
export declare interface RendererPlugin<T = any> {
|
|
1620
|
-
name: string;
|
|
1621
|
-
install(engine: IRendererEngine<T>): void;
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
737
|
export declare type RenderKind = 'formkit' | 'cmp' | 'el';
|
|
1625
738
|
|
|
739
|
+
/** locale → 时区:精确匹配 → 按语言前缀匹配('zh' / 'zh-SG' → 首个以 'zh' 开头的 key)→ undefined */
|
|
740
|
+
export declare function resolveTimeZoneForLocale(locale?: string): string | undefined;
|
|
741
|
+
|
|
1626
742
|
/** 历史漏斗返回值(commit/undo/redo + 外部应用)。 */
|
|
1627
743
|
declare interface SchemaHistory {
|
|
1628
744
|
canUndo: ComputedRef<boolean>;
|
|
1629
745
|
canRedo: ComputedRef<boolean>;
|
|
746
|
+
/** E2:完整历史,从旧到新,含当前这一步——历史面板据此渲染列表。 */
|
|
747
|
+
historyEntries: ComputedRef<HistoryEntry[]>;
|
|
748
|
+
/** historyEntries 中「当前」这一步的下标(即 past 的长度)。 */
|
|
749
|
+
currentHistoryIndex: ComputedRef<number>;
|
|
1630
750
|
commitFormDefinition: (nextDef: DefSnapshot, options?: {
|
|
1631
751
|
reason?: string;
|
|
1632
752
|
merge?: boolean;
|
|
@@ -1643,6 +763,9 @@ declare interface SchemaHistory {
|
|
|
1643
763
|
}) => void;
|
|
1644
764
|
undo: () => void;
|
|
1645
765
|
redo: () => void;
|
|
766
|
+
/** E2:一次性跳到 historyEntries 里的某一步,等价于连续多次 undo/redo
|
|
767
|
+
* (future 正确保留)。index 越界或就是当前步时忽略。 */
|
|
768
|
+
jumpTo: (index: number) => void;
|
|
1646
769
|
resetHistory: () => void;
|
|
1647
770
|
/** 外部应用(如 v-model 预载 / 父级替换表单):直接落真源、不推历史。
|
|
1648
771
|
* 默认重置内部 undo 栈(父级权威),可传 { resetHistory: false } 保留。 */
|
|
@@ -1653,7 +776,41 @@ declare interface SchemaHistory {
|
|
|
1653
776
|
|
|
1654
777
|
declare type SchemaNode = FormKitSchemaFormKit & Record<string, unknown>;
|
|
1655
778
|
|
|
1656
|
-
declare type SchemaNode_2 = FormKitSchemaFormKit &
|
|
779
|
+
declare type SchemaNode_2 = FormKitSchemaFormKit & {
|
|
780
|
+
/** $cmp 组件节点的组件名(与 $formkit / $el 三选一,见 dsl/convert/shared.ts 的 inferRenderTarget) */
|
|
781
|
+
$cmp?: string;
|
|
782
|
+
/** $el 原生标签节点的标签名 */
|
|
783
|
+
$el?: string;
|
|
784
|
+
/** DnD 身份键:贯穿插入 / 移动 / 提交,用来识别“同一节点” */
|
|
785
|
+
__key?: string;
|
|
786
|
+
/** 事件绑定:fromSchema/toSchema 收敛后的唯一真源(见 dsl/events.ts) */
|
|
787
|
+
__bind?: string;
|
|
788
|
+
name?: string;
|
|
789
|
+
label?: string;
|
|
790
|
+
id?: string;
|
|
791
|
+
/** 表达式类静态节点承载的原始表达式文本 */
|
|
792
|
+
expr?: string;
|
|
793
|
+
props?: SchemaNodeProps;
|
|
794
|
+
attrs?: Record<string, unknown> & {
|
|
795
|
+
class?: string;
|
|
796
|
+
};
|
|
797
|
+
/** 外框类:容器 / 字段宽度(col-span-N)、行高(row-span-N)等信息落在这里 */
|
|
798
|
+
outerClass?: string;
|
|
799
|
+
validation?: unknown;
|
|
800
|
+
options?: unknown;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
/** $cmp / 容器节点的 props:身份键(keyProp,如 __listKey)、modelValue 等按容器规格
|
|
804
|
+
* 动态挂载,键名不固定,仍需兜底索引签名;这里把代码里常读写的几个键显式列出来。 */
|
|
805
|
+
declare interface SchemaNodeProps {
|
|
806
|
+
name?: string;
|
|
807
|
+
id?: string;
|
|
808
|
+
outerClass?: string;
|
|
809
|
+
disabled?: boolean;
|
|
810
|
+
modelValue?: unknown;
|
|
811
|
+
showActions?: boolean;
|
|
812
|
+
[key: string]: unknown;
|
|
813
|
+
}
|
|
1657
814
|
|
|
1658
815
|
export declare function schemaToDsl(schema: FormKitSchemaFormKit[], options?: SchemaToDslOptions): FormDefinition;
|
|
1659
816
|
|
|
@@ -1666,6 +823,16 @@ declare interface SelectionState {
|
|
|
1666
823
|
selectedIndex: Ref<number>;
|
|
1667
824
|
selectedKey: Ref<string | null>;
|
|
1668
825
|
selectedTarget: Ref<'field' | 'form'>;
|
|
826
|
+
/** D1:多选的 key 列表。单选时恒等于 [selectedKey](null 时为 []),由下面的
|
|
827
|
+
* watcher 跟随 selectedKey 自动同步;真正的多选(长度 > 1)只能经 setMultiSelection
|
|
828
|
+
* 写入(use-canvas-commands.ts 的 selectItem/selectAllRoot 用它)。旧代码路径
|
|
829
|
+
* (各容器的 onSelect、use-canvas-schema.ts 的 selectByKey 等)完全不需要知道
|
|
830
|
+
* 这个字段的存在——它们照常只改 selectedKey,多选状态会自动折叠回单选。 */
|
|
831
|
+
selectedKeys: Ref<string[]>;
|
|
832
|
+
/** D1:原子写入多选(keys + 最后点击的锚点 key,同步生效、不触发下面把 selectedKeys
|
|
833
|
+
* 折叠回 [anchorKey] 的自动同步)。多选逻辑一律经这里写,不要直接改
|
|
834
|
+
* selectedKeys.value——否则会被下面的 watcher 按"单选"语义立即覆盖。 */
|
|
835
|
+
setMultiSelection: (keys: string[], anchorKey: string | null) => void;
|
|
1669
836
|
/** 数据表格选中列下标(null = 未选中列;配合 selectedKey 定位所属数据表格节点) */
|
|
1670
837
|
selectedColumnIndex: Ref<number | null>;
|
|
1671
838
|
/** 元素属性编辑目标覆盖:列元素等非树节点复用标准字段编辑器时指向的工作节点 */
|
|
@@ -1674,6 +841,9 @@ declare interface SelectionState {
|
|
|
1674
841
|
elementEditCommit: Ref<((node: FormNode) => void) | null>;
|
|
1675
842
|
}
|
|
1676
843
|
|
|
844
|
+
/** 设置表达式求值使用的语言(模块级状态,见文件头限制说明) */
|
|
845
|
+
export declare function setExprLocale(locale: string): void;
|
|
846
|
+
|
|
1677
847
|
export declare function setGlobalFormBuilderConfig(config?: FormBuilderConfig): void;
|
|
1678
848
|
|
|
1679
849
|
export declare interface StaticNode extends BaseNode {
|
|
@@ -1684,10 +854,12 @@ export declare interface StaticNode extends BaseNode {
|
|
|
1684
854
|
src?: string;
|
|
1685
855
|
}
|
|
1686
856
|
|
|
1687
|
-
export declare type StaticRenderer<T> = (node: StaticNode, ctx: RenderContext<T>, children?: T[]) => T;
|
|
1688
|
-
|
|
1689
857
|
declare type StaticValue = any;
|
|
1690
858
|
|
|
859
|
+
/** 去掉仅前端使用的字段(BaseNode.key / meta.rawSchema),得到可安全交给后端
|
|
860
|
+
* 持久化 / 反序列化的表单定义。深拷贝后剥离,不改动传入对象,也不改动其他任何字段。 */
|
|
861
|
+
export declare function toPortableDefinition(def: FormDefinition): FormDefinition;
|
|
862
|
+
|
|
1691
863
|
/** 树型字典定义(分页搜索返回的一行) */
|
|
1692
864
|
declare interface TreeDictionaryDefinition {
|
|
1693
865
|
value: string;
|
|
@@ -1702,6 +874,7 @@ declare interface TreeDictionaryOption {
|
|
|
1702
874
|
disabled?: boolean;
|
|
1703
875
|
}
|
|
1704
876
|
|
|
877
|
+
/** @public 分页树型字典查询参数:FormBuilderConfig.fetchTreeDictionaryPage 的入参形状,理由同 DictionaryPageQuery */
|
|
1705
878
|
declare interface TreeDictionaryPageQuery {
|
|
1706
879
|
/** 按 code 模糊过滤 */
|
|
1707
880
|
value?: string;
|
|
@@ -1711,6 +884,7 @@ declare interface TreeDictionaryPageQuery {
|
|
|
1711
884
|
pageSize: number;
|
|
1712
885
|
}
|
|
1713
886
|
|
|
887
|
+
/** @public 分页树型字典查询结果:FormBuilderConfig.fetchTreeDictionaryPage 的返回形状,理由同 DictionaryPageQuery */
|
|
1714
888
|
declare interface TreeDictionaryPageResult {
|
|
1715
889
|
pageNum: number;
|
|
1716
890
|
pageSize: number;
|
|
@@ -1720,9 +894,18 @@ declare interface TreeDictionaryPageResult {
|
|
|
1720
894
|
|
|
1721
895
|
export declare function useFormBuilderConfig(): FormBuilderConfig;
|
|
1722
896
|
|
|
1723
|
-
/** 读取所在 FormBuilder
|
|
897
|
+
/** 读取所在 FormBuilder 实例的完整状态(含 undo/redo/选中/画布交互);子树外调用
|
|
898
|
+
* 直接报错(不再回落全局单例)。FormRenderer 子树不提供这份状态——它是只读渲染
|
|
899
|
+
* 场景,用不到设计器专属的写操作,改读窄得多的 useFormDefinition()(见
|
|
900
|
+
* src/composables/use-form-definition.ts)。多实例场景下,静默写进一个谁也看不见
|
|
901
|
+
* 的全局实例比报错更难排查——找不到上下文时宁可让调用方立刻看到问题,也不要悄悄
|
|
902
|
+
* 改错状态。独立使用的组件请改用 useOptionalFormBuilderState()。 */
|
|
1724
903
|
export declare function useFormBuilderState(): FormBuilderState;
|
|
1725
904
|
|
|
905
|
+
/** 可选读取:可脱离 FormBuilder 独立使用的组件(如 BuilderPreview 传 schema prop)用它,
|
|
906
|
+
* 子树外返回 null,由调用方自行决定回落逻辑。 */
|
|
907
|
+
export declare function useOptionalFormBuilderState(): FormBuilderState | null;
|
|
908
|
+
|
|
1726
909
|
declare interface ValidationRule {
|
|
1727
910
|
rule: string;
|
|
1728
911
|
args?: StaticValue[];
|