vue3-extended-multiselect 0.0.4 → 0.0.5
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 +5 -1
- package/README.md +28 -204
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,4 +18,8 @@ Changing font-size property of "props" table in documentation.
|
|
|
18
18
|
|
|
19
19
|
####0.0.4
|
|
20
20
|
|
|
21
|
-
Correction of cancel button highlighting while loading.
|
|
21
|
+
Correction of cancel button highlighting while loading.
|
|
22
|
+
|
|
23
|
+
####0.0.5
|
|
24
|
+
|
|
25
|
+
Changing tables format in documentation.
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# vue3-extended-multiselect v0.0.
|
|
1
|
+
# vue3-extended-multiselect v0.0.5
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
5
5
|
### Brief annotation
|
|
6
6
|
|
|
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
|
|
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.
|
|
8
8
|
|
|
9
9
|
### Installation with npm
|
|
10
10
|
|
|
@@ -26,7 +26,7 @@ import Vue3ExtendedMultiselect from "vue3-extended-multiselect"
|
|
|
26
26
|
import { UnionOptionType } from "vue3-extended-multiselect"
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
##Props list
|
|
29
|
+
## Props list
|
|
30
30
|
Prop name | Prop type | Prop appointment | Prop default value | Prop values
|
|
31
31
|
----------|-----------|------------------|--------------------|------------
|
|
32
32
|
**autoSelect<br/>CreatedOption**|Boolean|Determines whether to select just now created option automatically.|false|—|
|
|
@@ -83,209 +83,33 @@ Prop name | Prop type | Prop appointment | Prop default value | Prop values
|
|
|
83
83
|
**value**|Array|Defines value of extended multiselect that can be used in "v-model".|[]|—|
|
|
84
84
|
|
|
85
85
|
## Slots list
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
</tr>
|
|
103
|
-
<tr>
|
|
104
|
-
<th>optionBlock</th>
|
|
105
|
-
<td>Element with selected option and its label.</td>
|
|
106
|
-
<td>
|
|
107
|
-
<ul type="square">
|
|
108
|
-
<li>label — option label</li>
|
|
109
|
-
<li>deselectBlock — function that deselects option and removes element that contained it</li>
|
|
110
|
-
<li>index — option index</li>
|
|
111
|
-
</ul>
|
|
112
|
-
</td>
|
|
113
|
-
</tr>
|
|
114
|
-
<tr>
|
|
115
|
-
<th>marker</th>
|
|
116
|
-
<td>Marker that indicates state of option selection.</td>
|
|
117
|
-
<td>—</td>
|
|
118
|
-
</tr>
|
|
119
|
-
<tr>
|
|
120
|
-
<th>maxElements</th>
|
|
121
|
-
<td>Message displayed if maximal limit of elements with selected options has been shown.</td>
|
|
122
|
-
<td>—</td>
|
|
123
|
-
</tr>
|
|
124
|
-
<tr>
|
|
125
|
-
<th>showMore</th>
|
|
126
|
-
<td>Button that increases limit of displayed elements with selected options.</td>
|
|
127
|
-
<td>
|
|
128
|
-
<ul type="square">
|
|
129
|
-
<li>showMoreOptions — function that increases limit of displayed elements with selected options</li>
|
|
130
|
-
</ul>
|
|
131
|
-
</td>
|
|
132
|
-
</tr>
|
|
133
|
-
<tr>
|
|
134
|
-
<th>noResults</th>
|
|
135
|
-
<td>Message displayed if no options have been found by internal search.</td>
|
|
136
|
-
<td>—</td>
|
|
137
|
-
</tr>
|
|
138
|
-
<tr>
|
|
139
|
-
<th>noOptions</th>
|
|
140
|
-
<td>Message displayed if given options list is empty.</td>
|
|
141
|
-
<td>—</td>
|
|
142
|
-
</tr>
|
|
143
|
-
<tr>
|
|
144
|
-
<th>listHeader</th>
|
|
145
|
-
<td>Element at the top of options list for information content.</td>
|
|
146
|
-
<td>—</td>
|
|
147
|
-
</tr>
|
|
148
|
-
<tr>
|
|
149
|
-
<th>listFooter</th>
|
|
150
|
-
<td>Element at the bottom of options list for information content.</td>
|
|
151
|
-
<td>—</td>
|
|
152
|
-
</tr>
|
|
153
|
-
<tr>
|
|
154
|
-
<th>toggle</th>
|
|
155
|
-
<td>Button that toggles options list display.</td>
|
|
156
|
-
<td>
|
|
157
|
-
<ul type="square">
|
|
158
|
-
<li>toggleOptionsList — function that toggles options list display</li>
|
|
159
|
-
</ul>
|
|
160
|
-
</td>
|
|
161
|
-
</tr>
|
|
162
|
-
<tr>
|
|
163
|
-
<th>labelBlock</th>
|
|
164
|
-
<td>Element with single selected option that is shown if search field display is disabled.</td>
|
|
165
|
-
<td>
|
|
166
|
-
<ul type="square">
|
|
167
|
-
<li>labelBlockValue — option label</li>
|
|
168
|
-
</ul>
|
|
169
|
-
</td>
|
|
170
|
-
</tr>
|
|
171
|
-
<tr>
|
|
172
|
-
<th>moreThanLimit</th>
|
|
173
|
-
<td>Message displayed if maximal limit of selected options has been reached.</td>
|
|
174
|
-
<td>—</td>
|
|
175
|
-
</tr>
|
|
176
|
-
<tr>
|
|
177
|
-
<th>lessThanLimit</th>
|
|
178
|
-
<td>Message displayed if minimal limit of selected options has not been reached.</td>
|
|
179
|
-
<td>—</td>
|
|
180
|
-
</tr>
|
|
181
|
-
<tr>
|
|
182
|
-
<th>cancel</th>
|
|
183
|
-
<td>Button that deselects all options.</td>
|
|
184
|
-
<td>
|
|
185
|
-
<ul type="square">
|
|
186
|
-
<li>cancel — function that deselects all options</li>
|
|
187
|
-
</ul>
|
|
188
|
-
</td>
|
|
189
|
-
</tr>
|
|
190
|
-
</tbody>
|
|
191
|
-
</table>
|
|
86
|
+
Slot name | Slot appointment | Slot scope
|
|
87
|
+
----------|------------------|-----------
|
|
88
|
+
**option**|Option in options list with its label.|``option`` — option from options list,<br/>``createCustomOptionLabel`` — function that creates custom label for each option|
|
|
89
|
+
**optionBlock**|Element with selected option and its label.|``label`` — option label,<br/>``deselectBlock`` — function that deselects option and removes element that contained it,<br/>``index`` — option index|
|
|
90
|
+
**marker**|Marker that indicates state of option selection.|—|
|
|
91
|
+
**maxElements**|Message displayed if maximal limit of elements with selected options has been shown.|—|
|
|
92
|
+
**showMore**|Button that increases limit of displayed elements with selected options.|``showMoreOptions`` — function that increases limit of displayed elements with selected options|
|
|
93
|
+
**noResults**|Message displayed if no options have been found by internal search.|—|
|
|
94
|
+
**noOptions**|Message displayed if given options list is empty.|—|
|
|
95
|
+
**listHeader**|Element at the top of options list for information content.|—|
|
|
96
|
+
**listFooter**|Element at the bottom of options list for information content.|—|
|
|
97
|
+
**toggle**|Button that toggles options list display.|``toggleOptionsList`` — function that toggles options list display|
|
|
98
|
+
**labelBlock**|Element with single selected option that is shown if search field display is disabled.|``labelBlockValue`` — option label|
|
|
99
|
+
**moreThanLimit**|Message displayed if maximal limit of selected options has been reached.|—|
|
|
100
|
+
**lessThanLimit**|Message displayed if minimal limit of selected options has not been reached.|—|
|
|
101
|
+
**cancel**|Button that deselects all options.|``cancel`` — function that deselects all options|
|
|
192
102
|
|
|
193
103
|
## Events list
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
<tr>
|
|
204
|
-
<th>pattern-changed</th>
|
|
205
|
-
<td>Change value of search field.</td>
|
|
206
|
-
<td>@pattern-changed</td>
|
|
207
|
-
<td><b>value</b> — pattern of inner search for available options</td>
|
|
208
|
-
<td>
|
|
209
|
-
<ul type="square">
|
|
210
|
-
<li>value — pattern of inner search for available options</li>
|
|
211
|
-
<li>inputId — id of search field set by "id" prop</li>
|
|
212
|
-
</ul>
|
|
213
|
-
</td>
|
|
214
|
-
</tr>
|
|
215
|
-
<tr>
|
|
216
|
-
<th>select</th>
|
|
217
|
-
<td>Selection of option.</td>
|
|
218
|
-
<td>@select</td>
|
|
219
|
-
<td><b>option</b> — just now selected option</td>
|
|
220
|
-
<td>
|
|
221
|
-
<ul type="square">
|
|
222
|
-
<li>option — just now selected option</li>
|
|
223
|
-
<li>inputId — id of search field set by "id" prop</li>
|
|
224
|
-
</ul>
|
|
225
|
-
</td>
|
|
226
|
-
</tr>
|
|
227
|
-
<tr>
|
|
228
|
-
<th>clean</th>
|
|
229
|
-
<td>Removal of all options or singe option.</td>
|
|
230
|
-
<td>@clean</td>
|
|
231
|
-
<td><b>option/options</b> — just now deselected option or array with just now deselected options
|
|
232
|
-
</td>
|
|
233
|
-
<td>
|
|
234
|
-
<ul type="square">
|
|
235
|
-
<li>option/options — just now deselected option or array with just now deselected options</li>
|
|
236
|
-
<li>inputId — id of search field set by "id" prop</li>
|
|
237
|
-
</ul>
|
|
238
|
-
</td>
|
|
239
|
-
</tr>
|
|
240
|
-
<tr>
|
|
241
|
-
<th>option-created</th>
|
|
242
|
-
<td>Creation of new option by user.</td>
|
|
243
|
-
<td>@option-created</td>
|
|
244
|
-
<td><b>option</b> — option created by user</td>
|
|
245
|
-
<td>
|
|
246
|
-
<ul type="square">
|
|
247
|
-
<li>option/options — option created by user</li>
|
|
248
|
-
<li>inputId — id of search field set by "id" prop</li>
|
|
249
|
-
</ul>
|
|
250
|
-
</td>
|
|
251
|
-
</tr>
|
|
252
|
-
<tr>
|
|
253
|
-
<th>active</th>
|
|
254
|
-
<td>Dropdown options list expanding.</td>
|
|
255
|
-
<td>@active</td>
|
|
256
|
-
<td>—</td>
|
|
257
|
-
<td>
|
|
258
|
-
<ul type="square">
|
|
259
|
-
<li>inputId — id of search field set by "id" prop</li>
|
|
260
|
-
</ul>
|
|
261
|
-
</td>
|
|
262
|
-
</tr>
|
|
263
|
-
<tr>
|
|
264
|
-
<th>close</th>
|
|
265
|
-
<td>Rolling up dropdown options list.</td>
|
|
266
|
-
<td>@close</td>
|
|
267
|
-
<td><b>options</b> — array of selected options</td>
|
|
268
|
-
<td>
|
|
269
|
-
<ul type="square">
|
|
270
|
-
<li>options — array of selected options</li>
|
|
271
|
-
<li>inputId — id of search field set by "id" prop</li>
|
|
272
|
-
</ul>
|
|
273
|
-
</td>
|
|
274
|
-
</tr>
|
|
275
|
-
<tr>
|
|
276
|
-
<th>increase</th>
|
|
277
|
-
<td>Increasing current limit of displayed elements with selected options.</td>
|
|
278
|
-
<td>@increase</td>
|
|
279
|
-
<td><b>limit</b> — current limit of options to be shown next</td>
|
|
280
|
-
<td>
|
|
281
|
-
<ul type="square">
|
|
282
|
-
<li>limit — current limit of options to be shown next</li>
|
|
283
|
-
<li>inputId — id of search field set by "id" prop</li>
|
|
284
|
-
</ul>
|
|
285
|
-
</td>
|
|
286
|
-
</tr>
|
|
287
|
-
</tbody>
|
|
288
|
-
</table>
|
|
104
|
+
Event name | Event appointment | Listener method | Simplified event payload | Fields of object with full event payload |
|
|
105
|
+
-----------|-------------------|-----------------|--------------------------|-----------------------------------------|
|
|
106
|
+
**pattern-changed**|Change value of search field.|@pattern-changed|``value`` — pattern of inner search for available options|``value`` — pattern of inner search for available options,<br/>``inputId`` — id of search field set by "id" prop|
|
|
107
|
+
**select**|Selection of option.|@select|``option`` — just now selected option|``option`` — just now selected option,<br/>``inputId`` — id of search field set by "id" prop|
|
|
108
|
+
**clean**|Removal of all options or singe option.|@clean|``option/options`` — just now deselected option or array with just now deselected options|``option/options`` — just now deselected option or array with just now deselected options,<br/>``inputId`` — id of search field set by "id" prop|
|
|
109
|
+
**option-created**|Creation of new option by user.|@option-created|``option`` — option created by user|``option/options`` — option created by user,<br/>``inputId`` — id of search field set by "id" prop|
|
|
110
|
+
**active**|Dropdown options list expanding.|@active|—|``inputId`` — id of search field set by "id" prop|
|
|
111
|
+
**close**|Rolling up dropdown options list.|@close|``options`` — array of selected options|``options`` — array of selected options,<br/>``inputId`` — id of search field set by "id" prop|
|
|
112
|
+
**increase**|Increasing current limit of displayed elements with selected options.|@increase|``limit`` — current limit of options to be shown next|``limit`` — current limit of options to be shown next,<br/>``inputId`` — id of search field set by "id" prop|
|
|
289
113
|
|
|
290
114
|
## License
|
|
291
115
|
|