import * as _angular_core from '@angular/core'; import { TemplateRef, InjectionToken, Signal } from '@angular/core'; import { SafeAny } from 'ngx-tethys/types'; import * as i1 from '@angular/common'; import * as i2 from 'ngx-tethys/tooltip'; type ThyProgressColor = 'primary' | 'success' | 'info' | 'warning' | 'danger'; /** @deprecated use ThyProgressColor, will be removed in v23 */ type ThyProgressType = ThyProgressColor; type ThyProgressShape = 'strip' | 'circle'; /** @deprecated use ThyProgressShape, will be removed in v23 */ type ThyProgressShapeType = ThyProgressShape; interface ThyProgressStackedValue { value: number; color?: ThyProgressColor | string; /** @deprecated use color, will be removed in v23 */ type?: ThyProgressColor; label?: string; tips?: string | TemplateRef; } interface ThyProgressPathStyle { [property: string]: SafeAny; } interface ThyProgressCirclePath { stroke: string | null; strokePathStyle: ThyProgressPathStyle; } type ThyProgressGapPosition = 'top' | 'bottom' | 'left' | 'right'; /** @deprecated use ThyProgressGapPosition, will be removed in v23 */ type ThyProgressGapPositionType = ThyProgressGapPosition; /** * @private */ declare class ThyProgressCircle { private hostRenderer; /** * 进度条颜色 * @type primary | success | info | warning | danger */ readonly thyColor: _angular_core.InputSignal; readonly thySize: _angular_core.InputSignal; readonly thyValue: _angular_core.InputSignal; readonly thyMax: _angular_core.InputSignalWithTransform; readonly thyTips: _angular_core.InputSignal | undefined>; readonly thyShape: _angular_core.InputSignal; readonly thyGapDegree: _angular_core.InputSignalWithTransform; readonly thyGapPosition: _angular_core.InputSignal; readonly thyStrokeWidth: _angular_core.InputSignalWithTransform; readonly strokeWidth: _angular_core.Signal; readonly progressSize: _angular_core.Signal; readonly width: _angular_core.Signal; readonly circle: _angular_core.Signal<{ pathString: string; trailPathStyle: { strokeDasharray: string; strokeDashoffset: string; transition: string; }; progressCirclePath: { stroke: string; value: number; className: string | null; strokePathStyle: { stroke: string | null; transition: string; strokeDasharray: string; strokeDashoffset: string; }; }[]; }>; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } interface ThyParentProgress { readonly max: Signal; readonly bars: Signal; } declare const THY_PROGRESS_COMPONENT: InjectionToken; declare function isProgressPresetColor(color?: string): color is "primary" | "success" | "info" | "warning" | "danger"; /** * @private */ declare class ThyProgressStrip { private progress; private hostRenderer; readonly thyTips: _angular_core.InputSignal | undefined>; readonly thyValue: _angular_core.InputSignalWithTransform; readonly thyColor: _angular_core.InputSignal; protected readonly percent: Signal; protected readonly barInnerStyle: Signal<{ 'background-color': string; } | null>; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 进度条组件 * @name thy-progress */ declare class ThyProgress implements ThyParentProgress { private hostRenderer; readonly barsTotalValue: _angular_core.Signal; readonly max: _angular_core.Signal; readonly isStacked: _angular_core.Signal; readonly bars: _angular_core.Signal; /** * 进度条颜色 * @type primary | success | info | warning | danger * @default primary */ readonly thyColor: _angular_core.InputSignal; /** * 进度条类型(已废弃,将在 v23 彻底删除),请使用 thyColor * @deprecated please use thyColor, will be removed in v23 * @type primary | success | info | warning | danger * @default primary */ readonly thyType: _angular_core.InputSignal; readonly color: _angular_core.Signal; /** * 进度条大小 * @type xs | sm | md * @default md */ readonly thySize: _angular_core.InputSignal; /** * 进度值,传入数字时显示百分比 = value / max * 100,当传入数组时显示多个 bar,stacked 模式的进度条 * @type number | ThyProgressStackedValue[] */ readonly thyValue: _angular_core.InputSignalWithTransform; /** * 最大值,主要计算百分比进度的分母使用,当 thyValue 传入数组时,自动累加数组中的 value 之和为 max */ readonly thyMax: _angular_core.InputSignalWithTransform; /** * 鼠标移入进度条时显示的提示文案或者模板 */ readonly thyTips: _angular_core.InputSignal | undefined>; /** * 进度形状 * @type strip | circle */ readonly thyShape: _angular_core.InputSignal; /** * 圆形进度条缺口角度,可取值 0 ~ 360 */ readonly thyGapDegree: _angular_core.InputSignalWithTransform; /** * 圆形进度条缺口位置 * @type top | bottom | left | right */ readonly thyGapPosition: _angular_core.InputSignal; /** * 圆形进度条线的宽度 */ readonly thyStrokeWidth: _angular_core.InputSignalWithTransform; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class ThyProgressModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { THY_PROGRESS_COMPONENT, ThyProgress, ThyProgressCircle, ThyProgressModule, ThyProgressStrip, isProgressPresetColor }; export type { ThyParentProgress, ThyProgressCirclePath, ThyProgressColor, ThyProgressGapPosition, ThyProgressGapPositionType, ThyProgressPathStyle, ThyProgressShape, ThyProgressShapeType, ThyProgressStackedValue, ThyProgressType };