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,483 @@
|
|
|
1
|
+
export const DEFAULT_CHART_PANEL_ROW_LIMIT: 50;
|
|
2
|
+
export const DEFAULT_CHART_PANEL_COLUMN_LIMIT: 10;
|
|
3
|
+
export const DEFAULT_CHART_GRAPH_HEIGHT: 320;
|
|
4
|
+
export const DEFAULT_FLOATING_CHART_PANEL_HEIGHT: 520;
|
|
5
|
+
export const CHART_PANEL_VERTICAL_CHROME_HEIGHT: 220;
|
|
6
|
+
export const MIN_CHART_PANEL_WIDTH: 280;
|
|
7
|
+
export const MAX_CHART_PANEL_WIDTH: 960;
|
|
8
|
+
export const MIN_FLOATING_CHART_PANEL_HEIGHT: 280;
|
|
9
|
+
export const MIN_TABLE_PANEL_WIDTH: 0;
|
|
10
|
+
export const MIN_CHART_CANVAS_PANE_WIDTH: 320;
|
|
11
|
+
export const DEFAULT_DOCKED_CHART_PANE_HEIGHT: 420;
|
|
12
|
+
export const MIN_DOCKED_CHART_PANE_HEIGHT: 180;
|
|
13
|
+
export const MIN_TABLE_PANEL_HEIGHT: 200;
|
|
14
|
+
export const VALID_CHART_DOCK_POSITIONS: Set<string>;
|
|
15
|
+
export const DEFAULT_TABLE_CANVAS_SIZE: 1.4;
|
|
16
|
+
export const TABLE_OVERLAY_CHART_PANE_ID: "__table_overlay_chart__";
|
|
17
|
+
export const MAX_AUTO_SIZE_SAMPLE_ROWS: 300;
|
|
18
|
+
export const MAX_PENDING_ROW_TRANSITIONS: 128;
|
|
19
|
+
export const VALID_CHART_TYPES: Set<string>;
|
|
20
|
+
export const VALID_CHART_SORT_MODES: Set<string>;
|
|
21
|
+
export const VALID_CHART_INTERACTION_MODES: Set<string>;
|
|
22
|
+
export const VALID_CHART_SERVER_SCOPES: Set<string>;
|
|
23
|
+
export const VALID_VIEW_MODES: Set<string>;
|
|
24
|
+
export const VALID_DETAIL_MODES: Set<string>;
|
|
25
|
+
export const VALID_TREE_DISPLAY_MODES: Set<string>;
|
|
26
|
+
export const VALID_DETAIL_REFRESH_STRATEGIES: Set<string>;
|
|
27
|
+
export const VALID_TRANSACTION_REFRESH_MODES: Set<string>;
|
|
28
|
+
export const VALID_TRANSACTION_EVENT_ACTIONS: Set<string>;
|
|
29
|
+
export const MAX_TRANSACTION_HISTORY_ENTRIES: 100;
|
|
30
|
+
export const SOFT_CENTER_COLUMN_WARNING_THRESHOLD: 2000;
|
|
31
|
+
export const HARD_CENTER_COLUMN_WARNING_THRESHOLD: 10000;
|
|
32
|
+
export const SUPPORTED_DEFAULT_NUMBER_FORMATS: Set<string>;
|
|
33
|
+
export const GRAND_TOTAL_ROW_ID: "__grand_total__";
|
|
34
|
+
export function isGrandTotalRow(row: any): boolean;
|
|
35
|
+
export function isSubtotalRow(row: any): boolean;
|
|
36
|
+
export const MISSING_PERSISTED_VALUE: unique symbol;
|
|
37
|
+
export const CUSTOM_CATEGORY_FIELD_PREFIX: "__custom_category__";
|
|
38
|
+
export const CUSTOM_DIMENSION_KINDS: Set<string>;
|
|
39
|
+
export const DATE_GROUP_GRANULARITIES: Set<string>;
|
|
40
|
+
export const CUSTOM_CATEGORY_OPERATORS: Set<string>;
|
|
41
|
+
export function normalizeCustomCategoryId(value: any, fallback?: string): string;
|
|
42
|
+
export function buildCustomCategoryFieldId(id: any): string;
|
|
43
|
+
export function isCustomCategoryField(field: any): boolean;
|
|
44
|
+
export function evaluateCustomDateGroupDimension(row: any, dimension: any): any;
|
|
45
|
+
export function evaluateCustomNumberGroupDimension(row: any, dimension: any): any;
|
|
46
|
+
export function getCustomDimensionFieldId(dimension: any): any;
|
|
47
|
+
export function normalizeCustomCategoryCondition(condition: any, fallbackField?: string): {
|
|
48
|
+
op: string;
|
|
49
|
+
clauses: any;
|
|
50
|
+
};
|
|
51
|
+
export function normalizeCustomDimensionsValue(value: any): ({
|
|
52
|
+
id: string;
|
|
53
|
+
field: any;
|
|
54
|
+
name: any;
|
|
55
|
+
kind: string;
|
|
56
|
+
sourceField: any;
|
|
57
|
+
granularity: string;
|
|
58
|
+
fiscalYearStartMonth: number;
|
|
59
|
+
fallbackLabel: any;
|
|
60
|
+
order: string;
|
|
61
|
+
binSize?: undefined;
|
|
62
|
+
startValue?: undefined;
|
|
63
|
+
minValue?: undefined;
|
|
64
|
+
maxValue?: undefined;
|
|
65
|
+
precision?: undefined;
|
|
66
|
+
rules?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
id: string;
|
|
69
|
+
field: any;
|
|
70
|
+
name: any;
|
|
71
|
+
kind: string;
|
|
72
|
+
sourceField: any;
|
|
73
|
+
binSize: number;
|
|
74
|
+
startValue: number | null;
|
|
75
|
+
minValue: number | null;
|
|
76
|
+
maxValue: number | null;
|
|
77
|
+
precision: number | null;
|
|
78
|
+
fallbackLabel: any;
|
|
79
|
+
order: string;
|
|
80
|
+
granularity?: undefined;
|
|
81
|
+
fiscalYearStartMonth?: undefined;
|
|
82
|
+
rules?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
id: string;
|
|
85
|
+
field: any;
|
|
86
|
+
name: any;
|
|
87
|
+
kind: string;
|
|
88
|
+
fallbackLabel: any;
|
|
89
|
+
rules: any;
|
|
90
|
+
order: any;
|
|
91
|
+
sourceField?: undefined;
|
|
92
|
+
granularity?: undefined;
|
|
93
|
+
fiscalYearStartMonth?: undefined;
|
|
94
|
+
binSize?: undefined;
|
|
95
|
+
startValue?: undefined;
|
|
96
|
+
minValue?: undefined;
|
|
97
|
+
maxValue?: undefined;
|
|
98
|
+
precision?: undefined;
|
|
99
|
+
} | null)[];
|
|
100
|
+
export function getCustomDimensionLabel(customDimensions: any, field: any): any;
|
|
101
|
+
export function formatCustomAwareFieldLabel(field: any, customDimensions?: any[]): any;
|
|
102
|
+
export function evaluateCustomCategoryCondition(row: any, condition: any): any;
|
|
103
|
+
export function evaluateCustomCategoryDimension(row: any, dimension: any): any;
|
|
104
|
+
export function applyCustomDimensionsToRows(rows: any, customDimensions?: any[]): any[];
|
|
105
|
+
export function decorateAvailableFieldsWithCustomDimensions(availableFields: any, customDimensions?: any[]): any[];
|
|
106
|
+
export function getPreferredChartOrientation(columnFields: any): "columns" | "rows";
|
|
107
|
+
export function sanitizeChartDefinitionName(value: any, fallback?: string): string;
|
|
108
|
+
export function createChartDefinitionId(prefix?: string): string;
|
|
109
|
+
export function cloneSerializable(value: any, fallback?: null): any;
|
|
110
|
+
export function normalizeViewModeValue(value: any): any;
|
|
111
|
+
export function normalizeDetailModeValue(value: any): any;
|
|
112
|
+
export function normalizeTreeSourceTypeValue(value: any): "adjacency" | "path" | "nested";
|
|
113
|
+
export function normalizeTreeDisplayModeValue(value: any): "singleColumn" | "multipleColumns";
|
|
114
|
+
export function normalizeTreeGroupDefaultExpandedValue(value: any): number;
|
|
115
|
+
export function normalizeTreeDefaultOpenPathsValue(value: any): any[];
|
|
116
|
+
export function normalizeTreeLevelLabelsValue(value: any): string[];
|
|
117
|
+
export function normalizeDetailRefreshStrategyValue(value: any): string;
|
|
118
|
+
export function hasTransactionEntries(transaction: any): boolean;
|
|
119
|
+
export function normalizeTransactionRefreshModeValue(value: any, fallback?: string): string;
|
|
120
|
+
export function normalizeTransactionEventActionValue(value: any): string | null;
|
|
121
|
+
export function normalizePropagationFormulaValue(value: any, fallback?: string): any;
|
|
122
|
+
export function isParentAggregatePropagationEdit(update: any, groupingFields: any): boolean;
|
|
123
|
+
export function normalizeTransactionHistoryPayload(transaction: any, overrides?: {}): any;
|
|
124
|
+
export function cellValuesMatch(expectedValue: any, actualValue: any): boolean;
|
|
125
|
+
export function hasAppliedTransactionWork(transactionResult: any): boolean;
|
|
126
|
+
export function shouldShowTransactionLoading(transaction: any): boolean;
|
|
127
|
+
export function describeTransactionPropagation(entry: any): string;
|
|
128
|
+
export function isEditableKeyboardTarget(target: any): boolean;
|
|
129
|
+
export function isEditableKeyboardEvent(event: any): boolean;
|
|
130
|
+
export function normalizeTreeConfigValue(value: any): {
|
|
131
|
+
sourceType: string;
|
|
132
|
+
idField: any;
|
|
133
|
+
parentIdField: any;
|
|
134
|
+
pathField: any;
|
|
135
|
+
pathSeparator: any;
|
|
136
|
+
childrenField: any;
|
|
137
|
+
labelField: any;
|
|
138
|
+
sortBy: any;
|
|
139
|
+
sortDir: string;
|
|
140
|
+
valueFields: any;
|
|
141
|
+
extraFields: any;
|
|
142
|
+
displayMode: string;
|
|
143
|
+
groupDefaultExpanded: number;
|
|
144
|
+
defaultOpenPaths: any[];
|
|
145
|
+
suppressGroupRowsSticky: boolean;
|
|
146
|
+
levelLabels: string[];
|
|
147
|
+
};
|
|
148
|
+
export function clampOptionalInteger(value: any, min: any, max: any): number | null;
|
|
149
|
+
export function normalizeDetailConfigValue(value: any): {
|
|
150
|
+
enabled: boolean;
|
|
151
|
+
defaultKind: any;
|
|
152
|
+
allowPerRowKind: boolean;
|
|
153
|
+
inlineHeight: number;
|
|
154
|
+
sidepanelWidth: number;
|
|
155
|
+
drawerHeight: number;
|
|
156
|
+
keepDetailRows: boolean;
|
|
157
|
+
keepDetailRowsCount: number;
|
|
158
|
+
refreshStrategy: string;
|
|
159
|
+
};
|
|
160
|
+
export function hasTreeDefaultExpansionConfig(treeConfig: any): boolean;
|
|
161
|
+
export function normalizeLegacyPivotModeValue(value: any): any;
|
|
162
|
+
export function normalizeReportTopN(value: any): number | null;
|
|
163
|
+
export function normalizeReportNodeValue(value: any): any;
|
|
164
|
+
export function convertLegacyLevelsToReportNode(levels: any, index?: number, overrideRule?: null): any;
|
|
165
|
+
export function normalizeReportDefValue(value: any): any;
|
|
166
|
+
export function collectReportFields(reportDef: any): any[];
|
|
167
|
+
export function countReportNodes(reportDef: any): number;
|
|
168
|
+
export function getReportHeaderLabel(reportDef: any): any;
|
|
169
|
+
export function normalizeSavedReportsValue(value: any): any[];
|
|
170
|
+
export function normalizeActiveReportIdValue(value: any): string | null;
|
|
171
|
+
export function clampFloatingChartRect(rect: any, containerRect: any): {
|
|
172
|
+
left: number;
|
|
173
|
+
top: number;
|
|
174
|
+
width: number;
|
|
175
|
+
height: number;
|
|
176
|
+
};
|
|
177
|
+
export function normalizeChartDefinition(value: any, fallback?: {}): {
|
|
178
|
+
id: string;
|
|
179
|
+
name: string;
|
|
180
|
+
chartTitle: string;
|
|
181
|
+
source: any;
|
|
182
|
+
chartType: any;
|
|
183
|
+
barLayout: any;
|
|
184
|
+
axisMode: any;
|
|
185
|
+
orientation: any;
|
|
186
|
+
hierarchyLevel: any;
|
|
187
|
+
rowLimit: number;
|
|
188
|
+
columnLimit: number;
|
|
189
|
+
width: number;
|
|
190
|
+
chartHeight: number;
|
|
191
|
+
sortMode: any;
|
|
192
|
+
interactionMode: any;
|
|
193
|
+
serverScope: any;
|
|
194
|
+
chartLayers: any;
|
|
195
|
+
};
|
|
196
|
+
export function sanitizeChartDefinitions(definitions: any, fallbackDefinition: any): {
|
|
197
|
+
id: string;
|
|
198
|
+
name: string;
|
|
199
|
+
chartTitle: string;
|
|
200
|
+
source: any;
|
|
201
|
+
chartType: any;
|
|
202
|
+
barLayout: any;
|
|
203
|
+
axisMode: any;
|
|
204
|
+
orientation: any;
|
|
205
|
+
hierarchyLevel: any;
|
|
206
|
+
rowLimit: number;
|
|
207
|
+
columnLimit: number;
|
|
208
|
+
width: number;
|
|
209
|
+
chartHeight: number;
|
|
210
|
+
sortMode: any;
|
|
211
|
+
interactionMode: any;
|
|
212
|
+
serverScope: any;
|
|
213
|
+
chartLayers: any;
|
|
214
|
+
}[];
|
|
215
|
+
export function serializeChartColumn(column: any): any;
|
|
216
|
+
export function serializeChartColumns(columns: any): any[];
|
|
217
|
+
export function getRequestedChartSeriesColumnIds(chartType: any, chartLayers: any): any[];
|
|
218
|
+
export function normalizeChartResponseColumn(column: any, fallbackId?: null): any;
|
|
219
|
+
export function normalizeChartResponseColumns(columns: any): any[];
|
|
220
|
+
export function buildChartColumnsFromSchema(colSchema: any): any;
|
|
221
|
+
export function resolveChartModelColumns(chartDataEntry: any, fallbackColumns?: any[]): any[];
|
|
222
|
+
export function resolveChartAvailableColumns(chartDataEntry: any, fallbackColumns?: any[]): any;
|
|
223
|
+
export function coerceTransportNumber(value: any, fallback?: null): number | null;
|
|
224
|
+
export function isColSchemaTransportColumn(column: any): boolean;
|
|
225
|
+
export function extractColSchemaFromTransportColumns(columns: any): any;
|
|
226
|
+
export function normalizeTransportColumns(columns: any, fallbackColumns?: any[]): any[];
|
|
227
|
+
export function normalizeRuntimeDataEnvelope(payload: any, fallback?: {}): {
|
|
228
|
+
data: any;
|
|
229
|
+
rowCount: number | null;
|
|
230
|
+
columns: any[];
|
|
231
|
+
colSchema: any;
|
|
232
|
+
dataOffset: number | null;
|
|
233
|
+
dataVersion: number | null;
|
|
234
|
+
stateEpoch: number | null;
|
|
235
|
+
};
|
|
236
|
+
export function resolveTransportRowId(row: any): string | null;
|
|
237
|
+
export function applyRuntimePatchEnvelope(patch: any, fallback?: {}): {
|
|
238
|
+
data: any;
|
|
239
|
+
rowCount: number | null;
|
|
240
|
+
columns: any[];
|
|
241
|
+
colSchema: any;
|
|
242
|
+
dataOffset: number | null;
|
|
243
|
+
dataVersion: number | null;
|
|
244
|
+
stateEpoch: number | null;
|
|
245
|
+
};
|
|
246
|
+
export function normalizeLockedChartRequest(value: any): {
|
|
247
|
+
request: any;
|
|
248
|
+
stateOverride: any;
|
|
249
|
+
visibleColumns: any;
|
|
250
|
+
requestSignature: any;
|
|
251
|
+
} | null;
|
|
252
|
+
export function normalizeChartDockPosition(value: any, fallback?: string): any;
|
|
253
|
+
export function normalizeChartSettings(value: any): {
|
|
254
|
+
chartSubtitle: any;
|
|
255
|
+
yAxisTitle: any;
|
|
256
|
+
yAxisMin: string;
|
|
257
|
+
yAxisMax: string;
|
|
258
|
+
yAxisMinRight: string;
|
|
259
|
+
yAxisMaxRight: string;
|
|
260
|
+
tickCount: number;
|
|
261
|
+
labelAngle: number;
|
|
262
|
+
colorPalette: any;
|
|
263
|
+
valueFormat: any;
|
|
264
|
+
showDataLabels: boolean;
|
|
265
|
+
decimalPlaces: number;
|
|
266
|
+
labelPosition: any;
|
|
267
|
+
legendPosition: any;
|
|
268
|
+
markerShape: any;
|
|
269
|
+
markerSize: number;
|
|
270
|
+
showGradient: boolean;
|
|
271
|
+
gradientDirection: string;
|
|
272
|
+
gradientOpacity: number;
|
|
273
|
+
showAnimations: boolean;
|
|
274
|
+
showCalloutLabels: boolean;
|
|
275
|
+
showTrendline: boolean;
|
|
276
|
+
trendlineMode: any;
|
|
277
|
+
trendlinePeriod: number;
|
|
278
|
+
trendlineColor: any;
|
|
279
|
+
trendlineWidth: number;
|
|
280
|
+
seriesSort: any;
|
|
281
|
+
seriesColors: any;
|
|
282
|
+
customPaletteColors: any;
|
|
283
|
+
lineDashStyles: any;
|
|
284
|
+
referenceLines: any;
|
|
285
|
+
};
|
|
286
|
+
export function normalizeChartCanvasPane(value: any, fallbackDefinition: any, index?: number): {
|
|
287
|
+
size: number;
|
|
288
|
+
dockPosition: any;
|
|
289
|
+
floating: boolean;
|
|
290
|
+
floatingRect: {
|
|
291
|
+
left: number;
|
|
292
|
+
top: number;
|
|
293
|
+
width: number;
|
|
294
|
+
height: number;
|
|
295
|
+
};
|
|
296
|
+
locked: boolean;
|
|
297
|
+
lockedModel: any;
|
|
298
|
+
lockedRequest: {
|
|
299
|
+
request: any;
|
|
300
|
+
stateOverride: any;
|
|
301
|
+
visibleColumns: any;
|
|
302
|
+
requestSignature: any;
|
|
303
|
+
} | null;
|
|
304
|
+
immersiveMode: boolean;
|
|
305
|
+
chartSettings: {
|
|
306
|
+
chartSubtitle: any;
|
|
307
|
+
yAxisTitle: any;
|
|
308
|
+
yAxisMin: string;
|
|
309
|
+
yAxisMax: string;
|
|
310
|
+
yAxisMinRight: string;
|
|
311
|
+
yAxisMaxRight: string;
|
|
312
|
+
tickCount: number;
|
|
313
|
+
labelAngle: number;
|
|
314
|
+
colorPalette: any;
|
|
315
|
+
valueFormat: any;
|
|
316
|
+
showDataLabels: boolean;
|
|
317
|
+
decimalPlaces: number;
|
|
318
|
+
labelPosition: any;
|
|
319
|
+
legendPosition: any;
|
|
320
|
+
markerShape: any;
|
|
321
|
+
markerSize: number;
|
|
322
|
+
showGradient: boolean;
|
|
323
|
+
gradientDirection: string;
|
|
324
|
+
gradientOpacity: number;
|
|
325
|
+
showAnimations: boolean;
|
|
326
|
+
showCalloutLabels: boolean;
|
|
327
|
+
showTrendline: boolean;
|
|
328
|
+
trendlineMode: any;
|
|
329
|
+
trendlinePeriod: number;
|
|
330
|
+
trendlineColor: any;
|
|
331
|
+
trendlineWidth: number;
|
|
332
|
+
seriesSort: any;
|
|
333
|
+
seriesColors: any;
|
|
334
|
+
customPaletteColors: any;
|
|
335
|
+
lineDashStyles: any;
|
|
336
|
+
referenceLines: any;
|
|
337
|
+
};
|
|
338
|
+
settingsPanelWidth: number | null;
|
|
339
|
+
id: string;
|
|
340
|
+
name: string;
|
|
341
|
+
chartTitle: string;
|
|
342
|
+
source: any;
|
|
343
|
+
chartType: any;
|
|
344
|
+
barLayout: any;
|
|
345
|
+
axisMode: any;
|
|
346
|
+
orientation: any;
|
|
347
|
+
hierarchyLevel: any;
|
|
348
|
+
rowLimit: number;
|
|
349
|
+
columnLimit: number;
|
|
350
|
+
width: number;
|
|
351
|
+
chartHeight: number;
|
|
352
|
+
sortMode: any;
|
|
353
|
+
interactionMode: any;
|
|
354
|
+
serverScope: any;
|
|
355
|
+
chartLayers: any;
|
|
356
|
+
};
|
|
357
|
+
export function sanitizeChartCanvasPanes(panes: any, fallbackDefinition: any): {
|
|
358
|
+
size: number;
|
|
359
|
+
dockPosition: any;
|
|
360
|
+
floating: boolean;
|
|
361
|
+
floatingRect: {
|
|
362
|
+
left: number;
|
|
363
|
+
top: number;
|
|
364
|
+
width: number;
|
|
365
|
+
height: number;
|
|
366
|
+
};
|
|
367
|
+
locked: boolean;
|
|
368
|
+
lockedModel: any;
|
|
369
|
+
lockedRequest: {
|
|
370
|
+
request: any;
|
|
371
|
+
stateOverride: any;
|
|
372
|
+
visibleColumns: any;
|
|
373
|
+
requestSignature: any;
|
|
374
|
+
} | null;
|
|
375
|
+
immersiveMode: boolean;
|
|
376
|
+
chartSettings: {
|
|
377
|
+
chartSubtitle: any;
|
|
378
|
+
yAxisTitle: any;
|
|
379
|
+
yAxisMin: string;
|
|
380
|
+
yAxisMax: string;
|
|
381
|
+
yAxisMinRight: string;
|
|
382
|
+
yAxisMaxRight: string;
|
|
383
|
+
tickCount: number;
|
|
384
|
+
labelAngle: number;
|
|
385
|
+
colorPalette: any;
|
|
386
|
+
valueFormat: any;
|
|
387
|
+
showDataLabels: boolean;
|
|
388
|
+
decimalPlaces: number;
|
|
389
|
+
labelPosition: any;
|
|
390
|
+
legendPosition: any;
|
|
391
|
+
markerShape: any;
|
|
392
|
+
markerSize: number;
|
|
393
|
+
showGradient: boolean;
|
|
394
|
+
gradientDirection: string;
|
|
395
|
+
gradientOpacity: number;
|
|
396
|
+
showAnimations: boolean;
|
|
397
|
+
showCalloutLabels: boolean;
|
|
398
|
+
showTrendline: boolean;
|
|
399
|
+
trendlineMode: any;
|
|
400
|
+
trendlinePeriod: number;
|
|
401
|
+
trendlineColor: any;
|
|
402
|
+
trendlineWidth: number;
|
|
403
|
+
seriesSort: any;
|
|
404
|
+
seriesColors: any;
|
|
405
|
+
customPaletteColors: any;
|
|
406
|
+
lineDashStyles: any;
|
|
407
|
+
referenceLines: any;
|
|
408
|
+
};
|
|
409
|
+
settingsPanelWidth: number | null;
|
|
410
|
+
id: string;
|
|
411
|
+
name: string;
|
|
412
|
+
chartTitle: string;
|
|
413
|
+
source: any;
|
|
414
|
+
chartType: any;
|
|
415
|
+
barLayout: any;
|
|
416
|
+
axisMode: any;
|
|
417
|
+
orientation: any;
|
|
418
|
+
hierarchyLevel: any;
|
|
419
|
+
rowLimit: number;
|
|
420
|
+
columnLimit: number;
|
|
421
|
+
width: number;
|
|
422
|
+
chartHeight: number;
|
|
423
|
+
sortMode: any;
|
|
424
|
+
interactionMode: any;
|
|
425
|
+
serverScope: any;
|
|
426
|
+
chartLayers: any;
|
|
427
|
+
}[];
|
|
428
|
+
export function getChartPanelWidthBounds(layoutWidth: any): {
|
|
429
|
+
minWidth: number;
|
|
430
|
+
maxWidth: number;
|
|
431
|
+
};
|
|
432
|
+
export function normalizeChartServerWindowConfig(value: any): {
|
|
433
|
+
enabled: boolean;
|
|
434
|
+
rows: number | null;
|
|
435
|
+
columns: number | null;
|
|
436
|
+
scope: any;
|
|
437
|
+
};
|
|
438
|
+
export function getOrCreateSessionId(componentId?: string): string;
|
|
439
|
+
export function createClientInstanceId(componentId?: string): string;
|
|
440
|
+
export function clampSidebarWidth(value: any, fallback?: number): number;
|
|
441
|
+
export function clampDecimalPlaces(value: any, fallback?: number): number;
|
|
442
|
+
export function normalizeDefaultValueFormat(value: any): string;
|
|
443
|
+
export function mergeSparseColSchema(previousSchema: any, incomingSchema: any, fallbackSize?: number): any;
|
|
444
|
+
export function isSparseSchemaRangeLoaded(schema: any, start: any, end: any): boolean;
|
|
445
|
+
export function normalizePerformanceConfigValue(value: any): {
|
|
446
|
+
cacheBlockSize: number | null;
|
|
447
|
+
maxBlocksInCache: number | null;
|
|
448
|
+
blockLoadDebounceMs: number | null;
|
|
449
|
+
rowOverscan: number | null;
|
|
450
|
+
columnOverscan: number | null;
|
|
451
|
+
prefetchColumns: number | null;
|
|
452
|
+
executionMode: any;
|
|
453
|
+
clientEngine: any;
|
|
454
|
+
duckdbWasmThreshold: number | null;
|
|
455
|
+
clientRowThreshold: number | null;
|
|
456
|
+
dataUrl: any;
|
|
457
|
+
duckdbWasmCdnUrl: any;
|
|
458
|
+
duckdbWasmInstance: any;
|
|
459
|
+
legacyClientTable: boolean;
|
|
460
|
+
};
|
|
461
|
+
export function buildLargeColumnAdvisory({ serverSide, totalCenterCols, colFields }: {
|
|
462
|
+
serverSide: any;
|
|
463
|
+
totalCenterCols: any;
|
|
464
|
+
colFields: any;
|
|
465
|
+
}): {
|
|
466
|
+
tone: string;
|
|
467
|
+
label: string;
|
|
468
|
+
detail: string;
|
|
469
|
+
notification: string;
|
|
470
|
+
} | null;
|
|
471
|
+
export function hasActiveFilterValue(value: any): boolean;
|
|
472
|
+
export function countActiveFilters(filters: any): any;
|
|
473
|
+
export function normalizeRowPinningState(value: any): {
|
|
474
|
+
top: any;
|
|
475
|
+
bottom: any;
|
|
476
|
+
};
|
|
477
|
+
export function getPinnedSideForRow(rowPinning: any, rowId: any): "top" | "bottom" | null;
|
|
478
|
+
export function sanitizeGrandTotalPinOverride(value: any): any;
|
|
479
|
+
export function resolveGrandTotalPinState(showColTotals: any, grandTotalPosition: any, grandTotalPinOverride: any): any;
|
|
480
|
+
export function applyRowPinning(rowPinning: any, rowId: any, pinState: any): {
|
|
481
|
+
top: any;
|
|
482
|
+
bottom: any;
|
|
483
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function usePivotRenderCounter(componentName: any, componentId?: null): number;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns transaction history and the server-side transaction lifecycle.
|
|
3
|
+
*
|
|
4
|
+
* The composition root supplies the runtime transport and editing-specific
|
|
5
|
+
* operations through `configure`. Keeping those dependencies explicit avoids
|
|
6
|
+
* a second owner for row caches, selection, or edit overlays.
|
|
7
|
+
*/
|
|
8
|
+
export function usePivotTransactions(): {
|
|
9
|
+
configure: (context: any) => void;
|
|
10
|
+
transactionHistoryState: {
|
|
11
|
+
undoCount: number;
|
|
12
|
+
redoCount: number;
|
|
13
|
+
pending: boolean;
|
|
14
|
+
};
|
|
15
|
+
syncTransactionHistoryState: () => void;
|
|
16
|
+
findTransactionHistoryEntryByEventId: (eventId: any) => any;
|
|
17
|
+
sortEventIdsByActiveHistory: (eventIds: any) => any;
|
|
18
|
+
pruneTransactionHistoryEntries: (eventIds: any) => void;
|
|
19
|
+
pushUnifiedHistoryEntry: (entry: any) => void;
|
|
20
|
+
queueTransactionHistoryRequest: (requestId: any, entry: any, options?: {}) => boolean;
|
|
21
|
+
clearTransactionHistory: () => void;
|
|
22
|
+
dispatchTransactionRequest: (transactionPayload: any, source?: string) => {
|
|
23
|
+
requestId: string;
|
|
24
|
+
} | null;
|
|
25
|
+
finalizeTransactionHistoryResponse: (response: any, payload: any) => void;
|
|
26
|
+
clearPendingTransactionHistoryRequest: (response: any, notifyOnError?: boolean) => void;
|
|
27
|
+
executeUndoTransaction: () => void;
|
|
28
|
+
executeRedoTransaction: () => void;
|
|
29
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useRenderHelpers — extracts renderCell and renderHeaderCell from DashTanstackPivot.
|
|
3
|
+
*
|
|
4
|
+
* CODE-03 stale closure audit for renderHeaderCell:
|
|
5
|
+
* - renderHeaderCell is a useCallback whose dependency list includes the
|
|
6
|
+
* values that can change between renders.
|
|
7
|
+
* - handleHeaderContextMenu, autoSizeColumn, autoSizeBounds, setHoveredHeaderId,
|
|
8
|
+
* setFocusedHeaderId, onDragStart, handleFilterClick, handleHeaderFilter,
|
|
9
|
+
* onHeaderDrop, onHeaderDragOver, onHeaderKeyboardMove, onHeaderKeyboardPin,
|
|
10
|
+
* activeFilterCol, filterAnchorEl, closeFilterPopover, activeFilterOptions,
|
|
11
|
+
* filters, selectedCols, leftCols, rightCols, centerCols, headerFormatting,
|
|
12
|
+
* styles, rowHeight,
|
|
13
|
+
* hoveredHeaderId, focusedHeaderId, theme — all are read synchronously when
|
|
14
|
+
* renderHeaderCell is called, capturing the value from the current render pass.
|
|
15
|
+
*/
|
|
16
|
+
export function useRenderHelpers({ serverSide, selectedCells, fillRange, dragStart, theme, getStickyStyle, isDarkTheme, handleCellMouseDown, handleCellMouseEnter, handleContextMenu, handleFillMouseDown, visibleLeafColIndexMap, lastSelected, styles, getConditionalStyle, rowHeight, rowFields, tableRef, leftCols, centerCols, rightCols, columnPinning, sorting, handleHeaderContextMenu, autoSizeColumn, autoSizeBounds, hoveredHeaderIdRef, setHoveredHeaderId, focusedHeaderIdRef, setFocusedHeaderId, onDragStart, onHeaderDrop, onHeaderDragOver, onHeaderDragEnd, onHeaderKeyboardMove, onHeaderKeyboardPin, dragOverHeaderId, dragOverSide, handleFilterClick, handleHeaderFilter, activeFilterCol, filterAnchorEl, closeFilterPopover, activeFilterOptions, activeFilterOptionMeta, requestFilterOptions, filters, selectedCols, getHeaderStickyStyle, dataBarsColumns, dataBarMaximums, colorScaleStats, cellFormatRules, resolveEditedCellMarker, resolveCellDisplayValue, editedCellEpoch, headerFormatting, getLocaleText, wrapHeaders, table, selectedRowKeys, toggleRowCheckbox, rowCheckboxMode, }: {
|
|
17
|
+
serverSide: any;
|
|
18
|
+
selectedCells: any;
|
|
19
|
+
fillRange: any;
|
|
20
|
+
dragStart: any;
|
|
21
|
+
theme: any;
|
|
22
|
+
getStickyStyle: any;
|
|
23
|
+
isDarkTheme: any;
|
|
24
|
+
handleCellMouseDown: any;
|
|
25
|
+
handleCellMouseEnter: any;
|
|
26
|
+
handleContextMenu: any;
|
|
27
|
+
handleFillMouseDown: any;
|
|
28
|
+
visibleLeafColIndexMap: any;
|
|
29
|
+
lastSelected: any;
|
|
30
|
+
styles: any;
|
|
31
|
+
getConditionalStyle: any;
|
|
32
|
+
rowHeight: any;
|
|
33
|
+
rowFields: any;
|
|
34
|
+
tableRef: any;
|
|
35
|
+
leftCols: any;
|
|
36
|
+
centerCols: any;
|
|
37
|
+
rightCols: any;
|
|
38
|
+
columnPinning: any;
|
|
39
|
+
sorting: any;
|
|
40
|
+
handleHeaderContextMenu: any;
|
|
41
|
+
autoSizeColumn: any;
|
|
42
|
+
autoSizeBounds: any;
|
|
43
|
+
hoveredHeaderIdRef: any;
|
|
44
|
+
setHoveredHeaderId: any;
|
|
45
|
+
focusedHeaderIdRef: any;
|
|
46
|
+
setFocusedHeaderId: any;
|
|
47
|
+
onDragStart: any;
|
|
48
|
+
onHeaderDrop: any;
|
|
49
|
+
onHeaderDragOver: any;
|
|
50
|
+
onHeaderDragEnd: any;
|
|
51
|
+
onHeaderKeyboardMove: any;
|
|
52
|
+
onHeaderKeyboardPin: any;
|
|
53
|
+
dragOverHeaderId: any;
|
|
54
|
+
dragOverSide: any;
|
|
55
|
+
handleFilterClick: any;
|
|
56
|
+
handleHeaderFilter: any;
|
|
57
|
+
activeFilterCol: any;
|
|
58
|
+
filterAnchorEl: any;
|
|
59
|
+
closeFilterPopover: any;
|
|
60
|
+
activeFilterOptions: any;
|
|
61
|
+
activeFilterOptionMeta: any;
|
|
62
|
+
requestFilterOptions: any;
|
|
63
|
+
filters: any;
|
|
64
|
+
selectedCols: any;
|
|
65
|
+
getHeaderStickyStyle: any;
|
|
66
|
+
dataBarsColumns: any;
|
|
67
|
+
dataBarMaximums: any;
|
|
68
|
+
colorScaleStats: any;
|
|
69
|
+
cellFormatRules: any;
|
|
70
|
+
resolveEditedCellMarker: any;
|
|
71
|
+
resolveCellDisplayValue: any;
|
|
72
|
+
editedCellEpoch: any;
|
|
73
|
+
headerFormatting: any;
|
|
74
|
+
getLocaleText: any;
|
|
75
|
+
wrapHeaders: any;
|
|
76
|
+
table: any;
|
|
77
|
+
selectedRowKeys: any;
|
|
78
|
+
toggleRowCheckbox: any;
|
|
79
|
+
rowCheckboxMode: any;
|
|
80
|
+
}): {
|
|
81
|
+
renderCell: (cell: any, virtualRowIndex: any, isVirtualRow?: boolean, renderOptions?: {}) => React.JSX.Element | null;
|
|
82
|
+
renderVirtualColumnCell: (row: any, column: any, virtualRowIndex: any, isVirtualRow?: boolean, renderOptions?: {}) => React.JSX.Element | null;
|
|
83
|
+
renderHeaderCell: (header: any, level: any, renderSection?: string, overrideWidth?: null, disableSticky?: boolean) => React.JSX.Element;
|
|
84
|
+
};
|
|
85
|
+
import React from 'react';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useReportMode — extracts report mode state from DashTanstackPivot.
|
|
3
|
+
*
|
|
4
|
+
* Covers: viewMode, reportDef, savedReports, activeReportId, frozenPivotConfig.
|
|
5
|
+
*/
|
|
6
|
+
export function useReportMode({ hasExternalViewMode, normalizedInitialViewMode, normalizeViewModeValue, normalizeLegacyPivotModeValue, hasExternalReportDef, normalizedInitialReportDef, normalizeReportDefValue, hasExternalSavedReports, normalizedInitialSavedReports, normalizeSavedReportsValue, hasExternalActiveReportId, normalizedInitialActiveReportId, normalizeActiveReportIdValue, loadPersistedState, }: {
|
|
7
|
+
hasExternalViewMode: any;
|
|
8
|
+
normalizedInitialViewMode: any;
|
|
9
|
+
normalizeViewModeValue: any;
|
|
10
|
+
normalizeLegacyPivotModeValue: any;
|
|
11
|
+
hasExternalReportDef: any;
|
|
12
|
+
normalizedInitialReportDef: any;
|
|
13
|
+
normalizeReportDefValue: any;
|
|
14
|
+
hasExternalSavedReports: any;
|
|
15
|
+
normalizedInitialSavedReports: any;
|
|
16
|
+
normalizeSavedReportsValue: any;
|
|
17
|
+
hasExternalActiveReportId: any;
|
|
18
|
+
normalizedInitialActiveReportId: any;
|
|
19
|
+
normalizeActiveReportIdValue: any;
|
|
20
|
+
loadPersistedState: any;
|
|
21
|
+
}): {
|
|
22
|
+
viewMode: any;
|
|
23
|
+
setViewMode: import("react").Dispatch<any>;
|
|
24
|
+
reportDef: any;
|
|
25
|
+
setReportDef: import("react").Dispatch<any>;
|
|
26
|
+
savedReports: any;
|
|
27
|
+
setSavedReports: import("react").Dispatch<any>;
|
|
28
|
+
activeReportId: any;
|
|
29
|
+
setActiveReportId: import("react").Dispatch<any>;
|
|
30
|
+
frozenPivotConfig: any;
|
|
31
|
+
setFrozenPivotConfig: import("react").Dispatch<any>;
|
|
32
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function useRowCache({ blockSize, maxBlocks }?: {
|
|
2
|
+
blockSize: number;
|
|
3
|
+
}): {
|
|
4
|
+
setCurrentEpoch: (epoch: any) => void;
|
|
5
|
+
getBlock: (blockIndex: any, epoch?: number) => any;
|
|
6
|
+
setBlockLoading: (blockIndex: any, requestVersion?: null, epoch?: number) => number;
|
|
7
|
+
setBlockLoaded: (blockIndex: any, rows: any, requestVersion: any, isComplete?: boolean, epoch?: number, colStart?: null, colEnd?: null) => void;
|
|
8
|
+
clearCache: () => void;
|
|
9
|
+
invalidateFromBlock: (blockIndex: any, epoch?: number) => void;
|
|
10
|
+
softInvalidateFromBlock: (blockIndex: any, epoch?: number) => void;
|
|
11
|
+
softInvalidateRange: (startBlock: any, endBlock: any, epoch?: number) => void;
|
|
12
|
+
pruneToRange: (minBlock: any, maxBlock: any, buffer?: number, epoch?: number) => void;
|
|
13
|
+
setPinnedRange: (minBlock: any, maxBlock: any, buffer?: number, epoch?: number) => void;
|
|
14
|
+
getRow: (rowIndex: any, epoch?: number) => any;
|
|
15
|
+
getLoadedBlocks: (epoch?: number) => any[];
|
|
16
|
+
cacheVersion: number;
|
|
17
|
+
blockSize: number;
|
|
18
|
+
currentEpochRef: import("react").RefObject<number>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns freshness checks and atomic state commits for complete runtime-data
|
|
3
|
+
* envelopes. Viewport-cache and request scheduling remain with their existing
|
|
4
|
+
* server-side owners.
|
|
5
|
+
*/
|
|
6
|
+
export function useRuntimeDataCommit({ clientInstanceRef, stateEpochRef, latestDataVersionRef, requestVersionRef, pendingDataProfilerCommitRef, finalizeTransactionHistoryResponse, hydrateVisibleEditOverlay, reconcileOptimisticCellValuesWithPayload, setFormulaErrors, setTransportDataState, layoutRevisionRef, layoutAcknowledgedManifestRef, pivotLayoutOrderRef, latestLayoutSentManifestRef, }: {
|
|
7
|
+
clientInstanceRef: any;
|
|
8
|
+
stateEpochRef: any;
|
|
9
|
+
latestDataVersionRef: any;
|
|
10
|
+
requestVersionRef?: {
|
|
11
|
+
current: number;
|
|
12
|
+
} | null | undefined;
|
|
13
|
+
pendingDataProfilerCommitRef: any;
|
|
14
|
+
finalizeTransactionHistoryResponse: any;
|
|
15
|
+
hydrateVisibleEditOverlay: any;
|
|
16
|
+
reconcileOptimisticCellValuesWithPayload: any;
|
|
17
|
+
setFormulaErrors: any;
|
|
18
|
+
setTransportDataState: any;
|
|
19
|
+
layoutRevisionRef: any;
|
|
20
|
+
layoutAcknowledgedManifestRef: any;
|
|
21
|
+
pivotLayoutOrderRef: any;
|
|
22
|
+
latestLayoutSentManifestRef: any;
|
|
23
|
+
}): {
|
|
24
|
+
commitRuntimeDataPayload: (response: any, payload: any, clientProfile?: null) => void;
|
|
25
|
+
runtimePayloadCommitIsCurrent: (response: any, payload: any, resolvedPayload?: null) => boolean;
|
|
26
|
+
};
|