ant-design-x-vue 1.0.5 → 1.0.7

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/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var U0 = Object.defineProperty;
2
2
  var G0 = (e, t, n) => t in e ? U0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Yn = (e, t, n) => G0(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { computed as $, inject as ve, provide as be, shallowRef as K, defineComponent as W, watch as Q, unref as ie, triggerRef as zt, Fragment as Ie, isVNode as Rt, Comment as q0, Text as om, reactive as ut, getCurrentInstance as Pt, onMounted as $e, onUpdated as Ao, onUnmounted as Mr, ref as G, watchEffect as ye, onBeforeUnmount as Be, createVNode as p, h as ho, Transition as un, withDirectives as Vn, resolveDirective as Y0, cloneVNode as rm, nextTick as Ve, toRef as we, withModifiers as $u, vShow as Mo, onBeforeMount as Z0, Teleport as Ui, createTextVNode as ur, isRef as Q0, toRefs as Is, toRaw as yo, render as dr, onBeforeUpdate as im, TransitionGroup as Ts, createApp as J0, useSlots as It, mergeProps as We, onWatcherCleanup as Ro, toValue as Ae, mergeDefaults as qe, useAttrs as am, useTemplateRef as bo, openBlock as lm, createElementBlock as sm, createElementVNode as co, useId as ey } from "vue";
4
+ import { computed as $, inject as ve, provide as be, shallowRef as K, defineComponent as W, watch as Q, unref as ie, triggerRef as zt, Fragment as Oe, isVNode as Rt, Comment as q0, Text as om, reactive as ut, getCurrentInstance as Pt, onMounted as $e, onUpdated as Ao, onUnmounted as Mr, ref as G, watchEffect as ye, onBeforeUnmount as Be, createVNode as p, h as ho, Transition as un, withDirectives as Vn, resolveDirective as Y0, cloneVNode as rm, nextTick as Ve, toRef as we, withModifiers as $u, vShow as Mo, onBeforeMount as Z0, Teleport as Ui, createTextVNode as ur, isRef as Q0, toRefs as Is, toRaw as yo, render as dr, onBeforeUpdate as im, TransitionGroup as Ts, createApp as J0, useSlots as It, mergeProps as We, onWatcherCleanup as Ro, toValue as Ae, mergeDefaults as qe, useAttrs as am, useTemplateRef as bo, openBlock as lm, createElementBlock as sm, createElementVNode as co, useId as ey } from "vue";
5
5
  const fr = function() {
6
6
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
7
7
  t[n] = arguments[n];
@@ -622,12 +622,12 @@ const Pl = (e) => e != null && e !== "", at = (e, t) => {
622
622
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
623
623
  const n = Array.isArray(e) ? e : [e], o = [];
624
624
  return n.forEach((r) => {
625
- Array.isArray(r) ? o.push(...tt(r, t)) : r && r.type === Ie ? r.key === bm ? o.push(r) : o.push(...tt(r.children, t)) : r && Rt(r) ? t && !Sm(r) ? o.push(r) : t || o.push(r) : Pl(r) && o.push(r);
625
+ Array.isArray(r) ? o.push(...tt(r, t)) : r && r.type === Oe ? r.key === bm ? o.push(r) : o.push(...tt(r.children, t)) : r && Rt(r) ? t && !Sm(r) ? o.push(r) : t || o.push(r) : Pl(r) && o.push(r);
626
626
  }), o;
627
627
  }, Xy = function(e) {
628
628
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
629
629
  if (Rt(e))
630
- return e.type === Ie ? t === "default" ? tt(e.children) : [] : e.children && e.children[t] ? tt(e.children[t](n)) : [];
630
+ return e.type === Oe ? t === "default" ? tt(e.children) : [] : e.children && e.children[t] ? tt(e.children[t](n)) : [];
631
631
  {
632
632
  const o = e.$slots[t] && e.$slots[t](n);
633
633
  return tt(o);
@@ -669,7 +669,7 @@ const Pl = (e) => e != null && e !== "", at = (e, t) => {
669
669
  const i = e.props && e.props[t];
670
670
  if (i !== void 0 && e.props !== null)
671
671
  return typeof i == "function" && o ? i(n) : i;
672
- e.type === Ie ? r = e.children : e.children && e.children[t] && (r = e.children[t], r = o && r ? r(n) : r);
672
+ e.type === Oe ? r = e.children : e.children && e.children[t] && (r = e.children[t], r = o && r ? r(n) : r);
673
673
  }
674
674
  return Array.isArray(r) && (r = tt(r), r = r.length === 1 ? r[0] : r, r = r.length === 0 ? void 0 : r), r;
675
675
  };
@@ -682,16 +682,16 @@ function qy(e, t) {
682
682
  return typeof o == "string" && (o = ky(o, t)), o;
683
683
  }
684
684
  function Yy(e) {
685
- return e.length === 1 && e[0].type === Ie;
685
+ return e.length === 1 && e[0].type === Oe;
686
686
  }
687
687
  function Sm(e) {
688
- return e && (e.type === q0 || e.type === Ie && e.children.length === 0 || e.type === om && e.children.trim() === "");
688
+ return e && (e.type === q0 || e.type === Oe && e.children.length === 0 || e.type === om && e.children.trim() === "");
689
689
  }
690
690
  function Dt() {
691
691
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
692
692
  const t = [];
693
693
  return e.forEach((n) => {
694
- Array.isArray(n) ? t.push(...n) : (n == null ? void 0 : n.type) === Ie ? t.push(...Dt(n.children)) : t.push(n);
694
+ Array.isArray(n) ? t.push(...n) : (n == null ? void 0 : n.type) === Oe ? t.push(...Dt(n.children)) : t.push(n);
695
695
  }), t.filter((n) => !Sm(n));
696
696
  }
697
697
  function Wt(e) {
@@ -3562,7 +3562,7 @@ const L1 = () => ({
3562
3562
  const {
3563
3563
  direction: r,
3564
3564
  prefixCls: i
3565
- } = Oe("empty", e), [a, l] = z1(i);
3565
+ } = Pe("empty", e), [a, l] = z1(i);
3566
3566
  return () => {
3567
3567
  var s, c;
3568
3568
  const u = i.value, d = v(v({}, e), o), {
@@ -3602,7 +3602,7 @@ Vs.PRESENTED_IMAGE_SIMPLE = () => ho(ig);
3602
3602
  const Vo = dn(Vs), ag = (e) => {
3603
3603
  const {
3604
3604
  prefixCls: t
3605
- } = Oe("empty", e);
3605
+ } = Pe("empty", e);
3606
3606
  return ((o) => {
3607
3607
  switch (o) {
3608
3608
  case "Table":
@@ -3632,7 +3632,7 @@ function F1(e) {
3632
3632
  const lg = Symbol("SizeContextKey"), sg = () => ve(lg, G(void 0)), H1 = (e) => {
3633
3633
  const t = sg();
3634
3634
  return be(lg, $(() => e.value || t.value)), e;
3635
- }, Oe = (e, t) => {
3635
+ }, Pe = (e, t) => {
3636
3636
  const n = sg(), o = Wn(), r = ve(As, v(v({}, cm), {
3637
3637
  renderEmpty: (b) => ho(ag, {
3638
3638
  componentName: b
@@ -6487,7 +6487,7 @@ const hi = ht(), Bd = (e) => {
6487
6487
  }, {
6488
6488
  default: this.getComponent
6489
6489
  });
6490
- return p(Ie, null, [l, s]);
6490
+ return p(Oe, null, [l, s]);
6491
6491
  }
6492
6492
  });
6493
6493
  var jx = function(e, t) {
@@ -7856,13 +7856,13 @@ const rw = () => ({
7856
7856
  component: T,
7857
7857
  invalidate: x.value
7858
7858
  }, j = z ? (se, ge) => {
7859
- const Pe = b(se, ge);
7859
+ const Ie = b(se, ge);
7860
7860
  return p(Ul, {
7861
- key: Pe,
7861
+ key: Ie,
7862
7862
  value: v(v({}, le), {
7863
7863
  order: ge,
7864
7864
  item: se,
7865
- itemKey: Pe,
7865
+ itemKey: Ie,
7866
7866
  registerSize: M,
7867
7867
  display: ge <= h.value
7868
7868
  })
@@ -7870,13 +7870,13 @@ const rw = () => ({
7870
7870
  default: () => [z(se, ge)]
7871
7871
  });
7872
7872
  } : (se, ge) => {
7873
- const Pe = b(se, ge);
7873
+ const Ie = b(se, ge);
7874
7874
  return p(yi, F(F({}, le), {}, {
7875
7875
  order: ge,
7876
- key: Pe,
7876
+ key: Ie,
7877
7877
  item: se,
7878
7878
  renderItem: E.value,
7879
- itemKey: Pe,
7879
+ itemKey: Ie,
7880
7880
  registerSize: M,
7881
7881
  display: ge <= h.value
7882
7882
  }), null);
@@ -8122,7 +8122,7 @@ const aw = {
8122
8122
  maxCount: e.maxTagCount,
8123
8123
  key: "overflow"
8124
8124
  }, null);
8125
- return p(Ie, null, [T, !y.length && !a.value && !R && p("span", {
8125
+ return p(Oe, null, [T, !y.length && !a.value && !R && p("span", {
8126
8126
  class: `${i.value}-placeholder`
8127
8127
  }, [x])]);
8128
8128
  };
@@ -8226,7 +8226,7 @@ const aw = {
8226
8226
  T = i.customSlots[(f = B.slots) === null || f === void 0 ? void 0 : f.title] || i.customSlots.title || P.label, typeof T == "function" && (T = T(B));
8227
8227
  } else
8228
8228
  T = R && P ? R(P.option) : P == null ? void 0 : P.label;
8229
- return p(Ie, null, [p("span", {
8229
+ return p(Oe, null, [p("span", {
8230
8230
  class: `${g}-selection-search`
8231
8231
  }, [p(Kg, {
8232
8232
  inputRef: C,
@@ -8251,7 +8251,7 @@ const aw = {
8251
8251
  }, null)]), !n.value && P && !a.value && p("span", {
8252
8252
  class: `${g}-selection-item`,
8253
8253
  title: l.value
8254
- }, [p(Ie, {
8254
+ }, [p(Oe, {
8255
8255
  key: (m = P.key) !== null && m !== void 0 ? m : P.value
8256
8256
  }, [T])]), s()]);
8257
8257
  };
@@ -8730,10 +8730,10 @@ const Cw = W({
8730
8730
  `, `\r
8731
8731
  `].includes(j))), D = (j, X, ee) => {
8732
8732
  var ae, se;
8733
- let ge = !0, Pe = j;
8733
+ let ge = !0, Ie = j;
8734
8734
  (ae = e.onActiveValueChange) === null || ae === void 0 || ae.call(e, null);
8735
8735
  const Te = ee ? null : aS(j, e.tokenSeparators);
8736
- return e.mode !== "combobox" && Te && (Pe = "", (se = e.onSearchSplit) === null || se === void 0 || se.call(e, Te), M(!1), ge = !1), e.onSearch && w.value !== Pe && e.onSearch(Pe, {
8736
+ return e.mode !== "combobox" && Te && (Ie = "", (se = e.onSearchSplit) === null || se === void 0 || se.call(e, Te), M(!1), ge = !1), e.onSearch && w.value !== Ie && e.onSearch(Ie, {
8737
8737
  source: X ? "typing" : "effect"
8738
8738
  }), ge;
8739
8739
  }, H = (j) => {
@@ -8772,8 +8772,8 @@ const Cw = W({
8772
8772
  values: [je]
8773
8773
  });
8774
8774
  }
8775
- for (var se = arguments.length, ge = new Array(se > 1 ? se - 1 : 0), Pe = 1; Pe < se; Pe++)
8776
- ge[Pe - 1] = arguments[Pe];
8775
+ for (var se = arguments.length, ge = new Array(se > 1 ? se - 1 : 0), Ie = 1; Ie < se; Ie++)
8776
+ ge[Ie - 1] = arguments[Ie];
8777
8777
  b.value && m.value && m.value.onKeydown(j, ...ge), (X = e.onKeydown) === null || X === void 0 || X.call(e, j, ...ge);
8778
8778
  }, B = function(j) {
8779
8779
  for (var X = arguments.length, ee = new Array(X > 1 ? X - 1 : 0), ae = 1; ae < X; ae++)
@@ -8826,9 +8826,9 @@ const Cw = W({
8826
8826
  });
8827
8827
  oe.push(je);
8828
8828
  }
8829
- for (var ge = arguments.length, Pe = new Array(ge > 1 ? ge - 1 : 0), Te = 1; Te < ge; Te++)
8830
- Pe[Te - 1] = arguments[Te];
8831
- (ee = e.onMousedown) === null || ee === void 0 || ee.call(e, j, ...Pe);
8829
+ for (var ge = arguments.length, Ie = new Array(ge > 1 ? ge - 1 : 0), Te = 1; Te < ge; Te++)
8830
+ Ie[Te - 1] = arguments[Te];
8831
+ (ee = e.onMousedown) === null || ee === void 0 || ee.call(e, j, ...Ie);
8832
8832
  }, te = K(null), le = () => {
8833
8833
  };
8834
8834
  return $e(() => {
@@ -8856,7 +8856,7 @@ const Cw = W({
8856
8856
  defaultOpen: se,
8857
8857
  mode: ge,
8858
8858
  // Search related
8859
- showSearch: Pe,
8859
+ showSearch: Ie,
8860
8860
  searchValue: Te,
8861
8861
  onSearch: je,
8862
8862
  // Icons
@@ -9642,7 +9642,7 @@ function y2(e) {
9642
9642
  hasFeedback: i,
9643
9643
  feedbackIcon: a,
9644
9644
  showArrow: l
9645
- } = e, s = e.suffixIcon || t.suffixIcon && t.suffixIcon(), c = e.clearIcon || t.clearIcon && t.clearIcon(), u = e.menuItemSelectedIcon || t.menuItemSelectedIcon && t.menuItemSelectedIcon(), d = e.removeIcon || t.removeIcon && t.removeIcon(), f = c ?? p(Tt, null, null), m = (S) => p(Ie, null, [l !== !1 && S, i && a]);
9645
+ } = e, s = e.suffixIcon || t.suffixIcon && t.suffixIcon(), c = e.clearIcon || t.clearIcon && t.clearIcon(), u = e.menuItemSelectedIcon || t.menuItemSelectedIcon && t.menuItemSelectedIcon(), d = e.removeIcon || t.removeIcon && t.removeIcon(), f = c ?? p(Tt, null, null), m = (S) => p(Oe, null, [l !== !1 && S, i && a]);
9646
9646
  let h = null;
9647
9647
  if (s !== void 0)
9648
9648
  h = m(s);
@@ -10155,7 +10155,7 @@ W({
10155
10155
  const {
10156
10156
  prefixCls: r,
10157
10157
  direction: i
10158
- } = Oe("space-compact", e), a = fa.useInject(), [l, s] = C2(r), c = $(() => ne(r.value, s.value, {
10158
+ } = Pe("space-compact", e), a = fa.useInject(), [l, s] = C2(r), c = $(() => ne(r.value, s.value, {
10159
10159
  [`${r.value}-rtl`]: i.value === "rtl",
10160
10160
  [`${r.value}-block`]: e.block,
10161
10161
  [`${r.value}-vertical`]: e.direction === "vertical"
@@ -11816,7 +11816,7 @@ const DP = (e) => {
11816
11816
  } = t;
11817
11817
  const r = K(!0), i = K(!1), a = K(1), l = K(null), s = K(null), {
11818
11818
  prefixCls: c
11819
- } = Oe("avatar", e), [u, d] = vv(c), f = zP(), m = $(() => e.size === "default" ? f.size : e.size), h = MP(), g = RP(() => {
11819
+ } = Pe("avatar", e), [u, d] = vv(c), f = zP(), m = $(() => e.size === "default" ? f.size : e.size), h = MP(), g = RP(() => {
11820
11820
  if (typeof e.size != "object")
11821
11821
  return;
11822
11822
  const x = TP.find((O) => h.value[O]);
@@ -12658,7 +12658,7 @@ const GP = (e) => {
12658
12658
  getPopupContainer: l,
12659
12659
  direction: s,
12660
12660
  rootPrefixCls: c
12661
- } = Oe("tooltip", e), u = $(() => {
12661
+ } = Pe("tooltip", e), u = $(() => {
12662
12662
  var A;
12663
12663
  return (A = e.open) !== null && A !== void 0 ? A : e.visible;
12664
12664
  }), d = G(kP([e.open, e.visible])), f = G();
@@ -12951,13 +12951,13 @@ const GP = (e) => {
12951
12951
  const {
12952
12952
  prefixCls: a,
12953
12953
  configProvider: l
12954
- } = Oe("popover", e), [s, c] = o4(a), u = $(() => l.getPrefixCls()), d = () => {
12954
+ } = Pe("popover", e), [s, c] = o4(a), u = $(() => l.getPrefixCls()), d = () => {
12955
12955
  var f, m;
12956
12956
  const {
12957
12957
  title: h = Dt((f = o.title) === null || f === void 0 ? void 0 : f.call(o)),
12958
12958
  content: g = Dt((m = o.content) === null || m === void 0 ? void 0 : m.call(o))
12959
12959
  } = e, y = !!(Array.isArray(h) ? h.length : h), S = !!(Array.isArray(g) ? g.length : h);
12960
- return !y && !S ? null : p(Ie, null, [y && p("div", {
12960
+ return !y && !S ? null : p(Oe, null, [y && p("div", {
12961
12961
  class: `${a.value}-title`
12962
12962
  }, [h]), p("div", {
12963
12963
  class: `${a.value}-inner-content`
@@ -13016,7 +13016,7 @@ const GP = (e) => {
13016
13016
  const {
13017
13017
  prefixCls: r,
13018
13018
  direction: i
13019
- } = Oe("avatar", e), a = $(() => `${r.value}-group`), [l, s] = vv(r);
13019
+ } = Pe("avatar", e), a = $(() => `${r.value}-group`), [l, s] = vv(r);
13020
13020
  return ye(() => {
13021
13021
  const c = {
13022
13022
  size: e.size,
@@ -13186,7 +13186,7 @@ const u4 = W({
13186
13186
  prefixCls: `${e.prefixCls}-menu`,
13187
13187
  onClick: l
13188
13188
  };
13189
- return p(Ie, {
13189
+ return p(Oe, {
13190
13190
  key: bm
13191
13191
  }, [e.arrow && p("div", {
13192
13192
  class: `${e.prefixCls}-arrow`
@@ -13398,7 +13398,7 @@ const y4 = W({
13398
13398
  const o = Pt(), {
13399
13399
  prefixCls: r,
13400
13400
  wave: i
13401
- } = Oe("wave", e), [, a] = f4(r), l = h4($(() => ne(r.value, a.value)), i);
13401
+ } = Pe("wave", e), [, a] = f4(r), l = h4($(() => ne(r.value, a.value)), i);
13402
13402
  let s;
13403
13403
  const c = () => {
13404
13404
  Ct(o).removeEventListener("click", s, !0);
@@ -13958,7 +13958,7 @@ const w4 = (e) => {
13958
13958
  const {
13959
13959
  prefixCls: o,
13960
13960
  direction: r
13961
- } = Oe("btn-group", e), [, , i] = kn();
13961
+ } = Pe("btn-group", e), [, , i] = kn();
13962
13962
  Iv.useProvide(ut({
13963
13963
  size: $(() => e.size)
13964
13964
  }));
@@ -14022,7 +14022,7 @@ const nt = W({
14022
14022
  autoInsertSpaceInButton: l,
14023
14023
  direction: s,
14024
14024
  size: c
14025
- } = Oe("btn", e), [u, d] = L4(a), f = Iv.useInject(), m = Wn(), h = $(() => {
14025
+ } = Pe("btn", e), [u, d] = L4(a), f = Iv.useInject(), m = Wn(), h = $(() => {
14026
14026
  var P;
14027
14027
  return (P = e.disabled) !== null && P !== void 0 ? P : m.value;
14028
14028
  }), g = K(null), y = K(void 0);
@@ -14647,7 +14647,7 @@ const X4 = nt.Group, Hi = W({
14647
14647
  prefixCls: a,
14648
14648
  direction: l,
14649
14649
  getPopupContainer: s
14650
- } = Oe("dropdown", e), c = $(() => `${a.value}-button`), [u, d] = Ev(a);
14650
+ } = Pe("dropdown", e), c = $(() => `${a.value}-button`), [u, d] = Ev(a);
14651
14651
  return () => {
14652
14652
  var f, m;
14653
14653
  const h = v(v({}, e), o), {
@@ -14793,7 +14793,7 @@ const Av = Symbol("OverrideContextKey"), Mv = () => ve(Av, void 0), q4 = (e) =>
14793
14793
  rootPrefixCls: a,
14794
14794
  direction: l,
14795
14795
  getPopupContainer: s
14796
- } = Oe("dropdown", e), [c, u] = Ev(i);
14796
+ } = Pe("dropdown", e), [c, u] = Ev(i);
14797
14797
  process.env.NODE_ENV !== "production" && [["visible", "open"], ["onVisibleChange", "onOpenChange"], ["onUpdate:visible", "onUpdate:open"]].forEach((y) => {
14798
14798
  let [S, C] = y;
14799
14799
  ot(e[S] === void 0, "Dropdown", `\`${S}\` is deprecated which will be removed in next major version, please use \`${C}\` instead.`);
@@ -15434,12 +15434,12 @@ const l6 = () => ({
15434
15434
  class: `${C.value}-title-content`
15435
15435
  }, [ce]);
15436
15436
  const Ye = Wt(ce) && ce.type === "span";
15437
- return p(Ie, null, [Me(typeof Se == "function" ? Se(e.originItemValue) : Se, {
15437
+ return p(Oe, null, [Me(typeof Se == "function" ? Se(e.originItemValue) : Se, {
15438
15438
  class: `${C.value}-item-icon`
15439
15439
  }, !1), Ye ? ce : p("span", {
15440
15440
  class: `${C.value}-title-content`
15441
15441
  }, [ce])]);
15442
- }, ge = $(() => I.value !== "inline" && g.value.length > 1 ? "vertical" : I.value), Pe = $(() => I.value === "horizontal" ? "vertical" : I.value), Te = $(() => ge.value === "horizontal" ? "vertical" : ge.value), je = () => {
15442
+ }, ge = $(() => I.value !== "inline" && g.value.length > 1 ? "vertical" : I.value), Ie = $(() => I.value === "horizontal" ? "vertical" : I.value), Te = $(() => ge.value === "horizontal" ? "vertical" : ge.value), je = () => {
15443
15443
  var ce, Se;
15444
15444
  const Ye = B.value, pt = (ce = e.icon) !== null && ce !== void 0 ? ce : (Se = n.icon) === null || Se === void 0 ? void 0 : Se.call(n, e), qn = e.expandIcon || n.expandIcon || H.value, Zt = se(Dr(n, e, "title"), pt);
15445
15445
  return p("div", {
@@ -15495,7 +15495,7 @@ const l6 = () => ({
15495
15495
  default: je
15496
15496
  });
15497
15497
  return p(ji, {
15498
- mode: Pe.value
15498
+ mode: Ie.value
15499
15499
  }, {
15500
15500
  default: () => [p(Vt.Item, F(F({
15501
15501
  component: "li"
@@ -15511,7 +15511,7 @@ const l6 = () => ({
15511
15511
  onMouseleave: te,
15512
15512
  "data-submenu-id": u
15513
15513
  }), {
15514
- default: () => p(Ie, null, [Ye(), !R.value && p(a6, {
15514
+ default: () => p(Oe, null, [Ye(), !R.value && p(a6, {
15515
15515
  id: ee,
15516
15516
  open: J.value,
15517
15517
  keyPath: g.value
@@ -16610,7 +16610,7 @@ const f6 = (e) => {
16610
16610
  const {
16611
16611
  direction: i,
16612
16612
  getPrefixCls: a
16613
- } = Oe("menu", e), l = Mv(), s = $(() => {
16613
+ } = Pe("menu", e), l = Mv(), s = $(() => {
16614
16614
  var U;
16615
16615
  return a("menu", e.prefixCls || ((U = l == null ? void 0 : l.prefixCls) === null || U === void 0 ? void 0 : U.value));
16616
16616
  }), [c, u] = v6(s, $(() => !l)), d = K(/* @__PURE__ */ new Map()), f = ve(J4, G(void 0)), m = $(() => f.value !== void 0 ? f.value : e.inlineCollapsed), {
@@ -16812,7 +16812,7 @@ const f6 = (e) => {
16812
16812
  renderRawItem: (ee) => ee,
16813
16813
  renderRawRest: (ee) => {
16814
16814
  const ae = ee.length, se = ae ? te.slice(-ae) : null;
16815
- return p(Ie, null, [p(To, {
16815
+ return p(Oe, null, [p(To, {
16816
16816
  eventKey: ai,
16817
16817
  key: ai,
16818
16818
  title: X,
@@ -18536,7 +18536,7 @@ const tI = W({
18536
18536
  return [...I.value, ...f(X)];
18537
18537
  }), A = U6(R, u, c, a, we(e, "displayRender")), M = (j) => {
18538
18538
  if (s(j), e.onChange) {
18539
- const X = Ff(j), ee = X.map((ge) => Tr(ge, u.value, c.value).map((Pe) => Pe.option)), ae = a.value ? X : X[0], se = a.value ? ee : ee[0];
18539
+ const X = Ff(j), ee = X.map((ge) => Tr(ge, u.value, c.value).map((Ie) => Ie.option)), ae = a.value ? X : X[0], se = a.value ? ee : ee[0];
18540
18540
  e.onChange(ae, se);
18541
18541
  }
18542
18542
  }, L = (j) => {
@@ -18544,7 +18544,7 @@ const tI = W({
18544
18544
  M(j);
18545
18545
  else {
18546
18546
  const X = ln(j), ee = ao(w.value), ae = ao(O.value), se = ee.includes(X), ge = I.value.some((je) => ln(je) === X);
18547
- let Pe = w.value, Te = I.value;
18547
+ let Ie = w.value, Te = I.value;
18548
18548
  if (ge && !se)
18549
18549
  Te = I.value.filter((je) => ln(je) !== X);
18550
18550
  else {
@@ -18559,9 +18559,9 @@ const tI = W({
18559
18559
  checkedKeys: ce
18560
18560
  } = ol(je, !0, d.value, b.value, E.value);
18561
18561
  const Se = Lf(ce, d.value, e.showCheckedStrategy);
18562
- Pe = f(Se);
18562
+ Ie = f(Se);
18563
18563
  }
18564
- M([...Te, ...Pe]);
18564
+ M([...Te, ...Ie]);
18565
18565
  }
18566
18566
  }, D = (j, X) => {
18567
18567
  if (X.type === "clear") {
@@ -19191,7 +19191,7 @@ const mI = W({
19191
19191
  renderEmpty: h,
19192
19192
  size: g,
19193
19193
  disabled: y
19194
- } = Oe("cascader", e), S = $(() => d("select", e.prefixCls)), {
19194
+ } = Pe("cascader", e), S = $(() => d("select", e.prefixCls)), {
19195
19195
  compactSize: C,
19196
19196
  compactItemClassnames: x
19197
19197
  } = yc(S, f), w = $(() => C.value || g.value), O = Wn(), I = $(() => {
@@ -20029,7 +20029,7 @@ const TI = 8, EI = 3, AI = W({
20029
20029
  const {
20030
20030
  getPrefixCls: i,
20031
20031
  getPopupContainer: a
20032
- } = Oe("message", e), l = $(() => i("message", e.prefixCls)), [, s] = Lc(l), c = () => {
20032
+ } = Pe("message", e), l = $(() => i("message", e.prefixCls)), [, s] = Lc(l), c = () => {
20033
20033
  var g;
20034
20034
  const y = (g = e.top) !== null && g !== void 0 ? g : TI;
20035
20035
  return {
@@ -20577,7 +20577,7 @@ W({
20577
20577
  setup(e) {
20578
20578
  const {
20579
20579
  getPrefixCls: t
20580
- } = Oe("notification", e), n = $(() => e.prefixCls || t("notification")), o = $(() => `${n.value}-notice`), [, r] = Fc(n);
20580
+ } = Pe("notification", e), n = $(() => e.prefixCls || t("notification")), o = $(() => `${n.value}-notice`), [, r] = Fc(n);
20581
20581
  return () => p(ya, F(F({}, e), {}, {
20582
20582
  prefixCls: n.value,
20583
20583
  class: ne(r.value, `${o.value}-pure-panel`),
@@ -20672,7 +20672,7 @@ const Xf = 24, XI = 4.5, UI = W({
20672
20672
  const {
20673
20673
  getPrefixCls: o,
20674
20674
  getPopupContainer: r
20675
- } = Oe("notification", e), i = $(() => e.prefixCls || o("notification")), a = (f) => {
20675
+ } = Pe("notification", e), i = $(() => e.prefixCls || o("notification")), a = (f) => {
20676
20676
  var m, h;
20677
20677
  return gh(f, (m = e.top) !== null && m !== void 0 ? m : Xf, (h = e.bottom) !== null && h !== void 0 ? h : Xf);
20678
20678
  }, [, l] = Fc(i), s = () => ne(l.value, {
@@ -21539,7 +21539,7 @@ const pT = W({
21539
21539
  count: D,
21540
21540
  maxlength: E
21541
21541
  }) : `${D}${L ? ` / ${E}` : ""}`;
21542
- return p(Ie, null, [!!A && p("span", {
21542
+ return p(Oe, null, [!!A && p("span", {
21543
21543
  class: ne(`${M}-show-count-suffix`, {
21544
21544
  [`${M}-show-count-has-suffix`]: !!R
21545
21545
  })
@@ -21610,7 +21610,7 @@ const Ke = W({
21610
21610
  prefixCls: d,
21611
21611
  size: f,
21612
21612
  autocomplete: m
21613
- } = Oe("input", e), {
21613
+ } = Pe("input", e), {
21614
21614
  compactSize: h,
21615
21615
  compactItemClassnames: g
21616
21616
  } = yc(d, u), y = $(() => h.value || f.value), [S, C] = Nc(d), x = Wn();
@@ -21666,7 +21666,7 @@ const Ke = W({
21666
21666
  addonAfter: re = (P = n.addonAfter) === null || P === void 0 ? void 0 : P.call(n),
21667
21667
  addonBefore: oe = (T = n.addonBefore) === null || T === void 0 ? void 0 : T.call(n),
21668
21668
  id: U = (z = l.id) === null || z === void 0 ? void 0 : z.value
21669
- } = e, te = mT(e, ["allowClear", "bordered", "prefix", "suffix", "addonAfter", "addonBefore", "id"]), le = (N || q) && p(Ie, null, [q, N && _]), j = d.value, X = jc({
21669
+ } = e, te = mT(e, ["allowClear", "bordered", "prefix", "suffix", "addonAfter", "addonBefore", "id"]), le = (N || q) && p(Oe, null, [q, N && _]), j = d.value, X = jc({
21670
21670
  prefix: J,
21671
21671
  suffix: q
21672
21672
  }) || !!N, ee = n.clearIcon || (() => p(Tt, null, null));
@@ -21743,7 +21743,7 @@ const Ke = W({
21743
21743
  prefixCls: r,
21744
21744
  direction: i,
21745
21745
  getPrefixCls: a
21746
- } = Oe("input-group", e), l = jn.useInject();
21746
+ } = Pe("input-group", e), l = jn.useInject();
21747
21747
  jn.useProvide(l, {
21748
21748
  isFormItemInput: !1
21749
21749
  });
@@ -21824,7 +21824,7 @@ const hT = W({
21824
21824
  getPrefixCls: S,
21825
21825
  direction: C,
21826
21826
  size: x
21827
- } = Oe("input-search", e), w = $(() => S("input", e.inputPrefixCls));
21827
+ } = Pe("input-search", e), w = $(() => S("input", e.inputPrefixCls));
21828
21828
  return () => {
21829
21829
  var O, I, b, E;
21830
21830
  const {
@@ -22183,7 +22183,7 @@ const Eh = W({
22183
22183
  prefixCls: f,
22184
22184
  size: m,
22185
22185
  direction: h
22186
- } = Oe("input", e), [g, y] = Nc(f), S = Wn(), C = $(() => e.showCount === "" || e.showCount || !1), x = $(() => Number(e.maxlength) > 0), w = K(!1), O = K(), I = K(0), b = (N) => {
22186
+ } = Pe("input", e), [g, y] = Nc(f), S = Wn(), C = $(() => e.showCount === "" || e.showCount || !1), x = $(() => Number(e.maxlength) > 0), w = K(!1), O = K(), I = K(0), b = (N) => {
22187
22187
  w.value = !0, O.value = d.value, I.value = N.currentTarget.selectionStart, r("compositionstart", N);
22188
22188
  }, E = (N) => {
22189
22189
  var _;
@@ -22446,7 +22446,7 @@ const MT = {
22446
22446
  }, {
22447
22447
  prefixCls: f,
22448
22448
  getPrefixCls: m
22449
- } = Oe("input-password", e), h = $(() => m("input", e.inputPrefixCls)), g = () => {
22449
+ } = Pe("input-password", e), h = $(() => m("input", e.inputPrefixCls)), g = () => {
22450
22450
  const {
22451
22451
  size: y,
22452
22452
  visibilityToggle: S
@@ -22718,7 +22718,7 @@ const jT = () => v(v({}, Ca()), {
22718
22718
  };
22719
22719
  return () => {
22720
22720
  var m;
22721
- return p(Ie, null, [p("div", F(F({}, o), {}, {
22721
+ return p(Oe, null, [p("div", F(F({}, o), {}, {
22722
22722
  class: [`${e.prefixCls}-outer`, o.class],
22723
22723
  style: [o.style, f]
22724
22724
  }), [p("div", {
@@ -22959,7 +22959,7 @@ const GT = W({
22959
22959
  }), [a.value.width <= 20 ? p(rn, null, {
22960
22960
  default: () => [p("span", null, [y])],
22961
22961
  title: n.default
22962
- }) : p(Ie, null, [y, (g = n.default) === null || g === void 0 ? void 0 : g.call(n)])]);
22962
+ }) : p(Oe, null, [y, (g = n.default) === null || g === void 0 ? void 0 : g.call(n)])]);
22963
22963
  };
22964
22964
  }
22965
22965
  }), JT = () => v(v({}, Ca()), {
@@ -23266,7 +23266,7 @@ const sE = W({
23266
23266
  const {
23267
23267
  prefixCls: r,
23268
23268
  direction: i
23269
- } = Oe("progress", e), [a, l] = aE(r);
23269
+ } = Pe("progress", e), [a, l] = aE(r);
23270
23270
  process.env.NODE_ENV !== "production" && (ze("successPercent" in e, "Progress", "`successPercent` is deprecated. Please use `success.percent` instead."), ze("width" in e, "Progress", "`width` is deprecated. Please use `size` instead."));
23271
23271
  const s = $(() => Array.isArray(e.strokeColor) ? e.strokeColor[0] : e.strokeColor), c = $(() => {
23272
23272
  const {
@@ -23896,7 +23896,7 @@ const TE = () => ({
23896
23896
  const {
23897
23897
  prefixCls: r,
23898
23898
  direction: i
23899
- } = Oe("typography", e), [a, l] = Mh(r);
23899
+ } = Pe("typography", e), [a, l] = Mh(r);
23900
23900
  return () => {
23901
23901
  var s;
23902
23902
  const c = v(v({}, e), o), {
@@ -24090,7 +24090,7 @@ const FE = th("webkitLineClamp"), HE = th("textOverflow"), lp = "...", Hr = () =
24090
24090
  const {
24091
24091
  prefixCls: i,
24092
24092
  direction: a
24093
- } = Oe("typography", e), l = ut({
24093
+ } = Pe("typography", e), l = ut({
24094
24094
  copied: !1,
24095
24095
  ellipsisText: "",
24096
24096
  ellipsisContent: null,
@@ -24360,19 +24360,19 @@ const FE = th("webkitLineClamp"), HE = th("textOverflow"), lp = "...", Hr = () =
24360
24360
  expand: ee
24361
24361
  } = B;
24362
24362
  l.editStr = le, l.copyStr = j, l.copiedStr = X, l.expandStr = ee;
24363
- const ae = Le(re, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard", "onUpdate:content"]), se = b.value, ge = oe === 1 && se, Pe = oe && oe > 1 && se;
24363
+ const ae = Le(re, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard", "onUpdate:content"]), se = b.value, ge = oe === 1 && se, Ie = oe && oe > 1 && se;
24364
24364
  let Te = z, je;
24365
24365
  if (oe && l.isEllipsis && !l.expanded && !se) {
24366
24366
  const {
24367
24367
  title: Ye
24368
24368
  } = re;
24369
24369
  let pt = Ye || "";
24370
- !Ye && (typeof z == "string" || typeof z == "number") && (pt = String(z)), pt = pt == null ? void 0 : pt.slice(String(l.ellipsisContent || "").length), Te = p(Ie, null, [yo(l.ellipsisContent), p("span", {
24370
+ !Ye && (typeof z == "string" || typeof z == "number") && (pt = String(z)), pt = pt == null ? void 0 : pt.slice(String(l.ellipsisContent || "").length), Te = p(Oe, null, [yo(l.ellipsisContent), p("span", {
24371
24371
  title: pt,
24372
24372
  "aria-hidden": "true"
24373
24373
  }, [lp]), U]);
24374
24374
  } else
24375
- Te = p(Ie, null, [z, U]);
24375
+ Te = p(Oe, null, [z, U]);
24376
24376
  Te = R(e, Te);
24377
24377
  const ce = te && oe && l.isEllipsis && !l.expanded && !se, Se = n.ellipsisTooltip ? n.ellipsisTooltip() : te;
24378
24378
  return p(Nr, {
@@ -24387,10 +24387,10 @@ const FE = th("webkitLineClamp"), HE = th("textOverflow"), lp = "...", Hr = () =
24387
24387
  [`${i.value}-ellipsis`]: oe,
24388
24388
  [`${i.value}-single-line`]: oe === 1 && !l.isEllipsis,
24389
24389
  [`${i.value}-ellipsis-single-line`]: ge,
24390
- [`${i.value}-ellipsis-multiple-line`]: Pe
24390
+ [`${i.value}-ellipsis-multiple-line`]: Ie
24391
24391
  }, J],
24392
24392
  style: v(v({}, q), {
24393
- WebkitLineClamp: Pe ? oe : void 0
24393
+ WebkitLineClamp: Ie ? oe : void 0
24394
24394
  }),
24395
24395
  "aria-label": je,
24396
24396
  direction: a.value,
@@ -25250,7 +25250,7 @@ const g3 = () => ({
25250
25250
  });
25251
25251
  const {
25252
25252
  rootPrefixCls: s
25253
- } = Oe("upload", e), c = $(() => rc(`${s.value}-fade`));
25253
+ } = Pe("upload", e), c = $(() => rc(`${s.value}-fade`));
25254
25254
  return () => {
25255
25255
  var u, d;
25256
25256
  const {
@@ -25493,7 +25493,7 @@ const g3 = () => ({
25493
25493
  const {
25494
25494
  prefixCls: d,
25495
25495
  rootPrefixCls: f
25496
- } = Oe("upload", e), m = $(() => ({
25496
+ } = Pe("upload", e), m = $(() => ({
25497
25497
  [`${d.value}-list`]: !0,
25498
25498
  [`${d.value}-list-${e.listType}`]: !0
25499
25499
  })), h = $(() => {
@@ -26054,7 +26054,7 @@ const Jo = `__LIST_IGNORE_${Date.now()}__`, $i = W({
26054
26054
  prefixCls: a,
26055
26055
  direction: l,
26056
26056
  disabled: s
26057
- } = Oe("upload", e), [c, u] = P3(a), d = Wn(), f = $(() => {
26057
+ } = Pe("upload", e), [c, u] = P3(a), d = Wn(), f = $(() => {
26058
26058
  var M;
26059
26059
  return (M = s.value) !== null && M !== void 0 ? M : d.value;
26060
26060
  }), [m, h] = zi(e.defaultFileList || [], {
@@ -26726,7 +26726,7 @@ const d8 = W({
26726
26726
  direction: i
26727
26727
  } = Rr(), {
26728
26728
  prefixCls: a
26729
- } = Oe("flex", e), [l, s] = s8(a), c = $(() => {
26729
+ } = Pe("flex", e), [l, s] = s8(a), c = $(() => {
26730
26730
  var u;
26731
26731
  return [a.value, s.value, n8(a.value, e), {
26732
26732
  [`${a.value}-rtl`]: i.value === "rtl",
@@ -27994,7 +27994,7 @@ function w5(e) {
27994
27994
  const {
27995
27995
  cssVar: O
27996
27996
  } = n();
27997
- return [(I) => g && O ? p(Ie, null, [p(C, {
27997
+ return [(I) => g && O ? p(Oe, null, [p(C, {
27998
27998
  rootCls: w,
27999
27999
  cssVar: O,
28000
28000
  component: d
@@ -28490,7 +28490,7 @@ const { genStyleHooks: gn, genComponentStyleHook: NM, genSubStyleComponent: zM }
28490
28490
  content: g.value
28491
28491
  }) : e.messageRender ? e.messageRender(g.value) : g.value), E = $(() => e.loading ? o.loading ? o.loading() : e.loadingRender ? e.loadingRender() : p(C8, {
28492
28492
  prefixCls: c
28493
- }, null) : p(Ie, null, [b.value, y.value && Ae(h)])), R = $(() => {
28493
+ }, null) : p(Oe, null, [b.value, y.value && Ae(h)])), R = $(() => {
28494
28494
  const A = p("div", {
28495
28495
  style: {
28496
28496
  ...u.value.styles.content,
@@ -28526,7 +28526,7 @@ const { genStyleHooks: gn, genComponentStyleHook: NM, genSubStyleComponent: zM }
28526
28526
  class: Ae(O)
28527
28527
  }, n, {
28528
28528
  ref: a
28529
- }), [e.avatar && p("div", {
28529
+ }), [(o.avatar || e.avatar) && p("div", {
28530
28530
  style: {
28531
28531
  ...u.value.styles.avatar,
28532
28532
  ...e.styles.avatar
@@ -29010,6 +29010,8 @@ const bl = "__ungrouped", eA = (e, t = []) => {
29010
29010
  // 会话名
29011
29011
  [`& ${t}-label`]: {
29012
29012
  flex: 1,
29013
+ overflow: "hidden",
29014
+ textOverflow: "ellipsis",
29013
29015
  color: e.colorText
29014
29016
  },
29015
29017
  // 会话操作菜单
@@ -30544,7 +30546,7 @@ const RA = /* @__PURE__ */ W({
30544
30546
  }, {
30545
30547
  default: () => {
30546
30548
  var i;
30547
- return [e.open || e.forceRender ? Vn(p("div", We(r, {
30549
+ return [p(Oe, null, [e.open || e.forceRender ? Vn(p("div", We(r, {
30548
30550
  class: ue(o.value, e.className),
30549
30551
  style: {
30550
30552
  ...e.style
@@ -30576,7 +30578,7 @@ const RA = /* @__PURE__ */ W({
30576
30578
  style: {
30577
30579
  ...e.styles.content
30578
30580
  }
30579
- }, [(i = t.default) == null ? void 0 : i.call(t)])]), [[Mo, e.open]]) : null];
30581
+ }, [(i = t.default) == null ? void 0 : i.call(t)])]), [[Mo, e.open]]) : null])];
30580
30582
  }
30581
30583
  });
30582
30584
  }
@@ -31617,7 +31619,7 @@ const UA = (e) => {
31617
31619
  }, {
31618
31620
  immediate: !0
31619
31621
  });
31620
- const A = $(() => e.item.thumbUrl || e.item.url || E.value), M = $(() => O.value && (e.item.originFileObj || A.value)), L = $(() => M.value ? p(Ie, null, [A.value && p("img", {
31622
+ const A = $(() => e.item.thumbUrl || e.item.url || E.value), M = $(() => O.value && (e.item.originFileObj || A.value)), L = $(() => M.value ? p(Oe, null, [A.value && p("img", {
31621
31623
  alt: "preview",
31622
31624
  src: A.value
31623
31625
  }, null), d.value !== "done" && p("div", {
@@ -31629,7 +31631,7 @@ const UA = (e) => {
31629
31631
  class: `${g}-desc`
31630
31632
  }, [p("div", {
31631
31633
  class: `${g}-ellipsis-prefix`
31632
- }, [I.value])])])]) : p(Ie, null, [p("div", {
31634
+ }, [I.value])])])]) : p(Oe, null, [p("div", {
31633
31635
  class: `${g}-icon`,
31634
31636
  style: {
31635
31637
  color: b.value.iconColor
@@ -31736,7 +31738,7 @@ const UA = (e) => {
31736
31738
  class: `${t.value}-upload-btn-icon`
31737
31739
  }, null)]
31738
31740
  })
31739
- }, null), e.overflow === "scrollX" && p(Ie, null, [p(nt, {
31741
+ }, null), e.overflow === "scrollX" && p(Oe, null, [p(nt, {
31740
31742
  size: "small",
31741
31743
  shape: "circle",
31742
31744
  class: `${t.value}-prev-btn`,
@@ -31880,7 +31882,7 @@ const UA = (e) => {
31880
31882
  disabled: e.disabled
31881
31883
  }
31882
31884
  }, {
31883
- default: () => [e.children ? p(Ie, null, [p(S0, {
31885
+ default: () => [e.children ? p(Oe, null, [p(S0, {
31884
31886
  upload: x.value,
31885
31887
  rootClassName: e.rootClassName,
31886
31888
  ref: "attachments-upload",