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.
@@ -1369,6 +1369,9 @@ function bt(e, t, l, a, r, i) {
1369
1369
  ]),
1370
1370
  _: 3
1371
1371
  }, 16)) : (s(), m(o, ie(C({ key: 1 }, i.buttonProps)), {
1372
+ loading: g(() => [
1373
+ p(e.$slots, "loading")
1374
+ ]),
1372
1375
  default: g(() => [
1373
1376
  p(e.$slots, "default")
1374
1377
  ]),
@@ -4748,7 +4751,7 @@ function xi(e, t, l, a, r, i) {
4748
4751
  "onUpdate:modelValue": i.onInput,
4749
4752
  onItemClick: t[6] || (t[6] = (h) => e.$emit("item-click", h)),
4750
4753
  onItemSelect: i.onListItemSelect,
4751
- "onKeydown:enter": t[7] || (t[7] = (h) => l.noUnselect && !l.multiple && i.closeMenu("la3")),
4754
+ "onKeydown:enter": t[7] || (t[7] = (h) => l.noUnselect && !l.multiple && i.closeMenu()),
4752
4755
  "onKeydown:escape": t[8] || (t[8] = (h) => e.showMenu && (this.showMenu = !1)),
4753
4756
  items: i.selectItems,
4754
4757
  multiple: l.multiple,
@@ -4906,8 +4909,8 @@ const Pi = {
4906
4909
  },
4907
4910
  onKeydown(e) {
4908
4911
  if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9 && e.preventDefault(), e.keyCode === 27 && this.showMenu)
4909
- this.closeMenu("la5");
4910
- else if (e.keyCode === 13)
4912
+ this.closeMenu();
4913
+ else if ([13, 32].includes(e.keyCode))
4911
4914
  this.openMenu();
4912
4915
  else if ([38, 40].includes(e.keyCode))
4913
4916
  if (this.multiple)
@@ -4945,7 +4948,7 @@ const Pi = {
4945
4948
  const t = this.selectItems.map((l) => l.value);
4946
4949
  return e.map((l) => {
4947
4950
  let a = l;
4948
- return typeof l == "object" && (a = l[this.itemValueKey] !== void 0 ? l[this.itemValueKey] : l[this.itemLabelKey] !== void 0 ? l[this.itemLabelKey] : l), this.selectItems[t.indexOf(a)];
4951
+ return l && typeof l == "object" && (a = l[this.itemValueKey] !== void 0 ? l[this.itemValueKey] : l[this.itemLabelKey] !== void 0 ? l[this.itemLabelKey] : l), this.selectItems[t.indexOf(a)];
4949
4952
  }).filter((l) => l !== void 0);
4950
4953
  },
4951
4954
  openMenu() {