@metadev/lux 0.27.0 → 0.29.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.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/esm2022/lib/autocomplete/autocomplete.component.mjs +488 -488
- package/esm2022/lib/autocomplete-list/autocomplete-list.component.mjs +259 -259
- package/esm2022/lib/breadcrumb/breadcrumb.component.mjs +78 -78
- package/esm2022/lib/checkbox/checkbox.component.mjs +156 -156
- package/esm2022/lib/datasource.mjs +1 -1
- package/esm2022/lib/datetime/datetime.component.mjs +312 -312
- package/esm2022/lib/filter/filter.component.mjs +158 -158
- package/esm2022/lib/geolocation/geolocation.component.mjs +423 -423
- package/esm2022/lib/geolocation/geolocation.service.mjs +123 -123
- package/esm2022/lib/geolocation/openlayer-loader.service.mjs +62 -62
- package/esm2022/lib/helperFns.mjs +118 -118
- package/esm2022/lib/input/input.component.mjs +469 -469
- package/esm2022/lib/input/regexp.service.mjs +195 -195
- package/esm2022/lib/lang.mjs +9 -9
- package/esm2022/lib/lux.module.mjs +118 -118
- package/esm2022/lib/map/geopoint.mjs +1 -1
- package/esm2022/lib/map/map.component.mjs +275 -275
- package/esm2022/lib/modal/modal-backdrop.mjs +24 -24
- package/esm2022/lib/modal/modal-config.mjs +11 -11
- package/esm2022/lib/modal/modal-dismiss-reasons.mjs +5 -5
- package/esm2022/lib/modal/modal-ref.mjs +101 -101
- package/esm2022/lib/modal/modal-stack.mjs +182 -182
- package/esm2022/lib/modal/modal-window.mjs +118 -118
- package/esm2022/lib/modal/modal.service.mjs +27 -27
- package/esm2022/lib/modal/util.mjs +82 -82
- package/esm2022/lib/pagination/pagination.component.mjs +144 -144
- package/esm2022/lib/pagination/pagination.mjs +1 -1
- package/esm2022/lib/radiogroup/radiogroup.component.mjs +129 -129
- package/esm2022/lib/select/select.component.mjs +148 -148
- package/esm2022/lib/tooltip/placement.mjs +7 -7
- package/esm2022/lib/tooltip/tooltip-context.mjs +1 -1
- package/esm2022/lib/tooltip/tooltip.component.mjs +21 -21
- package/esm2022/lib/tooltip/tooltip.directive.mjs +69 -69
- package/esm2022/lib/tooltip/tooltip.service.mjs +137 -137
- package/esm2022/lib/tooltip/tooltop-content.mjs +8 -8
- package/esm2022/lib/voice-recognition/voice-recognition.directive.mjs +79 -79
- package/esm2022/lib/window/window.service.mjs +46 -46
- package/esm2022/metadev-lux.mjs +4 -4
- package/esm2022/public-api.mjs +20 -20
- package/fesm2022/metadev-lux.mjs +4372 -4372
- package/fesm2022/metadev-lux.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/autocomplete/autocomplete.component.d.ts +81 -81
- package/lib/autocomplete-list/autocomplete-list.component.d.ts +65 -65
- package/lib/breadcrumb/breadcrumb.component.d.ts +22 -22
- package/lib/checkbox/checkbox.component.d.ts +47 -47
- package/lib/datasource.d.ts +13 -13
- package/lib/datetime/datetime.component.d.ts +69 -69
- package/lib/filter/filter.component.d.ts +51 -51
- package/lib/geolocation/geolocation.component.d.ts +123 -123
- package/lib/geolocation/geolocation.service.d.ts +32 -32
- package/lib/geolocation/openlayer-loader.service.d.ts +7 -7
- package/lib/helperFns.d.ts +15 -15
- package/lib/input/input.component.d.ts +108 -108
- package/lib/input/regexp.service.d.ts +15 -15
- package/lib/lang.d.ts +2 -2
- package/lib/lux.module.d.ts +27 -27
- package/lib/map/geopoint.d.ts +7 -7
- package/lib/map/map.component.d.ts +39 -39
- package/lib/modal/modal-backdrop.d.ts +8 -8
- package/lib/modal/modal-config.d.ts +14 -14
- package/lib/modal/modal-dismiss-reasons.d.ts +4 -4
- package/lib/modal/modal-ref.d.ts +41 -41
- package/lib/modal/modal-stack.d.ts +31 -31
- package/lib/modal/modal-window.d.ts +28 -28
- package/lib/modal/modal.service.d.ts +19 -19
- package/lib/modal/util.d.ts +40 -40
- package/lib/pagination/pagination.component.d.ts +52 -52
- package/lib/pagination/pagination.d.ts +10 -10
- package/lib/radiogroup/radiogroup.component.d.ts +37 -37
- package/lib/select/select.component.d.ts +38 -38
- package/lib/tooltip/placement.d.ts +7 -7
- package/lib/tooltip/tooltip-context.d.ts +3 -3
- package/lib/tooltip/tooltip.component.d.ts +11 -11
- package/lib/tooltip/tooltip.directive.d.ts +27 -27
- package/lib/tooltip/tooltip.service.d.ts +20 -20
- package/lib/tooltip/tooltop-content.d.ts +6 -6
- package/lib/voice-recognition/voice-recognition.directive.d.ts +16 -16
- package/lib/window/window.service.d.ts +11 -11
- package/package.json +3 -4
- package/public-api.d.ts +18 -18
|
@@ -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": { "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
|
+
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": { "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
|
+
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
|
+
}
|
package/lib/helperFns.d.ts
CHANGED
|
@@ -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;
|