react-big-screen 0.0.12 → 0.0.13
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/README.md +47 -0
- package/es/{attributes-DX8kqNSX.mjs → attributes--4TLwTJ7.mjs} +1 -1
- package/es/{attributes-Cpmd7Txn.mjs → attributes-BQVvyBiv.mjs} +2 -2
- package/es/{attributes-CXxDCEoU.mjs → attributes-BWVuAA3i.mjs} +1 -1
- package/es/{attributes-CAbIPkXp.mjs → attributes-BqRyp1ob.mjs} +1 -1
- package/es/{attributes-CnC5d4dB.mjs → attributes-Bzd30ZIf.mjs} +1 -1
- package/es/{attributes-Ble3yfo1.mjs → attributes-C-FswaWY.mjs} +1 -1
- package/es/{attributes-iVSwJDAX.mjs → attributes-C1NWgfsy.mjs} +1 -1
- package/es/{attributes-CkxbpIDj.mjs → attributes-CRjnUsRx.mjs} +1 -1
- package/es/{attributes-xsuWi_su.mjs → attributes-DLLyxz0N.mjs} +1 -1
- package/es/{attributes-C6B-ZXmC.mjs → attributes-DmdRtgZZ.mjs} +1 -1
- package/es/{attributes-zcNzA9eV.mjs → attributes-Ds-UHXjB.mjs} +1 -1
- package/es/{attributes-BqM6ULf4.mjs → attributes-Dsp5j2A0.mjs} +1 -1
- package/es/{index-BFgFK9TM.mjs → index-3xI6pYK_.mjs} +3 -3
- package/es/{index-r57x4X5U.mjs → index-B152sOCT.mjs} +2 -2
- package/es/{index-H0rVQWTL.mjs → index-B5kA4V3C.mjs} +2 -2
- package/es/{index-BW_uo1lA.mjs → index-BaXFBriK.mjs} +611 -627
- package/es/{index--QItsPX3.mjs → index-BkiBaEzs.mjs} +2 -2
- package/es/{index-sfCjPr12.mjs → index-BvuyAzoz.mjs} +2 -2
- package/es/{index-3cCHmj8w.mjs → index-BxFObudF.mjs} +3 -3
- package/es/{index-awsf1gCq.mjs → index-BxnULZLw.mjs} +2 -2
- package/es/{index-DQuRy5CD.mjs → index-C18T8lZz.mjs} +2 -2
- package/es/{index-CYN5AnmR.mjs → index-C3s_52_F.mjs} +2 -2
- package/es/{index-DFNd2-4P.mjs → index-CCiktl86.mjs} +2 -2
- package/es/{index-CEomX12N.mjs → index-CWVkCbis.mjs} +3 -3
- package/es/{index-DrLpfkDS.mjs → index-Cp4rqgjF.mjs} +3 -3
- package/es/{index-DEebKkW3.mjs → index-D-q9tYW0.mjs} +2 -2
- package/es/{index-Bb-5dA14.mjs → index-DB6gZpoX.mjs} +2 -2
- package/es/{index-Pqe51Zf-.mjs → index-DSLm4B3h.mjs} +2 -2
- package/es/{index-izPLYvUd.mjs → index-DTUaHCnR.mjs} +239 -222
- package/es/{index-D0U_cb8E.mjs → index-Dd7rZVc_.mjs} +2 -2
- package/es/{index-yKkQtvIX.mjs → index-DjkNh2yG.mjs} +2 -2
- package/es/{index-DqEg6HY6.mjs → index-NxDdAVMu.mjs} +1 -1
- package/es/{index-DCRN8jl1.mjs → index-O_OcKtSF.mjs} +1 -1
- package/es/{index-CtV1M2dW.mjs → index-RYQ9EzNC.mjs} +2 -2
- package/es/{index-DeQ7oW_E.mjs → index-fj1Y8y5V.mjs} +2 -2
- package/es/{index-DTmQQ9sf.mjs → index-gJTpfQvV.mjs} +2 -2
- package/es/{index-BataooQb.mjs → index-hk0ols1y.mjs} +2 -2
- package/es/{index-EQ5Mshvz.mjs → index-z6ax5THp.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-1nlDtL2q.mjs → selectPage-BrsWx9sU.mjs} +1 -1
- package/es/style.css +1 -1
- package/es/{useCurrentPageId-BuiSdDvY.mjs → useCurrentPageId-BFU6rfHk.mjs} +1 -1
- package/package.json +1 -1
- package/types/src/export/components/RenderEditor/index.d.ts +2 -0
- package/types/src/export/index.d.ts +8 -2
- package/types/src/pages/components/Footer/index.d.ts +1 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var Ye = Object.defineProperty;
|
|
2
2
|
var Qe = (r, e, t) => e in r ? Ye(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
3
|
+
var d = (r, e, t) => Qe(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as u, jsxs as C, Fragment as et } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
5
5
|
import { create as tt } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/zustand@5.0.8_@types+react@18.3.26_react@18.3.1/node_modules/zustand/esm/index.mjs";
|
|
6
6
|
import re from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
7
|
-
import c, { createContext as at, useRef as R, useCallback as nt, useMemo as G, isValidElement as it, useEffect as J, useContext as rt, useState as x, forwardRef as ot, useImperativeHandle as
|
|
8
|
-
import
|
|
7
|
+
import c, { createContext as at, useRef as R, useCallback as nt, useMemo as G, isValidElement as it, useEffect as J, useContext as rt, useState as x, forwardRef as ot, useImperativeHandle as st } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
8
|
+
import lt from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
9
9
|
import ct, { createRoot as ue } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
10
10
|
import * as dt from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
|
|
11
11
|
import { Form as F, Tooltip as D, Button as he, Input as ge, Space as fe, message as me, Modal as ut, Table as ht } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
|
|
@@ -69,7 +69,7 @@ function Tt(r = new Blob([""]), e = V) {
|
|
|
69
69
|
const Pt = {
|
|
70
70
|
antd: dt,
|
|
71
71
|
react: c,
|
|
72
|
-
"react-dom":
|
|
72
|
+
"react-dom": lt,
|
|
73
73
|
"react-dom/client": ct
|
|
74
74
|
};
|
|
75
75
|
function be(r) {
|
|
@@ -102,11 +102,11 @@ async function At(r) {
|
|
|
102
102
|
if (!r) return;
|
|
103
103
|
let t;
|
|
104
104
|
const a = function() {
|
|
105
|
-
var
|
|
105
|
+
var l;
|
|
106
106
|
let i, o;
|
|
107
107
|
arguments.length === 1 ? (i = [], o = arguments[0]) : arguments.length === 2 ? [i, o] = arguments : arguments.length === 3 && (i = arguments[1], o = arguments[2]);
|
|
108
|
-
const
|
|
109
|
-
t = o == null ? void 0 : o(...
|
|
108
|
+
const s = ((l = i == null ? void 0 : i.map) == null ? void 0 : l.call(i, (g) => be(g))) || [];
|
|
109
|
+
t = o == null ? void 0 : o(...s);
|
|
110
110
|
}, n = new Function("define", r);
|
|
111
111
|
try {
|
|
112
112
|
return n(a), e(t ?? void 0);
|
|
@@ -241,11 +241,11 @@ function In(r) {
|
|
|
241
241
|
class Mt {
|
|
242
242
|
constructor() {
|
|
243
243
|
// 存储package映射(id => package)
|
|
244
|
-
|
|
244
|
+
d(this, "pkgMap", /* @__PURE__ */ new Map());
|
|
245
245
|
// 存储package变化回调函数
|
|
246
|
-
|
|
246
|
+
d(this, "pkgCallbacks", []);
|
|
247
247
|
// localforage实例
|
|
248
|
-
|
|
248
|
+
d(this, "localforageIns", re.createInstance({
|
|
249
249
|
name: "ReactBigScreen_code",
|
|
250
250
|
driver: re.INDEXEDDB,
|
|
251
251
|
description: "存储源代码缓存",
|
|
@@ -387,24 +387,24 @@ class Mt {
|
|
|
387
387
|
}), Promise.all(
|
|
388
388
|
a.map((i) => oe(i.originData))
|
|
389
389
|
).then((i) => {
|
|
390
|
-
i.forEach((o,
|
|
391
|
-
const
|
|
392
|
-
o && (o.origin =
|
|
390
|
+
i.forEach((o, s) => {
|
|
391
|
+
const l = t[s];
|
|
392
|
+
o && (o.origin = l.origin, o.originData = "", this.savePackageSourceCode(o.id, l.originData));
|
|
393
393
|
}), this.registerPackage(i);
|
|
394
394
|
}), n.forEach((i) => {
|
|
395
395
|
_e(i.originData).then((o) => {
|
|
396
|
-
oe(o).then((
|
|
397
|
-
|
|
396
|
+
oe(o).then((s) => {
|
|
397
|
+
s && (s.origin = i.origin, s.originData = i.originData, this.savePackageSourceCode(s.id, o)), this.registerPackage(s);
|
|
398
398
|
});
|
|
399
399
|
});
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class se {
|
|
404
404
|
constructor() {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
405
|
+
d(this, "_size", 0);
|
|
406
|
+
d(this, "_data", {});
|
|
407
|
+
d(this, "_events", []);
|
|
408
408
|
}
|
|
409
409
|
// 覆盖设置
|
|
410
410
|
set(e) {
|
|
@@ -460,11 +460,11 @@ class le {
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
class Lt extends
|
|
463
|
+
class Lt extends se {
|
|
464
464
|
constructor() {
|
|
465
465
|
super(...arguments);
|
|
466
466
|
// 存储选中的实例列表
|
|
467
|
-
|
|
467
|
+
d(this, "selectedInstances", new se());
|
|
468
468
|
}
|
|
469
469
|
// 获取实例
|
|
470
470
|
getInstances(t) {
|
|
@@ -537,10 +537,10 @@ const Ot = "_configRender_wy2nc_59", Dt = "_configRender_item_wy2nc_65", Rt = "_
|
|
|
537
537
|
configRender_item_label: Ft,
|
|
538
538
|
configRender_item_value: Ht
|
|
539
539
|
}, Ie = at(void 0);
|
|
540
|
-
function
|
|
540
|
+
function le() {
|
|
541
541
|
return rt(Ie);
|
|
542
542
|
}
|
|
543
|
-
import("./index-
|
|
543
|
+
import("./index-D-q9tYW0.mjs").then((r) => {
|
|
544
544
|
var e;
|
|
545
545
|
(e = r.default) == null || e.call(r);
|
|
546
546
|
});
|
|
@@ -549,55 +549,55 @@ function Se(r) {
|
|
|
549
549
|
const { items: e } = r, [t] = F.useForm(), a = R();
|
|
550
550
|
a.current = r;
|
|
551
551
|
const n = nt(() => {
|
|
552
|
-
const o = {},
|
|
553
|
-
for (const
|
|
554
|
-
o[
|
|
552
|
+
const o = {}, s = t.getFieldsValue();
|
|
553
|
+
for (const l in s)
|
|
554
|
+
o[l] = void 0;
|
|
555
555
|
return o;
|
|
556
556
|
}, []), i = G(() => {
|
|
557
557
|
var o;
|
|
558
|
-
return /* @__PURE__ */
|
|
558
|
+
return /* @__PURE__ */ u(
|
|
559
559
|
F,
|
|
560
560
|
{
|
|
561
561
|
form: t,
|
|
562
562
|
className: P.configRender,
|
|
563
|
-
onValuesChange: (
|
|
564
|
-
var
|
|
565
|
-
(g = (
|
|
563
|
+
onValuesChange: (s) => {
|
|
564
|
+
var l, g;
|
|
565
|
+
(g = (l = a.current) == null ? void 0 : l.onChange) == null || g.call(l, {
|
|
566
566
|
...t.getFieldsValue(),
|
|
567
|
-
...
|
|
567
|
+
...s
|
|
568
568
|
});
|
|
569
569
|
},
|
|
570
|
-
children: (o = e == null ? void 0 : e.map) == null ? void 0 : o.call(e, (
|
|
571
|
-
if (it(
|
|
572
|
-
return
|
|
573
|
-
if (typeof
|
|
574
|
-
return /* @__PURE__ */
|
|
575
|
-
const
|
|
570
|
+
children: (o = e == null ? void 0 : e.map) == null ? void 0 : o.call(e, (s) => {
|
|
571
|
+
if (it(s))
|
|
572
|
+
return s;
|
|
573
|
+
if (typeof s == "function")
|
|
574
|
+
return /* @__PURE__ */ u(s, { useExtra: le }, s);
|
|
575
|
+
const l = typeof s.component == "string" ? we.get(s.component) : s.component;
|
|
576
576
|
return /* @__PURE__ */ C("div", { className: P.configRender_item, children: [
|
|
577
577
|
/* @__PURE__ */ C(
|
|
578
578
|
"div",
|
|
579
579
|
{
|
|
580
580
|
className: k(
|
|
581
581
|
P.configRender_item_label,
|
|
582
|
-
(
|
|
582
|
+
(s == null ? void 0 : s.labelTip) && P.configRender_item_help
|
|
583
583
|
),
|
|
584
584
|
style: r == null ? void 0 : r.labelStyle,
|
|
585
585
|
children: [
|
|
586
|
-
|
|
587
|
-
/* @__PURE__ */
|
|
586
|
+
s != null && s.labelTip ? /* @__PURE__ */ u(D, { title: s.labelTip, children: s.label }) : s.label,
|
|
587
|
+
/* @__PURE__ */ u("span", { children: ":" })
|
|
588
588
|
]
|
|
589
589
|
}
|
|
590
590
|
),
|
|
591
|
-
/* @__PURE__ */
|
|
591
|
+
/* @__PURE__ */ u("div", { className: P.configRender_item_value, children: l ? /* @__PURE__ */ u(
|
|
592
592
|
F.Item,
|
|
593
593
|
{
|
|
594
594
|
noStyle: !0,
|
|
595
|
-
name: (
|
|
596
|
-
children: /* @__PURE__ */
|
|
595
|
+
name: (s == null ? void 0 : s.name) || s.key,
|
|
596
|
+
children: /* @__PURE__ */ u(l, { options: s == null ? void 0 : s.options, useExtra: le })
|
|
597
597
|
},
|
|
598
|
-
|
|
598
|
+
s == null ? void 0 : s.key
|
|
599
599
|
) : void 0 })
|
|
600
|
-
] },
|
|
600
|
+
] }, s == null ? void 0 : s.key);
|
|
601
601
|
})
|
|
602
602
|
}
|
|
603
603
|
);
|
|
@@ -607,7 +607,7 @@ function Se(r) {
|
|
|
607
607
|
...n(),
|
|
608
608
|
...r == null ? void 0 : r.value
|
|
609
609
|
});
|
|
610
|
-
}, [r == null ? void 0 : r.value]), /* @__PURE__ */
|
|
610
|
+
}, [r == null ? void 0 : r.value]), /* @__PURE__ */ u(Ie.Provider, { value: r == null ? void 0 : r.extra, children: i });
|
|
611
611
|
}
|
|
612
612
|
Se.register = (r, e) => {
|
|
613
613
|
we.set(r, e);
|
|
@@ -630,7 +630,7 @@ function A(r, e) {
|
|
|
630
630
|
...a
|
|
631
631
|
}
|
|
632
632
|
} : t;
|
|
633
|
-
return /* @__PURE__ */
|
|
633
|
+
return /* @__PURE__ */ u(
|
|
634
634
|
Se,
|
|
635
635
|
{
|
|
636
636
|
items: r,
|
|
@@ -654,16 +654,16 @@ const $t = {
|
|
|
654
654
|
};
|
|
655
655
|
class Bt {
|
|
656
656
|
constructor() {
|
|
657
|
-
|
|
657
|
+
d(this, "maxLevel", 1);
|
|
658
658
|
// 最大层级
|
|
659
|
-
|
|
659
|
+
d(this, "eventMap", {});
|
|
660
660
|
// 数据节点变更回调事件 (id => callback)
|
|
661
|
-
|
|
661
|
+
d(this, "groupMap", {});
|
|
662
662
|
// 成组映射(groupId => 对应元素)
|
|
663
|
-
|
|
663
|
+
d(this, "panelMap", {});
|
|
664
664
|
// 面板映射(panelId => {children: [id, id, ...]})
|
|
665
665
|
// 删除回调
|
|
666
|
-
|
|
666
|
+
d(this, "deleteListeners", []);
|
|
667
667
|
}
|
|
668
668
|
// 监听删除
|
|
669
669
|
onDelete(e) {
|
|
@@ -717,8 +717,8 @@ class Bt {
|
|
|
717
717
|
parentId: "",
|
|
718
718
|
children: /* @__PURE__ */ new Set()
|
|
719
719
|
})).children.add(t.id), t.panels && t.panels.forEach((i) => {
|
|
720
|
-
var
|
|
721
|
-
const o = (
|
|
720
|
+
var s, l;
|
|
721
|
+
const o = (s = this.panelMap)[l = `${i.value}`] || (s[l] = {
|
|
722
722
|
parentId: t.id,
|
|
723
723
|
children: /* @__PURE__ */ new Set()
|
|
724
724
|
});
|
|
@@ -792,10 +792,10 @@ class Bt {
|
|
|
792
792
|
delete(e) {
|
|
793
793
|
const t = Array.isArray(e) ? e : [e], a = /* @__PURE__ */ new Set();
|
|
794
794
|
t.forEach((i) => {
|
|
795
|
-
var
|
|
795
|
+
var s;
|
|
796
796
|
const o = this.get(i);
|
|
797
|
-
o && (a.add(o.id), (
|
|
798
|
-
a.add(
|
|
797
|
+
o && (a.add(o.id), (s = o == null ? void 0 : o.panels) != null && s.length && this.getLayoutChildrenIds(o.id).forEach((l) => {
|
|
798
|
+
a.add(l);
|
|
799
799
|
}));
|
|
800
800
|
});
|
|
801
801
|
const n = z().componentNodes.filter((i) => !a.has(i.id));
|
|
@@ -919,12 +919,12 @@ class Bt {
|
|
|
919
919
|
}
|
|
920
920
|
// 将组件移出面板
|
|
921
921
|
removeFromPanel(e, t = !0) {
|
|
922
|
-
var o,
|
|
922
|
+
var o, s;
|
|
923
923
|
const a = typeof e == "string" ? this.get(e) : e, n = a == null ? void 0 : a.panelId;
|
|
924
924
|
if (!n || !a)
|
|
925
925
|
return;
|
|
926
926
|
const i = this.panelMap[n];
|
|
927
|
-
(
|
|
927
|
+
(s = (o = i == null ? void 0 : i.children) == null ? void 0 : o.delete) == null || s.call(o, a.id), t && this.update(a.id, {
|
|
928
928
|
panelId: void 0
|
|
929
929
|
});
|
|
930
930
|
}
|
|
@@ -933,7 +933,7 @@ class Bt {
|
|
|
933
933
|
var a, n, i, o;
|
|
934
934
|
if (!e) return "";
|
|
935
935
|
const t = (n = this.get((a = this.panelMap[e]) == null ? void 0 : a.parentId)) == null ? void 0 : n.panels;
|
|
936
|
-
return ((o = (i = t == null ? void 0 : t.find) == null ? void 0 : i.call(t, (
|
|
936
|
+
return ((o = (i = t == null ? void 0 : t.find) == null ? void 0 : i.call(t, (s) => s.value === e)) == null ? void 0 : o.label) || "";
|
|
937
937
|
}
|
|
938
938
|
// 获取面板包含的子组件id(第一层)
|
|
939
939
|
getPanelChildrenIds(e) {
|
|
@@ -944,10 +944,10 @@ class Bt {
|
|
|
944
944
|
getPanelComponentNodes(e, t) {
|
|
945
945
|
var n, i;
|
|
946
946
|
const a = this.get(e);
|
|
947
|
-
return a ? ((i = (n = a == null ? void 0 : a.panels) == null ? void 0 : n.reduce) == null ? void 0 : i.call(n, (o,
|
|
948
|
-
const
|
|
947
|
+
return a ? ((i = (n = a == null ? void 0 : a.panels) == null ? void 0 : n.reduce) == null ? void 0 : i.call(n, (o, s) => {
|
|
948
|
+
const l = this.getPanelChildrenIds(s.value);
|
|
949
949
|
return o.concat(
|
|
950
|
-
|
|
950
|
+
l.reduce((g, h) => {
|
|
951
951
|
var m;
|
|
952
952
|
const v = this.get(h);
|
|
953
953
|
return v && (g.push(v), t && ((m = v.panels) != null && m.length) && g.push(...this.getPanelComponentNodes(v, t))), g;
|
|
@@ -976,18 +976,18 @@ class Bt {
|
|
|
976
976
|
// 克隆 componentNodes(会重置父子关系)
|
|
977
977
|
cloneComponentNodes(e, t) {
|
|
978
978
|
const a = /* @__PURE__ */ new Map(), n = e.reduce((i, o) => {
|
|
979
|
-
var
|
|
979
|
+
var s;
|
|
980
980
|
if (o) {
|
|
981
|
-
const
|
|
981
|
+
const l = this.createFromComponentNode(o, {
|
|
982
982
|
id: I()
|
|
983
983
|
});
|
|
984
|
-
delete
|
|
984
|
+
delete l.groupId, o != null && o.panels && (l.panels = o.panels.map((g) => {
|
|
985
985
|
const h = I();
|
|
986
|
-
return g.value ===
|
|
986
|
+
return g.value === l.currentPanelId && (l.currentPanelId = h), a.set(g.value, h), {
|
|
987
987
|
...g,
|
|
988
988
|
value: h
|
|
989
989
|
};
|
|
990
|
-
})), i.push(
|
|
990
|
+
})), i.push(l), (s = t == null ? void 0 : t.onClone) == null || s.call(t, o, l);
|
|
991
991
|
}
|
|
992
992
|
return i;
|
|
993
993
|
}, []);
|
|
@@ -1007,12 +1007,12 @@ const S = {
|
|
|
1007
1007
|
class Ut {
|
|
1008
1008
|
constructor() {
|
|
1009
1009
|
// pages
|
|
1010
|
-
|
|
1010
|
+
d(this, "pages", []);
|
|
1011
1011
|
// 存储pages;
|
|
1012
1012
|
// page映射componentNodes
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1013
|
+
d(this, "pageMap", {});
|
|
1014
|
+
d(this, "listeners", []);
|
|
1015
|
+
d(this, "globalComponentNodes", {});
|
|
1016
1016
|
}
|
|
1017
1017
|
// 所有全局组件(即全页面展示的组件)
|
|
1018
1018
|
// 触发pages变更
|
|
@@ -1133,8 +1133,8 @@ class Gt {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
class Jt {
|
|
1135
1135
|
constructor() {
|
|
1136
|
-
|
|
1137
|
-
|
|
1136
|
+
d(this, "favorites", []);
|
|
1137
|
+
d(this, "listeners", []);
|
|
1138
1138
|
}
|
|
1139
1139
|
// 触发listeners
|
|
1140
1140
|
notifyChange() {
|
|
@@ -1225,12 +1225,12 @@ const j = {
|
|
|
1225
1225
|
DEFAULT_OPTIONS: j,
|
|
1226
1226
|
default: Vt
|
|
1227
1227
|
}, Symbol.toStringTag, { value: "Module" })), Ce = [{ label: "点击事件", value: "onClick" }], ke = [{ label: "更新文本", value: "setText" }], qt = T((r) => {
|
|
1228
|
-
const { options: e, width: t, height: a, useExpose: n, handleTrigger: i } = r, [o,
|
|
1228
|
+
const { options: e, width: t, height: a, useExpose: n, handleTrigger: i } = r, [o, s] = x();
|
|
1229
1229
|
return n({
|
|
1230
|
-
setText(
|
|
1231
|
-
l
|
|
1230
|
+
setText(l) {
|
|
1231
|
+
s(l);
|
|
1232
1232
|
}
|
|
1233
|
-
}), /* @__PURE__ */
|
|
1233
|
+
}), /* @__PURE__ */ u(
|
|
1234
1234
|
"div",
|
|
1235
1235
|
{
|
|
1236
1236
|
style: {
|
|
@@ -1245,7 +1245,7 @@ const j = {
|
|
|
1245
1245
|
fontSize: e == null ? void 0 : e.fontSize,
|
|
1246
1246
|
lineHeight: e != null && e.lineHeight ? `${e == null ? void 0 : e.lineHeight}px` : void 0
|
|
1247
1247
|
},
|
|
1248
|
-
onClick: (
|
|
1248
|
+
onClick: (l) => i("onClick", l),
|
|
1249
1249
|
dangerouslySetInnerHTML: {
|
|
1250
1250
|
__html: o ?? ((e == null ? void 0 : e.value) || "")
|
|
1251
1251
|
}
|
|
@@ -1284,13 +1284,13 @@ const j = {
|
|
|
1284
1284
|
default: Xt
|
|
1285
1285
|
}, Symbol.toStringTag, { value: "Module" })), Te = [{ label: "点击事件", value: "onClick" }], Kt = T((r) => {
|
|
1286
1286
|
const { options: e, width: t, height: a, handleTrigger: n } = r;
|
|
1287
|
-
return /* @__PURE__ */
|
|
1287
|
+
return /* @__PURE__ */ u(
|
|
1288
1288
|
he,
|
|
1289
1289
|
{
|
|
1290
1290
|
type: e == null ? void 0 : e.type,
|
|
1291
1291
|
style: { width: t, height: a, borderRadius: e.borderRadius },
|
|
1292
1292
|
onClick: (i) => n("onClick", i),
|
|
1293
|
-
children: /* @__PURE__ */
|
|
1293
|
+
children: /* @__PURE__ */ u(
|
|
1294
1294
|
"span",
|
|
1295
1295
|
{
|
|
1296
1296
|
dangerouslySetInnerHTML: {
|
|
@@ -1320,14 +1320,14 @@ const j = {
|
|
|
1320
1320
|
DEFAULT_OPTIONS: W,
|
|
1321
1321
|
default: Qt
|
|
1322
1322
|
}, Symbol.toStringTag, { value: "Module" })), Pe = [{ label: "输入文本", value: "input" }], ze = [{ label: "修改值", value: "changeValue" }], ta = T((r) => {
|
|
1323
|
-
const { width: e, height: t, options: a, handleTrigger: n, useExpose: i } = r, [o,
|
|
1323
|
+
const { width: e, height: t, options: a, handleTrigger: n, useExpose: i } = r, [o, s] = x(a == null ? void 0 : a.value);
|
|
1324
1324
|
return It(() => {
|
|
1325
|
-
|
|
1325
|
+
s(a == null ? void 0 : a.value);
|
|
1326
1326
|
}, [a == null ? void 0 : a.value]), i({
|
|
1327
|
-
changeValue: (
|
|
1328
|
-
l
|
|
1327
|
+
changeValue: (l) => {
|
|
1328
|
+
s(l);
|
|
1329
1329
|
}
|
|
1330
|
-
}), /* @__PURE__ */
|
|
1330
|
+
}), /* @__PURE__ */ u(
|
|
1331
1331
|
ge,
|
|
1332
1332
|
{
|
|
1333
1333
|
width: e,
|
|
@@ -1336,9 +1336,9 @@ const j = {
|
|
|
1336
1336
|
maxLength: a == null ? void 0 : a.maxLength,
|
|
1337
1337
|
allowClear: a == null ? void 0 : a.allowClear,
|
|
1338
1338
|
placeholder: a == null ? void 0 : a.placeholder,
|
|
1339
|
-
onChange: (
|
|
1340
|
-
const g =
|
|
1341
|
-
n("input", g),
|
|
1339
|
+
onChange: (l) => {
|
|
1340
|
+
const g = l.target.value;
|
|
1341
|
+
n("input", g), s(g);
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
1344
|
);
|
|
@@ -1376,13 +1376,13 @@ const j = {
|
|
|
1376
1376
|
__proto__: null,
|
|
1377
1377
|
DEFAULT_OPTIONS: X,
|
|
1378
1378
|
default: ra
|
|
1379
|
-
}, Symbol.toStringTag, { value: "Module" })), Ae = [{ label: "点击事件", value: "onClick" }], Ne = [{ label: "更新文本", value: "setText" }],
|
|
1380
|
-
const { options: e, width: t, height: a, useExpose: n, handleTrigger: i } = r, [o,
|
|
1379
|
+
}, Symbol.toStringTag, { value: "Module" })), Ae = [{ label: "点击事件", value: "onClick" }], Ne = [{ label: "更新文本", value: "setText" }], sa = T((r) => {
|
|
1380
|
+
const { options: e, width: t, height: a, useExpose: n, handleTrigger: i } = r, [o, s] = x();
|
|
1381
1381
|
return n({
|
|
1382
|
-
setText(
|
|
1383
|
-
l
|
|
1382
|
+
setText(l) {
|
|
1383
|
+
s(l);
|
|
1384
1384
|
}
|
|
1385
|
-
}), /* @__PURE__ */
|
|
1385
|
+
}), /* @__PURE__ */ u(
|
|
1386
1386
|
"div",
|
|
1387
1387
|
{
|
|
1388
1388
|
style: {
|
|
@@ -1398,16 +1398,16 @@ const j = {
|
|
|
1398
1398
|
fontSize: e == null ? void 0 : e.fontSize,
|
|
1399
1399
|
letterSpacing: e == null ? void 0 : e.letterSpacing
|
|
1400
1400
|
},
|
|
1401
|
-
onClick: (
|
|
1401
|
+
onClick: (l) => i("onClick", l),
|
|
1402
1402
|
className: ia.title,
|
|
1403
1403
|
dangerouslySetInnerHTML: {
|
|
1404
1404
|
__html: o ?? ((e == null ? void 0 : e.value) || "")
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
1407
|
);
|
|
1408
|
-
}, X),
|
|
1408
|
+
}, X), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1409
1409
|
__proto__: null,
|
|
1410
|
-
default:
|
|
1410
|
+
default: sa,
|
|
1411
1411
|
titleExposes: Ne,
|
|
1412
1412
|
titleTriggers: Ae
|
|
1413
1413
|
}, Symbol.toStringTag, { value: "Module" })), ca = [
|
|
@@ -1450,7 +1450,7 @@ const j = {
|
|
|
1450
1450
|
height: 48,
|
|
1451
1451
|
triggers: Ae,
|
|
1452
1452
|
exposes: Ne,
|
|
1453
|
-
component: c.lazy(() => Promise.resolve().then(() =>
|
|
1453
|
+
component: c.lazy(() => Promise.resolve().then(() => la)),
|
|
1454
1454
|
attributesComponent: c.lazy(() => Promise.resolve().then(() => oa))
|
|
1455
1455
|
},
|
|
1456
1456
|
{
|
|
@@ -1475,8 +1475,8 @@ const j = {
|
|
|
1475
1475
|
y: 0,
|
|
1476
1476
|
width: 500,
|
|
1477
1477
|
height: 300,
|
|
1478
|
-
component: c.lazy(() => import("./index-
|
|
1479
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
1478
|
+
component: c.lazy(() => import("./index-CCiktl86.mjs")),
|
|
1479
|
+
attributesComponent: c.lazy(() => import("./attributes-DmdRtgZZ.mjs"))
|
|
1480
1480
|
},
|
|
1481
1481
|
{
|
|
1482
1482
|
cId: "image",
|
|
@@ -1487,8 +1487,8 @@ const j = {
|
|
|
1487
1487
|
y: 0,
|
|
1488
1488
|
width: 270,
|
|
1489
1489
|
height: 150,
|
|
1490
|
-
component: c.lazy(() => import("./index-
|
|
1491
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
1490
|
+
component: c.lazy(() => import("./index-RYQ9EzNC.mjs")),
|
|
1491
|
+
attributesComponent: c.lazy(() => import("./attributes-C1NWgfsy.mjs"))
|
|
1492
1492
|
},
|
|
1493
1493
|
{
|
|
1494
1494
|
cId: "dateDisplay",
|
|
@@ -1499,8 +1499,8 @@ const j = {
|
|
|
1499
1499
|
y: 0,
|
|
1500
1500
|
width: 250,
|
|
1501
1501
|
height: 26,
|
|
1502
|
-
component: c.lazy(() => import("./index-
|
|
1503
|
-
attributesComponent: c.lazy(() => import("./attributes
|
|
1502
|
+
component: c.lazy(() => import("./index-B152sOCT.mjs")),
|
|
1503
|
+
attributesComponent: c.lazy(() => import("./attributes--4TLwTJ7.mjs"))
|
|
1504
1504
|
},
|
|
1505
1505
|
{
|
|
1506
1506
|
cId: "doubleText",
|
|
@@ -1511,8 +1511,8 @@ const j = {
|
|
|
1511
1511
|
y: 0,
|
|
1512
1512
|
width: 120,
|
|
1513
1513
|
height: 64,
|
|
1514
|
-
component: c.lazy(() => import("./index-
|
|
1515
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
1514
|
+
component: c.lazy(() => import("./index-DSLm4B3h.mjs")),
|
|
1515
|
+
attributesComponent: c.lazy(() => import("./attributes-Ds-UHXjB.mjs"))
|
|
1516
1516
|
}
|
|
1517
1517
|
], da = "_carousel_1b8a0_59", ua = "_carousel_bordered_1b8a0_62", ce = {
|
|
1518
1518
|
carousel: da,
|
|
@@ -1531,8 +1531,8 @@ const j = {
|
|
|
1531
1531
|
editRadio_selected: Ia
|
|
1532
1532
|
};
|
|
1533
1533
|
function wa(r) {
|
|
1534
|
-
const { value: e } = r, [t, a] = x(!1), [n, i] = x((e == null ? void 0 : e.label) || ""), [o,
|
|
1535
|
-
function
|
|
1534
|
+
const { value: e } = r, [t, a] = x(!1), [n, i] = x((e == null ? void 0 : e.label) || ""), [o, s] = x(!1);
|
|
1535
|
+
function l() {
|
|
1536
1536
|
i((e == null ? void 0 : e.label) || ""), a(!0);
|
|
1537
1537
|
}
|
|
1538
1538
|
function g() {
|
|
@@ -1547,17 +1547,17 @@ function wa(r) {
|
|
|
1547
1547
|
});
|
|
1548
1548
|
}
|
|
1549
1549
|
return /* @__PURE__ */ C("div", { className: b.editItem, children: [
|
|
1550
|
-
/* @__PURE__ */
|
|
1550
|
+
/* @__PURE__ */ u(
|
|
1551
1551
|
"div",
|
|
1552
1552
|
{
|
|
1553
1553
|
className: b.editItem_left,
|
|
1554
|
-
onMouseEnter: () =>
|
|
1555
|
-
onMouseLeave: () =>
|
|
1554
|
+
onMouseEnter: () => s(!0),
|
|
1555
|
+
onMouseLeave: () => s(!1),
|
|
1556
1556
|
onClick: () => {
|
|
1557
1557
|
var h;
|
|
1558
1558
|
return (h = r == null ? void 0 : r.onSelect) == null ? void 0 : h.call(r);
|
|
1559
1559
|
},
|
|
1560
|
-
children: /* @__PURE__ */
|
|
1560
|
+
children: /* @__PURE__ */ u(
|
|
1561
1561
|
"div",
|
|
1562
1562
|
{
|
|
1563
1563
|
className: k(
|
|
@@ -1569,7 +1569,7 @@ function wa(r) {
|
|
|
1569
1569
|
)
|
|
1570
1570
|
}
|
|
1571
1571
|
),
|
|
1572
|
-
/* @__PURE__ */
|
|
1572
|
+
/* @__PURE__ */ u("div", { className: b.editItem_body, children: t ? /* @__PURE__ */ u(
|
|
1573
1573
|
ge,
|
|
1574
1574
|
{
|
|
1575
1575
|
value: n,
|
|
@@ -1580,7 +1580,7 @@ function wa(r) {
|
|
|
1580
1580
|
i(h.target.value);
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
|
-
) : /* @__PURE__ */
|
|
1583
|
+
) : /* @__PURE__ */ u(
|
|
1584
1584
|
"div",
|
|
1585
1585
|
{
|
|
1586
1586
|
title: (e == null ? void 0 : e.label) || "",
|
|
@@ -1592,14 +1592,14 @@ function wa(r) {
|
|
|
1592
1592
|
var h;
|
|
1593
1593
|
return (h = r == null ? void 0 : r.onSelect) == null ? void 0 : h.call(r);
|
|
1594
1594
|
},
|
|
1595
|
-
onMouseEnter: () =>
|
|
1596
|
-
onMouseLeave: () =>
|
|
1595
|
+
onMouseEnter: () => s(!0),
|
|
1596
|
+
onMouseLeave: () => s(!1),
|
|
1597
1597
|
children: e == null ? void 0 : e.label
|
|
1598
1598
|
}
|
|
1599
1599
|
) }),
|
|
1600
|
-
/* @__PURE__ */
|
|
1601
|
-
t ? /* @__PURE__ */
|
|
1602
|
-
/* @__PURE__ */
|
|
1600
|
+
/* @__PURE__ */ u("div", { className: b.editItem_right, children: /* @__PURE__ */ C(fe, { children: [
|
|
1601
|
+
t ? /* @__PURE__ */ u(D, { title: "保存", children: /* @__PURE__ */ u(ft, { className: b.editList_opt, onClick: g }) }) : /* @__PURE__ */ u(D, { title: "编辑", children: /* @__PURE__ */ u(mt, { className: b.editList_opt, onClick: l }) }),
|
|
1602
|
+
/* @__PURE__ */ u(D, { title: "删除", children: /* @__PURE__ */ u(yt, { className: b.editList_opt, onClick: () => {
|
|
1603
1603
|
var h;
|
|
1604
1604
|
return (h = r == null ? void 0 : r.onDelete) == null ? void 0 : h.call(r);
|
|
1605
1605
|
} }) })
|
|
@@ -1614,13 +1614,13 @@ function Sa(r) {
|
|
|
1614
1614
|
(n = r == null ? void 0 : r.onCancel) == null || n.call(r);
|
|
1615
1615
|
}, 300);
|
|
1616
1616
|
}
|
|
1617
|
-
return /* @__PURE__ */
|
|
1617
|
+
return /* @__PURE__ */ u(
|
|
1618
1618
|
ut,
|
|
1619
1619
|
{
|
|
1620
1620
|
centered: !0,
|
|
1621
1621
|
open: e,
|
|
1622
1622
|
title: /* @__PURE__ */ C(fe, { children: [
|
|
1623
|
-
/* @__PURE__ */
|
|
1623
|
+
/* @__PURE__ */ u(pt, { style: { color: "#f66e0b" } }),
|
|
1624
1624
|
r == null ? void 0 : r.title
|
|
1625
1625
|
] }),
|
|
1626
1626
|
onCancel: a,
|
|
@@ -1643,7 +1643,7 @@ function Ca(r) {
|
|
|
1643
1643
|
} = r;
|
|
1644
1644
|
let i = document.createElement("div"), o = ue(i);
|
|
1645
1645
|
document.body.append(i), o.render(
|
|
1646
|
-
/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ u(
|
|
1647
1647
|
Sa,
|
|
1648
1648
|
{
|
|
1649
1649
|
title: e,
|
|
@@ -1652,16 +1652,16 @@ function Ca(r) {
|
|
|
1652
1652
|
cancelText: n,
|
|
1653
1653
|
onOk: r == null ? void 0 : r.onOk,
|
|
1654
1654
|
onCancel: () => {
|
|
1655
|
-
var
|
|
1656
|
-
|
|
1655
|
+
var l;
|
|
1656
|
+
s(), (l = r == null ? void 0 : r.onCancel) == null || l.call(r);
|
|
1657
1657
|
}
|
|
1658
1658
|
}
|
|
1659
1659
|
)
|
|
1660
1660
|
);
|
|
1661
|
-
function
|
|
1661
|
+
function s() {
|
|
1662
1662
|
i && (o.unmount(), i.remove(), i = null);
|
|
1663
1663
|
}
|
|
1664
|
-
return
|
|
1664
|
+
return s;
|
|
1665
1665
|
}
|
|
1666
1666
|
function ka() {
|
|
1667
1667
|
const r = R();
|
|
@@ -1673,12 +1673,12 @@ function ka() {
|
|
|
1673
1673
|
const t = Ca({
|
|
1674
1674
|
...e,
|
|
1675
1675
|
onOk(n) {
|
|
1676
|
-
var i, o,
|
|
1677
|
-
(i = e == null ? void 0 : e.onOk) == null || i.call(e, n), r.current = (
|
|
1676
|
+
var i, o, s;
|
|
1677
|
+
(i = e == null ? void 0 : e.onOk) == null || i.call(e, n), r.current = (s = (o = r.current) == null ? void 0 : o.filter) == null ? void 0 : s.call(o, (l) => l !== t);
|
|
1678
1678
|
},
|
|
1679
1679
|
onCancel() {
|
|
1680
1680
|
var n, i, o;
|
|
1681
|
-
(n = e == null ? void 0 : e.onCancel) == null || n.call(e), r.current = (o = (i = r.current) == null ? void 0 : i.filter) == null ? void 0 : o.call(i, (
|
|
1681
|
+
(n = e == null ? void 0 : e.onCancel) == null || n.call(e), r.current = (o = (i = r.current) == null ? void 0 : i.filter) == null ? void 0 : o.call(i, (s) => s !== t);
|
|
1682
1682
|
}
|
|
1683
1683
|
});
|
|
1684
1684
|
(a = r.current || (r.current = [])) == null || a.push(t);
|
|
@@ -1694,12 +1694,12 @@ function Ee() {
|
|
|
1694
1694
|
function Ta(r) {
|
|
1695
1695
|
var v;
|
|
1696
1696
|
const { engine: e } = Ee(), { value: t, onSelect: a, list: n = [], onChange: i } = r, o = ka();
|
|
1697
|
-
function
|
|
1697
|
+
function s(m) {
|
|
1698
1698
|
var p, f;
|
|
1699
1699
|
const y = ((p = n == null ? void 0 : n.filter) == null ? void 0 : p.call(n, (_) => _.value !== m)) || [];
|
|
1700
1700
|
t === m && (a == null || a((f = y == null ? void 0 : y[0]) == null ? void 0 : f.value)), i == null || i(y);
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function l(m) {
|
|
1703
1703
|
if (n.length <= 1) {
|
|
1704
1704
|
me.warn("至少保留一个面板");
|
|
1705
1705
|
return;
|
|
@@ -1709,9 +1709,9 @@ function Ta(r) {
|
|
|
1709
1709
|
title: "提醒",
|
|
1710
1710
|
content: `该面板下包含${y == null ? void 0 : y.length}个组件,确定删除?`,
|
|
1711
1711
|
onOk(p) {
|
|
1712
|
-
|
|
1712
|
+
s(m), e.componentNode.delete(y), p();
|
|
1713
1713
|
}
|
|
1714
|
-
}) :
|
|
1714
|
+
}) : s(m);
|
|
1715
1715
|
}
|
|
1716
1716
|
function g() {
|
|
1717
1717
|
const m = [
|
|
@@ -1727,7 +1727,7 @@ function Ta(r) {
|
|
|
1727
1727
|
Object.assign(m, y), i == null || i([...n]);
|
|
1728
1728
|
}
|
|
1729
1729
|
return /* @__PURE__ */ C("div", { className: k(ga.editList, r == null ? void 0 : r.className), style: r == null ? void 0 : r.style, children: [
|
|
1730
|
-
(v = n == null ? void 0 : n.map) == null ? void 0 : v.call(n, (m) => /* @__PURE__ */
|
|
1730
|
+
(v = n == null ? void 0 : n.map) == null ? void 0 : v.call(n, (m) => /* @__PURE__ */ u(
|
|
1731
1731
|
wa,
|
|
1732
1732
|
{
|
|
1733
1733
|
value: m,
|
|
@@ -1736,7 +1736,7 @@ function Ta(r) {
|
|
|
1736
1736
|
a == null || a(m.value);
|
|
1737
1737
|
},
|
|
1738
1738
|
onDelete: () => {
|
|
1739
|
-
|
|
1739
|
+
l(m.value);
|
|
1740
1740
|
},
|
|
1741
1741
|
onUpdate: (y) => {
|
|
1742
1742
|
h(m, y);
|
|
@@ -1744,13 +1744,13 @@ function Ta(r) {
|
|
|
1744
1744
|
},
|
|
1745
1745
|
m == null ? void 0 : m.value
|
|
1746
1746
|
)),
|
|
1747
|
-
/* @__PURE__ */
|
|
1747
|
+
/* @__PURE__ */ u(
|
|
1748
1748
|
he,
|
|
1749
1749
|
{
|
|
1750
1750
|
size: "small",
|
|
1751
1751
|
type: "dashed",
|
|
1752
1752
|
block: !0,
|
|
1753
|
-
icon: /* @__PURE__ */
|
|
1753
|
+
icon: /* @__PURE__ */ u(vt, {}),
|
|
1754
1754
|
style: { marginTop: 4 },
|
|
1755
1755
|
onClick: () => g(),
|
|
1756
1756
|
children: "新增"
|
|
@@ -1771,7 +1771,7 @@ const Z = {
|
|
|
1771
1771
|
label: "面板",
|
|
1772
1772
|
component: ({ useExtra: r }) => {
|
|
1773
1773
|
const { componentNode: e, onChangeComponentNode: t } = r();
|
|
1774
|
-
return /* @__PURE__ */
|
|
1774
|
+
return /* @__PURE__ */ u(
|
|
1775
1775
|
Ta,
|
|
1776
1776
|
{
|
|
1777
1777
|
value: e.currentPanelId,
|
|
@@ -1804,7 +1804,7 @@ const Z = {
|
|
|
1804
1804
|
function Ma(r) {
|
|
1805
1805
|
const { count: e = 1, value: t = 0 } = r, a = G(() => Array(e).fill(null).map((n, i) => {
|
|
1806
1806
|
const o = t === i;
|
|
1807
|
-
return /* @__PURE__ */
|
|
1807
|
+
return /* @__PURE__ */ u(
|
|
1808
1808
|
"div",
|
|
1809
1809
|
{
|
|
1810
1810
|
className: k(
|
|
@@ -1812,26 +1812,26 @@ function Ma(r) {
|
|
|
1812
1812
|
o && H.toggleBar_rect_selected
|
|
1813
1813
|
),
|
|
1814
1814
|
onClick: () => {
|
|
1815
|
-
var
|
|
1816
|
-
(
|
|
1815
|
+
var s;
|
|
1816
|
+
(s = r == null ? void 0 : r.onChange) == null || s.call(r, i);
|
|
1817
1817
|
}
|
|
1818
1818
|
},
|
|
1819
1819
|
`${i}-${e}`
|
|
1820
1820
|
);
|
|
1821
1821
|
}), [e, t]);
|
|
1822
|
-
return /* @__PURE__ */
|
|
1822
|
+
return /* @__PURE__ */ u("div", { className: H.toggleBar, children: a });
|
|
1823
1823
|
}
|
|
1824
1824
|
const Me = [
|
|
1825
1825
|
{ label: "面板切换", value: "onChange" },
|
|
1826
1826
|
{ label: "面板点击", value: "onClick" }
|
|
1827
1827
|
], Le = [{ label: "切换面板", value: "changePanel" }], La = T((r) => {
|
|
1828
1828
|
var m;
|
|
1829
|
-
const { engine: e } = Ee(), { options: t, width: a, height: n, componentNode: i, handleTrigger: o, useExpose:
|
|
1829
|
+
const { engine: e } = Ee(), { options: t, width: a, height: n, componentNode: i, handleTrigger: o, useExpose: s } = r, l = R(), [g, h] = x(0);
|
|
1830
1830
|
function v(y) {
|
|
1831
1831
|
var f, _;
|
|
1832
1832
|
const p = (_ = (f = i.panels) == null ? void 0 : f[y]) == null ? void 0 : _.value;
|
|
1833
|
-
|
|
1834
|
-
e.componentNode.hidePanel(
|
|
1833
|
+
l.current !== void 0 && p === l.current || (o("onChange", y), h(y), p && setTimeout(() => {
|
|
1834
|
+
e.componentNode.hidePanel(l.current), l.current = p, e.componentNode.showPanel(p);
|
|
1835
1835
|
}));
|
|
1836
1836
|
}
|
|
1837
1837
|
return J(() => {
|
|
@@ -1839,18 +1839,18 @@ const Me = [
|
|
|
1839
1839
|
const y = (f = (p = i.panels) == null ? void 0 : p.findIndex) == null ? void 0 : f.call(p, (_) => (_ == null ? void 0 : _.value) === (i == null ? void 0 : i.currentPanelId));
|
|
1840
1840
|
y !== void 0 && v(y);
|
|
1841
1841
|
}, [i.currentPanelId, i.panels]), wt(() => {
|
|
1842
|
-
e.componentNode.hidePanel(
|
|
1843
|
-
}),
|
|
1842
|
+
e.componentNode.hidePanel(l.current);
|
|
1843
|
+
}), s({
|
|
1844
1844
|
changePanel(y) {
|
|
1845
1845
|
v(y);
|
|
1846
1846
|
}
|
|
1847
|
-
}), /* @__PURE__ */
|
|
1847
|
+
}), /* @__PURE__ */ u(
|
|
1848
1848
|
"div",
|
|
1849
1849
|
{
|
|
1850
1850
|
style: { width: a, height: n, borderColor: t == null ? void 0 : t.borderColor },
|
|
1851
1851
|
className: k(ce.carousel, (t == null ? void 0 : t.bordered) && ce.carousel_bordered),
|
|
1852
1852
|
onClick: () => o("onClick"),
|
|
1853
|
-
children: /* @__PURE__ */
|
|
1853
|
+
children: /* @__PURE__ */ u(
|
|
1854
1854
|
Ma,
|
|
1855
1855
|
{
|
|
1856
1856
|
value: g,
|
|
@@ -1898,8 +1898,8 @@ const Me = [
|
|
|
1898
1898
|
y: 0,
|
|
1899
1899
|
width: 400,
|
|
1900
1900
|
height: 300,
|
|
1901
|
-
component: c.lazy(() => import("./index-
|
|
1902
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
1901
|
+
component: c.lazy(() => import("./index-BxnULZLw.mjs")),
|
|
1902
|
+
attributesComponent: c.lazy(() => import("./attributes-Dsp5j2A0.mjs")),
|
|
1903
1903
|
icon: () => import("./specialCard-jikYSVVg.mjs"),
|
|
1904
1904
|
panels: [{ label: "特殊卡片", value: "" }]
|
|
1905
1905
|
}
|
|
@@ -1913,7 +1913,7 @@ const Me = [
|
|
|
1913
1913
|
y: 0,
|
|
1914
1914
|
width: 250,
|
|
1915
1915
|
height: 250,
|
|
1916
|
-
component: c.lazy(() => import("./index-
|
|
1916
|
+
component: c.lazy(() => import("./index-hk0ols1y.mjs"))
|
|
1917
1917
|
},
|
|
1918
1918
|
{
|
|
1919
1919
|
cId: "line",
|
|
@@ -1924,8 +1924,8 @@ const Me = [
|
|
|
1924
1924
|
y: 0,
|
|
1925
1925
|
width: 250,
|
|
1926
1926
|
height: 250,
|
|
1927
|
-
component: c.lazy(() => import("./index-
|
|
1928
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
1927
|
+
component: c.lazy(() => import("./index-Cp4rqgjF.mjs")),
|
|
1928
|
+
attributesComponent: c.lazy(() => import("./attributes-Bzd30ZIf.mjs")),
|
|
1929
1929
|
dataSourceType: "static",
|
|
1930
1930
|
staticDataSource: [
|
|
1931
1931
|
{ name: "选项一", value1: 100, value2: 200, value3: 300 },
|
|
@@ -1942,7 +1942,7 @@ const Me = [
|
|
|
1942
1942
|
y: 0,
|
|
1943
1943
|
width: 250,
|
|
1944
1944
|
height: 250,
|
|
1945
|
-
component: c.lazy(() => import("./index-
|
|
1945
|
+
component: c.lazy(() => import("./index-Dd7rZVc_.mjs"))
|
|
1946
1946
|
},
|
|
1947
1947
|
{
|
|
1948
1948
|
cId: "radar",
|
|
@@ -1954,7 +1954,7 @@ const Me = [
|
|
|
1954
1954
|
width: 350,
|
|
1955
1955
|
height: 300,
|
|
1956
1956
|
options: {},
|
|
1957
|
-
component: c.lazy(() => import("./index-
|
|
1957
|
+
component: c.lazy(() => import("./index-DjkNh2yG.mjs"))
|
|
1958
1958
|
},
|
|
1959
1959
|
{
|
|
1960
1960
|
cId: "gauge",
|
|
@@ -1966,7 +1966,7 @@ const Me = [
|
|
|
1966
1966
|
width: 350,
|
|
1967
1967
|
height: 300,
|
|
1968
1968
|
options: {},
|
|
1969
|
-
component: c.lazy(() => import("./index-
|
|
1969
|
+
component: c.lazy(() => import("./index-DB6gZpoX.mjs"))
|
|
1970
1970
|
},
|
|
1971
1971
|
{
|
|
1972
1972
|
cId: "horizontalBar",
|
|
@@ -1978,7 +1978,7 @@ const Me = [
|
|
|
1978
1978
|
width: 350,
|
|
1979
1979
|
height: 300,
|
|
1980
1980
|
options: {},
|
|
1981
|
-
component: c.lazy(() => import("./index-
|
|
1981
|
+
component: c.lazy(() => import("./index-C18T8lZz.mjs"))
|
|
1982
1982
|
},
|
|
1983
1983
|
{
|
|
1984
1984
|
cId: "barLine",
|
|
@@ -1990,7 +1990,7 @@ const Me = [
|
|
|
1990
1990
|
width: 350,
|
|
1991
1991
|
height: 300,
|
|
1992
1992
|
options: {},
|
|
1993
|
-
component: c.lazy(() => import("./index-
|
|
1993
|
+
component: c.lazy(() => import("./index-BvuyAzoz.mjs"))
|
|
1994
1994
|
},
|
|
1995
1995
|
{
|
|
1996
1996
|
cId: "ring",
|
|
@@ -2002,8 +2002,8 @@ const Me = [
|
|
|
2002
2002
|
width: 350,
|
|
2003
2003
|
height: 300,
|
|
2004
2004
|
options: {},
|
|
2005
|
-
component: c.lazy(() => import("./index-
|
|
2006
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
2005
|
+
component: c.lazy(() => import("./index-CWVkCbis.mjs")),
|
|
2006
|
+
attributesComponent: c.lazy(() => import("./attributes-DLLyxz0N.mjs"))
|
|
2007
2007
|
}
|
|
2008
2008
|
], Fa = [
|
|
2009
2009
|
{
|
|
@@ -2017,7 +2017,7 @@ const Me = [
|
|
|
2017
2017
|
width: 300,
|
|
2018
2018
|
height: 32,
|
|
2019
2019
|
isAllPage: !0,
|
|
2020
|
-
component: c.lazy(() => import("./index-
|
|
2020
|
+
component: c.lazy(() => import("./index-BxFObudF.mjs"))
|
|
2021
2021
|
}
|
|
2022
2022
|
];
|
|
2023
2023
|
async function Ha(r, e = 300) {
|
|
@@ -2046,8 +2046,8 @@ const de = {
|
|
|
2046
2046
|
{ name: "魔某人", age: "12", sex: "女", address: "浙江省杭州市" }
|
|
2047
2047
|
];
|
|
2048
2048
|
function Ba(r, e) {
|
|
2049
|
-
var o,
|
|
2050
|
-
const t = (
|
|
2049
|
+
var o, s, l, g, h, v, m, y;
|
|
2050
|
+
const t = (s = (o = e == null ? void 0 : e.name) == null ? void 0 : o.toLowerCase) == null ? void 0 : s.call(o), a = (g = (l = e == null ? void 0 : e.age) == null ? void 0 : l.toLowerCase) == null ? void 0 : g.call(l), n = (v = (h = e == null ? void 0 : e.sex) == null ? void 0 : h.toLowerCase) == null ? void 0 : v.call(h), i = (y = (m = e == null ? void 0 : e.address) == null ? void 0 : m.toLowerCase) == null ? void 0 : y.call(m);
|
|
2051
2051
|
return r.filter((p) => {
|
|
2052
2052
|
var N, K, Y, E, Q, ee, M, te, ae, L, ne, ie;
|
|
2053
2053
|
let f = "", _ = !0;
|
|
@@ -2060,15 +2060,15 @@ function Ua(r) {
|
|
|
2060
2060
|
}
|
|
2061
2061
|
const wn = ot(
|
|
2062
2062
|
(r, e) => {
|
|
2063
|
-
const t = r == null ? void 0 : r.component, [a, n] = x(), [i, o] = x(!1), [
|
|
2064
|
-
return
|
|
2063
|
+
const t = r == null ? void 0 : r.component, [a, n] = x(), [i, o] = x(!1), [s, l] = x(!0);
|
|
2064
|
+
return st(e, () => ({
|
|
2065
2065
|
open(g) {
|
|
2066
|
-
n(g), o(!0),
|
|
2066
|
+
n(g), o(!0), l(!1);
|
|
2067
2067
|
},
|
|
2068
2068
|
close(g = !0) {
|
|
2069
|
-
o(!1),
|
|
2069
|
+
o(!1), l(g);
|
|
2070
2070
|
}
|
|
2071
|
-
})), !t ||
|
|
2071
|
+
})), !t || s ? /* @__PURE__ */ u(et, {}) : /* @__PURE__ */ u(
|
|
2072
2072
|
t,
|
|
2073
2073
|
{
|
|
2074
2074
|
params: a,
|
|
@@ -2082,7 +2082,7 @@ const wn = ot(
|
|
|
2082
2082
|
o(!1), (h = r == null ? void 0 : r.onOk) == null || h.call(r, ...g);
|
|
2083
2083
|
},
|
|
2084
2084
|
afterClose: () => {
|
|
2085
|
-
|
|
2085
|
+
l(!0);
|
|
2086
2086
|
}
|
|
2087
2087
|
}
|
|
2088
2088
|
);
|
|
@@ -2094,8 +2094,8 @@ const wn = ot(
|
|
|
2094
2094
|
{ label: "清空筛选项", value: "clearFilter" }
|
|
2095
2095
|
], Ga = T((r) => {
|
|
2096
2096
|
const { width: e, height: t, useExpose: a } = r, [n, i, o] = Ua(de), {
|
|
2097
|
-
data:
|
|
2098
|
-
loading:
|
|
2097
|
+
data: s = [],
|
|
2098
|
+
loading: l,
|
|
2099
2099
|
refresh: g
|
|
2100
2100
|
} = St(
|
|
2101
2101
|
async () => {
|
|
@@ -2127,13 +2127,13 @@ const wn = ot(
|
|
|
2127
2127
|
clearFilter: () => {
|
|
2128
2128
|
i({ ...de });
|
|
2129
2129
|
}
|
|
2130
|
-
}), /* @__PURE__ */
|
|
2130
|
+
}), /* @__PURE__ */ u(
|
|
2131
2131
|
ht,
|
|
2132
2132
|
{
|
|
2133
2133
|
style: { width: e, height: t, overflow: "hidden auto" },
|
|
2134
2134
|
columns: h,
|
|
2135
|
-
loading:
|
|
2136
|
-
dataSource:
|
|
2135
|
+
loading: l,
|
|
2136
|
+
dataSource: s,
|
|
2137
2137
|
pagination: !1
|
|
2138
2138
|
}
|
|
2139
2139
|
);
|
|
@@ -2165,8 +2165,8 @@ const wn = ot(
|
|
|
2165
2165
|
y: 0,
|
|
2166
2166
|
width: 500,
|
|
2167
2167
|
height: 500,
|
|
2168
|
-
component: c.lazy(() => import("./index-
|
|
2169
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
2168
|
+
component: c.lazy(() => import("./index-3xI6pYK_.mjs")),
|
|
2169
|
+
attributesComponent: c.lazy(() => import("./attributes-C-FswaWY.mjs"))
|
|
2170
2170
|
},
|
|
2171
2171
|
{
|
|
2172
2172
|
cId: "scrollList",
|
|
@@ -2187,8 +2187,8 @@ const wn = ot(
|
|
|
2187
2187
|
{ key: "5", title: "培训项目二", status: "2" },
|
|
2188
2188
|
{ key: "6", title: "tjh项目", status: "1" }
|
|
2189
2189
|
],
|
|
2190
|
-
component: c.lazy(() => import("./index-
|
|
2191
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
2190
|
+
component: c.lazy(() => import("./index-gJTpfQvV.mjs")),
|
|
2191
|
+
attributesComponent: c.lazy(() => import("./attributes-BWVuAA3i.mjs"))
|
|
2192
2192
|
},
|
|
2193
2193
|
{
|
|
2194
2194
|
cId: "defaultImage",
|
|
@@ -2200,8 +2200,8 @@ const wn = ot(
|
|
|
2200
2200
|
y: 0,
|
|
2201
2201
|
width: 150,
|
|
2202
2202
|
height: 150,
|
|
2203
|
-
component: c.lazy(() => import("./index-
|
|
2204
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
2203
|
+
component: c.lazy(() => import("./index-fj1Y8y5V.mjs")),
|
|
2204
|
+
attributesComponent: c.lazy(() => import("./attributes-BQVvyBiv.mjs"))
|
|
2205
2205
|
},
|
|
2206
2206
|
{
|
|
2207
2207
|
cId: "ProgressList",
|
|
@@ -2222,8 +2222,8 @@ const wn = ot(
|
|
|
2222
2222
|
{ key: "5", title: "培训项目二", count: 200 },
|
|
2223
2223
|
{ key: "6", title: "tjh项目", count: 0 }
|
|
2224
2224
|
],
|
|
2225
|
-
component: c.lazy(() => import("./index-
|
|
2226
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
2225
|
+
component: c.lazy(() => import("./index-B5kA4V3C.mjs")),
|
|
2226
|
+
attributesComponent: c.lazy(() => import("./attributes-CRjnUsRx.mjs"))
|
|
2227
2227
|
},
|
|
2228
2228
|
{
|
|
2229
2229
|
cId: "specialTitle",
|
|
@@ -2235,14 +2235,14 @@ const wn = ot(
|
|
|
2235
2235
|
y: 0,
|
|
2236
2236
|
width: 500,
|
|
2237
2237
|
height: 32,
|
|
2238
|
-
component: c.lazy(() => import("./index-
|
|
2239
|
-
attributesComponent: c.lazy(() => import("./attributes-
|
|
2238
|
+
component: c.lazy(() => import("./index-z6ax5THp.mjs")),
|
|
2239
|
+
attributesComponent: c.lazy(() => import("./attributes-BqRyp1ob.mjs"))
|
|
2240
2240
|
}
|
|
2241
2241
|
], ja = {
|
|
2242
2242
|
id: "system",
|
|
2243
2243
|
name: "默认组件包",
|
|
2244
2244
|
origin: "system",
|
|
2245
|
-
version: "0.0.
|
|
2245
|
+
version: "0.0.12",
|
|
2246
2246
|
description: "由官方发布的组件库,随编辑器主版本迭代而更新。",
|
|
2247
2247
|
components: [
|
|
2248
2248
|
...ca,
|
|
@@ -2259,7 +2259,7 @@ const wn = ot(
|
|
|
2259
2259
|
};
|
|
2260
2260
|
class qa {
|
|
2261
2261
|
constructor() {
|
|
2262
|
-
|
|
2262
|
+
d(this, "map", /* @__PURE__ */ new Map());
|
|
2263
2263
|
}
|
|
2264
2264
|
// 监听事件
|
|
2265
2265
|
on(e, t, a) {
|
|
@@ -2489,15 +2489,15 @@ ye.use(bt).use(_t).init({
|
|
|
2489
2489
|
});
|
|
2490
2490
|
class Ka {
|
|
2491
2491
|
constructor() {
|
|
2492
|
-
|
|
2492
|
+
d(this, "initData");
|
|
2493
2493
|
// 初始化data(不在list中)
|
|
2494
|
-
|
|
2494
|
+
d(this, "maxSize", 20);
|
|
2495
2495
|
// 最大容量
|
|
2496
|
-
|
|
2496
|
+
d(this, "list", []);
|
|
2497
2497
|
// 历史记录列表(存储顺序:[new, ..., old])
|
|
2498
|
-
|
|
2498
|
+
d(this, "currentIndex", -1);
|
|
2499
2499
|
// 当前历史索引
|
|
2500
|
-
|
|
2500
|
+
d(this, "listeners", []);
|
|
2501
2501
|
}
|
|
2502
2502
|
// 监听器
|
|
2503
2503
|
// 获取历史数据
|
|
@@ -2613,28 +2613,28 @@ const $ = {
|
|
|
2613
2613
|
class Qa {
|
|
2614
2614
|
constructor(e) {
|
|
2615
2615
|
// 载入的json对象
|
|
2616
|
-
|
|
2616
|
+
d(this, "json");
|
|
2617
2617
|
// json值监听
|
|
2618
|
-
|
|
2618
|
+
d(this, "listeners", []);
|
|
2619
2619
|
// setTimeout的id
|
|
2620
|
-
|
|
2620
|
+
d(this, "timerId");
|
|
2621
2621
|
// 组件模板
|
|
2622
|
-
|
|
2622
|
+
d(this, "component", new Mt());
|
|
2623
2623
|
// 组件数据实例
|
|
2624
|
-
|
|
2624
|
+
d(this, "componentNode", new Bt());
|
|
2625
2625
|
// 组件行为实例
|
|
2626
|
-
|
|
2626
|
+
d(this, "instance", new Lt());
|
|
2627
2627
|
// 全局配置
|
|
2628
|
-
|
|
2628
|
+
d(this, "config", new Gt());
|
|
2629
2629
|
// 事件
|
|
2630
|
-
|
|
2630
|
+
d(this, "events", new qa());
|
|
2631
2631
|
// 收藏夹
|
|
2632
|
-
|
|
2632
|
+
d(this, "favorites", new Jt());
|
|
2633
2633
|
// 子页面管理
|
|
2634
|
-
|
|
2634
|
+
d(this, "page", new Ut());
|
|
2635
2635
|
// 历史记录管理
|
|
2636
|
-
|
|
2637
|
-
|
|
2636
|
+
d(this, "history", new Ka());
|
|
2637
|
+
d(this, "_options", {});
|
|
2638
2638
|
var t;
|
|
2639
2639
|
this._options = this.formatOptions(e), (t = this._options) != null && t.defaultComponents && this.registerDefaultPackage();
|
|
2640
2640
|
}
|
|
@@ -2659,8 +2659,8 @@ class Qa {
|
|
|
2659
2659
|
), e != null && e.selectedIds && (this.timerId && clearTimeout(this.timerId), this.timerId = setTimeout(() => {
|
|
2660
2660
|
this.timerId = void 0, this.instance.select(e.selectedIds, !0);
|
|
2661
2661
|
}, 100)), this.notifyJsonChange(), t();
|
|
2662
|
-
} catch (
|
|
2663
|
-
a(
|
|
2662
|
+
} catch (s) {
|
|
2663
|
+
a(s);
|
|
2664
2664
|
}
|
|
2665
2665
|
});
|
|
2666
2666
|
}
|
|
@@ -4253,22 +4253,30 @@ function main(value, {origin, target, option}) {
|
|
|
4253
4253
|
}, Symbol.toStringTag, { value: "Module" })), Pn = {
|
|
4254
4254
|
classic: Ge,
|
|
4255
4255
|
multiple_components_interactive: Ke
|
|
4256
|
-
}, O = "_$_rbs_current_engine_$_", en = c.lazy(() => import("./index-
|
|
4256
|
+
}, O = "_$_rbs_current_engine_$_", en = c.lazy(() => import("./index-BaXFBriK.mjs")), tn = c.lazy(() => import("./index-BkiBaEzs.mjs"));
|
|
4257
4257
|
class zn {
|
|
4258
4258
|
constructor(e) {
|
|
4259
4259
|
/** react createApp */
|
|
4260
|
-
|
|
4260
|
+
d(this, "app", null);
|
|
4261
4261
|
/** 挂载元素 */
|
|
4262
|
-
|
|
4262
|
+
d(this, "el", null);
|
|
4263
4263
|
/** 实际渲染引擎 */
|
|
4264
|
-
|
|
4264
|
+
d(this, "engine");
|
|
4265
4265
|
/** 操作模式(编辑/预览) */
|
|
4266
|
-
|
|
4266
|
+
d(this, "mode", "edit");
|
|
4267
4267
|
/** 事件钩子 */
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4268
|
+
d(this, "hooks", null);
|
|
4269
|
+
/** 保存当前操作的json */
|
|
4270
|
+
d(this, "lastJson");
|
|
4271
|
+
/** options */
|
|
4272
|
+
d(this, "options");
|
|
4273
|
+
const { activeGlobal: t = !0, onStartPreview: a, dom: n, pageFooter: i, ...o } = e || {};
|
|
4274
|
+
this.options = {
|
|
4275
|
+
activeGlobal: t,
|
|
4276
|
+
onStartPreview: a,
|
|
4277
|
+
dom: n,
|
|
4278
|
+
pageFooter: i
|
|
4279
|
+
}, this.engine = new Qa(o), n && this.mount(n), t && this.activeGlobal(), a && this.on("startPreview", a);
|
|
4272
4280
|
}
|
|
4273
4281
|
/**
|
|
4274
4282
|
* 挂载dom(会触发编辑器渲染)
|
|
@@ -4305,8 +4313,8 @@ class zn {
|
|
|
4305
4313
|
*/
|
|
4306
4314
|
emit(e, t) {
|
|
4307
4315
|
var a, n, i, o;
|
|
4308
|
-
(o = (i = (n = (a = this.hooks) == null ? void 0 : a.get) == null ? void 0 : n.call(a, e)) == null ? void 0 : i.forEach) == null || o.call(i, (
|
|
4309
|
-
|
|
4316
|
+
(o = (i = (n = (a = this.hooks) == null ? void 0 : a.get) == null ? void 0 : n.call(a, e)) == null ? void 0 : i.forEach) == null || o.call(i, (s) => {
|
|
4317
|
+
s == null || s(t);
|
|
4310
4318
|
});
|
|
4311
4319
|
}
|
|
4312
4320
|
/**
|
|
@@ -4346,16 +4354,25 @@ class zn {
|
|
|
4346
4354
|
*/
|
|
4347
4355
|
async importJSON(e) {
|
|
4348
4356
|
return new Promise((t, a) => {
|
|
4357
|
+
var n;
|
|
4349
4358
|
try {
|
|
4350
4359
|
if (!this.el)
|
|
4351
4360
|
throw new Error("el not found.");
|
|
4352
4361
|
this.app ? this.engine.loadJSON(e).then(() => t()) : (this.app = ue(this.el), this.mode === "edit" ? this.app.render(
|
|
4353
|
-
/* @__PURE__ */
|
|
4362
|
+
/* @__PURE__ */ u(U.Provider, { value: { engine: this.engine, rbsEngine: this }, children: /* @__PURE__ */ u(
|
|
4363
|
+
en,
|
|
4364
|
+
{
|
|
4365
|
+
json: e,
|
|
4366
|
+
engine: this.engine,
|
|
4367
|
+
onJSONLoad: t,
|
|
4368
|
+
footer: (n = this.options) == null ? void 0 : n.pageFooter
|
|
4369
|
+
}
|
|
4370
|
+
) })
|
|
4354
4371
|
) : this.mode === "preview" && this.app.render(
|
|
4355
|
-
/* @__PURE__ */
|
|
4372
|
+
/* @__PURE__ */ u(U.Provider, { value: { engine: this.engine, rbsEngine: this }, children: /* @__PURE__ */ u(tn, { json: e, engine: this.engine, onJSONLoad: t }) })
|
|
4356
4373
|
));
|
|
4357
|
-
} catch (
|
|
4358
|
-
a(
|
|
4374
|
+
} catch (i) {
|
|
4375
|
+
a(i);
|
|
4359
4376
|
}
|
|
4360
4377
|
});
|
|
4361
4378
|
}
|