import * as _angular_core from '@angular/core'; import { OnInit, ElementRef, TemplateRef, OnDestroy } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from 'ngx-tethys/icon'; import * as i3 from 'ngx-tethys/popover'; import { ThyPopoverConfig } from 'ngx-tethys/popover'; import { ComponentType } from '@angular/cdk/portal'; type ThyMenuVariant = 'compact' | 'loose'; /** @deprecated 注意:ThyMenuTheme 后续只支持传 'light' | 'dark'。 如果要传 'compact' | 'loose',请使用 thyVariant: ThyMenuVariant */ type ThyMenuTheme = 'compact' | 'loose' | 'light' | 'dark'; /** * 菜单组件 * @name thy-menu,[thy-menu],[thyMenu] * @order 5 */ declare class ThyMenu implements OnInit { /** * 菜单形态 * @type compact | loose * @default compact */ readonly thyVariant: _angular_core.InputSignal; /** * 菜单主题 * @type light | dark * @default light * @deprecated 注意:thyTheme 后续只支持传 'light' | 'dark'。'compact' | 'loose' 将废弃,请使用 ThyMenuVariant */ readonly thyTheme: _angular_core.InputSignalWithTransform; /** * 是否收起 */ readonly thyCollapsed: _angular_core.InputSignalWithTransform; protected variant: _angular_core.Signal; protected theme: _angular_core.Signal; constructor(); ngOnInit(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 菜单分组组件 * @name thy-menu-group,[thy-menu-group],[thyMenuGroup] * @order 30 */ declare class ThyMenuGroup implements OnInit { private popover; protected parent: ThyMenu | null; groupHeaderPaddingLeft: number; readonly _thyMenuGroup: _angular_core.Signal | undefined>; readonly headerContentTemplateRef: _angular_core.Signal | undefined>; /** * 分组标题 */ readonly thyTitle: _angular_core.InputSignal; /** * 是否处于收起状态 */ readonly thyCollapsedInput: _angular_core.InputSignal; readonly thyCollapsed: _angular_core.WritableSignal; /** * 是否支持展开收起 */ readonly thyCollapsible: _angular_core.InputSignalWithTransform; /** * 是否显示 Icon * @deprecated please use thyIcon */ readonly thyShowIcon: _angular_core.InputSignalWithTransform; /** * 图标,传入则展示 */ readonly thyIcon: _angular_core.InputSignal; /** * 操作图标,传入则展示 */ readonly thyActionIcon: _angular_core.InputSignal; /** * 是否显示操作 * @deprecated please use thyActionIcon */ readonly thyShowAction: _angular_core.InputSignalWithTransform; /** * 操作阻止冒泡事件 */ readonly thyActionStopPropagation: _angular_core.InputSignalWithTransform; /** * Action 点击事件 */ readonly thyOnActionClick: _angular_core.OutputEmitterRef; readonly thyCollapsedChange: _angular_core.OutputEmitterRef; /** * 设置 Action 菜单 */ readonly thyActionMenu: _angular_core.InputSignal | ComponentType | undefined>; readonly isOpen: _angular_core.Signal; readonly displayIcon: _angular_core.Signal; readonly displayActionIcon: _angular_core.Signal; constructor(); ngOnInit(): void; collapseGroup(): void; onActionClick(event: Event): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 菜单项组件 * @name thy-menu-item,[thy-menu-item],[thyMenuItem] * @order 10 */ declare class ThyMenuItem { private renderer; readonly content: _angular_core.Signal>; /** * 菜单项的图标 */ readonly thyIcon: _angular_core.InputSignal; constructor(); private wrapSpanForText; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 菜单项名称 * @name thy-menu-item-name,[thy-menu-item-name],[thyMenuItemName] * @order 20 */ declare class ThyMenuItemName implements OnInit { /** * 是否 ellipsis */ readonly thyOverflowEllipsis: _angular_core.InputSignalWithTransform; constructor(); ngOnInit(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 菜单项图标组件 * @name thy-menu-item-icon,[thy-menu-item-icon],[thyMenuItemIcon] * @order 15 */ declare class ThyMenuItemIcon implements OnInit { /** * 设置图标颜色 */ readonly thyColor: _angular_core.InputSignal; private hostRenderer; constructor(); ngOnInit(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 菜单项操作组件 * @name thy-menu-item-action,[thy-menu-item-action],[thyMenuItemAction] * @order 25 */ declare class ThyMenuItemAction implements OnInit, OnDestroy { private popover; private renderer; private elementRef; _boundEvent: boolean; /** * 设置 Action 菜单 */ readonly thyActionMenu: _angular_core.InputSignal | ComponentType | undefined>; /** * 是否阻止事件冒泡 */ readonly thyStopPropagation: _angular_core.InputSignalWithTransform; /** * 弹出框的参数 * @default { placement: "bottomLeft", insideClosable: true } */ readonly thyPopoverOptions: _angular_core.InputSignal | undefined>; private bindClickEvent; private removeClickListenerFn; ngOnInit(): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * @name thy-menu-divider,[thy-menu-divider],[thyMenuDivider] */ declare class ThyMenuDivider implements OnInit { isThyMenuDivider: boolean; constructor(); ngOnInit(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class ThyMenuModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThyMenu, ThyMenuDivider, ThyMenuGroup, ThyMenuItem, ThyMenuItemAction, ThyMenuItemIcon, ThyMenuItemName, ThyMenuModule }; export type { ThyMenuTheme, ThyMenuVariant };