@elderbyte/ngx-starter 13.5.1 → 13.5.2

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.
@@ -1,4 +1,4 @@
1
- import { Injector, NgZone, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, Injector, NgZone, OnDestroy, OnInit } from '@angular/core';
2
2
  import { IDataContext } from '../../../common/data/data-context/data-context';
3
3
  import { Observable } from 'rxjs';
4
4
  import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
@@ -20,7 +20,7 @@ declare class ValueContext<T> {
20
20
  * - Support entity id handling, input / output is the entity id vs full value.
21
21
  *
22
22
  */
23
- export declare class ElderSelectComponent<T = any, TId = any> extends ElderSelectBase<TId, T, T> implements OnInit, OnDestroy {
23
+ export declare class ElderSelectComponent<T = any, TId = any> extends ElderSelectBase<TId, T, T> implements OnInit, OnDestroy, AfterViewInit {
24
24
  private readonly injector;
25
25
  /***************************************************************************
26
26
  * *
@@ -43,6 +43,7 @@ export declare class ElderSelectComponent<T = any, TId = any> extends ElderSelec
43
43
  readonly inputText$: Observable<string>;
44
44
  private ngControl;
45
45
  private valueContext;
46
+ private ngModelInitialized;
46
47
  /***************************************************************************
47
48
  * *
48
49
  * Constructor *
@@ -55,6 +56,7 @@ export declare class ElderSelectComponent<T = any, TId = any> extends ElderSelec
55
56
  * *
56
57
  **************************************************************************/
57
58
  ngOnInit(): void;
59
+ ngAfterViewInit(): void;
58
60
  ngOnDestroy(): void;
59
61
  /***************************************************************************
60
62
  * *
@@ -127,10 +129,23 @@ export declare class ElderSelectComponent<T = any, TId = any> extends ElderSelec
127
129
  protected valuesEquals(a: T, b: T): boolean;
128
130
  private selectValueById;
129
131
  private loadEntityById;
132
+ private writeValueInternalDelayed;
130
133
  private findInDataContext;
131
134
  protected writeToControl(value: T): void;
132
135
  private ensureExistingValueNgControl;
133
136
  private tryUpdateNgControl;
137
+ /**
138
+ * @description
139
+ * Writes a new value to the element.
140
+ *
141
+ * This method is called by the forms API to write to the view when programmatic
142
+ * changes from model to view are requested.
143
+ *
144
+ * @param value The new value for the element
145
+ */
146
+ writeValue(value: T): void;
147
+ private isNullOrEmpty;
148
+ private isNgModelInitializing;
134
149
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectComponent<any, any>, never>;
135
150
  static ɵcmp: i0.ɵɵComponentDeclaration<ElderSelectComponent<any, any>, "elder-select", never, { "nullDisplay": "nullDisplay"; "autocomplete": "autocomplete"; "allowNull": "allowNull"; "autoSelectFirst": "autoSelectFirst"; "valueId": "valueId"; "hintProperty": "hintProperty"; "hintPropertyResolver": "hintPropertyResolver"; }, { "valueIdChange": "valueIdChange"; }, never, never>;
136
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "13.5.1",
3
+ "version": "13.5.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0",