UNPKG

material-form-builder

Version:
30 lines (29 loc) 1.13 kB
/// <reference types="node" /> import React, { Component } from "react"; import { InputImplement } from '../../types/input.implement'; import { MaskInputProps, MaskInputValueType } from './mask.types'; interface IState { value: MaskInputValueType; value_when_focus: MaskInputValueType; error: boolean; } export declare class MaskInput extends Component<MaskInputProps, IState> implements InputImplement<MaskInputValueType> { state: IState; validationTimeout: NodeJS.Timeout | undefined; inputRef: HTMLInputElement | undefined; shouldComponentUpdate(nextProps: MaskInputProps, nextState: IState): boolean; setValue(value: MaskInputValueType, withoutEffect?: boolean): Promise<MaskInputValueType>; getValue(): MaskInputValueType; clear(): Promise<MaskInputValueType>; validation(): boolean; onChange: (event: React.ChangeEvent<HTMLInputElement>) => void; private normalizeValue; private onClick; private onBlur; private onFocus; click: () => void; focus: () => void; blur: () => void; render(): React.JSX.Element; } export {};