epic-designer-gold 1.0.18 → 1.0.20

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 (39) hide show
  1. package/dist/{attributeView-D871aFNX.cjs → attributeView-BmCo-ANc.cjs} +1 -1
  2. package/dist/{attributeView-Cb_lnXnd.js → attributeView-O-Qh1M9P.js} +1 -1
  3. package/dist/col-B1GUMkMK.cjs +1 -0
  4. package/dist/col-D4hvKfJ6.js +31 -0
  5. package/dist/core/extensions/ESourceDataSelect/index.vue.d.ts +23 -0
  6. package/dist/{index-Cdz_E5uq.cjs → index-B0kfcLfJ.cjs} +1 -1
  7. package/dist/{index-B8VoR-rx.js → index-B4E--Rq2.js} +1 -1
  8. package/dist/{index-C-vzsLbI.cjs → index-B68OfrZG.cjs} +1 -1
  9. package/dist/index-BQOsTyqo.js +43 -0
  10. package/dist/{index-Bp5TeT0d.cjs → index-BUy3MFlm.cjs} +1 -1
  11. package/dist/{index-BXLg5QG8.cjs → index-Bg6nvWN1.cjs} +1 -1
  12. package/dist/{index-4Jbrf4oJ.js → index-CHPLNTf9.js} +1 -1
  13. package/dist/index-CNakddZH.cjs +1 -0
  14. package/dist/{index-HBD4zD_h.js → index-CYCAksKF.js} +1 -1
  15. package/dist/{index-DXYNbYfi.js → index-Cb9hyp0F.js} +1 -1
  16. package/dist/{index-DvnclCBw.js → index-D-7kLj6a.js} +249 -245
  17. package/dist/{index-DHgeDEYV.cjs → index-D0yHhce0.cjs} +1 -1
  18. package/dist/{index-Cdfyd5o8.cjs → index-DCCtWMoU.cjs} +1 -1
  19. package/dist/index-DSWpL0mZ.js +4 -0
  20. package/dist/{index-M1eoMHL_.cjs → index-DgVSwELW.cjs} +1 -1
  21. package/dist/{index-DpF28L2Q.js → index-GNzsI2DT.js} +1 -1
  22. package/dist/{index-Cwf1fnCe.js → index-H_RN47HQ.js} +1 -1
  23. package/dist/index-dPq5hTuk.cjs +10 -0
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/selectPage-DxjnEIXA.cjs +1 -0
  27. package/dist/selectPage-OLtWHgz5.js +163 -0
  28. package/dist/style.css +1 -1
  29. package/dist/{styleView-C-SMgcjX.cjs → styleView-BSPv8sby.cjs} +1 -1
  30. package/dist/{styleView-m63s2tRj.js → styleView-DPj14T8-.js} +1 -1
  31. package/dist/ui/elementPlus/index.cjs +1 -1
  32. package/dist/ui/elementPlus/index.js +394 -271
  33. package/dist/ui/elementPlus/select-page/index.d.ts +3 -0
  34. package/dist/ui/elementPlus/select-page/selectPage.vue.d.ts +78 -0
  35. package/package.json +1 -1
  36. package/dist/col-C4lVVBzC.cjs +0 -1
  37. package/dist/col-DcVPBKEc.js +0 -31
  38. package/dist/index-CNFfjSi0.js +0 -4
  39. package/dist/index-D7DryFmY.cjs +0 -10
@@ -1,5 +1,5 @@
1
- import { ref as C, reactive as re, defineComponent as le, openBlock as H, createBlock as Y, unref as R, mergeProps as be, withCtx as T, renderSlot as K, getCurrentInstance as ue, inject as te, watch as B, useAttrs as Re, provide as Z, shallowRef as Ue, computed as W, watchEffect as he, onUnmounted as $e, resolveComponent as Te, resolveDynamicComponent as Be, createVNode as Q, createCommentVNode as Ne, useSlots as Le, createElementBlock as Ee, Suspense as Fe, createElementVNode as X, Fragment as Je, renderList as ze, nextTick as ce, effectScope as He, isRef as Ke, getCurrentScope as Ze, onScopeDispose as We, onMounted as Ae, normalizeClass as Ge, toRaw as Ie } from "vue";
2
- import { p as J, f as Qe, d as ae, a as G, b as Ve, c as Ye, E as k, l as se, g as qe, e as Xe } from "./pluginManager-BCnrHPYv.js";
1
+ import { ref as P, reactive as re, defineComponent as le, openBlock as H, createBlock as Y, unref as R, mergeProps as be, withCtx as T, renderSlot as K, getCurrentInstance as ue, inject as ne, watch as B, useAttrs as Re, provide as Z, shallowRef as Ue, computed as W, watchEffect as he, onUnmounted as $e, resolveComponent as Te, resolveDynamicComponent as Be, createVNode as Q, createCommentVNode as Ne, useSlots as Le, createElementBlock as Ee, Suspense as Fe, createElementVNode as k, Fragment as Je, renderList as ze, nextTick as ce, effectScope as He, isRef as Ke, getCurrentScope as Ze, onScopeDispose as We, onMounted as Ae, normalizeClass as Ge, toRaw as Ie } from "vue";
2
+ import { p as z, f as Qe, d as ae, a as G, b as Ve, c as Ye, E as j, l as se, g as qe, e as Xe } from "./pluginManager-BCnrHPYv.js";
3
3
  import { a as pe, u as Oe } from "./index-B1s67XDZ.js";
4
4
  import { a as _e } from "./axios-CXDYiOMX.js";
5
5
  function Lt(e, n) {
@@ -10,9 +10,9 @@ function Lt(e, n) {
10
10
  }, n);
11
11
  };
12
12
  }
13
- function Ce() {
14
- const e = C({}), n = C({}), s = C(!1), r = C([]), c = re({});
15
- function i(p) {
13
+ function Pe() {
14
+ const e = P({}), n = P({}), s = P(!1), r = P([]), c = re({});
15
+ function a(p) {
16
16
  return e.value[p];
17
17
  }
18
18
  function w(p, D) {
@@ -22,21 +22,21 @@ function Ce() {
22
22
  delete e.value[p];
23
23
  }
24
24
  function h(p, D = !1) {
25
- const I = Object.entries(J.publicMethods).reduce(
26
- (M, [m, U]) => (M[m] = U.handler, M),
25
+ const I = Object.entries(z.publicMethods).reduce(
26
+ (C, [m, U]) => (C[m] = U.handler, C),
27
27
  {}
28
28
  );
29
29
  try {
30
30
  new Function(`const epic = this;${p}`).bind({
31
31
  ...I,
32
- getComponent: i,
33
- find: i,
32
+ getComponent: a,
33
+ find: a,
34
34
  defineExpose: N,
35
35
  publicMethods: I,
36
- pluginManager: J
36
+ pluginManager: z
37
37
  })();
38
- } catch (M) {
39
- D && console.error("[epic:自定义函数]异常:", M);
38
+ } catch (C) {
39
+ D && console.error("[epic:自定义函数]异常:", C);
40
40
  }
41
41
  }
42
42
  function N(p) {
@@ -48,16 +48,16 @@ function Ce() {
48
48
  return;
49
49
  }
50
50
  p.forEach((I) => {
51
- const M = I.args ? JSON.parse(I.args) : D;
51
+ const C = I.args ? JSON.parse(I.args) : D;
52
52
  switch (I.type) {
53
53
  case "public":
54
- t(I, M);
54
+ t(I, C);
55
55
  break;
56
56
  case "custom":
57
- x(I, M);
57
+ x(I, C);
58
58
  break;
59
59
  case "component":
60
- d(I, M);
60
+ d(I, C);
61
61
  break;
62
62
  default:
63
63
  console.warn(`未知的动作类型: ${I.type}`);
@@ -68,29 +68,29 @@ function Ce() {
68
68
  function t(p, D) {
69
69
  var I;
70
70
  try {
71
- (I = J.publicMethods[p.methodName]) == null || I.handler(...D);
72
- } catch (M) {
73
- console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, M);
71
+ (I = z.publicMethods[p.methodName]) == null || I.handler(...D);
72
+ } catch (C) {
73
+ console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, C);
74
74
  }
75
75
  }
76
76
  function x(p, D) {
77
- var I, M;
77
+ var I, C;
78
78
  try {
79
- (M = (I = n.value)[p.methodName]) == null || M.call(I, ...D);
79
+ (C = (I = n.value)[p.methodName]) == null || C.call(I, ...D);
80
80
  } catch (m) {
81
81
  console.error(`[Epic:自定义函数(${p.methodName})]执行异常:`, m);
82
82
  }
83
83
  }
84
84
  function d(p, D) {
85
- const I = p.componentId != null && i(p.componentId);
85
+ const I = p.componentId != null && a(p.componentId);
86
86
  if (!I) {
87
87
  console.warn(`[Epic:组件${p.componentId}]未找到`);
88
88
  return;
89
89
  }
90
90
  try {
91
91
  I[p.methodName](...D);
92
- } catch (M) {
93
- console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, M);
92
+ } catch (C) {
93
+ console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, C);
94
94
  }
95
95
  }
96
96
  function S(p = !0) {
@@ -107,7 +107,7 @@ function Ce() {
107
107
  }
108
108
  c[D] = p;
109
109
  }
110
- function P(p, D = "default") {
110
+ function M(p, D = "default") {
111
111
  if (c[D]) {
112
112
  ae(c[D], p, !1);
113
113
  return;
@@ -121,10 +121,10 @@ function Ce() {
121
121
  defaultComponentIds: r,
122
122
  forms: c,
123
123
  addFormData: E,
124
- setFormData: P,
125
- getComponentInstance: i,
124
+ setFormData: M,
125
+ getComponentInstance: a,
126
126
  // 简化查询函数, 推荐使用
127
- find: i,
127
+ find: a,
128
128
  addComponentInstance: w,
129
129
  removeComponentInstance: g,
130
130
  setMethods: h,
@@ -134,7 +134,7 @@ function Ce() {
134
134
  };
135
135
  }
136
136
  function ke() {
137
- const e = C([]), n = C([]), s = C(null);
137
+ const e = P([]), n = P([]), s = P(null);
138
138
  let r = 0;
139
139
  function c(h, N = "插入组件") {
140
140
  const O = Date.now();
@@ -143,7 +143,7 @@ function ke() {
143
143
  componentSchema: JSON.stringify(h)
144
144
  }, e.value.length > 60 && e.value.unshift());
145
145
  }
146
- function i() {
146
+ function a() {
147
147
  if (e.value.length === 0)
148
148
  return !1;
149
149
  const h = e.value.pop();
@@ -163,7 +163,7 @@ function ke() {
163
163
  undoList: n,
164
164
  currentRecord: s,
165
165
  push: c,
166
- undo: i,
166
+ undo: a,
167
167
  redo: w,
168
168
  reset: g
169
169
  };
@@ -176,13 +176,13 @@ const je = /* @__PURE__ */ le({
176
176
  },
177
177
  emits: ["updateFormItemRef"],
178
178
  setup(e, { emit: n }) {
179
- const s = J.getComponent("form-item"), r = e, c = n, i = C(), w = () => {
180
- c("updateFormItemRef", i.value);
179
+ const s = z.getComponent("form-item"), r = e, c = n, a = P(), w = () => {
180
+ c("updateFormItemRef", a.value);
181
181
  };
182
182
  return (g, h) => r.hasFormItem ? (H(), Y(R(s), be({
183
183
  key: 0,
184
184
  ref_key: "formItemRef",
185
- ref: i,
185
+ ref: a,
186
186
  onVnodeMounted: w
187
187
  }, r.formItemProps), {
188
188
  default: T(() => [
@@ -206,9 +206,9 @@ const je = /* @__PURE__ */ le({
206
206
  },
207
207
  emits: ["update:modelValue", "change", "update:dynamicId"],
208
208
  setup(e, { emit: n }) {
209
- const { proxy: s } = ue(), r = e, c = C(null);
210
- let i = te("formData", re({}));
211
- const w = te("slots", {}), g = te("pageManager", {}), h = te("disabled", { value: !1 }), N = te("ruleFieldPrefix", null), O = te("resetFormData", !1);
209
+ const { proxy: s } = ue(), r = e, c = P(null);
210
+ let a = ne("formData", re({}));
211
+ const w = ne("slots", {}), g = ne("pageManager", {}), h = ne("disabled", { value: !1 }), N = ne("ruleFieldPrefix", null), O = ne("resetFormData", !1);
212
212
  let t = re(G(r.componentSchema));
213
213
  S();
214
214
  async function x(o) {
@@ -243,8 +243,8 @@ const je = /* @__PURE__ */ le({
243
243
  }
244
244
  });
245
245
  if (u && (u != null && u.dataPath)) {
246
- const oe = u.dataPath.split(".").reduce((de, fe) => de[fe], _.data);
247
- o.componentProps.options = d(oe, u.dataKey, u.dataValue);
246
+ const q = u.dataPath.split(".").reduce((de, fe) => de[fe], _.data);
247
+ o.componentProps.options = d(q, u.dataKey, u.dataValue);
248
248
  } else
249
249
  o.componentProps.options = d(_.data, u.dataKey, u.dataValue);
250
250
  return o;
@@ -273,17 +273,17 @@ const je = /* @__PURE__ */ le({
273
273
  function S() {
274
274
  g.isDesignMode.value && typeof t.field == "string" && (t.field += "-design-mode");
275
275
  }
276
- (r.resetFormData || O) && (i = {});
277
- const y = n, E = C(), P = C(), p = (o) => {
278
- P.value = o;
276
+ (r.resetFormData || O) && (a = {});
277
+ const y = n, E = P(), M = P(), p = (o) => {
278
+ M.value = o;
279
279
  }, D = Re();
280
280
  Object.keys(D).length && Z("nodeAttrs", D);
281
- const I = Ue(null), M = W(() => {
281
+ const I = Ue(null), C = W(() => {
282
282
  var o, l;
283
- return (o = t.componentProps) != null && o.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((l = t.show) == null ? void 0 : l.call(t, { values: i })) ?? !0;
283
+ return (o = t.componentProps) != null && o.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((l = t.show) == null ? void 0 : l.call(t, { values: a })) ?? !0;
284
284
  }), m = W(() => {
285
285
  var u;
286
- const o = M.value && ((u = t.rules) == null ? void 0 : u.map((_) => ({
286
+ const o = C.value && ((u = t.rules) == null ? void 0 : u.map((_) => ({
287
287
  ..._,
288
288
  validator: _.validator && g.funcs.value[_.validator]
289
289
  // 自定义校验函数
@@ -298,24 +298,28 @@ const je = /* @__PURE__ */ le({
298
298
  };
299
299
  return $.children && delete $.children, $;
300
300
  }), U = W(() => {
301
- var $, u;
301
+ var $, u, _;
302
302
  const o = (($ = L.value) == null ? void 0 : $.bindModel) ?? "modelValue", l = {};
303
- return t.on && Object.keys(t.on).forEach((_) => {
304
- l[`on${Ye(_)}`] = (...z) => g.doActions(t.on[_], ...z);
303
+ return t.on && Object.keys(t.on).forEach((J) => {
304
+ l[`on${Ye(J)}`] = (...q) => g.doActions(t.on[J], ...q);
305
+ }), t.type === "selectpage" && (t.componentProps.defaultData = {
306
+ value: a[t.field],
307
+ label: a[a[t.field]]
305
308
  }), {
306
309
  ...r,
307
310
  ...t.componentProps,
308
- disabled: (h == null ? void 0 : h.value) || ((u = t.componentProps) == null ? void 0 : u.disabled),
311
+ // 为了避免禁用对超链接输入框点击的影响
312
+ disabled: r.componentSchema.type === "input" && r.componentSchema.componentProps && ((u = r.componentSchema.componentProps) != null && u.isLink) ? !1 : (h == null ? void 0 : h.value) || ((_ = t.componentProps) == null ? void 0 : _.disabled),
309
313
  bindModel: o,
310
314
  ...l
311
315
  };
312
- }), L = W(() => J.getComponentConfingByType(t.type) ?? null);
316
+ }), L = W(() => z.getComponentConfingByType(t.type) ?? null);
313
317
  he(() => {
314
- c.value = r.modelValue ?? i[t.field ?? ""];
318
+ c.value = r.modelValue ?? a[t.field ?? ""];
315
319
  }), B(
316
320
  () => c.value,
317
321
  () => {
318
- c.value !== (r.modelValue ?? i[t.field ?? ""]) && a(c.value);
322
+ c.value !== (r.modelValue ?? a[t.field ?? ""]) && i(c.value);
319
323
  }
320
324
  ), B(
321
325
  () => E.value,
@@ -327,17 +331,17 @@ const je = /* @__PURE__ */ le({
327
331
  function A() {
328
332
  var l;
329
333
  const o = E.value || s;
330
- t.id && o && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (o.setValue = a, o.getValue = () => i[t.field] || r.modelValue), o.setAttr = ($, u) => (t.componentProps || (t.componentProps = {}), t.componentProps[$] = u), o.getAttr = ($) => t.componentProps[$], g.addComponentInstance(t.id, o), (l = L.value) != null && l.defaultSchema.input && t.noFormItem !== !0 && P.value && g.addComponentInstance(t.id + "formItem", P.value));
334
+ t.id && o && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (o.setValue = i, o.getValue = () => a[t.field] || r.modelValue), o.setAttr = ($, u) => (t.componentProps || (t.componentProps = {}), t.componentProps[$] = u), o.getAttr = ($) => t.componentProps[$], g.addComponentInstance(t.id, o), (l = L.value) != null && l.defaultSchema.input && t.noFormItem !== !0 && M.value && g.addComponentInstance(t.id + "formItem", M.value));
331
335
  }
332
336
  function v() {
333
337
  var o;
334
338
  t.id && (g.removeComponentInstance(t.id), (o = L.value) != null && o.defaultSchema.input && t.noFormItem !== !0 && g.removeComponentInstance(t.id + "formItem"));
335
339
  }
336
- async function j() {
340
+ async function ee() {
337
341
  var l, $, u;
338
342
  if (t = await x(t), typeof ((l = t.componentProps) == null ? void 0 : l.defaultValue) < "u") {
339
- const _ = g.isDesignMode.value ? ($ = t.componentProps) == null ? void 0 : $.defaultValue : i[t.field] ?? ((u = t.componentProps) == null ? void 0 : u.defaultValue);
340
- a(G(_));
343
+ const _ = g.isDesignMode.value ? ($ = t.componentProps) == null ? void 0 : $.defaultValue : a[t.field] ?? ((u = t.componentProps) == null ? void 0 : u.defaultValue);
344
+ i(G(_));
341
345
  }
342
346
  if (t.type === "slot") {
343
347
  const _ = t.slotName;
@@ -346,13 +350,13 @@ const je = /* @__PURE__ */ le({
346
350
  setup() {
347
351
  return () => K(w, _, {
348
352
  componentSchema: t,
349
- model: i
353
+ model: a
350
354
  });
351
355
  }
352
356
  });
353
357
  return;
354
358
  }
355
- const o = J.getComponent(t.type);
359
+ const o = z.getComponent(t.type);
356
360
  if (!o) {
357
361
  console.error(`组件${t.type}未注册`);
358
362
  return;
@@ -364,12 +368,12 @@ const je = /* @__PURE__ */ le({
364
368
  I.value = o;
365
369
  }
366
370
  function f(o) {
367
- console.log("%c [ v ]-449", "font-size:13px; background:pink; color:#bf2c9f;", i), Object.prototype.toString.call(o), Object.prototype.toString.call(o) === "[object Array]" ? o.forEach((l) => {
368
- i[l.value] = l.label;
369
- }) : i[o.value] = o.label, r.id ? k.emit("updateformData" + r.id, i) : k.emit("updateformData", i);
371
+ console.log("%c [ v ]-462", "font-size:13px; background:pink; color:#bf2c9f;", o), Object.prototype.toString.call(o) === "[object Array]" ? o.forEach((l) => {
372
+ a[l.value] = l.label;
373
+ }) : a[o.value] = o.label, r.id ? j.emit("updateformData" + r.id, a) : j.emit("updateformData", a);
370
374
  }
371
- function a(o) {
372
- y("update:modelValue", o), y("change", o), t.field && (i[t.field] = o), r.id ? k.emit("updateformData" + r.id, i) : k.emit("updateformData", i);
375
+ function i(o) {
376
+ y("update:modelValue", o), y("change", o), t.field && (a[t.field] = o), r.id ? j.emit("updateformData" + r.id, a) : j.emit("updateformData", a);
373
377
  }
374
378
  function F(o) {
375
379
  y("update:dynamicId", o);
@@ -388,7 +392,7 @@ const je = /* @__PURE__ */ le({
388
392
  });
389
393
  if (l === V)
390
394
  return !1;
391
- V = l, j();
395
+ V = l, ee();
392
396
  },
393
397
  {
394
398
  immediate: !0,
@@ -397,7 +401,7 @@ const je = /* @__PURE__ */ le({
397
401
  ), $e(v), (o, l) => {
398
402
  var u;
399
403
  const $ = Te("ENode");
400
- return I.value && M.value ? (H(), Y(je, {
404
+ return I.value && C.value ? (H(), Y(je, {
401
405
  key: 0,
402
406
  hasFormItem: R(t).noFormItem !== !0 && ((u = L.value) == null ? void 0 : u.defaultSchema.input),
403
407
  formItemProps: m.value,
@@ -408,11 +412,11 @@ const je = /* @__PURE__ */ le({
408
412
  ref_key: "componentInstance",
409
413
  ref: E,
410
414
  onVnodeMounted: A,
411
- model: R(i)
415
+ model: R(a)
412
416
  }, { ...U.value }, {
413
417
  [U.value.bindModel]: c.value,
414
418
  ["onUpdate:" + U.value.bindModel]: l[0] || (l[0] = (_) => c.value = _),
415
- [`onUpdate:${U.value.bindModel}` || ""]: a,
419
+ [`onUpdate:${U.value.bindModel}` || ""]: i,
416
420
  "onUpdate:modelValueLabel": f,
417
421
  "onUpdate:dynamicId": F
418
422
  }), {
@@ -435,7 +439,7 @@ const je = /* @__PURE__ */ le({
435
439
  }
436
440
  });
437
441
  function tt() {
438
- const e = C(!1), n = Ce(), s = C({});
442
+ const e = P(!1), n = Pe(), s = P({});
439
443
  function r() {
440
444
  return new Promise((d) => {
441
445
  if (e.value)
@@ -454,15 +458,15 @@ function tt() {
454
458
  if (!S) throw new Error(`表单 [name=${d}] 不存在`);
455
459
  return S;
456
460
  }
457
- async function i(d, S) {
461
+ async function a(d, S) {
458
462
  const y = await c(d);
459
463
  return G(await S(y));
460
464
  }
461
465
  async function w(d = "default") {
462
- return await i(d, (S) => S.getData());
466
+ return await a(d, (S) => S.getData());
463
467
  }
464
468
  function g(d, S = "default", y = void 0) {
465
- var E, P;
469
+ var E, M;
466
470
  if (y && Object.keys(y).length) {
467
471
  let p = function(m) {
468
472
  let U = [];
@@ -473,34 +477,34 @@ function tt() {
473
477
  var L;
474
478
  let U = p((L = y == null ? void 0 : y.schemas[0]) == null ? void 0 : L.children);
475
479
  return Object.keys(m).forEach((A) => {
476
- var f, a, F, V, o, l, $;
477
- const v = U.find((u) => u.field === A), j = ["datetimerange", "daterange", "monthrange", "dates"];
478
- if ((v && (v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "select" && ((f = v == null ? void 0 : v.componentProps) != null && f.multiple) || (v == null ? void 0 : v.type) === "cascader" && !((F = (a = v == null ? void 0 : v.componentProps) == null ? void 0 : a.props) != null && F.multiple) || (v == null ? void 0 : v.type) === "date" && j.includes((V = v == null ? void 0 : v.componentProps) == null ? void 0 : V.type)) && typeof m[A] == "string")
480
+ var f, i, F, V, o, l, $;
481
+ const v = U.find((u) => u.field === A), ee = ["datetimerange", "daterange", "monthrange", "dates"];
482
+ if ((v && (v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "select" && ((f = v == null ? void 0 : v.componentProps) != null && f.multiple) || (v == null ? void 0 : v.type) === "cascader" && !((F = (i = v == null ? void 0 : v.componentProps) == null ? void 0 : i.props) != null && F.multiple) || (v == null ? void 0 : v.type) === "date" && ee.includes((V = v == null ? void 0 : v.componentProps) == null ? void 0 : V.type)) && typeof m[A] == "string")
479
483
  m[A] = (o = m[A]) == null ? void 0 : o.split(",");
480
484
  else if ((v == null ? void 0 : v.type) === "cascader" && (($ = (l = v == null ? void 0 : v.componentProps) == null ? void 0 : l.props) != null && $.multiple) && typeof m[A] == "string")
481
485
  m[A].indexOf(";") === -1 && m[A].indexOf(";") === -1 ? m[A][m[A]] : m[A].indexOf(";") > -1 ? m[A] = m[A].split(";").map((u) => u.split(",")) : m[A].indexOf(";") === -1 ? m[A] = m[A].split(",") : m[A].indexOf(";") > -1 ? m[A] = m[A].split(";").map((u) => u.split(",")) : m[A].indexOf(";") === -1 && (m[A] = m[A].split(","));
482
486
  else if (((v == null ? void 0 : v.type) === "upload-image" || (v == null ? void 0 : v.type) === "upload-file") && typeof m[A] == "string") {
483
487
  let u = [];
484
- Object.entries(m).forEach(([_, z]) => {
485
- m[A] === z && _ !== v.field && _.indexOf("@") > -1 && _.indexOf(A) > -1 && (u = _.split("@")[1].split(","));
486
- }), m[A] = m[A].split(",").map((_, z) => ({
488
+ Object.entries(m).forEach(([_, J]) => {
489
+ m[A] === J && _ !== v.field && _.indexOf("@") > -1 && _.indexOf(A) > -1 && (u = _.split("@")[1].split(","));
490
+ }), m[A] = m[A].split(",").map((_, J) => ({
487
491
  url: _,
488
- name: u[z] || _
492
+ name: u[J] || _
489
493
  }));
490
494
  } else (v == null ? void 0 : v.type) === "number" || (v == null ? void 0 : v.type) === "slider" ? m[A] = Number(m[A]) : (v == null ? void 0 : v.type) === "switch" && (m[A] = typeof m[A] == "boolean" ? m[A] : m[A].indexOf("true") > -1);
491
495
  }), m;
492
496
  }(d);
493
497
  n.setFormData(I, S);
494
- const M = (E = s.value) == null ? void 0 : E[S];
495
- M == null || M.clearValidate();
498
+ const C = (E = s.value) == null ? void 0 : E[S];
499
+ C == null || C.clearValidate();
496
500
  } else {
497
501
  n.setFormData(d, S);
498
- const p = (P = s.value) == null ? void 0 : P[S];
502
+ const p = (M = s.value) == null ? void 0 : M[S];
499
503
  p == null || p.clearValidate();
500
504
  }
501
505
  }
502
506
  async function h(d = "default") {
503
- return await i(d, async (S) => (await S.validate(), await S.getData()));
507
+ return await a(d, async (S) => (await S.validate(), await S.getData()));
504
508
  }
505
509
  async function N(d) {
506
510
  await r();
@@ -548,11 +552,11 @@ const nt = {
548
552
  },
549
553
  emits: ["change", "ready"],
550
554
  setup(e, { expose: n, emit: s }) {
551
- const r = se(() => import("./index-DgcFxYFp.js")), c = s, i = C([]), w = C({}), { ready: g, pageManager: h, forms: N, getData: O, setData: t, validate: x, getForms: d, setForms: S, validateAll: y, getFormInstance: E } = tt(), P = e, p = re({
555
+ const r = se(() => import("./index-DgcFxYFp.js")), c = s, a = P([]), w = P({}), { ready: g, pageManager: h, forms: N, getData: O, setData: t, validate: x, getForms: d, setForms: S, validateAll: y, getFormInstance: E } = tt(), M = e, p = re({
552
556
  schemas: []
553
557
  });
554
558
  B(
555
- () => P.pageSchema,
559
+ () => M.pageSchema,
556
560
  (f) => {
557
561
  ae(p, f);
558
562
  },
@@ -561,11 +565,11 @@ const nt = {
561
565
  deep: !0
562
566
  }
563
567
  ), B(
564
- () => P.formData,
568
+ () => M.formData,
565
569
  (f) => {
566
570
  if (f) {
567
- let a = L(f);
568
- w.value = a, t(a);
571
+ let i = L(f);
572
+ w.value = i, t(i);
569
573
  }
570
574
  },
571
575
  {
@@ -574,83 +578,83 @@ const nt = {
574
578
  }
575
579
  );
576
580
  function D(f) {
577
- let a = [];
581
+ let i = [];
578
582
  return f.forEach((F) => {
579
- F.children && (a = [...a, ...D(F.children)]), a.push(F);
580
- }), a;
583
+ F.children && (i = [...i, ...D(F.children)]), i.push(F);
584
+ }), i;
581
585
  }
582
- function I(f, a) {
586
+ function I(f, i) {
583
587
  function F(o) {
584
588
  return JSON.parse(JSON.stringify(o));
585
589
  }
586
590
  function V(o, l) {
587
591
  if (o.type === "card" && o.multiple && o.field && Array.isArray(l[o.field]))
588
592
  return l[o.field].map((u) => {
589
- var z;
593
+ var J;
590
594
  const _ = F({ ...o, multiple: !0 });
591
- return _.children = (z = _.children) == null ? void 0 : z.map((oe) => V(oe, u)).flat(), _;
595
+ return _.children = (J = _.children) == null ? void 0 : J.map((q) => V(q, u)).flat(), _;
592
596
  });
593
597
  const $ = F(o);
594
598
  return Array.isArray($.children) && ($.children = $.children.map((u) => V(u, l)).flat()), $;
595
599
  }
596
- return f.map((o) => V(o, a)).flat();
600
+ return f.map((o) => V(o, i)).flat();
597
601
  }
598
- function M(f, a = "", F = { root: 0 }) {
599
- const V = a || "root";
600
- return a || (F.root = 0), F[V] === void 0 && (F[V] = 0), f.map((o) => {
602
+ function C(f, i = "", F = { root: 0 }) {
603
+ const V = i || "root";
604
+ return i || (F.root = 0), F[V] === void 0 && (F[V] = 0), f.map((o) => {
601
605
  o.field && (o.oldField = JSON.parse(JSON.stringify(o.field)));
602
606
  const l = { ...o };
603
607
  if (o.type === "card") {
604
608
  const $ = o.field || "";
605
- o.multiple ? (l.field = a ? `${a}.${$}[${F[V]}]` : `${$}[${F[V]}]`, F[V]++) : o.field && a && (l.field = `${a}.${$}`);
606
- const u = l.field || a;
609
+ o.multiple ? (l.field = i ? `${i}.${$}[${F[V]}]` : `${$}[${F[V]}]`, F[V]++) : o.field && i && (l.field = `${i}.${$}`);
610
+ const u = l.field || i;
607
611
  F[u] = 0;
608
- } else o.field && a && (l.field = `${a}.${o.field}`);
609
- return o.children && (l.children = M(o.children, l.field || a, F)), l;
612
+ } else o.field && i && (l.field = `${i}.${o.field}`);
613
+ return o.children && (l.children = C(o.children, l.field || i, F)), l;
610
614
  });
611
615
  }
612
- function m(f, a, F = "", V = {}) {
616
+ function m(f, i, F = "", V = {}) {
613
617
  const o = F || "root";
614
618
  return V[o] === void 0 && (V[o] = 0), f.forEach((l) => {
615
619
  const $ = l.field || "";
616
620
  let u = F ? `${F}.${$}` : `${$}`;
617
- l.type === "card" && l.multiple ? (typeof a[u][`${V[o]}`] == "object" ? Object.keys(a[u][`${V[o]}`]).forEach((_) => {
618
- a[`${u}[${V[o]}].${_}`] = a[u][`${V[o]}`][_];
619
- }) : a[`${u}[${V[o]}]`] = a[u][`${V[o]}`], l.children && (l.children = m(
621
+ l.type === "card" && l.multiple ? (typeof i[u][`${V[o]}`] == "object" ? Object.keys(i[u][`${V[o]}`]).forEach((_) => {
622
+ i[`${u}[${V[o]}].${_}`] = i[u][`${V[o]}`][_];
623
+ }) : i[`${u}[${V[o]}]`] = i[u][`${V[o]}`], l.children && (l.children = m(
620
624
  l.children,
621
- a,
625
+ i,
622
626
  `${u}[${V[o]}]` || F,
623
627
  V
624
- )), V[o]++) : l.children && (l.children = m(l.children, a, F, V));
625
- }), V[o] = 0, a;
628
+ )), V[o]++) : l.children && (l.children = m(l.children, i, F, V));
629
+ }), V[o] = 0, i;
626
630
  }
627
- function U(f, a, F) {
628
- let V = m(G(f), G(a));
631
+ function U(f, i, F) {
632
+ let V = m(G(f), G(i));
629
633
  return {
630
- obj: M(f),
634
+ obj: C(f),
631
635
  dataObj: V
632
636
  };
633
637
  }
634
638
  function L(f) {
635
- let a = D(P.pageSchema.schemas[0].children);
636
- i.value = a.filter((l) => l.type === "card" && l.multiple);
637
- const F = I(P.pageSchema.schemas[0].children, f);
638
- let { obj: V, dataObj: o } = U(F, f, i.value);
639
- return f = o, P.pageSchema.schemas[0].children = V, Object.keys(f).forEach((l) => {
640
- var $, u, _, z, oe, de, fe;
639
+ let i = D(M.pageSchema.schemas[0].children);
640
+ a.value = i.filter((l) => l.type === "card" && l.multiple);
641
+ const F = I(M.pageSchema.schemas[0].children, f);
642
+ let { obj: V, dataObj: o } = U(F, f, a.value);
643
+ return f = o, M.pageSchema.schemas[0].children = V, Object.keys(f).forEach((l) => {
644
+ var $, u, _, J, q, de, fe;
641
645
  if (l.indexOf("@") < 0) {
642
- const b = a.find((q) => q.field === l), Pe = ["datetimerange", "daterange", "monthrange", "dates"];
643
- if ((b && (b == null ? void 0 : b.type) === "checkbox" || (b == null ? void 0 : b.type) === "select" && (($ = b == null ? void 0 : b.componentProps) != null && $.multiple) || (b == null ? void 0 : b.type) === "cascader" && !((_ = (u = b == null ? void 0 : b.componentProps) == null ? void 0 : u.props) != null && _.multiple) || (b == null ? void 0 : b.type) === "date" && Pe.includes((z = b == null ? void 0 : b.componentProps) == null ? void 0 : z.type)) && typeof f[l] == "string")
644
- f[l] = (oe = f[l]) == null ? void 0 : oe.split(",");
646
+ const b = i.find((X) => X.field === l), Me = ["datetimerange", "daterange", "monthrange", "dates"];
647
+ if ((b && (b == null ? void 0 : b.type) === "checkbox" || (b == null ? void 0 : b.type) === "select" && (($ = b == null ? void 0 : b.componentProps) != null && $.multiple) || (b == null ? void 0 : b.type) === "cascader" && !((_ = (u = b == null ? void 0 : b.componentProps) == null ? void 0 : u.props) != null && _.multiple) || (b == null ? void 0 : b.type) === "date" && Me.includes((J = b == null ? void 0 : b.componentProps) == null ? void 0 : J.type)) && typeof f[l] == "string")
648
+ f[l] = (q = f[l]) == null ? void 0 : q.split(",");
645
649
  else if ((b == null ? void 0 : b.type) === "cascader" && ((fe = (de = b == null ? void 0 : b.componentProps) == null ? void 0 : de.props) != null && fe.multiple) && typeof f[l] == "string")
646
- f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((q) => q.split(",")) : f[l] = f[l].split(","), f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((q) => q.split(",")) : f[l] = f[l].split(",");
650
+ f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((X) => X.split(",")) : f[l] = f[l].split(","), f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((X) => X.split(",")) : f[l] = f[l].split(",");
647
651
  else if (((b == null ? void 0 : b.type) === "upload-image" || (b == null ? void 0 : b.type) === "upload-file") && typeof f[l] == "string") {
648
- let q = [];
649
- Object.entries(f).forEach(([ee, ye]) => {
650
- f[l] === ye && ee !== b.field && ee.indexOf("@") > -1 && ee.indexOf(l) > -1 && (q = ee.split("@")[1].split(","));
651
- }), f[l] = f[l].split(",").map((ee, ye) => ({
652
- url: ee,
653
- name: q[ye] || ee
652
+ let X = [];
653
+ Object.entries(f).forEach(([te, ye]) => {
654
+ f[l] === ye && te !== b.field && te.indexOf("@") > -1 && te.indexOf(l) > -1 && (X = te.split("@")[1].split(","));
655
+ }), f[l] = f[l].split(",").map((te, ye) => ({
656
+ url: te,
657
+ name: X[ye] || te
654
658
  }));
655
659
  } else (b == null ? void 0 : b.type) === "number" || (b == null ? void 0 : b.type) === "slider" ? f[l] = Number(f[l]) : (b == null ? void 0 : b.type) === "switch" && (f[l] = typeof f[l] == "boolean" ? f[l] : f[l].indexOf("true") > -1);
656
660
  }
@@ -666,15 +670,15 @@ const nt = {
666
670
  }
667
671
  ), Z("slots", Le()), Z("pageManager", h), Z("forms", N), Z("pageSchema", p), Z(
668
672
  "disabled",
669
- W(() => P.disabled)
673
+ W(() => M.disabled)
670
674
  );
671
675
  const A = ue(), v = A == null ? void 0 : A.proxy;
672
- function j() {
676
+ function ee() {
673
677
  ce(() => {
674
678
  g.value = !0, c("ready", h), v && h.addComponentInstance("builder", v);
675
679
  });
676
680
  }
677
- return k.on("updateformData" + (P.id ? P.id : ""), (f) => {
681
+ return j.on("updateformData" + (M.id ? M.id : ""), (f) => {
678
682
  c("change", f);
679
683
  }), n({
680
684
  ready: g,
@@ -686,22 +690,22 @@ const nt = {
686
690
  setForms: S,
687
691
  validateAll: y,
688
692
  getFormInstance: E
689
- }), (f, a) => R(J).initialized.value ? (H(), Y(Fe, {
693
+ }), (f, i) => R(z).initialized.value ? (H(), Y(Fe, {
690
694
  key: 1,
691
- onResolve: j
695
+ onResolve: ee
692
696
  }, {
693
697
  default: T(() => [
694
- X("div", ot, [
698
+ k("div", ot, [
695
699
  (H(!0), Ee(Je, null, ze(p.schemas, (F, V) => (H(), Y(R(et), {
696
- id: P.id,
700
+ id: M.id,
697
701
  key: V,
698
- sourceDateUrl: P.sourceDateUrl,
702
+ sourceDateUrl: M.sourceDateUrl,
699
703
  componentSchema: F
700
704
  }, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
701
705
  ])
702
706
  ]),
703
707
  fallback: T(() => [
704
- X("div", st, [
708
+ k("div", st, [
705
709
  Q(R(r))
706
710
  ])
707
711
  ]),
@@ -717,7 +721,7 @@ function lt(e) {
717
721
  const c = () => {
718
722
  n -= 1, r && n <= 0 && (r.stop(), s = void 0, r = void 0);
719
723
  };
720
- return (...i) => (n += 1, r || (r = He(!0), s = r.run(() => e(...i))), xe(c), s);
724
+ return (...a) => (n += 1, r || (r = He(!0), s = r.run(() => e(...a))), xe(c), s);
721
725
  }
722
726
  function ie(e) {
723
727
  return typeof e == "function" ? e() : R(e);
@@ -736,23 +740,23 @@ function mt(e = !1, n = {}) {
736
740
  const {
737
741
  truthyValue: s = !0,
738
742
  falsyValue: r = !1
739
- } = n, c = Ke(e), i = C(e);
743
+ } = n, c = Ke(e), a = P(e);
740
744
  function w(g) {
741
745
  if (arguments.length)
742
- return i.value = g, i.value;
746
+ return a.value = g, a.value;
743
747
  {
744
748
  const h = ie(s);
745
- return i.value = i.value === h ? ie(r) : h, i.value;
749
+ return a.value = a.value === h ? ie(r) : h, a.value;
746
750
  }
747
751
  }
748
- return c ? w : [i, w];
752
+ return c ? w : [a, w];
749
753
  }
750
754
  function Jt(e, n, s) {
751
755
  const r = B(e, (...c) => (ce(() => r()), n(...c)), s);
752
756
  return r;
753
757
  }
754
758
  const ve = at ? window : void 0;
755
- function ne(e) {
759
+ function oe(e) {
756
760
  var n;
757
761
  const s = ie(e);
758
762
  return (n = s == null ? void 0 : s.$el) != null ? n : s;
@@ -762,15 +766,15 @@ function ht(...e) {
762
766
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, r, c] = e, n = ve) : [n, s, r, c] = e, !n)
763
767
  return dt;
764
768
  Array.isArray(s) || (s = [s]), Array.isArray(r) || (r = [r]);
765
- const i = [], w = () => {
766
- i.forEach((O) => O()), i.length = 0;
769
+ const a = [], w = () => {
770
+ a.forEach((O) => O()), a.length = 0;
767
771
  }, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)), h = B(
768
- () => [ne(n), ie(c)],
772
+ () => [oe(n), ie(c)],
769
773
  ([O, t]) => {
770
774
  if (w(), !O)
771
775
  return;
772
776
  const x = ut(t) ? { ...t } : t;
773
- i.push(
777
+ a.push(
774
778
  ...s.flatMap((d) => r.map((S) => g(O, d, S, x)))
775
779
  );
776
780
  },
@@ -783,27 +787,27 @@ function ht(...e) {
783
787
  function vt(e) {
784
788
  return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
785
789
  }
786
- function Me(...e) {
790
+ function Ce(...e) {
787
791
  let n, s, r = {};
788
792
  e.length === 3 ? (n = e[0], s = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (n = !0, s = e[0], r = e[1]) : (n = e[0], s = e[1]) : (n = !0, s = e[0]);
789
793
  const {
790
794
  target: c = ve,
791
- eventName: i = "keydown",
795
+ eventName: a = "keydown",
792
796
  passive: w = !1,
793
797
  dedupe: g = !1
794
798
  } = r, h = vt(n);
795
- return ht(c, i, (O) => {
799
+ return ht(c, a, (O) => {
796
800
  O.repeat && ie(g) || h(O) && s(O);
797
801
  }, w);
798
802
  }
799
803
  function we(e, n, s = {}) {
800
- return Me(e, n, { ...s, eventName: "keydown" });
804
+ return Ce(e, n, { ...s, eventName: "keydown" });
801
805
  }
802
806
  function Se(e, n, s = {}) {
803
- return Me(e, n, { ...s, eventName: "keyup" });
807
+ return Ce(e, n, { ...s, eventName: "keyup" });
804
808
  }
805
809
  function gt() {
806
- const e = C(!1), n = ue();
810
+ const e = P(!1), n = ue();
807
811
  return n && Ae(() => {
808
812
  e.value = !0;
809
813
  }, n), e;
@@ -817,19 +821,19 @@ function wt(e) {
817
821
  }
818
822
  function St(e, n, s = {}) {
819
823
  const { window: r = ve, ...c } = s;
820
- let i;
824
+ let a;
821
825
  const w = yt(() => r && "ResizeObserver" in r), g = () => {
822
- i && (i.disconnect(), i = void 0);
826
+ a && (a.disconnect(), a = void 0);
823
827
  }, h = W(() => {
824
828
  const t = ie(e);
825
- return Array.isArray(t) ? t.map((x) => ne(x)) : [ne(t)];
829
+ return Array.isArray(t) ? t.map((x) => oe(x)) : [oe(t)];
826
830
  }), N = B(
827
831
  h,
828
832
  (t) => {
829
833
  if (g(), w.value && r) {
830
- i = new ResizeObserver(n);
834
+ a = new ResizeObserver(n);
831
835
  for (const x of t)
832
- x && i.observe(x, c);
836
+ x && a.observe(x, c);
833
837
  }
834
838
  },
835
839
  { immediate: !0, flush: "post" }
@@ -842,15 +846,15 @@ function St(e, n, s = {}) {
842
846
  };
843
847
  }
844
848
  function zt(e, n = { width: 0, height: 0 }, s = {}) {
845
- const { window: r = ve, box: c = "content-box" } = s, i = W(() => {
849
+ const { window: r = ve, box: c = "content-box" } = s, a = W(() => {
846
850
  var t, x;
847
- return (x = (t = ne(e)) == null ? void 0 : t.namespaceURI) == null ? void 0 : x.includes("svg");
848
- }), w = C(n.width), g = C(n.height), { stop: h } = St(
851
+ return (x = (t = oe(e)) == null ? void 0 : t.namespaceURI) == null ? void 0 : x.includes("svg");
852
+ }), w = P(n.width), g = P(n.height), { stop: h } = St(
849
853
  e,
850
854
  ([t]) => {
851
855
  const x = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
852
- if (r && i.value) {
853
- const d = ne(e);
856
+ if (r && a.value) {
857
+ const d = oe(e);
854
858
  if (d) {
855
859
  const S = d.getBoundingClientRect();
856
860
  w.value = S.width, g.value = S.height;
@@ -864,11 +868,11 @@ function zt(e, n = { width: 0, height: 0 }, s = {}) {
864
868
  s
865
869
  );
866
870
  pt(() => {
867
- const t = ne(e);
871
+ const t = oe(e);
868
872
  t && (w.value = "offsetWidth" in t ? t.offsetWidth : n.width, g.value = "offsetHeight" in t ? t.offsetHeight : n.height);
869
873
  });
870
874
  const N = B(
871
- () => ne(e),
875
+ () => oe(e),
872
876
  (t) => {
873
877
  w.value = t ? n.width : 0, g.value = t ? n.height : 0;
874
878
  }
@@ -883,7 +887,7 @@ function zt(e, n = { width: 0, height: 0 }, s = {}) {
883
887
  };
884
888
  }
885
889
  function Ht(e, n, s, r = {}) {
886
- var c, i, w;
890
+ var c, a, w;
887
891
  const {
888
892
  clone: g = !1,
889
893
  passive: h = !1,
@@ -891,31 +895,31 @@ function Ht(e, n, s, r = {}) {
891
895
  deep: O = !1,
892
896
  defaultValue: t,
893
897
  shouldEmit: x
894
- } = r, d = ue(), S = s || (d == null ? void 0 : d.emit) || ((c = d == null ? void 0 : d.$emit) == null ? void 0 : c.bind(d)) || ((w = (i = d == null ? void 0 : d.proxy) == null ? void 0 : i.$emit) == null ? void 0 : w.bind(d == null ? void 0 : d.proxy));
898
+ } = r, d = ue(), S = s || (d == null ? void 0 : d.emit) || ((c = d == null ? void 0 : d.$emit) == null ? void 0 : c.bind(d)) || ((w = (a = d == null ? void 0 : d.proxy) == null ? void 0 : a.$emit) == null ? void 0 : w.bind(d == null ? void 0 : d.proxy));
895
899
  let y = N;
896
900
  n || (n = "modelValue"), y = y || `update:${n.toString()}`;
897
- const E = (D) => g ? typeof g == "function" ? g(D) : wt(D) : D, P = () => it(e[n]) ? E(e[n]) : t, p = (D) => {
901
+ const E = (D) => g ? typeof g == "function" ? g(D) : wt(D) : D, M = () => it(e[n]) ? E(e[n]) : t, p = (D) => {
898
902
  x ? x(D) && S(y, D) : S(y, D);
899
903
  };
900
904
  if (h) {
901
- const D = P(), I = C(D);
902
- let M = !1;
905
+ const D = M(), I = P(D);
906
+ let C = !1;
903
907
  return B(
904
908
  () => e[n],
905
909
  (m) => {
906
- M || (M = !0, I.value = E(m), ce(() => M = !1));
910
+ C || (C = !0, I.value = E(m), ce(() => C = !1));
907
911
  }
908
912
  ), B(
909
913
  I,
910
914
  (m) => {
911
- !M && (m !== e[n] || O) && p(m);
915
+ !C && (m !== e[n] || O) && p(m);
912
916
  },
913
917
  { deep: O }
914
918
  ), I;
915
919
  } else
916
920
  return W({
917
921
  get() {
918
- return P();
922
+ return M();
919
923
  },
920
924
  set(D) {
921
925
  p(D);
@@ -930,7 +934,7 @@ function Kt() {
930
934
  };
931
935
  }
932
936
  function Dt() {
933
- const e = C(!1);
937
+ const e = P(!1);
934
938
  return Ae(() => {
935
939
  bt(e), Et(e);
936
940
  }), B(
@@ -950,8 +954,8 @@ function Et(e) {
950
954
  var n = document.querySelector("html"), s = new MutationObserver(function(r) {
951
955
  for (var c of r)
952
956
  if (c.type === "attributes" && c.attributeName === "class") {
953
- const i = c.target;
954
- new Array(...i.classList).includes("dark") ? e.value = !0 : e.value = !1;
957
+ const a = c.target;
958
+ new Array(...a.classList).includes("dark") ? e.value = !0 : e.value = !1;
955
959
  }
956
960
  });
957
961
  s.observe(n, {
@@ -962,19 +966,19 @@ function Et(e) {
962
966
  });
963
967
  }
964
968
  function At() {
965
- const e = C(1), n = C(!1), { isDark: s } = Dt(), { pressSpace: r, pressShift: c, pressCtrl: i } = Ot();
969
+ const e = P(1), n = P(!1), { isDark: s } = Dt(), { pressSpace: r, pressShift: c, pressCtrl: a } = Ot();
966
970
  return {
967
971
  canvasScale: e,
968
972
  pressSpace: r,
969
973
  pressShift: c,
970
- pressCtrl: i,
974
+ pressCtrl: a,
971
975
  disabledZoom: n,
972
976
  isDark: s
973
977
  };
974
978
  }
975
979
  const ge = lt(At);
976
980
  function Ot() {
977
- const e = C(!1), n = C(!1), s = C(!1);
981
+ const e = P(!1), n = P(!1), s = P(!1);
978
982
  return we(" ", () => {
979
983
  e.value = !0;
980
984
  }), Se(" ", () => {
@@ -993,7 +997,7 @@ function Zt(e) {
993
997
  const { pressSpace: n } = ge(), s = new Image(1, 1);
994
998
  s.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
995
999
  let r = 0, c = 0;
996
- function i(h) {
1000
+ function a(h) {
997
1001
  var N;
998
1002
  n.value && (r = h.x, c = h.y, (N = h.dataTransfer) == null || N.setDragImage(document.createElement("div"), 0, 0));
999
1003
  }
@@ -1006,21 +1010,21 @@ function Zt(e) {
1006
1010
  function g() {
1007
1011
  n.value = !1;
1008
1012
  }
1009
- return { handleElementDragStart: i, handleElementDrag: w, handleElementDragEnd: g };
1013
+ return { handleElementDragStart: a, handleElementDrag: w, handleElementDragEnd: g };
1010
1014
  }
1011
1015
  function Wt(e) {
1012
1016
  const { pressCtrl: n, canvasScale: s, disabledZoom: r } = ge();
1013
- function c(i) {
1017
+ function c(a) {
1014
1018
  if (!n.value || r.value)
1015
1019
  return;
1016
- i.preventDefault();
1020
+ a.preventDefault();
1017
1021
  let w = 0;
1018
- i.deltaY < 0 ? w = s.value + 0.05 : w = s.value - 0.05, !(w > 150 || w < 0.5) && (s.value = w);
1022
+ a.deltaY < 0 ? w = s.value + 0.05 : w = s.value - 0.05, !(w > 150 || w < 0.5) && (s.value = w);
1019
1023
  }
1020
1024
  return B(
1021
1025
  () => s.value,
1022
- (i) => {
1023
- e.value && !r.value && (e.value.style.transform = `scale(${i})`);
1026
+ (a) => {
1027
+ e.value && !r.value && (e.value.style.transform = `scale(${a})`);
1024
1028
  }
1025
1029
  ), { handleZoom: c, canvasScale: s };
1026
1030
  }
@@ -1040,15 +1044,15 @@ function Gt(e, n = 16.66) {
1040
1044
  const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _t = /* @__PURE__ */ le({
1041
1045
  __name: "index",
1042
1046
  setup(e, { expose: n }) {
1043
- const s = J.getComponent("monacoEditor"), r = J.getComponent("modal"), c = C(null), i = C(!1), w = C(!1), g = C({}), h = te("pageSchema"), N = C(null), O = C("");
1047
+ const s = z.getComponent("monacoEditor"), r = z.getComponent("modal"), c = P(null), a = P(!1), w = P(!1), g = P({}), h = ne("pageSchema"), N = P(null), O = P("");
1044
1048
  function t() {
1045
1049
  w.value = !1;
1046
1050
  }
1047
1051
  function x() {
1048
- i.value = !1;
1052
+ a.value = !1;
1049
1053
  }
1050
1054
  function d() {
1051
- i.value = !0, O.value = qe();
1055
+ a.value = !0, O.value = qe();
1052
1056
  }
1053
1057
  async function S() {
1054
1058
  try {
@@ -1068,8 +1072,8 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1068
1072
  return n({
1069
1073
  handleOpen: d
1070
1074
  }), (y, E) => (H(), Y(R(r), {
1071
- modelValue: i.value,
1072
- "onUpdate:modelValue": E[1] || (E[1] = (P) => i.value = P),
1075
+ modelValue: a.value,
1076
+ "onUpdate:modelValue": E[1] || (E[1] = (M) => a.value = M),
1073
1077
  title: "预览",
1074
1078
  class: "w-900px",
1075
1079
  width: "900px",
@@ -1078,7 +1082,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1078
1082
  okText: "表单数据"
1079
1083
  }, {
1080
1084
  default: T(() => [
1081
- X("div", xt, [
1085
+ k("div", xt, [
1082
1086
  (H(), Y(R(rt), {
1083
1087
  key: O.value,
1084
1088
  ref_key: "kb",
@@ -1087,7 +1091,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1087
1091
  }, null, 8, ["page-schema"])),
1088
1092
  Q(R(r), {
1089
1093
  modelValue: w.value,
1090
- "onUpdate:modelValue": E[0] || (E[0] = (P) => w.value = P),
1094
+ "onUpdate:modelValue": E[0] || (E[0] = (M) => w.value = M),
1091
1095
  title: "表单数据",
1092
1096
  class: "w-860px",
1093
1097
  width: "860px",
@@ -1095,7 +1099,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1095
1099
  onOk: t
1096
1100
  }, {
1097
1101
  default: T(() => [
1098
- X("div", It, [
1102
+ k("div", It, [
1099
1103
  Q(R(s), {
1100
1104
  ref_key: "monacoEditorRef",
1101
1105
  ref: c,
@@ -1139,7 +1143,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1139
1143
  "updateSourceData"
1140
1144
  ],
1141
1145
  setup(e, { expose: n, emit: s }) {
1142
- const { t: r } = Oe(), c = se(() => import("./index-IGxCNti8.js")), i = se(() => import("./index-WkZdU_zw.js")), w = se(() => import("./index-4Jbrf4oJ.js")), g = se(() => import("./index-Cln9MN7u.js")), h = se(() => import("./index-DgcFxYFp.js")), N = Ce(), O = ke(), t = e;
1146
+ const { t: r } = Oe(), c = se(() => import("./index-IGxCNti8.js")), a = se(() => import("./index-WkZdU_zw.js")), w = se(() => import("./index-CHPLNTf9.js")), g = se(() => import("./index-Cln9MN7u.js")), h = se(() => import("./index-DgcFxYFp.js")), N = Pe(), O = ke(), t = e;
1143
1147
  let x = {
1144
1148
  schemas: [
1145
1149
  {
@@ -1191,9 +1195,9 @@ defineExpose({
1191
1195
  x = t.defaultSchema;
1192
1196
  return;
1193
1197
  }
1194
- t.source && J.setSourceData(t.source), t.formMode && (x.schemas = J.formSchemas);
1198
+ t.source && z.setSourceData(t.source), t.formMode && (x.schemas = z.formSchemas);
1195
1199
  }), N.setDesignMode(), N.setDefaultComponentIds(x.schemas);
1196
- const d = s, S = C(null), y = re({
1200
+ const d = s, S = P(null), y = re({
1197
1201
  checkedNode: null,
1198
1202
  hoverNode: null,
1199
1203
  disableHover: !1,
@@ -1201,12 +1205,12 @@ defineExpose({
1201
1205
  }), E = re({
1202
1206
  schemas: [],
1203
1207
  script: x.script
1204
- }), { disabledZoom: P } = ge();
1208
+ }), { disabledZoom: M } = ge();
1205
1209
  he(() => {
1206
- P.value = t.disabledZoom;
1210
+ M.value = t.disabledZoom;
1207
1211
  }), he(() => {
1208
- const a = E.script;
1209
- a && a !== "" && N.setMethods(a);
1212
+ const i = E.script;
1213
+ i && i !== "" && N.setMethods(i);
1210
1214
  }), Z("pageSchema", E), Z("revoke", O), Z("pageManager", N), Z(
1211
1215
  "designerProps",
1212
1216
  W(() => t)
@@ -1214,40 +1218,40 @@ defineExpose({
1214
1218
  setCheckedNode: D,
1215
1219
  setHoverNode: I,
1216
1220
  setDisableHover: m,
1217
- handleToggleDeviceMode: j,
1221
+ handleToggleDeviceMode: ee,
1218
1222
  reset: A,
1219
1223
  state: y
1220
- }), k.on("saveSourceData", (a) => {
1221
- d("saveSourceData", a);
1222
- }), k.on("deleteSourceData", (a) => {
1223
- d("deleteSourceData", a);
1224
- }), k.on("updateSourceData", (a) => {
1225
- d("updateSourceData", a);
1224
+ }), j.on("saveSourceData", (i) => {
1225
+ d("saveSourceData", i);
1226
+ }), j.on("deleteSourceData", (i) => {
1227
+ d("deleteSourceData", i);
1228
+ }), j.on("updateSourceData", (i) => {
1229
+ d("updateSourceData", i);
1226
1230
  });
1227
1231
  function p() {
1228
1232
  E.schemas = G(x.schemas), D(E.schemas[0]), O.push(E.schemas, "初始化撤销功能");
1229
1233
  }
1230
- async function D(a = E.schemas[0]) {
1231
- y.checkedNode = a, y.matched = Xe(E.schemas, a.id);
1234
+ async function D(i = E.schemas[0]) {
1235
+ y.checkedNode = i, y.matched = Xe(E.schemas, i.id);
1232
1236
  }
1233
- async function I(a = null) {
1237
+ async function I(i = null) {
1234
1238
  var F;
1235
- if (!a || y.disableHover)
1239
+ if (!i || y.disableHover)
1236
1240
  return y.hoverNode = null, !1;
1237
- if ((a == null ? void 0 : a.id) === ((F = y.hoverNode) == null ? void 0 : F.id))
1241
+ if ((i == null ? void 0 : i.id) === ((F = y.hoverNode) == null ? void 0 : F.id))
1238
1242
  return !1;
1239
- y.hoverNode = a;
1243
+ y.hoverNode = i;
1240
1244
  }
1241
- function M() {
1245
+ function C() {
1242
1246
  ce(() => {
1243
1247
  d("ready", { pageManager: N });
1244
1248
  });
1245
1249
  }
1246
- async function m(a = !1) {
1247
- y.disableHover = a;
1250
+ async function m(i = !1) {
1251
+ y.disableHover = i;
1248
1252
  }
1249
- function U(a) {
1250
- ae(E, G(a));
1253
+ function U(i) {
1254
+ ae(E, G(i));
1251
1255
  }
1252
1256
  function L() {
1253
1257
  return Ie(E);
@@ -1258,8 +1262,8 @@ defineExpose({
1258
1262
  function v() {
1259
1263
  d("save", Ie(E));
1260
1264
  }
1261
- function j(a) {
1262
- d("toggleDeviceMode", a);
1265
+ function ee(i) {
1266
+ d("toggleDeviceMode", i);
1263
1267
  }
1264
1268
  function f() {
1265
1269
  S.value.handleOpen();
@@ -1270,45 +1274,45 @@ defineExpose({
1270
1274
  getData: L,
1271
1275
  reset: A,
1272
1276
  preview: f
1273
- }), (a, F) => R(J).initialized.value ? (H(), Y(Fe, {
1277
+ }), (i, F) => R(z).initialized.value ? (H(), Y(Fe, {
1274
1278
  key: 1,
1275
- onResolve: M
1279
+ onResolve: C
1276
1280
  }, {
1277
1281
  default: T(() => [
1278
- X("div", Nt, [
1279
- X("div", Ft, [
1280
- K(a.$slots, "header", {}, () => [
1282
+ k("div", Nt, [
1283
+ k("div", Ft, [
1284
+ K(i.$slots, "header", {}, () => [
1281
1285
  t.hiddenHeader ? Ne("", !0) : (H(), Y(R(c), {
1282
1286
  key: 0,
1283
1287
  onPreview: f,
1284
1288
  onSave: v
1285
1289
  }, {
1286
1290
  header: T(() => [
1287
- K(a.$slots, "header-prefix")
1291
+ K(i.$slots, "header-prefix")
1288
1292
  ]),
1289
1293
  prefix: T(() => [
1290
- K(a.$slots, "header-prefix")
1294
+ K(i.$slots, "header-prefix")
1291
1295
  ]),
1292
1296
  title: T(() => [
1293
- K(a.$slots, "header-title")
1297
+ K(i.$slots, "header-title")
1294
1298
  ]),
1295
1299
  "right-prefix": T(() => [
1296
- K(a.$slots, "header-right-prefix")
1300
+ K(i.$slots, "header-right-prefix")
1297
1301
  ]),
1298
1302
  "right-action": T(() => [
1299
- K(a.$slots, "header-right-action")
1303
+ K(i.$slots, "header-right-action")
1300
1304
  ]),
1301
1305
  "right-suffix": T(() => [
1302
- K(a.$slots, "header-right-suffix")
1306
+ K(i.$slots, "header-right-suffix")
1303
1307
  ]),
1304
1308
  _: 3
1305
1309
  }))
1306
1310
  ])
1307
1311
  ]),
1308
- X("div", {
1309
- class: Ge(["epic-split-view-container", { "hidden-header": a.hiddenHeader }])
1312
+ k("div", {
1313
+ class: Ge(["epic-split-view-container", { "hidden-header": i.hiddenHeader }])
1310
1314
  }, [
1311
- Q(R(i)),
1315
+ Q(R(a)),
1312
1316
  Q(R(w)),
1313
1317
  Q(R(g))
1314
1318
  ], 2),
@@ -1319,15 +1323,15 @@ defineExpose({
1319
1323
  ])
1320
1324
  ]),
1321
1325
  fallback: T(() => [
1322
- X("div", Vt, [
1326
+ k("div", Vt, [
1323
1327
  Q(R(h))
1324
1328
  ])
1325
1329
  ]),
1326
1330
  _: 3
1327
1331
  })) : (H(), Ee("div", $t));
1328
1332
  }
1329
- }), Ct = {
1330
- component: async () => await import("./index-B8VoR-rx.js"),
1333
+ }), Pt = {
1334
+ component: async () => await import("./index-B4E--Rq2.js"),
1331
1335
  defaultSchema: {
1332
1336
  label: "代码编辑器",
1333
1337
  type: "monacoEditor",
@@ -1355,7 +1359,7 @@ defineExpose({
1355
1359
  ]
1356
1360
  },
1357
1361
  bindModel: "model-value"
1358
- }, { t: De } = Oe(), Mt = {
1362
+ }, { t: De } = Oe(), Ct = {
1359
1363
  component: async () => await import("./index-DiDIFoTk.js"),
1360
1364
  defaultSchema: {
1361
1365
  label: De("page"),
@@ -1376,8 +1380,8 @@ defineExpose({
1376
1380
  ]
1377
1381
  }
1378
1382
  }, { t: me } = Oe();
1379
- function Pt(e) {
1380
- e.component("EInputSize", async () => await import("./index-Cx7gKpkD.js")), e.component("EColEditor", async () => await import("./index-CpTA2IRB.js")), e.component("EActionEditor", async () => await import("./index-DpF28L2Q.js")), e.component("ERuleEditor", async () => await import("./index-HBD4zD_h.js")), e.component("EOptionsEditor", async () => await import("./index-DXYNbYfi.js")), e.component("ENode", async () => await import("./index-CNFfjSi0.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-Cwf1fnCe.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.registerActivitybar({
1383
+ function Mt(e) {
1384
+ e.component("EInputSize", async () => await import("./index-Cx7gKpkD.js")), e.component("EColEditor", async () => await import("./index-CpTA2IRB.js")), e.component("EActionEditor", async () => await import("./index-GNzsI2DT.js")), e.component("ERuleEditor", async () => await import("./index-CYCAksKF.js")), e.component("EOptionsEditor", async () => await import("./index-Cb9hyp0F.js")), e.component("ENode", async () => await import("./index-DSWpL0mZ.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-H_RN47HQ.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.component("ESourceDataSelect", async () => await import("./index-BQOsTyqo.js")), e.registerActivitybar({
1381
1385
  id: "component_view",
1382
1386
  title: me("component"),
1383
1387
  icon: "icon--epic--extension-outline",
@@ -1390,20 +1394,20 @@ function Pt(e) {
1390
1394
  }), e.registerRightSidebar({
1391
1395
  id: "attribute_view",
1392
1396
  title: me("attribute"),
1393
- component: async () => await import("./attributeView-Cb_lnXnd.js")
1397
+ component: async () => await import("./attributeView-O-Qh1M9P.js")
1394
1398
  }), e.registerRightSidebar({
1395
1399
  id: "style_view",
1396
1400
  title: me("style"),
1397
- component: async () => await import("./styleView-m63s2tRj.js")
1401
+ component: async () => await import("./styleView-DPj14T8-.js")
1398
1402
  }), e.registerRightSidebar({
1399
1403
  id: "event_view",
1400
1404
  title: "事件",
1401
1405
  component: async () => await import("./eventView-C2wKhfU_.js")
1402
- }), [Ct, Mt].forEach((s) => {
1406
+ }), [Pt, Ct].forEach((s) => {
1403
1407
  e.registerComponent(s);
1404
1408
  });
1405
1409
  }
1406
- Pt(J);
1410
+ Mt(z);
1407
1411
  export {
1408
1412
  et as _,
1409
1413
  Gt as a,
@@ -1416,7 +1420,7 @@ export {
1416
1420
  Kt as h,
1417
1421
  rt as i,
1418
1422
  Qt as j,
1419
- Ce as k,
1423
+ Pe as k,
1420
1424
  ke as l,
1421
1425
  Ot as m,
1422
1426
  Dt as n,