button.component.d.ts 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
  7. import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
  8. import { NzSizeLDSType } from 'ng-zorro-antd/core/types';
  9. import * as i0 from "@angular/core";
  10. import * as i1 from "ng-zorro-antd/space";
  11. export type NzButtonType = 'primary' | 'default' | 'dashed' | 'link' | 'text' | null;
  12. export type NzButtonShape = 'circle' | 'round' | null;
  13. export type NzButtonSize = NzSizeLDSType;
  14. export declare class NzButtonComponent implements OnChanges, AfterViewInit, AfterContentInit, OnInit {
  15. private elementRef;
  16. private cdr;
  17. private renderer;
  18. nzConfigService: NzConfigService;
  19. private directionality;
  20. readonly _nzModuleName: NzConfigKey;
  21. nzIconDirectiveElement: ElementRef;
  22. nzBlock: boolean;
  23. nzGhost: boolean;
  24. nzSearch: boolean;
  25. nzLoading: boolean;
  26. nzDanger: boolean;
  27. disabled: boolean;
  28. tabIndex: number | string | null;
  29. nzType: NzButtonType;
  30. nzShape: NzButtonShape;
  31. nzSize: NzButtonSize;
  32. dir: Direction;
  33. protected finalSize: import("@angular/core").Signal<NzSizeLDSType>;
  34. private size;
  35. private compactSize;
  36. private destroy$;
  37. private loading$;
  38. insertSpan(nodes: NodeList, renderer: Renderer2): void;
  39. get iconOnly(): boolean;
  40. constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, renderer: Renderer2, nzConfigService: NzConfigService, directionality: Directionality);
  41. ngOnInit(): void;
  42. ngOnChanges({ nzLoading, nzSize }: SimpleChanges): void;
  43. ngAfterViewInit(): void;
  44. ngAfterContentInit(): void;
  45. static ɵfac: i0.ɵɵFactoryDeclaration<NzButtonComponent, never>;
  46. static ɵcmp: i0.ɵɵComponentDeclaration<NzButtonComponent, "button[nz-button], a[nz-button]", ["nzButton"], { "nzBlock": { "alias": "nzBlock"; "required": false; }; "nzGhost": { "alias": "nzGhost"; "required": false; }; "nzSearch": { "alias": "nzSearch"; "required": false; }; "nzLoading": { "alias": "nzLoading"; "required": false; }; "nzDanger": { "alias": "nzDanger"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "nzType": { "alias": "nzType"; "required": false; }; "nzShape": { "alias": "nzShape"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; }, {}, ["nzIconDirectiveElement"], ["*"], true, [{ directive: typeof i1.NzSpaceCompactItemDirective; inputs: {}; outputs: {}; }]>;
  47. static ngAcceptInputType_nzBlock: unknown;
  48. static ngAcceptInputType_nzGhost: unknown;
  49. static ngAcceptInputType_nzSearch: unknown;
  50. static ngAcceptInputType_nzLoading: unknown;
  51. static ngAcceptInputType_nzDanger: unknown;
  52. static ngAcceptInputType_disabled: unknown;
  53. }