epic-designer-gold 0.0.30 → 0.0.31

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 (27) hide show
  1. package/dist/{attributeView-Dqeqsngv.cjs → attributeView-CkDUbzuR.cjs} +1 -1
  2. package/dist/{attributeView-De_f9cQd.js → attributeView-DpkfKqtd.js} +1 -1
  3. package/dist/{index-D2jUjBFQ.js → index-BPt8U8n9.js} +1 -1
  4. package/dist/{index-BTKr-8ba.cjs → index-Bb8XSoYT.cjs} +1 -1
  5. package/dist/{index-z22tTQo-.js → index-Bc7J-Fgw.js} +1 -1
  6. package/dist/{index-BtuYfYFT.cjs → index-BhIZKk9i.cjs} +1 -1
  7. package/dist/{index-BbCkeepF.cjs → index-C5H0qK7d.cjs} +1 -1
  8. package/dist/{index-DYpZGxr_.js → index-CH2IxHQE.js} +93 -93
  9. package/dist/index-CTjIY8cx.cjs +10 -0
  10. package/dist/{index-DUsA7Tr8.js → index-CiMLQy__.js} +1 -1
  11. package/dist/{index-qCmGhMQn.cjs → index-CpxsakMD.cjs} +1 -1
  12. package/dist/index-CtNfh-CD.js +4 -0
  13. package/dist/{index-Czi0tPRM.cjs → index-D0T4HwOl.cjs} +1 -1
  14. package/dist/{index-CHGojUf_.js → index-D8Dlr8aX.js} +1 -1
  15. package/dist/{index-26AzXutN.cjs → index-DbioQCL7.cjs} +1 -1
  16. package/dist/{index-Bae_P2jy.js → index-FHGseiDc.js} +1 -1
  17. package/dist/{index-BB1mJNTS.js → index-UQLDWqfT.js} +1 -1
  18. package/dist/{index-DuXhyMbh.cjs → index-ZbUi21VA.cjs} +1 -1
  19. package/dist/{index-dIWkZ7Jl.cjs → index-jV4vV6jn.cjs} +1 -1
  20. package/dist/{index-BIDRA86S.js → index-rE2p5Gmx.js} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/{styleView-CA80akwG.js → styleView-CEaoc1Q1.js} +1 -1
  24. package/dist/{styleView-BdLkrbxa.cjs → styleView-sGpDpZDg.cjs} +1 -1
  25. package/package.json +1 -1
  26. package/dist/index-2dJzXydf.js +0 -4
  27. package/dist/index-B30AjHWV.cjs +0 -10
@@ -1,4 +1,4 @@
1
- import { ref as D, reactive as Z, defineComponent as G, openBlock as M, createBlock as L, unref as _, mergeProps as fe, withCtx as P, renderSlot as R, getCurrentInstance as ne, inject as H, watch as V, useAttrs as _e, provide as $, shallowRef as Pe, computed as U, watchEffect as re, onUnmounted as be, resolveComponent as Ve, resolveDynamicComponent as Fe, createVNode as T, createCommentVNode as Se, useSlots as Oe, createElementBlock as pe, Suspense as De, createElementVNode as z, Fragment as Me, renderList as Re, nextTick as Y, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as me, normalizeClass as Te, toRaw as ge } from "vue";
1
+ import { ref as D, reactive as Z, defineComponent as G, openBlock as M, createBlock as L, unref as _, mergeProps as fe, withCtx as P, renderSlot as R, getCurrentInstance as ne, inject as H, watch as V, useAttrs as _e, provide as $, shallowRef as Pe, computed as U, watchEffect as re, onUnmounted as be, resolveComponent as Ve, resolveDynamicComponent as Oe, createVNode as T, createCommentVNode as Se, useSlots as Fe, createElementBlock as pe, Suspense as De, createElementVNode as z, Fragment as Me, renderList as Re, nextTick as Y, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as me, normalizeClass as Te, toRaw as ge } from "vue";
2
2
  import { p as F, E as ee, a as we, l as q } from "./axios-ITY6Uw7A.js";
3
3
  function se(e = 10) {
4
4
  const a = "abcdefghijklmnopqrstuvwxyz0123456789";
@@ -55,8 +55,8 @@ function Ae(e, a, n = [], o = /* @__PURE__ */ new WeakMap()) {
55
55
  return "[Circular]";
56
56
  o.set(r, !0);
57
57
  const l = Object.keys(r).sort(), i = {};
58
- return l.forEach((c) => {
59
- n.includes(c) || (i[c] = t(r[c]));
58
+ return l.forEach((u) => {
59
+ n.includes(u) || (i[u] = t(r[u]));
60
60
  }), o.delete(r), i;
61
61
  } else
62
62
  return r;
@@ -78,7 +78,7 @@ function ze(e, a) {
78
78
  }
79
79
  return e.forEach(t), o || console.error(`没有查询到id为${a}的节点`), n;
80
80
  }
81
- function Ft(e, a, n) {
81
+ function Ot(e, a, n) {
82
82
  const o = a.split(".");
83
83
  let t = e;
84
84
  for (let r = 0; r < o.length; r++) {
@@ -88,7 +88,7 @@ function Ft(e, a, n) {
88
88
  }
89
89
  return t === void 0 ? n : t;
90
90
  }
91
- function Ot(e, a, n) {
91
+ function Ft(e, a, n) {
92
92
  const o = a.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
93
93
  let t = e;
94
94
  for (let r = 0; r < o.length - 1; r++) {
@@ -221,7 +221,7 @@ function Nt(e) {
221
221
  }
222
222
  function j(e, a) {
223
223
  return e.map((n) => {
224
- var c, w, v;
224
+ var u, w, v;
225
225
  let o = n.type ?? "";
226
226
  const t = n.options ?? {}, r = (s, y) => {
227
227
  o === s && (o = y, t.defaultValue && (t.defaultValue = JSON.parse(t.defaultValue)));
@@ -255,7 +255,7 @@ function j(e, a) {
255
255
  "color-picker",
256
256
  "upload-file",
257
257
  "upload-image"
258
- ].includes(o) && (l.input = !0, ((w = (c = n.rules) == null ? void 0 : c[0]) == null ? void 0 : w.required) === !1 && n.rules.shift(), ((v = n.rules) == null ? void 0 : v.length) > 0 && (l.rules = n.rules)), n.list && (l.children = j(n.list, n)), n.columns && (l.children = j(n.columns, n)), n.trs && (l.children = j(n.trs, n)), n.tds && (l.children = j(n.tds, n)), l;
258
+ ].includes(o) && (l.input = !0, ((w = (u = n.rules) == null ? void 0 : u[0]) == null ? void 0 : w.required) === !1 && n.rules.shift(), ((v = n.rules) == null ? void 0 : v.length) > 0 && (l.rules = n.rules)), n.list && (l.children = j(n.list, n)), n.columns && (l.children = j(n.columns, n)), n.trs && (l.children = j(n.trs, n)), n.tds && (l.children = j(n.tds, n)), l;
259
259
  });
260
260
  }
261
261
  function Bt(e, a) {
@@ -277,7 +277,7 @@ function Ee() {
277
277
  function i(m) {
278
278
  delete e.value[m];
279
279
  }
280
- function c(m, g = !1) {
280
+ function u(m, g = !1) {
281
281
  const h = Object.entries(F.publicMethods).reduce(
282
282
  (I, [O, B]) => (I[O] = B.handler, I),
283
283
  {}
@@ -352,7 +352,7 @@ function Ee() {
352
352
  function f(m = !0) {
353
353
  n.value = m;
354
354
  }
355
- function u(m) {
355
+ function c(m) {
356
356
  const g = te(m, () => !0);
357
357
  o.value = g.map((h) => h.id);
358
358
  }
@@ -383,33 +383,33 @@ function Ee() {
383
383
  find: r,
384
384
  addComponentInstance: l,
385
385
  removeComponentInstance: i,
386
- setMethods: c,
386
+ setMethods: u,
387
387
  doActions: v,
388
388
  setDesignMode: f,
389
- setDefaultComponentIds: u
389
+ setDefaultComponentIds: c
390
390
  };
391
391
  }
392
392
  function He() {
393
393
  const e = D([]), a = D([]), n = D(null);
394
394
  let o = 0;
395
- function t(c, w = "插入组件") {
395
+ function t(u, w = "插入组件") {
396
396
  const v = Date.now();
397
397
  o + 150 > v || (o = v, n.value != null && (e.value.push(n.value), a.value.splice(0, a.value.length)), n.value = {
398
398
  type: w,
399
- componentSchema: JSON.stringify(c)
399
+ componentSchema: JSON.stringify(u)
400
400
  }, e.value.length > 60 && e.value.unshift());
401
401
  }
402
402
  function r() {
403
403
  if (e.value.length === 0)
404
404
  return !1;
405
- const c = e.value.pop();
406
- return n.value != null && a.value.push(n.value), n.value = c, JSON.parse(c.componentSchema);
405
+ const u = e.value.pop();
406
+ return n.value != null && a.value.push(n.value), n.value = u, JSON.parse(u.componentSchema);
407
407
  }
408
408
  function l() {
409
409
  if (a.value.length === 0)
410
410
  return !1;
411
- const c = a.value.pop();
412
- return n.value != null && e.value.push(n.value), n.value = c, JSON.parse(c.componentSchema);
411
+ const u = a.value.pop();
412
+ return n.value != null && e.value.push(n.value), n.value = u, JSON.parse(u.componentSchema);
413
413
  }
414
414
  function i() {
415
415
  e.value = [], a.value = [], n.value = null;
@@ -435,7 +435,7 @@ const Ke = /* @__PURE__ */ G({
435
435
  const n = F.getComponent("form-item"), o = e, t = a, r = D(), l = () => {
436
436
  t("updateFormItemRef", r.value);
437
437
  };
438
- return (i, c) => o.hasFormItem ? (M(), L(_(n), fe({
438
+ return (i, u) => o.hasFormItem ? (M(), L(_(n), fe({
439
439
  key: 0,
440
440
  ref_key: "formItemRef",
441
441
  ref: r,
@@ -463,7 +463,7 @@ const Ke = /* @__PURE__ */ G({
463
463
  setup(e, { emit: a }) {
464
464
  const { proxy: n } = ne(), o = e, t = D(null);
465
465
  let r = H("formData", Z({}));
466
- const l = H("slots", {}), i = H("pageManager", {}), c = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), v = H("resetFormData", !1);
466
+ const l = H("slots", {}), i = H("pageManager", {}), u = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), v = H("resetFormData", !1);
467
467
  let s = Z(N(o.componentSchema));
468
468
  f();
469
469
  async function y(p) {
@@ -515,7 +515,7 @@ const Ke = /* @__PURE__ */ G({
515
515
  i.isDesignMode.value && typeof s.field == "string" && (s.field += "-design-mode");
516
516
  }
517
517
  (o.resetFormData || v) && (r = {});
518
- const u = a, A = D(), x = D(), m = (p) => {
518
+ const c = a, A = D(), x = D(), m = (p) => {
519
519
  x.value = p;
520
520
  }, g = _e();
521
521
  Object.keys(g).length && $("nodeAttrs", g);
@@ -546,7 +546,7 @@ const Ke = /* @__PURE__ */ G({
546
546
  }), {
547
547
  ...o,
548
548
  ...s.componentProps,
549
- disabled: (c == null ? void 0 : c.value) || ((S = s.componentProps) == null ? void 0 : S.disabled),
549
+ disabled: (u == null ? void 0 : u.value) || ((S = s.componentProps) == null ? void 0 : S.disabled),
550
550
  bindModel: p,
551
551
  ...E
552
552
  };
@@ -605,10 +605,10 @@ const Ke = /* @__PURE__ */ G({
605
605
  h.value = p;
606
606
  }
607
607
  function b(p) {
608
- u("update:modelValue", p), u("change", p), s.field && (r[s.field] = p), ee.emit("updateformData", r), F.setFormData(r);
608
+ c("update:modelValue", p), c("change", p), s.field && (r[s.field] = p), ee.emit("updateformData", r);
609
609
  }
610
610
  function X(p) {
611
- u("update:dynamicId", p);
611
+ c("update:dynamicId", p);
612
612
  }
613
613
  let ve = null;
614
614
  return V(
@@ -640,7 +640,7 @@ const Ke = /* @__PURE__ */ G({
640
640
  onUpdateFormItemRef: m
641
641
  }, {
642
642
  default: P(() => [
643
- (M(), L(Fe(h.value), fe({
643
+ (M(), L(Oe(h.value), fe({
644
644
  ref_key: "componentInstance",
645
645
  ref: A,
646
646
  onVnodeMounted: oe,
@@ -681,15 +681,15 @@ function Ze() {
681
681
  });
682
682
  }
683
683
  async function t(d = "default") {
684
- var u;
684
+ var c;
685
685
  await o();
686
- const f = (u = n.value) == null ? void 0 : u[d];
686
+ const f = (c = n.value) == null ? void 0 : c[d];
687
687
  if (!f) throw new Error(`表单 [name=${d}] 不存在`);
688
688
  return f;
689
689
  }
690
690
  async function r(d, f) {
691
- const u = await t(d);
692
- return N(await f(u));
691
+ const c = await t(d);
692
+ return N(await f(c));
693
693
  }
694
694
  async function l(d = "default") {
695
695
  return await r(d, (f) => f.getData());
@@ -697,18 +697,18 @@ function Ze() {
697
697
  function i(d, f = "default") {
698
698
  var A;
699
699
  a.setFormData(d, f);
700
- const u = (A = n.value) == null ? void 0 : A[f];
701
- u == null || u.clearValidate();
700
+ const c = (A = n.value) == null ? void 0 : A[f];
701
+ console.log("%c [ form ]-63", "font-size:13px; background:pink; color:#bf2c9f;", c), c == null || c.clearValidate();
702
702
  }
703
- async function c(d = "default") {
703
+ async function u(d = "default") {
704
704
  return await r(d, async (f) => (await f.validate(), await f.getData()));
705
705
  }
706
706
  async function w(d) {
707
707
  await o();
708
708
  const f = {};
709
- for (const u in n.value) {
710
- const A = n.value[u];
711
- A && (f[u] = N(await d(A)));
709
+ for (const c in n.value) {
710
+ const A = n.value[c];
711
+ A && (f[c] = N(await d(A)));
712
712
  }
713
713
  return f;
714
714
  }
@@ -728,7 +728,7 @@ function Ze() {
728
728
  forms: n,
729
729
  getData: l,
730
730
  setData: i,
731
- validate: c,
731
+ validate: u,
732
732
  getForms: v,
733
733
  setForms: s,
734
734
  validateAll: y,
@@ -748,11 +748,11 @@ const Ge = {
748
748
  },
749
749
  emits: ["change", "ready"],
750
750
  setup(e, { expose: a, emit: n }) {
751
- const o = q(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: c, setData: w, validate: v, getForms: s, setForms: y, validateAll: d, getFormInstance: f } = Ze(), u = e, A = Z({
751
+ const o = q(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: u, setData: w, validate: v, getForms: s, setForms: y, validateAll: d, getFormInstance: f } = Ze(), c = e, A = Z({
752
752
  schemas: []
753
753
  });
754
754
  V(
755
- () => u.pageSchema,
755
+ () => c.pageSchema,
756
756
  (h) => {
757
757
  J(A, h);
758
758
  },
@@ -761,7 +761,7 @@ const Ge = {
761
761
  deep: !0
762
762
  }
763
763
  ), V(
764
- () => u.formData,
764
+ () => c.formData,
765
765
  (h) => {
766
766
  h && w(h);
767
767
  },
@@ -777,9 +777,9 @@ const Ge = {
777
777
  {
778
778
  immediate: !0
779
779
  }
780
- ), $("slots", Oe()), $("pageManager", l), $("forms", i), $("pageSchema", A), $(
780
+ ), $("slots", Fe()), $("pageManager", l), $("forms", i), $("pageSchema", A), $(
781
781
  "disabled",
782
- U(() => u.disabled)
782
+ U(() => c.disabled)
783
783
  );
784
784
  const x = ne(), m = x == null ? void 0 : x.proxy;
785
785
  function g() {
@@ -792,7 +792,7 @@ const Ge = {
792
792
  }), a({
793
793
  ready: r,
794
794
  pageManager: l,
795
- getData: c,
795
+ getData: u,
796
796
  setData: w,
797
797
  validate: v,
798
798
  getForms: s,
@@ -807,7 +807,7 @@ const Ge = {
807
807
  z("div", Qe, [
808
808
  (M(!0), pe(Me, null, Re(A.schemas, (O, B) => (M(), L(_(qe), {
809
809
  key: B,
810
- sourceDateUrl: u.sourceDateUrl,
810
+ sourceDateUrl: c.sourceDateUrl,
811
811
  componentSchema: O,
812
812
  onChange: h.getDataChange
813
813
  }, null, 8, ["sourceDateUrl", "componentSchema", "onChange"]))), 128))
@@ -854,8 +854,8 @@ function lt(e = !1, a = {}) {
854
854
  if (arguments.length)
855
855
  return r.value = i, r.value;
856
856
  {
857
- const c = Q(n);
858
- return r.value = r.value === c ? Q(o) : c, r.value;
857
+ const u = Q(n);
858
+ return r.value = r.value === u ? Q(o) : u, r.value;
859
859
  }
860
860
  }
861
861
  return t ? l : [r, l];
@@ -877,7 +877,7 @@ function it(...e) {
877
877
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
878
878
  const r = [], l = () => {
879
879
  r.forEach((v) => v()), r.length = 0;
880
- }, i = (v, s, y, d) => (v.addEventListener(s, y, d), () => v.removeEventListener(s, y, d)), c = V(
880
+ }, i = (v, s, y, d) => (v.addEventListener(s, y, d), () => v.removeEventListener(s, y, d)), u = V(
881
881
  () => [K(a), Q(t)],
882
882
  ([v, s]) => {
883
883
  if (l(), !v)
@@ -889,7 +889,7 @@ function it(...e) {
889
889
  },
890
890
  { immediate: !0, flush: "post" }
891
891
  ), w = () => {
892
- c(), l();
892
+ u(), l();
893
893
  };
894
894
  return he(w), w;
895
895
  }
@@ -904,9 +904,9 @@ function Ie(...e) {
904
904
  eventName: r = "keydown",
905
905
  passive: l = !1,
906
906
  dedupe: i = !1
907
- } = o, c = ct(a);
907
+ } = o, u = ct(a);
908
908
  return it(t, r, (v) => {
909
- v.repeat && Q(i) || c(v) && n(v);
909
+ v.repeat && Q(i) || u(v) && n(v);
910
910
  }, l);
911
911
  }
912
912
  function ue(e, a, n = {}) {
@@ -933,11 +933,11 @@ function pt(e, a, n = {}) {
933
933
  let r;
934
934
  const l = dt(() => o && "ResizeObserver" in o), i = () => {
935
935
  r && (r.disconnect(), r = void 0);
936
- }, c = U(() => {
936
+ }, u = U(() => {
937
937
  const s = Q(e);
938
938
  return Array.isArray(s) ? s.map((y) => K(y)) : [K(s)];
939
939
  }), w = V(
940
- c,
940
+ u,
941
941
  (s) => {
942
942
  if (i(), l.value && o) {
943
943
  r = new ResizeObserver(a);
@@ -958,7 +958,7 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
958
958
  const { window: o = le, box: t = "content-box" } = n, r = U(() => {
959
959
  var s, y;
960
960
  return (y = (s = K(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : y.includes("svg");
961
- }), l = D(a.width), i = D(a.height), { stop: c } = pt(
961
+ }), l = D(a.width), i = D(a.height), { stop: u } = pt(
962
962
  e,
963
963
  ([s]) => {
964
964
  const y = t === "border-box" ? s.borderBoxSize : t === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
@@ -970,7 +970,7 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
970
970
  }
971
971
  } else if (y) {
972
972
  const d = Array.isArray(y) ? y : [y];
973
- l.value = d.reduce((f, { inlineSize: u }) => f + u, 0), i.value = d.reduce((f, { blockSize: u }) => f + u, 0);
973
+ l.value = d.reduce((f, { inlineSize: c }) => f + c, 0), i.value = d.reduce((f, { blockSize: c }) => f + c, 0);
974
974
  } else
975
975
  l.value = s.contentRect.width, i.value = s.contentRect.height;
976
976
  },
@@ -987,7 +987,7 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
987
987
  }
988
988
  );
989
989
  function v() {
990
- c(), w();
990
+ u(), w();
991
991
  }
992
992
  return {
993
993
  width: l,
@@ -999,18 +999,18 @@ function Lt(e, a, n, o = {}) {
999
999
  var t, r, l;
1000
1000
  const {
1001
1001
  clone: i = !1,
1002
- passive: c = !1,
1002
+ passive: u = !1,
1003
1003
  eventName: w,
1004
1004
  deep: v = !1,
1005
1005
  defaultValue: s,
1006
1006
  shouldEmit: y
1007
1007
  } = o, d = ne(), f = n || (d == null ? void 0 : d.emit) || ((t = d == null ? void 0 : d.$emit) == null ? void 0 : t.bind(d)) || ((l = (r = d == null ? void 0 : d.proxy) == null ? void 0 : r.$emit) == null ? void 0 : l.bind(d == null ? void 0 : d.proxy));
1008
- let u = w;
1009
- a || (a = "modelValue"), u = u || `update:${a.toString()}`;
1008
+ let c = w;
1009
+ a || (a = "modelValue"), c = c || `update:${a.toString()}`;
1010
1010
  const A = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, x = () => tt(e[a]) ? A(e[a]) : s, m = (g) => {
1011
- y ? y(g) && f(u, g) : f(u, g);
1011
+ y ? y(g) && f(c, g) : f(c, g);
1012
1012
  };
1013
- if (c) {
1013
+ if (u) {
1014
1014
  const g = x(), h = D(g);
1015
1015
  let I = !1;
1016
1016
  return V(
@@ -1106,15 +1106,15 @@ function Jt(e) {
1106
1106
  const { pressSpace: a } = ie(), n = new Image(1, 1);
1107
1107
  n.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1108
1108
  let o = 0, t = 0;
1109
- function r(c) {
1109
+ function r(u) {
1110
1110
  var w;
1111
- a.value && (o = c.x, t = c.y, (w = c.dataTransfer) == null || w.setDragImage(document.createElement("div"), 0, 0));
1111
+ a.value && (o = u.x, t = u.y, (w = u.dataTransfer) == null || w.setDragImage(document.createElement("div"), 0, 0));
1112
1112
  }
1113
- function l(c) {
1114
- if (c.preventDefault(), !c.x || !c.y || !a.value)
1113
+ function l(u) {
1114
+ if (u.preventDefault(), !u.x || !u.y || !a.value)
1115
1115
  return;
1116
- const w = c.x - o, v = c.y - t;
1117
- o = c.x, t = c.y, e.value && (e.value.scrollTop -= v, e.value.scrollLeft -= w);
1116
+ const w = u.x - o, v = u.y - t;
1117
+ o = u.x, t = u.y, e.value && (e.value.scrollTop -= v, e.value.scrollLeft -= w);
1118
1118
  }
1119
1119
  function i() {
1120
1120
  a.value = !1;
@@ -1153,7 +1153,7 @@ function Ht(e, a = 16.66) {
1153
1153
  const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ G({
1154
1154
  __name: "index",
1155
1155
  setup(e, { expose: a }) {
1156
- const n = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t = D(null), r = D(!1), l = D(!1), i = D({}), c = H("pageSchema"), w = D(null), v = D("");
1156
+ const n = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t = D(null), r = D(!1), l = D(!1), i = D({}), u = H("pageSchema"), w = D(null), v = D("");
1157
1157
  function s() {
1158
1158
  l.value = !1;
1159
1159
  }
@@ -1165,22 +1165,22 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1165
1165
  }
1166
1166
  async function f() {
1167
1167
  try {
1168
- let u = await w.value.validateAll();
1169
- if (!Object.keys(u).length) {
1168
+ let c = await w.value.validateAll();
1169
+ if (!Object.keys(c).length) {
1170
1170
  alert("请添加表单组件后再尝试!");
1171
1171
  return;
1172
1172
  }
1173
- Object.keys(u).length === 1 && (u = u.default), i.value = JSON.stringify(u, null, 2), Y(() => {
1173
+ Object.keys(c).length === 1 && (c = c.default), i.value = JSON.stringify(c, null, 2), Y(() => {
1174
1174
  var A;
1175
1175
  (A = t.value) == null || A.setValue(i.value);
1176
1176
  }), l.value = !0;
1177
- } catch (u) {
1178
- console.error(u);
1177
+ } catch (c) {
1178
+ console.error(c);
1179
1179
  }
1180
1180
  }
1181
1181
  return a({
1182
1182
  handleOpen: d
1183
- }), (u, A) => (M(), L(_(o), {
1183
+ }), (c, A) => (M(), L(_(o), {
1184
1184
  modelValue: r.value,
1185
1185
  "onUpdate:modelValue": A[1] || (A[1] = (x) => r.value = x),
1186
1186
  title: "预览",
@@ -1196,7 +1196,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1196
1196
  key: v.value,
1197
1197
  ref_key: "kb",
1198
1198
  ref: w,
1199
- "page-schema": _(c)
1199
+ "page-schema": _(u)
1200
1200
  }, null, 8, ["page-schema"])),
1201
1201
  T(_(o), {
1202
1202
  modelValue: l.value,
@@ -1252,7 +1252,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1252
1252
  "updateSourceData"
1253
1253
  ],
1254
1254
  setup(e, { expose: a, emit: n }) {
1255
- const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-DUsA7Tr8.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), c = Ee(), w = He(), v = e;
1255
+ const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-CiMLQy__.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), u = Ee(), w = He(), v = e;
1256
1256
  let s = {
1257
1257
  schemas: [
1258
1258
  {
@@ -1305,22 +1305,22 @@ defineExpose({
1305
1305
  return;
1306
1306
  }
1307
1307
  v.source && F.setSourceData(v.source), v.formMode && (s.schemas = F.formSchemas);
1308
- }), c.setDesignMode(), c.setDefaultComponentIds(s.schemas);
1308
+ }), u.setDesignMode(), u.setDefaultComponentIds(s.schemas);
1309
1309
  const y = n, d = D(null), f = Z({
1310
1310
  checkedNode: null,
1311
1311
  hoverNode: null,
1312
1312
  disableHover: !1,
1313
1313
  matched: []
1314
- }), u = Z({
1314
+ }), c = Z({
1315
1315
  schemas: [],
1316
1316
  script: s.script
1317
1317
  }), { disabledZoom: A } = ie();
1318
1318
  re(() => {
1319
1319
  A.value = v.disabledZoom;
1320
1320
  }), re(() => {
1321
- const b = u.script;
1322
- b && b !== "" && c.setMethods(b);
1323
- }), $("pageSchema", u), $("revoke", w), $("pageManager", c), $(
1321
+ const b = c.script;
1322
+ b && b !== "" && u.setMethods(b);
1323
+ }), $("pageSchema", c), $("revoke", w), $("pageManager", u), $(
1324
1324
  "designerProps",
1325
1325
  U(() => v)
1326
1326
  ), $("designer", {
@@ -1338,10 +1338,10 @@ defineExpose({
1338
1338
  y("updateSourceData", b);
1339
1339
  });
1340
1340
  function x() {
1341
- u.schemas = N(s.schemas), m(u.schemas[0]), w.push(u.schemas, "初始化撤销功能");
1341
+ c.schemas = N(s.schemas), m(c.schemas[0]), w.push(c.schemas, "初始化撤销功能");
1342
1342
  }
1343
- async function m(b = u.schemas[0]) {
1344
- f.checkedNode = b, f.matched = ze(u.schemas, b.id);
1343
+ async function m(b = c.schemas[0]) {
1344
+ f.checkedNode = b, f.matched = ze(c.schemas, b.id);
1345
1345
  }
1346
1346
  async function g(b = null) {
1347
1347
  var X;
@@ -1353,23 +1353,23 @@ defineExpose({
1353
1353
  }
1354
1354
  function h() {
1355
1355
  Y(() => {
1356
- y("ready", { pageManager: c });
1356
+ y("ready", { pageManager: u });
1357
1357
  });
1358
1358
  }
1359
1359
  async function I(b = !1) {
1360
1360
  f.disableHover = b;
1361
1361
  }
1362
1362
  function O(b) {
1363
- J(u, N(b));
1363
+ J(c, N(b));
1364
1364
  }
1365
1365
  function B() {
1366
- return ge(u);
1366
+ return ge(c);
1367
1367
  }
1368
1368
  function W() {
1369
- Ae(u.schemas, s.schemas) && u.script === s.script || (J(u.schemas, s.schemas), u.script = s.script, m(u.schemas[0]), w.push(u.schemas, "重置操作"), y("reset", u));
1369
+ Ae(c.schemas, s.schemas) && c.script === s.script || (J(c.schemas, s.schemas), c.script = s.script, m(c.schemas[0]), w.push(c.schemas, "重置操作"), y("reset", c));
1370
1370
  }
1371
1371
  function oe() {
1372
- y("save", ge(u));
1372
+ y("save", ge(c));
1373
1373
  }
1374
1374
  function ce(b) {
1375
1375
  y("toggleDeviceMode", b);
@@ -1440,7 +1440,7 @@ defineExpose({
1440
1440
  })) : (M(), pe("div", Dt));
1441
1441
  }
1442
1442
  }), Ct = {
1443
- component: async () => await import("./index-CHGojUf_.js"),
1443
+ component: async () => await import("./index-D8Dlr8aX.js"),
1444
1444
  defaultSchema: {
1445
1445
  label: "代码编辑器",
1446
1446
  type: "monacoEditor",
@@ -1490,11 +1490,11 @@ defineExpose({
1490
1490
  }
1491
1491
  };
1492
1492
  function xt(e) {
1493
- e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-Bae_P2jy.js")), e.component("EActionEditor", async () => await import("./index-BB1mJNTS.js")), e.component("ERuleEditor", async () => await import("./index-z22tTQo-.js")), e.component("EOptionsEditor", async () => await import("./index-D2jUjBFQ.js")), e.component("ENode", async () => await import("./index-2dJzXydf.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1493
+ e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-FHGseiDc.js")), e.component("EActionEditor", async () => await import("./index-UQLDWqfT.js")), e.component("ERuleEditor", async () => await import("./index-Bc7J-Fgw.js")), e.component("EOptionsEditor", async () => await import("./index-BPt8U8n9.js")), e.component("ENode", async () => await import("./index-CtNfh-CD.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1494
1494
  id: "component_view",
1495
1495
  title: "组件",
1496
1496
  icon: "icon--epic--extension-outline",
1497
- component: async () => await import("./index-BIDRA86S.js")
1497
+ component: async () => await import("./index-rE2p5Gmx.js")
1498
1498
  }), e.registerActivitybar({
1499
1499
  id: "outline_view",
1500
1500
  title: "大纲",
@@ -1503,11 +1503,11 @@ function xt(e) {
1503
1503
  }), e.registerRightSidebar({
1504
1504
  id: "attribute_view",
1505
1505
  title: "属性",
1506
- component: async () => await import("./attributeView-De_f9cQd.js")
1506
+ component: async () => await import("./attributeView-DpkfKqtd.js")
1507
1507
  }), e.registerRightSidebar({
1508
1508
  id: "style_view",
1509
1509
  title: "样式",
1510
- component: async () => await import("./styleView-CA80akwG.js")
1510
+ component: async () => await import("./styleView-CEaoc1Q1.js")
1511
1511
  }), [Ct, kt].forEach((n) => {
1512
1512
  e.registerComponent(n);
1513
1513
  });
@@ -1538,11 +1538,11 @@ export {
1538
1538
  Rt as l,
1539
1539
  N as m,
1540
1540
  Lt as n,
1541
- Ft as o,
1541
+ Ot as o,
1542
1542
  zt as p,
1543
1543
  Xe as q,
1544
1544
  Kt as r,
1545
- Ot as s,
1545
+ Ft as s,
1546
1546
  Ee as t,
1547
1547
  ie as u,
1548
1548
  He as v,
@@ -0,0 +1,10 @@
1
+ "use strict";const e=require("vue"),D=require("./axios-CYGTE3lR.cjs");function U(t=10){const a="abcdefghijklmnopqrstuvwxyz0123456789";let o="";for(let r=0;r<t;r++){const n=Math.floor(Math.random()*a.length);o+=a[n]}return o}function j(t){return t.charAt(0).toUpperCase()+t.slice(1)}function _(t,a=new WeakMap){if(typeof t!="object"||t===null)return t;if(a.has(t))return a.get(t);if(Array.isArray(t)){const r=t.map(n=>_(n,a));return a.set(t,r),r}const o={};return a.set(t,o),Object.keys(t).forEach(r=>{o[r]=_(t[r],a)}),o}function he(t){const[a]=ne([_(t)],o=>{var n,s;const r={...o,id:`${o.type}_${U(8)}`};return(r.field||r.input)&&!((s=(n=D.pluginManager.getComponentConfingByType(r.type))==null?void 0:n.editConstraints)!=null&&s.fixedField)&&(r.field=r.id),r});return a}function B(t,a,o=!0){for(const[r,n]of Object.entries(a)){let s=t==null?void 0:t[r];s&&n&&typeof s=="object"&&typeof n=="object"?(Array.isArray(s)&&!Array.isArray(n)?s=t[r]={}:!Array.isArray(s)&&Array.isArray(n)&&(s=t[r]=[]),B(s,n,o)):t[r]=n}o&&Object.keys(t).reverse().forEach(r=>{a.hasOwnProperty(r)||(Array.isArray(t)?t.splice(Number(r),1):delete t[r])})}function Z(t,a,o=[],r=new WeakMap){const n=s=>{if(Array.isArray(s))return s.map(n);if(typeof s=="object"&&s!==null){if(r.has(s))return"[Circular]";r.set(s,!0);const i=Object.keys(s).sort(),c={};return i.forEach(d=>{o.includes(d)||(c[d]=n(s[d]))}),r.delete(s),c}else return s};return JSON.stringify(n(t))===JSON.stringify(n(a))}function ee(t,a){const o=[];let r=!1;function n(s){if(o.push(s),s.id===a&&(r=!0),!r&&s.children!=null&&s.children.length>0)for(let i=0;i<s.children.length&&(n(s.children[i]),!r);i++);if(!r&&s.slots)for(let i in s.slots)for(let c=0;c<s.slots[i].length&&(n(s.slots[i][c]),!r);c++);r||o.pop()}return t.forEach(n),r||console.error(`没有查询到id为${a}的节点`),o}function ve(t,a,o){const r=a.split(".");let n=t;for(let s=0;s<r.length;s++){if(n==null)return o;n=n[r[s]]}return n===void 0?o:n}function ge(t,a,o){const r=a.replace(/\[(\d+)\]/g,".$1").split(".").filter(Boolean);let n=t;for(let s=0;s<r.length-1;s++){const i=r[s];n[i]==null&&(n[i]=isNaN(Number(r[s+1]))?{}:[]),n=n[i]}return n[r[r.length-1]]=o,t}function ye(t,a="default"){return te(t,a).map(r=>r.field)}function te(t,a="default"){const o=R(t,n=>{var s;return n.type==="form"&&(((s=n.componentProps)==null?void 0:s.name)??n.name===a)},!0);return R((o==null?void 0:o.children)??[],n=>!!n.input,!1,n=>n.type!=="subform")}function R(t,a,o=!1,r){const n=[],s=[...t];for(;s.length;){const i=s.pop();if(i!=null&&i.children&&(!r||r(i))&&s.push(...i.children),i!=null&&i.slots&&(!r||r(i)))for(let c in i.slots)s.push(...i.slots[c]);if(a(i)&&(n.push(i),o))return i}return o?!1:n}function ne(t,a,o){const r=[...t];for(;r.length;){const n=r.pop();if(n!=null&&n.children&&(!o||o(n))&&r.push(...n.children),n!=null&&n.slots&&(!o||o(n)))for(let s in n.slots)r.push(...n.slots[s]);B(n,a(n))}return t}function we(t,a){const o=R(t,r=>r.id===a,!0);if(!o)throw new Error(`没有查询到id为${a}的节点`);return o}function Se(t,a){const o=[{type:"",children:t}];let r=0,n=null;if(R(o,s=>{if(n=s.children??null,!n){if(s!=null&&s.slots)for(let i in s.slots){n=s.slots[i];for(let c=0;c<n.length;c++)if(n[c].id===a)return r=c,!0}return!1}for(let i=0;i<n.length;i++)if(n[i].id===a)return r=i,!0;return!1},!0),!n)throw new Error(`没有查询到id为${a}的节点`);return{list:n,schema:n[r],index:r}}function be(t){const a={schemas:[{type:"page",id:"root",label:"页面",children:[{label:"表单",type:"form",icon:"epic-icon-daibanshixiang",labelWidth:t.config.labelWidth||100,name:"default",componentProps:{layout:t.config.layout||"horizontal",labelWidth:t.config.labelWidth||100,labelLayout:t.config.labelLayout==="flex"?"fixed":"flex",labelCol:t.config.labelCol||{span:5},wrapperCol:t.config.wrapperCol||{span:19},hideRequiredMark:t.config.hideRequiredMark||!1,colon:t.config.colon||!0,labelAlign:t.config.labelAlign||"right",size:t.config.size||"middle"},children:[],id:"form_"+U()}],componentProps:{style:{padding:"16px"}}}],script:t.script||""};return a.schemas[0].children[0].children=O(t.list),a}function O(t,a){return t.map(o=>{var d,S,g;let r=o.type??"";const n=o.options??{},s=(l,y)=>{r===l&&(r=y,n.defaultValue&&(n.defaultValue=JSON.parse(n.defaultValue)))};if(s("uploadImg","upload-image"),s("uploadFile","upload-file"),r==="date"&&n.range&&(n.type="daterange",delete n.range),(r==="date"||r==="time")&&(n.valueFormat=n.format),r==="textarea"){const{minRows:l,maxRows:y}=n;n.autoSize={minRows:l,maxRows:y},delete n.minRows,delete n.maxRows}r==="number"&&!n.precision&&delete n.precision,n.width&&(n.style={width:n.width},delete n.width),r==="grid"&&(r="row"),a&&a.type==="grid"&&(r="col",n.span=o.span,o.key=U());const i={label:o.label,type:r,icon:o.icon||"",field:o.model,componentProps:n,id:o.key};return(n.noFormItem||!n.showLabel)&&(i.noFormItem=!0,delete n.noFormItem,delete n.showLabel),n.clearable&&(n.allowClear=!0,delete n.clearable),["input","textarea","number","password","select","cascader","checkbox","radio","date","time","slider","switch","color-picker","upload-file","upload-image"].includes(r)&&(i.input=!0,((S=(d=o.rules)==null?void 0:d[0])==null?void 0:S.required)===!1&&o.rules.shift(),((g=o.rules)==null?void 0:g.length)>0&&(i.rules=o.rules)),o.list&&(i.children=O(o.list,o)),o.columns&&(i.children=O(o.columns,o)),o.trs&&(i.children=O(o.trs,o)),o.tds&&(i.children=O(o.tds,o)),i})}function Ce(t,a){let o=null;return(...r)=>{o&&clearTimeout(o),o=setTimeout(()=>{t(...r)},a)}}function Q(){const t=e.ref({}),a=e.ref({}),o=e.ref(!1),r=e.ref([]),n=e.reactive({});function s(h){return t.value[h]}function i(h,w){t.value[h]=w}function c(h){delete t.value[h]}function d(h,w=!1){const v=Object.entries(D.pluginManager.publicMethods).reduce((A,[V,M])=>(A[V]=M.handler,A),{});try{new Function(`const epic = this;${h}`).bind({...v,getComponent:s,find:s,defineExpose:S,publicMethods:v,pluginManager:D.pluginManager})()}catch(A){w&&console.error("[epic:自定义函数]异常:",A)}}function S(h){h!=null&&(a.value=h)}function g(h,...w){if(!h||h.length===0){console.warn("未提供任何动作");return}h.forEach(v=>{const A=v.args?JSON.parse(v.args):w;switch(v.type){case"public":l(v,A);break;case"custom":y(v,A);break;case"component":f(v,A);break;default:console.warn(`未知的动作类型: ${v.type}`);break}})}function l(h,w){var v;try{(v=D.pluginManager.publicMethods[h.methodName])==null||v.handler(...w)}catch(A){console.error(`[Epic:公共函数(${h.methodName})]执行异常:`,A)}}function y(h,w){var v,A;try{(A=(v=a.value)[h.methodName])==null||A.call(v,...w)}catch(V){console.error(`[Epic:自定义函数(${h.methodName})]执行异常:`,V)}}function f(h,w){const v=h.componentId!=null&&s(h.componentId);if(!v){console.warn(`[Epic:组件${h.componentId}]未找到`);return}try{v[h.methodName](...w)}catch(A){console.error(`[Epic:组件${h.componentId}函数(${h.methodName})]执行异常:`,A)}}function p(h=!0){o.value=h}function u(h){const w=R(h,()=>!0);r.value=w.map(v=>v.id)}function k(h,w="default"){if(n[w]){const v=n[w];B(h,v)}n[w]=h}function P(h,w="default"){if(n[w]){B(n[w],h,!1);return}n[w]=h}return{componentInstances:t,funcs:a,isDesignMode:o,defaultComponentIds:r,forms:n,addFormData:k,setFormData:P,getComponentInstance:s,find:s,addComponentInstance:i,removeComponentInstance:c,setMethods:d,doActions:g,setDesignMode:p,setDefaultComponentIds:u}}function oe(){const t=e.ref([]),a=e.ref([]),o=e.ref(null);let r=0;function n(d,S="插入组件"){const g=Date.now();r+150>g||(r=g,o.value!=null&&(t.value.push(o.value),a.value.splice(0,a.value.length)),o.value={type:S,componentSchema:JSON.stringify(d)},t.value.length>60&&t.value.unshift())}function s(){if(t.value.length===0)return!1;const d=t.value.pop();return o.value!=null&&a.value.push(o.value),o.value=d,JSON.parse(d.componentSchema)}function i(){if(a.value.length===0)return!1;const d=a.value.pop();return o.value!=null&&t.value.push(o.value),o.value=d,JSON.parse(d.componentSchema)}function c(){t.value=[],a.value=[],o.value=null}return{recordList:t,undoList:a,currentRecord:o,push:n,undo:s,redo:i,reset:c}}const ke=e.defineComponent({__name:"dynamicFormItem",props:{hasFormItem:{type:Boolean},formItemProps:{}},emits:["updateFormItemRef"],setup(t,{emit:a}){const o=D.pluginManager.getComponent("form-item"),r=t,n=a,s=e.ref(),i=()=>{n("updateFormItemRef",s.value)};return(c,d)=>r.hasFormItem?(e.openBlock(),e.createBlock(e.unref(o),e.mergeProps({key:0,ref_key:"formItemRef",ref:s,onVnodeMounted:i},r.formItemProps),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16,["onVnodeMounted"])):e.renderSlot(c.$slots,"default",{key:1})}}),re=e.defineComponent({name:"ENode",__name:"node",props:{componentSchema:{},modelValue:{},ruleField:{},resetFormData:{type:Boolean},name:{},dynamicId:{},sourceDateUrl:{}},emits:["update:modelValue","change","update:dynamicId"],setup(t,{emit:a}){const{proxy:o}=e.getCurrentInstance(),r=t,n=e.ref(null);let s=e.inject("formData",e.reactive({}));const i=e.inject("slots",{}),c=e.inject("pageManager",{}),d=e.inject("disabled",{value:!1}),S=e.inject("ruleFieldPrefix",null),g=e.inject("resetFormData",!1);let l=e.reactive(_(r.componentSchema));p();async function y(m){if(["cascader","checkbox","select","radio"].includes(m.type)&&m.componentProps.dynamicId&&r.sourceDateUrl){const C=(await D.axios({url:r.sourceDateUrl,method:"get",params:{id:m.componentProps.dynamicId}})).data.data;let x=await D.axios({url:C.url,method:C.method,data:JSON.parse(C.body),params:JSON.parse(C.params),headers:JSON.parse(C.headers)});if(C&&(C!=null&&C.dataPath)){const fe=C.dataPath.split(".").reduce((pe,me)=>pe[me],x.data);m.componentProps.options=f(fe,C.dataKey,C.dataValue)}else m.componentProps.options=f(x.data,C.dataKey,C.dataValue);return m}return m}function f(m,E,I){return m&&Object.prototype.toString.call(m)==="[object Array]"?m.map(C=>C.children&&C.children.length?{label:C[E],value:C[I]+"",children:f(C.children,E,I)}:{label:C[E],value:C[I]+""}):[]}e.watch(()=>r.componentSchema,m=>{Z(l,m,["children"])||(B(l,_(m)),p())},{deep:!0});function p(){c.isDesignMode.value&&typeof l.field=="string"&&(l.field+="-design-mode")}(r.resetFormData||g)&&(s={});const u=a,k=e.ref(),P=e.ref(),h=m=>{P.value=m},w=e.useAttrs();Object.keys(w).length&&e.provide("nodeAttrs",w);const v=e.shallowRef(null),A=e.computed(()=>{var m,E;return(m=l.componentProps)!=null&&m.hidden?!1:typeof l.show=="boolean"?l.show:((E=l.show)==null?void 0:E.call(l,{values:s}))??!0}),V=e.computed(()=>{var C;const m=A.value&&((C=l.rules)==null?void 0:C.map(x=>({...x,validator:x.validator&&c.funcs.value[x.validator]})));let E=l.field;r.ruleField?E=r.ruleField:S&&l.field&&(E=_(S),E.push(l.field));const I={...l,rules:m,rule:m,field:E};return I.children&&delete I.children,I}),M=e.computed(()=>{var I,C;const m=((I=N.value)==null?void 0:I.bindModel)??"modelValue",E={};return l.on&&Object.keys(l.on).forEach(x=>{E[`on${j(x)}`]=(...X)=>c.doActions(l.on[x],...X)}),{...r,...l.componentProps,disabled:(d==null?void 0:d.value)||((C=l.componentProps)==null?void 0:C.disabled),bindModel:m,...E}}),N=e.computed(()=>D.pluginManager.getComponentConfingByType(l.type)??null);e.watchEffect(()=>{n.value=r.modelValue??s[l.field??""]}),e.watch(()=>n.value,()=>{n.value!==(r.modelValue??s[l.field??""])&&b(n.value)}),e.watch(()=>k.value,()=>{L()},{immediate:!0});function L(){var E;const m=k.value||o;l.id&&m&&(l.input&&(m.setValue=b,m.getValue=()=>s[l.field]||r.modelValue),m.setAttr=(I,C)=>(l.componentProps||(l.componentProps={}),l.componentProps[I]=C),m.getAttr=I=>l.componentProps[I],c.addComponentInstance(l.id,m),(E=N.value)!=null&&E.defaultSchema.input&&l.noFormItem!==!0&&P.value&&c.addComponentInstance(l.id+"formItem",P.value))}function W(){var m;l.id&&(c.removeComponentInstance(l.id),(m=N.value)!=null&&m.defaultSchema.input&&l.noFormItem!==!0&&c.removeComponentInstance(l.id+"formItem"))}async function z(){var E,I,C;if(l=await y(l),typeof((E=l.componentProps)==null?void 0:E.defaultValue)<"u"){const x=c.isDesignMode.value?(I=l.componentProps)==null?void 0:I.defaultValue:s[l.field]??((C=l.componentProps)==null?void 0:C.defaultValue);b(_(x))}if(l.type==="slot"){const x=l.slotName;if(!x)return;v.value=e.defineComponent({setup(){return()=>e.renderSlot(i,x,{componentSchema:l,model:s})}});return}const m=D.pluginManager.getComponent(l.type);if(!m){console.error(`组件${l.type}未注册`);return}if(typeof m=="function"){const x=await m();v.value=x.default??x}else v.value=m}function b(m){u("update:modelValue",m),u("change",m),l.field&&(s[l.field]=m),D.EventBus.emit("updateformData",s)}function T(m){u("update:dynamicId",m)}let Y=null;return e.watch(()=>l,async m=>{const E=JSON.stringify({...m,children:void 0,componentProps:{...m.componentProps,options:null}});if(E===Y)return!1;Y=E,z()},{immediate:!0,deep:!0}),e.onUnmounted(W),(m,E)=>{var C;const I=e.resolveComponent("ENode");return v.value&&A.value?(e.openBlock(),e.createBlock(ke,{key:0,hasFormItem:e.unref(l).noFormItem!==!0&&((C=N.value)==null?void 0:C.defaultSchema.input),formItemProps:V.value,onUpdateFormItemRef:h},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.value),e.mergeProps({ref_key:"componentInstance",ref:k,onVnodeMounted:L,model:e.unref(s)},{...M.value},{[M.value.bindModel]:n.value,["onUpdate:"+M.value.bindModel]:E[0]||(E[0]=x=>n.value=x),[`onUpdate:${M.value.bindModel}`||""]:b,"onUpdate:dynamicId":T}),{node:e.withCtx(x=>[e.createVNode(I,e.mergeProps(x,{sourceDateUrl:r.sourceDateUrl}),null,16,["sourceDateUrl"])]),"edit-node":e.withCtx(()=>[e.renderSlot(m.$slots,"edit-node")]),_:3},16,["model"]))]),_:3},8,["hasFormItem","formItemProps"])):e.createCommentVNode("",!0)}}});function Ee(){const t=e.ref(!1),a=Q(),o=e.ref({});function r(){return new Promise(f=>{if(t.value)f();else{const p=e.watch(t,()=>{p(),f()})}})}async function n(f="default"){var u;await r();const p=(u=o.value)==null?void 0:u[f];if(!p)throw new Error(`表单 [name=${f}] 不存在`);return p}async function s(f,p){const u=await n(f);return _(await p(u))}async function i(f="default"){return await s(f,p=>p.getData())}function c(f,p="default"){var k;a.setFormData(f,p);const u=(k=o.value)==null?void 0:k[p];console.log("%c [ form ]-63","font-size:13px; background:pink; color:#bf2c9f;",u),u==null||u.clearValidate()}async function d(f="default"){return await s(f,async p=>(await p.validate(),await p.getData()))}async function S(f){await r();const p={};for(const u in o.value){const k=o.value[u];k&&(p[u]=_(await f(k)))}return p}async function g(){return await S(f=>f.getData())}function l(f){for(const p in f)c(f[p],p)}async function y(){return await S(async f=>(await f.validate(),await f.getData()))}return{ready:t,pageManager:a,forms:o,getData:i,setData:c,validate:d,getForms:g,setForms:l,validateAll:y,getFormInstance:n}}const De={key:0,class:"epic-loading-box"},Ae={class:"epic-builder-main"},xe={class:"epic-loading-box"},ae=e.defineComponent({__name:"builder",props:{pageSchema:{},formData:{},disabled:{type:Boolean},sourceDateUrl:{}},emits:["change","ready"],setup(t,{expose:a,emit:o}){const r=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Cap7FkuS.cjs"))),n=o,{ready:s,pageManager:i,forms:c,getData:d,setData:S,validate:g,getForms:l,setForms:y,validateAll:f,getFormInstance:p}=Ee(),u=t,k=e.reactive({schemas:[]});e.watch(()=>u.pageSchema,v=>{B(k,v)},{immediate:!0,deep:!0}),e.watch(()=>u.formData,v=>{v&&S(v)},{immediate:!0,deep:!0}),e.watch(()=>k.script,v=>{v&&i.setMethods(v,!0)},{immediate:!0}),e.provide("slots",e.useSlots()),e.provide("pageManager",i),e.provide("forms",c),e.provide("pageSchema",k),e.provide("disabled",e.computed(()=>u.disabled));const P=e.getCurrentInstance(),h=P==null?void 0:P.proxy;function w(){e.nextTick(()=>{s.value=!0,n("ready",i),h&&i.addComponentInstance("builder",h)})}return D.EventBus.on("updateformData",v=>{console.log("%c [ e ]-122","font-size:13px; background:pink; color:#bf2c9f;",v),n("change",v)}),a({ready:s,pageManager:i,getData:d,setData:S,validate:g,getForms:l,setForms:y,validateAll:f,getFormInstance:p}),(v,A)=>e.unref(D.pluginManager).initialized.value?(e.openBlock(),e.createBlock(e.Suspense,{key:1,onResolve:w},{default:e.withCtx(()=>[e.createElementVNode("div",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.schemas,(V,M)=>(e.openBlock(),e.createBlock(e.unref(re),{key:M,sourceDateUrl:u.sourceDateUrl,componentSchema:V,onChange:v.getDataChange},null,8,["sourceDateUrl","componentSchema","onChange"]))),128))])]),fallback:e.withCtx(()=>[e.createElementVNode("div",xe,[e.createVNode(e.unref(r))])]),_:1})):(e.openBlock(),e.createElementBlock("div",De))}});function G(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function Ie(t){let a=0,o,r;const n=()=>{a-=1,r&&a<=0&&(r.stop(),o=void 0,r=void 0)};return(...s)=>(a+=1,r||(r=e.effectScope(!0),o=r.run(()=>t(...s))),G(n),o)}function $(t){return typeof t=="function"?t():e.unref(t)}const Pe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ve=t=>typeof t<"u",_e=Object.prototype.toString,Me=t=>_e.call(t)==="[object Object]",Be=()=>{};function Ne(t){return e.getCurrentInstance()}function Fe(t,a=!0,o){Ne()?e.onMounted(t,o):a?t():e.nextTick(t)}function Oe(t=!1,a={}){const{truthyValue:o=!0,falsyValue:r=!1}=a,n=e.isRef(t),s=e.ref(t);function i(c){if(arguments.length)return s.value=c,s.value;{const d=$(o);return s.value=s.value===d?$(r):d,s.value}}return n?i:[s,i]}function Re(t,a,o){const r=e.watch(t,(...n)=>(e.nextTick(()=>r()),a(...n)),o);return r}const J=Pe?window:void 0;function F(t){var a;const o=$(t);return(a=o==null?void 0:o.$el)!=null?a:o}function $e(...t){let a,o,r,n;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,n]=t,a=J):[a,o,r,n]=t,!a)return Be;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(g=>g()),s.length=0},c=(g,l,y,f)=>(g.addEventListener(l,y,f),()=>g.removeEventListener(l,y,f)),d=e.watch(()=>[F(a),$(n)],([g,l])=>{if(i(),!g)return;const y=Me(l)?{...l}:l;s.push(...o.flatMap(f=>r.map(p=>c(g,f,p,y))))},{immediate:!0,flush:"post"}),S=()=>{d(),i()};return G(S),S}function Te(t){return typeof t=="function"?t:typeof t=="string"?a=>a.key===t:Array.isArray(t)?a=>t.includes(a.key):()=>!0}function se(...t){let a,o,r={};t.length===3?(a=t[0],o=t[1],r=t[2]):t.length===2?typeof t[1]=="object"?(a=!0,o=t[0],r=t[1]):(a=t[0],o=t[1]):(a=!0,o=t[0]);const{target:n=J,eventName:s="keydown",passive:i=!1,dedupe:c=!1}=r,d=Te(a);return $e(n,s,g=>{g.repeat&&$(c)||d(g)&&o(g)},i)}function H(t,a,o={}){return se(t,a,{...o,eventName:"keydown"})}function K(t,a,o={}){return se(t,a,{...o,eventName:"keyup"})}function Ue(){const t=e.ref(!1),a=e.getCurrentInstance();return a&&e.onMounted(()=>{t.value=!0},a),t}function qe(t){const a=Ue();return e.computed(()=>(a.value,!!t()))}function Le(t){return JSON.parse(JSON.stringify(t))}function le(t,a,o={}){const{window:r=J,...n}=o;let s;const i=qe(()=>r&&"ResizeObserver"in r),c=()=>{s&&(s.disconnect(),s=void 0)},d=e.computed(()=>{const l=$(t);return Array.isArray(l)?l.map(y=>F(y)):[F(l)]}),S=e.watch(d,l=>{if(c(),i.value&&r){s=new ResizeObserver(a);for(const y of l)y&&s.observe(y,n)}},{immediate:!0,flush:"post"}),g=()=>{c(),S()};return G(g),{isSupported:i,stop:g}}function ze(t,a={width:0,height:0},o={}){const{window:r=J,box:n="content-box"}=o,s=e.computed(()=>{var l,y;return(y=(l=F(t))==null?void 0:l.namespaceURI)==null?void 0:y.includes("svg")}),i=e.ref(a.width),c=e.ref(a.height),{stop:d}=le(t,([l])=>{const y=n==="border-box"?l.borderBoxSize:n==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&s.value){const f=F(t);if(f){const p=f.getBoundingClientRect();i.value=p.width,c.value=p.height}}else if(y){const f=Array.isArray(y)?y:[y];i.value=f.reduce((p,{inlineSize:u})=>p+u,0),c.value=f.reduce((p,{blockSize:u})=>p+u,0)}else i.value=l.contentRect.width,c.value=l.contentRect.height},o);Fe(()=>{const l=F(t);l&&(i.value="offsetWidth"in l?l.offsetWidth:a.width,c.value="offsetHeight"in l?l.offsetHeight:a.height)});const S=e.watch(()=>F(t),l=>{i.value=l?a.width:0,c.value=l?a.height:0});function g(){d(),S()}return{width:i,height:c,stop:g}}function Je(t,a,o,r={}){var n,s,i;const{clone:c=!1,passive:d=!1,eventName:S,deep:g=!1,defaultValue:l,shouldEmit:y}=r,f=e.getCurrentInstance(),p=o||(f==null?void 0:f.emit)||((n=f==null?void 0:f.$emit)==null?void 0:n.bind(f))||((i=(s=f==null?void 0:f.proxy)==null?void 0:s.$emit)==null?void 0:i.bind(f==null?void 0:f.proxy));let u=S;a||(a="modelValue"),u=u||`update:${a.toString()}`;const k=w=>c?typeof c=="function"?c(w):Le(w):w,P=()=>Ve(t[a])?k(t[a]):l,h=w=>{y?y(w)&&p(u,w):p(u,w)};if(d){const w=P(),v=e.ref(w);let A=!1;return e.watch(()=>t[a],V=>{A||(A=!0,v.value=k(V),e.nextTick(()=>A=!1))}),e.watch(v,V=>{!A&&(V!==t[a]||g)&&h(V)},{deep:g}),v}else return e.computed({get(){return P()},set(w){h(w)}})}function We(){const{isDark:t}=q(),a=Oe(t);return{isDark:t,toggleDark:a}}function ie(){const t=e.ref(!1);return e.onMounted(()=>{ce(t),He(t)}),e.watch(()=>t.value,()=>{t.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}),{isDark:t}}function ce(t){var a=document.documentElement;a&&(a.classList.contains("dark")?t.value=!0:t.value=!1)}function He(t){var a=document.querySelector("html"),o=new MutationObserver(function(r){for(var n of r)if(n.type==="attributes"&&n.attributeName==="class"){const s=n.target;new Array(...s.classList).includes("dark")?t.value=!0:t.value=!1}});o.observe(a,{attributes:!0,attributeFilter:["class"]}),e.onUnmounted(()=>{o.disconnect()})}function ue(){const t=e.ref(1),a=e.ref(!1),{isDark:o}=ie(),{pressSpace:r,pressShift:n,pressCtrl:s}=de();return{canvasScale:t,pressSpace:r,pressShift:n,pressCtrl:s,disabledZoom:a,isDark:o}}const q=Ie(ue);function de(){const t=e.ref(!1),a=e.ref(!1),o=e.ref(!1);return H(" ",()=>{t.value=!0}),K(" ",()=>{t.value=!1}),H("Shift",r=>{r.preventDefault(),a.value=!0}),K("Shift",()=>{a.value=!1}),H("Control",r=>{r.preventDefault(),o.value=!0}),K("Control",()=>{o.value=!1}),{pressSpace:t,pressShift:a,pressCtrl:o}}function Ke(t){const{pressSpace:a}=q(),o=new Image(1,1);o.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";let r=0,n=0;function s(d){var S;a.value&&(r=d.x,n=d.y,(S=d.dataTransfer)==null||S.setDragImage(document.createElement("div"),0,0))}function i(d){if(d.preventDefault(),!d.x||!d.y||!a.value)return;const S=d.x-r,g=d.y-n;r=d.x,n=d.y,t.value&&(t.value.scrollTop-=g,t.value.scrollLeft-=S)}function c(){a.value=!1}return{handleElementDragStart:s,handleElementDrag:i,handleElementDragEnd:c}}function Ze(t){const{pressCtrl:a,canvasScale:o,disabledZoom:r}=q();function n(s){if(!a.value||r.value)return;s.preventDefault();let i=0;s.deltaY<0?i=o.value+.05:i=o.value-.05,!(i>150||i<.5)&&(o.value=i)}return e.watch(()=>o.value,s=>{t.value&&!r.value&&(t.value.style.transform=`scale(${s})`)}),{handleZoom:n,canvasScale:o}}function Qe(t,a=16.66){let o;function r(){n(),o=window.setInterval(t,a)}function n(){window.clearInterval(o)}return{startTimedQuery:r,stopTimedQuery:n}}const Ge={class:"min-w-750px rounded"},Ye={class:"h-full rounded"},Xe=e.defineComponent({__name:"index",setup(t,{expose:a}){const o=D.pluginManager.getComponent("monacoEditor"),r=D.pluginManager.getComponent("modal"),n=e.ref(null),s=e.ref(!1),i=e.ref(!1),c=e.ref({}),d=e.inject("pageSchema"),S=e.ref(null),g=e.ref("");function l(){i.value=!1}function y(){s.value=!1}function f(){s.value=!0,g.value=U()}async function p(){try{let u=await S.value.validateAll();if(!Object.keys(u).length){alert("请添加表单组件后再尝试!");return}Object.keys(u).length===1&&(u=u.default),c.value=JSON.stringify(u,null,2),e.nextTick(()=>{var k;(k=n.value)==null||k.setValue(c.value)}),i.value=!0}catch(u){console.error(u)}}return a({handleOpen:f}),(u,k)=>(e.openBlock(),e.createBlock(e.unref(r),{modelValue:s.value,"onUpdate:modelValue":k[1]||(k[1]=P=>s.value=P),title:"预览",class:"w-900px",width:"900px",onClose:y,onOk:p,okText:"表单数据"},{default:e.withCtx(()=>[e.createElementVNode("div",Ge,[(e.openBlock(),e.createBlock(e.unref(ae),{key:g.value,ref_key:"kb",ref:S,"page-schema":e.unref(d)},null,8,["page-schema"])),e.createVNode(e.unref(r),{modelValue:i.value,"onUpdate:modelValue":k[0]||(k[0]=P=>i.value=P),title:"表单数据",class:"w-860px",width:"860px",onClose:l,onOk:l},{default:e.withCtx(()=>[e.createElementVNode("div",Ye,[e.createVNode(e.unref(o),{ref_key:"monacoEditorRef",ref:n,autoToggleTheme:"",readOnly:"",class:"h-full editor","model-value":c.value},null,8,["model-value"])])]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"]))}}),je={key:0,class:"epic-loading-box"},et={class:"epic-designer-main"},tt={class:"epic-header-container"},nt={class:"epic-loading-box"},ot=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:a,emit:o}){const r=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-1afOcXnV.cjs"))),n=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BJlPL6eL.cjs"))),s=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DbioQCL7.cjs"))),i=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C6ceZM1C.cjs"))),c=D.loadAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Cap7FkuS.cjs"))),d=Q(),S=oe(),g=t;let l={schemas:[{type:"form",id:"root",label:"页面",children:[],componentProps:{name:"表单",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(g.defaultSchema){l=g.defaultSchema;return}g.source&&D.pluginManager.setSourceData(g.source),g.formMode&&(l.schemas=D.pluginManager.formSchemas)}),d.setDesignMode(),d.setDefaultComponentIds(l.schemas);const y=o,f=e.ref(null),p=e.reactive({checkedNode:null,hoverNode:null,disableHover:!1,matched:[]}),u=e.reactive({schemas:[],script:l.script}),{disabledZoom:k}=q();e.watchEffect(()=>{k.value=g.disabledZoom}),e.watchEffect(()=>{const b=u.script;b&&b!==""&&d.setMethods(b)}),e.provide("pageSchema",u),e.provide("revoke",S),e.provide("pageManager",d),e.provide("designerProps",e.computed(()=>g)),e.provide("designer",{setCheckedNode:h,setHoverNode:w,setDisableHover:A,handleToggleDeviceMode:W,reset:N,state:p}),D.EventBus.on("saveSourceData",b=>{y("saveSourceData",b)}),D.EventBus.on("deleteSourceData",b=>{y("deleteSourceData",b)}),D.EventBus.on("updateSourceData",b=>{y("updateSourceData",b)});function P(){u.schemas=_(l.schemas),h(u.schemas[0]),S.push(u.schemas,"初始化撤销功能")}async function h(b=u.schemas[0]){p.checkedNode=b,p.matched=ee(u.schemas,b.id)}async function w(b=null){var T;if(!b||p.disableHover)return p.hoverNode=null,!1;if((b==null?void 0:b.id)===((T=p.hoverNode)==null?void 0:T.id))return!1;p.hoverNode=b}function v(){e.nextTick(()=>{y("ready",{pageManager:d})})}async function A(b=!1){p.disableHover=b}function V(b){B(u,_(b))}function M(){return e.toRaw(u)}function N(){Z(u.schemas,l.schemas)&&u.script===l.script||(B(u.schemas,l.schemas),u.script=l.script,h(u.schemas[0]),S.push(u.schemas,"重置操作"),y("reset",u))}function L(){y("save",e.toRaw(u))}function W(b){y("toggleDeviceMode",b)}function z(){f.value.handleOpen()}return P(),a({revoke:S,setData:V,getData:M,reset:N,preview:z}),(b,T)=>e.unref(D.pluginManager).initialized.value?(e.openBlock(),e.createBlock(e.Suspense,{key:1,onResolve:v},{default:e.withCtx(()=>[e.createElementVNode("div",et,[e.createElementVNode("div",tt,[e.renderSlot(b.$slots,"header",{},()=>[g.hiddenHeader?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(r),{key:0,onPreview:z,onSave:L},{header:e.withCtx(()=>[e.renderSlot(b.$slots,"header-prefix")]),prefix:e.withCtx(()=>[e.renderSlot(b.$slots,"header-prefix")]),title:e.withCtx(()=>[e.renderSlot(b.$slots,"header-title")]),"right-prefix":e.withCtx(()=>[e.renderSlot(b.$slots,"header-right-prefix")]),"right-action":e.withCtx(()=>[e.renderSlot(b.$slots,"header-right-action")]),"right-suffix":e.withCtx(()=>[e.renderSlot(b.$slots,"header-right-suffix")]),_:3}))])]),e.createElementVNode("div",{class:e.normalizeClass(["epic-split-view-container",{"hidden-header":b.hiddenHeader}])},[e.createVNode(e.unref(n)),e.createVNode(e.unref(s)),e.createVNode(e.unref(i))],2),e.createVNode(Xe,{ref_key:"previewRef",ref:f},null,512)])]),fallback:e.withCtx(()=>[e.createElementVNode("div",nt,[e.createVNode(e.unref(c))])]),_:3})):(e.openBlock(),e.createElementBlock("div",je))}}),rt={component:async()=>await Promise.resolve().then(()=>require("./index-CpxsakMD.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"},at={component:async()=>await Promise.resolve().then(()=>require("./index-Ch9jeYmj.cjs")),defaultSchema:{label:"页面",type:"page",componentProps:{},children:[]},config:{attribute:[{label:"页面名称",type:"input",componentProps:{placeholder:"请输入"},field:"componentProps.name"}]}};function st(t){t.component("EInputSize",async()=>await Promise.resolve().then(()=>require("./index-DpzLP1Zp.cjs"))),t.component("EColEditor",async()=>await Promise.resolve().then(()=>require("./index-C5H0qK7d.cjs"))),t.component("EActionEditor",async()=>await Promise.resolve().then(()=>require("./index-D0T4HwOl.cjs"))),t.component("ERuleEditor",async()=>await Promise.resolve().then(()=>require("./index-Bb8XSoYT.cjs"))),t.component("EOptionsEditor",async()=>await Promise.resolve().then(()=>require("./index-jV4vV6jn.cjs"))),t.component("ENode",async()=>await Promise.resolve().then(()=>require("./index-BhIZKk9i.cjs"))),t.component("EDataSource",async()=>await Promise.resolve().then(()=>require("./index-B03W7FZR.cjs"))),t.registerActivitybar({id:"component_view",title:"组件",icon:"icon--epic--extension-outline",component:async()=>await Promise.resolve().then(()=>require("./index-ZbUi21VA.cjs"))}),t.registerActivitybar({id:"outline_view",title:"大纲",icon:"icon--epic--account-tree-outline-rounded",component:async()=>await Promise.resolve().then(()=>require("./outline-CJSEUbgc.cjs"))}),t.registerRightSidebar({id:"attribute_view",title:"属性",component:async()=>await Promise.resolve().then(()=>require("./attributeView-CkDUbzuR.cjs"))}),t.registerRightSidebar({id:"style_view",title:"样式",component:async()=>await Promise.resolve().then(()=>require("./styleView-sGpDpZDg.cjs"))}),[rt,at].forEach(o=>{t.registerComponent(o)})}st(D.pluginManager);exports._sfc_main=re;exports._sfc_main$1=ae;exports._sfc_main$2=ot;exports.capitalizeFirstLetter=j;exports.convertKFormData=be;exports.debounce=Ce;exports.deepClone=_;exports.deepCompareAndModify=B;exports.deepEqual=Z;exports.findSchemaById=we;exports.findSchemaInfoById=Se;exports.findSchemas=R;exports.generateNewSchema=he;exports.getDarkState=ce;exports.getFormFields=ye;exports.getFormSchemas=te;exports.getMatchedById=ee;exports.getUUID=U;exports.getValueByPath=ve;exports.initStore=ue;exports.mapSchemas=ne;exports.recursionConvertedNode=O;exports.setValueByPath=ge;exports.useDark=ie;exports.useElementDrag=Ke;exports.useElementSize=ze;exports.useElementZoom=Ze;exports.useKeyPress=de;exports.usePageManager=Q;exports.useResizeObserver=le;exports.useRevoke=oe;exports.useStore=q;exports.useTheme=We;exports.useTimedQuery=Qe;exports.useVModel=Je;exports.watchOnce=Re;