@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.
- package/bundles/churchillliving-se-ui-toolkit.umd.js +6 -5
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +7 -6
- package/fesm2015/churchillliving-se-ui-toolkit.js +6 -5
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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(
|
|
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 = (
|
|
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 (((
|
|
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 (((
|
|
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
|
}
|