import { PropertyValues } from 'lit'; import { FieldAppearance, FieldSize, AutoCapitalize, EnterKeyHint, InputModeOption } from '../input/UInput.js'; import { UFormControlElement } from '../UFormControlElement.js'; type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both' | 'auto'; /** * 여러 줄의 텍스트 입력을 지원하는 텍스트에어리어 컴포넌트입니다. * * @csspart field - u-field 요소 * @csspart container - 텍스트에어리어를 감싸는 요소 * @csspart textarea - 실제 텍스트에어리어 요소 * @csspart counter - 글자 수 표시 영역 * * @cssprop --u-textarea-display - 호스트의 display (기본값: inline-block). 폼/그리드 셀에서 * 컨테이너 폭을 채우려면 `block`으로 지정한다. * @cssprop --u-textarea-width - 호스트의 width (기본값: auto). flex 컨테이너처럼 block만으로는 * 늘어나지 않는 맥락에서 `100%`로 지정한다. * * @event input - 입력값이 변경될 때 발생 * @event change - 값이 확정됐을 때 발생 */ export declare class UTextarea extends UFormControlElement { /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */ static enumerated: { appearance: readonly FieldAppearance[]; size: readonly FieldSize[]; resize: readonly TextareaResize[]; descriptionDisplay: readonly import('../field/UField.js').FieldDescriptionDisplay[]; }; static styles: import('lit').CSSResultGroup[]; protected static fieldBox: boolean; /** 스타일 변형 */ /** 외형 정도 */ appearance: FieldAppearance; /** * 크기 — 버튼의 `size` 와 같은 세 단(`md` 기본 = `--u-density`(14px) · `sm` = 그 6/7(12px) · `lg` = 8/7(16px) — 밀도 단을 바꾸면 셋이 함께 움직인다). * 상자 높이는 글자 크기에서 파생된다(1.5em 줄 + 필드 상자 여백 × 2 + 테두리) — 같은 `size` 의 버튼과 * 한 줄에 서도록. 테마는 필드 상자 토큰(`--u-field-padding-block`)으로 단마다 높이를 다듬는다. */ size: FieldSize; /** 리사이즈 모드 */ resize: TextareaResize; /** 최소 행 수 */ minRows?: number; /** 최대 행 수 */ maxRows?: number; /** 글자수 표시 여부 */ counter: boolean; /** 최소 길이 */ minlength?: number; /** 최대 길이 */ maxlength?: number; /** 입력 방향 정보 */ dirname?: string; /** 모바일 가상 키보드 유형 */ inputmode?: InputModeOption; /** 모바일 엔터 키 레이블 */ enterkeyhint?: EnterKeyHint; /** 맞춤법 검사 여부 */ spellcheck: boolean; /** 자동 포커스 여부 */ autofocus: boolean; /** 자동 교정 기능 설정 (iOS) */ autocorrect: boolean; /** 대문자 자동 변환 */ autocapitalize: AutoCapitalize; /** 자동 완성 기능 설정 */ autocomplete?: AutoFill; /** placeholder 텍스트 */ placeholder?: string; textareaEl?: HTMLTextAreaElement; protected updated(changedProperties: PropertyValues): Promise; render(): import('lit-html').TemplateResult<1>; protected setValidity(): void; reset(): void; focus(options?: FocusOptions): void; blur(): void; private resizeTextarea; private handleTextareaInput; private handleTextareaChange; } declare global { interface HTMLElementTagNameMap { 'u-textarea': UTextarea; } } export {};