@recursyve/nice-data-filter-kit 14.3.7 → 14.4.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/components/export-buttons/export-buttons.component.mjs +45 -17
- package/esm2020/lib/components/nice-filter-view/nice-base-filter-view.component.mjs +9 -2
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +20 -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 +1014 -970
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +1000 -953
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.d.ts +8 -4
- 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 +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 +3 -2
- package/package.json +1 -1
package/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.d.ts
CHANGED
|
@@ -4,10 +4,14 @@ import { ExportSettings } from "../../../base-list/models/export.model";
|
|
|
4
4
|
import { NiceBaseIconOptions } from "../../../base-list/models/icons.model";
|
|
5
5
|
import { NiceFilterViewQuery } from "../../store/nice-filter-view.query";
|
|
6
6
|
import { NiceFilterViewService } from "../../store/nice-filter-view.service";
|
|
7
|
+
import { NiceSelectableListService } from "../../../../directive/selectable-list/store/selectable-list.service";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class NiceFilterExportButtonsComponent {
|
|
9
10
|
icons: NiceBaseIconOptions;
|
|
10
11
|
private readonly exportsSettings;
|
|
12
|
+
private niceFilterViewQuery;
|
|
13
|
+
private niceFilterViewService;
|
|
14
|
+
private selectableListService;
|
|
11
15
|
private query;
|
|
12
16
|
private service;
|
|
13
17
|
private readonly bottomSheet;
|
|
@@ -15,12 +19,12 @@ export declare class NiceFilterExportButtonsComponent {
|
|
|
15
19
|
downloadFileName: string;
|
|
16
20
|
canPrint: boolean;
|
|
17
21
|
loading$: import("rxjs").Observable<boolean>;
|
|
18
|
-
constructor(icons: NiceBaseIconOptions, exportsSettings: ExportSettings, query: NiceFilterViewQuery, service: NiceFilterViewService, bottomSheet: MatBottomSheet);
|
|
22
|
+
constructor(icons: NiceBaseIconOptions, exportsSettings: ExportSettings, niceFilterViewQuery: NiceFilterViewQuery, niceFilterViewService: NiceFilterViewService, selectableListService: NiceSelectableListService, query: NiceFilterViewQuery, service: NiceFilterViewService, bottomSheet: MatBottomSheet);
|
|
19
23
|
clickExport(): void;
|
|
20
|
-
clickXlsx(): void;
|
|
21
|
-
clickCsv(): void;
|
|
24
|
+
clickXlsx(ids?: number[]): void;
|
|
25
|
+
clickCsv(ids?: number[]): void;
|
|
22
26
|
clickPrint(): void;
|
|
23
|
-
clickPdf(): void;
|
|
27
|
+
clickPdf(ids?: number[]): void;
|
|
24
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterExportButtonsComponent, never>;
|
|
25
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<NiceFilterExportButtonsComponent, "nice-filter-export-buttons, div[nice-filter-export-buttons]", never, { "customExport": "customExport"; "downloadFileName": "downloadFileName"; "canPrint": "canPrint"; }, {}, never, never, false>;
|
|
26
30
|
}
|
|
@@ -19,6 +19,7 @@ export declare abstract class NiceBaseFilterViewComponent<Filter extends NiceFil
|
|
|
19
19
|
protected queryParams: NiceFilterQueryParamsDirective;
|
|
20
20
|
protected advancedFiltersButton: NiceAdvancedFiltersButtonComponent;
|
|
21
21
|
private advancedFilters;
|
|
22
|
+
private selectableListDirective;
|
|
22
23
|
filterViewLoading$: Observable<boolean>;
|
|
23
24
|
ngOnInit(autoLoad?: boolean, { mode, loadConfig, configQueryParams }?: NiceBaseFilterViewInitOptions): void;
|
|
24
25
|
/**
|
|
@@ -18,7 +18,7 @@ export declare class NiceFilterViewService<Filter extends NiceFilterService<any>
|
|
|
18
18
|
setMode(mode: "paginated" | "accumulated"): void;
|
|
19
19
|
loadConfig(configQueryParams?: QueryParams): Promise<void>;
|
|
20
20
|
filter(): Promise<void>;
|
|
21
|
-
downloadData(type: string, downloadFileName: string): Promise<void>;
|
|
21
|
+
downloadData(type: string, downloadFileName: string, ids?: number[]): Promise<void>;
|
|
22
22
|
printData(): Promise<void>;
|
|
23
23
|
/**
|
|
24
24
|
* @deprecated reload show not be passed, and the caller should instead call `filter()` after calling this function.
|
|
@@ -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,9 @@
|
|
|
1
1
|
import { ActiveState, EntityState } from "@datorama/akita";
|
|
2
|
-
export declare type
|
|
2
|
+
export declare type NiceSelectableListEntity<T> = T & {
|
|
3
|
+
id?: number;
|
|
3
4
|
loaded?: boolean;
|
|
4
5
|
};
|
|
5
|
-
export interface
|
|
6
|
+
export interface NiceSelectableListState<T, ID = number> extends EntityState<NiceSelectableListEntity<T>, ID>, ActiveState<ID> {
|
|
6
7
|
allSelected: boolean;
|
|
7
8
|
unselectedEntity: any[];
|
|
8
9
|
}
|