@recursyve/nice-data-filter-kit 14.3.3 → 14.3.4
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/nice-filter-view/directives/query-params.directive.mjs +5 -2
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +5 -3
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +5 -3
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +8 -3
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3053,8 +3053,10 @@ class NiceFilterViewService {
|
|
|
3053
3053
|
const { filterParameters } = this.store.getValue();
|
|
3054
3054
|
const newRules = {
|
|
3055
3055
|
order: filterParameters.order,
|
|
3056
|
+
fallbackOrder: filterParameters.fallbackOrder,
|
|
3056
3057
|
start: 0,
|
|
3057
3058
|
length: filterParameters.length,
|
|
3059
|
+
data: filterParameters.data,
|
|
3058
3060
|
rules
|
|
3059
3061
|
};
|
|
3060
3062
|
this.setParameters(newRules);
|
|
@@ -3078,7 +3080,7 @@ class NiceFilterViewService {
|
|
|
3078
3080
|
// Array replace
|
|
3079
3081
|
newRules = [
|
|
3080
3082
|
...currentQuery.rules.slice(0, currentQuery.rules.indexOf(oldRule)),
|
|
3081
|
-
|
|
3083
|
+
rule,
|
|
3082
3084
|
...currentQuery.rules.slice(currentQuery.rules.indexOf(oldRule) + 1, currentQuery.rules.length)
|
|
3083
3085
|
];
|
|
3084
3086
|
}
|
|
@@ -3087,7 +3089,7 @@ class NiceFilterViewService {
|
|
|
3087
3089
|
}
|
|
3088
3090
|
}
|
|
3089
3091
|
else {
|
|
3090
|
-
newRules = [...newRules,
|
|
3092
|
+
newRules = [...newRules, rule];
|
|
3091
3093
|
}
|
|
3092
3094
|
this.setRules({
|
|
3093
3095
|
condition: currentQuery.condition,
|
|
@@ -4314,7 +4316,10 @@ class NiceFilterQueryParamsDirective {
|
|
|
4314
4316
|
const { filterParameters, filterResult } = this.query.getValue();
|
|
4315
4317
|
if (FilterUtils.filterChangeNeedsRefresh(filterParameters, params) ||
|
|
4316
4318
|
!filterResult) {
|
|
4317
|
-
this.service.setParameters(
|
|
4319
|
+
this.service.setParameters({
|
|
4320
|
+
...params,
|
|
4321
|
+
fallbackOrder: filterParameters.fallbackOrder
|
|
4322
|
+
});
|
|
4318
4323
|
}
|
|
4319
4324
|
if (!this._initialized) {
|
|
4320
4325
|
this._initialized = true;
|