serverside_pivot 0.0.0-stage → 0.0.91
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 -3
- package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +192 -0
- package/dist/react/chunks/DetailDrawer-Eb4EpVHG.mjs +37 -0
- package/dist/react/chunks/DetailSidePanel-BTcHOiKr.mjs +36 -0
- package/dist/react/chunks/DetailSurfaceContent-B3ZNKh7q.mjs +200 -0
- package/dist/react/chunks/ECharts2dRenderer-C3Qv0uAa.mjs +3299 -0
- package/dist/react/chunks/ECharts3dRenderer-BB_7-fOt.mjs +21573 -0
- package/dist/react/chunks/EditSidePanel-C2cAvxlK.mjs +298 -0
- package/dist/react/chunks/InlineDetailPanel-BXLAw1o3.mjs +41 -0
- package/dist/react/chunks/PivotCharts-Bw6Swoa3.mjs +4252 -0
- package/dist/react/chunks/ReportEditor-D4V0ry2B.mjs +1726 -0
- package/dist/react/chunks/SidebarPanel-xO59p_2o.mjs +3339 -0
- package/dist/react/chunks/SparklineDetailGraph-Bu85X7OJ.mjs +200 -0
- package/dist/react/chunks/installCanvasRenderer-B7sfDGoL.mjs +21281 -0
- package/dist/react/chunks/react-CPZZxtSo.mjs +26999 -0
- package/dist/react/chunks/xlsx.mini.min-vfxHk3Ry.mjs +7996 -0
- package/dist/react/components/Charts/ChartRenderers.d.ts +73 -0
- package/dist/react/components/Charts/ChartWorkspace.d.ts +38 -0
- package/dist/react/components/Charts/ECharts2dRenderer.d.ts +5 -0
- package/dist/react/components/Charts/ECharts3dRenderer.d.ts +6 -0
- package/dist/react/components/Charts/PivotCharts.d.ts +9 -0
- package/dist/react/components/Charts/chartEnhancements.d.ts +66 -0
- package/dist/react/components/Charts/chartExportPresentation.d.ts +19 -0
- package/dist/react/components/Charts/chartMath.d.ts +4 -0
- package/dist/react/components/Charts/useChartExportMenu.d.ts +12 -0
- package/dist/react/components/DashTanstackPivot.react.d.ts +372 -0
- package/dist/react/components/Filters/ColumnFilter.d.ts +13 -0
- package/dist/react/components/Filters/DateRangeFilter.d.ts +8 -0
- package/dist/react/components/Filters/FilterPopover.d.ts +14 -0
- package/dist/react/components/Filters/MultiSelectFilter.d.ts +12 -0
- package/dist/react/components/Filters/NumericRangeFilter.d.ts +8 -0
- package/dist/react/components/Notification.d.ts +7 -0
- package/dist/react/components/PivotAppBar.d.ts +2 -0
- package/dist/react/components/PivotErrorBoundary.d.ts +15 -0
- package/dist/react/components/PivotSmallComponents.d.ts +6 -0
- package/dist/react/components/PivotWorkspace.d.ts +19 -0
- package/dist/react/components/PivotWorkspaceCanvas.d.ts +5 -0
- package/dist/react/components/PivotWorkspaceControls.d.ts +12 -0
- package/dist/react/components/PivotWorkspaceShell.d.ts +12 -0
- package/dist/react/components/RuntimeDataError.d.ts +7 -0
- package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +14 -0
- package/dist/react/components/Sidebar/ReportEditor.d.ts +21 -0
- package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +14 -0
- package/dist/react/components/Sidebar/SidebarPanel.d.ts +2 -0
- package/dist/react/components/Sidebar/ToolPanelSection.d.ts +14 -0
- package/dist/react/components/Sidebar/customCategoryUtils.d.ts +62 -0
- package/dist/react/components/Sidebar/formulaUtils.d.ts +22 -0
- package/dist/react/components/SkeletonRow.d.ts +6 -0
- package/dist/react/components/Table/ContextMenu.d.ts +9 -0
- package/dist/react/components/Table/DetailDrawer.d.ts +12 -0
- package/dist/react/components/Table/DetailSidePanel.d.ts +12 -0
- package/dist/react/components/Table/DetailSurfaceContent.d.ts +12 -0
- package/dist/react/components/Table/EditSidePanel.d.ts +21 -0
- package/dist/react/components/Table/EditableCell.d.ts +29 -0
- package/dist/react/components/Table/InlineDetailPanel.d.ts +14 -0
- package/dist/react/components/Table/PivotTableBody.d.ts +9 -0
- package/dist/react/components/Table/SparklineCell.d.ts +17 -0
- package/dist/react/components/Table/SparklineDetailGraph.d.ts +5 -0
- package/dist/react/components/Table/StatusBar.d.ts +8 -0
- package/dist/react/contexts/PivotConfigContext.d.ts +34 -0
- package/dist/react/contexts/PivotThemeContext.d.ts +7 -0
- package/dist/react/contexts/PivotValueDisplayContext.d.ts +10 -0
- package/dist/react/hooks/useCellInteraction.d.ts +31 -0
- package/dist/react/hooks/useChartState.d.ts +76 -0
- package/dist/react/hooks/useColumnDefs.d.ts +82 -0
- package/dist/react/hooks/useColumnVirtualizer.d.ts +30 -0
- package/dist/react/hooks/useDetailDrillThrough.d.ts +38 -0
- package/dist/react/hooks/useFilteredData.d.ts +2 -0
- package/dist/react/hooks/useFormatState.d.ts +44 -0
- package/dist/react/hooks/usePersistence.d.ts +5 -0
- package/dist/react/hooks/usePivotFieldInteractions.d.ts +28 -0
- package/dist/react/hooks/usePivotNormalization.d.ts +483 -0
- package/dist/react/hooks/usePivotRenderCounter.d.ts +1 -0
- package/dist/react/hooks/usePivotTransactions.d.ts +29 -0
- package/dist/react/hooks/useRenderHelpers.d.ts +85 -0
- package/dist/react/hooks/useReportMode.d.ts +32 -0
- package/dist/react/hooks/useRowCache.d.ts +19 -0
- package/dist/react/hooks/useRuntimeDataCommit.d.ts +26 -0
- package/dist/react/hooks/useRuntimeProfiling.d.ts +19 -0
- package/dist/react/hooks/useRuntimeTransport.d.ts +24 -0
- package/dist/react/hooks/useServerSideRowModel.d.ts +50 -0
- package/dist/react/hooks/useServerSideViewportController.d.ts +64 -0
- package/dist/react/hooks/useSidebarUI.d.ts +37 -0
- package/dist/react/hooks/useStickyStyles.d.ts +24 -0
- package/dist/react/index.mjs +16 -0
- package/dist/react/presentation/headerFormatting.d.ts +13 -0
- package/dist/react/presentation/safeCellContent.d.ts +16 -0
- package/dist/react/react.d.ts +8 -0
- package/dist/react/runtime/PivotRuntimeRoot.d.ts +7 -0
- package/dist/react/runtime/cellSelectionAnchor.d.ts +45 -0
- package/dist/react/runtime/client/clientPivotTransport.d.ts +28 -0
- package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +20 -0
- package/dist/react/runtime/client/clientSqlPlanner.d.ts +5 -0
- package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +36 -0
- package/dist/react/runtime/client/index.d.ts +6 -0
- package/dist/react/runtime/client/modeResolver.d.ts +16 -0
- package/dist/react/runtime/client/types.d.ts +202 -0
- package/dist/react/runtime/createRuntimeCellPresentation.d.ts +7 -0
- package/dist/react/runtime/createRuntimeExportCommands.d.ts +77 -0
- package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +9 -0
- package/dist/react/runtime/createWorkspacePresentation.d.ts +7 -0
- package/dist/react/runtime/displayColumnOrder.d.ts +4 -0
- package/dist/react/runtime/httpTransport.d.ts +65 -0
- package/dist/react/runtime/runtime-contract.generated.d.ts +48 -0
- package/dist/react/runtime/runtime-response-contract.generated.d.ts +34 -0
- package/dist/react/runtime/runtimeContract.d.ts +115 -0
- package/dist/react/runtime/runtimeDomains.d.ts +642 -0
- package/dist/react/runtime/runtimeDomains.type-test.d.ts +1 -0
- package/dist/react/runtime/runtimeResponseDedup.d.ts +36 -0
- package/dist/react/runtime/useChartWorkspacePresentation.d.ts +50 -0
- package/dist/react/runtime/useCommandRuntime.d.ts +3 -0
- package/dist/react/runtime/useCommandRuntimeStage.d.ts +1 -0
- package/dist/react/runtime/useCoreRuntime.d.ts +3 -0
- package/dist/react/runtime/useCoreRuntimeStage.d.ts +3 -0
- package/dist/react/runtime/useRuntimeCellSelection.d.ts +44 -0
- package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +36 -0
- package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +13 -0
- package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +9 -0
- package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +14 -0
- package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +28 -0
- package/dist/react/runtime/useRuntimeChartModels.d.ts +69 -0
- package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +12 -0
- package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +7 -0
- package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +159 -0
- package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +7 -0
- package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +55 -0
- package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +26 -0
- package/dist/react/runtime/useRuntimeColumnCommands.d.ts +22 -0
- package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +16 -0
- package/dist/react/runtime/useRuntimeDataRetry.d.ts +12 -0
- package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +17 -0
- package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +22 -0
- package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +28 -0
- package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +35 -0
- package/dist/react/runtime/useRuntimeEditDispatch.d.ts +47 -0
- package/dist/react/runtime/useRuntimeEditOwnership.d.ts +32 -0
- package/dist/react/runtime/useRuntimeEditPresentation.d.ts +32 -0
- package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +28 -0
- package/dist/react/runtime/useRuntimeExportState.d.ts +20 -0
- package/dist/react/runtime/useRuntimeFilterPopover.d.ts +23 -0
- package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +44 -0
- package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +27 -0
- package/dist/react/runtime/useRuntimeRequestSession.d.ts +79 -0
- package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +47 -0
- package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +15 -0
- package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +28 -0
- package/dist/react/runtime/useRuntimeRowEditing.d.ts +18 -0
- package/dist/react/runtime/useRuntimeRowSelection.d.ts +14 -0
- package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +36 -0
- package/dist/react/runtime/useRuntimeStructuralSync.d.ts +65 -0
- package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +9 -0
- package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +203 -0
- package/dist/react/runtime/useRuntimeViewportTableData.d.ts +23 -0
- package/dist/react/runtime/useTransportRuntime.d.ts +12 -0
- package/dist/react/runtime/useViewportRuntime.d.ts +3 -0
- package/dist/react/runtime/useViewportRuntimeStage.d.ts +1 -0
- package/dist/react/runtime/useWorkspaceRuntime.d.ts +3 -0
- package/dist/react/runtime/useWorkspaceRuntimeStage.d.ts +1 -0
- package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +115 -0
- package/dist/react/runtime/workspaceViewModel.d.ts +7 -0
- package/dist/react/utils/Icons.d.ts +46 -0
- package/dist/react/utils/chartModelBuilders.d.ts +236 -0
- package/dist/react/utils/columnOrder.d.ts +12 -0
- package/dist/react/utils/dataBars.d.ts +7 -0
- package/dist/react/utils/domEvents.d.ts +1 -0
- package/dist/react/utils/editing.d.ts +47 -0
- package/dist/react/utils/exportUtils.d.ts +121 -0
- package/dist/react/utils/fieldPanelLayout.d.ts +61 -0
- package/dist/react/utils/filterOptions.d.ts +4 -0
- package/dist/react/utils/formatting.d.ts +1 -0
- package/dist/react/utils/helpers.d.ts +20 -0
- package/dist/react/utils/horizontalViewport.d.ts +12 -0
- package/dist/react/utils/layoutRows.d.ts +3 -0
- package/dist/react/utils/measureAxis.d.ts +22 -0
- package/dist/react/utils/pivotLayoutUtils.d.ts +2 -0
- package/dist/react/utils/pivotProfiler.d.ts +4 -0
- package/dist/react/utils/rawTableTsv.d.ts +21 -0
- package/dist/react/utils/reportEditorSelection.d.ts +23 -0
- package/dist/react/utils/rowSpanning.d.ts +6 -0
- package/dist/react/utils/savedReports.d.ts +7 -0
- package/dist/react/utils/sorting.d.ts +14 -0
- package/dist/react/utils/sparklineDetail.d.ts +8 -0
- package/dist/react/utils/sparklines.d.ts +78 -0
- package/dist/react/utils/styles.d.ts +957 -0
- package/package.json +114 -6
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { y as g } from "./react-CPZZxtSo.mjs";
|
|
3
|
+
const s = (r, a = 4) => {
|
|
4
|
+
if (r == null || r === "") return "--";
|
|
5
|
+
const p = Number(r);
|
|
6
|
+
return Number.isFinite(p) ? p.toLocaleString(void 0, { maximumFractionDigits: a }) : String(r);
|
|
7
|
+
};
|
|
8
|
+
function R({
|
|
9
|
+
editedCells: r,
|
|
10
|
+
propagationLog: a,
|
|
11
|
+
onRevertCell: p,
|
|
12
|
+
onRevertAll: f,
|
|
13
|
+
onRevertSelected: m,
|
|
14
|
+
onReapplyPropagation: y,
|
|
15
|
+
onToggleDisplayMode: k,
|
|
16
|
+
displayMode: b,
|
|
17
|
+
onClose: h,
|
|
18
|
+
theme: n,
|
|
19
|
+
width: $ = 320,
|
|
20
|
+
pendingPropagation: E,
|
|
21
|
+
propagationMethod: i,
|
|
22
|
+
onPropagationMethodChange: v,
|
|
23
|
+
onConfirmPropagation: w,
|
|
24
|
+
onCancelPropagation: z
|
|
25
|
+
}) {
|
|
26
|
+
const x = E && E.length > 0, c = r && r.length > 0, W = c && r.some((t) => t.direct), B = !x && W && typeof y == "function";
|
|
27
|
+
if (!c && !x) return null;
|
|
28
|
+
const S = Math.max(260, Math.min(Number($) || 320, 480)), d = n.surfaceBg || n.background, l = n.border, o = n.primary || "#4F46E5";
|
|
29
|
+
return /* @__PURE__ */ e.createElement(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
"data-pivot-edit-panel": "true",
|
|
33
|
+
style: {
|
|
34
|
+
width: `${S}px`,
|
|
35
|
+
minWidth: `${S}px`,
|
|
36
|
+
borderLeft: `1px solid ${l}`,
|
|
37
|
+
background: d,
|
|
38
|
+
display: "flex",
|
|
39
|
+
flexDirection: "column",
|
|
40
|
+
minHeight: 0,
|
|
41
|
+
overflow: "hidden",
|
|
42
|
+
fontSize: "11px",
|
|
43
|
+
color: n.text
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
/* @__PURE__ */ e.createElement("div", { style: {
|
|
47
|
+
display: "flex",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
justifyContent: "space-between",
|
|
50
|
+
padding: "6px 10px",
|
|
51
|
+
borderBottom: `1px solid ${l}`,
|
|
52
|
+
background: n.headerBg || d,
|
|
53
|
+
flexShrink: 0
|
|
54
|
+
} }, /* @__PURE__ */ e.createElement("span", { style: { fontWeight: 700, fontSize: "12px", display: "flex", alignItems: "center", gap: "6px" } }, /* @__PURE__ */ e.createElement(g.Edit, null), "Edit Inspector"), /* @__PURE__ */ e.createElement(
|
|
55
|
+
"button",
|
|
56
|
+
{
|
|
57
|
+
type: "button",
|
|
58
|
+
onClick: h,
|
|
59
|
+
style: {
|
|
60
|
+
border: "none",
|
|
61
|
+
background: "transparent",
|
|
62
|
+
cursor: "pointer",
|
|
63
|
+
color: n.textSec,
|
|
64
|
+
padding: "2px",
|
|
65
|
+
display: "flex"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
/* @__PURE__ */ e.createElement(g.Close, null)
|
|
69
|
+
)),
|
|
70
|
+
c && /* @__PURE__ */ e.createElement("div", { style: {
|
|
71
|
+
display: "flex",
|
|
72
|
+
gap: "6px",
|
|
73
|
+
padding: "6px 10px",
|
|
74
|
+
borderBottom: `1px solid ${l}`,
|
|
75
|
+
flexShrink: 0,
|
|
76
|
+
background: n.headerBg || d
|
|
77
|
+
} }, /* @__PURE__ */ e.createElement(
|
|
78
|
+
"button",
|
|
79
|
+
{
|
|
80
|
+
type: "button",
|
|
81
|
+
onClick: k,
|
|
82
|
+
style: {
|
|
83
|
+
flex: 1,
|
|
84
|
+
border: `1px solid ${l}`,
|
|
85
|
+
borderRadius: "5px",
|
|
86
|
+
background: b === "original" ? `${o}15` : "transparent",
|
|
87
|
+
color: n.text,
|
|
88
|
+
padding: "4px 8px",
|
|
89
|
+
fontSize: "10px",
|
|
90
|
+
fontWeight: 600,
|
|
91
|
+
cursor: "pointer"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
b === "original" ? "Show Edited" : "Show Original"
|
|
95
|
+
), /* @__PURE__ */ e.createElement(
|
|
96
|
+
"button",
|
|
97
|
+
{
|
|
98
|
+
type: "button",
|
|
99
|
+
onClick: () => {
|
|
100
|
+
typeof m == "function" && r && r.length > 0 ? m(r) : typeof f == "function" && f();
|
|
101
|
+
},
|
|
102
|
+
style: {
|
|
103
|
+
flex: 1,
|
|
104
|
+
border: "1px solid rgba(220, 38, 38, 0.3)",
|
|
105
|
+
borderRadius: "5px",
|
|
106
|
+
background: "rgba(220, 38, 38, 0.08)",
|
|
107
|
+
color: "#B91C1C",
|
|
108
|
+
padding: "4px 8px",
|
|
109
|
+
fontSize: "10px",
|
|
110
|
+
fontWeight: 600,
|
|
111
|
+
cursor: "pointer"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"Revert Selected (",
|
|
115
|
+
r ? r.length : 0,
|
|
116
|
+
")"
|
|
117
|
+
)),
|
|
118
|
+
x && /* @__PURE__ */ e.createElement("div", { style: {
|
|
119
|
+
padding: "8px 10px",
|
|
120
|
+
borderBottom: `1px solid ${l}`,
|
|
121
|
+
background: `${o}08`,
|
|
122
|
+
flexShrink: 0
|
|
123
|
+
} }, /* @__PURE__ */ e.createElement("div", { style: { fontWeight: 700, fontSize: "11px", marginBottom: "6px", color: n.text } }, "Propagation Method"), /* @__PURE__ */ e.createElement("div", { style: { fontSize: "10px", color: n.textSec, marginBottom: "8px" } }, "Editing a group row will distribute the change to child rows."), /* @__PURE__ */ e.createElement("div", { style: { display: "flex", flexDirection: "column", gap: "4px", marginBottom: "8px" } }, [
|
|
124
|
+
{ value: "equal", label: "Equal", desc: "Distribute change evenly across child rows" },
|
|
125
|
+
{ value: "proportional", label: "Proportional", desc: "Preserve current child ratios" }
|
|
126
|
+
].map((t) => /* @__PURE__ */ e.createElement("label", { key: t.value, style: {
|
|
127
|
+
display: "flex",
|
|
128
|
+
alignItems: "center",
|
|
129
|
+
gap: "6px",
|
|
130
|
+
padding: "4px 8px",
|
|
131
|
+
borderRadius: "4px",
|
|
132
|
+
cursor: "pointer",
|
|
133
|
+
background: i === t.value ? `${o}14` : "transparent",
|
|
134
|
+
border: `1px solid ${i === t.value ? o + "40" : l}`
|
|
135
|
+
} }, /* @__PURE__ */ e.createElement(
|
|
136
|
+
"input",
|
|
137
|
+
{
|
|
138
|
+
type: "radio",
|
|
139
|
+
name: "propagation-method",
|
|
140
|
+
value: t.value,
|
|
141
|
+
checked: i === t.value,
|
|
142
|
+
onChange: () => v(t.value),
|
|
143
|
+
style: { margin: 0, accentColor: o }
|
|
144
|
+
}
|
|
145
|
+
), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { style: { fontWeight: 600, fontSize: "10px", color: n.text } }, t.label), /* @__PURE__ */ e.createElement("div", { style: { fontSize: "9px", color: n.textSec } }, t.desc))))), /* @__PURE__ */ e.createElement("div", { style: { display: "flex", gap: "6px" } }, /* @__PURE__ */ e.createElement(
|
|
146
|
+
"button",
|
|
147
|
+
{
|
|
148
|
+
type: "button",
|
|
149
|
+
onClick: w,
|
|
150
|
+
style: {
|
|
151
|
+
flex: 1,
|
|
152
|
+
border: `1px solid ${o}40`,
|
|
153
|
+
borderRadius: "5px",
|
|
154
|
+
background: `${o}18`,
|
|
155
|
+
color: o,
|
|
156
|
+
padding: "5px 8px",
|
|
157
|
+
fontSize: "10px",
|
|
158
|
+
fontWeight: 700,
|
|
159
|
+
cursor: "pointer"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"Apply Edit"
|
|
163
|
+
), /* @__PURE__ */ e.createElement(
|
|
164
|
+
"button",
|
|
165
|
+
{
|
|
166
|
+
type: "button",
|
|
167
|
+
onClick: z,
|
|
168
|
+
style: {
|
|
169
|
+
flex: 1,
|
|
170
|
+
border: `1px solid ${l}`,
|
|
171
|
+
borderRadius: "5px",
|
|
172
|
+
background: "transparent",
|
|
173
|
+
color: n.textSec,
|
|
174
|
+
padding: "5px 8px",
|
|
175
|
+
fontSize: "10px",
|
|
176
|
+
fontWeight: 600,
|
|
177
|
+
cursor: "pointer"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"Cancel"
|
|
181
|
+
))),
|
|
182
|
+
c && /* @__PURE__ */ e.createElement("div", { style: { flex: 1, overflowY: "auto", padding: "4px 0" } }, r.map((t) => /* @__PURE__ */ e.createElement(
|
|
183
|
+
"div",
|
|
184
|
+
{
|
|
185
|
+
key: `${t.rowId}:::${t.colId}`,
|
|
186
|
+
style: {
|
|
187
|
+
padding: "5px 10px",
|
|
188
|
+
borderBottom: `1px solid ${l}22`,
|
|
189
|
+
display: "flex",
|
|
190
|
+
flexDirection: "column",
|
|
191
|
+
gap: "2px"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
/* @__PURE__ */ e.createElement("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" } }, /* @__PURE__ */ e.createElement("span", { style: { fontWeight: 600, color: n.text, fontSize: "10px", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", maxWidth: "60%" } }, t.colId), /* @__PURE__ */ e.createElement("div", { style: { display: "flex", gap: "4px", alignItems: "center" } }, t.propagated && /* @__PURE__ */ e.createElement("span", { style: {
|
|
195
|
+
fontSize: "9px",
|
|
196
|
+
padding: "1px 4px",
|
|
197
|
+
borderRadius: "3px",
|
|
198
|
+
background: `${o}18`,
|
|
199
|
+
color: o,
|
|
200
|
+
fontWeight: 600
|
|
201
|
+
} }, "propagated"), t.direct && /* @__PURE__ */ e.createElement("span", { style: {
|
|
202
|
+
fontSize: "9px",
|
|
203
|
+
padding: "1px 4px",
|
|
204
|
+
borderRadius: "3px",
|
|
205
|
+
background: "rgba(16, 185, 129, 0.12)",
|
|
206
|
+
color: "#047857",
|
|
207
|
+
fontWeight: 600
|
|
208
|
+
} }, "direct"), p && /* @__PURE__ */ e.createElement(
|
|
209
|
+
"button",
|
|
210
|
+
{
|
|
211
|
+
type: "button",
|
|
212
|
+
onClick: () => p(t.rowId, t.colId),
|
|
213
|
+
title: "Revert this cell to original",
|
|
214
|
+
style: {
|
|
215
|
+
border: "none",
|
|
216
|
+
background: "transparent",
|
|
217
|
+
cursor: "pointer",
|
|
218
|
+
color: n.textSec,
|
|
219
|
+
padding: "1px",
|
|
220
|
+
fontSize: "10px",
|
|
221
|
+
display: "flex"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
/* @__PURE__ */ e.createElement(g.Close, null)
|
|
225
|
+
))),
|
|
226
|
+
/* @__PURE__ */ e.createElement("div", { style: { display: "flex", gap: "8px", fontSize: "10px", color: n.textSec } }, /* @__PURE__ */ e.createElement("span", null, "Row: ", /* @__PURE__ */ e.createElement("span", { style: { color: n.text, fontWeight: 500 } }, String(t.rowId).split("|||").pop()))),
|
|
227
|
+
/* @__PURE__ */ e.createElement("div", { style: { display: "flex", gap: "10px", fontSize: "10px" } }, /* @__PURE__ */ e.createElement("span", { style: { color: n.textSec } }, "Original: ", /* @__PURE__ */ e.createElement("span", { style: { color: n.text } }, s(t.originalValue))), t.currentValue !== void 0 && /* @__PURE__ */ e.createElement("span", { style: { color: n.textSec } }, "Now: ", /* @__PURE__ */ e.createElement("span", { style: { color: o, fontWeight: 600 } }, s(t.currentValue))))
|
|
228
|
+
))),
|
|
229
|
+
B && /* @__PURE__ */ e.createElement("div", { style: {
|
|
230
|
+
padding: "6px 10px",
|
|
231
|
+
borderTop: `1px solid ${l}`,
|
|
232
|
+
borderBottom: `1px solid ${l}`,
|
|
233
|
+
background: `${o}06`,
|
|
234
|
+
flexShrink: 0
|
|
235
|
+
} }, /* @__PURE__ */ e.createElement("div", { style: { fontWeight: 700, fontSize: "10px", marginBottom: "4px", color: n.text } }, "Change Propagation"), /* @__PURE__ */ e.createElement("div", { style: { display: "flex", flexDirection: "column", gap: "3px" } }, [
|
|
236
|
+
{ value: "equal", label: "Equal" },
|
|
237
|
+
{ value: "proportional", label: "Proportional" }
|
|
238
|
+
].map((t) => /* @__PURE__ */ e.createElement("label", { key: t.value, style: {
|
|
239
|
+
display: "flex",
|
|
240
|
+
alignItems: "center",
|
|
241
|
+
gap: "5px",
|
|
242
|
+
padding: "3px 6px",
|
|
243
|
+
borderRadius: "3px",
|
|
244
|
+
cursor: "pointer",
|
|
245
|
+
fontSize: "10px",
|
|
246
|
+
background: i === t.value ? `${o}14` : "transparent",
|
|
247
|
+
border: `1px solid ${i === t.value ? o + "40" : l}`
|
|
248
|
+
} }, /* @__PURE__ */ e.createElement(
|
|
249
|
+
"input",
|
|
250
|
+
{
|
|
251
|
+
type: "radio",
|
|
252
|
+
name: "reapply-method",
|
|
253
|
+
value: t.value,
|
|
254
|
+
checked: i === t.value,
|
|
255
|
+
onChange: () => {
|
|
256
|
+
v(t.value), y(r.filter((u) => u.direct), t.value);
|
|
257
|
+
},
|
|
258
|
+
style: { margin: 0, accentColor: o }
|
|
259
|
+
}
|
|
260
|
+
), /* @__PURE__ */ e.createElement("span", { style: { fontWeight: 600 } }, t.label))))),
|
|
261
|
+
a && a.length > 0 && /* @__PURE__ */ e.createElement("div", { style: {
|
|
262
|
+
borderTop: `1px solid ${l}`,
|
|
263
|
+
flexShrink: 0,
|
|
264
|
+
maxHeight: "120px",
|
|
265
|
+
overflowY: "auto"
|
|
266
|
+
} }, /* @__PURE__ */ e.createElement("div", { style: {
|
|
267
|
+
padding: "4px 10px",
|
|
268
|
+
fontWeight: 700,
|
|
269
|
+
fontSize: "10px",
|
|
270
|
+
color: n.textSec,
|
|
271
|
+
background: n.headerBg || d,
|
|
272
|
+
borderBottom: `1px solid ${l}22`,
|
|
273
|
+
position: "sticky",
|
|
274
|
+
top: 0
|
|
275
|
+
} }, "Propagation Log (", a.length, ")"), a.slice().reverse().slice(0, 10).map((t, u) => /* @__PURE__ */ e.createElement(
|
|
276
|
+
"div",
|
|
277
|
+
{
|
|
278
|
+
key: u,
|
|
279
|
+
style: {
|
|
280
|
+
padding: "3px 10px",
|
|
281
|
+
fontSize: "10px",
|
|
282
|
+
display: "flex",
|
|
283
|
+
gap: "6px",
|
|
284
|
+
alignItems: "center",
|
|
285
|
+
color: n.textSec,
|
|
286
|
+
borderBottom: `1px solid ${l}11`
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
/* @__PURE__ */ e.createElement("span", { style: { fontWeight: 600, color: o } }, t.strategy || "equal"),
|
|
290
|
+
/* @__PURE__ */ e.createElement("span", null, t.targetColumn || "?"),
|
|
291
|
+
/* @__PURE__ */ e.createElement("span", null, s(t.fromValue, 2), " → ", s(t.toValue, 2)),
|
|
292
|
+
/* @__PURE__ */ e.createElement("span", null, "(", t.updatedRowCount || 0, "r)")
|
|
293
|
+
)))
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
export {
|
|
297
|
+
R as default
|
|
298
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import o from "react";
|
|
2
|
+
import { D as p } from "./DetailSurfaceContent-B3ZNKh7q.mjs";
|
|
3
|
+
function f({
|
|
4
|
+
detailState: r,
|
|
5
|
+
onClose: t,
|
|
6
|
+
onPageChange: a,
|
|
7
|
+
onSort: n,
|
|
8
|
+
onFilter: d,
|
|
9
|
+
theme: e,
|
|
10
|
+
width: i,
|
|
11
|
+
top: l,
|
|
12
|
+
height: u = 280
|
|
13
|
+
}) {
|
|
14
|
+
return r ? /* @__PURE__ */ o.createElement("div", { style: {
|
|
15
|
+
position: "absolute",
|
|
16
|
+
top: `${l}px`,
|
|
17
|
+
left: 0,
|
|
18
|
+
width: `${i}px`,
|
|
19
|
+
height: `${Math.max(220, Number(u) || 280)}px`,
|
|
20
|
+
zIndex: 95,
|
|
21
|
+
border: `1px solid ${e.border}`,
|
|
22
|
+
borderRadius: "14px",
|
|
23
|
+
overflow: "hidden",
|
|
24
|
+
background: e.surfaceBg || e.background,
|
|
25
|
+
boxShadow: "0 18px 40px rgba(15,23,42,0.16)"
|
|
26
|
+
} }, /* @__PURE__ */ o.createElement(
|
|
27
|
+
p,
|
|
28
|
+
{
|
|
29
|
+
detailState: r,
|
|
30
|
+
onClose: t,
|
|
31
|
+
onPageChange: a,
|
|
32
|
+
onSort: n,
|
|
33
|
+
onFilter: d,
|
|
34
|
+
theme: e,
|
|
35
|
+
compact: !0
|
|
36
|
+
}
|
|
37
|
+
)) : null;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
f as default
|
|
41
|
+
};
|