UNPKG

@oslokommune/punkt-elements

Version:

Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo

29 lines (28 loc) 1.24 kB
import { ComboboxValue } from './combobox-value'; /** * Event handler layer for PktCombobox. * Handles user interactions: input, focus, keyboard, clicks, tags. */ export declare class ComboboxHandlers extends ComboboxValue { protected handleInput(e: InputEvent): void; protected handleFocus(): void; protected handleFocusOut(e: FocusEvent): void; /** * Shared close logic used by both focusout and outside-click handlers. * Processes any pending input value, then closes the dropdown. */ protected closeAndProcessInput(): void; protected handleBlur(): void; protected handleInputClick(e: MouseEvent): void; protected handlePlaceholderClick(e: MouseEvent): void; protected handleSelectOnlyKeydown(e: KeyboardEvent): void; protected handleOptionToggled(e: CustomEvent): void; protected handleSearch(e: CustomEvent): void; protected handleInputKeydown(e: KeyboardEvent): void; protected handleTagRemove(value: string | null): void; protected getInsideTags(): HTMLElement[]; protected focusTag(index: number): void; protected resetTagTabindices(): void; protected handleTagKeydown(e: KeyboardEvent, index: number): void; protected checkForMatches(): void; }