wave-ui 1.68.0 → 1.68.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 +5 -3
- 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 +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wave-ui",
|
|
3
|
-
"version": "1.68.
|
|
3
|
+
"version": "1.68.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",
|
|
@@ -143,11 +143,8 @@ $inactive-color: #666;
|
|
|
143
143
|
vertical-align: middle;
|
|
144
144
|
// Contain the hidden radio button, so browser doesn't pan to it when outside of the screen.
|
|
145
145
|
position: relative;
|
|
146
|
-
cursor: pointer;
|
|
147
146
|
-webkit-tap-highlight-color: transparent;
|
|
148
147
|
|
|
149
|
-
&--disabled {cursor: not-allowed;}
|
|
150
|
-
|
|
151
148
|
// The hidden real checkbox.
|
|
152
149
|
input[type="checkbox"] {
|
|
153
150
|
position: absolute;
|
|
@@ -165,8 +162,10 @@ $inactive-color: #666;
|
|
|
165
162
|
flex: 0 0 auto; // Prevent stretching width or height.
|
|
166
163
|
align-items: center;
|
|
167
164
|
justify-content: center;
|
|
168
|
-
cursor:
|
|
165
|
+
cursor: pointer;
|
|
169
166
|
z-index: 0;
|
|
167
|
+
|
|
168
|
+
.w-checkbox--disabled & {cursor: not-allowed;}
|
|
170
169
|
}
|
|
171
170
|
|
|
172
171
|
// The checkmark - visible when checked.
|
|
@@ -260,10 +259,13 @@ $inactive-color: #666;
|
|
|
260
259
|
&__label {
|
|
261
260
|
display: flex;
|
|
262
261
|
align-items: center;
|
|
263
|
-
cursor:
|
|
262
|
+
cursor: pointer;
|
|
264
263
|
user-select: none;
|
|
265
264
|
|
|
266
|
-
.w-checkbox--disabled & {
|
|
265
|
+
.w-checkbox--disabled & {
|
|
266
|
+
cursor: not-allowed;
|
|
267
|
+
opacity: 0.7;
|
|
268
|
+
}
|
|
267
269
|
}
|
|
268
270
|
}
|
|
269
271
|
|
|
@@ -252,7 +252,7 @@ export default {
|
|
|
252
252
|
if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9) e.preventDefault()
|
|
253
253
|
|
|
254
254
|
if (e.keyCode === 27 && this.showMenu) this.closeMenu() // Escape.
|
|
255
|
-
else if (e.keyCode
|
|
255
|
+
else if ([13, 32].includes(e.keyCode)) this.openMenu() // Enter or Space.
|
|
256
256
|
|
|
257
257
|
// Up & down arrows.
|
|
258
258
|
else if ([38, 40].includes(e.keyCode)) {
|
|
@@ -321,7 +321,7 @@ export default {
|
|
|
321
321
|
|
|
322
322
|
return items.map(item => {
|
|
323
323
|
let value = item
|
|
324
|
-
if (typeof item === 'object') {
|
|
324
|
+
if (item && typeof item === 'object') { // `null` is also an object!
|
|
325
325
|
value = item[this.itemValueKey] !== undefined ? item[this.itemValueKey] : (item[this.itemLabelKey] !== undefined ? item[this.itemLabelKey] : item)
|
|
326
326
|
}
|
|
327
327
|
|