epic-designer-gold 0.0.45 → 0.0.47

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 (45) hide show
  1. package/dist/{attributeView-DtpDKBv3.js → attributeView-C75ra3CN.js} +1 -1
  2. package/dist/{attributeView-NViG1QIW.cjs → attributeView-CA-6yB0k.cjs} +1 -1
  3. package/dist/{index-Cbdo388f.cjs → index-0RqJEjlH.cjs} +1 -1
  4. package/dist/{index-CEWzIISV.cjs → index-9VqDmCT_.cjs} +1 -1
  5. package/dist/{index-orcBQmhb.cjs → index-B-Uox2mn.cjs} +1 -1
  6. package/dist/{index-B0mkrnRU.cjs → index-BGT2-jZP.cjs} +1 -1
  7. package/dist/{index-QyL4F13K.js → index-BHWJ1KwT.js} +1 -1
  8. package/dist/index-BRZDZuxE.js +4 -0
  9. package/dist/index-BbCEtCJA.cjs +1 -0
  10. package/dist/{index-Cr0fs3qQ.cjs → index-Bdnc9TGH.cjs} +1 -1
  11. package/dist/{index-CeB5DFBE.js → index-BgTlZ9gW.js} +1 -1
  12. package/dist/{index-W-UeQAtk.js → index-Bgvfahgd.js} +532 -512
  13. package/dist/{index-B3SPoHbr.cjs → index-Bmo9n7ut.cjs} +1 -1
  14. package/dist/{index-Deui5A5E.js → index-C32P7cCc.js} +1 -1
  15. package/dist/{index-Xym112zw.js → index-CML-aVic.js} +1 -1
  16. package/dist/{index-DXzERji1.js → index-CvIjQtJw.js} +65 -63
  17. package/dist/index-DEPx91yu.cjs +1 -0
  18. package/dist/{index-D1mKcGjX.js → index-DwDY6KkH.js} +1 -1
  19. package/dist/index-ETJEJKM_.cjs +10 -0
  20. package/dist/{index-0zDuNn0Q.js → index-JhxJizMR.js} +171 -171
  21. package/dist/{index-CwevnKNM.js → index-M3HldxkA.js} +1 -1
  22. package/dist/{index-DgI4MFJ_.cjs → index-baUE53XK.cjs} +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/{sign-CJJd-ctq.js → sign-BRchUdJt.js} +29 -29
  26. package/dist/sign-CnQtsTLr.cjs +1 -0
  27. package/dist/style.css +1 -1
  28. package/dist/{styleView-BD_oQt7b.cjs → styleView-CXdgqy6O.cjs} +1 -1
  29. package/dist/{styleView-B-yx1iR4.js → styleView-cuoX6XX4.js} +1 -1
  30. package/dist/ui/elementPlus/index.cjs +1 -1
  31. package/dist/ui/elementPlus/index.js +3 -3
  32. package/dist/uploadFile-CYDDVa_x.js +76 -0
  33. package/dist/uploadFile-eWBMdZ9d.cjs +1 -0
  34. package/dist/uploadImage-742IA7ei.js +95 -0
  35. package/dist/uploadImage-BXcN2FA_.cjs +1 -0
  36. package/package.json +1 -1
  37. package/dist/index-BYMDoYaj.js +0 -4
  38. package/dist/index-BenbgJD8.cjs +0 -1
  39. package/dist/index-CLpKjuat.cjs +0 -10
  40. package/dist/index-zASDVLOl.cjs +0 -1
  41. package/dist/sign-Bfrdd-6m.cjs +0 -1
  42. package/dist/uploadFile-BU5cBhab.js +0 -67
  43. package/dist/uploadFile-z7Ko58XG.cjs +0 -1
  44. package/dist/uploadImage-tLXX1j6A.js +0 -88
  45. package/dist/uploadImage-xU0He_aO.cjs +0 -1
@@ -1,6 +1,6 @@
1
- import { ref as O, reactive as te, defineComponent as ne, openBlock as T, createBlock as K, unref as R, mergeProps as me, withCtx as $, renderSlot as k, getCurrentInstance as le, inject as Y, watch as B, useAttrs as Ve, provide as L, shallowRef as Fe, computed as J, watchEffect as ie, onUnmounted as Ae, resolveComponent as Me, resolveDynamicComponent as Re, createVNode as H, createCommentVNode as Ee, useSlots as $e, createElementBlock as he, Suspense as be, createElementVNode as Z, Fragment as Be, renderList as Ne, nextTick as re, effectScope as Ue, isRef as Te, getCurrentScope as ke, onScopeDispose as Le, onMounted as ve, normalizeClass as ze, toRaw as we } from "vue";
2
- import { p as U, E as ee, a as Se, b as De, l as j } from "./js.cookie-oHpRFPCO.js";
3
- function ce(e = 10) {
1
+ import { ref as O, reactive as ne, defineComponent as oe, openBlock as T, createBlock as K, unref as R, mergeProps as he, withCtx as $, renderSlot as L, getCurrentInstance as ie, inject as Y, watch as B, useAttrs as Ve, provide as k, shallowRef as Fe, computed as J, watchEffect as ce, onUnmounted as Ae, resolveComponent as Me, resolveDynamicComponent as Re, createVNode as H, createCommentVNode as Ee, useSlots as $e, createElementBlock as ve, Suspense as be, createElementVNode as Z, Fragment as Be, renderList as Ne, nextTick as se, effectScope as Ue, isRef as Te, getCurrentScope as Le, onScopeDispose as ke, onMounted as ge, normalizeClass as ze, toRaw as we } from "vue";
2
+ import { p as U, E as te, a as Se, b as De, l as ee } from "./js.cookie-oHpRFPCO.js";
3
+ function ue(e = 10) {
4
4
  const r = "abcdefghijklmnopqrstuvwxyz0123456789";
5
5
  let o = "";
6
6
  for (let t = 0; t < e; t++) {
@@ -31,7 +31,7 @@ function Mt(e) {
31
31
  var n, s;
32
32
  const t = {
33
33
  ...o,
34
- id: `${o.type}_${ce(8)}`
34
+ id: `${o.type}_${ue(8)}`
35
35
  };
36
36
  return (t.field || t.input) && !((s = (n = U.getComponentConfingByType(t.type)) == null ? void 0 : n.editConstraints) != null && s.fixedField) && (t.field = t.id), t;
37
37
  });
@@ -54,9 +54,9 @@ function xe(e, r, o = [], t = /* @__PURE__ */ new WeakMap()) {
54
54
  if (t.has(s))
55
55
  return "[Circular]";
56
56
  t.set(s, !0);
57
- const l = Object.keys(s).sort(), u = {};
58
- return l.forEach((p) => {
59
- o.includes(p) || (u[p] = n(s[p]));
57
+ const i = Object.keys(s).sort(), u = {};
58
+ return i.forEach((f) => {
59
+ o.includes(f) || (u[f] = n(s[f]));
60
60
  }), t.delete(s), u;
61
61
  } else
62
62
  return s;
@@ -68,11 +68,11 @@ function We(e, r) {
68
68
  let t = !1;
69
69
  function n(s) {
70
70
  if (o.push(s), s.id === r && (t = !0), !t && s.children != null && s.children.length > 0)
71
- for (let l = 0; l < s.children.length && (n(s.children[l]), !t); l++)
71
+ for (let i = 0; i < s.children.length && (n(s.children[i]), !t); i++)
72
72
  ;
73
73
  if (!t && s.slots)
74
- for (let l in s.slots)
75
- for (let u = 0; u < s.slots[l].length && (n(s.slots[l][u]), !t); u++)
74
+ for (let i in s.slots)
75
+ for (let u = 0; u < s.slots[i].length && (n(s.slots[i][u]), !t); u++)
76
76
  ;
77
77
  t || o.pop();
78
78
  }
@@ -92,8 +92,8 @@ function $t(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++) {
95
- const l = t[s];
96
- n[l] == null && (n[l] = isNaN(Number(t[s + 1])) ? {} : []), n = n[l];
95
+ const i = t[s];
96
+ n[i] == null && (n[i] = isNaN(Number(t[s + 1])) ? {} : []), n = n[i];
97
97
  }
98
98
  return n[t[t.length - 1]] = o, e;
99
99
  }
@@ -101,7 +101,7 @@ function Bt(e, r = "default") {
101
101
  return He(e, r).map((t) => t.field);
102
102
  }
103
103
  function He(e, r = "default") {
104
- const o = ae(
104
+ const o = le(
105
105
  e,
106
106
  (n) => {
107
107
  var s;
@@ -109,22 +109,22 @@ function He(e, r = "default") {
109
109
  },
110
110
  !0
111
111
  );
112
- return ae(
112
+ return le(
113
113
  (o == null ? void 0 : o.children) ?? [],
114
114
  (n) => !!n.input,
115
115
  !1,
116
116
  (n) => n.type !== "subform"
117
117
  );
118
118
  }
119
- function ae(e, r, o = !1, t) {
119
+ function le(e, r, o = !1, t) {
120
120
  const n = [], s = [...e];
121
121
  for (; s.length; ) {
122
- const l = s.pop();
123
- if (l != null && l.children && (!t || t(l)) && s.push(...l.children), l != null && l.slots && (!t || t(l)))
124
- for (let u in l.slots)
125
- s.push(...l.slots[u]);
126
- if (r(l) && (n.push(l), o))
127
- return l;
122
+ const i = s.pop();
123
+ if (i != null && i.children && (!t || t(i)) && s.push(...i.children), i != null && i.slots && (!t || t(i)))
124
+ for (let u in i.slots)
125
+ s.push(...i.slots[u]);
126
+ if (r(i) && (n.push(i), o))
127
+ return i;
128
128
  }
129
129
  return o ? !1 : n;
130
130
  }
@@ -140,7 +140,7 @@ function Ke(e, r, o) {
140
140
  return e;
141
141
  }
142
142
  function Nt(e, r) {
143
- const o = ae(
143
+ const o = le(
144
144
  e,
145
145
  (t) => t.id === r,
146
146
  !0
@@ -152,22 +152,22 @@ function Nt(e, r) {
152
152
  function Ut(e, r) {
153
153
  const o = [{ type: "", children: e }];
154
154
  let t = 0, n = null;
155
- if (ae(
155
+ if (le(
156
156
  o,
157
157
  (s) => {
158
158
  if (n = s.children ?? null, !n) {
159
159
  if (s != null && s.slots)
160
- for (let l in s.slots) {
161
- n = s.slots[l];
160
+ for (let i in s.slots) {
161
+ n = s.slots[i];
162
162
  for (let u = 0; u < n.length; u++)
163
163
  if (n[u].id === r)
164
164
  return t = u, !0;
165
165
  }
166
166
  return !1;
167
167
  }
168
- for (let l = 0; l < n.length; l++)
169
- if (n[l].id === r)
170
- return t = l, !0;
168
+ for (let i = 0; i < n.length; i++)
169
+ if (n[i].id === r)
170
+ return t = i, !0;
171
171
  return !1;
172
172
  },
173
173
  !0
@@ -205,7 +205,7 @@ function Tt(e) {
205
205
  size: e.config.size || "middle"
206
206
  },
207
207
  children: [],
208
- id: "form_" + ce()
208
+ id: "form_" + ue()
209
209
  }
210
210
  ],
211
211
  componentProps: {
@@ -217,21 +217,21 @@ function Tt(e) {
217
217
  ],
218
218
  script: e.script || ""
219
219
  };
220
- return r.schemas[0].children[0].children = se(e.list), r;
220
+ return r.schemas[0].children[0].children = ae(e.list), r;
221
221
  }
222
- function se(e, r) {
222
+ function ae(e, r) {
223
223
  return e.map((o) => {
224
- var p, x, y;
224
+ var f, b, y;
225
225
  let t = o.type ?? "";
226
- const n = o.options ?? {}, s = (a, A) => {
227
- t === a && (t = A, n.defaultValue && (n.defaultValue = JSON.parse(n.defaultValue)));
226
+ const n = o.options ?? {}, s = (a, D) => {
227
+ t === a && (t = D, n.defaultValue && (n.defaultValue = JSON.parse(n.defaultValue)));
228
228
  };
229
229
  if (s("uploadImg", "upload-image"), s("uploadFile", "upload-file"), t === "date" && n.range && (n.type = "daterange", delete n.range), (t === "date" || t === "time") && (n.valueFormat = n.format), t === "textarea") {
230
- const { minRows: a, maxRows: A } = n;
231
- n.autoSize = { minRows: a, maxRows: A }, delete n.minRows, delete n.maxRows;
230
+ const { minRows: a, maxRows: D } = n;
231
+ n.autoSize = { minRows: a, maxRows: D }, delete n.minRows, delete n.maxRows;
232
232
  }
233
- t === "number" && !n.precision && delete n.precision, n.width && (n.style = { width: n.width }, delete n.width), t === "grid" && (t = "row"), r && r.type === "grid" && (t = "col", n.span = o.span, o.key = ce());
234
- const l = {
233
+ t === "number" && !n.precision && delete n.precision, n.width && (n.style = { width: n.width }, delete n.width), t === "grid" && (t = "row"), r && r.type === "grid" && (t = "col", n.span = o.span, o.key = ue());
234
+ const i = {
235
235
  label: o.label,
236
236
  type: t,
237
237
  icon: o.icon || "",
@@ -239,7 +239,7 @@ function se(e, r) {
239
239
  componentProps: n,
240
240
  id: o.key
241
241
  };
242
- return (n.noFormItem || !n.showLabel) && (l.noFormItem = !0, delete n.noFormItem, delete n.showLabel), n.clearable && (n.allowClear = !0, delete n.clearable), [
242
+ return (n.noFormItem || !n.showLabel) && (i.noFormItem = !0, delete n.noFormItem, delete n.showLabel), n.clearable && (n.allowClear = !0, delete n.clearable), [
243
243
  "input",
244
244
  "textarea",
245
245
  "number",
@@ -255,10 +255,10 @@ function se(e, r) {
255
255
  "color-picker",
256
256
  "upload-file",
257
257
  "upload-image"
258
- ].includes(t) && (l.input = !0, ((x = (p = o.rules) == null ? void 0 : p[0]) == null ? void 0 : x.required) === !1 && o.rules.shift(), ((y = o.rules) == null ? void 0 : y.length) > 0 && (l.rules = o.rules)), o.list && (l.children = se(o.list, o)), o.columns && (l.children = se(o.columns, o)), o.trs && (l.children = se(o.trs, o)), o.tds && (l.children = se(o.tds, o)), l;
258
+ ].includes(t) && (i.input = !0, ((b = (f = o.rules) == null ? void 0 : f[0]) == null ? void 0 : b.required) === !1 && o.rules.shift(), ((y = o.rules) == null ? void 0 : y.length) > 0 && (i.rules = o.rules)), o.list && (i.children = ae(o.list, o)), o.columns && (i.children = ae(o.columns, o)), o.trs && (i.children = ae(o.trs, o)), o.tds && (i.children = ae(o.tds, o)), i;
259
259
  });
260
260
  }
261
- function kt(e, r) {
261
+ function Lt(e, r) {
262
262
  let o = null;
263
263
  return (...t) => {
264
264
  o && clearTimeout(o), o = setTimeout(() => {
@@ -267,108 +267,108 @@ function kt(e, r) {
267
267
  };
268
268
  }
269
269
  function Ie() {
270
- const e = O({}), r = O({}), o = O(!1), t = O([]), n = te({});
271
- function s(h) {
272
- return e.value[h];
270
+ const e = O({}), r = O({}), o = O(!1), t = O([]), n = ne({});
271
+ function s(m) {
272
+ return e.value[m];
273
273
  }
274
- function l(h, D) {
275
- e.value[h] = D;
274
+ function i(m, S) {
275
+ e.value[m] = S;
276
276
  }
277
- function u(h) {
278
- delete e.value[h];
277
+ function u(m) {
278
+ delete e.value[m];
279
279
  }
280
- function p(h, D = !1) {
281
- const b = Object.entries(U.publicMethods).reduce(
282
- (_, [i, V]) => (_[i] = V.handler, _),
280
+ function f(m, S = !1) {
281
+ const E = Object.entries(U.publicMethods).reduce(
282
+ (_, [c, F]) => (_[c] = F.handler, _),
283
283
  {}
284
284
  );
285
285
  try {
286
- new Function(`const epic = this;${h}`).bind({
287
- ...b,
286
+ new Function(`const epic = this;${m}`).bind({
287
+ ...E,
288
288
  getComponent: s,
289
289
  find: s,
290
- defineExpose: x,
291
- publicMethods: b,
290
+ defineExpose: b,
291
+ publicMethods: E,
292
292
  pluginManager: U
293
293
  })();
294
294
  } catch (_) {
295
- D && console.error("[epic:自定义函数]异常:", _);
295
+ S && console.error("[epic:自定义函数]异常:", _);
296
296
  }
297
297
  }
298
- function x(h) {
299
- h != null && (r.value = h);
298
+ function b(m) {
299
+ m != null && (r.value = m);
300
300
  }
301
- function y(h, ...D) {
302
- if (!h || h.length === 0) {
301
+ function y(m, ...S) {
302
+ if (!m || m.length === 0) {
303
303
  console.warn("未提供任何动作");
304
304
  return;
305
305
  }
306
- h.forEach((b) => {
307
- const _ = b.args ? JSON.parse(b.args) : D;
308
- switch (b.type) {
306
+ m.forEach((E) => {
307
+ const _ = E.args ? JSON.parse(E.args) : S;
308
+ switch (E.type) {
309
309
  case "public":
310
- a(b, _);
310
+ a(E, _);
311
311
  break;
312
312
  case "custom":
313
- A(b, _);
313
+ D(E, _);
314
314
  break;
315
315
  case "component":
316
- m(b, _);
316
+ p(E, _);
317
317
  break;
318
318
  default:
319
- console.warn(`未知的动作类型: ${b.type}`);
319
+ console.warn(`未知的动作类型: ${E.type}`);
320
320
  break;
321
321
  }
322
322
  });
323
323
  }
324
- function a(h, D) {
325
- var b;
324
+ function a(m, S) {
325
+ var E;
326
326
  try {
327
- (b = U.publicMethods[h.methodName]) == null || b.handler(...D);
327
+ (E = U.publicMethods[m.methodName]) == null || E.handler(...S);
328
328
  } catch (_) {
329
- console.error(`[Epic:公共函数(${h.methodName})]执行异常:`, _);
329
+ console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, _);
330
330
  }
331
331
  }
332
- function A(h, D) {
333
- var b, _;
332
+ function D(m, S) {
333
+ var E, _;
334
334
  try {
335
- (_ = (b = r.value)[h.methodName]) == null || _.call(b, ...D);
336
- } catch (i) {
337
- console.error(`[Epic:自定义函数(${h.methodName})]执行异常:`, i);
335
+ (_ = (E = r.value)[m.methodName]) == null || _.call(E, ...S);
336
+ } catch (c) {
337
+ console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, c);
338
338
  }
339
339
  }
340
- function m(h, D) {
341
- const b = h.componentId != null && s(h.componentId);
342
- if (!b) {
343
- console.warn(`[Epic:组件${h.componentId}]未找到`);
340
+ function p(m, S) {
341
+ const E = m.componentId != null && s(m.componentId);
342
+ if (!E) {
343
+ console.warn(`[Epic:组件${m.componentId}]未找到`);
344
344
  return;
345
345
  }
346
346
  try {
347
- b[h.methodName](...D);
347
+ E[m.methodName](...S);
348
348
  } catch (_) {
349
- console.error(`[Epic:组件${h.componentId}函数(${h.methodName})]执行异常:`, _);
349
+ console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, _);
350
350
  }
351
351
  }
352
- function v(h = !0) {
353
- o.value = h;
352
+ function h(m = !0) {
353
+ o.value = m;
354
354
  }
355
- function d(h) {
356
- const D = ae(h, () => !0);
357
- t.value = D.map((b) => b.id);
355
+ function d(m) {
356
+ const S = le(m, () => !0);
357
+ t.value = S.map((E) => E.id);
358
358
  }
359
- function P(h, D = "default") {
360
- if (n[D]) {
361
- const b = n[D];
362
- G(h, b);
359
+ function V(m, S = "default") {
360
+ if (n[S]) {
361
+ const E = n[S];
362
+ G(m, E);
363
363
  }
364
- n[D] = h;
364
+ n[S] = m;
365
365
  }
366
- function M(h, D = "default") {
367
- if (n[D]) {
368
- G(n[D], h, !1);
366
+ function M(m, S = "default") {
367
+ if (n[S]) {
368
+ G(n[S], m, !1);
369
369
  return;
370
370
  }
371
- n[D] = h;
371
+ n[S] = m;
372
372
  }
373
373
  return {
374
374
  componentInstances: e,
@@ -376,40 +376,40 @@ function Ie() {
376
376
  isDesignMode: o,
377
377
  defaultComponentIds: t,
378
378
  forms: n,
379
- addFormData: P,
379
+ addFormData: V,
380
380
  setFormData: M,
381
381
  getComponentInstance: s,
382
382
  // 简化查询函数, 推荐使用
383
383
  find: s,
384
- addComponentInstance: l,
384
+ addComponentInstance: i,
385
385
  removeComponentInstance: u,
386
- setMethods: p,
386
+ setMethods: f,
387
387
  doActions: y,
388
- setDesignMode: v,
388
+ setDesignMode: h,
389
389
  setDefaultComponentIds: d
390
390
  };
391
391
  }
392
392
  function qe() {
393
393
  const e = O([]), r = O([]), o = O(null);
394
394
  let t = 0;
395
- function n(p, x = "插入组件") {
395
+ function n(f, b = "插入组件") {
396
396
  const y = Date.now();
397
397
  t + 150 > y || (t = y, o.value != null && (e.value.push(o.value), r.value.splice(0, r.value.length)), o.value = {
398
- type: x,
399
- componentSchema: JSON.stringify(p)
398
+ type: b,
399
+ componentSchema: JSON.stringify(f)
400
400
  }, e.value.length > 60 && e.value.unshift());
401
401
  }
402
402
  function s() {
403
403
  if (e.value.length === 0)
404
404
  return !1;
405
- const p = e.value.pop();
406
- return o.value != null && r.value.push(o.value), o.value = p, JSON.parse(p.componentSchema);
405
+ const f = e.value.pop();
406
+ return o.value != null && r.value.push(o.value), o.value = f, JSON.parse(f.componentSchema);
407
407
  }
408
- function l() {
408
+ function i() {
409
409
  if (r.value.length === 0)
410
410
  return !1;
411
- const p = r.value.pop();
412
- return o.value != null && e.value.push(o.value), o.value = p, JSON.parse(p.componentSchema);
411
+ const f = r.value.pop();
412
+ return o.value != null && e.value.push(o.value), o.value = f, JSON.parse(f.componentSchema);
413
413
  }
414
414
  function u() {
415
415
  e.value = [], r.value = [], o.value = null;
@@ -420,11 +420,11 @@ function qe() {
420
420
  currentRecord: o,
421
421
  push: n,
422
422
  undo: s,
423
- redo: l,
423
+ redo: i,
424
424
  reset: u
425
425
  };
426
426
  }
427
- const Ze = /* @__PURE__ */ ne({
427
+ const Ze = /* @__PURE__ */ oe({
428
428
  __name: "dynamicFormItem",
429
429
  props: {
430
430
  hasFormItem: { type: Boolean },
@@ -432,22 +432,22 @@ const Ze = /* @__PURE__ */ ne({
432
432
  },
433
433
  emits: ["updateFormItemRef"],
434
434
  setup(e, { emit: r }) {
435
- const o = U.getComponent("form-item"), t = e, n = r, s = O(), l = () => {
435
+ const o = U.getComponent("form-item"), t = e, n = r, s = O(), i = () => {
436
436
  n("updateFormItemRef", s.value);
437
437
  };
438
- return (u, p) => t.hasFormItem ? (T(), K(R(o), me({
438
+ return (u, f) => t.hasFormItem ? (T(), K(R(o), he({
439
439
  key: 0,
440
440
  ref_key: "formItemRef",
441
441
  ref: s,
442
- onVnodeMounted: l
442
+ onVnodeMounted: i
443
443
  }, t.formItemProps), {
444
444
  default: $(() => [
445
- k(u.$slots, "default")
445
+ L(u.$slots, "default")
446
446
  ]),
447
447
  _: 3
448
- }, 16, ["onVnodeMounted"])) : k(u.$slots, "default", { key: 1 });
448
+ }, 16, ["onVnodeMounted"])) : L(u.$slots, "default", { key: 1 });
449
449
  }
450
- }), Ge = /* @__PURE__ */ ne({
450
+ }), Ge = /* @__PURE__ */ oe({
451
451
  name: "ENode",
452
452
  __name: "node",
453
453
  props: {
@@ -462,103 +462,103 @@ const Ze = /* @__PURE__ */ ne({
462
462
  },
463
463
  emits: ["update:modelValue", "change", "update:dynamicId"],
464
464
  setup(e, { emit: r }) {
465
- const { proxy: o } = le(), t = e, n = O(null);
466
- let s = Y("formData", te({}));
467
- const l = Y("slots", {}), u = Y("pageManager", {}), p = Y("disabled", { value: !1 }), x = Y("ruleFieldPrefix", null), y = Y("resetFormData", !1);
468
- let a = te(z(t.componentSchema));
469
- v();
470
- async function A(f) {
471
- if (["cascader", "checkbox", "select", "radio"].includes(f.type) && f.componentProps.dynamicId && t.sourceDateUrl) {
472
- const S = (await Se({
465
+ const { proxy: o } = ie(), t = e, n = O(null);
466
+ let s = Y("formData", ne({}));
467
+ const i = Y("slots", {}), u = Y("pageManager", {}), f = Y("disabled", { value: !1 }), b = Y("ruleFieldPrefix", null), y = Y("resetFormData", !1);
468
+ let a = ne(z(t.componentSchema));
469
+ h();
470
+ async function D(l) {
471
+ if (["cascader", "checkbox", "select", "radio"].includes(l.type) && l.componentProps.dynamicId && t.sourceDateUrl) {
472
+ const g = (await Se({
473
473
  // || "http://192.168.28.205:3000/dev-api/data-source
474
474
  url: t.sourceDateUrl,
475
475
  method: "get",
476
476
  params: {
477
- id: f.componentProps.dynamicId
477
+ id: l.componentProps.dynamicId
478
478
  },
479
479
  headers: {
480
480
  Authorization: "Bearer " + De.get("Admin-Token")
481
481
  }
482
482
  })).data.data;
483
- let F = await Se({
484
- url: S.url,
485
- method: S.method,
486
- data: JSON.parse(S.body),
487
- params: JSON.parse(S.params),
483
+ let P = await Se({
484
+ url: g.url,
485
+ method: g.method,
486
+ data: JSON.parse(g.body),
487
+ params: JSON.parse(g.params),
488
488
  headers: {
489
- ...JSON.parse(S.headers),
489
+ ...JSON.parse(g.headers),
490
490
  Authorization: "Bearer " + De.get("Admin-Token")
491
491
  }
492
492
  });
493
- if (S && (S != null && S.dataPath)) {
494
- const _e = S.dataPath.split(".").reduce((Oe, Pe) => Oe[Pe], F.data);
495
- f.componentProps.options = m(_e, S.dataKey, S.dataValue);
493
+ if (g && (g != null && g.dataPath)) {
494
+ const _e = g.dataPath.split(".").reduce((Oe, Pe) => Oe[Pe], P.data);
495
+ l.componentProps.options = p(_e, g.dataKey, g.dataValue);
496
496
  } else
497
- f.componentProps.options = m(F.data, S.dataKey, S.dataValue);
498
- return f;
497
+ l.componentProps.options = p(P.data, g.dataKey, g.dataValue);
498
+ return l;
499
499
  }
500
- return f;
500
+ return l;
501
501
  }
502
- function m(f, I, C) {
503
- return f && Object.prototype.toString.call(f) === "[object Array]" ? f.map((S) => S.children && S.children.length ? {
504
- label: S[I],
505
- value: S[C] + "",
506
- children: m(S.children, I, C)
502
+ function p(l, I, C) {
503
+ return l && Object.prototype.toString.call(l) === "[object Array]" ? l.map((g) => g.children && g.children.length ? {
504
+ label: g[I],
505
+ value: g[C] + "",
506
+ children: p(g.children, I, C)
507
507
  } : {
508
- label: S[I],
509
- value: S[C] + ""
508
+ label: g[I],
509
+ value: g[C] + ""
510
510
  }) : [];
511
511
  }
512
512
  B(
513
513
  () => t.componentSchema,
514
- (f) => {
515
- xe(a, f, ["children"]) || (G(a, z(f)), v());
514
+ (l) => {
515
+ xe(a, l, ["children"]) || (G(a, z(l)), h());
516
516
  },
517
517
  {
518
518
  deep: !0
519
519
  }
520
520
  );
521
- function v() {
521
+ function h() {
522
522
  u.isDesignMode.value && typeof a.field == "string" && (a.field += "-design-mode");
523
523
  }
524
524
  (t.resetFormData || y) && (s = {});
525
- const d = r, P = O(), M = O(), h = (f) => {
526
- M.value = f;
527
- }, D = Ve();
528
- Object.keys(D).length && L("nodeAttrs", D);
529
- const b = Fe(null), _ = J(() => {
530
- var f, I;
531
- return (f = a.componentProps) != null && f.hidden ? !1 : typeof a.show == "boolean" ? a.show : ((I = a.show) == null ? void 0 : I.call(a, { values: s })) ?? !0;
532
- }), i = J(() => {
533
- var S;
534
- const f = _.value && ((S = a.rules) == null ? void 0 : S.map((F) => ({
535
- ...F,
536
- validator: F.validator && u.funcs.value[F.validator]
525
+ const d = r, V = O(), M = O(), m = (l) => {
526
+ M.value = l;
527
+ }, S = Ve();
528
+ Object.keys(S).length && k("nodeAttrs", S);
529
+ const E = Fe(null), _ = J(() => {
530
+ var l, I;
531
+ return (l = a.componentProps) != null && l.hidden ? !1 : typeof a.show == "boolean" ? a.show : ((I = a.show) == null ? void 0 : I.call(a, { values: s })) ?? !0;
532
+ }), c = J(() => {
533
+ var g;
534
+ const l = _.value && ((g = a.rules) == null ? void 0 : g.map((P) => ({
535
+ ...P,
536
+ validator: P.validator && u.funcs.value[P.validator]
537
537
  // 自定义校验函数
538
538
  })));
539
539
  let I = a.field;
540
- t.ruleField ? I = t.ruleField : x && a.field && (I = z(x), I.push(a.field));
540
+ t.ruleField ? I = t.ruleField : b && a.field && (I = z(b), I.push(a.field));
541
541
  const C = {
542
542
  ...a,
543
- rules: f,
544
- rule: f,
543
+ rules: l,
544
+ rule: l,
545
545
  field: I
546
546
  };
547
547
  return C.children && delete C.children, C;
548
- }), V = J(() => {
549
- var C, S;
550
- const f = ((C = w.value) == null ? void 0 : C.bindModel) ?? "modelValue", I = {};
551
- return a.on && Object.keys(a.on).forEach((F) => {
552
- I[`on${Je(F)}`] = (...ye) => u.doActions(a.on[F], ...ye);
548
+ }), F = J(() => {
549
+ var C, g;
550
+ const l = ((C = w.value) == null ? void 0 : C.bindModel) ?? "modelValue", I = {};
551
+ return a.on && Object.keys(a.on).forEach((P) => {
552
+ I[`on${Je(P)}`] = (...j) => u.doActions(a.on[P], ...j);
553
553
  }), {
554
554
  ...t,
555
555
  ...a.componentProps,
556
- disabled: (p == null ? void 0 : p.value) || ((S = a.componentProps) == null ? void 0 : S.disabled),
557
- bindModel: f,
556
+ disabled: (f == null ? void 0 : f.value) || ((g = a.componentProps) == null ? void 0 : g.disabled),
557
+ bindModel: l,
558
558
  ...I
559
559
  };
560
560
  }), w = J(() => U.getComponentConfingByType(a.type) ?? null);
561
- ie(() => {
561
+ ce(() => {
562
562
  n.value = t.modelValue ?? s[a.field ?? ""];
563
563
  }), B(
564
564
  () => n.value,
@@ -566,33 +566,33 @@ const Ze = /* @__PURE__ */ ne({
566
566
  n.value !== (t.modelValue ?? s[a.field ?? ""]) && N(n.value);
567
567
  }
568
568
  ), B(
569
- () => P.value,
569
+ () => V.value,
570
570
  () => {
571
- c();
571
+ x();
572
572
  },
573
573
  { immediate: !0 }
574
574
  );
575
- function c() {
575
+ function x() {
576
576
  var I;
577
- const f = P.value || o;
578
- a.id && f && (a.input && (f.setValue = N, f.getValue = () => s[a.field] || t.modelValue), f.setAttr = (C, S) => (a.componentProps || (a.componentProps = {}), a.componentProps[C] = S), f.getAttr = (C) => a.componentProps[C], u.addComponentInstance(a.id, f), (I = w.value) != null && I.defaultSchema.input && a.noFormItem !== !0 && M.value && u.addComponentInstance(a.id + "formItem", M.value));
577
+ const l = V.value || o;
578
+ a.id && l && (a.input && (l.setValue = N, l.getValue = () => s[a.field] || t.modelValue), l.setAttr = (C, g) => (a.componentProps || (a.componentProps = {}), a.componentProps[C] = g), l.getAttr = (C) => a.componentProps[C], u.addComponentInstance(a.id, l), (I = w.value) != null && I.defaultSchema.input && a.noFormItem !== !0 && M.value && u.addComponentInstance(a.id + "formItem", M.value));
579
579
  }
580
- function g() {
581
- var f;
582
- a.id && (u.removeComponentInstance(a.id), (f = w.value) != null && f.defaultSchema.input && a.noFormItem !== !0 && u.removeComponentInstance(a.id + "formItem"));
580
+ function v() {
581
+ var l;
582
+ a.id && (u.removeComponentInstance(a.id), (l = w.value) != null && l.defaultSchema.input && a.noFormItem !== !0 && u.removeComponentInstance(a.id + "formItem"));
583
583
  }
584
584
  async function W() {
585
- var I, C, S;
586
- if (a = await A(a), typeof ((I = a.componentProps) == null ? void 0 : I.defaultValue) < "u") {
587
- const F = u.isDesignMode.value ? (C = a.componentProps) == null ? void 0 : C.defaultValue : s[a.field] ?? ((S = a.componentProps) == null ? void 0 : S.defaultValue);
588
- N(z(F));
585
+ var I, C, g;
586
+ if (a = await D(a), typeof ((I = a.componentProps) == null ? void 0 : I.defaultValue) < "u") {
587
+ const P = u.isDesignMode.value ? (C = a.componentProps) == null ? void 0 : C.defaultValue : s[a.field] ?? ((g = a.componentProps) == null ? void 0 : g.defaultValue);
588
+ N(z(P));
589
589
  }
590
590
  if (a.type === "slot") {
591
- const F = a.slotName;
592
- if (!F) return;
593
- b.value = ne({
591
+ const P = a.slotName;
592
+ if (!P) return;
593
+ E.value = oe({
594
594
  setup() {
595
- return () => k(l, F, {
595
+ return () => L(i, P, {
596
596
  componentSchema: a,
597
597
  model: s
598
598
  });
@@ -600,37 +600,37 @@ const Ze = /* @__PURE__ */ ne({
600
600
  });
601
601
  return;
602
602
  }
603
- const f = U.getComponent(a.type);
604
- if (!f) {
603
+ const l = U.getComponent(a.type);
604
+ if (!l) {
605
605
  console.error(`组件${a.type}未注册`);
606
606
  return;
607
607
  }
608
- if (typeof f == "function") {
609
- const F = await f();
610
- b.value = F.default ?? F;
608
+ if (typeof l == "function") {
609
+ const P = await l();
610
+ E.value = P.default ?? P;
611
611
  } else
612
- b.value = f;
612
+ E.value = l;
613
613
  }
614
- function E(f) {
615
- Object.prototype.toString.call(f), Object.prototype.toString.call(f) === "[object Array]" ? f.forEach((I) => {
614
+ function A(l) {
615
+ Object.prototype.toString.call(l), Object.prototype.toString.call(l) === "[object Array]" ? l.forEach((I) => {
616
616
  s[I.value] = I.label;
617
- }) : s[f.value] = f.label, ee.emit("updateformData" + t.id, s);
617
+ }) : s[l.value] = l.label, te.emit("updateformData" + t.id, s);
618
618
  }
619
- function N(f) {
620
- d("update:modelValue", f), d("change", f), a.field && (s[a.field] = f), ee.emit("updateformData" + t.id, s);
619
+ function N(l) {
620
+ d("update:modelValue", l), d("change", l), a.field && (s[a.field] = l), te.emit("updateformData" + t.id, s);
621
621
  }
622
- function Q(f) {
623
- d("update:dynamicId", f);
622
+ function Q(l) {
623
+ d("update:dynamicId", l);
624
624
  }
625
625
  let q = null;
626
626
  return B(
627
627
  () => a,
628
- async (f) => {
628
+ async (l) => {
629
629
  const I = JSON.stringify({
630
- ...f,
630
+ ...l,
631
631
  children: void 0,
632
632
  componentProps: {
633
- ...f.componentProps,
633
+ ...l.componentProps,
634
634
  options: null
635
635
  }
636
636
  });
@@ -642,37 +642,37 @@ const Ze = /* @__PURE__ */ ne({
642
642
  immediate: !0,
643
643
  deep: !0
644
644
  }
645
- ), Ae(g), (f, I) => {
646
- var S;
645
+ ), Ae(v), (l, I) => {
646
+ var g;
647
647
  const C = Me("ENode");
648
- return b.value && _.value ? (T(), K(Ze, {
648
+ return E.value && _.value ? (T(), K(Ze, {
649
649
  key: 0,
650
- hasFormItem: R(a).noFormItem !== !0 && ((S = w.value) == null ? void 0 : S.defaultSchema.input),
651
- formItemProps: i.value,
652
- onUpdateFormItemRef: h
650
+ hasFormItem: R(a).noFormItem !== !0 && ((g = w.value) == null ? void 0 : g.defaultSchema.input),
651
+ formItemProps: c.value,
652
+ onUpdateFormItemRef: m
653
653
  }, {
654
654
  default: $(() => [
655
- (T(), K(Re(b.value), me({
655
+ (T(), K(Re(E.value), he({
656
656
  ref_key: "componentInstance",
657
- ref: P,
658
- onVnodeMounted: c,
657
+ ref: V,
658
+ onVnodeMounted: x,
659
659
  model: R(s)
660
- }, { ...V.value }, {
661
- [V.value.bindModel]: n.value,
662
- ["onUpdate:" + V.value.bindModel]: I[0] || (I[0] = (F) => n.value = F),
663
- [`onUpdate:${V.value.bindModel}` || ""]: N,
664
- "onUpdate:modelValueLabel": E,
660
+ }, { ...F.value }, {
661
+ [F.value.bindModel]: n.value,
662
+ ["onUpdate:" + F.value.bindModel]: I[0] || (I[0] = (P) => n.value = P),
663
+ [`onUpdate:${F.value.bindModel}` || ""]: N,
664
+ "onUpdate:modelValueLabel": A,
665
665
  "onUpdate:dynamicId": Q
666
666
  }), {
667
- node: $((F) => [
668
- H(C, me({
667
+ node: $((P) => [
668
+ H(C, he({
669
669
  id: t.id
670
- }, F, {
670
+ }, P, {
671
671
  sourceDateUrl: t.sourceDateUrl
672
672
  }), null, 16, ["id", "sourceDateUrl"])
673
673
  ]),
674
674
  "edit-node": $(() => [
675
- k(f.$slots, "edit-node")
675
+ L(l.$slots, "edit-node")
676
676
  ]),
677
677
  _: 3
678
678
  }, 16, ["model"]))
@@ -685,98 +685,107 @@ const Ze = /* @__PURE__ */ ne({
685
685
  function Qe() {
686
686
  const e = O(!1), r = Ie(), o = O({});
687
687
  function t() {
688
- return new Promise((m) => {
688
+ return new Promise((p) => {
689
689
  if (e.value)
690
- m();
690
+ p();
691
691
  else {
692
- const v = B(e, () => {
693
- v(), m();
692
+ const h = B(e, () => {
693
+ h(), p();
694
694
  });
695
695
  }
696
696
  });
697
697
  }
698
- async function n(m = "default") {
698
+ async function n(p = "default") {
699
699
  var d;
700
700
  await t();
701
- const v = (d = o.value) == null ? void 0 : d[m];
702
- if (!v) throw new Error(`表单 [name=${m}] 不存在`);
703
- return v;
701
+ const h = (d = o.value) == null ? void 0 : d[p];
702
+ if (!h) throw new Error(`表单 [name=${p}] 不存在`);
703
+ return h;
704
704
  }
705
- async function s(m, v) {
706
- const d = await n(m);
707
- return z(await v(d));
705
+ async function s(p, h) {
706
+ const d = await n(p);
707
+ return z(await h(d));
708
708
  }
709
- async function l(m = "default") {
710
- return await s(m, (v) => v.getData());
709
+ async function i(p = "default") {
710
+ return await s(p, (h) => h.getData());
711
711
  }
712
- function u(m, v = "default", d = void 0) {
713
- var P, M;
712
+ function u(p, h = "default", d = void 0) {
713
+ var V, M;
714
714
  if (d && Object.keys(d).length) {
715
- let h = function(i) {
716
- let V = [];
717
- return i.forEach((w) => {
718
- w.children && (V = [...V, ...h(w.children)]), V.push(w);
719
- }), V;
720
- }, b = function(i) {
715
+ let m = function(c) {
716
+ let F = [];
717
+ return c.forEach((w) => {
718
+ w.children && (F = [...F, ...m(w.children)]), F.push(w);
719
+ }), F;
720
+ }, E = function(c) {
721
721
  var w;
722
- let V = h((w = d == null ? void 0 : d.schemas[0]) == null ? void 0 : w.children);
723
- return Object.keys(i).forEach((c) => {
724
- var E, N, Q, q, f, I, C;
725
- const g = V.find((S) => S.field === c), W = ["datetimerange", "daterange", "monthrange", "dates"];
726
- (g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((E = g == null ? void 0 : g.componentProps) != null && E.multiple) || (g == null ? void 0 : g.type) === "cascader" && !((Q = (N = g == null ? void 0 : g.componentProps) == null ? void 0 : N.props) != null && Q.multiple) || (g == null ? void 0 : g.type) === "date" && W.includes((q = g == null ? void 0 : g.componentProps) == null ? void 0 : q.type)) && typeof i[c] == "string" ? i[c] = (f = i[c]) == null ? void 0 : f.split(",") : (g == null ? void 0 : g.type) === "cascader" && ((C = (I = g == null ? void 0 : g.componentProps) == null ? void 0 : I.props) != null && C.multiple) && typeof i[c] == "string" ? (i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((S) => S.split(",")) : i[c] = i[c].split(","), i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((S) => S.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((S) => ({
727
- url: S,
728
- name: S
729
- })) : (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] = typeof i[c] == "boolean" ? i[c] : i[c].indexOf("true") > -1);
730
- }), i;
731
- }(m);
732
- r.setFormData(b, v);
733
- const _ = (P = o.value) == null ? void 0 : P[v];
722
+ let F = m((w = d == null ? void 0 : d.schemas[0]) == null ? void 0 : w.children);
723
+ return Object.keys(c).forEach((x) => {
724
+ var A, N, Q, q, l, I, C;
725
+ const v = F.find((g) => g.field === x), W = ["datetimerange", "daterange", "monthrange", "dates"];
726
+ if ((v && (v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "select" && ((A = v == null ? void 0 : v.componentProps) != null && A.multiple) || (v == null ? void 0 : v.type) === "cascader" && !((Q = (N = v == null ? void 0 : v.componentProps) == null ? void 0 : N.props) != null && Q.multiple) || (v == null ? void 0 : v.type) === "date" && W.includes((q = v == null ? void 0 : v.componentProps) == null ? void 0 : q.type)) && typeof c[x] == "string")
727
+ c[x] = (l = c[x]) == null ? void 0 : l.split(",");
728
+ else if ((v == null ? void 0 : v.type) === "cascader" && ((C = (I = v == null ? void 0 : v.componentProps) == null ? void 0 : I.props) != null && C.multiple) && typeof c[x] == "string")
729
+ c[x].indexOf(";") > -1 ? c[x] = c[x].split(";").map((g) => g.split(",")) : c[x] = c[x].split(","), c[x].indexOf(";") > -1 ? c[x] = c[x].split(";").map((g) => g.split(",")) : c[x] = c[x].split(",");
730
+ else if (((v == null ? void 0 : v.type) === "upload-image" || (v == null ? void 0 : v.type) === "upload-file") && typeof c[x] == "string") {
731
+ let g = [];
732
+ Object.entries(c).forEach(([P, j]) => {
733
+ c[x] === j && P !== v.field && (g = P.split("@")[1].split(","));
734
+ }), c[x] = c[x].split(",").map((P, j) => ({
735
+ url: P,
736
+ name: g[j]
737
+ }));
738
+ } else (v == null ? void 0 : v.type) === "number" || (v == null ? void 0 : v.type) === "slider" ? c[x] = Number(c[x]) : (v == null ? void 0 : v.type) === "switch" && (c[x] = typeof c[x] == "boolean" ? c[x] : c[x].indexOf("true") > -1);
739
+ }), c;
740
+ }(p);
741
+ r.setFormData(E, h);
742
+ const _ = (V = o.value) == null ? void 0 : V[h];
734
743
  _ == null || _.clearValidate();
735
744
  } else {
736
- r.setFormData(m, v);
737
- const h = (M = o.value) == null ? void 0 : M[v];
738
- h == null || h.clearValidate();
745
+ r.setFormData(p, h);
746
+ const m = (M = o.value) == null ? void 0 : M[h];
747
+ m == null || m.clearValidate();
739
748
  }
740
749
  }
741
- async function p(m = "default") {
742
- return await s(m, async (v) => (await v.validate(), await v.getData()));
750
+ async function f(p = "default") {
751
+ return await s(p, async (h) => (await h.validate(), await h.getData()));
743
752
  }
744
- async function x(m) {
753
+ async function b(p) {
745
754
  await t();
746
- const v = {};
755
+ const h = {};
747
756
  for (const d in o.value) {
748
- const P = o.value[d];
749
- P && (v[d] = z(await m(P)));
757
+ const V = o.value[d];
758
+ V && (h[d] = z(await p(V)));
750
759
  }
751
- return v;
760
+ return h;
752
761
  }
753
762
  async function y() {
754
- return await x((m) => m.getData());
763
+ return await b((p) => p.getData());
755
764
  }
756
- function a(m) {
757
- for (const v in m)
758
- u(m[v], v);
765
+ function a(p) {
766
+ for (const h in p)
767
+ u(p[h], h);
759
768
  }
760
- async function A() {
761
- return await x(async (m) => (await m.validate(), await m.getData()));
769
+ async function D() {
770
+ return await b(async (p) => (await p.validate(), await p.getData()));
762
771
  }
763
772
  return {
764
773
  ready: e,
765
774
  pageManager: r,
766
775
  forms: o,
767
- getData: l,
776
+ getData: i,
768
777
  setData: u,
769
- validate: p,
778
+ validate: f,
770
779
  getForms: y,
771
780
  setForms: a,
772
- validateAll: A,
781
+ validateAll: D,
773
782
  getFormInstance: n
774
783
  };
775
784
  }
776
785
  const Ye = {
777
786
  key: 0,
778
787
  class: "epic-loading-box"
779
- }, Xe = { class: "epic-builder-main" }, je = { class: "epic-loading-box" }, et = /* @__PURE__ */ ne({
788
+ }, Xe = { class: "epic-builder-main" }, je = { class: "epic-loading-box" }, et = /* @__PURE__ */ oe({
780
789
  __name: "builder",
781
790
  props: {
782
791
  pageSchema: {},
@@ -787,13 +796,13 @@ const Ye = {
787
796
  },
788
797
  emits: ["change", "ready"],
789
798
  setup(e, { expose: r, emit: o }) {
790
- const t = j(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: u, getData: p, setData: x, validate: y, getForms: a, setForms: A, validateAll: m, getFormInstance: v } = Qe(), d = e, P = te({
799
+ const t = ee(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: i, forms: u, getData: f, setData: b, validate: y, getForms: a, setForms: D, validateAll: p, getFormInstance: h } = Qe(), d = e, V = ne({
791
800
  schemas: []
792
801
  });
793
802
  B(
794
803
  () => d.pageSchema,
795
- (i) => {
796
- G(P, i);
804
+ (c) => {
805
+ G(V, c);
797
806
  },
798
807
  {
799
808
  immediate: !0,
@@ -801,10 +810,10 @@ const Ye = {
801
810
  }
802
811
  ), B(
803
812
  () => d.formData,
804
- (i) => {
805
- if (i) {
806
- let V = h(i);
807
- x(V);
813
+ (c) => {
814
+ if (c) {
815
+ let F = m(c);
816
+ b(F);
808
817
  }
809
818
  },
810
819
  {
@@ -812,62 +821,73 @@ const Ye = {
812
821
  deep: !0
813
822
  }
814
823
  );
815
- function M(i) {
816
- let V = [];
817
- return i.forEach((w) => {
818
- w.children && (V = [...V, ...M(w.children)]), V.push(w);
819
- }), V;
824
+ function M(c) {
825
+ let F = [];
826
+ return c.forEach((w) => {
827
+ w.children && (F = [...F, ...M(w.children)]), F.push(w);
828
+ }), F;
820
829
  }
821
- function h(i) {
822
- let V = M(d.pageSchema.schemas[0].children);
823
- return Object.keys(i).forEach((w) => {
824
- var W, E, N, Q, q, f, I;
825
- const c = V.find((C) => C.field === w), g = ["datetimerange", "daterange", "monthrange", "dates"];
826
- (c && (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "select" && ((W = c == null ? void 0 : c.componentProps) != null && W.multiple) || (c == null ? void 0 : c.type) === "cascader" && !((N = (E = c == null ? void 0 : c.componentProps) == null ? void 0 : E.props) != null && N.multiple) || (c == null ? void 0 : c.type) === "date" && g.includes((Q = c == null ? void 0 : c.componentProps) == null ? void 0 : Q.type)) && typeof i[w] == "string" ? i[w] = (q = i[w]) == null ? void 0 : q.split(",") : (c == null ? void 0 : c.type) === "cascader" && ((I = (f = c == null ? void 0 : c.componentProps) == null ? void 0 : f.props) != null && I.multiple) && typeof i[w] == "string" ? (i[w].indexOf(";") > -1 ? i[w] = i[w].split(";").map((C) => C.split(",")) : i[w] = i[w].split(","), i[w].indexOf("") > -1 ? i[w] = i[w].split(";").map((C) => C.split(",")) : i[w] = i[w].split(",")) : ((c == null ? void 0 : c.type) === "upload-image" || (c == null ? void 0 : c.type) === "upload-file") && typeof i[w] == "string" ? i[w] = i[w].split(",").map((C) => ({
827
- url: C,
828
- name: C
829
- })) : (c == null ? void 0 : c.type) === "number" || (c == null ? void 0 : c.type) === "slider" ? i[w] = Number(i[w]) : (c == null ? void 0 : c.type) === "switch" && (i[w] = typeof i[w] == "boolean" ? i[w] : i[w].indexOf("true") > -1);
830
- }), i;
830
+ function m(c) {
831
+ let F = M(d.pageSchema.schemas[0].children);
832
+ return Object.keys(c).forEach((w) => {
833
+ var x, v, W, A, N, Q, q;
834
+ if (w.indexOf("@") < 0) {
835
+ const l = F.find((C) => C.field === w), I = ["datetimerange", "daterange", "monthrange", "dates"];
836
+ if ((l && (l == null ? void 0 : l.type) === "checkbox" || (l == null ? void 0 : l.type) === "select" && ((x = l == null ? void 0 : l.componentProps) != null && x.multiple) || (l == null ? void 0 : l.type) === "cascader" && !((W = (v = l == null ? void 0 : l.componentProps) == null ? void 0 : v.props) != null && W.multiple) || (l == null ? void 0 : l.type) === "date" && I.includes((A = l == null ? void 0 : l.componentProps) == null ? void 0 : A.type)) && typeof c[w] == "string")
837
+ c[w] = (N = c[w]) == null ? void 0 : N.split(",");
838
+ else if ((l == null ? void 0 : l.type) === "cascader" && ((q = (Q = l == null ? void 0 : l.componentProps) == null ? void 0 : Q.props) != null && q.multiple) && typeof c[w] == "string")
839
+ c[w].indexOf(";") > -1 ? c[w] = c[w].split(";").map((C) => C.split(",")) : c[w] = c[w].split(","), c[w].indexOf(";") > -1 ? c[w] = c[w].split(";").map((C) => C.split(",")) : c[w] = c[w].split(",");
840
+ else if (((l == null ? void 0 : l.type) === "upload-image" || (l == null ? void 0 : l.type) === "upload-file") && typeof c[w] == "string") {
841
+ let C = [];
842
+ Object.entries(c).forEach(([g, P]) => {
843
+ c[w] === P && g !== l.field && (C = g.split("@")[1].split(","));
844
+ }), c[w] = c[w].split(",").map((g, P) => ({
845
+ url: g,
846
+ name: C[P]
847
+ }));
848
+ } else (l == null ? void 0 : l.type) === "number" || (l == null ? void 0 : l.type) === "slider" ? c[w] = Number(c[w]) : (l == null ? void 0 : l.type) === "switch" && (c[w] = typeof c[w] == "boolean" ? c[w] : c[w].indexOf("true") > -1);
849
+ }
850
+ }), c;
831
851
  }
832
852
  B(
833
- () => P.script,
834
- (i) => {
835
- i && l.setMethods(i, !0);
853
+ () => V.script,
854
+ (c) => {
855
+ c && i.setMethods(c, !0);
836
856
  },
837
857
  {
838
858
  immediate: !0
839
859
  }
840
- ), L("slots", $e()), L("pageManager", l), L("forms", u), L("pageSchema", P), L(
860
+ ), k("slots", $e()), k("pageManager", i), k("forms", u), k("pageSchema", V), k(
841
861
  "disabled",
842
862
  J(() => d.disabled)
843
863
  );
844
- const D = le(), b = D == null ? void 0 : D.proxy;
864
+ const S = ie(), E = S == null ? void 0 : S.proxy;
845
865
  function _() {
846
- re(() => {
847
- s.value = !0, n("ready", l), b && l.addComponentInstance("builder", b);
866
+ se(() => {
867
+ s.value = !0, n("ready", i), E && i.addComponentInstance("builder", E);
848
868
  });
849
869
  }
850
- return ee.on("updateformData" + d.id, (i) => {
851
- n("change", i);
870
+ return te.on("updateformData" + d.id, (c) => {
871
+ n("change", c);
852
872
  }), r({
853
873
  ready: s,
854
- pageManager: l,
855
- getData: p,
856
- setData: x,
874
+ pageManager: i,
875
+ getData: f,
876
+ setData: b,
857
877
  validate: y,
858
878
  getForms: a,
859
- setForms: A,
860
- validateAll: m,
861
- getFormInstance: v
862
- }), (i, V) => R(U).initialized.value ? (T(), K(be, {
879
+ setForms: D,
880
+ validateAll: p,
881
+ getFormInstance: h
882
+ }), (c, F) => R(U).initialized.value ? (T(), K(be, {
863
883
  key: 1,
864
884
  onResolve: _
865
885
  }, {
866
886
  default: $(() => [
867
887
  Z("div", Xe, [
868
- (T(!0), he(Be, null, Ne(P.schemas, (w, c) => (T(), K(R(Ge), {
888
+ (T(!0), ve(Be, null, Ne(V.schemas, (w, x) => (T(), K(R(Ge), {
869
889
  id: d.id,
870
- key: c,
890
+ key: x,
871
891
  sourceDateUrl: d.sourceDateUrl,
872
892
  componentSchema: w
873
893
  }, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
@@ -879,20 +899,20 @@ const Ye = {
879
899
  ])
880
900
  ]),
881
901
  _: 1
882
- })) : (T(), he("div", Ye));
902
+ })) : (T(), ve("div", Ye));
883
903
  }
884
904
  });
885
- function ge(e) {
886
- return ke() ? (Le(e), !0) : !1;
905
+ function ye(e) {
906
+ return Le() ? (ke(e), !0) : !1;
887
907
  }
888
908
  function tt(e) {
889
909
  let r = 0, o, t;
890
910
  const n = () => {
891
911
  r -= 1, t && r <= 0 && (t.stop(), o = void 0, t = void 0);
892
912
  };
893
- return (...s) => (r += 1, t || (t = Ue(!0), o = t.run(() => e(...s))), ge(n), o);
913
+ return (...s) => (r += 1, t || (t = Ue(!0), o = t.run(() => e(...s))), ye(n), o);
894
914
  }
895
- function oe(e) {
915
+ function re(e) {
896
916
  return typeof e == "function" ? e() : R(e);
897
917
  }
898
918
  const nt = typeof window < "u" && typeof document < "u";
@@ -900,58 +920,58 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
900
920
  const ot = (e) => typeof e < "u", rt = Object.prototype.toString, st = (e) => rt.call(e) === "[object Object]", at = () => {
901
921
  };
902
922
  function lt(e) {
903
- return le();
923
+ return ie();
904
924
  }
905
925
  function it(e, r = !0, o) {
906
- lt() ? ve(e, o) : r ? e() : re(e);
926
+ lt() ? ge(e, o) : r ? e() : se(e);
907
927
  }
908
928
  function ct(e = !1, r = {}) {
909
929
  const {
910
930
  truthyValue: o = !0,
911
931
  falsyValue: t = !1
912
932
  } = r, n = Te(e), s = O(e);
913
- function l(u) {
933
+ function i(u) {
914
934
  if (arguments.length)
915
935
  return s.value = u, s.value;
916
936
  {
917
- const p = oe(o);
918
- return s.value = s.value === p ? oe(t) : p, s.value;
937
+ const f = re(o);
938
+ return s.value = s.value === f ? re(t) : f, s.value;
919
939
  }
920
940
  }
921
- return n ? l : [s, l];
941
+ return n ? i : [s, i];
922
942
  }
923
- function Lt(e, r, o) {
924
- const t = B(e, (...n) => (re(() => t()), r(...n)), o);
943
+ function kt(e, r, o) {
944
+ const t = B(e, (...n) => (se(() => t()), r(...n)), o);
925
945
  return t;
926
946
  }
927
- const ue = nt ? window : void 0;
947
+ const de = nt ? window : void 0;
928
948
  function X(e) {
929
949
  var r;
930
- const o = oe(e);
950
+ const o = re(e);
931
951
  return (r = o == null ? void 0 : o.$el) != null ? r : o;
932
952
  }
933
953
  function ut(...e) {
934
954
  let r, o, t, n;
935
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, r = ue) : [r, o, t, n] = e, !r)
955
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, r = de) : [r, o, t, n] = e, !r)
936
956
  return at;
937
957
  Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
938
- const s = [], l = () => {
958
+ const s = [], i = () => {
939
959
  s.forEach((y) => y()), s.length = 0;
940
- }, u = (y, a, A, m) => (y.addEventListener(a, A, m), () => y.removeEventListener(a, A, m)), p = B(
941
- () => [X(r), oe(n)],
960
+ }, u = (y, a, D, p) => (y.addEventListener(a, D, p), () => y.removeEventListener(a, D, p)), f = B(
961
+ () => [X(r), re(n)],
942
962
  ([y, a]) => {
943
- if (l(), !y)
963
+ if (i(), !y)
944
964
  return;
945
- const A = st(a) ? { ...a } : a;
965
+ const D = st(a) ? { ...a } : a;
946
966
  s.push(
947
- ...o.flatMap((m) => t.map((v) => u(y, m, v, A)))
967
+ ...o.flatMap((p) => t.map((h) => u(y, p, h, D)))
948
968
  );
949
969
  },
950
970
  { immediate: !0, flush: "post" }
951
- ), x = () => {
952
- p(), l();
971
+ ), b = () => {
972
+ f(), i();
953
973
  };
954
- return ge(x), x;
974
+ return ye(b), b;
955
975
  }
956
976
  function dt(e) {
957
977
  return typeof e == "function" ? e : typeof e == "string" ? (r) => r.key === e : Array.isArray(e) ? (r) => e.includes(r.key) : () => !0;
@@ -960,24 +980,24 @@ function Ce(...e) {
960
980
  let r, o, t = {};
961
981
  e.length === 3 ? (r = e[0], o = e[1], t = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (r = !0, o = e[0], t = e[1]) : (r = e[0], o = e[1]) : (r = !0, o = e[0]);
962
982
  const {
963
- target: n = ue,
983
+ target: n = de,
964
984
  eventName: s = "keydown",
965
- passive: l = !1,
985
+ passive: i = !1,
966
986
  dedupe: u = !1
967
- } = t, p = dt(r);
987
+ } = t, f = dt(r);
968
988
  return ut(n, s, (y) => {
969
- y.repeat && oe(u) || p(y) && o(y);
970
- }, l);
989
+ y.repeat && re(u) || f(y) && o(y);
990
+ }, i);
971
991
  }
972
- function fe(e, r, o = {}) {
992
+ function pe(e, r, o = {}) {
973
993
  return Ce(e, r, { ...o, eventName: "keydown" });
974
994
  }
975
- function pe(e, r, o = {}) {
995
+ function me(e, r, o = {}) {
976
996
  return Ce(e, r, { ...o, eventName: "keyup" });
977
997
  }
978
998
  function ft() {
979
- const e = O(!1), r = le();
980
- return r && ve(() => {
999
+ const e = O(!1), r = ie();
1000
+ return r && ge(() => {
981
1001
  e.value = !0;
982
1002
  }, r), e;
983
1003
  }
@@ -989,114 +1009,114 @@ function mt(e) {
989
1009
  return JSON.parse(JSON.stringify(e));
990
1010
  }
991
1011
  function ht(e, r, o = {}) {
992
- const { window: t = ue, ...n } = o;
1012
+ const { window: t = de, ...n } = o;
993
1013
  let s;
994
- const l = pt(() => t && "ResizeObserver" in t), u = () => {
1014
+ const i = pt(() => t && "ResizeObserver" in t), u = () => {
995
1015
  s && (s.disconnect(), s = void 0);
996
- }, p = J(() => {
997
- const a = oe(e);
998
- return Array.isArray(a) ? a.map((A) => X(A)) : [X(a)];
999
- }), x = B(
1000
- p,
1016
+ }, f = J(() => {
1017
+ const a = re(e);
1018
+ return Array.isArray(a) ? a.map((D) => X(D)) : [X(a)];
1019
+ }), b = B(
1020
+ f,
1001
1021
  (a) => {
1002
- if (u(), l.value && t) {
1022
+ if (u(), i.value && t) {
1003
1023
  s = new ResizeObserver(r);
1004
- for (const A of a)
1005
- A && s.observe(A, n);
1024
+ for (const D of a)
1025
+ D && s.observe(D, n);
1006
1026
  }
1007
1027
  },
1008
1028
  { immediate: !0, flush: "post" }
1009
1029
  ), y = () => {
1010
- u(), x();
1030
+ u(), b();
1011
1031
  };
1012
- return ge(y), {
1013
- isSupported: l,
1032
+ return ye(y), {
1033
+ isSupported: i,
1014
1034
  stop: y
1015
1035
  };
1016
1036
  }
1017
1037
  function zt(e, r = { width: 0, height: 0 }, o = {}) {
1018
- const { window: t = ue, box: n = "content-box" } = o, s = J(() => {
1019
- var a, A;
1020
- return (A = (a = X(e)) == null ? void 0 : a.namespaceURI) == null ? void 0 : A.includes("svg");
1021
- }), l = O(r.width), u = O(r.height), { stop: p } = ht(
1038
+ const { window: t = de, box: n = "content-box" } = o, s = J(() => {
1039
+ var a, D;
1040
+ return (D = (a = X(e)) == null ? void 0 : a.namespaceURI) == null ? void 0 : D.includes("svg");
1041
+ }), i = O(r.width), u = O(r.height), { stop: f } = ht(
1022
1042
  e,
1023
1043
  ([a]) => {
1024
- const A = n === "border-box" ? a.borderBoxSize : n === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
1044
+ const D = n === "border-box" ? a.borderBoxSize : n === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
1025
1045
  if (t && s.value) {
1026
- const m = X(e);
1027
- if (m) {
1028
- const v = m.getBoundingClientRect();
1029
- l.value = v.width, u.value = v.height;
1046
+ const p = X(e);
1047
+ if (p) {
1048
+ const h = p.getBoundingClientRect();
1049
+ i.value = h.width, u.value = h.height;
1030
1050
  }
1031
- } else if (A) {
1032
- const m = Array.isArray(A) ? A : [A];
1033
- l.value = m.reduce((v, { inlineSize: d }) => v + d, 0), u.value = m.reduce((v, { blockSize: d }) => v + d, 0);
1051
+ } else if (D) {
1052
+ const p = Array.isArray(D) ? D : [D];
1053
+ i.value = p.reduce((h, { inlineSize: d }) => h + d, 0), u.value = p.reduce((h, { blockSize: d }) => h + d, 0);
1034
1054
  } else
1035
- l.value = a.contentRect.width, u.value = a.contentRect.height;
1055
+ i.value = a.contentRect.width, u.value = a.contentRect.height;
1036
1056
  },
1037
1057
  o
1038
1058
  );
1039
1059
  it(() => {
1040
1060
  const a = X(e);
1041
- a && (l.value = "offsetWidth" in a ? a.offsetWidth : r.width, u.value = "offsetHeight" in a ? a.offsetHeight : r.height);
1061
+ a && (i.value = "offsetWidth" in a ? a.offsetWidth : r.width, u.value = "offsetHeight" in a ? a.offsetHeight : r.height);
1042
1062
  });
1043
- const x = B(
1063
+ const b = B(
1044
1064
  () => X(e),
1045
1065
  (a) => {
1046
- l.value = a ? r.width : 0, u.value = a ? r.height : 0;
1066
+ i.value = a ? r.width : 0, u.value = a ? r.height : 0;
1047
1067
  }
1048
1068
  );
1049
1069
  function y() {
1050
- p(), x();
1070
+ f(), b();
1051
1071
  }
1052
1072
  return {
1053
- width: l,
1073
+ width: i,
1054
1074
  height: u,
1055
1075
  stop: y
1056
1076
  };
1057
1077
  }
1058
1078
  function Jt(e, r, o, t = {}) {
1059
- var n, s, l;
1079
+ var n, s, i;
1060
1080
  const {
1061
1081
  clone: u = !1,
1062
- passive: p = !1,
1063
- eventName: x,
1082
+ passive: f = !1,
1083
+ eventName: b,
1064
1084
  deep: y = !1,
1065
1085
  defaultValue: a,
1066
- shouldEmit: A
1067
- } = t, m = le(), v = o || (m == null ? void 0 : m.emit) || ((n = m == null ? void 0 : m.$emit) == null ? void 0 : n.bind(m)) || ((l = (s = m == null ? void 0 : m.proxy) == null ? void 0 : s.$emit) == null ? void 0 : l.bind(m == null ? void 0 : m.proxy));
1068
- let d = x;
1086
+ shouldEmit: D
1087
+ } = t, p = ie(), h = o || (p == null ? void 0 : p.emit) || ((n = p == null ? void 0 : p.$emit) == null ? void 0 : n.bind(p)) || ((i = (s = p == null ? void 0 : p.proxy) == null ? void 0 : s.$emit) == null ? void 0 : i.bind(p == null ? void 0 : p.proxy));
1088
+ let d = b;
1069
1089
  r || (r = "modelValue"), d = d || `update:${r.toString()}`;
1070
- const P = (D) => u ? typeof u == "function" ? u(D) : mt(D) : D, M = () => ot(e[r]) ? P(e[r]) : a, h = (D) => {
1071
- A ? A(D) && v(d, D) : v(d, D);
1090
+ const V = (S) => u ? typeof u == "function" ? u(S) : mt(S) : S, M = () => ot(e[r]) ? V(e[r]) : a, m = (S) => {
1091
+ D ? D(S) && h(d, S) : h(d, S);
1072
1092
  };
1073
- if (p) {
1074
- const D = M(), b = O(D);
1093
+ if (f) {
1094
+ const S = M(), E = O(S);
1075
1095
  let _ = !1;
1076
1096
  return B(
1077
1097
  () => e[r],
1078
- (i) => {
1079
- _ || (_ = !0, b.value = P(i), re(() => _ = !1));
1098
+ (c) => {
1099
+ _ || (_ = !0, E.value = V(c), se(() => _ = !1));
1080
1100
  }
1081
1101
  ), B(
1082
- b,
1083
- (i) => {
1084
- !_ && (i !== e[r] || y) && h(i);
1102
+ E,
1103
+ (c) => {
1104
+ !_ && (c !== e[r] || y) && m(c);
1085
1105
  },
1086
1106
  { deep: y }
1087
- ), b;
1107
+ ), E;
1088
1108
  } else
1089
1109
  return J({
1090
1110
  get() {
1091
1111
  return M();
1092
1112
  },
1093
- set(D) {
1094
- h(D);
1113
+ set(S) {
1114
+ m(S);
1095
1115
  }
1096
1116
  });
1097
1117
  }
1098
1118
  function Wt() {
1099
- const { isDark: e } = de(), r = ct(e);
1119
+ const { isDark: e } = fe(), r = ct(e);
1100
1120
  return {
1101
1121
  isDark: e,
1102
1122
  toggleDark: r
@@ -1104,7 +1124,7 @@ function Wt() {
1104
1124
  }
1105
1125
  function vt() {
1106
1126
  const e = O(!1);
1107
- return ve(() => {
1127
+ return ge(() => {
1108
1128
  gt(e), yt(e);
1109
1129
  }), B(
1110
1130
  () => e.value,
@@ -1145,50 +1165,50 @@ function wt() {
1145
1165
  isDark: o
1146
1166
  };
1147
1167
  }
1148
- const de = tt(wt);
1168
+ const fe = tt(wt);
1149
1169
  function St() {
1150
1170
  const e = O(!1), r = O(!1), o = O(!1);
1151
- return fe(" ", () => {
1171
+ return pe(" ", () => {
1152
1172
  e.value = !0;
1153
- }), pe(" ", () => {
1173
+ }), me(" ", () => {
1154
1174
  e.value = !1;
1155
- }), fe("Shift", (t) => {
1175
+ }), pe("Shift", (t) => {
1156
1176
  t.preventDefault(), r.value = !0;
1157
- }), pe("Shift", () => {
1177
+ }), me("Shift", () => {
1158
1178
  r.value = !1;
1159
- }), fe("Control", (t) => {
1179
+ }), pe("Control", (t) => {
1160
1180
  t.preventDefault(), o.value = !0;
1161
- }), pe("Control", () => {
1181
+ }), me("Control", () => {
1162
1182
  o.value = !1;
1163
1183
  }), { pressSpace: e, pressShift: r, pressCtrl: o };
1164
1184
  }
1165
1185
  function Ht(e) {
1166
- const { pressSpace: r } = de(), o = new Image(1, 1);
1186
+ const { pressSpace: r } = fe(), o = new Image(1, 1);
1167
1187
  o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1168
1188
  let t = 0, n = 0;
1169
- function s(p) {
1170
- var x;
1171
- r.value && (t = p.x, n = p.y, (x = p.dataTransfer) == null || x.setDragImage(document.createElement("div"), 0, 0));
1189
+ function s(f) {
1190
+ var b;
1191
+ r.value && (t = f.x, n = f.y, (b = f.dataTransfer) == null || b.setDragImage(document.createElement("div"), 0, 0));
1172
1192
  }
1173
- function l(p) {
1174
- if (p.preventDefault(), !p.x || !p.y || !r.value)
1193
+ function i(f) {
1194
+ if (f.preventDefault(), !f.x || !f.y || !r.value)
1175
1195
  return;
1176
- const x = p.x - t, y = p.y - n;
1177
- t = p.x, n = p.y, e.value && (e.value.scrollTop -= y, e.value.scrollLeft -= x);
1196
+ const b = f.x - t, y = f.y - n;
1197
+ t = f.x, n = f.y, e.value && (e.value.scrollTop -= y, e.value.scrollLeft -= b);
1178
1198
  }
1179
1199
  function u() {
1180
1200
  r.value = !1;
1181
1201
  }
1182
- return { handleElementDragStart: s, handleElementDrag: l, handleElementDragEnd: u };
1202
+ return { handleElementDragStart: s, handleElementDrag: i, handleElementDragEnd: u };
1183
1203
  }
1184
1204
  function Kt(e) {
1185
- const { pressCtrl: r, canvasScale: o, disabledZoom: t } = de();
1205
+ const { pressCtrl: r, canvasScale: o, disabledZoom: t } = fe();
1186
1206
  function n(s) {
1187
1207
  if (!r.value || t.value)
1188
1208
  return;
1189
1209
  s.preventDefault();
1190
- let l = 0;
1191
- s.deltaY < 0 ? l = o.value + 0.05 : l = o.value - 0.05, !(l > 150 || l < 0.5) && (o.value = l);
1210
+ let i = 0;
1211
+ s.deltaY < 0 ? i = o.value + 0.05 : i = o.value - 0.05, !(i > 150 || i < 0.5) && (o.value = i);
1192
1212
  }
1193
1213
  return B(
1194
1214
  () => o.value,
@@ -1210,44 +1230,44 @@ function qt(e, r = 16.66) {
1210
1230
  stopTimedQuery: n
1211
1231
  };
1212
1232
  }
1213
- const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, Et = /* @__PURE__ */ ne({
1233
+ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, Et = /* @__PURE__ */ oe({
1214
1234
  __name: "index",
1215
1235
  setup(e, { expose: r }) {
1216
- const o = U.getComponent("monacoEditor"), t = U.getComponent("modal"), n = O(null), s = O(!1), l = O(!1), u = O({}), p = Y("pageSchema"), x = O(null), y = O("");
1236
+ const o = U.getComponent("monacoEditor"), t = U.getComponent("modal"), n = O(null), s = O(!1), i = O(!1), u = O({}), f = Y("pageSchema"), b = O(null), y = O("");
1217
1237
  function a() {
1218
- l.value = !1;
1238
+ i.value = !1;
1219
1239
  }
1220
- function A() {
1240
+ function D() {
1221
1241
  s.value = !1;
1222
1242
  }
1223
- function m() {
1224
- s.value = !0, y.value = ce();
1243
+ function p() {
1244
+ s.value = !0, y.value = ue();
1225
1245
  }
1226
- async function v() {
1246
+ async function h() {
1227
1247
  try {
1228
- let d = await x.value.validateAll();
1248
+ let d = await b.value.validateAll();
1229
1249
  if (!Object.keys(d).length) {
1230
1250
  alert("请添加表单组件后再尝试!");
1231
1251
  return;
1232
1252
  }
1233
- Object.keys(d).length === 1 && (d = d.default), u.value = JSON.stringify(d, null, 2), re(() => {
1234
- var P;
1235
- (P = n.value) == null || P.setValue(u.value);
1236
- }), l.value = !0;
1253
+ Object.keys(d).length === 1 && (d = d.default), u.value = JSON.stringify(d, null, 2), se(() => {
1254
+ var V;
1255
+ (V = n.value) == null || V.setValue(u.value);
1256
+ }), i.value = !0;
1237
1257
  } catch (d) {
1238
1258
  console.error(d);
1239
1259
  }
1240
1260
  }
1241
1261
  return r({
1242
- handleOpen: m
1243
- }), (d, P) => (T(), K(R(t), {
1262
+ handleOpen: p
1263
+ }), (d, V) => (T(), K(R(t), {
1244
1264
  modelValue: s.value,
1245
- "onUpdate:modelValue": P[1] || (P[1] = (M) => s.value = M),
1265
+ "onUpdate:modelValue": V[1] || (V[1] = (M) => s.value = M),
1246
1266
  title: "预览",
1247
1267
  class: "w-900px",
1248
1268
  width: "900px",
1249
- onClose: A,
1250
- onOk: v,
1269
+ onClose: D,
1270
+ onOk: h,
1251
1271
  okText: "表单数据"
1252
1272
  }, {
1253
1273
  default: $(() => [
@@ -1255,12 +1275,12 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
1255
1275
  (T(), K(R(et), {
1256
1276
  key: y.value,
1257
1277
  ref_key: "kb",
1258
- ref: x,
1259
- "page-schema": R(p)
1278
+ ref: b,
1279
+ "page-schema": R(f)
1260
1280
  }, null, 8, ["page-schema"])),
1261
1281
  H(R(t), {
1262
- modelValue: l.value,
1263
- "onUpdate:modelValue": P[0] || (P[0] = (M) => l.value = M),
1282
+ modelValue: i.value,
1283
+ "onUpdate:modelValue": V[0] || (V[0] = (M) => i.value = M),
1264
1284
  title: "表单数据",
1265
1285
  class: "w-860px",
1266
1286
  width: "860px",
@@ -1289,7 +1309,7 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
1289
1309
  }), bt = {
1290
1310
  key: 0,
1291
1311
  class: "epic-loading-box"
1292
- }, xt = { class: "epic-designer-main" }, It = { class: "epic-header-container" }, Ct = { class: "epic-loading-box" }, Zt = /* @__PURE__ */ ne({
1312
+ }, xt = { class: "epic-designer-main" }, It = { class: "epic-header-container" }, Ct = { class: "epic-loading-box" }, Zt = /* @__PURE__ */ oe({
1293
1313
  __name: "designer",
1294
1314
  props: {
1295
1315
  disabledZoom: { type: Boolean, default: !1 },
@@ -1312,7 +1332,7 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
1312
1332
  "updateSourceData"
1313
1333
  ],
1314
1334
  setup(e, { expose: r, emit: o }) {
1315
- const t = j(() => import("./index-BKDRMrcc.js")), n = j(() => import("./index-XUQ1VGQg.js")), s = j(() => import("./index-D1mKcGjX.js")), l = j(() => import("./index-DNeYX6HK.js")), u = j(() => import("./index-DgcFxYFp.js")), p = Ie(), x = qe(), y = e;
1335
+ const t = ee(() => import("./index-BKDRMrcc.js")), n = ee(() => import("./index-XUQ1VGQg.js")), s = ee(() => import("./index-DwDY6KkH.js")), i = ee(() => import("./index-DNeYX6HK.js")), u = ee(() => import("./index-DgcFxYFp.js")), f = Ie(), b = qe(), y = e;
1316
1336
  let a = {
1317
1337
  schemas: [
1318
1338
  {
@@ -1359,135 +1379,135 @@ defineExpose({
1359
1379
  test
1360
1380
  })`
1361
1381
  };
1362
- ie(() => {
1382
+ ce(() => {
1363
1383
  if (y.defaultSchema) {
1364
1384
  a = y.defaultSchema;
1365
1385
  return;
1366
1386
  }
1367
1387
  y.source && U.setSourceData(y.source), y.formMode && (a.schemas = U.formSchemas);
1368
- }), p.setDesignMode(), p.setDefaultComponentIds(a.schemas);
1369
- const A = o, m = O(null), v = te({
1388
+ }), f.setDesignMode(), f.setDefaultComponentIds(a.schemas);
1389
+ const D = o, p = O(null), h = ne({
1370
1390
  checkedNode: null,
1371
1391
  hoverNode: null,
1372
1392
  disableHover: !1,
1373
1393
  matched: []
1374
- }), d = te({
1394
+ }), d = ne({
1375
1395
  schemas: [],
1376
1396
  script: a.script
1377
- }), { disabledZoom: P } = de();
1378
- ie(() => {
1379
- P.value = y.disabledZoom;
1380
- }), ie(() => {
1381
- const E = d.script;
1382
- E && E !== "" && p.setMethods(E);
1383
- }), L("pageSchema", d), L("revoke", x), L("pageManager", p), L(
1397
+ }), { disabledZoom: V } = fe();
1398
+ ce(() => {
1399
+ V.value = y.disabledZoom;
1400
+ }), ce(() => {
1401
+ const A = d.script;
1402
+ A && A !== "" && f.setMethods(A);
1403
+ }), k("pageSchema", d), k("revoke", b), k("pageManager", f), k(
1384
1404
  "designerProps",
1385
1405
  J(() => y)
1386
- ), L("designer", {
1387
- setCheckedNode: h,
1388
- setHoverNode: D,
1406
+ ), k("designer", {
1407
+ setCheckedNode: m,
1408
+ setHoverNode: S,
1389
1409
  setDisableHover: _,
1390
- handleToggleDeviceMode: g,
1410
+ handleToggleDeviceMode: v,
1391
1411
  reset: w,
1392
- state: v
1393
- }), ee.on("saveSourceData", (E) => {
1394
- A("saveSourceData", E);
1395
- }), ee.on("deleteSourceData", (E) => {
1396
- A("deleteSourceData", E);
1397
- }), ee.on("updateSourceData", (E) => {
1398
- A("updateSourceData", E);
1412
+ state: h
1413
+ }), te.on("saveSourceData", (A) => {
1414
+ D("saveSourceData", A);
1415
+ }), te.on("deleteSourceData", (A) => {
1416
+ D("deleteSourceData", A);
1417
+ }), te.on("updateSourceData", (A) => {
1418
+ D("updateSourceData", A);
1399
1419
  });
1400
1420
  function M() {
1401
- d.schemas = z(a.schemas), h(d.schemas[0]), x.push(d.schemas, "初始化撤销功能");
1421
+ d.schemas = z(a.schemas), m(d.schemas[0]), b.push(d.schemas, "初始化撤销功能");
1402
1422
  }
1403
- async function h(E = d.schemas[0]) {
1404
- v.checkedNode = E, v.matched = We(d.schemas, E.id);
1423
+ async function m(A = d.schemas[0]) {
1424
+ h.checkedNode = A, h.matched = We(d.schemas, A.id);
1405
1425
  }
1406
- async function D(E = null) {
1426
+ async function S(A = null) {
1407
1427
  var N;
1408
- if (!E || v.disableHover)
1409
- return v.hoverNode = null, !1;
1410
- if ((E == null ? void 0 : E.id) === ((N = v.hoverNode) == null ? void 0 : N.id))
1428
+ if (!A || h.disableHover)
1429
+ return h.hoverNode = null, !1;
1430
+ if ((A == null ? void 0 : A.id) === ((N = h.hoverNode) == null ? void 0 : N.id))
1411
1431
  return !1;
1412
- v.hoverNode = E;
1432
+ h.hoverNode = A;
1413
1433
  }
1414
- function b() {
1415
- re(() => {
1416
- A("ready", { pageManager: p });
1434
+ function E() {
1435
+ se(() => {
1436
+ D("ready", { pageManager: f });
1417
1437
  });
1418
1438
  }
1419
- async function _(E = !1) {
1420
- v.disableHover = E;
1439
+ async function _(A = !1) {
1440
+ h.disableHover = A;
1421
1441
  }
1422
- function i(E) {
1423
- G(d, z(E));
1442
+ function c(A) {
1443
+ G(d, z(A));
1424
1444
  }
1425
- function V() {
1445
+ function F() {
1426
1446
  return we(d);
1427
1447
  }
1428
1448
  function w() {
1429
- xe(d.schemas, a.schemas) && d.script === a.script || (G(d.schemas, a.schemas), d.script = a.script, h(d.schemas[0]), x.push(d.schemas, "重置操作"), A("reset", d));
1449
+ xe(d.schemas, a.schemas) && d.script === a.script || (G(d.schemas, a.schemas), d.script = a.script, m(d.schemas[0]), b.push(d.schemas, "重置操作"), D("reset", d));
1430
1450
  }
1431
- function c() {
1432
- A("save", we(d));
1451
+ function x() {
1452
+ D("save", we(d));
1433
1453
  }
1434
- function g(E) {
1435
- A("toggleDeviceMode", E);
1454
+ function v(A) {
1455
+ D("toggleDeviceMode", A);
1436
1456
  }
1437
1457
  function W() {
1438
- m.value.handleOpen();
1458
+ p.value.handleOpen();
1439
1459
  }
1440
1460
  return M(), r({
1441
- revoke: x,
1442
- setData: i,
1443
- getData: V,
1461
+ revoke: b,
1462
+ setData: c,
1463
+ getData: F,
1444
1464
  reset: w,
1445
1465
  preview: W
1446
- }), (E, N) => R(U).initialized.value ? (T(), K(be, {
1466
+ }), (A, N) => R(U).initialized.value ? (T(), K(be, {
1447
1467
  key: 1,
1448
- onResolve: b
1468
+ onResolve: E
1449
1469
  }, {
1450
1470
  default: $(() => [
1451
1471
  Z("div", xt, [
1452
1472
  Z("div", It, [
1453
- k(E.$slots, "header", {}, () => [
1473
+ L(A.$slots, "header", {}, () => [
1454
1474
  y.hiddenHeader ? Ee("", !0) : (T(), K(R(t), {
1455
1475
  key: 0,
1456
1476
  onPreview: W,
1457
- onSave: c
1477
+ onSave: x
1458
1478
  }, {
1459
1479
  header: $(() => [
1460
- k(E.$slots, "header-prefix")
1480
+ L(A.$slots, "header-prefix")
1461
1481
  ]),
1462
1482
  prefix: $(() => [
1463
- k(E.$slots, "header-prefix")
1483
+ L(A.$slots, "header-prefix")
1464
1484
  ]),
1465
1485
  title: $(() => [
1466
- k(E.$slots, "header-title")
1486
+ L(A.$slots, "header-title")
1467
1487
  ]),
1468
1488
  "right-prefix": $(() => [
1469
- k(E.$slots, "header-right-prefix")
1489
+ L(A.$slots, "header-right-prefix")
1470
1490
  ]),
1471
1491
  "right-action": $(() => [
1472
- k(E.$slots, "header-right-action")
1492
+ L(A.$slots, "header-right-action")
1473
1493
  ]),
1474
1494
  "right-suffix": $(() => [
1475
- k(E.$slots, "header-right-suffix")
1495
+ L(A.$slots, "header-right-suffix")
1476
1496
  ]),
1477
1497
  _: 3
1478
1498
  }))
1479
1499
  ])
1480
1500
  ]),
1481
1501
  Z("div", {
1482
- class: ze(["epic-split-view-container", { "hidden-header": E.hiddenHeader }])
1502
+ class: ze(["epic-split-view-container", { "hidden-header": A.hiddenHeader }])
1483
1503
  }, [
1484
1504
  H(R(n)),
1485
1505
  H(R(s)),
1486
- H(R(l))
1506
+ H(R(i))
1487
1507
  ], 2),
1488
1508
  H(Et, {
1489
1509
  ref_key: "previewRef",
1490
- ref: m
1510
+ ref: p
1491
1511
  }, null, 512)
1492
1512
  ])
1493
1513
  ]),
@@ -1497,10 +1517,10 @@ defineExpose({
1497
1517
  ])
1498
1518
  ]),
1499
1519
  _: 3
1500
- })) : (T(), he("div", bt));
1520
+ })) : (T(), ve("div", bt));
1501
1521
  }
1502
1522
  }), _t = {
1503
- component: async () => await import("./index-Xym112zw.js"),
1523
+ component: async () => await import("./index-CML-aVic.js"),
1504
1524
  defaultSchema: {
1505
1525
  label: "代码编辑器",
1506
1526
  type: "monacoEditor",
@@ -1550,11 +1570,11 @@ defineExpose({
1550
1570
  }
1551
1571
  };
1552
1572
  function Pt(e) {
1553
- e.component("EInputSize", async () => await import("./index-0GtpyUBx.js")), e.component("EColEditor", async () => await import("./index-QyL4F13K.js")), e.component("EActionEditor", async () => await import("./index-CeB5DFBE.js")), e.component("ERuleEditor", async () => await import("./index-CwevnKNM.js")), e.component("EOptionsEditor", async () => await import("./index-DXzERji1.js")), e.component("ENode", async () => await import("./index-BYMDoYaj.js")), e.component("EDataSource", async () => await import("./index-0zDuNn0Q.js")), e.registerActivitybar({
1573
+ e.component("EInputSize", async () => await import("./index-0GtpyUBx.js")), e.component("EColEditor", async () => await import("./index-BHWJ1KwT.js")), e.component("EActionEditor", async () => await import("./index-BgTlZ9gW.js")), e.component("ERuleEditor", async () => await import("./index-M3HldxkA.js")), e.component("EOptionsEditor", async () => await import("./index-CvIjQtJw.js")), e.component("ENode", async () => await import("./index-BRZDZuxE.js")), e.component("EDataSource", async () => await import("./index-JhxJizMR.js")), e.registerActivitybar({
1554
1574
  id: "component_view",
1555
1575
  title: "组件",
1556
1576
  icon: "icon--epic--extension-outline",
1557
- component: async () => await import("./index-Deui5A5E.js")
1577
+ component: async () => await import("./index-C32P7cCc.js")
1558
1578
  }), e.registerActivitybar({
1559
1579
  id: "outline_view",
1560
1580
  title: "大纲",
@@ -1563,11 +1583,11 @@ function Pt(e) {
1563
1583
  }), e.registerRightSidebar({
1564
1584
  id: "attribute_view",
1565
1585
  title: "属性",
1566
- component: async () => await import("./attributeView-DtpDKBv3.js")
1586
+ component: async () => await import("./attributeView-C75ra3CN.js")
1567
1587
  }), e.registerRightSidebar({
1568
1588
  id: "style_view",
1569
1589
  title: "样式",
1570
- component: async () => await import("./styleView-B-yx1iR4.js")
1590
+ component: async () => await import("./styleView-cuoX6XX4.js")
1571
1591
  }), [_t, Ot].forEach((o) => {
1572
1592
  e.registerComponent(o);
1573
1593
  });
@@ -1575,9 +1595,9 @@ function Pt(e) {
1575
1595
  Pt(U);
1576
1596
  export {
1577
1597
  He as A,
1578
- ae as B,
1598
+ le as B,
1579
1599
  Ke as C,
1580
- se as D,
1600
+ ae as D,
1581
1601
  Je as E,
1582
1602
  St as F,
1583
1603
  vt as G,
@@ -1593,8 +1613,8 @@ export {
1593
1613
  Mt as g,
1594
1614
  zt as h,
1595
1615
  Kt as i,
1596
- kt as j,
1597
- ce as k,
1616
+ Lt as j,
1617
+ ue as k,
1598
1618
  Nt as l,
1599
1619
  z as m,
1600
1620
  Jt as n,
@@ -1604,9 +1624,9 @@ export {
1604
1624
  Zt as r,
1605
1625
  $t as s,
1606
1626
  Ie as t,
1607
- de as u,
1627
+ fe as u,
1608
1628
  qe as v,
1609
- Lt as w,
1629
+ kt as w,
1610
1630
  xe as x,
1611
1631
  We as y,
1612
1632
  Bt as z