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