import { ExtractPropTypes, ComputedRef } from 'vue'; import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from '../../../shared.type'; import { calculateNodeStyling, calcTextareaHeight, getInput, handleInput, calcIconOffset, focus, watchFormSelect, setNativeInputValue, resizeTextarea, updateIconOffset, hiddenPassword, inputStyle } from './renderless'; export type { ISharedRenderlessParamHooks } from '../../../shared.type'; export declare const $constants: { INPUT_PC: string; INPUTGROUP_PC: string; INPUT_MOBILE: string; INPUTGROUP_MOBILE: string; Mode: string; inputMode(mode: any): string; inputGroupMode(mode: any): string; VALIDATE_ICON: { Validating: string; Success: string; Error: string; }; COMPONENT_NAME: { FormItem: string; }; MASKSYMBOL: string; }; export declare const inputProps: { _constants: { type: ObjectConstructor; default: () => { INPUT_PC: string; INPUTGROUP_PC: string; INPUT_MOBILE: string; INPUTGROUP_MOBILE: string; Mode: string; inputMode(mode: any): string; inputGroupMode(mode: any): string; VALIDATE_ICON: { Validating: string; Success: string; Error: string; }; COMPONENT_NAME: { FormItem: string; }; MASKSYMBOL: string; }; }; name: StringConstructor; size: StringConstructor; form: StringConstructor; label: StringConstructor; height: NumberConstructor; resize: StringConstructor; tabindex: { type: StringConstructor; default: string; }; disabled: BooleanConstructor; readonly: BooleanConstructor; hoverExpand: BooleanConstructor; mask: BooleanConstructor; suffixIcon: (StringConstructor | ObjectConstructor)[]; prefixIcon: (StringConstructor | ObjectConstructor)[]; modelValue: PropType; type: { type: StringConstructor; default: string; }; memorySpace: { type: NumberConstructor; default: number; }; vertical: { type: BooleanConstructor; default: boolean; }; selectMenu: { type: { (arrayLength: number): { id: string; label: string; }[]; (...items: { id: string; label: string; }[]): { id: string; label: string; }[]; new (arrayLength: number): { id: string; label: string; }[]; new (...items: { id: string; label: string; }[]): { id: string; label: string; }[]; isArray(arg: any): arg is any[]; readonly prototype: any[]; from(arrayLike: ArrayLike): T[]; from(arrayLike: ArrayLike, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[]; from(iterable: Iterable | ArrayLike): T_2[]; from(iterable: Iterable | ArrayLike, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[]; of(...items: T_4[]): T_4[]; readonly [Symbol.species]: ArrayConstructor; }; default: () => never[]; }; ellipsis: { type: BooleanConstructor; default: boolean; }; contentStyle: { type: ObjectConstructor; default: () => {}; }; isSelect: { type: BooleanConstructor; default: boolean; }; tips: StringConstructor; counter: { type: BooleanConstructor; default: boolean; }; autosize: { type: (BooleanConstructor | ObjectConstructor)[]; default: boolean; }; clearable: { type: BooleanConstructor; default: boolean; }; autocomplete: { type: StringConstructor; default: string; }; showPassword: { type: BooleanConstructor; default: boolean; }; showWordLimit: { type: BooleanConstructor; default: boolean; }; title: { type: StringConstructor; default: string; }; showTitle: { type: BooleanConstructor; default: boolean; }; validateEvent: { type: BooleanConstructor; default: boolean; }; textareaTitle: { type: StringConstructor; default: string; }; displayOnly: { type: BooleanConstructor; default: boolean; }; displayOnlyContent: { type: StringConstructor; default: string; }; customClass: { type: StringConstructor; default: string; }; frontClearIcon: { type: BooleanConstructor; default: boolean; }; showEmptyValue: { type: BooleanConstructor; default: boolean; }; textAlign: { type: StringConstructor; default: string; }; width: { type: PropType; }; }; export interface IInputState { mode: string; focused: boolean; hovering: boolean; isComposing: boolean; passwordVisible: boolean; boxVisibility: boolean; textareaCalcStyle: object; checkedLabel: string; width: string; sheetvalue: string | number | undefined; inputSize: ComputedRef; showClear: ComputedRef; upperLimit: ComputedRef; textLength: ComputedRef; inputExceed: ComputedRef; formItemSize: ComputedRef; validateIcon: ComputedRef; showWordLimit: ComputedRef; inputDisabled: ComputedRef; validateState: ComputedRef; textareaStyle: ComputedRef; needStatusIcon: ComputedRef; showPwdVisible: ComputedRef; nativeInputValue: ComputedRef; isWordLimitVisible: ComputedRef; isDisplayOnly: ComputedRef; displayOnlyTooltip: string; hiddenPassword: ComputedRef; } export type IInputRenderlessParamUtils = ISharedRenderlessParamUtils; export type IInputProps = ExtractPropTypes; export type IInputConstants = typeof $constants; export interface IInputApi extends Pick { state: IInputState; setNativeInputValue: ReturnType; resizeTextarea: ReturnType; updateIconOffset: ReturnType; hiddenPassword: ReturnType; watchFormSelect: ReturnType; getInput: ReturnType; calcTextareaHeight: ReturnType; calculateNodeStyling: ReturnType; handleInput: ReturnType; calcIconOffset: ReturnType; focus: ReturnType; inputStyle: ReturnType; } export type IInputRenderlessParams = ISharedRenderlessFunctionParams & { state: IInputState; props: IInputProps; api: IInputApi; }; export interface IInputClassPrefixConstants { Input: string; InputGroup: string; } export interface IInputEventNameConstants { change: string; blur: string; }