import * as _angular_core from '@angular/core'; import { OnInit, AfterViewInit, OnDestroy, Signal } from '@angular/core'; import { ThySpacingSize } from 'ngx-tethys/core'; import * as i1 from '@angular/common'; import * as i2 from 'ngx-tethys/icon'; type ThyActionType = 'primary' | 'success' | 'danger' | 'warning'; type ThyActionFeedback = 'success' | 'error'; interface ThyActionFeedbackOptions { icon?: string; class?: string; duration?: number; } /** * 立即操作组件 * @name thy-action,[thyAction] */ declare class ThyAction implements OnInit, AfterViewInit, OnDestroy { private elementRef; private renderer; private cdr; readonly icon: Signal; feedback: ThyActionFeedback | null; feedbackOptions: ThyActionFeedbackOptions | null; readonly active: Signal; private hostRenderer; private feedbackTimer; /** * 操作图标的类型 * @type primary | success | danger | warning */ readonly thyType: _angular_core.InputSignalWithTransform; /** * 操作图标,支持传参同时也支持在投影中写 thy-icon 组件 */ readonly thyIcon: _angular_core.InputSignal; /** * 操作图标,当 thyIcon 和其他指令参数名有冲突时使用 thyActionIcon */ readonly thyActionIcon: _angular_core.InputSignal; /** * 操作的图标 Active 状态,设置为 true 时会在 Item 上添加 active class */ readonly thyActive: _angular_core.InputSignalWithTransform; /** * 操作的图标 Active 状态,当 thyActive 和其他指令参数名有冲突时使用 thyActionActive */ readonly thyActionActive: _angular_core.InputSignalWithTransform; /** * 操作图标的主题 * @type fill(背景色填充) | lite(简单文本颜色变化) */ readonly thyTheme: _angular_core.InputSignal<"fill" | "lite">; /** * Hover 展示的图标 */ readonly thyHoverIcon: _angular_core.InputSignal; /** * 是否处于禁用状态 */ readonly thyDisabled: _angular_core.InputSignalWithTransform; ngOnInit(): void; ngAfterViewInit(): void; constructor(); setMarginRight(marginRight: string): void; /** * 触发成功反馈操作 */ success(options?: ThyActionFeedbackOptions): void; /** * 触发失败反馈操作 */ error(options?: ThyActionFeedbackOptions): void; private setFeedback; private wrapSpanForText; private updateClasses; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * Actions 组件 * @name thy-actions */ declare class ThyActions implements OnInit { readonly actions: _angular_core.Signal; /** * 大小,支持 `zero` | `xxs` | `xs` | `sm` | `md` | `lg` | `xlg` 和自定义数字大小 * @type string | number */ readonly thySize: _angular_core.InputSignal; constructor(); ngOnInit(): void; private setActionsSize; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class ThyActionModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThyAction, ThyActionModule, ThyActions }; export type { ThyActionFeedback, ThyActionFeedbackOptions, ThyActionType };