@elderbyte/ngx-starter 16.4.6 → 16.4.8
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/common/utils/parse-util.mjs +5 -4
- package/esm2022/lib/components/forms/directives/elder-triple-state-checkbox.directive.mjs +22 -12
- package/esm2022/lib/components/forms/search/domain/input/search-input-state.mjs +4 -1
- package/esm2022/lib/components/forms/search/elder-search-context.directive.mjs +6 -3
- package/esm2022/lib/components/forms/search/elder-search-input.directive.mjs +27 -22
- package/esm2022/lib/components/forms/search/search-box/elder-search-box.component.mjs +2 -2
- package/fesm2022/elderbyte-ngx-starter.mjs +52 -31
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/utils/parse-util.d.ts +3 -2
- package/lib/components/forms/directives/elder-triple-state-checkbox.directive.d.ts +3 -1
- package/lib/components/forms/search/domain/input/search-input-state.d.ts +1 -0
- package/lib/components/forms/search/elder-search-input.directive.d.ts +8 -8
- package/package.json +1 -1
|
@@ -2,7 +2,8 @@ export declare class ParseUtil {
|
|
|
2
2
|
/**
|
|
3
3
|
* Tries to parse a given value to a boolean.
|
|
4
4
|
* @param bool a value representing a boolean state.
|
|
5
|
-
* @return undefined, if the value is null
|
|
5
|
+
* @return undefined, if the value is null/undefined/empty
|
|
6
|
+
* @return false, if the value is false, else true.
|
|
6
7
|
*/
|
|
7
|
-
static
|
|
8
|
+
static parseBoolOrUndefined(bool: any): boolean | undefined;
|
|
8
9
|
}
|
|
@@ -10,6 +10,7 @@ export declare enum ElderCheckboxState {
|
|
|
10
10
|
export declare class ElderTripleStateCheckboxDirective implements OnInit {
|
|
11
11
|
private checkbox;
|
|
12
12
|
private ngModel;
|
|
13
|
+
private readonly log;
|
|
13
14
|
/***************************************************************************
|
|
14
15
|
* *
|
|
15
16
|
* Constructor *
|
|
@@ -34,11 +35,12 @@ export declare class ElderTripleStateCheckboxDirective implements OnInit {
|
|
|
34
35
|
* Private methods *
|
|
35
36
|
* *
|
|
36
37
|
**************************************************************************/
|
|
38
|
+
private controlValueToState;
|
|
37
39
|
private toggleNextState;
|
|
38
40
|
private setCheckboxUnchecked;
|
|
39
41
|
private setCheckboxChecked;
|
|
40
42
|
private setCheckboxIndeterminate;
|
|
41
|
-
private
|
|
43
|
+
private readControlValue;
|
|
42
44
|
private updateModelIfPresent;
|
|
43
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderTripleStateCheckboxDirective, [null, { optional: true; }]>;
|
|
44
46
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderTripleStateCheckboxDirective, "mat-checkbox[elderTripleStateCheckbox]", never, {}, {}, never, never, false, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, OnInit } from
|
|
2
|
-
import { ElderSearchContextDirective } from
|
|
3
|
-
import { Observable } from
|
|
4
|
-
import { NgModel } from
|
|
5
|
-
import { SearchInput } from
|
|
6
|
-
import { SearchInputState } from
|
|
7
|
-
import { LocalPagedDataSource } from
|
|
8
|
-
import { BooleanInput } from
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ElderSearchContextDirective } from './elder-search-context.directive';
|
|
3
|
+
import { Observable } from 'rxjs/internal/Observable';
|
|
4
|
+
import { NgModel } from '@angular/forms';
|
|
5
|
+
import { SearchInput } from './domain/input/search-input';
|
|
6
|
+
import { SearchInputState } from './domain/input/search-input-state';
|
|
7
|
+
import { LocalPagedDataSource } from '../../../common/data/datasource/local/local-paged-data-source';
|
|
8
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
* Search name adapter for input controls.
|