@churchillliving/se-ui-toolkit 6.53.191 → 6.53.193

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()) {
@@ -4039,26 +4039,26 @@
4039
4039
  }
4040
4040
  });
4041
4041
  }
4042
- setTimeout(function () {
4043
- var _a, _b;
4044
- var classElement = document.getElementsByClassName('highlighted-row');
4045
- if (classElement.length > 0) {
4046
- classElement[0].scrollIntoView();
4047
- }
4048
- if (_this.editAllRows && ((_a = _this.rowsData) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_b = _this.columns) === null || _b === void 0 ? void 0 : _b.length) > 0) {
4049
- _this.editAllRowsAtOnce();
4050
- }
4051
- }, 500);
4052
4042
  }
4053
4043
  this.setDropdowndataValue = true;
4054
4044
  var globalSearchbtn = document.getElementById('globalSearchbtn');
4055
4045
  if (globalSearchbtn) {
4056
4046
  this.searchGridFilter = false;
4057
4047
  }
4058
- if (((_f = this.rowsData) === null || _f === void 0 ? void 0 : _f.length) > 0) {
4048
+ if (((_g = this.rowsData) === null || _g === void 0 ? void 0 : _g.length) > 0) {
4059
4049
  this.rowsDataCopy = JSON.parse(JSON.stringify(this.rowsData));
4060
4050
  }
4061
4051
  }
4052
+ setTimeout(function () {
4053
+ var _a, _b;
4054
+ var classElement = document.getElementsByClassName('highlighted-row');
4055
+ if (classElement.length > 0) {
4056
+ classElement[0].scrollIntoView();
4057
+ }
4058
+ if (_this.editAllRows && ((_a = _this.rowsData) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_b = _this.columns) === null || _b === void 0 ? void 0 : _b.length) > 0) {
4059
+ _this.editAllRowsAtOnce();
4060
+ }
4061
+ }, 500);
4062
4062
  };
4063
4063
  // set DisplayText when value is in curly brackets.
4064
4064
  GridComponent.prototype.setDisplayTextValue = function (column) {