epic-designer-gold 0.0.43 → 0.0.44

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