serverside_pivot 0.0.95 → 0.0.96

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 (39) hide show
  1. package/dist/react/chunks/ContextMenu-DJuS4qTZ.mjs +198 -0
  2. package/dist/react/chunks/{DetailDrawer-DCKIxSpW.mjs → DetailDrawer-DgKSC5Vu.mjs} +1 -1
  3. package/dist/react/chunks/{DetailSidePanel-DgUWPBQk.mjs → DetailSidePanel-CC5Dugyl.mjs} +1 -1
  4. package/dist/react/chunks/{DetailSurfaceContent-BEL6xuaZ.mjs → DetailSurfaceContent-CrQVHlcU.mjs} +52 -53
  5. package/dist/react/chunks/{ECharts2dRenderer-Dgkp9_1P.mjs → ECharts2dRenderer-46gLrUdf.mjs} +1 -1
  6. package/dist/react/chunks/{ECharts3dRenderer-70VOp8V0.mjs → ECharts3dRenderer-Dg4ta5Bl.mjs} +1 -1
  7. package/dist/react/chunks/{EditSidePanel-CygqVXLX.mjs → EditSidePanel-CkShaByb.mjs} +1 -1
  8. package/dist/react/chunks/{InlineDetailPanel-BUBRWdFW.mjs → InlineDetailPanel-mnwjoD0I.mjs} +1 -1
  9. package/dist/react/chunks/{PivotCharts-VX5-mEEp.mjs → PivotCharts-MX-Z7DlR.mjs} +1207 -1193
  10. package/dist/react/chunks/{ReportEditor-B5j-CU9-.mjs → ReportEditor-U0E42xKL.mjs} +506 -480
  11. package/dist/react/chunks/SidebarPanel-BzRW1Kgq.mjs +3944 -0
  12. package/dist/react/chunks/{SparklineDetailGraph-Cfe2KcOp.mjs → SparklineDetailGraph-35Tim_8B.mjs} +1 -1
  13. package/dist/react/chunks/{installCanvasRenderer-C4h5pc1p.mjs → installCanvasRenderer-DRq0xpXO.mjs} +1 -1
  14. package/dist/react/chunks/react-CL4GbEOd.mjs +33206 -0
  15. package/dist/react/chunks/{xlsx.mini.min-CzdkdH3N.mjs → xlsx.mini.min-kfIgXMVB.mjs} +1 -1
  16. package/dist/react/components/DashTanstackPivot.react.d.ts +4 -0
  17. package/dist/react/components/ShimmerFallback.d.ts +11 -0
  18. package/dist/react/components/ThemedSelect.d.ts +8 -0
  19. package/dist/react/contexts/PivotThemeContext.d.ts +1 -0
  20. package/dist/react/hooks/useColumnDefs.d.ts +1 -1
  21. package/dist/react/hooks/useRenderHelpers.d.ts +1 -1
  22. package/dist/react/hooks/useServerSideRowModel.d.ts +1 -1
  23. package/dist/react/index.mjs +5 -5
  24. package/dist/react/react.d.ts +1 -1
  25. package/dist/react/runtime/client/clientPivotTransport.d.ts +1 -0
  26. package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +3 -0
  27. package/dist/react/runtime/client/types.d.ts +12 -0
  28. package/dist/react/runtime/runtimeDomains.d.ts +94 -2
  29. package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +1 -1
  30. package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +1 -1
  31. package/dist/react/utils/dataBars.d.ts +1 -0
  32. package/dist/react/utils/domEvents.d.ts +1 -0
  33. package/dist/react/utils/helpers.d.ts +5 -0
  34. package/dist/react/utils/pivotLayoutUtils.d.ts +4 -0
  35. package/dist/react/utils/sorting.d.ts +1 -1
  36. package/package.json +1 -1
  37. package/dist/react/chunks/ContextMenu-1G-o1ms9.mjs +0 -195
  38. package/dist/react/chunks/SidebarPanel-LXUE6nPd.mjs +0 -3742
  39. package/dist/react/chunks/react-CDa-ADnG.mjs +0 -31199
@@ -0,0 +1,198 @@
1
+ import c, { useState as C, useRef as M, useCallback as b, useEffect as W, useLayoutEffect as K } from "react";
2
+ import { I as z } from "./react-CL4GbEOd.mjs";
3
+ const G = 80, J = 220, _ = ({ actions: n, theme: r, onClose: v, itemRefs: f, onItemMouseEnter: g, onKeyDown: D }) => /* @__PURE__ */ c.createElement(c.Fragment, null, n.map(
4
+ /** @param {any} [action] @param {any} [i] @returns {any} */
5
+ (i, l) => {
6
+ if (i === "separator")
7
+ return /* @__PURE__ */ c.createElement(
8
+ "div",
9
+ {
10
+ key: l,
11
+ role: "presentation",
12
+ style: { height: "1px", background: (r == null ? void 0 : r.border) || "#e0e0e0", margin: "4px 0" }
13
+ }
14
+ );
15
+ const p = !!i.disabled, d = Array.isArray(i.children) && i.children.length > 0;
16
+ return /* @__PURE__ */ c.createElement(
17
+ "div",
18
+ {
19
+ key: l,
20
+ ref: (u) => {
21
+ f && (f.current[l] = u);
22
+ },
23
+ className: "sp-menu-item",
24
+ role: "menuitem",
25
+ "aria-haspopup": d ? "menu" : void 0,
26
+ "aria-disabled": p || void 0,
27
+ tabIndex: p ? -1 : 0,
28
+ title: i.title || (typeof i.label == "string" ? i.label : void 0),
29
+ onMouseEnter: () => {
30
+ g && g(l, d, p);
31
+ },
32
+ onClick: (u) => {
33
+ if (p || d) {
34
+ u.stopPropagation();
35
+ return;
36
+ }
37
+ typeof i.onClick == "function" && i.onClick(), v();
38
+ },
39
+ onKeyDown: (u) => {
40
+ p || (u.key === "Enter" || u.key === " " ? (u.preventDefault(), u.stopPropagation(), !d && typeof i.onClick == "function" && i.onClick(), d ? g && g(l, !0, !1) : v()) : D && D(u, l));
41
+ },
42
+ style: {
43
+ padding: "7px 10px",
44
+ cursor: p ? "not-allowed" : "pointer",
45
+ display: "flex",
46
+ alignItems: "center",
47
+ gap: "8px",
48
+ color: p ? (r == null ? void 0 : r.textSec) || "#757575" : (r == null ? void 0 : r.text) || "#111",
49
+ opacity: p ? 0.48 : 1,
50
+ userSelect: "none"
51
+ }
52
+ },
53
+ i.icon && /* @__PURE__ */ c.createElement("span", { style: { color: (r == null ? void 0 : r.textSec) || "#757575", display: "flex", flexShrink: 0 } }, i.icon),
54
+ /* @__PURE__ */ c.createElement("span", { style: { flex: 1 } }, i.label),
55
+ d && /* @__PURE__ */ c.createElement("span", { "aria-hidden": "true", style: { color: (r == null ? void 0 : r.textSec) || "#9ca3af", display: "inline-flex", alignItems: "center", marginLeft: "4px" } }, z && z.ChevronRight ? /* @__PURE__ */ c.createElement(z.ChevronRight, null) : ">")
56
+ );
57
+ }
58
+ )), O = (n) => ({
59
+ background: `var(--sp-glass-bg, ${(n == null ? void 0 : n.surfaceBg) || (n == null ? void 0 : n.background) || "#fff"})`,
60
+ backdropFilter: "blur(18px) saturate(180%)",
61
+ WebkitBackdropFilter: "blur(18px) saturate(180%)",
62
+ border: `1px solid ${(n == null ? void 0 : n.border) || "#ccc"}`,
63
+ boxShadow: (n == null ? void 0 : n.shadow) || (n == null ? void 0 : n.shadowMd) || "0 14px 36px rgba(0,0,0,0.18)",
64
+ padding: "5px",
65
+ borderRadius: "10px",
66
+ fontSize: "13px",
67
+ minWidth: "190px",
68
+ maxWidth: "300px",
69
+ color: (n == null ? void 0 : n.text) || "#111"
70
+ }), X = ({ x: n, y: r, onClose: v, actions: f, theme: g }) => {
71
+ const [D, i] = C({ x: n, y: r }), [l, p] = C(null), [d, u] = C(null), B = M(null), F = M(null), k = M([]), A = M(null), E = b((e, t = 1) => {
72
+ const o = f.length;
73
+ for (let s = 0; s < o; s++) {
74
+ const y = (e + s * t + o * 2) % o, a = f[y];
75
+ if (a && a !== "separator" && !a.disabled && k.current[y]) {
76
+ k.current[y].focus();
77
+ return;
78
+ }
79
+ }
80
+ }, [f]);
81
+ W(() => {
82
+ E(0, 1);
83
+ }, [E]), W(() => () => clearTimeout(A.current), []);
84
+ const N = b(() => {
85
+ clearTimeout(A.current), A.current = setTimeout(() => {
86
+ p(null), u(null);
87
+ }, J);
88
+ }, []), L = b(() => {
89
+ clearTimeout(A.current);
90
+ }, []), m = b((e) => {
91
+ clearTimeout(A.current), A.current = setTimeout(() => {
92
+ p(e);
93
+ const t = k.current[e];
94
+ t && u(t.getBoundingClientRect());
95
+ }, l !== null ? 0 : G);
96
+ }, [l]), U = b((e, t, o) => {
97
+ o || (t ? m(e) : (L(), p(null), u(null)));
98
+ }, [m, L]), Y = b((e, t) => {
99
+ if (e.key === "Escape")
100
+ e.preventDefault(), v();
101
+ else if (e.key === "ArrowDown")
102
+ e.preventDefault(), E(t + 1, 1);
103
+ else if (e.key === "ArrowUp")
104
+ e.preventDefault(), E(t - 1, -1);
105
+ else if (e.key === "Home")
106
+ e.preventDefault(), E(0, 1);
107
+ else if (e.key === "End")
108
+ e.preventDefault(), E(f.length - 1, -1);
109
+ else if (e.key === "ArrowRight" && l === null && Number.isFinite(t) && t >= 0) {
110
+ const o = f[t];
111
+ o && o !== "separator" && Array.isArray(o.children) && (e.preventDefault(), m(t));
112
+ }
113
+ }, [v, E, f, l, m]);
114
+ K(() => {
115
+ const e = () => {
116
+ var I;
117
+ const t = window.innerWidth, o = window.innerHeight, s = (I = B.current) == null ? void 0 : I.getBoundingClientRect(), y = (s == null ? void 0 : s.width) || 200, a = (s == null ? void 0 : s.height) || f.length * 32 + 20, x = 8;
118
+ let S = Math.max(x, Math.min(n, t - y - x)), q = Math.max(x, Math.min(r, o - a - x));
119
+ i({ x: S, y: q });
120
+ };
121
+ return e(), window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
122
+ window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
123
+ };
124
+ }, [n, r, f.length]);
125
+ const [H, $] = C({ left: 0, top: 0 });
126
+ K(() => {
127
+ if (!d || l === null) return;
128
+ const e = F.current;
129
+ if (!e) return;
130
+ const t = window.innerWidth, o = window.innerHeight, s = e.offsetWidth || 200, y = e.offsetHeight || 200, a = 6;
131
+ let x = d.right + 2;
132
+ x + s > t - a && (x = d.left - s - 2);
133
+ let S = d.top - 6;
134
+ S + y > o - a && (S = o - y - a), $({ left: Math.max(a, x), top: Math.max(a, S) });
135
+ }, [d, l]);
136
+ const P = l !== null ? f[l] : null, w = P && Array.isArray(P.children) ? P.children : null, R = M([]), T = b((e, t = 1) => {
137
+ if (!w) return;
138
+ const o = w.length;
139
+ for (let s = 0; s < o; s++) {
140
+ const y = (e + s * t + o * 2) % o, a = w[y];
141
+ if (a && a !== "separator" && !a.disabled && R.current[y]) {
142
+ R.current[y].focus();
143
+ return;
144
+ }
145
+ }
146
+ }, [w]);
147
+ W(() => {
148
+ w && (R.current = R.current.slice(0, w.length));
149
+ }, [w]);
150
+ const j = b((e, t) => {
151
+ e.key === "Escape" || e.key === "ArrowLeft" ? (e.preventDefault(), e.stopPropagation(), p(null), u(null), l !== null && k.current[l] && k.current[l].focus()) : e.key === "ArrowDown" ? (e.preventDefault(), T(t + 1, 1)) : e.key === "ArrowUp" && (e.preventDefault(), T(t - 1, -1));
152
+ }, [T, l]);
153
+ return /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement(
154
+ "div",
155
+ {
156
+ ref: B,
157
+ className: "sp-menu-surface",
158
+ role: "menu",
159
+ style: { position: "fixed", top: D.y, left: D.x, zIndex: 10001, ...O(g) },
160
+ onMouseLeave: N,
161
+ onMouseEnter: L
162
+ },
163
+ /* @__PURE__ */ c.createElement(
164
+ _,
165
+ {
166
+ actions: f,
167
+ theme: g,
168
+ onClose: v,
169
+ itemRefs: k,
170
+ onItemMouseEnter: U,
171
+ onKeyDown: Y
172
+ }
173
+ )
174
+ ), w && /* @__PURE__ */ c.createElement(
175
+ "div",
176
+ {
177
+ ref: F,
178
+ className: "sp-menu-surface",
179
+ role: "menu",
180
+ style: { position: "fixed", top: H.top, left: H.left, zIndex: 10002, ...O(g) },
181
+ onMouseEnter: L,
182
+ onMouseLeave: N
183
+ },
184
+ /* @__PURE__ */ c.createElement(
185
+ _,
186
+ {
187
+ actions: w,
188
+ theme: g,
189
+ onClose: v,
190
+ itemRefs: R,
191
+ onKeyDown: j
192
+ }
193
+ )
194
+ ));
195
+ };
196
+ export {
197
+ X as default
198
+ };
@@ -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-CrQVHlcU.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-CrQVHlcU.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-CL4GbEOd.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-DRq0xpXO.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-DRq0xpXO.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-CL4GbEOd.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-CrQVHlcU.mjs";
3
3
  function f({
4
4
  detailState: r,
5
5
  onClose: t,