@syncfusion/ej2-treegrid 19.4.38 → 19.4.47
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.
- package/CHANGELOG.md +25 -0
- package/README.md +1 -1
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +25 -6
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +25 -6
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/treegrid/actions/excel-export.js +5 -2
- package/src/treegrid/actions/virtual-scroll.js +4 -1
- package/src/treegrid/base/treegrid.js +11 -1
- package/src/treegrid/models/column.d.ts +1 -1
- package/src/treegrid/renderer/virtual-row-model-generator.js +4 -2
- package/src/treegrid/renderer/virtual-tree-content-render.js +1 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
3
|
+
* version : 19.4.47
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@19.4.41",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
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-
|
|
28
|
-
"_shasum": "
|
|
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,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@syncfusion/ej2-base": "~19.4.
|
|
40
|
-
"@syncfusion/ej2-data": "~19.4.
|
|
41
|
-
"@syncfusion/ej2-grids": "~19.4.
|
|
42
|
-
"@syncfusion/ej2-popups": "~19.4.
|
|
39
|
+
"@syncfusion/ej2-base": "~19.4.42",
|
|
40
|
+
"@syncfusion/ej2-data": "~19.4.47",
|
|
41
|
+
"@syncfusion/ej2-grids": "~19.4.47",
|
|
42
|
+
"@syncfusion/ej2-popups": "~19.4.47"
|
|
43
43
|
},
|
|
44
44
|
"deprecated": false,
|
|
45
45
|
"description": "Essential JS 2 TreeGrid Component",
|
|
@@ -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.
|
|
63
|
+
"version": "19.4.47",
|
|
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.
|
|
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
|
}
|
|
@@ -703,7 +703,7 @@ export interface ColumnModel {
|
|
|
703
703
|
*
|
|
704
704
|
* @default Syncfusion.EJ2.Grids.FreezeDirection.None
|
|
705
705
|
* @isEnumeration true
|
|
706
|
-
* @aspType Syncfusion.EJ2.Grids.FreezeDirection
|
|
706
|
+
* @aspType Syncfusion.EJ2.Grids.FreezeDirection
|
|
707
707
|
*/
|
|
708
708
|
freeze?: freezeDirection;
|
|
709
709
|
}
|
|
@@ -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 &&
|
|
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 &&
|
|
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 {
|