@obliczeniowo/elementary
Version:
Library made in Angular version 20
33 lines (29 loc) • 1.72 kB
TypeScript
import * as i0 from '@angular/core';
import * as i3 from '@angular/forms';
import { ControlValueAccessor, Validator, ValidationErrors, AbstractControl } from '@angular/forms';
import * as i2 from '@angular/common';
import * as i4 from '@obliczeniowo/elementary/icons';
declare class CheckboxComponent implements ControlValueAccessor, Validator {
value: i0.ModelSignal<boolean | "mixed">;
disabled: boolean;
get error(): ValidationErrors | null;
protected abstractControl: AbstractControl | undefined;
clicked(event: Event): void;
onChange: (value: boolean | "mixed") => void;
onTouched: () => void;
getError(): ValidationErrors | null;
validate(control: AbstractControl): ValidationErrors | null;
registerOnValidatorChange(fn: () => void): void;
writeValue(value: boolean | 'mixed'): void;
registerOnChange(onChange: any): void;
registerOnTouched(onTouched: any): void;
setDisabledState(disabled: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "obl-checkbox", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "value": "valueChange"; }, never, ["*"], false, never>;
}
declare class CheckboxModule {
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, [typeof CheckboxComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.IconsModule], [typeof CheckboxComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxModule>;
}
export { CheckboxComponent, CheckboxModule };