@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.
@@ -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
  }
@@ -4656,6 +4662,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4656
4662
  this.grid.pagerTemplate = this.pagerTemplate;
4657
4663
  this.grid.showColumnMenu = this.showColumnMenu;
4658
4664
  this.grid.allowSorting = this.allowSorting;
4665
+ this.grid.allowMultiSorting = this.allowMultiSorting;
4659
4666
  this.grid.allowFiltering = this.allowFiltering;
4660
4667
  this.grid.enableVirtualization = this.enableVirtualization;
4661
4668
  this.grid.enableColumnVirtualization = this.enableColumnVirtualization;
@@ -6442,20 +6449,34 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6442
6449
  };
6443
6450
  TreeGrid.prototype.mergeColumns = function (storedColumn, columns) {
6444
6451
  var persist2 = 'mergeColumns';
6445
- var mergedColumns = 'mergedColumns';
6446
6452
  this.grid["" + persist2].apply(this, [storedColumn, columns]);
6447
- this.grid["" + mergedColumns] = true;
6448
6453
  };
6449
6454
  TreeGrid.prototype.setFrozenCount = function () {
6450
6455
  var persist3 = 'setFrozenCount';
6451
- this.grid["" + persist3].apply(this.grid);
6456
+ this.grid["" + persist3].apply(this);
6452
6457
  };
6453
6458
  TreeGrid.prototype.splitFrozenCount = function (columns) {
6454
6459
  var persist4 = 'splitFrozenCount';
6455
- 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]);
6456
6474
  };
6457
6475
  TreeGrid.prototype.isFrozenGrid = function () {
6458
- return this.grid.isFrozenGrid.apply(this);
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);
6459
6480
  };
6460
6481
  TreeGrid.prototype.updateTreeGridModel = function () {
6461
6482
  this.setProperties({ filterSettings: getObject('properties', this.grid.filterSettings) }, true);