@recursyve/nice-data-filter-kit 13.0.13 → 13.0.14
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/esm2020/lib/components/base-list/store/base-list.service.mjs +9 -5
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +11 -9
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +8 -4
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/base-list/store/base-list.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -978,7 +978,7 @@ class NiceBaseListService {
|
|
|
978
978
|
start: filterParameters.start + filterParameters.length
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
|
-
|
|
981
|
+
resetPaging() {
|
|
982
982
|
const { filterParameters } = this.store.getValue();
|
|
983
983
|
this.store.setParameters({
|
|
984
984
|
...filterParameters,
|
|
@@ -1058,13 +1058,16 @@ class NiceBaseListService {
|
|
|
1058
1058
|
defaultRules: rule
|
|
1059
1059
|
});
|
|
1060
1060
|
}
|
|
1061
|
-
async updateGlobalRules(rules, updateQueryParams = true) {
|
|
1061
|
+
async updateGlobalRules(rules, updateQueryParams = true, reset = true) {
|
|
1062
1062
|
const { filterParameters } = this.store.getValue();
|
|
1063
1063
|
const newRules = {
|
|
1064
1064
|
...filterParameters,
|
|
1065
1065
|
rules
|
|
1066
1066
|
};
|
|
1067
|
-
|
|
1067
|
+
if (reset) {
|
|
1068
|
+
this.resetPaging();
|
|
1069
|
+
}
|
|
1070
|
+
await this.loadData(newRules, updateQueryParams, reset);
|
|
1068
1071
|
}
|
|
1069
1072
|
addRuleFromConfig(config) {
|
|
1070
1073
|
const { filterParameters } = this.store.getValue();
|
|
@@ -1078,7 +1081,8 @@ class NiceBaseListService {
|
|
|
1078
1081
|
this.store.update({
|
|
1079
1082
|
showQueryBuilder: true
|
|
1080
1083
|
});
|
|
1081
|
-
this.
|
|
1084
|
+
this.resetPaging();
|
|
1085
|
+
this.loadData(newRules, true, true);
|
|
1082
1086
|
}
|
|
1083
1087
|
updateRules(rules) {
|
|
1084
1088
|
const { filterParameters } = this.store.getValue();
|