@metadev/lux 0.26.0 → 0.28.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.
Files changed (113) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/esm2022/lib/autocomplete/autocomplete.component.mjs +488 -0
  4. package/esm2022/lib/autocomplete-list/autocomplete-list.component.mjs +259 -0
  5. package/esm2022/lib/breadcrumb/breadcrumb.component.mjs +78 -0
  6. package/esm2022/lib/checkbox/checkbox.component.mjs +156 -0
  7. package/{esm2020 → esm2022}/lib/datasource.mjs +1 -1
  8. package/esm2022/lib/datetime/datetime.component.mjs +312 -0
  9. package/esm2022/lib/filter/filter.component.mjs +158 -0
  10. package/esm2022/lib/geolocation/geolocation.component.mjs +423 -0
  11. package/esm2022/lib/geolocation/geolocation.service.mjs +123 -0
  12. package/{esm2020 → esm2022}/lib/geolocation/openlayer-loader.service.mjs +62 -62
  13. package/esm2022/lib/helperFns.mjs +118 -0
  14. package/esm2022/lib/input/input.component.mjs +469 -0
  15. package/{esm2020 → esm2022}/lib/input/regexp.service.mjs +195 -195
  16. package/{esm2020 → esm2022}/lib/lang.mjs +8 -8
  17. package/esm2022/lib/lux.module.mjs +119 -0
  18. package/{esm2020 → esm2022}/lib/map/geopoint.mjs +1 -1
  19. package/esm2022/lib/map/map.component.mjs +275 -0
  20. package/esm2022/lib/modal/modal-backdrop.mjs +25 -0
  21. package/esm2022/lib/modal/modal-config.mjs +12 -0
  22. package/{esm2020 → esm2022}/lib/modal/modal-dismiss-reasons.mjs +5 -5
  23. package/esm2022/lib/modal/modal-ref.mjs +101 -0
  24. package/esm2022/lib/modal/modal-stack.mjs +182 -0
  25. package/esm2022/lib/modal/modal-window.mjs +125 -0
  26. package/esm2022/lib/modal/modal.service.mjs +28 -0
  27. package/esm2022/lib/modal/util.mjs +82 -0
  28. package/esm2022/lib/pagination/pagination.component.mjs +144 -0
  29. package/{esm2020 → esm2022}/lib/pagination/pagination.mjs +1 -1
  30. package/esm2022/lib/radiogroup/radiogroup.component.mjs +129 -0
  31. package/esm2022/lib/select/select.component.mjs +148 -0
  32. package/{esm2020 → esm2022}/lib/tooltip/placement.mjs +7 -7
  33. package/{esm2020 → esm2022}/lib/tooltip/tooltip-context.mjs +1 -1
  34. package/esm2022/lib/tooltip/tooltip.component.mjs +24 -0
  35. package/esm2022/lib/tooltip/tooltip.directive.mjs +69 -0
  36. package/esm2022/lib/tooltip/tooltip.service.mjs +137 -0
  37. package/esm2022/lib/tooltip/tooltop-content.mjs +9 -0
  38. package/esm2022/lib/voice-recognition/voice-recognition.directive.mjs +79 -0
  39. package/{esm2020 → esm2022}/lib/window/window.service.mjs +45 -45
  40. package/{esm2020 → esm2022}/metadev-lux.mjs +4 -4
  41. package/{esm2020 → esm2022}/public-api.mjs +20 -20
  42. package/{fesm2020 → fesm2022}/metadev-lux.mjs +4377 -4260
  43. package/fesm2022/metadev-lux.mjs.map +1 -0
  44. package/index.d.ts +5 -5
  45. package/lib/autocomplete/autocomplete.component.d.ts +81 -81
  46. package/lib/autocomplete-list/autocomplete-list.component.d.ts +65 -65
  47. package/lib/breadcrumb/breadcrumb.component.d.ts +22 -22
  48. package/lib/checkbox/checkbox.component.d.ts +47 -47
  49. package/lib/datasource.d.ts +13 -13
  50. package/lib/datetime/datetime.component.d.ts +69 -69
  51. package/lib/filter/filter.component.d.ts +51 -51
  52. package/lib/geolocation/geolocation.component.d.ts +123 -123
  53. package/lib/geolocation/geolocation.service.d.ts +32 -32
  54. package/lib/geolocation/openlayer-loader.service.d.ts +7 -7
  55. package/lib/helperFns.d.ts +15 -15
  56. package/lib/input/input.component.d.ts +108 -108
  57. package/lib/input/regexp.service.d.ts +15 -15
  58. package/lib/lang.d.ts +2 -2
  59. package/lib/lux.module.d.ts +27 -27
  60. package/lib/map/geopoint.d.ts +7 -7
  61. package/lib/map/map.component.d.ts +39 -39
  62. package/lib/modal/modal-backdrop.d.ts +8 -8
  63. package/lib/modal/modal-config.d.ts +14 -14
  64. package/lib/modal/modal-dismiss-reasons.d.ts +4 -4
  65. package/lib/modal/modal-ref.d.ts +41 -41
  66. package/lib/modal/modal-stack.d.ts +31 -31
  67. package/lib/modal/modal-window.d.ts +28 -28
  68. package/lib/modal/modal.service.d.ts +19 -19
  69. package/lib/modal/util.d.ts +40 -40
  70. package/lib/pagination/pagination.component.d.ts +52 -52
  71. package/lib/pagination/pagination.d.ts +10 -10
  72. package/lib/radiogroup/radiogroup.component.d.ts +37 -37
  73. package/lib/select/select.component.d.ts +38 -38
  74. package/lib/tooltip/placement.d.ts +7 -7
  75. package/lib/tooltip/tooltip-context.d.ts +3 -3
  76. package/lib/tooltip/tooltip.component.d.ts +11 -11
  77. package/lib/tooltip/tooltip.directive.d.ts +27 -27
  78. package/lib/tooltip/tooltip.service.d.ts +20 -20
  79. package/lib/tooltip/tooltop-content.d.ts +6 -6
  80. package/lib/voice-recognition/voice-recognition.directive.d.ts +16 -16
  81. package/lib/window/window.service.d.ts +11 -11
  82. package/package.json +7 -14
  83. package/public-api.d.ts +18 -18
  84. package/esm2020/lib/autocomplete/autocomplete.component.mjs +0 -479
  85. package/esm2020/lib/autocomplete-list/autocomplete-list.component.mjs +0 -254
  86. package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +0 -75
  87. package/esm2020/lib/checkbox/checkbox.component.mjs +0 -154
  88. package/esm2020/lib/datetime/datetime.component.mjs +0 -306
  89. package/esm2020/lib/filter/filter.component.mjs +0 -152
  90. package/esm2020/lib/geolocation/geolocation.component.mjs +0 -407
  91. package/esm2020/lib/geolocation/geolocation.service.mjs +0 -120
  92. package/esm2020/lib/helperFns.mjs +0 -117
  93. package/esm2020/lib/input/input.component.mjs +0 -452
  94. package/esm2020/lib/lux.module.mjs +0 -124
  95. package/esm2020/lib/map/map.component.mjs +0 -264
  96. package/esm2020/lib/modal/modal-backdrop.mjs +0 -26
  97. package/esm2020/lib/modal/modal-config.mjs +0 -14
  98. package/esm2020/lib/modal/modal-ref.mjs +0 -91
  99. package/esm2020/lib/modal/modal-stack.mjs +0 -179
  100. package/esm2020/lib/modal/modal-window.mjs +0 -119
  101. package/esm2020/lib/modal/modal.service.mjs +0 -26
  102. package/esm2020/lib/modal/util.mjs +0 -83
  103. package/esm2020/lib/pagination/pagination.component.mjs +0 -137
  104. package/esm2020/lib/radiogroup/radiogroup.component.mjs +0 -130
  105. package/esm2020/lib/select/select.component.mjs +0 -149
  106. package/esm2020/lib/tooltip/tooltip.component.mjs +0 -23
  107. package/esm2020/lib/tooltip/tooltip.directive.mjs +0 -60
  108. package/esm2020/lib/tooltip/tooltip.service.mjs +0 -134
  109. package/esm2020/lib/tooltip/tooltop-content.mjs +0 -7
  110. package/esm2020/lib/voice-recognition/voice-recognition.directive.mjs +0 -73
  111. package/fesm2015/metadev-lux.mjs +0 -4347
  112. package/fesm2015/metadev-lux.mjs.map +0 -1
  113. package/fesm2020/metadev-lux.mjs.map +0 -1
@@ -1,51 +1,51 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- /** Filter component to query for objects. */
6
- export declare class FilterComponent implements ControlValueAccessor, OnInit, OnDestroy {
7
- static idCounter: number;
8
- private touched;
9
- private _searchValue;
10
- disabled: boolean;
11
- /** id for the input. If left blank, it is autogenerated */
12
- inputId: string;
13
- /** Placeholder default text. */
14
- placeholder: string;
15
- /** Search value introduced by the user. */
16
- get searchValue(): string;
17
- set searchValue(v: string);
18
- /** Search on type: (default true) Auto-search when user types in. */
19
- searchOnType: boolean;
20
- /** Custom aria label in case of not using a label */
21
- ariaLabel: string;
22
- private debounceValue;
23
- /** Debounce time in milliseconds. (defaults to 300 ms) */
24
- set debounce(val: number);
25
- get debounce(): number;
26
- /** Search value changed by user. */
27
- searchValueChange: EventEmitter<string>;
28
- searchValue$: Observable<string>;
29
- private subject;
30
- private sub;
31
- constructor();
32
- onChange: (value: any) => void;
33
- onTouched: () => void;
34
- writeValue(value: any): void;
35
- registerOnChange(onChange: any): void;
36
- registerOnTouched(onTouched: any): void;
37
- markAsTouched(): void;
38
- setDisabledState(disabled: boolean): void;
39
- ngOnInit(): void;
40
- ngOnDestroy(): void;
41
- clear(): void;
42
- search(): void;
43
- keyup(event: KeyboardEvent, newValue: string): void;
44
- onInputValueChange(newValue: string): void;
45
- private recreateObservable;
46
- private freeSubscriptions;
47
- private searchNow;
48
- private addEvent;
49
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "lux-filter", never, { "disabled": "disabled"; "inputId": "inputId"; "placeholder": "placeholder"; "searchValue": "searchValue"; "searchOnType": "searchOnType"; "ariaLabel": "aria-label"; "debounce": "debounce"; }, { "searchValueChange": "searchValueChange"; }, never, never, false, never>;
51
- }
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ /** Filter component to query for objects. */
6
+ export declare class FilterComponent implements ControlValueAccessor, OnInit, OnDestroy {
7
+ static idCounter: number;
8
+ private touched;
9
+ private _searchValue;
10
+ disabled: boolean;
11
+ /** id for the input. If left blank, it is autogenerated */
12
+ inputId: string;
13
+ /** Placeholder default text. */
14
+ placeholder: string;
15
+ /** Search value introduced by the user. */
16
+ get searchValue(): string;
17
+ set searchValue(v: string);
18
+ /** Search on type: (default true) Auto-search when user types in. */
19
+ searchOnType: boolean;
20
+ /** Custom aria label in case of not using a label */
21
+ ariaLabel: string;
22
+ private debounceValue;
23
+ /** Debounce time in milliseconds. (defaults to 300 ms) */
24
+ set debounce(val: number);
25
+ get debounce(): number;
26
+ /** Search value changed by user. */
27
+ searchValueChange: EventEmitter<string>;
28
+ searchValue$: Observable<string>;
29
+ private subject;
30
+ private sub;
31
+ constructor();
32
+ onChange: (value: any) => void;
33
+ onTouched: () => void;
34
+ writeValue(value: any): void;
35
+ registerOnChange(onChange: any): void;
36
+ registerOnTouched(onTouched: any): void;
37
+ markAsTouched(): void;
38
+ setDisabledState(disabled: boolean): void;
39
+ ngOnInit(): void;
40
+ ngOnDestroy(): void;
41
+ clear(): void;
42
+ search(): void;
43
+ keyup(event: KeyboardEvent, newValue: string): void;
44
+ onInputValueChange(newValue: string): void;
45
+ private recreateObservable;
46
+ private freeSubscriptions;
47
+ private searchNow;
48
+ private addEvent;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "lux-filter", never, { "disabled": { "alias": "disabled"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchValue": { "alias": "searchValue"; "required": false; }; "searchOnType": { "alias": "searchOnType"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; }, { "searchValueChange": "searchValueChange"; }, never, never, false, never>;
51
+ }
@@ -1,123 +1,123 @@
1
- import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
- import { AbstractControl, ValidationErrors } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import { DataSource } from '../datasource';
5
- import { GeoPoint } from '../map/geopoint';
6
- import { ModalService } from '../modal/modal.service';
7
- import { GeolocationService } from './geolocation.service';
8
- import * as i0 from "@angular/core";
9
- export declare class GeolocationComponent implements OnInit {
10
- private modalService;
11
- locationService: GeolocationService;
12
- static idCounter: number;
13
- latitude: ElementRef;
14
- longitude: ElementRef;
15
- map?: ElementRef;
16
- touched: boolean;
17
- dirty: boolean;
18
- lastErrors: ValidationErrors | null;
19
- private _disabled;
20
- private _required;
21
- private _value;
22
- latitudeValue?: number;
23
- longitudeValue?: number;
24
- isValidNumber: (value: string | number) => boolean;
25
- i18n: {
26
- en: {
27
- lat: string;
28
- lon: string;
29
- selectLocation: string;
30
- location: string;
31
- selectAction: string;
32
- cancelAction: string;
33
- closeAction: string;
34
- typeToSearch: string;
35
- cardinalPoints: {
36
- north: string;
37
- south: string;
38
- east: string;
39
- west: string;
40
- };
41
- userErrors: {
42
- required: string;
43
- minLatitude: string;
44
- maxLatitude: string;
45
- minLongitude: string;
46
- maxLongitude: string;
47
- };
48
- };
49
- es: {
50
- lat: string;
51
- lon: string;
52
- selectLocation: string;
53
- location: string;
54
- selectAction: string;
55
- cancelAction: string;
56
- closeAction: string;
57
- typeToSearch: string;
58
- cardinalPoints: {
59
- north: string;
60
- south: string;
61
- east: string;
62
- west: string;
63
- };
64
- userErrors: {
65
- required: string;
66
- minLatitude: string;
67
- maxLatitude: string;
68
- minLongitude: string;
69
- maxLongitude: string;
70
- };
71
- };
72
- };
73
- minLatitude: number;
74
- maxLatitude: number;
75
- minLongitude: number;
76
- maxLongitude: number;
77
- step: number;
78
- zoom: number;
79
- get className(): string;
80
- lang: string;
81
- inlineErrors: boolean;
82
- inputId: string;
83
- ariaLabel: string;
84
- readonly: boolean | null;
85
- set disabled(v: string | boolean);
86
- get disabled(): string | boolean;
87
- set required(v: boolean);
88
- get required(): boolean;
89
- set value(v: GeoPoint);
90
- get value(): GeoPoint;
91
- valueChange: EventEmitter<GeoPoint>;
92
- keyPress: EventEmitter<KeyboardEvent>;
93
- onChange: (value: any) => void;
94
- onTouched: () => void;
95
- constructor(modalService: ModalService, locationService: GeolocationService);
96
- writeValue(value: any): void;
97
- registerOnChange(onChange: any): void;
98
- registerOnTouched(onTouched: any): void;
99
- markAsTouched(): void;
100
- setDisabledState(disabled: boolean): void;
101
- private setLatitudeInControl;
102
- private setLongitudeInControl;
103
- clear(): void;
104
- isClearable(): boolean;
105
- registerOnValidatorChange(): void;
106
- validate(control: AbstractControl): ValidationErrors | null;
107
- ngOnInit(): void;
108
- roundToStepAndUpdateLatitudeAndLongitude(newLatitudeAndLongitude: number[]): void;
109
- onLostFocus(): void;
110
- onEventLatitude(newLatitude: string): void;
111
- onEventLongitude(newLongitude: string): void;
112
- onKeyPress(event: KeyboardEvent): void;
113
- checkClassName(): string;
114
- openModalMap(modal: TemplateRef<any>): void;
115
- onSearchLocationChanged(newValue: GeoPoint, map: any): void;
116
- get mapTitle(): string;
117
- get self(): GeolocationComponent;
118
- getLabels(instance: GeolocationComponent, keys: GeoPoint[]): Observable<DataSource<GeoPoint, string>>;
119
- getData(instance: GeolocationComponent, search: string): Observable<DataSource<GeoPoint, string>>;
120
- setPatterns(): void;
121
- static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationComponent, never>;
122
- static ɵcmp: i0.ɵɵComponentDeclaration<GeolocationComponent, "lux-geolocation", never, { "minLatitude": "minLatitude"; "maxLatitude": "maxLatitude"; "minLongitude": "minLongitude"; "maxLongitude": "maxLongitude"; "step": "step"; "zoom": "zoom"; "lang": "lang"; "inlineErrors": "inlineErrors"; "inputId": "inputId"; "ariaLabel": "aria-label"; "readonly": "readonly"; "disabled": "disabled"; "required": "required"; "value": "value"; }, { "valueChange": "valueChange"; "keyPress": "keyPress"; }, never, never, false, never>;
123
- }
1
+ import { ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
+ import { AbstractControl, ValidationErrors } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { DataSource } from '../datasource';
5
+ import { GeoPoint } from '../map/geopoint';
6
+ import { ModalService } from '../modal/modal.service';
7
+ import { GeolocationService } from './geolocation.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class GeolocationComponent implements OnInit {
10
+ private modalService;
11
+ locationService: GeolocationService;
12
+ static idCounter: number;
13
+ latitude: ElementRef;
14
+ longitude: ElementRef;
15
+ map?: ElementRef;
16
+ touched: boolean;
17
+ dirty: boolean;
18
+ lastErrors: ValidationErrors | null;
19
+ private _disabled;
20
+ private _required;
21
+ private _value;
22
+ latitudeValue?: number;
23
+ longitudeValue?: number;
24
+ isValidNumber: (value: string | number) => boolean;
25
+ i18n: {
26
+ en: {
27
+ lat: string;
28
+ lon: string;
29
+ selectLocation: string;
30
+ location: string;
31
+ selectAction: string;
32
+ cancelAction: string;
33
+ closeAction: string;
34
+ typeToSearch: string;
35
+ cardinalPoints: {
36
+ north: string;
37
+ south: string;
38
+ east: string;
39
+ west: string;
40
+ };
41
+ userErrors: {
42
+ required: string;
43
+ minLatitude: string;
44
+ maxLatitude: string;
45
+ minLongitude: string;
46
+ maxLongitude: string;
47
+ };
48
+ };
49
+ es: {
50
+ lat: string;
51
+ lon: string;
52
+ selectLocation: string;
53
+ location: string;
54
+ selectAction: string;
55
+ cancelAction: string;
56
+ closeAction: string;
57
+ typeToSearch: string;
58
+ cardinalPoints: {
59
+ north: string;
60
+ south: string;
61
+ east: string;
62
+ west: string;
63
+ };
64
+ userErrors: {
65
+ required: string;
66
+ minLatitude: string;
67
+ maxLatitude: string;
68
+ minLongitude: string;
69
+ maxLongitude: string;
70
+ };
71
+ };
72
+ };
73
+ minLatitude: number;
74
+ maxLatitude: number;
75
+ minLongitude: number;
76
+ maxLongitude: number;
77
+ step: number;
78
+ zoom: number;
79
+ get className(): string;
80
+ lang: string;
81
+ inlineErrors: boolean;
82
+ inputId: string;
83
+ ariaLabel: string;
84
+ readonly: boolean | null;
85
+ set disabled(v: string | boolean);
86
+ get disabled(): string | boolean;
87
+ set required(v: boolean);
88
+ get required(): boolean;
89
+ set value(v: GeoPoint);
90
+ get value(): GeoPoint;
91
+ valueChange: EventEmitter<GeoPoint>;
92
+ keyPress: EventEmitter<KeyboardEvent>;
93
+ onChange: (value: any) => void;
94
+ onTouched: () => void;
95
+ constructor(modalService: ModalService, locationService: GeolocationService);
96
+ writeValue(value: any): void;
97
+ registerOnChange(onChange: any): void;
98
+ registerOnTouched(onTouched: any): void;
99
+ markAsTouched(): void;
100
+ setDisabledState(disabled: boolean): void;
101
+ private setLatitudeInControl;
102
+ private setLongitudeInControl;
103
+ clear(): void;
104
+ isClearable(): boolean;
105
+ registerOnValidatorChange(): void;
106
+ validate(control: AbstractControl): ValidationErrors | null;
107
+ ngOnInit(): void;
108
+ roundToStepAndUpdateLatitudeAndLongitude(newLatitudeAndLongitude: number[]): void;
109
+ onLostFocus(): void;
110
+ onEventLatitude(newLatitude: string): void;
111
+ onEventLongitude(newLongitude: string): void;
112
+ onKeyPress(event: KeyboardEvent): void;
113
+ checkClassName(): string;
114
+ openModalMap(modal: TemplateRef<any>): void;
115
+ onSearchLocationChanged(newValue: GeoPoint, map: any): void;
116
+ get mapTitle(): string;
117
+ get self(): GeolocationComponent;
118
+ getLabels(instance: GeolocationComponent, keys: GeoPoint[]): Observable<DataSource<GeoPoint, string>>;
119
+ getData(instance: GeolocationComponent, search: string): Observable<DataSource<GeoPoint, string>>;
120
+ setPatterns(): void;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationComponent, never>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<GeolocationComponent, "lux-geolocation", never, { "minLatitude": { "alias": "minLatitude"; "required": false; }; "maxLatitude": { "alias": "maxLatitude"; "required": false; }; "minLongitude": { "alias": "minLongitude"; "required": false; }; "maxLongitude": { "alias": "maxLongitude"; "required": false; }; "step": { "alias": "step"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "inlineErrors": { "alias": "inlineErrors"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "keyPress": "keyPress"; }, never, never, false, never>;
123
+ }
@@ -1,32 +1,32 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { DataSource } from '../datasource';
3
- import { Observable } from 'rxjs';
4
- import { GeoPoint } from '../map/geopoint';
5
- import * as i0 from "@angular/core";
6
- interface SearchResult {
7
- place_id: number;
8
- lat: number;
9
- lon: number;
10
- display_name: string;
11
- icon: string;
12
- }
13
- export declare class GeolocationService {
14
- private http;
15
- private debouncePeriodMs;
16
- private cacheSize;
17
- private lastQueriesWithResults;
18
- private lastQueriesLru;
19
- private currentSearch$;
20
- private currentQuery$;
21
- constructor(http: HttpClient);
22
- searchGeolocation(query: string): Observable<SearchResult[]>;
23
- getLabels(instance: GeolocationService, keys: GeoPoint[]): Observable<DataSource<GeoPoint, string>>;
24
- getData(instance: GeolocationService, search: string): Observable<DataSource<GeoPoint, string>>;
25
- private getFromCache;
26
- private addToCache;
27
- private revomeFromCache;
28
- private getLatestQuery;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationService, never>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<GeolocationService>;
31
- }
32
- export {};
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { DataSource } from '../datasource';
3
+ import { Observable } from 'rxjs';
4
+ import { GeoPoint } from '../map/geopoint';
5
+ import * as i0 from "@angular/core";
6
+ interface SearchResult {
7
+ place_id: number;
8
+ lat: number;
9
+ lon: number;
10
+ display_name: string;
11
+ icon: string;
12
+ }
13
+ export declare class GeolocationService {
14
+ private http;
15
+ private debouncePeriodMs;
16
+ private cacheSize;
17
+ private lastQueriesWithResults;
18
+ private lastQueriesLru;
19
+ private currentSearch$;
20
+ private currentQuery$;
21
+ constructor(http: HttpClient);
22
+ searchGeolocation(query: string): Observable<SearchResult[]>;
23
+ getLabels(instance: GeolocationService, keys: GeoPoint[]): Observable<DataSource<GeoPoint, string>>;
24
+ getData(instance: GeolocationService, search: string): Observable<DataSource<GeoPoint, string>>;
25
+ private getFromCache;
26
+ private addToCache;
27
+ private revomeFromCache;
28
+ private getLatestQuery;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationService, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<GeolocationService>;
31
+ }
32
+ export {};
@@ -1,7 +1,7 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class OpenLayerLoaderService {
4
- load(): Observable<boolean>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<OpenLayerLoaderService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<OpenLayerLoaderService>;
7
- }
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class OpenLayerLoaderService {
4
+ load(): Observable<boolean>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenLayerLoaderService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<OpenLayerLoaderService>;
7
+ }
@@ -1,15 +1,15 @@
1
- export declare const exists: (value: any) => boolean;
2
- export declare const hasValue: (value: any) => boolean;
3
- export declare const isEmptyString: (value: string) => boolean;
4
- export declare const isValidEmail: (value: string) => boolean;
5
- export declare const isValidUrl: (value: string) => boolean;
6
- export declare const isValidRelativeUrl: (value: string) => boolean;
7
- export declare const isValidColor: (value: string) => boolean;
8
- export declare const isValidDate: (date: Date) => boolean;
9
- export declare const normalizeDate: (value: any) => string;
10
- export declare const addTimezoneOffset: (date: Date) => Date;
11
- export declare const isValidNumber: (value: string | number | undefined | null) => boolean;
12
- export declare const numberOfDecimalDigits: (x: number | string) => number | undefined;
13
- export declare const numberOfWholeDigits: (x: number | string) => number | undefined;
14
- export declare const roundToMultipleOf: (x: number, modulo: number) => number;
15
- export declare const isInitialAndEmpty: (previousValue: any, newValue: any) => boolean;
1
+ export declare const exists: (value: any) => boolean;
2
+ export declare const hasValue: (value: any) => boolean;
3
+ export declare const isEmptyString: (value: string) => boolean;
4
+ export declare const isValidEmail: (value: string) => boolean;
5
+ export declare const isValidUrl: (value: string) => boolean;
6
+ export declare const isValidRelativeUrl: (value: string) => boolean;
7
+ export declare const isValidColor: (value: string) => boolean;
8
+ export declare const isValidDate: (date: Date) => boolean;
9
+ export declare const normalizeDate: (value: any) => string;
10
+ export declare const addTimezoneOffset: (date: Date) => Date;
11
+ export declare const isValidNumber: (value: string | number | undefined | null) => boolean;
12
+ export declare const numberOfDecimalDigits: (x: number | string) => number | undefined;
13
+ export declare const numberOfWholeDigits: (x: number | string) => number | undefined;
14
+ export declare const roundToMultipleOf: (x: number, modulo: number) => number;
15
+ export declare const isInitialAndEmpty: (previousValue: any, newValue: any) => boolean;