@syncfusion/ej2-treegrid 21.1.38 → 21.1.41

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.38
3
+ * version : 21.1.41
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.37",
3
+ "_id": "@syncfusion/ej2-treegrid@21.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-KcFFYzCZtqS5yaixGRtSjaScyvmUZY/3fg3cPrBbHEDte8vAGk+qrGY1PNYS29TDZFeu5aIhYt95HNR/VGOO8Q==",
5
+ "_integrity": "sha512-yzDLy2soTHvZsUUxZCbJktnCGu6CA99GgvXZGMblq/f97fMtTbeyeaFqdy5c95BLi60jHIaacJqH2JrHFbOBoQ==",
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.37.tgz",
28
- "_shasum": "d761d0f0b6ef1c633daafc06f62d46416a8ce26f",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-21.1.38.tgz",
28
+ "_shasum": "9b8904acbb4c8e6c2ba33927564ca9e0059a1b5d",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
31
31
  "author": {
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~21.1.38",
39
+ "@syncfusion/ej2-base": "~21.1.40",
40
40
  "@syncfusion/ej2-data": "~21.1.38",
41
- "@syncfusion/ej2-grids": "~21.1.38",
42
- "@syncfusion/ej2-popups": "~21.1.37"
41
+ "@syncfusion/ej2-grids": "~21.1.41",
42
+ "@syncfusion/ej2-popups": "~21.1.41"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -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.38",
69
+ "version": "21.1.41",
70
70
  "sideEffects": false
71
71
  }
@@ -1110,6 +1110,25 @@ var TreeGrid = /** @class */ (function (_super) {
1110
1110
  if (requestType === 'reorder') {
1111
1111
  _this.notify('getColumnIndex', {});
1112
1112
  }
1113
+ if (requestType === 'filterbeforeopen' && args.columnName && _this.filterSettings.hierarchyMode !== 'None') {
1114
+ for (var j = 0; j < _this.columns.length; j++) {
1115
+ var fields = 'field';
1116
+ if (_this.columns[parseInt(j.toString(), 10)]["" + fields] === args.columnName) {
1117
+ var taskFields = [];
1118
+ for (var i = 0; i < _this.grid.currentViewData.length; i++) {
1119
+ var fieldValue = _this.grid.currentViewData[parseInt(i.toString(), 10)][args.columnName];
1120
+ if (taskFields.indexOf(fieldValue) === -1) {
1121
+ taskFields.push(fieldValue);
1122
+ }
1123
+ }
1124
+ args['filterModel'].options.dataSource = taskFields.map(function (name) {
1125
+ var _a;
1126
+ return (_a = {}, _a[args.columnName] = name, _a);
1127
+ });
1128
+ args['filterModel'].options.filteredColumns = args['filterModel'].options.filteredColumns.filter(function (col) { return col.field === args.columnName; });
1129
+ }
1130
+ }
1131
+ }
1113
1132
  if (isRemoteData(_this) && _this.enableVirtualization) {
1114
1133
  if (args.requestType === 'virtualscroll') {
1115
1134
  _this.query.expand('VirtualScrollingAction');
@@ -70,9 +70,10 @@ var Render = /** @class */ (function () {
70
70
  args.row.style.display = 'none';
71
71
  }
72
72
  }
73
+ var dragStartData = 'dragStartData';
73
74
  var draggedRecord = 'draggedRecord';
74
- if (!isNullOrUndefined(this.parent.rowDragAndDropModule) && !isNullOrUndefined(this.parent.rowDragAndDropModule["" + draggedRecord])
75
- && this.parent.getContentTable().scrollHeight <= this.parent.getContent().clientHeight) {
75
+ if (this.parent.rowDragAndDropModule && this.parent.grid.rowDragAndDropModule && (this.parent.grid.rowDragAndDropModule["" + dragStartData] ||
76
+ this.parent.rowDragAndDropModule["" + draggedRecord]) && this.parent.getContentTable().scrollHeight <= this.parent.getContent().clientHeight) {
76
77
  var lastRowBorder = 'lastRowBorder';
77
78
  var lastVisualData = this.parent.getVisibleRecords()[this.parent.getVisibleRecords().length - 1];
78
79
  if (lastVisualData.uniqueID === args.data.uniqueID && !isNullOrUndefined(args.row) && !args.row.cells[0].classList.contains('e-lastrowcell')) {