@syncfusion/ej2-treegrid 21.2.3 → 21.2.5
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 +18 -1
- package/dist/ej2-treegrid.min.js +2 -2
- 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 +42 -4
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +43 -5
- 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 +12 -9
- package/src/treegrid/actions/virtual-scroll.js +3 -0
- package/src/treegrid/base/data.js +22 -0
- package/src/treegrid/base/treegrid.js +18 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.2.
|
|
3
|
+
* version : 21.2.5
|
|
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@21.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@21.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-NpKOhZ2iXKUVktbOJarp6RNqk6nazOQnlrVSmDxL5BFnM/0TdyM0R64+eynPJiF4IpIB7rat9MkCtTTiCnL4xA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-treegrid",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,10 +19,13 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
21
|
"/@syncfusion/ej2",
|
|
22
|
-
"/@syncfusion/ej2-
|
|
22
|
+
"/@syncfusion/ej2-angular-treegrid",
|
|
23
|
+
"/@syncfusion/ej2-gantt",
|
|
24
|
+
"/@syncfusion/ej2-react-treegrid",
|
|
25
|
+
"/@syncfusion/ej2-vue-treegrid"
|
|
23
26
|
],
|
|
24
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-21.
|
|
25
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-21.2.4.tgz",
|
|
28
|
+
"_shasum": "828522ae3a9455dbab9dc3d5d7d46cb6c510e995",
|
|
26
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
27
30
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
28
31
|
"author": {
|
|
@@ -34,9 +37,9 @@
|
|
|
34
37
|
"bundleDependencies": false,
|
|
35
38
|
"dependencies": {
|
|
36
39
|
"@syncfusion/ej2-base": "~21.2.3",
|
|
37
|
-
"@syncfusion/ej2-data": "~21.2.
|
|
38
|
-
"@syncfusion/ej2-grids": "~21.2.
|
|
39
|
-
"@syncfusion/ej2-popups": "~21.2.
|
|
40
|
+
"@syncfusion/ej2-data": "~21.2.4",
|
|
41
|
+
"@syncfusion/ej2-grids": "~21.2.5",
|
|
42
|
+
"@syncfusion/ej2-popups": "~21.2.4"
|
|
40
43
|
},
|
|
41
44
|
"deprecated": false,
|
|
42
45
|
"description": "Essential JS 2 TreeGrid Component",
|
|
@@ -63,6 +66,6 @@
|
|
|
63
66
|
"url": "git+https://github.com/syncfusion/ej2-treegrid.git"
|
|
64
67
|
},
|
|
65
68
|
"typings": "index.d.ts",
|
|
66
|
-
"version": "21.2.
|
|
69
|
+
"version": "21.2.5",
|
|
67
70
|
"sideEffects": false
|
|
68
71
|
}
|
|
@@ -124,6 +124,9 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
124
124
|
this.parent.grid.getContent().firstElementChild.scrollTop = 0;
|
|
125
125
|
this.parent.grid.notify(events.virtualActionArgs, { setTop: true });
|
|
126
126
|
}
|
|
127
|
+
if (requestType === 'save' && this.parent.editSettings.newRowPosition === 'Bottom') {
|
|
128
|
+
endIndex = counts.count;
|
|
129
|
+
}
|
|
127
130
|
//if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
|
|
128
131
|
//this.prevendIndex === endIndex && this.prevstartIndex === startIndex) {
|
|
129
132
|
if (!isNullOrUndefined(this.expandCollapseRec) && (pageingDetails.actionArgs.requestType === 'virtualscroll' ||
|
|
@@ -352,6 +352,10 @@ var DataManipulation = /** @class */ (function () {
|
|
|
352
352
|
qry.expand(expandDetail);
|
|
353
353
|
}
|
|
354
354
|
qry.where(this.parent.parentIdMapping, 'equal', rowDetails.record[this.parent.idMapping]);
|
|
355
|
+
if (rowDetails.action === 'remoteExpand' && this.parent.grid.filterModule && this.parent.grid.filterModule['value']) {
|
|
356
|
+
var filterqry = this.parent.grid.getDataModule().generateQuery().queries.filter(function (e) { return e.fn !== 'onPage' && typeof e.e.predicates !== 'undefined'; });
|
|
357
|
+
qry.queries.push(filterqry[0]);
|
|
358
|
+
}
|
|
355
359
|
showSpinner(this.parent.element);
|
|
356
360
|
dm.executeQuery(qry).then(function (e) {
|
|
357
361
|
var remoteExpandedData = 'remoteExpandedData';
|
|
@@ -374,6 +378,24 @@ var DataManipulation = /** @class */ (function () {
|
|
|
374
378
|
}
|
|
375
379
|
var haveChild = getObject('actual.nextLevel', e);
|
|
376
380
|
var result = e.result;
|
|
381
|
+
var resultChildData = [];
|
|
382
|
+
if (rowDetails.action === 'remoteExpand' && _this.parent.grid.filterModule && _this.parent.grid.filterModule['value']) {
|
|
383
|
+
for (var i = 0; i < datas.length; i++) {
|
|
384
|
+
if (Object.prototype.hasOwnProperty.call(datas[parseInt(i.toString(), 10)], _this.parent.parentIdMapping) && datas[parseInt(i.toString(), 10)]['' + _this.parent.parentIdMapping] !== null && datas[parseInt(i.toString(), 10)].level === 0) {
|
|
385
|
+
datas.splice(i, 1);
|
|
386
|
+
i--;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
for (var i = 0; i < result.length; i++) {
|
|
390
|
+
if (rowDetails.record['' + _this.parent.idMapping] !== result[parseInt(i.toString(), 10)]['' + _this.parent.idMapping] &&
|
|
391
|
+
rowDetails.record['' + _this.parent.idMapping] === result[parseInt(i.toString(), 10)]['' + _this.parent.parentIdMapping]) {
|
|
392
|
+
if (Object.prototype.hasOwnProperty.call(result, i)) {
|
|
393
|
+
resultChildData.push(result[parseInt(i.toString(), 10)]);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
result = resultChildData;
|
|
398
|
+
}
|
|
377
399
|
rowDetails.record.childRecords = result;
|
|
378
400
|
for (var r = 0; r < result.length; r++) {
|
|
379
401
|
if (_this.parent.enableVirtualization && result[parseInt(r.toString(), 10)]["" + _this.parent.idMapping] === rowDetails.record["" + _this.parent.idMapping] && rowDetails.action === 'remoteExpand') {
|
|
@@ -309,13 +309,18 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
309
309
|
break;
|
|
310
310
|
case 'downArrow':
|
|
311
311
|
if (!this.enableVirtualization) {
|
|
312
|
-
|
|
312
|
+
target = e.target;
|
|
313
|
+
parentTarget = target.parentElement;
|
|
314
|
+
var cellIndex = parentTarget.cellIndex;
|
|
315
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
316
|
+
parentTarget = target;
|
|
317
|
+
}
|
|
313
318
|
summaryElement = this.findnextRowElement(parentTarget);
|
|
314
319
|
if (summaryElement !== null) {
|
|
315
320
|
var rowIndex = summaryElement.rowIndex;
|
|
316
321
|
this.selectRow(rowIndex);
|
|
317
|
-
var
|
|
318
|
-
var row_1 = summaryElement.children[parseInt(
|
|
322
|
+
var cellIndex_1 = e.target.cellIndex;
|
|
323
|
+
var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
|
|
319
324
|
addClass([row_1], 'e-focused');
|
|
320
325
|
addClass([row_1], 'e-focus');
|
|
321
326
|
}
|
|
@@ -326,7 +331,12 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
326
331
|
break;
|
|
327
332
|
case 'upArrow':
|
|
328
333
|
if (!this.enableVirtualization) {
|
|
329
|
-
|
|
334
|
+
target = e.target;
|
|
335
|
+
parentTarget = target.parentElement;
|
|
336
|
+
var cellIndex = parentTarget.cellIndex;
|
|
337
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
338
|
+
parentTarget = target;
|
|
339
|
+
}
|
|
330
340
|
summaryElement = this.findPreviousRowElement(parentTarget);
|
|
331
341
|
if (summaryElement !== null) {
|
|
332
342
|
var rIndex = summaryElement.rowIndex;
|
|
@@ -1076,7 +1086,10 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1076
1086
|
var currentData = _this.getCurrentViewRecords();
|
|
1077
1087
|
var rows = _this.getContentTable().rows;
|
|
1078
1088
|
for (var i = 0; i < rows.length; i++) {
|
|
1079
|
-
var args = {
|
|
1089
|
+
var args = {
|
|
1090
|
+
data: currentData[parseInt(i.toString(), 10)],
|
|
1091
|
+
row: rows[parseInt(i.toString(), 10)]
|
|
1092
|
+
};
|
|
1080
1093
|
_this.renderModule.RowModifier(args);
|
|
1081
1094
|
}
|
|
1082
1095
|
}
|