1 | import { ElementRef, EventEmitter } from '@angular/core';
|
---|
2 | import { Validator, AbstractControl } from '@angular/forms';
|
---|
3 | import * as i0 from "@angular/core";
|
---|
4 | import * as i1 from "@angular/common";
|
---|
5 | export declare const KEYFILTER_VALIDATOR: any;
|
---|
6 | export declare class KeyFilter implements Validator {
|
---|
7 | el: ElementRef;
|
---|
8 | pValidateOnly: boolean;
|
---|
9 | ngModelChange: EventEmitter<any>;
|
---|
10 | regex: RegExp;
|
---|
11 | _pattern: any;
|
---|
12 | isAndroid: boolean;
|
---|
13 | lastValue: any;
|
---|
14 | constructor(el: ElementRef);
|
---|
15 | get pattern(): any;
|
---|
16 | set pattern(_pattern: any);
|
---|
17 | isNavKeyPress(e: KeyboardEvent): boolean;
|
---|
18 | isSpecialKey(e: KeyboardEvent): boolean;
|
---|
19 | getKey(e: KeyboardEvent): any;
|
---|
20 | getCharCode(e: KeyboardEvent): number;
|
---|
21 | findDelta(value: string, prevValue: string): string;
|
---|
22 | isValidChar(c: string): boolean;
|
---|
23 | isValidString(str: string): boolean;
|
---|
24 | onInput(e: KeyboardEvent): void;
|
---|
25 | onKeyPress(e: KeyboardEvent): void;
|
---|
26 | onPaste(e: any): void;
|
---|
27 | validate(c: AbstractControl): {
|
---|
28 | [key: string]: any;
|
---|
29 | };
|
---|
30 | static ɵfac: i0.ɵɵFactoryDeclaration<KeyFilter, never>;
|
---|
31 | static ɵdir: i0.ɵɵDirectiveDeclaration<KeyFilter, "[pKeyFilter]", never, { "pValidateOnly": "pValidateOnly"; "pattern": "pKeyFilter"; }, { "ngModelChange": "ngModelChange"; }, never>;
|
---|
32 | }
|
---|
33 | export declare class KeyFilterModule {
|
---|
34 | static ɵfac: i0.ɵɵFactoryDeclaration<KeyFilterModule, never>;
|
---|
35 | static ɵmod: i0.ɵɵNgModuleDeclaration<KeyFilterModule, [typeof KeyFilter], [typeof i1.CommonModule], [typeof KeyFilter]>;
|
---|
36 | static ɵinj: i0.ɵɵInjectorDeclaration<KeyFilterModule>;
|
---|
37 | }
|
---|