@recursyve/nice-data-filter-kit 14.2.0 → 14.2.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.
@@ -0,0 +1,13 @@
1
+ import { QueryList } from "@angular/core";
2
+ import { NiceSelectableListCheckboxDirective } from "../selectable-list-checkbox.directive";
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectableListContentService {
5
+ private _state;
6
+ private _checkboxes;
7
+ get state(): string | null;
8
+ get checkboxes(): QueryList<NiceSelectableListCheckboxDirective>;
9
+ setState(state: string): void;
10
+ setCheckboxes(checkboxes: QueryList<NiceSelectableListCheckboxDirective>): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectableListContentService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<SelectableListContentService>;
13
+ }
@@ -1,11 +1,11 @@
1
1
  import { OnDestroy, OnInit } from "@angular/core";
2
2
  import { MatCheckbox } from "@angular/material/checkbox";
3
- import { NiceSelectableListDirective } from "./selectable-list.directive";
3
+ import { SelectableListContentService } from "./providers/selectable-list-content.service";
4
4
  import { SelectableListService } from "./store/selectable-list.service";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class NiceSelectableListCheckboxDirective implements OnInit, OnDestroy {
7
7
  readonly checkbox: MatCheckbox;
8
- private selectableList;
8
+ private service;
9
9
  private selectableListService;
10
10
  selectableEntity?: any;
11
11
  selectPage?: boolean;
@@ -13,7 +13,7 @@ export declare class NiceSelectableListCheckboxDirective implements OnInit, OnDe
13
13
  private selectableListStateQuery;
14
14
  private unsubscribeAll$;
15
15
  private get currentId();
16
- constructor(checkbox: MatCheckbox, selectableList: NiceSelectableListDirective, selectableListService: SelectableListService);
16
+ constructor(checkbox: MatCheckbox, service: SelectableListContentService, selectableListService: SelectableListService);
17
17
  ngOnInit(): void;
18
18
  ngOnDestroy(): void;
19
19
  private handleSelectableEntity;
@@ -1,16 +1,16 @@
1
1
  import { OnInit } from "@angular/core";
2
2
  import { NiceFilterViewQuery } from "../../components/nice-filter-view/store/nice-filter-view.query";
3
- import { NiceSelectableListDirective } from "./selectable-list.directive";
3
+ import { SelectableListContentService } from "./providers/selectable-list-content.service";
4
4
  import { SelectableListService } 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;
8
- private selectableList;
8
+ private service;
9
9
  private selectableListService;
10
10
  action: "select" | "unselect";
11
11
  private selectableListStateService;
12
12
  private selectableListStateQuery;
13
- constructor(niceFilterViewQuery: NiceFilterViewQuery | null, selectableList: NiceSelectableListDirective, selectableListService: SelectableListService);
13
+ constructor(niceFilterViewQuery: NiceFilterViewQuery | null, service: SelectableListContentService, selectableListService: SelectableListService);
14
14
  ngOnInit(): void;
15
15
  onClick(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListSelectAllDirective, [{ optional: true; }, null, null]>;
@@ -1,14 +1,18 @@
1
- import { OnChanges, OnInit, QueryList, SimpleChanges } from "@angular/core";
1
+ import { AfterContentInit, OnChanges, OnInit, QueryList, SimpleChanges } from "@angular/core";
2
2
  import { NiceSelectableListOptions } from "./model/selectable-list-options.model";
3
+ import { SelectableListContentService } from "./providers/selectable-list-content.service";
3
4
  import { NiceSelectableListCheckboxDirective } from "./selectable-list-checkbox.directive";
4
5
  import * as i0 from "@angular/core";
5
- export declare class NiceSelectableListDirective implements OnInit, OnChanges {
6
+ export declare class NiceSelectableListDirective implements OnInit, OnChanges, AfterContentInit {
7
+ private service;
6
8
  state: string;
7
9
  options: NiceSelectableListOptions;
8
10
  readonly checkboxes: QueryList<NiceSelectableListCheckboxDirective>;
9
11
  private defaultOptions;
12
+ constructor(service: SelectableListContentService);
10
13
  ngOnInit(): void;
11
14
  ngOnChanges(changes: SimpleChanges): void;
15
+ ngAfterContentInit(): void;
12
16
  static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListDirective, never>;
13
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<NiceSelectableListDirective, "[niceSelectableList]", never, { "state": "state"; "options": "options"; }, {}, ["checkboxes"], never, false>;
14
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursyve/nice-data-filter-kit",
3
- "version": "14.2.0",
3
+ "version": "14.2.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "sass": "./_index.scss",