@maxtropy/v-components 0.1.14-beta.18 → 0.1.14-beta.20

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.
@@ -1,7 +1,7 @@
1
1
  var oh = Object.defineProperty;
2
2
  var rh = (e, t, n) => t in e ? oh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Dt = (e, t, n) => (rh(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { shallowRef as Gt, watchEffect as Fn, readonly as _l, ref as M, watch as le, unref as s, getCurrentScope as ah, onScopeDispose as Kf, getCurrentInstance as He, onMounted as Ge, nextTick as ke, computed as I, defineComponent as U, openBlock as w, createElementBlock as D, createElementVNode as K, warn as lh, isVNode as on, onBeforeUnmount as Bt, inject as be, isRef as En, onBeforeMount as Xi, provide as Ye, renderSlot as te, mergeProps as Pe, toRef as yt, onUnmounted as Oa, reactive as bt, toRefs as Qt, normalizeClass as S, onUpdated as dr, createVNode as G, Fragment as Te, useSlots as Ln, withCtx as z, createBlock as Z, resolveDynamicComponent as nt, normalizeStyle as De, createTextVNode as qe, toDisplayString as se, createCommentVNode as _, TransitionGroup as Nf, useAttrs as $i, withDirectives as Ve, withModifiers as Ne, vShow as ut, Transition as Xt, cloneVNode as sh, Text as Lf, Comment as Qf, Teleport as Vf, onDeactivated as zf, renderList as xe, toRaw as _o, vModelCheckbox as Ol, vModelRadio as Hf, toHandlers as ih, withKeys as ct, h as Ie, createSlots as $e, resolveComponent as Me, normalizeProps as Jl, guardReactiveProps as Xl, triggerRef as Er, resolveDirective as eu, vModelText as uh, createApp as ch, shallowReactive as dh, render as Jo, markRaw as $l, createStaticVNode as Uf, pushScopeId as tu, popScopeId as nu } from "vue";
4
+ import { shallowRef as Gt, watchEffect as Fn, readonly as _l, ref as M, watch as le, unref as s, getCurrentScope as ah, onScopeDispose as Kf, getCurrentInstance as He, onMounted as Ye, nextTick as ke, computed as I, defineComponent as U, openBlock as w, createElementBlock as D, createElementVNode as K, warn as lh, isVNode as on, onBeforeUnmount as Bt, inject as be, isRef as En, onBeforeMount as Xi, provide as Ge, renderSlot as te, mergeProps as Pe, toRef as yt, onUnmounted as Oa, reactive as bt, toRefs as Qt, normalizeClass as S, onUpdated as dr, createVNode as G, Fragment as Te, useSlots as Ln, withCtx as z, createBlock as Z, resolveDynamicComponent as nt, normalizeStyle as De, createTextVNode as qe, toDisplayString as se, createCommentVNode as _, TransitionGroup as Nf, useAttrs as $i, withDirectives as Ve, withModifiers as Ne, vShow as ut, Transition as Xt, cloneVNode as sh, Text as Lf, Comment as Qf, Teleport as Vf, onDeactivated as zf, renderList as xe, toRaw as _o, vModelCheckbox as Ol, vModelRadio as Hf, toHandlers as ih, withKeys as ct, h as Ie, createSlots as $e, resolveComponent as Me, normalizeProps as Jl, guardReactiveProps as Xl, triggerRef as Er, resolveDirective as eu, vModelText as uh, createApp as ch, shallowReactive as dh, render as Jo, markRaw as $l, createStaticVNode as Uf, pushScopeId as tu, popScopeId as nu } from "vue";
5
5
  import { useRoute as Wf } from "vue-router";
6
6
  const fh = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])', ph = (e) => process.env.NODE_ENV === "test" ? !0 : getComputedStyle(e).position === "fixed" ? !1 : e.offsetParent !== null, bc = (e) => Array.from(e.querySelectorAll(fh)).filter((t) => vh(t) && ph(t)), vh = (e) => {
7
7
  if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null)
@@ -93,7 +93,7 @@ function xh(e, t = 200, n = {}) {
93
93
  return le(e, () => r()), o;
94
94
  }
95
95
  function Th(e, t = !0) {
96
- He() ? Ge(e) : t ? e() : ke(e);
96
+ He() ? Ye(e) : t ? e() : ke(e);
97
97
  }
98
98
  function Xo(e, t, n = {}) {
99
99
  const {
@@ -2336,7 +2336,7 @@ For more detail, please visit: ${r}
2336
2336
  }, l = () => {
2337
2337
  t.value && e.value && t.value.removeEventListener("mousedown", r);
2338
2338
  };
2339
- Ge(() => {
2339
+ Ye(() => {
2340
2340
  Fn(() => {
2341
2341
  n.value ? a() : l();
2342
2342
  });
@@ -2799,7 +2799,7 @@ const Kl = "el", ME = "is-", mo = (e, t, n, o, r) => {
2799
2799
  ...f.proxy.$route
2800
2800
  }), () => {
2801
2801
  u.value && l.value && C();
2802
- }), Ge(() => {
2802
+ }), Ye(() => {
2803
2803
  E(m[e]);
2804
2804
  }), {
2805
2805
  hide: C,
@@ -3487,7 +3487,7 @@ const Bd = (e) => {
3487
3487
  const t = e;
3488
3488
  t.key === Ee.esc && Uo.forEach((n) => n(t));
3489
3489
  }, K2 = (e) => {
3490
- Ge(() => {
3490
+ Ye(() => {
3491
3491
  Uo.length === 0 && document.addEventListener("keydown", Bd), at && Uo.push(e);
3492
3492
  }), Bt(() => {
3493
3493
  Uo = Uo.filter((t) => t !== e), Uo.length === 0 && at && document.removeEventListener("keydown", Bd);
@@ -3552,7 +3552,7 @@ const gv = () => {
3552
3552
  }
3553
3553
  };
3554
3554
  }, hv = Symbol("elForwardRef"), V2 = (e) => {
3555
- Ye(hv, {
3555
+ Ge(hv, {
3556
3556
  setForwardRef: (n) => {
3557
3557
  e.value = n;
3558
3558
  }
@@ -3666,7 +3666,7 @@ function gs(e, t) {
3666
3666
  }
3667
3667
  const wv = (e, t, n = !1) => {
3668
3668
  var o;
3669
- const r = !!He(), a = r ? vs() : void 0, l = (o = t == null ? void 0 : t.provide) != null ? o : r ? Ye : void 0;
3669
+ const r = !!He(), a = r ? vs() : void 0, l = (o = t == null ? void 0 : t.provide) != null ? o : r ? Ge : void 0;
3670
3670
  if (!l) {
3671
3671
  Je("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
3672
3672
  return;
@@ -3811,7 +3811,7 @@ const Se = vt(X2), $2 = ["light", "dark"], eI = we({
3811
3811
  var i;
3812
3812
  return !!(!e.label && t && t.inputIds && ((i = t.inputIds) == null ? void 0 : i.length) <= 1);
3813
3813
  });
3814
- return Ge(() => {
3814
+ return Ye(() => {
3815
3815
  a = le([yt(e, "id"), n], ([i, u]) => {
3816
3816
  const c = i ?? (u ? void 0 : kn().value);
3817
3817
  c !== r.value && (t != null && t.removeInputId && (r.value && t.removeInputId(r.value), !(o != null && o.value) && !u && c && t.addInputId(c)), r.value = c);
@@ -3977,7 +3977,7 @@ const Za = (e, t) => {
3977
3977
  };
3978
3978
  return le(() => o.rules, () => {
3979
3979
  o.validateOnRuleChange && m().catch((b) => Je(b));
3980
- }, { deep: !0 }), Ye(Ko, bt({
3980
+ }, { deep: !0 }), Ge(Ko, bt({
3981
3981
  ...Qt(o),
3982
3982
  emit: n,
3983
3983
  resetFields: p,
@@ -4713,7 +4713,7 @@ var VI = U({
4713
4713
  t.default && e.isAutoWidth && (p === "update" ? l.value = i() : p === "remove" && (n == null || n.deregisterLabelWidth(l.value)));
4714
4714
  });
4715
4715
  }, c = () => u("update");
4716
- return Ge(() => {
4716
+ return Ye(() => {
4717
4717
  c();
4718
4718
  }), Bt(() => {
4719
4719
  u("remove");
@@ -4859,7 +4859,7 @@ const zI = ["role", "aria-labelledby"], HI = U({
4859
4859
  clearValidate: V,
4860
4860
  validate: J
4861
4861
  });
4862
- return Ye(uo, fe), Ge(() => {
4862
+ return Ge(uo, fe), Ye(() => {
4863
4863
  n.prop && (r == null || r.addField(fe), m = sd(P.value));
4864
4864
  }), Bt(() => {
4865
4865
  r == null || r.removeField(fe);
@@ -5205,7 +5205,7 @@ const ZI = we({
5205
5205
  ke(() => me()), o.validateEvent && ((he = d == null ? void 0 : d.validate) == null || he.call(d, "change").catch((ze) => Je(ze)));
5206
5206
  }), le(Y, () => de()), le(() => o.type, async () => {
5207
5207
  await ke(), de(), me();
5208
- }), Ge(() => {
5208
+ }), Ye(() => {
5209
5209
  !o.formatter && o.parser && Je("ElInput", "If you set the parser, you also need to set the formatter."), de(), ke(me);
5210
5210
  }), t({
5211
5211
  input: h,
@@ -5645,10 +5645,10 @@ const dB = we({
5645
5645
  var k;
5646
5646
  B(), u.value && ((k = f.value) == null || k.handleScroll(u.value));
5647
5647
  });
5648
- }), Ye(Mv, bt({
5648
+ }), Ge(Mv, bt({
5649
5649
  scrollbarElement: i,
5650
5650
  wrapElement: u
5651
- })), Ge(() => {
5651
+ })), Ye(() => {
5652
5652
  o.native || ke(() => {
5653
5653
  B();
5654
5654
  });
@@ -5726,7 +5726,7 @@ const No = vt(gB), Nu = Symbol("popper"), xv = Symbol("popperContent"), mB = [
5726
5726
  referenceRef: l,
5727
5727
  role: i
5728
5728
  };
5729
- return t(u), Ye(Nu, u), (c, p) => te(c.$slots, "default");
5729
+ return t(u), Ge(Nu, u), (c, p) => te(c.$slots, "default");
5730
5730
  }
5731
5731
  });
5732
5732
  var yB = /* @__PURE__ */ Ce(AB, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);
@@ -5851,7 +5851,7 @@ const Rv = we({
5851
5851
  return o.value;
5852
5852
  }), u = I(() => i.value ? `${n.open}` : void 0);
5853
5853
  let c;
5854
- return Ge(() => {
5854
+ return Ye(() => {
5855
5855
  le(() => n.virtualRef, (p) => {
5856
5856
  p && (r.value = lo(p));
5857
5857
  }, {
@@ -5974,7 +5974,7 @@ const OB = () => {
5974
5974
  Qu.value = "pointer", ms.value = window.performance.now();
5975
5975
  }, Ud = () => {
5976
5976
  Qu.value = "keyboard", ms.value = window.performance.now();
5977
- }, RB = () => (Ge(() => {
5977
+ }, RB = () => (Ye(() => {
5978
5978
  Ja === 0 && (document.addEventListener("mousedown", Xa), document.addEventListener("touchstart", Xa), document.addEventListener("keydown", Ud)), Ja++;
5979
5979
  }), Bt(() => {
5980
5980
  Ja--, Ja <= 0 && (document.removeEventListener("mousedown", Xa), document.removeEventListener("touchstart", Xa), document.removeEventListener("keydown", Ud));
@@ -6046,7 +6046,7 @@ const OB = () => {
6046
6046
  }
6047
6047
  }
6048
6048
  };
6049
- Ye(Lu, {
6049
+ Ge(Lu, {
6050
6050
  focusTrapRef: n,
6051
6051
  onKeydown: i
6052
6052
  }), le(() => e.focusTrapEl, (m) => {
@@ -6108,7 +6108,7 @@ const OB = () => {
6108
6108
  m.addEventListener(Vs, c), m.dispatchEvent(g), !g.defaultPrevented && (a.value == "keyboard" || !PB() || m.contains(document.activeElement)) && to(o ?? document.body), m.removeEventListener(Vs, u), Hd.remove(l);
6109
6109
  }
6110
6110
  }
6111
- return Ge(() => {
6111
+ return Ye(() => {
6112
6112
  e.trapped && f(), le(() => e.trapped, (m) => {
6113
6113
  m ? f() : v();
6114
6114
  });
@@ -6283,7 +6283,7 @@ const WB = 0, jB = (e) => {
6283
6283
  s(i)
6284
6284
  ])
6285
6285
  })), p = I(() => zB(e.referenceEl) || s(o)), { attributes: d, state: f, styles: v, update: m, forceUpdate: g, instanceRef: A } = F2(p, n, c);
6286
- return le(A, (h) => t.value = h), Ge(() => {
6286
+ return le(A, (h) => t.value = h), Ye(() => {
6287
6287
  le(() => {
6288
6288
  var h;
6289
6289
  return (h = s(p)) == null ? void 0 : h.getBoundingClientRect();
@@ -6376,11 +6376,11 @@ const WB = 0, jB = (e) => {
6376
6376
  attributes: d,
6377
6377
  role: A
6378
6378
  }), R = be(uo, void 0), F = M();
6379
- Ye(xv, {
6379
+ Ge(xv, {
6380
6380
  arrowStyle: y,
6381
6381
  arrowRef: f,
6382
6382
  arrowOffset: F
6383
- }), R && (R.addInputId || R.removeInputId) && Ye(uo, {
6383
+ }), R && (R.addInputId || R.removeInputId) && Ge(uo, {
6384
6384
  ...R,
6385
6385
  addInputId: At,
6386
6386
  removeInputId: At
@@ -6391,7 +6391,7 @@ const WB = 0, jB = (e) => {
6391
6391
  }, j = () => {
6392
6392
  N(!1), o.visible && o.focusOnShow ? a.value = !0 : o.visible === !1 && (a.value = !1);
6393
6393
  };
6394
- return Ge(() => {
6394
+ return Ye(() => {
6395
6395
  le(() => o.triggerTargetEl, (O, Q) => {
6396
6396
  P == null || P(), P = void 0;
6397
6397
  const W = s(O || v.value), Y = s(Q || v.value);
@@ -6681,7 +6681,7 @@ const c4 = ["innerHTML"], d4 = { key: 1 }, f4 = U({
6681
6681
  open: p,
6682
6682
  close: d
6683
6683
  }), g = I(() => Lt(o.visible) && !f.value);
6684
- Ye(hs, {
6684
+ Ge(hs, {
6685
6685
  controlled: g,
6686
6686
  id: r,
6687
6687
  open: _l(u),
@@ -6859,7 +6859,7 @@ const b4 = vt(y4), Nv = Symbol("breadcrumbKey"), C4 = we({
6859
6859
  props: C4,
6860
6860
  setup(e) {
6861
6861
  const t = e, n = ge("breadcrumb"), o = M();
6862
- return Ye(Nv, t), Ge(() => {
6862
+ return Ge(Nv, t), Ye(() => {
6863
6863
  const r = o.value.querySelectorAll(`.${n.e("item")}`);
6864
6864
  r.length && r[r.length - 1].setAttribute("aria-current", "page");
6865
6865
  }), (r, a) => (w(), D("div", {
@@ -7637,7 +7637,7 @@ const Z4 = {
7637
7637
  props: Z4,
7638
7638
  setup(e) {
7639
7639
  const t = e;
7640
- Ye(Qv, bt({
7640
+ Ge(Qv, bt({
7641
7641
  size: yt(t, "size"),
7642
7642
  type: yt(t, "type")
7643
7643
  }));
@@ -8338,7 +8338,7 @@ const jv = /* @__PURE__ */ Vn($4), qd = ["hours", "minutes", "seconds"], Ei = "H
8338
8338
  }, ye = (q, X, ae) => {
8339
8339
  n("panel-change", q, X, ae);
8340
8340
  };
8341
- return Ye("EP_PICKER_BASE", {
8341
+ return Ge("EP_PICKER_BASE", {
8342
8342
  props: o
8343
8343
  }), t({
8344
8344
  focus: W,
@@ -8910,7 +8910,7 @@ const vS = function(e, t) {
8910
8910
  };
8911
8911
  T("hours"), T("minutes"), T("seconds");
8912
8912
  };
8913
- Ge(() => {
8913
+ Ye(() => {
8914
8914
  ke(() => {
8915
8915
  !n.arrowControl && x(), E(), n.role === "start" && y("hours");
8916
8916
  });
@@ -9280,7 +9280,7 @@ var BS = U({
9280
9280
  emits: ["update:modelValue"],
9281
9281
  setup(e, t) {
9282
9282
  const n = M(), [o, r] = e.isRange ? ["timerange", IS] : ["time", zl], a = (l) => t.emit("update:modelValue", l);
9283
- return Ye("ElPopperOptions", e.popperOptions), t.expose({
9283
+ return Ge("ElPopperOptions", e.popperOptions), t.expose({
9284
9284
  focus: (l) => {
9285
9285
  var i;
9286
9286
  (i = n.value) == null || i.handleFocusInput(l);
@@ -9765,7 +9765,7 @@ const pg = we({
9765
9765
  i(c);
9766
9766
  }
9767
9767
  });
9768
- return Ye(yr, {
9768
+ return Ge(yr, {
9769
9769
  ...Ca(Qt(n), [
9770
9770
  "size",
9771
9771
  "min",
@@ -10004,12 +10004,12 @@ const Eg = we({
10004
10004
  }), c = (d) => {
10005
10005
  t(_e, d), ke(() => t("change", d));
10006
10006
  };
10007
- Ge(() => {
10007
+ Ye(() => {
10008
10008
  const d = a.value.querySelectorAll("[type=radio]"), f = d[0];
10009
10009
  !Array.from(d).some((v) => v.checked) && f && (f.tabIndex = 0);
10010
10010
  });
10011
10011
  const p = I(() => n.name || r.value);
10012
- return Ye(yg, bt({
10012
+ return Ge(yg, bt({
10013
10013
  ...Qt(n),
10014
10014
  changeEvent: c,
10015
10015
  name: p
@@ -11945,7 +11945,7 @@ var B8 = U({
11945
11945
  slots: o
11946
11946
  }) {
11947
11947
  const r = ge("picker-panel");
11948
- Ye("ElPopperOptions", bt(yt(e, "popperOptions"))), Ye(Wu, {
11948
+ Ge("ElPopperOptions", bt(yt(e, "popperOptions"))), Ge(Wu, {
11949
11949
  slots: o,
11950
11950
  pickerNs: r
11951
11951
  });
@@ -12256,7 +12256,7 @@ const Hg = we({
12256
12256
  })) : u.value && E();
12257
12257
  }), le(() => e.fullscreen, (Q) => {
12258
12258
  t.value && (Q ? (a = t.value.style.transform, t.value.style.transform = "") : t.value.style.transform = a);
12259
- }), Ge(() => {
12259
+ }), Ye(() => {
12260
12260
  e.modelValue && (u.value = !0, p.value = !0, C());
12261
12261
  }), {
12262
12262
  afterEnter: h,
@@ -12320,7 +12320,7 @@ const Hg = we({
12320
12320
  onCloseRequested: B,
12321
12321
  onFocusoutPrevented: k
12322
12322
  } = L8(n, a);
12323
- Ye(Vg, {
12323
+ Ge(Vg, {
12324
12324
  dialogRef: a,
12325
12325
  headerRef: l,
12326
12326
  bodyId: p,
@@ -12445,7 +12445,7 @@ const Ug = "data-el-collection-item", Wg = (e) => {
12445
12445
  name: t,
12446
12446
  setup() {
12447
12447
  const i = M(null), u = /* @__PURE__ */ new Map();
12448
- Ye(o, {
12448
+ Ge(o, {
12449
12449
  itemMap: u,
12450
12450
  getItems: () => {
12451
12451
  const p = s(i);
@@ -12462,9 +12462,9 @@ const Ug = "data-el-collection-item", Wg = (e) => {
12462
12462
  name: n,
12463
12463
  setup(i, { attrs: u }) {
12464
12464
  const c = M(null), p = be(o, void 0);
12465
- Ye(r, {
12465
+ Ge(r, {
12466
12466
  collectionItemRef: c
12467
- }), Ge(() => {
12467
+ }), Ye(() => {
12468
12468
  const d = s(c);
12469
12469
  d && p.itemMap.set(d, {
12470
12470
  ref: d,
@@ -12576,7 +12576,7 @@ const Ug = "data-el-collection-item", Wg = (e) => {
12576
12576
  }), m = (...g) => {
12577
12577
  t("entryFocus", ...g);
12578
12578
  };
12579
- Ye(Gu, {
12579
+ Ge(Gu, {
12580
12580
  currentTabbedId: _l(o),
12581
12581
  loop: yt(e, "loop"),
12582
12582
  tabIndex: I(() => s(r) ? -1 : 0),
@@ -12676,7 +12676,7 @@ const d6 = U({
12676
12676
  });
12677
12677
  }
12678
12678
  }), f = I(() => n.value === s(i));
12679
- return Ye(jg, {
12679
+ return Ge(jg, {
12680
12680
  rovingFocusGroupItemRef: u,
12681
12681
  tabIndex: I(() => s(f) ? 0 : -1),
12682
12682
  handleMousedown: c,
@@ -12856,14 +12856,14 @@ const wl = we({
12856
12856
  function O() {
12857
12857
  t("visible-change", !1);
12858
12858
  }
12859
- return Ye(As, {
12859
+ return Ge(As, {
12860
12860
  contentRef: u,
12861
12861
  role: I(() => e.role),
12862
12862
  triggerId: A,
12863
12863
  isUsingKeyboard: d,
12864
12864
  onItemEnter: k,
12865
12865
  onItemLeave: R
12866
- }), Ye("elDropdown", {
12866
+ }), Ge("elDropdown", {
12867
12867
  instance: n,
12868
12868
  dropdownSize: C,
12869
12869
  handleClick: h,
@@ -13572,7 +13572,7 @@ const f3 = vt(d3), p3 = we({
13572
13572
  return le(() => o.modelValue, (O) => {
13573
13573
  const Q = E(i.userInput), W = E(O, !0);
13574
13574
  !Ue(Q) && (!Q || Q !== W) && (i.currentValue = W, i.userInput = null);
13575
- }, { immediate: !0 }), Ge(() => {
13575
+ }, { immediate: !0 }), Ye(() => {
13576
13576
  var O;
13577
13577
  const { min: Q, max: W, modelValue: Y } = o, x = (O = l.value) == null ? void 0 : O.input;
13578
13578
  if (x.setAttribute("role", "spinbutton"), Number.isFinite(W) ? x.setAttribute("aria-valuemax", String(W)) : x.removeAttribute("aria-valuemax"), Number.isFinite(Q) ? x.setAttribute("aria-valuemin", String(Q)) : x.removeAttribute("aria-valuemin"), x.setAttribute("aria-valuenow", String(i.currentValue)), x.setAttribute("aria-disabled", String(m.value)), !Ue(Y) && Y != null) {
@@ -13928,7 +13928,7 @@ var _u = U({
13928
13928
  }, J = (V) => {
13929
13929
  delete d.value[V.index];
13930
13930
  };
13931
- Ye(`subMenu:${o.uid}`, {
13931
+ Ge(`subMenu:${o.uid}`, {
13932
13932
  addSubMenu: H,
13933
13933
  removeSubMenu: J,
13934
13934
  handleMouseleave: T,
@@ -13938,7 +13938,7 @@ var _u = U({
13938
13938
  }
13939
13939
  return n({
13940
13940
  opened: B
13941
- }), Ge(() => {
13941
+ }), Ye(() => {
13942
13942
  u.addSubMenu(j), c.addSubMenu(j);
13943
13943
  }), Bt(() => {
13944
13944
  c.removeSubMenu(j), u.removeSubMenu(j);
@@ -14158,7 +14158,7 @@ var T3 = U({
14158
14158
  }, j = (W) => {
14159
14159
  delete v.value[W.index];
14160
14160
  };
14161
- Ye("rootMenu", bt({
14161
+ Ge("rootMenu", bt({
14162
14162
  props: e,
14163
14163
  openedMenus: p,
14164
14164
  items: f,
@@ -14177,14 +14177,14 @@ var T3 = U({
14177
14177
  closeMenu: b,
14178
14178
  handleMenuItemClick: C,
14179
14179
  handleSubMenuClick: y
14180
- })), Ye(`subMenu:${r.uid}`, {
14180
+ })), Ge(`subMenu:${r.uid}`, {
14181
14181
  addSubMenu: N,
14182
14182
  removeSubMenu: j,
14183
14183
  mouseInChild: M(!1),
14184
14184
  level: 0
14185
14185
  });
14186
14186
  }
14187
- return Ge(() => {
14187
+ return Ye(() => {
14188
14188
  e.mode === "horizontal" && new w3(r.vnode.el, i.namespace.value);
14189
14189
  }), o({
14190
14190
  open: (j) => {
@@ -14258,7 +14258,7 @@ const O3 = we({
14258
14258
  route: e.route
14259
14259
  }), t("click", p));
14260
14260
  };
14261
- return Ge(() => {
14261
+ return Ye(() => {
14262
14262
  u.addSubMenu(p), o.addMenuItem(p);
14263
14263
  }), Bt(() => {
14264
14264
  u.removeSubMenu(p), o.removeMenuItem(p);
@@ -14549,7 +14549,7 @@ const nM = U({
14549
14549
  var i;
14550
14550
  a.value = `${(i = e.selectWrapper) == null ? void 0 : i.offsetWidth}px`;
14551
14551
  }
14552
- return Ge(() => {
14552
+ return Ye(() => {
14553
14553
  l(), In(e.selectWrapper, l);
14554
14554
  }), {
14555
14555
  ns: t,
@@ -15142,7 +15142,7 @@ const uf = "ElSelect", iM = U({
15142
15142
  maxWidth: `${s(wt) - 32}px`,
15143
15143
  width: "100%"
15144
15144
  })), Hn = I(() => ({ maxWidth: `${s(wt) > 123 ? s(wt) - 123 : s(wt) - 75}px` }));
15145
- Ye(Ha, bt({
15145
+ Ge(Ha, bt({
15146
15146
  props: e,
15147
15147
  options: ee,
15148
15148
  optionsArray: i,
@@ -15158,7 +15158,7 @@ const uf = "ElSelect", iM = U({
15158
15158
  setSelected: y,
15159
15159
  queryChange: dt,
15160
15160
  groupQueryChange: Ke
15161
- })), Ge(() => {
15161
+ })), Ye(() => {
15162
15162
  a.cachedPlaceHolder = X.value = e.placeholder || (() => r("el.select.placeholder")), e.multiple && Array.isArray(e.modelValue) && e.modelValue.length > 0 && (X.value = ""), In(We, p), e.remote && e.multiple && C(), ke(() => {
15163
15163
  const en = ne.value && ne.value.$el;
15164
15164
  if (en && (wt.value = en.getBoundingClientRect().width, t.slots.prefix)) {
@@ -15584,11 +15584,11 @@ const vM = U({
15584
15584
  },
15585
15585
  setup(e) {
15586
15586
  const t = ge("select"), n = M(!0), o = He(), r = M([]);
15587
- Ye(lm, bt({
15587
+ Ge(lm, bt({
15588
15588
  ...Qt(e)
15589
15589
  }));
15590
15590
  const a = be(Ha);
15591
- Ge(() => {
15591
+ Ye(() => {
15592
15592
  r.value = l(o.subTree);
15593
15593
  });
15594
15594
  const l = (u) => {
@@ -16007,7 +16007,7 @@ var UM = U({
16007
16007
  function b(y, C) {
16008
16008
  y && (y.props || (y.props = {}), y.props.class = [y.props.class, C].join(" "));
16009
16009
  }
16010
- return Ye(am, {
16010
+ return Ge(am, {
16011
16011
  pageCount: f,
16012
16012
  disabled: I(() => e.disabled),
16013
16013
  currentPage: v,
@@ -16547,7 +16547,7 @@ const fx = vt(dx), im = Symbol("sliderContextKey"), px = we({
16547
16547
  [fn]: Zs
16548
16548
  }, gx = (e, t, n) => {
16549
16549
  const o = M();
16550
- return Ge(async () => {
16550
+ return Ye(async () => {
16551
16551
  e.range ? (Array.isArray(e.modelValue) ? (t.firstValue = Math.max(e.min, e.modelValue[0]), t.secondValue = Math.min(e.max, e.modelValue[1])) : (t.firstValue = e.min, t.secondValue = e.max), t.oldValue = [t.firstValue, t.secondValue]) : (typeof e.modelValue != "number" || Number.isNaN(e.modelValue) ? t.firstValue = e.min : t.firstValue = Math.min(e.max, Math.max(e.min, e.modelValue)), t.oldValue = t.firstValue), Nt(window, "resize", n), await ke(), n();
16552
16552
  }), {
16553
16553
  sliderWrapper: o
@@ -16909,7 +16909,7 @@ const Nx = ["id", "role", "aria-label", "aria-labelledby"], Lx = { key: 1 }, Qx
16909
16909
  }), { sliderWrapper: J } = gx(o, l, A), { firstValue: V, secondValue: $, sliderSize: ie } = Qt(l), me = (fe) => {
16910
16910
  l.dragging = fe;
16911
16911
  };
16912
- return Ye(im, {
16912
+ return Ge(im, {
16913
16913
  ...Qt(o),
16914
16914
  sliderSize: ie,
16915
16915
  disabled: d,
@@ -17075,7 +17075,7 @@ const Hx = vt(zx), Ux = we({
17075
17075
  r.value.forEach((a, l) => {
17076
17076
  a.setIndex(l);
17077
17077
  });
17078
- }), Ye("ElSteps", { props: n, steps: r }), le(() => n.active, (a, l) => {
17078
+ }), Ge("ElSteps", { props: n, steps: r }), le(() => n.active, (a, l) => {
17079
17079
  t(fn, a, l);
17080
17080
  }), (a, l) => (w(), D("div", {
17081
17081
  class: S([s(o).b(), s(o).m(a.simple ? "simple" : a.direction)])
@@ -17109,7 +17109,7 @@ const qx = we({
17109
17109
  props: qx,
17110
17110
  setup(e) {
17111
17111
  const t = e, n = ge("step"), o = M(-1), r = M({}), a = M(""), l = be("ElSteps"), i = He();
17112
- Ge(() => {
17112
+ Ye(() => {
17113
17113
  le([
17114
17114
  () => l.props.active,
17115
17115
  () => l.props.processStatus,
@@ -17385,7 +17385,7 @@ const Jx = vt(Gx, {
17385
17385
  var E, B;
17386
17386
  (B = (E = d.value) == null ? void 0 : E.focus) == null || B.call(E);
17387
17387
  };
17388
- return Ge(() => {
17388
+ return Ye(() => {
17389
17389
  d.value.checked = A.value;
17390
17390
  }), t({
17391
17391
  focus: C,
@@ -18676,7 +18676,7 @@ function mm(e) {
18676
18676
  const t = He();
18677
18677
  Xi(() => {
18678
18678
  n.value.addObserver(t);
18679
- }), Ge(() => {
18679
+ }), Ye(() => {
18680
18680
  o(n.value), r(n.value);
18681
18681
  }), dr(() => {
18682
18682
  o(n.value), r(n.value);
@@ -18908,7 +18908,7 @@ var zT = U({
18908
18908
  },
18909
18909
  setup(e, { emit: t }) {
18910
18910
  const n = He(), o = be(zn), r = ge("table"), a = M({}), { onColumnsChange: l, onScrollableChange: i } = mm(o);
18911
- Ge(async () => {
18911
+ Ye(async () => {
18912
18912
  await ke(), await ke();
18913
18913
  const { prop: B, order: k } = e.defaultSort;
18914
18914
  o == null || o.store.commit("sort", { prop: B, order: k, init: !0 });
@@ -19527,7 +19527,7 @@ function JT(e, t, n, o) {
19527
19527
  })), C = () => {
19528
19528
  b.value && t.updateElsHeight(), t.updateColumnsWidth(), requestAnimationFrame(R);
19529
19529
  };
19530
- Ge(async () => {
19530
+ Ye(async () => {
19531
19531
  await ke(), n.updateColumns(), F(), requestAnimationFrame(C);
19532
19532
  const L = o.vnode.el, T = o.refs.headerWrapper;
19533
19533
  e.flexible && L && L.parentElement && (L.parentElement.style.minWidth = "0"), u.value = {
@@ -19667,7 +19667,7 @@ function XT(e) {
19667
19667
  l.forEach((i) => i());
19668
19668
  }), t.value.observe(r, a);
19669
19669
  };
19670
- Ge(() => {
19670
+ Ye(() => {
19671
19671
  n();
19672
19672
  }), Oa(() => {
19673
19673
  var o;
@@ -19800,7 +19800,7 @@ const nO = U({
19800
19800
  ],
19801
19801
  setup(e) {
19802
19802
  const { t } = it(), n = ge("table"), o = He();
19803
- Ye(zn, o);
19803
+ Ge(zn, o);
19804
19804
  const r = kT(o, e);
19805
19805
  o.store = r;
19806
19806
  const a = new xT({
@@ -20448,7 +20448,7 @@ var Am = U({
20448
20448
  "filterPlacement"
20449
20449
  ]);
20450
20450
  P = mT(E, P), P = AT(v, d, f)(P), o.value = P, a(), l();
20451
- }), Ge(() => {
20451
+ }), Ye(() => {
20452
20452
  var y;
20453
20453
  const C = p.value, E = u.value ? C.vnode.el.children : (y = C.refs.hiddenColumns) == null ? void 0 : y.children, B = () => g(E || [], n.vnode.el);
20454
20454
  o.value.getColumnIndex = B, B() > -1 && r.value.store.commit("insertColumn", o.value, u.value ? C.columnConfig.value : null, h);
@@ -20608,7 +20608,7 @@ const EO = we({
20608
20608
  F === "hidden" ? g.value = !1 : F === "visible" && setTimeout(() => g.value = !0, 50);
20609
20609
  }), le(i, (F) => {
20610
20610
  F ? setTimeout(() => g.value = !0, 50) : g.value = !1;
20611
- }), In(p, E), Ge(() => setTimeout(() => C(), 0)), dr(() => E()), t({
20611
+ }), In(p, E), Ye(() => setTimeout(() => C(), 0)), dr(() => E()), t({
20612
20612
  scrollToActiveTab: C,
20613
20613
  removeFocus: R
20614
20614
  }), le(() => e.panes, () => o.update(), {
@@ -20745,7 +20745,7 @@ var MO = U({
20745
20745
  }, I(() => !!e.activeName)), le(() => e.activeName, (h) => v(h)), le(() => e.modelValue, (h) => v(h)), le(d, async () => {
20746
20746
  var h;
20747
20747
  await ke(), (h = p.value) == null || h.scrollToActiveTab();
20748
- }), Ye(ys, {
20748
+ }), Ge(ys, {
20749
20749
  props: e,
20750
20750
  currentName: d,
20751
20751
  registerPane: u,
@@ -20825,7 +20825,7 @@ const xO = we({
20825
20825
  index: l,
20826
20826
  isClosable: i
20827
20827
  });
20828
- return Ge(() => {
20828
+ return Ye(() => {
20829
20829
  r.registerPane(f);
20830
20830
  }), Oa(() => {
20831
20831
  r.unregisterPane(f.uid);
@@ -21308,7 +21308,7 @@ function wm(e) {
21308
21308
  },
21309
21309
  children: []
21310
21310
  };
21311
- return t && t.children.push(n), Ye("TreeNodeMap", n), {
21311
+ return t && t.children.push(n), Ge("TreeNodeMap", n), {
21312
21312
  broadcastExpanded: (o) => {
21313
21313
  if (e.accordion)
21314
21314
  for (const r of n.children)
@@ -21325,7 +21325,7 @@ function QO({ props: e, ctx: t, el$: n, dropIndicator$: o, store: r }) {
21325
21325
  allowDrop: !0,
21326
21326
  dropType: null
21327
21327
  });
21328
- return Ye(Em, {
21328
+ return Ge(Em, {
21329
21329
  treeNodeDragStart: ({ event: p, treeNode: d }) => {
21330
21330
  if (typeof e.allowDrag == "function" && !e.allowDrag(d.node))
21331
21331
  return p.preventDefault(), !1;
@@ -21394,7 +21394,7 @@ const VO = U({
21394
21394
  emits: ["node-expand"],
21395
21395
  setup(e, t) {
21396
21396
  const n = ge("tree"), { broadcastExpanded: o } = wm(e), r = be("RootTree"), a = M(!1), l = M(!1), i = M(null), u = M(null), c = M(null), p = be(Em), d = He();
21397
- Ye("NodeInstance", d), r || Je("Tree", "Can not find node's tree."), e.node.expanded && (a.value = !0, l.value = !0);
21397
+ Ge("NodeInstance", d), r || Je("Tree", "Can not find node's tree."), e.node.expanded && (a.value = !0, l.value = !0);
21398
21398
  const f = r.props.children || "children";
21399
21399
  le(() => {
21400
21400
  const F = e.node.data[f];
@@ -21578,7 +21578,7 @@ function UO(e, t, n, o, r, a) {
21578
21578
  var WO = /* @__PURE__ */ Ce(VO, [["render", UO], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);
21579
21579
  function jO({ el$: e }, t) {
21580
21580
  const n = ge("tree"), o = Gt([]), r = Gt([]);
21581
- Ge(() => {
21581
+ Ye(() => {
21582
21582
  l();
21583
21583
  }), dr(() => {
21584
21584
  o.value = Array.from(e.value.querySelectorAll("[role=treeitem]")), r.value = Array.from(e.value.querySelectorAll("input[type=checkbox]"));
@@ -21813,14 +21813,14 @@ const YO = U({
21813
21813
  throw new Error("[Tree] nodeKey is required in updateKeyChild");
21814
21814
  r.value.updateChildren(x, L);
21815
21815
  };
21816
- return Ye("RootTree", {
21816
+ return Ge("RootTree", {
21817
21817
  ctx: t,
21818
21818
  props: e,
21819
21819
  store: r,
21820
21820
  root: a,
21821
21821
  currentNode: l,
21822
21822
  instance: He()
21823
- }), Ye(uo, void 0), {
21823
+ }), Ge(uo, void 0), {
21824
21824
  ns: o,
21825
21825
  store: r,
21826
21826
  root: a,
@@ -22091,7 +22091,7 @@ const $O = U({
22091
22091
  tree: a,
22092
22092
  key: l
22093
22093
  }), p = bt({});
22094
- return o(p), Ge(() => {
22094
+ return o(p), Ye(() => {
22095
22095
  Object.assign(p, {
22096
22096
  ...Ca(a.value, [
22097
22097
  "filter",
@@ -22745,7 +22745,7 @@ const wf = "ElUpload", MF = (e) => {
22745
22745
  c.value.forEach(({ url: h }) => {
22746
22746
  h != null && h.startsWith("blob:") && URL.revokeObjectURL(h);
22747
22747
  });
22748
- }), Ye(Bm, {
22748
+ }), Ge(Bm, {
22749
22749
  accept: yt(n, "accept")
22750
22750
  }), t({
22751
22751
  abort: l,
@@ -23117,7 +23117,7 @@ const Ui = function(e = {}) {
23117
23117
  function B({ code: k }) {
23118
23118
  k === Ee.esc && E();
23119
23119
  }
23120
- return Ge(() => {
23120
+ return Ye(() => {
23121
23121
  y(), i(), c.value = !0;
23122
23122
  }), le(() => n.repeatNum, () => {
23123
23123
  C(), y();
@@ -23386,7 +23386,7 @@ const _n = Wp(ur, "$message"), $F = U({
23386
23386
  }) : (c.editorErrorMessage = "", c.validateError = !1));
23387
23387
  });
23388
23388
  const E = I(() => e.draggable);
23389
- Yp(g, A, E), Ge(async () => {
23389
+ Yp(g, A, E), Ye(async () => {
23390
23390
  await ke(), e.closeOnHashChange && window.addEventListener("hashchange", B);
23391
23391
  }), Bt(() => {
23392
23392
  e.closeOnHashChange && window.removeEventListener("hashchange", B);
@@ -23813,7 +23813,7 @@ const Cr = oo, Om = [
23813
23813
  function b({ code: y }) {
23814
23814
  y === Ee.delete || y === Ee.backspace ? A() : y === Ee.esc ? u.value && h() : g();
23815
23815
  }
23816
- return Ge(() => {
23816
+ return Ye(() => {
23817
23817
  g(), a(), u.value = !0;
23818
23818
  }), Nt(document, "keydown", b), t({
23819
23819
  visible: u,
@@ -25430,20 +25430,22 @@ var wr = {
25430
25430
  const QR = /* @__PURE__ */ U({
25431
25431
  __name: "MxSelect",
25432
25432
  setup(e, { expose: t }) {
25433
- const n = M(null);
25434
- return t(n), (o, r) => (w(), Z(s(hr), { locale: s(wr) }, {
25433
+ const n = M(null), o = {};
25434
+ return Ye(() => {
25435
+ n.value && Object.assign(o, n.value);
25436
+ }), t(o), (r, a) => (w(), Z(s(hr), { locale: s(wr) }, {
25435
25437
  default: z(() => [
25436
25438
  G(s(Ma), Pe({
25437
25439
  class: "mx-select",
25438
25440
  "popper-class": "mx-select-dropdown"
25439
- }, o.$attrs, {
25441
+ }, r.$attrs, {
25440
25442
  ref_key: "selectRef",
25441
25443
  ref: n
25442
25444
  }), $e({ _: 2 }, [
25443
- xe(o.$slots, (a, l, i) => ({
25444
- name: l,
25445
+ xe(r.$slots, (l, i, u) => ({
25446
+ name: i,
25445
25447
  fn: z(() => [
25446
- te(o.$slots, l, {}, void 0, !0)
25448
+ te(r.$slots, i, {}, void 0, !0)
25447
25449
  ])
25448
25450
  }))
25449
25451
  ]), 1040)
@@ -25452,7 +25454,7 @@ const QR = /* @__PURE__ */ U({
25452
25454
  }, 8, ["locale"]));
25453
25455
  }
25454
25456
  });
25455
- const Vr = /* @__PURE__ */ St(QR, [["__scopeId", "data-v-e77ef80a"]]), Wm = /* @__PURE__ */ U({
25457
+ const Vr = /* @__PURE__ */ St(QR, [["__scopeId", "data-v-92126402"]]), Wm = /* @__PURE__ */ U({
25456
25458
  __name: "MxOption",
25457
25459
  setup(e) {
25458
25460
  return (t, n) => (w(), Z(s(Ul), Pe({