@carto/ps-react-ui 5.1.0 → 5.3.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.
Files changed (117) hide show
  1. package/dist/actions-Dhlz_adK.js +1167 -0
  2. package/dist/actions-Dhlz_adK.js.map +1 -0
  3. package/dist/category-D01ruG-l.js +842 -0
  4. package/dist/category-D01ruG-l.js.map +1 -0
  5. package/dist/{download-DdaK3qgC.js → download-DGgFOaXj.js} +81 -80
  6. package/dist/download-DGgFOaXj.js.map +1 -0
  7. package/dist/{echart-CRihbmRv.js → echart-CwzbPElc.js} +3 -2
  8. package/dist/echart-CwzbPElc.js.map +1 -0
  9. package/dist/{formula-noJzQwKo.js → formula-BIxJr1P3.js} +6 -6
  10. package/dist/{formula-noJzQwKo.js.map → formula-BIxJr1P3.js.map} +1 -1
  11. package/dist/legend.js +34 -21
  12. package/dist/legend.js.map +1 -1
  13. package/dist/{markdown-2dfL6Cmb.js → markdown-oo9mnJun.js} +6 -6
  14. package/dist/{markdown-2dfL6Cmb.js.map → markdown-oo9mnJun.js.map} +1 -1
  15. package/dist/{spread-Ccpg9fi0.js → spread-CgCTKPQD.js} +7 -7
  16. package/dist/{spread-Ccpg9fi0.js.map → spread-CgCTKPQD.js.map} +1 -1
  17. package/dist/{table-Bx9Uj3U0.js → table-lb5momun.js} +3 -3
  18. package/dist/{table-Bx9Uj3U0.js.map → table-lb5momun.js.map} +1 -1
  19. package/dist/types/legend/stores/types.d.ts +4 -2
  20. package/dist/types/widgets-v2/actions/download/csv-item.d.ts +3 -3
  21. package/dist/types/widgets-v2/actions/download/index.d.ts +1 -1
  22. package/dist/types/widgets-v2/actions/download/png-item.d.ts +2 -2
  23. package/dist/types/widgets-v2/actions/download/types.d.ts +12 -1
  24. package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +20 -13
  25. package/dist/types/widgets-v2/actions/index.d.ts +1 -1
  26. package/dist/types/widgets-v2/actions/searcher/filter.d.ts +3 -2
  27. package/dist/types/widgets-v2/bar/download.d.ts +3 -3
  28. package/dist/types/widgets-v2/category/category-ui.d.ts +9 -1
  29. package/dist/types/widgets-v2/category/download.d.ts +3 -3
  30. package/dist/types/widgets-v2/echart/style.d.ts +1 -0
  31. package/dist/types/widgets-v2/formula/download.d.ts +3 -3
  32. package/dist/types/widgets-v2/histogram/download.d.ts +3 -3
  33. package/dist/types/widgets-v2/index.d.ts +1 -1
  34. package/dist/types/widgets-v2/markdown/download.d.ts +3 -3
  35. package/dist/types/widgets-v2/pie/download.d.ts +3 -3
  36. package/dist/types/widgets-v2/scatterplot/download.d.ts +3 -3
  37. package/dist/types/widgets-v2/spread/download.d.ts +3 -3
  38. package/dist/types/widgets-v2/table/download.d.ts +3 -3
  39. package/dist/types/widgets-v2/timeseries/download.d.ts +3 -3
  40. package/dist/types/widgets-v2/toolbox/toolbox.d.ts +1 -1
  41. package/dist/types/widgets-v2/wrapper/style.d.ts +31 -2
  42. package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +2 -2
  43. package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +2 -2
  44. package/dist/widgets-v2/actions.js +2 -2
  45. package/dist/widgets-v2/bar.js +7 -7
  46. package/dist/widgets-v2/bar.js.map +1 -1
  47. package/dist/widgets-v2/category.js +1 -1
  48. package/dist/widgets-v2/echart.js +1 -1
  49. package/dist/widgets-v2/formula.js +1 -1
  50. package/dist/widgets-v2/histogram.js +10 -10
  51. package/dist/widgets-v2/histogram.js.map +1 -1
  52. package/dist/widgets-v2/markdown.js +1 -1
  53. package/dist/widgets-v2/pie.js +10 -10
  54. package/dist/widgets-v2/pie.js.map +1 -1
  55. package/dist/widgets-v2/scatterplot.js +9 -9
  56. package/dist/widgets-v2/scatterplot.js.map +1 -1
  57. package/dist/widgets-v2/spread.js +1 -1
  58. package/dist/widgets-v2/table.js +1 -1
  59. package/dist/widgets-v2/timeseries.js +12 -12
  60. package/dist/widgets-v2/timeseries.js.map +1 -1
  61. package/dist/widgets-v2.js +364 -376
  62. package/dist/widgets-v2.js.map +1 -1
  63. package/package.json +3 -3
  64. package/src/legend/components/legend-item/legend-item-ui.test.tsx +22 -1
  65. package/src/legend/components/legend-ramp/legend-ramp-ui.tsx +22 -6
  66. package/src/legend/stores/types.ts +4 -2
  67. package/src/widgets-v2/actions/download/csv-item.test.tsx +3 -3
  68. package/src/widgets-v2/actions/download/csv-item.tsx +6 -6
  69. package/src/widgets-v2/actions/download/download.tsx +5 -3
  70. package/src/widgets-v2/actions/download/index.ts +1 -1
  71. package/src/widgets-v2/actions/download/png-item.test.tsx +5 -3
  72. package/src/widgets-v2/actions/download/png-item.tsx +4 -4
  73. package/src/widgets-v2/actions/download/types.ts +15 -1
  74. package/src/widgets-v2/actions/fullscreen/fullscreen-store.test.tsx +155 -0
  75. package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +39 -41
  76. package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +211 -96
  77. package/src/widgets-v2/actions/index.ts +1 -0
  78. package/src/widgets-v2/actions/searcher/filter.test.ts +28 -0
  79. package/src/widgets-v2/actions/searcher/filter.ts +22 -4
  80. package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +9 -4
  81. package/src/widgets-v2/actions/searcher/searcher.test.tsx +22 -0
  82. package/src/widgets-v2/actions/searcher/searcher.tsx +16 -0
  83. package/src/widgets-v2/bar/download.test.tsx +5 -3
  84. package/src/widgets-v2/bar/download.tsx +5 -4
  85. package/src/widgets-v2/category/category-ui.tsx +24 -13
  86. package/src/widgets-v2/category/category.tsx +37 -2
  87. package/src/widgets-v2/category/download.test.ts +4 -2
  88. package/src/widgets-v2/category/download.ts +5 -4
  89. package/src/widgets-v2/echart/style.ts +6 -0
  90. package/src/widgets-v2/formula/download.test.tsx +3 -1
  91. package/src/widgets-v2/formula/download.tsx +5 -4
  92. package/src/widgets-v2/histogram/download.test.ts +6 -4
  93. package/src/widgets-v2/histogram/download.ts +5 -4
  94. package/src/widgets-v2/index.ts +1 -0
  95. package/src/widgets-v2/markdown/download.test.ts +2 -2
  96. package/src/widgets-v2/markdown/download.tsx +5 -4
  97. package/src/widgets-v2/pie/download.test.ts +7 -3
  98. package/src/widgets-v2/pie/download.ts +5 -4
  99. package/src/widgets-v2/scatterplot/download.test.ts +4 -2
  100. package/src/widgets-v2/scatterplot/download.ts +5 -4
  101. package/src/widgets-v2/spread/download.test.ts +3 -1
  102. package/src/widgets-v2/spread/download.ts +5 -4
  103. package/src/widgets-v2/table/download.test.ts +5 -3
  104. package/src/widgets-v2/table/download.ts +4 -3
  105. package/src/widgets-v2/timeseries/download.test.ts +6 -4
  106. package/src/widgets-v2/timeseries/download.ts +5 -4
  107. package/src/widgets-v2/toolbox/toolbox.tsx +1 -1
  108. package/src/widgets-v2/wrapper/style.ts +38 -2
  109. package/src/widgets-v2/wrapper/widget-actions.tsx +2 -2
  110. package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +32 -2
  111. package/src/widgets-v2/wrapper/widget-wrapper.tsx +58 -32
  112. package/dist/actions-BjPfCLG9.js +0 -1024
  113. package/dist/actions-BjPfCLG9.js.map +0 -1
  114. package/dist/category-DGUDabsi.js +0 -829
  115. package/dist/category-DGUDabsi.js.map +0 -1
  116. package/dist/download-DdaK3qgC.js.map +0 -1
  117. package/dist/echart-CRihbmRv.js.map +0 -1
@@ -1,84 +1,25 @@
1
1
  import "./components-FED-ArwH.js";
2
2
  import { t as e } from "./tooltip-DJUGNZxY.js";
3
3
  import { t } from "./smart-tooltip-CwGHCqab.js";
4
- import { C as n, S as r, T as i, _ as a, h as o, l as s, m as c, p as l, w as u, x as d, y as f } from "./stores-tiFePP0A.js";
5
- import { i as p, n as m, o as h, r as g } from "./echart-CRihbmRv.js";
6
- import { t as _ } from "./markdown-content-BWUqwx9F.js";
7
- import { C as v, S as y, c as b, f as x, g as S, o as C, r as w, t as T, y as E } from "./actions-BjPfCLG9.js";
8
- import { t as D } from "./zoom-toggle-IsF8BnAp.js";
9
- import { s as O } from "./download-DdaK3qgC.js";
10
- import { i as k, r as A } from "./formula-noJzQwKo.js";
11
- import { i as j, r as M } from "./markdown-2dfL6Cmb.js";
12
- import { a as N, i as P } from "./spread-Ccpg9fi0.js";
13
- import { n as F, r as I } from "./range-BCMAl5xf.js";
14
- import { i as L, r as R } from "./category-DGUDabsi.js";
15
- import { d as z, i as B } from "./table-Bx9Uj3U0.js";
16
- import { c as V } from "react/compiler-runtime";
17
- import { Children as H, Component as U, isValidElement as W, useEffect as G, useLayoutEffect as K, useRef as q, useState as J } from "react";
18
- import { Accordion as ee, AccordionDetails as te, AccordionSummary as ne, Alert as re, AlertTitle as ie, Box as Y, Button as ae, Divider as oe, Grow as se, IconButton as ce, LinearProgress as le, Link as ue, Paper as de, Popper as fe, Typography as X } from "@mui/material";
19
- import { Fragment as pe, jsx as Z, jsxs as Q } from "react/jsx-runtime";
20
- import { Close as me, ExpandMore as he } from "@mui/icons-material";
21
- import { WidgetOptions as ge } from "@carto/meridian-ds/custom-icons";
22
- import { createPortal as _e } from "react-dom";
23
- //#region src/widgets-v2/provider/widget-provider.tsx
24
- function ve(e) {
25
- let t = V(31), { id: n, data: r, isLoading: i, isFetching: a, error: p, formatter: m, labelFormatter: h, keepAlive: g, children: _ } = e, v = g !== void 0 && g, y;
26
- t[0] !== r || t[1] !== p || t[2] !== m || t[3] !== n || t[4] !== a || t[5] !== i || t[6] !== h ? (y = () => {
27
- if (c(n)) return l(n);
28
- let e = s(n, {
29
- data: r,
30
- isLoading: i,
31
- isFetching: a,
32
- error: p,
33
- formatter: m,
34
- labelFormatter: h
35
- });
36
- return f(n, e), e;
37
- }, t[0] = r, t[1] = p, t[2] = m, t[3] = n, t[4] = a, t[5] = i, t[6] = h, t[7] = y) : y = t[7];
38
- let [b] = J(y), x, S;
39
- t[8] !== n || t[9] !== v || t[10] !== b ? (x = () => (o(n, b), () => {
40
- d(n, { keepAlive: v });
41
- }), S = [
42
- n,
43
- b,
44
- v
45
- ], t[8] = n, t[9] = v, t[10] = b, t[11] = x, t[12] = S) : (x = t[11], S = t[12]), K(x, S);
46
- let C, w;
47
- t[13] !== r || t[14] !== b ? (C = () => {
48
- b.setState({ rawData: r });
49
- }, w = [b, r], t[13] = r, t[14] = b, t[15] = C, t[16] = w) : (C = t[15], w = t[16]), K(C, w);
50
- let T, E;
51
- t[17] !== p || t[18] !== a || t[19] !== i || t[20] !== b ? (T = () => {
52
- b.setState({
53
- isLoading: i ?? !1,
54
- isFetching: a ?? !1,
55
- error: p
56
- });
57
- }, E = [
58
- b,
59
- i,
60
- a,
61
- p
62
- ], t[17] = p, t[18] = a, t[19] = i, t[20] = b, t[21] = T, t[22] = E) : (T = t[21], E = t[22]), K(T, E);
63
- let D, O;
64
- t[23] !== m || t[24] !== h || t[25] !== b ? (O = () => {
65
- b.setState({
66
- rawFormatter: m,
67
- formatter: m,
68
- labelFormatter: h
69
- });
70
- }, D = [
71
- b,
72
- m,
73
- h
74
- ], t[23] = m, t[24] = h, t[25] = b, t[26] = D, t[27] = O) : (D = t[26], O = t[27]), K(O, D);
75
- let k;
76
- return t[28] !== _ || t[29] !== n ? (k = /* @__PURE__ */ Z(u.Provider, {
77
- value: n,
78
- children: _
79
- }), t[28] = _, t[29] = n, t[30] = k) : k = t[30], k;
80
- }
81
- //#endregion
4
+ import { C as n, S as r, T as i, _ as a } from "./stores-tiFePP0A.js";
5
+ import { C as o, D as s, S as c, c as l, f as u, g as d, o as f, r as p, t as m, y as h } from "./actions-Dhlz_adK.js";
6
+ import { i as g, n as _, o as v, r as y } from "./echart-CwzbPElc.js";
7
+ import { t as b } from "./markdown-content-BWUqwx9F.js";
8
+ import { t as x } from "./zoom-toggle-IsF8BnAp.js";
9
+ import { s as S } from "./download-DGgFOaXj.js";
10
+ import { i as ee, r as C } from "./formula-BIxJr1P3.js";
11
+ import { i as w, r as T } from "./markdown-oo9mnJun.js";
12
+ import { a as E, i as D } from "./spread-CgCTKPQD.js";
13
+ import { n as O, r as k } from "./range-BCMAl5xf.js";
14
+ import { i as A, r as te } from "./category-D01ruG-l.js";
15
+ import { d as j, i as M } from "./table-lb5momun.js";
16
+ import { c as N } from "react/compiler-runtime";
17
+ import { Children as ne, Component as P, isValidElement as F, useEffect as I, useLayoutEffect as re, useRef as L, useState as R } from "react";
18
+ import { Accordion as z, AccordionDetails as ie, AccordionSummary as ae, Alert as B, AlertTitle as V, Box as H, Button as U, Divider as oe, Grow as W, IconButton as G, LinearProgress as se, Link as K, Paper as q, Popper as J, Typography as Y } from "@mui/material";
19
+ import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
20
+ import { Close as ce, ExpandMore as le } from "@mui/icons-material";
21
+ import { WidgetOptions as ue } from "@carto/meridian-ds/custom-icons";
22
+ import { createPortal as de } from "react-dom";
82
23
  //#region src/widgets-v2/wrapper/style.ts
83
24
  var $ = {
84
25
  root: {
@@ -114,14 +55,39 @@ var $ = {
114
55
  height: ({ spacing: e }) => e(.35),
115
56
  zIndex: 1
116
57
  },
58
+ header: {
59
+ display: "flex",
60
+ alignItems: "center",
61
+ gap: ({ spacing: e }) => e(.5),
62
+ minHeight: ({ spacing: e }) => e(7),
63
+ paddingInlineEnd: ({ spacing: e }) => e(2)
64
+ },
117
65
  summary: {
66
+ flex: 1,
67
+ minWidth: 0,
118
68
  minHeight: ({ spacing: e }) => e(7),
69
+ paddingInlineEnd: 0,
119
70
  "& .MuiAccordionSummary-content": {
120
- gap: ({ spacing: e }) => e(.5),
121
- paddingInlineEnd: ({ spacing: e }) => e(.75),
122
- alignItems: "center"
71
+ alignItems: "center",
72
+ minWidth: 0,
73
+ marginInlineEnd: 0,
74
+ paddingInlineEnd: 0
123
75
  }
124
76
  },
77
+ headerNoIcon: { paddingInlineEnd: ({ spacing: e }) => e(3.25) },
78
+ expandIcon: {
79
+ display: "flex",
80
+ marginInlineStart: ({ spacing: e }) => e(.75),
81
+ color: "text.secondary",
82
+ cursor: "pointer",
83
+ "& svg": {
84
+ width: 18,
85
+ height: 18,
86
+ color: "inherit"
87
+ },
88
+ transition: ({ transitions: e }) => e.create("transform", { duration: e.duration.shortest })
89
+ },
90
+ expanded: { transform: "rotate(180deg)" },
125
91
  summaryDisabled: { "&, &:hover:not(.Mui-disabled)": { cursor: "default" } },
126
92
  titleCell: {
127
93
  flexGrow: 1,
@@ -169,88 +135,90 @@ var $ = {
169
135
  };
170
136
  //#endregion
171
137
  //#region src/widgets-v2/wrapper/widget-actions.tsx
172
- function ye(e) {
173
- let t = V(5), { sx: n, children: r } = e, i;
138
+ function fe(e) {
139
+ let t = N(5), { sx: n, children: r } = e, i;
174
140
  t[0] === n ? i = t[1] : (i = {
175
141
  ...$.actions,
176
142
  ...n
177
143
  }, t[0] = n, t[1] = i);
178
144
  let a;
179
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
145
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(H, {
180
146
  className: "widget-wrapper-actions",
181
- onClick: be,
147
+ onClick: pe,
182
148
  sx: i,
183
149
  children: r
184
150
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
185
151
  }
186
- function be(e) {
152
+ function pe(e) {
187
153
  return e.stopPropagation();
188
154
  }
189
- function xe(e) {
190
- let t = V(5), { sx: n, children: r } = e, i;
155
+ function me(e) {
156
+ let t = N(5), { sx: n, children: r } = e, i;
191
157
  t[0] === n ? i = t[1] : (i = {
192
158
  ...$.options,
193
159
  ...n
194
160
  }, t[0] = n, t[1] = i);
195
161
  let a;
196
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
197
- onClick: Se,
162
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(H, {
163
+ onClick: he,
198
164
  sx: i,
199
165
  children: r
200
166
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
201
167
  }
202
- function Se(e) {
168
+ function he(e) {
203
169
  return e.stopPropagation();
204
170
  }
205
171
  //#endregion
206
172
  //#region src/widgets-v2/wrapper/labels.ts
207
- var Ce = {
173
+ var ge = {
208
174
  collapse: "Collapse",
209
175
  expand: "Expand",
210
176
  errorFallbackTitle: "Widget failed to render"
211
177
  };
212
178
  //#endregion
213
179
  //#region src/widgets-v2/wrapper/widget-wrapper.tsx
214
- function we(e) {
215
- let n = V(40), { title: a, collapsed: o, onCollapseChange: s, defaultCollapsed: c, disabled: l, variant: u, labels: d, expandIcon: f, iconProps: p, sx: m, children: h } = e, g = c !== void 0 && c, _ = l !== void 0 && l, v = u === void 0 ? "elevation" : u, y = f === void 0 ? he : f, b = i(), x = r(b, Te), S = o !== void 0, [C, w] = J(g), T = S ? o : C, E;
216
- n[0] !== _ || n[1] !== s ? (E = (e, t) => {
180
+ function _e(e) {
181
+ let n = N(50), { title: a, collapsed: o, onCollapseChange: s, defaultCollapsed: c, disabled: l, variant: u, labels: d, expandIcon: f, iconProps: p, sx: m, children: h } = e, g = c !== void 0 && c, _ = l !== void 0 && l, v = u === void 0 ? "elevation" : u, y = f === void 0 ? le : f, b = i(), x = r(b, ve), S = o !== void 0, [ee, C] = R(g), w = S ? o : ee, T;
182
+ n[0] !== _ || n[1] !== s ? (T = (e, t) => {
217
183
  if (_) return;
218
184
  let n = !t;
219
- s?.(n), w(n);
220
- }, n[0] = _, n[1] = s, n[2] = E) : E = n[2];
221
- let D = E, O;
222
- n[3] === d ? O = n[4] : (O = {
223
- ...Ce,
185
+ s?.(n), C(n);
186
+ }, n[0] = _, n[1] = s, n[2] = T) : T = n[2];
187
+ let E = T, D;
188
+ n[3] === d ? D = n[4] : (D = {
189
+ ...ge,
224
190
  ...d
225
- }, n[3] = d, n[4] = O);
226
- let k = O, A;
227
- n[5] === h ? A = n[6] : (A = Ee(h), n[5] = h, n[6] = A);
228
- let { summary: j, details: M } = A, N = T ? k.expand : k.collapse, P = T ? "true" : void 0, F = !T, I;
229
- n[7] === m ? I = n[8] : (I = {
191
+ }, n[3] = d, n[4] = D);
192
+ let O = D, k;
193
+ n[5] === h ? k = n[6] : (k = ye(h), n[5] = h, n[6] = k);
194
+ let { summary: A, details: te } = k, j = w ? O.expand : O.collapse, M = !w, ne;
195
+ n[7] !== M || n[8] !== E ? (ne = () => E(null, !M), n[7] = M, n[8] = E, n[9] = ne) : ne = n[9];
196
+ let P = ne, F = w ? "true" : void 0, I;
197
+ n[10] === m ? I = n[11] : (I = {
230
198
  ...$.root,
231
199
  ...m
232
- }, n[7] = m, n[8] = I);
233
- let L;
234
- n[9] === x ? L = n[10] : (L = x ? /* @__PURE__ */ Z(le, {
200
+ }, n[10] = m, n[11] = I);
201
+ let re = _ && $.headerNoIcon, L;
202
+ n[12] === re ? L = n[13] : (L = {
203
+ ...$.header,
204
+ ...re
205
+ }, n[12] = re, n[13] = L);
206
+ let B;
207
+ n[14] === x ? B = n[15] : (B = x ? /* @__PURE__ */ Z(se, {
235
208
  sx: $.loading,
236
209
  color: "primary"
237
- }) : null, n[9] = x, n[10] = L);
238
- let R;
239
- n[11] !== y || n[12] !== _ || n[13] !== p ? (R = _ ? null : /* @__PURE__ */ Z(y, {
240
- fontSize: "small",
241
- ...p
242
- }), n[11] = y, n[12] = _, n[13] = p, n[14] = R) : R = n[14];
243
- let z = _ || void 0, B = _ ? $.summaryDisabled : null, H;
244
- n[15] === B ? H = n[16] : (H = {
210
+ }) : null, n[14] = x, n[15] = B);
211
+ let V = _ || void 0, U = _ ? $.summaryDisabled : null, oe;
212
+ n[16] === U ? oe = n[17] : (oe = {
245
213
  ...$.summary,
246
- ...B
247
- }, n[15] = B, n[16] = H);
248
- let U;
249
- n[17] === a ? U = n[18] : (U = (e) => {
214
+ ...U
215
+ }, n[16] = U, n[17] = oe);
216
+ let W;
217
+ n[18] === a ? W = n[19] : (W = (e) => {
250
218
  let { ref: t } = e;
251
- return /* @__PURE__ */ Z(Y, {
219
+ return /* @__PURE__ */ Z(H, {
252
220
  sx: $.titleCell,
253
- children: /* @__PURE__ */ Z(X, {
221
+ children: /* @__PURE__ */ Z(Y, {
254
222
  ref: t,
255
223
  variant: "subtitle1",
256
224
  sx: $.titleText,
@@ -258,79 +226,99 @@ function we(e) {
258
226
  children: a
259
227
  })
260
228
  });
261
- }, n[17] = a, n[18] = U);
262
- let W;
263
- n[19] !== U || n[20] !== a ? (W = /* @__PURE__ */ Z(t, {
264
- title: a,
265
- children: U
266
- }), n[19] = U, n[20] = a, n[21] = W) : W = n[21];
229
+ }, n[18] = a, n[19] = W);
267
230
  let G;
268
- n[22] !== N || n[23] !== j || n[24] !== R || n[25] !== z || n[26] !== H || n[27] !== W ? (G = /* @__PURE__ */ Q(ne, {
269
- expandIcon: R,
270
- "aria-label": N,
271
- "aria-disabled": z,
272
- sx: H,
273
- children: [W, j]
274
- }), n[22] = N, n[23] = j, n[24] = R, n[25] = z, n[26] = H, n[27] = W, n[28] = G) : G = n[28];
231
+ n[20] !== W || n[21] !== a ? (G = /* @__PURE__ */ Z(t, {
232
+ title: a,
233
+ children: W
234
+ }), n[20] = W, n[21] = a, n[22] = G) : G = n[22];
275
235
  let K;
276
- n[29] === M ? K = n[30] : (K = /* @__PURE__ */ Z(te, {
277
- sx: $.detail,
278
- children: M
279
- }), n[29] = M, n[30] = K);
236
+ n[23] !== j || n[24] !== V || n[25] !== oe || n[26] !== G ? (K = /* @__PURE__ */ Z(ae, {
237
+ expandIcon: null,
238
+ "aria-label": j,
239
+ "aria-disabled": V,
240
+ sx: oe,
241
+ children: G
242
+ }), n[23] = j, n[24] = V, n[25] = oe, n[26] = G, n[27] = K) : K = n[27];
280
243
  let q;
281
- return n[31] !== D || n[32] !== I || n[33] !== L || n[34] !== G || n[35] !== K || n[36] !== P || n[37] !== F || n[38] !== v ? (q = /* @__PURE__ */ Q(ee, {
282
- "data-collapsed": P,
283
- expanded: F,
284
- onChange: D,
244
+ n[28] !== y || n[29] !== _ || n[30] !== M || n[31] !== p || n[32] !== P ? (q = _ ? null : /* @__PURE__ */ Z(H, {
245
+ "aria-hidden": !0,
246
+ onClick: P,
247
+ sx: {
248
+ ...$.expandIcon,
249
+ ...M && $.expanded
250
+ },
251
+ children: /* @__PURE__ */ Z(y, {
252
+ fontSize: "small",
253
+ ...p
254
+ })
255
+ }), n[28] = y, n[29] = _, n[30] = M, n[31] = p, n[32] = P, n[33] = q) : q = n[33];
256
+ let J;
257
+ n[34] !== A || n[35] !== L || n[36] !== B || n[37] !== K || n[38] !== q ? (J = /* @__PURE__ */ Q(H, {
258
+ className: "widget-wrapper-header",
259
+ sx: L,
260
+ children: [
261
+ B,
262
+ K,
263
+ A,
264
+ q
265
+ ]
266
+ }), n[34] = A, n[35] = L, n[36] = B, n[37] = K, n[38] = q, n[39] = J) : J = n[39];
267
+ let X;
268
+ n[40] === te ? X = n[41] : (X = /* @__PURE__ */ Z(ie, {
269
+ sx: $.detail,
270
+ children: te
271
+ }), n[40] = te, n[41] = X);
272
+ let ce;
273
+ return n[42] !== M || n[43] !== E || n[44] !== I || n[45] !== J || n[46] !== X || n[47] !== F || n[48] !== v ? (ce = /* @__PURE__ */ Q(z, {
274
+ "data-collapsed": F,
275
+ expanded: M,
276
+ onChange: E,
285
277
  disableGutters: !0,
286
278
  elevation: 0,
287
279
  variant: v,
288
280
  square: !0,
289
281
  sx: I,
290
- children: [
291
- L,
292
- G,
293
- K
294
- ]
295
- }), n[31] = D, n[32] = I, n[33] = L, n[34] = G, n[35] = K, n[36] = P, n[37] = F, n[38] = v, n[39] = q) : q = n[39], q;
282
+ children: [J, X]
283
+ }), n[42] = M, n[43] = E, n[44] = I, n[45] = J, n[46] = X, n[47] = F, n[48] = v, n[49] = ce) : ce = n[49], ce;
296
284
  }
297
- function Te(e) {
285
+ function ve(e) {
298
286
  return e.isFetching;
299
287
  }
300
- function Ee(e) {
288
+ function ye(e) {
301
289
  let t = [], n = [];
302
- for (let r of H.toArray(e)) De(r, ye) || De(r, xe) ? t.push(r) : n.push(r);
290
+ for (let r of ne.toArray(e)) be(r, fe) || be(r, me) ? t.push(r) : n.push(r);
303
291
  return {
304
292
  summary: t,
305
293
  details: n
306
294
  };
307
295
  }
308
- function De(e, t) {
309
- return W(e) && e.type === t;
296
+ function be(e, t) {
297
+ return F(e) && e.type === t;
310
298
  }
311
299
  //#endregion
312
300
  //#region src/widgets-v2/wrapper/widget-content.tsx
313
- function Oe(e) {
314
- let t = V(5), { sx: n, children: r } = e, i;
301
+ function xe(e) {
302
+ let t = N(5), { sx: n, children: r } = e, i;
315
303
  t[0] === n ? i = t[1] : (i = {
316
304
  ...$.content,
317
305
  ...n
318
306
  }, t[0] = n, t[1] = i);
319
307
  let a;
320
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
308
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(H, {
321
309
  "data-slot": "content",
322
310
  sx: i,
323
311
  children: r
324
312
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
325
313
  }
326
- function ke(e) {
327
- let t = V(5), { sx: n, children: r } = e, i;
314
+ function Se(e) {
315
+ let t = N(5), { sx: n, children: r } = e, i;
328
316
  t[0] === n ? i = t[1] : (i = {
329
317
  ...$.footer,
330
318
  ...n
331
319
  }, t[0] = n, t[1] = i);
332
320
  let a;
333
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
321
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(H, {
334
322
  "data-slot": "footer",
335
323
  sx: i,
336
324
  children: r
@@ -338,7 +326,7 @@ function ke(e) {
338
326
  }
339
327
  //#endregion
340
328
  //#region src/widgets-v2/subheader/style.ts
341
- var Ae = { root: {
329
+ var Ce = { root: {
342
330
  display: "grid",
343
331
  gridTemplateColumns: "1fr auto",
344
332
  alignItems: "center",
@@ -348,21 +336,21 @@ var Ae = { root: {
348
336
  } };
349
337
  //#endregion
350
338
  //#region src/widgets-v2/subheader/subheader.tsx
351
- function je(e) {
352
- let t = V(5), { sx: n, children: r } = e, i;
339
+ function we(e) {
340
+ let t = N(5), { sx: n, children: r } = e, i;
353
341
  t[0] === n ? i = t[1] : (i = {
354
- ...Ae.root,
342
+ ...Ce.root,
355
343
  ...n
356
344
  }, t[0] = n, t[1] = i);
357
345
  let a;
358
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
346
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(H, {
359
347
  sx: i,
360
348
  children: r
361
349
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
362
350
  }
363
351
  //#endregion
364
352
  //#region src/widgets-v2/state/style.ts
365
- var Me = {
353
+ var Te = {
366
354
  emptyRoot: {
367
355
  display: "flex",
368
356
  flexDirection: "column",
@@ -380,33 +368,33 @@ var Me = {
380
368
  flexDirection: "column",
381
369
  flex: 1
382
370
  }
383
- }, Ne = {
371
+ }, Ee = {
384
372
  errorTitle: "Something went wrong",
385
373
  errorMessage: (e) => e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "Unknown error",
386
374
  emptyTitle: "No data",
387
375
  emptyDescription: "Try adjusting filters or wait for data to load."
388
- }, Pe = (e) => ({
376
+ }, De = (e) => ({
389
377
  isLoading: e.isLoading,
390
378
  isFetching: e.isFetching,
391
379
  error: e.error,
392
380
  rawData: e.rawData
393
381
  });
394
- function Fe(e) {
395
- let t = V(17), { skeleton: r, children: a, isEmpty: o, fallback: s, labels: c } = e, l = o === void 0 ? Be : o, u = i(), d = n(u, Pe), f;
382
+ function Oe(e) {
383
+ let t = N(17), { skeleton: r, children: a, isEmpty: o, fallback: s, labels: c } = e, l = o === void 0 ? Ne : o, u = i(), d = n(u, De), f;
396
384
  t[0] === c ? f = t[1] : (f = {
397
- ...Ne,
385
+ ...Ee,
398
386
  ...c
399
387
  }, t[0] = c, t[1] = f);
400
388
  let p = f;
401
389
  if (d.isLoading) {
402
390
  let e;
403
- return t[2] === r ? e = t[3] : (e = /* @__PURE__ */ Z(pe, { children: r }), t[2] = r, t[3] = e), e;
391
+ return t[2] === r ? e = t[3] : (e = /* @__PURE__ */ Z(X, { children: r }), t[2] = r, t[3] = e), e;
404
392
  }
405
393
  if (d.error !== void 0 && d.error !== null) {
406
394
  let e;
407
395
  if (t[4] !== p || t[5] !== s || t[6] !== d.error) {
408
- let n = Ve(d.error);
409
- e = s ? /* @__PURE__ */ Z(pe, { children: s(n) }) : /* @__PURE__ */ Z(Le, {
396
+ let n = Pe(d.error);
397
+ e = s ? /* @__PURE__ */ Z(X, { children: s(n) }) : /* @__PURE__ */ Z(Ae, {
410
398
  error: n,
411
399
  labels: p
412
400
  }), t[4] = p, t[5] = s, t[6] = d.error, t[7] = e;
@@ -415,61 +403,61 @@ function Fe(e) {
415
403
  }
416
404
  if (l(d.rawData)) {
417
405
  let e;
418
- return t[8] === p ? e = t[9] : (e = /* @__PURE__ */ Z(Re, { labels: p }), t[8] = p, t[9] = e), e;
406
+ return t[8] === p ? e = t[9] : (e = /* @__PURE__ */ Z(je, { labels: p }), t[8] = p, t[9] = e), e;
419
407
  }
420
408
  let m;
421
- t[10] !== a || t[11] !== u ? (m = /* @__PURE__ */ Z(Ie, {
409
+ t[10] !== a || t[11] !== u ? (m = /* @__PURE__ */ Z(ke, {
422
410
  id: u,
423
411
  children: a
424
412
  }), t[10] = a, t[11] = u, t[12] = m) : m = t[12];
425
413
  let h;
426
- return t[13] !== p || t[14] !== s || t[15] !== m ? (h = /* @__PURE__ */ Z(ze, {
414
+ return t[13] !== p || t[14] !== s || t[15] !== m ? (h = /* @__PURE__ */ Z(Me, {
427
415
  fallback: s,
428
416
  labels: p,
429
417
  children: m
430
418
  }), t[13] = p, t[14] = s, t[15] = m, t[16] = h) : h = t[16], h;
431
419
  }
432
- function Ie(e) {
433
- let t = V(5), { id: n, children: r } = e, i;
420
+ function ke(e) {
421
+ let t = N(5), { id: n, children: r } = e, i;
434
422
  t[0] === n ? i = t[1] : (i = (e) => a(n, e), t[0] = n, t[1] = i);
435
423
  let o = i, s;
436
- return t[2] !== r || t[3] !== o ? (s = /* @__PURE__ */ Z(Y, {
424
+ return t[2] !== r || t[3] !== o ? (s = /* @__PURE__ */ Z(H, {
437
425
  ref: o,
438
- sx: Me.captureBox,
426
+ sx: Te.captureBox,
439
427
  children: r
440
428
  }), t[2] = r, t[3] = o, t[4] = s) : s = t[4], s;
441
429
  }
442
- function Le(e) {
443
- let t = V(8), { error: n, labels: r } = e, i;
444
- t[0] === r.errorTitle ? i = t[1] : (i = /* @__PURE__ */ Z(ie, { children: r.errorTitle }), t[0] = r.errorTitle, t[1] = i);
430
+ function Ae(e) {
431
+ let t = N(8), { error: n, labels: r } = e, i;
432
+ t[0] === r.errorTitle ? i = t[1] : (i = /* @__PURE__ */ Z(V, { children: r.errorTitle }), t[0] = r.errorTitle, t[1] = i);
445
433
  let a;
446
434
  t[2] !== n || t[3] !== r ? (a = r.errorMessage(n), t[2] = n, t[3] = r, t[4] = a) : a = t[4];
447
435
  let o;
448
- return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ Q(re, {
436
+ return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ Q(B, {
449
437
  severity: "error",
450
438
  children: [i, a]
451
439
  }), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
452
440
  }
453
- function Re(e) {
454
- let t = V(7), { labels: n } = e, r;
455
- t[0] === n.emptyTitle ? r = t[1] : (r = /* @__PURE__ */ Z(X, {
441
+ function je(e) {
442
+ let t = N(7), { labels: n } = e, r;
443
+ t[0] === n.emptyTitle ? r = t[1] : (r = /* @__PURE__ */ Z(Y, {
456
444
  variant: "body2",
457
445
  color: "text.primary",
458
446
  children: n.emptyTitle
459
447
  }), t[0] = n.emptyTitle, t[1] = r);
460
448
  let i;
461
- t[2] === n.emptyDescription ? i = t[3] : (i = /* @__PURE__ */ Z(X, {
449
+ t[2] === n.emptyDescription ? i = t[3] : (i = /* @__PURE__ */ Z(Y, {
462
450
  variant: "caption",
463
451
  color: "text.secondary",
464
452
  children: n.emptyDescription
465
453
  }), t[2] = n.emptyDescription, t[3] = i);
466
454
  let a;
467
- return t[4] !== r || t[5] !== i ? (a = /* @__PURE__ */ Q(Y, {
468
- sx: Me.emptyRoot,
455
+ return t[4] !== r || t[5] !== i ? (a = /* @__PURE__ */ Q(H, {
456
+ sx: Te.emptyRoot,
469
457
  children: [r, i]
470
458
  }), t[4] = r, t[5] = i, t[6] = a) : a = t[6], a;
471
459
  }
472
- var ze = class extends U {
460
+ var Me = class extends P {
473
461
  state = { error: null };
474
462
  static getDerivedStateFromError(e) {
475
463
  return { error: e };
@@ -481,7 +469,7 @@ var ze = class extends U {
481
469
  let { error: e } = this.state;
482
470
  if (e !== null) {
483
471
  let { fallback: t, labels: n } = this.props;
484
- return t ? t(e) : /* @__PURE__ */ Z(Le, {
472
+ return t ? t(e) : /* @__PURE__ */ Z(Ae, {
485
473
  error: e,
486
474
  labels: n
487
475
  });
@@ -489,15 +477,15 @@ var ze = class extends U {
489
477
  return this.props.children;
490
478
  }
491
479
  };
492
- function Be(e) {
480
+ function Ne(e) {
493
481
  return e == null ? !0 : Array.isArray(e) ? !!(e.length === 0 || e.every((e) => Array.isArray(e) && e.length === 0)) : typeof e == "object" && Object.keys(e).length === 0;
494
482
  }
495
- function Ve(e) {
483
+ function Pe(e) {
496
484
  return e instanceof Error ? e : typeof e == "string" ? Error(e) : e && typeof e == "object" && "message" in e ? Error(String(e.message)) : /* @__PURE__ */ Error("Unknown error");
497
485
  }
498
486
  //#endregion
499
487
  //#region src/widgets-v2/selection-summary/labels.ts
500
- var He = { clear: "Clear" }, Ue = {
488
+ var Fe = { clear: "Clear" }, Ie = {
501
489
  root: {
502
490
  display: "flex",
503
491
  alignItems: "center",
@@ -529,36 +517,36 @@ var He = { clear: "Clear" }, Ue = {
529
517
  };
530
518
  //#endregion
531
519
  //#region src/widgets-v2/selection-summary/selection-summary.tsx
532
- function We(e) {
533
- let t = V(33), { count: n, total: r, onClear: i, labels: a, icon: o, iconProps: s } = e;
520
+ function Le(e) {
521
+ let t = N(33), { count: n, total: r, onClear: i, labels: a, icon: o, iconProps: s } = e;
534
522
  if (!r) return null;
535
523
  let c, l, u, d, f, p, m, h, g;
536
524
  if (t[0] !== o || t[1] !== n || t[2] !== s || t[3] !== a || t[4] !== r) {
537
525
  u = {
538
- ...He,
526
+ ...Fe,
539
527
  ...a
540
528
  };
541
529
  let e = n === 0 ? r : n;
542
- l = Y, h = Ue.root, t[14] !== o || t[15] !== s ? (g = o ? /* @__PURE__ */ Z(o, {
530
+ l = H, h = Ie.root, t[14] !== o || t[15] !== s ? (g = o ? /* @__PURE__ */ Z(o, {
543
531
  fontSize: "small",
544
532
  ...s
545
- }) : null, t[14] = o, t[15] = s, t[16] = g) : g = t[16], c = Y, d = "span", f = Ue.count, p = `${e} / ${r}`, m = u.summary ? u.summary(e, r) : /* @__PURE__ */ Q(pe, { children: [
546
- /* @__PURE__ */ Z(X, {
533
+ }) : null, t[14] = o, t[15] = s, t[16] = g) : g = t[16], c = H, d = "span", f = Ie.count, p = `${e} / ${r}`, m = u.summary ? u.summary(e, r) : /* @__PURE__ */ Q(X, { children: [
534
+ /* @__PURE__ */ Z(Y, {
547
535
  component: "span",
548
536
  variant: "caption",
549
- sx: Ue.selected,
537
+ sx: Ie.selected,
550
538
  children: e
551
539
  }),
552
- /* @__PURE__ */ Z(X, {
540
+ /* @__PURE__ */ Z(Y, {
553
541
  component: "span",
554
542
  variant: "caption",
555
- sx: Ue.separator,
543
+ sx: Ie.separator,
556
544
  children: "/"
557
545
  }),
558
- /* @__PURE__ */ Z(X, {
546
+ /* @__PURE__ */ Z(Y, {
559
547
  component: "span",
560
548
  variant: "caption",
561
- sx: Ue.total,
549
+ sx: Ie.total,
562
550
  children: r
563
551
  })
564
552
  ] }), t[0] = o, t[1] = n, t[2] = s, t[3] = a, t[4] = r, t[5] = c, t[6] = l, t[7] = u, t[8] = d, t[9] = f, t[10] = p, t[11] = m, t[12] = h, t[13] = g;
@@ -571,7 +559,7 @@ function We(e) {
571
559
  children: m
572
560
  }), t[17] = c, t[18] = d, t[19] = f, t[20] = p, t[21] = m, t[22] = _) : _ = t[22];
573
561
  let v;
574
- t[23] !== u || t[24] !== n || t[25] !== i ? (v = n > 0 && i && /* @__PURE__ */ Z(ae, {
562
+ t[23] !== u || t[24] !== n || t[25] !== i ? (v = n > 0 && i && /* @__PURE__ */ Z(U, {
575
563
  size: "small",
576
564
  variant: "text",
577
565
  onClick: i,
@@ -589,10 +577,10 @@ function We(e) {
589
577
  }
590
578
  //#endregion
591
579
  //#region src/widgets-v2/toolbox/labels.ts
592
- var Ge = {
580
+ var Re = {
593
581
  trigger: "More actions",
594
582
  close: "Close"
595
- }, Ke = {
583
+ }, ze = {
596
584
  root: {
597
585
  display: "flex",
598
586
  alignItems: "center",
@@ -622,67 +610,67 @@ var Ge = {
622
610
  };
623
611
  //#endregion
624
612
  //#region src/widgets-v2/toolbox/toolbox.tsx
625
- function qe(t) {
626
- let n = V(44), { visibleCount: r, labels: i, icon: a, iconProps: o, direction: s, sx: c, children: l } = t, u = a === void 0 ? ge : a, d = s === void 0 ? "right" : s, f;
613
+ function Be(t) {
614
+ let n = N(44), { visibleCount: r, labels: i, icon: a, iconProps: o, direction: s, sx: c, children: l } = t, u = a === void 0 ? ue : a, d = s === void 0 ? "right" : s, f;
627
615
  n[0] === i ? f = n[1] : (f = {
628
- ...Ge,
616
+ ...Re,
629
617
  ...i
630
618
  }, n[0] = i, n[1] = f);
631
- let p = f, [m, h] = J(!1), [g, _] = J(null), [v, y] = J(null), [b, x] = J(null), S;
632
- n[2] === Symbol.for("react.memo_cache_sentinel") ? (S = () => h(Ze), n[2] = S) : S = n[2];
633
- let C = S, w;
634
- n[3] === Symbol.for("react.memo_cache_sentinel") ? (w = (e) => {
619
+ let p = f, [m, h] = R(!1), [g, _] = R(null), [v, y] = R(null), [b, x] = R(null), S;
620
+ n[2] === Symbol.for("react.memo_cache_sentinel") ? (S = () => h(We), n[2] = S) : S = n[2];
621
+ let ee = S, C;
622
+ n[3] === Symbol.for("react.memo_cache_sentinel") ? (C = (e) => {
635
623
  _(e);
636
- }, n[3] = w) : w = n[3];
637
- let T = w, E, D;
638
- n[4] === m ? (E = n[5], D = n[6]) : (E = () => {
624
+ }, n[3] = C) : C = n[3];
625
+ let w = C, T, E;
626
+ n[4] === m ? (T = n[5], E = n[6]) : (T = () => {
639
627
  if (!m) return;
640
628
  let e = (e) => {
641
629
  e.key === "Escape" && h(!1);
642
630
  };
643
631
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
644
- }, D = [m], n[4] = m, n[5] = E, n[6] = D), G(E, D);
645
- let [O] = J(Xe), k, A;
646
- n[7] === l ? (k = n[8], A = n[9]) : (k = H.toArray(l).filter(Ye), A = k.reduce(Je, 0), n[7] = l, n[8] = k, n[9] = A);
647
- let j = r !== void 0 && A > r, M;
632
+ }, E = [m], n[4] = m, n[5] = T, n[6] = E), I(T, E);
633
+ let [D] = R(Ue), O, k;
634
+ n[7] === l ? (O = n[8], k = n[9]) : (O = ne.toArray(l).filter(He), k = O.reduce(Ve, 0), n[7] = l, n[8] = O, n[9] = k);
635
+ let A = r !== void 0 && k > r, te;
648
636
  bb0: {
649
- if (!j || r === void 0) {
650
- M = null;
637
+ if (!A || r === void 0) {
638
+ te = null;
651
639
  break bb0;
652
640
  }
653
641
  let e;
654
- n[10] !== k || n[11] !== r ? (e = $e(k, r), n[10] = k, n[11] = r, n[12] = e) : e = n[12], M = e;
642
+ n[10] !== O || n[11] !== r ? (e = Ke(O, r), n[10] = O, n[11] = r, n[12] = e) : e = n[12], te = e;
655
643
  }
656
- let N = M;
657
- !j && m && h(!1);
658
- let P, F;
659
- if (n[13] !== O || n[14] !== v || n[15] !== m || n[16] !== b ? (P = () => {
644
+ let j = te;
645
+ !A && m && h(!1);
646
+ let M, P;
647
+ if (n[13] !== D || n[14] !== v || n[15] !== m || n[16] !== b ? (M = () => {
660
648
  let e = m && b ? b : v;
661
- O && e && O.parentNode !== e && e.appendChild(O);
662
- }, F = [
649
+ D && e && D.parentNode !== e && e.appendChild(D);
650
+ }, P = [
663
651
  m,
664
652
  v,
665
653
  b,
666
- O
667
- ], n[13] = O, n[14] = v, n[15] = m, n[16] = b, n[17] = P, n[18] = F) : (P = n[17], F = n[18]), K(P, F), k.length === 0) return null;
668
- let I = m ? p.close : p.trigger, L = d === "left" ? "row-reverse" : "row", R;
669
- n[19] !== L || n[20] !== c ? (R = {
670
- ...Ke.root,
654
+ D
655
+ ], n[13] = D, n[14] = v, n[15] = m, n[16] = b, n[17] = M, n[18] = P) : (M = n[17], P = n[18]), re(M, P), O.length === 0) return null;
656
+ let F = m ? p.close : p.trigger, L = d === "left" ? "row-reverse" : "row", z;
657
+ n[19] !== L || n[20] !== c ? (z = {
658
+ ...ze.root,
671
659
  flexDirection: L,
672
660
  ...c
673
- }, n[19] = L, n[20] = c, n[21] = R) : R = n[21];
674
- let z;
675
- n[22] !== u || n[23] !== o || n[24] !== m || n[25] !== j || n[26] !== I ? (z = j && /* @__PURE__ */ Q(pe, { children: [/* @__PURE__ */ Z(e, {
676
- title: I,
677
- children: /* @__PURE__ */ Z(ce, {
678
- ref: T,
661
+ }, n[19] = L, n[20] = c, n[21] = z) : z = n[21];
662
+ let ie;
663
+ n[22] !== u || n[23] !== o || n[24] !== m || n[25] !== A || n[26] !== F ? (ie = A && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(e, {
664
+ title: F,
665
+ children: /* @__PURE__ */ Z(G, {
666
+ ref: w,
679
667
  size: "small",
680
- "aria-label": I,
668
+ "aria-label": F,
681
669
  "aria-pressed": m,
682
- onClick: C,
670
+ onClick: ee,
683
671
  className: m ? "active" : void 0,
684
- sx: { ...m && Ke.triggerActive },
685
- children: m ? /* @__PURE__ */ Z(me, { fontSize: "small" }) : /* @__PURE__ */ Z(u, {
672
+ sx: { ...m && ze.triggerActive },
673
+ children: m ? /* @__PURE__ */ Z(ce, { fontSize: "small" }) : /* @__PURE__ */ Z(u, {
686
674
  fontSize: "small",
687
675
  ...o
688
676
  })
@@ -691,14 +679,14 @@ function qe(t) {
691
679
  orientation: "vertical",
692
680
  flexItem: !0,
693
681
  sx: { mx: .5 }
694
- })] }), n[22] = u, n[23] = o, n[24] = m, n[25] = j, n[26] = I, n[27] = z) : z = n[27];
695
- let B;
696
- n[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Z(Y, {
682
+ })] }), n[22] = u, n[23] = o, n[24] = m, n[25] = A, n[26] = F, n[27] = ie) : ie = n[27];
683
+ let ae;
684
+ n[28] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ Z(H, {
697
685
  ref: y,
698
- sx: Ke.preview
699
- }), n[28] = B) : B = n[28];
700
- let U;
701
- n[29] !== g || n[30] !== d || n[31] !== m || n[32] !== j ? (U = j && /* @__PURE__ */ Z(fe, {
686
+ sx: ze.preview
687
+ }), n[28] = ae) : ae = n[28];
688
+ let B;
689
+ n[29] !== g || n[30] !== d || n[31] !== m || n[32] !== A ? (B = A && /* @__PURE__ */ Z(J, {
702
690
  open: m,
703
691
  anchorEl: g,
704
692
  placement: d === "left" ? "left" : "right",
@@ -713,65 +701,65 @@ function qe(t) {
713
701
  },
714
702
  children: (e) => {
715
703
  let { TransitionProps: t } = e;
716
- return /* @__PURE__ */ Z(se, {
704
+ return /* @__PURE__ */ Z(W, {
717
705
  ...t,
718
706
  style: { transformOrigin: d === "left" ? "right center" : "left center" },
719
- children: /* @__PURE__ */ Z(de, {
707
+ children: /* @__PURE__ */ Z(q, {
720
708
  ref: x,
721
- sx: Ke.paper
709
+ sx: ze.paper
722
710
  })
723
711
  });
724
712
  }
725
- }), n[29] = g, n[30] = d, n[31] = m, n[32] = j, n[33] = U) : U = n[33];
726
- let W;
727
- n[34] !== O || n[35] !== N || n[36] !== k || n[37] !== m ? (W = O ? _e(k.map((e, t) => {
728
- let n = m || !N || N.has(t), r = e.key ?? t;
713
+ }), n[29] = g, n[30] = d, n[31] = m, n[32] = A, n[33] = B) : B = n[33];
714
+ let V;
715
+ n[34] !== D || n[35] !== j || n[36] !== O || n[37] !== m ? (V = D ? de(O.map((e, t) => {
716
+ let n = m || !j || j.has(t), r = e.key ?? t;
729
717
  return /* @__PURE__ */ Z("div", {
730
718
  "data-toolbox-item-visible": n ? "true" : "false",
731
719
  style: { display: n ? "contents" : "none" },
732
720
  children: e
733
721
  }, r);
734
- }), O) : null, n[34] = O, n[35] = N, n[36] = k, n[37] = m, n[38] = W) : W = n[38];
735
- let q;
736
- return n[39] !== R || n[40] !== z || n[41] !== U || n[42] !== W ? (q = /* @__PURE__ */ Q(Y, {
737
- sx: R,
722
+ }), D) : null, n[34] = D, n[35] = j, n[36] = O, n[37] = m, n[38] = V) : V = n[38];
723
+ let U;
724
+ return n[39] !== z || n[40] !== ie || n[41] !== B || n[42] !== V ? (U = /* @__PURE__ */ Q(H, {
725
+ sx: z,
738
726
  children: [
739
- z,
727
+ ie,
728
+ ae,
740
729
  B,
741
- U,
742
- W
730
+ V
743
731
  ]
744
- }), n[39] = R, n[40] = z, n[41] = U, n[42] = W, n[43] = q) : q = n[43], q;
732
+ }), n[39] = z, n[40] = ie, n[41] = B, n[42] = V, n[43] = U) : U = n[43], U;
745
733
  }
746
- function Je(e, t) {
747
- return e + +!Qe(t);
734
+ function Ve(e, t) {
735
+ return e + +!Ge(t);
748
736
  }
749
- function Ye(e) {
750
- return W(e);
737
+ function He(e) {
738
+ return F(e);
751
739
  }
752
- function Xe() {
740
+ function Ue() {
753
741
  if (typeof document > "u") return null;
754
742
  let e = document.createElement("div");
755
743
  return e.style.display = "contents", e;
756
744
  }
757
- function Ze(e) {
745
+ function We(e) {
758
746
  return !e;
759
747
  }
760
- function Qe(e) {
748
+ function Ge(e) {
761
749
  return e.props["data-toolbar-hidden"] === !0;
762
750
  }
763
- function $e(e, t) {
751
+ function Ke(e, t) {
764
752
  let n = [], r = 0;
765
- for (let i = 0; i < e.length && !(r >= t); i++) n.push(i), Qe(e[i]) || r++;
766
- for (; n.length > 0 && Qe(e[n[n.length - 1]]);) n.pop();
753
+ for (let i = 0; i < e.length && !(r >= t); i++) n.push(i), Ge(e[i]) || r++;
754
+ for (; n.length > 0 && Ge(e[n[n.length - 1]]);) n.pop();
767
755
  return new Set(n);
768
756
  }
769
757
  //#endregion
770
758
  //#region src/widgets-v2/note/labels.ts
771
- var et = {
759
+ var qe = {
772
760
  showMore: "Show more",
773
761
  showLess: "Show less"
774
- }, tt = {
762
+ }, Je = {
775
763
  root: {
776
764
  display: "flex",
777
765
  flexDirection: "column",
@@ -797,11 +785,11 @@ var et = {
797
785
  };
798
786
  //#endregion
799
787
  //#region src/widgets-v2/note/widget-note.tsx
800
- function nt(e) {
801
- let t = V(3), { children: n } = e, r;
788
+ function Ye(e) {
789
+ let t = N(3), { children: n } = e, r;
802
790
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = { m: 0 }, t[0] = r) : r = t[0];
803
791
  let i;
804
- return t[1] === n ? i = t[2] : (i = /* @__PURE__ */ Z(X, {
792
+ return t[1] === n ? i = t[2] : (i = /* @__PURE__ */ Z(Y, {
805
793
  variant: "caption",
806
794
  component: "p",
807
795
  color: "inherit",
@@ -809,15 +797,15 @@ function nt(e) {
809
797
  children: n
810
798
  }), t[1] = n, t[2] = i), i;
811
799
  }
812
- var rt = {
813
- h1: nt,
814
- h2: nt,
815
- h3: nt,
816
- h4: nt,
817
- h5: nt,
818
- h6: nt,
819
- p: nt,
820
- a: ({ children: e, href: t }) => /* @__PURE__ */ Z(ue, {
800
+ var Xe = {
801
+ h1: Ye,
802
+ h2: Ye,
803
+ h3: Ye,
804
+ h4: Ye,
805
+ h5: Ye,
806
+ h6: Ye,
807
+ p: Ye,
808
+ a: ({ children: e, href: t }) => /* @__PURE__ */ Z(K, {
821
809
  href: t,
822
810
  target: "_blank",
823
811
  rel: "noopener noreferrer",
@@ -826,139 +814,139 @@ var rt = {
826
814
  children: e
827
815
  })
828
816
  };
829
- function it(e) {
830
- let t = V(7), { lineClamp: n, labels: r, children: i } = e, a = n === void 0 ? 3 : n, o;
831
- t[0] === i ? o = t[1] : (o = /* @__PURE__ */ Z(X, {
817
+ function Ze(e) {
818
+ let t = N(7), { lineClamp: n, labels: r, children: i } = e, a = n === void 0 ? 3 : n, o;
819
+ t[0] === i ? o = t[1] : (o = /* @__PURE__ */ Z(Y, {
832
820
  variant: "caption",
833
821
  component: "div",
834
822
  color: "inherit",
835
823
  children: i
836
824
  }), t[0] = i, t[1] = o);
837
825
  let s;
838
- return t[2] !== i || t[3] !== r || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ Z(st, {
826
+ return t[2] !== i || t[3] !== r || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ Z(et, {
839
827
  lineClamp: a,
840
828
  labels: r,
841
829
  dependency: i,
842
830
  children: o
843
831
  }), t[2] = i, t[3] = r, t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
844
832
  }
845
- function at(e) {
846
- let t = V(7), { content: n, lineClamp: r, labels: i } = e, a = r === void 0 ? 3 : r, o;
847
- t[0] === n ? o = t[1] : (o = /* @__PURE__ */ Z(_, {
833
+ function Qe(e) {
834
+ let t = N(7), { content: n, lineClamp: r, labels: i } = e, a = r === void 0 ? 3 : r, o;
835
+ t[0] === n ? o = t[1] : (o = /* @__PURE__ */ Z(b, {
848
836
  content: n,
849
- components: rt
837
+ components: Xe
850
838
  }), t[0] = n, t[1] = o);
851
839
  let s;
852
- return t[2] !== n || t[3] !== i || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ Z(st, {
840
+ return t[2] !== n || t[3] !== i || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ Z(et, {
853
841
  lineClamp: a,
854
842
  labels: i,
855
843
  dependency: n,
856
844
  children: o
857
845
  }), t[2] = n, t[3] = i, t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
858
846
  }
859
- var ot = Object.assign(it, { Markdown: at });
860
- function st(e) {
861
- let t = V(27), { lineClamp: n, labels: r, dependency: i, children: a } = e, o;
847
+ var $e = Object.assign(Ze, { Markdown: Qe });
848
+ function et(e) {
849
+ let t = N(27), { lineClamp: n, labels: r, dependency: i, children: a } = e, o;
862
850
  t[0] === r ? o = t[1] : (o = {
863
- ...et,
851
+ ...qe,
864
852
  ...r
865
853
  }, t[0] = r, t[1] = o);
866
- let s = o, c = q(null), [l, u] = J(!1), [d, f] = J(!1), p = n <= 0, m;
854
+ let s = o, c = L(null), [l, u] = R(!1), [d, f] = R(!1), p = n <= 0, m;
867
855
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (m = () => {
868
856
  let e = c.current;
869
857
  e && u(e.scrollHeight > e.clientHeight + 1);
870
858
  }, t[2] = m) : m = t[2];
871
- let g = m, _;
872
- t[3] === p ? _ = t[4] : (_ = () => {
859
+ let h = m, g;
860
+ t[3] === p ? g = t[4] : (g = () => {
873
861
  if (p) return;
874
862
  let e = c.current;
875
- if (e) return g(), h(e, g);
876
- }, t[3] = p, t[4] = _);
877
- let v;
878
- t[5] !== p || t[6] !== i ? (v = [
879
- g,
863
+ if (e) return h(), v(e, h);
864
+ }, t[3] = p, t[4] = g);
865
+ let _;
866
+ t[5] !== p || t[6] !== i ? (_ = [
867
+ h,
880
868
  i,
881
869
  p
882
- ], t[5] = p, t[6] = i, t[7] = v) : v = t[7], G(_, v);
870
+ ], t[5] = p, t[6] = i, t[7] = _) : _ = t[7], I(g, _);
883
871
  let y;
884
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (y = () => f(ct), t[8] = y) : y = t[8];
872
+ t[8] === Symbol.for("react.memo_cache_sentinel") ? (y = () => f(tt), t[8] = y) : y = t[8];
885
873
  let b = y, x = !d && !p, S;
886
874
  t[9] !== x || t[10] !== n ? (S = x ? {
887
- ...tt.clamped,
875
+ ...Je.clamped,
888
876
  WebkitLineClamp: n
889
877
  } : null, t[9] = x, t[10] = n, t[11] = S) : S = t[11];
890
- let C = S, w;
891
- t[12] === C ? w = t[13] : (w = C ?? {}, t[12] = C, t[13] = w);
878
+ let ee = S, C;
879
+ t[12] === ee ? C = t[13] : (C = ee ?? {}, t[12] = ee, t[13] = C);
880
+ let w;
881
+ t[14] === C ? w = t[15] : (w = {
882
+ ...Je.text,
883
+ ...C
884
+ }, t[14] = C, t[15] = w);
892
885
  let T;
893
- t[14] === w ? T = t[15] : (T = {
894
- ...tt.text,
895
- ...w
896
- }, t[14] = w, t[15] = T);
897
- let E;
898
- t[16] !== a || t[17] !== T ? (E = /* @__PURE__ */ Z(Y, {
886
+ t[16] !== a || t[17] !== w ? (T = /* @__PURE__ */ Z(H, {
899
887
  ref: c,
900
- sx: T,
888
+ sx: w,
901
889
  children: a
902
- }), t[16] = a, t[17] = T, t[18] = E) : E = t[18];
903
- let D;
904
- t[19] !== s || t[20] !== p || t[21] !== d || t[22] !== l ? (D = !p && (l || d) && /* @__PURE__ */ Z(ue, {
890
+ }), t[16] = a, t[17] = w, t[18] = T) : T = t[18];
891
+ let E;
892
+ t[19] !== s || t[20] !== p || t[21] !== d || t[22] !== l ? (E = !p && (l || d) && /* @__PURE__ */ Z(K, {
905
893
  component: "button",
906
894
  variant: "caption",
907
895
  underline: "none",
908
896
  onClick: b,
909
- sx: tt.toggle,
897
+ sx: Je.toggle,
910
898
  children: d ? s.showLess : s.showMore
911
- }), t[19] = s, t[20] = p, t[21] = d, t[22] = l, t[23] = D) : D = t[23];
912
- let O;
913
- return t[24] !== D || t[25] !== E ? (O = /* @__PURE__ */ Q(Y, {
914
- sx: tt.root,
915
- children: [E, D]
916
- }), t[24] = D, t[25] = E, t[26] = O) : O = t[26], O;
899
+ }), t[19] = s, t[20] = p, t[21] = d, t[22] = l, t[23] = E) : E = t[23];
900
+ let D;
901
+ return t[24] !== E || t[25] !== T ? (D = /* @__PURE__ */ Q(H, {
902
+ sx: Je.root,
903
+ children: [T, E]
904
+ }), t[24] = E, t[25] = T, t[26] = D) : D = t[26], D;
917
905
  }
918
- function ct(e) {
906
+ function tt(e) {
919
907
  return !e;
920
908
  }
921
909
  //#endregion
922
910
  //#region src/widgets-v2/index.ts
923
- var lt = {
924
- Provider: ve,
925
- Wrapper: we,
926
- Actions: ye,
927
- Options: xe,
928
- Content: Oe,
929
- Footer: ke,
930
- Subheader: je,
931
- State: Fe,
932
- SelectionSummary: We,
933
- Toolbox: qe,
934
- Note: ot,
935
- Echart: m,
936
- EchartUI: p,
937
- Searcher: y,
938
- SearcherToggle: v,
939
- StackToggle: E,
940
- ShowAllToggle: S,
941
- ZoomToggle: D,
942
- BrushToggle: x,
943
- RelativeData: b,
944
- Download: O,
945
- FullScreen: C,
946
- LockSelection: w,
947
- ChangeColumn: T,
948
- Formula: A,
949
- FormulaUI: k,
950
- Markdown: M,
951
- MarkdownUI: j,
952
- Spread: P,
953
- SpreadUI: N,
954
- Range: F,
955
- RangeUI: I,
956
- Category: R,
957
- CategoryUI: L,
958
- Table: B,
959
- TableUI: z
911
+ var nt = {
912
+ Provider: s,
913
+ Wrapper: _e,
914
+ Actions: fe,
915
+ Options: me,
916
+ Content: xe,
917
+ Footer: Se,
918
+ Subheader: we,
919
+ State: Oe,
920
+ SelectionSummary: Le,
921
+ Toolbox: Be,
922
+ Note: $e,
923
+ Echart: _,
924
+ EchartUI: g,
925
+ Searcher: c,
926
+ SearcherToggle: o,
927
+ StackToggle: h,
928
+ ShowAllToggle: d,
929
+ ZoomToggle: x,
930
+ BrushToggle: u,
931
+ RelativeData: l,
932
+ Download: S,
933
+ FullScreen: f,
934
+ LockSelection: p,
935
+ ChangeColumn: m,
936
+ Formula: C,
937
+ FormulaUI: ee,
938
+ Markdown: T,
939
+ MarkdownUI: w,
940
+ Spread: D,
941
+ SpreadUI: E,
942
+ Range: O,
943
+ RangeUI: k,
944
+ Category: te,
945
+ CategoryUI: A,
946
+ Table: M,
947
+ TableUI: j
960
948
  };
961
949
  //#endregion
962
- export { g as DEFAULT_INIT_OPTS, et as DEFAULT_NOTE_LABELS, He as DEFAULT_SELECTION_SUMMARY_LABELS, Ne as DEFAULT_STATE_LABELS, Ge as DEFAULT_TOOLBOX_LABELS, Ce as DEFAULT_WRAPPER_LABELS, lt as Widget };
950
+ export { y as DEFAULT_INIT_OPTS, qe as DEFAULT_NOTE_LABELS, Fe as DEFAULT_SELECTION_SUMMARY_LABELS, Ee as DEFAULT_STATE_LABELS, Re as DEFAULT_TOOLBOX_LABELS, ge as DEFAULT_WRAPPER_LABELS, nt as Widget };
963
951
 
964
952
  //# sourceMappingURL=widgets-v2.js.map