@recursyve/nice-data-filter-kit 14.3.6 → 14.4.0
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/advanced-filters/filter-selection/filter-selection.component.mjs +3 -3
- package/esm2020/lib/directive/selectable-list/selectable-list-checkbox.directive.mjs +4 -4
- package/esm2020/lib/directive/selectable-list/selectable-list-select-all.directive.mjs +4 -4
- package/esm2020/lib/directive/selectable-list/selectable-list.directive.mjs +4 -4
- package/esm2020/lib/directive/selectable-list/selectable-list.module.mjs +2 -4
- package/esm2020/lib/directive/selectable-list/store/selectable-list-state.query.mjs +2 -2
- package/esm2020/lib/directive/selectable-list/store/selectable-list-state.service.mjs +2 -2
- package/esm2020/lib/directive/selectable-list/store/selectable-list.service.mjs +10 -10
- package/esm2020/lib/directive/selectable-list/store/selectable-list.state.mjs +1 -1
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +19 -20
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +19 -20
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/directive/selectable-list/selectable-list-checkbox.directive.d.ts +2 -2
- package/lib/directive/selectable-list/selectable-list-select-all.directive.d.ts +2 -2
- package/lib/directive/selectable-list/selectable-list.directive.d.ts +2 -2
- package/lib/directive/selectable-list/store/selectable-list-state.query.d.ts +3 -3
- package/lib/directive/selectable-list/store/selectable-list-state.service.d.ts +3 -3
- package/lib/directive/selectable-list/store/selectable-list.service.d.ts +12 -12
- package/lib/directive/selectable-list/store/selectable-list.state.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DoCheck, OnDestroy, OnInit } from "@angular/core";
|
|
2
2
|
import { MatCheckbox } from "@angular/material/checkbox";
|
|
3
3
|
import { SelectableListContentService } from "./providers/selectable-list-content.service";
|
|
4
|
-
import {
|
|
4
|
+
import { NiceSelectableListService } from "./store/selectable-list.service";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NiceSelectableListCheckboxDirective implements OnInit, OnDestroy, DoCheck {
|
|
7
7
|
readonly checkbox: MatCheckbox;
|
|
@@ -14,7 +14,7 @@ export declare class NiceSelectableListCheckboxDirective implements OnInit, OnDe
|
|
|
14
14
|
private unsubscribeAll$;
|
|
15
15
|
private initialized;
|
|
16
16
|
private get currentId();
|
|
17
|
-
constructor(checkbox: MatCheckbox, service: SelectableListContentService, selectableListService:
|
|
17
|
+
constructor(checkbox: MatCheckbox, service: SelectableListContentService, selectableListService: NiceSelectableListService);
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
ngOnDestroy(): void;
|
|
20
20
|
ngDoCheck(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from "@angular/core";
|
|
2
2
|
import { NiceFilterViewQuery } from "../../components/nice-filter-view/store/nice-filter-view.query";
|
|
3
3
|
import { SelectableListContentService } from "./providers/selectable-list-content.service";
|
|
4
|
-
import {
|
|
4
|
+
import { NiceSelectableListService } from "./store/selectable-list.service";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NiceSelectableListSelectAllDirective implements OnInit {
|
|
7
7
|
private niceFilterViewQuery;
|
|
@@ -10,7 +10,7 @@ export declare class NiceSelectableListSelectAllDirective implements OnInit {
|
|
|
10
10
|
action: "select" | "unselect";
|
|
11
11
|
private selectableListStateService;
|
|
12
12
|
private selectableListStateQuery;
|
|
13
|
-
constructor(niceFilterViewQuery: NiceFilterViewQuery | null, service: SelectableListContentService, selectableListService:
|
|
13
|
+
constructor(niceFilterViewQuery: NiceFilterViewQuery | null, service: SelectableListContentService, selectableListService: NiceSelectableListService);
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
onClick(): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListSelectAllDirective, [{ optional: true; }, null, null]>;
|
|
@@ -3,7 +3,7 @@ import { ActivatedRoute } from "@angular/router";
|
|
|
3
3
|
import { NiceSelectableListOptions } from "./model/selectable-list-options.model";
|
|
4
4
|
import { SelectableListContentService } from "./providers/selectable-list-content.service";
|
|
5
5
|
import { NiceSelectableListCheckboxDirective } from "./selectable-list-checkbox.directive";
|
|
6
|
-
import {
|
|
6
|
+
import { NiceSelectableListService } from "./store/selectable-list.service";
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class NiceSelectableListDirective implements OnInit, OnDestroy, OnChanges, AfterContentInit {
|
|
9
9
|
private service;
|
|
@@ -16,7 +16,7 @@ export declare class NiceSelectableListDirective implements OnInit, OnDestroy, O
|
|
|
16
16
|
private unsubscribeQuerySub$;
|
|
17
17
|
private stateService;
|
|
18
18
|
private stateQuery;
|
|
19
|
-
constructor(service: SelectableListContentService, selectableListService:
|
|
19
|
+
constructor(service: SelectableListContentService, selectableListService: NiceSelectableListService, route: ActivatedRoute);
|
|
20
20
|
ngOnInit(): void;
|
|
21
21
|
ngOnDestroy(): void;
|
|
22
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EntityStore, QueryEntity } from "@datorama/akita";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
5
|
-
constructor(store: EntityStore<
|
|
3
|
+
import { NiceSelectableListState } from "./selectable-list.state";
|
|
4
|
+
export declare class NiceSelectableListStateQuery<T> extends QueryEntity<NiceSelectableListState<T>> {
|
|
5
|
+
constructor(store: EntityStore<NiceSelectableListState<T>>);
|
|
6
6
|
selectActiveViewIndex(): Observable<number>;
|
|
7
7
|
selectFirstActive(): Observable<boolean>;
|
|
8
8
|
selectLastActive(): Observable<boolean>;
|
|
@@ -3,8 +3,8 @@ import { EntityStore } from "@datorama/akita";
|
|
|
3
3
|
import { NiceSelectableListLoadAllEntitiesOptions } from "../model/load-all-entities-options.model";
|
|
4
4
|
import { NiceSelectableListOptions } from "../model/selectable-list-options.model";
|
|
5
5
|
import { NicePreloadSelectedEntitiesProvider } from "../providers/preload-selected-entities.provider";
|
|
6
|
-
import {
|
|
7
|
-
export declare class
|
|
6
|
+
import { NiceSelectableListState } from "./selectable-list.state";
|
|
7
|
+
export declare class NiceSelectableListStateService<T, ID = any> {
|
|
8
8
|
private store;
|
|
9
9
|
private route;
|
|
10
10
|
private router;
|
|
@@ -12,7 +12,7 @@ export declare class SelectableListStateService<T, ID = any> {
|
|
|
12
12
|
private options?;
|
|
13
13
|
get idKey(): string;
|
|
14
14
|
get preloadedWindow(): number;
|
|
15
|
-
constructor(store: EntityStore<
|
|
15
|
+
constructor(store: EntityStore<NiceSelectableListState<any>>, route: ActivatedRoute, router: Router, preloadService?: NicePreloadSelectedEntitiesProvider<T>, options?: NiceSelectableListOptions);
|
|
16
16
|
setActive(entity: T): void;
|
|
17
17
|
getIndex(identifier: number): number;
|
|
18
18
|
selectAll(options?: NiceSelectableListLoadAllEntitiesOptions): Promise<void>;
|
|
@@ -2,26 +2,26 @@ import { ActivatedRoute, Router } from "@angular/router";
|
|
|
2
2
|
import { EntityStore } from "@datorama/akita";
|
|
3
3
|
import { NiceSelectableListOptions } from "../model/selectable-list-options.model";
|
|
4
4
|
import { NicePreloadSelectedEntitiesProvider } from "../providers/preload-selected-entities.provider";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { NiceSelectableListStateQuery } from "./selectable-list-state.query";
|
|
6
|
+
import { NiceSelectableListStateService } from "./selectable-list-state.service";
|
|
7
|
+
import { NiceSelectableListState } from "./selectable-list.state";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class NiceSelectableListService {
|
|
10
10
|
private providers;
|
|
11
11
|
private route;
|
|
12
12
|
private router;
|
|
13
13
|
private stores;
|
|
14
14
|
constructor(providers: NicePreloadSelectedEntitiesProvider<any>[], route: ActivatedRoute, router: Router);
|
|
15
15
|
createState(name: string, options?: NiceSelectableListOptions): {
|
|
16
|
-
store: EntityStore<
|
|
17
|
-
query:
|
|
16
|
+
store: EntityStore<NiceSelectableListState<any, number>, any, number>;
|
|
17
|
+
query: NiceSelectableListStateQuery<any>;
|
|
18
18
|
};
|
|
19
19
|
getState(name: string): {
|
|
20
|
-
store: EntityStore<
|
|
21
|
-
query:
|
|
20
|
+
store: EntityStore<NiceSelectableListState<any, number>, any, number>;
|
|
21
|
+
query: NiceSelectableListStateQuery<any>;
|
|
22
22
|
};
|
|
23
|
-
withState<T, ID = any>(stateName: string, options?: NiceSelectableListOptions):
|
|
24
|
-
query<T>(stateName: string):
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
23
|
+
withState<T, ID = any>(stateName: string, options?: NiceSelectableListOptions): NiceSelectableListStateService<T, ID>;
|
|
24
|
+
query<T>(stateName: string): NiceSelectableListStateQuery<T>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListService, [{ optional: true; }, null, null]>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NiceSelectableListService>;
|
|
27
27
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ActiveState, EntityState } from "@datorama/akita";
|
|
2
|
-
export declare type
|
|
2
|
+
export declare type NiceSelectableListEntity<T> = T & {
|
|
3
3
|
loaded?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export interface
|
|
5
|
+
export interface NiceSelectableListState<T, ID = number> extends EntityState<NiceSelectableListEntity<T>, ID>, ActiveState<ID> {
|
|
6
6
|
allSelected: boolean;
|
|
7
7
|
unselectedEntity: any[];
|
|
8
8
|
}
|