serverside_pivot 0.0.91 → 0.0.96
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 -182
- package/dist/react/chunks/ContextMenu-DJuS4qTZ.mjs +198 -0
- package/dist/react/chunks/{DetailDrawer-Eb4EpVHG.mjs → DetailDrawer-DgKSC5Vu.mjs} +1 -1
- package/dist/react/chunks/{DetailSidePanel-BTcHOiKr.mjs → DetailSidePanel-CC5Dugyl.mjs} +1 -1
- package/dist/react/chunks/{DetailSurfaceContent-B3ZNKh7q.mjs → DetailSurfaceContent-CrQVHlcU.mjs} +85 -77
- package/dist/react/chunks/{ECharts2dRenderer-C3Qv0uAa.mjs → ECharts2dRenderer-46gLrUdf.mjs} +412 -410
- package/dist/react/chunks/{ECharts3dRenderer-BB_7-fOt.mjs → ECharts3dRenderer-Dg4ta5Bl.mjs} +2211 -3197
- package/dist/react/chunks/{EditSidePanel-C2cAvxlK.mjs → EditSidePanel-CkShaByb.mjs} +77 -65
- package/dist/react/chunks/{InlineDetailPanel-BXLAw1o3.mjs → InlineDetailPanel-mnwjoD0I.mjs} +1 -1
- package/dist/react/chunks/PivotCharts-MX-Z7DlR.mjs +5076 -0
- package/dist/react/chunks/{ReportEditor-D4V0ry2B.mjs → ReportEditor-U0E42xKL.mjs} +952 -631
- package/dist/react/chunks/SidebarPanel-BzRW1Kgq.mjs +3944 -0
- package/dist/react/chunks/{SparklineDetailGraph-Bu85X7OJ.mjs → SparklineDetailGraph-35Tim_8B.mjs} +88 -58
- package/dist/react/chunks/installCanvasRenderer-DRq0xpXO.mjs +21174 -0
- package/dist/react/chunks/react-CL4GbEOd.mjs +33206 -0
- package/dist/react/chunks/{xlsx.mini.min-vfxHk3Ry.mjs → xlsx.mini.min-kfIgXMVB.mjs} +5 -5
- package/dist/react/components/Charts/ChartRenderers.d.ts +5 -73
- package/dist/react/components/Charts/ChartWorkspace.d.ts +3 -34
- package/dist/react/components/Charts/ECharts2dRenderer.d.ts +2 -5
- package/dist/react/components/Charts/ECharts3dRenderer.d.ts +2 -6
- package/dist/react/components/Charts/PivotCharts.d.ts +2 -9
- package/dist/react/components/Charts/chartEnhancements.d.ts +17 -66
- package/dist/react/components/Charts/chartExportPresentation.d.ts +5 -19
- package/dist/react/components/Charts/chartMath.d.ts +4 -4
- package/dist/react/components/Charts/useChartExportMenu.d.ts +4 -12
- package/dist/react/components/DashTanstackPivot.react.d.ts +40 -0
- package/dist/react/components/Filters/ColumnFilter.d.ts +2 -12
- package/dist/react/components/Filters/DateRangeFilter.d.ts +2 -7
- package/dist/react/components/Filters/FilterPopover.d.ts +2 -13
- package/dist/react/components/Filters/MultiSelectFilter.d.ts +2 -11
- package/dist/react/components/Filters/NumericRangeFilter.d.ts +2 -7
- package/dist/react/components/Notification.d.ts +2 -6
- package/dist/react/components/PivotAppBar.d.ts +2 -2
- package/dist/react/components/PivotErrorBoundary.d.ts +11 -7
- package/dist/react/components/PivotSmallComponents.d.ts +2 -3
- package/dist/react/components/PivotWorkspaceCanvas.d.ts +2 -5
- package/dist/react/components/PivotWorkspaceControls.d.ts +4 -8
- package/dist/react/components/PivotWorkspaceShell.d.ts +4 -12
- package/dist/react/components/RuntimeDataError.d.ts +2 -7
- package/dist/react/components/ShimmerFallback.d.ts +11 -0
- package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +2 -13
- package/dist/react/components/Sidebar/ReportEditor.d.ts +7 -20
- package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +2 -13
- package/dist/react/components/Sidebar/SidebarPanel.d.ts +1 -2
- package/dist/react/components/Sidebar/ToolPanelSection.d.ts +2 -13
- package/dist/react/components/Sidebar/customCategoryUtils.d.ts +31 -62
- package/dist/react/components/Sidebar/formulaUtils.d.ts +16 -18
- package/dist/react/components/SkeletonRow.d.ts +2 -5
- package/dist/react/components/Table/ContextMenu.d.ts +2 -8
- package/dist/react/components/Table/DetailDrawer.d.ts +2 -11
- package/dist/react/components/Table/DetailSidePanel.d.ts +2 -11
- package/dist/react/components/Table/DetailSurfaceContent.d.ts +2 -11
- package/dist/react/components/Table/EditSidePanel.d.ts +2 -20
- package/dist/react/components/Table/EditableCell.d.ts +2 -28
- package/dist/react/components/Table/InlineDetailPanel.d.ts +2 -13
- package/dist/react/components/Table/PivotTableBody.d.ts +3 -3
- package/dist/react/components/Table/SparklineCell.d.ts +2 -17
- package/dist/react/components/Table/SparklineDetailGraph.d.ts +2 -5
- package/dist/react/components/Table/StatusBar.d.ts +2 -7
- package/dist/react/components/ThemedSelect.d.ts +8 -0
- package/dist/react/contexts/PivotConfigContext.d.ts +5 -33
- package/dist/react/contexts/PivotThemeContext.d.ts +8 -4
- package/dist/react/contexts/PivotValueDisplayContext.d.ts +5 -9
- package/dist/react/hooks/useChartState.d.ts +2 -71
- package/dist/react/hooks/useColumnDefs.d.ts +3 -68
- package/dist/react/hooks/useColumnVirtualizer.d.ts +1 -30
- package/dist/react/hooks/useDetailDrillThrough.d.ts +2 -36
- package/dist/react/hooks/useFilteredData.d.ts +4 -2
- package/dist/react/hooks/useFormatState.d.ts +2 -39
- package/dist/react/hooks/usePersistence.d.ts +4 -5
- package/dist/react/hooks/usePivotFieldInteractions.d.ts +2 -23
- package/dist/react/hooks/usePivotNormalization.d.ts +127 -461
- package/dist/react/hooks/usePivotRenderCounter.d.ts +2 -1
- package/dist/react/hooks/usePivotTransactions.d.ts +2 -23
- package/dist/react/hooks/useRenderHelpers.d.ts +3 -71
- package/dist/react/hooks/useReportMode.d.ts +2 -28
- package/dist/react/hooks/useRowCache.d.ts +16 -15
- package/dist/react/hooks/useRuntimeDataCommit.d.ts +2 -22
- package/dist/react/hooks/useRuntimeProfiling.d.ts +2 -13
- package/dist/react/hooks/useRuntimeTransport.d.ts +2 -18
- package/dist/react/hooks/useServerSideRowModel.d.ts +1 -50
- package/dist/react/hooks/useServerSideViewportController.d.ts +1 -64
- package/dist/react/hooks/useSidebarUI.d.ts +2 -32
- package/dist/react/hooks/useStickyStyles.d.ts +2 -23
- package/dist/react/index.mjs +15 -9
- package/dist/react/presentation/headerFormatting.d.ts +28 -11
- package/dist/react/presentation/safeCellContent.d.ts +22 -5
- package/dist/react/react.d.ts +4 -1
- package/dist/react/runtime/PivotRuntimeRoot.d.ts +1 -1
- package/dist/react/runtime/client/clientPivotTransport.d.ts +6 -1
- package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +50 -0
- package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +3 -0
- package/dist/react/runtime/client/types.d.ts +17 -0
- package/dist/react/runtime/createRuntimeCellPresentation.d.ts +2 -7
- package/dist/react/runtime/createRuntimeExportCommands.d.ts +2 -71
- package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +2 -9
- package/dist/react/runtime/displayColumnOrder.d.ts +4 -4
- package/dist/react/runtime/httpTransport.d.ts +1 -0
- package/dist/react/runtime/runtime-contract.generated.d.ts +3 -0
- package/dist/react/runtime/runtimeContract.d.ts +3 -0
- package/dist/react/runtime/runtimeDomains.d.ts +110 -0
- package/dist/react/runtime/useChartWorkspacePresentation.d.ts +2 -45
- package/dist/react/runtime/useCoreRuntime.d.ts +4 -1
- package/dist/react/runtime/useCoreRuntimeStage.d.ts +1 -1
- package/dist/react/runtime/useRuntimeCellSelection.d.ts +2 -40
- package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +7 -31
- package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +2 -13
- package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +2 -9
- package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +2 -14
- package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +2 -28
- package/dist/react/runtime/useRuntimeChartModels.d.ts +2 -62
- package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +2 -12
- package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +2 -4
- package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +2 -152
- package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +2 -7
- package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +2 -55
- package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +2 -26
- package/dist/react/runtime/useRuntimeColumnCommands.d.ts +2 -22
- package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +2 -11
- package/dist/react/runtime/useRuntimeDataRetry.d.ts +2 -12
- package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +2 -11
- package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +2 -18
- package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +2 -28
- package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +2 -35
- package/dist/react/runtime/useRuntimeEditDispatch.d.ts +2 -43
- package/dist/react/runtime/useRuntimeEditOwnership.d.ts +2 -28
- package/dist/react/runtime/useRuntimeEditPresentation.d.ts +2 -32
- package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +2 -24
- package/dist/react/runtime/useRuntimeExportState.d.ts +5 -5
- package/dist/react/runtime/useRuntimeFilterPopover.d.ts +2 -19
- package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +2 -40
- package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +2 -27
- package/dist/react/runtime/useRuntimeRequestSession.d.ts +2 -76
- package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +2 -43
- package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +2 -15
- package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +2 -28
- package/dist/react/runtime/useRuntimeRowEditing.d.ts +2 -18
- package/dist/react/runtime/useRuntimeRowSelection.d.ts +2 -14
- package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +2 -30
- package/dist/react/runtime/useRuntimeStructuralSync.d.ts +2 -61
- package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +2 -5
- package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +2 -196
- package/dist/react/runtime/useRuntimeViewportTableData.d.ts +2 -23
- package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +2 -109
- package/dist/react/utils/Icons.d.ts +2 -45
- package/dist/react/utils/chartModelBuilders.d.ts +76 -230
- package/dist/react/utils/columnOrder.d.ts +8 -12
- package/dist/react/utils/dataBars.d.ts +4 -7
- package/dist/react/utils/domEvents.d.ts +2 -1
- package/dist/react/utils/editing.d.ts +12 -47
- package/dist/react/utils/exportUtils.d.ts +30 -101
- package/dist/react/utils/fieldPanelLayout.d.ts +12 -61
- package/dist/react/utils/filterOptions.d.ts +4 -4
- package/dist/react/utils/helpers.d.ts +21 -18
- package/dist/react/utils/horizontalViewport.d.ts +1 -12
- package/dist/react/utils/layoutRows.d.ts +3 -3
- package/dist/react/utils/measureAxis.d.ts +6 -22
- package/dist/react/utils/pivotLayoutUtils.d.ts +7 -2
- package/dist/react/utils/pivotProfiler.d.ts +3 -3
- package/dist/react/utils/reportEditorSelection.d.ts +1 -23
- package/dist/react/utils/rowSpanning.d.ts +3 -6
- package/dist/react/utils/savedReports.d.ts +4 -7
- package/dist/react/utils/sorting.d.ts +8 -14
- package/dist/react/utils/sparklineDetail.d.ts +5 -8
- package/dist/react/utils/sparklines.d.ts +10 -78
- package/dist/react/utils/styles.d.ts +19 -308
- package/package.json +114 -114
- package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +0 -192
- package/dist/react/chunks/PivotCharts-Bw6Swoa3.mjs +0 -4252
- package/dist/react/chunks/SidebarPanel-xO59p_2o.mjs +0 -3339
- package/dist/react/chunks/installCanvasRenderer-B7sfDGoL.mjs +0 -21281
- package/dist/react/chunks/react-CPZZxtSo.mjs +0 -26999
|
@@ -12,74 +12,6 @@
|
|
|
12
12
|
* styles, rowHeight,
|
|
13
13
|
* hoveredHeaderId, focusedHeaderId, theme — all are read synchronously when
|
|
14
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
|
-
|
|
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';
|
|
15
|
+
@param {any} p0 @returns {any} */
|
|
16
|
+
export function useRenderHelpers({ serverSide, selectedCells, fillRange, dragStart, theme, getStickyStyle, isDarkTheme, handleCellMouseDown, handleCellMouseEnter, handleContextMenu, handleFillMouseDown, visibleLeafColIndexMap, lastSelected, styles, getConditionalStyle, rowHeight, headerHeight: headerHeightProp, rowFields, tableRef, leftCols, centerCols, rightCols, columnPinning, sorting, sortOptions, fontFamily, fontSize, 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, dataBarVariant, colorScaleStats, cellFormatRules, resolveEditedCellMarker, resolveCellDisplayValue, editedCellEpoch, headerFormatting, getLocaleText, wrapHeaders, table, selectedRowKeys, toggleRowCheckbox, rowCheckboxMode, }: any): any;
|
|
17
|
+
export function resolveHeaderRowSpan(header?: any): any;
|
|
@@ -2,31 +2,5 @@
|
|
|
2
2
|
* useReportMode — extracts report mode state from DashTanstackPivot.
|
|
3
3
|
*
|
|
4
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
|
-
};
|
|
5
|
+
@param {any} p0 @returns {any} */
|
|
6
|
+
export function useReportMode({ hasExternalViewMode, normalizedInitialViewMode, normalizeViewModeValue, normalizeLegacyPivotModeValue, hasExternalReportDef, normalizedInitialReportDef, normalizeReportDefValue, hasExternalSavedReports, normalizedInitialSavedReports, normalizeSavedReportsValue, hasExternalActiveReportId, normalizedInitialActiveReportId, normalizeActiveReportIdValue, loadPersistedState, }: any): any;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
export function useRowCache({ blockSize, maxBlocks }?: {
|
|
2
|
-
blockSize
|
|
2
|
+
blockSize?: number | undefined;
|
|
3
|
+
maxBlocks?: number | undefined;
|
|
3
4
|
}): {
|
|
4
|
-
setCurrentEpoch: (
|
|
5
|
-
getBlock: (
|
|
6
|
-
setBlockLoading: (
|
|
7
|
-
setBlockLoaded: (
|
|
8
|
-
clearCache: () =>
|
|
9
|
-
invalidateFromBlock: (
|
|
10
|
-
softInvalidateFromBlock: (
|
|
11
|
-
softInvalidateRange: (
|
|
12
|
-
pruneToRange: (
|
|
13
|
-
setPinnedRange: (
|
|
14
|
-
getRow: (
|
|
15
|
-
getLoadedBlocks: (
|
|
16
|
-
cacheVersion:
|
|
5
|
+
setCurrentEpoch: (...args: any[]) => any;
|
|
6
|
+
getBlock: (...args: any[]) => any;
|
|
7
|
+
setBlockLoading: (...args: any[]) => any;
|
|
8
|
+
setBlockLoaded: (...args: any[]) => any;
|
|
9
|
+
clearCache: (...args: any[]) => any;
|
|
10
|
+
invalidateFromBlock: (...args: any[]) => any;
|
|
11
|
+
softInvalidateFromBlock: (...args: any[]) => any;
|
|
12
|
+
softInvalidateRange: (...args: any[]) => any;
|
|
13
|
+
pruneToRange: (...args: any[]) => any;
|
|
14
|
+
setPinnedRange: (...args: any[]) => any;
|
|
15
|
+
getRow: (...args: any[]) => any;
|
|
16
|
+
getLoadedBlocks: (...args: any[]) => any;
|
|
17
|
+
cacheVersion: any;
|
|
17
18
|
blockSize: number;
|
|
18
|
-
currentEpochRef:
|
|
19
|
+
currentEpochRef: any;
|
|
19
20
|
};
|
|
@@ -2,25 +2,5 @@
|
|
|
2
2
|
* Owns freshness checks and atomic state commits for complete runtime-data
|
|
3
3
|
* envelopes. Viewport-cache and request scheduling remain with their existing
|
|
4
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
|
-
};
|
|
5
|
+
@param {any} p0 @returns {any} */
|
|
6
|
+
export function useRuntimeDataCommit({ clientInstanceRef, stateEpochRef, latestDataVersionRef, requestVersionRef, pendingDataProfilerCommitRef, finalizeTransactionHistoryResponse, hydrateVisibleEditOverlay, reconcileOptimisticCellValuesWithPayload, setFormulaErrors, setTransportDataState, layoutRevisionRef, layoutAcknowledgedManifestRef, pivotLayoutOrderRef, latestLayoutSentManifestRef, }: any): any;
|
|
@@ -4,16 +4,5 @@
|
|
|
4
4
|
* Keeping these callbacks with transport makes the transport lifecycle
|
|
5
5
|
* explicit: queue, send, and response records use the same profiler refs and
|
|
6
6
|
* cannot be created as an incidental side effect of field/edit interactions.
|
|
7
|
-
*/
|
|
8
|
-
export function useRuntimeProfiling({ detailMode, pivotProfilerRef, profilerComponentIdRef, profilingEnabledRef, tableName, viewMode, }:
|
|
9
|
-
detailMode: any;
|
|
10
|
-
pivotProfilerRef: any;
|
|
11
|
-
profilerComponentIdRef: any;
|
|
12
|
-
profilingEnabledRef: any;
|
|
13
|
-
tableName: any;
|
|
14
|
-
viewMode: any;
|
|
15
|
-
}): {
|
|
16
|
-
recordProfilerQueuedRequest: (requestMeta: any) => void;
|
|
17
|
-
recordProfilerRequestStart: (runtimeRequest: any) => void;
|
|
18
|
-
recordProfilerResponse: (response: any) => void;
|
|
19
|
-
};
|
|
7
|
+
@param {any} p0 @returns {any} */
|
|
8
|
+
export function useRuntimeProfiling({ detailMode, pivotProfilerRef, profilerComponentIdRef, profilingEnabledRef, tableName, viewMode, }: any): any;
|
|
@@ -4,21 +4,5 @@
|
|
|
4
4
|
* This hook deliberately stops at prop dispatch. Response handling, payload
|
|
5
5
|
* fetching, row-cache updates, and profiler response commits remain in their
|
|
6
6
|
* existing owners so request transport does not become a second data model.
|
|
7
|
-
*/
|
|
8
|
-
export function useRuntimeTransport({ clientInstanceRef, detailConfig, detailMode, profilingEnabledRef, recordProfilerRequestStart, sessionIdRef, setProps, tableName, treeConfig, viewMode, }:
|
|
9
|
-
clientInstanceRef: any;
|
|
10
|
-
detailConfig: any;
|
|
11
|
-
detailMode: any;
|
|
12
|
-
profilingEnabledRef: any;
|
|
13
|
-
recordProfilerRequestStart: any;
|
|
14
|
-
sessionIdRef: any;
|
|
15
|
-
setProps: any;
|
|
16
|
-
tableName: any;
|
|
17
|
-
treeConfig: any;
|
|
18
|
-
viewMode: any;
|
|
19
|
-
}): {
|
|
20
|
-
dispatchSetProps: (nextProps: any) => void;
|
|
21
|
-
emitRuntimeRequest: (kind: any, payload: any) => void;
|
|
22
|
-
normalizeOutgoingRuntimeRequest: (runtimeRequest: any) => import("../runtime/runtimeContract").RuntimeRequestV1 | null;
|
|
23
|
-
setPropsRef: import("react").RefObject<(nextProps: any) => void>;
|
|
24
|
-
};
|
|
7
|
+
@param {any} p0 @returns {any} */
|
|
8
|
+
export function useRuntimeTransport({ clientInstanceRef, detailConfig, detailMode, profilingEnabledRef, recordProfilerRequestStart, sessionIdRef, setProps, tableName, treeConfig, viewMode, }: any): any;
|
|
@@ -1,50 +1 @@
|
|
|
1
|
-
export function useServerSideRowModel({ parentRef, serverSide, rowCount, rowHeight, data, dataOffset, dataVersion, dataStateEpoch, setProps, blockSize, maxBlocksInCache, blockLoadDebounceMs, rowOverscan, prefetchColumns, estimateRowHeight, keyMapper, cacheKey, excludeGrandTotal, immersiveMode, stateEpoch, sessionId, clientInstance, tableName, abortGeneration, structuralInFlight, requestVersionRef: externalRequestVersionRef, colStart, colEnd, responseColStart, responseColEnd, needsColSchema, columnRangeUrgencyToken, onViewportRequest, layoutMode, showSubtotals, layoutRequestFields, }:
|
|
2
|
-
parentRef: any;
|
|
3
|
-
serverSide: any;
|
|
4
|
-
rowCount: any;
|
|
5
|
-
rowHeight: any;
|
|
6
|
-
data: any;
|
|
7
|
-
dataOffset?: number | undefined;
|
|
8
|
-
dataVersion?: number | undefined;
|
|
9
|
-
dataStateEpoch?: null | undefined;
|
|
10
|
-
setProps: any;
|
|
11
|
-
blockSize?: number | undefined;
|
|
12
|
-
maxBlocksInCache?: number | undefined;
|
|
13
|
-
blockLoadDebounceMs?: null | undefined;
|
|
14
|
-
rowOverscan?: null | undefined;
|
|
15
|
-
prefetchColumns?: null | undefined;
|
|
16
|
-
estimateRowHeight: any;
|
|
17
|
-
keyMapper: any;
|
|
18
|
-
cacheKey: any;
|
|
19
|
-
excludeGrandTotal?: boolean | undefined;
|
|
20
|
-
immersiveMode?: boolean | undefined;
|
|
21
|
-
stateEpoch?: number | undefined;
|
|
22
|
-
sessionId?: string | undefined;
|
|
23
|
-
clientInstance?: string | undefined;
|
|
24
|
-
tableName?: null | undefined;
|
|
25
|
-
abortGeneration?: number | undefined;
|
|
26
|
-
structuralInFlight?: boolean | undefined;
|
|
27
|
-
requestVersionRef?: null | undefined;
|
|
28
|
-
colStart?: null | undefined;
|
|
29
|
-
colEnd?: null | undefined;
|
|
30
|
-
responseColStart?: null | undefined;
|
|
31
|
-
responseColEnd?: null | undefined;
|
|
32
|
-
needsColSchema?: boolean | undefined;
|
|
33
|
-
columnRangeUrgencyToken?: number | undefined;
|
|
34
|
-
onViewportRequest?: null | undefined;
|
|
35
|
-
layoutMode?: string | undefined;
|
|
36
|
-
showSubtotals?: boolean | undefined;
|
|
37
|
-
layoutRequestFields?: null | undefined;
|
|
38
|
-
}): {
|
|
39
|
-
rowVirtualizer: import("@tanstack/virtual-core").Virtualizer<any, Element>;
|
|
40
|
-
getRow: (rowIndex: any) => any;
|
|
41
|
-
clearCache: () => void;
|
|
42
|
-
invalidateFromBlock: (blockIndex: any) => void;
|
|
43
|
-
softInvalidateFromBlock: (blockIndex: any) => void;
|
|
44
|
-
grandTotalRow: null;
|
|
45
|
-
loadedRows: any[];
|
|
46
|
-
renderedData: any;
|
|
47
|
-
renderedOffset: number;
|
|
48
|
-
requestUrgentColumnViewport: (overrideColStart: any, overrideColEnd: any) => boolean;
|
|
49
|
-
requestVisibleViewportRefresh: (overrideColStart?: null, overrideColEnd?: null, options?: {}) => boolean;
|
|
50
|
-
};
|
|
1
|
+
export function useServerSideRowModel({ parentRef, serverSide, rowCount, rowHeight, data, dataOffset, dataVersion, dataStateEpoch, setProps, blockSize, maxBlocksInCache, blockLoadDebounceMs, rowOverscan, prefetchColumns, estimateRowHeight, keyMapper, cacheKey, excludeGrandTotal, immersiveMode, stateEpoch, sessionId, clientInstance, tableName, abortGeneration, structuralInFlight, stateEpochRef, structuralPendingVersionRef, requestVersionRef: externalRequestVersionRef, colStart, colEnd, responseColStart, responseColEnd, needsColSchema, columnRangeUrgencyToken, onViewportRequest, layoutMode, showSubtotals, layoutRequestFields, }: any): any;
|
|
@@ -1,64 +1 @@
|
|
|
1
|
-
export function useServerSideViewportController({ serverSide, effectiveRowCount, responseColumns, responseColSchema, dataVersion, stateEpoch, structuralInFlight, structuralPendingVersionRef, filteredData, rowFields, colFields, schemaFallbackWidth, requestVersionRef, latestDataVersionRef, requestUrgentColumnViewportRef, coerceTransportNumber, mergeSparseColSchema, isSparseSchemaRangeLoaded, performanceConfig, }:
|
|
2
|
-
serverSide: any;
|
|
3
|
-
effectiveRowCount: any;
|
|
4
|
-
responseColumns: any;
|
|
5
|
-
responseColSchema?: null | undefined;
|
|
6
|
-
dataVersion: any;
|
|
7
|
-
stateEpoch: any;
|
|
8
|
-
structuralInFlight: any;
|
|
9
|
-
structuralPendingVersionRef: any;
|
|
10
|
-
filteredData: any;
|
|
11
|
-
rowFields: any;
|
|
12
|
-
colFields: any;
|
|
13
|
-
schemaFallbackWidth?: number | undefined;
|
|
14
|
-
requestVersionRef: any;
|
|
15
|
-
latestDataVersionRef: any;
|
|
16
|
-
requestUrgentColumnViewportRef?: null | undefined;
|
|
17
|
-
coerceTransportNumber: any;
|
|
18
|
-
mergeSparseColSchema: any;
|
|
19
|
-
isSparseSchemaRangeLoaded: any;
|
|
20
|
-
performanceConfig?: null | undefined;
|
|
21
|
-
}): {
|
|
22
|
-
cachedColSchema: null;
|
|
23
|
-
colRequestEnd: number | null;
|
|
24
|
-
colRequestStart: number | null;
|
|
25
|
-
colRequestEndRef: import("react").RefObject<null>;
|
|
26
|
-
colRequestStartRef: import("react").RefObject<null>;
|
|
27
|
-
colSchemaEpochRef: import("react").RefObject<number>;
|
|
28
|
-
columnRangeUrgencyToken: number;
|
|
29
|
-
handleHorizontalScrollMetrics: (metrics: any) => void;
|
|
30
|
-
isHorizontalColumnRequestPending: boolean;
|
|
31
|
-
isRequestPending: boolean;
|
|
32
|
-
latestRequestedColumnWindowRef: import("react").RefObject<{
|
|
33
|
-
start: null;
|
|
34
|
-
end: null;
|
|
35
|
-
}>;
|
|
36
|
-
latestRequestedViewportRef: import("react").RefObject<null>;
|
|
37
|
-
markRequestPending: (requestMeta: any) => void;
|
|
38
|
-
resolvePendingRequest: (requestMeta: any) => boolean;
|
|
39
|
-
needsColSchema: boolean;
|
|
40
|
-
needsColSchemaRef: import("react").RefObject<boolean>;
|
|
41
|
-
pendingHorizontalColumnCount: number;
|
|
42
|
-
resetVisibleColRange: (visibleCountHint?: null) => void;
|
|
43
|
-
responseSchemaWindow: {
|
|
44
|
-
start: null;
|
|
45
|
-
end: null;
|
|
46
|
-
} | {
|
|
47
|
-
start: number;
|
|
48
|
-
end: number;
|
|
49
|
-
};
|
|
50
|
-
resolveStableRequestedColumnWindow: () => {
|
|
51
|
-
start: null;
|
|
52
|
-
end: null;
|
|
53
|
-
} | {
|
|
54
|
-
start: number;
|
|
55
|
-
end: number;
|
|
56
|
-
};
|
|
57
|
-
serverSideBlockSize: number;
|
|
58
|
-
syncPreciseVisibleColRange: (nextPreciseRange: any, options?: {}) => void;
|
|
59
|
-
totalCenterCols: any;
|
|
60
|
-
visibleColRange: {
|
|
61
|
-
start: number;
|
|
62
|
-
end: number;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
1
|
+
export function useServerSideViewportController({ serverSide, effectiveRowCount, responseColumns, responseColSchema, dataVersion, stateEpoch, structuralInFlight, structuralPendingVersionRef, filteredData, rowFields, colFields, schemaFallbackWidth, requestVersionRef, latestDataVersionRef, requestUrgentColumnViewportRef, coerceTransportNumber, mergeSparseColSchema, isSparseSchemaRangeLoaded, performanceConfig, }: any): any;
|
|
@@ -3,35 +3,5 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Covers: sidebar open/width, field panel sizes, filter column, sidebar tab,
|
|
5
5
|
* floating filters, sticky headers, column search/type filter, selected columns.
|
|
6
|
-
*/
|
|
7
|
-
export function useSidebarUI({ loadPersistedState, clampSidebarWidth, externalFieldPanelSizes, normalizedInitialFieldPanelSizes, sanitizeFieldPanelSizes, DEFAULT_FIELD_PANEL_SIZES, }:
|
|
8
|
-
loadPersistedState: any;
|
|
9
|
-
clampSidebarWidth: any;
|
|
10
|
-
externalFieldPanelSizes: any;
|
|
11
|
-
normalizedInitialFieldPanelSizes: any;
|
|
12
|
-
sanitizeFieldPanelSizes: any;
|
|
13
|
-
DEFAULT_FIELD_PANEL_SIZES: any;
|
|
14
|
-
}): {
|
|
15
|
-
sidebarOpen: boolean;
|
|
16
|
-
setSidebarOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
-
sidebarWidth: any;
|
|
18
|
-
setSidebarWidth: import("react").Dispatch<any>;
|
|
19
|
-
fieldPanelSizes: any;
|
|
20
|
-
setFieldPanelSizes: import("react").Dispatch<any>;
|
|
21
|
-
activeFilterCol: null;
|
|
22
|
-
setActiveFilterCol: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
23
|
-
filterAnchorEl: null;
|
|
24
|
-
setFilterAnchorEl: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
25
|
-
sidebarTab: string;
|
|
26
|
-
setSidebarTab: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
27
|
-
showFloatingFilters: boolean;
|
|
28
|
-
setShowFloatingFilters: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
29
|
-
stickyHeaders: boolean;
|
|
30
|
-
setStickyHeaders: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
31
|
-
colSearch: string;
|
|
32
|
-
setColSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
33
|
-
colTypeFilter: string;
|
|
34
|
-
setColTypeFilter: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
35
|
-
selectedCols: Set<any>;
|
|
36
|
-
setSelectedCols: import("react").Dispatch<import("react").SetStateAction<Set<any>>>;
|
|
37
|
-
};
|
|
6
|
+
@param {any} p0 @returns {any} */
|
|
7
|
+
export function useSidebarUI({ loadPersistedState, clampSidebarWidth, externalFieldPanelSizes, normalizedInitialFieldPanelSizes, sanitizeFieldPanelSizes, DEFAULT_FIELD_PANEL_SIZES, }: any): any;
|
|
@@ -1,24 +1,3 @@
|
|
|
1
1
|
export default useStickyStyles;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
position: string;
|
|
5
|
-
left: string | undefined;
|
|
6
|
-
right: string | undefined;
|
|
7
|
-
zIndex: number;
|
|
8
|
-
background: any;
|
|
9
|
-
} | {
|
|
10
|
-
background: any;
|
|
11
|
-
};
|
|
12
|
-
getStickyStyle: (column: any, bg: any) => {
|
|
13
|
-
background: any;
|
|
14
|
-
} | {
|
|
15
|
-
boxShadow?: string | undefined;
|
|
16
|
-
borderRight?: string | undefined;
|
|
17
|
-
borderLeft?: string | undefined;
|
|
18
|
-
position: string;
|
|
19
|
-
left: string | undefined;
|
|
20
|
-
right: string | undefined;
|
|
21
|
-
zIndex: number;
|
|
22
|
-
background: any;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
2
|
+
/** @param {any} [theme] @param {any} [leftCols] @param {any} [rightCols] @returns {any} */
|
|
3
|
+
declare function useStickyStyles(theme?: any, leftCols?: any, rightCols?: any): any;
|
package/dist/react/index.mjs
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aq as s, ar as t, as as o, at as i, au as r, av as n, aw as l, ax as u, ay as c, az as m, aA as p, aB as v, aC as d, aD as C, aE as h, aF as E, aG as P, aH as T, aI as x } from "./chunks/react-CL4GbEOd.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as ClientPivotTransport,
|
|
4
4
|
t as ClientResponsePostProcessor,
|
|
5
5
|
o as ClientSqlPlanner,
|
|
6
|
-
|
|
6
|
+
i as DuckDbWasmExecutor,
|
|
7
7
|
r as HttpPivotTransport,
|
|
8
|
-
|
|
8
|
+
n as LatestViewportScheduler,
|
|
9
9
|
l as PivotWorkspace,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
m as
|
|
13
|
-
|
|
14
|
-
v as
|
|
15
|
-
|
|
10
|
+
u as buildThemeCssVars,
|
|
11
|
+
c as computeFitToWidthLayout,
|
|
12
|
+
m as formatValue,
|
|
13
|
+
p as injectThemeCssVars,
|
|
14
|
+
v as isDisplayNegative,
|
|
15
|
+
d as normalizeClientEngineKind,
|
|
16
|
+
C as normalizeExecutionMode,
|
|
17
|
+
h as resolveClientEngineKind,
|
|
18
|
+
E as resolveExecutionMode,
|
|
19
|
+
P as resolveThemeOverrides,
|
|
20
|
+
T as scaleValueForDisplay,
|
|
21
|
+
x as themes
|
|
16
22
|
};
|
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Pure header-formatting policy; deliberately independent of React state.
|
|
3
|
+
* @param {any} rawStyle
|
|
4
|
+
* @returns {Record<string, any>}
|
|
5
|
+
*/
|
|
6
|
+
export function normalizeHeaderStyle(rawStyle: any): Record<string, any>;
|
|
7
|
+
/**
|
|
8
|
+
* @param {any} value
|
|
9
|
+
* @returns {boolean}
|
|
10
|
+
*/
|
|
10
11
|
export function hasHeaderStyleKeys(value: any): boolean;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* @param {Set<string>} candidates
|
|
14
|
+
* @param {any} rawValue
|
|
15
|
+
*/
|
|
16
|
+
export function addHeaderCandidate(candidates: Set<string>, rawValue: any): void;
|
|
17
|
+
/**
|
|
18
|
+
* @param {any} rule
|
|
19
|
+
* @param {Set<string>} candidateKeys
|
|
20
|
+
* @returns {boolean}
|
|
21
|
+
*/
|
|
22
|
+
export function headerRuleTargetMatches(rule: any, candidateKeys: Set<string>): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @param {any} rule
|
|
25
|
+
* @param {any} level
|
|
26
|
+
* @param {any} headerKind
|
|
27
|
+
* @returns {boolean}
|
|
28
|
+
*/
|
|
13
29
|
export function headerRuleKindMatches(rule: any, level: any, headerKind: any): boolean;
|
|
30
|
+
export const HEADER_STYLE_CONFIG_KEYS: Set<string>;
|
|
@@ -1,16 +1,33 @@
|
|
|
1
|
+
/** @param {{ render: () => any }} props */
|
|
1
2
|
export function SafeCellContent({ render }: {
|
|
2
|
-
render: any;
|
|
3
|
+
render: () => any;
|
|
3
4
|
}): any;
|
|
4
|
-
/**
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Renderer safety boundary, independent from cell selection/runtime state.
|
|
7
|
+
* @extends {React.Component<{ resetKey?: any, children?: any }, { hasError: boolean }>}
|
|
8
|
+
*/
|
|
9
|
+
export class CellErrorBoundary extends React.Component<{
|
|
10
|
+
resetKey?: any;
|
|
11
|
+
children?: any;
|
|
12
|
+
}, {
|
|
13
|
+
hasError: boolean;
|
|
14
|
+
}, any> {
|
|
6
15
|
static getDerivedStateFromError(): {
|
|
7
16
|
hasError: boolean;
|
|
8
17
|
};
|
|
9
|
-
|
|
18
|
+
/** @param {{ resetKey?: any, children?: any }} props */
|
|
19
|
+
constructor(props: {
|
|
20
|
+
resetKey?: any;
|
|
21
|
+
children?: any;
|
|
22
|
+
});
|
|
10
23
|
state: {
|
|
11
24
|
hasError: boolean;
|
|
12
25
|
};
|
|
13
|
-
|
|
26
|
+
/** @param {{ resetKey?: any, children?: any }} prevProps */
|
|
27
|
+
componentDidUpdate(prevProps: {
|
|
28
|
+
resetKey?: any;
|
|
29
|
+
children?: any;
|
|
30
|
+
}): void;
|
|
14
31
|
render(): any;
|
|
15
32
|
}
|
|
16
33
|
import React from 'react';
|
package/dist/react/react.d.ts
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
export { PivotWorkspace } from './components/PivotWorkspace';
|
|
3
3
|
export { HttpPivotTransport, LatestViewportScheduler, type PayloadReference, type PivotTransport, } from './runtime/httpTransport';
|
|
4
4
|
export { themes, injectThemeCssVars } from './utils/styles';
|
|
5
|
+
export { resolveThemeOverrides, buildThemeCssVars } from './utils/styles';
|
|
6
|
+
export { isDisplayNegative, formatValue, scaleValueForDisplay } from './utils/helpers';
|
|
7
|
+
export { computeFitToWidthLayout } from './utils/pivotLayoutUtils';
|
|
5
8
|
export { ClientPivotTransport, DuckDbWasmExecutor, ClientSqlPlanner, ClientResponsePostProcessor, resolveExecutionMode, resolveClientEngineKind, normalizeExecutionMode, normalizeClientEngineKind, type ExecutionMode, type ClientEngineKind, type ClientRuntimeConfig, type ClientEngineTelemetry, type LogicalPivotPlan, } from './runtime/client/index';
|
|
6
9
|
export type { PivotWorkspaceProps } from './components/PivotWorkspace';
|
|
7
|
-
export type { PivotRuntimeProps, PivotThemeName, PivotValueConfig, ValConfig, FilterCondition, FilterConfig, SortConfig, ChartDefinition, } from './runtime/runtimeDomains';
|
|
10
|
+
export type { PivotRuntimeProps, PivotThemeName, PivotThemeOverrides, PivotValueConfig, ValConfig, FilterCondition, FilterConfig, SortConfig, ChartDefinition, } from './runtime/runtimeDomains';
|
|
8
11
|
export type { RuntimeRequestV1, RuntimeResponseV1, RuntimeRequestSchemaV1, RuntimeResponseSchemaV1, } from './runtime/runtimeContract';
|
|
@@ -2,6 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import type { PivotRuntimeProps } from './runtimeDomains';
|
|
3
3
|
import type { RuntimePayloadTransport } from './httpTransport';
|
|
4
4
|
/** Typed runtime composition boundary for the public Dash component. */
|
|
5
|
-
export declare function PivotRuntimeRoot(
|
|
5
|
+
export declare function PivotRuntimeRoot(props: PivotRuntimeProps & {
|
|
6
6
|
readonly payloadTransport?: RuntimePayloadTransport;
|
|
7
7
|
}): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PayloadReference, RuntimeTransportRequestOptions } from '../httpTransport';
|
|
2
|
-
import type
|
|
2
|
+
import { type JsonObject, type RuntimeRequestV1, type RuntimeResponseV1 } from '../runtimeContract';
|
|
3
3
|
import type { ClientEngineTelemetry, ClientPivotTransportInterface, ClientRuntimeConfig, DrillThroughQuery, DrillThroughResult } from './types';
|
|
4
4
|
export interface ClientPivotTransportOptions extends ClientRuntimeConfig {
|
|
5
5
|
data?: Array<{
|
|
@@ -12,6 +12,7 @@ export declare class ClientPivotTransport implements ClientPivotTransportInterfa
|
|
|
12
12
|
private config;
|
|
13
13
|
private payloadStore;
|
|
14
14
|
private exportStore;
|
|
15
|
+
private exportJobStore;
|
|
15
16
|
constructor(options?: ClientPivotTransportOptions);
|
|
16
17
|
setData(rows: Array<{
|
|
17
18
|
[key: string]: unknown;
|
|
@@ -19,8 +20,12 @@ export declare class ClientPivotTransport implements ClientPivotTransportInterfa
|
|
|
19
20
|
getData(): Array<{
|
|
20
21
|
[key: string]: unknown;
|
|
21
22
|
}>;
|
|
23
|
+
getAvailableFields(): string[];
|
|
22
24
|
updateConfig(config: Partial<ClientRuntimeConfig>): void;
|
|
23
25
|
getTelemetry(): ClientEngineTelemetry;
|
|
26
|
+
private retainExportPayload;
|
|
27
|
+
private retainExportJob;
|
|
28
|
+
private loadXlsxWriter;
|
|
24
29
|
request(request: RuntimeRequestV1, options?: RuntimeTransportRequestOptions): Promise<RuntimeResponseV1>;
|
|
25
30
|
queryDrillThrough(query: DrillThroughQuery): Promise<DrillThroughResult>;
|
|
26
31
|
fetchPayload(reference: PayloadReference, _options?: RuntimeTransportRequestOptions): Promise<JsonObject>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { type RuntimeResponseV1 } from '../runtimeContract';
|
|
2
|
+
type JsonObject = {
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
};
|
|
2
5
|
import type { ClientExecutedDataset, DrillThroughQuery, DrillThroughResult, LogicalPivotPlan } from './types';
|
|
3
6
|
export declare function evaluateSafeFormula(expression: string, context: {
|
|
4
7
|
[key: string]: unknown;
|
|
@@ -16,5 +19,52 @@ export declare class ClientResponsePostProcessor {
|
|
|
16
19
|
}>, plan: LogicalPivotPlan, query: DrillThroughQuery): DrillThroughResult;
|
|
17
20
|
static buildDetailResponse(plan: LogicalPivotPlan, executed: ClientExecutedDataset): RuntimeResponseV1;
|
|
18
21
|
static buildDrillResponse(plan: LogicalPivotPlan, executed: ClientExecutedDataset): RuntimeResponseV1;
|
|
22
|
+
static prepareExport(plan: LogicalPivotPlan, executed: ClientExecutedDataset): PreparedClientExport;
|
|
23
|
+
static buildEnvelope(plan: LogicalPivotPlan, kind: RuntimeResponseV1['kind'], status: string, payload: JsonObject, extraTopLevel?: {
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
}): RuntimeResponseV1;
|
|
19
26
|
static buildExportResponse(plan: LogicalPivotPlan, executed: ClientExecutedDataset): RuntimeResponseV1;
|
|
20
27
|
}
|
|
28
|
+
export interface ClientExportColumn {
|
|
29
|
+
key: string;
|
|
30
|
+
colId: string;
|
|
31
|
+
header: string;
|
|
32
|
+
isHierarchy: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface PreparedClientExport {
|
|
35
|
+
format: string;
|
|
36
|
+
filename: string;
|
|
37
|
+
mimeType: string;
|
|
38
|
+
content: string;
|
|
39
|
+
includeHeaders: boolean;
|
|
40
|
+
exportColumns: ClientExportColumn[];
|
|
41
|
+
headers: string[];
|
|
42
|
+
headerRows: string[][];
|
|
43
|
+
rows: unknown[][];
|
|
44
|
+
merges: Array<{
|
|
45
|
+
s: {
|
|
46
|
+
r: number;
|
|
47
|
+
c: number;
|
|
48
|
+
};
|
|
49
|
+
e: {
|
|
50
|
+
r: number;
|
|
51
|
+
c: number;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
colWidths: number[];
|
|
55
|
+
rowCount: number;
|
|
56
|
+
colCount: number;
|
|
57
|
+
}
|
|
58
|
+
export declare function buildPreparedExportPayload(prepared: PreparedClientExport, base64Data: string): JsonObject;
|
|
59
|
+
export declare class ClientExportBuilder {
|
|
60
|
+
static prepare(plan: LogicalPivotPlan, executed: ClientExecutedDataset): PreparedClientExport;
|
|
61
|
+
}
|
|
62
|
+
export declare function encodeBytesToUtf8(str: string): Uint8Array;
|
|
63
|
+
export declare function encodeBytesBase64(bytes: Uint8Array): string;
|
|
64
|
+
export declare class ClientExportResponseHelper {
|
|
65
|
+
static prepareExport(plan: LogicalPivotPlan, executed: ClientExecutedDataset): PreparedClientExport;
|
|
66
|
+
static buildEnvelope(plan: LogicalPivotPlan, kind: RuntimeResponseV1['kind'], status: string, payload: JsonObject, extraTopLevel?: {
|
|
67
|
+
[key: string]: unknown;
|
|
68
|
+
}): RuntimeResponseV1;
|
|
69
|
+
}
|
|
70
|
+
export {};
|