serverside_pivot 0.0.91 → 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 (172) hide show
  1. package/README.md +182 -182
  2. package/dist/react/chunks/ContextMenu-DJuS4qTZ.mjs +198 -0
  3. package/dist/react/chunks/{DetailDrawer-Eb4EpVHG.mjs → DetailDrawer-DgKSC5Vu.mjs} +1 -1
  4. package/dist/react/chunks/{DetailSidePanel-BTcHOiKr.mjs → DetailSidePanel-CC5Dugyl.mjs} +1 -1
  5. package/dist/react/chunks/{DetailSurfaceContent-B3ZNKh7q.mjs → DetailSurfaceContent-CrQVHlcU.mjs} +85 -77
  6. package/dist/react/chunks/{ECharts2dRenderer-C3Qv0uAa.mjs → ECharts2dRenderer-46gLrUdf.mjs} +412 -410
  7. package/dist/react/chunks/{ECharts3dRenderer-BB_7-fOt.mjs → ECharts3dRenderer-Dg4ta5Bl.mjs} +2211 -3197
  8. package/dist/react/chunks/{EditSidePanel-C2cAvxlK.mjs → EditSidePanel-CkShaByb.mjs} +77 -65
  9. package/dist/react/chunks/{InlineDetailPanel-BXLAw1o3.mjs → InlineDetailPanel-mnwjoD0I.mjs} +1 -1
  10. package/dist/react/chunks/PivotCharts-MX-Z7DlR.mjs +5076 -0
  11. package/dist/react/chunks/{ReportEditor-D4V0ry2B.mjs → ReportEditor-U0E42xKL.mjs} +952 -631
  12. package/dist/react/chunks/SidebarPanel-BzRW1Kgq.mjs +3944 -0
  13. package/dist/react/chunks/{SparklineDetailGraph-Bu85X7OJ.mjs → SparklineDetailGraph-35Tim_8B.mjs} +88 -58
  14. package/dist/react/chunks/installCanvasRenderer-DRq0xpXO.mjs +21174 -0
  15. package/dist/react/chunks/react-CL4GbEOd.mjs +33206 -0
  16. package/dist/react/chunks/{xlsx.mini.min-vfxHk3Ry.mjs → xlsx.mini.min-kfIgXMVB.mjs} +5 -5
  17. package/dist/react/components/Charts/ChartRenderers.d.ts +5 -73
  18. package/dist/react/components/Charts/ChartWorkspace.d.ts +3 -34
  19. package/dist/react/components/Charts/ECharts2dRenderer.d.ts +2 -5
  20. package/dist/react/components/Charts/ECharts3dRenderer.d.ts +2 -6
  21. package/dist/react/components/Charts/PivotCharts.d.ts +2 -9
  22. package/dist/react/components/Charts/chartEnhancements.d.ts +17 -66
  23. package/dist/react/components/Charts/chartExportPresentation.d.ts +5 -19
  24. package/dist/react/components/Charts/chartMath.d.ts +4 -4
  25. package/dist/react/components/Charts/useChartExportMenu.d.ts +4 -12
  26. package/dist/react/components/DashTanstackPivot.react.d.ts +40 -0
  27. package/dist/react/components/Filters/ColumnFilter.d.ts +2 -12
  28. package/dist/react/components/Filters/DateRangeFilter.d.ts +2 -7
  29. package/dist/react/components/Filters/FilterPopover.d.ts +2 -13
  30. package/dist/react/components/Filters/MultiSelectFilter.d.ts +2 -11
  31. package/dist/react/components/Filters/NumericRangeFilter.d.ts +2 -7
  32. package/dist/react/components/Notification.d.ts +2 -6
  33. package/dist/react/components/PivotAppBar.d.ts +2 -2
  34. package/dist/react/components/PivotErrorBoundary.d.ts +11 -7
  35. package/dist/react/components/PivotSmallComponents.d.ts +2 -3
  36. package/dist/react/components/PivotWorkspaceCanvas.d.ts +2 -5
  37. package/dist/react/components/PivotWorkspaceControls.d.ts +4 -8
  38. package/dist/react/components/PivotWorkspaceShell.d.ts +4 -12
  39. package/dist/react/components/RuntimeDataError.d.ts +2 -7
  40. package/dist/react/components/ShimmerFallback.d.ts +11 -0
  41. package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +2 -13
  42. package/dist/react/components/Sidebar/ReportEditor.d.ts +7 -20
  43. package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +2 -13
  44. package/dist/react/components/Sidebar/SidebarPanel.d.ts +1 -2
  45. package/dist/react/components/Sidebar/ToolPanelSection.d.ts +2 -13
  46. package/dist/react/components/Sidebar/customCategoryUtils.d.ts +31 -62
  47. package/dist/react/components/Sidebar/formulaUtils.d.ts +16 -18
  48. package/dist/react/components/SkeletonRow.d.ts +2 -5
  49. package/dist/react/components/Table/ContextMenu.d.ts +2 -8
  50. package/dist/react/components/Table/DetailDrawer.d.ts +2 -11
  51. package/dist/react/components/Table/DetailSidePanel.d.ts +2 -11
  52. package/dist/react/components/Table/DetailSurfaceContent.d.ts +2 -11
  53. package/dist/react/components/Table/EditSidePanel.d.ts +2 -20
  54. package/dist/react/components/Table/EditableCell.d.ts +2 -28
  55. package/dist/react/components/Table/InlineDetailPanel.d.ts +2 -13
  56. package/dist/react/components/Table/PivotTableBody.d.ts +3 -3
  57. package/dist/react/components/Table/SparklineCell.d.ts +2 -17
  58. package/dist/react/components/Table/SparklineDetailGraph.d.ts +2 -5
  59. package/dist/react/components/Table/StatusBar.d.ts +2 -7
  60. package/dist/react/components/ThemedSelect.d.ts +8 -0
  61. package/dist/react/contexts/PivotConfigContext.d.ts +5 -33
  62. package/dist/react/contexts/PivotThemeContext.d.ts +8 -4
  63. package/dist/react/contexts/PivotValueDisplayContext.d.ts +5 -9
  64. package/dist/react/hooks/useChartState.d.ts +2 -71
  65. package/dist/react/hooks/useColumnDefs.d.ts +3 -68
  66. package/dist/react/hooks/useColumnVirtualizer.d.ts +1 -30
  67. package/dist/react/hooks/useDetailDrillThrough.d.ts +2 -36
  68. package/dist/react/hooks/useFilteredData.d.ts +4 -2
  69. package/dist/react/hooks/useFormatState.d.ts +2 -39
  70. package/dist/react/hooks/usePersistence.d.ts +4 -5
  71. package/dist/react/hooks/usePivotFieldInteractions.d.ts +2 -23
  72. package/dist/react/hooks/usePivotNormalization.d.ts +127 -461
  73. package/dist/react/hooks/usePivotRenderCounter.d.ts +2 -1
  74. package/dist/react/hooks/usePivotTransactions.d.ts +2 -23
  75. package/dist/react/hooks/useRenderHelpers.d.ts +3 -71
  76. package/dist/react/hooks/useReportMode.d.ts +2 -28
  77. package/dist/react/hooks/useRowCache.d.ts +16 -15
  78. package/dist/react/hooks/useRuntimeDataCommit.d.ts +2 -22
  79. package/dist/react/hooks/useRuntimeProfiling.d.ts +2 -13
  80. package/dist/react/hooks/useRuntimeTransport.d.ts +2 -18
  81. package/dist/react/hooks/useServerSideRowModel.d.ts +1 -50
  82. package/dist/react/hooks/useServerSideViewportController.d.ts +1 -64
  83. package/dist/react/hooks/useSidebarUI.d.ts +2 -32
  84. package/dist/react/hooks/useStickyStyles.d.ts +2 -23
  85. package/dist/react/index.mjs +15 -9
  86. package/dist/react/presentation/headerFormatting.d.ts +28 -11
  87. package/dist/react/presentation/safeCellContent.d.ts +22 -5
  88. package/dist/react/react.d.ts +4 -1
  89. package/dist/react/runtime/PivotRuntimeRoot.d.ts +1 -1
  90. package/dist/react/runtime/client/clientPivotTransport.d.ts +6 -1
  91. package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +50 -0
  92. package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +3 -0
  93. package/dist/react/runtime/client/types.d.ts +17 -0
  94. package/dist/react/runtime/createRuntimeCellPresentation.d.ts +2 -7
  95. package/dist/react/runtime/createRuntimeExportCommands.d.ts +2 -71
  96. package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +2 -9
  97. package/dist/react/runtime/displayColumnOrder.d.ts +4 -4
  98. package/dist/react/runtime/httpTransport.d.ts +1 -0
  99. package/dist/react/runtime/runtime-contract.generated.d.ts +3 -0
  100. package/dist/react/runtime/runtimeContract.d.ts +3 -0
  101. package/dist/react/runtime/runtimeDomains.d.ts +110 -0
  102. package/dist/react/runtime/useChartWorkspacePresentation.d.ts +2 -45
  103. package/dist/react/runtime/useCoreRuntime.d.ts +4 -1
  104. package/dist/react/runtime/useCoreRuntimeStage.d.ts +1 -1
  105. package/dist/react/runtime/useRuntimeCellSelection.d.ts +2 -40
  106. package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +7 -31
  107. package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +2 -13
  108. package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +2 -9
  109. package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +2 -14
  110. package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +2 -28
  111. package/dist/react/runtime/useRuntimeChartModels.d.ts +2 -62
  112. package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +2 -12
  113. package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +2 -4
  114. package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +2 -152
  115. package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +2 -7
  116. package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +2 -55
  117. package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +2 -26
  118. package/dist/react/runtime/useRuntimeColumnCommands.d.ts +2 -22
  119. package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +2 -11
  120. package/dist/react/runtime/useRuntimeDataRetry.d.ts +2 -12
  121. package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +2 -11
  122. package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +2 -18
  123. package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +2 -28
  124. package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +2 -35
  125. package/dist/react/runtime/useRuntimeEditDispatch.d.ts +2 -43
  126. package/dist/react/runtime/useRuntimeEditOwnership.d.ts +2 -28
  127. package/dist/react/runtime/useRuntimeEditPresentation.d.ts +2 -32
  128. package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +2 -24
  129. package/dist/react/runtime/useRuntimeExportState.d.ts +5 -5
  130. package/dist/react/runtime/useRuntimeFilterPopover.d.ts +2 -19
  131. package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +2 -40
  132. package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +2 -27
  133. package/dist/react/runtime/useRuntimeRequestSession.d.ts +2 -76
  134. package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +2 -43
  135. package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +2 -15
  136. package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +2 -28
  137. package/dist/react/runtime/useRuntimeRowEditing.d.ts +2 -18
  138. package/dist/react/runtime/useRuntimeRowSelection.d.ts +2 -14
  139. package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +2 -30
  140. package/dist/react/runtime/useRuntimeStructuralSync.d.ts +2 -61
  141. package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +2 -5
  142. package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +2 -196
  143. package/dist/react/runtime/useRuntimeViewportTableData.d.ts +2 -23
  144. package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +2 -109
  145. package/dist/react/utils/Icons.d.ts +2 -45
  146. package/dist/react/utils/chartModelBuilders.d.ts +76 -230
  147. package/dist/react/utils/columnOrder.d.ts +8 -12
  148. package/dist/react/utils/dataBars.d.ts +4 -7
  149. package/dist/react/utils/domEvents.d.ts +2 -1
  150. package/dist/react/utils/editing.d.ts +12 -47
  151. package/dist/react/utils/exportUtils.d.ts +30 -101
  152. package/dist/react/utils/fieldPanelLayout.d.ts +12 -61
  153. package/dist/react/utils/filterOptions.d.ts +4 -4
  154. package/dist/react/utils/helpers.d.ts +21 -18
  155. package/dist/react/utils/horizontalViewport.d.ts +1 -12
  156. package/dist/react/utils/layoutRows.d.ts +3 -3
  157. package/dist/react/utils/measureAxis.d.ts +6 -22
  158. package/dist/react/utils/pivotLayoutUtils.d.ts +7 -2
  159. package/dist/react/utils/pivotProfiler.d.ts +3 -3
  160. package/dist/react/utils/reportEditorSelection.d.ts +1 -23
  161. package/dist/react/utils/rowSpanning.d.ts +3 -6
  162. package/dist/react/utils/savedReports.d.ts +4 -7
  163. package/dist/react/utils/sorting.d.ts +8 -14
  164. package/dist/react/utils/sparklineDetail.d.ts +5 -8
  165. package/dist/react/utils/sparklines.d.ts +10 -78
  166. package/dist/react/utils/styles.d.ts +19 -308
  167. package/package.json +114 -114
  168. package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +0 -192
  169. package/dist/react/chunks/PivotCharts-Bw6Swoa3.mjs +0 -4252
  170. package/dist/react/chunks/SidebarPanel-xO59p_2o.mjs +0 -3339
  171. package/dist/react/chunks/installCanvasRenderer-B7sfDGoL.mjs +0 -21281
  172. package/dist/react/chunks/react-CPZZxtSo.mjs +0 -26999
@@ -1,33 +1,33 @@
1
- import t, { useState as m, useEffect as D } from "react";
2
- import { y as B } from "./react-CPZZxtSo.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,38 +95,40 @@ 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((r) => /* @__PURE__ */ t.createElement(
107
- "th",
108
- {
109
- key: r,
110
- onClick: () => z(r),
111
- style: {
112
- position: "sticky",
113
- top: 0,
114
- zIndex: 1,
115
- textAlign: "left",
116
- padding: n ? "8px 10px" : "10px 12px",
117
- background: e.headerBg,
118
- color: e.text,
119
- borderBottom: `1px solid ${e.border}`,
120
- cursor: i ? "pointer" : "default",
121
- whiteSpace: "nowrap"
122
- }
123
- },
124
- r,
125
- w === r ? v === "asc" ? " ▲" : " ▼" : ""
126
- )))), /* @__PURE__ */ t.createElement("tbody", null, p.length === 0 ? /* @__PURE__ */ t.createElement("tr", null, /* @__PURE__ */ t.createElement(
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
+ /** @param {any} [columnId] @returns {any} */
108
+ (r) => /* @__PURE__ */ t.createElement(
109
+ "th",
110
+ {
111
+ key: r,
112
+ onClick: () => $(r),
113
+ style: {
114
+ position: "sticky",
115
+ top: 0,
116
+ zIndex: 1,
117
+ textAlign: "left",
118
+ padding: o ? "8px 10px" : "10px 12px",
119
+ background: e.headerBg,
120
+ color: e.text,
121
+ borderBottom: `1px solid ${e.border}`,
122
+ cursor: i ? "pointer" : "default",
123
+ whiteSpace: "nowrap"
124
+ }
125
+ },
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)
127
+ )
128
+ ))), /* @__PURE__ */ t.createElement("tbody", null, s.length === 0 ? /* @__PURE__ */ t.createElement("tr", null, /* @__PURE__ */ t.createElement(
127
129
  "td",
128
130
  {
129
- colSpan: Math.max(g.length, 1),
131
+ colSpan: Math.max(f.length, 1),
130
132
  style: {
131
133
  padding: "18px 12px",
132
134
  textAlign: "center",
@@ -135,36 +137,42 @@ function M({
135
137
  }
136
138
  },
137
139
  "No detail rows"
138
- )) : p.map((r, f) => /* @__PURE__ */ t.createElement("tr", { key: `${o.rowKey || u || "detail"}:${f}`, style: {
139
- background: f % 2 === 0 ? e.surfaceBg || e.background : e.headerSubtleBg
140
- } }, g.map((d) => /* @__PURE__ */ t.createElement(
141
- "td",
142
- {
143
- key: `${d}:${f}`,
144
- style: {
145
- padding: n ? "7px 10px" : "9px 12px",
146
- borderBottom: `1px solid ${e.border}`,
147
- color: e.text,
148
- whiteSpace: "nowrap"
149
- }
150
- },
151
- r[d] !== void 0 && r[d] !== null ? String(r[d]) : ""
152
- ))))))), /* @__PURE__ */ t.createElement("div", { style: {
140
+ )) : s.map(
141
+ /** @param {any} [row] @param {any} [index] @returns {any} */
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(
145
+ /** @param {any} [columnId] @returns {any} */
146
+ (d) => /* @__PURE__ */ t.createElement(
147
+ "td",
148
+ {
149
+ key: `${d}:${y}`,
150
+ style: {
151
+ padding: o ? "7px 10px" : "9px 12px",
152
+ borderBottom: `1px solid ${e.border}`,
153
+ color: e.text,
154
+ whiteSpace: "nowrap"
155
+ }
156
+ },
157
+ r[d] !== void 0 && r[d] !== null ? String(r[d]) : ""
158
+ )
159
+ ))
160
+ )))), /* @__PURE__ */ t.createElement("div", { style: {
153
161
  display: "flex",
154
162
  alignItems: "center",
155
163
  justifyContent: "space-between",
156
164
  gap: "12px",
157
- padding: n ? "10px 12px" : "12px 16px",
165
+ padding: o ? "10px 12px" : "12px 16px",
158
166
  borderTop: `1px solid ${e.border}`,
159
167
  background: e.headerBg,
160
168
  fontSize: "12px",
161
169
  color: e.textSec
162
- } }, /* @__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(
163
171
  "button",
164
172
  {
165
173
  type: "button",
166
174
  onClick: () => a && a(Math.max(l - 1, 0)),
167
- disabled: c || l <= 0,
175
+ disabled: x || l <= 0,
168
176
  style: {
169
177
  padding: "6px 10px",
170
178
  borderRadius: "8px",
@@ -181,20 +189,20 @@ function M({
181
189
  {
182
190
  type: "button",
183
191
  onClick: () => a && a(l + 1),
184
- disabled: c || l >= s - 1,
192
+ disabled: x || l >= p - 1,
185
193
  style: {
186
194
  padding: "6px 10px",
187
195
  borderRadius: "8px",
188
196
  border: `1px solid ${e.border}`,
189
197
  background: e.surfaceBg || e.background,
190
198
  color: e.text,
191
- cursor: l >= s - 1 ? "default" : "pointer",
192
- opacity: l >= s - 1 ? 0.45 : 1
199
+ cursor: l >= p - 1 ? "default" : "pointer",
200
+ opacity: l >= p - 1 ? 0.45 : 1
193
201
  }
194
202
  },
195
203
  "Next"
196
204
  ))));
197
205
  }
198
206
  export {
199
- M as D
207
+ j as D
200
208
  };