@churchillliving/se-ui-toolkit 6.53.494 → 6.53.495
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 +6 -6
- package/esm2015/lib/models/grid.model.js +1 -1
- package/esm2015/lib/services/grid.service.js +2 -1
- package/fesm2015/churchillliving-se-ui-toolkit.js +6 -5
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/models/grid.model.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2814,6 +2814,7 @@
|
|
|
2814
2814
|
}
|
|
2815
2815
|
}
|
|
2816
2816
|
var column = {
|
|
2817
|
+
allowToggle: columnInfo.allowToggle || false,
|
|
2817
2818
|
allowSearch: columnInfo.allowSearch,
|
|
2818
2819
|
allowAutoCompleteSave: columnInfo.allowAutoCompleteSave,
|
|
2819
2820
|
uniqueKey: columnInfo.uniqueKey,
|
|
@@ -4194,7 +4195,7 @@
|
|
|
4194
4195
|
};
|
|
4195
4196
|
GridComponent.prototype.ngOnChanges = function (change) {
|
|
4196
4197
|
var _this = this;
|
|
4197
|
-
var _a, _b, _c, _d, _e, _f;
|
|
4198
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
4198
4199
|
if (!this.isCheckBoxChangeEventCalled) {
|
|
4199
4200
|
if (this.allowCaching !== false && this.pagination) {
|
|
4200
4201
|
this.allowCaching = this.pagination;
|
|
@@ -4208,14 +4209,14 @@
|
|
|
4208
4209
|
}
|
|
4209
4210
|
var hasColumns = this.columns && this.columns.length > 0;
|
|
4210
4211
|
if (hasColumns) {
|
|
4211
|
-
this.columns = this.gridService.setColumnFields(this.columns);
|
|
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
4213
|
}
|
|
4213
4214
|
this.roles = this.authService.getUserRoles();
|
|
4214
4215
|
// apply user role permissions on grid columns
|
|
4215
4216
|
this.applyColumnsPermissions();
|
|
4216
4217
|
// apply global permissions on entire grid
|
|
4217
4218
|
this.applyGridPermissions();
|
|
4218
|
-
this._selectedColumns = (
|
|
4219
|
+
this._selectedColumns = (_d = this.columns) === null || _d === void 0 ? void 0 : _d.filter(function (x) { return !x.hidden || x.allowToggle; });
|
|
4219
4220
|
this.cd.detectChanges();
|
|
4220
4221
|
if (hasColumns) {
|
|
4221
4222
|
this.columns = this.gridService.setColumnFields(this.columns);
|
|
@@ -4339,7 +4340,7 @@
|
|
|
4339
4340
|
}
|
|
4340
4341
|
});
|
|
4341
4342
|
// Searching scenario
|
|
4342
|
-
if (((
|
|
4343
|
+
if (((_e = change.rows) === null || _e === void 0 ? void 0 : _e.currentValue) && ((_f = change.columns) === null || _f === void 0 ? void 0 : _f.currentValue)) {
|
|
4343
4344
|
// Checks either column value is changes (i.e., column hidden scenario)
|
|
4344
4345
|
if (JSON.stringify(change.columns.currentValue).toLowerCase() !==
|
|
4345
4346
|
JSON.stringify(this.columns).toLowerCase()) {
|
|
@@ -4381,7 +4382,7 @@
|
|
|
4381
4382
|
if (globalSearchbtn) {
|
|
4382
4383
|
this.searchGridFilter = false;
|
|
4383
4384
|
}
|
|
4384
|
-
if (((
|
|
4385
|
+
if (((_g = this.rowsData) === null || _g === void 0 ? void 0 : _g.length) > 0 && this.generateRowsDataCopy) {
|
|
4385
4386
|
this.rowsDataCopy = JSON.parse(JSON.stringify(this.rowsData));
|
|
4386
4387
|
}
|
|
4387
4388
|
}
|