@recursyve/nice-data-filter-kit 13.0.7 → 13.0.8
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/base-list.constant.mjs +2 -1
- package/esm2020/lib/components/base-list/base-list.module.mjs +6 -2
- package/esm2020/lib/components/base-list/store/base-list.store.mjs +12 -6
- package/esm2020/lib/components/multi-state-list/store/multi-state-list.store.mjs +2 -2
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +15 -5
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +16 -5
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/base-list/base-list.constant.d.ts +1 -0
- package/lib/components/base-list/base-list.module.d.ts +2 -0
- package/lib/components/base-list/store/base-list.store.d.ts +2 -2
- package/package.json +1 -1
|
@@ -583,6 +583,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
583
583
|
}], ctorParameters: function () { return [{ type: NiceSavedReportsApi }]; } });
|
|
584
584
|
|
|
585
585
|
const BASE_LIST_LAYOUT = new InjectionToken("base_list_layout");
|
|
586
|
+
const DEFAULT_RULES = new InjectionToken("default_rules");
|
|
586
587
|
const DEFAULT_PARAMETERS = new InjectionToken("default_parameters");
|
|
587
588
|
const LIST_TABLE = new InjectionToken("list_table");
|
|
588
589
|
const TABLE_COLUMNS = new InjectionToken("table_columns");
|
|
@@ -608,13 +609,14 @@ const initialBaseListState = {
|
|
|
608
609
|
defaultRules: []
|
|
609
610
|
};
|
|
610
611
|
let NiceBaseListStore = class NiceBaseListStore extends Store {
|
|
611
|
-
constructor(parameters) {
|
|
612
|
+
constructor(parameters, defaultRules) {
|
|
612
613
|
super({
|
|
613
614
|
...initialBaseListState,
|
|
614
615
|
filterParameters: {
|
|
615
616
|
...initialBaseListState.filterParameters,
|
|
616
617
|
...(parameters ?? {})
|
|
617
|
-
}
|
|
618
|
+
},
|
|
619
|
+
defaultRules
|
|
618
620
|
});
|
|
619
621
|
}
|
|
620
622
|
setFilterConfigLoading(loading) {
|
|
@@ -649,11 +651,11 @@ let NiceBaseListStore = class NiceBaseListStore extends Store {
|
|
|
649
651
|
});
|
|
650
652
|
}
|
|
651
653
|
};
|
|
652
|
-
NiceBaseListStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceBaseListStore, deps: [{ token: DEFAULT_PARAMETERS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
654
|
+
NiceBaseListStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceBaseListStore, deps: [{ token: DEFAULT_PARAMETERS, optional: true }, { token: DEFAULT_RULES, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
653
655
|
NiceBaseListStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceBaseListStore });
|
|
654
656
|
NiceBaseListStore = __decorate([
|
|
655
657
|
StoreConfig({ name: "base-list", resettable: true }),
|
|
656
|
-
__metadata("design:paramtypes", [Object])
|
|
658
|
+
__metadata("design:paramtypes", [Object, Array])
|
|
657
659
|
], NiceBaseListStore);
|
|
658
660
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceBaseListStore, decorators: [{
|
|
659
661
|
type: Injectable
|
|
@@ -662,6 +664,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
662
664
|
}, {
|
|
663
665
|
type: Inject,
|
|
664
666
|
args: [DEFAULT_PARAMETERS]
|
|
667
|
+
}] }, { type: undefined, decorators: [{
|
|
668
|
+
type: Optional
|
|
669
|
+
}, {
|
|
670
|
+
type: Inject,
|
|
671
|
+
args: [DEFAULT_RULES]
|
|
665
672
|
}] }]; } });
|
|
666
673
|
|
|
667
674
|
class NiceBaseListQuery extends Query {
|
|
@@ -2091,6 +2098,10 @@ class NiceBaseListModule {
|
|
|
2091
2098
|
provide: TABLE_COLUMNS,
|
|
2092
2099
|
useValue: options.columns,
|
|
2093
2100
|
},
|
|
2101
|
+
{
|
|
2102
|
+
provide: DEFAULT_RULES,
|
|
2103
|
+
useValue: options.defaultRules
|
|
2104
|
+
},
|
|
2094
2105
|
{
|
|
2095
2106
|
provide: DEFAULT_PARAMETERS,
|
|
2096
2107
|
useValue: options.defaultParameters
|
|
@@ -2215,7 +2226,7 @@ const initialValue = {
|
|
|
2215
2226
|
};
|
|
2216
2227
|
let NiceMultiStateListStore = class NiceMultiStateListStore extends NiceBaseListStore {
|
|
2217
2228
|
constructor() {
|
|
2218
|
-
super(null);
|
|
2229
|
+
super(null, []);
|
|
2219
2230
|
}
|
|
2220
2231
|
};
|
|
2221
2232
|
NiceMultiStateListStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceMultiStateListStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|