@syncfusion/ej2-treegrid 29.1.39 → 29.2.4

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 : 29.1.39
3
+ * version : 29.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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@29.1.37",
3
+ "_id": "@syncfusion/ej2-treegrid@29.1.39",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-LVhrALwC5AX+T58ItxosY8FcTZDZgE7/oLxmzZuA5PrJhVWU8WA7+Qzcbiz6v98EzySQUKL+u9YMSi/DIjnc3w==",
5
+ "_integrity": "sha512-ilmdROYty+FemsK/fQLmWkezLj/gI5MCLMPIaGKCiLN3uSVhHEF7l7bdXYSWi0kZ3GF9iTzL1aYm9b5mubogPw==",
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-29.1.37.tgz",
28
- "_shasum": "650f83e1df1da1bc026fa0ca36cf6aeafdb5936d",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-29.1.39.tgz",
28
+ "_shasum": "690176e14de276f06ef1bf608207911d995a5723",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
31
31
  "author": {
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~29.1.36",
40
- "@syncfusion/ej2-data": "~29.1.33",
41
- "@syncfusion/ej2-grids": "~29.1.39",
42
- "@syncfusion/ej2-popups": "~29.1.37"
39
+ "@syncfusion/ej2-base": "~29.2.4",
40
+ "@syncfusion/ej2-data": "~29.2.4",
41
+ "@syncfusion/ej2-grids": "~29.2.4",
42
+ "@syncfusion/ej2-popups": "~29.2.4"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -76,6 +76,6 @@
76
76
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
77
77
  },
78
78
  "typings": "index.d.ts",
79
- "version": "29.1.39",
79
+ "version": "29.2.4",
80
80
  "sideEffects": false
81
81
  }
@@ -115,6 +115,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
115
115
  private treeColumnTextAlign;
116
116
  private treeColumnField;
117
117
  private stackedHeader;
118
+ private freezeColumnRefresh;
118
119
  private isExcel;
119
120
  /** @hidden */
120
121
  initialRender: boolean;
@@ -1731,6 +1732,9 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1731
1732
  private mergeColumns;
1732
1733
  private setFrozenCount;
1733
1734
  private splitFrozenCount;
1735
+ private removeBorder;
1736
+ private frozenLeftBorderColumns;
1737
+ private frozenRightBorderColumns;
1734
1738
  private isFrozenGrid;
1735
1739
  private updateTreeGridModel;
1736
1740
  /**
@@ -75,6 +75,7 @@ var TreeGrid = /** @class */ (function (_super) {
75
75
  _this.isFromChartSide = false;
76
76
  _this.modifiedRecords = [];
77
77
  _this.stackedHeader = false;
78
+ _this.freezeColumnRefresh = true;
78
79
  _this.objectEqualityChecker = function (old, current) {
79
80
  if (old) {
80
81
  var keys = Object.keys(old);
@@ -511,6 +512,7 @@ var TreeGrid = /** @class */ (function (_super) {
511
512
  this.columnModel = [];
512
513
  this.isExpandAll = false;
513
514
  this.isCollapseAll = false;
515
+ this.freezeColumnRefresh = true;
514
516
  this.keyConfigs = {
515
517
  ctrlDownArrow: 'ctrl+downarrow',
516
518
  ctrlUpArrow: 'ctrl+uparrow',
@@ -553,6 +555,10 @@ var TreeGrid = /** @class */ (function (_super) {
553
555
  TreeGrid.prototype.requiredModules = function () {
554
556
  var modules = [];
555
557
  var splitFrozenCount = 'splitFrozenCount';
558
+ var mergedColumns = 'mergedColumns';
559
+ if (this["" + mergedColumns]) {
560
+ this.grid["" + mergedColumns] = this["" + mergedColumns];
561
+ }
556
562
  if (isNullOrUndefined(this['changedProperties'].columns)) {
557
563
  this.grid["" + splitFrozenCount](this.getColumns());
558
564
  }
@@ -2771,14 +2777,30 @@ var TreeGrid = /** @class */ (function (_super) {
2771
2777
  };
2772
2778
  TreeGrid.prototype.setFrozenCount = function () {
2773
2779
  var persist3 = 'setFrozenCount';
2774
- this.grid["" + persist3].apply(this.grid);
2780
+ this.grid["" + persist3].apply(this);
2775
2781
  };
2776
2782
  TreeGrid.prototype.splitFrozenCount = function (columns) {
2777
2783
  var persist4 = 'splitFrozenCount';
2778
- this.grid["" + persist4].apply(this.grid, [columns]);
2784
+ var instance = this.frozenColumns > 0 ? this.grid : this;
2785
+ this.grid["" + persist4].apply(instance, [columns]);
2786
+ };
2787
+ TreeGrid.prototype.removeBorder = function (columns) {
2788
+ var persist5 = 'removeBorder';
2789
+ this.grid["" + persist5].apply(this.grid, [columns]);
2790
+ };
2791
+ TreeGrid.prototype.frozenLeftBorderColumns = function (columns) {
2792
+ var persist6 = 'frozenLeftBorderColumns';
2793
+ this.grid["" + persist6].apply(this.grid, [columns]);
2794
+ };
2795
+ TreeGrid.prototype.frozenRightBorderColumns = function (columns) {
2796
+ var persist7 = 'frozenRightBorderColumns';
2797
+ this.grid["" + persist7].apply(this.grid, [columns]);
2779
2798
  };
2780
2799
  TreeGrid.prototype.isFrozenGrid = function () {
2781
- return this.grid.isFrozenGrid();
2800
+ var hasFreezeProp = Array.isArray(this.columns) &&
2801
+ this.columns.some(function (col) { return !!col.freeze; });
2802
+ return (this.frozenColumns > 0 || this.frozenRows > 0 || this.getFrozenColumns() > 0 ||
2803
+ hasFreezeProp);
2782
2804
  };
2783
2805
  TreeGrid.prototype.updateTreeGridModel = function () {
2784
2806
  this.setProperties({ filterSettings: getObject('properties', this.grid.filterSettings) }, true);