1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { OnDestroy } from '@angular/core';
|
---|
9 | import { OverlayReference } from '../overlay-reference';
|
---|
10 | /**
|
---|
11 | * Service for dispatching events that land on the body to appropriate overlay ref,
|
---|
12 | * if any. It maintains a list of attached overlays to determine best suited overlay based
|
---|
13 | * on event target and order of overlay opens.
|
---|
14 | */
|
---|
15 | import * as ɵngcc0 from '@angular/core';
|
---|
16 | export declare abstract class BaseOverlayDispatcher implements OnDestroy {
|
---|
17 | /** Currently attached overlays in the order they were attached. */
|
---|
18 | _attachedOverlays: OverlayReference[];
|
---|
19 | protected _document: Document;
|
---|
20 | protected _isAttached: boolean;
|
---|
21 | constructor(document: any);
|
---|
22 | ngOnDestroy(): void;
|
---|
23 | /** Add a new overlay to the list of attached overlay refs. */
|
---|
24 | add(overlayRef: OverlayReference): void;
|
---|
25 | /** Remove an overlay from the list of attached overlay refs. */
|
---|
26 | remove(overlayRef: OverlayReference): void;
|
---|
27 | /** Detaches the global event listener. */
|
---|
28 | protected abstract detach(): void;
|
---|
29 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<BaseOverlayDispatcher, never>;
|
---|
30 | }
|
---|
31 |
|
---|
32 | //# sourceMappingURL=base-overlay-dispatcher.d.ts.map |
---|