@syncfusion/ej2-treegrid 19.4.47 → 19.4.48

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.4.47
3
+ * version : 19.4.48
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
@@ -47,19 +47,16 @@ class TreeGridHelper extends e2e_1.TestHelper {
47
47
  return this.selector('#' + this.id + ' .e-treegridcollapsed');
48
48
  }
49
49
  setModel(property, value) {
50
- let cy;
51
50
  return cy.get('#' + this.id).then((ele) => {
52
51
  return ele[0].ej2_instances[0][property] = value;
53
52
  });
54
53
  }
55
54
  getModel(property) {
56
- let cy;
57
55
  return cy.get('#' + this.id).then((ele) => {
58
56
  return ele[0].ej2_instances[0][property];
59
57
  });
60
58
  }
61
59
  invoke(fName, args = []) {
62
- let cy;
63
60
  return cy.get('#' + this.id).then((ele) => {
64
61
  var inst = ele[0].ej2_instances[0];
65
62
  return inst[fName].apply(inst, args);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-treegrid@*",
3
- "_id": "@syncfusion/ej2-treegrid@19.4.41",
3
+ "_id": "@syncfusion/ej2-treegrid@19.4.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Q0BEZTlMhWTpuQFJfqWrPg2AFGZSr0o/r27/wnml/9aKsn/Gcp9hWrIKWn5/3+ADWfQiYkTQ+negKVenoXoqcA==",
5
+ "_integrity": "sha512-NYd8SKzN2/DomW0bAokurt48AiowfuQs3axS71x4rSgOBj+Gy+Ermmw5wa7in5HvIWPnpB8nGk61RacvnWTO8A==",
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-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-19.4.41.tgz",
28
- "_shasum": "752b57c8545cdf6e5dba29d7270bef1d8a2d216c",
27
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-19.4.47.tgz",
28
+ "_shasum": "817b480038e0c8b944692130dda7f7cddc0efee7",
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.4.42",
40
- "@syncfusion/ej2-data": "~19.4.47",
41
- "@syncfusion/ej2-grids": "~19.4.47",
42
- "@syncfusion/ej2-popups": "~19.4.47"
39
+ "@syncfusion/ej2-base": "~19.4.48",
40
+ "@syncfusion/ej2-data": "~19.4.48",
41
+ "@syncfusion/ej2-grids": "~19.4.48",
42
+ "@syncfusion/ej2-popups": "~19.4.48"
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.4.47",
63
+ "version": "19.4.48",
64
64
  "sideEffects": false
65
65
  }
@@ -152,7 +152,7 @@ var VirtualScroll = /** @class */ (function () {
152
152
  if (pageingDetails.count < this.parent.getRows()[0].getBoundingClientRect().height) {
153
153
  startIndex = 0;
154
154
  }
155
- else {
155
+ else if (!this.parent['isExpandAll']) {
156
156
  startIndex = this.prevstartIndex === -1 ? 0 : this.prevstartIndex;
157
157
  }
158
158
  }
@@ -180,7 +180,9 @@ var TreeGrid = /** @class */ (function (_super) {
180
180
  * @returns {void}
181
181
  */
182
182
  TreeGrid.prototype.sortByColumn = function (columnName, direction, isMultiSort) {
183
- this.sortModule.sortColumn(columnName, direction, isMultiSort);
183
+ if (this.sortModule) {
184
+ this.sortModule.sortColumn(columnName, direction, isMultiSort);
185
+ }
184
186
  };
185
187
  /**
186
188
  * Clears all the sorted columns of the TreeGrid.
@@ -200,7 +202,9 @@ var TreeGrid = /** @class */ (function (_super) {
200
202
  * @hidden
201
203
  */
202
204
  TreeGrid.prototype.removeSortColumn = function (field) {
203
- this.sortModule.removeSortColumn(field);
205
+ if (this.sortModule) {
206
+ this.sortModule.removeSortColumn(field);
207
+ }
204
208
  };
205
209
  /**
206
210
  * Searches TreeGrid records using the given key.
@@ -559,6 +563,9 @@ var TreeGrid = /** @class */ (function (_super) {
559
563
  this.grid.isReact = true;
560
564
  this.grid.portals = [];
561
565
  }
566
+ if (this.isVue) {
567
+ this.grid.isVue = true;
568
+ }
562
569
  createSpinner({ target: this.element }, this.createElement);
563
570
  this.log(['mapping_fields_missing']);
564
571
  this.renderModule = new Render(this);
@@ -2448,7 +2455,12 @@ var TreeGrid = /** @class */ (function (_super) {
2448
2455
  });
2449
2456
  }
2450
2457
  else if (isNullOrUndefined(record)) {
2451
- record = this.grid.getCurrentViewRecords()[row.rowIndex];
2458
+ if (this.detailTemplate) {
2459
+ record = this.grid.getCurrentViewRecords()[row.getAttribute('aria-rowindex')];
2460
+ }
2461
+ else {
2462
+ record = this.grid.getCurrentViewRecords()[row.rowIndex];
2463
+ }
2452
2464
  }
2453
2465
  return record;
2454
2466
  };