ag-grid-community 32.2.0 → 32.2.2

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/dist/ag-grid-community.js +109 -125
  2. package/dist/ag-grid-community.min.js +1 -1
  3. package/dist/ag-grid-community.min.noStyle.js +1 -1
  4. package/dist/ag-grid-community.noStyle.js +109 -125
  5. package/dist/package/main.cjs.js +109 -125
  6. package/dist/package/main.cjs.min.js +13 -13
  7. package/dist/package/main.esm.min.mjs +56 -56
  8. package/dist/package/main.esm.mjs +109 -125
  9. package/dist/package/package.json +7 -7
  10. package/dist/types/client-side-row-model/version.d.ts +1 -1
  11. package/dist/types/core/api/gridApi.d.ts +4 -4
  12. package/dist/types/core/components/componentUtil.d.ts +1 -1
  13. package/dist/types/core/entities/colDef.d.ts +4 -4
  14. package/dist/types/core/entities/gridOptions.d.ts +28 -37
  15. package/dist/types/core/events.d.ts +3 -3
  16. package/dist/types/core/gridOptionsUtils.d.ts +8 -7
  17. package/dist/types/core/main.d.ts +2 -2
  18. package/dist/types/core/version.d.ts +1 -1
  19. package/dist/types/csv-export/version.d.ts +1 -1
  20. package/dist/types/infinite-row-model/version.d.ts +1 -1
  21. package/dist/types/main.d.ts +1 -0
  22. package/dist/types/theming/Part.d.ts +33 -0
  23. package/dist/types/theming/Theme.d.ts +39 -0
  24. package/dist/types/theming/main.d.ts +9 -0
  25. package/dist/types/theming/styles/core/GENERATED-core.d.ts +1 -0
  26. package/dist/types/theming/styles/core/core-css.d.ts +468 -0
  27. package/dist/types/theming/styles/parts/checkbox-style/GENERATED-checkbox-style-default.d.ts +1 -0
  28. package/dist/types/theming/styles/parts/checkbox-style/checkbox-styles.d.ts +56 -0
  29. package/dist/types/theming/styles/parts/color-scheme/color-schemes.d.ts +6 -0
  30. package/dist/types/theming/styles/parts/icon-set/alpine/GENERATED-icon-set-alpine.d.ts +1 -0
  31. package/dist/types/theming/styles/parts/icon-set/alpine/icon-set-alpine.d.ts +1 -0
  32. package/dist/types/theming/styles/parts/icon-set/icon-sets.d.ts +3 -0
  33. package/dist/types/theming/styles/parts/icon-set/material/GENERATED-icon-set-material.d.ts +1 -0
  34. package/dist/types/theming/styles/parts/icon-set/material/icon-set-material.d.ts +1 -0
  35. package/dist/types/theming/styles/parts/icon-set/quartz/GENERATED-icon-set-quartz.d.ts +1 -0
  36. package/dist/types/theming/styles/parts/icon-set/quartz/icon-set-quartz.d.ts +6 -0
  37. package/dist/types/theming/styles/parts/icon-set/quartz/quartz-icon-data.d.ts +3 -0
  38. package/dist/types/theming/styles/parts/input-style/GENERATED-input-style-base.d.ts +1 -0
  39. package/dist/types/theming/styles/parts/input-style/GENERATED-input-style-underlined.d.ts +1 -0
  40. package/dist/types/theming/styles/parts/input-style/input-styles.d.ts +70 -0
  41. package/dist/types/theming/styles/parts/tab-style/GENERATED-tab-style-base.d.ts +1 -0
  42. package/dist/types/theming/styles/parts/tab-style/GENERATED-tab-style-rolodex.d.ts +1 -0
  43. package/dist/types/theming/styles/parts/tab-style/tab-styles.d.ts +101 -0
  44. package/dist/types/theming/styles/parts/theme/themes.d.ts +3 -0
  45. package/dist/types/theming/theme-types.d.ts +206 -0
  46. package/dist/types/theming/theme-utils.d.ts +8 -0
  47. package/dist/types/theming/version.d.ts +1 -0
  48. package/package.json +7 -7
  49. package/dist/types/core/validation/rules/selectionValidations.d.ts +0 -3
@@ -1906,7 +1906,7 @@ var SortStage = class extends import_core8.BeanStub {
1906
1906
  };
1907
1907
 
1908
1908
  // community-modules/client-side-row-model/src/version.ts
1909
- var VERSION = "32.2.0";
1909
+ var VERSION = "32.2.2";
1910
1910
 
1911
1911
  // community-modules/client-side-row-model/src/clientSideRowModelModule.ts
1912
1912
  var ClientSideRowModelCoreModule = (0, import_core9._defineModule)({
@@ -2217,7 +2217,8 @@ __export(main_exports, {
2217
2217
  _isRowSelection: () => _isRowSelection,
2218
2218
  _isServerSideRowModel: () => _isServerSideRowModel,
2219
2219
  _isStopPropagationForAgGrid: () => _isStopPropagationForAgGrid,
2220
- _isUsingNewSelectionAPI: () => _isUsingNewSelectionAPI,
2220
+ _isUsingNewCellSelectionAPI: () => _isUsingNewCellSelectionAPI,
2221
+ _isUsingNewRowSelectionAPI: () => _isUsingNewRowSelectionAPI,
2221
2222
  _isVisible: () => _isVisible,
2222
2223
  _iterateObject: () => _iterateObject,
2223
2224
  _jsonEquals: () => _jsonEquals,
@@ -2824,48 +2825,52 @@ function _getRowIdCallback(gos) {
2824
2825
  };
2825
2826
  }
2826
2827
  function _getCheckboxes(selection) {
2827
- return (selection?.mode !== "cell" && selection?.checkboxes) ?? true;
2828
+ return selection?.checkboxes ?? true;
2828
2829
  }
2829
2830
  function _getHeaderCheckbox(selection) {
2830
2831
  return selection?.mode === "multiRow" && (selection.headerCheckbox ?? true);
2831
2832
  }
2832
2833
  function _getHideDisabledCheckboxes(selection) {
2833
- return (selection?.mode !== "cell" && selection?.hideDisabledCheckboxes) ?? false;
2834
+ return selection?.hideDisabledCheckboxes ?? false;
2834
2835
  }
2835
- function _isUsingNewSelectionAPI(gos) {
2836
- return gos.get("selection") !== void 0;
2836
+ function _isUsingNewRowSelectionAPI(gos) {
2837
+ const rowSelection = gos.get("rowSelection");
2838
+ return typeof rowSelection !== "string";
2839
+ }
2840
+ function _isUsingNewCellSelectionAPI(gos) {
2841
+ return gos.get("cellSelection") !== void 0;
2837
2842
  }
2838
2843
  function _getSuppressMultiRanges(gos) {
2839
- const selection = gos.get("selection");
2844
+ const selection = gos.get("cellSelection");
2840
2845
  const useNewAPI = selection !== void 0;
2841
2846
  if (!useNewAPI) {
2842
2847
  return gos.get("suppressMultiRangeSelection");
2843
2848
  }
2844
- return selection.mode === "cell" ? selection.suppressMultiRanges ?? false : false;
2849
+ return typeof selection !== "boolean" ? selection?.suppressMultiRanges ?? false : false;
2845
2850
  }
2846
2851
  function _isCellSelectionEnabled(gos) {
2847
- const selection = gos.get("selection");
2852
+ const selection = gos.get("cellSelection");
2848
2853
  const useNewAPI = selection !== void 0;
2849
- return useNewAPI ? selection.mode === "cell" : gos.get("enableRangeSelection");
2854
+ return useNewAPI ? !!selection : gos.get("enableRangeSelection");
2850
2855
  }
2851
2856
  function _isRangeHandleEnabled(gos) {
2852
- const selection = gos.get("selection");
2857
+ const selection = gos.get("cellSelection");
2853
2858
  const useNewAPI = selection !== void 0;
2854
2859
  if (!useNewAPI) {
2855
2860
  return gos.get("enableRangeHandle");
2856
2861
  }
2857
- return selection.mode === "cell" ? selection.handle?.mode === "range" : false;
2862
+ return typeof selection !== "boolean" ? selection.handle?.mode === "range" : false;
2858
2863
  }
2859
2864
  function _isFillHandleEnabled(gos) {
2860
- const selection = gos.get("selection");
2865
+ const selection = gos.get("cellSelection");
2861
2866
  const useNewAPI = selection !== void 0;
2862
2867
  if (!useNewAPI) {
2863
2868
  return gos.get("enableFillHandle");
2864
2869
  }
2865
- return selection.mode === "cell" ? selection.handle?.mode === "fill" : false;
2870
+ return typeof selection !== "boolean" ? selection.handle?.mode === "fill" : false;
2866
2871
  }
2867
2872
  function _getFillHandle(gos) {
2868
- const selection = gos.get("selection");
2873
+ const selection = gos.get("cellSelection");
2869
2874
  const useNewAPI = selection !== void 0;
2870
2875
  if (!useNewAPI) {
2871
2876
  return {
@@ -2875,12 +2880,11 @@ function _getFillHandle(gos) {
2875
2880
  suppressClearOnFillReduction: gos.get("suppressClearOnFillReduction")
2876
2881
  };
2877
2882
  }
2878
- return selection.mode === "cell" && selection.handle?.mode === "fill" ? selection.handle : void 0;
2883
+ return typeof selection !== "boolean" && selection.handle?.mode === "fill" ? selection.handle : void 0;
2879
2884
  }
2880
2885
  function _getEnableClickSelection(gos) {
2881
- const selection = gos.get("selection");
2882
- const useNewAPI = selection !== void 0;
2883
- if (!useNewAPI) {
2886
+ const selection = gos.get("rowSelection") ?? "single";
2887
+ if (typeof selection === "string") {
2884
2888
  const suppressRowClickSelection = gos.get("suppressRowClickSelection");
2885
2889
  const suppressRowDeselection = gos.get("suppressRowDeselection");
2886
2890
  if (suppressRowClickSelection && suppressRowDeselection) {
@@ -2893,7 +2897,7 @@ function _getEnableClickSelection(gos) {
2893
2897
  return true;
2894
2898
  }
2895
2899
  }
2896
- return selection?.mode !== "cell" ? selection?.enableClickSelection ?? false : false;
2900
+ return selection.mode === "singleRow" || selection.mode === "multiRow" ? selection.enableClickSelection ?? false : false;
2897
2901
  }
2898
2902
  function _getEnableSelection(gos) {
2899
2903
  const enableClickSelection = _getEnableClickSelection(gos);
@@ -2904,18 +2908,16 @@ function _getEnableDeselection(gos) {
2904
2908
  return enableClickSelection === true || enableClickSelection === "enableDeselection";
2905
2909
  }
2906
2910
  function _getIsRowSelectable(gos) {
2907
- const selection = gos.get("selection");
2908
- const useNewAPI = selection !== void 0;
2909
- if (!useNewAPI) {
2911
+ const selection = gos.get("rowSelection");
2912
+ if (typeof selection === "string") {
2910
2913
  return gos.get("isRowSelectable");
2911
2914
  }
2912
- return selection.mode !== "cell" ? selection.isRowSelectable : void 0;
2915
+ return selection?.isRowSelectable;
2913
2916
  }
2914
2917
  function _getRowSelectionMode(gos) {
2915
- const selection = gos.get("selection");
2916
- const useNewAPI = selection !== void 0;
2917
- if (!useNewAPI) {
2918
- switch (gos.get("rowSelection")) {
2918
+ const selection = gos.get("rowSelection");
2919
+ if (typeof selection === "string") {
2920
+ switch (selection) {
2919
2921
  case "multiple":
2920
2922
  return "multiRow";
2921
2923
  case "single":
@@ -2924,23 +2926,22 @@ function _getRowSelectionMode(gos) {
2924
2926
  return;
2925
2927
  }
2926
2928
  }
2927
- return selection.mode !== "cell" ? selection.mode : void 0;
2929
+ return selection?.mode;
2928
2930
  }
2929
2931
  function _isMultiRowSelection(gos) {
2930
- return _getRowSelectionMode(gos) === "multiRow";
2932
+ const mode = _getRowSelectionMode(gos);
2933
+ return mode === "multiRow";
2931
2934
  }
2932
- function _getEnableMultiSelectWithClick(gos) {
2933
- const selection = gos.get("selection");
2934
- const useNewAPI = selection !== void 0;
2935
- if (!useNewAPI) {
2935
+ function _getEnableSelectionWithoutKeys(gos) {
2936
+ const selection = gos.get("rowSelection");
2937
+ if (typeof selection === "string") {
2936
2938
  return gos.get("rowMultiSelectWithClick");
2937
2939
  }
2938
- return selection.mode === "multiRow" ? selection.enableMultiSelectWithClick ?? false : false;
2940
+ return selection?.enableSelectionWithoutKeys ?? false;
2939
2941
  }
2940
2942
  function _getGroupSelection(gos) {
2941
- const selection = gos.get("selection");
2942
- const useNewAPI = selection !== void 0;
2943
- if (!useNewAPI) {
2943
+ const selection = gos.get("rowSelection");
2944
+ if (typeof selection === "string") {
2944
2945
  const groupSelectsChildren = gos.get("groupSelectsChildren");
2945
2946
  const groupSelectsFiltered = gos.get("groupSelectsFiltered");
2946
2947
  if (groupSelectsChildren && groupSelectsFiltered) {
@@ -2951,7 +2952,7 @@ function _getGroupSelection(gos) {
2951
2952
  return "self";
2952
2953
  }
2953
2954
  }
2954
- return selection.mode === "multiRow" ? selection.groupSelects : void 0;
2955
+ return selection?.mode === "multiRow" ? selection.groupSelects : void 0;
2955
2956
  }
2956
2957
  function _getGroupSelectsDescendants(gos) {
2957
2958
  const groupSelection = _getGroupSelection(gos);
@@ -3504,11 +3505,8 @@ var ControlsColService = class extends BeanStub {
3504
3505
  this.beanName = "controlsColService";
3505
3506
  }
3506
3507
  createControlsCols() {
3507
- const so = this.gos.get("selection");
3508
- if (!so) {
3509
- return [];
3510
- }
3511
- if (so.mode === "cell") {
3508
+ const so = this.gos.get("rowSelection");
3509
+ if (!so || typeof so === "string") {
3512
3510
  return [];
3513
3511
  }
3514
3512
  const checkboxes = _getCheckboxes(so);
@@ -3992,8 +3990,8 @@ var AgColumn = class extends BeanStub {
3992
3990
  return this.isColumnFunc(rowNode, this.colDef.dndSource);
3993
3991
  }
3994
3992
  isCellCheckboxSelection(rowNode) {
3995
- const so = this.gos.get("selection");
3996
- if (so) {
3993
+ const so = this.gos.get("rowSelection");
3994
+ if (so && typeof so !== "string") {
3997
3995
  const checkbox = isColumnControlsCol(this) && _getCheckboxes(so);
3998
3996
  return this.isColumnFunc(rowNode, checkbox);
3999
3997
  } else {
@@ -4823,7 +4821,7 @@ var ColumnModel = class extends BeanStub {
4823
4821
  ["groupDisplayType", "treeData", "treeDataDisplayType", "groupHideOpenParents"],
4824
4822
  (event) => this.refreshAll(convertSourceType(event.source))
4825
4823
  );
4826
- this.addManagedPropertyListener("selection", (event) => {
4824
+ this.addManagedPropertyListener("rowSelection", (event) => {
4827
4825
  this.onSelectionOptionsChanged(event.currentValue, event.previousValue, convertSourceType(event.source));
4828
4826
  });
4829
4827
  this.addManagedPropertyListener(
@@ -5518,6 +5516,9 @@ var ColumnModel = class extends BeanStub {
5518
5516
  }
5519
5517
  }
5520
5518
  onSelectionOptionsChanged(current, prev, source) {
5519
+ if (typeof current === "string" || typeof prev === "string") {
5520
+ return;
5521
+ }
5521
5522
  const prevCheckbox = prev ? _getCheckboxes(prev) : void 0;
5522
5523
  const currCheckbox = current ? _getCheckboxes(current) : void 0;
5523
5524
  const checkboxHasChanged = prevCheckbox !== currCheckbox;
@@ -8512,7 +8513,6 @@ var INITIAL_GRID_OPTION_KEYS = {
8512
8513
  var _PropertyKeys = class _PropertyKeys {
8513
8514
  };
8514
8515
  _PropertyKeys.STRING_PROPERTIES = [
8515
- "rowSelection",
8516
8516
  "overlayLoadingTemplate",
8517
8517
  "overlayNoRowsTemplate",
8518
8518
  "gridId",
@@ -8573,7 +8573,7 @@ _PropertyKeys.OBJECT_PROPERTIES = [
8573
8573
  "advancedFilterBuilderParams",
8574
8574
  "initialState",
8575
8575
  "autoSizeStrategy",
8576
- "selection",
8576
+ "cellSelection",
8577
8577
  "selectionColumnDef"
8578
8578
  ];
8579
8579
  _PropertyKeys.ARRAY_PROPERTIES = [
@@ -8776,7 +8776,8 @@ _PropertyKeys.BOOLEAN_PROPERTIES = [
8776
8776
  _PropertyKeys.OTHER_PROPERTIES = [
8777
8777
  "suppressStickyTotalRow",
8778
8778
  // needs avoid coercion to boolean so that we can warn if it's unset
8779
- "loadThemeGoogleFonts"
8779
+ "loadThemeGoogleFonts",
8780
+ "rowSelection"
8780
8781
  ];
8781
8782
  _PropertyKeys.FUNCTION_PROPERTIES = [
8782
8783
  "doesExternalFilterPass",
@@ -19790,7 +19791,7 @@ function _defineModule(definition) {
19790
19791
  }
19791
19792
 
19792
19793
  // community-modules/core/src/version.ts
19793
- var VERSION = "32.2.0";
19794
+ var VERSION = "32.2.2";
19794
19795
 
19795
19796
  // community-modules/core/src/filter/columnFilterApi.ts
19796
19797
  function isColumnFilterPresent(beans) {
@@ -23289,8 +23290,13 @@ var SelectAllFeature = class extends BeanStub {
23289
23290
  this.selectionService = beans.selectionService;
23290
23291
  }
23291
23292
  postConstruct() {
23292
- this.selectionOptions = this.gos.get("selection");
23293
- this.addManagedPropertyListener("selection", (e) => this.selectionOptions = e.currentValue);
23293
+ const setRowSelectionOptions = (rowSelection) => {
23294
+ if (rowSelection && typeof rowSelection !== "string") {
23295
+ this.selectionOptions = rowSelection;
23296
+ }
23297
+ };
23298
+ setRowSelectionOptions(this.gos.get("rowSelection"));
23299
+ this.addManagedPropertyListener("rowSelection", (e) => setRowSelectionOptions(e.currentValue));
23294
23300
  }
23295
23301
  onSpaceKeyDown(e) {
23296
23302
  const checkbox = this.cbSelectAll;
@@ -26370,7 +26376,7 @@ var DragListenerFeature = class extends BeanStub {
26370
26376
  onDragStop: this.rangeService.onDragStop.bind(this.rangeService),
26371
26377
  onDragging: this.rangeService.onDragging.bind(this.rangeService)
26372
26378
  };
26373
- this.addManagedPropertyListeners(["enableRangeSelection", "selection"], () => {
26379
+ this.addManagedPropertyListeners(["enableRangeSelection", "cellSelection"], () => {
26374
26380
  const isEnabled = _isCellSelectionEnabled(this.gos);
26375
26381
  if (isEnabled) {
26376
26382
  this.enableFeature();
@@ -26496,8 +26502,8 @@ var CheckboxSelectionComponent = class extends Component {
26496
26502
  selectable = isVisible ?? false;
26497
26503
  }
26498
26504
  }
26499
- const so = this.gos.get("selection");
26500
- const disableInsteadOfHide = so ? !_getHideDisabledCheckboxes(so) : this.column?.getColDef().showDisabledCheckboxes;
26505
+ const so = this.gos.get("rowSelection");
26506
+ const disableInsteadOfHide = so && typeof so !== "string" ? !_getHideDisabledCheckboxes(so) : this.column?.getColDef().showDisabledCheckboxes;
26501
26507
  if (disableInsteadOfHide) {
26502
26508
  this.eCheckbox.setDisabled(!selectable);
26503
26509
  this.setVisible(true);
@@ -26514,8 +26520,8 @@ var CheckboxSelectionComponent = class extends Component {
26514
26520
  if (this.overrides) {
26515
26521
  return this.overrides.isVisible;
26516
26522
  }
26517
- const so = this.gos.get("selection");
26518
- if (so) {
26523
+ const so = this.gos.get("rowSelection");
26524
+ if (so && typeof so !== "string") {
26519
26525
  return _getCheckboxes(so);
26520
26526
  }
26521
26527
  return this.column?.getColDef()?.checkboxSelection;
@@ -27533,8 +27539,8 @@ var _CellCtrl = class _CellCtrl extends BeanStub {
27533
27539
  return res;
27534
27540
  }
27535
27541
  isCheckboxSelection(colDef) {
27536
- const { selection } = this.beans.gridOptions;
27537
- return colDef.checkboxSelection || isColumnControlsCol(this.column) && selection && _getCheckboxes(selection);
27542
+ const { rowSelection } = this.beans.gridOptions;
27543
+ return colDef.checkboxSelection || isColumnControlsCol(this.column) && rowSelection && typeof rowSelection !== "string" && _getCheckboxes(rowSelection);
27538
27544
  }
27539
27545
  refreshShouldDestroy() {
27540
27546
  const colDef = this.column.getColDef();
@@ -28271,9 +28277,7 @@ var _RowCtrl = class _RowCtrl extends BeanStub {
28271
28277
  }
28272
28278
  addRowDraggerToRow(gui) {
28273
28279
  if (_isCellSelectionEnabled(this.gos)) {
28274
- _warnOnce(
28275
- "Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `selection.mode = 'cell'`"
28276
- );
28280
+ _warnOnce("Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `cellSelection: true`");
28277
28281
  return;
28278
28282
  }
28279
28283
  const translate = this.beans.localeService.getLocaleTextFunc();
@@ -28856,7 +28860,7 @@ var _RowCtrl = class _RowCtrl extends BeanStub {
28856
28860
  ) {
28857
28861
  return;
28858
28862
  }
28859
- const multiSelectOnClick = _getEnableMultiSelectWithClick(gos);
28863
+ const multiSelectOnClick = _getEnableSelectionWithoutKeys(gos);
28860
28864
  const rowDeselectionWithCtrl = _getEnableDeselection(gos);
28861
28865
  const source = "rowClicked";
28862
28866
  if (isSelected) {
@@ -34414,7 +34418,7 @@ var RowRenderer = class extends BeanStub {
34414
34418
  this.eventService.removeEventListener("columnVisible", onColumnMovedPinnedVisible);
34415
34419
  };
34416
34420
  this.addDestroyFunc(() => removeCellSelectionListeners());
34417
- this.addManagedPropertyListeners(["enableRangeSelection", "selection"], () => {
34421
+ this.addManagedPropertyListeners(["enableRangeSelection", "cellSelection"], () => {
34418
34422
  const isEnabled = _isCellSelectionEnabled(this.gos);
34419
34423
  if (isEnabled) {
34420
34424
  addCellSelectionListeners();
@@ -34479,7 +34483,7 @@ var RowRenderer = class extends BeanStub {
34479
34483
  "detailCellRendererParams",
34480
34484
  "enableRangeSelection",
34481
34485
  "enableCellTextSelection",
34482
- "selection"
34486
+ "rowSelection"
34483
34487
  ],
34484
34488
  () => this.redrawRows()
34485
34489
  );
@@ -42023,8 +42027,8 @@ var StateService = class extends BeanStub {
42023
42027
  startColumn
42024
42028
  });
42025
42029
  });
42026
- if (_isUsingNewSelectionAPI(gos) && _getSuppressMultiRanges(gos) && cellRanges.length > 1) {
42027
- return _warnOnce("cannot add multiple ranges when `selection.suppressMultiRanges = true`");
42030
+ if (_isUsingNewCellSelectionAPI(gos) && _getSuppressMultiRanges(gos) && cellRanges.length > 1) {
42031
+ return _warnOnce("cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`");
42028
42032
  }
42029
42033
  rangeService.setCellRanges(cellRanges);
42030
42034
  }
@@ -43165,22 +43169,22 @@ var COLUMN_DEFINITION_DEPRECATIONS = {
43165
43169
  columnsMenuParams: { version: "31.1", message: "Use `columnChooserParams` instead." },
43166
43170
  suppressMenu: { version: "31.1", message: "Use `suppressHeaderMenuButton` instead." },
43167
43171
  suppressCellFlash: { version: "31.2", message: "Use `enableCellChangeFlash={false}` in the ColDef" },
43168
- checkboxSelection: { version: "32.2", message: "Use `selection.checkboxes` in `GridOptions` instead." },
43172
+ checkboxSelection: { version: "32.2", message: "Use `rowSelection.checkboxes` in `GridOptions` instead." },
43169
43173
  headerCheckboxSelection: {
43170
43174
  version: "32.2",
43171
- message: "Use `selection.headerCheckbox = true` in `GridOptions` instead."
43175
+ message: "Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."
43172
43176
  },
43173
43177
  headerCheckboxSelectionFilteredOnly: {
43174
43178
  version: "32.2",
43175
- message: 'Use `selection.selectAll = "filtered"` in `GridOptions` instead.'
43179
+ message: 'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'
43176
43180
  },
43177
43181
  headerCheckboxSelectionCurrentPageOnly: {
43178
43182
  version: "32.2",
43179
- message: 'Use `selection.selectAll = "currentPage"` in `GridOptions` instead.'
43183
+ message: 'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'
43180
43184
  },
43181
43185
  showDisabledCheckboxes: {
43182
43186
  version: "32.2",
43183
- message: "Use `selection.hideDisabledCheckboxes = true` in `GridOptions` instead."
43187
+ message: "Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."
43184
43188
  }
43185
43189
  };
43186
43190
  var CSRM_REQUIRES_ROW_GROUP_MODULE = (_options, gridOptions) => {
@@ -43388,32 +43392,6 @@ var COL_DEF_VALIDATORS = {
43388
43392
  validations: COLUMN_DEFINITION_VALIDATIONS
43389
43393
  };
43390
43394
 
43391
- // community-modules/core/src/validation/rules/selectionValidations.ts
43392
- var SELECTION_DEPRECATIONS = {};
43393
- var SELECTION_OPTIONS_VALIDATIONS = {};
43394
- var selectionPropertyMap = {
43395
- mode: void 0,
43396
- enableClickSelection: void 0,
43397
- suppressMultiRanges: void 0,
43398
- hideDisabledCheckboxes: void 0,
43399
- checkboxes: void 0,
43400
- headerCheckbox: void 0,
43401
- isRowSelectable: void 0,
43402
- groupSelects: void 0,
43403
- selectAll: void 0,
43404
- enableMultiSelectWithClick: void 0,
43405
- handle: void 0,
43406
- copySelectedRows: void 0
43407
- };
43408
- var ALL_PROPERTIES2 = Object.keys(selectionPropertyMap);
43409
- var SELECTION_VALIDATORS = {
43410
- objectName: "selection",
43411
- allProperties: ALL_PROPERTIES2,
43412
- docsUrl: "grid-options/#reference-selection-selection/",
43413
- deprecations: SELECTION_DEPRECATIONS,
43414
- validations: SELECTION_OPTIONS_VALIDATIONS
43415
- };
43416
-
43417
43395
  // community-modules/core/src/validation/rules/gridOptionsValidations.ts
43418
43396
  var GRID_OPTION_DEPRECATIONS = () => ({
43419
43397
  advancedFilterModel: { version: "31", message: "Use `initialState.filter.advancedFilterModel` instead." },
@@ -43430,43 +43408,39 @@ var GRID_OPTION_DEPRECATIONS = () => ({
43430
43408
  groupIncludeFooter: { version: "31.3", message: "Use `groupTotalRow` instead." },
43431
43409
  groupIncludeTotalFooter: { version: "31.3", message: "Use `grandTotalRow` instead." },
43432
43410
  suppressLoadingOverlay: { version: "32", message: "Use `loading`=false instead." },
43433
- enableFillHandle: { version: "32.2", message: "Use `selection.handle` instead." },
43434
- enableRangeHandle: { version: "32.2", message: "Use `selection.handle` instead." },
43435
- enableRangeSelection: { version: "32.2", message: 'Use `selection.mode = "cell"` instead.' },
43436
- rowSelection: {
43437
- version: "32.2",
43438
- message: 'Use `selection.mode = "singleRow"` or `selection.mode = "multiRow" instead.'
43439
- },
43411
+ enableFillHandle: { version: "32.2", message: "Use `cellSelection.handle` instead." },
43412
+ enableRangeHandle: { version: "32.2", message: "Use `cellSelection.handle` instead." },
43413
+ enableRangeSelection: { version: "32.2", message: "Use `cellSelection = true` instead." },
43440
43414
  suppressMultiRangeSelection: {
43441
43415
  version: "32.2",
43442
- message: "Use `selection.suppressMultiRanges` instead."
43416
+ message: "Use `cellSelection.suppressMultiRanges` instead."
43443
43417
  },
43444
43418
  suppressClearOnFillReduction: {
43445
43419
  version: "32.2",
43446
- message: "Use `selection.handle.suppressClearOnFillReduction` instead."
43420
+ message: "Use `cellSelection.handle.suppressClearOnFillReduction` instead."
43447
43421
  },
43448
- fillHandleDirection: { version: "32.2", message: "Use `selection.handle.direction` instead." },
43449
- fillOperation: { version: "32.2", message: "Use `selection.handle.setFillValue` instead." },
43422
+ fillHandleDirection: { version: "32.2", message: "Use `cellSelection.handle.direction` instead." },
43423
+ fillOperation: { version: "32.2", message: "Use `cellSelection.handle.setFillValue` instead." },
43450
43424
  suppressRowClickSelection: {
43451
43425
  version: "32.2",
43452
- message: "Use `selection.enableClickSelection` instead."
43426
+ message: "Use `rowSelection.enableClickSelection` instead."
43453
43427
  },
43454
- suppressRowDeselection: { version: "32.2", message: "Use `selection.suppressDeselection` instead." },
43428
+ suppressRowDeselection: { version: "32.2", message: "Use `rowSelection.enableClickSelection` instead." },
43455
43429
  rowMultiSelectWithClick: {
43456
43430
  version: "32.2",
43457
- message: "Use `selection.enableMultiSelectWithClick` instead."
43431
+ message: "Use `rowSelection.enableSelectionWithoutKeys` instead."
43458
43432
  },
43459
43433
  groupSelectsChildren: {
43460
43434
  version: "32.2",
43461
- message: 'Use `selection.groupSelects = "descendants"` instead.'
43435
+ message: 'Use `rowSelection.groupSelects = "descendants"` instead.'
43462
43436
  },
43463
43437
  groupSelectsFiltered: {
43464
43438
  version: "32.2",
43465
- message: 'Use `selection.groupSelects = "filteredDescendants"` instead.'
43439
+ message: 'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'
43466
43440
  },
43467
43441
  isRowSelectable: { version: "32.2", message: "Use `selectionOptions.isRowSelectable` instead." },
43468
- suppressCopySingleCellRanges: { version: "32.2", message: "Use `selection.copySelectedRows` instead." },
43469
- suppressCopyRowsToClipboard: { version: "32.2", message: "Use `selection.copySelectedRows` instead." },
43442
+ suppressCopySingleCellRanges: { version: "32.2", message: "Use `rowSelection.copySelectedRows` instead." },
43443
+ suppressCopyRowsToClipboard: { version: "32.2", message: "Use `rowSelection.copySelectedRows` instead." },
43470
43444
  onRangeSelectionChanged: { version: "32.2", message: "Use `onCellSelectionChanged` instead." },
43471
43445
  onRangeDeleteStart: { version: "32.2", message: "Use `onCellSelectionDeleteStart` instead." },
43472
43446
  onRangeDeleteEnd: { version: "32.2", message: "Use `onCellSelectionDeleteEnd` instead." },
@@ -43773,12 +43747,22 @@ var GRID_OPTION_VALIDATIONS = () => ({
43773
43747
  return null;
43774
43748
  }
43775
43749
  },
43750
+ rowSelection: {
43751
+ validate({ rowSelection }) {
43752
+ if (rowSelection && typeof rowSelection === "string") {
43753
+ return 'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.';
43754
+ }
43755
+ return null;
43756
+ }
43757
+ },
43758
+ cellSelection: {
43759
+ module: "@ag-grid-enterprise/range-selection" /* RangeSelectionModule */
43760
+ },
43776
43761
  columnDefs: () => COL_DEF_VALIDATORS,
43777
43762
  defaultColDef: () => COL_DEF_VALIDATORS,
43778
43763
  defaultColGroupDef: () => COL_DEF_VALIDATORS,
43779
43764
  autoGroupColumnDef: () => COL_DEF_VALIDATORS,
43780
- selectionColumnDef: () => COL_DEF_VALIDATORS,
43781
- selection: () => SELECTION_VALIDATORS
43765
+ selectionColumnDef: () => COL_DEF_VALIDATORS
43782
43766
  });
43783
43767
  var GRID_OPTIONS_VALIDATORS = () => ({
43784
43768
  objectName: "gridOptions",
@@ -45371,7 +45355,7 @@ var SelectionService = class extends BeanStub {
45371
45355
  this.selectionCtx.init(rowModel);
45372
45356
  this.rowSelectionMode = _getRowSelectionMode(gos);
45373
45357
  this.groupSelectsChildren = _getGroupSelectsDescendants(gos);
45374
- this.addManagedPropertyListeners(["groupSelectsChildren", "rowSelection", "selection"], () => {
45358
+ this.addManagedPropertyListeners(["groupSelectsChildren", "rowSelection"], () => {
45375
45359
  const groupSelectsChildren = _getGroupSelectsDescendants(gos);
45376
45360
  const selectionMode = _getRowSelectionMode(gos);
45377
45361
  if (groupSelectsChildren !== this.groupSelectsChildren || selectionMode !== this.rowSelectionMode) {
@@ -45783,7 +45767,7 @@ var SelectionService = class extends BeanStub {
45783
45767
  }
45784
45768
  }
45785
45769
  selectAllRowNodes(params) {
45786
- if (_isUsingNewSelectionAPI(this.gos) && !_isMultiRowSelection(this.gos)) {
45770
+ if (_isUsingNewRowSelectionAPI(this.gos) && !_isMultiRowSelection(this.gos)) {
45787
45771
  return _warnOnce(`cannot multi select unless selection mode is 'multiRow'`);
45788
45772
  }
45789
45773
  this.validateSelectAllType();
@@ -45861,7 +45845,7 @@ var SelectableService = class extends BeanStub {
45861
45845
  }
45862
45846
  updateSelectable(skipLeafNodes = false) {
45863
45847
  const { gos } = this;
45864
- const isRowSelecting = _getRowSelectionMode(gos) !== void 0;
45848
+ const isRowSelecting = _isRowSelection(gos);
45865
45849
  const isRowSelectable = _getIsRowSelectable(gos);
45866
45850
  if (!isRowSelecting || !isRowSelectable) {
45867
45851
  return;
@@ -47876,7 +47860,7 @@ var GridSerializer = class extends import_core6.BeanStub {
47876
47860
  };
47877
47861
 
47878
47862
  // community-modules/csv-export/src/version.ts
47879
- var VERSION = "32.2.0";
47863
+ var VERSION = "32.2.2";
47880
47864
 
47881
47865
  // community-modules/csv-export/src/csvExportModule.ts
47882
47866
  var CsvExportCoreModule = (0, import_core7._defineModule)({
@@ -49133,7 +49117,7 @@ function getInfiniteRowCount(beans) {
49133
49117
  }
49134
49118
 
49135
49119
  // community-modules/infinite-row-model/src/version.ts
49136
- var VERSION = "32.2.0";
49120
+ var VERSION = "32.2.2";
49137
49121
 
49138
49122
  // community-modules/infinite-row-model/src/infiniteRowModelModule.ts
49139
49123
  var InfiniteRowModelCoreModule = (0, import_core4._defineModule)({
@@ -49638,7 +49622,7 @@ var lengthValueToCss = (value) => {
49638
49622
  return `${value}px`;
49639
49623
  if ("calc" in value) {
49640
49624
  const valueWithSpaces = value.calc.replace(/ ?[*/+] ?/g, " $& ");
49641
- return `calc(${valueWithSpaces.replace(/(?<!(\w|--[\w-]*))([a-z][a-z0-9]*\b)(?!\s*\()/gi, (p) => ` ${paramToVariableExpression(p)} `)})`;
49625
+ return `calc(${valueWithSpaces.replace(/-?[a-z][a-z0-9]*\b(?![-(])/gi, (p) => p[0] === "-" ? p : ` ${paramToVariableExpression(p)} `)})`;
49642
49626
  }
49643
49627
  if ("ref" in value)
49644
49628
  return paramToVariableExpression(value.ref);