epic-designer-gold 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_vue_commonjs-external-BbihI59z.cjs → _vue_commonjs-external-CccDNqHl.cjs} +1 -1
- package/dist/{attributeView-CSiGWdPc.js → attributeView-BAtvUAhV.js} +22 -22
- package/dist/attributeView-BF8AFFq3.cjs +1 -0
- package/dist/{az-CJXcaytS.cjs → az-BHlmRKxT.cjs} +1 -1
- package/dist/be-Bix86zGn.cjs +1 -0
- package/dist/be-kPl6P6VI.js +37 -0
- package/dist/{bg-DCT06eJE.cjs → bg-DRyWA3-W.cjs} +1 -1
- package/dist/{bn-bd-DaKs5QkR.cjs → bn-bd-DsQtVph4.cjs} +1 -1
- package/dist/{button-BbHi0DmU.js → button-q-1FLMFj.js} +2 -2
- package/dist/{ca-DCcDFeSK.js → ca-B_2hM20M.js} +6 -6
- package/dist/core/components/asyncLoader/index.vue.d.ts +1 -1
- package/dist/core/components/builder/src/builder.vue.d.ts +6 -11
- package/dist/core/components/designer/src/designer.vue.d.ts +200 -9
- package/dist/core/components/designer/src/modules/actionBar/index.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/attributeView/attributeView.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/attributeView/eventView.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/attributeView/styleView.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/componentView/index.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/editContainer/editNodeItem.vue.d.ts +4 -5
- package/dist/core/components/designer/src/modules/editContainer/editScreenContainer.vue.d.ts +7 -2
- package/dist/core/components/designer/src/modules/editContainer/index.vue.d.ts +19 -1
- package/dist/core/components/designer/src/modules/editContainer/nodeItem.vue.d.ts +3 -5
- package/dist/core/components/designer/src/modules/editContainer/previewJson.vue.d.ts +3 -1
- package/dist/core/components/designer/src/modules/editContainer/previewWidgets.vue.d.ts +5 -1
- package/dist/core/components/designer/src/modules/editContainer/toolbar.vue.d.ts +17 -1
- package/dist/core/components/designer/src/modules/header/index.vue.d.ts +6 -5
- package/dist/core/components/designer/src/modules/outline/outline.vue.d.ts +1 -1
- package/dist/core/components/designer/src/modules/preview/index.vue.d.ts +85 -1
- package/dist/core/components/designer/src/modules/rightSidebar/breadcrumb.vue.d.ts +1 -1
- package/dist/core/components/icon/src/icon.vue.d.ts +4 -6
- package/dist/core/components/node/src/dynamicFormItem.vue.d.ts +12 -11
- package/dist/core/components/node/src/node.vue.d.ts +19 -24
- package/dist/core/components/tree/src/tree.vue.d.ts +1 -1
- package/dist/core/components/tree/src/treeNodeItem.vue.d.ts +3 -4
- package/dist/core/components/tree/src/treeNodes.vue.d.ts +4 -6
- package/dist/core/extensions/EActionEditor/index.vue.d.ts +25 -1
- package/dist/core/extensions/EActionEditor/src/EArgsEditor.vue.d.ts +5 -7
- package/dist/core/extensions/EActionEditor/src/EScriptEdit.vue.d.ts +3 -1
- package/dist/core/extensions/EColEditor/index.vue.d.ts +1 -1
- package/dist/core/extensions/EColumnEditor/columnItem.vue.d.ts +4 -5
- package/dist/core/extensions/EColumnEditor/index.vue.d.ts +5 -9
- package/dist/core/extensions/EDataSource/index.vue.d.ts +3 -1
- package/dist/core/extensions/EDescribe/index.vue.d.ts +9 -0
- package/dist/core/extensions/EInputSize/index.vue.d.ts +4 -5
- package/dist/core/extensions/EOptionsEditor/index.vue.d.ts +9 -13
- package/dist/core/extensions/EOptionsEditor/optionItem.vue.d.ts +4 -5
- package/dist/core/extensions/ERuleEditor/ERuleItem.vue.d.ts +5 -6
- package/dist/core/extensions/ERuleEditor/index.vue.d.ts +1 -1
- package/dist/core/extensions/ESourceDataSelect/index.vue.d.ts +6 -18
- package/dist/core/extensions/EValidateParam/index.vue.d.ts +13 -0
- package/dist/core/extensions/MonacoEditor/index.vue.d.ts +15 -21
- package/dist/core/extensions/PaddingMarginControl/index.vue.d.ts +5 -6
- package/dist/core/extensions/Page/index.vue.d.ts +7 -7
- package/dist/{cs-D_hyDJBU.cjs → cs-fe0nQEUY.cjs} +1 -1
- package/dist/{de-CjumkRE8.js → de-DC7xuNPN.js} +3 -3
- package/dist/{el-DyUHskgW.js → el-C0J72FUl.js} +2 -2
- package/dist/{el-BCec0wpC.cjs → el-CUlPbKiq.cjs} +1 -1
- package/dist/{en-gb-C8f1Enek.js → en-gb-D42jaZg9.js} +5 -5
- package/dist/{es-DP04S73E.js → es-C058DgcQ.js} +4 -4
- package/dist/{es-BFLRglxD.cjs → es-CV4N9sQJ.cjs} +1 -1
- package/dist/{et-ipLqjCDG.js → et-hoTk9uxt.js} +5 -5
- package/dist/{eventView-5fa6mfSD.cjs → eventView-BExxE07B.cjs} +1 -1
- package/dist/{eventView-C2wKhfU_.js → eventView-eNaiVabA.js} +4 -4
- package/dist/{fade-in-scale-up.cssr-C_UMnGtI.cjs → fade-in-scale-up.cssr-D5DdSaTl.cjs} +1 -1
- package/dist/{fade-in-scale-up.cssr-BXjoIAAA.js → fade-in-scale-up.cssr-XJx96aae.js} +1 -1
- package/dist/{form-ChuxpD-f.cjs → form-BfnGWRf4.cjs} +1 -1
- package/dist/form-CUbklubB.cjs +1 -0
- package/dist/form-DGbjgAvD.js +208 -0
- package/dist/{form-Cr7tBgLQ.js → form-DkDGcNCH.js} +7 -7
- package/dist/{form-BPH0cDFl.js → form-r1D2WYPd.js} +3 -3
- package/dist/{formItem-D10Om12T.js → formItem-B6XaNgi9.js} +2 -2
- package/dist/{formItem-cj8JQT2r.js → formItem-BJ-M4LAL.js} +2 -2
- package/dist/{formItem-Do31LPIz.cjs → formItem-DS5AjuJ9.cjs} +1 -1
- package/dist/{formItem-DPnbV4m-.js → formItem-E3dd7dU1.js} +3 -3
- package/dist/{fr-D1kezmpm.cjs → fr-B_IotmK8.cjs} +1 -1
- package/dist/{fr-ca-EPfCD7sc.js → fr-ca-DfJb7eFN.js} +4 -4
- package/dist/ga-DP4_Ma79.js +22 -0
- package/dist/ga-Upa8swLh.cjs +1 -0
- package/dist/{gl-CBMDu4db.js → gl-L0SOKqrF.js} +1 -1
- package/dist/{gl-DI-aVaAh.cjs → gl-buZ-VDaz.cjs} +1 -1
- package/dist/{he-O14-JKYm.cjs → he-CwFEkyZP.cjs} +1 -1
- package/dist/{hi-nXeMgLvO.js → hi-CG6raJ8L.js} +2 -2
- package/dist/{hy-am-BLnv1pCz.cjs → hy-am-IbMCW8s4.cjs} +1 -1
- package/dist/{hy-am-CvHDFapi.js → hy-am-QWdQfrnZ.js} +2 -2
- package/dist/{icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js → icon.vue_vue_type_script_setup_true_lang-DW206h_7.js} +2 -2
- package/dist/{id-CO78nlWo.js → id-CXRpiOjX.js} +4 -4
- package/dist/index-3k1IXN1T.js +1772 -0
- package/dist/{index-B0OgKtuT.js → index-9Mn4Y5ul.js} +30 -30
- package/dist/index-B7v1JNbf.cjs +351 -0
- package/dist/{index-DgcFxYFp.js → index-BMXnkqXx.js} +3 -3
- package/dist/{index-CCCx1tbF.cjs → index-BRAbfTxT.cjs} +1 -1
- package/dist/index-BRSms-yQ.cjs +10 -0
- package/dist/{index-WkZdU_zw.js → index-BTaKazMR.js} +3 -3
- package/dist/index-BU3ulVXO.cjs +51 -0
- package/dist/index-BVGB9juO.cjs +352 -0
- package/dist/index-BWTbnurN.cjs +102 -0
- package/dist/index-B_ZNp-FD.cjs +10 -0
- package/dist/index-BakH-Ay7.js +1513 -0
- package/dist/{index-tSmvj7CR.js → index-BdXFwT-C.js} +749 -721
- package/dist/{index-D1ZL6feZ.js → index-Bf7gu4Ub.js} +28210 -27533
- package/dist/index-BlIhb2K5.cjs +65 -0
- package/dist/{index-DYQi05p8.cjs → index-BozsQqds.cjs} +1 -1
- package/dist/index-BtKa0UKV.cjs +326 -0
- package/dist/index-BwHmwZ5G.cjs +1 -0
- package/dist/{index-D2GF87Tg.cjs → index-Bxdmlmwu.cjs} +1 -1
- package/dist/index-C3ri9kGU.cjs +110 -0
- package/dist/index-C4CkFEzv.cjs +1 -0
- package/dist/{index-COyKmK8p.js → index-C4laxGCk.js} +532 -529
- package/dist/{index-B2RMcVgD.js → index-C5yUsiJH.js} +3 -3
- package/dist/{index-CpTA2IRB.js → index-CAYHjLKP.js} +10 -10
- package/dist/index-CFChTrwc.cjs +1 -0
- package/dist/index-CFHEVgng.cjs +1 -0
- package/dist/index-CHYKgo9A.cjs +1 -0
- package/dist/{index-CNOUPCih.js → index-CLAopW_w.js} +143 -142
- package/dist/index-CLeSXOVj.js +122 -0
- package/dist/{index-CdnV7DS4.js → index-CQSYlqUB.js} +3 -3
- package/dist/{index-Hdc_C4Xg.js → index-CRaEQ5ns.js} +116 -115
- package/dist/{index-BbTWJKHb.js → index-CT056ccv.js} +23 -23
- package/dist/index-CcXd7BgN.js +451 -0
- package/dist/{index-RL7vrExY.js → index-Cecp9t8s.js} +17 -17
- package/dist/index-ClgIpXW0.cjs +1 -0
- package/dist/index-CnPBVx5Y.cjs +181 -0
- package/dist/index-CpTUkT9o.cjs +159 -0
- package/dist/index-CqIGF1hQ.cjs +86 -0
- package/dist/{index-DymbM-qI.js → index-CrVn9CfT.js} +79 -72
- package/dist/{index-Cmfhlo_3.js → index-D2n96wxz.js} +5 -5
- package/dist/{index-FgdbKgb5.cjs → index-DER3z6SG.cjs} +1 -1
- package/dist/{index-Dk0fyxAJ.cjs → index-DExGgrX9.cjs} +1 -1
- package/dist/{index-lCYWKDlK.js → index-DI-E5Cpq.js} +6 -6
- package/dist/{index-Cx7gKpkD.js → index-DMnyvgEN.js} +3 -3
- package/dist/{index-DaRhLTx9.js → index-DMuf-r1U.js} +489 -489
- package/dist/{index-gA02bxwJ.js → index-DUFhAGX3.js} +3443 -3361
- package/dist/{index-CjcjqKkB.js → index-DWSlxQBe.js} +87 -86
- package/dist/index-DYU07eGb.cjs +1 -0
- package/dist/{index-BENF2JDS.cjs → index-Di9sEDRc.cjs} +1 -1
- package/dist/{index-DQ9Vb0QH.js → index-Dkj_Zz4E.js} +309 -308
- package/dist/index-DlWUR7vt.cjs +6 -0
- package/dist/index-Dp0hJSh5.js +4 -0
- package/dist/{index-3fW_aWMH.js → index-Ds_DeGh-.js} +581 -567
- package/dist/index-FaOdtMdB.cjs +214 -0
- package/dist/index-K9w-efBB.cjs +1 -0
- package/dist/{index-DiDIFoTk.js → index-KXG0ExdR.js} +3 -3
- package/dist/index-UpNznhhe.js +19 -0
- package/dist/index-XEUPyaqB.js +655 -0
- package/dist/index-Xnqspbxj.js +59 -0
- package/dist/{index-v2u1WTMm.cjs → index-aIGMRk0a.cjs} +1 -1
- package/dist/{index-BEUYVwRA.cjs → index-eAXbC_rr.cjs} +1 -1
- package/dist/index-lf6yCev-.cjs +1 -0
- package/dist/{index-BhMVNODR.js → index-natF7VzY.js} +9 -12
- package/dist/index-o6azVcPr.js +11903 -0
- package/dist/{index-Cln9MN7u.js → index-ocw8DZly.js} +5 -5
- package/dist/index-r7I2iBup.cjs +9 -0
- package/dist/index-sFE9uQIP.js +1712 -0
- package/dist/{index-IGxCNti8.js → index-syyNmnFq.js} +5 -5
- package/dist/index-t1QZ07qC.cjs +864 -0
- package/dist/{index-R2r9Rw5O.cjs → index-uyQPLEww.cjs} +1 -1
- package/dist/{index-CpevxZqj.cjs → index-waYHs7SN.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/{is-C40R_fdL.cjs → is-DKGME0z-.cjs} +1 -1
- package/dist/{it-BFF7WzRR.js → it-BtbhD8pq.js} +1 -1
- package/dist/{it-D7K-0U_k.cjs → it-ZWKZeGyD.cjs} +1 -1
- package/dist/{ja-4CWMghxy.js → ja--ZXRcv9f.js} +4 -4
- package/dist/{ja-CAXCMb11.cjs → ja-pfO_QIN1.cjs} +1 -1
- package/dist/{ka-DrA_EMLP.js → ka-2eqGlkEl.js} +2 -2
- package/dist/{kk-Bv8yYeRk.cjs → kk-8gl4nJDr.cjs} +1 -1
- package/dist/{kk-QVPqpI2b.js → kk-U2vwYR0_.js} +2 -2
- package/dist/{km-BmycjYfj.cjs → km-BhO_ypYk.cjs} +1 -1
- package/dist/{km-CBMnSWv_.js → km-CvriZlET.js} +2 -2
- package/dist/{kn-TECqDIit.js → kn-B3fo7baQ.js} +2 -2
- package/dist/{kn-CFiXt5hu.cjs → kn-DbnERw-L.cjs} +1 -1
- package/dist/{lt-D0cq_0yM.js → lt-LJQA5IUB.js} +8 -8
- package/dist/{lv-CoTNe47-.cjs → lv-BOhsxkyH.cjs} +1 -1
- package/dist/{lv-CVdYvxq8.js → lv-mhTNPcB7.js} +6 -6
- package/dist/{mk-DVN6iYK_.cjs → mk-Bjsw8OIP.cjs} +1 -1
- package/dist/{mk-DDuk7A3P.js → mk-CwQCoXyz.js} +2 -2
- package/dist/{ml-DnXJOqZ0.cjs → ml-B2Uwy4uy.cjs} +1 -1
- package/dist/{ml-CPI3tJe8.js → ml-Cb3T32D6.js} +2 -2
- package/dist/{mn-CNbMEx0y.js → mn-CNzb6fwh.js} +2 -2
- package/dist/{mn-DMIrWGkN.cjs → mn-CsItTiQc.cjs} +1 -1
- package/dist/{modal-3Iw7tqyx.js → modal-BRQmBRpE.js} +4 -4
- package/dist/{modal-DZRJyZfk.cjs → modal-BgQNXEZY.cjs} +1 -1
- package/dist/{ms-my-BoMZ8Hzl.cjs → ms-my-BgFBTdYR.cjs} +1 -1
- package/dist/{ms-my-BcgYEtml.js → ms-my-CQBECOnt.js} +6 -6
- package/dist/{nb-BL5QmNEa.js → nb-ChJHZ1i8.js} +2 -2
- package/dist/{ne-9klrwaIE.js → ne-KSsPp_--.js} +4 -4
- package/dist/{ne-VNPqdWFn.cjs → ne-wk64JT9v.cjs} +1 -1
- package/dist/{nl-DBFNL8wC.cjs → nl-B5Fclgi6.cjs} +1 -1
- package/dist/ocrUpload-CMskfGHX.cjs +1 -0
- package/dist/ocrUpload-Cxxs1GtD.js +521 -0
- package/dist/orcSelectPage-CXd59VaA.js +47 -0
- package/dist/orcSelectPage-DY_4W3lm.cjs +1 -0
- package/dist/{outline-BE98qFHQ.cjs → outline-BkNtj_2a.cjs} +1 -1
- package/dist/{outline-Ch5PHy3c.js → outline-S7RIV1S6.js} +4 -4
- package/dist/{pluginManager-BCnrHPYv.js → pluginManager-B0y107-1.js} +1 -1
- package/dist/{pluginManager-DWHAX8kP.cjs → pluginManager-C8aQylGX.cjs} +1 -1
- package/dist/{pt-BaTZB0XW.cjs → pt-BfCV6EE0.cjs} +1 -1
- package/dist/{pt-br-C1mqj5qX.js → pt-br-BC7LLaiM.js} +3 -3
- package/dist/{pt-br-B_N58uu_.cjs → pt-br-Cmqeku7l.cjs} +1 -1
- package/dist/{ro-Cnuhxb40.cjs → ro-BoP4bVrV.cjs} +1 -1
- package/dist/row-CAcx39Av.cjs +1 -0
- package/dist/row-DhORW-4_.js +34 -0
- package/dist/{ru-CCbLARi0.js → ru-CLqP_yvB.js} +5 -5
- package/dist/select-957IpcJa.js +38 -0
- package/dist/select-BgVmNynq.cjs +1 -0
- package/dist/{selectPage-CrdVWKGk.cjs → selectPage-H4G0pWhK.cjs} +1 -1
- package/dist/{selectPage-Bm45M31g.js → selectPage-oM1OpHbJ.js} +3 -3
- package/dist/{sign-BS-9u6is.cjs → sign-Cusu4oCD.cjs} +1 -1
- package/dist/{sign-l63EYvVo.js → sign-Cz5OCE1C.js} +12 -12
- package/dist/{sk-DRjgEzVO.cjs → sk-DvU2x_On.cjs} +1 -1
- package/dist/{sl-CL8MnX8D.js → sl-MH1u3xWj.js} +9 -9
- package/dist/style.css +1 -1
- package/dist/{styleView-CrBDikDV.cjs → styleView-DAskd_e3.cjs} +1 -1
- package/dist/{styleView-DONajUQ-.js → styleView-oSuNX97o.js} +8 -8
- package/dist/{ta-CsfYqZQU.js → ta-CeKe4tRh.js} +2 -2
- package/dist/{tabs-CYH9lAUk.cjs → tabs-5lcSnurM.cjs} +1 -1
- package/dist/{tabs-DCyifACM.js → tabs-Cu4PLnTU.js} +1 -1
- package/dist/{th-C-CGWPlT.cjs → th-B1vCpSkb.cjs} +1 -1
- package/dist/{th-CC5sx7mS.js → th-DuVrYobw.js} +2 -2
- package/dist/theme/var.less +6 -5
- package/dist/{tree.vue_vue_type_script_setup_true_lang-VGvT-OYl.cjs → tree.vue_vue_type_script_setup_true_lang-583kvI0Q.cjs} +1 -1
- package/dist/{tree.vue_vue_type_script_setup_true_lang-BsVyMb-n.js → tree.vue_vue_type_script_setup_true_lang-M13R0TPV.js} +4 -4
- package/dist/ui/antd/button/button.vue.d.ts +2 -1
- package/dist/ui/antd/index.cjs +2 -2
- package/dist/ui/antd/index.js +40 -40
- package/dist/ui/antd/modal/modal.vue.d.ts +3 -2
- package/dist/ui/antd/upload-image/uploadImage.vue.d.ts +1 -1
- package/dist/ui/elementPlus/form/form.vue.d.ts +372 -7
- package/dist/ui/elementPlus/formItem/formItem.vue.d.ts +346 -3
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +556 -253
- package/dist/ui/elementPlus/modal/modal.d.ts +1 -1
- package/dist/ui/elementPlus/ocr-select-page/index.d.ts +3 -0
- package/dist/ui/elementPlus/ocr-select-page/orcSelectPage.d.ts +8 -0
- package/dist/ui/elementPlus/ocr-upload/index.d.ts +3 -0
- package/dist/ui/elementPlus/ocr-upload/ocrUpload.d.ts +21 -0
- package/dist/ui/naiveUi/form-item/formItem.vue.d.ts +772 -3
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +11 -11
- package/dist/ui/naiveUi/modal/modal.d.ts +1 -1
- package/dist/{uk-Cc6k-QUE.cjs → uk-8RCZke0G.cjs} +1 -1
- package/dist/{uploadImage-Db_66X3C.js → uploadImage-DKgjQrSu.js} +4 -4
- package/dist/{uploadImage-nwjqcVFU.cjs → uploadImage-r7uyNOKB.cjs} +1 -1
- package/dist/{ur-C0tmW1hr.js → ur-Dj65NIKf.js} +3 -3
- package/dist/utils/manager/pluginManager.d.ts +16 -16
- package/dist/{vi-j1PGHz1o.js → vi-BEZaL78_.js} +4 -4
- package/dist/{vi-Dyfq5Qgz.cjs → vi-aBc6LsS_.cjs} +1 -1
- package/dist/{vuedraggable.umd-BqhSJIAi.cjs → vuedraggable.umd-CxOWsXm8.cjs} +6 -6
- package/dist/{vuedraggable.umd-D2S7Eo7p.js → vuedraggable.umd-D908YPOr.js} +396 -400
- package/dist/{zh-cn-BKQHxHe9.cjs → zh-cn-DTp5Vsak.cjs} +1 -1
- package/dist/{zh-hk-hNFRxlrX.cjs → zh-hk-DvIiOtyL.cjs} +1 -1
- package/dist/{zh-tw-BT16WIrT.js → zh-tw-BZt76cZl.js} +7 -7
- package/dist/{zh-tw-SGOlw9Wo.cjs → zh-tw-OGVt40m9.cjs} +1 -1
- package/package.json +1 -1
- package/dist/attributeView-UzP3tU2D.cjs +0 -1
- package/dist/axios-CXDYiOMX.js +0 -1704
- package/dist/axios-tuVKNgv9.cjs +0 -6
- package/dist/be--_CkdeMD.cjs +0 -1
- package/dist/be-DJzFjqtL.js +0 -22
- package/dist/form-Bofkrmkd.cjs +0 -1
- package/dist/form-VbfBmb63.js +0 -72
- package/dist/ga-B7Rd2JIZ.cjs +0 -1
- package/dist/ga-BcnAx7jm.js +0 -22
- package/dist/index-4PPmJYKt.cjs +0 -51
- package/dist/index-B72l3XQl.js +0 -453
- package/dist/index-B8exdhvc.cjs +0 -1
- package/dist/index-BB9rZNCd.cjs +0 -181
- package/dist/index-BCk0LJsg.cjs +0 -347
- package/dist/index-BHZbtFEF.cjs +0 -1
- package/dist/index-BVUz9lFN.cjs +0 -325
- package/dist/index-BhICtIH5.js +0 -1433
- package/dist/index-BsXm6fLD.js +0 -1493
- package/dist/index-BwLkOBWy.cjs +0 -10
- package/dist/index-C9PHR_YC.js +0 -4
- package/dist/index-CR_tJiJv.js +0 -653
- package/dist/index-CU1ZFiwn.cjs +0 -1
- package/dist/index-CZFPJ6vM.cjs +0 -1
- package/dist/index-Cap7FkuS.cjs +0 -1
- package/dist/index-Cphndmia.cjs +0 -214
- package/dist/index-CraRg8wh.js +0 -107
- package/dist/index-D5WpEOUO.cjs +0 -351
- package/dist/index-DEBQD_h0.cjs +0 -1
- package/dist/index-DMszow96.cjs +0 -110
- package/dist/index-DTzB2pWI.cjs +0 -159
- package/dist/index-DWCSzZfR.cjs +0 -80
- package/dist/index-DyWFUxn5.js +0 -11674
- package/dist/index-RdEhd65J.cjs +0 -65
- package/dist/index-XU85x6vz.cjs +0 -9
- package/dist/index-g5ZjtbqH.cjs +0 -102
- package/dist/index-jx5A2kt8.cjs +0 -850
- package/dist/index-n6H8b6fT.cjs +0 -1
- package/dist/index-zYoSB4fa.cjs +0 -9
- package/dist/row-CkyJ9pQh.js +0 -35
- package/dist/row-NNlPGZRG.cjs +0 -1
- package/dist/select-BvJWp4t6.cjs +0 -1
- package/dist/select-CjWTf5kk.js +0 -45
- package/dist/ui/antd/form/form.vue.d.ts +0 -64
- package/dist/ui/antd/form-item/formItem.vue.d.ts +0 -18
|
@@ -0,0 +1,1712 @@
|
|
|
1
|
+
import { ref as F, reactive as de, defineComponent as fe, createBlock as ae, renderSlot as X, openBlock as Y, unref as W, mergeProps as xe, withCtx as Z, getCurrentInstance as ye, inject as se, watch as K, useAttrs as Ze, provide as k, shallowRef as Re, computed as ee, watchEffect as Ee, onUnmounted as Ue, resolveComponent as Ge, createElementBlock as ge, Fragment as Te, createCommentVNode as Ne, createElementVNode as te, createStaticVNode as Qe, toDisplayString as Ye, resolveDynamicComponent as qe, createVNode as oe, useSlots as Xe, Suspense as Be, renderList as ke, nextTick as ce, onMounted as Fe, effectScope as je, isRef as et, readonly as tt, getCurrentScope as nt, onScopeDispose as ot, normalizeClass as at, toRaw as Ve } from "vue";
|
|
2
|
+
import { f as rt, p as q, d as pe, a as ne, b as Je, c as st, E as re, l as ue, g as lt, e as it } from "./pluginManager-B0y107-1.js";
|
|
3
|
+
import { a as j, u as Pe } from "./index-B1s67XDZ.js";
|
|
4
|
+
import { ElMessage as ct } from "element-plus";
|
|
5
|
+
import { a as ve } from "./index-3k1IXN1T.js";
|
|
6
|
+
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
function pn(e, n) {
|
|
8
|
+
let o = null;
|
|
9
|
+
return (...s) => {
|
|
10
|
+
o && clearTimeout(o), o = setTimeout(() => {
|
|
11
|
+
e(...s);
|
|
12
|
+
}, n);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function ze() {
|
|
16
|
+
const e = F({}), n = F({}), o = F(!1), s = F([]), d = de({});
|
|
17
|
+
function a(p) {
|
|
18
|
+
return e.value[p];
|
|
19
|
+
}
|
|
20
|
+
function v(p, E) {
|
|
21
|
+
e.value[p] = E;
|
|
22
|
+
}
|
|
23
|
+
function i(p) {
|
|
24
|
+
delete e.value[p];
|
|
25
|
+
}
|
|
26
|
+
function w(p, E = !1) {
|
|
27
|
+
const $ = Object.entries(q.publicMethods).reduce(
|
|
28
|
+
(P, [y, H]) => (P[y] = H.handler, P),
|
|
29
|
+
{}
|
|
30
|
+
);
|
|
31
|
+
try {
|
|
32
|
+
new Function(`const epic = this;${p}`).bind({
|
|
33
|
+
...$,
|
|
34
|
+
getComponent: a,
|
|
35
|
+
find: a,
|
|
36
|
+
defineExpose: A,
|
|
37
|
+
publicMethods: $,
|
|
38
|
+
pluginManager: q
|
|
39
|
+
})();
|
|
40
|
+
} catch (P) {
|
|
41
|
+
E && console.error("[epic:自定义函数]异常:", P);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function A(p) {
|
|
45
|
+
p != null && (n.value = p);
|
|
46
|
+
}
|
|
47
|
+
function _(p, ...E) {
|
|
48
|
+
if (!p || p.length === 0) {
|
|
49
|
+
console.warn("未提供任何动作");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
p.forEach(($) => {
|
|
53
|
+
const P = $.args ? JSON.parse($.args) : E;
|
|
54
|
+
switch ($.type) {
|
|
55
|
+
case "public":
|
|
56
|
+
m($, P);
|
|
57
|
+
break;
|
|
58
|
+
case "custom":
|
|
59
|
+
N($, P);
|
|
60
|
+
break;
|
|
61
|
+
case "component":
|
|
62
|
+
t($, P);
|
|
63
|
+
break;
|
|
64
|
+
default:
|
|
65
|
+
console.warn(`未知的动作类型: ${$.type}`);
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function m(p, E) {
|
|
71
|
+
var $;
|
|
72
|
+
try {
|
|
73
|
+
($ = q.publicMethods[p.methodName]) == null || $.handler(...E);
|
|
74
|
+
} catch (P) {
|
|
75
|
+
console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, P);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function N(p, E) {
|
|
79
|
+
var $, P;
|
|
80
|
+
try {
|
|
81
|
+
(P = ($ = n.value)[p.methodName]) == null || P.call($, ...E);
|
|
82
|
+
} catch (y) {
|
|
83
|
+
console.error(`[Epic:自定义函数(${p.methodName})]执行异常:`, y);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function t(p, E) {
|
|
87
|
+
const $ = p.componentId != null && a(p.componentId);
|
|
88
|
+
if (!$) {
|
|
89
|
+
console.warn(`[Epic:组件${p.componentId}]未找到`);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
try {
|
|
93
|
+
$[p.methodName](...E);
|
|
94
|
+
} catch (P) {
|
|
95
|
+
console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, P);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function b(p = !0) {
|
|
99
|
+
o.value = p;
|
|
100
|
+
}
|
|
101
|
+
function g(p) {
|
|
102
|
+
const E = rt(p, () => !0);
|
|
103
|
+
s.value = E.map(($) => $.id);
|
|
104
|
+
}
|
|
105
|
+
function D(p, E = "default") {
|
|
106
|
+
if (d[E]) {
|
|
107
|
+
const $ = d[E];
|
|
108
|
+
pe(p, $);
|
|
109
|
+
}
|
|
110
|
+
d[E] = p;
|
|
111
|
+
}
|
|
112
|
+
function M(p, E = "default") {
|
|
113
|
+
if (d[E]) {
|
|
114
|
+
pe(d[E], p, !1);
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
d[E] = p;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
componentInstances: e,
|
|
121
|
+
funcs: n,
|
|
122
|
+
isDesignMode: o,
|
|
123
|
+
defaultComponentIds: s,
|
|
124
|
+
forms: d,
|
|
125
|
+
addFormData: D,
|
|
126
|
+
setFormData: M,
|
|
127
|
+
getComponentInstance: a,
|
|
128
|
+
// 简化查询函数, 推荐使用
|
|
129
|
+
find: a,
|
|
130
|
+
addComponentInstance: v,
|
|
131
|
+
removeComponentInstance: i,
|
|
132
|
+
setMethods: w,
|
|
133
|
+
doActions: _,
|
|
134
|
+
setDesignMode: b,
|
|
135
|
+
setDefaultComponentIds: g
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function dt() {
|
|
139
|
+
const e = F([]), n = F([]), o = F(null);
|
|
140
|
+
let s = 0;
|
|
141
|
+
function d(w, A = "插入组件") {
|
|
142
|
+
const _ = Date.now();
|
|
143
|
+
s + 150 > _ || (s = _, o.value != null && (e.value.push(o.value), n.value.splice(0, n.value.length)), o.value = {
|
|
144
|
+
type: A,
|
|
145
|
+
componentSchema: JSON.stringify(w)
|
|
146
|
+
}, e.value.length > 60 && e.value.unshift());
|
|
147
|
+
}
|
|
148
|
+
function a() {
|
|
149
|
+
if (e.value.length === 0)
|
|
150
|
+
return !1;
|
|
151
|
+
const w = e.value.pop();
|
|
152
|
+
return o.value != null && n.value.push(o.value), o.value = w, JSON.parse(w.componentSchema);
|
|
153
|
+
}
|
|
154
|
+
function v() {
|
|
155
|
+
if (n.value.length === 0)
|
|
156
|
+
return !1;
|
|
157
|
+
const w = n.value.pop();
|
|
158
|
+
return o.value != null && e.value.push(o.value), o.value = w, JSON.parse(w.componentSchema);
|
|
159
|
+
}
|
|
160
|
+
function i() {
|
|
161
|
+
e.value = [], n.value = [], o.value = null;
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
recordList: e,
|
|
165
|
+
undoList: n,
|
|
166
|
+
currentRecord: o,
|
|
167
|
+
push: d,
|
|
168
|
+
undo: a,
|
|
169
|
+
redo: v,
|
|
170
|
+
reset: i
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
const ft = /* @__PURE__ */ fe({
|
|
174
|
+
__name: "dynamicFormItem",
|
|
175
|
+
props: {
|
|
176
|
+
hasFormItem: { type: Boolean },
|
|
177
|
+
formItemProps: {}
|
|
178
|
+
},
|
|
179
|
+
emits: ["updateFormItemRef"],
|
|
180
|
+
setup(e, { emit: n }) {
|
|
181
|
+
const o = q.getComponent("form-item"), s = e, d = n, a = F(), v = () => {
|
|
182
|
+
d("updateFormItemRef", a.value);
|
|
183
|
+
};
|
|
184
|
+
return (i, w) => s.hasFormItem ? (Y(), ae(W(o), xe({
|
|
185
|
+
key: 0,
|
|
186
|
+
ref_key: "formItemRef",
|
|
187
|
+
ref: a,
|
|
188
|
+
onVnodeMounted: v
|
|
189
|
+
}, s.formItemProps), {
|
|
190
|
+
default: Z(() => [
|
|
191
|
+
X(i.$slots, "default")
|
|
192
|
+
]),
|
|
193
|
+
_: 3
|
|
194
|
+
}, 16, ["onVnodeMounted"])) : X(i.$slots, "default", { key: 1 });
|
|
195
|
+
}
|
|
196
|
+
}), pt = {
|
|
197
|
+
key: 0,
|
|
198
|
+
class: "epic-loading-box"
|
|
199
|
+
}, mt = { class: "epic-loading-content" }, ht = { class: "epic-loading-text" }, vt = /* @__PURE__ */ fe({
|
|
200
|
+
name: "ENode",
|
|
201
|
+
__name: "node",
|
|
202
|
+
props: {
|
|
203
|
+
componentSchema: {},
|
|
204
|
+
modelValue: {},
|
|
205
|
+
ruleField: {},
|
|
206
|
+
resetFormData: { type: Boolean },
|
|
207
|
+
name: {},
|
|
208
|
+
dynamicId: {},
|
|
209
|
+
sourceDateUrl: {},
|
|
210
|
+
id: {}
|
|
211
|
+
},
|
|
212
|
+
emits: ["update:modelValue", "change", "update:dynamicId"],
|
|
213
|
+
setup(e, { emit: n }) {
|
|
214
|
+
const o = F(!1), s = F("加载中"), { proxy: d } = ye(), a = e, v = F(null);
|
|
215
|
+
let i = se("formData", de({}));
|
|
216
|
+
const w = se("slots", {}), A = se("pageManager", {}), _ = se("disabled", { value: !1 }), m = se("ruleFieldPrefix", null), N = se("resetFormData", !1);
|
|
217
|
+
let t = de(ne(a.componentSchema));
|
|
218
|
+
p();
|
|
219
|
+
async function b(r) {
|
|
220
|
+
try {
|
|
221
|
+
o.value = !0, s.value = "正在识别中...请稍等";
|
|
222
|
+
const S = {
|
|
223
|
+
url: r.callBackUrl,
|
|
224
|
+
headers: {
|
|
225
|
+
Authorization: "Bearer " + j.get("Admin-Token"),
|
|
226
|
+
lang: j.get("saas-locale") || "zh-CN",
|
|
227
|
+
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
228
|
+
}
|
|
229
|
+
}, R = (r.callBackMethod || "").toLowerCase(), O = { [r.callBackField]: r.url.join(",") };
|
|
230
|
+
R === "get" ? (S.method = "get", S.params = O) : (S.method = R || "post", S.data = O);
|
|
231
|
+
let U = await ve(S), f = {};
|
|
232
|
+
r.callBackDataPath ? f = r.callBackDataPath.split(".").reduce((G, Q) => G[Q], U.data) : f = U.data, r.validate && (r.validateParams.forEach((J) => {
|
|
233
|
+
i[J.value] = i.orcWarningInfo__copy_data[J.value];
|
|
234
|
+
}), i[r.field + "-orcWarningInfo"] = "", r.validateParams.forEach((J) => {
|
|
235
|
+
i[J.value] && f[J.value] !== i[J.value] && f[J.value] && (a.componentSchema.componentProps.validateStatus = !0, i[r.field + "-orcWarningInfo"] ? i[r.field + "-orcWarningInfo"] = i[r.field + "-orcWarningInfo"] + "," + J.label + "已从" + i[J.value] + "改为" + f[J.value] : i[r.field + "-orcWarningInfo"] = J.label + "已从" + i[J.value] + "改为" + f[J.value]);
|
|
236
|
+
})), Object.assign(i, f);
|
|
237
|
+
} catch (S) {
|
|
238
|
+
ct.error("OCR 识别回调处理失败:" + S.message);
|
|
239
|
+
} finally {
|
|
240
|
+
o.value = !1, s.value = "加载中";
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
async function g({ value: r, field: S, fillDataSource: R, fillDataParams: O }) {
|
|
244
|
+
try {
|
|
245
|
+
o.value = !0;
|
|
246
|
+
const f = (await ve({
|
|
247
|
+
url: a.sourceDateUrl,
|
|
248
|
+
method: "get",
|
|
249
|
+
params: {
|
|
250
|
+
id: R ?? ""
|
|
251
|
+
},
|
|
252
|
+
headers: {
|
|
253
|
+
Authorization: "Bearer " + j.get("Admin-Token"),
|
|
254
|
+
lang: j.get("saas-locale") || "zh-CN",
|
|
255
|
+
//语言
|
|
256
|
+
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
257
|
+
//时区
|
|
258
|
+
}
|
|
259
|
+
})).data.data;
|
|
260
|
+
let J = await ve({
|
|
261
|
+
url: f.url,
|
|
262
|
+
method: f.method,
|
|
263
|
+
data: f.body ? JSON.parse(f.body) : {},
|
|
264
|
+
params: f.params ? {
|
|
265
|
+
...JSON.parse(f.params),
|
|
266
|
+
[S]: r
|
|
267
|
+
} : { [S]: r },
|
|
268
|
+
headers: {
|
|
269
|
+
...JSON.parse(f.headers),
|
|
270
|
+
Authorization: "Bearer " + j.get("Admin-Token"),
|
|
271
|
+
lang: j.get("saas-locale") || "zh-CN",
|
|
272
|
+
//语言
|
|
273
|
+
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
274
|
+
//时区
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
if (f && (f != null && f.dataPath)) {
|
|
278
|
+
let he = f.dataPath.split(".").reduce((we, Ke) => we[Ke], J.data);
|
|
279
|
+
O.split(",").forEach((we) => {
|
|
280
|
+
i[we] = he[we];
|
|
281
|
+
});
|
|
282
|
+
} else {
|
|
283
|
+
let G = J.data;
|
|
284
|
+
O.split(",").forEach((Q) => {
|
|
285
|
+
i[Q] = G[Q];
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
i.orcWarningInfo__copy_data = JSON.parse(JSON.stringify(i));
|
|
289
|
+
} catch (U) {
|
|
290
|
+
console.log(U);
|
|
291
|
+
} finally {
|
|
292
|
+
o.value = !1, s.value = "加载中";
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
async function D(r) {
|
|
296
|
+
if (["cascader", "checkbox", "select", "radio"].includes(r.type) && r.componentProps.dynamicId && a.sourceDateUrl) {
|
|
297
|
+
const O = (await ve({
|
|
298
|
+
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
299
|
+
url: a.sourceDateUrl,
|
|
300
|
+
method: "get",
|
|
301
|
+
params: {
|
|
302
|
+
id: r.componentProps.dynamicId ?? ""
|
|
303
|
+
},
|
|
304
|
+
headers: {
|
|
305
|
+
Authorization: "Bearer " + j.get("Admin-Token"),
|
|
306
|
+
lang: j.get("saas-locale") || "zh-CN",
|
|
307
|
+
//语言
|
|
308
|
+
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
309
|
+
//时区
|
|
310
|
+
}
|
|
311
|
+
})).data.data;
|
|
312
|
+
let U = await ve({
|
|
313
|
+
url: O.url,
|
|
314
|
+
method: O.method,
|
|
315
|
+
data: O.body ? JSON.parse(O.body) : {},
|
|
316
|
+
params: O.params ? JSON.parse(O.params) : {},
|
|
317
|
+
headers: {
|
|
318
|
+
...JSON.parse(O.headers),
|
|
319
|
+
Authorization: "Bearer " + j.get("Admin-Token"),
|
|
320
|
+
lang: j.get("saas-locale") || "zh-CN",
|
|
321
|
+
//语言
|
|
322
|
+
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
323
|
+
//时区
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
if (O && (O != null && O.dataPath)) {
|
|
327
|
+
const J = O.dataPath.split(".").reduce((G, Q) => G[Q], U.data);
|
|
328
|
+
r.componentProps.options = M(J, O.dataKey, O.dataValue);
|
|
329
|
+
} else
|
|
330
|
+
r.componentProps.options = M(U.data, O.dataKey, O.dataValue);
|
|
331
|
+
return r;
|
|
332
|
+
}
|
|
333
|
+
return r;
|
|
334
|
+
}
|
|
335
|
+
function M(r, S, R) {
|
|
336
|
+
return r && Object.prototype.toString.call(r) === "[object Array]" ? r.map((O) => O.children && O.children.length ? {
|
|
337
|
+
label: O[S],
|
|
338
|
+
value: O[R] + "",
|
|
339
|
+
children: M(O.children, S, R)
|
|
340
|
+
} : {
|
|
341
|
+
label: O[S],
|
|
342
|
+
value: O[R] + ""
|
|
343
|
+
}) : [];
|
|
344
|
+
}
|
|
345
|
+
K(
|
|
346
|
+
() => a.componentSchema,
|
|
347
|
+
(r) => {
|
|
348
|
+
Je(t, r, ["children"]) || (pe(t, ne(r)), p());
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
deep: !0
|
|
352
|
+
}
|
|
353
|
+
);
|
|
354
|
+
function p() {
|
|
355
|
+
A.isDesignMode.value && typeof t.field == "string" && (t.field += "-design-mode");
|
|
356
|
+
}
|
|
357
|
+
(a.resetFormData || N) && (i = {});
|
|
358
|
+
const E = n, $ = F(), P = F(), y = (r) => {
|
|
359
|
+
P.value = r;
|
|
360
|
+
}, H = Ze();
|
|
361
|
+
Object.keys(H).length && k("nodeAttrs", H);
|
|
362
|
+
const z = Re(null), I = ee(() => {
|
|
363
|
+
var r, S;
|
|
364
|
+
return (r = t.componentProps) != null && r.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((S = t.show) == null ? void 0 : S.call(t, { values: i })) ?? !0;
|
|
365
|
+
}), l = ee(() => {
|
|
366
|
+
var O;
|
|
367
|
+
const r = I.value && ((O = t.rules) == null ? void 0 : O.map((U) => ({
|
|
368
|
+
...U,
|
|
369
|
+
validator: U.validator && A.funcs.value[U.validator]
|
|
370
|
+
// 自定义校验函数
|
|
371
|
+
})));
|
|
372
|
+
let S = t.field;
|
|
373
|
+
a.ruleField ? S = a.ruleField : m && t.field && (S = ne(m), S.push(t.field));
|
|
374
|
+
const R = {
|
|
375
|
+
...t,
|
|
376
|
+
rules: r,
|
|
377
|
+
rule: r,
|
|
378
|
+
field: S
|
|
379
|
+
};
|
|
380
|
+
return R.children && delete R.children, R;
|
|
381
|
+
}), B = ee(() => {
|
|
382
|
+
var R, O, U;
|
|
383
|
+
const r = ((R = c.value) == null ? void 0 : R.bindModel) ?? "modelValue", S = {};
|
|
384
|
+
return t.on && Object.keys(t.on).forEach((f) => {
|
|
385
|
+
S[`on${st(f)}`] = (...J) => A.doActions(t.on[f], ...J);
|
|
386
|
+
}), t.type === "selectpage" && (t.componentProps.defaultData = {
|
|
387
|
+
value: i[t.field],
|
|
388
|
+
label: i[i[t.field]]
|
|
389
|
+
}), {
|
|
390
|
+
...a,
|
|
391
|
+
...t.componentProps,
|
|
392
|
+
sourceDateUrl: a.sourceDateUrl,
|
|
393
|
+
// 为了避免禁用对超链接输入框点击的影响
|
|
394
|
+
disabled: a.componentSchema.type === "input" && a.componentSchema.componentProps && ((O = a.componentSchema.componentProps) != null && O.isLink) ? !1 : (_ == null ? void 0 : _.value) || ((U = t.componentProps) == null ? void 0 : U.disabled),
|
|
395
|
+
bindModel: r,
|
|
396
|
+
...S
|
|
397
|
+
};
|
|
398
|
+
}), c = ee(() => q.getComponentConfingByType(t.type) ?? null);
|
|
399
|
+
Ee(() => {
|
|
400
|
+
v.value = a.modelValue ?? i[t.field ?? ""];
|
|
401
|
+
}), K(
|
|
402
|
+
() => v.value,
|
|
403
|
+
() => {
|
|
404
|
+
v.value !== (a.modelValue ?? i[t.field ?? ""]) && h(v.value);
|
|
405
|
+
}
|
|
406
|
+
), K(
|
|
407
|
+
() => $.value,
|
|
408
|
+
() => {
|
|
409
|
+
u();
|
|
410
|
+
},
|
|
411
|
+
{ immediate: !0 }
|
|
412
|
+
);
|
|
413
|
+
function u() {
|
|
414
|
+
var S;
|
|
415
|
+
const r = $.value || d;
|
|
416
|
+
t != null && t.id && r && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (r.setValue = h, r.getValue = () => i[t.field] || a.modelValue), r.setAttr = (R, O) => (t.componentProps || (t.componentProps = {}), t.componentProps[R] = O), r.getAttr = (R) => t.componentProps[R], A.addComponentInstance(t == null ? void 0 : t.id, r), (S = c.value) != null && S.defaultSchema.input && t.noFormItem !== !0 && P.value && A.addComponentInstance((t == null ? void 0 : t.id) + "formItem", P.value));
|
|
417
|
+
}
|
|
418
|
+
function C() {
|
|
419
|
+
var r;
|
|
420
|
+
t.id && (A.removeComponentInstance(t == null ? void 0 : t.id), (r = c.value) != null && r.defaultSchema.input && t.noFormItem !== !0 && A.removeComponentInstance((t == null ? void 0 : t.id) + "formItem"));
|
|
421
|
+
}
|
|
422
|
+
async function V() {
|
|
423
|
+
var S, R, O;
|
|
424
|
+
if (t = await D(t), typeof ((S = t.componentProps) == null ? void 0 : S.defaultValue) < "u") {
|
|
425
|
+
const U = A.isDesignMode.value ? (R = t.componentProps) == null ? void 0 : R.defaultValue : i[t.field] ?? ((O = t.componentProps) == null ? void 0 : O.defaultValue);
|
|
426
|
+
h(ne(U));
|
|
427
|
+
}
|
|
428
|
+
if (t.type === "slot") {
|
|
429
|
+
const U = t.slotName;
|
|
430
|
+
if (!U) return;
|
|
431
|
+
z.value = fe({
|
|
432
|
+
setup() {
|
|
433
|
+
return () => X(w, U, {
|
|
434
|
+
componentSchema: t,
|
|
435
|
+
model: i
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
const r = q.getComponent(t.type);
|
|
442
|
+
if (!r) {
|
|
443
|
+
console.error(`组件${t.type}未注册`);
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
if (typeof r == "function") {
|
|
447
|
+
const U = await r();
|
|
448
|
+
z.value = U.default ?? U;
|
|
449
|
+
} else
|
|
450
|
+
r && (z.value = r);
|
|
451
|
+
}
|
|
452
|
+
function x(r) {
|
|
453
|
+
Object.prototype.toString.call(r) === "[object Array]" ? r.forEach((S) => {
|
|
454
|
+
i[S.value] = S.label;
|
|
455
|
+
}) : i[r.value] = r.label, a != null && a.id ? re.emit("updateformData" + (a == null ? void 0 : a.id), i) : re.emit("updateformData", i);
|
|
456
|
+
}
|
|
457
|
+
function h(r) {
|
|
458
|
+
E("update:modelValue", r), E("change", r), t.field && (i[t.field] = r), a != null && a.id ? re.emit("updateformData" + (a == null ? void 0 : a.id), i) : re.emit("updateformData", i);
|
|
459
|
+
}
|
|
460
|
+
function L(r) {
|
|
461
|
+
E("update:dynamicId", r);
|
|
462
|
+
}
|
|
463
|
+
let T = null;
|
|
464
|
+
return K(
|
|
465
|
+
() => t,
|
|
466
|
+
async (r) => {
|
|
467
|
+
const S = JSON.stringify({
|
|
468
|
+
...r,
|
|
469
|
+
children: void 0,
|
|
470
|
+
componentProps: {
|
|
471
|
+
...r.componentProps,
|
|
472
|
+
options: null
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
if (S === T)
|
|
476
|
+
return !1;
|
|
477
|
+
T = S, V();
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
immediate: !0,
|
|
481
|
+
deep: !0
|
|
482
|
+
}
|
|
483
|
+
), Ue(C), (r, S) => {
|
|
484
|
+
var O;
|
|
485
|
+
const R = Ge("ENode");
|
|
486
|
+
return Y(), ge(Te, null, [
|
|
487
|
+
o.value ? (Y(), ge("div", pt, [
|
|
488
|
+
te("div", mt, [
|
|
489
|
+
S[1] || (S[1] = Qe('<div class="epic-loading-wave" data-v-685cd0a7><div class="wave" data-v-685cd0a7></div><div class="wave" data-v-685cd0a7></div><div class="wave" data-v-685cd0a7></div><div class="wave" data-v-685cd0a7></div><div class="wave" data-v-685cd0a7></div></div>', 1)),
|
|
490
|
+
te("span", ht, Ye(s.value), 1)
|
|
491
|
+
])
|
|
492
|
+
])) : Ne("", !0),
|
|
493
|
+
z.value && I.value ? (Y(), ae(ft, {
|
|
494
|
+
key: 1,
|
|
495
|
+
hasFormItem: W(t).noFormItem !== !0 && ((O = c.value) == null ? void 0 : O.defaultSchema.input),
|
|
496
|
+
formItemProps: l.value,
|
|
497
|
+
onUpdateFormItemRef: y
|
|
498
|
+
}, {
|
|
499
|
+
default: Z(() => [
|
|
500
|
+
(Y(), ae(qe(z.value), xe({
|
|
501
|
+
ref_key: "componentInstance",
|
|
502
|
+
ref: $,
|
|
503
|
+
onVnodeMounted: u,
|
|
504
|
+
model: W(i),
|
|
505
|
+
sourceDateUrl: a.sourceDateUrl
|
|
506
|
+
}, { ...B.value }, {
|
|
507
|
+
[B.value.bindModel]: v.value,
|
|
508
|
+
["onUpdate:" + B.value.bindModel]: S[0] || (S[0] = (U) => v.value = U),
|
|
509
|
+
[`onUpdate:${B.value.bindModel}` || ""]: h,
|
|
510
|
+
"onUpdate:modelValueLabel": x,
|
|
511
|
+
"onUpdate:dynamicId": L,
|
|
512
|
+
"onUpdate:ocrData": b,
|
|
513
|
+
"onUpdate:selectFillData": g
|
|
514
|
+
}), {
|
|
515
|
+
node: Z((U) => [
|
|
516
|
+
oe(R, xe({
|
|
517
|
+
id: a.id
|
|
518
|
+
}, U, {
|
|
519
|
+
sourceDateUrl: a.sourceDateUrl
|
|
520
|
+
}), null, 16, ["id", "sourceDateUrl"])
|
|
521
|
+
]),
|
|
522
|
+
"edit-node": Z(() => [
|
|
523
|
+
X(r.$slots, "edit-node", {}, void 0, !0)
|
|
524
|
+
]),
|
|
525
|
+
_: 3
|
|
526
|
+
}, 16, ["model", "sourceDateUrl"]))
|
|
527
|
+
]),
|
|
528
|
+
_: 3
|
|
529
|
+
}, 8, ["hasFormItem", "formItemProps"])) : Ne("", !0)
|
|
530
|
+
], 64);
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
}), gt = /* @__PURE__ */ ut(vt, [["__scopeId", "data-v-685cd0a7"]]);
|
|
534
|
+
function yt() {
|
|
535
|
+
const e = F(!1), n = ze(), o = F({});
|
|
536
|
+
function s() {
|
|
537
|
+
return new Promise((t) => {
|
|
538
|
+
if (e.value)
|
|
539
|
+
t();
|
|
540
|
+
else {
|
|
541
|
+
const b = K(e, () => {
|
|
542
|
+
b(), t();
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
async function d(t = "default") {
|
|
548
|
+
var g;
|
|
549
|
+
await s();
|
|
550
|
+
const b = (g = o.value) == null ? void 0 : g[t];
|
|
551
|
+
if (!b) throw new Error(`表单 [name=${t}] 不存在`);
|
|
552
|
+
return b;
|
|
553
|
+
}
|
|
554
|
+
async function a(t, b) {
|
|
555
|
+
const g = await d(t);
|
|
556
|
+
return ne(await b(g));
|
|
557
|
+
}
|
|
558
|
+
async function v(t = "default") {
|
|
559
|
+
return await a(t, (b) => b.getData());
|
|
560
|
+
}
|
|
561
|
+
function i(t, b = "default", g = void 0) {
|
|
562
|
+
var D, M;
|
|
563
|
+
if (g && Object.keys(g).length) {
|
|
564
|
+
let p = function(y) {
|
|
565
|
+
let H = [];
|
|
566
|
+
return y.forEach((z) => {
|
|
567
|
+
z.children && (H = [...H, ...p(z.children)]), H.push(z);
|
|
568
|
+
}), H;
|
|
569
|
+
}, $ = function(y) {
|
|
570
|
+
var z;
|
|
571
|
+
let H = p((z = g == null ? void 0 : g.schemas[0]) == null ? void 0 : z.children);
|
|
572
|
+
return Object.keys(y).forEach((I) => {
|
|
573
|
+
var c, u, C, V, x, h, L;
|
|
574
|
+
const l = H.find((T) => T.field === I), B = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
575
|
+
if ((l && (l == null ? void 0 : l.type) === "checkbox" || (l == null ? void 0 : l.type) === "select" && ((c = l == null ? void 0 : l.componentProps) != null && c.multiple) || (l == null ? void 0 : l.type) === "cascader" && !((C = (u = l == null ? void 0 : l.componentProps) == null ? void 0 : u.props) != null && C.multiple) || (l == null ? void 0 : l.type) === "date" && B.includes((V = l == null ? void 0 : l.componentProps) == null ? void 0 : V.type)) && typeof y[I] == "string")
|
|
576
|
+
y[I] = (x = y[I]) == null ? void 0 : x.split(",");
|
|
577
|
+
else if ((l == null ? void 0 : l.type) === "cascader" && ((L = (h = l == null ? void 0 : l.componentProps) == null ? void 0 : h.props) != null && L.multiple) && typeof y[I] == "string")
|
|
578
|
+
y[I].indexOf(";") === -1 && y[I].indexOf(";") === -1 ? y[I][y[I]] : y[I].indexOf(";") > -1 ? y[I] = y[I].split(";").map((T) => T.split(",")) : y[I].indexOf(";") === -1 ? y[I] = y[I].split(",") : y[I].indexOf(";") > -1 ? y[I] = y[I].split(";").map((T) => T.split(",")) : y[I].indexOf(";") === -1 && (y[I] = y[I].split(","));
|
|
579
|
+
else if (((l == null ? void 0 : l.type) === "upload-image" || (l == null ? void 0 : l.type) === "upload-file") && typeof y[I] == "string") {
|
|
580
|
+
let T = [];
|
|
581
|
+
Object.entries(y).forEach(([r, S]) => {
|
|
582
|
+
y[I] === S && r !== l.field && r.indexOf("@") > -1 && r.indexOf(I) > -1 && (T = r.split("@")[1].split(","));
|
|
583
|
+
}), y[I] = y[I].split(",").map((r, S) => ({
|
|
584
|
+
url: r,
|
|
585
|
+
name: T[S] || r
|
|
586
|
+
}));
|
|
587
|
+
} else (l == null ? void 0 : l.type) === "number" || (l == null ? void 0 : l.type) === "slider" ? y[I] = Number(y[I]) : (l == null ? void 0 : l.type) === "switch" && (y[I] = typeof y[I] == "boolean" ? y[I] : y[I].indexOf("true") > -1);
|
|
588
|
+
}), y;
|
|
589
|
+
}(t);
|
|
590
|
+
n.setFormData($, b);
|
|
591
|
+
const P = (D = o.value) == null ? void 0 : D[b];
|
|
592
|
+
P == null || P.clearValidate();
|
|
593
|
+
} else {
|
|
594
|
+
n.setFormData(t, b);
|
|
595
|
+
const p = (M = o.value) == null ? void 0 : M[b];
|
|
596
|
+
p == null || p.clearValidate();
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
async function w(t = "default") {
|
|
600
|
+
return await a(t, async (b) => (await b.validate(), await b.getData()));
|
|
601
|
+
}
|
|
602
|
+
async function A(t) {
|
|
603
|
+
await s();
|
|
604
|
+
const b = {};
|
|
605
|
+
for (const g in o.value) {
|
|
606
|
+
const D = o.value[g];
|
|
607
|
+
D && (b[g] = ne(await t(D)));
|
|
608
|
+
}
|
|
609
|
+
return b;
|
|
610
|
+
}
|
|
611
|
+
async function _() {
|
|
612
|
+
return await A((t) => t.getData());
|
|
613
|
+
}
|
|
614
|
+
function m(t) {
|
|
615
|
+
for (const b in t)
|
|
616
|
+
i(t[b], b);
|
|
617
|
+
}
|
|
618
|
+
async function N() {
|
|
619
|
+
return await A(async (t) => (await t.validate(), await t.getData()));
|
|
620
|
+
}
|
|
621
|
+
return {
|
|
622
|
+
ready: e,
|
|
623
|
+
pageManager: n,
|
|
624
|
+
forms: o,
|
|
625
|
+
getData: v,
|
|
626
|
+
setData: i,
|
|
627
|
+
validate: w,
|
|
628
|
+
getForms: _,
|
|
629
|
+
setForms: m,
|
|
630
|
+
validateAll: N,
|
|
631
|
+
getFormInstance: d
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
const wt = {
|
|
635
|
+
key: 0,
|
|
636
|
+
class: "epic-loading-box"
|
|
637
|
+
}, St = { class: "epic-builder-main" }, bt = { class: "epic-loading-box" }, Dt = /* @__PURE__ */ fe({
|
|
638
|
+
__name: "builder",
|
|
639
|
+
props: {
|
|
640
|
+
pageSchema: {},
|
|
641
|
+
formData: {},
|
|
642
|
+
disabled: { type: Boolean },
|
|
643
|
+
sourceDateUrl: {},
|
|
644
|
+
id: {}
|
|
645
|
+
},
|
|
646
|
+
emits: ["change", "ready"],
|
|
647
|
+
setup(e, { expose: n, emit: o }) {
|
|
648
|
+
const s = ue(() => import("./index-BMXnkqXx.js")), d = o, a = F([]), v = F({}), { ready: i, pageManager: w, forms: A, getData: _, setData: m, validate: N, getForms: t, setForms: b, validateAll: g, getFormInstance: D } = yt(), M = e, p = de({
|
|
649
|
+
schemas: []
|
|
650
|
+
});
|
|
651
|
+
K(
|
|
652
|
+
() => M.pageSchema,
|
|
653
|
+
(c) => {
|
|
654
|
+
pe(p, c);
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
immediate: !0,
|
|
658
|
+
deep: !0
|
|
659
|
+
}
|
|
660
|
+
), K(
|
|
661
|
+
() => M.formData,
|
|
662
|
+
(c) => {
|
|
663
|
+
if (c) {
|
|
664
|
+
let u = z(c);
|
|
665
|
+
v.value = u, m(u);
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
immediate: !0,
|
|
670
|
+
deep: !0
|
|
671
|
+
}
|
|
672
|
+
);
|
|
673
|
+
function E(c) {
|
|
674
|
+
let u = [];
|
|
675
|
+
return c.forEach((C) => {
|
|
676
|
+
C.children && (u = [...u, ...E(C.children)]), u.push(C);
|
|
677
|
+
}), u;
|
|
678
|
+
}
|
|
679
|
+
function $(c, u) {
|
|
680
|
+
function C(x) {
|
|
681
|
+
return JSON.parse(JSON.stringify(x));
|
|
682
|
+
}
|
|
683
|
+
function V(x, h) {
|
|
684
|
+
if (x.type === "card" && x.multiple && x.field && Array.isArray(h[x.field]))
|
|
685
|
+
return h[x.field].map((T) => {
|
|
686
|
+
var S;
|
|
687
|
+
const r = C({ ...x, multiple: !0 });
|
|
688
|
+
return r.children = (S = r.children) == null ? void 0 : S.map((R) => V(R, T)).flat(), r;
|
|
689
|
+
});
|
|
690
|
+
const L = C(x);
|
|
691
|
+
return Array.isArray(L.children) && (L.children = L.children.map((T) => V(T, h)).flat()), L;
|
|
692
|
+
}
|
|
693
|
+
return c.map((x) => V(x, u)).flat();
|
|
694
|
+
}
|
|
695
|
+
function P(c, u = "", C = { root: 0 }) {
|
|
696
|
+
const V = u || "root";
|
|
697
|
+
return u || (C.root = 0), C[V] === void 0 && (C[V] = 0), c.map((x) => {
|
|
698
|
+
x.field && (x.oldField = JSON.parse(JSON.stringify(x.field)));
|
|
699
|
+
const h = { ...x };
|
|
700
|
+
if (x.type === "card") {
|
|
701
|
+
const L = x.field || "";
|
|
702
|
+
x.multiple ? (h.field = u ? `${u}.${L}[${C[V]}]` : `${L}[${C[V]}]`, C[V]++) : x.field && u && (h.field = `${u}.${L}`);
|
|
703
|
+
const T = h.field || u;
|
|
704
|
+
C[T] = 0;
|
|
705
|
+
} else x.field && u && (h.field = `${u}.${x.field}`);
|
|
706
|
+
return x.children && (h.children = P(x.children, h.field || u, C)), h;
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
function y(c, u, C = "", V = {}) {
|
|
710
|
+
const x = C || "root";
|
|
711
|
+
return V[x] === void 0 && (V[x] = 0), c.forEach((h) => {
|
|
712
|
+
const L = h.field || "";
|
|
713
|
+
let T = C ? `${C}.${L}` : `${L}`;
|
|
714
|
+
h.type === "card" && h.multiple ? (typeof u[T][`${V[x]}`] == "object" ? Object.keys(u[T][`${V[x]}`]).forEach((r) => {
|
|
715
|
+
u[`${T}[${V[x]}].${r}`] = u[T][`${V[x]}`][r];
|
|
716
|
+
}) : u[`${T}[${V[x]}]`] = u[T][`${V[x]}`], h.children && (h.children = y(
|
|
717
|
+
h.children,
|
|
718
|
+
u,
|
|
719
|
+
`${T}[${V[x]}]` || C,
|
|
720
|
+
V
|
|
721
|
+
)), V[x]++) : h.children && (h.children = y(h.children, u, C, V));
|
|
722
|
+
}), V[x] = 0, u;
|
|
723
|
+
}
|
|
724
|
+
function H(c, u, C) {
|
|
725
|
+
let V = y(ne(c), ne(u));
|
|
726
|
+
return {
|
|
727
|
+
obj: P(c),
|
|
728
|
+
dataObj: V
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
function z(c) {
|
|
732
|
+
let u = E(M.pageSchema.schemas[0].children);
|
|
733
|
+
a.value = u.filter((h) => h.type === "card" && h.multiple);
|
|
734
|
+
const C = $(M.pageSchema.schemas[0].children, c);
|
|
735
|
+
let { obj: V, dataObj: x } = H(C, c, a.value);
|
|
736
|
+
return c = x, M.pageSchema.schemas[0].children = V, Object.keys(c).forEach((h) => {
|
|
737
|
+
var L, T, r, S, R, O, U;
|
|
738
|
+
if (h.indexOf("@") < 0) {
|
|
739
|
+
const f = u.find((G) => G.field === h), J = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
740
|
+
if ((f && (f == null ? void 0 : f.type) === "checkbox" || (f == null ? void 0 : f.type) === "select" && ((L = f == null ? void 0 : f.componentProps) != null && L.multiple) || (f == null ? void 0 : f.type) === "cascader" && !((r = (T = f == null ? void 0 : f.componentProps) == null ? void 0 : T.props) != null && r.multiple) || (f == null ? void 0 : f.type) === "date" && J.includes((S = f == null ? void 0 : f.componentProps) == null ? void 0 : S.type)) && typeof c[h] == "string")
|
|
741
|
+
c[h] = (R = c[h]) == null ? void 0 : R.split(",");
|
|
742
|
+
else if ((f == null ? void 0 : f.type) === "cascader" && ((U = (O = f == null ? void 0 : f.componentProps) == null ? void 0 : O.props) != null && U.multiple) && typeof c[h] == "string")
|
|
743
|
+
c[h].indexOf(";") > -1 ? c[h] = c[h].split(";").map((G) => G.split(",")) : c[h] = c[h].split(","), c[h].indexOf(";") > -1 ? c[h] = c[h].split(";").map((G) => G.split(",")) : c[h] = c[h].split(",");
|
|
744
|
+
else if (((f == null ? void 0 : f.type) === "upload-image" || (f == null ? void 0 : f.type) === "upload-file") && typeof c[h] == "string") {
|
|
745
|
+
let G = [];
|
|
746
|
+
Object.entries(c).forEach(([Q, he]) => {
|
|
747
|
+
c[h] === he && Q !== f.field && Q.indexOf("@") > -1 && Q.indexOf(h) > -1 && (G = Q.split("@")[1].split(","));
|
|
748
|
+
}), c[h] = c[h].split(",").map((Q, he) => ({
|
|
749
|
+
url: Q,
|
|
750
|
+
name: G[he] || Q
|
|
751
|
+
}));
|
|
752
|
+
} else (f == null ? void 0 : f.type) === "number" || (f == null ? void 0 : f.type) === "slider" ? c[h] = Number(c[h]) : (f == null ? void 0 : f.type) === "switch" && (c[h] = typeof c[h] == "boolean" ? c[h] : c[h].indexOf("true") > -1);
|
|
753
|
+
}
|
|
754
|
+
}), c;
|
|
755
|
+
}
|
|
756
|
+
K(
|
|
757
|
+
() => p.script,
|
|
758
|
+
(c) => {
|
|
759
|
+
c && w.setMethods(c, !0);
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
immediate: !0
|
|
763
|
+
}
|
|
764
|
+
), k("slots", Xe()), k("pageManager", w), k("forms", A), k("pageSchema", p), k(
|
|
765
|
+
"disabled",
|
|
766
|
+
ee(() => M.disabled)
|
|
767
|
+
);
|
|
768
|
+
const I = ye(), l = I == null ? void 0 : I.proxy;
|
|
769
|
+
function B() {
|
|
770
|
+
ce(() => {
|
|
771
|
+
i.value = !0, d("ready", w), l && w.addComponentInstance("builder", l);
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
return re.on("updateformData" + (M.id ? M.id : ""), (c) => {
|
|
775
|
+
d("change", c);
|
|
776
|
+
}), n({
|
|
777
|
+
ready: i,
|
|
778
|
+
pageManager: w,
|
|
779
|
+
getData: _,
|
|
780
|
+
setData: m,
|
|
781
|
+
validate: N,
|
|
782
|
+
getForms: t,
|
|
783
|
+
setForms: b,
|
|
784
|
+
validateAll: g,
|
|
785
|
+
getFormInstance: D
|
|
786
|
+
}), (c, u) => W(q).initialized.value ? (Y(), ae(Be, {
|
|
787
|
+
key: 1,
|
|
788
|
+
onResolve: B
|
|
789
|
+
}, {
|
|
790
|
+
default: Z(() => [
|
|
791
|
+
te("div", St, [
|
|
792
|
+
(Y(!0), ge(Te, null, ke(p.schemas, (C, V) => (Y(), ae(W(gt), {
|
|
793
|
+
id: M.id,
|
|
794
|
+
key: V,
|
|
795
|
+
sourceDateUrl: M.sourceDateUrl,
|
|
796
|
+
componentSchema: C
|
|
797
|
+
}, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
|
|
798
|
+
])
|
|
799
|
+
]),
|
|
800
|
+
fallback: Z(() => [
|
|
801
|
+
te("div", bt, [
|
|
802
|
+
oe(W(s))
|
|
803
|
+
])
|
|
804
|
+
]),
|
|
805
|
+
_: 1
|
|
806
|
+
})) : (Y(), ge("div", wt));
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
function Ce(e) {
|
|
810
|
+
return nt() ? (ot(e), !0) : !1;
|
|
811
|
+
}
|
|
812
|
+
function Et(e) {
|
|
813
|
+
let n = 0, o, s;
|
|
814
|
+
const d = () => {
|
|
815
|
+
n -= 1, s && n <= 0 && (s.stop(), o = void 0, s = void 0);
|
|
816
|
+
};
|
|
817
|
+
return (...a) => (n += 1, s || (s = je(!0), o = s.run(() => e(...a))), Ce(d), o);
|
|
818
|
+
}
|
|
819
|
+
function ie(e) {
|
|
820
|
+
return typeof e == "function" ? e() : W(e);
|
|
821
|
+
}
|
|
822
|
+
const Ot = typeof window < "u" && typeof document < "u";
|
|
823
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
824
|
+
const At = (e) => typeof e < "u", _t = Object.prototype.toString, It = (e) => _t.call(e) === "[object Object]", xt = () => {
|
|
825
|
+
};
|
|
826
|
+
function Nt(e, n) {
|
|
827
|
+
function o(...s) {
|
|
828
|
+
return new Promise((d, a) => {
|
|
829
|
+
Promise.resolve(e(() => n.apply(this, s), { fn: n, thisArg: this, args: s })).then(d).catch(a);
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
return o;
|
|
833
|
+
}
|
|
834
|
+
const Le = (e) => e();
|
|
835
|
+
function $t(e = Le) {
|
|
836
|
+
const n = F(!0);
|
|
837
|
+
function o() {
|
|
838
|
+
n.value = !1;
|
|
839
|
+
}
|
|
840
|
+
function s() {
|
|
841
|
+
n.value = !0;
|
|
842
|
+
}
|
|
843
|
+
const d = (...a) => {
|
|
844
|
+
n.value && e(...a);
|
|
845
|
+
};
|
|
846
|
+
return { isActive: tt(n), pause: o, resume: s, eventFilter: d };
|
|
847
|
+
}
|
|
848
|
+
function Ft(e) {
|
|
849
|
+
return ye();
|
|
850
|
+
}
|
|
851
|
+
function Pt(e, n, o = {}) {
|
|
852
|
+
const {
|
|
853
|
+
eventFilter: s = Le,
|
|
854
|
+
...d
|
|
855
|
+
} = o;
|
|
856
|
+
return K(
|
|
857
|
+
e,
|
|
858
|
+
Nt(
|
|
859
|
+
s,
|
|
860
|
+
n
|
|
861
|
+
),
|
|
862
|
+
d
|
|
863
|
+
);
|
|
864
|
+
}
|
|
865
|
+
function Ct(e, n, o = {}) {
|
|
866
|
+
const {
|
|
867
|
+
eventFilter: s,
|
|
868
|
+
...d
|
|
869
|
+
} = o, { eventFilter: a, pause: v, resume: i, isActive: w } = $t(s);
|
|
870
|
+
return { stop: Pt(
|
|
871
|
+
e,
|
|
872
|
+
n,
|
|
873
|
+
{
|
|
874
|
+
...d,
|
|
875
|
+
eventFilter: a
|
|
876
|
+
}
|
|
877
|
+
), pause: v, resume: i, isActive: w };
|
|
878
|
+
}
|
|
879
|
+
function We(e, n = !0, o) {
|
|
880
|
+
Ft() ? Fe(e, o) : n ? e() : ce(e);
|
|
881
|
+
}
|
|
882
|
+
function Vt(e = !1, n = {}) {
|
|
883
|
+
const {
|
|
884
|
+
truthyValue: o = !0,
|
|
885
|
+
falsyValue: s = !1
|
|
886
|
+
} = n, d = et(e), a = F(e);
|
|
887
|
+
function v(i) {
|
|
888
|
+
if (arguments.length)
|
|
889
|
+
return a.value = i, a.value;
|
|
890
|
+
{
|
|
891
|
+
const w = ie(o);
|
|
892
|
+
return a.value = a.value === w ? ie(s) : w, a.value;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
return d ? v : [a, v];
|
|
896
|
+
}
|
|
897
|
+
function mn(e, n, o) {
|
|
898
|
+
const s = K(e, (...d) => (ce(() => s()), n(...d)), o);
|
|
899
|
+
return s;
|
|
900
|
+
}
|
|
901
|
+
const me = Ot ? window : void 0;
|
|
902
|
+
function le(e) {
|
|
903
|
+
var n;
|
|
904
|
+
const o = ie(e);
|
|
905
|
+
return (n = o == null ? void 0 : o.$el) != null ? n : o;
|
|
906
|
+
}
|
|
907
|
+
function $e(...e) {
|
|
908
|
+
let n, o, s, d;
|
|
909
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, s, d] = e, n = me) : [n, o, s, d] = e, !n)
|
|
910
|
+
return xt;
|
|
911
|
+
Array.isArray(o) || (o = [o]), Array.isArray(s) || (s = [s]);
|
|
912
|
+
const a = [], v = () => {
|
|
913
|
+
a.forEach((_) => _()), a.length = 0;
|
|
914
|
+
}, i = (_, m, N, t) => (_.addEventListener(m, N, t), () => _.removeEventListener(m, N, t)), w = K(
|
|
915
|
+
() => [le(n), ie(d)],
|
|
916
|
+
([_, m]) => {
|
|
917
|
+
if (v(), !_)
|
|
918
|
+
return;
|
|
919
|
+
const N = It(m) ? { ...m } : m;
|
|
920
|
+
a.push(
|
|
921
|
+
...o.flatMap((t) => s.map((b) => i(_, t, b, N)))
|
|
922
|
+
);
|
|
923
|
+
},
|
|
924
|
+
{ immediate: !0, flush: "post" }
|
|
925
|
+
), A = () => {
|
|
926
|
+
w(), v();
|
|
927
|
+
};
|
|
928
|
+
return Ce(A), A;
|
|
929
|
+
}
|
|
930
|
+
function Mt(e) {
|
|
931
|
+
return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
|
|
932
|
+
}
|
|
933
|
+
function He(...e) {
|
|
934
|
+
let n, o, s = {};
|
|
935
|
+
e.length === 3 ? (n = e[0], o = e[1], s = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (n = !0, o = e[0], s = e[1]) : (n = e[0], o = e[1]) : (n = !0, o = e[0]);
|
|
936
|
+
const {
|
|
937
|
+
target: d = me,
|
|
938
|
+
eventName: a = "keydown",
|
|
939
|
+
passive: v = !1,
|
|
940
|
+
dedupe: i = !1
|
|
941
|
+
} = s, w = Mt(n);
|
|
942
|
+
return $e(d, a, (_) => {
|
|
943
|
+
_.repeat && ie(i) || w(_) && o(_);
|
|
944
|
+
}, v);
|
|
945
|
+
}
|
|
946
|
+
function Ae(e, n, o = {}) {
|
|
947
|
+
return He(e, n, { ...o, eventName: "keydown" });
|
|
948
|
+
}
|
|
949
|
+
function _e(e, n, o = {}) {
|
|
950
|
+
return He(e, n, { ...o, eventName: "keyup" });
|
|
951
|
+
}
|
|
952
|
+
function Rt() {
|
|
953
|
+
const e = F(!1), n = ye();
|
|
954
|
+
return n && Fe(() => {
|
|
955
|
+
e.value = !0;
|
|
956
|
+
}, n), e;
|
|
957
|
+
}
|
|
958
|
+
function Ut(e) {
|
|
959
|
+
const n = Rt();
|
|
960
|
+
return ee(() => (n.value, !!e()));
|
|
961
|
+
}
|
|
962
|
+
function Tt(e) {
|
|
963
|
+
return JSON.parse(JSON.stringify(e));
|
|
964
|
+
}
|
|
965
|
+
const Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, be = "__vueuse_ssr_handlers__", Bt = /* @__PURE__ */ Jt();
|
|
966
|
+
function Jt() {
|
|
967
|
+
return be in Se || (Se[be] = Se[be] || {}), Se[be];
|
|
968
|
+
}
|
|
969
|
+
function zt(e, n) {
|
|
970
|
+
return Bt[e] || n;
|
|
971
|
+
}
|
|
972
|
+
function Lt(e) {
|
|
973
|
+
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
|
|
974
|
+
}
|
|
975
|
+
const Wt = {
|
|
976
|
+
boolean: {
|
|
977
|
+
read: (e) => e === "true",
|
|
978
|
+
write: (e) => String(e)
|
|
979
|
+
},
|
|
980
|
+
object: {
|
|
981
|
+
read: (e) => JSON.parse(e),
|
|
982
|
+
write: (e) => JSON.stringify(e)
|
|
983
|
+
},
|
|
984
|
+
number: {
|
|
985
|
+
read: (e) => Number.parseFloat(e),
|
|
986
|
+
write: (e) => String(e)
|
|
987
|
+
},
|
|
988
|
+
any: {
|
|
989
|
+
read: (e) => e,
|
|
990
|
+
write: (e) => String(e)
|
|
991
|
+
},
|
|
992
|
+
string: {
|
|
993
|
+
read: (e) => e,
|
|
994
|
+
write: (e) => String(e)
|
|
995
|
+
},
|
|
996
|
+
map: {
|
|
997
|
+
read: (e) => new Map(JSON.parse(e)),
|
|
998
|
+
write: (e) => JSON.stringify(Array.from(e.entries()))
|
|
999
|
+
},
|
|
1000
|
+
set: {
|
|
1001
|
+
read: (e) => new Set(JSON.parse(e)),
|
|
1002
|
+
write: (e) => JSON.stringify(Array.from(e))
|
|
1003
|
+
},
|
|
1004
|
+
date: {
|
|
1005
|
+
read: (e) => new Date(e),
|
|
1006
|
+
write: (e) => e.toISOString()
|
|
1007
|
+
}
|
|
1008
|
+
}, Me = "vueuse-storage";
|
|
1009
|
+
function hn(e, n, o, s = {}) {
|
|
1010
|
+
var d;
|
|
1011
|
+
const {
|
|
1012
|
+
flush: a = "pre",
|
|
1013
|
+
deep: v = !0,
|
|
1014
|
+
listenToStorageChanges: i = !0,
|
|
1015
|
+
writeDefaults: w = !0,
|
|
1016
|
+
mergeDefaults: A = !1,
|
|
1017
|
+
shallow: _,
|
|
1018
|
+
window: m = me,
|
|
1019
|
+
eventFilter: N,
|
|
1020
|
+
onError: t = (l) => {
|
|
1021
|
+
console.error(l);
|
|
1022
|
+
},
|
|
1023
|
+
initOnMounted: b
|
|
1024
|
+
} = s, g = (_ ? Re : F)(typeof n == "function" ? n() : n);
|
|
1025
|
+
if (!o)
|
|
1026
|
+
try {
|
|
1027
|
+
o = zt("getDefaultStorage", () => {
|
|
1028
|
+
var l;
|
|
1029
|
+
return (l = me) == null ? void 0 : l.localStorage;
|
|
1030
|
+
})();
|
|
1031
|
+
} catch (l) {
|
|
1032
|
+
t(l);
|
|
1033
|
+
}
|
|
1034
|
+
if (!o)
|
|
1035
|
+
return g;
|
|
1036
|
+
const D = ie(n), M = Lt(D), p = (d = s.serializer) != null ? d : Wt[M], { pause: E, resume: $ } = Ct(
|
|
1037
|
+
g,
|
|
1038
|
+
() => y(g.value),
|
|
1039
|
+
{ flush: a, deep: v, eventFilter: N }
|
|
1040
|
+
);
|
|
1041
|
+
m && i && We(() => {
|
|
1042
|
+
o instanceof Storage ? $e(m, "storage", z) : $e(m, Me, I), b && z();
|
|
1043
|
+
}), b || z();
|
|
1044
|
+
function P(l, B) {
|
|
1045
|
+
if (m) {
|
|
1046
|
+
const c = {
|
|
1047
|
+
key: e,
|
|
1048
|
+
oldValue: l,
|
|
1049
|
+
newValue: B,
|
|
1050
|
+
storageArea: o
|
|
1051
|
+
};
|
|
1052
|
+
m.dispatchEvent(o instanceof Storage ? new StorageEvent("storage", c) : new CustomEvent(Me, {
|
|
1053
|
+
detail: c
|
|
1054
|
+
}));
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
function y(l) {
|
|
1058
|
+
try {
|
|
1059
|
+
const B = o.getItem(e);
|
|
1060
|
+
if (l == null)
|
|
1061
|
+
P(B, null), o.removeItem(e);
|
|
1062
|
+
else {
|
|
1063
|
+
const c = p.write(l);
|
|
1064
|
+
B !== c && (o.setItem(e, c), P(B, c));
|
|
1065
|
+
}
|
|
1066
|
+
} catch (B) {
|
|
1067
|
+
t(B);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
function H(l) {
|
|
1071
|
+
const B = l ? l.newValue : o.getItem(e);
|
|
1072
|
+
if (B == null)
|
|
1073
|
+
return w && D != null && o.setItem(e, p.write(D)), D;
|
|
1074
|
+
if (!l && A) {
|
|
1075
|
+
const c = p.read(B);
|
|
1076
|
+
return typeof A == "function" ? A(c, D) : M === "object" && !Array.isArray(c) ? { ...D, ...c } : c;
|
|
1077
|
+
} else return typeof B != "string" ? B : p.read(B);
|
|
1078
|
+
}
|
|
1079
|
+
function z(l) {
|
|
1080
|
+
if (!(l && l.storageArea !== o)) {
|
|
1081
|
+
if (l && l.key == null) {
|
|
1082
|
+
g.value = D;
|
|
1083
|
+
return;
|
|
1084
|
+
}
|
|
1085
|
+
if (!(l && l.key !== e)) {
|
|
1086
|
+
E();
|
|
1087
|
+
try {
|
|
1088
|
+
(l == null ? void 0 : l.newValue) !== p.write(g.value) && (g.value = H(l));
|
|
1089
|
+
} catch (B) {
|
|
1090
|
+
t(B);
|
|
1091
|
+
} finally {
|
|
1092
|
+
l ? ce($) : $();
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
function I(l) {
|
|
1098
|
+
z(l.detail);
|
|
1099
|
+
}
|
|
1100
|
+
return g;
|
|
1101
|
+
}
|
|
1102
|
+
function Ht(e, n, o = {}) {
|
|
1103
|
+
const { window: s = me, ...d } = o;
|
|
1104
|
+
let a;
|
|
1105
|
+
const v = Ut(() => s && "ResizeObserver" in s), i = () => {
|
|
1106
|
+
a && (a.disconnect(), a = void 0);
|
|
1107
|
+
}, w = ee(() => {
|
|
1108
|
+
const m = ie(e);
|
|
1109
|
+
return Array.isArray(m) ? m.map((N) => le(N)) : [le(m)];
|
|
1110
|
+
}), A = K(
|
|
1111
|
+
w,
|
|
1112
|
+
(m) => {
|
|
1113
|
+
if (i(), v.value && s) {
|
|
1114
|
+
a = new ResizeObserver(n);
|
|
1115
|
+
for (const N of m)
|
|
1116
|
+
N && a.observe(N, d);
|
|
1117
|
+
}
|
|
1118
|
+
},
|
|
1119
|
+
{ immediate: !0, flush: "post" }
|
|
1120
|
+
), _ = () => {
|
|
1121
|
+
i(), A();
|
|
1122
|
+
};
|
|
1123
|
+
return Ce(_), {
|
|
1124
|
+
isSupported: v,
|
|
1125
|
+
stop: _
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
function vn(e, n = { width: 0, height: 0 }, o = {}) {
|
|
1129
|
+
const { window: s = me, box: d = "content-box" } = o, a = ee(() => {
|
|
1130
|
+
var m, N;
|
|
1131
|
+
return (N = (m = le(e)) == null ? void 0 : m.namespaceURI) == null ? void 0 : N.includes("svg");
|
|
1132
|
+
}), v = F(n.width), i = F(n.height), { stop: w } = Ht(
|
|
1133
|
+
e,
|
|
1134
|
+
([m]) => {
|
|
1135
|
+
const N = d === "border-box" ? m.borderBoxSize : d === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
|
|
1136
|
+
if (s && a.value) {
|
|
1137
|
+
const t = le(e);
|
|
1138
|
+
if (t) {
|
|
1139
|
+
const b = t.getBoundingClientRect();
|
|
1140
|
+
v.value = b.width, i.value = b.height;
|
|
1141
|
+
}
|
|
1142
|
+
} else if (N) {
|
|
1143
|
+
const t = Array.isArray(N) ? N : [N];
|
|
1144
|
+
v.value = t.reduce((b, { inlineSize: g }) => b + g, 0), i.value = t.reduce((b, { blockSize: g }) => b + g, 0);
|
|
1145
|
+
} else
|
|
1146
|
+
v.value = m.contentRect.width, i.value = m.contentRect.height;
|
|
1147
|
+
},
|
|
1148
|
+
o
|
|
1149
|
+
);
|
|
1150
|
+
We(() => {
|
|
1151
|
+
const m = le(e);
|
|
1152
|
+
m && (v.value = "offsetWidth" in m ? m.offsetWidth : n.width, i.value = "offsetHeight" in m ? m.offsetHeight : n.height);
|
|
1153
|
+
});
|
|
1154
|
+
const A = K(
|
|
1155
|
+
() => le(e),
|
|
1156
|
+
(m) => {
|
|
1157
|
+
v.value = m ? n.width : 0, i.value = m ? n.height : 0;
|
|
1158
|
+
}
|
|
1159
|
+
);
|
|
1160
|
+
function _() {
|
|
1161
|
+
w(), A();
|
|
1162
|
+
}
|
|
1163
|
+
return {
|
|
1164
|
+
width: v,
|
|
1165
|
+
height: i,
|
|
1166
|
+
stop: _
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
function gn(e, n, o, s = {}) {
|
|
1170
|
+
var d, a, v;
|
|
1171
|
+
const {
|
|
1172
|
+
clone: i = !1,
|
|
1173
|
+
passive: w = !1,
|
|
1174
|
+
eventName: A,
|
|
1175
|
+
deep: _ = !1,
|
|
1176
|
+
defaultValue: m,
|
|
1177
|
+
shouldEmit: N
|
|
1178
|
+
} = s, t = ye(), b = o || (t == null ? void 0 : t.emit) || ((d = t == null ? void 0 : t.$emit) == null ? void 0 : d.bind(t)) || ((v = (a = t == null ? void 0 : t.proxy) == null ? void 0 : a.$emit) == null ? void 0 : v.bind(t == null ? void 0 : t.proxy));
|
|
1179
|
+
let g = A;
|
|
1180
|
+
n || (n = "modelValue"), g = g || `update:${n.toString()}`;
|
|
1181
|
+
const D = (E) => i ? typeof i == "function" ? i(E) : Tt(E) : E, M = () => At(e[n]) ? D(e[n]) : m, p = (E) => {
|
|
1182
|
+
N ? N(E) && b(g, E) : b(g, E);
|
|
1183
|
+
};
|
|
1184
|
+
if (w) {
|
|
1185
|
+
const E = M(), $ = F(E);
|
|
1186
|
+
let P = !1;
|
|
1187
|
+
return K(
|
|
1188
|
+
() => e[n],
|
|
1189
|
+
(y) => {
|
|
1190
|
+
P || (P = !0, $.value = D(y), ce(() => P = !1));
|
|
1191
|
+
}
|
|
1192
|
+
), K(
|
|
1193
|
+
$,
|
|
1194
|
+
(y) => {
|
|
1195
|
+
!P && (y !== e[n] || _) && p(y);
|
|
1196
|
+
},
|
|
1197
|
+
{ deep: _ }
|
|
1198
|
+
), $;
|
|
1199
|
+
} else
|
|
1200
|
+
return ee({
|
|
1201
|
+
get() {
|
|
1202
|
+
return M();
|
|
1203
|
+
},
|
|
1204
|
+
set(E) {
|
|
1205
|
+
p(E);
|
|
1206
|
+
}
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
function yn() {
|
|
1210
|
+
const { isDark: e } = Oe(), n = Vt(e);
|
|
1211
|
+
return {
|
|
1212
|
+
isDark: e,
|
|
1213
|
+
toggleDark: n
|
|
1214
|
+
};
|
|
1215
|
+
}
|
|
1216
|
+
function Kt() {
|
|
1217
|
+
const e = F(!1);
|
|
1218
|
+
return Fe(() => {
|
|
1219
|
+
Zt(e), Gt(e);
|
|
1220
|
+
}), K(
|
|
1221
|
+
() => e.value,
|
|
1222
|
+
() => {
|
|
1223
|
+
e.value ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
1224
|
+
}
|
|
1225
|
+
), {
|
|
1226
|
+
isDark: e
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
function Zt(e) {
|
|
1230
|
+
var n = document.documentElement;
|
|
1231
|
+
n && (n.classList.contains("dark") ? e.value = !0 : e.value = !1);
|
|
1232
|
+
}
|
|
1233
|
+
function Gt(e) {
|
|
1234
|
+
var n = document.querySelector("html"), o = new MutationObserver(function(s) {
|
|
1235
|
+
for (var d of s)
|
|
1236
|
+
if (d.type === "attributes" && d.attributeName === "class") {
|
|
1237
|
+
const a = d.target;
|
|
1238
|
+
new Array(...a.classList).includes("dark") ? e.value = !0 : e.value = !1;
|
|
1239
|
+
}
|
|
1240
|
+
});
|
|
1241
|
+
o.observe(n, {
|
|
1242
|
+
attributes: !0,
|
|
1243
|
+
attributeFilter: ["class"]
|
|
1244
|
+
}), Ue(() => {
|
|
1245
|
+
o.disconnect();
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
function Qt() {
|
|
1249
|
+
const e = F(1), n = F(!1), { isDark: o } = Kt(), { pressSpace: s, pressShift: d, pressCtrl: a } = Yt();
|
|
1250
|
+
return {
|
|
1251
|
+
canvasScale: e,
|
|
1252
|
+
pressSpace: s,
|
|
1253
|
+
pressShift: d,
|
|
1254
|
+
pressCtrl: a,
|
|
1255
|
+
disabledZoom: n,
|
|
1256
|
+
isDark: o
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
const Oe = Et(Qt);
|
|
1260
|
+
function Yt() {
|
|
1261
|
+
const e = F(!1), n = F(!1), o = F(!1);
|
|
1262
|
+
return Ae(" ", () => {
|
|
1263
|
+
e.value = !0;
|
|
1264
|
+
}), _e(" ", () => {
|
|
1265
|
+
e.value = !1;
|
|
1266
|
+
}), Ae("Shift", (s) => {
|
|
1267
|
+
s.preventDefault(), n.value = !0;
|
|
1268
|
+
}), _e("Shift", () => {
|
|
1269
|
+
n.value = !1;
|
|
1270
|
+
}), Ae("Control", (s) => {
|
|
1271
|
+
s.preventDefault(), o.value = !0;
|
|
1272
|
+
}), _e("Control", () => {
|
|
1273
|
+
o.value = !1;
|
|
1274
|
+
}), { pressSpace: e, pressShift: n, pressCtrl: o };
|
|
1275
|
+
}
|
|
1276
|
+
function wn(e) {
|
|
1277
|
+
const { pressSpace: n } = Oe(), o = new Image(1, 1);
|
|
1278
|
+
o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1279
|
+
let s = 0, d = 0;
|
|
1280
|
+
function a(w) {
|
|
1281
|
+
var A;
|
|
1282
|
+
n.value && (s = w.x, d = w.y, (A = w.dataTransfer) == null || A.setDragImage(document.createElement("div"), 0, 0));
|
|
1283
|
+
}
|
|
1284
|
+
function v(w) {
|
|
1285
|
+
if (w.preventDefault(), !w.x || !w.y || !n.value)
|
|
1286
|
+
return;
|
|
1287
|
+
const A = w.x - s, _ = w.y - d;
|
|
1288
|
+
s = w.x, d = w.y, e.value && (e.value.scrollTop -= _, e.value.scrollLeft -= A);
|
|
1289
|
+
}
|
|
1290
|
+
function i() {
|
|
1291
|
+
n.value = !1;
|
|
1292
|
+
}
|
|
1293
|
+
return { handleElementDragStart: a, handleElementDrag: v, handleElementDragEnd: i };
|
|
1294
|
+
}
|
|
1295
|
+
function Sn(e) {
|
|
1296
|
+
const { pressCtrl: n, canvasScale: o, disabledZoom: s } = Oe();
|
|
1297
|
+
function d(a) {
|
|
1298
|
+
if (!n.value || s.value)
|
|
1299
|
+
return;
|
|
1300
|
+
a.preventDefault();
|
|
1301
|
+
let v = 0;
|
|
1302
|
+
a.deltaY < 0 ? v = o.value + 0.05 : v = o.value - 0.05, !(v > 150 || v < 0.5) && (o.value = v);
|
|
1303
|
+
}
|
|
1304
|
+
return K(
|
|
1305
|
+
() => o.value,
|
|
1306
|
+
(a) => {
|
|
1307
|
+
e.value && !s.value && (e.value.style.transform = `scale(${a})`);
|
|
1308
|
+
}
|
|
1309
|
+
), { handleZoom: d, canvasScale: o };
|
|
1310
|
+
}
|
|
1311
|
+
function bn(e, n = 16.66) {
|
|
1312
|
+
let o;
|
|
1313
|
+
function s() {
|
|
1314
|
+
d(), o = window.setInterval(e, n);
|
|
1315
|
+
}
|
|
1316
|
+
function d() {
|
|
1317
|
+
window.clearInterval(o);
|
|
1318
|
+
}
|
|
1319
|
+
return {
|
|
1320
|
+
startTimedQuery: s,
|
|
1321
|
+
stopTimedQuery: d
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, kt = /* @__PURE__ */ fe({
|
|
1325
|
+
__name: "index",
|
|
1326
|
+
setup(e, { expose: n }) {
|
|
1327
|
+
const o = q.getComponent("monacoEditor"), s = q.getComponent("modal"), d = F(null), a = F(!1), v = F(!1), i = F({}), w = se("pageSchema"), A = F(null), _ = F("");
|
|
1328
|
+
function m() {
|
|
1329
|
+
v.value = !1;
|
|
1330
|
+
}
|
|
1331
|
+
function N() {
|
|
1332
|
+
a.value = !1;
|
|
1333
|
+
}
|
|
1334
|
+
function t() {
|
|
1335
|
+
a.value = !0, _.value = lt();
|
|
1336
|
+
}
|
|
1337
|
+
async function b() {
|
|
1338
|
+
try {
|
|
1339
|
+
let g = await A.value.validateAll();
|
|
1340
|
+
if (!Object.keys(g).length) {
|
|
1341
|
+
alert("请添加表单组件后再尝试!");
|
|
1342
|
+
return;
|
|
1343
|
+
}
|
|
1344
|
+
Object.keys(g).length === 1 && (g = g.default), i.value = JSON.stringify(g, null, 2), ce(() => {
|
|
1345
|
+
var D;
|
|
1346
|
+
(D = d.value) == null || D.setValue(i.value);
|
|
1347
|
+
}), v.value = !0;
|
|
1348
|
+
} catch (g) {
|
|
1349
|
+
console.error(g);
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
return n({
|
|
1353
|
+
handleOpen: t
|
|
1354
|
+
}), (g, D) => (Y(), ae(W(s), {
|
|
1355
|
+
modelValue: a.value,
|
|
1356
|
+
"onUpdate:modelValue": D[1] || (D[1] = (M) => a.value = M),
|
|
1357
|
+
title: "预览",
|
|
1358
|
+
class: "w-900px",
|
|
1359
|
+
width: "900px",
|
|
1360
|
+
onClose: N,
|
|
1361
|
+
onOk: b,
|
|
1362
|
+
okText: "表单数据"
|
|
1363
|
+
}, {
|
|
1364
|
+
default: Z(() => [
|
|
1365
|
+
te("div", qt, [
|
|
1366
|
+
(Y(), ae(W(Dt), {
|
|
1367
|
+
key: _.value,
|
|
1368
|
+
ref_key: "kb",
|
|
1369
|
+
ref: A,
|
|
1370
|
+
"page-schema": W(w)
|
|
1371
|
+
}, null, 8, ["page-schema"])),
|
|
1372
|
+
oe(W(s), {
|
|
1373
|
+
modelValue: v.value,
|
|
1374
|
+
"onUpdate:modelValue": D[0] || (D[0] = (M) => v.value = M),
|
|
1375
|
+
title: "表单数据",
|
|
1376
|
+
class: "w-860px",
|
|
1377
|
+
width: "860px",
|
|
1378
|
+
onClose: m,
|
|
1379
|
+
onOk: m
|
|
1380
|
+
}, {
|
|
1381
|
+
default: Z(() => [
|
|
1382
|
+
te("div", Xt, [
|
|
1383
|
+
oe(W(o), {
|
|
1384
|
+
ref_key: "monacoEditorRef",
|
|
1385
|
+
ref: d,
|
|
1386
|
+
autoToggleTheme: "",
|
|
1387
|
+
readOnly: "",
|
|
1388
|
+
class: "h-full editor",
|
|
1389
|
+
"model-value": i.value
|
|
1390
|
+
}, null, 8, ["model-value"])
|
|
1391
|
+
])
|
|
1392
|
+
]),
|
|
1393
|
+
_: 1
|
|
1394
|
+
}, 8, ["modelValue"])
|
|
1395
|
+
])
|
|
1396
|
+
]),
|
|
1397
|
+
_: 1
|
|
1398
|
+
}, 8, ["modelValue"]));
|
|
1399
|
+
}
|
|
1400
|
+
}), jt = {
|
|
1401
|
+
key: 0,
|
|
1402
|
+
class: "epic-loading-box"
|
|
1403
|
+
}, en = { class: "epic-designer-main" }, tn = { class: "epic-header-container" }, nn = { class: "epic-loading-box" }, Dn = /* @__PURE__ */ fe({
|
|
1404
|
+
__name: "designer",
|
|
1405
|
+
props: {
|
|
1406
|
+
disabledZoom: { type: Boolean, default: !1 },
|
|
1407
|
+
hiddenHeader: { type: Boolean, default: !1 },
|
|
1408
|
+
lockDefaultSchemaEdit: { type: Boolean, default: !1 },
|
|
1409
|
+
formMode: { type: Boolean, default: !1 },
|
|
1410
|
+
title: { default: "EpicDesigner默认项目" },
|
|
1411
|
+
defaultSchema: {},
|
|
1412
|
+
sourceCodeReadOnly: { type: Boolean },
|
|
1413
|
+
source: { default: [] },
|
|
1414
|
+
updateSourceId: {}
|
|
1415
|
+
},
|
|
1416
|
+
emits: [
|
|
1417
|
+
"ready",
|
|
1418
|
+
"save",
|
|
1419
|
+
"reset",
|
|
1420
|
+
"toggleDeviceMode",
|
|
1421
|
+
"saveSourceData",
|
|
1422
|
+
"deleteSourceData",
|
|
1423
|
+
"updateSourceData"
|
|
1424
|
+
],
|
|
1425
|
+
setup(e, { expose: n, emit: o }) {
|
|
1426
|
+
const { t: s } = Pe(), d = ue(() => import("./index-syyNmnFq.js")), a = ue(() => import("./index-BTaKazMR.js")), v = ue(() => import("./index-CT056ccv.js")), i = ue(() => import("./index-ocw8DZly.js")), w = ue(() => import("./index-BMXnkqXx.js")), A = ze(), _ = dt(), m = e;
|
|
1427
|
+
let N = {
|
|
1428
|
+
schemas: [
|
|
1429
|
+
{
|
|
1430
|
+
type: "form",
|
|
1431
|
+
id: "root",
|
|
1432
|
+
label: s("page"),
|
|
1433
|
+
children: [],
|
|
1434
|
+
componentProps: {
|
|
1435
|
+
name: s("form"),
|
|
1436
|
+
style: {
|
|
1437
|
+
padding: "16px"
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
// {
|
|
1442
|
+
// type: "form",
|
|
1443
|
+
// id: "root",
|
|
1444
|
+
// label: "表单",
|
|
1445
|
+
// children: [],
|
|
1446
|
+
// componentProps: {
|
|
1447
|
+
// style: {
|
|
1448
|
+
// margin: "0px",
|
|
1449
|
+
// },
|
|
1450
|
+
// name: "default",
|
|
1451
|
+
// labelWidth: "100px",
|
|
1452
|
+
// labelLayout: "fixed",
|
|
1453
|
+
// labelCol: {
|
|
1454
|
+
// span: 5,
|
|
1455
|
+
// },
|
|
1456
|
+
// wrapperCol: {
|
|
1457
|
+
// span: 19,
|
|
1458
|
+
// },
|
|
1459
|
+
// },
|
|
1460
|
+
// },
|
|
1461
|
+
],
|
|
1462
|
+
script: `const { defineExpose, find } = epic;
|
|
1463
|
+
|
|
1464
|
+
function test (){
|
|
1465
|
+
console.log('test')
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
// 通过defineExpose暴露的函数或者属性
|
|
1469
|
+
defineExpose({
|
|
1470
|
+
test
|
|
1471
|
+
})`
|
|
1472
|
+
};
|
|
1473
|
+
Ee(() => {
|
|
1474
|
+
if (m.defaultSchema) {
|
|
1475
|
+
N = m.defaultSchema;
|
|
1476
|
+
return;
|
|
1477
|
+
}
|
|
1478
|
+
m.source && q.setSourceData(m.source), m.formMode && (N.schemas = q.formSchemas);
|
|
1479
|
+
}), A.setDesignMode(), A.setDefaultComponentIds(N.schemas);
|
|
1480
|
+
const t = o, b = F(null), g = de({
|
|
1481
|
+
checkedNode: null,
|
|
1482
|
+
hoverNode: null,
|
|
1483
|
+
disableHover: !1,
|
|
1484
|
+
matched: []
|
|
1485
|
+
}), D = de({
|
|
1486
|
+
schemas: [],
|
|
1487
|
+
script: N.script
|
|
1488
|
+
}), { disabledZoom: M } = Oe();
|
|
1489
|
+
Ee(() => {
|
|
1490
|
+
M.value = m.disabledZoom;
|
|
1491
|
+
}), Ee(() => {
|
|
1492
|
+
const u = D.script;
|
|
1493
|
+
u && u !== "" && A.setMethods(u);
|
|
1494
|
+
}), k("pageSchema", D), k("revoke", _), k("pageManager", A), k(
|
|
1495
|
+
"designerProps",
|
|
1496
|
+
ee(() => m)
|
|
1497
|
+
), k("designer", {
|
|
1498
|
+
setCheckedNode: E,
|
|
1499
|
+
setHoverNode: $,
|
|
1500
|
+
setDisableHover: y,
|
|
1501
|
+
handleToggleDeviceMode: B,
|
|
1502
|
+
reset: I,
|
|
1503
|
+
state: g
|
|
1504
|
+
}), re.on("saveSourceData", (u) => {
|
|
1505
|
+
t("saveSourceData", u);
|
|
1506
|
+
}), re.on("deleteSourceData", (u) => {
|
|
1507
|
+
t("deleteSourceData", u);
|
|
1508
|
+
}), re.on("updateSourceData", (u) => {
|
|
1509
|
+
t("updateSourceData", u);
|
|
1510
|
+
});
|
|
1511
|
+
function p() {
|
|
1512
|
+
D.schemas = ne(N.schemas), E(D.schemas[0]), _.push(D.schemas, "初始化撤销功能");
|
|
1513
|
+
}
|
|
1514
|
+
async function E(u = D.schemas[0]) {
|
|
1515
|
+
g.checkedNode = u, g.matched = it(D.schemas, u.id);
|
|
1516
|
+
}
|
|
1517
|
+
async function $(u = null) {
|
|
1518
|
+
var C;
|
|
1519
|
+
if (!u || g.disableHover)
|
|
1520
|
+
return g.hoverNode = null, !1;
|
|
1521
|
+
if ((u == null ? void 0 : u.id) === ((C = g.hoverNode) == null ? void 0 : C.id))
|
|
1522
|
+
return !1;
|
|
1523
|
+
g.hoverNode = u;
|
|
1524
|
+
}
|
|
1525
|
+
function P() {
|
|
1526
|
+
ce(() => {
|
|
1527
|
+
t("ready", { pageManager: A });
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
async function y(u = !1) {
|
|
1531
|
+
g.disableHover = u;
|
|
1532
|
+
}
|
|
1533
|
+
function H(u) {
|
|
1534
|
+
pe(D, ne(u));
|
|
1535
|
+
}
|
|
1536
|
+
function z() {
|
|
1537
|
+
return Ve(D);
|
|
1538
|
+
}
|
|
1539
|
+
function I() {
|
|
1540
|
+
Je(D.schemas, N.schemas) && D.script === N.script || (pe(D.schemas, N.schemas), D.script = N.script, E(D.schemas[0]), _.push(D.schemas, "重置操作"), t("reset", D));
|
|
1541
|
+
}
|
|
1542
|
+
function l() {
|
|
1543
|
+
t("save", Ve(D));
|
|
1544
|
+
}
|
|
1545
|
+
function B(u) {
|
|
1546
|
+
t("toggleDeviceMode", u);
|
|
1547
|
+
}
|
|
1548
|
+
function c() {
|
|
1549
|
+
b.value.handleOpen();
|
|
1550
|
+
}
|
|
1551
|
+
return p(), n({
|
|
1552
|
+
revoke: _,
|
|
1553
|
+
setData: H,
|
|
1554
|
+
getData: z,
|
|
1555
|
+
reset: I,
|
|
1556
|
+
preview: c
|
|
1557
|
+
}), (u, C) => W(q).initialized.value ? (Y(), ae(Be, {
|
|
1558
|
+
key: 1,
|
|
1559
|
+
onResolve: P
|
|
1560
|
+
}, {
|
|
1561
|
+
default: Z(() => [
|
|
1562
|
+
te("div", en, [
|
|
1563
|
+
te("div", tn, [
|
|
1564
|
+
X(u.$slots, "header", {}, () => [
|
|
1565
|
+
m.hiddenHeader ? Ne("", !0) : (Y(), ae(W(d), {
|
|
1566
|
+
key: 0,
|
|
1567
|
+
onPreview: c,
|
|
1568
|
+
onSave: l
|
|
1569
|
+
}, {
|
|
1570
|
+
header: Z(() => [
|
|
1571
|
+
X(u.$slots, "header-prefix")
|
|
1572
|
+
]),
|
|
1573
|
+
prefix: Z(() => [
|
|
1574
|
+
X(u.$slots, "header-prefix")
|
|
1575
|
+
]),
|
|
1576
|
+
title: Z(() => [
|
|
1577
|
+
X(u.$slots, "header-title")
|
|
1578
|
+
]),
|
|
1579
|
+
"right-prefix": Z(() => [
|
|
1580
|
+
X(u.$slots, "header-right-prefix")
|
|
1581
|
+
]),
|
|
1582
|
+
"right-action": Z(() => [
|
|
1583
|
+
X(u.$slots, "header-right-action")
|
|
1584
|
+
]),
|
|
1585
|
+
"right-suffix": Z(() => [
|
|
1586
|
+
X(u.$slots, "header-right-suffix")
|
|
1587
|
+
]),
|
|
1588
|
+
_: 3
|
|
1589
|
+
}))
|
|
1590
|
+
])
|
|
1591
|
+
]),
|
|
1592
|
+
te("div", {
|
|
1593
|
+
class: at(["epic-split-view-container", { "hidden-header": e.hiddenHeader }])
|
|
1594
|
+
}, [
|
|
1595
|
+
oe(W(a)),
|
|
1596
|
+
oe(W(v)),
|
|
1597
|
+
oe(W(i))
|
|
1598
|
+
], 2),
|
|
1599
|
+
oe(kt, {
|
|
1600
|
+
ref_key: "previewRef",
|
|
1601
|
+
ref: b
|
|
1602
|
+
}, null, 512)
|
|
1603
|
+
])
|
|
1604
|
+
]),
|
|
1605
|
+
fallback: Z(() => [
|
|
1606
|
+
te("div", nn, [
|
|
1607
|
+
oe(W(w))
|
|
1608
|
+
])
|
|
1609
|
+
]),
|
|
1610
|
+
_: 3
|
|
1611
|
+
})) : (Y(), ge("div", jt));
|
|
1612
|
+
}
|
|
1613
|
+
}), on = {
|
|
1614
|
+
component: async () => await import("./index-C5yUsiJH.js"),
|
|
1615
|
+
defaultSchema: {
|
|
1616
|
+
label: "代码编辑器",
|
|
1617
|
+
type: "monacoEditor",
|
|
1618
|
+
field: "monacoEditor",
|
|
1619
|
+
icon: "epic-icon-write",
|
|
1620
|
+
input: !0
|
|
1621
|
+
},
|
|
1622
|
+
config: {
|
|
1623
|
+
attribute: [
|
|
1624
|
+
{
|
|
1625
|
+
label: "字段名",
|
|
1626
|
+
type: "input",
|
|
1627
|
+
field: "field"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
label: "标题",
|
|
1631
|
+
type: "input",
|
|
1632
|
+
field: "label"
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
label: "默认值",
|
|
1636
|
+
type: "monacoEditor",
|
|
1637
|
+
field: "componentProps.defaultValue"
|
|
1638
|
+
}
|
|
1639
|
+
]
|
|
1640
|
+
},
|
|
1641
|
+
bindModel: "model-value"
|
|
1642
|
+
}, { t: Ie } = Pe(), an = {
|
|
1643
|
+
component: async () => await import("./index-KXG0ExdR.js"),
|
|
1644
|
+
defaultSchema: {
|
|
1645
|
+
label: Ie("page"),
|
|
1646
|
+
type: "page",
|
|
1647
|
+
componentProps: {},
|
|
1648
|
+
children: []
|
|
1649
|
+
},
|
|
1650
|
+
config: {
|
|
1651
|
+
attribute: [
|
|
1652
|
+
{
|
|
1653
|
+
label: Ie("pageName"),
|
|
1654
|
+
type: "input",
|
|
1655
|
+
componentProps: {
|
|
1656
|
+
placeholder: Ie("pleaseEnter")
|
|
1657
|
+
},
|
|
1658
|
+
field: "componentProps.name"
|
|
1659
|
+
}
|
|
1660
|
+
]
|
|
1661
|
+
}
|
|
1662
|
+
}, { t: De } = Pe();
|
|
1663
|
+
function rn(e) {
|
|
1664
|
+
e.component("EInputSize", async () => await import("./index-DMnyvgEN.js")), e.component("EColEditor", async () => await import("./index-CAYHjLKP.js")), e.component("EActionEditor", async () => await import("./index-CrVn9CfT.js")), e.component("ERuleEditor", async () => await import("./index-Cecp9t8s.js")), e.component("EOptionsEditor", async () => await import("./index-DI-E5Cpq.js")), e.component("ENode", async () => await import("./index-Dp0hJSh5.js")), e.component("EDataSource", async () => await import("./index-9Mn4Y5ul.js")), e.component("EColumnEditor", async () => await import("./index-D2n96wxz.js")), e.component("PaddingMarginControl", async () => await import("./index-CQSYlqUB.js")), e.component("ESourceDataSelect", async () => await import("./index-natF7VzY.js")), e.component("EValidateParam", async () => await import("./index-Xnqspbxj.js")), e.component("EDescribe", async () => await import("./index-UpNznhhe.js")), e.registerActivitybar({
|
|
1665
|
+
id: "component_view",
|
|
1666
|
+
title: De("component"),
|
|
1667
|
+
icon: "icon--epic--extension-outline",
|
|
1668
|
+
component: async () => await import("./index-CLeSXOVj.js")
|
|
1669
|
+
}), e.registerActivitybar({
|
|
1670
|
+
id: "outline_view",
|
|
1671
|
+
title: De("outline"),
|
|
1672
|
+
icon: "icon--epic--account-tree-outline-rounded",
|
|
1673
|
+
component: async () => await import("./outline-S7RIV1S6.js")
|
|
1674
|
+
}), e.registerRightSidebar({
|
|
1675
|
+
id: "attribute_view",
|
|
1676
|
+
title: De("attribute"),
|
|
1677
|
+
component: async () => await import("./attributeView-BAtvUAhV.js")
|
|
1678
|
+
}), e.registerRightSidebar({
|
|
1679
|
+
id: "style_view",
|
|
1680
|
+
title: De("style"),
|
|
1681
|
+
component: async () => await import("./styleView-oSuNX97o.js")
|
|
1682
|
+
}), e.registerRightSidebar({
|
|
1683
|
+
id: "event_view",
|
|
1684
|
+
title: "事件",
|
|
1685
|
+
component: async () => await import("./eventView-eNaiVabA.js")
|
|
1686
|
+
}), [on, an].forEach((o) => {
|
|
1687
|
+
e.registerComponent(o);
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1690
|
+
rn(q);
|
|
1691
|
+
export {
|
|
1692
|
+
gt as E,
|
|
1693
|
+
Dt as _,
|
|
1694
|
+
bn as a,
|
|
1695
|
+
Ht as b,
|
|
1696
|
+
wn as c,
|
|
1697
|
+
vn as d,
|
|
1698
|
+
Sn as e,
|
|
1699
|
+
pn as f,
|
|
1700
|
+
gn as g,
|
|
1701
|
+
hn as h,
|
|
1702
|
+
yn as i,
|
|
1703
|
+
Dn as j,
|
|
1704
|
+
ze as k,
|
|
1705
|
+
dt as l,
|
|
1706
|
+
Yt as m,
|
|
1707
|
+
Kt as n,
|
|
1708
|
+
Zt as o,
|
|
1709
|
+
Qt as p,
|
|
1710
|
+
Oe as u,
|
|
1711
|
+
mn as w
|
|
1712
|
+
};
|