st-comp 0.0.208 → 0.0.209

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