import * as _angular_core from '@angular/core'; import { OnInit, AfterViewInit, OnDestroy, Signal, WritableSignal } from '@angular/core'; import { ThySpacingSize } from 'ngx-tethys/core'; import * as i1 from '@angular/common'; import * as i2 from 'ngx-tethys/icon'; type ThyActionColor = 'primary' | 'success' | 'danger' | 'warning'; /** @deprecated use ThyActionColor, will be removed in v23 */ type ThyActionType = ThyActionColor; type ThyActionAppearance = 'fill' | 'lite'; 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 destroyRef; readonly icon: Signal; feedback: WritableSignal; feedbackOptions: WritableSignal; readonly active: Signal; private hostRenderer; private feedbackTimer; /** * 操作图标的颜色 * @type primary | success | danger | warning */ readonly thyColor: _angular_core.InputSignal; /** * 操作图标的类型(已废弃,将在 v23 彻底删除),请使用 thyColor * @deprecated please use thyColor, will be removed in v23 * @type primary | success | danger | warning */ readonly thyType: _angular_core.InputSignalWithTransform; readonly color: Signal; /** * 操作图标,支持传参同时也支持在投影中写 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; /** * 操作图标的外观,fill(背景色填充) | lite(简单文本颜色变化) * @type fill | lite * @default fill */ readonly thyAppearance: _angular_core.InputSignal; /** * 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 { ThyActionAppearance, ThyActionColor, ThyActionFeedback, ThyActionFeedbackOptions, ThyActionType };