radio-group.component.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
  7. import { ControlValueAccessor } from '@angular/forms';
  8. import { NzSafeAny, NzSizeLDSType, OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types';
  9. import { NzRadioService } from './radio.service';
  10. import * as i0 from "@angular/core";
  11. export type NzRadioButtonStyle = 'outline' | 'solid';
  12. export declare class NzRadioGroupComponent implements OnInit, ControlValueAccessor, OnDestroy, OnChanges {
  13. private cdr;
  14. private nzRadioService;
  15. private directionality;
  16. private value;
  17. private destroy$;
  18. private isNzDisableFirstChange;
  19. onChange: OnChangeType;
  20. onTouched: OnTouchedType;
  21. nzDisabled: boolean;
  22. nzButtonStyle: NzRadioButtonStyle;
  23. nzSize: NzSizeLDSType;
  24. nzName: string | null;
  25. dir: Direction;
  26. constructor(cdr: ChangeDetectorRef, nzRadioService: NzRadioService, directionality: Directionality);
  27. ngOnInit(): void;
  28. ngOnChanges(changes: SimpleChanges): void;
  29. ngOnDestroy(): void;
  30. writeValue(value: NzSafeAny): void;
  31. registerOnChange(fn: OnChangeType): void;
  32. registerOnTouched(fn: OnTouchedType): void;
  33. setDisabledState(isDisabled: boolean): void;
  34. static ɵfac: i0.ɵɵFactoryDeclaration<NzRadioGroupComponent, never>;
  35. static ɵcmp: i0.ɵɵComponentDeclaration<NzRadioGroupComponent, "nz-radio-group", ["nzRadioGroup"], { "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzButtonStyle": { "alias": "nzButtonStyle"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzName": { "alias": "nzName"; "required": false; }; }, {}, never, ["*"], true, never>;
  36. static ngAcceptInputType_nzDisabled: unknown;
  37. }