serverside_pivot 0.0.91 → 0.0.95

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.
Files changed (166) hide show
  1. package/README.md +182 -182
  2. package/dist/react/chunks/{ContextMenu-Bt5_3bmD.mjs → ContextMenu-1G-o1ms9.mjs} +52 -49
  3. package/dist/react/chunks/{DetailDrawer-Eb4EpVHG.mjs → DetailDrawer-DCKIxSpW.mjs} +1 -1
  4. package/dist/react/chunks/{DetailSidePanel-BTcHOiKr.mjs → DetailSidePanel-DgUWPBQk.mjs} +1 -1
  5. package/dist/react/chunks/{DetailSurfaceContent-B3ZNKh7q.mjs → DetailSurfaceContent-BEL6xuaZ.mjs} +46 -37
  6. package/dist/react/chunks/{ECharts2dRenderer-C3Qv0uAa.mjs → ECharts2dRenderer-Dgkp9_1P.mjs} +412 -410
  7. package/dist/react/chunks/{ECharts3dRenderer-BB_7-fOt.mjs → ECharts3dRenderer-70VOp8V0.mjs} +2211 -3197
  8. package/dist/react/chunks/{EditSidePanel-C2cAvxlK.mjs → EditSidePanel-CygqVXLX.mjs} +77 -65
  9. package/dist/react/chunks/{InlineDetailPanel-BXLAw1o3.mjs → InlineDetailPanel-BUBRWdFW.mjs} +1 -1
  10. package/dist/react/chunks/{PivotCharts-Bw6Swoa3.mjs → PivotCharts-VX5-mEEp.mjs} +2206 -1396
  11. package/dist/react/chunks/{ReportEditor-D4V0ry2B.mjs → ReportEditor-B5j-CU9-.mjs} +614 -319
  12. package/dist/react/chunks/{SidebarPanel-xO59p_2o.mjs → SidebarPanel-LXUE6nPd.mjs} +1793 -1390
  13. package/dist/react/chunks/{SparklineDetailGraph-Bu85X7OJ.mjs → SparklineDetailGraph-Cfe2KcOp.mjs} +88 -58
  14. package/dist/react/chunks/installCanvasRenderer-C4h5pc1p.mjs +21174 -0
  15. package/dist/react/chunks/react-CDa-ADnG.mjs +31199 -0
  16. package/dist/react/chunks/{xlsx.mini.min-vfxHk3Ry.mjs → xlsx.mini.min-CzdkdH3N.mjs} +5 -5
  17. package/dist/react/components/Charts/ChartRenderers.d.ts +5 -73
  18. package/dist/react/components/Charts/ChartWorkspace.d.ts +3 -34
  19. package/dist/react/components/Charts/ECharts2dRenderer.d.ts +2 -5
  20. package/dist/react/components/Charts/ECharts3dRenderer.d.ts +2 -6
  21. package/dist/react/components/Charts/PivotCharts.d.ts +2 -9
  22. package/dist/react/components/Charts/chartEnhancements.d.ts +17 -66
  23. package/dist/react/components/Charts/chartExportPresentation.d.ts +5 -19
  24. package/dist/react/components/Charts/chartMath.d.ts +4 -4
  25. package/dist/react/components/Charts/useChartExportMenu.d.ts +4 -12
  26. package/dist/react/components/DashTanstackPivot.react.d.ts +36 -0
  27. package/dist/react/components/Filters/ColumnFilter.d.ts +2 -12
  28. package/dist/react/components/Filters/DateRangeFilter.d.ts +2 -7
  29. package/dist/react/components/Filters/FilterPopover.d.ts +2 -13
  30. package/dist/react/components/Filters/MultiSelectFilter.d.ts +2 -11
  31. package/dist/react/components/Filters/NumericRangeFilter.d.ts +2 -7
  32. package/dist/react/components/Notification.d.ts +2 -6
  33. package/dist/react/components/PivotAppBar.d.ts +2 -2
  34. package/dist/react/components/PivotErrorBoundary.d.ts +11 -7
  35. package/dist/react/components/PivotSmallComponents.d.ts +2 -3
  36. package/dist/react/components/PivotWorkspaceCanvas.d.ts +2 -5
  37. package/dist/react/components/PivotWorkspaceControls.d.ts +4 -8
  38. package/dist/react/components/PivotWorkspaceShell.d.ts +4 -12
  39. package/dist/react/components/RuntimeDataError.d.ts +2 -7
  40. package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +2 -13
  41. package/dist/react/components/Sidebar/ReportEditor.d.ts +7 -20
  42. package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +2 -13
  43. package/dist/react/components/Sidebar/SidebarPanel.d.ts +1 -2
  44. package/dist/react/components/Sidebar/ToolPanelSection.d.ts +2 -13
  45. package/dist/react/components/Sidebar/customCategoryUtils.d.ts +31 -62
  46. package/dist/react/components/Sidebar/formulaUtils.d.ts +16 -18
  47. package/dist/react/components/SkeletonRow.d.ts +2 -5
  48. package/dist/react/components/Table/ContextMenu.d.ts +2 -8
  49. package/dist/react/components/Table/DetailDrawer.d.ts +2 -11
  50. package/dist/react/components/Table/DetailSidePanel.d.ts +2 -11
  51. package/dist/react/components/Table/DetailSurfaceContent.d.ts +2 -11
  52. package/dist/react/components/Table/EditSidePanel.d.ts +2 -20
  53. package/dist/react/components/Table/EditableCell.d.ts +2 -28
  54. package/dist/react/components/Table/InlineDetailPanel.d.ts +2 -13
  55. package/dist/react/components/Table/PivotTableBody.d.ts +3 -3
  56. package/dist/react/components/Table/SparklineCell.d.ts +2 -17
  57. package/dist/react/components/Table/SparklineDetailGraph.d.ts +2 -5
  58. package/dist/react/components/Table/StatusBar.d.ts +2 -7
  59. package/dist/react/contexts/PivotConfigContext.d.ts +5 -33
  60. package/dist/react/contexts/PivotThemeContext.d.ts +7 -4
  61. package/dist/react/contexts/PivotValueDisplayContext.d.ts +5 -9
  62. package/dist/react/hooks/useChartState.d.ts +2 -71
  63. package/dist/react/hooks/useColumnDefs.d.ts +3 -68
  64. package/dist/react/hooks/useColumnVirtualizer.d.ts +1 -30
  65. package/dist/react/hooks/useDetailDrillThrough.d.ts +2 -36
  66. package/dist/react/hooks/useFilteredData.d.ts +4 -2
  67. package/dist/react/hooks/useFormatState.d.ts +2 -39
  68. package/dist/react/hooks/usePersistence.d.ts +4 -5
  69. package/dist/react/hooks/usePivotFieldInteractions.d.ts +2 -23
  70. package/dist/react/hooks/usePivotNormalization.d.ts +127 -461
  71. package/dist/react/hooks/usePivotRenderCounter.d.ts +2 -1
  72. package/dist/react/hooks/usePivotTransactions.d.ts +2 -23
  73. package/dist/react/hooks/useRenderHelpers.d.ts +3 -71
  74. package/dist/react/hooks/useReportMode.d.ts +2 -28
  75. package/dist/react/hooks/useRowCache.d.ts +16 -15
  76. package/dist/react/hooks/useRuntimeDataCommit.d.ts +2 -22
  77. package/dist/react/hooks/useRuntimeProfiling.d.ts +2 -13
  78. package/dist/react/hooks/useRuntimeTransport.d.ts +2 -18
  79. package/dist/react/hooks/useServerSideRowModel.d.ts +1 -50
  80. package/dist/react/hooks/useServerSideViewportController.d.ts +1 -64
  81. package/dist/react/hooks/useSidebarUI.d.ts +2 -32
  82. package/dist/react/hooks/useStickyStyles.d.ts +2 -23
  83. package/dist/react/index.mjs +15 -9
  84. package/dist/react/presentation/headerFormatting.d.ts +28 -11
  85. package/dist/react/presentation/safeCellContent.d.ts +22 -5
  86. package/dist/react/react.d.ts +3 -0
  87. package/dist/react/runtime/PivotRuntimeRoot.d.ts +1 -1
  88. package/dist/react/runtime/client/clientPivotTransport.d.ts +5 -1
  89. package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +50 -0
  90. package/dist/react/runtime/client/types.d.ts +5 -0
  91. package/dist/react/runtime/createRuntimeCellPresentation.d.ts +2 -7
  92. package/dist/react/runtime/createRuntimeExportCommands.d.ts +2 -71
  93. package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +2 -9
  94. package/dist/react/runtime/displayColumnOrder.d.ts +4 -4
  95. package/dist/react/runtime/httpTransport.d.ts +1 -0
  96. package/dist/react/runtime/runtime-contract.generated.d.ts +3 -0
  97. package/dist/react/runtime/runtimeContract.d.ts +3 -0
  98. package/dist/react/runtime/runtimeDomains.d.ts +18 -0
  99. package/dist/react/runtime/useChartWorkspacePresentation.d.ts +2 -45
  100. package/dist/react/runtime/useCoreRuntime.d.ts +4 -1
  101. package/dist/react/runtime/useCoreRuntimeStage.d.ts +1 -1
  102. package/dist/react/runtime/useRuntimeCellSelection.d.ts +2 -40
  103. package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +7 -31
  104. package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +2 -13
  105. package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +2 -9
  106. package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +2 -14
  107. package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +2 -28
  108. package/dist/react/runtime/useRuntimeChartModels.d.ts +2 -62
  109. package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +2 -12
  110. package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +2 -4
  111. package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +2 -152
  112. package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +2 -7
  113. package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +2 -55
  114. package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +2 -26
  115. package/dist/react/runtime/useRuntimeColumnCommands.d.ts +2 -22
  116. package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +2 -11
  117. package/dist/react/runtime/useRuntimeDataRetry.d.ts +2 -12
  118. package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +2 -11
  119. package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +2 -18
  120. package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +2 -28
  121. package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +2 -35
  122. package/dist/react/runtime/useRuntimeEditDispatch.d.ts +2 -43
  123. package/dist/react/runtime/useRuntimeEditOwnership.d.ts +2 -28
  124. package/dist/react/runtime/useRuntimeEditPresentation.d.ts +2 -32
  125. package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +2 -24
  126. package/dist/react/runtime/useRuntimeExportState.d.ts +5 -5
  127. package/dist/react/runtime/useRuntimeFilterPopover.d.ts +2 -19
  128. package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +2 -40
  129. package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +2 -27
  130. package/dist/react/runtime/useRuntimeRequestSession.d.ts +2 -76
  131. package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +2 -43
  132. package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +2 -15
  133. package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +2 -28
  134. package/dist/react/runtime/useRuntimeRowEditing.d.ts +2 -18
  135. package/dist/react/runtime/useRuntimeRowSelection.d.ts +2 -14
  136. package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +2 -30
  137. package/dist/react/runtime/useRuntimeStructuralSync.d.ts +2 -61
  138. package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +2 -5
  139. package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +2 -196
  140. package/dist/react/runtime/useRuntimeViewportTableData.d.ts +2 -23
  141. package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +2 -109
  142. package/dist/react/utils/Icons.d.ts +2 -45
  143. package/dist/react/utils/chartModelBuilders.d.ts +76 -230
  144. package/dist/react/utils/columnOrder.d.ts +8 -12
  145. package/dist/react/utils/dataBars.d.ts +3 -7
  146. package/dist/react/utils/domEvents.d.ts +1 -1
  147. package/dist/react/utils/editing.d.ts +12 -47
  148. package/dist/react/utils/exportUtils.d.ts +30 -101
  149. package/dist/react/utils/fieldPanelLayout.d.ts +12 -61
  150. package/dist/react/utils/filterOptions.d.ts +4 -4
  151. package/dist/react/utils/helpers.d.ts +16 -18
  152. package/dist/react/utils/horizontalViewport.d.ts +1 -12
  153. package/dist/react/utils/layoutRows.d.ts +3 -3
  154. package/dist/react/utils/measureAxis.d.ts +6 -22
  155. package/dist/react/utils/pivotLayoutUtils.d.ts +3 -2
  156. package/dist/react/utils/pivotProfiler.d.ts +3 -3
  157. package/dist/react/utils/reportEditorSelection.d.ts +1 -23
  158. package/dist/react/utils/rowSpanning.d.ts +3 -6
  159. package/dist/react/utils/savedReports.d.ts +4 -7
  160. package/dist/react/utils/sorting.d.ts +8 -14
  161. package/dist/react/utils/sparklineDetail.d.ts +5 -8
  162. package/dist/react/utils/sparklines.d.ts +10 -78
  163. package/dist/react/utils/styles.d.ts +19 -308
  164. package/package.json +114 -114
  165. package/dist/react/chunks/installCanvasRenderer-B7sfDGoL.mjs +0 -21281
  166. 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
- 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';
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, 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, }: 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: number;
2
+ blockSize?: number | undefined;
3
+ maxBlocks?: number | undefined;
3
4
  }): {
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;
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: import("react").RefObject<number>;
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, 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
- declare function useStickyStyles(theme: any, leftCols: any, rightCols: any): {
3
- getHeaderStickyStyle: (header: any, level: any, renderSection: string | undefined, backgroundOverride: any) => {
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;
@@ -1,16 +1,22 @@
1
- import { ap as s, aq as t, ar as o, as as n, at as r, au as i, av as l, aw as c, ax as p, ay as m, az as u, aA as v, aB as C } from "./chunks/react-CPZZxtSo.mjs";
1
+ import { ap as s, aq as t, ar as o, as as i, at as r, au as n, av as l, aw as p, ax as u, ay as c, az as m, aA as v, aB as d, aC as C, aD as h, aE as E, aF as P, aG as T, aH as x } from "./chunks/react-CDa-ADnG.mjs";
2
2
  export {
3
3
  s as ClientPivotTransport,
4
4
  t as ClientResponsePostProcessor,
5
5
  o as ClientSqlPlanner,
6
- n as DuckDbWasmExecutor,
6
+ i as DuckDbWasmExecutor,
7
7
  r as HttpPivotTransport,
8
- i as LatestViewportScheduler,
8
+ n as LatestViewportScheduler,
9
9
  l as PivotWorkspace,
10
- c as injectThemeCssVars,
11
- p as normalizeClientEngineKind,
12
- m as normalizeExecutionMode,
13
- u as resolveClientEngineKind,
14
- v as resolveExecutionMode,
15
- C as themes
10
+ p as buildThemeCssVars,
11
+ u as computeFitToWidthLayout,
12
+ c as formatValue,
13
+ m 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
- /** Pure header-formatting policy; deliberately independent of React state. */
2
- export function normalizeHeaderStyle(rawStyle: any): {
3
- background: any;
4
- color: any;
5
- } | {
6
- background?: undefined;
7
- } | {
8
- background: string;
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
- export function addHeaderCandidate(candidates: any, rawValue: any): void;
12
- export function headerRuleTargetMatches(rule: any, candidateKeys: any): boolean;
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
- /** Renderer safety boundary, independent from cell selection/runtime state. */
5
- export class CellErrorBoundary extends React.Component<any, any, any> {
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
- constructor(props: any);
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
- componentDidUpdate(prevProps: any): void;
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';
@@ -2,6 +2,9 @@
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
10
  export type { PivotRuntimeProps, PivotThemeName, PivotValueConfig, ValConfig, FilterCondition, FilterConfig, SortConfig, ChartDefinition, } from './runtime/runtimeDomains';
@@ -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({ payloadTransport, ...props }: PivotRuntimeProps & {
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 { JsonObject, RuntimeRequestV1, RuntimeResponseV1 } from '../runtimeContract';
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;
@@ -21,6 +22,9 @@ export declare class ClientPivotTransport implements ClientPivotTransportInterfa
21
22
  }>;
22
23
  updateConfig(config: Partial<ClientRuntimeConfig>): void;
23
24
  getTelemetry(): ClientEngineTelemetry;
25
+ private retainExportPayload;
26
+ private retainExportJob;
27
+ private loadXlsxWriter;
24
28
  request(request: RuntimeRequestV1, options?: RuntimeTransportRequestOptions): Promise<RuntimeResponseV1>;
25
29
  queryDrillThrough(query: DrillThroughQuery): Promise<DrillThroughResult>;
26
30
  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 {};
@@ -11,9 +11,11 @@ export interface ClientRuntimeConfig {
11
11
  clientRowThreshold?: number;
12
12
  dataUrl?: string;
13
13
  duckdbWasmCdnUrl?: string;
14
+ duckdbBundleUrl?: string;
14
15
  duckdbWasmInstance?: unknown;
15
16
  legacyClientTable?: boolean;
16
17
  tableName?: string;
18
+ xlsxLoader?: () => Promise<unknown>;
17
19
  }
18
20
  export interface ClientEngineTelemetry {
19
21
  activeMode: 'client' | 'server';
@@ -75,6 +77,9 @@ export interface LogicalPivotPlan {
75
77
  layoutMode: PivotLayoutMode;
76
78
  showSubtotalFooters: boolean;
77
79
  includeGrandTotal: boolean;
80
+ showGrandTotal?: boolean;
81
+ groupAllowUnbalanced?: boolean;
82
+ unbalancedValues?: unknown[] | null;
78
83
  showRowTotals: boolean;
79
84
  showColTotals: boolean;
80
85
  grandTotalPosition: 'top' | 'bottom';