serverside_pivot 0.0.0-stage → 0.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +165 -3
- package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +192 -0
- package/dist/react/chunks/DetailDrawer-DtsvdhO4.mjs +37 -0
- package/dist/react/chunks/DetailSidePanel-v_7iU73g.mjs +36 -0
- package/dist/react/chunks/DetailSurfaceContent-BOXVc58A.mjs +200 -0
- package/dist/react/chunks/ECharts2dRenderer-BGL_NVGU.mjs +3299 -0
- package/dist/react/chunks/ECharts3dRenderer-BF2YWlsP.mjs +21573 -0
- package/dist/react/chunks/EditSidePanel-CuvtsKTK.mjs +298 -0
- package/dist/react/chunks/InlineDetailPanel-Bmtlu3lc.mjs +41 -0
- package/dist/react/chunks/PivotCharts-CA3_0bB8.mjs +4252 -0
- package/dist/react/chunks/ReportEditor-DYBr0HDz.mjs +1726 -0
- package/dist/react/chunks/SidebarPanel-B64bhrUW.mjs +3339 -0
- package/dist/react/chunks/SparklineDetailGraph-90WjWkhg.mjs +200 -0
- package/dist/react/chunks/installCanvasRenderer-C8gE9ttC.mjs +21281 -0
- package/dist/react/chunks/react-52jgz-em.mjs +25301 -0
- package/dist/react/chunks/xlsx.mini.min-BwwnBtoK.mjs +7996 -0
- package/dist/react/components/Charts/ChartRenderers.d.ts +73 -0
- package/dist/react/components/Charts/ChartWorkspace.d.ts +38 -0
- package/dist/react/components/Charts/ECharts2dRenderer.d.ts +5 -0
- package/dist/react/components/Charts/ECharts3dRenderer.d.ts +6 -0
- package/dist/react/components/Charts/PivotCharts.d.ts +9 -0
- package/dist/react/components/Charts/chartEnhancements.d.ts +66 -0
- package/dist/react/components/Charts/chartExportPresentation.d.ts +19 -0
- package/dist/react/components/Charts/chartMath.d.ts +4 -0
- package/dist/react/components/Charts/useChartExportMenu.d.ts +12 -0
- package/dist/react/components/DashTanstackPivot.react.d.ts +365 -0
- package/dist/react/components/Filters/ColumnFilter.d.ts +13 -0
- package/dist/react/components/Filters/DateRangeFilter.d.ts +8 -0
- package/dist/react/components/Filters/FilterPopover.d.ts +14 -0
- package/dist/react/components/Filters/MultiSelectFilter.d.ts +12 -0
- package/dist/react/components/Filters/NumericRangeFilter.d.ts +8 -0
- package/dist/react/components/Notification.d.ts +7 -0
- package/dist/react/components/PivotAppBar.d.ts +2 -0
- package/dist/react/components/PivotErrorBoundary.d.ts +15 -0
- package/dist/react/components/PivotSmallComponents.d.ts +6 -0
- package/dist/react/components/PivotWorkspace.d.ts +19 -0
- package/dist/react/components/PivotWorkspaceCanvas.d.ts +5 -0
- package/dist/react/components/PivotWorkspaceControls.d.ts +12 -0
- package/dist/react/components/PivotWorkspaceShell.d.ts +12 -0
- package/dist/react/components/RuntimeDataError.d.ts +7 -0
- package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +14 -0
- package/dist/react/components/Sidebar/ReportEditor.d.ts +21 -0
- package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +14 -0
- package/dist/react/components/Sidebar/SidebarPanel.d.ts +2 -0
- package/dist/react/components/Sidebar/ToolPanelSection.d.ts +14 -0
- package/dist/react/components/Sidebar/customCategoryUtils.d.ts +62 -0
- package/dist/react/components/Sidebar/formulaUtils.d.ts +22 -0
- package/dist/react/components/SkeletonRow.d.ts +6 -0
- package/dist/react/components/Table/ContextMenu.d.ts +9 -0
- package/dist/react/components/Table/DetailDrawer.d.ts +12 -0
- package/dist/react/components/Table/DetailSidePanel.d.ts +12 -0
- package/dist/react/components/Table/DetailSurfaceContent.d.ts +12 -0
- package/dist/react/components/Table/EditSidePanel.d.ts +21 -0
- package/dist/react/components/Table/EditableCell.d.ts +29 -0
- package/dist/react/components/Table/InlineDetailPanel.d.ts +14 -0
- package/dist/react/components/Table/PivotTableBody.d.ts +9 -0
- package/dist/react/components/Table/SparklineCell.d.ts +17 -0
- package/dist/react/components/Table/SparklineDetailGraph.d.ts +5 -0
- package/dist/react/components/Table/StatusBar.d.ts +8 -0
- package/dist/react/contexts/PivotConfigContext.d.ts +34 -0
- package/dist/react/contexts/PivotThemeContext.d.ts +7 -0
- package/dist/react/contexts/PivotValueDisplayContext.d.ts +10 -0
- package/dist/react/hooks/useCellInteraction.d.ts +31 -0
- package/dist/react/hooks/useChartState.d.ts +76 -0
- package/dist/react/hooks/useColumnDefs.d.ts +82 -0
- package/dist/react/hooks/useColumnVirtualizer.d.ts +30 -0
- package/dist/react/hooks/useDetailDrillThrough.d.ts +38 -0
- package/dist/react/hooks/useFilteredData.d.ts +2 -0
- package/dist/react/hooks/useFormatState.d.ts +44 -0
- package/dist/react/hooks/usePersistence.d.ts +5 -0
- package/dist/react/hooks/usePivotFieldInteractions.d.ts +28 -0
- package/dist/react/hooks/usePivotNormalization.d.ts +473 -0
- package/dist/react/hooks/usePivotRenderCounter.d.ts +1 -0
- package/dist/react/hooks/usePivotTransactions.d.ts +29 -0
- package/dist/react/hooks/useRenderHelpers.d.ts +85 -0
- package/dist/react/hooks/useReportMode.d.ts +32 -0
- package/dist/react/hooks/useRowCache.d.ts +19 -0
- package/dist/react/hooks/useRuntimeDataCommit.d.ts +26 -0
- package/dist/react/hooks/useRuntimeProfiling.d.ts +19 -0
- package/dist/react/hooks/useRuntimeTransport.d.ts +24 -0
- package/dist/react/hooks/useServerSideRowModel.d.ts +50 -0
- package/dist/react/hooks/useServerSideViewportController.d.ts +64 -0
- package/dist/react/hooks/useSidebarUI.d.ts +37 -0
- package/dist/react/hooks/useStickyStyles.d.ts +24 -0
- package/dist/react/index.mjs +8 -0
- package/dist/react/presentation/headerFormatting.d.ts +13 -0
- package/dist/react/presentation/safeCellContent.d.ts +16 -0
- package/dist/react/react.d.ts +7 -0
- package/dist/react/runtime/PivotRuntimeRoot.d.ts +7 -0
- package/dist/react/runtime/cellSelectionAnchor.d.ts +45 -0
- package/dist/react/runtime/createRuntimeCellPresentation.d.ts +7 -0
- package/dist/react/runtime/createRuntimeExportCommands.d.ts +77 -0
- package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +9 -0
- package/dist/react/runtime/createWorkspacePresentation.d.ts +7 -0
- package/dist/react/runtime/displayColumnOrder.d.ts +4 -0
- package/dist/react/runtime/httpTransport.d.ts +65 -0
- package/dist/react/runtime/runtime-contract.generated.d.ts +48 -0
- package/dist/react/runtime/runtime-response-contract.generated.d.ts +34 -0
- package/dist/react/runtime/runtimeContract.d.ts +115 -0
- package/dist/react/runtime/runtimeDomains.d.ts +642 -0
- package/dist/react/runtime/runtimeDomains.type-test.d.ts +1 -0
- package/dist/react/runtime/runtimeResponseDedup.d.ts +36 -0
- package/dist/react/runtime/useChartWorkspacePresentation.d.ts +50 -0
- package/dist/react/runtime/useCommandRuntime.d.ts +3 -0
- package/dist/react/runtime/useCommandRuntimeStage.d.ts +1 -0
- package/dist/react/runtime/useCoreRuntime.d.ts +3 -0
- package/dist/react/runtime/useCoreRuntimeStage.d.ts +3 -0
- package/dist/react/runtime/useRuntimeCellSelection.d.ts +44 -0
- package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +36 -0
- package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +13 -0
- package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +9 -0
- package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +14 -0
- package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +28 -0
- package/dist/react/runtime/useRuntimeChartModels.d.ts +69 -0
- package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +12 -0
- package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +7 -0
- package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +159 -0
- package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +7 -0
- package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +55 -0
- package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +26 -0
- package/dist/react/runtime/useRuntimeColumnCommands.d.ts +22 -0
- package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +16 -0
- package/dist/react/runtime/useRuntimeDataRetry.d.ts +12 -0
- package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +17 -0
- package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +22 -0
- package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +28 -0
- package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +35 -0
- package/dist/react/runtime/useRuntimeEditDispatch.d.ts +47 -0
- package/dist/react/runtime/useRuntimeEditOwnership.d.ts +32 -0
- package/dist/react/runtime/useRuntimeEditPresentation.d.ts +32 -0
- package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +28 -0
- package/dist/react/runtime/useRuntimeExportState.d.ts +20 -0
- package/dist/react/runtime/useRuntimeFilterPopover.d.ts +23 -0
- package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +44 -0
- package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +27 -0
- package/dist/react/runtime/useRuntimeRequestSession.d.ts +79 -0
- package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +47 -0
- package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +15 -0
- package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +28 -0
- package/dist/react/runtime/useRuntimeRowEditing.d.ts +18 -0
- package/dist/react/runtime/useRuntimeRowSelection.d.ts +14 -0
- package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +36 -0
- package/dist/react/runtime/useRuntimeStructuralSync.d.ts +62 -0
- package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +9 -0
- package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +203 -0
- package/dist/react/runtime/useRuntimeViewportTableData.d.ts +23 -0
- package/dist/react/runtime/useTransportRuntime.d.ts +12 -0
- package/dist/react/runtime/useViewportRuntime.d.ts +3 -0
- package/dist/react/runtime/useViewportRuntimeStage.d.ts +1 -0
- package/dist/react/runtime/useWorkspaceRuntime.d.ts +3 -0
- package/dist/react/runtime/useWorkspaceRuntimeStage.d.ts +1 -0
- package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +115 -0
- package/dist/react/runtime/workspaceViewModel.d.ts +7 -0
- package/dist/react/utils/Icons.d.ts +46 -0
- package/dist/react/utils/chartModelBuilders.d.ts +236 -0
- package/dist/react/utils/columnOrder.d.ts +12 -0
- package/dist/react/utils/dataBars.d.ts +7 -0
- package/dist/react/utils/domEvents.d.ts +1 -0
- package/dist/react/utils/editing.d.ts +47 -0
- package/dist/react/utils/exportUtils.d.ts +121 -0
- package/dist/react/utils/fieldPanelLayout.d.ts +61 -0
- package/dist/react/utils/filterOptions.d.ts +4 -0
- package/dist/react/utils/formatting.d.ts +1 -0
- package/dist/react/utils/helpers.d.ts +20 -0
- package/dist/react/utils/horizontalViewport.d.ts +12 -0
- package/dist/react/utils/layoutRows.d.ts +3 -0
- package/dist/react/utils/measureAxis.d.ts +22 -0
- package/dist/react/utils/pivotLayoutUtils.d.ts +2 -0
- package/dist/react/utils/pivotProfiler.d.ts +4 -0
- package/dist/react/utils/rawTableTsv.d.ts +21 -0
- package/dist/react/utils/reportEditorSelection.d.ts +23 -0
- package/dist/react/utils/rowSpanning.d.ts +6 -0
- package/dist/react/utils/savedReports.d.ts +7 -0
- package/dist/react/utils/sorting.d.ts +14 -0
- package/dist/react/utils/sparklineDetail.d.ts +8 -0
- package/dist/react/utils/sparklines.d.ts +78 -0
- package/dist/react/utils/styles.d.ts +957 -0
- package/package.json +89 -6
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one host-neutral wire contract for the pivot runtime.
|
|
3
|
+
*
|
|
4
|
+
* The JSON schema beside this module is the cross-language source of truth.
|
|
5
|
+
* These types keep frontend producers and consumers explicit while the Python
|
|
6
|
+
* codec validates the same V1 envelope at the Dash boundary.
|
|
7
|
+
*/
|
|
8
|
+
import type { PivotRuntimeProtocolRequestV1 } from './runtime-contract.generated';
|
|
9
|
+
import type { PivotRuntimeProtocolResponseV1 } from './runtime-response-contract.generated';
|
|
10
|
+
export declare const RUNTIME_SCHEMA_VERSION: 1;
|
|
11
|
+
export declare const RUNTIME_COMMAND_KINDS: readonly ["data", "filter_options", "chart", "detail", "drill", "update", "transaction", "export"];
|
|
12
|
+
export type RuntimeCommandKind = typeof RUNTIME_COMMAND_KINDS[number];
|
|
13
|
+
export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
14
|
+
[key: string]: JsonValue;
|
|
15
|
+
};
|
|
16
|
+
export type JsonObject = {
|
|
17
|
+
[key: string]: JsonValue | undefined;
|
|
18
|
+
};
|
|
19
|
+
export interface PivotViewStateSnapshot {
|
|
20
|
+
rowFields?: string[];
|
|
21
|
+
colFields?: string[];
|
|
22
|
+
valConfigs?: JsonObject[];
|
|
23
|
+
filters?: JsonObject;
|
|
24
|
+
customDimensions?: JsonObject[];
|
|
25
|
+
measureAxis?: JsonObject;
|
|
26
|
+
sorting?: JsonObject[];
|
|
27
|
+
sortOptions?: JsonObject;
|
|
28
|
+
expanded?: boolean | JsonObject;
|
|
29
|
+
immersiveMode?: boolean;
|
|
30
|
+
showRowTotals?: boolean;
|
|
31
|
+
showColTotals?: boolean;
|
|
32
|
+
showSubtotals?: boolean;
|
|
33
|
+
viewMode?: string;
|
|
34
|
+
detailMode?: string;
|
|
35
|
+
treeConfig?: JsonObject | null;
|
|
36
|
+
detailConfig?: JsonObject | null;
|
|
37
|
+
reportDef?: JsonObject | null;
|
|
38
|
+
}
|
|
39
|
+
interface RuntimeRequestEnvelopeV1 {
|
|
40
|
+
schemaVersion: typeof RUNTIME_SCHEMA_VERSION;
|
|
41
|
+
requestId: string;
|
|
42
|
+
table?: string;
|
|
43
|
+
sessionId?: string;
|
|
44
|
+
clientInstance?: string;
|
|
45
|
+
stateEpoch?: number;
|
|
46
|
+
windowSeq?: number;
|
|
47
|
+
abortGeneration?: number;
|
|
48
|
+
cacheKey?: string;
|
|
49
|
+
state?: PivotViewStateSnapshot;
|
|
50
|
+
}
|
|
51
|
+
export type ExportRequestPayload = (JsonObject & {
|
|
52
|
+
action?: undefined;
|
|
53
|
+
jobId?: never;
|
|
54
|
+
}) | (JsonObject & {
|
|
55
|
+
action: 'start';
|
|
56
|
+
jobId?: never;
|
|
57
|
+
}) | (JsonObject & {
|
|
58
|
+
action: 'status' | 'cancel';
|
|
59
|
+
jobId: string;
|
|
60
|
+
});
|
|
61
|
+
export type RuntimeRequestV1 = RuntimeRequestEnvelopeV1 & ({
|
|
62
|
+
kind: 'export';
|
|
63
|
+
payload: ExportRequestPayload;
|
|
64
|
+
} | {
|
|
65
|
+
kind: Exclude<RuntimeCommandKind, 'export'>;
|
|
66
|
+
payload: JsonObject;
|
|
67
|
+
});
|
|
68
|
+
export type ExportJobPhase = 'queued' | 'running' | 'cancelling' | 'cancelled' | 'completed' | 'failed' | 'interrupted';
|
|
69
|
+
export type ExportJobPayload = JsonObject & {
|
|
70
|
+
jobId: string;
|
|
71
|
+
rowsWritten: number;
|
|
72
|
+
bytesWritten: number;
|
|
73
|
+
totalRows: number | null;
|
|
74
|
+
} & ({
|
|
75
|
+
phase: 'completed';
|
|
76
|
+
payloadRef: JsonObject;
|
|
77
|
+
} | {
|
|
78
|
+
phase: Exclude<ExportJobPhase, 'completed'>;
|
|
79
|
+
payloadRef?: never;
|
|
80
|
+
});
|
|
81
|
+
/** Generated directly from the canonical JSON Schema for boundary consumers. */
|
|
82
|
+
export type RuntimeRequestSchemaV1 = PivotRuntimeProtocolRequestV1;
|
|
83
|
+
export interface RuntimeResponseV1 {
|
|
84
|
+
schemaVersion: typeof RUNTIME_SCHEMA_VERSION;
|
|
85
|
+
kind: RuntimeCommandKind;
|
|
86
|
+
status: string;
|
|
87
|
+
requestId?: string;
|
|
88
|
+
table?: string;
|
|
89
|
+
sessionId?: string;
|
|
90
|
+
clientInstance?: string;
|
|
91
|
+
stateEpoch?: number;
|
|
92
|
+
windowSeq?: number;
|
|
93
|
+
message?: string;
|
|
94
|
+
payload: JsonObject;
|
|
95
|
+
profile?: JsonObject;
|
|
96
|
+
}
|
|
97
|
+
/** Generated directly from the response schema used by all host transports. */
|
|
98
|
+
export type RuntimeResponseSchemaV1 = PivotRuntimeProtocolResponseV1;
|
|
99
|
+
type RuntimeRequestInput = Record<string, unknown>;
|
|
100
|
+
export interface RuntimeRequestDefaults {
|
|
101
|
+
tableName?: string | null;
|
|
102
|
+
sessionId?: string | null;
|
|
103
|
+
clientInstance?: string | null;
|
|
104
|
+
viewMode?: string | null;
|
|
105
|
+
detailMode?: string | null;
|
|
106
|
+
treeConfig?: JsonObject | null;
|
|
107
|
+
detailConfig?: JsonObject | null;
|
|
108
|
+
profile?: boolean;
|
|
109
|
+
}
|
|
110
|
+
/** Normalize all existing client call-sites into the only emitted wire shape. */
|
|
111
|
+
export declare function createRuntimeRequest(input: RuntimeRequestInput, defaults?: RuntimeRequestDefaults): RuntimeRequestV1;
|
|
112
|
+
export declare function isRuntimeRequestV1(value: unknown): value is RuntimeRequestV1;
|
|
113
|
+
/** Runtime responses are always V1; hosts do not need version fallbacks. */
|
|
114
|
+
export declare function isRuntimeResponseV1(value: unknown): value is RuntimeResponseV1;
|
|
115
|
+
export {};
|