checkbox.component.d.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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, Directionality } from '@angular/cdk/bidi';
  7. import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, 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 NzCheckboxComponent implements OnInit, ControlValueAccessor, OnDestroy, AfterViewInit {
  13. private ngZone;
  14. private elementRef;
  15. private cdr;
  16. private focusMonitor;
  17. private directionality;
  18. dir: Direction;
  19. private destroy$;
  20. private isNzDisableFirstChange;
  21. onChange: OnChangeType;
  22. onTouched: OnTouchedType;
  23. inputElement: ElementRef<HTMLInputElement>;
  24. readonly nzCheckedChange: EventEmitter<boolean>;
  25. nzValue: NzSafeAny | null;
  26. nzAutoFocus: boolean;
  27. nzDisabled: boolean;
  28. nzIndeterminate: boolean;
  29. nzChecked: boolean;
  30. nzId: string | null;
  31. nzName: string | null;
  32. innerCheckedChange(checked: boolean): void;
  33. writeValue(value: boolean): void;
  34. registerOnChange(fn: OnChangeType): void;
  35. registerOnTouched(fn: OnTouchedType): void;
  36. setDisabledState(disabled: boolean): void;
  37. focus(): void;
  38. blur(): void;
  39. /** @deprecated */
  40. private nzCheckboxWrapperComponent;
  41. protected checkboxGroupComponent: import("ng-zorro-antd/checkbox").NzCheckboxGroupComponent | null;
  42. protected nzFormStatusService: NzFormStatusService | null;
  43. constructor(ngZone: NgZone, elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, focusMonitor: FocusMonitor, directionality: Directionality);
  44. ngOnInit(): void;
  45. ngAfterViewInit(): void;
  46. ngOnDestroy(): void;
  47. private setValue;
  48. static ɵfac: i0.ɵɵFactoryDeclaration<NzCheckboxComponent, never>;
  49. static ɵcmp: i0.ɵɵComponentDeclaration<NzCheckboxComponent, "[nz-checkbox]", ["nzCheckbox"], { "nzValue": { "alias": "nzValue"; "required": false; }; "nzAutoFocus": { "alias": "nzAutoFocus"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzIndeterminate": { "alias": "nzIndeterminate"; "required": false; }; "nzChecked": { "alias": "nzChecked"; "required": false; }; "nzId": { "alias": "nzId"; "required": false; }; "nzName": { "alias": "nzName"; "required": false; }; }, { "nzCheckedChange": "nzCheckedChange"; }, never, ["*"], true, never>;
  50. static ngAcceptInputType_nzAutoFocus: unknown;
  51. static ngAcceptInputType_nzDisabled: unknown;
  52. static ngAcceptInputType_nzIndeterminate: unknown;
  53. static ngAcceptInputType_nzChecked: unknown;
  54. }