cfc-ds
Version:
Design System do Conselho Federal de Contabilidade baseado no govbr-ds
27 lines (26 loc) • 1.16 kB
TypeScript
import { Injector, OnInit } from '@angular/core';
import { ControlValueAccessor, NgControl } from '@angular/forms';
import * as i0 from "@angular/core";
export declare abstract class CustomValueAccessor<TValue> implements ControlValueAccessor, OnInit {
protected injector: Injector;
id: string;
disabled: boolean;
required: boolean;
ngControl: NgControl | null;
private innerValue?;
protected onChange: (value: TValue) => void;
protected onTouched: () => void;
constructor(injector: Injector);
ngOnInit(): void;
get value(): TValue | undefined;
get valid(): boolean | null | undefined;
get invalid(): boolean | null | undefined;
get hasErrors(): boolean | null;
protected set value(value: TValue);
writeValue(value: TValue): void;
registerOnChange(fn: (value: TValue) => void): void;
registerOnTouched(fn: () => void): void;
setDisabledState(isDisabled: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CustomValueAccessor<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CustomValueAccessor<any>, "ng-component", never, {}, {}, never, never, false, never>;
}