@recursyve/nice-data-filter-kit 14.4.2 → 14.5.1
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/nice-base-filter-view.component.mjs +2 -1
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +20 -2
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.store.mjs +95 -4
- package/esm2020/lib/directive/selectable-list/model/selectable-list-options.model.mjs +1 -1
- package/esm2020/lib/directive/selectable-list/selectable-list.directive.mjs +5 -2
- package/esm2020/lib/directive/selectable-list/store/selectable-list-state.service.mjs +10 -5
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +117 -9
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +124 -9
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/nice-filter-view/nice-base-filter-view.component.d.ts +1 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.service.d.ts +4 -1
- package/lib/components/nice-filter-view/store/nice-filter-view.store.d.ts +4 -0
- package/lib/directive/selectable-list/model/selectable-list-options.model.d.ts +1 -0
- package/lib/directive/selectable-list/store/selectable-list-state.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ export declare abstract class NiceBaseFilterViewComponent<Filter extends NiceFil
|
|
|
21
21
|
private advancedFilters;
|
|
22
22
|
private selectableListDirective;
|
|
23
23
|
filterViewLoading$: Observable<boolean>;
|
|
24
|
+
filterViewCount$: Observable<number>;
|
|
24
25
|
ngOnInit(autoLoad?: boolean, { mode, loadConfig, configQueryParams }?: NiceBaseFilterViewInitOptions): void;
|
|
25
26
|
/**
|
|
26
27
|
* Call the filter endpoint with the current filter parameters.
|
|
@@ -32,8 +32,11 @@ export declare class NiceFilterViewService<Filter extends NiceFilterService<any>
|
|
|
32
32
|
upsertRule(id: string, newRule: RuleModel): void;
|
|
33
33
|
removeRule(id: string): void;
|
|
34
34
|
addValue(value: any, opts?: AddEntitiesOptions): void;
|
|
35
|
+
addValues(value: any[], opts?: AddEntitiesOptions): void;
|
|
35
36
|
upsertValue(value: any, key?: string): void;
|
|
36
|
-
|
|
37
|
+
upsertValues(values: any[], key?: string): void;
|
|
38
|
+
removeValue(value: any[], key?: string): void;
|
|
39
|
+
removeValues(values: any[], key?: string): void;
|
|
37
40
|
resetResult(waitForNextFilter: boolean): void;
|
|
38
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterViewService<any>, never>;
|
|
39
42
|
static ɵprov: i0.ɵɵInjectableDeclaration<NiceFilterViewService<any>>;
|
|
@@ -10,6 +10,7 @@ export interface NiceFilterViewState extends EntityState {
|
|
|
10
10
|
mode: "paginated" | "accumulated";
|
|
11
11
|
autoLoad: boolean;
|
|
12
12
|
disabled: boolean;
|
|
13
|
+
initialLoadCompleted: boolean;
|
|
13
14
|
filterConfigLoading: boolean;
|
|
14
15
|
filterConfig: FilterConfigurationModel[];
|
|
15
16
|
filterResult: FilterResultModel | null;
|
|
@@ -25,8 +26,11 @@ export declare class NiceFilterViewStore extends EntityStore<NiceFilterViewState
|
|
|
25
26
|
setParameters(filterParameters: FilterParametersModel): void;
|
|
26
27
|
setResult(filterResult: FilterResultModel): void;
|
|
27
28
|
addValue(value: any, opts?: AddEntitiesOptions): void;
|
|
29
|
+
addValues(values: any[], opts?: AddEntitiesOptions): void;
|
|
28
30
|
upsertValue(value: any, key?: string): void;
|
|
31
|
+
upsertValues(values: any[], key?: string): void;
|
|
29
32
|
removeValue(value: any, key?: string): void;
|
|
33
|
+
removeValues(values: any[], key?: string): void;
|
|
30
34
|
getParameters(filterParameters?: FilterParametersModel): FilterParametersModel;
|
|
31
35
|
getSubState<T>(name: string): T;
|
|
32
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterViewStore, never>;
|
|
@@ -12,6 +12,7 @@ export declare class NiceSelectableListStateService<T, ID = any> {
|
|
|
12
12
|
private options?;
|
|
13
13
|
get idKey(): string;
|
|
14
14
|
get preloadedWindow(): number;
|
|
15
|
+
get queryParamsDisabled(): boolean;
|
|
15
16
|
constructor(store: EntityStore<NiceSelectableListState<any>>, route: ActivatedRoute, router: Router, preloadService?: NicePreloadSelectedEntitiesProvider<T>, options?: NiceSelectableListOptions);
|
|
16
17
|
setActive(entity: T): void;
|
|
17
18
|
getIndex(identifier: number): number;
|