wave-ui 3.5.0 → 3.5.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.
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +7 -4
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/w-button/index.vue +2 -0
- package/src/wave-ui/components/w-checkbox.vue +8 -6
- package/src/wave-ui/components/w-select.vue +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wave-ui",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "An emerging UI framework for Vue.js (2 & 3) with only the bright side. :sunny:",
|
|
5
5
|
"author": "Antoni Andre <antoniandre.web@gmail.com>",
|
|
6
6
|
"homepage": "https://antoniandre.github.io/wave-ui",
|
|
@@ -150,13 +150,10 @@ $inactive-color: #666;
|
|
|
150
150
|
vertical-align: middle;
|
|
151
151
|
// Contain the hidden radio button, so browser doesn't pan to it when outside of the screen.
|
|
152
152
|
position: relative;
|
|
153
|
-
cursor: pointer;
|
|
154
153
|
-webkit-tap-highlight-color: transparent;
|
|
155
154
|
|
|
156
155
|
@include themeable;
|
|
157
156
|
|
|
158
|
-
&--disabled {cursor: not-allowed;}
|
|
159
|
-
|
|
160
157
|
// The hidden real checkbox.
|
|
161
158
|
input[type="checkbox"] {
|
|
162
159
|
position: absolute;
|
|
@@ -174,8 +171,10 @@ $inactive-color: #666;
|
|
|
174
171
|
flex: 0 0 auto; // Prevent stretching width or height.
|
|
175
172
|
align-items: center;
|
|
176
173
|
justify-content: center;
|
|
177
|
-
cursor:
|
|
174
|
+
cursor: pointer;
|
|
178
175
|
z-index: 0;
|
|
176
|
+
|
|
177
|
+
.w-checkbox--disabled & {cursor: not-allowed;}
|
|
179
178
|
}
|
|
180
179
|
|
|
181
180
|
// The checkmark - visible when checked.
|
|
@@ -270,10 +269,13 @@ $inactive-color: #666;
|
|
|
270
269
|
&__label {
|
|
271
270
|
display: flex;
|
|
272
271
|
align-items: center;
|
|
273
|
-
cursor:
|
|
272
|
+
cursor: pointer;
|
|
274
273
|
user-select: none;
|
|
275
274
|
|
|
276
|
-
.w-checkbox--disabled & {
|
|
275
|
+
.w-checkbox--disabled & {
|
|
276
|
+
cursor: not-allowed;
|
|
277
|
+
opacity: 0.7;
|
|
278
|
+
}
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
281
|
|
|
@@ -77,7 +77,7 @@ component(
|
|
|
77
77
|
@update:model-value="onInput"
|
|
78
78
|
@item-click="$emit('item-click', $event)"
|
|
79
79
|
@item-select="onListItemSelect"
|
|
80
|
-
@keydown:enter="noUnselect && !multiple && closeMenu(
|
|
80
|
+
@keydown:enter="noUnselect && !multiple && closeMenu()"
|
|
81
81
|
@keydown:escape="showMenu && (this.showMenu = false) /* Will call closeMenu() from w-menu(@close). */"
|
|
82
82
|
:items="selectItems"
|
|
83
83
|
:multiple="multiple"
|
|
@@ -252,8 +252,8 @@ export default {
|
|
|
252
252
|
// still allow meta key & ctrl key combinations and the tab key (9).
|
|
253
253
|
if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9) e.preventDefault()
|
|
254
254
|
|
|
255
|
-
if (e.keyCode === 27 && this.showMenu) this.closeMenu(
|
|
256
|
-
else if (e.keyCode
|
|
255
|
+
if (e.keyCode === 27 && this.showMenu) this.closeMenu() // Escape.
|
|
256
|
+
else if ([13, 32].includes(e.keyCode)) this.openMenu() // Enter or Space.
|
|
257
257
|
|
|
258
258
|
// Up & down arrows.
|
|
259
259
|
else if ([38, 40].includes(e.keyCode)) {
|
|
@@ -322,7 +322,7 @@ export default {
|
|
|
322
322
|
|
|
323
323
|
return items.map(item => {
|
|
324
324
|
let value = item
|
|
325
|
-
if (typeof item === 'object') {
|
|
325
|
+
if (item && typeof item === 'object') { // `null` is also an object!
|
|
326
326
|
value = item[this.itemValueKey] !== undefined ? item[this.itemValueKey] : (item[this.itemLabelKey] !== undefined ? item[this.itemLabelKey] : item)
|
|
327
327
|
}
|
|
328
328
|
|