import { EventEmitter } from "../../stencil-public-runtime"; import { StzhInputBlurEvent, StzhInputChangedEvent, StzhInputChangeEvent, StzhInputFocusEvent } from "../../index"; import { StzhInputLocalizedText } from "./stzh-input.localization"; /** * @slot description - Slot for description * @slot description-long - Slot for long description (in popover) * @slot error - Slot for error * @slot button-right - Slot for right button */ export declare class StzhInput { /** Translation strings */ localization: StzhInputLocalizedText; /** Whether the input is a textarea or an input field */ multiline: boolean; /** Rows attribute if input element is textarea */ rows: number; /** If input field, this defines the type (if `search`, a search icon will be displayed) */ type: "text" | "search" | "password" | "email" | "url" | "tel" | "number" | "hidden"; /** If input type is number, this will be the step size */ step: number; /** If input type is number, this will be the minimum step number */ min: number; /** If input type is number, this will be the maximum step number */ max: number; /** If input type is number and this property is true, this will show the spin buttons on hover/focus */ showSpin: boolean; /** Whether the element is readonly or not */ readonly: boolean; /** Whether the element is disabled or not */ disabled: boolean; /** Whether clearable button is showing when input field has value and is enabled (button-right slot not usable anymore when true) */ clearable: boolean; /** Hide `(optional)` label (or use `required` inside form to hide it) */ hideOptional: boolean; /** Minimum of characters */ minlength: number; /** Maxlength of characters */ maxlength: number; /** The name of the input element */ name: string; /** The value of the input element */ value: string; /** Default value (used by reset) */ defaultValue: string; /** Description message (use description slot as alternative) */ description: string; /** Long description message appearing in a popover (use description-long slot as alternative) */ descriptionLong: string; /** One or multiple error message (use error slot as alternative) */ error: string | string[]; private _error; /** Invalid status */ invalid: boolean; /** Required status */ required: boolean; /** * Specify inputmode. * See [MDN](https://developer.mozilla.org/de/docs/Web/HTML/Global_attributes/inputmode) for possible values */ inputmode: string; /** * Specify what the user agent has to provide as automated assistance. * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for possible values */ autocomplete: string; /** Whether autocomplete should be turned off */ noAutocomplete: boolean; /** Label */ label: string; /** Whether label should be truncated or not */ noLabelTruncate: boolean; /** Whether label should be visually hidden. */ labelHidden: boolean; /** Size variant */ size: "default" | "small"; /** Id for element which describes the input (this will be overwritten if description prop or slot is used, used by stzh-radiogroup) */ a11yDescribedby: string; /** Whether the input is filled or not */ filled: boolean; /** Whether to show the password or not */ showPassword: boolean; element: HTMLStzhInputElement; /** Input change event */ stzhChange: EventEmitter; /** Input changed event */ stzhChanged: EventEmitter; /** Input focus event */ stzhFocus: EventEmitter; /** Input blur event */ stzhBlur: EventEmitter; resetListener(event: Event): void; valueWatcher(newValue: string): void; errorWatcher(newValue: string | string[]): void; typeWatcher(newValue: string): void; private input; private readonly uid; private focusedByInput; private renderPromiseResolve; private waitForNextRender; private onClearClick; private onTogglePasswordVisibilityClick; private handleReset; private onInput; private onChange; private onRootFocus; private onFocus; private onBlur; private renderTextarea; private renderInput; componentDidRender(): void; componentWillLoad(): Promise; render(): any; }