import * as i0 from '@angular/core'; import { OnInit, AfterContentInit, OnDestroy, EventEmitter, TemplateRef, ElementRef } from '@angular/core'; import * as i1$1 from '@angular/common'; import * as i2 from 'ngx-tethys/button'; import * as i3 from 'ngx-tethys/icon'; import * as i4 from 'ngx-tethys/flexible-text'; import * as i1 from 'ngx-tethys/util'; type ThyPropertyOperationTypes = 'primary' | 'success' | 'warning' | 'danger'; /** * 属性操作组件 * @name thy-property-operation * @deprecated will be removed in v23 * @order 10 */ declare class ThyPropertyOperation implements OnInit, AfterContentInit, OnDestroy { private thyTranslate; private elementRef; private ngZone; private initialized; private hostRenderer; labelText: string; onlyHasTips: boolean; showClose: boolean; type: ThyPropertyOperationTypes; icon: string; value: string; labelHideWhenHasValue: boolean; /** * 点击移除图标时的事件回调,此函数只有在thyShowClose为true时才会发生 */ readonly thyOnRemove: EventEmitter; /** * 点击事件回调 */ readonly thyClick: EventEmitter; _isPropertyOperation: boolean; readonly operationIcon: i0.Signal | undefined>; contentElement: ElementRef; /** * 属性的 Label 文本 */ set thyLabelText(value: string); /** * 属性的值 */ set thyValue(value: string); /** * 属性的 Label Translate Key */ set thyLabelTextTranslateKey(value: string); /** * 图标 */ set thyIcon(value: string); /** * 当有属性值时是否展示移除图标 * @default false */ set thyShowClose(value: boolean); set thyLabelHasValue(value: boolean); /** * 有值时隐藏 label * @default false */ set thyLabelHideWhenHasValue(value: boolean); /** * 属性类型 * @type danger | primary | success | warning | null * @default null */ set thyType(value: ThyPropertyOperationTypes); /** * 激活状态 * @default false */ active: boolean; /** * 禁用操作,添加后property operation中thyClick和thyOnRemove事件将会被禁用 * @default false */ disabled: boolean; private destroy$; constructor(); private setHostClass; private setOnlyHasTips; ngOnInit(): void; ngAfterContentInit(): void; ngOnDestroy(): void; remove($event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_thyShowClose: i1.ThyBooleanInput; static ngAcceptInputType_thyLabelHasValue: i1.ThyBooleanInput; static ngAcceptInputType_thyLabelHideWhenHasValue: i1.ThyBooleanInput; static ngAcceptInputType_active: i1.ThyBooleanInput; static ngAcceptInputType_disabled: i1.ThyBooleanInput; } /** * @name thy-property-operation-group * @deprecated will be removed in v23 */ declare class ThyPropertyOperationGroup { _isPropertyOperationGroup: boolean; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @deprecated ThyPropertyOperationModule will be removed in v23 */ declare class ThyPropertyOperationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ThyPropertyOperation, ThyPropertyOperationGroup, ThyPropertyOperationModule };