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

58 lines 2.51 kB
import type { ButtonSize } from './NeButton.vue'; export type FilterKind = 'radio' | 'checkbox'; export type NeDropdownFilterV2Option = { id: string; label: string; description?: string; disabled?: boolean; }; export type NeDropdownFilterV2OptionGroup<T extends NeDropdownFilterV2Option = NeDropdownFilterV2Option> = { group: string; options: T[]; }; declare const _default: <T extends NeDropdownFilterV2Option = NeDropdownFilterV2Option>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{ readonly onSearch?: ((query: string) => any) | undefined; readonly "onUpdate:modelValue"?: ((value: T[]) => any) | undefined; readonly onCustomAction?: (() => any) | undefined; } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onSearch" | "onCustomAction"> & ({ label: string; options: (T | NeDropdownFilterV2OptionGroup<T>)[]; kind: FilterKind; clearFilterLabel: string; openMenuAriaLabel: string; showClearFilter?: boolean; showSelectionCount?: boolean; showRadioSelection?: boolean; noOptionsLabel: string; showOptionsFilter?: boolean; optionsFilterPlaceholder?: string; maxOptionsShown?: number; moreOptionsHiddenLabel: string; alignToRight?: boolean; size?: ButtonSize; disabled?: boolean; id?: string; clearSearchLabel: string; externalFilter?: boolean; loadingOptions?: boolean; customActionLabel?: string; } & { modelValue?: T[]; }) & Partial<{}>> & import("vue").PublicProps; expose(exposed: import("vue").ShallowUnwrapRef<{}>): void; attrs: any; slots: { button?: (props: {}) => any; } & { label?: (props: {}) => any; }; emit: (((evt: "search", query: string) => void) & ((evt: "customAction") => void)) & ((evt: "update:modelValue", value: T[]) => void); }>) => import("vue").VNode & { __ctx?: Awaited<typeof __VLS_setup>; }; export default _default; type __VLS_PrettifyLocal<T> = { [K in keyof T]: T[K]; } & {}; //# sourceMappingURL=NeDropdownFilterV2.vue.d.ts.map