form.directive.d.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 { OnChanges, OnDestroy, SimpleChange, SimpleChanges } from '@angular/core';
  7. import { Observable, Subject } from 'rxjs';
  8. import { ThemeType } from '@ant-design/icons-angular';
  9. import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
  10. import { InputObservable } from 'ng-zorro-antd/core/types';
  11. import * as i0 from "@angular/core";
  12. export type NzFormLayoutType = 'horizontal' | 'vertical' | 'inline';
  13. export type NzLabelAlignType = 'left' | 'right';
  14. export declare const DefaultTooltipIcon: {
  15. readonly type: "question-circle";
  16. readonly theme: "outline";
  17. };
  18. export declare class NzFormDirective implements OnChanges, OnDestroy, InputObservable {
  19. nzConfigService: NzConfigService;
  20. private directionality;
  21. readonly _nzModuleName: NzConfigKey;
  22. nzLayout: NzFormLayoutType;
  23. nzNoColon: boolean;
  24. nzAutoTips: Record<string, Record<string, string>>;
  25. nzDisableAutoTips: boolean;
  26. nzTooltipIcon: string | {
  27. type: string;
  28. theme: ThemeType;
  29. };
  30. nzLabelAlign: NzLabelAlignType;
  31. nzLabelWrap: boolean;
  32. dir: Direction;
  33. destroy$: Subject<boolean>;
  34. private inputChanges$;
  35. getInputObservable<K extends keyof this>(changeType: K): Observable<SimpleChange>;
  36. constructor(nzConfigService: NzConfigService, directionality: Directionality);
  37. ngOnChanges(changes: SimpleChanges): void;
  38. ngOnDestroy(): void;
  39. static ɵfac: i0.ɵɵFactoryDeclaration<NzFormDirective, never>;
  40. static ɵdir: i0.ɵɵDirectiveDeclaration<NzFormDirective, "[nz-form]", ["nzForm"], { "nzLayout": { "alias": "nzLayout"; "required": false; }; "nzNoColon": { "alias": "nzNoColon"; "required": false; }; "nzAutoTips": { "alias": "nzAutoTips"; "required": false; }; "nzDisableAutoTips": { "alias": "nzDisableAutoTips"; "required": false; }; "nzTooltipIcon": { "alias": "nzTooltipIcon"; "required": false; }; "nzLabelAlign": { "alias": "nzLabelAlign"; "required": false; }; "nzLabelWrap": { "alias": "nzLabelWrap"; "required": false; }; }, {}, never, never, true, never>;
  41. static ngAcceptInputType_nzNoColon: unknown;
  42. static ngAcceptInputType_nzDisableAutoTips: unknown;
  43. static ngAcceptInputType_nzLabelWrap: unknown;
  44. }