@elderbyte/ngx-starter 14.4.0-beta.11 → 14.4.0-beta.14

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.
@@ -5,6 +5,7 @@ import { AbstractControlDirective, NgControl } from '@angular/forms';
5
5
  import { ElementRef, OnDestroy } from '@angular/core';
6
6
  import { BooleanInput } from '@angular/cdk/coercion';
7
7
  import { FocusMonitor } from '@angular/cdk/a11y';
8
+ import { TranslateService } from '@ngx-translate/core';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
10
11
  * Base for custom material form field controls.
@@ -22,6 +23,7 @@ export declare abstract class ElderFormFieldControlBase<T> extends ValueAccessor
22
23
  **************************************************************************/
23
24
  private static nextId;
24
25
  private readonly _focusMonitor;
26
+ private readonly _translate;
25
27
  private _placeholder;
26
28
  private _disabled;
27
29
  private _required;
@@ -39,7 +41,7 @@ export declare abstract class ElderFormFieldControlBase<T> extends ValueAccessor
39
41
  * Constructor *
40
42
  * *
41
43
  **************************************************************************/
42
- constructor(hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, ngControl?: NgControl);
44
+ constructor(hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl?: NgControl);
43
45
  /***************************************************************************
44
46
  * *
45
47
  * Life Cycle *
@@ -10,6 +10,7 @@ import { BooleanInput } from '@angular/cdk/coercion';
10
10
  import { ElderFormFieldControlBase } from '../../common/forms/elder-form-field-control-base.directive';
11
11
  import { NgControl } from '@angular/forms';
12
12
  import { FocusMonitor } from '@angular/cdk/a11y';
13
+ import { TranslateService } from '@ngx-translate/core';
13
14
  import * as i0 from "@angular/core";
14
15
  export declare type TextResolverFn = (value: any) => string;
15
16
  export declare class ElderSelectComponentState {
@@ -87,7 +88,7 @@ export declare abstract class ElderSelectBase<TId, TEntity, TValue> extends Elde
87
88
  * Constructor *
88
89
  * *
89
90
  **************************************************************************/
90
- protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, ngControl?: NgControl);
91
+ protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl?: NgControl);
91
92
  /***************************************************************************
92
93
  * *
93
94
  * Properties *
@@ -7,6 +7,7 @@ import { FocusMonitor } from '@angular/cdk/a11y';
7
7
  import { IElderMultiEntityValueAccessor } from '../../../common/forms/elder-multi-entity-value-accessor';
8
8
  import { Sort } from '../../../common/data/sort';
9
9
  import { ElderDialogService } from '../../dialogs/elder-dialog.service';
10
+ import { TranslateService } from '@ngx-translate/core';
10
11
  import * as i0 from "@angular/core";
11
12
  /**
12
13
  * Base component implementation of elder-multi-select.
@@ -55,7 +56,7 @@ export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends
55
56
  * Constructor *
56
57
  * *
57
58
  **************************************************************************/
58
- protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, dialogService: ElderDialogService, ngControl?: NgControl);
59
+ protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, translateService: TranslateService, dialogService: ElderDialogService, ngControl?: NgControl);
59
60
  private awaitEntitiesWithId;
60
61
  /***************************************************************************
61
62
  * *
@@ -5,6 +5,7 @@ import { ThemePalette } from '@angular/material/core';
5
5
  import { NgControl } from '@angular/forms';
6
6
  import { FocusMonitor } from '@angular/cdk/a11y';
7
7
  import { ElderDialogService } from '../../../dialogs/elder-dialog.service';
8
+ import { TranslateService } from '@ngx-translate/core';
8
9
  import * as i0 from "@angular/core";
9
10
  declare class ChipModel<T> {
10
11
  readonly value: T;
@@ -36,7 +37,7 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
36
37
  * Constructor *
37
38
  * *
38
39
  **************************************************************************/
39
- constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, dialogService: ElderDialogService, ngControl: NgControl);
40
+ constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, dialogService: ElderDialogService, ngControl: NgControl);
40
41
  /***************************************************************************
41
42
  * *
42
43
  * Host Bindings *
@@ -82,7 +83,7 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
82
83
  private buildChipModelsOrFallback;
83
84
  private buildChipFallbackModels;
84
85
  private buildChipModels;
85
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderMultiSelectChipsComponent<any, any, any>, [null, null, null, null, { optional: true; self: true; }]>;
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderMultiSelectChipsComponent<any, any, any>, [null, null, null, null, null, { optional: true; self: true; }]>;
86
87
  static ɵcmp: i0.ɵɵComponentDeclaration<ElderMultiSelectChipsComponent<any, any, any>, "elder-multi-select-chips", never, { "allowRemove": "allowRemove"; "chipTemplate": "chipTemplate"; "chipAvatarTemplate": "chipAvatarTemplate"; "customInputTemplate": "customInputTemplate"; "chipColorEnabled": "chipColorEnabled"; "chipColorResolver": "chipColorResolver"; }, {}, ["chipTemplateQuery", "chipAvatarTemplateQuery", "customInputTemplateQuery"], never, false>;
87
88
  }
88
89
  export {};
@@ -3,16 +3,16 @@ import { IDataContext } from '../../../../common/data/data-context/data-context'
3
3
  import { Observable } from 'rxjs';
4
4
  import { BooleanInput } from '@angular/cdk/coercion';
5
5
  import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
6
- import { ElderSelectBase, TextResolverFn } from '../../elder-select-base';
6
+ import { ElderSelectBase } from '../../elder-select-base';
7
7
  import { IElderEntityValueAccessor } from '../../../../common/forms/elder-entity-value-accessor';
8
8
  import { NgControl } from '@angular/forms';
9
9
  import { FocusMonitor } from '@angular/cdk/a11y';
10
+ import { TranslateService } from '@ngx-translate/core';
10
11
  import * as i0 from "@angular/core";
11
12
  declare class EntityContext<T> {
12
13
  readonly value: T;
13
- readonly hintText: string;
14
14
  readonly displayText: string;
15
- constructor(value: T, hintText: string, displayText: string);
15
+ constructor(value: T, displayText: string);
16
16
  }
17
17
  /**
18
18
  * The elder-select control allows to select a single
@@ -32,7 +32,6 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
32
32
  * *
33
33
  **************************************************************************/
34
34
  private readonly logger;
35
- private readonly hintPropertyResolver$;
36
35
  private _allowNull;
37
36
  inputRef: ElementRef<HTMLInputElement>;
38
37
  /**
@@ -61,7 +60,7 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
61
60
  * Constructor *
62
61
  * *
63
62
  **************************************************************************/
64
- constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, ngControl: NgControl);
63
+ constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl: NgControl);
65
64
  /***************************************************************************
66
65
  * *
67
66
  * Life Cycle *
@@ -103,8 +102,6 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
103
102
  get entity$(): Observable<TEntity>;
104
103
  set entityId(id: TId);
105
104
  get entityId(): TId;
106
- set hintProperty(property: string);
107
- set hintPropertyResolver(resolver: TextResolverFn);
108
105
  /***************************************************************************
109
106
  * *
110
107
  * Public API *
@@ -151,7 +148,7 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
151
148
  *
152
149
  */
153
150
  protected writeToControl(value: TValue): void;
154
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectComponent<any, any, any>, [null, null, null, { optional: true; self: true; }]>;
155
- 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, false>;
151
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectComponent<any, any, any>, [null, null, null, null, { optional: true; self: true; }]>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElderSelectComponent<any, any, any>, "elder-select", never, { "nullDisplay": "nullDisplay"; "autocomplete": "autocomplete"; "allowNull": "allowNull"; "entity": "entity"; "entityId": "entityId"; }, { "entityIdChange": "entityIdChange"; "entityIdUpdated": "entityIdUpdated"; "entityChange": "entityChange"; "entityUpdated": "entityUpdated"; }, never, never, false>;
156
153
  }
157
154
  export {};
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "14.4.0-beta.11",
3
+ "version": "14.4.0-beta.14",
4
4
  "peerDependencies": {
5
- "@angular/common": "^14.0.1",
6
- "@angular/core": "^14.0.1",
7
- "@angular/material": "^14.0.1",
5
+ "@angular/common": "^14.0.0",
6
+ "@angular/core": "^14.0.0",
7
+ "@angular/material": "^14.0.0",
8
8
  "@angular/flex-layout": "^14.0.0-beta.40",
9
9
  "@ngx-translate/core": "^14.0.0",
10
10
  "rxjs": "^7.5.5",