@recursyve/nice-data-filter-kit 14.1.0 → 14.1.2
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/components/infinite-scroll-data-view/infinite-scroll-data-view.component.mjs +2 -2
- package/esm2020/lib/components/nice-filter-view/nice-filter-view.constant.mjs +2 -1
- package/esm2020/lib/components/nice-filter-view/nice-filter-view.module.mjs +6 -2
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +1 -1
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.store.mjs +11 -14
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +15 -11
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +14 -10
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/nice-filter-view/nice-filter-view.constant.d.ts +1 -0
- package/lib/components/nice-filter-view/nice-filter-view.module.d.ts +2 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.service.d.ts +1 -1
- package/lib/components/nice-filter-view/store/nice-filter-view.store.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2752,6 +2752,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
2752
2752
|
const EXPORTS_SETTINGS = new InjectionToken("exports_settings");
|
|
2753
2753
|
const FILTER_VIEW_ICONS = new InjectionToken("filter_view_icons");
|
|
2754
2754
|
const FILTER_VIEW_STATE = new InjectionToken("filter_view_state");
|
|
2755
|
+
const FILTER_VIEW_STORE = new InjectionToken("filter_view_store");
|
|
2755
2756
|
|
|
2756
2757
|
const initialValue = {
|
|
2757
2758
|
subStates: {},
|
|
@@ -2773,12 +2774,12 @@ const initialValue = {
|
|
|
2773
2774
|
queryParams: null,
|
|
2774
2775
|
resetResult: false
|
|
2775
2776
|
};
|
|
2776
|
-
|
|
2777
|
-
constructor(state) {
|
|
2777
|
+
class NiceFilterViewStore extends EntityStore {
|
|
2778
|
+
constructor(state, store) {
|
|
2778
2779
|
super({
|
|
2779
2780
|
...initialValue,
|
|
2780
2781
|
...state
|
|
2781
|
-
});
|
|
2782
|
+
}, store);
|
|
2782
2783
|
}
|
|
2783
2784
|
setFilterConfigLoading(loading) {
|
|
2784
2785
|
this.update({ filterConfigLoading: loading });
|
|
@@ -2852,18 +2853,17 @@ let NiceFilterViewStore = class NiceFilterViewStore extends EntityStore {
|
|
|
2852
2853
|
});
|
|
2853
2854
|
this.remove(value[key]);
|
|
2854
2855
|
}
|
|
2855
|
-
}
|
|
2856
|
-
NiceFilterViewStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceFilterViewStore, deps: [{ token: FILTER_VIEW_STATE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2856
|
+
}
|
|
2857
|
+
NiceFilterViewStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceFilterViewStore, deps: [{ token: FILTER_VIEW_STATE }, { token: FILTER_VIEW_STORE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2857
2858
|
NiceFilterViewStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceFilterViewStore });
|
|
2858
|
-
NiceFilterViewStore = __decorate([
|
|
2859
|
-
StoreConfig({ name: "nice-filter-view", resettable: true }),
|
|
2860
|
-
__metadata("design:paramtypes", [Object])
|
|
2861
|
-
], NiceFilterViewStore);
|
|
2862
2859
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceFilterViewStore, decorators: [{
|
|
2863
2860
|
type: Injectable
|
|
2864
2861
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2865
2862
|
type: Inject,
|
|
2866
2863
|
args: [FILTER_VIEW_STATE]
|
|
2864
|
+
}] }, { type: undefined, decorators: [{
|
|
2865
|
+
type: Inject,
|
|
2866
|
+
args: [FILTER_VIEW_STORE]
|
|
2867
2867
|
}] }]; } });
|
|
2868
2868
|
|
|
2869
2869
|
class NiceFilterViewQuery extends QueryEntity {
|
|
@@ -3229,7 +3229,7 @@ class NiceFilterInfiniteScrollDataViewComponent {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
async loadNextPage() {
|
|
3231
3231
|
const { filterParameters } = this.query.getValue();
|
|
3232
|
-
this.service.setMode("
|
|
3232
|
+
this.service.setMode("accumulated");
|
|
3233
3233
|
await this.service.setParameters({
|
|
3234
3234
|
...filterParameters,
|
|
3235
3235
|
start: filterParameters.start + filterParameters.length
|
|
@@ -3602,6 +3602,10 @@ class NiceFilterViewModule {
|
|
|
3602
3602
|
{
|
|
3603
3603
|
provide: FILTER_VIEW_STATE,
|
|
3604
3604
|
useValue: options.state ?? {}
|
|
3605
|
+
},
|
|
3606
|
+
{
|
|
3607
|
+
provide: FILTER_VIEW_STORE,
|
|
3608
|
+
useValue: options.store ?? { name: "nice-filter-view", resettable: true }
|
|
3605
3609
|
}
|
|
3606
3610
|
].filter(x => !!x);
|
|
3607
3611
|
}
|