@onemrvapublic/design-system 18.2.21-develop.2 → 18.2.21-develop.3

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,12 +1,10 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
- import { TranslateService } from '@ngx-translate/core';
4
3
  import { Observable, Subject } from 'rxjs';
5
4
  import { CommonCountryLookupService } from '@onemrvapublic/design-system/shared';
6
5
  import { OnemRvaCommonCountry } from '@onemrvapublic/design-system/shared';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class OnemrvaMatInputBirthPlaceComponent implements OnInit, OnDestroy {
9
- private translateService;
10
8
  private commonCountryLookupService;
11
9
  readonly: boolean;
12
10
  countryCode: FormControl<string | null>;
@@ -15,17 +13,19 @@ export declare class OnemrvaMatInputBirthPlaceComponent implements OnInit, OnDes
15
13
  hint: string;
16
14
  placeholderLabel: string;
17
15
  searchAriaLabel: string;
16
+ returnValue: 'id' | 'code' | 'object';
18
17
  getCountry: EventEmitter<any>;
19
18
  filterCtrl: FormControl<string | null>;
20
19
  destroyNotifier$: Subject<void>;
21
20
  filteredCountries$: Observable<OnemRvaCommonCountry[]>;
22
21
  private countries$;
23
- constructor(translateService: TranslateService, commonCountryLookupService: CommonCountryLookupService);
22
+ constructor(commonCountryLookupService: CommonCountryLookupService);
24
23
  get country(): Observable<OnemRvaCommonCountry | null>;
25
24
  ngOnInit(): void;
26
25
  ngOnDestroy(): void;
27
26
  trackById(index: number, country: OnemRvaCommonCountry): string;
28
27
  errors(): string;
28
+ getValue(country: OnemRvaCommonCountry): string | number | OnemRvaCommonCountry;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaMatInputBirthPlaceComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatInputBirthPlaceComponent, "onemrva-mat-input-birthplace", never, { "readonly": { "alias": "readonly"; "required": false; }; "countryCode": { "alias": "countryCode"; "required": false; }; "label": { "alias": "label"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeholderLabel": { "alias": "placeholderLabel"; "required": false; }; "searchAriaLabel": { "alias": "searchAriaLabel"; "required": false; }; }, { "getCountry": "getCountry"; }, never, never, true, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatInputBirthPlaceComponent, "onemrva-mat-input-birthplace", never, { "readonly": { "alias": "readonly"; "required": false; }; "countryCode": { "alias": "countryCode"; "required": false; }; "label": { "alias": "label"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeholderLabel": { "alias": "placeholderLabel"; "required": false; }; "searchAriaLabel": { "alias": "searchAriaLabel"; "required": false; }; "returnValue": { "alias": "returnValue"; "required": false; }; }, { "getCountry": "getCountry"; }, never, never, true, never>;
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onemrvapublic/design-system",
3
- "version": "18.2.21-develop.2",
3
+ "version": "18.2.21-develop.3",
4
4
  "description": "Design System Onem/Rva without theme included",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/shared/index.d.ts CHANGED
@@ -12,3 +12,4 @@ export * from './src/lib/validators';
12
12
  export * from './src/lib/shared.module';
13
13
  export * from './src/lib/adapters';
14
14
  export * from './src/lib/providers';
15
+ export * from './src/lib/tokens';
@@ -4,10 +4,10 @@ import { OnemRvaCommonCountry } from '../interfaces';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CommonCountryLookupService {
6
6
  http: HttpClient;
7
- commonCountryServiceURL: string;
7
+ private commonCountryServiceURL;
8
8
  protected _countries$: ReplaySubject<OnemRvaCommonCountry[]>;
9
9
  protected _customersInitialized: boolean;
10
- constructor(http: HttpClient);
10
+ constructor(http: HttpClient, commonCountryServiceURL: string);
11
11
  getCountries(refresh?: boolean): Observable<OnemRvaCommonCountry[]>;
12
12
  getCountryByCode(code: string | null): Observable<OnemRvaCommonCountry | null>;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<CommonCountryLookupService, never>;
@@ -0,0 +1 @@
1
+ export * from './lookup.token';
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const LOOKUP_COUNTRY_SERVICE_URL: InjectionToken<string>;