@syncfusion/ej2-treegrid 19.4.55 → 19.4.56
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 +14 -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 +10 -6
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +10 -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 +6 -6
- package/src/treegrid/actions/edit.js +1 -1
- package/src/treegrid/actions/rowdragdrop.js +2 -1
- package/src/treegrid/base/data.js +4 -2
- package/src/treegrid/base/treegrid.js +1 -1
- package/src/treegrid/utils.js +2 -1
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.56
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@19.4.55",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-f5xJV2acBAMJnQ/C9b+HxofLqJ3odAXUN/kaRyqz+3sMlYdAaIW1f77i7Z8FUY7e9Gl5M5BgPtTr2WQXAH/mmQ==",
|
|
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.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-19.4.55.tgz",
|
|
28
|
+
"_shasum": "e711adbf22a3859e37b6d823c0914732c323754d",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@syncfusion/ej2-base": "~19.4.52",
|
|
40
40
|
"@syncfusion/ej2-data": "~19.4.54",
|
|
41
|
-
"@syncfusion/ej2-grids": "~19.4.
|
|
41
|
+
"@syncfusion/ej2-grids": "~19.4.56",
|
|
42
42
|
"@syncfusion/ej2-popups": "~19.4.53"
|
|
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.
|
|
63
|
+
"version": "19.4.56",
|
|
64
64
|
"sideEffects": false
|
|
65
65
|
}
|
|
@@ -275,7 +275,7 @@ var Edit = /** @class */ (function () {
|
|
|
275
275
|
var promise = 'promise';
|
|
276
276
|
var prom = args[promise];
|
|
277
277
|
delete args[promise];
|
|
278
|
-
if (this.parent.enableVirtualization && !isNullOrUndefined(this.prevAriaRowIndex)) {
|
|
278
|
+
if (this.parent.enableVirtualization && !isNullOrUndefined(this.prevAriaRowIndex) && this.prevAriaRowIndex !== '-1') {
|
|
279
279
|
args.row.setAttribute('aria-rowindex', this.prevAriaRowIndex);
|
|
280
280
|
this.prevAriaRowIndex = undefined;
|
|
281
281
|
}
|
|
@@ -265,7 +265,8 @@ var RowDD = /** @class */ (function () {
|
|
|
265
265
|
}
|
|
266
266
|
// eslint-disable-next-line max-len
|
|
267
267
|
if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem) && !isNullOrUndefined(droppedRecord.taskData)) {
|
|
268
|
-
|
|
268
|
+
var keys = Object.keys(tempDataSource);
|
|
269
|
+
for (var i = 0; i < keys.length; i++) {
|
|
269
270
|
if (tempDataSource[i][this.parent.childMapping] === droppedRecord.taskData[this.parent.childMapping]) {
|
|
270
271
|
idx = i;
|
|
271
272
|
}
|
|
@@ -127,7 +127,8 @@ var DataManipulation = /** @class */ (function () {
|
|
|
127
127
|
this.hierarchyData = data;
|
|
128
128
|
}
|
|
129
129
|
else {
|
|
130
|
-
|
|
130
|
+
var keys = Object.keys(data);
|
|
131
|
+
for (var i = 0; i < keys.length; i++) {
|
|
131
132
|
var tempData = data[i];
|
|
132
133
|
this.hierarchyData.push(extend({}, tempData));
|
|
133
134
|
if (!isNullOrUndefined(tempData[this.parent.idMapping])) {
|
|
@@ -367,7 +368,8 @@ var DataManipulation = /** @class */ (function () {
|
|
|
367
368
|
};
|
|
368
369
|
DataManipulation.prototype.createRecords = function (data, parentRecords) {
|
|
369
370
|
var treeGridData = [];
|
|
370
|
-
|
|
371
|
+
var keys = Object.keys(data);
|
|
372
|
+
for (var i = 0, len = keys.length; i < len; i++) {
|
|
371
373
|
var currentData = extend({}, data[i]);
|
|
372
374
|
currentData.taskData = data[i];
|
|
373
375
|
var level = 0;
|
|
@@ -1358,7 +1358,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1358
1358
|
gridColumn[prop] = this.getGridColumns(column[i][prop], false, index);
|
|
1359
1359
|
treeGridColumn[prop] = column[i][prop];
|
|
1360
1360
|
}
|
|
1361
|
-
else {
|
|
1361
|
+
else if (!(treeColumn) || prop !== 'sortComparer') {
|
|
1362
1362
|
gridColumn[prop] = treeGridColumn[prop] = column[i][prop];
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
package/src/treegrid/utils.js
CHANGED
|
@@ -122,7 +122,8 @@ export function findChildrenRecords(records) {
|
|
|
122
122
|
}
|
|
123
123
|
if (!isNullOrUndefined(records.childRecords)) {
|
|
124
124
|
var childRecords = records.childRecords;
|
|
125
|
-
|
|
125
|
+
var keys = Object.keys(childRecords);
|
|
126
|
+
for (var i = 0, len = keys.length; i < len; i++) {
|
|
126
127
|
datas.push(childRecords[i]);
|
|
127
128
|
if (childRecords[i].hasChildRecords || (!isNullOrUndefined(childRecords[i].childRecords) &&
|
|
128
129
|
childRecords[i].childRecords.length)) {
|