import type { SuperCompatibleRegleFieldStatus } from '@regle/core'; import type { TextareaProps } from 'primevue/textarea'; import type { CompatCustomValidator, VuelidateFieldLike } from '../../mixins/validationMixin/vuelidate/useVuelidateValidation'; /** * @emits {string} input - Fires when textarea value changes. Emits value * @emits {void} enter - Fires at enter key press if autoresize is on * @emits {Event} paste - Fires on paste event * @emits {void} blur - Fires on blur event * @emits {KeyboardEvent} keydown - Fires on keydown event * @emits {Event} * - Plus all native textarea events */ interface Props extends /* @vue-ignore */ TextareaProps { /** * Textarea label * @type {string} * @default '' */ label?: string; /** * Textarea placeholder * @type {string} * @default label value */ placeholder?: string; /** * Native textarea readonly attribute * @type {boolean} * @default false */ readonly?: boolean; /** * Native textarea disabled attribute * @type {boolean} * @default false */ disabled?: boolean; /** * Marks textarea as required * @type {boolean} * @default false */ required?: boolean; /** * Input id name for label association * @type {string} * @default '' */ name?: string; /** * Number of rows in textarea * @type {number} * @default 1 */ rows?: number; /** * Object with props, passed down to wt-label as props * @type {Object} */ labelProps?: Record; /** * Enables auto-resize. If passed, "Enter" key press emits "enter" event, new line is shift+enter * @type {boolean} * @default false */ autoresize?: boolean; /** * @author PolinaSukhorukova-webitel * * [WTEL-10388](https://webitel.atlassian.net/browse/WTEL-10388) * Decouples submit-on-Enter from `autoresize` so a consumer can keep * auto-height while Enter inserts a newline (e.g. mobile chat). * @type {boolean} * @default true */ submitOnEnter?: boolean; /** * Validation rules */ v?: VuelidateFieldLike; regleValidation?: SuperCompatibleRegleFieldStatus; /** * Custom validators array * @type {Array<{name: string, text: string}>} * @default [] */ customValidators?: CompatCustomValidator[]; } type __VLS_Props = Props; type __VLS_ModelProps = { /** * [V-MODEL] Textarea value * @model modelValue */ modelValue?: string; }; type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps; declare var __VLS_7: { label: string; }; type __VLS_Slots = {} & { label?: (props: typeof __VLS_7) => any; }; declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { "update:modelValue": (value: string | undefined) => any; }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined; }>, { label: string; name: string; disabled: boolean; required: boolean; placeholder: string; readonly: boolean; customValidators: CompatCustomValidator[]; v: VuelidateFieldLike; labelProps: Record; rows: number; autoresize: boolean; submitOnEnter: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; };