@syncfusion/ej2-treegrid 23.1.36 → 23.1.43

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.
@@ -5271,6 +5271,18 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5271
5271
  }
5272
5272
  this.isEditCollapse = false;
5273
5273
  this.notify('checkboxSelection', { target: target });
5274
+ if (this.grid.isCheckBoxSelection && !this.grid.isPersistSelection) {
5275
+ if (this.aggregates.map((ag) => ag.showChildSummary === true).length) {
5276
+ const checkedTarget = this.grid.getHeaderContent().querySelector('.e-checkselectall');
5277
+ const checkedLen = this.grid.getSelectedRowIndexes().length;
5278
+ const totalRecords = this.getCurrentViewRecords().length;
5279
+ if (checkedLen === totalRecords) {
5280
+ const spanEle = checkedTarget.nextElementSibling;
5281
+ removeClass([spanEle], ['e-stop', 'e-uncheck']);
5282
+ addClass([spanEle], ['e-check']);
5283
+ }
5284
+ }
5285
+ }
5274
5286
  }
5275
5287
  /**
5276
5288
  * Returns TreeGrid rows
@@ -8456,6 +8468,9 @@ class RowDD$1 {
8456
8468
  if (!tObj.rowDropSettings.targetID && this.canDrop) {
8457
8469
  tObj.rowDragAndDropModule.updateIcon(args.rows, rowIdx, args);
8458
8470
  }
8471
+ if (isNullOrUndefined(tObj.rowDropSettings.targetID) && !this.canDrop) {
8472
+ this.removetopOrBottomBorder();
8473
+ }
8459
8474
  if (tObj.rowDropSettings.targetID) {
8460
8475
  const dropElement = parentsUntil(args.target, 'e-treegrid');
8461
8476
  if (dropElement && dropElement.id === this.parent.rowDropSettings.targetID) {
@@ -8479,7 +8494,6 @@ class RowDD$1 {
8479
8494
  this.dropPosition = 'Invalid';
8480
8495
  }
8481
8496
  setValue('dropPosition', this.dropPosition, args);
8482
- args.dropIndex = args.dropIndex === args.fromIndex ? this.getTargetIdx(args.target.parentElement) : args.dropIndex;
8483
8497
  tObj.trigger(rowDrop, args);
8484
8498
  if (!args.cancel) {
8485
8499
  if (!isCountRequired(this.parent)) {
@@ -10913,10 +10927,6 @@ class BatchEdit {
10913
10927
  this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].data = added;
10914
10928
  this.newBatchRowAdded = false;
10915
10929
  }
10916
- if (this.parent.frozenColumns || this.parent.getFrozenColumns()
10917
- && this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].edit === 'add') {
10918
- merge(this.currentViewRecords[parseInt(rowObjectIndex.toString(), 10)], this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].changes);
10919
- }
10920
10930
  }
10921
10931
  }
10922
10932
  beforeBatchAdd(e) {
@@ -12707,8 +12717,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
12707
12717
  if (isNullOrUndefined(this.observer[`${containerRect}`])) {
12708
12718
  this.observer[`${containerRect}`] = this.observers[`${containerRect}`];
12709
12719
  }
12710
- if (isNullOrUndefined(this.parent['clipboardModule'].treeGridParent.editModule) || args.selectedIndex !== 0 ||
12711
- isNullOrUndefined(this.parent['clipboardModule'].treeGridParent.editModule['addRowIndex'])) {
12720
+ if (isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule) || args.selectedIndex !== 0 ||
12721
+ isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule['addRowIndex'])) {
12712
12722
  super[`${selectVirtualRow}`](args);
12713
12723
  }
12714
12724
  }
@@ -13304,7 +13314,12 @@ class VirtualScroll$1 {
13304
13314
  }
13305
13315
  this.expandCollapseRec = null;
13306
13316
  startIndex = startIndex < 0 ? 0 : startIndex;
13307
- pageingDetails.result = visualData.slice(startIndex, endIndex);
13317
+ if (endIndex === 0 && visualData.length > 0) {
13318
+ pageingDetails.result = visualData;
13319
+ }
13320
+ else {
13321
+ pageingDetails.result = visualData.slice(startIndex, endIndex);
13322
+ }
13308
13323
  this.prevstartIndex = startIndex;
13309
13324
  this.prevendIndex = endIndex;
13310
13325
  }
@@ -13430,7 +13445,7 @@ class Freeze$1 {
13430
13445
  dblClickHandler(e) {
13431
13446
  if (parentsUntil(e.target, 'e-rowcell') &&
13432
13447
  this.parent.grid.editSettings.allowEditOnDblClick && this.parent.editSettings.mode !== 'Cell' && (!e.target['classList'].contains('e-treegridcollapse') && !e.target['classList'].contains('e-treegridexpand'))) {
13433
- this.parent.grid.editModule.startEdit(parentsUntil(e.target, 'e-row'));
13448
+ this.parent.startEdit(parentsUntil(e.target, 'e-row'));
13434
13449
  }
13435
13450
  }
13436
13451
  dataBoundArg() {