You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.5 KiB
34 lines
1.5 KiB
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { OverlayReference } from '../overlay-reference';
|
|
import { Platform } from '@angular/cdk/platform';
|
|
import { BaseOverlayDispatcher } from './base-overlay-dispatcher';
|
|
/**
|
|
* Service for dispatching mouse click 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.
|
|
*/
|
|
import * as ɵngcc0 from '@angular/core';
|
|
export declare class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
private _platform;
|
|
private _cursorOriginalValue;
|
|
private _cursorStyleIsSet;
|
|
private _pointerDownEventTarget;
|
|
constructor(document: any, _platform: Platform);
|
|
/** Add a new overlay to the list of attached overlay refs. */
|
|
add(overlayRef: OverlayReference): void;
|
|
/** Detaches the global keyboard event listener. */
|
|
protected detach(): void;
|
|
/** Store pointerdown event target to track origin of click. */
|
|
private _pointerDownListener;
|
|
/** Click event listener that will be attached to the body propagate phase. */
|
|
private _clickListener;
|
|
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<OverlayOutsideClickDispatcher, never>;
|
|
}
|
|
|
|
//# sourceMappingURL=overlay-outside-click-dispatcher.d.ts.map
|