@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
|
@@ -950,12 +950,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
950
950
|
}]
|
|
951
951
|
}] });
|
|
952
952
|
|
|
953
|
+
const LOOKUP_COUNTRY_SERVICE_URL = new InjectionToken('LOOKUP_COUNTRY_SERVICE_URL', {
|
|
954
|
+
providedIn: 'root',
|
|
955
|
+
factory: () => 'https://services/lookupwpptservice/rest/lookup/getLookups?class=be.fgov.onerva.lookup.wppt.persistence.model.common.Country',
|
|
956
|
+
});
|
|
957
|
+
|
|
953
958
|
class CommonCountryLookupService {
|
|
954
|
-
constructor(http) {
|
|
959
|
+
constructor(http, commonCountryServiceURL) {
|
|
955
960
|
this.http = http;
|
|
956
|
-
this.commonCountryServiceURL =
|
|
961
|
+
this.commonCountryServiceURL = commonCountryServiceURL;
|
|
957
962
|
this._countries$ = new ReplaySubject(1);
|
|
958
963
|
this._customersInitialized = false;
|
|
964
|
+
console.log(this.commonCountryServiceURL);
|
|
959
965
|
}
|
|
960
966
|
getCountries(refresh = false) {
|
|
961
967
|
if (refresh || !this._customersInitialized) {
|
|
@@ -974,7 +980,7 @@ class CommonCountryLookupService {
|
|
|
974
980
|
return country || null;
|
|
975
981
|
}));
|
|
976
982
|
}
|
|
977
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommonCountryLookupService, deps: [{ token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
983
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommonCountryLookupService, deps: [{ token: i1$3.HttpClient }, { token: LOOKUP_COUNTRY_SERVICE_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
978
984
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommonCountryLookupService, providedIn: 'root' }); }
|
|
979
985
|
}
|
|
980
986
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommonCountryLookupService, decorators: [{
|
|
@@ -982,7 +988,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
982
988
|
args: [{
|
|
983
989
|
providedIn: 'root',
|
|
984
990
|
}]
|
|
985
|
-
}], ctorParameters: () => [{ type: i1$3.HttpClient }
|
|
991
|
+
}], ctorParameters: () => [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
|
|
992
|
+
type: Inject,
|
|
993
|
+
args: [LOOKUP_COUNTRY_SERVICE_URL]
|
|
994
|
+
}] }] });
|
|
986
995
|
|
|
987
996
|
class CacheService {
|
|
988
997
|
setItem(key, item) {
|
|
@@ -1745,5 +1754,5 @@ function onemrvaDateLuxonYearMonthProvider() {
|
|
|
1745
1754
|
* Generated bundle index. Do not edit.
|
|
1746
1755
|
*/
|
|
1747
1756
|
|
|
1748
|
-
export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, MatRowClickableDirective, NISS_MASK, ONEMRVA_MAT_LUXON_DATE_FORMATS, ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS, ONEMRVA_MAT_NATIVE_DATE_FORMAT, ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT, OnemRvaCDNCountryService, OnemRvaCDNMimeService, OnemRvaCDNService, OnemRvaClipboardDirective, OnemRvaColorDirective, OnemRvaIconRightDirective, OnemrvaBcePipe, OnemrvaLuxonDateAdapter, OnemrvaMaskDirective, OnemrvaNativeDateAdapter, OnemrvaNissPipe, OnemrvaSharedModule, OnemrvaTranslateCDNLoader, OnemrvaTranslateHttpLoader, OnemrvaValidators, RequestTimes, WebComponentOverlayContainer, bankAccountValidator, directives, onemrvaDateLuxonProvider, onemrvaDateLuxonYearMonthProvider, onemrvaDateNativeProvider, onemrvaDateNativeYearMonthProvider, setTranslationLanguage, setTranslationLanguageFromWO };
|
|
1757
|
+
export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, LOOKUP_COUNTRY_SERVICE_URL, MatRowClickableDirective, NISS_MASK, ONEMRVA_MAT_LUXON_DATE_FORMATS, ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS, ONEMRVA_MAT_NATIVE_DATE_FORMAT, ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT, OnemRvaCDNCountryService, OnemRvaCDNMimeService, OnemRvaCDNService, OnemRvaClipboardDirective, OnemRvaColorDirective, OnemRvaIconRightDirective, OnemrvaBcePipe, OnemrvaLuxonDateAdapter, OnemrvaMaskDirective, OnemrvaNativeDateAdapter, OnemrvaNissPipe, OnemrvaSharedModule, OnemrvaTranslateCDNLoader, OnemrvaTranslateHttpLoader, OnemrvaValidators, RequestTimes, WebComponentOverlayContainer, bankAccountValidator, directives, onemrvaDateLuxonProvider, onemrvaDateLuxonYearMonthProvider, onemrvaDateNativeProvider, onemrvaDateNativeYearMonthProvider, setTranslationLanguage, setTranslationLanguageFromWO };
|
|
1749
1758
|
//# sourceMappingURL=onemrvapublic-design-system-shared.mjs.map
|