@carto/ps-react-ui 4.9.1 → 4.11.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/category-Dnd2_j0x.js +719 -0
- package/dist/category-Dnd2_j0x.js.map +1 -0
- package/dist/change-column-BiuuHCDN.js +1156 -0
- package/dist/change-column-BiuuHCDN.js.map +1 -0
- package/dist/chat.js +1507 -0
- package/dist/chat.js.map +1 -0
- package/dist/components.js +122 -120
- package/dist/components.js.map +1 -1
- package/dist/copy-button-DGL1tyli.js +26 -0
- package/dist/copy-button-DGL1tyli.js.map +1 -0
- package/dist/{data-zoom-layout-0QSptXG_.js → data-zoom-layout--YiY6ko_.js} +4 -3
- package/dist/{data-zoom-layout-0QSptXG_.js.map → data-zoom-layout--YiY6ko_.js.map} +1 -1
- package/dist/{download-config-CzmjOT2T.js → download-config-oJIFZ2WC.js} +9 -8
- package/dist/{download-config-CzmjOT2T.js.map → download-config-oJIFZ2WC.js.map} +1 -1
- package/dist/{spread-Y9R1f5dm.js → spread-CPis22AE.js} +4 -3
- package/dist/{spread-Y9R1f5dm.js.map → spread-CPis22AE.js.map} +1 -1
- package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
- package/dist/types/chat/bubbles/index.d.ts +4 -0
- package/dist/types/chat/const.d.ts +4 -0
- package/dist/types/chat/containers/chat-content.d.ts +2 -0
- package/dist/types/chat/containers/chat-footer.d.ts +2 -0
- package/dist/types/chat/containers/chat-header.d.ts +2 -0
- package/dist/types/chat/containers/chat-starter.d.ts +2 -0
- package/dist/types/chat/containers/index.d.ts +4 -0
- package/dist/types/chat/containers/styles.d.ts +93 -0
- package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
- package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
- package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-code-area.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-group.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-trace.d.ts +3 -0
- package/dist/types/chat/feedback/get-tool-label.d.ts +2 -0
- package/dist/types/chat/feedback/index.d.ts +8 -0
- package/dist/types/chat/feedback/styles.d.ts +211 -0
- package/dist/types/chat/index.d.ts +20 -0
- package/dist/types/chat/types.d.ts +184 -0
- package/dist/types/chat/use-typewriter.d.ts +30 -0
- package/dist/types/components/copy-button/copy-button.d.ts +2 -0
- package/dist/types/components/copy-button/types.d.ts +6 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/widgets/actions/brush-toggle/style.d.ts +1 -1
- package/dist/types/widgets/actions/shared/styles.d.ts +1 -1
- package/dist/types/widgets/actions/zoom-toggle/style.d.ts +1 -1
- package/dist/types/widgets/echart/types.d.ts +1 -1
- package/dist/types/widgets/toolbar-actions/styles.d.ts +1 -1
- package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/change-column/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/index.d.ts +1 -0
- package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/relative-data/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/searcher/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/show-all/index.d.ts +2 -0
- package/dist/types/widgets-v2/actions/show-all/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +33 -0
- package/dist/types/widgets-v2/actions/show-all/style.d.ts +8 -0
- package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +1 -1
- package/dist/types/widgets-v2/category/category-ui.d.ts +9 -2
- package/dist/types/widgets-v2/category/category.d.ts +9 -2
- package/dist/types/widgets-v2/category/components/category-row-other.d.ts +19 -6
- package/dist/types/widgets-v2/category/style.d.ts +21 -2
- package/dist/types/widgets-v2/category/types.d.ts +2 -0
- package/dist/types/widgets-v2/index.d.ts +3 -2
- package/dist/types/widgets-v2/selection-summary/labels.d.ts +7 -2
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +13 -6
- package/dist/types/widgets-v2/selection-summary/style.d.ts +15 -0
- package/dist/widgets/actions.js +115 -114
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +1 -1
- package/dist/widgets/category.js +9 -8
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/formula.js +11 -10
- package/dist/widgets/formula.js.map +1 -1
- package/dist/widgets/histogram.js +7 -6
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/markdown.js +9 -8
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/pie.js +1 -1
- package/dist/widgets/scatterplot.js +1 -1
- package/dist/widgets/spread.js +9 -8
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/table.js +17 -16
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +1 -1
- package/dist/widgets/utils.js +1 -1
- package/dist/widgets/wrapper.js +3 -2
- package/dist/widgets/wrapper.js.map +1 -1
- package/dist/widgets-v2/actions.js +41 -37
- package/dist/widgets-v2/bar.js +8 -7
- package/dist/widgets-v2/bar.js.map +1 -1
- package/dist/widgets-v2/category.js +22 -21
- package/dist/widgets-v2/category.js.map +1 -1
- package/dist/widgets-v2/formula.js +23 -22
- package/dist/widgets-v2/formula.js.map +1 -1
- package/dist/widgets-v2/histogram.js +10 -9
- package/dist/widgets-v2/histogram.js.map +1 -1
- package/dist/widgets-v2/markdown.js +9 -8
- package/dist/widgets-v2/markdown.js.map +1 -1
- package/dist/widgets-v2/pie.js +7 -6
- package/dist/widgets-v2/pie.js.map +1 -1
- package/dist/widgets-v2/scatterplot.js +9 -8
- package/dist/widgets-v2/scatterplot.js.map +1 -1
- package/dist/widgets-v2/spread.js +9 -8
- package/dist/widgets-v2/spread.js.map +1 -1
- package/dist/widgets-v2/table.js +16 -15
- package/dist/widgets-v2/table.js.map +1 -1
- package/dist/widgets-v2/timeseries.js +8 -7
- package/dist/widgets-v2/timeseries.js.map +1 -1
- package/dist/widgets-v2/utils.js +1 -1
- package/dist/widgets-v2.js +276 -271
- package/dist/widgets-v2.js.map +1 -1
- package/package.json +7 -3
- package/src/chat/bubbles/chat-agent-message.test.tsx +30 -0
- package/src/chat/bubbles/chat-agent-message.tsx +11 -0
- package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
- package/src/chat/bubbles/chat-error-message.tsx +47 -0
- package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
- package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.tsx +27 -0
- package/src/chat/bubbles/index.ts +4 -0
- package/src/chat/bubbles/styles.ts +148 -0
- package/src/chat/const.ts +4 -0
- package/src/chat/containers/chat-content.test.tsx +269 -0
- package/src/chat/containers/chat-content.tsx +142 -0
- package/src/chat/containers/chat-footer.test.tsx +34 -0
- package/src/chat/containers/chat-footer.tsx +78 -0
- package/src/chat/containers/chat-header.test.tsx +28 -0
- package/src/chat/containers/chat-header.tsx +29 -0
- package/src/chat/containers/chat-starter.test.tsx +32 -0
- package/src/chat/containers/chat-starter.tsx +75 -0
- package/src/chat/containers/index.ts +4 -0
- package/src/chat/containers/styles.ts +96 -0
- package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
- package/src/chat/feedback/chat-actions-container.tsx +7 -0
- package/src/chat/feedback/chat-loader.test.tsx +10 -0
- package/src/chat/feedback/chat-loader.tsx +31 -0
- package/src/chat/feedback/chat-rating-action.tsx +43 -0
- package/src/chat/feedback/chat-thinking.test.tsx +15 -0
- package/src/chat/feedback/chat-thinking.tsx +23 -0
- package/src/chat/feedback/chat-tool-code-area.test.tsx +23 -0
- package/src/chat/feedback/chat-tool-code-area.tsx +71 -0
- package/src/chat/feedback/chat-tool-full-view-dialog.test.tsx +39 -0
- package/src/chat/feedback/chat-tool-full-view-dialog.tsx +121 -0
- package/src/chat/feedback/chat-tool-group.test.tsx +84 -0
- package/src/chat/feedback/chat-tool-group.tsx +156 -0
- package/src/chat/feedback/chat-tool-trace.test.tsx +81 -0
- package/src/chat/feedback/chat-tool-trace.tsx +192 -0
- package/src/chat/feedback/get-tool-label.test.tsx +91 -0
- package/src/chat/feedback/get-tool-label.ts +13 -0
- package/src/chat/feedback/index.ts +8 -0
- package/src/chat/feedback/styles.ts +229 -0
- package/src/chat/index.ts +59 -0
- package/src/chat/types.ts +215 -0
- package/src/chat/use-typewriter.test.tsx +38 -0
- package/src/chat/use-typewriter.ts +82 -0
- package/src/components/copy-button/copy-button.test.tsx +41 -0
- package/src/components/copy-button/copy-button.tsx +31 -0
- package/src/components/copy-button/types.ts +10 -0
- package/src/components/index.ts +3 -0
- package/src/widgets/echart/types.ts +1 -1
- package/src/widgets-v2/actions/index.ts +8 -0
- package/src/widgets-v2/actions/show-all/index.ts +7 -0
- package/src/widgets-v2/actions/show-all/labels.ts +8 -0
- package/src/widgets-v2/actions/show-all/show-all.test.tsx +50 -0
- package/src/widgets-v2/actions/show-all/show-all.tsx +72 -0
- package/src/widgets-v2/actions/show-all/style.ts +8 -0
- package/src/widgets-v2/category/category-ui.test.tsx +26 -10
- package/src/widgets-v2/category/category-ui.tsx +13 -3
- package/src/widgets-v2/category/category.test.tsx +4 -4
- package/src/widgets-v2/category/category.tsx +10 -1
- package/src/widgets-v2/category/components/category-row-other.test.tsx +36 -7
- package/src/widgets-v2/category/components/category-row-other.tsx +64 -13
- package/src/widgets-v2/category/style.ts +35 -4
- package/src/widgets-v2/category/types.ts +2 -0
- package/src/widgets-v2/index.ts +3 -0
- package/src/widgets-v2/selection-summary/labels.ts +8 -4
- package/src/widgets-v2/selection-summary/selection-summary.test.tsx +15 -9
- package/src/widgets-v2/selection-summary/selection-summary.tsx +42 -22
- package/src/widgets-v2/selection-summary/style.ts +15 -0
- package/dist/category-DwaeYjpX.js +0 -656
- package/dist/category-DwaeYjpX.js.map +0 -1
- package/dist/change-column-B4IT0rh6.js +0 -1110
- package/dist/change-column-B4IT0rh6.js.map +0 -1
|
@@ -8,6 +8,21 @@ export declare const styles: {
|
|
|
8
8
|
label: {
|
|
9
9
|
color: "text.secondary";
|
|
10
10
|
};
|
|
11
|
+
count: {
|
|
12
|
+
display: "inline-flex";
|
|
13
|
+
alignItems: "baseline";
|
|
14
|
+
gap: number;
|
|
15
|
+
};
|
|
16
|
+
selected: {
|
|
17
|
+
color: "text.primary";
|
|
18
|
+
fontWeight: number;
|
|
19
|
+
};
|
|
20
|
+
separator: {
|
|
21
|
+
color: "text.secondary";
|
|
22
|
+
};
|
|
23
|
+
total: {
|
|
24
|
+
color: "text.secondary";
|
|
25
|
+
};
|
|
11
26
|
clear: {
|
|
12
27
|
color: "primary.main";
|
|
13
28
|
cursor: "pointer";
|
package/dist/widgets/actions.js
CHANGED
|
@@ -5,14 +5,15 @@ import { w as p, u as He } from "../widget-store-Bw5zRUGg.js";
|
|
|
5
5
|
import { u as ne } from "../use-widget-selector-DFl2hW0R.js";
|
|
6
6
|
import { FullscreenOutlined as je, Close as Ue, FileDownloadOutlined as Xe, PercentOutlined as Ye, SubdirectoryArrowLeftOutlined as Ke, ZoomInOutlined as qe, CheckBoxOutlined as Je, SearchOutlined as ze, ClearOutlined as Qe, HighlightAltOutlined as et } from "@mui/icons-material";
|
|
7
7
|
import { useState as ie, useRef as le, useEffect as H, useSyncExternalStore as ve } from "react";
|
|
8
|
-
import { a as
|
|
8
|
+
import { a as Rn, d as Dn } from "../exports-Cr43OCul.js";
|
|
9
9
|
import "../lasso-tool-CDFj4zKY.js";
|
|
10
10
|
import "../cjs-D4KH3azB.js";
|
|
11
11
|
import { T as re } from "../tooltip-BDnrRKrp.js";
|
|
12
|
+
import "@carto/ps-utils";
|
|
12
13
|
import { b as tt, a as nt, D as ot } from "../utils-BOhInag6.js";
|
|
13
14
|
import { useSensors as lt, useSensor as ye, PointerSensor as rt, KeyboardSensor as it, DndContext as st, closestCenter as ct } from "@dnd-kit/core";
|
|
14
|
-
import { useSortable as at, sortableKeyboardCoordinates as dt, arrayMove as ut, SortableContext as ft, verticalListSortingStrategy as
|
|
15
|
-
import { CSS as
|
|
15
|
+
import { useSortable as at, sortableKeyboardCoordinates as dt, arrayMove as ut, SortableContext as ft, verticalListSortingStrategy as mt } from "@dnd-kit/sortable";
|
|
16
|
+
import { CSS as gt } from "@dnd-kit/utilities";
|
|
16
17
|
import { createPortal as ht } from "react-dom";
|
|
17
18
|
import { o as pt } from "../shared-resize-observer-98b1SK1e.js";
|
|
18
19
|
const Ie = {
|
|
@@ -32,7 +33,7 @@ const Ie = {
|
|
|
32
33
|
}) => n(1)
|
|
33
34
|
}
|
|
34
35
|
}, bt = {};
|
|
35
|
-
function
|
|
36
|
+
function Sn(n) {
|
|
36
37
|
const e = Q(42), {
|
|
37
38
|
id: t,
|
|
38
39
|
labels: r,
|
|
@@ -51,21 +52,21 @@ function bn(n) {
|
|
|
51
52
|
isFullScreen: a,
|
|
52
53
|
title: d
|
|
53
54
|
} = ne(t, St);
|
|
54
|
-
let
|
|
55
|
-
e[3] !== t ? (
|
|
55
|
+
let m;
|
|
56
|
+
e[3] !== t ? (m = (M) => {
|
|
56
57
|
p.setWidget(t, {
|
|
57
58
|
isFullScreen: M.isFullScreen
|
|
58
59
|
});
|
|
59
|
-
}, e[3] = t, e[4] =
|
|
60
|
-
const f =
|
|
60
|
+
}, e[3] = t, e[4] = m) : m = e[4];
|
|
61
|
+
const f = m;
|
|
61
62
|
let h;
|
|
62
63
|
e[5] !== f ? (h = () => f({
|
|
63
64
|
isFullScreen: !0
|
|
64
65
|
}), e[5] = f, e[6] = h) : h = e[6];
|
|
65
|
-
let
|
|
66
|
-
e[7] !== c ? (
|
|
66
|
+
let g;
|
|
67
|
+
e[7] !== c ? (g = c ?? /* @__PURE__ */ x(je, {}), e[7] = c, e[8] = g) : g = e[8];
|
|
67
68
|
let I;
|
|
68
|
-
e[9] !== b || e[10] !== h || e[11] !==
|
|
69
|
+
e[9] !== b || e[10] !== h || e[11] !== g ? (I = /* @__PURE__ */ x(ee, { ...b, onClick: h, children: g }), e[9] = b, e[10] = h, e[11] = g, e[12] = I) : I = e[12];
|
|
69
70
|
const s = !!a, w = r?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
|
|
70
71
|
let L;
|
|
71
72
|
e[13] !== f ? (L = () => f({
|
|
@@ -112,7 +113,7 @@ function St(n) {
|
|
|
112
113
|
};
|
|
113
114
|
}
|
|
114
115
|
const xt = {};
|
|
115
|
-
function
|
|
116
|
+
function xn(n) {
|
|
116
117
|
const e = Q(31), {
|
|
117
118
|
id: t,
|
|
118
119
|
items: r,
|
|
@@ -126,15 +127,15 @@ function Sn(n) {
|
|
|
126
127
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (M) => {
|
|
127
128
|
M.stopPropagation(), a(M.currentTarget);
|
|
128
129
|
}, e[0] = d) : d = e[0];
|
|
129
|
-
const
|
|
130
|
+
const m = d;
|
|
130
131
|
let f;
|
|
131
132
|
e[1] !== t ? (f = (M, A) => {
|
|
132
133
|
const W = document.createElement("a");
|
|
133
134
|
W.href = M, W.download = A.filename ?? t, W.style.display = "none", document.body.appendChild(W), W.click(), document.body.removeChild(W), A.callback?.(W.href);
|
|
134
135
|
}, e[1] = t, e[2] = f) : f = e[2];
|
|
135
136
|
const h = f;
|
|
136
|
-
let
|
|
137
|
-
e[3] !== S || e[4] !== h ? (
|
|
137
|
+
let g;
|
|
138
|
+
e[3] !== S || e[4] !== h ? (g = async (M, A) => {
|
|
138
139
|
M.stopPropagation(), i(!0), a(null);
|
|
139
140
|
const W = await A.modifier(S);
|
|
140
141
|
if (!W) {
|
|
@@ -142,12 +143,12 @@ function Sn(n) {
|
|
|
142
143
|
return;
|
|
143
144
|
}
|
|
144
145
|
h(W, A), i(!1);
|
|
145
|
-
}, e[3] = S, e[4] = h, e[5] =
|
|
146
|
-
const I =
|
|
146
|
+
}, e[3] = S, e[4] = h, e[5] = g) : g = e[5];
|
|
147
|
+
const I = g, s = C.ariaLabel ?? "download options", w = o || r.length === 0, L = o || l ? "active" : "";
|
|
147
148
|
let P;
|
|
148
149
|
e[6] !== c || e[7] !== o ? (P = o ? /* @__PURE__ */ x($e, { size: 18, color: "inherit" }) : c ?? /* @__PURE__ */ x(Xe, {}), e[6] = c, e[7] = o, e[8] = P) : P = e[8];
|
|
149
150
|
let D;
|
|
150
|
-
e[9] !== b || e[10] !== s || e[11] !== w || e[12] !== L || e[13] !== P ? (D = /* @__PURE__ */ x(ee, { size: "small", "aria-label": s, "aria-controls": "options-menu", "aria-haspopup": "true", onClick:
|
|
151
|
+
e[9] !== b || e[10] !== s || e[11] !== w || e[12] !== L || e[13] !== P ? (D = /* @__PURE__ */ x(ee, { size: "small", "aria-label": s, "aria-controls": "options-menu", "aria-haspopup": "true", onClick: m, ...b, disabled: w, className: L, children: P }), e[9] = b, e[10] = s, e[11] = w, e[12] = L, e[13] = P, e[14] = D) : D = e[14];
|
|
151
152
|
let O, E;
|
|
152
153
|
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
153
154
|
vertical: "bottom",
|
|
@@ -220,8 +221,8 @@ function It(n, e) {
|
|
|
220
221
|
return u;
|
|
221
222
|
}));
|
|
222
223
|
}
|
|
223
|
-
const
|
|
224
|
-
function
|
|
224
|
+
const ge = "relative-data", Te = "relative-data-config";
|
|
225
|
+
function vn(n) {
|
|
225
226
|
const e = Q(36), {
|
|
226
227
|
id: t,
|
|
227
228
|
order: r,
|
|
@@ -237,7 +238,7 @@ function xn(n) {
|
|
|
237
238
|
const {
|
|
238
239
|
isRelative: a
|
|
239
240
|
} = ne(t, l);
|
|
240
|
-
let d,
|
|
241
|
+
let d, m;
|
|
241
242
|
e[2] !== o || e[3] !== t ? (d = () => {
|
|
242
243
|
const v = p.getWidget(t);
|
|
243
244
|
v?.isRelative === void 0 && (o ? p.setWidget(t, {
|
|
@@ -247,18 +248,18 @@ function xn(n) {
|
|
|
247
248
|
}) : p.setWidget(t, {
|
|
248
249
|
isRelative: o
|
|
249
250
|
}));
|
|
250
|
-
},
|
|
251
|
+
}, m = [t, o], e[2] = o, e[3] = t, e[4] = d, e[5] = m) : (d = e[4], m = e[5]), H(d, m);
|
|
251
252
|
let f, h;
|
|
252
253
|
e[6] !== o || e[7] !== t || e[8] !== S ? (f = () => (p.registerTool(t, {
|
|
253
|
-
id:
|
|
254
|
+
id: ge,
|
|
254
255
|
order: S,
|
|
255
256
|
enabled: o,
|
|
256
257
|
fn: Tt
|
|
257
|
-
}), () => p.unregisterTool(t,
|
|
258
|
-
let
|
|
259
|
-
e[11] !== t || e[12] !== a ? (
|
|
260
|
-
p.setToolEnabled(t,
|
|
261
|
-
}, I = [t, a], e[11] = t, e[12] = a, e[13] =
|
|
258
|
+
}), () => p.unregisterTool(t, ge)), h = [t, S, o], e[6] = o, e[7] = t, e[8] = S, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
|
|
259
|
+
let g, I;
|
|
260
|
+
e[11] !== t || e[12] !== a ? (g = () => {
|
|
261
|
+
p.setToolEnabled(t, ge, a);
|
|
262
|
+
}, I = [t, a], e[11] = t, e[12] = a, e[13] = g, e[14] = I) : (g = e[13], I = e[14]), H(g, I);
|
|
262
263
|
let s;
|
|
263
264
|
e[15] !== t || e[16] !== S ? (s = () => (p.registerTool(t, {
|
|
264
265
|
id: Te,
|
|
@@ -340,7 +341,7 @@ const _e = {
|
|
|
340
341
|
}
|
|
341
342
|
}
|
|
342
343
|
}, he = "zoom-toggle";
|
|
343
|
-
function
|
|
344
|
+
function yn(n) {
|
|
344
345
|
const e = Q(63), {
|
|
345
346
|
id: t,
|
|
346
347
|
defaultZoom: r,
|
|
@@ -351,17 +352,17 @@ function vn(n) {
|
|
|
351
352
|
ResetIcon: S,
|
|
352
353
|
IconButtonProps: o
|
|
353
354
|
} = n, i = r === void 0 ? !1 : r, l = u === void 0 ? 0 : u, a = c === void 0 ? 100 : c, d = Ge();
|
|
354
|
-
let
|
|
355
|
-
e[0] !== i || e[1] !== a || e[2] !== l ? (
|
|
355
|
+
let m;
|
|
356
|
+
e[0] !== i || e[1] !== a || e[2] !== l ? (m = (y) => ({
|
|
356
357
|
zoom: y?.zoom ?? i,
|
|
357
358
|
zoomStart: y?.zoomStart ?? l,
|
|
358
359
|
zoomEnd: y?.zoomEnd ?? a
|
|
359
|
-
}), e[0] = i, e[1] = a, e[2] = l, e[3] =
|
|
360
|
+
}), e[0] = i, e[1] = a, e[2] = l, e[3] = m) : m = e[3];
|
|
360
361
|
const {
|
|
361
362
|
zoom: f,
|
|
362
363
|
zoomStart: h,
|
|
363
|
-
zoomEnd:
|
|
364
|
-
} = ne(t,
|
|
364
|
+
zoomEnd: g
|
|
365
|
+
} = ne(t, m);
|
|
365
366
|
let I, s;
|
|
366
367
|
e[4] !== i || e[5] !== a || e[6] !== l || e[7] !== t ? (I = () => {
|
|
367
368
|
p.getWidget(t)?.zoom === void 0 && p.setWidget(t, {
|
|
@@ -387,7 +388,7 @@ function vn(n) {
|
|
|
387
388
|
order: 20,
|
|
388
389
|
enabled: i,
|
|
389
390
|
fn: (y) => {
|
|
390
|
-
const B = y, F = B.option, V = B.onEvents ?? {}, X = p.getWidget(t), q = X?.zoomStart ?? 0, te = X?.zoomEnd ?? 100, Y = F?.legend, J = Y?.show !== !1 && Y !== void 0, ce = parseInt(d?.spacing?.(4) ?? "32"),
|
|
391
|
+
const B = y, F = B.option, V = B.onEvents ?? {}, X = p.getWidget(t), q = X?.zoomStart ?? 0, te = X?.zoomEnd ?? 100, Y = F?.legend, J = Y?.show !== !1 && Y !== void 0, ce = parseInt(d?.spacing?.(4) ?? "32"), me = tt({
|
|
391
392
|
start: q,
|
|
392
393
|
end: te
|
|
393
394
|
}, {
|
|
@@ -403,7 +404,7 @@ function vn(n) {
|
|
|
403
404
|
...B,
|
|
404
405
|
option: {
|
|
405
406
|
...F,
|
|
406
|
-
...
|
|
407
|
+
...me,
|
|
407
408
|
grid: {
|
|
408
409
|
...ae,
|
|
409
410
|
bottom: Oe
|
|
@@ -424,16 +425,16 @@ function vn(n) {
|
|
|
424
425
|
p.triggerToolPipeline(t);
|
|
425
426
|
}, e[28] = t, e[29] = R) : R = e[29];
|
|
426
427
|
let k;
|
|
427
|
-
e[30] !== t || e[31] !==
|
|
428
|
+
e[30] !== t || e[31] !== g || e[32] !== h ? (k = [t, h, g], e[30] = t, e[31] = g, e[32] = h, e[33] = k) : k = e[33], H(R, k);
|
|
428
429
|
let v;
|
|
429
|
-
e[34] !== t || e[35] !== f || e[36] !==
|
|
430
|
+
e[34] !== t || e[35] !== f || e[36] !== g || e[37] !== h ? (v = () => {
|
|
430
431
|
const y = !f;
|
|
431
432
|
p.setWidget(t, {
|
|
432
433
|
zoom: y,
|
|
433
434
|
zoomStart: y ? h : 0,
|
|
434
|
-
zoomEnd: y ?
|
|
435
|
+
zoomEnd: y ? g : 100
|
|
435
436
|
});
|
|
436
|
-
}, e[34] = t, e[35] = f, e[36] =
|
|
437
|
+
}, e[34] = t, e[35] = f, e[36] = g, e[37] = h, e[38] = v) : v = e[38];
|
|
437
438
|
const T = v;
|
|
438
439
|
let _;
|
|
439
440
|
e[39] !== a || e[40] !== l || e[41] !== t ? (_ = () => {
|
|
@@ -463,7 +464,7 @@ const _t = () => {
|
|
|
463
464
|
let e;
|
|
464
465
|
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ x("path", { d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z", fill: "currentColor" }) }), n[0] = e) : e = n[0], e;
|
|
465
466
|
}, pe = "stack-toggle";
|
|
466
|
-
function
|
|
467
|
+
function In(n) {
|
|
467
468
|
const e = Q(35), {
|
|
468
469
|
id: t,
|
|
469
470
|
defaultIsStacked: r,
|
|
@@ -498,7 +499,7 @@ function yn(n) {
|
|
|
498
499
|
const {
|
|
499
500
|
hasMultiSeries: l,
|
|
500
501
|
hasStackInSeries: a
|
|
501
|
-
} = i, d = a || C,
|
|
502
|
+
} = i, d = a || C, m = S ?? d;
|
|
502
503
|
let f, h;
|
|
503
504
|
e[8] !== t ? (f = () => (p.registerTool(t, {
|
|
504
505
|
id: pe,
|
|
@@ -507,10 +508,10 @@ function yn(n) {
|
|
|
507
508
|
enabled: !1,
|
|
508
509
|
fn: Et
|
|
509
510
|
}), () => p.unregisterTool(t, pe)), h = [t], e[8] = t, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
|
|
510
|
-
let
|
|
511
|
-
e[11] !== l || e[12] !== t || e[13] !==
|
|
512
|
-
p.setToolEnabled(t, pe,
|
|
513
|
-
}, I = [t,
|
|
511
|
+
let g, I;
|
|
512
|
+
e[11] !== l || e[12] !== t || e[13] !== m ? (g = () => {
|
|
513
|
+
p.setToolEnabled(t, pe, m && l);
|
|
514
|
+
}, I = [t, m, l], e[11] = l, e[12] = t, e[13] = m, e[14] = g, e[15] = I) : (g = e[14], I = e[15]), H(g, I);
|
|
514
515
|
let s, w;
|
|
515
516
|
e[16] !== d || e[17] !== t || e[18] !== S ? (s = () => {
|
|
516
517
|
S === void 0 && p.setWidget(t, {
|
|
@@ -518,19 +519,19 @@ function yn(n) {
|
|
|
518
519
|
});
|
|
519
520
|
}, w = [d, t, S], e[16] = d, e[17] = t, e[18] = S, e[19] = s, e[20] = w) : (s = e[19], w = e[20]), H(s, w);
|
|
520
521
|
let L;
|
|
521
|
-
e[21] !== t || e[22] !==
|
|
522
|
+
e[21] !== t || e[22] !== m ? (L = () => {
|
|
522
523
|
p.setWidget(t, {
|
|
523
|
-
isStacked: !
|
|
524
|
+
isStacked: !m
|
|
524
525
|
});
|
|
525
|
-
}, e[21] = t, e[22] =
|
|
526
|
-
const P = L, D =
|
|
526
|
+
}, e[21] = t, e[22] = m, e[23] = L) : L = e[23];
|
|
527
|
+
const P = L, D = m ? u?.unstacked ?? "Disable stacking" : u?.stacked ?? "Enable stacking";
|
|
527
528
|
if (!l)
|
|
528
529
|
return null;
|
|
529
530
|
const O = u?.ariaLabel ?? D;
|
|
530
531
|
let E;
|
|
531
532
|
e[24] !== c ? (E = c ?? /* @__PURE__ */ x(_t, {}), e[24] = c, e[25] = E) : E = e[25];
|
|
532
533
|
let R;
|
|
533
|
-
e[26] !== b || e[27] !== P || e[28] !==
|
|
534
|
+
e[26] !== b || e[27] !== P || e[28] !== m || e[29] !== O || e[30] !== E ? (R = /* @__PURE__ */ x(ee, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": m, ...b, children: E }), e[26] = b, e[27] = P, e[28] = m, e[29] = O, e[30] = E, e[31] = R) : R = e[31];
|
|
534
535
|
let k;
|
|
535
536
|
return e[32] !== R || e[33] !== D ? (k = /* @__PURE__ */ x(re, { title: D, children: R }), e[32] = R, e[33] = D, e[34] = k) : k = e[34], k;
|
|
536
537
|
}
|
|
@@ -564,7 +565,7 @@ function kt(n) {
|
|
|
564
565
|
};
|
|
565
566
|
}
|
|
566
567
|
const de = "lock-selection";
|
|
567
|
-
function
|
|
568
|
+
function Tn(n) {
|
|
568
569
|
const e = Q(24), {
|
|
569
570
|
id: t,
|
|
570
571
|
selectedItems: r,
|
|
@@ -585,7 +586,7 @@ function In(n) {
|
|
|
585
586
|
return O.length === 0 ? P : Pt(P, O);
|
|
586
587
|
}
|
|
587
588
|
}), () => p.unregisterTool(t, de)), a = [t, S], e[0] = t, e[1] = S, e[2] = l, e[3] = a) : (l = e[2], a = e[3]), H(l, a);
|
|
588
|
-
let d,
|
|
589
|
+
let d, m;
|
|
589
590
|
e[4] !== t || e[5] !== i || e[6] !== r.length ? (d = () => {
|
|
590
591
|
if (i && r.length === 0) {
|
|
591
592
|
p.setWidget(t, {
|
|
@@ -595,7 +596,7 @@ function In(n) {
|
|
|
595
596
|
return;
|
|
596
597
|
}
|
|
597
598
|
p.setToolEnabled(t, de, i);
|
|
598
|
-
},
|
|
599
|
+
}, m = [t, i, r.length], e[4] = t, e[5] = i, e[6] = r.length, e[7] = d, e[8] = m) : (d = e[7], m = e[8]), H(d, m);
|
|
599
600
|
let f;
|
|
600
601
|
e[9] !== t || e[10] !== i || e[11] !== r ? (f = () => {
|
|
601
602
|
i ? p.setWidget(t, {
|
|
@@ -609,13 +610,13 @@ function In(n) {
|
|
|
609
610
|
const h = f;
|
|
610
611
|
if (r.length === 0)
|
|
611
612
|
return null;
|
|
612
|
-
const
|
|
613
|
+
const g = i ? c?.unlock ?? "Unlock selection" : c?.lock ?? "Lock selection", I = c?.ariaLabel ?? g;
|
|
613
614
|
let s;
|
|
614
615
|
e[13] !== b ? (s = b ?? /* @__PURE__ */ x(Je, { fontSize: "small" }), e[13] = b, e[14] = s) : s = e[14];
|
|
615
616
|
let w;
|
|
616
617
|
e[15] !== C || e[16] !== I || e[17] !== h || e[18] !== i || e[19] !== s ? (w = /* @__PURE__ */ x(ee, { size: "small", "aria-label": I, onClick: h, sx: se.trigger, "data-active": i, ...C, children: s }), e[15] = C, e[16] = I, e[17] = h, e[18] = i, e[19] = s, e[20] = w) : w = e[20];
|
|
617
618
|
let L;
|
|
618
|
-
return e[21] !== w || e[22] !==
|
|
619
|
+
return e[21] !== w || e[22] !== g ? (L = /* @__PURE__ */ x(re, { title: g, children: w }), e[21] = w, e[22] = g, e[23] = L) : L = e[23], L;
|
|
619
620
|
}
|
|
620
621
|
function wt(n) {
|
|
621
622
|
return {
|
|
@@ -629,7 +630,7 @@ function Pt(n, e) {
|
|
|
629
630
|
}));
|
|
630
631
|
}
|
|
631
632
|
const be = "searcher", Rt = 300;
|
|
632
|
-
function
|
|
633
|
+
function _n(n) {
|
|
633
634
|
const e = Q(39), {
|
|
634
635
|
id: t,
|
|
635
636
|
filterFn: r,
|
|
@@ -640,15 +641,15 @@ function Tn(n) {
|
|
|
640
641
|
debounceDelay: S
|
|
641
642
|
} = n, o = u === void 0 ? 20 : u, i = S === void 0 ? Rt : S, l = le(null), a = le(null), {
|
|
642
643
|
enabled: d,
|
|
643
|
-
searchText:
|
|
644
|
+
searchText: m
|
|
644
645
|
} = ne(t, Dt), f = le(d), h = r ?? zt;
|
|
645
|
-
let
|
|
646
|
-
e[0] !== t ? (
|
|
646
|
+
let g;
|
|
647
|
+
e[0] !== t ? (g = (Z) => {
|
|
647
648
|
p.setWidget(t, {
|
|
648
649
|
searchText: Z
|
|
649
650
|
});
|
|
650
|
-
}, e[0] = t, e[1] =
|
|
651
|
-
const I =
|
|
651
|
+
}, e[0] = t, e[1] = g) : g = e[1];
|
|
652
|
+
const I = g;
|
|
652
653
|
let s, w;
|
|
653
654
|
e[2] !== h || e[3] !== t || e[4] !== o ? (s = () => (p.registerTool(t, {
|
|
654
655
|
id: be,
|
|
@@ -696,14 +697,14 @@ function Tn(n) {
|
|
|
696
697
|
let U;
|
|
697
698
|
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ x(xe, { position: "start", children: /* @__PURE__ */ x(ze, {}) }), e[25] = U) : U = e[25];
|
|
698
699
|
let j;
|
|
699
|
-
e[26] !== C || e[27] !== W || e[28] !== M || e[29] !==
|
|
700
|
+
e[26] !== C || e[27] !== W || e[28] !== M || e[29] !== m ? (j = m ? /* @__PURE__ */ x(xe, { position: "end", children: /* @__PURE__ */ x(ee, { size: "small", "aria-label": W, onClick: M, edge: "end", children: C ?? /* @__PURE__ */ x(Qe, { fontSize: "small" }) }) }) : null, e[26] = C, e[27] = W, e[28] = M, e[29] = m, e[30] = j) : j = e[30];
|
|
700
701
|
let $;
|
|
701
702
|
e[31] !== j ? ($ = {
|
|
702
703
|
startAdornment: U,
|
|
703
704
|
endAdornment: j
|
|
704
705
|
}, e[31] = j, e[32] = $) : $ = e[32];
|
|
705
706
|
let G;
|
|
706
|
-
return e[33] !== b || e[34] !== _ || e[35] !== A || e[36] !==
|
|
707
|
+
return e[33] !== b || e[34] !== _ || e[35] !== A || e[36] !== m || e[37] !== $ ? (G = /* @__PURE__ */ x(Ze, { inputRef: l, size: "small", fullWidth: !0, variant: "filled", placeholder: A, value: m, onChange: _, InputProps: $, ...b }), e[33] = b, e[34] = _, e[35] = A, e[36] = m, e[37] = $, e[38] = G) : G = e[38], G;
|
|
707
708
|
}
|
|
708
709
|
function Dt(n) {
|
|
709
710
|
return {
|
|
@@ -716,7 +717,7 @@ const zt = (n, e) => {
|
|
|
716
717
|
const t = e.toLowerCase();
|
|
717
718
|
return Promise.resolve(n.map((r) => r.filter((u) => Object.values(u).some((c) => String(c).toLowerCase().includes(t)))));
|
|
718
719
|
};
|
|
719
|
-
function
|
|
720
|
+
function En(n) {
|
|
720
721
|
const e = Q(18), {
|
|
721
722
|
id: t,
|
|
722
723
|
defaultEnabled: r,
|
|
@@ -738,13 +739,13 @@ function _n(n) {
|
|
|
738
739
|
isSearchEnabled: !o
|
|
739
740
|
});
|
|
740
741
|
}, e[4] = t, e[5] = o, e[6] = a) : a = e[6];
|
|
741
|
-
const d = a,
|
|
742
|
+
const d = a, m = o ? u?.disable ?? "Disable search" : u?.enable ?? "Enable search", f = u?.ariaLabel ?? m;
|
|
742
743
|
let h;
|
|
743
744
|
e[7] !== c ? (h = c ?? /* @__PURE__ */ x(ze, { fontSize: "small" }), e[7] = c, e[8] = h) : h = e[8];
|
|
744
|
-
let
|
|
745
|
-
e[9] !== b || e[10] !== f || e[11] !== d || e[12] !== o || e[13] !== h ? (
|
|
745
|
+
let g;
|
|
746
|
+
e[9] !== b || e[10] !== f || e[11] !== d || e[12] !== o || e[13] !== h ? (g = /* @__PURE__ */ x(ee, { size: "small", "aria-label": f, onClick: d, sx: se.trigger, "data-active": o, ...b, children: h }), e[9] = b, e[10] = f, e[11] = d, e[12] = o, e[13] = h, e[14] = g) : g = e[14];
|
|
746
747
|
let I;
|
|
747
|
-
return e[15] !==
|
|
748
|
+
return e[15] !== g || e[16] !== m ? (I = /* @__PURE__ */ x(re, { title: m, children: g }), e[15] = g, e[16] = m, e[17] = I) : I = e[17], I;
|
|
748
749
|
}
|
|
749
750
|
function Ot(n) {
|
|
750
751
|
return {
|
|
@@ -773,7 +774,7 @@ function At(n) {
|
|
|
773
774
|
isDragging: o
|
|
774
775
|
} = at(r);
|
|
775
776
|
let i;
|
|
776
|
-
e[2] !== C ? (i =
|
|
777
|
+
e[2] !== C ? (i = gt.Transform.toString(C ? {
|
|
777
778
|
...C,
|
|
778
779
|
x: 0
|
|
779
780
|
} : null), e[2] = C, e[3] = i) : i = e[3];
|
|
@@ -785,7 +786,7 @@ function At(n) {
|
|
|
785
786
|
opacity: l,
|
|
786
787
|
cursor: a
|
|
787
788
|
}, e[4] = i, e[5] = l, e[6] = a, e[7] = S, e[8] = d) : d = e[8];
|
|
788
|
-
const
|
|
789
|
+
const m = d;
|
|
789
790
|
let f;
|
|
790
791
|
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
791
792
|
"&:focus-visible": {
|
|
@@ -795,14 +796,14 @@ function At(n) {
|
|
|
795
796
|
}, e[9] = f) : f = e[9];
|
|
796
797
|
let h;
|
|
797
798
|
e[10] !== t.label ? (h = /* @__PURE__ */ x(Pe, { children: t.label }), e[10] = t.label, e[11] = h) : h = e[11];
|
|
798
|
-
let
|
|
799
|
-
return e[12] !== u || e[13] !== c || e[14] !== b || e[15] !==
|
|
799
|
+
let g;
|
|
800
|
+
return e[12] !== u || e[13] !== c || e[14] !== b || e[15] !== m || e[16] !== h ? (g = /* @__PURE__ */ x(we, { ref: b, style: m, ...u, ...c, role: "menuitem", tabIndex: 0, sx: f, children: h }), e[12] = u, e[13] = c, e[14] = b, e[15] = m, e[16] = h, e[17] = g) : g = e[17], g;
|
|
800
801
|
}
|
|
801
802
|
function Bt(n) {
|
|
802
803
|
return `2px solid ${n.palette.primary.main}`;
|
|
803
804
|
}
|
|
804
805
|
const Ee = "change-column";
|
|
805
|
-
function
|
|
806
|
+
function Cn(n) {
|
|
806
807
|
const e = Q(46), {
|
|
807
808
|
id: t,
|
|
808
809
|
labels: r,
|
|
@@ -839,17 +840,17 @@ function En(n) {
|
|
|
839
840
|
coordinateGetter: dt
|
|
840
841
|
}, e[2] = a) : a = e[2];
|
|
841
842
|
const d = lt(ye(rt), ye(it, a));
|
|
842
|
-
let
|
|
843
|
-
e[3] !== o ? (
|
|
844
|
-
const f =
|
|
845
|
-
let h,
|
|
843
|
+
let m;
|
|
844
|
+
e[3] !== o ? (m = o?.map(Ft) ?? [], e[3] = o, e[4] = m) : m = e[4];
|
|
845
|
+
const f = m;
|
|
846
|
+
let h, g;
|
|
846
847
|
e[5] !== t || e[6] !== l ? (h = () => (p.registerTool(t, {
|
|
847
848
|
id: Ee,
|
|
848
849
|
type: "config",
|
|
849
850
|
order: 100,
|
|
850
851
|
enabled: !0,
|
|
851
852
|
fn: l
|
|
852
|
-
}), () => p.unregisterTool(t, Ee)),
|
|
853
|
+
}), () => p.unregisterTool(t, Ee)), g = [t, l], e[5] = t, e[6] = l, e[7] = h, e[8] = g) : (h = e[7], g = e[8]), H(h, g);
|
|
853
854
|
let I;
|
|
854
855
|
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (N) => {
|
|
855
856
|
N.stopPropagation(), S(N.currentTarget);
|
|
@@ -903,7 +904,7 @@ function En(n) {
|
|
|
903
904
|
let U;
|
|
904
905
|
e[29] !== o ? (U = o.map(Wt), e[29] = o, e[30] = U) : U = e[30];
|
|
905
906
|
let j;
|
|
906
|
-
e[31] !== f || e[32] !== U ? (j = /* @__PURE__ */ x(ft, { items: f, strategy:
|
|
907
|
+
e[31] !== f || e[32] !== U ? (j = /* @__PURE__ */ x(ft, { items: f, strategy: mt, children: U }), e[31] = f, e[32] = U, e[33] = j) : j = e[33];
|
|
907
908
|
let $;
|
|
908
909
|
e[34] !== b || e[35] !== C || e[36] !== E || e[37] !== j ? ($ = /* @__PURE__ */ x(Re, { id: "change-column-menu", anchorEl: C, open: E, onClose: L, anchorOrigin: M, transformOrigin: A, slotProps: W, ...b, children: j }), e[34] = b, e[35] = C, e[36] = E, e[37] = j, e[38] = $) : $ = e[38];
|
|
909
910
|
let G;
|
|
@@ -1012,7 +1013,7 @@ function Xt(n) {
|
|
|
1012
1013
|
const o = ve(C, S, Kt);
|
|
1013
1014
|
let i;
|
|
1014
1015
|
e[2] !== t ? (i = () => p.getWidget(t)?.instance?.current ?? null, e[2] = t, e[3] = i) : i = e[3];
|
|
1015
|
-
const l = ve(C, i, Yt), a = le(null), d = le(null),
|
|
1016
|
+
const l = ve(C, i, Yt), a = le(null), d = le(null), m = le(null), [f, h] = ie(ke), [g, I] = ie(null), [s, w] = ie(null);
|
|
1016
1017
|
let L, P;
|
|
1017
1018
|
e[4] !== o || e[5] !== t ? (L = () => {
|
|
1018
1019
|
if (!o)
|
|
@@ -1063,7 +1064,7 @@ function Xt(n) {
|
|
|
1063
1064
|
const B = a.current;
|
|
1064
1065
|
if (!B)
|
|
1065
1066
|
return;
|
|
1066
|
-
y.preventDefault(), B.setPointerCapture(y.pointerId),
|
|
1067
|
+
y.preventDefault(), B.setPointerCapture(y.pointerId), m.current = y.pointerId, l?.dispatchAction({
|
|
1067
1068
|
type: "hideTip"
|
|
1068
1069
|
});
|
|
1069
1070
|
const F = o.getBoundingClientRect(), V = Se(y.clientX - F.left, s);
|
|
@@ -1075,7 +1076,7 @@ function Xt(n) {
|
|
|
1075
1076
|
const R = E;
|
|
1076
1077
|
let k;
|
|
1077
1078
|
e[18] !== o || e[19] !== l || e[20] !== s ? (k = (y) => {
|
|
1078
|
-
if (
|
|
1079
|
+
if (m.current === null) {
|
|
1079
1080
|
if (l && o) {
|
|
1080
1081
|
const X = o.getBoundingClientRect();
|
|
1081
1082
|
l.dispatchAction({
|
|
@@ -1086,7 +1087,7 @@ function Xt(n) {
|
|
|
1086
1087
|
}
|
|
1087
1088
|
return;
|
|
1088
1089
|
}
|
|
1089
|
-
if (
|
|
1090
|
+
if (m.current !== y.pointerId)
|
|
1090
1091
|
return;
|
|
1091
1092
|
const B = d.current;
|
|
1092
1093
|
if (B === null || !o || !s)
|
|
@@ -1100,17 +1101,17 @@ function Xt(n) {
|
|
|
1100
1101
|
const v = k;
|
|
1101
1102
|
let T;
|
|
1102
1103
|
e[22] !== l ? (T = () => {
|
|
1103
|
-
|
|
1104
|
+
m.current === null && l?.dispatchAction({
|
|
1104
1105
|
type: "hideTip"
|
|
1105
1106
|
});
|
|
1106
1107
|
}, e[22] = l, e[23] = T) : T = e[23];
|
|
1107
1108
|
const _ = T;
|
|
1108
1109
|
let z;
|
|
1109
1110
|
e[24] !== o || e[25] !== b || e[26] !== t || e[27] !== l || e[28] !== r || e[29] !== s || e[30] !== c ? (z = (y) => {
|
|
1110
|
-
if (
|
|
1111
|
+
if (m.current !== y.pointerId)
|
|
1111
1112
|
return;
|
|
1112
1113
|
const B = d.current, F = a.current;
|
|
1113
|
-
if (
|
|
1114
|
+
if (m.current = null, d.current = null, I(null), B === null || !F || !l || !o || !s)
|
|
1114
1115
|
return;
|
|
1115
1116
|
try {
|
|
1116
1117
|
F.releasePointerCapture(y.pointerId);
|
|
@@ -1129,13 +1130,13 @@ function Xt(n) {
|
|
|
1129
1130
|
const ce = {
|
|
1130
1131
|
xStart: Y,
|
|
1131
1132
|
xEnd: J
|
|
1132
|
-
}, fe = r ? [...c, ce] : [ce],
|
|
1133
|
+
}, fe = r ? [...c, ce] : [ce], me = {
|
|
1133
1134
|
dataIndex: Zt(fe, b),
|
|
1134
1135
|
seriesIndex: 0
|
|
1135
1136
|
};
|
|
1136
1137
|
p.setWidget(t, {
|
|
1137
1138
|
brushRects: fe,
|
|
1138
|
-
brushSelection:
|
|
1139
|
+
brushSelection: me,
|
|
1139
1140
|
...r ? {} : {
|
|
1140
1141
|
brush: !1
|
|
1141
1142
|
}
|
|
@@ -1176,13 +1177,13 @@ function Xt(n) {
|
|
|
1176
1177
|
height: s.height
|
|
1177
1178
|
} }, `${y.left}-${y.right}-${B}`)), e[42] = s, e[43] = f, e[44] = G) : G = e[44];
|
|
1178
1179
|
let Z;
|
|
1179
|
-
e[45] !==
|
|
1180
|
+
e[45] !== g || e[46] !== s ? (Z = s && g && /* @__PURE__ */ x("div", { style: {
|
|
1180
1181
|
...Le.rectPreview,
|
|
1181
|
-
left:
|
|
1182
|
-
width: Math.max(0,
|
|
1182
|
+
left: g.left,
|
|
1183
|
+
width: Math.max(0, g.right - g.left),
|
|
1183
1184
|
top: s.y,
|
|
1184
1185
|
height: s.height
|
|
1185
|
-
} }), e[45] =
|
|
1186
|
+
} }), e[45] = g, e[46] = s, e[47] = Z) : Z = e[47];
|
|
1186
1187
|
let N;
|
|
1187
1188
|
e[48] !== $ || e[49] !== G || e[50] !== Z ? (N = /* @__PURE__ */ oe("div", { style: W, children: [
|
|
1188
1189
|
$,
|
|
@@ -1212,8 +1213,8 @@ function Jt(n) {
|
|
|
1212
1213
|
function Se(n, e) {
|
|
1213
1214
|
return Math.max(e.x, Math.min(e.x + e.width, n));
|
|
1214
1215
|
}
|
|
1215
|
-
const
|
|
1216
|
-
function
|
|
1216
|
+
const Ln = "brush-toggle";
|
|
1217
|
+
function kn(n) {
|
|
1217
1218
|
const e = Q(35), {
|
|
1218
1219
|
id: t,
|
|
1219
1220
|
onBrushSelected: r,
|
|
@@ -1236,12 +1237,12 @@ function Ln(n) {
|
|
|
1236
1237
|
brush: a,
|
|
1237
1238
|
selection: d
|
|
1238
1239
|
} = ne(t, l);
|
|
1239
|
-
let
|
|
1240
|
-
e[2] !== i || e[3] !== t ? (
|
|
1240
|
+
let m, f;
|
|
1241
|
+
e[2] !== i || e[3] !== t ? (m = () => {
|
|
1241
1242
|
p.getWidget(t)?.brush === void 0 && p.setWidget(t, {
|
|
1242
1243
|
brush: i
|
|
1243
1244
|
});
|
|
1244
|
-
}, f = [t, i], e[2] = i, e[3] = t, e[4] =
|
|
1245
|
+
}, f = [t, i], e[2] = i, e[3] = t, e[4] = m, e[5] = f) : (m = e[4], f = e[5]), H(m, f);
|
|
1245
1246
|
let h;
|
|
1246
1247
|
e[6] !== a || e[7] !== t || e[8] !== r ? (h = () => {
|
|
1247
1248
|
a ? p.setWidget(t, {
|
|
@@ -1258,7 +1259,7 @@ function Ln(n) {
|
|
|
1258
1259
|
seriesIndex: 0
|
|
1259
1260
|
}));
|
|
1260
1261
|
}, e[6] = a, e[7] = t, e[8] = r, e[9] = h) : h = e[9];
|
|
1261
|
-
const
|
|
1262
|
+
const g = h, I = le(void 0);
|
|
1262
1263
|
let s, w;
|
|
1263
1264
|
e[10] !== r || e[11] !== d ? (s = () => {
|
|
1264
1265
|
d && I.current !== d && (I.current = d, r?.(d));
|
|
@@ -1280,7 +1281,7 @@ function Ln(n) {
|
|
|
1280
1281
|
let k;
|
|
1281
1282
|
e[18] !== S ? (k = S ?? /* @__PURE__ */ x(et, {}), e[18] = S, e[19] = k) : k = e[19];
|
|
1282
1283
|
let v;
|
|
1283
|
-
e[20] !== o || e[21] !== a || e[22] !==
|
|
1284
|
+
e[20] !== o || e[21] !== a || e[22] !== g || e[23] !== R || e[24] !== k ? (v = /* @__PURE__ */ x(ee, { size: "small", "aria-label": R, onClick: g, sx: Ce.trigger, "data-active": a, ...o, children: k }), e[20] = o, e[21] = a, e[22] = g, e[23] = R, e[24] = k, e[25] = v) : v = e[25];
|
|
1284
1285
|
let T;
|
|
1285
1286
|
e[26] !== v || e[27] !== E ? (T = /* @__PURE__ */ x(De, { sx: Ce.container, children: /* @__PURE__ */ x(re, { title: E, children: v }) }), e[26] = v, e[27] = E, e[28] = T) : T = e[28];
|
|
1286
1287
|
let _;
|
|
@@ -1292,25 +1293,25 @@ function Ln(n) {
|
|
|
1292
1293
|
] }), e[32] = T, e[33] = _, e[34] = z) : z = e[34], z;
|
|
1293
1294
|
}
|
|
1294
1295
|
export {
|
|
1295
|
-
|
|
1296
|
-
|
|
1296
|
+
Ln as BRUSH_TOGGLE_TOOL_ID,
|
|
1297
|
+
kn as BrushToggle,
|
|
1297
1298
|
Ee as CHANGE_COLUMN_TOOL_ID,
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1299
|
+
Cn as ChangeColumn,
|
|
1300
|
+
xn as Download,
|
|
1301
|
+
Sn as FullScreen,
|
|
1301
1302
|
de as LOCK_SELECTION_TOOL_ID,
|
|
1302
|
-
|
|
1303
|
+
Tn as LockSelection,
|
|
1303
1304
|
Te as RELATIVE_DATA_CONFIG_TOOL_ID,
|
|
1304
|
-
|
|
1305
|
-
|
|
1305
|
+
ge as RELATIVE_DATA_TOOL_ID,
|
|
1306
|
+
vn as RelativeData,
|
|
1306
1307
|
be as SEARCHER_TOOL_ID,
|
|
1307
1308
|
pe as STACK_TOGGLE_TOOL_ID,
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1309
|
+
_n as Searcher,
|
|
1310
|
+
En as SearcherToggle,
|
|
1311
|
+
In as StackToggle,
|
|
1311
1312
|
he as ZOOM_TOGGLE_TOOL_ID,
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1313
|
+
yn as ZoomToggle,
|
|
1314
|
+
Rn as downloadToCSV,
|
|
1315
|
+
Dn as downloadToPNG
|
|
1315
1316
|
};
|
|
1316
1317
|
//# sourceMappingURL=actions.js.map
|