com.phloxui
Version:
PhloxUI Ng2+ Framework
23 lines (22 loc) • 1.05 kB
TypeScript
import { OnInit, ElementRef, ViewContainerRef, OnDestroy } from '@angular/core';
import { ValidationResult } from '../model/ValidationResult';
import { AbstractI18NApplicable } from '../../share/AbstractI18NApplicable';
import { IValidator } from './IValidator';
import { PhloxAppInfoService } from '../../service/PhloxAppInfoService.service';
export declare abstract class AbstractValidator<T> extends AbstractI18NApplicable implements OnInit, OnDestroy, IValidator<T> {
protected name: string;
protected elementRef: ElementRef;
protected target: ViewContainerRef;
protected i18NStatusMap: any;
constructor(el: ElementRef, target: ViewContainerRef, name: string, options?: any, phloxAppService?: PhloxAppInfoService);
ngOnInit(): void;
ngOnDestroy(): void;
getTargetComponent(): any;
getMessage(): string;
getName(): string;
getOptions(): any;
applyI18N(value: any): void;
validate(value: T): ValidationResult;
getI18NKey(): string;
protected abstract doValidate(value: T): ValidationResult;
}