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,28 @@
|
|
|
1
|
+
/** Tracks optimistic edit overlays, comparison values, and aggregate markers. */
|
|
2
|
+
export function useRuntimeEditChangeTracking({ bumpComparisonCellEpoch, bumpEditedCellEpoch, bumpOptimisticCellEpoch, cellValuesMatch, comparisonCellCountsRef, comparisonCellOriginalValuesRef, editedCellMarkersRef, getOptimisticCellKey, optimisticCellValuesRef, resolveAggregationConfigForColumnId, resolveCurrentCellValue, resolveVisibleDataRowId, syncComparisonValueState, tableDataRef, }: {
|
|
3
|
+
bumpComparisonCellEpoch: any;
|
|
4
|
+
bumpEditedCellEpoch: any;
|
|
5
|
+
bumpOptimisticCellEpoch: any;
|
|
6
|
+
cellValuesMatch: any;
|
|
7
|
+
comparisonCellCountsRef: any;
|
|
8
|
+
comparisonCellOriginalValuesRef: any;
|
|
9
|
+
editedCellMarkersRef: any;
|
|
10
|
+
getOptimisticCellKey: any;
|
|
11
|
+
optimisticCellValuesRef: any;
|
|
12
|
+
resolveAggregationConfigForColumnId: any;
|
|
13
|
+
resolveCurrentCellValue: any;
|
|
14
|
+
resolveVisibleDataRowId: any;
|
|
15
|
+
syncComparisonValueState: any;
|
|
16
|
+
tableDataRef: any;
|
|
17
|
+
}): {
|
|
18
|
+
applyComparisonValuePlan: (comparisonPlan: any, direction?: string) => void;
|
|
19
|
+
applyEditedCellMarkerPlan: (markerPlan: any, direction?: string) => void;
|
|
20
|
+
buildComparisonValuePlan: (updates: any) => {
|
|
21
|
+
cells: any[];
|
|
22
|
+
} | null;
|
|
23
|
+
buildEditedCellMarkerPlan: (updates: any) => {
|
|
24
|
+
direct: any[];
|
|
25
|
+
propagated: any[];
|
|
26
|
+
} | null;
|
|
27
|
+
reconcileOptimisticCellValuesWithPayload: (payload: any) => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Owns row-edit synchronization and the persisted comparison/marker state. */
|
|
2
|
+
export function useRuntimeEditComparisonState({ comparisonCellCountsRef, comparisonCellEpoch, comparisonCellOriginalValuesRef, comparisonValueState, editedCellEpoch, editedCellMarkersRef, getOptimisticCellKey, normalizeTrackedEventIds, rowEditSessions, rowEditSessionsRef, setComparisonCellEpoch, setComparisonValueState, setEditedCellEpoch, setOptimisticCellEpoch, setRowEditSessions, }: {
|
|
3
|
+
comparisonCellCountsRef: any;
|
|
4
|
+
comparisonCellEpoch: any;
|
|
5
|
+
comparisonCellOriginalValuesRef: any;
|
|
6
|
+
comparisonValueState: any;
|
|
7
|
+
editedCellEpoch: any;
|
|
8
|
+
editedCellMarkersRef: any;
|
|
9
|
+
getOptimisticCellKey: any;
|
|
10
|
+
normalizeTrackedEventIds: any;
|
|
11
|
+
rowEditSessions: any;
|
|
12
|
+
rowEditSessionsRef: any;
|
|
13
|
+
setComparisonCellEpoch: any;
|
|
14
|
+
setComparisonValueState: any;
|
|
15
|
+
setEditedCellEpoch: any;
|
|
16
|
+
setOptimisticCellEpoch: any;
|
|
17
|
+
setRowEditSessions: any;
|
|
18
|
+
}): {
|
|
19
|
+
bumpComparisonCellEpoch: () => void;
|
|
20
|
+
bumpEditedCellEpoch: () => void;
|
|
21
|
+
bumpOptimisticCellEpoch: () => void;
|
|
22
|
+
restoreSerializedEditComparisonState: (serializedState: any) => void;
|
|
23
|
+
serializeEditComparisonState: () => {
|
|
24
|
+
version: number;
|
|
25
|
+
cells: any[];
|
|
26
|
+
markers: any[];
|
|
27
|
+
} | null;
|
|
28
|
+
serializedEditComparisonState: {
|
|
29
|
+
version: number;
|
|
30
|
+
cells: any[];
|
|
31
|
+
markers: any[];
|
|
32
|
+
} | null;
|
|
33
|
+
syncComparisonValueState: () => void;
|
|
34
|
+
updateRowEditSessions: (updater: any) => any;
|
|
35
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns edit request preparation and dispatch. Row-editor presentation remains
|
|
3
|
+
* in the interaction stage; this hook owns the client/server transaction
|
|
4
|
+
* boundary, including aggregate-propagation and replacement ownership rules.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeEditDispatch({ applyComparisonValuePlan, applyEditedCellMarkerPlan, buildComparisonValuePlan, buildEditedCellMarkerPlan, captureOptimisticCellValues, comparisonCellOriginalValuesRef, dispatchTransactionRequest, editValueDisplayMode, editingEnabled, findTransactionHistoryEntryByEventId, getOptimisticCellKey, isParentAggregatePropagationEdit, lastPropagationFormulaRef, pendingPropagationUpdatesRef, queueTransactionHistoryRequest, resolveCellEditOwnershipState, rowFields, serverSide, setEditPanelOpen, setEditValueDisplayMode, setPendingPropagationUpdates, setPropagationMethodUI, setPropsRef, showNotification, sortEventIdsByActiveHistory, supportsPatchTransactionRefresh, }: {
|
|
7
|
+
applyComparisonValuePlan: any;
|
|
8
|
+
applyEditedCellMarkerPlan: any;
|
|
9
|
+
buildComparisonValuePlan: any;
|
|
10
|
+
buildEditedCellMarkerPlan: any;
|
|
11
|
+
captureOptimisticCellValues: any;
|
|
12
|
+
comparisonCellOriginalValuesRef: any;
|
|
13
|
+
dispatchTransactionRequest: any;
|
|
14
|
+
editValueDisplayMode: any;
|
|
15
|
+
editingEnabled: any;
|
|
16
|
+
findTransactionHistoryEntryByEventId: any;
|
|
17
|
+
getOptimisticCellKey: any;
|
|
18
|
+
isParentAggregatePropagationEdit: any;
|
|
19
|
+
lastPropagationFormulaRef: any;
|
|
20
|
+
pendingPropagationUpdatesRef: any;
|
|
21
|
+
queueTransactionHistoryRequest: any;
|
|
22
|
+
resolveCellEditOwnershipState: any;
|
|
23
|
+
rowFields: any;
|
|
24
|
+
serverSide: any;
|
|
25
|
+
setEditPanelOpen: any;
|
|
26
|
+
setEditValueDisplayMode: any;
|
|
27
|
+
setPendingPropagationUpdates: any;
|
|
28
|
+
setPropagationMethodUI: any;
|
|
29
|
+
setPropsRef: any;
|
|
30
|
+
showNotification: any;
|
|
31
|
+
sortEventIdsByActiveHistory: any;
|
|
32
|
+
supportsPatchTransactionRefresh: any;
|
|
33
|
+
}): {
|
|
34
|
+
analyzeServerEditOwnership: (updates: any) => {
|
|
35
|
+
mode: string;
|
|
36
|
+
targetEventIds: never[];
|
|
37
|
+
reason: any;
|
|
38
|
+
} | {
|
|
39
|
+
mode: string;
|
|
40
|
+
targetEventIds: any;
|
|
41
|
+
reason: null;
|
|
42
|
+
};
|
|
43
|
+
dispatchBatchUpdateRequest: (updates: any, source?: string, meta?: null) => any;
|
|
44
|
+
dispatchInlineCellEdit: (update: any) => void;
|
|
45
|
+
dispatchServerEditUpdates: (updates: any, source?: string, meta?: null) => any;
|
|
46
|
+
resolvePropagationFormulaUpdates: (updates: any, source: any, meta: any) => any[] | null;
|
|
47
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns comparison-cell event ownership and server overlay hydration. This is
|
|
3
|
+
* separate from edit dispatch: it only describes which active events own a
|
|
4
|
+
* cell and updates local overlay state from server responses.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeEditOwnership({ bumpComparisonCellEpoch, bumpEditedCellEpoch, comparisonCellCountsRef, comparisonCellOriginalValuesRef, editedCellMarkersRef, getOptimisticCellKey, normalizeTrackedEventIds, resolveCurrentCellValue, splitOptimisticCellKey, syncComparisonValueState, }: {
|
|
7
|
+
bumpComparisonCellEpoch: any;
|
|
8
|
+
bumpEditedCellEpoch: any;
|
|
9
|
+
comparisonCellCountsRef: any;
|
|
10
|
+
comparisonCellOriginalValuesRef: any;
|
|
11
|
+
editedCellMarkersRef: any;
|
|
12
|
+
getOptimisticCellKey: any;
|
|
13
|
+
normalizeTrackedEventIds: any;
|
|
14
|
+
resolveCurrentCellValue: any;
|
|
15
|
+
splitOptimisticCellKey: any;
|
|
16
|
+
syncComparisonValueState: any;
|
|
17
|
+
}): {
|
|
18
|
+
appendTrackedEventOwnership: (eventId: any, affectedCells: any) => void;
|
|
19
|
+
detachTrackedEventOwnership: (eventIds: any, options?: {}) => void;
|
|
20
|
+
ensureTrackedComparisonCellEntry: (key: any, fallback?: null) => any;
|
|
21
|
+
hydrateVisibleEditOverlay: (editOverlay: any) => void;
|
|
22
|
+
resolveCellEditOwnershipState: (rowId: any, colId: any) => {
|
|
23
|
+
mode: string;
|
|
24
|
+
targetEventIds: never[];
|
|
25
|
+
reason: string;
|
|
26
|
+
} | {
|
|
27
|
+
mode: string;
|
|
28
|
+
targetEventIds: any[];
|
|
29
|
+
reason: null;
|
|
30
|
+
};
|
|
31
|
+
resolveTrackedCellEventIds: (rowId: any, colId: any, options?: {}) => any[];
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Supplies editable-column metadata and editor presentation from grid state. */
|
|
2
|
+
export function useRuntimeEditPresentation({ editorOptionsLoadingRef, filterOptions, getKey, normalizedEditingConfig, resolveCellEditOwnershipState, resolveColumnEditSpec, resolveEditorOptionsSource, resolveVisibleDataRowId, serverSide, tableDataRef, valConfigs, validationRules, }: {
|
|
3
|
+
editorOptionsLoadingRef: any;
|
|
4
|
+
filterOptions: any;
|
|
5
|
+
getKey: any;
|
|
6
|
+
normalizedEditingConfig: any;
|
|
7
|
+
resolveCellEditOwnershipState: any;
|
|
8
|
+
resolveColumnEditSpec: any;
|
|
9
|
+
resolveEditorOptionsSource: any;
|
|
10
|
+
resolveVisibleDataRowId: any;
|
|
11
|
+
serverSide: any;
|
|
12
|
+
tableDataRef: any;
|
|
13
|
+
valConfigs: any;
|
|
14
|
+
validationRules: any;
|
|
15
|
+
}): {
|
|
16
|
+
getDirectVisibleChildRowIds: (ancestorRowId: any) => any;
|
|
17
|
+
isEditableAggregationColumn: (config: any, columnId: any) => boolean;
|
|
18
|
+
resolveAggregationConfigForColumnId: (columnId: any) => {
|
|
19
|
+
field: any;
|
|
20
|
+
agg: any;
|
|
21
|
+
weightField: any;
|
|
22
|
+
windowFn: any;
|
|
23
|
+
} | null;
|
|
24
|
+
resolveEditorPresentation: (rowId: any, columnId: any, columnConfig?: null, currentValue?: undefined, defaultEditable?: boolean) => {
|
|
25
|
+
editorConfig: any;
|
|
26
|
+
options: any;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
optionsKey: any;
|
|
29
|
+
editingDisabled: boolean;
|
|
30
|
+
editingDisabledReason: any;
|
|
31
|
+
} | null;
|
|
32
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns edit-comparison state persistence and rehydration. The state store is
|
|
3
|
+
* intentionally explicit: this hook has no dependency on the legacy runtime
|
|
4
|
+
* record and can be moved behind the editing domain unchanged.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeEditStatePersistence({ editValueDisplayMode, externalEditState, id, loadPersistedState, persistence, propagationLogEpoch, propagationLogRef, restoreSerializedEditComparisonState, savePersistedState, serializedEditComparisonState, setEditValueDisplayMode, setPropagationLogEpoch, setProps, viewState, }: {
|
|
7
|
+
editValueDisplayMode: any;
|
|
8
|
+
externalEditState: any;
|
|
9
|
+
id: any;
|
|
10
|
+
loadPersistedState: any;
|
|
11
|
+
persistence: any;
|
|
12
|
+
propagationLogEpoch: any;
|
|
13
|
+
propagationLogRef: any;
|
|
14
|
+
restoreSerializedEditComparisonState: any;
|
|
15
|
+
savePersistedState: any;
|
|
16
|
+
serializedEditComparisonState: any;
|
|
17
|
+
setEditValueDisplayMode: any;
|
|
18
|
+
setPropagationLogEpoch: any;
|
|
19
|
+
setProps: any;
|
|
20
|
+
viewState: any;
|
|
21
|
+
}): {
|
|
22
|
+
didAttemptEditComparisonRestoreRef: import("react").RefObject<boolean>;
|
|
23
|
+
didRestorePersistedEditComparisonRef: import("react").RefObject<boolean>;
|
|
24
|
+
didRestoreEditStateFromPropRef: import("react").RefObject<boolean>;
|
|
25
|
+
editStateSessionKey: string | null;
|
|
26
|
+
lastEmittedEditStateKeyRef: import("react").RefObject<null>;
|
|
27
|
+
lastRestoredViewEditComparisonKeyRef: import("react").RefObject<null>;
|
|
28
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** State and request identity owned by the export/copy domain. */
|
|
2
|
+
export function useRuntimeExportState(): {
|
|
3
|
+
COPY_ROW_LIMIT: number;
|
|
4
|
+
EXPORT_ROW_LIMIT: number;
|
|
5
|
+
activeExportRequestIdRef: import("react").RefObject<null>;
|
|
6
|
+
cancelledExportRequestIdsRef: import("react").RefObject<Set<any>>;
|
|
7
|
+
exportProgress: number | import("./runtimeDomains").ExportJobProgress | null;
|
|
8
|
+
exportJobControllerRef: import("react").RefObject<import("./runtimeDomains").ExportJobController | null>;
|
|
9
|
+
exportRequestSequenceRef: import("react").RefObject<number>;
|
|
10
|
+
isCopying: boolean;
|
|
11
|
+
isExporting: boolean;
|
|
12
|
+
partModal: null;
|
|
13
|
+
pendingCopyIntentRef: import("react").RefObject<null>;
|
|
14
|
+
setExportProgress: import("react").Dispatch<import("react").SetStateAction<number | import("./runtimeDomains").ExportJobProgress | null>>;
|
|
15
|
+
setIsCopying: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
16
|
+
setIsExporting: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
+
setPartModal: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
18
|
+
};
|
|
19
|
+
export const EXPORT_ROW_LIMIT: 100000;
|
|
20
|
+
export const COPY_ROW_LIMIT: 10000;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns filter-popover state transitions and its server option request.
|
|
3
|
+
* The request is emitted as the V1 runtime envelope before it crosses the
|
|
4
|
+
* legacy state-override adapter.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeFilterPopover({ activeFilterCol, dispatchServerSideRuntimeSetProps, filterOptionMeta, filterOptions, pendingServerFilterOptionsRef, serverSide, setActiveFilterCol, setFilterAnchorEl, setFilters, setTransportFilterOptionMetaState, showFilters, }: {
|
|
7
|
+
activeFilterCol: any;
|
|
8
|
+
dispatchServerSideRuntimeSetProps: any;
|
|
9
|
+
filterOptionMeta: any;
|
|
10
|
+
filterOptions: any;
|
|
11
|
+
pendingServerFilterOptionsRef: any;
|
|
12
|
+
serverSide: any;
|
|
13
|
+
setActiveFilterCol: any;
|
|
14
|
+
setFilterAnchorEl: any;
|
|
15
|
+
setFilters: any;
|
|
16
|
+
setTransportFilterOptionMetaState: any;
|
|
17
|
+
showFilters: any;
|
|
18
|
+
}): {
|
|
19
|
+
closeFilterPopover: () => void;
|
|
20
|
+
handleFilterClick: (event: any, columnId: any) => void;
|
|
21
|
+
handleHeaderFilter: (columnId: any, filterValue: any) => void;
|
|
22
|
+
requestFilterOptions: (columnId: any, options?: {}) => boolean;
|
|
23
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns layout snapshot capture and every mutation that must be undoable as a
|
|
3
|
+
* single layout-history operation. It is intentionally independent of the
|
|
4
|
+
* mutable legacy environment.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeLayoutHistory({ layoutHistorySnapshot, layoutHistorySnapshotRef, normalizedInitialValConfigs, pendingLayoutHistoryCaptureRef, pendingLayoutHistoryCaptureTimeoutRef, pushUnifiedHistoryEntry, setColExpanded, setColFields, setColumnOrder, setPivotLayoutOrder, setPivotPinnedLayoutIds, setColumnPinning, setExpanded, setFilters, setGrandTotalPinOverride, setLayoutMode, setRowFields, setRowPinning, setShowColTotals, setShowRowTotals, setShowSubtotals, setSorting, setValConfigs, }: {
|
|
7
|
+
layoutHistorySnapshot: any;
|
|
8
|
+
layoutHistorySnapshotRef: any;
|
|
9
|
+
normalizedInitialValConfigs: any;
|
|
10
|
+
pendingLayoutHistoryCaptureRef: any;
|
|
11
|
+
pendingLayoutHistoryCaptureTimeoutRef: any;
|
|
12
|
+
pushUnifiedHistoryEntry: any;
|
|
13
|
+
setColExpanded: any;
|
|
14
|
+
setColFields: any;
|
|
15
|
+
setColumnOrder: any;
|
|
16
|
+
setPivotLayoutOrder: any;
|
|
17
|
+
setPivotPinnedLayoutIds: any;
|
|
18
|
+
setColumnPinning: any;
|
|
19
|
+
setExpanded: any;
|
|
20
|
+
setFilters: any;
|
|
21
|
+
setGrandTotalPinOverride: any;
|
|
22
|
+
setLayoutMode: any;
|
|
23
|
+
setRowFields: any;
|
|
24
|
+
setRowPinning: any;
|
|
25
|
+
setShowColTotals: any;
|
|
26
|
+
setShowRowTotals: any;
|
|
27
|
+
setShowSubtotals: any;
|
|
28
|
+
setSorting: any;
|
|
29
|
+
setValConfigs: any;
|
|
30
|
+
}): {
|
|
31
|
+
applyLayoutHistorySnapshot: (snapshot: any) => void;
|
|
32
|
+
clearPendingLayoutHistoryCapture: (token?: null) => void;
|
|
33
|
+
pushImmediateLayoutHistoryEntry: (sliceKey: any, updater: any, source: any) => any;
|
|
34
|
+
requestLayoutHistoryCapture: (source?: string) => string;
|
|
35
|
+
setColExpandedWithHistory: (updater: any, source?: string) => void;
|
|
36
|
+
setColFieldsWithHistory: (updater: any, source?: string) => void;
|
|
37
|
+
setColumnOrderWithHistory: (updater: any, source?: string) => void;
|
|
38
|
+
setColumnPinningWithHistory: (updater: any, source?: string) => void;
|
|
39
|
+
setExpandedWithHistory: (updater: any, source?: string) => void;
|
|
40
|
+
setRowFieldsWithHistory: (updater: any, source?: string) => void;
|
|
41
|
+
setRowPinningWithHistory: (updater: any, source?: string) => void;
|
|
42
|
+
setValConfigsWithHistory: (updater: any, source?: string) => void;
|
|
43
|
+
toggleCol: (key: any, source?: string) => void;
|
|
44
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Owns optimistic values, request cleanup, and edit-display reset commands. */
|
|
2
|
+
export function useRuntimeOptimisticCellState({ bumpComparisonCellEpoch, bumpEditedCellEpoch, bumpOptimisticCellEpoch, comparisonCellCountsRef, comparisonCellOriginalValuesRef, editedCellMarkersRef, getDirectVisibleChildRowIds, getOptimisticCellKey, optimisticCellRequestsRef, optimisticCellValuesRef, resolveAggregationConfigForColumnId, resolveCurrentCellValue, syncComparisonValueState, }: {
|
|
3
|
+
bumpComparisonCellEpoch: any;
|
|
4
|
+
bumpEditedCellEpoch: any;
|
|
5
|
+
bumpOptimisticCellEpoch: any;
|
|
6
|
+
comparisonCellCountsRef: any;
|
|
7
|
+
comparisonCellOriginalValuesRef: any;
|
|
8
|
+
editedCellMarkersRef: any;
|
|
9
|
+
getDirectVisibleChildRowIds: any;
|
|
10
|
+
getOptimisticCellKey: any;
|
|
11
|
+
optimisticCellRequestsRef: any;
|
|
12
|
+
optimisticCellValuesRef: any;
|
|
13
|
+
resolveAggregationConfigForColumnId: any;
|
|
14
|
+
resolveCurrentCellValue: any;
|
|
15
|
+
syncComparisonValueState: any;
|
|
16
|
+
}): {
|
|
17
|
+
captureOptimisticCellValues: (updates: any, requestId: any) => void;
|
|
18
|
+
clearAllComparisonValueState: () => void;
|
|
19
|
+
clearAllEditedCellMarkers: () => void;
|
|
20
|
+
clearAllOptimisticCellValues: () => void;
|
|
21
|
+
clearOptimisticCellValuesForRequest: (requestId: any) => void;
|
|
22
|
+
releaseOptimisticCellRequest: (requestId: any) => void;
|
|
23
|
+
resolveEditedCellMarker: (rowId: any, colId: any) => {
|
|
24
|
+
direct: boolean;
|
|
25
|
+
propagated: boolean;
|
|
26
|
+
} | null;
|
|
27
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns runtime identity, request generations, cache-facing refs, and edit
|
|
3
|
+
* overlay state shared by transport, response, and editing domains.
|
|
4
|
+
*/
|
|
5
|
+
export function useRuntimeRequestSession({ dataVersion, id }: {
|
|
6
|
+
dataVersion: any;
|
|
7
|
+
id: any;
|
|
8
|
+
}): {
|
|
9
|
+
abortGeneration: number;
|
|
10
|
+
abortGenerationRef: import("react").RefObject<number>;
|
|
11
|
+
activeRuntimePayloadFetchRef: import("react").RefObject<null>;
|
|
12
|
+
clientInstanceRef: import("react").RefObject<string>;
|
|
13
|
+
comparisonCellCountsRef: import("react").RefObject<Map<any, any>>;
|
|
14
|
+
comparisonCellEpoch: number;
|
|
15
|
+
comparisonCellOriginalValuesRef: import("react").RefObject<Map<any, any>>;
|
|
16
|
+
comparisonValueState: {
|
|
17
|
+
activeCount: number;
|
|
18
|
+
};
|
|
19
|
+
deferredViewportRefreshTimeoutRef: import("react").RefObject<null>;
|
|
20
|
+
editPanelOpen: boolean;
|
|
21
|
+
editedCellEpoch: number;
|
|
22
|
+
editedCellMarkersRef: import("react").RefObject<Map<any, any>>;
|
|
23
|
+
editorOptionsLoadingRef: import("react").RefObject<{}>;
|
|
24
|
+
editValueDisplayMode: string;
|
|
25
|
+
expandAllDebounceRef: import("react").RefObject<boolean>;
|
|
26
|
+
lastPropagationFormulaRef: import("react").RefObject<string>;
|
|
27
|
+
latestDataVersionRef: import("react").RefObject<number>;
|
|
28
|
+
latestViewportRef: import("react").RefObject<{
|
|
29
|
+
start: number;
|
|
30
|
+
end: number;
|
|
31
|
+
count: number;
|
|
32
|
+
}>;
|
|
33
|
+
optimisticCellRequestsRef: import("react").RefObject<Map<any, any>>;
|
|
34
|
+
optimisticCellValuesRef: import("react").RefObject<Map<any, any>>;
|
|
35
|
+
pendingColumnSkeletonCount: number;
|
|
36
|
+
pendingDataProfilerCommitRef: import("react").RefObject<null>;
|
|
37
|
+
pendingLayoutHistoryCaptureRef: import("react").RefObject<null>;
|
|
38
|
+
pendingLayoutHistoryCaptureTimeoutRef: import("react").RefObject<null>;
|
|
39
|
+
pendingPropagationUpdates: null;
|
|
40
|
+
pendingPropagationUpdatesRef: import("react").RefObject<null>;
|
|
41
|
+
pendingRowTransitions: Map<any, any>;
|
|
42
|
+
pivotProfilerRef: import("react").RefObject<any>;
|
|
43
|
+
profilerComponentIdRef: import("react").RefObject<any>;
|
|
44
|
+
profilingEnabledRef: import("react").RefObject<boolean>;
|
|
45
|
+
propagationLogEpoch: number;
|
|
46
|
+
propagationLogRef: import("react").RefObject<never[]>;
|
|
47
|
+
propagationMethodUI: string;
|
|
48
|
+
requestUrgentColumnViewportRef: import("react").RefObject<null>;
|
|
49
|
+
requestVersionRef: import("react").RefObject<number>;
|
|
50
|
+
rowEditSessions: {};
|
|
51
|
+
rowEditSessionsRef: import("react").RefObject<{}>;
|
|
52
|
+
runtimeDataError: null;
|
|
53
|
+
sessionIdRef: import("react").RefObject<string>;
|
|
54
|
+
setAbortGeneration: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
55
|
+
setComparisonCellEpoch: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
56
|
+
setComparisonValueState: import("react").Dispatch<import("react").SetStateAction<{
|
|
57
|
+
activeCount: number;
|
|
58
|
+
}>>;
|
|
59
|
+
setEditPanelOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
60
|
+
setEditedCellEpoch: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
61
|
+
setEditValueDisplayMode: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
62
|
+
setOptimisticCellEpoch: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
63
|
+
setPendingColumnSkeletonCount: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
64
|
+
setPendingPropagationUpdates: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
65
|
+
setPendingRowTransitions: import("react").Dispatch<import("react").SetStateAction<Map<any, any>>>;
|
|
66
|
+
setPropagationLogEpoch: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
67
|
+
setPropagationMethodUI: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
68
|
+
setRowEditSessions: import("react").Dispatch<import("react").SetStateAction<{}>>;
|
|
69
|
+
setRuntimeDataError: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
70
|
+
setStateEpoch: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
71
|
+
setStructuralInFlight: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
72
|
+
stateEpoch: number;
|
|
73
|
+
stateEpochRef: import("react").RefObject<number>;
|
|
74
|
+
structuralInFlight: boolean;
|
|
75
|
+
structuralPendingVersionRef: import("react").RefObject<null>;
|
|
76
|
+
tableDataRef: import("react").RefObject<never[]>;
|
|
77
|
+
visiblePatchCenterIdsRef: import("react").RefObject<never[]>;
|
|
78
|
+
visiblePatchRowPathsRef: import("react").RefObject<never[]>;
|
|
79
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Applies one server response exactly once. This transport lifecycle owns data
|
|
3
|
+
* commits, fetched payloads, filter options, exports, charts, and terminal
|
|
4
|
+
* request states; workspace presentation only consumes the resulting models.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeResponseLifecycle({ activeChartRequestRef, activeExportRequestIdRef, activeRuntimePayloadFetchRef, cancelledExportRequestIdsRef, exportJobControllerRef, clearPendingTransactionHistoryRequest, clientInstanceRef, commitRuntimeDataPayload, copyRichToClipboard, emitEditLifecycleEvent, finalizeTransactionHistoryResponse, handledRuntimeResponseKeysRef, layoutAcknowledgedManifestRef, hydrateVisibleEditOverlay, pendingCopyIntentRef, pendingDataProfilerCommitRef, pendingServerFilterOptionsRef, payloadTransport, pivotProfilerRef, profilerComponentIdRef, profilingEnabledRef, reconcileOptimisticCellValuesWithPayload, recordProfilerResponse, requestVersionRef, resolvePendingRequest, runtimePayloadCommitIsCurrent, runtimeResponse, scheduleSilentViewportRefresh, setEditorOptionsLoadingState, setIsCopying, setIsExporting, setPartModal, setRuntimeDataError, setTransportChartDataState, setTransportDataState, setTransportFilterOptionMetaState, setTransportFilterOptionsState, showNotification, stateEpochRef, triggerExportDownload, }: {
|
|
7
|
+
activeChartRequestRef: any;
|
|
8
|
+
activeExportRequestIdRef: any;
|
|
9
|
+
activeRuntimePayloadFetchRef: any;
|
|
10
|
+
cancelledExportRequestIdsRef: any;
|
|
11
|
+
exportJobControllerRef: any;
|
|
12
|
+
clearPendingTransactionHistoryRequest: any;
|
|
13
|
+
clientInstanceRef: any;
|
|
14
|
+
commitRuntimeDataPayload: any;
|
|
15
|
+
copyRichToClipboard: any;
|
|
16
|
+
emitEditLifecycleEvent: any;
|
|
17
|
+
finalizeTransactionHistoryResponse: any;
|
|
18
|
+
handledRuntimeResponseKeysRef: any;
|
|
19
|
+
layoutAcknowledgedManifestRef: any;
|
|
20
|
+
hydrateVisibleEditOverlay: any;
|
|
21
|
+
pendingCopyIntentRef: any;
|
|
22
|
+
pendingDataProfilerCommitRef: any;
|
|
23
|
+
pendingServerFilterOptionsRef: any;
|
|
24
|
+
payloadTransport?: import("./httpTransport").RuntimePayloadTransport | undefined;
|
|
25
|
+
pivotProfilerRef: any;
|
|
26
|
+
profilerComponentIdRef: any;
|
|
27
|
+
profilingEnabledRef: any;
|
|
28
|
+
reconcileOptimisticCellValuesWithPayload: any;
|
|
29
|
+
recordProfilerResponse: any;
|
|
30
|
+
requestVersionRef: any;
|
|
31
|
+
resolvePendingRequest: any;
|
|
32
|
+
runtimePayloadCommitIsCurrent: any;
|
|
33
|
+
runtimeResponse: any;
|
|
34
|
+
scheduleSilentViewportRefresh: any;
|
|
35
|
+
setEditorOptionsLoadingState: any;
|
|
36
|
+
setIsCopying: any;
|
|
37
|
+
setIsExporting: any;
|
|
38
|
+
setPartModal: any;
|
|
39
|
+
setRuntimeDataError?: (() => void) | undefined;
|
|
40
|
+
setTransportChartDataState: any;
|
|
41
|
+
setTransportDataState: any;
|
|
42
|
+
setTransportFilterOptionMetaState: any;
|
|
43
|
+
setTransportFilterOptionsState: any;
|
|
44
|
+
showNotification: any;
|
|
45
|
+
stateEpochRef: any;
|
|
46
|
+
triggerExportDownload: any;
|
|
47
|
+
}): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Keeps chart payload hydration and data-commit profiling with transport. */
|
|
2
|
+
export function useRuntimeResponsePostCommit({ activeChartRequestRef, chartData, completedChartRequestSignaturesRef, dataOffset, dataVersion, pendingDataProfilerCommitRef, pivotProfilerRef, profilerComponentIdRef, profilingEnabledRef, responseColumns, rowCount, setChartPaneDataById, }: {
|
|
3
|
+
activeChartRequestRef: any;
|
|
4
|
+
chartData: any;
|
|
5
|
+
completedChartRequestSignaturesRef: any;
|
|
6
|
+
dataOffset: any;
|
|
7
|
+
dataVersion: any;
|
|
8
|
+
pendingDataProfilerCommitRef: any;
|
|
9
|
+
pivotProfilerRef: any;
|
|
10
|
+
profilerComponentIdRef: any;
|
|
11
|
+
profilingEnabledRef: any;
|
|
12
|
+
responseColumns: any;
|
|
13
|
+
rowCount: any;
|
|
14
|
+
setChartPaneDataById: any;
|
|
15
|
+
}): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Owns local row-edit session creation, validation, and cancellation. */
|
|
2
|
+
export function useRuntimeRowEditSessions({ emitEditLifecycleEvent, isEditableAggregationColumn, resolveAggregationConfigForColumnId, resolveCurrentCellValue, resolveEditorPresentation, showNotification, tableRef, updateRowEditSessions, rowEditSessionsRef, }: {
|
|
3
|
+
emitEditLifecycleEvent: any;
|
|
4
|
+
isEditableAggregationColumn: any;
|
|
5
|
+
resolveAggregationConfigForColumnId: any;
|
|
6
|
+
resolveCurrentCellValue: any;
|
|
7
|
+
resolveEditorPresentation: any;
|
|
8
|
+
showNotification: any;
|
|
9
|
+
tableRef: any;
|
|
10
|
+
updateRowEditSessions: any;
|
|
11
|
+
rowEditSessionsRef: any;
|
|
12
|
+
}): {
|
|
13
|
+
cancelRowEditSession: (rowId: any) => void;
|
|
14
|
+
closeRowEditSession: (rowId: any) => void;
|
|
15
|
+
getRowEditMeta: (row: any) => {
|
|
16
|
+
rowId: string | null;
|
|
17
|
+
session: any;
|
|
18
|
+
canEdit: boolean;
|
|
19
|
+
dirtyCount: number;
|
|
20
|
+
errorCount: number;
|
|
21
|
+
saving: boolean;
|
|
22
|
+
};
|
|
23
|
+
getRowEditSession: (rowId: any) => any;
|
|
24
|
+
handleBlockedCellEdit: (payload: any) => void;
|
|
25
|
+
resolveRowEditableColumns: (row: any) => any;
|
|
26
|
+
startRowEditSession: (row: any, options?: {}) => void;
|
|
27
|
+
updateRowDraftValue: (rowId: any, colId: any, nextValue: any, meta?: {}) => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Owns row-edit session validation, dispatch, and row-action presentation. */
|
|
2
|
+
export function useRuntimeRowEditing({ Icons, cancelRowEditSession, closeRowEditSession, dispatchBatchUpdateRequest, emitEditLifecycleEvent, getRowEditMeta, normalizedEditingConfig, rowEditSessionsRef, serverSide, theme, updateRowEditSessions, validateEditorValue, }: {
|
|
3
|
+
Icons: any;
|
|
4
|
+
cancelRowEditSession: any;
|
|
5
|
+
closeRowEditSession: any;
|
|
6
|
+
dispatchBatchUpdateRequest: any;
|
|
7
|
+
emitEditLifecycleEvent: any;
|
|
8
|
+
getRowEditMeta: any;
|
|
9
|
+
normalizedEditingConfig: any;
|
|
10
|
+
rowEditSessionsRef: any;
|
|
11
|
+
serverSide: any;
|
|
12
|
+
theme: any;
|
|
13
|
+
updateRowEditSessions: any;
|
|
14
|
+
validateEditorValue: any;
|
|
15
|
+
}): {
|
|
16
|
+
renderRowEditActions: (row: any) => import("react").JSX.Element | null;
|
|
17
|
+
saveRowEditSession: (rowId: any) => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Owns row-oriented selection and its document-level completion handler. */
|
|
2
|
+
export function useRuntimeRowSelection({ getDisplayRows, lastSelected, resolveDisplayRowIndex, setIsRowSelecting, setLastSelected, setRowDragStart, setSelectedCells, tableRef, }: {
|
|
3
|
+
getDisplayRows: any;
|
|
4
|
+
lastSelected: any;
|
|
5
|
+
resolveDisplayRowIndex: any;
|
|
6
|
+
setIsRowSelecting: any;
|
|
7
|
+
setLastSelected: any;
|
|
8
|
+
setRowDragStart: any;
|
|
9
|
+
setSelectedCells: any;
|
|
10
|
+
tableRef: any;
|
|
11
|
+
}): {
|
|
12
|
+
handleRowRangeSelect: (startIdx: any, endIdx: any) => void;
|
|
13
|
+
handleRowSelect: (row: any, isShift: any, isCtrl: any) => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns selection-derived data, number-format commands, and display labels.
|
|
3
|
+
*
|
|
4
|
+
* It exposes explicit selection capabilities to both the interaction layer
|
|
5
|
+
* and the clipboard/export presentation instead of making either domain read
|
|
6
|
+
* the mutable legacy runtime record.
|
|
7
|
+
*/
|
|
8
|
+
export function useRuntimeSelectionFormatting({ getDisplayRows, maxAutoSizeSampleRows, normalizedInitialValConfigs, selectedCells, setColorScaleMode, setDataBarsColumns, setValConfigs, showNotification, table, valConfigs, }: {
|
|
9
|
+
getDisplayRows: any;
|
|
10
|
+
maxAutoSizeSampleRows: any;
|
|
11
|
+
normalizedInitialValConfigs: any;
|
|
12
|
+
selectedCells: any;
|
|
13
|
+
setColorScaleMode: any;
|
|
14
|
+
setDataBarsColumns: any;
|
|
15
|
+
setValConfigs: any;
|
|
16
|
+
showNotification: any;
|
|
17
|
+
table: any;
|
|
18
|
+
valConfigs: any;
|
|
19
|
+
}): {
|
|
20
|
+
applyDataBarsFromSelection: (selectionMap: any, mode?: string) => void;
|
|
21
|
+
applyFormatToSelection: (selectionMap: any, formatOverride?: null) => void;
|
|
22
|
+
applySelectionValueFormat: (formatOverride: any) => void;
|
|
23
|
+
canApplySelectionValueFormat: boolean;
|
|
24
|
+
getAutoSizeSampleRows: (rows: any) => any[];
|
|
25
|
+
getCurrentFormatForSelection: (selectionMap: any) => any;
|
|
26
|
+
getDefaultFormatForSelection: (selectionMap: any) => any;
|
|
27
|
+
getDisplayHeaderTextForColumn: (column: any) => any;
|
|
28
|
+
getDisplayHeaderTextStackForColumn: (column: any) => any[];
|
|
29
|
+
getSelectedColumnIds: (selectionMap?: any) => any[];
|
|
30
|
+
getSelectedData: (withHeaders?: boolean, selectionMap?: any) => string | null;
|
|
31
|
+
getSelectedMeasureIndexes: (selectedColumnIds: any) => any[];
|
|
32
|
+
hasSelectionKey: (selectionMap: any, selectionKey: any) => boolean;
|
|
33
|
+
matchesSelectedColumnToValueConfig: (colId: any, config: any) => boolean;
|
|
34
|
+
selectedValueColumnIds: any[];
|
|
35
|
+
selectionValueFormat: any;
|
|
36
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Synchronizes structural grid state with Dash and starts the corresponding
|
|
3
|
+
* server-side data request. The three request paths are explicit: local UI,
|
|
4
|
+
* hierarchy expansion, and cache-invalidating structural changes.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeStructuralSync({ actions: { beginExpansionRequest, beginStructuralTransaction, buildRuntimeRequestStateOverride, buildLayoutRequestFields, markRequestPending, resolveStableRequestedColumnWindow, setPendingColumnSkeletonCount, }, refs: { abortGenerationRef, clientInstanceRef, expansionScrollRestoreRafRef, expansionScrollRestoreRef, latestDataVersionRef, latestRequestedViewportRef, latestViewportRef, needsColSchemaRef, parentRef, pendingExpansionRef, sessionIdRef, setPropsRef, }, state: { clientEngine, clientRuntimeActive, colFields, columnOrder, columnPinning, columnSizing, columnVisibility, customDimensions, detailConfig, detailMode, effectiveSortOptions, executionMode, expanded, filters, grandTotalPinOverride, immersiveMode, layoutMode, reportDef, rowFields, rowPinning, runtimeMeasureAxis, serverSide, serverSideBlockSize, serverSidePinsGrandTotal, showColTotals, showRowTotals, showSubtotals, sorting, tableName, treeConfig, valConfigs, viewMode, }, initialState, }: {
|
|
7
|
+
actions: {
|
|
8
|
+
beginExpansionRequest: any;
|
|
9
|
+
beginStructuralTransaction: any;
|
|
10
|
+
buildRuntimeRequestStateOverride: any;
|
|
11
|
+
buildLayoutRequestFields: any;
|
|
12
|
+
markRequestPending: any;
|
|
13
|
+
resolveStableRequestedColumnWindow: any;
|
|
14
|
+
setPendingColumnSkeletonCount: any;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
abortGenerationRef: any;
|
|
18
|
+
clientInstanceRef: any;
|
|
19
|
+
expansionScrollRestoreRafRef: any;
|
|
20
|
+
expansionScrollRestoreRef: any;
|
|
21
|
+
latestDataVersionRef: any;
|
|
22
|
+
latestRequestedViewportRef: any;
|
|
23
|
+
latestViewportRef: any;
|
|
24
|
+
needsColSchemaRef: any;
|
|
25
|
+
parentRef: any;
|
|
26
|
+
pendingExpansionRef: any;
|
|
27
|
+
sessionIdRef: any;
|
|
28
|
+
setPropsRef: any;
|
|
29
|
+
};
|
|
30
|
+
state: {
|
|
31
|
+
clientEngine: any;
|
|
32
|
+
clientRuntimeActive: any;
|
|
33
|
+
colFields: any;
|
|
34
|
+
columnOrder: any;
|
|
35
|
+
columnPinning: any;
|
|
36
|
+
columnSizing: any;
|
|
37
|
+
columnVisibility: any;
|
|
38
|
+
customDimensions: any;
|
|
39
|
+
detailConfig: any;
|
|
40
|
+
detailMode: any;
|
|
41
|
+
effectiveSortOptions: any;
|
|
42
|
+
executionMode: any;
|
|
43
|
+
expanded: any;
|
|
44
|
+
filters: any;
|
|
45
|
+
grandTotalPinOverride: any;
|
|
46
|
+
immersiveMode: any;
|
|
47
|
+
layoutMode: any;
|
|
48
|
+
reportDef: any;
|
|
49
|
+
rowFields: any;
|
|
50
|
+
rowPinning: any;
|
|
51
|
+
runtimeMeasureAxis: any;
|
|
52
|
+
serverSide: any;
|
|
53
|
+
serverSideBlockSize: any;
|
|
54
|
+
serverSidePinsGrandTotal: any;
|
|
55
|
+
showColTotals: any;
|
|
56
|
+
showRowTotals: any;
|
|
57
|
+
showSubtotals: any;
|
|
58
|
+
sorting: any;
|
|
59
|
+
tableName: any;
|
|
60
|
+
treeConfig: any;
|
|
61
|
+
valConfigs: any;
|
|
62
|
+
viewMode: any;
|
|
63
|
+
};
|
|
64
|
+
initialState: any;
|
|
65
|
+
}): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Applies a persisted workspace scroll position once the viewport owns a DOM
|
|
3
|
+
* scroll container. Setup restores serializable state; this hook restores the
|
|
4
|
+
* DOM-only part of that state at the boundary that owns the DOM ref.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeViewRestoreScroll({ parentRef, viewState }: {
|
|
7
|
+
parentRef: any;
|
|
8
|
+
viewState: any;
|
|
9
|
+
}): void;
|