wave-ui 1.67.4 → 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 +9 -5
- 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 +14 -10
- package/src/wave-ui/components/w-radio.vue +4 -3
- package/src/wave-ui/components/w-select.vue +2 -2
package/dist/wave-ui.es.js
CHANGED
|
@@ -1426,7 +1426,9 @@ var render$L = function() {
|
|
|
1426
1426
|
return _vm.tooltip ? _c("w-tooltip", _vm._b({ tag: "component", scopedSlots: _vm._u([{ key: "activator", fn: function(ref) {
|
|
1427
1427
|
var on = ref.on;
|
|
1428
1428
|
return [_c("button-partial", _vm._g(_vm._b({}, "button-partial", _vm.buttonProps, false), Object.assign({}, _vm.$listeners, on)), [_vm._t("default")], 2)];
|
|
1429
|
-
} }], null, true) }, "component", _vm.tooltipProps || {}, false), [_c("div", { domProps: { "innerHTML": _vm._s(_vm.tooltip) } })]) : _c("button-partial", _vm._g(_vm._b({
|
|
1429
|
+
} }], null, true) }, "component", _vm.tooltipProps || {}, false), [_c("div", { domProps: { "innerHTML": _vm._s(_vm.tooltip) } })]) : _c("button-partial", _vm._g(_vm._b({ scopedSlots: _vm._u([{ key: "loading", fn: function() {
|
|
1430
|
+
return [_vm._t("loading")];
|
|
1431
|
+
}, proxy: true }], null, true) }, "button-partial", _vm.buttonProps, false), _vm.$listeners), [_vm._t("default")], 2);
|
|
1430
1432
|
};
|
|
1431
1433
|
var staticRenderFns$L = [];
|
|
1432
1434
|
const __vue2_script$L = {
|
|
@@ -1630,7 +1632,7 @@ var render$J = function() {
|
|
|
1630
1632
|
}, "reset": function($event) {
|
|
1631
1633
|
_vm.$emit("update:modelValue", _vm.isChecked = null);
|
|
1632
1634
|
_vm.$emit("input", null);
|
|
1633
|
-
} } }, "component", _vm.formRegister && { validators: _vm.validators, inputValue: _vm.isChecked, disabled: _vm.isDisabled }, false), [_c("input", { ref: "input", attrs: { "id": "w-checkbox--" + _vm._uid, "type": "checkbox", "name": _vm.inputName, "disabled": _vm.isDisabled || null, "required": _vm.required || null, "tabindex": _vm.tabindex || null, "aria-checked": _vm.isChecked || "false", "role": "checkbox" }, domProps: { "checked": _vm.isChecked || null }, on: { "focus": function($event) {
|
|
1635
|
+
} } }, "component", _vm.formRegister && { validators: _vm.validators, inputValue: _vm.isChecked, disabled: _vm.isDisabled, readonly: _vm.isReadonly }, false), [_c("input", { ref: "input", attrs: { "id": "w-checkbox--" + _vm._uid, "type": "checkbox", "name": _vm.inputName, "disabled": _vm.isDisabled || _vm.isReadonly || null, "required": _vm.required || null, "tabindex": _vm.tabindex || null, "aria-checked": _vm.isChecked || "false", "role": "checkbox" }, domProps: { "checked": _vm.isChecked || null }, on: { "focus": function($event) {
|
|
1634
1636
|
return _vm.$emit("focus", $event);
|
|
1635
1637
|
}, "blur": function($event) {
|
|
1636
1638
|
return _vm.$emit("blur", $event);
|
|
@@ -1686,6 +1688,7 @@ const __vue2_script$J = {
|
|
|
1686
1688
|
return {
|
|
1687
1689
|
[`w-checkbox w-checkbox--${this.isChecked ? "checked" : "unchecked"}`]: true,
|
|
1688
1690
|
"w-checkbox--disabled": this.isDisabled,
|
|
1691
|
+
"w-checkbox--readonly": this.isReadonly,
|
|
1689
1692
|
"w-checkbox--indeterminate": this.indeterminate,
|
|
1690
1693
|
"w-checkbox--ripple": this.ripple.start,
|
|
1691
1694
|
"w-checkbox--rippled": this.ripple.end,
|
|
@@ -4438,7 +4441,7 @@ var render$p = function() {
|
|
|
4438
4441
|
}, "reset": function($event) {
|
|
4439
4442
|
_vm.$emit("update:modelValue", _vm.inputValue = null);
|
|
4440
4443
|
_vm.$emit("input", null);
|
|
4441
|
-
} } }, "component", _vm.formRegister && { validators: _vm.validators, inputValue: _vm.inputValue, disabled: _vm.isDisabled }, false), [_c("input", { ref: "input", attrs: { "id": "w-radio--" + _vm._uid, "type": "radio", "name": _vm.inputName, "disabled": _vm.isDisabled || null, "required": _vm.required || null, "tabindex": _vm.tabindex || null, "aria-checked": _vm.inputValue || "false", "role": "radio" }, domProps: { "checked": _vm.inputValue || null }, on: { "focus": function($event) {
|
|
4444
|
+
} } }, "component", _vm.formRegister && { validators: _vm.validators, inputValue: _vm.inputValue, disabled: _vm.isDisabled, readonly: _vm.isReadonly }, false), [_c("input", { ref: "input", attrs: { "id": "w-radio--" + _vm._uid, "type": "radio", "name": _vm.inputName, "disabled": _vm.isDisabled || _vm.isReadonly || null, "required": _vm.required || null, "tabindex": _vm.tabindex || null, "aria-checked": _vm.inputValue || "false", "role": "radio" }, domProps: { "checked": _vm.inputValue || null }, on: { "focus": function($event) {
|
|
4442
4445
|
return _vm.$emit("focus", $event);
|
|
4443
4446
|
}, "change": function($event) {
|
|
4444
4447
|
_vm.onInput($event);
|
|
@@ -4483,6 +4486,7 @@ const __vue2_script$p = {
|
|
|
4483
4486
|
return {
|
|
4484
4487
|
[`w-radio w-radio--${this.inputValue ? "checked" : "unchecked"}`]: true,
|
|
4485
4488
|
"w-radio--disabled": this.isDisabled,
|
|
4489
|
+
"w-radio--readonly": this.isReadonly,
|
|
4486
4490
|
"w-radio--ripple": this.ripple.start,
|
|
4487
4491
|
"w-radio--rippled": this.ripple.end
|
|
4488
4492
|
};
|
|
@@ -5129,7 +5133,7 @@ const __vue2_script$l = {
|
|
|
5129
5133
|
e.preventDefault();
|
|
5130
5134
|
if (e.keyCode === 27 && this.showMenu)
|
|
5131
5135
|
this.closeMenu();
|
|
5132
|
-
else if (e.keyCode
|
|
5136
|
+
else if ([13, 32].includes(e.keyCode))
|
|
5133
5137
|
this.openMenu();
|
|
5134
5138
|
else if ([38, 40].includes(e.keyCode)) {
|
|
5135
5139
|
if (this.multiple)
|
|
@@ -5176,7 +5180,7 @@ const __vue2_script$l = {
|
|
|
5176
5180
|
const allValues = this.selectItems.map((item) => item.value);
|
|
5177
5181
|
return items.map((item) => {
|
|
5178
5182
|
let value = item;
|
|
5179
|
-
if (typeof item === "object") {
|
|
5183
|
+
if (item && typeof item === "object") {
|
|
5180
5184
|
value = item[this.itemValueKey] !== void 0 ? item[this.itemValueKey] : item[this.itemLabelKey] !== void 0 ? item[this.itemLabelKey] : item;
|
|
5181
5185
|
}
|
|
5182
5186
|
return this.selectItems[allValues.indexOf(value)];
|