import * as i0 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: i0.InputSignal; /** * 主题 * @type white | light | dark * @default white */ readonly thyTheme: i0.InputSignal; /** * 宽度,默认是 240px,传入 `lg` 大小时宽度是300px * @default 240px */ readonly thyWidth: i0.InputSignalWithTransform; readonly sidebarWidth: i0.WritableSignal; /** * 是否和右侧 /左侧隔离,当为 true 时距右侧 /左侧会有 margin,同时边框会去掉 * @default false */ readonly thyIsolated: i0.InputSignalWithTransform; /** * sidebar 是否有分割线。当`thyDirection`值为`left`时,控制右侧是否有分割线;当`thyDirection`值为`right`时,控制左侧是否有分割线。 * @default true */ readonly thyDivided: i0.InputSignalWithTransform; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵ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: i0.WritableSignal; protected readonly sidebarWidth: Signal; mouseenter($event: MouseEvent): void; mouseleave($event: MouseEvent): void; /** * 宽度是否可以拖拽 * @default false */ readonly thyDraggable: i0.InputSignalWithTransform; /** * 拖拽的最大宽度 */ readonly thyDragMaxWidth: i0.InputSignalWithTransform; /** * 拖拽的最小宽度 */ readonly thyDragMinWidth: i0.InputSignalWithTransform; /** * 展示收起的触发器自定义模板,默认显示展开收起的圆形图标,设置为 null 表示不展示触发元素,手动控制展开收起状态 * @type null | undefined | TemplateRef * @default undefined */ readonly thyTrigger: i0.InputSignal | null | undefined>; /** * 收起状态改变后的事件 */ readonly thyCollapsedChange: i0.OutputEmitterRef; /** * 拖拽宽度的修改事件 */ readonly thyDragWidthChange: i0.OutputEmitterRef; /** * 开启收起/展开功能 * @default false */ readonly thyCollapsible: i0.InputSignalWithTransform; /** * 是否是收起 * @default false */ readonly thyCollapsed: i0.InputSignalWithTransform; readonly collapsed: i0.WritableSignal; readonly collapseVisible: Signal; /** * 收起后的宽度 */ readonly thyCollapsedWidth: i0.InputSignalWithTransform; /** * 默认宽度,双击后可恢复到此宽度,默认是 240px,传入 lg 大小时宽度是300px */ readonly thyDefaultWidth: i0.InputSignalWithTransform; readonly collapseTip: Signal; private originWidth; readonly collapseHidden: i0.WritableSignal; readonly isRemoveTransition: i0.WritableSignal; readonly isResizable: i0.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: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 布局指令 * @name thyLayout * @order 5 */ declare class ThyLayoutDirective { readonly sidebarDirection: i0.WritableSignal; readonly isSidebarRight: i0.Signal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * 布局组件 * @name thy-layout * @order 6 */ declare class ThyLayout { private sidebar; private layoutDirective; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 头部布局指令 * @name thyHeader * @order 10 */ declare class ThyHeaderDirective { /** * 头部大小 * @type sm | md | lg | xlg */ readonly thySize: i0.InputSignal<"sm" | "md" | "lg" | "xlg">; /** * 底部是否有阴影 * @default false */ readonly thyShadow: i0.InputSignalWithTransform; /** * 底部是否有分割线 */ readonly thyDivided: i0.InputSignalWithTransform; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * 头部布局组件 * @name thy-header * @order 11 */ declare class ThyHeader { /** * 头部标题 */ readonly thyTitle: i0.InputSignal; /** * 图标,SVG 图标名称 */ readonly thyIcon: i0.InputSignal; /** * 头部自定义标题模板,`` * @type TemplateRef */ readonly titleTemplateRef: i0.Signal | undefined>; /** * 头部自定义内容模板,`` * @type TemplateRef */ readonly contentTemplateRef: i0.Signal | undefined>; /** * 头部自定义操作模板,`` * @type TemplateRef */ readonly operationTemplateRef: i0.Signal | undefined>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 内容布局指令 * @name thyContent * @order 15 */ declare class ThyContentDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * 内容布局组件 * @name thy-content * @order 16 */ declare class ThyContent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 侧边栏头部布局指令 * @name thySidebarHeader * @order 25 */ declare class ThySidebarHeaderDirective { /** * 是否有分割线 * @default false */ readonly thyDivided: i0.InputSignalWithTransform; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * 侧边栏头部布局组件 * @name thy-sidebar-header * @order 26 */ declare class ThySidebarHeader { /** * 头部标题 */ readonly thyTitle: i0.InputSignal; /** * 头部自定义操作模板,`` * @type TemplateRef */ readonly operationTemplateRef: i0.Signal | undefined>; /** * 头部自定义标题模板,`` * @type TemplateRef */ readonly titleTemplateRef: i0.Signal | undefined>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 侧边栏内容布局指令 * @name thySidebarContent * @order 30 */ declare class ThySidebarContentDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * 侧边栏内容布局组件 * @name thy-sidebar-content * @order 31 */ declare class ThySidebarContent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 侧边栏底部布局指令 * @name thySidebarFooter * @order 35 */ declare class ThySidebarFooterDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * 侧边栏底部布局组件 * @name thy-sidebar-footer * @order 36 */ declare class ThySidebarFooter { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 内容块区域布局指令 * @name thyContentSection * @order 40 */ declare class ThyContentSectionDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * 内容块区域布局组件 * @name thy-content-section * @order 41 */ declare class ThyContentSection { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 内容主区域布局指令 * @name thyContentMain * @order 45 */ declare class ThyContentMainDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * 内容主区域布局组件 * @name thy-content-main * @order 46 */ declare class ThyContentMain { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ThyLayoutModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵ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 };