@onemrvapublic/design-system 19.2.0-develop.1 → 19.2.0-develop.11

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 (62) hide show
  1. package/assets/i18n/de.json +3 -1
  2. package/assets/i18n/en.json +3 -1
  3. package/assets/i18n/fr.json +3 -1
  4. package/assets/i18n/nl.json +3 -1
  5. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +3 -3
  6. package/fesm2022/onemrvapublic-design-system-layout.mjs +52 -52
  7. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +7 -7
  8. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +10 -10
  9. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +6 -6
  10. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +3 -3
  11. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +3 -3
  12. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +3 -3
  13. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +19 -19
  14. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +108 -0
  15. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -0
  16. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +9 -10
  17. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
  18. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +7 -8
  19. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
  20. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +7 -9
  21. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
  22. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +8 -9
  23. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
  24. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +15 -14
  25. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
  26. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +7 -7
  27. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +7 -7
  28. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +3 -3
  29. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +19 -9
  30. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
  31. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +19 -19
  32. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +13 -13
  33. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +3 -3
  34. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +15 -16
  35. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
  36. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +7 -7
  37. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +7 -7
  38. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +7 -7
  39. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +10 -10
  40. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +7 -7
  41. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +7 -7
  42. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +9 -9
  43. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +16 -16
  44. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +22 -22
  45. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +7 -7
  46. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +10 -10
  47. package/fesm2022/onemrvapublic-design-system-page-error.mjs +6 -6
  48. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +16 -16
  49. package/fesm2022/onemrvapublic-design-system-shared.mjs +334 -62
  50. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
  51. package/mat-input-address/index.d.ts +1 -0
  52. package/mat-input-address/src/onemrva-mat-input-address.component.d.ts +28 -0
  53. package/mat-input-address/src/onemrva-mat-input-address.component.scss +14 -0
  54. package/mat-input-phone/src/onemrva-mat-input-phone.component.d.ts +2 -1
  55. package/mat-select-search/src/mat-select-search.component.scss +1 -0
  56. package/package.json +5 -1
  57. package/shared/src/lib/directives/date-format.directive.d.ts +19 -0
  58. package/shared/src/lib/directives/index.d.ts +1 -0
  59. package/shared/src/lib/directives/mat-row-clickable.directive.d.ts +2 -0
  60. package/shared/src/lib/services/index.d.ts +1 -0
  61. package/shared/src/lib/services/osm.service.d.ts +45 -0
  62. package/shared/src/lib/shared.module.d.ts +2 -1
@@ -0,0 +1 @@
1
+ export * from './src/onemrva-mat-input-address.component';
@@ -0,0 +1,28 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
5
+ import { OnemRvaOSMService, OSMResult } from '@onemrvapublic/design-system/shared';
6
+ import * as i0 from "@angular/core";
7
+ export declare class OnemrvaMatInputAddressComponent implements OnInit {
8
+ private osm;
9
+ placeholder: string;
10
+ readonly: boolean;
11
+ address: FormControl;
12
+ label: string;
13
+ noEntriesFoundLabel: string;
14
+ hint: string;
15
+ getAddress: EventEmitter<OSMResult>;
16
+ autocompleteTrigger: MatAutocompleteTrigger;
17
+ results$: Observable<OSMResult[]>;
18
+ constructor(osm: OnemRvaOSMService);
19
+ isLoading: boolean;
20
+ firstResult: null | OSMResult;
21
+ showNoResult: boolean;
22
+ ngOnInit(): void;
23
+ selectAddress(address: OSMResult, emit?: boolean): void;
24
+ clear(): void;
25
+ handleEnter(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaMatInputAddressComponent, never>;
27
+ 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>;
28
+ }
@@ -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.1",
3
+ "version": "19.2.0-develop.11",
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"
@@ -0,0 +1,19 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class OnemrvaDateFormatDirective {
4
+ private el;
5
+ private readonly template;
6
+ constructor(el: ElementRef<HTMLInputElement>);
7
+ onPaste(event: ClipboardEvent): void;
8
+ onCut(event: ClipboardEvent): void;
9
+ onFocus(): void;
10
+ onClick(): void;
11
+ onKeyDown(event: KeyboardEvent): void;
12
+ private emitInputEvent;
13
+ onBlur(): void;
14
+ private replaceCharAt;
15
+ private setCaretToNextEditable;
16
+ private sanitizeDateInput;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaDateFormatDirective, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OnemrvaDateFormatDirective, "[onemrvaDateFormat]", never, {}, {}, never, never, true, never>;
19
+ }
@@ -6,3 +6,4 @@ export * from './color.directive';
6
6
  export * from './mask.directive';
7
7
  export * from './clipboard.directive';
8
8
  export * from './iconRight.directive';
9
+ export * from './date-format.directive';
@@ -5,6 +5,8 @@ export declare class MatRowClickableDirective {
5
5
  matRowClickable: EventEmitter<any>;
6
6
  color: OnemrvaMatColor;
7
7
  click(): void;
8
+ /** @hidden @internal */
9
+ get _isClickable(): boolean;
8
10
  cssClass: boolean;
9
11
  /** @hidden @internal */
10
12
  get _isPrimary(): boolean;
@@ -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,45 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export interface OSMAddress {
5
+ house_number?: string;
6
+ road?: string;
7
+ village?: string;
8
+ municipality?: string;
9
+ county?: string;
10
+ state?: string;
11
+ 'ISO3166-2-lvl6'?: string;
12
+ postcode?: string;
13
+ neighbourhood?: string;
14
+ city_district?: string;
15
+ city?: string;
16
+ region?: string;
17
+ suburb?: string;
18
+ country?: string;
19
+ country_code?: string;
20
+ }
21
+ export interface OSMResult {
22
+ place_id: number;
23
+ licence: string;
24
+ osm_type: string;
25
+ osm_id: number;
26
+ lat: string;
27
+ lon: string;
28
+ class: string;
29
+ type: string;
30
+ place_rank: number;
31
+ importance: number;
32
+ addresstype: string;
33
+ name: string;
34
+ display_name: string;
35
+ address: OSMAddress;
36
+ boundingbox: [string, string, string, string];
37
+ }
38
+ export declare class OnemRvaOSMService {
39
+ private http;
40
+ private nominatimUrl;
41
+ constructor(http: HttpClient);
42
+ searchAddress(query: string, format?: string, addressdetails?: number, limit?: number): Observable<OSMResult[]>;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnemRvaOSMService, never>;
44
+ static ɵprov: i0.ɵɵInjectableDeclaration<OnemRvaOSMService>;
45
+ }
@@ -6,8 +6,9 @@ import * as i4 from "./directives/iconRight.directive";
6
6
  import * as i5 from "./directives/if-width-is.directive";
7
7
  import * as i6 from "./directives/color.directive";
8
8
  import * as i7 from "./directives/mask.directive";
9
+ import * as i8 from "./directives/date-format.directive";
9
10
  export declare class OnemrvaSharedModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaSharedModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<OnemrvaSharedModule, never, [typeof i1.DigitOnlyDirective, typeof i2.MatRowClickableDirective, typeof i3.OnemRvaClipboardDirective, typeof i4.OnemRvaIconRightDirective, typeof i5.IfWidthIsDirective, typeof i6.OnemRvaColorDirective, typeof i7.OnemrvaMaskDirective], [typeof i1.DigitOnlyDirective, typeof i2.MatRowClickableDirective, typeof i3.OnemRvaClipboardDirective, typeof i4.OnemRvaIconRightDirective, typeof i5.IfWidthIsDirective, typeof i6.OnemRvaColorDirective, typeof i7.OnemrvaMaskDirective]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OnemrvaSharedModule, never, [typeof i1.DigitOnlyDirective, typeof i2.MatRowClickableDirective, typeof i3.OnemRvaClipboardDirective, typeof i4.OnemRvaIconRightDirective, typeof i5.IfWidthIsDirective, typeof i6.OnemRvaColorDirective, typeof i7.OnemrvaMaskDirective, typeof i8.OnemrvaDateFormatDirective], [typeof i1.DigitOnlyDirective, typeof i2.MatRowClickableDirective, typeof i3.OnemRvaClipboardDirective, typeof i4.OnemRvaIconRightDirective, typeof i5.IfWidthIsDirective, typeof i6.OnemRvaColorDirective, typeof i7.OnemrvaMaskDirective, typeof i8.OnemrvaDateFormatDirective]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<OnemrvaSharedModule>;
13
14
  }