@elderbyte/ngx-starter 16.4.4 → 16.4.6
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/esm2022/lib/components/forms/directives/elder-initial-value.directive.mjs +2 -24
- package/esm2022/lib/components/forms/search/domain/context/search-context.mjs +10 -16
- package/esm2022/lib/components/forms/search/domain/input/search-input.mjs +1 -1
- package/esm2022/lib/components/forms/search/elder-search-context.directive.mjs +23 -18
- package/esm2022/lib/components/forms/search/elder-search-input.directive.mjs +3 -3
- package/fesm2022/elderbyte-ngx-starter.mjs +31 -54
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/components/forms/directives/elder-initial-value.directive.d.ts +1 -1
- package/lib/components/forms/search/domain/context/search-context.d.ts +1 -2
- package/lib/components/forms/search/domain/input/search-input.d.ts +1 -1
- package/lib/components/forms/search/elder-search-context.directive.d.ts +5 -5
- package/lib/components/forms/search/elder-search-input.directive.d.ts +1 -1
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ export declare class ElderInitialValueDirective implements OnDestroy {
|
|
|
32
32
|
* *
|
|
33
33
|
**************************************************************************/
|
|
34
34
|
get valueChanges$(): import("rxjs").Observable<any>;
|
|
35
|
-
|
|
35
|
+
setValue(value: any): void;
|
|
36
36
|
ngOnDestroy(): void;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderInitialValueDirective, [{ host: true; }]>;
|
|
38
38
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderInitialValueDirective, "[elderInitialValue]", ["elderInitialValue"], {}, {}, never, never, false, never>;
|
|
@@ -32,8 +32,7 @@ export declare class SearchContext {
|
|
|
32
32
|
* Public API *
|
|
33
33
|
* *
|
|
34
34
|
**************************************************************************/
|
|
35
|
-
|
|
36
|
-
updateDefaultFilters(filters: Filter[]): boolean;
|
|
35
|
+
updateUserFiltersSave(filters: Filter[]): void;
|
|
37
36
|
updateUserFilters(filters: Filter[]): void;
|
|
38
37
|
replaceUserFilters(filters: Filter[]): void;
|
|
39
38
|
replaceForcedFilters(filters: Filter[]): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { SearchInput } from './domain/input/search-input';
|
|
4
4
|
import { Filter } from '../../../common/data/filters/filter';
|
|
@@ -14,14 +14,15 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* It also binds the SearchContext to a FilterContext (DataContext).
|
|
15
15
|
* TODO Maybe separate this??
|
|
16
16
|
*/
|
|
17
|
-
export declare class ElderSearchContextDirective implements OnInit,
|
|
17
|
+
export declare class ElderSearchContextDirective implements OnInit, AfterViewInit {
|
|
18
|
+
private readonly destroyRef;
|
|
18
19
|
/***************************************************************************
|
|
19
20
|
* *
|
|
20
21
|
* Fields *
|
|
21
22
|
* *
|
|
22
23
|
**************************************************************************/
|
|
23
24
|
private readonly log;
|
|
24
|
-
private readonly
|
|
25
|
+
private readonly filtersToApplyAtRegistration;
|
|
25
26
|
private readonly _searchInputs$;
|
|
26
27
|
private readonly _searchStates$;
|
|
27
28
|
private readonly _filterContext$;
|
|
@@ -32,7 +33,7 @@ export declare class ElderSearchContextDirective implements OnInit, OnDestroy, A
|
|
|
32
33
|
* Constructor *
|
|
33
34
|
* *
|
|
34
35
|
**************************************************************************/
|
|
35
|
-
constructor(searchContextService: SearchContextService);
|
|
36
|
+
constructor(searchContextService: SearchContextService, destroyRef: DestroyRef);
|
|
36
37
|
/***************************************************************************
|
|
37
38
|
* *
|
|
38
39
|
* Life Cycle *
|
|
@@ -40,7 +41,6 @@ export declare class ElderSearchContextDirective implements OnInit, OnDestroy, A
|
|
|
40
41
|
**************************************************************************/
|
|
41
42
|
ngOnInit(): void;
|
|
42
43
|
ngAfterViewInit(): void;
|
|
43
|
-
ngOnDestroy(): void;
|
|
44
44
|
/***************************************************************************
|
|
45
45
|
* *
|
|
46
46
|
* Properties *
|
|
@@ -71,7 +71,7 @@ export declare class ElderSearchInputDirective implements SearchInput, OnInit, A
|
|
|
71
71
|
* Public API *
|
|
72
72
|
* *
|
|
73
73
|
**************************************************************************/
|
|
74
|
-
|
|
74
|
+
setValue(queryString: string | string[] | null): void;
|
|
75
75
|
reset(): void;
|
|
76
76
|
/***************************************************************************
|
|
77
77
|
* *
|