epic-designer-gold 0.0.14 → 0.0.15
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.
- package/dist/{attributeView-lpFl3t4a.cjs → attributeView-BoLhVQzb.cjs} +1 -1
- package/dist/{attributeView-BN2nA4jI.js → attributeView-CsETdPfQ.js} +1 -1
- package/dist/core/components/node/src/node.vue.d.ts +2 -2
- package/dist/core/extensions/EOptionsEditor/index.vue.d.ts +2 -2
- package/dist/{eventView-DgqXxWY1.cjs → eventView-CeoqK6Se.cjs} +1 -1
- package/dist/{eventView-BKpQ9YIh.js → eventView-y92-iX1R.js} +1 -1
- package/dist/{index-BXNPTGKl.cjs → index-9NfXcZ4Y.cjs} +1 -1
- package/dist/{index-YHlIFgpT.cjs → index-BUw5OdPn.cjs} +1 -1
- package/dist/index-BXqSZLpt.js +4 -0
- package/dist/{index-Mf82MCCF.js → index-BimQe5uF.js} +1 -1
- package/dist/{index-D8YBJFH6.cjs → index-BuNxO1Pv.cjs} +1 -1
- package/dist/{index-CdgT4gQu.cjs → index-BwZBxXdy.cjs} +1 -1
- package/dist/index-C3ug5HS-.cjs +10 -0
- package/dist/index-CM2yS7Lz.js +216 -0
- package/dist/{index-DPfAejnH.js → index-CgW7uOAC.js} +1 -1
- package/dist/{index-Ol-YPkY9.js → index-CzIPdR2H.js} +256 -256
- package/dist/{index-kWCcT4er.js → index-D4hsNiQf.js} +1 -1
- package/dist/{index-BzsFImwK.js → index-DLeXF615.js} +1 -1
- package/dist/{index-DZYSBPVO.js → index-DqoXRcy4.js} +1 -1
- package/dist/{index-Yx99TN9O.js → index-Dzatsws1.js} +1 -1
- package/dist/{index-CNzcV-bQ.cjs → index-FRRNZqrr.cjs} +1 -1
- package/dist/{index-CGHtM1lr.cjs → index-FW4I6HiK.cjs} +1 -1
- package/dist/index-PwPgOIVo.cjs +1 -0
- package/dist/{index-BlJ0TQyn.js → index-QVJsPbkw.js} +1 -1
- package/dist/{index-By5rfqCj.cjs → index-Uwfc3-yh.cjs} +1 -1
- package/dist/{index-lH0_mCG-.cjs → index-uPLxG_y4.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/select-B8HCbraJ.js +29 -0
- package/dist/select-D6bRz5G2.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{styleView-auUK19Dr.cjs → styleView-BfH5Ujdi.cjs} +1 -1
- package/dist/{styleView-CXp05_Ar.js → styleView-kap7mePV.js} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-BHmIF8aI.cjs +0 -10
- package/dist/index-CL_7RzF7.js +0 -214
- package/dist/index-CkRhCvJK.cjs +0 -1
- package/dist/index-qJNRPNIj.js +0 -4
- package/dist/select-B479QwwL.cjs +0 -1
- package/dist/select-CtUVWh2M.js +0 -29
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as S, reactive as Z, defineComponent as G, openBlock as
|
|
2
|
-
import { p as F, a as
|
|
3
|
-
function
|
|
1
|
+
import { ref as S, reactive as Z, defineComponent as G, openBlock as M, createBlock as L, unref as _, mergeProps as me, withCtx as V, renderSlot as R, getCurrentInstance as ne, inject as H, watch as P, useAttrs as xe, provide as $, shallowRef as Ve, computed as U, watchEffect as se, onUnmounted as Se, resolveComponent as Pe, resolveDynamicComponent as Oe, createVNode as T, createCommentVNode as Ae, useSlots as Fe, createElementBlock as he, Suspense as De, createElementVNode as z, Fragment as Me, renderList as Re, nextTick as Y, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as ve, normalizeClass as Te, toRaw as we } from "vue";
|
|
2
|
+
import { p as F, a as be, l as q, E as de } from "./axios-ITY6Uw7A.js";
|
|
3
|
+
function le(e = 10) {
|
|
4
4
|
const a = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
5
5
|
let n = "";
|
|
6
6
|
for (let o = 0; o < e; o++) {
|
|
@@ -9,29 +9,29 @@ function ie(e = 10) {
|
|
|
9
9
|
}
|
|
10
10
|
return n;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Le(e) {
|
|
13
13
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function N(e, a = /* @__PURE__ */ new WeakMap()) {
|
|
16
16
|
if (typeof e != "object" || e === null)
|
|
17
17
|
return e;
|
|
18
18
|
if (a.has(e))
|
|
19
19
|
return a.get(e);
|
|
20
20
|
if (Array.isArray(e)) {
|
|
21
|
-
const o = e.map((t) =>
|
|
21
|
+
const o = e.map((t) => N(t, a));
|
|
22
22
|
return a.set(e, o), o;
|
|
23
23
|
}
|
|
24
24
|
const n = {};
|
|
25
25
|
return a.set(e, n), Object.keys(e).forEach((o) => {
|
|
26
|
-
n[o] =
|
|
26
|
+
n[o] = N(e[o], a);
|
|
27
27
|
}), n;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const [a] =
|
|
29
|
+
function Pt(e) {
|
|
30
|
+
const [a] = We([N(e)], (n) => {
|
|
31
31
|
var t, r;
|
|
32
32
|
const o = {
|
|
33
33
|
...n,
|
|
34
|
-
id: `${n.type}_${
|
|
34
|
+
id: `${n.type}_${le(8)}`
|
|
35
35
|
};
|
|
36
36
|
return (o.field || o.input) && !((r = (t = F.getComponentConfingByType(o.type)) == null ? void 0 : t.editConstraints) != null && r.fixedField) && (o.field = o.id), o;
|
|
37
37
|
});
|
|
@@ -63,7 +63,7 @@ function Ee(e, a, n = [], o = /* @__PURE__ */ new WeakMap()) {
|
|
|
63
63
|
};
|
|
64
64
|
return JSON.stringify(t(e)) === JSON.stringify(t(a));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ze(e, a) {
|
|
67
67
|
const n = [];
|
|
68
68
|
let o = !1;
|
|
69
69
|
function t(r) {
|
|
@@ -78,7 +78,7 @@ function We(e, a) {
|
|
|
78
78
|
}
|
|
79
79
|
return e.forEach(t), o || console.error(`没有查询到id为${a}的节点`), n;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Ot(e, a, n) {
|
|
82
82
|
const o = a.split(".");
|
|
83
83
|
let t = e;
|
|
84
84
|
for (let r = 0; r < o.length; r++) {
|
|
@@ -88,7 +88,7 @@ function Mt(e, a, n) {
|
|
|
88
88
|
}
|
|
89
89
|
return t === void 0 ? n : t;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ft(e, a, n) {
|
|
92
92
|
const o = a.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
93
93
|
let t = e;
|
|
94
94
|
for (let r = 0; r < o.length - 1; r++) {
|
|
@@ -97,10 +97,10 @@ function Rt(e, a, n) {
|
|
|
97
97
|
}
|
|
98
98
|
return t[o[o.length - 1]] = n, e;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
100
|
+
function Mt(e, a = "default") {
|
|
101
|
+
return Je(e, a).map((o) => o.field);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Je(e, a = "default") {
|
|
104
104
|
const n = te(
|
|
105
105
|
e,
|
|
106
106
|
(t) => {
|
|
@@ -128,7 +128,7 @@ function te(e, a, n = !1, o) {
|
|
|
128
128
|
}
|
|
129
129
|
return n ? !1 : t;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function We(e, a, n) {
|
|
132
132
|
const o = [...e];
|
|
133
133
|
for (; o.length; ) {
|
|
134
134
|
const t = o.pop();
|
|
@@ -139,7 +139,7 @@ function Ke(e, a, n) {
|
|
|
139
139
|
}
|
|
140
140
|
return e;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Rt(e, a) {
|
|
143
143
|
const n = te(
|
|
144
144
|
e,
|
|
145
145
|
(o) => o.id === a,
|
|
@@ -149,7 +149,7 @@ function Nt(e, a) {
|
|
|
149
149
|
throw new Error(`没有查询到id为${a}的节点`);
|
|
150
150
|
return n;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function $t(e, a) {
|
|
153
153
|
const n = [{ type: "", children: e }];
|
|
154
154
|
let o = 0, t = null;
|
|
155
155
|
if (te(
|
|
@@ -179,7 +179,7 @@ function Bt(e, a) {
|
|
|
179
179
|
index: o
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Nt(e) {
|
|
183
183
|
const a = {
|
|
184
184
|
schemas: [
|
|
185
185
|
{
|
|
@@ -205,7 +205,7 @@ function Tt(e) {
|
|
|
205
205
|
size: e.config.size || "middle"
|
|
206
206
|
},
|
|
207
207
|
children: [],
|
|
208
|
-
id: "form_" +
|
|
208
|
+
id: "form_" + le()
|
|
209
209
|
}
|
|
210
210
|
],
|
|
211
211
|
componentProps: {
|
|
@@ -230,7 +230,7 @@ function ee(e, a) {
|
|
|
230
230
|
const { minRows: s, maxRows: y } = t;
|
|
231
231
|
t.autoSize = { minRows: s, maxRows: y }, delete t.minRows, delete t.maxRows;
|
|
232
232
|
}
|
|
233
|
-
o === "number" && !t.precision && delete t.precision, t.width && (t.style = { width: t.width }, delete t.width), o === "grid" && (o = "row"), a && a.type === "grid" && (o = "col", t.span = n.span, n.key =
|
|
233
|
+
o === "number" && !t.precision && delete t.precision, t.width && (t.style = { width: t.width }, delete t.width), o === "grid" && (o = "row"), a && a.type === "grid" && (o = "col", t.span = n.span, n.key = le());
|
|
234
234
|
const l = {
|
|
235
235
|
label: n.label,
|
|
236
236
|
type: o,
|
|
@@ -258,7 +258,7 @@ function ee(e, a) {
|
|
|
258
258
|
].includes(o) && (l.input = !0, ((w = (c = n.rules) == null ? void 0 : c[0]) == null ? void 0 : w.required) === !1 && n.rules.shift(), ((h = n.rules) == null ? void 0 : h.length) > 0 && (l.rules = n.rules)), n.list && (l.children = ee(n.list, n)), n.columns && (l.children = ee(n.columns, n)), n.trs && (l.children = ee(n.trs, n)), n.tds && (l.children = ee(n.tds, n)), l;
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Bt(e, a) {
|
|
262
262
|
let n = null;
|
|
263
263
|
return (...o) => {
|
|
264
264
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -389,7 +389,7 @@ function Ie() {
|
|
|
389
389
|
setDefaultComponentIds: u
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function He() {
|
|
393
393
|
const e = S([]), a = S([]), n = S(null);
|
|
394
394
|
let o = 0;
|
|
395
395
|
function t(c, w = "插入组件") {
|
|
@@ -424,7 +424,7 @@ function qe() {
|
|
|
424
424
|
reset: i
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const Ke = /* @__PURE__ */ G({
|
|
428
428
|
__name: "dynamicFormItem",
|
|
429
429
|
props: {
|
|
430
430
|
hasFormItem: { type: Boolean },
|
|
@@ -435,19 +435,19 @@ const Ze = /* @__PURE__ */ G({
|
|
|
435
435
|
const n = F.getComponent("form-item"), o = e, t = a, r = S(), l = () => {
|
|
436
436
|
t("updateFormItemRef", r.value);
|
|
437
437
|
};
|
|
438
|
-
return (i, c) => o.hasFormItem ? (
|
|
438
|
+
return (i, c) => o.hasFormItem ? (M(), L(_(n), me({
|
|
439
439
|
key: 0,
|
|
440
440
|
ref_key: "formItemRef",
|
|
441
441
|
ref: r,
|
|
442
442
|
onVnodeMounted: l
|
|
443
443
|
}, o.formItemProps), {
|
|
444
|
-
default:
|
|
445
|
-
|
|
444
|
+
default: V(() => [
|
|
445
|
+
R(i.$slots, "default")
|
|
446
446
|
]),
|
|
447
447
|
_: 3
|
|
448
|
-
}, 16, ["onVnodeMounted"])) :
|
|
448
|
+
}, 16, ["onVnodeMounted"])) : R(i.$slots, "default", { key: 1 });
|
|
449
449
|
}
|
|
450
|
-
}),
|
|
450
|
+
}), qe = /* @__PURE__ */ G({
|
|
451
451
|
name: "ENode",
|
|
452
452
|
__name: "node",
|
|
453
453
|
props: {
|
|
@@ -464,19 +464,19 @@ const Ze = /* @__PURE__ */ G({
|
|
|
464
464
|
const { proxy: n } = ne(), o = e, t = S(null);
|
|
465
465
|
let r = H("formData", Z({}));
|
|
466
466
|
const l = H("slots", {}), i = H("pageManager", {}), c = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), h = H("resetFormData", !1);
|
|
467
|
-
let s = Z(
|
|
467
|
+
let s = Z(N(o.componentSchema));
|
|
468
468
|
f();
|
|
469
469
|
async function y(m) {
|
|
470
|
-
if (["cascader", "checkbox", "select", "radio"].includes(m.type) && m.componentProps.dynamicId) {
|
|
471
|
-
const D = (await
|
|
470
|
+
if (["cascader", "checkbox", "select", "radio"].includes(m.type) && m.componentProps.dynamicId && o.sourceDateUrl) {
|
|
471
|
+
const D = (await be({
|
|
472
472
|
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
473
473
|
url: o.sourceDateUrl,
|
|
474
474
|
method: "get",
|
|
475
475
|
params: {
|
|
476
476
|
id: m.componentProps.dynamicId
|
|
477
477
|
}
|
|
478
|
-
})).data;
|
|
479
|
-
let k = await
|
|
478
|
+
})).data.data;
|
|
479
|
+
let k = await be({
|
|
480
480
|
url: D.url,
|
|
481
481
|
method: D.method,
|
|
482
482
|
data: JSON.parse(D.body),
|
|
@@ -501,17 +501,15 @@ const Ze = /* @__PURE__ */ G({
|
|
|
501
501
|
function d(m) {
|
|
502
502
|
return m && Object.prototype.toString.call(m) === "[object Array]" ? m : [];
|
|
503
503
|
}
|
|
504
|
-
|
|
504
|
+
P(
|
|
505
505
|
() => o.componentSchema,
|
|
506
506
|
(m) => {
|
|
507
|
-
Ee(s, m, ["children"]) || (J(s,
|
|
507
|
+
Ee(s, m, ["children"]) || (J(s, N(m)), f());
|
|
508
508
|
},
|
|
509
509
|
{
|
|
510
510
|
deep: !0
|
|
511
511
|
}
|
|
512
|
-
)
|
|
513
|
-
s = M(o.componentSchema);
|
|
514
|
-
});
|
|
512
|
+
);
|
|
515
513
|
function f() {
|
|
516
514
|
i.isDesignMode.value && typeof s.field == "string" && (s.field += "-design-mode");
|
|
517
515
|
}
|
|
@@ -519,11 +517,11 @@ const Ze = /* @__PURE__ */ G({
|
|
|
519
517
|
const u = a, A = S(), C = S(), p = (m) => {
|
|
520
518
|
C.value = m;
|
|
521
519
|
}, g = xe();
|
|
522
|
-
Object.keys(g).length &&
|
|
523
|
-
const v =
|
|
520
|
+
Object.keys(g).length && $("nodeAttrs", g);
|
|
521
|
+
const v = Ve(null), E = U(() => {
|
|
524
522
|
var m, I;
|
|
525
523
|
return (m = s.componentProps) != null && m.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((I = s.show) == null ? void 0 : I.call(s, { values: r })) ?? !0;
|
|
526
|
-
}), O =
|
|
524
|
+
}), O = U(() => {
|
|
527
525
|
var D;
|
|
528
526
|
const m = E.value && ((D = s.rules) == null ? void 0 : D.map((k) => ({
|
|
529
527
|
...k,
|
|
@@ -531,7 +529,7 @@ const Ze = /* @__PURE__ */ G({
|
|
|
531
529
|
// 自定义校验函数
|
|
532
530
|
})));
|
|
533
531
|
let I = s.field;
|
|
534
|
-
o.ruleField ? I = o.ruleField : w && s.field && (I =
|
|
532
|
+
o.ruleField ? I = o.ruleField : w && s.field && (I = N(w), I.push(s.field));
|
|
535
533
|
const x = {
|
|
536
534
|
...s,
|
|
537
535
|
rules: m,
|
|
@@ -539,11 +537,11 @@ const Ze = /* @__PURE__ */ G({
|
|
|
539
537
|
field: I
|
|
540
538
|
};
|
|
541
539
|
return x.children && delete x.children, x;
|
|
542
|
-
}), B =
|
|
540
|
+
}), B = U(() => {
|
|
543
541
|
var x, D;
|
|
544
542
|
const m = ((x = W.value) == null ? void 0 : x.bindModel) ?? "modelValue", I = {};
|
|
545
543
|
return s.on && Object.keys(s.on).forEach((k) => {
|
|
546
|
-
I[`on${
|
|
544
|
+
I[`on${Le(k)}`] = (...j) => i.doActions(s.on[k], ...j);
|
|
547
545
|
}), {
|
|
548
546
|
...o,
|
|
549
547
|
...s.componentProps,
|
|
@@ -551,15 +549,15 @@ const Ze = /* @__PURE__ */ G({
|
|
|
551
549
|
bindModel: m,
|
|
552
550
|
...I
|
|
553
551
|
};
|
|
554
|
-
}), W =
|
|
552
|
+
}), W = U(() => F.getComponentConfingByType(s.type) ?? null);
|
|
555
553
|
se(() => {
|
|
556
554
|
t.value = o.modelValue ?? r[s.field ?? ""];
|
|
557
|
-
}),
|
|
555
|
+
}), P(
|
|
558
556
|
() => t.value,
|
|
559
557
|
() => {
|
|
560
558
|
t.value !== (o.modelValue ?? r[s.field ?? ""]) && b(t.value);
|
|
561
559
|
}
|
|
562
|
-
),
|
|
560
|
+
), P(
|
|
563
561
|
() => A.value,
|
|
564
562
|
() => {
|
|
565
563
|
oe();
|
|
@@ -571,7 +569,7 @@ const Ze = /* @__PURE__ */ G({
|
|
|
571
569
|
const m = A.value || n;
|
|
572
570
|
s.id && m && (s.input && (m.setValue = b, m.getValue = () => r[s.field] || o.modelValue), m.setAttr = (x, D) => (s.componentProps || (s.componentProps = {}), s.componentProps[x] = D), m.getAttr = (x) => s.componentProps[x], i.addComponentInstance(s.id, m), (I = W.value) != null && I.defaultSchema.input && s.noFormItem !== !0 && C.value && i.addComponentInstance(s.id + "formItem", C.value));
|
|
573
571
|
}
|
|
574
|
-
function
|
|
572
|
+
function ue() {
|
|
575
573
|
var m;
|
|
576
574
|
s.id && (i.removeComponentInstance(s.id), (m = W.value) != null && m.defaultSchema.input && s.noFormItem !== !0 && i.removeComponentInstance(s.id + "formItem"));
|
|
577
575
|
}
|
|
@@ -579,14 +577,14 @@ const Ze = /* @__PURE__ */ G({
|
|
|
579
577
|
var I, x, D;
|
|
580
578
|
if (s = await y(s), typeof ((I = s.componentProps) == null ? void 0 : I.defaultValue) < "u") {
|
|
581
579
|
const k = i.isDesignMode.value ? (x = s.componentProps) == null ? void 0 : x.defaultValue : r[s.field] ?? ((D = s.componentProps) == null ? void 0 : D.defaultValue);
|
|
582
|
-
b(
|
|
580
|
+
b(N(k));
|
|
583
581
|
}
|
|
584
582
|
if (s.type === "slot") {
|
|
585
583
|
const k = s.slotName;
|
|
586
584
|
if (!k) return;
|
|
587
585
|
v.value = G({
|
|
588
586
|
setup() {
|
|
589
|
-
return () =>
|
|
587
|
+
return () => R(l, k, {
|
|
590
588
|
componentSchema: s,
|
|
591
589
|
model: r
|
|
592
590
|
});
|
|
@@ -611,30 +609,30 @@ const Ze = /* @__PURE__ */ G({
|
|
|
611
609
|
function X(m) {
|
|
612
610
|
u("update:dynamicId", m);
|
|
613
611
|
}
|
|
614
|
-
let
|
|
615
|
-
return
|
|
612
|
+
let ge = null;
|
|
613
|
+
return P(
|
|
616
614
|
() => s,
|
|
617
615
|
async (m) => {
|
|
618
616
|
const I = JSON.stringify({ ...m, children: void 0 });
|
|
619
|
-
if (I ===
|
|
617
|
+
if (I === ge)
|
|
620
618
|
return !1;
|
|
621
|
-
|
|
619
|
+
ge = I, ae();
|
|
622
620
|
},
|
|
623
621
|
{
|
|
624
622
|
immediate: !0,
|
|
625
623
|
deep: !0
|
|
626
624
|
}
|
|
627
|
-
), Se(
|
|
625
|
+
), Se(ue), (m, I) => {
|
|
628
626
|
var D;
|
|
629
|
-
const x =
|
|
630
|
-
return v.value && E.value ? (
|
|
627
|
+
const x = Pe("ENode");
|
|
628
|
+
return v.value && E.value ? (M(), L(Ke, {
|
|
631
629
|
key: 0,
|
|
632
630
|
hasFormItem: _(s).noFormItem !== !0 && ((D = W.value) == null ? void 0 : D.defaultSchema.input),
|
|
633
631
|
formItemProps: O.value,
|
|
634
632
|
onUpdateFormItemRef: p
|
|
635
633
|
}, {
|
|
636
|
-
default:
|
|
637
|
-
(
|
|
634
|
+
default: V(() => [
|
|
635
|
+
(M(), L(Oe(v.value), me({
|
|
638
636
|
ref_key: "componentInstance",
|
|
639
637
|
ref: A,
|
|
640
638
|
onVnodeMounted: oe,
|
|
@@ -645,11 +643,13 @@ const Ze = /* @__PURE__ */ G({
|
|
|
645
643
|
[`onUpdate:${B.value.bindModel}` || ""]: b,
|
|
646
644
|
"onUpdate:dynamicId": X
|
|
647
645
|
}), {
|
|
648
|
-
node:
|
|
649
|
-
|
|
646
|
+
node: V((k) => [
|
|
647
|
+
T(x, me(k, {
|
|
648
|
+
sourceDateUrl: o.sourceDateUrl
|
|
649
|
+
}), null, 16, ["sourceDateUrl"])
|
|
650
650
|
]),
|
|
651
|
-
"edit-node":
|
|
652
|
-
|
|
651
|
+
"edit-node": V(() => [
|
|
652
|
+
R(m.$slots, "edit-node")
|
|
653
653
|
]),
|
|
654
654
|
_: 3
|
|
655
655
|
}, 16, ["model"]))
|
|
@@ -659,14 +659,14 @@ const Ze = /* @__PURE__ */ G({
|
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
|
-
function
|
|
662
|
+
function Ze() {
|
|
663
663
|
const e = S(!1), a = Ie(), n = S({});
|
|
664
664
|
function o() {
|
|
665
665
|
return new Promise((d) => {
|
|
666
666
|
if (e.value)
|
|
667
667
|
d();
|
|
668
668
|
else {
|
|
669
|
-
const f =
|
|
669
|
+
const f = P(e, () => {
|
|
670
670
|
f(), d();
|
|
671
671
|
});
|
|
672
672
|
}
|
|
@@ -681,7 +681,7 @@ function Qe() {
|
|
|
681
681
|
}
|
|
682
682
|
async function r(d, f) {
|
|
683
683
|
const u = await t(d);
|
|
684
|
-
return
|
|
684
|
+
return N(await f(u));
|
|
685
685
|
}
|
|
686
686
|
async function l(d = "default") {
|
|
687
687
|
return await r(d, (f) => f.getData());
|
|
@@ -700,7 +700,7 @@ function Qe() {
|
|
|
700
700
|
const f = {};
|
|
701
701
|
for (const u in n.value) {
|
|
702
702
|
const A = n.value[u];
|
|
703
|
-
A && (f[u] =
|
|
703
|
+
A && (f[u] = N(await d(A)));
|
|
704
704
|
}
|
|
705
705
|
return f;
|
|
706
706
|
}
|
|
@@ -727,10 +727,10 @@ function Qe() {
|
|
|
727
727
|
getFormInstance: t
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
|
-
const
|
|
730
|
+
const Ge = {
|
|
731
731
|
key: 0,
|
|
732
732
|
class: "epic-loading-box"
|
|
733
|
-
},
|
|
733
|
+
}, Qe = { class: "epic-builder-main" }, Ye = { class: "epic-loading-box" }, Xe = /* @__PURE__ */ G({
|
|
734
734
|
__name: "builder",
|
|
735
735
|
props: {
|
|
736
736
|
pageSchema: {},
|
|
@@ -740,10 +740,10 @@ const Ye = {
|
|
|
740
740
|
},
|
|
741
741
|
emits: ["ready"],
|
|
742
742
|
setup(e, { expose: a, emit: n }) {
|
|
743
|
-
const o = q(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: c, setData: w, validate: h, getForms: s, setForms: y, validateAll: d, getFormInstance: f } =
|
|
743
|
+
const o = q(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: c, setData: w, validate: h, getForms: s, setForms: y, validateAll: d, getFormInstance: f } = Ze(), u = e, A = Z({
|
|
744
744
|
schemas: []
|
|
745
745
|
});
|
|
746
|
-
|
|
746
|
+
P(
|
|
747
747
|
() => u.pageSchema,
|
|
748
748
|
(v) => {
|
|
749
749
|
J(A, v);
|
|
@@ -752,7 +752,7 @@ const Ye = {
|
|
|
752
752
|
immediate: !0,
|
|
753
753
|
deep: !0
|
|
754
754
|
}
|
|
755
|
-
),
|
|
755
|
+
), P(
|
|
756
756
|
() => u.formData,
|
|
757
757
|
(v) => {
|
|
758
758
|
v && w(v);
|
|
@@ -761,7 +761,7 @@ const Ye = {
|
|
|
761
761
|
immediate: !0,
|
|
762
762
|
deep: !0
|
|
763
763
|
}
|
|
764
|
-
),
|
|
764
|
+
), P(
|
|
765
765
|
() => A.script,
|
|
766
766
|
(v) => {
|
|
767
767
|
v && l.setMethods(v, !0);
|
|
@@ -769,9 +769,9 @@ const Ye = {
|
|
|
769
769
|
{
|
|
770
770
|
immediate: !0
|
|
771
771
|
}
|
|
772
|
-
),
|
|
772
|
+
), $("slots", Fe()), $("pageManager", l), $("forms", i), $("pageSchema", A), $(
|
|
773
773
|
"disabled",
|
|
774
|
-
|
|
774
|
+
U(() => u.disabled)
|
|
775
775
|
);
|
|
776
776
|
const C = ne(), p = C == null ? void 0 : C.proxy;
|
|
777
777
|
function g() {
|
|
@@ -789,56 +789,56 @@ const Ye = {
|
|
|
789
789
|
setForms: y,
|
|
790
790
|
validateAll: d,
|
|
791
791
|
getFormInstance: f
|
|
792
|
-
}), (v, E) => _(F).initialized.value ? (
|
|
792
|
+
}), (v, E) => _(F).initialized.value ? (M(), L(De, {
|
|
793
793
|
key: 1,
|
|
794
794
|
onResolve: g
|
|
795
795
|
}, {
|
|
796
|
-
default:
|
|
797
|
-
z("div",
|
|
798
|
-
(
|
|
796
|
+
default: V(() => [
|
|
797
|
+
z("div", Qe, [
|
|
798
|
+
(M(!0), he(Me, null, Re(A.schemas, (O, B) => (M(), L(_(qe), {
|
|
799
799
|
key: B,
|
|
800
|
-
sourceDateUrl:
|
|
800
|
+
sourceDateUrl: u.sourceDateUrl,
|
|
801
801
|
componentSchema: O
|
|
802
802
|
}, null, 8, ["sourceDateUrl", "componentSchema"]))), 128))
|
|
803
803
|
])
|
|
804
804
|
]),
|
|
805
|
-
fallback:
|
|
806
|
-
z("div",
|
|
807
|
-
|
|
805
|
+
fallback: V(() => [
|
|
806
|
+
z("div", Ye, [
|
|
807
|
+
T(_(o))
|
|
808
808
|
])
|
|
809
809
|
]),
|
|
810
810
|
_: 1
|
|
811
|
-
})) : (
|
|
811
|
+
})) : (M(), he("div", Ge));
|
|
812
812
|
}
|
|
813
813
|
});
|
|
814
|
-
function
|
|
815
|
-
return
|
|
814
|
+
function ye(e) {
|
|
815
|
+
return Be() ? (Ue(e), !0) : !1;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function je(e) {
|
|
818
818
|
let a = 0, n, o;
|
|
819
819
|
const t = () => {
|
|
820
820
|
a -= 1, o && a <= 0 && (o.stop(), n = void 0, o = void 0);
|
|
821
821
|
};
|
|
822
|
-
return (...r) => (a += 1, o || (o =
|
|
822
|
+
return (...r) => (a += 1, o || (o = $e(!0), n = o.run(() => e(...r))), ye(t), n);
|
|
823
823
|
}
|
|
824
824
|
function Q(e) {
|
|
825
825
|
return typeof e == "function" ? e() : _(e);
|
|
826
826
|
}
|
|
827
|
-
const
|
|
827
|
+
const et = typeof window < "u" && typeof document < "u";
|
|
828
828
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
829
|
-
const
|
|
829
|
+
const tt = (e) => typeof e < "u", nt = Object.prototype.toString, ot = (e) => nt.call(e) === "[object Object]", at = () => {
|
|
830
830
|
};
|
|
831
|
-
function
|
|
831
|
+
function rt(e) {
|
|
832
832
|
return ne();
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
|
|
834
|
+
function st(e, a = !0, n) {
|
|
835
|
+
rt() ? ve(e, n) : a ? e() : Y(e);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function lt(e = !1, a = {}) {
|
|
838
838
|
const {
|
|
839
839
|
truthyValue: n = !0,
|
|
840
840
|
falsyValue: o = !1
|
|
841
|
-
} = a, t =
|
|
841
|
+
} = a, t = Ne(e), r = S(e);
|
|
842
842
|
function l(i) {
|
|
843
843
|
if (arguments.length)
|
|
844
844
|
return r.value = i, r.value;
|
|
@@ -849,29 +849,29 @@ function ct(e = !1, a = {}) {
|
|
|
849
849
|
}
|
|
850
850
|
return t ? l : [r, l];
|
|
851
851
|
}
|
|
852
|
-
function
|
|
853
|
-
const o =
|
|
852
|
+
function Ut(e, a, n) {
|
|
853
|
+
const o = P(e, (...t) => (Y(() => o()), a(...t)), n);
|
|
854
854
|
return o;
|
|
855
855
|
}
|
|
856
|
-
const
|
|
856
|
+
const ie = et ? window : void 0;
|
|
857
857
|
function K(e) {
|
|
858
858
|
var a;
|
|
859
859
|
const n = Q(e);
|
|
860
860
|
return (a = n == null ? void 0 : n.$el) != null ? a : n;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function it(...e) {
|
|
863
863
|
let a, n, o, t;
|
|
864
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, t] = e, a =
|
|
865
|
-
return
|
|
864
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, t] = e, a = ie) : [a, n, o, t] = e, !a)
|
|
865
|
+
return at;
|
|
866
866
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
867
867
|
const r = [], l = () => {
|
|
868
868
|
r.forEach((h) => h()), r.length = 0;
|
|
869
|
-
}, i = (h, s, y, d) => (h.addEventListener(s, y, d), () => h.removeEventListener(s, y, d)), c =
|
|
869
|
+
}, i = (h, s, y, d) => (h.addEventListener(s, y, d), () => h.removeEventListener(s, y, d)), c = P(
|
|
870
870
|
() => [K(a), Q(t)],
|
|
871
871
|
([h, s]) => {
|
|
872
872
|
if (l(), !h)
|
|
873
873
|
return;
|
|
874
|
-
const y =
|
|
874
|
+
const y = ot(s) ? { ...s } : s;
|
|
875
875
|
r.push(
|
|
876
876
|
...n.flatMap((d) => o.map((f) => i(h, d, f, y)))
|
|
877
877
|
);
|
|
@@ -880,52 +880,52 @@ function ut(...e) {
|
|
|
880
880
|
), w = () => {
|
|
881
881
|
c(), l();
|
|
882
882
|
};
|
|
883
|
-
return
|
|
883
|
+
return ye(w), w;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function ct(e) {
|
|
886
886
|
return typeof e == "function" ? e : typeof e == "string" ? (a) => a.key === e : Array.isArray(e) ? (a) => e.includes(a.key) : () => !0;
|
|
887
887
|
}
|
|
888
888
|
function ke(...e) {
|
|
889
889
|
let a, n, o = {};
|
|
890
890
|
e.length === 3 ? (a = e[0], n = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (a = !0, n = e[0], o = e[1]) : (a = e[0], n = e[1]) : (a = !0, n = e[0]);
|
|
891
891
|
const {
|
|
892
|
-
target: t =
|
|
892
|
+
target: t = ie,
|
|
893
893
|
eventName: r = "keydown",
|
|
894
894
|
passive: l = !1,
|
|
895
895
|
dedupe: i = !1
|
|
896
|
-
} = o, c =
|
|
897
|
-
return
|
|
896
|
+
} = o, c = ct(a);
|
|
897
|
+
return it(t, r, (h) => {
|
|
898
898
|
h.repeat && Q(i) || c(h) && n(h);
|
|
899
899
|
}, l);
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function fe(e, a, n = {}) {
|
|
902
902
|
return ke(e, a, { ...n, eventName: "keydown" });
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function pe(e, a, n = {}) {
|
|
905
905
|
return ke(e, a, { ...n, eventName: "keyup" });
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function ut() {
|
|
908
908
|
const e = S(!1), a = ne();
|
|
909
|
-
return a &&
|
|
909
|
+
return a && ve(() => {
|
|
910
910
|
e.value = !0;
|
|
911
911
|
}, a), e;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
const a =
|
|
915
|
-
return
|
|
913
|
+
function dt(e) {
|
|
914
|
+
const a = ut();
|
|
915
|
+
return U(() => (a.value, !!e()));
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function ft(e) {
|
|
918
918
|
return JSON.parse(JSON.stringify(e));
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
const { window: o =
|
|
920
|
+
function pt(e, a, n = {}) {
|
|
921
|
+
const { window: o = ie, ...t } = n;
|
|
922
922
|
let r;
|
|
923
|
-
const l =
|
|
923
|
+
const l = dt(() => o && "ResizeObserver" in o), i = () => {
|
|
924
924
|
r && (r.disconnect(), r = void 0);
|
|
925
|
-
}, c =
|
|
925
|
+
}, c = U(() => {
|
|
926
926
|
const s = Q(e);
|
|
927
927
|
return Array.isArray(s) ? s.map((y) => K(y)) : [K(s)];
|
|
928
|
-
}), w =
|
|
928
|
+
}), w = P(
|
|
929
929
|
c,
|
|
930
930
|
(s) => {
|
|
931
931
|
if (i(), l.value && o) {
|
|
@@ -938,16 +938,16 @@ function ht(e, a, n = {}) {
|
|
|
938
938
|
), h = () => {
|
|
939
939
|
i(), w();
|
|
940
940
|
};
|
|
941
|
-
return
|
|
941
|
+
return ye(h), {
|
|
942
942
|
isSupported: l,
|
|
943
943
|
stop: h
|
|
944
944
|
};
|
|
945
945
|
}
|
|
946
|
-
function
|
|
947
|
-
const { window: o =
|
|
946
|
+
function Tt(e, a = { width: 0, height: 0 }, n = {}) {
|
|
947
|
+
const { window: o = ie, box: t = "content-box" } = n, r = U(() => {
|
|
948
948
|
var s, y;
|
|
949
949
|
return (y = (s = K(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : y.includes("svg");
|
|
950
|
-
}), l = S(a.width), i = S(a.height), { stop: c } =
|
|
950
|
+
}), l = S(a.width), i = S(a.height), { stop: c } = pt(
|
|
951
951
|
e,
|
|
952
952
|
([s]) => {
|
|
953
953
|
const y = t === "border-box" ? s.borderBoxSize : t === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
|
|
@@ -965,11 +965,11 @@ function zt(e, a = { width: 0, height: 0 }, n = {}) {
|
|
|
965
965
|
},
|
|
966
966
|
n
|
|
967
967
|
);
|
|
968
|
-
|
|
968
|
+
st(() => {
|
|
969
969
|
const s = K(e);
|
|
970
970
|
s && (l.value = "offsetWidth" in s ? s.offsetWidth : a.width, i.value = "offsetHeight" in s ? s.offsetHeight : a.height);
|
|
971
971
|
});
|
|
972
|
-
const w =
|
|
972
|
+
const w = P(
|
|
973
973
|
() => K(e),
|
|
974
974
|
(s) => {
|
|
975
975
|
l.value = s ? a.width : 0, i.value = s ? a.height : 0;
|
|
@@ -984,7 +984,7 @@ function zt(e, a = { width: 0, height: 0 }, n = {}) {
|
|
|
984
984
|
stop: h
|
|
985
985
|
};
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function Lt(e, a, n, o = {}) {
|
|
988
988
|
var t, r, l;
|
|
989
989
|
const {
|
|
990
990
|
clone: i = !1,
|
|
@@ -996,18 +996,18 @@ function Jt(e, a, n, o = {}) {
|
|
|
996
996
|
} = o, d = ne(), f = n || (d == null ? void 0 : d.emit) || ((t = d == null ? void 0 : d.$emit) == null ? void 0 : t.bind(d)) || ((l = (r = d == null ? void 0 : d.proxy) == null ? void 0 : r.$emit) == null ? void 0 : l.bind(d == null ? void 0 : d.proxy));
|
|
997
997
|
let u = w;
|
|
998
998
|
a || (a = "modelValue"), u = u || `update:${a.toString()}`;
|
|
999
|
-
const A = (g) => i ? typeof i == "function" ? i(g) :
|
|
999
|
+
const A = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, C = () => tt(e[a]) ? A(e[a]) : s, p = (g) => {
|
|
1000
1000
|
y ? y(g) && f(u, g) : f(u, g);
|
|
1001
1001
|
};
|
|
1002
1002
|
if (c) {
|
|
1003
1003
|
const g = C(), v = S(g);
|
|
1004
1004
|
let E = !1;
|
|
1005
|
-
return
|
|
1005
|
+
return P(
|
|
1006
1006
|
() => e[a],
|
|
1007
1007
|
(O) => {
|
|
1008
1008
|
E || (E = !0, v.value = A(O), Y(() => E = !1));
|
|
1009
1009
|
}
|
|
1010
|
-
),
|
|
1010
|
+
), P(
|
|
1011
1011
|
v,
|
|
1012
1012
|
(O) => {
|
|
1013
1013
|
!E && (O !== e[a] || h) && p(O);
|
|
@@ -1015,7 +1015,7 @@ function Jt(e, a, n, o = {}) {
|
|
|
1015
1015
|
{ deep: h }
|
|
1016
1016
|
), v;
|
|
1017
1017
|
} else
|
|
1018
|
-
return
|
|
1018
|
+
return U({
|
|
1019
1019
|
get() {
|
|
1020
1020
|
return C();
|
|
1021
1021
|
},
|
|
@@ -1024,18 +1024,18 @@ function Jt(e, a, n, o = {}) {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const { isDark: e } =
|
|
1027
|
+
function zt() {
|
|
1028
|
+
const { isDark: e } = ce(), a = lt(e);
|
|
1029
1029
|
return {
|
|
1030
1030
|
isDark: e,
|
|
1031
1031
|
toggleDark: a
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function mt() {
|
|
1035
1035
|
const e = S(!1);
|
|
1036
|
-
return
|
|
1037
|
-
|
|
1038
|
-
}),
|
|
1036
|
+
return ve(() => {
|
|
1037
|
+
ht(e), vt(e);
|
|
1038
|
+
}), P(
|
|
1039
1039
|
() => e.value,
|
|
1040
1040
|
() => {
|
|
1041
1041
|
e.value ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
@@ -1044,11 +1044,11 @@ function vt() {
|
|
|
1044
1044
|
isDark: e
|
|
1045
1045
|
};
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function ht(e) {
|
|
1048
1048
|
var a = document.documentElement;
|
|
1049
1049
|
a && (a.classList.contains("dark") ? e.value = !0 : e.value = !1);
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function vt(e) {
|
|
1052
1052
|
var a = document.querySelector("html"), n = new MutationObserver(function(o) {
|
|
1053
1053
|
for (var t of o)
|
|
1054
1054
|
if (t.type === "attributes" && t.attributeName === "class") {
|
|
@@ -1063,8 +1063,8 @@ function gt(e) {
|
|
|
1063
1063
|
n.disconnect();
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
const e = S(1), a = S(!1), { isDark: n } =
|
|
1066
|
+
function yt() {
|
|
1067
|
+
const e = S(1), a = S(!1), { isDark: n } = mt(), { pressSpace: o, pressShift: t, pressCtrl: r } = gt();
|
|
1068
1068
|
return {
|
|
1069
1069
|
canvasScale: e,
|
|
1070
1070
|
pressSpace: o,
|
|
@@ -1074,25 +1074,25 @@ function wt() {
|
|
|
1074
1074
|
isDark: n
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
|
-
const
|
|
1078
|
-
function
|
|
1077
|
+
const ce = je(yt);
|
|
1078
|
+
function gt() {
|
|
1079
1079
|
const e = S(!1), a = S(!1), n = S(!1);
|
|
1080
|
-
return
|
|
1080
|
+
return fe(" ", () => {
|
|
1081
1081
|
e.value = !0;
|
|
1082
|
-
}),
|
|
1082
|
+
}), pe(" ", () => {
|
|
1083
1083
|
e.value = !1;
|
|
1084
|
-
}),
|
|
1084
|
+
}), fe("Shift", (o) => {
|
|
1085
1085
|
o.preventDefault(), a.value = !0;
|
|
1086
|
-
}),
|
|
1086
|
+
}), pe("Shift", () => {
|
|
1087
1087
|
a.value = !1;
|
|
1088
|
-
}),
|
|
1088
|
+
}), fe("Control", (o) => {
|
|
1089
1089
|
o.preventDefault(), n.value = !0;
|
|
1090
|
-
}),
|
|
1090
|
+
}), pe("Control", () => {
|
|
1091
1091
|
n.value = !1;
|
|
1092
1092
|
}), { pressSpace: e, pressShift: a, pressCtrl: n };
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1095
|
-
const { pressSpace: a } =
|
|
1094
|
+
function Jt(e) {
|
|
1095
|
+
const { pressSpace: a } = ce(), n = new Image(1, 1);
|
|
1096
1096
|
n.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1097
1097
|
let o = 0, t = 0;
|
|
1098
1098
|
function r(c) {
|
|
@@ -1110,8 +1110,8 @@ function Ht(e) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
return { handleElementDragStart: r, handleElementDrag: l, handleElementDragEnd: i };
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1114
|
-
const { pressCtrl: a, canvasScale: n, disabledZoom: o } =
|
|
1113
|
+
function Wt(e) {
|
|
1114
|
+
const { pressCtrl: a, canvasScale: n, disabledZoom: o } = ce();
|
|
1115
1115
|
function t(r) {
|
|
1116
1116
|
if (!a.value || o.value)
|
|
1117
1117
|
return;
|
|
@@ -1119,14 +1119,14 @@ function Kt(e) {
|
|
|
1119
1119
|
let l = 0;
|
|
1120
1120
|
r.deltaY < 0 ? l = n.value + 0.05 : l = n.value - 0.05, !(l > 150 || l < 0.5) && (n.value = l);
|
|
1121
1121
|
}
|
|
1122
|
-
return
|
|
1122
|
+
return P(
|
|
1123
1123
|
() => n.value,
|
|
1124
1124
|
(r) => {
|
|
1125
1125
|
e.value && !o.value && (e.value.style.transform = `scale(${r})`);
|
|
1126
1126
|
}
|
|
1127
1127
|
), { handleZoom: t, canvasScale: n };
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function Ht(e, a = 16.66) {
|
|
1130
1130
|
let n;
|
|
1131
1131
|
function o() {
|
|
1132
1132
|
t(), n = window.setInterval(e, a);
|
|
@@ -1139,7 +1139,7 @@ function qt(e, a = 16.66) {
|
|
|
1139
1139
|
stopTimedQuery: t
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
|
-
const
|
|
1142
|
+
const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ G({
|
|
1143
1143
|
__name: "index",
|
|
1144
1144
|
setup(e, { expose: a }) {
|
|
1145
1145
|
const n = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t = S(null), r = S(!1), l = S(!1), i = S({}), c = H("pageSchema"), w = S(null), h = S("");
|
|
@@ -1150,7 +1150,7 @@ const St = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, D
|
|
|
1150
1150
|
r.value = !1;
|
|
1151
1151
|
}
|
|
1152
1152
|
function d() {
|
|
1153
|
-
r.value = !0, h.value =
|
|
1153
|
+
r.value = !0, h.value = le();
|
|
1154
1154
|
}
|
|
1155
1155
|
async function f() {
|
|
1156
1156
|
try {
|
|
@@ -1169,7 +1169,7 @@ const St = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, D
|
|
|
1169
1169
|
}
|
|
1170
1170
|
return a({
|
|
1171
1171
|
handleOpen: d
|
|
1172
|
-
}), (u, A) => (
|
|
1172
|
+
}), (u, A) => (M(), L(_(o), {
|
|
1173
1173
|
modelValue: r.value,
|
|
1174
1174
|
"onUpdate:modelValue": A[1] || (A[1] = (C) => r.value = C),
|
|
1175
1175
|
title: "预览",
|
|
@@ -1179,15 +1179,15 @@ const St = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, D
|
|
|
1179
1179
|
onOk: f,
|
|
1180
1180
|
okText: "表单数据"
|
|
1181
1181
|
}, {
|
|
1182
|
-
default:
|
|
1183
|
-
z("div",
|
|
1184
|
-
(
|
|
1182
|
+
default: V(() => [
|
|
1183
|
+
z("div", wt, [
|
|
1184
|
+
(M(), L(_(Xe), {
|
|
1185
1185
|
key: h.value,
|
|
1186
1186
|
ref_key: "kb",
|
|
1187
1187
|
ref: w,
|
|
1188
1188
|
"page-schema": _(c)
|
|
1189
1189
|
}, null, 8, ["page-schema"])),
|
|
1190
|
-
|
|
1190
|
+
T(_(o), {
|
|
1191
1191
|
modelValue: l.value,
|
|
1192
1192
|
"onUpdate:modelValue": A[0] || (A[0] = (C) => l.value = C),
|
|
1193
1193
|
title: "表单数据",
|
|
@@ -1196,9 +1196,9 @@ const St = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, D
|
|
|
1196
1196
|
onClose: s,
|
|
1197
1197
|
onOk: s
|
|
1198
1198
|
}, {
|
|
1199
|
-
default:
|
|
1200
|
-
z("div",
|
|
1201
|
-
|
|
1199
|
+
default: V(() => [
|
|
1200
|
+
z("div", bt, [
|
|
1201
|
+
T(_(n), {
|
|
1202
1202
|
ref_key: "monacoEditorRef",
|
|
1203
1203
|
ref: t,
|
|
1204
1204
|
autoToggleTheme: "",
|
|
@@ -1215,10 +1215,10 @@ const St = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, D
|
|
|
1215
1215
|
_: 1
|
|
1216
1216
|
}, 8, ["modelValue"]));
|
|
1217
1217
|
}
|
|
1218
|
-
}),
|
|
1218
|
+
}), At = {
|
|
1219
1219
|
key: 0,
|
|
1220
1220
|
class: "epic-loading-box"
|
|
1221
|
-
},
|
|
1221
|
+
}, Dt = { class: "epic-designer-main" }, Et = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ G({
|
|
1222
1222
|
__name: "designer",
|
|
1223
1223
|
props: {
|
|
1224
1224
|
disabledZoom: { type: Boolean, default: !1 },
|
|
@@ -1240,7 +1240,7 @@ const St = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, D
|
|
|
1240
1240
|
"updateSourceData"
|
|
1241
1241
|
],
|
|
1242
1242
|
setup(e, { expose: a, emit: n }) {
|
|
1243
|
-
const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-
|
|
1243
|
+
const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-DLeXF615.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), c = Ie(), w = He(), h = e;
|
|
1244
1244
|
let s = {
|
|
1245
1245
|
schemas: [
|
|
1246
1246
|
{
|
|
@@ -1292,7 +1292,7 @@ defineExpose({
|
|
|
1292
1292
|
s = h.defaultSchema;
|
|
1293
1293
|
return;
|
|
1294
1294
|
}
|
|
1295
|
-
h.source && F.setSourceData(h.source), h.formMode && (s.schemas = F.formSchemas);
|
|
1295
|
+
console.log("%c [ ]-141", "font-size:13px; background:pink; color:#bf2c9f;", h.source), h.source && F.setSourceData(h.source), h.formMode && (s.schemas = F.formSchemas);
|
|
1296
1296
|
}), c.setDesignMode(), c.setDefaultComponentIds(s.schemas);
|
|
1297
1297
|
const y = n, d = S(null), f = Z({
|
|
1298
1298
|
checkedNode: null,
|
|
@@ -1302,34 +1302,34 @@ defineExpose({
|
|
|
1302
1302
|
}), u = Z({
|
|
1303
1303
|
schemas: [],
|
|
1304
1304
|
script: s.script
|
|
1305
|
-
}), { disabledZoom: A } =
|
|
1305
|
+
}), { disabledZoom: A } = ce();
|
|
1306
1306
|
se(() => {
|
|
1307
1307
|
A.value = h.disabledZoom;
|
|
1308
1308
|
}), se(() => {
|
|
1309
1309
|
const b = u.script;
|
|
1310
1310
|
b && b !== "" && c.setMethods(b);
|
|
1311
|
-
}),
|
|
1311
|
+
}), $("pageSchema", u), $("revoke", w), $("pageManager", c), $(
|
|
1312
1312
|
"designerProps",
|
|
1313
|
-
|
|
1314
|
-
),
|
|
1313
|
+
U(() => h)
|
|
1314
|
+
), $("designer", {
|
|
1315
1315
|
setCheckedNode: p,
|
|
1316
1316
|
setHoverNode: g,
|
|
1317
1317
|
setDisableHover: E,
|
|
1318
|
-
handleToggleDeviceMode:
|
|
1318
|
+
handleToggleDeviceMode: ue,
|
|
1319
1319
|
reset: W,
|
|
1320
1320
|
state: f
|
|
1321
|
-
}),
|
|
1321
|
+
}), de.on("saveSourceData", (b) => {
|
|
1322
1322
|
y("saveSourceData", b);
|
|
1323
|
-
}),
|
|
1323
|
+
}), de.on("deleteSourceData", (b) => {
|
|
1324
1324
|
y("deleteSourceData", b);
|
|
1325
|
-
}),
|
|
1325
|
+
}), de.on("updateSourceData", (b) => {
|
|
1326
1326
|
y("updateSourceData", b);
|
|
1327
1327
|
});
|
|
1328
1328
|
function C() {
|
|
1329
|
-
u.schemas =
|
|
1329
|
+
u.schemas = N(s.schemas), p(u.schemas[0]), w.push(u.schemas, "初始化撤销功能");
|
|
1330
1330
|
}
|
|
1331
1331
|
async function p(b = u.schemas[0]) {
|
|
1332
|
-
f.checkedNode = b, f.matched =
|
|
1332
|
+
f.checkedNode = b, f.matched = ze(u.schemas, b.id);
|
|
1333
1333
|
}
|
|
1334
1334
|
async function g(b = null) {
|
|
1335
1335
|
var X;
|
|
@@ -1348,18 +1348,18 @@ defineExpose({
|
|
|
1348
1348
|
f.disableHover = b;
|
|
1349
1349
|
}
|
|
1350
1350
|
function O(b) {
|
|
1351
|
-
J(u,
|
|
1351
|
+
J(u, N(b));
|
|
1352
1352
|
}
|
|
1353
1353
|
function B() {
|
|
1354
|
-
return
|
|
1354
|
+
return we(u);
|
|
1355
1355
|
}
|
|
1356
1356
|
function W() {
|
|
1357
1357
|
Ee(u.schemas, s.schemas) && u.script === s.script || (J(u.schemas, s.schemas), u.script = s.script, p(u.schemas[0]), w.push(u.schemas, "重置操作"), y("reset", u));
|
|
1358
1358
|
}
|
|
1359
1359
|
function oe() {
|
|
1360
|
-
y("save",
|
|
1360
|
+
y("save", we(u));
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function ue(b) {
|
|
1363
1363
|
y("toggleDeviceMode", b);
|
|
1364
1364
|
}
|
|
1365
1365
|
function ae() {
|
|
@@ -1371,64 +1371,64 @@ defineExpose({
|
|
|
1371
1371
|
getData: B,
|
|
1372
1372
|
reset: W,
|
|
1373
1373
|
preview: ae
|
|
1374
|
-
}), (b, X) => _(F).initialized.value ? (
|
|
1374
|
+
}), (b, X) => _(F).initialized.value ? (M(), L(De, {
|
|
1375
1375
|
key: 1,
|
|
1376
1376
|
onResolve: v
|
|
1377
1377
|
}, {
|
|
1378
|
-
default:
|
|
1379
|
-
z("div",
|
|
1380
|
-
z("div",
|
|
1381
|
-
|
|
1382
|
-
h.hiddenHeader ? Ae("", !0) : (
|
|
1378
|
+
default: V(() => [
|
|
1379
|
+
z("div", Dt, [
|
|
1380
|
+
z("div", Et, [
|
|
1381
|
+
R(b.$slots, "header", {}, () => [
|
|
1382
|
+
h.hiddenHeader ? Ae("", !0) : (M(), L(_(o), {
|
|
1383
1383
|
key: 0,
|
|
1384
1384
|
onPreview: ae,
|
|
1385
1385
|
onSave: oe
|
|
1386
1386
|
}, {
|
|
1387
|
-
header:
|
|
1388
|
-
|
|
1387
|
+
header: V(() => [
|
|
1388
|
+
R(b.$slots, "header-prefix")
|
|
1389
1389
|
]),
|
|
1390
|
-
prefix:
|
|
1391
|
-
|
|
1390
|
+
prefix: V(() => [
|
|
1391
|
+
R(b.$slots, "header-prefix")
|
|
1392
1392
|
]),
|
|
1393
|
-
title:
|
|
1394
|
-
|
|
1393
|
+
title: V(() => [
|
|
1394
|
+
R(b.$slots, "header-title")
|
|
1395
1395
|
]),
|
|
1396
|
-
"right-prefix":
|
|
1397
|
-
|
|
1396
|
+
"right-prefix": V(() => [
|
|
1397
|
+
R(b.$slots, "header-right-prefix")
|
|
1398
1398
|
]),
|
|
1399
|
-
"right-action":
|
|
1400
|
-
|
|
1399
|
+
"right-action": V(() => [
|
|
1400
|
+
R(b.$slots, "header-right-action")
|
|
1401
1401
|
]),
|
|
1402
|
-
"right-suffix":
|
|
1403
|
-
|
|
1402
|
+
"right-suffix": V(() => [
|
|
1403
|
+
R(b.$slots, "header-right-suffix")
|
|
1404
1404
|
]),
|
|
1405
1405
|
_: 3
|
|
1406
1406
|
}))
|
|
1407
1407
|
])
|
|
1408
1408
|
]),
|
|
1409
1409
|
z("div", {
|
|
1410
|
-
class:
|
|
1410
|
+
class: Te(["epic-split-view-container", { "hidden-header": b.hiddenHeader }])
|
|
1411
1411
|
}, [
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1412
|
+
T(_(t)),
|
|
1413
|
+
T(_(r)),
|
|
1414
|
+
T(_(l))
|
|
1415
1415
|
], 2),
|
|
1416
|
-
|
|
1416
|
+
T(St, {
|
|
1417
1417
|
ref_key: "previewRef",
|
|
1418
1418
|
ref: d
|
|
1419
1419
|
}, null, 512)
|
|
1420
1420
|
])
|
|
1421
1421
|
]),
|
|
1422
|
-
fallback:
|
|
1423
|
-
z("div",
|
|
1424
|
-
|
|
1422
|
+
fallback: V(() => [
|
|
1423
|
+
z("div", It, [
|
|
1424
|
+
T(_(i))
|
|
1425
1425
|
])
|
|
1426
1426
|
]),
|
|
1427
1427
|
_: 3
|
|
1428
|
-
})) : (
|
|
1428
|
+
})) : (M(), he("div", At));
|
|
1429
1429
|
}
|
|
1430
|
-
}),
|
|
1431
|
-
component: async () => await import("./index-
|
|
1430
|
+
}), kt = {
|
|
1431
|
+
component: async () => await import("./index-QVJsPbkw.js"),
|
|
1432
1432
|
defaultSchema: {
|
|
1433
1433
|
label: "代码编辑器",
|
|
1434
1434
|
type: "monacoEditor",
|
|
@@ -1456,7 +1456,7 @@ defineExpose({
|
|
|
1456
1456
|
]
|
|
1457
1457
|
},
|
|
1458
1458
|
bindModel: "model-value"
|
|
1459
|
-
},
|
|
1459
|
+
}, Ct = {
|
|
1460
1460
|
component: async () => await import("./index-DiDIFoTk.js"),
|
|
1461
1461
|
defaultSchema: {
|
|
1462
1462
|
label: "页面",
|
|
@@ -1477,17 +1477,17 @@ defineExpose({
|
|
|
1477
1477
|
]
|
|
1478
1478
|
}
|
|
1479
1479
|
};
|
|
1480
|
-
function
|
|
1481
|
-
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-
|
|
1480
|
+
function _t(e) {
|
|
1481
|
+
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-DqoXRcy4.js")), e.component("EActionEditor", async () => await import("./index-D4hsNiQf.js")), e.component("ERuleEditor", async () => await import("./index-CgW7uOAC.js")), e.component("EOptionsEditor", async () => await import("./index-CM2yS7Lz.js")), e.component("ENode", async () => await import("./index-BXqSZLpt.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
|
|
1482
1482
|
id: "component_view",
|
|
1483
1483
|
title: "组件",
|
|
1484
1484
|
icon: "icon--epic--extension-outline",
|
|
1485
|
-
component: async () => await import("./index-
|
|
1485
|
+
component: async () => await import("./index-BimQe5uF.js")
|
|
1486
1486
|
}), e.registerActivitybar({
|
|
1487
1487
|
id: "sound_code_view",
|
|
1488
1488
|
title: "源码",
|
|
1489
1489
|
icon: "icon--epic--sdk-outline-rounded",
|
|
1490
|
-
component: async () => await import("./index-
|
|
1490
|
+
component: async () => await import("./index-Dzatsws1.js")
|
|
1491
1491
|
}), e.registerActivitybar({
|
|
1492
1492
|
id: "outline_view",
|
|
1493
1493
|
title: "大纲",
|
|
@@ -1496,55 +1496,55 @@ function Pt(e) {
|
|
|
1496
1496
|
}), e.registerRightSidebar({
|
|
1497
1497
|
id: "attribute_view",
|
|
1498
1498
|
title: "属性",
|
|
1499
|
-
component: async () => await import("./attributeView-
|
|
1499
|
+
component: async () => await import("./attributeView-CsETdPfQ.js")
|
|
1500
1500
|
}), e.registerRightSidebar({
|
|
1501
1501
|
id: "style_view",
|
|
1502
1502
|
title: "样式",
|
|
1503
|
-
component: async () => await import("./styleView-
|
|
1503
|
+
component: async () => await import("./styleView-kap7mePV.js")
|
|
1504
1504
|
}), e.registerRightSidebar({
|
|
1505
1505
|
id: "event_view",
|
|
1506
1506
|
title: "事件",
|
|
1507
|
-
component: async () => await import("./eventView-
|
|
1508
|
-
}), [
|
|
1507
|
+
component: async () => await import("./eventView-y92-iX1R.js")
|
|
1508
|
+
}), [kt, Ct].forEach((n) => {
|
|
1509
1509
|
e.registerComponent(n);
|
|
1510
1510
|
});
|
|
1511
1511
|
}
|
|
1512
|
-
|
|
1512
|
+
_t(F);
|
|
1513
1513
|
export {
|
|
1514
|
-
|
|
1514
|
+
Je as A,
|
|
1515
1515
|
te as B,
|
|
1516
|
-
|
|
1516
|
+
We as C,
|
|
1517
1517
|
ee as D,
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1518
|
+
Le as E,
|
|
1519
|
+
gt as F,
|
|
1520
|
+
mt as G,
|
|
1521
|
+
ht as H,
|
|
1522
|
+
yt as I,
|
|
1523
|
+
qe as _,
|
|
1524
|
+
Ht as a,
|
|
1525
|
+
pt as b,
|
|
1526
|
+
Nt as c,
|
|
1527
1527
|
J as d,
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1528
|
+
Jt as e,
|
|
1529
|
+
$t as f,
|
|
1530
|
+
Pt as g,
|
|
1531
|
+
Tt as h,
|
|
1532
|
+
Wt as i,
|
|
1533
|
+
Bt as j,
|
|
1534
|
+
le as k,
|
|
1535
|
+
Rt as l,
|
|
1536
|
+
N as m,
|
|
1537
|
+
Lt as n,
|
|
1538
1538
|
Ee as o,
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1539
|
+
Ot as p,
|
|
1540
|
+
zt as q,
|
|
1541
|
+
Xe as r,
|
|
1542
|
+
Ft as s,
|
|
1543
|
+
Kt as t,
|
|
1544
|
+
ce as u,
|
|
1545
1545
|
Ie as v,
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1546
|
+
Ut as w,
|
|
1547
|
+
He as x,
|
|
1548
|
+
ze as y,
|
|
1549
|
+
Mt as z
|
|
1550
1550
|
};
|