serverside_pivot 0.0.96 → 0.0.98

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 (52) hide show
  1. package/README.md +5 -4
  2. package/dist/react/chunks/ContextMenu-DQGCdUhU.mjs +211 -0
  3. package/dist/react/chunks/{DetailDrawer-DgKSC5Vu.mjs → DetailDrawer-yMFRd6Td.mjs} +1 -1
  4. package/dist/react/chunks/{DetailSidePanel-CC5Dugyl.mjs → DetailSidePanel-B6fYMnn7.mjs} +1 -1
  5. package/dist/react/chunks/{DetailSurfaceContent-CrQVHlcU.mjs → DetailSurfaceContent-B9cfLYti.mjs} +1 -1
  6. package/dist/react/chunks/{ECharts2dRenderer-46gLrUdf.mjs → ECharts2dRenderer-ER6rHtch.mjs} +1 -1
  7. package/dist/react/chunks/{ECharts3dRenderer-Dg4ta5Bl.mjs → ECharts3dRenderer-BMVfbpXH.mjs} +1 -1
  8. package/dist/react/chunks/{EditSidePanel-CkShaByb.mjs → EditSidePanel-BjJd5BaX.mjs} +1 -1
  9. package/dist/react/chunks/{InlineDetailPanel-mnwjoD0I.mjs → InlineDetailPanel-Bbkpv9jz.mjs} +1 -1
  10. package/dist/react/chunks/{PivotCharts-MX-Z7DlR.mjs → PivotCharts-P5cBJcwu.mjs} +5 -3
  11. package/dist/react/chunks/{ReportEditor-U0E42xKL.mjs → ReportEditor-P4UZ97Ik.mjs} +174 -175
  12. package/dist/react/chunks/{SidebarPanel-BzRW1Kgq.mjs → SidebarPanel-DRoxHRhK.mjs} +1039 -1024
  13. package/dist/react/chunks/{SparklineDetailGraph-35Tim_8B.mjs → SparklineDetailGraph-C9UX-feP.mjs} +22 -22
  14. package/dist/react/chunks/clientCoreRuntime-n2guUxhp.mjs +790 -0
  15. package/dist/react/chunks/{installCanvasRenderer-DRq0xpXO.mjs → installCanvasRenderer-BR0XmdVX.mjs} +1 -1
  16. package/dist/react/chunks/{react-CL4GbEOd.mjs → react-B5JcZShu.mjs} +17394 -13825
  17. package/dist/react/chunks/{xlsx.mini.min-kfIgXMVB.mjs → xlsx.mini.min-YUTWASKG.mjs} +1 -1
  18. package/dist/react/components/DashTanstackPivot.react.d.ts +6 -0
  19. package/dist/react/components/GlobalSearchInput.d.ts +17 -0
  20. package/dist/react/components/LiveCellDisplay.d.ts +25 -0
  21. package/dist/react/components/LiveExplainSidePanel.d.ts +15 -0
  22. package/dist/react/components/LiveStreamDiffBar.d.ts +15 -0
  23. package/dist/react/hooks/useDismiss.d.ts +43 -0
  24. package/dist/react/hooks/usePivotNormalization.d.ts +4 -0
  25. package/dist/react/hooks/usePrefersReducedMotion.d.ts +8 -0
  26. package/dist/react/hooks/useRenderHelpers.d.ts +1 -1
  27. package/dist/react/hooks/useRowCache.d.ts +2 -0
  28. package/dist/react/hooks/useServerSideRowModel.d.ts +1 -1
  29. package/dist/react/index.mjs +28 -19
  30. package/dist/react/react.d.ts +6 -1
  31. package/dist/react/runtime/client/clientPivotTransport.d.ts +16 -0
  32. package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +8 -1
  33. package/dist/react/runtime/client/clientSubscriptionEngine.d.ts +88 -0
  34. package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +22 -0
  35. package/dist/react/runtime/client/index.d.ts +1 -0
  36. package/dist/react/runtime/client/types.d.ts +6 -0
  37. package/dist/react/runtime/core/clientCoreRuntime.d.ts +46 -0
  38. package/dist/react/runtime/core/duckdbSqlEmitter.d.ts +37 -0
  39. package/dist/react/runtime/core/semanticIr.generated.d.ts +196 -0
  40. package/dist/react/runtime/responseQueue.d.ts +21 -0
  41. package/dist/react/runtime/rowIdentity.d.ts +20 -0
  42. package/dist/react/runtime/runtimeDomains.d.ts +8 -1
  43. package/dist/react/runtime/streamingTypes.d.ts +182 -0
  44. package/dist/react/runtime/useRuntimeViewportTableData.d.ts +1 -1
  45. package/dist/react/runtime/useViewportSubscriptionStore.d.ts +112 -0
  46. package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +1 -1
  47. package/dist/react/utils/helpers.d.ts +1 -1
  48. package/dist/react/utils/pivotLayoutUtils.d.ts +3 -3
  49. package/dist/react/utils/rowMotion.d.ts +108 -0
  50. package/dist/react/utils/styles.d.ts +1 -0
  51. package/package.json +6 -8
  52. package/dist/react/chunks/ContextMenu-DJuS4qTZ.mjs +0 -198
package/README.md CHANGED
@@ -38,7 +38,7 @@ pnpm add serverside_pivot
38
38
 
39
39
  ### Peer Dependencies
40
40
  ```bash
41
- npm install react react-dom styled-components
41
+ npm install react react-dom
42
42
  ```
43
43
 
44
44
  ---
@@ -166,9 +166,10 @@ export function EnterpriseAnalytics() {
166
166
  ## 🌐 Multi-Framework Ecosystem
167
167
 
168
168
  `serverside_pivot` is part of the `serverside-pivot` ecosystem:
169
- - **Standalone React**: `serverside_pivot` (this package)
170
- - **Python Plotly Dash**: `pip install serverside-pivot`
171
- - **Streamlit**: `pip install "serverside-pivot[streamlit]"`
169
+ - **Standalone React**: `npm install serverside_pivot` (`import { PivotWorkspace } from 'serverside_pivot/react'`)
170
+ - **Core Python Engine**: `pip install serverside-pivot` (`import pivot_engine`)
171
+ - **Python Plotly Dash**: `pip install "serverside-pivot[dash]"` (`from serverside_pivot import DashTanstackPivot`)
172
+ - **Streamlit**: `pip install "serverside-pivot[streamlit]"` (`from streamlit_pivot import st_serverside_pivot`)
172
173
  - **Backend Pushdown**: Powered by **DuckDB**, **PyArrow**, and **Ibis** (Snowflake, BigQuery, Postgres, ClickHouse, MotherDuck, Databricks, Trino)
173
174
 
174
175
  For comprehensive documentation, live Python/Dash showcases, and interactive examples, visit the **[GitHub Repository](https://github.com/Ramzy22/serverside_pivot)**.
@@ -0,0 +1,211 @@
1
+ import f, { useState as C, useRef as M, useCallback as b, useEffect as I, useLayoutEffect as O } from "react";
2
+ import { U as $, W as j, I as T } from "./react-B5JcZShu.mjs";
3
+ const X = 80, q = 220, J = 16, _ = ({ actions: n, theme: l, onClose: y, itemRefs: c, onItemMouseEnter: x, onKeyDown: A }) => {
4
+ const W = n.some(
5
+ /** @param {any} [action] @returns {boolean} */
6
+ (t) => !!(t && t !== "separator" && t.icon)
7
+ );
8
+ return /* @__PURE__ */ f.createElement(f.Fragment, null, n.map(
9
+ /** @param {any} [action] @param {any} [i] @returns {any} */
10
+ (t, d) => {
11
+ if (t === "separator")
12
+ return /* @__PURE__ */ f.createElement(
13
+ "div",
14
+ {
15
+ key: d,
16
+ role: "presentation",
17
+ style: { height: "1px", background: (l == null ? void 0 : l.border) || "var(--sp-border, #e2e8f0)", margin: "4px 0" }
18
+ }
19
+ );
20
+ const a = !!t.disabled, v = Array.isArray(t.children) && t.children.length > 0;
21
+ return /* @__PURE__ */ f.createElement(
22
+ "div",
23
+ {
24
+ key: d,
25
+ ref: (u) => {
26
+ c && (c.current[d] = u);
27
+ },
28
+ className: "sp-menu-item",
29
+ role: "menuitem",
30
+ "aria-haspopup": v ? "menu" : void 0,
31
+ "aria-disabled": a || void 0,
32
+ tabIndex: a ? -1 : 0,
33
+ title: t.title || (typeof t.label == "string" ? t.label : void 0),
34
+ onMouseEnter: () => {
35
+ x && x(d, v, a);
36
+ },
37
+ onClick: (u) => {
38
+ if (a || v) {
39
+ u.stopPropagation();
40
+ return;
41
+ }
42
+ typeof t.onClick == "function" && t.onClick(), y();
43
+ },
44
+ onKeyDown: (u) => {
45
+ a || (u.key === "Enter" || u.key === " " ? (u.preventDefault(), u.stopPropagation(), !v && typeof t.onClick == "function" && t.onClick(), v ? x && x(d, !0, !1) : y()) : A && A(u, d));
46
+ },
47
+ style: {
48
+ padding: "7px 10px",
49
+ cursor: a ? "not-allowed" : "pointer",
50
+ display: "flex",
51
+ alignItems: "center",
52
+ gap: "8px",
53
+ color: a ? (l == null ? void 0 : l.textSec) || "var(--sp-text-sec, #64748b)" : (l == null ? void 0 : l.text) || "var(--sp-text, #0f172a)",
54
+ opacity: a ? 0.48 : 1,
55
+ userSelect: "none"
56
+ }
57
+ },
58
+ (t.icon || W) && /* @__PURE__ */ f.createElement("span", { "aria-hidden": "true", style: { color: (l == null ? void 0 : l.textSec) || "var(--sp-text-sec, #64748b)", display: "inline-flex", alignItems: "center", justifyContent: "center", width: J, flexShrink: 0 } }, t.icon || null),
59
+ /* @__PURE__ */ f.createElement("span", { style: { flex: 1, minWidth: 0, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" } }, t.label),
60
+ v && /* @__PURE__ */ f.createElement("span", { "aria-hidden": "true", style: { color: (l == null ? void 0 : l.textSec) || "var(--sp-text-sec, #64748b)", display: "inline-flex", alignItems: "center", marginLeft: "4px" } }, T && T.ChevronRight ? /* @__PURE__ */ f.createElement(T.ChevronRight, null) : ">")
61
+ );
62
+ }
63
+ ));
64
+ }, B = (n) => ({
65
+ background: `var(--sp-glass-bg, ${(n == null ? void 0 : n.surfaceBg) || (n == null ? void 0 : n.background) || "#fff"})`,
66
+ backdropFilter: "blur(18px) saturate(180%)",
67
+ WebkitBackdropFilter: "blur(18px) saturate(180%)",
68
+ border: `1px solid ${(n == null ? void 0 : n.border) || "var(--sp-border, #cbd5e1)"}`,
69
+ boxShadow: (n == null ? void 0 : n.shadow) || (n == null ? void 0 : n.shadowMd) || "0 14px 36px rgba(0,0,0,0.18)",
70
+ padding: "5px",
71
+ borderRadius: "var(--sp-radius-lg, 10px)",
72
+ fontSize: "var(--sp-fs-base, 13px)",
73
+ minWidth: "200px",
74
+ // Labels stay on one line; the menu widens to fit them, up to the viewport.
75
+ maxWidth: "min(380px, calc(100vw - 16px))",
76
+ maxHeight: "calc(100vh - 16px)",
77
+ overflowY: "auto",
78
+ pointerEvents: "auto",
79
+ color: (n == null ? void 0 : n.text) || "var(--sp-text, #0f172a)"
80
+ }), Z = ({ x: n, y: l, onClose: y, actions: c, theme: x }) => {
81
+ const [A, W] = C({ x: n, y: l }), [t, d] = C(null), [a, v] = C(null), u = M(null), h = M(null), m = M([]), k = M(null), E = b((e, r = 1) => {
82
+ const o = c.length;
83
+ for (let s = 0; s < o; s++) {
84
+ const p = (e + s * r + o * 2) % o, i = c[p];
85
+ if (i && i !== "separator" && !i.disabled && m.current[p]) {
86
+ m.current[p].focus();
87
+ return;
88
+ }
89
+ }
90
+ }, [c]);
91
+ I(() => {
92
+ E(0, 1);
93
+ }, [E]), I(() => () => clearTimeout(k.current), []);
94
+ const z = b(() => {
95
+ clearTimeout(k.current), k.current = setTimeout(() => {
96
+ d(null), v(null);
97
+ }, q);
98
+ }, []), S = b(() => {
99
+ clearTimeout(k.current);
100
+ }, []), L = b((e) => {
101
+ clearTimeout(k.current), k.current = setTimeout(() => {
102
+ d(e);
103
+ const r = m.current[e];
104
+ r && v(r.getBoundingClientRect());
105
+ }, t !== null ? 0 : X);
106
+ }, [t]), F = b((e, r, o) => {
107
+ o || (r ? L(e) : (S(), d(null), v(null)));
108
+ }, [L, S]), K = b((e, r) => {
109
+ if (e.key === "Escape")
110
+ e.preventDefault(), y();
111
+ else if (e.key === "ArrowDown")
112
+ e.preventDefault(), E(r + 1, 1);
113
+ else if (e.key === "ArrowUp")
114
+ e.preventDefault(), E(r - 1, -1);
115
+ else if (e.key === "Home")
116
+ e.preventDefault(), E(0, 1);
117
+ else if (e.key === "End")
118
+ e.preventDefault(), E(c.length - 1, -1);
119
+ else if (e.key === "ArrowRight" && t === null && Number.isFinite(r) && r >= 0) {
120
+ const o = c[r];
121
+ o && o !== "separator" && Array.isArray(o.children) && (e.preventDefault(), L(r));
122
+ }
123
+ }, [y, E, c, t, L]);
124
+ O(() => {
125
+ const e = () => {
126
+ const r = document.documentElement.clientWidth || window.innerWidth, o = document.documentElement.clientHeight || window.innerHeight, s = u.current, p = s && s.offsetWidth || 210, i = Math.min(s && s.offsetHeight || c.length * 32 + 20, o - 16), g = 8, R = Math.max(g, Math.min(n, r - p - g)), G = Math.max(g, Math.min(l, o - i - g));
127
+ W({ x: R, y: G });
128
+ };
129
+ return e(), window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
130
+ window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
131
+ };
132
+ }, [n, l, c.length]);
133
+ const [N, U] = C({ left: 0, top: 0 });
134
+ O(() => {
135
+ if (!a || t === null) return;
136
+ const e = h.current;
137
+ if (!e) return;
138
+ const r = document.documentElement.clientWidth || window.innerWidth, o = document.documentElement.clientHeight || window.innerHeight, s = e.offsetWidth || 200, p = Math.min(e.offsetHeight || 200, o - 16), i = 8;
139
+ let g = a.right + 2;
140
+ g + s > r - i && (g = a.left - s - 2);
141
+ let R = a.top - 6;
142
+ R + p > o - i && (R = o - p - i), U({ left: Math.max(i, g), top: Math.max(i, R) });
143
+ }, [a, t]);
144
+ const P = t !== null ? c[t] : null, w = P && Array.isArray(P.children) ? P.children : null, D = M([]), H = b((e, r = 1) => {
145
+ if (!w) return;
146
+ const o = w.length;
147
+ for (let s = 0; s < o; s++) {
148
+ const p = (e + s * r + o * 2) % o, i = w[p];
149
+ if (i && i !== "separator" && !i.disabled && D.current[p]) {
150
+ D.current[p].focus();
151
+ return;
152
+ }
153
+ }
154
+ }, [w]);
155
+ I(() => {
156
+ w && (D.current = D.current.slice(0, w.length));
157
+ }, [w]);
158
+ const Y = b((e, r) => {
159
+ e.key === "Escape" || e.key === "ArrowLeft" ? (e.preventDefault(), e.stopPropagation(), d(null), v(null), t !== null && m.current[t] && m.current[t].focus()) : e.key === "ArrowDown" ? (e.preventDefault(), H(r + 1, 1)) : e.key === "ArrowUp" && (e.preventDefault(), H(r - 1, -1));
160
+ }, [H, t]);
161
+ return $({
162
+ open: !0,
163
+ onClose: y,
164
+ refs: [u, h],
165
+ restoreFocus: !0
166
+ }), /* @__PURE__ */ f.createElement(j, { theme: x, zIndex: 10001 }, /* @__PURE__ */ f.createElement(
167
+ "div",
168
+ {
169
+ ref: u,
170
+ className: "sp-menu-surface",
171
+ role: "menu",
172
+ style: { position: "fixed", top: A.y, left: A.x, zIndex: 10001, ...B(x) },
173
+ onMouseLeave: z,
174
+ onMouseEnter: S
175
+ },
176
+ /* @__PURE__ */ f.createElement(
177
+ _,
178
+ {
179
+ actions: c,
180
+ theme: x,
181
+ onClose: y,
182
+ itemRefs: m,
183
+ onItemMouseEnter: F,
184
+ onKeyDown: K
185
+ }
186
+ )
187
+ ), w && /* @__PURE__ */ f.createElement(
188
+ "div",
189
+ {
190
+ ref: h,
191
+ className: "sp-menu-surface",
192
+ role: "menu",
193
+ style: { position: "fixed", top: N.top, left: N.left, zIndex: 10002, ...B(x) },
194
+ onMouseEnter: S,
195
+ onMouseLeave: z
196
+ },
197
+ /* @__PURE__ */ f.createElement(
198
+ _,
199
+ {
200
+ actions: w,
201
+ theme: x,
202
+ onClose: y,
203
+ itemRefs: D,
204
+ onKeyDown: Y
205
+ }
206
+ )
207
+ ));
208
+ };
209
+ export {
210
+ Z as default
211
+ };
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as u } from "./DetailSurfaceContent-CrQVHlcU.mjs";
2
+ import { D as u } from "./DetailSurfaceContent-B9cfLYti.mjs";
3
3
  function b({
4
4
  detailState: e,
5
5
  onClose: t,
@@ -1,5 +1,5 @@
1
1
  import a from "react";
2
- import { D as d } from "./DetailSurfaceContent-CrQVHlcU.mjs";
2
+ import { D as d } from "./DetailSurfaceContent-B9cfLYti.mjs";
3
3
  function m({
4
4
  detailState: r,
5
5
  onClose: i,
@@ -1,5 +1,5 @@
1
1
  import t, { useState as z, useEffect as D } from "react";
2
- import { I as c } from "./react-CL4GbEOd.mjs";
2
+ import { I as c } from "./react-B5JcZShu.mjs";
3
3
  function j({
4
4
  detailState: n,
5
5
  onClose: S,
@@ -1,5 +1,5 @@
1
1
  import or from "react";
2
- import { r as Se, i as X, M as Le, U as va, a as N, S as gt, R as pt, b as _t, c as da, _ as O, A as it, d as sr, e as ee, p as lr, f as ha, L as ur, g as ae, h as cr, j as vr, k as dr, l as fa, m as ga, n as Bt, o as pa, q as ma, s as Yt, t as F, C as kt, u as re, v as hr, w as ya, x as fr, y as ne, z as nt, B as at, D as ie, E as G, F as T, G as Rt, H as rt, I as Y, J as xa, K as oe, N as gr, O as pr, P as se, Q as Ce, T as Aa, V as mt, W as mr, X as yr, Y as Mt, Z as dt, $ as Vt, a0 as ba, a1 as xr, a2 as le, a3 as Nt, a4 as Sa, a5 as Gt, a6 as Ar, a7 as br, a8 as Sr, a9 as La, aa as Ca, ab as Lr, ac as Cr, ad as _r, ae as Mr, af as ht, ag as ue, ah as _a, ai as U, aj as et, ak as wr, al as Tr, am as Ma, an as Pr, ao as _e, ap as Dr, aq as Me, ar as we, as as Ir, at as Xt, au as Or, av as Te, aw as Er, ax as Br, ay as kr, az as Pe, aA as Rr, aB as Nr, aC as Gr, aD as Wr, aE as Vr, aF as De, aG as Fr, aH as $t, aI as wa, aJ as Ta, aK as ce, aL as Lt, aM as Pa, aN as Da, aO as Ia, aP as zr, aQ as Ur, aR as Hr, aS as ve, aT as wt, aU as ft, aV as Yr, aW as Xr, aX as $r, aY as Kr, aZ as Oa, a_ as Zr, a$ as Ea, b0 as ut, b1 as Tt, b2 as Ie, b3 as Oe, b4 as qr, b5 as jr, b6 as Qr, b7 as Jr, b8 as de, b9 as Kt, ba as tn, bb as Pt, bc as en, bd as an, be as rn, bf as nn, bg as on, bh as Ba, bi as ka, bj as Wt, bk as ct, bl as Ee, bm as Ra, bn as Be, bo as sn, bp as ln, bq as he, br as Na, bs as un, bt as Ft, bu as Ga, bv as k, bw as Dt, bx as Wa, by as cn, bz as vn, bA as dn, bB as hn, bC as ke, bD as fn, bE as gn, bF as pn, bG as mn, bH as yn, bI as It, bJ as xn, bK as An, bL as bn, bM as J, bN as Sn, bO as Ln, bP as Cn, bQ as _n, bR as Mn, bS as wn, bT as Re, bU as Tn, bV as Va, bW as Pn, bX as Dn, bY as In, bZ as On, b_ as En, b$ as Bn, c0 as kn, c1 as Rn, c2 as Nn, c3 as Gn, c4 as Wn } from "./installCanvasRenderer-DRq0xpXO.mjs";
2
+ import { r as Se, i as X, M as Le, U as va, a as N, S as gt, R as pt, b as _t, c as da, _ as O, A as it, d as sr, e as ee, p as lr, f as ha, L as ur, g as ae, h as cr, j as vr, k as dr, l as fa, m as ga, n as Bt, o as pa, q as ma, s as Yt, t as F, C as kt, u as re, v as hr, w as ya, x as fr, y as ne, z as nt, B as at, D as ie, E as G, F as T, G as Rt, H as rt, I as Y, J as xa, K as oe, N as gr, O as pr, P as se, Q as Ce, T as Aa, V as mt, W as mr, X as yr, Y as Mt, Z as dt, $ as Vt, a0 as ba, a1 as xr, a2 as le, a3 as Nt, a4 as Sa, a5 as Gt, a6 as Ar, a7 as br, a8 as Sr, a9 as La, aa as Ca, ab as Lr, ac as Cr, ad as _r, ae as Mr, af as ht, ag as ue, ah as _a, ai as U, aj as et, ak as wr, al as Tr, am as Ma, an as Pr, ao as _e, ap as Dr, aq as Me, ar as we, as as Ir, at as Xt, au as Or, av as Te, aw as Er, ax as Br, ay as kr, az as Pe, aA as Rr, aB as Nr, aC as Gr, aD as Wr, aE as Vr, aF as De, aG as Fr, aH as $t, aI as wa, aJ as Ta, aK as ce, aL as Lt, aM as Pa, aN as Da, aO as Ia, aP as zr, aQ as Ur, aR as Hr, aS as ve, aT as wt, aU as ft, aV as Yr, aW as Xr, aX as $r, aY as Kr, aZ as Oa, a_ as Zr, a$ as Ea, b0 as ut, b1 as Tt, b2 as Ie, b3 as Oe, b4 as qr, b5 as jr, b6 as Qr, b7 as Jr, b8 as de, b9 as Kt, ba as tn, bb as Pt, bc as en, bd as an, be as rn, bf as nn, bg as on, bh as Ba, bi as ka, bj as Wt, bk as ct, bl as Ee, bm as Ra, bn as Be, bo as sn, bp as ln, bq as he, br as Na, bs as un, bt as Ft, bu as Ga, bv as k, bw as Dt, bx as Wa, by as cn, bz as vn, bA as dn, bB as hn, bC as ke, bD as fn, bE as gn, bF as pn, bG as mn, bH as yn, bI as It, bJ as xn, bK as An, bL as bn, bM as J, bN as Sn, bO as Ln, bP as Cn, bQ as _n, bR as Mn, bS as wn, bT as Re, bU as Tn, bV as Va, bW as Pn, bX as Dn, bY as In, bZ as On, b_ as En, b$ as Bn, c0 as kn, c1 as Rn, c2 as Nn, c3 as Gn, c4 as Wn } from "./installCanvasRenderer-BR0XmdVX.mjs";
3
3
  function Vn(a, t) {
4
4
  var e = a.mapDimensionsAll("defaultedLabel"), r = e.length;
5
5
  if (r === 1) {
@@ -1,5 +1,5 @@
1
1
  import bo from "react";
2
- import { c5 as cn, b3 as Ni, c6 as wo, ai as vt, c7 as dn, ap as Ao, c8 as Xe, P as Lo, c9 as vn, ca as ii, cb as Co, cc as Mo, cd as Do, ce as sr, bh as Xi, aq as pn, cf as Po, c as mn, aS as Ro, a3 as Or, E as _n, F as tt, cg as No, ch as ni, ci as gn, cj as Oo, ck as Io, cl as Bo, a1 as Fo, Y as yn, aL as Oi, Z as xn, cm as Uo, bw as Zr, c4 as ba, c1 as zo, cn as Ho, co as wa, A as ji, a4 as Yr, C as qi, bm as Aa, ae as La, bN as Ca, cp as Go, K as Kr, cq as Vo, cr as ko, cs as Wo, ct as Xo, cu as jo, cv as qo, cw as Zo, cx as Yo, cy as Ko, cz as Qo, cA as Jo, cB as $o, cC as es, cD as Ma, cE as ts, cF as rs, cG as is, cH as ns, cI as as, cJ as Zi, cK as os, cL as ss, cM as Tn, cN as ls, cO as us, cP as fs, cQ as hs, cR as cs, cS as ds, cT as vs, cU as ps, cV as ms, cW as _s, cX as gs, cY as ys, cZ as xs, c_ as Ts, c$ as Es, d0 as Ss, ac as bs, d1 as ws, d2 as As, d3 as Ls, d4 as Cs, d5 as Ms, d6 as Ds, i as rt, V as En, d7 as Ps, d8 as Rs, d9 as Da, R as Pa, da as Ns, db as Yi, dc as Os, dd as xr, de as Sn, aK as Ra, df as Is, dg as Bs, dh as Fs, aj as at, di as Us, bO as Fr, bP as Ur, dj as Na, dk as zs, dl as Hs, dm as Gs, as as Oa, dn as Ia, aJ as Vs, dp as ks, dq as Ws, bL as Xs, al as js, bo as qs, b$ as Zs, c0 as Ys, c2 as Ks, c3 as Qs } from "./installCanvasRenderer-DRq0xpXO.mjs";
2
+ import { c5 as cn, b3 as Ni, c6 as wo, ai as vt, c7 as dn, ap as Ao, c8 as Xe, P as Lo, c9 as vn, ca as ii, cb as Co, cc as Mo, cd as Do, ce as sr, bh as Xi, aq as pn, cf as Po, c as mn, aS as Ro, a3 as Or, E as _n, F as tt, cg as No, ch as ni, ci as gn, cj as Oo, ck as Io, cl as Bo, a1 as Fo, Y as yn, aL as Oi, Z as xn, cm as Uo, bw as Zr, c4 as ba, c1 as zo, cn as Ho, co as wa, A as ji, a4 as Yr, C as qi, bm as Aa, ae as La, bN as Ca, cp as Go, K as Kr, cq as Vo, cr as ko, cs as Wo, ct as Xo, cu as jo, cv as qo, cw as Zo, cx as Yo, cy as Ko, cz as Qo, cA as Jo, cB as $o, cC as es, cD as Ma, cE as ts, cF as rs, cG as is, cH as ns, cI as as, cJ as Zi, cK as os, cL as ss, cM as Tn, cN as ls, cO as us, cP as fs, cQ as hs, cR as cs, cS as ds, cT as vs, cU as ps, cV as ms, cW as _s, cX as gs, cY as ys, cZ as xs, c_ as Ts, c$ as Es, d0 as Ss, ac as bs, d1 as ws, d2 as As, d3 as Ls, d4 as Cs, d5 as Ms, d6 as Ds, i as rt, V as En, d7 as Ps, d8 as Rs, d9 as Da, R as Pa, da as Ns, db as Yi, dc as Os, dd as xr, de as Sn, aK as Ra, df as Is, dg as Bs, dh as Fs, aj as at, di as Us, bO as Fr, bP as Ur, dj as Na, dk as zs, dl as Hs, dm as Gs, as as Oa, dn as Ia, aJ as Vs, dp as ks, dq as Ws, bL as Xs, al as js, bo as qs, b$ as Zs, c0 as Ys, c2 as Ks, c3 as Qs } from "./installCanvasRenderer-BR0XmdVX.mjs";
3
3
  var $t = Math.PI * 2, _t = Co.CMD, Js = ["top", "right", "bottom", "left"];
4
4
  function $s(e, t, r, i, n) {
5
5
  var a = r.width, o = r.height;
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { I as g } from "./react-CL4GbEOd.mjs";
2
+ import { I as g } from "./react-B5JcZShu.mjs";
3
3
  const s = (r, a = 4) => {
4
4
  if (r == null || r === "") return "--";
5
5
  const p = Number(r);
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as p } from "./DetailSurfaceContent-CrQVHlcU.mjs";
2
+ import { D as p } from "./DetailSurfaceContent-B9cfLYti.mjs";
3
3
  function f({
4
4
  detailState: r,
5
5
  onClose: t,
@@ -1,6 +1,6 @@
1
1
  import e, { useRef as Fe, useState as _, useLayoutEffect as Fr, useMemo as st, useEffect as He, useCallback as je } from "react";
2
2
  import { createPortal as pn } from "react-dom";
3
- import { I as at, T as et, C as ir, r as Zr, c as dn, a as zr, n as _t, e as Lt, t as me, l as xn, b as Ce, d as fn, f as Or, h as mn, p as pr, i as Yr, j as Vr, k as gr, m as _r, o as Bt, M as Xr, q as jr, s as Lr, u as gn, v as yn, w as bn, x as hn, y as qr, z as Qr, A as vn, B as En, V as kn, D as Jr, E as en, F as wn, G as yr, H as Sn, J as Mn, K as An, L as Cn, N as Tr, O as $n, P as Wn, Q as zn, R as Gr, S as Ln } from "./react-CL4GbEOd.mjs";
3
+ import { I as at, T as et, C as ir, r as Zr, c as dn, a as zr, n as _t, e as Lt, t as me, l as xn, b as Ce, d as fn, f as Or, h as mn, p as pr, i as Yr, j as Vr, k as gr, m as _r, o as Bt, M as Xr, q as jr, s as Lr, u as gn, v as yn, w as bn, x as hn, y as qr, z as Qr, A as vn, B as En, V as kn, D as Jr, E as en, F as wn, G as yr, H as Sn, J as Mn, K as An, L as Cn, N as Tr, O as $n, P as Wn, Q as zn, R as Gr, S as Ln } from "./react-B5JcZShu.mjs";
4
4
  function Bn(t, n, o) {
5
5
  const m = Math.min(n.width, Math.max(0, o.width - 16)), h = Math.max(0, o.height - 8 - t.bottom - 6), S = Math.max(0, t.top - 6 - 8), $ = n.height > h && S > h, R = $ ? S : h, C = Math.min(n.height, R);
6
6
  return {
@@ -381,10 +381,10 @@ const Rr = [
381
381
  `)}`], { type: "text/csv;charset=utf-8" }), `${n}.csv`);
382
382
  }, la = /* @__PURE__ */ new Set(["bar3d", "line3d", "scatter3d", "range", "boxplot", "nightingale"]), oa = /* @__PURE__ */ new Set(["bar3d", "line3d", "scatter3d"]), ia = e.lazy(() => import(
383
383
  /* webpackChunkName: "pivot-echarts-2d" */
384
- "./ECharts2dRenderer-46gLrUdf.mjs"
384
+ "./ECharts2dRenderer-ER6rHtch.mjs"
385
385
  )), sa = e.lazy(() => import(
386
386
  /* webpackChunkName: "pivot-echarts-3d" */
387
- "./ECharts3dRenderer-Dg4ta5Bl.mjs"
387
+ "./ECharts3dRenderer-BMVfbpXH.mjs"
388
388
  )), lr = ({ chartType: t, echartsRef: n, option: o }) => {
389
389
  const i = oa.has(t) ? sa : ia;
390
390
  return /* @__PURE__ */ e.createElement(e.Suspense, { fallback: /* @__PURE__ */ e.createElement("div", { "aria-label": "Loading chart", style: { width: "100%", height: "100%" } }) }, /* @__PURE__ */ e.createElement(i, { echartsRef: n, option: o }));
@@ -4125,6 +4125,8 @@ const Rr = [
4125
4125
  "div",
4126
4126
  {
4127
4127
  ref: le,
4128
+ "data-pivot-workspace-root": "true",
4129
+ className: "sp-menu-surface",
4128
4130
  role: "menu",
4129
4131
  "aria-label": "Chart export formats",
4130
4132
  style: {