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