@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.55
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.54",
3
+ "_id": "@syncfusion/ej2-treegrid@19.4.55",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-+cbivNhFwEkOeKMKpnhws6wbaS1tSfAVR1kChJUSvfYQlTXX9RNubsPkYO/V15aYqN4xmlSzfRM88Qh/PlgKzg==",
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.54.tgz",
28
- "_shasum": "1d70bea58ea068fc89e37af3742f494d46f454a9",
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.55",
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.55",
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
- for (var i = 0; i < Object.keys(tempDataSource).length; i++) {
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
- for (var i = 0; i < Object.keys(data).length; i++) {
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
- for (var i = 0, len = Object.keys(data).length; i < len; i++) {
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
  }
@@ -122,7 +122,8 @@ export function findChildrenRecords(records) {
122
122
  }
123
123
  if (!isNullOrUndefined(records.childRecords)) {
124
124
  var childRecords = records.childRecords;
125
- for (var i = 0, len = Object.keys(childRecords).length; i < len; i++) {
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)) {