vue3-extended-multiselect 0.0.3 → 0.0.4

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 CHANGED
@@ -14,4 +14,8 @@ Small fixes in documentation.
14
14
 
15
15
  ####0.0.3
16
16
 
17
- Changing font-size property of "props" table in documentation.
17
+ Changing font-size property of "props" table in documentation.
18
+
19
+ ####0.0.4
20
+
21
+ Correction of cancel button highlighting while loading.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022-present, Ridiger Daniil Dmitrievich<extendedmultiselect@yandex.ru>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # vue-extended-multiselect v0.0.3
1
+ # vue3-extended-multiselect v0.0.4
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 3 framework, but soon will be added supporting of next Vue versions.
7
+ Vue3 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,454 +16,74 @@ Vue extended multiselect is a component that was created for simplification of c
16
16
 
17
17
  ### Importing
18
18
 
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>
19
+ ```js
20
+ import Vue3ExtendedMultiselect from "vue3-extended-multiselect"
21
+ ```
20
22
 
21
23
  ### Importing types
22
24
 
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>
25
+ ```js
26
+ import { UnionOptionType } from "vue3-extended-multiselect"
27
+ ```
24
28
 
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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</td>
389
- </tr>
390
- <tr>
391
- <th>options</th>
392
- <td>Array</td>
393
- <td>Raw options list.</td>
394
- <td>[]</td>
395
- <td>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</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>&mdash;</td>
458
- </tr>
459
- </tbody>
460
- </table>
461
- </font>
29
+ ##Props list
30
+ Prop name | Prop type | Prop appointment | Prop default value | Prop values
31
+ ----------|-----------|------------------|--------------------|------------
32
+ **autoSelect<br/>CreatedOption**|Boolean|Determines whether to select just now created option automatically.|false|&mdash;|
33
+ **clearBySelect<br/>WhenMultiple**|Boolean|Determines whether to clear search field by option selection.|false|&mdash;|
34
+ **createOnThe<br/>Go**|Boolean|Allows user to create new options from search field.|false|&mdash;|
35
+ **default<br/>Expanded**|Boolean|Determines whether options list should be expanded by default.|false|&mdash;|
36
+ **disabled**|Boolean|Disables extended multiselect.|false|&mdash;|
37
+ **highlight<br/>Options**|Boolean|Switches options highlighting while hovering.|true|&mdash;|
38
+ **loading**|Boolean|Switches loading state of extended multiselect.|false|&mdash;|
39
+ **multiple**|Boolean|Allows user to select multiple options.|false|&mdash;|
40
+ **noResults<br/>BlockShown**|Boolean|Determines whether to show special hint if no options were found.|true|&mdash;|
41
+ **resetSearch<br/>ByValue**|Boolean|Determines whether to clear search field by selection/deselection of options.|true|&mdash;|
42
+ **searchFilter<br/>Active**|Boolean|Allows user to use internal search for options.|true|&mdash;|
43
+ **simpleEvents**|Boolean|Switches full payload of extended multiselect events.|true|&mdash;|
44
+ **selected<br/>Options<br/>Shown**|Boolean|Determines whether to show selected options in options list.|false|&mdash;|
45
+ **showClearIcon**|Boolean|Allows user to deselect all options by special icon.|false|&mdash;|
46
+ **showInsert<br/>Warnings**|Boolean|Determines whether to show useful internal warnings in console.|false|&mdash;|
47
+ **showMarker**|Boolean|Determines whether to show slot with special marker beside option in options list.|false|&mdash;|
48
+ **showSearch<br/>Field**|Boolean|Determines whether to show search field which allows user to search for options with internal search.|true|&mdash;|
49
+ **toggleMultiple<br/>BlocksLimit**|Boolean|Allows user to increase limit of shown elements with selected options by special icon.|false|&mdash;|
50
+ **toggleOptions<br/>BySelect**|Boolean|Determines whether to roll up options list by selection of option.|true|&mdash;|
51
+ **togglingSaves<br/>SearchValue**|Boolean|Determines whether to save current search value if display of options list was toggled.|true|&mdash;|
52
+ **wrongCurrent<br/>Value**|Boolean|Determines whether to define special class for extended multiselect if value is wrong or if irregularity of value is defined by user.|false|&mdash;|
53
+ **createOption<br/>Placeholder**|String|Placeholder for the search field to be used if user is allowed to create new options.|"Select or create features"|&mdash;|
54
+ **createOption<br/>Type**|String|Defines kind for all options which will be created by user.|"primitive"| "primitive", "array", "object"|
55
+ **emptyObjects<br/>Placeholder**|String|Placeholder for options of type "object" or Array instances which length/keys length equals 0.|"Empty Object/<br/>Array"|&mdash;|
56
+ **errorBorder<br/>Color**|String|Defines "border-color" css-property for extended multiselect with wrong value.|"#FF0000"|&mdash;|
57
+ **iconFilter**|String|Defines svg-filter with color settings for all icons except loader.|"basic"|"basic", "black", "green"|
58
+ **iconSize**|String|Defines sizes for all icons in pixels except loader.|"large"|"large", "medium", "small"|
59
+ **label**|String|Defines field in options of type "object" that will be the label of option.|"label"|&mdash;|
60
+ **loaderIcon<br/>Filter**|String|Defines svg-filter with color settings for loader icon.|"loader-default"|"loader-default", "basic", "slate-grey", "slate-blue", "teal",<br/> "strict"|
61
+ **placeholder**|String|Placeholder for search field to be used if user is not allowed to create new options.|"Select features"|&mdash;|
62
+ **themeType**|String|Defines overall color theme for extended multiselect.|"basic"|"basic", "slate-grey", "slate-blue", "teal",<br/> "strict"|
63
+ **toggle<br/>Appearance<br/>Side**|String|Defines which side options list will be displayed on.|"auto"|"auto", "atop", "under"|
64
+ **toggleIcon**|String|Defines kind of toggle icon from icons collection.|"double-arrow"|"base-arrow", "double-arrow", "wide-arrow", "circle-arrow", "inner-arrow", "triangle-arrow", "triangle-circle-arrow"|
65
+ **anyOption<br/>Wrapper<br/>BlockHeight**|Number|Defines "height" css-property for each option in options list.|30|&mdash;|
66
+ **increase<br/>Display<br/>By**|Number|Defines gap which increases limit of displayed elements with selected options.|5|&mdash;|
67
+ **maxOptions<br/>Count**|Number|Maximal limit of selected options.|null|&mdash;|
68
+ **minOptions<br/>Count**|Number|Minimal limit of selected options.|null|&mdash;|
69
+ **multipleBlocks<br/>Limit**|Number|Defines limit of displayed elements with selected options.|null|&mdash;|
70
+ **optionsCount<br/>Restriction**|Number|Defines maximal limit of options list length.|null|&mdash;|
71
+ **toggleMax<br/>Height**|Number|Defines maximal value in pixels of "max-height" css-property for options list.|400|&mdash;|
72
+ **toggleMin<br/>Height**|Number|Defines minimal value in pixels of "max-height" css-property for options list.|null|&mdash;|
73
+ **createOption<br/>Fields**|Array|Defines a list of fields for options of type "object" created by user.|["label"]|&mdash;|
74
+ **disabled<br/>Primitive<br/>Options**|Array|Defines a list of primitive types for options. Options of given types will be disabled for selection.|[]|&mdash;|
75
+ **options**|Array|Raw options list.|[]|&mdash;|
76
+ **optionsPadding**|Array|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.|[]|&mdash;|
77
+ **preselected<br/>Options**|Array|Defines a list of options that will be select by default.|[]|&mdash;|
78
+ **specialKeys<br/>Block**|Array|Defines a list of keys which in combination with mouse buttons or "enter" key will prevent selection of option.|[]|"alt",<br/> "ctrl",<br/> "shift"|
79
+ **createCustom<br/>OptionLabel**|Function|Defines function that creates custom label for each option.|(option) => null|&mdash;|
80
+ **multipleBlocks<br/>LimitMessage**|Function|Defines function that creates notification when maximal limit of selected options has been reached.|(number) => \`and ${number} more items\`|&mdash;|
81
+ **inputId**|String, Number|"id" attribute of search field.|null|&mdash;|
82
+ **preselected<br/>Option**|UnionPropType (from types)|Defines options that will be select by default.|null|&mdash;|
83
+ **value**|Array|Defines value of extended multiselect that can be used in "v-model".|[]|&mdash;|
462
84
 
85
+ ## Slots list
463
86
  <table>
464
- <thead>
465
- <h3>Slots list</h3>
466
- </thead>
467
87
  <tbody>
468
88
  <tr>
469
89
  <th>Slot name</th>
@@ -570,10 +190,8 @@ Vue extended multiselect is a component that was created for simplification of c
570
190
  </tbody>
571
191
  </table>
572
192
 
193
+ ## Events list
573
194
  <table>
574
- <thead>
575
- <h3>Events list</h3>
576
- </thead>
577
195
  <tbody>
578
196
  <tr>
579
197
  <th>Event name</th>
@@ -668,3 +286,7 @@ Vue extended multiselect is a component that was created for simplification of c
668
286
  </tr>
669
287
  </tbody>
670
288
  </table>
289
+
290
+ ## License
291
+
292
+ [MIT](LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue3-extended-multiselect",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Extended multiselect component for applications based on Vue 3 framework",
5
5
  "keywords": [
6
6
  "multiselect",
@@ -23,8 +23,7 @@
23
23
  "core-js": "^3.6.5",
24
24
  "lodash.debounce": "^4.0.8",
25
25
  "tiny-emitter": "^2.1.0",
26
- "vue": "^3.0.0",
27
- "vue3-extended-multiselect": "^0.0.1"
26
+ "vue": "^3.0.0"
28
27
  },
29
28
  "devDependencies": {
30
29
  "@testing-library/vue": "^6.6.1",
@@ -209,6 +209,7 @@
209
209
  +flex_row_container
210
210
  padding: $cancel-padding
211
211
 
212
+ .extended__multiselect-cancel
212
213
  &:active
213
214
  border-color: $cancel
214
215
  border-radius: 3px