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.
- package/README.md +182 -182
- package/dist/react/chunks/ContextMenu-DJuS4qTZ.mjs +198 -0
- package/dist/react/chunks/{DetailDrawer-Eb4EpVHG.mjs → DetailDrawer-DgKSC5Vu.mjs} +1 -1
- package/dist/react/chunks/{DetailSidePanel-BTcHOiKr.mjs → DetailSidePanel-CC5Dugyl.mjs} +1 -1
- package/dist/react/chunks/{DetailSurfaceContent-B3ZNKh7q.mjs → DetailSurfaceContent-CrQVHlcU.mjs} +85 -77
- package/dist/react/chunks/{ECharts2dRenderer-C3Qv0uAa.mjs → ECharts2dRenderer-46gLrUdf.mjs} +412 -410
- package/dist/react/chunks/{ECharts3dRenderer-BB_7-fOt.mjs → ECharts3dRenderer-Dg4ta5Bl.mjs} +2211 -3197
- package/dist/react/chunks/{EditSidePanel-C2cAvxlK.mjs → EditSidePanel-CkShaByb.mjs} +77 -65
- package/dist/react/chunks/{InlineDetailPanel-BXLAw1o3.mjs → InlineDetailPanel-mnwjoD0I.mjs} +1 -1
- package/dist/react/chunks/PivotCharts-MX-Z7DlR.mjs +5076 -0
- package/dist/react/chunks/{ReportEditor-D4V0ry2B.mjs → ReportEditor-U0E42xKL.mjs} +952 -631
- package/dist/react/chunks/SidebarPanel-BzRW1Kgq.mjs +3944 -0
- package/dist/react/chunks/{SparklineDetailGraph-Bu85X7OJ.mjs → SparklineDetailGraph-35Tim_8B.mjs} +88 -58
- package/dist/react/chunks/installCanvasRenderer-DRq0xpXO.mjs +21174 -0
- package/dist/react/chunks/react-CL4GbEOd.mjs +33206 -0
- package/dist/react/chunks/{xlsx.mini.min-vfxHk3Ry.mjs → xlsx.mini.min-kfIgXMVB.mjs} +5 -5
- package/dist/react/components/Charts/ChartRenderers.d.ts +5 -73
- package/dist/react/components/Charts/ChartWorkspace.d.ts +3 -34
- package/dist/react/components/Charts/ECharts2dRenderer.d.ts +2 -5
- package/dist/react/components/Charts/ECharts3dRenderer.d.ts +2 -6
- package/dist/react/components/Charts/PivotCharts.d.ts +2 -9
- package/dist/react/components/Charts/chartEnhancements.d.ts +17 -66
- package/dist/react/components/Charts/chartExportPresentation.d.ts +5 -19
- package/dist/react/components/Charts/chartMath.d.ts +4 -4
- package/dist/react/components/Charts/useChartExportMenu.d.ts +4 -12
- package/dist/react/components/DashTanstackPivot.react.d.ts +40 -0
- package/dist/react/components/Filters/ColumnFilter.d.ts +2 -12
- package/dist/react/components/Filters/DateRangeFilter.d.ts +2 -7
- package/dist/react/components/Filters/FilterPopover.d.ts +2 -13
- package/dist/react/components/Filters/MultiSelectFilter.d.ts +2 -11
- package/dist/react/components/Filters/NumericRangeFilter.d.ts +2 -7
- package/dist/react/components/Notification.d.ts +2 -6
- package/dist/react/components/PivotAppBar.d.ts +2 -2
- package/dist/react/components/PivotErrorBoundary.d.ts +11 -7
- package/dist/react/components/PivotSmallComponents.d.ts +2 -3
- package/dist/react/components/PivotWorkspaceCanvas.d.ts +2 -5
- package/dist/react/components/PivotWorkspaceControls.d.ts +4 -8
- package/dist/react/components/PivotWorkspaceShell.d.ts +4 -12
- package/dist/react/components/RuntimeDataError.d.ts +2 -7
- package/dist/react/components/ShimmerFallback.d.ts +11 -0
- package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +2 -13
- package/dist/react/components/Sidebar/ReportEditor.d.ts +7 -20
- package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +2 -13
- package/dist/react/components/Sidebar/SidebarPanel.d.ts +1 -2
- package/dist/react/components/Sidebar/ToolPanelSection.d.ts +2 -13
- package/dist/react/components/Sidebar/customCategoryUtils.d.ts +31 -62
- package/dist/react/components/Sidebar/formulaUtils.d.ts +16 -18
- package/dist/react/components/SkeletonRow.d.ts +2 -5
- package/dist/react/components/Table/ContextMenu.d.ts +2 -8
- package/dist/react/components/Table/DetailDrawer.d.ts +2 -11
- package/dist/react/components/Table/DetailSidePanel.d.ts +2 -11
- package/dist/react/components/Table/DetailSurfaceContent.d.ts +2 -11
- package/dist/react/components/Table/EditSidePanel.d.ts +2 -20
- package/dist/react/components/Table/EditableCell.d.ts +2 -28
- package/dist/react/components/Table/InlineDetailPanel.d.ts +2 -13
- package/dist/react/components/Table/PivotTableBody.d.ts +3 -3
- package/dist/react/components/Table/SparklineCell.d.ts +2 -17
- package/dist/react/components/Table/SparklineDetailGraph.d.ts +2 -5
- package/dist/react/components/Table/StatusBar.d.ts +2 -7
- package/dist/react/components/ThemedSelect.d.ts +8 -0
- package/dist/react/contexts/PivotConfigContext.d.ts +5 -33
- package/dist/react/contexts/PivotThemeContext.d.ts +8 -4
- package/dist/react/contexts/PivotValueDisplayContext.d.ts +5 -9
- package/dist/react/hooks/useChartState.d.ts +2 -71
- package/dist/react/hooks/useColumnDefs.d.ts +3 -68
- package/dist/react/hooks/useColumnVirtualizer.d.ts +1 -30
- package/dist/react/hooks/useDetailDrillThrough.d.ts +2 -36
- package/dist/react/hooks/useFilteredData.d.ts +4 -2
- package/dist/react/hooks/useFormatState.d.ts +2 -39
- package/dist/react/hooks/usePersistence.d.ts +4 -5
- package/dist/react/hooks/usePivotFieldInteractions.d.ts +2 -23
- package/dist/react/hooks/usePivotNormalization.d.ts +127 -461
- package/dist/react/hooks/usePivotRenderCounter.d.ts +2 -1
- package/dist/react/hooks/usePivotTransactions.d.ts +2 -23
- package/dist/react/hooks/useRenderHelpers.d.ts +3 -71
- package/dist/react/hooks/useReportMode.d.ts +2 -28
- package/dist/react/hooks/useRowCache.d.ts +16 -15
- package/dist/react/hooks/useRuntimeDataCommit.d.ts +2 -22
- package/dist/react/hooks/useRuntimeProfiling.d.ts +2 -13
- package/dist/react/hooks/useRuntimeTransport.d.ts +2 -18
- package/dist/react/hooks/useServerSideRowModel.d.ts +1 -50
- package/dist/react/hooks/useServerSideViewportController.d.ts +1 -64
- package/dist/react/hooks/useSidebarUI.d.ts +2 -32
- package/dist/react/hooks/useStickyStyles.d.ts +2 -23
- package/dist/react/index.mjs +15 -9
- package/dist/react/presentation/headerFormatting.d.ts +28 -11
- package/dist/react/presentation/safeCellContent.d.ts +22 -5
- package/dist/react/react.d.ts +4 -1
- package/dist/react/runtime/PivotRuntimeRoot.d.ts +1 -1
- package/dist/react/runtime/client/clientPivotTransport.d.ts +6 -1
- package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +50 -0
- package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +3 -0
- package/dist/react/runtime/client/types.d.ts +17 -0
- package/dist/react/runtime/createRuntimeCellPresentation.d.ts +2 -7
- package/dist/react/runtime/createRuntimeExportCommands.d.ts +2 -71
- package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +2 -9
- package/dist/react/runtime/displayColumnOrder.d.ts +4 -4
- package/dist/react/runtime/httpTransport.d.ts +1 -0
- package/dist/react/runtime/runtime-contract.generated.d.ts +3 -0
- package/dist/react/runtime/runtimeContract.d.ts +3 -0
- package/dist/react/runtime/runtimeDomains.d.ts +110 -0
- package/dist/react/runtime/useChartWorkspacePresentation.d.ts +2 -45
- package/dist/react/runtime/useCoreRuntime.d.ts +4 -1
- package/dist/react/runtime/useCoreRuntimeStage.d.ts +1 -1
- package/dist/react/runtime/useRuntimeCellSelection.d.ts +2 -40
- package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +7 -31
- package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +2 -13
- package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +2 -9
- package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +2 -14
- package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +2 -28
- package/dist/react/runtime/useRuntimeChartModels.d.ts +2 -62
- package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +2 -12
- package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +2 -4
- package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +2 -152
- package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +2 -7
- package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +2 -55
- package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +2 -26
- package/dist/react/runtime/useRuntimeColumnCommands.d.ts +2 -22
- package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +2 -11
- package/dist/react/runtime/useRuntimeDataRetry.d.ts +2 -12
- package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +2 -11
- package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +2 -18
- package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +2 -28
- package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +2 -35
- package/dist/react/runtime/useRuntimeEditDispatch.d.ts +2 -43
- package/dist/react/runtime/useRuntimeEditOwnership.d.ts +2 -28
- package/dist/react/runtime/useRuntimeEditPresentation.d.ts +2 -32
- package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +2 -24
- package/dist/react/runtime/useRuntimeExportState.d.ts +5 -5
- package/dist/react/runtime/useRuntimeFilterPopover.d.ts +2 -19
- package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +2 -40
- package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +2 -27
- package/dist/react/runtime/useRuntimeRequestSession.d.ts +2 -76
- package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +2 -43
- package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +2 -15
- package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +2 -28
- package/dist/react/runtime/useRuntimeRowEditing.d.ts +2 -18
- package/dist/react/runtime/useRuntimeRowSelection.d.ts +2 -14
- package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +2 -30
- package/dist/react/runtime/useRuntimeStructuralSync.d.ts +2 -61
- package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +2 -5
- package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +2 -196
- package/dist/react/runtime/useRuntimeViewportTableData.d.ts +2 -23
- package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +2 -109
- package/dist/react/utils/Icons.d.ts +2 -45
- package/dist/react/utils/chartModelBuilders.d.ts +76 -230
- package/dist/react/utils/columnOrder.d.ts +8 -12
- package/dist/react/utils/dataBars.d.ts +4 -7
- package/dist/react/utils/domEvents.d.ts +2 -1
- package/dist/react/utils/editing.d.ts +12 -47
- package/dist/react/utils/exportUtils.d.ts +30 -101
- package/dist/react/utils/fieldPanelLayout.d.ts +12 -61
- package/dist/react/utils/filterOptions.d.ts +4 -4
- package/dist/react/utils/helpers.d.ts +21 -18
- package/dist/react/utils/horizontalViewport.d.ts +1 -12
- package/dist/react/utils/layoutRows.d.ts +3 -3
- package/dist/react/utils/measureAxis.d.ts +6 -22
- package/dist/react/utils/pivotLayoutUtils.d.ts +7 -2
- package/dist/react/utils/pivotProfiler.d.ts +3 -3
- package/dist/react/utils/reportEditorSelection.d.ts +1 -23
- package/dist/react/utils/rowSpanning.d.ts +3 -6
- package/dist/react/utils/savedReports.d.ts +4 -7
- package/dist/react/utils/sorting.d.ts +8 -14
- package/dist/react/utils/sparklineDetail.d.ts +5 -8
- package/dist/react/utils/sparklines.d.ts +10 -78
- package/dist/react/utils/styles.d.ts +19 -308
- package/package.json +114 -114
- package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +0 -192
- package/dist/react/chunks/PivotCharts-Bw6Swoa3.mjs +0 -4252
- package/dist/react/chunks/SidebarPanel-xO59p_2o.mjs +0 -3339
- package/dist/react/chunks/installCanvasRenderer-B7sfDGoL.mjs +0 -21281
- package/dist/react/chunks/react-CPZZxtSo.mjs +0 -26999
package/dist/react/chunks/{DetailSurfaceContent-B3ZNKh7q.mjs → DetailSurfaceContent-CrQVHlcU.mjs}
RENAMED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import t, { useState as
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
detailState:
|
|
5
|
-
onClose:
|
|
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:
|
|
10
|
+
compact: o = !1
|
|
11
11
|
}) {
|
|
12
|
-
const [
|
|
12
|
+
const [E, k] = z("");
|
|
13
13
|
if (D(() => {
|
|
14
|
-
|
|
15
|
-
}, [
|
|
14
|
+
k(n && typeof n.filterText == "string" ? n.filterText : "");
|
|
15
|
+
}, [n && n.filterText]), !n) return null;
|
|
16
16
|
const {
|
|
17
|
-
loading:
|
|
18
|
-
rows:
|
|
19
|
-
columns:
|
|
17
|
+
loading: x,
|
|
18
|
+
rows: s = [],
|
|
19
|
+
columns: u = [],
|
|
20
20
|
page: l = 0,
|
|
21
|
-
pageSize:
|
|
22
|
-
totalRows:
|
|
23
|
-
sortCol:
|
|
24
|
-
sortDir:
|
|
25
|
-
title:
|
|
26
|
-
rowPath:
|
|
27
|
-
} =
|
|
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 (
|
|
30
|
-
i(r,
|
|
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:
|
|
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:
|
|
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:
|
|
51
|
-
} },
|
|
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(
|
|
59
|
+
} }, /* @__PURE__ */ t.createElement(c.Search, null), /* @__PURE__ */ t.createElement(
|
|
60
60
|
"input",
|
|
61
61
|
{
|
|
62
62
|
type: "text",
|
|
63
|
-
value:
|
|
63
|
+
value: E,
|
|
64
64
|
placeholder: "Filter rows...",
|
|
65
|
-
onChange: (r) =>
|
|
65
|
+
onChange: (r) => k(r.target.value),
|
|
66
66
|
onKeyDown: (r) => {
|
|
67
|
-
r.key === "Enter" && b && b(
|
|
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:
|
|
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:
|
|
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(
|
|
99
|
-
))), /* @__PURE__ */ t.createElement("div", { style: { flex: 1, minHeight: 0, overflow: "auto", background: e.surfaceBg || e.background } },
|
|
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,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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(
|
|
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
|
-
)) :
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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:
|
|
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 ",
|
|
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:
|
|
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:
|
|
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 >=
|
|
192
|
-
opacity: l >=
|
|
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
|
-
|
|
207
|
+
j as D
|
|
200
208
|
};
|