react-big-screen 0.0.19 → 0.0.20

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/es/{IInputNumber-8TbQFEeQ.mjs → IInputNumber-Vk6zq2bP.mjs} +3 -3
  2. package/es/{Line-h-rhOKev.mjs → Line-nA3VtARp.mjs} +37 -37
  3. package/es/{attributes-CxnJg-FT.mjs → attributes-BDcSpbcs.mjs} +3 -3
  4. package/es/{attributes-DBip_IK_.mjs → attributes-BWjMqQ_s.mjs} +56 -55
  5. package/es/{attributes-NVduSBUS.mjs → attributes-BZxcK9tt.mjs} +4 -4
  6. package/es/{attributes-BDv3jJ5O.mjs → attributes-C7YISj8O.mjs} +3 -3
  7. package/es/{attributes-CauLjFb0.mjs → attributes-CbI6ZNLl.mjs} +3 -3
  8. package/es/{attributes-DYnxULqW.mjs → attributes-Cg2w2wqR.mjs} +3 -3
  9. package/es/{attributes-BIXlzE3A.mjs → attributes-Ck-M5Rw3.mjs} +3 -3
  10. package/es/{attributes-CgnjWsLu.mjs → attributes-Dk4Khv-P.mjs} +3 -3
  11. package/es/{attributes-5RpQLPsm.mjs → attributes-DuAsVU2g.mjs} +6 -6
  12. package/es/{attributes-CqNLwRW3.mjs → attributes-Nwf_EnEX.mjs} +7 -7
  13. package/es/{attributes-CuUxWoIW.mjs → attributes-OZgEPZfV.mjs} +3 -3
  14. package/es/{attributes-B8s8kYoD.mjs → attributes-jJg_yENs.mjs} +3 -3
  15. package/es/{index-D07zNDg9.mjs → index-7n0O_7or.mjs} +11 -11
  16. package/es/{index-Dvs_cgct.mjs → index-B1ohG9Hu.mjs} +8 -8
  17. package/es/{index-CFdcAnNu.mjs → index-B75SSKFG.mjs} +5 -5
  18. package/es/{index-CBAcYtqX.mjs → index-B8Ei_KZZ.mjs} +5 -5
  19. package/es/{index-Bdqrb_sj.mjs → index-BF07nOIu.mjs} +5 -5
  20. package/es/{index-Bi3lZwlI.mjs → index-BUic5qZC.mjs} +55 -54
  21. package/es/{index-BVjByyUe.mjs → index-BemZB0VC.mjs} +4 -4
  22. package/es/{index-C49BBpRX.mjs → index-BnaaZaeo.mjs} +5 -5
  23. package/es/index-Bwm3aMXZ.mjs +4441 -0
  24. package/es/{index-BFdLFt4J.mjs → index-C7UdPRSB.mjs} +4 -4
  25. package/es/{index-GdH3Zwz0.mjs → index-C8d60TqQ.mjs} +5 -5
  26. package/es/{index-DzRsgn_u.mjs → index-CBBKPguI.mjs} +18 -18
  27. package/es/{index-BInCuYp5.mjs → index-CKqOSJ9y.mjs} +17 -16
  28. package/es/{index-Daza1EsK.mjs → index-CLnTLLjS.mjs} +3 -3
  29. package/es/{index-DCIgeYYw.mjs → index-COVC4gVe.mjs} +4 -4
  30. package/es/{index-umVDADGS.mjs → index-CR3gnAfy.mjs} +5 -5
  31. package/es/{index-56XQx0At.mjs → index-CXKN_KjL.mjs} +4 -4
  32. package/es/{index-Cm-Rzkqs.mjs → index-CaUBqf8D.mjs} +46 -45
  33. package/es/{index-nSniwbAA.mjs → index-Ce7eAD1W.mjs} +8 -7
  34. package/es/index-Cq0uVP0H.mjs +29 -0
  35. package/es/{index-8Jjn38kS.mjs → index-CrN898XP.mjs} +22 -21
  36. package/es/{index-CgI9EXqn.mjs → index-DB3YcEiT.mjs} +4 -4
  37. package/es/{index-i0K7Ynj-.mjs → index-DcyXbsRZ.mjs} +4 -4
  38. package/es/{index-BAzeX1Ol.mjs → index-DuXGzYdH.mjs} +29 -28
  39. package/es/{index-Dkl0nzkU.mjs → index-TjFlu-86.mjs} +6 -6
  40. package/es/{index-kvRZQZJ-.mjs → index-guYPVm3G.mjs} +1 -1
  41. package/es/{index-SkjPQ6Pt.mjs → index-hRI5WRPs.mjs} +4 -4
  42. package/es/{index-CjeVSp69.mjs → index-nTep9Ubc.mjs} +5 -5
  43. package/es/index.mjs +6 -6
  44. package/es/{selectPage-ChSsIBe9.mjs → selectPage-BfNytQ95.mjs} +2 -2
  45. package/es/{useCurrentPageId-BlVc4whf.mjs → useCurrentPageId-C1KnE1O3.mjs} +3 -3
  46. package/es/useEffectOnce-l5sUTCBG.mjs +7 -0
  47. package/es/useListenRef-B01dENv0.mjs +8 -0
  48. package/es/{useResizeDom-BUgMcz6M.mjs → useResizeDom-B6mM4jrh.mjs} +2 -2
  49. package/package.json +1 -1
  50. package/es/index-BhafNo6T.mjs +0 -16092
  51. package/es/index-dxiyF_62.mjs +0 -29
  52. package/es/useEffectOnce-Ct0JMBZd.mjs +0 -7
  53. package/es/useListenRef-Dqm6KZRj.mjs +0 -8
@@ -1,9 +1,9 @@
1
1
  import { jsx as e } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as a } from "./index-Daza1EsK.mjs";
3
- import { H as i } from "./index-BhafNo6T.mjs";
2
+ import { R as a } from "./index-CLnTLLjS.mjs";
3
+ import { n as i } from "./index-Bwm3aMXZ.mjs";
4
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
5
+ import "react";
6
+ import "react-dom";
7
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
8
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
@@ -1,14 +1,14 @@
1
1
  import { jsx as c } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { H as b } from "./index-BhafNo6T.mjs";
2
+ import { n as b } from "./index-Bwm3aMXZ.mjs";
3
3
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
- import { useState as u, useMemo as x } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
4
+ import { useState as u, useMemo as x } from "react";
5
+ import "react-dom";
6
6
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import { r as f, g as y } from "./random-DD0zMfMm.mjs";
8
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- import { u as d } from "./useEffectOnce-Ct0JMBZd.mjs";
11
- import { R as h } from "./index-Daza1EsK.mjs";
10
+ import { u as d } from "./useEffectOnce-l5sUTCBG.mjs";
11
+ import { R as h } from "./index-CLnTLLjS.mjs";
12
12
  const g = ["06-01", "06-02", "06-03", "06-04", "06-05", "06-06", "06-07"], r = 250, a = [210, 200, 195, 200, 202, 195, 180], N = b((i) => {
13
13
  const { width: n, height: s } = i, [e, l] = u(a), m = x(() => {
14
14
  const o = e.map((t) => t * 100 / r);
@@ -1,19 +1,19 @@
1
- import { jsx as d, Fragment as f } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import g, { useState as w, useMemo as m, useEffect as y, useRef as l, Suspense as C } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
3
- import { u as R } from "./index-BhafNo6T.mjs";
1
+ import { jsx as o, Fragment as f } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
+ import g, { useState as w, useMemo as m, useEffect as y, useRef as l, Suspense as C } from "react";
3
+ import { u as R } from "./index-Bwm3aMXZ.mjs";
4
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
5
+ import "react-dom";
6
6
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- import { d as S, e as v, f as x, h as N, u as _, l as H, c as q, b as B, P } from "./index-Cm-Rzkqs.mjs";
9
+ import { d as S, e as v, f as x, h as N, u as H, l as q, c as B, b as P, P as _ } from "./index-CaUBqf8D.mjs";
10
10
  import $ from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
11
- import { u as b } from "./useResizeDom-BUgMcz6M.mjs";
11
+ import { u as b } from "./useResizeDom-B6mM4jrh.mjs";
12
12
  function k(e) {
13
13
  const [n, t] = w(e == null ? void 0 : e.componentNode), r = (n == null ? void 0 : n.show) ?? !0, { engine: c } = R(), s = m(() => c.component.get(n.cId), [n == null ? void 0 : n.cId, e == null ? void 0 : e.packages]);
14
14
  return y(() => c.componentNode.onChange(n.id, ({ payload: i }) => {
15
15
  t({ ...i });
16
- }), []), s && r ? /* @__PURE__ */ d(E, { componentNode: n, component: s }) : /* @__PURE__ */ d(f, {});
16
+ }), []), s && r ? /* @__PURE__ */ o(E, { componentNode: n, component: s }) : /* @__PURE__ */ o(f, {});
17
17
  }
18
18
  function E(e) {
19
19
  const { component: n, componentNode: t } = e, r = l(), c = l(null), { dataSource: s, requestInstance: i } = S(t), u = v(t.id), a = x(t.id);
@@ -48,8 +48,8 @@ function E(e) {
48
48
  i.reload();
49
49
  },
50
50
  // 立刻请求一次
51
- request: (o, h) => i.request(o, h)
52
- }), /* @__PURE__ */ d(
51
+ request: (d, h) => i.request(d, h)
52
+ }), /* @__PURE__ */ o(
53
53
  "div",
54
54
  {
55
55
  ref: c,
@@ -61,7 +61,7 @@ function E(e) {
61
61
  height: t.height,
62
62
  zIndex: t.level
63
63
  },
64
- children: /* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(
64
+ children: /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o(
65
65
  n.component,
66
66
  {
67
67
  handleTrigger: u,
@@ -86,14 +86,14 @@ function z(e) {
86
86
  return;
87
87
  const i = r.current.getBoundingClientRect();
88
88
  if (i.width / i.height > s) {
89
- const a = i.height / t, o = a * n, h = (i.width - o) / 2;
89
+ const a = i.height / t, d = a * n, h = (i.width - d) / 2;
90
90
  c.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
91
91
  } else {
92
92
  const a = i.width / n;
93
93
  c.current.style.transform = `scale(${a})`;
94
94
  }
95
95
  c.current.style.width = `${n}px`, c.current.style.height = `${t}px`;
96
- }), /* @__PURE__ */ d("div", { className: e == null ? void 0 : e.className, ref: r, style: e == null ? void 0 : e.style, children: /* @__PURE__ */ d(
96
+ }), /* @__PURE__ */ o("div", { className: e == null ? void 0 : e.className, ref: r, style: e == null ? void 0 : e.style, children: /* @__PURE__ */ o(
97
97
  "div",
98
98
  {
99
99
  className: $(e == null ? void 0 : e.bodyClassName, D.fitScreenBody),
@@ -107,15 +107,15 @@ const U = "_preview_x6h89_59", j = {
107
107
  preview: U
108
108
  };
109
109
  function V(e) {
110
- const { engine: n, json: t } = e, r = _(), { options: c } = H() || {}, s = q(), i = B(), u = m(() => {
110
+ const { engine: n, json: t } = e, r = H(), { options: c } = q() || {}, s = B(), i = P(), u = m(() => {
111
111
  var a;
112
- return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (o) => /* @__PURE__ */ d(
112
+ return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (d) => /* @__PURE__ */ o(
113
113
  k,
114
114
  {
115
- componentNode: o,
115
+ componentNode: d,
116
116
  packages: s
117
117
  },
118
- o == null ? void 0 : o.id
118
+ d == null ? void 0 : d.id
119
119
  )) : [];
120
120
  }, [i, s]);
121
121
  return g.useEffect(() => {
@@ -123,14 +123,14 @@ function V(e) {
123
123
  var a;
124
124
  (a = e == null ? void 0 : e.onJSONLoad) == null || a.call(e);
125
125
  });
126
- }, []), /* @__PURE__ */ d(
126
+ }, []), /* @__PURE__ */ o(
127
127
  z,
128
128
  {
129
129
  className: j.preview,
130
130
  dw: (r == null ? void 0 : r.width) || 1920,
131
131
  dh: (r == null ? void 0 : r.height) || 1080,
132
132
  style: { background: c == null ? void 0 : c.whiteBoardColor },
133
- children: /* @__PURE__ */ d(P, { preview: !0, style: { width: "100%", height: "100%" }, children: u })
133
+ children: /* @__PURE__ */ o(_, { preview: !0, style: { width: "100%", height: "100%" }, children: u })
134
134
  }
135
135
  );
136
136
  }
@@ -1,50 +1,51 @@
1
1
  import { jsx as o, jsxs as a } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { H as h, Q as L } from "./index-BhafNo6T.mjs";
2
+ import { n as h } from "./index-Bwm3aMXZ.mjs";
3
3
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
- import { useState as p, useMemo as x, useEffect as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
4
+ import { useState as p, useMemo as L, useEffect as x } from "react";
5
+ import "react-dom";
6
6
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
+ import { Progress as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
7
8
  import { r as y, g as C } from "./random-DD0zMfMm.mjs";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
10
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
11
  import { cloneDeep as v } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/lodash.js";
11
- import { DEFAULT_OPTIONS as I } from "./attributes-B8s8kYoD.mjs";
12
- import { A as M } from "./index-kvRZQZJ-.mjs";
12
+ import { DEFAULT_OPTIONS as I } from "./attributes-jJg_yENs.mjs";
13
+ import { A as M } from "./index-guYPVm3G.mjs";
13
14
  import { DoubleRightOutlined as z } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/@ant-design+icons@5.6.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/icons/es/index.js";
14
15
  const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_progressList_line_header_xy0sd_69", c = {
15
16
  progressList: N,
16
17
  progressList_line: P,
17
18
  progressList_line_header: A
18
- }, U = h((g) => {
19
- const { width: i, height: _, options: r, dataSource: s } = g, [n, d] = p(s), u = x(() => f(), [s, r == null ? void 0 : r.max]);
20
- function f() {
19
+ }, H = h((u) => {
20
+ const { width: g, height: _, options: r, dataSource: s } = u, [n, d] = p(s), i = L(() => m(), [s, r == null ? void 0 : r.max]);
21
+ function m() {
21
22
  const e = Math.max(...n.map((t) => t.count));
22
23
  return r != null && r.max ? Math.max(r == null ? void 0 : r.max, e) : e;
23
24
  }
24
- return S(() => {
25
+ return x(() => {
25
26
  d(s);
26
27
  let e = v(s);
27
28
  function t() {
28
29
  d(
29
30
  e = e.map((l) => ({
30
31
  ...l,
31
- count: y(C(-50, 50) + (l == null ? void 0 : l.count), 0, u)
32
+ count: y(C(-50, 50) + (l == null ? void 0 : l.count), 0, i)
32
33
  }))
33
34
  );
34
35
  }
35
- let m = setInterval(t, 1200);
36
+ let f = setInterval(t, 1200);
36
37
  return () => {
37
- clearInterval(m);
38
+ clearInterval(f);
38
39
  };
39
40
  }, [s]), /* @__PURE__ */ o(
40
41
  M,
41
42
  {
42
- style: { width: i, height: _ },
43
+ style: { width: g, height: _ },
43
44
  className: c.progressList,
44
45
  disabled: !(r != null && r.autoScroll),
45
46
  pxPerSecond: r == null ? void 0 : r.pxPerSecond,
46
47
  children: n.map((e) => {
47
- const t = ((e == null ? void 0 : e.count) || 0) * 100 / u;
48
+ const t = ((e == null ? void 0 : e.count) || 0) * 100 / i;
48
49
  return /* @__PURE__ */ a("div", { className: c.progressList_line, children: [
49
50
  /* @__PURE__ */ a("div", { className: c.progressList_line_header, children: [
50
51
  /* @__PURE__ */ a(
@@ -72,7 +73,7 @@ const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_pro
72
73
  )
73
74
  ] }),
74
75
  /* @__PURE__ */ o(
75
- L,
76
+ S,
76
77
  {
77
78
  showInfo: !1,
78
79
  percent: t,
@@ -86,5 +87,5 @@ const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_pro
86
87
  );
87
88
  }, I);
88
89
  export {
89
- U as default
90
+ H as default
90
91
  };
@@ -1,14 +1,14 @@
1
1
  import { jsx as R } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { useRef as m, useCallback as T, useEffect as E, useMemo as y } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
2
+ import { useRef as m, useCallback as T, useEffect as E, useMemo as y } from "react";
3
3
  import * as f from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/core.js";
4
4
  import { PieChart as L, BarChart as b, LineChart as k, LinesChart as v, RadarChart as g, GaugeChart as x, MapChart as G, EffectScatterChart as M } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/charts.js";
5
5
  import { TitleComponent as O, TooltipComponent as j, ToolboxComponent as w, VisualMapComponent as z, GridComponent as D, DatasetComponent as N, TransformComponent as U, LegendComponent as B } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/components.js";
6
6
  import { LabelLayout as F, UniversalTransition as P } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/features.js";
7
7
  import { CanvasRenderer as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/renderers.js";
8
8
  import { useUpdateEffect as V } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/ahooks@3.9.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/ahooks/es/index.js";
9
- import "./index-BhafNo6T.mjs";
9
+ import "./index-Bwm3aMXZ.mjs";
10
10
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
11
- import { u as q } from "./useResizeDom-BUgMcz6M.mjs";
11
+ import { u as q } from "./useResizeDom-B6mM4jrh.mjs";
12
12
  f.use([
13
13
  // 图表
14
14
  L,
@@ -1,9 +1,9 @@
1
1
  import { jsx as i } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as e } from "./index-Daza1EsK.mjs";
3
- import { H as a } from "./index-BhafNo6T.mjs";
2
+ import { R as e } from "./index-CLnTLLjS.mjs";
3
+ import { n as a } from "./index-Bwm3aMXZ.mjs";
4
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
5
+ import "react";
6
+ import "react-dom";
7
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
8
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
@@ -1,13 +1,13 @@
1
1
  import { jsx as c } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as u } from "./index-Daza1EsK.mjs";
3
- import { H as f } from "./index-BhafNo6T.mjs";
2
+ import { R as u } from "./index-CLnTLLjS.mjs";
3
+ import { n as f } from "./index-Bwm3aMXZ.mjs";
4
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import { useMemo as g } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
5
+ import { useMemo as g } from "react";
6
+ import "react-dom";
7
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
8
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- import { DEFAULT_OPTIONS as l } from "./attributes-DBip_IK_.mjs";
10
+ import { DEFAULT_OPTIONS as l } from "./attributes-BWjMqQ_s.mjs";
11
11
  function p(m = "name", a, n) {
12
12
  return !(a != null && a.length) || !(n != null && n.length) ? {
13
13
  source: []
@@ -1,12 +1,12 @@
1
1
  import { jsx as e, jsxs as l } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { H as c } from "./index-BhafNo6T.mjs";
2
+ import { n as c } from "./index-Bwm3aMXZ.mjs";
3
3
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
4
+ import "react";
5
+ import "react-dom";
6
6
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- import { DEFAULT_OPTIONS as i } from "./attributes-CauLjFb0.mjs";
9
+ import { DEFAULT_OPTIONS as i } from "./attributes-CbI6ZNLl.mjs";
10
10
  import { DoubleRightOutlined as s } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/@ant-design+icons@5.6.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/icons/es/index.js";
11
11
  const _ = "_specialCard_1s46n_59", t = "_specialCard_head_1s46n_64", m = "_specialCard_head_arrow_1s46n_71", o = "_specialCard_head_title_1s46n_74", r = {
12
12
  specialCard: _,
@@ -1,24 +1,25 @@
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, c as F, w as x, R as N } from "./index-BhafNo6T.mjs";
4
+ import { b as O, u as k, I as x, R as F } from "./index-Bwm3aMXZ.mjs";
5
5
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
6
- import z, { useEffect as y, useMemo as M, useRef as E, useState as D, useCallback as G } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
7
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
6
+ import N, { useEffect as y, useMemo as M, useRef as w, useState as _, useCallback as z } from "react";
7
+ import "react-dom";
8
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
9
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
10
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
11
- import { jsxs as U, jsx as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
12
- import Z from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/umi-request@1.4.0/node_modules/umi-request/dist/index.esm.js";
13
- import { u as j } from "./useListenRef-Dqm6KZRj.mjs";
14
- import { u as Q } from "./useEffectOnce-Ct0JMBZd.mjs";
15
- import { u as V } from "./useCurrentPageId-BlVc4whf.mjs";
11
+ import { jsxs as G, jsx as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
12
+ import U from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/umi-request@1.4.0/node_modules/umi-request/dist/index.esm.js";
13
+ import { u as j } from "./useListenRef-B01dENv0.mjs";
14
+ import { message as Z } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
15
+ import { u as Q } from "./useEffectOnce-l5sUTCBG.mjs";
16
+ import { u as V } from "./useCurrentPageId-C1KnE1O3.mjs";
16
17
  import I from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/hotkeys-js@3.13.15/node_modules/hotkeys-js/dist/hotkeys.esm.js";
17
18
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
18
19
  function X(e) {
19
20
  return e.button == 0;
20
21
  }
21
- function De(e) {
22
+ function He(e) {
22
23
  return e.button == 2;
23
24
  }
24
25
  function W(e) {
@@ -27,7 +28,7 @@ function W(e) {
27
28
  function B(e) {
28
29
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
29
30
  }
30
- function He(e) {
31
+ function Xe(e) {
31
32
  return typeof e == "object" && !Array.isArray(e) && !!e;
32
33
  }
33
34
  function q(e) {
@@ -54,13 +55,13 @@ function $(e, n) {
54
55
  };
55
56
  }, []);
56
57
  }
57
- function Xe() {
58
+ function $e() {
58
59
  return O((e) => e.componentNodes);
59
60
  }
60
61
  function J(e) {
61
62
  return O((n) => e ? e(n.config) : n.config);
62
63
  }
63
- function $e(e) {
64
+ function Oe(e) {
64
65
  const n = M(() => e, []), { engine: t } = k();
65
66
  return y(() => (t.instance.add(n), () => {
66
67
  t.instance.delete(n.id);
@@ -91,7 +92,7 @@ class K {
91
92
  // 立刻请求一次
92
93
  async request(n, t, s) {
93
94
  const r = t || this.requestConfig;
94
- return r != null && r.url ? Z(`${(r == null ? void 0 : r.url) || ""}`, {
95
+ return r != null && r.url ? U(`${(r == null ? void 0 : r.url) || ""}`, {
95
96
  ...s,
96
97
  method: `${(r == null ? void 0 : r.method) || "get"}`,
97
98
  params: n
@@ -108,8 +109,8 @@ class K {
108
109
  };
109
110
  }
110
111
  }
111
- function Oe(e) {
112
- const { dataSourceType: n = "static" } = e, t = j(n === "static"), s = E(), [r, a] = D(), f = G(() => {
112
+ function je(e) {
113
+ const { dataSourceType: n = "static" } = e, t = j(n === "static"), s = w(), [r, a] = _(), f = z(() => {
113
114
  var u;
114
115
  return s.current || (s.current = new K(e.request), (u = s.current) == null || u.onChangeDataSource((h) => a(h))), s.current;
115
116
  }, [e.dataSourceType]);
@@ -140,7 +141,7 @@ function Oe(e) {
140
141
  requestInstance: d
141
142
  };
142
143
  }
143
- function _(e, n) {
144
+ function D(e, n) {
144
145
  return `${e}-${n}`;
145
146
  }
146
147
  function A(e, n, t) {
@@ -178,7 +179,7 @@ function ne(e, n, t, s, r) {
178
179
  target: t,
179
180
  origin: s,
180
181
  option: a
181
- }), e.events.notify(_(t.id, n.exposeId), d);
182
+ }), e.events.notify(D(t.id, n.exposeId), d);
182
183
  }
183
184
  function se(e, n) {
184
185
  return function(t, s) {
@@ -187,7 +188,7 @@ function se(e, n) {
187
188
  a && a.forEach((h) => {
188
189
  const l = e.componentNode.get(h.id);
189
190
  if (!l) {
190
- F.error("[bigScreen]: target componentNode not exist.");
191
+ Z.error("[bigScreen]: target componentNode not exist.");
191
192
  return;
192
193
  }
193
194
  h.opts.forEach((g) => {
@@ -209,7 +210,7 @@ function se(e, n) {
209
210
  });
210
211
  };
211
212
  }
212
- function je(e) {
213
+ function qe(e) {
213
214
  const { engine: n } = k();
214
215
  return M(() => se(n, e), []);
215
216
  }
@@ -217,26 +218,26 @@ function re(e, n) {
217
218
  return function(t) {
218
219
  y(() => {
219
220
  for (const s in t)
220
- e.events.on(_(n, s), t[s]);
221
+ e.events.on(D(n, s), t[s]);
221
222
  return () => {
222
223
  for (const s in t)
223
- e.events.remove(_(n, s), t[s]);
224
+ e.events.remove(D(n, s), t[s]);
224
225
  };
225
226
  }, []);
226
227
  };
227
228
  }
228
- function qe(e) {
229
+ function Ae(e) {
229
230
  const { engine: n } = k();
230
231
  return M(() => re(n, e), []);
231
232
  }
232
- function Ae() {
233
- const [e, n] = D([]), { engine: t } = k();
233
+ function Re() {
234
+ const [e, n] = _([]), { engine: t } = k();
234
235
  return Q(() => (n(t.component.getAllPackage()), t.component.onPackageChange((s) => {
235
236
  n(s);
236
237
  }))), e;
237
238
  }
238
239
  function ae() {
239
- const { engine: e } = k(), n = V(), [t, s] = D(r);
240
+ const { engine: e } = k(), n = V(), [t, s] = _(r);
240
241
  function r() {
241
242
  return e.page.get(e.config.getCurrentPage());
242
243
  }
@@ -248,7 +249,7 @@ function ae() {
248
249
  }, [n]), t;
249
250
  }
250
251
  function ie() {
251
- const e = N.getActiveEngine();
252
+ const e = F.getActiveEngine();
252
253
  if (!e) return;
253
254
  const n = e.config.getConfig();
254
255
  e.config.setConfig({
@@ -274,7 +275,7 @@ class ue {
274
275
  this.isSet && (this.isSet = !1, document.documentElement.classList.remove(P), this.style && ((t = (n = this.style) == null ? void 0 : n.remove) == null || t.call(n), this.style = void 0));
275
276
  }
276
277
  }
277
- const w = new ue();
278
+ const E = new ue();
278
279
  function oe(e, n, t) {
279
280
  return e < n ? n : e > t ? t : e;
280
281
  }
@@ -350,7 +351,7 @@ function Y(e) {
350
351
  return typeof e == "number";
351
352
  }
352
353
  function ge(e) {
353
- const { engine: n } = k(), { defaultScale: t = 1, scaleStep: s = 0.05, scaleMax: r = 2, scaleMin: a = 0.1 } = e, f = E(null), d = E(null), u = E(null), h = j(e), l = E({
354
+ const { engine: n } = k(), { defaultScale: t = 1, scaleStep: s = 0.05, scaleMax: r = 2, scaleMin: a = 0.1 } = e, f = w(null), d = w(null), u = w(null), h = j(e), l = w({
354
355
  scale: t,
355
356
  x: 0,
356
357
  y: 0
@@ -379,16 +380,16 @@ function ge(e) {
379
380
  // 重置
380
381
  mousedown(i) {
381
382
  var c, o;
382
- W(i) && ((o = (c = h.current) == null ? void 0 : c.onReset) == null || o.call(c)), X(i) && I.isPressed("space") && w.set("grabbing");
383
+ W(i) && ((o = (c = h.current) == null ? void 0 : c.onReset) == null || o.call(c)), X(i) && I.isPressed("space") && E.set("grabbing");
383
384
  },
384
385
  // 鼠标松开
385
386
  mouseup(i) {
386
387
  if (X(i)) {
387
388
  if (I.isPressed("space")) {
388
- w.set("grab");
389
+ E.set("grab");
389
390
  return;
390
391
  }
391
- w.revoke();
392
+ E.revoke();
392
393
  }
393
394
  },
394
395
  wheel(i) {
@@ -420,10 +421,10 @@ function ge(e) {
420
421
  let i = !1;
421
422
  o();
422
423
  function c() {
423
- i = !0, u.current.style.removeProperty("pointer-events"), u.current.style.zIndex = `${n.componentNode.getMaxLevel()}`, w.set("grab");
424
+ i = !0, u.current.style.removeProperty("pointer-events"), u.current.style.zIndex = `${n.componentNode.getMaxLevel()}`, E.set("grab");
424
425
  }
425
426
  function o() {
426
- i = !1, u.current.style.pointerEvents = "none", w.revoke();
427
+ i = !1, u.current.style.pointerEvents = "none", E.revoke();
427
428
  }
428
429
  I("space", { keyup: !0 }, (H) => {
429
430
  H.type === "keydown" && !i && c(), H.type === "keyup" && o();
@@ -435,12 +436,12 @@ function ge(e) {
435
436
  l.current.x = e.offsetX,
436
437
  l.current.y = e.offsetY
437
438
  );
438
- }, [e.offsetX, e.offsetY]), /* @__PURE__ */ U("div", { className: L.infiniteCanvas, ref: f, style: e == null ? void 0 : e.style, children: [
439
+ }, [e.offsetX, e.offsetY]), /* @__PURE__ */ G("div", { className: L.infiniteCanvas, ref: f, style: e == null ? void 0 : e.style, children: [
439
440
  /* @__PURE__ */ S("div", { className: L.infiniteCanvas_inner, ref: d, children: e == null ? void 0 : e.children }),
440
441
  /* @__PURE__ */ S("div", { className: L.infiniteCanvas_mask, ref: u })
441
442
  ] });
442
443
  }
443
- const Re = z.forwardRef((e, n) => {
444
+ const Te = N.forwardRef((e, n) => {
444
445
  const { options: t } = ae() || {}, { engine: s } = k(), r = J(), a = /* @__PURE__ */ S(
445
446
  "div",
446
447
  {
@@ -482,18 +483,18 @@ const Re = z.forwardRef((e, n) => {
482
483
  );
483
484
  });
484
485
  export {
485
- Re as P,
486
+ Te as P,
486
487
  $ as a,
487
- Xe as b,
488
- Ae as c,
489
- Oe as d,
490
- je as e,
491
- qe as f,
492
- w as g,
493
- $e as h,
488
+ $e as b,
489
+ Re as c,
490
+ je as d,
491
+ qe as e,
492
+ Ae as f,
493
+ E as g,
494
+ Oe as h,
494
495
  X as i,
495
- De as j,
496
- He as k,
496
+ He as j,
497
+ Xe as k,
497
498
  ae as l,
498
499
  he as s,
499
500
  J as u
@@ -1,16 +1,17 @@
1
1
  import { jsx as o } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { H as i, K as p } from "./index-BhafNo6T.mjs";
2
+ import { Image as i } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
3
+ import { n as p } from "./index-Bwm3aMXZ.mjs";
3
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
5
+ import "react";
6
+ import "react-dom";
6
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- import { DEFAULT_OPTIONS as n } from "./attributes-DYnxULqW.mjs";
10
- const x = i((e) => {
10
+ import { DEFAULT_OPTIONS as n } from "./attributes-Cg2w2wqR.mjs";
11
+ const g = p((e) => {
11
12
  const { options: r, width: t, height: m } = e;
12
13
  return /* @__PURE__ */ o(
13
- p,
14
+ i,
14
15
  {
15
16
  src: r == null ? void 0 : r.src,
16
17
  style: { width: t, height: m, pointerEvents: "none" },
@@ -19,5 +20,5 @@ const x = i((e) => {
19
20
  );
20
21
  }, n);
21
22
  export {
22
- x as default
23
+ g as default
23
24
  };
@@ -0,0 +1,29 @@
1
+ import { jsx as s } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
+ import { Empty as i } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
3
+ import m from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
4
+ function l(y, n) {
5
+ return !// 左侧
6
+ (y.x2 < n.x1 || // 右侧
7
+ y.x1 > n.x2 || // 上方
8
+ y.y2 < n.y1 || // 下方
9
+ y.y1 > n.y2);
10
+ }
11
+ function I(y, n) {
12
+ return y.x >= n.x1 && y.x <= n.x2 && y.y >= n.y1 && y.y <= n.y2;
13
+ }
14
+ function o(y, n) {
15
+ return y.x1 >= n.x1 && y.y1 >= n.y1 && y.x2 <= n.x2 && y.y2 <= n.y2;
16
+ }
17
+ const x = "_iEmpty_177ye_59", E = {
18
+ iEmpty: x
19
+ };
20
+ function t(y) {
21
+ const { description: n = "暂无数据" } = y;
22
+ return /* @__PURE__ */ s("div", { className: m(y.className, E.iEmpty), style: y == null ? void 0 : y.style, children: /* @__PURE__ */ s(i, { image: i.PRESENTED_IMAGE_SIMPLE, description: n }) });
23
+ }
24
+ export {
25
+ t as I,
26
+ I as a,
27
+ o as b,
28
+ l as i
29
+ };