@carto/ps-react-ui 4.9.1 → 4.11.1

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