react-big-screen 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/{IInputNumber-PnHJNf9H.mjs → IInputNumber-8TbQFEeQ.mjs} +3 -3
- package/es/{Line-CLgwvraj.mjs → Line-h-rhOKev.mjs} +37 -37
- package/es/{attributes-CCphg5Uz.mjs → attributes-5RpQLPsm.mjs} +7 -8
- package/es/{attributes-B2zdUkEM.mjs → attributes-B8s8kYoD.mjs} +5 -6
- package/es/{attributes-BoihG0Pf.mjs → attributes-BDv3jJ5O.mjs} +12 -13
- package/es/{attributes-DFoyvXIt.mjs → attributes-BIXlzE3A.mjs} +5 -6
- package/es/{attributes-DDwE7z2U.mjs → attributes-CauLjFb0.mjs} +5 -6
- package/es/{attributes-IldrBXRw.mjs → attributes-CgnjWsLu.mjs} +5 -6
- package/es/{attributes-GO1j5FqP.mjs → attributes-CqNLwRW3.mjs} +8 -9
- package/es/{attributes-Cp6DmzH2.mjs → attributes-CuUxWoIW.mjs} +5 -6
- package/es/{attributes-D0U-wvwb.mjs → attributes-CxnJg-FT.mjs} +8 -9
- package/es/{attributes-CGZYjvqh.mjs → attributes-DBip_IK_.mjs} +50 -51
- package/es/{attributes-DiQPq5cp.mjs → attributes-DYnxULqW.mjs} +5 -6
- package/es/{attributes-CReX9tBs.mjs → attributes-NVduSBUS.mjs} +6 -7
- package/es/{index-D44zLboN.mjs → index-56XQx0At.mjs} +6 -7
- package/es/{index-DcqPY0qy.mjs → index-8Jjn38kS.mjs} +18 -19
- package/es/{index-CSzeRH1c.mjs → index-BAzeX1Ol.mjs} +28 -29
- package/es/{index-BfVztt-6.mjs → index-BFdLFt4J.mjs} +6 -7
- package/es/{index-D1jy9Oi_.mjs → index-BInCuYp5.mjs} +16 -17
- package/es/{index-X3IxUabI.mjs → index-BVjByyUe.mjs} +6 -7
- package/es/{index-DJy3VCmO.mjs → index-Bdqrb_sj.mjs} +7 -8
- package/es/index-BhafNo6T.mjs +16092 -0
- package/es/{index-I1LC9rW6.mjs → index-Bi3lZwlI.mjs} +54 -55
- package/es/{index-94huGSfW.mjs → index-C49BBpRX.mjs} +7 -8
- package/es/{index-Id1jg1qj.mjs → index-CBAcYtqX.mjs} +7 -8
- package/es/{index-DbwrHA2p.mjs → index-CFdcAnNu.mjs} +11 -12
- package/es/{index-3yjjqo9a.mjs → index-CgI9EXqn.mjs} +13 -14
- package/es/{index-COdMO6-N.mjs → index-CjeVSp69.mjs} +7 -8
- package/es/{index-DdNS18i9.mjs → index-Cm-Rzkqs.mjs} +41 -42
- package/es/{index-jD_EEzQJ.mjs → index-D07zNDg9.mjs} +13 -14
- package/es/{index-D3O-30zC.mjs → index-DCIgeYYw.mjs} +6 -7
- package/es/{index-C2gXj9yh.mjs → index-Daza1EsK.mjs} +3 -3
- package/es/{index-CNgtHfNT.mjs → index-Dkl0nzkU.mjs} +10 -11
- package/es/{index-CEejLCq7.mjs → index-Dvs_cgct.mjs} +10 -11
- package/es/{index-BCzhbh3u.mjs → index-DzRsgn_u.mjs} +37 -38
- package/es/{index-BaY0buPw.mjs → index-GdH3Zwz0.mjs} +7 -8
- package/es/{index-VRwDBwp0.mjs → index-SkjPQ6Pt.mjs} +9 -10
- package/es/index-dxiyF_62.mjs +29 -0
- package/es/{index-3f6NpN6Q.mjs → index-i0K7Ynj-.mjs} +6 -7
- package/es/{index-guYPVm3G.mjs → index-kvRZQZJ-.mjs} +1 -1
- package/es/{index-BOLcaCeQ.mjs → index-nSniwbAA.mjs} +7 -8
- package/es/{index-7SrSU63A.mjs → index-umVDADGS.mjs} +22 -23
- package/es/index.mjs +7 -8
- package/es/{selectPage-DGZoj14b.mjs → selectPage-ChSsIBe9.mjs} +2 -2
- package/es/{useCurrentPageId-CuYS8NBR.mjs → useCurrentPageId-BlVc4whf.mjs} +5 -6
- package/es/useEffectOnce-Ct0JMBZd.mjs +7 -0
- package/es/useListenRef-Dqm6KZRj.mjs +8 -0
- package/es/{useResizeDom-B6mM4jrh.mjs → useResizeDom-BUgMcz6M.mjs} +2 -2
- package/package.json +1 -1
- package/es/index-BqPf_Hxm.mjs +0 -4441
- package/es/index-D1ux0Voe.mjs +0 -29
- package/es/useEffectOnce-l5sUTCBG.mjs +0 -7
- package/es/useListenRef-B01dENv0.mjs +0 -8
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as r, jsx as d } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { C as k, n as I, d as L, J as S } from "./index-BhafNo6T.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 { useRef as
|
|
5
|
-
import "react-dom";
|
|
4
|
+
import { useRef as N, useMemo as H } 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";
|
|
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 { Space as N } from "antd";
|
|
8
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
9
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
10
9
|
import g from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
11
10
|
import { CloseOutlined as R, PlusOutlined as A } 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";
|
|
12
|
-
import { b as T, I as q } from "./index-
|
|
13
|
-
import { L as D, a as v, I as C, b as P } from "./Line-
|
|
11
|
+
import { b as T, I as q } from "./index-dxiyF_62.mjs";
|
|
12
|
+
import { L as D, a as v, I as C, b as P } from "./Line-h-rhOKev.mjs";
|
|
14
13
|
const w = "_editSeriesList_c1zv3_59", O = {
|
|
15
14
|
editSeriesList: w
|
|
16
15
|
}, U = "_tabsHead_1q8na_59", j = "_tabsHead_add_1q8na_64", B = "_tabsHead_body_1q8na_72", E = "_tabsHead_body_inner_1q8na_85", F = "_tabsHead_item_1q8na_90", K = "_tabsHead_item_selected_1q8na_102", $ = "_tabsHead_item_delete_1q8na_107", h = {
|
|
@@ -24,39 +23,39 @@ const w = "_editSeriesList_c1zv3_59", O = {
|
|
|
24
23
|
};
|
|
25
24
|
function z(e) {
|
|
26
25
|
var l, i;
|
|
27
|
-
const t =
|
|
28
|
-
function
|
|
29
|
-
const m = n.getBoundingClientRect(),
|
|
26
|
+
const t = N(null);
|
|
27
|
+
function b(n) {
|
|
28
|
+
const m = n.getBoundingClientRect(), o = t.current.getBoundingClientRect();
|
|
30
29
|
return T(
|
|
31
30
|
{ x1: m.x, y1: m.y, x2: m.right, y2: m.bottom },
|
|
32
31
|
{
|
|
33
|
-
x1:
|
|
34
|
-
y1:
|
|
35
|
-
x2:
|
|
36
|
-
y2:
|
|
32
|
+
x1: o.x,
|
|
33
|
+
y1: o.y,
|
|
34
|
+
x2: o.right,
|
|
35
|
+
y2: o.bottom
|
|
37
36
|
}
|
|
38
37
|
);
|
|
39
38
|
}
|
|
40
39
|
function s(n) {
|
|
41
|
-
|
|
40
|
+
b(n) || t.current.scrollTo({
|
|
42
41
|
left: n.offsetLeft - 20,
|
|
43
42
|
// -20 是为了能刚好看到前一个
|
|
44
43
|
behavior: "smooth"
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ r("div", { style: e == null ? void 0 : e.style, className: h.tabsHead, children: [
|
|
48
47
|
/* @__PURE__ */ d("div", { className: h.tabsHead_body, ref: t, children: /* @__PURE__ */ d("div", { className: h.tabsHead_body_inner, children: (i = (l = e == null ? void 0 : e.items) == null ? void 0 : l.map) == null ? void 0 : i.call(l, (n, m) => {
|
|
49
|
-
const
|
|
50
|
-
return /* @__PURE__ */
|
|
48
|
+
const o = (n == null ? void 0 : n.value) === (e == null ? void 0 : e.value);
|
|
49
|
+
return /* @__PURE__ */ r(
|
|
51
50
|
"div",
|
|
52
51
|
{
|
|
53
52
|
className: g(
|
|
54
53
|
h.tabsHead_item,
|
|
55
|
-
|
|
54
|
+
o && h.tabsHead_item_selected
|
|
56
55
|
),
|
|
57
|
-
onClick: (
|
|
56
|
+
onClick: (y) => {
|
|
58
57
|
var a;
|
|
59
|
-
|
|
58
|
+
o || (s(y.target), (a = e == null ? void 0 : e.onChange) == null || a.call(e, n == null ? void 0 : n.value));
|
|
60
59
|
},
|
|
61
60
|
children: [
|
|
62
61
|
n == null ? void 0 : n.label,
|
|
@@ -64,9 +63,9 @@ function z(e) {
|
|
|
64
63
|
R,
|
|
65
64
|
{
|
|
66
65
|
className: g(h.tabsHead_item_delete, "icon_clickable"),
|
|
67
|
-
onClick: (
|
|
66
|
+
onClick: (y) => {
|
|
68
67
|
var a;
|
|
69
|
-
|
|
68
|
+
y.stopPropagation(), (a = e == null ? void 0 : e.onDelete) == null || a.call(e, n.value);
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
)
|
|
@@ -78,24 +77,24 @@ function z(e) {
|
|
|
78
77
|
(e == null ? void 0 : e.showAdd) && /* @__PURE__ */ d("div", { className: h.tabsHead_add, onClick: e == null ? void 0 : e.onAdd, children: /* @__PURE__ */ d(A, {}) })
|
|
79
78
|
] });
|
|
80
79
|
}
|
|
81
|
-
function
|
|
82
|
-
const { value: t, onChange:
|
|
80
|
+
function J(e) {
|
|
81
|
+
const { value: t, onChange: b } = e;
|
|
83
82
|
function s(l) {
|
|
84
|
-
|
|
83
|
+
b == null || b({
|
|
85
84
|
...t,
|
|
86
85
|
...l
|
|
87
86
|
});
|
|
88
87
|
}
|
|
89
|
-
return /* @__PURE__ */ d(D, { labelSpan: 6, children: /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ d(D, { labelSpan: 6, children: /* @__PURE__ */ r(k, { direction: "vertical", style: { width: "100%", padding: 12 }, children: [
|
|
90
89
|
/* @__PURE__ */ d(v, { label: "名称", children: /* @__PURE__ */ d(C, { value: t == null ? void 0 : t.name, onChange: (l) => s({ name: l }) }) }),
|
|
91
90
|
/* @__PURE__ */ d(v, { label: "字段", children: /* @__PURE__ */ d(C, { value: t == null ? void 0 : t.value, onChange: (l) => s({ value: l }) }) }),
|
|
92
91
|
/* @__PURE__ */ d(v, { label: "颜色", children: /* @__PURE__ */ d(P, { value: t == null ? void 0 : t.color, onChange: (l) => s({ color: l }) }) })
|
|
93
92
|
] }) });
|
|
94
93
|
}
|
|
95
|
-
function
|
|
96
|
-
const { value: t = [] } = e, [
|
|
97
|
-
var u,
|
|
98
|
-
const a = ((
|
|
94
|
+
function M(e) {
|
|
95
|
+
const { value: t = [] } = e, [b, s, l] = I(""), i = H(() => {
|
|
96
|
+
var u, _;
|
|
97
|
+
const a = ((_ = (u = e == null ? void 0 : e.value) == null ? void 0 : u.map) == null ? void 0 : _.call(u, (c) => ({
|
|
99
98
|
label: c.name || "",
|
|
100
99
|
value: c.key || (c == null ? void 0 : c.value) || "",
|
|
101
100
|
data: c
|
|
@@ -103,66 +102,66 @@ function V(e) {
|
|
|
103
102
|
return a.length && (a.some((f) => f.value === l.current) || s(a[0].value)), a;
|
|
104
103
|
}, [e == null ? void 0 : e.value]), n = H(() => {
|
|
105
104
|
var a, u;
|
|
106
|
-
return (u = (a = i == null ? void 0 : i.find) == null ? void 0 : a.call(i, (
|
|
107
|
-
}, [i,
|
|
105
|
+
return (u = (a = i == null ? void 0 : i.find) == null ? void 0 : a.call(i, (_) => (_ == null ? void 0 : _.value) === b)) == null ? void 0 : u.data;
|
|
106
|
+
}, [i, b]);
|
|
108
107
|
function m() {
|
|
109
108
|
var a;
|
|
110
109
|
(a = e == null ? void 0 : e.onChange) == null || a.call(e, [
|
|
111
110
|
...t,
|
|
112
111
|
{
|
|
113
|
-
key:
|
|
112
|
+
key: L(4),
|
|
114
113
|
name: `数据${t.length + 1}`,
|
|
115
114
|
value: void 0,
|
|
116
115
|
color: "white"
|
|
117
116
|
}
|
|
118
117
|
]);
|
|
119
118
|
}
|
|
120
|
-
function
|
|
121
|
-
var
|
|
119
|
+
function o(a) {
|
|
120
|
+
var _;
|
|
122
121
|
const u = i == null ? void 0 : i.reduce((c, f) => (f.value !== a && c.push(f.data), c), []);
|
|
123
|
-
(
|
|
122
|
+
(_ = e == null ? void 0 : e.onChange) == null || _.call(e, u);
|
|
124
123
|
}
|
|
125
|
-
function
|
|
126
|
-
var u,
|
|
124
|
+
function y(a) {
|
|
125
|
+
var u, _;
|
|
127
126
|
(u = t == null ? void 0 : t.some) == null || u.call(t, (c) => {
|
|
128
127
|
const f = c.key === a.key;
|
|
129
128
|
return f && Object.assign(c, a), f;
|
|
130
|
-
}), (
|
|
129
|
+
}), (_ = e == null ? void 0 : e.onChange) == null || _.call(e, [...t]);
|
|
131
130
|
}
|
|
132
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ r("div", { className: O.editSeriesList, children: [
|
|
133
132
|
/* @__PURE__ */ d(
|
|
134
133
|
z,
|
|
135
134
|
{
|
|
136
135
|
showAdd: !0,
|
|
137
136
|
showDelete: !0,
|
|
138
|
-
value:
|
|
137
|
+
value: b,
|
|
139
138
|
items: i,
|
|
140
139
|
onChange: s,
|
|
141
140
|
onAdd: m,
|
|
142
141
|
onDelete: (a) => {
|
|
143
|
-
|
|
142
|
+
o(a);
|
|
144
143
|
}
|
|
145
144
|
}
|
|
146
145
|
),
|
|
147
146
|
!n && /* @__PURE__ */ d(q, {}),
|
|
148
147
|
n && /* @__PURE__ */ d(
|
|
149
|
-
|
|
148
|
+
J,
|
|
150
149
|
{
|
|
151
150
|
value: n,
|
|
152
151
|
onChange: (a) => {
|
|
153
|
-
|
|
152
|
+
y(a);
|
|
154
153
|
}
|
|
155
154
|
}
|
|
156
155
|
)
|
|
157
156
|
] });
|
|
158
157
|
}
|
|
159
|
-
const
|
|
158
|
+
const V = {
|
|
160
159
|
seriesList: [
|
|
161
160
|
{ key: "1", name: "数据1", value: "value1", color: "#f8e71c" },
|
|
162
161
|
{ key: "2", name: "数据2", value: "value2", color: "#7ed321" },
|
|
163
162
|
{ key: "3", name: "数据3", value: "value3", color: "#1071e0" }
|
|
164
163
|
]
|
|
165
|
-
},
|
|
164
|
+
}, de = S(
|
|
166
165
|
[
|
|
167
166
|
{
|
|
168
167
|
key: "background",
|
|
@@ -176,12 +175,12 @@ const W = {
|
|
|
176
175
|
key: "seriesList",
|
|
177
176
|
label: "映射",
|
|
178
177
|
labelTip: "图表的数据映射",
|
|
179
|
-
component: ({ value: e, onChange: t }) => /* @__PURE__ */ d("div", { style: { border: "1px solid #e8e8e8" }, children: /* @__PURE__ */ d(
|
|
178
|
+
component: ({ value: e, onChange: t }) => /* @__PURE__ */ d("div", { style: { border: "1px solid #e8e8e8" }, children: /* @__PURE__ */ d(M, { value: e, onChange: t }) })
|
|
180
179
|
}
|
|
181
180
|
],
|
|
182
|
-
|
|
181
|
+
V
|
|
183
182
|
);
|
|
184
183
|
export {
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
V as DEFAULT_OPTIONS,
|
|
185
|
+
de as default
|
|
187
186
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as t } from "./index-BhafNo6T.mjs";
|
|
2
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";
|
|
3
|
+
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
4
|
+
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
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 "antd";
|
|
7
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
9
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
10
9
|
const o = {
|
|
11
10
|
src: "https://ts3.cn.mm.bing.net/th?id=OIP-C.3r1vguZyWFUJ80A2Nf2k3AHaEK&w=333&h=187&c=8&rs=1&qlt=90&o=6&dpr=2&pid=3.1&rm=2"
|
|
12
|
-
},
|
|
11
|
+
}, c = t(
|
|
13
12
|
[
|
|
14
13
|
{
|
|
15
14
|
key: "src",
|
|
@@ -31,5 +30,5 @@ const o = {
|
|
|
31
30
|
);
|
|
32
31
|
export {
|
|
33
32
|
o as DEFAULT_OPTIONS,
|
|
34
|
-
|
|
33
|
+
c as default
|
|
35
34
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
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 {
|
|
2
|
+
import { J as t } from "./index-BhafNo6T.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 "react";
|
|
5
|
-
import "react-dom";
|
|
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";
|
|
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 "antd";
|
|
8
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
9
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
10
|
-
import { I as b } from "./index-
|
|
9
|
+
import { I as b } from "./index-BAzeX1Ol.mjs";
|
|
11
10
|
const g = {
|
|
12
11
|
id: "clock.png"
|
|
13
|
-
},
|
|
12
|
+
}, s = t(
|
|
14
13
|
[
|
|
15
14
|
/* @__PURE__ */ e("b", { children: "基本配置" }, "data"),
|
|
16
15
|
{
|
|
@@ -54,5 +53,5 @@ const g = {
|
|
|
54
53
|
);
|
|
55
54
|
export {
|
|
56
55
|
g as DEFAULT_OPTIONS,
|
|
57
|
-
|
|
56
|
+
s as default
|
|
58
57
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
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 {
|
|
2
|
+
import { H as c } from "./index-BhafNo6T.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 "react";
|
|
5
|
-
import "react-dom";
|
|
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";
|
|
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 "antd";
|
|
8
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
9
8
|
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 i } from "./attributes-
|
|
9
|
+
import { DEFAULT_OPTIONS as i } from "./attributes-CauLjFb0.mjs";
|
|
11
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";
|
|
12
11
|
const _ = "_specialCard_1s46n_59", t = "_specialCard_head_1s46n_64", m = "_specialCard_head_arrow_1s46n_71", o = "_specialCard_head_title_1s46n_74", r = {
|
|
13
12
|
specialCard: _,
|
|
14
13
|
specialCard_head: t,
|
|
15
14
|
specialCard_head_arrow: m,
|
|
16
15
|
specialCard_head_title: o
|
|
17
|
-
},
|
|
16
|
+
}, v = c((d) => {
|
|
18
17
|
const { options: a } = d;
|
|
19
18
|
return /* @__PURE__ */ e(
|
|
20
19
|
"div",
|
|
@@ -34,5 +33,5 @@ const _ = "_specialCard_1s46n_59", t = "_specialCard_head_1s46n_64", m = "_speci
|
|
|
34
33
|
);
|
|
35
34
|
}, i);
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
v as default
|
|
38
37
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsx as n, jsxs as g } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import { I as u } from "./index-
|
|
4
|
-
import "react";
|
|
5
|
-
import { Tooltip as v, Checkbox as h, Slider as C } from "antd";
|
|
2
|
+
import { G as l, T as v, t as h, S as C } from "./index-BhafNo6T.mjs";
|
|
3
|
+
import { I as u } from "./index-BAzeX1Ol.mjs";
|
|
4
|
+
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
6
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";
|
|
7
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-color@2.19.3_react@18.3.1/node_modules/react-color/es/index.js";
|
|
8
|
-
import { I as f, b
|
|
7
|
+
import { I as f, b } from "./Line-h-rhOKev.mjs";
|
|
9
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
10
|
-
import { I as
|
|
9
|
+
import { I as m, a as o } from "./IInputNumber-8TbQFEeQ.mjs";
|
|
11
10
|
import { ReloadOutlined as x } 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";
|
|
12
|
-
import { useTranslation as
|
|
13
|
-
const
|
|
11
|
+
import { useTranslation as y } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-i18next@15.7.4_i18next@24.2.3_typescript@5.9.3__react-dom@18.3.1_react@18.3.1__react@18.3.1_typescript@5.9.3/node_modules/react-i18next/dist/es/index.js";
|
|
12
|
+
const k = () => {
|
|
14
13
|
l.register("select", (e) => /* @__PURE__ */ n(
|
|
15
14
|
u,
|
|
16
15
|
{
|
|
@@ -21,7 +20,7 @@ const y = () => {
|
|
|
21
20
|
}
|
|
22
21
|
));
|
|
23
22
|
};
|
|
24
|
-
function
|
|
23
|
+
function r(e) {
|
|
25
24
|
return /* @__PURE__ */ n(
|
|
26
25
|
u,
|
|
27
26
|
{
|
|
@@ -51,14 +50,14 @@ function I(e) {
|
|
|
51
50
|
);
|
|
52
51
|
}
|
|
53
52
|
function d(e) {
|
|
54
|
-
const [t] =
|
|
53
|
+
const [t] = y();
|
|
55
54
|
return /* @__PURE__ */ n(v, { title: t("reset"), children: /* @__PURE__ */ n(x, { className: "icon_clickable", onClick: e == null ? void 0 : e.onClick }) });
|
|
56
55
|
}
|
|
57
56
|
const S = () => {
|
|
58
57
|
l.register("input", (e) => /* @__PURE__ */ n(f, { ...e == null ? void 0 : e.options, value: e.value, onChange: e.onChange }));
|
|
59
|
-
},
|
|
58
|
+
}, T = () => {
|
|
60
59
|
l.register("inputNumber", (e) => /* @__PURE__ */ n(
|
|
61
|
-
|
|
60
|
+
m,
|
|
62
61
|
{
|
|
63
62
|
style: { width: "100%" },
|
|
64
63
|
...e == null ? void 0 : e.options,
|
|
@@ -66,9 +65,9 @@ const S = () => {
|
|
|
66
65
|
onChange: e.onChange
|
|
67
66
|
}
|
|
68
67
|
));
|
|
69
|
-
},
|
|
68
|
+
}, w = () => {
|
|
70
69
|
l.register("textarea", (e) => /* @__PURE__ */ n(
|
|
71
|
-
|
|
70
|
+
o,
|
|
72
71
|
{
|
|
73
72
|
...e == null ? void 0 : e.options,
|
|
74
73
|
value: e.value,
|
|
@@ -77,7 +76,7 @@ const S = () => {
|
|
|
77
76
|
));
|
|
78
77
|
}, N = () => {
|
|
79
78
|
l.register("fontWeightSelect", (e) => /* @__PURE__ */ n(
|
|
80
|
-
|
|
79
|
+
r,
|
|
81
80
|
{
|
|
82
81
|
style: { width: "100%" },
|
|
83
82
|
...e == null ? void 0 : e.options,
|
|
@@ -95,7 +94,7 @@ const S = () => {
|
|
|
95
94
|
resetColor: c
|
|
96
95
|
// 重置颜色
|
|
97
96
|
} = (e == null ? void 0 : e.options) || {}, i = /* @__PURE__ */ n(
|
|
98
|
-
|
|
97
|
+
b,
|
|
99
98
|
{
|
|
100
99
|
style: { width: "100%" },
|
|
101
100
|
...e == null ? void 0 : e.options,
|
|
@@ -209,9 +208,9 @@ const S = () => {
|
|
|
209
208
|
);
|
|
210
209
|
});
|
|
211
210
|
};
|
|
212
|
-
function
|
|
213
|
-
|
|
211
|
+
function H() {
|
|
212
|
+
k(), S(), T(), w(), N(), P(), A(), B(), F(), R(), W();
|
|
214
213
|
}
|
|
215
214
|
export {
|
|
216
|
-
|
|
215
|
+
H as default
|
|
217
216
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsxs as Q, jsx as b } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { useState as S } from "react";
|
|
3
|
-
import { Select as M } from "antd";
|
|
2
|
+
import { useState as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
4
3
|
import { useDebounceEffect as X, 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";
|
|
5
|
-
import { u as Y } from "./useEffectOnce-
|
|
6
|
-
import {
|
|
4
|
+
import { u as Y } from "./useEffectOnce-Ct0JMBZd.mjs";
|
|
5
|
+
import { n as Z, O as E } from "./index-BhafNo6T.mjs";
|
|
7
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";
|
|
8
|
-
const q = (e,
|
|
7
|
+
const q = (e, n) => {
|
|
9
8
|
var r, f, d;
|
|
10
|
-
return (d = (r = (
|
|
9
|
+
return (d = (r = (n == null ? void 0 : n.children) || "") == null ? void 0 : r.toLowerCase) == null ? void 0 : d.call(r).includes((f = e == null ? void 0 : e.toLowerCase) == null ? void 0 : f.call(e));
|
|
11
10
|
};
|
|
12
11
|
function $(e) {
|
|
13
12
|
const {
|
|
14
|
-
allowClear:
|
|
13
|
+
allowClear: n = !0,
|
|
15
14
|
size: r = "small",
|
|
16
15
|
defaultFirst: f,
|
|
17
16
|
disabled: d,
|
|
@@ -22,22 +21,22 @@ function $(e) {
|
|
|
22
21
|
style: N = {},
|
|
23
22
|
debounceTime: U = 500,
|
|
24
23
|
showSearch: w = !0,
|
|
25
|
-
isLocalSearch:
|
|
24
|
+
isLocalSearch: M = !0,
|
|
26
25
|
effectParams: W = [],
|
|
27
26
|
filterOption: h = void 0,
|
|
28
27
|
requestFn: m = () => Promise.resolve([]),
|
|
29
|
-
onChange:
|
|
28
|
+
onChange: l
|
|
30
29
|
} = e, i = {
|
|
31
30
|
label: B,
|
|
32
31
|
value: ""
|
|
33
|
-
}, [P, _] = S(""), [C, A] = S([]), [g,
|
|
34
|
-
function
|
|
32
|
+
}, [P, _] = S(""), [C, A] = S([]), [g, O] = S(void 0), [I, L] = S({}), [k, G, H] = Z(!1);
|
|
33
|
+
function R(t = "", u) {
|
|
35
34
|
m == null || m(t).then((a = []) => {
|
|
36
35
|
var T, D, F, j;
|
|
37
36
|
const c = {};
|
|
38
37
|
a.forEach((o) => {
|
|
39
38
|
c[`${o == null ? void 0 : o.value}`] = o;
|
|
40
|
-
}), L(c), A(a), !H.current && f && (
|
|
39
|
+
}), L(c), A(a), !H.current && f && (l == null || l((T = a == null ? void 0 : a[0]) == null ? void 0 : T.value, (D = a == null ? void 0 : a[0]) == null ? void 0 : D.label, c), G(!0)), u && e != null && e.effectDefaultFirst && (l == null || l((F = a == null ? void 0 : a[0]) == null ? void 0 : F.value, (j = a == null ? void 0 : a[0]) == null ? void 0 : j.label, c));
|
|
41
40
|
});
|
|
42
41
|
}
|
|
43
42
|
X(
|
|
@@ -59,45 +58,45 @@ function $(e) {
|
|
|
59
58
|
return h == null ? void 0 : h(t, u, I);
|
|
60
59
|
}
|
|
61
60
|
return Y(() => {
|
|
62
|
-
v !== void 0 &&
|
|
61
|
+
v !== void 0 && O(v), R("");
|
|
63
62
|
}), V(() => {
|
|
64
|
-
|
|
63
|
+
O(v);
|
|
65
64
|
}, [v]), V(() => {
|
|
66
|
-
|
|
65
|
+
R("", !0);
|
|
67
66
|
}, W), /* @__PURE__ */ Q(
|
|
68
|
-
|
|
67
|
+
E,
|
|
69
68
|
{
|
|
70
69
|
size: r,
|
|
71
|
-
allowClear:
|
|
70
|
+
allowClear: n,
|
|
72
71
|
disabled: d,
|
|
73
72
|
style: N,
|
|
74
73
|
value: g,
|
|
75
74
|
placeholder: K,
|
|
76
75
|
showSearch: w,
|
|
77
|
-
filterOption: w &&
|
|
76
|
+
filterOption: w && M ? h ? J : q : !1,
|
|
78
77
|
onBlur: () => {
|
|
79
|
-
e != null && e.isLocalSearch ||
|
|
78
|
+
e != null && e.isLocalSearch || R("");
|
|
80
79
|
},
|
|
81
|
-
onSearch: w && !
|
|
80
|
+
onSearch: w && !M ? (t) => _(t) : void 0,
|
|
82
81
|
onChange: (t, u) => {
|
|
83
82
|
const a = Array.isArray(u) ? u.map((c) => c.children) : u == null ? void 0 : u.children;
|
|
84
|
-
|
|
83
|
+
l == null || l(t, a, I), v === void 0 && O(t);
|
|
85
84
|
},
|
|
86
85
|
...e == null ? void 0 : e.extAntdProps,
|
|
87
86
|
children: [
|
|
88
|
-
z && /* @__PURE__ */ b(
|
|
89
|
-
C == null ? void 0 : C.map((t) => /* @__PURE__ */ b(
|
|
87
|
+
z && /* @__PURE__ */ b(E.Option, { value: i.value, children: e != null && e.optionRender ? e.optionRender(i) : i == null ? void 0 : i.label }, i.value),
|
|
88
|
+
C == null ? void 0 : C.map((t) => /* @__PURE__ */ b(E.Option, { value: t.value, children: e != null && e.optionRender ? e.optionRender(t) : t == null ? void 0 : t.label }, t.value))
|
|
90
89
|
]
|
|
91
90
|
}
|
|
92
91
|
);
|
|
93
92
|
}
|
|
94
93
|
function y(e) {
|
|
95
|
-
const { value:
|
|
94
|
+
const { value: n, onChange: r, extAntdProps: f, ...d } = e;
|
|
96
95
|
return /* @__PURE__ */ b(
|
|
97
96
|
$,
|
|
98
97
|
{
|
|
99
98
|
...d,
|
|
100
|
-
value:
|
|
99
|
+
value: n,
|
|
101
100
|
onChange: r,
|
|
102
101
|
extAntdProps: {
|
|
103
102
|
mode: "multiple",
|
|
@@ -107,10 +106,10 @@ function y(e) {
|
|
|
107
106
|
}
|
|
108
107
|
);
|
|
109
108
|
}
|
|
110
|
-
function
|
|
111
|
-
const
|
|
112
|
-
return /* @__PURE__ */ b(
|
|
109
|
+
function ue(e) {
|
|
110
|
+
const n = e != null && e.multiple ? y : $;
|
|
111
|
+
return /* @__PURE__ */ b(n, { ...e });
|
|
113
112
|
}
|
|
114
113
|
export {
|
|
115
|
-
|
|
114
|
+
ue as I
|
|
116
115
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
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-
|
|
3
|
-
import {
|
|
2
|
+
import { R as a } from "./index-Daza1EsK.mjs";
|
|
3
|
+
import { H as i } from "./index-BhafNo6T.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 "react";
|
|
6
|
-
import "react-dom";
|
|
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";
|
|
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
|
-
import "antd";
|
|
9
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
10
9
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
11
|
-
const
|
|
10
|
+
const g = i((t) => {
|
|
12
11
|
const { width: r, height: o } = t;
|
|
13
12
|
return /* @__PURE__ */ e(
|
|
14
13
|
a,
|
|
@@ -41,5 +40,5 @@ const x = i((t) => {
|
|
|
41
40
|
);
|
|
42
41
|
});
|
|
43
42
|
export {
|
|
44
|
-
|
|
43
|
+
g as default
|
|
45
44
|
};
|
|
@@ -1,51 +1,50 @@
|
|
|
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 {
|
|
2
|
+
import { H as h, Q as L } from "./index-BhafNo6T.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
|
|
5
|
-
import "react-dom";
|
|
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";
|
|
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 "antd";
|
|
8
7
|
import { r as y, g as C } from "./random-DD0zMfMm.mjs";
|
|
9
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
10
9
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
11
10
|
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";
|
|
12
|
-
import { DEFAULT_OPTIONS as I } from "./attributes-
|
|
13
|
-
import { A as M } from "./index-
|
|
11
|
+
import { DEFAULT_OPTIONS as I } from "./attributes-B8s8kYoD.mjs";
|
|
12
|
+
import { A as M } from "./index-kvRZQZJ-.mjs";
|
|
14
13
|
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";
|
|
15
14
|
const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_progressList_line_header_xy0sd_69", c = {
|
|
16
15
|
progressList: N,
|
|
17
16
|
progressList_line: P,
|
|
18
17
|
progressList_line_header: A
|
|
19
|
-
},
|
|
20
|
-
const { width:
|
|
21
|
-
function
|
|
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() {
|
|
22
21
|
const e = Math.max(...n.map((t) => t.count));
|
|
23
22
|
return r != null && r.max ? Math.max(r == null ? void 0 : r.max, e) : e;
|
|
24
23
|
}
|
|
25
|
-
return
|
|
24
|
+
return S(() => {
|
|
26
25
|
d(s);
|
|
27
26
|
let e = v(s);
|
|
28
27
|
function t() {
|
|
29
28
|
d(
|
|
30
29
|
e = e.map((l) => ({
|
|
31
30
|
...l,
|
|
32
|
-
count: y(C(-50, 50) + (l == null ? void 0 : l.count), 0,
|
|
31
|
+
count: y(C(-50, 50) + (l == null ? void 0 : l.count), 0, u)
|
|
33
32
|
}))
|
|
34
33
|
);
|
|
35
34
|
}
|
|
36
|
-
let
|
|
35
|
+
let m = setInterval(t, 1200);
|
|
37
36
|
return () => {
|
|
38
|
-
clearInterval(
|
|
37
|
+
clearInterval(m);
|
|
39
38
|
};
|
|
40
39
|
}, [s]), /* @__PURE__ */ o(
|
|
41
40
|
M,
|
|
42
41
|
{
|
|
43
|
-
style: { width:
|
|
42
|
+
style: { width: i, height: _ },
|
|
44
43
|
className: c.progressList,
|
|
45
44
|
disabled: !(r != null && r.autoScroll),
|
|
46
45
|
pxPerSecond: r == null ? void 0 : r.pxPerSecond,
|
|
47
46
|
children: n.map((e) => {
|
|
48
|
-
const t = ((e == null ? void 0 : e.count) || 0) * 100 /
|
|
47
|
+
const t = ((e == null ? void 0 : e.count) || 0) * 100 / u;
|
|
49
48
|
return /* @__PURE__ */ a("div", { className: c.progressList_line, children: [
|
|
50
49
|
/* @__PURE__ */ a("div", { className: c.progressList_line_header, children: [
|
|
51
50
|
/* @__PURE__ */ a(
|
|
@@ -73,7 +72,7 @@ const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_pro
|
|
|
73
72
|
)
|
|
74
73
|
] }),
|
|
75
74
|
/* @__PURE__ */ o(
|
|
76
|
-
|
|
75
|
+
L,
|
|
77
76
|
{
|
|
78
77
|
showInfo: !1,
|
|
79
78
|
percent: t,
|
|
@@ -87,5 +86,5 @@ const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_pro
|
|
|
87
86
|
);
|
|
88
87
|
}, I);
|
|
89
88
|
export {
|
|
90
|
-
|
|
89
|
+
U as default
|
|
91
90
|
};
|