radio.component.d.ts 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 { FocusMonitor } from '@angular/cdk/a11y';
  6. import { Direction } from '@angular/cdk/bidi';
  7. import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
  8. import { ControlValueAccessor } from '@angular/forms';
  9. import { NzFormStatusService } from 'ng-zorro-antd/core/form';
  10. import { NzSafeAny, OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types';
  11. import * as i0 from "@angular/core";
  12. export declare class NzRadioComponent implements ControlValueAccessor, AfterViewInit, OnDestroy, OnInit {
  13. private ngZone;
  14. private elementRef;
  15. private cdr;
  16. private focusMonitor;
  17. private isNgModel;
  18. private destroy$;
  19. private isNzDisableFirstChange;
  20. private directionality;
  21. private nzRadioService;
  22. nzFormStatusService: NzFormStatusService | null;
  23. isChecked: boolean;
  24. name: string | null;
  25. onChange: OnChangeType;
  26. onTouched: OnTouchedType;
  27. inputElement: ElementRef<HTMLInputElement>;
  28. nzValue: NzSafeAny | null;
  29. nzDisabled: boolean;
  30. nzAutoFocus: boolean;
  31. isRadioButton: boolean;
  32. dir: Direction;
  33. focus(): void;
  34. blur(): void;
  35. constructor(ngZone: NgZone, elementRef: ElementRef, cdr: ChangeDetectorRef, focusMonitor: FocusMonitor);
  36. setDisabledState(disabled: boolean): void;
  37. writeValue(value: boolean): void;
  38. registerOnChange(fn: OnChangeType): void;
  39. registerOnTouched(fn: OnTouchedType): void;
  40. ngOnInit(): void;
  41. ngAfterViewInit(): void;
  42. ngOnDestroy(): void;
  43. private setupClickListener;
  44. static ɵfac: i0.ɵɵFactoryDeclaration<NzRadioComponent, never>;
  45. static ɵcmp: i0.ɵɵComponentDeclaration<NzRadioComponent, "[nz-radio],[nz-radio-button]", ["nzRadio"], { "nzValue": { "alias": "nzValue"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzAutoFocus": { "alias": "nzAutoFocus"; "required": false; }; "isRadioButton": { "alias": "nz-radio-button"; "required": false; }; }, {}, never, ["*"], true, never>;
  46. static ngAcceptInputType_nzDisabled: unknown;
  47. static ngAcceptInputType_nzAutoFocus: unknown;
  48. static ngAcceptInputType_isRadioButton: unknown;
  49. }