@churchillliving/se-ui-toolkit 6.53.496 → 6.53.497

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.
@@ -4195,7 +4195,7 @@
4195
4195
  };
4196
4196
  GridComponent.prototype.ngOnChanges = function (change) {
4197
4197
  var _this = this;
4198
- var _a, _b, _c, _d, _e, _f, _g;
4198
+ var _a, _b, _c, _d, _e, _f;
4199
4199
  if (!this.isCheckBoxChangeEventCalled) {
4200
4200
  if (this.allowCaching !== false && this.pagination) {
4201
4201
  this.allowCaching = this.pagination;
@@ -4209,14 +4209,15 @@
4209
4209
  }
4210
4210
  var hasColumns = this.columns && this.columns.length > 0;
4211
4211
  if (hasColumns) {
4212
- this.columns = this.gridService.setColumnFields((_c = this.columns) === null || _c === void 0 ? void 0 : _c.filter(function (x) { return (!x.hidden || x.allowToggle); }));
4212
+ this.columns = this.gridService.setColumnFields(this.columns);
4213
+ // this.columns = this.gridService.setColumnFields(this.columns?.filter((x) => (!x.hidden || x.allowToggle)));
4213
4214
  }
4214
4215
  this.roles = this.authService.getUserRoles();
4215
4216
  // apply user role permissions on grid columns
4216
4217
  this.applyColumnsPermissions();
4217
4218
  // apply global permissions on entire grid
4218
4219
  this.applyGridPermissions();
4219
- this._selectedColumns = (_d = this.columns) === null || _d === void 0 ? void 0 : _d.filter(function (x) { return !x.hidden || x.allowToggle; });
4220
+ this._selectedColumns = (_c = this.columns) === null || _c === void 0 ? void 0 : _c.filter(function (x) { return !x.hidden; }); // || x.allowToggle);
4220
4221
  this.cd.detectChanges();
4221
4222
  if (hasColumns) {
4222
4223
  this.columns = this.gridService.setColumnFields(this.columns);
@@ -4340,7 +4341,7 @@
4340
4341
  }
4341
4342
  });
4342
4343
  // Searching scenario
4343
- if (((_e = change.rows) === null || _e === void 0 ? void 0 : _e.currentValue) && ((_f = change.columns) === null || _f === void 0 ? void 0 : _f.currentValue)) {
4344
+ if (((_d = change.rows) === null || _d === void 0 ? void 0 : _d.currentValue) && ((_e = change.columns) === null || _e === void 0 ? void 0 : _e.currentValue)) {
4344
4345
  // Checks either column value is changes (i.e., column hidden scenario)
4345
4346
  if (JSON.stringify(change.columns.currentValue).toLowerCase() !==
4346
4347
  JSON.stringify(this.columns).toLowerCase()) {
@@ -4382,7 +4383,7 @@
4382
4383
  if (globalSearchbtn) {
4383
4384
  this.searchGridFilter = false;
4384
4385
  }
4385
- if (((_g = this.rowsData) === null || _g === void 0 ? void 0 : _g.length) > 0 && this.generateRowsDataCopy) {
4386
+ if (((_f = this.rowsData) === null || _f === void 0 ? void 0 : _f.length) > 0 && this.generateRowsDataCopy) {
4386
4387
  this.rowsDataCopy = JSON.parse(JSON.stringify(this.rowsData));
4387
4388
  }
4388
4389
  }