@recursyve/nice-data-filter-kit 15.1.0 → 15.1.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/store/nice-filter-view.store.mjs +7 -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/fesm2015/recursyve-nice-data-filter-kit.mjs +67 -25
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +66 -27
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- 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/package.json +1 -1
|
@@ -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
|
}
|