epic-designer-gold 1.0.30 → 1.0.32

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.
Files changed (304) hide show
  1. package/dist/{_vue_commonjs-external-BbihI59z.cjs → _vue_commonjs-external-CccDNqHl.cjs} +1 -1
  2. package/dist/attributeView-3gE9ZveH.cjs +1 -0
  3. package/dist/{attributeView-CSiGWdPc.js → attributeView-Dcfm_fDW.js} +22 -22
  4. package/dist/{az-CJXcaytS.cjs → az-BHlmRKxT.cjs} +1 -1
  5. package/dist/be-Bix86zGn.cjs +1 -0
  6. package/dist/be-kPl6P6VI.js +37 -0
  7. package/dist/{bg-DCT06eJE.cjs → bg-DRyWA3-W.cjs} +1 -1
  8. package/dist/{bn-bd-DaKs5QkR.cjs → bn-bd-DsQtVph4.cjs} +1 -1
  9. package/dist/{button-BbHi0DmU.js → button-q-1FLMFj.js} +2 -2
  10. package/dist/{ca-DCcDFeSK.js → ca-B_2hM20M.js} +6 -6
  11. package/dist/core/components/asyncLoader/index.vue.d.ts +1 -1
  12. package/dist/core/components/builder/src/builder.vue.d.ts +6 -11
  13. package/dist/core/components/designer/src/designer.vue.d.ts +200 -9
  14. package/dist/core/components/designer/src/modules/actionBar/index.vue.d.ts +1 -1
  15. package/dist/core/components/designer/src/modules/attributeView/attributeView.vue.d.ts +1 -1
  16. package/dist/core/components/designer/src/modules/attributeView/eventView.vue.d.ts +1 -1
  17. package/dist/core/components/designer/src/modules/attributeView/styleView.vue.d.ts +1 -1
  18. package/dist/core/components/designer/src/modules/componentView/index.vue.d.ts +1 -1
  19. package/dist/core/components/designer/src/modules/editContainer/editNodeItem.vue.d.ts +4 -5
  20. package/dist/core/components/designer/src/modules/editContainer/editScreenContainer.vue.d.ts +7 -2
  21. package/dist/core/components/designer/src/modules/editContainer/index.vue.d.ts +19 -1
  22. package/dist/core/components/designer/src/modules/editContainer/nodeItem.vue.d.ts +3 -5
  23. package/dist/core/components/designer/src/modules/editContainer/previewJson.vue.d.ts +3 -1
  24. package/dist/core/components/designer/src/modules/editContainer/previewWidgets.vue.d.ts +5 -1
  25. package/dist/core/components/designer/src/modules/editContainer/toolbar.vue.d.ts +17 -1
  26. package/dist/core/components/designer/src/modules/header/index.vue.d.ts +6 -5
  27. package/dist/core/components/designer/src/modules/outline/outline.vue.d.ts +1 -1
  28. package/dist/core/components/designer/src/modules/preview/index.vue.d.ts +85 -1
  29. package/dist/core/components/designer/src/modules/rightSidebar/breadcrumb.vue.d.ts +1 -1
  30. package/dist/core/components/icon/src/icon.vue.d.ts +4 -6
  31. package/dist/core/components/node/src/dynamicFormItem.vue.d.ts +12 -11
  32. package/dist/core/components/node/src/node.vue.d.ts +19 -24
  33. package/dist/core/components/tree/src/tree.vue.d.ts +1 -1
  34. package/dist/core/components/tree/src/treeNodeItem.vue.d.ts +3 -4
  35. package/dist/core/components/tree/src/treeNodes.vue.d.ts +4 -6
  36. package/dist/core/extensions/EActionEditor/index.vue.d.ts +25 -1
  37. package/dist/core/extensions/EActionEditor/src/EArgsEditor.vue.d.ts +5 -7
  38. package/dist/core/extensions/EActionEditor/src/EScriptEdit.vue.d.ts +3 -1
  39. package/dist/core/extensions/EColEditor/index.vue.d.ts +1 -1
  40. package/dist/core/extensions/EColumnEditor/columnItem.vue.d.ts +4 -5
  41. package/dist/core/extensions/EColumnEditor/index.vue.d.ts +5 -9
  42. package/dist/core/extensions/EDataSource/index.vue.d.ts +3 -1
  43. package/dist/core/extensions/EDescribe/index.vue.d.ts +9 -0
  44. package/dist/core/extensions/EInputSize/index.vue.d.ts +4 -5
  45. package/dist/core/extensions/EOptionsEditor/index.vue.d.ts +9 -13
  46. package/dist/core/extensions/EOptionsEditor/optionItem.vue.d.ts +4 -5
  47. package/dist/core/extensions/ERuleEditor/ERuleItem.vue.d.ts +5 -6
  48. package/dist/core/extensions/ERuleEditor/index.vue.d.ts +1 -1
  49. package/dist/core/extensions/ESourceDataSelect/index.vue.d.ts +6 -10
  50. package/dist/core/extensions/EValidateParam/index.vue.d.ts +13 -0
  51. package/dist/core/extensions/MonacoEditor/index.vue.d.ts +15 -21
  52. package/dist/core/extensions/PaddingMarginControl/index.vue.d.ts +5 -6
  53. package/dist/core/extensions/Page/index.vue.d.ts +7 -7
  54. package/dist/{cs-D_hyDJBU.cjs → cs-fe0nQEUY.cjs} +1 -1
  55. package/dist/{de-CjumkRE8.js → de-DC7xuNPN.js} +3 -3
  56. package/dist/{el-DyUHskgW.js → el-C0J72FUl.js} +2 -2
  57. package/dist/{el-BCec0wpC.cjs → el-CUlPbKiq.cjs} +1 -1
  58. package/dist/{en-gb-C8f1Enek.js → en-gb-D42jaZg9.js} +5 -5
  59. package/dist/{es-DP04S73E.js → es-C058DgcQ.js} +4 -4
  60. package/dist/{es-BFLRglxD.cjs → es-CV4N9sQJ.cjs} +1 -1
  61. package/dist/{et-ipLqjCDG.js → et-hoTk9uxt.js} +5 -5
  62. package/dist/{eventView-5fa6mfSD.cjs → eventView-BExxE07B.cjs} +1 -1
  63. package/dist/{eventView-C2wKhfU_.js → eventView-eNaiVabA.js} +4 -4
  64. package/dist/{fade-in-scale-up.cssr-C_UMnGtI.cjs → fade-in-scale-up.cssr-D5DdSaTl.cjs} +1 -1
  65. package/dist/{fade-in-scale-up.cssr-BXjoIAAA.js → fade-in-scale-up.cssr-XJx96aae.js} +1 -1
  66. package/dist/{form-ChuxpD-f.cjs → form-BfnGWRf4.cjs} +1 -1
  67. package/dist/form-CUbklubB.cjs +1 -0
  68. package/dist/form-DGbjgAvD.js +208 -0
  69. package/dist/{form-Cr7tBgLQ.js → form-DkDGcNCH.js} +7 -7
  70. package/dist/{form-BPH0cDFl.js → form-r1D2WYPd.js} +3 -3
  71. package/dist/{formItem-D10Om12T.js → formItem-B6XaNgi9.js} +2 -2
  72. package/dist/{formItem-cj8JQT2r.js → formItem-BJ-M4LAL.js} +2 -2
  73. package/dist/{formItem-Do31LPIz.cjs → formItem-DS5AjuJ9.cjs} +1 -1
  74. package/dist/{formItem-DPnbV4m-.js → formItem-E3dd7dU1.js} +3 -3
  75. package/dist/{fr-D1kezmpm.cjs → fr-B_IotmK8.cjs} +1 -1
  76. package/dist/{fr-ca-EPfCD7sc.js → fr-ca-DfJb7eFN.js} +4 -4
  77. package/dist/ga-DP4_Ma79.js +22 -0
  78. package/dist/ga-Upa8swLh.cjs +1 -0
  79. package/dist/{gl-CBMDu4db.js → gl-L0SOKqrF.js} +1 -1
  80. package/dist/{gl-DI-aVaAh.cjs → gl-buZ-VDaz.cjs} +1 -1
  81. package/dist/{he-O14-JKYm.cjs → he-CwFEkyZP.cjs} +1 -1
  82. package/dist/{hi-nXeMgLvO.js → hi-CG6raJ8L.js} +2 -2
  83. package/dist/{hy-am-BLnv1pCz.cjs → hy-am-IbMCW8s4.cjs} +1 -1
  84. package/dist/{hy-am-CvHDFapi.js → hy-am-QWdQfrnZ.js} +2 -2
  85. 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
  86. package/dist/{id-CO78nlWo.js → id-CXRpiOjX.js} +4 -4
  87. package/dist/{index-CU1ZFiwn.cjs → index-2ohl2GLw.cjs} +1 -1
  88. package/dist/index-3k1IXN1T.js +1772 -0
  89. package/dist/{index-B0OgKtuT.js → index-9Mn4Y5ul.js} +30 -30
  90. package/dist/index-B6Ukyb87.js +19 -0
  91. package/dist/index-B7v1JNbf.cjs +351 -0
  92. package/dist/index-BAbwPcMn.cjs +1 -0
  93. package/dist/index-BB6SDXJs.cjs +1 -0
  94. package/dist/{index-DgcFxYFp.js → index-BMXnkqXx.js} +3 -3
  95. package/dist/{index-CCCx1tbF.cjs → index-BRAbfTxT.cjs} +1 -1
  96. package/dist/index-BRSms-yQ.cjs +10 -0
  97. package/dist/{index-WkZdU_zw.js → index-BTaKazMR.js} +3 -3
  98. package/dist/index-BU3ulVXO.cjs +51 -0
  99. package/dist/index-BVGB9juO.cjs +352 -0
  100. package/dist/index-BWTbnurN.cjs +102 -0
  101. package/dist/index-BakH-Ay7.js +1513 -0
  102. package/dist/{index-BENF2JDS.cjs → index-Bc7x5Vkn.cjs} +1 -1
  103. package/dist/{index-B2RMcVgD.js → index-Bc8u8eU-.js} +3 -3
  104. package/dist/{index-tSmvj7CR.js → index-BdXFwT-C.js} +749 -721
  105. package/dist/{index-D1ZL6feZ.js → index-Bf7gu4Ub.js} +28210 -27533
  106. package/dist/index-BlIhb2K5.cjs +65 -0
  107. package/dist/{index-DYQi05p8.cjs → index-BozsQqds.cjs} +1 -1
  108. package/dist/index-BtKa0UKV.cjs +326 -0
  109. package/dist/{index-RL7vrExY.js → index-Bvn6Y1A5.js} +17 -17
  110. package/dist/index-C3ri9kGU.cjs +110 -0
  111. package/dist/index-C4CkFEzv.cjs +1 -0
  112. package/dist/{index-COyKmK8p.js → index-C4laxGCk.js} +532 -529
  113. package/dist/{index-DymbM-qI.js → index-C7vJTifa.js} +79 -72
  114. package/dist/{index-CpTA2IRB.js → index-CAYHjLKP.js} +10 -10
  115. package/dist/{index-BbTWJKHb.js → index-CEDiZXAp.js} +23 -23
  116. package/dist/index-CFjfJ0Cn.js +4 -0
  117. package/dist/index-CGiL64iE.cjs +10 -0
  118. package/dist/{index-CNOUPCih.js → index-CLAopW_w.js} +143 -142
  119. package/dist/index-CPjLNlCP.cjs +1 -0
  120. package/dist/{index-CdnV7DS4.js → index-CQSYlqUB.js} +3 -3
  121. package/dist/{index-Hdc_C4Xg.js → index-CRaEQ5ns.js} +116 -115
  122. package/dist/index-CcXd7BgN.js +451 -0
  123. package/dist/index-CmQ11tKB.js +59 -0
  124. package/dist/index-CnPBVx5Y.cjs +181 -0
  125. package/dist/index-CpTUkT9o.cjs +159 -0
  126. package/dist/index-CqIGF1hQ.cjs +86 -0
  127. package/dist/{index-lCYWKDlK.js → index-Cqt_axIP.js} +6 -6
  128. package/dist/index-DAYEBASh.js +1712 -0
  129. package/dist/{index-FgdbKgb5.cjs → index-DER3z6SG.cjs} +1 -1
  130. package/dist/{index-Dk0fyxAJ.cjs → index-DKeQ2WZr.cjs} +1 -1
  131. package/dist/{index-Cx7gKpkD.js → index-DMnyvgEN.js} +3 -3
  132. package/dist/{index-DaRhLTx9.js → index-DMuf-r1U.js} +489 -489
  133. package/dist/index-DNmTSnEn.js +122 -0
  134. package/dist/index-DRzL2wcU.cjs +1 -0
  135. package/dist/{index-gA02bxwJ.js → index-DUFhAGX3.js} +3443 -3361
  136. package/dist/{index-CjcjqKkB.js → index-DWSlxQBe.js} +87 -86
  137. package/dist/{index-DQ9Vb0QH.js → index-Dkj_Zz4E.js} +309 -308
  138. package/dist/index-DlWUR7vt.cjs +6 -0
  139. package/dist/{index-D2GF87Tg.cjs → index-DnpZItWQ.cjs} +1 -1
  140. package/dist/{index-BhMVNODR.js → index-DouKA23f.js} +4 -4
  141. package/dist/{index-3fW_aWMH.js → index-Ds_DeGh-.js} +581 -567
  142. package/dist/index-FaOdtMdB.cjs +214 -0
  143. package/dist/{index-DiDIFoTk.js → index-KXG0ExdR.js} +3 -3
  144. package/dist/{index-Cmfhlo_3.js → index-Tohe0ps_.js} +5 -5
  145. package/dist/index-Wv68i_Qm.cjs +1 -0
  146. package/dist/index-XEUPyaqB.js +655 -0
  147. package/dist/index-Y9Wgjz5m.cjs +1 -0
  148. package/dist/{index-v2u1WTMm.cjs → index-aIGMRk0a.cjs} +1 -1
  149. package/dist/{index-BEUYVwRA.cjs → index-eAXbC_rr.cjs} +1 -1
  150. package/dist/index-j1FWyAIY.cjs +1 -0
  151. package/dist/index-o6azVcPr.js +11903 -0
  152. package/dist/{index-Cln9MN7u.js → index-ocw8DZly.js} +5 -5
  153. package/dist/index-r7I2iBup.cjs +9 -0
  154. package/dist/{index-IGxCNti8.js → index-syyNmnFq.js} +5 -5
  155. package/dist/index-t1QZ07qC.cjs +864 -0
  156. package/dist/{index-R2r9Rw5O.cjs → index-uyQPLEww.cjs} +1 -1
  157. package/dist/{index-CpevxZqj.cjs → index-waYHs7SN.cjs} +1 -1
  158. package/dist/index.cjs +1 -1
  159. package/dist/index.js +6 -6
  160. package/dist/{is-C40R_fdL.cjs → is-DKGME0z-.cjs} +1 -1
  161. package/dist/{it-BFF7WzRR.js → it-BtbhD8pq.js} +1 -1
  162. package/dist/{it-D7K-0U_k.cjs → it-ZWKZeGyD.cjs} +1 -1
  163. package/dist/{ja-4CWMghxy.js → ja--ZXRcv9f.js} +4 -4
  164. package/dist/{ja-CAXCMb11.cjs → ja-pfO_QIN1.cjs} +1 -1
  165. package/dist/{ka-DrA_EMLP.js → ka-2eqGlkEl.js} +2 -2
  166. package/dist/{kk-Bv8yYeRk.cjs → kk-8gl4nJDr.cjs} +1 -1
  167. package/dist/{kk-QVPqpI2b.js → kk-U2vwYR0_.js} +2 -2
  168. package/dist/{km-BmycjYfj.cjs → km-BhO_ypYk.cjs} +1 -1
  169. package/dist/{km-CBMnSWv_.js → km-CvriZlET.js} +2 -2
  170. package/dist/{kn-TECqDIit.js → kn-B3fo7baQ.js} +2 -2
  171. package/dist/{kn-CFiXt5hu.cjs → kn-DbnERw-L.cjs} +1 -1
  172. package/dist/{lt-D0cq_0yM.js → lt-LJQA5IUB.js} +8 -8
  173. package/dist/{lv-CoTNe47-.cjs → lv-BOhsxkyH.cjs} +1 -1
  174. package/dist/{lv-CVdYvxq8.js → lv-mhTNPcB7.js} +6 -6
  175. package/dist/{mk-DVN6iYK_.cjs → mk-Bjsw8OIP.cjs} +1 -1
  176. package/dist/{mk-DDuk7A3P.js → mk-CwQCoXyz.js} +2 -2
  177. package/dist/{ml-DnXJOqZ0.cjs → ml-B2Uwy4uy.cjs} +1 -1
  178. package/dist/{ml-CPI3tJe8.js → ml-Cb3T32D6.js} +2 -2
  179. package/dist/{mn-CNbMEx0y.js → mn-CNzb6fwh.js} +2 -2
  180. package/dist/{mn-DMIrWGkN.cjs → mn-CsItTiQc.cjs} +1 -1
  181. package/dist/{modal-3Iw7tqyx.js → modal-BRQmBRpE.js} +4 -4
  182. package/dist/{modal-DZRJyZfk.cjs → modal-BgQNXEZY.cjs} +1 -1
  183. package/dist/{ms-my-BoMZ8Hzl.cjs → ms-my-BgFBTdYR.cjs} +1 -1
  184. package/dist/{ms-my-BcgYEtml.js → ms-my-CQBECOnt.js} +6 -6
  185. package/dist/{nb-BL5QmNEa.js → nb-ChJHZ1i8.js} +2 -2
  186. package/dist/{ne-9klrwaIE.js → ne-KSsPp_--.js} +4 -4
  187. package/dist/{ne-VNPqdWFn.cjs → ne-wk64JT9v.cjs} +1 -1
  188. package/dist/{nl-DBFNL8wC.cjs → nl-B5Fclgi6.cjs} +1 -1
  189. package/dist/ocrUpload-CMskfGHX.cjs +1 -0
  190. package/dist/ocrUpload-Cxxs1GtD.js +521 -0
  191. package/dist/orcSelectPage-CXd59VaA.js +47 -0
  192. package/dist/orcSelectPage-DY_4W3lm.cjs +1 -0
  193. package/dist/{outline-BE98qFHQ.cjs → outline-BkNtj_2a.cjs} +1 -1
  194. package/dist/{outline-Ch5PHy3c.js → outline-S7RIV1S6.js} +4 -4
  195. package/dist/{pluginManager-BCnrHPYv.js → pluginManager-B0y107-1.js} +1 -1
  196. package/dist/{pluginManager-DWHAX8kP.cjs → pluginManager-C8aQylGX.cjs} +1 -1
  197. package/dist/{pt-BaTZB0XW.cjs → pt-BfCV6EE0.cjs} +1 -1
  198. package/dist/{pt-br-C1mqj5qX.js → pt-br-BC7LLaiM.js} +3 -3
  199. package/dist/{pt-br-B_N58uu_.cjs → pt-br-Cmqeku7l.cjs} +1 -1
  200. package/dist/{ro-Cnuhxb40.cjs → ro-BoP4bVrV.cjs} +1 -1
  201. package/dist/row-CAcx39Av.cjs +1 -0
  202. package/dist/row-DhORW-4_.js +34 -0
  203. package/dist/{ru-CCbLARi0.js → ru-CLqP_yvB.js} +5 -5
  204. package/dist/select-957IpcJa.js +38 -0
  205. package/dist/select-BgVmNynq.cjs +1 -0
  206. package/dist/{selectPage-CrdVWKGk.cjs → selectPage-H4G0pWhK.cjs} +1 -1
  207. package/dist/{selectPage-Bm45M31g.js → selectPage-oM1OpHbJ.js} +3 -3
  208. package/dist/{sign-BS-9u6is.cjs → sign-Cusu4oCD.cjs} +1 -1
  209. package/dist/{sign-l63EYvVo.js → sign-Cz5OCE1C.js} +12 -12
  210. package/dist/{sk-DRjgEzVO.cjs → sk-DvU2x_On.cjs} +1 -1
  211. package/dist/{sl-CL8MnX8D.js → sl-MH1u3xWj.js} +9 -9
  212. package/dist/style.css +1 -1
  213. package/dist/{styleView-DONajUQ-.js → styleView-DlcY7spf.js} +8 -8
  214. package/dist/{styleView-CrBDikDV.cjs → styleView-v0USu1ar.cjs} +1 -1
  215. package/dist/{ta-CsfYqZQU.js → ta-CeKe4tRh.js} +2 -2
  216. package/dist/{tabs-CYH9lAUk.cjs → tabs-5lcSnurM.cjs} +1 -1
  217. package/dist/{tabs-DCyifACM.js → tabs-Cu4PLnTU.js} +1 -1
  218. package/dist/{th-C-CGWPlT.cjs → th-B1vCpSkb.cjs} +1 -1
  219. package/dist/{th-CC5sx7mS.js → th-DuVrYobw.js} +2 -2
  220. package/dist/theme/var.less +6 -5
  221. 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
  222. 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
  223. package/dist/ui/antd/button/button.vue.d.ts +2 -1
  224. package/dist/ui/antd/index.cjs +2 -2
  225. package/dist/ui/antd/index.js +40 -40
  226. package/dist/ui/antd/modal/modal.vue.d.ts +3 -2
  227. package/dist/ui/antd/upload-image/uploadImage.vue.d.ts +1 -1
  228. package/dist/ui/elementPlus/form/form.vue.d.ts +372 -7
  229. package/dist/ui/elementPlus/formItem/formItem.vue.d.ts +346 -3
  230. package/dist/ui/elementPlus/index.cjs +1 -1
  231. package/dist/ui/elementPlus/index.js +558 -255
  232. package/dist/ui/elementPlus/modal/modal.d.ts +1 -1
  233. package/dist/ui/elementPlus/ocr-select-page/index.d.ts +3 -0
  234. package/dist/ui/elementPlus/ocr-select-page/orcSelectPage.d.ts +8 -0
  235. package/dist/ui/elementPlus/ocr-upload/index.d.ts +3 -0
  236. package/dist/ui/elementPlus/ocr-upload/ocrUpload.d.ts +21 -0
  237. package/dist/ui/naiveUi/form-item/formItem.vue.d.ts +772 -3
  238. package/dist/ui/naiveUi/index.cjs +1 -1
  239. package/dist/ui/naiveUi/index.js +11 -11
  240. package/dist/ui/naiveUi/modal/modal.d.ts +1 -1
  241. package/dist/{uk-Cc6k-QUE.cjs → uk-8RCZke0G.cjs} +1 -1
  242. package/dist/uploadFile-CTDuT_4r.cjs +1 -0
  243. package/dist/uploadFile-D1Wv0mlk.js +90 -0
  244. package/dist/uploadImage-0mGONFA8.cjs +1 -0
  245. package/dist/{uploadImage-Db_66X3C.js → uploadImage-DKgjQrSu.js} +4 -4
  246. package/dist/{uploadImage-DQmVV0jl.js → uploadImage-lNqQKWH3.js} +23 -22
  247. package/dist/{uploadImage-nwjqcVFU.cjs → uploadImage-r7uyNOKB.cjs} +1 -1
  248. package/dist/{ur-C0tmW1hr.js → ur-Dj65NIKf.js} +3 -3
  249. package/dist/utils/manager/pluginManager.d.ts +16 -16
  250. package/dist/{vi-j1PGHz1o.js → vi-BEZaL78_.js} +4 -4
  251. package/dist/{vi-Dyfq5Qgz.cjs → vi-aBc6LsS_.cjs} +1 -1
  252. package/dist/{vuedraggable.umd-BqhSJIAi.cjs → vuedraggable.umd-CxOWsXm8.cjs} +6 -6
  253. package/dist/{vuedraggable.umd-D2S7Eo7p.js → vuedraggable.umd-D908YPOr.js} +396 -400
  254. package/dist/{zh-cn-BKQHxHe9.cjs → zh-cn-DTp5Vsak.cjs} +1 -1
  255. package/dist/{zh-hk-hNFRxlrX.cjs → zh-hk-DvIiOtyL.cjs} +1 -1
  256. package/dist/{zh-tw-BT16WIrT.js → zh-tw-BZt76cZl.js} +7 -7
  257. package/dist/{zh-tw-SGOlw9Wo.cjs → zh-tw-OGVt40m9.cjs} +1 -1
  258. package/package.json +2 -2
  259. package/dist/attributeView-UzP3tU2D.cjs +0 -1
  260. package/dist/axios-CXDYiOMX.js +0 -1704
  261. package/dist/axios-tuVKNgv9.cjs +0 -6
  262. package/dist/be--_CkdeMD.cjs +0 -1
  263. package/dist/be-DJzFjqtL.js +0 -22
  264. package/dist/form-Bofkrmkd.cjs +0 -1
  265. package/dist/form-VbfBmb63.js +0 -72
  266. package/dist/ga-B7Rd2JIZ.cjs +0 -1
  267. package/dist/ga-BcnAx7jm.js +0 -22
  268. package/dist/index-4PPmJYKt.cjs +0 -51
  269. package/dist/index-B72l3XQl.js +0 -453
  270. package/dist/index-B8exdhvc.cjs +0 -1
  271. package/dist/index-BB9rZNCd.cjs +0 -181
  272. package/dist/index-BCk0LJsg.cjs +0 -347
  273. package/dist/index-BHZbtFEF.cjs +0 -1
  274. package/dist/index-BVUz9lFN.cjs +0 -325
  275. package/dist/index-BhICtIH5.js +0 -1433
  276. package/dist/index-BsXm6fLD.js +0 -1493
  277. package/dist/index-BwLkOBWy.cjs +0 -10
  278. package/dist/index-C9PHR_YC.js +0 -4
  279. package/dist/index-CR_tJiJv.js +0 -653
  280. package/dist/index-CZFPJ6vM.cjs +0 -1
  281. package/dist/index-Cap7FkuS.cjs +0 -1
  282. package/dist/index-Cphndmia.cjs +0 -214
  283. package/dist/index-CraRg8wh.js +0 -107
  284. package/dist/index-D5WpEOUO.cjs +0 -351
  285. package/dist/index-DEBQD_h0.cjs +0 -1
  286. package/dist/index-DMszow96.cjs +0 -110
  287. package/dist/index-DTzB2pWI.cjs +0 -159
  288. package/dist/index-DWCSzZfR.cjs +0 -80
  289. package/dist/index-DyWFUxn5.js +0 -11674
  290. package/dist/index-RdEhd65J.cjs +0 -65
  291. package/dist/index-XU85x6vz.cjs +0 -9
  292. package/dist/index-g5ZjtbqH.cjs +0 -102
  293. package/dist/index-jx5A2kt8.cjs +0 -850
  294. package/dist/index-n6H8b6fT.cjs +0 -1
  295. package/dist/index-zYoSB4fa.cjs +0 -9
  296. package/dist/row-CkyJ9pQh.js +0 -35
  297. package/dist/row-NNlPGZRG.cjs +0 -1
  298. package/dist/select-BvJWp4t6.cjs +0 -1
  299. package/dist/select-CjWTf5kk.js +0 -45
  300. package/dist/ui/antd/form/form.vue.d.ts +0 -64
  301. package/dist/ui/antd/form-item/formItem.vue.d.ts +0 -18
  302. package/dist/uploadFile-pgvj4Lm9.cjs +0 -1
  303. package/dist/uploadFile-qCbXuHfd.js +0 -81
  304. package/dist/uploadImage-B3sOX-5F.cjs +0 -1
@@ -1,9 +1,9 @@
1
- import { defineComponent as U, inject as L, openBlock as p, createElementBlock as g, Fragment as A, renderList as T, createElementVNode as i, toDisplayString as O, createVNode as C, unref as _, withCtx as R, createCommentVNode as G, createTextVNode as J, ref as E, computed as S, withDirectives as F, normalizeClass as j, vShow as P, reactive as H, createBlock as K, nextTick as Q, toRaw as z, watch as W } from "vue";
2
- import { n as q, p as w, g as X, a as Y } from "./pluginManager-BCnrHPYv.js";
3
- import { _ as D } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
4
- import { d as Z } from "./vuedraggable.umd-D2S7Eo7p.js";
5
- import { _ as ee } from "./tree.vue_vue_type_script_setup_true_lang-BsVyMb-n.js";
6
- import { _ as te } from "./index-BhICtIH5.js";
1
+ import { defineComponent as U, inject as L, createElementBlock as g, openBlock as p, Fragment as A, renderList as T, createElementVNode as i, toDisplayString as O, createVNode as C, unref as y, withCtx as R, createCommentVNode as G, createTextVNode as J, ref as k, computed as S, withDirectives as F, normalizeClass as j, vShow as P, reactive as H, createBlock as K, nextTick as Q, toRaw as z, watch as W } from "vue";
2
+ import { n as q, p as w, g as X, a as Y } from "./pluginManager-B0y107-1.js";
3
+ import { _ as D } from "./icon.vue_vue_type_script_setup_true_lang-DW206h_7.js";
4
+ import { d as Z } from "./vuedraggable.umd-D908YPOr.js";
5
+ import { _ as ee } from "./tree.vue_vue_type_script_setup_true_lang-M13R0TPV.js";
6
+ import { E as te } from "./index-DAYEBASh.js";
7
7
  const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-event-btn text-lg flex items-center text-$epic-text-secondary" }, ae = { class: "epic-action-editor-main" }, se = { class: "epic-editor-item rounded" }, ie = { class: "w-36px flex items-center text-lg" }, ce = { class: "flex-1" }, de = { key: 0 }, ue = { key: 1 }, re = { key: 2 }, pe = { class: "epic-action-box text-lg text-$epic-text-medium" }, me = ["onClick"], ve = ["onClick"], fe = /* @__PURE__ */ U({
8
8
  __name: "EActionEditorItem",
9
9
  props: {
@@ -25,8 +25,8 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
25
25
  }
26
26
  },
27
27
  emits: ["add", "edit", "update:modelValue"],
28
- setup(k, { emit: b }) {
29
- const m = k, x = b, f = L("pageSchema");
28
+ setup(b, { emit: E }) {
29
+ const m = b, x = E, f = L("pageSchema");
30
30
  function V(v) {
31
31
  x("add", v);
32
32
  }
@@ -49,7 +49,7 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
49
49
  c[l.type] = m.events[l.type];
50
50
  }), c;
51
51
  }
52
- return (v, c) => (p(!0), g(A, null, T(k.itemEvents, (l) => (p(), g("div", {
52
+ return (v, c) => (p(!0), g(A, null, T(b.itemEvents, (l) => (p(), g("div", {
53
53
  key: l.type,
54
54
  class: "epic-event-item"
55
55
  }, [
@@ -59,14 +59,14 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
59
59
  title: l.describe
60
60
  }, O(l.describe), 9, oe),
61
61
  i("div", le, [
62
- C(_(D), {
62
+ C(y(D), {
63
63
  name: "icon--epic--add-rounded",
64
64
  onClick: (e) => V(l.type)
65
65
  }, null, 8, ["onClick"])
66
66
  ])
67
67
  ]),
68
68
  i("div", ae, [
69
- C(_(Z), {
69
+ C(y(Z), {
70
70
  modelValue: m.events[l.type],
71
71
  "onUpdate:modelValue": (e) => m.events[l.type] = e,
72
72
  "item-key": "id",
@@ -80,13 +80,13 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
80
80
  item: R(({ element: e, index: $ }) => [
81
81
  i("div", se, [
82
82
  i("div", ie, [
83
- C(_(D), {
83
+ C(y(D), {
84
84
  class: "mr-2 text-lg cursor-move handle text-$epic-text-medium",
85
85
  name: "icon--epic--drag"
86
86
  })
87
87
  ]),
88
88
  i("div", ce, [
89
- e.type === "component" ? (p(), g("div", de, O(h(e.componentId)), 1)) : e.type === "custom" ? (p(), g("div", ue, " 自定义函数 ")) : e.type === "public" ? (p(), g("div", re, " 公共函数 ")) : G("", !0),
89
+ e.type === "component" ? (p(), g("div", de, O(h(e.componentId)), 1)) : e.type === "custom" ? (p(), g("div", ue, "自定义函数")) : e.type === "public" ? (p(), g("div", re, "公共函数")) : G("", !0),
90
90
  J(" " + O(e.methodName), 1)
91
91
  ]),
92
92
  i("div", pe, [
@@ -94,13 +94,13 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
94
94
  class: "epic-edit-btn",
95
95
  onClick: (N) => u($, l.type, e)
96
96
  }, [
97
- C(_(D), { name: "icon--epic--page-info-outline-rounded" })
97
+ C(y(D), { name: "icon--epic--page-info-outline-rounded" })
98
98
  ], 8, me),
99
99
  i("div", {
100
100
  class: "epic-del-btn",
101
101
  onClick: (N) => r($, l.type)
102
102
  }, [
103
- C(_(D), { name: "icon--epic--delete-outline-rounded" })
103
+ C(y(D), { name: "icon--epic--delete-outline-rounded" })
104
104
  ], 8, ve)
105
105
  ])
106
106
  ])
@@ -112,48 +112,46 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
112
112
  }
113
113
  }), he = { class: "h-full flex flex-col" }, ge = /* @__PURE__ */ U({
114
114
  __name: "EScriptEdit",
115
- setup(k) {
116
- const b = w.getComponent("monacoEditor"), m = {
115
+ setup(b) {
116
+ const E = w.getComponent("monacoEditor"), m = {
117
117
  theme: "vs-light",
118
118
  selectOnLineNumbers: !0,
119
119
  minimap: {
120
120
  enabled: !1
121
121
  }
122
- }, x = E(null), f = L("pageSchema");
122
+ }, x = k(null), f = L("pageSchema");
123
123
  return (V, h) => (p(), g("div", he, [
124
124
  h[1] || (h[1] = i("div", { class: "pb-2" }, " 自定义函数编辑 ", -1)),
125
- C(_(b), {
125
+ C(y(E), {
126
126
  ref_key: "monacoEditorRef",
127
127
  ref: x,
128
128
  autoToggleTheme: "",
129
- modelValue: _(f).script,
130
- "onUpdate:modelValue": h[0] || (h[0] = (r) => _(f).script = r),
129
+ modelValue: y(f).script,
130
+ "onUpdate:modelValue": h[0] || (h[0] = (r) => y(f).script = r),
131
131
  class: "epic-editor flex-1",
132
132
  config: m,
133
133
  language: "javascript"
134
134
  }, null, 8, ["modelValue"])
135
135
  ]));
136
136
  }
137
- }), _e = { class: "epic-attribute-view" }, ye = ["title"], xe = { class: "epic-attr-input" }, Ie = /* @__PURE__ */ U({
137
+ }), ye = { class: "epic-attribute-view" }, _e = ["title"], xe = { class: "epic-attr-input" }, Ie = /* @__PURE__ */ U({
138
138
  __name: "EArgsEditor",
139
139
  props: {
140
140
  modelValue: {},
141
141
  actionArgsConfigs: {}
142
142
  },
143
143
  emits: ["update:modelValue"],
144
- setup(k, { emit: b }) {
145
- const m = k, x = b, f = S(() => m.modelValue ? JSON.parse(m.modelValue) : []);
144
+ setup(b, { emit: E }) {
145
+ const m = b, x = E, f = S(() => m.modelValue ? JSON.parse(m.modelValue) : []);
146
146
  function V(r) {
147
147
  var u;
148
148
  return typeof r.show == "boolean" ? r.show : typeof r.show == "function" ? (u = r.show) == null ? void 0 : u.call(r, { values: f.value }) : !0;
149
149
  }
150
150
  function h(r, u) {
151
- const n = [
152
- ...JSON.parse(m.modelValue ?? "[]")
153
- ];
151
+ const n = [...JSON.parse(m.modelValue ?? "[]")];
154
152
  n[u] = r, x("update:modelValue", JSON.stringify(n));
155
153
  }
156
- return (r, u) => (p(), g("div", _e, [
154
+ return (r, u) => (p(), g("div", ye, [
157
155
  (p(!0), g(A, null, T(m.actionArgsConfigs, (n) => (p(), g("div", {
158
156
  key: n.field + n.type
159
157
  }, [
@@ -163,10 +161,15 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
163
161
  i("div", {
164
162
  class: "epic-attr-label",
165
163
  title: n.label
166
- }, O(n.label), 9, ye),
164
+ }, O(n.label), 9, _e),
167
165
  i("div", xe, [
168
- C(_(te), {
169
- componentSchema: { ...n, componentProps: { ...n.componentProps, input: !1, field: void 0, hidden: !1 }, show: !0, noFormItem: !0 },
166
+ C(y(te), {
167
+ componentSchema: {
168
+ ...n,
169
+ componentProps: { ...n.componentProps, input: !1, field: void 0, hidden: !1 },
170
+ show: !0,
171
+ noFormItem: !0
172
+ },
170
173
  "model-value": f.value[n.field],
171
174
  "onUpdate:modelValue": (v) => h(v, n.field)
172
175
  }, null, 8, ["componentSchema", "model-value", "onUpdate:modelValue"])
@@ -177,14 +180,14 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
177
180
  ]))), 128))
178
181
  ]));
179
182
  }
180
- }), Ce = { class: "rounded epic-modal-action-main" }, Ve = { class: "epic-modal-left-panel h-full flex flex-col" }, be = { class: "flex flex-1 h-0 flex-col" }, ke = { class: "flex-1 h-0" }, Ee = { class: "epic-action-select h-30/100 flex flex-col" }, $e = { class: "flex-1 overflow-auto pr-8px" }, Ne = ["onClick"], Se = { class: "text-center pt-42px text-gray-400" }, we = { class: "epic-modal-right-panel" }, Oe = {
183
+ }), Ce = { class: "rounded epic-modal-action-main" }, Ve = { class: "epic-modal-left-panel h-full flex flex-col" }, Ee = { class: "flex flex-1 h-0 flex-col" }, be = { class: "flex-1 h-0" }, ke = { class: "epic-action-select h-30/100 flex flex-col" }, $e = { class: "flex-1 overflow-auto pr-8px" }, Ne = ["onClick"], Se = { class: "text-center pt-42px text-gray-400" }, we = { class: "epic-modal-right-panel" }, Oe = {
181
184
  key: 1,
182
185
  class: "text-center pt-42px text-gray-400"
183
186
  }, Ae = /* @__PURE__ */ U({
184
187
  __name: "EActionModal",
185
188
  emits: ["add", "edit"],
186
- setup(k, { expose: b, emit: m }) {
187
- const x = w.getComponent("modal"), f = E(!0), V = L("pageSchema"), h = L("pageManager", {}), r = E(!1), u = E([]), n = E(null), v = m, c = S(() => {
189
+ setup(b, { expose: E, emit: m }) {
190
+ const x = w.getComponent("modal"), f = k(!0), V = L("pageSchema"), h = L("pageManager", {}), r = k(!1), u = k([]), n = k(null), v = m, c = S(() => {
188
191
  var o;
189
192
  return e.actionItem.type === "component" ? n.value ? (o = w.getComponentConfings()[n.value.type].config.action) == null ? void 0 : o.map((t) => ({
190
193
  label: t.describe,
@@ -200,7 +203,7 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
200
203
  );
201
204
  if (t != null && t.argsConfigs) {
202
205
  const I = t.argsConfigs.findIndex(
203
- (y) => y.label === "设置数据"
206
+ (_) => _.label === "设置数据"
204
207
  );
205
208
  I !== -1 && (t.argsConfigs[I] = {
206
209
  ...n.value,
@@ -254,10 +257,10 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
254
257
  function d(o) {
255
258
  e.actionItem.methodName = o, e.actionItem.args = e.cacheData[e.actionItem.componentId + e.actionItem.methodName];
256
259
  }
257
- return b({
260
+ return E({
258
261
  handleOpen: $,
259
262
  handleOpenEdit: N
260
- }), (o, t) => (p(), K(_(x), {
263
+ }), (o, t) => (p(), K(y(x), {
261
264
  modelValue: r.value,
262
265
  "onUpdate:modelValue": t[4] || (t[4] = (I) => r.value = I),
263
266
  class: "w-1200px",
@@ -271,34 +274,34 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
271
274
  return [
272
275
  i("div", Ce, [
273
276
  i("div", Ve, [
274
- i("div", be, [
277
+ i("div", Ee, [
275
278
  i("div", {
276
279
  class: j(["fun-btn", { checked: e.actionItem.type === "custom" }]),
277
- onClick: t[0] || (t[0] = (y) => s("custom"))
280
+ onClick: t[0] || (t[0] = (_) => s("custom"))
278
281
  }, " 自定义函数 ", 2),
279
282
  i("div", {
280
283
  class: j(["fun-btn", { checked: e.actionItem.type === "public" }]),
281
- onClick: t[1] || (t[1] = (y) => s("public"))
284
+ onClick: t[1] || (t[1] = (_) => s("public"))
282
285
  }, " 公共函数 ", 2),
283
- t[5] || (t[5] = J(" 组件 ")),
284
- i("div", ke, [
285
- C(_(ee), {
286
+ t[5] || (t[5] = J(" 组件 ", -1)),
287
+ i("div", be, [
288
+ C(y(ee), {
286
289
  selectedKeys: u.value,
287
- "onUpdate:selectedKeys": t[2] || (t[2] = (y) => u.value = y),
288
- options: _(V).schemas,
290
+ "onUpdate:selectedKeys": t[2] || (t[2] = (_) => u.value = _),
291
+ options: y(V).schemas,
289
292
  onNodeClick: a
290
293
  }, null, 8, ["selectedKeys", "options"])
291
294
  ])
292
295
  ]),
293
- i("div", Ee, [
296
+ i("div", ke, [
294
297
  t[6] || (t[6] = i("div", { class: "mb-2" }, "动作选择", -1)),
295
298
  i("div", $e, [
296
- (p(!0), g(A, null, T(c.value, (y) => (p(), g("div", {
297
- class: j([{ checked: y.value === e.actionItem.methodName }, "epic-action-item"]),
298
- onClick: (Ue) => d(y.value),
299
- key: y.value
299
+ (p(!0), g(A, null, T(c.value, (_) => (p(), g("div", {
300
+ class: j([{ checked: _.value === e.actionItem.methodName }, "epic-action-item"]),
301
+ onClick: (Ue) => d(_.value),
302
+ key: _.value
300
303
  }, [
301
- i("span", null, O(y.label), 1)
304
+ i("span", null, O(_.label), 1)
302
305
  ], 10, Ne))), 128)),
303
306
  F(i("div", Se, " 当前组件暂无动作 ", 512), [
304
307
  [P, !((I = c.value) != null && I.length)]
@@ -310,7 +313,7 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
310
313
  e.actionItem.type === "custom" ? (p(), K(ge, { key: 0 })) : l.value.length === 0 ? (p(), g("div", Oe, " 暂无配置 ")) : (p(), K(Ie, {
311
314
  key: 2,
312
315
  modelValue: e.actionItem.args,
313
- "onUpdate:modelValue": t[3] || (t[3] = (y) => e.actionItem.args = y),
316
+ "onUpdate:modelValue": t[3] || (t[3] = (_) => e.actionItem.args = _),
314
317
  actionArgsConfigs: l.value
315
318
  }, null, 8, ["modelValue", "actionArgsConfigs"]))
316
319
  ])
@@ -332,17 +335,17 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
332
335
  }
333
336
  },
334
337
  emits: ["update:modelValue"],
335
- setup(k, { emit: b }) {
336
- const m = w.getComponent("Collapse"), x = w.getComponent("CollapseItem"), f = E(null);
338
+ setup(b, { emit: E }) {
339
+ const m = w.getComponent("Collapse"), x = w.getComponent("CollapseItem"), f = k(null);
337
340
  let V = 0;
338
- const h = k, r = b, u = S({
341
+ const h = b, r = E, u = S({
339
342
  get() {
340
343
  return h.modelValue;
341
344
  },
342
345
  set(s) {
343
346
  r("update:modelValue", s);
344
347
  }
345
- }), n = E([]), v = S(() => h.eventList.filter((s) => s.events.length)), c = S(() => h.eventList.map((s) => s.events).flat()), l = E({});
348
+ }), n = k([]), v = S(() => h.eventList.filter((s) => s.events.length)), c = S(() => h.eventList.map((s) => s.events).flat()), l = k({});
346
349
  c.value.forEach((s) => {
347
350
  l.value[s.type] = S({
348
351
  get() {
@@ -353,20 +356,24 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
353
356
  a && a.length ? u.value[s.type] = a.map((d) => z(d)) : delete u.value[s.type];
354
357
  }
355
358
  });
356
- }), W(() => v.value, (s) => {
357
- s.length && (n.value = s.filter((a) => {
358
- for (let d = 0; d < a.events.length; d++) {
359
- const o = a.events[d].type;
360
- if (l.value[o].length)
361
- return !0;
362
- }
363
- return !1;
364
- }).map((a) => a.title));
365
- }, {
366
- // 配置选项
367
- immediate: !0
368
- // 立即执行一次回调函数
369
- });
359
+ }), W(
360
+ () => v.value,
361
+ (s) => {
362
+ s.length && (n.value = s.filter((a) => {
363
+ for (let d = 0; d < a.events.length; d++) {
364
+ const o = a.events[d].type;
365
+ if (l.value[o].length)
366
+ return !0;
367
+ }
368
+ return !1;
369
+ }).map((a) => a.title));
370
+ },
371
+ {
372
+ // 配置选项
373
+ immediate: !0
374
+ // 立即执行一次回调函数
375
+ }
376
+ );
370
377
  let e = "";
371
378
  function $(s) {
372
379
  var a;
@@ -387,7 +394,7 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
387
394
  u.value[e] = [...l.value[e] ?? [], s];
388
395
  }
389
396
  return (s, a) => (p(), g(A, null, [
390
- C(_(m), {
397
+ C(y(m), {
391
398
  modelValue: n.value,
392
399
  "onUpdate:modelValue": a[1] || (a[1] = (d) => n.value = d),
393
400
  activeKey: n.value,
@@ -396,7 +403,7 @@ const ne = { class: "epic-event-info" }, oe = ["title"], le = { class: "epic-eve
396
403
  "onUpdate:expandedNames": a[3] || (a[3] = (d) => n.value = d)
397
404
  }, {
398
405
  default: R(() => [
399
- (p(!0), g(A, null, T(v.value, (d) => (p(), K(_(x), {
406
+ (p(!0), g(A, null, T(v.value, (d) => (p(), K(y(x), {
400
407
  key: d.title,
401
408
  title: d.title,
402
409
  header: d.title,
@@ -1,6 +1,6 @@
1
- import { defineComponent as g, computed as k, openBlock as a, createElementBlock as l, Fragment as y, renderList as C, createVNode as r, unref as s, createElementVNode as c, createCommentVNode as U, toDisplayString as P } from "vue";
2
- import { p as b, g as E } from "./pluginManager-BCnrHPYv.js";
3
- import { _ as N } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
1
+ import { defineComponent as g, computed as k, createElementBlock as a, openBlock as l, createElementVNode as r, Fragment as y, renderList as C, createVNode as c, createCommentVNode as U, unref as s, toDisplayString as P } from "vue";
2
+ import { p as b, g as E } from "./pluginManager-B0y107-1.js";
3
+ import { _ as N } from "./icon.vue_vue_type_script_setup_true_lang-DW206h_7.js";
4
4
  import { u as x } from "./index-B1s67XDZ.js";
5
5
  const D = {
6
6
  key: 0,
@@ -37,12 +37,12 @@ const D = {
37
37
  function V(e) {
38
38
  t.value = t.value.filter((h, o) => e !== o);
39
39
  }
40
- return (e, h) => (a(), l("div", null, [
41
- (a(!0), l(y, null, C(t.value, (o, p) => (a(), l("div", {
40
+ return (e, h) => (l(), a("div", null, [
41
+ (l(!0), a(y, null, C(t.value, (o, p) => (l(), a("div", {
42
42
  key: p,
43
43
  class: "EColEditor-item"
44
44
  }, [
45
- r(s(i), {
45
+ c(s(i), {
46
46
  value: o.componentProps.span,
47
47
  "onUpdate:value": (n) => o.componentProps.span = n,
48
48
  modelValue: o.componentProps.span,
@@ -51,15 +51,15 @@ const D = {
51
51
  min: 1,
52
52
  max: 24
53
53
  }, null, 8, ["value", "onUpdate:value", "modelValue", "onUpdate:modelValue"]),
54
- t.value.length > 1 ? (a(), l("div", D, [
55
- c("span", {
54
+ t.value.length > 1 ? (l(), a("div", D, [
55
+ r("span", {
56
56
  onClick: (n) => V(p)
57
57
  }, [
58
- r(s(N), { name: "icon--epic--trash" })
58
+ c(s(N), { name: "icon--epic--trash" })
59
59
  ], 8, L)
60
60
  ])) : U("", !0)
61
61
  ]))), 128)),
62
- c("div", {
62
+ r("div", {
63
63
  class: "add-btn",
64
64
  onClick: _
65
65
  }, P(s(m)("add")), 1)
@@ -1,9 +1,9 @@
1
- import { defineComponent as re, inject as A, ref as M, computed as q, watch as fe, openBlock as H, createElementBlock as F, Fragment as he, withDirectives as Ce, createElementVNode as V, normalizeClass as pe, toDisplayString as Qe, unref as u, createVNode as B, createCommentVNode as ie, withCtx as Z, createTextVNode as de, vShow as Te, createBlock as ve, mergeProps as Ke, useAttrs as Xe, provide as Ye, onUnmounted as qe, resolveComponent as Ge, createSlots as je, renderList as Ne, shallowRef as et, watchEffect as tt, nextTick as We, normalizeStyle as ye, renderSlot as nt, onMounted as ot } from "vue";
2
- import { p as ne, o as D, g as te, a as Se, h as st, d as ke, q as lt } from "./pluginManager-BCnrHPYv.js";
3
- import { u as $e, a as at, b as _e, _ as it, c as rt, d as ct, e as dt, w as ut, f as ht } from "./index-BhICtIH5.js";
1
+ import { defineComponent as re, inject as A, ref as M, computed as q, watch as fe, createElementBlock as F, openBlock as H, Fragment as he, withDirectives as Ce, createElementVNode as V, normalizeClass as pe, createCommentVNode as ie, toDisplayString as Qe, unref as u, createVNode as B, withCtx as Z, createTextVNode as de, vShow as Te, createBlock as ve, mergeProps as Ke, useAttrs as Xe, provide as Ye, onUnmounted as qe, resolveComponent as Ge, createSlots as je, renderList as Ne, shallowRef as et, watchEffect as tt, nextTick as We, normalizeStyle as ye, renderSlot as nt, onMounted as ot } from "vue";
2
+ import { p as ne, o as D, g as te, a as Se, h as st, d as ke, q as lt } from "./pluginManager-B0y107-1.js";
3
+ import { u as $e, a as at, b as _e, E as it, c as rt, d as ct, e as dt, w as ut, f as ht } from "./index-DAYEBASh.js";
4
4
  import { ElDropdown as ft, ElDropdownMenu as pt, ElDropdownItem as ue } from "element-plus";
5
- import { _ as me } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
6
- import { d as vt } from "./vuedraggable.umd-D2S7Eo7p.js";
5
+ import { _ as me } from "./icon.vue_vue_type_script_setup_true_lang-DW206h_7.js";
6
+ import { d as vt } from "./vuedraggable.umd-D908YPOr.js";
7
7
  const mt = { class: "epic-widget-action-item whitespace-nowrap" }, gt = {
8
8
  key: 0,
9
9
  class: "flex items-center"
@@ -254,42 +254,42 @@ const mt = { class: "epic-widget-action-item whitespace-nowrap" }, gt = {
254
254
  B(u(pt), null, {
255
255
  default: Z(() => [
256
256
  B(u(ue), { command: "left" }, {
257
- default: Z(() => l[0] || (l[0] = [
258
- de("添加左列")
259
- ])),
257
+ default: Z(() => [...l[0] || (l[0] = [
258
+ de("添加左列", -1)
259
+ ])]),
260
260
  _: 1
261
261
  }),
262
262
  B(u(ue), { command: "right" }, {
263
- default: Z(() => l[1] || (l[1] = [
264
- de("添加右列")
265
- ])),
263
+ default: Z(() => [...l[1] || (l[1] = [
264
+ de("添加右列", -1)
265
+ ])]),
266
266
  _: 1
267
267
  }),
268
268
  B(u(ue), { command: "top" }, {
269
- default: Z(() => l[2] || (l[2] = [
270
- de("添加上列")
271
- ])),
269
+ default: Z(() => [...l[2] || (l[2] = [
270
+ de("添加上列", -1)
271
+ ])]),
272
272
  _: 1
273
273
  }),
274
274
  B(u(ue), { command: "bottom" }, {
275
- default: Z(() => l[3] || (l[3] = [
276
- de("添加下列")
277
- ])),
275
+ default: Z(() => [...l[3] || (l[3] = [
276
+ de("添加下列", -1)
277
+ ])]),
278
278
  _: 1
279
279
  }),
280
280
  B(u(ue), {
281
281
  command: "delete-row",
282
282
  divided: ""
283
283
  }, {
284
- default: Z(() => l[4] || (l[4] = [
285
- de("删除当前行")
286
- ])),
284
+ default: Z(() => [...l[4] || (l[4] = [
285
+ de("删除当前行", -1)
286
+ ])]),
287
287
  _: 1
288
288
  }),
289
289
  B(u(ue), { command: "delete-col" }, {
290
- default: Z(() => l[5] || (l[5] = [
291
- de("删除当前列")
292
- ])),
290
+ default: Z(() => [...l[5] || (l[5] = [
291
+ de("删除当前列", -1)
292
+ ])]),
293
293
  _: 1
294
294
  })
295
295
  ]),
@@ -0,0 +1,4 @@
1
+ import { E as a } from "./index-DAYEBASh.js";
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";const e=require("vue"),D=require("./pluginManager-C8aQylGX.cjs"),K=require("./index-BoL2PSBk.cjs"),be=require("element-plus"),X=require("./index-DlWUR7vt.cjs"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function Ae(t,o){let r=null;return(...l)=>{r&&clearTimeout(r),r=setTimeout(()=>{t(...l)},o)}}function ie(){const t=e.ref({}),o=e.ref({}),r=e.ref(!1),l=e.ref([]),f=e.reactive({});function a(m){return t.value[m]}function g(m,A){t.value[m]=A}function c(m){delete t.value[m]}function S(m,A=!1){const V=Object.entries(D.pluginManager.publicMethods).reduce((B,[w,L])=>(B[w]=L.handler,B),{});try{new Function(`const epic = this;${m}`).bind({...V,getComponent:a,find:a,defineExpose:O,publicMethods:V,pluginManager:D.pluginManager})()}catch(B){A&&console.error("[epic:自定义函数]异常:",B)}}function O(m){m!=null&&(o.value=m)}function _(m,...A){if(!m||m.length===0){console.warn("未提供任何动作");return}m.forEach(V=>{const B=V.args?JSON.parse(V.args):A;switch(V.type){case"public":h(V,B);break;case"custom":I(V,B);break;case"component":n(V,B);break;default:console.warn(`未知的动作类型: ${V.type}`);break}})}function h(m,A){var V;try{(V=D.pluginManager.publicMethods[m.methodName])==null||V.handler(...A)}catch(B){console.error(`[Epic:公共函数(${m.methodName})]执行异常:`,B)}}function I(m,A){var V,B;try{(B=(V=o.value)[m.methodName])==null||B.call(V,...A)}catch(w){console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`,w)}}function n(m,A){const V=m.componentId!=null&&a(m.componentId);if(!V){console.warn(`[Epic:组件${m.componentId}]未找到`);return}try{V[m.methodName](...A)}catch(B){console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`,B)}}function b(m=!0){r.value=m}function y(m){const A=D.findSchemas(m,()=>!0);l.value=A.map(V=>V.id)}function x(m,A="default"){if(f[A]){const V=f[A];D.deepCompareAndModify(m,V)}f[A]=m}function F(m,A="default"){if(f[A]){D.deepCompareAndModify(f[A],m,!1);return}f[A]=m}return{componentInstances:t,funcs:o,isDesignMode:r,defaultComponentIds:l,forms:f,addFormData:x,setFormData:F,getComponentInstance:a,find:a,addComponentInstance:g,removeComponentInstance:c,setMethods:S,doActions:_,setDesignMode:b,setDefaultComponentIds:y}}function de(){const t=e.ref([]),o=e.ref([]),r=e.ref(null);let l=0;function f(S,O="插入组件"){const _=Date.now();l+150>_||(l=_,r.value!=null&&(t.value.push(r.value),o.value.splice(0,o.value.length)),r.value={type:O,componentSchema:JSON.stringify(S)},t.value.length>60&&t.value.unshift())}function a(){if(t.value.length===0)return!1;const S=t.value.pop();return r.value!=null&&o.value.push(r.value),r.value=S,JSON.parse(S.componentSchema)}function g(){if(o.value.length===0)return!1;const S=o.value.pop();return r.value!=null&&t.value.push(r.value),r.value=S,JSON.parse(S.componentSchema)}function c(){t.value=[],o.value=[],r.value=null}return{recordList:t,undoList:o,currentRecord:r,push:f,undo:a,redo:g,reset:c}}const Ce=e.defineComponent({__name:"dynamicFormItem",props:{hasFormItem:{type:Boolean},formItemProps:{}},emits:["updateFormItemRef"],setup(t,{emit:o}){const r=D.pluginManager.getComponent("form-item"),l=t,f=o,a=e.ref(),g=()=>{f("updateFormItemRef",a.value)};return(c,S)=>l.hasFormItem?(e.openBlock(),e.createBlock(e.unref(r),e.mergeProps({key:0,ref_key:"formItemRef",ref:a,onVnodeMounted:g},l.formItemProps),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16,["onVnodeMounted"])):e.renderSlot(c.$slots,"default",{key:1})}}),Oe={key:0,class:"epic-loading-box"},_e={class:"epic-loading-content"},Ne={class:"epic-loading-text"},Pe=e.defineComponent({name:"ENode",__name:"node",props:{componentSchema:{},modelValue:{},ruleField:{},resetFormData:{type:Boolean},name:{},dynamicId:{},sourceDateUrl:{},id:{}},emits:["update:modelValue","change","update:dynamicId"],setup(t,{emit:o}){const r=e.ref(!1),l=e.ref("加载中"),{proxy:f}=e.getCurrentInstance(),a=t,g=e.ref(null);let c=e.inject("formData",e.reactive({}));const S=e.inject("slots",{}),O=e.inject("pageManager",{}),_=e.inject("disabled",{value:!1}),h=e.inject("ruleFieldPrefix",null),I=e.inject("resetFormData",!1);let n=e.reactive(D.deepClone(a.componentSchema));m();async function b(s){try{r.value=!0,l.value="正在识别中...请稍等";const E={url:s.callBackUrl,headers:{Authorization:"Bearer "+K.api.get("Admin-Token"),lang:K.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}},T=(s.callBackMethod||"").toLowerCase(),C={[s.callBackField]:s.url.join(",")};T==="get"?(E.method="get",E.params=C):(E.method=T||"post",E.data=C);let R=await X.axios(E),p={};s.callBackDataPath?p=s.callBackDataPath.split(".").reduce((W,H)=>W[H],R.data):p=R.data,s.validate&&(s.validateParams.forEach(q=>{c[q.value]=c.orcWarningInfo__copy_data[q.value]}),c[s.field+"-orcWarningInfo"]="",s.validateParams.forEach(q=>{c[q.value]&&p[q.value]!==c[q.value]&&p[q.value]&&(a.componentSchema.componentProps.validateStatus=!0,c[s.field+"-orcWarningInfo"]?c[s.field+"-orcWarningInfo"]=c[s.field+"-orcWarningInfo"]+","+q.label+"已从"+c[q.value]+"改为"+p[q.value]:c[s.field+"-orcWarningInfo"]=q.label+"已从"+c[q.value]+"改为"+p[q.value])})),Object.assign(c,p)}catch(E){be.ElMessage.error("OCR 识别回调处理失败:"+E.message)}finally{r.value=!1,l.value="加载中"}}async function y({value:s,field:E,fillDataSource:T,fillDataParams:C}){try{r.value=!0;const p=(await X.axios({url:a.sourceDateUrl,method:"get",params:{id:T??""},headers:{Authorization:"Bearer "+K.api.get("Admin-Token"),lang:K.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}})).data.data;let q=await X.axios({url:p.url,method:p.method,data:p.body?JSON.parse(p.body):{},params:p.params?{...JSON.parse(p.params),[E]:s}:{[E]:s},headers:{...JSON.parse(p.headers),Authorization:"Bearer "+K.api.get("Admin-Token"),lang:K.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}});if(p&&(p!=null&&p.dataPath)){let Y=p.dataPath.split(".").reduce((ee,De)=>ee[De],q.data);C.split(",").forEach(ee=>{c[ee]=Y[ee]})}else{let W=q.data;C.split(",").forEach(H=>{c[H]=W[H]})}c.orcWarningInfo__copy_data=JSON.parse(JSON.stringify(c))}catch(R){console.log(R)}finally{r.value=!1,l.value="加载中"}}async function x(s){if(["cascader","checkbox","select","radio"].includes(s.type)&&s.componentProps.dynamicId&&a.sourceDateUrl){const C=(await X.axios({url:a.sourceDateUrl,method:"get",params:{id:s.componentProps.dynamicId??""},headers:{Authorization:"Bearer "+K.api.get("Admin-Token"),lang:K.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}})).data.data;let R=await X.axios({url:C.url,method:C.method,data:C.body?JSON.parse(C.body):{},params:C.params?JSON.parse(C.params):{},headers:{...JSON.parse(C.headers),Authorization:"Bearer "+K.api.get("Admin-Token"),lang:K.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}});if(C&&(C!=null&&C.dataPath)){const q=C.dataPath.split(".").reduce((W,H)=>W[H],R.data);s.componentProps.options=F(q,C.dataKey,C.dataValue)}else s.componentProps.options=F(R.data,C.dataKey,C.dataValue);return s}return s}function F(s,E,T){return s&&Object.prototype.toString.call(s)==="[object Array]"?s.map(C=>C.children&&C.children.length?{label:C[E],value:C[T]+"",children:F(C.children,E,T)}:{label:C[E],value:C[T]+""}):[]}e.watch(()=>a.componentSchema,s=>{D.deepEqual(n,s,["children"])||(D.deepCompareAndModify(n,D.deepClone(s)),m())},{deep:!0});function m(){O.isDesignMode.value&&typeof n.field=="string"&&(n.field+="-design-mode")}(a.resetFormData||I)&&(c={});const A=o,V=e.ref(),B=e.ref(),w=s=>{B.value=s},L=e.useAttrs();Object.keys(L).length&&e.provide("nodeAttrs",L);const z=e.shallowRef(null),N=e.computed(()=>{var s,E;return(s=n.componentProps)!=null&&s.hidden?!1:typeof n.show=="boolean"?n.show:((E=n.show)==null?void 0:E.call(n,{values:c}))??!0}),i=e.computed(()=>{var C;const s=N.value&&((C=n.rules)==null?void 0:C.map(R=>({...R,validator:R.validator&&O.funcs.value[R.validator]})));let E=n.field;a.ruleField?E=a.ruleField:h&&n.field&&(E=D.deepClone(h),E.push(n.field));const T={...n,rules:s,rule:s,field:E};return T.children&&delete T.children,T}),k=e.computed(()=>{var T,C,R;const s=((T=u.value)==null?void 0:T.bindModel)??"modelValue",E={};return n.on&&Object.keys(n.on).forEach(p=>{E[`on${D.capitalizeFirstLetter(p)}`]=(...q)=>O.doActions(n.on[p],...q)}),n.type==="selectpage"&&(n.componentProps.defaultData={value:c[n.field],label:c[c[n.field]]}),{...a,...n.componentProps,sourceDateUrl:a.sourceDateUrl,disabled:a.componentSchema.type==="input"&&a.componentSchema.componentProps&&((C=a.componentSchema.componentProps)!=null&&C.isLink)?!1:(_==null?void 0:_.value)||((R=n.componentProps)==null?void 0:R.disabled),bindModel:s,...E}}),u=e.computed(()=>D.pluginManager.getComponentConfingByType(n.type)??null);e.watchEffect(()=>{g.value=a.modelValue??c[n.field??""]}),e.watch(()=>g.value,()=>{g.value!==(a.modelValue??c[n.field??""])&&v(g.value)}),e.watch(()=>V.value,()=>{d()},{immediate:!0});function d(){var E;const s=V.value||f;n!=null&&n.id&&s&&((n.input||n.type==="table"&&n.field||n.type==="card"&&n.field&&n.multiple)&&(s.setValue=v,s.getValue=()=>c[n.field]||a.modelValue),s.setAttr=(T,C)=>(n.componentProps||(n.componentProps={}),n.componentProps[T]=C),s.getAttr=T=>n.componentProps[T],O.addComponentInstance(n==null?void 0:n.id,s),(E=u.value)!=null&&E.defaultSchema.input&&n.noFormItem!==!0&&B.value&&O.addComponentInstance((n==null?void 0:n.id)+"formItem",B.value))}function M(){var s;n.id&&(O.removeComponentInstance(n==null?void 0:n.id),(s=u.value)!=null&&s.defaultSchema.input&&n.noFormItem!==!0&&O.removeComponentInstance((n==null?void 0:n.id)+"formItem"))}async function $(){var E,T,C;if(n=await x(n),typeof((E=n.componentProps)==null?void 0:E.defaultValue)<"u"){const R=O.isDesignMode.value?(T=n.componentProps)==null?void 0:T.defaultValue:c[n.field]??((C=n.componentProps)==null?void 0:C.defaultValue);v(D.deepClone(R))}if(n.type==="slot"){const R=n.slotName;if(!R)return;z.value=e.defineComponent({setup(){return()=>e.renderSlot(S,R,{componentSchema:n,model:c})}});return}const s=D.pluginManager.getComponent(n.type);if(!s){console.error(`组件${n.type}未注册`);return}if(typeof s=="function"){const R=await s();z.value=R.default??R}else s&&(z.value=s)}function P(s){Object.prototype.toString.call(s)==="[object Array]"?s.forEach(E=>{c[E.value]=E.label}):c[s.value]=s.label,a!=null&&a.id?D.EventBus.emit("updateformData"+(a==null?void 0:a.id),c):D.EventBus.emit("updateformData",c)}function v(s){A("update:modelValue",s),A("change",s),n.field&&(c[n.field]=s),a!=null&&a.id?D.EventBus.emit("updateformData"+(a==null?void 0:a.id),c):D.EventBus.emit("updateformData",c)}function J(s){A("update:dynamicId",s)}let U=null;return e.watch(()=>n,async s=>{const E=JSON.stringify({...s,children:void 0,componentProps:{...s.componentProps,options:null}});if(E===U)return!1;U=E,$()},{immediate:!0,deep:!0}),e.onUnmounted(M),(s,E)=>{var C;const T=e.resolveComponent("ENode");return e.openBlock(),e.createElementBlock(e.Fragment,null,[r.value?(e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",_e,[E[1]||(E[1]=e.createStaticVNode('<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)),e.createElementVNode("span",Ne,e.toDisplayString(l.value),1)])])):e.createCommentVNode("",!0),z.value&&N.value?(e.openBlock(),e.createBlock(Ce,{key:1,hasFormItem:e.unref(n).noFormItem!==!0&&((C=u.value)==null?void 0:C.defaultSchema.input),formItemProps:i.value,onUpdateFormItemRef:w},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(z.value),e.mergeProps({ref_key:"componentInstance",ref:V,onVnodeMounted:d,model:e.unref(c),sourceDateUrl:a.sourceDateUrl},{...k.value},{[k.value.bindModel]:g.value,["onUpdate:"+k.value.bindModel]:E[0]||(E[0]=R=>g.value=R),[`onUpdate:${k.value.bindModel}`||""]:v,"onUpdate:modelValueLabel":P,"onUpdate:dynamicId":J,"onUpdate:ocrData":b,"onUpdate:selectFillData":y}),{node:e.withCtx(R=>[e.createVNode(T,e.mergeProps({id:a.id},R,{sourceDateUrl:a.sourceDateUrl}),null,16,["id","sourceDateUrl"])]),"edit-node":e.withCtx(()=>[e.renderSlot(s.$slots,"edit-node",{},void 0,!0)]),_:3},16,["model","sourceDateUrl"]))]),_:3},8,["hasFormItem","formItemProps"])):e.createCommentVNode("",!0)],64)}}}),fe=xe._export_sfc(Pe,[["__scopeId","data-v-685cd0a7"]]);function Ie(){const t=e.ref(!1),o=ie(),r=e.ref({});function l(){return new Promise(n=>{if(t.value)n();else{const b=e.watch(t,()=>{b(),n()})}})}async function f(n="default"){var y;await l();const b=(y=r.value)==null?void 0:y[n];if(!b)throw new Error(`表单 [name=${n}] 不存在`);return b}async function a(n,b){const y=await f(n);return D.deepClone(await b(y))}async function g(n="default"){return await a(n,b=>b.getData())}function c(n,b="default",y=void 0){var x,F;if(y&&Object.keys(y).length){let m=function(w){let L=[];return w.forEach(z=>{z.children&&(L=[...L,...m(z.children)]),L.push(z)}),L},V=function(w){var z;let L=m((z=y==null?void 0:y.schemas[0])==null?void 0:z.children);return Object.keys(w).forEach(N=>{var u,d,M,$,P,v,J;const i=L.find(U=>U.field===N),k=["datetimerange","daterange","monthrange","dates"];if((i&&(i==null?void 0:i.type)==="checkbox"||(i==null?void 0:i.type)==="select"&&((u=i==null?void 0:i.componentProps)!=null&&u.multiple)||(i==null?void 0:i.type)==="cascader"&&!((M=(d=i==null?void 0:i.componentProps)==null?void 0:d.props)!=null&&M.multiple)||(i==null?void 0:i.type)==="date"&&k.includes(($=i==null?void 0:i.componentProps)==null?void 0:$.type))&&typeof w[N]=="string")w[N]=(P=w[N])==null?void 0:P.split(",");else if((i==null?void 0:i.type)==="cascader"&&((J=(v=i==null?void 0:i.componentProps)==null?void 0:v.props)!=null&&J.multiple)&&typeof w[N]=="string")w[N].indexOf(";")===-1&&w[N].indexOf(";")===-1?w[N][w[N]]:w[N].indexOf(";")>-1?w[N]=w[N].split(";").map(U=>U.split(",")):w[N].indexOf(";")===-1?w[N]=w[N].split(","):w[N].indexOf(";")>-1?w[N]=w[N].split(";").map(U=>U.split(",")):w[N].indexOf(";")===-1&&(w[N]=w[N].split(","));else if(((i==null?void 0:i.type)==="upload-image"||(i==null?void 0:i.type)==="upload-file")&&typeof w[N]=="string"){let U=[];Object.entries(w).forEach(([s,E])=>{w[N]===E&&s!==i.field&&s.indexOf("@")>-1&&s.indexOf(N)>-1&&(U=s.split("@")[1].split(","))}),w[N]=w[N].split(",").map((s,E)=>({url:s,name:U[E]||s}))}else(i==null?void 0:i.type)==="number"||(i==null?void 0:i.type)==="slider"?w[N]=Number(w[N]):(i==null?void 0:i.type)==="switch"&&(w[N]=typeof w[N]=="boolean"?w[N]:w[N].indexOf("true")>-1)}),w}(n);o.setFormData(V,b);const B=(x=r.value)==null?void 0:x[b];B==null||B.clearValidate()}else{o.setFormData(n,b);const m=(F=r.value)==null?void 0:F[b];m==null||m.clearValidate()}}async function S(n="default"){return await a(n,async b=>(await b.validate(),await b.getData()))}async function O(n){await l();const b={};for(const y in r.value){const x=r.value[y];x&&(b[y]=D.deepClone(await n(x)))}return b}async function _(){return await O(n=>n.getData())}function h(n){for(const b in n)c(n[b],b)}async function I(){return await O(async n=>(await n.validate(),await n.getData()))}return{ready:t,pageManager:o,forms:r,getData:g,setData:c,validate:S,getForms:_,setForms:h,validateAll:I,getFormInstance:f}}const Ve={key:0,class:"epic-loading-box"},Be={class:"epic-builder-main"},Me={class:"epic-loading-box"},pe=e.defineComponent({__name:"builder",props:{pageSchema:{},formData:{},disabled:{type:Boolean},sourceDateUrl:{},id:{}},emits:["change","ready"],setup(t,{expose:o,emit:r}){const l=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C4CkFEzv.cjs"))),f=r,a=e.ref([]),g=e.ref({}),{ready:c,pageManager:S,forms:O,getData:_,setData:h,validate:I,getForms:n,setForms:b,validateAll:y,getFormInstance:x}=Ie(),F=t,m=e.reactive({schemas:[]});e.watch(()=>F.pageSchema,u=>{D.deepCompareAndModify(m,u)},{immediate:!0,deep:!0}),e.watch(()=>F.formData,u=>{if(u){let d=z(u);g.value=d,h(d)}},{immediate:!0,deep:!0});function A(u){let d=[];return u.forEach(M=>{M.children&&(d=[...d,...A(M.children)]),d.push(M)}),d}function V(u,d){function M(P){return JSON.parse(JSON.stringify(P))}function $(P,v){if(P.type==="card"&&P.multiple&&P.field&&Array.isArray(v[P.field]))return v[P.field].map(U=>{var E;const s=M({...P,multiple:!0});return s.children=(E=s.children)==null?void 0:E.map(T=>$(T,U)).flat(),s});const J=M(P);return Array.isArray(J.children)&&(J.children=J.children.map(U=>$(U,v)).flat()),J}return u.map(P=>$(P,d)).flat()}function B(u,d="",M={root:0}){const $=d||"root";return d||(M.root=0),M[$]===void 0&&(M[$]=0),u.map(P=>{P.field&&(P.oldField=JSON.parse(JSON.stringify(P.field)));const v={...P};if(P.type==="card"){const J=P.field||"";P.multiple?(v.field=d?`${d}.${J}[${M[$]}]`:`${J}[${M[$]}]`,M[$]++):P.field&&d&&(v.field=`${d}.${J}`);const U=v.field||d;M[U]=0}else P.field&&d&&(v.field=`${d}.${P.field}`);return P.children&&(v.children=B(P.children,v.field||d,M)),v})}function w(u,d,M="",$={}){const P=M||"root";return $[P]===void 0&&($[P]=0),u.forEach(v=>{const J=v.field||"";let U=M?`${M}.${J}`:`${J}`;v.type==="card"&&v.multiple?(typeof d[U][`${$[P]}`]=="object"?Object.keys(d[U][`${$[P]}`]).forEach(s=>{d[`${U}[${$[P]}].${s}`]=d[U][`${$[P]}`][s]}):d[`${U}[${$[P]}]`]=d[U][`${$[P]}`],v.children&&(v.children=w(v.children,d,`${U}[${$[P]}]`||M,$)),$[P]++):v.children&&(v.children=w(v.children,d,M,$))}),$[P]=0,d}function L(u,d,M){let $=w(D.deepClone(u),D.deepClone(d));return{obj:B(u),dataObj:$}}function z(u){let d=A(F.pageSchema.schemas[0].children);a.value=d.filter(v=>v.type==="card"&&v.multiple);const M=V(F.pageSchema.schemas[0].children,u);let{obj:$,dataObj:P}=L(M,u,a.value);return u=P,F.pageSchema.schemas[0].children=$,Object.keys(u).forEach(v=>{var J,U,s,E,T,C,R;if(v.indexOf("@")<0){const p=d.find(W=>W.field===v),q=["datetimerange","daterange","monthrange","dates"];if((p&&(p==null?void 0:p.type)==="checkbox"||(p==null?void 0:p.type)==="select"&&((J=p==null?void 0:p.componentProps)!=null&&J.multiple)||(p==null?void 0:p.type)==="cascader"&&!((s=(U=p==null?void 0:p.componentProps)==null?void 0:U.props)!=null&&s.multiple)||(p==null?void 0:p.type)==="date"&&q.includes((E=p==null?void 0:p.componentProps)==null?void 0:E.type))&&typeof u[v]=="string")u[v]=(T=u[v])==null?void 0:T.split(",");else if((p==null?void 0:p.type)==="cascader"&&((R=(C=p==null?void 0:p.componentProps)==null?void 0:C.props)!=null&&R.multiple)&&typeof u[v]=="string")u[v].indexOf(";")>-1?u[v]=u[v].split(";").map(W=>W.split(",")):u[v]=u[v].split(","),u[v].indexOf(";")>-1?u[v]=u[v].split(";").map(W=>W.split(",")):u[v]=u[v].split(",");else if(((p==null?void 0:p.type)==="upload-image"||(p==null?void 0:p.type)==="upload-file")&&typeof u[v]=="string"){let W=[];Object.entries(u).forEach(([H,Y])=>{u[v]===Y&&H!==p.field&&H.indexOf("@")>-1&&H.indexOf(v)>-1&&(W=H.split("@")[1].split(","))}),u[v]=u[v].split(",").map((H,Y)=>({url:H,name:W[Y]||H}))}else(p==null?void 0:p.type)==="number"||(p==null?void 0:p.type)==="slider"?u[v]=Number(u[v]):(p==null?void 0:p.type)==="switch"&&(u[v]=typeof u[v]=="boolean"?u[v]:u[v].indexOf("true")>-1)}}),u}e.watch(()=>m.script,u=>{u&&S.setMethods(u,!0)},{immediate:!0}),e.provide("slots",e.useSlots()),e.provide("pageManager",S),e.provide("forms",O),e.provide("pageSchema",m),e.provide("disabled",e.computed(()=>F.disabled));const N=e.getCurrentInstance(),i=N==null?void 0:N.proxy;function k(){e.nextTick(()=>{c.value=!0,f("ready",S),i&&S.addComponentInstance("builder",i)})}return D.EventBus.on("updateformData"+(F.id?F.id:""),u=>{f("change",u)}),o({ready:c,pageManager:S,getData:_,setData:h,validate:I,getForms:n,setForms:b,validateAll:y,getFormInstance:x}),(u,d)=>e.unref(D.pluginManager).initialized.value?(e.openBlock(),e.createBlock(e.Suspense,{key:1,onResolve:k},{default:e.withCtx(()=>[e.createElementVNode("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.schemas,(M,$)=>(e.openBlock(),e.createBlock(e.unref(fe),{id:F.id,key:$,sourceDateUrl:F.sourceDateUrl,componentSchema:M},null,8,["id","sourceDateUrl","componentSchema"]))),128))])]),fallback:e.withCtx(()=>[e.createElementVNode("div",Me,[e.createVNode(e.unref(l))])]),_:1})):(e.openBlock(),e.createElementBlock("div",Ve))}});function ce(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function $e(t){let o=0,r,l;const f=()=>{o-=1,l&&o<=0&&(l.stop(),r=void 0,l=void 0)};return(...a)=>(o+=1,l||(l=e.effectScope(!0),r=l.run(()=>t(...a))),ce(f),r)}function Q(t){return typeof t=="function"?t():e.unref(t)}const Fe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Te=t=>typeof t<"u",Re=Object.prototype.toString,Ue=t=>Re.call(t)==="[object Object]",ke=()=>{};function qe(t,o){function r(...l){return new Promise((f,a)=>{Promise.resolve(t(()=>o.apply(this,l),{fn:o,thisArg:this,args:l})).then(f).catch(a)})}return r}const me=t=>t();function ze(t=me){const o=e.ref(!0);function r(){o.value=!1}function l(){o.value=!0}const f=(...a)=>{o.value&&t(...a)};return{isActive:e.readonly(o),pause:r,resume:l,eventFilter:f}}function Je(t){return e.getCurrentInstance()}function Le(t,o,r={}){const{eventFilter:l=me,...f}=r;return e.watch(t,qe(l,o),f)}function We(t,o,r={}){const{eventFilter:l,...f}=r,{eventFilter:a,pause:g,resume:c,isActive:S}=ze(l);return{stop:Le(t,o,{...f,eventFilter:a}),pause:g,resume:c,isActive:S}}function he(t,o=!0,r){Je()?e.onMounted(t,r):o?t():e.nextTick(t)}function He(t=!1,o={}){const{truthyValue:r=!0,falsyValue:l=!1}=o,f=e.isRef(t),a=e.ref(t);function g(c){if(arguments.length)return a.value=c,a.value;{const S=Q(r);return a.value=a.value===S?Q(l):S,a.value}}return f?g:[a,g]}function Ke(t,o,r){const l=e.watch(t,(...f)=>(e.nextTick(()=>l()),o(...f)),r);return l}const G=Fe?window:void 0;function Z(t){var o;const r=Q(t);return(o=r==null?void 0:r.$el)!=null?o:r}function le(...t){let o,r,l,f;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,l,f]=t,o=G):[o,r,l,f]=t,!o)return ke;Array.isArray(r)||(r=[r]),Array.isArray(l)||(l=[l]);const a=[],g=()=>{a.forEach(_=>_()),a.length=0},c=(_,h,I,n)=>(_.addEventListener(h,I,n),()=>_.removeEventListener(h,I,n)),S=e.watch(()=>[Z(o),Q(f)],([_,h])=>{if(g(),!_)return;const I=Ue(h)?{...h}:h;a.push(...r.flatMap(n=>l.map(b=>c(_,n,b,I))))},{immediate:!0,flush:"post"}),O=()=>{S(),g()};return ce(O),O}function Ze(t){return typeof t=="function"?t:typeof t=="string"?o=>o.key===t:Array.isArray(t)?o=>t.includes(o.key):()=>!0}function ve(...t){let o,r,l={};t.length===3?(o=t[0],r=t[1],l=t[2]):t.length===2?typeof t[1]=="object"?(o=!0,r=t[0],l=t[1]):(o=t[0],r=t[1]):(o=!0,r=t[0]);const{target:f=G,eventName:a="keydown",passive:g=!1,dedupe:c=!1}=l,S=Ze(o);return le(f,a,_=>{_.repeat&&Q(c)||S(_)&&r(_)},g)}function re(t,o,r={}){return ve(t,o,{...r,eventName:"keydown"})}function ae(t,o,r={}){return ve(t,o,{...r,eventName:"keyup"})}function Qe(){const t=e.ref(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Ge(t){const o=Qe();return e.computed(()=>(o.value,!!t()))}function Ye(t){return JSON.parse(JSON.stringify(t))}const te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ne="__vueuse_ssr_handlers__",Xe=je();function je(){return ne in te||(te[ne]=te[ne]||{}),te[ne]}function et(t,o){return Xe[t]||o}function tt(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const nt={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},ue="vueuse-storage";function ot(t,o,r,l={}){var f;const{flush:a="pre",deep:g=!0,listenToStorageChanges:c=!0,writeDefaults:S=!0,mergeDefaults:O=!1,shallow:_,window:h=G,eventFilter:I,onError:n=i=>{console.error(i)},initOnMounted:b}=l,y=(_?e.shallowRef:e.ref)(typeof o=="function"?o():o);if(!r)try{r=et("getDefaultStorage",()=>{var i;return(i=G)==null?void 0:i.localStorage})()}catch(i){n(i)}if(!r)return y;const x=Q(o),F=tt(x),m=(f=l.serializer)!=null?f:nt[F],{pause:A,resume:V}=We(y,()=>w(y.value),{flush:a,deep:g,eventFilter:I});h&&c&&he(()=>{r instanceof Storage?le(h,"storage",z):le(h,ue,N),b&&z()}),b||z();function B(i,k){if(h){const u={key:t,oldValue:i,newValue:k,storageArea:r};h.dispatchEvent(r instanceof Storage?new StorageEvent("storage",u):new CustomEvent(ue,{detail:u}))}}function w(i){try{const k=r.getItem(t);if(i==null)B(k,null),r.removeItem(t);else{const u=m.write(i);k!==u&&(r.setItem(t,u),B(k,u))}}catch(k){n(k)}}function L(i){const k=i?i.newValue:r.getItem(t);if(k==null)return S&&x!=null&&r.setItem(t,m.write(x)),x;if(!i&&O){const u=m.read(k);return typeof O=="function"?O(u,x):F==="object"&&!Array.isArray(u)?{...x,...u}:u}else return typeof k!="string"?k:m.read(k)}function z(i){if(!(i&&i.storageArea!==r)){if(i&&i.key==null){y.value=x;return}if(!(i&&i.key!==t)){A();try{(i==null?void 0:i.newValue)!==m.write(y.value)&&(y.value=L(i))}catch(k){n(k)}finally{i?e.nextTick(V):V()}}}}function N(i){z(i.detail)}return y}function ge(t,o,r={}){const{window:l=G,...f}=r;let a;const g=Ge(()=>l&&"ResizeObserver"in l),c=()=>{a&&(a.disconnect(),a=void 0)},S=e.computed(()=>{const h=Q(t);return Array.isArray(h)?h.map(I=>Z(I)):[Z(h)]}),O=e.watch(S,h=>{if(c(),g.value&&l){a=new ResizeObserver(o);for(const I of h)I&&a.observe(I,f)}},{immediate:!0,flush:"post"}),_=()=>{c(),O()};return ce(_),{isSupported:g,stop:_}}function rt(t,o={width:0,height:0},r={}){const{window:l=G,box:f="content-box"}=r,a=e.computed(()=>{var h,I;return(I=(h=Z(t))==null?void 0:h.namespaceURI)==null?void 0:I.includes("svg")}),g=e.ref(o.width),c=e.ref(o.height),{stop:S}=ge(t,([h])=>{const I=f==="border-box"?h.borderBoxSize:f==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(l&&a.value){const n=Z(t);if(n){const b=n.getBoundingClientRect();g.value=b.width,c.value=b.height}}else if(I){const n=Array.isArray(I)?I:[I];g.value=n.reduce((b,{inlineSize:y})=>b+y,0),c.value=n.reduce((b,{blockSize:y})=>b+y,0)}else g.value=h.contentRect.width,c.value=h.contentRect.height},r);he(()=>{const h=Z(t);h&&(g.value="offsetWidth"in h?h.offsetWidth:o.width,c.value="offsetHeight"in h?h.offsetHeight:o.height)});const O=e.watch(()=>Z(t),h=>{g.value=h?o.width:0,c.value=h?o.height:0});function _(){S(),O()}return{width:g,height:c,stop:_}}function at(t,o,r,l={}){var f,a,g;const{clone:c=!1,passive:S=!1,eventName:O,deep:_=!1,defaultValue:h,shouldEmit:I}=l,n=e.getCurrentInstance(),b=r||(n==null?void 0:n.emit)||((f=n==null?void 0:n.$emit)==null?void 0:f.bind(n))||((g=(a=n==null?void 0:n.proxy)==null?void 0:a.$emit)==null?void 0:g.bind(n==null?void 0:n.proxy));let y=O;o||(o="modelValue"),y=y||`update:${o.toString()}`;const x=A=>c?typeof c=="function"?c(A):Ye(A):A,F=()=>Te(t[o])?x(t[o]):h,m=A=>{I?I(A)&&b(y,A):b(y,A)};if(S){const A=F(),V=e.ref(A);let B=!1;return e.watch(()=>t[o],w=>{B||(B=!0,V.value=x(w),e.nextTick(()=>B=!1))}),e.watch(V,w=>{!B&&(w!==t[o]||_)&&m(w)},{deep:_}),V}else return e.computed({get(){return F()},set(A){m(A)}})}function st(){const{isDark:t}=j(),o=He(t);return{isDark:t,toggleDark:o}}function ye(){const t=e.ref(!1);return e.onMounted(()=>{we(t),lt(t)}),e.watch(()=>t.value,()=>{t.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}),{isDark:t}}function we(t){var o=document.documentElement;o&&(o.classList.contains("dark")?t.value=!0:t.value=!1)}function lt(t){var o=document.querySelector("html"),r=new MutationObserver(function(l){for(var f of l)if(f.type==="attributes"&&f.attributeName==="class"){const a=f.target;new Array(...a.classList).includes("dark")?t.value=!0:t.value=!1}});r.observe(o,{attributes:!0,attributeFilter:["class"]}),e.onUnmounted(()=>{r.disconnect()})}function Se(){const t=e.ref(1),o=e.ref(!1),{isDark:r}=ye(),{pressSpace:l,pressShift:f,pressCtrl:a}=Ee();return{canvasScale:t,pressSpace:l,pressShift:f,pressCtrl:a,disabledZoom:o,isDark:r}}const j=$e(Se);function Ee(){const t=e.ref(!1),o=e.ref(!1),r=e.ref(!1);return re(" ",()=>{t.value=!0}),ae(" ",()=>{t.value=!1}),re("Shift",l=>{l.preventDefault(),o.value=!0}),ae("Shift",()=>{o.value=!1}),re("Control",l=>{l.preventDefault(),r.value=!0}),ae("Control",()=>{r.value=!1}),{pressSpace:t,pressShift:o,pressCtrl:r}}function it(t){const{pressSpace:o}=j(),r=new Image(1,1);r.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";let l=0,f=0;function a(S){var O;o.value&&(l=S.x,f=S.y,(O=S.dataTransfer)==null||O.setDragImage(document.createElement("div"),0,0))}function g(S){if(S.preventDefault(),!S.x||!S.y||!o.value)return;const O=S.x-l,_=S.y-f;l=S.x,f=S.y,t.value&&(t.value.scrollTop-=_,t.value.scrollLeft-=O)}function c(){o.value=!1}return{handleElementDragStart:a,handleElementDrag:g,handleElementDragEnd:c}}function ct(t){const{pressCtrl:o,canvasScale:r,disabledZoom:l}=j();function f(a){if(!o.value||l.value)return;a.preventDefault();let g=0;a.deltaY<0?g=r.value+.05:g=r.value-.05,!(g>150||g<.5)&&(r.value=g)}return e.watch(()=>r.value,a=>{t.value&&!l.value&&(t.value.style.transform=`scale(${a})`)}),{handleZoom:f,canvasScale:r}}function ut(t,o=16.66){let r;function l(){f(),r=window.setInterval(t,o)}function f(){window.clearInterval(r)}return{startTimedQuery:l,stopTimedQuery:f}}const dt={class:"min-w-750px rounded"},ft={class:"h-full rounded"},pt=e.defineComponent({__name:"index",setup(t,{expose:o}){const r=D.pluginManager.getComponent("monacoEditor"),l=D.pluginManager.getComponent("modal"),f=e.ref(null),a=e.ref(!1),g=e.ref(!1),c=e.ref({}),S=e.inject("pageSchema"),O=e.ref(null),_=e.ref("");function h(){g.value=!1}function I(){a.value=!1}function n(){a.value=!0,_.value=D.getUUID()}async function b(){try{let y=await O.value.validateAll();if(!Object.keys(y).length){alert("请添加表单组件后再尝试!");return}Object.keys(y).length===1&&(y=y.default),c.value=JSON.stringify(y,null,2),e.nextTick(()=>{var x;(x=f.value)==null||x.setValue(c.value)}),g.value=!0}catch(y){console.error(y)}}return o({handleOpen:n}),(y,x)=>(e.openBlock(),e.createBlock(e.unref(l),{modelValue:a.value,"onUpdate:modelValue":x[1]||(x[1]=F=>a.value=F),title:"预览",class:"w-900px",width:"900px",onClose:I,onOk:b,okText:"表单数据"},{default:e.withCtx(()=>[e.createElementVNode("div",dt,[(e.openBlock(),e.createBlock(e.unref(pe),{key:_.value,ref_key:"kb",ref:O,"page-schema":e.unref(S)},null,8,["page-schema"])),e.createVNode(e.unref(l),{modelValue:g.value,"onUpdate:modelValue":x[0]||(x[0]=F=>g.value=F),title:"表单数据",class:"w-860px",width:"860px",onClose:h,onOk:h},{default:e.withCtx(()=>[e.createElementVNode("div",ft,[e.createVNode(e.unref(r),{ref_key:"monacoEditorRef",ref:f,autoToggleTheme:"",readOnly:"",class:"h-full editor","model-value":c.value},null,8,["model-value"])])]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"]))}}),mt={key:0,class:"epic-loading-box"},ht={class:"epic-designer-main"},vt={class:"epic-header-container"},gt={class:"epic-loading-box"},yt=e.defineComponent({__name:"designer",props:{disabledZoom:{type:Boolean,default:!1},hiddenHeader:{type:Boolean,default:!1},lockDefaultSchemaEdit:{type:Boolean,default:!1},formMode:{type:Boolean,default:!1},title:{default:"EpicDesigner默认项目"},defaultSchema:{},sourceCodeReadOnly:{type:Boolean},source:{default:[]},updateSourceId:{}},emits:["ready","save","reset","toggleDeviceMode","saveSourceData","deleteSourceData","updateSourceData"],setup(t,{expose:o,emit:r}){const{t:l}=K.useLocale(),f=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-aIGMRk0a.cjs"))),a=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BRAbfTxT.cjs"))),g=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-j1FWyAIY.cjs"))),c=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-uyQPLEww.cjs"))),S=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C4CkFEzv.cjs"))),O=ie(),_=de(),h=t;let I={schemas:[{type:"form",id:"root",label:l("page"),children:[],componentProps:{name:l("form"),style:{padding:"16px"}}}],script:`const { defineExpose, find } = epic;
2
+
3
+ function test (){
4
+ console.log('test')
5
+ }
6
+
7
+ // 通过defineExpose暴露的函数或者属性
8
+ defineExpose({
9
+ test
10
+ })`};e.watchEffect(()=>{if(h.defaultSchema){I=h.defaultSchema;return}h.source&&D.pluginManager.setSourceData(h.source),h.formMode&&(I.schemas=D.pluginManager.formSchemas)}),O.setDesignMode(),O.setDefaultComponentIds(I.schemas);const n=r,b=e.ref(null),y=e.reactive({checkedNode:null,hoverNode:null,disableHover:!1,matched:[]}),x=e.reactive({schemas:[],script:I.script}),{disabledZoom:F}=j();e.watchEffect(()=>{F.value=h.disabledZoom}),e.watchEffect(()=>{const d=x.script;d&&d!==""&&O.setMethods(d)}),e.provide("pageSchema",x),e.provide("revoke",_),e.provide("pageManager",O),e.provide("designerProps",e.computed(()=>h)),e.provide("designer",{setCheckedNode:A,setHoverNode:V,setDisableHover:w,handleToggleDeviceMode:k,reset:N,state:y}),D.EventBus.on("saveSourceData",d=>{n("saveSourceData",d)}),D.EventBus.on("deleteSourceData",d=>{n("deleteSourceData",d)}),D.EventBus.on("updateSourceData",d=>{n("updateSourceData",d)});function m(){x.schemas=D.deepClone(I.schemas),A(x.schemas[0]),_.push(x.schemas,"初始化撤销功能")}async function A(d=x.schemas[0]){y.checkedNode=d,y.matched=D.getMatchedById(x.schemas,d.id)}async function V(d=null){var M;if(!d||y.disableHover)return y.hoverNode=null,!1;if((d==null?void 0:d.id)===((M=y.hoverNode)==null?void 0:M.id))return!1;y.hoverNode=d}function B(){e.nextTick(()=>{n("ready",{pageManager:O})})}async function w(d=!1){y.disableHover=d}function L(d){D.deepCompareAndModify(x,D.deepClone(d))}function z(){return e.toRaw(x)}function N(){D.deepEqual(x.schemas,I.schemas)&&x.script===I.script||(D.deepCompareAndModify(x.schemas,I.schemas),x.script=I.script,A(x.schemas[0]),_.push(x.schemas,"重置操作"),n("reset",x))}function i(){n("save",e.toRaw(x))}function k(d){n("toggleDeviceMode",d)}function u(){b.value.handleOpen()}return m(),o({revoke:_,setData:L,getData:z,reset:N,preview:u}),(d,M)=>e.unref(D.pluginManager).initialized.value?(e.openBlock(),e.createBlock(e.Suspense,{key:1,onResolve:B},{default:e.withCtx(()=>[e.createElementVNode("div",ht,[e.createElementVNode("div",vt,[e.renderSlot(d.$slots,"header",{},()=>[h.hiddenHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(f),{key:0,onPreview:u,onSave:i},{header:e.withCtx(()=>[e.renderSlot(d.$slots,"header-prefix")]),prefix:e.withCtx(()=>[e.renderSlot(d.$slots,"header-prefix")]),title:e.withCtx(()=>[e.renderSlot(d.$slots,"header-title")]),"right-prefix":e.withCtx(()=>[e.renderSlot(d.$slots,"header-right-prefix")]),"right-action":e.withCtx(()=>[e.renderSlot(d.$slots,"header-right-action")]),"right-suffix":e.withCtx(()=>[e.renderSlot(d.$slots,"header-right-suffix")]),_:3}))])]),e.createElementVNode("div",{class:e.normalizeClass(["epic-split-view-container",{"hidden-header":t.hiddenHeader}])},[e.createVNode(e.unref(a)),e.createVNode(e.unref(g)),e.createVNode(e.unref(c))],2),e.createVNode(pt,{ref_key:"previewRef",ref:b},null,512)])]),fallback:e.withCtx(()=>[e.createElementVNode("div",gt,[e.createVNode(e.unref(S))])]),_:3})):(e.openBlock(),e.createElementBlock("div",mt))}}),wt={component:async()=>await Promise.resolve().then(()=>require("./index-Bc7x5Vkn.cjs")),defaultSchema:{label:"代码编辑器",type:"monacoEditor",field:"monacoEditor",icon:"epic-icon-write",input:!0},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"monacoEditor",field:"componentProps.defaultValue"}]},bindModel:"model-value"},{t:se}=K.useLocale(),St={component:async()=>await Promise.resolve().then(()=>require("./index-Ch9jeYmj.cjs")),defaultSchema:{label:se("page"),type:"page",componentProps:{},children:[]},config:{attribute:[{label:se("pageName"),type:"input",componentProps:{placeholder:se("pleaseEnter")},field:"componentProps.name"}]}},{t:oe}=K.useLocale();function Et(t){t.component("EInputSize",async()=>await Promise.resolve().then(()=>require("./index-waYHs7SN.cjs"))),t.component("EColEditor",async()=>await Promise.resolve().then(()=>require("./index-DER3z6SG.cjs"))),t.component("EActionEditor",async()=>await Promise.resolve().then(()=>require("./index-Wv68i_Qm.cjs"))),t.component("ERuleEditor",async()=>await Promise.resolve().then(()=>require("./index-CPjLNlCP.cjs"))),t.component("EOptionsEditor",async()=>await Promise.resolve().then(()=>require("./index-DKeQ2WZr.cjs"))),t.component("ENode",async()=>await Promise.resolve().then(()=>require("./index-DRzL2wcU.cjs"))),t.component("EDataSource",async()=>await Promise.resolve().then(()=>require("./index-eAXbC_rr.cjs"))),t.component("EColumnEditor",async()=>await Promise.resolve().then(()=>require("./index-DnpZItWQ.cjs"))),t.component("PaddingMarginControl",async()=>await Promise.resolve().then(()=>require("./index-BozsQqds.cjs"))),t.component("ESourceDataSelect",async()=>await Promise.resolve().then(()=>require("./index-2ohl2GLw.cjs"))),t.component("EValidateParam",async()=>await Promise.resolve().then(()=>require("./index-Y9Wgjz5m.cjs"))),t.component("EDescribe",async()=>await Promise.resolve().then(()=>require("./index-BAbwPcMn.cjs"))),t.registerActivitybar({id:"component_view",title:oe("component"),icon:"icon--epic--extension-outline",component:async()=>await Promise.resolve().then(()=>require("./index-BB6SDXJs.cjs"))}),t.registerActivitybar({id:"outline_view",title:oe("outline"),icon:"icon--epic--account-tree-outline-rounded",component:async()=>await Promise.resolve().then(()=>require("./outline-BkNtj_2a.cjs"))}),t.registerRightSidebar({id:"attribute_view",title:oe("attribute"),component:async()=>await Promise.resolve().then(()=>require("./attributeView-3gE9ZveH.cjs"))}),t.registerRightSidebar({id:"style_view",title:oe("style"),component:async()=>await Promise.resolve().then(()=>require("./styleView-v0USu1ar.cjs"))}),t.registerRightSidebar({id:"event_view",title:"事件",component:async()=>await Promise.resolve().then(()=>require("./eventView-BExxE07B.cjs"))}),[wt,St].forEach(r=>{t.registerComponent(r)})}Et(D.pluginManager);exports.ENode=fe;exports._sfc_main=pe;exports._sfc_main$1=yt;exports.debounce=Ae;exports.getDarkState=we;exports.initStore=Se;exports.useDark=ye;exports.useElementDrag=it;exports.useElementSize=rt;exports.useElementZoom=ct;exports.useKeyPress=Ee;exports.usePageManager=ie;exports.useResizeObserver=ge;exports.useRevoke=de;exports.useStorage=ot;exports.useStore=j;exports.useTheme=st;exports.useTimedQuery=ut;exports.useVModel=at;exports.watchOnce=Ke;