@recursyve/nice-data-filter-kit 15.1.0 → 15.2.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/advanced-filters.component.mjs +24 -1
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/button/advanced-filters-button.component.mjs +5 -5
- package/esm2020/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.mjs +6 -7
- package/esm2020/lib/components/nice-filter-view/directives/mat-paginator.mjs +13 -24
- package/esm2020/lib/components/nice-filter-view/directives/mat-sort.mjs +15 -28
- package/esm2020/lib/components/nice-filter-view/nice-base-filter-view.component.mjs +43 -2
- package/esm2020/lib/components/nice-filter-view/nice-nested-filter-view.mjs +46 -0
- package/esm2020/lib/components/nice-filter-view/public-api.mjs +2 -1
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +29 -2
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.store.mjs +15 -11
- package/esm2020/lib/directive/selectable-list/providers/selectable-list-content.service.mjs +7 -6
- package/esm2020/lib/directive/selectable-list/public-api.mjs +2 -1
- 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-state.directive.mjs +50 -0
- package/esm2020/lib/directive/selectable-list/selectable-list.directive.mjs +6 -6
- package/esm2020/lib/directive/selectable-list/selectable-list.module.mjs +5 -4
- package/esm2020/lib/models/filter.model.mjs +1 -1
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +330 -155
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +327 -166
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.d.ts +1 -0
- package/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.d.ts +1 -2
- package/lib/components/nice-filter-view/directives/mat-paginator.d.ts +4 -9
- package/lib/components/nice-filter-view/directives/mat-sort.d.ts +4 -9
- package/lib/components/nice-filter-view/nice-base-filter-view.component.d.ts +19 -0
- package/lib/components/nice-filter-view/nice-nested-filter-view.d.ts +23 -0
- package/lib/components/nice-filter-view/public-api.d.ts +1 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.service.d.ts +4 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.store.d.ts +1 -0
- package/lib/directive/selectable-list/providers/selectable-list-content.service.d.ts +3 -3
- package/lib/directive/selectable-list/public-api.d.ts +1 -0
- 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-state.directive.d.ts +24 -0
- package/lib/directive/selectable-list/selectable-list.directive.d.ts +2 -2
- package/lib/directive/selectable-list/selectable-list.module.d.ts +2 -1
- package/lib/models/filter.model.d.ts +11 -11
- package/package.json +1 -1
package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare class NiceAdvancedFiltersComponent implements OnInit {
|
|
|
22
22
|
onClickDeleteRule(index: number): void;
|
|
23
23
|
onClose(): void;
|
|
24
24
|
onRefresh(): void;
|
|
25
|
+
removeEmptyRules(): void;
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedFiltersComponent, [{ optional: true; }, null, null, null, null]>;
|
|
26
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedFiltersComponent, "nice-advanced-filters", never, {}, {}, never, never, false, never>;
|
|
27
28
|
}
|
package/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export declare class NiceFilterExportButtonsComponent {
|
|
|
10
10
|
icons: NiceBaseIconOptions;
|
|
11
11
|
private readonly exportsSettings;
|
|
12
12
|
private niceFilterViewQuery;
|
|
13
|
-
private niceFilterViewService;
|
|
14
13
|
private selectableListService;
|
|
15
14
|
private query;
|
|
16
15
|
private service;
|
|
@@ -19,7 +18,7 @@ export declare class NiceFilterExportButtonsComponent {
|
|
|
19
18
|
downloadFileName: string;
|
|
20
19
|
canPrint: boolean;
|
|
21
20
|
loading$: import("rxjs").Observable<boolean>;
|
|
22
|
-
constructor(icons: NiceBaseIconOptions, exportsSettings: ExportSettings, niceFilterViewQuery: NiceFilterViewQuery,
|
|
21
|
+
constructor(icons: NiceBaseIconOptions, exportsSettings: ExportSettings, niceFilterViewQuery: NiceFilterViewQuery, selectableListService: NiceSelectableListService, query: NiceFilterViewQuery, service: NiceFilterViewService, bottomSheet: MatBottomSheet);
|
|
23
22
|
clickExport(): void;
|
|
24
23
|
clickXlsx(ids?: number[]): void;
|
|
25
24
|
clickCsv(ids?: number[]): void;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
2
|
import { MatPaginator } from "@angular/material/paginator";
|
|
3
|
-
import {
|
|
4
|
-
import { NiceFilterViewService } from "../store/nice-filter-view.service";
|
|
3
|
+
import { NiceNestedFilterView } from "../nice-nested-filter-view";
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NiceFilterMatPaginatorPaginationDirective implements OnInit
|
|
7
|
-
private query;
|
|
8
|
-
private service;
|
|
5
|
+
export declare class NiceFilterMatPaginatorPaginationDirective extends NiceNestedFilterView implements OnInit {
|
|
9
6
|
private paginator;
|
|
10
|
-
|
|
11
|
-
constructor(query: NiceFilterViewQuery, service: NiceFilterViewService, paginator: MatPaginator);
|
|
7
|
+
constructor(paginator: MatPaginator);
|
|
12
8
|
ngOnInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterMatPaginatorPaginationDirective, never>;
|
|
15
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceFilterMatPaginatorPaginationDirective, "mat-paginator[niceFilterPagination]", never, {}, {}, never, never, false, never>;
|
|
16
11
|
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
2
|
import { MatSort } from "@angular/material/sort";
|
|
3
|
-
import {
|
|
4
|
-
import { NiceFilterViewService } from "../store/nice-filter-view.service";
|
|
3
|
+
import { NiceNestedFilterView } from "../nice-nested-filter-view";
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NiceFilterMatSortSortingDirective implements OnInit
|
|
7
|
-
private query;
|
|
8
|
-
private service;
|
|
5
|
+
export declare class NiceFilterMatSortSortingDirective extends NiceNestedFilterView implements OnInit {
|
|
9
6
|
private sort;
|
|
10
|
-
|
|
11
|
-
constructor(query: NiceFilterViewQuery, service: NiceFilterViewService, sort: MatSort);
|
|
7
|
+
constructor(sort: MatSort);
|
|
12
8
|
ngOnInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterMatSortSortingDirective, never>;
|
|
15
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceFilterMatSortSortingDirective, "mat-table[matSort][niceFilterSorting]", never, {}, {}, never, never, false, never>;
|
|
16
11
|
}
|
|
@@ -5,6 +5,7 @@ import { QueryModel, QueryRuleModel, RuleModel } from "../../models/query.model"
|
|
|
5
5
|
import { NiceFilterService } from "../base-list/providers/base-filter.service";
|
|
6
6
|
import { NiceAdvancedFiltersButtonComponent } from "./components/advanced-filters/button/advanced-filters-button.component";
|
|
7
7
|
import { NiceFilterQueryParamsDirective } from "./directives/query-params.directive";
|
|
8
|
+
import { AfterQueryParamLoadedCallback } from "./nice-nested-filter-view";
|
|
8
9
|
import { NiceFilterViewQuery } from "./store/nice-filter-view.query";
|
|
9
10
|
import { NiceFilterViewService } from "./store/nice-filter-view.service";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
@@ -20,6 +21,7 @@ export declare abstract class NiceBaseFilterViewComponent<Filter extends NiceFil
|
|
|
20
21
|
protected advancedFiltersButton: NiceAdvancedFiltersButtonComponent;
|
|
21
22
|
private advancedFilters;
|
|
22
23
|
private selectableListDirective;
|
|
24
|
+
private readonly _afterQueryParamHooks;
|
|
23
25
|
filterViewLoading$: Observable<boolean>;
|
|
24
26
|
filterViewCount$: Observable<number>;
|
|
25
27
|
ngOnInit(autoLoad?: boolean, { mode, loadConfig, configQueryParams }?: NiceBaseFilterViewInitOptions): void;
|
|
@@ -44,6 +46,21 @@ export declare abstract class NiceBaseFilterViewComponent<Filter extends NiceFil
|
|
|
44
46
|
* NOTE: These rules will be injected in each filter request.
|
|
45
47
|
*/
|
|
46
48
|
setBaseRules(rule: (QueryRuleModel | QueryModel)[], reload?: boolean): void;
|
|
49
|
+
/**
|
|
50
|
+
* Add a rule to the set of rules that won't be saved in the current filterParameters config.
|
|
51
|
+
* NOTE: These rules will be injected in each filter request.
|
|
52
|
+
*/
|
|
53
|
+
addBaseRule(rule: QueryRuleModel, reload?: boolean): void;
|
|
54
|
+
/**
|
|
55
|
+
* Add a rule to the set of rules that won't be saved in the current filterParameters config.
|
|
56
|
+
* NOTE: These rules will be injected in each filter request.
|
|
57
|
+
*/
|
|
58
|
+
upsertBaseRule(rule: QueryRuleModel, reload?: boolean): void;
|
|
59
|
+
/**
|
|
60
|
+
* Remove a rule to the set of rules that won't be saved in the current filterParameters config.
|
|
61
|
+
* NOTE: These rules will be injected in each filter request.
|
|
62
|
+
*/
|
|
63
|
+
removeBaseRule(id: string, reload?: boolean): void;
|
|
47
64
|
/**
|
|
48
65
|
* Reset all rules with a new set of rules.
|
|
49
66
|
*/
|
|
@@ -58,8 +75,10 @@ export declare abstract class NiceBaseFilterViewComponent<Filter extends NiceFil
|
|
|
58
75
|
* NOTE: This will only check for rules in the first element of the rules array in the current filterParameters.
|
|
59
76
|
*/
|
|
60
77
|
removeRule(id: string, reload?: boolean): void;
|
|
78
|
+
protected afterInit(fn: AfterQueryParamLoadedCallback): void;
|
|
61
79
|
private autoLoad;
|
|
62
80
|
private loadConfig;
|
|
81
|
+
private onInit;
|
|
63
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseFilterViewComponent<any>, never>;
|
|
64
83
|
static ɵcmp: i0.ɵɵComponentDeclaration<NiceBaseFilterViewComponent<any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
65
84
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { Observable, Subject } from "rxjs";
|
|
3
|
+
import { NiceFilterService } from "../base-list/providers/base-filter.service";
|
|
4
|
+
import { NiceFilterQueryParamsDirective } from "./directives/query-params.directive";
|
|
5
|
+
import { NiceFilterViewQuery } from "./store/nice-filter-view.query";
|
|
6
|
+
import { NiceFilterViewService } from "./store/nice-filter-view.service";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export type AfterQueryParamLoadedCallback = () => void;
|
|
9
|
+
export declare abstract class NiceNestedFilterView<Filter extends NiceFilterService<any> = NiceFilterService<any>> implements OnInit, OnDestroy {
|
|
10
|
+
private readonly _afterQueryParamHooks;
|
|
11
|
+
protected unsubscribeAll$: Subject<void>;
|
|
12
|
+
protected filterViewService: NiceFilterViewService<Filter>;
|
|
13
|
+
protected filterViewQuery: NiceFilterViewQuery;
|
|
14
|
+
protected queryParams: NiceFilterQueryParamsDirective | null;
|
|
15
|
+
filterViewLoading$: Observable<boolean>;
|
|
16
|
+
filterViewCount$: Observable<number>;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
protected afterInit(fn: AfterQueryParamLoadedCallback): void;
|
|
20
|
+
private onInit;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceNestedFilterView<any>, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceNestedFilterView<any>, never, never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -25,9 +25,13 @@ export declare class NiceFilterViewService<Filter extends NiceFilterService<any>
|
|
|
25
25
|
*/
|
|
26
26
|
setParameters(filterParameters: FilterParametersModel, reload: boolean): void;
|
|
27
27
|
setParameters(filterParameters: FilterParametersModel): void;
|
|
28
|
+
patchParameters(filterParameters: FilterParametersModel): void;
|
|
28
29
|
resetPaging(): void;
|
|
29
30
|
setQueryParams(queryParams: QueryParams): void;
|
|
30
31
|
setBaseRules(rule: (QueryRuleModel | QueryModel)[], reload: boolean): void;
|
|
32
|
+
addBaseRule(rule: QueryRuleModel, reload: boolean): void;
|
|
33
|
+
upsertBaseRules(rule: QueryRuleModel, reload: boolean): void;
|
|
34
|
+
removeBaseRules(key: string, reload: boolean): void;
|
|
31
35
|
setRules(rules: QueryModel | QueryModel[]): void;
|
|
32
36
|
upsertRule(id: string, newRule: RuleModel): void;
|
|
33
37
|
removeRule(id: string): void;
|
|
@@ -24,6 +24,7 @@ export declare class NiceFilterViewStore extends EntityStore<NiceFilterViewState
|
|
|
24
24
|
constructor(state: Partial<NiceFilterViewState>, store: StoreConfigOptions);
|
|
25
25
|
setFilterConfigLoading(loading: boolean): void;
|
|
26
26
|
setParameters(filterParameters: FilterParametersModel): void;
|
|
27
|
+
patchParameters(filterParameters: FilterParametersModel): void;
|
|
27
28
|
setResult(filterResult: FilterResultModel): void;
|
|
28
29
|
addValue(value: any, opts?: AddEntitiesOptions): void;
|
|
29
30
|
addValues(values: any[], opts?: AddEntitiesOptions): void;
|
|
@@ -2,7 +2,7 @@ import { QueryList } from "@angular/core";
|
|
|
2
2
|
import { NiceSelectableListOptions } from "../model/selectable-list-options.model";
|
|
3
3
|
import { NiceSelectableListCheckboxDirective } from "../selectable-list-checkbox.directive";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class NiceSelectableListContentService {
|
|
6
6
|
private _options;
|
|
7
7
|
private _state;
|
|
8
8
|
private _checkboxes;
|
|
@@ -13,6 +13,6 @@ export declare class SelectableListContentService {
|
|
|
13
13
|
setOptions(options: NiceSelectableListOptions): void;
|
|
14
14
|
setState(state: string): void;
|
|
15
15
|
setCheckboxes(checkboxes: QueryList<NiceSelectableListCheckboxDirective>): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListContentService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NiceSelectableListContentService>;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DoCheck, OnDestroy, OnInit } from "@angular/core";
|
|
2
2
|
import { MatCheckbox } from "@angular/material/checkbox";
|
|
3
|
-
import {
|
|
3
|
+
import { NiceSelectableListContentService } from "./providers/selectable-list-content.service";
|
|
4
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 {
|
|
@@ -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:
|
|
17
|
+
constructor(checkbox: MatCheckbox, service: NiceSelectableListContentService, selectableListService: NiceSelectableListService);
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
ngOnDestroy(): void;
|
|
20
20
|
ngDoCheck(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from "@angular/core";
|
|
2
2
|
import { NiceFilterViewQuery } from "../../components/nice-filter-view/store/nice-filter-view.query";
|
|
3
|
-
import {
|
|
3
|
+
import { NiceSelectableListContentService } from "./providers/selectable-list-content.service";
|
|
4
4
|
import { NiceSelectableListService } from "./store/selectable-list.service";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NiceSelectableListSelectAllDirective implements OnInit {
|
|
@@ -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:
|
|
13
|
+
constructor(niceFilterViewQuery: NiceFilterViewQuery | null, service: NiceSelectableListContentService, selectableListService: NiceSelectableListService);
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
onClick(): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListSelectAllDirective, [{ optional: true; }, null, null]>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { NiceSelectableListContentService } from "./providers/selectable-list-content.service";
|
|
3
|
+
import { NiceSelectableListService } from "./store/selectable-list.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
declare class NiceSelectableListIsEmptyDirectiveContext {
|
|
6
|
+
$implicit: boolean;
|
|
7
|
+
isEmpty: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class NiceSelectableListIsEmptyDirective implements OnInit, OnDestroy {
|
|
10
|
+
private templateRef;
|
|
11
|
+
private viewContainerRef;
|
|
12
|
+
private contentService;
|
|
13
|
+
private selectableListService;
|
|
14
|
+
private context;
|
|
15
|
+
private embeddedViewRef;
|
|
16
|
+
private unsubscribeAll$;
|
|
17
|
+
constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef, contentService: NiceSelectableListContentService, selectableListService: NiceSelectableListService);
|
|
18
|
+
static ngTemplateContextGuard(directive: NiceSelectableListIsEmptyDirective, ctx: any): ctx is NiceSelectableListIsEmptyDirectiveContext;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListIsEmptyDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceSelectableListIsEmptyDirective, "[niceSelectableListIsEmpty]", never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterContentInit, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { ActivatedRoute } from "@angular/router";
|
|
3
3
|
import { NiceSelectableListOptions } from "./model/selectable-list-options.model";
|
|
4
|
-
import {
|
|
4
|
+
import { NiceSelectableListContentService } from "./providers/selectable-list-content.service";
|
|
5
5
|
import { NiceSelectableListCheckboxDirective } from "./selectable-list-checkbox.directive";
|
|
6
6
|
import { NiceSelectableListService } from "./store/selectable-list.service";
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -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:
|
|
19
|
+
constructor(service: NiceSelectableListContentService, selectableListService: NiceSelectableListService, route: ActivatedRoute);
|
|
20
20
|
ngOnInit(): void;
|
|
21
21
|
ngOnDestroy(): void;
|
|
22
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -4,9 +4,10 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
import * as i1 from "./selectable-list.directive";
|
|
5
5
|
import * as i2 from "./selectable-list-checkbox.directive";
|
|
6
6
|
import * as i3 from "./selectable-list-select-all.directive";
|
|
7
|
+
import * as i4 from "./selectable-list-state.directive";
|
|
7
8
|
export declare class NiceSelectableListModule {
|
|
8
9
|
static register(...providers: Type<NicePreloadSelectedEntitiesProvider<any, any>>[]): ModuleWithProviders<NiceSelectableListModule>;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceSelectableListModule, [typeof i1.NiceSelectableListDirective, typeof i2.NiceSelectableListCheckboxDirective, typeof i3.NiceSelectableListSelectAllDirective], never, [typeof i1.NiceSelectableListDirective, typeof i2.NiceSelectableListCheckboxDirective, typeof i3.NiceSelectableListSelectAllDirective]>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceSelectableListModule, [typeof i1.NiceSelectableListDirective, typeof i2.NiceSelectableListCheckboxDirective, typeof i3.NiceSelectableListSelectAllDirective, typeof i4.NiceSelectableListIsEmptyDirective], never, [typeof i1.NiceSelectableListDirective, typeof i2.NiceSelectableListCheckboxDirective, typeof i3.NiceSelectableListSelectAllDirective, typeof i4.NiceSelectableListIsEmptyDirective]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<NiceSelectableListModule>;
|
|
12
13
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { QueryModel } from "./query.model";
|
|
2
2
|
export interface FilterParametersModel {
|
|
3
|
-
start?: number;
|
|
4
|
-
length?: number;
|
|
3
|
+
start?: number | null;
|
|
4
|
+
length?: number | null;
|
|
5
5
|
order?: OrderModel | null;
|
|
6
|
-
fallbackOrder?: OrderModel | OrderModel[];
|
|
7
|
-
search?: string;
|
|
8
|
-
rules?: QueryModel[];
|
|
9
|
-
draw?: number;
|
|
10
|
-
data?: object;
|
|
11
|
-
groupBy?: string;
|
|
6
|
+
fallbackOrder?: OrderModel | OrderModel[] | null;
|
|
7
|
+
search?: string | null;
|
|
8
|
+
rules?: QueryModel[] | null;
|
|
9
|
+
draw?: number | null;
|
|
10
|
+
data?: object | null;
|
|
11
|
+
groupBy?: string | null;
|
|
12
12
|
}
|
|
13
13
|
export interface FilterPageMode {
|
|
14
14
|
number: number;
|
|
@@ -18,9 +18,9 @@ export interface FilterSearchModel {
|
|
|
18
18
|
value: string;
|
|
19
19
|
}
|
|
20
20
|
export interface OrderModel {
|
|
21
|
-
column?: string;
|
|
22
|
-
direction?: "asc" | "desc";
|
|
23
|
-
nullLast?: boolean;
|
|
21
|
+
column?: string | null;
|
|
22
|
+
direction?: "asc" | "desc" | null;
|
|
23
|
+
nullLast?: boolean | null;
|
|
24
24
|
}
|
|
25
25
|
export interface FilterQueryModel {
|
|
26
26
|
page?: FilterPageMode;
|