@taiga-ui/kit
Version:
Taiga UI Angular main components kit
18 lines (17 loc) • 860 B
TypeScript
import { ElementRef, OnDestroy } from '@angular/core';
import { TuiDirectiveStylesService } from '@taiga-ui/cdk';
import { Observable } from 'rxjs';
export declare class TuiPresentDirective implements OnDestroy {
readonly tuiPresentChange: Observable<boolean>;
private readonly visibility$;
private readonly observer?;
constructor({ nativeElement }: ElementRef<HTMLElement>, directiveStyles: TuiDirectiveStylesService, userAgent: string);
/**
* Someday animationcancel would work and mutation observer would not be needed:
* https://drafts.csswg.org/css-animations/#eventdef-animationevent-animationcancel
* It would also trigger on CSS like display: none on parent nodes which is awesome
* but currently only works in Firefox
*/
onAnimation(event: Event, visibility: boolean): void;
ngOnDestroy(): void;
}