UNPKG

angular2-text-mask

Version:
29 lines (28 loc) 937 B
import { ElementRef, Renderer } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare class MaskedInputDirective implements ControlValueAccessor { private renderer; private element; private textMaskInputElement; private inputElement; private lastValue; textMaskConfig: { mask: string; guide: boolean; placeholderChar: string; pipe: any; keepCharPositions: boolean; }; _onTouched: () => void; _onChange: (_: any) => void; constructor(renderer: Renderer, element: ElementRef); private setupMask(); writeValue(value: any): void; registerOnChange(fn: (value: any) => any): void; registerOnTouched(fn: () => any): void; onInput(value: any): void; setDisabledState(isDisabled: boolean): void; } export declare class TextMaskModule { } export { conformToMask } from 'text-mask-core/dist/textMaskCore';