import { EventEmitter } from '../../stencil-public-runtime'; import { ApplicationLayoutContext } from '../utils/application-layout/context'; import { Breakpoint } from '../utils/breakpoints'; import { ContextType } from '../utils/context'; export declare class Menu { hostElement: HTMLIxMenuElement; /** * Is settings tab visible */ showSettings: boolean; /** * Is about tab visible */ showAbout: boolean; /** * Show toggle between light and dark variant. Only if the provided theme have implemented both! */ enableToggleTheme: boolean; /** @internal */ enableMapExpand: boolean; /** * Should only be set if you use ix-menu standalone */ applicationName?: string; /** * Should only be set if you use ix-menu standalone */ applicationDescription: string; /** * Accessibility i18n label for the burger menu of the sidebar * @deprecated Since 4.2.0. Will be removed in 5.0.0. The expand button is now hidden from screen readers with aria-hidden="true". */ i18nExpandSidebar: string; /** * Toggle the expand state of the menu */ expand: boolean; expandChanged(newExpand: boolean, oldExpand: boolean): void; /** * If set the menu will be expanded initially. This will only take effect at the breakpoint 'lg'. */ startExpanded: boolean; /** * Menu stays pinned to the left */ pinned: boolean; pinnedChange(newPinned: boolean): void; /** * i18n label for 'About & legal information' button */ i18nLegal: string; /** * i18n label for 'Settings' button */ i18nSettings: string; /** * i18n label for 'Toggle theme' button */ i18nToggleTheme: string; /** * i18n label for 'Expand' button */ i18nExpand: string; /** * i18n label for 'Collapse' button */ i18nCollapse: string; /** * Menu expanded */ expandChange: EventEmitter; /** * Map Sidebar expanded */ mapExpandChange: EventEmitter; /** * Event emitted when the app switch button is clicked * * @since 3.0.0 */ openAppSwitch: EventEmitter; /** * Event emitted when the settings button is clicked * @since 3.0.0 */ openSettings: EventEmitter; /** * Event emitted when the about button is clicked * @since 3.0.0 */ openAbout: EventEmitter; showPinned: boolean; mapExpand: boolean; breakpoint: Breakpoint; itemsScrollShadowTop: boolean; itemsScrollShadowBottom: boolean; applicationLayoutContext?: ContextType; isDarkMode: boolean; private isTransitionDisabled; private themeDisposer?; private themeNameDisposer?; private readonly isVisible; get popoverArea(): Element | null; get menu(): Element | null; get menuItemsContainer(): HTMLDivElement; get overlayContainer(): HTMLDivElement; get menuItems(): Element[]; get menuBottomItems(): Element[]; get homeTab(): Element | null; get moreItemsDropdown(): HTMLElement; get isMoreItemsDropdownEmpty(): boolean; get moreItemsDropdownItems(): NodeListOf; get activeMoreTabContainer(): Element | null; get activeMoreTab(): Element | null; get aboutPopoverContainer(): HTMLElement; get aboutNewsPopover(): HTMLIxMenuAboutNewsElement; get aboutTab(): HTMLElement | null; get about(): HTMLIxMenuAboutElement | null; get settings(): HTMLIxMenuSettingsElement | null; get isSettingsEmpty(): boolean; get tabsContainer(): HTMLIxMenuElement; componentDidLoad(): void; componentWillLoad(): void; componentDidRender(): void; disconnectedCallback(): void; private updateThemeState; private setPinned; private onBreakpointChange; private appendFragments; private getAboutPopoverVerticalPosition; private appendAboutNewsPopover; /** * Toggle map sidebar expand * @param show */ toggleMapExpand(show?: boolean): Promise; /** * Toggle menu * @param show */ toggleMenu(show?: boolean): Promise; /** * Disable transition of overlay while menu animation is running. */ private checkTransition; private isOverlayVisible; /** * Toggle Settings tabs * @param show */ toggleSettings(show: boolean): Promise; /** * Toggle About tabs * @param show */ toggleAbout(show: boolean): Promise; private resetOverlay; private getCollapseText; private getCollapseIcon; private isMenuItemClicked; private handleOverflowIndicator; onOverlayClose(): void; private animateOverlayFadeIn; private animateOverlayFadeOut; private onMenuItemsClick; private isHiddenFromViewport; private sidebarToggle; private showAppSwitch; render(): any; }