checkbox-group.component.d.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233
  1. import { ControlValueAccessor } from '@angular/forms';
  2. import { OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types';
  3. import * as i0 from "@angular/core";
  4. export interface NzCheckboxOption {
  5. label: string;
  6. value: string | number;
  7. disabled?: boolean;
  8. }
  9. /**
  10. * @deprecated Deprecated in v19.0.0. Please use {@link NzCheckboxOption} to instead.
  11. */
  12. export type NzCheckBoxOptionInterface = NzCheckboxOption;
  13. export declare class NzCheckboxGroupComponent implements ControlValueAccessor {
  14. private onChange;
  15. private onTouched;
  16. private isDisabledFirstChange;
  17. private readonly directionality;
  18. readonly nzName: import("@angular/core").InputSignal<string | null>;
  19. readonly nzDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
  20. readonly nzOptions: import("@angular/core").InputSignal<NzCheckboxOption[] | string[] | number[]>;
  21. readonly value: import("@angular/core").WritableSignal<(string | number)[] | null>;
  22. readonly finalDisabled: import("@angular/core").WritableSignal<boolean>;
  23. protected readonly dir: import("@angular/core").Signal<import("@angular/cdk/bidi").Direction>;
  24. protected readonly normalizedOptions: import("@angular/core").Signal<NzCheckboxOption[]>;
  25. constructor();
  26. writeValue(value: Array<string | number> | null): void;
  27. registerOnChange(fn: OnChangeType): void;
  28. registerOnTouched(fn: OnTouchedType): void;
  29. setDisabledState(disabled: boolean): void;
  30. onCheckedChange(optionValue: NzCheckboxOption['value'], checked: boolean): void;
  31. static ɵfac: i0.ɵɵFactoryDeclaration<NzCheckboxGroupComponent, never>;
  32. static ɵcmp: i0.ɵɵComponentDeclaration<NzCheckboxGroupComponent, "nz-checkbox-group", ["nzCheckboxGroup"], { "nzName": { "alias": "nzName"; "required": false; "isSignal": true; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; "isSignal": true; }; "nzOptions": { "alias": "nzOptions"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
  33. }