@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
30 lines (29 loc) • 2 kB
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { InputRadioProps, InputRadioWatches, OptionsPropType, Orientation, PropLabelWithExpertSlot, RadioOption, SelectOption, StencilUnknown, Stringified, W3CInputValue } from '../../schema';
import { InputController } from '../@deprecated/input/controller';
export declare const fillKeyOptionMap: <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey?: string) => void;
type RequiredProps = PropLabelWithExpertSlot;
type OptionalProps = {
required: boolean;
};
type InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;
type InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;
export declare class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {
protected readonly component: Generic.Element.Component & InputCheckboxRadioProps;
constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement);
validateRequired(value?: boolean): void;
componentWillLoad(): void;
}
export declare class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {
protected readonly component: Generic.Element.Component & InputRadioProps;
private readonly keyOptionMap;
constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement);
readonly getOptionByKey: (key: string) => RadioOption<W3CInputValue> | undefined;
protected readonly afterPatchOptions: (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string) => void;
validateOrientation(value?: Orientation): void;
protected readonly beforePatchOptions: (_value: unknown, nextState: Map<string, unknown>) => void;
validateOptions(value?: OptionsPropType): void;
validateValue(value?: Stringified<StencilUnknown>): void;
componentWillLoad(): void;
}
export {};