@syncfusion/ej2-treegrid 21.1.37 → 21.1.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.1.37
3
+ * version : 21.1.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@21.1.35",
3
+ "_id": "@syncfusion/ej2-treegrid@21.1.37",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ouihoglEHJP/Rhe+MH3bJ7w4cGwaIWgWjNHU0oYD6Rr6n2K8DVYEpHS1oW4zVFzHCzEATAuuETu/6kPP5q9TCg==",
5
+ "_integrity": "sha512-KcFFYzCZtqS5yaixGRtSjaScyvmUZY/3fg3cPrBbHEDte8vAGk+qrGY1PNYS29TDZFeu5aIhYt95HNR/VGOO8Q==",
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": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-21.1.35.tgz",
28
- "_shasum": "6c352cdb1bd29fff5724b93d39eeadfa68765d2a",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-21.1.37.tgz",
28
+ "_shasum": "d761d0f0b6ef1c633daafc06f62d46416a8ce26f",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
31
31
  "author": {
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~21.1.37",
40
- "@syncfusion/ej2-data": "~21.1.37",
41
- "@syncfusion/ej2-grids": "~21.1.37",
39
+ "@syncfusion/ej2-base": "~21.1.38",
40
+ "@syncfusion/ej2-data": "~21.1.38",
41
+ "@syncfusion/ej2-grids": "~21.1.38",
42
42
  "@syncfusion/ej2-popups": "~21.1.37"
43
43
  },
44
44
  "deprecated": false,
@@ -66,6 +66,6 @@
66
66
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
67
67
  },
68
68
  "typings": "index.d.ts",
69
- "version": "21.1.37",
69
+ "version": "21.1.38",
70
70
  "sideEffects": false
71
71
  }
@@ -975,6 +975,11 @@ var TreeGrid = /** @class */ (function (_super) {
975
975
  return callBackPromise;
976
976
  };
977
977
  this.grid.cellSelecting = function (args) {
978
+ var actualTarget = 'actualTarget';
979
+ var target = _this.grid.selectionModule["" + actualTarget];
980
+ if (!isNullOrUndefined(target) && (target.classList.contains('e-treegridexpand') || target.classList.contains('e-treegridcollapse'))) {
981
+ args.cancel = true;
982
+ }
978
983
  var callBackPromise = new Deferred();
979
984
  _this.trigger(getObject('name', args), args, function (cellselectingArgs) {
980
985
  callBackPromise.resolve(cellselectingArgs);
@@ -40,6 +40,8 @@ var Render = /** @class */ (function () {
40
40
  !getExpandStatus(this.parent, args.data, this.parent.grid.getCurrentViewRecords());
41
41
  if (collapsed) {
42
42
  args.row.style.display = 'none';
43
+ var rowsObj = this.parent.grid.getRowsObject();
44
+ rowsObj.filter(function (e) { return e.uid === args.row.getAttribute('data-uid'); })[0].visible = false;
43
45
  }
44
46
  }
45
47
  if (isRemoteData(this.parent) && !isOffline(this.parent)) {
@@ -68,6 +70,15 @@ var Render = /** @class */ (function () {
68
70
  args.row.style.display = 'none';
69
71
  }
70
72
  }
73
+ var draggedRecord = 'draggedRecord';
74
+ if (!isNullOrUndefined(this.parent.rowDragAndDropModule) && !isNullOrUndefined(this.parent.rowDragAndDropModule["" + draggedRecord])
75
+ && this.parent.getContentTable().scrollHeight <= this.parent.getContent().clientHeight) {
76
+ var lastRowBorder = 'lastRowBorder';
77
+ var lastVisualData = this.parent.getVisibleRecords()[this.parent.getVisibleRecords().length - 1];
78
+ if (lastVisualData.uniqueID === args.data.uniqueID && !isNullOrUndefined(args.row) && !args.row.cells[0].classList.contains('e-lastrowcell')) {
79
+ this.parent["" + lastRowBorder](args.row, true);
80
+ }
81
+ }
71
82
  this.parent.trigger(events.rowDataBound, args);
72
83
  };
73
84
  /**