UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

22 lines (21 loc) 1.43 kB
import type { Option, OptionsWithOptgroupPropType, RequiredPropType, RowsPropType, SelectProps, SelectWatches, StencilUnknown, Stringified, MultiplePropType, W3CInputValue } from '../../schema'; import { InputIconController } from '../@deprecated/input/controller-icon'; import type { Generic } from 'adopted-style-sheets'; export declare class SelectController extends InputIconController implements SelectWatches { protected readonly component: Generic.Element.Component & SelectProps; private readonly keyOptionMap; constructor(component: Generic.Element.Component & SelectProps, name: string, host?: HTMLElement); readonly getOptionByKey: (key: string) => Option<W3CInputValue> | undefined; private readonly isValueInOptions; private readonly filterValuesInOptions; protected readonly afterPatchOptions: (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string) => void; private readonly beforePatchOptions; validateOptions(value?: OptionsWithOptgroupPropType): void; validateMultiple(value?: MultiplePropType): void; validateRequired(value?: RequiredPropType): void; validateRows(value?: RowsPropType): void; validateValue(value?: Stringified<StencilUnknown[]> | Stringified<StencilUnknown>): void; componentWillLoad(): void; private assertValueMatchesMultiplicity; private assertComponentValueMatchesMultiplicity; }