@liquidcommerce/elements-sdk 2.6.0-beta.28 → 2.6.0-beta.29
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/dist/index.esm.js +8285 -8587
- package/dist/types/enums/core.enum.d.ts +0 -1
- package/dist/types/modules/ui-components/input/index.d.ts +0 -1
- package/dist/types/modules/ui-components/input/input.component.d.ts +8 -1
- package/package.json +5 -5
- package/umd/elements.js +1 -1
- package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +0 -53
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
export interface IBirthdateValidation {
|
|
3
|
-
required?: boolean;
|
|
4
|
-
minYear?: number;
|
|
5
|
-
maxYear?: number;
|
|
6
|
-
minAge?: number;
|
|
7
|
-
maxAge?: number;
|
|
8
|
-
customValidator?: (date: string) => string | null;
|
|
9
|
-
}
|
|
10
|
-
export interface IBirthdateInputComponentParams {
|
|
11
|
-
value?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
validation?: IBirthdateValidation;
|
|
14
|
-
onValidation?: (isValid: boolean, errors: string[]) => void;
|
|
15
|
-
onChange?: (value: string) => void;
|
|
16
|
-
label?: string;
|
|
17
|
-
name: string;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare class BirthdateInputComponent extends BaseComponent<IBirthdateInputComponentParams, null> {
|
|
21
|
-
get hostClasses(): string[];
|
|
22
|
-
private monthInput;
|
|
23
|
-
private dayInput;
|
|
24
|
-
private yearInput;
|
|
25
|
-
private errorContainer;
|
|
26
|
-
private validationTimeout;
|
|
27
|
-
afterRender(): void;
|
|
28
|
-
private populateInitialValue;
|
|
29
|
-
private setupEventListeners;
|
|
30
|
-
private formatMonth;
|
|
31
|
-
private formatDay;
|
|
32
|
-
private formatYear;
|
|
33
|
-
private padMonthOnBlur;
|
|
34
|
-
private padDayOnBlur;
|
|
35
|
-
private handleNavigation;
|
|
36
|
-
private handleChange;
|
|
37
|
-
private isFieldsComplete;
|
|
38
|
-
private scheduleValidation;
|
|
39
|
-
private getFormattedValue;
|
|
40
|
-
private validateDate;
|
|
41
|
-
private calculateAge;
|
|
42
|
-
private validateInput;
|
|
43
|
-
private showErrors;
|
|
44
|
-
private clearErrors;
|
|
45
|
-
getValue(): string;
|
|
46
|
-
setValue(value: string): void;
|
|
47
|
-
validate(): boolean;
|
|
48
|
-
focus(): void;
|
|
49
|
-
disable(): void;
|
|
50
|
-
enable(): void;
|
|
51
|
-
clear(): void;
|
|
52
|
-
protected template(): HTMLElement[];
|
|
53
|
-
}
|