@recursyve/nice-data-filter-kit 14.4.0 → 14.4.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/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/store/selectable-list.state.mjs +1 -1
- package/esm2020/lib/models/filter.model.mjs +1 -1
- package/esm2020/lib/utils/filter.utils.mjs +3 -2
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +1013 -967
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +1001 -952
- 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/store/selectable-list.state.d.ts +1 -0
- package/lib/models/filter.model.d.ts +2 -0
- 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,5 +1,6 @@
|
|
|
1
1
|
import { ActiveState, EntityState } from "@datorama/akita";
|
|
2
2
|
export declare type NiceSelectableListEntity<T> = T & {
|
|
3
|
+
id?: number;
|
|
3
4
|
loaded?: boolean;
|
|
4
5
|
};
|
|
5
6
|
export interface NiceSelectableListState<T, ID = number> extends EntityState<NiceSelectableListEntity<T>, ID>, ActiveState<ID> {
|
|
@@ -8,6 +8,7 @@ export interface FilterParametersModel {
|
|
|
8
8
|
rules?: QueryModel[];
|
|
9
9
|
draw?: number;
|
|
10
10
|
data?: object;
|
|
11
|
+
groupBy?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface FilterPageMode {
|
|
13
14
|
number: number;
|
|
@@ -27,6 +28,7 @@ export interface FilterQueryModel {
|
|
|
27
28
|
query?: QueryModel;
|
|
28
29
|
order?: OrderModel | OrderModel[];
|
|
29
30
|
data?: object | undefined;
|
|
31
|
+
groupBy?: string;
|
|
30
32
|
}
|
|
31
33
|
export interface FilterResultModel<T = any> {
|
|
32
34
|
values: T[];
|