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,15 @@
|
|
|
1
|
+
export default PivotErrorBoundary;
|
|
2
|
+
declare class PivotErrorBoundary extends React.Component<any, any, any> {
|
|
3
|
+
static getDerivedStateFromError(error: any): {
|
|
4
|
+
hasError: boolean;
|
|
5
|
+
error: any;
|
|
6
|
+
};
|
|
7
|
+
constructor(props: any);
|
|
8
|
+
state: {
|
|
9
|
+
hasError: boolean;
|
|
10
|
+
error: null;
|
|
11
|
+
};
|
|
12
|
+
componentDidCatch(error: any, info: any): void;
|
|
13
|
+
render(): any;
|
|
14
|
+
}
|
|
15
|
+
import React from 'react';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PivotTransport } from '../runtime/httpTransport';
|
|
3
|
+
import type { PivotRuntimeProps } from '../runtime/runtimeDomains';
|
|
4
|
+
/**
|
|
5
|
+
* Framework-neutral React API. A host supplies the V1 transport; it never has
|
|
6
|
+
* to emulate Dash's callback graph or serialize row blocks through its state.
|
|
7
|
+
*/
|
|
8
|
+
export interface PivotWorkspaceProps extends Omit<PivotRuntimeProps, 'setProps' | 'runtimeRequest' | 'runtimeResponse'> {
|
|
9
|
+
readonly transport: PivotTransport;
|
|
10
|
+
readonly onStateChange?: (state: Readonly<Partial<PivotRuntimeProps>>) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Render the pivot workspace in a normal React application.
|
|
14
|
+
*
|
|
15
|
+
* `PivotRuntimeRoot` remains the shared presentation/runtime implementation
|
|
16
|
+
* during the migration, but its Dash-shaped `setProps` boundary is fulfilled
|
|
17
|
+
* locally and runtime requests travel only through `transport`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function PivotWorkspace({ transport, onStateChange, ...initialProps }: PivotWorkspaceProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Rendering-only adapters for the two workspace controls.
|
|
2
|
+
*
|
|
3
|
+
* Each adapter accepts its bounded presentation model rather than the flat
|
|
4
|
+
* compatibility record used while the runtime migration is in progress.
|
|
5
|
+
*/
|
|
6
|
+
export function PivotWorkspaceToolbar({ toolbar }: {
|
|
7
|
+
toolbar: any;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
export function PivotWorkspaceSidebar({ sidebar }: {
|
|
10
|
+
sidebar: any;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
import React from 'react';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function ExportDeliveryOverlay({ exportProgress, isCopying, theme, cancelActiveExportRequest, retryExportJob, dismissExportJob }: {
|
|
2
|
+
exportProgress: any;
|
|
3
|
+
isCopying: any;
|
|
4
|
+
theme: any;
|
|
5
|
+
cancelActiveExportRequest: any;
|
|
6
|
+
retryExportJob: any;
|
|
7
|
+
dismissExportJob: any;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
export function PivotWorkspaceShell({ workspace }: {
|
|
10
|
+
workspace: any;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
import React from 'react';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default ColumnTreeItem;
|
|
2
|
+
declare function ColumnTreeItem({ column, level, theme, styles, handlePinColumn, colSearch, selectedCols, setSelectedCols, onDrop, sectionId }: {
|
|
3
|
+
column: any;
|
|
4
|
+
level: any;
|
|
5
|
+
theme: any;
|
|
6
|
+
styles: any;
|
|
7
|
+
handlePinColumn: any;
|
|
8
|
+
colSearch: any;
|
|
9
|
+
selectedCols: any;
|
|
10
|
+
setSelectedCols: any;
|
|
11
|
+
onDrop: any;
|
|
12
|
+
sectionId: any;
|
|
13
|
+
}): React.JSX.Element | null;
|
|
14
|
+
import React from 'react';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function ReportEditor({ reportDef, setReportDef, availableFields, customDimensions, theme, data, valConfigs, colFields, setColFields, setValConfigs, savedReports, setSavedReports, activeReportId, setActiveReportId, showNotification, requestedSelection, showReportConfigColumn, setShowReportConfigColumn, }: {
|
|
2
|
+
reportDef: any;
|
|
3
|
+
setReportDef: any;
|
|
4
|
+
availableFields: any;
|
|
5
|
+
customDimensions?: never[] | undefined;
|
|
6
|
+
theme: any;
|
|
7
|
+
data?: never[] | undefined;
|
|
8
|
+
valConfigs: any;
|
|
9
|
+
colFields: any;
|
|
10
|
+
setColFields: any;
|
|
11
|
+
setValConfigs: any;
|
|
12
|
+
savedReports: any;
|
|
13
|
+
setSavedReports: any;
|
|
14
|
+
activeReportId: any;
|
|
15
|
+
setActiveReportId: any;
|
|
16
|
+
showNotification: any;
|
|
17
|
+
requestedSelection?: null | undefined;
|
|
18
|
+
showReportConfigColumn?: boolean | undefined;
|
|
19
|
+
setShowReportConfigColumn: any;
|
|
20
|
+
}): React.JSX.Element;
|
|
21
|
+
import React from 'react';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default SidebarFilterItem;
|
|
2
|
+
declare function SidebarFilterItem({ column, theme, styles, onFilter, currentFilter, options, optionMeta, onSearchOptions, onLoadMoreOptions, onOpen }: {
|
|
3
|
+
column: any;
|
|
4
|
+
theme: any;
|
|
5
|
+
styles: any;
|
|
6
|
+
onFilter: any;
|
|
7
|
+
currentFilter: any;
|
|
8
|
+
options: any;
|
|
9
|
+
optionMeta: any;
|
|
10
|
+
onSearchOptions: any;
|
|
11
|
+
onLoadMoreOptions: any;
|
|
12
|
+
onOpen: any;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
import React from 'react';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default ToolPanelSection;
|
|
2
|
+
declare function ToolPanelSection({ title, children, items, renderItem, theme, styles, initialExpanded, count, onDrop, sectionId }: {
|
|
3
|
+
title: any;
|
|
4
|
+
children: any;
|
|
5
|
+
items: any;
|
|
6
|
+
renderItem: any;
|
|
7
|
+
theme: any;
|
|
8
|
+
styles: any;
|
|
9
|
+
initialExpanded?: boolean | undefined;
|
|
10
|
+
count: any;
|
|
11
|
+
onDrop: any;
|
|
12
|
+
sectionId: any;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
import React from 'react';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export function createCustomCategoryClause(availableFields: any): {
|
|
2
|
+
field: any;
|
|
3
|
+
operator: string;
|
|
4
|
+
value: string;
|
|
5
|
+
values: never[];
|
|
6
|
+
caseSensitive: boolean;
|
|
7
|
+
};
|
|
8
|
+
export function createCustomCategoryRule(availableFields: any, index?: number): {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
condition: {
|
|
12
|
+
op: string;
|
|
13
|
+
clauses: {
|
|
14
|
+
field: any;
|
|
15
|
+
operator: string;
|
|
16
|
+
value: string;
|
|
17
|
+
values: never[];
|
|
18
|
+
caseSensitive: boolean;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export function createCustomCategoryDraft(availableFields: any, existing?: null): any;
|
|
23
|
+
export function inferFieldTypeFromRows(rows: any, field: any): "string" | "number" | "date";
|
|
24
|
+
export function createDateGroupDraft(availableFields: any, data: any): {
|
|
25
|
+
id: string;
|
|
26
|
+
field: string;
|
|
27
|
+
kind: string;
|
|
28
|
+
name: string;
|
|
29
|
+
sourceField: any;
|
|
30
|
+
granularity: string;
|
|
31
|
+
fiscalYearStartMonth: number;
|
|
32
|
+
fallbackLabel: string;
|
|
33
|
+
__isNew: boolean;
|
|
34
|
+
};
|
|
35
|
+
export function createNumberGroupDraft(availableFields: any, data: any): {
|
|
36
|
+
id: string;
|
|
37
|
+
field: string;
|
|
38
|
+
kind: string;
|
|
39
|
+
name: string;
|
|
40
|
+
sourceField: any;
|
|
41
|
+
binSize: number;
|
|
42
|
+
minValue: string;
|
|
43
|
+
maxValue: string;
|
|
44
|
+
precision: number;
|
|
45
|
+
fallbackLabel: string;
|
|
46
|
+
__isNew: boolean;
|
|
47
|
+
};
|
|
48
|
+
export function getAllowedCustomCategoryDependencies(normalizedDimensions: any, draft: any): any[];
|
|
49
|
+
export function collectCustomCategoryClauseFields(dimension: any): any[];
|
|
50
|
+
export function getCustomCategoryValidationRows(data: any, dependencyDimensions: any): any[];
|
|
51
|
+
export function canValidateCustomCategoryRows(rows: any, clauseFields: any): boolean;
|
|
52
|
+
export const CUSTOM_CATEGORY_OPERATORS: {
|
|
53
|
+
value: string;
|
|
54
|
+
label: string;
|
|
55
|
+
}[];
|
|
56
|
+
export const CUSTOM_CATEGORY_LIST_OPERATORS: Set<string>;
|
|
57
|
+
export const CUSTOM_CATEGORY_VALUELESS_OPERATORS: Set<string>;
|
|
58
|
+
export function getTypedFields(rows: any, fields: any, targetType: any): any[];
|
|
59
|
+
export function splitListInput(value: any): string[];
|
|
60
|
+
export function normalizeCustomCategoryNameKey(value: any): string;
|
|
61
|
+
export function getCustomCategoryDraftField(draft: any): any;
|
|
62
|
+
export function getCustomCategoryRuleMatchSummary(rows: any, dimension: any): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function escapeRegExp(value: any): string;
|
|
2
|
+
export function normalizeFormulaReferenceKey(value: any, fallback?: string): string;
|
|
3
|
+
export function getFormulaReferenceKey(config: any): string;
|
|
4
|
+
export function normalizeFormulaScope(value: any): "measures" | "columns";
|
|
5
|
+
export function isColumnFormulaScope(value: any): boolean;
|
|
6
|
+
/** Pure formula parsing and value-sparkline defaults used by sidebar editors. */
|
|
7
|
+
export const FORMULA_REFERENCE_RE: RegExp;
|
|
8
|
+
export const SIMPLE_FORMULA_REFERENCE_RE: RegExp;
|
|
9
|
+
export const COLUMN_FORMULA_REFERENCE_RE: RegExp;
|
|
10
|
+
export const FORMULA_FUNCTION_NAMES: Set<string>;
|
|
11
|
+
export const FORMULA_RESERVED_REFERENCES: Set<string>;
|
|
12
|
+
export namespace DEFAULT_VALUE_SPARKLINE_CONFIG {
|
|
13
|
+
let type: string;
|
|
14
|
+
let metric: string;
|
|
15
|
+
let showCurrentValue: boolean;
|
|
16
|
+
let showDelta: boolean;
|
|
17
|
+
let compact: boolean;
|
|
18
|
+
let hideColumns: boolean;
|
|
19
|
+
let placement: string;
|
|
20
|
+
let source: string;
|
|
21
|
+
let displayMode: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default DetailDrawer;
|
|
2
|
+
/** Detail drawer for drill-through and row inspection views. */
|
|
3
|
+
declare function DetailDrawer({ detailState, onClose, onPageChange, onSort, onFilter, theme, height, }: {
|
|
4
|
+
detailState: any;
|
|
5
|
+
onClose: any;
|
|
6
|
+
onPageChange: any;
|
|
7
|
+
onSort: any;
|
|
8
|
+
onFilter: any;
|
|
9
|
+
theme: any;
|
|
10
|
+
height?: number | undefined;
|
|
11
|
+
}): React.JSX.Element | null;
|
|
12
|
+
import React from 'react';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default DetailSidePanel;
|
|
2
|
+
/** Detail side panel for row-level inspection. */
|
|
3
|
+
declare function DetailSidePanel({ detailState, onClose, onPageChange, onSort, onFilter, theme, width, }: {
|
|
4
|
+
detailState: any;
|
|
5
|
+
onClose: any;
|
|
6
|
+
onPageChange: any;
|
|
7
|
+
onSort: any;
|
|
8
|
+
onFilter: any;
|
|
9
|
+
theme: any;
|
|
10
|
+
width?: number | undefined;
|
|
11
|
+
}): React.JSX.Element | null;
|
|
12
|
+
import React from 'react';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default DetailSurfaceContent;
|
|
2
|
+
/** Detail surface content with tabs for source rows and metadata. */
|
|
3
|
+
declare function DetailSurfaceContent({ detailState, onClose, onPageChange, onSort, onFilter, theme, compact, }: {
|
|
4
|
+
detailState: any;
|
|
5
|
+
onClose: any;
|
|
6
|
+
onPageChange: any;
|
|
7
|
+
onSort: any;
|
|
8
|
+
onFilter: any;
|
|
9
|
+
theme: any;
|
|
10
|
+
compact?: boolean | undefined;
|
|
11
|
+
}): React.JSX.Element | null;
|
|
12
|
+
import React from 'react';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default EditSidePanel;
|
|
2
|
+
/** Edit side panel for row-level editing sessions. */
|
|
3
|
+
declare function EditSidePanel({ editedCells, propagationLog, onRevertCell, onRevertAll, onRevertSelected, onReapplyPropagation, onToggleDisplayMode, displayMode, onClose, theme, width, pendingPropagation, propagationMethod, onPropagationMethodChange, onConfirmPropagation, onCancelPropagation, }: {
|
|
4
|
+
editedCells: any;
|
|
5
|
+
propagationLog: any;
|
|
6
|
+
onRevertCell: any;
|
|
7
|
+
onRevertAll: any;
|
|
8
|
+
onRevertSelected: any;
|
|
9
|
+
onReapplyPropagation: any;
|
|
10
|
+
onToggleDisplayMode: any;
|
|
11
|
+
displayMode: any;
|
|
12
|
+
onClose: any;
|
|
13
|
+
theme: any;
|
|
14
|
+
width?: number | undefined;
|
|
15
|
+
pendingPropagation: any;
|
|
16
|
+
propagationMethod: any;
|
|
17
|
+
onPropagationMethodChange: any;
|
|
18
|
+
onConfirmPropagation: any;
|
|
19
|
+
onCancelPropagation: any;
|
|
20
|
+
}): React.JSX.Element | null;
|
|
21
|
+
import React from 'react';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default EditableCell;
|
|
2
|
+
declare function EditableCell({ getValue, row, column, columnConfig, displayValue, format, numberGroupSeparator, validationRules, onCellEdit, onEditBlocked, setProps, handleContextMenu, editingDisabled, editingDisabledReason, rowEditMode, editorConfig, rowEditSession, onRequestRowStart, onRowDraftChange, onRequestRowSave, onRequestRowCancel, requestEditorOptions, editorOptions, editorOptionsLoading, editorOptionsError, }: {
|
|
3
|
+
getValue: any;
|
|
4
|
+
row: any;
|
|
5
|
+
column: any;
|
|
6
|
+
columnConfig: any;
|
|
7
|
+
displayValue: any;
|
|
8
|
+
format: any;
|
|
9
|
+
numberGroupSeparator: any;
|
|
10
|
+
validationRules: any;
|
|
11
|
+
onCellEdit: any;
|
|
12
|
+
onEditBlocked: any;
|
|
13
|
+
setProps: any;
|
|
14
|
+
handleContextMenu: any;
|
|
15
|
+
editingDisabled?: boolean | undefined;
|
|
16
|
+
editingDisabledReason?: null | undefined;
|
|
17
|
+
rowEditMode?: string | undefined;
|
|
18
|
+
editorConfig?: null | undefined;
|
|
19
|
+
rowEditSession?: null | undefined;
|
|
20
|
+
onRequestRowStart: any;
|
|
21
|
+
onRowDraftChange: any;
|
|
22
|
+
onRequestRowSave: any;
|
|
23
|
+
onRequestRowCancel: any;
|
|
24
|
+
requestEditorOptions: any;
|
|
25
|
+
editorOptions?: never[] | undefined;
|
|
26
|
+
editorOptionsLoading?: boolean | undefined;
|
|
27
|
+
editorOptionsError?: null | undefined;
|
|
28
|
+
}): React.JSX.Element;
|
|
29
|
+
import React from 'react';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default InlineDetailPanel;
|
|
2
|
+
/** Inline detail panel embedded within the table body. */
|
|
3
|
+
declare function InlineDetailPanel({ detailState, onClose, onPageChange, onSort, onFilter, theme, width, top, height, }: {
|
|
4
|
+
detailState: any;
|
|
5
|
+
onClose: any;
|
|
6
|
+
onPageChange: any;
|
|
7
|
+
onSort: any;
|
|
8
|
+
onFilter: any;
|
|
9
|
+
theme: any;
|
|
10
|
+
width: any;
|
|
11
|
+
top: any;
|
|
12
|
+
height?: number | undefined;
|
|
13
|
+
}): React.JSX.Element | null;
|
|
14
|
+
import React from 'react';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PivotTableBody — the main scroll container and virtual-scroll table body.
|
|
3
|
+
*
|
|
4
|
+
* Contains: sticky header (left/center/right), top-pinned rows, virtualized
|
|
5
|
+
* center rows (with skeleton, expand/collapse loaders), bottom-pinned rows,
|
|
6
|
+
* floating filters, column-loading skeletons, and the StatusBar.
|
|
7
|
+
*/
|
|
8
|
+
export const PivotTableBody: React.NamedExoticComponent<object>;
|
|
9
|
+
import React from 'react';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default function SparklineCell({ points, type, theme, color, positiveColor, negativeColor, areaOpacity, showCurrentValue, showDelta, currentLabel, deltaLabel, deltaValue, title, compact, }: {
|
|
2
|
+
points?: never[] | undefined;
|
|
3
|
+
type?: string | undefined;
|
|
4
|
+
theme: any;
|
|
5
|
+
color?: null | undefined;
|
|
6
|
+
positiveColor?: null | undefined;
|
|
7
|
+
negativeColor?: null | undefined;
|
|
8
|
+
areaOpacity?: number | undefined;
|
|
9
|
+
showCurrentValue?: boolean | undefined;
|
|
10
|
+
showDelta?: boolean | undefined;
|
|
11
|
+
currentLabel?: string | undefined;
|
|
12
|
+
deltaLabel?: string | undefined;
|
|
13
|
+
deltaValue?: null | undefined;
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
compact?: boolean | undefined;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
import React from 'react';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export function PivotConfigProvider({ filters, setFilters, pivotMode, setPivotMode, reportDef, setReportDef, setColFields, setValConfigs, savedReports, setSavedReports, activeReportId, setActiveReportId, customDimensions, setCustomDimensions, showFloatingFilters, setShowFloatingFilters, stickyHeaders, setStickyHeaders, showColTotals, setShowColTotals, showRowTotals, setShowRowTotals, showSubtotals, setShowSubtotals, showRowNumbers, setShowRowNumbers, numberGroupSeparator, setNumberGroupSeparator, viewMode, children, }: {
|
|
2
|
+
filters: any;
|
|
3
|
+
setFilters: any;
|
|
4
|
+
pivotMode: any;
|
|
5
|
+
setPivotMode: any;
|
|
6
|
+
reportDef: any;
|
|
7
|
+
setReportDef: any;
|
|
8
|
+
setColFields: any;
|
|
9
|
+
setValConfigs: any;
|
|
10
|
+
savedReports: any;
|
|
11
|
+
setSavedReports: any;
|
|
12
|
+
activeReportId: any;
|
|
13
|
+
setActiveReportId: any;
|
|
14
|
+
customDimensions: any;
|
|
15
|
+
setCustomDimensions: any;
|
|
16
|
+
showFloatingFilters: any;
|
|
17
|
+
setShowFloatingFilters: any;
|
|
18
|
+
stickyHeaders: any;
|
|
19
|
+
setStickyHeaders: any;
|
|
20
|
+
showColTotals: any;
|
|
21
|
+
setShowColTotals: any;
|
|
22
|
+
showRowTotals: any;
|
|
23
|
+
setShowRowTotals: any;
|
|
24
|
+
showSubtotals: any;
|
|
25
|
+
setShowSubtotals: any;
|
|
26
|
+
showRowNumbers: any;
|
|
27
|
+
setShowRowNumbers: any;
|
|
28
|
+
numberGroupSeparator: any;
|
|
29
|
+
setNumberGroupSeparator: any;
|
|
30
|
+
viewMode: any;
|
|
31
|
+
children: any;
|
|
32
|
+
}): React.JSX.Element;
|
|
33
|
+
export function usePivotConfig(): never;
|
|
34
|
+
import React from 'react';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function PivotValueDisplayProvider({ editValueDisplayMode, resolveCellDisplayValue, resolveCurrentCellValue, setEditValueDisplayMode, hasComparedValues, children, }: {
|
|
2
|
+
editValueDisplayMode: any;
|
|
3
|
+
resolveCellDisplayValue: any;
|
|
4
|
+
resolveCurrentCellValue: any;
|
|
5
|
+
setEditValueDisplayMode: any;
|
|
6
|
+
hasComparedValues: any;
|
|
7
|
+
children: any;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
export function useOptionalPivotValueDisplay(): null;
|
|
10
|
+
import React from 'react';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useCellInteraction — extracts cell selection, drag, fill, and undo state
|
|
3
|
+
* from DashTanstackPivot.
|
|
4
|
+
*
|
|
5
|
+
* Covers: context menu, cell selection, drag-select, fill-down, row-select,
|
|
6
|
+
* and undo/redo history.
|
|
7
|
+
*/
|
|
8
|
+
export function useCellInteraction(): {
|
|
9
|
+
contextMenu: null;
|
|
10
|
+
setContextMenu: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
11
|
+
selectedCells: {};
|
|
12
|
+
setSelectedCells: import("react").Dispatch<import("react").SetStateAction<{}>>;
|
|
13
|
+
lastSelected: import("../runtime/cellSelectionAnchor").CellSelectionAnchor | null;
|
|
14
|
+
setLastSelected: import("react").Dispatch<import("react").SetStateAction<import("../runtime/cellSelectionAnchor").CellSelectionAnchor | null>>;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
setIsDragging: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
+
dragStart: import("../runtime/cellSelectionAnchor").CellSelectionAnchor | null;
|
|
18
|
+
setDragStart: import("react").Dispatch<import("react").SetStateAction<import("../runtime/cellSelectionAnchor").CellSelectionAnchor | null>>;
|
|
19
|
+
isFilling: boolean;
|
|
20
|
+
setIsFilling: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
21
|
+
fillRange: null;
|
|
22
|
+
setFillRange: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
23
|
+
history: never[];
|
|
24
|
+
setHistory: import("react").Dispatch<import("react").SetStateAction<never[]>>;
|
|
25
|
+
future: never[];
|
|
26
|
+
setFuture: import("react").Dispatch<import("react").SetStateAction<never[]>>;
|
|
27
|
+
isRowSelecting: boolean;
|
|
28
|
+
setIsRowSelecting: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
29
|
+
rowDragStart: null;
|
|
30
|
+
setRowDragStart: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
31
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useChartState — extracts all chart-related state from DashTanstackPivot.
|
|
3
|
+
*
|
|
4
|
+
* Returns the exact same variable names used in the main component so the
|
|
5
|
+
* migration diff is a pure move with no renames needed.
|
|
6
|
+
*/
|
|
7
|
+
export function useChartState({ initialChartDefinition, initialChartDefinitions, externalChartCanvasPanes, externalTableCanvasSize, loadPersistedState, clampFloatingChartRect, normalizeLockedChartRequest, sanitizeChartCanvasPanes, DEFAULT_TABLE_CANVAS_SIZE, }: {
|
|
8
|
+
initialChartDefinition: any;
|
|
9
|
+
initialChartDefinitions: any;
|
|
10
|
+
externalChartCanvasPanes: any;
|
|
11
|
+
externalTableCanvasSize: any;
|
|
12
|
+
loadPersistedState: any;
|
|
13
|
+
clampFloatingChartRect: any;
|
|
14
|
+
normalizeLockedChartRequest: any;
|
|
15
|
+
sanitizeChartCanvasPanes: any;
|
|
16
|
+
DEFAULT_TABLE_CANVAS_SIZE: any;
|
|
17
|
+
}): {
|
|
18
|
+
chartPanelOpen: boolean;
|
|
19
|
+
setChartPanelOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
20
|
+
chartPanelSource: any;
|
|
21
|
+
setChartPanelSource: import("react").Dispatch<any>;
|
|
22
|
+
chartPanelType: any;
|
|
23
|
+
setChartPanelType: import("react").Dispatch<any>;
|
|
24
|
+
chartPanelBarLayout: any;
|
|
25
|
+
setChartPanelBarLayout: import("react").Dispatch<any>;
|
|
26
|
+
chartPanelAxisMode: any;
|
|
27
|
+
setChartPanelAxisMode: import("react").Dispatch<any>;
|
|
28
|
+
chartPanelOrientation: any;
|
|
29
|
+
setChartPanelOrientation: import("react").Dispatch<any>;
|
|
30
|
+
chartPanelHierarchyLevel: any;
|
|
31
|
+
setChartPanelHierarchyLevel: import("react").Dispatch<any>;
|
|
32
|
+
chartPanelTitle: any;
|
|
33
|
+
setChartPanelTitle: import("react").Dispatch<any>;
|
|
34
|
+
chartPanelLayers: any;
|
|
35
|
+
setChartPanelLayers: import("react").Dispatch<any>;
|
|
36
|
+
chartPanelRowLimit: any;
|
|
37
|
+
setChartPanelRowLimit: import("react").Dispatch<any>;
|
|
38
|
+
chartPanelColumnLimit: any;
|
|
39
|
+
setChartPanelColumnLimit: import("react").Dispatch<any>;
|
|
40
|
+
chartPanelWidth: any;
|
|
41
|
+
setChartPanelWidth: import("react").Dispatch<any>;
|
|
42
|
+
chartPanelGraphHeight: any;
|
|
43
|
+
setChartPanelGraphHeight: import("react").Dispatch<any>;
|
|
44
|
+
chartPanelFloating: boolean;
|
|
45
|
+
setChartPanelFloating: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
46
|
+
chartPanelFloatingRect: any;
|
|
47
|
+
setChartPanelFloatingRect: import("react").Dispatch<any>;
|
|
48
|
+
chartPanelSortMode: any;
|
|
49
|
+
setChartPanelSortMode: import("react").Dispatch<any>;
|
|
50
|
+
chartPanelInteractionMode: any;
|
|
51
|
+
setChartPanelInteractionMode: import("react").Dispatch<any>;
|
|
52
|
+
chartPanelServerScope: any;
|
|
53
|
+
setChartPanelServerScope: import("react").Dispatch<any>;
|
|
54
|
+
chartPanelLocked: boolean;
|
|
55
|
+
setChartPanelLocked: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
56
|
+
chartPanelLockedModel: any;
|
|
57
|
+
setChartPanelLockedModel: import("react").Dispatch<any>;
|
|
58
|
+
chartPanelLockedRequest: any;
|
|
59
|
+
setChartPanelLockedRequest: import("react").Dispatch<any>;
|
|
60
|
+
isChartPanelResizing: boolean;
|
|
61
|
+
setIsChartPanelResizing: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
62
|
+
chartModal: null;
|
|
63
|
+
setChartModal: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
64
|
+
chartModalPosition: string;
|
|
65
|
+
setChartModalPosition: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
66
|
+
managedChartDefinitions: any;
|
|
67
|
+
setManagedChartDefinitions: import("react").Dispatch<any>;
|
|
68
|
+
activeChartDefinitionId: any;
|
|
69
|
+
setActiveChartDefinitionId: import("react").Dispatch<any>;
|
|
70
|
+
chartCanvasPanes: any;
|
|
71
|
+
setChartCanvasPanes: import("react").Dispatch<any>;
|
|
72
|
+
tableCanvasSize: any;
|
|
73
|
+
setTableCanvasSize: import("react").Dispatch<any>;
|
|
74
|
+
chartPaneDataById: {};
|
|
75
|
+
setChartPaneDataById: import("react").Dispatch<import("react").SetStateAction<{}>>;
|
|
76
|
+
};
|