vue3-extended-multiselect 0.0.1 → 0.0.3
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.
- package/CHANGELOG.md +10 -2
- package/README.md +454 -480
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
##Patch notes
|
|
2
2
|
|
|
3
|
-
Current vue3-extended-multiselect version: **0.0.
|
|
3
|
+
Current vue3-extended-multiselect version: **0.0.2**
|
|
4
4
|
|
|
5
5
|
***
|
|
6
6
|
|
|
7
7
|
####0.0.1
|
|
8
8
|
|
|
9
|
-
Component `vue3-extended-multiselect` was released.
|
|
9
|
+
Component `vue3-extended-multiselect` was released.
|
|
10
|
+
|
|
11
|
+
####0.0.2
|
|
12
|
+
|
|
13
|
+
Small fixes in documentation.
|
|
14
|
+
|
|
15
|
+
####0.0.3
|
|
16
|
+
|
|
17
|
+
Changing font-size property of "props" table in documentation.
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# vue-extended-multiselect
|
|
1
|
+
# vue-extended-multiselect v0.0.3
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
5
5
|
### Brief annotation
|
|
6
6
|
|
|
7
|
-
Vue extended multiselect is a component that was created for simplification of custom settings of built-in select element. This component allows developer to escape writing many excess css-rules by using built-in themes and to escape problems with different kinds of provided options. Various decoration of options list by some extra slots will help developer to make it more informative and obvious. More thorough filtering of raw options list given by developer excludes sudden errors if kind of option is not intended for extended multiselect. Switchable useful warnings will help to catch possible errors that may occur while working with options. Tools for working with selected options will allow user to control amount of displayed options and quickly deselect them. Such tools also can be customized by developer. Various slots can help developer to customize to his liking options list, elements with selected options in multiple select or some other interaction elements. You can use this component in your web-applications based on Vue
|
|
7
|
+
Vue extended multiselect is a component that was created for simplification of custom settings of built-in select element. This component allows developer to escape writing many excess css-rules by using built-in themes and to escape problems with different kinds of provided options. Various decoration of options list by some extra slots will help developer to make it more informative and obvious. More thorough filtering of raw options list given by developer excludes sudden errors if kind of option is not intended for extended multiselect. Switchable useful warnings will help to catch possible errors that may occur while working with options. Tools for working with selected options will allow user to control amount of displayed options and quickly deselect them. Such tools also can be customized by developer. Various slots can help developer to customize to his liking options list, elements with selected options in multiple select or some other interaction elements. You can use this component in your web-applications based on Vue 3 framework, but soon will be added supporting of next Vue versions.
|
|
8
8
|
|
|
9
9
|
### Installation with npm
|
|
10
10
|
|
|
@@ -16,447 +16,449 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
16
16
|
|
|
17
17
|
### Importing
|
|
18
18
|
|
|
19
|
-
<span
|
|
19
|
+
<span style="color:#6E5494">import </span><span style="color:#333">Vue3ExtendedMultiselect </span><span style="color:#6E5494">from </span><span style="color:#6CC644">"vue3-extended-multiselect"</span>
|
|
20
20
|
|
|
21
21
|
### Importing types
|
|
22
22
|
|
|
23
|
-
<span
|
|
23
|
+
<span style="color:#6E5494">import </span><span style="color:#333">{ </span><span style="color:#333">UnionOptionType </span></span><span style="color:#333">} </span><span style="color:#6E5494">from </span><span style="color:#6CC644">"vue3-extended-multiselect"</span>
|
|
24
24
|
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
<
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
<
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
<
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
<
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
<
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
<
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
<
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
<
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
<
|
|
198
|
-
<
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
<
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
<
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
<
|
|
225
|
-
<
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
<
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
<
|
|
238
|
-
<
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
<
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
<
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
<
|
|
258
|
-
<
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
<
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
<
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
<
|
|
281
|
-
<
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
<
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
<
|
|
296
|
-
<
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
<
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
<
|
|
309
|
-
<
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
<
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
<
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
<
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
<
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
<
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
<
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
<
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
<
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
<
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
<
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
<
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
<
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
<
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
<
|
|
417
|
-
<
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
<
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
<
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
<
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
<
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
<
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
</
|
|
25
|
+
<font size="1">
|
|
26
|
+
<table>
|
|
27
|
+
<thead>
|
|
28
|
+
<h3>Props list</h3>
|
|
29
|
+
</thead>
|
|
30
|
+
<tbody>
|
|
31
|
+
<tr>
|
|
32
|
+
<th>Prop name</th>
|
|
33
|
+
<th>Prop type</th>
|
|
34
|
+
<th>Prop appointment</th>
|
|
35
|
+
<th>Prop default value</th>
|
|
36
|
+
<th>Prop values</th>
|
|
37
|
+
</tr>
|
|
38
|
+
<tr>
|
|
39
|
+
<th>autoSelectCreatedOption</th>
|
|
40
|
+
<td>Boolean</td>
|
|
41
|
+
<td>Determines whether to select just now created option automatically.</td>
|
|
42
|
+
<td>false</td>
|
|
43
|
+
<td>—</td>
|
|
44
|
+
</tr>
|
|
45
|
+
<tr>
|
|
46
|
+
<th>clearBySelectWhenMultiple</th>
|
|
47
|
+
<td>Boolean</td>
|
|
48
|
+
<td>Determines whether to clear search field by option selection.</td>
|
|
49
|
+
<td>false</td>
|
|
50
|
+
<td>—</td>
|
|
51
|
+
</tr>
|
|
52
|
+
<tr>
|
|
53
|
+
<th>createOnTheGo</th>
|
|
54
|
+
<td>Boolean</td>
|
|
55
|
+
<td>Allows user to create new options from search field.</td>
|
|
56
|
+
<td>false</td>
|
|
57
|
+
<td>—</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<th>defaultExpanded</th>
|
|
61
|
+
<td>Boolean</td>
|
|
62
|
+
<td>Determines whether options list should be expanded by default.</td>
|
|
63
|
+
<td>false</td>
|
|
64
|
+
<td>—</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<th>disabled</th>
|
|
68
|
+
<td>Boolean</td>
|
|
69
|
+
<td>Disables extended multiselect.</td>
|
|
70
|
+
<td>false</td>
|
|
71
|
+
<td>—</td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<th>highlightOptions</th>
|
|
75
|
+
<td>Boolean</td>
|
|
76
|
+
<td>Switches options highlighting while hovering.</td>
|
|
77
|
+
<td>true</td>
|
|
78
|
+
<td>—</td>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr>
|
|
81
|
+
<th>loading</th>
|
|
82
|
+
<td>Boolean</td>
|
|
83
|
+
<td>Switches loading state of extended multiselect.</td>
|
|
84
|
+
<td>false</td>
|
|
85
|
+
<td>—</td>
|
|
86
|
+
</tr>
|
|
87
|
+
<tr>
|
|
88
|
+
<th>multiple</th>
|
|
89
|
+
<td>Boolean</td>
|
|
90
|
+
<td>Allows user to select multiple options.</td>
|
|
91
|
+
<td>false</td>
|
|
92
|
+
<td>—</td>
|
|
93
|
+
</tr>
|
|
94
|
+
<tr>
|
|
95
|
+
<th>noResultsBlockShown</th>
|
|
96
|
+
<td>Boolean</td>
|
|
97
|
+
<td>Determines whether to show special hint if no options were found.</td>
|
|
98
|
+
<td>true</td>
|
|
99
|
+
<td>—</td>
|
|
100
|
+
</tr>
|
|
101
|
+
<tr>
|
|
102
|
+
<th>resetSearchByValue</th>
|
|
103
|
+
<td>Boolean</td>
|
|
104
|
+
<td>Determines whether to clear search field by selection/deselection of options.</td>
|
|
105
|
+
<td>true</td>
|
|
106
|
+
<td>—</td>
|
|
107
|
+
</tr>
|
|
108
|
+
<tr>
|
|
109
|
+
<th>searchFilterActive</th>
|
|
110
|
+
<td>Boolean</td>
|
|
111
|
+
<td>Allows user to use internal search for options.</td>
|
|
112
|
+
<td>true</td>
|
|
113
|
+
<td>—</td>
|
|
114
|
+
</tr>
|
|
115
|
+
<tr>
|
|
116
|
+
<th>simpleEvents</th>
|
|
117
|
+
<td>Boolean</td>
|
|
118
|
+
<td>Switches full payload of extended multiselect events.</td>
|
|
119
|
+
<td>true</td>
|
|
120
|
+
<td>—</td>
|
|
121
|
+
</tr>
|
|
122
|
+
<tr>
|
|
123
|
+
<th>selectedOptionsShown</th>
|
|
124
|
+
<td>Boolean</td>
|
|
125
|
+
<td>Determines whether to show selected options in options list.</td>
|
|
126
|
+
<td>false</td>
|
|
127
|
+
<td>—</td>
|
|
128
|
+
</tr>
|
|
129
|
+
<tr>
|
|
130
|
+
<th>showClearIcon</th>
|
|
131
|
+
<td>Boolean</td>
|
|
132
|
+
<td>Allows user to deselect all options by special icon.</td>
|
|
133
|
+
<td>false</td>
|
|
134
|
+
<td>—</td>
|
|
135
|
+
</tr>
|
|
136
|
+
<tr>
|
|
137
|
+
<th>showInsertWarnings</th>
|
|
138
|
+
<td>Boolean</td>
|
|
139
|
+
<td>Determines whether to show useful internal warnings in console.</td>
|
|
140
|
+
<td>false</td>
|
|
141
|
+
<td>—</td>
|
|
142
|
+
</tr>
|
|
143
|
+
<tr>
|
|
144
|
+
<th>showMarker</th>
|
|
145
|
+
<td>Boolean</td>
|
|
146
|
+
<td>Determines whether to show slot with special marker beside option in options list.</td>
|
|
147
|
+
<td>false</td>
|
|
148
|
+
<td>—</td>
|
|
149
|
+
</tr>
|
|
150
|
+
<tr>
|
|
151
|
+
<th>showSearchField</th>
|
|
152
|
+
<td>Boolean</td>
|
|
153
|
+
<td>Determines whether to show search field which allows user to search for options with internal search.</td>
|
|
154
|
+
<td>true</td>
|
|
155
|
+
<td>—</td>
|
|
156
|
+
</tr>
|
|
157
|
+
<tr>
|
|
158
|
+
<th>toggleMultipleBlocksLimit</th>
|
|
159
|
+
<td>Boolean</td>
|
|
160
|
+
<td>Allows user to increase limit of shown elements with selected options by special icon.</td>
|
|
161
|
+
<td>false</td>
|
|
162
|
+
<td>—</td>
|
|
163
|
+
</tr>
|
|
164
|
+
<tr>
|
|
165
|
+
<th>toggleOptionsBySelect</th>
|
|
166
|
+
<td>Boolean</td>
|
|
167
|
+
<td>Determines whether to roll up options list by selection of option.</td>
|
|
168
|
+
<td>true</td>
|
|
169
|
+
<td>—</td>
|
|
170
|
+
</tr>
|
|
171
|
+
<tr>
|
|
172
|
+
<th>togglingSavesSearchValue</th>
|
|
173
|
+
<td>Boolean</td>
|
|
174
|
+
<td>Determines whether to save current search value if display of options list was toggled.</td>
|
|
175
|
+
<td>true</td>
|
|
176
|
+
<td>—</td>
|
|
177
|
+
</tr>
|
|
178
|
+
<tr>
|
|
179
|
+
<th>wrongCurrentValue</th>
|
|
180
|
+
<td>Boolean</td>
|
|
181
|
+
<td>Determines whether to define special class for extended multiselect if value is wrong or if irregularity of value is defined by user.</td>
|
|
182
|
+
<td>false</td>
|
|
183
|
+
<td>—</td>
|
|
184
|
+
</tr>
|
|
185
|
+
<tr>
|
|
186
|
+
<th>createOptionPlaceholder</th>
|
|
187
|
+
<td>String</td>
|
|
188
|
+
<td>Placeholder for the search field to be used if user is allowed to create new options.</td>
|
|
189
|
+
<td>"Select or create features"</td>
|
|
190
|
+
<td>—</td>
|
|
191
|
+
</tr>
|
|
192
|
+
<tr>
|
|
193
|
+
<th>createOptionPlaceholder</th>
|
|
194
|
+
<td>String</td>
|
|
195
|
+
<td>Defines kind for all options which will be created by user.</td>
|
|
196
|
+
<td>"primitive"</td>
|
|
197
|
+
<td>
|
|
198
|
+
<ul type="square">
|
|
199
|
+
<li>"primitive"</li>
|
|
200
|
+
<li>"array"</li>
|
|
201
|
+
<li>"object"</li>
|
|
202
|
+
</ul>
|
|
203
|
+
</td>
|
|
204
|
+
</tr>
|
|
205
|
+
<tr>
|
|
206
|
+
<th>emptyObjectsPlaceholder</th>
|
|
207
|
+
<td>String</td>
|
|
208
|
+
<td>Placeholder for options of type "object" or Array instances which length/keys length equals 0.</td>
|
|
209
|
+
<td>"Empty Object/Array"</td>
|
|
210
|
+
<td>—</td>
|
|
211
|
+
</tr>
|
|
212
|
+
<tr>
|
|
213
|
+
<th>errorBorderColor</th>
|
|
214
|
+
<td>String</td>
|
|
215
|
+
<td>Defines "border-color" css-property for extended multiselect with wrong value.</td>
|
|
216
|
+
<td>"#FF0000"</td>
|
|
217
|
+
<td>—</td>
|
|
218
|
+
</tr>
|
|
219
|
+
<tr>
|
|
220
|
+
<th>iconFilter</th>
|
|
221
|
+
<td>String</td>
|
|
222
|
+
<td>Defines svg-filter with color settings for all icons except loader.</td>
|
|
223
|
+
<td>"basic"</td>
|
|
224
|
+
<td>
|
|
225
|
+
<ul type="square">
|
|
226
|
+
<li>"basic"</li>
|
|
227
|
+
<li>"black"</li>
|
|
228
|
+
<li>"green"</li>
|
|
229
|
+
</ul>
|
|
230
|
+
</td>
|
|
231
|
+
</tr>
|
|
232
|
+
<tr>
|
|
233
|
+
<th>iconSize</th>
|
|
234
|
+
<td>String</td>
|
|
235
|
+
<td>Defines sizes for all icons in pixels except loader.</td>
|
|
236
|
+
<td>"large"</td>
|
|
237
|
+
<td>
|
|
238
|
+
<ul type="square">
|
|
239
|
+
<li>"large"</li>
|
|
240
|
+
<li>"medium"</li>
|
|
241
|
+
<li>"small"</li>
|
|
242
|
+
</ul>
|
|
243
|
+
</td>
|
|
244
|
+
</tr>
|
|
245
|
+
<tr>
|
|
246
|
+
<th>label</th>
|
|
247
|
+
<td>String</td>
|
|
248
|
+
<td>Defines field in options of type "object" that will be the label of option.</td>
|
|
249
|
+
<td>"label"</td>
|
|
250
|
+
<td>—</td>
|
|
251
|
+
</tr>
|
|
252
|
+
<tr>
|
|
253
|
+
<th>loaderIconFilter</th>
|
|
254
|
+
<td>String</td>
|
|
255
|
+
<td>Defines svg-filter with color settings for loader icon.</td>
|
|
256
|
+
<td>"loader-default"</td>
|
|
257
|
+
<td>
|
|
258
|
+
<ul type="square">
|
|
259
|
+
<li>"loader-default"</li>
|
|
260
|
+
<li>"basic"</li>
|
|
261
|
+
<li>"slate-grey"</li>
|
|
262
|
+
<li>"slate-blue"</li>
|
|
263
|
+
<li>"teal"</li>
|
|
264
|
+
<li>"strict"</li>
|
|
265
|
+
</ul>
|
|
266
|
+
</td>
|
|
267
|
+
</tr>
|
|
268
|
+
<tr>
|
|
269
|
+
<th>placeholder</th>
|
|
270
|
+
<td>String</td>
|
|
271
|
+
<td>Placeholder for search field to be used if user is not allowed to create new options.</td>
|
|
272
|
+
<td>"Select features"</td>
|
|
273
|
+
<td>—</td>
|
|
274
|
+
</tr>
|
|
275
|
+
<tr>
|
|
276
|
+
<th>themeType</th>
|
|
277
|
+
<td>String</td>
|
|
278
|
+
<td>Defines overall color theme for extended multiselect.</td>
|
|
279
|
+
<td>"basic"</td>
|
|
280
|
+
<td>
|
|
281
|
+
<ul type="square">
|
|
282
|
+
<li>"basic"</li>
|
|
283
|
+
<li>"slate-grey"</li>
|
|
284
|
+
<li>"slate-blue"</li>
|
|
285
|
+
<li>"teal"</li>
|
|
286
|
+
<li>"strict"</li>
|
|
287
|
+
</ul>
|
|
288
|
+
</td>
|
|
289
|
+
</tr>
|
|
290
|
+
<tr>
|
|
291
|
+
<th>toggleAppearanceSide</th>
|
|
292
|
+
<td>String</td>
|
|
293
|
+
<td>Defines which side options list will be displayed on.</td>
|
|
294
|
+
<td>"auto"</td>
|
|
295
|
+
<td>
|
|
296
|
+
<ul type="square">
|
|
297
|
+
<li>"auto"</li>
|
|
298
|
+
<li>"atop"</li>
|
|
299
|
+
<li>"under"</li>
|
|
300
|
+
</ul>
|
|
301
|
+
</td>
|
|
302
|
+
</tr>
|
|
303
|
+
<tr>
|
|
304
|
+
<th>toggleIcon</th>
|
|
305
|
+
<td>String</td>
|
|
306
|
+
<td>Defines kind of toggle icon from icons collection.</td>
|
|
307
|
+
<td>"double-arrow"</td>
|
|
308
|
+
<td>
|
|
309
|
+
<ul type="square">
|
|
310
|
+
<li>"base-arrow"</li>
|
|
311
|
+
<li>"double-arrow"</li>
|
|
312
|
+
<li>"wide-arrow"</li>
|
|
313
|
+
<li>"circle-arrow"</li>
|
|
314
|
+
<li>"inner-arrow"</li>
|
|
315
|
+
<li>"triangle-arrow"</li>
|
|
316
|
+
<li>"triangle-circle-arrow"</li>
|
|
317
|
+
</ul>
|
|
318
|
+
</td>
|
|
319
|
+
</tr>
|
|
320
|
+
<tr>
|
|
321
|
+
<th>anyOptionWrapperBlockHeight</th>
|
|
322
|
+
<td>Number</td>
|
|
323
|
+
<td>Defines "height" css-property for each option in options list.</td>
|
|
324
|
+
<td>30</td>
|
|
325
|
+
<td>—</td>
|
|
326
|
+
</tr>
|
|
327
|
+
<tr>
|
|
328
|
+
<th>increaseDisplayBy</th>
|
|
329
|
+
<td>Number</td>
|
|
330
|
+
<td>Defines gap which increases limit of displayed elements with selected options.</td>
|
|
331
|
+
<td>5</td>
|
|
332
|
+
<td>—</td>
|
|
333
|
+
</tr>
|
|
334
|
+
<tr>
|
|
335
|
+
<th>maxOptionsCount</th>
|
|
336
|
+
<td>Number</td>
|
|
337
|
+
<td>Maximal limit of selected options.</td>
|
|
338
|
+
<td>null</td>
|
|
339
|
+
<td>—</td>
|
|
340
|
+
</tr>
|
|
341
|
+
<tr>
|
|
342
|
+
<th>minOptionsCount</th>
|
|
343
|
+
<td>Number</td>
|
|
344
|
+
<td>Minimal limit of selected options.</td>
|
|
345
|
+
<td>null</td>
|
|
346
|
+
<td>—</td>
|
|
347
|
+
</tr>
|
|
348
|
+
<tr>
|
|
349
|
+
<th>multipleBlocksLimit</th>
|
|
350
|
+
<td>Number</td>
|
|
351
|
+
<td>Defines limit of displayed elements with selected options.</td>
|
|
352
|
+
<td>null</td>
|
|
353
|
+
<td>—</td>
|
|
354
|
+
</tr>
|
|
355
|
+
<tr>
|
|
356
|
+
<th>optionsCountRestriction</th>
|
|
357
|
+
<td>Number</td>
|
|
358
|
+
<td>Defines maximal limit of options list length.</td>
|
|
359
|
+
<td>null</td>
|
|
360
|
+
<td>—</td>
|
|
361
|
+
</tr>
|
|
362
|
+
<tr>
|
|
363
|
+
<th>toggleMaxHeight</th>
|
|
364
|
+
<td>Number</td>
|
|
365
|
+
<td>Defines maximal value in pixels of "max-height" css-property for options list.</td>
|
|
366
|
+
<td>400</td>
|
|
367
|
+
<td>—</td>
|
|
368
|
+
</tr>
|
|
369
|
+
<tr>
|
|
370
|
+
<th>toggleMinHeight</th>
|
|
371
|
+
<td>Number</td>
|
|
372
|
+
<td>Defines minimal value in pixels of "max-height" css-property for options list.</td>
|
|
373
|
+
<td>null</td>
|
|
374
|
+
<td>—</td>
|
|
375
|
+
</tr>
|
|
376
|
+
<tr>
|
|
377
|
+
<th>createOptionFields</th>
|
|
378
|
+
<td>Array</td>
|
|
379
|
+
<td>Defines a list of fields for options of type "object" created by user.</td>
|
|
380
|
+
<td>["label"]</td>
|
|
381
|
+
<td>—</td>
|
|
382
|
+
</tr>
|
|
383
|
+
<tr>
|
|
384
|
+
<th>disabledPrimitiveOptions</th>
|
|
385
|
+
<td>Array</td>
|
|
386
|
+
<td>Defines a list of primitive types for options. Options of given types will be disabled for selection.</td>
|
|
387
|
+
<td>[]</td>
|
|
388
|
+
<td>—</td>
|
|
389
|
+
</tr>
|
|
390
|
+
<tr>
|
|
391
|
+
<th>options</th>
|
|
392
|
+
<td>Array</td>
|
|
393
|
+
<td>Raw options list.</td>
|
|
394
|
+
<td>[]</td>
|
|
395
|
+
<td>—</td>
|
|
396
|
+
</tr>
|
|
397
|
+
<tr>
|
|
398
|
+
<th>optionsPadding</th>
|
|
399
|
+
<td>Array</td>
|
|
400
|
+
<td>Defines a list with "padding-top", "padding-left", "padding-bottom" and "padding-right" css-properties for options in options list. Property "padding-top" matches index zero. Property "padding-right" matches index three.</td>
|
|
401
|
+
<td>[]</td>
|
|
402
|
+
<td>—</td>
|
|
403
|
+
</tr>
|
|
404
|
+
<tr>
|
|
405
|
+
<th>preselectedOptions</th>
|
|
406
|
+
<td>Array</td>
|
|
407
|
+
<td>Defines a list of options that will be select by default.</td>
|
|
408
|
+
<td>[]</td>
|
|
409
|
+
<td>—</td>
|
|
410
|
+
</tr>
|
|
411
|
+
<tr>
|
|
412
|
+
<th>specialKeysBlock</th>
|
|
413
|
+
<td>Array</td>
|
|
414
|
+
<td>Defines a list of keys which in combination with mouse buttons or "enter" key will prevent selection of option.</td>
|
|
415
|
+
<td>[]</td>
|
|
416
|
+
<td>
|
|
417
|
+
<ul type="square">
|
|
418
|
+
<li>"alt"</li>
|
|
419
|
+
<li>"ctrl"</li>
|
|
420
|
+
<li>"shift"</li>
|
|
421
|
+
</ul>
|
|
422
|
+
</td>
|
|
423
|
+
</tr>
|
|
424
|
+
<tr>
|
|
425
|
+
<th>createCustomOptionLabel</th>
|
|
426
|
+
<td>Function</td>
|
|
427
|
+
<td>Defines function that creates custom label for each option.</td>
|
|
428
|
+
<td>(option) => null</td>
|
|
429
|
+
<td>—</td>
|
|
430
|
+
</tr>
|
|
431
|
+
<tr>
|
|
432
|
+
<th>multipleBlocksLimitMessage</th>
|
|
433
|
+
<td>Function</td>
|
|
434
|
+
<td>Defines function that creates notification when maximal limit of selected options has been reached.</td>
|
|
435
|
+
<td>(number) => `and ${number} more items`</td>
|
|
436
|
+
<td>—</td>
|
|
437
|
+
</tr>
|
|
438
|
+
<tr>
|
|
439
|
+
<th>inputId</th>
|
|
440
|
+
<td>String, Number</td>
|
|
441
|
+
<td>"id" attribute of search field.</td>
|
|
442
|
+
<td>null</td>
|
|
443
|
+
<td>—</td>
|
|
444
|
+
</tr>
|
|
445
|
+
<tr>
|
|
446
|
+
<th>preselectedOption</th>
|
|
447
|
+
<td>UnionPropType (from types)</td>
|
|
448
|
+
<td>Defines options that will be select by default.</td>
|
|
449
|
+
<td>null</td>
|
|
450
|
+
<td>—</td>
|
|
451
|
+
</tr>
|
|
452
|
+
<tr>
|
|
453
|
+
<th>value</th>
|
|
454
|
+
<td>Array</td>
|
|
455
|
+
<td>Defines value of extended multiselect that can be used in "v-model".</td>
|
|
456
|
+
<td>[]</td>
|
|
457
|
+
<td>—</td>
|
|
458
|
+
</tr>
|
|
459
|
+
</tbody>
|
|
460
|
+
</table>
|
|
461
|
+
</font>
|
|
460
462
|
|
|
461
463
|
<table>
|
|
462
464
|
<thead>
|
|
@@ -471,7 +473,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
471
473
|
<tr>
|
|
472
474
|
<th>option</th>
|
|
473
475
|
<td>Option in options list with its label.</td>
|
|
474
|
-
<td
|
|
476
|
+
<td>
|
|
475
477
|
<ul type="square">
|
|
476
478
|
<li>option — option from options list</li>
|
|
477
479
|
<li>createCustomOptionLabel — function that creates custom label for each option</li>
|
|
@@ -481,7 +483,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
481
483
|
<tr>
|
|
482
484
|
<th>optionBlock</th>
|
|
483
485
|
<td>Element with selected option and its label.</td>
|
|
484
|
-
<td
|
|
486
|
+
<td>
|
|
485
487
|
<ul type="square">
|
|
486
488
|
<li>label — option label</li>
|
|
487
489
|
<li>deselectBlock — function that deselects option and removes element that contained it</li>
|
|
@@ -502,7 +504,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
502
504
|
<tr>
|
|
503
505
|
<th>showMore</th>
|
|
504
506
|
<td>Button that increases limit of displayed elements with selected options.</td>
|
|
505
|
-
<td
|
|
507
|
+
<td>
|
|
506
508
|
<ul type="square">
|
|
507
509
|
<li>showMoreOptions — function that increases limit of displayed elements with selected options</li>
|
|
508
510
|
</ul>
|
|
@@ -531,7 +533,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
531
533
|
<tr>
|
|
532
534
|
<th>toggle</th>
|
|
533
535
|
<td>Button that toggles options list display.</td>
|
|
534
|
-
<td
|
|
536
|
+
<td>
|
|
535
537
|
<ul type="square">
|
|
536
538
|
<li>toggleOptionsList — function that toggles options list display</li>
|
|
537
539
|
</ul>
|
|
@@ -540,7 +542,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
540
542
|
<tr>
|
|
541
543
|
<th>labelBlock</th>
|
|
542
544
|
<td>Element with single selected option that is shown if search field display is disabled.</td>
|
|
543
|
-
<td
|
|
545
|
+
<td>
|
|
544
546
|
<ul type="square">
|
|
545
547
|
<li>labelBlockValue — option label</li>
|
|
546
548
|
</ul>
|
|
@@ -559,7 +561,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
559
561
|
<tr>
|
|
560
562
|
<th>cancel</th>
|
|
561
563
|
<td>Button that deselects all options.</td>
|
|
562
|
-
<td
|
|
564
|
+
<td>
|
|
563
565
|
<ul type="square">
|
|
564
566
|
<li>cancel — function that deselects all options</li>
|
|
565
567
|
</ul>
|
|
@@ -586,7 +588,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
586
588
|
<td>@pattern-changed</td>
|
|
587
589
|
<td><b>value</b> — pattern of inner search for available options</td>
|
|
588
590
|
<td>
|
|
589
|
-
<ul type="square"
|
|
591
|
+
<ul type="square">
|
|
590
592
|
<li>value — pattern of inner search for available options</li>
|
|
591
593
|
<li>inputId — id of search field set by "id" prop</li>
|
|
592
594
|
</ul>
|
|
@@ -598,7 +600,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
598
600
|
<td>@select</td>
|
|
599
601
|
<td><b>option</b> — just now selected option</td>
|
|
600
602
|
<td>
|
|
601
|
-
<ul type="square"
|
|
603
|
+
<ul type="square">
|
|
602
604
|
<li>option — just now selected option</li>
|
|
603
605
|
<li>inputId — id of search field set by "id" prop</li>
|
|
604
606
|
</ul>
|
|
@@ -611,7 +613,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
611
613
|
<td><b>option/options</b> — just now deselected option or array with just now deselected options
|
|
612
614
|
</td>
|
|
613
615
|
<td>
|
|
614
|
-
<ul type="square"
|
|
616
|
+
<ul type="square">
|
|
615
617
|
<li>option/options — just now deselected option or array with just now deselected options</li>
|
|
616
618
|
<li>inputId — id of search field set by "id" prop</li>
|
|
617
619
|
</ul>
|
|
@@ -623,7 +625,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
623
625
|
<td>@option-created</td>
|
|
624
626
|
<td><b>option</b> — option created by user</td>
|
|
625
627
|
<td>
|
|
626
|
-
<ul type="square"
|
|
628
|
+
<ul type="square">
|
|
627
629
|
<li>option/options — option created by user</li>
|
|
628
630
|
<li>inputId — id of search field set by "id" prop</li>
|
|
629
631
|
</ul>
|
|
@@ -635,7 +637,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
635
637
|
<td>@active</td>
|
|
636
638
|
<td>—</td>
|
|
637
639
|
<td>
|
|
638
|
-
<ul type="square"
|
|
640
|
+
<ul type="square">
|
|
639
641
|
<li>inputId — id of search field set by "id" prop</li>
|
|
640
642
|
</ul>
|
|
641
643
|
</td>
|
|
@@ -646,7 +648,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
646
648
|
<td>@close</td>
|
|
647
649
|
<td><b>options</b> — array of selected options</td>
|
|
648
650
|
<td>
|
|
649
|
-
<ul type="square"
|
|
651
|
+
<ul type="square">
|
|
650
652
|
<li>options — array of selected options</li>
|
|
651
653
|
<li>inputId — id of search field set by "id" prop</li>
|
|
652
654
|
</ul>
|
|
@@ -658,7 +660,7 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
658
660
|
<td>@increase</td>
|
|
659
661
|
<td><b>limit</b> — current limit of options to be shown next</td>
|
|
660
662
|
<td>
|
|
661
|
-
<ul type="square"
|
|
663
|
+
<ul type="square">
|
|
662
664
|
<li>limit — current limit of options to be shown next</li>
|
|
663
665
|
<li>inputId — id of search field set by "id" prop</li>
|
|
664
666
|
</ul>
|
|
@@ -666,31 +668,3 @@ Vue extended multiselect is a component that was created for simplification of c
|
|
|
666
668
|
</tr>
|
|
667
669
|
</tbody>
|
|
668
670
|
</table>
|
|
669
|
-
|
|
670
|
-
<style type="text/css">
|
|
671
|
-
|
|
672
|
-
td, th {
|
|
673
|
-
text-align: center;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
.list-cell {
|
|
677
|
-
text-align: left;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
.purple {
|
|
681
|
-
color: #8D0A97;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
.green {
|
|
685
|
-
color: #82C52A;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
.dark {
|
|
689
|
-
color: #211F23;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.grey {
|
|
693
|
-
color: #A7A7A7;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue3-extended-multiselect",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Extended multiselect component for applications based on Vue 3 framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"multiselect",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"typings": "typings/vue3-extended-multiselect.d.ts",
|
|
13
13
|
"author": "Ridiger Daniil Dmitrievich <extendedmultiselect@yandex.ru>",
|
|
14
|
+
"license": "MIT",
|
|
14
15
|
"scripts": {
|
|
15
16
|
"start": "vue-cli-service serve",
|
|
16
17
|
"build": "vue-cli-service build",
|
|
@@ -22,7 +23,8 @@
|
|
|
22
23
|
"core-js": "^3.6.5",
|
|
23
24
|
"lodash.debounce": "^4.0.8",
|
|
24
25
|
"tiny-emitter": "^2.1.0",
|
|
25
|
-
"vue": "^3.0.0"
|
|
26
|
+
"vue": "^3.0.0",
|
|
27
|
+
"vue3-extended-multiselect": "^0.0.1"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
28
30
|
"@testing-library/vue": "^6.6.1",
|