UNPKG

mx-ui-components

Version:

mobius ui library

59 lines (58 loc) 2.01 kB
import BaseComponent from "../Counter/BaseComponent"; declare class CustomBaseInput extends BaseComponent { protected provider: any; protected value: any; protected placeholder: string; protected label: string; protected required: boolean; protected errorMessage: string; protected inputType: string; protected hasInteracted: boolean; protected _prevValues: any; protected textLimit: number; protected actualValue: string; protected input: HTMLElement | null; protected inputWrapper: HTMLElement | null; protected props: any; protected componentName: string; protected readOnly: boolean; protected getDetailedError: boolean; protected detailedError: any; private cachedSelection; addListeners(): void; onFocus(input: HTMLElement): void; onBlur(input: HTMLElement): void; MaskValue(): void; UnmaskValue(): void; addMaskingBtn(): void; setCursorPosition(input: HTMLElement, pos: number): void; getCaretPosition(input: HTMLElement): number; getSelectionOffsets(input: HTMLElement): { start: number; end: number; }; onInput(input: HTMLElement, e: any): void; UpdateValue(): void; validate(): void; addErrorMessage(): void; removeErrorMessage(): void; onStateChange(event: CustomEvent): void; validateJSON(jsonString: string): boolean; confirmThisPassword(value: string): boolean; validateEmail(value: string): boolean; validateNumber(value: string): boolean; validateURL(value: string): boolean; validatePasswordInput(value: string): boolean; validateDetailedPasswordInput(value: string): { isEmpty: boolean; isValid: boolean; isMinLength: boolean; hasUppercase: boolean; hasLowercase: boolean; hasSpecialChar: boolean; hasNumber: boolean; }; validatePhone(value: string): boolean; validateAlphabets(value: string): boolean; } export default CustomBaseInput;