ecabs-components 1.0.61 → 1.0.63

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.
@@ -11,9 +11,14 @@ export declare class EcabsComponentsService {
11
11
  static ɵprov: i0.ɵɵInjectableDeclaration<EcabsComponentsService>;
12
12
  }
13
13
  export interface EcabsComponentsConfig {
14
- errorMessages: ErrorMessage[];
14
+ defaultCountries?: string[];
15
+ errorMessages?: ErrorMessage[];
15
16
  }
16
17
  export interface ErrorMessage {
17
18
  type: string;
18
19
  message: string;
19
20
  }
21
+ export declare class GenericComponentConfig implements EcabsComponentsConfig {
22
+ defaultCountries: string[];
23
+ errorMessages: ErrorMessage[];
24
+ }
@@ -2,9 +2,13 @@ import { AfterViewInit, EventEmitter, Injector, OnDestroy, OnInit } from '@angul
2
2
  import { ControlValueAccessor, UntypedFormGroup } from '@angular/forms';
3
3
  import { NgxMatIntlTelInputComponent } from 'ngx-mat-intl-tel-input';
4
4
  import ElementBaseComponent from '../base/element-base';
5
+ import { EcabsComponentsService } from "../base/services/ecabs-components.service";
6
+ import { UnsubscribeService } from "../base/services/unsubscribe.service";
5
7
  import * as i0 from "@angular/core";
6
8
  export declare class EcabsPhoneComponent extends ElementBaseComponent implements ControlValueAccessor, AfterViewInit, OnDestroy, OnInit {
7
9
  private readonly injector;
10
+ private readonly ecabsComponentsService;
11
+ private unsubscribeService;
8
12
  preferredCountries: string[];
9
13
  enablePlaceholder: boolean;
10
14
  enableSearch: boolean;
@@ -19,7 +23,7 @@ export declare class EcabsPhoneComponent extends ElementBaseComponent implements
19
23
  prohibitedCharacters: string[];
20
24
  get value(): any;
21
25
  set value(val: any);
22
- constructor(injector: Injector);
26
+ constructor(injector: Injector, ecabsComponentsService: EcabsComponentsService, unsubscribeService: UnsubscribeService);
23
27
  onInput(event: KeyboardEvent): void;
24
28
  ngOnInit(): void;
25
29
  ngAfterViewInit(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecabs-components",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.12",
6
6
  "@angular/common": "^16.2.12",