UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

74 lines (73 loc) 3 kB
/** * @license * Copyright Alibaba.com All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { AfterContentInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef } from '@angular/core'; import { FormControl, FormControlDirective, FormControlName, NgModel } from '@angular/forms'; import { BooleanInput } from 'ng-zorro-antd/core/types'; import { NzI18nService } from 'ng-zorro-antd/i18n'; import { NzFormDirective } from './form.directive'; import { NzFormItemComponent } from './form-item.component'; declare const iconTypeMap: { readonly error: "close-circle-fill"; readonly validating: "loading"; readonly success: "check-circle-fill"; readonly warning: "exclamation-circle-fill"; }; export declare class NzFormControlComponent implements OnChanges, OnDestroy, OnInit, AfterContentInit, OnDestroy { private nzFormItemComponent; private cdr; private nzFormDirective; static ngAcceptInputType_nzHasFeedback: BooleanInput; static ngAcceptInputType_nzRequired: BooleanInput; static ngAcceptInputType_nzNoColon: BooleanInput; static ngAcceptInputType_nzDisableAutoTips: BooleanInput; private _hasFeedback; private validateChanges; private validateString; private status; private destroyed$; private localeId; private autoErrorTip; private get disableAutoTips(); validateControl: FormControl | NgModel | null; iconType: typeof iconTypeMap[keyof typeof iconTypeMap] | null; innerTip: string | TemplateRef<{ $implicit: FormControl | NgModel; }> | null; defaultValidateControl: FormControlName | FormControlDirective; nzSuccessTip: string | TemplateRef<{ $implicit: FormControl | NgModel; }>; nzWarningTip: string | TemplateRef<{ $implicit: FormControl | NgModel; }>; nzErrorTip: string | TemplateRef<{ $implicit: FormControl | NgModel; }>; nzValidatingTip: string | TemplateRef<{ $implicit: FormControl | NgModel; }>; nzAutoTips: Record<string, Record<string, string>>; nzDisableAutoTips: boolean | 'default'; nzExtra: string | TemplateRef<void>; set nzHasFeedback(value: boolean); get nzHasFeedback(): boolean; set nzValidateStatus(value: string | FormControl | FormControlName | NgModel); private watchControl; private setStatus; private getControlStatus; private validateControlStatus; private getInnerTip; private updateAutoErrorTip; private subscribeAutoTips; constructor(elementRef: ElementRef, nzFormItemComponent: NzFormItemComponent, cdr: ChangeDetectorRef, renderer: Renderer2, i18n: NzI18nService, nzFormDirective: NzFormDirective); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngOnDestroy(): void; ngAfterContentInit(): void; } export {};