ag-grid-community 32.3.8 → 32.3.9

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.
@@ -1929,7 +1929,7 @@ var SortStage = class extends import_core8.BeanStub {
1929
1929
  };
1930
1930
 
1931
1931
  // community-modules/client-side-row-model/src/version.ts
1932
- var VERSION = "32.3.8";
1932
+ var VERSION = "32.3.9";
1933
1933
 
1934
1934
  // community-modules/client-side-row-model/src/clientSideRowModelModule.ts
1935
1935
  var ClientSideRowModelCoreModule = (0, import_core9._defineModule)({
@@ -3527,42 +3527,46 @@ var ControlsColService = class extends BeanStub {
3527
3527
  super(...arguments);
3528
3528
  this.beanName = "controlsColService";
3529
3529
  }
3530
- createControlsCols() {
3530
+ isControlsColEnabled() {
3531
3531
  const { gos } = this;
3532
3532
  const so = gos.get("rowSelection");
3533
3533
  if (!so || typeof so !== "object") {
3534
- return [];
3534
+ return false;
3535
3535
  }
3536
3536
  const checkboxes = _getCheckboxes(so);
3537
3537
  const headerCheckbox = _getHeaderCheckbox(so);
3538
- if (checkboxes || headerCheckbox) {
3539
- const selectionColumnDef = gos.get("selectionColumnDef");
3540
- const enableRTL = gos.get("enableRtl");
3541
- const colDef = {
3542
- // overridable properties
3543
- maxWidth: 50,
3544
- resizable: false,
3545
- suppressHeaderMenuButton: true,
3546
- sortable: false,
3547
- suppressMovable: true,
3548
- lockPosition: enableRTL ? "right" : "left",
3549
- comparator(valueA, valueB, nodeA, nodeB) {
3550
- const aSelected = nodeA.isSelected();
3551
- const bSelected = nodeB.isSelected();
3552
- return aSelected && bSelected ? 0 : aSelected ? 1 : -1;
3553
- },
3554
- editable: false,
3555
- suppressFillHandle: true,
3556
- // overrides
3557
- ...selectionColumnDef,
3558
- // non-overridable properties
3559
- colId: `${CONTROLS_COLUMN_ID_PREFIX}`
3560
- };
3561
- const col = new AgColumn(colDef, null, colDef.colId, false);
3562
- this.createBean(col);
3563
- return [col];
3538
+ return !!(checkboxes || headerCheckbox);
3539
+ }
3540
+ createControlsCols() {
3541
+ if (!this.isControlsColEnabled()) {
3542
+ return [];
3564
3543
  }
3565
- return [];
3544
+ const { gos } = this;
3545
+ const selectionColumnDef = gos.get("selectionColumnDef");
3546
+ const enableRTL = gos.get("enableRtl");
3547
+ const colDef = {
3548
+ // overridable properties
3549
+ maxWidth: 50,
3550
+ resizable: false,
3551
+ suppressHeaderMenuButton: true,
3552
+ sortable: false,
3553
+ suppressMovable: true,
3554
+ lockPosition: enableRTL ? "right" : "left",
3555
+ comparator(valueA, valueB, nodeA, nodeB) {
3556
+ const aSelected = nodeA.isSelected();
3557
+ const bSelected = nodeB.isSelected();
3558
+ return aSelected && bSelected ? 0 : aSelected ? 1 : -1;
3559
+ },
3560
+ editable: false,
3561
+ suppressFillHandle: true,
3562
+ // overrides
3563
+ ...selectionColumnDef,
3564
+ // non-overridable properties
3565
+ colId: `${CONTROLS_COLUMN_ID_PREFIX}`
3566
+ };
3567
+ const col = new AgColumn(colDef, null, colDef.colId, false);
3568
+ this.createBean(col);
3569
+ return [col];
3566
3570
  }
3567
3571
  };
3568
3572
 
@@ -3700,6 +3704,9 @@ function _iterateObject(object, callback) {
3700
3704
  return;
3701
3705
  }
3702
3706
  for (const [key, value] of Object.entries(object)) {
3707
+ if (SKIP_JS_BUILTINS.has(key)) {
3708
+ continue;
3709
+ }
3703
3710
  callback(key, value);
3704
3711
  }
3705
3712
  }
@@ -4977,11 +4984,12 @@ var ColumnModel = class extends BeanStub {
4977
4984
  getColsToShow() {
4978
4985
  const showAutoGroupAndValuesOnly = this.isPivotMode() && !this.isShowingPivotResult();
4979
4986
  const valueColumns = this.funcColsService.getValueColumns();
4987
+ const showSelectionCol = this.controlsColService?.isControlsColEnabled();
4980
4988
  const res = this.cols.list.filter((col) => {
4981
4989
  const isAutoGroupCol = isColumnGroupAutoCol(col);
4982
4990
  if (showAutoGroupAndValuesOnly) {
4983
4991
  const isValueCol = valueColumns && _includes(valueColumns, col);
4984
- return isAutoGroupCol || isValueCol;
4992
+ return isAutoGroupCol || isValueCol || showSelectionCol && isColumnControlsCol(col);
4985
4993
  } else {
4986
4994
  return isAutoGroupCol || col.isVisible();
4987
4995
  }
@@ -19847,7 +19855,7 @@ function _defineModule(definition) {
19847
19855
  }
19848
19856
 
19849
19857
  // community-modules/core/src/version.ts
19850
- var VERSION = "32.3.8";
19858
+ var VERSION = "32.3.9";
19851
19859
 
19852
19860
  // community-modules/core/src/filter/columnFilterApi.ts
19853
19861
  function isColumnFilterPresent(beans) {
@@ -44190,7 +44198,7 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
44190
44198
  const fireEvent = (name, e) => {
44191
44199
  const eventHandler = this.gridOptions[ComponentUtil.getCallbackForEvent(name)];
44192
44200
  if (typeof eventHandler === "function") {
44193
- this.frameworkOverrides.wrapOutgoing(() => eventHandler(event));
44201
+ this.frameworkOverrides.wrapOutgoing(() => eventHandler(e));
44194
44202
  }
44195
44203
  };
44196
44204
  if (this.gridReadyFired) {
@@ -48030,7 +48038,7 @@ var GridSerializer = class extends import_core6.BeanStub {
48030
48038
  };
48031
48039
 
48032
48040
  // community-modules/csv-export/src/version.ts
48033
- var VERSION = "32.3.8";
48041
+ var VERSION = "32.3.9";
48034
48042
 
48035
48043
  // community-modules/csv-export/src/csvExportModule.ts
48036
48044
  var CsvExportCoreModule = (0, import_core7._defineModule)({
@@ -49287,7 +49295,7 @@ function getInfiniteRowCount(beans) {
49287
49295
  }
49288
49296
 
49289
49297
  // community-modules/infinite-row-model/src/version.ts
49290
- var VERSION = "32.3.8";
49298
+ var VERSION = "32.3.9";
49291
49299
 
49292
49300
  // community-modules/infinite-row-model/src/infiniteRowModelModule.ts
49293
49301
  var InfiniteRowModelCoreModule = (0, import_core4._defineModule)({