slim-select 2.4.4 → 2.5.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,314 +1,317 @@
1
- /// <reference types="node" />
2
- import { PropType } from 'vue';
3
- import SlimSelect, { Events } from '../slim-select';
4
- import { DataArrayPartial, Option } from '../slim-select/store';
5
- declare const _default: import("vue").DefineComponent<{
6
- modelValue: {
7
- type: PropType<string | string[] | undefined>;
8
- };
9
- multiple: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- data: {
14
- type: PropType<DataArrayPartial>;
15
- };
16
- settings: {
17
- type: PropType<Partial<import("../slim-select/settings").default>>;
18
- };
19
- events: {
20
- type: PropType<Events>;
21
- };
22
- }, unknown, {
23
- slim: SlimSelect | null;
24
- }, {
25
- value: {
26
- get(): string | string[];
27
- set(value: string | string[]): void;
28
- };
29
- }, {
30
- getSlimSelect(): {
31
- selectEl: HTMLSelectElement;
32
- settings: {
33
- id: string;
34
- style: string;
35
- class: string[];
36
- isMultiple: boolean;
37
- isOpen: boolean;
38
- isFullOpen: boolean;
39
- intervalMove: {
40
- hasRef: () => boolean;
41
- refresh: () => NodeJS.Timeout;
42
- [Symbol.toPrimitive]: () => number;
43
- ref: () => NodeJS.Timeout;
44
- unref: () => NodeJS.Timeout;
45
- } | null;
46
- disabled: boolean;
47
- alwaysOpen: boolean;
48
- showSearch: boolean;
49
- searchPlaceholder: string;
50
- searchText: string;
51
- searchingText: string;
52
- searchHighlight: boolean;
53
- closeOnSelect: boolean;
54
- contentLocation: HTMLElement;
55
- contentPosition: "relative" | "absolute";
56
- openPosition: "auto" | "up" | "down";
57
- placeholderText: string;
58
- allowDeselect: boolean;
59
- hideSelected: boolean;
60
- showOptionTooltips: boolean;
61
- minSelected: number;
62
- maxSelected: number;
63
- timeoutDelay: number;
64
- maxValuesShown: number;
65
- maxValuesMessage: string;
66
- };
67
- select: {
68
- select: HTMLSelectElement;
69
- onValueChange?: ((value: string[]) => void) | undefined;
70
- onClassChange?: ((classes: string[]) => void) | undefined;
71
- onDisabledChange?: ((disabled: boolean) => void) | undefined;
72
- onOptionsChange?: ((data: DataArrayPartial) => void) | undefined;
73
- listen: boolean;
74
- enable: () => void;
75
- disable: () => void;
76
- hideUI: () => void;
77
- showUI: () => void;
78
- changeListen: (listen: boolean) => void;
79
- valueChange: (ev: Event) => boolean;
80
- getData: () => DataArrayPartial;
81
- getDataFromOptgroup: (optgroup: HTMLOptGroupElement) => import("../slim-select/store").OptgroupOptional;
82
- getDataFromOption: (option: HTMLOptionElement) => Option;
83
- getSelectedValues: () => string[];
84
- setSelected: (value: string[]) => void;
85
- updateSelect: (id?: string | undefined, style?: string | undefined, classes?: string[] | undefined) => void;
86
- updateOptions: (data: import("../slim-select/store").DataArray) => void;
87
- createOptgroup: (optgroup: import("../slim-select/store").Optgroup) => HTMLOptGroupElement;
88
- createOption: (info: Option) => HTMLOptionElement;
89
- destroy: () => void;
90
- };
91
- store: {
92
- validateDataArray: (data: DataArrayPartial | import("../slim-select/store").DataArray) => Error | null;
93
- validateOption: (option: import("../slim-select/store").OptionOptional | Option) => Error | null;
94
- partialToFullData: (data: DataArrayPartial) => import("../slim-select/store").DataArray;
95
- setData: (data: DataArrayPartial | import("../slim-select/store").DataArray) => void;
96
- getData: () => import("../slim-select/store").DataArray;
97
- getDataOptions: () => Option[];
98
- addOption: (option: import("../slim-select/store").OptionOptional) => void;
99
- setSelectedBy: (selectedType: "id" | "value", selectedValues: string[]) => void;
100
- getSelected: () => string[];
101
- getSelectedOptions: () => Option[];
102
- getSelectedIDs: () => string[];
103
- getOptgroupByID: (id: string) => import("../slim-select/store").Optgroup | null;
104
- getOptionByID: (id: string) => Option | null;
105
- search: (search: string, searchFilter: (opt: Option, search: string) => boolean) => import("../slim-select/store").DataArray;
106
- filter: (filter: ((opt: Option) => boolean) | null, includeOptgroup: boolean) => import("../slim-select/store").DataArray;
107
- };
108
- render: {
109
- settings: {
110
- id: string;
111
- style: string;
112
- class: string[];
113
- isMultiple: boolean;
114
- isOpen: boolean;
115
- isFullOpen: boolean;
116
- intervalMove: {
117
- hasRef: () => boolean;
118
- refresh: () => NodeJS.Timeout;
119
- [Symbol.toPrimitive]: () => number;
120
- ref: () => NodeJS.Timeout;
121
- unref: () => NodeJS.Timeout;
122
- } | null;
123
- disabled: boolean;
124
- alwaysOpen: boolean;
125
- showSearch: boolean;
126
- searchPlaceholder: string;
127
- searchText: string;
128
- searchingText: string;
129
- searchHighlight: boolean;
130
- closeOnSelect: boolean;
131
- contentLocation: HTMLElement;
132
- contentPosition: "relative" | "absolute";
133
- openPosition: "auto" | "up" | "down";
134
- placeholderText: string;
135
- allowDeselect: boolean;
136
- hideSelected: boolean;
137
- showOptionTooltips: boolean;
138
- minSelected: number;
139
- maxSelected: number;
140
- timeoutDelay: number;
141
- maxValuesShown: number;
142
- maxValuesMessage: string;
143
- };
144
- store: {
145
- validateDataArray: (data: DataArrayPartial | import("../slim-select/store").DataArray) => Error | null;
146
- validateOption: (option: import("../slim-select/store").OptionOptional | Option) => Error | null;
147
- partialToFullData: (data: DataArrayPartial) => import("../slim-select/store").DataArray;
148
- setData: (data: DataArrayPartial | import("../slim-select/store").DataArray) => void;
149
- getData: () => import("../slim-select/store").DataArray;
150
- getDataOptions: () => Option[];
151
- addOption: (option: import("../slim-select/store").OptionOptional) => void;
152
- setSelectedBy: (selectedType: "id" | "value", selectedValues: string[]) => void;
153
- getSelected: () => string[];
154
- getSelectedOptions: () => Option[];
155
- getSelectedIDs: () => string[];
156
- getOptgroupByID: (id: string) => import("../slim-select/store").Optgroup | null;
157
- getOptionByID: (id: string) => Option | null;
158
- search: (search: string, searchFilter: (opt: Option, search: string) => boolean) => import("../slim-select/store").DataArray;
159
- filter: (filter: ((opt: Option) => boolean) | null, includeOptgroup: boolean) => import("../slim-select/store").DataArray;
160
- };
161
- callbacks: {
162
- open: () => void;
163
- close: () => void;
164
- addable?: ((value: string) => string | false | import("../slim-select/store").OptionOptional | Promise<string | import("../slim-select/store").OptionOptional> | null | undefined) | undefined;
165
- setSelected: (value: string[], runAfterChange: boolean) => void;
166
- addOption: (option: Option) => void;
167
- search: (search: string) => void;
168
- beforeChange?: ((newVal: Option[], oldVal: Option[]) => boolean | void) | undefined;
169
- afterChange?: ((newVal: Option[]) => void) | undefined;
170
- };
171
- main: {
172
- main: HTMLDivElement;
173
- values: HTMLDivElement;
174
- deselect: {
175
- main: HTMLDivElement;
176
- svg: SVGSVGElement;
177
- path: SVGPathElement;
178
- };
179
- arrow: {
180
- main: SVGSVGElement;
181
- path: SVGPathElement;
182
- };
183
- };
184
- content: {
185
- main: HTMLDivElement;
186
- search: {
187
- main: HTMLDivElement;
188
- input: HTMLInputElement;
189
- addable?: {
190
- main: HTMLDivElement;
191
- svg: SVGSVGElement;
192
- path: SVGPathElement;
193
- } | undefined;
194
- };
195
- list: HTMLDivElement;
196
- };
197
- classes: {
198
- main: string;
199
- placeholder: string;
200
- values: string;
201
- single: string;
202
- max: string;
203
- value: string;
204
- valueText: string;
205
- valueDelete: string;
206
- valueOut: string;
207
- deselect: string;
208
- deselectPath: string;
209
- arrow: string;
210
- arrowClose: string;
211
- arrowOpen: string;
212
- content: string;
213
- openAbove: string;
214
- openBelow: string;
215
- search: string;
216
- searchHighlighter: string;
217
- searching: string;
218
- addable: string;
219
- addablePath: string;
220
- list: string;
221
- optgroup: string;
222
- optgroupLabel: string;
223
- optgroupLabelText: string;
224
- optgroupActions: string;
225
- optgroupSelectAll: string;
226
- optgroupSelectAllBox: string;
227
- optgroupSelectAllCheck: string;
228
- optgroupClosable: string;
229
- option: string;
230
- optionDelete: string;
231
- highlighted: string;
232
- open: string;
233
- close: string;
234
- selected: string;
235
- error: string;
236
- disabled: string;
237
- hide: string;
238
- };
239
- enable: () => void;
240
- disable: () => void;
241
- open: () => void;
242
- close: () => void;
243
- updateClassStyles: () => void;
244
- updateAriaAttributes: () => void;
245
- mainDiv: () => import("../slim-select/render").Main;
246
- mainFocus: (eventType: string | null) => void;
247
- placeholder: () => HTMLDivElement;
248
- renderValues: () => void;
249
- multipleValue: (option: Option) => HTMLDivElement;
250
- contentDiv: () => import("../slim-select/render").Content;
251
- moveContent: () => void;
252
- searchDiv: () => import("../slim-select/render").Search;
253
- searchFocus: () => void;
254
- getOptions: (notPlaceholder?: boolean, notDisabled?: boolean, notHidden?: boolean) => HTMLDivElement[];
255
- highlight: (dir: "up" | "down") => void;
256
- listDiv: () => HTMLDivElement;
257
- renderError: (error: string) => void;
258
- renderSearching: () => void;
259
- renderOptions: (data: import("../slim-select/store").DataArray) => void;
260
- option: (option: Option) => HTMLDivElement;
261
- destroy: () => void;
262
- moveContentAbove: () => void;
263
- moveContentBelow: () => void;
264
- ensureElementInView: (container: HTMLElement, element: HTMLElement) => void;
265
- putContent: () => "up" | "down";
266
- };
267
- events: {
268
- search?: ((searchValue: string, currentData: import("../slim-select/store").DataArray) => DataArrayPartial | Promise<DataArrayPartial>) | undefined;
269
- searchFilter?: ((option: Option, search: string) => boolean) | undefined;
270
- addable?: ((value: string) => string | false | import("../slim-select/store").OptionOptional | Promise<string | import("../slim-select/store").OptionOptional> | null | undefined) | undefined;
271
- beforeChange?: ((newVal: Option[], oldVal: Option[]) => boolean | void) | undefined;
272
- afterChange?: ((newVal: Option[]) => void) | undefined;
273
- beforeOpen?: (() => void) | undefined;
274
- afterOpen?: (() => void) | undefined;
275
- beforeClose?: (() => void) | undefined;
276
- afterClose?: (() => void) | undefined;
277
- error?: ((err: Error) => void) | undefined;
278
- };
279
- enable: () => void;
280
- disable: () => void;
281
- getData: () => import("../slim-select/store").DataArray;
282
- setData: (data: DataArrayPartial) => void;
283
- getSelected: () => string[];
284
- setSelected: (value: string | string[], runAfterChange?: boolean) => void;
285
- addOption: (option: import("../slim-select/store").OptionOptional) => void;
286
- open: () => void;
287
- close: (eventType?: string | null) => void;
288
- search: (value: string) => void;
289
- destroy: () => void;
290
- } | null;
291
- getCleanValue(val: string | string[] | undefined): string | string[];
292
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
293
- modelValue: {
294
- type: PropType<string | string[] | undefined>;
295
- };
296
- multiple: {
297
- type: BooleanConstructor;
298
- default: boolean;
299
- };
300
- data: {
301
- type: PropType<DataArrayPartial>;
302
- };
303
- settings: {
304
- type: PropType<Partial<import("../slim-select/settings").default>>;
305
- };
306
- events: {
307
- type: PropType<Events>;
308
- };
309
- }>> & {
310
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
311
- }, {
312
- multiple: boolean;
313
- }>;
314
- export default _default;
1
+ /// <reference types="node" />
2
+ import { PropType } from 'vue';
3
+ import SlimSelect, { Events } from '../slim-select';
4
+ import { DataArrayPartial, Option } from '../slim-select/store';
5
+ declare const _default: import("vue").DefineComponent<{
6
+ modelValue: {
7
+ type: PropType<string | string[] | undefined>;
8
+ };
9
+ multiple: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ data: {
14
+ type: PropType<DataArrayPartial>;
15
+ };
16
+ settings: {
17
+ type: PropType<Partial<import("../slim-select/settings").default>>;
18
+ };
19
+ events: {
20
+ type: PropType<Events>;
21
+ };
22
+ }, unknown, {
23
+ slim: SlimSelect | null;
24
+ }, {
25
+ value: {
26
+ get(): string | string[];
27
+ set(value: string | string[]): void;
28
+ };
29
+ }, {
30
+ getSlimSelect(): {
31
+ selectEl: HTMLSelectElement;
32
+ settings: {
33
+ id: string;
34
+ style: string;
35
+ class: string[];
36
+ isMultiple: boolean;
37
+ isOpen: boolean;
38
+ isFullOpen: boolean;
39
+ intervalMove: {
40
+ hasRef: () => boolean;
41
+ refresh: () => NodeJS.Timeout;
42
+ [Symbol.toPrimitive]: () => number;
43
+ ref: () => NodeJS.Timeout;
44
+ unref: () => NodeJS.Timeout;
45
+ } | null;
46
+ disabled: boolean;
47
+ alwaysOpen: boolean;
48
+ showSearch: boolean;
49
+ searchPlaceholder: string;
50
+ searchText: string;
51
+ searchingText: string;
52
+ searchHighlight: boolean;
53
+ closeOnSelect: boolean;
54
+ contentLocation: HTMLElement;
55
+ contentPosition: "relative" | "absolute";
56
+ openPosition: "auto" | "up" | "down";
57
+ placeholderText: string;
58
+ allowDeselect: boolean;
59
+ hideSelected: boolean;
60
+ showOptionTooltips: boolean;
61
+ minSelected: number;
62
+ maxSelected: number;
63
+ timeoutDelay: number;
64
+ maxValuesShown: number;
65
+ maxValuesMessage: string;
66
+ };
67
+ select: {
68
+ select: HTMLSelectElement;
69
+ onValueChange?: ((value: string[]) => void) | undefined;
70
+ onClassChange?: ((classes: string[]) => void) | undefined;
71
+ onDisabledChange?: ((disabled: boolean) => void) | undefined;
72
+ onOptionsChange?: ((data: DataArrayPartial) => void) | undefined;
73
+ listen: boolean;
74
+ enable: () => void;
75
+ disable: () => void;
76
+ hideUI: () => void;
77
+ showUI: () => void;
78
+ changeListen: (listen: boolean) => void;
79
+ valueChange: (ev: Event) => boolean;
80
+ getData: () => DataArrayPartial;
81
+ getDataFromOptgroup: (optgroup: HTMLOptGroupElement) => import("../slim-select/store").OptgroupOptional;
82
+ getDataFromOption: (option: HTMLOptionElement) => Option;
83
+ getSelectedValues: () => string[];
84
+ setSelected: (value: string[]) => void;
85
+ updateSelect: (id?: string | undefined, style?: string | undefined, classes?: string[] | undefined) => void;
86
+ updateOptions: (data: import("../slim-select/store").DataArray) => void;
87
+ createOptgroup: (optgroup: import("../slim-select/store").Optgroup) => HTMLOptGroupElement;
88
+ createOption: (info: Option) => HTMLOptionElement;
89
+ destroy: () => void;
90
+ };
91
+ store: {
92
+ validateDataArray: (data: DataArrayPartial | import("../slim-select/store").DataArray) => Error | null;
93
+ validateOption: (option: import("../slim-select/store").OptionOptional | Option) => Error | null;
94
+ partialToFullData: (data: DataArrayPartial) => import("../slim-select/store").DataArray;
95
+ setData: (data: DataArrayPartial | import("../slim-select/store").DataArray) => void;
96
+ getData: () => import("../slim-select/store").DataArray;
97
+ getDataOptions: () => Option[];
98
+ addOption: (option: import("../slim-select/store").OptionOptional) => void;
99
+ setSelectedBy: (selectedType: "id" | "value", selectedValues: string[]) => void;
100
+ getSelected: () => string[];
101
+ getSelectedOptions: () => Option[];
102
+ getSelectedIDs: () => string[];
103
+ getOptgroupByID: (id: string) => import("../slim-select/store").Optgroup | null;
104
+ getOptionByID: (id: string) => Option | null;
105
+ search: (search: string, searchFilter: (opt: Option, search: string) => boolean) => import("../slim-select/store").DataArray;
106
+ filter: (filter: ((opt: Option) => boolean) | null, includeOptgroup: boolean) => import("../slim-select/store").DataArray;
107
+ getSelectType: () => string;
108
+ };
109
+ render: {
110
+ settings: {
111
+ id: string;
112
+ style: string;
113
+ class: string[];
114
+ isMultiple: boolean;
115
+ isOpen: boolean;
116
+ isFullOpen: boolean;
117
+ intervalMove: {
118
+ hasRef: () => boolean;
119
+ refresh: () => NodeJS.Timeout;
120
+ [Symbol.toPrimitive]: () => number;
121
+ ref: () => NodeJS.Timeout;
122
+ unref: () => NodeJS.Timeout;
123
+ } | null;
124
+ disabled: boolean;
125
+ alwaysOpen: boolean;
126
+ showSearch: boolean;
127
+ searchPlaceholder: string;
128
+ searchText: string;
129
+ searchingText: string;
130
+ searchHighlight: boolean;
131
+ closeOnSelect: boolean;
132
+ contentLocation: HTMLElement;
133
+ contentPosition: "relative" | "absolute";
134
+ openPosition: "auto" | "up" | "down";
135
+ placeholderText: string;
136
+ allowDeselect: boolean;
137
+ hideSelected: boolean;
138
+ showOptionTooltips: boolean;
139
+ minSelected: number;
140
+ maxSelected: number;
141
+ timeoutDelay: number;
142
+ maxValuesShown: number;
143
+ maxValuesMessage: string;
144
+ };
145
+ store: {
146
+ validateDataArray: (data: DataArrayPartial | import("../slim-select/store").DataArray) => Error | null;
147
+ validateOption: (option: import("../slim-select/store").OptionOptional | Option) => Error | null;
148
+ partialToFullData: (data: DataArrayPartial) => import("../slim-select/store").DataArray;
149
+ setData: (data: DataArrayPartial | import("../slim-select/store").DataArray) => void;
150
+ getData: () => import("../slim-select/store").DataArray;
151
+ getDataOptions: () => Option[];
152
+ addOption: (option: import("../slim-select/store").OptionOptional) => void;
153
+ setSelectedBy: (selectedType: "id" | "value", selectedValues: string[]) => void;
154
+ getSelected: () => string[];
155
+ getSelectedOptions: () => Option[];
156
+ getSelectedIDs: () => string[];
157
+ getOptgroupByID: (id: string) => import("../slim-select/store").Optgroup | null;
158
+ getOptionByID: (id: string) => Option | null;
159
+ search: (search: string, searchFilter: (opt: Option, search: string) => boolean) => import("../slim-select/store").DataArray;
160
+ filter: (filter: ((opt: Option) => boolean) | null, includeOptgroup: boolean) => import("../slim-select/store").DataArray;
161
+ getSelectType: () => string;
162
+ };
163
+ callbacks: {
164
+ open: () => void;
165
+ close: () => void;
166
+ addable?: ((value: string) => string | false | import("../slim-select/store").OptionOptional | Promise<string | import("../slim-select/store").OptionOptional> | null | undefined) | undefined;
167
+ setSelected: (value: string[], runAfterChange: boolean) => void;
168
+ addOption: (option: Option) => void;
169
+ search: (search: string) => void;
170
+ beforeChange?: ((newVal: Option[], oldVal: Option[]) => boolean | void) | undefined;
171
+ afterChange?: ((newVal: Option[]) => void) | undefined;
172
+ };
173
+ main: {
174
+ main: HTMLDivElement;
175
+ values: HTMLDivElement;
176
+ deselect: {
177
+ main: HTMLDivElement;
178
+ svg: SVGSVGElement;
179
+ path: SVGPathElement;
180
+ };
181
+ arrow: {
182
+ main: SVGSVGElement;
183
+ path: SVGPathElement;
184
+ };
185
+ };
186
+ content: {
187
+ main: HTMLDivElement;
188
+ search: {
189
+ main: HTMLDivElement;
190
+ input: HTMLInputElement;
191
+ addable?: {
192
+ main: HTMLDivElement;
193
+ svg: SVGSVGElement;
194
+ path: SVGPathElement;
195
+ } | undefined;
196
+ };
197
+ list: HTMLDivElement;
198
+ };
199
+ classes: {
200
+ main: string;
201
+ placeholder: string;
202
+ values: string;
203
+ single: string;
204
+ max: string;
205
+ value: string;
206
+ valueText: string;
207
+ valueDelete: string;
208
+ valueOut: string;
209
+ deselect: string;
210
+ deselectPath: string;
211
+ arrow: string;
212
+ arrowClose: string;
213
+ arrowOpen: string;
214
+ content: string;
215
+ openAbove: string;
216
+ openBelow: string;
217
+ search: string;
218
+ searchHighlighter: string;
219
+ searching: string;
220
+ addable: string;
221
+ addablePath: string;
222
+ list: string;
223
+ optgroup: string;
224
+ optgroupLabel: string;
225
+ optgroupLabelText: string;
226
+ optgroupActions: string;
227
+ optgroupSelectAll: string;
228
+ optgroupSelectAllBox: string;
229
+ optgroupSelectAllCheck: string;
230
+ optgroupClosable: string;
231
+ option: string;
232
+ optionDelete: string;
233
+ highlighted: string;
234
+ open: string;
235
+ close: string;
236
+ selected: string;
237
+ error: string;
238
+ disabled: string;
239
+ hide: string;
240
+ };
241
+ enable: () => void;
242
+ disable: () => void;
243
+ open: () => void;
244
+ close: () => void;
245
+ updateClassStyles: () => void;
246
+ updateAriaAttributes: () => void;
247
+ mainDiv: () => import("../slim-select/render").Main;
248
+ mainFocus: (eventType: string | null) => void;
249
+ placeholder: () => HTMLDivElement;
250
+ renderValues: () => void;
251
+ multipleValue: (option: Option) => HTMLDivElement;
252
+ contentDiv: () => import("../slim-select/render").Content;
253
+ moveContent: () => void;
254
+ searchDiv: () => import("../slim-select/render").Search;
255
+ searchFocus: () => void;
256
+ getOptions: (notPlaceholder?: boolean, notDisabled?: boolean, notHidden?: boolean) => HTMLDivElement[];
257
+ highlight: (dir: "up" | "down") => void;
258
+ listDiv: () => HTMLDivElement;
259
+ renderError: (error: string) => void;
260
+ renderSearching: () => void;
261
+ renderOptions: (data: import("../slim-select/store").DataArray) => void;
262
+ option: (option: Option) => HTMLDivElement;
263
+ destroy: () => void;
264
+ moveContentAbove: () => void;
265
+ moveContentBelow: () => void;
266
+ ensureElementInView: (container: HTMLElement, element: HTMLElement) => void;
267
+ putContent: () => "up" | "down";
268
+ updateDeselectAll: () => void;
269
+ };
270
+ events: {
271
+ search?: ((searchValue: string, currentData: import("../slim-select/store").DataArray) => DataArrayPartial | Promise<DataArrayPartial>) | undefined;
272
+ searchFilter?: ((option: Option, search: string) => boolean) | undefined;
273
+ addable?: ((value: string) => string | false | import("../slim-select/store").OptionOptional | Promise<string | import("../slim-select/store").OptionOptional> | null | undefined) | undefined;
274
+ beforeChange?: ((newVal: Option[], oldVal: Option[]) => boolean | void) | undefined;
275
+ afterChange?: ((newVal: Option[]) => void) | undefined;
276
+ beforeOpen?: (() => void) | undefined;
277
+ afterOpen?: (() => void) | undefined;
278
+ beforeClose?: (() => void) | undefined;
279
+ afterClose?: (() => void) | undefined;
280
+ error?: ((err: Error) => void) | undefined;
281
+ };
282
+ enable: () => void;
283
+ disable: () => void;
284
+ getData: () => import("../slim-select/store").DataArray;
285
+ setData: (data: DataArrayPartial) => void;
286
+ getSelected: () => string[];
287
+ setSelected: (value: string | string[], runAfterChange?: boolean) => void;
288
+ addOption: (option: import("../slim-select/store").OptionOptional) => void;
289
+ open: () => void;
290
+ close: (eventType?: string | null) => void;
291
+ search: (value: string) => void;
292
+ destroy: () => void;
293
+ } | null;
294
+ getCleanValue(val: string | string[] | undefined): string | string[];
295
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
296
+ modelValue: {
297
+ type: PropType<string | string[] | undefined>;
298
+ };
299
+ multiple: {
300
+ type: BooleanConstructor;
301
+ default: boolean;
302
+ };
303
+ data: {
304
+ type: PropType<DataArrayPartial>;
305
+ };
306
+ settings: {
307
+ type: PropType<Partial<import("../slim-select/settings").default>>;
308
+ };
309
+ events: {
310
+ type: PropType<Events>;
311
+ };
312
+ }>> & {
313
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
314
+ }, {
315
+ multiple: boolean;
316
+ }>;
317
+ export default _default;