@syncfusion/ej2-treegrid 20.1.56 → 20.1.59

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.56
3
+ * version : 20.1.59
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.55",
3
+ "_id": "@syncfusion/ej2-treegrid@20.1.56",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-A1EOCEVmqUalNcK4SjlQKCn8lUFDKfEWKUHNw3EqzLQjDxZsUMneiA8ws+zwLgX33Bm6TevapkBRBtoW5jbQzw==",
5
+ "_integrity": "sha512-Qr1pNSDq6WTOGaUqG0e2v0Eppvmh+NZN2PNrnd3ucoBB4SFPMZLClzf2eGKb4UuStq8H+A/IMpdT7GS7IqfnLQ==",
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.55.tgz",
28
- "_shasum": "ded97a9e20965294cf8792b759e1cdbeba0e8e68",
27
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.1.56.tgz",
28
+ "_shasum": "0d3903781892661826595306bf4fb3b640477753",
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": "~20.1.56",
39
+ "@syncfusion/ej2-base": "~20.1.57",
40
40
  "@syncfusion/ej2-data": "~20.1.55",
41
- "@syncfusion/ej2-grids": "~20.1.56",
42
- "@syncfusion/ej2-popups": "~20.1.55"
41
+ "@syncfusion/ej2-grids": "~20.1.59",
42
+ "@syncfusion/ej2-popups": "~20.1.58"
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.1.56",
63
+ "version": "20.1.59",
64
64
  "sideEffects": false
65
65
  }
@@ -540,11 +540,13 @@ var Edit = /** @class */ (function () {
540
540
  Edit.prototype.updateIndex = function (data, rows, records) {
541
541
  for (var j = 0; j < this.parent.getDataRows().length; j++) {
542
542
  var data1 = records[j];
543
- var index = getValue('uniqueIDCollection.' + data1.uniqueID + '.index', this.parent);
544
- data1.index = index;
545
- if (!isNullOrUndefined(data1.parentItem)) {
546
- var parentIndex = getValue('uniqueIDCollection.' + data1.parentItem.uniqueID + '.index', this.parent);
547
- data1.parentItem.index = parentIndex;
543
+ if (!isNullOrUndefined(data1)) {
544
+ var index = getValue('uniqueIDCollection.' + data1.uniqueID + '.index', this.parent);
545
+ data1.index = index;
546
+ if (!isNullOrUndefined(data1.parentItem)) {
547
+ var parentIndex = getValue('uniqueIDCollection.' + data1.parentItem.uniqueID + '.index', this.parent);
548
+ data1.parentItem.index = parentIndex;
549
+ }
548
550
  }
549
551
  }
550
552
  var count = -1;
@@ -563,32 +565,34 @@ var Edit = /** @class */ (function () {
563
565
  count++;
564
566
  }
565
567
  var data2 = records[count];
566
- var index = data2.index;
567
- var level = data2.level;
568
- var row = rows[k];
569
- if (!isNullOrUndefined(data2.parentItem)) {
570
- index = getValue('uniqueIDCollection.' + data2.parentItem.uniqueID + '.index', this.parent);
571
- }
572
- var treecell = row.cells[treeColIndex];
573
- if (!isNullOrUndefined(treecell)) {
574
- for (var l = 0; l < treecell.classList.length; l++) {
575
- var value = treecell.classList[l];
576
- var remove = /e-gridrowindex/i;
577
- var removed = /e-griddetailrowindex/i;
578
- var result = value.match(remove);
579
- var results = value.match(removed);
580
- if (result != null) {
581
- removeClass([treecell], value);
568
+ if (!isNullOrUndefined(data2)) {
569
+ var index = data2.index;
570
+ var level = data2.level;
571
+ var row = rows[k];
572
+ if (!isNullOrUndefined(data2.parentItem)) {
573
+ index = getValue('uniqueIDCollection.' + data2.parentItem.uniqueID + '.index', this.parent);
574
+ }
575
+ var treecell = row.cells[treeColIndex];
576
+ if (!isNullOrUndefined(treecell)) {
577
+ for (var l = 0; l < treecell.classList.length; l++) {
578
+ var value = treecell.classList[l];
579
+ var remove = /e-gridrowindex/i;
580
+ var removed = /e-griddetailrowindex/i;
581
+ var result = value.match(remove);
582
+ var results = value.match(removed);
583
+ if (result != null) {
584
+ removeClass([treecell], value);
585
+ }
586
+ if (results != null) {
587
+ removeClass([treecell], value);
588
+ }
582
589
  }
583
- if (results != null) {
584
- removeClass([treecell], value);
590
+ if (!rows[k].classList.contains('e-detailrow')) {
591
+ addClass([treecell], 'e-gridrowindex' + index + 'level' + level);
592
+ }
593
+ else {
594
+ addClass([treecell], 'e-griddetailrowindex' + index + 'level' + level);
585
595
  }
586
- }
587
- if (!rows[k].classList.contains('e-detailrow')) {
588
- addClass([treecell], 'e-gridrowindex' + index + 'level' + level);
589
- }
590
- else {
591
- addClass([treecell], 'e-griddetailrowindex' + index + 'level' + level);
592
596
  }
593
597
  }
594
598
  }
@@ -294,7 +294,7 @@ var InfiniteScroll = /** @class */ (function () {
294
294
  if (getValue('selectedIndex', this.parent.editModule) !== -1 && this.parent.editSettings.newRowPosition !== 'Top') {
295
295
  if (this.parent.editSettings.newRowPosition === 'Below' || this.parent.editSettings.newRowPosition === 'Child') {
296
296
  position = 'after';
297
- newRowIndex += findChildrenRecords(currentData[newRowIndex + 1]).length;
297
+ newRowIndex += findChildrenRecords(currentData[newRowIndex]).length;
298
298
  if (this.parent.editSettings.newRowPosition === 'Child') {
299
299
  newRowIndex -= 1; //// for child position already child record is added in childRecords so subtracting 1
300
300
  }
@@ -85,7 +85,7 @@ var Selection = /** @class */ (function () {
85
85
  Selection.prototype.getCheckboxcolumnIndex = function () {
86
86
  var mappingUid;
87
87
  var columnIndex;
88
- var stackedHeader = "stackedHeader";
88
+ var stackedHeader = 'stackedHeader';
89
89
  var columnModel = 'columnModel';
90
90
  var columns = this.parent[stackedHeader] ? this.parent[columnModel] : (this.parent.columns);
91
91
  for (var col = 0; col < columns.length; col++) {
@@ -27,6 +27,7 @@ import { TextWrapSettings } from '../models/textwrap-settings';
27
27
  import { Logger as TreeLogger } from '../actions/logger';
28
28
  import { TreeClipboard } from '../actions/clipboard';
29
29
  import { Selection as TreeGridSelection } from '../actions/selection';
30
+ import { Freeze } from '../actions/freeze-column';
30
31
  import { Print } from '../actions/print';
31
32
  import * as events from '../base/constant';
32
33
  import { SearchSettings } from '../models/search-settings';
@@ -398,6 +399,7 @@ var TreeGrid = /** @class */ (function (_super) {
398
399
  TreeGrid.prototype.requiredModules = function () {
399
400
  var modules = [];
400
401
  var splitFrozenCount = 'splitFrozenCount';
402
+ this.freezeModule = new Freeze(this);
401
403
  this.grid[splitFrozenCount](this.getGridColumns(this.columns));
402
404
  if (this.isDestroyed) {
403
405
  return modules;
@@ -449,7 +451,7 @@ var TreeGrid = /** @class */ (function (_super) {
449
451
  });
450
452
  }
451
453
  if (this.frozenColumns || this.frozenRows || this.getFrozenColumns() ||
452
- this.grid.getFrozenLeftColumnsCount() || this.grid.getFrozenRightColumnsCount()) {
454
+ this.grid.getFrozenLeftColumnsCount() || this.grid.getFrozenRightColumnsCount() || this.freezeModule) {
453
455
  modules.push({
454
456
  member: 'freeze', args: [this]
455
457
  });