UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

19 lines (18 loc) 1.01 kB
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { InterceptDeactivateService } from '../services/intercept-deactivate.service'; import * as i0 from "@angular/core"; export declare class InterceptDeactivateDirective implements AfterViewInit, OnDestroy { private readonly elRef; private readonly interceptDeactivate; enabled: boolean | ''; enabled$$: Observable<boolean | ''>; enabled$: Observable<boolean>; destroy$$: Subject<void>; constructor(elRef: ElementRef<HTMLElement>, interceptDeactivate: InterceptDeactivateService); ngAfterViewInit(): void; ngOnDestroy(): void; onBeforeUnload(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<InterceptDeactivateDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<InterceptDeactivateDirective, "[aclInterceptDeactivate]", never, { "enabled": { "alias": "aclInterceptDeactivate"; "required": false; }; }, {}, never, never, true, never>; }