UNPKG

oui-kit

Version:

🎯 *UI toolkit with a French touch* 🇫🇷

75 lines (74 loc) • 2.38 kB
import { OuiSelectItem } from './_types'; type __VLS_Props = { id?: string; title?: string; description?: string; required?: boolean; /** Suggestions */ items: (OuiSelectItem | string | number)[]; placeholder?: string; selectIcon?: boolean; clearable?: boolean; disabled?: boolean; formatValue?: (value: any) => string; parseValue?: (value: string) => any; /** Allow to create new item, return its id */ addItemAction?: (title: string) => any; addItemTitle?: string; addItemClass?: string; addItemFooter?: boolean; /** Clear input text after selecting an item */ clearOnSelection?: boolean; }; type __VLS_PublicProps = { modelValue: any; } & __VLS_Props; declare function __VLS_template(): { attrs: Partial<{}>; slots: { title?(_: {}): any; description?(_: {}): any; before?(_: {}): any; after?(_: {}): any; header?(_: {}): any; empty?(_: {}): any; item?(_: { item: OuiSelectItem; }): any; default?(_: {}): any; footer?(_: {}): any; }; refs: { target: HTMLDivElement; input: HTMLInputElement; }; rootEl: any; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { change: (value: string | number | undefined) => any; "update:modelValue": (value: any) => any; deleteLast: () => any; }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ onChange?: ((value: string | number | undefined) => any) | undefined; "onUpdate:modelValue"?: ((value: any) => any) | undefined; onDeleteLast?: (() => any) | undefined; }>, { placeholder: string; disabled: boolean; id: string; selectIcon: boolean; clearable: boolean; addItemFooter: boolean; clearOnSelection: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { target: HTMLDivElement; input: HTMLInputElement; }, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };