@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.
@@ -3462,6 +3462,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
3462
3462
  this.isFromChartSide = false;
3463
3463
  this.modifiedRecords = [];
3464
3464
  this.stackedHeader = false;
3465
+ this.freezeColumnRefresh = true;
3465
3466
  this.objectEqualityChecker = (old, current) => {
3466
3467
  if (old) {
3467
3468
  const keys = Object.keys(old);
@@ -3896,6 +3897,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
3896
3897
  this.columnModel = [];
3897
3898
  this.isExpandAll = false;
3898
3899
  this.isCollapseAll = false;
3900
+ this.freezeColumnRefresh = true;
3899
3901
  this.keyConfigs = {
3900
3902
  ctrlDownArrow: 'ctrl+downarrow',
3901
3903
  ctrlUpArrow: 'ctrl+uparrow',
@@ -3938,6 +3940,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
3938
3940
  requiredModules() {
3939
3941
  const modules = [];
3940
3942
  const splitFrozenCount = 'splitFrozenCount';
3943
+ const mergedColumns = 'mergedColumns';
3944
+ if (this[`${mergedColumns}`]) {
3945
+ this.grid[`${mergedColumns}`] = this[`${mergedColumns}`];
3946
+ }
3941
3947
  if (isNullOrUndefined(this['changedProperties'].columns)) {
3942
3948
  this.grid[`${splitFrozenCount}`](this.getColumns());
3943
3949
  }
@@ -6137,14 +6143,30 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
6137
6143
  }
6138
6144
  setFrozenCount() {
6139
6145
  const persist3 = 'setFrozenCount';
6140
- this.grid[`${persist3}`].apply(this.grid);
6146
+ this.grid[`${persist3}`].apply(this);
6141
6147
  }
6142
6148
  splitFrozenCount(columns) {
6143
6149
  const persist4 = 'splitFrozenCount';
6144
- this.grid[`${persist4}`].apply(this.grid, [columns]);
6150
+ const instance = this.frozenColumns > 0 ? this.grid : this;
6151
+ this.grid[`${persist4}`].apply(instance, [columns]);
6152
+ }
6153
+ removeBorder(columns) {
6154
+ const persist5 = 'removeBorder';
6155
+ this.grid[`${persist5}`].apply(this.grid, [columns]);
6156
+ }
6157
+ frozenLeftBorderColumns(columns) {
6158
+ const persist6 = 'frozenLeftBorderColumns';
6159
+ this.grid[`${persist6}`].apply(this.grid, [columns]);
6160
+ }
6161
+ frozenRightBorderColumns(columns) {
6162
+ const persist7 = 'frozenRightBorderColumns';
6163
+ this.grid[`${persist7}`].apply(this.grid, [columns]);
6145
6164
  }
6146
6165
  isFrozenGrid() {
6147
- return this.grid.isFrozenGrid();
6166
+ const hasFreezeProp = Array.isArray(this.columns) &&
6167
+ this.columns.some((col) => !!col.freeze);
6168
+ return (this.frozenColumns > 0 || this.frozenRows > 0 || this.getFrozenColumns() > 0 ||
6169
+ hasFreezeProp);
6148
6170
  }
6149
6171
  updateTreeGridModel() {
6150
6172
  this.setProperties({ filterSettings: getObject('properties', this.grid.filterSettings) }, true);