@metadev/lux 0.15.3 → 0.16.0

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.
@@ -1,9 +1,9 @@
1
- import { EventEmitter, OnInit, ElementRef, TemplateRef } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
2
  import { AbstractControl, ValidationErrors } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
3
4
  import { DataSource } from '../datasource';
4
- import { ModalService } from '../modal/modal.service';
5
5
  import { GeoPoint } from '../map/geopoint';
6
- import { Observable } from 'rxjs';
6
+ import { ModalService } from '../modal/modal.service';
7
7
  import { GeolocationService } from './geolocation.service';
8
8
  export declare class GeolocationComponent implements OnInit {
9
9
  private modalService;
@@ -11,6 +11,7 @@ export declare class GeolocationComponent implements OnInit {
11
11
  static idCounter: number;
12
12
  latitude: ElementRef;
13
13
  longitude: ElementRef;
14
+ map?: ElementRef;
14
15
  touched: boolean;
15
16
  dirty: boolean;
16
17
  lastErrors: ValidationErrors | null;
@@ -20,36 +21,52 @@ export declare class GeolocationComponent implements OnInit {
20
21
  latitudeValue?: number;
21
22
  longitudeValue?: number;
22
23
  isValidNumber: (value: string | number) => boolean;
23
- userErrors: {
24
- en: {
25
- required: string;
26
- minLatitude: string;
27
- maxLatitude: string;
28
- minLongitude: string;
29
- maxLongitude: string;
30
- };
31
- es: {
32
- required: string;
33
- minLatitude: string;
34
- maxLatitude: string;
35
- minLongitude: string;
36
- maxLongitude: string;
37
- };
38
- };
39
- cardinalPoints: {
24
+ i18n: {
40
25
  en: {
41
- north: string;
42
- south: string;
43
- east: string;
44
- west: string;
45
- unknown: string;
26
+ lat: string;
27
+ lon: string;
28
+ selectLocation: string;
29
+ location: string;
30
+ selectAction: string;
31
+ cancelAction: string;
32
+ closeAction: string;
33
+ typeToSearch: string;
34
+ cardinalPoints: {
35
+ north: string;
36
+ south: string;
37
+ east: string;
38
+ west: string;
39
+ };
40
+ userErrors: {
41
+ required: string;
42
+ minLatitude: string;
43
+ maxLatitude: string;
44
+ minLongitude: string;
45
+ maxLongitude: string;
46
+ };
46
47
  };
47
48
  es: {
48
- north: string;
49
- south: string;
50
- east: string;
51
- west: string;
52
- unknown: string;
49
+ lat: string;
50
+ lon: string;
51
+ selectLocation: string;
52
+ location: string;
53
+ selectAction: string;
54
+ cancelAction: string;
55
+ closeAction: string;
56
+ typeToSearch: string;
57
+ cardinalPoints: {
58
+ north: string;
59
+ south: string;
60
+ east: string;
61
+ west: string;
62
+ };
63
+ userErrors: {
64
+ required: string;
65
+ minLatitude: string;
66
+ maxLatitude: string;
67
+ minLongitude: string;
68
+ maxLongitude: string;
69
+ };
53
70
  };
54
71
  };
55
72
  minLatitude: number;
@@ -95,6 +112,7 @@ export declare class GeolocationComponent implements OnInit {
95
112
  onKeyPress(event: KeyboardEvent): void;
96
113
  checkClassName(): string;
97
114
  openModalMap(modal: TemplateRef<any>): void;
115
+ onSearchLocationChanged(newValue: GeoPoint, map: any): void;
98
116
  get mapTitle(): string;
99
117
  get self(): GeolocationComponent;
100
118
  getLabels(instance: GeolocationComponent, keys: GeoPoint[]): Observable<DataSource<GeoPoint, string>>;
@@ -78,6 +78,8 @@ export declare class InputComponent implements OnInit, ControlValueAccessor, Val
78
78
  isNumber(): boolean;
79
79
  isPercentage(): boolean;
80
80
  isPermillage(): boolean;
81
+ hasPrefix(): boolean;
82
+ hasPostfix(): boolean;
81
83
  checkClassName(): string;
82
84
  checkType(type: string): void;
83
85
  setEmailPatterns(): void;