@porscheinformatik/clr-addons
Version:
Addon components for Clarity Angular
33 lines (32 loc) • 1.35 kB
TypeScript
import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
import { ControlValueAccessor, UntypedFormControl } from '@angular/forms';
import { Subject } from 'rxjs';
import * as i0 from "@angular/core";
export declare abstract class ClrAbstractFormComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
private injector;
formControl: boolean;
get showError(): boolean;
control: UntypedFormControl;
inputId: string;
disabled: boolean;
invalid: boolean;
destroyed: Subject<void>;
constructor(injector: Injector);
ngOnInit(): void;
ngAfterViewInit(): void;
abstract writeValue(value: unknown): void;
onChange: (_: unknown) => void;
registerOnChange(fn: (_: unknown) => void): void;
onTouch: () => void;
registerOnTouched(fn: () => void): void;
setDisabledState?(isDisabled: boolean): void;
ngOnDestroy(): void;
/**
* Patch markAsTouched method of ClrForm to get recognized when touched programmatically.
* No other way found to accomplish the same thing.
*/
patchMarkAsTouched(): void;
unpatchMarkAsTouched(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ClrAbstractFormComponent, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ClrAbstractFormComponent, never, never, {}, {}, never, never, true, never>;
}