import { CSSResultGroup } from 'lit'; import { default as PairboElement, PairboFormControl } from '../../internal/pairbo-element.js'; /** * @summary Short summary of the component's intended use. * @status experimental * * @dependency pbo-example * * @event pbo-event-name - Emitted as an example. * * @slot - The default slot. * @slot example - An example slot. * * @csspart base - The component's base wrapper. * * @cssproperty --example - An example CSS custom property. */ export default class PboTextarea extends PairboElement implements PairboFormControl { static styles: CSSResultGroup; private readonly formControlController; private readonly hasSlotController; defaultValue?: unknown; defaultChecked?: boolean | undefined; pattern?: string | undefined; min?: string | number | Date | undefined; max?: string | number | Date | undefined; step?: number | "any" | undefined; input: HTMLTextAreaElement; sizeAdjuster: HTMLTextAreaElement; hasFocus: boolean; name: string; value: string; size: "small" | "medium" | "large"; filled: boolean; title: string; placeholder: string; rows: number; resize: "none" | "vertical" | "auto"; disabled: boolean; readonly: boolean; form: string; required: boolean; minlength: number; maxlength: number; helpText: string; hasError: boolean; get validity(): ValidityState; get validationMessage(): string; firstUpdated(): void; private handleChange; private handleBlur; private handleFocus; private handleInput; private handleInvalid; /** Sets focus on the textarea. */ focus(options?: FocusOptions): void; /** Removes focus from the textarea. */ blur(): void; /** Selects all the text in the textarea. */ select(): void; /** Gets or sets the textarea's scroll position. */ scrollPosition(position?: { top?: number; left?: number; }): { top: number; left: number; } | undefined; /** Sets the start and end positions of the text selection (0-based). */ setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: "forward" | "backward" | "none"): void; /** Replaces a range of text with a new string. */ setRangeText(replacement: string, start?: number, end?: number, selectMode?: "select" | "start" | "end" | "preserve"): void; /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */ checkValidity(): boolean; /** Gets the associated form, if one exists. */ getForm(): HTMLFormElement | null; /** Checks for validity and shows the browser's validation message if the control is invalid. */ reportValidity(): boolean; /** Sets a custom validation message. Pass an empty string to restore validity. */ setCustomValidity(message: string): void; render(): import('lit-html').TemplateResult<1>; }