@zeng-alt/formkit-form-builder 1.3.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 +7916 -42625
- package/dist/builder.es.js.map +1 -0
- package/dist/builder.umd.js +61 -90
- 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 +244 -1079
- package/dist/renderer.d.ts +632 -0
- package/dist/renderer.es.js +6 -0
- package/dist/renderer.umd.js +34 -0
- package/package.json +39 -24
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { h as e, i as t } from "./FormRenderer-BwykpB3h.js";
|
|
2
|
+
import { n } from "./use-config-DTr8dhzM.js";
|
|
3
|
+
import { defaultConfig as r, plugin as i } from "@formkit/vue";
|
|
4
|
+
import { createI18nPlugin as a, en as o, zh as s } from "@formkit/i18n";
|
|
5
|
+
//#region src/dsl/portable.ts
|
|
6
|
+
function c(e) {
|
|
7
|
+
try {
|
|
8
|
+
return structuredClone(e);
|
|
9
|
+
} catch {
|
|
10
|
+
return JSON.parse(JSON.stringify(e));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function l(e) {
|
|
14
|
+
delete e.key, e.meta && (delete e.meta.rawSchema, Object.keys(e.meta).length === 0 && delete e.meta);
|
|
15
|
+
let t = e.children;
|
|
16
|
+
Array.isArray(t) && t.forEach(l);
|
|
17
|
+
}
|
|
18
|
+
function u(e) {
|
|
19
|
+
let t = c(e);
|
|
20
|
+
return l(t.root), t;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/formkit.theme.ts
|
|
24
|
+
function d(e, t) {
|
|
25
|
+
let n = `formkit-${e}`, r = t.props.family ? `family:${t.props.family}__${e}` : "", i = t.props.$formkit || t.props.type;
|
|
26
|
+
if (t.props.family === "naive") return e === "outer" || e === "wrapper" ? {
|
|
27
|
+
[n]: !0,
|
|
28
|
+
"w-full": !0
|
|
29
|
+
} : e === "inner" ? {
|
|
30
|
+
[n]: !0,
|
|
31
|
+
"w-full": !0,
|
|
32
|
+
"!p-0": !0,
|
|
33
|
+
"!border-none": !0,
|
|
34
|
+
"!bg-transparent": !0,
|
|
35
|
+
"!shadow-none": !0
|
|
36
|
+
} : e === "input" ? {
|
|
37
|
+
[n]: !0,
|
|
38
|
+
"w-full": !0,
|
|
39
|
+
"!p-0": !0,
|
|
40
|
+
"!border-none": !0,
|
|
41
|
+
"!bg-transparent": !0
|
|
42
|
+
} : e === "label" ? i === "submit" || i === "reset" || i === "naiveButton" ? {
|
|
43
|
+
[n]: !0,
|
|
44
|
+
hidden: !0
|
|
45
|
+
} : {
|
|
46
|
+
[n]: !0,
|
|
47
|
+
block: !0,
|
|
48
|
+
"!text-xs": !0,
|
|
49
|
+
"!font-bold": !0,
|
|
50
|
+
"mb-1": !0,
|
|
51
|
+
"text-neutral-700": !0,
|
|
52
|
+
"dark:text-zinc-300": !0
|
|
53
|
+
} : e === "help" ? i === "submit" || i === "reset" || i === "naiveButton" ? {
|
|
54
|
+
[n]: !0,
|
|
55
|
+
hidden: !0
|
|
56
|
+
} : {
|
|
57
|
+
[n]: !0,
|
|
58
|
+
"text-[11px]": !0,
|
|
59
|
+
"text-neutral-500": !0,
|
|
60
|
+
"font-normal": !0,
|
|
61
|
+
"mt-0.5": !0,
|
|
62
|
+
"dark:text-zinc-400": !0
|
|
63
|
+
} : e === "messages" ? {
|
|
64
|
+
[n]: !0,
|
|
65
|
+
"mt-1": !0,
|
|
66
|
+
"space-y-0.5": !0,
|
|
67
|
+
"list-none": !0,
|
|
68
|
+
"mb-0": !0,
|
|
69
|
+
"p-0": !0
|
|
70
|
+
} : e === "message" ? {
|
|
71
|
+
[n]: !0,
|
|
72
|
+
"text-red-500": !0,
|
|
73
|
+
"text-[11px]": !0,
|
|
74
|
+
"[line-height:1.2]": !0,
|
|
75
|
+
"pl-1.5": !0,
|
|
76
|
+
relative: !0,
|
|
77
|
+
"before:content-['•']": !0,
|
|
78
|
+
"before:absolute": !0,
|
|
79
|
+
"before:left-0": !0,
|
|
80
|
+
"before:top-0": !0,
|
|
81
|
+
"dark:text-red-400": !0
|
|
82
|
+
} : e === "messageLink" ? {
|
|
83
|
+
[n]: !0,
|
|
84
|
+
"outline-none": !0,
|
|
85
|
+
"focus-visible:ring-2": !0,
|
|
86
|
+
"focus-visible:ring-offset-2": !0,
|
|
87
|
+
"focus-visible:ring-red-500": !0
|
|
88
|
+
} : { [n]: !0 };
|
|
89
|
+
let a = `${t.props.type}__${e}`;
|
|
90
|
+
if (e === "label" && (i === "submit" || i === "reset" || i === "naiveButton")) return {
|
|
91
|
+
[n]: !0,
|
|
92
|
+
hidden: !0
|
|
93
|
+
};
|
|
94
|
+
let o = `${a}__${r}`;
|
|
95
|
+
if (!(o in f)) {
|
|
96
|
+
let t = f[a] ?? p[e] ?? {};
|
|
97
|
+
t[n] = !0, r in f ? f[o] = {
|
|
98
|
+
...f[r],
|
|
99
|
+
...t
|
|
100
|
+
} : f[o] = t;
|
|
101
|
+
}
|
|
102
|
+
return f[o] ?? { [n]: !0 };
|
|
103
|
+
}
|
|
104
|
+
var f = {
|
|
105
|
+
form__form: { "group/form": !0 },
|
|
106
|
+
form__actions: { "": !0 },
|
|
107
|
+
form__summaryInner: {
|
|
108
|
+
"group/summary": !0,
|
|
109
|
+
border: !0,
|
|
110
|
+
"border-neutral-400": !0,
|
|
111
|
+
"bg-white": !0,
|
|
112
|
+
"rounded-xl": !0,
|
|
113
|
+
"py-1.5": !0,
|
|
114
|
+
"px-2.5": !0,
|
|
115
|
+
"shadow-md": !0,
|
|
116
|
+
"dark:bg-transparent": !0,
|
|
117
|
+
"dark:border-zinc-800": !0
|
|
118
|
+
},
|
|
119
|
+
form__summaryHeader: {
|
|
120
|
+
"text-base": !0,
|
|
121
|
+
"text-neutral-700": !0,
|
|
122
|
+
"font-bold": !0,
|
|
123
|
+
"mb-1.5": !0,
|
|
124
|
+
"dark:text-zinc-300": !0
|
|
125
|
+
},
|
|
126
|
+
form__messages: { "": !0 },
|
|
127
|
+
form__message: {
|
|
128
|
+
"text-red-600": !0,
|
|
129
|
+
"mb-1.5": !0,
|
|
130
|
+
"text-[11px]": !0,
|
|
131
|
+
"[line-height:1em]": !0,
|
|
132
|
+
"dark:text-red-400": !0,
|
|
133
|
+
"group-[]/summary:text-xs": !0
|
|
134
|
+
},
|
|
135
|
+
form__messageLink: {
|
|
136
|
+
"group-[]/summary:outline-none": !0,
|
|
137
|
+
"group-[]/summary:focus-visible:ring-2": !0,
|
|
138
|
+
"group-[]/summary:ring-green-600": !0
|
|
139
|
+
}
|
|
140
|
+
}, p = {
|
|
141
|
+
outer: {
|
|
142
|
+
group: !0,
|
|
143
|
+
"max-w-full": !0,
|
|
144
|
+
"min-w-full": !0,
|
|
145
|
+
grow: !0,
|
|
146
|
+
"mb-3.5": !0,
|
|
147
|
+
"data-[disabled]:select-none": !0,
|
|
148
|
+
"data-[disabled]:opacity-50": !0,
|
|
149
|
+
"text-sm": !0
|
|
150
|
+
},
|
|
151
|
+
label: {
|
|
152
|
+
"pointer-events-none": !0,
|
|
153
|
+
block: !0,
|
|
154
|
+
"text-neutral-700": !0,
|
|
155
|
+
"text-xs": !0,
|
|
156
|
+
"font-bold": !0,
|
|
157
|
+
"mb-0.5": !0,
|
|
158
|
+
"dark:text-zinc-300": !0
|
|
159
|
+
},
|
|
160
|
+
legend: {
|
|
161
|
+
block: !0,
|
|
162
|
+
"text-neutral-700": !0,
|
|
163
|
+
"text-xs": !0,
|
|
164
|
+
"font-bold": !0,
|
|
165
|
+
"dark:text-zinc-300": !0
|
|
166
|
+
},
|
|
167
|
+
input: {
|
|
168
|
+
"appearance-none": !0,
|
|
169
|
+
"[color-scheme:light]": !0,
|
|
170
|
+
"dark:[color-scheme:dark]": !0,
|
|
171
|
+
"selection:bg-green-100": !0,
|
|
172
|
+
"selection:text-neutral-700": !0,
|
|
173
|
+
"group-data-[has-overlay]:selection:!text-transparent": !0
|
|
174
|
+
},
|
|
175
|
+
prefixIcon: {
|
|
176
|
+
flex: !0,
|
|
177
|
+
"items-center": !0,
|
|
178
|
+
"-ml-0.5": !0,
|
|
179
|
+
"mr-1.5": !0,
|
|
180
|
+
"text-sm": !0,
|
|
181
|
+
"h-[1em]": !0,
|
|
182
|
+
"w-[1em]": !0,
|
|
183
|
+
"shrink-0": !0,
|
|
184
|
+
"[&>svg]:w-full": !0
|
|
185
|
+
},
|
|
186
|
+
suffixIcon: {
|
|
187
|
+
flex: !0,
|
|
188
|
+
"items-center": !0,
|
|
189
|
+
"-mr-0.5": !0,
|
|
190
|
+
"ml-1.5": !0,
|
|
191
|
+
"text-sm": !0,
|
|
192
|
+
"h-[1em]": !0,
|
|
193
|
+
"w-[1em]": !0,
|
|
194
|
+
"shrink-0": !0,
|
|
195
|
+
"[&>svg]:w-full": !0
|
|
196
|
+
},
|
|
197
|
+
loaderIcon: {
|
|
198
|
+
"animate-spin": !0,
|
|
199
|
+
flex: !0,
|
|
200
|
+
"items-center": !0,
|
|
201
|
+
"my-auto": !0,
|
|
202
|
+
"ml-1.5": !0,
|
|
203
|
+
"text-sm": !0,
|
|
204
|
+
"text-neutral-500": !0,
|
|
205
|
+
"h-[1em]": !0,
|
|
206
|
+
"w-[1em]": !0,
|
|
207
|
+
"shrink-0": !0,
|
|
208
|
+
"[&>svg]:w-full": !0
|
|
209
|
+
},
|
|
210
|
+
loadMoreInner: {
|
|
211
|
+
flex: !0,
|
|
212
|
+
"text-xs": !0,
|
|
213
|
+
"text-neutral-500": !0,
|
|
214
|
+
"p-1.5": !0,
|
|
215
|
+
"items-center": !0,
|
|
216
|
+
"justify-center": !0,
|
|
217
|
+
"[&>span]:mr-1.5": !0
|
|
218
|
+
},
|
|
219
|
+
help: {
|
|
220
|
+
"text-neutral-500": !0,
|
|
221
|
+
"text-[11px]": !0,
|
|
222
|
+
"[line-height:1em]": !0,
|
|
223
|
+
"dark:text-zinc-400": !0
|
|
224
|
+
},
|
|
225
|
+
message: {
|
|
226
|
+
"text-red-600": !0,
|
|
227
|
+
"mb-1.5": !0,
|
|
228
|
+
"text-[11px]": !0,
|
|
229
|
+
"[line-height:1em]": !0,
|
|
230
|
+
"dark:text-red-400": !0
|
|
231
|
+
},
|
|
232
|
+
overlay: {
|
|
233
|
+
"text-neutral-700": !0,
|
|
234
|
+
"dark:text-zinc-300": !0
|
|
235
|
+
},
|
|
236
|
+
overlayPlaceholder: {
|
|
237
|
+
"text-neutral-400": !0,
|
|
238
|
+
"dark:text-zinc-400/50": !0
|
|
239
|
+
},
|
|
240
|
+
overlayLiteral: {
|
|
241
|
+
"text-neutral-700": !0,
|
|
242
|
+
"dark:text-zinc-300": !0
|
|
243
|
+
},
|
|
244
|
+
overlayChar: {
|
|
245
|
+
"text-neutral-700": !0,
|
|
246
|
+
"dark:text-zinc-300": !0
|
|
247
|
+
},
|
|
248
|
+
overlayEnum: {
|
|
249
|
+
"text-neutral-700": !0,
|
|
250
|
+
"dark:text-zinc-300": !0
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/formkit.config.ts
|
|
255
|
+
function m(n) {
|
|
256
|
+
return t(n), r({
|
|
257
|
+
plugins: [a({
|
|
258
|
+
en: o,
|
|
259
|
+
zh: s
|
|
260
|
+
})],
|
|
261
|
+
locales: {
|
|
262
|
+
en: o,
|
|
263
|
+
zh: s
|
|
264
|
+
},
|
|
265
|
+
locale: "zh",
|
|
266
|
+
config: { rootClasses: d },
|
|
267
|
+
inputs: e()
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
m();
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/plugin/form-builder-plugin.ts
|
|
273
|
+
var h = { install(e, r) {
|
|
274
|
+
let a = r ?? {}, o = a.config?.elements;
|
|
275
|
+
t(o), n(a.config), a.installFormKit !== !1 && e.use(i, (a.formkitConfig ?? m)(o));
|
|
276
|
+
} };
|
|
277
|
+
//#endregion
|
|
278
|
+
export { m as n, u as r, h as t };
|
|
279
|
+
|
|
280
|
+
//# sourceMappingURL=form-builder-plugin-BCbiWZKT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-builder-plugin-BCbiWZKT.js","names":[],"sources":["../../src/dsl/portable.ts","../../src/formkit.theme.ts","../../src/formkit.config.ts","../../src/plugin/form-builder-plugin.ts"],"sourcesContent":["// ═══ 可移植 DSL:剥离前端专用字段 ═════════════════════════════════════════════\n// FormDefinition 里有两处字段是纯前端概念,对后端(如 Java)毫无意义:\n// - BaseNode.key:画布 DnD 身份标识(映射旧 schema 的 __key),用于拖拽排序 /\n// 选中定位,与表单数据、业务语义无关。\n// - meta.rawSchema:schemaToDsl 对未注册类型的无损兜底(见 schema-adapter.ts\n// 的 fallbackToNode),原样存了一份整个原始 schema 节点,只是为了保证前端渲染\n// 不崩,同样不该进后端存储。\n// 持久化到后端前先过 toPortableDefinition(),得到一份可以安全交给后端反序列化的\n// FormDefinition:其余字段(id / name / props / visibleIf / validation / events 等)\n// 原样保留,DSL 主体本身就是 JSON-safe 的。\n\nimport type { FormDefinition, FormNode } from '../types/dsl'\n\n// 深拷贝:与 FormRenderer.vue 的 safeClone 同款兜底(老 runtime 没有 structuredClone\n// 时退回 JSON 往返)。先整体深拷贝,后续原地删字段,不会碰到传入的原始对象。\nfunction deepClone<T>(value: T): T {\n try {\n return structuredClone(value)\n } catch {\n return JSON.parse(JSON.stringify(value)) as T\n }\n}\n\n// 原地递归剥离 key / meta.rawSchema:只在 deepClone 产出的私有副本上操作。\nfunction stripNodeInPlace(node: FormNode): void {\n delete (node as { key?: string }).key\n if (node.meta) {\n delete node.meta.rawSchema\n if (Object.keys(node.meta).length === 0) delete node.meta\n }\n const children = (node as { children?: FormNode[] }).children\n if (Array.isArray(children)) children.forEach(stripNodeInPlace)\n}\n\n/** 去掉仅前端使用的字段(BaseNode.key / meta.rawSchema),得到可安全交给后端\n * 持久化 / 反序列化的表单定义。深拷贝后剥离,不改动传入对象,也不改动其他任何字段。 */\nexport function toPortableDefinition(def: FormDefinition): FormDefinition {\n const next = deepClone(def)\n stripNodeInPlace(next.root)\n return next\n}\n","import type { FormKitNode } from '@formkit/core'\n\n/**\n * @privateRemarks\n * This theme file has been edited manually and is no longer able to be updated\n * by the cli tool. If you need to make changes to this theme, please make sure\n * to edit the `formkit.theme.ts` file instead.\n *\n * @variables - radius=rounded-xl,accentColor=green,colorTemperature=stone,spacing=1.5,scale=sm,inputShadow=shadow-md,baseColorShade=600,borderShadeLightMode=400,borderShadeDarkMode=800,inputMaxWidth=max-w-[24em],tagRadius=rounded,swatchRadius=rounded\n * @theme - form-forge-custom\n **/\n\n/**\n * This is the theme function itself, it should be imported and used as the\n * config.rootClasses function. For example:\n *\n * ```js\n * import { theme } from './formkit.theme'\n * import { defineFormKitConfig } from '@formkit/vue'\n *\n * export default defineFormKitConfig({\n * config: {\n * rootClasses: theme\n * }\n * })\n * ```\n **/\n\nexport function rootClasses(sectionName: string, node: FormKitNode): Record<string, boolean> {\n const semanticKey = `formkit-${sectionName}`\n const familyKey = node.props.family ? `family:${node.props.family}__${sectionName}` : ''\n const type = node.props.$formkit || node.props.type\n if (node.props.family === 'naive') {\n if (sectionName === 'outer') {\n return { [semanticKey]: true, 'w-full': true }\n }\n if (sectionName === 'wrapper') {\n return {\n [semanticKey]: true,\n 'w-full': true,\n }\n }\n if (sectionName === 'inner') {\n return {\n [semanticKey]: true,\n 'w-full': true,\n '!p-0': true,\n '!border-none': true,\n '!bg-transparent': true,\n '!shadow-none': true,\n }\n }\n if (sectionName === 'input') {\n return {\n [semanticKey]: true,\n 'w-full': true,\n '!p-0': true,\n '!border-none': true,\n '!bg-transparent': true,\n }\n }\n if (sectionName === 'label') {\n if (type === 'submit' || type === 'reset' || type === 'naiveButton') {\n return { [semanticKey]: true, hidden: true }\n }\n return {\n [semanticKey]: true,\n block: true,\n '!text-xs': true,\n '!font-bold': true,\n 'mb-1': true,\n 'text-neutral-700': true,\n 'dark:text-zinc-300': true,\n }\n }\n if (sectionName === 'help') {\n if (type === 'submit' || type === 'reset' || type === 'naiveButton') {\n return { [semanticKey]: true, hidden: true }\n }\n return {\n [semanticKey]: true,\n 'text-[11px]': true,\n 'text-neutral-500': true,\n 'font-normal': true,\n 'mt-0.5': true,\n 'dark:text-zinc-400': true,\n }\n }\n if (sectionName === 'messages') {\n return {\n [semanticKey]: true,\n 'mt-1': true,\n 'space-y-0.5': true,\n // 圆点由 message 的 before 伪元素画,去掉 <ul> 的默认列表样式和缩进,避免出现两个圆点\n 'list-none': true,\n 'mb-0': true,\n 'p-0': true,\n }\n }\n if (sectionName === 'message') {\n return {\n [semanticKey]: true,\n 'text-red-500': true,\n 'text-[11px]': true,\n '[line-height:1.2]': true,\n 'pl-1.5': true,\n relative: true,\n \"before:content-['•']\": true,\n 'before:absolute': true,\n 'before:left-0': true,\n 'before:top-0': true,\n 'dark:text-red-400': true,\n }\n }\n if (sectionName === 'messageLink') {\n return {\n [semanticKey]: true,\n 'outline-none': true,\n 'focus-visible:ring-2': true,\n 'focus-visible:ring-offset-2': true,\n 'focus-visible:ring-red-500': true,\n }\n }\n return { [semanticKey]: true }\n }\n\n const key = `${node.props.type}__${sectionName}`\n if (sectionName === 'label') {\n if (type === 'submit' || type === 'reset' || type === 'naiveButton') {\n return { [semanticKey]: true, hidden: true }\n }\n }\n const memoKey = `${key}__${familyKey}`\n if (!(memoKey in classes)) {\n const sectionClasses = classes[key] ?? globals[sectionName] ?? {}\n sectionClasses[semanticKey] = true\n if (familyKey in classes) {\n classes[memoKey] = { ...classes[familyKey], ...sectionClasses }\n } else {\n classes[memoKey] = sectionClasses\n }\n }\n return classes[memoKey] ?? { [semanticKey]: true }\n}\n\n/**\n * These classes have already been merged with globals and are ready to be used\n * directly in the theme.\n **/\n// 项目里所有内置输入类型都经 buildFormkitInputs 统一注册为 family: 'naive'(见\n// elements/formkit.ts),上面 family === 'naive' 分支会提前 return,永远走不到这份表;\n// 真正会查这份表的只有 DSL 直接用到、未被覆盖的原生 FormKit 类型 $formkit: 'form' /\n// 'group' / 'list',而 group / list 的 schema 没有声明任何 section(不会调用\n// rootClasses),实际只有 form 节点自身的几个 section 会命中。原 FormKit 主题脚手架\n// 为其余所有原生/Pro 输入类型(checkbox / select / dropdown / slider / repeater /\n// colorpicker / datepicker / mask / rating / taglist / toggle / transferlist /\n// multi-step 等,本项目均未使用或已用 naive 版本整体覆盖)生成的条目从未被读取过,\n// 已删除;对照结果见 W2 任务报告。\nconst classes: Record<string, Record<string, boolean>> = {\n form__form: {\n 'group/form': true,\n },\n form__actions: {\n '': true,\n },\n form__summaryInner: {\n 'group/summary': true,\n border: true,\n 'border-neutral-400': true,\n 'bg-white': true,\n 'rounded-xl': true,\n 'py-1.5': true,\n 'px-2.5': true,\n 'shadow-md': true,\n 'dark:bg-transparent': true,\n 'dark:border-zinc-800': true,\n },\n form__summaryHeader: {\n 'text-base': true,\n 'text-neutral-700': true,\n 'font-bold': true,\n 'mb-1.5': true,\n 'dark:text-zinc-300': true,\n },\n form__messages: {\n '': true,\n },\n form__message: {\n 'text-red-600': true,\n 'mb-1.5': true,\n 'text-[11px]': true,\n '[line-height:1em]': true,\n 'dark:text-red-400': true,\n 'group-[]/summary:text-xs': true,\n },\n form__messageLink: {\n 'group-[]/summary:outline-none': true,\n 'group-[]/summary:focus-visible:ring-2': true,\n 'group-[]/summary:ring-green-600': true,\n },\n}\n\n/**\n * Globals are merged prior to generating this file — these are included for\n * any other non-matching inputs.\n **/\nconst globals: Record<string, Record<string, boolean>> = {\n outer: {\n group: true,\n 'max-w-full': true,\n 'min-w-full': true,\n grow: true,\n 'mb-3.5': true,\n 'data-[disabled]:select-none': true,\n 'data-[disabled]:opacity-50': true,\n 'text-sm': true,\n },\n label: {\n 'pointer-events-none': true,\n block: true,\n 'text-neutral-700': true,\n 'text-xs': true,\n 'font-bold': true,\n 'mb-0.5': true,\n 'dark:text-zinc-300': true,\n },\n legend: {\n block: true,\n 'text-neutral-700': true,\n 'text-xs': true,\n 'font-bold': true,\n 'dark:text-zinc-300': true,\n },\n input: {\n 'appearance-none': true,\n '[color-scheme:light]': true,\n 'dark:[color-scheme:dark]': true,\n 'selection:bg-green-100': true,\n 'selection:text-neutral-700': true,\n 'group-data-[has-overlay]:selection:!text-transparent': true,\n },\n prefixIcon: {\n flex: true,\n 'items-center': true,\n '-ml-0.5': true,\n 'mr-1.5': true,\n 'text-sm': true,\n 'h-[1em]': true,\n 'w-[1em]': true,\n 'shrink-0': true,\n '[&>svg]:w-full': true,\n },\n suffixIcon: {\n flex: true,\n 'items-center': true,\n '-mr-0.5': true,\n 'ml-1.5': true,\n 'text-sm': true,\n 'h-[1em]': true,\n 'w-[1em]': true,\n 'shrink-0': true,\n '[&>svg]:w-full': true,\n },\n loaderIcon: {\n 'animate-spin': true,\n flex: true,\n 'items-center': true,\n 'my-auto': true,\n 'ml-1.5': true,\n 'text-sm': true,\n 'text-neutral-500': true,\n 'h-[1em]': true,\n 'w-[1em]': true,\n 'shrink-0': true,\n '[&>svg]:w-full': true,\n },\n loadMoreInner: {\n flex: true,\n 'text-xs': true,\n 'text-neutral-500': true,\n 'p-1.5': true,\n 'items-center': true,\n 'justify-center': true,\n '[&>span]:mr-1.5': true,\n },\n help: {\n 'text-neutral-500': true,\n 'text-[11px]': true,\n '[line-height:1em]': true,\n 'dark:text-zinc-400': true,\n },\n message: {\n 'text-red-600': true,\n 'mb-1.5': true,\n 'text-[11px]': true,\n '[line-height:1em]': true,\n 'dark:text-red-400': true,\n },\n overlay: {\n 'text-neutral-700': true,\n 'dark:text-zinc-300': true,\n },\n overlayPlaceholder: {\n 'text-neutral-400': true,\n 'dark:text-zinc-400/50': true,\n },\n overlayLiteral: {\n 'text-neutral-700': true,\n 'dark:text-zinc-300': true,\n },\n overlayChar: {\n 'text-neutral-700': true,\n 'dark:text-zinc-300': true,\n },\n overlayEnum: {\n 'text-neutral-700': true,\n 'dark:text-zinc-300': true,\n },\n}\n","// formkit.config.ts\nimport { defaultConfig } from '@formkit/vue'\nimport { createI18nPlugin, en, zh } from '@formkit/i18n'\nimport { rootClasses } from './formkit.theme.ts'\nimport { buildFormkitInputs } from './elements'\nimport { registerElements, type RegisterElementInput } from './plugin/register-element'\n\n// 可注入扩展元素(FormKit input 注册需在装配插件前完成):\n// app.use(plugin, formkitConfig(elements));BuilderProvider 的 config.elements 负责 DSL 侧,幂等。\nexport function formkitConfig(elements?: RegisterElementInput[]) {\n registerElements(elements)\n return defaultConfig({\n plugins: [createI18nPlugin({ en, zh })],\n locales: { en, zh },\n locale: 'zh',\n config: {\n rootClasses,\n },\n // 所有输入组件注册来自元素注册中心(src/elements/,含用户扩展)\n inputs: buildFormkitInputs(),\n })\n}\n\nexport default formkitConfig()\n","import type { App, Plugin } from 'vue'\nimport { defaultConfig, plugin as formkitPlugin } from '@formkit/vue'\nimport { formkitConfig } from '@/formkit.config'\nimport { registerElements, type RegisterElementInput } from '@/plugin/register-element'\nimport { setGlobalFormBuilderConfig } from '@/composables/use-config'\nimport type { FormBuilderConfig } from '@/types/env'\n\nexport interface FormBuilderPluginOptions {\n /** 全局配置(apiKey / locale / messages / elements 扩展) */\n config?: FormBuilderConfig\n /** 自定义 FormKit defaultConfig 工厂;默认 formkitConfig(config.elements) */\n formkitConfig?: (elements?: RegisterElementInput[]) => ReturnType<typeof defaultConfig>\n /** 是否自动安装 FormKit 插件;应用已装过 @formkit/vue 时设 false 防重复 */\n installFormKit?: boolean\n}\n\n/**\n * 一键接入插件:安装 FormKit + 元素注册 + 全局配置一次完成。\n * 之后可直接用 `<FormBuilder :config v-model=\"def\"/>` 与 `<FormRenderer :definition=\"def\"/>`,\n * 无需再手动 app.use(plugin, formkitConfig()) 或套 BuilderProvider。\n */\nexport const FormBuilderPlugin: Plugin = {\n install(app: App, options?: FormBuilderPluginOptions) {\n const opts = options ?? {}\n const elements = opts.config?.elements\n\n // 元素注册(幂等):覆盖 DSL 注册中心 + FormKit input 绑定双侧。\n registerElements(elements)\n\n // 全局配置回落:未套 BuilderProvider 的组件也能通过 useFormBuilderConfig 拿到 config。\n setGlobalFormBuilderConfig(opts.config)\n\n // FormKit 装配。@formkit/vue 的 plugin install 不可重复执行,默认自动装;\n // 应用已自行 app.use(plugin, config) 时传 installFormKit: false 跳过。\n if (opts.installFormKit !== false) {\n app.use(formkitPlugin, (opts.formkitConfig ?? formkitConfig)(elements))\n }\n },\n}\n"],"mappings":";;;;;AAeA,SAAS,EAAa,GAAa;AACjC,KAAI;AACF,SAAO,gBAAgB,EAAM;SACvB;AACN,SAAO,KAAK,MAAM,KAAK,UAAU,EAAM,CAAC;;;AAK5C,SAAS,EAAiB,GAAsB;AAE9C,CADA,OAAQ,EAA0B,KAC9B,EAAK,SACP,OAAO,EAAK,KAAK,WACb,OAAO,KAAK,EAAK,KAAK,CAAC,WAAW,KAAG,OAAO,EAAK;CAEvD,IAAM,IAAY,EAAmC;AACrD,CAAI,MAAM,QAAQ,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