@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
85 lines (84 loc) • 3.2 kB
TypeScript
import type { JSX } from '../../stencil-public-runtime';
import type { HideMsgPropType, IconsHorizontalPropType, IdPropType, InputTypeOnDefault, LabelWithExpertSlotPropType, MsgPropType, NamePropType, OptionsPropType, RowsPropType, ShortKeyPropType, SingleSelectAPI, SingleSelectStates, StencilUnknown, Stringified, SyncValueBySelectorPropType, TooltipAlignPropType } from '../../schema';
export declare class KolSingleSelect implements SingleSelectAPI {
private readonly host?;
private refInput?;
private refOptions;
private oldValue?;
getValue(): Promise<StencilUnknown>;
kolFocus(): Promise<void>;
private readonly catchRef;
private toggleListbox;
private onBlur;
private clearSelection;
private selectOption;
private onInput;
private handleKeyDownDropdown;
private setFilteredOptionsByQuery;
private _focusedOptionIndex;
private moveFocus;
private focusOption;
private focusSuggestionStartingWith;
private getFormFieldProps;
private getInputProps;
render(): JSX.Element;
handleFocusOut(): void;
handleWindowBlur(): void;
handleKeyDown(event: KeyboardEvent): void;
private readonly controller;
private _isOpen;
private _filteredOptions?;
private _inputValue;
private blockSuggestionMouseOver;
private _hasOpened;
_accessKey?: string;
_placeholder?: string;
_disabled?: boolean;
_hideMsg?: boolean;
_hideLabel?: boolean;
_hint?: string;
_icons?: IconsHorizontalPropType;
_id?: IdPropType;
_label: LabelWithExpertSlotPropType;
_msg?: Stringified<MsgPropType>;
_name?: NamePropType;
_on?: InputTypeOnDefault;
_options: OptionsPropType;
_required?: boolean;
_shortKey?: ShortKeyPropType;
_syncValueBySelector?: SyncValueBySelectorPropType;
_tooltipAlign?: TooltipAlignPropType;
_touched?: boolean;
_value: StencilUnknown;
_hideClearButton?: boolean;
_rows?: RowsPropType;
state: SingleSelectStates;
private inputHasFocus;
constructor();
private showAsAlert;
validatePlaceholder(value?: string): void;
validateAccessKey(value?: string): void;
validateDisabled(value?: boolean): void;
validateHideMsg(value?: HideMsgPropType): void;
validateHideLabel(value?: boolean): void;
validateHint(value?: string): void;
validateIcons(value?: IconsHorizontalPropType): void;
validateId(value?: string): void;
validateLabel(value?: LabelWithExpertSlotPropType): void;
validateMsg(value?: Stringified<MsgPropType>): void;
validateName(value?: string): void;
validateOn(value?: InputTypeOnDefault): void;
validateOptions(value?: OptionsPropType): void;
validateRequired(value?: boolean): void;
validateShortKey(value?: ShortKeyPropType): void;
validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void;
validateTouched(value?: boolean): void;
validateValue(value: StencilUnknown): void;
validateHideClearButton(value?: boolean): void;
validateRows(value?: number): void;
handleMouseEvent(): void;
private updateInputValue;
componentWillLoad(): void;
private onChange;
private onClick;
}