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