import * as i0 from '@angular/core'; import { OnChanges, SimpleChange, SimpleChanges, OnInit, AfterContentInit, TemplateRef } from '@angular/core'; import { Direction } from '@angular/cdk/bidi'; import { Observable } from 'rxjs'; import { ThemeType } from '@ant-design/icons-angular'; import { NzConfigKey } from 'ng-zorro-antd/core/config'; import { InputObservable, NzTSType } from 'ng-zorro-antd/core/types'; import { AbstractControl, NgModel, FormControlName, FormControlDirective } from '@angular/forms'; import { NzI18nService } from 'ng-zorro-antd/i18n'; import * as i7 from 'ng-zorro-antd/grid'; /** * 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 */ type NzFormLayoutType = 'horizontal' | 'vertical' | 'inline'; type NzLabelAlignType = 'left' | 'right'; declare const DefaultTooltipIcon: { readonly type: "question-circle"; readonly theme: "outline"; }; declare class NzFormDirective implements OnChanges, InputObservable { private destroyRef; private directionality; readonly _nzModuleName: NzConfigKey; nzLayout: NzFormLayoutType; nzNoColon: boolean; nzAutoTips: Record>; nzDisableAutoTips: boolean; nzTooltipIcon: string | { type: string; theme: ThemeType; }; nzLabelAlign: NzLabelAlignType; nzLabelWrap: boolean; dir: Direction; private inputChanges$; getInputObservable(changeType: K): Observable; constructor(); ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_nzNoColon: unknown; static ngAcceptInputType_nzDisableAutoTips: unknown; static ngAcceptInputType_nzLabelWrap: unknown; } type NzFormControlStatusType = 'success' | 'error' | 'warning' | 'validating' | ''; /** should add nz-row directive to host, track https://github.com/angular/angular/issues/8785 **/ declare class NzFormItemComponent { private cdr; status: NzFormControlStatusType; hasFeedback: boolean; withHelpClass: boolean; setWithHelpViaTips(value: boolean): void; setStatus(status: NzFormControlStatusType): void; setHasFeedback(hasFeedback: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface NzFormTooltipIcon { type: NzTSType; theme: ThemeType; } declare class NzFormLabelComponent { private cdr; nzFor?: string; nzRequired: boolean; set nzNoColon(value: boolean); get nzNoColon(): boolean; private noColon; nzTooltipTitle?: NzTSType; set nzTooltipIcon(value: string | NzFormTooltipIcon); get tooltipIcon(): NzFormTooltipIcon; private _tooltipIcon; set nzLabelAlign(value: NzLabelAlignType); get nzLabelAlign(): NzLabelAlignType; private labelAlign; set nzLabelWrap(value: boolean); get nzLabelWrap(): boolean; private labelWrap; private nzFormDirective; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_nzRequired: unknown; static ngAcceptInputType_nzNoColon: unknown; static ngAcceptInputType_nzLabelWrap: unknown; } /** * 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 */ declare class NzFormControlComponent implements OnChanges, OnInit, AfterContentInit { private cdr; i18n: NzI18nService; private nzFormStatusService; private destroyRef; private _hasFeedback; private validateChanges; private validateString; private localeId; private autoErrorTip?; private get disableAutoTips(); status: NzFormControlStatusType; validateControl: AbstractControl | NgModel | null; innerTip: string | TemplateRef<{ $implicit: AbstractControl | NgModel; }> | null; defaultValidateControl?: FormControlName | FormControlDirective; nzSuccessTip?: string | TemplateRef<{ $implicit: AbstractControl | NgModel; }>; nzWarningTip?: string | TemplateRef<{ $implicit: AbstractControl | NgModel; }>; nzErrorTip?: string | TemplateRef<{ $implicit: AbstractControl | NgModel; }>; nzValidatingTip?: string | TemplateRef<{ $implicit: AbstractControl | NgModel; }>; nzExtra?: string | TemplateRef; nzAutoTips: Record>; nzDisableAutoTips?: boolean; set nzHasFeedback(value: boolean); get nzHasFeedback(): boolean; set nzValidateStatus(value: string | AbstractControl | FormControlName | NgModel); private watchControl; private setStatus; private getControlStatus; private validateControlStatus; private getInnerTip; private updateAutoErrorTip; private subscribeAutoTips; private nzFormItemComponent; private nzFormDirective; constructor(); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngAfterContentInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_nzDisableAutoTips: unknown; static ngAcceptInputType_nzHasFeedback: unknown; } declare class NzFormTextComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzFormSplitComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzFormModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { DefaultTooltipIcon, NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent, NzFormModule, NzFormSplitComponent, NzFormTextComponent }; export type { NzFormControlStatusType, NzFormLayoutType, NzFormTooltipIcon, NzLabelAlignType };