@gooddata/sdk-ui-pivot 11.8.0-alpha.2 → 11.8.0-alpha.4

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 (49) hide show
  1. package/esm/impl/structure/headers/AggregationsMenu.d.ts.map +1 -1
  2. package/esm/impl/structure/headers/AggregationsMenu.js +2 -3
  3. package/esm/impl/structure/headers/AggregationsMenu.js.map +1 -1
  4. package/esm/impl/structure/headers/subMenuIcons/ColumnsIcon.d.ts.map +1 -1
  5. package/esm/impl/structure/headers/subMenuIcons/ColumnsIcon.js +2 -3
  6. package/esm/impl/structure/headers/subMenuIcons/ColumnsIcon.js.map +1 -1
  7. package/esm/impl/structure/headers/subMenuIcons/RowsIcon.d.ts.map +1 -1
  8. package/esm/impl/structure/headers/subMenuIcons/RowsIcon.js +2 -3
  9. package/esm/impl/structure/headers/subMenuIcons/RowsIcon.js.map +1 -1
  10. package/esm/index.d.ts +2 -0
  11. package/esm/index.d.ts.map +1 -1
  12. package/esm/index.js +1 -0
  13. package/esm/index.js.map +1 -1
  14. package/esm/next/PivotTableNext.d.ts +18 -1
  15. package/esm/next/PivotTableNext.d.ts.map +1 -1
  16. package/esm/next/PivotTableNext.js +18 -1
  17. package/esm/next/PivotTableNext.js.map +1 -1
  18. package/esm/next/components/Header/HeaderCell/HeaderMenuComponents.d.ts.map +1 -1
  19. package/esm/next/components/Header/HeaderCell/HeaderMenuComponents.js +3 -4
  20. package/esm/next/components/Header/HeaderCell/HeaderMenuComponents.js.map +1 -1
  21. package/esm/next/hooks/resizing/useAutoSizeReset.js +1 -1
  22. package/esm/next/hooks/resizing/useAutoSizeReset.js.map +1 -1
  23. package/esm/next/index.d.ts +13 -2
  24. package/esm/next/index.d.ts.map +1 -1
  25. package/esm/next/index.js.map +1 -1
  26. package/esm/next/types/cellSelection.d.ts +1 -1
  27. package/esm/next/types/executionCancelling.d.ts +1 -1
  28. package/esm/next/types/experimental.d.ts +2 -2
  29. package/esm/next/types/formatting.d.ts +1 -1
  30. package/esm/next/types/formatting.d.ts.map +1 -1
  31. package/esm/next/types/formatting.js +1 -0
  32. package/esm/next/types/formatting.js.map +1 -1
  33. package/esm/next/types/layout.d.ts +1 -1
  34. package/esm/next/types/license.d.ts +1 -1
  35. package/esm/next/types/locators.d.ts +12 -12
  36. package/esm/next/types/locators.js +5 -5
  37. package/esm/next/types/menu.d.ts +2 -2
  38. package/esm/next/types/public.d.ts +14 -2
  39. package/esm/next/types/public.d.ts.map +1 -1
  40. package/esm/next/types/resizing.d.ts +32 -32
  41. package/esm/next/types/resizing.d.ts.map +1 -1
  42. package/esm/next/types/resizing.js +12 -12
  43. package/esm/next/types/resizing.js.map +1 -1
  44. package/esm/next/types/textWrapping.d.ts +3 -3
  45. package/esm/next/types/transposition.d.ts +3 -3
  46. package/esm/sdk-ui-pivot.d.ts +587 -0
  47. package/package.json +11 -11
  48. package/styles/css/main.css +4 -0
  49. package/styles/css/main.css.map +1 -1
@@ -9,6 +9,7 @@
9
9
 
10
10
  import { AttributesMeasuresOrPlaceholders } from '@gooddata/sdk-ui';
11
11
  import { AttributesOrPlaceholders } from '@gooddata/sdk-ui';
12
+ import { ExplicitDrill } from '@gooddata/sdk-ui';
12
13
  import { IAnalyticalBackend } from '@gooddata/sdk-backend-spi';
13
14
  import { IAttribute } from '@gooddata/sdk-model';
14
15
  import { IBackendCapabilities } from '@gooddata/sdk-backend-spi';
@@ -34,16 +35,31 @@ import { WrappedComponentProps } from 'react-intl';
34
35
  */
35
36
  export declare type ColumnHeadersPosition = "top" | "left";
36
37
 
38
+ /**
39
+ * @public
40
+ */
41
+ export declare type ColumnHeadersPositionNext = "left" | "top";
42
+
37
43
  /**
38
44
  * @public
39
45
  */
40
46
  export declare type ColumnLocator = IAttributeColumnLocator | IMeasureColumnLocator | ITotalColumnLocator;
41
47
 
48
+ /**
49
+ * @public
50
+ */
51
+ export declare type ColumnLocatorNext = IAttributeColumnLocatorNext | IMeasureColumnLocatorNext | ITotalColumnLocatorNext;
52
+
42
53
  /**
43
54
  * @public
44
55
  */
45
56
  export declare type ColumnResizedCallback = (columnWidths: ColumnWidthItem[]) => void;
46
57
 
58
+ /**
59
+ * @public
60
+ */
61
+ export declare type ColumnResizedCallbackNext = (columnWidths: ColumnWidthItemNext[]) => void;
62
+
47
63
  /**
48
64
  * @public
49
65
  */
@@ -54,6 +70,16 @@ export declare type ColumnWidth = IAbsoluteColumnWidth | IAutoColumnWidth;
54
70
  */
55
71
  export declare type ColumnWidthItem = IAttributeColumnWidthItem | IMeasureColumnWidthItem | ISliceMeasureColumnWidthItem | IMixedValuesColumnWidthItem | IAllMeasureColumnWidthItem | IWeakMeasureColumnWidthItem;
56
72
 
73
+ /**
74
+ * @public
75
+ */
76
+ export declare type ColumnWidthItemNext = IAttributeColumnWidthItemNext | IMeasureColumnWidthItemNext | ISliceMeasureColumnWidthItemNext | IMixedValuesColumnWidthItemNext | IAllMeasureColumnWidthItemNext | IWeakMeasureColumnWidthItemNext;
77
+
78
+ /**
79
+ * @public
80
+ */
81
+ export declare type ColumnWidthNext = IAbsoluteColumnWidthNext | IAutoColumnWidthNext;
82
+
57
83
  /**
58
84
  * @internal
59
85
  */
@@ -64,6 +90,11 @@ export declare function CorePivotTable(props: ICorePivotTableProps): JSX.Element
64
90
  */
65
91
  export declare type DefaultColumnWidth = "unset" | "autoresizeAll" | "viewport";
66
92
 
93
+ /**
94
+ * @public
95
+ */
96
+ export declare type DefaultColumnWidthNext = "unset" | "autoresizeAll" | "viewport";
97
+
67
98
  /**
68
99
  * Prepares dimensions for pivot table execution from buckets and info if table is transposed or not.
69
100
  *
@@ -81,6 +112,14 @@ export declare interface IAbsoluteColumnWidth {
81
112
  allowGrowToFit?: boolean;
82
113
  }
83
114
 
115
+ /**
116
+ * @public
117
+ */
118
+ export declare interface IAbsoluteColumnWidthNext {
119
+ value: number;
120
+ allowGrowToFit?: boolean;
121
+ }
122
+
84
123
  /**
85
124
  * @public
86
125
  */
@@ -97,6 +136,22 @@ export declare interface IAllMeasureColumnWidthItemBody {
97
136
  width: IAbsoluteColumnWidth;
98
137
  }
99
138
 
139
+ /**
140
+ * Object defining {@link IAllMeasureColumnWidthItem} object body.
141
+ *
142
+ * @public
143
+ */
144
+ export declare interface IAllMeasureColumnWidthItemBodyNext {
145
+ width: IAbsoluteColumnWidthNext;
146
+ }
147
+
148
+ /**
149
+ * @public
150
+ */
151
+ export declare interface IAllMeasureColumnWidthItemNext {
152
+ measureColumnWidthItem: IAllMeasureColumnWidthItemBodyNext;
153
+ }
154
+
100
155
  /**
101
156
  * Locates all columns for an attribute or columns for particular attribute element.
102
157
  *
@@ -122,6 +177,31 @@ export declare interface IAttributeColumnLocatorBody {
122
177
  element?: string | null;
123
178
  }
124
179
 
180
+ /**
181
+ * Object defining the {@link IAttributeColumnLocator} object body.
182
+ *
183
+ * @public
184
+ */
185
+ export declare interface IAttributeColumnLocatorBodyNext {
186
+ /**
187
+ * Local identifier of the attribute
188
+ */
189
+ attributeIdentifier: Identifier;
190
+ /**
191
+ * Attribute element URI / primary key.
192
+ */
193
+ element?: string | null;
194
+ }
195
+
196
+ /**
197
+ * Locates all columns for an attribute or columns for particular attribute element.
198
+ *
199
+ * @public
200
+ */
201
+ export declare interface IAttributeColumnLocatorNext {
202
+ attributeLocatorItem: IAttributeColumnLocatorBodyNext;
203
+ }
204
+
125
205
  /**
126
206
  * @public
127
207
  */
@@ -139,6 +219,23 @@ export declare interface IAttributeColumnWidthItemBody {
139
219
  attributeIdentifier: Identifier;
140
220
  }
141
221
 
222
+ /**
223
+ * Object defining the {@link IAttributeColumnWidthItem} object body.
224
+ *
225
+ * @public
226
+ */
227
+ export declare interface IAttributeColumnWidthItemBodyNext {
228
+ width: IAbsoluteColumnWidthNext;
229
+ attributeIdentifier: Identifier;
230
+ }
231
+
232
+ /**
233
+ * @public
234
+ */
235
+ export declare interface IAttributeColumnWidthItemNext {
236
+ attributeColumnWidthItem: IAttributeColumnWidthItemBodyNext;
237
+ }
238
+
142
239
  /**
143
240
  * @public
144
241
  */
@@ -146,6 +243,13 @@ export declare interface IAutoColumnWidth {
146
243
  value: "auto";
147
244
  }
148
245
 
246
+ /**
247
+ * @public
248
+ */
249
+ export declare interface IAutoColumnWidthNext {
250
+ value: "auto";
251
+ }
252
+
149
253
  /**
150
254
  * @public
151
255
  */
@@ -173,6 +277,64 @@ export declare interface IColumnSizing {
173
277
  columnWidths?: ColumnWidthItem[];
174
278
  }
175
279
 
280
+ /**
281
+ * @public
282
+ */
283
+ export declare interface IColumnSizingNext {
284
+ /**
285
+ * Indicate that the table should grow to fit into the allocated space.
286
+ *
287
+ * @remarks
288
+ * Default: false
289
+ */
290
+ growToFit?: boolean;
291
+ /**
292
+ * Specify whether columns should be resized to fill the entire viewport.
293
+ *
294
+ * @remarks
295
+ * Default: unset
296
+ */
297
+ defaultWidth?: DefaultColumnWidthNext;
298
+ /**
299
+ * Specify custom column widths to apply.
300
+ *
301
+ * @remarks
302
+ * Default: none
303
+ */
304
+ columnWidths?: ColumnWidthItemNext[];
305
+ }
306
+
307
+ /**
308
+ * Column text wrapping item that specifies text wrapping settings for specific column(s).
309
+ *
310
+ * @public
311
+ */
312
+ export declare interface IColumnTextWrappingItem {
313
+ /**
314
+ * Column locators to identify which column this wrapping applies to.
315
+ */
316
+ locators: ColumnLocatorNext[];
317
+ /**
318
+ * Whether to wrap text in cells for the specified columns.
319
+ */
320
+ wrapText?: boolean;
321
+ /**
322
+ * Whether to wrap text in column headers for the specified columns.
323
+ */
324
+ wrapHeaderText?: boolean;
325
+ /**
326
+ * Match type determines how the locators are matched against columns.
327
+ *
328
+ * - "column" (default): Exact match - all locators must match exactly
329
+ * - "pivotGroup": Pivot group match - locators match the pivot group and all its descendant columns
330
+ *
331
+ * @remarks
332
+ * Use "pivotGroup" for pivot group headers to match all descendant columns.
333
+ * Use "column" (or omit) for specific column overrides.
334
+ */
335
+ matchType?: "column" | "pivotGroup";
336
+ }
337
+
176
338
  /**
177
339
  * @internal
178
340
  */
@@ -202,6 +364,27 @@ export declare interface IMeasureColumnLocatorBody {
202
364
  measureIdentifier: Identifier;
203
365
  }
204
366
 
367
+ /**
368
+ * Object defining the {@link IMeasureColumnLocator} object body.
369
+ *
370
+ * @public
371
+ */
372
+ export declare interface IMeasureColumnLocatorBodyNext {
373
+ /**
374
+ * Local identifier of the measure.
375
+ */
376
+ measureIdentifier: Identifier;
377
+ }
378
+
379
+ /**
380
+ * Locates table column by column measure's localId.
381
+ *
382
+ * @public
383
+ */
384
+ export declare interface IMeasureColumnLocatorNext {
385
+ measureLocatorItem: IMeasureColumnLocatorBodyNext;
386
+ }
387
+
205
388
  /**
206
389
  * @public
207
390
  */
@@ -219,6 +402,23 @@ export declare interface IMeasureColumnWidthItemBody {
219
402
  locators: ColumnLocator[];
220
403
  }
221
404
 
405
+ /**
406
+ * Object defining the {@link IMeasureColumnWidthItem} object body.
407
+ *
408
+ * @public
409
+ */
410
+ export declare interface IMeasureColumnWidthItemBodyNext {
411
+ width: ColumnWidthNext;
412
+ locators: ColumnLocatorNext[];
413
+ }
414
+
415
+ /**
416
+ * @public
417
+ */
418
+ export declare interface IMeasureColumnWidthItemNext {
419
+ measureColumnWidthItem: IMeasureColumnWidthItemBodyNext;
420
+ }
421
+
222
422
  /**
223
423
  * @public
224
424
  */
@@ -258,6 +458,46 @@ export declare interface IMenu {
258
458
  aggregationsSubMenuForRows?: boolean;
259
459
  }
260
460
 
461
+ /**
462
+ * Configuration for the aggregations menu.
463
+ *
464
+ * @public
465
+ */
466
+ export declare interface IMenuNext {
467
+ /**
468
+ * If true, grand totals and subtotals can be added to the table using table menu.
469
+ *
470
+ * @remarks
471
+ * Default: false
472
+ */
473
+ aggregations?: boolean;
474
+ /**
475
+ * If true, subtotals can be added to the table using table menu.
476
+ *
477
+ * @remarks
478
+ * Default: false
479
+ */
480
+ aggregationsSubMenu?: boolean;
481
+ /**
482
+ * Specifies which aggregation functions can be selected from the menu.
483
+ *
484
+ * @remarks
485
+ * Note: this option only impacts available menu items. It will not be used to filter totals that
486
+ * you specify on the pivot table props.
487
+ *
488
+ * Default: all available types.
489
+ */
490
+ aggregationTypes?: TotalType[];
491
+ /**
492
+ * If true, total and subtotals for columns (yes, for columns, although the naming is rows) can be added to the table using table menu.
493
+ * This will be removed in the future, it's under feature flag control for development purposes.
494
+ *
495
+ * @remarks
496
+ * Default: false
497
+ */
498
+ aggregationsSubMenuForRows?: boolean;
499
+ }
500
+
261
501
  /**
262
502
  * @public
263
503
  */
@@ -275,6 +515,23 @@ export declare interface IMixedValuesColumnWidthItemBody {
275
515
  locators: IMeasureColumnLocator[];
276
516
  }
277
517
 
518
+ /**
519
+ * Object defining the {@link IMixedValuesColumnWidthItemBody } object body.
520
+ *
521
+ * @public
522
+ */
523
+ export declare interface IMixedValuesColumnWidthItemBodyNext {
524
+ width: ColumnWidthNext;
525
+ locators: IMeasureColumnLocatorNext[];
526
+ }
527
+
528
+ /**
529
+ * @public
530
+ */
531
+ export declare interface IMixedValuesColumnWidthItemNext {
532
+ mixedValuesColumnWidthItem: IMixedValuesColumnWidthItemBodyNext;
533
+ }
534
+
278
535
  /**
279
536
  * @public
280
537
  */
@@ -406,6 +663,82 @@ export declare interface IPivotTableConfig {
406
663
  enableExecutionCancelling?: boolean;
407
664
  }
408
665
 
666
+ /**
667
+ * Props for the PivotTableNext component.
668
+ *
669
+ * @remarks
670
+ * PivotTableNext is the new implementation of the pivot table built on AG Grid Enterprise.
671
+ * It replaces the legacy PivotTable component and offers improved performance, accessibility,
672
+ * text wrapping, cell selection, and other enhanced features.
673
+ *
674
+ * See {@link PivotTableNext} for more information.
675
+ *
676
+ * @public
677
+ */
678
+ export declare interface IPivotTableNextProps extends IVisualizationProps, IVisualizationCallbacks {
679
+ /**
680
+ * Backend to use for the pivot table.
681
+ */
682
+ backend?: IAnalyticalBackend;
683
+ /**
684
+ * Workspace to use for the pivot table.
685
+ */
686
+ workspace?: string;
687
+ /**
688
+ * Columns to display in the pivot table.
689
+ */
690
+ columns?: AttributesOrPlaceholders;
691
+ /**
692
+ * Rows to display in the pivot table.
693
+ */
694
+ rows?: AttributesOrPlaceholders;
695
+ /**
696
+ * Measures to display in the pivot table.
697
+ */
698
+ measures?: AttributesMeasuresOrPlaceholders;
699
+ /**
700
+ * Filters to apply to the pivot table.
701
+ */
702
+ filters?: NullableFiltersOrPlaceholders;
703
+ /**
704
+ * Totals to display in the pivot table.
705
+ */
706
+ totals?: TotalsOrPlaceholders;
707
+ /**
708
+ * Sort by to apply to the pivot table.
709
+ */
710
+ sortBy?: SortsOrPlaceholders;
711
+ /**
712
+ * Configure drillability; e.g. which parts of the visualization can be interacted with.
713
+ */
714
+ drillableItems?: ExplicitDrill[];
715
+ /**
716
+ * Configuration for the pivot table.
717
+ */
718
+ config?: PivotTableNextConfig;
719
+ /**
720
+ * Customize size of page when fetching data from backend.
721
+ *
722
+ * @remarks
723
+ * Default is 100.
724
+ */
725
+ pageSize?: number;
726
+ /**
727
+ * Specify function to call when user manually resizes a table column.
728
+ *
729
+ * @param columnWidths - new widths for columns
730
+ */
731
+ onColumnResized?: ColumnResizedCallbackNext;
732
+ /**
733
+ * Execution configuration to apply when computing data for the table.
734
+ */
735
+ execConfig?: IExecutionConfig;
736
+ /**
737
+ * Optional resolution context for composed placeholders.
738
+ */
739
+ placeholdersResolutionContext?: any;
740
+ }
741
+
409
742
  /**
410
743
  * @public
411
744
  */
@@ -471,6 +804,23 @@ export declare interface ISliceMeasureColumnWidthItemBody {
471
804
  locators: IMeasureColumnLocator[];
472
805
  }
473
806
 
807
+ /**
808
+ * Object defining the {@link ISliceMeasureColumnWidthItem } object body.
809
+ *
810
+ * @public
811
+ */
812
+ export declare interface ISliceMeasureColumnWidthItemBodyNext {
813
+ width: ColumnWidthNext;
814
+ locators: IMeasureColumnLocatorNext[];
815
+ }
816
+
817
+ /**
818
+ * @public
819
+ */
820
+ export declare interface ISliceMeasureColumnWidthItemNext {
821
+ sliceMeasureColumnWidthItem: ISliceMeasureColumnWidthItemBodyNext;
822
+ }
823
+
474
824
  /**
475
825
  * Tests whether object is an instance of {@link IMeasureColumnLocator}
476
826
  *
@@ -513,6 +863,28 @@ export declare function isTotalColumnLocator(obj: unknown): obj is ITotalColumnL
513
863
  */
514
864
  export declare function isWeakMeasureColumnWidthItem(obj: unknown): obj is IWeakMeasureColumnWidthItem;
515
865
 
866
+ /**
867
+ * @public
868
+ */
869
+ export declare interface ITextWrapping {
870
+ /**
871
+ * Whether to wrap text in cells (global for all columns).
872
+ */
873
+ wrapText?: boolean;
874
+ /**
875
+ * Whether to wrap text in column headers (global for all columns).
876
+ */
877
+ wrapHeaderText?: boolean;
878
+ /**
879
+ * Per-column text wrapping overrides that take precedence over the global settings.
880
+ *
881
+ * @remarks
882
+ * Each item specifies text wrapping for one or more columns identified by locators.
883
+ * This allows different columns to have different text wrapping settings.
884
+ */
885
+ columnOverrides?: IColumnTextWrappingItem[];
886
+ }
887
+
516
888
  /**
517
889
  * Locates all columns for a columns for particular total.
518
890
  *
@@ -538,6 +910,31 @@ export declare interface ITotalColumnLocatorBody {
538
910
  totalFunction: string;
539
911
  }
540
912
 
913
+ /**
914
+ * Object defining the {@link ITotalColumnLocator} object body.
915
+ *
916
+ * @public
917
+ */
918
+ export declare interface ITotalColumnLocatorBodyNext {
919
+ /**
920
+ * Local identifier of the attribute inside which the subtotal is put
921
+ */
922
+ attributeIdentifier: Identifier;
923
+ /**
924
+ * Function for the total, such as sum, max, min, ...
925
+ */
926
+ totalFunction: string;
927
+ }
928
+
929
+ /**
930
+ * Locates all columns for a columns for particular total.
931
+ *
932
+ * @public
933
+ */
934
+ export declare interface ITotalColumnLocatorNext {
935
+ totalLocatorItem: ITotalColumnLocatorBodyNext;
936
+ }
937
+
541
938
  /**
542
939
  * @public
543
940
  */
@@ -555,11 +952,39 @@ export declare interface IWeakMeasureColumnWidthItemBody {
555
952
  locator: IMeasureColumnLocator;
556
953
  }
557
954
 
955
+ /**
956
+ * Object defining the {@link IWeakMeasureColumnWidthItem} object body.
957
+ *
958
+ * @public
959
+ */
960
+ export declare interface IWeakMeasureColumnWidthItemBodyNext {
961
+ width: IAbsoluteColumnWidthNext;
962
+ locator: IMeasureColumnLocatorNext;
963
+ }
964
+
965
+ /**
966
+ * @public
967
+ */
968
+ export declare interface IWeakMeasureColumnWidthItemNext {
969
+ measureColumnWidthItem: IWeakMeasureColumnWidthItemBodyNext;
970
+ }
971
+
558
972
  /**
559
973
  * @public
560
974
  */
561
975
  export declare type MeasureGroupDimension = "columns" | "rows";
562
976
 
977
+ /**
978
+ * Whether to display measures in columns or rows (transposed).
979
+ *
980
+ * This affects how execution and result of the table is constructed:
981
+ * - "columns" - measures are included in the first dimension (top to bottom).
982
+ * - "rows" - measures are included in the second dimension (left to right).
983
+ *
984
+ * @public
985
+ */
986
+ export declare type MeasureGroupDimensionNext = "columns" | "rows";
987
+
563
988
  /**
564
989
  * Creates a new attribute column locator
565
990
  *
@@ -659,6 +1084,168 @@ export declare function PivotTable(props: IPivotTableProps): JSX.Element;
659
1084
  */
660
1085
  export declare function pivotTableMenuForCapabilities(capabilities: IBackendCapabilities, desiredMenu?: IMenu): IMenu;
661
1086
 
1087
+ /**
1088
+ * PivotTableNext is the new pivot table component built on AG Grid Enterprise.
1089
+ *
1090
+ * This component replaces the legacy PivotTable component and offers:
1091
+ * - Better performance for large datasets
1092
+ * - Configurable text wrapping for long content
1093
+ * - Cell selection and copy capabilities
1094
+ * - Advanced column resizing options
1095
+ *
1096
+ * @remarks
1097
+ * This component uses AG Grid Enterprise. While an AG Grid license is optional,
1098
+ * tables will display a watermark without one. For production use, you can provide
1099
+ * your license via the `agGridToken` prop or using `AgGridTokenProvider`.
1100
+ *
1101
+ * The legacy PivotTable component will be replaced by PivotTableNext in the next major version.
1102
+ * We will also remove all '*next' suffixes from the component names and move this component to
1103
+ * the main package exports.
1104
+ *
1105
+ * @public
1106
+ */
1107
+ export declare function PivotTableNext(props: IPivotTableNextProps): JSX.Element;
1108
+
1109
+ /**
1110
+ * AG Grid Enterprise license configuration.
1111
+ *
1112
+ * @public
1113
+ */
1114
+ export declare interface PivotTableNextAgGridLicenseConfig {
1115
+ /**
1116
+ * AG Grid Enterprise license token. If provided, it will be applied to AG Grid to unlock
1117
+ * enterprise features.
1118
+ */
1119
+ agGridToken?: string;
1120
+ }
1121
+
1122
+ /**
1123
+ * @public
1124
+ */
1125
+ export declare type PivotTableNextCellSelectionConfig = {
1126
+ /**
1127
+ * If true, enables cell selection in the pivot table.
1128
+ *
1129
+ * @remarks
1130
+ * When enabled, users will be able to select cells in the table.
1131
+ * When disabled, cell selection and focus will be suppressed. This is useful
1132
+ * in scenarios like dashboard edit mode where cell interaction should be prevented.
1133
+ *
1134
+ * Default: true
1135
+ */
1136
+ enableCellSelection?: boolean;
1137
+ };
1138
+
1139
+ /**
1140
+ * @public
1141
+ */
1142
+ export declare type PivotTableNextColumnsSizingConfig = {
1143
+ /**
1144
+ * Customize column sizing strategy.
1145
+ */
1146
+ columnSizing?: IColumnSizingNext;
1147
+ };
1148
+
1149
+ /**
1150
+ * Configuration for the pivot table next.
1151
+ *
1152
+ * @public
1153
+ */
1154
+ export declare type PivotTableNextConfig = PivotTableNextTranspositionConfig & PivotTableNextTextWrappingConfig & PivotTableNextColumnsSizingConfig & PivotTableNextMenuConfig & PivotTableNextFormattingConfig & PivotTableNextExecutionCancellingConfig & PivotTableNextLayoutConfig & PivotTableNextCellSelectionConfig & PivotTableNextAgGridLicenseConfig & PivotTableNextExperimentalConfig;
1155
+
1156
+ /**
1157
+ * Configuration for execution cancelling.
1158
+ *
1159
+ * @public
1160
+ */
1161
+ export declare interface PivotTableNextExecutionCancellingConfig {
1162
+ /**
1163
+ * Whether to enable execution cancelling for data loading.
1164
+ */
1165
+ enableExecutionCancelling?: boolean;
1166
+ }
1167
+
1168
+ /**
1169
+ * Configuration for pivot table experimental features.
1170
+ *
1171
+ * @public
1172
+ */
1173
+ export declare interface PivotTableNextExperimentalConfig {
1174
+ /**
1175
+ * Enable automatic reset of column sizing when container width changes or column structure changes.
1176
+ * This fixes issues where tables with growToFit don't expand to full width after tab switching.
1177
+ *
1178
+ * Default: true
1179
+ */
1180
+ enablePivotTableAutoSizeReset?: boolean;
1181
+ }
1182
+
1183
+ /**
1184
+ * Configuration for formatting.
1185
+ *
1186
+ * @public
1187
+ */
1188
+ export declare interface PivotTableNextFormattingConfig {
1189
+ /**
1190
+ * Customize number segment separators (thousands, decimals)
1191
+ */
1192
+ separators?: ISeparators;
1193
+ }
1194
+
1195
+ /**
1196
+ * Layout-related configuration for the PivotTableNext component.
1197
+ *
1198
+ * @public
1199
+ */
1200
+ export declare interface PivotTableNextLayoutConfig {
1201
+ /**
1202
+ * Customize maximum height of the table in pixels.
1203
+ */
1204
+ maxHeight?: number;
1205
+ }
1206
+
1207
+ /**
1208
+ * @public
1209
+ */
1210
+ export declare type PivotTableNextMenuConfig = {
1211
+ /**
1212
+ * Configuration for the aggregations menu.
1213
+ */
1214
+ menu?: IMenuNext;
1215
+ };
1216
+
1217
+ /**
1218
+ * @public
1219
+ */
1220
+ export declare type PivotTableNextTextWrappingConfig = {
1221
+ /**
1222
+ * Configure text wrapping.
1223
+ */
1224
+ textWrapping?: ITextWrapping;
1225
+ };
1226
+
1227
+ /**
1228
+ * @public
1229
+ */
1230
+ export declare type PivotTableNextTranspositionConfig = {
1231
+ /**
1232
+ * Whether to display measures in columns or rows (transposed).
1233
+ *
1234
+ * This affects how execution and result of the table is constructed:
1235
+ * - "columns" - measures are included in the first dimension (top to bottom).
1236
+ * - "rows" - measures are included in the second dimension (left to right).
1237
+ *
1238
+ * Default Value: "columns"
1239
+ */
1240
+ measureGroupDimension?: MeasureGroupDimensionNext;
1241
+ /**
1242
+ * Whether to display column headers on the top or left.
1243
+ *
1244
+ * Default value: "left"
1245
+ */
1246
+ columnHeadersPosition?: ColumnHeadersPositionNext;
1247
+ };
1248
+
662
1249
  /**
663
1250
  * Creates width item that will set width for all columns containing values of the provided measure.
664
1251
  * To prepare width items for columns in tables without measures, pass measureOrId as `null`.