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,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns chart-pane presentation: pane grouping, pane width persistence and the
|
|
3
|
+
* render callbacks consumed by the workspace shell. The caller supplies the
|
|
4
|
+
* chart model and commands as named dependencies; no legacy runtime bag is
|
|
5
|
+
* passed into this hook.
|
|
6
|
+
*/
|
|
7
|
+
export function useChartWorkspacePresentation({ activateChartCategory, chartCanvasLayoutRef, chartCanvasPaneModels, chartCanvasPanes, chartModal, chartModalPosition, chartPaneDataById, handleRemoveChartCanvasPane, handleStartChartCanvasPaneFloatingDrag, handleStartChartCanvasPaneFloatingResize, handleToggleChartCanvasPaneFloating, handleToggleChartCanvasPaneLock, serverSide, setChartCanvasPaneWidthHints, setChartModal, setChartModalPosition, theme, updateChartCanvasPane, visibleLeafColumns, }: {
|
|
8
|
+
activateChartCategory: any;
|
|
9
|
+
chartCanvasLayoutRef: any;
|
|
10
|
+
chartCanvasPaneModels: any;
|
|
11
|
+
chartCanvasPanes: any;
|
|
12
|
+
chartModal: any;
|
|
13
|
+
chartModalPosition: any;
|
|
14
|
+
chartPaneDataById: any;
|
|
15
|
+
handleRemoveChartCanvasPane: any;
|
|
16
|
+
handleStartChartCanvasPaneFloatingDrag: any;
|
|
17
|
+
handleStartChartCanvasPaneFloatingResize: any;
|
|
18
|
+
handleToggleChartCanvasPaneFloating: any;
|
|
19
|
+
handleToggleChartCanvasPaneLock: any;
|
|
20
|
+
serverSide: any;
|
|
21
|
+
setChartCanvasPaneWidthHints: any;
|
|
22
|
+
setChartModal: any;
|
|
23
|
+
setChartModalPosition: any;
|
|
24
|
+
theme: any;
|
|
25
|
+
updateChartCanvasPane: any;
|
|
26
|
+
visibleLeafColumns: any;
|
|
27
|
+
}): {
|
|
28
|
+
chartWorkspacePanes: {
|
|
29
|
+
docked: any[];
|
|
30
|
+
floating: any[];
|
|
31
|
+
dockedByPosition: {
|
|
32
|
+
left: never[];
|
|
33
|
+
right: never[];
|
|
34
|
+
top: never[];
|
|
35
|
+
bottom: never[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
dockedChartCanvasPanesByPosition: {
|
|
39
|
+
left: never[];
|
|
40
|
+
right: never[];
|
|
41
|
+
top: never[];
|
|
42
|
+
bottom: never[];
|
|
43
|
+
};
|
|
44
|
+
floatingChartCanvasPanes: any[];
|
|
45
|
+
handleChartCanvasPaneWidthHintChange: (paneId: any, nextWidthHint?: null) => void;
|
|
46
|
+
renderChartCanvasPane: (pane: any, normalizedDockPosition: any) => React.JSX.Element;
|
|
47
|
+
renderChartWorkspaceModal: (position: any) => React.JSX.Element | null;
|
|
48
|
+
renderFloatingChartCanvasPane: (pane: any) => React.JSX.Element;
|
|
49
|
+
};
|
|
50
|
+
import React from 'react';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CommandRuntimeDomain, CoreRuntimeDomain, TransportRuntimeDomain } from './runtimeDomains';
|
|
2
|
+
/** User actions: fields, layout, editing, selection, export, and charts. */
|
|
3
|
+
export declare function useCommandRuntime(core: CoreRuntimeDomain, transport: TransportRuntimeDomain): CommandRuntimeDomain;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCommandRuntimeStage(input: any, transportDomain: any): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns cell-oriented selection: keyboard navigation, range dragging, fill,
|
|
3
|
+
* and clipboard fallback. Row selection remains a separate domain because it
|
|
4
|
+
* has different selection semantics and event ownership.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeCellSelection({ buildSelectedClipboardPayload, copyRichToClipboard, copyCurrentTableToClipboard, dispatchBatchUpdateRequest, dragStart, fillRange, getDisplayRows, handleRedo, handleUndo, isDragging, isFilling, isSelectAllServerRef, lastSelected, loadedRows, scrollToDisplayColumn, scrollToDisplayRow, selectedCells, serverSide, selectionScopeKey, setDragStart, setFillRange, setHoveredRowPath, setIsDragging, setIsFilling, setLastSelected, setSelectedCells, setProps, table, tableRef, }: {
|
|
7
|
+
buildSelectedClipboardPayload: any;
|
|
8
|
+
copyRichToClipboard: any;
|
|
9
|
+
copyCurrentTableToClipboard: any;
|
|
10
|
+
dispatchBatchUpdateRequest: any;
|
|
11
|
+
dragStart: any;
|
|
12
|
+
fillRange: any;
|
|
13
|
+
getDisplayRows: any;
|
|
14
|
+
handleRedo: any;
|
|
15
|
+
handleUndo: any;
|
|
16
|
+
isDragging: any;
|
|
17
|
+
isFilling: any;
|
|
18
|
+
isSelectAllServerRef: any;
|
|
19
|
+
lastSelected: any;
|
|
20
|
+
loadedRows: any;
|
|
21
|
+
scrollToDisplayColumn: any;
|
|
22
|
+
scrollToDisplayRow: any;
|
|
23
|
+
selectedCells: any;
|
|
24
|
+
serverSide: any;
|
|
25
|
+
selectionScopeKey?: string | undefined;
|
|
26
|
+
setDragStart: any;
|
|
27
|
+
setFillRange: any;
|
|
28
|
+
setHoveredRowPath: any;
|
|
29
|
+
setIsDragging: any;
|
|
30
|
+
setIsFilling: any;
|
|
31
|
+
setLastSelected: any;
|
|
32
|
+
setSelectedCells: any;
|
|
33
|
+
setProps: any;
|
|
34
|
+
table: any;
|
|
35
|
+
tableRef: any;
|
|
36
|
+
}): {
|
|
37
|
+
captureAnchor: (rowIndex: any, colIndex: any) => import("./cellSelectionAnchor").CellSelectionAnchor;
|
|
38
|
+
handleCellMouseDown: (event: any, rowIndex: any, colIndex: any, rowId: any, colId: any, value: any) => void;
|
|
39
|
+
handleCellMouseEnter: (rowIndex: any, colIndex: any) => void;
|
|
40
|
+
handleFillMouseDown: (event: any) => void;
|
|
41
|
+
handleFillMouseUp: () => void;
|
|
42
|
+
handleKeyDown: (e: any) => void;
|
|
43
|
+
selectRange: (start: any, end: any) => {};
|
|
44
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns the chart-canvas pane lifecycle. It deliberately receives state and
|
|
3
|
+
* mutators explicitly so chart commands cannot reach into the legacy runtime
|
|
4
|
+
* record for unrelated grid behaviour.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeChartCanvasCommands({ chartCanvasPanes, chartPanelAxisMode, chartPanelBarLayout, chartPanelColumnLimit, chartPanelGraphHeight, chartPanelHierarchyLevel, chartPanelInteractionMode, chartPanelLayers, chartPanelOrientation, chartPanelRowLimit, chartPanelServerScope, chartPanelSortMode, chartPanelSource, chartPanelTitle, chartPanelType, chartPanelWidth, completedChartRequestSignaturesRef, initialChartDefinition, previewChartPaneId, setChartCanvasPanes, setChartPaneDataById, setPreviewChartPaneId, setTableCanvasSize, }: {
|
|
7
|
+
chartCanvasPanes: any;
|
|
8
|
+
chartPanelAxisMode: any;
|
|
9
|
+
chartPanelBarLayout: any;
|
|
10
|
+
chartPanelColumnLimit: any;
|
|
11
|
+
chartPanelGraphHeight: any;
|
|
12
|
+
chartPanelHierarchyLevel: any;
|
|
13
|
+
chartPanelInteractionMode: any;
|
|
14
|
+
chartPanelLayers: any;
|
|
15
|
+
chartPanelOrientation: any;
|
|
16
|
+
chartPanelRowLimit: any;
|
|
17
|
+
chartPanelServerScope: any;
|
|
18
|
+
chartPanelSortMode: any;
|
|
19
|
+
chartPanelSource: any;
|
|
20
|
+
chartPanelTitle: any;
|
|
21
|
+
chartPanelType: any;
|
|
22
|
+
chartPanelWidth: any;
|
|
23
|
+
completedChartRequestSignaturesRef: any;
|
|
24
|
+
initialChartDefinition: any;
|
|
25
|
+
previewChartPaneId: any;
|
|
26
|
+
setChartCanvasPanes: any;
|
|
27
|
+
setChartPaneDataById: any;
|
|
28
|
+
setPreviewChartPaneId: any;
|
|
29
|
+
setTableCanvasSize: any;
|
|
30
|
+
}): {
|
|
31
|
+
handleAddChartCanvasPane: () => void;
|
|
32
|
+
handleCancelPreviewChartPane: () => void;
|
|
33
|
+
handleConfirmPreviewChartPane: () => void;
|
|
34
|
+
handleRemoveChartCanvasPane: (paneId: any) => void;
|
|
35
|
+
updateChartCanvasPane: (paneId: any, updater: any) => void;
|
|
36
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Owns the horizontal resize lifecycle for the table and docked chart panes. */
|
|
2
|
+
export function useRuntimeChartCanvasResize({ chartCanvasLayoutRef, chartCanvasPanes, chartCanvasResizeRef, chartLayoutRef, setChartCanvasPaneWidthHints, setChartCanvasPanes, setTableCanvasSize, tableCanvasSize, }: {
|
|
3
|
+
chartCanvasLayoutRef: any;
|
|
4
|
+
chartCanvasPanes: any;
|
|
5
|
+
chartCanvasResizeRef: any;
|
|
6
|
+
chartLayoutRef: any;
|
|
7
|
+
setChartCanvasPaneWidthHints: any;
|
|
8
|
+
setChartCanvasPanes: any;
|
|
9
|
+
setTableCanvasSize: any;
|
|
10
|
+
tableCanvasSize: any;
|
|
11
|
+
}): {
|
|
12
|
+
handleStartChartCanvasResize: (leftKey: any, rightKey: any, event: any) => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Owns the vertical resize lifecycle for docked chart panes. */
|
|
2
|
+
export function useRuntimeChartCanvasVerticalResize({ chartCanvasLayoutRef, chartCanvasPanes, chartCanvasVerticalResizeRef, setChartCanvasPanes, }: {
|
|
3
|
+
chartCanvasLayoutRef: any;
|
|
4
|
+
chartCanvasPanes: any;
|
|
5
|
+
chartCanvasVerticalResizeRef: any;
|
|
6
|
+
setChartCanvasPanes: any;
|
|
7
|
+
}): {
|
|
8
|
+
handleStartChartCanvasVerticalResize: (paneId: any, position: any, event: any) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Owns create, duplicate, delete, and rename commands for chart definitions. */
|
|
2
|
+
export function useRuntimeChartDefinitionCommands({ activeChartDefinitionId, currentChartDefinition, initialChartDefinition, managedChartDefinitions, setActiveChartDefinitionId, setManagedChartDefinitions, }: {
|
|
3
|
+
activeChartDefinitionId: any;
|
|
4
|
+
currentChartDefinition: any;
|
|
5
|
+
initialChartDefinition: any;
|
|
6
|
+
managedChartDefinitions: any;
|
|
7
|
+
setActiveChartDefinitionId: any;
|
|
8
|
+
setManagedChartDefinitions: any;
|
|
9
|
+
}): {
|
|
10
|
+
handleCreateChartDefinition: () => void;
|
|
11
|
+
handleDeleteChartDefinition: () => void;
|
|
12
|
+
handleDuplicateChartDefinition: () => void;
|
|
13
|
+
handleRenameChartDefinition: (name: any) => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Owns floating chart-panel and chart-canvas pane gestures plus bounds syncing. */
|
|
2
|
+
export function useRuntimeChartFloatingInteractions({ chartCanvasFloatingDragRef, chartCanvasFloatingResizeRef, chartCanvasLayoutRef, chartCanvasPanes, chartLayoutRef, chartPanelFloating, chartPanelFloatingDragRef, chartPanelFloatingRect, chartPanelFloatingResizeRef, chartPanelGraphHeight, chartPanelWidth, clampChartPanelWidth, setChartCanvasPanes, setChartPanelFloating, setChartPanelFloatingRect, setChartPanelGraphHeight, setChartPanelWidth, updateChartCanvasPane, }: {
|
|
3
|
+
chartCanvasFloatingDragRef: any;
|
|
4
|
+
chartCanvasFloatingResizeRef: any;
|
|
5
|
+
chartCanvasLayoutRef: any;
|
|
6
|
+
chartCanvasPanes: any;
|
|
7
|
+
chartLayoutRef: any;
|
|
8
|
+
chartPanelFloating: any;
|
|
9
|
+
chartPanelFloatingDragRef: any;
|
|
10
|
+
chartPanelFloatingRect: any;
|
|
11
|
+
chartPanelFloatingResizeRef: any;
|
|
12
|
+
chartPanelGraphHeight: any;
|
|
13
|
+
chartPanelWidth: any;
|
|
14
|
+
clampChartPanelWidth: any;
|
|
15
|
+
setChartCanvasPanes: any;
|
|
16
|
+
setChartPanelFloating: any;
|
|
17
|
+
setChartPanelFloatingRect: any;
|
|
18
|
+
setChartPanelGraphHeight: any;
|
|
19
|
+
setChartPanelWidth: any;
|
|
20
|
+
updateChartCanvasPane: any;
|
|
21
|
+
}): {
|
|
22
|
+
handleStartChartCanvasPaneFloatingDrag: (paneId: any, event: any) => void;
|
|
23
|
+
handleStartChartCanvasPaneFloatingResize: (paneId: any, direction: any, event: any) => void;
|
|
24
|
+
handleStartChartPanelFloatingDrag: (event: any) => void;
|
|
25
|
+
handleStartChartPanelFloatingResize: (direction: any, event: any) => void;
|
|
26
|
+
handleToggleChartCanvasPaneFloating: (paneId: any) => void;
|
|
27
|
+
handleToggleChartPanelFloating: () => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the chart domain from its named dependencies.
|
|
3
|
+
*
|
|
4
|
+
* This hook intentionally accepts a narrow chart dependency object instead of
|
|
5
|
+
* the mutable legacy runtime record. Its result is a plain chart model and
|
|
6
|
+
* chart-only callbacks; the viewport stage merely publishes that result while
|
|
7
|
+
* the compatibility bridge remains in place.
|
|
8
|
+
*/
|
|
9
|
+
export function useRuntimeChartModels({ buildChartRequestBase, buildChartStateOverrideSnapshot, chartCanvasPanes, chartPaneDataById, chartPanelColumnLimit, chartPanelHierarchyLevel, chartPanelInteractionMode, chartPanelLayers, chartPanelLocked, chartPanelLockedModel, chartPanelLockedRequest, chartPanelOpen, chartPanelOrientation, chartPanelRowLimit, chartPanelServerScope, chartPanelSource, chartPanelSortMode, chartPanelType, chartModal, colFields, columnOrderKey, columnPinning, columnSizing, columnVisibility, columns, effectiveBottomRows, effectiveCenterRows, effectiveTopRows, getDisplayRows, handleRowSelect, loadedRows, resolveDisplayRowIndex, rowFields, scrollToDisplayColumn, scrollToDisplayRow, serverSide, setChartPanelLocked, setChartPanelLockedModel, setChartPanelLockedRequest, setFilters, setPropsRef, showNotification, table, updateChartCanvasPane, selectedCells, }: {
|
|
10
|
+
buildChartRequestBase: any;
|
|
11
|
+
buildChartStateOverrideSnapshot: any;
|
|
12
|
+
chartCanvasPanes: any;
|
|
13
|
+
chartPaneDataById: any;
|
|
14
|
+
chartPanelColumnLimit: any;
|
|
15
|
+
chartPanelHierarchyLevel: any;
|
|
16
|
+
chartPanelInteractionMode: any;
|
|
17
|
+
chartPanelLayers: any;
|
|
18
|
+
chartPanelLocked: any;
|
|
19
|
+
chartPanelLockedModel: any;
|
|
20
|
+
chartPanelLockedRequest: any;
|
|
21
|
+
chartPanelOpen: any;
|
|
22
|
+
chartPanelOrientation: any;
|
|
23
|
+
chartPanelRowLimit: any;
|
|
24
|
+
chartPanelServerScope: any;
|
|
25
|
+
chartPanelSource: any;
|
|
26
|
+
chartPanelSortMode: any;
|
|
27
|
+
chartPanelType: any;
|
|
28
|
+
chartModal: any;
|
|
29
|
+
colFields: any;
|
|
30
|
+
columnOrderKey: any;
|
|
31
|
+
columnPinning: any;
|
|
32
|
+
columnSizing: any;
|
|
33
|
+
columnVisibility: any;
|
|
34
|
+
columns: any;
|
|
35
|
+
effectiveBottomRows: any;
|
|
36
|
+
effectiveCenterRows: any;
|
|
37
|
+
effectiveTopRows: any;
|
|
38
|
+
getDisplayRows: any;
|
|
39
|
+
handleRowSelect: any;
|
|
40
|
+
loadedRows: any;
|
|
41
|
+
resolveDisplayRowIndex: any;
|
|
42
|
+
rowFields: any;
|
|
43
|
+
scrollToDisplayColumn: any;
|
|
44
|
+
scrollToDisplayRow: any;
|
|
45
|
+
serverSide: any;
|
|
46
|
+
setChartPanelLocked: any;
|
|
47
|
+
setChartPanelLockedModel: any;
|
|
48
|
+
setChartPanelLockedRequest: any;
|
|
49
|
+
setFilters: any;
|
|
50
|
+
setPropsRef: any;
|
|
51
|
+
showNotification: any;
|
|
52
|
+
table: any;
|
|
53
|
+
updateChartCanvasPane: any;
|
|
54
|
+
selectedCells: any;
|
|
55
|
+
}): {
|
|
56
|
+
activateChartCategory: (source: any, interactionMode: any, target: any) => void;
|
|
57
|
+
activeChartPanelModel: any;
|
|
58
|
+
applyChartTargetFilters: (target: any) => void;
|
|
59
|
+
chartCanvasPaneModels: {};
|
|
60
|
+
chartDisplayRows: any[];
|
|
61
|
+
chartModelingActive: any;
|
|
62
|
+
handleChartCategoryActivate: (target: any) => void;
|
|
63
|
+
handleToggleChartCanvasPaneLock: (paneId: any) => void;
|
|
64
|
+
handleToggleChartPanelLock: () => void;
|
|
65
|
+
livePivotChartModel: any;
|
|
66
|
+
liveSelectionChartModel: any;
|
|
67
|
+
overlayChartData: any;
|
|
68
|
+
visibleLeafColumns: any;
|
|
69
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Owns docked chart-panel width limits, drag resizing, and responsive sizing. */
|
|
2
|
+
export function useRuntimeChartPanelSizing({ chartLayoutRef, chartPanelFloating, chartPanelOpen, isChartPanelResizing, setChartPanelWidth, setIsChartPanelResizing, sidebarOpen, }: {
|
|
3
|
+
chartLayoutRef: any;
|
|
4
|
+
chartPanelFloating: any;
|
|
5
|
+
chartPanelOpen: any;
|
|
6
|
+
isChartPanelResizing: any;
|
|
7
|
+
setChartPanelWidth: any;
|
|
8
|
+
setIsChartPanelResizing: any;
|
|
9
|
+
sidebarOpen: any;
|
|
10
|
+
}): {
|
|
11
|
+
clampChartPanelWidth: (requestedWidth: any) => number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns the client-side representation of clipboard and export data.
|
|
3
|
+
*
|
|
4
|
+
* This deliberately has no dependency on the legacy runtime environment. The
|
|
5
|
+
* interaction stage supplies the individual data, formatting, and table
|
|
6
|
+
* capabilities it needs, while export dispatch is owned separately by
|
|
7
|
+
* createRuntimeExportCommands.
|
|
8
|
+
*/
|
|
9
|
+
export function useRuntimeClipboardExportPresentation({ cachedColSchema, cellFormatRules, colorPalette, colorScaleMode, colorScaleStats, columnDecimalOverrides, columnFormatOverrides, columnGroupSeparatorOverrides, conditionalFormatting, decimalPlaces, defaultValueFormat, fontFamily, fontSize, getConditionalStyle, getDisplayHeaderTextForColumn, getDisplayHeaderTextStackForColumn, getDisplayRows, HIERARCHY_INDENT_PX, headerFormatting, loadedRows, matchesSelectedColumnToValueConfig, mergedHeaderSeparator, numberGroupSeparator, resolveDisplayedCellValue, rowHeight, selectedCells, serverSide, showNotification, table, theme, totalCenterCols, valConfigs, }: {
|
|
10
|
+
cachedColSchema: any;
|
|
11
|
+
cellFormatRules: any;
|
|
12
|
+
colorPalette: any;
|
|
13
|
+
colorScaleMode: any;
|
|
14
|
+
colorScaleStats: any;
|
|
15
|
+
columnDecimalOverrides: any;
|
|
16
|
+
columnFormatOverrides: any;
|
|
17
|
+
columnGroupSeparatorOverrides: any;
|
|
18
|
+
conditionalFormatting: any;
|
|
19
|
+
decimalPlaces: any;
|
|
20
|
+
defaultValueFormat: any;
|
|
21
|
+
fontFamily: any;
|
|
22
|
+
fontSize: any;
|
|
23
|
+
getConditionalStyle: any;
|
|
24
|
+
getDisplayHeaderTextForColumn: any;
|
|
25
|
+
getDisplayHeaderTextStackForColumn: any;
|
|
26
|
+
getDisplayRows: any;
|
|
27
|
+
HIERARCHY_INDENT_PX: any;
|
|
28
|
+
headerFormatting: any;
|
|
29
|
+
loadedRows: any;
|
|
30
|
+
matchesSelectedColumnToValueConfig: any;
|
|
31
|
+
mergedHeaderSeparator: any;
|
|
32
|
+
numberGroupSeparator: any;
|
|
33
|
+
resolveDisplayedCellValue: any;
|
|
34
|
+
rowHeight: any;
|
|
35
|
+
selectedCells: any;
|
|
36
|
+
serverSide: any;
|
|
37
|
+
showNotification: any;
|
|
38
|
+
table: any;
|
|
39
|
+
theme: any;
|
|
40
|
+
totalCenterCols: any;
|
|
41
|
+
valConfigs: any;
|
|
42
|
+
}): {
|
|
43
|
+
EXPORT_SKIP_COL_IDS: Set<string>;
|
|
44
|
+
buildAllRowsClipboardPayload: ({ withHeaders, mergedHeaders, }?: {
|
|
45
|
+
withHeaders?: boolean | undefined;
|
|
46
|
+
mergedHeaders?: boolean | undefined;
|
|
47
|
+
}) => {
|
|
48
|
+
html: string;
|
|
49
|
+
text: string;
|
|
50
|
+
rowCount: any;
|
|
51
|
+
columnCount: any;
|
|
52
|
+
} | null;
|
|
53
|
+
buildExportStyleProfile: (colIds: any, { withHeaders, mergedHeaders }?: {
|
|
54
|
+
withHeaders?: boolean | undefined;
|
|
55
|
+
mergedHeaders?: boolean | undefined;
|
|
56
|
+
}) => {
|
|
57
|
+
includeHeaders: boolean;
|
|
58
|
+
mergedHeaders: boolean;
|
|
59
|
+
mergedHeaderSeparator: any;
|
|
60
|
+
fontFamily: any;
|
|
61
|
+
fontSize: any;
|
|
62
|
+
rowHeight: any;
|
|
63
|
+
theme: {
|
|
64
|
+
text: any;
|
|
65
|
+
textSec: any;
|
|
66
|
+
border: any;
|
|
67
|
+
background: any;
|
|
68
|
+
surfaceBg: any;
|
|
69
|
+
surfaceInset: any;
|
|
70
|
+
headerBg: any;
|
|
71
|
+
headerSubtleBg: any;
|
|
72
|
+
headerText: any;
|
|
73
|
+
hierarchyBg: any;
|
|
74
|
+
totalBg: any;
|
|
75
|
+
totalBgStrong: any;
|
|
76
|
+
totalText: any;
|
|
77
|
+
select: any;
|
|
78
|
+
primary: any;
|
|
79
|
+
};
|
|
80
|
+
headerLabels: {};
|
|
81
|
+
mergedHeaderRows: {
|
|
82
|
+
label: never;
|
|
83
|
+
columnIds: never;
|
|
84
|
+
colSpan: never;
|
|
85
|
+
rowSpan: never;
|
|
86
|
+
styleColumnId: never;
|
|
87
|
+
}[][];
|
|
88
|
+
headerFormatting: any;
|
|
89
|
+
columnWidths: {};
|
|
90
|
+
decimalPlaces: any;
|
|
91
|
+
defaultValueFormat: any;
|
|
92
|
+
numberGroupSeparator: any;
|
|
93
|
+
columnDecimalOverrides: any;
|
|
94
|
+
columnFormatOverrides: any;
|
|
95
|
+
columnGroupSeparatorOverrides: any;
|
|
96
|
+
valConfigs: any;
|
|
97
|
+
conditionalFormatting: any;
|
|
98
|
+
cellFormatRules: any;
|
|
99
|
+
colorScaleMode: any;
|
|
100
|
+
colorPalette: any;
|
|
101
|
+
colorScaleStats: {
|
|
102
|
+
byCol: any;
|
|
103
|
+
table: any;
|
|
104
|
+
} | null;
|
|
105
|
+
};
|
|
106
|
+
buildSelectedClipboardPayload: (withHeaders?: boolean, selectionMap?: any, { rawValues, mergedHeaders }?: {
|
|
107
|
+
rawValues?: boolean | undefined;
|
|
108
|
+
mergedHeaders?: boolean | undefined;
|
|
109
|
+
}) => {
|
|
110
|
+
html: string;
|
|
111
|
+
text: string;
|
|
112
|
+
rowCount: any;
|
|
113
|
+
columnCount: any;
|
|
114
|
+
} | null;
|
|
115
|
+
buildTableClipboardPayload: ({ withHeaders, mergedHeaders, rows, columns, }?: {
|
|
116
|
+
withHeaders?: boolean | undefined;
|
|
117
|
+
mergedHeaders?: boolean | undefined;
|
|
118
|
+
rows?: null | undefined;
|
|
119
|
+
columns?: null | undefined;
|
|
120
|
+
}) => {
|
|
121
|
+
html: string;
|
|
122
|
+
text: string;
|
|
123
|
+
rowCount: any;
|
|
124
|
+
columnCount: any;
|
|
125
|
+
} | null;
|
|
126
|
+
copyRichToClipboard: (payload: any, successMessage?: string) => Promise<boolean>;
|
|
127
|
+
copyTextToClipboard: (text: any, successMessage?: string) => Promise<boolean>;
|
|
128
|
+
copyToClipboard: (payload: any) => Promise<void>;
|
|
129
|
+
getCompleteServerExportColIds: () => any;
|
|
130
|
+
getExportCellDisplayValue: (rowLike: any, column: any, rowIndex: any, overrideValue?: undefined, rawValues?: boolean) => any;
|
|
131
|
+
getExportCellStyle: (rowLike: any, column: any, rowIndex: any, overrideValue?: undefined) => any;
|
|
132
|
+
getExportColumns: (columnsOverride: any) => any;
|
|
133
|
+
getExportGroupSeparator: (groupSeparator: any) => any;
|
|
134
|
+
getExportHeaderLabel: (column: any, mergedHeaders?: boolean, separator?: any) => any;
|
|
135
|
+
getExportHeaderStyle: (column: any) => {
|
|
136
|
+
fontFamily: any;
|
|
137
|
+
fontSize: any;
|
|
138
|
+
fontWeight: number;
|
|
139
|
+
color: any;
|
|
140
|
+
background: any;
|
|
141
|
+
border: string;
|
|
142
|
+
padding: string;
|
|
143
|
+
textAlign: string;
|
|
144
|
+
};
|
|
145
|
+
getExportRawCellValue: (rowLike: any, column: any, rowIndex: any, overrideValue?: undefined) => any;
|
|
146
|
+
getExportRowData: (rowLike: any) => any;
|
|
147
|
+
getExportRowId: (rowLike: any, rowData: any, rowIndex: any) => string;
|
|
148
|
+
getInstantiatedExportColIds: () => any;
|
|
149
|
+
getServerExportColumnTarget: ({ currentTable }?: {
|
|
150
|
+
currentTable?: boolean | undefined;
|
|
151
|
+
}) => {
|
|
152
|
+
mode: string;
|
|
153
|
+
colIds: any;
|
|
154
|
+
knownColIds: any;
|
|
155
|
+
totalCols: any;
|
|
156
|
+
};
|
|
157
|
+
isExportableColumnId: (columnId: any) => boolean;
|
|
158
|
+
triggerExportDownload: (url: any, filename: any) => void;
|
|
159
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Owns spreadsheet-style paste from the window clipboard into selected cells. */
|
|
2
|
+
export function useRuntimeClipboardPaste({ dispatchBatchUpdateRequest, getDisplayRows, lastSelected, tableRef, }: {
|
|
3
|
+
dispatchBatchUpdateRequest: any;
|
|
4
|
+
getDisplayRows: any;
|
|
5
|
+
lastSelected: any;
|
|
6
|
+
tableRef: any;
|
|
7
|
+
}): void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/** Owns client/server color-scale statistics and cell presentation. */
|
|
2
|
+
export function useRuntimeColorScalePresentation({ colorPalette, colorScaleMode, colorScaleColumns, colFields, filteredData, getRuleBasedStyle, nodes, rowFields, serverColorScaleStats, }: {
|
|
3
|
+
colorPalette: any;
|
|
4
|
+
colorScaleMode: any;
|
|
5
|
+
colorScaleColumns?: null | undefined;
|
|
6
|
+
colFields: any;
|
|
7
|
+
filteredData: any;
|
|
8
|
+
getRuleBasedStyle: any;
|
|
9
|
+
nodes: any;
|
|
10
|
+
rowFields: any;
|
|
11
|
+
serverColorScaleStats: any;
|
|
12
|
+
}): {
|
|
13
|
+
COLOR_PALETTES: {
|
|
14
|
+
redGreen: {
|
|
15
|
+
low: number[];
|
|
16
|
+
high: number[];
|
|
17
|
+
darkLow: string;
|
|
18
|
+
darkHigh: string;
|
|
19
|
+
};
|
|
20
|
+
greenRed: {
|
|
21
|
+
low: number[];
|
|
22
|
+
high: number[];
|
|
23
|
+
darkLow: string;
|
|
24
|
+
darkHigh: string;
|
|
25
|
+
};
|
|
26
|
+
blueWhite: {
|
|
27
|
+
low: number[];
|
|
28
|
+
high: number[];
|
|
29
|
+
darkLow: string;
|
|
30
|
+
darkHigh: string;
|
|
31
|
+
};
|
|
32
|
+
yellowBlue: {
|
|
33
|
+
low: number[];
|
|
34
|
+
high: number[];
|
|
35
|
+
darkLow: string;
|
|
36
|
+
darkHigh: string;
|
|
37
|
+
};
|
|
38
|
+
orangePurp: {
|
|
39
|
+
low: number[];
|
|
40
|
+
high: number[];
|
|
41
|
+
darkLow: string;
|
|
42
|
+
darkHigh: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
clientColorScaleStats: {
|
|
46
|
+
byCol: {};
|
|
47
|
+
byRow: {};
|
|
48
|
+
table: {
|
|
49
|
+
min: number;
|
|
50
|
+
max: number;
|
|
51
|
+
} | null;
|
|
52
|
+
};
|
|
53
|
+
colorScaleStats: any;
|
|
54
|
+
getConditionalStyle: (colId: any, value: any, rowData: any, rowId: any) => any;
|
|
55
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Owns measured column sizing and its toolbar command. */
|
|
2
|
+
export function useRuntimeColumnAutoSizing({ autoSizeBounds, columnDecimalOverrides, columnFormatOverrides, columnGroupSeparatorOverrides, decimalPlaces, defaultValueFormat, fontFamily, fontSize, getAutoSizeSampleRows, getDisplayHeaderTextStackForColumn, getRenderedCellWidthForColumn, getRenderedHeaderWidthForColumn, matchesSelectedColumnToValueConfig, numberGroupSeparator, queueHeaderFitValidation, table, valConfigs, }: {
|
|
3
|
+
autoSizeBounds: any;
|
|
4
|
+
columnDecimalOverrides: any;
|
|
5
|
+
columnFormatOverrides: any;
|
|
6
|
+
columnGroupSeparatorOverrides: any;
|
|
7
|
+
decimalPlaces: any;
|
|
8
|
+
defaultValueFormat: any;
|
|
9
|
+
fontFamily: any;
|
|
10
|
+
fontSize: any;
|
|
11
|
+
getAutoSizeSampleRows: any;
|
|
12
|
+
getDisplayHeaderTextStackForColumn: any;
|
|
13
|
+
getRenderedCellWidthForColumn: any;
|
|
14
|
+
getRenderedHeaderWidthForColumn: any;
|
|
15
|
+
matchesSelectedColumnToValueConfig: any;
|
|
16
|
+
numberGroupSeparator: any;
|
|
17
|
+
queueHeaderFitValidation: any;
|
|
18
|
+
table: any;
|
|
19
|
+
valConfigs: any;
|
|
20
|
+
}): {
|
|
21
|
+
HIERARCHY_EXPAND_PX: number;
|
|
22
|
+
HIERARCHY_INDENT_PX: number;
|
|
23
|
+
autoSizeColumn: (columnId: any, includeHeader?: boolean) => void;
|
|
24
|
+
autoSizeVisibleColumns: (includeHeader?: boolean) => void;
|
|
25
|
+
handleAutoSizeToolbarClick: () => void;
|
|
26
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Owns pin-state lookups and server-side pivot-column ordering commands. */
|
|
2
|
+
export function useRuntimeColumnCommands({ colFields, columnPinning, columnVirtualizerRef, effectiveSortOptions, parentRef, resetVisibleColRange, rowFields, serverSide, setPivotColumnSorting, showNotification, visibleColRange, }: {
|
|
3
|
+
colFields: any;
|
|
4
|
+
columnPinning: any;
|
|
5
|
+
columnVirtualizerRef: any;
|
|
6
|
+
effectiveSortOptions: any;
|
|
7
|
+
parentRef: any;
|
|
8
|
+
resetVisibleColRange: any;
|
|
9
|
+
rowFields: any;
|
|
10
|
+
serverSide: any;
|
|
11
|
+
setPivotColumnSorting: any;
|
|
12
|
+
showNotification: any;
|
|
13
|
+
visibleColRange: any;
|
|
14
|
+
}): {
|
|
15
|
+
applyPivotColumnSort: (field: any, mode: any, direction: any) => void;
|
|
16
|
+
getPinningState: (columnId: any) => false | "left" | "right";
|
|
17
|
+
getPivotColumnSortField: (header: any, level?: number) => any;
|
|
18
|
+
getPivotColumnSortState: (field: any) => {
|
|
19
|
+
mode: any;
|
|
20
|
+
direction: any;
|
|
21
|
+
} | null;
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Measures rendered grid chrome and schedules header-fit corrections.
|
|
3
|
+
*
|
|
4
|
+
* DOM measurement is kept separate from column ordering and pinning commands
|
|
5
|
+
* so virtual-column changes have one isolated browser-facing dependency.
|
|
6
|
+
*/
|
|
7
|
+
export function useRuntimeColumnMeasurement({ autoSizeBounds, id, parentRef, table }: {
|
|
8
|
+
autoSizeBounds: any;
|
|
9
|
+
id: any;
|
|
10
|
+
parentRef: any;
|
|
11
|
+
table: any;
|
|
12
|
+
}): {
|
|
13
|
+
getRenderedCellWidthForColumn: (columnId: any) => null;
|
|
14
|
+
getRenderedHeaderWidthForColumn: (columnId: any) => null;
|
|
15
|
+
queueHeaderFitValidation: (columnId: any, measuredWidth: any) => void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** User recovery always derives a fresh request from the current viewport. */
|
|
2
|
+
export function useRuntimeDataRetry({ runtimeDataError, setRuntimeDataError, requestVisibleViewportRefresh, requestVersionRef, stateEpochRef, clientInstanceRef }: {
|
|
3
|
+
runtimeDataError: any;
|
|
4
|
+
setRuntimeDataError: any;
|
|
5
|
+
requestVisibleViewportRefresh: any;
|
|
6
|
+
requestVersionRef: any;
|
|
7
|
+
stateEpochRef: any;
|
|
8
|
+
clientInstanceRef: any;
|
|
9
|
+
}): {
|
|
10
|
+
retryRuntimeData: () => any;
|
|
11
|
+
runtimeDataError: any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns navigation through the rendered, virtualized display axes.
|
|
3
|
+
*
|
|
4
|
+
* These commands need both virtualizers and the table scroll container. They
|
|
5
|
+
* therefore belong to the viewport stage, where those refs are created, rather
|
|
6
|
+
* than to setup, which only owns the display-row index contract.
|
|
7
|
+
*/
|
|
8
|
+
export function useRuntimeDisplayNavigation({ activeRowVirtualizerRef, columnVirtualizerRef, parentRef, pinnedColumnMetaRef, pinnedDisplayMetaRef }: {
|
|
9
|
+
activeRowVirtualizerRef: any;
|
|
10
|
+
columnVirtualizerRef: any;
|
|
11
|
+
parentRef: any;
|
|
12
|
+
pinnedColumnMetaRef: any;
|
|
13
|
+
pinnedDisplayMetaRef: any;
|
|
14
|
+
}): {
|
|
15
|
+
scrollToDisplayColumn: (displayIndex: any) => void;
|
|
16
|
+
scrollToDisplayRow: (displayIndex: any) => void;
|
|
17
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves stable edit-overlay cell identities and values. It is intentionally
|
|
3
|
+
* independent of transaction dispatch so the editing state owner can be
|
|
4
|
+
* migrated without pulling transport into setup.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeEditCellIdentity({ comparisonCellOriginalValuesRef, editValueDisplayMode, optimisticCellValuesRef, tableDataRef, }: {
|
|
7
|
+
comparisonCellOriginalValuesRef: any;
|
|
8
|
+
editValueDisplayMode: any;
|
|
9
|
+
optimisticCellValuesRef: any;
|
|
10
|
+
tableDataRef: any;
|
|
11
|
+
}): {
|
|
12
|
+
getOptimisticCellKey: (rowId: any, colId: any) => string | null;
|
|
13
|
+
normalizeTrackedEventIds: (eventIds: any) => string[];
|
|
14
|
+
resolveCurrentCellValue: (rowId: any, colId: any, fallbackValue?: undefined) => any;
|
|
15
|
+
resolveDisplayedCellValue: (rowId: any, colId: any, fallbackValue?: undefined) => any;
|
|
16
|
+
resolveOptimisticCellValue: (rowId: any, colId: any, fallbackValue: any) => any;
|
|
17
|
+
resolveVisibleDataRowId: (row: any) => string | null;
|
|
18
|
+
splitOptimisticCellKey: (key: any) => {
|
|
19
|
+
rowId: string;
|
|
20
|
+
colId: string;
|
|
21
|
+
} | null;
|
|
22
|
+
};
|