@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
81 lines (80 loc) • 3.41 kB
TypeScript
import type { JSX } from '../../stencil-public-runtime';
import type { AccessKeyPropType, AlertPropType, ButtonProps, FocusableElement, HideErrorPropType, IconsHorizontalPropType, IdPropType, InputTextAPI, InputTextStates, InputTextType, InputTypeOnDefault, InputTypeOnOff, LabelWithExpertSlotPropType, MsgPropType, NamePropType, ShortKeyPropType, SpellCheckPropType, Stringified, SuggestionsPropType, SyncValueBySelectorPropType, TooltipAlignPropType } from '../../schema';
export declare class KolInputText implements InputTextAPI, FocusableElement {
private readonly host?;
private inputRef?;
private oldValue?;
private readonly catchRef;
private readonly onChange;
private readonly onInput;
private readonly onKeyDown;
getValue(): Promise<string | undefined>;
focus(): Promise<void>;
kolFocus(): Promise<void>;
render(): JSX.Element;
private readonly controller;
_accessKey?: AccessKeyPropType;
_alert?: boolean;
_autoComplete?: InputTypeOnOff;
_disabled?: boolean;
_error?: string;
_hasCounter?: boolean;
_hideError?: boolean;
_hideLabel?: boolean;
_hint?: string;
_icons?: IconsHorizontalPropType;
_id?: IdPropType;
_label: LabelWithExpertSlotPropType;
_maxLength?: number;
_msg?: Stringified<MsgPropType>;
_name?: NamePropType;
_on?: InputTypeOnDefault;
_pattern?: string;
_placeholder?: string;
_readOnly?: boolean;
_required?: boolean;
_shortKey?: ShortKeyPropType;
_spellCheck?: SpellCheckPropType;
_suggestions?: SuggestionsPropType;
_smartButton?: Stringified<ButtonProps>;
_syncValueBySelector?: SyncValueBySelectorPropType;
_tabIndex?: number;
_tooltipAlign?: TooltipAlignPropType;
_touched?: boolean;
_type?: InputTextType;
_value?: string;
state: InputTextStates;
private inputHasFocus;
constructor();
private showAsAlert;
validateAccessKey(value?: AccessKeyPropType): void;
validateAlert(value?: AlertPropType): void;
validateAutoComplete(value?: InputTypeOnOff): void;
validateDisabled(value?: boolean): void;
validateError(value?: string): void;
validateHasCounter(value?: boolean): void;
validateHideError(value?: HideErrorPropType): void;
validateHideLabel(value?: boolean): void;
validateHint(value?: string): void;
validateIcons(value?: IconsHorizontalPropType): void;
validateId(value?: string): void;
validateLabel(value?: LabelWithExpertSlotPropType): void;
validateMaxLength(value?: number): void;
validateMsg(value?: Stringified<MsgPropType>): void;
validateName(value?: string): void;
validateOn(value?: InputTypeOnDefault): void;
validatePattern(value?: string): void;
validatePlaceholder(value?: string): void;
validateReadOnly(value?: boolean): void;
validateRequired(value?: boolean): void;
validateShortKey(value?: ShortKeyPropType): void;
validateSpellCheck(value?: SpellCheckPropType): void;
validateSuggestions(value?: SuggestionsPropType): void;
validateSmartButton(value?: ButtonProps | string): void;
validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void;
validateTabIndex(value?: number): void;
validateTouched(value?: boolean): void;
validateType(value?: InputTextType): void;
validateValue(value?: string): void;
componentWillLoad(): void;
}