@syncfusion/ej2-treegrid 20.1.51 → 20.1.52

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.1.51
3
+ * version : 20.1.52
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.1.48",
3
+ "_id": "@syncfusion/ej2-treegrid@20.1.51",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-8wPx7RsFAoz5CZKwde0HxmCx1MYBUtZGrzI/e+at8zwvQlxMLvVJnhERqJFFhdPoZcdQga4D6tx0vGHCrfM/+Q==",
5
+ "_integrity": "sha512-9awiYCeU9G5d700L+2nhTh0/F/31+EWJZawEtrU7qxpGyoFxb3EICIFVb51oO9+BQphSS3Xnp204Vk9xQV511g==",
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-20.1.48.tgz",
28
- "_shasum": "e7bd8249c5a14245b20a6295bc7a8668f094da53",
27
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.1.51.tgz",
28
+ "_shasum": "24c27866fd177d1a5bf5b2c11bd29aa74c005f69",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
31
31
  "author": {
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~20.1.50",
40
40
  "@syncfusion/ej2-data": "~20.1.47",
41
- "@syncfusion/ej2-grids": "~20.1.51",
41
+ "@syncfusion/ej2-grids": "~20.1.52",
42
42
  "@syncfusion/ej2-popups": "~20.1.47"
43
43
  },
44
44
  "deprecated": false,
@@ -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.1.51",
63
+ "version": "20.1.52",
64
64
  "sideEffects": false
65
65
  }
@@ -85,10 +85,12 @@ var Selection = /** @class */ (function () {
85
85
  Selection.prototype.getCheckboxcolumnIndex = function () {
86
86
  var mappingUid;
87
87
  var columnIndex;
88
- var columns = (this.parent.columns);
88
+ var stackedHeader = "stackedHeader";
89
+ var columnModel = 'columnModel';
90
+ var columns = this.parent[stackedHeader] ? this.parent[columnModel] : (this.parent.columns);
89
91
  for (var col = 0; col < columns.length; col++) {
90
92
  if (columns[col].showCheckbox) {
91
- mappingUid = this.parent.columns[col].uid;
93
+ mappingUid = columns[col].uid;
92
94
  }
93
95
  }
94
96
  var headerCelllength = this.parent.getHeaderContent().querySelectorAll('.e-headercelldiv').length;
@@ -104,6 +104,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
104
104
  private isEditCollapse;
105
105
  private treeColumnTextAlign;
106
106
  private treeColumnField;
107
+ private stackedHeader;
107
108
  /** @hidden */
108
109
  initialRender: boolean;
109
110
  /** @hidden */
@@ -69,6 +69,7 @@ var TreeGrid = /** @class */ (function (_super) {
69
69
  _this.addedRecords = 'addedRecords';
70
70
  _this.indentOutdentAction = 'indentOutdentAction';
71
71
  _this.modifiedRecords = [];
72
+ _this.stackedHeader = false;
72
73
  _this.objectEqualityChecker = function (old, current) {
73
74
  if (old) {
74
75
  var keys = Object.keys(old);
@@ -2027,6 +2028,10 @@ var TreeGrid = /** @class */ (function (_super) {
2027
2028
  */
2028
2029
  TreeGrid.prototype.getColumnByUid = function (uid) {
2029
2030
  var Columns = this.initialRender ? this.grid.columns : this.columns;
2031
+ var columnModel = 'columnModel';
2032
+ if (this.grid.columns.length !== this.columnModel.length) {
2033
+ Columns = this.grid[columnModel];
2034
+ }
2030
2035
  return iterateArrayOrObject(Columns, function (item) {
2031
2036
  if (item.uid === uid) {
2032
2037
  return item;
@@ -2154,7 +2159,6 @@ var TreeGrid = /** @class */ (function (_super) {
2154
2159
  temp = this.columnModel[this.treeColumnIndex].template;
2155
2160
  field = this.columnModel[this.treeColumnIndex].field;
2156
2161
  }
2157
- var stackedHeader = false;
2158
2162
  var gridColumn;
2159
2163
  if (!this.enableColumnVirtualization || (this.enableColumnVirtualization && this.columnModel.length === gridColumns.length)) {
2160
2164
  this.columnModel = [];
@@ -2173,9 +2177,9 @@ var TreeGrid = /** @class */ (function (_super) {
2173
2177
  var merge = 'deepMerge';
2174
2178
  this[merge] = ['columns']; // Workaround for blazor updateModel
2175
2179
  if (this.grid.columns.length !== this.columnModel.length) {
2176
- stackedHeader = true;
2180
+ this.stackedHeader = true;
2177
2181
  }
2178
- if (!stackedHeader) {
2182
+ if (!this.stackedHeader) {
2179
2183
  this.setProperties({ columns: this.columnModel }, true);
2180
2184
  }
2181
2185
  this[merge] = undefined; // Workaround for blazor updateModel