input.directive.d.ts 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 { Direction, Directionality } from '@angular/cdk/bidi';
  6. import { ComponentRef, ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
  7. import { NgControl } from '@angular/forms';
  8. import { Subject } from 'rxjs';
  9. import { NzFormItemFeedbackIconComponent } from 'ng-zorro-antd/core/form';
  10. import { NgClassInterface, NzSizeLDSType, NzStatus, NzValidateStatus } from 'ng-zorro-antd/core/types';
  11. import * as i0 from "@angular/core";
  12. import * as i1 from "ng-zorro-antd/space";
  13. export declare class NzInputDirective implements OnChanges, OnInit {
  14. private renderer;
  15. private elementRef;
  16. protected hostView: ViewContainerRef;
  17. private directionality;
  18. nzBorderless: boolean;
  19. nzSize: NzSizeLDSType;
  20. nzStepperless: boolean;
  21. nzStatus: NzStatus;
  22. get disabled(): boolean;
  23. set disabled(value: boolean);
  24. _disabled: boolean;
  25. disabled$: Subject<boolean>;
  26. dir: Direction;
  27. prefixCls: string;
  28. status: NzValidateStatus;
  29. statusCls: NgClassInterface;
  30. hasFeedback: boolean;
  31. feedbackRef: ComponentRef<NzFormItemFeedbackIconComponent> | null;
  32. components: Array<ComponentRef<NzFormItemFeedbackIconComponent>>;
  33. ngControl: NgControl | null;
  34. protected finalSize: import("@angular/core").Signal<NzSizeLDSType>;
  35. private size;
  36. private compactSize;
  37. private destroy$;
  38. private nzFormStatusService;
  39. private nzFormNoStatusService;
  40. constructor(renderer: Renderer2, elementRef: ElementRef, hostView: ViewContainerRef, directionality: Directionality);
  41. ngOnInit(): void;
  42. ngOnChanges({ disabled, nzStatus, nzSize }: SimpleChanges): void;
  43. private setStatusStyles;
  44. private renderFeedbackIcon;
  45. static ɵfac: i0.ɵɵFactoryDeclaration<NzInputDirective, never>;
  46. static ɵdir: i0.ɵɵDirectiveDeclaration<NzInputDirective, "input[nz-input],textarea[nz-input]", ["nzInput"], { "nzBorderless": { "alias": "nzBorderless"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzStepperless": { "alias": "nzStepperless"; "required": false; }; "nzStatus": { "alias": "nzStatus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.NzSpaceCompactItemDirective; inputs: {}; outputs: {}; }]>;
  47. static ngAcceptInputType_nzBorderless: unknown;
  48. static ngAcceptInputType_nzStepperless: unknown;
  49. static ngAcceptInputType_disabled: unknown;
  50. }