UNPKG

@nethesis/vue-components

Version:

This library contains: - a collection of Vue 3 components based on [Flowbite](https://flowbite.com/) - a set of utility functions

83 lines 2.85 kB
import { type IconDefinition } from '@fortawesome/free-solid-svg-icons'; export interface NeComboboxOption { id: string; label: string; description?: string; icon?: IconDefinition; rawObj?: unknown; disabled?: boolean; } export interface Props { modelValue: string | Array<NeComboboxOption>; options: NeComboboxOption[]; label?: string; placeholder?: string; helperText?: string; invalidMessage?: string; maxOptionsShown?: number; /** * @deprecated Use NeMultiselectCombobox instead. This prop will be removed in a future release. */ multiple?: boolean; disabled?: boolean; showOptionsType?: boolean; optional?: boolean; selectedLabel: string; showSelectedLabel?: boolean; noResultsLabel: string; limitedOptionsLabel: string; noOptionsLabel: string; acceptUserInput?: boolean; userInputLabel: string; optionalLabel: string; customOptionsWidth?: string; externalFilter?: boolean; loadingOptions?: boolean; /** * The currently selected option, supplied by the parent. Used to render the * selection when `modelValue`'s option is absent from `options` — the case * `externalFilter` creates, where the parent only supplies a page of a larger * server-side result set. Ignored unless its `id` matches `modelValue`. * Single selection only: in multiple mode `modelValue` already carries options. */ selectedOption?: NeComboboxOption; } declare function focus(): void; declare var __VLS_9: {}; type __VLS_Slots = {} & { tooltip?: (props: typeof __VLS_9) => any; }; declare const __VLS_component: import("vue").DefineComponent<Props, { focus: typeof focus; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { filter: (...args: any[]) => void; "update:modelValue": (...args: any[]) => void; }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{ onFilter?: ((...args: any[]) => any) | undefined; "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; }>, { label: string; disabled: boolean; helperText: string; invalidMessage: string; options: NeComboboxOption[]; placeholder: string; maxOptionsShown: number; multiple: boolean; showOptionsType: boolean; optional: boolean; showSelectedLabel: boolean; acceptUserInput: boolean; customOptionsWidth: string; externalFilter: boolean; loadingOptions: boolean; selectedOption: NeComboboxOption; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; }; //# sourceMappingURL=NeCombobox.vue.d.ts.map