@syncfusion/ej2-treegrid 23.1.43 → 23.2.6

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 23.1.43
3
+ * version : 23.2.6
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-treegrid@*",
3
- "_id": "@syncfusion/ej2-treegrid@23.1.39",
3
+ "_id": "@syncfusion/ej2-treegrid@23.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-/ynWtImETCRcdoaraD8GGnc1UZwk5tsJSOCRDJv4/fJc54lEI5hb6EtE6cLIvIJAca1zer5SEuoaC5o6ULJ6ZA==",
5
+ "_integrity": "sha512-ZM2cNopSlWXSE44geI2y7IWt9NYMylXLmj40Ew9hhNYs7KoFC/ftE6oo0B+wXdwlGGZ7UTm5bggDh8fXIM2Hwg==",
6
6
  "_location": "/@syncfusion/ej2-treegrid",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,8 +24,8 @@
24
24
  "/@syncfusion/ej2-react-treegrid",
25
25
  "/@syncfusion/ej2-vue-treegrid"
26
26
  ],
27
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-23.1.39.tgz",
28
- "_shasum": "d52e799b6e358104ff1f34f40ae0b770b98409a5",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-23.2.4.tgz",
28
+ "_shasum": "f4fdb84fd5f8cc7234f48cd1b3e48a7a7dc273ac",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
31
31
  "author": {
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~23.1.41",
40
- "@syncfusion/ej2-data": "~23.1.43",
41
- "@syncfusion/ej2-grids": "~23.1.43",
42
- "@syncfusion/ej2-popups": "~23.1.43"
39
+ "@syncfusion/ej2-base": "~23.2.6",
40
+ "@syncfusion/ej2-data": "~23.2.4",
41
+ "@syncfusion/ej2-grids": "~23.2.6",
42
+ "@syncfusion/ej2-popups": "~23.2.4"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -66,6 +66,6 @@
66
66
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
67
67
  },
68
68
  "typings": "index.d.ts",
69
- "version": "23.1.43",
69
+ "version": "23.2.6",
70
70
  "sideEffects": false
71
71
  }
@@ -47,7 +47,7 @@ var TreeClipboard = /** @class */ (function (_super) {
47
47
  this.treeCopyContent += '\n';
48
48
  }
49
49
  if (!rows[selectedIndexes[parseInt(i.toString(), 10)]].classList.contains('e-summaryrow')) {
50
- var cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell'));
50
+ var cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell:not(.e-hide)'));
51
51
  var uniqueid = this.treeGridParent.getSelectedRecords()[parseInt(i.toString(), 10)]["" + uniqueID];
52
52
  if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
53
53
  if (this.treeGridParent.copyHierarchyMode === 'Parent' || this.treeGridParent.copyHierarchyMode === 'Both') {
@@ -109,7 +109,7 @@ var TreeClipboard = /** @class */ (function (_super) {
109
109
  if (!isNullOrUndefined(currentRecords[parseInt(selectedIndex.toString(), 10)]["" + parentItem]) &&
110
110
  currentRecords[parseInt(j.toString(), 10)]["" + uniqueID] === currentRecords[parseInt(selectedIndex.toString(), 10)]["" + parentItem]["" + uniqueID]) {
111
111
  selectedIndex = j;
112
- var cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell'));
112
+ var cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
113
113
  var uniqueid = currentRecords[parseInt(j.toString(), 10)]["" + uniqueID];
114
114
  if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
115
115
  this["" + getCopyData](cells, false, '\t', withHeader);
@@ -164,7 +164,7 @@ var TreeClipboard = /** @class */ (function (_super) {
164
164
  for (var j = 0; j < currentRecords.length; j++) {
165
165
  if (!isNullOrUndefined(childData[parseInt(i.toString(), 10)]["" + uniqueID]) && currentRecords[parseInt(j.toString(), 10)]["" + uniqueID] === childData[parseInt(i.toString(), 10)]["" + uniqueID]) {
166
166
  if ((!isNullOrUndefined(rows[parseInt(j.toString(), 10)])) && !rows[parseInt(j.toString(), 10)].classList.contains('e-summaryrow')) {
167
- var cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell'));
167
+ var cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
168
168
  var uniqueid = currentRecords[parseInt(j.toString(), 10)]["" + uniqueID];
169
169
  if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
170
170
  this["" + getCopyData](cells, false, '\t', withHeader);
@@ -371,7 +371,6 @@ var Edit = /** @class */ (function () {
371
371
  if (this.parent.editSettings.mode === 'Cell' && this.parent.element.querySelector('form')) {
372
372
  args.cancel = true;
373
373
  var editModule = 'editModule';
374
- setValue('isEdit', false, this.parent.grid);
375
374
  setValue('isEditCollapse', true, this.parent);
376
375
  args.rowData[args.columnName] = args.value;
377
376
  var row_1;
@@ -428,6 +427,7 @@ var Edit = /** @class */ (function () {
428
427
  }
429
428
  else {
430
429
  this.updateCell(args, rowIndex_1);
430
+ setValue('isEdit', false, this.parent.grid);
431
431
  this.afterCellSave(args, row_1, rowIndex_1);
432
432
  }
433
433
  }
@@ -436,6 +436,7 @@ var Edit = /** @class */ (function () {
436
436
  var query = this.parent.grid.query;
437
437
  if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
438
438
  this.updateCell(args, rowIndex_1);
439
+ setValue('isEdit', false, this.parent.grid);
439
440
  this.afterCellSave(args, row_1, rowIndex_1);
440
441
  }
441
442
  else {
@@ -446,6 +447,7 @@ var Edit = /** @class */ (function () {
446
447
  args.rowData[args.columnName] = e[args.columnName];
447
448
  }
448
449
  _this.updateCell(args, rowIndex_1);
450
+ setValue('isEdit', false, _this.parent.grid);
449
451
  _this.afterCellSave(args, row_1, rowIndex_1);
450
452
  });
451
453
  }
@@ -136,7 +136,7 @@ var ExcelExport = /** @class */ (function () {
136
136
  if (!this.isLocal()) {
137
137
  this.parent.flatData = [];
138
138
  }
139
- if (property && property.dataSource && this.isLocal()) {
139
+ if (property && property.dataSource) {
140
140
  var flatsData = this.parent.flatData;
141
141
  var dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
142
142
  this.parent.dataModule.convertToFlatData(dataSrc);
@@ -131,7 +131,7 @@ var PdfExport = /** @class */ (function () {
131
131
  if (!isLocal) {
132
132
  this.parent.flatData = [];
133
133
  }
134
- if (prop && prop.dataSource && isLocal) {
134
+ if (prop && prop.dataSource) {
135
135
  var flatDatas = this.parent.flatData;
136
136
  var dataSrc = prop.dataSource instanceof DataManager ? prop.dataSource.dataSource.json : prop.dataSource;
137
137
  this.parent.dataModule.convertToFlatData(dataSrc);
@@ -387,7 +387,7 @@ var Selection = /** @class */ (function () {
387
387
  (!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
388
388
  this.selectedItems.push(checkedRecord);
389
389
  }
390
- if (this.selectedItems.indexOf(checkedRecord) === -1 && this.parent.enableVirtualization && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
390
+ if (this.selectedItems.indexOf(checkedRecord) === -1 && (this.parent.enableVirtualization || this.parent.allowPaging) && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
391
391
  this.selectedItems.push(checkedRecord);
392
392
  }
393
393
  if (this.selectedItems.indexOf(checkedRecord) === -1 && (!isNullOrUndefined(this.parent.filterModule) &&
@@ -463,7 +463,7 @@ var Selection = /** @class */ (function () {
463
463
  this.selectedItems = [];
464
464
  this.selectedIndexes = [];
465
465
  childData = (!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0) ?
466
- this.parent.getCurrentViewRecords() : this.parent.flatData;
466
+ this.parent.filterModule.filteredResult : this.parent.flatData;
467
467
  childData.forEach(function (record) {
468
468
  if (_this.parent.enableVirtualization) {
469
469
  if (record.hasChildRecords && record.childRecords.length > 0) {
@@ -119,7 +119,7 @@ var VirtualScroll = /** @class */ (function () {
119
119
  else {
120
120
  var requestType = pageingDetails.actionArgs.requestType;
121
121
  if (requestType === 'filtering' || requestType === 'collapseAll' || requestType === 'searching' ||
122
- (requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length)) {
122
+ (requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length && isNullOrUndefined(this.expandCollapseRec))) {
123
123
  startIndex = 0;
124
124
  endIndex = this.parent.grid.pageSettings.pageSize - 1;
125
125
  this.parent.grid.getContent().firstElementChild.scrollTop = 0;
@@ -748,6 +748,10 @@ var TreeGrid = /** @class */ (function (_super) {
748
748
  var root = 'root';
749
749
  this.grid["" + root] = this["" + root] ? this["" + root] : this;
750
750
  this.grid.appendTo(gridContainer);
751
+ var gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
752
+ gridContent.setAttribute('tabindex', '0');
753
+ var contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
754
+ contentTable.setAttribute('role', 'treegrid');
751
755
  if (this.isIndentEnabled) {
752
756
  this.refreshToolbarItems();
753
757
  }
@@ -1655,9 +1659,6 @@ var TreeGrid = /** @class */ (function (_super) {
1655
1659
  for (var _i = 0, properties_1 = properties; _i < properties_1.length; _i++) {
1656
1660
  var prop = properties_1[_i];
1657
1661
  switch (prop) {
1658
- case 'columns':
1659
- this.grid.columns = this.getGridColumns(this.columns);
1660
- break;
1661
1662
  case 'treeColumnIndex':
1662
1663
  this.grid.refreshColumns();
1663
1664
  break;
@@ -2447,7 +2448,9 @@ var TreeGrid = /** @class */ (function (_super) {
2447
2448
  }
2448
2449
  else if (column.field) {
2449
2450
  var currentColumn = _this.grid.getColumnByField(column.field);
2450
- column.width = currentColumn.width;
2451
+ if (!isNullOrUndefined(currentColumn)) {
2452
+ column.width = currentColumn.width;
2453
+ }
2451
2454
  }
2452
2455
  });
2453
2456
  };