serverside_pivot 0.0.0-stage → 0.0.90
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 +165 -3
- package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +192 -0
- package/dist/react/chunks/DetailDrawer-DtsvdhO4.mjs +37 -0
- package/dist/react/chunks/DetailSidePanel-v_7iU73g.mjs +36 -0
- package/dist/react/chunks/DetailSurfaceContent-BOXVc58A.mjs +200 -0
- package/dist/react/chunks/ECharts2dRenderer-BGL_NVGU.mjs +3299 -0
- package/dist/react/chunks/ECharts3dRenderer-BF2YWlsP.mjs +21573 -0
- package/dist/react/chunks/EditSidePanel-CuvtsKTK.mjs +298 -0
- package/dist/react/chunks/InlineDetailPanel-Bmtlu3lc.mjs +41 -0
- package/dist/react/chunks/PivotCharts-CA3_0bB8.mjs +4252 -0
- package/dist/react/chunks/ReportEditor-DYBr0HDz.mjs +1726 -0
- package/dist/react/chunks/SidebarPanel-B64bhrUW.mjs +3339 -0
- package/dist/react/chunks/SparklineDetailGraph-90WjWkhg.mjs +200 -0
- package/dist/react/chunks/installCanvasRenderer-C8gE9ttC.mjs +21281 -0
- package/dist/react/chunks/react-52jgz-em.mjs +25301 -0
- package/dist/react/chunks/xlsx.mini.min-BwwnBtoK.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 +365 -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 +473 -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 +8 -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 +7 -0
- package/dist/react/runtime/PivotRuntimeRoot.d.ts +7 -0
- package/dist/react/runtime/cellSelectionAnchor.d.ts +45 -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 +62 -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 +89 -6
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useColumnDefs — extracts the columns useMemo from DashTanstackPivot.
|
|
3
|
+
*
|
|
4
|
+
* Closed-over values that are NOT in the dep array (intentionally excluded or
|
|
5
|
+
* come from stable refs) are listed below for CODE-03 stale-closure audit:
|
|
6
|
+
* - renderedOffset: used inside a cell render fn (executes at render time,
|
|
7
|
+
* not at useMemo compute time), so the value seen is always fresh
|
|
8
|
+
* - handleContextMenu, handleRowSelect, handleRowRangeSelect,
|
|
9
|
+
* setIsRowSelecting, setRowDragStart: stable callbacks (useCallback)
|
|
10
|
+
* — not included in dep array but do not cause stale behaviour because
|
|
11
|
+
* the cell functions re-run every render pass from flexRender
|
|
12
|
+
* - defaultColumnWidths, debugLog, theme, validationRules, onCellEdit,
|
|
13
|
+
* isColExpanded, toggleCol, pendingRowTransitions: read at render time
|
|
14
|
+
* from current scope; same stable-ref / render-time-read pattern
|
|
15
|
+
*/
|
|
16
|
+
export function useColumnDefs({ sortOptions, sorting, serverSide, showRowNumbers, layoutMode, viewMode, rowFields, colFields, valConfigs, customDimensions, treeConfig, minMax, colorScaleMode, colExpanded, isRowSelecting, rowDragStart, props, measureAxis, cachedColSchema, responseColumns, filteredData, rowCount, theme, defaultColumnWidths, validationRules, onCellEdit, onEditBlocked, resolveEditorPresentation, rowEditMode, getRowEditSession, onRequestRowStart, onRowDraftChange, onRequestRowSave, onRequestRowCancel, requestEditorOptions, renderRowEditActions, handleContextMenu, handleRowSelect, handleRowRangeSelect, setIsRowSelecting, setRowDragStart, renderedOffset, isColExpanded, toggleCol, pendingRowTransitions, decimalPlaces, defaultValueFormat, numberGroupSeparator, columnDecimalOverrides, columnFormatOverrides, columnGroupSeparatorOverrides, cellFormatRules, pivotMode, reportDef, showReportConfigColumn, onConfigureReportLine, detailMode, isDetailOpenForRow, onToggleDetail, resolveCellDisplayValue, editValueDisplayMode, openSparklineDataModalRef, rowCheckboxSelection, selectedRowKeys, toggleRowCheckbox, }: {
|
|
17
|
+
sortOptions: any;
|
|
18
|
+
sorting: any;
|
|
19
|
+
serverSide: any;
|
|
20
|
+
showRowNumbers: any;
|
|
21
|
+
layoutMode: any;
|
|
22
|
+
viewMode: any;
|
|
23
|
+
rowFields: any;
|
|
24
|
+
colFields: any;
|
|
25
|
+
valConfigs: any;
|
|
26
|
+
customDimensions: any;
|
|
27
|
+
treeConfig: any;
|
|
28
|
+
minMax: any;
|
|
29
|
+
colorScaleMode: any;
|
|
30
|
+
colExpanded: any;
|
|
31
|
+
isRowSelecting: any;
|
|
32
|
+
rowDragStart: any;
|
|
33
|
+
props: any;
|
|
34
|
+
measureAxis: any;
|
|
35
|
+
cachedColSchema: any;
|
|
36
|
+
responseColumns: any;
|
|
37
|
+
filteredData: any;
|
|
38
|
+
rowCount: any;
|
|
39
|
+
theme: any;
|
|
40
|
+
defaultColumnWidths: any;
|
|
41
|
+
validationRules: any;
|
|
42
|
+
onCellEdit: any;
|
|
43
|
+
onEditBlocked: any;
|
|
44
|
+
resolveEditorPresentation: any;
|
|
45
|
+
rowEditMode: any;
|
|
46
|
+
getRowEditSession: any;
|
|
47
|
+
onRequestRowStart: any;
|
|
48
|
+
onRowDraftChange: any;
|
|
49
|
+
onRequestRowSave: any;
|
|
50
|
+
onRequestRowCancel: any;
|
|
51
|
+
requestEditorOptions: any;
|
|
52
|
+
renderRowEditActions: any;
|
|
53
|
+
handleContextMenu: any;
|
|
54
|
+
handleRowSelect: any;
|
|
55
|
+
handleRowRangeSelect: any;
|
|
56
|
+
setIsRowSelecting: any;
|
|
57
|
+
setRowDragStart: any;
|
|
58
|
+
renderedOffset: any;
|
|
59
|
+
isColExpanded: any;
|
|
60
|
+
toggleCol: any;
|
|
61
|
+
pendingRowTransitions: any;
|
|
62
|
+
decimalPlaces: any;
|
|
63
|
+
defaultValueFormat: any;
|
|
64
|
+
numberGroupSeparator: any;
|
|
65
|
+
columnDecimalOverrides: any;
|
|
66
|
+
columnFormatOverrides: any;
|
|
67
|
+
columnGroupSeparatorOverrides: any;
|
|
68
|
+
cellFormatRules: any;
|
|
69
|
+
pivotMode: any;
|
|
70
|
+
reportDef: any;
|
|
71
|
+
showReportConfigColumn?: boolean | undefined;
|
|
72
|
+
onConfigureReportLine: any;
|
|
73
|
+
detailMode: any;
|
|
74
|
+
isDetailOpenForRow: any;
|
|
75
|
+
onToggleDetail: any;
|
|
76
|
+
resolveCellDisplayValue: any;
|
|
77
|
+
editValueDisplayMode: any;
|
|
78
|
+
openSparklineDataModalRef: any;
|
|
79
|
+
rowCheckboxSelection: any;
|
|
80
|
+
selectedRowKeys: any;
|
|
81
|
+
toggleRowCheckbox: any;
|
|
82
|
+
}): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export function useColumnVirtualizer({ parentRef, table, estimateColumnWidth, serverSide, totalCenterCols, columnOverscan, stateEpoch, onHorizontalScrollMetrics, onPreciseVisibleColRange, columnVisibility, columnPinning, columnOrder, columnSizing, columns, }: {
|
|
2
|
+
parentRef: any;
|
|
3
|
+
table: any;
|
|
4
|
+
estimateColumnWidth: any;
|
|
5
|
+
serverSide?: boolean | undefined;
|
|
6
|
+
totalCenterCols?: null | undefined;
|
|
7
|
+
columnOverscan?: null | undefined;
|
|
8
|
+
stateEpoch?: number | undefined;
|
|
9
|
+
onHorizontalScrollMetrics?: null | undefined;
|
|
10
|
+
onPreciseVisibleColRange?: null | undefined;
|
|
11
|
+
columnVisibility: any;
|
|
12
|
+
columnPinning: any;
|
|
13
|
+
columnOrder: any;
|
|
14
|
+
columnSizing: any;
|
|
15
|
+
columns: any;
|
|
16
|
+
}): {
|
|
17
|
+
columnVirtualizer: import("@tanstack/virtual-core").Virtualizer<any, Element>;
|
|
18
|
+
virtualCenterCols: import("@tanstack/virtual-core").VirtualItem[];
|
|
19
|
+
centerTotalWidth: number;
|
|
20
|
+
beforeWidth: number;
|
|
21
|
+
afterWidth: number;
|
|
22
|
+
totalLayoutWidth: any;
|
|
23
|
+
leftCols: any;
|
|
24
|
+
rightCols: any;
|
|
25
|
+
centerCols: any;
|
|
26
|
+
preciseVisibleColRange: {
|
|
27
|
+
start: number;
|
|
28
|
+
end: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manages detail/drill-through panel state, requests, and caching.
|
|
3
|
+
*/
|
|
4
|
+
export function useDetailDrillThrough({ detailConfig, detailMode, viewMode, reportDef, treeConfig, rowFields, colFields, valConfigs, tableName, runtimeResponse, emitRuntimeRequest, stateEpoch, abortGeneration, sessionIdRef, clientInstanceRef, requestVersionRef, setPropsRef, profilingEnabledRef, pivotProfilerRef, profilerComponentIdRef, }: {
|
|
5
|
+
detailConfig: any;
|
|
6
|
+
detailMode: any;
|
|
7
|
+
viewMode: any;
|
|
8
|
+
reportDef: any;
|
|
9
|
+
treeConfig: any;
|
|
10
|
+
rowFields: any;
|
|
11
|
+
colFields: any;
|
|
12
|
+
valConfigs: any;
|
|
13
|
+
tableName: any;
|
|
14
|
+
runtimeResponse: any;
|
|
15
|
+
emitRuntimeRequest: any;
|
|
16
|
+
stateEpoch: any;
|
|
17
|
+
abortGeneration: any;
|
|
18
|
+
sessionIdRef: any;
|
|
19
|
+
clientInstanceRef: any;
|
|
20
|
+
requestVersionRef: any;
|
|
21
|
+
setPropsRef: any;
|
|
22
|
+
profilingEnabledRef: any;
|
|
23
|
+
pivotProfilerRef: any;
|
|
24
|
+
profilerComponentIdRef: any;
|
|
25
|
+
}): {
|
|
26
|
+
detailSurface: null;
|
|
27
|
+
setDetailSurface: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
28
|
+
toggleDetailForRowRef: import("react").RefObject<null>;
|
|
29
|
+
pendingDetailRequestRef: import("react").RefObject<null>;
|
|
30
|
+
activeDetailDisplayMode: any;
|
|
31
|
+
fetchDetailData: (detailRequest: any) => void;
|
|
32
|
+
handleCellDrillThrough: (row: any, colId: any) => void;
|
|
33
|
+
toggleDetailForRow: (row: any) => void;
|
|
34
|
+
handleDetailPageChange: (nextPage: any) => void;
|
|
35
|
+
handleDetailSort: (columnId: any, direction: any) => void;
|
|
36
|
+
handleDetailFilter: (text: any) => void;
|
|
37
|
+
handleDetailClose: () => void;
|
|
38
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useFormatState — extracts formatting/display state from DashTanstackPivot.
|
|
3
|
+
*
|
|
4
|
+
* Covers: color scale, data bars, font, decimal, number format, cell format
|
|
5
|
+
* rules, zoom, and hovered row path.
|
|
6
|
+
*/
|
|
7
|
+
export function useFormatState({ normalizedInitialDecimalPlaces, normalizedInitialDefaultValueFormat, normalizedInitialNumberGroupSeparator, }: {
|
|
8
|
+
normalizedInitialDecimalPlaces: any;
|
|
9
|
+
normalizedInitialDefaultValueFormat: any;
|
|
10
|
+
normalizedInitialNumberGroupSeparator: any;
|
|
11
|
+
}): {
|
|
12
|
+
colorScaleMode: string;
|
|
13
|
+
setColorScaleMode: (mode: any, columns?: null) => void;
|
|
14
|
+
colorScaleColumns: null;
|
|
15
|
+
setColorScaleColumns: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
16
|
+
colorPalette: string;
|
|
17
|
+
setColorPalette: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
18
|
+
dataBarsColumns: Set<any>;
|
|
19
|
+
setDataBarsColumns: import("react").Dispatch<import("react").SetStateAction<Set<any>>>;
|
|
20
|
+
dataBarMaximums: {};
|
|
21
|
+
setDataBarMaximums: (value: any) => void;
|
|
22
|
+
fontFamily: string;
|
|
23
|
+
setFontFamily: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
24
|
+
fontSize: string;
|
|
25
|
+
setFontSize: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
26
|
+
decimalPlaces: any;
|
|
27
|
+
setDecimalPlaces: import("react").Dispatch<any>;
|
|
28
|
+
defaultValueFormat: any;
|
|
29
|
+
setDefaultValueFormat: import("react").Dispatch<any>;
|
|
30
|
+
numberGroupSeparator: any;
|
|
31
|
+
setNumberGroupSeparator: import("react").Dispatch<any>;
|
|
32
|
+
columnDecimalOverrides: {};
|
|
33
|
+
setColumnDecimalOverrides: import("react").Dispatch<import("react").SetStateAction<{}>>;
|
|
34
|
+
columnFormatOverrides: {};
|
|
35
|
+
setColumnFormatOverrides: import("react").Dispatch<import("react").SetStateAction<{}>>;
|
|
36
|
+
columnGroupSeparatorOverrides: {};
|
|
37
|
+
setColumnGroupSeparatorOverrides: import("react").Dispatch<import("react").SetStateAction<{}>>;
|
|
38
|
+
cellFormatRules: {};
|
|
39
|
+
setCellFormatRules: import("react").Dispatch<import("react").SetStateAction<{}>>;
|
|
40
|
+
hoveredRowPath: null;
|
|
41
|
+
setHoveredRowPath: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
42
|
+
zoomLevel: number;
|
|
43
|
+
setZoomLevel: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
44
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export function resolvePersistedViewState(explicitView: any, savedView: any, tableName: any): any;
|
|
2
|
+
export function usePersistence(id: any, persistence: any, persistence_type: any): {
|
|
3
|
+
load: (key: any, defaultValue: any) => any;
|
|
4
|
+
save: (key: any, value: any) => void;
|
|
5
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns the interaction lifecycle shared by sidebar field zones and table
|
|
3
|
+
* headers: drag payloads, drop indicators, semantic field moves, rendered
|
|
4
|
+
* column reordering, and column pinning. The composition root supplies its
|
|
5
|
+
* persisted layout writers and table metadata explicitly through `configure`.
|
|
6
|
+
*/
|
|
7
|
+
export function usePivotFieldInteractions(): {
|
|
8
|
+
configure: (context: any) => void;
|
|
9
|
+
dragItem: null;
|
|
10
|
+
dropLine: null;
|
|
11
|
+
dragOverHeaderId: null;
|
|
12
|
+
dragOverSide: null;
|
|
13
|
+
handlePinColumn: (columnId: any, side: any) => boolean;
|
|
14
|
+
toggleAllColumnsPinned: (pinState: any) => boolean;
|
|
15
|
+
applyFieldZoneMove: ({ field, srcZone, srcIdx, targetZone, targetIdx, source, }?: {
|
|
16
|
+
srcIdx?: number | undefined;
|
|
17
|
+
targetIdx?: number | undefined;
|
|
18
|
+
source?: string | undefined;
|
|
19
|
+
}) => boolean;
|
|
20
|
+
onDragStart: (event: any, field: any, zone: any, index: any) => void;
|
|
21
|
+
onDragOver: (event: any, zone: any, index: any) => void;
|
|
22
|
+
onDrop: (event: any, targetZone: any) => void;
|
|
23
|
+
onHeaderDrop: (event: any, targetColumnId: any) => void;
|
|
24
|
+
onHeaderDragOver: (event: any, columnId: any) => void;
|
|
25
|
+
onHeaderDragEnd: () => void;
|
|
26
|
+
onHeaderKeyboardMove: (columnId: any, delta: any) => boolean;
|
|
27
|
+
onHeaderKeyboardPin: (columnId: any, side: any) => boolean;
|
|
28
|
+
};
|