@onemrvapublic/design-system 18.2.21-develop.2 → 18.2.21-develop.4
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/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.mjs +7 -6
- package/esm2022/shared/index.mjs +2 -1
- package/esm2022/shared/src/lib/constants/constants.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 +7 -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-mat-input-enterprise-number.mjs +6 -5
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +15 -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/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.d.ts +0 -1
- package/package.json +7 -7
- package/shared/index.d.ts +1 -0
- package/shared/src/lib/constants/constants.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
|
}
|
|
@@ -18,7 +18,6 @@ export declare class OnemrvaMatInputEnterpriseNumberComponent implements OnInit,
|
|
|
18
18
|
countryCode: FormControl;
|
|
19
19
|
filterCtrl: FormControl<string | null>;
|
|
20
20
|
destroyNotifier$: Subject<void>;
|
|
21
|
-
mask$: Observable<string | undefined>;
|
|
22
21
|
countries$: Observable<OnemrvaMaterialCountry[]>;
|
|
23
22
|
filteredCountries$: Observable<OnemrvaMaterialCountry[]>;
|
|
24
23
|
constructor(cdn: OnemRvaCDNCountryService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onemrvapublic/design-system",
|
|
3
|
-
"version": "18.2.21-develop.
|
|
3
|
+
"version": "18.2.21-develop.4",
|
|
4
4
|
"description": "Design System Onem/Rva without theme included",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -46,12 +46,6 @@
|
|
|
46
46
|
"./package.json": {
|
|
47
47
|
"default": "./package.json"
|
|
48
48
|
},
|
|
49
|
-
"./core": {
|
|
50
|
-
"types": "./core/index.d.ts",
|
|
51
|
-
"esm2022": "./esm2022/core/onemrvapublic-design-system-core.mjs",
|
|
52
|
-
"esm": "./esm2022/core/onemrvapublic-design-system-core.mjs",
|
|
53
|
-
"default": "./fesm2022/onemrvapublic-design-system-core.mjs"
|
|
54
|
-
},
|
|
55
49
|
"./flag-icon": {
|
|
56
50
|
"types": "./flag-icon/index.d.ts",
|
|
57
51
|
"esm2022": "./esm2022/flag-icon/onemrvapublic-design-system-flag-icon.mjs",
|
|
@@ -142,6 +136,12 @@
|
|
|
142
136
|
"esm": "./esm2022/mat-input-phone/onemrvapublic-design-system-mat-input-phone.mjs",
|
|
143
137
|
"default": "./fesm2022/onemrvapublic-design-system-mat-input-phone.mjs"
|
|
144
138
|
},
|
|
139
|
+
"./core": {
|
|
140
|
+
"types": "./core/index.d.ts",
|
|
141
|
+
"esm2022": "./esm2022/core/onemrvapublic-design-system-core.mjs",
|
|
142
|
+
"esm": "./esm2022/core/onemrvapublic-design-system-core.mjs",
|
|
143
|
+
"default": "./fesm2022/onemrvapublic-design-system-core.mjs"
|
|
144
|
+
},
|
|
145
145
|
"./mat-message-box": {
|
|
146
146
|
"types": "./mat-message-box/index.d.ts",
|
|
147
147
|
"esm2022": "./esm2022/mat-message-box/onemrvapublic-design-system-mat-message-box.mjs",
|
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';
|