@smartsoft001/crud-shell-angular 1.1.691 → 1.1.695
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 +5 -4
- package/bundles/smartsoft001-crud-shell-angular.umd.js.map +1 -1
- package/esm2015/lib/pages/list/list.component.js +6 -6
- package/fesm2015/smartsoft001-crud-shell-angular.js +5 -4
- package/fesm2015/smartsoft001-crud-shell-angular.js.map +1 -1
- package/lib/crud.module.ngfactory.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -2213,16 +2213,17 @@
|
|
|
2213
2213
|
if (((_a = this.config.list) === null || _a === void 0 ? void 0 : _a.resetQuery) === 'beforeInit') {
|
|
2214
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);
|
|
2215
2215
|
}
|
|
2216
|
+
else if (this.filter) {
|
|
2217
|
+
newFilter = this.filter;
|
|
2218
|
+
}
|
|
2216
2219
|
else {
|
|
2217
2220
|
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
|
|
2218
2221
|
? 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
|
|
2219
2222
|
? 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
|
|
2220
2223
|
? 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
|
|
2221
|
-
? this.config.sort["defaultDesc"] : null, query: ((_g = this.searchService.filter) === null || _g === void 0 ? void 0 : _g.query) ? this.searchService : [] }, this.searchService.filter);
|
|
2222
|
-
}
|
|
2223
|
-
if (!this.searchService.filter || !___namespace.isEqual(newFilter, this.filter)) {
|
|
2224
|
-
this.facade.read(newFilter);
|
|
2224
|
+
? this.config.sort["defaultDesc"] : null, query: ((_g = this.searchService.filter) === null || _g === void 0 ? void 0 : _g.query) ? this.searchService.filter : [] }, this.searchService.filter);
|
|
2225
2225
|
}
|
|
2226
|
+
this.facade.read(newFilter);
|
|
2226
2227
|
endButtons = this.getEndButtons();
|
|
2227
2228
|
this.pageOptions = {
|
|
2228
2229
|
title: this.config.title,
|