@milaboratories/uikit 2.6.5 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,111 +0,0 @@
1
- import { ListOptionBase } from '@platforma-sdk/model';
2
- /**
3
- * A multi-select autocomplete component that allows users to search and select multiple values from a list of options.
4
- * Supports async data fetching, keyboard navigation, and displays selected items as removable chips.
5
- *
6
- * @example
7
- * Basic usage:
8
- * <PlAutocompleteMulti
9
- * v-model="selectedUsers"
10
- * :options-search="searchUsers"
11
- * :model-search="getUsersByIds"
12
- * label="Select Users"
13
- * placeholder="Search for users..."
14
- * required
15
- * :debounce="300"
16
- * helper="Choose one or more users from the list"
17
- * />
18
- *
19
- * With async functions:
20
- * const selectedUsers = ref([])
21
- *
22
- * const searchUsers = async (searchTerm) => {
23
- * const response = await fetch('/api/users/search?q=' + searchTerm)
24
- * const users = await response.json()
25
- * return users.map(user => ({ value: user.id, label: user.name }))
26
- * }
27
- *
28
- * const getUsersByIds = async (userIds) => {
29
- * if (!userIds.length) return []
30
- * const response = await fetch('/api/users?ids=' + userIds.join(','))
31
- * const users = await response.json()
32
- * return users.map(user => ({ value: user.id, label: user.name }))
33
- * }
34
- */
35
- declare const _default: <M extends string | number = string>(__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<{
36
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
37
- readonly "onUpdate:modelValue"?: ((v: M[]) => any) | undefined;
38
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & {
39
- /**
40
- * The current selected values.
41
- */
42
- modelValue: M[];
43
- /**
44
- * Lambda for requesting of available options for the dropdown by search string.
45
- */
46
- optionsSearch: (s: string) => Promise<Readonly<ListOptionBase<M>[]>>;
47
- /**
48
- * Lambda for requesting options that correspond to the current model values.
49
- */
50
- modelSearch: (values: M[]) => Promise<Readonly<ListOptionBase<M>[]>>;
51
- /**
52
- * Unique identifier for the source of the options, changing it will invalidate the options cache.
53
- */
54
- sourceId?: string;
55
- /**
56
- * The label text for the dropdown field (optional)
57
- */
58
- label?: string;
59
- /**
60
- * A helper text displayed below the dropdown when there are no errors (optional).
61
- */
62
- helper?: string;
63
- /**
64
- * Error message displayed below the dropdown (optional)
65
- */
66
- error?: unknown;
67
- /**
68
- * Placeholder text shown when no value is selected.
69
- */
70
- placeholder?: string;
71
- /**
72
- * If `true`, the dropdown component is marked as required.
73
- */
74
- required?: boolean;
75
- /**
76
- * If `true`, the dropdown component is disabled and cannot be interacted with.
77
- */
78
- disabled?: boolean;
79
- /**
80
- * Debounce time in ms for the options search.
81
- */
82
- debounce?: number;
83
- /**
84
- * If `true`, the search input is reset and focus is set on it when the new option is selected.
85
- */
86
- resetSearchOnSelect?: boolean;
87
- /**
88
- * The text to display when no options are found.
89
- */
90
- emptyOptionsText?: string;
91
- /**
92
- * Makes some of corners not rounded
93
- * */
94
- groupPosition?: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "middle";
95
- } & Partial<{}>> & import('vue').PublicProps;
96
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
97
- attrs: any;
98
- slots: {
99
- append?(_: {}): any;
100
- tooltip?(_: {}): any;
101
- };
102
- emit: (e: "update:modelValue", v: M[]) => void;
103
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
104
- [key: string]: any;
105
- }> & {
106
- __ctx?: Awaited<typeof __VLS_setup>;
107
- };
108
- export default _default;
109
- type __VLS_PrettifyLocal<T> = {
110
- [K in keyof T]: T[K];
111
- } & {};