@churchillliving/se-ui-toolkit 6.53.191 → 6.53.192

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.
@@ -3870,13 +3870,13 @@
3870
3870
  };
3871
3871
  GridComponent.prototype.ngOnChanges = function (change) {
3872
3872
  var _this = this;
3873
- var _a, _b, _c, _d, _e, _f;
3874
- if (change.columns) {
3873
+ var _a, _b, _c, _d, _e, _f, _g;
3874
+ if (!((_a = this.rowsData) === null || _a === void 0 ? void 0 : _a.length) || change.columns) {
3875
3875
  if (this.allowCaching !== false && this.pagination) {
3876
3876
  this.allowCaching = this.pagination;
3877
3877
  }
3878
- else if ((_a = this.componentTableRef) === null || _a === void 0 ? void 0 : _a.id) {
3879
- localStorage.removeItem('SetFilters-' + ((_b = this.componentTableRef) === null || _b === void 0 ? void 0 : _b.id) + currentUrl());
3878
+ else if ((_b = this.componentTableRef) === null || _b === void 0 ? void 0 : _b.id) {
3879
+ localStorage.removeItem('SetFilters-' + ((_c = this.componentTableRef) === null || _c === void 0 ? void 0 : _c.id) + currentUrl());
3880
3880
  }
3881
3881
  // add defaultRow in pagination array
3882
3882
  if (!this.setPaginationLength.includes(this.defaultRows)) {
@@ -3891,7 +3891,7 @@
3891
3891
  this.applyColumnsPermissions();
3892
3892
  // apply global permissions on entire grid
3893
3893
  this.applyGridPermissions();
3894
- this._selectedColumns = (_c = this.columns) === null || _c === void 0 ? void 0 : _c.filter(function (x) { return !x.hidden; });
3894
+ this._selectedColumns = (_d = this.columns) === null || _d === void 0 ? void 0 : _d.filter(function (x) { return !x.hidden; });
3895
3895
  this.cd.detectChanges();
3896
3896
  if (hasColumns) {
3897
3897
  this.columns = this.gridService.setColumnFields(this.columns);
@@ -4013,7 +4013,7 @@
4013
4013
  }
4014
4014
  });
4015
4015
  // Searching scenario
4016
- if (((_d = change.rows) === null || _d === void 0 ? void 0 : _d.currentValue) && ((_e = change.columns) === null || _e === void 0 ? void 0 : _e.currentValue)) {
4016
+ if (((_e = change.rows) === null || _e === void 0 ? void 0 : _e.currentValue) && ((_f = change.columns) === null || _f === void 0 ? void 0 : _f.currentValue)) {
4017
4017
  // Checks either column value is changes (i.e., column hidden scenario)
4018
4018
  if (JSON.stringify(change.columns.currentValue).toLowerCase() !==
4019
4019
  JSON.stringify(this.columns).toLowerCase()) {
@@ -4055,7 +4055,7 @@
4055
4055
  if (globalSearchbtn) {
4056
4056
  this.searchGridFilter = false;
4057
4057
  }
4058
- if (((_f = this.rowsData) === null || _f === void 0 ? void 0 : _f.length) > 0) {
4058
+ if (((_g = this.rowsData) === null || _g === void 0 ? void 0 : _g.length) > 0) {
4059
4059
  this.rowsDataCopy = JSON.parse(JSON.stringify(this.rowsData));
4060
4060
  }
4061
4061
  }