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
@@ -281,7 +281,8 @@ __export(main_exports, {
281
281
  _isRowSelection: () => _isRowSelection,
282
282
  _isServerSideRowModel: () => _isServerSideRowModel,
283
283
  _isStopPropagationForAgGrid: () => _isStopPropagationForAgGrid,
284
- _isUsingNewSelectionAPI: () => _isUsingNewSelectionAPI,
284
+ _isUsingNewCellSelectionAPI: () => _isUsingNewCellSelectionAPI,
285
+ _isUsingNewRowSelectionAPI: () => _isUsingNewRowSelectionAPI,
285
286
  _isVisible: () => _isVisible,
286
287
  _iterateObject: () => _iterateObject,
287
288
  _jsonEquals: () => _jsonEquals,
@@ -916,48 +917,52 @@ function _getRowIdCallback(gos) {
916
917
  };
917
918
  }
918
919
  function _getCheckboxes(selection) {
919
- return (selection?.mode !== "cell" && selection?.checkboxes) ?? true;
920
+ return selection?.checkboxes ?? true;
920
921
  }
921
922
  function _getHeaderCheckbox(selection) {
922
923
  return selection?.mode === "multiRow" && (selection.headerCheckbox ?? true);
923
924
  }
924
925
  function _getHideDisabledCheckboxes(selection) {
925
- return (selection?.mode !== "cell" && selection?.hideDisabledCheckboxes) ?? false;
926
+ return selection?.hideDisabledCheckboxes ?? false;
926
927
  }
927
- function _isUsingNewSelectionAPI(gos) {
928
- return gos.get("selection") !== void 0;
928
+ function _isUsingNewRowSelectionAPI(gos) {
929
+ const rowSelection = gos.get("rowSelection");
930
+ return typeof rowSelection !== "string";
931
+ }
932
+ function _isUsingNewCellSelectionAPI(gos) {
933
+ return gos.get("cellSelection") !== void 0;
929
934
  }
930
935
  function _getSuppressMultiRanges(gos) {
931
- const selection = gos.get("selection");
936
+ const selection = gos.get("cellSelection");
932
937
  const useNewAPI = selection !== void 0;
933
938
  if (!useNewAPI) {
934
939
  return gos.get("suppressMultiRangeSelection");
935
940
  }
936
- return selection.mode === "cell" ? selection.suppressMultiRanges ?? false : false;
941
+ return typeof selection !== "boolean" ? selection?.suppressMultiRanges ?? false : false;
937
942
  }
938
943
  function _isCellSelectionEnabled(gos) {
939
- const selection = gos.get("selection");
944
+ const selection = gos.get("cellSelection");
940
945
  const useNewAPI = selection !== void 0;
941
- return useNewAPI ? selection.mode === "cell" : gos.get("enableRangeSelection");
946
+ return useNewAPI ? !!selection : gos.get("enableRangeSelection");
942
947
  }
943
948
  function _isRangeHandleEnabled(gos) {
944
- const selection = gos.get("selection");
949
+ const selection = gos.get("cellSelection");
945
950
  const useNewAPI = selection !== void 0;
946
951
  if (!useNewAPI) {
947
952
  return gos.get("enableRangeHandle");
948
953
  }
949
- return selection.mode === "cell" ? selection.handle?.mode === "range" : false;
954
+ return typeof selection !== "boolean" ? selection.handle?.mode === "range" : false;
950
955
  }
951
956
  function _isFillHandleEnabled(gos) {
952
- const selection = gos.get("selection");
957
+ const selection = gos.get("cellSelection");
953
958
  const useNewAPI = selection !== void 0;
954
959
  if (!useNewAPI) {
955
960
  return gos.get("enableFillHandle");
956
961
  }
957
- return selection.mode === "cell" ? selection.handle?.mode === "fill" : false;
962
+ return typeof selection !== "boolean" ? selection.handle?.mode === "fill" : false;
958
963
  }
959
964
  function _getFillHandle(gos) {
960
- const selection = gos.get("selection");
965
+ const selection = gos.get("cellSelection");
961
966
  const useNewAPI = selection !== void 0;
962
967
  if (!useNewAPI) {
963
968
  return {
@@ -967,12 +972,11 @@ function _getFillHandle(gos) {
967
972
  suppressClearOnFillReduction: gos.get("suppressClearOnFillReduction")
968
973
  };
969
974
  }
970
- return selection.mode === "cell" && selection.handle?.mode === "fill" ? selection.handle : void 0;
975
+ return typeof selection !== "boolean" && selection.handle?.mode === "fill" ? selection.handle : void 0;
971
976
  }
972
977
  function _getEnableClickSelection(gos) {
973
- const selection = gos.get("selection");
974
- const useNewAPI = selection !== void 0;
975
- if (!useNewAPI) {
978
+ const selection = gos.get("rowSelection") ?? "single";
979
+ if (typeof selection === "string") {
976
980
  const suppressRowClickSelection = gos.get("suppressRowClickSelection");
977
981
  const suppressRowDeselection = gos.get("suppressRowDeselection");
978
982
  if (suppressRowClickSelection && suppressRowDeselection) {
@@ -985,7 +989,7 @@ function _getEnableClickSelection(gos) {
985
989
  return true;
986
990
  }
987
991
  }
988
- return selection?.mode !== "cell" ? selection?.enableClickSelection ?? false : false;
992
+ return selection.mode === "singleRow" || selection.mode === "multiRow" ? selection.enableClickSelection ?? false : false;
989
993
  }
990
994
  function _getEnableSelection(gos) {
991
995
  const enableClickSelection = _getEnableClickSelection(gos);
@@ -996,18 +1000,16 @@ function _getEnableDeselection(gos) {
996
1000
  return enableClickSelection === true || enableClickSelection === "enableDeselection";
997
1001
  }
998
1002
  function _getIsRowSelectable(gos) {
999
- const selection = gos.get("selection");
1000
- const useNewAPI = selection !== void 0;
1001
- if (!useNewAPI) {
1003
+ const selection = gos.get("rowSelection");
1004
+ if (typeof selection === "string") {
1002
1005
  return gos.get("isRowSelectable");
1003
1006
  }
1004
- return selection.mode !== "cell" ? selection.isRowSelectable : void 0;
1007
+ return selection?.isRowSelectable;
1005
1008
  }
1006
1009
  function _getRowSelectionMode(gos) {
1007
- const selection = gos.get("selection");
1008
- const useNewAPI = selection !== void 0;
1009
- if (!useNewAPI) {
1010
- switch (gos.get("rowSelection")) {
1010
+ const selection = gos.get("rowSelection");
1011
+ if (typeof selection === "string") {
1012
+ switch (selection) {
1011
1013
  case "multiple":
1012
1014
  return "multiRow";
1013
1015
  case "single":
@@ -1016,23 +1018,22 @@ function _getRowSelectionMode(gos) {
1016
1018
  return;
1017
1019
  }
1018
1020
  }
1019
- return selection.mode !== "cell" ? selection.mode : void 0;
1021
+ return selection?.mode;
1020
1022
  }
1021
1023
  function _isMultiRowSelection(gos) {
1022
- return _getRowSelectionMode(gos) === "multiRow";
1024
+ const mode = _getRowSelectionMode(gos);
1025
+ return mode === "multiRow";
1023
1026
  }
1024
- function _getEnableMultiSelectWithClick(gos) {
1025
- const selection = gos.get("selection");
1026
- const useNewAPI = selection !== void 0;
1027
- if (!useNewAPI) {
1027
+ function _getEnableSelectionWithoutKeys(gos) {
1028
+ const selection = gos.get("rowSelection");
1029
+ if (typeof selection === "string") {
1028
1030
  return gos.get("rowMultiSelectWithClick");
1029
1031
  }
1030
- return selection.mode === "multiRow" ? selection.enableMultiSelectWithClick ?? false : false;
1032
+ return selection?.enableSelectionWithoutKeys ?? false;
1031
1033
  }
1032
1034
  function _getGroupSelection(gos) {
1033
- const selection = gos.get("selection");
1034
- const useNewAPI = selection !== void 0;
1035
- if (!useNewAPI) {
1035
+ const selection = gos.get("rowSelection");
1036
+ if (typeof selection === "string") {
1036
1037
  const groupSelectsChildren = gos.get("groupSelectsChildren");
1037
1038
  const groupSelectsFiltered = gos.get("groupSelectsFiltered");
1038
1039
  if (groupSelectsChildren && groupSelectsFiltered) {
@@ -1043,7 +1044,7 @@ function _getGroupSelection(gos) {
1043
1044
  return "self";
1044
1045
  }
1045
1046
  }
1046
- return selection.mode === "multiRow" ? selection.groupSelects : void 0;
1047
+ return selection?.mode === "multiRow" ? selection.groupSelects : void 0;
1047
1048
  }
1048
1049
  function _getGroupSelectsDescendants(gos) {
1049
1050
  const groupSelection = _getGroupSelection(gos);
@@ -1596,11 +1597,8 @@ var ControlsColService = class extends BeanStub {
1596
1597
  this.beanName = "controlsColService";
1597
1598
  }
1598
1599
  createControlsCols() {
1599
- const so = this.gos.get("selection");
1600
- if (!so) {
1601
- return [];
1602
- }
1603
- if (so.mode === "cell") {
1600
+ const so = this.gos.get("rowSelection");
1601
+ if (!so || typeof so === "string") {
1604
1602
  return [];
1605
1603
  }
1606
1604
  const checkboxes = _getCheckboxes(so);
@@ -2084,8 +2082,8 @@ var AgColumn = class extends BeanStub {
2084
2082
  return this.isColumnFunc(rowNode, this.colDef.dndSource);
2085
2083
  }
2086
2084
  isCellCheckboxSelection(rowNode) {
2087
- const so = this.gos.get("selection");
2088
- if (so) {
2085
+ const so = this.gos.get("rowSelection");
2086
+ if (so && typeof so !== "string") {
2089
2087
  const checkbox = isColumnControlsCol(this) && _getCheckboxes(so);
2090
2088
  return this.isColumnFunc(rowNode, checkbox);
2091
2089
  } else {
@@ -2915,7 +2913,7 @@ var ColumnModel = class extends BeanStub {
2915
2913
  ["groupDisplayType", "treeData", "treeDataDisplayType", "groupHideOpenParents"],
2916
2914
  (event) => this.refreshAll(convertSourceType(event.source))
2917
2915
  );
2918
- this.addManagedPropertyListener("selection", (event) => {
2916
+ this.addManagedPropertyListener("rowSelection", (event) => {
2919
2917
  this.onSelectionOptionsChanged(event.currentValue, event.previousValue, convertSourceType(event.source));
2920
2918
  });
2921
2919
  this.addManagedPropertyListener(
@@ -3610,6 +3608,9 @@ var ColumnModel = class extends BeanStub {
3610
3608
  }
3611
3609
  }
3612
3610
  onSelectionOptionsChanged(current, prev, source) {
3611
+ if (typeof current === "string" || typeof prev === "string") {
3612
+ return;
3613
+ }
3613
3614
  const prevCheckbox = prev ? _getCheckboxes(prev) : void 0;
3614
3615
  const currCheckbox = current ? _getCheckboxes(current) : void 0;
3615
3616
  const checkboxHasChanged = prevCheckbox !== currCheckbox;
@@ -6604,7 +6605,6 @@ var INITIAL_GRID_OPTION_KEYS = {
6604
6605
  var _PropertyKeys = class _PropertyKeys {
6605
6606
  };
6606
6607
  _PropertyKeys.STRING_PROPERTIES = [
6607
- "rowSelection",
6608
6608
  "overlayLoadingTemplate",
6609
6609
  "overlayNoRowsTemplate",
6610
6610
  "gridId",
@@ -6665,7 +6665,7 @@ _PropertyKeys.OBJECT_PROPERTIES = [
6665
6665
  "advancedFilterBuilderParams",
6666
6666
  "initialState",
6667
6667
  "autoSizeStrategy",
6668
- "selection",
6668
+ "cellSelection",
6669
6669
  "selectionColumnDef"
6670
6670
  ];
6671
6671
  _PropertyKeys.ARRAY_PROPERTIES = [
@@ -6868,7 +6868,8 @@ _PropertyKeys.BOOLEAN_PROPERTIES = [
6868
6868
  _PropertyKeys.OTHER_PROPERTIES = [
6869
6869
  "suppressStickyTotalRow",
6870
6870
  // needs avoid coercion to boolean so that we can warn if it's unset
6871
- "loadThemeGoogleFonts"
6871
+ "loadThemeGoogleFonts",
6872
+ "rowSelection"
6872
6873
  ];
6873
6874
  _PropertyKeys.FUNCTION_PROPERTIES = [
6874
6875
  "doesExternalFilterPass",
@@ -17882,7 +17883,7 @@ function _defineModule(definition) {
17882
17883
  }
17883
17884
 
17884
17885
  // community-modules/core/src/version.ts
17885
- var VERSION = "32.2.0";
17886
+ var VERSION = "32.2.2";
17886
17887
 
17887
17888
  // community-modules/core/src/filter/columnFilterApi.ts
17888
17889
  function isColumnFilterPresent(beans) {
@@ -21381,8 +21382,13 @@ var SelectAllFeature = class extends BeanStub {
21381
21382
  this.selectionService = beans.selectionService;
21382
21383
  }
21383
21384
  postConstruct() {
21384
- this.selectionOptions = this.gos.get("selection");
21385
- this.addManagedPropertyListener("selection", (e) => this.selectionOptions = e.currentValue);
21385
+ const setRowSelectionOptions = (rowSelection) => {
21386
+ if (rowSelection && typeof rowSelection !== "string") {
21387
+ this.selectionOptions = rowSelection;
21388
+ }
21389
+ };
21390
+ setRowSelectionOptions(this.gos.get("rowSelection"));
21391
+ this.addManagedPropertyListener("rowSelection", (e) => setRowSelectionOptions(e.currentValue));
21386
21392
  }
21387
21393
  onSpaceKeyDown(e) {
21388
21394
  const checkbox = this.cbSelectAll;
@@ -24462,7 +24468,7 @@ var DragListenerFeature = class extends BeanStub {
24462
24468
  onDragStop: this.rangeService.onDragStop.bind(this.rangeService),
24463
24469
  onDragging: this.rangeService.onDragging.bind(this.rangeService)
24464
24470
  };
24465
- this.addManagedPropertyListeners(["enableRangeSelection", "selection"], () => {
24471
+ this.addManagedPropertyListeners(["enableRangeSelection", "cellSelection"], () => {
24466
24472
  const isEnabled = _isCellSelectionEnabled(this.gos);
24467
24473
  if (isEnabled) {
24468
24474
  this.enableFeature();
@@ -24588,8 +24594,8 @@ var CheckboxSelectionComponent = class extends Component {
24588
24594
  selectable = isVisible ?? false;
24589
24595
  }
24590
24596
  }
24591
- const so = this.gos.get("selection");
24592
- const disableInsteadOfHide = so ? !_getHideDisabledCheckboxes(so) : this.column?.getColDef().showDisabledCheckboxes;
24597
+ const so = this.gos.get("rowSelection");
24598
+ const disableInsteadOfHide = so && typeof so !== "string" ? !_getHideDisabledCheckboxes(so) : this.column?.getColDef().showDisabledCheckboxes;
24593
24599
  if (disableInsteadOfHide) {
24594
24600
  this.eCheckbox.setDisabled(!selectable);
24595
24601
  this.setVisible(true);
@@ -24606,8 +24612,8 @@ var CheckboxSelectionComponent = class extends Component {
24606
24612
  if (this.overrides) {
24607
24613
  return this.overrides.isVisible;
24608
24614
  }
24609
- const so = this.gos.get("selection");
24610
- if (so) {
24615
+ const so = this.gos.get("rowSelection");
24616
+ if (so && typeof so !== "string") {
24611
24617
  return _getCheckboxes(so);
24612
24618
  }
24613
24619
  return this.column?.getColDef()?.checkboxSelection;
@@ -25625,8 +25631,8 @@ var _CellCtrl = class _CellCtrl extends BeanStub {
25625
25631
  return res;
25626
25632
  }
25627
25633
  isCheckboxSelection(colDef) {
25628
- const { selection } = this.beans.gridOptions;
25629
- return colDef.checkboxSelection || isColumnControlsCol(this.column) && selection && _getCheckboxes(selection);
25634
+ const { rowSelection } = this.beans.gridOptions;
25635
+ return colDef.checkboxSelection || isColumnControlsCol(this.column) && rowSelection && typeof rowSelection !== "string" && _getCheckboxes(rowSelection);
25630
25636
  }
25631
25637
  refreshShouldDestroy() {
25632
25638
  const colDef = this.column.getColDef();
@@ -26363,9 +26369,7 @@ var _RowCtrl = class _RowCtrl extends BeanStub {
26363
26369
  }
26364
26370
  addRowDraggerToRow(gui) {
26365
26371
  if (_isCellSelectionEnabled(this.gos)) {
26366
- _warnOnce(
26367
- "Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `selection.mode = 'cell'`"
26368
- );
26372
+ _warnOnce("Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `cellSelection: true`");
26369
26373
  return;
26370
26374
  }
26371
26375
  const translate = this.beans.localeService.getLocaleTextFunc();
@@ -26948,7 +26952,7 @@ var _RowCtrl = class _RowCtrl extends BeanStub {
26948
26952
  ) {
26949
26953
  return;
26950
26954
  }
26951
- const multiSelectOnClick = _getEnableMultiSelectWithClick(gos);
26955
+ const multiSelectOnClick = _getEnableSelectionWithoutKeys(gos);
26952
26956
  const rowDeselectionWithCtrl = _getEnableDeselection(gos);
26953
26957
  const source = "rowClicked";
26954
26958
  if (isSelected) {
@@ -32506,7 +32510,7 @@ var RowRenderer = class extends BeanStub {
32506
32510
  this.eventService.removeEventListener("columnVisible", onColumnMovedPinnedVisible);
32507
32511
  };
32508
32512
  this.addDestroyFunc(() => removeCellSelectionListeners());
32509
- this.addManagedPropertyListeners(["enableRangeSelection", "selection"], () => {
32513
+ this.addManagedPropertyListeners(["enableRangeSelection", "cellSelection"], () => {
32510
32514
  const isEnabled = _isCellSelectionEnabled(this.gos);
32511
32515
  if (isEnabled) {
32512
32516
  addCellSelectionListeners();
@@ -32571,7 +32575,7 @@ var RowRenderer = class extends BeanStub {
32571
32575
  "detailCellRendererParams",
32572
32576
  "enableRangeSelection",
32573
32577
  "enableCellTextSelection",
32574
- "selection"
32578
+ "rowSelection"
32575
32579
  ],
32576
32580
  () => this.redrawRows()
32577
32581
  );
@@ -40115,8 +40119,8 @@ var StateService = class extends BeanStub {
40115
40119
  startColumn
40116
40120
  });
40117
40121
  });
40118
- if (_isUsingNewSelectionAPI(gos) && _getSuppressMultiRanges(gos) && cellRanges.length > 1) {
40119
- return _warnOnce("cannot add multiple ranges when `selection.suppressMultiRanges = true`");
40122
+ if (_isUsingNewCellSelectionAPI(gos) && _getSuppressMultiRanges(gos) && cellRanges.length > 1) {
40123
+ return _warnOnce("cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`");
40120
40124
  }
40121
40125
  rangeService.setCellRanges(cellRanges);
40122
40126
  }
@@ -41257,22 +41261,22 @@ var COLUMN_DEFINITION_DEPRECATIONS = {
41257
41261
  columnsMenuParams: { version: "31.1", message: "Use `columnChooserParams` instead." },
41258
41262
  suppressMenu: { version: "31.1", message: "Use `suppressHeaderMenuButton` instead." },
41259
41263
  suppressCellFlash: { version: "31.2", message: "Use `enableCellChangeFlash={false}` in the ColDef" },
41260
- checkboxSelection: { version: "32.2", message: "Use `selection.checkboxes` in `GridOptions` instead." },
41264
+ checkboxSelection: { version: "32.2", message: "Use `rowSelection.checkboxes` in `GridOptions` instead." },
41261
41265
  headerCheckboxSelection: {
41262
41266
  version: "32.2",
41263
- message: "Use `selection.headerCheckbox = true` in `GridOptions` instead."
41267
+ message: "Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."
41264
41268
  },
41265
41269
  headerCheckboxSelectionFilteredOnly: {
41266
41270
  version: "32.2",
41267
- message: 'Use `selection.selectAll = "filtered"` in `GridOptions` instead.'
41271
+ message: 'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'
41268
41272
  },
41269
41273
  headerCheckboxSelectionCurrentPageOnly: {
41270
41274
  version: "32.2",
41271
- message: 'Use `selection.selectAll = "currentPage"` in `GridOptions` instead.'
41275
+ message: 'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'
41272
41276
  },
41273
41277
  showDisabledCheckboxes: {
41274
41278
  version: "32.2",
41275
- message: "Use `selection.hideDisabledCheckboxes = true` in `GridOptions` instead."
41279
+ message: "Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."
41276
41280
  }
41277
41281
  };
41278
41282
  var CSRM_REQUIRES_ROW_GROUP_MODULE = (_options, gridOptions) => {
@@ -41480,32 +41484,6 @@ var COL_DEF_VALIDATORS = {
41480
41484
  validations: COLUMN_DEFINITION_VALIDATIONS
41481
41485
  };
41482
41486
 
41483
- // community-modules/core/src/validation/rules/selectionValidations.ts
41484
- var SELECTION_DEPRECATIONS = {};
41485
- var SELECTION_OPTIONS_VALIDATIONS = {};
41486
- var selectionPropertyMap = {
41487
- mode: void 0,
41488
- enableClickSelection: void 0,
41489
- suppressMultiRanges: void 0,
41490
- hideDisabledCheckboxes: void 0,
41491
- checkboxes: void 0,
41492
- headerCheckbox: void 0,
41493
- isRowSelectable: void 0,
41494
- groupSelects: void 0,
41495
- selectAll: void 0,
41496
- enableMultiSelectWithClick: void 0,
41497
- handle: void 0,
41498
- copySelectedRows: void 0
41499
- };
41500
- var ALL_PROPERTIES2 = Object.keys(selectionPropertyMap);
41501
- var SELECTION_VALIDATORS = {
41502
- objectName: "selection",
41503
- allProperties: ALL_PROPERTIES2,
41504
- docsUrl: "grid-options/#reference-selection-selection/",
41505
- deprecations: SELECTION_DEPRECATIONS,
41506
- validations: SELECTION_OPTIONS_VALIDATIONS
41507
- };
41508
-
41509
41487
  // community-modules/core/src/validation/rules/gridOptionsValidations.ts
41510
41488
  var GRID_OPTION_DEPRECATIONS = () => ({
41511
41489
  advancedFilterModel: { version: "31", message: "Use `initialState.filter.advancedFilterModel` instead." },
@@ -41522,43 +41500,39 @@ var GRID_OPTION_DEPRECATIONS = () => ({
41522
41500
  groupIncludeFooter: { version: "31.3", message: "Use `groupTotalRow` instead." },
41523
41501
  groupIncludeTotalFooter: { version: "31.3", message: "Use `grandTotalRow` instead." },
41524
41502
  suppressLoadingOverlay: { version: "32", message: "Use `loading`=false instead." },
41525
- enableFillHandle: { version: "32.2", message: "Use `selection.handle` instead." },
41526
- enableRangeHandle: { version: "32.2", message: "Use `selection.handle` instead." },
41527
- enableRangeSelection: { version: "32.2", message: 'Use `selection.mode = "cell"` instead.' },
41528
- rowSelection: {
41529
- version: "32.2",
41530
- message: 'Use `selection.mode = "singleRow"` or `selection.mode = "multiRow" instead.'
41531
- },
41503
+ enableFillHandle: { version: "32.2", message: "Use `cellSelection.handle` instead." },
41504
+ enableRangeHandle: { version: "32.2", message: "Use `cellSelection.handle` instead." },
41505
+ enableRangeSelection: { version: "32.2", message: "Use `cellSelection = true` instead." },
41532
41506
  suppressMultiRangeSelection: {
41533
41507
  version: "32.2",
41534
- message: "Use `selection.suppressMultiRanges` instead."
41508
+ message: "Use `cellSelection.suppressMultiRanges` instead."
41535
41509
  },
41536
41510
  suppressClearOnFillReduction: {
41537
41511
  version: "32.2",
41538
- message: "Use `selection.handle.suppressClearOnFillReduction` instead."
41512
+ message: "Use `cellSelection.handle.suppressClearOnFillReduction` instead."
41539
41513
  },
41540
- fillHandleDirection: { version: "32.2", message: "Use `selection.handle.direction` instead." },
41541
- fillOperation: { version: "32.2", message: "Use `selection.handle.setFillValue` instead." },
41514
+ fillHandleDirection: { version: "32.2", message: "Use `cellSelection.handle.direction` instead." },
41515
+ fillOperation: { version: "32.2", message: "Use `cellSelection.handle.setFillValue` instead." },
41542
41516
  suppressRowClickSelection: {
41543
41517
  version: "32.2",
41544
- message: "Use `selection.enableClickSelection` instead."
41518
+ message: "Use `rowSelection.enableClickSelection` instead."
41545
41519
  },
41546
- suppressRowDeselection: { version: "32.2", message: "Use `selection.suppressDeselection` instead." },
41520
+ suppressRowDeselection: { version: "32.2", message: "Use `rowSelection.enableClickSelection` instead." },
41547
41521
  rowMultiSelectWithClick: {
41548
41522
  version: "32.2",
41549
- message: "Use `selection.enableMultiSelectWithClick` instead."
41523
+ message: "Use `rowSelection.enableSelectionWithoutKeys` instead."
41550
41524
  },
41551
41525
  groupSelectsChildren: {
41552
41526
  version: "32.2",
41553
- message: 'Use `selection.groupSelects = "descendants"` instead.'
41527
+ message: 'Use `rowSelection.groupSelects = "descendants"` instead.'
41554
41528
  },
41555
41529
  groupSelectsFiltered: {
41556
41530
  version: "32.2",
41557
- message: 'Use `selection.groupSelects = "filteredDescendants"` instead.'
41531
+ message: 'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'
41558
41532
  },
41559
41533
  isRowSelectable: { version: "32.2", message: "Use `selectionOptions.isRowSelectable` instead." },
41560
- suppressCopySingleCellRanges: { version: "32.2", message: "Use `selection.copySelectedRows` instead." },
41561
- suppressCopyRowsToClipboard: { version: "32.2", message: "Use `selection.copySelectedRows` instead." },
41534
+ suppressCopySingleCellRanges: { version: "32.2", message: "Use `rowSelection.copySelectedRows` instead." },
41535
+ suppressCopyRowsToClipboard: { version: "32.2", message: "Use `rowSelection.copySelectedRows` instead." },
41562
41536
  onRangeSelectionChanged: { version: "32.2", message: "Use `onCellSelectionChanged` instead." },
41563
41537
  onRangeDeleteStart: { version: "32.2", message: "Use `onCellSelectionDeleteStart` instead." },
41564
41538
  onRangeDeleteEnd: { version: "32.2", message: "Use `onCellSelectionDeleteEnd` instead." },
@@ -41865,12 +41839,22 @@ var GRID_OPTION_VALIDATIONS = () => ({
41865
41839
  return null;
41866
41840
  }
41867
41841
  },
41842
+ rowSelection: {
41843
+ validate({ rowSelection }) {
41844
+ if (rowSelection && typeof rowSelection === "string") {
41845
+ return 'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.';
41846
+ }
41847
+ return null;
41848
+ }
41849
+ },
41850
+ cellSelection: {
41851
+ module: "@ag-grid-enterprise/range-selection" /* RangeSelectionModule */
41852
+ },
41868
41853
  columnDefs: () => COL_DEF_VALIDATORS,
41869
41854
  defaultColDef: () => COL_DEF_VALIDATORS,
41870
41855
  defaultColGroupDef: () => COL_DEF_VALIDATORS,
41871
41856
  autoGroupColumnDef: () => COL_DEF_VALIDATORS,
41872
- selectionColumnDef: () => COL_DEF_VALIDATORS,
41873
- selection: () => SELECTION_VALIDATORS
41857
+ selectionColumnDef: () => COL_DEF_VALIDATORS
41874
41858
  });
41875
41859
  var GRID_OPTIONS_VALIDATORS = () => ({
41876
41860
  objectName: "gridOptions",
@@ -43463,7 +43447,7 @@ var SelectionService = class extends BeanStub {
43463
43447
  this.selectionCtx.init(rowModel);
43464
43448
  this.rowSelectionMode = _getRowSelectionMode(gos);
43465
43449
  this.groupSelectsChildren = _getGroupSelectsDescendants(gos);
43466
- this.addManagedPropertyListeners(["groupSelectsChildren", "rowSelection", "selection"], () => {
43450
+ this.addManagedPropertyListeners(["groupSelectsChildren", "rowSelection"], () => {
43467
43451
  const groupSelectsChildren = _getGroupSelectsDescendants(gos);
43468
43452
  const selectionMode = _getRowSelectionMode(gos);
43469
43453
  if (groupSelectsChildren !== this.groupSelectsChildren || selectionMode !== this.rowSelectionMode) {
@@ -43875,7 +43859,7 @@ var SelectionService = class extends BeanStub {
43875
43859
  }
43876
43860
  }
43877
43861
  selectAllRowNodes(params) {
43878
- if (_isUsingNewSelectionAPI(this.gos) && !_isMultiRowSelection(this.gos)) {
43862
+ if (_isUsingNewRowSelectionAPI(this.gos) && !_isMultiRowSelection(this.gos)) {
43879
43863
  return _warnOnce(`cannot multi select unless selection mode is 'multiRow'`);
43880
43864
  }
43881
43865
  this.validateSelectAllType();
@@ -43953,7 +43937,7 @@ var SelectableService = class extends BeanStub {
43953
43937
  }
43954
43938
  updateSelectable(skipLeafNodes = false) {
43955
43939
  const { gos } = this;
43956
- const isRowSelecting = _getRowSelectionMode(gos) !== void 0;
43940
+ const isRowSelecting = _isRowSelection(gos);
43957
43941
  const isRowSelectable = _getIsRowSelectable(gos);
43958
43942
  if (!isRowSelecting || !isRowSelectable) {
43959
43943
  return;
@@ -47099,7 +47083,7 @@ var SortStage = class extends BeanStub {
47099
47083
  };
47100
47084
 
47101
47085
  // community-modules/client-side-row-model/src/version.ts
47102
- var VERSION2 = "32.2.0";
47086
+ var VERSION2 = "32.2.2";
47103
47087
 
47104
47088
  // community-modules/client-side-row-model/src/clientSideRowModelModule.ts
47105
47089
  var ClientSideRowModelCoreModule = _defineModule({
@@ -47790,7 +47774,7 @@ var GridSerializer = class extends BeanStub {
47790
47774
  });
47791
47775
  }
47792
47776
  };
47793
- var VERSION3 = "32.2.0";
47777
+ var VERSION3 = "32.2.2";
47794
47778
  var CsvExportCoreModule = _defineModule({
47795
47779
  version: VERSION3,
47796
47780
  moduleName: `${"@ag-grid-community/csv-export" /* CsvExportModule */}-core`,
@@ -48981,7 +48965,7 @@ function purgeInfiniteCache(beans) {
48981
48965
  function getInfiniteRowCount(beans) {
48982
48966
  return beans.rowModelHelperService?.getInfiniteRowModel()?.getRowCount();
48983
48967
  }
48984
- var VERSION4 = "32.2.0";
48968
+ var VERSION4 = "32.2.2";
48985
48969
  var InfiniteRowModelCoreModule = _defineModule({
48986
48970
  version: VERSION4,
48987
48971
  moduleName: `${"@ag-grid-community/infinite-row-model" /* InfiniteRowModelModule */}-core`,
@@ -49412,7 +49396,7 @@ var lengthValueToCss = (value) => {
49412
49396
  return `${value}px`;
49413
49397
  if ("calc" in value) {
49414
49398
  const valueWithSpaces = value.calc.replace(/ ?[*/+] ?/g, " $& ");
49415
- return `calc(${valueWithSpaces.replace(/(?<!(\w|--[\w-]*))([a-z][a-z0-9]*\b)(?!\s*\()/gi, (p) => ` ${paramToVariableExpression(p)} `)})`;
49399
+ return `calc(${valueWithSpaces.replace(/-?[a-z][a-z0-9]*\b(?![-(])/gi, (p) => p[0] === "-" ? p : ` ${paramToVariableExpression(p)} `)})`;
49416
49400
  }
49417
49401
  if ("ref" in value)
49418
49402
  return paramToVariableExpression(value.ref);