react-big-screen 0.0.22 → 0.0.24
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/es/{attributes-Btg07K2U.mjs → attributes-2p9Zk1-n.mjs} +1 -1
- package/es/{attributes-CLKihLxA.mjs → attributes-8wJNGwLE.mjs} +1 -1
- package/es/{attributes-CuMNtV8M.mjs → attributes-BNGJPVyh.mjs} +1 -1
- package/es/{attributes-D48dVLeW.mjs → attributes-CH9MBgiG.mjs} +1 -1
- package/es/{attributes-T101y64V.mjs → attributes-CJsbMpOn.mjs} +1 -1
- package/es/{attributes-DygyEbMZ.mjs → attributes-CUgbOLAh.mjs} +1 -1
- package/es/{attributes-Cqd_mqWc.mjs → attributes-CdSoE5xJ.mjs} +1 -1
- package/es/{attributes-BPJdjr2i.mjs → attributes-CfPeTY5D.mjs} +2 -2
- package/es/{attributes-BfidbonK.mjs → attributes-DEejGpyc.mjs} +1 -1
- package/es/{attributes-BcOvtwR5.mjs → attributes-DRRt0HtT.mjs} +1 -1
- package/es/{attributes-BwADICpR.mjs → attributes-DRoIzLZg.mjs} +1 -1
- package/es/{attributes-CbEkHFeA.mjs → attributes-RjWkk9Ep.mjs} +1 -1
- package/es/{index-CW3G29nN.mjs → index-4S2OXFT4.mjs} +2 -2
- package/es/{index--DlyGwmX.mjs → index-B0NWyl8u.mjs} +2 -2
- package/es/{index-B7TrIL_C.mjs → index-BOqgdslU.mjs} +2 -2
- package/es/{index-DmMp7-l-.mjs → index-BaLteAvQ.mjs} +2 -2
- package/es/{index-BtEza1iX.mjs → index-BeTrQloT.mjs} +3 -3
- package/es/{index-DTMGhBFA.mjs → index-Bely-J50.mjs} +2 -2
- package/es/{index-Qxmobfyd.mjs → index-Bh0co1x-.mjs} +1 -1
- package/es/{index-onenk3XK.mjs → index-BjMdtwev.mjs} +2 -2
- package/es/{index-8ZXIms1b.mjs → index-Bn3nDy5T.mjs} +2 -2
- package/es/{index-D-o2kNzn.mjs → index-ByVgagvo.mjs} +383 -388
- package/es/{index-C6A7V93P.mjs → index-C9Wc2Kzs.mjs} +3 -3
- package/es/{index-CHxtigvR.mjs → index-COuWSAwb.mjs} +2 -2
- package/es/{index-BQ7mzQ9J.mjs → index-CQp7fz9I.mjs} +2 -2
- package/es/{index-DZRl1odp.mjs → index-CR_TAWUR.mjs} +2 -2
- package/es/{index-B8oIQxa8.mjs → index-CS4fwJHw.mjs} +2 -2
- package/es/{index-5xqLm0cU.mjs → index-CV1vqX8-.mjs} +2 -2
- package/es/{index-DxbswiWm.mjs → index-CnzZjrjU.mjs} +2 -2
- package/es/{index-BHmzQnjb.mjs → index-D66jJN7b.mjs} +1 -1
- package/es/{index-BvW1_Hyv.mjs → index-D9YQ4kEQ.mjs} +2 -2
- package/es/{index-C0Dt2jQ_.mjs → index-DGJ8dCRu.mjs} +2 -2
- package/es/{index-BHUjUILf.mjs → index-DHZzVkTM.mjs} +2 -2
- package/es/{index-Dv8VfJDC.mjs → index-DHoxa3x_.mjs} +3 -3
- package/es/{index-mzSvAxqW.mjs → index-DUvmwvc8.mjs} +2 -2
- package/es/{index-BuUTG4Rv.mjs → index-Dbkk-b9S.mjs} +45 -42
- package/es/{index-Z8NfClWR.mjs → index-Df0DLqCw.mjs} +2 -2
- package/es/{index-X5o1pXL3.mjs → index-DiAdz_6L.mjs} +3 -3
- package/es/index.mjs +1 -1
- package/es/{selectPage-BTdc0EhU.mjs → selectPage-BQ7Fdnqf.mjs} +1 -1
- package/es/{useCurrentPageId-DkPUSvWz.mjs → useCurrentPageId-6JCOgaZV.mjs} +1 -1
- package/package.json +1 -1
- package/types/src/export/components/RenderEditor/index.d.ts +7 -6
- package/types/src/export/index.d.ts +2 -6
- package/types/src/pages/components/Header/index.d.ts +10 -4
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ee = (e, t, n) =>
|
|
1
|
+
var yn = Object.defineProperty;
|
|
2
|
+
var vn = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var ee = (e, t, n) => vn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsx as l, jsxs as g, Fragment as W } from "react/jsx-runtime";
|
|
5
|
-
import
|
|
6
|
-
import { DownOutlined as
|
|
7
|
-
import { message as E, Tooltip as
|
|
5
|
+
import Tt, { useRef as M, useEffect as w, useMemo as A, useState as S, forwardRef as bn, useImperativeHandle as Cn, Suspense as zt, createContext as xn, useContext as In } from "react";
|
|
6
|
+
import { DownOutlined as kn, ReloadOutlined as Z, CloseOutlined as Sn, ArrowUpOutlined as et, ArrowRightOutlined as Nn, ArrowDownOutlined as tt, ArrowLeftOutlined as wn, QuestionCircleOutlined as En, UploadOutlined as An, VerticalAlignBottomOutlined as $t, ClearOutlined as Rt, TranslationOutlined as Ln, SaveOutlined as Q, GithubFilled as Dn, LockOutlined as Ft, EyeOutlined as On, EyeInvisibleOutlined as Pn, RightOutlined as Bn, VerticalAlignTopOutlined as Mn, UnlockOutlined as jn, BlockOutlined as Tn, DisconnectOutlined as zn, CopyOutlined as $n, DeleteOutlined as de, StarOutlined as dt, BorderOuterOutlined as Rn, BorderBottomOutlined as Fn, DownloadOutlined as Hn, LoadingOutlined as Ht, EditOutlined as Kt, BarsOutlined as Kn, FileOutlined as Un, AppstoreOutlined as qn, FileTextOutlined as Jn, ApartmentOutlined as Wn, BankOutlined as Vn, HistoryOutlined as Gn, PlusOutlined as rt, RedoOutlined as Xn, SettingOutlined as Yn } from "@ant-design/icons";
|
|
7
|
+
import { message as E, Tooltip as z, InputNumber as le, Popover as st, Slider as Zn, Space as D, Dropdown as be, Button as K, Input as Qn, Collapse as Ct, Form as B, Modal as re, Descriptions as je, Tree as pn, Row as nt, Col as H, Checkbox as we, Switch as Ut, Tabs as ei, Empty as xt } from "antd";
|
|
8
8
|
import $ from "classnames";
|
|
9
|
-
import { R as k, u as N, E as ti, a as ni, b as ii, c as ut, s as li, L as ci, d as ai, e as
|
|
9
|
+
import { R as k, u as N, E as ti, a as ni, b as ii, c as ut, s as li, L as ci, d as ai, e as qt, f as ht, g as it, l as Te, h as It, i as oi, j as kt, I as ze, k as di, m as ri } from "./index-Dbkk-b9S.mjs";
|
|
10
10
|
import "localforage";
|
|
11
11
|
import { createPortal as si } from "react-dom";
|
|
12
|
-
import { createRoot as
|
|
12
|
+
import { createRoot as Jt } from "react-dom/client";
|
|
13
13
|
import "driver.js";
|
|
14
14
|
import "driver.js/dist/driver.css";
|
|
15
|
-
import { cloneDeep as
|
|
16
|
-
import { u as Ee, i as Ae, a as gt, b as
|
|
17
|
-
import { useUpdateEffect as _t, useUnmount as
|
|
15
|
+
import { cloneDeep as Wt, debounce as ui, groupBy as hi, throttle as Vt } from "lodash-es";
|
|
16
|
+
import { u as Ee, i as Ae, a as gt, b as Gt, c as Xt, g as ae, d as gi, e as _i, f as mi, h as fi, j as Yt, s as St, P as yi, k as vi, l as bi } from "./index-CnzZjrjU.mjs";
|
|
17
|
+
import { useUpdateEffect as _t, useUnmount as Zt, useRequest as Qt } from "ahooks";
|
|
18
18
|
import "react-color";
|
|
19
|
-
import { I as p, L as Le, a as
|
|
19
|
+
import { I as p, L as Le, a as T, C as Ci, b as $e } from "./Line-CgKiUu04.mjs";
|
|
20
20
|
import { I as mt, a as xi } from "./IInputNumber-CEotcbKL.mjs";
|
|
21
21
|
import { useTranslation as se } from "react-i18next";
|
|
22
22
|
import lt from "hotkeys-js";
|
|
@@ -28,13 +28,13 @@ import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution"
|
|
|
28
28
|
import "monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution";
|
|
29
29
|
import "monaco-editor/esm/vs/language/typescript/monaco.contribution";
|
|
30
30
|
import ft from "jszip";
|
|
31
|
-
import { saveAs as
|
|
32
|
-
import { u as
|
|
33
|
-
import { u as wi, s as Re } from "./selectPage-
|
|
34
|
-
import { u as Ei } from "./useCurrentPageId-
|
|
35
|
-
import { u as
|
|
36
|
-
import { I as Ce } from "./index-
|
|
37
|
-
async function
|
|
31
|
+
import { saveAs as pt } from "file-saver";
|
|
32
|
+
import { u as en } from "./useEffectOnce-l5sUTCBG.mjs";
|
|
33
|
+
import { u as wi, s as Re } from "./selectPage-BQ7Fdnqf.mjs";
|
|
34
|
+
import { u as Ei } from "./useCurrentPageId-6JCOgaZV.mjs";
|
|
35
|
+
import { u as tn } from "./useListenRef-B01dENv0.mjs";
|
|
36
|
+
import { I as Ce } from "./index-Bh0co1x-.mjs";
|
|
37
|
+
async function nn(e) {
|
|
38
38
|
return new Promise((t) => {
|
|
39
39
|
let n = document.createElement("input");
|
|
40
40
|
n.type = "file", e != null && e.accept && (n.accept = e.accept), n.onchange = (i) => {
|
|
@@ -47,9 +47,9 @@ async function ln(e) {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
async function Ai(e) {
|
|
50
|
-
return
|
|
50
|
+
return nn(e).then((t) => ln(t));
|
|
51
51
|
}
|
|
52
|
-
async function
|
|
52
|
+
async function ln(e) {
|
|
53
53
|
return new Promise((t) => {
|
|
54
54
|
if (!e) return "";
|
|
55
55
|
const n = new FileReader();
|
|
@@ -79,14 +79,14 @@ function Li(e) {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
function Di(e, t) {
|
|
82
|
-
const n =
|
|
82
|
+
const n = M(), i = M(null), c = M(), { engine: a } = N();
|
|
83
83
|
return c.current = t, w(() => () => {
|
|
84
84
|
var d;
|
|
85
85
|
(d = n.current) == null || d.call(n);
|
|
86
86
|
}, []), A(() => {
|
|
87
87
|
let d = document.createElement("div");
|
|
88
88
|
document.body.appendChild(d);
|
|
89
|
-
let o =
|
|
89
|
+
let o = Jt(d);
|
|
90
90
|
return o.render(
|
|
91
91
|
/* @__PURE__ */ l(ti.Provider, { value: { engine: a }, children: /* @__PURE__ */ l(
|
|
92
92
|
ni,
|
|
@@ -135,11 +135,11 @@ function yt() {
|
|
|
135
135
|
}
|
|
136
136
|
function Pi() {
|
|
137
137
|
const { engine: e } = N(), [t, n] = S([]);
|
|
138
|
-
return
|
|
138
|
+
return en(() => (n(e.favorites.getAll()), e.favorites.onChange((i) => {
|
|
139
139
|
n([...i]);
|
|
140
140
|
}))), t;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function cn() {
|
|
143
143
|
const { engine: e } = N(), [t, n] = S(() => e.history.getHistoryData());
|
|
144
144
|
return w(() => {
|
|
145
145
|
e.history.onChange((i) => {
|
|
@@ -147,7 +147,7 @@ function an() {
|
|
|
147
147
|
});
|
|
148
148
|
}, []), t;
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const Bi = `/**
|
|
151
151
|
* 转换request扩展参数函数 (必须包含主函数main)
|
|
152
152
|
*
|
|
153
153
|
* @params {value} 默认携带参数或json对象
|
|
@@ -158,7 +158,7 @@ const Mi = `/**
|
|
|
158
158
|
*/
|
|
159
159
|
function main(value, {origin, target, option}) {
|
|
160
160
|
return value
|
|
161
|
-
}`,
|
|
161
|
+
}`, Mi = `/**
|
|
162
162
|
* 修改目标componentNode (必须包含主函数main)
|
|
163
163
|
*
|
|
164
164
|
* @params {target} 目标componentNode
|
|
@@ -180,18 +180,18 @@ function ji(e) {
|
|
|
180
180
|
lt(n, i), t.push(() => lt.unbind(n, i));
|
|
181
181
|
}), () => t.forEach((n) => n());
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Ti(e) {
|
|
184
184
|
w(() => ji(e), []);
|
|
185
185
|
}
|
|
186
186
|
function at() {
|
|
187
187
|
const e = k.getActiveEngine();
|
|
188
188
|
e && (e.componentNode.delete(Oe()), O("删除选中组件"));
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function an() {
|
|
191
191
|
const e = k.getActiveEngine();
|
|
192
192
|
e && (e.instance.selectAll(), O("全选组件"));
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function zi() {
|
|
195
195
|
const e = k.getActiveEngine();
|
|
196
196
|
e && (e.instance.getAllSelected().forEach((t) => {
|
|
197
197
|
const n = e.componentNode.get(t.id);
|
|
@@ -227,7 +227,7 @@ function Fi() {
|
|
|
227
227
|
});
|
|
228
228
|
}), O("组件下移"));
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function on() {
|
|
231
231
|
const e = k.getActiveEngine();
|
|
232
232
|
if (!e) return;
|
|
233
233
|
const t = Oe(), n = new Set(e.instance.getAllSelected().map((a) => a.id)), i = [], c = e.componentNode.cloneComponentNodes(t, {
|
|
@@ -377,7 +377,7 @@ function O(e) {
|
|
|
377
377
|
setTimeout(async () => {
|
|
378
378
|
const t = k.getActiveEngine();
|
|
379
379
|
if (t) {
|
|
380
|
-
const n = await t.getJSON(), i =
|
|
380
|
+
const n = await t.getJSON(), i = Wt(n);
|
|
381
381
|
t.history.add(i, e);
|
|
382
382
|
}
|
|
383
383
|
});
|
|
@@ -404,7 +404,7 @@ function Pe(e) {
|
|
|
404
404
|
return lt[e];
|
|
405
405
|
}
|
|
406
406
|
function pi() {
|
|
407
|
-
|
|
407
|
+
Ti({
|
|
408
408
|
backspace: () => {
|
|
409
409
|
at();
|
|
410
410
|
},
|
|
@@ -412,10 +412,10 @@ function pi() {
|
|
|
412
412
|
at();
|
|
413
413
|
},
|
|
414
414
|
"Shift + A": () => {
|
|
415
|
-
|
|
415
|
+
an();
|
|
416
416
|
},
|
|
417
417
|
left: (e) => {
|
|
418
|
-
e.preventDefault(),
|
|
418
|
+
e.preventDefault(), zi();
|
|
419
419
|
},
|
|
420
420
|
right: (e) => {
|
|
421
421
|
e.preventDefault(), $i();
|
|
@@ -426,7 +426,7 @@ function pi() {
|
|
|
426
426
|
down: (e) => {
|
|
427
427
|
e.preventDefault(), Fi();
|
|
428
428
|
},
|
|
429
|
-
"Shift + C": () =>
|
|
429
|
+
"Shift + C": () => on(),
|
|
430
430
|
"Shift + S": () => vt(),
|
|
431
431
|
"Shift + R": () => De(),
|
|
432
432
|
"Shift + Z": () => bt(),
|
|
@@ -450,8 +450,8 @@ const el = "_page_1ijjl_59", tl = "_page_header_1ijjl_69", nl = "_page_body_1ijj
|
|
|
450
450
|
tooltipButton_hover: sl,
|
|
451
451
|
tooltipButton_disabled: ul
|
|
452
452
|
};
|
|
453
|
-
function
|
|
454
|
-
return /* @__PURE__ */ l(
|
|
453
|
+
function dn(e) {
|
|
454
|
+
return /* @__PURE__ */ l(z, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
|
|
455
455
|
"div",
|
|
456
456
|
{
|
|
457
457
|
className: $(
|
|
@@ -574,7 +574,7 @@ function yl(e) {
|
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
),
|
|
577
|
-
/* @__PURE__ */ l(
|
|
577
|
+
/* @__PURE__ */ l(dn, { noHoverClass: !0, title: "重置", children: /* @__PURE__ */ l(
|
|
578
578
|
Z,
|
|
579
579
|
{
|
|
580
580
|
className: "theme-color icon_clickable",
|
|
@@ -587,7 +587,7 @@ function yl(e) {
|
|
|
587
587
|
] }),
|
|
588
588
|
children: /* @__PURE__ */ g("span", { style: { cursor: "pointer" }, children: [
|
|
589
589
|
/* @__PURE__ */ l("span", { style: { marginRight: 4 }, children: `${o}%` }),
|
|
590
|
-
/* @__PURE__ */ l(
|
|
590
|
+
/* @__PURE__ */ l(kn, {})
|
|
591
591
|
] })
|
|
592
592
|
}
|
|
593
593
|
);
|
|
@@ -607,7 +607,7 @@ function vl() {
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
),
|
|
610
|
-
/* @__PURE__ */ l(
|
|
610
|
+
/* @__PURE__ */ l(Sn, { style: { fontSize: 10 } }),
|
|
611
611
|
/* @__PURE__ */ l(
|
|
612
612
|
Et,
|
|
613
613
|
{
|
|
@@ -725,9 +725,9 @@ function bl() {
|
|
|
725
725
|
":"
|
|
726
726
|
] }),
|
|
727
727
|
/* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(et, {}) }),
|
|
728
|
-
/* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(
|
|
728
|
+
/* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(Nn, {}) }),
|
|
729
729
|
/* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(tt, {}) }),
|
|
730
|
-
/* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(
|
|
730
|
+
/* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(wn, {}) })
|
|
731
731
|
] }),
|
|
732
732
|
/* @__PURE__ */ g(D, { children: [
|
|
733
733
|
/* @__PURE__ */ g("span", { children: [
|
|
@@ -813,7 +813,7 @@ const Il = (e, t, n) => {
|
|
|
813
813
|
};
|
|
814
814
|
async function kl(e) {
|
|
815
815
|
var i;
|
|
816
|
-
const t = await Il(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-
|
|
816
|
+
const t = await Il(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-Dbkk-b9S.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-Dbkk-b9S.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = k.getActiveEngine();
|
|
817
817
|
(i = n == null ? void 0 : n.loadJSON) == null || i.call(n, t);
|
|
818
818
|
}
|
|
819
819
|
function Sl() {
|
|
@@ -852,49 +852,42 @@ function Nl() {
|
|
|
852
852
|
}
|
|
853
853
|
const wl = xl();
|
|
854
854
|
function El(e) {
|
|
855
|
-
const { pageLogo: t } = e, { engine:
|
|
855
|
+
const { pageLogo: t, pageToolBar: n } = e, { engine: i, rbsEngine: c } = N(), [a, d] = se(), o = cn(), s = d.language === ci.zh, r = A(() => [
|
|
856
856
|
{
|
|
857
857
|
key: "shortCutKeys",
|
|
858
858
|
description: /* @__PURE__ */ l(bl, {}),
|
|
859
|
-
icon: /* @__PURE__ */ l(
|
|
859
|
+
icon: /* @__PURE__ */ l(En, {})
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
862
|
key: "undo",
|
|
863
|
-
description:
|
|
864
|
-
disabled: !
|
|
863
|
+
description: a("head.undo"),
|
|
864
|
+
disabled: !o.isCanGoBack,
|
|
865
865
|
icon: /* @__PURE__ */ l(Nt, { type: "icon-undo" })
|
|
866
866
|
},
|
|
867
867
|
{
|
|
868
868
|
key: "cancelUndo",
|
|
869
|
-
description:
|
|
870
|
-
disabled: !
|
|
869
|
+
description: a("head.cancelUndo"),
|
|
870
|
+
disabled: !o.isCanGoForward,
|
|
871
871
|
icon: /* @__PURE__ */ l(Nt, { type: "icon-cancel-undo" })
|
|
872
872
|
},
|
|
873
|
-
{ key: "export", description:
|
|
874
|
-
{ key: "import", description:
|
|
875
|
-
{ key: "
|
|
876
|
-
{ key: "clear", description: c("head.clear"), icon: /* @__PURE__ */ l(Rt, {}) },
|
|
873
|
+
{ key: "export", description: a("head.export"), icon: /* @__PURE__ */ l(An, {}) },
|
|
874
|
+
{ key: "import", description: a("head.import"), icon: /* @__PURE__ */ l($t, {}) },
|
|
875
|
+
{ key: "clear", description: a("head.clear"), icon: /* @__PURE__ */ l(Rt, {}) },
|
|
877
876
|
{
|
|
878
877
|
key: "language",
|
|
879
|
-
description:
|
|
880
|
-
icon: /* @__PURE__ */ l(
|
|
878
|
+
description: a("head.language", { text: `${s ? "切换英语" : "change chinese"}` }),
|
|
879
|
+
icon: /* @__PURE__ */ l(Ln, {})
|
|
881
880
|
},
|
|
882
|
-
{
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
disabled: !0,
|
|
886
|
-
icon: /* @__PURE__ */ l(Ft, {})
|
|
887
|
-
}
|
|
888
|
-
// { key: "preview", description: t("head.preview"), icon: <DesktopOutlined /> },
|
|
889
|
-
], [a.language, d.isCanGoForward, d.isCanGoBack]);
|
|
890
|
-
function r() {
|
|
881
|
+
{ key: "save", description: a("head.save"), icon: /* @__PURE__ */ l(Q, {}) }
|
|
882
|
+
], [d.language, o.isCanGoForward, o.isCanGoBack]);
|
|
883
|
+
function h() {
|
|
891
884
|
window.open("https://github.com/tangjiahui-cn/react-big-screen.git");
|
|
892
885
|
}
|
|
893
|
-
async function
|
|
894
|
-
|
|
886
|
+
async function u() {
|
|
887
|
+
c == null || c.emit("startPreview", i);
|
|
895
888
|
}
|
|
896
|
-
function
|
|
897
|
-
switch (
|
|
889
|
+
function _(I) {
|
|
890
|
+
switch (I.key) {
|
|
898
891
|
case "undo":
|
|
899
892
|
bt();
|
|
900
893
|
break;
|
|
@@ -902,71 +895,73 @@ function El(e) {
|
|
|
902
895
|
ot();
|
|
903
896
|
break;
|
|
904
897
|
case "export":
|
|
905
|
-
|
|
906
|
-
const
|
|
907
|
-
|
|
898
|
+
i.getJSON().then((y) => {
|
|
899
|
+
const x = JSON.stringify(y);
|
|
900
|
+
qt(x, "大屏看板.json");
|
|
908
901
|
});
|
|
909
902
|
break;
|
|
910
903
|
case "import":
|
|
911
|
-
Ai().then((
|
|
912
|
-
if (!
|
|
904
|
+
Ai().then((y) => {
|
|
905
|
+
if (!y)
|
|
913
906
|
return E.warn("文件内容不能为空");
|
|
914
907
|
try {
|
|
915
|
-
const
|
|
916
|
-
|
|
908
|
+
const x = JSON.parse(y);
|
|
909
|
+
i.loadJSON(x);
|
|
917
910
|
} catch {
|
|
918
911
|
E.error("请上传json格式文件");
|
|
919
912
|
}
|
|
920
913
|
});
|
|
921
914
|
break;
|
|
922
915
|
case "preview":
|
|
923
|
-
|
|
916
|
+
u();
|
|
924
917
|
break;
|
|
925
918
|
case "save":
|
|
926
919
|
vt();
|
|
927
920
|
break;
|
|
928
921
|
case "clear":
|
|
929
|
-
|
|
922
|
+
i.clear();
|
|
930
923
|
break;
|
|
931
924
|
case "settings":
|
|
932
925
|
break;
|
|
933
926
|
case "language":
|
|
934
|
-
const
|
|
935
|
-
ai(
|
|
927
|
+
const f = s ? "en" : "zh";
|
|
928
|
+
ai(f), i.config.setConfig({ language: f });
|
|
936
929
|
break;
|
|
937
930
|
}
|
|
938
931
|
}
|
|
939
|
-
const
|
|
932
|
+
const m = /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
|
|
940
933
|
/* @__PURE__ */ l("b", { children: "BigScreen" }),
|
|
941
|
-
!wl && /* @__PURE__ */ l(
|
|
942
|
-
] })
|
|
934
|
+
!wl && /* @__PURE__ */ l(Dn, { style: { cursor: "pointer", fontSize: 16 }, onClick: h })
|
|
935
|
+
] }), v = /* @__PURE__ */ g(W, { children: [
|
|
936
|
+
r.map((I) => /* @__PURE__ */ l(
|
|
937
|
+
dn,
|
|
938
|
+
{
|
|
939
|
+
disabled: I == null ? void 0 : I.disabled,
|
|
940
|
+
title: I.description,
|
|
941
|
+
onClick: () => _(I),
|
|
942
|
+
children: I == null ? void 0 : I.icon
|
|
943
|
+
},
|
|
944
|
+
I.key
|
|
945
|
+
)),
|
|
946
|
+
/* @__PURE__ */ l(
|
|
947
|
+
K,
|
|
948
|
+
{
|
|
949
|
+
type: "primary",
|
|
950
|
+
size: "small",
|
|
951
|
+
style: { fontSize: 12 },
|
|
952
|
+
id: "rbs-preview",
|
|
953
|
+
onClick: u,
|
|
954
|
+
children: "开始预览"
|
|
955
|
+
}
|
|
956
|
+
)
|
|
957
|
+
] }), C = "rbs-tool-bar", b = n ? typeof n == "function" ? /* @__PURE__ */ l(n, { origin: v, previewDriverId: C }) : n : v;
|
|
943
958
|
return /* @__PURE__ */ g("div", { className: Ie.header, children: [
|
|
944
|
-
t ? /* @__PURE__ */ l(t, {}) :
|
|
959
|
+
t ? typeof t == "function" ? /* @__PURE__ */ l(t, {}) : t : m,
|
|
945
960
|
/* @__PURE__ */ l(vl, {}),
|
|
946
961
|
/* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
|
|
947
962
|
/* @__PURE__ */ l(Sl, {}),
|
|
948
963
|
/* @__PURE__ */ l(Nl, {}),
|
|
949
|
-
/* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id:
|
|
950
|
-
rn,
|
|
951
|
-
{
|
|
952
|
-
disabled: m == null ? void 0 : m.disabled,
|
|
953
|
-
title: m.description,
|
|
954
|
-
onClick: () => u(m),
|
|
955
|
-
children: m == null ? void 0 : m.icon
|
|
956
|
-
},
|
|
957
|
-
m.key
|
|
958
|
-
)) }),
|
|
959
|
-
/* @__PURE__ */ l(
|
|
960
|
-
K,
|
|
961
|
-
{
|
|
962
|
-
type: "primary",
|
|
963
|
-
size: "small",
|
|
964
|
-
style: { fontSize: 12 },
|
|
965
|
-
id: "rbs-preview",
|
|
966
|
-
onClick: h,
|
|
967
|
-
children: "开始预览"
|
|
968
|
-
}
|
|
969
|
-
)
|
|
964
|
+
/* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: C, children: b })
|
|
970
965
|
] })
|
|
971
966
|
] });
|
|
972
967
|
}
|
|
@@ -974,15 +969,15 @@ const Al = "_menu_1ueks_59", Ll = "_menu_bar_1ueks_68", Dl = "_menu_main_1ueks_7
|
|
|
974
969
|
menu: Al,
|
|
975
970
|
menu_bar: Ll,
|
|
976
971
|
menu_main: Dl
|
|
977
|
-
}, Ol = "_library_11n9v_59", Pl = "_library_header_11n9v_72",
|
|
972
|
+
}, Ol = "_library_11n9v_59", Pl = "_library_header_11n9v_72", Bl = "_library_main_11n9v_83", Ke = {
|
|
978
973
|
library: Ol,
|
|
979
974
|
library_header: Pl,
|
|
980
|
-
library_main:
|
|
981
|
-
},
|
|
982
|
-
componentsBlock:
|
|
983
|
-
},
|
|
984
|
-
componentItem:
|
|
985
|
-
componentItem_body:
|
|
975
|
+
library_main: Bl
|
|
976
|
+
}, Ml = "_componentsBlock_mx05c_59", jl = {
|
|
977
|
+
componentsBlock: Ml
|
|
978
|
+
}, Tl = "_componentItem_1a82r_59", zl = "_componentItem_body_1a82r_71", $l = "_componentItem_footer_1a82r_80", Ue = {
|
|
979
|
+
componentItem: Tl,
|
|
980
|
+
componentItem_body: zl,
|
|
986
981
|
componentItem_footer: $l
|
|
987
982
|
};
|
|
988
983
|
class Rl {
|
|
@@ -1074,8 +1069,8 @@ class Hl {
|
|
|
1074
1069
|
}
|
|
1075
1070
|
}
|
|
1076
1071
|
const ce = new Hl();
|
|
1077
|
-
function
|
|
1078
|
-
const n =
|
|
1072
|
+
function rn(e, t) {
|
|
1073
|
+
const n = M(t);
|
|
1079
1074
|
n.current = t, w(() => {
|
|
1080
1075
|
const i = e.current;
|
|
1081
1076
|
if (!i) {
|
|
@@ -1093,8 +1088,8 @@ function sn(e, t) {
|
|
|
1093
1088
|
return () => c();
|
|
1094
1089
|
}, []);
|
|
1095
1090
|
}
|
|
1096
|
-
function
|
|
1097
|
-
const n =
|
|
1091
|
+
function sn(e, t) {
|
|
1092
|
+
const n = M(t);
|
|
1098
1093
|
n.current = t, w(() => {
|
|
1099
1094
|
const { accept: i } = t;
|
|
1100
1095
|
if (i && !Array.isArray(i))
|
|
@@ -1132,8 +1127,8 @@ function xe(e) {
|
|
|
1132
1127
|
}, [t]), t ? /* @__PURE__ */ l("img", { style: e == null ? void 0 : e.style, src: n, draggable: !1 }) : /* @__PURE__ */ l("span", { style: { color: "#b8b8b8" }, children: "None" });
|
|
1133
1128
|
}
|
|
1134
1129
|
function Kl(e) {
|
|
1135
|
-
const { component: t } = e, n =
|
|
1136
|
-
return
|
|
1130
|
+
const { component: t } = e, n = M(null);
|
|
1131
|
+
return rn(n, {
|
|
1137
1132
|
type: "create-component",
|
|
1138
1133
|
data: {
|
|
1139
1134
|
component: t
|
|
@@ -1189,8 +1184,8 @@ function ql() {
|
|
|
1189
1184
|
nav: e("menu.library.nav"),
|
|
1190
1185
|
unknown: e("menu.library.unknown")
|
|
1191
1186
|
}), [t.language]), h = A(() => ui((_, m = "") => {
|
|
1192
|
-
const
|
|
1193
|
-
s(
|
|
1187
|
+
const v = Lt(_, m);
|
|
1188
|
+
s(v);
|
|
1194
1189
|
}, 500), []);
|
|
1195
1190
|
w(() => {
|
|
1196
1191
|
s(Lt(c, a));
|
|
@@ -1199,11 +1194,11 @@ function ql() {
|
|
|
1199
1194
|
}, [a]);
|
|
1200
1195
|
const u = A(() => {
|
|
1201
1196
|
const _ = [], m = Object.entries(
|
|
1202
|
-
hi(o, (
|
|
1203
|
-
).map(([
|
|
1204
|
-
key:
|
|
1197
|
+
hi(o, (v) => v.category || "unknown")
|
|
1198
|
+
).map(([v, C]) => (_.push(v), {
|
|
1199
|
+
key: v,
|
|
1205
1200
|
components: C,
|
|
1206
|
-
label: r[
|
|
1201
|
+
label: r[v] || v
|
|
1207
1202
|
}));
|
|
1208
1203
|
return i(_), m;
|
|
1209
1204
|
}, [o, r]);
|
|
@@ -1244,7 +1239,7 @@ const Jl = "_componentNodes_x43ss_59", Wl = "_componentNodes_head_x43ss_63", Vl
|
|
|
1244
1239
|
componentNodeItem_tail_operatable: pl
|
|
1245
1240
|
};
|
|
1246
1241
|
function ec(e) {
|
|
1247
|
-
const { engine: t } = N(), n =
|
|
1242
|
+
const { engine: t } = N(), n = M(null), [i, c] = S(e == null ? void 0 : e.componentNode), a = (i == null ? void 0 : i.show) ?? !0, { component: d, instance: o } = A(() => ({
|
|
1248
1243
|
component: t.component.get(i == null ? void 0 : i.cId),
|
|
1249
1244
|
instance: t.instance.get(i == null ? void 0 : i.id)
|
|
1250
1245
|
}), [i]);
|
|
@@ -1290,7 +1285,7 @@ function ec(e) {
|
|
|
1290
1285
|
/* @__PURE__ */ l("div", { className: ne.componentNodeItem_icon, children: /* @__PURE__ */ l(xe, { src: d == null ? void 0 : d.icon, style: { height: "75%", maxWidth: "100%" } }) }),
|
|
1291
1286
|
/* @__PURE__ */ l("div", { className: ne.componentNodeItem_name, children: i == null ? void 0 : i.name }),
|
|
1292
1287
|
/* @__PURE__ */ g("div", { className: ne.componentNodeItem_tail, children: [
|
|
1293
|
-
/* @__PURE__ */ l("div", { children: i != null && i.lock ? /* @__PURE__ */ l(
|
|
1288
|
+
/* @__PURE__ */ l("div", { children: i != null && i.lock ? /* @__PURE__ */ l(Ft, {}) : "" }),
|
|
1294
1289
|
/* @__PURE__ */ l(
|
|
1295
1290
|
"div",
|
|
1296
1291
|
{
|
|
@@ -1298,7 +1293,7 @@ function ec(e) {
|
|
|
1298
1293
|
onMouseDown: (h) => {
|
|
1299
1294
|
h.stopPropagation(), r(!a);
|
|
1300
1295
|
},
|
|
1301
|
-
children: a ? /* @__PURE__ */ l(
|
|
1296
|
+
children: a ? /* @__PURE__ */ l(On, {}) : /* @__PURE__ */ l(Pn, {})
|
|
1302
1297
|
}
|
|
1303
1298
|
)
|
|
1304
1299
|
] })
|
|
@@ -1323,10 +1318,10 @@ const tc = "_renderContextMenu_vitq8_59", nc = {
|
|
|
1323
1318
|
function uc(e) {
|
|
1324
1319
|
const { engine: t } = N(), { children: n, items: i, onSelect: c, ...a } = e, [d, o] = S(!1), [s, r] = S(sc);
|
|
1325
1320
|
function h(_) {
|
|
1326
|
-
var
|
|
1327
|
-
if ((
|
|
1321
|
+
var v, C, b;
|
|
1322
|
+
if ((v = e == null ? void 0 : e.onMouseEnter) == null || v.call(e, _), !(i != null && i.length))
|
|
1328
1323
|
return;
|
|
1329
|
-
const m = (
|
|
1324
|
+
const m = (b = (C = _.target) == null ? void 0 : C.getBoundingClientRect) == null ? void 0 : b.call(C);
|
|
1330
1325
|
m && (r({ top: m.top, left: m.left + m.width }), o(!0));
|
|
1331
1326
|
}
|
|
1332
1327
|
function u(_) {
|
|
@@ -1346,7 +1341,7 @@ function uc(e) {
|
|
|
1346
1341
|
zIndex: t.componentNode.getMaxLevel()
|
|
1347
1342
|
},
|
|
1348
1343
|
children: /* @__PURE__ */ l(
|
|
1349
|
-
|
|
1344
|
+
un,
|
|
1350
1345
|
{
|
|
1351
1346
|
items: i,
|
|
1352
1347
|
onSelect: (_, m) => {
|
|
@@ -1360,7 +1355,7 @@ function uc(e) {
|
|
|
1360
1355
|
)
|
|
1361
1356
|
] });
|
|
1362
1357
|
}
|
|
1363
|
-
function
|
|
1358
|
+
function un(e) {
|
|
1364
1359
|
var t, n;
|
|
1365
1360
|
return /* @__PURE__ */ l("div", { className: ge.renderList, children: (n = (t = e == null ? void 0 : e.items) == null ? void 0 : t.map) == null ? void 0 : n.call(t, (i) => {
|
|
1366
1361
|
var a;
|
|
@@ -1396,7 +1391,7 @@ function hn(e) {
|
|
|
1396
1391
|
}) });
|
|
1397
1392
|
}
|
|
1398
1393
|
function hc(e) {
|
|
1399
|
-
const t =
|
|
1394
|
+
const t = M(null);
|
|
1400
1395
|
return w(() => {
|
|
1401
1396
|
function n(i) {
|
|
1402
1397
|
var c, a, d;
|
|
@@ -1415,7 +1410,7 @@ function hc(e) {
|
|
|
1415
1410
|
n.preventDefault();
|
|
1416
1411
|
},
|
|
1417
1412
|
children: /* @__PURE__ */ l(
|
|
1418
|
-
|
|
1413
|
+
un,
|
|
1419
1414
|
{
|
|
1420
1415
|
items: e == null ? void 0 : e.items,
|
|
1421
1416
|
onSelect: (n) => {
|
|
@@ -1427,13 +1422,13 @@ function hc(e) {
|
|
|
1427
1422
|
}
|
|
1428
1423
|
);
|
|
1429
1424
|
}
|
|
1430
|
-
function
|
|
1425
|
+
function hn(e, t, n, i) {
|
|
1431
1426
|
var s;
|
|
1432
1427
|
if (!n || (i != null && i.onBeforeOpen && (n = ((s = i == null ? void 0 : i.onBeforeOpen) == null ? void 0 : s.call(i, n)) || n), n = n == null ? void 0 : n.filter(Boolean), !(n != null && n.length)))
|
|
1433
1428
|
return;
|
|
1434
1429
|
const c = document.createElement("div");
|
|
1435
1430
|
c.style.position = "fixed", c.style.left = `${e}px`, c.style.top = `${t}px`, typeof (i == null ? void 0 : i.zIndex) == "number" && (c.style.zIndex = `${i == null ? void 0 : i.zIndex}`), document.body.appendChild(c);
|
|
1436
|
-
const a =
|
|
1431
|
+
const a = Jt(c);
|
|
1437
1432
|
let d = !1;
|
|
1438
1433
|
const o = () => {
|
|
1439
1434
|
var r, h;
|
|
@@ -1458,7 +1453,7 @@ function gn(e, t, n, i) {
|
|
|
1458
1453
|
const gc = [
|
|
1459
1454
|
{
|
|
1460
1455
|
key: "top",
|
|
1461
|
-
icon: /* @__PURE__ */ l(
|
|
1456
|
+
icon: /* @__PURE__ */ l(Mn, {}),
|
|
1462
1457
|
title: "置顶",
|
|
1463
1458
|
style: { borderTop: "1px solid #e8e8e8" },
|
|
1464
1459
|
onSelect: () => Wi()
|
|
@@ -1484,13 +1479,13 @@ const gc = [
|
|
|
1484
1479
|
},
|
|
1485
1480
|
{
|
|
1486
1481
|
key: "lock",
|
|
1487
|
-
icon: /* @__PURE__ */ l(
|
|
1482
|
+
icon: /* @__PURE__ */ l(Ft, {}),
|
|
1488
1483
|
title: "锁定",
|
|
1489
1484
|
onSelect: () => Ki()
|
|
1490
1485
|
},
|
|
1491
1486
|
{
|
|
1492
1487
|
key: "unlock",
|
|
1493
|
-
icon: /* @__PURE__ */ l(
|
|
1488
|
+
icon: /* @__PURE__ */ l(jn, {}),
|
|
1494
1489
|
title: "解锁",
|
|
1495
1490
|
onSelect: () => Ui()
|
|
1496
1491
|
},
|
|
@@ -1502,16 +1497,16 @@ const gc = [
|
|
|
1502
1497
|
},
|
|
1503
1498
|
{
|
|
1504
1499
|
key: "ungroup",
|
|
1505
|
-
icon: /* @__PURE__ */ l(
|
|
1500
|
+
icon: /* @__PURE__ */ l(zn, {}),
|
|
1506
1501
|
title: "取消成组",
|
|
1507
1502
|
onSelect: () => Ji()
|
|
1508
1503
|
},
|
|
1509
1504
|
{
|
|
1510
1505
|
key: "copy",
|
|
1511
|
-
icon: /* @__PURE__ */ l(
|
|
1506
|
+
icon: /* @__PURE__ */ l($n, {}),
|
|
1512
1507
|
title: "复制",
|
|
1513
1508
|
style: { borderTop: "1px solid #e8e8e8" },
|
|
1514
|
-
onSelect: () =>
|
|
1509
|
+
onSelect: () => on()
|
|
1515
1510
|
},
|
|
1516
1511
|
{
|
|
1517
1512
|
key: "delete",
|
|
@@ -1529,7 +1524,7 @@ const gc = [
|
|
|
1529
1524
|
];
|
|
1530
1525
|
function _c(e, t) {
|
|
1531
1526
|
var n;
|
|
1532
|
-
return
|
|
1527
|
+
return hn(e.clientX, e.clientY, gc, {
|
|
1533
1528
|
zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel(),
|
|
1534
1529
|
onBeforeOpen(i) {
|
|
1535
1530
|
let c = 0, a = !1;
|
|
@@ -1545,13 +1540,13 @@ const mc = [
|
|
|
1545
1540
|
{
|
|
1546
1541
|
key: "selectAll",
|
|
1547
1542
|
title: "全选",
|
|
1548
|
-
icon: /* @__PURE__ */ l(
|
|
1549
|
-
onSelect: () =>
|
|
1543
|
+
icon: /* @__PURE__ */ l(Rn, {}),
|
|
1544
|
+
onSelect: () => an()
|
|
1550
1545
|
},
|
|
1551
1546
|
{
|
|
1552
1547
|
key: "unselectAll",
|
|
1553
1548
|
title: "反选",
|
|
1554
|
-
icon: /* @__PURE__ */ l(
|
|
1549
|
+
icon: /* @__PURE__ */ l(Fn, {}),
|
|
1555
1550
|
onSelect: () => De()
|
|
1556
1551
|
},
|
|
1557
1552
|
{
|
|
@@ -1569,7 +1564,7 @@ const mc = [
|
|
|
1569
1564
|
];
|
|
1570
1565
|
function fc(e, t) {
|
|
1571
1566
|
var n;
|
|
1572
|
-
return
|
|
1567
|
+
return hn(e.clientX, e.clientY, mc, {
|
|
1573
1568
|
zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel()
|
|
1574
1569
|
});
|
|
1575
1570
|
}
|
|
@@ -1577,7 +1572,7 @@ let ve = [];
|
|
|
1577
1572
|
function Dt() {
|
|
1578
1573
|
ve.length && (ve.forEach((e) => e == null ? void 0 : e()), ve = []);
|
|
1579
1574
|
}
|
|
1580
|
-
function
|
|
1575
|
+
function gn(e) {
|
|
1581
1576
|
const { engine: t } = N();
|
|
1582
1577
|
gt(e, {
|
|
1583
1578
|
contextmenu(n) {
|
|
@@ -1590,12 +1585,12 @@ function _n(e) {
|
|
|
1590
1585
|
}
|
|
1591
1586
|
ve.push(fc(n, t));
|
|
1592
1587
|
}
|
|
1593
|
-
}),
|
|
1588
|
+
}), Zt(() => {
|
|
1594
1589
|
Dt();
|
|
1595
1590
|
});
|
|
1596
1591
|
}
|
|
1597
1592
|
function yc() {
|
|
1598
|
-
const { engine: e } = N(), t =
|
|
1593
|
+
const { engine: e } = N(), t = Gt(), n = yt(), i = M(null), c = A(() => t.length ? /* @__PURE__ */ l("div", { className: qe.componentNodes_block, children: t.map((a) => /* @__PURE__ */ l(
|
|
1599
1594
|
ec,
|
|
1600
1595
|
{
|
|
1601
1596
|
componentNode: a,
|
|
@@ -1603,7 +1598,7 @@ function yc() {
|
|
|
1603
1598
|
},
|
|
1604
1599
|
a.id
|
|
1605
1600
|
)) }) : /* @__PURE__ */ l(W, {}), [t, n]);
|
|
1606
|
-
return
|
|
1601
|
+
return gn(i), /* @__PURE__ */ g(
|
|
1607
1602
|
"div",
|
|
1608
1603
|
{
|
|
1609
1604
|
ref: i,
|
|
@@ -1629,7 +1624,7 @@ function xc(e) {
|
|
|
1629
1624
|
var t, n;
|
|
1630
1625
|
return /* @__PURE__ */ l("div", { className: Je.menubar, children: (n = (t = e == null ? void 0 : e.list) == null ? void 0 : t.map) == null ? void 0 : n.call(t, (i) => {
|
|
1631
1626
|
const c = i.key === e.value;
|
|
1632
|
-
return /* @__PURE__ */ l(
|
|
1627
|
+
return /* @__PURE__ */ l(z, { title: i == null ? void 0 : i.title, placement: "right", children: /* @__PURE__ */ l(
|
|
1633
1628
|
"div",
|
|
1634
1629
|
{
|
|
1635
1630
|
id: i == null ? void 0 : i.domId,
|
|
@@ -1692,7 +1687,7 @@ function Pc(e) {
|
|
|
1692
1687
|
return;
|
|
1693
1688
|
}
|
|
1694
1689
|
const _ = `${t == null ? void 0 : t.name}.js`;
|
|
1695
|
-
|
|
1690
|
+
qt(u, _);
|
|
1696
1691
|
}
|
|
1697
1692
|
return /* @__PURE__ */ l(
|
|
1698
1693
|
st,
|
|
@@ -1750,7 +1745,7 @@ function Pc(e) {
|
|
|
1750
1745
|
}
|
|
1751
1746
|
),
|
|
1752
1747
|
/* @__PURE__ */ l(
|
|
1753
|
-
|
|
1748
|
+
Hn,
|
|
1754
1749
|
{
|
|
1755
1750
|
title: "下载到本地",
|
|
1756
1751
|
className: $(
|
|
@@ -1765,9 +1760,9 @@ function Pc(e) {
|
|
|
1765
1760
|
}
|
|
1766
1761
|
);
|
|
1767
1762
|
}
|
|
1768
|
-
const
|
|
1769
|
-
jsonEditor:
|
|
1770
|
-
jsonEditor_render:
|
|
1763
|
+
const Bc = "_jsonEditor_13vbq_59", Mc = "_jsonEditor_render_13vbq_68", jc = "_jsonEditor_loading_13vbq_72", We = {
|
|
1764
|
+
jsonEditor: Bc,
|
|
1765
|
+
jsonEditor_render: Mc,
|
|
1771
1766
|
jsonEditor_loading: jc
|
|
1772
1767
|
};
|
|
1773
1768
|
self.MonacoEnvironment = {
|
|
@@ -1788,7 +1783,7 @@ self.MonacoEnvironment = {
|
|
|
1788
1783
|
}
|
|
1789
1784
|
};
|
|
1790
1785
|
function X(e) {
|
|
1791
|
-
const t =
|
|
1786
|
+
const t = M(null), n = M();
|
|
1792
1787
|
return w(() => {
|
|
1793
1788
|
var c, a;
|
|
1794
1789
|
const i = Ni.editor.create(t.current, {
|
|
@@ -1829,11 +1824,11 @@ function X(e) {
|
|
|
1829
1824
|
i !== ((a = (c = n == null ? void 0 : n.current) == null ? void 0 : c.getValue) == null ? void 0 : a.call(c)) && ((o = (d = n.current) == null ? void 0 : d.setValue) == null || o.call(d, i));
|
|
1830
1825
|
}, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: We.jsonEditor, style: e == null ? void 0 : e.style, children: [
|
|
1831
1826
|
/* @__PURE__ */ l("div", { ref: t, className: We.jsonEditor_render }),
|
|
1832
|
-
(e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(
|
|
1827
|
+
(e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Ht, { style: { fontSize: 20 } }) })
|
|
1833
1828
|
] });
|
|
1834
1829
|
}
|
|
1835
|
-
const
|
|
1836
|
-
const { params: t } = e, [n] =
|
|
1830
|
+
const Tc = ue((e) => {
|
|
1831
|
+
const { params: t } = e, [n] = B.useForm(), [i, c] = S(!1), a = M("");
|
|
1837
1832
|
function d() {
|
|
1838
1833
|
n.validateFields(["url"]).then((s) => {
|
|
1839
1834
|
var r;
|
|
@@ -1871,21 +1866,21 @@ const zc = ue((e) => {
|
|
|
1871
1866
|
onCancel: e == null ? void 0 : e.onCancel,
|
|
1872
1867
|
bodyStyle: { paddingBottom: 0 },
|
|
1873
1868
|
onOk: o,
|
|
1874
|
-
children: /* @__PURE__ */ g(
|
|
1875
|
-
/* @__PURE__ */ l(
|
|
1876
|
-
/* @__PURE__ */ l(
|
|
1869
|
+
children: /* @__PURE__ */ g(B, { form: n, labelCol: { span: 2 }, children: [
|
|
1870
|
+
/* @__PURE__ */ l(B.Item, { label: "地址", name: "url", rules: [{ required: !0, message: "请输入地址" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1871
|
+
/* @__PURE__ */ l(B.Item, { noStyle: !0, name: "url", style: { flex: 1 }, children: /* @__PURE__ */ l(p, { size: "middle" }) }),
|
|
1877
1872
|
/* @__PURE__ */ l(K, { type: "primary", onClick: d, loading: i, children: "读取" })
|
|
1878
1873
|
] }) }),
|
|
1879
|
-
/* @__PURE__ */ l(
|
|
1874
|
+
/* @__PURE__ */ l(B.Item, { label: "文本", name: "content", children: /* @__PURE__ */ l(X, { readOnly: !0, language: "javascript", style: { height: 400 } }) })
|
|
1880
1875
|
] })
|
|
1881
1876
|
}
|
|
1882
1877
|
);
|
|
1883
|
-
}),
|
|
1878
|
+
}), zc = [
|
|
1884
1879
|
{ key: "local", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "本地上传" }) },
|
|
1885
1880
|
{ key: "remote", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "远程导入" }) }
|
|
1886
1881
|
];
|
|
1887
1882
|
function $c(e) {
|
|
1888
|
-
const t =
|
|
1883
|
+
const t = M(), n = M(""), i = Tc({
|
|
1889
1884
|
onOk({ url: s }) {
|
|
1890
1885
|
if (!t.current) {
|
|
1891
1886
|
E.warn("package新增失败");
|
|
@@ -1906,23 +1901,23 @@ function $c(e) {
|
|
|
1906
1901
|
}
|
|
1907
1902
|
async function d(s) {
|
|
1908
1903
|
var C;
|
|
1909
|
-
const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [],
|
|
1910
|
-
for (const
|
|
1911
|
-
if (!((C =
|
|
1904
|
+
const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [], v = [];
|
|
1905
|
+
for (const b in _) {
|
|
1906
|
+
if (!((C = b == null ? void 0 : b.endsWith) != null && C.call(b, ".js")))
|
|
1912
1907
|
continue;
|
|
1913
|
-
const f = await _[
|
|
1914
|
-
|
|
1908
|
+
const f = await _[b].async("text"), y = await Te(f);
|
|
1909
|
+
y && (y.origin = "local", m.push(y), v.push(f));
|
|
1915
1910
|
}
|
|
1916
1911
|
return {
|
|
1917
1912
|
pkgs: m,
|
|
1918
|
-
codes:
|
|
1913
|
+
codes: v
|
|
1919
1914
|
};
|
|
1920
1915
|
}
|
|
1921
1916
|
async function o(s) {
|
|
1922
1917
|
let r = "";
|
|
1923
1918
|
switch (s) {
|
|
1924
1919
|
case "local":
|
|
1925
|
-
const h = await
|
|
1920
|
+
const h = await nn({ accept: "text/javascript,application/zip" });
|
|
1926
1921
|
if (!h)
|
|
1927
1922
|
return;
|
|
1928
1923
|
if (["application/x-zip-compressed", "application/zip"].includes(h == null ? void 0 : h.type)) {
|
|
@@ -1931,8 +1926,8 @@ function $c(e) {
|
|
|
1931
1926
|
return;
|
|
1932
1927
|
}
|
|
1933
1928
|
if ((h == null ? void 0 : h.type) === "text/javascript") {
|
|
1934
|
-
r = await
|
|
1935
|
-
const u = await
|
|
1929
|
+
r = await ln(h);
|
|
1930
|
+
const u = await Te(r);
|
|
1936
1931
|
if (!u)
|
|
1937
1932
|
return E.warn("文本内容必须为UMD或者AMD格式");
|
|
1938
1933
|
u.origin = "local", c(u, r);
|
|
@@ -1943,7 +1938,7 @@ function $c(e) {
|
|
|
1943
1938
|
case "remote":
|
|
1944
1939
|
i.open({
|
|
1945
1940
|
async beforeOk(u) {
|
|
1946
|
-
return n.current = u, t.current = await
|
|
1941
|
+
return n.current = u, t.current = await Te(u), t.current || E.warn("文本内容必须为UMD或者AMD格式"), !!t.current;
|
|
1947
1942
|
}
|
|
1948
1943
|
});
|
|
1949
1944
|
break;
|
|
@@ -1954,7 +1949,7 @@ function $c(e) {
|
|
|
1954
1949
|
{
|
|
1955
1950
|
trigger: ["click"],
|
|
1956
1951
|
menu: {
|
|
1957
|
-
items:
|
|
1952
|
+
items: zc,
|
|
1958
1953
|
onClick({ key: s }) {
|
|
1959
1954
|
o(s);
|
|
1960
1955
|
}
|
|
@@ -1982,7 +1977,7 @@ function Fc(e) {
|
|
|
1982
1977
|
case "zip-demo":
|
|
1983
1978
|
const c = await it(Ot), a = await it(Pt), d = new ft();
|
|
1984
1979
|
d.file("测试包1.js", a), d.file("测试包2.js", c), d.generateAsync({ type: "blob" }).then(function(o) {
|
|
1985
|
-
|
|
1980
|
+
pt(o, "组件包集合.zip");
|
|
1986
1981
|
});
|
|
1987
1982
|
break;
|
|
1988
1983
|
case "all":
|
|
@@ -2004,13 +1999,13 @@ function Fc(e) {
|
|
|
2004
1999
|
}
|
|
2005
2000
|
) });
|
|
2006
2001
|
}
|
|
2007
|
-
const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68",
|
|
2002
|
+
const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68", Bt = {
|
|
2008
2003
|
property: Hc,
|
|
2009
2004
|
property_header: Kc
|
|
2010
2005
|
};
|
|
2011
2006
|
function Uc() {
|
|
2012
2007
|
var o;
|
|
2013
|
-
const e =
|
|
2008
|
+
const e = Xt(), { engine: t } = N(), { loading: n, run: i } = Qt(
|
|
2014
2009
|
async () => new Promise((s) => {
|
|
2015
2010
|
setTimeout(() => {
|
|
2016
2011
|
E.success("刷新成功"), s();
|
|
@@ -2036,19 +2031,19 @@ function Uc() {
|
|
|
2036
2031
|
let u = 0;
|
|
2037
2032
|
if (r.forEach((_, m) => {
|
|
2038
2033
|
if (!_) return;
|
|
2039
|
-
const
|
|
2040
|
-
h.file(`${
|
|
2034
|
+
const v = e[m];
|
|
2035
|
+
h.file(`${v.name}.js`, _), u++;
|
|
2041
2036
|
}), !u) {
|
|
2042
2037
|
E.warn("暂无组件包");
|
|
2043
2038
|
return;
|
|
2044
2039
|
}
|
|
2045
2040
|
h.generateAsync({ type: "blob" }).then(function(_) {
|
|
2046
|
-
|
|
2041
|
+
pt(_, "组件包集合.zip");
|
|
2047
2042
|
});
|
|
2048
2043
|
});
|
|
2049
2044
|
}
|
|
2050
|
-
return /* @__PURE__ */ g("div", { className:
|
|
2051
|
-
/* @__PURE__ */ g("div", { className:
|
|
2045
|
+
return /* @__PURE__ */ g("div", { className: Bt.property, children: [
|
|
2046
|
+
/* @__PURE__ */ g("div", { className: Bt.property_header, children: [
|
|
2052
2047
|
/* @__PURE__ */ g(D, { children: [
|
|
2053
2048
|
/* @__PURE__ */ l("b", { children: "资产列表" }),
|
|
2054
2049
|
/* @__PURE__ */ l(
|
|
@@ -2057,7 +2052,7 @@ function Uc() {
|
|
|
2057
2052
|
title: "刷新资产",
|
|
2058
2053
|
className: "icon_clickable",
|
|
2059
2054
|
onClick: () => !n && i(),
|
|
2060
|
-
children: n ? /* @__PURE__ */ l(
|
|
2055
|
+
children: n ? /* @__PURE__ */ l(Ht, {}) : /* @__PURE__ */ l(Z, {})
|
|
2061
2056
|
}
|
|
2062
2057
|
)
|
|
2063
2058
|
] }),
|
|
@@ -2107,8 +2102,8 @@ const qc = "_favorites_1mbr5_59", Jc = {
|
|
|
2107
2102
|
favoriteItem_footer: Xc
|
|
2108
2103
|
};
|
|
2109
2104
|
function Yc(e) {
|
|
2110
|
-
const { favorite: t } = e, n =
|
|
2111
|
-
return
|
|
2105
|
+
const { favorite: t } = e, n = M(null), i = M(null);
|
|
2106
|
+
return rn(n, {
|
|
2112
2107
|
type: "create-favorite",
|
|
2113
2108
|
data: {
|
|
2114
2109
|
favorite: t
|
|
@@ -2121,15 +2116,15 @@ function Yc(e) {
|
|
|
2121
2116
|
/* @__PURE__ */ l("div", { className: ke.favoriteItem_head, children: /* @__PURE__ */ l(dt, {}) }),
|
|
2122
2117
|
/* @__PURE__ */ l("div", { className: ke.favoriteItem_name, title: t.id, children: t.name }),
|
|
2123
2118
|
/* @__PURE__ */ g("div", { className: ke.favoriteItem_footer, ref: i, children: [
|
|
2124
|
-
/* @__PURE__ */ l(
|
|
2119
|
+
/* @__PURE__ */ l(z, { title: "编辑", children: /* @__PURE__ */ l(Kt, { onClick: () => {
|
|
2125
2120
|
var c;
|
|
2126
2121
|
return (c = e == null ? void 0 : e.onEdit) == null ? void 0 : c.call(e);
|
|
2127
2122
|
} }) }),
|
|
2128
|
-
/* @__PURE__ */ l(
|
|
2123
|
+
/* @__PURE__ */ l(z, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
|
|
2129
2124
|
var c;
|
|
2130
2125
|
return (c = e == null ? void 0 : e.onDelete) == null ? void 0 : c.call(e);
|
|
2131
2126
|
} }) }),
|
|
2132
|
-
/* @__PURE__ */ l(
|
|
2127
|
+
/* @__PURE__ */ l(z, { title: "详情", children: /* @__PURE__ */ l(Kn, { onClick: () => {
|
|
2133
2128
|
var c;
|
|
2134
2129
|
return (c = e == null ? void 0 : e.onDetail) == null ? void 0 : c.call(e);
|
|
2135
2130
|
} }) })
|
|
@@ -2138,7 +2133,7 @@ function Yc(e) {
|
|
|
2138
2133
|
}
|
|
2139
2134
|
const Zc = ue((e) => {
|
|
2140
2135
|
var c;
|
|
2141
|
-
const [t] =
|
|
2136
|
+
const [t] = B.useForm(), n = (c = e == null ? void 0 : e.params) == null ? void 0 : c.favorite;
|
|
2142
2137
|
function i() {
|
|
2143
2138
|
t.validateFields().then((a) => {
|
|
2144
2139
|
var d;
|
|
@@ -2162,8 +2157,8 @@ const Zc = ue((e) => {
|
|
|
2162
2157
|
afterClose: e == null ? void 0 : e.afterClose,
|
|
2163
2158
|
bodyStyle: { paddingBottom: 6 },
|
|
2164
2159
|
footer: null,
|
|
2165
|
-
children: /* @__PURE__ */ l(
|
|
2166
|
-
/* @__PURE__ */ l(
|
|
2160
|
+
children: /* @__PURE__ */ l(B, { form: t, children: /* @__PURE__ */ l(B.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请填写名称" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2161
|
+
/* @__PURE__ */ l(B.Item, { noStyle: !0, name: "name", children: /* @__PURE__ */ l(p, { size: "middle", style: { flex: 1 } }) }),
|
|
2167
2162
|
/* @__PURE__ */ l(K, { type: "primary", onClick: i, children: "保存" })
|
|
2168
2163
|
] }) }) })
|
|
2169
2164
|
}
|
|
@@ -2256,7 +2251,7 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
|
|
|
2256
2251
|
pages_head: la,
|
|
2257
2252
|
pages_body: ca
|
|
2258
2253
|
}, aa = ue((e) => {
|
|
2259
|
-
const { params: t } = e, [n] =
|
|
2254
|
+
const { params: t } = e, [n] = B.useForm();
|
|
2260
2255
|
function i(a) {
|
|
2261
2256
|
return {
|
|
2262
2257
|
name: a,
|
|
@@ -2286,65 +2281,65 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
|
|
|
2286
2281
|
bodyStyle: {
|
|
2287
2282
|
padding: "12px 24px 12px 12px"
|
|
2288
2283
|
},
|
|
2289
|
-
children: /* @__PURE__ */ g(
|
|
2290
|
-
(t == null ? void 0 : t.parentName) && /* @__PURE__ */ l(
|
|
2291
|
-
/* @__PURE__ */ l(
|
|
2284
|
+
children: /* @__PURE__ */ g(B, { form: n, labelCol: { span: 4 }, children: [
|
|
2285
|
+
(t == null ? void 0 : t.parentName) && /* @__PURE__ */ l(B.Item, { label: "父页面", children: t == null ? void 0 : t.parentName }),
|
|
2286
|
+
/* @__PURE__ */ l(B.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请输入名称" }], children: /* @__PURE__ */ l(p, {}) })
|
|
2292
2287
|
] })
|
|
2293
2288
|
}
|
|
2294
2289
|
);
|
|
2295
2290
|
});
|
|
2296
2291
|
function oa() {
|
|
2297
2292
|
const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [a, d, o] = oi([]), s = wi(), r = Ei(), h = aa({
|
|
2298
|
-
onOk({ page:
|
|
2299
|
-
if (e.page.insert(
|
|
2293
|
+
onOk({ page: b, parentId: I }) {
|
|
2294
|
+
if (e.page.insert(b, I), Re(b.id), I) {
|
|
2300
2295
|
const f = Array.from(new Set(t).add(I));
|
|
2301
2296
|
u(f);
|
|
2302
2297
|
}
|
|
2303
2298
|
}
|
|
2304
2299
|
});
|
|
2305
|
-
function u(
|
|
2306
|
-
n(
|
|
2300
|
+
function u(b) {
|
|
2301
|
+
n(b), e.config.setConfigSilently({ expandedPageIds: b });
|
|
2307
2302
|
}
|
|
2308
|
-
function _(
|
|
2303
|
+
function _(b) {
|
|
2309
2304
|
var I;
|
|
2310
|
-
return ((I =
|
|
2305
|
+
return ((I = b == null ? void 0 : b.reduce) == null ? void 0 : I.call(b, (f, y) => f.concat([y.key, ..._(y == null ? void 0 : y.children)]), [])) || [];
|
|
2311
2306
|
}
|
|
2312
|
-
function m(
|
|
2307
|
+
function m(b) {
|
|
2313
2308
|
h.open({
|
|
2314
|
-
parentId:
|
|
2315
|
-
parentName:
|
|
2309
|
+
parentId: b.id,
|
|
2310
|
+
parentName: b.name
|
|
2316
2311
|
});
|
|
2317
2312
|
}
|
|
2318
|
-
function
|
|
2319
|
-
var
|
|
2320
|
-
const f = [
|
|
2321
|
-
if (((
|
|
2313
|
+
function v(b, I = {}) {
|
|
2314
|
+
var y, x, L, j, R, q, V;
|
|
2315
|
+
const f = [b.id, ..._(I[b.id].children)];
|
|
2316
|
+
if (((y = o.current) == null ? void 0 : y.length) === 1 && (f != null && f.includes((L = (x = o.current) == null ? void 0 : x[0]) == null ? void 0 : L.key))) {
|
|
2322
2317
|
E.warn("至少保留一个顶层页");
|
|
2323
2318
|
return;
|
|
2324
2319
|
}
|
|
2325
2320
|
if (f.includes(e.config.getCurrentPage())) {
|
|
2326
|
-
let
|
|
2327
|
-
f.includes(
|
|
2321
|
+
let Me = (R = (j = o.current) == null ? void 0 : j[0]) == null ? void 0 : R.key;
|
|
2322
|
+
f.includes(Me) && (Me = (V = (q = o.current) == null ? void 0 : q[1]) == null ? void 0 : V.key), Re(Me);
|
|
2328
2323
|
}
|
|
2329
2324
|
e.page.delete(f);
|
|
2330
2325
|
}
|
|
2331
|
-
function C(
|
|
2326
|
+
function C(b, I = {}) {
|
|
2332
2327
|
const f = [];
|
|
2333
|
-
return
|
|
2328
|
+
return b.forEach((y) => {
|
|
2334
2329
|
var j, R, q;
|
|
2335
|
-
const x = I[
|
|
2336
|
-
key: (x == null ? void 0 : x.key) ||
|
|
2330
|
+
const x = I[y.id], L = I[y.id] = {
|
|
2331
|
+
key: (x == null ? void 0 : x.key) || y.id,
|
|
2337
2332
|
title: (x == null ? void 0 : x.title) || /* @__PURE__ */ g("span", { children: [
|
|
2338
|
-
/* @__PURE__ */ l("span", { children:
|
|
2333
|
+
/* @__PURE__ */ l("span", { children: y.name }),
|
|
2339
2334
|
/* @__PURE__ */ g("span", { style: { fontSize: 12 }, onClick: (V) => V.stopPropagation(), children: [
|
|
2340
|
-
/* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(
|
|
2341
|
-
/* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => y
|
|
2335
|
+
/* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(y), children: "新增" }),
|
|
2336
|
+
/* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => v(y, I), children: "删除" })
|
|
2342
2337
|
] })
|
|
2343
2338
|
] }),
|
|
2344
2339
|
children: (x == null ? void 0 : x.children) || []
|
|
2345
2340
|
};
|
|
2346
|
-
if (
|
|
2347
|
-
(q = (R = I[j =
|
|
2341
|
+
if (y != null && y.parentId) {
|
|
2342
|
+
(q = (R = I[j = y == null ? void 0 : y.parentId] || (I[j] = {
|
|
2348
2343
|
key: "",
|
|
2349
2344
|
title: "",
|
|
2350
2345
|
children: []
|
|
@@ -2382,13 +2377,13 @@ function oa() {
|
|
|
2382
2377
|
showIcon: !0,
|
|
2383
2378
|
multiple: !1,
|
|
2384
2379
|
defaultExpandAll: !0,
|
|
2385
|
-
icon: /* @__PURE__ */ l(
|
|
2380
|
+
icon: /* @__PURE__ */ l(Un, {}),
|
|
2386
2381
|
treeData: a,
|
|
2387
2382
|
selectedKeys: i,
|
|
2388
2383
|
expandedKeys: t,
|
|
2389
2384
|
onExpand: u,
|
|
2390
|
-
onSelect: (
|
|
2391
|
-
|
|
2385
|
+
onSelect: (b) => {
|
|
2386
|
+
b.length && Re(b == null ? void 0 : b[0]);
|
|
2392
2387
|
}
|
|
2393
2388
|
}
|
|
2394
2389
|
) })
|
|
@@ -2403,7 +2398,7 @@ const da = "_history_zo6ip_59", ra = "_history_head_zo6ip_71", sa = "_history_bo
|
|
|
2403
2398
|
};
|
|
2404
2399
|
function ga() {
|
|
2405
2400
|
var c, a, d, o;
|
|
2406
|
-
const { engine: e } = N(), t =
|
|
2401
|
+
const { engine: e } = N(), t = cn(), n = (c = t.current) == null ? void 0 : c.stepId;
|
|
2407
2402
|
function i(s) {
|
|
2408
2403
|
e.history.isPass(s) && n === s ? bt() : Qi(s);
|
|
2409
2404
|
}
|
|
@@ -2433,28 +2428,28 @@ function _a() {
|
|
|
2433
2428
|
{
|
|
2434
2429
|
key: "library",
|
|
2435
2430
|
domId: "rbs-library",
|
|
2436
|
-
icon: /* @__PURE__ */ l(
|
|
2431
|
+
icon: /* @__PURE__ */ l(qn, {}),
|
|
2437
2432
|
title: t("menu.bar.library"),
|
|
2438
2433
|
children: /* @__PURE__ */ l(ql, {})
|
|
2439
2434
|
},
|
|
2440
2435
|
{
|
|
2441
2436
|
key: "pages",
|
|
2442
2437
|
domId: "rbs-pages",
|
|
2443
|
-
icon: /* @__PURE__ */ l(
|
|
2438
|
+
icon: /* @__PURE__ */ l(Jn, {}),
|
|
2444
2439
|
title: t("menu.bar.pages"),
|
|
2445
2440
|
children: /* @__PURE__ */ l(oa, {})
|
|
2446
2441
|
},
|
|
2447
2442
|
{
|
|
2448
2443
|
key: "componentNodes",
|
|
2449
2444
|
domId: "rbs-componentNodes",
|
|
2450
|
-
icon: /* @__PURE__ */ l(
|
|
2445
|
+
icon: /* @__PURE__ */ l(Wn, {}),
|
|
2451
2446
|
title: t("menu.bar.componentNodes"),
|
|
2452
2447
|
children: /* @__PURE__ */ l(yc, {})
|
|
2453
2448
|
},
|
|
2454
2449
|
{
|
|
2455
2450
|
key: "property",
|
|
2456
2451
|
domId: "rbs-property",
|
|
2457
|
-
icon: /* @__PURE__ */ l(
|
|
2452
|
+
icon: /* @__PURE__ */ l(Vn, {}),
|
|
2458
2453
|
title: t("menu.bar.property"),
|
|
2459
2454
|
children: /* @__PURE__ */ l(Uc, {})
|
|
2460
2455
|
},
|
|
@@ -2468,7 +2463,7 @@ function _a() {
|
|
|
2468
2463
|
{
|
|
2469
2464
|
key: "history",
|
|
2470
2465
|
domId: "rbs-history",
|
|
2471
|
-
icon: /* @__PURE__ */ l(
|
|
2466
|
+
icon: /* @__PURE__ */ l(Gn, {}),
|
|
2472
2467
|
title: t("menu.bar.history"),
|
|
2473
2468
|
children: /* @__PURE__ */ l(ga, {})
|
|
2474
2469
|
}
|
|
@@ -2489,10 +2484,10 @@ function _a() {
|
|
|
2489
2484
|
/* @__PURE__ */ l("div", { className: He.menu_main, children: o })
|
|
2490
2485
|
] });
|
|
2491
2486
|
}
|
|
2492
|
-
const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65",
|
|
2487
|
+
const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Mt = {
|
|
2493
2488
|
editor: ma,
|
|
2494
2489
|
editor_render: fa
|
|
2495
|
-
}, ya = "_flexCenter_1kt3d_29", va = "_icon_clickable_1kt3d_49", ba = "_icon_selected_1kt3d_56", Ca = "_moveItem_box_1kt3d_59", xa = "_moveItem_box_lock_1kt3d_69", Ia = "_moveItem_box_selected_1kt3d_72", ka = "_moveItem_box_hover_1kt3d_79", Sa = "_dragPointCommon_1kt3d_83", Na = "_p_top_1kt3d_92", wa = "_p_left_1kt3d_95", Ea = "_p_right_1kt3d_98", Aa = "_p_bottom_1kt3d_101", La = "_p_horizontal_mid_1kt3d_104", Da = "_p_vertical_mid_1kt3d_107", Oa = "_dragPoint_top_1kt3d_110", Pa = "_dragPoint_top_left_1kt3d_123",
|
|
2490
|
+
}, ya = "_flexCenter_1kt3d_29", va = "_icon_clickable_1kt3d_49", ba = "_icon_selected_1kt3d_56", Ca = "_moveItem_box_1kt3d_59", xa = "_moveItem_box_lock_1kt3d_69", Ia = "_moveItem_box_selected_1kt3d_72", ka = "_moveItem_box_hover_1kt3d_79", Sa = "_dragPointCommon_1kt3d_83", Na = "_p_top_1kt3d_92", wa = "_p_left_1kt3d_95", Ea = "_p_right_1kt3d_98", Aa = "_p_bottom_1kt3d_101", La = "_p_horizontal_mid_1kt3d_104", Da = "_p_vertical_mid_1kt3d_107", Oa = "_dragPoint_top_1kt3d_110", Pa = "_dragPoint_top_left_1kt3d_123", Ba = "_dragPoint_top_right_1kt3d_136", Ma = "_dragPoint_bottom_1kt3d_149", ja = "_dragPoint_bottom_left_1kt3d_162", Ta = "_dragPoint_bottom_right_1kt3d_175", za = "_dragPoint_left_1kt3d_188", $a = "_dragPoint_right_1kt3d_201", ie = {
|
|
2496
2491
|
flexCenter: ya,
|
|
2497
2492
|
"theme-text": "_theme-text_1kt3d_34",
|
|
2498
2493
|
"theme-color": "_theme-color_1kt3d_38",
|
|
@@ -2513,11 +2508,11 @@ const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Bt = {
|
|
|
2513
2508
|
p_vertical_mid: Da,
|
|
2514
2509
|
dragPoint_top: Oa,
|
|
2515
2510
|
dragPoint_top_left: Pa,
|
|
2516
|
-
dragPoint_top_right:
|
|
2517
|
-
dragPoint_bottom:
|
|
2511
|
+
dragPoint_top_right: Ba,
|
|
2512
|
+
dragPoint_bottom: Ma,
|
|
2518
2513
|
dragPoint_bottom_left: ja,
|
|
2519
|
-
dragPoint_bottom_right:
|
|
2520
|
-
dragPoint_left:
|
|
2514
|
+
dragPoint_bottom_right: Ta,
|
|
2515
|
+
dragPoint_left: za,
|
|
2521
2516
|
dragPoint_right: $a
|
|
2522
2517
|
}, Ra = [
|
|
2523
2518
|
"top",
|
|
@@ -2617,9 +2612,9 @@ function Ka(e, t, n) {
|
|
|
2617
2612
|
}
|
|
2618
2613
|
};
|
|
2619
2614
|
}
|
|
2620
|
-
const Ua =
|
|
2621
|
-
const { componentNode: n } = e, i =
|
|
2622
|
-
return
|
|
2615
|
+
const Ua = bn((e, t) => {
|
|
2616
|
+
const { componentNode: n } = e, i = M(null), [c, a] = S(!1), d = Ee((o) => o.scale);
|
|
2617
|
+
return Cn(t, () => ({
|
|
2623
2618
|
// 经过实例
|
|
2624
2619
|
handleHover() {
|
|
2625
2620
|
var o, s, r;
|
|
@@ -2668,14 +2663,14 @@ function qa(e) {
|
|
|
2668
2663
|
() => t.component.get(e == null ? void 0 : e.componentNode.cId),
|
|
2669
2664
|
[(d = e == null ? void 0 : e.componentNode) == null ? void 0 : d.cId, e == null ? void 0 : e.packages]
|
|
2670
2665
|
);
|
|
2671
|
-
return
|
|
2666
|
+
return en(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload: o }) => {
|
|
2672
2667
|
i({ ...o });
|
|
2673
2668
|
})), _t(() => {
|
|
2674
2669
|
i(e == null ? void 0 : e.componentNode);
|
|
2675
2670
|
}, [e == null ? void 0 : e.componentNode]), a && c ? /* @__PURE__ */ l(Ja, { componentNode: n, component: a }) : /* @__PURE__ */ l(W, {});
|
|
2676
2671
|
}
|
|
2677
2672
|
function Ja(e) {
|
|
2678
|
-
const { component: t, componentNode: n } = e, i =
|
|
2673
|
+
const { component: t, componentNode: n } = e, i = tn(n), c = M(null), { dataSource: a, requestInstance: d } = gi(n), o = _i(n.id), s = mi(n.id), r = M(null), h = fi({
|
|
2679
2674
|
id: n.id,
|
|
2680
2675
|
// 经过实例
|
|
2681
2676
|
handleHover() {
|
|
@@ -2736,7 +2731,7 @@ function Ja(e) {
|
|
|
2736
2731
|
h.handleUnHover();
|
|
2737
2732
|
},
|
|
2738
2733
|
children: [
|
|
2739
|
-
/* @__PURE__ */ l(
|
|
2734
|
+
/* @__PURE__ */ l(zt, { children: /* @__PURE__ */ l(
|
|
2740
2735
|
t.component,
|
|
2741
2736
|
{
|
|
2742
2737
|
useExpose: s,
|
|
@@ -2762,7 +2757,7 @@ function Va(e, t) {
|
|
|
2762
2757
|
if (!c || e.lock && n && !i)
|
|
2763
2758
|
return;
|
|
2764
2759
|
t.stopPropagation();
|
|
2765
|
-
const a =
|
|
2760
|
+
const a = Yt(t);
|
|
2766
2761
|
if (n || a) {
|
|
2767
2762
|
if (c.instance.isSelected(e.id)) {
|
|
2768
2763
|
i && c.instance.unselect(e.id);
|
|
@@ -2787,7 +2782,7 @@ function Ga(e) {
|
|
|
2787
2782
|
onStart() {
|
|
2788
2783
|
return ae.set("move"), setTimeout(() => {
|
|
2789
2784
|
let { list: r, showCount: h } = Za();
|
|
2790
|
-
i = r, c = h < 300, o =
|
|
2785
|
+
i = r, c = h < 300, o = Vt(
|
|
2791
2786
|
(u, _) => {
|
|
2792
2787
|
Xa(i, c, u, _);
|
|
2793
2788
|
},
|
|
@@ -2855,7 +2850,7 @@ function Za() {
|
|
|
2855
2850
|
}
|
|
2856
2851
|
const Qa = "_rangeBox_12c3t_59", pa = {
|
|
2857
2852
|
rangeBox: Qa
|
|
2858
|
-
}, jt =
|
|
2853
|
+
}, jt = Vt((e, t) => {
|
|
2859
2854
|
const n = k.getActiveEngine();
|
|
2860
2855
|
if (!n) return;
|
|
2861
2856
|
const i = n.componentNode.getAll().reduce((c, a) => {
|
|
@@ -2987,7 +2982,7 @@ function io(e, t) {
|
|
|
2987
2982
|
}
|
|
2988
2983
|
}
|
|
2989
2984
|
function lo(e) {
|
|
2990
|
-
const t =
|
|
2985
|
+
const t = M([]), { engine: n } = N();
|
|
2991
2986
|
function i() {
|
|
2992
2987
|
var c, a;
|
|
2993
2988
|
t != null && t.current.length && ((a = (c = t == null ? void 0 : t.current) == null ? void 0 : c.forEach) == null || a.call(c, (d) => d == null ? void 0 : d()), t.current = []);
|
|
@@ -2998,10 +2993,10 @@ function lo(e) {
|
|
|
2998
2993
|
const a = e.current;
|
|
2999
2994
|
if (!a) throw new Error("dom must be exist.");
|
|
3000
2995
|
i();
|
|
3001
|
-
const d = Ae(c), o =
|
|
2996
|
+
const d = Ae(c), o = Yt(c), s = Pe("shift"), r = ct(c.target, oe.componentNodeId, !0), h = n.instance.get(r), u = (m = h == null ? void 0 : h.getComponentNode) == null ? void 0 : m.call(h), _ = o ? !0 : u != null && u.lock ? d && s : d;
|
|
3002
2997
|
if (h && u && _) {
|
|
3003
2998
|
if (Va(u, c), !(u != null && u.lock) && d) {
|
|
3004
|
-
const
|
|
2999
|
+
const v = ct(
|
|
3005
3000
|
c.target,
|
|
3006
3001
|
oe.dragDirection
|
|
3007
3002
|
);
|
|
@@ -3013,9 +3008,9 @@ function lo(e) {
|
|
|
3013
3008
|
scale: n.config.getConfig().scale,
|
|
3014
3009
|
hookQueue: [
|
|
3015
3010
|
// 监听拖拽大小
|
|
3016
|
-
|
|
3011
|
+
v && Ka(u, c.target, v),
|
|
3017
3012
|
// 监听拖拽移动
|
|
3018
|
-
!
|
|
3013
|
+
!v && Ga(h),
|
|
3019
3014
|
// 监听是否放置到 layout 组件
|
|
3020
3015
|
to(h, (C) => {
|
|
3021
3016
|
t.current.push(C);
|
|
@@ -3039,13 +3034,13 @@ function lo(e) {
|
|
|
3039
3034
|
})
|
|
3040
3035
|
);
|
|
3041
3036
|
}
|
|
3042
|
-
}),
|
|
3037
|
+
}), Zt(() => {
|
|
3043
3038
|
i();
|
|
3044
3039
|
});
|
|
3045
3040
|
}
|
|
3046
3041
|
function co(e) {
|
|
3047
3042
|
const { engine: t } = N();
|
|
3048
|
-
|
|
3043
|
+
sn(e, {
|
|
3049
3044
|
accept: ["create-component"],
|
|
3050
3045
|
onDrop: (n, i) => {
|
|
3051
3046
|
const c = e.current;
|
|
@@ -3068,24 +3063,24 @@ function co(e) {
|
|
|
3068
3063
|
}
|
|
3069
3064
|
function ao(e) {
|
|
3070
3065
|
const { engine: t } = N();
|
|
3071
|
-
|
|
3066
|
+
sn(e, {
|
|
3072
3067
|
accept: ["create-favorite"],
|
|
3073
3068
|
onDrop: (n, i) => {
|
|
3074
|
-
var
|
|
3069
|
+
var b, I;
|
|
3075
3070
|
const c = e.current;
|
|
3076
3071
|
if (!c)
|
|
3077
3072
|
throw new Error("dom must be exist.");
|
|
3078
|
-
const a = c.getBoundingClientRect(), d = (
|
|
3073
|
+
const a = c.getBoundingClientRect(), d = (b = i.data) == null ? void 0 : b.favorite;
|
|
3079
3074
|
(I = d.children) != null && I.length || E.warn("收藏元素为空");
|
|
3080
3075
|
const o = Math.round(n.x - a.x), s = Math.round(n.y - a.y), r = d.children[0], { x: h, y: u } = d.children.reduce(
|
|
3081
|
-
(f,
|
|
3076
|
+
(f, y) => (f.x = Math.min(f.x, y.x), f.y = Math.min(f.y, y.y), f),
|
|
3082
3077
|
{
|
|
3083
3078
|
x: r.x,
|
|
3084
3079
|
y: r.y
|
|
3085
3080
|
}
|
|
3086
|
-
), _ = t.config.getCurrentPage(), m = [],
|
|
3087
|
-
onClone(f,
|
|
3088
|
-
|
|
3081
|
+
), _ = t.config.getCurrentPage(), m = [], v = t.config.getConfig().scale, C = t.componentNode.cloneComponentNodes(d.children, {
|
|
3082
|
+
onClone(f, y) {
|
|
3083
|
+
y.x = Math.round((o + (y.x - h)) / v), y.y = Math.round((s + (y.y - u)) / v), y.pageId = _, m.push(y.id);
|
|
3089
3084
|
}
|
|
3090
3085
|
});
|
|
3091
3086
|
t.componentNode.add(C), setTimeout(() => {
|
|
@@ -3095,7 +3090,7 @@ function ao(e) {
|
|
|
3095
3090
|
});
|
|
3096
3091
|
}
|
|
3097
3092
|
const oo = () => {
|
|
3098
|
-
const { engine: e } = N(), t =
|
|
3093
|
+
const { engine: e } = N(), t = M(null), n = M(null), i = Xt(), c = Gt(), a = A(() => {
|
|
3099
3094
|
if (i.length)
|
|
3100
3095
|
return c == null ? void 0 : c.map((d) => /* @__PURE__ */ l(
|
|
3101
3096
|
qa,
|
|
@@ -3106,15 +3101,15 @@ const oo = () => {
|
|
|
3106
3101
|
d.id
|
|
3107
3102
|
));
|
|
3108
3103
|
}, [c, i]);
|
|
3109
|
-
return lo(n),
|
|
3104
|
+
return lo(n), gn(t), co(n), ao(n), w(() => e.componentNode.onDelete((d) => {
|
|
3110
3105
|
e.page.removeGlobalComponentNode(d);
|
|
3111
3106
|
}), []), /* @__PURE__ */ l(
|
|
3112
3107
|
"div",
|
|
3113
3108
|
{
|
|
3114
3109
|
ref: t,
|
|
3115
|
-
className:
|
|
3110
|
+
className: Mt.editor,
|
|
3116
3111
|
onMouseDown: () => De(),
|
|
3117
|
-
children: /* @__PURE__ */ l(yi, { ref: n, className:
|
|
3112
|
+
children: /* @__PURE__ */ l(yi, { ref: n, className: Mt.editor_render, children: a })
|
|
3118
3113
|
}
|
|
3119
3114
|
);
|
|
3120
3115
|
}, ro = "_attributes_esabd_59", so = {
|
|
@@ -3157,7 +3152,7 @@ function vo(e) {
|
|
|
3157
3152
|
}
|
|
3158
3153
|
) : /* @__PURE__ */ l("b", { className: Xe.editText_text, title: `${(e == null ? void 0 : e.value) || ""}`, children: e == null ? void 0 : e.value }),
|
|
3159
3154
|
t ? /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: d }) : /* @__PURE__ */ l(
|
|
3160
|
-
|
|
3155
|
+
Kt,
|
|
3161
3156
|
{
|
|
3162
3157
|
className: $(Xe.opacity0, "icon_clickable"),
|
|
3163
3158
|
onClick: a
|
|
@@ -3166,7 +3161,7 @@ function vo(e) {
|
|
|
3166
3161
|
] });
|
|
3167
3162
|
}
|
|
3168
3163
|
function bo() {
|
|
3169
|
-
const { engine: e } = N(), { componentNode: t } = he(), [n] =
|
|
3164
|
+
const { engine: e } = N(), { componentNode: t } = he(), [n] = B.useForm(), i = A(() => e.component.get(t == null ? void 0 : t.cId), [t == null ? void 0 : t.cId]), c = i == null ? void 0 : i.attributesComponent;
|
|
3170
3165
|
function a(d) {
|
|
3171
3166
|
d || e.page.removeGlobalComponentNode(t == null ? void 0 : t.id);
|
|
3172
3167
|
}
|
|
@@ -3176,7 +3171,7 @@ function bo() {
|
|
|
3176
3171
|
isAllPage: !!(t != null && t.isAllPage)
|
|
3177
3172
|
});
|
|
3178
3173
|
}, [t]), /* @__PURE__ */ g(
|
|
3179
|
-
|
|
3174
|
+
B,
|
|
3180
3175
|
{
|
|
3181
3176
|
form: n,
|
|
3182
3177
|
className: Y.singleInstanceAttributesBase,
|
|
@@ -3215,20 +3210,20 @@ function bo() {
|
|
|
3215
3210
|
/* @__PURE__ */ g("div", { children: [
|
|
3216
3211
|
/* @__PURE__ */ g(nt, { gutter: [8, 8], style: { fontSize: 12 }, children: [
|
|
3217
3212
|
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "X轴" }),
|
|
3218
|
-
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(
|
|
3213
|
+
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(B.Item, { name: "x", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3219
3214
|
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "Y轴" }),
|
|
3220
|
-
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(
|
|
3215
|
+
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(B.Item, { name: "y", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3221
3216
|
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "宽度" }),
|
|
3222
|
-
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(
|
|
3217
|
+
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(B.Item, { name: "width", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3223
3218
|
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "高度" }),
|
|
3224
|
-
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(
|
|
3219
|
+
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(B.Item, { name: "height", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) })
|
|
3225
3220
|
] }),
|
|
3226
3221
|
/* @__PURE__ */ g(Le, { labelSpan: 4, children: [
|
|
3227
|
-
/* @__PURE__ */ l(
|
|
3228
|
-
/* @__PURE__ */ l(
|
|
3222
|
+
/* @__PURE__ */ l(T, { label: "层级", style: { marginTop: 8 }, labelSpan: 3, children: /* @__PURE__ */ l(B.Item, { name: "level", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3223
|
+
/* @__PURE__ */ l(T, { label: "全页面", style: { marginTop: 8 }, labelTip: "每个页面都会显示", children: /* @__PURE__ */ l(B.Item, { noStyle: !0, name: "isAllPage", valuePropName: "checked", children: /* @__PURE__ */ l(we, {}) }) })
|
|
3229
3224
|
] })
|
|
3230
3225
|
] }),
|
|
3231
|
-
t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(
|
|
3226
|
+
t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(zt, { children: /* @__PURE__ */ l(
|
|
3232
3227
|
c,
|
|
3233
3228
|
{
|
|
3234
3229
|
componentNode: t,
|
|
@@ -3264,7 +3259,7 @@ function So(e) {
|
|
|
3264
3259
|
data: a,
|
|
3265
3260
|
loading: d,
|
|
3266
3261
|
refresh: o
|
|
3267
|
-
} =
|
|
3262
|
+
} = Qt(
|
|
3268
3263
|
async () => {
|
|
3269
3264
|
var r, h;
|
|
3270
3265
|
return (h = (r = i == null ? void 0 : i.request) == null ? void 0 : r.call(i, void 0, !0)) == null ? void 0 : h.then((u) => typeof u == "object" && u ? JSON.stringify(u, null, " ") : `${u ?? null}`);
|
|
@@ -3283,7 +3278,7 @@ function So(e) {
|
|
|
3283
3278
|
}));
|
|
3284
3279
|
}
|
|
3285
3280
|
return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className: ko.requestDataSource, children: [
|
|
3286
|
-
/* @__PURE__ */ l(
|
|
3281
|
+
/* @__PURE__ */ l(T, { label: "请求类型", children: /* @__PURE__ */ l(
|
|
3287
3282
|
Ce,
|
|
3288
3283
|
{
|
|
3289
3284
|
allowClear: !1,
|
|
@@ -3300,7 +3295,7 @@ function So(e) {
|
|
|
3300
3295
|
}
|
|
3301
3296
|
}
|
|
3302
3297
|
) }),
|
|
3303
|
-
/* @__PURE__ */ l(
|
|
3298
|
+
/* @__PURE__ */ l(T, { label: "请求地址", children: /* @__PURE__ */ l(
|
|
3304
3299
|
p,
|
|
3305
3300
|
{
|
|
3306
3301
|
value: c == null ? void 0 : c.url,
|
|
@@ -3310,7 +3305,7 @@ function So(e) {
|
|
|
3310
3305
|
}
|
|
3311
3306
|
) }),
|
|
3312
3307
|
/* @__PURE__ */ l("b", { style: { marginTop: 12 }, children: "请求配置" }),
|
|
3313
|
-
/* @__PURE__ */ l(
|
|
3308
|
+
/* @__PURE__ */ l(T, { label: "轮循请求", children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
3314
3309
|
/* @__PURE__ */ l(
|
|
3315
3310
|
we,
|
|
3316
3311
|
{
|
|
@@ -3334,7 +3329,7 @@ function So(e) {
|
|
|
3334
3329
|
/* @__PURE__ */ l("span", { children: "毫秒" })
|
|
3335
3330
|
] })
|
|
3336
3331
|
] }) }),
|
|
3337
|
-
/* @__PURE__ */ l(
|
|
3332
|
+
/* @__PURE__ */ l(T, { label: "初次请求", children: /* @__PURE__ */ l(
|
|
3338
3333
|
we,
|
|
3339
3334
|
{
|
|
3340
3335
|
checked: (c == null ? void 0 : c.first) ?? !1,
|
|
@@ -3345,7 +3340,7 @@ function So(e) {
|
|
|
3345
3340
|
) }),
|
|
3346
3341
|
/* @__PURE__ */ g("div", { style: { marginTop: 12, display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3347
3342
|
/* @__PURE__ */ l("b", { children: "数据结果" }),
|
|
3348
|
-
/* @__PURE__ */ l(
|
|
3343
|
+
/* @__PURE__ */ l(z, { title: "请求数据", children: /* @__PURE__ */ l(
|
|
3349
3344
|
Z,
|
|
3350
3345
|
{
|
|
3351
3346
|
className: "icon_clickable",
|
|
@@ -3389,7 +3384,7 @@ function Eo(e) {
|
|
|
3389
3384
|
n != null && n.staticDataSource ? JSON.stringify((n == null ? void 0 : n.staticDataSource) || {}, null, " ") : ""
|
|
3390
3385
|
);
|
|
3391
3386
|
}, [n]), /* @__PURE__ */ g("div", { className: wo.staticDataSource, style: e == null ? void 0 : e.style, children: [
|
|
3392
|
-
/* @__PURE__ */ l(
|
|
3387
|
+
/* @__PURE__ */ l(T, { label: "配置数据", children: /* @__PURE__ */ l(z, { title: "保存", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: a }) }) }),
|
|
3393
3388
|
/* @__PURE__ */ l(
|
|
3394
3389
|
X,
|
|
3395
3390
|
{
|
|
@@ -3412,7 +3407,7 @@ const Ao = [
|
|
|
3412
3407
|
function Lo() {
|
|
3413
3408
|
const { engine: e } = N(), { componentNode: t } = he(), n = (t == null ? void 0 : t.dataSourceType) ?? "static";
|
|
3414
3409
|
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: xo.dataSource, children: [
|
|
3415
|
-
/* @__PURE__ */ l(
|
|
3410
|
+
/* @__PURE__ */ l(T, { label: "数据源", children: /* @__PURE__ */ l(
|
|
3416
3411
|
Ce,
|
|
3417
3412
|
{
|
|
3418
3413
|
value: n,
|
|
@@ -3466,25 +3461,25 @@ function Po(e) {
|
|
|
3466
3461
|
}
|
|
3467
3462
|
);
|
|
3468
3463
|
}
|
|
3469
|
-
const
|
|
3470
|
-
eventList:
|
|
3471
|
-
eventList_head:
|
|
3464
|
+
const Bo = "_eventList_19gi2_59", Mo = "_eventList_head_19gi2_62", jo = "_eventList_body_19gi2_68", To = "_eventList_item_19gi2_74", zo = "_eventList_item_body_19gi2_84", $o = "_eventList_item_opt_19gi2_90", Ro = "_eventList_item_opt_clickable_19gi2_95", G = {
|
|
3465
|
+
eventList: Bo,
|
|
3466
|
+
eventList_head: Mo,
|
|
3472
3467
|
eventList_body: jo,
|
|
3473
|
-
eventList_item:
|
|
3474
|
-
eventList_item_body:
|
|
3468
|
+
eventList_item: To,
|
|
3469
|
+
eventList_item_body: zo,
|
|
3475
3470
|
eventList_item_opt: $o,
|
|
3476
3471
|
eventList_item_opt_clickable: Ro
|
|
3477
3472
|
}, Fo = "_editEventDialog_11y5n_59", Ho = "_editEventDialog_menu_11y5n_63", Ko = "_editEventDialog_body_11y5n_78", Ye = {
|
|
3478
3473
|
editEventDialog: Fo,
|
|
3479
3474
|
editEventDialog_menu: Ho,
|
|
3480
3475
|
editEventDialog_body: Ko
|
|
3481
|
-
}, Uo = "_eventOptions_main_16n1f_59",
|
|
3476
|
+
}, Uo = "_eventOptions_main_16n1f_59", Be = {
|
|
3482
3477
|
eventOptions_main: Uo
|
|
3483
3478
|
};
|
|
3484
3479
|
function qo(e) {
|
|
3485
3480
|
var t;
|
|
3486
|
-
return /* @__PURE__ */ l("div", { className:
|
|
3487
|
-
|
|
3481
|
+
return /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ l(T, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
|
|
3482
|
+
Ut,
|
|
3488
3483
|
{
|
|
3489
3484
|
size: "small",
|
|
3490
3485
|
checked: (t = e == null ? void 0 : e.value) == null ? void 0 : t.visible,
|
|
@@ -3499,7 +3494,7 @@ function qo(e) {
|
|
|
3499
3494
|
) }) });
|
|
3500
3495
|
}
|
|
3501
3496
|
const Jo = ue((e) => {
|
|
3502
|
-
const [t, n] =
|
|
3497
|
+
const [t, n] = Tt.useState();
|
|
3503
3498
|
return w(() => {
|
|
3504
3499
|
var i;
|
|
3505
3500
|
e != null && e.visible && n((i = e == null ? void 0 : e.params) == null ? void 0 : i.text);
|
|
@@ -3544,7 +3539,7 @@ const Jo = ue((e) => {
|
|
|
3544
3539
|
{
|
|
3545
3540
|
language: "javascript",
|
|
3546
3541
|
style: { height: 450 },
|
|
3547
|
-
value: t ??
|
|
3542
|
+
value: t ?? Bi,
|
|
3548
3543
|
onChange: n
|
|
3549
3544
|
}
|
|
3550
3545
|
)
|
|
@@ -3552,13 +3547,13 @@ const Jo = ue((e) => {
|
|
|
3552
3547
|
}
|
|
3553
3548
|
);
|
|
3554
3549
|
});
|
|
3555
|
-
function
|
|
3550
|
+
function _n(e) {
|
|
3556
3551
|
const t = Jo({
|
|
3557
3552
|
onOk(i) {
|
|
3558
3553
|
var c;
|
|
3559
3554
|
(c = e == null ? void 0 : e.onChange) == null || c.call(e, i);
|
|
3560
3555
|
}
|
|
3561
|
-
}), n = A(() => e != null && e.tooltip ? /* @__PURE__ */ l(
|
|
3556
|
+
}), n = A(() => e != null && e.tooltip ? /* @__PURE__ */ l(z, { title: e == null ? void 0 : e.tooltip, children: /* @__PURE__ */ l("span", { children: "{}" }) }) : /* @__PURE__ */ l("span", { children: "{}" }), [e == null ? void 0 : e.tooltip]);
|
|
3562
3557
|
return /* @__PURE__ */ l(W, { children: /* @__PURE__ */ l(
|
|
3563
3558
|
"span",
|
|
3564
3559
|
{
|
|
@@ -3602,9 +3597,9 @@ function Vo(e) {
|
|
|
3602
3597
|
}, [(s = e == null ? void 0 : e.value) == null ? void 0 : s.params]), w(() => {
|
|
3603
3598
|
var h;
|
|
3604
3599
|
i((h = e == null ? void 0 : e.value) == null ? void 0 : h.parserFunc);
|
|
3605
|
-
}, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className:
|
|
3600
|
+
}, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className: Be.eventOptions_main, children: [
|
|
3606
3601
|
/* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3607
|
-
/* @__PURE__ */ l(
|
|
3602
|
+
/* @__PURE__ */ l(T, { label: "参数类型", labelSpan: 3 }),
|
|
3608
3603
|
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3609
3604
|
/* @__PURE__ */ l(
|
|
3610
3605
|
Ce,
|
|
@@ -3627,7 +3622,7 @@ function Vo(e) {
|
|
|
3627
3622
|
}
|
|
3628
3623
|
),
|
|
3629
3624
|
/* @__PURE__ */ l(
|
|
3630
|
-
|
|
3625
|
+
_n,
|
|
3631
3626
|
{
|
|
3632
3627
|
tooltip: "解析函数",
|
|
3633
3628
|
value: n,
|
|
@@ -3643,7 +3638,7 @@ function Vo(e) {
|
|
|
3643
3638
|
] })
|
|
3644
3639
|
] }),
|
|
3645
3640
|
t === "json" && /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3646
|
-
/* @__PURE__ */ l(
|
|
3641
|
+
/* @__PURE__ */ l(T, { label: "json对象", labelSpan: 3, labelTip: Wo, children: /* @__PURE__ */ l(z, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: d, className: "icon_clickable" }) }) }),
|
|
3647
3642
|
/* @__PURE__ */ l(
|
|
3648
3643
|
X,
|
|
3649
3644
|
{
|
|
@@ -3674,8 +3669,8 @@ function Go(e) {
|
|
|
3674
3669
|
return w(() => {
|
|
3675
3670
|
var d;
|
|
3676
3671
|
n((d = e == null ? void 0 : e.value) == null ? void 0 : d.function);
|
|
3677
|
-
}, [(a = e == null ? void 0 : e.value) == null ? void 0 : a.function]), /* @__PURE__ */ l("div", { className:
|
|
3678
|
-
/* @__PURE__ */ l(
|
|
3672
|
+
}, [(a = e == null ? void 0 : e.value) == null ? void 0 : a.function]), /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 4, children: [
|
|
3673
|
+
/* @__PURE__ */ l(T, { label: "函数内容", labelSpan: 3, children: /* @__PURE__ */ l(
|
|
3679
3674
|
"div",
|
|
3680
3675
|
{
|
|
3681
3676
|
style: {
|
|
@@ -3684,13 +3679,13 @@ function Go(e) {
|
|
|
3684
3679
|
alignItems: "center",
|
|
3685
3680
|
justifyContent: "space-between"
|
|
3686
3681
|
},
|
|
3687
|
-
children: /* @__PURE__ */ l(
|
|
3682
|
+
children: /* @__PURE__ */ l(z, { title: "重置", children: /* @__PURE__ */ l(Xn, { onClick: c, className: "icon_clickable" }) })
|
|
3688
3683
|
}
|
|
3689
3684
|
) }),
|
|
3690
3685
|
/* @__PURE__ */ l(
|
|
3691
3686
|
X,
|
|
3692
3687
|
{
|
|
3693
|
-
value: t ??
|
|
3688
|
+
value: t ?? Mi,
|
|
3694
3689
|
language: "javascript",
|
|
3695
3690
|
style: { height: 440 },
|
|
3696
3691
|
onChange: (d) => {
|
|
@@ -3707,7 +3702,7 @@ const Xo = {
|
|
|
3707
3702
|
json: {}
|
|
3708
3703
|
};
|
|
3709
3704
|
function Yo(e) {
|
|
3710
|
-
var r, h, u, _, m,
|
|
3705
|
+
var r, h, u, _, m, v, C, b, I, f, y;
|
|
3711
3706
|
const { onChange: t } = e, n = ((r = e == null ? void 0 : e.value) == null ? void 0 : r.type) || "default", i = ((h = e == null ? void 0 : e.value) == null ? void 0 : h.type) === "json", [c, a] = S(), [d, o] = S();
|
|
3712
3707
|
function s() {
|
|
3713
3708
|
var x;
|
|
@@ -3729,9 +3724,9 @@ function Yo(e) {
|
|
|
3729
3724
|
}, [(u = e == null ? void 0 : e.value) == null ? void 0 : u.parserFunc]), w(() => {
|
|
3730
3725
|
var x, L;
|
|
3731
3726
|
((x = e == null ? void 0 : e.value) == null ? void 0 : x.type) === "json" && o(JSON.stringify(((L = e == null ? void 0 : e.value) == null ? void 0 : L.value) || {}, null, " "));
|
|
3732
|
-
}, [(_ = e == null ? void 0 : e.value) == null ? void 0 : _.type, (m = e == null ? void 0 : e.value) == null ? void 0 : m.value]), /* @__PURE__ */ g("div", { className:
|
|
3727
|
+
}, [(_ = e == null ? void 0 : e.value) == null ? void 0 : _.type, (m = e == null ? void 0 : e.value) == null ? void 0 : m.value]), /* @__PURE__ */ g("div", { className: Be.eventOptions_main, children: [
|
|
3733
3728
|
/* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
|
|
3734
|
-
/* @__PURE__ */ l(
|
|
3729
|
+
/* @__PURE__ */ l(T, { label: "参数类型", labelSpan: 3, labelTip: "json数据格式为数组或对象" }),
|
|
3735
3730
|
/* @__PURE__ */ g(D, { children: [
|
|
3736
3731
|
/* @__PURE__ */ l(
|
|
3737
3732
|
Ce,
|
|
@@ -3753,7 +3748,7 @@ function Yo(e) {
|
|
|
3753
3748
|
}
|
|
3754
3749
|
),
|
|
3755
3750
|
/* @__PURE__ */ l(
|
|
3756
|
-
|
|
3751
|
+
_n,
|
|
3757
3752
|
{
|
|
3758
3753
|
tooltip: "解析函数",
|
|
3759
3754
|
value: c,
|
|
@@ -3768,10 +3763,10 @@ function Yo(e) {
|
|
|
3768
3763
|
)
|
|
3769
3764
|
] })
|
|
3770
3765
|
] }),
|
|
3771
|
-
((
|
|
3772
|
-
/* @__PURE__ */ l(
|
|
3766
|
+
((v = e == null ? void 0 : e.value) == null ? void 0 : v.type) && ((C = e == null ? void 0 : e.value) == null ? void 0 : C.type) !== "default" && /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
|
|
3767
|
+
/* @__PURE__ */ l(T, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l(z, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: s, className: "icon_clickable" }) }) }),
|
|
3773
3768
|
/* @__PURE__ */ g(W, { children: [
|
|
3774
|
-
((
|
|
3769
|
+
((b = e == null ? void 0 : e.value) == null ? void 0 : b.type) === "number" && /* @__PURE__ */ l(
|
|
3775
3770
|
mt,
|
|
3776
3771
|
{
|
|
3777
3772
|
min: void 0,
|
|
@@ -3789,7 +3784,7 @@ function Yo(e) {
|
|
|
3789
3784
|
xi,
|
|
3790
3785
|
{
|
|
3791
3786
|
style: { width: Ne * 2 },
|
|
3792
|
-
value: (
|
|
3787
|
+
value: (y = e == null ? void 0 : e.value) == null ? void 0 : y.value,
|
|
3793
3788
|
autoSize: { minRows: 3, maxRows: 3 },
|
|
3794
3789
|
onChange: (x) => {
|
|
3795
3790
|
t({
|
|
@@ -3825,7 +3820,7 @@ function Zo(e) {
|
|
|
3825
3820
|
option: s
|
|
3826
3821
|
}));
|
|
3827
3822
|
}
|
|
3828
|
-
return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) ===
|
|
3823
|
+
return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) === ze.visible ? /* @__PURE__ */ l(qo, { value: t, onChange: n }) : ((d = e == null ? void 0 : e.value) == null ? void 0 : d.exposeId) === ze.request ? /* @__PURE__ */ l(Vo, { value: t, onChange: n }) : ((o = e == null ? void 0 : e.value) == null ? void 0 : o.exposeId) === ze.custom ? /* @__PURE__ */ l(Go, { value: t, onChange: n }) : /* @__PURE__ */ l(Yo, { value: t, onChange: n }) : /* @__PURE__ */ l(U, { description: "请选中目标操作" });
|
|
3829
3824
|
}
|
|
3830
3825
|
const Qo = "_targetList_17cmb_59", po = "_targetList_body_17cmb_66", ed = "_targetList_item_17cmb_74", td = "_targetList_item_clickable_17cmb_82", nd = "_targetList_item_selected_17cmb_89", me = {
|
|
3831
3826
|
targetList: Qo,
|
|
@@ -3861,13 +3856,13 @@ function dd(e) {
|
|
|
3861
3856
|
/* @__PURE__ */ g("div", { children: [
|
|
3862
3857
|
/* @__PURE__ */ l("b", { children: "show" }),
|
|
3863
3858
|
":",
|
|
3864
|
-
/* @__PURE__ */ l(
|
|
3859
|
+
/* @__PURE__ */ l(Ut, { disabled: !0, size: "small", checked: (t == null ? void 0 : t.show) ?? !0 })
|
|
3865
3860
|
] })
|
|
3866
3861
|
] });
|
|
3867
3862
|
}
|
|
3868
3863
|
function rd(e) {
|
|
3869
3864
|
var _;
|
|
3870
|
-
const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s =
|
|
3865
|
+
const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = M();
|
|
3871
3866
|
w(() => {
|
|
3872
3867
|
if (n) {
|
|
3873
3868
|
s.current && (clearTimeout(s.current), s.current = null);
|
|
@@ -3876,11 +3871,11 @@ function rd(e) {
|
|
|
3876
3871
|
}
|
|
3877
3872
|
}, [n]);
|
|
3878
3873
|
const r = A(() => {
|
|
3879
|
-
var
|
|
3880
|
-
const m = (
|
|
3874
|
+
var v;
|
|
3875
|
+
const m = (v = d == null ? void 0 : d.toLowerCase) == null ? void 0 : v.call(d);
|
|
3881
3876
|
return c.filter((C) => {
|
|
3882
|
-
var
|
|
3883
|
-
return (
|
|
3877
|
+
var b, I, f, y;
|
|
3878
|
+
return (y = (f = (I = (b = C == null ? void 0 : C.name) == null ? void 0 : b.toLowerCase) == null ? void 0 : I.call(b)) == null ? void 0 : f.includes) == null ? void 0 : y.call(f, m);
|
|
3884
3879
|
});
|
|
3885
3880
|
}, [d, c]);
|
|
3886
3881
|
function h() {
|
|
@@ -3889,8 +3884,8 @@ function rd(e) {
|
|
|
3889
3884
|
}, 300);
|
|
3890
3885
|
}
|
|
3891
3886
|
function u(m) {
|
|
3892
|
-
var
|
|
3893
|
-
(
|
|
3887
|
+
var v;
|
|
3888
|
+
(v = e == null ? void 0 : e.onSelect) == null || v.call(e, m), h();
|
|
3894
3889
|
}
|
|
3895
3890
|
return /* @__PURE__ */ l(
|
|
3896
3891
|
be,
|
|
@@ -3905,7 +3900,7 @@ function rd(e) {
|
|
|
3905
3900
|
/* @__PURE__ */ g("div", { className: fe.addComponentNodeButton_body, children: [
|
|
3906
3901
|
!(r != null && r.length) && /* @__PURE__ */ l(U, {}),
|
|
3907
3902
|
(_ = r == null ? void 0 : r.map) == null ? void 0 : _.call(r, (m) => {
|
|
3908
|
-
const
|
|
3903
|
+
const v = t.component.get(m == null ? void 0 : m.cId);
|
|
3909
3904
|
return /* @__PURE__ */ l(
|
|
3910
3905
|
st,
|
|
3911
3906
|
{
|
|
@@ -3921,7 +3916,7 @@ function rd(e) {
|
|
|
3921
3916
|
/* @__PURE__ */ l(
|
|
3922
3917
|
xe,
|
|
3923
3918
|
{
|
|
3924
|
-
src:
|
|
3919
|
+
src: v == null ? void 0 : v.icon,
|
|
3925
3920
|
style: { maxHeight: 20, maxWidth: 20 }
|
|
3926
3921
|
}
|
|
3927
3922
|
),
|
|
@@ -3980,12 +3975,12 @@ function sd(e) {
|
|
|
3980
3975
|
(r = e == null ? void 0 : e.onChangeTargets) == null || r.call(e, s, "add");
|
|
3981
3976
|
}
|
|
3982
3977
|
function a(o) {
|
|
3983
|
-
var _, m,
|
|
3978
|
+
var _, m, v;
|
|
3984
3979
|
let s;
|
|
3985
|
-
const r = ((m = (_ = e == null ? void 0 : e.targets) == null ? void 0 : _.filter) == null ? void 0 : m.call(_, (C) => C.id === o ? (s = C, !1) : !0)) || [], h = ((
|
|
3980
|
+
const r = ((m = (_ = e == null ? void 0 : e.targets) == null ? void 0 : _.filter) == null ? void 0 : m.call(_, (C) => C.id === o ? (s = C, !1) : !0)) || [], h = ((v = s == null ? void 0 : s.opts) == null ? void 0 : v.length) || 0;
|
|
3986
3981
|
function u() {
|
|
3987
|
-
var C,
|
|
3988
|
-
(C = e == null ? void 0 : e.onChangeTargets) == null || C.call(e, r, "delete"), o === (e == null ? void 0 : e.value) && ((I = e == null ? void 0 : e.onChange) == null || I.call(e, (
|
|
3982
|
+
var C, b, I;
|
|
3983
|
+
(C = e == null ? void 0 : e.onChangeTargets) == null || C.call(e, r, "delete"), o === (e == null ? void 0 : e.value) && ((I = e == null ? void 0 : e.onChange) == null || I.call(e, (b = r == null ? void 0 : r[0]) == null ? void 0 : b.id));
|
|
3989
3984
|
}
|
|
3990
3985
|
if (h) {
|
|
3991
3986
|
t({
|
|
@@ -4058,12 +4053,12 @@ const ud = "_targetList_17cmb_59", hd = "_targetList_body_17cmb_66", gd = "_targ
|
|
|
4058
4053
|
};
|
|
4059
4054
|
function Cd(e) {
|
|
4060
4055
|
var u;
|
|
4061
|
-
const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s =
|
|
4056
|
+
const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = M(), r = A(() => {
|
|
4062
4057
|
var m;
|
|
4063
4058
|
const _ = (m = d == null ? void 0 : d.toLowerCase) == null ? void 0 : m.call(d);
|
|
4064
|
-
return c.filter((
|
|
4065
|
-
var C,
|
|
4066
|
-
return (f = (I = (
|
|
4059
|
+
return c.filter((v) => {
|
|
4060
|
+
var C, b, I, f;
|
|
4061
|
+
return (f = (I = (b = (C = v == null ? void 0 : v.label) == null ? void 0 : C.toLowerCase) == null ? void 0 : b.call(C)) == null ? void 0 : I.includes) == null ? void 0 : f.call(I, _);
|
|
4067
4062
|
});
|
|
4068
4063
|
}, [d, c]);
|
|
4069
4064
|
function h() {
|
|
@@ -4075,9 +4070,9 @@ function Cd(e) {
|
|
|
4075
4070
|
s.current && (clearTimeout(s.current), s.current = null);
|
|
4076
4071
|
let m = [];
|
|
4077
4072
|
if (e != null && e.cId) {
|
|
4078
|
-
const
|
|
4079
|
-
m = (_ = (
|
|
4080
|
-
(C,
|
|
4073
|
+
const v = t.component.get(e == null ? void 0 : e.cId);
|
|
4074
|
+
m = (_ = (v == null ? void 0 : v.exposes) || []) == null ? void 0 : _.reduce(
|
|
4075
|
+
(C, b) => (C.push({ label: b.label, value: b.value }), C),
|
|
4081
4076
|
[...di]
|
|
4082
4077
|
);
|
|
4083
4078
|
}
|
|
@@ -4150,7 +4145,7 @@ function xd(e) {
|
|
|
4150
4145
|
}
|
|
4151
4146
|
function a(o) {
|
|
4152
4147
|
var r, h, u, _, m;
|
|
4153
|
-
const s = ((h = (r = e == null ? void 0 : e.opts) == null ? void 0 : r.filter) == null ? void 0 : h.call(r, (
|
|
4148
|
+
const s = ((h = (r = e == null ? void 0 : e.opts) == null ? void 0 : r.filter) == null ? void 0 : h.call(r, (v) => v.operateId !== o)) || [];
|
|
4154
4149
|
(u = e == null ? void 0 : e.onChangeOpts) == null || u.call(e, s), o === (e == null ? void 0 : e.value) && ((m = e == null ? void 0 : e.onChange) == null || m.call(e, (_ = s == null ? void 0 : s[0]) == null ? void 0 : _.operateId));
|
|
4155
4150
|
}
|
|
4156
4151
|
return /* @__PURE__ */ g("div", { className: $(ye.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
|
|
@@ -4204,28 +4199,28 @@ const Id = ue((e) => {
|
|
|
4204
4199
|
}, [o]);
|
|
4205
4200
|
function _(f) {
|
|
4206
4201
|
var x, L, j;
|
|
4207
|
-
const
|
|
4208
|
-
s(
|
|
4202
|
+
const y = (L = (x = a == null ? void 0 : a.targets) == null ? void 0 : x.find) == null ? void 0 : L.call(x, (R) => R.id === f);
|
|
4203
|
+
s(y), h((j = y == null ? void 0 : y.opts) == null ? void 0 : j[0]);
|
|
4209
4204
|
}
|
|
4210
4205
|
function m(f) {
|
|
4211
|
-
var
|
|
4206
|
+
var y, x;
|
|
4212
4207
|
h(
|
|
4213
|
-
(x = (
|
|
4208
|
+
(x = (y = o == null ? void 0 : o.opts) == null ? void 0 : y.find) == null ? void 0 : x.call(y, (L) => (L == null ? void 0 : L.operateId) === f)
|
|
4214
4209
|
);
|
|
4215
4210
|
}
|
|
4216
|
-
function
|
|
4211
|
+
function v(f, y) {
|
|
4217
4212
|
d({
|
|
4218
4213
|
...a,
|
|
4219
4214
|
targets: f
|
|
4220
|
-
}),
|
|
4215
|
+
}), y && f.length === 1 && s(f[f.length - 1]);
|
|
4221
4216
|
}
|
|
4222
4217
|
function C(f) {
|
|
4223
|
-
var
|
|
4224
|
-
(x = (
|
|
4218
|
+
var y, x;
|
|
4219
|
+
(x = (y = a == null ? void 0 : a.targets) == null ? void 0 : y.find) == null || x.call(y, (L) => L.id !== (o == null ? void 0 : o.id) ? !1 : (L.opts = f, !0)), d({ ...a }), f.length === 1 && h(f == null ? void 0 : f[0]);
|
|
4225
4220
|
}
|
|
4226
|
-
function
|
|
4227
|
-
var
|
|
4228
|
-
(x = (
|
|
4221
|
+
function b(f) {
|
|
4222
|
+
var y, x;
|
|
4223
|
+
(x = (y = a == null ? void 0 : a.targets) == null ? void 0 : y.find) == null || x.call(y, (L) => {
|
|
4229
4224
|
var j, R;
|
|
4230
4225
|
return L.id !== (o == null ? void 0 : o.id) ? !1 : ((R = (j = L.opts) == null ? void 0 : j.find) == null || R.call(j, (q) => (q == null ? void 0 : q.operateId) !== (f == null ? void 0 : f.operateId) ? !1 : (Object.assign(q, f), !0)), !0);
|
|
4231
4226
|
}), d({ ...a });
|
|
@@ -4235,14 +4230,14 @@ const Id = ue((e) => {
|
|
|
4235
4230
|
(f = e == null ? void 0 : e.onOk) == null || f.call(e, a);
|
|
4236
4231
|
}
|
|
4237
4232
|
return w(() => {
|
|
4238
|
-
var f,
|
|
4233
|
+
var f, y, x, L;
|
|
4239
4234
|
if (e != null && e.visible) {
|
|
4240
4235
|
if (!i) {
|
|
4241
4236
|
E.error("triggerId不存在");
|
|
4242
4237
|
return;
|
|
4243
4238
|
}
|
|
4244
|
-
let j = (
|
|
4245
|
-
j =
|
|
4239
|
+
let j = (y = (f = n == null ? void 0 : n.events) == null ? void 0 : f.find) == null ? void 0 : y.call(f, (V) => (V == null ? void 0 : V.triggerId) === i);
|
|
4240
|
+
j = Wt(j || {}), d(j);
|
|
4246
4241
|
const R = (x = j == null ? void 0 : j.targets) == null ? void 0 : x[0];
|
|
4247
4242
|
s(R);
|
|
4248
4243
|
const q = (L = R == null ? void 0 : R.opts) == null ? void 0 : L[0];
|
|
@@ -4274,8 +4269,8 @@ const Id = ue((e) => {
|
|
|
4274
4269
|
_(f);
|
|
4275
4270
|
},
|
|
4276
4271
|
targets: a == null ? void 0 : a.targets,
|
|
4277
|
-
onChangeTargets: (f,
|
|
4278
|
-
|
|
4272
|
+
onChangeTargets: (f, y) => {
|
|
4273
|
+
v(f, y === "add");
|
|
4279
4274
|
}
|
|
4280
4275
|
}
|
|
4281
4276
|
),
|
|
@@ -4299,7 +4294,7 @@ const Id = ue((e) => {
|
|
|
4299
4294
|
{
|
|
4300
4295
|
value: r,
|
|
4301
4296
|
onChange: (f) => {
|
|
4302
|
-
|
|
4297
|
+
b(f);
|
|
4303
4298
|
}
|
|
4304
4299
|
}
|
|
4305
4300
|
) })
|
|
@@ -4312,8 +4307,8 @@ function kd(e) {
|
|
|
4312
4307
|
const { engine: t } = N(), { componentNode: n } = e, i = A(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), a = Id({
|
|
4313
4308
|
onOk(u) {
|
|
4314
4309
|
t.componentNode.update(n == null ? void 0 : n.id, (_) => {
|
|
4315
|
-
var m,
|
|
4316
|
-
return (
|
|
4310
|
+
var m, v;
|
|
4311
|
+
return (v = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.find) == null || v.call(m, (C) => C.triggerId !== (u == null ? void 0 : u.triggerId) ? !1 : (Object.assign(C, u), !0)), {
|
|
4317
4312
|
events: _ == null ? void 0 : _.events
|
|
4318
4313
|
};
|
|
4319
4314
|
});
|
|
@@ -4321,8 +4316,8 @@ function kd(e) {
|
|
|
4321
4316
|
}), d = A(() => {
|
|
4322
4317
|
var u;
|
|
4323
4318
|
return ((u = n == null ? void 0 : n.events) == null ? void 0 : u.map((_) => {
|
|
4324
|
-
var
|
|
4325
|
-
const m = (C = (
|
|
4319
|
+
var v, C;
|
|
4320
|
+
const m = (C = (v = i == null ? void 0 : i.triggers) == null ? void 0 : v.find) == null ? void 0 : C.call(v, (b) => (b == null ? void 0 : b.value) === _.triggerId);
|
|
4326
4321
|
return {
|
|
4327
4322
|
label: `${(m == null ? void 0 : m.label) || "-"}`,
|
|
4328
4323
|
value: `${_.triggerId}`
|
|
@@ -4342,24 +4337,24 @@ function kd(e) {
|
|
|
4342
4337
|
}
|
|
4343
4338
|
function s(u) {
|
|
4344
4339
|
t.componentNode.update(n == null ? void 0 : n.id, (_) => {
|
|
4345
|
-
var m,
|
|
4340
|
+
var m, v;
|
|
4346
4341
|
return {
|
|
4347
4342
|
events: [
|
|
4348
|
-
...((
|
|
4343
|
+
...((v = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.filter) == null ? void 0 : v.call(m, (C) => C.triggerId !== u)) || []
|
|
4349
4344
|
]
|
|
4350
4345
|
};
|
|
4351
4346
|
});
|
|
4352
4347
|
}
|
|
4353
4348
|
function r(u) {
|
|
4354
|
-
var m,
|
|
4349
|
+
var m, v, C, b;
|
|
4355
4350
|
if (!u) {
|
|
4356
4351
|
E.warn("triggerId不存在");
|
|
4357
4352
|
return;
|
|
4358
4353
|
}
|
|
4359
|
-
const _ = (
|
|
4354
|
+
const _ = (v = (m = n == null ? void 0 : n.events) == null ? void 0 : m.find) == null ? void 0 : v.call(m, (I) => (I == null ? void 0 : I.triggerId) === u);
|
|
4360
4355
|
(C = _ == null ? void 0 : _.targets) != null && C.length ? c({
|
|
4361
4356
|
title: "提醒",
|
|
4362
|
-
content: `已配置${((
|
|
4357
|
+
content: `已配置${((b = _ == null ? void 0 : _.targets) == null ? void 0 : b.length) || 0}个事件项,确定删除该事件?`,
|
|
4363
4358
|
onOk(I) {
|
|
4364
4359
|
s(u), I();
|
|
4365
4360
|
}
|
|
@@ -4373,7 +4368,7 @@ function kd(e) {
|
|
|
4373
4368
|
/* @__PURE__ */ l("div", { className: G.eventList_item_body, children: u.label }),
|
|
4374
4369
|
/* @__PURE__ */ g("div", { className: G.eventList_item_opt, children: [
|
|
4375
4370
|
/* @__PURE__ */ l(
|
|
4376
|
-
|
|
4371
|
+
Yn,
|
|
4377
4372
|
{
|
|
4378
4373
|
className: G.eventList_item_opt_clickable,
|
|
4379
4374
|
onClick: () => o(u)
|
|
@@ -4420,7 +4415,7 @@ const Nd = "_json_1lpul_59", wd = "_json_head_1lpul_69", Ed = "_json_body_1lpul_
|
|
|
4420
4415
|
json_body: Ed
|
|
4421
4416
|
};
|
|
4422
4417
|
function Ad() {
|
|
4423
|
-
const { engine: e } = N(), { componentNode: t } = he(), [n] =
|
|
4418
|
+
const { engine: e } = N(), { componentNode: t } = he(), [n] = B.useForm();
|
|
4424
4419
|
function i() {
|
|
4425
4420
|
n.setFieldsValue({
|
|
4426
4421
|
code: t ? JSON.stringify(t || {}, null, " ") : ""
|
|
@@ -4441,15 +4436,15 @@ function Ad() {
|
|
|
4441
4436
|
}
|
|
4442
4437
|
return w(() => {
|
|
4443
4438
|
i();
|
|
4444
|
-
}, [t]), /* @__PURE__ */ g(
|
|
4439
|
+
}, [t]), /* @__PURE__ */ g(B, { className: Ze.json, form: n, children: [
|
|
4445
4440
|
/* @__PURE__ */ g("div", { className: Ze.json_head, children: [
|
|
4446
4441
|
/* @__PURE__ */ g("span", { children: [
|
|
4447
4442
|
/* @__PURE__ */ l("b", { style: { marginRight: 8 }, children: "ComponentNode数据" }),
|
|
4448
|
-
/* @__PURE__ */ l(
|
|
4443
|
+
/* @__PURE__ */ l(z, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
|
|
4449
4444
|
] }),
|
|
4450
|
-
/* @__PURE__ */ l(
|
|
4445
|
+
/* @__PURE__ */ l(z, { title: "保存", placement: "top", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: c }) })
|
|
4451
4446
|
] }),
|
|
4452
|
-
/* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(
|
|
4447
|
+
/* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(B.Item, { noStyle: !0, name: "code", children: /* @__PURE__ */ l(
|
|
4453
4448
|
X,
|
|
4454
4449
|
{
|
|
4455
4450
|
language: "json",
|
|
@@ -4468,9 +4463,9 @@ function Ad() {
|
|
|
4468
4463
|
}
|
|
4469
4464
|
const Ld = "_singleAttributes_109pm_59", Dd = {
|
|
4470
4465
|
singleAttributes: Ld
|
|
4471
|
-
},
|
|
4472
|
-
function
|
|
4473
|
-
const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [a, d] = S(), o =
|
|
4466
|
+
}, mn = xn({}), he = () => In(mn);
|
|
4467
|
+
function fn(e) {
|
|
4468
|
+
const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [a, d] = S(), o = tn(c);
|
|
4474
4469
|
return w(() => {
|
|
4475
4470
|
const s = i.componentNode.get(c.id);
|
|
4476
4471
|
return s && d(s), i.componentNode.onChange(c.id, ({ payload: r }) => {
|
|
@@ -4479,7 +4474,7 @@ function yn(e) {
|
|
|
4479
4474
|
}, [c.id]), w(() => i.onJsonChange(() => {
|
|
4480
4475
|
var s;
|
|
4481
4476
|
d(i.componentNode.get((s = o == null ? void 0 : o.current) == null ? void 0 : s.id));
|
|
4482
|
-
}), []), A(() => a ? /* @__PURE__ */ l(
|
|
4477
|
+
}), []), A(() => a ? /* @__PURE__ */ l(mn.Provider, { value: { instance: c, componentNode: a }, children: /* @__PURE__ */ l(
|
|
4483
4478
|
ei,
|
|
4484
4479
|
{
|
|
4485
4480
|
className: Dd.singleAttributes,
|
|
@@ -4506,12 +4501,12 @@ function yn(e) {
|
|
|
4506
4501
|
}
|
|
4507
4502
|
) }) : /* @__PURE__ */ l(xt, { image: xt.PRESENTED_IMAGE_SIMPLE, description: "暂无数据" }), [c, a, n.language]);
|
|
4508
4503
|
}
|
|
4509
|
-
const Od = "_multipleInstanceAttributes_1ehj2_59", Pd = "_multipleInstanceAttributes_header_1ehj2_66",
|
|
4504
|
+
const Od = "_multipleInstanceAttributes_1ehj2_59", Pd = "_multipleInstanceAttributes_header_1ehj2_66", Bd = "_multipleInstanceAttributes_body_1ehj2_70", Qe = {
|
|
4510
4505
|
multipleInstanceAttributes: Od,
|
|
4511
4506
|
multipleInstanceAttributes_header: Pd,
|
|
4512
|
-
multipleInstanceAttributes_body:
|
|
4507
|
+
multipleInstanceAttributes_body: Bd
|
|
4513
4508
|
};
|
|
4514
|
-
function
|
|
4509
|
+
function Md(e) {
|
|
4515
4510
|
const t = yt();
|
|
4516
4511
|
return /* @__PURE__ */ l(
|
|
4517
4512
|
Ce,
|
|
@@ -4534,7 +4529,7 @@ function jd(e) {
|
|
|
4534
4529
|
i(t[0]);
|
|
4535
4530
|
}, [t]), /* @__PURE__ */ g("div", { className: Qe.multipleInstanceAttributes, children: [
|
|
4536
4531
|
/* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_header, children: /* @__PURE__ */ l(
|
|
4537
|
-
|
|
4532
|
+
Md,
|
|
4538
4533
|
{
|
|
4539
4534
|
allowClear: !1,
|
|
4540
4535
|
style: { width: "100%" },
|
|
@@ -4544,12 +4539,12 @@ function jd(e) {
|
|
|
4544
4539
|
}
|
|
4545
4540
|
}
|
|
4546
4541
|
) }),
|
|
4547
|
-
/* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_body, children: n && /* @__PURE__ */ l(
|
|
4542
|
+
/* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_body, children: n && /* @__PURE__ */ l(fn, { instance: n }) })
|
|
4548
4543
|
] });
|
|
4549
4544
|
}
|
|
4550
|
-
const
|
|
4551
|
-
pageAttributes:
|
|
4552
|
-
pageAttributes_description:
|
|
4545
|
+
const Td = "_pageAttributes_u2l2i_59", zd = "_pageAttributes_description_u2l2i_65", $d = "_pageAttributes_body_u2l2i_70", pe = {
|
|
4546
|
+
pageAttributes: Td,
|
|
4547
|
+
pageAttributes_description: zd,
|
|
4553
4548
|
pageAttributes_body: $d
|
|
4554
4549
|
};
|
|
4555
4550
|
function Rd() {
|
|
@@ -4576,7 +4571,7 @@ function Rd() {
|
|
|
4576
4571
|
] }) }),
|
|
4577
4572
|
/* @__PURE__ */ l("div", { className: pe.pageAttributes_body, children: /* @__PURE__ */ g(Le, { labelSpan: 5, children: [
|
|
4578
4573
|
/* @__PURE__ */ g(
|
|
4579
|
-
|
|
4574
|
+
T,
|
|
4580
4575
|
{
|
|
4581
4576
|
label: "页面背景",
|
|
4582
4577
|
labelTip: "设置当前页背景颜色",
|
|
@@ -4592,7 +4587,7 @@ function Rd() {
|
|
|
4592
4587
|
}
|
|
4593
4588
|
}
|
|
4594
4589
|
),
|
|
4595
|
-
/* @__PURE__ */ l(
|
|
4590
|
+
/* @__PURE__ */ l(z, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4596
4591
|
Z,
|
|
4597
4592
|
{
|
|
4598
4593
|
className: "icon_clickable",
|
|
@@ -4605,7 +4600,7 @@ function Rd() {
|
|
|
4605
4600
|
}
|
|
4606
4601
|
),
|
|
4607
4602
|
/* @__PURE__ */ g(
|
|
4608
|
-
|
|
4603
|
+
T,
|
|
4609
4604
|
{
|
|
4610
4605
|
label: "白板背景",
|
|
4611
4606
|
labelTip: "页面所处白板的背景颜色",
|
|
@@ -4621,7 +4616,7 @@ function Rd() {
|
|
|
4621
4616
|
}
|
|
4622
4617
|
}
|
|
4623
4618
|
),
|
|
4624
|
-
/* @__PURE__ */ l(
|
|
4619
|
+
/* @__PURE__ */ l(z, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4625
4620
|
Z,
|
|
4626
4621
|
{
|
|
4627
4622
|
className: "icon_clickable",
|
|
@@ -4634,7 +4629,7 @@ function Rd() {
|
|
|
4634
4629
|
}
|
|
4635
4630
|
),
|
|
4636
4631
|
/* @__PURE__ */ g(
|
|
4637
|
-
|
|
4632
|
+
T,
|
|
4638
4633
|
{
|
|
4639
4634
|
label: "边框",
|
|
4640
4635
|
childrenStyle: { display: "flex", alignItems: "center", gap: 8 },
|
|
@@ -4662,7 +4657,7 @@ function Rd() {
|
|
|
4662
4657
|
}
|
|
4663
4658
|
}
|
|
4664
4659
|
),
|
|
4665
|
-
/* @__PURE__ */ l(
|
|
4660
|
+
/* @__PURE__ */ l(z, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4666
4661
|
Z,
|
|
4667
4662
|
{
|
|
4668
4663
|
className: "icon_clickable",
|
|
@@ -4683,7 +4678,7 @@ function Fd() {
|
|
|
4683
4678
|
return /* @__PURE__ */ l("div", { className: so.attributes, children: t ? (
|
|
4684
4679
|
// 选中组件实例配置
|
|
4685
4680
|
/* @__PURE__ */ g(W, { children: [
|
|
4686
|
-
n && /* @__PURE__ */ l(
|
|
4681
|
+
n && /* @__PURE__ */ l(fn, { instance: e[0] }),
|
|
4687
4682
|
!n && /* @__PURE__ */ l(jd, { instances: e })
|
|
4688
4683
|
] })
|
|
4689
4684
|
) : (
|
|
@@ -4693,19 +4688,19 @@ function Fd() {
|
|
|
4693
4688
|
}
|
|
4694
4689
|
function Cr(e) {
|
|
4695
4690
|
const { engine: t, json: n, pageFooter: i } = e;
|
|
4696
|
-
return pi(),
|
|
4691
|
+
return pi(), Tt.useEffect(() => {
|
|
4697
4692
|
t.loadJSON(n).then(() => {
|
|
4698
4693
|
var c;
|
|
4699
4694
|
(c = e == null ? void 0 : e.onJSONLoad) == null || c.call(e);
|
|
4700
4695
|
});
|
|
4701
4696
|
}, []), /* @__PURE__ */ g("div", { className: te.page, children: [
|
|
4702
|
-
/* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(El, { pageLogo: e == null ? void 0 : e.pageLogo }) }),
|
|
4697
|
+
/* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(El, { pageLogo: e == null ? void 0 : e.pageLogo, pageToolBar: e == null ? void 0 : e.pageToolBar }) }),
|
|
4703
4698
|
/* @__PURE__ */ g("div", { className: te.page_body, children: [
|
|
4704
4699
|
/* @__PURE__ */ l("div", { className: te.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(_a, {}) }),
|
|
4705
4700
|
/* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(oo, {}) }),
|
|
4706
4701
|
/* @__PURE__ */ l("div", { className: te.page_body_right, id: "rbs-attributes", children: /* @__PURE__ */ l(Fd, {}) })
|
|
4707
4702
|
] }),
|
|
4708
|
-
i ? /* @__PURE__ */ l(i, {}) :
|
|
4703
|
+
typeof i == "function" ? /* @__PURE__ */ l(i, {}) : i
|
|
4709
4704
|
] });
|
|
4710
4705
|
}
|
|
4711
4706
|
export {
|