@alauda/ui
Version:
Angular UI components by Alauda Frontend Team.
29 lines (28 loc) • 1.45 kB
TypeScript
import { FocusMonitor } from '@angular/cdk/a11y';
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
import { CommonFormControl } from '../form';
import { CheckboxGroupComponent } from './checkbox-group/checkbox-group.component';
import * as i0 from "@angular/core";
export declare class CheckboxComponent<T> extends CommonFormControl<boolean> implements AfterViewInit, OnDestroy {
private readonly focusMonitor;
id: string;
name: string;
type: string;
get label(): T;
set label(val: T);
get indeterminate(): boolean;
set indeterminate(value: boolean);
elRef: ElementRef;
private readonly checkboxGroup;
private _label;
private readonly label$$;
private _indeterminate;
private readonly destroy$$;
constructor(cdr: ChangeDetectorRef, checkboxGroup: CheckboxGroupComponent<T>, focusMonitor: FocusMonitor);
ngAfterViewInit(): void;
ngOnDestroy(): void;
onClick(): void;
onBlur(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent<any>, [null, { optional: true; }, null]>;
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent<any>, "aui-checkbox", never, { "name": { "alias": "name"; "required": false; }; "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, {}, never, ["*"], true, never>;
}