@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.
Files changed (24) hide show
  1. package/esm2022/layout/src/components/layout-route/layout-route.component.mjs +1 -3
  2. package/esm2022/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.mjs +27 -15
  3. package/esm2022/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.mjs +7 -6
  4. package/esm2022/shared/index.mjs +2 -1
  5. package/esm2022/shared/src/lib/constants/constants.mjs +2 -1
  6. package/esm2022/shared/src/lib/services/country-lookup.service.mjs +11 -6
  7. package/esm2022/shared/src/lib/tokens/index.mjs +2 -0
  8. package/esm2022/shared/src/lib/tokens/lookup.token.mjs +7 -0
  9. package/fesm2022/onemrvapublic-design-system-layout.mjs +0 -2
  10. package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
  11. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +25 -13
  12. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
  13. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +6 -5
  14. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
  15. package/fesm2022/onemrvapublic-design-system-shared.mjs +15 -5
  16. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
  17. package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.d.ts +4 -4
  18. package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.d.ts +0 -1
  19. package/package.json +7 -7
  20. package/shared/index.d.ts +1 -0
  21. package/shared/src/lib/constants/constants.d.ts +1 -0
  22. package/shared/src/lib/services/country-lookup.service.d.ts +2 -2
  23. package/shared/src/lib/tokens/index.d.ts +1 -0
  24. 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(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
  }
@@ -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.2",
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
@@ -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';
@@ -3,3 +3,4 @@ export declare const CDN_URLS: {
3
3
  val: string;
4
4
  };
5
5
  export declare const NISS_MASK = "000000/000-00";
6
+ export declare const LOOKUP_COUNTRY_URL = "https://services/lookupwpptservice/rest/lookup/getLookups?class=be.fgov.onerva.lookup.wppt.persistence.model.common.Country";
@@ -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>;