autosize.directive.d.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 { Platform } from '@angular/cdk/platform';
  6. import { AfterViewInit, DoCheck, NgZone, OnDestroy } from '@angular/core';
  7. import { NzResizeService } from 'ng-zorro-antd/core/services';
  8. import * as i0 from "@angular/core";
  9. export interface AutoSizeType {
  10. minRows?: number;
  11. maxRows?: number;
  12. }
  13. export declare class NzAutosizeDirective implements AfterViewInit, OnDestroy, DoCheck {
  14. private ngZone;
  15. private platform;
  16. private resizeService;
  17. private autosize;
  18. private el;
  19. private cachedLineHeight;
  20. private previousValue;
  21. private previousMinRows;
  22. private minRows;
  23. private maxRows;
  24. private maxHeight;
  25. private minHeight;
  26. private destroy$;
  27. private inputGap;
  28. set nzAutosize(value: string | boolean | AutoSizeType);
  29. resizeToFitContent(force?: boolean): void;
  30. private cacheTextareaLineHeight;
  31. setMinHeight(): number | null;
  32. setMaxHeight(): number | null;
  33. noopInputHandler(): void;
  34. constructor(ngZone: NgZone, platform: Platform, resizeService: NzResizeService);
  35. ngAfterViewInit(): void;
  36. ngOnDestroy(): void;
  37. ngDoCheck(): void;
  38. static ɵfac: i0.ɵɵFactoryDeclaration<NzAutosizeDirective, never>;
  39. static ɵdir: i0.ɵɵDirectiveDeclaration<NzAutosizeDirective, "textarea[nzAutosize]", ["nzAutosize"], { "nzAutosize": { "alias": "nzAutosize"; "required": false; }; }, {}, never, never, true, never>;
  40. }