@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.
@@ -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 or undefined, false, if the value is false, else true.
5
+ * @return undefined, if the value is null/undefined/empty
6
+ * @return false, if the value is false, else true.
6
7
  */
7
- static parseBoolean(bool: any): boolean;
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 getModelValOrFallback;
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>;
@@ -67,6 +67,7 @@ export declare class SearchInputState {
67
67
  * an array, it must not be empty.
68
68
  */
69
69
  get hasValue(): boolean;
70
+ get hasFallbackValue(): boolean;
70
71
  /***************************************************************************
71
72
  * *
72
73
  * Public Api *
@@ -1,11 +1,11 @@
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";
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "16.4.6",
3
+ "version": "16.4.8",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^16.0.0 || ^17.0.0",
6
6
  "@angular/common": "^16.0.0 || ^17.0.0",