import * as _siemens_element_ng_header_dropdown from '@siemens/element-ng/header-dropdown'; import * as _angular_core from '@angular/core'; import { OnChanges, OnInit, OnDestroy, TemplateRef, Signal, InjectionToken } from '@angular/core'; import { MenuItem } from '@siemens/element-ng/common'; import { ConnectedPosition } from '@angular/cdk/overlay'; /** * Trigger to open dropdowns in a navbar. * A dropdown will always be attached to the view, even if not visible. * * If a dropdown is opened in desktop mode, it will be reattached to an overlay while being opened. */ declare class SiHeaderDropdownTriggerDirective implements OnChanges, OnInit, OnDestroy { private static idCounter; /** Template rendered inside the dropdown. */ readonly dropdown: _angular_core.InputSignal>; /** Context data passed to the dropdown template. */ readonly dropdownData: _angular_core.InputSignal; /** Emits whenever a dropdown is opened or closed. */ readonly openChange: _angular_core.OutputEmitterRef; private readonly dropdownClose; /** Child triggers will set themselves here if they are open. */ private openSubmenu?; private readonly viewContainerRef; private readonly elementRef; private readonly overlay; private readonly parent; /** @internal */ readonly navbar: _siemens_element_ng_header_dropdown.HeaderWithDropdowns | null; /** * Whether the dropdown is opened inline (mobile) instead of in an overlay (desktop). * Inline dropdowns are simple disclosure groups, while overlay dropdowns are dialogs. */ protected readonly inline: _angular_core.Signal; private readonly injector; private viewRef?; private portal?; private overlayRef?; /** @internal */ readonly level: number; private destroying; /** @internal */ readonly id: string; protected _isOpen: boolean; /** @internal */ readonly ariaControls: string; private headerAnchorComponentRef?; constructor(); /** Whether the dropdown is currently open. */ get isOpen(): boolean; /** @internal */ get isOverlay(): boolean; ngOnChanges(): void; ngOnInit(): void; ngOnDestroy(): void; /** Opens the dropdown. */ open(): void; /** Closes the dropdown. */ close(options?: { all?: boolean; }): void; protected click(): void; private attachDropdownInline; private attachDropdownOverlay; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * Wrapper component for {@link SiHeaderDropdownItemComponent}. * Must only be opened using an {@link SiHeaderDropdownTriggerDirective}. */ declare class SiHeaderDropdownComponent { /** @internal */ protected trigger: SiHeaderDropdownTriggerDirective; private readonly focusTrap; private previousElement; private readonly document; private readonly options; constructor(); /** @internal */ protected get trapFocus(): boolean; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * Creates a dropdown-item. Must be used within an {@link SiHeaderDropdownComponent}. */ declare class SiHeaderDropdownItemComponent { protected readonly icons: Record<"elementDown2" | "elementOk" | "elementRecordFilled", string>; /** Optional icon that will be rendered before the label. */ readonly icon: _angular_core.InputSignal; /** Badge that is rendered after the label. */ readonly badge: _angular_core.InputSignal; /** Badge (always red) that is attached to the icon. */ readonly iconBadge: _angular_core.InputSignal; /** Color of the badge (not iconBadge). */ readonly badgeColor: _angular_core.InputSignal; /** Whether the icon is checked with a radio or check mark. */ readonly checked: _angular_core.InputSignal<"" | "check" | "radio" | undefined>; protected readonly ownTrigger: SiHeaderDropdownTriggerDirective | null; protected readonly parentTrigger: SiHeaderDropdownTriggerDirective; protected readonly navbar: _siemens_element_ng_header_dropdown.HeaderWithDropdowns | null; protected click(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * A factory to render multiple {@link MenuItem}. * Requires a wrapping {@link SiHeaderDropdownComponent}. * * @internal */ declare class SiHeaderDropdownItemsFactoryComponent { /** Menu items rendered by this factory. */ readonly items: _angular_core.InputSignal; /** Emits whether a generated dropdown item is active. */ readonly activeChange: _angular_core.OutputEmitterRef; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ /** @internal */ interface HeaderWithDropdowns { /** Called whenever an item is triggered that is not opening another dropdown. */ onDropdownItemTriggered?(): void; /** Whether the dropdown should be opened inline. */ inlineDropdown: Signal; /** The position of the dropdown if opened in an overlay. */ overlayPosition?: ConnectedPosition[]; /** Called whenever a dropdown is opened **/ dropdownOpened?(trigger: SiHeaderDropdownTriggerDirective): void; /** Called whenever a dropdown is close **/ dropdownClosed?(trigger: SiHeaderDropdownTriggerDirective): void; } /** @internal */ declare const SI_HEADER_WITH_DROPDOWNS: InjectionToken; /** * Can be used to pass context-specific options to a header-dropdown * that should / or cannot be provided by a consuming application. * @internal */ interface HeaderDropdownOptions { /** * If the inline navbar is already wrapped in a focus trap, * set this property to prevent the header-dropdown from creating a focus trap. */ disableRootFocusTrapForInlineMode: boolean; } /** @internal */ declare const SI_HEADER_DROPDOWN_OPTIONS: InjectionToken; export { SI_HEADER_DROPDOWN_OPTIONS, SI_HEADER_WITH_DROPDOWNS, SiHeaderDropdownComponent, SiHeaderDropdownItemComponent, SiHeaderDropdownItemsFactoryComponent, SiHeaderDropdownTriggerDirective }; export type { HeaderDropdownOptions, HeaderWithDropdowns };