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