@syncfusion/ej2-treegrid 21.2.4 → 21.2.5

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.2.4
3
+ * version : 21.2.5
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.2.3",
3
+ "_id": "@syncfusion/ej2-treegrid@21.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-pnNlc+xmVp2HSWThhMjSVX88ro8KbjBqpDmXOBTdzSHrnm+ndxCq7ZXGdgkCe7S5iXL5KA3bgJhUKNSOVdd55g==",
5
+ "_integrity": "sha512-NpKOhZ2iXKUVktbOJarp6RNqk6nazOQnlrVSmDxL5BFnM/0TdyM0R64+eynPJiF4IpIB7rat9MkCtTTiCnL4xA==",
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.2.3.tgz",
28
- "_shasum": "bd3a3fc2dbc73a3eebc6fec6d55827feacec0da2",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-21.2.4.tgz",
28
+ "_shasum": "828522ae3a9455dbab9dc3d5d7d46cb6c510e995",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
31
31
  "author": {
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~21.2.3",
40
40
  "@syncfusion/ej2-data": "~21.2.4",
41
- "@syncfusion/ej2-grids": "~21.2.4",
41
+ "@syncfusion/ej2-grids": "~21.2.5",
42
42
  "@syncfusion/ej2-popups": "~21.2.4"
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.2.4",
69
+ "version": "21.2.5",
70
70
  "sideEffects": false
71
71
  }
@@ -124,6 +124,9 @@ var VirtualScroll = /** @class */ (function () {
124
124
  this.parent.grid.getContent().firstElementChild.scrollTop = 0;
125
125
  this.parent.grid.notify(events.virtualActionArgs, { setTop: true });
126
126
  }
127
+ if (requestType === 'save' && this.parent.editSettings.newRowPosition === 'Bottom') {
128
+ endIndex = counts.count;
129
+ }
127
130
  //if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
128
131
  //this.prevendIndex === endIndex && this.prevstartIndex === startIndex) {
129
132
  if (!isNullOrUndefined(this.expandCollapseRec) && (pageingDetails.actionArgs.requestType === 'virtualscroll' ||
@@ -352,6 +352,10 @@ var DataManipulation = /** @class */ (function () {
352
352
  qry.expand(expandDetail);
353
353
  }
354
354
  qry.where(this.parent.parentIdMapping, 'equal', rowDetails.record[this.parent.idMapping]);
355
+ if (rowDetails.action === 'remoteExpand' && this.parent.grid.filterModule && this.parent.grid.filterModule['value']) {
356
+ var filterqry = this.parent.grid.getDataModule().generateQuery().queries.filter(function (e) { return e.fn !== 'onPage' && typeof e.e.predicates !== 'undefined'; });
357
+ qry.queries.push(filterqry[0]);
358
+ }
355
359
  showSpinner(this.parent.element);
356
360
  dm.executeQuery(qry).then(function (e) {
357
361
  var remoteExpandedData = 'remoteExpandedData';
@@ -374,6 +378,24 @@ var DataManipulation = /** @class */ (function () {
374
378
  }
375
379
  var haveChild = getObject('actual.nextLevel', e);
376
380
  var result = e.result;
381
+ var resultChildData = [];
382
+ if (rowDetails.action === 'remoteExpand' && _this.parent.grid.filterModule && _this.parent.grid.filterModule['value']) {
383
+ for (var i = 0; i < datas.length; i++) {
384
+ if (Object.prototype.hasOwnProperty.call(datas[parseInt(i.toString(), 10)], _this.parent.parentIdMapping) && datas[parseInt(i.toString(), 10)]['' + _this.parent.parentIdMapping] !== null && datas[parseInt(i.toString(), 10)].level === 0) {
385
+ datas.splice(i, 1);
386
+ i--;
387
+ }
388
+ }
389
+ for (var i = 0; i < result.length; i++) {
390
+ if (rowDetails.record['' + _this.parent.idMapping] !== result[parseInt(i.toString(), 10)]['' + _this.parent.idMapping] &&
391
+ rowDetails.record['' + _this.parent.idMapping] === result[parseInt(i.toString(), 10)]['' + _this.parent.parentIdMapping]) {
392
+ if (Object.prototype.hasOwnProperty.call(result, i)) {
393
+ resultChildData.push(result[parseInt(i.toString(), 10)]);
394
+ }
395
+ }
396
+ }
397
+ result = resultChildData;
398
+ }
377
399
  rowDetails.record.childRecords = result;
378
400
  for (var r = 0; r < result.length; r++) {
379
401
  if (_this.parent.enableVirtualization && result[parseInt(r.toString(), 10)]["" + _this.parent.idMapping] === rowDetails.record["" + _this.parent.idMapping] && rowDetails.action === 'remoteExpand') {
@@ -312,7 +312,7 @@ var TreeGrid = /** @class */ (function (_super) {
312
312
  target = e.target;
313
313
  parentTarget = target.parentElement;
314
314
  var cellIndex = parentTarget.cellIndex;
315
- if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit["obj"])) {
315
+ if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
316
316
  parentTarget = target;
317
317
  }
318
318
  summaryElement = this.findnextRowElement(parentTarget);
@@ -334,7 +334,7 @@ var TreeGrid = /** @class */ (function (_super) {
334
334
  target = e.target;
335
335
  parentTarget = target.parentElement;
336
336
  var cellIndex = parentTarget.cellIndex;
337
- if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit["obj"])) {
337
+ if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
338
338
  parentTarget = target;
339
339
  }
340
340
  summaryElement = this.findPreviousRowElement(parentTarget);
@@ -1086,7 +1086,10 @@ var TreeGrid = /** @class */ (function (_super) {
1086
1086
  var currentData = _this.getCurrentViewRecords();
1087
1087
  var rows = _this.getContentTable().rows;
1088
1088
  for (var i = 0; i < rows.length; i++) {
1089
- var args = { data: currentData[parseInt(i.toString(), 10)], row: rows[parseInt(i.toString(), 10)] };
1089
+ var args = {
1090
+ data: currentData[parseInt(i.toString(), 10)],
1091
+ row: rows[parseInt(i.toString(), 10)]
1092
+ };
1090
1093
  _this.renderModule.RowModifier(args);
1091
1094
  }
1092
1095
  }