@elderbyte/ngx-starter 13.7.3 → 13.7.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.
@@ -8,7 +8,7 @@ export declare class CollectionUtil {
8
8
  */
9
9
  static moveDown<T>(items: T[], toMove: T): boolean;
10
10
  /**
11
- * Moves the given item up in the given array - if not already at the bottom
11
+ * Moves the given item up in the given array - if not already at the top
12
12
  * @param items
13
13
  * @param toMove
14
14
  */
@@ -35,18 +35,18 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
35
35
  */
36
36
  nullDisplay: string;
37
37
  readonly entityIdChange: Observable<TId>;
38
- readonly entityChange: Observable<TEntity>;
39
38
  /**
40
39
  * Similar to entity-id change, but emits only when the user
41
40
  * has updated the value.
42
41
  */
43
42
  readonly entityIdUpdated: Observable<TId>;
43
+ readonly entityChange: Observable<TEntity>;
44
44
  /**
45
45
  * Similar to entity change, but emits only when the user
46
46
  * has updated the value.
47
47
  */
48
48
  readonly entityUpdated: Observable<TEntity>;
49
- private readonly entity$;
49
+ private readonly _entity$;
50
50
  private _autocomplete;
51
51
  readonly entityWrapped$: Observable<EntityContext<TEntity>>;
52
52
  private readonly unsubscribe$;
@@ -84,6 +84,10 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
84
84
  **************************************************************************/
85
85
  set entity(entity: TEntity);
86
86
  get entity(): TEntity;
87
+ /**
88
+ * Gets the current entity as observable stream. (BehaviourSubject)
89
+ */
90
+ get entity$(): Observable<TEntity>;
87
91
  set entityId(id: TId);
88
92
  get entityId(): TId;
89
93
  set hintProperty(property: string);
@@ -118,6 +122,7 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
118
122
  * *
119
123
  **************************************************************************/
120
124
  protected valuesEquals(a: TValue, b: TValue): boolean;
125
+ private awaitEntityWithId;
121
126
  private isEntitySelected;
122
127
  private entityIdFromValue;
123
128
  private selectEntityById;
@@ -141,6 +146,6 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
141
146
  writeValue(value: TValue): void;
142
147
  private isNullOrEmpty;
143
148
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectComponent<any, any, any>, never>;
144
- static ɵcmp: i0.ɵɵComponentDeclaration<ElderSelectComponent<any, any, any>, "elder-select", never, { "nullDisplay": "nullDisplay"; "autocomplete": "autocomplete"; "allowNull": "allowNull"; "entity": "entity"; "entityId": "entityId"; "hintProperty": "hintProperty"; "hintPropertyResolver": "hintPropertyResolver"; }, { "entityIdChange": "entityIdChange"; "entityChange": "entityChange"; "entityIdUpdated": "entityIdUpdated"; "entityUpdated": "entityUpdated"; }, never, never>;
149
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElderSelectComponent<any, any, any>, "elder-select", never, { "nullDisplay": "nullDisplay"; "autocomplete": "autocomplete"; "allowNull": "allowNull"; "entity": "entity"; "entityId": "entityId"; "hintProperty": "hintProperty"; "hintPropertyResolver": "hintPropertyResolver"; }, { "entityIdChange": "entityIdChange"; "entityIdUpdated": "entityIdUpdated"; "entityChange": "entityChange"; "entityUpdated": "entityUpdated"; }, never, never>;
145
150
  }
146
151
  export {};
@@ -41,6 +41,7 @@ export declare abstract class ElderSelectBase<TId, TEntity, TValue> extends Form
41
41
  private readonly _logger;
42
42
  private readonly _filterContext;
43
43
  private _valueAsId;
44
+ protected timeoutAfterMs: number;
44
45
  /**
45
46
  * Define if elder-select should clean up the
46
47
  * data-context resources for you.
@@ -37,6 +37,7 @@ export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends
37
37
  * *
38
38
  **************************************************************************/
39
39
  protected constructor(zone: NgZone);
40
+ private awaitEntitiesWithId;
40
41
  /***************************************************************************
41
42
  * *
42
43
  * Properties *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "13.7.3",
3
+ "version": "13.7.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0",