react-big-screen 0.0.28 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.en-US.md +166 -0
  2. package/README.md +109 -309
  3. package/es/{attributes-ICDLlHKL.mjs → attributes-B5HWQZZK.mjs} +1 -1
  4. package/es/{attributes-D_7z174b.mjs → attributes-B7-hDzkQ.mjs} +1 -1
  5. package/es/{attributes-CKQVoQvV.mjs → attributes-BPcQtKOr.mjs} +1 -1
  6. package/es/{attributes-Bqwv78vP.mjs → attributes-BpX4Fdw9.mjs} +1 -1
  7. package/es/{attributes-S7TYD0S5.mjs → attributes-BylM83oA.mjs} +2 -2
  8. package/es/{attributes-CxmgjIr4.mjs → attributes-C6vh9nyy.mjs} +1 -1
  9. package/es/{attributes-DX29Qkf4.mjs → attributes-D-gloXi5.mjs} +1 -1
  10. package/es/{attributes-Db9sk_dJ.mjs → attributes-DUnMdQAM.mjs} +1 -1
  11. package/es/{attributes-COWyZqgA.mjs → attributes-DmnMCZfI.mjs} +1 -1
  12. package/es/{attributes-BhOVe6Nw.mjs → attributes-DqZ_OZyi.mjs} +1 -1
  13. package/es/{attributes-C9kdt2P4.mjs → attributes-IOCRHiLe.mjs} +1 -1
  14. package/es/{attributes-CNvZw41R.mjs → attributes-L0fyKnQO.mjs} +1 -1
  15. package/es/{index-B_otqPpE.mjs → index-7dLD8uUE.mjs} +2 -2
  16. package/es/{index-BwBB6Ooc.mjs → index-B3Ay6Aj1.mjs} +1 -1
  17. package/es/{index-Do46s3Bo.mjs → index-BFA4TvoH.mjs} +2 -2
  18. package/es/{index-DTx3K3TW.mjs → index-BXq0hs6M.mjs} +3 -3
  19. package/es/{index-BseO3j88.mjs → index-BlWFsMPW.mjs} +389 -376
  20. package/es/{index-DOx-TcxR.mjs → index-C2T3keq0.mjs} +2 -2
  21. package/es/{index-CF9Gq4DE.mjs → index-C40e9pm9.mjs} +1744 -1545
  22. package/es/{index-CQpPr_GO.mjs → index-COabQvbE.mjs} +2 -2
  23. package/es/{index-DiaCgMtP.mjs → index-CPLagA1y.mjs} +2 -2
  24. package/es/{index-DjwCZvsj.mjs → index-CRaab8fv.mjs} +2 -2
  25. package/es/{index-CUl51FbE.mjs → index-CdJ04MGH.mjs} +2 -2
  26. package/es/{index-DIXk7ULh.mjs → index-CiVNQoxr.mjs} +3 -3
  27. package/es/{index-CR2sC3mu.mjs → index-CiYtbqfk.mjs} +2 -2
  28. package/es/{index-DJCJ9mDa.mjs → index-Csn1J3aw.mjs} +2 -2
  29. package/es/{index-Mr6nPhGt.mjs → index-D6jgslIW.mjs} +2 -2
  30. package/es/{index-KR0QAPWF.mjs → index-DFiF1j8B.mjs} +2 -2
  31. package/es/{index-DQnoNvaR.mjs → index-DI0SW2E2.mjs} +3 -3
  32. package/es/{index-Cl1TBDdm.mjs → index-DIlwx359.mjs} +2 -2
  33. package/es/{index-BQMHx4Ur.mjs → index-D_ufK7UJ.mjs} +1 -1
  34. package/es/{index-QkxDL_fl.mjs → index-Dmgsn6Wm.mjs} +2 -2
  35. package/es/{index-Bt7Z5pcG.mjs → index-F_ek5l7j.mjs} +2 -2
  36. package/es/{index-BP0M5ksu.mjs → index-UsnN384D.mjs} +2 -2
  37. package/es/{index-CiRuNGX5.mjs → index-YRf4xbh7.mjs} +2 -2
  38. package/es/{index-4IXWh7p-.mjs → index-bwKeYi6r.mjs} +2 -2
  39. package/es/{index-Dd2HXuLY.mjs → index-s9MOJecX.mjs} +2 -2
  40. package/es/{index-CZaKlOGF.mjs → index-wkPXgVxT.mjs} +3 -3
  41. package/es/index.mjs +1 -1
  42. package/es/{selectPage-BejdiGuA.mjs → selectPage-BBYB3GCL.mjs} +1 -1
  43. package/es/style.css +1 -1
  44. package/es/{useCurrentPageId-CrzsBBI2.mjs → useCurrentPageId-BmlA3pBw.mjs} +1 -1
  45. package/package.json +10 -2
  46. package/types/src/engine/componentNode/index.d.ts +5 -4
  47. package/types/src/engine/types.d.ts +1 -0
  48. package/types/src/pages/components/Editor/hooks/index.d.ts +1 -0
  49. package/types/src/pages/components/Editor/hooks/useRegisterDrag/index.d.ts +2 -1
  50. package/types/src/pages/components/Editor/hooks/useRegisterDrag/listenDragMove.d.ts +13 -2
  51. package/types/src/pages/components/Editor/hooks/useRegisterPositionLine/index.d.ts +6 -0
  52. package/types/src/pages/components/Header/components/SettingsDrawer/index.d.ts +8 -0
  53. package/types/src/utils/graph.d.ts +10 -0
@@ -1,24 +1,24 @@
1
- var Ye = Object.defineProperty;
2
- var Qe = (r, e, t) => e in r ? Ye(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var d = (r, e, t) => Qe(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { jsx as u, jsxs as C, Fragment as et } from "react/jsx-runtime";
5
- import { create as tt } from "zustand";
1
+ var Qe = Object.defineProperty;
2
+ var et = (r, e, t) => e in r ? Qe(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var d = (r, e, t) => et(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import { jsx as u, jsxs as C, Fragment as tt } from "react/jsx-runtime";
5
+ import { create as at } from "zustand";
6
6
  import re from "localforage";
7
- import c, { createContext as at, useRef as R, useCallback as nt, useMemo as G, isValidElement as it, useEffect as J, useContext as rt, useState as x, forwardRef as ot, useImperativeHandle as st } from "react";
8
- import lt from "react-dom";
9
- import ct, { createRoot as ue } from "react-dom/client";
10
- import * as dt from "antd";
11
- import { Form as F, Tooltip as D, Button as he, Input as ge, Space as fe, message as me, Modal as ut, Table as ht } from "antd";
12
- import { driver as gt } from "driver.js";
7
+ import c, { createContext as nt, useRef as R, useCallback as it, useMemo as G, isValidElement as rt, useEffect as J, useContext as ot, useState as x, forwardRef as st, useImperativeHandle as lt } from "react";
8
+ import ct from "react-dom";
9
+ import dt, { createRoot as he } from "react-dom/client";
10
+ import * as ut from "antd";
11
+ import { Form as F, Tooltip as D, Button as ge, Input as fe, Space as me, message as ye, Modal as ht, Table as gt } from "antd";
12
+ import { driver as ft } from "driver.js";
13
13
  import "driver.js/dist/driver.css";
14
- import { omit as ft, cloneDeep as ye } from "lodash-es";
14
+ import { omit as mt, cloneDeep as pe } from "lodash-es";
15
15
  import k from "classnames";
16
- import { SaveOutlined as mt, EditOutlined as yt, DeleteOutlined as pt, QuestionCircleOutlined as vt, PlusOutlined as _t } from "@ant-design/icons";
17
- import pe from "i18next";
18
- import { initReactI18next as bt } from "react-i18next";
19
- import xt from "i18next-browser-languagedetector";
20
- import It from "umi-request";
21
- import { useUpdateEffect as wt, useUnmount as St, useRequest as Ct } from "ahooks";
16
+ import { SaveOutlined as yt, EditOutlined as pt, DeleteOutlined as vt, QuestionCircleOutlined as _t, PlusOutlined as bt } from "@ant-design/icons";
17
+ import ve from "i18next";
18
+ import { initReactI18next as xt } from "react-i18next";
19
+ import It from "i18next-browser-languagedetector";
20
+ import wt from "umi-request";
21
+ import { useUpdateEffect as St, useUnmount as Ct, useRequest as kt } from "ahooks";
22
22
  const B = {
23
23
  scale: 1,
24
24
  scaleDefault: 1,
@@ -26,20 +26,21 @@ const B = {
26
26
  scaleMinZoom: 0.1,
27
27
  scaleMaxZoom: 2,
28
28
  width: 1920,
29
- height: 1080
30
- }, ve = tt(() => ({
29
+ height: 1080,
30
+ dragClampEnabled: !1
31
+ }, _e = at(() => ({
31
32
  componentNodes: [],
32
33
  componentMap: {},
33
34
  config: B
34
35
  }));
35
36
  function w(r) {
36
- ve.setState(r);
37
+ _e.setState(r);
37
38
  }
38
- function z() {
39
- return ve.getState();
39
+ function A() {
40
+ return _e.getState();
40
41
  }
41
42
  const V = "未命名文件.txt";
42
- async function _e(r) {
43
+ async function be(r) {
43
44
  return new Promise((e) => {
44
45
  fetch(r).then(async (t) => {
45
46
  var n, i;
@@ -49,41 +50,41 @@ async function _e(r) {
49
50
  });
50
51
  });
51
52
  }
52
- function xn(r = "", e = V) {
53
- _e(r).then((t) => {
54
- kt(t, e);
53
+ function In(r = "", e = V) {
54
+ be(r).then((t) => {
55
+ Tt(t, e);
55
56
  });
56
57
  }
57
- function kt(r = "", e = V) {
58
+ function Tt(r = "", e = V) {
58
59
  const t = new Blob([r], {
59
60
  type: "text/plain;charset=utf-8"
60
61
  });
61
- Tt(t, e);
62
+ Pt(t, e);
62
63
  }
63
- function Tt(r = new Blob([""]), e = V) {
64
+ function Pt(r = new Blob([""]), e = V) {
64
65
  const t = document.createElement("a"), a = URL.createObjectURL(r);
65
66
  t.style.display = "none", t.download = e, t.href = a, t.click(), setTimeout(() => {
66
67
  URL.revokeObjectURL(a);
67
68
  });
68
69
  }
69
- const Pt = {
70
- antd: dt,
70
+ const At = {
71
+ antd: ut,
71
72
  react: c,
72
- "react-dom": lt,
73
- "react-dom/client": ct
73
+ "react-dom": ct,
74
+ "react-dom/client": dt
74
75
  };
75
- function be(r) {
76
- return Pt[r] || window[r];
76
+ function xe(r) {
77
+ return At[r] || window[r];
77
78
  }
78
79
  async function oe(r) {
79
80
  if (r)
80
- return await zt(r) || await At(r);
81
+ return await zt(r) || await Nt(r);
81
82
  }
82
83
  async function zt(r) {
83
84
  return new Promise((e) => {
84
85
  try {
85
86
  if (!r) return;
86
- const t = { exports: {} }, a = (i) => be(i), n = new Function("module", "exports", "require", r);
87
+ const t = { exports: {} }, a = (i) => xe(i), n = new Function("module", "exports", "require", r);
87
88
  try {
88
89
  n(t, t.exports, a);
89
90
  const i = Object.keys(t.exports);
@@ -96,7 +97,7 @@ async function zt(r) {
96
97
  }
97
98
  });
98
99
  }
99
- async function At(r) {
100
+ async function Nt(r) {
100
101
  return new Promise((e) => {
101
102
  try {
102
103
  if (!r) return;
@@ -105,7 +106,7 @@ async function At(r) {
105
106
  var l;
106
107
  let i, o;
107
108
  arguments.length === 1 ? (i = [], o = arguments[0]) : arguments.length === 2 ? [i, o] = arguments : arguments.length === 3 && (i = arguments[1], o = arguments[2]);
108
- const s = ((l = i == null ? void 0 : i.map) == null ? void 0 : l.call(i, (h) => be(h))) || [];
109
+ const s = ((l = i == null ? void 0 : i.map) == null ? void 0 : l.call(i, (h) => xe(h))) || [];
109
110
  t = o == null ? void 0 : o(...s);
110
111
  }, n = new Function("define", r);
111
112
  try {
@@ -118,17 +119,17 @@ async function At(r) {
118
119
  }
119
120
  });
120
121
  }
121
- const xe = "__drivered__";
122
- function Nt() {
123
- return window.localStorage.getItem(xe) === "1";
124
- }
122
+ const Ie = "__drivered__";
125
123
  function Et() {
126
- window.localStorage.setItem(xe, "1");
124
+ return window.localStorage.getItem(Ie) === "1";
127
125
  }
128
- function In(r) {
129
- if (Nt() && !r)
126
+ function Mt() {
127
+ window.localStorage.setItem(Ie, "1");
128
+ }
129
+ function wn(r) {
130
+ if (Et() && !r)
130
131
  return;
131
- gt({
132
+ ft({
132
133
  showProgress: !0,
133
134
  nextBtnText: "下一步",
134
135
  prevBtnText: "上一步",
@@ -234,11 +235,11 @@ function In(r) {
234
235
  }
235
236
  ],
236
237
  onDestroyed() {
237
- Et();
238
+ Mt();
238
239
  }
239
240
  }).drive();
240
241
  }
241
- class Mt {
242
+ class Lt {
242
243
  constructor() {
243
244
  // 存储package映射(id => package)
244
245
  d(this, "pkgMap", /* @__PURE__ */ new Map());
@@ -254,11 +255,11 @@ class Mt {
254
255
  }
255
256
  // 获取已注册组件列表
256
257
  getAll() {
257
- return Object.values(z().componentMap);
258
+ return Object.values(A().componentMap);
258
259
  }
259
260
  get(e) {
260
261
  if (e)
261
- return Array.isArray(e) ? e.map((t) => this.get(t)) : z().componentMap[e];
262
+ return Array.isArray(e) ? e.map((t) => this.get(t)) : A().componentMap[e];
262
263
  }
263
264
  // 注册组件
264
265
  register(e) {
@@ -392,7 +393,7 @@ class Mt {
392
393
  o && (o.origin = l.origin, o.originData = "", this.savePackageSourceCode(o.id, l.originData));
393
394
  }), this.registerPackage(i);
394
395
  }), n.forEach((i) => {
395
- _e(i.originData).then((o) => {
396
+ be(i.originData).then((o) => {
396
397
  oe(o).then((s) => {
397
398
  s && (s.origin = i.origin, s.originData = i.originData, this.savePackageSourceCode(s.id, o)), this.registerPackage(s);
398
399
  });
@@ -416,13 +417,10 @@ class se {
416
417
  }
417
418
  // 新增实例
418
419
  add(e) {
419
- if (e) {
420
- if (Array.isArray(e)) {
421
- e.forEach((t) => this.add(t));
422
- return;
423
- }
424
- this._data[e.id] = e, this._size++, this.notify();
425
- }
420
+ if (!e) return;
421
+ (Array.isArray(e) ? e : [e]).forEach((a) => {
422
+ a && (this._data[a.id] = a, this._size++);
423
+ }), this.notify();
426
424
  }
427
425
  get(e) {
428
426
  if (e)
@@ -460,7 +458,7 @@ class se {
460
458
  });
461
459
  }
462
460
  }
463
- class Lt extends se {
461
+ class Ot extends se {
464
462
  constructor() {
465
463
  super(...arguments);
466
464
  // 存储选中的实例列表
@@ -530,25 +528,25 @@ function I(r = 10) {
530
528
  const e = Math.random().toString(16).slice(2);
531
529
  return r <= e.length ? e.slice(0, r) : e + I(r - e.length);
532
530
  }
533
- const Ot = "_configRender_wy2nc_59", Dt = "_configRender_item_wy2nc_65", Rt = "_configRender_item_help_wy2nc_70", Ft = "_configRender_item_label_wy2nc_74", Ht = "_configRender_item_value_wy2nc_78", P = {
534
- configRender: Ot,
535
- configRender_item: Dt,
536
- configRender_item_help: Rt,
537
- configRender_item_label: Ft,
538
- configRender_item_value: Ht
539
- }, Ie = at(void 0);
531
+ const Dt = "_configRender_wy2nc_59", Rt = "_configRender_item_wy2nc_65", Ft = "_configRender_item_help_wy2nc_70", Ht = "_configRender_item_label_wy2nc_74", $t = "_configRender_item_value_wy2nc_78", P = {
532
+ configRender: Dt,
533
+ configRender_item: Rt,
534
+ configRender_item_help: Ft,
535
+ configRender_item_label: Ht,
536
+ configRender_item_value: $t
537
+ }, we = nt(void 0);
540
538
  function le() {
541
- return rt(Ie);
539
+ return ot(we);
542
540
  }
543
- import("./index-CUl51FbE.mjs").then((r) => {
541
+ import("./index-CdJ04MGH.mjs").then((r) => {
544
542
  var e;
545
543
  (e = r.default) == null || e.call(r);
546
544
  });
547
- let we = /* @__PURE__ */ new Map();
548
- function Se(r) {
545
+ let Se = /* @__PURE__ */ new Map();
546
+ function Ce(r) {
549
547
  const { items: e } = r, [t] = F.useForm(), a = R();
550
548
  a.current = r;
551
- const n = nt(() => {
549
+ const n = it(() => {
552
550
  const o = {}, s = t.getFieldsValue();
553
551
  for (const l in s)
554
552
  o[l] = void 0;
@@ -568,11 +566,11 @@ function Se(r) {
568
566
  });
569
567
  },
570
568
  children: (o = e == null ? void 0 : e.map) == null ? void 0 : o.call(e, (s) => {
571
- if (it(s))
569
+ if (rt(s))
572
570
  return s;
573
571
  if (typeof s == "function")
574
572
  return /* @__PURE__ */ u(s, { useExtra: le }, s);
575
- const l = typeof s.component == "string" ? we.get(s.component) : s.component;
573
+ const l = typeof s.component == "string" ? Se.get(s.component) : s.component;
576
574
  return /* @__PURE__ */ C("div", { className: P.configRender_item, children: [
577
575
  /* @__PURE__ */ C(
578
576
  "div",
@@ -607,10 +605,10 @@ function Se(r) {
607
605
  ...n(),
608
606
  ...r == null ? void 0 : r.value
609
607
  });
610
- }, [r == null ? void 0 : r.value]), /* @__PURE__ */ u(Ie.Provider, { value: r == null ? void 0 : r.extra, children: i });
608
+ }, [r == null ? void 0 : r.value]), /* @__PURE__ */ u(we.Provider, { value: r == null ? void 0 : r.extra, children: i });
611
609
  }
612
- Se.register = (r, e) => {
613
- we.set(r, e);
610
+ Ce.register = (r, e) => {
611
+ Se.set(r, e);
614
612
  };
615
613
  function T(r, e) {
616
614
  return function(t) {
@@ -621,7 +619,7 @@ function T(r, e) {
621
619
  return r(a);
622
620
  };
623
621
  }
624
- function A(r, e) {
622
+ function z(r, e) {
625
623
  return function(t) {
626
624
  const a = e ? Object.assign({}, e, t.options) : t.options, n = e ? {
627
625
  ...t,
@@ -631,7 +629,7 @@ function A(r, e) {
631
629
  }
632
630
  } : t;
633
631
  return /* @__PURE__ */ u(
634
- Se,
632
+ Ce,
635
633
  {
636
634
  items: r,
637
635
  value: a,
@@ -643,7 +641,7 @@ function A(r, e) {
643
641
  );
644
642
  };
645
643
  }
646
- const $t = {
644
+ const Bt = {
647
645
  cId: "",
648
646
  cName: "",
649
647
  x: 0,
@@ -651,8 +649,8 @@ const $t = {
651
649
  width: 100,
652
650
  height: 100,
653
651
  category: "unknown"
654
- };
655
- class Bt {
652
+ }, ce = Symbol();
653
+ class Ut {
656
654
  constructor() {
657
655
  d(this, "maxLevel", 1);
658
656
  // 最大层级
@@ -675,22 +673,37 @@ class Bt {
675
673
  notifyDelete(e = []) {
676
674
  this.deleteListeners.forEach((t) => t(e));
677
675
  }
678
- // 触发onChange事件
676
+ // 手动触发 componentNode 更新
679
677
  notifyChange(e) {
680
- var t, a;
681
- (a = (t = this.eventMap[e.id]) == null ? void 0 : t.forEach) == null || a.call(t, (n) => {
682
- n == null || n({
683
- payload: e
678
+ var a, n;
679
+ const t = Array.isArray(e) ? e : [e];
680
+ t.length && (t.forEach((i) => {
681
+ var o, s;
682
+ (s = (o = this.eventMap[i.id]) == null ? void 0 : o.forEach) == null || s.call(o, (l) => {
683
+ l == null || l({
684
+ payload: i
685
+ });
684
686
  });
685
- });
687
+ }), (n = (a = this.eventMap[ce]) == null ? void 0 : a.forEach) == null || n.call(
688
+ a,
689
+ (i) => {
690
+ i == null || i({
691
+ payload: t
692
+ });
693
+ }
694
+ ));
686
695
  }
687
- // 注册节点事件变更回调
688
696
  onChange(e, t) {
689
- var a;
690
- return e ? (((a = this.eventMap)[e] || (a[e] = [])).push(t), () => {
691
- this.eventMap[e] = this.eventMap[e].filter((n) => n !== t);
692
- }) : (console.warn("id must be defined"), () => {
697
+ var o;
698
+ const a = typeof e == "function";
699
+ if (!a && !e)
700
+ return console.warn("id must be defined"), () => {
701
+ };
702
+ const n = a ? ce : e, i = a ? e : t || (() => {
693
703
  });
704
+ return ((o = this.eventMap)[n] || (o[n] = [])).push(i), () => {
705
+ this.eventMap[n] = this.eventMap[n].filter((s) => s !== i);
706
+ };
694
707
  }
695
708
  // 清空组件数据
696
709
  clear() {
@@ -755,7 +768,7 @@ class Bt {
755
768
  }
756
769
  // 获取全部componentNodes
757
770
  getAll() {
758
- return z().componentNodes;
771
+ return A().componentNodes;
759
772
  }
760
773
  // 获取一个componentNode
761
774
  get(e) {
@@ -786,7 +799,7 @@ class Bt {
786
799
  if (a != null && a.cover)
787
800
  for (const o in n)
788
801
  o !== "id" && delete n[o];
789
- Object.assign(n, i), a != null && a.silent || this.notifyChange(n);
802
+ return Object.assign(n, i), a != null && a.silent || this.notifyChange(n), n;
790
803
  }
791
804
  // 删除 componentNode
792
805
  delete(e) {
@@ -798,7 +811,7 @@ class Bt {
798
811
  a.add(l);
799
812
  }));
800
813
  });
801
- const n = z().componentNodes.filter((i) => !a.has(i.id));
814
+ const n = A().componentNodes.filter((i) => !a.has(i.id));
802
815
  this.set(n), this.notifyDelete(Array.from(a));
803
816
  }
804
817
  // 计算一个componentNode的矩形坐标
@@ -823,9 +836,9 @@ class Bt {
823
836
  createFromComponent(e, t) {
824
837
  var n, i;
825
838
  const a = {
826
- ...$t,
839
+ ...Bt,
827
840
  // 基础默认组件数据
828
- ...ft(e, [
841
+ ...mt(e, [
829
842
  "icon",
830
843
  "component",
831
844
  "attributesComponent",
@@ -1004,7 +1017,7 @@ const S = {
1004
1017
  name: "大屏页面",
1005
1018
  parentId: void 0
1006
1019
  };
1007
- class Ut {
1020
+ class Gt {
1008
1021
  constructor() {
1009
1022
  // pages
1010
1023
  d(this, "pages", []);
@@ -1044,7 +1057,7 @@ class Ut {
1044
1057
  }
1045
1058
  // 初始化pages
1046
1059
  init(e = [], t = []) {
1047
- this.globalComponentNodes = {}, this.pageMap = { [S.id]: { children: [] } }, this.pages = t != null && t.length ? t : [ye(S)], this.pages.forEach((a) => {
1060
+ this.globalComponentNodes = {}, this.pageMap = { [S.id]: { children: [] } }, this.pages = t != null && t.length ? t : [pe(S)], this.pages.forEach((a) => {
1048
1061
  var n, i;
1049
1062
  (n = this.pageMap)[i = a.id] || (n[i] = { children: [] });
1050
1063
  }), e.forEach((a) => {
@@ -1106,10 +1119,10 @@ class Ut {
1106
1119
  }), this.notifyChange();
1107
1120
  }
1108
1121
  }
1109
- class Gt {
1122
+ class Jt {
1110
1123
  // 获取配置(保存全局)
1111
1124
  getConfig() {
1112
- return z().config;
1125
+ return A().config;
1113
1126
  }
1114
1127
  // 静默设置配置 (不触发全局更新)
1115
1128
  setConfigSilently(e) {
@@ -1131,7 +1144,7 @@ class Gt {
1131
1144
  return this.getConfig().currentPageId || S.id;
1132
1145
  }
1133
1146
  }
1134
- class Jt {
1147
+ class Vt {
1135
1148
  constructor() {
1136
1149
  d(this, "favorites", []);
1137
1150
  d(this, "listeners", []);
@@ -1188,7 +1201,7 @@ const j = {
1188
1201
  value: "一段文字",
1189
1202
  fontSize: 14,
1190
1203
  lineHeight: 32
1191
- }, Vt = A(
1204
+ }, jt = z(
1192
1205
  [
1193
1206
  { key: "value", label: "内容", component: "textarea" },
1194
1207
  { key: "fontSize", label: "字号", component: "inputNumber", options: { min: 8 } },
@@ -1220,11 +1233,11 @@ const j = {
1220
1233
  { key: "textAlign", label: "水平对齐", component: "textAlignSelect" }
1221
1234
  ],
1222
1235
  j
1223
- ), jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1236
+ ), qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1224
1237
  __proto__: null,
1225
1238
  DEFAULT_OPTIONS: j,
1226
- default: Vt
1227
- }, Symbol.toStringTag, { value: "Module" })), Ce = [{ label: "点击事件", value: "onClick" }], ke = [{ label: "更新文本", value: "setText" }], qt = T((r) => {
1239
+ default: jt
1240
+ }, Symbol.toStringTag, { value: "Module" })), ke = [{ label: "点击事件", value: "onClick" }], Te = [{ label: "更新文本", value: "setText" }], Wt = T((r) => {
1228
1241
  const { options: e, width: t, height: a, useExpose: n, handleTrigger: i } = r, [o, s] = x();
1229
1242
  return n({
1230
1243
  setText(l) {
@@ -1251,15 +1264,15 @@ const j = {
1251
1264
  }
1252
1265
  }
1253
1266
  );
1254
- }, j), Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1267
+ }, j), Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1255
1268
  __proto__: null,
1256
- default: qt,
1257
- textExposes: ke,
1258
- textTriggers: Ce
1269
+ default: Wt,
1270
+ textExposes: Te,
1271
+ textTriggers: ke
1259
1272
  }, Symbol.toStringTag, { value: "Module" })), q = {
1260
1273
  value: "按钮",
1261
1274
  borderRadius: 2
1262
- }, Xt = A(
1275
+ }, Zt = z(
1263
1276
  [
1264
1277
  {
1265
1278
  key: "value",
@@ -1278,14 +1291,14 @@ const j = {
1278
1291
  }
1279
1292
  ],
1280
1293
  q
1281
- ), Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1294
+ ), Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1282
1295
  __proto__: null,
1283
1296
  DEFAULT_OPTIONS: q,
1284
- default: Xt
1285
- }, Symbol.toStringTag, { value: "Module" })), Te = [{ label: "点击事件", value: "onClick" }], Kt = T((r) => {
1297
+ default: Zt
1298
+ }, Symbol.toStringTag, { value: "Module" })), Pe = [{ label: "点击事件", value: "onClick" }], Yt = T((r) => {
1286
1299
  const { options: e, width: t, height: a, handleTrigger: n } = r;
1287
1300
  return /* @__PURE__ */ u(
1288
- he,
1301
+ ge,
1289
1302
  {
1290
1303
  type: e == null ? void 0 : e.type,
1291
1304
  style: { width: t, height: a, borderRadius: e.borderRadius },
@@ -1300,14 +1313,14 @@ const j = {
1300
1313
  )
1301
1314
  }
1302
1315
  );
1303
- }, q), Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1316
+ }, q), Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1304
1317
  __proto__: null,
1305
- buttonTriggers: Te,
1306
- default: Kt
1318
+ buttonTriggers: Pe,
1319
+ default: Yt
1307
1320
  }, Symbol.toStringTag, { value: "Module" })), W = {
1308
1321
  placeholder: "请输入",
1309
1322
  allowClear: !0
1310
- }, Qt = A(
1323
+ }, ea = z(
1311
1324
  [
1312
1325
  { key: "value", label: "内容", component: "input" },
1313
1326
  { key: "placeholder", label: "占位符", component: "input" },
@@ -1315,20 +1328,20 @@ const j = {
1315
1328
  { key: "allowClear", label: "可清空", component: "checkbox" }
1316
1329
  ],
1317
1330
  W
1318
- ), ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1331
+ ), ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1319
1332
  __proto__: null,
1320
1333
  DEFAULT_OPTIONS: W,
1321
- default: Qt
1322
- }, Symbol.toStringTag, { value: "Module" })), Pe = [{ label: "输入文本", value: "input" }], ze = [{ label: "修改值", value: "changeValue" }], ta = T((r) => {
1334
+ default: ea
1335
+ }, Symbol.toStringTag, { value: "Module" })), Ae = [{ label: "输入文本", value: "input" }], ze = [{ label: "修改值", value: "changeValue" }], aa = T((r) => {
1323
1336
  const { width: e, height: t, options: a, handleTrigger: n, useExpose: i } = r, [o, s] = x(a == null ? void 0 : a.value);
1324
- return wt(() => {
1337
+ return St(() => {
1325
1338
  s(a == null ? void 0 : a.value);
1326
1339
  }, [a == null ? void 0 : a.value]), i({
1327
1340
  changeValue: (l) => {
1328
1341
  s(l);
1329
1342
  }
1330
1343
  }), /* @__PURE__ */ u(
1331
- ge,
1344
+ fe,
1332
1345
  {
1333
1346
  width: e,
1334
1347
  height: t,
@@ -1342,18 +1355,18 @@ const j = {
1342
1355
  }
1343
1356
  }
1344
1357
  );
1345
- }, W), aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1358
+ }, W), na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1346
1359
  __proto__: null,
1347
- default: ta,
1360
+ default: aa,
1348
1361
  inputExposes: ze,
1349
- inputTriggers: Pe
1350
- }, Symbol.toStringTag, { value: "Module" })), na = "_title_dcdbr_59", ia = {
1351
- title: na
1362
+ inputTriggers: Ae
1363
+ }, Symbol.toStringTag, { value: "Module" })), ia = "_title_dcdbr_59", ra = {
1364
+ title: ia
1352
1365
  }, X = {
1353
1366
  value: "标题",
1354
1367
  color: "black",
1355
1368
  fontSize: 18
1356
- }, ra = A(
1369
+ }, oa = z(
1357
1370
  [
1358
1371
  { key: "value", label: "标题", component: "input" },
1359
1372
  { key: "fontSize", label: "字号", component: "inputNumber" },
@@ -1372,11 +1385,11 @@ const j = {
1372
1385
  { key: "textAlign", label: "水平对齐", component: "textAlignSelect" }
1373
1386
  ],
1374
1387
  X
1375
- ), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1388
+ ), sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1376
1389
  __proto__: null,
1377
1390
  DEFAULT_OPTIONS: X,
1378
- default: ra
1379
- }, Symbol.toStringTag, { value: "Module" })), Ae = [{ label: "点击事件", value: "onClick" }], Ne = [{ label: "更新文本", value: "setText" }], sa = T((r) => {
1391
+ default: oa
1392
+ }, Symbol.toStringTag, { value: "Module" })), Ne = [{ label: "点击事件", value: "onClick" }], Ee = [{ label: "更新文本", value: "setText" }], la = T((r) => {
1380
1393
  const { options: e, width: t, height: a, useExpose: n, handleTrigger: i } = r, [o, s] = x();
1381
1394
  return n({
1382
1395
  setText(l) {
@@ -1399,18 +1412,18 @@ const j = {
1399
1412
  letterSpacing: e == null ? void 0 : e.letterSpacing
1400
1413
  },
1401
1414
  onClick: (l) => i("onClick", l),
1402
- className: ia.title,
1415
+ className: ra.title,
1403
1416
  dangerouslySetInnerHTML: {
1404
1417
  __html: o ?? ((e == null ? void 0 : e.value) || "")
1405
1418
  }
1406
1419
  }
1407
1420
  );
1408
- }, X), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1421
+ }, X), ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1409
1422
  __proto__: null,
1410
- default: sa,
1411
- titleExposes: Ne,
1412
- titleTriggers: Ae
1413
- }, Symbol.toStringTag, { value: "Module" })), ca = [
1423
+ default: la,
1424
+ titleExposes: Ee,
1425
+ titleTriggers: Ne
1426
+ }, Symbol.toStringTag, { value: "Module" })), da = [
1414
1427
  {
1415
1428
  cId: "text",
1416
1429
  cName: "文本",
@@ -1420,10 +1433,10 @@ const j = {
1420
1433
  y: 0,
1421
1434
  width: 120,
1422
1435
  height: 32,
1423
- component: c.lazy(() => Promise.resolve().then(() => Wt)),
1424
- attributesComponent: c.lazy(() => Promise.resolve().then(() => jt)),
1425
- triggers: Ce,
1426
- exposes: ke
1436
+ component: c.lazy(() => Promise.resolve().then(() => Xt)),
1437
+ attributesComponent: c.lazy(() => Promise.resolve().then(() => qt)),
1438
+ triggers: ke,
1439
+ exposes: Te
1427
1440
  },
1428
1441
  {
1429
1442
  cId: "input",
@@ -1434,10 +1447,10 @@ const j = {
1434
1447
  y: 0,
1435
1448
  width: 250,
1436
1449
  height: 32,
1437
- triggers: Pe,
1450
+ triggers: Ae,
1438
1451
  exposes: ze,
1439
- component: c.lazy(() => Promise.resolve().then(() => aa)),
1440
- attributesComponent: c.lazy(() => Promise.resolve().then(() => ea))
1452
+ component: c.lazy(() => Promise.resolve().then(() => na)),
1453
+ attributesComponent: c.lazy(() => Promise.resolve().then(() => ta))
1441
1454
  },
1442
1455
  {
1443
1456
  cId: "title",
@@ -1448,10 +1461,10 @@ const j = {
1448
1461
  y: 0,
1449
1462
  width: 120,
1450
1463
  height: 48,
1451
- triggers: Ae,
1452
- exposes: Ne,
1453
- component: c.lazy(() => Promise.resolve().then(() => la)),
1454
- attributesComponent: c.lazy(() => Promise.resolve().then(() => oa))
1464
+ triggers: Ne,
1465
+ exposes: Ee,
1466
+ component: c.lazy(() => Promise.resolve().then(() => ca)),
1467
+ attributesComponent: c.lazy(() => Promise.resolve().then(() => sa))
1455
1468
  },
1456
1469
  {
1457
1470
  cId: "button",
@@ -1462,9 +1475,9 @@ const j = {
1462
1475
  y: 0,
1463
1476
  width: 64,
1464
1477
  height: 32,
1465
- triggers: Te,
1466
- component: c.lazy(() => Promise.resolve().then(() => Yt)),
1467
- attributesComponent: c.lazy(() => Promise.resolve().then(() => Zt))
1478
+ triggers: Pe,
1479
+ component: c.lazy(() => Promise.resolve().then(() => Qt)),
1480
+ attributesComponent: c.lazy(() => Promise.resolve().then(() => Kt))
1468
1481
  },
1469
1482
  {
1470
1483
  cId: "background",
@@ -1475,8 +1488,8 @@ const j = {
1475
1488
  y: 0,
1476
1489
  width: 500,
1477
1490
  height: 300,
1478
- component: c.lazy(() => import("./index-DiaCgMtP.mjs")),
1479
- attributesComponent: c.lazy(() => import("./attributes-CNvZw41R.mjs"))
1491
+ component: c.lazy(() => import("./index-CPLagA1y.mjs")),
1492
+ attributesComponent: c.lazy(() => import("./attributes-L0fyKnQO.mjs"))
1480
1493
  },
1481
1494
  {
1482
1495
  cId: "image",
@@ -1487,8 +1500,8 @@ const j = {
1487
1500
  y: 0,
1488
1501
  width: 270,
1489
1502
  height: 150,
1490
- component: c.lazy(() => import("./index-Cl1TBDdm.mjs")),
1491
- attributesComponent: c.lazy(() => import("./attributes-BhOVe6Nw.mjs"))
1503
+ component: c.lazy(() => import("./index-DIlwx359.mjs")),
1504
+ attributesComponent: c.lazy(() => import("./attributes-DqZ_OZyi.mjs"))
1492
1505
  },
1493
1506
  {
1494
1507
  cId: "dateDisplay",
@@ -1499,8 +1512,8 @@ const j = {
1499
1512
  y: 0,
1500
1513
  width: 250,
1501
1514
  height: 26,
1502
- component: c.lazy(() => import("./index-CR2sC3mu.mjs")),
1503
- attributesComponent: c.lazy(() => import("./attributes-CKQVoQvV.mjs"))
1515
+ component: c.lazy(() => import("./index-CiYtbqfk.mjs")),
1516
+ attributesComponent: c.lazy(() => import("./attributes-BPcQtKOr.mjs"))
1504
1517
  },
1505
1518
  {
1506
1519
  cId: "doubleText",
@@ -1511,26 +1524,26 @@ const j = {
1511
1524
  y: 0,
1512
1525
  width: 120,
1513
1526
  height: 64,
1514
- component: c.lazy(() => import("./index-Do46s3Bo.mjs")),
1515
- attributesComponent: c.lazy(() => import("./attributes-Db9sk_dJ.mjs"))
1516
- }
1517
- ], da = "_carousel_1b8a0_59", ua = "_carousel_bordered_1b8a0_62", ce = {
1518
- carousel: da,
1519
- carousel_bordered: ua
1520
- }, ha = "_editList_sc7sk_59", ga = {
1521
- editList: ha
1522
- }, fa = "_editItem_1azvi_59", ma = "_editItem_left_1azvi_66", ya = "_editItem_body_1azvi_73", pa = "_editItem_body_text_1azvi_77", va = "_editItem_body_text_hover_1azvi_83", _a = "_editItem_right_1azvi_86", ba = "_editRadio_1azvi_89", xa = "_editRadio_hover_1azvi_99", Ia = "_editRadio_selected_1azvi_102", b = {
1523
- editItem: fa,
1524
- editItem_left: ma,
1525
- editItem_body: ya,
1526
- editItem_body_text: pa,
1527
- editItem_body_text_hover: va,
1528
- editItem_right: _a,
1529
- editRadio: ba,
1530
- editRadio_hover: xa,
1531
- editRadio_selected: Ia
1527
+ component: c.lazy(() => import("./index-BFA4TvoH.mjs")),
1528
+ attributesComponent: c.lazy(() => import("./attributes-DUnMdQAM.mjs"))
1529
+ }
1530
+ ], ua = "_carousel_1b8a0_59", ha = "_carousel_bordered_1b8a0_62", de = {
1531
+ carousel: ua,
1532
+ carousel_bordered: ha
1533
+ }, ga = "_editList_sc7sk_59", fa = {
1534
+ editList: ga
1535
+ }, ma = "_editItem_1azvi_59", ya = "_editItem_left_1azvi_66", pa = "_editItem_body_1azvi_73", va = "_editItem_body_text_1azvi_77", _a = "_editItem_body_text_hover_1azvi_83", ba = "_editItem_right_1azvi_86", xa = "_editRadio_1azvi_89", Ia = "_editRadio_hover_1azvi_99", wa = "_editRadio_selected_1azvi_102", b = {
1536
+ editItem: ma,
1537
+ editItem_left: ya,
1538
+ editItem_body: pa,
1539
+ editItem_body_text: va,
1540
+ editItem_body_text_hover: _a,
1541
+ editItem_right: ba,
1542
+ editRadio: xa,
1543
+ editRadio_hover: Ia,
1544
+ editRadio_selected: wa
1532
1545
  };
1533
- function wa(r) {
1546
+ function Sa(r) {
1534
1547
  const { value: e } = r, [t, a] = x(!1), [n, i] = x((e == null ? void 0 : e.label) || ""), [o, s] = x(!1);
1535
1548
  function l() {
1536
1549
  i((e == null ? void 0 : e.label) || ""), a(!0);
@@ -1538,7 +1551,7 @@ function wa(r) {
1538
1551
  function h() {
1539
1552
  var g;
1540
1553
  if (!n) {
1541
- me.warn("必须填写名称");
1554
+ ye.warn("必须填写名称");
1542
1555
  return;
1543
1556
  }
1544
1557
  a(!1), (g = r == null ? void 0 : r.onUpdate) == null || g.call(r, {
@@ -1570,7 +1583,7 @@ function wa(r) {
1570
1583
  }
1571
1584
  ),
1572
1585
  /* @__PURE__ */ u("div", { className: b.editItem_body, children: t ? /* @__PURE__ */ u(
1573
- ge,
1586
+ fe,
1574
1587
  {
1575
1588
  value: n,
1576
1589
  size: "small",
@@ -1597,16 +1610,16 @@ function wa(r) {
1597
1610
  children: e == null ? void 0 : e.label
1598
1611
  }
1599
1612
  ) }),
1600
- /* @__PURE__ */ u("div", { className: b.editItem_right, children: /* @__PURE__ */ C(fe, { children: [
1601
- t ? /* @__PURE__ */ u(D, { title: "保存", children: /* @__PURE__ */ u(mt, { className: b.editList_opt, onClick: h }) }) : /* @__PURE__ */ u(D, { title: "编辑", children: /* @__PURE__ */ u(yt, { className: b.editList_opt, onClick: l }) }),
1602
- /* @__PURE__ */ u(D, { title: "删除", children: /* @__PURE__ */ u(pt, { className: b.editList_opt, onClick: () => {
1613
+ /* @__PURE__ */ u("div", { className: b.editItem_right, children: /* @__PURE__ */ C(me, { children: [
1614
+ t ? /* @__PURE__ */ u(D, { title: "保存", children: /* @__PURE__ */ u(yt, { className: b.editList_opt, onClick: h }) }) : /* @__PURE__ */ u(D, { title: "编辑", children: /* @__PURE__ */ u(pt, { className: b.editList_opt, onClick: l }) }),
1615
+ /* @__PURE__ */ u(D, { title: "删除", children: /* @__PURE__ */ u(vt, { className: b.editList_opt, onClick: () => {
1603
1616
  var g;
1604
1617
  return (g = r == null ? void 0 : r.onDelete) == null ? void 0 : g.call(r);
1605
1618
  } }) })
1606
1619
  ] }) })
1607
1620
  ] });
1608
1621
  }
1609
- function Sa(r) {
1622
+ function Ca(r) {
1610
1623
  const [e, t] = x(!0);
1611
1624
  function a() {
1612
1625
  t(!1), setTimeout(() => {
@@ -1615,12 +1628,12 @@ function Sa(r) {
1615
1628
  }, 300);
1616
1629
  }
1617
1630
  return /* @__PURE__ */ u(
1618
- ut,
1631
+ ht,
1619
1632
  {
1620
1633
  centered: !0,
1621
1634
  open: e,
1622
- title: /* @__PURE__ */ C(fe, { children: [
1623
- /* @__PURE__ */ u(vt, { style: { color: "#f66e0b" } }),
1635
+ title: /* @__PURE__ */ C(me, { children: [
1636
+ /* @__PURE__ */ u(_t, { style: { color: "#f66e0b" } }),
1624
1637
  r == null ? void 0 : r.title
1625
1638
  ] }),
1626
1639
  onCancel: a,
@@ -1634,17 +1647,17 @@ function Sa(r) {
1634
1647
  }
1635
1648
  );
1636
1649
  }
1637
- function Ca(r) {
1650
+ function ka(r) {
1638
1651
  const {
1639
1652
  title: e = "提醒",
1640
1653
  content: t = " 确定执行操作?",
1641
1654
  okText: a = "确定",
1642
1655
  cancelText: n = "取消"
1643
1656
  } = r;
1644
- let i = document.createElement("div"), o = ue(i);
1657
+ let i = document.createElement("div"), o = he(i);
1645
1658
  document.body.append(i), o.render(
1646
1659
  /* @__PURE__ */ u(
1647
- Sa,
1660
+ Ca,
1648
1661
  {
1649
1662
  title: e,
1650
1663
  content: t,
@@ -1663,14 +1676,14 @@ function Ca(r) {
1663
1676
  }
1664
1677
  return s;
1665
1678
  }
1666
- function ka() {
1679
+ function Ta() {
1667
1680
  const r = R();
1668
1681
  return J(() => () => {
1669
1682
  var e;
1670
1683
  (e = r.current) == null || e.forEach((t) => t == null ? void 0 : t()), r.current = void 0;
1671
1684
  }, []), G(() => function(e) {
1672
1685
  var a;
1673
- const t = Ca({
1686
+ const t = ka({
1674
1687
  ...e,
1675
1688
  onOk(n) {
1676
1689
  var i, o, s;
@@ -1688,12 +1701,12 @@ const U = c.createContext({
1688
1701
  engine: void 0,
1689
1702
  rbsEngine: void 0
1690
1703
  });
1691
- function Ee() {
1704
+ function Me() {
1692
1705
  return c.useContext(U);
1693
1706
  }
1694
- function Ta(r) {
1707
+ function Pa(r) {
1695
1708
  var v;
1696
- const { engine: e } = Ee(), { value: t, onSelect: a, list: n = [], onChange: i } = r, o = ka();
1709
+ const { engine: e } = Me(), { value: t, onSelect: a, list: n = [], onChange: i } = r, o = Ta();
1697
1710
  function s(m) {
1698
1711
  var p, f;
1699
1712
  const y = ((p = n == null ? void 0 : n.filter) == null ? void 0 : p.call(n, (_) => _.value !== m)) || [];
@@ -1701,7 +1714,7 @@ function Ta(r) {
1701
1714
  }
1702
1715
  function l(m) {
1703
1716
  if (n.length <= 1) {
1704
- me.warn("至少保留一个面板");
1717
+ ye.warn("至少保留一个面板");
1705
1718
  return;
1706
1719
  }
1707
1720
  const y = e.componentNode.getPanelChildrenIds(m);
@@ -1726,9 +1739,9 @@ function Ta(r) {
1726
1739
  function g(m, y) {
1727
1740
  Object.assign(m, y), i == null || i([...n]);
1728
1741
  }
1729
- return /* @__PURE__ */ C("div", { className: k(ga.editList, r == null ? void 0 : r.className), style: r == null ? void 0 : r.style, children: [
1742
+ return /* @__PURE__ */ C("div", { className: k(fa.editList, r == null ? void 0 : r.className), style: r == null ? void 0 : r.style, children: [
1730
1743
  (v = n == null ? void 0 : n.map) == null ? void 0 : v.call(n, (m) => /* @__PURE__ */ u(
1731
- wa,
1744
+ Sa,
1732
1745
  {
1733
1746
  value: m,
1734
1747
  isSelected: m.value === t,
@@ -1745,12 +1758,12 @@ function Ta(r) {
1745
1758
  m == null ? void 0 : m.value
1746
1759
  )),
1747
1760
  /* @__PURE__ */ u(
1748
- he,
1761
+ ge,
1749
1762
  {
1750
1763
  size: "small",
1751
1764
  type: "dashed",
1752
1765
  block: !0,
1753
- icon: /* @__PURE__ */ u(_t, {}),
1766
+ icon: /* @__PURE__ */ u(bt, {}),
1754
1767
  style: { marginTop: 4 },
1755
1768
  onClick: () => h(),
1756
1769
  children: "新增"
@@ -1762,7 +1775,7 @@ const Z = {
1762
1775
  bordered: !0,
1763
1776
  borderColor: "#ccc"
1764
1777
  // 边框颜色
1765
- }, Pa = A(
1778
+ }, Aa = z(
1766
1779
  [
1767
1780
  { key: "bordered", label: "边框", component: "checkbox" },
1768
1781
  { key: "borderColor", label: "边框颜色", component: "colorPicker" },
@@ -1772,7 +1785,7 @@ const Z = {
1772
1785
  component: ({ useExtra: r }) => {
1773
1786
  const { componentNode: e, onChangeComponentNode: t } = r();
1774
1787
  return /* @__PURE__ */ u(
1775
- Ta,
1788
+ Pa,
1776
1789
  {
1777
1790
  value: e.currentPanelId,
1778
1791
  onSelect: (a) => {
@@ -1795,13 +1808,13 @@ const Z = {
1795
1808
  ), za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1796
1809
  __proto__: null,
1797
1810
  DEFAULT_OPTIONS: Z,
1798
- default: Pa
1799
- }, Symbol.toStringTag, { value: "Module" })), Aa = "_toggleBar_2ldfa_59", Na = "_toggleBar_rect_2ldfa_67", Ea = "_toggleBar_rect_selected_2ldfa_78", H = {
1800
- toggleBar: Aa,
1801
- toggleBar_rect: Na,
1802
- toggleBar_rect_selected: Ea
1811
+ default: Aa
1812
+ }, Symbol.toStringTag, { value: "Module" })), Na = "_toggleBar_2ldfa_59", Ea = "_toggleBar_rect_2ldfa_67", Ma = "_toggleBar_rect_selected_2ldfa_78", H = {
1813
+ toggleBar: Na,
1814
+ toggleBar_rect: Ea,
1815
+ toggleBar_rect_selected: Ma
1803
1816
  };
1804
- function Ma(r) {
1817
+ function La(r) {
1805
1818
  const { count: e = 1, value: t = 0 } = r, a = G(() => Array(e).fill(null).map((n, i) => {
1806
1819
  const o = t === i;
1807
1820
  return /* @__PURE__ */ u(
@@ -1821,12 +1834,12 @@ function Ma(r) {
1821
1834
  }), [e, t]);
1822
1835
  return /* @__PURE__ */ u("div", { className: H.toggleBar, children: a });
1823
1836
  }
1824
- const Me = [
1837
+ const Le = [
1825
1838
  { label: "面板切换", value: "onChange" },
1826
1839
  { label: "面板点击", value: "onClick" }
1827
- ], Le = [{ label: "切换面板", value: "changePanel" }], La = T((r) => {
1840
+ ], Oe = [{ label: "切换面板", value: "changePanel" }], Oa = T((r) => {
1828
1841
  var m;
1829
- const { engine: e } = Ee(), { options: t, width: a, height: n, componentNode: i, handleTrigger: o, useExpose: s } = r, l = R(), [h, g] = x(0);
1842
+ const { engine: e } = Me(), { options: t, width: a, height: n, componentNode: i, handleTrigger: o, useExpose: s } = r, l = R(), [h, g] = x(0);
1830
1843
  function v(y) {
1831
1844
  var f, _;
1832
1845
  const p = (_ = (f = i.panels) == null ? void 0 : f[y]) == null ? void 0 : _.value;
@@ -1838,7 +1851,7 @@ const Me = [
1838
1851
  var p, f;
1839
1852
  const y = (f = (p = i.panels) == null ? void 0 : p.findIndex) == null ? void 0 : f.call(p, (_) => (_ == null ? void 0 : _.value) === (i == null ? void 0 : i.currentPanelId));
1840
1853
  y !== void 0 && v(y);
1841
- }, [i.currentPanelId, i.panels]), St(() => {
1854
+ }, [i.currentPanelId, i.panels]), Ct(() => {
1842
1855
  e.componentNode.hidePanel(l.current);
1843
1856
  }), s({
1844
1857
  changePanel(y) {
@@ -1848,10 +1861,10 @@ const Me = [
1848
1861
  "div",
1849
1862
  {
1850
1863
  style: { width: a, height: n, borderColor: t == null ? void 0 : t.borderColor },
1851
- className: k(ce.carousel, (t == null ? void 0 : t.bordered) && ce.carousel_bordered),
1864
+ className: k(de.carousel, (t == null ? void 0 : t.bordered) && de.carousel_bordered),
1852
1865
  onClick: () => o("onClick"),
1853
1866
  children: /* @__PURE__ */ u(
1854
- Ma,
1867
+ La,
1855
1868
  {
1856
1869
  value: h,
1857
1870
  count: (m = i.panels) == null ? void 0 : m.length,
@@ -1860,12 +1873,12 @@ const Me = [
1860
1873
  )
1861
1874
  }
1862
1875
  );
1863
- }, Z), Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1876
+ }, Z), Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1864
1877
  __proto__: null,
1865
- default: La,
1866
- exposes: Le,
1867
- triggers: Me
1868
- }, Symbol.toStringTag, { value: "Module" })), Da = [
1878
+ default: Oa,
1879
+ exposes: Oe,
1880
+ triggers: Le
1881
+ }, Symbol.toStringTag, { value: "Module" })), Ra = [
1869
1882
  {
1870
1883
  cId: "carousel",
1871
1884
  cName: "走马灯",
@@ -1875,7 +1888,7 @@ const Me = [
1875
1888
  y: 0,
1876
1889
  width: 500,
1877
1890
  height: 250,
1878
- component: c.lazy(() => Promise.resolve().then(() => Oa)),
1891
+ component: c.lazy(() => Promise.resolve().then(() => Da)),
1879
1892
  attributesComponent: c.lazy(() => Promise.resolve().then(() => za)),
1880
1893
  panels: [
1881
1894
  {
@@ -1887,8 +1900,8 @@ const Me = [
1887
1900
  value: ""
1888
1901
  }
1889
1902
  ],
1890
- triggers: Me,
1891
- exposes: Le
1903
+ triggers: Le,
1904
+ exposes: Oe
1892
1905
  },
1893
1906
  {
1894
1907
  cId: "specialCard",
@@ -1898,12 +1911,12 @@ const Me = [
1898
1911
  y: 0,
1899
1912
  width: 400,
1900
1913
  height: 300,
1901
- component: c.lazy(() => import("./index-DOx-TcxR.mjs")),
1902
- attributesComponent: c.lazy(() => import("./attributes-D_7z174b.mjs")),
1914
+ component: c.lazy(() => import("./index-C2T3keq0.mjs")),
1915
+ attributesComponent: c.lazy(() => import("./attributes-B7-hDzkQ.mjs")),
1903
1916
  icon: () => import("./specialCard-jikYSVVg.mjs"),
1904
1917
  panels: [{ label: "特殊卡片", value: "" }]
1905
1918
  }
1906
- ], Ra = [
1919
+ ], Fa = [
1907
1920
  {
1908
1921
  cId: "pie",
1909
1922
  cName: "饼形图",
@@ -1913,7 +1926,7 @@ const Me = [
1913
1926
  y: 0,
1914
1927
  width: 250,
1915
1928
  height: 250,
1916
- component: c.lazy(() => import("./index-KR0QAPWF.mjs"))
1929
+ component: c.lazy(() => import("./index-DFiF1j8B.mjs"))
1917
1930
  },
1918
1931
  {
1919
1932
  cId: "line",
@@ -1924,8 +1937,8 @@ const Me = [
1924
1937
  y: 0,
1925
1938
  width: 250,
1926
1939
  height: 250,
1927
- component: c.lazy(() => import("./index-CZaKlOGF.mjs")),
1928
- attributesComponent: c.lazy(() => import("./attributes-COWyZqgA.mjs")),
1940
+ component: c.lazy(() => import("./index-wkPXgVxT.mjs")),
1941
+ attributesComponent: c.lazy(() => import("./attributes-DmnMCZfI.mjs")),
1929
1942
  dataSourceType: "static",
1930
1943
  staticDataSource: [
1931
1944
  { name: "选项一", value1: 100, value2: 200, value3: 300 },
@@ -1942,7 +1955,7 @@ const Me = [
1942
1955
  y: 0,
1943
1956
  width: 250,
1944
1957
  height: 250,
1945
- component: c.lazy(() => import("./index-DJCJ9mDa.mjs"))
1958
+ component: c.lazy(() => import("./index-Csn1J3aw.mjs"))
1946
1959
  },
1947
1960
  {
1948
1961
  cId: "radar",
@@ -1954,7 +1967,7 @@ const Me = [
1954
1967
  width: 350,
1955
1968
  height: 300,
1956
1969
  options: {},
1957
- component: c.lazy(() => import("./index-QkxDL_fl.mjs"))
1970
+ component: c.lazy(() => import("./index-Dmgsn6Wm.mjs"))
1958
1971
  },
1959
1972
  {
1960
1973
  cId: "gauge",
@@ -1966,7 +1979,7 @@ const Me = [
1966
1979
  width: 350,
1967
1980
  height: 300,
1968
1981
  options: {},
1969
- component: c.lazy(() => import("./index-Bt7Z5pcG.mjs"))
1982
+ component: c.lazy(() => import("./index-F_ek5l7j.mjs"))
1970
1983
  },
1971
1984
  {
1972
1985
  cId: "horizontalBar",
@@ -1978,7 +1991,7 @@ const Me = [
1978
1991
  width: 350,
1979
1992
  height: 300,
1980
1993
  options: {},
1981
- component: c.lazy(() => import("./index-Mr6nPhGt.mjs"))
1994
+ component: c.lazy(() => import("./index-D6jgslIW.mjs"))
1982
1995
  },
1983
1996
  {
1984
1997
  cId: "barLine",
@@ -1990,7 +2003,7 @@ const Me = [
1990
2003
  width: 350,
1991
2004
  height: 300,
1992
2005
  options: {},
1993
- component: c.lazy(() => import("./index-B_otqPpE.mjs"))
2006
+ component: c.lazy(() => import("./index-7dLD8uUE.mjs"))
1994
2007
  },
1995
2008
  {
1996
2009
  cId: "ring",
@@ -2002,10 +2015,10 @@ const Me = [
2002
2015
  width: 350,
2003
2016
  height: 300,
2004
2017
  options: {},
2005
- component: c.lazy(() => import("./index-DTx3K3TW.mjs")),
2006
- attributesComponent: c.lazy(() => import("./attributes-ICDLlHKL.mjs"))
2018
+ component: c.lazy(() => import("./index-BXq0hs6M.mjs")),
2019
+ attributesComponent: c.lazy(() => import("./attributes-B5HWQZZK.mjs"))
2007
2020
  }
2008
- ], Fa = [
2021
+ ], Ha = [
2009
2022
  {
2010
2023
  cId: "page-nav",
2011
2024
  cName: "页面导航栏",
@@ -2017,22 +2030,22 @@ const Me = [
2017
2030
  width: 300,
2018
2031
  height: 32,
2019
2032
  isAllPage: !0,
2020
- component: c.lazy(() => import("./index-DIXk7ULh.mjs"))
2033
+ component: c.lazy(() => import("./index-CiVNQoxr.mjs"))
2021
2034
  }
2022
2035
  ];
2023
- async function Ha(r, e = 300) {
2036
+ async function $a(r, e = 300) {
2024
2037
  return new Promise((t) => {
2025
2038
  setTimeout(() => {
2026
2039
  t(r);
2027
2040
  }, e);
2028
2041
  });
2029
2042
  }
2030
- const de = {
2043
+ const ue = {
2031
2044
  name: "",
2032
2045
  age: "",
2033
2046
  sex: "",
2034
2047
  address: ""
2035
- }, $a = [
2048
+ }, Ba = [
2036
2049
  { name: "唐某人", age: "25", sex: "男", address: "浙江省杭州市" },
2037
2050
  { name: "赵某人", age: "12", sex: "男", address: "浙江省杭州市" },
2038
2051
  { name: "狐某人", age: "300", sex: "女", address: "浙江省杭州市" },
@@ -2045,7 +2058,7 @@ const de = {
2045
2058
  { name: "雷某人", age: "32332", sex: "男", address: "浙江省杭州市" },
2046
2059
  { name: "魔某人", age: "12", sex: "女", address: "浙江省杭州市" }
2047
2060
  ];
2048
- function Ba(r, e) {
2061
+ function Ua(r, e) {
2049
2062
  var o, s, l, h, g, v, m, y;
2050
2063
  const t = (s = (o = e == null ? void 0 : e.name) == null ? void 0 : o.toLowerCase) == null ? void 0 : s.call(o), a = (h = (l = e == null ? void 0 : e.age) == null ? void 0 : l.toLowerCase) == null ? void 0 : h.call(l), n = (v = (g = e == null ? void 0 : e.sex) == null ? void 0 : g.toLowerCase) == null ? void 0 : v.call(g), i = (y = (m = e == null ? void 0 : e.address) == null ? void 0 : m.toLowerCase) == null ? void 0 : y.call(m);
2051
2064
  return r.filter((p) => {
@@ -2054,21 +2067,21 @@ function Ba(r, e) {
2054
2067
  return _ && t && (f = (K = (N = p == null ? void 0 : p.name) == null ? void 0 : N.toLowerCase) == null ? void 0 : K.call(N)) && (_ = (Y = f == null ? void 0 : f.includes) == null ? void 0 : Y.call(f, t)), _ && a && (f = (Q = (E = p == null ? void 0 : p.age) == null ? void 0 : E.toLowerCase) == null ? void 0 : Q.call(E)) && (_ = (ee = f == null ? void 0 : f.includes) == null ? void 0 : ee.call(f, a)), _ && n && (f = (te = (M = p == null ? void 0 : p.sex) == null ? void 0 : M.toLowerCase) == null ? void 0 : te.call(M)) && (_ = (ae = f == null ? void 0 : f.includes) == null ? void 0 : ae.call(f, n)), _ && i && (f = (ne = (L = p == null ? void 0 : p.address) == null ? void 0 : L.toLowerCase) == null ? void 0 : ne.call(L)) && (_ = (ie = f == null ? void 0 : f.includes) == null ? void 0 : ie.call(f, i)), _;
2055
2068
  });
2056
2069
  }
2057
- function Ua(r) {
2070
+ function Ga(r) {
2058
2071
  const [e, t] = x(r), a = R(e);
2059
2072
  return a.current = e, [e, t, a];
2060
2073
  }
2061
- const wn = ot(
2074
+ const Sn = st(
2062
2075
  (r, e) => {
2063
2076
  const t = r == null ? void 0 : r.component, [a, n] = x(), [i, o] = x(!1), [s, l] = x(!0);
2064
- return st(e, () => ({
2077
+ return lt(e, () => ({
2065
2078
  open(h) {
2066
2079
  n(h), o(!0), l(!1);
2067
2080
  },
2068
2081
  close(h = !0) {
2069
2082
  o(!1), l(h);
2070
2083
  }
2071
- })), !t || s ? /* @__PURE__ */ u(et, {}) : /* @__PURE__ */ u(
2084
+ })), !t || s ? /* @__PURE__ */ u(tt, {}) : /* @__PURE__ */ u(
2072
2085
  t,
2073
2086
  {
2074
2087
  params: a,
@@ -2087,20 +2100,20 @@ const wn = ot(
2087
2100
  }
2088
2101
  );
2089
2102
  }
2090
- ), Oe = [
2103
+ ), De = [
2091
2104
  { label: "刷新", value: "refresh" },
2092
2105
  { label: "修改筛选项", value: "changeFilter" },
2093
2106
  { label: "设置筛选项", value: "setFilter" },
2094
2107
  { label: "清空筛选项", value: "clearFilter" }
2095
- ], Ga = T((r) => {
2096
- const { width: e, height: t, useExpose: a } = r, [n, i, o] = Ua(de), {
2108
+ ], Ja = T((r) => {
2109
+ const { width: e, height: t, useExpose: a } = r, [n, i, o] = Ga(ue), {
2097
2110
  data: s = [],
2098
2111
  loading: l,
2099
2112
  refresh: h
2100
- } = Ct(
2113
+ } = kt(
2101
2114
  async () => {
2102
- const v = await Ha($a);
2103
- return Ba(v, n);
2115
+ const v = await $a(Ba);
2116
+ return Ua(v, n);
2104
2117
  },
2105
2118
  {
2106
2119
  refreshDeps: [n]
@@ -2125,10 +2138,10 @@ const wn = ot(
2125
2138
  i(v);
2126
2139
  },
2127
2140
  clearFilter: () => {
2128
- i({ ...de });
2141
+ i({ ...ue });
2129
2142
  }
2130
2143
  }), /* @__PURE__ */ u(
2131
- ht,
2144
+ gt,
2132
2145
  {
2133
2146
  style: { width: e, height: t, overflow: "hidden auto" },
2134
2147
  columns: g,
@@ -2137,11 +2150,11 @@ const wn = ot(
2137
2150
  pagination: !1
2138
2151
  }
2139
2152
  );
2140
- }), Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2153
+ }), Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2141
2154
  __proto__: null,
2142
- default: Ga,
2143
- peopleExposes: Oe
2144
- }, Symbol.toStringTag, { value: "Module" })), Va = [
2155
+ default: Ja,
2156
+ peopleExposes: De
2157
+ }, Symbol.toStringTag, { value: "Module" })), ja = [
2145
2158
  {
2146
2159
  cId: "peopleTable",
2147
2160
  cName: "人员表格",
@@ -2152,8 +2165,8 @@ const wn = ot(
2152
2165
  y: 0,
2153
2166
  width: 600,
2154
2167
  height: 300,
2155
- exposes: Oe,
2156
- component: c.lazy(() => Promise.resolve().then(() => Ja))
2168
+ exposes: De,
2169
+ component: c.lazy(() => Promise.resolve().then(() => Va))
2157
2170
  },
2158
2171
  {
2159
2172
  cId: "chinaMap",
@@ -2165,8 +2178,8 @@ const wn = ot(
2165
2178
  y: 0,
2166
2179
  width: 500,
2167
2180
  height: 500,
2168
- component: c.lazy(() => import("./index-DQnoNvaR.mjs")),
2169
- attributesComponent: c.lazy(() => import("./attributes-C9kdt2P4.mjs"))
2181
+ component: c.lazy(() => import("./index-DI0SW2E2.mjs")),
2182
+ attributesComponent: c.lazy(() => import("./attributes-IOCRHiLe.mjs"))
2170
2183
  },
2171
2184
  {
2172
2185
  cId: "scrollList",
@@ -2187,8 +2200,8 @@ const wn = ot(
2187
2200
  { key: "5", title: "培训项目二", status: "2" },
2188
2201
  { key: "6", title: "tjh项目", status: "1" }
2189
2202
  ],
2190
- component: c.lazy(() => import("./index-DjwCZvsj.mjs")),
2191
- attributesComponent: c.lazy(() => import("./attributes-DX29Qkf4.mjs"))
2203
+ component: c.lazy(() => import("./index-CRaab8fv.mjs")),
2204
+ attributesComponent: c.lazy(() => import("./attributes-D-gloXi5.mjs"))
2192
2205
  },
2193
2206
  {
2194
2207
  cId: "defaultImage",
@@ -2200,8 +2213,8 @@ const wn = ot(
2200
2213
  y: 0,
2201
2214
  width: 150,
2202
2215
  height: 150,
2203
- component: c.lazy(() => import("./index-Dd2HXuLY.mjs")),
2204
- attributesComponent: c.lazy(() => import("./attributes-S7TYD0S5.mjs"))
2216
+ component: c.lazy(() => import("./index-s9MOJecX.mjs")),
2217
+ attributesComponent: c.lazy(() => import("./attributes-BylM83oA.mjs"))
2205
2218
  },
2206
2219
  {
2207
2220
  cId: "ProgressList",
@@ -2222,8 +2235,8 @@ const wn = ot(
2222
2235
  { key: "5", title: "培训项目二", count: 200 },
2223
2236
  { key: "6", title: "tjh项目", count: 0 }
2224
2237
  ],
2225
- component: c.lazy(() => import("./index-CiRuNGX5.mjs")),
2226
- attributesComponent: c.lazy(() => import("./attributes-Bqwv78vP.mjs"))
2238
+ component: c.lazy(() => import("./index-YRf4xbh7.mjs")),
2239
+ attributesComponent: c.lazy(() => import("./attributes-BpX4Fdw9.mjs"))
2227
2240
  },
2228
2241
  {
2229
2242
  cId: "specialTitle",
@@ -2235,29 +2248,29 @@ const wn = ot(
2235
2248
  y: 0,
2236
2249
  width: 500,
2237
2250
  height: 32,
2238
- component: c.lazy(() => import("./index-4IXWh7p-.mjs")),
2239
- attributesComponent: c.lazy(() => import("./attributes-CxmgjIr4.mjs"))
2251
+ component: c.lazy(() => import("./index-bwKeYi6r.mjs")),
2252
+ attributesComponent: c.lazy(() => import("./attributes-C6vh9nyy.mjs"))
2240
2253
  }
2241
- ], ja = {
2254
+ ], qa = {
2242
2255
  id: "system",
2243
2256
  name: "默认组件包",
2244
2257
  origin: "system",
2245
- version: "0.0.27",
2258
+ version: "0.0.28",
2246
2259
  description: "由官方发布的组件库,随编辑器主版本迭代而更新。",
2247
2260
  components: [
2248
- ...ca,
2261
+ ...da,
2249
2262
  // 基础组件
2250
- ...Da,
2251
- // 布局组件
2252
2263
  ...Ra,
2253
- // 图表组件
2264
+ // 布局组件
2254
2265
  ...Fa,
2266
+ // 图表组件
2267
+ ...Ha,
2255
2268
  // 导航组件
2256
- ...Va
2269
+ ...ja
2257
2270
  // 其他组件
2258
2271
  ]
2259
2272
  };
2260
- class qa {
2273
+ class Wa {
2261
2274
  constructor() {
2262
2275
  d(this, "map", /* @__PURE__ */ new Map());
2263
2276
  }
@@ -2313,7 +2326,7 @@ class qa {
2313
2326
  this.map.clear();
2314
2327
  }
2315
2328
  }
2316
- const Wa = {
2329
+ const Xa = {
2317
2330
  reset: "重置",
2318
2331
  menu: {
2319
2332
  bar: {
@@ -2391,7 +2404,7 @@ const Wa = {
2391
2404
  title: "交互"
2392
2405
  }
2393
2406
  }
2394
- }, Xa = {
2407
+ }, Za = {
2395
2408
  reset: "reset",
2396
2409
  menu: {
2397
2410
  bar: {
@@ -2469,25 +2482,25 @@ const Wa = {
2469
2482
  title: "interactive"
2470
2483
  }
2471
2484
  }
2472
- }, Sn = {
2485
+ }, Cn = {
2473
2486
  zh: "zh"
2474
2487
  };
2475
- function Za(r) {
2476
- pe.changeLanguage(r);
2488
+ function Ka(r) {
2489
+ ve.changeLanguage(r);
2477
2490
  }
2478
- pe.use(xt).use(bt).init({
2491
+ ve.use(It).use(xt).init({
2479
2492
  lng: "zh",
2480
2493
  fallbackLng: "en",
2481
2494
  resources: {
2482
2495
  en: {
2483
- translation: Xa
2496
+ translation: Za
2484
2497
  },
2485
2498
  zh: {
2486
- translation: Wa
2499
+ translation: Xa
2487
2500
  }
2488
2501
  }
2489
2502
  });
2490
- class Ka {
2503
+ class Ya {
2491
2504
  constructor() {
2492
2505
  d(this, "initData");
2493
2506
  // 初始化data(不在list中)
@@ -2535,7 +2548,7 @@ class Ka {
2535
2548
  getInitDataRecordItem() {
2536
2549
  return {
2537
2550
  stepId: "init",
2538
- data: ye(this.initData),
2551
+ data: pe(this.initData),
2539
2552
  isPass: !0
2540
2553
  };
2541
2554
  }
@@ -2597,7 +2610,7 @@ class Ka {
2597
2610
  };
2598
2611
  }
2599
2612
  }
2600
- It.interceptors.request.use((r, e) => ((e == null ? void 0 : e.useCache) === void 0 && (e.useCache = !0, e.ttl === void 0 && (e.ttl = 2e3)), {
2613
+ wt.interceptors.request.use((r, e) => ((e == null ? void 0 : e.useCache) === void 0 && (e.useCache = !0, e.ttl === void 0 && (e.ttl = 2e3)), {
2601
2614
  url: r,
2602
2615
  options: e
2603
2616
  }));
@@ -2605,12 +2618,12 @@ const $ = {
2605
2618
  visible: "$_visible",
2606
2619
  request: "$_request",
2607
2620
  custom: "$_custom"
2608
- }, Ya = [
2621
+ }, Qa = [
2609
2622
  { label: "显隐", value: $.visible },
2610
2623
  { label: "请求", value: $.request },
2611
2624
  { label: "自定义函数", value: $.custom }
2612
- ], Cn = Ya.reduce((r, e) => (r[e.value] = e.label, r), {});
2613
- class Qa {
2625
+ ], kn = Qa.reduce((r, e) => (r[e.value] = e.label, r), {});
2626
+ class en {
2614
2627
  constructor(e) {
2615
2628
  // 载入的json对象
2616
2629
  d(this, "json");
@@ -2619,21 +2632,21 @@ class Qa {
2619
2632
  // setTimeout的id
2620
2633
  d(this, "timerId");
2621
2634
  // 组件模板
2622
- d(this, "component", new Mt());
2635
+ d(this, "component", new Lt());
2623
2636
  // 组件数据实例
2624
- d(this, "componentNode", new Bt());
2637
+ d(this, "componentNode", new Ut());
2625
2638
  // 组件行为实例
2626
- d(this, "instance", new Lt());
2639
+ d(this, "instance", new Ot());
2627
2640
  // 全局配置
2628
- d(this, "config", new Gt());
2641
+ d(this, "config", new Jt());
2629
2642
  // 事件
2630
- d(this, "events", new qa());
2643
+ d(this, "events", new Wa());
2631
2644
  // 收藏夹
2632
- d(this, "favorites", new Jt());
2645
+ d(this, "favorites", new Vt());
2633
2646
  // 子页面管理
2634
- d(this, "page", new Ut());
2647
+ d(this, "page", new Gt());
2635
2648
  // 历史记录管理
2636
- d(this, "history", new Ka());
2649
+ d(this, "history", new Ya());
2637
2650
  d(this, "_options", {});
2638
2651
  var t;
2639
2652
  this._options = this.formatOptions(e), (t = this._options) != null && t.defaultComponents && this.registerDefaultPackage();
@@ -2643,14 +2656,14 @@ class Qa {
2643
2656
  }
2644
2657
  // 注册默认package
2645
2658
  async registerDefaultPackage() {
2646
- this.component.initPackages(ja);
2659
+ this.component.initPackages(qa);
2647
2660
  }
2648
2661
  // 加载json对象
2649
2662
  async loadJSON(e) {
2650
2663
  return new Promise((t, a) => {
2651
2664
  var n, i, o;
2652
2665
  try {
2653
- this.json = e, Za(((n = e == null ? void 0 : e.config) == null ? void 0 : n.language) || "zh"), this.config.setConfig({
2666
+ this.json = e, Ka(((n = e == null ? void 0 : e.config) == null ? void 0 : n.language) || "zh"), this.config.setConfig({
2654
2667
  ...B,
2655
2668
  ...e == null ? void 0 : e.config,
2656
2669
  currentPageId: ((i = e == null ? void 0 : e.config) == null ? void 0 : i.currentPageId) || S.id
@@ -2666,10 +2679,10 @@ class Qa {
2666
2679
  }
2667
2680
  // 加载json对象
2668
2681
  async loadJSONString(e) {
2669
- return new Promise((t, a) => {
2682
+ return new Promise(async (t, a) => {
2670
2683
  try {
2671
2684
  const n = JSON.parse(e || "{}");
2672
- this.loadJSON(n), t();
2685
+ await this.loadJSON(n), t();
2673
2686
  } catch (n) {
2674
2687
  a(n);
2675
2688
  }
@@ -2715,7 +2728,7 @@ class Qa {
2715
2728
  this.component.unRegisterAll();
2716
2729
  }
2717
2730
  }
2718
- const De = {
2731
+ const Re = {
2719
2732
  chinaMap: {
2720
2733
  count: 1
2721
2734
  },
@@ -2749,7 +2762,7 @@ const De = {
2749
2762
  ring: {
2750
2763
  count: 1
2751
2764
  }
2752
- }, Re = [
2765
+ }, Fe = [
2753
2766
  {
2754
2767
  cId: "chinaMap",
2755
2768
  cName: "中国地图",
@@ -3754,7 +3767,7 @@ const De = {
3754
3767
  dataSourceType: "static",
3755
3768
  show: !0
3756
3769
  }
3757
- ], Fe = {
3770
+ ], He = {
3758
3771
  scale: 0.39999999999999986,
3759
3772
  scaleDefault: 1,
3760
3773
  scaleStep: 0.02,
@@ -3768,7 +3781,7 @@ const De = {
3768
3781
  currentMenu: "library",
3769
3782
  currentPage: "default",
3770
3783
  language: "zh"
3771
- }, He = [], $e = [], Be = [], Ue = [
3784
+ }, $e = [], Be = [], Ue = [], Ge = [
3772
3785
  {
3773
3786
  id: "default",
3774
3787
  name: "大屏页面",
@@ -3777,25 +3790,25 @@ const De = {
3777
3790
  whiteBoardColor: "#0d2a42"
3778
3791
  }
3779
3792
  }
3780
- ], Ge = {
3781
- used: De,
3782
- componentNodes: Re,
3783
- config: Fe,
3784
- selectedIds: He,
3785
- localPackages: $e,
3786
- favorites: Be,
3787
- pages: Ue
3788
- }, kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3793
+ ], Je = {
3794
+ used: Re,
3795
+ componentNodes: Fe,
3796
+ config: He,
3797
+ selectedIds: $e,
3798
+ localPackages: Be,
3799
+ favorites: Ue,
3800
+ pages: Ge
3801
+ }, Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3789
3802
  __proto__: null,
3790
- componentNodes: Re,
3791
- config: Fe,
3792
- default: Ge,
3793
- favorites: Be,
3794
- localPackages: $e,
3795
- pages: Ue,
3796
- selectedIds: He,
3797
- used: De
3798
- }, Symbol.toStringTag, { value: "Module" })), Je = {
3803
+ componentNodes: Fe,
3804
+ config: He,
3805
+ default: Je,
3806
+ favorites: Ue,
3807
+ localPackages: Be,
3808
+ pages: Ge,
3809
+ selectedIds: $e,
3810
+ used: Re
3811
+ }, Symbol.toStringTag, { value: "Module" })), Ve = {
3799
3812
  peopleTable: {
3800
3813
  count: 1
3801
3814
  },
@@ -3808,7 +3821,7 @@ const De = {
3808
3821
  button: {
3809
3822
  count: 2
3810
3823
  }
3811
- }, Ve = [
3824
+ }, je = [
3812
3825
  {
3813
3826
  cId: "peopleTable",
3814
3827
  cName: "人员表格",
@@ -4144,7 +4157,7 @@ function main(value, {origin, target, option}) {
4144
4157
  }
4145
4158
  ]
4146
4159
  }
4147
- ], je = {
4160
+ ], qe = {
4148
4161
  scale: 0.6709999999999992,
4149
4162
  scaleDefault: 1,
4150
4163
  scaleStep: 0.02,
@@ -4158,7 +4171,7 @@ function main(value, {origin, target, option}) {
4158
4171
  currentMenu: "library",
4159
4172
  currentPage: "default",
4160
4173
  language: "zh"
4161
- }, qe = [], We = [], Xe = [
4174
+ }, We = [], Xe = [], Ze = [
4162
4175
  {
4163
4176
  id: "b74a34caf4",
4164
4177
  name: "收藏1",
@@ -4227,33 +4240,33 @@ function main(value, {origin, target, option}) {
4227
4240
  ],
4228
4241
  gmtCreate: "2025-03-25 10:54:46"
4229
4242
  }
4230
- ], Ze = [
4243
+ ], Ke = [
4231
4244
  {
4232
4245
  name: "多组件联动",
4233
4246
  id: "58de04a398"
4234
4247
  }
4235
- ], Ke = {
4236
- used: Je,
4237
- componentNodes: Ve,
4238
- config: je,
4239
- selectedIds: qe,
4240
- localPackages: We,
4241
- favorites: Xe,
4242
- pages: Ze
4243
- }, Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4248
+ ], Ye = {
4249
+ used: Ve,
4250
+ componentNodes: je,
4251
+ config: qe,
4252
+ selectedIds: We,
4253
+ localPackages: Xe,
4254
+ favorites: Ze,
4255
+ pages: Ke
4256
+ }, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4244
4257
  __proto__: null,
4245
- componentNodes: Ve,
4246
- config: je,
4247
- default: Ke,
4248
- favorites: Xe,
4249
- localPackages: We,
4250
- pages: Ze,
4251
- selectedIds: qe,
4252
- used: Je
4253
- }, Symbol.toStringTag, { value: "Module" })), Pn = {
4254
- classic: Ge,
4255
- multiple_components_interactive: Ke
4256
- }, O = "_$_rbs_current_engine_$_", en = c.lazy(() => import("./index-CF9Gq4DE.mjs")), tn = c.lazy(() => import("./index-BP0M5ksu.mjs"));
4258
+ componentNodes: je,
4259
+ config: qe,
4260
+ default: Ye,
4261
+ favorites: Ze,
4262
+ localPackages: Xe,
4263
+ pages: Ke,
4264
+ selectedIds: We,
4265
+ used: Ve
4266
+ }, Symbol.toStringTag, { value: "Module" })), An = {
4267
+ classic: Je,
4268
+ multiple_components_interactive: Ye
4269
+ }, O = "_$_rbs_current_engine_$_", tn = c.lazy(() => import("./index-C40e9pm9.mjs")), an = c.lazy(() => import("./index-UsnN384D.mjs"));
4257
4270
  class zn {
4258
4271
  constructor(e) {
4259
4272
  /** react createApp */
@@ -4288,7 +4301,7 @@ class zn {
4288
4301
  pageLogo: o,
4289
4302
  pageToolBar: s,
4290
4303
  toolBarOptions: l
4291
- }, this.engine = new Qa(h), n && this.mount(n), t && this.activeGlobal(), a && this.on("startPreview", a);
4304
+ }, this.engine = new en(h), n && this.mount(n), t && this.activeGlobal(), a && this.on("startPreview", a);
4292
4305
  }
4293
4306
  /**
4294
4307
  * 挂载dom(会触发编辑器渲染)
@@ -4370,9 +4383,9 @@ class zn {
4370
4383
  try {
4371
4384
  if (!this.el)
4372
4385
  throw new Error("el not found.");
4373
- this.app ? this.engine.loadJSON(e).then(() => t()) : (this.app = ue(this.el), this.mode === "edit" ? this.app.render(
4386
+ this.app ? this.engine.loadJSON(e).then(() => t()) : (this.app = he(this.el), this.mode === "edit" ? this.app.render(
4374
4387
  /* @__PURE__ */ u(U.Provider, { value: { engine: this.engine, rbsEngine: this }, children: /* @__PURE__ */ u(
4375
- en,
4388
+ tn,
4376
4389
  {
4377
4390
  json: e,
4378
4391
  engine: this.engine,
@@ -4384,7 +4397,7 @@ class zn {
4384
4397
  }
4385
4398
  ) })
4386
4399
  ) : this.mode === "preview" && this.app.render(
4387
- /* @__PURE__ */ u(U.Provider, { value: { engine: this.engine, rbsEngine: this }, children: /* @__PURE__ */ u(tn, { json: e, engine: this.engine, onJSONLoad: t }) })
4400
+ /* @__PURE__ */ u(U.Provider, { value: { engine: this.engine, rbsEngine: this }, children: /* @__PURE__ */ u(an, { json: e, engine: this.engine, onJSONLoad: t }) })
4388
4401
  ));
4389
4402
  } catch (l) {
4390
4403
  a(l);
@@ -4417,31 +4430,31 @@ class zn {
4417
4430
  }
4418
4431
  }
4419
4432
  export {
4420
- Se as C,
4433
+ Ce as C,
4421
4434
  S as D,
4422
4435
  U as E,
4423
4436
  $ as I,
4424
- Sn as L,
4437
+ Cn as L,
4425
4438
  zn as R,
4426
- wn as a,
4427
- ve as b,
4439
+ Sn as a,
4440
+ _e as b,
4428
4441
  I as c,
4429
- Za as d,
4430
- kt as e,
4431
- ka as f,
4432
- _e as g,
4433
- xn as h,
4434
- Ua as i,
4435
- Ca as j,
4436
- Ya as k,
4442
+ Ka as d,
4443
+ Tt as e,
4444
+ Ta as f,
4445
+ be as g,
4446
+ In as h,
4447
+ Ga as i,
4448
+ ka as j,
4449
+ Qa as k,
4437
4450
  oe as l,
4438
- Cn as m,
4451
+ kn as m,
4439
4452
  T as n,
4440
- A as o,
4441
- ja as p,
4442
- Pn as q,
4443
- kn as r,
4444
- In as s,
4445
- Tn as t,
4446
- Ee as u
4453
+ z as o,
4454
+ qa as p,
4455
+ An as q,
4456
+ Tn as r,
4457
+ wn as s,
4458
+ Pn as t,
4459
+ Me as u
4447
4460
  };