@onemrvapublic/design-system 19.2.0-develop.7 → 19.2.0-develop.9

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.
@@ -0,0 +1 @@
1
+ export * from './src/onemrva-mat-input-address.component';
@@ -0,0 +1,22 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { OnemRvaOSMService, OSMResult } from '@onemrvapublic/design-system/shared';
5
+ import * as i0 from "@angular/core";
6
+ export declare class OnemrvaMatInputAddressComponent implements OnInit {
7
+ private osm;
8
+ placeholder: string;
9
+ readonly: boolean;
10
+ address: FormControl;
11
+ label: string;
12
+ noEntriesFoundLabel: string;
13
+ hint: string;
14
+ getAddress: EventEmitter<OSMResult>;
15
+ results$: Observable<OSMResult[]>;
16
+ constructor(osm: OnemRvaOSMService);
17
+ isLoading: boolean;
18
+ ngOnInit(): void;
19
+ selectAddress(address: OSMResult): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaMatInputAddressComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatInputAddressComponent, "onemrva-mat-input-address", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "address": { "alias": "address"; "required": false; }; "label": { "alias": "label"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, { "getAddress": "getAddress"; }, never, never, true, never>;
22
+ }
@@ -0,0 +1,14 @@
1
+ onemrva-mat-input-address {
2
+ mat-form-field {
3
+ width: 100%;
4
+ }
5
+ .spin {
6
+ animation: spin 1s linear infinite;
7
+ }
8
+
9
+ @keyframes spin {
10
+ 100% {
11
+ transform: rotate(360deg);
12
+ }
13
+ }
14
+ }
@@ -9,6 +9,7 @@ export declare class OnemrvaMatInputPhoneComponent implements OnInit, OnDestroy
9
9
  phoneNumber: FormControl;
10
10
  label: string;
11
11
  noEntriesFoundLabel: string;
12
+ placeholder: string;
12
13
  placeholderLabel: string;
13
14
  defaultPrefix: string;
14
15
  searchAriaLabel: string;
@@ -30,5 +31,5 @@ export declare class OnemrvaMatInputPhoneComponent implements OnInit, OnDestroy
30
31
  errors(): "input.phone.invalid" | "input.phone.required" | "input.phone.unknown.error";
31
32
  phoneNumberValidator(code: string): ValidatorFn;
32
33
  static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaMatInputPhoneComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatInputPhoneComponent, "onemrva-mat-input-phone", never, { "readonly": { "alias": "readonly"; "required": false; }; "phoneNumber": { "alias": "phoneNumber"; "required": false; }; "label": { "alias": "label"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "placeholderLabel": { "alias": "placeholderLabel"; "required": false; }; "defaultPrefix": { "alias": "defaultPrefix"; "required": false; }; "searchAriaLabel": { "alias": "searchAriaLabel"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, { "getCountry": "getCountry"; }, never, never, true, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<OnemrvaMatInputPhoneComponent, "onemrva-mat-input-phone", never, { "readonly": { "alias": "readonly"; "required": false; }; "phoneNumber": { "alias": "phoneNumber"; "required": false; }; "label": { "alias": "label"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "placeholderLabel": { "alias": "placeholderLabel"; "required": false; }; "defaultPrefix": { "alias": "defaultPrefix"; "required": false; }; "searchAriaLabel": { "alias": "searchAriaLabel"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, { "getCountry": "getCountry"; }, never, never, true, never>;
34
35
  }
@@ -71,6 +71,7 @@ $mat-select-panel-padding: 8px;
71
71
 
72
72
  .mat-select-search-no-entries-found {
73
73
  padding-top: 8px;
74
+ padding-bottom: 8px;
74
75
  }
75
76
 
76
77
  .mat-select-search-clear {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onemrvapublic/design-system",
3
- "version": "19.2.0-develop.7",
3
+ "version": "19.2.0-develop.9",
4
4
  "description": "Design System Onem/Rva without theme included",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -75,6 +75,10 @@
75
75
  "types": "./mat-file-upload/index.d.ts",
76
76
  "default": "./fesm2022/onemrvapublic-design-system-mat-file-upload.mjs"
77
77
  },
78
+ "./mat-input-address": {
79
+ "types": "./mat-input-address/index.d.ts",
80
+ "default": "./fesm2022/onemrvapublic-design-system-mat-input-address.mjs"
81
+ },
78
82
  "./mat-input-birthplace": {
79
83
  "types": "./mat-input-birthplace/index.d.ts",
80
84
  "default": "./fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs"
@@ -3,5 +3,6 @@ export * from './cdn.service';
3
3
  export * from './cache.service';
4
4
  export * from './country-cdn.service';
5
5
  export * from './mime-cdn.service';
6
+ export * from './osm.service';
6
7
  export * from './onemrva-error-handler.service';
7
8
  export * from './onemrva-missing-translation.service';
@@ -0,0 +1,17 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export interface OSMResult {
5
+ display_name: string;
6
+ lat: string;
7
+ lon: string;
8
+ address: Record<string, string>;
9
+ }
10
+ export declare class OnemRvaOSMService {
11
+ private http;
12
+ private nominatimUrl;
13
+ constructor(http: HttpClient);
14
+ searchAddress(query: string): Observable<OSMResult[]>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnemRvaOSMService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<OnemRvaOSMService>;
17
+ }