[59329aa] | 1 | import { ElementRef, OnInit, OnDestroy, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
---|
| 2 | import { ControlValueAccessor } from '@angular/forms';
|
---|
| 3 | import * as i0 from "@angular/core";
|
---|
| 4 | import * as i1 from "@angular/common";
|
---|
| 5 | import * as i2 from "primeng/inputtext";
|
---|
| 6 | export declare const INPUTMASK_VALUE_ACCESSOR: any;
|
---|
| 7 | export declare class InputMask implements OnInit, OnDestroy, ControlValueAccessor {
|
---|
| 8 | el: ElementRef;
|
---|
| 9 | private cd;
|
---|
| 10 | type: string;
|
---|
| 11 | slotChar: string;
|
---|
| 12 | autoClear: boolean;
|
---|
| 13 | style: any;
|
---|
| 14 | inputId: string;
|
---|
| 15 | styleClass: string;
|
---|
| 16 | placeholder: string;
|
---|
| 17 | size: number;
|
---|
| 18 | maxlength: number;
|
---|
| 19 | tabindex: string;
|
---|
| 20 | title: string;
|
---|
| 21 | ariaLabel: string;
|
---|
| 22 | ariaRequired: boolean;
|
---|
| 23 | disabled: boolean;
|
---|
| 24 | readonly: boolean;
|
---|
| 25 | unmask: boolean;
|
---|
| 26 | name: string;
|
---|
| 27 | required: boolean;
|
---|
| 28 | characterPattern: string;
|
---|
| 29 | autoFocus: boolean;
|
---|
| 30 | autocomplete: string;
|
---|
| 31 | inputViewChild: ElementRef;
|
---|
| 32 | onComplete: EventEmitter<any>;
|
---|
| 33 | onFocus: EventEmitter<any>;
|
---|
| 34 | onBlur: EventEmitter<any>;
|
---|
| 35 | onInput: EventEmitter<any>;
|
---|
| 36 | onKeydown: EventEmitter<any>;
|
---|
| 37 | value: any;
|
---|
| 38 | _mask: string;
|
---|
| 39 | onModelChange: Function;
|
---|
| 40 | onModelTouched: Function;
|
---|
| 41 | input: HTMLInputElement;
|
---|
| 42 | filled: boolean;
|
---|
| 43 | defs: any;
|
---|
| 44 | tests: any[];
|
---|
| 45 | partialPosition: any;
|
---|
| 46 | firstNonMaskPos: number;
|
---|
| 47 | lastRequiredNonMaskPos: any;
|
---|
| 48 | len: number;
|
---|
| 49 | oldVal: string;
|
---|
| 50 | buffer: any;
|
---|
| 51 | defaultBuffer: string;
|
---|
| 52 | focusText: string;
|
---|
| 53 | caretTimeoutId: any;
|
---|
| 54 | androidChrome: boolean;
|
---|
| 55 | focused: boolean;
|
---|
| 56 | constructor(el: ElementRef, cd: ChangeDetectorRef);
|
---|
| 57 | ngOnInit(): void;
|
---|
| 58 | get mask(): string;
|
---|
| 59 | set mask(val: string);
|
---|
| 60 | initMask(): void;
|
---|
| 61 | writeValue(value: any): void;
|
---|
| 62 | registerOnChange(fn: Function): void;
|
---|
| 63 | registerOnTouched(fn: Function): void;
|
---|
| 64 | setDisabledState(val: boolean): void;
|
---|
| 65 | caret(first?: number, last?: number): {
|
---|
| 66 | begin: any;
|
---|
| 67 | end: any;
|
---|
| 68 | };
|
---|
| 69 | isCompleted(): boolean;
|
---|
| 70 | getPlaceholder(i: number): string;
|
---|
| 71 | seekNext(pos: any): any;
|
---|
| 72 | seekPrev(pos: any): any;
|
---|
| 73 | shiftL(begin: number, end: number): void;
|
---|
| 74 | shiftR(pos: any): void;
|
---|
| 75 | handleAndroidInput(e: any): void;
|
---|
| 76 | onInputBlur(e: any): void;
|
---|
| 77 | onInputKeydown(e: any): void;
|
---|
| 78 | onKeyPress(e: any): void;
|
---|
| 79 | clearBuffer(start: any, end: any): void;
|
---|
| 80 | writeBuffer(): void;
|
---|
| 81 | checkVal(allow?: boolean): any;
|
---|
| 82 | onInputFocus(event: any): void;
|
---|
| 83 | onInputChange(event: any): void;
|
---|
| 84 | handleInputChange(event: any): void;
|
---|
| 85 | getUnmaskedValue(): string;
|
---|
| 86 | updateModel(e: any): void;
|
---|
| 87 | updateFilledState(): void;
|
---|
| 88 | focus(): void;
|
---|
| 89 | ngOnDestroy(): void;
|
---|
| 90 | static ɵfac: i0.ɵɵFactoryDeclaration<InputMask, never>;
|
---|
| 91 | static ɵcmp: i0.ɵɵComponentDeclaration<InputMask, "p-inputMask", never, { "type": "type"; "slotChar": "slotChar"; "autoClear": "autoClear"; "style": "style"; "inputId": "inputId"; "styleClass": "styleClass"; "placeholder": "placeholder"; "size": "size"; "maxlength": "maxlength"; "tabindex": "tabindex"; "title": "title"; "ariaLabel": "ariaLabel"; "ariaRequired": "ariaRequired"; "disabled": "disabled"; "readonly": "readonly"; "unmask": "unmask"; "name": "name"; "required": "required"; "characterPattern": "characterPattern"; "autoFocus": "autoFocus"; "autocomplete": "autocomplete"; "mask": "mask"; }, { "onComplete": "onComplete"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onInput": "onInput"; "onKeydown": "onKeydown"; }, never, never>;
|
---|
| 92 | }
|
---|
| 93 | export declare class InputMaskModule {
|
---|
| 94 | static ɵfac: i0.ɵɵFactoryDeclaration<InputMaskModule, never>;
|
---|
| 95 | static ɵmod: i0.ɵɵNgModuleDeclaration<InputMaskModule, [typeof InputMask], [typeof i1.CommonModule, typeof i2.InputTextModule], [typeof InputMask]>;
|
---|
| 96 | static ɵinj: i0.ɵɵInjectorDeclaration<InputMaskModule>;
|
---|
| 97 | }
|
---|