@carto/ps-react-ui 4.5.0 → 4.6.0
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/dist/{download-config-DemuQ3Jm.js → download-config-C3I0jWIL.js} +2 -2
- package/dist/{download-config-DemuQ3Jm.js.map → download-config-C3I0jWIL.js.map} +1 -1
- package/dist/{row-D4VOhcNI.js → row-DZSP99LW.js} +2 -2
- package/dist/{row-D4VOhcNI.js.map → row-DZSP99LW.js.map} +1 -1
- package/dist/{series-Bola3CmD.js → series-DLNHDWs0.js} +3 -3
- package/dist/{series-Bola3CmD.js.map → series-DLNHDWs0.js.map} +1 -1
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +3 -0
- package/dist/types/widgets/actions/index.d.ts +4 -4
- package/dist/types/widgets/actions/lock-selection/types.d.ts +2 -0
- package/dist/types/widgets/actions/relative-data/relative-data.d.ts +7 -2
- package/dist/types/widgets/actions/relative-data/types.d.ts +2 -0
- package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +4 -0
- package/dist/types/widgets/category/index.d.ts +10 -2
- package/dist/types/widgets/category/style.d.ts +1 -0
- package/dist/types/widgets/no-data/no-data.d.ts +3 -2
- package/dist/types/widgets/no-data/types.d.ts +5 -1
- package/dist/types/widgets/stores/index.d.ts +1 -1
- package/dist/types/widgets/stores/types.d.ts +10 -10
- package/dist/types/widgets/stores/widget-store.d.ts +2 -3
- package/dist/types/widgets/table/index.d.ts +6 -2
- package/dist/{use-widget-ref-BFazQvJK.js → use-widget-ref-Ddr_SlJJ.js} +2 -2
- package/dist/{use-widget-ref-BFazQvJK.js.map → use-widget-ref-Ddr_SlJJ.js.map} +1 -1
- package/dist/{use-widget-selector-DqRmWQ1K.js → use-widget-selector-DFl2hW0R.js} +2 -2
- package/dist/{use-widget-selector-DqRmWQ1K.js.map → use-widget-selector-DFl2hW0R.js.map} +1 -1
- package/dist/{widget-store-CIrb9RKP.js → widget-store-Bw5zRUGg.js} +93 -95
- package/dist/widget-store-Bw5zRUGg.js.map +1 -0
- package/dist/widgets/actions.js +770 -755
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +2 -2
- package/dist/widgets/category.js +187 -183
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/echart.js +2 -2
- package/dist/widgets/error.js +37 -2
- package/dist/widgets/error.js.map +1 -1
- package/dist/widgets/formula.js +5 -5
- package/dist/widgets/histogram.js +1 -1
- package/dist/widgets/loader.js +1 -1
- package/dist/widgets/markdown.js +2 -2
- package/dist/widgets/no-data.js +58 -2
- package/dist/widgets/no-data.js.map +1 -1
- package/dist/widgets/note.js +121 -2
- package/dist/widgets/note.js.map +1 -1
- package/dist/widgets/pie.js +2 -2
- package/dist/widgets/range.js +3 -3
- package/dist/widgets/scatterplot.js +2 -2
- package/dist/widgets/skeleton-loader.js +1 -1
- package/dist/widgets/spread.js +5 -5
- package/dist/widgets/stores.js +2 -2
- package/dist/widgets/subheader.js +29 -29
- package/dist/widgets/subheader.js.map +1 -1
- package/dist/widgets/table.js +3 -3
- package/dist/widgets/timeseries.js +2 -2
- package/dist/widgets/utils.js +1 -1
- package/dist/widgets/wrapper.js +2 -2
- package/package.json +1 -5
- package/src/hooks/index.ts +0 -1
- package/src/widgets/actions/brush-toggle/brush-toggle.tsx +18 -22
- package/src/widgets/actions/change-column/change-column.test.tsx +1 -1
- package/src/widgets/actions/download/download.test.tsx +1 -1
- package/src/widgets/actions/index.ts +11 -2
- package/src/widgets/actions/lock-selection/lock-selection.test.tsx +14 -0
- package/src/widgets/actions/lock-selection/lock-selection.tsx +18 -11
- package/src/widgets/actions/lock-selection/types.ts +2 -0
- package/src/widgets/actions/relative-data/relative-data.test.tsx +211 -20
- package/src/widgets/actions/relative-data/relative-data.tsx +65 -34
- package/src/widgets/actions/relative-data/types.ts +2 -0
- package/src/widgets/actions/searcher/searcher.tsx +28 -30
- package/src/widgets/actions/stack-toggle/stack-toggle.tsx +11 -2
- package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +53 -45
- package/src/widgets/category/category-ui.tsx +7 -6
- package/src/widgets/category/index.ts +13 -14
- package/src/widgets/category/style.ts +1 -0
- package/src/widgets/no-data/no-data.test.tsx +90 -40
- package/src/widgets/no-data/no-data.tsx +7 -5
- package/src/widgets/no-data/types.ts +5 -1
- package/src/widgets/stores/index.ts +2 -0
- package/src/widgets/stores/types.ts +10 -18
- package/src/widgets/stores/widget-store.test.ts +132 -13
- package/src/widgets/stores/widget-store.ts +29 -35
- package/src/widgets/subheader/subheader.tsx +11 -3
- package/src/widgets/table/index.ts +6 -4
- package/dist/error-Cj8eUMrl.js +0 -40
- package/dist/error-Cj8eUMrl.js.map +0 -1
- package/dist/no-data-DkIt7Qt1.js +0 -61
- package/dist/no-data-DkIt7Qt1.js.map +0 -1
- package/dist/note-t51drNe0.js +0 -124
- package/dist/note-t51drNe0.js.map +0 -1
- package/dist/types/hooks/use-debounce.d.ts +0 -19
- package/dist/types/widgets/category/components/index.d.ts +0 -10
- package/dist/types/widgets/index.d.ts +0 -9
- package/dist/types/widgets/table/hooks/index.d.ts +0 -6
- package/dist/widget-store-CIrb9RKP.js.map +0 -1
- package/dist/widgets.js +0 -13
- package/dist/widgets.js.map +0 -1
- package/src/hooks/use-debounce.ts +0 -55
- package/src/widgets/category/components/index.ts +0 -14
- package/src/widgets/index.ts +0 -25
- package/src/widgets/table/hooks/index.ts +0 -7
package/dist/widgets/actions.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { IconButton as
|
|
4
|
-
import { w as
|
|
5
|
-
import { u as
|
|
6
|
-
import { FullscreenOutlined as
|
|
7
|
-
import { useState as
|
|
8
|
-
import { a as
|
|
1
|
+
import { jsx as b, jsxs as ne, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import { c as U } from "react/compiler-runtime";
|
|
3
|
+
import { IconButton as K, DialogContent as Ae, Dialog as Pe, Typography as We, DialogTitle as Be, CircularProgress as Re, MenuItem as xe, ListItemIcon as $e, ListItemText as Ee, Menu as Ce, useTheme as Fe, Box as ke, TextField as Me, InputAdornment as be, SvgIcon as Ge } from "@mui/material";
|
|
4
|
+
import { w as g } from "../widget-store-Bw5zRUGg.js";
|
|
5
|
+
import { u as Q } from "../use-widget-selector-DFl2hW0R.js";
|
|
6
|
+
import { FullscreenOutlined as Ze, Close as Ve, FileDownloadOutlined as He, PercentOutlined as Ne, SubdirectoryArrowLeftOutlined as je, ZoomInOutlined as Ue, CheckBoxOutlined as Ke, SearchOutlined as Le, ClearOutlined as Ye, HighlightAltOutlined as qe } from "@mui/icons-material";
|
|
7
|
+
import { useState as ge, useRef as le, useEffect as $ } from "react";
|
|
8
|
+
import { a as gn, d as hn } from "../exports-Cr43OCul.js";
|
|
9
9
|
import "../lasso-tool-BYbxrJ-7.js";
|
|
10
10
|
import "../cjs-D4KH3azB.js";
|
|
11
11
|
import { T as ee } from "../tooltip-BDnrRKrp.js";
|
|
12
|
-
import { b as
|
|
13
|
-
import { useSensors as
|
|
14
|
-
import { useSortable as
|
|
15
|
-
import { CSS as
|
|
16
|
-
const
|
|
12
|
+
import { b as Je, a as Qe, D as Xe, g as pe } from "../utils-BOhInag6.js";
|
|
13
|
+
import { useSensors as et, useSensor as Se, PointerSensor as tt, KeyboardSensor as nt, DndContext as ot, closestCenter as lt } from "@dnd-kit/core";
|
|
14
|
+
import { useSortable as rt, sortableKeyboardCoordinates as st, arrayMove as it, SortableContext as at, verticalListSortingStrategy as ct } from "@dnd-kit/sortable";
|
|
15
|
+
import { CSS as dt } from "@dnd-kit/utilities";
|
|
16
|
+
const ve = {
|
|
17
17
|
title: {
|
|
18
18
|
container: {
|
|
19
19
|
display: "flex",
|
|
@@ -29,284 +29,297 @@ const Te = {
|
|
|
29
29
|
spacing: n
|
|
30
30
|
}) => n(1)
|
|
31
31
|
}
|
|
32
|
-
},
|
|
33
|
-
function
|
|
34
|
-
const e =
|
|
32
|
+
}, ut = {};
|
|
33
|
+
function tn(n) {
|
|
34
|
+
const e = U(42), {
|
|
35
35
|
id: t,
|
|
36
|
-
labels:
|
|
37
|
-
children:
|
|
38
|
-
Icon:
|
|
39
|
-
IconButtonProps:
|
|
40
|
-
DialogContentProps:
|
|
41
|
-
DialogProps:
|
|
42
|
-
} = n, o =
|
|
36
|
+
labels: f,
|
|
37
|
+
children: p,
|
|
38
|
+
Icon: m,
|
|
39
|
+
IconButtonProps: S,
|
|
40
|
+
DialogContentProps: _,
|
|
41
|
+
DialogProps: y
|
|
42
|
+
} = n, o = _ === void 0 ? ut : _;
|
|
43
43
|
let l, r;
|
|
44
44
|
e[0] !== o ? ({
|
|
45
45
|
sx: r,
|
|
46
46
|
...l
|
|
47
47
|
} = o, e[0] = o, e[1] = l, e[2] = r) : (l = e[1], r = e[2]);
|
|
48
48
|
const {
|
|
49
|
-
isFullScreen:
|
|
50
|
-
title:
|
|
51
|
-
} =
|
|
52
|
-
let s;
|
|
53
|
-
e[3] !== t ? (s = (z) => {
|
|
54
|
-
x.setWidget(t, {
|
|
55
|
-
isFullScreen: z.isFullScreen
|
|
56
|
-
});
|
|
57
|
-
}, e[3] = t, e[4] = s) : s = e[4];
|
|
58
|
-
const i = s;
|
|
49
|
+
isFullScreen: s,
|
|
50
|
+
title: a
|
|
51
|
+
} = Q(t, ft);
|
|
59
52
|
let u;
|
|
60
|
-
e[
|
|
53
|
+
e[3] !== t ? (u = (P) => {
|
|
54
|
+
g.setWidget(t, {
|
|
55
|
+
isFullScreen: P.isFullScreen
|
|
56
|
+
});
|
|
57
|
+
}, e[3] = t, e[4] = u) : u = e[4];
|
|
58
|
+
const i = u;
|
|
59
|
+
let c;
|
|
60
|
+
e[5] !== i ? (c = () => i({
|
|
61
61
|
isFullScreen: !0
|
|
62
|
-
}), e[5] = i, e[6] =
|
|
63
|
-
let
|
|
64
|
-
e[7] !==
|
|
65
|
-
let b;
|
|
66
|
-
e[9] !== p || e[10] !== u || e[11] !== m ? (b = /* @__PURE__ */ g(N, { ...p, onClick: u, children: m }), e[9] = p, e[10] = u, e[11] = m, e[12] = b) : b = e[12];
|
|
67
|
-
const C = !!f, E = d?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
|
|
68
|
-
let _;
|
|
69
|
-
e[13] !== i ? (_ = () => i({
|
|
70
|
-
isFullScreen: !1
|
|
71
|
-
}), e[13] = i, e[14] = _) : _ = e[14];
|
|
72
|
-
const D = `fullscreen-dialog-title-${t}`;
|
|
73
|
-
let L;
|
|
74
|
-
e[15] !== c ? (L = /* @__PURE__ */ g(Ae, { variant: "subtitle1", component: "span", children: c }), e[15] = c, e[16] = L) : L = e[16];
|
|
75
|
-
let y;
|
|
76
|
-
e[17] !== i ? (y = () => i({
|
|
77
|
-
isFullScreen: !1
|
|
78
|
-
}), e[17] = i, e[18] = y) : y = e[18];
|
|
62
|
+
}), e[5] = i, e[6] = c) : c = e[6];
|
|
63
|
+
let d;
|
|
64
|
+
e[7] !== m ? (d = m ?? /* @__PURE__ */ b(Ze, {}), e[7] = m, e[8] = d) : d = e[8];
|
|
79
65
|
let v;
|
|
80
|
-
e[
|
|
66
|
+
e[9] !== S || e[10] !== c || e[11] !== d ? (v = /* @__PURE__ */ b(K, { ...S, onClick: c, children: d }), e[9] = S, e[10] = c, e[11] = d, e[12] = v) : v = e[12];
|
|
67
|
+
const O = !!s, C = f?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
|
|
68
|
+
let k;
|
|
69
|
+
e[13] !== i ? (k = () => i({
|
|
70
|
+
isFullScreen: !1
|
|
71
|
+
}), e[13] = i, e[14] = k) : k = e[14];
|
|
72
|
+
const A = `fullscreen-dialog-title-${t}`;
|
|
81
73
|
let w;
|
|
82
|
-
e[
|
|
83
|
-
let
|
|
84
|
-
e[
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
74
|
+
e[15] !== a ? (w = /* @__PURE__ */ b(We, { variant: "subtitle1", component: "span", children: a }), e[15] = a, e[16] = w) : w = e[16];
|
|
75
|
+
let D;
|
|
76
|
+
e[17] !== i ? (D = () => i({
|
|
77
|
+
isFullScreen: !1
|
|
78
|
+
}), e[17] = i, e[18] = D) : D = e[18];
|
|
79
|
+
let x;
|
|
80
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ b(Ve, {}), e[19] = x) : x = e[19];
|
|
81
|
+
let E;
|
|
82
|
+
e[20] !== D ? (E = /* @__PURE__ */ b(K, { onClick: D, children: x }), e[20] = D, e[21] = E) : E = e[21];
|
|
83
|
+
let z;
|
|
84
|
+
e[22] !== A || e[23] !== w || e[24] !== E ? (z = /* @__PURE__ */ ne(Be, { id: A, sx: ve.title.container, children: [
|
|
85
|
+
w,
|
|
86
|
+
E
|
|
87
|
+
] }), e[22] = A, e[23] = w, e[24] = E, e[25] = z) : z = e[25];
|
|
88
|
+
let T;
|
|
89
|
+
e[26] !== r ? (T = {
|
|
90
|
+
...ve.content,
|
|
91
91
|
...r
|
|
92
|
-
}, e[26] = r, e[27] =
|
|
93
|
-
let
|
|
94
|
-
e[28] !== l || e[29] !==
|
|
95
|
-
let
|
|
96
|
-
e[32] !==
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
] }), e[32] =
|
|
100
|
-
let
|
|
101
|
-
return e[39] !==
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
] }), e[39] =
|
|
92
|
+
}, e[26] = r, e[27] = T) : T = e[27];
|
|
93
|
+
let h;
|
|
94
|
+
e[28] !== l || e[29] !== p || e[30] !== T ? (h = /* @__PURE__ */ b(Ae, { sx: T, ...l, children: p }), e[28] = l, e[29] = p, e[30] = T, e[31] = h) : h = e[31];
|
|
95
|
+
let I;
|
|
96
|
+
e[32] !== y || e[33] !== z || e[34] !== h || e[35] !== O || e[36] !== C || e[37] !== k ? (I = /* @__PURE__ */ ne(Pe, { maxWidth: !1, open: O, keepMounted: !0, "aria-labelledby": C, ...y, onClose: k, children: [
|
|
97
|
+
z,
|
|
98
|
+
h
|
|
99
|
+
] }), e[32] = y, e[33] = z, e[34] = h, e[35] = O, e[36] = C, e[37] = k, e[38] = I) : I = e[38];
|
|
100
|
+
let L;
|
|
101
|
+
return e[39] !== I || e[40] !== v ? (L = /* @__PURE__ */ ne(he, { children: [
|
|
102
|
+
v,
|
|
103
|
+
I
|
|
104
|
+
] }), e[39] = I, e[40] = v, e[41] = L) : L = e[41], L;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ft(n) {
|
|
107
107
|
return {
|
|
108
108
|
isFullScreen: n?.isFullScreen,
|
|
109
109
|
title: n?.title
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
function
|
|
114
|
-
const e =
|
|
112
|
+
const mt = {};
|
|
113
|
+
function nn(n) {
|
|
114
|
+
const e = U(31), {
|
|
115
115
|
id: t,
|
|
116
|
-
items:
|
|
117
|
-
labels:
|
|
118
|
-
Icon:
|
|
119
|
-
IconButtonProps:
|
|
120
|
-
} = n,
|
|
121
|
-
data:
|
|
122
|
-
} =
|
|
123
|
-
let
|
|
124
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
125
|
-
|
|
126
|
-
}, e[0] =
|
|
127
|
-
const
|
|
116
|
+
items: f,
|
|
117
|
+
labels: p,
|
|
118
|
+
Icon: m,
|
|
119
|
+
IconButtonProps: S
|
|
120
|
+
} = n, _ = p === void 0 ? mt : p, {
|
|
121
|
+
data: y
|
|
122
|
+
} = Q(t, gt), [o, l] = ge(!1), [r, s] = ge(null);
|
|
123
|
+
let a;
|
|
124
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (P) => {
|
|
125
|
+
P.stopPropagation(), s(P.currentTarget);
|
|
126
|
+
}, e[0] = a) : a = e[0];
|
|
127
|
+
const u = a;
|
|
128
128
|
let i;
|
|
129
|
-
e[1] !== t ? (i = (
|
|
130
|
-
const
|
|
131
|
-
|
|
129
|
+
e[1] !== t ? (i = (P, W) => {
|
|
130
|
+
const B = document.createElement("a");
|
|
131
|
+
B.href = P, B.download = W.filename ?? t, B.style.display = "none", document.body.appendChild(B), B.click(), document.body.removeChild(B), W.callback?.(B.href);
|
|
132
132
|
}, e[1] = t, e[2] = i) : i = e[2];
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
e[3] !==
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
if (!
|
|
133
|
+
const c = i;
|
|
134
|
+
let d;
|
|
135
|
+
e[3] !== y || e[4] !== c ? (d = async (P, W) => {
|
|
136
|
+
P.stopPropagation(), l(!0), s(null);
|
|
137
|
+
const B = await W.modifier(y);
|
|
138
|
+
if (!B) {
|
|
139
139
|
l(!1);
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
}, e[3] =
|
|
144
|
-
const
|
|
145
|
-
let
|
|
146
|
-
e[6] !==
|
|
147
|
-
let
|
|
148
|
-
e[9] !==
|
|
149
|
-
let
|
|
150
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
142
|
+
c(B, W), l(!1);
|
|
143
|
+
}, e[3] = y, e[4] = c, e[5] = d) : d = e[5];
|
|
144
|
+
const v = d, O = _.ariaLabel ?? "download options", C = o || f.length === 0, k = o || r ? "active" : "";
|
|
145
|
+
let A;
|
|
146
|
+
e[6] !== m || e[7] !== o ? (A = o ? /* @__PURE__ */ b(Re, { size: 18, color: "inherit" }) : m ?? /* @__PURE__ */ b(He, {}), e[6] = m, e[7] = o, e[8] = A) : A = e[8];
|
|
147
|
+
let w;
|
|
148
|
+
e[9] !== S || e[10] !== O || e[11] !== C || e[12] !== k || e[13] !== A ? (w = /* @__PURE__ */ b(K, { size: "small", "aria-label": O, "aria-controls": "options-menu", "aria-haspopup": "true", onClick: u, ...S, disabled: C, className: k, children: A }), e[9] = S, e[10] = O, e[11] = C, e[12] = k, e[13] = A, e[14] = w) : w = e[14];
|
|
149
|
+
let D, x;
|
|
150
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
151
151
|
vertical: "bottom",
|
|
152
152
|
horizontal: "right"
|
|
153
|
-
},
|
|
153
|
+
}, x = {
|
|
154
154
|
vertical: "top",
|
|
155
155
|
horizontal: "right"
|
|
156
|
-
}, e[15] =
|
|
157
|
-
const
|
|
158
|
-
let
|
|
159
|
-
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
156
|
+
}, e[15] = D, e[16] = x) : (D = e[15], x = e[16]);
|
|
157
|
+
const E = !!r;
|
|
158
|
+
let z, T;
|
|
159
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = () => s(null), T = {
|
|
160
160
|
sx: {
|
|
161
161
|
paddingBottom: 0
|
|
162
162
|
}
|
|
163
|
-
}, e[17] =
|
|
164
|
-
let
|
|
165
|
-
if (e[19] !==
|
|
166
|
-
let
|
|
167
|
-
e[22] !==
|
|
168
|
-
|
|
163
|
+
}, e[17] = z, e[18] = T) : (z = e[17], T = e[18]);
|
|
164
|
+
let h;
|
|
165
|
+
if (e[19] !== v || e[20] !== f) {
|
|
166
|
+
let P;
|
|
167
|
+
e[22] !== v ? (P = (W) => /* @__PURE__ */ ne(xe, { disabled: W.disabled, onClick: (B) => {
|
|
168
|
+
v(B, W);
|
|
169
169
|
}, children: [
|
|
170
|
-
|
|
170
|
+
W.icon && /* @__PURE__ */ b($e, { sx: {
|
|
171
171
|
color: "text.primary"
|
|
172
|
-
}, children:
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
] },
|
|
172
|
+
}, children: W.icon }),
|
|
173
|
+
/* @__PURE__ */ b(Ee, { children: W.label })
|
|
174
|
+
] }, W.id), e[22] = v, e[23] = P) : P = e[23], h = f.map(P), e[19] = v, e[20] = f, e[21] = h;
|
|
175
175
|
} else
|
|
176
|
-
|
|
177
|
-
let
|
|
178
|
-
e[24] !== r || e[25] !==
|
|
179
|
-
let
|
|
180
|
-
return e[28] !==
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
] }), e[28] =
|
|
176
|
+
h = e[21];
|
|
177
|
+
let I;
|
|
178
|
+
e[24] !== r || e[25] !== E || e[26] !== h ? (I = /* @__PURE__ */ b(Ce, { variant: "menu", elevation: 8, anchorOrigin: D, transformOrigin: x, anchorEl: r, open: E, onClose: z, MenuListProps: T, children: h }), e[24] = r, e[25] = E, e[26] = h, e[27] = I) : I = e[27];
|
|
179
|
+
let L;
|
|
180
|
+
return e[28] !== I || e[29] !== w ? (L = /* @__PURE__ */ ne(he, { children: [
|
|
181
|
+
w,
|
|
182
|
+
I
|
|
183
|
+
] }), e[28] = I, e[29] = w, e[30] = L) : L = e[30], L;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function gt(n) {
|
|
186
186
|
return {
|
|
187
187
|
data: n?.data
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const re = {
|
|
191
191
|
trigger: {
|
|
192
192
|
'&[data-active="true"]': {
|
|
193
193
|
background: (n) => n.palette.primary.relatedLight
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
-
function
|
|
198
|
-
return n.reduce((e, t) => t.reduce((
|
|
199
|
-
if (Array.isArray(
|
|
200
|
-
const
|
|
201
|
-
return typeof
|
|
197
|
+
function ht(n) {
|
|
198
|
+
return n.reduce((e, t) => t.reduce((f, p) => {
|
|
199
|
+
if (Array.isArray(p)) {
|
|
200
|
+
const m = p.at(-1);
|
|
201
|
+
return typeof m == "number" ? f + m : f;
|
|
202
202
|
}
|
|
203
|
-
return Object.entries(
|
|
203
|
+
return Object.entries(p).reduce((m, [S, _]) => S === "name" ? m : typeof _ == "number" ? m + _ : m, f);
|
|
204
204
|
}, e), 0);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
return e === 0 ? n : n.map((t) => t.map((
|
|
208
|
-
if (Array.isArray(
|
|
209
|
-
return
|
|
210
|
-
const
|
|
211
|
-
for (const [
|
|
212
|
-
if (
|
|
213
|
-
|
|
206
|
+
function bt(n, e) {
|
|
207
|
+
return e === 0 ? n : n.map((t) => t.map((f) => {
|
|
208
|
+
if (Array.isArray(f))
|
|
209
|
+
return f.map((m, S) => S === f.length - 1 && typeof m == "number" ? m / e * 100 : m);
|
|
210
|
+
const p = {};
|
|
211
|
+
for (const [m, S] of Object.entries(f)) {
|
|
212
|
+
if (m === "name") {
|
|
213
|
+
p[m] = S;
|
|
214
214
|
continue;
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
p[m] = typeof S == "number" ? S / e * 100 : S;
|
|
217
217
|
}
|
|
218
|
-
return
|
|
218
|
+
return p;
|
|
219
219
|
}));
|
|
220
220
|
}
|
|
221
|
-
const
|
|
222
|
-
function
|
|
223
|
-
const e =
|
|
221
|
+
const ce = "relative-data", Ie = "relative-data-config";
|
|
222
|
+
function on(n) {
|
|
223
|
+
const e = U(36), {
|
|
224
224
|
id: t,
|
|
225
|
-
order:
|
|
226
|
-
defaultIsRelative:
|
|
227
|
-
labels:
|
|
228
|
-
Icon:
|
|
229
|
-
IconButtonProps:
|
|
230
|
-
} = n,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
e[0]
|
|
235
|
-
|
|
236
|
-
|
|
225
|
+
order: f,
|
|
226
|
+
defaultIsRelative: p,
|
|
227
|
+
labels: m,
|
|
228
|
+
Icon: S,
|
|
229
|
+
IconButtonProps: _
|
|
230
|
+
} = n, y = f === void 0 ? 10 : f, o = p === void 0 ? !1 : p, l = le(void 0);
|
|
231
|
+
let r;
|
|
232
|
+
e[0] !== o ? (r = (T) => ({
|
|
233
|
+
isRelative: T?.isRelative ?? o
|
|
234
|
+
}), e[0] = o, e[1] = r) : r = e[1];
|
|
235
|
+
const {
|
|
236
|
+
isRelative: s
|
|
237
|
+
} = Q(t, r);
|
|
238
|
+
let a, u;
|
|
239
|
+
e[2] !== o || e[3] !== t ? (a = () => {
|
|
240
|
+
g.getWidget(t)?.isRelative === void 0 && g.setWidget(t, {
|
|
241
|
+
isRelative: o
|
|
242
|
+
});
|
|
243
|
+
}, u = [t, o], e[2] = o, e[3] = t, e[4] = a, e[5] = u) : (a = e[4], u = e[5]), $(a, u);
|
|
244
|
+
let i, c;
|
|
245
|
+
e[6] !== o || e[7] !== t || e[8] !== y ? (i = () => (g.registerTool(t, {
|
|
246
|
+
id: ce,
|
|
247
|
+
order: y,
|
|
237
248
|
enabled: o,
|
|
238
249
|
fn: pt
|
|
239
|
-
}), () =>
|
|
240
|
-
let
|
|
241
|
-
e[
|
|
242
|
-
|
|
250
|
+
}), () => g.unregisterTool(t, ce)), c = [t, y, o], e[6] = o, e[7] = t, e[8] = y, e[9] = i, e[10] = c) : (i = e[9], c = e[10]), $(i, c);
|
|
251
|
+
let d, v;
|
|
252
|
+
e[11] !== t || e[12] !== s ? (d = () => {
|
|
253
|
+
g.setToolEnabled(t, ce, s);
|
|
254
|
+
}, v = [t, s], e[11] = t, e[12] = s, e[13] = d, e[14] = v) : (d = e[13], v = e[14]), $(d, v);
|
|
255
|
+
let O;
|
|
256
|
+
e[15] !== t || e[16] !== y ? (O = () => (g.registerTool(t, {
|
|
257
|
+
id: Ie,
|
|
243
258
|
type: "config",
|
|
244
|
-
order:
|
|
259
|
+
order: y,
|
|
245
260
|
enabled: !0,
|
|
246
|
-
fn: (
|
|
247
|
-
const
|
|
248
|
-
if (
|
|
261
|
+
fn: (T) => {
|
|
262
|
+
const h = T, I = g.getWidget(t), L = I?.sourceData != null && !(Array.isArray(I.sourceData) && I.sourceData.length === 0);
|
|
263
|
+
if (I?.isRelative) {
|
|
264
|
+
if (!L)
|
|
265
|
+
return h;
|
|
249
266
|
if (!l.current) {
|
|
250
|
-
const
|
|
251
|
-
l.current = (
|
|
267
|
+
const P = I?.locale;
|
|
268
|
+
l.current = (W) => new Intl.NumberFormat(P, {
|
|
252
269
|
style: "percent",
|
|
253
270
|
minimumFractionDigits: 1,
|
|
254
271
|
maximumFractionDigits: 1
|
|
255
|
-
}).format(
|
|
272
|
+
}).format(W / 100);
|
|
256
273
|
}
|
|
257
274
|
return {
|
|
258
|
-
...
|
|
275
|
+
...h,
|
|
259
276
|
formatter: l.current,
|
|
260
277
|
max: 100
|
|
261
278
|
};
|
|
262
279
|
}
|
|
263
|
-
return l.current = void 0,
|
|
264
|
-
...
|
|
265
|
-
formatter:
|
|
266
|
-
max:
|
|
267
|
-
} :
|
|
268
|
-
},
|
|
269
|
-
config: {
|
|
270
|
-
isRelative: o
|
|
280
|
+
return l.current = void 0, I != null && "originalFormatter" in I ? {
|
|
281
|
+
...h,
|
|
282
|
+
formatter: I.originalFormatter,
|
|
283
|
+
max: I.originalMax
|
|
284
|
+
} : h;
|
|
271
285
|
}
|
|
272
|
-
}), () =>
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
286
|
+
}), () => {
|
|
287
|
+
const T = g.getWidget(t);
|
|
288
|
+
T?.isRelative && "originalFormatter" in T && g.setWidget(t, {
|
|
289
|
+
formatter: T.originalFormatter,
|
|
290
|
+
max: T.originalMax
|
|
291
|
+
}), l.current = void 0, g.unregisterTool(t, Ie);
|
|
292
|
+
}), e[15] = t, e[16] = y, e[17] = O) : O = e[17];
|
|
293
|
+
let C;
|
|
294
|
+
e[18] !== o || e[19] !== t || e[20] !== y ? (C = [t, y, o], e[18] = o, e[19] = t, e[20] = y, e[21] = C) : C = e[21], $(O, C);
|
|
295
|
+
let k;
|
|
296
|
+
e[22] !== t || e[23] !== s ? (k = () => {
|
|
297
|
+
const T = !s;
|
|
298
|
+
if (l.current = void 0, T) {
|
|
299
|
+
const h = g.getWidget(t);
|
|
300
|
+
g.setWidget(t, {
|
|
279
301
|
isRelative: !0,
|
|
280
|
-
originalFormatter:
|
|
281
|
-
originalMax:
|
|
282
|
-
locale: v?.locale
|
|
302
|
+
originalFormatter: h?.formatter,
|
|
303
|
+
originalMax: h?.max
|
|
283
304
|
});
|
|
284
305
|
} else
|
|
285
|
-
|
|
306
|
+
g.setWidget(t, {
|
|
286
307
|
isRelative: !1
|
|
287
308
|
});
|
|
288
|
-
}, e[
|
|
289
|
-
const
|
|
290
|
-
let
|
|
291
|
-
e[
|
|
292
|
-
let
|
|
293
|
-
e[
|
|
294
|
-
let
|
|
295
|
-
return e[
|
|
309
|
+
}, e[22] = t, e[23] = s, e[24] = k) : k = e[24];
|
|
310
|
+
const A = k, w = s ? m?.absolute ?? "Show absolute values" : m?.relative ?? "Show relative values", D = m?.ariaLabel ?? w;
|
|
311
|
+
let x;
|
|
312
|
+
e[25] !== S ? (x = S ?? /* @__PURE__ */ b(Ne, {}), e[25] = S, e[26] = x) : x = e[26];
|
|
313
|
+
let E;
|
|
314
|
+
e[27] !== _ || e[28] !== A || e[29] !== s || e[30] !== D || e[31] !== x ? (E = /* @__PURE__ */ b(K, { size: "small", "aria-label": D, onClick: A, sx: re.trigger, "data-active": s, ..._, children: x }), e[27] = _, e[28] = A, e[29] = s, e[30] = D, e[31] = x, e[32] = E) : E = e[32];
|
|
315
|
+
let z;
|
|
316
|
+
return e[33] !== E || e[34] !== w ? (z = /* @__PURE__ */ b(ee, { title: w, children: E }), e[33] = E, e[34] = w, e[35] = z) : z = e[35], z;
|
|
296
317
|
}
|
|
297
318
|
function pt(n) {
|
|
298
|
-
const e = n, t =
|
|
299
|
-
return
|
|
300
|
-
}
|
|
301
|
-
function bt(n) {
|
|
302
|
-
return {
|
|
303
|
-
storeIsRelative: n?.registeredTools?.find(St)?.config?.isRelative
|
|
304
|
-
};
|
|
319
|
+
const e = n, t = ht(e);
|
|
320
|
+
return bt(e, t);
|
|
305
321
|
}
|
|
306
|
-
|
|
307
|
-
return n.id === re;
|
|
308
|
-
}
|
|
309
|
-
const ve = {
|
|
322
|
+
const ye = {
|
|
310
323
|
container: {
|
|
311
324
|
display: "flex",
|
|
312
325
|
alignItems: "center",
|
|
@@ -319,588 +332,596 @@ const ve = {
|
|
|
319
332
|
background: (n) => n.palette.primary.relatedLight
|
|
320
333
|
}
|
|
321
334
|
}
|
|
322
|
-
},
|
|
323
|
-
function
|
|
324
|
-
const e =
|
|
335
|
+
}, de = "zoom-toggle";
|
|
336
|
+
function ln(n) {
|
|
337
|
+
const e = U(63), {
|
|
325
338
|
id: t,
|
|
326
|
-
defaultZoom:
|
|
327
|
-
defaultZoomStart:
|
|
328
|
-
defaultZoomEnd:
|
|
329
|
-
labels:
|
|
330
|
-
Icon:
|
|
331
|
-
ResetIcon:
|
|
339
|
+
defaultZoom: f,
|
|
340
|
+
defaultZoomStart: p,
|
|
341
|
+
defaultZoomEnd: m,
|
|
342
|
+
labels: S,
|
|
343
|
+
Icon: _,
|
|
344
|
+
ResetIcon: y,
|
|
332
345
|
IconButtonProps: o
|
|
333
|
-
} = n, l =
|
|
334
|
-
let
|
|
335
|
-
e[0] !== l || e[1] !==
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
zoomEnd: F?.config?.end ?? f
|
|
341
|
-
};
|
|
342
|
-
}, e[0] = l, e[1] = f, e[2] = r, e[3] = s) : s = e[3];
|
|
346
|
+
} = n, l = f === void 0 ? !1 : f, r = p === void 0 ? 0 : p, s = m === void 0 ? 100 : m, a = Fe();
|
|
347
|
+
let u;
|
|
348
|
+
e[0] !== l || e[1] !== s || e[2] !== r ? (u = (R) => ({
|
|
349
|
+
zoom: R?.zoom ?? l,
|
|
350
|
+
zoomStart: R?.zoomStart ?? r,
|
|
351
|
+
zoomEnd: R?.zoomEnd ?? s
|
|
352
|
+
}), e[0] = l, e[1] = s, e[2] = r, e[3] = u) : u = e[3];
|
|
343
353
|
const {
|
|
344
354
|
zoom: i,
|
|
345
|
-
zoomStart:
|
|
346
|
-
zoomEnd:
|
|
347
|
-
} =
|
|
348
|
-
let
|
|
349
|
-
e[4] !== t ? (
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}));
|
|
355
|
-
}, e[4] = t, e[5] = b) : b = e[5];
|
|
356
|
-
const C = b;
|
|
357
|
-
let E, _;
|
|
358
|
-
e[6] !== l || e[7] !== f || e[8] !== r || e[9] !== C || e[10] !== t || e[11] !== c ? (E = () => {
|
|
359
|
-
const P = x.getWidget(t)?.registeredTools?.find(Tt), F = P?.enabled ?? l, W = P?.config?.start ?? r, U = P?.config?.end ?? f;
|
|
360
|
-
return x.registerTool(t, {
|
|
361
|
-
id: Y,
|
|
362
|
-
type: "config",
|
|
363
|
-
order: 20,
|
|
364
|
-
enabled: F,
|
|
365
|
-
fn: (H, oe) => {
|
|
366
|
-
const G = H, J = G.option, j = G.onEvents ?? {}, Q = oe?.start ?? 0, le = oe?.end ?? 100, X = J?.legend, ue = X?.show !== !1 && X !== void 0, K = parseInt(c?.spacing?.(4) ?? "32"), Oe = qe({
|
|
367
|
-
start: Q,
|
|
368
|
-
end: le
|
|
369
|
-
}, {
|
|
370
|
-
inside: !0,
|
|
371
|
-
xSlider: !0,
|
|
372
|
-
ySlider: !1,
|
|
373
|
-
bottomOffset: ue ? 28 : 0
|
|
374
|
-
}, c), ce = J?.grid, De = (typeof ce?.bottom == "number" ? ce.bottom : parseInt(ce?.bottom ?? "24")) + K + 8;
|
|
375
|
-
({
|
|
376
|
-
...j
|
|
377
|
-
});
|
|
378
|
-
const we = {
|
|
379
|
-
...j,
|
|
380
|
-
dataZoom: C
|
|
381
|
-
};
|
|
382
|
-
return {
|
|
383
|
-
...G,
|
|
384
|
-
option: {
|
|
385
|
-
...J,
|
|
386
|
-
...Oe,
|
|
387
|
-
grid: {
|
|
388
|
-
...ce,
|
|
389
|
-
bottom: De
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
onEvents: we
|
|
393
|
-
};
|
|
394
|
-
},
|
|
395
|
-
config: {
|
|
396
|
-
start: W,
|
|
397
|
-
end: U
|
|
398
|
-
}
|
|
399
|
-
}), () => x.unregisterTool(t, Y);
|
|
400
|
-
}, _ = [t, c, C, l, r, f], e[6] = l, e[7] = f, e[8] = r, e[9] = C, e[10] = t, e[11] = c, e[12] = E, e[13] = _) : (E = e[12], _ = e[13]), Z(E, _);
|
|
401
|
-
let D;
|
|
402
|
-
e[14] !== t || e[15] !== i || e[16] !== m || e[17] !== u ? (D = () => {
|
|
403
|
-
const P = !i;
|
|
404
|
-
x.setToolEnabled(t, Y, P), x.updateToolConfig(t, Y, {
|
|
405
|
-
start: P ? u : 0,
|
|
406
|
-
end: P ? m : 100
|
|
355
|
+
zoomStart: c,
|
|
356
|
+
zoomEnd: d
|
|
357
|
+
} = Q(t, u);
|
|
358
|
+
let v, O;
|
|
359
|
+
e[4] !== l || e[5] !== s || e[6] !== r || e[7] !== t ? (v = () => {
|
|
360
|
+
g.getWidget(t)?.zoom === void 0 && g.setWidget(t, {
|
|
361
|
+
zoom: l,
|
|
362
|
+
zoomStart: r,
|
|
363
|
+
zoomEnd: s
|
|
407
364
|
});
|
|
408
|
-
}, e[
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
365
|
+
}, O = [t, l, r, s], e[4] = l, e[5] = s, e[6] = r, e[7] = t, e[8] = v, e[9] = O) : (v = e[8], O = e[9]), $(v, O);
|
|
366
|
+
let C;
|
|
367
|
+
e[10] !== t ? (C = (R) => {
|
|
368
|
+
const j = R, N = j.start ?? j.batch?.[0]?.start, Y = j.end ?? j.batch?.[0]?.end;
|
|
369
|
+
N !== void 0 && Y !== void 0 && g.setWidget(t, {
|
|
370
|
+
zoom: !0,
|
|
371
|
+
zoomStart: N,
|
|
372
|
+
zoomEnd: Y
|
|
415
373
|
});
|
|
416
|
-
}, e[
|
|
417
|
-
const
|
|
418
|
-
let k;
|
|
419
|
-
e[23] !== I ? (k = I ?? /* @__PURE__ */ g(Ue, {}), e[23] = I, e[24] = k) : k = e[24];
|
|
420
|
-
let z;
|
|
421
|
-
e[25] !== o || e[26] !== L || e[27] !== O || e[28] !== k || e[29] !== i ? (z = /* @__PURE__ */ g(N, { size: "small", "aria-label": O, onClick: L, sx: ve.trigger, "data-active": i, ...o, children: k }), e[25] = o, e[26] = L, e[27] = O, e[28] = k, e[29] = i, e[30] = z) : z = e[30];
|
|
422
|
-
let R;
|
|
423
|
-
e[31] !== z || e[32] !== S ? (R = /* @__PURE__ */ g(ee, { title: S, children: z }), e[31] = z, e[32] = S, e[33] = R) : R = e[33];
|
|
374
|
+
}, e[10] = t, e[11] = C) : C = e[11];
|
|
375
|
+
const k = C;
|
|
424
376
|
let A;
|
|
425
|
-
e[
|
|
377
|
+
e[12] !== l || e[13] !== k || e[14] !== t || e[15] !== a ? (A = () => (g.registerTool(t, {
|
|
378
|
+
id: de,
|
|
379
|
+
type: "config",
|
|
380
|
+
order: 20,
|
|
381
|
+
enabled: l,
|
|
382
|
+
fn: (R) => {
|
|
383
|
+
const j = R, N = j.option, Y = j.onEvents ?? {}, oe = g.getWidget(t), te = oe?.zoomStart ?? 0, ae = oe?.zoomEnd ?? 100, q = N?.legend, X = q?.show !== !1 && q !== void 0, Oe = parseInt(a?.spacing?.(4) ?? "32"), ze = Je({
|
|
384
|
+
start: te,
|
|
385
|
+
end: ae
|
|
386
|
+
}, {
|
|
387
|
+
inside: !0,
|
|
388
|
+
xSlider: !0,
|
|
389
|
+
ySlider: !1,
|
|
390
|
+
bottomOffset: X ? 28 : 0
|
|
391
|
+
}, a), se = N?.grid, De = (typeof se?.bottom == "number" ? se.bottom : parseInt(se?.bottom ?? "24")) + Oe + 8, we = {
|
|
392
|
+
...Y,
|
|
393
|
+
dataZoom: k
|
|
394
|
+
};
|
|
395
|
+
return {
|
|
396
|
+
...j,
|
|
397
|
+
option: {
|
|
398
|
+
...N,
|
|
399
|
+
...ze,
|
|
400
|
+
grid: {
|
|
401
|
+
...se,
|
|
402
|
+
bottom: De
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
onEvents: we
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
}), () => g.unregisterTool(t, de)), e[12] = l, e[13] = k, e[14] = t, e[15] = a, e[16] = A) : A = e[16];
|
|
409
|
+
let w;
|
|
410
|
+
e[17] !== l || e[18] !== s || e[19] !== r || e[20] !== k || e[21] !== t || e[22] !== a ? (w = [t, a, k, l, r, s], e[17] = l, e[18] = s, e[19] = r, e[20] = k, e[21] = t, e[22] = a, e[23] = w) : w = e[23], $(A, w);
|
|
411
|
+
let D, x;
|
|
412
|
+
e[24] !== t || e[25] !== i ? (D = () => {
|
|
413
|
+
g.setToolEnabled(t, de, i);
|
|
414
|
+
}, x = [t, i], e[24] = t, e[25] = i, e[26] = D, e[27] = x) : (D = e[26], x = e[27]), $(D, x);
|
|
415
|
+
let E;
|
|
416
|
+
e[28] !== t ? (E = () => {
|
|
417
|
+
g.triggerToolPipeline(t);
|
|
418
|
+
}, e[28] = t, e[29] = E) : E = e[29];
|
|
419
|
+
let z;
|
|
420
|
+
e[30] !== t || e[31] !== d || e[32] !== c ? (z = [t, c, d], e[30] = t, e[31] = d, e[32] = c, e[33] = z) : z = e[33], $(E, z);
|
|
421
|
+
let T;
|
|
422
|
+
e[34] !== t || e[35] !== i || e[36] !== d || e[37] !== c ? (T = () => {
|
|
423
|
+
const R = !i;
|
|
424
|
+
g.setWidget(t, {
|
|
425
|
+
zoom: R,
|
|
426
|
+
zoomStart: R ? c : 0,
|
|
427
|
+
zoomEnd: R ? d : 100
|
|
428
|
+
});
|
|
429
|
+
}, e[34] = t, e[35] = i, e[36] = d, e[37] = c, e[38] = T) : T = e[38];
|
|
430
|
+
const h = T;
|
|
431
|
+
let I;
|
|
432
|
+
e[39] !== s || e[40] !== r || e[41] !== t ? (I = () => {
|
|
433
|
+
g.setWidget(t, {
|
|
434
|
+
zoom: !0,
|
|
435
|
+
zoomStart: r,
|
|
436
|
+
zoomEnd: s
|
|
437
|
+
});
|
|
438
|
+
}, e[39] = s, e[40] = r, e[41] = t, e[42] = I) : I = e[42];
|
|
439
|
+
const L = I, P = S?.enable ?? "Enable zoom", W = S?.disable ?? "Disable zoom", B = S?.reset ?? "Reset zoom", H = i ? W : P, Z = S?.ariaLabel ?? H;
|
|
440
|
+
let F;
|
|
441
|
+
e[43] !== _ ? (F = _ ?? /* @__PURE__ */ b(Ue, {}), e[43] = _, e[44] = F) : F = e[44];
|
|
442
|
+
let G;
|
|
443
|
+
e[45] !== o || e[46] !== h || e[47] !== Z || e[48] !== F || e[49] !== i ? (G = /* @__PURE__ */ b(K, { size: "small", "aria-label": Z, onClick: h, sx: ye.trigger, "data-active": i, ...o, children: F }), e[45] = o, e[46] = h, e[47] = Z, e[48] = F, e[49] = i, e[50] = G) : G = e[50];
|
|
444
|
+
let V;
|
|
445
|
+
e[51] !== G || e[52] !== H ? (V = /* @__PURE__ */ b(ee, { title: H, children: G }), e[51] = G, e[52] = H, e[53] = V) : V = e[53];
|
|
426
446
|
let M;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
447
|
+
e[54] !== o || e[55] !== y || e[56] !== L || e[57] !== B || e[58] !== i ? (M = i && /* @__PURE__ */ b(ee, { title: B, children: /* @__PURE__ */ b(K, { size: "small", "aria-label": B, onClick: L, ...o, children: y ?? /* @__PURE__ */ b(je, {}) }) }), e[54] = o, e[55] = y, e[56] = L, e[57] = B, e[58] = i, e[59] = M) : M = e[59];
|
|
448
|
+
let J;
|
|
449
|
+
return e[60] !== V || e[61] !== M ? (J = /* @__PURE__ */ ne(ke, { sx: ye.container, children: [
|
|
450
|
+
V,
|
|
451
|
+
M
|
|
452
|
+
] }), e[60] = V, e[61] = M, e[62] = J) : J = e[62], J;
|
|
431
453
|
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
435
|
-
function vt(n) {
|
|
436
|
-
return n.id === Y;
|
|
437
|
-
}
|
|
438
|
-
const It = () => {
|
|
439
|
-
const n = V(1);
|
|
454
|
+
const St = () => {
|
|
455
|
+
const n = U(1);
|
|
440
456
|
let e;
|
|
441
|
-
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
442
|
-
},
|
|
443
|
-
function
|
|
444
|
-
const e =
|
|
457
|
+
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ b("path", { d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z", fill: "currentColor" }) }), n[0] = e) : e = n[0], e;
|
|
458
|
+
}, ue = "stack-toggle";
|
|
459
|
+
function rn(n) {
|
|
460
|
+
const e = U(35), {
|
|
445
461
|
id: t,
|
|
446
|
-
defaultIsStacked:
|
|
447
|
-
labels:
|
|
448
|
-
Icon:
|
|
449
|
-
IconButtonProps:
|
|
450
|
-
} = n,
|
|
451
|
-
storeIsStacked:
|
|
462
|
+
defaultIsStacked: f,
|
|
463
|
+
labels: p,
|
|
464
|
+
Icon: m,
|
|
465
|
+
IconButtonProps: S
|
|
466
|
+
} = n, _ = f === void 0 ? !1 : f, {
|
|
467
|
+
storeIsStacked: y,
|
|
452
468
|
option: o
|
|
453
|
-
} =
|
|
469
|
+
} = Q(t, Tt);
|
|
454
470
|
let l;
|
|
455
471
|
e: {
|
|
456
472
|
if (!o) {
|
|
457
|
-
let
|
|
458
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
473
|
+
let W;
|
|
474
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = {
|
|
459
475
|
hasMultiSeries: !1,
|
|
460
476
|
hasStackInSeries: !1
|
|
461
|
-
}, e[0] =
|
|
477
|
+
}, e[0] = W) : W = e[0], l = W;
|
|
462
478
|
break e;
|
|
463
479
|
}
|
|
464
|
-
let
|
|
465
|
-
e[1] !== o.series ? (
|
|
466
|
-
const
|
|
467
|
-
let
|
|
468
|
-
e[3] !==
|
|
469
|
-
let
|
|
470
|
-
e[5] !==
|
|
471
|
-
hasMultiSeries:
|
|
472
|
-
hasStackInSeries:
|
|
473
|
-
}, e[5] =
|
|
480
|
+
let T;
|
|
481
|
+
e[1] !== o.series ? (T = Array.isArray(o.series) ? o.series : [o.series], e[1] = o.series, e[2] = T) : T = e[2];
|
|
482
|
+
const h = T, I = h.length > 1;
|
|
483
|
+
let L;
|
|
484
|
+
e[3] !== h ? (L = h.some(yt), e[3] = h, e[4] = L) : L = e[4];
|
|
485
|
+
let P;
|
|
486
|
+
e[5] !== I || e[6] !== L ? (P = {
|
|
487
|
+
hasMultiSeries: I,
|
|
488
|
+
hasStackInSeries: L
|
|
489
|
+
}, e[5] = I, e[6] = L, e[7] = P) : P = e[7], l = P;
|
|
474
490
|
}
|
|
475
491
|
const {
|
|
476
492
|
hasMultiSeries: r,
|
|
477
|
-
hasStackInSeries:
|
|
478
|
-
} = l,
|
|
479
|
-
let i,
|
|
480
|
-
e[8] !==
|
|
481
|
-
id:
|
|
493
|
+
hasStackInSeries: s
|
|
494
|
+
} = l, a = s || _, u = y ?? a;
|
|
495
|
+
let i, c;
|
|
496
|
+
e[8] !== t ? (i = () => (g.registerTool(t, {
|
|
497
|
+
id: ue,
|
|
482
498
|
type: "config",
|
|
483
499
|
order: 10,
|
|
484
|
-
enabled:
|
|
485
|
-
fn:
|
|
486
|
-
}), () =>
|
|
487
|
-
let
|
|
488
|
-
e[
|
|
489
|
-
|
|
490
|
-
|
|
500
|
+
enabled: !1,
|
|
501
|
+
fn: vt
|
|
502
|
+
}), () => g.unregisterTool(t, ue)), c = [t], e[8] = t, e[9] = i, e[10] = c) : (i = e[9], c = e[10]), $(i, c);
|
|
503
|
+
let d, v;
|
|
504
|
+
e[11] !== r || e[12] !== t || e[13] !== u ? (d = () => {
|
|
505
|
+
g.setToolEnabled(t, ue, u && r);
|
|
506
|
+
}, v = [t, u, r], e[11] = r, e[12] = t, e[13] = u, e[14] = d, e[15] = v) : (d = e[14], v = e[15]), $(d, v);
|
|
507
|
+
let O, C;
|
|
508
|
+
e[16] !== a || e[17] !== t || e[18] !== y ? (O = () => {
|
|
509
|
+
y === void 0 && g.setWidget(t, {
|
|
510
|
+
isStacked: a
|
|
491
511
|
});
|
|
492
|
-
},
|
|
493
|
-
let
|
|
494
|
-
e[
|
|
495
|
-
|
|
496
|
-
isStacked: !
|
|
512
|
+
}, C = [a, t, y], e[16] = a, e[17] = t, e[18] = y, e[19] = O, e[20] = C) : (O = e[19], C = e[20]), $(O, C);
|
|
513
|
+
let k;
|
|
514
|
+
e[21] !== t || e[22] !== u ? (k = () => {
|
|
515
|
+
g.setWidget(t, {
|
|
516
|
+
isStacked: !u
|
|
497
517
|
});
|
|
498
|
-
}, e[
|
|
499
|
-
const
|
|
518
|
+
}, e[21] = t, e[22] = u, e[23] = k) : k = e[23];
|
|
519
|
+
const A = k, w = u ? p?.unstacked ?? "Disable stacking" : p?.stacked ?? "Enable stacking";
|
|
500
520
|
if (!r)
|
|
501
521
|
return null;
|
|
502
|
-
const D =
|
|
503
|
-
let
|
|
504
|
-
e[
|
|
505
|
-
let
|
|
506
|
-
e[
|
|
507
|
-
let
|
|
508
|
-
return e[
|
|
522
|
+
const D = p?.ariaLabel ?? w;
|
|
523
|
+
let x;
|
|
524
|
+
e[24] !== m ? (x = m ?? /* @__PURE__ */ b(St, {}), e[24] = m, e[25] = x) : x = e[25];
|
|
525
|
+
let E;
|
|
526
|
+
e[26] !== S || e[27] !== A || e[28] !== u || e[29] !== D || e[30] !== x ? (E = /* @__PURE__ */ b(K, { size: "small", "aria-label": D, onClick: A, sx: re.trigger, "data-active": u, ...S, children: x }), e[26] = S, e[27] = A, e[28] = u, e[29] = D, e[30] = x, e[31] = E) : E = e[31];
|
|
527
|
+
let z;
|
|
528
|
+
return e[32] !== E || e[33] !== w ? (z = /* @__PURE__ */ b(ee, { title: w, children: E }), e[32] = E, e[33] = w, e[34] = z) : z = e[34], z;
|
|
509
529
|
}
|
|
510
|
-
function
|
|
530
|
+
function vt(n) {
|
|
511
531
|
const e = n, t = e.option;
|
|
512
532
|
if (!t)
|
|
513
533
|
return n;
|
|
514
|
-
const
|
|
534
|
+
const p = (Array.isArray(t.series) ? t.series : [t.series]).map(It);
|
|
515
535
|
return {
|
|
516
536
|
...e,
|
|
517
537
|
option: {
|
|
518
538
|
...t,
|
|
519
|
-
series:
|
|
539
|
+
series: p
|
|
520
540
|
}
|
|
521
541
|
};
|
|
522
542
|
}
|
|
523
|
-
function
|
|
543
|
+
function It(n) {
|
|
524
544
|
const e = n?.stack;
|
|
525
545
|
return {
|
|
526
546
|
...n,
|
|
527
|
-
...
|
|
547
|
+
...Qe(typeof e == "string" ? e : Xe)
|
|
528
548
|
};
|
|
529
549
|
}
|
|
530
|
-
function
|
|
550
|
+
function yt(n) {
|
|
531
551
|
return n?.stack;
|
|
532
552
|
}
|
|
533
|
-
function
|
|
553
|
+
function Tt(n) {
|
|
534
554
|
return {
|
|
535
555
|
storeIsStacked: n?.isStacked,
|
|
536
556
|
option: n?.option
|
|
537
557
|
};
|
|
538
558
|
}
|
|
539
|
-
const
|
|
540
|
-
function
|
|
541
|
-
const e =
|
|
559
|
+
const ie = "lock-selection";
|
|
560
|
+
function sn(n) {
|
|
561
|
+
const e = U(24), {
|
|
542
562
|
id: t,
|
|
543
|
-
selectedItems:
|
|
544
|
-
order:
|
|
545
|
-
labels:
|
|
546
|
-
Icon:
|
|
547
|
-
IconButtonProps:
|
|
548
|
-
} = n,
|
|
563
|
+
selectedItems: f,
|
|
564
|
+
order: p,
|
|
565
|
+
labels: m,
|
|
566
|
+
Icon: S,
|
|
567
|
+
IconButtonProps: _
|
|
568
|
+
} = n, y = p === void 0 ? 30 : p, {
|
|
549
569
|
storeIsLocked: o
|
|
550
|
-
} =
|
|
551
|
-
let r;
|
|
552
|
-
e[0] !==
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
fn: Et,
|
|
560
|
-
config: {
|
|
561
|
-
lockedItems: f
|
|
570
|
+
} = Q(t, _t), l = o ?? !1;
|
|
571
|
+
let r, s;
|
|
572
|
+
e[0] !== t || e[1] !== y ? (r = () => (g.registerTool(t, {
|
|
573
|
+
id: ie,
|
|
574
|
+
order: y,
|
|
575
|
+
enabled: !1,
|
|
576
|
+
fn: (A) => {
|
|
577
|
+
const D = g.getWidget(t)?.lockedItems ?? [];
|
|
578
|
+
return D.length === 0 ? A : xt(A, D);
|
|
562
579
|
}
|
|
563
|
-
}), () =>
|
|
580
|
+
}), () => g.unregisterTool(t, ie)), s = [t, y], e[0] = t, e[1] = y, e[2] = r, e[3] = s) : (r = e[2], s = e[3]), $(r, s);
|
|
581
|
+
let a, u;
|
|
582
|
+
e[4] !== t || e[5] !== l || e[6] !== f.length ? (a = () => {
|
|
583
|
+
if (l && f.length === 0) {
|
|
584
|
+
g.setWidget(t, {
|
|
585
|
+
isLocked: !1,
|
|
586
|
+
lockedItems: []
|
|
587
|
+
});
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
g.setToolEnabled(t, ie, l);
|
|
591
|
+
}, u = [t, l, f.length], e[4] = t, e[5] = l, e[6] = f.length, e[7] = a, e[8] = u) : (a = e[7], u = e[8]), $(a, u);
|
|
564
592
|
let i;
|
|
565
|
-
e[9] !== t || e[10] !== l || e[11] !==
|
|
566
|
-
l ?
|
|
593
|
+
e[9] !== t || e[10] !== l || e[11] !== f ? (i = () => {
|
|
594
|
+
l ? g.setWidget(t, {
|
|
567
595
|
isLocked: !1,
|
|
568
596
|
lockedItems: []
|
|
569
|
-
}) :
|
|
597
|
+
}) : g.setWidget(t, {
|
|
570
598
|
isLocked: !0,
|
|
571
|
-
lockedItems:
|
|
599
|
+
lockedItems: f
|
|
572
600
|
});
|
|
573
|
-
}, e[9] = t, e[10] = l, e[11] =
|
|
574
|
-
const
|
|
575
|
-
if (
|
|
601
|
+
}, e[9] = t, e[10] = l, e[11] = f, e[12] = i) : i = e[12];
|
|
602
|
+
const c = i;
|
|
603
|
+
if (f.length === 0)
|
|
576
604
|
return null;
|
|
577
|
-
const
|
|
605
|
+
const d = l ? m?.unlock ?? "Unlock selection" : m?.lock ?? "Lock selection", v = m?.ariaLabel ?? d;
|
|
606
|
+
let O;
|
|
607
|
+
e[13] !== S ? (O = S ?? /* @__PURE__ */ b(Ke, { fontSize: "small" }), e[13] = S, e[14] = O) : O = e[14];
|
|
578
608
|
let C;
|
|
579
|
-
e[
|
|
580
|
-
let
|
|
581
|
-
|
|
582
|
-
let _;
|
|
583
|
-
return e[21] !== E || e[22] !== m ? (_ = /* @__PURE__ */ g(ee, { title: m, children: E }), e[21] = E, e[22] = m, e[23] = _) : _ = e[23], _;
|
|
584
|
-
}
|
|
585
|
-
function Et(n, e) {
|
|
586
|
-
const t = e?.lockedItems || [];
|
|
587
|
-
return t.length === 0 ? n : Lt(n, t);
|
|
609
|
+
e[15] !== _ || e[16] !== v || e[17] !== c || e[18] !== l || e[19] !== O ? (C = /* @__PURE__ */ b(K, { size: "small", "aria-label": v, onClick: c, sx: re.trigger, "data-active": l, ..._, children: O }), e[15] = _, e[16] = v, e[17] = c, e[18] = l, e[19] = O, e[20] = C) : C = e[20];
|
|
610
|
+
let k;
|
|
611
|
+
return e[21] !== C || e[22] !== d ? (k = /* @__PURE__ */ b(ee, { title: d, children: C }), e[21] = C, e[22] = d, e[23] = k) : k = e[23], k;
|
|
588
612
|
}
|
|
589
|
-
function
|
|
613
|
+
function _t(n) {
|
|
590
614
|
return {
|
|
591
615
|
storeIsLocked: n?.isLocked
|
|
592
616
|
};
|
|
593
617
|
}
|
|
594
|
-
function
|
|
595
|
-
return n.map((t) => t.filter((
|
|
596
|
-
const
|
|
597
|
-
return typeof
|
|
618
|
+
function xt(n, e) {
|
|
619
|
+
return n.map((t) => t.filter((f) => {
|
|
620
|
+
const p = f.name;
|
|
621
|
+
return typeof p == "string" && e.includes(p);
|
|
598
622
|
}));
|
|
599
623
|
}
|
|
600
|
-
const
|
|
601
|
-
function
|
|
602
|
-
const e =
|
|
624
|
+
const fe = "searcher", Et = 300;
|
|
625
|
+
function an(n) {
|
|
626
|
+
const e = U(39), {
|
|
603
627
|
id: t,
|
|
604
|
-
filterFn:
|
|
605
|
-
order:
|
|
606
|
-
labels:
|
|
607
|
-
TextFieldProps:
|
|
608
|
-
ClearIcon:
|
|
609
|
-
debounceDelay:
|
|
610
|
-
} = n, o =
|
|
611
|
-
enabled:
|
|
612
|
-
searchText:
|
|
613
|
-
} =
|
|
614
|
-
let
|
|
615
|
-
e[0] !== t ? (
|
|
616
|
-
|
|
617
|
-
searchText:
|
|
628
|
+
filterFn: f,
|
|
629
|
+
order: p,
|
|
630
|
+
labels: m,
|
|
631
|
+
TextFieldProps: S,
|
|
632
|
+
ClearIcon: _,
|
|
633
|
+
debounceDelay: y
|
|
634
|
+
} = n, o = p === void 0 ? 20 : p, l = y === void 0 ? Et : y, r = le(null), s = le(null), {
|
|
635
|
+
enabled: a,
|
|
636
|
+
searchText: u
|
|
637
|
+
} = Q(t, Ct), i = le(a), c = f ?? kt;
|
|
638
|
+
let d;
|
|
639
|
+
e[0] !== t ? (d = (V) => {
|
|
640
|
+
g.setWidget(t, {
|
|
641
|
+
searchText: V
|
|
618
642
|
});
|
|
619
|
-
}, e[0] = t, e[1] =
|
|
620
|
-
const
|
|
621
|
-
let
|
|
622
|
-
e[2] !== c || e[3] !==
|
|
623
|
-
id:
|
|
643
|
+
}, e[0] = t, e[1] = d) : d = e[1];
|
|
644
|
+
const v = d;
|
|
645
|
+
let O, C;
|
|
646
|
+
e[2] !== c || e[3] !== t || e[4] !== o ? (O = () => (g.registerTool(t, {
|
|
647
|
+
id: fe,
|
|
624
648
|
order: o,
|
|
625
|
-
enabled:
|
|
626
|
-
fn: async (
|
|
627
|
-
const
|
|
628
|
-
return
|
|
649
|
+
enabled: !1,
|
|
650
|
+
fn: async (V) => {
|
|
651
|
+
const J = g.getWidget(t)?.searchText ?? "";
|
|
652
|
+
return c(V, J);
|
|
629
653
|
},
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
});
|
|
654
|
+
disables: [ie]
|
|
655
|
+
}), () => g.unregisterTool(t, fe)), C = [t, o, c], e[2] = c, e[3] = t, e[4] = o, e[5] = O, e[6] = C) : (O = e[5], C = e[6]), $(O, C);
|
|
656
|
+
let k, A;
|
|
657
|
+
e[7] !== a || e[8] !== t ? (k = () => {
|
|
658
|
+
g.setToolEnabled(t, fe, a);
|
|
659
|
+
}, A = [t, a], e[7] = a, e[8] = t, e[9] = k, e[10] = A) : (k = e[9], A = e[10]), $(k, A);
|
|
660
|
+
let w;
|
|
661
|
+
e[11] !== l || e[12] !== t ? (w = () => {
|
|
662
|
+
s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
|
663
|
+
g.triggerToolPipeline(t);
|
|
641
664
|
}, l);
|
|
642
|
-
}, e[
|
|
643
|
-
const D =
|
|
644
|
-
let
|
|
645
|
-
e[
|
|
646
|
-
|
|
647
|
-
},
|
|
648
|
-
let
|
|
649
|
-
e[
|
|
650
|
-
|
|
651
|
-
},
|
|
652
|
-
let
|
|
653
|
-
e[
|
|
654
|
-
const
|
|
655
|
-
|
|
656
|
-
}, e[
|
|
657
|
-
const
|
|
658
|
-
let
|
|
659
|
-
e[
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
const O = S;
|
|
665
|
-
if (!c)
|
|
665
|
+
}, e[11] = l, e[12] = t, e[13] = w) : w = e[13];
|
|
666
|
+
const D = w;
|
|
667
|
+
let x, E;
|
|
668
|
+
e[14] !== a ? (E = () => {
|
|
669
|
+
a && !i.current && r.current && r.current.focus(), i.current = a;
|
|
670
|
+
}, x = [a], e[14] = a, e[15] = x, e[16] = E) : (x = e[15], E = e[16]), $(E, x);
|
|
671
|
+
let z, T;
|
|
672
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = () => () => {
|
|
673
|
+
s.current && clearTimeout(s.current);
|
|
674
|
+
}, T = [], e[17] = z, e[18] = T) : (z = e[17], T = e[18]), $(z, T);
|
|
675
|
+
let h;
|
|
676
|
+
e[19] !== D || e[20] !== v ? (h = (V) => {
|
|
677
|
+
const M = V.target.value;
|
|
678
|
+
v(M), D();
|
|
679
|
+
}, e[19] = D, e[20] = v, e[21] = h) : h = e[21];
|
|
680
|
+
const I = h;
|
|
681
|
+
let L;
|
|
682
|
+
e[22] !== t || e[23] !== v ? (L = () => {
|
|
683
|
+
v(""), g.triggerToolPipeline(t), r.current && r.current.focus();
|
|
684
|
+
}, e[22] = t, e[23] = v, e[24] = L) : L = e[24];
|
|
685
|
+
const P = L;
|
|
686
|
+
if (!a)
|
|
666
687
|
return null;
|
|
667
|
-
const
|
|
668
|
-
let
|
|
669
|
-
e[
|
|
670
|
-
let
|
|
671
|
-
e[
|
|
672
|
-
let
|
|
673
|
-
e[
|
|
674
|
-
startAdornment:
|
|
675
|
-
endAdornment:
|
|
676
|
-
}, e[
|
|
677
|
-
let
|
|
678
|
-
return e[
|
|
688
|
+
const W = m?.placeholder ?? "Search...", B = m?.clearAriaLabel ?? "Clear search";
|
|
689
|
+
let H;
|
|
690
|
+
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ b(be, { position: "start", children: /* @__PURE__ */ b(Le, {}) }), e[25] = H) : H = e[25];
|
|
691
|
+
let Z;
|
|
692
|
+
e[26] !== _ || e[27] !== B || e[28] !== P || e[29] !== u ? (Z = u ? /* @__PURE__ */ b(be, { position: "end", children: /* @__PURE__ */ b(K, { size: "small", "aria-label": B, onClick: P, edge: "end", children: _ ?? /* @__PURE__ */ b(Ye, { fontSize: "small" }) }) }) : null, e[26] = _, e[27] = B, e[28] = P, e[29] = u, e[30] = Z) : Z = e[30];
|
|
693
|
+
let F;
|
|
694
|
+
e[31] !== Z ? (F = {
|
|
695
|
+
startAdornment: H,
|
|
696
|
+
endAdornment: Z
|
|
697
|
+
}, e[31] = Z, e[32] = F) : F = e[32];
|
|
698
|
+
let G;
|
|
699
|
+
return e[33] !== S || e[34] !== I || e[35] !== W || e[36] !== u || e[37] !== F ? (G = /* @__PURE__ */ b(Me, { inputRef: r, size: "small", fullWidth: !0, variant: "filled", placeholder: W, value: u, onChange: I, InputProps: F, ...S }), e[33] = S, e[34] = I, e[35] = W, e[36] = u, e[37] = F, e[38] = G) : G = e[38], G;
|
|
679
700
|
}
|
|
680
|
-
function
|
|
701
|
+
function Ct(n) {
|
|
681
702
|
return {
|
|
682
703
|
enabled: n?.isSearchEnabled ?? !1,
|
|
683
704
|
searchText: n?.searchText ?? ""
|
|
684
705
|
};
|
|
685
706
|
}
|
|
686
|
-
const
|
|
707
|
+
const kt = (n, e) => {
|
|
687
708
|
if (!e.trim()) return Promise.resolve(n);
|
|
688
709
|
const t = e.toLowerCase();
|
|
689
|
-
return Promise.resolve(n.map((
|
|
710
|
+
return Promise.resolve(n.map((f) => f.filter((p) => Object.values(p).some((m) => String(m).toLowerCase().includes(t)))));
|
|
690
711
|
};
|
|
691
|
-
function
|
|
692
|
-
const e =
|
|
712
|
+
function cn(n) {
|
|
713
|
+
const e = U(18), {
|
|
693
714
|
id: t,
|
|
694
|
-
defaultEnabled:
|
|
695
|
-
labels:
|
|
696
|
-
Icon:
|
|
697
|
-
IconButtonProps:
|
|
698
|
-
} = n,
|
|
699
|
-
storeIsEnabled:
|
|
700
|
-
} =
|
|
715
|
+
defaultEnabled: f,
|
|
716
|
+
labels: p,
|
|
717
|
+
Icon: m,
|
|
718
|
+
IconButtonProps: S
|
|
719
|
+
} = n, _ = f === void 0 ? !1 : f, {
|
|
720
|
+
storeIsEnabled: y
|
|
721
|
+
} = Q(t, Lt), o = y ?? _;
|
|
701
722
|
let l, r;
|
|
702
|
-
e[0] !==
|
|
703
|
-
|
|
704
|
-
isSearchEnabled:
|
|
723
|
+
e[0] !== _ || e[1] !== t ? (l = () => {
|
|
724
|
+
g.getWidget(t)?.isSearchEnabled === void 0 && g.setWidget(t, {
|
|
725
|
+
isSearchEnabled: _
|
|
705
726
|
});
|
|
706
|
-
}, r = [
|
|
707
|
-
let
|
|
708
|
-
e[4] !== t || e[5] !== o ? (
|
|
709
|
-
|
|
727
|
+
}, r = [_, t], e[0] = _, e[1] = t, e[2] = l, e[3] = r) : (l = e[2], r = e[3]), $(l, r);
|
|
728
|
+
let s;
|
|
729
|
+
e[4] !== t || e[5] !== o ? (s = () => {
|
|
730
|
+
g.setWidget(t, {
|
|
710
731
|
isSearchEnabled: !o
|
|
711
732
|
});
|
|
712
|
-
}, e[4] = t, e[5] = o, e[6] =
|
|
713
|
-
const
|
|
714
|
-
let
|
|
715
|
-
e[7] !==
|
|
716
|
-
let
|
|
717
|
-
e[9] !==
|
|
718
|
-
let
|
|
719
|
-
return e[15] !==
|
|
733
|
+
}, e[4] = t, e[5] = o, e[6] = s) : s = e[6];
|
|
734
|
+
const a = s, u = o ? p?.disable ?? "Disable search" : p?.enable ?? "Enable search", i = p?.ariaLabel ?? u;
|
|
735
|
+
let c;
|
|
736
|
+
e[7] !== m ? (c = m ?? /* @__PURE__ */ b(Le, { fontSize: "small" }), e[7] = m, e[8] = c) : c = e[8];
|
|
737
|
+
let d;
|
|
738
|
+
e[9] !== S || e[10] !== i || e[11] !== a || e[12] !== o || e[13] !== c ? (d = /* @__PURE__ */ b(K, { size: "small", "aria-label": i, onClick: a, sx: re.trigger, "data-active": o, ...S, children: c }), e[9] = S, e[10] = i, e[11] = a, e[12] = o, e[13] = c, e[14] = d) : d = e[14];
|
|
739
|
+
let v;
|
|
740
|
+
return e[15] !== d || e[16] !== u ? (v = /* @__PURE__ */ b(ee, { title: u, children: d }), e[15] = d, e[16] = u, e[17] = v) : v = e[17], v;
|
|
720
741
|
}
|
|
721
|
-
function
|
|
742
|
+
function Lt(n) {
|
|
722
743
|
return {
|
|
723
744
|
storeIsEnabled: n?.isSearchEnabled
|
|
724
745
|
};
|
|
725
746
|
}
|
|
726
|
-
const
|
|
727
|
-
const n =
|
|
747
|
+
const Ot = () => {
|
|
748
|
+
const n = U(1);
|
|
728
749
|
let e;
|
|
729
|
-
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
750
|
+
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 18 18", children: /* @__PURE__ */ b("path", { fill: "currentColor", fillRule: "evenodd", d: "M14.25 2.25H3.75c-.825 0-1.5.675-1.5 1.5v10.5c0 .825.675 1.5 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5V3.75c0-.825-.675-1.5-1.5-1.5m-3.75 12h-3V3.75h3zM3.75 3.75H6v10.5H3.75zM12 14.25V3.75h2.25v10.5z", clipRule: "evenodd" }) }), n[0] = e) : e = n[0], e;
|
|
730
751
|
};
|
|
731
|
-
function
|
|
732
|
-
const e =
|
|
752
|
+
function zt(n) {
|
|
753
|
+
const e = U(18), {
|
|
733
754
|
column: t
|
|
734
755
|
} = n;
|
|
735
|
-
let
|
|
736
|
-
e[0] !== t.id ? (
|
|
756
|
+
let f;
|
|
757
|
+
e[0] !== t.id ? (f = {
|
|
737
758
|
id: t.id
|
|
738
|
-
}, e[0] = t.id, e[1] =
|
|
759
|
+
}, e[0] = t.id, e[1] = f) : f = e[1];
|
|
739
760
|
const {
|
|
740
|
-
attributes:
|
|
741
|
-
listeners:
|
|
742
|
-
setNodeRef:
|
|
743
|
-
transform:
|
|
744
|
-
transition:
|
|
761
|
+
attributes: p,
|
|
762
|
+
listeners: m,
|
|
763
|
+
setNodeRef: S,
|
|
764
|
+
transform: _,
|
|
765
|
+
transition: y,
|
|
745
766
|
isDragging: o
|
|
746
|
-
} =
|
|
767
|
+
} = rt(f);
|
|
747
768
|
let l;
|
|
748
|
-
e[2] !==
|
|
749
|
-
...
|
|
769
|
+
e[2] !== _ ? (l = dt.Transform.toString(_ ? {
|
|
770
|
+
..._,
|
|
750
771
|
x: 0
|
|
751
|
-
} : null), e[2] =
|
|
752
|
-
const r = o ? 0.5 : 1,
|
|
753
|
-
let
|
|
754
|
-
e[4] !== l || e[5] !== r || e[6] !==
|
|
772
|
+
} : null), e[2] = _, e[3] = l) : l = e[3];
|
|
773
|
+
const r = o ? 0.5 : 1, s = o ? "grabbing" : "grab";
|
|
774
|
+
let a;
|
|
775
|
+
e[4] !== l || e[5] !== r || e[6] !== s || e[7] !== y ? (a = {
|
|
755
776
|
transform: l,
|
|
756
|
-
transition:
|
|
777
|
+
transition: y,
|
|
757
778
|
opacity: r,
|
|
758
|
-
cursor:
|
|
759
|
-
}, e[4] = l, e[5] = r, e[6] =
|
|
760
|
-
const
|
|
779
|
+
cursor: s
|
|
780
|
+
}, e[4] = l, e[5] = r, e[6] = s, e[7] = y, e[8] = a) : a = e[8];
|
|
781
|
+
const u = a;
|
|
761
782
|
let i;
|
|
762
783
|
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
763
784
|
"&:focus-visible": {
|
|
764
|
-
outline:
|
|
785
|
+
outline: Dt,
|
|
765
786
|
outlineOffset: -2
|
|
766
787
|
}
|
|
767
788
|
}, e[9] = i) : i = e[9];
|
|
768
|
-
let
|
|
769
|
-
e[10] !== t.label ? (
|
|
770
|
-
let
|
|
771
|
-
return e[12] !==
|
|
789
|
+
let c;
|
|
790
|
+
e[10] !== t.label ? (c = /* @__PURE__ */ b(Ee, { children: t.label }), e[10] = t.label, e[11] = c) : c = e[11];
|
|
791
|
+
let d;
|
|
792
|
+
return e[12] !== p || e[13] !== m || e[14] !== S || e[15] !== u || e[16] !== c ? (d = /* @__PURE__ */ b(xe, { ref: S, style: u, ...p, ...m, role: "menuitem", tabIndex: 0, sx: i, children: c }), e[12] = p, e[13] = m, e[14] = S, e[15] = u, e[16] = c, e[17] = d) : d = e[17], d;
|
|
772
793
|
}
|
|
773
|
-
function
|
|
794
|
+
function Dt(n) {
|
|
774
795
|
return `2px solid ${n.palette.primary.main}`;
|
|
775
796
|
}
|
|
776
|
-
const
|
|
777
|
-
function
|
|
778
|
-
const e =
|
|
797
|
+
const Te = "change-column";
|
|
798
|
+
function dn(n) {
|
|
799
|
+
const e = U(46), {
|
|
779
800
|
id: t,
|
|
780
|
-
labels:
|
|
781
|
-
Icon:
|
|
782
|
-
IconButtonProps:
|
|
783
|
-
MenuProps:
|
|
784
|
-
} = n, [
|
|
801
|
+
labels: f,
|
|
802
|
+
Icon: p,
|
|
803
|
+
IconButtonProps: m,
|
|
804
|
+
MenuProps: S
|
|
805
|
+
} = n, [_, y] = ge(null), {
|
|
785
806
|
columns: o
|
|
786
|
-
} =
|
|
807
|
+
} = Q(t, Wt);
|
|
787
808
|
let l;
|
|
788
|
-
e[0] !== t ? (l = (
|
|
789
|
-
const
|
|
790
|
-
if (!
|
|
791
|
-
return
|
|
792
|
-
const
|
|
793
|
-
if (!
|
|
794
|
-
return
|
|
795
|
-
const
|
|
796
|
-
for (const
|
|
797
|
-
const
|
|
798
|
-
|
|
809
|
+
e[0] !== t ? (l = (M) => {
|
|
810
|
+
const R = g.getWidget(t)?.columns;
|
|
811
|
+
if (!R || R.length === 0)
|
|
812
|
+
return M;
|
|
813
|
+
const j = M, N = j.columns;
|
|
814
|
+
if (!N || N.length === 0 || N.length === R.length && N.every((q, X) => q.id === R[X]?.id))
|
|
815
|
+
return M;
|
|
816
|
+
const oe = new Map(N.map(Pt)), te = [];
|
|
817
|
+
for (const q of R) {
|
|
818
|
+
const X = oe.get(q.id);
|
|
819
|
+
X && (te.push(X), oe.delete(q.id));
|
|
799
820
|
}
|
|
800
|
-
for (const
|
|
801
|
-
|
|
802
|
-
const
|
|
821
|
+
for (const q of oe.values())
|
|
822
|
+
te.push(q);
|
|
823
|
+
const ae = te.length === R.length && te.every((q, X) => q.id === R[X]?.id);
|
|
803
824
|
return {
|
|
804
|
-
...
|
|
805
|
-
columns:
|
|
825
|
+
...j,
|
|
826
|
+
columns: ae ? R : te
|
|
806
827
|
};
|
|
807
828
|
}, e[0] = t, e[1] = l) : l = e[1];
|
|
808
829
|
const r = l;
|
|
809
|
-
let f;
|
|
810
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
811
|
-
coordinateGetter: rt
|
|
812
|
-
}, e[2] = f) : f = e[2];
|
|
813
|
-
const c = Xe(Se(et), Se(tt, f));
|
|
814
830
|
let s;
|
|
815
|
-
e[
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
831
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
|
|
832
|
+
coordinateGetter: st
|
|
833
|
+
}, e[2] = s) : s = e[2];
|
|
834
|
+
const a = et(Se(tt), Se(nt, s));
|
|
835
|
+
let u;
|
|
836
|
+
e[3] !== o ? (u = o?.map(At) ?? [], e[3] = o, e[4] = u) : u = e[4];
|
|
837
|
+
const i = u;
|
|
838
|
+
let c, d;
|
|
839
|
+
e[5] !== t || e[6] !== r ? (c = () => (g.registerTool(t, {
|
|
840
|
+
id: Te,
|
|
820
841
|
type: "config",
|
|
821
842
|
order: 100,
|
|
822
843
|
enabled: !0,
|
|
823
844
|
fn: r
|
|
824
|
-
}), () =>
|
|
825
|
-
let
|
|
826
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
827
|
-
|
|
828
|
-
}, e[9] =
|
|
829
|
-
const
|
|
830
|
-
let
|
|
831
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
832
|
-
|
|
833
|
-
}, e[10] =
|
|
834
|
-
const
|
|
835
|
-
let
|
|
836
|
-
e[11] !== o || e[12] !== t ? (
|
|
845
|
+
}), () => g.unregisterTool(t, Te)), d = [t, r], e[5] = t, e[6] = r, e[7] = c, e[8] = d) : (c = e[7], d = e[8]), $(c, d);
|
|
846
|
+
let v;
|
|
847
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (M) => {
|
|
848
|
+
M.stopPropagation(), y(M.currentTarget);
|
|
849
|
+
}, e[9] = v) : v = e[9];
|
|
850
|
+
const O = v;
|
|
851
|
+
let C;
|
|
852
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = () => {
|
|
853
|
+
y(null);
|
|
854
|
+
}, e[10] = C) : C = e[10];
|
|
855
|
+
const k = C;
|
|
856
|
+
let A;
|
|
857
|
+
e[11] !== o || e[12] !== t ? (A = (M) => {
|
|
837
858
|
const {
|
|
838
|
-
active:
|
|
839
|
-
over:
|
|
840
|
-
} =
|
|
841
|
-
if (!
|
|
859
|
+
active: J,
|
|
860
|
+
over: R
|
|
861
|
+
} = M;
|
|
862
|
+
if (!R || J.id === R.id || !o)
|
|
842
863
|
return;
|
|
843
|
-
const
|
|
844
|
-
if (
|
|
845
|
-
const
|
|
846
|
-
|
|
847
|
-
columns:
|
|
864
|
+
const j = o.findIndex((Y) => Y.id === J.id), N = o.findIndex((Y) => Y.id === R.id);
|
|
865
|
+
if (j !== -1 && N !== -1) {
|
|
866
|
+
const Y = it(o, j, N);
|
|
867
|
+
g.setWidget(t, {
|
|
868
|
+
columns: Y
|
|
848
869
|
});
|
|
849
870
|
}
|
|
850
|
-
}, e[11] = o, e[12] = t, e[13] =
|
|
851
|
-
const
|
|
871
|
+
}, e[11] = o, e[12] = t, e[13] = A) : A = e[13];
|
|
872
|
+
const w = A;
|
|
852
873
|
if (!o || o.length < 2)
|
|
853
874
|
return null;
|
|
854
|
-
const
|
|
855
|
-
let
|
|
856
|
-
e[14] !==
|
|
857
|
-
let
|
|
858
|
-
e[16] !==
|
|
859
|
-
let
|
|
860
|
-
e[23] !==
|
|
861
|
-
let
|
|
862
|
-
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
875
|
+
const D = f?.tooltip ?? "Change column", x = !!_, E = f?.ariaLabel ?? D, z = x ? "change-column-menu" : void 0, T = x ? "true" : void 0;
|
|
876
|
+
let h;
|
|
877
|
+
e[14] !== p ? (h = p ?? /* @__PURE__ */ b(Ge, { children: /* @__PURE__ */ b(Ot, {}) }), e[14] = p, e[15] = h) : h = e[15];
|
|
878
|
+
let I;
|
|
879
|
+
e[16] !== m || e[17] !== x || e[18] !== z || e[19] !== T || e[20] !== h || e[21] !== E ? (I = /* @__PURE__ */ b(K, { size: "small", "aria-label": E, "aria-controls": z, "aria-haspopup": "true", "aria-expanded": T, onClick: O, "data-active": x, sx: re.trigger, ...m, children: h }), e[16] = m, e[17] = x, e[18] = z, e[19] = T, e[20] = h, e[21] = E, e[22] = I) : I = e[22];
|
|
880
|
+
let L;
|
|
881
|
+
e[23] !== I || e[24] !== D ? (L = /* @__PURE__ */ b(ee, { title: D, children: I }), e[23] = I, e[24] = D, e[25] = L) : L = e[25];
|
|
882
|
+
let P, W, B;
|
|
883
|
+
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
863
884
|
vertical: "bottom",
|
|
864
885
|
horizontal: "right"
|
|
865
|
-
},
|
|
886
|
+
}, W = {
|
|
866
887
|
vertical: "top",
|
|
867
888
|
horizontal: "right"
|
|
868
|
-
},
|
|
889
|
+
}, B = {
|
|
869
890
|
paper: {
|
|
870
891
|
sx: {
|
|
871
892
|
overflow: "hidden"
|
|
872
893
|
}
|
|
873
894
|
}
|
|
874
|
-
}, e[26] =
|
|
875
|
-
let
|
|
876
|
-
e[29] !== o ? (
|
|
877
|
-
let
|
|
878
|
-
e[31] !== i || e[32] !==
|
|
895
|
+
}, e[26] = P, e[27] = W, e[28] = B) : (P = e[26], W = e[27], B = e[28]);
|
|
896
|
+
let H;
|
|
897
|
+
e[29] !== o ? (H = o.map(wt), e[29] = o, e[30] = H) : H = e[30];
|
|
898
|
+
let Z;
|
|
899
|
+
e[31] !== i || e[32] !== H ? (Z = /* @__PURE__ */ b(at, { items: i, strategy: ct, children: H }), e[31] = i, e[32] = H, e[33] = Z) : Z = e[33];
|
|
879
900
|
let F;
|
|
880
|
-
e[34] !==
|
|
881
|
-
let
|
|
882
|
-
e[39] !==
|
|
883
|
-
let
|
|
884
|
-
return e[43] !==
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
] }), e[43] =
|
|
901
|
+
e[34] !== S || e[35] !== _ || e[36] !== x || e[37] !== Z ? (F = /* @__PURE__ */ b(Ce, { id: "change-column-menu", anchorEl: _, open: x, onClose: k, anchorOrigin: P, transformOrigin: W, slotProps: B, ...S, children: Z }), e[34] = S, e[35] = _, e[36] = x, e[37] = Z, e[38] = F) : F = e[38];
|
|
902
|
+
let G;
|
|
903
|
+
e[39] !== w || e[40] !== a || e[41] !== F ? (G = /* @__PURE__ */ b(ot, { sensors: a, collisionDetection: lt, onDragEnd: w, children: F }), e[39] = w, e[40] = a, e[41] = F, e[42] = G) : G = e[42];
|
|
904
|
+
let V;
|
|
905
|
+
return e[43] !== L || e[44] !== G ? (V = /* @__PURE__ */ ne(he, { children: [
|
|
906
|
+
L,
|
|
907
|
+
G
|
|
908
|
+
] }), e[43] = L, e[44] = G, e[45] = V) : V = e[45], V;
|
|
888
909
|
}
|
|
889
|
-
function
|
|
890
|
-
return /* @__PURE__ */
|
|
910
|
+
function wt(n) {
|
|
911
|
+
return /* @__PURE__ */ b(zt, { column: n }, n.id);
|
|
891
912
|
}
|
|
892
|
-
function
|
|
913
|
+
function At(n) {
|
|
893
914
|
return n.id;
|
|
894
915
|
}
|
|
895
|
-
function
|
|
916
|
+
function Pt(n) {
|
|
896
917
|
return [n.id, n];
|
|
897
918
|
}
|
|
898
|
-
function
|
|
919
|
+
function Wt(n) {
|
|
899
920
|
return {
|
|
900
921
|
columns: n?.columns
|
|
901
922
|
};
|
|
902
923
|
}
|
|
903
|
-
const
|
|
924
|
+
const _e = {
|
|
904
925
|
container: {
|
|
905
926
|
display: "flex",
|
|
906
927
|
alignItems: "center",
|
|
@@ -913,151 +934,145 @@ const ye = {
|
|
|
913
934
|
background: (n) => n.palette.primary.relatedLight
|
|
914
935
|
}
|
|
915
936
|
}
|
|
916
|
-
},
|
|
917
|
-
function
|
|
918
|
-
const e =
|
|
937
|
+
}, me = "brush-toggle";
|
|
938
|
+
function un(n) {
|
|
939
|
+
const e = U(32), {
|
|
919
940
|
id: t,
|
|
920
|
-
onBrushSelected:
|
|
921
|
-
labels:
|
|
922
|
-
Icon:
|
|
923
|
-
IconButtonProps:
|
|
941
|
+
onBrushSelected: f,
|
|
942
|
+
labels: p,
|
|
943
|
+
Icon: m,
|
|
944
|
+
IconButtonProps: S
|
|
924
945
|
} = n;
|
|
925
|
-
let
|
|
926
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
946
|
+
let _;
|
|
947
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
927
948
|
dataIndex: [],
|
|
928
949
|
seriesIndex: 0
|
|
929
|
-
}, e[0] =
|
|
930
|
-
const
|
|
950
|
+
}, e[0] = _) : _ = e[0];
|
|
951
|
+
const y = le(_), {
|
|
931
952
|
brush: o
|
|
932
|
-
} =
|
|
953
|
+
} = Q(t, $t);
|
|
933
954
|
let l;
|
|
934
|
-
e[1] !== t ? (l = (
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
e[3] !== o || e[4] !== d || e[5] !== r ? (f = () => {
|
|
940
|
-
const S = !o;
|
|
941
|
-
r(S), S && d?.({
|
|
955
|
+
e[1] !== o || e[2] !== t || e[3] !== f ? (l = () => {
|
|
956
|
+
const h = !o;
|
|
957
|
+
g.setWidget(t, {
|
|
958
|
+
brush: h
|
|
959
|
+
}), h && f?.({
|
|
942
960
|
dataIndex: [],
|
|
943
961
|
seriesIndex: 0
|
|
944
962
|
});
|
|
945
|
-
}, e[
|
|
946
|
-
const
|
|
947
|
-
let s,
|
|
948
|
-
e[
|
|
963
|
+
}, e[1] = o, e[2] = t, e[3] = f, e[4] = l) : l = e[4];
|
|
964
|
+
const r = l;
|
|
965
|
+
let s, a;
|
|
966
|
+
e[5] !== o || e[6] !== t ? (s = () => {
|
|
949
967
|
if (!o)
|
|
950
968
|
return;
|
|
951
|
-
const
|
|
952
|
-
if (!
|
|
969
|
+
const h = g.getWidget(t)?.instance?.current;
|
|
970
|
+
if (!h)
|
|
953
971
|
return;
|
|
954
|
-
const
|
|
955
|
-
const
|
|
956
|
-
|
|
972
|
+
const I = () => {
|
|
973
|
+
const L = pe();
|
|
974
|
+
h.dispatchAction({
|
|
957
975
|
type: "takeGlobalCursor",
|
|
958
976
|
key: "brush",
|
|
959
977
|
brushOption: {
|
|
960
|
-
brushType:
|
|
961
|
-
brushMode:
|
|
978
|
+
brushType: L.brush.brushType,
|
|
979
|
+
brushMode: L.brush.brushMode
|
|
962
980
|
}
|
|
963
981
|
});
|
|
964
982
|
};
|
|
965
|
-
return
|
|
966
|
-
|
|
983
|
+
return I(), h.on("rendered", I), () => {
|
|
984
|
+
h.off("rendered", I);
|
|
967
985
|
};
|
|
968
|
-
},
|
|
986
|
+
}, a = [o, t], e[5] = o, e[6] = t, e[7] = s, e[8] = a) : (s = e[7], a = e[8]), $(s, a);
|
|
969
987
|
let u;
|
|
970
|
-
e[
|
|
971
|
-
const
|
|
972
|
-
if (!
|
|
973
|
-
|
|
988
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = (h) => {
|
|
989
|
+
const L = h.batch?.flatMap(Rt) ?? [];
|
|
990
|
+
if (!L.length) {
|
|
991
|
+
y.current = {
|
|
974
992
|
dataIndex: [],
|
|
975
993
|
seriesIndex: 0
|
|
976
994
|
};
|
|
977
995
|
return;
|
|
978
996
|
}
|
|
979
|
-
const
|
|
980
|
-
|
|
981
|
-
dataIndex:
|
|
982
|
-
seriesIndex:
|
|
997
|
+
const P = L[0]?.seriesIndex ?? 0, W = Array.from(new Set(L.filter((B) => B.seriesIndex === void 0 || B.seriesIndex === P).flatMap(Bt)));
|
|
998
|
+
y.current = {
|
|
999
|
+
dataIndex: W,
|
|
1000
|
+
seriesIndex: P
|
|
983
1001
|
};
|
|
984
|
-
}, e[
|
|
985
|
-
const
|
|
986
|
-
let
|
|
987
|
-
e[
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
return
|
|
1002
|
+
}, e[9] = u) : u = e[9];
|
|
1003
|
+
const i = u;
|
|
1004
|
+
let c;
|
|
1005
|
+
e[10] !== t || e[11] !== f ? (c = () => {
|
|
1006
|
+
f?.(y.current), g.setWidget(t, {
|
|
1007
|
+
brush: !1
|
|
1008
|
+
});
|
|
1009
|
+
}, e[10] = t, e[11] = f, e[12] = c) : c = e[12];
|
|
1010
|
+
const d = c;
|
|
1011
|
+
let v, O;
|
|
1012
|
+
e[13] !== d || e[14] !== t ? (v = () => (g.registerTool(t, {
|
|
1013
|
+
id: me,
|
|
1014
|
+
type: "config",
|
|
1015
|
+
order: 25,
|
|
1016
|
+
enabled: !1,
|
|
1017
|
+
fn: (h) => {
|
|
1018
|
+
const I = h, L = I.option, P = I.onEvents ?? {}, W = pe(), B = {
|
|
1019
|
+
...P,
|
|
1020
|
+
brushSelected: i,
|
|
1021
|
+
brushEnd: d
|
|
1022
|
+
};
|
|
1023
|
+
return {
|
|
1024
|
+
...I,
|
|
1025
|
+
option: {
|
|
1026
|
+
...L,
|
|
1027
|
+
...W
|
|
1028
|
+
},
|
|
1029
|
+
onEvents: B
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
}), () => g.unregisterTool(t, me)), O = [t, i, d], e[13] = d, e[14] = t, e[15] = v, e[16] = O) : (v = e[15], O = e[16]), $(v, O);
|
|
1033
|
+
let C, k;
|
|
1034
|
+
e[17] !== o || e[18] !== t ? (k = () => {
|
|
1035
|
+
g.setToolEnabled(t, me, o);
|
|
1036
|
+
}, C = [t, o], e[17] = o, e[18] = t, e[19] = C, e[20] = k) : (C = e[19], k = e[20]), $(k, C);
|
|
1037
|
+
const A = p?.enable ?? "Enable brush selection", w = p?.disable ?? "Disable brush selection", D = o ? w : A, x = p?.ariaLabel ?? D;
|
|
1038
|
+
let E;
|
|
1039
|
+
e[21] !== m ? (E = m ?? /* @__PURE__ */ b(qe, {}), e[21] = m, e[22] = E) : E = e[22];
|
|
1040
|
+
let z;
|
|
1041
|
+
e[23] !== S || e[24] !== o || e[25] !== r || e[26] !== x || e[27] !== E ? (z = /* @__PURE__ */ b(K, { size: "small", "aria-label": x, onClick: r, sx: _e.trigger, "data-active": o, ...S, children: E }), e[23] = S, e[24] = o, e[25] = r, e[26] = x, e[27] = E, e[28] = z) : z = e[28];
|
|
1042
|
+
let T;
|
|
1043
|
+
return e[29] !== z || e[30] !== D ? (T = /* @__PURE__ */ b(ke, { sx: _e.container, children: /* @__PURE__ */ b(ee, { title: D, children: z }) }), e[29] = z, e[30] = D, e[31] = T) : T = e[31], T;
|
|
1026
1044
|
}
|
|
1027
|
-
function
|
|
1045
|
+
function Bt(n) {
|
|
1028
1046
|
return n.dataIndex ?? [];
|
|
1029
1047
|
}
|
|
1030
|
-
function
|
|
1048
|
+
function Rt(n) {
|
|
1031
1049
|
return n.selected ?? [];
|
|
1032
1050
|
}
|
|
1033
|
-
function
|
|
1051
|
+
function $t(n) {
|
|
1034
1052
|
return {
|
|
1035
|
-
brush: n?.
|
|
1053
|
+
brush: n?.brush ?? !1
|
|
1036
1054
|
};
|
|
1037
1055
|
}
|
|
1038
|
-
function Ht(n) {
|
|
1039
|
-
return n.id === ie;
|
|
1040
|
-
}
|
|
1041
1056
|
export {
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1057
|
+
me as BRUSH_TOGGLE_TOOL_ID,
|
|
1058
|
+
un as BrushToggle,
|
|
1059
|
+
Te as CHANGE_COLUMN_TOOL_ID,
|
|
1060
|
+
dn as ChangeColumn,
|
|
1061
|
+
nn as Download,
|
|
1062
|
+
tn as FullScreen,
|
|
1063
|
+
ie as LOCK_SELECTION_TOOL_ID,
|
|
1064
|
+
sn as LockSelection,
|
|
1065
|
+
Ie as RELATIVE_DATA_CONFIG_TOOL_ID,
|
|
1066
|
+
ce as RELATIVE_DATA_TOOL_ID,
|
|
1067
|
+
on as RelativeData,
|
|
1068
|
+
fe as SEARCHER_TOOL_ID,
|
|
1069
|
+
ue as STACK_TOGGLE_TOOL_ID,
|
|
1070
|
+
an as Searcher,
|
|
1071
|
+
cn as SearcherToggle,
|
|
1072
|
+
rn as StackToggle,
|
|
1073
|
+
de as ZOOM_TOGGLE_TOOL_ID,
|
|
1074
|
+
ln as ZoomToggle,
|
|
1075
|
+
gn as downloadToCSV,
|
|
1076
|
+
hn as downloadToPNG
|
|
1062
1077
|
};
|
|
1063
1078
|
//# sourceMappingURL=actions.js.map
|