import { MenuExpandedKeys, MenuItemTemplateContext, MenuPassThrough, MenuSubmenuHeaderTemplateContext } from "primeng/types/menu"; import * as i0 from "@angular/core"; import { ElementRef, PipeTransform, TemplateRef } from "@angular/core"; import { MotionEvent, MotionOptions } from "@primeuix/motion"; import * as i2 from "primeng/api"; import { MenuItem, OverlayService } from "primeng/api"; import { BaseComponent } from "primeng/basecomponent"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { ConnectedOverlayScrollHandler } from "primeng/dom"; import { VoidListener } from "primeng/ts-helpers"; import { AppendTo, CSSProperties } from "primeng/types/shared"; import { BaseStyle } from "primeng/base"; import { SafeHtml } from "@angular/platform-browser"; export * from "primeng/types/menu"; export declare class MenuStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-menu-overlay': any; })[]; start: string; list: string; submenuLabel: string; submenuList: string; separator: string; end: string; item: ({ instance, item, id, toggleable }: { instance: any; item: any; id: any; toggleable: any; }) => (string | { 'p-menu-item-toggleable': any; 'p-focus': any; 'p-disabled': any; })[]; itemContent: string; itemLink: string; itemIcon: string; itemLabel: string; itemSubmenuIcon: string; }; inlineStyles: { root: ({ instance }: { instance: any; }) => any; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * Menu is a navigation / command component that supports dynamic and static positioning. * * [Live Demo](https://www.primeng.org/menu/) * * @module menustyle * */ export declare enum MenuClasses { /** * Class name of the root element */ root = "p-menu", /** * Class name of the start element */ start = "p-menu-start", /** * Class name of the list element */ list = "p-menu-list", /** * Class name of the submenu label element (non-toggleable group headers) */ submenuLabel = "p-menu-submenu-label", /** * Class name of the nested submenu list element */ submenuList = "p-menu-submenu-list", /** * Class name of the separator element */ separator = "p-menu-separator", /** * Class name of the end element */ end = "p-menu-end", /** * Class name of the item element */ item = "p-menu-item", /** * Class name of the item content element */ itemContent = "p-menu-item-content", /** * Class name of the item link element */ itemLink = "p-menu-item-link", /** * Class name of the item icon element */ itemIcon = "p-menu-item-icon", /** * Class name of the item label element */ itemLabel = "p-menu-item-label", /** * Class name of the item submenu toggle icon element (toggleable items) */ itemSubmenuIcon = "p-menu-item-submenu-icon" } export declare class SafeHtmlPipe implements PipeTransform { private platformId; private sanitizer; transform(value: string | undefined | null): SafeHtml; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MenuItemContent extends BaseComponent { item: import("@angular/core").InputSignal; itemTemplate: import("@angular/core").InputSignal | undefined>; menuitemId: import("@angular/core").InputSignal; idx: import("@angular/core").InputSignal; toggleable: import("@angular/core").InputSignalWithTransform; expanded: import("@angular/core").InputSignalWithTransform; depth: import("@angular/core").InputSignalWithTransform; submenuIconTemplate: import("@angular/core").InputSignal | undefined>; onMenuItemClick: import("@angular/core").OutputEmitterRef<{ originalEvent: Event; item: MenuItem; }>; menu: Menu; _componentStyle: MenuStyle; hostName: string; onItemClick(event: Event, item: MenuItem | undefined): void; getRouterLinkActiveOptions(item: MenuItem | undefined): any; getPTOptions(key: string): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Menu is a navigation / command component that supports dynamic and static positioning. * @group Components */ export declare class Menu extends BaseComponent { componentName: string; /** * An array of menuitems. * @group Props */ model: import("@angular/core").InputSignal; /** * Defines if menu would displayed as a popup. * @group Props */ popup: import("@angular/core").InputSignalWithTransform; /** * Inline style of the component. * @group Props */ style: import("@angular/core").InputSignal; /** * Style class of the component. * @group Props */ styleClass: import("@angular/core").InputSignal; /** * Whether to automatically manage layering. * @group Props */ autoZIndex: import("@angular/core").InputSignalWithTransform; /** * Base zIndex value to use in layering. * @group Props */ baseZIndex: import("@angular/core").InputSignalWithTransform; /** * Defines a string value that labels an interactive element. * @group Props */ ariaLabel: import("@angular/core").InputSignal; /** * Identifier of the underlying input element. * @group Props */ ariaLabelledBy: import("@angular/core").InputSignal; /** * Current id state as a string. * @group Props */ id: import("@angular/core").InputSignal; /** * Index of the element in tabbing order. * @group Props */ tabindex: import("@angular/core").InputSignalWithTransform; /** * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). * @defaultValue 'self' * @group Props */ appendTo: import("@angular/core").InputSignal; /** * The motion options. * @group Props */ motionOptions: import("@angular/core").InputSignal; /** * When provided, switches the component to controlled mode; each key is the DOM id of a toggleable submenu header and the value its expansion flag. * Use two-way binding with `[(expandedKeys)]`. * @group Props */ expandedKeys: import("@angular/core").ModelSignal; /** * Callback to invoke when overlay menu is shown. * @group Emits */ onShow: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when overlay menu is hidden. * @group Emits */ onHide: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when the list loses focus. * @param {Event} event - blur event. * @group Emits */ onBlur: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when the list receives focus. * @param {Event} event - focus event. * @group Emits */ onFocus: import("@angular/core").OutputEmitterRef; /** * Defines template option for start. * @group Templates */ startTemplate: import("@angular/core").Signal | undefined>; /** * Defines template option for end. * @group Templates */ endTemplate: import("@angular/core").Signal | undefined>; /** * Custom item template. * @param {MenuItemTemplateContext} context - item context. * @see {@link MenuItemTemplateContext} * @group Templates */ itemTemplate: import("@angular/core").Signal | undefined>; /** * Custom submenu header template. * @param {MenuSubmenuHeaderTemplateContext} context - submenu header context. * @see {@link MenuSubmenuHeaderTemplateContext} * @group Templates */ submenuHeaderTemplate: import("@angular/core").Signal | undefined>; /** * Custom submenu toggle icon template. * @param {MenuSubmenuHeaderTemplateContext} context - submenu header context. * @see {@link MenuSubmenuHeaderTemplateContext} * @group Templates */ submenuIconTemplate: import("@angular/core").Signal | undefined>; listViewChild: import("@angular/core").Signal | undefined>; containerViewChild: import("@angular/core").Signal | undefined>; private _internalId; $id: import("@angular/core").Signal; $appendTo: import("@angular/core").Signal; computedMotionOptions: import("@angular/core").Signal; container: HTMLElement | undefined; scrollHandler: ConnectedOverlayScrollHandler | null | undefined; documentClickListener: VoidListener; documentResizeListener: VoidListener; preventDocumentDefault: boolean | undefined; target: HTMLElement | null; visible: import("@angular/core").WritableSignal; focusedOptionId: import("@angular/core").Signal; focusedOptionIndex: import("@angular/core").WritableSignal; selectedOptionIndex: import("@angular/core").WritableSignal; focused: import("@angular/core").WritableSignal; overlayVisible: import("@angular/core").WritableSignal; d_expandedKeys: import("@angular/core").WritableSignal; currentExpandedKeys: import("@angular/core").Signal; $pcMenu: Menu | undefined; overlayService: OverlayService; _componentStyle: MenuStyle; bindDirectiveInstance: Bind; dataP: import("@angular/core").Signal; activedescendant: import("@angular/core").Signal; onAfterViewChecked(): void; getPTOptions(key: string, item: MenuItem | undefined, index: number, id: string): any; /** * Toggles the visibility of the popup menu. * @param {Event} event - Browser event. * @group Method */ toggle(event: Event): void; /** * Displays the popup menu. * @param {Event} event - Browser event. * @group Method */ show(event: Event): void; onInit(): void; getTabIndexValue(): string | null; onOverlayBeforeEnter(event: MotionEvent): void; onOverlayAfterLeave(): void; appendOverlay(): void; restoreOverlayAppend(): void; moveOnTop(): void; /** * Hides the popup menu. * @group Method */ hide(): void; onWindowResize(): void; menuitemId(item: MenuItem, id: string, index?: string | number, childIndex?: string | number): string; isItemFocused(id: string | number | null): boolean; label(label: string | (() => string) | undefined): string | undefined; disabled(disabled: boolean | (() => boolean) | undefined): boolean; isVisible(item: MenuItem): boolean; isSeparatorVisible(item: MenuItem): boolean | undefined; isItemVisible(item: MenuItem): boolean; isSubmenuSeparatorVisible(item: MenuItem, submenu: MenuItem): boolean | undefined; isSubmenuItemVisible(item: MenuItem, submenu: MenuItem): boolean; onListFocus(event: Event): void; onListBlur(event: FocusEvent | MouseEvent): void; onListKeyDown(event: KeyboardEvent): void; onArrowDownKey(event: KeyboardEvent): void; onArrowUpKey(event: KeyboardEvent): void; onHomeKey(event: KeyboardEvent): void; onEndKey(event: KeyboardEvent): void; onEnterKey(event: KeyboardEvent): void; onSpaceKey(event: KeyboardEvent): void; findNextOptionIndex(index: string | number): number; findPrevOptionIndex(index: string | number): number; changeFocusedOptionIndex(index: number): void; itemClick(event: { originalEvent: Event; item: MenuItem; }, id: string): void; onOverlayClick(event: Event): void; bindDocumentClickListener(): void; unbindDocumentClickListener(): void; bindDocumentResizeListener(): void; unbindDocumentResizeListener(): void; bindScrollListener(): void; unbindScrollListener(): void; onOverlayHide(): void; onDestroy(): void; hasSubMenu(): boolean; getSubmenuKey(submenu: MenuItem, id: string): string; isSubmenuToggleable(submenu: MenuItem, depth?: number): boolean; isSubmenuExpanded(submenu: MenuItem, depth?: number, id?: string): boolean; toggleSubmenu(submenu: MenuItem, id: string, depth?: number): void; onItemLiClick(event: Event, item: MenuItem, id: string, depth: number): void; onItemLiMousedown(event: Event, item: MenuItem, depth: number): void; focusMenuList(): void; isItemHidden(item: MenuItem): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MenuModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }