@metadev/lux 0.30.0 → 0.32.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/fesm2022/metadev-lux.mjs +1107 -1066
- package/fesm2022/metadev-lux.mjs.map +1 -1
- package/index.d.ts +944 -3
- package/package.json +3 -3
- package/lib/autocomplete/autocomplete.component.d.ts +0 -81
- package/lib/autocomplete-list/autocomplete-list.component.d.ts +0 -65
- package/lib/breadcrumb/breadcrumb.component.d.ts +0 -22
- package/lib/checkbox/checkbox.component.d.ts +0 -47
- package/lib/datasource.d.ts +0 -13
- package/lib/datetime/datetime.component.d.ts +0 -69
- package/lib/filter/filter.component.d.ts +0 -51
- package/lib/geolocation/geolocation.component.d.ts +0 -123
- package/lib/geolocation/geolocation.service.d.ts +0 -32
- package/lib/geolocation/openlayer-loader.service.d.ts +0 -7
- package/lib/helperFns.d.ts +0 -15
- package/lib/input/input.component.d.ts +0 -108
- package/lib/input/regexp.service.d.ts +0 -15
- package/lib/lang.d.ts +0 -2
- package/lib/lux.module.d.ts +0 -27
- package/lib/map/geopoint.d.ts +0 -7
- package/lib/map/map.component.d.ts +0 -39
- package/lib/modal/modal-backdrop.d.ts +0 -8
- package/lib/modal/modal-config.d.ts +0 -14
- package/lib/modal/modal-dismiss-reasons.d.ts +0 -4
- package/lib/modal/modal-ref.d.ts +0 -41
- package/lib/modal/modal-stack.d.ts +0 -31
- package/lib/modal/modal-window.d.ts +0 -28
- package/lib/modal/modal.service.d.ts +0 -19
- package/lib/modal/util.d.ts +0 -40
- package/lib/pagination/pagination.component.d.ts +0 -52
- package/lib/pagination/pagination.d.ts +0 -10
- package/lib/radiogroup/radiogroup.component.d.ts +0 -37
- package/lib/select/select.component.d.ts +0 -38
- package/lib/tooltip/placement.d.ts +0 -7
- package/lib/tooltip/tooltip-context.d.ts +0 -3
- package/lib/tooltip/tooltip.component.d.ts +0 -11
- package/lib/tooltip/tooltip.directive.d.ts +0 -27
- package/lib/tooltip/tooltip.service.d.ts +0 -20
- package/lib/tooltip/tooltop-content.d.ts +0 -6
- package/lib/voice-recognition/voice-recognition.directive.d.ts +0 -16
- package/lib/window/window.service.d.ts +0 -11
- package/public-api.d.ts +0 -18
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metadev/lux",
|
|
3
3
|
"description": "Lux: Library with User Interface components for Angular.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.32.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Metadev S.L.",
|
|
7
7
|
"url": "https://metadev.pro"
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@angular/common": "
|
|
29
|
-
"@angular/core": "
|
|
28
|
+
"@angular/common": ">= 20.3.14 < 21",
|
|
29
|
+
"@angular/core": ">= 20.3.14 < 21",
|
|
30
30
|
"ol": "^6.5.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { DataSource, DataSourceItem, DecoratedDataSource } from '../datasource';
|
|
5
|
-
import * as i0_1 from "@angular/core";
|
|
6
|
-
export declare const LOST_FOCUS_TIME_WINDOW_MS = 200;
|
|
7
|
-
export declare class AutocompleteComponent implements ControlValueAccessor, Validator, OnInit, AfterViewInit {
|
|
8
|
-
private cd;
|
|
9
|
-
static idCounter: number;
|
|
10
|
-
i0: ElementRef;
|
|
11
|
-
completeDiv: ElementRef;
|
|
12
|
-
private _dataSource;
|
|
13
|
-
private _placeholder;
|
|
14
|
-
private _value;
|
|
15
|
-
private lostFocusHandled;
|
|
16
|
-
private t0;
|
|
17
|
-
showSpinner: boolean;
|
|
18
|
-
touched: boolean;
|
|
19
|
-
completionList: DecoratedDataSource;
|
|
20
|
-
showCompletion: boolean;
|
|
21
|
-
focusItem: DataSourceItem<any, string>;
|
|
22
|
-
valueChange: EventEmitter<any>;
|
|
23
|
-
dataSourceChange: EventEmitter<DataSource<any, string>>;
|
|
24
|
-
inputId: string;
|
|
25
|
-
disabled: boolean | null;
|
|
26
|
-
readonly: boolean | null;
|
|
27
|
-
label: string;
|
|
28
|
-
/** If canAddNewValues, user can type items not present in the data-source. */
|
|
29
|
-
canAddNewValues: boolean;
|
|
30
|
-
/** After cleaning the selection should the completion list remain open or closed:
|
|
31
|
-
* false: (default) close on filters, to clean a filter and select all.
|
|
32
|
-
* true: keep open (when the action most likely is to pick another one).
|
|
33
|
-
*/
|
|
34
|
-
keepOpenAfterDelete: boolean;
|
|
35
|
-
get value(): any;
|
|
36
|
-
set value(v: any);
|
|
37
|
-
get dataSource(): DataSource<any, string>;
|
|
38
|
-
set dataSource(v: DataSource<any, string>);
|
|
39
|
-
required: boolean;
|
|
40
|
-
set placeholder(v: string);
|
|
41
|
-
get placeholder(): string;
|
|
42
|
-
resolveLabelsFunction?: (instance: any, keys: any[]) => Observable<DataSource<any, string>>;
|
|
43
|
-
populateFunction?: (instance: any, search: string) => Observable<DataSource<any, string>>;
|
|
44
|
-
instance: any;
|
|
45
|
-
constructor(cd: ChangeDetectorRef);
|
|
46
|
-
onChange: (value: any) => void;
|
|
47
|
-
onTouched: () => void;
|
|
48
|
-
writeValue(value: any): void;
|
|
49
|
-
registerOnChange(onChange: any): void;
|
|
50
|
-
registerOnTouched(onTouched: any): void;
|
|
51
|
-
markAsTouched(): void;
|
|
52
|
-
setDisabledState(disabled: boolean): void;
|
|
53
|
-
registerOnValidatorChange(): void;
|
|
54
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
55
|
-
clear(): void;
|
|
56
|
-
private completeLabel;
|
|
57
|
-
ngOnInit(): void;
|
|
58
|
-
ngAfterViewInit(): void;
|
|
59
|
-
onInputResized(): void;
|
|
60
|
-
private setSameWidth;
|
|
61
|
-
onKeydown(event: KeyboardEvent, label: string): void;
|
|
62
|
-
onKeypress(event: KeyboardEvent, label: string): void;
|
|
63
|
-
onKeyup(event: KeyboardEvent, label: string): void;
|
|
64
|
-
private focusOnNext;
|
|
65
|
-
private focusOnPrevious;
|
|
66
|
-
onLostFocus(label: string): void;
|
|
67
|
-
complete(item: DataSourceItem<Record<string, unknown>, string>): void;
|
|
68
|
-
toggleCompletion(show: boolean, label: string): void;
|
|
69
|
-
get selectedOption(): string;
|
|
70
|
-
private ensureItemVisible;
|
|
71
|
-
private syncCustomValue;
|
|
72
|
-
/** Pick selection based on text filtering (ingnores drowdown state) */
|
|
73
|
-
private pickSelectionOrFirstMatch;
|
|
74
|
-
showCompletionList(text: string): void;
|
|
75
|
-
private spinnerVisibility;
|
|
76
|
-
private hasExternalDataSource;
|
|
77
|
-
private computeCompletionList;
|
|
78
|
-
static ɵfac: i0_1.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
|
|
79
|
-
static ɵcmp: i0_1.ɵɵComponentDeclaration<AutocompleteComponent, "lux-autocomplete", never, { "inputId": { "alias": "inputId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "label": { "alias": "label"; "required": false; }; "canAddNewValues": { "alias": "canAddNewValues"; "required": false; }; "keepOpenAfterDelete": { "alias": "keepOpenAfterDelete"; "required": false; }; "value": { "alias": "value"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "resolveLabelsFunction": { "alias": "resolveLabelsFunction"; "required": false; }; "populateFunction": { "alias": "populateFunction"; "required": false; }; "instance": { "alias": "instance"; "required": false; }; }, { "valueChange": "valueChange"; "dataSourceChange": "dataSourceChange"; }, never, never, false, never>;
|
|
80
|
-
}
|
|
81
|
-
export declare const selectElement: (completionList: DecoratedDataSource, label: string) => DataSourceItem<any, string>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { AutocompleteComponent } from '../autocomplete/autocomplete.component';
|
|
5
|
-
import { DataSource } from '../datasource';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class AutocompleteListComponent implements ControlValueAccessor, Validator, OnInit {
|
|
8
|
-
static idCounter: number;
|
|
9
|
-
auto: AutocompleteListComponent;
|
|
10
|
-
literals: {
|
|
11
|
-
en: {
|
|
12
|
-
placeholder: string;
|
|
13
|
-
deleteLabelTemplate: string;
|
|
14
|
-
addMessage: string;
|
|
15
|
-
};
|
|
16
|
-
es: {
|
|
17
|
-
placeholder: string;
|
|
18
|
-
deleteLabelTemplate: string;
|
|
19
|
-
addMessage: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
internalDataSource: DataSource<any, string>;
|
|
23
|
-
private autoPopulate;
|
|
24
|
-
private _value;
|
|
25
|
-
set value(val: any[]);
|
|
26
|
-
get value(): any[];
|
|
27
|
-
labels: string[];
|
|
28
|
-
newEntry: any;
|
|
29
|
-
canAdd: boolean;
|
|
30
|
-
touched: boolean;
|
|
31
|
-
private _lang;
|
|
32
|
-
get lang(): string;
|
|
33
|
-
set lang(l: string);
|
|
34
|
-
inputId: string;
|
|
35
|
-
dataSource: DataSource<any, any>;
|
|
36
|
-
placeholder?: string;
|
|
37
|
-
disabled: boolean;
|
|
38
|
-
deleteLabelTemplate?: string;
|
|
39
|
-
addMessage?: string;
|
|
40
|
-
required: boolean;
|
|
41
|
-
resolveLabelsFunction?: (instance: any, ids: any[]) => Observable<DataSource<any, string>>;
|
|
42
|
-
populateFunction?: (instance: any, search: string) => Observable<DataSource<any, string>>;
|
|
43
|
-
instance: any;
|
|
44
|
-
valueChange: EventEmitter<any[]>;
|
|
45
|
-
onChange: (value: any) => void;
|
|
46
|
-
onTouched: () => void;
|
|
47
|
-
writeValue(value: any): void;
|
|
48
|
-
registerOnChange(onChange: any): void;
|
|
49
|
-
registerOnTouched(onTouched: any): void;
|
|
50
|
-
markAsTouched(): void;
|
|
51
|
-
setDisabledState(disabled: boolean): void;
|
|
52
|
-
registerOnValidatorChange(): void;
|
|
53
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
54
|
-
ngOnInit(): void;
|
|
55
|
-
ensureLabelsForIds(): void;
|
|
56
|
-
removeAt(index: number): void;
|
|
57
|
-
onValueChange(): void;
|
|
58
|
-
onNewEntryChange(event: KeyboardEvent, auto: AutocompleteComponent): void;
|
|
59
|
-
populateWith(searchText: string): void;
|
|
60
|
-
updateCanAdd(): void;
|
|
61
|
-
addNew(auto: AutocompleteComponent): void;
|
|
62
|
-
getDeleteMessage(label: string): string;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteListComponent, never>;
|
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteListComponent, "lux-autocomplete-list", never, { "value": { "alias": "value"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "deleteLabelTemplate": { "alias": "deleteLabelTemplate"; "required": false; }; "addMessage": { "alias": "addMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "resolveLabelsFunction": { "alias": "resolveLabelsFunction"; "required": false; }; "populateFunction": { "alias": "populateFunction"; "required": false; }; "instance": { "alias": "instance"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
65
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Router, ActivatedRoute } from '@angular/router';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface BreadcrumbItem {
|
|
5
|
-
label: string;
|
|
6
|
-
url: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class LuxBreadcrumbComponent implements OnInit, OnDestroy {
|
|
9
|
-
private route;
|
|
10
|
-
private activedRoute;
|
|
11
|
-
breadcrumbs: BreadcrumbItem[];
|
|
12
|
-
private subs;
|
|
13
|
-
imagePath: string;
|
|
14
|
-
constructor(route: Router, activedRoute: ActivatedRoute);
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
private addBreadcrumbs;
|
|
18
|
-
private getUrl;
|
|
19
|
-
private getLabel;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LuxBreadcrumbComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuxBreadcrumbComponent, "lux-breadcrumb", never, {}, {}, never, never, false, never>;
|
|
22
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CheckboxComponent implements ControlValueAccessor, OnInit, AfterViewInit {
|
|
5
|
-
static idCounter: number;
|
|
6
|
-
ck: ElementRef;
|
|
7
|
-
private _lang;
|
|
8
|
-
set lang(l: string);
|
|
9
|
-
get lang(): string;
|
|
10
|
-
private internalValue;
|
|
11
|
-
get value(): boolean;
|
|
12
|
-
set value(v: boolean);
|
|
13
|
-
get tabindexValue(): string;
|
|
14
|
-
label: string;
|
|
15
|
-
name: string;
|
|
16
|
-
private _disabled;
|
|
17
|
-
get disabled(): boolean;
|
|
18
|
-
set disabled(v: boolean);
|
|
19
|
-
inputId: string;
|
|
20
|
-
literals: {
|
|
21
|
-
en: {
|
|
22
|
-
yesLabel: string;
|
|
23
|
-
noLabel: string;
|
|
24
|
-
};
|
|
25
|
-
es: {
|
|
26
|
-
yesLabel: string;
|
|
27
|
-
noLabel: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
touched: boolean;
|
|
31
|
-
valueChange: EventEmitter<boolean>;
|
|
32
|
-
constructor();
|
|
33
|
-
onChange: (value: any) => void;
|
|
34
|
-
onTouched: () => void;
|
|
35
|
-
writeValue(value: any): void;
|
|
36
|
-
registerOnChange(onChange: any): void;
|
|
37
|
-
registerOnTouched(onTouched: any): void;
|
|
38
|
-
markAsTouched(): void;
|
|
39
|
-
setDisabledState(disabled: boolean): void;
|
|
40
|
-
ngOnInit(): void;
|
|
41
|
-
ngAfterViewInit(): void;
|
|
42
|
-
clicked(): void;
|
|
43
|
-
onKey(event: KeyboardEvent): void;
|
|
44
|
-
private syncModel;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "lux-checkbox", never, { "lang": { "alias": "lang"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
47
|
-
}
|
package/lib/datasource.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface DataSourceItem<K, L> {
|
|
2
|
-
key: K;
|
|
3
|
-
label: L;
|
|
4
|
-
}
|
|
5
|
-
export type DataSource<K, L> = DataSourceItem<K, L>[];
|
|
6
|
-
export interface DecoratedDataSourceItem {
|
|
7
|
-
key: any;
|
|
8
|
-
label: string;
|
|
9
|
-
labelPrefix: string;
|
|
10
|
-
labelMatch: string;
|
|
11
|
-
labelPostfix: string;
|
|
12
|
-
}
|
|
13
|
-
export type DecoratedDataSource = DecoratedDataSourceItem[];
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, AbstractControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DatetimeComponent implements OnInit, ControlValueAccessor, Validator {
|
|
5
|
-
static idCounter: number;
|
|
6
|
-
dateInput: ElementRef;
|
|
7
|
-
timeInput: ElementRef;
|
|
8
|
-
touched: boolean;
|
|
9
|
-
dirty: boolean;
|
|
10
|
-
lastErrors: ValidationErrors | null;
|
|
11
|
-
private _disabled;
|
|
12
|
-
private _required;
|
|
13
|
-
private _value;
|
|
14
|
-
dateValue?: string;
|
|
15
|
-
timeValue?: string;
|
|
16
|
-
userErrors: {
|
|
17
|
-
en: {
|
|
18
|
-
required: string;
|
|
19
|
-
min: string;
|
|
20
|
-
max: string;
|
|
21
|
-
};
|
|
22
|
-
es: {
|
|
23
|
-
required: string;
|
|
24
|
-
min: string;
|
|
25
|
-
max: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
min?: string;
|
|
29
|
-
max?: string;
|
|
30
|
-
includeSeconds: boolean;
|
|
31
|
-
localTime: boolean;
|
|
32
|
-
get className(): string;
|
|
33
|
-
lang: string;
|
|
34
|
-
inlineErrors: boolean;
|
|
35
|
-
inputId: string;
|
|
36
|
-
ariaLabel: string;
|
|
37
|
-
readonly: boolean | null;
|
|
38
|
-
set disabled(v: string | boolean);
|
|
39
|
-
get disabled(): string | boolean;
|
|
40
|
-
set required(v: boolean);
|
|
41
|
-
get required(): boolean;
|
|
42
|
-
set value(v: string);
|
|
43
|
-
get value(): string;
|
|
44
|
-
valueChange: EventEmitter<any>;
|
|
45
|
-
keyPress: EventEmitter<KeyboardEvent>;
|
|
46
|
-
onChange: (_value: any) => void;
|
|
47
|
-
onTouched: () => void;
|
|
48
|
-
constructor();
|
|
49
|
-
writeValue(value: any): void;
|
|
50
|
-
registerOnChange(onChange: any): void;
|
|
51
|
-
registerOnTouched(onTouched: any): void;
|
|
52
|
-
markAsTouched(): void;
|
|
53
|
-
setDisabledState(disabled: boolean): void;
|
|
54
|
-
private setDateInControl;
|
|
55
|
-
private setTimeInControl;
|
|
56
|
-
private setValueInControl;
|
|
57
|
-
clear(): void;
|
|
58
|
-
isClearable(): boolean;
|
|
59
|
-
registerOnValidatorChange(): void;
|
|
60
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
61
|
-
ngOnInit(): void;
|
|
62
|
-
onLostFocus(): void;
|
|
63
|
-
onKeyPress(event: KeyboardEvent): void;
|
|
64
|
-
onEventDatetime(newDate: string, newTime: string): void;
|
|
65
|
-
checkClassName(): string;
|
|
66
|
-
setPatterns(): void;
|
|
67
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatetimeComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatetimeComponent, "lux-datetime", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "includeSeconds": { "alias": "includeSeconds"; "required": false; }; "localTime": { "alias": "localTime"; "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>;
|
|
69
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 | undefined | null) => 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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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,108 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, AbstractControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { RegexpService } from './regexp.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class InputComponent implements OnInit, ControlValueAccessor, Validator {
|
|
6
|
-
regexpService: RegexpService;
|
|
7
|
-
static idCounter: number;
|
|
8
|
-
input: ElementRef;
|
|
9
|
-
textarea: ElementRef;
|
|
10
|
-
colorpicker: ElementRef;
|
|
11
|
-
touched: boolean;
|
|
12
|
-
dirty: boolean;
|
|
13
|
-
lastErrors: ValidationErrors | null;
|
|
14
|
-
private _disabled;
|
|
15
|
-
private _value;
|
|
16
|
-
private _type;
|
|
17
|
-
private _placeholder;
|
|
18
|
-
private _pattern?;
|
|
19
|
-
private _regexp?;
|
|
20
|
-
private _currency;
|
|
21
|
-
private _required;
|
|
22
|
-
userErrors: {
|
|
23
|
-
en: {
|
|
24
|
-
required: string;
|
|
25
|
-
min: string;
|
|
26
|
-
max: string;
|
|
27
|
-
email: string;
|
|
28
|
-
url: string;
|
|
29
|
-
color: string;
|
|
30
|
-
};
|
|
31
|
-
es: {
|
|
32
|
-
required: string;
|
|
33
|
-
min: string;
|
|
34
|
-
max: string;
|
|
35
|
-
email: string;
|
|
36
|
-
url: string;
|
|
37
|
-
color: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
domain: string;
|
|
41
|
-
rows?: number | string;
|
|
42
|
-
cols?: number | string;
|
|
43
|
-
step?: number;
|
|
44
|
-
min?: number | string;
|
|
45
|
-
max?: number | string;
|
|
46
|
-
get className(): string;
|
|
47
|
-
get color(): string;
|
|
48
|
-
lang: string;
|
|
49
|
-
inlineErrors: boolean;
|
|
50
|
-
inputId: string;
|
|
51
|
-
ariaLabel: string;
|
|
52
|
-
readonly: boolean | null;
|
|
53
|
-
set disabled(v: string | boolean);
|
|
54
|
-
get disabled(): string | boolean;
|
|
55
|
-
set pattern(p: string | undefined);
|
|
56
|
-
get pattern(): string | undefined;
|
|
57
|
-
set currency(v: string);
|
|
58
|
-
get currency(): string;
|
|
59
|
-
set placeholder(v: string);
|
|
60
|
-
get placeholder(): string;
|
|
61
|
-
set required(v: boolean);
|
|
62
|
-
get required(): boolean;
|
|
63
|
-
set type(v: string);
|
|
64
|
-
get type(): string;
|
|
65
|
-
set value(v: any);
|
|
66
|
-
get value(): any;
|
|
67
|
-
valueChange: EventEmitter<any>;
|
|
68
|
-
keyPress: EventEmitter<KeyboardEvent>;
|
|
69
|
-
onChange: (value: any) => void;
|
|
70
|
-
onTouched: () => void;
|
|
71
|
-
constructor(regexpService: RegexpService);
|
|
72
|
-
writeValue(value: any): void;
|
|
73
|
-
registerOnChange(onChange: any): void;
|
|
74
|
-
registerOnTouched(onTouched: any): void;
|
|
75
|
-
markAsTouched(): void;
|
|
76
|
-
setDisabledState(disabled: boolean): void;
|
|
77
|
-
private setValueInControl;
|
|
78
|
-
registerOnValidatorChange(): void;
|
|
79
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
80
|
-
ngOnInit(): void;
|
|
81
|
-
onLostFocus(): void;
|
|
82
|
-
onKeyUp(newValue: string): void;
|
|
83
|
-
onChangeValue(newValue: string): void;
|
|
84
|
-
onKeyPress(event: KeyboardEvent): void;
|
|
85
|
-
onColorPicked(newValue: string): void;
|
|
86
|
-
isUrl(): boolean;
|
|
87
|
-
isColor(): boolean;
|
|
88
|
-
isNumber(): boolean;
|
|
89
|
-
isPercentage(): boolean;
|
|
90
|
-
isPermillage(): boolean;
|
|
91
|
-
hasPrefix(): boolean;
|
|
92
|
-
hasPostfix(): boolean;
|
|
93
|
-
checkClassName(): string;
|
|
94
|
-
checkColor(): string;
|
|
95
|
-
checkType(type: string): void;
|
|
96
|
-
setEmailPatterns(): void;
|
|
97
|
-
setUrlPatterns(): void;
|
|
98
|
-
setColorPatterns(): void;
|
|
99
|
-
setDatePatterns(): void;
|
|
100
|
-
setTimePatterns(): void;
|
|
101
|
-
setPasswordPatterns(): void;
|
|
102
|
-
setNumberPatterns(): void;
|
|
103
|
-
setCurrencyPatterns(): void;
|
|
104
|
-
setPercentagePatterns(): void;
|
|
105
|
-
setPermillagePatterns(): void;
|
|
106
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
107
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "lux-input", never, { "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "step": { "alias": "step"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "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; }; "pattern": { "alias": "pattern"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "keyPress": "keyPress"; }, never, never, false, never>;
|
|
108
|
-
}
|