@syncfusion/ej2-treegrid 20.2.36 → 20.2.38
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 +11 -0
- 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 +29 -17
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +23 -11
- 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/edit.js +12 -5
- package/src/treegrid/actions/selection.js +6 -1
- package/src/treegrid/base/data.js +2 -2
- package/src/treegrid/base/treegrid.js +1 -1
- package/src/treegrid/renderer/render.js +1 -1
- package/src/treegrid/renderer/virtual-tree-content-render.js +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.38
|
|
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@20.2.36",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-OrB3ZEOBULnCkrBvX3d7Al0eOEi3YDIpNArHSNNbSx5A/UrcQHgPo+Ivhg5hFEQPW2jH7UhYfsucaPSYEtQ2Jg==",
|
|
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-20.2.36.tgz",
|
|
28
|
+
"_shasum": "8f57494d4d0796652709bcc45f3d541d83bc5e4e",
|
|
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": "~20.2.
|
|
40
|
-
"@syncfusion/ej2-data": "~20.2.
|
|
41
|
-
"@syncfusion/ej2-grids": "~20.2.
|
|
42
|
-
"@syncfusion/ej2-popups": "~20.2.
|
|
39
|
+
"@syncfusion/ej2-base": "~20.2.38",
|
|
40
|
+
"@syncfusion/ej2-data": "~20.2.38",
|
|
41
|
+
"@syncfusion/ej2-grids": "~20.2.38",
|
|
42
|
+
"@syncfusion/ej2-popups": "~20.2.38"
|
|
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": "20.2.
|
|
63
|
+
"version": "20.2.38",
|
|
64
64
|
"sideEffects": false
|
|
65
65
|
}
|
|
@@ -532,9 +532,11 @@ var Edit = /** @class */ (function () {
|
|
|
532
532
|
this.parent.parentData.push(data[i]);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
if (
|
|
536
|
-
|
|
537
|
-
|
|
535
|
+
if (!this.parent.enableInfiniteScrolling) {
|
|
536
|
+
if (details.action === 'add' && this.previousNewRowPosition != null) {
|
|
537
|
+
this.parent.setProperties({ editSettings: { newRowPosition: this.previousNewRowPosition } }, true);
|
|
538
|
+
this.previousNewRowPosition = null;
|
|
539
|
+
}
|
|
538
540
|
}
|
|
539
541
|
};
|
|
540
542
|
Edit.prototype.updateIndex = function (data, rows, records) {
|
|
@@ -782,14 +784,19 @@ var Edit = /** @class */ (function () {
|
|
|
782
784
|
}
|
|
783
785
|
else {
|
|
784
786
|
if (this.isAddedRowByMethod && (this.parent.enableVirtualization || this.parent.enableInfiniteScrolling)) {
|
|
785
|
-
|
|
787
|
+
if (args.index !== 0) {
|
|
788
|
+
this.addRowIndex = args.index;
|
|
789
|
+
}
|
|
790
|
+
else {
|
|
791
|
+
this.addRowIndex = this.parent.grid.selectedRowIndex;
|
|
792
|
+
}
|
|
786
793
|
}
|
|
787
794
|
else {
|
|
788
795
|
this.addRowIndex = this.parent.grid.selectedRowIndex > -1 ? this.parent.grid.selectedRowIndex : 0;
|
|
789
796
|
}
|
|
790
797
|
}
|
|
791
798
|
if (this.isAddedRowByMethod && (this.parent.enableVirtualization || this.parent.enableInfiniteScrolling)) {
|
|
792
|
-
this.addRowRecord = this.parent.flatData[
|
|
799
|
+
this.addRowRecord = this.parent.flatData[this.parent.grid.selectedRowIndex];
|
|
793
800
|
}
|
|
794
801
|
else {
|
|
795
802
|
this.addRowRecord = this.parent.getSelectedRecords()[0];
|
|
@@ -245,7 +245,12 @@ var Selection = /** @class */ (function () {
|
|
|
245
245
|
if (indeter > 0 || (checkChildRecords > 0 && checkChildRecords !== length)) {
|
|
246
246
|
record.checkboxState = 'indeterminate';
|
|
247
247
|
}
|
|
248
|
-
else if (checkChildRecords === 0 &&
|
|
248
|
+
else if (checkChildRecords === 0 && (!record.hasFilteredChildRecords || isNullOrUndefined(record.hasFilteredChildRecords)) && !isNullOrUndefined(this.parent['dataResults']['actionArgs']) &&
|
|
249
|
+
(this.parent['dataResults']['actionArgs'].requestType === 'searching' || this.parent['dataResults']['actionArgs'].requestType === 'filtering') && record.checkboxState === 'check') {
|
|
250
|
+
record.checkboxState = 'check';
|
|
251
|
+
}
|
|
252
|
+
else if ((checkChildRecords === 0 && indeter === 0) || (checkChildRecords === 0 && record.hasFilteredChildRecords && !isNullOrUndefined(this.parent['dataResults']['actionArgs']) &&
|
|
253
|
+
(this.parent['dataResults']['actionArgs'].requestType === 'searching' || this.parent['dataResults']['actionArgs'].requestType === 'filtering') && record.checkboxState === 'check')) {
|
|
249
254
|
record.checkboxState = 'uncheck';
|
|
250
255
|
}
|
|
251
256
|
else {
|
|
@@ -377,8 +377,8 @@ var DataManipulation = /** @class */ (function () {
|
|
|
377
377
|
if (!Object.prototype.hasOwnProperty.call(currentData, 'index')) {
|
|
378
378
|
currentData.index = this.storedIndex;
|
|
379
379
|
}
|
|
380
|
-
if (!isNullOrUndefined(currentData[this.parent.childMapping]) ||
|
|
381
|
-
(currentData[this.parent.hasChildMapping] && isCountRequired(this.parent))) {
|
|
380
|
+
if ((!isNullOrUndefined(currentData[this.parent.childMapping]) && !isCountRequired(this.parent)) ||
|
|
381
|
+
((currentData[this.parent.hasChildMapping]) && isCountRequired(this.parent) && this.parent.initialRender)) {
|
|
382
382
|
currentData.hasChildRecords = true;
|
|
383
383
|
if (this.parent.enableCollapseAll || !isNullOrUndefined(this.parent.dataStateChange)
|
|
384
384
|
&& isNullOrUndefined(currentData[this.parent.childMapping])) {
|
|
@@ -2969,7 +2969,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2969
2969
|
var args = { data: record, row: row };
|
|
2970
2970
|
var rows = [];
|
|
2971
2971
|
rows = gridRows.filter(function (r) {
|
|
2972
|
-
return r.querySelector('.e-gridrowindex' + record.index + 'level' + (record.level + 1));
|
|
2972
|
+
return ((r.querySelector('.e-gridrowindex' + record.index + 'level' + (record.level + 1))) || (r.querySelector('.e-gridrowindex' + record.index + 'level0' + '.e-summarycell')));
|
|
2973
2973
|
});
|
|
2974
2974
|
if (action === 'expand') {
|
|
2975
2975
|
this.notify(events.remoteExpand, { record: record, rows: rows, parentRow: row });
|
|
@@ -47,7 +47,7 @@ var Render = /** @class */ (function () {
|
|
|
47
47
|
var parentrec = this.parent.getCurrentViewRecords().filter(function (rec) {
|
|
48
48
|
return getValue(proxy_1.idMapping, rec) === getValue(proxy_1.parentIdMapping, data);
|
|
49
49
|
});
|
|
50
|
-
if (parentrec.length > 0) {
|
|
50
|
+
if (parentrec.length > 0 && !parentrec[0].isSummaryRow) {
|
|
51
51
|
var display = parentrec[0].expanded ? 'table-row' : 'none';
|
|
52
52
|
args.row.setAttribute('style', 'display: ' + display + ';');
|
|
53
53
|
}
|
|
@@ -126,7 +126,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
126
126
|
getValue('virtualEle', this).setVirtualHeight(this.parent.getRowHeight() * e.count, '100%');
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
if ((!isNullOrUndefined(e.requestType) && e.requestType.toString() === 'collapseAll') || (this.isDataSourceChanged && this.startIndex === -1)) {
|
|
129
|
+
if ((!isNullOrUndefined(e.requestType) && e.requestType.toString() === 'collapseAll') || (this.isDataSourceChanged && (this.startIndex === -1 || this.startIndex === 0 && this['preStartIndex'] === 0))) {
|
|
130
130
|
this.contents.scrollTop = 0;
|
|
131
131
|
this.isDataSourceChanged = false;
|
|
132
132
|
}
|