react-big-screen 0.0.20 → 0.0.22

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 (65) hide show
  1. package/es/{IInputNumber-Vk6zq2bP.mjs → IInputNumber-CEotcbKL.mjs} +2 -2
  2. package/es/{Line-nA3VtARp.mjs → Line-CgKiUu04.mjs} +4 -4
  3. package/es/{attributes-BZxcK9tt.mjs → attributes-BPJdjr2i.mjs} +12 -9
  4. package/es/{attributes-CbI6ZNLl.mjs → attributes-BcOvtwR5.mjs} +18 -15
  5. package/es/attributes-BfidbonK.mjs +43 -0
  6. package/es/{attributes-BWjMqQ_s.mjs → attributes-Btg07K2U.mjs} +37 -34
  7. package/es/attributes-BwADICpR.mjs +37 -0
  8. package/es/{attributes-C7YISj8O.mjs → attributes-CLKihLxA.mjs} +17 -14
  9. package/es/{attributes-jJg_yENs.mjs → attributes-CbEkHFeA.mjs} +11 -8
  10. package/es/attributes-Cqd_mqWc.mjs +41 -0
  11. package/es/attributes-CuMNtV8M.mjs +34 -0
  12. package/es/attributes-D48dVLeW.mjs +27 -0
  13. package/es/{attributes-OZgEPZfV.mjs → attributes-DygyEbMZ.mjs} +11 -8
  14. package/es/attributes-T101y64V.mjs +49 -0
  15. package/es/{index-BnaaZaeo.mjs → index--DlyGwmX.mjs} +14 -11
  16. package/es/index-5xqLm0cU.mjs +47 -0
  17. package/es/index-8ZXIms1b.mjs +48 -0
  18. package/es/index-B7TrIL_C.mjs +19 -0
  19. package/es/{index-CKqOSJ9y.mjs → index-B8oIQxa8.mjs} +14 -13
  20. package/es/{index-C8d60TqQ.mjs → index-BHUjUILf.mjs} +12 -9
  21. package/es/{index-CLnTLLjS.mjs → index-BHmzQnjb.mjs} +9 -9
  22. package/es/{index-CrN898XP.mjs → index-BQ7mzQ9J.mjs} +21 -20
  23. package/es/{index-7n0O_7or.mjs → index-BtEza1iX.mjs} +29 -26
  24. package/es/{index-Bwm3aMXZ.mjs → index-BuUTG4Rv.mjs} +63 -63
  25. package/es/index-BvW1_Hyv.mjs +51 -0
  26. package/es/index-C0Dt2jQ_.mjs +40 -0
  27. package/es/index-C6A7V93P.mjs +61 -0
  28. package/es/index-CHxtigvR.mjs +42 -0
  29. package/es/index-CW3G29nN.mjs +46 -0
  30. package/es/{index-BUic5qZC.mjs → index-D-o2kNzn.mjs} +54 -54
  31. package/es/{index-guYPVm3G.mjs → index-D5seKG8I.mjs} +2 -2
  32. package/es/index-DTMGhBFA.mjs +43 -0
  33. package/es/index-DZRl1odp.mjs +37 -0
  34. package/es/{index-B1ohG9Hu.mjs → index-DmMp7-l-.mjs} +12 -9
  35. package/es/{index-B75SSKFG.mjs → index-Dv8VfJDC.mjs} +32 -30
  36. package/es/{index-CaUBqf8D.mjs → index-DxbswiWm.mjs} +34 -32
  37. package/es/{index-DuXGzYdH.mjs → index-Qxmobfyd.mjs} +5 -5
  38. package/es/{index-BF07nOIu.mjs → index-X5o1pXL3.mjs} +17 -14
  39. package/es/{index-TjFlu-86.mjs → index-Z8NfClWR.mjs} +18 -15
  40. package/es/index-mzSvAxqW.mjs +142 -0
  41. package/es/index-onenk3XK.mjs +26 -0
  42. package/es/{index-Cq0uVP0H.mjs → index-yEFPa0R2.mjs} +3 -3
  43. package/es/index.mjs +7 -6
  44. package/es/{selectPage-BfNytQ95.mjs → selectPage-BTdc0EhU.mjs} +1 -1
  45. package/es/useCurrentPageId-DkPUSvWz.mjs +20 -0
  46. package/package.json +1 -1
  47. package/es/attributes-BDcSpbcs.mjs +0 -40
  48. package/es/attributes-Cg2w2wqR.mjs +0 -34
  49. package/es/attributes-Ck-M5Rw3.mjs +0 -46
  50. package/es/attributes-Dk4Khv-P.mjs +0 -38
  51. package/es/attributes-DuAsVU2g.mjs +0 -31
  52. package/es/attributes-Nwf_EnEX.mjs +0 -24
  53. package/es/index-B8Ei_KZZ.mjs +0 -16
  54. package/es/index-BemZB0VC.mjs +0 -48
  55. package/es/index-C7UdPRSB.mjs +0 -44
  56. package/es/index-CBBKPguI.mjs +0 -139
  57. package/es/index-COVC4gVe.mjs +0 -40
  58. package/es/index-CR3gnAfy.mjs +0 -58
  59. package/es/index-CXKN_KjL.mjs +0 -37
  60. package/es/index-Ce7eAD1W.mjs +0 -24
  61. package/es/index-DB3YcEiT.mjs +0 -39
  62. package/es/index-DcyXbsRZ.mjs +0 -43
  63. package/es/index-hRI5WRPs.mjs +0 -45
  64. package/es/index-nTep9Ubc.mjs +0 -34
  65. package/es/useCurrentPageId-C1KnE1O3.mjs +0 -17
@@ -1,38 +0,0 @@
1
- import { o as t } from "./index-Bwm3aMXZ.mjs";
2
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
3
- import "react";
4
- import "react-dom";
5
- 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";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
7
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
8
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
9
- const o = {
10
- titleColor: "#000",
11
- subtextColor: "#bababa"
12
- }, b = t(
13
- [
14
- {
15
- key: "titleColor",
16
- label: "标题颜色",
17
- component: "colorPicker",
18
- options: {
19
- reset: !0,
20
- presetColor: o == null ? void 0 : o.titleColor
21
- }
22
- },
23
- {
24
- key: "subtextColor",
25
- label: "副标题颜色",
26
- component: "colorPicker",
27
- options: {
28
- reset: !0,
29
- presetColor: o == null ? void 0 : o.subtextColor
30
- }
31
- }
32
- ],
33
- o
34
- );
35
- export {
36
- o as DEFAULT_OPTIONS,
37
- b as default
38
- };
@@ -1,31 +0,0 @@
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 { o as t } from "./index-Bwm3aMXZ.mjs";
3
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
- import "react";
5
- import "react-dom";
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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- const r = {
10
- autoScroll: !0,
11
- pxPerSecond: 12
12
- }, u = t(
13
- [
14
- /* @__PURE__ */ o("b", { children: "滚动配置" }, "data"),
15
- {
16
- key: "pxPerSecond",
17
- label: "每秒滚动像素",
18
- component: "inputNumber"
19
- },
20
- {
21
- key: "autoScroll",
22
- label: "自动滚动",
23
- component: "checkbox"
24
- }
25
- ],
26
- r
27
- );
28
- export {
29
- r as DEFAULT_OPTIONS,
30
- u as default
31
- };
@@ -1,24 +0,0 @@
1
- import { o } from "./index-Bwm3aMXZ.mjs";
2
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
3
- import "react";
4
- import "react-dom";
5
- 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";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
7
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
8
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
9
- const t = {
10
- background: "#223447"
11
- }, s = o(
12
- [
13
- {
14
- key: "background",
15
- label: "背景",
16
- component: "colorPicker"
17
- }
18
- ],
19
- t
20
- );
21
- export {
22
- t as DEFAULT_OPTIONS,
23
- s as default
24
- };
@@ -1,16 +0,0 @@
1
- import { jsx as m } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as p } from "./index-Bwm3aMXZ.mjs";
3
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
- import "react";
5
- import "react-dom";
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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
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 n } from "./attributes-Nwf_EnEX.mjs";
10
- const x = p((o) => {
11
- const { options: t, width: r, height: i } = o;
12
- return /* @__PURE__ */ m("div", { style: { width: r, height: i, background: t.background } });
13
- }, n);
14
- export {
15
- x as default
16
- };
@@ -1,48 +0,0 @@
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 { R as m } from "./index-CLnTLLjS.mjs";
3
- import { n as r } from "./index-Bwm3aMXZ.mjs";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "react";
6
- import "react-dom";
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
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- const g = r((t) => {
11
- const { width: a, height: e } = t;
12
- return /* @__PURE__ */ o(
13
- m,
14
- {
15
- options: {
16
- radar: {
17
- indicator: [
18
- { name: "Sales", max: 100 },
19
- { name: "Administration", max: 100 },
20
- { name: "Information Technology", max: 100 },
21
- { name: "Customer Support", max: 100 },
22
- { name: "Development", max: 100 },
23
- { name: "Marketing", max: 100 }
24
- ]
25
- },
26
- series: [
27
- {
28
- name: "Budget vs spending",
29
- type: "radar",
30
- data: [
31
- {
32
- value: [50, 50, 50, 50, 50, 50],
33
- name: "Allocated Budget"
34
- }
35
- ]
36
- }
37
- ]
38
- },
39
- style: {
40
- width: a,
41
- height: e
42
- }
43
- }
44
- );
45
- });
46
- export {
47
- g as default
48
- };
@@ -1,44 +0,0 @@
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-CLnTLLjS.mjs";
3
- import { n as i } from "./index-Bwm3aMXZ.mjs";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "react";
6
- import "react-dom";
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
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- const g = i((t) => {
11
- const { width: r, height: o } = t;
12
- return /* @__PURE__ */ e(
13
- a,
14
- {
15
- options: {
16
- tooltip: {
17
- formatter: "{a} <br/>{b} : {c}%"
18
- },
19
- series: [
20
- {
21
- name: "Pressure",
22
- type: "gauge",
23
- detail: {
24
- formatter: "{value}"
25
- },
26
- data: [
27
- {
28
- value: 50,
29
- name: "SCORE"
30
- }
31
- ]
32
- }
33
- ]
34
- },
35
- style: {
36
- width: r,
37
- height: o
38
- }
39
- }
40
- );
41
- });
42
- export {
43
- g as default
44
- };
@@ -1,139 +0,0 @@
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
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "react-dom";
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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
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 H, l as q, c as B, b as P, P as _ } from "./index-CaUBqf8D.mjs";
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-B6mM4jrh.mjs";
12
- function k(e) {
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
- return y(() => c.componentNode.onChange(n.id, ({ payload: i }) => {
15
- t({ ...i });
16
- }), []), s && r ? /* @__PURE__ */ o(E, { componentNode: n, component: s }) : /* @__PURE__ */ o(f, {});
17
- }
18
- function E(e) {
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);
20
- return N({
21
- id: t.id,
22
- // 经过实例
23
- handleHover() {
24
- },
25
- // 离开实例
26
- handleUnHover() {
27
- },
28
- // 选中实例样式
29
- handleSelected() {
30
- },
31
- // 取消选中实例样式
32
- handleUnSelected() {
33
- },
34
- // 获取容器dom
35
- getContainerDom() {
36
- return c.current;
37
- },
38
- // 获取对应的 componentNode
39
- getComponentNode() {
40
- return r.current;
41
- },
42
- // 获取实例的 component
43
- getComponent() {
44
- return n;
45
- },
46
- // 重新载入request配置
47
- reloadRequest() {
48
- i.reload();
49
- },
50
- // 立刻请求一次
51
- request: (d, h) => i.request(d, h)
52
- }), /* @__PURE__ */ o(
53
- "div",
54
- {
55
- ref: c,
56
- style: {
57
- position: "absolute",
58
- left: t.x,
59
- top: t.y,
60
- width: t.width,
61
- height: t.height,
62
- zIndex: t.level
63
- },
64
- children: /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o(
65
- n.component,
66
- {
67
- handleTrigger: u,
68
- useExpose: a,
69
- dataSource: s,
70
- componentNode: t,
71
- options: t.options,
72
- width: t.width,
73
- height: t.height
74
- }
75
- ) })
76
- }
77
- );
78
- }
79
- const I = "_fitScreenBody_1qzud_59", D = {
80
- fitScreenBody: I
81
- };
82
- function z(e) {
83
- const { dw: n = 1920, dh: t = 1080 } = e, r = l(null), c = l(null), s = m(() => n / t, [n, t]);
84
- return b(r, () => {
85
- if (!r.current || !c.current)
86
- return;
87
- const i = r.current.getBoundingClientRect();
88
- if (i.width / i.height > s) {
89
- const a = i.height / t, d = a * n, h = (i.width - d) / 2;
90
- c.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
91
- } else {
92
- const a = i.width / n;
93
- c.current.style.transform = `scale(${a})`;
94
- }
95
- c.current.style.width = `${n}px`, c.current.style.height = `${t}px`;
96
- }), /* @__PURE__ */ o("div", { className: e == null ? void 0 : e.className, ref: r, style: e == null ? void 0 : e.style, children: /* @__PURE__ */ o(
97
- "div",
98
- {
99
- className: $(e == null ? void 0 : e.bodyClassName, D.fitScreenBody),
100
- style: e == null ? void 0 : e.bodyStyle,
101
- ref: c,
102
- children: e == null ? void 0 : e.children
103
- }
104
- ) });
105
- }
106
- const U = "_preview_x6h89_59", j = {
107
- preview: U
108
- };
109
- function V(e) {
110
- const { engine: n, json: t } = e, r = H(), { options: c } = q() || {}, s = B(), i = P(), u = m(() => {
111
- var a;
112
- return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (d) => /* @__PURE__ */ o(
113
- k,
114
- {
115
- componentNode: d,
116
- packages: s
117
- },
118
- d == null ? void 0 : d.id
119
- )) : [];
120
- }, [i, s]);
121
- return g.useEffect(() => {
122
- n.loadJSON(t).then(() => {
123
- var a;
124
- (a = e == null ? void 0 : e.onJSONLoad) == null || a.call(e);
125
- });
126
- }, []), /* @__PURE__ */ o(
127
- z,
128
- {
129
- className: j.preview,
130
- dw: (r == null ? void 0 : r.width) || 1920,
131
- dh: (r == null ? void 0 : r.height) || 1080,
132
- style: { background: c == null ? void 0 : c.whiteBoardColor },
133
- children: /* @__PURE__ */ o(_, { preview: !0, style: { width: "100%", height: "100%" }, children: u })
134
- }
135
- );
136
- }
137
- export {
138
- V as default
139
- };
@@ -1,40 +0,0 @@
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-CLnTLLjS.mjs";
3
- import { n as a } from "./index-Bwm3aMXZ.mjs";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "react";
6
- import "react-dom";
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
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- const f = a((t) => {
11
- const { width: o, height: r } = t;
12
- return /* @__PURE__ */ i(
13
- e,
14
- {
15
- options: {
16
- xAxis: {
17
- type: "category",
18
- data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
19
- },
20
- yAxis: {
21
- type: "value"
22
- },
23
- series: [
24
- {
25
- data: [120, 200, 150, 80, 70, 110, 130],
26
- type: "bar",
27
- barWidth: 12
28
- }
29
- ]
30
- },
31
- style: {
32
- width: o,
33
- height: r
34
- }
35
- }
36
- );
37
- });
38
- export {
39
- f as default
40
- };
@@ -1,58 +0,0 @@
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-CLnTLLjS.mjs";
3
- import { n as f } from "./index-Bwm3aMXZ.mjs";
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 "react";
6
- import "react-dom";
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
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
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-BWjMqQ_s.mjs";
11
- function p(m = "name", a, n) {
12
- return !(a != null && a.length) || !(n != null && n.length) ? {
13
- source: []
14
- } : {
15
- dimensions: [m, ...a.map((r) => r.name)],
16
- source: n.map((r) => {
17
- const o = { [m]: `${r[m] ?? ""}` };
18
- return a.forEach((t) => {
19
- o[t.name] = r[t.value] || 0;
20
- }), o;
21
- })
22
- };
23
- }
24
- function h(m) {
25
- var a;
26
- return ((a = m == null ? void 0 : m.map) == null ? void 0 : a.call(m, (n) => ({
27
- id: n == null ? void 0 : n.key,
28
- type: "line",
29
- color: n == null ? void 0 : n.color
30
- }))) || [];
31
- }
32
- const D = f((m) => {
33
- const { width: a, height: n, options: r, dataSource: o } = m, t = g(() => ({
34
- tooltip: { trigger: "item" },
35
- dataset: p(
36
- r == null ? void 0 : r.nameCode,
37
- r == null ? void 0 : r.seriesList,
38
- Array.isArray(o) ? o : []
39
- ),
40
- xAxis: [{ type: "category" }],
41
- yAxis: [{}],
42
- series: h(r == null ? void 0 : r.seriesList)
43
- }), [o, r == null ? void 0 : r.seriesList, r == null ? void 0 : r.nameCode]);
44
- return /* @__PURE__ */ c(
45
- u,
46
- {
47
- options: t,
48
- style: {
49
- width: a,
50
- height: n,
51
- background: r == null ? void 0 : r.background
52
- }
53
- }
54
- );
55
- }, l);
56
- export {
57
- D as default
58
- };
@@ -1,37 +0,0 @@
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 { n as c } from "./index-Bwm3aMXZ.mjs";
3
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
- import "react";
5
- import "react-dom";
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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
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-CbI6ZNLl.mjs";
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
- const _ = "_specialCard_1s46n_59", t = "_specialCard_head_1s46n_64", m = "_specialCard_head_arrow_1s46n_71", o = "_specialCard_head_title_1s46n_74", r = {
12
- specialCard: _,
13
- specialCard_head: t,
14
- specialCard_head_arrow: m,
15
- specialCard_head_title: o
16
- }, v = c((d) => {
17
- const { options: a } = d;
18
- return /* @__PURE__ */ e(
19
- "div",
20
- {
21
- className: r.specialCard,
22
- style: {
23
- color: a == null ? void 0 : a.color,
24
- borderRadius: a == null ? void 0 : a.borderRadius,
25
- background: a == null ? void 0 : a.background,
26
- border: a != null && a.bordered ? `${(a == null ? void 0 : a.borderWidth) || 1}px solid ${(a == null ? void 0 : a.borderColor) || "white"}` : void 0
27
- },
28
- children: /* @__PURE__ */ l("div", { className: r.specialCard_head, children: [
29
- /* @__PURE__ */ e(s, { className: r.specialCard_head_arrow }),
30
- /* @__PURE__ */ e("div", { className: r.specialCard_head_title, children: a == null ? void 0 : a.title })
31
- ] })
32
- }
33
- );
34
- }, i);
35
- export {
36
- v as default
37
- };
@@ -1,24 +0,0 @@
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 { 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";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "react";
6
- import "react-dom";
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
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
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 n } from "./attributes-Cg2w2wqR.mjs";
11
- const g = p((e) => {
12
- const { options: r, width: t, height: m } = e;
13
- return /* @__PURE__ */ o(
14
- i,
15
- {
16
- src: r == null ? void 0 : r.src,
17
- style: { width: t, height: m, pointerEvents: "none" },
18
- preview: !!(r != null && r.enablePreview)
19
- }
20
- );
21
- }, n);
22
- export {
23
- g as default
24
- };
@@ -1,39 +0,0 @@
1
- import { jsx as f } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as l } from "./index-Bwm3aMXZ.mjs";
3
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
- import { useRef as c, useEffect as a } from "react";
5
- import "react-dom";
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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
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 u } from "./attributes-Ck-M5Rw3.mjs";
10
- import d from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
11
- const D = l((m) => {
12
- const { width: i, height: n, options: e } = m, r = c(null);
13
- return a(() => {
14
- function t() {
15
- r.current.innerHTML = d().format("YYYY-MM-DD HH:mm:ss");
16
- }
17
- let o = setInterval(t, 1e3);
18
- return t(), () => {
19
- clearInterval(o);
20
- };
21
- }, []), /* @__PURE__ */ f(
22
- "div",
23
- {
24
- style: {
25
- width: i,
26
- height: n,
27
- color: e == null ? void 0 : e.color,
28
- fontSize: e == null ? void 0 : e.fontSize,
29
- textAlign: e == null ? void 0 : e.textAlign,
30
- lineHeight: `${e == null ? void 0 : e.lineHeight}px`
31
- },
32
- ref: r,
33
- children: 11
34
- }
35
- );
36
- }, u);
37
- export {
38
- D as default
39
- };
@@ -1,43 +0,0 @@
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 r } from "./index-CLnTLLjS.mjs";
3
- import { n as a } from "./index-Bwm3aMXZ.mjs";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "react";
6
- import "react-dom";
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
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- const f = a((t) => {
11
- const { width: e, height: o } = t;
12
- return /* @__PURE__ */ i(
13
- r,
14
- {
15
- options: {
16
- tooltip: {
17
- trigger: "item"
18
- },
19
- series: [
20
- {
21
- name: "Access From",
22
- type: "pie",
23
- radius: "50%",
24
- data: [
25
- { value: 1048, name: "Search Engine" },
26
- { value: 735, name: "Direct" },
27
- { value: 580, name: "Email" },
28
- { value: 484, name: "Union Ads" },
29
- { value: 300, name: "Video Ads" }
30
- ]
31
- }
32
- ]
33
- },
34
- style: {
35
- width: e,
36
- height: o
37
- }
38
- }
39
- );
40
- });
41
- export {
42
- f as default
43
- };
@@ -1,45 +0,0 @@
1
- import { jsxs as t, jsx as l } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as a } from "./index-Bwm3aMXZ.mjs";
3
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
- import "react";
5
- import "react-dom";
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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
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 { DoubleRightOutlined as r, DoubleLeftOutlined 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";
10
- import { DEFAULT_OPTIONS as T } from "./attributes-BDcSpbcs.mjs";
11
- const p = "_specialTitle_7705n_59", m = "_specialTitle_line_left_7705n_64", o = "_specialTitle_inner_7705n_69", h = "_specialTitle_inner_icon_7705n_74", d = "_specialTitle_line_right_7705n_78", i = {
12
- specialTitle: p,
13
- specialTitle_line_left: m,
14
- specialTitle_inner: o,
15
- specialTitle_inner_icon: h,
16
- specialTitle_line_right: d
17
- }, b = a((n) => {
18
- const { width: _, height: c, options: e } = n;
19
- return /* @__PURE__ */ t("div", { style: { width: _, height: c }, className: i.specialTitle, children: [
20
- /* @__PURE__ */ l("div", { className: i.specialTitle_line_left }),
21
- /* @__PURE__ */ t("div", { className: i.specialTitle_inner, children: [
22
- /* @__PURE__ */ l(r, { className: i.specialTitle_inner_icon }),
23
- /* @__PURE__ */ l(
24
- "div",
25
- {
26
- style: {
27
- color: e == null ? void 0 : e.color,
28
- wordBreak: "break-all",
29
- fontWeight: e == null ? void 0 : e.fontWeight,
30
- fontSize: e == null ? void 0 : e.fontSize,
31
- lineHeight: e != null && e.lineHeight ? `${e == null ? void 0 : e.lineHeight}px` : void 0
32
- },
33
- dangerouslySetInnerHTML: {
34
- __html: (e == null ? void 0 : e.value) || ""
35
- }
36
- }
37
- ),
38
- /* @__PURE__ */ l(s, { className: i.specialTitle_inner_icon })
39
- ] }),
40
- /* @__PURE__ */ l("div", { className: i.specialTitle_line_right })
41
- ] });
42
- }, T);
43
- export {
44
- b as default
45
- };