ng-halfmoon
Version:
Angular Library to build upon the halfmoon-framework
22 lines (21 loc) • 674 B
TypeScript
import { OnDestroy } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Observable } from 'rxjs';
/**
* This logic with managing the control-status is adopted from Clarity Design. All props go to their team and contributors
*/
export declare enum ControlStatus {
NONE = "NONE",
INVALID = "INVALID",
VALID = "VALID"
}
export declare class ControlService implements OnDestroy {
currentControl: FormControl;
get currentStatus$(): Observable<ControlStatus>;
private _currentStatus$;
private subscription;
constructor();
ngOnDestroy(): void;
init(control: FormControl): void;
triggerStatusChange(): void;
}