@carto/ps-react-ui 4.9.1 → 4.11.1
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-DjjwoPt1.js +1143 -0
- package/dist/change-column-DjjwoPt1.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-CkVnm6ej.js} +3 -3
- package/dist/{data-zoom-layout-0QSptXG_.js.map → data-zoom-layout-CkVnm6ej.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/{png-item-CS4z1iSH.js → png-item-BE9uEqlD.js} +2 -2
- package/dist/png-item-BE9uEqlD.js.map +1 -0
- package/dist/{spread-Y9R1f5dm.js → spread-DYNpzgh_.js} +10 -11
- package/dist/{spread-Y9R1f5dm.js.map → spread-DYNpzgh_.js.map} +1 -1
- package/dist/{table-CQCAnDLb.js → table-C9IMbTr0.js} +50 -53
- package/dist/table-C9IMbTr0.js.map +1 -0
- 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 +9 -10
- package/dist/widgets-v2/bar.js.map +1 -1
- package/dist/widgets-v2/category.js +25 -26
- package/dist/widgets-v2/category.js.map +1 -1
- package/dist/widgets-v2/formula.js +3 -3
- package/dist/widgets-v2/histogram.js +11 -13
- package/dist/widgets-v2/histogram.js.map +1 -1
- package/dist/widgets-v2/markdown.js +26 -27
- package/dist/widgets-v2/markdown.js.map +1 -1
- package/dist/widgets-v2/pie.js +8 -10
- package/dist/widgets-v2/pie.js.map +1 -1
- package/dist/widgets-v2/scatterplot.js +10 -12
- package/dist/widgets-v2/scatterplot.js.map +1 -1
- package/dist/widgets-v2/spread.js +15 -16
- package/dist/widgets-v2/spread.js.map +1 -1
- package/dist/widgets-v2/table.js +39 -40
- package/dist/widgets-v2/table.js.map +1 -1
- package/dist/widgets-v2/timeseries.js +9 -11
- package/dist/widgets-v2/timeseries.js.map +1 -1
- package/dist/widgets-v2/utils.js +1 -1
- package/dist/widgets-v2.js +284 -282
- package/dist/widgets-v2.js.map +1 -1
- package/package.json +5 -1
- 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/brush-toggle/brush-toggle.tsx +1 -1
- package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +1 -1
- package/src/widgets-v2/actions/download/download.tsx +1 -1
- package/src/widgets-v2/actions/download/icons.tsx +1 -1
- package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +3 -3
- package/src/widgets-v2/actions/index.ts +8 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +2 -2
- package/src/widgets-v2/actions/relative-data/relative-data.tsx +1 -1
- package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +1 -1
- package/src/widgets-v2/actions/searcher/searcher.tsx +2 -2
- 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/actions/stack-toggle/stack-toggle.tsx +1 -1
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +1 -1
- 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/src/widgets-v2/table/table-ui.tsx +4 -4
- package/src/widgets-v2/toolbox/toolbox.tsx +1 -1
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +1 -1
- 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
- package/dist/png-item-CS4z1iSH.js.map +0 -1
- package/dist/table-CQCAnDLb.js.map +0 -1
package/dist/widgets-v2.js
CHANGED
|
@@ -1,32 +1,30 @@
|
|
|
1
1
|
import { jsx as a, jsxs as G, Fragment as re } from "react/jsx-runtime";
|
|
2
2
|
import { c as T } from "react/compiler-runtime";
|
|
3
|
-
import { useState as V, useLayoutEffect as
|
|
4
|
-
import { W as Se, u as
|
|
3
|
+
import { useState as V, useLayoutEffect as ee, Children as ae, isValidElement as ce, Component as be, useEffect as de, useRef as ve } from "react";
|
|
4
|
+
import { W as Se, u as pe } from "./widget-context-DTGO0Yta.js";
|
|
5
5
|
import { j as we, i as Ee, e as Ce, n as Te, r as ke, q as _e, v as Ie, u as Ae, s as Le } from "./widget-store-registry-_W4Z4xp-.js";
|
|
6
6
|
import "zustand";
|
|
7
|
-
import { Box as
|
|
8
|
-
import ze from "@mui/icons-material
|
|
9
|
-
import { S as
|
|
10
|
-
import { createPortal as
|
|
11
|
-
import Ge from "@mui/icons-material/Close";
|
|
7
|
+
import { Box as W, LinearProgress as We, Typography as X, AccordionSummary as $e, AccordionDetails as De, Accordion as Fe, AlertTitle as Be, Alert as Oe, Button as Me, IconButton as Re, Divider as Pe, Popper as Ue, Grow as Ne, Paper as je, Link as fe } from "@mui/material";
|
|
8
|
+
import { ExpandMore as ze, Close as He } from "@mui/icons-material";
|
|
9
|
+
import { S as Ve } from "./smart-tooltip-D4vwQpFf.js";
|
|
10
|
+
import { createPortal as Ge } from "react-dom";
|
|
12
11
|
import { WidgetOptions as qe } from "@carto/meridian-ds/custom-icons";
|
|
13
12
|
import "./lasso-tool-CDFj4zKY.js";
|
|
14
13
|
import "./cjs-D4KH3azB.js";
|
|
15
14
|
import { T as Xe } from "./tooltip-BDnrRKrp.js";
|
|
16
|
-
import "@
|
|
15
|
+
import "@carto/ps-utils";
|
|
17
16
|
import { o as Ze, a as Ke, E as Ye } from "./echart-CU0KmClP.js";
|
|
18
|
-
import { D as
|
|
17
|
+
import { D as Wn } from "./echart-CU0KmClP.js";
|
|
19
18
|
import { a as Je, b as Qe, M as et } from "./markdown-BD1jcknS.js";
|
|
20
|
-
import { C as tt, L as nt, F as ot,
|
|
19
|
+
import { C as tt, L as nt, F as ot, j as rt, R as it, B as lt, Z as st, m as at, n as ct, l as dt, k as pt } from "./change-column-DjjwoPt1.js";
|
|
21
20
|
import "html2canvas";
|
|
22
|
-
import "
|
|
23
|
-
import { a as ft, F as pt } from "./formula-DuC0NQLH.js";
|
|
21
|
+
import { a as ft, F as mt } from "./formula-DuC0NQLH.js";
|
|
24
22
|
import "react-markdown";
|
|
25
|
-
import { b as ut, a as
|
|
26
|
-
import { a as
|
|
27
|
-
import { f as
|
|
28
|
-
import { c as
|
|
29
|
-
function
|
|
23
|
+
import { b as ut, a as gt } from "./spread-DYNpzgh_.js";
|
|
24
|
+
import { a as ht, R as yt } from "./range-l4fNHLEg.js";
|
|
25
|
+
import { f as xt, C as bt } from "./category-Dnd2_j0x.js";
|
|
26
|
+
import { c as vt, T as St } from "./table-C9IMbTr0.js";
|
|
27
|
+
function wt(t) {
|
|
30
28
|
const e = T(31), {
|
|
31
29
|
id: n,
|
|
32
30
|
data: r,
|
|
@@ -34,12 +32,12 @@ function St(t) {
|
|
|
34
32
|
isFetching: i,
|
|
35
33
|
error: s,
|
|
36
34
|
formatter: c,
|
|
37
|
-
labelFormatter:
|
|
38
|
-
keepAlive:
|
|
39
|
-
children:
|
|
40
|
-
} = t,
|
|
35
|
+
labelFormatter: f,
|
|
36
|
+
keepAlive: u,
|
|
37
|
+
children: m
|
|
38
|
+
} = t, p = u === void 0 ? !1 : u;
|
|
41
39
|
let g;
|
|
42
|
-
e[0] !== r || e[1] !== s || e[2] !== c || e[3] !== n || e[4] !== i || e[5] !== o || e[6] !==
|
|
40
|
+
e[0] !== r || e[1] !== s || e[2] !== c || e[3] !== n || e[4] !== i || e[5] !== o || e[6] !== f ? (g = () => {
|
|
43
41
|
if (we(n))
|
|
44
42
|
return Ee(n);
|
|
45
43
|
const E = Ce(n, {
|
|
@@ -48,41 +46,41 @@ function St(t) {
|
|
|
48
46
|
isFetching: i,
|
|
49
47
|
error: s,
|
|
50
48
|
formatter: c,
|
|
51
|
-
labelFormatter:
|
|
49
|
+
labelFormatter: f
|
|
52
50
|
});
|
|
53
51
|
return Te(n, E), E;
|
|
54
|
-
}, e[0] = r, e[1] = s, e[2] = c, e[3] = n, e[4] = i, e[5] = o, e[6] =
|
|
52
|
+
}, e[0] = r, e[1] = s, e[2] = c, e[3] = n, e[4] = i, e[5] = o, e[6] = f, e[7] = g) : g = e[7];
|
|
55
53
|
const [l] = V(g);
|
|
56
54
|
let d, h;
|
|
57
|
-
e[8] !== n || e[9] !==
|
|
55
|
+
e[8] !== n || e[9] !== p || e[10] !== l ? (d = () => (ke(n, l), () => {
|
|
58
56
|
_e(n, {
|
|
59
|
-
keepAlive:
|
|
57
|
+
keepAlive: p
|
|
60
58
|
});
|
|
61
|
-
}), h = [n, l,
|
|
62
|
-
let
|
|
63
|
-
e[13] !== r || e[14] !== l ? (
|
|
59
|
+
}), h = [n, l, p], e[8] = n, e[9] = p, e[10] = l, e[11] = d, e[12] = h) : (d = e[11], h = e[12]), ee(d, h);
|
|
60
|
+
let y, x;
|
|
61
|
+
e[13] !== r || e[14] !== l ? (y = () => {
|
|
64
62
|
l.setState({
|
|
65
63
|
rawData: r
|
|
66
64
|
});
|
|
67
|
-
},
|
|
68
|
-
let
|
|
69
|
-
e[17] !== s || e[18] !== i || e[19] !== o || e[20] !== l ? (
|
|
65
|
+
}, x = [l, r], e[13] = r, e[14] = l, e[15] = y, e[16] = x) : (y = e[15], x = e[16]), ee(y, x);
|
|
66
|
+
let b, w;
|
|
67
|
+
e[17] !== s || e[18] !== i || e[19] !== o || e[20] !== l ? (b = () => {
|
|
70
68
|
l.setState({
|
|
71
69
|
isLoading: o ?? !1,
|
|
72
70
|
isFetching: i ?? !1,
|
|
73
71
|
error: s
|
|
74
72
|
});
|
|
75
|
-
}, w = [l, o, i, s], e[17] = s, e[18] = i, e[19] = o, e[20] = l, e[21] =
|
|
76
|
-
let
|
|
77
|
-
e[23] !== c || e[24] !==
|
|
73
|
+
}, w = [l, o, i, s], e[17] = s, e[18] = i, e[19] = o, e[20] = l, e[21] = b, e[22] = w) : (b = e[21], w = e[22]), ee(b, w);
|
|
74
|
+
let k, _;
|
|
75
|
+
e[23] !== c || e[24] !== f || e[25] !== l ? (_ = () => {
|
|
78
76
|
l.setState({
|
|
79
77
|
rawFormatter: c,
|
|
80
78
|
formatter: c,
|
|
81
|
-
labelFormatter:
|
|
79
|
+
labelFormatter: f
|
|
82
80
|
});
|
|
83
|
-
},
|
|
84
|
-
let
|
|
85
|
-
return e[28] !==
|
|
81
|
+
}, k = [l, c, f], e[23] = c, e[24] = f, e[25] = l, e[26] = k, e[27] = _) : (k = e[26], _ = e[27]), ee(_, k);
|
|
82
|
+
let A;
|
|
83
|
+
return e[28] !== m || e[29] !== n ? (A = /* @__PURE__ */ a(Se.Provider, { value: n, children: m }), e[28] = m, e[29] = n, e[30] = A) : A = e[30], A;
|
|
86
84
|
}
|
|
87
85
|
const j = {
|
|
88
86
|
root: {
|
|
@@ -230,7 +228,7 @@ const j = {
|
|
|
230
228
|
pt: 1
|
|
231
229
|
}
|
|
232
230
|
};
|
|
233
|
-
function
|
|
231
|
+
function me(t) {
|
|
234
232
|
const e = T(5), {
|
|
235
233
|
sx: n,
|
|
236
234
|
children: r
|
|
@@ -241,12 +239,12 @@ function ue(t) {
|
|
|
241
239
|
...n
|
|
242
240
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
243
241
|
let i;
|
|
244
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
242
|
+
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { className: "widget-wrapper-actions", onClick: Et, sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
|
|
245
243
|
}
|
|
246
|
-
function
|
|
244
|
+
function Et(t) {
|
|
247
245
|
return t.stopPropagation();
|
|
248
246
|
}
|
|
249
|
-
function
|
|
247
|
+
function ue(t) {
|
|
250
248
|
const e = T(5), {
|
|
251
249
|
sx: n,
|
|
252
250
|
children: r
|
|
@@ -257,17 +255,17 @@ function me(t) {
|
|
|
257
255
|
...n
|
|
258
256
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
259
257
|
let i;
|
|
260
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
258
|
+
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { onClick: Ct, sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
|
|
261
259
|
}
|
|
262
|
-
function
|
|
260
|
+
function Ct(t) {
|
|
263
261
|
return t.stopPropagation();
|
|
264
262
|
}
|
|
265
|
-
const
|
|
263
|
+
const Tt = {
|
|
266
264
|
collapse: "Collapse",
|
|
267
265
|
expand: "Expand",
|
|
268
266
|
errorFallbackTitle: "Widget failed to render"
|
|
269
267
|
};
|
|
270
|
-
function
|
|
268
|
+
function kt(t) {
|
|
271
269
|
const e = T(35), {
|
|
272
270
|
title: n,
|
|
273
271
|
collapsed: r,
|
|
@@ -275,69 +273,69 @@ function Tt(t) {
|
|
|
275
273
|
defaultCollapsed: i,
|
|
276
274
|
disabled: s,
|
|
277
275
|
variant: c,
|
|
278
|
-
labels:
|
|
279
|
-
expandIcon:
|
|
280
|
-
iconProps:
|
|
281
|
-
sx:
|
|
276
|
+
labels: f,
|
|
277
|
+
expandIcon: u,
|
|
278
|
+
iconProps: m,
|
|
279
|
+
sx: p,
|
|
282
280
|
children: g
|
|
283
|
-
} = t, l = i === void 0 ? !1 : i, d = s === void 0 ? !1 : s, h = c === void 0 ? "elevation" : c,
|
|
281
|
+
} = t, l = i === void 0 ? !1 : i, d = s === void 0 ? !1 : s, h = c === void 0 ? "elevation" : c, y = u === void 0 ? ze : u, x = pe(), b = Ie(x, _t), w = r !== void 0, [k, _] = V(l), A = w ? r : k;
|
|
284
282
|
let E;
|
|
285
283
|
e[0] !== o ? (E = (H, N) => {
|
|
286
|
-
const
|
|
287
|
-
o?.(
|
|
284
|
+
const K = !N;
|
|
285
|
+
o?.(K), _(K);
|
|
288
286
|
}, e[0] = o, e[1] = E) : E = e[1];
|
|
289
287
|
const F = E;
|
|
290
|
-
let
|
|
291
|
-
e[2] !==
|
|
292
|
-
...
|
|
293
|
-
...
|
|
294
|
-
}, e[2] =
|
|
295
|
-
const
|
|
288
|
+
let I;
|
|
289
|
+
e[2] !== f ? (I = {
|
|
290
|
+
...Tt,
|
|
291
|
+
...f
|
|
292
|
+
}, e[2] = f, e[3] = I) : I = e[3];
|
|
293
|
+
const L = I;
|
|
296
294
|
let S;
|
|
297
|
-
e[4] !== g ? (S =
|
|
295
|
+
e[4] !== g ? (S = It(g), e[4] = g, e[5] = S) : S = e[5];
|
|
298
296
|
const {
|
|
299
|
-
summary:
|
|
297
|
+
summary: v,
|
|
300
298
|
details: q
|
|
301
|
-
} = S,
|
|
299
|
+
} = S, te = A ? L.expand : L.collapse, B = A ? "true" : void 0, Z = !A;
|
|
302
300
|
let O;
|
|
303
|
-
e[6] !==
|
|
301
|
+
e[6] !== p ? (O = {
|
|
304
302
|
...j.root,
|
|
305
|
-
...
|
|
306
|
-
}, e[6] =
|
|
303
|
+
...p
|
|
304
|
+
}, e[6] = p, e[7] = O) : O = e[7];
|
|
307
305
|
let M;
|
|
308
|
-
e[8] !==
|
|
306
|
+
e[8] !== b ? (M = b ? /* @__PURE__ */ a(We, { sx: j.loading, color: "primary" }) : null, e[8] = b, e[9] = M) : M = e[9];
|
|
309
307
|
let R;
|
|
310
|
-
e[10] !==
|
|
308
|
+
e[10] !== y || e[11] !== m ? (R = /* @__PURE__ */ a(y, { fontSize: "small", ...m }), e[10] = y, e[11] = m, e[12] = R) : R = e[12];
|
|
311
309
|
let P;
|
|
312
310
|
e[13] !== n ? (P = (H) => {
|
|
313
311
|
const {
|
|
314
312
|
ref: N
|
|
315
313
|
} = H;
|
|
316
|
-
return /* @__PURE__ */ a(
|
|
314
|
+
return /* @__PURE__ */ a(W, { sx: j.titleCell, children: /* @__PURE__ */ a(X, { ref: N, variant: "subtitle1", sx: j.titleText, textTransform: "none", children: n }) });
|
|
317
315
|
}, e[13] = n, e[14] = P) : P = e[14];
|
|
318
316
|
let U;
|
|
319
|
-
e[15] !== P || e[16] !== n ? (U = /* @__PURE__ */ a(
|
|
320
|
-
let W;
|
|
321
|
-
e[18] !== ee || e[19] !== b || e[20] !== R || e[21] !== U ? (W = /* @__PURE__ */ G($e, { expandIcon: R, "aria-label": ee, sx: j.summary, children: [
|
|
322
|
-
U,
|
|
323
|
-
b
|
|
324
|
-
] }), e[18] = ee, e[19] = b, e[20] = R, e[21] = U, e[22] = W) : W = e[22];
|
|
317
|
+
e[15] !== P || e[16] !== n ? (U = /* @__PURE__ */ a(Ve, { title: n, children: P }), e[15] = P, e[16] = n, e[17] = U) : U = e[17];
|
|
325
318
|
let $;
|
|
326
|
-
e[
|
|
319
|
+
e[18] !== te || e[19] !== v || e[20] !== R || e[21] !== U ? ($ = /* @__PURE__ */ G($e, { expandIcon: R, "aria-label": te, sx: j.summary, children: [
|
|
320
|
+
U,
|
|
321
|
+
v
|
|
322
|
+
] }), e[18] = te, e[19] = v, e[20] = R, e[21] = U, e[22] = $) : $ = e[22];
|
|
323
|
+
let D;
|
|
324
|
+
e[23] !== q ? (D = /* @__PURE__ */ a(De, { sx: j.detail, children: q }), e[23] = q, e[24] = D) : D = e[24];
|
|
327
325
|
let z;
|
|
328
|
-
return e[25] !== d || e[26] !== F || e[27] !== O || e[28] !== M || e[29] !==
|
|
326
|
+
return e[25] !== d || e[26] !== F || e[27] !== O || e[28] !== M || e[29] !== $ || e[30] !== D || e[31] !== B || e[32] !== Z || e[33] !== h ? (z = /* @__PURE__ */ G(Fe, { "data-collapsed": B, expanded: Z, onChange: F, disabled: d, disableGutters: !0, elevation: 0, variant: h, square: !0, sx: O, children: [
|
|
329
327
|
M,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
] }), e[25] = d, e[26] = F, e[27] = O, e[28] = M, e[29] =
|
|
328
|
+
$,
|
|
329
|
+
D
|
|
330
|
+
] }), e[25] = d, e[26] = F, e[27] = O, e[28] = M, e[29] = $, e[30] = D, e[31] = B, e[32] = Z, e[33] = h, e[34] = z) : z = e[34], z;
|
|
333
331
|
}
|
|
334
|
-
function
|
|
332
|
+
function _t(t) {
|
|
335
333
|
return t.isFetching;
|
|
336
334
|
}
|
|
337
|
-
function
|
|
335
|
+
function It(t) {
|
|
338
336
|
const e = [], n = [];
|
|
339
337
|
for (const r of ae.toArray(t))
|
|
340
|
-
se(r,
|
|
338
|
+
se(r, me) || se(r, ue) ? e.push(r) : n.push(r);
|
|
341
339
|
return {
|
|
342
340
|
summary: e,
|
|
343
341
|
details: n
|
|
@@ -346,7 +344,7 @@ function _t(t) {
|
|
|
346
344
|
function se(t, e) {
|
|
347
345
|
return ce(t) && t.type === e;
|
|
348
346
|
}
|
|
349
|
-
function
|
|
347
|
+
function At(t) {
|
|
350
348
|
const e = T(5), {
|
|
351
349
|
sx: n,
|
|
352
350
|
children: r
|
|
@@ -357,9 +355,9 @@ function It(t) {
|
|
|
357
355
|
...n
|
|
358
356
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
359
357
|
let i;
|
|
360
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
358
|
+
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { "data-slot": "content", sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
|
|
361
359
|
}
|
|
362
|
-
function
|
|
360
|
+
function Lt(t) {
|
|
363
361
|
const e = T(5), {
|
|
364
362
|
sx: n,
|
|
365
363
|
children: r
|
|
@@ -370,9 +368,9 @@ function At(t) {
|
|
|
370
368
|
...n
|
|
371
369
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
372
370
|
let i;
|
|
373
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
371
|
+
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { "data-slot": "footer", sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
|
|
374
372
|
}
|
|
375
|
-
const
|
|
373
|
+
const Wt = {
|
|
376
374
|
root: {
|
|
377
375
|
display: "grid",
|
|
378
376
|
gridTemplateColumns: "1fr auto",
|
|
@@ -382,18 +380,18 @@ const Lt = {
|
|
|
382
380
|
pb: 1
|
|
383
381
|
}
|
|
384
382
|
};
|
|
385
|
-
function
|
|
383
|
+
function $t(t) {
|
|
386
384
|
const e = T(5), {
|
|
387
385
|
sx: n,
|
|
388
386
|
children: r
|
|
389
387
|
} = t;
|
|
390
388
|
let o;
|
|
391
389
|
e[0] !== n ? (o = {
|
|
392
|
-
...
|
|
390
|
+
...Wt.root,
|
|
393
391
|
...n
|
|
394
392
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
395
393
|
let i;
|
|
396
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
394
|
+
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
|
|
397
395
|
}
|
|
398
396
|
const ge = {
|
|
399
397
|
emptyRoot: {
|
|
@@ -417,54 +415,54 @@ const ge = {
|
|
|
417
415
|
flexDirection: "column",
|
|
418
416
|
flex: 1
|
|
419
417
|
}
|
|
420
|
-
},
|
|
418
|
+
}, Dt = {
|
|
421
419
|
errorTitle: "Something went wrong",
|
|
422
420
|
errorMessage: (t) => t instanceof Error ? t.message : typeof t == "string" ? t : t && typeof t == "object" && "message" in t ? String(t.message) : "Unknown error",
|
|
423
421
|
emptyTitle: "No data",
|
|
424
422
|
emptyDescription: "Try adjusting filters or wait for data to load."
|
|
425
|
-
},
|
|
423
|
+
}, Ft = (t) => ({
|
|
426
424
|
isLoading: t.isLoading,
|
|
427
425
|
isFetching: t.isFetching,
|
|
428
426
|
error: t.error,
|
|
429
427
|
rawData: t.rawData
|
|
430
428
|
});
|
|
431
|
-
function
|
|
429
|
+
function Bt(t) {
|
|
432
430
|
const e = T(17), {
|
|
433
431
|
skeleton: n,
|
|
434
432
|
children: r,
|
|
435
433
|
isEmpty: o,
|
|
436
434
|
fallback: i,
|
|
437
435
|
labels: s
|
|
438
|
-
} = t, c = o === void 0 ?
|
|
439
|
-
let
|
|
440
|
-
e[0] !== s ? (
|
|
441
|
-
|
|
436
|
+
} = t, c = o === void 0 ? Pt : o, f = pe(), u = Ae(f, Ft);
|
|
437
|
+
let m;
|
|
438
|
+
e[0] !== s ? (m = {
|
|
439
|
+
...Dt,
|
|
442
440
|
...s
|
|
443
|
-
}, e[0] = s, e[1] =
|
|
444
|
-
const
|
|
445
|
-
if (
|
|
441
|
+
}, e[0] = s, e[1] = m) : m = e[1];
|
|
442
|
+
const p = m;
|
|
443
|
+
if (u.isLoading) {
|
|
446
444
|
let d;
|
|
447
445
|
return e[2] !== n ? (d = /* @__PURE__ */ a(re, { children: n }), e[2] = n, e[3] = d) : d = e[3], d;
|
|
448
446
|
}
|
|
449
|
-
if (
|
|
447
|
+
if (u.error !== void 0 && u.error !== null) {
|
|
450
448
|
let d;
|
|
451
|
-
if (e[4] !==
|
|
452
|
-
const h =
|
|
453
|
-
d = i ? /* @__PURE__ */ a(re, { children: i(h) }) : /* @__PURE__ */ a(he, { error: h, labels:
|
|
449
|
+
if (e[4] !== p || e[5] !== i || e[6] !== u.error) {
|
|
450
|
+
const h = Ut(u.error);
|
|
451
|
+
d = i ? /* @__PURE__ */ a(re, { children: i(h) }) : /* @__PURE__ */ a(he, { error: h, labels: p }), e[4] = p, e[5] = i, e[6] = u.error, e[7] = d;
|
|
454
452
|
} else
|
|
455
453
|
d = e[7];
|
|
456
454
|
return d;
|
|
457
455
|
}
|
|
458
|
-
if (c(
|
|
456
|
+
if (c(u.rawData)) {
|
|
459
457
|
let d;
|
|
460
|
-
return e[8] !==
|
|
458
|
+
return e[8] !== p ? (d = /* @__PURE__ */ a(Mt, { labels: p }), e[8] = p, e[9] = d) : d = e[9], d;
|
|
461
459
|
}
|
|
462
460
|
let g;
|
|
463
|
-
e[10] !== r || e[11] !==
|
|
461
|
+
e[10] !== r || e[11] !== f ? (g = /* @__PURE__ */ a(Ot, { id: f, children: r }), e[10] = r, e[11] = f, e[12] = g) : g = e[12];
|
|
464
462
|
let l;
|
|
465
|
-
return e[13] !==
|
|
463
|
+
return e[13] !== p || e[14] !== i || e[15] !== g ? (l = /* @__PURE__ */ a(Rt, { fallback: i, labels: p, children: g }), e[13] = p, e[14] = i, e[15] = g, e[16] = l) : l = e[16], l;
|
|
466
464
|
}
|
|
467
|
-
function
|
|
465
|
+
function Ot(t) {
|
|
468
466
|
const e = T(5), {
|
|
469
467
|
id: n,
|
|
470
468
|
children: r
|
|
@@ -473,7 +471,7 @@ function Bt(t) {
|
|
|
473
471
|
e[0] !== n ? (o = (c) => Le(n, c), e[0] = n, e[1] = o) : o = e[1];
|
|
474
472
|
const i = o;
|
|
475
473
|
let s;
|
|
476
|
-
return e[2] !== r || e[3] !== i ? (s = /* @__PURE__ */ a(
|
|
474
|
+
return e[2] !== r || e[3] !== i ? (s = /* @__PURE__ */ a(W, { ref: i, sx: ge.captureBox, children: r }), e[2] = r, e[3] = i, e[4] = s) : s = e[4], s;
|
|
477
475
|
}
|
|
478
476
|
function he(t) {
|
|
479
477
|
const e = T(8), {
|
|
@@ -490,21 +488,21 @@ function he(t) {
|
|
|
490
488
|
i
|
|
491
489
|
] }), e[5] = o, e[6] = i, e[7] = s) : s = e[7], s;
|
|
492
490
|
}
|
|
493
|
-
function
|
|
491
|
+
function Mt(t) {
|
|
494
492
|
const e = T(7), {
|
|
495
493
|
labels: n
|
|
496
494
|
} = t;
|
|
497
495
|
let r;
|
|
498
|
-
e[0] !== n.emptyTitle ? (r = /* @__PURE__ */ a(
|
|
496
|
+
e[0] !== n.emptyTitle ? (r = /* @__PURE__ */ a(X, { variant: "body2", color: "text.primary", children: n.emptyTitle }), e[0] = n.emptyTitle, e[1] = r) : r = e[1];
|
|
499
497
|
let o;
|
|
500
|
-
e[2] !== n.emptyDescription ? (o = /* @__PURE__ */ a(
|
|
498
|
+
e[2] !== n.emptyDescription ? (o = /* @__PURE__ */ a(X, { variant: "caption", color: "text.secondary", children: n.emptyDescription }), e[2] = n.emptyDescription, e[3] = o) : o = e[3];
|
|
501
499
|
let i;
|
|
502
|
-
return e[4] !== r || e[5] !== o ? (i = /* @__PURE__ */ G(
|
|
500
|
+
return e[4] !== r || e[5] !== o ? (i = /* @__PURE__ */ G(W, { sx: ge.emptyRoot, children: [
|
|
503
501
|
r,
|
|
504
502
|
o
|
|
505
503
|
] }), e[4] = r, e[5] = o, e[6] = i) : i = e[6], i;
|
|
506
504
|
}
|
|
507
|
-
class
|
|
505
|
+
class Rt extends be {
|
|
508
506
|
state = {
|
|
509
507
|
error: null
|
|
510
508
|
};
|
|
@@ -530,29 +528,39 @@ class Mt extends be {
|
|
|
530
528
|
return this.props.children;
|
|
531
529
|
}
|
|
532
530
|
}
|
|
533
|
-
function
|
|
531
|
+
function Pt(t) {
|
|
534
532
|
return t == null ? !0 : Array.isArray(t) ? !!(t.length === 0 || t.every((e) => Array.isArray(e) && e.length === 0)) : typeof t == "object" && Object.keys(t).length === 0;
|
|
535
533
|
}
|
|
536
|
-
function
|
|
534
|
+
function Ut(t) {
|
|
537
535
|
return t instanceof Error ? t : typeof t == "string" ? new Error(t) : t && typeof t == "object" && "message" in t ? new Error(String(t.message)) : new Error("Unknown error");
|
|
538
536
|
}
|
|
539
|
-
const
|
|
540
|
-
allSelected: "All selected",
|
|
541
|
-
selections: (t) => `${t} selected`,
|
|
537
|
+
const Nt = {
|
|
542
538
|
clear: "Clear"
|
|
543
|
-
},
|
|
539
|
+
}, Q = {
|
|
544
540
|
root: {
|
|
545
541
|
display: "flex",
|
|
546
542
|
alignItems: "center",
|
|
547
543
|
gap: 0.5,
|
|
548
544
|
minHeight: 24
|
|
549
545
|
},
|
|
550
|
-
|
|
546
|
+
count: {
|
|
547
|
+
display: "inline-flex",
|
|
548
|
+
alignItems: "baseline",
|
|
549
|
+
gap: 0.5
|
|
550
|
+
},
|
|
551
|
+
selected: {
|
|
552
|
+
color: "text.primary",
|
|
553
|
+
fontWeight: 600
|
|
554
|
+
},
|
|
555
|
+
separator: {
|
|
556
|
+
color: "text.secondary"
|
|
557
|
+
},
|
|
558
|
+
total: {
|
|
551
559
|
color: "text.secondary"
|
|
552
560
|
}
|
|
553
561
|
};
|
|
554
|
-
function
|
|
555
|
-
const e = T(
|
|
562
|
+
function jt(t) {
|
|
563
|
+
const e = T(33), {
|
|
556
564
|
count: n,
|
|
557
565
|
total: r,
|
|
558
566
|
onClear: o,
|
|
@@ -560,41 +568,34 @@ function Nt(t) {
|
|
|
560
568
|
icon: s,
|
|
561
569
|
iconProps: c
|
|
562
570
|
} = t;
|
|
563
|
-
if (r
|
|
571
|
+
if (!r)
|
|
564
572
|
return null;
|
|
565
|
-
let
|
|
566
|
-
if (e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== i) {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
] });
|
|
578
|
-
break e;
|
|
579
|
-
}
|
|
580
|
-
m = L, d = te.root, p = Y, f = "caption", g = te.label, l = u.selections(n);
|
|
581
|
-
}
|
|
582
|
-
e[0] = s, e[1] = n, e[2] = c, e[3] = i, e[4] = p, e[5] = m, e[6] = u, e[7] = f, e[8] = g, e[9] = l, e[10] = d, e[11] = h;
|
|
573
|
+
let f, u, m, p, g, l, d, h, y;
|
|
574
|
+
if (e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== i || e[4] !== r) {
|
|
575
|
+
m = {
|
|
576
|
+
...Nt,
|
|
577
|
+
...i
|
|
578
|
+
};
|
|
579
|
+
const k = n === 0 ? r : n;
|
|
580
|
+
u = W, h = Q.root, e[14] !== s || e[15] !== c ? (y = s ? /* @__PURE__ */ a(s, { fontSize: "small", ...c }) : null, e[14] = s, e[15] = c, e[16] = y) : y = e[16], f = W, p = "span", g = Q.count, l = `${k} / ${r}`, d = m.summary ? m.summary(k, r) : /* @__PURE__ */ G(re, { children: [
|
|
581
|
+
/* @__PURE__ */ a(X, { component: "span", variant: "caption", sx: Q.selected, children: k }),
|
|
582
|
+
/* @__PURE__ */ a(X, { component: "span", variant: "caption", sx: Q.separator, children: "/" }),
|
|
583
|
+
/* @__PURE__ */ a(X, { component: "span", variant: "caption", sx: Q.total, children: r })
|
|
584
|
+
] }), e[0] = s, e[1] = n, e[2] = c, e[3] = i, e[4] = r, e[5] = f, e[6] = u, e[7] = m, e[8] = p, e[9] = g, e[10] = l, e[11] = d, e[12] = h, e[13] = y;
|
|
583
585
|
} else
|
|
584
|
-
|
|
585
|
-
if (h !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
586
|
-
return h;
|
|
586
|
+
f = e[5], u = e[6], m = e[7], p = e[8], g = e[9], l = e[10], d = e[11], h = e[12], y = e[13];
|
|
587
587
|
let x;
|
|
588
|
-
e[
|
|
589
|
-
let
|
|
590
|
-
e[
|
|
591
|
-
let
|
|
592
|
-
return e[
|
|
588
|
+
e[17] !== f || e[18] !== p || e[19] !== g || e[20] !== l || e[21] !== d ? (x = /* @__PURE__ */ a(f, { component: p, sx: g, "aria-label": l, children: d }), e[17] = f, e[18] = p, e[19] = g, e[20] = l, e[21] = d, e[22] = x) : x = e[22];
|
|
589
|
+
let b;
|
|
590
|
+
e[23] !== m || e[24] !== n || e[25] !== o ? (b = n > 0 && o && /* @__PURE__ */ a(Me, { size: "small", variant: "text", onClick: o, children: m.clear }), e[23] = m, e[24] = n, e[25] = o, e[26] = b) : b = e[26];
|
|
591
|
+
let w;
|
|
592
|
+
return e[27] !== u || e[28] !== h || e[29] !== y || e[30] !== x || e[31] !== b ? (w = /* @__PURE__ */ G(u, { sx: h, children: [
|
|
593
|
+
y,
|
|
593
594
|
x,
|
|
594
|
-
|
|
595
|
-
] }), e[
|
|
595
|
+
b
|
|
596
|
+
] }), e[27] = u, e[28] = h, e[29] = y, e[30] = x, e[31] = b, e[32] = w) : w = e[32], w;
|
|
596
597
|
}
|
|
597
|
-
const
|
|
598
|
+
const zt = {
|
|
598
599
|
trigger: "More actions",
|
|
599
600
|
close: "Close"
|
|
600
601
|
}, ne = {
|
|
@@ -629,7 +630,7 @@ const jt = {
|
|
|
629
630
|
borderRadius: 0.5
|
|
630
631
|
}
|
|
631
632
|
};
|
|
632
|
-
function
|
|
633
|
+
function Ht(t) {
|
|
633
634
|
const e = T(44), {
|
|
634
635
|
visibleCount: n,
|
|
635
636
|
labels: r,
|
|
@@ -637,72 +638,72 @@ function zt(t) {
|
|
|
637
638
|
iconProps: i,
|
|
638
639
|
direction: s,
|
|
639
640
|
sx: c,
|
|
640
|
-
children:
|
|
641
|
-
} = t,
|
|
642
|
-
let
|
|
643
|
-
e[0] !== r ? (
|
|
644
|
-
...
|
|
641
|
+
children: f
|
|
642
|
+
} = t, u = o === void 0 ? qe : o, m = s === void 0 ? "right" : s;
|
|
643
|
+
let p;
|
|
644
|
+
e[0] !== r ? (p = {
|
|
645
|
+
...zt,
|
|
645
646
|
...r
|
|
646
|
-
}, e[0] = r, e[1] =
|
|
647
|
-
const g =
|
|
648
|
-
let
|
|
649
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
650
|
-
const
|
|
647
|
+
}, e[0] = r, e[1] = p) : p = e[1];
|
|
648
|
+
const g = p, [l, d] = V(!1), [h, y] = V(null), [x, b] = V(null), [w, k] = V(null);
|
|
649
|
+
let _;
|
|
650
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = () => d(Xt), e[2] = _) : _ = e[2];
|
|
651
|
+
const A = _;
|
|
651
652
|
let E;
|
|
652
653
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (C) => {
|
|
653
|
-
|
|
654
|
+
y(C);
|
|
654
655
|
}, e[3] = E) : E = e[3];
|
|
655
656
|
const F = E;
|
|
656
|
-
let
|
|
657
|
-
e[4] !== l ? (
|
|
657
|
+
let I, L;
|
|
658
|
+
e[4] !== l ? (I = () => {
|
|
658
659
|
if (!l)
|
|
659
660
|
return;
|
|
660
661
|
const C = (J) => {
|
|
661
662
|
J.key === "Escape" && d(!1);
|
|
662
663
|
};
|
|
663
664
|
return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
|
|
664
|
-
},
|
|
665
|
-
const [S] = V(
|
|
666
|
-
let
|
|
667
|
-
e[7] !==
|
|
665
|
+
}, L = [l], e[4] = l, e[5] = I, e[6] = L) : (I = e[5], L = e[6]), de(I, L);
|
|
666
|
+
const [S] = V(qt);
|
|
667
|
+
let v, q;
|
|
668
|
+
e[7] !== f ? (v = ae.toArray(f).filter(Gt), q = v.reduce(Vt, 0), e[7] = f, e[8] = v, e[9] = q) : (v = e[8], q = e[9]);
|
|
668
669
|
const B = n !== void 0 && q > n;
|
|
669
|
-
let
|
|
670
|
+
let Z;
|
|
670
671
|
e: {
|
|
671
672
|
if (!B || n === void 0) {
|
|
672
|
-
|
|
673
|
+
Z = null;
|
|
673
674
|
break e;
|
|
674
675
|
}
|
|
675
676
|
let C;
|
|
676
|
-
e[10] !==
|
|
677
|
+
e[10] !== v || e[11] !== n ? (C = Zt(v, n), e[10] = v, e[11] = n, e[12] = C) : C = e[12], Z = C;
|
|
677
678
|
}
|
|
678
|
-
const O =
|
|
679
|
+
const O = Z;
|
|
679
680
|
!B && l && d(!1);
|
|
680
681
|
let M, R;
|
|
681
|
-
if (e[13] !== S || e[14] !==
|
|
682
|
-
const C = l && w ? w :
|
|
682
|
+
if (e[13] !== S || e[14] !== x || e[15] !== l || e[16] !== w ? (M = () => {
|
|
683
|
+
const C = l && w ? w : x;
|
|
683
684
|
S && C && S.parentNode !== C && C.appendChild(S);
|
|
684
|
-
}, R = [l,
|
|
685
|
+
}, R = [l, x, w, S], e[13] = S, e[14] = x, e[15] = l, e[16] = w, e[17] = M, e[18] = R) : (M = e[17], R = e[18]), ee(M, R), v.length === 0)
|
|
685
686
|
return null;
|
|
686
|
-
const P = l ? g.close : g.trigger, U =
|
|
687
|
-
let
|
|
688
|
-
e[19] !== U || e[20] !== c ? (
|
|
687
|
+
const P = l ? g.close : g.trigger, U = m === "left" ? "row-reverse" : "row";
|
|
688
|
+
let $;
|
|
689
|
+
e[19] !== U || e[20] !== c ? ($ = {
|
|
689
690
|
...ne.root,
|
|
690
691
|
flexDirection: U,
|
|
691
692
|
...c
|
|
692
|
-
}, e[19] = U, e[20] = c, e[21] =
|
|
693
|
-
let
|
|
694
|
-
e[22] !==
|
|
695
|
-
/* @__PURE__ */ a(Xe, { title: P, children: /* @__PURE__ */ a(Re, { ref: F, size: "small", "aria-label": P, "aria-pressed": l, onClick:
|
|
693
|
+
}, e[19] = U, e[20] = c, e[21] = $) : $ = e[21];
|
|
694
|
+
let D;
|
|
695
|
+
e[22] !== u || e[23] !== i || e[24] !== l || e[25] !== B || e[26] !== P ? (D = B && /* @__PURE__ */ G(re, { children: [
|
|
696
|
+
/* @__PURE__ */ a(Xe, { title: P, children: /* @__PURE__ */ a(Re, { ref: F, size: "small", "aria-label": P, "aria-pressed": l, onClick: A, className: l ? "active" : void 0, sx: {
|
|
696
697
|
...l && ne.triggerActive
|
|
697
|
-
}, children: l ? /* @__PURE__ */ a(
|
|
698
|
+
}, children: l ? /* @__PURE__ */ a(He, { fontSize: "small" }) : /* @__PURE__ */ a(u, { fontSize: "small", ...i }) }) }),
|
|
698
699
|
/* @__PURE__ */ a(Pe, { orientation: "vertical", flexItem: !0, sx: {
|
|
699
700
|
mx: 0.5
|
|
700
701
|
} })
|
|
701
|
-
] }), e[22] =
|
|
702
|
+
] }), e[22] = u, e[23] = i, e[24] = l, e[25] = B, e[26] = P, e[27] = D) : D = e[27];
|
|
702
703
|
let z;
|
|
703
|
-
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(
|
|
704
|
+
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(W, { ref: b, sx: ne.preview }), e[28] = z) : z = e[28];
|
|
704
705
|
let H;
|
|
705
|
-
e[29] !== h || e[30] !==
|
|
706
|
+
e[29] !== h || e[30] !== m || e[31] !== l || e[32] !== B ? (H = B && /* @__PURE__ */ a(Ue, { open: l, anchorEl: h, placement: m === "left" ? "left" : "right", transition: !0, modifiers: [{
|
|
706
707
|
name: "flip",
|
|
707
708
|
enabled: !1
|
|
708
709
|
}], sx: {
|
|
@@ -713,43 +714,43 @@ function zt(t) {
|
|
|
713
714
|
TransitionProps: J
|
|
714
715
|
} = C;
|
|
715
716
|
return /* @__PURE__ */ a(Ne, { ...J, style: {
|
|
716
|
-
transformOrigin:
|
|
717
|
-
}, children: /* @__PURE__ */ a(je, { ref:
|
|
718
|
-
} }), e[29] = h, e[30] =
|
|
717
|
+
transformOrigin: m === "left" ? "right center" : "left center"
|
|
718
|
+
}, children: /* @__PURE__ */ a(je, { ref: k, sx: ne.paper }) });
|
|
719
|
+
} }), e[29] = h, e[30] = m, e[31] = l, e[32] = B, e[33] = H) : H = e[33];
|
|
719
720
|
let N;
|
|
720
|
-
e[34] !== S || e[35] !== O || e[36] !==
|
|
721
|
+
e[34] !== S || e[35] !== O || e[36] !== v || e[37] !== l ? (N = S ? Ge(v.map((C, J) => {
|
|
721
722
|
const le = l || !O || O.has(J), xe = C.key ?? J;
|
|
722
723
|
return /* @__PURE__ */ a("div", { "data-toolbox-item-visible": le ? "true" : "false", style: {
|
|
723
724
|
display: le ? "contents" : "none"
|
|
724
725
|
}, children: C }, xe);
|
|
725
|
-
}), S) : null, e[34] = S, e[35] = O, e[36] =
|
|
726
|
-
let
|
|
727
|
-
return e[39] !==
|
|
728
|
-
|
|
726
|
+
}), S) : null, e[34] = S, e[35] = O, e[36] = v, e[37] = l, e[38] = N) : N = e[38];
|
|
727
|
+
let K;
|
|
728
|
+
return e[39] !== $ || e[40] !== D || e[41] !== H || e[42] !== N ? (K = /* @__PURE__ */ G(W, { sx: $, children: [
|
|
729
|
+
D,
|
|
729
730
|
z,
|
|
730
731
|
H,
|
|
731
732
|
N
|
|
732
|
-
] }), e[39] =
|
|
733
|
+
] }), e[39] = $, e[40] = D, e[41] = H, e[42] = N, e[43] = K) : K = e[43], K;
|
|
733
734
|
}
|
|
734
|
-
function
|
|
735
|
+
function Vt(t, e) {
|
|
735
736
|
return t + (ie(e) ? 0 : 1);
|
|
736
737
|
}
|
|
737
|
-
function
|
|
738
|
+
function Gt(t) {
|
|
738
739
|
return ce(t);
|
|
739
740
|
}
|
|
740
|
-
function
|
|
741
|
+
function qt() {
|
|
741
742
|
if (typeof document > "u")
|
|
742
743
|
return null;
|
|
743
744
|
const t = document.createElement("div");
|
|
744
745
|
return t.style.display = "contents", t;
|
|
745
746
|
}
|
|
746
|
-
function
|
|
747
|
+
function Xt(t) {
|
|
747
748
|
return !t;
|
|
748
749
|
}
|
|
749
750
|
function ie(t) {
|
|
750
751
|
return t.props["data-toolbar-hidden"] === !0;
|
|
751
752
|
}
|
|
752
|
-
function
|
|
753
|
+
function Zt(t, e) {
|
|
753
754
|
const n = [];
|
|
754
755
|
let r = 0;
|
|
755
756
|
for (let o = 0; o < t.length && !(r >= e); o++)
|
|
@@ -758,7 +759,7 @@ function Xt(t, e) {
|
|
|
758
759
|
n.pop();
|
|
759
760
|
return new Set(n);
|
|
760
761
|
}
|
|
761
|
-
const
|
|
762
|
+
const Kt = {
|
|
762
763
|
showMore: "Show more",
|
|
763
764
|
showLess: "Show less"
|
|
764
765
|
}, oe = {
|
|
@@ -787,7 +788,7 @@ const Zt = {
|
|
|
787
788
|
}
|
|
788
789
|
}
|
|
789
790
|
};
|
|
790
|
-
function
|
|
791
|
+
function Y(t) {
|
|
791
792
|
const e = T(3), {
|
|
792
793
|
children: n
|
|
793
794
|
} = t;
|
|
@@ -796,48 +797,48 @@ function K(t) {
|
|
|
796
797
|
m: 0
|
|
797
798
|
}, e[0] = r) : r = e[0];
|
|
798
799
|
let o;
|
|
799
|
-
return e[1] !== n ? (o = /* @__PURE__ */ a(
|
|
800
|
+
return e[1] !== n ? (o = /* @__PURE__ */ a(X, { variant: "caption", component: "p", color: "inherit", sx: r, children: n }), e[1] = n, e[2] = o) : o = e[2], o;
|
|
800
801
|
}
|
|
801
|
-
const
|
|
802
|
+
const Yt = {
|
|
802
803
|
// Headings demoted to caption typography — a Note can't introduce a
|
|
803
804
|
// heading into the page outline.
|
|
804
|
-
h1:
|
|
805
|
-
h2:
|
|
806
|
-
h3:
|
|
807
|
-
h4:
|
|
808
|
-
h5:
|
|
809
|
-
h6:
|
|
810
|
-
p:
|
|
805
|
+
h1: Y,
|
|
806
|
+
h2: Y,
|
|
807
|
+
h3: Y,
|
|
808
|
+
h4: Y,
|
|
809
|
+
h5: Y,
|
|
810
|
+
h6: Y,
|
|
811
|
+
p: Y,
|
|
811
812
|
// External-safe link defaults; inherit colour from the muted caption.
|
|
812
813
|
a: ({
|
|
813
814
|
children: t,
|
|
814
815
|
href: e
|
|
815
|
-
}) => /* @__PURE__ */ a(
|
|
816
|
+
}) => /* @__PURE__ */ a(fe, { href: e, target: "_blank", rel: "noopener noreferrer", color: "inherit", underline: "always", children: t })
|
|
816
817
|
};
|
|
817
|
-
function
|
|
818
|
+
function Jt(t) {
|
|
818
819
|
const e = T(7), {
|
|
819
820
|
lineClamp: n,
|
|
820
821
|
labels: r,
|
|
821
822
|
children: o
|
|
822
823
|
} = t, i = n === void 0 ? 3 : n;
|
|
823
824
|
let s;
|
|
824
|
-
e[0] !== o ? (s = /* @__PURE__ */ a(
|
|
825
|
+
e[0] !== o ? (s = /* @__PURE__ */ a(X, { variant: "caption", component: "div", color: "inherit", children: o }), e[0] = o, e[1] = s) : s = e[1];
|
|
825
826
|
let c;
|
|
826
827
|
return e[2] !== o || e[3] !== r || e[4] !== i || e[5] !== s ? (c = /* @__PURE__ */ a(ye, { lineClamp: i, labels: r, dependency: o, children: s }), e[2] = o, e[3] = r, e[4] = i, e[5] = s, e[6] = c) : c = e[6], c;
|
|
827
828
|
}
|
|
828
|
-
function
|
|
829
|
+
function Qt(t) {
|
|
829
830
|
const e = T(7), {
|
|
830
831
|
content: n,
|
|
831
832
|
lineClamp: r,
|
|
832
833
|
labels: o
|
|
833
834
|
} = t, i = r === void 0 ? 3 : r;
|
|
834
835
|
let s;
|
|
835
|
-
e[0] !== n ? (s = /* @__PURE__ */ a(Je, { content: n, components:
|
|
836
|
+
e[0] !== n ? (s = /* @__PURE__ */ a(Je, { content: n, components: Yt }), e[0] = n, e[1] = s) : s = e[1];
|
|
836
837
|
let c;
|
|
837
838
|
return e[2] !== n || e[3] !== o || e[4] !== i || e[5] !== s ? (c = /* @__PURE__ */ a(ye, { lineClamp: i, labels: o, dependency: n, children: s }), e[2] = n, e[3] = o, e[4] = i, e[5] = s, e[6] = c) : c = e[6], c;
|
|
838
839
|
}
|
|
839
|
-
const
|
|
840
|
-
Markdown:
|
|
840
|
+
const en = Object.assign(Jt, {
|
|
841
|
+
Markdown: Qt
|
|
841
842
|
});
|
|
842
843
|
function ye(t) {
|
|
843
844
|
const e = T(27), {
|
|
@@ -848,75 +849,76 @@ function ye(t) {
|
|
|
848
849
|
} = t;
|
|
849
850
|
let s;
|
|
850
851
|
e[0] !== r ? (s = {
|
|
851
|
-
...
|
|
852
|
+
...Kt,
|
|
852
853
|
...r
|
|
853
854
|
}, e[0] = r, e[1] = s) : s = e[1];
|
|
854
|
-
const c = s,
|
|
855
|
+
const c = s, f = ve(null), [u, m] = V(!1), [p, g] = V(!1), l = n <= 0;
|
|
855
856
|
let d;
|
|
856
857
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => {
|
|
857
|
-
const
|
|
858
|
-
|
|
858
|
+
const v = f.current;
|
|
859
|
+
v && m(v.scrollHeight > v.clientHeight + 1);
|
|
859
860
|
}, e[2] = d) : d = e[2];
|
|
860
861
|
const h = d;
|
|
861
|
-
let
|
|
862
|
-
e[3] !== l ? (
|
|
862
|
+
let y;
|
|
863
|
+
e[3] !== l ? (y = () => {
|
|
863
864
|
if (l)
|
|
864
865
|
return;
|
|
865
|
-
const
|
|
866
|
-
if (
|
|
867
|
-
return h(), Ze(
|
|
868
|
-
}, e[3] = l, e[4] =
|
|
869
|
-
let
|
|
870
|
-
e[5] !== l || e[6] !== o ? (
|
|
871
|
-
let
|
|
872
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
873
|
-
const w =
|
|
874
|
-
let
|
|
875
|
-
e[9] !==
|
|
866
|
+
const v = f.current;
|
|
867
|
+
if (v)
|
|
868
|
+
return h(), Ze(v, h);
|
|
869
|
+
}, e[3] = l, e[4] = y) : y = e[4];
|
|
870
|
+
let x;
|
|
871
|
+
e[5] !== l || e[6] !== o ? (x = [h, o, l], e[5] = l, e[6] = o, e[7] = x) : x = e[7], de(y, x);
|
|
872
|
+
let b;
|
|
873
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => g(tn), e[8] = b) : b = e[8];
|
|
874
|
+
const w = b, k = !p && !l;
|
|
875
|
+
let _;
|
|
876
|
+
e[9] !== k || e[10] !== n ? (_ = k ? {
|
|
876
877
|
...oe.clamped,
|
|
877
878
|
WebkitLineClamp: n
|
|
878
|
-
} : null, e[9] =
|
|
879
|
-
const
|
|
879
|
+
} : null, e[9] = k, e[10] = n, e[11] = _) : _ = e[11];
|
|
880
|
+
const A = _;
|
|
880
881
|
let E;
|
|
881
|
-
e[12] !==
|
|
882
|
+
e[12] !== A ? (E = A ?? {}, e[12] = A, e[13] = E) : E = e[13];
|
|
882
883
|
let F;
|
|
883
884
|
e[14] !== E ? (F = {
|
|
884
885
|
...oe.text,
|
|
885
886
|
...E
|
|
886
887
|
}, e[14] = E, e[15] = F) : F = e[15];
|
|
887
|
-
let
|
|
888
|
-
e[16] !== i || e[17] !== F ? (
|
|
889
|
-
let
|
|
890
|
-
e[19] !== c || e[20] !== l || e[21] !==
|
|
888
|
+
let I;
|
|
889
|
+
e[16] !== i || e[17] !== F ? (I = /* @__PURE__ */ a(W, { ref: f, sx: F, children: i }), e[16] = i, e[17] = F, e[18] = I) : I = e[18];
|
|
890
|
+
let L;
|
|
891
|
+
e[19] !== c || e[20] !== l || e[21] !== p || e[22] !== u ? (L = !l && (u || p) && /* @__PURE__ */ a(fe, { component: "button", variant: "caption", underline: "none", onClick: w, sx: oe.toggle, children: p ? c.showLess : c.showMore }), e[19] = c, e[20] = l, e[21] = p, e[22] = u, e[23] = L) : L = e[23];
|
|
891
892
|
let S;
|
|
892
|
-
return e[24] !==
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
] }), e[24] =
|
|
893
|
+
return e[24] !== L || e[25] !== I ? (S = /* @__PURE__ */ G(W, { sx: oe.root, children: [
|
|
894
|
+
I,
|
|
895
|
+
L
|
|
896
|
+
] }), e[24] = L, e[25] = I, e[26] = S) : S = e[26], S;
|
|
896
897
|
}
|
|
897
|
-
function
|
|
898
|
+
function tn(t) {
|
|
898
899
|
return !t;
|
|
899
900
|
}
|
|
900
|
-
const
|
|
901
|
+
const In = {
|
|
901
902
|
// Composition shell
|
|
902
|
-
Provider:
|
|
903
|
-
Wrapper:
|
|
904
|
-
Actions:
|
|
905
|
-
Options:
|
|
906
|
-
Content:
|
|
907
|
-
Footer:
|
|
908
|
-
Subheader:
|
|
909
|
-
State:
|
|
910
|
-
SelectionSummary:
|
|
911
|
-
Toolbox:
|
|
912
|
-
Note:
|
|
903
|
+
Provider: wt,
|
|
904
|
+
Wrapper: kt,
|
|
905
|
+
Actions: me,
|
|
906
|
+
Options: ue,
|
|
907
|
+
Content: At,
|
|
908
|
+
Footer: Lt,
|
|
909
|
+
Subheader: $t,
|
|
910
|
+
State: Bt,
|
|
911
|
+
SelectionSummary: jt,
|
|
912
|
+
Toolbox: Ht,
|
|
913
|
+
Note: en,
|
|
913
914
|
// ECharts bridge
|
|
914
915
|
Echart: Ye,
|
|
915
916
|
EchartUI: Ke,
|
|
916
917
|
// Actions
|
|
917
|
-
Searcher:
|
|
918
|
-
SearcherToggle:
|
|
919
|
-
StackToggle:
|
|
918
|
+
Searcher: pt,
|
|
919
|
+
SearcherToggle: dt,
|
|
920
|
+
StackToggle: ct,
|
|
921
|
+
ShowAllToggle: at,
|
|
920
922
|
ZoomToggle: st,
|
|
921
923
|
BrushToggle: lt,
|
|
922
924
|
RelativeData: it,
|
|
@@ -928,26 +930,26 @@ const An = {
|
|
|
928
930
|
// modules (Bar, FormulaWidget, TableWidget, etc.) are application-level
|
|
929
931
|
// compositions of these primitives and live outside the library —
|
|
930
932
|
// see `apps/storybook/stories/modules/widgets/` for canonical examples.
|
|
931
|
-
Formula:
|
|
933
|
+
Formula: mt,
|
|
932
934
|
FormulaUI: ft,
|
|
933
935
|
Markdown: et,
|
|
934
936
|
MarkdownUI: Qe,
|
|
935
|
-
Spread:
|
|
937
|
+
Spread: gt,
|
|
936
938
|
SpreadUI: ut,
|
|
937
|
-
Range:
|
|
938
|
-
RangeUI:
|
|
939
|
-
Category:
|
|
940
|
-
CategoryUI:
|
|
941
|
-
Table:
|
|
942
|
-
TableUI:
|
|
939
|
+
Range: yt,
|
|
940
|
+
RangeUI: ht,
|
|
941
|
+
Category: bt,
|
|
942
|
+
CategoryUI: xt,
|
|
943
|
+
Table: St,
|
|
944
|
+
TableUI: vt
|
|
943
945
|
};
|
|
944
946
|
export {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
947
|
+
Wn as DEFAULT_INIT_OPTS,
|
|
948
|
+
Kt as DEFAULT_NOTE_LABELS,
|
|
949
|
+
Nt as DEFAULT_SELECTION_SUMMARY_LABELS,
|
|
950
|
+
Dt as DEFAULT_STATE_LABELS,
|
|
951
|
+
zt as DEFAULT_TOOLBOX_LABELS,
|
|
952
|
+
Tt as DEFAULT_WRAPPER_LABELS,
|
|
953
|
+
In as Widget
|
|
952
954
|
};
|
|
953
955
|
//# sourceMappingURL=widgets-v2.js.map
|