epic-designer-gold 0.0.40 → 0.0.41

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 (26) hide show
  1. package/dist/{attributeView-BjvAO4_R.cjs → attributeView-BqbSwDZ-.cjs} +1 -1
  2. package/dist/{attributeView-PbDEjn8T.js → attributeView-DPFdUi2O.js} +1 -1
  3. package/dist/{index-CzOycR7-.cjs → index-98NOkcrB.cjs} +1 -1
  4. package/dist/{index-DxkPriDk.js → index-B0pq3LvX.js} +1 -1
  5. package/dist/{index-l4brKgI9.cjs → index-BMLwTmDA.cjs} +1 -1
  6. package/dist/{index-5datIIzJ.js → index-BdghL1e1.js} +1 -1
  7. package/dist/{index-C3hWImRT.cjs → index-Bjg8-hj_.cjs} +1 -1
  8. package/dist/{index-CE7JKdc3.js → index-Bm_2TXSs.js} +1 -1
  9. package/dist/{index-BZQLip5V.js → index-BnYEEWhA.js} +156 -157
  10. package/dist/{index-D3RJLUGU.cjs → index-CDp439PR.cjs} +2 -2
  11. package/dist/{index-DHHX2mwy.cjs → index-CRSk-fAu.cjs} +1 -1
  12. package/dist/{index-C95DVYrN.js → index-CbiXuuBq.js} +1 -1
  13. package/dist/{index-l1DO3QH_.js → index-Cd9n7QSg.js} +1 -1
  14. package/dist/{index-Da8OPaOM.js → index-D9mE7-Ar.js} +1 -1
  15. package/dist/{index-DQjDcBV5.cjs → index-DUwQsRO_.cjs} +1 -1
  16. package/dist/{index-C2ioP4Qy.cjs → index-DeY6yw0s.cjs} +1 -1
  17. package/dist/index-DqXlNyYv.js +4 -0
  18. package/dist/{index-BUBtVoa0.cjs → index-FyzG-Fup.cjs} +1 -1
  19. package/dist/{index-Da3mrdHZ.cjs → index-RaG5yFdp.cjs} +1 -1
  20. package/dist/{index-laQFS5Nd.js → index-fHt4-rMq.js} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/{styleView-LX_E7EFf.js → styleView-BC3ElYAX.js} +1 -1
  24. package/dist/{styleView-oaDQbGne.cjs → styleView-DT4vsrXY.cjs} +1 -1
  25. package/package.json +1 -1
  26. package/dist/index-Cpm-oLdy.js +0 -4
@@ -1,4 +1,4 @@
1
- import { ref as P, reactive as j, defineComponent as ee, openBlock as k, createBlock as K, unref as R, mergeProps as pe, withCtx as $, renderSlot as T, getCurrentInstance as ae, inject as Q, watch as N, useAttrs as Pe, provide as L, shallowRef as Oe, computed as J, watchEffect as le, onUnmounted as Se, resolveComponent as Ve, resolveDynamicComponent as Fe, createTextVNode as Me, toDisplayString as Re, createVNode as H, createCommentVNode as De, useSlots as $e, createElementBlock as me, Suspense as Ae, createElementVNode as Z, Fragment as Ne, renderList as Be, nextTick as ne, effectScope as ke, isRef as Ue, getCurrentScope as Te, onScopeDispose as Le, onMounted as he, normalizeClass as ze, toRaw as ye } from "vue";
1
+ import { ref as _, reactive as j, defineComponent as ee, openBlock as k, createBlock as K, unref as R, mergeProps as pe, withCtx as $, renderSlot as T, getCurrentInstance as ae, inject as Q, watch as N, useAttrs as Pe, provide as L, shallowRef as Oe, computed as J, watchEffect as le, onUnmounted as Se, resolveComponent as Ve, resolveDynamicComponent as Fe, createVNode as H, createCommentVNode as De, useSlots as Me, createElementBlock as me, Suspense as Ae, createElementVNode as Z, Fragment as Re, renderList as $e, nextTick as ne, effectScope as Ne, isRef as Be, getCurrentScope as ke, onScopeDispose as Ue, onMounted as he, normalizeClass as Te, toRaw as ye } from "vue";
2
2
  import { p as B, E as re, a as we, l as X } from "./axios-ITY6Uw7A.js";
3
3
  function ie(e = 10) {
4
4
  const r = "abcdefghijklmnopqrstuvwxyz0123456789";
@@ -9,7 +9,7 @@ function ie(e = 10) {
9
9
  }
10
10
  return o;
11
11
  }
12
- function Je(e) {
12
+ function Le(e) {
13
13
  return e.charAt(0).toUpperCase() + e.slice(1);
14
14
  }
15
15
  function z(e, r = /* @__PURE__ */ new WeakMap()) {
@@ -26,8 +26,8 @@ function z(e, r = /* @__PURE__ */ new WeakMap()) {
26
26
  o[t] = z(e[t], r);
27
27
  }), o;
28
28
  }
29
- function Mt(e) {
30
- const [r] = Ke([z(e)], (o) => {
29
+ function Vt(e) {
30
+ const [r] = We([z(e)], (o) => {
31
31
  var n, s;
32
32
  const t = {
33
33
  ...o,
@@ -63,7 +63,7 @@ function Ee(e, r, o = [], t = /* @__PURE__ */ new WeakMap()) {
63
63
  };
64
64
  return JSON.stringify(n(e)) === JSON.stringify(n(r));
65
65
  }
66
- function We(e, r) {
66
+ function ze(e, r) {
67
67
  const o = [];
68
68
  let t = !1;
69
69
  function n(s) {
@@ -78,7 +78,7 @@ function We(e, r) {
78
78
  }
79
79
  return e.forEach(n), t || console.error(`没有查询到id为${r}的节点`), o;
80
80
  }
81
- function Rt(e, r, o) {
81
+ function Ft(e, r, o) {
82
82
  const t = r.split(".");
83
83
  let n = e;
84
84
  for (let s = 0; s < t.length; s++) {
@@ -88,7 +88,7 @@ function Rt(e, r, o) {
88
88
  }
89
89
  return n === void 0 ? o : n;
90
90
  }
91
- function $t(e, r, o) {
91
+ function Mt(e, r, o) {
92
92
  const t = r.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
93
93
  let n = e;
94
94
  for (let s = 0; s < t.length - 1; s++) {
@@ -97,10 +97,10 @@ function $t(e, r, o) {
97
97
  }
98
98
  return n[t[t.length - 1]] = o, e;
99
99
  }
100
- function Nt(e, r = "default") {
101
- return He(e, r).map((t) => t.field);
100
+ function Rt(e, r = "default") {
101
+ return Je(e, r).map((t) => t.field);
102
102
  }
103
- function He(e, r = "default") {
103
+ function Je(e, r = "default") {
104
104
  const o = se(
105
105
  e,
106
106
  (n) => {
@@ -128,7 +128,7 @@ function se(e, r, o = !1, t) {
128
128
  }
129
129
  return o ? !1 : n;
130
130
  }
131
- function Ke(e, r, o) {
131
+ function We(e, r, o) {
132
132
  const t = [...e];
133
133
  for (; t.length; ) {
134
134
  const n = t.pop();
@@ -139,7 +139,7 @@ function Ke(e, r, o) {
139
139
  }
140
140
  return e;
141
141
  }
142
- function Bt(e, r) {
142
+ function $t(e, r) {
143
143
  const o = se(
144
144
  e,
145
145
  (t) => t.id === r,
@@ -149,7 +149,7 @@ function Bt(e, r) {
149
149
  throw new Error(`没有查询到id为${r}的节点`);
150
150
  return o;
151
151
  }
152
- function kt(e, r) {
152
+ function Nt(e, r) {
153
153
  const o = [{ type: "", children: e }];
154
154
  let t = 0, n = null;
155
155
  if (se(
@@ -179,7 +179,7 @@ function kt(e, r) {
179
179
  index: t
180
180
  };
181
181
  }
182
- function Ut(e) {
182
+ function Bt(e) {
183
183
  const r = {
184
184
  schemas: [
185
185
  {
@@ -258,7 +258,7 @@ function oe(e, r) {
258
258
  ].includes(t) && (l.input = !0, ((I = (f = o.rules) == null ? void 0 : f[0]) == null ? void 0 : I.required) === !1 && o.rules.shift(), ((w = o.rules) == null ? void 0 : w.length) > 0 && (l.rules = o.rules)), o.list && (l.children = oe(o.list, o)), o.columns && (l.children = oe(o.columns, o)), o.trs && (l.children = oe(o.trs, o)), o.tds && (l.children = oe(o.tds, o)), l;
259
259
  });
260
260
  }
261
- function Tt(e, r) {
261
+ function kt(e, r) {
262
262
  let o = null;
263
263
  return (...t) => {
264
264
  o && clearTimeout(o), o = setTimeout(() => {
@@ -267,7 +267,7 @@ function Tt(e, r) {
267
267
  };
268
268
  }
269
269
  function xe() {
270
- const e = P({}), r = P({}), o = P(!1), t = P([]), n = j({});
270
+ const e = _({}), r = _({}), o = _(!1), t = _([]), n = j({});
271
271
  function s(h) {
272
272
  return e.value[h];
273
273
  }
@@ -389,8 +389,8 @@ function xe() {
389
389
  setDefaultComponentIds: d
390
390
  };
391
391
  }
392
- function qe() {
393
- const e = P([]), r = P([]), o = P(null);
392
+ function He() {
393
+ const e = _([]), r = _([]), o = _(null);
394
394
  let t = 0;
395
395
  function n(f, I = "插入组件") {
396
396
  const w = Date.now();
@@ -424,7 +424,7 @@ function qe() {
424
424
  reset: u
425
425
  };
426
426
  }
427
- const Ze = /* @__PURE__ */ ee({
427
+ const Ke = /* @__PURE__ */ ee({
428
428
  __name: "dynamicFormItem",
429
429
  props: {
430
430
  hasFormItem: { type: Boolean },
@@ -432,7 +432,7 @@ const Ze = /* @__PURE__ */ ee({
432
432
  },
433
433
  emits: ["updateFormItemRef"],
434
434
  setup(e, { emit: r }) {
435
- const o = B.getComponent("form-item"), t = e, n = r, s = P(), l = () => {
435
+ const o = B.getComponent("form-item"), t = e, n = r, s = _(), l = () => {
436
436
  n("updateFormItemRef", s.value);
437
437
  };
438
438
  return (u, f) => t.hasFormItem ? (k(), K(R(o), pe({
@@ -447,7 +447,7 @@ const Ze = /* @__PURE__ */ ee({
447
447
  _: 3
448
448
  }, 16, ["onVnodeMounted"])) : T(u.$slots, "default", { key: 1 });
449
449
  }
450
- }), Ge = /* @__PURE__ */ ee({
450
+ }), qe = /* @__PURE__ */ ee({
451
451
  name: "ENode",
452
452
  __name: "node",
453
453
  props: {
@@ -462,7 +462,7 @@ const Ze = /* @__PURE__ */ ee({
462
462
  },
463
463
  emits: ["update:modelValue", "change", "update:dynamicId"],
464
464
  setup(e, { emit: r }) {
465
- const { proxy: o } = ae(), t = e, n = P(null);
465
+ const { proxy: o } = ae(), t = e, n = _(null);
466
466
  let s = Q("formData", j({}));
467
467
  const l = Q("slots", {}), u = Q("pageManager", {}), f = Q("disabled", { value: !1 });
468
468
  console.log("%c [ disabled ]-101", "font-size:13px; background:pink; color:#bf2c9f;", f.value);
@@ -479,7 +479,7 @@ const Ze = /* @__PURE__ */ ee({
479
479
  id: m.componentProps.dynamicId
480
480
  }
481
481
  })).data.data;
482
- let _ = await we({
482
+ let P = await we({
483
483
  url: y.url,
484
484
  method: y.method,
485
485
  data: JSON.parse(y.body),
@@ -487,10 +487,10 @@ const Ze = /* @__PURE__ */ ee({
487
487
  headers: JSON.parse(y.headers)
488
488
  });
489
489
  if (y && (y != null && y.dataPath)) {
490
- const be = y.dataPath.split(".").reduce((Ce, _e) => Ce[_e], _.data);
490
+ const be = y.dataPath.split(".").reduce((Ce, _e) => Ce[_e], P.data);
491
491
  m.componentProps.options = p(be, y.dataKey, y.dataValue);
492
492
  } else
493
- m.componentProps.options = p(_.data, y.dataKey, y.dataValue);
493
+ m.componentProps.options = p(P.data, y.dataKey, y.dataValue);
494
494
  return m;
495
495
  }
496
496
  return m;
@@ -518,7 +518,7 @@ const Ze = /* @__PURE__ */ ee({
518
518
  u.isDesignMode.value && typeof a.field == "string" && (a.field += "-design-mode");
519
519
  }
520
520
  (t.resetFormData || w) && (s = {});
521
- const d = r, O = P(), M = P(), h = (m) => {
521
+ const d = r, O = _(), M = _(), h = (m) => {
522
522
  M.value = m;
523
523
  }, D = Pe();
524
524
  Object.keys(D).length && L("nodeAttrs", D);
@@ -527,9 +527,9 @@ const Ze = /* @__PURE__ */ ee({
527
527
  return (m = a.componentProps) != null && m.hidden ? !1 : typeof a.show == "boolean" ? a.show : ((b = a.show) == null ? void 0 : b.call(a, { values: s })) ?? !0;
528
528
  }), i = J(() => {
529
529
  var y;
530
- const m = C.value && ((y = a.rules) == null ? void 0 : y.map((_) => ({
531
- ..._,
532
- validator: _.validator && u.funcs.value[_.validator]
530
+ const m = C.value && ((y = a.rules) == null ? void 0 : y.map((P) => ({
531
+ ...P,
532
+ validator: P.validator && u.funcs.value[P.validator]
533
533
  // 自定义校验函数
534
534
  })));
535
535
  let b = a.field;
@@ -544,8 +544,8 @@ const Ze = /* @__PURE__ */ ee({
544
544
  }), F = J(() => {
545
545
  var V, y;
546
546
  const m = ((V = A.value) == null ? void 0 : V.bindModel) ?? "modelValue", b = {};
547
- return a.on && Object.keys(a.on).forEach((_) => {
548
- b[`on${Je(_)}`] = (...ge) => u.doActions(a.on[_], ...ge);
547
+ return a.on && Object.keys(a.on).forEach((P) => {
548
+ b[`on${Le(P)}`] = (...ge) => u.doActions(a.on[P], ...ge);
549
549
  }), {
550
550
  ...t,
551
551
  ...a.componentProps,
@@ -580,15 +580,15 @@ const Ze = /* @__PURE__ */ ee({
580
580
  async function W() {
581
581
  var b, V, y;
582
582
  if (a = await E(a), typeof ((b = a.componentProps) == null ? void 0 : b.defaultValue) < "u") {
583
- const _ = u.isDesignMode.value ? (V = a.componentProps) == null ? void 0 : V.defaultValue : s[a.field] ?? ((y = a.componentProps) == null ? void 0 : y.defaultValue);
584
- S(z(_));
583
+ const P = u.isDesignMode.value ? (V = a.componentProps) == null ? void 0 : V.defaultValue : s[a.field] ?? ((y = a.componentProps) == null ? void 0 : y.defaultValue);
584
+ S(z(P));
585
585
  }
586
586
  if (a.type === "slot") {
587
- const _ = a.slotName;
588
- if (!_) return;
587
+ const P = a.slotName;
588
+ if (!P) return;
589
589
  x.value = ee({
590
590
  setup() {
591
- return () => T(l, _, {
591
+ return () => T(l, P, {
592
592
  componentSchema: a,
593
593
  model: s
594
594
  });
@@ -602,8 +602,8 @@ const Ze = /* @__PURE__ */ ee({
602
602
  return;
603
603
  }
604
604
  if (typeof m == "function") {
605
- const _ = await m();
606
- x.value = _.default ?? _;
605
+ const P = await m();
606
+ x.value = P.default ?? P;
607
607
  } else
608
608
  x.value = m;
609
609
  }
@@ -636,7 +636,7 @@ const Ze = /* @__PURE__ */ ee({
636
636
  ), Se(g), (m, b) => {
637
637
  var y;
638
638
  const V = Ve("ENode");
639
- return x.value && C.value ? (k(), K(Ze, {
639
+ return x.value && C.value ? (k(), K(Ke, {
640
640
  key: 0,
641
641
  hasFormItem: R(a).noFormItem !== !0 && ((y = A.value) == null ? void 0 : y.defaultSchema.input),
642
642
  formItemProps: i.value,
@@ -650,15 +650,14 @@ const Ze = /* @__PURE__ */ ee({
650
650
  model: R(s)
651
651
  }, { ...F.value }, {
652
652
  [F.value.bindModel]: n.value,
653
- ["onUpdate:" + F.value.bindModel]: b[0] || (b[0] = (_) => n.value = _),
653
+ ["onUpdate:" + F.value.bindModel]: b[0] || (b[0] = (P) => n.value = P),
654
654
  [`onUpdate:${F.value.bindModel}` || ""]: S,
655
655
  "onUpdate:dynamicId": U
656
656
  }), {
657
- node: $((_) => [
658
- Me(Re(_) + " ", 1),
657
+ node: $((P) => [
659
658
  H(V, pe({
660
659
  id: t.id
661
- }, _, {
660
+ }, P, {
662
661
  sourceDateUrl: t.sourceDateUrl
663
662
  }), null, 16, ["id", "sourceDateUrl"])
664
663
  ]),
@@ -673,8 +672,8 @@ const Ze = /* @__PURE__ */ ee({
673
672
  };
674
673
  }
675
674
  });
676
- function Qe() {
677
- const e = P(!1), r = xe(), o = P({});
675
+ function Ze() {
676
+ const e = _(!1), r = xe(), o = _({});
678
677
  function t() {
679
678
  return new Promise((p) => {
680
679
  if (e.value)
@@ -713,10 +712,10 @@ function Qe() {
713
712
  let F = h((A = d == null ? void 0 : d.schemas[0]) == null ? void 0 : A.children);
714
713
  return Object.keys(i).forEach((c) => {
715
714
  var S, U, q, m, b, V, y;
716
- const g = F.find((_) => _.field === c), W = ["datetimerange", "daterange", "monthrange", "dates"];
717
- (g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((S = g == null ? void 0 : g.componentProps) != null && S.multiple) || (g == null ? void 0 : g.type) === "cascader" && !((q = (U = g == null ? void 0 : g.componentProps) == null ? void 0 : U.props) != null && q.multiple) || (g == null ? void 0 : g.type) === "date" && W.includes((m = g == null ? void 0 : g.componentProps) == null ? void 0 : m.type)) && typeof i[c] == "string" ? i[c] = (b = i[c]) == null ? void 0 : b.split(",") : (g == null ? void 0 : g.type) === "cascader" && ((y = (V = g == null ? void 0 : g.componentProps) == null ? void 0 : V.props) != null && y.multiple) && typeof i[c] == "string" ? (i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((_) => _.split(",")) : i[c] = i[c].split(","), i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((_) => _.split(",")) : i[c] = i[c].split(",")) : ((g == null ? void 0 : g.type) === "upload-image" || (g == null ? void 0 : g.type) === "upload-file") && typeof i[c] == "string" ? i[c] = i[c].split(",").map((_) => ({
718
- url: _,
719
- name: _
715
+ const g = F.find((P) => P.field === c), W = ["datetimerange", "daterange", "monthrange", "dates"];
716
+ (g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((S = g == null ? void 0 : g.componentProps) != null && S.multiple) || (g == null ? void 0 : g.type) === "cascader" && !((q = (U = g == null ? void 0 : g.componentProps) == null ? void 0 : U.props) != null && q.multiple) || (g == null ? void 0 : g.type) === "date" && W.includes((m = g == null ? void 0 : g.componentProps) == null ? void 0 : m.type)) && typeof i[c] == "string" ? i[c] = (b = i[c]) == null ? void 0 : b.split(",") : (g == null ? void 0 : g.type) === "cascader" && ((y = (V = g == null ? void 0 : g.componentProps) == null ? void 0 : V.props) != null && y.multiple) && typeof i[c] == "string" ? (i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((P) => P.split(",")) : i[c] = i[c].split(","), i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((P) => P.split(",")) : i[c] = i[c].split(",")) : ((g == null ? void 0 : g.type) === "upload-image" || (g == null ? void 0 : g.type) === "upload-file") && typeof i[c] == "string" ? i[c] = i[c].split(",").map((P) => ({
717
+ url: P,
718
+ name: P
720
719
  })) : (g == null ? void 0 : g.type) === "number" || (g == null ? void 0 : g.type) === "slider" ? i[c] = Number(i[c]) : (g == null ? void 0 : g.type) === "switch" && (i[c] = i[c].indexOf("true") > -1);
721
720
  }), i;
722
721
  }(p);
@@ -764,10 +763,10 @@ function Qe() {
764
763
  getFormInstance: n
765
764
  };
766
765
  }
767
- const Ye = {
766
+ const Ge = {
768
767
  key: 0,
769
768
  class: "epic-loading-box"
770
- }, Xe = { class: "epic-builder-main" }, je = { class: "epic-loading-box" }, et = /* @__PURE__ */ ee({
769
+ }, Qe = { class: "epic-builder-main" }, Ye = { class: "epic-loading-box" }, Xe = /* @__PURE__ */ ee({
771
770
  __name: "builder",
772
771
  props: {
773
772
  pageSchema: {},
@@ -778,7 +777,7 @@ const Ye = {
778
777
  },
779
778
  emits: ["change", "ready"],
780
779
  setup(e, { expose: r, emit: o }) {
781
- const t = X(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: u, getData: f, setData: I, validate: w, getForms: a, setForms: E, validateAll: p, getFormInstance: v } = Qe(), d = e, O = j({
780
+ const t = X(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: u, getData: f, setData: I, validate: w, getForms: a, setForms: E, validateAll: p, getFormInstance: v } = Ze(), d = e, O = j({
782
781
  schemas: []
783
782
  });
784
783
  N(
@@ -828,7 +827,7 @@ const Ye = {
828
827
  {
829
828
  immediate: !0
830
829
  }
831
- ), L("slots", $e()), L("pageManager", l), L("forms", u), L("pageSchema", O), L(
830
+ ), L("slots", Me()), L("pageManager", l), L("forms", u), L("pageSchema", O), L(
832
831
  "disabled",
833
832
  J(() => d.disabled)
834
833
  );
@@ -855,8 +854,8 @@ const Ye = {
855
854
  onResolve: C
856
855
  }, {
857
856
  default: $(() => [
858
- Z("div", Xe, [
859
- (k(!0), me(Ne, null, Be(O.schemas, (A, c) => (k(), K(R(Ge), {
857
+ Z("div", Qe, [
858
+ (k(!0), me(Re, null, $e(O.schemas, (A, c) => (k(), K(R(qe), {
860
859
  id: d.id,
861
860
  key: c,
862
861
  sourceDateUrl: d.sourceDateUrl,
@@ -865,42 +864,42 @@ const Ye = {
865
864
  ])
866
865
  ]),
867
866
  fallback: $(() => [
868
- Z("div", je, [
867
+ Z("div", Ye, [
869
868
  H(R(t))
870
869
  ])
871
870
  ]),
872
871
  _: 1
873
- })) : (k(), me("div", Ye));
872
+ })) : (k(), me("div", Ge));
874
873
  }
875
874
  });
876
875
  function ve(e) {
877
- return Te() ? (Le(e), !0) : !1;
876
+ return ke() ? (Ue(e), !0) : !1;
878
877
  }
879
- function tt(e) {
878
+ function je(e) {
880
879
  let r = 0, o, t;
881
880
  const n = () => {
882
881
  r -= 1, t && r <= 0 && (t.stop(), o = void 0, t = void 0);
883
882
  };
884
- return (...s) => (r += 1, t || (t = ke(!0), o = t.run(() => e(...s))), ve(n), o);
883
+ return (...s) => (r += 1, t || (t = Ne(!0), o = t.run(() => e(...s))), ve(n), o);
885
884
  }
886
885
  function te(e) {
887
886
  return typeof e == "function" ? e() : R(e);
888
887
  }
889
- const nt = typeof window < "u" && typeof document < "u";
888
+ const et = typeof window < "u" && typeof document < "u";
890
889
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
891
- const ot = (e) => typeof e < "u", rt = Object.prototype.toString, st = (e) => rt.call(e) === "[object Object]", at = () => {
890
+ const tt = (e) => typeof e < "u", nt = Object.prototype.toString, ot = (e) => nt.call(e) === "[object Object]", rt = () => {
892
891
  };
893
- function lt(e) {
892
+ function st(e) {
894
893
  return ae();
895
894
  }
896
- function it(e, r = !0, o) {
897
- lt() ? he(e, o) : r ? e() : ne(e);
895
+ function at(e, r = !0, o) {
896
+ st() ? he(e, o) : r ? e() : ne(e);
898
897
  }
899
- function ct(e = !1, r = {}) {
898
+ function lt(e = !1, r = {}) {
900
899
  const {
901
900
  truthyValue: o = !0,
902
901
  falsyValue: t = !1
903
- } = r, n = Ue(e), s = P(e);
902
+ } = r, n = Be(e), s = _(e);
904
903
  function l(u) {
905
904
  if (arguments.length)
906
905
  return s.value = u, s.value;
@@ -911,20 +910,20 @@ function ct(e = !1, r = {}) {
911
910
  }
912
911
  return n ? l : [s, l];
913
912
  }
914
- function Lt(e, r, o) {
913
+ function Ut(e, r, o) {
915
914
  const t = N(e, (...n) => (ne(() => t()), r(...n)), o);
916
915
  return t;
917
916
  }
918
- const ce = nt ? window : void 0;
917
+ const ce = et ? window : void 0;
919
918
  function Y(e) {
920
919
  var r;
921
920
  const o = te(e);
922
921
  return (r = o == null ? void 0 : o.$el) != null ? r : o;
923
922
  }
924
- function ut(...e) {
923
+ function it(...e) {
925
924
  let r, o, t, n;
926
925
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, r = ce) : [r, o, t, n] = e, !r)
927
- return at;
926
+ return rt;
928
927
  Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
929
928
  const s = [], l = () => {
930
929
  s.forEach((w) => w()), s.length = 0;
@@ -933,7 +932,7 @@ function ut(...e) {
933
932
  ([w, a]) => {
934
933
  if (l(), !w)
935
934
  return;
936
- const E = st(a) ? { ...a } : a;
935
+ const E = ot(a) ? { ...a } : a;
937
936
  s.push(
938
937
  ...o.flatMap((p) => t.map((v) => u(w, p, v, E)))
939
938
  );
@@ -944,7 +943,7 @@ function ut(...e) {
944
943
  };
945
944
  return ve(I), I;
946
945
  }
947
- function dt(e) {
946
+ function ct(e) {
948
947
  return typeof e == "function" ? e : typeof e == "string" ? (r) => r.key === e : Array.isArray(e) ? (r) => e.includes(r.key) : () => !0;
949
948
  }
950
949
  function Ie(...e) {
@@ -955,8 +954,8 @@ function Ie(...e) {
955
954
  eventName: s = "keydown",
956
955
  passive: l = !1,
957
956
  dedupe: u = !1
958
- } = t, f = dt(r);
959
- return ut(n, s, (w) => {
957
+ } = t, f = ct(r);
958
+ return it(n, s, (w) => {
960
959
  w.repeat && te(u) || f(w) && o(w);
961
960
  }, l);
962
961
  }
@@ -966,23 +965,23 @@ function de(e, r, o = {}) {
966
965
  function fe(e, r, o = {}) {
967
966
  return Ie(e, r, { ...o, eventName: "keyup" });
968
967
  }
969
- function ft() {
970
- const e = P(!1), r = ae();
968
+ function ut() {
969
+ const e = _(!1), r = ae();
971
970
  return r && he(() => {
972
971
  e.value = !0;
973
972
  }, r), e;
974
973
  }
975
- function pt(e) {
976
- const r = ft();
974
+ function dt(e) {
975
+ const r = ut();
977
976
  return J(() => (r.value, !!e()));
978
977
  }
979
- function mt(e) {
978
+ function ft(e) {
980
979
  return JSON.parse(JSON.stringify(e));
981
980
  }
982
- function ht(e, r, o = {}) {
981
+ function pt(e, r, o = {}) {
983
982
  const { window: t = ce, ...n } = o;
984
983
  let s;
985
- const l = pt(() => t && "ResizeObserver" in t), u = () => {
984
+ const l = dt(() => t && "ResizeObserver" in t), u = () => {
986
985
  s && (s.disconnect(), s = void 0);
987
986
  }, f = J(() => {
988
987
  const a = te(e);
@@ -1005,11 +1004,11 @@ function ht(e, r, o = {}) {
1005
1004
  stop: w
1006
1005
  };
1007
1006
  }
1008
- function zt(e, r = { width: 0, height: 0 }, o = {}) {
1007
+ function Tt(e, r = { width: 0, height: 0 }, o = {}) {
1009
1008
  const { window: t = ce, box: n = "content-box" } = o, s = J(() => {
1010
1009
  var a, E;
1011
1010
  return (E = (a = Y(e)) == null ? void 0 : a.namespaceURI) == null ? void 0 : E.includes("svg");
1012
- }), l = P(r.width), u = P(r.height), { stop: f } = ht(
1011
+ }), l = _(r.width), u = _(r.height), { stop: f } = pt(
1013
1012
  e,
1014
1013
  ([a]) => {
1015
1014
  const E = n === "border-box" ? a.borderBoxSize : n === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
@@ -1027,7 +1026,7 @@ function zt(e, r = { width: 0, height: 0 }, o = {}) {
1027
1026
  },
1028
1027
  o
1029
1028
  );
1030
- it(() => {
1029
+ at(() => {
1031
1030
  const a = Y(e);
1032
1031
  a && (l.value = "offsetWidth" in a ? a.offsetWidth : r.width, u.value = "offsetHeight" in a ? a.offsetHeight : r.height);
1033
1032
  });
@@ -1046,7 +1045,7 @@ function zt(e, r = { width: 0, height: 0 }, o = {}) {
1046
1045
  stop: w
1047
1046
  };
1048
1047
  }
1049
- function Jt(e, r, o, t = {}) {
1048
+ function Lt(e, r, o, t = {}) {
1050
1049
  var n, s, l;
1051
1050
  const {
1052
1051
  clone: u = !1,
@@ -1058,11 +1057,11 @@ function Jt(e, r, o, t = {}) {
1058
1057
  } = t, p = ae(), v = o || (p == null ? void 0 : p.emit) || ((n = p == null ? void 0 : p.$emit) == null ? void 0 : n.bind(p)) || ((l = (s = p == null ? void 0 : p.proxy) == null ? void 0 : s.$emit) == null ? void 0 : l.bind(p == null ? void 0 : p.proxy));
1059
1058
  let d = I;
1060
1059
  r || (r = "modelValue"), d = d || `update:${r.toString()}`;
1061
- const O = (D) => u ? typeof u == "function" ? u(D) : mt(D) : D, M = () => ot(e[r]) ? O(e[r]) : a, h = (D) => {
1060
+ const O = (D) => u ? typeof u == "function" ? u(D) : ft(D) : D, M = () => tt(e[r]) ? O(e[r]) : a, h = (D) => {
1062
1061
  E ? E(D) && v(d, D) : v(d, D);
1063
1062
  };
1064
1063
  if (f) {
1065
- const D = M(), x = P(D);
1064
+ const D = M(), x = _(D);
1066
1065
  let C = !1;
1067
1066
  return N(
1068
1067
  () => e[r],
@@ -1086,17 +1085,17 @@ function Jt(e, r, o, t = {}) {
1086
1085
  }
1087
1086
  });
1088
1087
  }
1089
- function Wt() {
1090
- const { isDark: e } = ue(), r = ct(e);
1088
+ function zt() {
1089
+ const { isDark: e } = ue(), r = lt(e);
1091
1090
  return {
1092
1091
  isDark: e,
1093
1092
  toggleDark: r
1094
1093
  };
1095
1094
  }
1096
- function vt() {
1097
- const e = P(!1);
1095
+ function mt() {
1096
+ const e = _(!1);
1098
1097
  return he(() => {
1099
- gt(e), yt(e);
1098
+ ht(e), vt(e);
1100
1099
  }), N(
1101
1100
  () => e.value,
1102
1101
  () => {
@@ -1106,11 +1105,11 @@ function vt() {
1106
1105
  isDark: e
1107
1106
  };
1108
1107
  }
1109
- function gt(e) {
1108
+ function ht(e) {
1110
1109
  var r = document.documentElement;
1111
1110
  r && (r.classList.contains("dark") ? e.value = !0 : e.value = !1);
1112
1111
  }
1113
- function yt(e) {
1112
+ function vt(e) {
1114
1113
  var r = document.querySelector("html"), o = new MutationObserver(function(t) {
1115
1114
  for (var n of t)
1116
1115
  if (n.type === "attributes" && n.attributeName === "class") {
@@ -1125,8 +1124,8 @@ function yt(e) {
1125
1124
  o.disconnect();
1126
1125
  });
1127
1126
  }
1128
- function wt() {
1129
- const e = P(1), r = P(!1), { isDark: o } = vt(), { pressSpace: t, pressShift: n, pressCtrl: s } = St();
1127
+ function gt() {
1128
+ const e = _(1), r = _(!1), { isDark: o } = mt(), { pressSpace: t, pressShift: n, pressCtrl: s } = yt();
1130
1129
  return {
1131
1130
  canvasScale: e,
1132
1131
  pressSpace: t,
@@ -1136,9 +1135,9 @@ function wt() {
1136
1135
  isDark: o
1137
1136
  };
1138
1137
  }
1139
- const ue = tt(wt);
1140
- function St() {
1141
- const e = P(!1), r = P(!1), o = P(!1);
1138
+ const ue = je(gt);
1139
+ function yt() {
1140
+ const e = _(!1), r = _(!1), o = _(!1);
1142
1141
  return de(" ", () => {
1143
1142
  e.value = !0;
1144
1143
  }), fe(" ", () => {
@@ -1153,7 +1152,7 @@ function St() {
1153
1152
  o.value = !1;
1154
1153
  }), { pressSpace: e, pressShift: r, pressCtrl: o };
1155
1154
  }
1156
- function Ht(e) {
1155
+ function Jt(e) {
1157
1156
  const { pressSpace: r } = ue(), o = new Image(1, 1);
1158
1157
  o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1159
1158
  let t = 0, n = 0;
@@ -1172,7 +1171,7 @@ function Ht(e) {
1172
1171
  }
1173
1172
  return { handleElementDragStart: s, handleElementDrag: l, handleElementDragEnd: u };
1174
1173
  }
1175
- function Kt(e) {
1174
+ function Wt(e) {
1176
1175
  const { pressCtrl: r, canvasScale: o, disabledZoom: t } = ue();
1177
1176
  function n(s) {
1178
1177
  if (!r.value || t.value)
@@ -1188,7 +1187,7 @@ function Kt(e) {
1188
1187
  }
1189
1188
  ), { handleZoom: n, canvasScale: o };
1190
1189
  }
1191
- function qt(e, r = 16.66) {
1190
+ function Ht(e, r = 16.66) {
1192
1191
  let o;
1193
1192
  function t() {
1194
1193
  n(), o = window.setInterval(e, r);
@@ -1201,10 +1200,10 @@ function qt(e, r = 16.66) {
1201
1200
  stopTimedQuery: n
1202
1201
  };
1203
1202
  }
1204
- const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, Et = /* @__PURE__ */ ee({
1203
+ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, Dt = /* @__PURE__ */ ee({
1205
1204
  __name: "index",
1206
1205
  setup(e, { expose: r }) {
1207
- const o = B.getComponent("monacoEditor"), t = B.getComponent("modal"), n = P(null), s = P(!1), l = P(!1), u = P({}), f = Q("pageSchema"), I = P(null), w = P("");
1206
+ const o = B.getComponent("monacoEditor"), t = B.getComponent("modal"), n = _(null), s = _(!1), l = _(!1), u = _({}), f = Q("pageSchema"), I = _(null), w = _("");
1208
1207
  function a() {
1209
1208
  l.value = !1;
1210
1209
  }
@@ -1242,8 +1241,8 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
1242
1241
  okText: "表单数据"
1243
1242
  }, {
1244
1243
  default: $(() => [
1245
- Z("div", Dt, [
1246
- (k(), K(R(et), {
1244
+ Z("div", wt, [
1245
+ (k(), K(R(Xe), {
1247
1246
  key: w.value,
1248
1247
  ref_key: "kb",
1249
1248
  ref: I,
@@ -1259,7 +1258,7 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
1259
1258
  onOk: a
1260
1259
  }, {
1261
1260
  default: $(() => [
1262
- Z("div", At, [
1261
+ Z("div", St, [
1263
1262
  H(R(o), {
1264
1263
  ref_key: "monacoEditorRef",
1265
1264
  ref: n,
@@ -1277,10 +1276,10 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
1277
1276
  _: 1
1278
1277
  }, 8, ["modelValue"]));
1279
1278
  }
1280
- }), xt = {
1279
+ }), At = {
1281
1280
  key: 0,
1282
1281
  class: "epic-loading-box"
1283
- }, It = { class: "epic-designer-main" }, bt = { class: "epic-header-container" }, Ct = { class: "epic-loading-box" }, Zt = /* @__PURE__ */ ee({
1282
+ }, Et = { class: "epic-designer-main" }, xt = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ ee({
1284
1283
  __name: "designer",
1285
1284
  props: {
1286
1285
  disabledZoom: { type: Boolean, default: !1 },
@@ -1303,7 +1302,7 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
1303
1302
  "updateSourceData"
1304
1303
  ],
1305
1304
  setup(e, { expose: r, emit: o }) {
1306
- const t = X(() => import("./index-C-XUgjda.js")), n = X(() => import("./index-ASoFJnMl.js")), s = X(() => import("./index-laQFS5Nd.js")), l = X(() => import("./index-ooVzYa5L.js")), u = X(() => import("./index-DgcFxYFp.js")), f = xe(), I = qe(), w = e;
1305
+ const t = X(() => import("./index-C-XUgjda.js")), n = X(() => import("./index-ASoFJnMl.js")), s = X(() => import("./index-fHt4-rMq.js")), l = X(() => import("./index-ooVzYa5L.js")), u = X(() => import("./index-DgcFxYFp.js")), f = xe(), I = He(), w = e;
1307
1306
  let a = {
1308
1307
  schemas: [
1309
1308
  {
@@ -1357,7 +1356,7 @@ defineExpose({
1357
1356
  }
1358
1357
  w.source && B.setSourceData(w.source), w.formMode && (a.schemas = B.formSchemas);
1359
1358
  }), f.setDesignMode(), f.setDefaultComponentIds(a.schemas);
1360
- const E = o, p = P(null), v = j({
1359
+ const E = o, p = _(null), v = j({
1361
1360
  checkedNode: null,
1362
1361
  hoverNode: null,
1363
1362
  disableHover: !1,
@@ -1392,7 +1391,7 @@ defineExpose({
1392
1391
  d.schemas = z(a.schemas), h(d.schemas[0]), I.push(d.schemas, "初始化撤销功能");
1393
1392
  }
1394
1393
  async function h(S = d.schemas[0]) {
1395
- v.checkedNode = S, v.matched = We(d.schemas, S.id);
1394
+ v.checkedNode = S, v.matched = ze(d.schemas, S.id);
1396
1395
  }
1397
1396
  async function D(S = null) {
1398
1397
  var U;
@@ -1439,8 +1438,8 @@ defineExpose({
1439
1438
  onResolve: x
1440
1439
  }, {
1441
1440
  default: $(() => [
1442
- Z("div", It, [
1443
- Z("div", bt, [
1441
+ Z("div", Et, [
1442
+ Z("div", xt, [
1444
1443
  T(S.$slots, "header", {}, () => [
1445
1444
  w.hiddenHeader ? De("", !0) : (k(), K(R(t), {
1446
1445
  key: 0,
@@ -1470,28 +1469,28 @@ defineExpose({
1470
1469
  ])
1471
1470
  ]),
1472
1471
  Z("div", {
1473
- class: ze(["epic-split-view-container", { "hidden-header": S.hiddenHeader }])
1472
+ class: Te(["epic-split-view-container", { "hidden-header": S.hiddenHeader }])
1474
1473
  }, [
1475
1474
  H(R(n)),
1476
1475
  H(R(s)),
1477
1476
  H(R(l))
1478
1477
  ], 2),
1479
- H(Et, {
1478
+ H(Dt, {
1480
1479
  ref_key: "previewRef",
1481
1480
  ref: p
1482
1481
  }, null, 512)
1483
1482
  ])
1484
1483
  ]),
1485
1484
  fallback: $(() => [
1486
- Z("div", Ct, [
1485
+ Z("div", It, [
1487
1486
  H(R(u))
1488
1487
  ])
1489
1488
  ]),
1490
1489
  _: 3
1491
- })) : (k(), me("div", xt));
1490
+ })) : (k(), me("div", At));
1492
1491
  }
1493
- }), _t = {
1494
- component: async () => await import("./index-C95DVYrN.js"),
1492
+ }), bt = {
1493
+ component: async () => await import("./index-CbiXuuBq.js"),
1495
1494
  defaultSchema: {
1496
1495
  label: "代码编辑器",
1497
1496
  type: "monacoEditor",
@@ -1519,7 +1518,7 @@ defineExpose({
1519
1518
  ]
1520
1519
  },
1521
1520
  bindModel: "model-value"
1522
- }, Pt = {
1521
+ }, Ct = {
1523
1522
  component: async () => await import("./index-DiDIFoTk.js"),
1524
1523
  defaultSchema: {
1525
1524
  label: "页面",
@@ -1540,12 +1539,12 @@ defineExpose({
1540
1539
  ]
1541
1540
  }
1542
1541
  };
1543
- function Ot(e) {
1544
- e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-Da8OPaOM.js")), e.component("EActionEditor", async () => await import("./index-l1DO3QH_.js")), e.component("ERuleEditor", async () => await import("./index-DxkPriDk.js")), e.component("EOptionsEditor", async () => await import("./index-CE7JKdc3.js")), e.component("ENode", async () => await import("./index-Cpm-oLdy.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1542
+ function _t(e) {
1543
+ e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-D9mE7-Ar.js")), e.component("EActionEditor", async () => await import("./index-Cd9n7QSg.js")), e.component("ERuleEditor", async () => await import("./index-B0pq3LvX.js")), e.component("EOptionsEditor", async () => await import("./index-Bm_2TXSs.js")), e.component("ENode", async () => await import("./index-DqXlNyYv.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1545
1544
  id: "component_view",
1546
1545
  title: "组件",
1547
1546
  icon: "icon--epic--extension-outline",
1548
- component: async () => await import("./index-5datIIzJ.js")
1547
+ component: async () => await import("./index-BdghL1e1.js")
1549
1548
  }), e.registerActivitybar({
1550
1549
  id: "outline_view",
1551
1550
  title: "大纲",
@@ -1554,51 +1553,51 @@ function Ot(e) {
1554
1553
  }), e.registerRightSidebar({
1555
1554
  id: "attribute_view",
1556
1555
  title: "属性",
1557
- component: async () => await import("./attributeView-PbDEjn8T.js")
1556
+ component: async () => await import("./attributeView-DPFdUi2O.js")
1558
1557
  }), e.registerRightSidebar({
1559
1558
  id: "style_view",
1560
1559
  title: "样式",
1561
- component: async () => await import("./styleView-LX_E7EFf.js")
1562
- }), [_t, Pt].forEach((o) => {
1560
+ component: async () => await import("./styleView-BC3ElYAX.js")
1561
+ }), [bt, Ct].forEach((o) => {
1563
1562
  e.registerComponent(o);
1564
1563
  });
1565
1564
  }
1566
- Ot(B);
1565
+ _t(B);
1567
1566
  export {
1568
- He as A,
1567
+ Je as A,
1569
1568
  se as B,
1570
- Ke as C,
1569
+ We as C,
1571
1570
  oe as D,
1572
- Je as E,
1573
- St as F,
1574
- vt as G,
1575
- gt as H,
1576
- wt as I,
1577
- Ge as _,
1578
- qt as a,
1579
- ht as b,
1580
- Ut as c,
1571
+ Le as E,
1572
+ yt as F,
1573
+ mt as G,
1574
+ ht as H,
1575
+ gt as I,
1576
+ qe as _,
1577
+ Ht as a,
1578
+ pt as b,
1579
+ Bt as c,
1581
1580
  G as d,
1582
- Ht as e,
1583
- kt as f,
1584
- Mt as g,
1585
- zt as h,
1586
- Kt as i,
1587
- Tt as j,
1581
+ Jt as e,
1582
+ Nt as f,
1583
+ Vt as g,
1584
+ Tt as h,
1585
+ Wt as i,
1586
+ kt as j,
1588
1587
  ie as k,
1589
- Bt as l,
1588
+ $t as l,
1590
1589
  z as m,
1591
- Jt as n,
1592
- Rt as o,
1593
- Wt as p,
1594
- et as q,
1595
- Zt as r,
1596
- $t as s,
1590
+ Lt as n,
1591
+ Ft as o,
1592
+ zt as p,
1593
+ Xe as q,
1594
+ Kt as r,
1595
+ Mt as s,
1597
1596
  xe as t,
1598
1597
  ue as u,
1599
- qe as v,
1600
- Lt as w,
1598
+ He as v,
1599
+ Ut as w,
1601
1600
  Ee as x,
1602
- We as y,
1603
- Nt as z
1601
+ ze as y,
1602
+ Rt as z
1604
1603
  };