UNPKG

1.54 kBTypeScriptView Raw
1import { Emitter, Event } from '../../common';
2import { Disposable, DisposableCollection } from '../../common/disposable';
3import { Coordinate } from '../context-menu-renderer';
4import { RendererHost } from '../widgets/react-renderer';
5export interface BreadcrumbPopupContainerFactory {
6 (parent: HTMLElement, breadcrumbId: string, position: Coordinate): BreadcrumbPopupContainer;
7}
8export declare const BreadcrumbPopupContainerFactory: unique symbol;
9export declare type BreadcrumbID = string;
10export declare const BreadcrumbID: unique symbol;
11/**
12 * This class creates a popup container at the given position
13 * so that contributions can attach their HTML elements
14 * as children of `BreadcrumbPopupContainer#container`.
15 *
16 * - `dispose()` is called on blur or on hit on escape
17 */
18export declare class BreadcrumbPopupContainer implements Disposable {
19 protected readonly parent: RendererHost;
20 readonly breadcrumbId: BreadcrumbID;
21 protected readonly position: Coordinate;
22 protected onDidDisposeEmitter: Emitter<void>;
23 protected toDispose: DisposableCollection;
24 get onDidDispose(): Event<void>;
25 protected _container: HTMLElement;
26 get container(): HTMLElement;
27 protected _isOpen: boolean;
28 get isOpen(): boolean;
29 protected init(): void;
30 protected createPopupDiv(position: Coordinate): HTMLDivElement;
31 protected onFocusOut: (event: FocusEvent) => void;
32 protected escFunction: (event: KeyboardEvent) => void;
33 dispose(): void;
34}
35//# sourceMappingURL=breadcrumb-popup-container.d.ts.map
\No newline at end of file