import * as _angular_core from '@angular/core'; import { OnInit, OnDestroy, ElementRef, Signal, TemplateRef } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from '@angular/cdk/drag-drop'; import * as i3 from 'ngx-tethys/icon'; import * as i4 from 'ngx-tethys/tooltip'; import * as i5 from 'ngx-tethys/resizable'; import { ThyResizeEvent } from 'ngx-tethys/resizable'; import * as i6 from '@tethys/cdk/hotkey'; type ThySidebarTheme = 'white' | 'light' | 'dark'; type ThySidebarDirection = 'left' | 'right'; /** * 侧边栏布局指令 * @name thySidebar * @order 20 */ declare class ThySidebarDirective implements OnInit { private thyLayoutDirective; /** * sidebar 位置,默认在左侧 */ readonly thyDirection: _angular_core.InputSignal; /** * 主题 * @type white | light | dark * @default white */ readonly thyTheme: _angular_core.InputSignal; /** * 宽度,默认是 240px,传入 `lg` 大小时宽度是300px * @default 240px */ readonly thyWidth: _angular_core.InputSignalWithTransform; readonly sidebarWidth: _angular_core.WritableSignal; /** * 是否和右侧 /左侧隔离,当为 true 时距右侧 /左侧会有 margin,同时边框会去掉 * @default false */ readonly thyIsolated: _angular_core.InputSignalWithTransform; /** * sidebar 是否有分割线。当`thyDirection`值为`left`时,控制右侧是否有分割线;当`thyDirection`值为`right`时,控制左侧是否有分割线。 * @default true */ readonly thyDivided: _angular_core.InputSignalWithTransform; ngOnInit(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * 侧边栏布局组件 * @name thy-sidebar * @order 21 */ declare class ThySidebar implements OnInit, OnDestroy { private locale; readonly elementRef: ElementRef; private hotkeyDispatcher; readonly sidebarDirective: ThySidebarDirective; protected readonly isMouseEnter: _angular_core.WritableSignal; protected readonly sidebarWidth: Signal; mouseenter($event: MouseEvent): void; mouseleave($event: MouseEvent): void; /** * 宽度是否可以拖拽 * @default false */ readonly thyDraggable: _angular_core.InputSignalWithTransform; /** * 拖拽的最大宽度 */ readonly thyDragMaxWidth: _angular_core.InputSignalWithTransform; /** * 拖拽的最小宽度 */ readonly thyDragMinWidth: _angular_core.InputSignalWithTransform; /** * 展示收起的触发器自定义模板,默认显示展开收起的圆形图标,设置为 null 表示不展示触发元素,手动控制展开收起状态 * @type null | undefined | TemplateRef * @default undefined */ readonly thyTrigger: _angular_core.InputSignal | null | undefined>; /** * 收起状态改变后的事件 */ readonly thyCollapsedChange: _angular_core.OutputEmitterRef; /** * 拖拽宽度的修改事件 */ readonly thyDragWidthChange: _angular_core.OutputEmitterRef; /** * 开启收起/展开功能 * @default false */ readonly thyCollapsible: _angular_core.InputSignalWithTransform; /** * 是否是收起 * @default false */ readonly thyCollapsed: _angular_core.InputSignalWithTransform; readonly collapsed: _angular_core.WritableSignal; readonly collapseVisible: Signal; /** * 收起后的宽度 */ readonly thyCollapsedWidth: _angular_core.InputSignalWithTransform; /** * 默认宽度,双击后可恢复到此宽度,默认是 240px,传入 lg 大小时宽度是300px */ readonly thyDefaultWidth: _angular_core.InputSignalWithTransform; readonly collapseTip: Signal; private originWidth; readonly collapseHidden: _angular_core.WritableSignal; readonly isRemoveTransition: _angular_core.WritableSignal; readonly isResizable: _angular_core.WritableSignal; protected dragMinWidth: Signal; private hotkeySubscription; constructor(); ngOnInit(): void; private subscribeHotkeyEvent; resizeHandler({ width }: ThyResizeEvent): void; resizeStart(): void; resizeEnd(): void; toggleCollapse(event?: MouseEvent): void; toggleResizable(event: MouseEvent, type: 'enter' | 'leave'): void; restoreToDefaultWidth(): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 布局指令 * @name thyLayout * @order 5 */ declare class ThyLayoutDirective { readonly sidebarDirection: _angular_core.WritableSignal; readonly isSidebarRight: _angular_core.Signal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * 布局组件 * @name thy-layout * @order 6 */ declare class ThyLayout { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 头部布局指令 * @name thyHeader * @order 10 */ declare class ThyHeaderDirective { /** * 头部大小 * @type sm | md | lg | xlg */ readonly thySize: _angular_core.InputSignal<"sm" | "md" | "lg" | "xlg">; /** * 底部是否有阴影 * @default false */ readonly thyShadow: _angular_core.InputSignalWithTransform; /** * 底部是否有分割线 */ readonly thyDivided: _angular_core.InputSignalWithTransform; /** * 底部是否有分割线,已废弃,请使用 thyDivided * @deprecated please use thyDivided */ readonly thyHasBorder: _angular_core.InputSignalWithTransform; readonly divided: _angular_core.Signal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * 头部布局组件 * @name thy-header * @order 11 */ declare class ThyHeader { /** * 头部标题 */ readonly thyTitle: _angular_core.InputSignal; /** * 图标前缀,被弃用,图标使用 SVG 图标 */ readonly thyIconPrefix: _angular_core.InputSignal; /** * 图标,SVG 图标名称 */ readonly thyIcon: _angular_core.InputSignal; readonly svgIconName: _angular_core.Signal; readonly iconClass: _angular_core.Signal; /** * 头部自定义标题模板,`` * @type TemplateRef */ readonly titleTemplateRef: _angular_core.Signal | undefined>; /** * 头部自定义内容模板,`` * @type TemplateRef */ readonly contentTemplateRef: _angular_core.Signal | undefined>; /** * 头部自定义操作模板,`` * @type TemplateRef */ readonly operationTemplateRef: _angular_core.Signal | undefined>; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 内容布局指令 * @name thyContent * @order 15 */ declare class ThyContentDirective { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * 内容布局组件 * @name thy-content * @order 16 */ declare class ThyContent { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 侧边栏头部布局指令 * @name thySidebarHeader * @order 25 */ declare class ThySidebarHeaderDirective { /** * 是否有分割线 * @default false */ readonly thyDivided: _angular_core.InputSignalWithTransform; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * 侧边栏头部布局组件 * @name thy-sidebar-header * @order 26 */ declare class ThySidebarHeader { /** * 头部标题 */ readonly thyTitle: _angular_core.InputSignal; /** * 头部自定义操作模板,`` * @type TemplateRef */ readonly operationTemplateRef: _angular_core.Signal | undefined>; /** * 头部自定义标题模板,`` * @type TemplateRef */ readonly titleTemplateRef: _angular_core.Signal | undefined>; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 侧边栏内容布局指令 * @name thySidebarContent * @order 30 */ declare class ThySidebarContentDirective { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * 侧边栏内容布局组件 * @name thy-sidebar-content * @order 31 */ declare class ThySidebarContent { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 侧边栏底部布局指令 * @name thySidebarFooter * @order 35 */ declare class ThySidebarFooterDirective { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * 侧边栏底部布局组件 * @name thy-sidebar-footer * @order 36 */ declare class ThySidebarFooter { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 内容块区域布局指令 * @name thyContentSection * @order 40 */ declare class ThyContentSectionDirective { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * 内容块区域布局组件 * @name thy-content-section * @order 41 */ declare class ThyContentSection { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 内容主区域布局指令 * @name thyContentMain * @order 45 */ declare class ThyContentMainDirective { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } /** * 内容主区域布局组件 * @name thy-content-main * @order 46 */ declare class ThyContentMain { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class ThyLayoutModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThyContent, ThyContentDirective, ThyContentMain, ThyContentMainDirective, ThyContentSection, ThyContentSectionDirective, ThyHeader, ThyHeaderDirective, ThyLayout, ThyLayoutDirective, ThyLayoutModule, ThySidebar, ThySidebarContent, ThySidebarContentDirective, ThySidebarDirective, ThySidebarFooter, ThySidebarFooterDirective, ThySidebarHeader, ThySidebarHeaderDirective }; export type { ThySidebarDirection, ThySidebarTheme };