st-comp 0.0.207 → 0.0.208

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.
Files changed (160) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +1 -74
  3. package/es/CustomFunction.cjs +1 -1
  4. package/es/CustomFunction.js +53 -56
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +45 -48
  7. package/es/HeatMap.cjs +1 -1
  8. package/es/HeatMap.js +1 -118
  9. package/es/Kline.cjs +1 -1
  10. package/es/Kline.js +16 -19
  11. package/es/KlineBasic.cjs +1 -1
  12. package/es/KlineBasic.js +81 -84
  13. package/es/KlineConfig.cjs +1 -1
  14. package/es/KlineConfig.js +161 -164
  15. package/es/KlineNew.cjs +1 -1
  16. package/es/KlineNew.js +15 -18
  17. package/es/KlinePlus.cjs +1 -1
  18. package/es/KlinePlus.js +18 -21
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +140 -143
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +2 -3
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +55 -58
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +85 -88
  27. package/es/VarSelectDialog.cjs +2 -2
  28. package/es/VarSelectDialog.js +53 -56
  29. package/es/VarietyAutoComplete.cjs +1 -1
  30. package/es/VarietyAutoComplete.js +15 -17
  31. package/es/VarietySearch.cjs +10 -10
  32. package/es/VarietySearch.js +53 -56
  33. package/es/VarietyTextCopy.cjs +3 -3
  34. package/es/VarietyTextCopy.js +33 -36
  35. package/es/VirtualTable.cjs +1 -1
  36. package/es/VirtualTable.js +103 -106
  37. package/es/{_initCloneObject-eaef9418.js → _initCloneObject-c477c74d.js} +25 -26
  38. package/es/_initCloneObject-e660897e.cjs +1 -0
  39. package/es/base-7ba08794.cjs +5 -0
  40. package/es/{index-a871c3eb.js → base-aa512893.js} +454 -171
  41. package/es/{castArray-7741a212.js → castArray-1eb17278.js} +1 -1
  42. package/es/castArray-efa457a5.cjs +1 -0
  43. package/es/{config-provider-a584d81e.cjs → config-provider-18c0a68a.cjs} +1 -1
  44. package/es/{config-provider-b16efd62.js → config-provider-49c17381.js} +6 -6
  45. package/es/{debounce-8d53f4dd.js → debounce-33406a0d.js} +9 -9
  46. package/es/debounce-4aa22feb.cjs +1 -0
  47. package/es/{dropdown-071c5d7e.cjs → dropdown-3f1fe325.cjs} +1 -1
  48. package/es/{dropdown-a59bba73.js → dropdown-6e7b1df0.js} +15 -15
  49. package/es/el-autocomplete-609ac86d.cjs +1 -0
  50. package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-87b7f461.js} +51 -53
  51. package/es/el-button-08310c06.cjs +1 -0
  52. package/es/{el-button-c95adb85.js → el-button-56624e61.js} +45 -46
  53. package/es/{el-checkbox-c25236a6.cjs → el-checkbox-09f3b57f.cjs} +1 -1
  54. package/es/{el-checkbox-7421ccd3.js → el-checkbox-f13560e9.js} +40 -40
  55. package/es/{el-dialog-41ab8417.js → el-dialog-1d5f5877.js} +9 -10
  56. package/es/el-dialog-ea480083.cjs +1 -0
  57. package/es/{el-divider-4e059794.js → el-divider-1cda1783.js} +1 -1
  58. package/es/{el-divider-4713d74c.cjs → el-divider-8a4c87e3.cjs} +1 -1
  59. package/es/{el-empty-33cb66f1.js → el-empty-04682b5d.js} +3 -3
  60. package/es/el-empty-b40fa7ea.cjs +1 -0
  61. package/es/el-form-item-338ea2f7.cjs +12 -0
  62. package/es/{el-form-item-c53c374d.js → el-form-item-505c0b70.js} +75 -76
  63. package/es/{el-input-2f75c4ba.js → el-input-262851e8.js} +84 -85
  64. package/es/el-input-b04b5bfc.cjs +1 -0
  65. package/es/el-input-number-7242c8b5.cjs +1 -0
  66. package/es/{el-input-number-5193fe6d.js → el-input-number-fdac2b86.js} +82 -83
  67. package/es/{el-loading-cfd86c15.cjs → el-loading-3cf7b796.cjs} +1 -1
  68. package/es/{el-loading-f6022062.js → el-loading-7440dc64.js} +2 -2
  69. package/es/{el-menu-item-7e881203.js → el-menu-item-36c3004c.js} +53 -54
  70. package/es/el-menu-item-7aca344e.cjs +1 -0
  71. package/es/el-message-05cd85bf.cjs +1 -0
  72. package/es/{el-message-e544a8f5.js → el-message-416bd265.js} +28 -29
  73. package/es/{el-message-box-a93d2f6a.js → el-message-box-8f5e34ca.js} +20 -22
  74. package/es/el-message-box-b7e9917e.cjs +1 -0
  75. package/es/{el-overlay-09ad71cd.js → el-overlay-04426e36.js} +52 -53
  76. package/es/el-overlay-60bc5a02.cjs +1 -0
  77. package/es/el-popconfirm-24b622c5.cjs +1 -0
  78. package/es/{el-popconfirm-81dcd202.js → el-popconfirm-3790cda2.js} +38 -39
  79. package/es/el-popper-1dd8f5b4.cjs +1 -0
  80. package/es/{el-popper-b4f97157.js → el-popper-49152708.js} +191 -192
  81. package/es/{el-segmented-b868d074.js → el-segmented-05509f9d.js} +12 -13
  82. package/es/el-segmented-a928d89b.cjs +1 -0
  83. package/es/el-select-5fd77a96.cjs +1 -0
  84. package/es/{el-select-95627997.js → el-select-700f3686.js} +292 -295
  85. package/es/{el-table-column-376cd907.js → el-table-column-44360700.js} +54 -57
  86. package/es/el-table-column-bf3ab2a6.cjs +14 -0
  87. package/es/{el-tag-66cab138.js → el-tag-55a172c9.js} +30 -31
  88. package/es/el-tag-d59f3463.cjs +1 -0
  89. package/es/{el-text-c20a9f48.cjs → el-text-5bcaffb6.cjs} +1 -1
  90. package/es/{el-text-ac60d0f2.js → el-text-ab6bfc40.js} +4 -4
  91. package/es/{index-1f7d4f70.js → index-0afedcbd.js} +11 -12
  92. package/es/{index-88546436.js → index-29418a8d.js} +18 -18
  93. package/es/index-3d0bc5da.js +566 -0
  94. package/es/{index-57672682.js → index-4e46f96c.js} +12 -13
  95. package/es/{index-844bdd85.js → index-66ad0d6a.js} +34 -34
  96. package/es/{index-f967d6c1.cjs → index-882d77d3.cjs} +1 -1
  97. package/es/index-a206f6eb.cjs +1 -0
  98. package/es/{index-298075cf.cjs → index-ae6c9d97.cjs} +1 -1
  99. package/es/index-b4700d83.cjs +1 -0
  100. package/es/index-c30cf7f9.cjs +1 -0
  101. package/es/{index-d91dc23f.js → index-cbbd78b4.js} +12 -12
  102. package/es/{index-11547a0c.cjs → index-d8294b1a.cjs} +1 -1
  103. package/es/{raf-8249652f.cjs → raf-336ef01e.cjs} +1 -1
  104. package/es/raf-d8c44079.js +6 -0
  105. package/es/{scroll-679bd6bf.js → scroll-0a48995c.js} +5 -5
  106. package/es/{scroll-b108dabd.cjs → scroll-19533c53.cjs} +1 -1
  107. package/es/style.css +1 -1
  108. package/es/use-form-common-props-41182853.cjs +1 -0
  109. package/es/use-form-common-props-4cdda474.js +671 -0
  110. package/es/use-global-config-7bfbe48c.js +71 -0
  111. package/es/use-global-config-dc5527e8.cjs +1 -0
  112. package/es/{validator-1b8a6128.cjs → validator-28b22907.cjs} +1 -1
  113. package/es/{validator-764a9db0.js → validator-e35f7978.js} +1 -1
  114. package/es/{vnode-b906ae6d.cjs → vnode-8cb31692.cjs} +1 -1
  115. package/es/{vnode-5ddb7ed1.js → vnode-b62d0045.js} +1 -1
  116. package/es/{zh-cn-e963c628.js → zh-cn-346f3a73.js} +2 -2
  117. package/es/{zh-cn-90317f62.cjs → zh-cn-7c8640bb.cjs} +1 -1
  118. package/lib/bundle.js +1 -1
  119. package/lib/bundle.umd.cjs +1 -1
  120. package/lib/{index-f27d8c7a.js → index-da0f2951.js} +3 -3
  121. package/lib/{python-c345f0e2.js → python-c0a1e4ef.js} +1 -1
  122. package/lib/style.css +1 -1
  123. package/package.json +1 -1
  124. package/packages/KlineBasic/components/KlineTips/index.vue +1 -1
  125. package/es/_initCloneObject-52b6a510.cjs +0 -1
  126. package/es/base-a5af3db3.js +0 -288
  127. package/es/base-ef747d02.cjs +0 -5
  128. package/es/castArray-35947698.cjs +0 -1
  129. package/es/debounce-62f5b6e8.cjs +0 -1
  130. package/es/el-autocomplete-a07e9439.cjs +0 -1
  131. package/es/el-button-eec58cff.cjs +0 -1
  132. package/es/el-dialog-ae86edb8.cjs +0 -1
  133. package/es/el-empty-1697ded8.cjs +0 -1
  134. package/es/el-form-item-c3fe189b.cjs +0 -12
  135. package/es/el-input-7fd293af.cjs +0 -1
  136. package/es/el-input-number-22e21d16.cjs +0 -1
  137. package/es/el-menu-item-17dc717e.cjs +0 -1
  138. package/es/el-message-5e6a6be9.cjs +0 -1
  139. package/es/el-message-box-c10adb52.cjs +0 -1
  140. package/es/el-overlay-9e34965f.cjs +0 -1
  141. package/es/el-popconfirm-70a976bf.cjs +0 -1
  142. package/es/el-popper-b6c99b28.cjs +0 -1
  143. package/es/el-segmented-f8fce9ac.cjs +0 -1
  144. package/es/el-select-d8d91db1.cjs +0 -1
  145. package/es/el-table-column-c974cb96.cjs +0 -14
  146. package/es/el-tag-a33c4b22.cjs +0 -1
  147. package/es/index-098c2447.cjs +0 -1
  148. package/es/index-960806da.js +0 -314
  149. package/es/index-9780a537.cjs +0 -1
  150. package/es/index-9b9ef5dd.cjs +0 -1
  151. package/es/index-bb833443.cjs +0 -1
  152. package/es/index-c108567d.cjs +0 -1
  153. package/es/index-d77a7336.js +0 -204
  154. package/es/index-e5566b94.js +0 -368
  155. package/es/index-f3562b52.cjs +0 -1
  156. package/es/raf-80ef0c0a.js +0 -6
  157. package/es/use-form-common-props-815d48a6.js +0 -364
  158. package/es/use-form-common-props-fd9b61a0.cjs +0 -1
  159. package/es/use-global-config-30d7d8ce.cjs +0 -1
  160. package/es/use-global-config-b5e9d3d5.js +0 -72
@@ -1,12 +1,11 @@
1
- import { defineComponent as N, openBlock as H, createBlock as be, Transition as we, mergeProps as ke, unref as C, toHandlers as Fe, withCtx as te, renderSlot as A, computed as m, getCurrentInstance as ge, inject as ne, ref as _, reactive as Me, watch as X, provide as ve, onMounted as ye, onBeforeUnmount as Oe, h as g, Fragment as Ie, withDirectives as Ne, vShow as qe, nextTick as Pe, watchEffect as Ve, toRef as Ue, createElementBlock as oe, normalizeClass as se, createElementVNode as fe, createTextVNode as Ge, toDisplayString as Je } from "vue";
2
- import { i as V, u as Ke, a as Ye } from "./use-form-common-props-815d48a6.js";
3
- import { f as Ze, g as Qe, E as $e, m as Xe } from "./index-a871c3eb.js";
4
- import { a as E, t as ee, b as ae, E as Be, f as et, d as tt } from "./el-popper-b4f97157.js";
5
- import { u as O, _ as ie, w as ze, a as Q, r as de, h as nt, b as xe, i as Ae, c as D, d as Te, e as le, f as ot, g as Se, j as He, k as st, l as Ce } from "./base-a5af3db3.js";
1
+ import { defineComponent as N, openBlock as H, createBlock as be, Transition as we, mergeProps as ke, unref as C, toHandlers as Fe, withCtx as te, renderSlot as A, computed as m, getCurrentInstance as ge, inject as ne, ref as _, reactive as Me, watch as Q, provide as ve, onMounted as ye, onBeforeUnmount as Oe, h as g, Fragment as Ie, withDirectives as Ne, vShow as qe, nextTick as Pe, watchEffect as Ve, toRef as Ue, createElementBlock as oe, normalizeClass as se, createElementVNode as fe, createTextVNode as Ge, toDisplayString as Ye } from "vue";
2
+ import { k as V, j as Je, B as Ke } from "./use-form-common-props-4cdda474.js";
3
+ import { u as O, _ as ie, w as $e, x as X, t as de, R as Ze, b as xe, I as Xe, Y as Qe, A as Be, E as ze, m as D, S as Te, d as ae, Z as et, p as tt, H as Se, i as Ae, X as nt, T as Ce } from "./base-aa512893.js";
4
+ import { e as E, k as ee, t as le, E as He, l as ot, d as st } from "./el-popper-49152708.js";
6
5
  import { T as at } from "./index-657047bb.js";
7
- import { C as lt } from "./el-tag-66cab138.js";
6
+ import { C as lt } from "./el-tag-55a172c9.js";
8
7
  import { m as ut } from "./typescript-7ae59c4c.js";
9
- import { f as it } from "./vnode-5ddb7ed1.js";
8
+ import { f as it } from "./vnode-b62d0045.js";
10
9
  const rt = N({
11
10
  name: "ElCollapseTransition"
12
11
  }), ct = /* @__PURE__ */ N({
@@ -53,7 +52,7 @@ const rt = N({
53
52
  }
54
53
  });
55
54
  var dt = /* @__PURE__ */ ie(ct, [["__file", "collapse-transition.vue"]]);
56
- const pt = ze(dt);
55
+ const pt = $e(dt);
57
56
  let mt = class {
58
57
  constructor(n, u) {
59
58
  this.parent = n, this.domNode = u, this.subIndex = 0, this.subIndex = 0, this.init();
@@ -147,16 +146,16 @@ const ht = N({
147
146
  const n = O("menu"), u = {
148
147
  onBeforeEnter: (o) => o.style.opacity = "0.2",
149
148
  onEnter(o, e) {
150
- Q(o, `${n.namespace.value}-opacity-transition`), o.style.opacity = "1", e();
149
+ X(o, `${n.namespace.value}-opacity-transition`), o.style.opacity = "1", e();
151
150
  },
152
151
  onAfterEnter(o) {
153
152
  de(o, `${n.namespace.value}-opacity-transition`), o.style.opacity = "";
154
153
  },
155
154
  onBeforeLeave(o) {
156
- o.dataset || (o.dataset = {}), nt(o, n.m("collapse")) ? (de(o, n.m("collapse")), o.dataset.oldOverflow = o.style.overflow, o.dataset.scrollWidth = o.clientWidth.toString(), Q(o, n.m("collapse"))) : (Q(o, n.m("collapse")), o.dataset.oldOverflow = o.style.overflow, o.dataset.scrollWidth = o.clientWidth.toString(), de(o, n.m("collapse"))), o.style.width = `${o.scrollWidth}px`, o.style.overflow = "hidden";
155
+ o.dataset || (o.dataset = {}), Ze(o, n.m("collapse")) ? (de(o, n.m("collapse")), o.dataset.oldOverflow = o.style.overflow, o.dataset.scrollWidth = o.clientWidth.toString(), X(o, n.m("collapse"))) : (X(o, n.m("collapse")), o.dataset.oldOverflow = o.style.overflow, o.dataset.scrollWidth = o.clientWidth.toString(), de(o, n.m("collapse"))), o.style.width = `${o.scrollWidth}px`, o.style.overflow = "hidden";
157
156
  },
158
157
  onLeave(o) {
159
- Q(o, "horizontal-collapse-transition"), o.style.width = `${o.dataset.scrollWidth}px`;
158
+ X(o, "horizontal-collapse-transition"), o.style.width = `${o.dataset.scrollWidth}px`;
160
159
  }
161
160
  };
162
161
  return (o, e) => (H(), be(we, ke({ mode: "out-in" }, C(u)), {
@@ -234,14 +233,14 @@ var Ee = N({
234
233
  props: yt,
235
234
  setup(t, { slots: n, expose: u }) {
236
235
  const o = ge(), { indexPath: e, parentMenu: h } = Le(o, m(() => t.index)), v = O("menu"), y = O("sub-menu"), i = ne(_e);
237
- i || ae(pe, "can not inject root menu");
236
+ i || le(pe, "can not inject root menu");
238
237
  const b = ne(`${ue}${h.value.uid}`);
239
- b || ae(pe, "can not inject sub menu");
238
+ b || le(pe, "can not inject sub menu");
240
239
  const P = _({}), I = _({});
241
240
  let c;
242
- const x = _(!1), M = _(), S = _(), L = m(() => b.level === 0), U = m(() => B.value === "horizontal" && L.value ? "bottom-start" : "right-start"), $ = m(() => B.value === "horizontal" && L.value || B.value === "vertical" && !i.props.collapse ? t.expandCloseIcon && t.expandOpenIcon ? w.value ? t.expandOpenIcon : t.expandCloseIcon : Ze : t.collapseCloseIcon && t.collapseOpenIcon ? w.value ? t.collapseOpenIcon : t.collapseCloseIcon : Qe), W = m(() => {
241
+ const x = _(!1), M = _(), S = _(), L = m(() => b.level === 0), U = m(() => B.value === "horizontal" && L.value ? "bottom-start" : "right-start"), $ = m(() => B.value === "horizontal" && L.value || B.value === "vertical" && !i.props.collapse ? t.expandCloseIcon && t.expandOpenIcon ? w.value ? t.expandOpenIcon : t.expandCloseIcon : Xe : t.collapseCloseIcon && t.collapseOpenIcon ? w.value ? t.collapseOpenIcon : t.collapseCloseIcon : Qe), W = m(() => {
243
242
  const s = t.teleported;
244
- return Ae(s) ? L.value : s;
243
+ return Be(s) ? L.value : s;
245
244
  }), G = m(() => i.props.collapse ? `${v.namespace.value}-zoom-in-left` : `${v.namespace.value}-zoom-in-top`), re = m(() => B.value === "horizontal" && L.value ? [
246
245
  "bottom-start",
247
246
  "bottom-end",
@@ -258,11 +257,11 @@ var Ee = N({
258
257
  "bottom-end",
259
258
  "top-start",
260
259
  "top-end"
261
- ]), w = m(() => i.openedMenus.includes(t.index)), R = m(() => [...Object.values(P.value), ...Object.values(I.value)].some(({ active: s }) => s)), B = m(() => i.props.mode), J = m(() => i.props.persistent), j = Me({
260
+ ]), w = m(() => i.openedMenus.includes(t.index)), R = m(() => [...Object.values(P.value), ...Object.values(I.value)].some(({ active: s }) => s)), B = m(() => i.props.mode), Y = m(() => i.props.persistent), j = Me({
262
261
  index: t.index,
263
262
  indexPath: e,
264
263
  active: R
265
- }), K = We(i.props, b.level + 1), Y = m(() => {
264
+ }), J = We(i.props, b.level + 1), K = m(() => {
266
265
  var s;
267
266
  return (s = t.popperOffset) != null ? s : i.props.popperOffset;
268
267
  }), F = m(() => {
@@ -295,7 +294,7 @@ var Ee = N({
295
294
  b.mouseInChild.value = !0, c == null || c(), { stop: c } = Te(() => {
296
295
  i.openMenu(t.index, e.value);
297
296
  }, f), W.value && ((p = h.value.vnode.el) == null || p.dispatchEvent(new MouseEvent("mouseenter"))), s.type === "mouseenter" && s.target && Pe(() => {
298
- et(s.target, { preventScroll: !0 });
297
+ ot(s.target, { preventScroll: !0 });
299
298
  });
300
299
  }
301
300
  }, d = (s = !1) => {
@@ -306,7 +305,7 @@ var Ee = N({
306
305
  }
307
306
  c == null || c(), b.mouseInChild.value = !1, { stop: c } = Te(() => !x.value && i.closeMenu(t.index, e.value), Z.value), W.value && s && ((f = b.handleMouseleave) == null || f.call(b, !0));
308
307
  };
309
- X(() => i.props.collapse, (s) => a(!!s));
308
+ Q(() => i.props.collapse, (s) => a(!!s));
310
309
  {
311
310
  const s = (p) => {
312
311
  I.value[p.index] = p;
@@ -331,7 +330,7 @@ var Ee = N({
331
330
  var s;
332
331
  const f = [
333
332
  (s = n.title) == null ? void 0 : s.call(n),
334
- g($e, {
333
+ g(ze, {
335
334
  class: y.e("icon-arrow"),
336
335
  style: {
337
336
  transform: w.value ? t.expandCloseIcon && t.expandOpenIcon || t.collapseCloseIcon && t.collapseOpenIcon && i.props.collapse ? "none" : "rotateZ(180deg)" : "none"
@@ -339,14 +338,14 @@ var Ee = N({
339
338
  }, {
340
339
  default: () => D($.value) ? g(o.appContext.components[$.value]) : g($.value)
341
340
  })
342
- ], p = i.isMenuPopup ? g(Be, {
341
+ ], p = i.isMenuPopup ? g(He, {
343
342
  ref: S,
344
343
  visible: w.value,
345
344
  effect: "light",
346
345
  pure: !0,
347
- offset: Y.value,
346
+ offset: K.value,
348
347
  showArrow: !1,
349
- persistent: J.value,
348
+ persistent: Y.value,
350
349
  popperClass: F.value,
351
350
  placement: U.value,
352
351
  teleported: W.value,
@@ -372,7 +371,7 @@ var Ee = N({
372
371
  v.m("popup"),
373
372
  v.m(`popup-${U.value}`)
374
373
  ],
375
- style: K.value
374
+ style: J.value
376
375
  }, [(k = n.default) == null ? void 0 : k.call(n)])
377
376
  ]);
378
377
  },
@@ -392,7 +391,7 @@ var Ee = N({
392
391
  return Ne(g("ul", {
393
392
  role: "menu",
394
393
  class: [v.b(), v.m("inline")],
395
- style: K.value
394
+ style: J.value
396
395
  }, [(k = n.default) == null ? void 0 : k.call(n)]), [[qe, w.value]]);
397
396
  }
398
397
  })
@@ -425,7 +424,7 @@ const It = xe({
425
424
  default: ""
426
425
  },
427
426
  defaultOpeneds: {
428
- type: le(Array),
427
+ type: ae(Array),
429
428
  default: () => ut([])
430
429
  },
431
430
  uniqueOpened: Boolean,
@@ -454,10 +453,10 @@ const It = xe({
454
453
  },
455
454
  ellipsisIcon: {
456
455
  type: V,
457
- default: () => Xe
456
+ default: () => et
458
457
  },
459
458
  popperEffect: {
460
- type: le(String),
459
+ type: ae(String),
461
460
  default: "dark"
462
461
  },
463
462
  popperClass: String,
@@ -473,10 +472,10 @@ const It = xe({
473
472
  type: Boolean,
474
473
  default: !0
475
474
  }
476
- }), me = (t) => He(t) && t.every((n) => D(n)), xt = {
475
+ }), me = (t) => Ae(t) && t.every((n) => D(n)), xt = {
477
476
  close: (t, n) => D(t) && me(n),
478
477
  open: (t, n) => D(t) && me(n),
479
- select: (t, n, u, o) => D(t) && me(n) && ot(u) && (Ae(o) || o instanceof Promise)
478
+ select: (t, n, u, o) => D(t) && me(n) && tt(u) && (Be(o) || o instanceof Promise)
480
479
  };
481
480
  var Ct = N({
482
481
  name: "ElMenu",
@@ -521,7 +520,7 @@ var Ct = N({
521
520
  }, B = (a) => {
522
521
  const l = getComputedStyle(a), r = Number.parseInt(l.marginLeft, 10), d = Number.parseInt(l.marginRight, 10);
523
522
  return a.offsetWidth + r + d || 0;
524
- }, J = () => {
523
+ }, Y = () => {
525
524
  var a, l;
526
525
  if (!v.value)
527
526
  return -1;
@@ -530,7 +529,7 @@ var Ct = N({
530
529
  return r.forEach((z, De) => {
531
530
  k += B(z), k <= p - P && (T = De + 1);
532
531
  }), T === r.length ? -1 : T;
533
- }, j = (a) => S.value[a].indexPath, K = (a, l = 33.34) => {
532
+ }, j = (a) => S.value[a].indexPath, J = (a, l = 33.34) => {
534
533
  let r;
535
534
  return () => {
536
535
  r && clearTimeout(r), r = setTimeout(() => {
@@ -538,26 +537,26 @@ var Ct = N({
538
537
  }, l);
539
538
  };
540
539
  };
541
- let Y = !0;
540
+ let K = !0;
542
541
  const F = () => {
543
- const a = Ye(y);
544
- if (a && (P = B(a) || 64), I.value === J())
542
+ const a = Ke(y);
543
+ if (a && (P = B(a) || 64), I.value === Y())
545
544
  return;
546
545
  const l = () => {
547
546
  I.value = -1, Pe(() => {
548
- I.value = J();
547
+ I.value = Y();
549
548
  });
550
549
  };
551
- Y ? l() : K(l)(), Y = !1;
550
+ K ? l() : J(l)(), K = !1;
552
551
  };
553
- X(() => t.defaultActive, (a) => {
552
+ Q(() => t.defaultActive, (a) => {
554
553
  M.value[a] || (x.value = ""), R(a);
555
- }), X(() => t.collapse, (a) => {
554
+ }), Q(() => t.collapse, (a) => {
556
555
  a && (c.value = []);
557
- }), X(M.value, U);
556
+ }), Q(M.value, U);
558
557
  let q;
559
558
  Ve(() => {
560
- t.mode === "horizontal" && t.ellipsis ? q = Ke(v, F).stop : q == null || q();
559
+ t.mode === "horizontal" && t.ellipsis ? q = Je(v, F).stop : q == null || q();
561
560
  });
562
561
  const Z = _(!1);
563
562
  {
@@ -616,7 +615,7 @@ var Ct = N({
616
615
  class: b.e("hide-arrow"),
617
616
  popperOffset: t.popperOffset
618
617
  }, {
619
- title: () => g($e, {
618
+ title: () => g(ze, {
620
619
  class: b.e("icon-more")
621
620
  }, {
622
621
  default: () => g(t.ellipsisIcon)
@@ -648,15 +647,15 @@ var Ct = N({
648
647
  });
649
648
  const _t = xe({
650
649
  index: {
651
- type: le([String, null]),
650
+ type: ae([String, null]),
652
651
  default: null
653
652
  },
654
653
  route: {
655
- type: le([String, Object])
654
+ type: ae([String, Object])
656
655
  },
657
656
  disabled: Boolean
658
657
  }), Et = {
659
- click: (t) => D(t.index) && He(t.indexPath)
658
+ click: (t) => D(t.index) && Ae(t.indexPath)
660
659
  }, he = "ElMenuItem", Tt = N({
661
660
  name: he
662
661
  }), St = /* @__PURE__ */ N({
@@ -665,11 +664,11 @@ const _t = xe({
665
664
  emits: Et,
666
665
  setup(t, { expose: n, emit: u }) {
667
666
  const o = t;
668
- st(o.index) && tt();
667
+ nt(o.index) && st();
669
668
  const e = ge(), h = ne(_e), v = O("menu"), y = O("menu-item");
670
- h || ae(he, "can not inject root menu");
669
+ h || le(he, "can not inject root menu");
671
670
  const { parentMenu: i, indexPath: b } = Le(e, Ue(o, "index")), P = ne(`${ue}${i.value.uid}`);
672
- P || ae(he, "can not inject sub menu");
671
+ P || le(he, "can not inject sub menu");
673
672
  const I = m(() => o.index === h.activeIndex), c = Me({
674
673
  index: o.index,
675
674
  indexPath: b,
@@ -702,7 +701,7 @@ const _t = xe({
702
701
  tabindex: "-1",
703
702
  onClick: x
704
703
  }, [
705
- C(i).type.name === "ElMenu" && C(h).props.collapse && M.$slots.title ? (H(), be(C(Be), {
704
+ C(i).type.name === "ElMenu" && C(h).props.collapse && M.$slots.title ? (H(), be(C(He), {
706
705
  key: 0,
707
706
  effect: C(h).props.popperEffect,
708
707
  placement: "right",
@@ -745,7 +744,7 @@ const wt = {
745
744
  class: se(C(n).e("title"))
746
745
  }, [
747
746
  u.$slots.title ? A(u.$slots, "title", { key: 1 }) : (H(), oe(Ie, { key: 0 }, [
748
- Ge(Je(u.title), 1)
747
+ Ge(Ye(u.title), 1)
749
748
  ], 64))
750
749
  ], 2),
751
750
  fe("ul", null, [
@@ -755,14 +754,14 @@ const wt = {
755
754
  }
756
755
  });
757
756
  var je = /* @__PURE__ */ ie(Ot, [["__file", "menu-item-group.vue"]]);
758
- const Ft = ze(Ct, {
757
+ const Dt = $e(Ct, {
759
758
  MenuItem: Re,
760
759
  MenuItemGroup: je,
761
760
  SubMenu: Ee
762
- }), qt = Ce(Re);
761
+ }), Ft = Ce(Re);
763
762
  Ce(je);
764
763
  Ce(Ee);
765
764
  export {
766
- qt as E,
767
- Ft as a
765
+ Ft as E,
766
+ Dt as a
768
767
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),P=require("./use-form-common-props-41182853.cjs"),l=require("./base-7ba08794.cjs"),f=require("./el-popper-1dd8f5b4.cjs"),se=require("./index-eea0bcb3.cjs"),le=require("./el-tag-d59f3463.cjs"),ae=require("./typescript-b63f8e83.cjs"),ue=require("./vnode-8cb31692.cjs"),re=e.defineComponent({name:"ElCollapseTransition"}),ie=e.defineComponent({...re,setup(n){const o=l.useNamespace("collapse-transition"),i=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},s={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height&&(t.dataset.elExistsHeight=t.style.height),t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){requestAnimationFrame(()=>{t.dataset.oldOverflow=t.style.overflow,t.dataset.elExistsHeight?t.style.maxHeight=t.dataset.elExistsHeight:t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"})},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){i(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){i(t)},leaveCancelled(t){i(t)}};return(t,b)=>(e.openBlock(),e.createBlock(e.Transition,e.mergeProps({name:e.unref(o).b()},e.toHandlers(s)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["name"]))}});var ce=l._export_sfc(ie,[["__file","collapse-transition.vue"]]);const de=l.withInstall(ce);let pe=class{constructor(o,i){this.parent=o,this.domNode=i,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(o){o===this.subMenuItems.length?o=0:o<0&&(o=this.subMenuItems.length-1),this.subMenuItems[o].focus(),this.subIndex=o}addListeners(){const o=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,i=>{i.addEventListener("keydown",s=>{let t=!1;switch(s.code){case f.EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),t=!0;break}case f.EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),t=!0;break}case f.EVENT_CODE.tab:{f.triggerEvent(o,"mouseleave");break}case f.EVENT_CODE.enter:case f.EVENT_CODE.numpadEnter:case f.EVENT_CODE.space:{t=!0,s.currentTarget.click();break}}return t&&(s.preventDefault(),s.stopPropagation()),!1})})}},me=class{constructor(o,i){this.domNode=o,this.submenu=null,this.submenu=null,this.init(i)}init(o){this.domNode.setAttribute("tabindex","0");const i=this.domNode.querySelector(`.${o}-menu`);i&&(this.submenu=new pe(this,i)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",o=>{let i=!1;switch(o.code){case f.EVENT_CODE.down:{f.triggerEvent(o.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),i=!0;break}case f.EVENT_CODE.up:{f.triggerEvent(o.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),i=!0;break}case f.EVENT_CODE.tab:{f.triggerEvent(o.currentTarget,"mouseleave");break}case f.EVENT_CODE.enter:case f.EVENT_CODE.numpadEnter:case f.EVENT_CODE.space:{i=!0,o.currentTarget.click();break}}i&&o.preventDefault()})}},fe=class{constructor(o,i){this.domNode=o,this.init(i)}init(o){const i=this.domNode.childNodes;Array.from(i).forEach(s=>{s.nodeType===1&&new me(s,o)})}};const ve=e.defineComponent({name:"ElMenuCollapseTransition"}),he=e.defineComponent({...ve,setup(n){const o=l.useNamespace("menu"),i={onBeforeEnter:s=>s.style.opacity="0.2",onEnter(s,t){l.addClass(s,`${o.namespace.value}-opacity-transition`),s.style.opacity="1",t()},onAfterEnter(s){l.removeClass(s,`${o.namespace.value}-opacity-transition`),s.style.opacity=""},onBeforeLeave(s){s.dataset||(s.dataset={}),l.hasClass(s,o.m("collapse"))?(l.removeClass(s,o.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),l.addClass(s,o.m("collapse"))):(l.addClass(s,o.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),l.removeClass(s,o.m("collapse"))),s.style.width=`${s.scrollWidth}px`,s.style.overflow="hidden"},onLeave(s){l.addClass(s,"horizontal-collapse-transition"),s.style.width=`${s.dataset.scrollWidth}px`}};return(s,t)=>(e.openBlock(),e.createBlock(e.Transition,e.mergeProps({mode:"out-in"},e.unref(i)),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16))}});var ge=l._export_sfc(he,[["__file","menu-collapse-transition.vue"]]);function X(n,o){const i=e.computed(()=>{let t=n.parent;const b=[o.value];for(;t.type.name!=="ElMenu";)t.props.index&&b.unshift(t.props.index),t=t.parent;return b});return{parentMenu:e.computed(()=>{let t=n.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t}),indexPath:i}}function be(n){return e.computed(()=>{const i=n.backgroundColor;return i?new se.TinyColor(i).shade(20).toString():""})}const ee=(n,o)=>{const i=l.useNamespace("menu");return e.computed(()=>i.cssVarBlock({"text-color":n.textColor||"","hover-text-color":n.textColor||"","bg-color":n.backgroundColor||"","hover-bg-color":be(n).value||"","active-color":n.activeTextColor||"",level:`${o}`}))},Z="rootMenu",R="subMenu:",Ee=l.buildProps({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:P.iconPropType},expandOpenIcon:{type:P.iconPropType},collapseCloseIcon:{type:P.iconPropType},collapseOpenIcon:{type:P.iconPropType}}),J="ElSubMenu";var Q=e.defineComponent({name:J,props:Ee,setup(n,{slots:o,expose:i}){const s=e.getCurrentInstance(),{indexPath:t,parentMenu:b}=X(s,e.computed(()=>n.index)),h=l.useNamespace("menu"),y=l.useNamespace("sub-menu"),c=e.inject(Z);c||f.throwError(J,"can not inject root menu");const E=e.inject(`${R}${b.value.uid}`);E||f.throwError(J,"can not inject sub menu");const N=e.ref({}),C=e.ref({});let p;const x=e.ref(!1),M=e.ref(),_=e.ref(),B=e.computed(()=>E.level===0),H=e.computed(()=>k.value==="horizontal"&&B.value?"bottom-start":"right-start"),w=e.computed(()=>k.value==="horizontal"&&B.value||k.value==="vertical"&&!c.props.collapse?n.expandCloseIcon&&n.expandOpenIcon?T.value?n.expandOpenIcon:n.expandCloseIcon:l.arrow_down_default:n.collapseCloseIcon&&n.collapseOpenIcon?T.value?n.collapseOpenIcon:n.collapseCloseIcon:l.arrow_right_default),$=e.computed(()=>{const a=n.teleported;return l.isUndefined(a)?B.value:a}),L=e.computed(()=>c.props.collapse?`${h.namespace.value}-zoom-in-left`:`${h.namespace.value}-zoom-in-top`),U=e.computed(()=>k.value==="horizontal"&&B.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),T=e.computed(()=>c.openedMenus.includes(n.index)),z=e.computed(()=>[...Object.values(N.value),...Object.values(C.value)].some(({active:a})=>a)),k=e.computed(()=>c.props.mode),q=e.computed(()=>c.props.persistent),D=e.reactive({index:n.index,indexPath:t,active:z}),W=ee(c.props,E.level+1),j=e.computed(()=>{var a;return(a=n.popperOffset)!=null?a:c.props.popperOffset}),A=e.computed(()=>{var a;return(a=n.popperClass)!=null?a:c.props.popperClass}),V=e.computed(()=>{var a;return(a=n.showTimeout)!=null?a:c.props.showTimeout}),F=e.computed(()=>{var a;return(a=n.hideTimeout)!=null?a:c.props.hideTimeout}),G=()=>{var a,g,v;return(v=(g=(a=_.value)==null?void 0:a.popperRef)==null?void 0:g.popperInstanceRef)==null?void 0:v.destroy()},u=a=>{a||G()},r=()=>{c.props.menuTrigger==="hover"&&c.props.mode==="horizontal"||c.props.collapse&&c.props.mode==="vertical"||n.disabled||c.handleSubMenuClick({index:n.index,indexPath:t.value,active:z.value})},d=(a,g=V.value)=>{var v;if(a.type!=="focus"){if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||n.disabled){E.mouseInChild.value=!0;return}E.mouseInChild.value=!0,p==null||p(),{stop:p}=l.useTimeoutFn(()=>{c.openMenu(n.index,t.value)},g),$.value&&((v=b.value.vnode.el)==null||v.dispatchEvent(new MouseEvent("mouseenter"))),a.type==="mouseenter"&&a.target&&e.nextTick(()=>{f.focusElement(a.target,{preventScroll:!0})})}},m=(a=!1)=>{var g;if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"){E.mouseInChild.value=!1;return}p==null||p(),E.mouseInChild.value=!1,{stop:p}=l.useTimeoutFn(()=>!x.value&&c.closeMenu(n.index,t.value),F.value),$.value&&a&&((g=E.handleMouseleave)==null||g.call(E,!0))};e.watch(()=>c.props.collapse,a=>u(!!a));{const a=v=>{C.value[v.index]=v},g=v=>{delete C.value[v.index]};e.provide(`${R}${s.uid}`,{addSubMenu:a,removeSubMenu:g,handleMouseleave:m,mouseInChild:x,level:E.level+1})}return i({opened:T}),e.onMounted(()=>{c.addSubMenu(D),E.addSubMenu(D)}),e.onBeforeUnmount(()=>{E.removeSubMenu(D),c.removeSubMenu(D)}),()=>{var a;const g=[(a=o.title)==null?void 0:a.call(o),e.h(l.ElIcon,{class:y.e("icon-arrow"),style:{transform:T.value?n.expandCloseIcon&&n.expandOpenIcon||n.collapseCloseIcon&&n.collapseOpenIcon&&c.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>l.isString(w.value)?e.h(s.appContext.components[w.value]):e.h(w.value)})],v=c.isMenuPopup?e.h(f.ElTooltip,{ref:_,visible:T.value,effect:"light",pure:!0,offset:j.value,showArrow:!1,persistent:q.value,popperClass:A.value,placement:H.value,teleported:$.value,fallbackPlacements:U.value,transition:L.value,gpuAcceleration:!1},{content:()=>{var S;return e.h("div",{class:[h.m(k.value),h.m("popup-container"),A.value],onMouseenter:I=>d(I,100),onMouseleave:()=>m(!0),onFocus:I=>d(I,100)},[e.h("ul",{class:[h.b(),h.m("popup"),h.m(`popup-${H.value}`)],style:W.value},[(S=o.default)==null?void 0:S.call(o)])])},default:()=>e.h("div",{class:y.e("title"),onClick:r},g)}):e.h(e.Fragment,{},[e.h("div",{class:y.e("title"),ref:M,onClick:r},g),e.h(de,{},{default:()=>{var S;return e.withDirectives(e.h("ul",{role:"menu",class:[h.b(),h.m("inline")],style:W.value},[(S=o.default)==null?void 0:S.call(o)]),[[e.vShow,T.value]])}})]);return e.h("li",{class:[y.b(),y.is("active",z.value),y.is("opened",T.value),y.is("disabled",n.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:d,onMouseleave:()=>m(),onFocus:d},[v])}}});const Me=l.buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:l.definePropType(Array),default:()=>ae.mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:P.iconPropType,default:()=>l.more_default},popperEffect:{type:l.definePropType(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),K=n=>l.isArray(n)&&n.every(o=>l.isString(o)),ye={close:(n,o)=>l.isString(n)&&K(o),open:(n,o)=>l.isString(n)&&K(o),select:(n,o,i,s)=>l.isString(n)&&K(o)&&l.isObject(i)&&(l.isUndefined(s)||s instanceof Promise)};var Ce=e.defineComponent({name:"ElMenu",props:Me,emits:ye,setup(n,{emit:o,slots:i,expose:s}){const t=e.getCurrentInstance(),b=t.appContext.config.globalProperties.$router,h=e.ref(),y=e.ref(),c=l.useNamespace("menu"),E=l.useNamespace("sub-menu");let N=64;const C=e.ref(-1),p=e.ref(n.defaultOpeneds&&!n.collapse?n.defaultOpeneds.slice(0):[]),x=e.ref(n.defaultActive),M=e.ref({}),_=e.ref({}),B=e.computed(()=>n.mode==="horizontal"||n.mode==="vertical"&&n.collapse),H=()=>{const u=x.value&&M.value[x.value];if(!u||n.mode==="horizontal"||n.collapse)return;u.indexPath.forEach(d=>{const m=_.value[d];m&&w(d,m.indexPath)})},w=(u,r)=>{p.value.includes(u)||(n.uniqueOpened&&(p.value=p.value.filter(d=>r.includes(d))),p.value.push(u),o("open",u,r))},$=u=>{const r=p.value.indexOf(u);r!==-1&&p.value.splice(r,1)},L=(u,r)=>{$(u),o("close",u,r)},U=({index:u,indexPath:r})=>{p.value.includes(u)?L(u,r):w(u,r)},T=u=>{(n.mode==="horizontal"||n.collapse)&&(p.value=[]);const{index:r,indexPath:d}=u;if(!(l.isNil(r)||l.isNil(d)))if(n.router&&b){const m=u.route||r,a=b.push(m).then(g=>(g||(x.value=r),g));o("select",r,d,{index:r,indexPath:d,route:m},a)}else x.value=r,o("select",r,d,{index:r,indexPath:d})},z=u=>{var r;const d=M.value,m=d[u]||x.value&&d[x.value]||d[n.defaultActive];x.value=(r=m==null?void 0:m.index)!=null?r:u},k=u=>{const r=getComputedStyle(u),d=Number.parseInt(r.marginLeft,10),m=Number.parseInt(r.marginRight,10);return u.offsetWidth+d+m||0},q=()=>{var u,r;if(!h.value)return-1;const d=Array.from((r=(u=h.value)==null?void 0:u.childNodes)!=null?r:[]).filter(O=>O.nodeName!=="#comment"&&(O.nodeName!=="#text"||O.nodeValue)),m=getComputedStyle(h.value),a=Number.parseInt(m.paddingLeft,10),g=Number.parseInt(m.paddingRight,10),v=h.value.clientWidth-a-g;let S=0,I=0;return d.forEach((O,oe)=>{S+=k(O),S<=v-N&&(I=oe+1)}),I===d.length?-1:I},D=u=>_.value[u].indexPath,W=(u,r=33.34)=>{let d;return()=>{d&&clearTimeout(d),d=setTimeout(()=>{u()},r)}};let j=!0;const A=()=>{const u=P.unrefElement(y);if(u&&(N=k(u)||64),C.value===q())return;const r=()=>{C.value=-1,e.nextTick(()=>{C.value=q()})};j?r():W(r)(),j=!1};e.watch(()=>n.defaultActive,u=>{M.value[u]||(x.value=""),z(u)}),e.watch(()=>n.collapse,u=>{u&&(p.value=[])}),e.watch(M.value,H);let V;e.watchEffect(()=>{n.mode==="horizontal"&&n.ellipsis?V=P.useResizeObserver(h,A).stop:V==null||V()});const F=e.ref(!1);{const u=a=>{_.value[a.index]=a},r=a=>{delete _.value[a.index]},d=a=>{M.value[a.index]=a},m=a=>{delete M.value[a.index]};e.provide(Z,e.reactive({props:n,openedMenus:p,items:M,subMenus:_,activeIndex:x,isMenuPopup:B,addMenuItem:d,removeMenuItem:m,addSubMenu:u,removeSubMenu:r,openMenu:w,closeMenu:L,handleMenuItemClick:T,handleSubMenuClick:U})),e.provide(`${R}${t.uid}`,{addSubMenu:u,removeSubMenu:r,mouseInChild:F,level:0})}e.onMounted(()=>{n.mode==="horizontal"&&new fe(t.vnode.el,c.namespace.value)}),s({open:r=>{const{indexPath:d}=_.value[r];d.forEach(m=>w(m,d))},close:$,updateActiveIndex:z,handleResize:A});const G=ee(n,0);return()=>{var u,r;let d=(r=(u=i.default)==null?void 0:u.call(i))!=null?r:[];const m=[];if(n.mode==="horizontal"&&h.value){const v=ue.flattedChildren(d).filter(O=>(O==null?void 0:O.shapeFlag)!==8),S=C.value===-1?v:v.slice(0,C.value),I=C.value===-1?[]:v.slice(C.value);I!=null&&I.length&&n.ellipsis&&(d=S,m.push(e.h(Q,{ref:y,index:"sub-menu-more",class:E.e("hide-arrow"),popperOffset:n.popperOffset},{title:()=>e.h(l.ElIcon,{class:E.e("icon-more")},{default:()=>e.h(n.ellipsisIcon)}),default:()=>I})))}const a=n.closeOnClickOutside?[[le.ClickOutside,()=>{p.value.length&&(F.value||(p.value.forEach(v=>o("close",v,D(v))),p.value=[]))}]]:[],g=e.withDirectives(e.h("ul",{key:String(n.collapse),role:"menubar",ref:h,style:G.value,class:{[c.b()]:!0,[c.m(n.mode)]:!0,[c.m("collapse")]:n.collapse}},[...d,...m]),a);return n.collapseTransition&&n.mode==="vertical"?e.h(ge,()=>g):g}}});const xe=l.buildProps({index:{type:l.definePropType([String,null]),default:null},route:{type:l.definePropType([String,Object])},disabled:Boolean}),Ie={click:n=>l.isString(n.index)&&l.isArray(n.indexPath)},Y="ElMenuItem",_e=e.defineComponent({name:Y}),Te=e.defineComponent({..._e,props:xe,emits:Ie,setup(n,{expose:o,emit:i}){const s=n;l.isPropAbsent(s.index)&&f.debugWarn();const t=e.getCurrentInstance(),b=e.inject(Z),h=l.useNamespace("menu"),y=l.useNamespace("menu-item");b||f.throwError(Y,"can not inject root menu");const{parentMenu:c,indexPath:E}=X(t,e.toRef(s,"index")),N=e.inject(`${R}${c.value.uid}`);N||f.throwError(Y,"can not inject sub menu");const C=e.computed(()=>s.index===b.activeIndex),p=e.reactive({index:s.index,indexPath:E,active:C}),x=()=>{s.disabled||(b.handleMenuItemClick({index:s.index,indexPath:E.value,route:s.route}),i("click",p))};return e.onMounted(()=>{N.addSubMenu(p),b.addMenuItem(p)}),e.onBeforeUnmount(()=>{N.removeSubMenu(p),b.removeMenuItem(p)}),o({parentMenu:c,rootMenu:b,active:C,nsMenu:h,nsMenuItem:y,handleClick:x}),(M,_)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([e.unref(y).b(),e.unref(y).is("active",e.unref(C)),e.unref(y).is("disabled",M.disabled)]),role:"menuitem",tabindex:"-1",onClick:x},[e.unref(c).type.name==="ElMenu"&&e.unref(b).props.collapse&&M.$slots.title?(e.openBlock(),e.createBlock(e.unref(f.ElTooltip),{key:0,effect:e.unref(b).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:e.unref(b).props.persistent,"focus-on-target":""},{content:e.withCtx(()=>[e.renderSlot(M.$slots,"title")]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(h).be("tooltip","trigger"))},[e.renderSlot(M.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(M.$slots,"default"),e.renderSlot(M.$slots,"title")],64))],2))}});var te=l._export_sfc(Te,[["__file","menu-item.vue"]]);const Se={title:String},Ne=e.defineComponent({name:"ElMenuItemGroup"}),we=e.defineComponent({...Ne,props:Se,setup(n){const o=l.useNamespace("menu-item-group");return(i,s)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(e.unref(o).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("title"))},[i.$slots.title?e.renderSlot(i.$slots,"title",{key:1}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.title),1)],64))],2),e.createElementVNode("ul",null,[e.renderSlot(i.$slots,"default")])],2))}});var ne=l._export_sfc(we,[["__file","menu-item-group.vue"]]);const ke=l.withInstall(Ce,{MenuItem:te,MenuItemGroup:ne,SubMenu:Q}),Oe=l.withNoopInstall(te);l.withNoopInstall(ne);l.withNoopInstall(Q);exports.ElMenu=ke;exports.ElMenuItem=Oe;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),v=require("./use-form-common-props-41182853.cjs"),a=require("./base-7ba08794.cjs"),R=require("./typescript-b63f8e83.cjs"),U=require("./use-global-config-dc5527e8.cjs"),$=require("./el-popper-1dd8f5b4.cjs"),p=require("./config-provider-18c0a68a.cjs"),H=a.buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:a.definePropType([String,Object,Array])},offset:{type:a.definePropType(Array),default:[0,0]},badgeClass:{type:String}}),Z=e.defineComponent({name:"ElBadge"}),G=e.defineComponent({...Z,props:H,setup(t,{expose:r}){const n=t,o=a.useNamespace("badge"),c=e.computed(()=>n.isDot?"":a.isNumber(n.value)&&a.isNumber(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),i=e.computed(()=>{var s,f,g,h,m;return[{backgroundColor:n.color,marginRight:a.addUnit(-((f=(s=n.offset)==null?void 0:s[0])!=null?f:0)),marginTop:a.addUnit((h=(g=n.offset)==null?void 0:g[1])!=null?h:0)},(m=n.badgeStyle)!=null?m:{}]});return r({content:c}),(s,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).b())},[e.renderSlot(s.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(o).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(o).e("content"),e.unref(o).em("content",s.type),e.unref(o).is("fixed",!!s.$slots.default),e.unref(o).is("dot",s.isDot),e.unref(o).is("hide-zero",!s.showZero&&n.value===0),s.badgeClass]),style:e.normalizeStyle(e.unref(i))},[e.renderSlot(s.$slots,"content",{value:e.unref(c)},()=>[e.createTextVNode(e.toDisplayString(e.unref(c)),1)])],6),[[e.vShow,!s.hidden&&(e.unref(c)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}});var j=a._export_sfc(G,[["__file","badge.vue"]]);const W=a.withInstall(j),I=["primary","success","info","warning","error"],_=["top","top-left","top-right","bottom","bottom-left","bottom-right"],C="top",u=R.mutable({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:a.isClient?document.body:void 0}),J=a.buildProps({customClass:{type:String,default:u.customClass},dangerouslyUseHTMLString:{type:Boolean,default:u.dangerouslyUseHTMLString},duration:{type:Number,default:u.duration},icon:{type:v.iconPropType,default:u.icon},id:{type:String,default:u.id},message:{type:a.definePropType([String,Object,Function]),default:u.message},onClose:{type:a.definePropType(Function),default:u.onClose},showClose:{type:Boolean,default:u.showClose},type:{type:String,values:I,default:u.type},plain:{type:Boolean,default:u.plain},offset:{type:Number,default:u.offset},placement:{type:String,values:_,default:u.placement},zIndex:{type:Number,default:u.zIndex},grouping:{type:Boolean,default:u.grouping},repeatNum:{type:Number,default:u.repeatNum}}),K={destroy:()=>!0},d=e.shallowReactive({}),Q=t=>(d[t]||(d[t]=e.shallowReactive([])),d[t]),X=(t,r)=>{const n=d[r]||[],o=n.findIndex(s=>s.id===t),c=n[o];let i;return o>0&&(i=n[o-1]),{current:c,prev:i}},Y=(t,r)=>{const{prev:n}=X(t,r);return n?n.vm.exposed.bottom.value:0},ee=(t,r,n)=>(d[n]||[]).findIndex(i=>i.id===t)>0?16:r,ne=e.defineComponent({name:"ElMessage"}),te=e.defineComponent({...ne,props:J,emits:K,setup(t,{expose:r,emit:n}){const o=t,{Close:c}=v.TypeComponents,i=e.ref(!1),{ns:s,zIndex:f}=U.useGlobalComponentSettings("message"),{currentZIndex:g,nextZIndex:h}=f,m=e.ref(),T=e.ref(!1),E=e.ref(0);let S;const L=e.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),V=e.computed(()=>{const l=o.type;return{[s.bm("icon",l)]:l&&v.TypeComponentsMap[l]}}),w=e.computed(()=>o.icon||v.TypeComponentsMap[o.type]||""),b=e.computed(()=>o.placement||C),x=e.computed(()=>Y(o.id,b.value)),k=e.computed(()=>ee(o.id,o.offset,b.value)+x.value),D=e.computed(()=>E.value+k.value),O=e.computed(()=>b.value.includes("left")?s.is("left"):b.value.includes("right")?s.is("right"):s.is("center")),M=e.computed(()=>b.value.startsWith("top")?"top":"bottom"),A=e.computed(()=>({[M.value]:`${k.value}px`,zIndex:g.value}));function N(){o.duration!==0&&({stop:S}=a.useTimeoutFn(()=>{B()},o.duration))}function P(){S==null||S()}function B(){T.value=!1,e.nextTick(()=>{var l;i.value||((l=o.onClose)==null||l.call(o),n("destroy"))})}function F({code:l}){l===$.EVENT_CODE.esc&&B()}return e.onMounted(()=>{N(),h(),T.value=!0}),e.watch(()=>o.repeatNum,()=>{P(),N()}),v.useEventListener(document,"keydown",F),v.useResizeObserver(m,()=>{E.value=m.value.getBoundingClientRect().height}),r({visible:T,bottom:D,close:B}),(l,fe)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),onBeforeEnter:q=>i.value=!0,onBeforeLeave:l.onClose,onAfterLeave:q=>l.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:l.id,ref_key:"messageRef",ref:m,class:e.normalizeClass([e.unref(s).b(),{[e.unref(s).m(l.type)]:l.type},e.unref(s).is("closable",l.showClose),e.unref(s).is("plain",l.plain),e.unref(s).is("bottom",e.unref(M)==="bottom"),e.unref(O),l.customClass]),style:e.normalizeStyle(e.unref(A)),role:"alert",onMouseenter:P,onMouseleave:N},[l.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(W),{key:0,value:l.repeatNum,type:e.unref(L),class:e.normalizeClass(e.unref(s).e("badge"))},null,8,["value","type","class"])):e.createCommentVNode("v-if",!0),e.unref(w)?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:1,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(V)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(w))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(l.$slots,"default",{},()=>[l.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(s).e("content")),innerHTML:l.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(s).e("content"))},e.toDisplayString(l.message),3))]),l.showClose?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:2,class:e.normalizeClass(e.unref(s).e("closeBtn")),onClick:e.withModifiers(B,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(c))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,["id"]),[[e.vShow,T.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var oe=a._export_sfc(te,[["__file","message.vue"]]);let se=1;const ae=t=>{if(!t.appendTo)t.appendTo=document.body;else if(a.isString(t.appendTo)){let n=document.querySelector(t.appendTo);a.isElement(n)||(n=document.body),t.appendTo=n}},re=t=>{!t.placement&&a.isString(p.messageConfig.placement)&&p.messageConfig.placement&&(t.placement=p.messageConfig.placement),t.placement||(t.placement=C),_.includes(t.placement)||($.debugWarn("ElMessage",`Invalid placement: ${t.placement}. Falling back to '${C}'.`),t.placement=C)},z=t=>{const r=!t||a.isString(t)||e.isVNode(t)||a.isFunction(t)?{message:t}:t,n={...u,...r};return ae(n),re(n),a.isBoolean(p.messageConfig.grouping)&&!n.grouping&&(n.grouping=p.messageConfig.grouping),a.isNumber(p.messageConfig.duration)&&n.duration===3e3&&(n.duration=p.messageConfig.duration),a.isNumber(p.messageConfig.offset)&&n.offset===16&&(n.offset=p.messageConfig.offset),a.isBoolean(p.messageConfig.showClose)&&!n.showClose&&(n.showClose=p.messageConfig.showClose),a.isBoolean(p.messageConfig.plain)&&!n.plain&&(n.plain=p.messageConfig.plain),n},le=t=>{const r=t.props.placement||C,n=d[r],o=n.indexOf(t);if(o===-1)return;n.splice(o,1);const{handler:c}=t;c.close()},ie=({appendTo:t,...r},n)=>{const o=`message_${se++}`,c=r.onClose,i=document.createElement("div"),s={...r,id:o,onClose:()=>{c==null||c(),le(m)},onDestroy:()=>{e.render(null,i)}},f=e.createVNode(oe,s,a.isFunction(s.message)||e.isVNode(s.message)?{default:a.isFunction(s.message)?s.message:()=>s.message}:null);f.appContext=n||y._context,e.render(f,i),t.appendChild(i.firstElementChild);const g=f.component,m={id:o,vnode:f,vm:g,handler:{close:()=>{g.exposed.close()}},props:f.component.props};return m},y=(t={},r)=>{if(!a.isClient)return{close:()=>{}};const n=z(t),o=Q(n.placement||C);if(n.grouping&&o.length){const i=o.find(({vnode:s})=>{var f;return((f=s.props)==null?void 0:f.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}if(a.isNumber(p.messageConfig.max)&&o.length>=p.messageConfig.max)return{close:()=>{}};const c=ie(n,r);return o.push(c),c.handler};I.forEach(t=>{y[t]=(r={},n)=>{const o=z(r);return y({...o,type:t},n)}});function ce(t){for(const r in d)if(a.hasOwn(d,r)){const n=[...d[r]];for(const o of n)(!t||t===o.props.type)&&o.handler.close()}}function ue(t){if(!d[t])return;[...d[t]].forEach(n=>n.handler.close())}y.closeAll=ce;y.closeAllByPlacement=ue;y._context=null;const pe=a.withInstallFunction(y,"$message");exports.ElMessage=pe;
@@ -1,12 +1,11 @@
1
- import { defineComponent as I, computed as d, openBlock as g, createElementBlock as A, normalizeClass as v, unref as o, renderSlot as P, createVNode as F, Transition as J, withCtx as $, withDirectives as K, createElementVNode as x, normalizeStyle as Q, createTextVNode as ve, toDisplayString as X, vShow as Y, shallowReactive as ee, ref as N, onMounted as ye, watch as he, createBlock as S, createCommentVNode as M, resolveDynamicComponent as Ce, Fragment as be, withModifiers as Te, nextTick as Se, isVNode as te, render as j } from "vue";
2
- import { i as Ee, m as G, c as we, u as Be, T as Ne } from "./use-form-common-props-815d48a6.js";
3
- import { b as se, e as k, u as Me, p as E, n as W, _ as ne, w as $e, s as oe, d as ke, c as z, x as D, o as O, y as Ie, z as _e, F as Le } from "./base-a5af3db3.js";
4
- import { E as q } from "./index-a871c3eb.js";
1
+ import { defineComponent as I, computed as d, openBlock as g, createElementBlock as A, normalizeClass as v, unref as o, renderSlot as P, createVNode as F, Transition as J, withCtx as $, withDirectives as K, createElementVNode as D, normalizeStyle as Q, createTextVNode as ve, toDisplayString as X, vShow as Y, shallowReactive as ee, ref as N, onMounted as ye, watch as he, createBlock as S, createCommentVNode as M, resolveDynamicComponent as Ce, Fragment as be, withModifiers as Te, nextTick as Se, isVNode as te, render as j } from "vue";
2
+ import { k as Ee, p as G, b as we, j as Be, T as Ne } from "./use-form-common-props-4cdda474.js";
3
+ import { b as se, d as k, u as Me, n as E, s as W, _ as ne, w as $e, a as oe, E as q, S as ke, m as z, g as x, o as O, F as Ie, G as _e, U as Le } from "./base-aa512893.js";
5
4
  import { m as Oe } from "./typescript-7ae59c4c.js";
6
- import { u as Ae } from "./use-global-config-b5e9d3d5.js";
7
- import { a as Pe, d as xe } from "./el-popper-b4f97157.js";
8
- import { m as u } from "./config-provider-b16efd62.js";
9
- const De = se({
5
+ import { u as Ae } from "./use-global-config-7bfbe48c.js";
6
+ import { e as Pe, d as De } from "./el-popper-49152708.js";
7
+ import { m as u } from "./config-provider-49c17381.js";
8
+ const xe = se({
10
9
  value: {
11
10
  type: [String, Number],
12
11
  default: ""
@@ -41,7 +40,7 @@ const De = se({
41
40
  name: "ElBadge"
42
41
  }), ze = /* @__PURE__ */ I({
43
42
  ...Fe,
44
- props: De,
43
+ props: xe,
45
44
  setup(t, { expose: a }) {
46
45
  const e = t, s = Me("badge"), i = d(() => e.isDot ? "" : E(e.value) && E(e.max) ? e.max < e.value ? `${e.max}+` : `${e.value}` : `${e.value}`), r = d(() => {
47
46
  var n, p, y, b, m;
@@ -65,7 +64,7 @@ const De = se({
65
64
  persisted: ""
66
65
  }, {
67
66
  default: $(() => [
68
- K(x("sup", {
67
+ K(D("sup", {
69
68
  class: v([
70
69
  o(s).e("content"),
71
70
  o(s).em("content", n.type),
@@ -88,8 +87,8 @@ const De = se({
88
87
  ], 2));
89
88
  }
90
89
  });
91
- var He = /* @__PURE__ */ ne(ze, [["__file", "badge.vue"]]);
92
- const Re = $e(He), ae = [
90
+ var Ue = /* @__PURE__ */ ne(ze, [["__file", "badge.vue"]]);
91
+ const He = $e(Ue), ae = [
93
92
  "primary",
94
93
  "success",
95
94
  "info",
@@ -119,7 +118,7 @@ const Re = $e(He), ae = [
119
118
  grouping: !1,
120
119
  repeatNum: 1,
121
120
  appendTo: oe ? document.body : void 0
122
- }), Ue = se({
121
+ }), Re = se({
123
122
  customClass: {
124
123
  type: String,
125
124
  default: c.customClass
@@ -199,16 +198,16 @@ const Re = $e(He), ae = [
199
198
  name: "ElMessage"
200
199
  }), Je = /* @__PURE__ */ I({
201
200
  ...qe,
202
- props: Ue,
201
+ props: Re,
203
202
  emits: Ve,
204
203
  setup(t, { expose: a, emit: e }) {
205
- const s = t, { Close: i } = Ne, r = N(!1), { ns: n, zIndex: p } = Ae("message"), { currentZIndex: y, nextZIndex: b } = p, m = N(), w = N(!1), H = N(0);
204
+ const s = t, { Close: i } = Ne, r = N(!1), { ns: n, zIndex: p } = Ae("message"), { currentZIndex: y, nextZIndex: b } = p, m = N(), w = N(!1), U = N(0);
206
205
  let _;
207
206
  const ie = d(() => s.type ? s.type === "error" ? "danger" : s.type : "info"), ce = d(() => {
208
207
  const l = s.type;
209
208
  return { [n.bm("icon", l)]: l && G[l] };
210
- }), R = d(() => s.icon || G[s.type] || ""), T = d(() => s.placement || C), ue = d(() => Ge(s.id, T.value)), U = d(() => We(s.id, s.offset, T.value) + ue.value), pe = d(() => H.value + U.value), de = d(() => T.value.includes("left") ? n.is("left") : T.value.includes("right") ? n.is("right") : n.is("center")), V = d(() => T.value.startsWith("top") ? "top" : "bottom"), fe = d(() => ({
211
- [V.value]: `${U.value}px`,
209
+ }), H = d(() => s.icon || G[s.type] || ""), T = d(() => s.placement || C), ue = d(() => Ge(s.id, T.value)), R = d(() => We(s.id, s.offset, T.value) + ue.value), pe = d(() => U.value + R.value), de = d(() => T.value.includes("left") ? n.is("left") : T.value.includes("right") ? n.is("right") : n.is("center")), V = d(() => T.value.startsWith("top") ? "top" : "bottom"), fe = d(() => ({
210
+ [V.value]: `${R.value}px`,
212
211
  zIndex: y.value
213
212
  }));
214
213
  function L() {
@@ -233,7 +232,7 @@ const Re = $e(He), ae = [
233
232
  }), he(() => s.repeatNum, () => {
234
233
  Z(), L();
235
234
  }), we(document, "keydown", me), Be(m, () => {
236
- H.value = m.value.getBoundingClientRect().height;
235
+ U.value = m.value.getBoundingClientRect().height;
237
236
  }), a({
238
237
  visible: w,
239
238
  bottom: pe,
@@ -246,7 +245,7 @@ const Re = $e(He), ae = [
246
245
  persisted: ""
247
246
  }, {
248
247
  default: $(() => [
249
- K(x("div", {
248
+ K(D("div", {
250
249
  id: l.id,
251
250
  ref_key: "messageRef",
252
251
  ref: m,
@@ -264,25 +263,25 @@ const Re = $e(He), ae = [
264
263
  onMouseenter: Z,
265
264
  onMouseleave: L
266
265
  }, [
267
- l.repeatNum > 1 ? (g(), S(o(Re), {
266
+ l.repeatNum > 1 ? (g(), S(o(He), {
268
267
  key: 0,
269
268
  value: l.repeatNum,
270
269
  type: o(ie),
271
270
  class: v(o(n).e("badge"))
272
271
  }, null, 8, ["value", "type", "class"])) : M("v-if", !0),
273
- o(R) ? (g(), S(o(q), {
272
+ o(H) ? (g(), S(o(q), {
274
273
  key: 1,
275
274
  class: v([o(n).e("icon"), o(ce)])
276
275
  }, {
277
276
  default: $(() => [
278
- (g(), S(Ce(o(R))))
277
+ (g(), S(Ce(o(H))))
279
278
  ]),
280
279
  _: 1
281
280
  }, 8, ["class"])) : M("v-if", !0),
282
281
  P(l.$slots, "default", {}, () => [
283
282
  l.dangerouslyUseHTMLString ? (g(), A(be, { key: 1 }, [
284
283
  M(" Caution here, message could've been compromised, never use user's input as message "),
285
- x("p", {
284
+ D("p", {
286
285
  class: v(o(n).e("content")),
287
286
  innerHTML: l.message
288
287
  }, null, 10, ["innerHTML"])
@@ -319,9 +318,9 @@ const Xe = (t) => {
319
318
  _e(e) || (e = document.body), t.appendTo = e;
320
319
  }
321
320
  }, Ye = (t) => {
322
- !t.placement && z(u.placement) && u.placement && (t.placement = u.placement), t.placement || (t.placement = C), le.includes(t.placement) || (xe("ElMessage", `Invalid placement: ${t.placement}. Falling back to '${C}'.`), t.placement = C);
321
+ !t.placement && z(u.placement) && u.placement && (t.placement = u.placement), t.placement || (t.placement = C), le.includes(t.placement) || (De("ElMessage", `Invalid placement: ${t.placement}. Falling back to '${C}'.`), t.placement = C);
323
322
  }, re = (t) => {
324
- const a = !t || z(t) || te(t) || D(t) ? { message: t } : t, e = {
323
+ const a = !t || z(t) || te(t) || x(t) ? { message: t } : t, e = {
325
324
  ...c,
326
325
  ...a
327
326
  };
@@ -343,8 +342,8 @@ const Xe = (t) => {
343
342
  onDestroy: () => {
344
343
  j(null, r);
345
344
  }
346
- }, p = F(Ke, n, D(n.message) || te(n.message) ? {
347
- default: D(n.message) ? n.message : () => n.message
345
+ }, p = F(Ke, n, x(n.message) || te(n.message) ? {
346
+ default: x(n.message) ? n.message : () => n.message
348
347
  } : null);
349
348
  p.appContext = e || h._context, j(p, r), t.appendChild(r.firstElementChild);
350
349
  const y = p.component, m = {
@@ -400,7 +399,7 @@ function nt(t) {
400
399
  h.closeAll = st;
401
400
  h.closeAllByPlacement = nt;
402
401
  h._context = null;
403
- const ft = Le(h, "$message");
402
+ const dt = Le(h, "$message");
404
403
  export {
405
- ft as E
404
+ dt as E
406
405
  };
@@ -1,20 +1,18 @@
1
1
  import { nextTick as V, defineComponent as Be, computed as b, ref as w, reactive as we, markRaw as N, watch as _, onMounted as Me, onBeforeUnmount as ke, toRefs as Ie, resolveComponent as A, openBlock as u, createBlock as g, Transition as Te, withCtx as C, withDirectives as K, createVNode as k, createElementVNode as v, normalizeClass as r, normalizeStyle as x, withModifiers as D, createElementBlock as U, resolveDynamicComponent as L, createCommentVNode as M, toDisplayString as R, withKeys as P, renderSlot as Se, vShow as H, createTextVNode as ee, isVNode as ie, render as ue } from "vue";
2
- import { E as Ae } from "./el-button-c95adb85.js";
3
- import { E as Le } from "./el-input-2f75c4ba.js";
4
- import { E as Re, b as Ve, c as $e } from "./el-overlay-09ad71cd.js";
5
- import { E as Oe, l as ne } from "./index-a871c3eb.js";
6
- import { o as oe, a as ze, e as De } from "./el-popper-b4f97157.js";
7
- import { x as j, c as G, _ as Pe, s as Fe, y as se, f as ce, i as Ke, z as te } from "./base-a5af3db3.js";
8
- import { T as Ue, m as ae } from "./use-form-common-props-815d48a6.js";
9
- import { i as He } from "./validator-764a9db0.js";
10
- import { u as Ne } from "./use-global-config-b5e9d3d5.js";
11
- import { u as le } from "./index-960806da.js";
12
- import { u as je } from "./el-dialog-41ab8417.js";
2
+ import { E as Ae } from "./el-button-56624e61.js";
3
+ import { E as Le } from "./el-input-262851e8.js";
4
+ import { E as Re, u as Ve, a as $e } from "./el-overlay-04426e36.js";
5
+ import { E as Oe, B as ne, g as j, m as G, _ as ze, a as De, F as oe, p as ce, A as Pe, G as se } from "./base-aa512893.js";
6
+ import { o as te, e as Fe, b as Ke } from "./el-popper-49152708.js";
7
+ import { T as Ue, p as ae, d as le } from "./use-form-common-props-4cdda474.js";
8
+ import { i as He } from "./validator-e35f7978.js";
9
+ import { u as Ne } from "./use-global-config-7bfbe48c.js";
10
+ import { u as je } from "./el-dialog-1d5f5877.js";
13
11
  const q = "_trap-focus-children", E = [], re = (e) => {
14
12
  if (E.length === 0)
15
13
  return;
16
14
  const o = E[E.length - 1][q];
17
- if (o.length > 0 && e.code === ze.tab) {
15
+ if (o.length > 0 && e.code === Fe.tab) {
18
16
  if (o.length === 1) {
19
17
  e.preventDefault(), document.activeElement !== o[0] && o[0].focus();
20
18
  return;
@@ -24,11 +22,11 @@ const q = "_trap-focus-children", E = [], re = (e) => {
24
22
  }
25
23
  }, qe = {
26
24
  beforeMount(e) {
27
- e[q] = oe(e), E.push(e), E.length <= 1 && document.addEventListener("keydown", re);
25
+ e[q] = te(e), E.push(e), E.length <= 1 && document.addEventListener("keydown", re);
28
26
  },
29
27
  updated(e) {
30
28
  V(() => {
31
- e[q] = oe(e);
29
+ e[q] = te(e);
32
30
  });
33
31
  },
34
32
  unmounted() {
@@ -41,7 +39,7 @@ const q = "_trap-focus-children", E = [], re = (e) => {
41
39
  },
42
40
  components: {
43
41
  ElButton: Ae,
44
- ElFocusTrap: De,
42
+ ElFocusTrap: Ke,
45
43
  ElInput: Le,
46
44
  ElOverlay: Re,
47
45
  ElIcon: Oe,
@@ -413,10 +411,10 @@ function Xe(e, o, a, i, l, s) {
413
411
  _: 3
414
412
  }, 8, ["onAfterLeave"]);
415
413
  }
416
- var We = /* @__PURE__ */ Pe(Ge, [["render", Xe], ["__file", "index.vue"]]);
414
+ var We = /* @__PURE__ */ ze(Ge, [["render", Xe], ["__file", "index.vue"]]);
417
415
  const $ = /* @__PURE__ */ new Map(), Ze = (e) => {
418
416
  let o = document.body;
419
- return e.appendTo && (G(e.appendTo) && (o = document.querySelector(e.appendTo)), te(e.appendTo) && (o = e.appendTo), te(o) || (o = document.body)), o;
417
+ return e.appendTo && (G(e.appendTo) && (o = document.querySelector(e.appendTo)), se(e.appendTo) && (o = e.appendTo), se(o) || (o = document.body)), o;
420
418
  }, Je = (e, o, a = null) => {
421
419
  const i = k(We, e, j(e.message) || ie(e.message) ? {
422
420
  default: j(e.message) ? e.message : () => e.message
@@ -433,11 +431,11 @@ const $ = /* @__PURE__ */ new Map(), Ze = (e) => {
433
431
  };
434
432
  const i = Je(e, a, o), l = i.proxy;
435
433
  for (const s in e)
436
- se(e, s) && !se(l.$props, s) && (s === "closeIcon" && ce(e[s]) ? l[s] = N(e[s]) : l[s] = e[s]);
434
+ oe(e, s) && !oe(l.$props, s) && (s === "closeIcon" && ce(e[s]) ? l[s] = N(e[s]) : l[s] = e[s]);
437
435
  return l.visible = !0, l;
438
436
  };
439
437
  function I(e, o = null) {
440
- if (!Fe)
438
+ if (!De)
441
439
  return Promise.reject();
442
440
  let a;
443
441
  return G(e) || ie(e) ? e = {
@@ -463,7 +461,7 @@ _e.forEach((e) => {
463
461
  function en(e) {
464
462
  return (o, a, i, l) => {
465
463
  let s = "";
466
- return ce(a) ? (i = a, s = "") : Ke(a) ? s = "" : s = a, I(Object.assign({
464
+ return ce(a) ? (i = a, s = "") : Pe(a) ? s = "" : s = a, I(Object.assign({
467
465
  title: s,
468
466
  message: o,
469
467
  type: "",
@@ -483,7 +481,7 @@ const y = I;
483
481
  y.install = (e) => {
484
482
  y._context = e._context, e.config.globalProperties.$msgbox = y, e.config.globalProperties.$messageBox = y, e.config.globalProperties.$alert = y.alert, e.config.globalProperties.$confirm = y.confirm, e.config.globalProperties.$prompt = y.prompt;
485
483
  };
486
- const pn = y;
484
+ const fn = y;
487
485
  export {
488
- pn as E
486
+ fn as E
489
487
  };