react-big-screen 0.0.21 → 0.0.23
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/{IInputNumber-PnHJNf9H.mjs → IInputNumber-CEotcbKL.mjs} +1 -1
- package/es/{Line-CLgwvraj.mjs → Line-CgKiUu04.mjs} +3 -3
- package/es/{attributes-w4UsefFp.mjs → attributes-9sJ7OCyP.mjs} +32 -29
- package/es/{attributes-C0SMjnHG.mjs → attributes-B23RrL8i.mjs} +10 -8
- package/es/attributes-BL0o0sPi.mjs +34 -0
- package/es/{attributes-C5pimFaJ.mjs → attributes-Bfbf60g8.mjs} +17 -15
- package/es/attributes-C5CnEOVO.mjs +27 -0
- package/es/attributes-C64FfSI6.mjs +49 -0
- package/es/attributes-COqeO1sM.mjs +43 -0
- package/es/attributes-Di0JYz_d.mjs +41 -0
- package/es/attributes-Dp2yHpTx.mjs +37 -0
- package/es/{attributes-DdjjVR4N.mjs → attributes-DrbTSAq7.mjs} +10 -8
- package/es/{attributes-Dv8IMI4h.mjs → attributes-woY1Zfl3.mjs} +10 -8
- package/es/{attributes-E8oqU4q7.mjs → attributes-xzP7st08.mjs} +11 -9
- package/es/index-B1V_yDHb.mjs +47 -0
- package/es/{index-C6HV7IaP.mjs → index-B8GWWFIH.mjs} +30 -28
- package/es/{index-CpYmNO_5.mjs → index-B9wcrwqH.mjs} +55 -55
- package/es/{index-n9OtRMYa.mjs → index-BEdp0lB5.mjs} +30 -29
- package/es/index-BhEDT1MV.mjs +51 -0
- package/es/{index-DyB0TE1y.mjs → index-BkI6wVdV.mjs} +27 -25
- package/es/index-C3rjkbw6.mjs +46 -0
- package/es/{index-CRDggJyg.mjs → index-C4z4Sjq2.mjs} +61 -61
- package/es/{index-D--V8m-b.mjs → index-CFTpYaN8.mjs} +9 -9
- package/es/index-CG3CqHvP.mjs +43 -0
- package/es/{index-D_0vVSWq.mjs → index-CRraYtwg.mjs} +11 -9
- package/es/index-CTuwto2f.mjs +37 -0
- package/es/{index-B4KSL-Bu.mjs → index-CXzm2s6x.mjs} +11 -9
- package/es/index-Cg9iT8Uy.mjs +40 -0
- package/es/index-D2B6_fCJ.mjs +19 -0
- package/es/{index-guYPVm3G.mjs → index-D5seKG8I.mjs} +2 -2
- package/es/index-D8pMW8U5.mjs +61 -0
- package/es/{index-B8JqjjA1.mjs → index-D9o0U9Ub.mjs} +4 -4
- package/es/{index-Ljz96Vra.mjs → index-DG3JLNqh.mjs} +16 -14
- package/es/{index-Bvab-NQ4.mjs → index-D_XJCVB-.mjs} +24 -22
- package/es/index-Di6zy82j.mjs +48 -0
- package/es/index-Dqe0ts3H.mjs +26 -0
- package/es/index-DvVQnQMe.mjs +42 -0
- package/es/{index-B9Nb8R2I.mjs → index-DzOSmpKj.mjs} +17 -16
- package/es/{index-CyS-CdYv.mjs → index-XNZ9XEE4.mjs} +13 -12
- package/es/{index-Dh00vKAk.mjs → index-vk4BFyhF.mjs} +15 -13
- package/es/{index-ryl5yfWq.mjs → index-w5Djwuhu.mjs} +13 -11
- package/es/{index-D1ux0Voe.mjs → index-yEFPa0R2.mjs} +2 -2
- package/es/index.mjs +3 -3
- package/es/{selectPage-D267xnl4.mjs → selectPage-B19KQBZQ.mjs} +1 -1
- package/es/useCurrentPageId-BzI1Jj2f.mjs +20 -0
- package/package.json +1 -1
- package/types/src/export/components/RenderEditor/index.d.ts +2 -2
- package/types/src/export/index.d.ts +2 -2
- package/types/src/pages/components/Header/index.d.ts +1 -1
- package/es/attributes-BWtBVgsg.mjs +0 -41
- package/es/attributes-BuMChZnt.mjs +0 -47
- package/es/attributes-COwKDUMI.mjs +0 -35
- package/es/attributes-C_fbpAUx.mjs +0 -25
- package/es/attributes-DztmBsKn.mjs +0 -32
- package/es/attributes-YL1J6lLR.mjs +0 -39
- package/es/index-BRgbtPVH.mjs +0 -45
- package/es/index-BUth1V1H.mjs +0 -41
- package/es/index-BYJ5e2rN.mjs +0 -38
- package/es/index-BYe40Zu2.mjs +0 -46
- package/es/index-BzpuXSbE.mjs +0 -49
- package/es/index-CBxj6uKJ.mjs +0 -35
- package/es/index-CUkul7R0.mjs +0 -44
- package/es/index-DQU0jlV0.mjs +0 -24
- package/es/index-KruFCy9N.mjs +0 -17
- package/es/index-hPKl41YD.mjs +0 -40
- package/es/index-qoPI1H9i.mjs +0 -59
- package/es/useCurrentPageId-DM05DNLI.mjs +0 -18
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
var R = Object.defineProperty;
|
|
2
2
|
var T = (e, n, t) => n in e ? R(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var b = (e, n, t) => T(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { b as O, u as k, I as x, R as F } from "./index-
|
|
5
|
-
import "
|
|
4
|
+
import { b as O, u as k, I as x, R as F } from "./index-C4z4Sjq2.mjs";
|
|
5
|
+
import "localforage";
|
|
6
6
|
import N, { useEffect as y, useMemo as M, useRef as w, useState as _, useCallback as z } from "react";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import "
|
|
8
|
+
import "react-dom/client";
|
|
9
9
|
import { message as G } from "antd";
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
import
|
|
13
|
-
import
|
|
10
|
+
import "driver.js";
|
|
11
|
+
import "driver.js/dist/driver.css";
|
|
12
|
+
import "lodash-es";
|
|
13
|
+
import { jsxs as U, jsx as S } from "react/jsx-runtime";
|
|
14
|
+
import "ahooks";
|
|
15
|
+
import Z from "umi-request";
|
|
14
16
|
import { u as j } from "./useListenRef-B01dENv0.mjs";
|
|
15
17
|
import { u as Q } from "./useEffectOnce-l5sUTCBG.mjs";
|
|
16
|
-
import { u as V } from "./useCurrentPageId-
|
|
17
|
-
import I from "
|
|
18
|
-
import "
|
|
18
|
+
import { u as V } from "./useCurrentPageId-BzI1Jj2f.mjs";
|
|
19
|
+
import I from "hotkeys-js";
|
|
20
|
+
import "dayjs";
|
|
19
21
|
function X(e) {
|
|
20
22
|
return e.button == 0;
|
|
21
23
|
}
|
|
22
|
-
function
|
|
24
|
+
function $e(e) {
|
|
23
25
|
return e.button == 2;
|
|
24
26
|
}
|
|
25
27
|
function W(e) {
|
|
@@ -28,7 +30,7 @@ function W(e) {
|
|
|
28
30
|
function B(e) {
|
|
29
31
|
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
30
32
|
}
|
|
31
|
-
function
|
|
33
|
+
function Oe(e) {
|
|
32
34
|
return typeof e == "object" && !Array.isArray(e) && !!e;
|
|
33
35
|
}
|
|
34
36
|
function q(e) {
|
|
@@ -55,13 +57,13 @@ function $(e, n) {
|
|
|
55
57
|
};
|
|
56
58
|
}, []);
|
|
57
59
|
}
|
|
58
|
-
function
|
|
60
|
+
function je() {
|
|
59
61
|
return O((e) => e.componentNodes);
|
|
60
62
|
}
|
|
61
63
|
function J(e) {
|
|
62
64
|
return O((n) => e ? e(n.config) : n.config);
|
|
63
65
|
}
|
|
64
|
-
function
|
|
66
|
+
function qe(e) {
|
|
65
67
|
const n = M(() => e, []), { engine: t } = k();
|
|
66
68
|
return y(() => (t.instance.add(n), () => {
|
|
67
69
|
t.instance.delete(n.id);
|
|
@@ -109,7 +111,7 @@ class K {
|
|
|
109
111
|
};
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
|
-
function
|
|
114
|
+
function Ae(e) {
|
|
113
115
|
const { dataSourceType: n = "static" } = e, t = j(n === "static"), s = w(), [r, a] = _(), f = z(() => {
|
|
114
116
|
var u;
|
|
115
117
|
return s.current || (s.current = new K(e.request), (u = s.current) == null || u.onChangeDataSource((h) => a(h))), s.current;
|
|
@@ -210,7 +212,7 @@ function se(e, n) {
|
|
|
210
212
|
});
|
|
211
213
|
};
|
|
212
214
|
}
|
|
213
|
-
function
|
|
215
|
+
function Re(e) {
|
|
214
216
|
const { engine: n } = k();
|
|
215
217
|
return M(() => se(n, e), []);
|
|
216
218
|
}
|
|
@@ -226,11 +228,11 @@ function re(e, n) {
|
|
|
226
228
|
}, []);
|
|
227
229
|
};
|
|
228
230
|
}
|
|
229
|
-
function
|
|
231
|
+
function Te(e) {
|
|
230
232
|
const { engine: n } = k();
|
|
231
233
|
return M(() => re(n, e), []);
|
|
232
234
|
}
|
|
233
|
-
function
|
|
235
|
+
function Fe() {
|
|
234
236
|
const [e, n] = _([]), { engine: t } = k();
|
|
235
237
|
return Q(() => (n(t.component.getAllPackage()), t.component.onPackageChange((s) => {
|
|
236
238
|
n(s);
|
|
@@ -441,7 +443,7 @@ function ge(e) {
|
|
|
441
443
|
/* @__PURE__ */ S("div", { className: L.infiniteCanvas_mask, ref: u })
|
|
442
444
|
] });
|
|
443
445
|
}
|
|
444
|
-
const
|
|
446
|
+
const Ne = N.forwardRef((e, n) => {
|
|
445
447
|
const { options: t } = ae() || {}, { engine: s } = k(), r = J(), a = /* @__PURE__ */ S(
|
|
446
448
|
"div",
|
|
447
449
|
{
|
|
@@ -483,18 +485,18 @@ const Te = N.forwardRef((e, n) => {
|
|
|
483
485
|
);
|
|
484
486
|
});
|
|
485
487
|
export {
|
|
486
|
-
|
|
488
|
+
Ne as P,
|
|
487
489
|
$ as a,
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
490
|
+
je as b,
|
|
491
|
+
Fe as c,
|
|
492
|
+
Ae as d,
|
|
493
|
+
Re as e,
|
|
494
|
+
Te as f,
|
|
493
495
|
E as g,
|
|
494
|
-
|
|
496
|
+
qe as h,
|
|
495
497
|
X as i,
|
|
496
|
-
|
|
497
|
-
|
|
498
|
+
$e as j,
|
|
499
|
+
Oe as k,
|
|
498
500
|
ae as l,
|
|
499
501
|
he as s,
|
|
500
502
|
J as u
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
var vn = Object.defineProperty;
|
|
2
2
|
var bn = (e, t, n) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ee = (e, t, n) => bn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { jsx as l, jsxs as g, Fragment as W } from "
|
|
4
|
+
import { jsx as l, jsxs as g, Fragment as W } from "react/jsx-runtime";
|
|
5
5
|
import zt, { useRef as B, useEffect as w, useMemo as A, useState as S, forwardRef as Cn, useImperativeHandle as xn, Suspense as Tt, createContext as In, useContext as kn } from "react";
|
|
6
|
-
import { DownOutlined as Sn, ReloadOutlined as Z, CloseOutlined as Nn, ArrowUpOutlined as et, ArrowRightOutlined as wn, ArrowDownOutlined as tt, ArrowLeftOutlined as En, QuestionCircleOutlined as An, UploadOutlined as Ln, VerticalAlignBottomOutlined as $t, SaveOutlined as Q, ClearOutlined as Rt, TranslationOutlined as Dn, SettingOutlined as Ft, GithubFilled as On, LockOutlined as Ht, EyeOutlined as Pn, EyeInvisibleOutlined as Mn, RightOutlined as Bn, VerticalAlignTopOutlined as jn, UnlockOutlined as zn, BlockOutlined as Tn, DisconnectOutlined as $n, CopyOutlined as Rn, DeleteOutlined as de, StarOutlined as dt, BorderOuterOutlined as Fn, BorderBottomOutlined as Hn, DownloadOutlined as Kn, LoadingOutlined as Kt, EditOutlined as Ut, BarsOutlined as Un, FileOutlined as qn, AppstoreOutlined as Jn, FileTextOutlined as Wn, ApartmentOutlined as Vn, BankOutlined as Gn, HistoryOutlined as Xn, PlusOutlined as rt, RedoOutlined as Yn } from "
|
|
6
|
+
import { DownOutlined as Sn, ReloadOutlined as Z, CloseOutlined as Nn, ArrowUpOutlined as et, ArrowRightOutlined as wn, ArrowDownOutlined as tt, ArrowLeftOutlined as En, QuestionCircleOutlined as An, UploadOutlined as Ln, VerticalAlignBottomOutlined as $t, SaveOutlined as Q, ClearOutlined as Rt, TranslationOutlined as Dn, SettingOutlined as Ft, GithubFilled as On, LockOutlined as Ht, EyeOutlined as Pn, EyeInvisibleOutlined as Mn, RightOutlined as Bn, VerticalAlignTopOutlined as jn, UnlockOutlined as zn, BlockOutlined as Tn, DisconnectOutlined as $n, CopyOutlined as Rn, DeleteOutlined as de, StarOutlined as dt, BorderOuterOutlined as Fn, BorderBottomOutlined as Hn, DownloadOutlined as Kn, LoadingOutlined as Kt, EditOutlined as Ut, BarsOutlined as Un, FileOutlined as qn, AppstoreOutlined as Jn, FileTextOutlined as Wn, ApartmentOutlined as Vn, BankOutlined as Gn, HistoryOutlined as Xn, PlusOutlined as rt, RedoOutlined as Yn } from "@ant-design/icons";
|
|
7
7
|
import { message as E, Tooltip as T, 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 M, Modal as re, Descriptions as je, Tree as pn, Row as nt, Col as H, Checkbox as we, Switch as qt, Tabs as ei, Empty as xt } from "antd";
|
|
8
|
-
import $ from "
|
|
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 Jt, f as ht, g as it, l as ze, h as It, i as oi, j as kt, I as Te, k as di, m as ri } from "./index-
|
|
10
|
-
import "
|
|
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 Jt, f as ht, g as it, l as ze, h as It, i as oi, j as kt, I as Te, k as di, m as ri } from "./index-C4z4Sjq2.mjs";
|
|
10
|
+
import "localforage";
|
|
11
11
|
import { createPortal as si } from "react-dom";
|
|
12
|
-
import { createRoot as Wt } from "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import {
|
|
16
|
-
import "
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { I as U, i as ki, a as Si } from "./index-
|
|
25
|
-
import * as Ni from "
|
|
26
|
-
import "
|
|
27
|
-
import "
|
|
28
|
-
import "
|
|
29
|
-
import "
|
|
30
|
-
import ft from "
|
|
31
|
-
import { saveAs as en } from "
|
|
12
|
+
import { createRoot as Wt } from "react-dom/client";
|
|
13
|
+
import "driver.js";
|
|
14
|
+
import "driver.js/dist/driver.css";
|
|
15
|
+
import { cloneDeep as Vt, debounce as ui, groupBy as hi, throttle as Gt } from "lodash-es";
|
|
16
|
+
import { u as Ee, i as Ae, a as gt, b as Xt, c as Yt, g as ae, d as gi, e as _i, f as mi, h as fi, j as Zt, s as St, P as yi, k as vi, l as bi } from "./index-B8GWWFIH.mjs";
|
|
17
|
+
import { useUpdateEffect as _t, useUnmount as Qt, useRequest as pt } from "ahooks";
|
|
18
|
+
import "react-color";
|
|
19
|
+
import { I as p, L as Le, a as z, C as Ci, b as $e } from "./Line-CgKiUu04.mjs";
|
|
20
|
+
import { I as mt, a as xi } from "./IInputNumber-CEotcbKL.mjs";
|
|
21
|
+
import { useTranslation as se } from "react-i18next";
|
|
22
|
+
import lt from "hotkeys-js";
|
|
23
|
+
import Ii from "dayjs";
|
|
24
|
+
import { I as U, i as ki, a as Si } from "./index-yEFPa0R2.mjs";
|
|
25
|
+
import * as Ni from "monaco-editor/esm/vs/editor/editor.api";
|
|
26
|
+
import "monaco-editor/esm/vs/language/json/monaco.contribution";
|
|
27
|
+
import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
|
|
28
|
+
import "monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution";
|
|
29
|
+
import "monaco-editor/esm/vs/language/typescript/monaco.contribution";
|
|
30
|
+
import ft from "jszip";
|
|
31
|
+
import { saveAs as en } from "file-saver";
|
|
32
32
|
import { u as tn } from "./useEffectOnce-l5sUTCBG.mjs";
|
|
33
|
-
import { u as wi, s as Re } from "./selectPage-
|
|
34
|
-
import { u as Ei } from "./useCurrentPageId-
|
|
33
|
+
import { u as wi, s as Re } from "./selectPage-B19KQBZQ.mjs";
|
|
34
|
+
import { u as Ei } from "./useCurrentPageId-BzI1Jj2f.mjs";
|
|
35
35
|
import { u as nn } from "./useListenRef-B01dENv0.mjs";
|
|
36
|
-
import { I as Ce } from "./index-
|
|
36
|
+
import { I as Ce } from "./index-D9o0U9Ub.mjs";
|
|
37
37
|
async function ln(e) {
|
|
38
38
|
return new Promise((t) => {
|
|
39
39
|
let n = document.createElement("input");
|
|
@@ -350,7 +350,7 @@ function Yi() {
|
|
|
350
350
|
id: n,
|
|
351
351
|
name: `收藏${i + 1}`,
|
|
352
352
|
children: t,
|
|
353
|
-
gmtCreate:
|
|
353
|
+
gmtCreate: Ii().format("YYYY-MM-DD HH:mm:ss")
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
function Oe() {
|
|
@@ -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 = Vt(n);
|
|
381
381
|
t.history.add(i, e);
|
|
382
382
|
}
|
|
383
383
|
});
|
|
@@ -562,7 +562,7 @@ function yl(e) {
|
|
|
562
562
|
),
|
|
563
563
|
/* @__PURE__ */ g(D, { style: { marginTop: -16 }, children: [
|
|
564
564
|
n && /* @__PURE__ */ l(
|
|
565
|
-
|
|
565
|
+
mt,
|
|
566
566
|
{
|
|
567
567
|
min: c,
|
|
568
568
|
max: 1e3,
|
|
@@ -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-C4z4Sjq2.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-C4z4Sjq2.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() {
|
|
@@ -941,7 +941,7 @@ function El(e) {
|
|
|
941
941
|
!wl && /* @__PURE__ */ l(On, { style: { cursor: "pointer", fontSize: 16 }, onClick: r })
|
|
942
942
|
] });
|
|
943
943
|
return /* @__PURE__ */ g("div", { className: Ie.header, children: [
|
|
944
|
-
t ? /* @__PURE__ */ l(t, {}) : _,
|
|
944
|
+
t ? typeof t == "function" ? /* @__PURE__ */ l(t, {}) : t : _,
|
|
945
945
|
/* @__PURE__ */ l(vl, {}),
|
|
946
946
|
/* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
|
|
947
947
|
/* @__PURE__ */ l(Sl, {}),
|
|
@@ -1188,18 +1188,18 @@ function ql() {
|
|
|
1188
1188
|
layout: e("menu.library.layout"),
|
|
1189
1189
|
nav: e("menu.library.nav"),
|
|
1190
1190
|
unknown: e("menu.library.unknown")
|
|
1191
|
-
}), [t.language]), h = A(() =>
|
|
1191
|
+
}), [t.language]), h = A(() => ui((_, m = "") => {
|
|
1192
1192
|
const y = Lt(_, m);
|
|
1193
1193
|
s(y);
|
|
1194
1194
|
}, 500), []);
|
|
1195
1195
|
w(() => {
|
|
1196
1196
|
s(Lt(c, a));
|
|
1197
|
-
}, [c]),
|
|
1197
|
+
}, [c]), _t(() => {
|
|
1198
1198
|
h(c, a);
|
|
1199
1199
|
}, [a]);
|
|
1200
1200
|
const u = A(() => {
|
|
1201
1201
|
const _ = [], m = Object.entries(
|
|
1202
|
-
|
|
1202
|
+
hi(o, (y) => y.category || "unknown")
|
|
1203
1203
|
).map(([y, C]) => (_.push(y), {
|
|
1204
1204
|
key: y,
|
|
1205
1205
|
components: C,
|
|
@@ -1595,7 +1595,7 @@ function _n(e) {
|
|
|
1595
1595
|
});
|
|
1596
1596
|
}
|
|
1597
1597
|
function yc() {
|
|
1598
|
-
const { engine: e } = N(), t =
|
|
1598
|
+
const { engine: e } = N(), t = Xt(), n = yt(), i = B(null), c = A(() => t.length ? /* @__PURE__ */ l("div", { className: qe.componentNodes_block, children: t.map((a) => /* @__PURE__ */ l(
|
|
1599
1599
|
ec,
|
|
1600
1600
|
{
|
|
1601
1601
|
componentNode: a,
|
|
@@ -1819,7 +1819,7 @@ function X(e) {
|
|
|
1819
1819
|
}), n.current = i, () => {
|
|
1820
1820
|
i.dispose();
|
|
1821
1821
|
};
|
|
1822
|
-
}, [e == null ? void 0 : e.language]),
|
|
1822
|
+
}, [e == null ? void 0 : e.language]), _t(() => {
|
|
1823
1823
|
var c, a, d, o;
|
|
1824
1824
|
if (!(n != null && n.current)) {
|
|
1825
1825
|
console.error("monaco-editor init failed.");
|
|
@@ -2010,7 +2010,7 @@ const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68", Mt = {
|
|
|
2010
2010
|
};
|
|
2011
2011
|
function Uc() {
|
|
2012
2012
|
var o;
|
|
2013
|
-
const e =
|
|
2013
|
+
const e = Yt(), { engine: t } = N(), { loading: n, run: i } = pt(
|
|
2014
2014
|
async () => new Promise((s) => {
|
|
2015
2015
|
setTimeout(() => {
|
|
2016
2016
|
E.success("刷新成功"), s();
|
|
@@ -2670,12 +2670,12 @@ function qa(e) {
|
|
|
2670
2670
|
);
|
|
2671
2671
|
return tn(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload: o }) => {
|
|
2672
2672
|
i({ ...o });
|
|
2673
|
-
})),
|
|
2673
|
+
})), _t(() => {
|
|
2674
2674
|
i(e == null ? void 0 : e.componentNode);
|
|
2675
2675
|
}, [e == null ? void 0 : e.componentNode]), a && c ? /* @__PURE__ */ l(Ja, { componentNode: n, component: a }) : /* @__PURE__ */ l(W, {});
|
|
2676
2676
|
}
|
|
2677
2677
|
function Ja(e) {
|
|
2678
|
-
const { component: t, componentNode: n } = e, i = nn(n), c = B(null), { dataSource: a, requestInstance: d } =
|
|
2678
|
+
const { component: t, componentNode: n } = e, i = nn(n), c = B(null), { dataSource: a, requestInstance: d } = gi(n), o = _i(n.id), s = mi(n.id), r = B(null), h = fi({
|
|
2679
2679
|
id: n.id,
|
|
2680
2680
|
// 经过实例
|
|
2681
2681
|
handleHover() {
|
|
@@ -2762,7 +2762,7 @@ function Va(e, t) {
|
|
|
2762
2762
|
if (!c || e.lock && n && !i)
|
|
2763
2763
|
return;
|
|
2764
2764
|
t.stopPropagation();
|
|
2765
|
-
const a =
|
|
2765
|
+
const a = Zt(t);
|
|
2766
2766
|
if (n || a) {
|
|
2767
2767
|
if (c.instance.isSelected(e.id)) {
|
|
2768
2768
|
i && c.instance.unselect(e.id);
|
|
@@ -2787,7 +2787,7 @@ function Ga(e) {
|
|
|
2787
2787
|
onStart() {
|
|
2788
2788
|
return ae.set("move"), setTimeout(() => {
|
|
2789
2789
|
let { list: r, showCount: h } = Za();
|
|
2790
|
-
i = r, c = h < 300, o =
|
|
2790
|
+
i = r, c = h < 300, o = Gt(
|
|
2791
2791
|
(u, _) => {
|
|
2792
2792
|
Xa(i, c, u, _);
|
|
2793
2793
|
},
|
|
@@ -2855,7 +2855,7 @@ function Za() {
|
|
|
2855
2855
|
}
|
|
2856
2856
|
const Qa = "_rangeBox_12c3t_59", pa = {
|
|
2857
2857
|
rangeBox: Qa
|
|
2858
|
-
}, jt =
|
|
2858
|
+
}, jt = Gt((e, t) => {
|
|
2859
2859
|
const n = k.getActiveEngine();
|
|
2860
2860
|
if (!n) return;
|
|
2861
2861
|
const i = n.componentNode.getAll().reduce((c, a) => {
|
|
@@ -2998,7 +2998,7 @@ function lo(e) {
|
|
|
2998
2998
|
const a = e.current;
|
|
2999
2999
|
if (!a) throw new Error("dom must be exist.");
|
|
3000
3000
|
i();
|
|
3001
|
-
const d = Ae(c), o =
|
|
3001
|
+
const d = Ae(c), o = Zt(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
3002
|
if (h && u && _) {
|
|
3003
3003
|
if (Va(u, c), !(u != null && u.lock) && d) {
|
|
3004
3004
|
const y = ct(
|
|
@@ -3095,7 +3095,7 @@ function ao(e) {
|
|
|
3095
3095
|
});
|
|
3096
3096
|
}
|
|
3097
3097
|
const oo = () => {
|
|
3098
|
-
const { engine: e } = N(), t = B(null), n = B(null), i =
|
|
3098
|
+
const { engine: e } = N(), t = B(null), n = B(null), i = Yt(), c = Xt(), a = A(() => {
|
|
3099
3099
|
if (i.length)
|
|
3100
3100
|
return c == null ? void 0 : c.map((d) => /* @__PURE__ */ l(
|
|
3101
3101
|
qa,
|
|
@@ -3114,7 +3114,7 @@ const oo = () => {
|
|
|
3114
3114
|
ref: t,
|
|
3115
3115
|
className: Bt.editor,
|
|
3116
3116
|
onMouseDown: () => De(),
|
|
3117
|
-
children: /* @__PURE__ */ l(
|
|
3117
|
+
children: /* @__PURE__ */ l(yi, { ref: n, className: Bt.editor_render, children: a })
|
|
3118
3118
|
}
|
|
3119
3119
|
);
|
|
3120
3120
|
}, ro = "_attributes_esabd_59", so = {
|
|
@@ -3322,7 +3322,7 @@ function So(e) {
|
|
|
3322
3322
|
),
|
|
3323
3323
|
(c == null ? void 0 : c.loop) && /* @__PURE__ */ g(W, { children: [
|
|
3324
3324
|
/* @__PURE__ */ l(
|
|
3325
|
-
|
|
3325
|
+
mt,
|
|
3326
3326
|
{
|
|
3327
3327
|
style: { width: 100 },
|
|
3328
3328
|
value: (c == null ? void 0 : c.loopDelay) || 1e3,
|
|
@@ -3772,7 +3772,7 @@ function Yo(e) {
|
|
|
3772
3772
|
/* @__PURE__ */ l(z, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l(T, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: s, className: "icon_clickable" }) }) }),
|
|
3773
3773
|
/* @__PURE__ */ g(W, { children: [
|
|
3774
3774
|
((v = e == null ? void 0 : e.value) == null ? void 0 : v.type) === "number" && /* @__PURE__ */ l(
|
|
3775
|
-
|
|
3775
|
+
mt,
|
|
3776
3776
|
{
|
|
3777
3777
|
min: void 0,
|
|
3778
3778
|
style: { width: Ne * 2 },
|
|
@@ -3786,7 +3786,7 @@ function Yo(e) {
|
|
|
3786
3786
|
}
|
|
3787
3787
|
),
|
|
3788
3788
|
((f = e == null ? void 0 : e.value) == null ? void 0 : f.type) === "text" && /* @__PURE__ */ l(
|
|
3789
|
-
|
|
3789
|
+
xi,
|
|
3790
3790
|
{
|
|
3791
3791
|
style: { width: Ne * 2 },
|
|
3792
3792
|
value: (b = e == null ? void 0 : e.value) == null ? void 0 : b.value,
|
|
@@ -4084,7 +4084,7 @@ function Cd(e) {
|
|
|
4084
4084
|
e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)), a(m), o("");
|
|
4085
4085
|
}
|
|
4086
4086
|
}, [n]), /* @__PURE__ */ l(
|
|
4087
|
-
|
|
4087
|
+
Ci,
|
|
4088
4088
|
{
|
|
4089
4089
|
visible: n,
|
|
4090
4090
|
onClose: h,
|
|
@@ -4242,7 +4242,7 @@ const Id = ue((e) => {
|
|
|
4242
4242
|
return;
|
|
4243
4243
|
}
|
|
4244
4244
|
let j = (b = (f = n == null ? void 0 : n.events) == null ? void 0 : f.find) == null ? void 0 : b.call(f, (V) => (V == null ? void 0 : V.triggerId) === i);
|
|
4245
|
-
j =
|
|
4245
|
+
j = Vt(j || {}), d(j);
|
|
4246
4246
|
const R = (x = j == null ? void 0 : j.targets) == null ? void 0 : x[0];
|
|
4247
4247
|
s(R);
|
|
4248
4248
|
const q = (L = R == null ? void 0 : R.opts) == null ? void 0 : L[0];
|
|
@@ -4430,7 +4430,7 @@ function Ad() {
|
|
|
4430
4430
|
const a = n.getFieldValue("code") || "";
|
|
4431
4431
|
try {
|
|
4432
4432
|
const d = JSON.parse(a);
|
|
4433
|
-
if (!
|
|
4433
|
+
if (!vi(d)) {
|
|
4434
4434
|
console.error("must be an object.");
|
|
4435
4435
|
return;
|
|
4436
4436
|
}
|
|
@@ -4553,7 +4553,7 @@ const zd = "_pageAttributes_u2l2i_59", Td = "_pageAttributes_description_u2l2i_6
|
|
|
4553
4553
|
pageAttributes_body: $d
|
|
4554
4554
|
};
|
|
4555
4555
|
function Rd() {
|
|
4556
|
-
const { engine: e } = N(), [t] = se(), n =
|
|
4556
|
+
const { engine: e } = N(), [t] = se(), n = bi(), { id: i, options: c } = n || {};
|
|
4557
4557
|
function a(d) {
|
|
4558
4558
|
e.page.update(i, {
|
|
4559
4559
|
options: {
|
|
@@ -4705,7 +4705,7 @@ function Cr(e) {
|
|
|
4705
4705
|
/* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(oo, {}) }),
|
|
4706
4706
|
/* @__PURE__ */ l("div", { className: te.page_body_right, id: "rbs-attributes", children: /* @__PURE__ */ l(Fd, {}) })
|
|
4707
4707
|
] }),
|
|
4708
|
-
i ? /* @__PURE__ */ l(i, {}) :
|
|
4708
|
+
typeof i == "function" ? /* @__PURE__ */ l(i, {}) : i
|
|
4709
4709
|
] });
|
|
4710
4710
|
}
|
|
4711
4711
|
export {
|
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import { jsx as b } from "
|
|
2
|
-
import { n as C } from "./index-
|
|
3
|
-
import "
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { n as C } from "./index-C4z4Sjq2.mjs";
|
|
3
|
+
import "localforage";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import "
|
|
6
|
+
import "react-dom/client";
|
|
7
7
|
import "antd";
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import "driver.js";
|
|
9
|
+
import "driver.js/dist/driver.css";
|
|
10
|
+
import "lodash-es";
|
|
11
|
+
import { useRequest as v } from "ahooks";
|
|
12
|
+
import { R as S } from "./index-CFTpYaN8.mjs";
|
|
13
|
+
import { DEFAULT_OPTIONS as g } from "./attributes-B23RrL8i.mjs";
|
|
13
14
|
const n = "chinaOutline";
|
|
14
|
-
async function
|
|
15
|
-
var t,
|
|
15
|
+
async function p() {
|
|
16
|
+
var t, o;
|
|
16
17
|
let r;
|
|
17
18
|
try {
|
|
18
19
|
r = await fetch("https://file.geojson.cn/china/1.6.2/china.json").then((e) => e.json());
|
|
19
20
|
} catch {
|
|
20
21
|
r = (t = await import("./china-Cb9KgeSB.mjs")) == null ? void 0 : t.default;
|
|
21
22
|
}
|
|
22
|
-
if ((
|
|
23
|
+
if ((o = r == null ? void 0 : r.features) != null && o.length) {
|
|
23
24
|
const e = await import("./china-ten-DJT5AHpU.mjs");
|
|
24
25
|
r.features.push(e == null ? void 0 : e.default);
|
|
25
26
|
}
|
|
26
27
|
return r;
|
|
27
28
|
}
|
|
28
|
-
async function
|
|
29
|
+
async function z() {
|
|
29
30
|
if (!window.echarts) {
|
|
30
31
|
console.error("echarts not found.");
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
33
34
|
if (window.echarts.getMap(n))
|
|
34
35
|
return;
|
|
35
|
-
const r = await
|
|
36
|
+
const r = await p();
|
|
36
37
|
window.echarts.registerMap(n, r);
|
|
37
38
|
}
|
|
38
|
-
const
|
|
39
|
+
const $ = "path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z", c = [
|
|
39
40
|
{ name: "北京", coords: [116, 39], value: 83 },
|
|
40
41
|
{ name: "广东", coords: [115, 22], value: 22 },
|
|
41
42
|
{ name: "西藏", coords: [91, 29], value: 45 },
|
|
42
43
|
{ name: "云南", coords: [102, 25], value: 108 },
|
|
43
44
|
{ name: "广西", coords: [108, 22], value: 230 },
|
|
44
45
|
{ name: "新疆", coords: [87, 43], value: 67 }
|
|
45
|
-
], O =
|
|
46
|
+
], O = c.reduce((r, t) => (r[t.name] = t.value, r), {}), L = c[0].coords, h = c.slice(1).map((r) => ({
|
|
46
47
|
coords: [L, r.coords],
|
|
47
48
|
tooltip: {
|
|
48
49
|
formatter: () => `${r == null ? void 0 : r.name}:${(r == null ? void 0 : r.value) || 0}个`
|
|
49
50
|
}
|
|
50
|
-
})), M =
|
|
51
|
+
})), M = c.map((r) => ({
|
|
51
52
|
name: r == null ? void 0 : r.name,
|
|
52
53
|
value: [...r.coords, r.value],
|
|
53
54
|
tooltip: {
|
|
54
55
|
formatter: () => `${r == null ? void 0 : r.name}:${(r == null ? void 0 : r.value) || 0}个`
|
|
55
56
|
}
|
|
56
|
-
})), l = "#00ffe4",
|
|
57
|
+
})), l = "#00ffe4", i = 0.2, d = 5;
|
|
57
58
|
function W() {
|
|
58
59
|
return [
|
|
59
60
|
// 飞机轨迹
|
|
@@ -63,7 +64,7 @@ function W() {
|
|
|
63
64
|
coordinateSystem: "geo",
|
|
64
65
|
effect: {
|
|
65
66
|
show: !0,
|
|
66
|
-
period:
|
|
67
|
+
period: d,
|
|
67
68
|
trailLength: 0.7,
|
|
68
69
|
// 尾迹长度[0,1]值越大,尾迹越长
|
|
69
70
|
symbolSize: 3,
|
|
@@ -72,7 +73,7 @@ function W() {
|
|
|
72
73
|
},
|
|
73
74
|
lineStyle: {
|
|
74
75
|
width: 0,
|
|
75
|
-
curveness:
|
|
76
|
+
curveness: i
|
|
76
77
|
// 图线曲度
|
|
77
78
|
},
|
|
78
79
|
data: h
|
|
@@ -86,15 +87,15 @@ function W() {
|
|
|
86
87
|
symbolSize: 10,
|
|
87
88
|
effect: {
|
|
88
89
|
show: !0,
|
|
89
|
-
period:
|
|
90
|
+
period: d,
|
|
90
91
|
trailLength: 0,
|
|
91
|
-
symbol:
|
|
92
|
+
symbol: $,
|
|
92
93
|
symbolSize: 15,
|
|
93
94
|
color: l
|
|
94
95
|
},
|
|
95
96
|
lineStyle: {
|
|
96
97
|
color: l,
|
|
97
|
-
curveness:
|
|
98
|
+
curveness: i,
|
|
98
99
|
width: 1,
|
|
99
100
|
opacity: 0.2
|
|
100
101
|
// 轨迹线
|
|
@@ -128,10 +129,10 @@ function W() {
|
|
|
128
129
|
}
|
|
129
130
|
];
|
|
130
131
|
}
|
|
131
|
-
const
|
|
132
|
-
const { width: t, height:
|
|
132
|
+
const k = C((r) => {
|
|
133
|
+
const { width: t, height: o, options: e } = r, { data: f } = v(
|
|
133
134
|
async () => {
|
|
134
|
-
await
|
|
135
|
+
await z();
|
|
135
136
|
function u(y = {}, m) {
|
|
136
137
|
return {
|
|
137
138
|
type: "map",
|
|
@@ -245,10 +246,10 @@ const T = C((r) => {
|
|
|
245
246
|
S,
|
|
246
247
|
{
|
|
247
248
|
shouldClear: !0,
|
|
248
|
-
options:
|
|
249
|
+
options: f,
|
|
249
250
|
style: {
|
|
250
251
|
width: t,
|
|
251
|
-
height:
|
|
252
|
+
height: o,
|
|
252
253
|
overflow: "hidden",
|
|
253
254
|
background: e == null ? void 0 : e.bgColor
|
|
254
255
|
}
|
|
@@ -256,5 +257,5 @@ const T = C((r) => {
|
|
|
256
257
|
);
|
|
257
258
|
}, g);
|
|
258
259
|
export {
|
|
259
|
-
|
|
260
|
+
k as default
|
|
260
261
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { R as e } from "./index-CFTpYaN8.mjs";
|
|
3
|
+
import { n as r } from "./index-C4z4Sjq2.mjs";
|
|
4
|
+
import "localforage";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "react-dom/client";
|
|
8
|
+
import "antd";
|
|
9
|
+
import "driver.js";
|
|
10
|
+
import "driver.js/dist/driver.css";
|
|
11
|
+
import "lodash-es";
|
|
12
|
+
import "ahooks";
|
|
13
|
+
const y = r((t) => {
|
|
14
|
+
const { width: a, height: o } = t;
|
|
15
|
+
return /* @__PURE__ */ m(
|
|
16
|
+
e,
|
|
17
|
+
{
|
|
18
|
+
options: {
|
|
19
|
+
radar: {
|
|
20
|
+
indicator: [
|
|
21
|
+
{ name: "Sales", max: 100 },
|
|
22
|
+
{ name: "Administration", max: 100 },
|
|
23
|
+
{ name: "Information Technology", max: 100 },
|
|
24
|
+
{ name: "Customer Support", max: 100 },
|
|
25
|
+
{ name: "Development", max: 100 },
|
|
26
|
+
{ name: "Marketing", max: 100 }
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
series: [
|
|
30
|
+
{
|
|
31
|
+
name: "Budget vs spending",
|
|
32
|
+
type: "radar",
|
|
33
|
+
data: [
|
|
34
|
+
{
|
|
35
|
+
value: [50, 50, 50, 50, 50, 50],
|
|
36
|
+
name: "Allocated Budget"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
style: {
|
|
43
|
+
width: a,
|
|
44
|
+
height: o
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
y as default
|
|
51
|
+
};
|