wave-ui 1.63.1 → 1.65.0

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.
@@ -1484,7 +1484,7 @@ const __vue2_script$L = {
1484
1484
  return {
1485
1485
  ...props,
1486
1486
  ...this.$attrs,
1487
- class: this.tooltip && this.$vnode.data.staticClass
1487
+ class: this.tooltip && [this.$vnode.data.staticClass, this.$vnode.data.class]
1488
1488
  };
1489
1489
  }
1490
1490
  }
@@ -4822,7 +4822,7 @@ var render$l = function() {
4822
4822
  !_vm.isDisabled && !_vm.isReadonly && (_vm.showMenu ? _vm.closeMenu : _vm.openMenu)();
4823
4823
  } } }, [_vm.innerIconLeft ? _c("w-icon", { staticClass: "w-select__icon w-select__icon--inner-left", attrs: { "tag": "label" }, on: { "click": function($event) {
4824
4824
  return _vm.$emit("click:inner-icon-left", $event);
4825
- } } }, [_vm._v(_vm._s(_vm.innerIconLeft))]) : _vm._e(), _vm.$scopedSlots.selection ? _c("div", { staticClass: "w-select__selection-slot" }, [_vm._t("selection", null, { "item": _vm.multiple ? _vm.inputValue : _vm.inputValue[0] })], 2) : _vm._e(), _c("input", { ref: "selection-input", staticClass: "w-select__selection", attrs: { "type": "text", "id": "w-select--" + _vm._uid, "placeholder": !_vm.$scopedSlots.selection && _vm.placeholder || null, "disabled": _vm.isDisabled || null, "readonly": "", "aria-readonly": "true", "required": _vm.required || null, "tabindex": _vm.tabindex || null, "autocomplete": "off" }, domProps: { "value": _vm.$scopedSlots.selection ? "" : _vm.selectionString }, on: { "focus": function($event) {
4825
+ } } }, [_vm._v(_vm._s(_vm.innerIconLeft))]) : _vm._e(), _vm.$scopedSlots.selection ? _c("div", { staticClass: "w-select__selection-slot" }, [_vm._t("selection", null, { "item": _vm.multiple ? _vm.inputValue : _vm.inputValue[0] })], 2) : _vm._e(), _c("div", { ref: "selection-input", staticClass: "w-select__selection", class: { "w-select__selection--placeholder": !_vm.$scopedSlots.selection && !_vm.selectionString && _vm.placeholder }, attrs: { "contenteditable": _vm.isDisabled || _vm.isReadonly ? "false" : "true", "id": "w-select--" + _vm._uid, "disabled": _vm.isDisabled || null, "readonly": "", "aria-readonly": "true", "tabindex": _vm.tabindex || null }, domProps: { "innerHTML": _vm._s((_vm.$scopedSlots.selection ? "" : _vm.selectionString) || _vm.placeholder) }, on: { "focus": function($event) {
4826
4826
  !_vm.isDisabled && !_vm.isReadonly && _vm.onFocus($event);
4827
4827
  }, "blur": _vm.onBlur, "keydown": function($event) {
4828
4828
  !_vm.isDisabled && !_vm.isReadonly && _vm.onKeydown($event);
@@ -4890,7 +4890,8 @@ const __vue2_script$l = {
4890
4890
  dark: { type: Boolean },
4891
4891
  returnObject: { type: Boolean },
4892
4892
  noUnselect: { type: Boolean },
4893
- menuProps: { type: Object }
4893
+ menuProps: { type: Object },
4894
+ fitToContent: { type: Boolean }
4894
4895
  },
4895
4896
  emits: ["input", "update:modelValue", "focus", "blur", "item-click", "item-select", "click:inner-icon-left", "click:inner-icon-right"],
4896
4897
  data: () => ({
@@ -4927,6 +4928,7 @@ const __vue2_script$l = {
4927
4928
  return {
4928
4929
  "w-select": true,
4929
4930
  "w-select--disabled": this.isDisabled,
4931
+ "w-select--fit-to-content": this.fitToContent,
4930
4932
  "w-select--readonly": this.isReadonly,
4931
4933
  [`w-select--${this.hasValue ? "filled" : "empty"}`]: true,
4932
4934
  "w-select--focused": (this.isFocused || this.showMenu) && !this.isReadonly,
@@ -4956,12 +4958,14 @@ const __vue2_script$l = {
4956
4958
  onFocus(e) {
4957
4959
  this.isFocused = true;
4958
4960
  this.$emit("focus", e);
4961
+ return false;
4959
4962
  },
4960
4963
  onBlur(e) {
4961
4964
  this.isFocused = false;
4962
4965
  this.$emit("blur", e);
4963
4966
  },
4964
4967
  onKeydown(e) {
4968
+ e.preventDefault();
4965
4969
  if ([13, 27, 38, 40].includes(e.keyCode))
4966
4970
  e.preventDefault();
4967
4971
  if (e.keyCode === 27)