import * as _angular_core from '@angular/core'; import { OnInit, AfterViewInit, OnDestroy, OnChanges, ElementRef, SimpleChanges } from '@angular/core'; import * as i2 from '@angular/forms'; import { ControlValueAccessor } from '@angular/forms'; import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core'; import * as i1 from 'ngx-tethys/util'; import * as i1$1 from '@angular/common'; declare const SLIDER_PRESET_COLORS: string[]; type ThySliderColor = (typeof SLIDER_PRESET_COLORS)[number]; /** @deprecated use ThySliderColor, will be removed in v23 */ type ThySliderType = ThySliderColor; type ThySliderSize = 'sm' | 'md' | 'lg'; /** * 滑动输入条组件 * @name thy-slider * @order 10 */ declare class ThySlider extends TabIndexDisabledControlValueAccessorMixin implements OnInit, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor { private cdr; private ngZone; private ref; /** * 是否切换为纵轴模式 */ readonly thyVertical: _angular_core.InputSignalWithTransform; /** * 是否禁用 */ set thyDisabled(value: boolean); get thyDisabled(): boolean; disabled: boolean; readonly sliderRail: _angular_core.Signal>; readonly sliderTrack: _angular_core.Signal>; readonly sliderPointer: _angular_core.Signal>; private typeClassName; private sizeClassName; /** * 最大值 */ readonly thyMax: _angular_core.InputSignalWithTransform; /** * 最小值 */ readonly thyMin: _angular_core.InputSignalWithTransform; /** * 步长,需要被 thyMax - thyMin 的差值整除。 */ readonly thyStep: _angular_core.InputSignalWithTransform; /** * 滑动条颜色,支持主题色或任意合法 CSS 颜色值 * @type primary | success | info | warning | danger | string * @default success */ readonly thyColor: _angular_core.InputSignal; /** * 切换主题类型(已废弃,将在 v23 彻底删除),请使用 thyColor * @deprecated please use thyColor, will be removed in v23 * @type primary | success | info | warning | danger * @default success */ readonly thyType: _angular_core.InputSignal; readonly color: _angular_core.Signal; protected readonly trackStyle: _angular_core.Signal<{ 'background-color': string; } | null>; protected readonly pointerStyle: _angular_core.Signal<{ 'border-color': string; } | null>; /** * 滑动输入条大小 * @type sm | md | lg */ readonly thySize: _angular_core.InputSignal; /** * 移动结束后的回调,参数为当前值 */ readonly thyAfterChange: _angular_core.OutputEmitterRef<{ value: number; }>; value: number; private dragStartListener?; private dragMoveListener?; private dragEndListener; private dragStartHandler?; private dragMoveHandler?; private dragEndHandler?; private hostRenderer; private onChangeCallback; private onTouchedCallback; constructor(); ngOnInit(): void; ngAfterViewInit(): void; writeValue(newValue: number): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; private toggleDisabled; private setValue; private ensureValueInRange; private valueMustBeValid; private updateTrackAndPointer; private valueToOffset; private updateStyle; private unsubscribeMouseListeners; private subscribeMouseListeners; private mouseStartMoving; private mouseMoving; private mouseStopMoving; private pointerController; private registerMouseEventsListeners; private mousePositionToAdaptiveValue; private getSliderPagePosition; private getRailLength; private convertPointerPositionToRatio; private ratioToValue; private getDecimals; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput; } declare class ThySliderModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThySlider, ThySliderModule }; export type { ThySliderColor, ThySliderSize, ThySliderType };