Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/cdk/overlay/overlay-reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import {Portal} from '@angular/cdk/portal';
import {Direction, Directionality} from '@angular/cdk/bidi';
import {Subject} from 'rxjs';
import {Observable, Subject} from 'rxjs';

/**
* Basic interface for an overlay. Used to avoid circular type references between
Expand All @@ -21,12 +21,20 @@ export interface OverlayReference {
dispose: () => void;
overlayElement: HTMLElement;
hostElement: HTMLElement;
backdropElement: HTMLElement | null;
getConfig: () => any;
hasAttached: () => boolean;
updateSize: (config: any) => void;
updatePosition: () => void;
getDirection: () => Direction;
setDirection: (dir: Direction | Directionality) => void;
backdropClick: () => Observable<MouseEvent>;
attachments: () => Observable<void>;
detachments: () => Observable<void>;
keydownEvents: () => Observable<KeyboardEvent>;
outsidePointerEvents: () => Observable<MouseEvent>;
addPanelClass: (classes: string | string[]) => void;
removePanelClass: (classes: string | string[]) => void;
readonly _outsidePointerEvents: Subject<MouseEvent>;
readonly _keydownEvents: Subject<KeyboardEvent>;
}