@metadev/lux 0.17.0 → 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.
@@ -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;