@syncfusion/ej2-treegrid 26.1.39 → 26.1.41

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 : 26.1.39
3
+ * version : 26.1.41
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@26.1.35",
3
+ "_id": "@syncfusion/ej2-treegrid@26.1.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-o6iZQnqm8zWx8H33H55qlOP//ECxfPjeLYeW3YiKUjgQqh/3ivyUmKOzYeXYj3lYhkOZaLJ6nocdKVv8sBwH4w==",
5
+ "_integrity": "sha512-FLSDQfoQPPsupYO9MJXtMfWLY77d98nS3kGQxBRoMIkotzYme8lIBz/YMXQA+h+owNWyryNZloaJaTx6Owt4Xg==",
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-26.1.35.tgz",
28
- "_shasum": "557b952b946b983de95960def0f900ae1a186f16",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-26.1.40.tgz",
28
+ "_shasum": "1604c276e7bfbbb1c64993484869265e35ab082f",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
31
31
  "author": {
@@ -37,9 +37,9 @@
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~26.1.37",
40
- "@syncfusion/ej2-data": "~26.1.35",
41
- "@syncfusion/ej2-grids": "~26.1.39",
42
- "@syncfusion/ej2-popups": "~26.1.38"
40
+ "@syncfusion/ej2-data": "~26.1.41",
41
+ "@syncfusion/ej2-grids": "~26.1.41",
42
+ "@syncfusion/ej2-popups": "~26.1.41"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -52,10 +52,20 @@
52
52
  "JavaScript",
53
53
  "TypeScript",
54
54
  "treelist",
55
- "tree-data",
56
55
  "tree-table",
56
+ "tree-data",
57
+ "treegrid",
57
58
  "table",
58
- "treegrid"
59
+ "tree-grid-component",
60
+ "tree-table-control",
61
+ "hierarchy-table",
62
+ "nested-grid",
63
+ "treeview-grid",
64
+ "hierarchical-grid",
65
+ "nested-table",
66
+ "parent-child-table",
67
+ "collapsible-table",
68
+ "multi-level-table"
59
69
  ],
60
70
  "license": "SEE LICENSE IN license",
61
71
  "main": "./dist/ej2-treegrid.umd.min.js",
@@ -66,6 +76,6 @@
66
76
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
67
77
  },
68
78
  "typings": "index.d.ts",
69
- "version": "26.1.39",
79
+ "version": "26.1.41",
70
80
  "sideEffects": false
71
81
  }
@@ -239,7 +239,7 @@ export function removeChildRecords(childRecords, modifiedData, action, key, cont
239
239
  editedData.taskData[keys[parseInt(i.toString(), 10)]] =
240
240
  childRecords[parseInt(j.toString(), 10)][keys[parseInt(i.toString(), 10)]] =
241
241
  modifiedData[keys[parseInt(i.toString(), 10)]];
242
- if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell') {
242
+ if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell' && !isNullOrUndefined(control.grid.editModule)) {
243
243
  var editModule = 'editModule';
244
244
  control.grid.editModule["" + editModule].editRowIndex = modifiedData.index;
245
245
  control.grid.editModule["" + editModule].updateCurrentViewData(modifiedData);
@@ -956,7 +956,7 @@ var RowDD = /** @class */ (function () {
956
956
  var _loop_1 = function (i) {
957
957
  draggedRecord_2 = dragRecords[parseInt(i.toString(), 10)];
958
958
  this_1.draggedRecord = draggedRecord_2;
959
- if (this_1.dropPosition !== 'Invalid') {
959
+ if (this_1.dropPosition !== 'Invalid' && !isNullOrUndefined(this_1.droppedRecord)) {
960
960
  if (!tObj.rowDropSettings.targetID || isByMethod) {
961
961
  this_1.deleteDragRow();
962
962
  }
@@ -11,6 +11,7 @@ export declare class VirtualScroll {
11
11
  private prevstartIndex;
12
12
  private prevendIndex;
13
13
  private visualData;
14
+ private prevrequestType;
14
15
  /**
15
16
  * Constructor for VirtualScroll module
16
17
  *
@@ -159,6 +159,11 @@ var VirtualScroll = /** @class */ (function () {
159
159
  }
160
160
  }
161
161
  //}
162
+ if (this.prevrequestType === 'collapseAll' && pageingDetails.actionArgs.requestType === 'virtualscroll') {
163
+ startIndex = 0;
164
+ endIndex = this.parent.grid.pageSettings.pageSize - 1;
165
+ this.parent.grid.notify(events.virtualActionArgs, { setTop: true });
166
+ }
162
167
  if ((this.parent.enableCollapseAll || this.parent.expandStateMapping) && !isNullOrUndefined(this.expandCollapseRec)) {
163
168
  if (pageingDetails.count < this.parent.getRows()[0].getBoundingClientRect().height) {
164
169
  startIndex = 0;
@@ -177,6 +182,7 @@ var VirtualScroll = /** @class */ (function () {
177
182
  }
178
183
  this.prevstartIndex = startIndex;
179
184
  this.prevendIndex = endIndex;
185
+ this.prevrequestType = pageingDetails.actionArgs.requestType;
180
186
  }
181
187
  this.parent.notify('updateAction', pageingDetails);
182
188
  };
@@ -1804,7 +1804,7 @@ var TreeGrid = /** @class */ (function (_super) {
1804
1804
  TreeGrid.prototype.onPropertyChanged = function (newProp) {
1805
1805
  var properties = Object.keys(newProp);
1806
1806
  var requireRefresh = false;
1807
- if (properties.indexOf('columns') > -1) {
1807
+ if (properties.indexOf('columns') > -1 && !isNullOrUndefined(newProp.columns)) {
1808
1808
  this.grid.columns = this.getGridColumns(newProp.columns);
1809
1809
  this.grid['updateColumnObject']();
1810
1810
  requireRefresh = true;
@@ -2927,6 +2927,7 @@ var TreeGrid = /** @class */ (function (_super) {
2927
2927
  */
2928
2928
  TreeGrid.prototype.expandRow = function (row, record, key, level) {
2929
2929
  var _this = this;
2930
+ this.isCollapseAll = false;
2930
2931
  if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
2931
2932
  var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
2932
2933
  this.trigger(events.actionFailure, { error: error });
@@ -3048,6 +3049,7 @@ var TreeGrid = /** @class */ (function (_super) {
3048
3049
  */
3049
3050
  TreeGrid.prototype.collapseRow = function (row, record, key) {
3050
3051
  var _this = this;
3052
+ this.isExpandAll = false;
3051
3053
  if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
3052
3054
  var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
3053
3055
  this.trigger(events.actionFailure, { error: error });
@@ -3322,6 +3324,9 @@ var TreeGrid = /** @class */ (function (_super) {
3322
3324
  return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
3323
3325
  });
3324
3326
  }
3327
+ if (!rows.length && this.getRows().length) {
3328
+ rows.push(this.getRows()[0]);
3329
+ }
3325
3330
  this.isExpandAll = true;
3326
3331
  this.isCollapseAll = true;
3327
3332
  if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization || this.enableInfiniteScrolling) && !isRemoteData(this)) {