@volverjs/ui-vue 0.0.9-beta.5 → 0.0.9-beta.7
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/README.md +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +15 -5
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +22 -10
- package/dist/components/VvCombobox/index.d.ts +15 -6
- package/dist/components/VvDropdown/VvDropdown.es.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +4 -4
- package/dist/components/index.es.js +15 -5
- package/dist/components/index.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +1 -1
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +7 -7
- package/dist/stories/Combobox/Combobox.settings.d.ts +106 -12
- package/package.json +8 -8
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvCombobox/VvCombobox.vue +2 -3
- package/src/components/VvCombobox/index.ts +11 -0
- package/src/components/VvDropdown/VvDropdown.vue +1 -1
- package/src/stories/Combobox/Combobox.settings.ts +107 -1
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
autoPlacement: propsDefaults.value.autoPlacement,
|
|
335
335
|
arrow: propsDefaults.value.arrow,
|
|
336
336
|
autofocusFirst: searchable.value
|
|
337
|
-
?
|
|
337
|
+
? true
|
|
338
338
|
: propsDefaults.value.autofocusFirst,
|
|
339
339
|
triggerWidth: propsDefaults.value.triggerWidth,
|
|
340
340
|
modifiers: propsDefaults.value.dropdownModifiers,
|
|
@@ -390,7 +390,6 @@
|
|
|
390
390
|
<slot name="dropdown::before" />
|
|
391
391
|
<input
|
|
392
392
|
v-if="searchable"
|
|
393
|
-
v-show="expanded"
|
|
394
393
|
:id="hasSearchId"
|
|
395
394
|
ref="inputSearchEl"
|
|
396
395
|
v-model="searchText"
|
|
@@ -579,7 +578,7 @@
|
|
|
579
578
|
<!-- Close button if dropdown custom position is enabled and floating-ui disabled -->
|
|
580
579
|
<VvButton
|
|
581
580
|
v-if="dropdownEl?.customPosition"
|
|
582
|
-
label="
|
|
581
|
+
:label="propsDefaults.closeLabel"
|
|
583
582
|
modifiers="secondary"
|
|
584
583
|
@click="dropdownEl.hide()"
|
|
585
584
|
/>
|
|
@@ -40,6 +40,13 @@ export const VvComboboxProps = {
|
|
|
40
40
|
...UnselectableProps,
|
|
41
41
|
...DropdownProps,
|
|
42
42
|
...LabelProps,
|
|
43
|
+
/**
|
|
44
|
+
* Dropdown show / hide transition name
|
|
45
|
+
*/
|
|
46
|
+
transitionName: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: 'vv-dropdown--mobile-fade-block',
|
|
49
|
+
},
|
|
43
50
|
/**
|
|
44
51
|
* modelValue can be a string, number, boolean, object or array of string, number, boolean, object
|
|
45
52
|
*/
|
|
@@ -71,6 +78,10 @@ export const VvComboboxProps = {
|
|
|
71
78
|
* Label for deselected option hint
|
|
72
79
|
*/
|
|
73
80
|
deselectHintLabel: { type: String, default: 'Press enter to remove' },
|
|
81
|
+
/**
|
|
82
|
+
* Label close button
|
|
83
|
+
*/
|
|
84
|
+
closeLabel: { type: String, default: 'Close' },
|
|
74
85
|
/**
|
|
75
86
|
* Select input placeholder
|
|
76
87
|
*/
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
}
|
|
319
319
|
return [
|
|
320
320
|
...element.querySelectorAll(
|
|
321
|
-
'a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])',
|
|
321
|
+
'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])',
|
|
322
322
|
),
|
|
323
323
|
].filter(
|
|
324
324
|
(el) =>
|
|
@@ -86,7 +86,7 @@ export const argTypes = {
|
|
|
86
86
|
},
|
|
87
87
|
},
|
|
88
88
|
noResultsLabel: {
|
|
89
|
-
description: 'Label
|
|
89
|
+
description: 'Label for no search results',
|
|
90
90
|
control: {
|
|
91
91
|
type: 'text',
|
|
92
92
|
},
|
|
@@ -96,6 +96,83 @@ export const argTypes = {
|
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
|
+
noOptionsLabel: {
|
|
100
|
+
description: 'Label for no options available',
|
|
101
|
+
control: {
|
|
102
|
+
type: 'text',
|
|
103
|
+
},
|
|
104
|
+
table: {
|
|
105
|
+
defaultValue: {
|
|
106
|
+
summary: 'No options available',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
selectedHintLabel: {
|
|
111
|
+
description: 'Label for selected option hint',
|
|
112
|
+
control: {
|
|
113
|
+
type: 'text',
|
|
114
|
+
},
|
|
115
|
+
table: {
|
|
116
|
+
defaultValue: {
|
|
117
|
+
summary: 'Selected',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
deselectActionLabel: {
|
|
122
|
+
description: 'Label for deselect action button',
|
|
123
|
+
control: {
|
|
124
|
+
type: 'text',
|
|
125
|
+
},
|
|
126
|
+
table: {
|
|
127
|
+
defaultValue: {
|
|
128
|
+
summary: 'Deselect',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
selectHintLabel: {
|
|
133
|
+
description: 'Label for select option hint',
|
|
134
|
+
control: {
|
|
135
|
+
type: 'text',
|
|
136
|
+
},
|
|
137
|
+
table: {
|
|
138
|
+
defaultValue: {
|
|
139
|
+
summary: 'Press enter to select',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
deselectHintLabel: {
|
|
144
|
+
description: 'Label for deselected option hint',
|
|
145
|
+
control: {
|
|
146
|
+
type: 'text',
|
|
147
|
+
},
|
|
148
|
+
table: {
|
|
149
|
+
defaultValue: {
|
|
150
|
+
summary: 'Press enter to remove',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
closeLabel: {
|
|
155
|
+
description: 'Label for close button',
|
|
156
|
+
control: {
|
|
157
|
+
type: 'text',
|
|
158
|
+
},
|
|
159
|
+
table: {
|
|
160
|
+
defaultValue: {
|
|
161
|
+
summary: 'Close',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
loadingLabel: {
|
|
166
|
+
description: 'Label for loading',
|
|
167
|
+
control: {
|
|
168
|
+
type: 'text',
|
|
169
|
+
},
|
|
170
|
+
table: {
|
|
171
|
+
defaultValue: {
|
|
172
|
+
summary: 'Loading...',
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
99
176
|
placeholder: {
|
|
100
177
|
description: 'Text that appears when it has no value set.',
|
|
101
178
|
control: {
|
|
@@ -116,6 +193,11 @@ export const argTypes = {
|
|
|
116
193
|
control: {
|
|
117
194
|
type: 'text',
|
|
118
195
|
},
|
|
196
|
+
table: {
|
|
197
|
+
defaultValue: {
|
|
198
|
+
summary: 'Search...',
|
|
199
|
+
},
|
|
200
|
+
},
|
|
119
201
|
},
|
|
120
202
|
debounceSearch: {
|
|
121
203
|
description: 'Debounce milliseconds for search',
|
|
@@ -173,6 +255,22 @@ export const argTypes = {
|
|
|
173
255
|
type: 'text',
|
|
174
256
|
},
|
|
175
257
|
description: 'Modifiers for dropdown',
|
|
258
|
+
table: {
|
|
259
|
+
defaultValue: {
|
|
260
|
+
summary: 'mobile',
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
transitionName: {
|
|
265
|
+
control: {
|
|
266
|
+
type: 'text',
|
|
267
|
+
},
|
|
268
|
+
description: 'Transition name for dropdown',
|
|
269
|
+
table: {
|
|
270
|
+
defaultValue: {
|
|
271
|
+
summary: 'vv-dropdown--mobile-fade-block',
|
|
272
|
+
},
|
|
273
|
+
},
|
|
176
274
|
},
|
|
177
275
|
autoOpen: {
|
|
178
276
|
description: 'Open dropdown on focus',
|
|
@@ -190,6 +288,14 @@ export const argTypes = {
|
|
|
190
288
|
},
|
|
191
289
|
},
|
|
192
290
|
},
|
|
291
|
+
autofocusFirst: {
|
|
292
|
+
description: 'Autofocus first option on open dropdown',
|
|
293
|
+
table: {
|
|
294
|
+
defaultValue: {
|
|
295
|
+
summary: true,
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
},
|
|
193
299
|
before: {
|
|
194
300
|
control: {
|
|
195
301
|
type: 'text',
|