@metadev/lux 0.16.2 → 0.18.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/bundles/metadev-lux.umd.js +107 -27
- package/bundles/metadev-lux.umd.js.map +1 -1
- package/esm2015/lib/autocomplete/autocomplete.component.js +24 -12
- package/esm2015/lib/autocomplete-list/autocomplete-list.component.js +2 -2
- package/esm2015/lib/datetime/datetime.component.js +3 -3
- package/esm2015/lib/filter/filter.component.js +3 -3
- package/esm2015/lib/geolocation/geolocation.component.js +3 -3
- package/esm2015/lib/helperFns.js +17 -1
- package/esm2015/lib/input/input.component.js +55 -7
- package/esm2015/lib/pagination/pagination.component.js +3 -3
- package/esm2015/lib/radiogroup/radiogroup.component.js +1 -1
- package/esm2015/lib/select/select.component.js +2 -2
- package/fesm2015/metadev-lux.js +103 -27
- package/fesm2015/metadev-lux.js.map +1 -1
- package/lib/autocomplete/autocomplete.component.d.ts +1 -0
- package/lib/helperFns.d.ts +2 -0
- package/lib/input/input.component.d.ts +12 -0
- package/metadev-lux.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -68,6 +68,7 @@ export declare class AutocompleteComponent implements ControlValueAccessor, Vali
|
|
|
68
68
|
get selectedOption(): string;
|
|
69
69
|
private ensureItemVisible;
|
|
70
70
|
private syncCustomValue;
|
|
71
|
+
/** Pick selection based on text filtering (ingnores drowdown state) */
|
|
71
72
|
private pickSelectionOrFirstMatch;
|
|
72
73
|
private showCompletionList;
|
|
73
74
|
private spinnerVisibility;
|
package/lib/helperFns.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export declare const exists: (value: any) => boolean;
|
|
|
2
2
|
export declare const hasValue: (value: any) => boolean;
|
|
3
3
|
export declare const isEmptyString: (value: string) => boolean;
|
|
4
4
|
export declare const isValidEmail: (value: string) => boolean;
|
|
5
|
+
export declare const isValidUrl: (value: string) => boolean;
|
|
6
|
+
export declare const isValidColor: (value: string) => boolean;
|
|
5
7
|
export declare const isValidDate: (date: Date) => boolean;
|
|
6
8
|
export declare const normalizeDate: (value: any) => string;
|
|
7
9
|
export declare const addTimezoneOffset: (date: Date) => Date;
|
|
@@ -6,6 +6,7 @@ export declare class InputComponent implements OnInit, ControlValueAccessor, Val
|
|
|
6
6
|
static idCounter: number;
|
|
7
7
|
input: ElementRef;
|
|
8
8
|
textarea: ElementRef;
|
|
9
|
+
colorpicker: ElementRef;
|
|
9
10
|
touched: boolean;
|
|
10
11
|
dirty: boolean;
|
|
11
12
|
lastErrors: ValidationErrors | null;
|
|
@@ -23,12 +24,16 @@ export declare class InputComponent implements OnInit, ControlValueAccessor, Val
|
|
|
23
24
|
min: string;
|
|
24
25
|
max: string;
|
|
25
26
|
email: string;
|
|
27
|
+
url: string;
|
|
28
|
+
color: string;
|
|
26
29
|
};
|
|
27
30
|
es: {
|
|
28
31
|
required: string;
|
|
29
32
|
min: string;
|
|
30
33
|
max: string;
|
|
31
34
|
email: string;
|
|
35
|
+
url: string;
|
|
36
|
+
color: string;
|
|
32
37
|
};
|
|
33
38
|
};
|
|
34
39
|
domain: string;
|
|
@@ -38,6 +43,7 @@ export declare class InputComponent implements OnInit, ControlValueAccessor, Val
|
|
|
38
43
|
min?: number | string;
|
|
39
44
|
max?: number | string;
|
|
40
45
|
get className(): string;
|
|
46
|
+
get color(): string;
|
|
41
47
|
lang: string;
|
|
42
48
|
inlineErrors: boolean;
|
|
43
49
|
inputId: string;
|
|
@@ -75,14 +81,20 @@ export declare class InputComponent implements OnInit, ControlValueAccessor, Val
|
|
|
75
81
|
onKeyUp(newValue: string): void;
|
|
76
82
|
onChangeValue(newValue: string): void;
|
|
77
83
|
onKeyPress(event: KeyboardEvent): void;
|
|
84
|
+
onColorPicked(newValue: string): void;
|
|
85
|
+
isUrl(): boolean;
|
|
86
|
+
isColor(): boolean;
|
|
78
87
|
isNumber(): boolean;
|
|
79
88
|
isPercentage(): boolean;
|
|
80
89
|
isPermillage(): boolean;
|
|
81
90
|
hasPrefix(): boolean;
|
|
82
91
|
hasPostfix(): boolean;
|
|
83
92
|
checkClassName(): string;
|
|
93
|
+
checkColor(): string;
|
|
84
94
|
checkType(type: string): void;
|
|
85
95
|
setEmailPatterns(): void;
|
|
96
|
+
setUrlPatterns(): void;
|
|
97
|
+
setColorPatterns(): void;
|
|
86
98
|
setDatePatterns(): void;
|
|
87
99
|
setTimePatterns(): void;
|
|
88
100
|
setPasswordPatterns(): void;
|