@smartsoft001/crud-shell-angular 1.1.688 → 1.1.689
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/smartsoft001-crud-shell-angular.umd.js +8 -4
- package/bundles/smartsoft001-crud-shell-angular.umd.js.map +1 -1
- package/esm2015/lib/pages/list/list.component.js +9 -4
- package/fesm2015/smartsoft001-crud-shell-angular.js +7 -3
- package/fesm2015/smartsoft001-crud-shell-angular.js.map +1 -1
- package/lib/pages/list/list.component.d.ts.map +1 -1
- package/package.json +6 -6
- package/smartsoft001-crud-shell-angular.metadata.json +1 -1
|
@@ -2202,19 +2202,23 @@
|
|
|
2202
2202
|
ListComponent.prototype.ngOnInit = function () {
|
|
2203
2203
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2204
2204
|
return __awaiter(this, void 0, void 0, function () {
|
|
2205
|
-
var endButtons, compiledComponents, _h, _j;
|
|
2205
|
+
var newFilter, endButtons, compiledComponents, _h, _j;
|
|
2206
2206
|
var _this = this;
|
|
2207
2207
|
return __generator(this, function (_k) {
|
|
2208
2208
|
switch (_k.label) {
|
|
2209
2209
|
case 0: return [4 /*yield*/, this.pageService.checkPermissions()];
|
|
2210
2210
|
case 1:
|
|
2211
2211
|
_k.sent();
|
|
2212
|
+
newFilter = null;
|
|
2212
2213
|
if (((_a = this.config.list) === null || _a === void 0 ? void 0 : _a.resetQuery) === 'beforeInit') {
|
|
2213
|
-
|
|
2214
|
+
newFilter = Object.assign({ query: this.config.baseQuery ? __spreadArray([], __read(this.config.baseQuery)) : [], paginationMode: this.config.list.paginationMode, limit: this.config.pagination ? this.config.pagination.limit : null, offset: this.config.pagination ? 0 : null, sortBy: this.config.sort ? this.config.sort["default"] : null, sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null }, this.searchService.filter);
|
|
2214
2215
|
}
|
|
2215
2216
|
else {
|
|
2216
|
-
|
|
2217
|
-
? this.searchService.filter.offset : this.config.pagination ? 0 : null, sortBy: ((_e = this.searchService.filter) === null || _e === void 0 ? void 0 : _e.sortBy) ? this.searchService.filter.sortBy : this.config.sort ? this.config.sort["default"] : null, sortDesc: ((_f = this.searchService.filter) === null || _f === void 0 ? void 0 : _f.sortDesc) ? this.searchService.filter.sortDesc : this.config.sort ? this.config.sort["defaultDesc"] : null }, this.searchService.filter)
|
|
2217
|
+
newFilter = Object.assign({ paginationMode: this.config.list.paginationMode, limit: ((_b = this.searchService.filter) === null || _b === void 0 ? void 0 : _b.limit) ? this.searchService.filter.limit : this.config.pagination ? this.config.pagination.limit : null, offset: ((_c = this.searchService.filter) === null || _c === void 0 ? void 0 : _c.offset) || ((_d = this.searchService.filter) === null || _d === void 0 ? void 0 : _d.offset) === 0
|
|
2218
|
+
? this.searchService.filter.offset : this.config.pagination ? 0 : null, sortBy: ((_e = this.searchService.filter) === null || _e === void 0 ? void 0 : _e.sortBy) ? this.searchService.filter.sortBy : this.config.sort ? this.config.sort["default"] : null, sortDesc: ((_f = this.searchService.filter) === null || _f === void 0 ? void 0 : _f.sortDesc) ? this.searchService.filter.sortDesc : this.config.sort ? this.config.sort["defaultDesc"] : null }, this.searchService.filter);
|
|
2219
|
+
}
|
|
2220
|
+
if (!this.searchService.filter || !___namespace.isEqual(newFilter, this.searchService.filter)) {
|
|
2221
|
+
this.facade.read(newFilter);
|
|
2218
2222
|
}
|
|
2219
2223
|
endButtons = this.getEndButtons();
|
|
2220
2224
|
this.pageOptions = {
|