ngx-mask-2
Version:
awesome ngx mask
27 lines (26 loc) • 1.09 kB
TypeScript
import { ElementRef, Renderer2 } from '@angular/core';
import { IConfig } from './config';
import { MaskApplierService } from './mask-applier.service';
export declare class MaskService extends MaskApplierService {
private document;
protected _config: IConfig;
private _elementRef;
private _renderer;
maskExpression: string;
isNumberValue: boolean;
showMaskTyped: boolean;
maskIsShown: string;
private _formElement;
onChange: (_: any) => void;
onTouch: () => void;
constructor(document: any, _config: IConfig, _elementRef: ElementRef, _renderer: Renderer2);
applyMask(inputValue: string, maskExpression: string, position?: number, cb?: Function): string;
applyValueChanges(position?: number, cb?: Function): void;
showMaskInInput(): void;
clearIfNotMatchFn(): void;
formElementProperty: [string, string | boolean];
_removeMask(value: string, specialCharactersForRemove: string[]): string;
_removePrefix(value: string): string;
private _removeSufix;
private _regExpForRemove;
}