@angular/cdk
Version:
Angular Material Component Development Kit
25 lines (24 loc) • 1.15 kB
TypeScript
import { OnDestroy } from '@angular/core';
import { OverlayReference } from '../overlay-reference';
import * as i0 from "@angular/core";
/**
* Service for dispatching events that land on the body to appropriate overlay ref,
* if any. It maintains a list of attached overlays to determine best suited overlay based
* on event target and order of overlay opens.
*/
export declare abstract class BaseOverlayDispatcher implements OnDestroy {
/** Currently attached overlays in the order they were attached. */
_attachedOverlays: OverlayReference[];
protected _document: Document;
protected _isAttached: boolean;
constructor(document: any);
ngOnDestroy(): void;
/** Add a new overlay to the list of attached overlay refs. */
add(overlayRef: OverlayReference): void;
/** Remove an overlay from the list of attached overlay refs. */
remove(overlayRef: OverlayReference): void;
/** Detaches the global event listener. */
protected abstract detach(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<BaseOverlayDispatcher, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<BaseOverlayDispatcher>;
}