@clr/angular
Version:
Angular components for Clarity
37 lines (36 loc) • 1.75 kB
TypeScript
import { ElementRef, InjectionToken, Injector, OnDestroy, OnInit, Renderer2, Type, ViewContainerRef } from '@angular/core';
import { NgControl } from '@angular/forms';
import { Subscription } from 'rxjs';
import { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';
import { ControlIdService } from './providers/control-id.service';
import { NgControlService } from './providers/ng-control.service';
import * as i0 from "@angular/core";
export declare class WrappedFormControl<W extends DynamicWrapper> implements OnInit, OnDestroy {
protected vcr: ViewContainerRef;
protected wrapperType: Type<W>;
private ngControl;
_id: string;
protected renderer: Renderer2;
protected controlIdService: ControlIdService;
protected ngControlService: NgControlService;
protected el: ElementRef<any>;
protected index: number;
protected subscriptions: Subscription[];
private ifControlStateService;
private controlClassService;
private markControlService;
private containerIdService;
private _containerInjector;
constructor(vcr: ViewContainerRef, wrapperType: Type<W>, injector: Injector, ngControl: NgControl, renderer: Renderer2, el: ElementRef);
get id(): string;
set id(value: string);
ngOnInit(): void;
ngOnDestroy(): void;
triggerValidation(): void;
protected getProviderFromContainer<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T): T;
private markAsTouched;
private setAriaDescribedBy;
private getAriaDescribedById;
static ɵfac: i0.ɵɵFactoryDeclaration<WrappedFormControl<any>, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WrappedFormControl<any>, never, never, { "id": "id"; }, {}, never, never, false, never>;
}