form-control.component.d.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
  6. import { AbstractControl, FormControlDirective, FormControlName, NgModel } from '@angular/forms';
  7. import { NzFormStatusService } from 'ng-zorro-antd/core/form';
  8. import { NzI18nService } from 'ng-zorro-antd/i18n';
  9. import { NzFormControlStatusType } from './form-item.component';
  10. import * as i0 from "@angular/core";
  11. export declare class NzFormControlComponent implements OnChanges, OnDestroy, OnInit, AfterContentInit, OnDestroy {
  12. private cdr;
  13. private nzFormStatusService;
  14. private _hasFeedback;
  15. private validateChanges;
  16. private validateString;
  17. private destroyed$;
  18. private localeId;
  19. private autoErrorTip?;
  20. private get disableAutoTips();
  21. status: NzFormControlStatusType;
  22. validateControl: AbstractControl | NgModel | null;
  23. innerTip: string | TemplateRef<{
  24. $implicit: AbstractControl | NgModel;
  25. }> | null;
  26. defaultValidateControl?: FormControlName | FormControlDirective;
  27. nzSuccessTip?: string | TemplateRef<{
  28. $implicit: AbstractControl | NgModel;
  29. }>;
  30. nzWarningTip?: string | TemplateRef<{
  31. $implicit: AbstractControl | NgModel;
  32. }>;
  33. nzErrorTip?: string | TemplateRef<{
  34. $implicit: AbstractControl | NgModel;
  35. }>;
  36. nzValidatingTip?: string | TemplateRef<{
  37. $implicit: AbstractControl | NgModel;
  38. }>;
  39. nzExtra?: string | TemplateRef<void>;
  40. nzAutoTips: Record<string, Record<string, string>>;
  41. nzDisableAutoTips?: boolean;
  42. set nzHasFeedback(value: boolean);
  43. get nzHasFeedback(): boolean;
  44. set nzValidateStatus(value: string | AbstractControl | FormControlName | NgModel);
  45. private watchControl;
  46. private setStatus;
  47. private getControlStatus;
  48. private validateControlStatus;
  49. private getInnerTip;
  50. private updateAutoErrorTip;
  51. private subscribeAutoTips;
  52. private nzFormItemComponent;
  53. private nzFormDirective;
  54. constructor(cdr: ChangeDetectorRef, i18n: NzI18nService, nzFormStatusService: NzFormStatusService);
  55. ngOnChanges(changes: SimpleChanges): void;
  56. ngOnInit(): void;
  57. ngOnDestroy(): void;
  58. ngAfterContentInit(): void;
  59. static ɵfac: i0.ɵɵFactoryDeclaration<NzFormControlComponent, never>;
  60. static ɵcmp: i0.ɵɵComponentDeclaration<NzFormControlComponent, "nz-form-control", ["nzFormControl"], { "nzSuccessTip": { "alias": "nzSuccessTip"; "required": false; }; "nzWarningTip": { "alias": "nzWarningTip"; "required": false; }; "nzErrorTip": { "alias": "nzErrorTip"; "required": false; }; "nzValidatingTip": { "alias": "nzValidatingTip"; "required": false; }; "nzExtra": { "alias": "nzExtra"; "required": false; }; "nzAutoTips": { "alias": "nzAutoTips"; "required": false; }; "nzDisableAutoTips": { "alias": "nzDisableAutoTips"; "required": false; }; "nzHasFeedback": { "alias": "nzHasFeedback"; "required": false; }; "nzValidateStatus": { "alias": "nzValidateStatus"; "required": false; }; }, {}, ["defaultValidateControl"], ["*"], true, never>;
  61. static ngAcceptInputType_nzDisableAutoTips: unknown;
  62. static ngAcceptInputType_nzHasFeedback: unknown;
  63. }