inet-ui
Version:
iNet Angular UI === [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][downloads-url]
21 lines (20 loc) • 927 B
TypeScript
import { ElementRef, EventEmitter } from '@angular/core';
import { Validator, AbstractControl } from '@angular/forms';
import * as i0 from "@angular/core";
export declare class NamingConventionDirective implements Validator {
private elementRef;
name: string;
pattern: string;
private readonly el;
private value;
ngModel: EventEmitter<any>;
constructor(elementRef: ElementRef, name: string);
validate(c: AbstractControl): {
[key: string]: any;
} | null;
isValid(v: string): boolean;
onInput($event: any): void;
onFocusOut($event: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NamingConventionDirective, [null, { attribute: "name"; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NamingConventionDirective, "input[namingConvention]", never, { "pattern": { "alias": "pattern"; "required": false; }; }, { "ngModel": "ngModel"; }, never, never, false, never>;
}