@smartsoft001/crud-shell-angular 1.1.631 → 1.1.636

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.
@@ -2049,13 +2049,25 @@
2049
2049
  case 0: return [4 /*yield*/, this.pageService.checkPermissions()];
2050
2050
  case 1:
2051
2051
  _h.sent();
2052
- this.facade.read({
2053
- paginationMode: this.config.list.paginationMode,
2054
- limit: this.config.pagination ? this.config.pagination.limit : null,
2055
- offset: this.config.pagination ? 0 : null,
2056
- sortBy: this.config.sort ? this.config.sort["default"] : null,
2057
- sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null,
2058
- });
2052
+ if (this.config.list.resetQuery === 'beforeInit') {
2053
+ this.facade.read({
2054
+ query: __spreadArray([], __read(this.config.baseQuery)),
2055
+ paginationMode: this.config.list.paginationMode,
2056
+ limit: this.config.pagination ? this.config.pagination.limit : null,
2057
+ offset: this.config.pagination ? 0 : null,
2058
+ sortBy: this.config.sort ? this.config.sort["default"] : null,
2059
+ sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null,
2060
+ });
2061
+ }
2062
+ else {
2063
+ this.facade.read({
2064
+ paginationMode: this.config.list.paginationMode,
2065
+ limit: this.config.pagination ? this.config.pagination.limit : null,
2066
+ offset: this.config.pagination ? 0 : null,
2067
+ sortBy: this.config.sort ? this.config.sort["default"] : null,
2068
+ sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null,
2069
+ });
2070
+ }
2059
2071
  endButtons = this.getEndButtons();
2060
2072
  this.pageOptions = {
2061
2073
  title: this.config.title,