@recursyve/nice-data-filter-kit 12.1.25 → 12.1.26
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/recursyve-nice-data-filter-kit.umd.js +10 -4
- package/bundles/recursyve-nice-data-filter-kit.umd.js.map +1 -1
- package/esm2015/lib/components/base-list/store/base-list.service.js +6 -3
- package/esm2015/lib/components/base-list/store/base-list.store.js +3 -3
- package/fesm2015/recursyve-nice-data-filter-kit.js +7 -4
- package/fesm2015/recursyve-nice-data-filter-kit.js.map +1 -1
- package/lib/components/base-list/store/base-list.service.d.ts +2 -1
- package/lib/components/base-list/store/base-list.store.d.ts +1 -1
- package/package.json +1 -1
|
@@ -953,9 +953,10 @@
|
|
|
953
953
|
filterConfigLoading: loading
|
|
954
954
|
});
|
|
955
955
|
};
|
|
956
|
-
NiceBaseListStore.prototype.setResult = function (filterResult) {
|
|
956
|
+
NiceBaseListStore.prototype.setResult = function (filterResult, reset) {
|
|
957
|
+
if (reset === void 0) { reset = false; }
|
|
957
958
|
var mergePageResults = this.getValue().mergePageResults;
|
|
958
|
-
if (mergePageResults) {
|
|
959
|
+
if (mergePageResults && !reset) {
|
|
959
960
|
this.update(function (state) {
|
|
960
961
|
var _a, _b;
|
|
961
962
|
return ({
|
|
@@ -1235,8 +1236,13 @@
|
|
|
1235
1236
|
_this.queryParamsLoaded$.next();
|
|
1236
1237
|
});
|
|
1237
1238
|
};
|
|
1238
|
-
NiceBaseListService.prototype.
|
|
1239
|
+
NiceBaseListService.prototype.resetAndLoadData = function (parameters, updateQueryParams) {
|
|
1239
1240
|
if (updateQueryParams === void 0) { updateQueryParams = true; }
|
|
1241
|
+
this.loadData(parameters, updateQueryParams, true);
|
|
1242
|
+
};
|
|
1243
|
+
NiceBaseListService.prototype.loadData = function (parameters, updateQueryParams, reset) {
|
|
1244
|
+
if (updateQueryParams === void 0) { updateQueryParams = true; }
|
|
1245
|
+
if (reset === void 0) { reset = false; }
|
|
1240
1246
|
return __awaiter(this, void 0, void 0, function () {
|
|
1241
1247
|
var disabled, filterParameters, result, e_2;
|
|
1242
1248
|
return __generator(this, function (_b) {
|
|
@@ -1253,7 +1259,7 @@
|
|
|
1253
1259
|
return [4 /*yield*/, this.filterService.filter(this.getParameters(filterParameters)).toPromise()];
|
|
1254
1260
|
case 2:
|
|
1255
1261
|
result = _b.sent();
|
|
1256
|
-
this.store.setResult(result);
|
|
1262
|
+
this.store.setResult(result, reset);
|
|
1257
1263
|
_b.label = 3;
|
|
1258
1264
|
case 3:
|
|
1259
1265
|
if (filterParameters) {
|