@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.
- package/esm2022/layout/src/components/layout-route/layout-route.component.mjs +1 -3
- package/esm2022/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.mjs +27 -15
- package/esm2022/shared/index.mjs +2 -1
- package/esm2022/shared/src/lib/services/country-lookup.service.mjs +11 -6
- package/esm2022/shared/src/lib/tokens/index.mjs +2 -0
- package/esm2022/shared/src/lib/tokens/lookup.token.mjs +6 -0
- package/fesm2022/onemrvapublic-design-system-layout.mjs +0 -2
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +25 -13
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +14 -5
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.d.ts +4 -4
- package/package.json +1 -1
- package/shared/index.d.ts +1 -0
- package/shared/src/lib/services/country-lookup.service.d.ts +2 -2
- package/shared/src/lib/tokens/index.d.ts +1 -0
- package/shared/src/lib/tokens/lookup.token.d.ts +2 -0
|
@@ -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(
|
|
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
package/shared/index.d.ts
CHANGED
|
@@ -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
|
|
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';
|