ag-grid-community 32.0.0 → 32.0.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.
@@ -1816,7 +1816,7 @@ var SortStage = class extends import_core8.BeanStub {
1816
1816
  };
1817
1817
 
1818
1818
  // community-modules/client-side-row-model/src/version.ts
1819
- var VERSION = "32.0.0";
1819
+ var VERSION = "32.0.2";
1820
1820
 
1821
1821
  // community-modules/client-side-row-model/src/clientSideRowModelModule.ts
1822
1822
  var ClientSideRowModelCoreModule = {
@@ -2775,6 +2775,7 @@ function _values(object) {
2775
2775
  }
2776
2776
 
2777
2777
  // community-modules/core/src/utils/object.ts
2778
+ var SKIP_JS_BUILTINS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
2778
2779
  function _iterateObject(object, callback) {
2779
2780
  if (object == null) {
2780
2781
  return;
@@ -2793,6 +2794,9 @@ function _cloneObject(object) {
2793
2794
  const copy = {};
2794
2795
  const keys = Object.keys(object);
2795
2796
  for (let i = 0; i < keys.length; i++) {
2797
+ if (SKIP_JS_BUILTINS.has(keys[i])) {
2798
+ continue;
2799
+ }
2796
2800
  const key = keys[i];
2797
2801
  const value = object[key];
2798
2802
  copy[key] = value;
@@ -2806,7 +2810,7 @@ function _deepCloneDefinition(object, keysToSkip) {
2806
2810
  const obj = object;
2807
2811
  const res = {};
2808
2812
  Object.keys(obj).forEach((key) => {
2809
- if (keysToSkip && keysToSkip.indexOf(key) >= 0) {
2813
+ if (keysToSkip && keysToSkip.indexOf(key) >= 0 || SKIP_JS_BUILTINS.has(key)) {
2810
2814
  return;
2811
2815
  }
2812
2816
  const value = obj[key];
@@ -2840,6 +2844,9 @@ function _mergeDeep(dest, source, copyUndefined = true, makeCopyOfSimpleObjects
2840
2844
  return;
2841
2845
  }
2842
2846
  _iterateObject(source, (key, sourceValue) => {
2847
+ if (SKIP_JS_BUILTINS.has(key)) {
2848
+ return;
2849
+ }
2843
2850
  let destValue = dest[key];
2844
2851
  if (destValue === sourceValue) {
2845
2852
  return;
@@ -3646,10 +3653,10 @@ function _log(message, ...args) {
3646
3653
  console.log("AG Grid: " + message, ...args);
3647
3654
  }
3648
3655
  function _warnOnce(msg, ...args) {
3649
- _doOnce(() => console.warn("AG Grid: " + msg, ...args), msg);
3656
+ _doOnce(() => console.warn("AG Grid: " + msg, ...args), msg + args?.join(""));
3650
3657
  }
3651
3658
  function _errorOnce(msg, ...args) {
3652
- _doOnce(() => console.error("AG Grid: " + msg, ...args), msg);
3659
+ _doOnce(() => console.error("AG Grid: " + msg, ...args), msg + args?.join(""));
3653
3660
  }
3654
3661
  function _isFunction(val) {
3655
3662
  return !!(val && val.constructor && val.call && val.apply);
@@ -6038,21 +6045,25 @@ var ColumnMoveService = class extends BeanStub {
6038
6045
  return proposedColumnOrder;
6039
6046
  }
6040
6047
  doesMovePassLockedPositions(proposedColumnOrder) {
6041
- let lastPlacement = 0;
6042
- let rulePassed = true;
6043
6048
  const lockPositionToPlacement = (position) => {
6044
6049
  if (!position) {
6045
- return 1;
6046
- }
6047
- if (position === true) {
6048
- return 0;
6050
+ return 0 /* NONE */;
6049
6051
  }
6050
- return position === "left" ? 0 : 2;
6052
+ return position === "left" || position === true ? -1 /* LEFT */ : 1 /* RIGHT */;
6051
6053
  };
6054
+ const isRtl = this.gos.get("enableRtl");
6055
+ let lastPlacement = isRtl ? 1 /* RIGHT */ : -1 /* LEFT */;
6056
+ let rulePassed = true;
6052
6057
  proposedColumnOrder.forEach((col) => {
6053
6058
  const placement = lockPositionToPlacement(col.getColDef().lockPosition);
6054
- if (placement < lastPlacement) {
6055
- rulePassed = false;
6059
+ if (isRtl) {
6060
+ if (placement > lastPlacement) {
6061
+ rulePassed = false;
6062
+ }
6063
+ } else {
6064
+ if (placement < lastPlacement) {
6065
+ rulePassed = false;
6066
+ }
6056
6067
  }
6057
6068
  lastPlacement = placement;
6058
6069
  });
@@ -9399,9 +9410,15 @@ var Component = class _Component extends BeanStub {
9399
9410
  );
9400
9411
  }
9401
9412
  }
9413
+ getDataRefAttribute(element) {
9414
+ if (element.getAttribute) {
9415
+ return element.getAttribute("data-ref");
9416
+ }
9417
+ return null;
9418
+ }
9402
9419
  applyElementsToComponent(element, elementRef, paramsMap, newComponent = null) {
9403
9420
  if (elementRef === void 0) {
9404
- elementRef = element.getAttribute("data-ref");
9421
+ elementRef = this.getDataRefAttribute(element);
9405
9422
  }
9406
9423
  if (elementRef) {
9407
9424
  const current = this[elementRef];
@@ -9446,7 +9463,7 @@ var Component = class _Component extends BeanStub {
9446
9463
  }
9447
9464
  createComponentFromElement(element, afterPreCreateCallback, paramsMap) {
9448
9465
  const key = element.nodeName;
9449
- const elementRef = element.getAttribute("data-ref");
9466
+ const elementRef = this.getDataRefAttribute(element);
9450
9467
  const isAgGridComponent = key.indexOf("AG-") === 0;
9451
9468
  const componentSelector = isAgGridComponent ? this.componentSelectors.get(key) : null;
9452
9469
  let newComponent = null;
@@ -12658,9 +12675,11 @@ var RowDragFeature = class extends BeanStub {
12658
12675
  addIndex--;
12659
12676
  }
12660
12677
  this.clientSideRowModel.updateRowData({
12661
- add: rowNodes.map((node) => node.data).filter(
12662
- (data) => !this.clientSideRowModel.getRowNode(getRowIdFunc?.({ data, level: 0 }) ?? data.id)
12663
- ),
12678
+ add: rowNodes.filter(
12679
+ (node) => !this.clientSideRowModel.getRowNode(
12680
+ getRowIdFunc?.({ data: node.data, level: 0, rowPinned: node.rowPinned }) ?? node.data.id
12681
+ )
12682
+ ).map((node) => node.data),
12664
12683
  addIndex
12665
12684
  });
12666
12685
  }
@@ -13135,10 +13154,19 @@ var RowDragComp = class extends Component {
13135
13154
  if (this.dragSource) {
13136
13155
  this.removeDragSource();
13137
13156
  }
13157
+ const eGui = this.getGui();
13158
+ if (this.gos.get("enableCellTextSelection")) {
13159
+ this.removeMouseDownListener();
13160
+ this.mouseDownListener = this.addManagedElementListeners(eGui, {
13161
+ mousedown: (e) => {
13162
+ e?.preventDefault();
13163
+ }
13164
+ })[0];
13165
+ }
13138
13166
  const translate = this.localeService.getLocaleTextFunc();
13139
13167
  this.dragSource = {
13140
13168
  type: 2 /* RowDrag */,
13141
- eElement: this.getGui(),
13169
+ eElement: eGui,
13142
13170
  dragItemName: () => {
13143
13171
  const dragItem = this.getDragItem();
13144
13172
  const dragItemCount = dragItem.rowNodes?.length || 1;
@@ -13156,14 +13184,23 @@ var RowDragComp = class extends Component {
13156
13184
  }
13157
13185
  destroy() {
13158
13186
  this.removeDragSource();
13187
+ this.removeMouseDownListener();
13159
13188
  super.destroy();
13160
13189
  }
13161
13190
  removeDragSource() {
13162
- if (this.dragSource) {
13163
- this.beans.dragAndDropService.removeDragSource(this.dragSource);
13191
+ if (!this.dragSource) {
13192
+ return;
13164
13193
  }
13194
+ this.beans.dragAndDropService.removeDragSource(this.dragSource);
13165
13195
  this.dragSource = null;
13166
13196
  }
13197
+ removeMouseDownListener() {
13198
+ if (!this.mouseDownListener) {
13199
+ return;
13200
+ }
13201
+ this.mouseDownListener();
13202
+ this.mouseDownListener = void 0;
13203
+ }
13167
13204
  };
13168
13205
  var VisibilityStrategy = class extends BeanStub {
13169
13206
  constructor(parent, rowNode, column) {
@@ -13398,7 +13435,8 @@ var _RowNode = class _RowNode {
13398
13435
  this.id = getRowIdFunc({
13399
13436
  data: this.data,
13400
13437
  parentKeys: parentKeys.length > 0 ? parentKeys : void 0,
13401
- level: this.level
13438
+ level: this.level,
13439
+ rowPinned: this.rowPinned
13402
13440
  });
13403
13441
  if (this.id.startsWith(_RowNode.ID_PREFIX_ROW_GROUP)) {
13404
13442
  _errorOnce(
@@ -18867,7 +18905,7 @@ var HeaderFilterCellCtrl = class extends AbstractHeaderCellCtrl {
18867
18905
  };
18868
18906
 
18869
18907
  // community-modules/core/src/version.ts
18870
- var VERSION = "32.0.0";
18908
+ var VERSION = "32.0.2";
18871
18909
 
18872
18910
  // community-modules/core/src/filter/columnFilterApi.ts
18873
18911
  function isColumnFilterPresent(beans) {
@@ -26257,35 +26295,36 @@ var CellMouseListenerFeature = class extends BeanStub {
26257
26295
  return res;
26258
26296
  }
26259
26297
  onCellDoubleClicked(mouseEvent) {
26260
- const colDef = this.column.getColDef();
26261
- const cellDoubleClickedEvent = this.cellCtrl.createEvent(
26262
- mouseEvent,
26263
- "cellDoubleClicked"
26264
- );
26265
- this.beans.eventService.dispatchEvent(cellDoubleClickedEvent);
26298
+ const { column, beans, cellCtrl } = this;
26299
+ const { eventService, frameworkOverrides, gos } = beans;
26300
+ const colDef = column.getColDef();
26301
+ const cellDoubleClickedEvent = cellCtrl.createEvent(mouseEvent, "cellDoubleClicked");
26302
+ eventService.dispatchEvent(cellDoubleClickedEvent);
26266
26303
  if (typeof colDef.onCellDoubleClicked === "function") {
26267
26304
  window.setTimeout(() => {
26268
- this.beans.frameworkOverrides.wrapOutgoing(() => {
26305
+ frameworkOverrides.wrapOutgoing(() => {
26269
26306
  colDef.onCellDoubleClicked(cellDoubleClickedEvent);
26270
26307
  });
26271
26308
  }, 0);
26272
26309
  }
26273
- const editOnDoubleClick = !this.beans.gos.get("singleClickEdit") && !this.beans.gos.get("suppressClickEdit");
26310
+ const editOnDoubleClick = !gos.get("singleClickEdit") && !gos.get("suppressClickEdit");
26274
26311
  if (editOnDoubleClick) {
26275
- this.cellCtrl.startRowOrCellEdit(null, mouseEvent);
26312
+ cellCtrl.startRowOrCellEdit(null, mouseEvent);
26276
26313
  }
26277
26314
  }
26278
26315
  onMouseDown(mouseEvent) {
26279
26316
  const { ctrlKey, metaKey, shiftKey } = mouseEvent;
26280
26317
  const target = mouseEvent.target;
26281
26318
  const { cellCtrl, beans } = this;
26282
- const { eventService, rangeService, focusService } = beans;
26319
+ const { eventService, rangeService, focusService, gos } = beans;
26283
26320
  if (this.isRightClickInExistingRange(mouseEvent)) {
26284
26321
  return;
26285
26322
  }
26286
26323
  const ranges = rangeService && rangeService.getCellRanges().length != 0;
26287
26324
  if (!shiftKey || !ranges) {
26288
- const forceBrowserFocus = _isBrowserSafari() && !cellCtrl.isEditing() && !_isFocusableFormField(target);
26325
+ const isEnableCellTextSelection = gos.get("enableCellTextSelection");
26326
+ const shouldFocus = isEnableCellTextSelection && mouseEvent.defaultPrevented;
26327
+ const forceBrowserFocus = (_isBrowserSafari() || shouldFocus) && !cellCtrl.isEditing() && !_isFocusableFormField(target);
26289
26328
  cellCtrl.focusCell(forceBrowserFocus);
26290
26329
  }
26291
26330
  if (shiftKey && ranges && !focusService.isCellFocused(cellCtrl.getCellPosition())) {
@@ -33945,6 +33984,7 @@ var PinnedRowModel = class extends BeanStub {
33945
33984
  constructor() {
33946
33985
  super(...arguments);
33947
33986
  this.beanName = "pinnedRowModel";
33987
+ this.nextId = 0;
33948
33988
  }
33949
33989
  wireBeans(beans) {
33950
33990
  this.beans = beans;
@@ -34029,11 +34069,12 @@ var PinnedRowModel = class extends BeanStub {
34029
34069
  const getRowId = this.gos.getRowIdCallback();
34030
34070
  const idPrefix = isTop ? RowNode.ID_PREFIX_TOP_PINNED : RowNode.ID_PREFIX_BOTTOM_PINNED;
34031
34071
  let nextRowTop = 0;
34072
+ const pinned = isTop ? "top" : "bottom";
34032
34073
  allData.forEach((dataItem, index) => {
34033
34074
  const rowNode = new RowNode(this.beans);
34034
34075
  rowNode.data = dataItem;
34035
- rowNode.id = getRowId?.({ data: dataItem, level: 0 }) ?? idPrefix + index;
34036
- rowNode.rowPinned = isTop ? "top" : "bottom";
34076
+ rowNode.id = getRowId?.({ data: dataItem, level: 0, rowPinned: pinned }) ?? idPrefix + this.nextId++;
34077
+ rowNode.rowPinned = pinned;
34037
34078
  rowNode.setRowTop(nextRowTop);
34038
34079
  rowNode.setRowHeight(this.gos.getRowHeightForNode(rowNode).height);
34039
34080
  rowNode.setRowIndex(index);
@@ -35793,6 +35834,9 @@ function createApi(context) {
35793
35834
  const apiFunctionService = context.getBean("apiFunctionService");
35794
35835
  return new Proxy(apiFunctionService, {
35795
35836
  get(target, prop) {
35837
+ if (prop === "then") {
35838
+ return;
35839
+ }
35796
35840
  return (...args) => target.callFunction(prop, args);
35797
35841
  }
35798
35842
  });
@@ -42513,7 +42557,7 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
42513
42557
  return (params) => {
42514
42558
  let id = getRowId(params);
42515
42559
  if (typeof id !== "string") {
42516
- _warnOnce(`The getRowId callback must return a string. The ID ${id} is being cast to a string.`);
42560
+ _warnOnce(`The getRowId callback must return a string. The ID `, id, ` is being cast to a string.`);
42517
42561
  id = String(id);
42518
42562
  }
42519
42563
  return id;
@@ -46105,7 +46149,7 @@ var GridSerializer = class extends import_core5.BeanStub {
46105
46149
  };
46106
46150
 
46107
46151
  // community-modules/csv-export/src/version.ts
46108
- var VERSION = "32.0.0";
46152
+ var VERSION = "32.0.2";
46109
46153
 
46110
46154
  // community-modules/csv-export/src/csvExportModule.ts
46111
46155
  var CsvExportCoreModule = {
@@ -47369,7 +47413,7 @@ function isLastRowIndexKnown(beans) {
47369
47413
  }
47370
47414
 
47371
47415
  // community-modules/infinite-row-model/src/version.ts
47372
- var VERSION = "32.0.0";
47416
+ var VERSION = "32.0.2";
47373
47417
 
47374
47418
  // community-modules/infinite-row-model/src/infiniteRowModelModule.ts
47375
47419
  var InfiniteRowModelCoreModule = {
@@ -930,6 +930,7 @@ function _values(object) {
930
930
  }
931
931
 
932
932
  // community-modules/core/src/utils/object.ts
933
+ var SKIP_JS_BUILTINS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
933
934
  function _iterateObject(object, callback) {
934
935
  if (object == null) {
935
936
  return;
@@ -948,6 +949,9 @@ function _cloneObject(object) {
948
949
  const copy = {};
949
950
  const keys = Object.keys(object);
950
951
  for (let i = 0; i < keys.length; i++) {
952
+ if (SKIP_JS_BUILTINS.has(keys[i])) {
953
+ continue;
954
+ }
951
955
  const key = keys[i];
952
956
  const value = object[key];
953
957
  copy[key] = value;
@@ -961,7 +965,7 @@ function _deepCloneDefinition(object, keysToSkip) {
961
965
  const obj = object;
962
966
  const res = {};
963
967
  Object.keys(obj).forEach((key) => {
964
- if (keysToSkip && keysToSkip.indexOf(key) >= 0) {
968
+ if (keysToSkip && keysToSkip.indexOf(key) >= 0 || SKIP_JS_BUILTINS.has(key)) {
965
969
  return;
966
970
  }
967
971
  const value = obj[key];
@@ -995,6 +999,9 @@ function _mergeDeep(dest, source, copyUndefined = true, makeCopyOfSimpleObjects
995
999
  return;
996
1000
  }
997
1001
  _iterateObject(source, (key, sourceValue) => {
1002
+ if (SKIP_JS_BUILTINS.has(key)) {
1003
+ return;
1004
+ }
998
1005
  let destValue = dest[key];
999
1006
  if (destValue === sourceValue) {
1000
1007
  return;
@@ -1801,10 +1808,10 @@ function _log(message, ...args) {
1801
1808
  console.log("AG Grid: " + message, ...args);
1802
1809
  }
1803
1810
  function _warnOnce(msg, ...args) {
1804
- _doOnce(() => console.warn("AG Grid: " + msg, ...args), msg);
1811
+ _doOnce(() => console.warn("AG Grid: " + msg, ...args), msg + args?.join(""));
1805
1812
  }
1806
1813
  function _errorOnce(msg, ...args) {
1807
- _doOnce(() => console.error("AG Grid: " + msg, ...args), msg);
1814
+ _doOnce(() => console.error("AG Grid: " + msg, ...args), msg + args?.join(""));
1808
1815
  }
1809
1816
  function _isFunction(val) {
1810
1817
  return !!(val && val.constructor && val.call && val.apply);
@@ -4193,21 +4200,25 @@ var ColumnMoveService = class extends BeanStub {
4193
4200
  return proposedColumnOrder;
4194
4201
  }
4195
4202
  doesMovePassLockedPositions(proposedColumnOrder) {
4196
- let lastPlacement = 0;
4197
- let rulePassed = true;
4198
4203
  const lockPositionToPlacement = (position) => {
4199
4204
  if (!position) {
4200
- return 1;
4201
- }
4202
- if (position === true) {
4203
- return 0;
4205
+ return 0 /* NONE */;
4204
4206
  }
4205
- return position === "left" ? 0 : 2;
4207
+ return position === "left" || position === true ? -1 /* LEFT */ : 1 /* RIGHT */;
4206
4208
  };
4209
+ const isRtl = this.gos.get("enableRtl");
4210
+ let lastPlacement = isRtl ? 1 /* RIGHT */ : -1 /* LEFT */;
4211
+ let rulePassed = true;
4207
4212
  proposedColumnOrder.forEach((col) => {
4208
4213
  const placement = lockPositionToPlacement(col.getColDef().lockPosition);
4209
- if (placement < lastPlacement) {
4210
- rulePassed = false;
4214
+ if (isRtl) {
4215
+ if (placement > lastPlacement) {
4216
+ rulePassed = false;
4217
+ }
4218
+ } else {
4219
+ if (placement < lastPlacement) {
4220
+ rulePassed = false;
4221
+ }
4211
4222
  }
4212
4223
  lastPlacement = placement;
4213
4224
  });
@@ -7554,9 +7565,15 @@ var Component = class _Component extends BeanStub {
7554
7565
  );
7555
7566
  }
7556
7567
  }
7568
+ getDataRefAttribute(element) {
7569
+ if (element.getAttribute) {
7570
+ return element.getAttribute("data-ref");
7571
+ }
7572
+ return null;
7573
+ }
7557
7574
  applyElementsToComponent(element, elementRef, paramsMap, newComponent = null) {
7558
7575
  if (elementRef === void 0) {
7559
- elementRef = element.getAttribute("data-ref");
7576
+ elementRef = this.getDataRefAttribute(element);
7560
7577
  }
7561
7578
  if (elementRef) {
7562
7579
  const current = this[elementRef];
@@ -7601,7 +7618,7 @@ var Component = class _Component extends BeanStub {
7601
7618
  }
7602
7619
  createComponentFromElement(element, afterPreCreateCallback, paramsMap) {
7603
7620
  const key = element.nodeName;
7604
- const elementRef = element.getAttribute("data-ref");
7621
+ const elementRef = this.getDataRefAttribute(element);
7605
7622
  const isAgGridComponent = key.indexOf("AG-") === 0;
7606
7623
  const componentSelector = isAgGridComponent ? this.componentSelectors.get(key) : null;
7607
7624
  let newComponent = null;
@@ -10813,9 +10830,11 @@ var RowDragFeature = class extends BeanStub {
10813
10830
  addIndex--;
10814
10831
  }
10815
10832
  this.clientSideRowModel.updateRowData({
10816
- add: rowNodes.map((node) => node.data).filter(
10817
- (data) => !this.clientSideRowModel.getRowNode(getRowIdFunc?.({ data, level: 0 }) ?? data.id)
10818
- ),
10833
+ add: rowNodes.filter(
10834
+ (node) => !this.clientSideRowModel.getRowNode(
10835
+ getRowIdFunc?.({ data: node.data, level: 0, rowPinned: node.rowPinned }) ?? node.data.id
10836
+ )
10837
+ ).map((node) => node.data),
10819
10838
  addIndex
10820
10839
  });
10821
10840
  }
@@ -11290,10 +11309,19 @@ var RowDragComp = class extends Component {
11290
11309
  if (this.dragSource) {
11291
11310
  this.removeDragSource();
11292
11311
  }
11312
+ const eGui = this.getGui();
11313
+ if (this.gos.get("enableCellTextSelection")) {
11314
+ this.removeMouseDownListener();
11315
+ this.mouseDownListener = this.addManagedElementListeners(eGui, {
11316
+ mousedown: (e) => {
11317
+ e?.preventDefault();
11318
+ }
11319
+ })[0];
11320
+ }
11293
11321
  const translate = this.localeService.getLocaleTextFunc();
11294
11322
  this.dragSource = {
11295
11323
  type: 2 /* RowDrag */,
11296
- eElement: this.getGui(),
11324
+ eElement: eGui,
11297
11325
  dragItemName: () => {
11298
11326
  const dragItem = this.getDragItem();
11299
11327
  const dragItemCount = dragItem.rowNodes?.length || 1;
@@ -11311,14 +11339,23 @@ var RowDragComp = class extends Component {
11311
11339
  }
11312
11340
  destroy() {
11313
11341
  this.removeDragSource();
11342
+ this.removeMouseDownListener();
11314
11343
  super.destroy();
11315
11344
  }
11316
11345
  removeDragSource() {
11317
- if (this.dragSource) {
11318
- this.beans.dragAndDropService.removeDragSource(this.dragSource);
11346
+ if (!this.dragSource) {
11347
+ return;
11319
11348
  }
11349
+ this.beans.dragAndDropService.removeDragSource(this.dragSource);
11320
11350
  this.dragSource = null;
11321
11351
  }
11352
+ removeMouseDownListener() {
11353
+ if (!this.mouseDownListener) {
11354
+ return;
11355
+ }
11356
+ this.mouseDownListener();
11357
+ this.mouseDownListener = void 0;
11358
+ }
11322
11359
  };
11323
11360
  var VisibilityStrategy = class extends BeanStub {
11324
11361
  constructor(parent, rowNode, column) {
@@ -11553,7 +11590,8 @@ var _RowNode = class _RowNode {
11553
11590
  this.id = getRowIdFunc({
11554
11591
  data: this.data,
11555
11592
  parentKeys: parentKeys.length > 0 ? parentKeys : void 0,
11556
- level: this.level
11593
+ level: this.level,
11594
+ rowPinned: this.rowPinned
11557
11595
  });
11558
11596
  if (this.id.startsWith(_RowNode.ID_PREFIX_ROW_GROUP)) {
11559
11597
  _errorOnce(
@@ -17022,7 +17060,7 @@ var HeaderFilterCellCtrl = class extends AbstractHeaderCellCtrl {
17022
17060
  };
17023
17061
 
17024
17062
  // community-modules/core/src/version.ts
17025
- var VERSION = "32.0.0";
17063
+ var VERSION = "32.0.2";
17026
17064
 
17027
17065
  // community-modules/core/src/filter/columnFilterApi.ts
17028
17066
  function isColumnFilterPresent(beans) {
@@ -24412,35 +24450,36 @@ var CellMouseListenerFeature = class extends BeanStub {
24412
24450
  return res;
24413
24451
  }
24414
24452
  onCellDoubleClicked(mouseEvent) {
24415
- const colDef = this.column.getColDef();
24416
- const cellDoubleClickedEvent = this.cellCtrl.createEvent(
24417
- mouseEvent,
24418
- "cellDoubleClicked"
24419
- );
24420
- this.beans.eventService.dispatchEvent(cellDoubleClickedEvent);
24453
+ const { column, beans, cellCtrl } = this;
24454
+ const { eventService, frameworkOverrides, gos } = beans;
24455
+ const colDef = column.getColDef();
24456
+ const cellDoubleClickedEvent = cellCtrl.createEvent(mouseEvent, "cellDoubleClicked");
24457
+ eventService.dispatchEvent(cellDoubleClickedEvent);
24421
24458
  if (typeof colDef.onCellDoubleClicked === "function") {
24422
24459
  window.setTimeout(() => {
24423
- this.beans.frameworkOverrides.wrapOutgoing(() => {
24460
+ frameworkOverrides.wrapOutgoing(() => {
24424
24461
  colDef.onCellDoubleClicked(cellDoubleClickedEvent);
24425
24462
  });
24426
24463
  }, 0);
24427
24464
  }
24428
- const editOnDoubleClick = !this.beans.gos.get("singleClickEdit") && !this.beans.gos.get("suppressClickEdit");
24465
+ const editOnDoubleClick = !gos.get("singleClickEdit") && !gos.get("suppressClickEdit");
24429
24466
  if (editOnDoubleClick) {
24430
- this.cellCtrl.startRowOrCellEdit(null, mouseEvent);
24467
+ cellCtrl.startRowOrCellEdit(null, mouseEvent);
24431
24468
  }
24432
24469
  }
24433
24470
  onMouseDown(mouseEvent) {
24434
24471
  const { ctrlKey, metaKey, shiftKey } = mouseEvent;
24435
24472
  const target = mouseEvent.target;
24436
24473
  const { cellCtrl, beans } = this;
24437
- const { eventService, rangeService, focusService } = beans;
24474
+ const { eventService, rangeService, focusService, gos } = beans;
24438
24475
  if (this.isRightClickInExistingRange(mouseEvent)) {
24439
24476
  return;
24440
24477
  }
24441
24478
  const ranges = rangeService && rangeService.getCellRanges().length != 0;
24442
24479
  if (!shiftKey || !ranges) {
24443
- const forceBrowserFocus = _isBrowserSafari() && !cellCtrl.isEditing() && !_isFocusableFormField(target);
24480
+ const isEnableCellTextSelection = gos.get("enableCellTextSelection");
24481
+ const shouldFocus = isEnableCellTextSelection && mouseEvent.defaultPrevented;
24482
+ const forceBrowserFocus = (_isBrowserSafari() || shouldFocus) && !cellCtrl.isEditing() && !_isFocusableFormField(target);
24444
24483
  cellCtrl.focusCell(forceBrowserFocus);
24445
24484
  }
24446
24485
  if (shiftKey && ranges && !focusService.isCellFocused(cellCtrl.getCellPosition())) {
@@ -32100,6 +32139,7 @@ var PinnedRowModel = class extends BeanStub {
32100
32139
  constructor() {
32101
32140
  super(...arguments);
32102
32141
  this.beanName = "pinnedRowModel";
32142
+ this.nextId = 0;
32103
32143
  }
32104
32144
  wireBeans(beans) {
32105
32145
  this.beans = beans;
@@ -32184,11 +32224,12 @@ var PinnedRowModel = class extends BeanStub {
32184
32224
  const getRowId = this.gos.getRowIdCallback();
32185
32225
  const idPrefix = isTop ? RowNode.ID_PREFIX_TOP_PINNED : RowNode.ID_PREFIX_BOTTOM_PINNED;
32186
32226
  let nextRowTop = 0;
32227
+ const pinned = isTop ? "top" : "bottom";
32187
32228
  allData.forEach((dataItem, index) => {
32188
32229
  const rowNode = new RowNode(this.beans);
32189
32230
  rowNode.data = dataItem;
32190
- rowNode.id = getRowId?.({ data: dataItem, level: 0 }) ?? idPrefix + index;
32191
- rowNode.rowPinned = isTop ? "top" : "bottom";
32231
+ rowNode.id = getRowId?.({ data: dataItem, level: 0, rowPinned: pinned }) ?? idPrefix + this.nextId++;
32232
+ rowNode.rowPinned = pinned;
32192
32233
  rowNode.setRowTop(nextRowTop);
32193
32234
  rowNode.setRowHeight(this.gos.getRowHeightForNode(rowNode).height);
32194
32235
  rowNode.setRowIndex(index);
@@ -33948,6 +33989,9 @@ function createApi(context) {
33948
33989
  const apiFunctionService = context.getBean("apiFunctionService");
33949
33990
  return new Proxy(apiFunctionService, {
33950
33991
  get(target, prop) {
33992
+ if (prop === "then") {
33993
+ return;
33994
+ }
33951
33995
  return (...args) => target.callFunction(prop, args);
33952
33996
  }
33953
33997
  });
@@ -40668,7 +40712,7 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
40668
40712
  return (params) => {
40669
40713
  let id = getRowId(params);
40670
40714
  if (typeof id !== "string") {
40671
- _warnOnce(`The getRowId callback must return a string. The ID ${id} is being cast to a string.`);
40715
+ _warnOnce(`The getRowId callback must return a string. The ID `, id, ` is being cast to a string.`);
40672
40716
  id = String(id);
40673
40717
  }
40674
40718
  return id;
@@ -45304,7 +45348,7 @@ var SortStage = class extends BeanStub {
45304
45348
  };
45305
45349
 
45306
45350
  // community-modules/client-side-row-model/src/version.ts
45307
- var VERSION2 = "32.0.0";
45351
+ var VERSION2 = "32.0.2";
45308
45352
 
45309
45353
  // community-modules/client-side-row-model/src/clientSideRowModelModule.ts
45310
45354
  var ClientSideRowModelCoreModule = {
@@ -45993,7 +46037,7 @@ var GridSerializer = class extends BeanStub {
45993
46037
  });
45994
46038
  }
45995
46039
  };
45996
- var VERSION3 = "32.0.0";
46040
+ var VERSION3 = "32.0.2";
45997
46041
  var CsvExportCoreModule = {
45998
46042
  version: VERSION3,
45999
46043
  moduleName: `${"@ag-grid-community/csv-export" /* CsvExportModule */}-core`,
@@ -47191,7 +47235,7 @@ function getInfiniteRowCount(beans) {
47191
47235
  function isLastRowIndexKnown(beans) {
47192
47236
  return beans.rowModelHelperService?.getInfiniteRowModel()?.isLastRowIndexKnown();
47193
47237
  }
47194
- var VERSION4 = "32.0.0";
47238
+ var VERSION4 = "32.0.2";
47195
47239
  var InfiniteRowModelCoreModule = {
47196
47240
  version: VERSION4,
47197
47241
  moduleName: `${"@ag-grid-community/infinite-row-model" /* InfiniteRowModelModule */}-core`,