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.
Files changed (172) hide show
  1. package/README.md +182 -182
  2. package/dist/react/chunks/ContextMenu-DJuS4qTZ.mjs +198 -0
  3. package/dist/react/chunks/{DetailDrawer-Eb4EpVHG.mjs → DetailDrawer-DgKSC5Vu.mjs} +1 -1
  4. package/dist/react/chunks/{DetailSidePanel-BTcHOiKr.mjs → DetailSidePanel-CC5Dugyl.mjs} +1 -1
  5. package/dist/react/chunks/{DetailSurfaceContent-B3ZNKh7q.mjs → DetailSurfaceContent-CrQVHlcU.mjs} +85 -77
  6. package/dist/react/chunks/{ECharts2dRenderer-C3Qv0uAa.mjs → ECharts2dRenderer-46gLrUdf.mjs} +412 -410
  7. package/dist/react/chunks/{ECharts3dRenderer-BB_7-fOt.mjs → ECharts3dRenderer-Dg4ta5Bl.mjs} +2211 -3197
  8. package/dist/react/chunks/{EditSidePanel-C2cAvxlK.mjs → EditSidePanel-CkShaByb.mjs} +77 -65
  9. package/dist/react/chunks/{InlineDetailPanel-BXLAw1o3.mjs → InlineDetailPanel-mnwjoD0I.mjs} +1 -1
  10. package/dist/react/chunks/PivotCharts-MX-Z7DlR.mjs +5076 -0
  11. package/dist/react/chunks/{ReportEditor-D4V0ry2B.mjs → ReportEditor-U0E42xKL.mjs} +952 -631
  12. package/dist/react/chunks/SidebarPanel-BzRW1Kgq.mjs +3944 -0
  13. package/dist/react/chunks/{SparklineDetailGraph-Bu85X7OJ.mjs → SparklineDetailGraph-35Tim_8B.mjs} +88 -58
  14. package/dist/react/chunks/installCanvasRenderer-DRq0xpXO.mjs +21174 -0
  15. package/dist/react/chunks/react-CL4GbEOd.mjs +33206 -0
  16. package/dist/react/chunks/{xlsx.mini.min-vfxHk3Ry.mjs → xlsx.mini.min-kfIgXMVB.mjs} +5 -5
  17. package/dist/react/components/Charts/ChartRenderers.d.ts +5 -73
  18. package/dist/react/components/Charts/ChartWorkspace.d.ts +3 -34
  19. package/dist/react/components/Charts/ECharts2dRenderer.d.ts +2 -5
  20. package/dist/react/components/Charts/ECharts3dRenderer.d.ts +2 -6
  21. package/dist/react/components/Charts/PivotCharts.d.ts +2 -9
  22. package/dist/react/components/Charts/chartEnhancements.d.ts +17 -66
  23. package/dist/react/components/Charts/chartExportPresentation.d.ts +5 -19
  24. package/dist/react/components/Charts/chartMath.d.ts +4 -4
  25. package/dist/react/components/Charts/useChartExportMenu.d.ts +4 -12
  26. package/dist/react/components/DashTanstackPivot.react.d.ts +40 -0
  27. package/dist/react/components/Filters/ColumnFilter.d.ts +2 -12
  28. package/dist/react/components/Filters/DateRangeFilter.d.ts +2 -7
  29. package/dist/react/components/Filters/FilterPopover.d.ts +2 -13
  30. package/dist/react/components/Filters/MultiSelectFilter.d.ts +2 -11
  31. package/dist/react/components/Filters/NumericRangeFilter.d.ts +2 -7
  32. package/dist/react/components/Notification.d.ts +2 -6
  33. package/dist/react/components/PivotAppBar.d.ts +2 -2
  34. package/dist/react/components/PivotErrorBoundary.d.ts +11 -7
  35. package/dist/react/components/PivotSmallComponents.d.ts +2 -3
  36. package/dist/react/components/PivotWorkspaceCanvas.d.ts +2 -5
  37. package/dist/react/components/PivotWorkspaceControls.d.ts +4 -8
  38. package/dist/react/components/PivotWorkspaceShell.d.ts +4 -12
  39. package/dist/react/components/RuntimeDataError.d.ts +2 -7
  40. package/dist/react/components/ShimmerFallback.d.ts +11 -0
  41. package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +2 -13
  42. package/dist/react/components/Sidebar/ReportEditor.d.ts +7 -20
  43. package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +2 -13
  44. package/dist/react/components/Sidebar/SidebarPanel.d.ts +1 -2
  45. package/dist/react/components/Sidebar/ToolPanelSection.d.ts +2 -13
  46. package/dist/react/components/Sidebar/customCategoryUtils.d.ts +31 -62
  47. package/dist/react/components/Sidebar/formulaUtils.d.ts +16 -18
  48. package/dist/react/components/SkeletonRow.d.ts +2 -5
  49. package/dist/react/components/Table/ContextMenu.d.ts +2 -8
  50. package/dist/react/components/Table/DetailDrawer.d.ts +2 -11
  51. package/dist/react/components/Table/DetailSidePanel.d.ts +2 -11
  52. package/dist/react/components/Table/DetailSurfaceContent.d.ts +2 -11
  53. package/dist/react/components/Table/EditSidePanel.d.ts +2 -20
  54. package/dist/react/components/Table/EditableCell.d.ts +2 -28
  55. package/dist/react/components/Table/InlineDetailPanel.d.ts +2 -13
  56. package/dist/react/components/Table/PivotTableBody.d.ts +3 -3
  57. package/dist/react/components/Table/SparklineCell.d.ts +2 -17
  58. package/dist/react/components/Table/SparklineDetailGraph.d.ts +2 -5
  59. package/dist/react/components/Table/StatusBar.d.ts +2 -7
  60. package/dist/react/components/ThemedSelect.d.ts +8 -0
  61. package/dist/react/contexts/PivotConfigContext.d.ts +5 -33
  62. package/dist/react/contexts/PivotThemeContext.d.ts +8 -4
  63. package/dist/react/contexts/PivotValueDisplayContext.d.ts +5 -9
  64. package/dist/react/hooks/useChartState.d.ts +2 -71
  65. package/dist/react/hooks/useColumnDefs.d.ts +3 -68
  66. package/dist/react/hooks/useColumnVirtualizer.d.ts +1 -30
  67. package/dist/react/hooks/useDetailDrillThrough.d.ts +2 -36
  68. package/dist/react/hooks/useFilteredData.d.ts +4 -2
  69. package/dist/react/hooks/useFormatState.d.ts +2 -39
  70. package/dist/react/hooks/usePersistence.d.ts +4 -5
  71. package/dist/react/hooks/usePivotFieldInteractions.d.ts +2 -23
  72. package/dist/react/hooks/usePivotNormalization.d.ts +127 -461
  73. package/dist/react/hooks/usePivotRenderCounter.d.ts +2 -1
  74. package/dist/react/hooks/usePivotTransactions.d.ts +2 -23
  75. package/dist/react/hooks/useRenderHelpers.d.ts +3 -71
  76. package/dist/react/hooks/useReportMode.d.ts +2 -28
  77. package/dist/react/hooks/useRowCache.d.ts +16 -15
  78. package/dist/react/hooks/useRuntimeDataCommit.d.ts +2 -22
  79. package/dist/react/hooks/useRuntimeProfiling.d.ts +2 -13
  80. package/dist/react/hooks/useRuntimeTransport.d.ts +2 -18
  81. package/dist/react/hooks/useServerSideRowModel.d.ts +1 -50
  82. package/dist/react/hooks/useServerSideViewportController.d.ts +1 -64
  83. package/dist/react/hooks/useSidebarUI.d.ts +2 -32
  84. package/dist/react/hooks/useStickyStyles.d.ts +2 -23
  85. package/dist/react/index.mjs +15 -9
  86. package/dist/react/presentation/headerFormatting.d.ts +28 -11
  87. package/dist/react/presentation/safeCellContent.d.ts +22 -5
  88. package/dist/react/react.d.ts +4 -1
  89. package/dist/react/runtime/PivotRuntimeRoot.d.ts +1 -1
  90. package/dist/react/runtime/client/clientPivotTransport.d.ts +6 -1
  91. package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +50 -0
  92. package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +3 -0
  93. package/dist/react/runtime/client/types.d.ts +17 -0
  94. package/dist/react/runtime/createRuntimeCellPresentation.d.ts +2 -7
  95. package/dist/react/runtime/createRuntimeExportCommands.d.ts +2 -71
  96. package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +2 -9
  97. package/dist/react/runtime/displayColumnOrder.d.ts +4 -4
  98. package/dist/react/runtime/httpTransport.d.ts +1 -0
  99. package/dist/react/runtime/runtime-contract.generated.d.ts +3 -0
  100. package/dist/react/runtime/runtimeContract.d.ts +3 -0
  101. package/dist/react/runtime/runtimeDomains.d.ts +110 -0
  102. package/dist/react/runtime/useChartWorkspacePresentation.d.ts +2 -45
  103. package/dist/react/runtime/useCoreRuntime.d.ts +4 -1
  104. package/dist/react/runtime/useCoreRuntimeStage.d.ts +1 -1
  105. package/dist/react/runtime/useRuntimeCellSelection.d.ts +2 -40
  106. package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +7 -31
  107. package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +2 -13
  108. package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +2 -9
  109. package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +2 -14
  110. package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +2 -28
  111. package/dist/react/runtime/useRuntimeChartModels.d.ts +2 -62
  112. package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +2 -12
  113. package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +2 -4
  114. package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +2 -152
  115. package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +2 -7
  116. package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +2 -55
  117. package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +2 -26
  118. package/dist/react/runtime/useRuntimeColumnCommands.d.ts +2 -22
  119. package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +2 -11
  120. package/dist/react/runtime/useRuntimeDataRetry.d.ts +2 -12
  121. package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +2 -11
  122. package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +2 -18
  123. package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +2 -28
  124. package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +2 -35
  125. package/dist/react/runtime/useRuntimeEditDispatch.d.ts +2 -43
  126. package/dist/react/runtime/useRuntimeEditOwnership.d.ts +2 -28
  127. package/dist/react/runtime/useRuntimeEditPresentation.d.ts +2 -32
  128. package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +2 -24
  129. package/dist/react/runtime/useRuntimeExportState.d.ts +5 -5
  130. package/dist/react/runtime/useRuntimeFilterPopover.d.ts +2 -19
  131. package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +2 -40
  132. package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +2 -27
  133. package/dist/react/runtime/useRuntimeRequestSession.d.ts +2 -76
  134. package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +2 -43
  135. package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +2 -15
  136. package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +2 -28
  137. package/dist/react/runtime/useRuntimeRowEditing.d.ts +2 -18
  138. package/dist/react/runtime/useRuntimeRowSelection.d.ts +2 -14
  139. package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +2 -30
  140. package/dist/react/runtime/useRuntimeStructuralSync.d.ts +2 -61
  141. package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +2 -5
  142. package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +2 -196
  143. package/dist/react/runtime/useRuntimeViewportTableData.d.ts +2 -23
  144. package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +2 -109
  145. package/dist/react/utils/Icons.d.ts +2 -45
  146. package/dist/react/utils/chartModelBuilders.d.ts +76 -230
  147. package/dist/react/utils/columnOrder.d.ts +8 -12
  148. package/dist/react/utils/dataBars.d.ts +4 -7
  149. package/dist/react/utils/domEvents.d.ts +2 -1
  150. package/dist/react/utils/editing.d.ts +12 -47
  151. package/dist/react/utils/exportUtils.d.ts +30 -101
  152. package/dist/react/utils/fieldPanelLayout.d.ts +12 -61
  153. package/dist/react/utils/filterOptions.d.ts +4 -4
  154. package/dist/react/utils/helpers.d.ts +21 -18
  155. package/dist/react/utils/horizontalViewport.d.ts +1 -12
  156. package/dist/react/utils/layoutRows.d.ts +3 -3
  157. package/dist/react/utils/measureAxis.d.ts +6 -22
  158. package/dist/react/utils/pivotLayoutUtils.d.ts +7 -2
  159. package/dist/react/utils/pivotProfiler.d.ts +3 -3
  160. package/dist/react/utils/reportEditorSelection.d.ts +1 -23
  161. package/dist/react/utils/rowSpanning.d.ts +3 -6
  162. package/dist/react/utils/savedReports.d.ts +4 -7
  163. package/dist/react/utils/sorting.d.ts +8 -14
  164. package/dist/react/utils/sparklineDetail.d.ts +5 -8
  165. package/dist/react/utils/sparklines.d.ts +10 -78
  166. package/dist/react/utils/styles.d.ts +19 -308
  167. package/package.json +114 -114
  168. package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +0 -192
  169. package/dist/react/chunks/PivotCharts-Bw6Swoa3.mjs +0 -4252
  170. package/dist/react/chunks/SidebarPanel-xO59p_2o.mjs +0 -3339
  171. package/dist/react/chunks/installCanvasRenderer-B7sfDGoL.mjs +0 -21281
  172. package/dist/react/chunks/react-CPZZxtSo.mjs +0 -26999
@@ -1,236 +1,82 @@
1
- export const INTERNAL_COL_IDS: Set<string>;
1
+ /** @type {any} */
2
+ export const INTERNAL_COL_IDS: any;
2
3
  export const MAX_PANEL_CATEGORIES: 50;
3
4
  export const MAX_PANEL_SERIES: 12;
4
5
  export const MAX_SELECTION_CATEGORIES: 50;
5
6
  export const MAX_SELECTION_SERIES: 12;
6
7
  export const CHART_HEIGHT: 320;
7
8
  export const CHART_WIDTH: 760;
8
- export const DEFAULT_COLORS: string[];
9
- export namespace COLOR_PALETTES {
10
- let _default: string[];
11
- export { _default as default };
12
- export let pastel: string[];
13
- export let bold: string[];
14
- export let earth: string[];
15
- export let ocean: string[];
16
- export let warm: string[];
17
- export let cool: string[];
18
- export let mono: string[];
19
- export let a11y: string[];
20
- }
21
- export const COLOR_PALETTE_NAMES: string[];
22
- export function resolvePalette(name: any): any;
23
- export const VALID_COMBO_LAYER_TYPES: Set<string>;
24
- export const VALID_COMBO_LAYER_AXES: Set<string>;
25
- export const DEFAULT_COMBO_LAYER_SEQUENCE: string[];
26
- export function normalizePositiveLimit(value: any, fallback: any): any;
27
- export function parseNumeric(value: any): number | null;
28
- export function stringifyValue(value: any): string;
29
- export function formatChartNumber(value: any): string;
30
- export const VALUE_FORMAT_MODES: {
31
- value: string;
32
- label: string;
33
- }[];
34
- export function formatChartValue(value: any, mode: any): string;
35
- export function estimateTextWidth(text: any, fontSize?: number): number;
36
- export function truncateChartLabel(value: any, maxLength: any): string;
37
- export function getColumnLabel(column: any): string;
38
- export function getColumnHeaderSegments(column: any): string[];
39
- export function buildColumnLabelResolver(columns: any): (column: any) => string;
40
- export function getColumnValueSegments(column: any): any[];
41
- export function buildColumnFieldValues(column: any, fields?: any[]): any;
42
- export function getChartableColumns(visibleCols?: any[]): any[];
43
- export function getComboLayerDefaultName(column: any, index?: number): string;
44
- export function buildDefaultCartesianLayers(visibleCols?: any[], maxLayers?: number): {
45
- id: string;
46
- type: string;
47
- columnId: any;
48
- axis: string;
49
- name: string;
50
- hidden: boolean;
51
- }[];
52
- export function buildGroupedChartColumnOptions(columns?: any[]): {
53
- id: any;
54
- column: any;
55
- leafLabel: string;
56
- groupLabel: string;
57
- fullLabel: string;
58
- searchText: string;
59
- }[];
60
- export function normalizeComboLayer(layer: any, availableColumns?: any[], index?: number, fallbackLayer?: null): {
61
- id: any;
62
- type: any;
63
- columnId: any;
64
- axis: any;
65
- name: any;
66
- hidden: boolean;
67
- color: any;
68
- valueFormat: any;
69
- };
70
- export function normalizeComboLayers(layers: any, availableColumns?: any[], fallbackLayers?: any[]): {
71
- id: any;
72
- type: any;
73
- columnId: any;
74
- axis: any;
75
- name: any;
76
- hidden: boolean;
77
- color: any;
78
- valueFormat: any;
79
- }[];
80
- export function getRowLabel(row: any, fallbackIndex?: number): string;
81
- export function getRowDepth(row: any): any;
82
- export function getRowLevel(row: any): any;
83
- export function getRowPath(row: any): string;
84
- export function buildRowFieldValues(rowPath: any, fields?: any[]): any;
85
- export function buildRowTarget(row: any, fallbackIndex?: number, fields?: any[]): {
86
- kind: string;
87
- rowId: any;
88
- rowPath: string;
89
- label: string;
90
- pathValues: string[];
91
- fieldValues: any;
92
- };
93
- export function buildColumnTarget(column: any, fields?: any[]): {
94
- kind: string;
95
- columnId: any;
96
- label: string;
97
- pathValues: any[];
98
- fieldValues: any;
99
- };
100
- export function isDescendantPath(ancestorPath: any, candidatePath: any): boolean;
101
- export function isTotalRow(row: any): boolean;
102
- export function getCellValue(row: any, columnId: any): any;
103
- export function getAvailableLevels(rows: any): any[];
104
- export function getHierarchyDisplayRows(rows: any, hierarchyLevel: any): any;
105
- export function getColorForIndex(index: any, theme: any, colors: any): any;
106
- export function buildSelectionBounds(selectionMap: any, visibleRows: any, visibleCols: any): {
107
- minRow: number;
108
- maxRow: number;
109
- minCol: number;
110
- maxCol: number;
111
- grid: {};
112
- rowIndexes: number[];
113
- colIndexes: number[];
114
- } | null;
115
- export function buildCategoryBandsForRows(rowIndexes: any, visibleRows: any): any;
116
- export function buildStackedGroupsForRows(displayRows: any, allVisibleRows: any, numericValues: any, maxGroups: any): {
117
- key: string;
118
- label: string;
119
- segments: {
120
- label: string;
121
- value: number;
122
- path: string;
123
- }[];
124
- }[];
125
- export function buildFrontierStackedGroups(displayRows: any, categoryBands: any, numericValues: any, maxGroups: any): any;
126
- export function buildIcicleNodes(rows: any, valueColumn: any): {
127
- nodes: any[];
128
- maxDepth: number;
129
- };
130
- export function cloneHierarchyNodes(nodes: any): any;
131
- export function sortHierarchyNodes(nodes: any, sortMode: any): any;
132
- export function sortChartModel(model: any, sortMode: any): any;
133
- export function buildHierarchySankey(nodes: any): {
134
- nodes: any[];
135
- links: any[];
136
- maxDepth: number;
137
- };
138
- export function polarToCartesian(cx: any, cy: any, radius: any, angle: any): {
139
- x: any;
140
- y: any;
141
- };
142
- export function describeDonutArc(cx: any, cy: any, innerRadius: any, outerRadius: any, startAngle: any, endAngle: any): string;
143
- export function layoutSunburstNodes(nodes: any, startAngle: any, endAngle: any, depth: any, ringWidth: any, acc?: any[]): any[];
144
- export function layoutSankey(nodes: any, links: any, width: any, height: any): {
145
- nodes: any[];
146
- links: any;
147
- };
148
- export function buildSeriesFromRowCategories({ rowIndexes, colIndexes, visibleRows, visibleCols, grid, maxRows, maxColumns, rowFields, colFields, }: {
149
- rowIndexes: any;
150
- colIndexes: any;
151
- visibleRows: any;
152
- visibleCols: any;
153
- grid: any;
154
- maxRows: any;
155
- maxColumns: any;
156
- rowFields?: never[] | undefined;
157
- colFields?: never[] | undefined;
158
- }): {
159
- categories: never[];
160
- series: never[];
161
- note: string;
162
- categoryBands?: undefined;
163
- categoryTargets?: undefined;
164
- } | {
165
- categories: any;
166
- categoryBands: any;
167
- categoryTargets: any;
168
- series: any;
169
- note: string | null;
170
- };
171
- export function buildSeriesFromColumnCategories({ rowIndexes, colIndexes, visibleRows, visibleCols, grid, maxRows, maxColumns, colFields, }: {
172
- rowIndexes: any;
173
- colIndexes: any;
174
- visibleRows: any;
175
- visibleCols: any;
176
- grid: any;
177
- maxRows: any;
178
- maxColumns: any;
179
- colFields?: never[] | undefined;
180
- }): {
181
- categories: never[];
182
- series: never[];
183
- note: string;
184
- categoryTargets?: undefined;
185
- } | {
186
- categories: any;
187
- categoryTargets: any;
188
- series: any;
189
- note: string | null;
190
- };
191
- export function buildSelectionChartModel(selectionMap: any, visibleRows: any, visibleCols: any, options?: {}): any;
192
- export function buildPivotChartModel(displayRows: any, visibleCols: any, options?: {}): any;
193
- export function buildComboLayersForRows(layers: any, chartRows: any, visibleCols: any): ({
194
- color: any;
195
- name: any;
196
- columnId: any;
197
- values: any;
198
- id: any;
199
- type: any;
200
- axis: any;
201
- hidden: boolean;
202
- valueFormat: any;
203
- } | null)[];
204
- export function buildComboEmptyModel(message: any, hierarchyLevel: any, maxHierarchyLevel: any, availableLevels: any): {
205
- title: null;
206
- subtitle: null;
207
- categories: never[];
208
- categoryTargets: never[];
209
- categoryBands: never[];
210
- layers: never[];
211
- series: never[];
212
- stackedGroups: never[];
213
- icicleNodes: never[];
214
- sunburstNodes: never[];
215
- sankeyNodes: never[];
216
- sankeyLinks: never[];
217
- emptyMessage: any;
218
- availableLevels: any;
219
- maxHierarchyLevel: any;
220
- activeHierarchyLevel: any;
221
- };
222
- export function buildComboPivotChartModel(displayRows: any, visibleCols: any, options?: {}): any;
223
- export function buildComboSelectionChartModel(selectionMap: any, visibleRows: any, visibleCols: any, options?: {}): any;
224
- export function buildLinePath(points: any, closeToY?: null): string;
225
- export function buildAreaBandPath(points: any): string;
226
- export function niceTickValues(minVal: any, maxVal: any, count: any): any[];
227
- export function getAxisMetrics(values: any, chartHeight: any, margin: any): {
228
- minValue: number;
229
- maxValue: number;
230
- scaleY: (value: any) => number;
231
- baselineY: number;
232
- tickValues: any[];
233
- };
234
- export function layoutIcicleNodes(nodes: any, x: any, width: any, level: any, bandHeight: any, acc?: any[]): any[];
235
- export function canStackBarSeries(model: any): boolean;
236
- export function canStackBarLayout(model: any): boolean;
9
+ /** @type {any[]} */
10
+ export const DEFAULT_COLORS: any[];
11
+ /** @type {Record<string, any>} */
12
+ export const COLOR_PALETTES: Record<string, any>;
13
+ /** @type {any} */
14
+ export const COLOR_PALETTE_NAMES: any;
15
+ export function resolvePalette(name?: any): any;
16
+ /** @type {any} */
17
+ export const VALID_COMBO_LAYER_TYPES: any;
18
+ /** @type {any} */
19
+ export const VALID_COMBO_LAYER_AXES: any;
20
+ /** @type {any[]} */
21
+ export const DEFAULT_COMBO_LAYER_SEQUENCE: any[];
22
+ export function normalizePositiveLimit(value?: any, fallback?: any): any;
23
+ export function parseNumeric(value?: any): any;
24
+ export function stringifyValue(value?: any): any;
25
+ export function formatChartNumber(value?: any): any;
26
+ /** @type {any[]} */
27
+ export const VALUE_FORMAT_MODES: any[];
28
+ export function formatChartValue(value?: any, mode?: any): any;
29
+ export function estimateTextWidth(text?: any, fontSize?: any): any;
30
+ export function truncateChartLabel(value?: any, maxLength?: any): any;
31
+ export function getColumnLabel(column?: any): any;
32
+ export function getColumnHeaderSegments(column?: any): any;
33
+ export function buildColumnLabelResolver(columns?: any): any;
34
+ export function getColumnValueSegments(column?: any): any;
35
+ export function buildColumnFieldValues(column?: any, fields?: any): any;
36
+ export function getChartableColumns(visibleCols?: any): any;
37
+ export function getComboLayerDefaultName(column?: any, index?: any): any;
38
+ export function buildDefaultCartesianLayers(visibleCols?: any, maxLayers?: any): any;
39
+ export function buildGroupedChartColumnOptions(columns?: any): any;
40
+ export function normalizeComboLayer(layer?: any, availableColumns?: any, index?: any, fallbackLayer?: any): any;
41
+ export function normalizeComboLayers(layers?: any, availableColumns?: any, fallbackLayers?: any): any;
42
+ export function getRowLabel(row?: any, fallbackIndex?: any): any;
43
+ export function getRowDepth(row?: any): any;
44
+ export function getRowLevel(row?: any): any;
45
+ export function getRowPath(row?: any): any;
46
+ export function buildRowFieldValues(rowPath?: any, fields?: any): any;
47
+ export function buildRowTarget(row?: any, fallbackIndex?: any, fields?: any): any;
48
+ export function buildColumnTarget(column?: any, fields?: any): any;
49
+ export function isDescendantPath(ancestorPath?: any, candidatePath?: any): any;
50
+ export function isTotalRow(row?: any): any;
51
+ export function getCellValue(row?: any, columnId?: any): any;
52
+ export function getAvailableLevels(rows?: any): any;
53
+ export function getHierarchyDisplayRows(rows?: any, hierarchyLevel?: any): any;
54
+ export function getColorForIndex(index?: any, theme?: any, colors?: any): any;
55
+ export function buildSelectionBounds(selectionMap?: any, visibleRows?: any, visibleCols?: any): any;
56
+ export function buildCategoryBandsForRows(rowIndexes?: any, visibleRows?: any): any;
57
+ export function buildStackedGroupsForRows(displayRows?: any, allVisibleRows?: any, numericValues?: any, maxGroups?: any): any;
58
+ export function buildFrontierStackedGroups(displayRows?: any, categoryBands?: any, numericValues?: any, maxGroups?: any): any;
59
+ export function buildIcicleNodes(rows?: any, valueColumn?: any): any;
60
+ export function cloneHierarchyNodes(nodes?: any): any;
61
+ export function sortHierarchyNodes(nodes?: any, sortMode?: any): any;
62
+ export function sortChartModel(model?: any, sortMode?: any): any;
63
+ export function buildHierarchySankey(nodes?: any): any;
64
+ export function polarToCartesian(cx?: any, cy?: any, radius?: any, angle?: any): any;
65
+ export function describeDonutArc(cx?: any, cy?: any, innerRadius?: any, outerRadius?: any, startAngle?: any, endAngle?: any): any;
66
+ export function layoutSunburstNodes(nodes?: any, startAngle?: any, endAngle?: any, depth?: any, ringWidth?: any, acc?: any): any;
67
+ export function layoutSankey(nodes?: any, links?: any, width?: any, height?: any): any;
68
+ export function buildSeriesFromRowCategories({ rowIndexes, colIndexes, visibleRows, visibleCols, grid, maxRows, maxColumns, rowFields, colFields, }: any): any;
69
+ export function buildSeriesFromColumnCategories({ rowIndexes, colIndexes, visibleRows, visibleCols, grid, maxRows, maxColumns, colFields, }: any): any;
70
+ export function buildSelectionChartModel(selectionMap?: any, visibleRows?: any, visibleCols?: any, options?: any): any;
71
+ export function buildPivotChartModel(displayRows?: any, visibleCols?: any, options?: any): any;
72
+ export function buildComboLayersForRows(layers?: any, chartRows?: any, visibleCols?: any): any;
73
+ export function buildComboEmptyModel(message?: any, hierarchyLevel?: any, maxHierarchyLevel?: any, availableLevels?: any): any;
74
+ export function buildComboPivotChartModel(displayRows?: any, visibleCols?: any, options?: any): any;
75
+ export function buildComboSelectionChartModel(selectionMap?: any, visibleRows?: any, visibleCols?: any, options?: any): any;
76
+ export function buildLinePath(points?: any, closeToY?: any): any;
77
+ export function buildAreaBandPath(points?: any): any;
78
+ export function niceTickValues(minVal?: any, maxVal?: any, count?: any): any;
79
+ export function getAxisMetrics(values?: any, chartHeight?: any, margin?: any): any;
80
+ export function layoutIcicleNodes(nodes?: any, x?: any, width?: any, level?: any, bandHeight?: any, acc?: any): any;
81
+ export function canStackBarSeries(model?: any): any;
82
+ export function canStackBarLayout(model?: any): any;
@@ -1,12 +1,8 @@
1
- export function normalizeColumnOrderValue(value: any): any[];
2
- export function collectColumnDefLeafIds(columnDefs: any): any[];
3
- export function mergeColumnOrderWithIds(order: any, availableIds: any): any[];
4
- export function reconcilePivotLayoutOrder(savedIds: any, cellOrder: any, schema: any): any[];
5
- export function pivotLayoutRequestFields(manifest: any, revision: any, acknowledgedManifest: any, pinnedCellIds: any, schema: any, forceManifest?: boolean, savedPinMap?: {}, scopeChanged?: boolean): {
6
- layoutRevision: any;
7
- layoutManifest: any[] | undefined;
8
- pinnedColumnIds: any[];
9
- };
10
- export function areStringArraysEqual(left: any, right: any): boolean;
11
- export function moveColumnIdInOrder(order: any, columnId: any, targetColumnId: any, position?: string): any[];
12
- export function moveColumnIdByDelta(order: any, columnId: any, delta: any): any[];
1
+ export function normalizeColumnOrderValue(value?: any): any;
2
+ export function collectColumnDefLeafIds(columnDefs?: any): any;
3
+ export function mergeColumnOrderWithIds(order?: any, availableIds?: any): any;
4
+ export function reconcilePivotLayoutOrder(savedIds?: any, cellOrder?: any, schema?: any): any;
5
+ export function pivotLayoutRequestFields(manifest?: any, revision?: any, acknowledgedManifest?: any, pinnedCellIds?: any, schema?: any, forceManifest?: any, savedPinMap?: any, scopeChanged?: any): any;
6
+ export function areStringArraysEqual(left?: any, right?: any): any;
7
+ export function moveColumnIdInOrder(order?: any, columnId?: any, targetColumnId?: any, position?: any): any;
8
+ export function moveColumnIdByDelta(order?: any, columnId?: any, delta?: any): any;
@@ -1,7 +1,4 @@
1
- export function normalizeDataBarMaximums(value: any): {
2
- [k: string]: any;
3
- };
4
- export function updateDataBarMaximums(previous: any, columns: any, maximum: any): {
5
- [k: string]: any;
6
- };
7
- export function resolveDataBarMaximum(maximum: any, stats: any): number | null;
1
+ export function normalizeDataBarMaximums(value?: any): any;
2
+ export function normalizeDataBarVariant(value?: any): "fill" | "underbar";
3
+ export function updateDataBarMaximums(previous?: any, columns?: any, maximum?: any): any;
4
+ export function resolveDataBarMaximum(maximum?: any, stats?: any): any;
@@ -1 +1,2 @@
1
- export function isEventInsideElement(event: any, element: any): boolean;
1
+ export function isEventInsideElement(event?: any, element?: any): any;
2
+ export function isEventInsideSelector(event: any, selector: string): boolean;
@@ -1,47 +1,12 @@
1
- export function normalizeEditingConfig(value: any): {
2
- mode: string;
3
- rowActions: boolean;
4
- validateOnChange: boolean;
5
- validateOnBlur: boolean;
6
- columns: any;
7
- };
8
- export function getColumnEditLookupKeys(columnId: any, columnConfig?: null): any[];
9
- export function normalizeEditorOptions(options: any): any;
10
- export function normalizeEditorType(value: any, fallbackValue?: undefined): string;
11
- export function resolveEditorOptionsSource(editorConfig: any, columnId: any, columnConfig?: null): {
12
- kind: string;
13
- columnId: string;
14
- } | null;
15
- export function resolveColumnValidationRules(validationRules: any, columnId: any, columnConfig?: null, extraRules?: null): any[];
16
- export function resolveColumnEditSpec({ editingConfig, validationRules, columnId, columnConfig, currentValue, defaultEditable, }: {
17
- editingConfig: any;
18
- validationRules: any;
19
- columnId: any;
20
- columnConfig?: null | undefined;
21
- currentValue?: undefined;
22
- defaultEditable?: boolean | undefined;
23
- }): {
24
- editor: string;
25
- editable: boolean;
26
- placeholder: string;
27
- min: any;
28
- max: any;
29
- step: any;
30
- rows: any;
31
- options: any;
32
- optionsSource: {
33
- kind: string;
34
- columnId: string;
35
- } | null;
36
- allowCustomValue: boolean;
37
- saveOnChange: boolean;
38
- validationRules: any[];
39
- } | null;
40
- export function findEditorOption(options: any, value: any): any;
41
- export function formatEditorDisplayValue(value: any, editorConfig: any, fallbackFormatter: any): any;
42
- export function coerceEditorValue(value: any, editorConfig: any, currentValue?: undefined): any;
43
- export function toEditorInputValue(value: any, editorConfig: any): any;
44
- export function validateEditorValue(value: any, rules: any, context?: {}): {
45
- valid: boolean;
46
- error: any;
47
- };
1
+ export function normalizeEditingConfig(value?: any): any;
2
+ export function getColumnEditLookupKeys(columnId?: any, columnConfig?: any): any;
3
+ export function normalizeEditorOptions(options?: any): any;
4
+ export function normalizeEditorType(value?: any, fallbackValue?: any): any;
5
+ export function resolveEditorOptionsSource(editorConfig?: any, columnId?: any, columnConfig?: any): any;
6
+ export function resolveColumnValidationRules(validationRules?: any, columnId?: any, columnConfig?: any, extraRules?: any): any;
7
+ export function resolveColumnEditSpec({ editingConfig, validationRules, columnId, columnConfig, currentValue, defaultEditable, }: any): any;
8
+ export function findEditorOption(options?: any, value?: any): any;
9
+ export function formatEditorDisplayValue(value?: any, editorConfig?: any, fallbackFormatter?: any): any;
10
+ export function coerceEditorValue(value?: any, editorConfig?: any, currentValue?: any): any;
11
+ export function toEditorInputValue(value?: any, editorConfig?: any): any;
12
+ export function validateEditorValue(value?: any, rules?: any, context?: any): any;
@@ -1,121 +1,50 @@
1
- export function escapeHtml(value: any): string;
2
- export function escapeTsv(value: any): string;
3
- export function escapeCsv(value: any): string;
4
- export function styleObjectToCss(style: any): string;
1
+ /** @param {any} [value] @returns {any} */
2
+ export function escapeHtml(value?: any): any;
3
+ /** @param {any} [value] @returns {any} */
4
+ export function escapeTsv(value?: any): any;
5
+ /** @param {any} [value] @returns {any} */
6
+ export function escapeCsv(value?: any): any;
7
+ /** @param {any} [style] @returns {any} */
8
+ export function styleObjectToCss(style?: any): any;
5
9
  /**
6
10
  * Convert the visible leaf columns' header ancestry into a compact grid that
7
11
  * spreadsheet writers can turn into merged cells. Keeping this derived from
8
12
  * the leaf order means it works with virtual columns as well as ordinary
9
13
  * TanStack header groups.
10
- */
11
- export function buildMergedHeaderRows(columns?: any[], { getHeaderStack, getHeaderLabel }?: {
12
- getHeaderStack?: null | undefined;
13
- getHeaderLabel?: null | undefined;
14
- }): {
15
- rows: {
16
- cells: never[];
17
- }[];
18
- depth: number;
19
- };
14
+ @param {any} [columns] @param {any} [p1] @returns {any} */
15
+ export function buildMergedHeaderRows(columns?: any, { getHeaderStack, getHeaderLabel }?: any): any;
20
16
  /**
21
17
  * Export the pivot table as SpreadsheetML 2003 XML (.xls).
22
18
  * Produces a real Excel file with merged headers, typed cells, and cell styles —
23
19
  * no format-mismatch warning, numbers sort/sum correctly in Excel.
24
- */
25
- export function buildSpreadsheetMlExport({ table, rows, columns, getHeaderLabel, isHeaderTotalCol, getCellValue, getCellRawValue, isHierarchyCol, isTotalRow, isTotalCol, themeColors, filename, sheetName, }?: {
26
- table?: null | undefined;
27
- rows?: null | undefined;
28
- columns?: null | undefined;
29
- getHeaderLabel?: null | undefined;
30
- isHeaderTotalCol?: null | undefined;
31
- getCellValue?: null | undefined;
32
- getCellRawValue?: null | undefined;
33
- isHierarchyCol?: null | undefined;
34
- isTotalRow?: null | undefined;
35
- isTotalCol?: null | undefined;
36
- themeColors?: {} | undefined;
37
- filename?: string | undefined;
38
- sheetName?: string | undefined;
39
- }): {
40
- rows: any;
41
- columns: any;
42
- };
20
+ @param {any} [p0] @returns {any} */
21
+ export function buildSpreadsheetMlExport({ table, rows, columns, getHeaderLabel, isHeaderTotalCol, getCellValue, getCellRawValue, isHierarchyCol, isTotalRow, isTotalCol, themeColors, filename, sheetName, }?: any): any;
43
22
  /**
44
23
  * Export the pivot table as a real Office Open XML workbook (.xlsx).
45
- */
46
- export function buildXlsxExport({ table, rows, columns, getHeaderLabel, getHeaderStack, getCellValue, getCellRawValue, filename, sheetName, }?: {
47
- table?: null | undefined;
48
- rows?: null | undefined;
49
- columns?: null | undefined;
50
- getHeaderLabel?: null | undefined;
51
- getHeaderStack?: null | undefined;
52
- getCellValue?: null | undefined;
53
- getCellRawValue?: null | undefined;
54
- filename?: string | undefined;
55
- sheetName?: string | undefined;
56
- }): Promise<{
57
- rows: any;
58
- columns: any;
59
- }>;
24
+ @param {any} [p0] @returns {Promise<any>} */
25
+ export function buildXlsxExport({ table, rows, columns, getHeaderLabel, getHeaderStack, getCellValue, getCellRawValue, filename, sheetName, }?: any): Promise<any>;
60
26
  /**
61
27
  * Export the pivot table as UTF-8 CSV without loading the XLSX dependency.
62
- */
63
- export function buildCsvExport({ table, rows, columns, getHeaderLabel, getCellValue, getCellRawValue, filename, }?: {
64
- table?: null | undefined;
65
- rows?: null | undefined;
66
- columns?: null | undefined;
67
- getHeaderLabel?: null | undefined;
68
- getCellValue?: null | undefined;
69
- getCellRawValue?: null | undefined;
70
- filename?: string | undefined;
71
- }): {
72
- rows: any;
73
- columns: any;
74
- };
28
+ @param {any} [p0] @returns {any} */
29
+ export function buildCsvExport({ table, rows, columns, getHeaderLabel, getCellValue, getCellRawValue, filename, }?: any): any;
75
30
  /**
76
31
  * Build an array-of-arrays (AOA) suitable for simple spreadsheet export from
77
32
  * the table's row model and header groups.
78
- */
79
- export function buildExportAoa(allRows: any, table: any): {
80
- aoa: any[];
81
- merges: any[];
82
- wsCols: any;
83
- headerRowCount: number;
84
- };
85
- export function buildStyledHtmlTableExport({ table, rows, columns, includeHeaders, getHeaderLabel, getHeaderStack, getHeaderStyle, getCellValue, getCellStyle, tableStyle, bodyStyle, }?: {
86
- table?: null | undefined;
87
- rows?: null | undefined;
88
- columns?: null | undefined;
89
- includeHeaders?: boolean | undefined;
90
- getHeaderLabel?: null | undefined;
91
- getHeaderStack?: null | undefined;
92
- getHeaderStyle?: null | undefined;
93
- getCellValue?: null | undefined;
94
- getCellStyle?: null | undefined;
95
- tableStyle?: null | undefined;
96
- bodyStyle?: null | undefined;
97
- }): {
98
- html: string;
99
- text: string;
100
- rowCount: any;
101
- columnCount: any;
102
- };
103
- export function htmlTableToTsv(html: any): string;
104
- export function writeClipboardPayload(payload: any): Promise<void>;
105
- export function downloadHtmlTableAsExcel(payload: any, filename?: string): Promise<void>;
33
+ @param {any} [allRows] @param {any} [table] @returns {any} */
34
+ export function buildExportAoa(allRows?: any, table?: any): any;
35
+ /** @param {any} [p0] @returns {any} */
36
+ export function buildStyledHtmlTableExport({ table, rows, columns, includeHeaders, getHeaderLabel, getHeaderStack, getHeaderStyle, getCellValue, getCellStyle, tableStyle, bodyStyle, }?: any): any;
37
+ /** @param {any} [html] @returns {any} */
38
+ export function htmlTableToTsv(html?: any): any;
39
+ /** @param {any} [payload] @returns {any} */
40
+ export function writeClipboardPayload(payload?: any): any;
41
+ /** @param {any} [payload] @param {any} [filename] @returns {Promise<any>} */
42
+ export function downloadHtmlTableAsExcel(payload?: any, filename?: any): Promise<any>;
106
43
  /**
107
44
  * Export the pivot table as a real .xlsx file.
108
- */
109
- export function exportPivotTable(table: any, rowCount: any, rawRowsOverride?: null, options?: {}): Promise<{
110
- rows: any;
111
- columns: any;
112
- requestedRows: any;
113
- }>;
45
+ @param {any} [table] @param {any} [rowCount] @param {any} [rawRowsOverride] @param {any} [options] @returns {Promise<any>} */
46
+ export function exportPivotTable(table?: any, rowCount?: any, rawRowsOverride?: any, options?: any): Promise<any>;
114
47
  /**
115
48
  * Export the pivot table as a .csv file.
116
- */
117
- export function exportPivotTableCsv(table: any, rowCount: any, rawRowsOverride?: null, options?: {}): Promise<{
118
- rows: any;
119
- columns: any;
120
- requestedRows: any;
121
- }>;
49
+ @param {any} [table] @param {any} [rowCount] @param {any} [rawRowsOverride] @param {any} [options] @returns {Promise<any>} */
50
+ export function exportPivotTableCsv(table?: any, rowCount?: any, rawRowsOverride?: any, options?: any): Promise<any>;
@@ -1,61 +1,12 @@
1
- export function getFieldPanelLimits(panelId: any): any;
2
- export function sanitizeFieldPanelSizeEntry(panelId: any, value: any): {
3
- width: any;
4
- height: any;
5
- };
6
- export function sanitizeFieldPanelSizes(value: any): {};
7
- export function mergeFieldPanelSize(currentSizes: any, panelId: any, nextPartialSize: any): {};
8
- export const FIELD_PANEL_SIZE_LIMITS: Readonly<{
9
- availableFields: Readonly<{
10
- minHeight: 56;
11
- minWidth: 120;
12
- maxWidth: 520;
13
- maxHeight: 560;
14
- }>;
15
- rows: Readonly<{
16
- minHeight: 40;
17
- minWidth: 120;
18
- maxWidth: 520;
19
- maxHeight: 560;
20
- }>;
21
- cols: Readonly<{
22
- minHeight: 40;
23
- minWidth: 120;
24
- maxWidth: 520;
25
- maxHeight: 560;
26
- }>;
27
- vals: Readonly<{
28
- minHeight: 56;
29
- minWidth: 120;
30
- maxWidth: 520;
31
- maxHeight: 560;
32
- }>;
33
- filter: Readonly<{
34
- minHeight: 40;
35
- minWidth: 120;
36
- maxWidth: 520;
37
- maxHeight: 560;
38
- }>;
39
- }>;
40
- export const DEFAULT_FIELD_PANEL_SIZES: Readonly<{
41
- availableFields: Readonly<{
42
- width: null;
43
- height: 164;
44
- }>;
45
- rows: Readonly<{
46
- width: null;
47
- height: 140;
48
- }>;
49
- cols: Readonly<{
50
- width: null;
51
- height: 140;
52
- }>;
53
- vals: Readonly<{
54
- width: null;
55
- height: 188;
56
- }>;
57
- filter: Readonly<{
58
- width: null;
59
- height: 140;
60
- }>;
61
- }>;
1
+ /** @param {any} [panelId] @returns {any} */
2
+ export function getFieldPanelLimits(panelId?: any): any;
3
+ /** @param {any} [panelId] @param {any} [value] @returns {any} */
4
+ export function sanitizeFieldPanelSizeEntry(panelId?: any, value?: any): any;
5
+ /** @param {any} [value] @returns {any} */
6
+ export function sanitizeFieldPanelSizes(value?: any): any;
7
+ /** @param {any} [currentSizes] @param {any} [panelId] @param {any} [nextPartialSize] @returns {any} */
8
+ export function mergeFieldPanelSize(currentSizes?: any, panelId?: any, nextPartialSize?: any): any;
9
+ /** @type {any} */
10
+ export const FIELD_PANEL_SIZE_LIMITS: any;
11
+ /** @type {any} */
12
+ export const DEFAULT_FIELD_PANEL_SIZES: any;
@@ -1,4 +1,4 @@
1
- export function isAutoDataFieldId(field: any): boolean;
2
- export function collectDataFieldIds(rows: any): any[];
3
- export function compareFilterOptionValues(left: any, right: any): number;
4
- export function buildClientFilterOptionMap(rows: any, fields: any): {};
1
+ export function isAutoDataFieldId(field?: any): any;
2
+ export function collectDataFieldIds(rows?: any): any;
3
+ export function compareFilterOptionValues(left?: any, right?: any): any;
4
+ export function buildClientFilterOptionMap(rows?: any, fields?: any): any;