ag-grid-community 32.0.2 → 32.2.0

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 (180) hide show
  1. package/README.md +503 -85
  2. package/dist/ag-grid-community.js +9676 -6678
  3. package/dist/ag-grid-community.min.js +1 -1
  4. package/dist/ag-grid-community.min.noStyle.js +1 -1
  5. package/dist/ag-grid-community.noStyle.js +9577 -6573
  6. package/dist/package/main.cjs.js +9425 -6504
  7. package/dist/package/main.cjs.min.js +81 -70
  8. package/dist/package/main.esm.min.mjs +92 -81
  9. package/dist/package/main.esm.mjs +9424 -6503
  10. package/dist/package/package.json +34 -7
  11. package/dist/types/client-side-row-model/clientSideRowModel/clientSideNodeManager.d.ts +16 -3
  12. package/dist/types/client-side-row-model/clientSideRowModel/clientSideRowModel.d.ts +27 -7
  13. package/dist/types/client-side-row-model/clientSideRowModel/clientSideRowModelApi.d.ts +1 -0
  14. package/dist/types/client-side-row-model/clientSideRowModel/immutableService.d.ts +2 -1
  15. package/dist/types/client-side-row-model/clientSideRowModel/sortService.d.ts +1 -0
  16. package/dist/types/client-side-row-model/clientSideRowModelModule.d.ts +3 -4
  17. package/dist/types/client-side-row-model/version.d.ts +1 -1
  18. package/dist/types/core/alignedGridsModule.d.ts +1 -2
  19. package/dist/types/core/alignedGridsService.d.ts +1 -0
  20. package/dist/types/core/api/apiFunctionService.d.ts +6 -5
  21. package/dist/types/core/api/apiModule.d.ts +10 -11
  22. package/dist/types/core/api/apiUtils.d.ts +1 -1
  23. package/dist/types/core/api/gridApi.d.ts +621 -523
  24. package/dist/types/core/api/gridApiFunctions.d.ts +255 -0
  25. package/dist/types/core/api/sharedApiModule.d.ts +2 -3
  26. package/dist/types/core/api/ssrmInfiniteSharedApi.d.ts +1 -0
  27. package/dist/types/core/columns/columnEventDispatcher.d.ts +6 -4
  28. package/dist/types/core/columns/columnFactory.d.ts +6 -1
  29. package/dist/types/core/columns/columnModel.d.ts +11 -4
  30. package/dist/types/core/columns/columnModule.d.ts +2 -3
  31. package/dist/types/core/columns/columnUtils.d.ts +1 -0
  32. package/dist/types/core/columns/columnViewportService.d.ts +1 -0
  33. package/dist/types/core/columns/controlsColService.d.ts +11 -0
  34. package/dist/types/core/columns/dataTypeService.d.ts +3 -10
  35. package/dist/types/core/components/componentUtil.d.ts +2 -2
  36. package/dist/types/core/components/emptyBean.d.ts +21 -0
  37. package/dist/types/core/components/framework/componentTypes.d.ts +1 -0
  38. package/dist/types/core/components/framework/frameworkComponentWrapper.d.ts +1 -2
  39. package/dist/types/core/components/framework/userComponentFactory.d.ts +3 -1
  40. package/dist/types/core/components/framework/userComponentRegistry.d.ts +3 -1
  41. package/dist/types/core/context/beanStub.d.ts +2 -3
  42. package/dist/types/core/context/context.d.ts +8 -3
  43. package/dist/types/core/ctrlsService.d.ts +9 -6
  44. package/dist/types/core/dragAndDrop/dragAndDropImageComponent.d.ts +24 -0
  45. package/dist/types/core/dragAndDrop/dragAndDropService.d.ts +22 -10
  46. package/dist/types/core/dragAndDrop/dragModule.d.ts +1 -2
  47. package/dist/types/core/dragAndDrop/dragService.d.ts +4 -0
  48. package/dist/types/core/edit/cellEditors/simpleCellEditor.d.ts +2 -2
  49. package/dist/types/core/edit/editModule.d.ts +9 -10
  50. package/dist/types/core/edit/editService.d.ts +1 -1
  51. package/dist/types/core/edit/rowEditService.d.ts +1 -1
  52. package/dist/types/core/entities/agColumn.d.ts +4 -2
  53. package/dist/types/core/entities/agColumnGroup.d.ts +5 -0
  54. package/dist/types/core/entities/colDef.d.ts +26 -16
  55. package/dist/types/core/entities/dataType.d.ts +7 -0
  56. package/dist/types/core/entities/gridOptions.d.ts +248 -13
  57. package/dist/types/core/entities/rowNode.d.ts +69 -25
  58. package/dist/types/core/environment.d.ts +7 -4
  59. package/dist/types/core/eventService.d.ts +3 -3
  60. package/dist/types/core/eventTypes.d.ts +3 -3
  61. package/dist/types/core/events.d.ts +58 -12
  62. package/dist/types/core/filter/columnFilterService.d.ts +3 -1
  63. package/dist/types/core/filter/filterManager.d.ts +2 -0
  64. package/dist/types/core/filter/filterModule.d.ts +13 -14
  65. package/dist/types/core/filter/provided/iScalarFilter.d.ts +2 -0
  66. package/dist/types/core/filter/provided/providedFilter.d.ts +1 -1
  67. package/dist/types/core/focusService.d.ts +12 -2
  68. package/dist/types/core/grid.d.ts +10 -1
  69. package/dist/types/core/gridBodyComp/abstractFakeScrollComp.d.ts +3 -2
  70. package/dist/types/core/gridBodyComp/gridBodyCtrl.d.ts +8 -1
  71. package/dist/types/core/gridBodyComp/gridBodyScrollFeature.d.ts +10 -5
  72. package/dist/types/core/gridBodyComp/navigationService.d.ts +3 -1
  73. package/dist/types/core/gridBodyComp/rowContainer/rowContainerCtrl.d.ts +7 -3
  74. package/dist/types/core/gridBodyComp/rowDragFeature.d.ts +3 -2
  75. package/dist/types/core/gridBodyComp/scrollVisibleService.d.ts +10 -2
  76. package/dist/types/core/gridComp/gridCtrl.d.ts +5 -1
  77. package/dist/types/core/gridCoreModule.d.ts +2 -8
  78. package/dist/types/core/gridOptionsService.d.ts +10 -38
  79. package/dist/types/core/gridOptionsUtils.d.ts +54 -0
  80. package/dist/types/core/headerRendering/cells/abstractCell/abstractHeaderCellCtrl.d.ts +9 -6
  81. package/dist/types/core/headerRendering/cells/column/headerCellCtrl.d.ts +7 -6
  82. package/dist/types/core/headerRendering/cells/column/selectAllFeature.d.ts +6 -0
  83. package/dist/types/core/headerRendering/cells/columnGroup/headerGroupCellComp.d.ts +1 -0
  84. package/dist/types/core/headerRendering/cells/columnGroup/headerGroupCellCtrl.d.ts +6 -1
  85. package/dist/types/core/headerRendering/cells/floatingFilter/headerFilterCellCtrl.d.ts +2 -1
  86. package/dist/types/core/headerRendering/columnDrag/bodyDropPivotTarget.d.ts +1 -0
  87. package/dist/types/core/headerRendering/columnDrag/bodyDropTarget.d.ts +2 -0
  88. package/dist/types/core/headerRendering/columnDrag/moveColumnFeature.d.ts +21 -4
  89. package/dist/types/core/headerRendering/columnMoveHelper.d.ts +20 -10
  90. package/dist/types/core/headerRendering/gridHeaderCtrl.d.ts +1 -0
  91. package/dist/types/core/headerRendering/row/headerRowCtrl.d.ts +4 -8
  92. package/dist/types/core/headerRendering/rowContainer/headerRowContainerCtrl.d.ts +8 -8
  93. package/dist/types/core/interfaces/IRangeService.d.ts +3 -2
  94. package/dist/types/core/interfaces/IServerSideStore.d.ts +1 -1
  95. package/dist/types/core/interfaces/gridState.d.ts +28 -9
  96. package/dist/types/core/interfaces/iAdvancedFilterCtrl.d.ts +5 -1
  97. package/dist/types/core/interfaces/iCallbackParams.d.ts +5 -2
  98. package/dist/types/core/interfaces/iCellEditor.d.ts +4 -0
  99. package/dist/types/core/interfaces/iClientSideRowModel.d.ts +2 -6
  100. package/dist/types/core/interfaces/iColumn.d.ts +5 -1
  101. package/dist/types/core/interfaces/iExcelCreator.d.ts +69 -36
  102. package/dist/types/core/interfaces/iFrameworkOverrides.d.ts +6 -4
  103. package/dist/types/core/interfaces/iMenuFactory.d.ts +2 -1
  104. package/dist/types/core/interfaces/iModule.d.ts +10 -1
  105. package/dist/types/core/interfaces/iRowNode.d.ts +9 -2
  106. package/dist/types/core/interfaces/iRowNodeStage.d.ts +1 -3
  107. package/dist/types/core/interfaces/masterDetail.d.ts +2 -0
  108. package/dist/types/core/main.d.ts +11 -9
  109. package/dist/types/core/misc/menuService.d.ts +4 -2
  110. package/dist/types/core/misc/resizeObserverService.d.ts +0 -4
  111. package/dist/types/core/misc/state/stateModelMigration.d.ts +2 -0
  112. package/dist/types/core/misc/state/stateModule.d.ts +3 -4
  113. package/dist/types/core/misc/state/stateService.d.ts +2 -2
  114. package/dist/types/core/pagination/pageSizeSelector/pageSizeSelectorComp.d.ts +3 -1
  115. package/dist/types/core/pagination/paginationComp.d.ts +5 -4
  116. package/dist/types/core/pagination/paginationModule.d.ts +3 -4
  117. package/dist/types/core/pinnedRowModel/pinnedRowModel.d.ts +11 -9
  118. package/dist/types/core/pinnedRowModel/pinnedRowModule.d.ts +1 -2
  119. package/dist/types/core/propertyKeys.d.ts +2 -1
  120. package/dist/types/core/rendering/ariaAnnouncementService.d.ts +6 -1
  121. package/dist/types/core/rendering/cell/cellCtrl.d.ts +13 -10
  122. package/dist/types/core/rendering/cell/cellRangeFeature.d.ts +1 -1
  123. package/dist/types/core/rendering/columnAnimationService.d.ts +1 -0
  124. package/dist/types/core/rendering/columnHoverService.d.ts +1 -0
  125. package/dist/types/core/rendering/features/stickyRowFeature.d.ts +1 -0
  126. package/dist/types/core/rendering/overlays/loadingOverlayComponent.d.ts +1 -1
  127. package/dist/types/core/rendering/overlays/noRowsOverlayComponent.d.ts +1 -1
  128. package/dist/types/core/rendering/overlays/overlayModule.d.ts +1 -2
  129. package/dist/types/core/rendering/overlays/overlayService.d.ts +14 -1
  130. package/dist/types/core/rendering/overlays/overlayWrapperComponent.d.ts +6 -1
  131. package/dist/types/core/rendering/renderModule.d.ts +1 -2
  132. package/dist/types/core/rendering/row/rowComp.d.ts +0 -2
  133. package/dist/types/core/rendering/row/rowCtrl.d.ts +10 -8
  134. package/dist/types/core/rendering/rowRenderer.d.ts +1 -0
  135. package/dist/types/core/rowNodeCache/rowNodeBlockModule.d.ts +1 -2
  136. package/dist/types/core/selection/selectionService.d.ts +3 -2
  137. package/dist/types/core/syncService.d.ts +0 -1
  138. package/dist/types/core/utils/dom.d.ts +1 -1
  139. package/dist/types/core/utils/function.d.ts +2 -2
  140. package/dist/types/core/utils/icon.d.ts +76 -1
  141. package/dist/types/core/validation/apiFunctionValidator.d.ts +0 -1
  142. package/dist/types/core/validation/rules/gridOptionsValidations.d.ts +3 -0
  143. package/dist/types/core/validation/rules/selectionValidations.d.ts +3 -0
  144. package/dist/types/core/validation/validationService.d.ts +1 -4
  145. package/dist/types/core/validation/validationTypes.d.ts +2 -2
  146. package/dist/types/core/valueService/valueService.d.ts +6 -0
  147. package/dist/types/core/version.d.ts +1 -1
  148. package/dist/types/core/widgets/popupService.d.ts +1 -1
  149. package/dist/types/core/widgets/tooltipStateManager.d.ts +1 -0
  150. package/dist/types/csv-export/csvExportModule.d.ts +3 -4
  151. package/dist/types/csv-export/version.d.ts +1 -1
  152. package/dist/types/infinite-row-model/infiniteRowModel/infiniteRowModel.d.ts +1 -1
  153. package/dist/types/infinite-row-model/infiniteRowModel/infiniteRowModelApi.d.ts +0 -1
  154. package/dist/types/infinite-row-model/infiniteRowModelModule.d.ts +3 -4
  155. package/dist/types/infinite-row-model/version.d.ts +1 -1
  156. package/package.json +34 -7
  157. package/styles/_css-content.scss +332 -114
  158. package/styles/ag-grid-no-native-widgets.css +71 -36
  159. package/styles/ag-grid-no-native-widgets.min.css +3 -3
  160. package/styles/ag-grid.css +71 -36
  161. package/styles/ag-grid.min.css +3 -3
  162. package/styles/ag-theme-alpine-no-font.css +18 -5
  163. package/styles/ag-theme-alpine-no-font.min.css +1 -1
  164. package/styles/ag-theme-alpine.css +18 -5
  165. package/styles/ag-theme-alpine.min.css +1 -1
  166. package/styles/ag-theme-balham-no-font.css +18 -0
  167. package/styles/ag-theme-balham-no-font.min.css +1 -1
  168. package/styles/ag-theme-balham.css +18 -0
  169. package/styles/ag-theme-balham.min.css +1 -1
  170. package/styles/ag-theme-material-no-font.css +41 -6
  171. package/styles/ag-theme-material-no-font.min.css +1 -1
  172. package/styles/ag-theme-material.css +41 -6
  173. package/styles/ag-theme-material.min.css +1 -1
  174. package/styles/ag-theme-quartz-no-font.css +18 -10
  175. package/styles/ag-theme-quartz-no-font.min.css +1 -1
  176. package/styles/ag-theme-quartz.css +18 -10
  177. package/styles/ag-theme-quartz.min.css +1 -1
  178. package/dist/types/core/utils/rowNode.d.ts +0 -14
  179. package/gulpfile.js +0 -34
  180. package/webpackBuild.sh +0 -17
@@ -25,6 +25,7 @@ export declare class FocusService extends BeanStub implements NamedBean {
25
25
  private navigationService;
26
26
  private ctrlsService;
27
27
  private filterManager?;
28
+ private overlayService;
28
29
  private rangeService?;
29
30
  private advancedFilterService?;
30
31
  wireBeans(beans: BeanCollection): void;
@@ -36,10 +37,10 @@ export declare class FocusService extends BeanStub implements NamedBean {
36
37
  private advancedFilterFocusColumn;
37
38
  private static keyboardModeActive;
38
39
  private static instanceCount;
40
+ private awaitRestoreFocusedCell;
39
41
  private static addKeyboardModeEvents;
40
42
  private static removeKeyboardModeEvents;
41
43
  private static toggleKeyboardMode;
42
- private static unregisterGridCompController;
43
44
  postConstruct(): void;
44
45
  private registerKeyboardFocusEvents;
45
46
  onColumnEverythingChanged(): void;
@@ -49,6 +50,8 @@ export declare class FocusService extends BeanStub implements NamedBean {
49
50
  private isDomDataMissingInHierarchy;
50
51
  getFocusedCell(): CellPosition | null;
51
52
  shouldRestoreFocus(cell: CellPosition): boolean;
53
+ clearRestoreFocus(): void;
54
+ restoreFocusedCell(cellPosition: CellPosition, setFocusCallback: () => void): void;
52
55
  private isCellRestoreFocused;
53
56
  setRestoreFocusedCell(cellPosition: CellPosition): void;
54
57
  private getFocusEventParams;
@@ -60,6 +63,8 @@ export declare class FocusService extends BeanStub implements NamedBean {
60
63
  clearFocusedHeader(): void;
61
64
  getFocusedHeader(): HeaderPosition | null;
62
65
  setFocusedHeader(headerRowIndex: number, column: AgColumnGroup | AgColumn): void;
66
+ isHeaderFocusSuppressed(): boolean;
67
+ isCellFocusSuppressed(): boolean;
63
68
  focusHeaderPosition(params: {
64
69
  headerPosition: HeaderPosition | null;
65
70
  direction?: 'Before' | 'After' | null;
@@ -88,7 +93,11 @@ export declare class FocusService extends BeanStub implements NamedBean {
88
93
  findNextFocusableElement(rootNode?: HTMLElement, onlyManaged?: boolean | null, backwards?: boolean): HTMLElement | null;
89
94
  isTargetUnderManagedComponent(rootNode: HTMLElement, target?: HTMLElement): boolean;
90
95
  findTabbableParent(node: HTMLElement | null, limit?: number): HTMLElement | null;
91
- focusGridView(column?: AgColumn, backwards?: boolean): boolean;
96
+ focusOverlay(backwards?: boolean): boolean;
97
+ private focusGridViewFailed;
98
+ focusGridView(column?: AgColumn, backwards?: boolean, canFocusOverlay?: boolean): boolean;
99
+ /** Returns true if an element inside the grid has focus */
100
+ isGridFocused(): boolean;
92
101
  focusNextGridCoreContainer(backwards: boolean, forceOut?: boolean): boolean;
93
102
  private focusAdvancedFilter;
94
103
  focusNextFromAdvancedFilter(backwards?: boolean, forceFirstColumn?: boolean): boolean;
@@ -96,4 +105,5 @@ export declare class FocusService extends BeanStub implements NamedBean {
96
105
  addFocusableContainer(container: FocusableContainer): void;
97
106
  removeFocusableContainer(container: FocusableContainer): void;
98
107
  focusGridInnerElement(fromBottom?: boolean): boolean;
108
+ allowFocusForNextGridCoreContainer(up?: boolean): void;
99
109
  }
@@ -21,12 +21,21 @@ export interface Params {
21
21
  */
22
22
  modules?: Module[];
23
23
  }
24
+ /**
25
+ * When providing global grid options, specify how they should be merged with the grid options provided to individual grids.
26
+ * - `deep` will merge the global options into the provided options deeply, with provided options taking precedence.
27
+ * - `shallow` will merge the global options with the provided options shallowly, with provided options taking precedence.
28
+ * @default 'shallow'
29
+ * @param gridOptions - global grid options
30
+ */
31
+ export type GlobalGridOptionsMergeStrategy = 'deep' | 'shallow';
24
32
  /**
25
33
  * Provide gridOptions that will be shared by all grid instances.
26
34
  * Individually defined GridOptions will take precedence over global options.
27
35
  * @param gridOptions - global grid options
28
36
  */
29
- export declare function provideGlobalGridOptions(gridOptions: GridOptions): void;
37
+ export declare function provideGlobalGridOptions(gridOptions: GridOptions, mergeStrategy?: GlobalGridOptionsMergeStrategy): void;
38
+ export declare function _getGlobalGridOption<K extends keyof GridOptions>(gridOption: K): GridOptions[K];
30
39
  /**
31
40
  * Creates a grid inside the provided HTML element.
32
41
  * @param eGridDiv Parent element to contain the grid.
@@ -1,6 +1,7 @@
1
1
  import type { BeanCollection } from '../context/context';
2
2
  import { Component } from '../widgets/component';
3
- export declare abstract class AbstractFakeScrollComp extends Component {
3
+ import type { ScrollPartner } from './gridBodyScrollFeature';
4
+ export declare abstract class AbstractFakeScrollComp extends Component implements ScrollPartner {
4
5
  private readonly direction;
5
6
  private animationFrameService;
6
7
  wireBeans(beans: BeanCollection): void;
@@ -18,7 +19,7 @@ export declare abstract class AbstractFakeScrollComp extends Component {
18
19
  protected onScrollVisibilityChanged(): void;
19
20
  protected hideAndShowInvisibleScrollAsNeeded(): void;
20
21
  protected attemptSettingScrollPosition(value: number): void;
21
- protected getViewport(): HTMLElement;
22
+ getViewportElement(): HTMLElement;
22
23
  getContainer(): HTMLElement;
23
24
  onScrollCallback(fn: () => void): void;
24
25
  }
@@ -51,6 +51,10 @@ export declare class GridBodyCtrl extends BeanStub {
51
51
  private eTop;
52
52
  private eBottom;
53
53
  private eStickyTop;
54
+ private eCenterColsViewport;
55
+ private eFullWidthContainer;
56
+ private eStickyTopFullWidthContainer;
57
+ private eStickyBottomFullWidthContainer;
54
58
  private stickyTopHeight;
55
59
  private eStickyBottom;
56
60
  private stickyBottomHeight;
@@ -65,6 +69,8 @@ export declare class GridBodyCtrl extends BeanStub {
65
69
  setColumnMovingCss(moving: boolean): void;
66
70
  setCellTextSelection(selectable?: boolean): void;
67
71
  private onScrollVisibilityChanged;
72
+ private onScrollGapChanged;
73
+ private updateScrollingClasses;
68
74
  private onGridColumnsChanged;
69
75
  private disableBrowserDragging;
70
76
  private addStopEditingWhenGridLosesFocus;
@@ -77,10 +83,11 @@ export declare class GridBodyCtrl extends BeanStub {
77
83
  private addBodyViewportListener;
78
84
  private addFullWidthContainerWheelListener;
79
85
  private onFullWidthContainerWheel;
86
+ private onStickyWheel;
87
+ private scrollGridBodyToMatchEvent;
80
88
  private onBodyViewportContextMenu;
81
89
  private mockContextMenuForIPad;
82
90
  private onBodyViewportWheel;
83
- private onStickyWheel;
84
91
  getGui(): HTMLElement;
85
92
  scrollVertically(pixels: number): number;
86
93
  private addRowDragListener;
@@ -1,6 +1,10 @@
1
1
  import { BeanStub } from '../context/beanStub';
2
2
  import type { BeanCollection } from '../context/context';
3
3
  import type { IRowNode, VerticalScrollPosition } from '../interfaces/iRowNode';
4
+ export interface ScrollPartner {
5
+ getViewportElement(): HTMLElement;
6
+ onScrollCallback(fn: () => void): void;
7
+ }
4
8
  export declare class GridBodyScrollFeature extends BeanStub {
5
9
  private ctrlsService;
6
10
  private animationFrameService;
@@ -27,15 +31,16 @@ export declare class GridBodyScrollFeature extends BeanStub {
27
31
  constructor(eBodyViewport: HTMLElement);
28
32
  postConstruct(): void;
29
33
  private addScrollListener;
34
+ private addHorizontalScrollListeners;
35
+ private addVerticalScrollListeners;
36
+ private registerScrollPartner;
30
37
  private onDisplayedColumnsWidthChanged;
31
- horizontallyScrollHeaderCenterAndFloatingCenter(scrollLeft?: number): void;
38
+ private horizontallyScrollHeaderCenterAndFloatingCenter;
39
+ private setScrollLeftForAllContainersExceptCurrent;
40
+ private getViewportForSource;
32
41
  private isControllingScroll;
33
- private onFakeHScroll;
34
42
  private onHScroll;
35
- private onHScrollCommon;
36
- private onFakeVScroll;
37
43
  private onVScroll;
38
- private onVScrollCommon;
39
44
  private doHorizontalScroll;
40
45
  private fireScrollEvent;
41
46
  private shouldBlockScrollUpdate;
@@ -2,6 +2,7 @@ import type { NamedBean } from '../context/bean';
2
2
  import { BeanStub } from '../context/beanStub';
3
3
  import type { BeanCollection } from '../context/context';
4
4
  import type { CellPosition } from '../entities/cellPositionUtils';
5
+ import type { RowPosition } from '../entities/rowPositionUtils';
5
6
  import { CellCtrl } from '../rendering/cell/cellCtrl';
6
7
  import { RowCtrl } from '../rendering/row/rowCtrl';
7
8
  export declare class NavigationService extends BeanStub implements NamedBean {
@@ -18,6 +19,7 @@ export declare class NavigationService extends BeanStub implements NamedBean {
18
19
  private rowPositionUtils;
19
20
  private cellNavigationService;
20
21
  private pinnedRowModel;
22
+ private scrollVisibleService;
21
23
  private rangeService?;
22
24
  wireBeans(beans: BeanCollection): void;
23
25
  private gridBodyCon;
@@ -51,7 +53,7 @@ export declare class NavigationService extends BeanStub implements NamedBean {
51
53
  private lookupRowNodeForCell;
52
54
  navigateToNextCell(event: KeyboardEvent | null, key: string, currentCell: CellPosition, allowUserOverride: boolean): void;
53
55
  private getNormalisedPosition;
54
- private tryToFocusFullWidthRow;
56
+ tryToFocusFullWidthRow(position: CellPosition | RowPosition, backwards?: boolean): boolean;
55
57
  private focusPosition;
56
58
  private isValidNavigateCell;
57
59
  private getLastCellOfColSpan;
@@ -3,6 +3,7 @@ import type { BeanCollection } from '../../context/context';
3
3
  import type { ColumnPinnedType } from '../../interfaces/iColumn';
4
4
  import type { RowCtrl } from '../../rendering/row/rowCtrl';
5
5
  import type { RowRenderer } from '../../rendering/rowRenderer';
6
+ import type { ScrollPartner } from '../gridBodyScrollFeature';
6
7
  import { ViewportSizeFeature } from '../viewportSizeFeature';
7
8
  export type RowContainerName = 'left' | 'right' | 'center' | 'fullWidth' | 'topLeft' | 'topRight' | 'topCenter' | 'topFullWidth' | 'stickyTopLeft' | 'stickyTopRight' | 'stickyTopCenter' | 'stickyTopFullWidth' | 'stickyBottomLeft' | 'stickyBottomRight' | 'stickyBottomCenter' | 'stickyBottomFullWidth' | 'bottomLeft' | 'bottomRight' | 'bottomCenter' | 'bottomFullWidth';
8
9
  export type RowContainerType = 'left' | 'right' | 'center' | 'fullWidth';
@@ -18,6 +19,7 @@ export type RowContainerOptions = {
18
19
  export declare function _getRowContainerOptions(name: RowContainerName): RowContainerOptions;
19
20
  export interface IRowContainerComp {
20
21
  setViewportHeight(height: string): void;
22
+ setHorizontalScroll(offset: number): void;
21
23
  setRowCtrls(params: {
22
24
  rowCtrls: RowCtrl[];
23
25
  useFlushSync?: boolean;
@@ -26,7 +28,7 @@ export interface IRowContainerComp {
26
28
  setContainerWidth(width: string): void;
27
29
  setOffsetTop(offset: string): void;
28
30
  }
29
- export declare class RowContainerCtrl extends BeanStub {
31
+ export declare class RowContainerCtrl extends BeanStub implements ScrollPartner {
30
32
  private dragService;
31
33
  private ctrlsService;
32
34
  private columnViewportService;
@@ -51,13 +53,15 @@ export declare class RowContainerCtrl extends BeanStub {
51
53
  getContainerElement(): HTMLElement;
52
54
  getViewportSizeFeature(): ViewportSizeFeature | undefined;
53
55
  setComp(view: IRowContainerComp, eContainer: HTMLElement, eViewport: HTMLElement): void;
56
+ onScrollCallback(fn: () => void): void;
54
57
  private addListeners;
55
58
  private listenOnDomOrder;
56
- private stopHScrollOnPinnedRows;
57
59
  onDisplayedColumnsChanged(): void;
58
60
  private onDisplayedColumnsWidthChanged;
59
61
  private addPreventScrollWhileDragging;
60
62
  onHorizontalViewportChanged(afterScroll?: boolean): void;
63
+ hasHorizontalScrollGap(): boolean;
64
+ hasVerticalScrollGap(): boolean;
61
65
  getCenterWidth(): number;
62
66
  getCenterViewportScrollLeft(): number;
63
67
  registerViewportResizeListener(listener: () => void): void;
@@ -65,7 +69,7 @@ export declare class RowContainerCtrl extends BeanStub {
65
69
  getViewportScrollLeft(): number;
66
70
  isHorizontalScrollShowing(): boolean;
67
71
  getViewportElement(): HTMLElement;
68
- setContainerTranslateX(amount: number): void;
72
+ setHorizontalScroll(offset: number): void;
69
73
  getHScrollPosition(): {
70
74
  left: number;
71
75
  right: number;
@@ -2,7 +2,7 @@ import { BeanStub } from '../context/beanStub';
2
2
  import type { BeanCollection } from '../context/context';
3
3
  import type { DragAndDropIcon, DraggingEvent, DropTarget } from '../dragAndDrop/dragAndDropService';
4
4
  import { DragSourceType } from '../dragAndDrop/dragAndDropService';
5
- import type { RowDragEndEvent, RowDragEnterEvent, RowDragLeaveEvent, RowDragMoveEvent } from '../events';
5
+ import type { RowDragCancelEvent, RowDragEndEvent, RowDragEnterEvent, RowDragLeaveEvent, RowDragMoveEvent } from '../events';
6
6
  export interface RowDropZoneEvents {
7
7
  /** Callback function that will be executed when the rowDrag enters the target. */
8
8
  onDragEnter?: (params: RowDragEnterEvent) => void;
@@ -15,6 +15,7 @@ export interface RowDropZoneEvents {
15
15
  onDragging?: (params: RowDragMoveEvent) => void;
16
16
  /** Callback function that will be executed when the rowDrag drops rows within the target. */
17
17
  onDragStop?: (params: RowDragEndEvent) => void;
18
+ onDragCancel?: (params: RowDragCancelEvent) => void;
18
19
  }
19
20
  export interface RowDropZoneParams extends RowDropZoneEvents {
20
21
  /** A callback method that returns the DropZone HTMLElement. */
@@ -47,7 +48,6 @@ export declare class RowDragFeature extends BeanStub implements DropTarget {
47
48
  onDragEnter(draggingEvent: DraggingEvent): void;
48
49
  onDragging(draggingEvent: DraggingEvent): void;
49
50
  private isFromThisGrid;
50
- private isDropZoneWithinThisGrid;
51
51
  private onEnterOrDragging;
52
52
  private doManagedDrag;
53
53
  private getRowIndexNumber;
@@ -62,5 +62,6 @@ export declare class RowDragFeature extends BeanStub implements DropTarget {
62
62
  private dispatchGridEvent;
63
63
  onDragLeave(draggingEvent: DraggingEvent): void;
64
64
  onDragStop(draggingEvent: DraggingEvent): void;
65
+ onDragCancel(draggingEvent: DraggingEvent): void;
65
66
  private stopDragging;
66
67
  }
@@ -9,15 +9,23 @@ export declare class ScrollVisibleService extends BeanStub implements NamedBean
9
9
  beanName: "scrollVisibleService";
10
10
  private ctrlsService;
11
11
  private columnAnimationService;
12
+ private scrollbarWidth;
12
13
  wireBeans(beans: BeanCollection): void;
13
14
  private horizontalScrollShowing;
14
15
  private verticalScrollShowing;
16
+ private horizontalScrollGap;
17
+ private verticalScrollGap;
15
18
  postConstruct(): void;
16
19
  onDisplayedColumnsChanged(): void;
17
20
  private onDisplayedColumnsWidthChanged;
18
- private update;
19
- private updateImpl;
21
+ onCentreViewportResized(): void;
22
+ private updateScrollVisible;
23
+ private updateScrollVisibleImpl;
24
+ private updateScrollGap;
20
25
  setScrollsVisible(params: SetScrollsVisibleParams): void;
21
26
  isHorizontalScrollShowing(): boolean;
22
27
  isVerticalScrollShowing(): boolean;
28
+ hasHorizontalScrollGap(): boolean;
29
+ hasVerticalScrollGap(): boolean;
30
+ getScrollbarWidth(): number;
23
31
  }
@@ -5,6 +5,7 @@ import type { LayoutView } from '../styling/layoutFeature';
5
5
  import type { ComponentSelector } from '../widgets/component';
6
6
  export interface IGridComp extends LayoutView {
7
7
  setRtlClass(cssClass: string): void;
8
+ setGridThemeClass(cssClass: string): void;
8
9
  destroyGridUi(): void;
9
10
  forceFocusOutOfContainer(up: boolean): void;
10
11
  getFocusableContainers(): FocusableContainer[];
@@ -31,7 +32,6 @@ export declare class GridCtrl extends BeanStub {
31
32
  isDetailGrid(): boolean;
32
33
  getOptionalSelectors(): OptionalGridComponents;
33
34
  private onGridSizeChanged;
34
- private addRtlSupport;
35
35
  destroyGridUi(): void;
36
36
  getGui(): HTMLElement;
37
37
  setResizeCursor(on: boolean): void;
@@ -41,7 +41,11 @@ export declare class GridCtrl extends BeanStub {
41
41
  forceFocusOutOfContainer(up?: boolean): void;
42
42
  addFocusableContainer(container: FocusableContainer): void;
43
43
  removeFocusableContainer(container: FocusableContainer): void;
44
+ allowFocusForNextCoreContainer(up?: boolean): void;
45
+ private getNextFocusableIndex;
44
46
  private focusContainer;
45
47
  private getFocusableContainers;
48
+ private updateGridThemeClass;
49
+ private handleThemeChange;
46
50
  destroy(): void;
47
51
  }
@@ -1,13 +1,7 @@
1
- import type { Module } from './interfaces/iModule';
2
1
  import { ModuleNames } from './modules/moduleNames';
3
- import { ValidationService } from './validation/validationService';
4
2
  export declare const GridCoreModule: {
5
3
  version: string;
6
4
  moduleName: ModuleNames;
7
5
  };
8
- export declare const ValidationsModule: {
9
- version: string;
10
- moduleName: string;
11
- beans: (typeof ValidationService)[];
12
- };
13
- export declare const CommunityFeaturesModule: Module;
6
+ export declare const ValidationsModule: import("./interfaces/iModule").Module;
7
+ export declare const CommunityFeaturesModule: import("./interfaces/iModule").Module;
@@ -1,13 +1,12 @@
1
1
  import type { NamedBean } from './context/bean';
2
2
  import { BeanStub } from './context/beanStub';
3
3
  import type { BeanCollection } from './context/context';
4
- import type { DomLayoutType, GetRowIdFunc, GridOptions } from './entities/gridOptions';
4
+ import type { GridOptions } from './entities/gridOptions';
5
+ import type { Environment } from './environment';
5
6
  import type { AgEventType } from './eventTypes';
6
7
  import type { AgEvent } from './events';
7
- import type { GetGroupAggFilteringParams, GetGroupIncludeFooterParams } from './interfaces/iCallbackParams';
8
8
  import type { AgGridCommon, WithoutGridCommon } from './interfaces/iCommon';
9
- import type { RowModelType } from './interfaces/iRowModel';
10
- import type { IRowNode } from './interfaces/iRowNode';
9
+ import type { ModuleNames } from './modules/moduleNames';
11
10
  import type { AnyGridOptions } from './propertyKeys';
12
11
  import { GRID_OPTION_DEFAULTS } from './validation/rules/gridOptionsValidations';
13
12
  type GetKeys<T, U> = {
@@ -22,8 +21,8 @@ type BooleanProps = Exclude<KeysOfType<boolean>, AnyGridOptions>;
22
21
  type NoArgFuncs = KeysOfType<() => any>;
23
22
  type AnyArgFuncs = KeysOfType<(arg: 'NO_MATCH') => any>;
24
23
  type CallbackProps = Exclude<KeysOfType<(params: AgGridCommon<any, any>) => any>, NoArgFuncs | AnyArgFuncs>;
25
- type ExtractParamsFromCallback<TCallback> = TCallback extends (params: infer PA) => any ? PA : never;
26
- type ExtractReturnTypeFromCallback<TCallback> = TCallback extends (params: AgGridCommon<any, any>) => infer RT ? RT : never;
24
+ export type ExtractParamsFromCallback<TCallback> = TCallback extends (params: infer PA) => any ? PA : never;
25
+ export type ExtractReturnTypeFromCallback<TCallback> = TCallback extends (params: AgGridCommon<any, any>) => infer RT ? RT : never;
27
26
  type WrappedCallback<K extends CallbackProps, OriginalCallback extends GridOptions[K]> = undefined | ((params: WithoutGridCommon<ExtractParamsFromCallback<OriginalCallback>>) => ExtractReturnTypeFromCallback<OriginalCallback>);
28
27
  export interface PropertyChangeSet {
29
28
  /** Unique id which can be used to link changes of multiple properties that were updated together.
@@ -56,12 +55,12 @@ export declare function getCoercedGridOptions(gridOptions: GridOptions): GridOpt
56
55
  export declare class GridOptionsService extends BeanStub implements NamedBean {
57
56
  beanName: "gos";
58
57
  private gridOptions;
59
- private eGridDiv;
58
+ eGridDiv: HTMLElement;
60
59
  private validationService?;
61
- private environment;
60
+ environment: Environment;
62
61
  private api;
62
+ private gridId;
63
63
  wireBeans(beans: BeanCollection): void;
64
- private scrollbarWidth;
65
64
  private domDataKey;
66
65
  private get gridOptionsContext();
67
66
  private propertyEventService;
@@ -96,37 +95,10 @@ export declare class GridOptionsService extends BeanStub implements NamedBean {
96
95
  addPropertyEventListener<K extends keyof GridOptions>(key: K, listener: PropertyValueChangedListener<K>): void;
97
96
  removePropertyEventListener<K extends keyof GridOptions>(key: K, listener: PropertyValueChangedListener<K>): void;
98
97
  globalEventHandlerFactory: (restrictToSyncOnly?: boolean) => (eventName: AgEventType, event?: any) => void;
99
- getScrollbarWidth(): number;
100
- isRowModelType(rowModelType: RowModelType): boolean;
101
- isDomLayout(domLayout: DomLayoutType): boolean;
102
- isRowSelection(): boolean;
103
- useAsyncEvents(): boolean;
104
- isGetRowHeightFunction(): boolean;
105
- getRowHeightForNode(rowNode: IRowNode, allowEstimate?: boolean, defaultRowHeight?: number): {
106
- height: number;
107
- estimated: boolean;
108
- };
109
- private getMasterDetailRowHeight;
110
- getRowHeightAsNumber(): number;
111
- private isNumeric;
112
98
  getDomDataKey(): string;
113
- getDomData(element: Node | null, key: string): any;
114
- setDomData(element: Element, key: string, value: any): any;
115
- getDocument(): Document;
116
- getWindow(): Window & typeof globalThis;
117
- getRootNode(): Document | ShadowRoot;
118
- getActiveDomElement(): Element | null;
119
- getAsyncTransactionWaitMillis(): number | undefined;
120
- isAnimateRows(): NonNullable<boolean | undefined>;
121
- isGroupRowsSticky(): boolean;
122
- isColumnsSortingCoupledToGroup(): boolean;
123
- getGroupAggFiltering(): ((params: WithoutGridCommon<GetGroupAggFilteringParams>) => boolean) | undefined;
124
- getGrandTotalRow(): 'top' | 'bottom' | undefined;
125
- getGroupTotalRowCallback(): (params: WithoutGridCommon<GetGroupIncludeFooterParams>) => 'top' | 'bottom' | undefined;
126
- isGroupMultiAutoColumn(): NonNullable<boolean | undefined>;
127
- isGroupUseEntireRow(pivotMode: boolean): boolean;
128
99
  getGridCommonParams<TData = any, TContext = any>(): AgGridCommon<TData, TContext>;
129
100
  addGridCommonParams<T extends AgGridCommon<TData, TContext>, TData = any, TContext = any>(params: WithoutGridCommon<T>): T;
130
- getRowIdCallback<TData = any>(): ((params: WithoutGridCommon<ExtractParamsFromCallback<GetRowIdFunc<TData>>>) => ExtractReturnTypeFromCallback<GetRowIdFunc<TData>>) | undefined;
101
+ assertModuleRegistered(moduleName: ModuleNames, reason: string): boolean;
102
+ isModuleRegistered(moduleName: ModuleNames): boolean;
131
103
  }
132
104
  export {};
@@ -0,0 +1,54 @@
1
+ import type { DomLayoutType, FillHandleOptions, GetRowIdFunc, GroupSelectionMode, IsRowSelectable, MultiRowSelectionOptions, RowSelectionOptions, SelectionOptions, SingleRowSelectionOptions } from './entities/gridOptions';
2
+ import type { ExtractParamsFromCallback, ExtractReturnTypeFromCallback, GridOptionsService } from './gridOptionsService';
3
+ import type { GetGroupAggFilteringParams, GetGroupIncludeFooterParams } from './interfaces/iCallbackParams';
4
+ import type { WithoutGridCommon } from './interfaces/iCommon';
5
+ import type { IRowNode } from './interfaces/iRowNode';
6
+ export declare function _isClientSideRowModel(gos: GridOptionsService): boolean;
7
+ export declare function _isServerSideRowModel(gos: GridOptionsService): boolean;
8
+ export declare function _isDomLayout(gos: GridOptionsService, domLayout: DomLayoutType): boolean;
9
+ export declare function _isRowSelection(gos: GridOptionsService): boolean;
10
+ export declare function _useAsyncEvents(gos: GridOptionsService): boolean;
11
+ export declare function _isGetRowHeightFunction(gos: GridOptionsService): boolean;
12
+ export declare function _shouldMaintainColumnOrder(gos: GridOptionsService, isPivotColumns: boolean): boolean;
13
+ export declare function _getRowHeightForNode(gos: GridOptionsService, rowNode: IRowNode, allowEstimate?: boolean, defaultRowHeight?: number): {
14
+ height: number;
15
+ estimated: boolean;
16
+ };
17
+ export declare function _getRowHeightAsNumber(gos: GridOptionsService): number;
18
+ export declare function _getDomData(gos: GridOptionsService, element: Node | null, key: string): any;
19
+ export declare function _setDomData(gos: GridOptionsService, element: Element, key: string, value: any): any;
20
+ export declare function _getDocument(gos: GridOptionsService): Document;
21
+ export declare function _getWindow(gos: GridOptionsService): Window & typeof globalThis;
22
+ export declare function _getRootNode(gos: GridOptionsService): Document | ShadowRoot;
23
+ export declare function _getActiveDomElement(gos: GridOptionsService): Element | null;
24
+ export declare function _isNothingFocused(gos: GridOptionsService): boolean;
25
+ export declare function _isAnimateRows(gos: GridOptionsService): NonNullable<boolean | undefined>;
26
+ export declare function _isGroupRowsSticky(gos: GridOptionsService): boolean;
27
+ export declare function _isColumnsSortingCoupledToGroup(gos: GridOptionsService): boolean;
28
+ export declare function _getGroupAggFiltering(gos: GridOptionsService): ((params: WithoutGridCommon<GetGroupAggFilteringParams>) => boolean) | undefined;
29
+ export declare function _getGrandTotalRow(gos: GridOptionsService): 'top' | 'bottom' | undefined;
30
+ export declare function _getGroupTotalRowCallback(gos: GridOptionsService): (params: WithoutGridCommon<GetGroupIncludeFooterParams>) => 'top' | 'bottom' | undefined;
31
+ export declare function _isGroupMultiAutoColumn(gos: GridOptionsService): NonNullable<boolean | undefined>;
32
+ export declare function _isGroupUseEntireRow(gos: GridOptionsService, pivotMode: boolean): boolean;
33
+ export declare function _getRowIdCallback<TData = any>(gos: GridOptionsService): ((params: WithoutGridCommon<ExtractParamsFromCallback<GetRowIdFunc<TData>>>) => ExtractReturnTypeFromCallback<GetRowIdFunc<TData>>) | undefined;
34
+ /** Get the selection checkbox configuration. Defaults to enabled. */
35
+ export declare function _getCheckboxes(selection: SelectionOptions): NonNullable<SingleRowSelectionOptions['checkboxes']> | NonNullable<MultiRowSelectionOptions['checkboxes']>;
36
+ /** Get the header checkbox configuration. Defaults to enabled in `multiRow`, otherwise disabled. */
37
+ export declare function _getHeaderCheckbox(selection: SelectionOptions): boolean;
38
+ /** Get the display configuration for disabled checkboxes. Defaults to displaying disabled checkboxes. */
39
+ export declare function _getHideDisabledCheckboxes(selection: SelectionOptions): boolean;
40
+ export declare function _isUsingNewSelectionAPI(gos: GridOptionsService): boolean;
41
+ export declare function _getSuppressMultiRanges(gos: GridOptionsService): boolean;
42
+ export declare function _isCellSelectionEnabled(gos: GridOptionsService): boolean;
43
+ export declare function _isRangeHandleEnabled(gos: GridOptionsService): boolean;
44
+ export declare function _isFillHandleEnabled(gos: GridOptionsService): boolean;
45
+ export declare function _getFillHandle(gos: GridOptionsService): FillHandleOptions | undefined;
46
+ export declare function _getEnableSelection(gos: GridOptionsService): boolean;
47
+ export declare function _getEnableDeselection(gos: GridOptionsService): boolean;
48
+ export declare function _getIsRowSelectable(gos: GridOptionsService): IsRowSelectable | undefined;
49
+ export declare function _getRowSelectionMode(gos: GridOptionsService): RowSelectionOptions['mode'] | undefined;
50
+ export declare function _isMultiRowSelection(gos: GridOptionsService): boolean;
51
+ export declare function _getEnableMultiSelectWithClick(gos: GridOptionsService): boolean;
52
+ export declare function _getGroupSelection(gos: GridOptionsService): GroupSelectionMode | undefined;
53
+ export declare function _getGroupSelectsDescendants(gos: GridOptionsService): boolean;
54
+ export declare function _isSetFilterByDefault(gos: GridOptionsService): boolean;
@@ -21,6 +21,7 @@ export interface IHeaderResizeFeature {
21
21
  export type HeaderCellCtrlInstanceId = BrandedType<string, 'HeaderCellCtrlInstanceId'>;
22
22
  export declare abstract class AbstractHeaderCellCtrl<TComp extends IAbstractHeaderCellComp = any, TColumn extends AgColumn | AgColumnGroup = any, TFeature extends IHeaderResizeFeature = any> extends BeanStub {
23
23
  static DOM_DATA_KEY_HEADER_CTRL: string;
24
+ readonly instanceId: HeaderCellCtrlInstanceId;
24
25
  private pinnedWidthService;
25
26
  protected focusService: FocusService;
26
27
  protected userComponentFactory: UserComponentFactory;
@@ -29,7 +30,6 @@ export declare abstract class AbstractHeaderCellCtrl<TComp extends IAbstractHead
29
30
  protected menuService: MenuService;
30
31
  wireBeans(beans: BeanCollection): void;
31
32
  protected beans: BeanCollection;
32
- private instanceId;
33
33
  private columnGroupChild;
34
34
  private parentRowCtrl;
35
35
  private isResizing;
@@ -47,12 +47,15 @@ export declare abstract class AbstractHeaderCellCtrl<TComp extends IAbstractHead
47
47
  postConstruct(): void;
48
48
  protected shouldStopEventPropagation(e: KeyboardEvent): boolean;
49
49
  protected getWrapperHasFocus(): boolean;
50
- protected setGui(eGui: HTMLElement): void;
50
+ protected setGui(eGui: HTMLElement, compBean: BeanStub): void;
51
51
  private onGuiFocus;
52
+ protected setupAutoHeight(params: {
53
+ wrapperElement: HTMLElement;
54
+ checkMeasuringCallback?: (callback: () => void) => void;
55
+ compBean: BeanStub;
56
+ }): void;
52
57
  protected onDisplayedColumnsChanged(): void;
53
- private refreshFirstAndLastStyles;
54
- private refreshAriaColIndex;
55
- protected addResizeAndMoveKeyboardListeners(): void;
58
+ protected addResizeAndMoveKeyboardListeners(compBean: BeanStub): void;
56
59
  private refreshTabIndex;
57
60
  private onGuiKeyDown;
58
61
  private getViewportAdjustedResizeDiff;
@@ -65,10 +68,10 @@ export declare abstract class AbstractHeaderCellCtrl<TComp extends IAbstractHead
65
68
  getRowIndex(): number;
66
69
  getParentRowCtrl(): HeaderRowCtrl;
67
70
  getPinned(): ColumnPinnedType;
68
- getInstanceId(): HeaderCellCtrlInstanceId;
69
71
  getColumnGroupChild(): AgColumn | AgColumnGroup;
70
72
  protected removeDragSource(): void;
71
73
  protected handleContextMenuMouseEvent(mouseEvent: MouseEvent | undefined, touchEvent: TouchEvent | undefined, column: AgColumn | AgProvidedColumnGroup): void;
72
74
  protected dispatchColumnMouseEvent(eventType: 'columnHeaderContextMenu' | 'columnHeaderClicked', column: AgColumn | AgProvidedColumnGroup): void;
75
+ protected clearComponent(): void;
73
76
  destroy(): void;
74
77
  }
@@ -1,8 +1,10 @@
1
1
  import type { UserCompDetails } from '../../../components/framework/userComponentFactory';
2
2
  import { HorizontalDirection } from '../../../constants/direction';
3
+ import type { BeanStub } from '../../../context/beanStub';
3
4
  import type { BeanCollection } from '../../../context/context';
4
5
  import type { AgColumn } from '../../../entities/agColumn';
5
6
  import type { ColumnSortState } from '../../../utils/aria';
7
+ import type { HeaderPosition } from '../../common/headerPosition';
6
8
  import type { HeaderRowCtrl } from '../../row/headerRowCtrl';
7
9
  import type { IAbstractHeaderCellComp } from '../abstractCell/abstractHeaderCellCtrl';
8
10
  import { AbstractHeaderCellCtrl } from '../abstractCell/abstractHeaderCellCtrl';
@@ -15,6 +17,7 @@ export interface IHeaderCellComp extends IAbstractHeaderCellComp {
15
17
  getUserCompInstance(): IHeader | undefined;
16
18
  }
17
19
  type HeaderAriaDescriptionKey = 'filter' | 'menu' | 'sort' | 'selectAll' | 'filterButton';
20
+ type RefreshFunction = 'updateSortable' | 'tooltip' | 'headerClasses' | 'wrapText' | 'measuring' | 'resize';
18
21
  export declare class HeaderCellCtrl extends AbstractHeaderCellCtrl<IHeaderCellComp, AgColumn, ResizeFeature> {
19
22
  private refreshFunctions;
20
23
  private selectAllFeature;
@@ -29,9 +32,10 @@ export declare class HeaderCellCtrl extends AbstractHeaderCellCtrl<IHeaderCellCo
29
32
  private ariaDescriptionProperties;
30
33
  private tooltipFeature;
31
34
  constructor(column: AgColumn, beans: BeanCollection, parentRowCtrl: HeaderRowCtrl);
32
- setComp(comp: IHeaderCellComp, eGui: HTMLElement, eResize: HTMLElement, eHeaderCompWrapper: HTMLElement): void;
35
+ setComp(comp: IHeaderCellComp, eGui: HTMLElement, eResize: HTMLElement, eHeaderCompWrapper: HTMLElement, compBean: BeanStub | undefined): void;
33
36
  protected resizeHeader(delta: number, shiftKey: boolean): void;
34
37
  protected moveHeader(hDirection: HorizontalDirection): void;
38
+ protected restoreFocus(previousPosition: HeaderPosition): void;
35
39
  private setupUserComp;
36
40
  private setCompDetails;
37
41
  private lookupUserCompDetails;
@@ -48,26 +52,23 @@ export declare class HeaderCellCtrl extends AbstractHeaderCellCtrl<IHeaderCellCo
48
52
  setDragSource(eSource: HTMLElement | undefined): void;
49
53
  private createDragItem;
50
54
  private updateState;
51
- addRefreshFunction(func: () => void): void;
55
+ setRefreshFunction(name: RefreshFunction, func: () => void): void;
52
56
  private refresh;
53
57
  private refreshHeaderComp;
54
58
  attemptHeaderCompRefresh(params: IHeaderParams): boolean;
55
59
  private calculateDisplayName;
56
60
  private checkDisplayName;
57
61
  private workOutDraggable;
58
- private onColumnRowGroupChanged;
59
- private onColumnPivotChanged;
60
- private onColumnValueChanged;
61
62
  private setupWidth;
62
63
  private setupMovingCss;
63
64
  private setupMenuClass;
64
65
  private setupSortableClass;
65
66
  private setupFilterClass;
66
67
  private setupWrapTextClass;
68
+ private onHeaderHighlightChanged;
67
69
  protected onDisplayedColumnsChanged(): void;
68
70
  private onHeaderHeightChanged;
69
71
  private refreshSpanHeaderHeight;
70
- private setupAutoHeight;
71
72
  private refreshAriaSort;
72
73
  private refreshAriaMenu;
73
74
  private refreshAriaFilterButton;
@@ -8,10 +8,12 @@ export declare class SelectAllFeature extends BeanStub {
8
8
  wireBeans(beans: BeanCollection): void;
9
9
  private cbSelectAllVisible;
10
10
  private processingEventFromCheckbox;
11
+ private selectionOptions;
11
12
  private column;
12
13
  private headerCellCtrl;
13
14
  private cbSelectAll;
14
15
  constructor(column: AgColumn);
16
+ postConstruct(): void;
15
17
  onSpaceKeyDown(e: KeyboardEvent): void;
16
18
  getCheckboxGui(): HTMLElement;
17
19
  setComp(ctrl: HeaderCellCtrl): void;
@@ -25,6 +27,10 @@ export declare class SelectAllFeature extends BeanStub {
25
27
  private checkSelectionType;
26
28
  private checkRightRowModelType;
27
29
  private onCbSelectAll;
30
+ /**
31
+ * Checkbox is enabled when either the `headerCheckbox` option is enabled in the new selection API
32
+ * or `headerCheckboxSelection` is enabled in the legacy API.
33
+ */
28
34
  private isCheckboxSelection;
29
35
  private isFilteredOnly;
30
36
  private isCurrentPageOnly;
@@ -2,6 +2,7 @@ import { AbstractHeaderCellComp } from '../abstractCell/abstractHeaderCellComp';
2
2
  import type { HeaderGroupCellCtrl } from './headerGroupCellCtrl';
3
3
  export declare class HeaderGroupCellComp extends AbstractHeaderCellComp<HeaderGroupCellCtrl> {
4
4
  private eResize;
5
+ private readonly eHeaderCompWrapper;
5
6
  private headerGroupComp;
6
7
  constructor(ctrl: HeaderGroupCellCtrl);
7
8
  postConstruct(): void;