import * as _angular_core from '@angular/core'; import { TemplateRef, OnInit, OnDestroy, ElementRef } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from '@angular/forms'; import { NgControl, ControlValueAccessor } from '@angular/forms'; import * as i3 from 'ngx-tethys/shared'; import * as i4 from 'ngx-tethys/icon'; import * as i5 from 'ngx-tethys/divider'; import { ThyFormControlSize, ThyFormControlAppearance, Constructor, ThyHasTabIndex, ThyInitialized, ThyCanDisable, AbstractControlValueAccessor } from 'ngx-tethys/core'; import { Subject } from 'rxjs'; /** * 输入框指令 * @name thyInput * @order 10 */ declare class ThyInputDirective { private elementRef; private render; private control; isFormControl: boolean; private hostRenderer; /** * 输入框大小 * @type 'xs' | 'sm' | 'md' | 'lg' * @default md */ 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; get ngControl(): NgControl; get nativeElement(): HTMLInputElement; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any; /** * 内部集成输入框组件,建议 thy-input-group 和 thyInput 组合使用 * @name thy-input * @order 50 */ declare class ThyInput implements ControlValueAccessor { private elementRef; /** * Placeholder */ readonly thyPlaceholder: _angular_core.InputSignal; /** * 输入框大小 * @type 'xs' | 'sm' | 'md' | 'lg' * @default md */ 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 thyAutofocus: _angular_core.InputSignalWithTransform; /** * 输入框类型,对应原生 input 的 type 属性。未设置、null 或 undefined 时不输出 type,浏览器默认为 text * @type 'text' | 'password' | 'number' */ readonly thyType: _angular_core.InputSignal; /** * 输入 Label 文本 */ readonly thyLabelText: _angular_core.InputSignal; /** * 是否只读 */ readonly readonly: _angular_core.InputSignalWithTransform; /** * focus 聚焦事件 */ readonly focus: _angular_core.OutputEmitterRef; /** * blur 失焦事件 */ readonly blur: _angular_core.OutputEmitterRef; /** * 后置模板 */ readonly appendTemplate: _angular_core.Signal | undefined>; /** * 前置模板 */ readonly prependTemplate: _angular_core.Signal | undefined>; readonly passwordVisible: _angular_core.WritableSignal; readonly isPasswordType: _angular_core.Signal; readonly type: _angular_core.Signal; value: _angular_core.WritableSignal; showLabel: _angular_core.WritableSignal; focused: _angular_core.WritableSignal; disabled: _angular_core.WritableSignal; private onTouchedCallback; private onChangeCallback; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; onModelChange(): void; onInputFocus(event: Event): void; onInputBlur(event: Event): void; togglePasswordType(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } type ThyInputGroupSize = Exclude; /** * 输入框分组 * @name thy-input-group * @order 20 */ declare class ThyInputGroup implements OnInit, OnDestroy { private thyTranslate; private ngZone; private hostRenderer; private hostFocusControl; private readonly destroyRef; isTextareaSuffix: _angular_core.WritableSignal; hasScrollbar: _angular_core.WritableSignal; disabled: _angular_core.WritableSignal; /** * 输入框上添加的后置文本 */ readonly thyAppendText: _angular_core.InputSignal; /** * 输入框上添加的后置文本多语言 Key */ readonly thyAppendTextTranslateKey: _angular_core.InputSignal; /** * 输入框上添加的前置文本 */ readonly thyPrependText: _angular_core.InputSignal; /** * 输入框上添加的前置文本多语言 Key */ readonly thyPrependTextTranslateKey: _angular_core.InputSignal; protected readonly prependText: _angular_core.Signal; protected readonly appendText: _angular_core.Signal; /** * 输入框分组大小 * @type 'sm' | 'lg' | 'md' * @default md */ readonly thySize: _angular_core.InputSignalWithTransform; /** * 后置模板 */ readonly appendTemplate: _angular_core.Signal | undefined>; /** * 前置模板 */ readonly prependTemplate: _angular_core.Signal | undefined>; /** * 前缀 */ readonly prefixTemplate: _angular_core.Signal | undefined>; /** * 后缀 */ readonly suffixTemplate: _angular_core.Signal | undefined>; /** * @private */ readonly inputDirective: _angular_core.Signal; private disabledObservable; constructor(); ngOnInit(): void; private determineHasScrollbar; private resizeObserver; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } type ThyInputSearchShape = 'rectangle' | 'ellipse'; /** * @deprecated please use `thyShape="ellipse"` with `thyAppearance="fill"`, or `thyAppearance="ghost"` for transparent; will be removed in v23 */ type ThyInputSearchTheme = 'default' | 'ellipse' | 'transparent' | ''; type ThyInputSearchIconPosition = 'before' | 'after'; declare const CUSTOM_INPUT_SEARCH_CONTROL_VALUE_ACCESSOR: any; declare const _MixinBase: Constructor & Constructor & Constructor & typeof AbstractControlValueAccessor; /** * 搜索输入框 * @name thy-input-search * @order 30 */ declare class ThyInputSearch extends _MixinBase implements ControlValueAccessor, OnInit, OnDestroy { private elementRef; readonly inputElement: _angular_core.Signal>; private hostRenderer; private hostFocusControl; disabled: _angular_core.WritableSignal; searchText: _angular_core.WritableSignal; focused: _angular_core.WritableSignal; /** * 搜索框 name 属性 */ readonly name: _angular_core.InputSignal; /** * 搜索框 Placeholder */ readonly thyPlaceholder: _angular_core.InputSignal; /** * 搜索框外观。`outline`: 灰色边框、白色底,hover/focus 时蓝色边框;`fill`: 灰色底、灰色边框,hover/focus 时白色底、蓝色边框,禁用同 outline;`subtle`: 无边框,hover/focus 时蓝色边框;`ghost`: 无边框,hover/focus 时也无边框 * @type outline | fill | subtle | ghost * @default outline */ readonly thyAppearance: _angular_core.InputSignal; /** * 搜索框形状。`ellipse` 为圆角搜索框 * @type rectangle | ellipse * @default rectangle */ readonly thyShape: _angular_core.InputSignal; /** * 搜索框风格(已废弃,将在 v23 彻底删除)。`ellipse` 请使用 `thyShape="ellipse" thyAppearance="fill"`;`transparent` 请使用 `thyAppearance="ghost"` * @deprecated please use thyShape="ellipse" with thyAppearance="fill", or thyAppearance="ghost" for transparent; will be removed in v23 * @type 'default' | 'ellipse' | 'transparent' */ readonly thyTheme: _angular_core.InputSignal; protected readonly appearance: _angular_core.Signal; protected readonly shape: _angular_core.Signal; /** * 是否自动聚焦 * @default false */ readonly autoFocus: _angular_core.InputSignalWithTransform; /** * 搜索图标位置,当传入 after 时,搜索图标在输入框后方显示,有内容时显示为关闭按钮 * @type ThyInputSearchIconPosition */ readonly iconPosition: _angular_core.InputSignalWithTransform; /** * 输入框大小 * @type 'xs' | 'sm' | 'md' | 'lg' * @default md */ readonly thySize: _angular_core.InputSignalWithTransform; /** * 清除搜索事件 */ readonly thyClear: _angular_core.OutputEmitterRef; constructor(); ngOnInit(): void; writeValue(value: any): void; setDisabledState?(isDisabled: boolean): void; searchModelChange(): void; clearSearchText(event: Event): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 输入框输入文字展示 * @name thy-input-count * @order 40 */ declare class ThyInputCount implements OnInit { private inputGroup; private readonly destroyRef; private hasInput; /** * 输入框组件,如果不传默认会读取外层 thy-input-group 下的 thyInput 指令 * @type ThyInputDirective */ readonly thyInput: _angular_core.InputSignal; maxLength: _angular_core.WritableSignal; inputLength: _angular_core.WritableSignal; thyInput$: Subject; constructor(); setup(): void; ngOnInit(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class ThyInputModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR, CUSTOM_INPUT_SEARCH_CONTROL_VALUE_ACCESSOR, ThyInput, ThyInputCount, ThyInputDirective, ThyInputGroup, ThyInputModule, ThyInputSearch }; export type { ThyInputGroupSize, ThyInputSearchIconPosition, ThyInputSearchShape, ThyInputSearchTheme };