ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
128 lines • 4.85 kB
TypeScript
import { ControlValueAccessor } from "@angular/forms";
import { NzSafeAny, OnChangeType, OnTouchedType } from "ng-zorro-antd/core/types";
import * as i0 from "@angular/core";
import { AfterViewInit, ElementRef, EventEmitter, InjectionToken, OnInit } from "@angular/core";
import { NzFormStatusService } from "ng-zorro-antd/core/form";
declare namespace checkbox_group_component_d_exports {
export { NzCheckboxGroupComponent, NzCheckboxOption };
}
export interface NzCheckboxOption {
label: string;
value: string | number;
disabled?: boolean;
}
export declare class NzCheckboxGroupComponent implements ControlValueAccessor {
private onChange;
private onTouched;
private isDisabledFirstChange;
protected readonly dir: import("@angular/core").WritableSignal<import("@angular/cdk/bidi").Direction>;
readonly nzName: import("@angular/core").InputSignal<string | null>;
readonly nzDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
readonly nzOptions: import("@angular/core").InputSignal<NzCheckboxOption[] | string[] | number[]>;
readonly value: import("@angular/core").WritableSignal<(string | number)[] | null>;
readonly finalDisabled: import("@angular/core").WritableSignal<boolean>;
protected readonly normalizedOptions: import("@angular/core").Signal<NzCheckboxOption[]>;
constructor();
writeValue(value: Array<string | number> | null): void;
registerOnChange(fn: OnChangeType): void;
registerOnTouched(fn: OnTouchedType): void;
setDisabledState(disabled: boolean): void;
onCheckedChange(optionValue: NzCheckboxOption['value'], checked: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzCheckboxGroupComponent, never>;
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>;
}
declare namespace checkbox_component_d_exports {
export { NzCheckboxComponent };
}
export declare class NzCheckboxComponent implements OnInit, ControlValueAccessor, AfterViewInit {
private ngZone;
private elementRef;
private cdr;
private focusMonitor;
protected readonly dir: import("@angular/core").WritableSignal<import("@angular/cdk/bidi").Direction>;
private destroyRef;
protected checkboxGroupComponent: import("ng-zorro-antd/checkbox").NzCheckboxGroupComponent | null;
protected nzFormStatusService: NzFormStatusService | null;
private isNzDisableFirstChange;
onChange: OnChangeType;
onTouched: OnTouchedType;
inputElement: ElementRef<HTMLInputElement>;
readonly nzCheckedChange: EventEmitter<boolean>;
nzValue: NzSafeAny | null;
nzAutoFocus: boolean;
nzDisabled: boolean;
nzIndeterminate: boolean;
nzChecked: boolean;
nzId: string | null;
nzName: string | null;
innerCheckedChange(checked: boolean): void;
writeValue(value: boolean): void;
registerOnChange(fn: OnChangeType): void;
registerOnTouched(fn: OnTouchedType): void;
setDisabledState(disabled: boolean): void;
focus(): void;
blur(): void;
constructor();
ngOnInit(): void;
ngAfterViewInit(): void;
private setValue;
static ɵfac: i0.ɵɵFactoryDeclaration<NzCheckboxComponent, never>;
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>;
static ngAcceptInputType_nzAutoFocus: unknown;
static ngAcceptInputType_nzDisabled: unknown;
static ngAcceptInputType_nzIndeterminate: unknown;
static ngAcceptInputType_nzChecked: unknown;
}
export declare class NzCheckboxModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzCheckboxModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzCheckboxModule, never, [typeof NzCheckboxComponent, typeof NzCheckboxGroupComponent], [typeof NzCheckboxComponent, typeof NzCheckboxGroupComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzCheckboxModule>;
}
export declare const NZ_CHECKBOX_GROUP: InjectionToken<NzCheckboxGroupComponent>;