@syncfusion/ej2-treegrid 29.1.37 → 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.37
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.33",
3
+ "_id": "@syncfusion/ej2-treegrid@29.1.39",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-H8pw8MOJvp9jnSCHxVdIzh/R7A/rgBG4qO4y56ywK1AkS9XUo6yF9H/DRQ1b8OXHnH7km86j7cr7is0ZRUCCJw==",
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.33.tgz",
28
- "_shasum": "1f3fe526c6645ecb45e41159f58b96e9b80160f7",
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.37",
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.37",
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
  }
@@ -980,6 +986,7 @@ var TreeGrid = /** @class */ (function (_super) {
980
986
  this.grid.pagerTemplate = this.pagerTemplate;
981
987
  this.grid.showColumnMenu = this.showColumnMenu;
982
988
  this.grid.allowSorting = this.allowSorting;
989
+ this.grid.allowMultiSorting = this.allowMultiSorting;
983
990
  this.grid.allowFiltering = this.allowFiltering;
984
991
  this.grid.enableVirtualization = this.enableVirtualization;
985
992
  this.grid.enableColumnVirtualization = this.enableColumnVirtualization;
@@ -2766,20 +2773,34 @@ var TreeGrid = /** @class */ (function (_super) {
2766
2773
  };
2767
2774
  TreeGrid.prototype.mergeColumns = function (storedColumn, columns) {
2768
2775
  var persist2 = 'mergeColumns';
2769
- var mergedColumns = 'mergedColumns';
2770
2776
  this.grid["" + persist2].apply(this, [storedColumn, columns]);
2771
- this.grid["" + mergedColumns] = true;
2772
2777
  };
2773
2778
  TreeGrid.prototype.setFrozenCount = function () {
2774
2779
  var persist3 = 'setFrozenCount';
2775
- this.grid["" + persist3].apply(this.grid);
2780
+ this.grid["" + persist3].apply(this);
2776
2781
  };
2777
2782
  TreeGrid.prototype.splitFrozenCount = function (columns) {
2778
2783
  var persist4 = 'splitFrozenCount';
2779
- 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]);
2780
2798
  };
2781
2799
  TreeGrid.prototype.isFrozenGrid = function () {
2782
- return this.grid.isFrozenGrid.apply(this);
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);
2783
2804
  };
2784
2805
  TreeGrid.prototype.updateTreeGridModel = function () {
2785
2806
  this.setProperties({ filterSettings: getObject('properties', this.grid.filterSettings) }, true);