ag-grid-community 32.2.2 → 32.3.1

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 (35) hide show
  1. package/LICENSE.txt +1 -1
  2. package/dist/ag-grid-community.js +286 -153
  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 +285 -152
  6. package/dist/package/main.cjs.js +285 -152
  7. package/dist/package/main.cjs.min.js +16 -16
  8. package/dist/package/main.esm.min.mjs +46 -46
  9. package/dist/package/main.esm.mjs +285 -152
  10. package/dist/package/package.json +8 -8
  11. package/dist/types/client-side-row-model/clientSideRowModel/clientSideRowModel.d.ts +3 -0
  12. package/dist/types/client-side-row-model/version.d.ts +1 -1
  13. package/dist/types/core/api/gridApi.d.ts +1 -1
  14. package/dist/types/core/entities/colDef.d.ts +2 -0
  15. package/dist/types/core/entities/gridOptions.d.ts +4 -2
  16. package/dist/types/core/gridBodyComp/viewportSizeFeature.d.ts +1 -0
  17. package/dist/types/core/headerRendering/cells/column/selectAllFeature.d.ts +0 -2
  18. package/dist/types/core/headerRendering/cells/columnGroup/headerGroupCellComp.d.ts +1 -0
  19. package/dist/types/core/headerRendering/cells/columnGroup/headerGroupCellCtrl.d.ts +3 -0
  20. package/dist/types/core/interfaces/iClientSideRowModel.d.ts +1 -1
  21. package/dist/types/core/misc/menuService.d.ts +7 -6
  22. package/dist/types/core/utils/fuzzyMatch.d.ts +7 -4
  23. package/dist/types/core/version.d.ts +1 -1
  24. package/dist/types/core/widgets/popupService.d.ts +1 -1
  25. package/dist/types/core/widgets/tooltipStateManager.d.ts +1 -0
  26. package/dist/types/csv-export/version.d.ts +1 -1
  27. package/dist/types/infinite-row-model/version.d.ts +1 -1
  28. package/dist/types/theming/styles/core/GENERATED-core.d.ts +1 -1
  29. package/dist/types/theming/version.d.ts +1 -1
  30. package/package.json +8 -8
  31. package/styles/_css-content.scss +34 -16
  32. package/styles/ag-grid-no-native-widgets.css +17 -8
  33. package/styles/ag-grid-no-native-widgets.min.css +3 -3
  34. package/styles/ag-grid.css +17 -8
  35. package/styles/ag-grid.min.css +3 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-community",
3
- "version": "32.2.2",
3
+ "version": "32.3.1",
4
4
  "description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
5
5
  "main": "./dist/package/main.cjs.js",
6
6
  "types": "./dist/types/main.d.ts",
@@ -88,19 +88,19 @@
88
88
  ],
89
89
  "homepage": "https://www.ag-grid.com/",
90
90
  "dependencies": {
91
- "ag-charts-types": "10.2.0"
91
+ "ag-charts-types": "10.3.1"
92
92
  },
93
93
  "devDependencies": {
94
94
  "source-map-loader": "^5.0.0",
95
95
  "gulp": "^4.0.0",
96
96
  "gulp-replace": "^1.0.0",
97
97
  "gulp-rename": "^2.0.0",
98
- "@ag-grid-community/client-side-row-model": "32.2.2",
99
- "@ag-grid-community/core": "32.2.2",
100
- "@ag-grid-community/csv-export": "32.2.2",
101
- "@ag-grid-community/infinite-row-model": "32.2.2",
102
- "@ag-grid-community/styles": "32.2.2",
103
- "@ag-grid-community/theming": "32.2.2",
98
+ "@ag-grid-community/client-side-row-model": "32.3.1",
99
+ "@ag-grid-community/core": "32.3.1",
100
+ "@ag-grid-community/csv-export": "32.3.1",
101
+ "@ag-grid-community/infinite-row-model": "32.3.1",
102
+ "@ag-grid-community/styles": "32.3.1",
103
+ "@ag-grid-community/theming": "32.3.1",
104
104
  "ts-loader": "^9.5.1",
105
105
  "style-loader": "^3.3.4",
106
106
  "css-loader": "^6.10.0",
@@ -54,6 +54,8 @@ export declare class ClientSideRowModel extends BeanStub implements IClientSideR
54
54
  highlightRowAtPixel(rowNode: RowNode | null, pixel?: number): void;
55
55
  getHighlightPosition(pixel: number, rowNode?: RowNode): RowHighlightPosition;
56
56
  getLastHighlightedRowNode(): RowNode | null;
57
+ private isHighlightingCurrentPosition;
58
+ private clearHighlightedRow;
57
59
  isLastRowIndexKnown(): boolean;
58
60
  getRowCount(): number;
59
61
  /**
@@ -138,4 +140,5 @@ export declare class ClientSideRowModel extends BeanStub implements IClientSideR
138
140
  private onGridStylesChanges;
139
141
  private onGridReady;
140
142
  isRowDataLoaded(): boolean;
143
+ destroy(): void;
141
144
  }
@@ -1 +1 @@
1
- export declare const VERSION = "32.2.2";
1
+ export declare const VERSION = "32.3.1";
@@ -673,7 +673,7 @@ export interface _SideBarGridApi<TData> {
673
673
  closeToolPanel(): void;
674
674
  /** Returns the ID of the currently shown tool panel if any, otherwise `null`. */
675
675
  getOpenedToolPanel(): string | null;
676
- /** Force refresh all tool panels by calling their `refresh` method. */
676
+ /** Force refreshes all tool panels by calling their `refresh` method. */
677
677
  refreshToolPanel(): void;
678
678
  /** Returns `true` if the tool panel is showing, otherwise `false`. */
679
679
  isToolPanelShowing(): boolean;
@@ -205,6 +205,8 @@ export interface ColDef<TData = any, TValue = any> extends AbstractColDef<TData,
205
205
  */
206
206
  checkboxSelection?: boolean | CheckboxSelectionCallback<TData, TValue>;
207
207
  /**
208
+ * @deprecated v32.2 Use the new selection API instead. See `GridOptions.rowSelection`
209
+ *
208
210
  * Set to `true` to display a disabled checkbox when row is not selectable and checkboxes are enabled.
209
211
  * @default false
210
212
  */
@@ -1628,7 +1628,7 @@ export interface GridOptions<TData = any> {
1628
1628
  processRowPostCreate?: (params: ProcessRowParams<TData>) => void;
1629
1629
  /**
1630
1630
  * Callback to be used to determine which rows are selectable. By default rows are selectable, so return `false` to make a row un-selectable.
1631
- * @deprecated v32.2 Use `cellSelection.isRowSelectable` instead
1631
+ * @deprecated v32.2 Use `rowSelection.isRowSelectable` instead
1632
1632
  */
1633
1633
  isRowSelectable?: IsRowSelectable<TData>;
1634
1634
  /**
@@ -1637,6 +1637,8 @@ export interface GridOptions<TData = any> {
1637
1637
  isRowMaster?: IsRowMaster<TData>;
1638
1638
  /**
1639
1639
  * Callback to fill values instead of simply copying values or increasing number values using linear progression.
1640
+ *
1641
+ * @deprecated v32.2 Use `cellSelection.handle.setFillValue` instead
1640
1642
  */
1641
1643
  fillOperation?: (params: FillOperationParams<TData>) => any;
1642
1644
  /**
@@ -2291,7 +2293,7 @@ export interface MultiRowSelectionOptions<TData = any, TValue = any> extends Com
2291
2293
  */
2292
2294
  selectAll?: SelectAllMode;
2293
2295
  /**
2294
- * If `true` or the callback returns `true`, a 'select all' checkbox will be put into the header.
2296
+ * If `true` a 'select all' checkbox will be put into the header.
2295
2297
  * @default true
2296
2298
  */
2297
2299
  headerCheckbox?: boolean;
@@ -9,6 +9,7 @@ export declare class ViewportSizeFeature extends BeanStub {
9
9
  private columnSizeService;
10
10
  private scrollVisibleService;
11
11
  private columnViewportService;
12
+ private animationFrameService;
12
13
  wireBeans(beans: BeanCollection): void;
13
14
  private centerContainerCtrl;
14
15
  private gridBodyCtrl;
@@ -8,12 +8,10 @@ export declare class SelectAllFeature extends BeanStub {
8
8
  wireBeans(beans: BeanCollection): void;
9
9
  private cbSelectAllVisible;
10
10
  private processingEventFromCheckbox;
11
- private selectionOptions;
12
11
  private column;
13
12
  private headerCellCtrl;
14
13
  private cbSelectAll;
15
14
  constructor(column: AgColumn);
16
- postConstruct(): void;
17
15
  onSpaceKeyDown(e: KeyboardEvent): void;
18
16
  getCheckboxGui(): HTMLElement;
19
17
  setComp(ctrl: HeaderCellCtrl): void;
@@ -8,4 +8,5 @@ export declare class HeaderGroupCellComp extends AbstractHeaderCellComp<HeaderGr
8
8
  postConstruct(): void;
9
9
  private setUserCompDetails;
10
10
  private afterHeaderCompCreated;
11
+ private addOrRemoveHeaderWrapperStyle;
11
12
  }
@@ -14,6 +14,8 @@ import type { IHeaderGroupComp } from './headerGroupComp';
14
14
  export interface IHeaderGroupCellComp extends IAbstractHeaderCellComp {
15
15
  setResizableDisplayed(displayed: boolean): void;
16
16
  setWidth(width: string): void;
17
+ setHeaderWrapperMaxHeight(value: number | null): void;
18
+ setHeaderWrapperHidden(value: boolean): void;
17
19
  setAriaExpanded(expanded: 'true' | 'false' | undefined): void;
18
20
  setUserCompDetails(compDetails: UserCompDetails): void;
19
21
  getUserCompInstance(): IHeaderGroupComp | undefined;
@@ -24,6 +26,7 @@ export declare class HeaderGroupCellCtrl extends AbstractHeaderCellCtrl<IHeaderG
24
26
  private tooltipFeature;
25
27
  constructor(columnGroup: AgColumnGroup, beans: BeanCollection, parentRowCtrl: HeaderRowCtrl);
26
28
  setComp(comp: IHeaderGroupCellComp, eGui: HTMLElement, eResize: HTMLElement, eHeaderCompWrapper: HTMLElement, compBean: BeanStub<any> | undefined): void;
29
+ private refreshMaxHeaderHeight;
27
30
  private addHighlightListeners;
28
31
  private onLeafColumnHighlightChanged;
29
32
  getColumn(): AgColumnGroup;
@@ -4,7 +4,7 @@ import type { ChangedPath } from '../utils/changedPath';
4
4
  import type { IRowModel } from './iRowModel';
5
5
  import type { RowDataTransaction } from './rowDataTransaction';
6
6
  import type { RowNodeTransaction } from './rowNodeTransaction';
7
- export type ClientSideRowModelStep = `${ClientSideRowModelSteps}`;
7
+ export type ClientSideRowModelStep = 'everything' | 'group' | 'filter' | 'sort' | 'map' | 'aggregate' | 'filter_aggregates' | 'pivot' | 'nothing';
8
8
  export declare enum ClientSideRowModelSteps {
9
9
  EVERYTHING = "group",
10
10
  FILTER = "filter",
@@ -7,6 +7,7 @@ import type { RowNode } from '../entities/rowNode';
7
7
  import type { ContainerType } from '../interfaces/iAfterGuiAttachedParams';
8
8
  import type { Column } from '../interfaces/iColumn';
9
9
  import type { ShowColumnChooserParams } from '../interfaces/iColumnChooserFactory';
10
+ import type { IRowNode } from '../interfaces/iRowNode';
10
11
  interface BaseShowColumnMenuParams {
11
12
  column?: Column;
12
13
  }
@@ -28,11 +29,11 @@ interface AutoShowMenuParams {
28
29
  export type ShowColumnMenuParams = (MouseShowMenuParams | ButtonShowMenuParams | AutoShowMenuParams) & BaseShowColumnMenuParams;
29
30
  export type ShowFilterMenuParams = (MouseShowMenuParams | ButtonShowMenuParams | AutoShowMenuParams) & BaseShowFilterMenuParams;
30
31
  export interface ShowContextMenuParams {
31
- /** The `RowNode` associated with the Context Menu */
32
- rowNode?: RowNode | null;
33
- /** The `Column` associated with the Context Menu */
32
+ /** The row node associated with the Context Menu */
33
+ rowNode?: IRowNode | null;
34
+ /** The column associated with the Context Menu */
34
35
  column?: Column | null;
35
- /** The value that will be passed to the Context Menu (useful with `getContextMenuItems`). If none is passed, and `RowNode` and `Column` are provided, this will be the respective Cell value */
36
+ /** The value that will be passed to the Context Menu (useful with `getContextMenuItems`). If none is passed, and `rowNode` and `column` are provided, this will be the respective Cell value */
36
37
  value: any;
37
38
  }
38
39
  interface MouseShowContextMenuParams {
@@ -43,9 +44,9 @@ interface TouchShowContextMenuParam {
43
44
  }
44
45
  export type EventShowContextMenuParams = (MouseShowContextMenuParams | TouchShowContextMenuParam) & ShowContextMenuParams;
45
46
  export interface IContextMenuParams extends ShowContextMenuParams {
46
- /** The x position for the Context Menu, if no value is given and `RowNode` and `Column` are provided, this will default to be middle of the cell, otherwise it will be `0`. */
47
+ /** The x position for the Context Menu, if no value is given and `rowNode` and `column` are provided, this will default to be middle of the cell, otherwise it will be `0`. */
47
48
  x?: number;
48
- /** The y position for the Context Menu, if no value is given and `RowNode` and `Column` are provided, this will default to be middle of the cell, otherwise it will be `0`. */
49
+ /** The y position for the Context Menu, if no value is given and `rowNode` and `column` are provided, this will default to be middle of the cell, otherwise it will be `0`. */
49
50
  y?: number;
50
51
  }
51
52
  export declare class MenuService extends BeanStub implements NamedBean {
@@ -1,12 +1,15 @@
1
- export declare function _fuzzyCheckStrings(inputValues: string[], validValues: string[], allSuggestions: string[]): {
2
- [p: string]: string[];
3
- };
4
1
  /**
5
2
  *
6
3
  * @param {String} inputValue The value to be compared against a list of strings
7
4
  * @param allSuggestions The list of strings to be compared against
8
5
  */
9
- export declare function _fuzzySuggestions(inputValue: string, allSuggestions: string[], hideIrrelevant?: boolean, filterByPercentageOfBestMatch?: number): {
6
+ export declare function _fuzzySuggestions(params: {
7
+ inputValue: string;
8
+ allSuggestions: string[];
9
+ hideIrrelevant?: boolean;
10
+ filterByPercentageOfBestMatch?: number;
11
+ addSequentialWeight?: boolean;
12
+ }): {
10
13
  values: string[];
11
14
  indices: number[];
12
15
  };
@@ -1 +1 @@
1
- export declare const VERSION = "32.2.2";
1
+ export declare const VERSION = "32.3.1";
@@ -104,5 +104,5 @@ export declare class PopupService extends BeanStub implements NamedBean {
104
104
  private getWrapper;
105
105
  setAlwaysOnTop(ePopup: HTMLElement, alwaysOnTop?: boolean): void;
106
106
  /** @return true if moved */
107
- bringPopupToFront(ePopup: HTMLElement): boolean;
107
+ bringPopupToFront(ePopup: HTMLElement): void;
108
108
  }
@@ -34,6 +34,7 @@ export declare class TooltipStateManager extends BeanStub {
34
34
  private tooltipFocusOutListener;
35
35
  private onBodyScrollEventCallback;
36
36
  private onColumnMovedEventCallback;
37
+ private onDocumentKeyDownCallback;
37
38
  constructor(parentComp: TooltipParentComp, tooltipShowDelayOverride?: number | undefined, tooltipHideDelayOverride?: number | undefined, shouldDisplayTooltip?: (() => boolean) | undefined);
38
39
  postConstruct(): void;
39
40
  private getGridOptionsTooltipDelay;
@@ -1 +1 @@
1
- export declare const VERSION = "32.2.2";
1
+ export declare const VERSION = "32.3.1";
@@ -1 +1 @@
1
- export declare const VERSION = "32.2.2";
1
+ export declare const VERSION = "32.3.1";