@syncfusion/ej2-treegrid 19.4.41 → 19.4.42

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 : 19.4.41
3
+ * version : 19.4.42
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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@19.4.38",
3
+ "_id": "@syncfusion/ej2-treegrid@19.4.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-NwDwtzhLP8hC/gjz6VcKbRdeMwAhQTOgXsLPqwNOBrpn4GLKk5BTqejDBL7mXEMy1NUJO/uJayEaV10xFh+mLA==",
5
+ "_integrity": "sha512-Q0BEZTlMhWTpuQFJfqWrPg2AFGZSr0o/r27/wnml/9aKsn/Gcp9hWrIKWn5/3+ADWfQiYkTQ+negKVenoXoqcA==",
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-19.4.38.tgz",
28
- "_shasum": "e86288528d767c8bdb8b1653b00b2651d1cabacf",
27
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-19.4.41.tgz",
28
+ "_shasum": "752b57c8545cdf6e5dba29d7270bef1d8a2d216c",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
31
31
  "author": {
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~19.4.38",
40
- "@syncfusion/ej2-data": "~19.4.38",
41
- "@syncfusion/ej2-grids": "~19.4.41",
39
+ "@syncfusion/ej2-base": "~19.4.42",
40
+ "@syncfusion/ej2-data": "~19.4.42",
41
+ "@syncfusion/ej2-grids": "~19.4.42",
42
42
  "@syncfusion/ej2-popups": "~19.4.41"
43
43
  },
44
44
  "deprecated": false,
@@ -60,6 +60,6 @@
60
60
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
61
61
  },
62
62
  "typings": "index.d.ts",
63
- "version": "19.4.41",
63
+ "version": "19.4.42",
64
64
  "sideEffects": false
65
65
  }
@@ -170,9 +170,9 @@ var ExcelExport = /** @class */ (function () {
170
170
  if (excelRow.type === 'excel') {
171
171
  var excelrowobj = excelRow.rowObj.data;
172
172
  var filtercolumnlength = this.parent.grid.filterSettings.columns.length;
173
+ var rowlength = excelRow.excelRows.length;
174
+ var rowlevel = excelrowobj.level;
173
175
  if (excelrowobj.parentItem && getParentData(this.parent, excelrowobj.parentItem.uniqueID, Boolean(filtercolumnlength))) {
174
- var rowlength = excelRow.excelRows.length;
175
- var rowlevel = excelrowobj.level;
176
176
  var expandedStatus = false;
177
177
  var sublevelState = false;
178
178
  var state = getExpandStatus(this.parent, excelrowobj, this.parent.parentData);
@@ -183,6 +183,9 @@ var ExcelExport = /** @class */ (function () {
183
183
  excelRow.excelRows[rowlength - 1].grouping = { outlineLevel: rowlevel, isCollapsed: sublevelState,
184
184
  isHidden: expandedStatus };
185
185
  }
186
+ else if (excelrowobj.hasChildRecords && isNullOrUndefined(excelrowobj.parentItem)) {
187
+ excelRow.excelRows[rowlength - 1].grouping = { outlineLevel: rowlevel };
188
+ }
186
189
  }
187
190
  };
188
191
  /* eslint-disable-next-line */
@@ -84,7 +84,10 @@ var VirtualScroll = /** @class */ (function () {
84
84
  record: row.record,
85
85
  count: this.parent.flatData.length
86
86
  };
87
- this.parent.grid.clearSelection();
87
+ if (this.parent.enableVirtualization && this.parent.selectionSettings.mode === 'Cell' ||
88
+ this.parent.selectionSettings.mode === 'Row' && !this.parent.selectionSettings.persistSelection) {
89
+ this.parent.grid.clearSelection();
90
+ }
88
91
  var requestType = getValue('isCollapseAll', this.parent) ? 'collapseAll' : 'refresh';
89
92
  getValue('grid.renderModule', this.parent).dataManagerSuccess(ret, { requestType: requestType });
90
93
  };
@@ -840,6 +840,16 @@ var TreeGrid = /** @class */ (function (_super) {
840
840
  }
841
841
  }
842
842
  }
843
+ var action = 'action';
844
+ if (_this.enableVirtualization && _this.selectionSettings.persistSelection && (_this.dataResults[action] === 'expand' || _this.dataResults[action] === 'collapse')) {
845
+ var refreshPersistSelection = 'refreshPersistSelection';
846
+ _this.grid.selectionModule[refreshPersistSelection]();
847
+ if (_this.grid.selectionSettings.type === 'Single') {
848
+ var updateRowSelection = 'updateRowSelection';
849
+ var index = _this.getCurrentViewRecords().indexOf(_this.grid.selectionModule['data']);
850
+ _this.grid.selectionModule[updateRowSelection](_this.getRows()[index], index);
851
+ }
852
+ }
843
853
  _this.trigger(events.dataBound, args);
844
854
  _this.initialRender = false;
845
855
  };
@@ -2074,7 +2084,7 @@ var TreeGrid = /** @class */ (function (_super) {
2074
2084
  gridColumn[prop] = gridColumns[i][prop];
2075
2085
  }
2076
2086
  this.columnModel.push(new Column(gridColumn));
2077
- if (field === this.columnModel[i].field && (!isNullOrUndefined(temp) && temp !== '')) {
2087
+ if (field === this.columnModel[i].field && this.columnModel[i].type !== 'checkbox' && (!isNullOrUndefined(temp) && temp !== '')) {
2078
2088
  this.columnModel[i].template = temp;
2079
2089
  }
2080
2090
  }
@@ -38,10 +38,12 @@ var TreeVirtualRowModelGenerator = /** @class */ (function (_super) {
38
38
  return _super.prototype.getData.call(this);
39
39
  };
40
40
  TreeVirtualRowModelGenerator.prototype.generateRows = function (data, notifyArgs) {
41
- if (!isNullOrUndefined(notifyArgs.virtualInfo) && notifyArgs.virtualInfo.loadNext && notifyArgs.virtualInfo.nextInfo.page !== this.parent.pageSettings.currentPage) {
41
+ if (!isNullOrUndefined(notifyArgs.virtualInfo) && notifyArgs.virtualInfo.loadNext &&
42
+ notifyArgs.virtualInfo.nextInfo.page !== this.parent.pageSettings.currentPage) {
42
43
  this.parent.setProperties({ pageSettings: { currentPage: notifyArgs.virtualInfo.nextInfo.page } }, true);
43
44
  }
44
- else if (!isNullOrUndefined(notifyArgs.virtualInfo) && !notifyArgs.virtualInfo.loadNext && notifyArgs.virtualInfo.page !== this.parent.pageSettings.currentPage) {
45
+ else if (!isNullOrUndefined(notifyArgs.virtualInfo) && !notifyArgs.virtualInfo.loadNext &&
46
+ notifyArgs.virtualInfo.page !== this.parent.pageSettings.currentPage) {
45
47
  this.parent.setProperties({ pageSettings: { currentPage: notifyArgs.virtualInfo.page } }, true);
46
48
  }
47
49
  var info = this.getDataInfo();
@@ -425,6 +425,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
425
425
  var replace = 'replaceWith';
426
426
  this.getTable().querySelector('tbody')[replace](target);
427
427
  if (!this.isExpandCollapse || this.translateY === 0) {
428
+ this.translateY = this.translateY < 0 ? 0 : this.translateY;
428
429
  getValue('virtualEle', this).adjustTable(cOffset, this.translateY);
429
430
  }
430
431
  else {
@@ -63,7 +63,6 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
- color: inherit;
67
66
  }
68
67
 
69
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -165,6 +164,7 @@
165
164
  }
166
165
  }
167
166
 
167
+ /*! Toolbar's bootstrap5 theme wise override definitions and variables */
168
168
  .e-treegrid .e-treegridexpand::before,
169
169
  .e-treegrid .e-treegridcollapse::before {
170
170
  content: '\e75c';
@@ -63,7 +63,6 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
- color: inherit;
67
66
  }
68
67
 
69
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -165,6 +164,7 @@
165
164
  }
166
165
  }
167
166
 
167
+ /*! Toolbar's bootstrap5 theme wise override definitions and variables */
168
168
  .e-treegrid .e-treegridexpand::before,
169
169
  .e-treegrid .e-treegridcollapse::before {
170
170
  content: '\e75c';
@@ -63,7 +63,6 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
- color: inherit;
67
66
  }
68
67
 
69
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -165,6 +164,7 @@
165
164
  }
166
165
  }
167
166
 
167
+ /*! Toolbar's bootstrap5 theme wise override definitions and variables */
168
168
  .e-treegrid .e-treegridexpand::before,
169
169
  .e-treegrid .e-treegridcollapse::before {
170
170
  content: '\e75c';
@@ -63,7 +63,6 @@
63
63
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
64
64
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
65
65
  background: transparent;
66
- color: inherit;
67
66
  }
68
67
 
69
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -165,6 +164,7 @@
165
164
  }
166
165
  }
167
166
 
167
+ /*! Toolbar's bootstrap5 theme wise override definitions and variables */
168
168
  .e-treegrid .e-treegridexpand::before,
169
169
  .e-treegrid .e-treegridcollapse::before {
170
170
  content: '\e75c';