@syncfusion/ej2-treegrid 20.3.50 → 20.3.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 : 20.3.50
3
+ * version : 20.3.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@20.3.49",
3
+ "_id": "@syncfusion/ej2-treegrid@20.3.52",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-48n9ELayHVf9o6D/gd4RUFkaaZLi8jbQw9ayr7xU+9E5iTtIzjzM+MagsBcmi3g6cGX9ia+ZA1jAMgVAbZkuSA==",
5
+ "_integrity": "sha512-/vMHDJDfHDngg+AI9IGN8QAfWPMaADbeU64pvezOvVgfDS6oCwrCWJNaeYnmh1N/yRptfkz24d+cHERxVeNqBw==",
6
6
  "_location": "/@syncfusion/ej2-treegrid",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,10 +24,10 @@
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-20.3.49.tgz",
28
- "_shasum": "a830c8b6226e2b1d86a1ba0b50b1d9879604fbc2",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.3.52.tgz",
28
+ "_shasum": "1bc333eb3658e10056c4264a866a3c7060168341",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
+ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
31
31
  "author": {
32
32
  "name": "Syncfusion Inc."
33
33
  },
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~20.3.50",
40
- "@syncfusion/ej2-data": "~20.3.50",
41
- "@syncfusion/ej2-grids": "~20.3.50",
42
- "@syncfusion/ej2-popups": "~20.3.50"
39
+ "@syncfusion/ej2-base": "~20.3.56",
40
+ "@syncfusion/ej2-data": "~20.3.56",
41
+ "@syncfusion/ej2-grids": "~20.3.56",
42
+ "@syncfusion/ej2-popups": "~20.3.56"
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": "20.3.50",
63
+ "version": "20.3.56",
64
64
  "sideEffects": false
65
65
  }
@@ -89,6 +89,8 @@ var Page = /** @class */ (function () {
89
89
  */
90
90
  Page.prototype.collapseExpandPagedchilds = function (rowDetails) {
91
91
  rowDetails.record.expanded = rowDetails.action === 'collapse' ? false : true;
92
+ this.parent.flatData.map(function (e) { return e.expanded = e.uniqueID === rowDetails.record.uniqueID &&
93
+ e.expanded !== rowDetails.record.expanded ? rowDetails.record.expanded : e.expanded; });
92
94
  if (this.parent.enableImmutableMode) {
93
95
  var primaryKeyField_1 = this.parent.getPrimaryKeyFieldNames()[0];
94
96
  var record = this.parent.flatData.filter(function (e) {
@@ -10,6 +10,7 @@ export declare class Selection {
10
10
  private selectedItems;
11
11
  private selectedIndexes;
12
12
  private filteredList;
13
+ private searchingRecords;
13
14
  /**
14
15
  * Constructor for Selection module
15
16
  *
@@ -19,6 +19,7 @@ var Selection = /** @class */ (function () {
19
19
  this.selectedItems = [];
20
20
  this.selectedIndexes = [];
21
21
  this.filteredList = [];
22
+ this.searchingRecords = [];
22
23
  this.addEventListener();
23
24
  }
24
25
  /**
@@ -273,6 +274,9 @@ var Selection = /** @class */ (function () {
273
274
  if (this.filteredList.length === 0) {
274
275
  this.filteredList = filterResult;
275
276
  }
277
+ if (this.parent.grid.searchSettings.key.length) {
278
+ this.searchingRecords = filterResult;
279
+ }
276
280
  else {
277
281
  if (this.filteredList !== filterResult) {
278
282
  this.filteredList = filterResult;
@@ -284,9 +288,12 @@ var Selection = /** @class */ (function () {
284
288
  }
285
289
  }
286
290
  if (this.filteredList.length > 0) {
287
- if (!this.parent.filterSettings.columns.length && this.filteredList.length) {
291
+ if (!this.parent.filterSettings.columns.length && this.filteredList.length && !this.parent.grid.searchSettings.key.length) {
288
292
  this.filteredList = [];
289
293
  }
294
+ if (this.searchingRecords.length && !isNullOrUndefined(checkAll)) {
295
+ this.filteredList = this.searchingRecords;
296
+ }
290
297
  }
291
298
  var data = (!isNullOrUndefined(this.parent.filterModule) &&
292
299
  (this.filteredList.length > 0)) ? this.filteredList :
@@ -1752,7 +1752,6 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1752
1752
  collapseAll(): void;
1753
1753
  private expandCollapseAll;
1754
1754
  private expandCollapse;
1755
- private updateGridRowsVisible;
1756
1755
  private updateChildOnDemand;
1757
1756
  private remoteExpand;
1758
1757
  private localExpand;
@@ -2478,8 +2478,9 @@ var TreeGrid = /** @class */ (function (_super) {
2478
2478
  if (this.editSettings.mode === 'Batch') {
2479
2479
  var obj = 'dialogObj';
2480
2480
  var showDialog = 'showDialog';
2481
- if (this.getBatchChanges()[this.changedRecords].length ||
2482
- this.getBatchChanges()[this.deletedRecords].length || this.getBatchChanges()[this.addedRecords].length) {
2481
+ if ((this.getBatchChanges()[this.changedRecords].length ||
2482
+ this.getBatchChanges()[this.deletedRecords].length || this.getBatchChanges()[this.addedRecords].length)
2483
+ && this.editSettings.showConfirmDialog) {
2483
2484
  var dialogObj = this.grid.editModule[obj];
2484
2485
  this.grid.editModule[showDialog]('CancelEdit', dialogObj);
2485
2486
  this.targetElement = target;
@@ -2936,21 +2937,8 @@ var TreeGrid = /** @class */ (function (_super) {
2936
2937
  }
2937
2938
  this.notify('rowExpandCollapse', { detailrows: detailrows, action: displayAction, record: record, row: row });
2938
2939
  this.updateAltRow(gridRows);
2939
- this.updateGridRowsVisible();
2940
2940
  }
2941
2941
  };
2942
- TreeGrid.prototype.updateGridRowsVisible = function () {
2943
- var rowsToRefresh = this.grid.getRowsObject();
2944
- var rows = this.getRows();
2945
- for (var i = 0; i < rows.length; i++) {
2946
- for (var j = 0; j < rowsToRefresh.length; j++) {
2947
- if (rows[i].dataset.uid === rowsToRefresh[j].uid) {
2948
- rowsToRefresh[j].visible = rows[i].style.display === 'none' ? false : true;
2949
- }
2950
- }
2951
- }
2952
- this.grid.notify('refresh-Expand-and-Collapse', { rows: rowsToRefresh });
2953
- };
2954
2942
  TreeGrid.prototype.updateChildOnDemand = function (expandingArgs) {
2955
2943
  var _this = this;
2956
2944
  if (expandingArgs.requestType === 'collapse' && isCountRequired(this)) {