import { EventEmitter } from "../../stencil-public-runtime"; import { Options } from "@popperjs/core"; import { IcThemeMode } from "../../utils/types"; /** * @slot anchor - The default anchor element for the popover menu. This will take precedence over the `anchor` prop. */ export declare class PopoverMenu { private anchorEl; private ARIA_LABEL; private backButton?; private currentFocus; private popoverMenuEls; private popperInstance; private menuAriaLabel?; el: HTMLIcPopoverMenuElement; openingFromChild: boolean; openingFromParent: boolean; popperProps: Partial; /** * The ID of the element the popover menu will anchor itself to. This is required unless the popover is a submenu. */ anchor?: string; /** * Setting to `true` can help in situations where tooltip content is clipped by a parent element. */ fixedPositioning: boolean; /** * @internal The parent popover menu of a child popover menu. */ parentLabel?: string; /** * @internal The parent popover menu of a child popover menu. */ parentPopover?: HTMLIcPopoverMenuElement; /** * The unique identifier for a popover submenu. */ submenuId?: string; /** * @internal The level of menu being displayed. */ submenuLevel?: number; /** * Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. */ theme?: IcThemeMode; /** * If `true`, the popover menu will be displayed. */ open?: boolean | undefined; watchOpenHandler(): void; /** * Emitted when the popover menu is closed. */ icPopoverClosed: EventEmitter; disconnectedCallback(): void; componentDidLoad(): void; componentWillRender(): void; componentDidRender(): void; handleMenuItemClick(ev: CustomEvent): void; handleSubmenuChange(ev: Event): void; handleClick(ev: Event): void; handleKeyDown(ev: KeyboardEvent): void; /** * @internal Opens the menu from the child menu. */ openFromChild(): Promise; /** * @internal Opens the menu from the parent menu. */ openFromParent(): Promise; private setButtonFocus; private findAnchorEl; private isNotPopoverMenuEl; /** * @internal Close the menu, emit icPopoverClosed of the root popover * @param setFocusToAnchor when true return focus to anchor element when menu is closed */ closeMenu(setFocusToAnchor?: boolean, menuElement?: HTMLIcMenuItemElement): Promise; /** * @internal This method allows props to be added to the PopperJS createPopper instance outside of the popover menu * @param props object - createPopper props set externally */ setExternalPopperProps>(props: T): Promise; private getNextItemToSelect; private addMenuItems; private getMenuAriaLabel; private handleBackButtonClick; private initPopperJS; render(): any; }