import { QueryList, EventEmitter, ElementRef, ChangeDetectorRef, OnDestroy } from '@angular/core'; import { GhButton } from '@dynatrace/ngx-groundhog/button'; import { CanDisable, HasTabIndex, CanColor } from '@dynatrace/ngx-groundhog/core'; import { CdkConnectedOverlay } from '@angular/cdk/overlay'; import { FocusTrapFactory } from '@angular/cdk/a11y'; export declare class GhContextMenuBase { _elementRef: ElementRef; constructor(_elementRef: ElementRef); } export declare const _GhContextMenuBase: (new (...args: any[]) => HasTabIndex) & (new (...args: any[]) => CanDisable) & (new (...args: any[]) => CanColor) & typeof GhContextMenuBase; export declare class GhContextMenu extends _GhContextMenuBase implements OnDestroy, HasTabIndex, CanDisable, CanColor { private _changeDetectorRef; private _focusTrapFactory; private _document; /** Whether or not the overlay panel is open. */ private _panelOpen; /** Emits whenever the component is destroyed. */ private _destroy; /** Last emitted position of the overlay */ private _connectionPair; /** The class that traps and manages focus within the overlay. */ private _focusTrap; private _elementFocusedBeforeDialogWasOpened; /** Aria label of the context-menu. If not specified, * the fallback to 'Context menu' will be used. */ ariaLabel: string; readonly _ariaLabel: string; /** Event emitted when the select has been opened. */ readonly openedChange: EventEmitter; _positions: { originX: string; originY: string; overlayX: string; overlayY: string; }[]; /** Overlay pane containing the menu-items. */ overlayDir: CdkConnectedOverlay; /** Panel that holds the menu items */ panel: ElementRef; /** List of the items inside of a menu. */ items: QueryList; /** Whether or not the overlay panel is open. */ readonly panelOpen: boolean; constructor(elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _focusTrapFactory: FocusTrapFactory, tabIndex: string, _document: any); /** Opens the panel */ open(): void; /** Closes the panel */ close(): void; /** Focuses the context-menu element. */ focus(): void; /** Moves the focus inside the focus trap. */ private _trapFocus(); /** Restores focus to the element that was focused before the overlay opened. */ private _restoreFocus(); /** Saves a reference to the element that was focused before the overlay was opened. */ private _savePreviouslyFocusedElement(); /** Callback that is invoked when the overlay panel has been attached. */ _onAttached(): void; /** Hook that trigger right before the component will be destroyed. */ ngOnDestroy(): void; } export declare class GhContextMenuItem extends _GhContextMenuBase implements CanDisable, HasTabIndex, CanColor { private _changeDetectorRef; constructor(elementRef: ElementRef, tabIndex: string, _changeDetectorRef: ChangeDetectorRef); /** Event emitted when the item has been clicked. */ onClick: EventEmitter; _actionClicked(event: Event): void; }