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