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.
Files changed (298) hide show
  1. package/dist/{_vue_commonjs-external-BbihI59z.cjs → _vue_commonjs-external-CccDNqHl.cjs} +1 -1
  2. package/dist/{attributeView-CSiGWdPc.js → attributeView-BAtvUAhV.js} +22 -22
  3. package/dist/attributeView-BF8AFFq3.cjs +1 -0
  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 -18
  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-3k1IXN1T.js +1772 -0
  88. package/dist/{index-B0OgKtuT.js → index-9Mn4Y5ul.js} +30 -30
  89. package/dist/index-B7v1JNbf.cjs +351 -0
  90. package/dist/{index-DgcFxYFp.js → index-BMXnkqXx.js} +3 -3
  91. package/dist/{index-CCCx1tbF.cjs → index-BRAbfTxT.cjs} +1 -1
  92. package/dist/index-BRSms-yQ.cjs +10 -0
  93. package/dist/{index-WkZdU_zw.js → index-BTaKazMR.js} +3 -3
  94. package/dist/index-BU3ulVXO.cjs +51 -0
  95. package/dist/index-BVGB9juO.cjs +352 -0
  96. package/dist/index-BWTbnurN.cjs +102 -0
  97. package/dist/index-B_ZNp-FD.cjs +10 -0
  98. package/dist/index-BakH-Ay7.js +1513 -0
  99. package/dist/{index-tSmvj7CR.js → index-BdXFwT-C.js} +749 -721
  100. package/dist/{index-D1ZL6feZ.js → index-Bf7gu4Ub.js} +28210 -27533
  101. package/dist/index-BlIhb2K5.cjs +65 -0
  102. package/dist/{index-DYQi05p8.cjs → index-BozsQqds.cjs} +1 -1
  103. package/dist/index-BtKa0UKV.cjs +326 -0
  104. package/dist/index-BwHmwZ5G.cjs +1 -0
  105. package/dist/{index-D2GF87Tg.cjs → index-Bxdmlmwu.cjs} +1 -1
  106. package/dist/index-C3ri9kGU.cjs +110 -0
  107. package/dist/index-C4CkFEzv.cjs +1 -0
  108. package/dist/{index-COyKmK8p.js → index-C4laxGCk.js} +532 -529
  109. package/dist/{index-B2RMcVgD.js → index-C5yUsiJH.js} +3 -3
  110. package/dist/{index-CpTA2IRB.js → index-CAYHjLKP.js} +10 -10
  111. package/dist/index-CFChTrwc.cjs +1 -0
  112. package/dist/index-CFHEVgng.cjs +1 -0
  113. package/dist/index-CHYKgo9A.cjs +1 -0
  114. package/dist/{index-CNOUPCih.js → index-CLAopW_w.js} +143 -142
  115. package/dist/index-CLeSXOVj.js +122 -0
  116. package/dist/{index-CdnV7DS4.js → index-CQSYlqUB.js} +3 -3
  117. package/dist/{index-Hdc_C4Xg.js → index-CRaEQ5ns.js} +116 -115
  118. package/dist/{index-BbTWJKHb.js → index-CT056ccv.js} +23 -23
  119. package/dist/index-CcXd7BgN.js +451 -0
  120. package/dist/{index-RL7vrExY.js → index-Cecp9t8s.js} +17 -17
  121. package/dist/index-ClgIpXW0.cjs +1 -0
  122. package/dist/index-CnPBVx5Y.cjs +181 -0
  123. package/dist/index-CpTUkT9o.cjs +159 -0
  124. package/dist/index-CqIGF1hQ.cjs +86 -0
  125. package/dist/{index-DymbM-qI.js → index-CrVn9CfT.js} +79 -72
  126. package/dist/{index-Cmfhlo_3.js → index-D2n96wxz.js} +5 -5
  127. package/dist/{index-FgdbKgb5.cjs → index-DER3z6SG.cjs} +1 -1
  128. package/dist/{index-Dk0fyxAJ.cjs → index-DExGgrX9.cjs} +1 -1
  129. package/dist/{index-lCYWKDlK.js → index-DI-E5Cpq.js} +6 -6
  130. package/dist/{index-Cx7gKpkD.js → index-DMnyvgEN.js} +3 -3
  131. package/dist/{index-DaRhLTx9.js → index-DMuf-r1U.js} +489 -489
  132. package/dist/{index-gA02bxwJ.js → index-DUFhAGX3.js} +3443 -3361
  133. package/dist/{index-CjcjqKkB.js → index-DWSlxQBe.js} +87 -86
  134. package/dist/index-DYU07eGb.cjs +1 -0
  135. package/dist/{index-BENF2JDS.cjs → index-Di9sEDRc.cjs} +1 -1
  136. package/dist/{index-DQ9Vb0QH.js → index-Dkj_Zz4E.js} +309 -308
  137. package/dist/index-DlWUR7vt.cjs +6 -0
  138. package/dist/index-Dp0hJSh5.js +4 -0
  139. package/dist/{index-3fW_aWMH.js → index-Ds_DeGh-.js} +581 -567
  140. package/dist/index-FaOdtMdB.cjs +214 -0
  141. package/dist/index-K9w-efBB.cjs +1 -0
  142. package/dist/{index-DiDIFoTk.js → index-KXG0ExdR.js} +3 -3
  143. package/dist/index-UpNznhhe.js +19 -0
  144. package/dist/index-XEUPyaqB.js +655 -0
  145. package/dist/index-Xnqspbxj.js +59 -0
  146. package/dist/{index-v2u1WTMm.cjs → index-aIGMRk0a.cjs} +1 -1
  147. package/dist/{index-BEUYVwRA.cjs → index-eAXbC_rr.cjs} +1 -1
  148. package/dist/index-lf6yCev-.cjs +1 -0
  149. package/dist/{index-BhMVNODR.js → index-natF7VzY.js} +9 -12
  150. package/dist/index-o6azVcPr.js +11903 -0
  151. package/dist/{index-Cln9MN7u.js → index-ocw8DZly.js} +5 -5
  152. package/dist/index-r7I2iBup.cjs +9 -0
  153. package/dist/index-sFE9uQIP.js +1712 -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-CrBDikDV.cjs → styleView-DAskd_e3.cjs} +1 -1
  214. package/dist/{styleView-DONajUQ-.js → styleView-oSuNX97o.js} +8 -8
  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 +556 -253
  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/{uploadImage-Db_66X3C.js → uploadImage-DKgjQrSu.js} +4 -4
  243. package/dist/{uploadImage-nwjqcVFU.cjs → uploadImage-r7uyNOKB.cjs} +1 -1
  244. package/dist/{ur-C0tmW1hr.js → ur-Dj65NIKf.js} +3 -3
  245. package/dist/utils/manager/pluginManager.d.ts +16 -16
  246. package/dist/{vi-j1PGHz1o.js → vi-BEZaL78_.js} +4 -4
  247. package/dist/{vi-Dyfq5Qgz.cjs → vi-aBc6LsS_.cjs} +1 -1
  248. package/dist/{vuedraggable.umd-BqhSJIAi.cjs → vuedraggable.umd-CxOWsXm8.cjs} +6 -6
  249. package/dist/{vuedraggable.umd-D2S7Eo7p.js → vuedraggable.umd-D908YPOr.js} +396 -400
  250. package/dist/{zh-cn-BKQHxHe9.cjs → zh-cn-DTp5Vsak.cjs} +1 -1
  251. package/dist/{zh-hk-hNFRxlrX.cjs → zh-hk-DvIiOtyL.cjs} +1 -1
  252. package/dist/{zh-tw-BT16WIrT.js → zh-tw-BZt76cZl.js} +7 -7
  253. package/dist/{zh-tw-SGOlw9Wo.cjs → zh-tw-OGVt40m9.cjs} +1 -1
  254. package/package.json +1 -1
  255. package/dist/attributeView-UzP3tU2D.cjs +0 -1
  256. package/dist/axios-CXDYiOMX.js +0 -1704
  257. package/dist/axios-tuVKNgv9.cjs +0 -6
  258. package/dist/be--_CkdeMD.cjs +0 -1
  259. package/dist/be-DJzFjqtL.js +0 -22
  260. package/dist/form-Bofkrmkd.cjs +0 -1
  261. package/dist/form-VbfBmb63.js +0 -72
  262. package/dist/ga-B7Rd2JIZ.cjs +0 -1
  263. package/dist/ga-BcnAx7jm.js +0 -22
  264. package/dist/index-4PPmJYKt.cjs +0 -51
  265. package/dist/index-B72l3XQl.js +0 -453
  266. package/dist/index-B8exdhvc.cjs +0 -1
  267. package/dist/index-BB9rZNCd.cjs +0 -181
  268. package/dist/index-BCk0LJsg.cjs +0 -347
  269. package/dist/index-BHZbtFEF.cjs +0 -1
  270. package/dist/index-BVUz9lFN.cjs +0 -325
  271. package/dist/index-BhICtIH5.js +0 -1433
  272. package/dist/index-BsXm6fLD.js +0 -1493
  273. package/dist/index-BwLkOBWy.cjs +0 -10
  274. package/dist/index-C9PHR_YC.js +0 -4
  275. package/dist/index-CR_tJiJv.js +0 -653
  276. package/dist/index-CU1ZFiwn.cjs +0 -1
  277. package/dist/index-CZFPJ6vM.cjs +0 -1
  278. package/dist/index-Cap7FkuS.cjs +0 -1
  279. package/dist/index-Cphndmia.cjs +0 -214
  280. package/dist/index-CraRg8wh.js +0 -107
  281. package/dist/index-D5WpEOUO.cjs +0 -351
  282. package/dist/index-DEBQD_h0.cjs +0 -1
  283. package/dist/index-DMszow96.cjs +0 -110
  284. package/dist/index-DTzB2pWI.cjs +0 -159
  285. package/dist/index-DWCSzZfR.cjs +0 -80
  286. package/dist/index-DyWFUxn5.js +0 -11674
  287. package/dist/index-RdEhd65J.cjs +0 -65
  288. package/dist/index-XU85x6vz.cjs +0 -9
  289. package/dist/index-g5ZjtbqH.cjs +0 -102
  290. package/dist/index-jx5A2kt8.cjs +0 -850
  291. package/dist/index-n6H8b6fT.cjs +0 -1
  292. package/dist/index-zYoSB4fa.cjs +0 -9
  293. package/dist/row-CkyJ9pQh.js +0 -35
  294. package/dist/row-NNlPGZRG.cjs +0 -1
  295. package/dist/select-BvJWp4t6.cjs +0 -1
  296. package/dist/select-CjWTf5kk.js +0 -45
  297. package/dist/ui/antd/form/form.vue.d.ts +0 -64
  298. package/dist/ui/antd/form-item/formItem.vue.d.ts +0 -18
@@ -1,10 +0,0 @@
1
- "use strict";const e=require("vue"),w=require("./pluginManager-DWHAX8kP.cjs"),z=require("./index-BoL2PSBk.cjs"),re=require("./axios-tuVKNgv9.cjs");function he(t,o){let s=null;return(...l)=>{s&&clearTimeout(s),s=setTimeout(()=>{t(...l)},o)}}function ne(){const t=e.ref({}),o=e.ref({}),s=e.ref(!1),l=e.ref([]),u=e.reactive({});function a(m){return t.value[m]}function D(m,b){t.value[m]=b}function y(m){delete t.value[m]}function v(m,b=!1){const P=Object.entries(w.pluginManager.publicMethods).reduce((B,[h,R])=>(B[h]=R.handler,B),{});try{new Function(`const epic = this;${m}`).bind({...P,getComponent:a,find:a,defineExpose:M,publicMethods:P,pluginManager:w.pluginManager})()}catch(B){b&&console.error("[epic:自定义函数]异常:",B)}}function M(m){m!=null&&(o.value=m)}function O(m,...b){if(!m||m.length===0){console.warn("未提供任何动作");return}m.forEach(P=>{const B=P.args?JSON.parse(P.args):b;switch(P.type){case"public":n(P,B);break;case"custom":I(P,B);break;case"component":f(P,B);break;default:console.warn(`未知的动作类型: ${P.type}`);break}})}function n(m,b){var P;try{(P=w.pluginManager.publicMethods[m.methodName])==null||P.handler(...b)}catch(B){console.error(`[Epic:公共函数(${m.methodName})]执行异常:`,B)}}function I(m,b){var P,B;try{(B=(P=o.value)[m.methodName])==null||B.call(P,...b)}catch(h){console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`,h)}}function f(m,b){const P=m.componentId!=null&&a(m.componentId);if(!P){console.warn(`[Epic:组件${m.componentId}]未找到`);return}try{P[m.methodName](...b)}catch(B){console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`,B)}}function E(m=!0){s.value=m}function S(m){const b=w.findSchemas(m,()=>!0);l.value=b.map(P=>P.id)}function C(m,b="default"){if(u[b]){const P=u[b];w.deepCompareAndModify(m,P)}u[b]=m}function F(m,b="default"){if(u[b]){w.deepCompareAndModify(u[b],m,!1);return}u[b]=m}return{componentInstances:t,funcs:o,isDesignMode:s,defaultComponentIds:l,forms:u,addFormData:C,setFormData:F,getComponentInstance:a,find:a,addComponentInstance:D,removeComponentInstance:y,setMethods:v,doActions:O,setDesignMode:E,setDefaultComponentIds:S}}function se(){const t=e.ref([]),o=e.ref([]),s=e.ref(null);let l=0;function u(v,M="插入组件"){const O=Date.now();l+150>O||(l=O,s.value!=null&&(t.value.push(s.value),o.value.splice(0,o.value.length)),s.value={type:M,componentSchema:JSON.stringify(v)},t.value.length>60&&t.value.unshift())}function a(){if(t.value.length===0)return!1;const v=t.value.pop();return s.value!=null&&o.value.push(s.value),s.value=v,JSON.parse(v.componentSchema)}function D(){if(o.value.length===0)return!1;const v=o.value.pop();return s.value!=null&&t.value.push(s.value),s.value=v,JSON.parse(v.componentSchema)}function y(){t.value=[],o.value=[],s.value=null}return{recordList:t,undoList:o,currentRecord:s,push:u,undo:a,redo:D,reset:y}}const ve=e.defineComponent({__name:"dynamicFormItem",props:{hasFormItem:{type:Boolean},formItemProps:{}},emits:["updateFormItemRef"],setup(t,{emit:o}){const s=w.pluginManager.getComponent("form-item"),l=t,u=o,a=e.ref(),D=()=>{u("updateFormItemRef",a.value)};return(y,v)=>l.hasFormItem?(e.openBlock(),e.createBlock(e.unref(s),e.mergeProps({key:0,ref_key:"formItemRef",ref:a,onVnodeMounted:D},l.formItemProps),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),_:3},16,["onVnodeMounted"])):e.renderSlot(y.$slots,"default",{key:1})}}),le=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{proxy:s}=e.getCurrentInstance(),l=t,u=e.ref(null);let a=e.inject("formData",e.reactive({}));const D=e.inject("slots",{}),y=e.inject("pageManager",{}),v=e.inject("disabled",{value:!1}),M=e.inject("ruleFieldPrefix",null),O=e.inject("resetFormData",!1);let n=e.reactive(w.deepClone(l.componentSchema));E();async function I(r){if(["cascader","checkbox","select","radio"].includes(r.type)&&r.componentProps.dynamicId&&l.sourceDateUrl){const d=(await re.axios({url:l.sourceDateUrl,method:"get",params:{id:r.componentProps.dynamicId},headers:{Authorization:"Bearer "+z.api.get("Admin-Token"),lang:z.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}})).data.data;let _=await re.axios({url:d.url,method:d.method,data:d.body?JSON.parse(d.body):{},params:d.params?JSON.parse(d.params):{},headers:{...JSON.parse(d.headers),Authorization:"Bearer "+z.api.get("Admin-Token"),lang:z.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}});if(d&&(d!=null&&d.dataPath)){const q=d.dataPath.split(".").reduce((W,Q)=>W[Q],_.data);r.componentProps.options=f(q,d.dataKey,d.dataValue)}else r.componentProps.options=f(_.data,d.dataKey,d.dataValue);return r}return r}function f(r,i,N){return r&&Object.prototype.toString.call(r)==="[object Array]"?r.map(d=>d.children&&d.children.length?{label:d[i],value:d[N]+"",children:f(d.children,i,N)}:{label:d[i],value:d[N]+""}):[]}e.watch(()=>l.componentSchema,r=>{w.deepEqual(n,r,["children"])||(w.deepCompareAndModify(n,w.deepClone(r)),E())},{deep:!0});function E(){y.isDesignMode.value&&typeof n.field=="string"&&(n.field+="-design-mode")}(l.resetFormData||O)&&(a={});const S=o,C=e.ref(),F=e.ref(),m=r=>{F.value=r},b=e.useAttrs();Object.keys(b).length&&e.provide("nodeAttrs",b);const P=e.shallowRef(null),B=e.computed(()=>{var r,i;return(r=n.componentProps)!=null&&r.hidden?!1:typeof n.show=="boolean"?n.show:((i=n.show)==null?void 0:i.call(n,{values:a}))??!0}),h=e.computed(()=>{var d;const r=B.value&&((d=n.rules)==null?void 0:d.map(_=>({..._,validator:_.validator&&y.funcs.value[_.validator]})));let i=n.field;l.ruleField?i=l.ruleField:M&&n.field&&(i=w.deepClone(M),i.push(n.field));const N={...n,rules:r,rule:r,field:i};return N.children&&delete N.children,N}),R=e.computed(()=>{var N,d,_;const r=((N=T.value)==null?void 0:N.bindModel)??"modelValue",i={};return n.on&&Object.keys(n.on).forEach(U=>{i[`on${w.capitalizeFirstLetter(U)}`]=(...q)=>y.doActions(n.on[U],...q)}),n.type==="selectpage"&&(n.componentProps.defaultData={value:a[n.field],label:a[a[n.field]]}),{...l,...n.componentProps,sourceDateUrl:l.sourceDateUrl,disabled:l.componentSchema.type==="input"&&l.componentSchema.componentProps&&((d=l.componentSchema.componentProps)!=null&&d.isLink)?!1:(v==null?void 0:v.value)||((_=n.componentProps)==null?void 0:_.disabled),bindModel:r,...i}}),T=e.computed(()=>w.pluginManager.getComponentConfingByType(n.type)??null);e.watchEffect(()=>{u.value=l.modelValue??a[n.field??""]}),e.watch(()=>u.value,()=>{u.value!==(l.modelValue??a[n.field??""])&&c(u.value)}),e.watch(()=>C.value,()=>{A()},{immediate:!0});function A(){var i;const r=C.value||s;n.id&&r&&((n.input||n.type==="table"&&n.field||n.type==="card"&&n.field&&n.multiple)&&(r.setValue=c,r.getValue=()=>a[n.field]||l.modelValue),r.setAttr=(N,d)=>(n.componentProps||(n.componentProps={}),n.componentProps[N]=d),r.getAttr=N=>n.componentProps[N],y.addComponentInstance(n.id,r),(i=T.value)!=null&&i.defaultSchema.input&&n.noFormItem!==!0&&F.value&&y.addComponentInstance(n.id+"formItem",F.value))}function g(){var r;n.id&&(y.removeComponentInstance(n.id),(r=T.value)!=null&&r.defaultSchema.input&&n.noFormItem!==!0&&y.removeComponentInstance(n.id+"formItem"))}async function k(){var i,N,d;if(n=await I(n),typeof((i=n.componentProps)==null?void 0:i.defaultValue)<"u"){const _=y.isDesignMode.value?(N=n.componentProps)==null?void 0:N.defaultValue:a[n.field]??((d=n.componentProps)==null?void 0:d.defaultValue);c(w.deepClone(_))}if(n.type==="slot"){const _=n.slotName;if(!_)return;P.value=e.defineComponent({setup(){return()=>e.renderSlot(D,_,{componentSchema:n,model:a})}});return}const r=w.pluginManager.getComponent(n.type);if(!r){console.error(`组件${n.type}未注册`);return}if(typeof r=="function"){const _=await r();P.value=_.default??_}else P.value=r}function p(r){Object.prototype.toString.call(r)==="[object Array]"?r.forEach(i=>{a[i.value]=i.label}):a[r.value]=r.label,l.id?w.EventBus.emit("updateformData"+l.id,a):w.EventBus.emit("updateformData",a)}function c(r){S("update:modelValue",r),S("change",r),n.field&&(a[n.field]=r),l.id?w.EventBus.emit("updateformData"+l.id,a):w.EventBus.emit("updateformData",a)}function V(r){S("update:dynamicId",r)}let $=null;return e.watch(()=>n,async r=>{const i=JSON.stringify({...r,children:void 0,componentProps:{...r.componentProps,options:null}});if(i===$)return!1;$=i,k()},{immediate:!0,deep:!0}),e.onUnmounted(g),(r,i)=>{var d;const N=e.resolveComponent("ENode");return P.value&&B.value?(e.openBlock(),e.createBlock(ve,{key:0,hasFormItem:e.unref(n).noFormItem!==!0&&((d=T.value)==null?void 0:d.defaultSchema.input),formItemProps:h.value,onUpdateFormItemRef:m},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P.value),e.mergeProps({ref_key:"componentInstance",ref:C,onVnodeMounted:A,model:e.unref(a),sourceDateUrl:l.sourceDateUrl},{...R.value},{[R.value.bindModel]:u.value,["onUpdate:"+R.value.bindModel]:i[0]||(i[0]=_=>u.value=_),[`onUpdate:${R.value.bindModel}`||""]:c,"onUpdate:modelValueLabel":p,"onUpdate:dynamicId":V}),{node:e.withCtx(_=>[e.createVNode(N,e.mergeProps({id:l.id},_,{sourceDateUrl:l.sourceDateUrl}),null,16,["id","sourceDateUrl"])]),"edit-node":e.withCtx(()=>[e.renderSlot(r.$slots,"edit-node")]),_:3},16,["model","sourceDateUrl"]))]),_:3},8,["hasFormItem","formItemProps"])):e.createCommentVNode("",!0)}}});function ge(){const t=e.ref(!1),o=ne(),s=e.ref({});function l(){return new Promise(f=>{if(t.value)f();else{const E=e.watch(t,()=>{E(),f()})}})}async function u(f="default"){var S;await l();const E=(S=s.value)==null?void 0:S[f];if(!E)throw new Error(`表单 [name=${f}] 不存在`);return E}async function a(f,E){const S=await u(f);return w.deepClone(await E(S))}async function D(f="default"){return await a(f,E=>E.getData())}function y(f,E="default",S=void 0){var C,F;if(S&&Object.keys(S).length){let m=function(h){let R=[];return h.forEach(T=>{T.children&&(R=[...R,...m(T.children)]),R.push(T)}),R},P=function(h){var T;let R=m((T=S==null?void 0:S.schemas[0])==null?void 0:T.children);return Object.keys(h).forEach(A=>{var p,c,V,$,r,i,N;const g=R.find(d=>d.field===A),k=["datetimerange","daterange","monthrange","dates"];if((g&&(g==null?void 0:g.type)==="checkbox"||(g==null?void 0:g.type)==="select"&&((p=g==null?void 0:g.componentProps)!=null&&p.multiple)||(g==null?void 0:g.type)==="cascader"&&!((V=(c=g==null?void 0:g.componentProps)==null?void 0:c.props)!=null&&V.multiple)||(g==null?void 0:g.type)==="date"&&k.includes(($=g==null?void 0:g.componentProps)==null?void 0:$.type))&&typeof h[A]=="string")h[A]=(r=h[A])==null?void 0:r.split(",");else if((g==null?void 0:g.type)==="cascader"&&((N=(i=g==null?void 0:g.componentProps)==null?void 0:i.props)!=null&&N.multiple)&&typeof h[A]=="string")h[A].indexOf(";")===-1&&h[A].indexOf(";")===-1?h[A][h[A]]:h[A].indexOf(";")>-1?h[A]=h[A].split(";").map(d=>d.split(",")):h[A].indexOf(";")===-1?h[A]=h[A].split(","):h[A].indexOf(";")>-1?h[A]=h[A].split(";").map(d=>d.split(",")):h[A].indexOf(";")===-1&&(h[A]=h[A].split(","));else if(((g==null?void 0:g.type)==="upload-image"||(g==null?void 0:g.type)==="upload-file")&&typeof h[A]=="string"){let d=[];Object.entries(h).forEach(([_,U])=>{h[A]===U&&_!==g.field&&_.indexOf("@")>-1&&_.indexOf(A)>-1&&(d=_.split("@")[1].split(","))}),h[A]=h[A].split(",").map((_,U)=>({url:_,name:d[U]||_}))}else(g==null?void 0:g.type)==="number"||(g==null?void 0:g.type)==="slider"?h[A]=Number(h[A]):(g==null?void 0:g.type)==="switch"&&(h[A]=typeof h[A]=="boolean"?h[A]:h[A].indexOf("true")>-1)}),h}(f);o.setFormData(P,E);const B=(C=s.value)==null?void 0:C[E];B==null||B.clearValidate()}else{o.setFormData(f,E);const m=(F=s.value)==null?void 0:F[E];m==null||m.clearValidate()}}async function v(f="default"){return await a(f,async E=>(await E.validate(),await E.getData()))}async function M(f){await l();const E={};for(const S in s.value){const C=s.value[S];C&&(E[S]=w.deepClone(await f(C)))}return E}async function O(){return await M(f=>f.getData())}function n(f){for(const E in f)y(f[E],E)}async function I(){return await M(async f=>(await f.validate(),await f.getData()))}return{ready:t,pageManager:o,forms:s,getData:D,setData:y,validate:v,getForms:O,setForms:n,validateAll:I,getFormInstance:u}}const ye={key:0,class:"epic-loading-box"},we={class:"epic-builder-main"},Se={class:"epic-loading-box"},ie=e.defineComponent({__name:"builder",props:{pageSchema:{},formData:{},disabled:{type:Boolean},sourceDateUrl:{},id:{}},emits:["change","ready"],setup(t,{expose:o,emit:s}){const l=w.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Cap7FkuS.cjs"))),u=s,a=e.ref([]),D=e.ref({}),{ready:y,pageManager:v,forms:M,getData:O,setData:n,validate:I,getForms:f,setForms:E,validateAll:S,getFormInstance:C}=ge(),F=t,m=e.reactive({schemas:[]});e.watch(()=>F.pageSchema,p=>{w.deepCompareAndModify(m,p)},{immediate:!0,deep:!0}),e.watch(()=>F.formData,p=>{if(p){let c=T(p);D.value=c,n(c)}},{immediate:!0,deep:!0});function b(p){let c=[];return p.forEach(V=>{V.children&&(c=[...c,...b(V.children)]),c.push(V)}),c}function P(p,c){function V(r){return JSON.parse(JSON.stringify(r))}function $(r,i){if(r.type==="card"&&r.multiple&&r.field&&Array.isArray(i[r.field]))return i[r.field].map(d=>{var U;const _=V({...r,multiple:!0});return _.children=(U=_.children)==null?void 0:U.map(q=>$(q,d)).flat(),_});const N=V(r);return Array.isArray(N.children)&&(N.children=N.children.map(d=>$(d,i)).flat()),N}return p.map(r=>$(r,c)).flat()}function B(p,c="",V={root:0}){const $=c||"root";return c||(V.root=0),V[$]===void 0&&(V[$]=0),p.map(r=>{r.field&&(r.oldField=JSON.parse(JSON.stringify(r.field)));const i={...r};if(r.type==="card"){const N=r.field||"";r.multiple?(i.field=c?`${c}.${N}[${V[$]}]`:`${N}[${V[$]}]`,V[$]++):r.field&&c&&(i.field=`${c}.${N}`);const d=i.field||c;V[d]=0}else r.field&&c&&(i.field=`${c}.${r.field}`);return r.children&&(i.children=B(r.children,i.field||c,V)),i})}function h(p,c,V="",$={}){const r=V||"root";return $[r]===void 0&&($[r]=0),p.forEach(i=>{const N=i.field||"";let d=V?`${V}.${N}`:`${N}`;i.type==="card"&&i.multiple?(typeof c[d][`${$[r]}`]=="object"?Object.keys(c[d][`${$[r]}`]).forEach(_=>{c[`${d}[${$[r]}].${_}`]=c[d][`${$[r]}`][_]}):c[`${d}[${$[r]}]`]=c[d][`${$[r]}`],i.children&&(i.children=h(i.children,c,`${d}[${$[r]}]`||V,$)),$[r]++):i.children&&(i.children=h(i.children,c,V,$))}),$[r]=0,c}function R(p,c,V){let $=h(w.deepClone(p),w.deepClone(c));return{obj:B(p),dataObj:$}}function T(p){let c=b(F.pageSchema.schemas[0].children);a.value=c.filter(i=>i.type==="card"&&i.multiple);const V=P(F.pageSchema.schemas[0].children,p);let{obj:$,dataObj:r}=R(V,p,a.value);return p=r,F.pageSchema.schemas[0].children=$,Object.keys(p).forEach(i=>{var N,d,_,U,q,W,Q;if(i.indexOf("@")<0){const x=c.find(L=>L.field===i),me=["datetimerange","daterange","monthrange","dates"];if((x&&(x==null?void 0:x.type)==="checkbox"||(x==null?void 0:x.type)==="select"&&((N=x==null?void 0:x.componentProps)!=null&&N.multiple)||(x==null?void 0:x.type)==="cascader"&&!((_=(d=x==null?void 0:x.componentProps)==null?void 0:d.props)!=null&&_.multiple)||(x==null?void 0:x.type)==="date"&&me.includes((U=x==null?void 0:x.componentProps)==null?void 0:U.type))&&typeof p[i]=="string")p[i]=(q=p[i])==null?void 0:q.split(",");else if((x==null?void 0:x.type)==="cascader"&&((Q=(W=x==null?void 0:x.componentProps)==null?void 0:W.props)!=null&&Q.multiple)&&typeof p[i]=="string")p[i].indexOf(";")>-1?p[i]=p[i].split(";").map(L=>L.split(",")):p[i]=p[i].split(","),p[i].indexOf(";")>-1?p[i]=p[i].split(";").map(L=>L.split(",")):p[i]=p[i].split(",");else if(((x==null?void 0:x.type)==="upload-image"||(x==null?void 0:x.type)==="upload-file")&&typeof p[i]=="string"){let L=[];Object.entries(p).forEach(([J,X])=>{p[i]===X&&J!==x.field&&J.indexOf("@")>-1&&J.indexOf(i)>-1&&(L=J.split("@")[1].split(","))}),p[i]=p[i].split(",").map((J,X)=>({url:J,name:L[X]||J}))}else(x==null?void 0:x.type)==="number"||(x==null?void 0:x.type)==="slider"?p[i]=Number(p[i]):(x==null?void 0:x.type)==="switch"&&(p[i]=typeof p[i]=="boolean"?p[i]:p[i].indexOf("true")>-1)}}),p}e.watch(()=>m.script,p=>{p&&v.setMethods(p,!0)},{immediate:!0}),e.provide("slots",e.useSlots()),e.provide("pageManager",v),e.provide("forms",M),e.provide("pageSchema",m),e.provide("disabled",e.computed(()=>F.disabled));const A=e.getCurrentInstance(),g=A==null?void 0:A.proxy;function k(){e.nextTick(()=>{y.value=!0,u("ready",v),g&&v.addComponentInstance("builder",g)})}return w.EventBus.on("updateformData"+(F.id?F.id:""),p=>{u("change",p)}),o({ready:y,pageManager:v,getData:O,setData:n,validate:I,getForms:f,setForms:E,validateAll:S,getFormInstance:C}),(p,c)=>e.unref(w.pluginManager).initialized.value?(e.openBlock(),e.createBlock(e.Suspense,{key:1,onResolve:k},{default:e.withCtx(()=>[e.createElementVNode("div",we,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.schemas,(V,$)=>(e.openBlock(),e.createBlock(e.unref(le),{id:F.id,key:$,sourceDateUrl:F.sourceDateUrl,componentSchema:V},null,8,["id","sourceDateUrl","componentSchema"]))),128))])]),fallback:e.withCtx(()=>[e.createElementVNode("div",Se,[e.createVNode(e.unref(l))])]),_:1})):(e.openBlock(),e.createElementBlock("div",ye))}});function oe(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function De(t){let o=0,s,l;const u=()=>{o-=1,l&&o<=0&&(l.stop(),s=void 0,l=void 0)};return(...a)=>(o+=1,l||(l=e.effectScope(!0),s=l.run(()=>t(...a))),oe(u),s)}function H(t){return typeof t=="function"?t():e.unref(t)}const Ee=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const be=t=>typeof t<"u",xe=Object.prototype.toString,Ce=t=>xe.call(t)==="[object Object]",Ae=()=>{};function Oe(t){return e.getCurrentInstance()}function Ie(t,o=!0,s){Oe()?e.onMounted(t,s):o?t():e.nextTick(t)}function Pe(t=!1,o={}){const{truthyValue:s=!0,falsyValue:l=!1}=o,u=e.isRef(t),a=e.ref(t);function D(y){if(arguments.length)return a.value=y,a.value;{const v=H(s);return a.value=a.value===v?H(l):v,a.value}}return u?D:[a,D]}function _e(t,o,s){const l=e.watch(t,(...u)=>(e.nextTick(()=>l()),o(...u)),s);return l}const Y=Ee?window:void 0;function K(t){var o;const s=H(t);return(o=s==null?void 0:s.$el)!=null?o:s}function Ne(...t){let o,s,l,u;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,l,u]=t,o=Y):[o,s,l,u]=t,!o)return Ae;Array.isArray(s)||(s=[s]),Array.isArray(l)||(l=[l]);const a=[],D=()=>{a.forEach(O=>O()),a.length=0},y=(O,n,I,f)=>(O.addEventListener(n,I,f),()=>O.removeEventListener(n,I,f)),v=e.watch(()=>[K(o),H(u)],([O,n])=>{if(D(),!O)return;const I=Ce(n)?{...n}:n;a.push(...s.flatMap(f=>l.map(E=>y(O,f,E,I))))},{immediate:!0,flush:"post"}),M=()=>{v(),D()};return oe(M),M}function Me(t){return typeof t=="function"?t:typeof t=="string"?o=>o.key===t:Array.isArray(t)?o=>t.includes(o.key):()=>!0}function ae(...t){let o,s,l={};t.length===3?(o=t[0],s=t[1],l=t[2]):t.length===2?typeof t[1]=="object"?(o=!0,s=t[0],l=t[1]):(o=t[0],s=t[1]):(o=!0,s=t[0]);const{target:u=Y,eventName:a="keydown",passive:D=!1,dedupe:y=!1}=l,v=Me(o);return Ne(u,a,O=>{O.repeat&&H(y)||v(O)&&s(O)},D)}function j(t,o,s={}){return ae(t,o,{...s,eventName:"keydown"})}function ee(t,o,s={}){return ae(t,o,{...s,eventName:"keyup"})}function Ve(){const t=e.ref(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function $e(t){const o=Ve();return e.computed(()=>(o.value,!!t()))}function Be(t){return JSON.parse(JSON.stringify(t))}function ce(t,o,s={}){const{window:l=Y,...u}=s;let a;const D=$e(()=>l&&"ResizeObserver"in l),y=()=>{a&&(a.disconnect(),a=void 0)},v=e.computed(()=>{const n=H(t);return Array.isArray(n)?n.map(I=>K(I)):[K(n)]}),M=e.watch(v,n=>{if(y(),D.value&&l){a=new ResizeObserver(o);for(const I of n)I&&a.observe(I,u)}},{immediate:!0,flush:"post"}),O=()=>{y(),M()};return oe(O),{isSupported:D,stop:O}}function Fe(t,o={width:0,height:0},s={}){const{window:l=Y,box:u="content-box"}=s,a=e.computed(()=>{var n,I;return(I=(n=K(t))==null?void 0:n.namespaceURI)==null?void 0:I.includes("svg")}),D=e.ref(o.width),y=e.ref(o.height),{stop:v}=ce(t,([n])=>{const I=u==="border-box"?n.borderBoxSize:u==="content-box"?n.contentBoxSize:n.devicePixelContentBoxSize;if(l&&a.value){const f=K(t);if(f){const E=f.getBoundingClientRect();D.value=E.width,y.value=E.height}}else if(I){const f=Array.isArray(I)?I:[I];D.value=f.reduce((E,{inlineSize:S})=>E+S,0),y.value=f.reduce((E,{blockSize:S})=>E+S,0)}else D.value=n.contentRect.width,y.value=n.contentRect.height},s);Ie(()=>{const n=K(t);n&&(D.value="offsetWidth"in n?n.offsetWidth:o.width,y.value="offsetHeight"in n?n.offsetHeight:o.height)});const M=e.watch(()=>K(t),n=>{D.value=n?o.width:0,y.value=n?o.height:0});function O(){v(),M()}return{width:D,height:y,stop:O}}function Re(t,o,s,l={}){var u,a,D;const{clone:y=!1,passive:v=!1,eventName:M,deep:O=!1,defaultValue:n,shouldEmit:I}=l,f=e.getCurrentInstance(),E=s||(f==null?void 0:f.emit)||((u=f==null?void 0:f.$emit)==null?void 0:u.bind(f))||((D=(a=f==null?void 0:f.proxy)==null?void 0:a.$emit)==null?void 0:D.bind(f==null?void 0:f.proxy));let S=M;o||(o="modelValue"),S=S||`update:${o.toString()}`;const C=b=>y?typeof y=="function"?y(b):Be(b):b,F=()=>be(t[o])?C(t[o]):n,m=b=>{I?I(b)&&E(S,b):E(S,b)};if(v){const b=F(),P=e.ref(b);let B=!1;return e.watch(()=>t[o],h=>{B||(B=!0,P.value=C(h),e.nextTick(()=>B=!1))}),e.watch(P,h=>{!B&&(h!==t[o]||O)&&m(h)},{deep:O}),P}else return e.computed({get(){return F()},set(b){m(b)}})}function Te(){const{isDark:t}=Z(),o=Pe(t);return{isDark:t,toggleDark:o}}function ue(){const t=e.ref(!1);return e.onMounted(()=>{de(t),Ue(t)}),e.watch(()=>t.value,()=>{t.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}),{isDark:t}}function de(t){var o=document.documentElement;o&&(o.classList.contains("dark")?t.value=!0:t.value=!1)}function Ue(t){var o=document.querySelector("html"),s=new MutationObserver(function(l){for(var u of l)if(u.type==="attributes"&&u.attributeName==="class"){const a=u.target;new Array(...a.classList).includes("dark")?t.value=!0:t.value=!1}});s.observe(o,{attributes:!0,attributeFilter:["class"]}),e.onUnmounted(()=>{s.disconnect()})}function fe(){const t=e.ref(1),o=e.ref(!1),{isDark:s}=ue(),{pressSpace:l,pressShift:u,pressCtrl:a}=pe();return{canvasScale:t,pressSpace:l,pressShift:u,pressCtrl:a,disabledZoom:o,isDark:s}}const Z=De(fe);function pe(){const t=e.ref(!1),o=e.ref(!1),s=e.ref(!1);return j(" ",()=>{t.value=!0}),ee(" ",()=>{t.value=!1}),j("Shift",l=>{l.preventDefault(),o.value=!0}),ee("Shift",()=>{o.value=!1}),j("Control",l=>{l.preventDefault(),s.value=!0}),ee("Control",()=>{s.value=!1}),{pressSpace:t,pressShift:o,pressCtrl:s}}function qe(t){const{pressSpace:o}=Z(),s=new Image(1,1);s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";let l=0,u=0;function a(v){var M;o.value&&(l=v.x,u=v.y,(M=v.dataTransfer)==null||M.setDragImage(document.createElement("div"),0,0))}function D(v){if(v.preventDefault(),!v.x||!v.y||!o.value)return;const M=v.x-l,O=v.y-u;l=v.x,u=v.y,t.value&&(t.value.scrollTop-=O,t.value.scrollLeft-=M)}function y(){o.value=!1}return{handleElementDragStart:a,handleElementDrag:D,handleElementDragEnd:y}}function Le(t){const{pressCtrl:o,canvasScale:s,disabledZoom:l}=Z();function u(a){if(!o.value||l.value)return;a.preventDefault();let D=0;a.deltaY<0?D=s.value+.05:D=s.value-.05,!(D>150||D<.5)&&(s.value=D)}return e.watch(()=>s.value,a=>{t.value&&!l.value&&(t.value.style.transform=`scale(${a})`)}),{handleZoom:u,canvasScale:s}}function ke(t,o=16.66){let s;function l(){u(),s=window.setInterval(t,o)}function u(){window.clearInterval(s)}return{startTimedQuery:l,stopTimedQuery:u}}const Je={class:"min-w-750px rounded"},ze={class:"h-full rounded"},Ke=e.defineComponent({__name:"index",setup(t,{expose:o}){const s=w.pluginManager.getComponent("monacoEditor"),l=w.pluginManager.getComponent("modal"),u=e.ref(null),a=e.ref(!1),D=e.ref(!1),y=e.ref({}),v=e.inject("pageSchema"),M=e.ref(null),O=e.ref("");function n(){D.value=!1}function I(){a.value=!1}function f(){a.value=!0,O.value=w.getUUID()}async function E(){try{let S=await M.value.validateAll();if(!Object.keys(S).length){alert("请添加表单组件后再尝试!");return}Object.keys(S).length===1&&(S=S.default),y.value=JSON.stringify(S,null,2),e.nextTick(()=>{var C;(C=u.value)==null||C.setValue(y.value)}),D.value=!0}catch(S){console.error(S)}}return o({handleOpen:f}),(S,C)=>(e.openBlock(),e.createBlock(e.unref(l),{modelValue:a.value,"onUpdate:modelValue":C[1]||(C[1]=F=>a.value=F),title:"预览",class:"w-900px",width:"900px",onClose:I,onOk:E,okText:"表单数据"},{default:e.withCtx(()=>[e.createElementVNode("div",Je,[(e.openBlock(),e.createBlock(e.unref(ie),{key:O.value,ref_key:"kb",ref:M,"page-schema":e.unref(v)},null,8,["page-schema"])),e.createVNode(e.unref(l),{modelValue:D.value,"onUpdate:modelValue":C[0]||(C[0]=F=>D.value=F),title:"表单数据",class:"w-860px",width:"860px",onClose:n,onOk:n},{default:e.withCtx(()=>[e.createElementVNode("div",ze,[e.createVNode(e.unref(s),{ref_key:"monacoEditorRef",ref:u,autoToggleTheme:"",readOnly:"",class:"h-full editor","model-value":y.value},null,8,["model-value"])])]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"]))}}),He={key:0,class:"epic-loading-box"},Ze={class:"epic-designer-main"},We={class:"epic-header-container"},Qe={class:"epic-loading-box"},Ge=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:s}){const{t:l}=z.useLocale(),u=w.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-v2u1WTMm.cjs"))),a=w.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CCCx1tbF.cjs"))),D=w.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-B8exdhvc.cjs"))),y=w.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-R2r9Rw5O.cjs"))),v=w.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Cap7FkuS.cjs"))),M=ne(),O=se(),n=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(n.defaultSchema){I=n.defaultSchema;return}n.source&&w.pluginManager.setSourceData(n.source),n.formMode&&(I.schemas=w.pluginManager.formSchemas)}),M.setDesignMode(),M.setDefaultComponentIds(I.schemas);const f=s,E=e.ref(null),S=e.reactive({checkedNode:null,hoverNode:null,disableHover:!1,matched:[]}),C=e.reactive({schemas:[],script:I.script}),{disabledZoom:F}=Z();e.watchEffect(()=>{F.value=n.disabledZoom}),e.watchEffect(()=>{const c=C.script;c&&c!==""&&M.setMethods(c)}),e.provide("pageSchema",C),e.provide("revoke",O),e.provide("pageManager",M),e.provide("designerProps",e.computed(()=>n)),e.provide("designer",{setCheckedNode:b,setHoverNode:P,setDisableHover:h,handleToggleDeviceMode:k,reset:A,state:S}),w.EventBus.on("saveSourceData",c=>{f("saveSourceData",c)}),w.EventBus.on("deleteSourceData",c=>{f("deleteSourceData",c)}),w.EventBus.on("updateSourceData",c=>{f("updateSourceData",c)});function m(){C.schemas=w.deepClone(I.schemas),b(C.schemas[0]),O.push(C.schemas,"初始化撤销功能")}async function b(c=C.schemas[0]){S.checkedNode=c,S.matched=w.getMatchedById(C.schemas,c.id)}async function P(c=null){var V;if(!c||S.disableHover)return S.hoverNode=null,!1;if((c==null?void 0:c.id)===((V=S.hoverNode)==null?void 0:V.id))return!1;S.hoverNode=c}function B(){e.nextTick(()=>{f("ready",{pageManager:M})})}async function h(c=!1){S.disableHover=c}function R(c){w.deepCompareAndModify(C,w.deepClone(c))}function T(){return e.toRaw(C)}function A(){w.deepEqual(C.schemas,I.schemas)&&C.script===I.script||(w.deepCompareAndModify(C.schemas,I.schemas),C.script=I.script,b(C.schemas[0]),O.push(C.schemas,"重置操作"),f("reset",C))}function g(){f("save",e.toRaw(C))}function k(c){f("toggleDeviceMode",c)}function p(){E.value.handleOpen()}return m(),o({revoke:O,setData:R,getData:T,reset:A,preview:p}),(c,V)=>e.unref(w.pluginManager).initialized.value?(e.openBlock(),e.createBlock(e.Suspense,{key:1,onResolve:B},{default:e.withCtx(()=>[e.createElementVNode("div",Ze,[e.createElementVNode("div",We,[e.renderSlot(c.$slots,"header",{},()=>[n.hiddenHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(u),{key:0,onPreview:p,onSave:g},{header:e.withCtx(()=>[e.renderSlot(c.$slots,"header-prefix")]),prefix:e.withCtx(()=>[e.renderSlot(c.$slots,"header-prefix")]),title:e.withCtx(()=>[e.renderSlot(c.$slots,"header-title")]),"right-prefix":e.withCtx(()=>[e.renderSlot(c.$slots,"header-right-prefix")]),"right-action":e.withCtx(()=>[e.renderSlot(c.$slots,"header-right-action")]),"right-suffix":e.withCtx(()=>[e.renderSlot(c.$slots,"header-right-suffix")]),_:3}))])]),e.createElementVNode("div",{class:e.normalizeClass(["epic-split-view-container",{"hidden-header":c.hiddenHeader}])},[e.createVNode(e.unref(a)),e.createVNode(e.unref(D)),e.createVNode(e.unref(y))],2),e.createVNode(Ke,{ref_key:"previewRef",ref:E},null,512)])]),fallback:e.withCtx(()=>[e.createElementVNode("div",Qe,[e.createVNode(e.unref(v))])]),_:3})):(e.openBlock(),e.createElementBlock("div",He))}}),Ye={component:async()=>await Promise.resolve().then(()=>require("./index-BENF2JDS.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:te}=z.useLocale(),Xe={component:async()=>await Promise.resolve().then(()=>require("./index-Ch9jeYmj.cjs")),defaultSchema:{label:te("page"),type:"page",componentProps:{},children:[]},config:{attribute:[{label:te("pageName"),type:"input",componentProps:{placeholder:te("pleaseEnter")},field:"componentProps.name"}]}},{t:G}=z.useLocale();function je(t){t.component("EInputSize",async()=>await Promise.resolve().then(()=>require("./index-CpevxZqj.cjs"))),t.component("EColEditor",async()=>await Promise.resolve().then(()=>require("./index-FgdbKgb5.cjs"))),t.component("EActionEditor",async()=>await Promise.resolve().then(()=>require("./index-DEBQD_h0.cjs"))),t.component("ERuleEditor",async()=>await Promise.resolve().then(()=>require("./index-n6H8b6fT.cjs"))),t.component("EOptionsEditor",async()=>await Promise.resolve().then(()=>require("./index-Dk0fyxAJ.cjs"))),t.component("ENode",async()=>await Promise.resolve().then(()=>require("./index-CZFPJ6vM.cjs"))),t.component("EDataSource",async()=>await Promise.resolve().then(()=>require("./index-BEUYVwRA.cjs"))),t.component("EColumnEditor",async()=>await Promise.resolve().then(()=>require("./index-D2GF87Tg.cjs"))),t.component("PaddingMarginControl",async()=>await Promise.resolve().then(()=>require("./index-DYQi05p8.cjs"))),t.component("ESourceDataSelect",async()=>await Promise.resolve().then(()=>require("./index-CU1ZFiwn.cjs"))),t.registerActivitybar({id:"component_view",title:G("component"),icon:"icon--epic--extension-outline",component:async()=>await Promise.resolve().then(()=>require("./index-BHZbtFEF.cjs"))}),t.registerActivitybar({id:"outline_view",title:G("outline"),icon:"icon--epic--account-tree-outline-rounded",component:async()=>await Promise.resolve().then(()=>require("./outline-BE98qFHQ.cjs"))}),t.registerRightSidebar({id:"attribute_view",title:G("attribute"),component:async()=>await Promise.resolve().then(()=>require("./attributeView-UzP3tU2D.cjs"))}),t.registerRightSidebar({id:"style_view",title:G("style"),component:async()=>await Promise.resolve().then(()=>require("./styleView-CrBDikDV.cjs"))}),t.registerRightSidebar({id:"event_view",title:"事件",component:async()=>await Promise.resolve().then(()=>require("./eventView-5fa6mfSD.cjs"))}),[Ye,Xe].forEach(s=>{t.registerComponent(s)})}je(w.pluginManager);exports._sfc_main=le;exports._sfc_main$1=ie;exports._sfc_main$2=Ge;exports.debounce=he;exports.getDarkState=de;exports.initStore=fe;exports.useDark=ue;exports.useElementDrag=qe;exports.useElementSize=Fe;exports.useElementZoom=Le;exports.useKeyPress=pe;exports.usePageManager=ne;exports.useResizeObserver=ce;exports.useRevoke=se;exports.useStore=Z;exports.useTheme=Te;exports.useTimedQuery=ke;exports.useVModel=Re;exports.watchOnce=_e;
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-BhICtIH5.js";
2
- export {
3
- f as default
4
- };