import * as _angular_core from '@angular/core'; import { OnInit, OnDestroy, ElementRef } from '@angular/core'; import * as i1$1 from '@angular/common'; import * as i2 from '@angular/forms'; import { ControlValueAccessor } from '@angular/forms'; import * as i3 from 'ngx-tethys/shared'; import * as i4 from 'ngx-tethys/icon'; import * as i5 from 'ngx-tethys/input'; import { TabIndexDisabledControlValueAccessorMixin, ThyFormControlSize, ThyFormControlAppearance } from 'ngx-tethys/core'; import * as i1 from 'ngx-tethys/util'; declare enum Type { up = 0, down = 1 } /** * 数字输入框 * @name thy-input-number * @order 10 */ declare class ThyInputNumber extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor, OnInit, OnDestroy { readonly inputElement: _angular_core.Signal>; private autoStepTimer; private hostFocusControl; validValue: number | string; displayValue: _angular_core.WritableSignal; disabledUp: _angular_core.WritableSignal; disabledDown: _angular_core.WritableSignal; activeValue: string; /** * 是否自动聚焦 * @default false */ readonly thyAutoFocus: _angular_core.InputSignalWithTransform; /** * 输入框的placeholder */ readonly thyPlaceholder: _angular_core.InputSignal; /** * 是否禁用 * @default false */ thyDisabled: boolean; /** * 最大值 * @default Infinity */ readonly thyMax: _angular_core.InputSignalWithTransform; /** * 最小值 * @default -Infinity */ readonly thyMin: _angular_core.InputSignalWithTransform; /** * 每次改变步数,可以为小数 */ readonly thyStep: _angular_core.InputSignalWithTransform; /** * 是否展示步数切换按钮 */ readonly thyShowStepControls: _angular_core.InputSignalWithTransform; /** * 改变步数时的延迟毫秒数,值越小变化的速度越快 * @default 300 */ readonly thyStepDelay: _angular_core.InputSignalWithTransform; /** * 输入框大小 * @type xs | sm | md | lg */ readonly thySize: _angular_core.InputSignalWithTransform; /** * 输入框外观。`outline`: 灰色边框、白色底,hover/focus 时蓝色边框;`fill`: 灰色底、灰色边框(同 ellipse),hover/focus 时白色底、蓝色边框,禁用同 outline;`subtle`: 无边框,hover/focus 时蓝色边框;`ghost`: 无边框,hover/focus 时也无边框 * @type outline | fill | subtle | ghost * @default outline */ readonly thyAppearance: _angular_core.InputSignalWithTransform; /** * 数值精度 */ readonly thyPrecision: _angular_core.InputSignal; /** * 数值后缀 */ readonly thySuffix: _angular_core.InputSignal; /** * 焦点失去事件 */ readonly thyBlur: _angular_core.OutputEmitterRef; /** * 焦点激活事件 */ readonly thyFocus: _angular_core.OutputEmitterRef; /** * 上下箭头点击事件 */ readonly thyStepChange: _angular_core.OutputEmitterRef<{ value: number; type: Type; }>; private isFocused; constructor(); setDisabledState?(isDisabled: boolean): void; ngOnInit(): void; writeValue(value: number | string): void; updateValidValue(value: number | string): void; onModelChange(value: string): void; onInputFocus(event?: Event): void; onKeyDown(e: KeyboardEvent): void; stop(): void; step(type: Type, e: MouseEvent | KeyboardEvent): void; upStep(value: number): number; downStep(value: number): number; getMaxPrecision(value: string | number): number; getPrecisionFactor(activeValue: string | number): number; getPrecision(value: number): number; up(e: MouseEvent | KeyboardEvent): void; down(e: MouseEvent | KeyboardEvent): void; formatterValue(value: number | string): string; parser(value: string): string; getCurrentValidValue(value: string | number): number | string; isNotValid(num: string | number): boolean; toNumber(num: string | number): number; isInputNumber(value: string): boolean; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput; } declare class ThyInputNumberModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThyInputNumber, ThyInputNumberModule };