serverside_pivot 0.0.95 → 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 (63) hide show
  1. package/README.md +5 -4
  2. package/dist/react/chunks/ContextMenu-DQGCdUhU.mjs +211 -0
  3. package/dist/react/chunks/{DetailDrawer-DCKIxSpW.mjs → DetailDrawer-yMFRd6Td.mjs} +1 -1
  4. package/dist/react/chunks/{DetailSidePanel-DgUWPBQk.mjs → DetailSidePanel-B6fYMnn7.mjs} +1 -1
  5. package/dist/react/chunks/{DetailSurfaceContent-BEL6xuaZ.mjs → DetailSurfaceContent-B9cfLYti.mjs} +52 -53
  6. package/dist/react/chunks/{ECharts2dRenderer-Dgkp9_1P.mjs → ECharts2dRenderer-ER6rHtch.mjs} +1 -1
  7. package/dist/react/chunks/{ECharts3dRenderer-70VOp8V0.mjs → ECharts3dRenderer-BMVfbpXH.mjs} +1 -1
  8. package/dist/react/chunks/{EditSidePanel-CygqVXLX.mjs → EditSidePanel-BjJd5BaX.mjs} +1 -1
  9. package/dist/react/chunks/{InlineDetailPanel-BUBRWdFW.mjs → InlineDetailPanel-Bbkpv9jz.mjs} +1 -1
  10. package/dist/react/chunks/{PivotCharts-VX5-mEEp.mjs → PivotCharts-P5cBJcwu.mjs} +1209 -1193
  11. package/dist/react/chunks/{ReportEditor-B5j-CU9-.mjs → ReportEditor-P4UZ97Ik.mjs} +493 -468
  12. package/dist/react/chunks/SidebarPanel-DRoxHRhK.mjs +3959 -0
  13. package/dist/react/chunks/{SparklineDetailGraph-Cfe2KcOp.mjs → SparklineDetailGraph-C9UX-feP.mjs} +22 -22
  14. package/dist/react/chunks/clientCoreRuntime-n2guUxhp.mjs +790 -0
  15. package/dist/react/chunks/{installCanvasRenderer-C4h5pc1p.mjs → installCanvasRenderer-BR0XmdVX.mjs} +1 -1
  16. package/dist/react/chunks/react-B5JcZShu.mjs +36775 -0
  17. package/dist/react/chunks/{xlsx.mini.min-CzdkdH3N.mjs → xlsx.mini.min-YUTWASKG.mjs} +1 -1
  18. package/dist/react/components/DashTanstackPivot.react.d.ts +10 -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/components/ShimmerFallback.d.ts +11 -0
  24. package/dist/react/components/ThemedSelect.d.ts +8 -0
  25. package/dist/react/contexts/PivotThemeContext.d.ts +1 -0
  26. package/dist/react/hooks/useColumnDefs.d.ts +1 -1
  27. package/dist/react/hooks/useDismiss.d.ts +43 -0
  28. package/dist/react/hooks/usePivotNormalization.d.ts +4 -0
  29. package/dist/react/hooks/usePrefersReducedMotion.d.ts +8 -0
  30. package/dist/react/hooks/useRenderHelpers.d.ts +1 -1
  31. package/dist/react/hooks/useRowCache.d.ts +2 -0
  32. package/dist/react/hooks/useServerSideRowModel.d.ts +1 -1
  33. package/dist/react/index.mjs +28 -19
  34. package/dist/react/react.d.ts +7 -2
  35. package/dist/react/runtime/client/clientPivotTransport.d.ts +17 -0
  36. package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +8 -1
  37. package/dist/react/runtime/client/clientSubscriptionEngine.d.ts +88 -0
  38. package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +25 -0
  39. package/dist/react/runtime/client/index.d.ts +1 -0
  40. package/dist/react/runtime/client/types.d.ts +18 -0
  41. package/dist/react/runtime/core/clientCoreRuntime.d.ts +46 -0
  42. package/dist/react/runtime/core/duckdbSqlEmitter.d.ts +37 -0
  43. package/dist/react/runtime/core/semanticIr.generated.d.ts +196 -0
  44. package/dist/react/runtime/responseQueue.d.ts +21 -0
  45. package/dist/react/runtime/rowIdentity.d.ts +20 -0
  46. package/dist/react/runtime/runtimeDomains.d.ts +101 -2
  47. package/dist/react/runtime/streamingTypes.d.ts +182 -0
  48. package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +1 -1
  49. package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +1 -1
  50. package/dist/react/runtime/useRuntimeViewportTableData.d.ts +1 -1
  51. package/dist/react/runtime/useViewportSubscriptionStore.d.ts +112 -0
  52. package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +1 -1
  53. package/dist/react/utils/dataBars.d.ts +1 -0
  54. package/dist/react/utils/domEvents.d.ts +1 -0
  55. package/dist/react/utils/helpers.d.ts +6 -1
  56. package/dist/react/utils/pivotLayoutUtils.d.ts +5 -1
  57. package/dist/react/utils/rowMotion.d.ts +108 -0
  58. package/dist/react/utils/sorting.d.ts +1 -1
  59. package/dist/react/utils/styles.d.ts +1 -0
  60. package/package.json +6 -8
  61. package/dist/react/chunks/ContextMenu-1G-o1ms9.mjs +0 -195
  62. package/dist/react/chunks/SidebarPanel-LXUE6nPd.mjs +0 -3742
  63. package/dist/react/chunks/react-CDa-ADnG.mjs +0 -31199
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-BEL6xuaZ.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-BEL6xuaZ.mjs";
2
+ import { D as d } from "./DetailSurfaceContent-B9cfLYti.mjs";
3
3
  function m({
4
4
  detailState: r,
5
5
  onClose: i,
@@ -1,33 +1,33 @@
1
- import t, { useState as m, useEffect as D } from "react";
2
- import { z as B } from "./react-CDa-ADnG.mjs";
3
- function M({
4
- detailState: o,
5
- onClose: C,
1
+ import t, { useState as z, useEffect as D } from "react";
2
+ import { I as c } from "./react-B5JcZShu.mjs";
3
+ function j({
4
+ detailState: n,
5
+ onClose: S,
6
6
  onPageChange: a,
7
7
  onSort: i,
8
8
  onFilter: b,
9
9
  theme: e,
10
- compact: n = !1
10
+ compact: o = !1
11
11
  }) {
12
- const [y, E] = m("");
12
+ const [E, k] = z("");
13
13
  if (D(() => {
14
- E(o && typeof o.filterText == "string" ? o.filterText : "");
15
- }, [o && o.filterText]), !o) return null;
14
+ k(n && typeof n.filterText == "string" ? n.filterText : "");
15
+ }, [n && n.filterText]), !n) return null;
16
16
  const {
17
- loading: c,
18
- rows: p = [],
19
- columns: x = [],
17
+ loading: x,
18
+ rows: s = [],
19
+ columns: u = [],
20
20
  page: l = 0,
21
- pageSize: S = 100,
22
- totalRows: k = 0,
23
- sortCol: w = null,
24
- sortDir: v = "asc",
25
- title: $ = "Detail",
26
- rowPath: u = ""
27
- } = o, g = Array.isArray(x) && x.length > 0 ? x.map((r) => typeof r == "string" ? r : r.id).filter(Boolean) : p[0] ? Object.keys(p[0]).filter((r) => !r.startsWith("_")) : [], s = Math.max(1, Math.ceil((k || 0) / Math.max(1, S || 100))), z = (r) => {
21
+ pageSize: m = 100,
22
+ totalRows: w = 0,
23
+ sortCol: v = null,
24
+ sortDir: B = "asc",
25
+ title: C = "Detail",
26
+ rowPath: g = ""
27
+ } = n, f = Array.isArray(u) && u.length > 0 ? u.map((r) => typeof r == "string" ? r : r.id).filter(Boolean) : s[0] ? Object.keys(s[0]).filter((r) => !r.startsWith("_")) : [], p = Math.max(1, Math.ceil((w || 0) / Math.max(1, m || 100))), $ = (r) => {
28
28
  if (i) {
29
- if (w === r) {
30
- i(r, v === "asc" ? "desc" : "asc");
29
+ if (v === r) {
30
+ i(r, B === "asc" ? "desc" : "asc");
31
31
  return;
32
32
  }
33
33
  i(r, "asc");
@@ -38,17 +38,17 @@ function M({
38
38
  alignItems: "center",
39
39
  justifyContent: "space-between",
40
40
  gap: "12px",
41
- padding: n ? "10px 12px" : "14px 16px",
41
+ padding: o ? "10px 12px" : "14px 16px",
42
42
  borderBottom: `1px solid ${e.border}`,
43
43
  background: e.headerBg
44
- } }, /* @__PURE__ */ t.createElement("div", { style: { minWidth: 0 } }, /* @__PURE__ */ t.createElement("div", { style: { fontSize: n ? "12px" : "13px", fontWeight: 700, color: e.text } }, $), u && /* @__PURE__ */ t.createElement("div", { style: {
44
+ } }, /* @__PURE__ */ t.createElement("div", { style: { minWidth: 0 } }, /* @__PURE__ */ t.createElement("div", { style: { fontSize: o ? "12px" : "13px", fontWeight: 700, color: e.text } }, C), g && /* @__PURE__ */ t.createElement("div", { style: {
45
45
  fontSize: "11px",
46
46
  color: e.textSec,
47
47
  whiteSpace: "nowrap",
48
48
  overflow: "hidden",
49
49
  textOverflow: "ellipsis",
50
- maxWidth: n ? "320px" : "460px"
51
- } }, u)), /* @__PURE__ */ t.createElement("div", { style: { display: "flex", alignItems: "center", gap: "8px", flexShrink: 0 } }, /* @__PURE__ */ t.createElement("div", { style: {
50
+ maxWidth: o ? "320px" : "460px"
51
+ } }, g)), /* @__PURE__ */ t.createElement("div", { style: { display: "flex", alignItems: "center", gap: "8px", flexShrink: 0 } }, /* @__PURE__ */ t.createElement("div", { style: {
52
52
  display: "flex",
53
53
  alignItems: "center",
54
54
  gap: "6px",
@@ -56,15 +56,15 @@ function M({
56
56
  border: `1px solid ${e.border}`,
57
57
  borderRadius: "999px",
58
58
  background: e.surfaceBg || e.background
59
- } }, /* @__PURE__ */ t.createElement(B.Search, null), /* @__PURE__ */ t.createElement(
59
+ } }, /* @__PURE__ */ t.createElement(c.Search, null), /* @__PURE__ */ t.createElement(
60
60
  "input",
61
61
  {
62
62
  type: "text",
63
- value: y,
63
+ value: E,
64
64
  placeholder: "Filter rows...",
65
- onChange: (r) => E(r.target.value),
65
+ onChange: (r) => k(r.target.value),
66
66
  onKeyDown: (r) => {
67
- r.key === "Enter" && b && b(y);
67
+ r.key === "Enter" && b && b(E);
68
68
  },
69
69
  style: {
70
70
  border: "none",
@@ -72,7 +72,7 @@ function M({
72
72
  background: "transparent",
73
73
  color: e.text,
74
74
  fontSize: "12px",
75
- width: n ? "140px" : "180px",
75
+ width: o ? "140px" : "180px",
76
76
  padding: "8px 0"
77
77
  }
78
78
  }
@@ -80,7 +80,7 @@ function M({
80
80
  "button",
81
81
  {
82
82
  type: "button",
83
- onClick: C,
83
+ onClick: S,
84
84
  style: {
85
85
  width: "28px",
86
86
  height: "28px",
@@ -95,27 +95,27 @@ function M({
95
95
  },
96
96
  title: "Close detail"
97
97
  },
98
- /* @__PURE__ */ t.createElement(B.Close, null)
99
- ))), /* @__PURE__ */ t.createElement("div", { style: { flex: 1, minHeight: 0, overflow: "auto", background: e.surfaceBg || e.background } }, c ? /* @__PURE__ */ t.createElement("div", { style: {
98
+ /* @__PURE__ */ t.createElement(c.Close, null)
99
+ ))), /* @__PURE__ */ t.createElement("div", { style: { flex: 1, minHeight: 0, overflow: "auto", background: e.surfaceBg || e.background } }, x ? /* @__PURE__ */ t.createElement("div", { style: {
100
100
  display: "flex",
101
101
  alignItems: "center",
102
102
  justifyContent: "center",
103
103
  height: "100%",
104
104
  color: e.textSec,
105
105
  fontSize: "13px"
106
- } }, "Loading detail...") : /* @__PURE__ */ t.createElement("table", { style: { width: "100%", borderCollapse: "collapse", fontSize: "12px" } }, /* @__PURE__ */ t.createElement("thead", null, /* @__PURE__ */ t.createElement("tr", null, g.map(
106
+ } }, "Loading detail...") : /* @__PURE__ */ t.createElement("table", { style: { width: "100%", borderCollapse: "collapse", fontSize: "12px" } }, /* @__PURE__ */ t.createElement("thead", null, /* @__PURE__ */ t.createElement("tr", null, f.map(
107
107
  /** @param {any} [columnId] @returns {any} */
108
108
  (r) => /* @__PURE__ */ t.createElement(
109
109
  "th",
110
110
  {
111
111
  key: r,
112
- onClick: () => z(r),
112
+ onClick: () => $(r),
113
113
  style: {
114
114
  position: "sticky",
115
115
  top: 0,
116
116
  zIndex: 1,
117
117
  textAlign: "left",
118
- padding: n ? "8px 10px" : "10px 12px",
118
+ padding: o ? "8px 10px" : "10px 12px",
119
119
  background: e.headerBg,
120
120
  color: e.text,
121
121
  borderBottom: `1px solid ${e.border}`,
@@ -123,13 +123,12 @@ function M({
123
123
  whiteSpace: "nowrap"
124
124
  }
125
125
  },
126
- r,
127
- w === r ? v === "asc" ? " ▲" : " ▼" : ""
126
+ /* @__PURE__ */ t.createElement("span", { style: { display: "inline-flex", alignItems: "center", gap: "4px" } }, /* @__PURE__ */ t.createElement("span", null, r), v === r ? /* @__PURE__ */ t.createElement("span", { style: { display: "inline-flex", alignItems: "center" } }, B === "asc" ? /* @__PURE__ */ t.createElement(c.SortAsc, null) : /* @__PURE__ */ t.createElement(c.SortDesc, null)) : null)
128
127
  )
129
- ))), /* @__PURE__ */ t.createElement("tbody", null, p.length === 0 ? /* @__PURE__ */ t.createElement("tr", null, /* @__PURE__ */ t.createElement(
128
+ ))), /* @__PURE__ */ t.createElement("tbody", null, s.length === 0 ? /* @__PURE__ */ t.createElement("tr", null, /* @__PURE__ */ t.createElement(
130
129
  "td",
131
130
  {
132
- colSpan: Math.max(g.length, 1),
131
+ colSpan: Math.max(f.length, 1),
133
132
  style: {
134
133
  padding: "18px 12px",
135
134
  textAlign: "center",
@@ -138,18 +137,18 @@ function M({
138
137
  }
139
138
  },
140
139
  "No detail rows"
141
- )) : p.map(
140
+ )) : s.map(
142
141
  /** @param {any} [row] @param {any} [index] @returns {any} */
143
- (r, f) => /* @__PURE__ */ t.createElement("tr", { key: `${o.rowKey || u || "detail"}:${f}`, style: {
144
- background: f % 2 === 0 ? e.surfaceBg || e.background : e.headerSubtleBg
145
- } }, g.map(
142
+ (r, y) => /* @__PURE__ */ t.createElement("tr", { key: `${n.rowKey || g || "detail"}:${y}`, style: {
143
+ background: y % 2 === 0 ? e.surfaceBg || e.background : e.headerSubtleBg
144
+ } }, f.map(
146
145
  /** @param {any} [columnId] @returns {any} */
147
146
  (d) => /* @__PURE__ */ t.createElement(
148
147
  "td",
149
148
  {
150
- key: `${d}:${f}`,
149
+ key: `${d}:${y}`,
151
150
  style: {
152
- padding: n ? "7px 10px" : "9px 12px",
151
+ padding: o ? "7px 10px" : "9px 12px",
153
152
  borderBottom: `1px solid ${e.border}`,
154
153
  color: e.text,
155
154
  whiteSpace: "nowrap"
@@ -163,17 +162,17 @@ function M({
163
162
  alignItems: "center",
164
163
  justifyContent: "space-between",
165
164
  gap: "12px",
166
- padding: n ? "10px 12px" : "12px 16px",
165
+ padding: o ? "10px 12px" : "12px 16px",
167
166
  borderTop: `1px solid ${e.border}`,
168
167
  background: e.headerBg,
169
168
  fontSize: "12px",
170
169
  color: e.textSec
171
- } }, /* @__PURE__ */ t.createElement("span", null, "Page ", l + 1, " of ", s, " ", "(", k || 0, " rows)"), /* @__PURE__ */ t.createElement("div", { style: { display: "flex", alignItems: "center", gap: "8px" } }, /* @__PURE__ */ t.createElement(
170
+ } }, /* @__PURE__ */ t.createElement("span", null, "Page ", l + 1, " of ", p, " ", "(", w || 0, " rows)"), /* @__PURE__ */ t.createElement("div", { style: { display: "flex", alignItems: "center", gap: "8px" } }, /* @__PURE__ */ t.createElement(
172
171
  "button",
173
172
  {
174
173
  type: "button",
175
174
  onClick: () => a && a(Math.max(l - 1, 0)),
176
- disabled: c || l <= 0,
175
+ disabled: x || l <= 0,
177
176
  style: {
178
177
  padding: "6px 10px",
179
178
  borderRadius: "8px",
@@ -190,20 +189,20 @@ function M({
190
189
  {
191
190
  type: "button",
192
191
  onClick: () => a && a(l + 1),
193
- disabled: c || l >= s - 1,
192
+ disabled: x || l >= p - 1,
194
193
  style: {
195
194
  padding: "6px 10px",
196
195
  borderRadius: "8px",
197
196
  border: `1px solid ${e.border}`,
198
197
  background: e.surfaceBg || e.background,
199
198
  color: e.text,
200
- cursor: l >= s - 1 ? "default" : "pointer",
201
- opacity: l >= s - 1 ? 0.45 : 1
199
+ cursor: l >= p - 1 ? "default" : "pointer",
200
+ opacity: l >= p - 1 ? 0.45 : 1
202
201
  }
203
202
  },
204
203
  "Next"
205
204
  ))));
206
205
  }
207
206
  export {
208
- M as D
207
+ j as D
209
208
  };
@@ -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-C4h5pc1p.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-C4h5pc1p.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 { z as g } from "./react-CDa-ADnG.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-BEL6xuaZ.mjs";
2
+ import { D as p } from "./DetailSurfaceContent-B9cfLYti.mjs";
3
3
  function f({
4
4
  detailState: r,
5
5
  onClose: t,