slim-select 2.6.0 → 2.7.1

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.
Files changed (45) hide show
  1. package/dist/render.d.ts +1 -1
  2. package/dist/settings.d.ts +1 -0
  3. package/dist/slimselect.cjs.js +43 -9
  4. package/dist/slimselect.css +1 -1
  5. package/dist/slimselect.css.map +1 -1
  6. package/dist/slimselect.es.js +43 -9
  7. package/dist/slimselect.global.js +43 -9
  8. package/dist/slimselect.js +43 -9
  9. package/dist/slimselect.min.js +1 -1
  10. package/dist/slimselect.umd.js +43 -9
  11. package/dist/slimselect.umd.min.js +1 -1
  12. package/dist/store.d.ts +2 -1
  13. package/index.html +4 -0
  14. package/package.json +50 -26
  15. package/src/react/.eslintignore +2 -0
  16. package/src/react/.eslintrc.cjs +24 -0
  17. package/src/react/index.html +14 -0
  18. package/src/react/jestconfig.json +11 -0
  19. package/src/react/package.json +32 -0
  20. package/src/react/src/frameworkpage.tsx +133 -0
  21. package/src/react/src/index.ts +3 -0
  22. package/src/react/src/slimselect.tsx +148 -0
  23. package/src/react/tests/slimselect.test.tsx +52 -0
  24. package/src/react/tsconfig.json +37 -0
  25. package/src/react/tsconfig.node.json +10 -0
  26. package/src/react/vite.config.ts +55 -0
  27. package/src/slim-select/index.test.ts +2 -2
  28. package/src/slim-select/render.ts +39 -9
  29. package/src/slim-select/select.ts +3 -2
  30. package/src/slim-select/settings.ts +2 -0
  31. package/src/slim-select/slimselect.scss +3 -2
  32. package/src/slim-select/store.ts +20 -3
  33. package/src/vue/dist/slim-select/helpers.d.ts +5 -5
  34. package/src/vue/dist/slim-select/index.d.ts +46 -46
  35. package/src/vue/dist/slim-select/render.d.ts +120 -120
  36. package/src/vue/dist/slim-select/select.d.ts +28 -28
  37. package/src/vue/dist/slim-select/settings.d.ts +33 -32
  38. package/src/vue/dist/slim-select/store.d.ts +80 -79
  39. package/src/vue/dist/slimselectvue.es.js +1940 -1911
  40. package/src/vue/dist/slimselectvue.global.js +1940 -1911
  41. package/src/vue/dist/slimselectvue.ssr.js +1940 -1911
  42. package/src/vue/dist/vue/hello.d.ts +2 -2
  43. package/src/vue/dist/vue/slimselect.vue.d.ts +324 -317
  44. package/src/vue/slimselect.vue +2 -7
  45. package/tsconfig.json +1 -1
@@ -1,317 +1,324 @@
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;
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;