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
|
@@ -18,6 +18,8 @@ export declare class DuckDbWasmExecutor {
|
|
|
18
18
|
private dbInstance;
|
|
19
19
|
private dbConn;
|
|
20
20
|
private registeredTableSignature;
|
|
21
|
+
private preparedCache;
|
|
22
|
+
private cachedAvailableFields;
|
|
21
23
|
private telemetry;
|
|
22
24
|
constructor(initialRows?: Array<{
|
|
23
25
|
[key: string]: unknown;
|
|
@@ -28,6 +30,7 @@ export declare class DuckDbWasmExecutor {
|
|
|
28
30
|
getData(): Array<{
|
|
29
31
|
[key: string]: unknown;
|
|
30
32
|
}>;
|
|
33
|
+
getAvailableFields(): string[];
|
|
31
34
|
updateConfig(config: Partial<ClientRuntimeConfig>): void;
|
|
32
35
|
getTelemetry(): ClientEngineTelemetry;
|
|
33
36
|
private tryInitializeWasm;
|
|
@@ -11,9 +11,13 @@ export interface ClientRuntimeConfig {
|
|
|
11
11
|
clientRowThreshold?: number;
|
|
12
12
|
dataUrl?: string;
|
|
13
13
|
duckdbWasmCdnUrl?: string;
|
|
14
|
+
duckdbBundleUrl?: string;
|
|
14
15
|
duckdbWasmInstance?: unknown;
|
|
16
|
+
duckdbLoader?: () => Promise<unknown>;
|
|
15
17
|
legacyClientTable?: boolean;
|
|
16
18
|
tableName?: string;
|
|
19
|
+
showGrandTotal?: boolean;
|
|
20
|
+
xlsxLoader?: () => Promise<unknown>;
|
|
17
21
|
}
|
|
18
22
|
export interface ClientEngineTelemetry {
|
|
19
23
|
activeMode: 'client' | 'server';
|
|
@@ -30,6 +34,7 @@ export interface NormalizedValConfig {
|
|
|
30
34
|
agg: string;
|
|
31
35
|
id: string;
|
|
32
36
|
label: string;
|
|
37
|
+
shortLabel?: string;
|
|
33
38
|
weightField?: string;
|
|
34
39
|
windowFn?: string;
|
|
35
40
|
formula?: string;
|
|
@@ -75,6 +80,9 @@ export interface LogicalPivotPlan {
|
|
|
75
80
|
layoutMode: PivotLayoutMode;
|
|
76
81
|
showSubtotalFooters: boolean;
|
|
77
82
|
includeGrandTotal: boolean;
|
|
83
|
+
showGrandTotal?: boolean;
|
|
84
|
+
groupAllowUnbalanced?: boolean;
|
|
85
|
+
unbalancedValues?: unknown[] | null;
|
|
78
86
|
showRowTotals: boolean;
|
|
79
87
|
showColTotals: boolean;
|
|
80
88
|
grandTotalPosition: 'top' | 'bottom';
|
|
@@ -96,6 +104,13 @@ export interface LogicalPivotPlan {
|
|
|
96
104
|
absoluteSort?: boolean;
|
|
97
105
|
};
|
|
98
106
|
};
|
|
107
|
+
columnOptions?: {
|
|
108
|
+
[key: string]: {
|
|
109
|
+
sortType?: string;
|
|
110
|
+
sortKeyField?: string;
|
|
111
|
+
absoluteSort?: boolean;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
99
114
|
};
|
|
100
115
|
expandedAll: boolean;
|
|
101
116
|
expandedPaths: string[][];
|
|
@@ -162,6 +177,7 @@ export interface ClientExecutedDataset {
|
|
|
162
177
|
allRows: Array<{
|
|
163
178
|
[key: string]: unknown;
|
|
164
179
|
}>;
|
|
180
|
+
availableFields?: string[];
|
|
165
181
|
colCombinations: string[];
|
|
166
182
|
engineUsed: 'duckdb-wasm' | 'memory';
|
|
167
183
|
executionMs: number;
|
|
@@ -196,6 +212,7 @@ export interface ClientPivotTransportInterface extends PivotTransport {
|
|
|
196
212
|
setData: (rows: Array<{
|
|
197
213
|
[key: string]: unknown;
|
|
198
214
|
}>) => void;
|
|
215
|
+
getAvailableFields?: () => string[];
|
|
199
216
|
updateConfig: (config: Partial<ClientRuntimeConfig>) => void;
|
|
200
217
|
getTelemetry: () => ClientEngineTelemetry;
|
|
201
218
|
queryDrillThrough: (query: DrillThroughQuery) => Promise<DrillThroughResult>;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
/** Creates pure cell validation and conditional-format presentation helpers. */
|
|
2
|
-
export function createRuntimeCellPresentation({ conditionalFormatting }:
|
|
3
|
-
conditionalFormatting: any;
|
|
4
|
-
}): {
|
|
5
|
-
getRuleBasedStyle: (colId: any, value: any) => {};
|
|
6
|
-
validateCell: (value: any, rule: any) => boolean;
|
|
7
|
-
};
|
|
1
|
+
/** Creates pure cell validation and conditional-format presentation helpers. @param {any} p0 @returns {any} */
|
|
2
|
+
export function createRuntimeCellPresentation({ conditionalFormatting }: any): any;
|
|
@@ -4,74 +4,5 @@
|
|
|
4
4
|
* Payload construction lives in useRuntimeClipboardExportPresentation. This
|
|
5
5
|
* module owns only command flow: request IDs, cancellation, part scheduling,
|
|
6
6
|
* and the client-side XLSX/CSV fallback.
|
|
7
|
-
*/
|
|
8
|
-
export function createRuntimeExportCommands({ abortGenerationRef, activeExportRequestIdRef, buildExportStyleProfile, cancelledExportRequestIdsRef, clientInstanceRef, COPY_ROW_LIMIT, dispatchServerSideRuntimeSetProps, EXPORT_ROW_LIMIT, exportRequestSequenceRef, exportJobControllerRef, getDisplayHeaderTextForColumn, getDisplayHeaderTextStackForColumn, getDisplayRows, getExportCellDisplayValue, getExportColumns, getExportHeaderLabel, getExportRawCellValue, getServerExportColumnTarget, layoutMode, mergedHeaderSeparator, partModal, pendingCopyIntentRef, rowCount, serverSide, setExportProgress, setIsCopying, setIsExporting, setPartModal, table, tableName, theme, }:
|
|
9
|
-
abortGenerationRef: any;
|
|
10
|
-
activeExportRequestIdRef: any;
|
|
11
|
-
buildExportStyleProfile: any;
|
|
12
|
-
cancelledExportRequestIdsRef: any;
|
|
13
|
-
clientInstanceRef: any;
|
|
14
|
-
COPY_ROW_LIMIT: any;
|
|
15
|
-
dispatchServerSideRuntimeSetProps: any;
|
|
16
|
-
EXPORT_ROW_LIMIT: any;
|
|
17
|
-
exportRequestSequenceRef: any;
|
|
18
|
-
exportJobControllerRef?: {
|
|
19
|
-
current: null;
|
|
20
|
-
} | undefined;
|
|
21
|
-
getDisplayHeaderTextForColumn: any;
|
|
22
|
-
getDisplayHeaderTextStackForColumn: any;
|
|
23
|
-
getDisplayRows: any;
|
|
24
|
-
getExportCellDisplayValue: any;
|
|
25
|
-
getExportColumns: any;
|
|
26
|
-
getExportHeaderLabel: any;
|
|
27
|
-
getExportRawCellValue: any;
|
|
28
|
-
getServerExportColumnTarget: any;
|
|
29
|
-
layoutMode: any;
|
|
30
|
-
mergedHeaderSeparator: any;
|
|
31
|
-
partModal: any;
|
|
32
|
-
pendingCopyIntentRef: any;
|
|
33
|
-
rowCount: any;
|
|
34
|
-
serverSide: any;
|
|
35
|
-
setExportProgress: any;
|
|
36
|
-
setIsCopying: any;
|
|
37
|
-
setIsExporting: any;
|
|
38
|
-
setPartModal: any;
|
|
39
|
-
table: any;
|
|
40
|
-
tableName: any;
|
|
41
|
-
theme: any;
|
|
42
|
-
}): {
|
|
43
|
-
buildServerExportPayload: ({ format, includeHeaders, rowStart, rowEnd, columnTarget, styleOptions, partId, partLabel, colStart, colEnd, allRows, }: {
|
|
44
|
-
format: any;
|
|
45
|
-
includeHeaders: any;
|
|
46
|
-
rowStart: any;
|
|
47
|
-
rowEnd: any;
|
|
48
|
-
columnTarget: any;
|
|
49
|
-
styleOptions: any;
|
|
50
|
-
partId: any;
|
|
51
|
-
partLabel: any;
|
|
52
|
-
colStart?: null | undefined;
|
|
53
|
-
colEnd?: null | undefined;
|
|
54
|
-
allRows?: boolean | undefined;
|
|
55
|
-
}) => {
|
|
56
|
-
format: any;
|
|
57
|
-
includeHeaders: any;
|
|
58
|
-
table: any;
|
|
59
|
-
layout_mode: any;
|
|
60
|
-
rowStart: any;
|
|
61
|
-
rowEnd: any;
|
|
62
|
-
allRows: boolean;
|
|
63
|
-
style: any;
|
|
64
|
-
};
|
|
65
|
-
cancelActiveExportRequest: () => void;
|
|
66
|
-
copyAllRecordsToClipboard: (withHeaders?: boolean, mergedHeaders?: boolean) => void;
|
|
67
|
-
copyCurrentTableToClipboard: (withHeaders?: boolean, mergedHeaders?: boolean) => void;
|
|
68
|
-
dispatchExportPart: (rowBatch: any, colBatch: any) => void;
|
|
69
|
-
dispatchServerExportRequest: (payload: any, runtimeFields?: {}, replayRequestId?: null) => string;
|
|
70
|
-
exportPivot: (format?: string) => void;
|
|
71
|
-
getServerExportStyleIds: (columnTarget: any) => any;
|
|
72
|
-
startExportJob: (format?: string, scope?: {}) => any;
|
|
73
|
-
pollExportJob: any;
|
|
74
|
-
cancelExportJob: any;
|
|
75
|
-
retryExportJob: any;
|
|
76
|
-
dismissExportJob: any;
|
|
77
|
-
};
|
|
7
|
+
@param {any} p0 @returns {any} */
|
|
8
|
+
export function createRuntimeExportCommands({ abortGenerationRef, activeExportRequestIdRef, buildExportStyleProfile, cancelledExportRequestIdsRef, clientInstanceRef, COPY_ROW_LIMIT, dispatchServerSideRuntimeSetProps, EXPORT_ROW_LIMIT, exportRequestSequenceRef, exportJobControllerRef, getDisplayHeaderTextForColumn, getDisplayHeaderTextStackForColumn, getDisplayRows, getExportCellDisplayValue, getExportColumns, getExportHeaderLabel, getExportRawCellValue, getServerExportColumnTarget, layoutMode, mergedHeaderSeparator, partModal, pendingCopyIntentRef, rowCount, serverSide, setExportProgress, setIsCopying, setIsExporting, setPartModal, table, tableName, theme, }: any): any;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
/** Creates the single UI command that updates row pinning and emits Dash state. */
|
|
2
|
-
export function createRuntimeRowPinCommand({ requestLayoutHistoryCapture, setGrandTotalPinOverride, setProps, setRowPinningWithHistory, }:
|
|
3
|
-
requestLayoutHistoryCapture: any;
|
|
4
|
-
setGrandTotalPinOverride: any;
|
|
5
|
-
setProps: any;
|
|
6
|
-
setRowPinningWithHistory: any;
|
|
7
|
-
}): {
|
|
8
|
-
handlePinRow: (rowId: any, pinState: any) => void;
|
|
9
|
-
};
|
|
1
|
+
/** Creates the single UI command that updates row pinning and emits Dash state. @param {any} p0 @returns {any} */
|
|
2
|
+
export function createRuntimeRowPinCommand({ requestLayoutHistoryCapture, setGrandTotalPinOverride, setProps, setRowPinningWithHistory, }: any): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Rendered positional axis, including non-data gutters: left, center, right. */
|
|
2
|
-
export function getDisplayOrderedLeafColumns(table
|
|
3
|
-
/** A gutter occupies display space but cannot become a selected data cell. */
|
|
4
|
-
export function isSelectableDisplayColumn(column
|
|
1
|
+
/** Rendered positional axis, including non-data gutters: left, center, right. @param {any} [table] @returns {any} */
|
|
2
|
+
export function getDisplayOrderedLeafColumns(table?: any): any;
|
|
3
|
+
/** A gutter occupies display space but cannot become a selected data cell. @param {any} [column] @returns {any} */
|
|
4
|
+
export function isSelectableDisplayColumn(column?: any): any;
|
|
@@ -37,6 +37,9 @@ export interface ViewState {
|
|
|
37
37
|
showRowTotals?: boolean;
|
|
38
38
|
showColTotals?: boolean;
|
|
39
39
|
showSubtotals?: boolean;
|
|
40
|
+
groupAllowUnbalanced?: boolean;
|
|
41
|
+
unbalancedValues?: JsonValue[] | null;
|
|
42
|
+
showGrandTotal?: boolean | null;
|
|
40
43
|
viewMode?: string;
|
|
41
44
|
detailMode?: string;
|
|
42
45
|
treeConfig?: JsonObject | null;
|
|
@@ -30,6 +30,9 @@ export interface PivotViewStateSnapshot {
|
|
|
30
30
|
showRowTotals?: boolean;
|
|
31
31
|
showColTotals?: boolean;
|
|
32
32
|
showSubtotals?: boolean;
|
|
33
|
+
groupAllowUnbalanced?: boolean;
|
|
34
|
+
unbalancedValues?: JsonValue[] | null;
|
|
35
|
+
showGrandTotal?: boolean | null;
|
|
33
36
|
viewMode?: string;
|
|
34
37
|
detailMode?: string;
|
|
35
38
|
treeConfig?: JsonObject | null;
|
|
@@ -20,6 +20,8 @@ export interface PivotRuntimeProps {
|
|
|
20
20
|
showRowTotals?: boolean;
|
|
21
21
|
showColTotals?: boolean;
|
|
22
22
|
showSubtotals?: boolean;
|
|
23
|
+
/** Controls Grand Total row visibility in pivot, tree, and report modes. Defaults to `showColTotals` in pivot/report mode or `treeConfig.showGrandTotal` in tree mode. */
|
|
24
|
+
showGrandTotal?: boolean;
|
|
23
25
|
grandTotalPosition?: 'top' | 'bottom';
|
|
24
26
|
runtimeRequest?: PivotObject;
|
|
25
27
|
runtimeResponse?: RuntimeResponseV1 | PivotObject;
|
|
@@ -66,6 +68,25 @@ export interface PivotRuntimeProps {
|
|
|
66
68
|
sortLock?: boolean;
|
|
67
69
|
defaultTheme?: PivotThemeName;
|
|
68
70
|
theme?: PivotThemeName;
|
|
71
|
+
themeOverrides?: PivotThemeOverrides | PivotObject;
|
|
72
|
+
loadWebFonts?: boolean;
|
|
73
|
+
immersiveExitPosition?: 'top-right' | 'bottom-right' | 'hidden';
|
|
74
|
+
groupAllowUnbalanced?: boolean;
|
|
75
|
+
unbalancedValues?: readonly unknown[];
|
|
76
|
+
measureGroups?: readonly PivotObject[];
|
|
77
|
+
rowHeaderLabel?: string | ((rowFields: readonly string[]) => string);
|
|
78
|
+
valueScale?: number;
|
|
79
|
+
unitSuffix?: string;
|
|
80
|
+
/** Fits all columns into container width. Accepts `true` or `{ enabled?: boolean; minFontSize?: number }`. */
|
|
81
|
+
fitToWidth?: boolean | {
|
|
82
|
+
enabled?: boolean;
|
|
83
|
+
minFontSize?: number;
|
|
84
|
+
};
|
|
85
|
+
/** Minimum font size (px) when `fitToWidth` scales text down. Can also be set via `themeOverrides.minFontSize`. Defaults to `10`. */
|
|
86
|
+
minFontSize?: number;
|
|
87
|
+
fitMinFontSize?: number;
|
|
88
|
+
autoSizeStrategy?: 'fitGridWidth' | 'fitCellContents' | string;
|
|
89
|
+
duckdbBundleUrl?: string;
|
|
69
90
|
sortEvent?: PivotObject;
|
|
70
91
|
availableFieldList?: readonly string[];
|
|
71
92
|
sparklineFields?: PivotObject;
|
|
@@ -83,6 +104,7 @@ export interface PivotRuntimeRow {
|
|
|
83
104
|
}
|
|
84
105
|
export type PivotThemeName = 'flash' | 'dark' | 'bloomberg_black' | 'bloomberg' | 'light' | 'material' | 'balham' | 'strata' | 'crystal' | 'alabaster' | 'satin' | (string & {});
|
|
85
106
|
export interface ValConfig {
|
|
107
|
+
id?: string;
|
|
86
108
|
field?: string;
|
|
87
109
|
agg?: 'sum' | 'avg' | 'count' | 'min' | 'max' | 'weighted_avg' | 'wavg' | 'weighted_mean' | 'array_agg' | 'formula' | (string & {});
|
|
88
110
|
weightField?: string;
|
|
@@ -92,6 +114,11 @@ export interface ValConfig {
|
|
|
92
114
|
separator?: string;
|
|
93
115
|
formula?: string;
|
|
94
116
|
label?: string;
|
|
117
|
+
/** Compact header label used when the column is narrow (`< 80px` or narrower than full header label). */
|
|
118
|
+
shortLabel?: string;
|
|
119
|
+
headerGroup?: string;
|
|
120
|
+
valueScale?: number;
|
|
121
|
+
unitSuffix?: string;
|
|
95
122
|
formulaRef?: string;
|
|
96
123
|
formulaScope?: 'measures' | 'columns';
|
|
97
124
|
headerStyle?: React.CSSProperties | PivotObject;
|
|
@@ -101,6 +128,81 @@ export interface ValConfig {
|
|
|
101
128
|
sparkline?: boolean | PivotObject;
|
|
102
129
|
[key: string]: unknown;
|
|
103
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Theme token overrides accepted by `themeOverrides`.
|
|
133
|
+
*
|
|
134
|
+
* Surface mapping:
|
|
135
|
+
* - Grid & chrome: `pageBg` / `background` (outer frame), `surfaceBg` (default cells), `headerBg` (top bar & regular column headers), `headerGroupBg` / `headerGroupText` (multi-level group headers, falling back to `headerSubtleBg` / `headerBg`).
|
|
136
|
+
* - Row-header / hierarchy column: `hierarchyBg` drives the `hierarchy` column header and body fallback; derives from overridden `headerSubtleBg` / `headerBg` / `surfaceInset` or `primary` when not explicitly set.
|
|
137
|
+
* - Body rows: `groupBg` / `groupText` / `groupFontWeight` (depth arrays or single values for parent/group rows) and `leafBg` / `leafFontWeight` (leaf rows).
|
|
138
|
+
* - Totals & pinned Grand Total: `totalBg` / `totalText` style subtotals & total columns; `totalBgStrong` / `totalTextStrong` style the pinned/summary Grand Total row (deriving from overridden `totalBg` / `totalText` when not explicitly set).
|
|
139
|
+
* - Headers & fitting: `headerWrap` (wraps on spaces), `headerControls` (`'always' | 'hover' | 'never'`), `showAbsoluteSortBadge`, `fontSize`, `minFontSize`.
|
|
140
|
+
*/
|
|
141
|
+
export interface PivotThemeOverrides {
|
|
142
|
+
/** Outer brand accent & sort/focus border highlight. */
|
|
143
|
+
primary?: string;
|
|
144
|
+
border?: string;
|
|
145
|
+
borderStrong?: string;
|
|
146
|
+
pageBg?: string;
|
|
147
|
+
background?: string;
|
|
148
|
+
surfaceBg?: string;
|
|
149
|
+
surfaceMuted?: string;
|
|
150
|
+
surfaceInset?: string;
|
|
151
|
+
sidebarBg?: string;
|
|
152
|
+
/** Column header & app-bar background; also drives `hierarchyBg` fallback when overridden. */
|
|
153
|
+
headerBg?: string;
|
|
154
|
+
headerSubtleBg?: string;
|
|
155
|
+
headerGroupBg?: string;
|
|
156
|
+
headerGroupText?: string;
|
|
157
|
+
/** Row-header (`hierarchy`) column & header background. Derives from `headerBg`/`headerSubtleBg` when omitted. */
|
|
158
|
+
hierarchyBg?: string;
|
|
159
|
+
/** Depth-indexed or scalar fill for expandable parent rows. */
|
|
160
|
+
groupBg?: string | readonly string[];
|
|
161
|
+
groupText?: string | readonly string[];
|
|
162
|
+
groupFontWeight?: number | readonly number[];
|
|
163
|
+
/** Fill and weight for leaf rows. */
|
|
164
|
+
leafBg?: string;
|
|
165
|
+
leafFontWeight?: number;
|
|
166
|
+
/** Fill and text for subtotal rows & total columns; also drives `totalBgStrong`/`totalTextStrong` when omitted. */
|
|
167
|
+
totalBg?: string;
|
|
168
|
+
totalText?: string;
|
|
169
|
+
/** Fill and text for pinned / summary Grand Total rows & group headers. */
|
|
170
|
+
totalBgStrong?: string;
|
|
171
|
+
totalTextStrong?: string;
|
|
172
|
+
totalBorder?: string;
|
|
173
|
+
totalFontWeight?: number;
|
|
174
|
+
text?: string;
|
|
175
|
+
textSec?: string;
|
|
176
|
+
textSoft?: string;
|
|
177
|
+
hover?: string;
|
|
178
|
+
hoverStrong?: string;
|
|
179
|
+
rowHoverBg?: string;
|
|
180
|
+
select?: string;
|
|
181
|
+
gridLines?: 'both' | 'horizontal' | 'vertical' | 'none';
|
|
182
|
+
rowBorder?: string;
|
|
183
|
+
columnBorder?: string;
|
|
184
|
+
fontFamily?: string;
|
|
185
|
+
numericFontFamily?: string;
|
|
186
|
+
fontSize?: number | string;
|
|
187
|
+
/** Minimum font size (px) when `fitToWidth` scales text down. Defaults to `10`. */
|
|
188
|
+
minFontSize?: number;
|
|
189
|
+
fitMinFontSize?: number;
|
|
190
|
+
headerFontSize?: number | string;
|
|
191
|
+
headerGroupFontSize?: number | string;
|
|
192
|
+
headerLineHeight?: number | string;
|
|
193
|
+
headerWrap?: boolean;
|
|
194
|
+
headerControls?: 'always' | 'hover' | 'never';
|
|
195
|
+
/** Explicitly show or hide the `|x|` absolute-sort badge; defaults to following `headerControls`. */
|
|
196
|
+
showAbsoluteSortBadge?: boolean;
|
|
197
|
+
showSortPriority?: boolean;
|
|
198
|
+
sortIndicator?: 'arrow' | 'none' | string;
|
|
199
|
+
cellPaddingX?: number | string;
|
|
200
|
+
headerPaddingX?: number | string;
|
|
201
|
+
numericPaddingRight?: number | string;
|
|
202
|
+
rowHeight?: number;
|
|
203
|
+
headerHeight?: number;
|
|
204
|
+
[token: string]: unknown;
|
|
205
|
+
}
|
|
104
206
|
export type PivotValueConfig = ValConfig;
|
|
105
207
|
export interface FilterCondition {
|
|
106
208
|
type?: string;
|
|
@@ -375,6 +477,7 @@ export interface WorkspacePresentation {
|
|
|
375
477
|
readonly customDimensions: WorkspaceCollection;
|
|
376
478
|
readonly dataBarsColumns: readonly string[];
|
|
377
479
|
readonly dataBarMaximums: WorkspaceRecord;
|
|
480
|
+
readonly dataBarVariant?: 'fill' | 'underbar';
|
|
378
481
|
readonly decimalPlaces: number;
|
|
379
482
|
readonly defaultValueFormat: string;
|
|
380
483
|
readonly detailConfig: WorkspaceRecord | null;
|
|
@@ -389,6 +492,8 @@ export interface WorkspacePresentation {
|
|
|
389
492
|
readonly editValueDisplayMode: string;
|
|
390
493
|
readonly effectiveBottomRows: WorkspaceCollection;
|
|
391
494
|
readonly effectiveCenterRows: WorkspaceCollection;
|
|
495
|
+
readonly effectiveFontFamily?: string;
|
|
496
|
+
readonly effectiveFontSize?: string;
|
|
392
497
|
readonly effectiveTopRows: WorkspaceCollection;
|
|
393
498
|
readonly exportPivot: RuntimeCommand;
|
|
394
499
|
readonly exportProgress: ExportJobProgress | number | null;
|
|
@@ -432,12 +537,15 @@ export interface WorkspacePresentation {
|
|
|
432
537
|
readonly handleTransposePivot: RuntimeCommand;
|
|
433
538
|
readonly handleUndo: RuntimeCommand;
|
|
434
539
|
readonly hasComparedValues: boolean;
|
|
540
|
+
readonly headerHeight?: number;
|
|
435
541
|
readonly id: string | null;
|
|
542
|
+
readonly immersiveExitPosition?: 'top-right' | 'bottom-right' | 'hidden';
|
|
436
543
|
readonly immersiveMode: boolean;
|
|
437
544
|
readonly immersiveModeHovering: boolean;
|
|
438
545
|
readonly isCopying: boolean;
|
|
439
546
|
readonly isExporting: boolean;
|
|
440
547
|
readonly isRequestPending: boolean;
|
|
548
|
+
readonly loadWebFonts?: boolean;
|
|
441
549
|
readonly runtimeDataError: {
|
|
442
550
|
readonly retrying: boolean;
|
|
443
551
|
readonly failedRequest: {
|
|
@@ -512,6 +620,7 @@ export interface WorkspacePresentation {
|
|
|
512
620
|
readonly setCustomDimensions: RuntimeCommand;
|
|
513
621
|
readonly setDataBarsColumns: RuntimeCommand;
|
|
514
622
|
readonly setDataBarMaximums: RuntimeCommand;
|
|
623
|
+
readonly setDataBarVariant?: RuntimeCommand;
|
|
515
624
|
readonly setDecimalPlaces: RuntimeCommand;
|
|
516
625
|
readonly setDefaultValueFormat: RuntimeCommand;
|
|
517
626
|
readonly setDetailSurface: RuntimeCommand;
|
|
@@ -576,6 +685,7 @@ export interface WorkspacePresentation {
|
|
|
576
685
|
readonly table: object;
|
|
577
686
|
readonly tableCanvasSize: number;
|
|
578
687
|
readonly theme: WorkspaceRecord;
|
|
688
|
+
readonly themeCssVars?: React.CSSProperties;
|
|
579
689
|
readonly themeName: string;
|
|
580
690
|
readonly themeOverrides: WorkspaceRecord;
|
|
581
691
|
readonly toggleAllColumnsPinned: RuntimeCommand;
|
|
@@ -3,48 +3,5 @@
|
|
|
3
3
|
* render callbacks consumed by the workspace shell. The caller supplies the
|
|
4
4
|
* chart model and commands as named dependencies; no legacy runtime bag is
|
|
5
5
|
* passed into this hook.
|
|
6
|
-
*/
|
|
7
|
-
export function useChartWorkspacePresentation({ activateChartCategory, chartCanvasLayoutRef, chartCanvasPaneModels, chartCanvasPanes, chartModal, chartModalPosition, chartPaneDataById, handleRemoveChartCanvasPane, handleStartChartCanvasPaneFloatingDrag, handleStartChartCanvasPaneFloatingResize, handleToggleChartCanvasPaneFloating, handleToggleChartCanvasPaneLock, serverSide, setChartCanvasPaneWidthHints, setChartModal, setChartModalPosition, theme, updateChartCanvasPane, visibleLeafColumns, }:
|
|
8
|
-
activateChartCategory: any;
|
|
9
|
-
chartCanvasLayoutRef: any;
|
|
10
|
-
chartCanvasPaneModels: any;
|
|
11
|
-
chartCanvasPanes: any;
|
|
12
|
-
chartModal: any;
|
|
13
|
-
chartModalPosition: any;
|
|
14
|
-
chartPaneDataById: any;
|
|
15
|
-
handleRemoveChartCanvasPane: any;
|
|
16
|
-
handleStartChartCanvasPaneFloatingDrag: any;
|
|
17
|
-
handleStartChartCanvasPaneFloatingResize: any;
|
|
18
|
-
handleToggleChartCanvasPaneFloating: any;
|
|
19
|
-
handleToggleChartCanvasPaneLock: any;
|
|
20
|
-
serverSide: any;
|
|
21
|
-
setChartCanvasPaneWidthHints: any;
|
|
22
|
-
setChartModal: any;
|
|
23
|
-
setChartModalPosition: any;
|
|
24
|
-
theme: any;
|
|
25
|
-
updateChartCanvasPane: any;
|
|
26
|
-
visibleLeafColumns: any;
|
|
27
|
-
}): {
|
|
28
|
-
chartWorkspacePanes: {
|
|
29
|
-
docked: any[];
|
|
30
|
-
floating: any[];
|
|
31
|
-
dockedByPosition: {
|
|
32
|
-
left: never[];
|
|
33
|
-
right: never[];
|
|
34
|
-
top: never[];
|
|
35
|
-
bottom: never[];
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
dockedChartCanvasPanesByPosition: {
|
|
39
|
-
left: never[];
|
|
40
|
-
right: never[];
|
|
41
|
-
top: never[];
|
|
42
|
-
bottom: never[];
|
|
43
|
-
};
|
|
44
|
-
floatingChartCanvasPanes: any[];
|
|
45
|
-
handleChartCanvasPaneWidthHintChange: (paneId: any, nextWidthHint?: null) => void;
|
|
46
|
-
renderChartCanvasPane: (pane: any, normalizedDockPosition: any) => React.JSX.Element;
|
|
47
|
-
renderChartWorkspaceModal: (position: any) => React.JSX.Element | null;
|
|
48
|
-
renderFloatingChartCanvasPane: (pane: any) => React.JSX.Element;
|
|
49
|
-
};
|
|
50
|
-
import React from 'react';
|
|
6
|
+
@param {any} p0 @returns {any} */
|
|
7
|
+
export function useChartWorkspacePresentation({ activateChartCategory, chartCanvasLayoutRef, chartCanvasPaneModels, chartCanvasPanes, chartModal, chartModalPosition, chartPaneDataById, handleRemoveChartCanvasPane, handleStartChartCanvasPaneFloatingDrag, handleStartChartCanvasPaneFloatingResize, handleToggleChartCanvasPaneFloating, handleToggleChartCanvasPaneLock, serverSide, setChartCanvasPaneWidthHints, setChartModal, setChartModalPosition, theme, updateChartCanvasPane, visibleLeafColumns, }: any): any;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { RuntimePayloadTransport } from './httpTransport';
|
|
1
2
|
import type { CoreRuntimeDomain, PivotRuntimeProps } from './runtimeDomains';
|
|
2
3
|
/** Owns normalized configuration, React state, persistence, and stable refs. */
|
|
3
|
-
export declare function useCoreRuntime(props: PivotRuntimeProps
|
|
4
|
+
export declare function useCoreRuntime(props: PivotRuntimeProps & {
|
|
5
|
+
readonly payloadTransport?: RuntimePayloadTransport;
|
|
6
|
+
}, payloadTransport?: RuntimePayloadTransport): CoreRuntimeDomain;
|
|
@@ -2,43 +2,5 @@
|
|
|
2
2
|
* Owns cell-oriented selection: keyboard navigation, range dragging, fill,
|
|
3
3
|
* and clipboard fallback. Row selection remains a separate domain because it
|
|
4
4
|
* has different selection semantics and event ownership.
|
|
5
|
-
*/
|
|
6
|
-
export function useRuntimeCellSelection({ buildSelectedClipboardPayload, copyRichToClipboard, copyCurrentTableToClipboard, dispatchBatchUpdateRequest, dragStart, fillRange, getDisplayRows, handleRedo, handleUndo, isDragging, isFilling, isSelectAllServerRef, lastSelected, loadedRows, scrollToDisplayColumn, scrollToDisplayRow, selectedCells, serverSide, selectionScopeKey, setDragStart, setFillRange, setHoveredRowPath, setIsDragging, setIsFilling, setLastSelected, setSelectedCells, setProps, table, tableRef, }:
|
|
7
|
-
buildSelectedClipboardPayload: any;
|
|
8
|
-
copyRichToClipboard: any;
|
|
9
|
-
copyCurrentTableToClipboard: any;
|
|
10
|
-
dispatchBatchUpdateRequest: any;
|
|
11
|
-
dragStart: any;
|
|
12
|
-
fillRange: any;
|
|
13
|
-
getDisplayRows: any;
|
|
14
|
-
handleRedo: any;
|
|
15
|
-
handleUndo: any;
|
|
16
|
-
isDragging: any;
|
|
17
|
-
isFilling: any;
|
|
18
|
-
isSelectAllServerRef: any;
|
|
19
|
-
lastSelected: any;
|
|
20
|
-
loadedRows: any;
|
|
21
|
-
scrollToDisplayColumn: any;
|
|
22
|
-
scrollToDisplayRow: any;
|
|
23
|
-
selectedCells: any;
|
|
24
|
-
serverSide: any;
|
|
25
|
-
selectionScopeKey?: string | undefined;
|
|
26
|
-
setDragStart: any;
|
|
27
|
-
setFillRange: any;
|
|
28
|
-
setHoveredRowPath: any;
|
|
29
|
-
setIsDragging: any;
|
|
30
|
-
setIsFilling: any;
|
|
31
|
-
setLastSelected: any;
|
|
32
|
-
setSelectedCells: any;
|
|
33
|
-
setProps: any;
|
|
34
|
-
table: any;
|
|
35
|
-
tableRef: any;
|
|
36
|
-
}): {
|
|
37
|
-
captureAnchor: (rowIndex: any, colIndex: any) => import("./cellSelectionAnchor").CellSelectionAnchor;
|
|
38
|
-
handleCellMouseDown: (event: any, rowIndex: any, colIndex: any, rowId: any, colId: any, value: any) => void;
|
|
39
|
-
handleCellMouseEnter: (rowIndex: any, colIndex: any) => void;
|
|
40
|
-
handleFillMouseDown: (event: any) => void;
|
|
41
|
-
handleFillMouseUp: () => void;
|
|
42
|
-
handleKeyDown: (e: any) => void;
|
|
43
|
-
selectRange: (start: any, end: any) => {};
|
|
44
|
-
};
|
|
5
|
+
@param {any} p0 @returns {any} */
|
|
6
|
+
export function useRuntimeCellSelection({ buildSelectedClipboardPayload, copyRichToClipboard, copyCurrentTableToClipboard, dispatchBatchUpdateRequest, dragStart, fillRange, getDisplayRows, handleRedo, handleUndo, isDragging, isFilling, isSelectAllServerRef, lastSelected, loadedRows, scrollToDisplayColumn, scrollToDisplayRow, selectedCells, serverSide, selectionScopeKey, setDragStart, setFillRange, setHoveredRowPath, setIsDragging, setIsFilling, setLastSelected, setSelectedCells, setProps, table, tableRef, }: any): any;
|
|
@@ -2,35 +2,11 @@
|
|
|
2
2
|
* Owns the chart-canvas pane lifecycle. It deliberately receives state and
|
|
3
3
|
* mutators explicitly so chart commands cannot reach into the legacy runtime
|
|
4
4
|
* record for unrelated grid behaviour.
|
|
5
|
-
*/
|
|
5
|
+
@param {{ setTableCanvasSize: { (updater: (previousSize: any) => any): any; (val?: any): any }, [key: string]: any }} p0 @returns {any} */
|
|
6
6
|
export function useRuntimeChartCanvasCommands({ chartCanvasPanes, chartPanelAxisMode, chartPanelBarLayout, chartPanelColumnLimit, chartPanelGraphHeight, chartPanelHierarchyLevel, chartPanelInteractionMode, chartPanelLayers, chartPanelOrientation, chartPanelRowLimit, chartPanelServerScope, chartPanelSortMode, chartPanelSource, chartPanelTitle, chartPanelType, chartPanelWidth, completedChartRequestSignaturesRef, initialChartDefinition, previewChartPaneId, setChartCanvasPanes, setChartPaneDataById, setPreviewChartPaneId, setTableCanvasSize, }: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
chartPanelInteractionMode: any;
|
|
14
|
-
chartPanelLayers: any;
|
|
15
|
-
chartPanelOrientation: any;
|
|
16
|
-
chartPanelRowLimit: any;
|
|
17
|
-
chartPanelServerScope: any;
|
|
18
|
-
chartPanelSortMode: any;
|
|
19
|
-
chartPanelSource: any;
|
|
20
|
-
chartPanelTitle: any;
|
|
21
|
-
chartPanelType: any;
|
|
22
|
-
chartPanelWidth: any;
|
|
23
|
-
completedChartRequestSignaturesRef: any;
|
|
24
|
-
initialChartDefinition: any;
|
|
25
|
-
previewChartPaneId: any;
|
|
26
|
-
setChartCanvasPanes: any;
|
|
27
|
-
setChartPaneDataById: any;
|
|
28
|
-
setPreviewChartPaneId: any;
|
|
29
|
-
setTableCanvasSize: any;
|
|
30
|
-
}): {
|
|
31
|
-
handleAddChartCanvasPane: () => void;
|
|
32
|
-
handleCancelPreviewChartPane: () => void;
|
|
33
|
-
handleConfirmPreviewChartPane: () => void;
|
|
34
|
-
handleRemoveChartCanvasPane: (paneId: any) => void;
|
|
35
|
-
updateChartCanvasPane: (paneId: any, updater: any) => void;
|
|
36
|
-
};
|
|
7
|
+
setTableCanvasSize: {
|
|
8
|
+
(updater: (previousSize: any) => any): any;
|
|
9
|
+
(val?: any): any;
|
|
10
|
+
};
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}): any;
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
/** Owns the horizontal resize lifecycle for the table and docked chart panes. */
|
|
2
|
-
export function useRuntimeChartCanvasResize({ chartCanvasLayoutRef, chartCanvasPanes, chartCanvasResizeRef, chartLayoutRef, setChartCanvasPaneWidthHints, setChartCanvasPanes, setTableCanvasSize, tableCanvasSize, }:
|
|
3
|
-
chartCanvasLayoutRef: any;
|
|
4
|
-
chartCanvasPanes: any;
|
|
5
|
-
chartCanvasResizeRef: any;
|
|
6
|
-
chartLayoutRef: any;
|
|
7
|
-
setChartCanvasPaneWidthHints: any;
|
|
8
|
-
setChartCanvasPanes: any;
|
|
9
|
-
setTableCanvasSize: any;
|
|
10
|
-
tableCanvasSize: any;
|
|
11
|
-
}): {
|
|
12
|
-
handleStartChartCanvasResize: (leftKey: any, rightKey: any, event: any) => void;
|
|
13
|
-
};
|
|
1
|
+
/** Owns the horizontal resize lifecycle for the table and docked chart panes. @param {any} p0 @returns {any} */
|
|
2
|
+
export function useRuntimeChartCanvasResize({ chartCanvasLayoutRef, chartCanvasPanes, chartCanvasResizeRef, chartLayoutRef, setChartCanvasPaneWidthHints, setChartCanvasPanes, setTableCanvasSize, tableCanvasSize, }: any): any;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
/** Owns the vertical resize lifecycle for docked chart panes. */
|
|
2
|
-
export function useRuntimeChartCanvasVerticalResize({ chartCanvasLayoutRef, chartCanvasPanes, chartCanvasVerticalResizeRef, setChartCanvasPanes, }:
|
|
3
|
-
chartCanvasLayoutRef: any;
|
|
4
|
-
chartCanvasPanes: any;
|
|
5
|
-
chartCanvasVerticalResizeRef: any;
|
|
6
|
-
setChartCanvasPanes: any;
|
|
7
|
-
}): {
|
|
8
|
-
handleStartChartCanvasVerticalResize: (paneId: any, position: any, event: any) => void;
|
|
9
|
-
};
|
|
1
|
+
/** Owns the vertical resize lifecycle for docked chart panes. @param {any} p0 @returns {any} */
|
|
2
|
+
export function useRuntimeChartCanvasVerticalResize({ chartCanvasLayoutRef, chartCanvasPanes, chartCanvasVerticalResizeRef, setChartCanvasPanes, }: any): any;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
/** Owns create, duplicate, delete, and rename commands for chart definitions. */
|
|
2
|
-
export function useRuntimeChartDefinitionCommands({ activeChartDefinitionId, currentChartDefinition, initialChartDefinition, managedChartDefinitions, setActiveChartDefinitionId, setManagedChartDefinitions, }:
|
|
3
|
-
activeChartDefinitionId: any;
|
|
4
|
-
currentChartDefinition: any;
|
|
5
|
-
initialChartDefinition: any;
|
|
6
|
-
managedChartDefinitions: any;
|
|
7
|
-
setActiveChartDefinitionId: any;
|
|
8
|
-
setManagedChartDefinitions: any;
|
|
9
|
-
}): {
|
|
10
|
-
handleCreateChartDefinition: () => void;
|
|
11
|
-
handleDeleteChartDefinition: () => void;
|
|
12
|
-
handleDuplicateChartDefinition: () => void;
|
|
13
|
-
handleRenameChartDefinition: (name: any) => void;
|
|
14
|
-
};
|
|
1
|
+
/** Owns create, duplicate, delete, and rename commands for chart definitions. @param {any} p0 @returns {any} */
|
|
2
|
+
export function useRuntimeChartDefinitionCommands({ activeChartDefinitionId, currentChartDefinition, initialChartDefinition, managedChartDefinitions, setActiveChartDefinitionId, setManagedChartDefinitions, }: any): any;
|
|
@@ -1,28 +1,2 @@
|
|
|
1
|
-
/** Owns floating chart-panel and chart-canvas pane gestures plus bounds syncing. */
|
|
2
|
-
export function useRuntimeChartFloatingInteractions({ chartCanvasFloatingDragRef, chartCanvasFloatingResizeRef, chartCanvasLayoutRef, chartCanvasPanes, chartLayoutRef, chartPanelFloating, chartPanelFloatingDragRef, chartPanelFloatingRect, chartPanelFloatingResizeRef, chartPanelGraphHeight, chartPanelWidth, clampChartPanelWidth, setChartCanvasPanes, setChartPanelFloating, setChartPanelFloatingRect, setChartPanelGraphHeight, setChartPanelWidth, updateChartCanvasPane, }:
|
|
3
|
-
chartCanvasFloatingDragRef: any;
|
|
4
|
-
chartCanvasFloatingResizeRef: any;
|
|
5
|
-
chartCanvasLayoutRef: any;
|
|
6
|
-
chartCanvasPanes: any;
|
|
7
|
-
chartLayoutRef: any;
|
|
8
|
-
chartPanelFloating: any;
|
|
9
|
-
chartPanelFloatingDragRef: any;
|
|
10
|
-
chartPanelFloatingRect: any;
|
|
11
|
-
chartPanelFloatingResizeRef: any;
|
|
12
|
-
chartPanelGraphHeight: any;
|
|
13
|
-
chartPanelWidth: any;
|
|
14
|
-
clampChartPanelWidth: any;
|
|
15
|
-
setChartCanvasPanes: any;
|
|
16
|
-
setChartPanelFloating: any;
|
|
17
|
-
setChartPanelFloatingRect: any;
|
|
18
|
-
setChartPanelGraphHeight: any;
|
|
19
|
-
setChartPanelWidth: any;
|
|
20
|
-
updateChartCanvasPane: any;
|
|
21
|
-
}): {
|
|
22
|
-
handleStartChartCanvasPaneFloatingDrag: (paneId: any, event: any) => void;
|
|
23
|
-
handleStartChartCanvasPaneFloatingResize: (paneId: any, direction: any, event: any) => void;
|
|
24
|
-
handleStartChartPanelFloatingDrag: (event: any) => void;
|
|
25
|
-
handleStartChartPanelFloatingResize: (direction: any, event: any) => void;
|
|
26
|
-
handleToggleChartCanvasPaneFloating: (paneId: any) => void;
|
|
27
|
-
handleToggleChartPanelFloating: () => void;
|
|
28
|
-
};
|
|
1
|
+
/** Owns floating chart-panel and chart-canvas pane gestures plus bounds syncing. @param {any} p0 @returns {any} */
|
|
2
|
+
export function useRuntimeChartFloatingInteractions({ chartCanvasFloatingDragRef, chartCanvasFloatingResizeRef, chartCanvasLayoutRef, chartCanvasPanes, chartLayoutRef, chartPanelFloating, chartPanelFloatingDragRef, chartPanelFloatingRect, chartPanelFloatingResizeRef, chartPanelGraphHeight, chartPanelWidth, clampChartPanelWidth, setChartCanvasPanes, setChartPanelFloating, setChartPanelFloatingRect, setChartPanelGraphHeight, setChartPanelWidth, updateChartCanvasPane, }: any): any;
|