@onemrvapublic/design-system 19.1.5-develop.1 → 19.2.0-develop.10

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 +18 -8
  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
@@ -13,6 +13,7 @@ import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
13
13
  import * as i1$2 from '@angular/cdk/layout';
14
14
  import { catchError as catchError$1, map, startWith as startWith$1 } from 'rxjs/operators';
15
15
  import * as i1$3 from '@angular/common/http';
16
+ import { HttpParams } from '@angular/common/http';
16
17
  import { __decorate } from 'tslib';
17
18
  import * as i1$4 from '@ngx-translate/core';
18
19
  import * as i1$5 from '@angular/material/snack-bar';
@@ -28,10 +29,10 @@ class ClipboardIconComponent {
28
29
  this._elementRef = _elementRef;
29
30
  this.clipboardService = clipboardService;
30
31
  }
31
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ClipboardIconComponent, deps: [{ token: i0.ElementRef }, { token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Component }); }
32
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: ClipboardIconComponent, isStandalone: true, selector: "lib-clipboard-icon", ngImport: i0, template: "<mat-icon [matTooltip]=\"'TEST'\">content_copy</mat-icon>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ClipboardIconComponent, deps: [{ token: i0.ElementRef }, { token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Component }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.4", type: ClipboardIconComponent, isStandalone: true, selector: "lib-clipboard-icon", ngImport: i0, template: "<mat-icon [matTooltip]=\"'TEST'\">content_copy</mat-icon>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
33
34
  }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ClipboardIconComponent, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ClipboardIconComponent, decorators: [{
35
36
  type: Component,
36
37
  args: [{ selector: 'lib-clipboard-icon', standalone: true, imports: [MatIconModule, MatTooltipModule], template: "<mat-icon [matTooltip]=\"'TEST'\">content_copy</mat-icon>\n" }]
37
38
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.Clipboard }] });
@@ -216,10 +217,10 @@ class WebComponentOverlayContainer {
216
217
  this._document.body.appendChild(containerwrap);
217
218
  this._containerElement = container;
218
219
  }
219
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WebComponentOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable }); }
220
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WebComponentOverlayContainer, providedIn: 'root' }); }
220
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: WebComponentOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable }); }
221
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: WebComponentOverlayContainer, providedIn: 'root' }); }
221
222
  }
222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: WebComponentOverlayContainer, decorators: [{
223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: WebComponentOverlayContainer, decorators: [{
223
224
  type: Injectable,
224
225
  args: [{ providedIn: 'root' }]
225
226
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -386,10 +387,10 @@ class DigitOnlyDirective {
386
387
  return;
387
388
  e.preventDefault();
388
389
  }
389
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DigitOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
390
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: DigitOnlyDirective, isStandalone: true, selector: "[digitOnly]", host: { listeners: { "keydown": "onKeyDown($event)" } }, ngImport: i0 }); }
390
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DigitOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
391
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", type: DigitOnlyDirective, isStandalone: true, selector: "[digitOnly]", host: { listeners: { "keydown": "onKeyDown($event)" } }, ngImport: i0 }); }
391
392
  }
392
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DigitOnlyDirective, decorators: [{
393
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DigitOnlyDirective, decorators: [{
393
394
  type: Directive,
394
395
  args: [{
395
396
  selector: '[digitOnly]',
@@ -410,6 +411,10 @@ class MatRowClickableDirective {
410
411
  this.matRowClickable.emit();
411
412
  }
412
413
  /** @hidden @internal */
414
+ get _isClickable() {
415
+ return this.matRowClickable.observed;
416
+ }
417
+ /** @hidden @internal */
413
418
  get _isPrimary() {
414
419
  return this.color === OnemrvaMatColor.PRIMARY;
415
420
  }
@@ -433,10 +438,10 @@ class MatRowClickableDirective {
433
438
  get _isInfo() {
434
439
  return this.color === OnemrvaMatColor.INFO;
435
440
  }
436
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: MatRowClickableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
437
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: MatRowClickableDirective, isStandalone: true, selector: "tr[matRowClickable]", inputs: { color: "color" }, outputs: { matRowClickable: "matRowClickable" }, host: { listeners: { "click": "click($event)" }, properties: { "class.onemrva-clickable-row": "this.cssClass", "class.mat-primary": "this._isPrimary", "class.mat-accent": "this._isAccent", "class.mat-error": "this._isError", "class.mat-warn": "this._isWarn", "class.mat-success": "this._isSuccess", "class.mat-info": "this._isInfo" } }, ngImport: i0 }); }
441
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: MatRowClickableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
442
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", type: MatRowClickableDirective, isStandalone: true, selector: "tr[matRowClickable]", inputs: { color: "color" }, outputs: { matRowClickable: "matRowClickable" }, host: { listeners: { "click": "click($event)" }, properties: { "class.clickable": "this._isClickable", "class.onemrva-clickable-row": "this.cssClass", "class.mat-primary": "this._isPrimary", "class.mat-accent": "this._isAccent", "class.mat-error": "this._isError", "class.mat-warn": "this._isWarn", "class.mat-success": "this._isSuccess", "class.mat-info": "this._isInfo" } }, ngImport: i0 }); }
438
443
  }
439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: MatRowClickableDirective, decorators: [{
444
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: MatRowClickableDirective, decorators: [{
440
445
  type: Directive,
441
446
  args: [{
442
447
  selector: 'tr[matRowClickable]',
@@ -449,6 +454,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
449
454
  }], click: [{
450
455
  type: HostListener,
451
456
  args: ['click', ['$event']]
457
+ }], _isClickable: [{
458
+ type: HostBinding,
459
+ args: ['class.clickable']
452
460
  }], cssClass: [{
453
461
  type: HostBinding,
454
462
  args: ['class.onemrva-clickable-row']
@@ -491,10 +499,10 @@ class IfWidthIsDirective {
491
499
  }
492
500
  });
493
501
  }
494
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: IfWidthIsDirective, deps: [{ token: i1$2.BreakpointObserver }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
495
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: IfWidthIsDirective, isStandalone: true, selector: "[ifWidthIs]", inputs: { ifWidthIs: "ifWidthIs" }, ngImport: i0 }); }
502
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: IfWidthIsDirective, deps: [{ token: i1$2.BreakpointObserver }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
503
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", type: IfWidthIsDirective, isStandalone: true, selector: "[ifWidthIs]", inputs: { ifWidthIs: "ifWidthIs" }, ngImport: i0 }); }
496
504
  }
497
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: IfWidthIsDirective, decorators: [{
505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: IfWidthIsDirective, decorators: [{
498
506
  type: Directive,
499
507
  args: [{
500
508
  selector: '[ifWidthIs]',
@@ -535,10 +543,10 @@ class OnemRvaColorDirective {
535
543
  get _isInfo() {
536
544
  return this.color === OnemrvaMatColor.INFO;
537
545
  }
538
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaColorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
539
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: OnemRvaColorDirective, isStandalone: true, selector: "mat-card[color],mat-chip[color]", inputs: { color: "color" }, host: { properties: { "class.mat-primary": "this._isPrimary", "class.mat-accent": "this._isAccent", "class.mat-error": "this._isError", "class.mat-warn": "this._isWarn", "class.mat-success": "this._isSuccess", "class.mat-info": "this._isInfo" } }, ngImport: i0 }); }
546
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaColorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
547
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", type: OnemRvaColorDirective, isStandalone: true, selector: "mat-card[color],mat-chip[color]", inputs: { color: "color" }, host: { properties: { "class.mat-primary": "this._isPrimary", "class.mat-accent": "this._isAccent", "class.mat-error": "this._isError", "class.mat-warn": "this._isWarn", "class.mat-success": "this._isSuccess", "class.mat-info": "this._isInfo" } }, ngImport: i0 }); }
540
548
  }
541
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaColorDirective, decorators: [{
549
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaColorDirective, decorators: [{
542
550
  type: Directive,
543
551
  args: [{
544
552
  selector: 'mat-card[color],mat-chip[color]',
@@ -718,10 +726,10 @@ class OnemrvaMaskDirective {
718
726
  this.stackIdx = 0; // Current index in undo/redo stack
719
727
  this.markForDelete = false;
720
728
  }
721
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaMaskDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
722
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: OnemrvaMaskDirective, isStandalone: true, selector: "[onemrvamask]", inputs: { onemrvamask: "onemrvamask" }, host: { listeners: { "keydown": "onKeyDown($event)", "input": "onInput($event)" } }, ngImport: i0 }); }
729
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaMaskDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
730
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", type: OnemrvaMaskDirective, isStandalone: true, selector: "[onemrvamask]", inputs: { onemrvamask: "onemrvamask" }, host: { listeners: { "keydown": "onKeyDown($event)", "input": "onInput($event)" } }, ngImport: i0 }); }
723
731
  }
724
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaMaskDirective, decorators: [{
732
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaMaskDirective, decorators: [{
725
733
  type: Directive,
726
734
  args: [{
727
735
  selector: '[onemrvamask]',
@@ -783,10 +791,10 @@ class OnemRvaClipboardDirective {
783
791
  this.vcRef.clear();
784
792
  this.renderer.appendChild(this.elementRef.nativeElement, this.iconEl);
785
793
  }
786
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaClipboardDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Directive }); }
787
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: OnemRvaClipboardDirective, isStandalone: true, selector: "span[clipboard]", inputs: { clipboard: "clipboard" }, host: { properties: { "class": "this.class" } }, ngImport: i0 }); }
794
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaClipboardDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Directive }); }
795
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", type: OnemRvaClipboardDirective, isStandalone: true, selector: "span[clipboard]", inputs: { clipboard: "clipboard" }, host: { properties: { "class": "this.class" } }, ngImport: i0 }); }
788
796
  }
789
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaClipboardDirective, decorators: [{
797
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaClipboardDirective, decorators: [{
790
798
  type: Directive,
791
799
  args: [{
792
800
  selector: 'span[clipboard]',
@@ -806,10 +814,10 @@ class OnemRvaIconRightDirective {
806
814
  constructor() {
807
815
  this.class = true;
808
816
  }
809
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaIconRightDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
810
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: OnemRvaIconRightDirective, isStandalone: true, selector: "button[iconRight]", host: { properties: { "class.onemrva-icon-right": "this.class" } }, ngImport: i0 }); }
817
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaIconRightDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
818
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", type: OnemRvaIconRightDirective, isStandalone: true, selector: "button[iconRight]", host: { properties: { "class.onemrva-icon-right": "this.class" } }, ngImport: i0 }); }
811
819
  }
812
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaIconRightDirective, decorators: [{
820
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaIconRightDirective, decorators: [{
813
821
  type: Directive,
814
822
  args: [{
815
823
  selector: 'button[iconRight]',
@@ -820,6 +828,246 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
820
828
  args: ['class.onemrva-icon-right']
821
829
  }] } });
822
830
 
831
+ class OnemrvaDateFormatDirective {
832
+ constructor(el) {
833
+ this.el = el;
834
+ this.template = '__/__/____';
835
+ }
836
+ onPaste(event) {
837
+ const input = this.el.nativeElement;
838
+ // Get pasted content
839
+ const pasted = event.clipboardData?.getData('text/plain') || '';
840
+ const digitsOnly = pasted.replace(/\D/g, '');
841
+ if (!digitsOnly) {
842
+ event.preventDefault(); // Ignore invalid paste
843
+ return;
844
+ }
845
+ event.preventDefault(); // Stop default paste
846
+ // Start at current caret position
847
+ let pos = input.selectionStart ?? 0;
848
+ const chars = input.value.split('');
849
+ let digitIndex = 0;
850
+ while (pos < this.template.length && digitIndex < digitsOnly.length) {
851
+ if (this.template[pos] === '/') {
852
+ pos++;
853
+ continue;
854
+ }
855
+ chars[pos] = digitsOnly[digitIndex++];
856
+ pos++;
857
+ }
858
+ input.value = chars.join('');
859
+ this.emitInputEvent(input);
860
+ // Set caret after the last replaced character
861
+ this.setCaretToNextEditable(pos);
862
+ }
863
+ onCut(event) {
864
+ const input = this.el.nativeElement;
865
+ const start = input.selectionStart ?? 0;
866
+ const end = input.selectionEnd ?? 0;
867
+ // Capture the selected value (optional: log or store it)
868
+ const cutText = input.value.substring(start, end);
869
+ // Replace the selected portion with underscores (skip slashes)
870
+ const chars = input.value.split('');
871
+ for (let i = start; i < end; i++) {
872
+ if (this.template[i] !== '/') {
873
+ chars[i] = '_';
874
+ }
875
+ }
876
+ // Update input value
877
+ input.value = chars.join('');
878
+ this.emitInputEvent(input);
879
+ // Move caret to next editable position
880
+ this.setCaretToNextEditable(start);
881
+ // Prevent default cut behavior from modifying content further
882
+ event.preventDefault();
883
+ // ✅ Optionally copy to clipboard manually (optional)
884
+ if (event.clipboardData) {
885
+ event.clipboardData.setData('text/plain', cutText.replace(/\//g, ''));
886
+ }
887
+ }
888
+ onFocus() {
889
+ const input = this.el.nativeElement;
890
+ if (!input.value || input.value === this.template) {
891
+ input.value = this.template;
892
+ }
893
+ this.setCaretToNextEditable(0);
894
+ }
895
+ onClick() {
896
+ const input = this.el.nativeElement;
897
+ // Only reposition the caret if there's no selection (start === end)
898
+ const selectionStart = input.selectionStart ?? 0;
899
+ const selectionEnd = input.selectionEnd ?? 0;
900
+ if (selectionStart === selectionEnd) {
901
+ if (input.value === this.template) {
902
+ this.setCaretToNextEditable(0);
903
+ }
904
+ else {
905
+ this.setCaretToNextEditable(selectionStart);
906
+ }
907
+ }
908
+ }
909
+ onKeyDown(event) {
910
+ const input = this.el.nativeElement;
911
+ let pos = input.selectionStart ?? 0;
912
+ const allowedCtrlShortcuts = ['a', 'c', 'x', 'v'];
913
+ if (event.ctrlKey && allowedCtrlShortcuts.indexOf(event.key) >= 0) {
914
+ console.log(input.value);
915
+ if (event.key === 'x' && input.value === '') {
916
+ console.log(event.key);
917
+ input.value = this.template;
918
+ this.emitInputEvent(input);
919
+ }
920
+ return;
921
+ }
922
+ // Allow navigation
923
+ if (['ArrowLeft', 'ArrowRight', 'Tab'].includes(event.key))
924
+ return;
925
+ // Handle Backspace or Delete with selection
926
+ if (event.key === 'Backspace' || event.key === 'Delete') {
927
+ event.preventDefault();
928
+ const start = input.selectionStart ?? 0;
929
+ const end = input.selectionEnd ?? start;
930
+ // If there's a selection
931
+ if (end > start) {
932
+ const chars = input.value.split('');
933
+ for (let i = start; i < end; i++) {
934
+ if (this.template[i] !== '/') {
935
+ chars[i] = '_';
936
+ }
937
+ }
938
+ input.value = chars.join('');
939
+ this.emitInputEvent(input);
940
+ this.setCaretToNextEditable(start);
941
+ return;
942
+ }
943
+ // If no selection, handle as usual (delete previous or next char)
944
+ let pos = start;
945
+ if (event.key === 'Backspace' && pos > 0) {
946
+ do {
947
+ pos--;
948
+ } while (this.template[pos] === '/' && pos > 0);
949
+ this.replaceCharAt(input, pos, '_');
950
+ this.emitInputEvent(input);
951
+ this.setCaretToNextEditable(pos);
952
+ return;
953
+ }
954
+ if (event.key === 'Delete' && pos < this.template.length) {
955
+ while (this.template[pos] === '/' && pos < this.template.length) {
956
+ pos++;
957
+ }
958
+ this.replaceCharAt(input, pos, '_');
959
+ this.emitInputEvent(input);
960
+ this.setCaretToNextEditable(pos);
961
+ return;
962
+ }
963
+ }
964
+ // Handle Slash `/` key
965
+ if (event.key === '/' ||
966
+ event.key === '.' ||
967
+ event.key === '-' ||
968
+ event.key === ' ') {
969
+ event.preventDefault();
970
+ if (pos === 1 || pos === 4) {
971
+ // Typing `/` at end of day field
972
+ const currentVal = input.value.substring(pos - 1, pos);
973
+ if (!currentVal.includes('_')) {
974
+ this.replaceCharAt(input, pos - 1, '0');
975
+ this.replaceCharAt(input, pos, currentVal);
976
+ this.setCaretToNextEditable(pos + 2);
977
+ return;
978
+ }
979
+ }
980
+ // Default: just skip to next editable section if allowed
981
+ this.setCaretToNextEditable(pos + 1);
982
+ return;
983
+ }
984
+ // Handle Backspace
985
+ if (event.key === 'Backspace') {
986
+ event.preventDefault();
987
+ if (pos === 0)
988
+ return;
989
+ do {
990
+ pos--;
991
+ } while (this.template[pos] === '/' && pos > 0);
992
+ this.replaceCharAt(input, pos, '_');
993
+ this.setCaretToNextEditable(pos);
994
+ this.emitInputEvent(input);
995
+ return;
996
+ }
997
+ // Allow only digits
998
+ if (!/^\d$/.test(event.key)) {
999
+ event.preventDefault();
1000
+ return;
1001
+ }
1002
+ // Prevent typing beyond mask
1003
+ if (pos >= this.template.length) {
1004
+ event.preventDefault();
1005
+ return;
1006
+ }
1007
+ // Skip slashes forward
1008
+ while (this.template[pos] === '/' && pos < this.template.length) {
1009
+ pos++;
1010
+ }
1011
+ this.replaceCharAt(input, pos, event.key);
1012
+ event.preventDefault();
1013
+ this.setCaretToNextEditable(pos + 1);
1014
+ this.emitInputEvent(input);
1015
+ }
1016
+ emitInputEvent(input) {
1017
+ input.dispatchEvent(new Event('input', { bubbles: true }));
1018
+ }
1019
+ onBlur() {
1020
+ // Optionally keep the mask visible on blur — do nothing
1021
+ }
1022
+ replaceCharAt(input, index, char) {
1023
+ const value = input.value.split('');
1024
+ value[index] = char;
1025
+ input.value = value.join('');
1026
+ }
1027
+ setCaretToNextEditable(pos) {
1028
+ const input = this.el.nativeElement;
1029
+ while (this.template[pos] === '/' && pos < this.template.length) {
1030
+ pos++;
1031
+ }
1032
+ input.setSelectionRange(pos, pos);
1033
+ }
1034
+ sanitizeDateInput(input) {
1035
+ if (typeof input !== 'string')
1036
+ return '';
1037
+ return input
1038
+ .replace(/[.\s-]/g, '/') // Replace dot, space, dash with slash
1039
+ .replace(/[^0-9/]/g, '')
1040
+ .replace('//', ''); // Remove everything except digits and slash
1041
+ }
1042
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaDateFormatDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1043
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", type: OnemrvaDateFormatDirective, isStandalone: true, selector: "[onemrvaDateFormat]", host: { listeners: { "paste": "onPaste($event)", "cut": "onCut($event)", "focus": "onFocus()", "click": "onClick()", "keydown": "onKeyDown($event)", "blur": "onBlur()" } }, ngImport: i0 }); }
1044
+ }
1045
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaDateFormatDirective, decorators: [{
1046
+ type: Directive,
1047
+ args: [{
1048
+ selector: '[onemrvaDateFormat]',
1049
+ standalone: true,
1050
+ }]
1051
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { onPaste: [{
1052
+ type: HostListener,
1053
+ args: ['paste', ['$event']]
1054
+ }], onCut: [{
1055
+ type: HostListener,
1056
+ args: ['cut', ['$event']]
1057
+ }], onFocus: [{
1058
+ type: HostListener,
1059
+ args: ['focus']
1060
+ }], onClick: [{
1061
+ type: HostListener,
1062
+ args: ['click']
1063
+ }], onKeyDown: [{
1064
+ type: HostListener,
1065
+ args: ['keydown', ['$event']]
1066
+ }], onBlur: [{
1067
+ type: HostListener,
1068
+ args: ['blur']
1069
+ }] } });
1070
+
823
1071
  const directives = [
824
1072
  DigitOnlyDirective,
825
1073
  MatRowClickableDirective,
@@ -828,6 +1076,7 @@ const directives = [
828
1076
  IfWidthIsDirective,
829
1077
  OnemRvaColorDirective,
830
1078
  OnemrvaMaskDirective,
1079
+ OnemrvaDateFormatDirective,
831
1080
  ];
832
1081
 
833
1082
  /**
@@ -938,10 +1187,10 @@ class OnemrvaBcePipe {
938
1187
  return '?01?.???.???';
939
1188
  return `${strOut.substring(0, 4)}.${strOut.substring(4, 7)}.${strOut.substring(7, 10)}`;
940
1189
  }
941
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaBcePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
942
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaBcePipe, isStandalone: true, name: "onemrvaBce" }); }
1190
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaBcePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1191
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaBcePipe, isStandalone: true, name: "onemrvaBce" }); }
943
1192
  }
944
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaBcePipe, decorators: [{
1193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaBcePipe, decorators: [{
945
1194
  type: Pipe,
946
1195
  args: [{
947
1196
  name: 'onemrvaBce',
@@ -956,10 +1205,10 @@ class OnemrvaNissPipe {
956
1205
  return '??01??/???-??';
957
1206
  return `${strOut.substring(0, 6)}/${strOut.substring(6, 9)}-${strOut.substring(9, 11)}`;
958
1207
  }
959
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaNissPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
960
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaNissPipe, isStandalone: true, name: "onemrvaNiss" }); }
1208
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaNissPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1209
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaNissPipe, isStandalone: true, name: "onemrvaNiss" }); }
961
1210
  }
962
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaNissPipe, decorators: [{
1211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaNissPipe, decorators: [{
963
1212
  type: Pipe,
964
1213
  args: [{
965
1214
  name: 'onemrvaNiss',
@@ -997,10 +1246,10 @@ class CommonCountryLookupService {
997
1246
  return country || null;
998
1247
  }));
999
1248
  }
1000
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CommonCountryLookupService, deps: [{ token: i1$3.HttpClient }, { token: LOOKUP_COUNTRY_SERVICE_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
1001
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CommonCountryLookupService, providedIn: 'root' }); }
1249
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CommonCountryLookupService, deps: [{ token: i1$3.HttpClient }, { token: LOOKUP_COUNTRY_SERVICE_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
1250
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CommonCountryLookupService, providedIn: 'root' }); }
1002
1251
  }
1003
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CommonCountryLookupService, decorators: [{
1252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CommonCountryLookupService, decorators: [{
1004
1253
  type: Injectable,
1005
1254
  args: [{
1006
1255
  providedIn: 'root',
@@ -1028,10 +1277,10 @@ class CacheService {
1028
1277
  //console.log("DELETE " + key);
1029
1278
  localStorage.removeItem(key);
1030
1279
  }
1031
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1032
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CacheService, providedIn: 'root' }); }
1280
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1281
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CacheService, providedIn: 'root' }); }
1033
1282
  }
1034
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CacheService, decorators: [{
1283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CacheService, decorators: [{
1035
1284
  type: Injectable,
1036
1285
  args: [{
1037
1286
  providedIn: 'root',
@@ -1116,8 +1365,8 @@ class OnemRvaCDNService {
1116
1365
  this.renderer.appendChild(document.head, link);
1117
1366
  });
1118
1367
  }
1119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaCDNService, deps: [{ token: i0.RendererFactory2 }, { token: CacheService }, { token: i1$3.HttpClient }, { token: CDN_URL_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1120
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaCDNService, providedIn: 'root' }); }
1368
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaCDNService, deps: [{ token: i0.RendererFactory2 }, { token: CacheService }, { token: i1$3.HttpClient }, { token: CDN_URL_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1369
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaCDNService, providedIn: 'root' }); }
1121
1370
  }
1122
1371
  __decorate([
1123
1372
  HttpRequestCache(cdnService => ({
@@ -1126,7 +1375,7 @@ __decorate([
1126
1375
  ttl: 3600000,
1127
1376
  }))
1128
1377
  ], OnemRvaCDNService.prototype, "fetch", null);
1129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaCDNService, decorators: [{
1378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaCDNService, decorators: [{
1130
1379
  type: Injectable,
1131
1380
  args: [{
1132
1381
  providedIn: 'root',
@@ -1186,10 +1435,10 @@ class OnemRvaCDNCountryService {
1186
1435
  });
1187
1436
  }));
1188
1437
  }
1189
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaCDNCountryService, deps: [{ token: OnemRvaCDNService }, { token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1190
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaCDNCountryService, providedIn: 'root' }); }
1438
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaCDNCountryService, deps: [{ token: OnemRvaCDNService }, { token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1439
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaCDNCountryService, providedIn: 'root' }); }
1191
1440
  }
1192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaCDNCountryService, decorators: [{
1441
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaCDNCountryService, decorators: [{
1193
1442
  type: Injectable,
1194
1443
  args: [{
1195
1444
  providedIn: 'root',
@@ -1227,16 +1476,39 @@ class OnemRvaCDNMimeService {
1227
1476
  });
1228
1477
  }));
1229
1478
  }
1230
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaCDNMimeService, deps: [{ token: OnemRvaCDNService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1231
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaCDNMimeService, providedIn: 'root' }); }
1479
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaCDNMimeService, deps: [{ token: OnemRvaCDNService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1480
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaCDNMimeService, providedIn: 'root' }); }
1232
1481
  }
1233
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemRvaCDNMimeService, decorators: [{
1482
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaCDNMimeService, decorators: [{
1234
1483
  type: Injectable,
1235
1484
  args: [{
1236
1485
  providedIn: 'root',
1237
1486
  }]
1238
1487
  }], ctorParameters: () => [{ type: OnemRvaCDNService }] });
1239
1488
 
1489
+ class OnemRvaOSMService {
1490
+ constructor(http) {
1491
+ this.http = http;
1492
+ this.nominatimUrl = 'https://nominatim.openstreetmap.org/search';
1493
+ }
1494
+ searchAddress(query, format = 'json', addressdetails = 1, limit = 10) {
1495
+ const params = new HttpParams()
1496
+ .set('q', query)
1497
+ .set('format', format)
1498
+ .set('addressdetails', addressdetails)
1499
+ .set('limit', limit);
1500
+ return this.http.get(this.nominatimUrl, { params });
1501
+ }
1502
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaOSMService, deps: [{ token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1503
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaOSMService, providedIn: 'root' }); }
1504
+ }
1505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemRvaOSMService, decorators: [{
1506
+ type: Injectable,
1507
+ args: [{
1508
+ providedIn: 'root',
1509
+ }]
1510
+ }], ctorParameters: () => [{ type: i1$3.HttpClient }] });
1511
+
1240
1512
  class OnemrvaErrorHandler {
1241
1513
  constructor(_snackBar) {
1242
1514
  this._snackBar = _snackBar;
@@ -1253,10 +1525,10 @@ class OnemrvaErrorHandler {
1253
1525
  verticalPosition: this.verticalPosition,
1254
1526
  });
1255
1527
  }
1256
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaErrorHandler, deps: [{ token: i1$5.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable }); }
1257
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaErrorHandler }); }
1528
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaErrorHandler, deps: [{ token: i1$5.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable }); }
1529
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaErrorHandler }); }
1258
1530
  }
1259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaErrorHandler, decorators: [{
1531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaErrorHandler, decorators: [{
1260
1532
  type: Injectable
1261
1533
  }], ctorParameters: () => [{ type: i1$5.MatSnackBar }] });
1262
1534
 
@@ -1404,11 +1676,11 @@ const bankAccountValidator = () => {
1404
1676
  };
1405
1677
 
1406
1678
  class OnemrvaSharedModule {
1407
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1408
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaSharedModule, imports: [DigitOnlyDirective, MatRowClickableDirective, OnemRvaClipboardDirective, OnemRvaIconRightDirective, IfWidthIsDirective, OnemRvaColorDirective, OnemrvaMaskDirective], exports: [DigitOnlyDirective, MatRowClickableDirective, OnemRvaClipboardDirective, OnemRvaIconRightDirective, IfWidthIsDirective, OnemRvaColorDirective, OnemrvaMaskDirective] }); }
1409
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaSharedModule }); }
1679
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1680
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaSharedModule, imports: [DigitOnlyDirective, MatRowClickableDirective, OnemRvaClipboardDirective, OnemRvaIconRightDirective, IfWidthIsDirective, OnemRvaColorDirective, OnemrvaMaskDirective, OnemrvaDateFormatDirective], exports: [DigitOnlyDirective, MatRowClickableDirective, OnemRvaClipboardDirective, OnemRvaIconRightDirective, IfWidthIsDirective, OnemRvaColorDirective, OnemrvaMaskDirective, OnemrvaDateFormatDirective] }); }
1681
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaSharedModule }); }
1410
1682
  }
1411
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaSharedModule, decorators: [{
1683
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaSharedModule, decorators: [{
1412
1684
  type: NgModule,
1413
1685
  args: [{
1414
1686
  imports: [...directives],
@@ -1468,10 +1740,10 @@ class OnemrvaNativeDateAdapter extends NativeDateAdapter {
1468
1740
  this.destroyNotifier$.next();
1469
1741
  this.destroyNotifier$.complete();
1470
1742
  }
1471
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaNativeDateAdapter, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1472
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaNativeDateAdapter }); }
1743
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaNativeDateAdapter, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1744
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaNativeDateAdapter }); }
1473
1745
  }
1474
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaNativeDateAdapter, decorators: [{
1746
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaNativeDateAdapter, decorators: [{
1475
1747
  type: Injectable
1476
1748
  }], ctorParameters: () => [{ type: i1$4.TranslateService }] });
1477
1749
 
@@ -1734,10 +2006,10 @@ class OnemrvaLuxonDateAdapter extends DateAdapter {
1734
2006
  outputCalendar: this._defaultOutputCalendar,
1735
2007
  };
1736
2008
  }
1737
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaLuxonDateAdapter, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1738
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaLuxonDateAdapter }); }
2009
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaLuxonDateAdapter, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2010
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaLuxonDateAdapter }); }
1739
2011
  }
1740
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnemrvaLuxonDateAdapter, decorators: [{
2012
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OnemrvaLuxonDateAdapter, decorators: [{
1741
2013
  type: Injectable
1742
2014
  }], ctorParameters: () => [{ type: i1$4.TranslateService }] });
1743
2015
 
@@ -1821,5 +2093,5 @@ function onemrvaThemeProvider() {
1821
2093
  * Generated bundle index. Do not edit.
1822
2094
  */
1823
2095
 
1824
- export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, CacheService, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, LOOKUP_COUNTRY_SERVICE_URL, LOOKUP_COUNTRY_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, OnemrvaErrorHandler, OnemrvaLuxonDateAdapter, OnemrvaMaskDirective, OnemrvaMissingTranslationHandler, OnemrvaNativeDateAdapter, OnemrvaNissPipe, OnemrvaSharedModule, OnemrvaTranslateCDNLoader, OnemrvaTranslateHttpLoader, OnemrvaValidators, RequestTimes, SEPA_ONLY_SUPPORTED_COUNTRIES, WebComponentOverlayContainer, bankAccountValidator, directives, onemrvaDateLuxonProvider, onemrvaDateLuxonYearMonthProvider, onemrvaDateNativeProvider, onemrvaDateNativeYearMonthProvider, onemrvaThemeProvider, setTranslationLanguage, setTranslationLanguageFromWO };
2096
+ export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, CacheService, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, LOOKUP_COUNTRY_SERVICE_URL, LOOKUP_COUNTRY_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, OnemRvaOSMService, OnemrvaBcePipe, OnemrvaDateFormatDirective, OnemrvaErrorHandler, OnemrvaLuxonDateAdapter, OnemrvaMaskDirective, OnemrvaMissingTranslationHandler, OnemrvaNativeDateAdapter, OnemrvaNissPipe, OnemrvaSharedModule, OnemrvaTranslateCDNLoader, OnemrvaTranslateHttpLoader, OnemrvaValidators, RequestTimes, SEPA_ONLY_SUPPORTED_COUNTRIES, WebComponentOverlayContainer, bankAccountValidator, directives, onemrvaDateLuxonProvider, onemrvaDateLuxonYearMonthProvider, onemrvaDateNativeProvider, onemrvaDateNativeYearMonthProvider, onemrvaThemeProvider, setTranslationLanguage, setTranslationLanguageFromWO };
1825
2097
  //# sourceMappingURL=onemrvapublic-design-system-shared.mjs.map