@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.
@@ -3751,6 +3751,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3751
3751
  _this.isFromChartSide = false;
3752
3752
  _this.modifiedRecords = [];
3753
3753
  _this.stackedHeader = false;
3754
+ _this.freezeColumnRefresh = true;
3754
3755
  _this.objectEqualityChecker = function (old, current) {
3755
3756
  if (old) {
3756
3757
  var keys = Object.keys(old);
@@ -4187,6 +4188,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4187
4188
  this.columnModel = [];
4188
4189
  this.isExpandAll = false;
4189
4190
  this.isCollapseAll = false;
4191
+ this.freezeColumnRefresh = true;
4190
4192
  this.keyConfigs = {
4191
4193
  ctrlDownArrow: 'ctrl+downarrow',
4192
4194
  ctrlUpArrow: 'ctrl+uparrow',
@@ -4229,6 +4231,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4229
4231
  TreeGrid.prototype.requiredModules = function () {
4230
4232
  var modules = [];
4231
4233
  var splitFrozenCount = 'splitFrozenCount';
4234
+ var mergedColumns = 'mergedColumns';
4235
+ if (this["" + mergedColumns]) {
4236
+ this.grid["" + mergedColumns] = this["" + mergedColumns];
4237
+ }
4232
4238
  if (isNullOrUndefined(this['changedProperties'].columns)) {
4233
4239
  this.grid["" + splitFrozenCount](this.getColumns());
4234
4240
  }
@@ -6447,14 +6453,30 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6447
6453
  };
6448
6454
  TreeGrid.prototype.setFrozenCount = function () {
6449
6455
  var persist3 = 'setFrozenCount';
6450
- this.grid["" + persist3].apply(this.grid);
6456
+ this.grid["" + persist3].apply(this);
6451
6457
  };
6452
6458
  TreeGrid.prototype.splitFrozenCount = function (columns) {
6453
6459
  var persist4 = 'splitFrozenCount';
6454
- this.grid["" + persist4].apply(this.grid, [columns]);
6460
+ var instance = this.frozenColumns > 0 ? this.grid : this;
6461
+ this.grid["" + persist4].apply(instance, [columns]);
6462
+ };
6463
+ TreeGrid.prototype.removeBorder = function (columns) {
6464
+ var persist5 = 'removeBorder';
6465
+ this.grid["" + persist5].apply(this.grid, [columns]);
6466
+ };
6467
+ TreeGrid.prototype.frozenLeftBorderColumns = function (columns) {
6468
+ var persist6 = 'frozenLeftBorderColumns';
6469
+ this.grid["" + persist6].apply(this.grid, [columns]);
6470
+ };
6471
+ TreeGrid.prototype.frozenRightBorderColumns = function (columns) {
6472
+ var persist7 = 'frozenRightBorderColumns';
6473
+ this.grid["" + persist7].apply(this.grid, [columns]);
6455
6474
  };
6456
6475
  TreeGrid.prototype.isFrozenGrid = function () {
6457
- return this.grid.isFrozenGrid();
6476
+ var hasFreezeProp = Array.isArray(this.columns) &&
6477
+ this.columns.some(function (col) { return !!col.freeze; });
6478
+ return (this.frozenColumns > 0 || this.frozenRows > 0 || this.getFrozenColumns() > 0 ||
6479
+ hasFreezeProp);
6458
6480
  };
6459
6481
  TreeGrid.prototype.updateTreeGridModel = function () {
6460
6482
  this.setProperties({ filterSettings: getObject('properties', this.grid.filterSettings) }, true);