@recursyve/nice-data-filter-kit 13.0.9 → 13.0.12
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.component.mjs +1 -1
- package/esm2020/lib/components/base-list/store/base-list.service.mjs +11 -6
- package/esm2020/lib/components/query-builder/rule/components/filter.component.mjs +6 -23
- package/esm2020/lib/components/query-builder/rule/components/select/select-filter.component.mjs +4 -1
- package/esm2020/lib/components/query-builder/rule/rule.component.mjs +3 -3
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +38 -44
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +36 -44
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/base-list/base-list.component.d.ts +6 -5
- package/lib/components/base-list/store/base-list.service.d.ts +6 -5
- package/lib/components/query-builder/rule/components/filter.component.d.ts +1 -2
- package/package.json +1 -1
- package/src/lib/components/query-builder/rule/rule.theme.scss +1 -1
|
@@ -12,17 +12,18 @@ import { TableColumns } from "./models/columns.model";
|
|
|
12
12
|
import { ExportSettings } from "./models/export.model";
|
|
13
13
|
import { NiceBaseIconOptions } from "./models/icons.model";
|
|
14
14
|
import { BaseListLayout, LayoutContent } from "./models/layout.model";
|
|
15
|
+
import { NiceFilterService } from "./providers/base-filter.service";
|
|
15
16
|
import { NiceBaseListQuery } from "./store/base-list.query";
|
|
16
17
|
import { NiceBaseListService } from "./store/base-list.service";
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
|
-
export declare class NiceBaseListComponent implements OnInit, OnDestroy, OnChanges {
|
|
19
|
+
export declare class NiceBaseListComponent<Filter extends NiceFilterService<any> = NiceFilterService<any>> implements OnInit, OnDestroy, OnChanges {
|
|
19
20
|
enableQueryBuilder: boolean;
|
|
20
21
|
icons: NiceBaseIconOptions;
|
|
21
22
|
listLayout: BaseListLayout;
|
|
22
23
|
columns: TableColumns[];
|
|
23
24
|
private readonly exportsSettings;
|
|
24
25
|
readonly query: NiceBaseListQuery;
|
|
25
|
-
readonly service: NiceBaseListService
|
|
26
|
+
readonly service: NiceBaseListService<Filter>;
|
|
26
27
|
private readonly activatedRoute;
|
|
27
28
|
private readonly bottomSheet;
|
|
28
29
|
private readonly router;
|
|
@@ -65,7 +66,7 @@ export declare class NiceBaseListComponent implements OnInit, OnDestroy, OnChang
|
|
|
65
66
|
rules$: Observable<QueryModel[]>;
|
|
66
67
|
rulesCount$: Observable<number>;
|
|
67
68
|
private searchText$;
|
|
68
|
-
constructor(enableQueryBuilder: boolean, icons: NiceBaseIconOptions, listLayout: BaseListLayout, columns: TableColumns[], exportsSettings: ExportSettings, query: NiceBaseListQuery, service: NiceBaseListService
|
|
69
|
+
constructor(enableQueryBuilder: boolean, icons: NiceBaseIconOptions, listLayout: BaseListLayout, columns: TableColumns[], exportsSettings: ExportSettings, query: NiceBaseListQuery, service: NiceBaseListService<Filter>, activatedRoute: ActivatedRoute, bottomSheet: MatBottomSheet, router: Router, mediaWatcher: NiceMediaWatcherService);
|
|
69
70
|
get prefixButtons(): TemplateRef<any> | undefined;
|
|
70
71
|
get suffixButtons(): TemplateRef<any> | undefined;
|
|
71
72
|
ngOnInit(): Promise<void>;
|
|
@@ -88,6 +89,6 @@ export declare class NiceBaseListComponent implements OnInit, OnDestroy, OnChang
|
|
|
88
89
|
clickPrint(): void;
|
|
89
90
|
clickPdf(): void;
|
|
90
91
|
protected setColumn(columns: TableColumns[]): void;
|
|
91
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListComponent
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NiceBaseListComponent
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListComponent<any>, [{ optional: true; }, null, null, null, null, null, null, null, null, null, null]>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceBaseListComponent<any>, "nice-base-list", never, { "mode": "mode"; "layout": "layout"; "layoutContent": "layoutContent"; "autoChangeLayout": "autoChangeLayout"; "baseRoute": "baseRoute"; "routeFn": "routeFn"; "navigateFn": "navigateFn"; "autoLoad": "autoLoad"; "pageTitle": "pageTitle"; "canExport": "canExport"; "disableRouting": "disableRouting"; "customExport": "customExport"; }, { "newPage": "newPage"; }, ["title", "table", "cards", "customContent", "filters", "buttons"], never>;
|
|
93
94
|
}
|
|
@@ -6,9 +6,9 @@ import { QueryModel, QueryRuleModel } from "../../../models/query.model";
|
|
|
6
6
|
import { NiceFilterService } from "../providers/base-filter.service";
|
|
7
7
|
import { NiceBaseListStore } from "./base-list.store";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class NiceBaseListService {
|
|
9
|
+
export declare class NiceBaseListService<Filter extends NiceFilterService<any> = NiceFilterService<any>> {
|
|
10
10
|
protected store: NiceBaseListStore;
|
|
11
|
-
protected filterService:
|
|
11
|
+
protected filterService: Filter;
|
|
12
12
|
protected activatedRoute: ActivatedRoute;
|
|
13
13
|
protected router: Router;
|
|
14
14
|
protected appRef: ApplicationRef;
|
|
@@ -16,7 +16,8 @@ export declare class NiceBaseListService {
|
|
|
16
16
|
protected downloadFileName: string;
|
|
17
17
|
protected unsubscribeAll$: Subject<unknown>;
|
|
18
18
|
protected loadingData: boolean;
|
|
19
|
-
constructor(store: NiceBaseListStore, filterService:
|
|
19
|
+
constructor(store: NiceBaseListStore, filterService: Filter, activatedRoute: ActivatedRoute, router: Router, appRef: ApplicationRef);
|
|
20
|
+
get filter(): Filter;
|
|
20
21
|
init(): Promise<void>;
|
|
21
22
|
resetStore(): void;
|
|
22
23
|
resetData(): void;
|
|
@@ -46,6 +47,6 @@ export declare class NiceBaseListService {
|
|
|
46
47
|
private getParameters;
|
|
47
48
|
private mergeParameters;
|
|
48
49
|
private setParameters;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListService
|
|
50
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NiceBaseListService
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListService<any>, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NiceBaseListService<any>>;
|
|
51
52
|
}
|
|
@@ -2,7 +2,6 @@ import { ControlValueAccessor } from "@angular/forms";
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FilterComponent<T> implements ControlValueAccessor {
|
|
4
4
|
private _value;
|
|
5
|
-
valueIndex: number;
|
|
6
5
|
get value(): T | undefined;
|
|
7
6
|
protected propagateChanges: (_: T) => void;
|
|
8
7
|
registerOnTouched(fn: any): void;
|
|
@@ -10,5 +9,5 @@ export declare class FilterComponent<T> implements ControlValueAccessor {
|
|
|
10
9
|
writeValue(value: T): void;
|
|
11
10
|
onValueChange(value: T): void;
|
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent<any>, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent<any>, "ng-component", never, {
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent<any>, "ng-component", never, {}, {}, never, never>;
|
|
14
13
|
}
|
package/package.json
CHANGED