import { MazUiTranslationsNestedSchema } from '@maz-ui/translations'; import { NormalizeStringOptions } from '@maz-ui/utils/helpers/normalizeString'; import { DeepPartial } from '@maz-ui/utils/ts-helpers/DeepPartial'; import { MazInputProps } from './MazInput.vue'; import { MazColor } from './types'; export type MazChecklistItemOption = { label: string; value: string | number; } & Record; export interface MazChecklistProps { /** * The model value of the checklist (selected items) * @type {(T extends unknown)[]} */ modelValue?: T[]; /** * The query to filter the items (model) * @type {string} */ query?: string; /** * The list of items to display * @type {(O extends MazChecklistItemOption)[]} */ items?: O[]; /** * The title of the checklist */ title?: string; /** * Add elevation to the card * @default false */ elevation?: boolean; /** * The search input options * @default { enabled: false, debounce: 300, autoFocus: false } */ search?: boolean | MazInputProps; /** * The options to normalize the search query (used by the default search function) * By default, the threshold is 0.75 */ searchOptions?: NormalizeStringOptions & { threshold?: number; }; /** * Replace the default search function to provide a custom search function * @default undefined */ searchFunction?: (query: string, items: O[]) => O[] | undefined; /** * The color of the checklist (card, checkbox and search input) * @default primary */ color?: MazColor; /** * Translations of the checklist component * @type {DeepPartial} * @default Translations from @maz-ui/translations */ translations?: DeepPartial; } declare const _default: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: __VLS_PrettifyLocal & Omit<{ readonly "onUpdate:model-value"?: ((value?: T[] | undefined) => any) | undefined; readonly "onUpdate:query"?: ((value?: string | undefined) => any) | undefined; } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value" | "onUpdate:query"> & MazChecklistProps & Partial<{}>> & import('vue').PublicProps; expose(exposed: import('vue').ShallowUnwrapRef<{}>): void; attrs: any; slots: { title?(_: {}): any; 'no-results'?(_: {}): any; 'no-results-text'?(_: {}): any; item?(_: { selectedValues: T[] | undefined; item: O; }): any; }; emit: ((evt: "update:model-value", value?: T[] | undefined) => void) & ((evt: "update:query", value?: string | undefined) => void); }>) => import('vue').VNode & { __ctx?: Awaited; }; export default _default; type __VLS_PrettifyLocal = { [K in keyof T]: T[K]; } & {};