@syncfusion/ej2-treegrid 19.3.55 → 19.3.57

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.3.55
3
+ * version : 19.3.57
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.3.53",
3
+ "_id": "@syncfusion/ej2-treegrid@19.3.55",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Z/LVb/49/OB2E5RfAdGBhYIzZPC4UTL3FLHkIwHIVuNI+dvP6+VMwRID54qqG01YiuVdkxpuk15UzfBeXEzs5Q==",
5
+ "_integrity": "sha512-Blwn8KCMt0cKNY720PyrzyBWFKeOnkiYcF8gayLmyKVC7WPdR5G8JZ08XSKVykhLSBNUuO1f0MG31XUHdEknsg==",
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/@syncfusion/ej2-treegrid/-/ej2-treegrid-19.3.53.tgz",
28
- "_shasum": "a52a629c706c322c28b139bd916dd151872304c0",
27
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-19.3.55.tgz",
28
+ "_shasum": "e2b3f0daea4f3b6a8afe6dd78bb66835e10d7232",
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.3.54",
40
- "@syncfusion/ej2-data": "~19.3.53",
41
- "@syncfusion/ej2-grids": "~19.3.55",
42
- "@syncfusion/ej2-popups": "~19.3.53"
39
+ "@syncfusion/ej2-base": "~19.3.56",
40
+ "@syncfusion/ej2-data": "~19.3.57",
41
+ "@syncfusion/ej2-grids": "~19.3.57",
42
+ "@syncfusion/ej2-popups": "~19.3.57"
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.3.55",
63
+ "version": "19.3.57",
64
64
  "sideEffects": false
65
65
  }
@@ -712,14 +712,28 @@ var Edit = /** @class */ (function () {
712
712
  return;
713
713
  }
714
714
  if (args.requestType === 'delete') {
715
- var data = args.data;
716
- for (var i = 0; i < data.length; i++) {
717
- this.deleteUniqueID(data[i].uniqueID);
718
- var childs = findChildrenRecords(data[i]);
715
+ var data_1 = args.data;
716
+ if (isNullOrUndefined(args.data[0].uniqueID)) {
717
+ var primaryKeys_2 = this.parent.getPrimaryKeyFieldNames();
718
+ var _loop_1 = function (i) {
719
+ this_1.parent.flatData.filter(function (e) {
720
+ if (e[primaryKeys_2[0]] === args.data[i][primaryKeys_2[0]]) {
721
+ data_1[i] = e;
722
+ }
723
+ });
724
+ };
725
+ var this_1 = this;
726
+ for (var i = 0; i < data_1.length; i++) {
727
+ _loop_1(i);
728
+ }
729
+ }
730
+ for (var i = 0; i < data_1.length; i++) {
731
+ this.deleteUniqueID(data_1[i].uniqueID);
732
+ var childs = findChildrenRecords(data_1[i]);
719
733
  for (var c = 0; c < childs.length; c++) {
720
734
  this.deleteUniqueID(childs[c].uniqueID);
721
735
  }
722
- args.data = data.concat(childs);
736
+ args.data = args.data.concat(childs);
723
737
  }
724
738
  }
725
739
  if (args.requestType === 'add' || (this.isAddedRowByMethod && (this.parent.enableVirtualization || this.parent.enableInfiniteScrolling))) {
@@ -2440,7 +2440,7 @@ var TreeGrid = /** @class */ (function (_super) {
2440
2440
  var row = getObject('rows', rec);
2441
2441
  var record = getObject('records', rec);
2442
2442
  for (var i = 0; i < record.length; i++) {
2443
- if (record[i].parentItem !== undefined) {
2443
+ if (!isNullOrUndefined(record[i].parentItem)) {
2444
2444
  var pindex = this.flatData[record[i].parentItem.index].index;
2445
2445
  if (this.flatData[pindex].expanded === false) {
2446
2446
  record.push(this.flatData[pindex]);