st-comp 0.0.136 → 0.0.137

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 (97) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +2 -2
  3. package/es/Dialog.cjs +1 -1
  4. package/es/Dialog.js +11 -11
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +89 -89
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +13 -13
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +22 -22
  11. package/es/KlineNew.cjs +1 -1
  12. package/es/KlineNew.js +11 -11
  13. package/es/Pagination.cjs +1 -1
  14. package/es/Pagination.js +73 -73
  15. package/es/Table.cjs +1 -1
  16. package/es/Table.js +24 -24
  17. package/es/TreeMap.cjs +1 -2
  18. package/es/TreeMap.js +1 -163
  19. package/es/User.cjs +1 -1
  20. package/es/User.js +32 -32
  21. package/es/VarietySearch.cjs +1 -1
  22. package/es/VarietySearch.js +421 -422
  23. package/es/VirtualTable.cjs +2 -2
  24. package/es/VirtualTable.js +10 -10
  25. package/es/{base-3ecbc734.js → base-7ecff73f.js} +68 -68
  26. package/es/{base-ec05f348.cjs → base-b384d332.cjs} +1 -1
  27. package/es/{castArray-a45823fe.cjs → castArray-21cb8c6a.cjs} +1 -1
  28. package/es/{castArray-7d3fc921.js → castArray-d87e6d83.js} +1 -1
  29. package/es/{config-provider-7cdfca4d.cjs → config-provider-08c54ec3.cjs} +1 -1
  30. package/es/{config-provider-83904b4d.js → config-provider-c6d33ae0.js} +3 -3
  31. package/es/{debounce-7344b088.js → debounce-24a2e3ec.js} +25 -25
  32. package/es/debounce-2ecf2d1f.cjs +1 -0
  33. package/es/{dropdown-9a974876.cjs → dropdown-1de99dc2.cjs} +1 -1
  34. package/es/{dropdown-7da44c8f.js → dropdown-6f212b92.js} +4 -4
  35. package/es/{el-button-24f79286.js → el-button-26f1342d.js} +11 -11
  36. package/es/{el-button-196807af.cjs → el-button-d234707c.cjs} +1 -1
  37. package/es/{el-empty-19ea04f4.cjs → el-empty-2d7a61d4.cjs} +1 -1
  38. package/es/{el-empty-79c5f7a8.js → el-empty-aa6a8f05.js} +1 -1
  39. package/es/{el-form-item-7d32befa.cjs → el-form-item-466b1601.cjs} +2 -2
  40. package/es/{el-form-item-afc3dcf2.js → el-form-item-f7a1de00.js} +107 -107
  41. package/es/{el-input-ee7db655.js → el-input-d0f5c98c.js} +46 -46
  42. package/es/el-input-fd2b3a26.cjs +1 -0
  43. package/es/el-input-number-509152ff.cjs +1 -0
  44. package/es/{el-input-number-63c21037.js → el-input-number-944a4ee2.js} +25 -25
  45. package/es/{el-menu-item-0d92e7dc.js → el-menu-item-726bb0bc.js} +112 -112
  46. package/es/el-menu-item-83e9739a.cjs +1 -0
  47. package/es/{el-message-562e923d.cjs → el-message-67684e35.cjs} +1 -1
  48. package/es/{el-message-71aa42ca.js → el-message-8149ff2d.js} +38 -38
  49. package/es/{el-overlay-6056c89a.js → el-overlay-7abe3c16.js} +96 -96
  50. package/es/{el-overlay-891dcc40.cjs → el-overlay-7d8307c8.cjs} +1 -1
  51. package/es/{el-popover-8735b1fa.cjs → el-popover-129a9692.cjs} +1 -1
  52. package/es/{el-popover-c8b2456c.js → el-popover-73df49b7.js} +20 -20
  53. package/es/el-popper-3d8f2656.cjs +1 -0
  54. package/es/{el-popper-d3eef7ed.js → el-popper-92dc6e44.js} +134 -134
  55. package/es/{el-scrollbar-66f3bb72.js → el-scrollbar-9f1b83f8.js} +10 -10
  56. package/es/el-scrollbar-a01fea99.cjs +1 -0
  57. package/es/{el-select-5fb7d469.js → el-select-1b3092ab.js} +10 -10
  58. package/es/el-select-d3f8b31c.cjs +1 -0
  59. package/es/el-table-column-1319b1ba.cjs +14 -0
  60. package/es/{el-table-column-560db3aa.js → el-table-column-a781f780.js} +117 -117
  61. package/es/{el-tag-6a31c968.js → el-tag-4323606a.js} +93 -93
  62. package/es/{el-tag-3b03d13e.cjs → el-tag-6d45f0b2.cjs} +1 -1
  63. package/es/{index-a1ecf26c.js → index-0d6776f7.js} +21 -21
  64. package/es/{index-80a2b137.cjs → index-2d697ae8.cjs} +1 -1
  65. package/es/{index-fa07a823.js → index-81702fc3.js} +13 -13
  66. package/es/{index-68ee64fa.js → index-bc7c8ad4.js} +27 -27
  67. package/es/{index-8a0b1c53.cjs → index-cb665c76.cjs} +1 -1
  68. package/es/{index-e1e83173.cjs → index-e0fa2f71.cjs} +1 -1
  69. package/es/{raf-377cf8f5.js → raf-196eee8e.js} +1 -1
  70. package/es/{raf-8fc301fd.cjs → raf-930895a1.cjs} +1 -1
  71. package/es/{refs-d00b710b.cjs → refs-4b61ff18.cjs} +1 -1
  72. package/es/refs-de750cc1.js +9 -0
  73. package/es/{scroll-41224831.cjs → scroll-495227b0.cjs} +1 -1
  74. package/es/{scroll-1efa8148.js → scroll-8e2a4c8b.js} +1 -1
  75. package/es/style.css +1 -1
  76. package/es/{use-form-common-props-9c0363ac.js → use-form-common-props-1075088e.js} +74 -74
  77. package/es/{use-form-common-props-1b84d8f4.cjs → use-form-common-props-41091f5f.cjs} +2 -2
  78. package/es/{vnode-7fbc61e1.cjs → vnode-44ebae3f.cjs} +1 -1
  79. package/es/{vnode-cfcdab70.js → vnode-85a8ebd8.js} +1 -1
  80. package/es/{zh-cn-4a476dc8.js → zh-cn-3d9d6ecf.js} +2 -2
  81. package/es/{zh-cn-ab9a583d.cjs → zh-cn-44d71e6d.cjs} +1 -1
  82. package/lib/bundle.js +1 -1
  83. package/lib/bundle.umd.cjs +1 -1
  84. package/lib/{index-73a5840c.js → index-4926b969.js} +7 -8
  85. package/lib/{python-bb104d23.js → python-26e17fc9.js} +1 -1
  86. package/lib/style.css +1 -1
  87. package/package.json +1 -1
  88. package/packages/VarietySearch/index.vue +6 -1
  89. package/es/debounce-b2ff12bd.cjs +0 -1
  90. package/es/el-input-6c6f5bda.cjs +0 -1
  91. package/es/el-input-number-0524d787.cjs +0 -1
  92. package/es/el-menu-item-dc904a35.cjs +0 -1
  93. package/es/el-popper-f62316cd.cjs +0 -1
  94. package/es/el-scrollbar-d1c3e7f7.cjs +0 -1
  95. package/es/el-select-928f8c19.cjs +0 -1
  96. package/es/el-table-column-dd8b62aa.cjs +0 -14
  97. package/es/refs-46cf8186.js +0 -9
@@ -1,12 +1,12 @@
1
- import { defineComponent as B, computed as m, openBlock as v, createElementBlock as z, normalizeClass as C, unref as s, renderSlot as I, createVNode as O, Transition as j, withCtx as E, withDirectives as Z, createElementVNode as L, normalizeStyle as q, createTextVNode as re, toDisplayString as G, vShow as W, shallowReactive as ie, ref as k, onMounted as ue, watch as de, createBlock as b, createCommentVNode as S, resolveDynamicComponent as ce, Fragment as pe, withModifiers as fe, isVNode as J, render as F } from "vue";
2
- import { b as me, a as ge } from "./el-scrollbar-66f3bb72.js";
3
- import { b as K, d as N, u as ye, a as T, y as A, _ as Q, w as ve, j as X, p as Ce, i as R, h as _, m as he, f as be, c as V, H as Te } from "./base-3ecbc734.js";
4
- import { j as we, f as P, E as U, T as Se } from "./use-form-common-props-9c0363ac.js";
1
+ import { defineComponent as B, computed as m, openBlock as v, createElementBlock as z, normalizeClass as C, unref as s, renderSlot as L, createVNode as O, Transition as Z, withCtx as E, withDirectives as j, createElementVNode as I, normalizeStyle as G, createTextVNode as re, toDisplayString as q, vShow as K, shallowReactive as ie, ref as k, onMounted as ue, watch as de, createBlock as b, createCommentVNode as S, resolveDynamicComponent as ce, Fragment as pe, withModifiers as fe, isVNode as W, render as H } from "vue";
2
+ import { u as me, a as ge } from "./el-scrollbar-9f1b83f8.js";
3
+ import { d as J, e as N, l as ye, o as T, m as A, _ as Q, w as ve, b as X, K as Ce, x as R, a as _, G as he, s as be, L as V, M as Te } from "./base-7ecff73f.js";
4
+ import { i as we, T as P, E as U, w as Se } from "./use-form-common-props-1075088e.js";
5
5
  import { m as Ee } from "./typescript-7ae59c4c.js";
6
- import { u as Ne } from "./index-68ee64fa.js";
7
- import { E as Be } from "./index-fa07a823.js";
8
- import { m as c } from "./config-provider-83904b4d.js";
9
- const Me = K({
6
+ import { b as Ne } from "./index-bc7c8ad4.js";
7
+ import { E as Be } from "./index-81702fc3.js";
8
+ import { m as c } from "./config-provider-c6d33ae0.js";
9
+ const Me = J({
10
10
  value: {
11
11
  type: [String, Number],
12
12
  default: ""
@@ -59,13 +59,13 @@ const Me = K({
59
59
  }), (l, u) => (v(), z("div", {
60
60
  class: C(s(a).b())
61
61
  }, [
62
- I(l.$slots, "default"),
63
- O(j, {
62
+ L(l.$slots, "default"),
63
+ O(Z, {
64
64
  name: `${s(a).namespace.value}-zoom-in-center`,
65
65
  persisted: ""
66
66
  }, {
67
67
  default: E(() => [
68
- Z(L("sup", {
68
+ j(I("sup", {
69
69
  class: C([
70
70
  s(a).e("content"),
71
71
  s(a).em("content", l.type),
@@ -74,13 +74,13 @@ const Me = K({
74
74
  s(a).is("hide-zero", !l.showZero && e.value === 0),
75
75
  l.badgeClass
76
76
  ]),
77
- style: q(s(p))
77
+ style: G(s(p))
78
78
  }, [
79
- I(l.$slots, "content", { value: s(n) }, () => [
80
- re(G(s(n)), 1)
79
+ L(l.$slots, "content", { value: s(n) }, () => [
80
+ re(q(s(n)), 1)
81
81
  ])
82
82
  ], 6), [
83
- [W, !l.hidden && (s(n) || l.isDot || l.$slots.content)]
83
+ [K, !l.hidden && (s(n) || l.isDot || l.$slots.content)]
84
84
  ])
85
85
  ]),
86
86
  _: 3
@@ -89,7 +89,7 @@ const Me = K({
89
89
  }
90
90
  });
91
91
  var ze = /* @__PURE__ */ Q(ke, [["__file", "badge.vue"]]);
92
- const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
92
+ const Le = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
93
93
  customClass: "",
94
94
  center: !1,
95
95
  dangerouslyUseHTMLString: !1,
@@ -106,7 +106,7 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
106
106
  grouping: !1,
107
107
  repeatNum: 1,
108
108
  appendTo: X ? document.body : void 0
109
- }), Le = K({
109
+ }), Ie = J({
110
110
  customClass: {
111
111
  type: String,
112
112
  default: i.customClass
@@ -181,11 +181,11 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
181
181
  }, De = (o) => {
182
182
  const { prev: t } = Oe(o);
183
183
  return t ? t.vm.exposed.bottom.value : 0;
184
- }, xe = (o, t) => d.findIndex((a) => a.id === o) > 0 ? 16 : t, He = B({
184
+ }, xe = (o, t) => d.findIndex((a) => a.id === o) > 0 ? 16 : t, Fe = B({
185
185
  name: "ElMessage"
186
- }), Fe = /* @__PURE__ */ B({
187
- ...He,
188
- props: Le,
186
+ }), He = /* @__PURE__ */ B({
187
+ ...Fe,
188
+ props: Ie,
189
189
  emits: _e,
190
190
  setup(o, { expose: t }) {
191
191
  const e = o, { Close: a } = Se, { ns: n, zIndex: p } = Ne("message"), { currentZIndex: l, nextZIndex: u } = p, f = k(), g = k(!1), y = k(0);
@@ -202,7 +202,7 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
202
202
  w();
203
203
  }, e.duration));
204
204
  }
205
- function H() {
205
+ function F() {
206
206
  M == null || M();
207
207
  }
208
208
  function w() {
@@ -214,21 +214,21 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
214
214
  return ue(() => {
215
215
  $(), u(), g.value = !0;
216
216
  }), de(() => e.repeatNum, () => {
217
- H(), $();
217
+ F(), $();
218
218
  }), me(document, "keydown", le), ge(f, () => {
219
219
  y.value = f.value.getBoundingClientRect().height;
220
220
  }), t({
221
221
  visible: g,
222
222
  bottom: ne,
223
223
  close: w
224
- }), (r, je) => (v(), b(j, {
224
+ }), (r, Ze) => (v(), b(Z, {
225
225
  name: s(n).b("fade"),
226
226
  onBeforeLeave: r.onClose,
227
- onAfterLeave: (Ze) => r.$emit("destroy"),
227
+ onAfterLeave: (je) => r.$emit("destroy"),
228
228
  persisted: ""
229
229
  }, {
230
230
  default: E(() => [
231
- Z(L("div", {
231
+ j(I("div", {
232
232
  id: r.id,
233
233
  ref_key: "messageRef",
234
234
  ref: f,
@@ -240,12 +240,12 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
240
240
  s(n).is("plain", r.plain),
241
241
  r.customClass
242
242
  ]),
243
- style: q(s(ae)),
243
+ style: G(s(ae)),
244
244
  role: "alert",
245
- onMouseenter: H,
245
+ onMouseenter: F,
246
246
  onMouseleave: $
247
247
  }, [
248
- r.repeatNum > 1 ? (v(), b(s(Ie), {
248
+ r.repeatNum > 1 ? (v(), b(s(Le), {
249
249
  key: 0,
250
250
  value: r.repeatNum,
251
251
  type: s(se),
@@ -260,17 +260,17 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
260
260
  ]),
261
261
  _: 1
262
262
  }, 8, ["class"])) : S("v-if", !0),
263
- I(r.$slots, "default", {}, () => [
263
+ L(r.$slots, "default", {}, () => [
264
264
  r.dangerouslyUseHTMLString ? (v(), z(pe, { key: 1 }, [
265
265
  S(" Caution here, message could've been compromised, never use user's input as message "),
266
- L("p", {
266
+ I("p", {
267
267
  class: C(s(n).e("content")),
268
268
  innerHTML: r.message
269
269
  }, null, 10, ["innerHTML"])
270
270
  ], 2112)) : (v(), z("p", {
271
271
  key: 0,
272
272
  class: C(s(n).e("content"))
273
- }, G(r.message), 3))
273
+ }, q(r.message), 3))
274
274
  ]),
275
275
  r.showClose ? (v(), b(s(U), {
276
276
  key: 2,
@@ -283,17 +283,17 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
283
283
  _: 1
284
284
  }, 8, ["class", "onClick"])) : S("v-if", !0)
285
285
  ], 46, ["id"]), [
286
- [W, g.value]
286
+ [K, g.value]
287
287
  ])
288
288
  ]),
289
289
  _: 3
290
290
  }, 8, ["name", "onBeforeLeave", "onAfterLeave"]));
291
291
  }
292
292
  });
293
- var Ae = /* @__PURE__ */ Q(Fe, [["__file", "message.vue"]]);
293
+ var Ae = /* @__PURE__ */ Q(He, [["__file", "message.vue"]]);
294
294
  let Re = 1;
295
295
  const ee = (o) => {
296
- const t = !o || R(o) || J(o) || _(o) ? { message: o } : o, e = {
296
+ const t = !o || R(o) || W(o) || _(o) ? { message: o } : o, e = {
297
297
  ...i,
298
298
  ...t
299
299
  };
@@ -319,12 +319,12 @@ const ee = (o) => {
319
319
  n == null || n(), Ve(y);
320
320
  },
321
321
  onDestroy: () => {
322
- F(null, p);
322
+ H(null, p);
323
323
  }
324
- }, u = O(Ae, l, _(l.message) || J(l.message) ? {
324
+ }, u = O(Ae, l, _(l.message) || W(l.message) ? {
325
325
  default: _(l.message) ? l.message : () => l.message
326
326
  } : null);
327
- u.appContext = e || h._context, F(u, p), o.appendChild(p.firstElementChild);
327
+ u.appContext = e || h._context, H(u, p), o.appendChild(p.firstElementChild);
328
328
  const f = u.component, y = {
329
329
  id: a,
330
330
  vnode: u,
@@ -1,15 +1,15 @@
1
- import { defineComponent as X, createVNode as R, renderSlot as b, h as de, onMounted as te, watchEffect as fe, onBeforeUnmount as me, inject as Q, computed as k, openBlock as N, createElementBlock as U, unref as o, normalizeClass as w, normalizeStyle as le, createElementVNode as j, toDisplayString as ve, withCtx as E, createBlock as K, resolveDynamicComponent as ye, createCommentVNode as q, isRef as pe, watch as Z, onScopeDispose as ge, getCurrentInstance as Ce, ref as A, nextTick as be, useSlots as he, provide as we, Transition as Ee, withDirectives as ke, mergeProps as Se, createSlots as Me, vShow as Te } from "vue";
2
- import { N as V, b as J, d as H, u as _, y as G, x as De, _ as ne, c as Ie, t as Be, j as se, o as x, n as Le, A as Pe, r as Ae, e as ee, I as Oe, p as oe, w as Fe } from "./base-3ecbc734.js";
3
- import { P as W } from "./vnode-cfcdab70.js";
4
- import { F as $e, i as Ne, b as ze, a as Ye } from "./index-fa07a823.js";
5
- import { j as Re, E as Xe, C as je, D as He } from "./use-form-common-props-9c0363ac.js";
6
- import { c as Ue } from "./refs-46cf8186.js";
1
+ import { defineComponent as U, createVNode as R, renderSlot as b, h as de, onMounted as te, watchEffect as fe, onBeforeUnmount as me, inject as _, computed as k, openBlock as N, createElementBlock as V, unref as o, normalizeClass as w, normalizeStyle as le, createElementVNode as X, toDisplayString as ve, withCtx as E, createBlock as W, resolveDynamicComponent as ye, createCommentVNode as q, isRef as pe, watch as Z, onScopeDispose as ge, getCurrentInstance as Ce, ref as F, nextTick as be, useSlots as he, provide as we, Transition as Ee, withDirectives as ke, mergeProps as Se, createSlots as Me, vShow as Te } from "vue";
2
+ import { N as j, d as J, e as H, l as Q, m as G, u as Le, _ as ne, L as Be, v as De, b as se, U as x, R as Ie, Q as Pe, P as Fe, y as ee, F as Oe, K as oe, w as Ae } from "./base-7ecff73f.js";
3
+ import { P as K } from "./vnode-85a8ebd8.js";
4
+ import { F as $e, i as Ne, b as ze, a as Ye } from "./index-81702fc3.js";
5
+ import { i as Re, E as Ue, C as Xe, j as He } from "./use-form-common-props-1075088e.js";
6
+ import { c as Ve } from "./refs-de750cc1.js";
7
7
  import { U as ae } from "./event-09e37cc8.js";
8
- import { g as Ve } from "./scroll-1efa8148.js";
9
- import { b as We, a as Ke } from "./index-68ee64fa.js";
8
+ import { g as je } from "./scroll-8e2a4c8b.js";
9
+ import { a as Ke, u as We } from "./index-bc7c8ad4.js";
10
10
  const re = (e) => {
11
11
  if (!e)
12
- return { onClick: V, onMousedown: V, onMouseup: V };
12
+ return { onClick: j, onMousedown: j, onMouseup: j };
13
13
  let l = !1, n = !1;
14
14
  return { onClick: (r) => {
15
15
  l && n && e(r), l = n = !1;
@@ -37,23 +37,23 @@ const re = (e) => {
37
37
  }), Ze = {
38
38
  click: (e) => e instanceof MouseEvent
39
39
  }, Ge = "overlay";
40
- var Je = X({
40
+ var Je = U({
41
41
  name: "ElOverlay",
42
42
  props: qe,
43
43
  emits: Ze,
44
44
  setup(e, { slots: l, emit: n }) {
45
- const d = _(Ge), s = (a) => {
45
+ const d = Q(Ge), s = (a) => {
46
46
  n("click", a);
47
- }, { onClick: c, onMousedown: r, onMouseup: f } = re(e.customMaskEvent ? void 0 : s);
47
+ }, { onClick: u, onMousedown: r, onMouseup: f } = re(e.customMaskEvent ? void 0 : s);
48
48
  return () => e.mask ? R("div", {
49
49
  class: [d.b(), e.overlayClass],
50
50
  style: {
51
51
  zIndex: e.zIndex
52
52
  },
53
- onClick: c,
53
+ onClick: u,
54
54
  onMousedown: r,
55
55
  onMouseup: f
56
- }, [b(l, "default")], W.STYLE | W.CLASS | W.PROPS, ["onClick", "onMouseup", "onMousedown"]) : de("div", {
56
+ }, [b(l, "default")], K.STYLE | K.CLASS | K.PROPS, ["onClick", "onMouseup", "onMousedown"]) : de("div", {
57
57
  class: e.overlayClass,
58
58
  style: {
59
59
  zIndex: e.zIndex,
@@ -66,7 +66,7 @@ var Je = X({
66
66
  }, [b(l, "default")]);
67
67
  }
68
68
  });
69
- const _e = Je, ie = Symbol("dialogInjectionKey"), ce = J({
69
+ const Qe = Je, ie = Symbol("dialogInjectionKey"), ue = J({
70
70
  center: Boolean,
71
71
  alignCenter: Boolean,
72
72
  closeIcon: {
@@ -90,28 +90,28 @@ const _e = Je, ie = Symbol("dialogInjectionKey"), ce = J({
90
90
  type: String,
91
91
  default: "2"
92
92
  }
93
- }), Qe = {
93
+ }), _e = {
94
94
  close: () => !0
95
95
  }, xe = (e, l, n, d) => {
96
96
  let s = {
97
97
  offsetX: 0,
98
98
  offsetY: 0
99
99
  };
100
- const c = (u) => {
101
- const y = u.clientX, C = u.clientY, { offsetX: g, offsetY: m } = s, v = e.value.getBoundingClientRect(), h = v.left, i = v.top, O = v.width, S = v.height, z = document.documentElement.clientWidth, Y = document.documentElement.clientHeight, F = -h + g, M = -i + m, T = z - h - O + g, D = Y - i - S + m, I = (t) => {
102
- let L = g + t.clientX - y, $ = m + t.clientY - C;
103
- d != null && d.value || (L = Math.min(Math.max(L, F), T), $ = Math.min(Math.max($, M), D)), s = {
104
- offsetX: L,
100
+ const u = (c) => {
101
+ const y = c.clientX, C = c.clientY, { offsetX: g, offsetY: m } = s, v = e.value.getBoundingClientRect(), h = v.left, i = v.top, O = v.width, S = v.height, z = document.documentElement.clientWidth, Y = document.documentElement.clientHeight, A = -h + g, M = -i + m, T = z - h - O + g, L = Y - i - S + m, B = (t) => {
102
+ let I = g + t.clientX - y, $ = m + t.clientY - C;
103
+ d != null && d.value || (I = Math.min(Math.max(I, A), T), $ = Math.min(Math.max($, M), L)), s = {
104
+ offsetX: I,
105
105
  offsetY: $
106
- }, e.value && (e.value.style.transform = `translate(${G(L)}, ${G($)})`);
107
- }, B = () => {
108
- document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", B);
106
+ }, e.value && (e.value.style.transform = `translate(${G(I)}, ${G($)})`);
107
+ }, D = () => {
108
+ document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", D);
109
109
  };
110
- document.addEventListener("mousemove", I), document.addEventListener("mouseup", B);
110
+ document.addEventListener("mousemove", B), document.addEventListener("mouseup", D);
111
111
  }, r = () => {
112
- l.value && e.value && l.value.addEventListener("mousedown", c);
112
+ l.value && e.value && l.value.addEventListener("mousedown", u);
113
113
  }, f = () => {
114
- l.value && e.value && l.value.removeEventListener("mousedown", c);
114
+ l.value && e.value && l.value.removeEventListener("mousedown", u);
115
115
  }, a = () => {
116
116
  s = {
117
117
  offsetX: 0,
@@ -127,62 +127,62 @@ const _e = Je, ie = Symbol("dialogInjectionKey"), ce = J({
127
127
  }), {
128
128
  resetPosition: a
129
129
  };
130
- }, eo = X({ name: "ElDialogContent" }), oo = /* @__PURE__ */ X({
130
+ }, eo = U({ name: "ElDialogContent" }), oo = /* @__PURE__ */ U({
131
131
  ...eo,
132
- props: ce,
133
- emits: Qe,
132
+ props: ue,
133
+ emits: _e,
134
134
  setup(e, { expose: l }) {
135
- const n = e, { t: d } = De(), { Close: s } = je, { dialogRef: c, headerRef: r, bodyId: f, ns: a, style: u } = Q(ie), { focusTrapRef: y } = Q($e), C = k(() => [
135
+ const n = e, { t: d } = Le(), { Close: s } = Xe, { dialogRef: u, headerRef: r, bodyId: f, ns: a, style: c } = _(ie), { focusTrapRef: y } = _($e), C = k(() => [
136
136
  a.b(),
137
137
  a.is("fullscreen", n.fullscreen),
138
138
  a.is("draggable", n.draggable),
139
139
  a.is("align-center", n.alignCenter),
140
140
  { [a.m("center")]: n.center }
141
- ]), g = Ue(y, c), m = k(() => n.draggable), v = k(() => n.overflow), { resetPosition: h } = xe(c, r, m, v);
141
+ ]), g = Ve(y, u), m = k(() => n.draggable), v = k(() => n.overflow), { resetPosition: h } = xe(u, r, m, v);
142
142
  return l({
143
143
  resetPosition: h
144
- }), (i, O) => (N(), U("div", {
144
+ }), (i, O) => (N(), V("div", {
145
145
  ref: o(g),
146
146
  class: w(o(C)),
147
- style: le(o(u)),
147
+ style: le(o(c)),
148
148
  tabindex: "-1"
149
149
  }, [
150
- j("header", {
150
+ X("header", {
151
151
  ref_key: "headerRef",
152
152
  ref: r,
153
153
  class: w([o(a).e("header"), i.headerClass, { "show-close": i.showClose }])
154
154
  }, [
155
155
  b(i.$slots, "header", {}, () => [
156
- j("span", {
156
+ X("span", {
157
157
  role: "heading",
158
158
  "aria-level": i.ariaLevel,
159
159
  class: w(o(a).e("title"))
160
160
  }, ve(i.title), 11, ["aria-level"])
161
161
  ]),
162
- i.showClose ? (N(), U("button", {
162
+ i.showClose ? (N(), V("button", {
163
163
  key: 0,
164
164
  "aria-label": o(d)("el.dialog.close"),
165
165
  class: w(o(a).e("headerbtn")),
166
166
  type: "button",
167
167
  onClick: (S) => i.$emit("close")
168
168
  }, [
169
- R(o(Xe), {
169
+ R(o(Ue), {
170
170
  class: w(o(a).e("close"))
171
171
  }, {
172
172
  default: E(() => [
173
- (N(), K(ye(i.closeIcon || o(s))))
173
+ (N(), W(ye(i.closeIcon || o(s))))
174
174
  ]),
175
175
  _: 1
176
176
  }, 8, ["class"])
177
177
  ], 10, ["aria-label", "onClick"])) : q("v-if", !0)
178
178
  ], 2),
179
- j("div", {
179
+ X("div", {
180
180
  id: o(f),
181
181
  class: w([o(a).e("body"), i.bodyClass])
182
182
  }, [
183
183
  b(i.$slots, "default")
184
184
  ], 10, ["id"]),
185
- i.$slots.footer ? (N(), U("footer", {
185
+ i.$slots.footer ? (N(), V("footer", {
186
186
  key: 0,
187
187
  class: w([o(a).e("footer"), i.footerClass])
188
188
  }, [
@@ -193,7 +193,7 @@ const _e = Je, ie = Symbol("dialogInjectionKey"), ce = J({
193
193
  });
194
194
  var to = /* @__PURE__ */ ne(oo, [["__file", "dialog-content.vue"]]);
195
195
  const lo = J({
196
- ...ce,
196
+ ...ue,
197
197
  appendToBody: Boolean,
198
198
  appendTo: {
199
199
  type: H([String, Object]),
@@ -251,18 +251,18 @@ const lo = J({
251
251
  opened: () => !0,
252
252
  close: () => !0,
253
253
  closed: () => !0,
254
- [ae]: (e) => Ie(e),
254
+ [ae]: (e) => Be(e),
255
255
  openAutoFocus: () => !0,
256
256
  closeAutoFocus: () => !0
257
257
  }, so = (e, l = {}) => {
258
- pe(e) || Be("[useLockscreen]", "You need to pass a ref param to this function");
259
- const n = l.ns || _("popup"), d = k(() => n.bm("parent", "hidden"));
258
+ pe(e) || De("[useLockscreen]", "You need to pass a ref param to this function");
259
+ const n = l.ns || Q("popup"), d = k(() => n.bm("parent", "hidden"));
260
260
  if (!se || x(document.body, d.value))
261
261
  return;
262
- let s = 0, c = !1, r = "0";
262
+ let s = 0, u = !1, r = "0";
263
263
  const f = () => {
264
264
  setTimeout(() => {
265
- typeof document > "u" || c && document && (document.body.style.width = r, Ae(document.body, d.value));
265
+ typeof document > "u" || u && document && (document.body.style.width = r, Fe(document.body, d.value));
266
266
  }, 200);
267
267
  };
268
268
  Z(e, (a) => {
@@ -270,17 +270,17 @@ const lo = J({
270
270
  f();
271
271
  return;
272
272
  }
273
- c = !x(document.body, d.value), c && (r = document.body.style.width, Le(document.body, d.value)), s = Ve(n.namespace.value);
274
- const u = document.documentElement.clientHeight < document.body.scrollHeight, y = Pe(document.body, "overflowY");
275
- s > 0 && (u || y === "scroll") && c && (document.body.style.width = `calc(100% - ${s}px)`);
273
+ u = !x(document.body, d.value), u && (r = document.body.style.width, Ie(document.body, d.value)), s = je(n.namespace.value);
274
+ const c = document.documentElement.clientHeight < document.body.scrollHeight, y = Pe(document.body, "overflowY");
275
+ s > 0 && (c || y === "scroll") && u && (document.body.style.width = `calc(100% - ${s}px)`);
276
276
  }), ge(() => f());
277
277
  }, ao = (e, l) => {
278
278
  var n;
279
- const s = Ce().emit, { nextZIndex: c } = He();
279
+ const s = Ce().emit, { nextZIndex: u } = He();
280
280
  let r = "";
281
- const f = ee(), a = ee(), u = A(!1), y = A(!1), C = A(!1), g = A((n = e.zIndex) != null ? n : c());
281
+ const f = ee(), a = ee(), c = F(!1), y = F(!1), C = F(!1), g = F((n = e.zIndex) != null ? n : u());
282
282
  let m, v;
283
- const h = We("namespace", Oe), i = k(() => {
283
+ const h = Ke("namespace", Oe), i = k(() => {
284
284
  const p = {}, P = `--${h.value}-dialog`;
285
285
  return e.fullscreen || (e.top && (p[`${P}-margin-top`] = e.top), e.width && (p[`${P}-width`] = G(e.width))), p;
286
286
  }), O = k(() => e.alignCenter ? { display: "flex" } : {});
@@ -293,60 +293,60 @@ const lo = J({
293
293
  function Y() {
294
294
  s("close");
295
295
  }
296
- function F() {
297
- v == null || v(), m == null || m(), e.openDelay && e.openDelay > 0 ? { stop: m } = oe(() => I(), e.openDelay) : I();
296
+ function A() {
297
+ v == null || v(), m == null || m(), e.openDelay && e.openDelay > 0 ? { stop: m } = oe(() => B(), e.openDelay) : B();
298
298
  }
299
299
  function M() {
300
- m == null || m(), v == null || v(), e.closeDelay && e.closeDelay > 0 ? { stop: v } = oe(() => B(), e.closeDelay) : B();
300
+ m == null || m(), v == null || v(), e.closeDelay && e.closeDelay > 0 ? { stop: v } = oe(() => D(), e.closeDelay) : D();
301
301
  }
302
302
  function T() {
303
303
  function p(P) {
304
- P || (y.value = !0, u.value = !1);
304
+ P || (y.value = !0, c.value = !1);
305
305
  }
306
306
  e.beforeClose ? e.beforeClose(p) : M();
307
307
  }
308
- function D() {
308
+ function L() {
309
309
  e.closeOnClickModal && T();
310
310
  }
311
- function I() {
312
- se && (u.value = !0);
313
- }
314
311
  function B() {
315
- u.value = !1;
312
+ se && (c.value = !0);
313
+ }
314
+ function D() {
315
+ c.value = !1;
316
316
  }
317
317
  function t() {
318
318
  s("openAutoFocus");
319
319
  }
320
- function L() {
320
+ function I() {
321
321
  s("closeAutoFocus");
322
322
  }
323
323
  function $(p) {
324
324
  var P;
325
325
  ((P = p.detail) == null ? void 0 : P.focusReason) === "pointer" && p.preventDefault();
326
326
  }
327
- e.lockScroll && so(u);
328
- function ue() {
327
+ e.lockScroll && so(c);
328
+ function ce() {
329
329
  e.closeOnPressEscape && T();
330
330
  }
331
331
  return Z(() => e.modelValue, (p) => {
332
- p ? (y.value = !1, F(), C.value = !0, g.value = Ne(e.zIndex) ? c() : g.value++, be(() => {
332
+ p ? (y.value = !1, A(), C.value = !0, g.value = Ne(e.zIndex) ? u() : g.value++, be(() => {
333
333
  s("open"), l.value && (l.value.parentElement.scrollTop = 0, l.value.parentElement.scrollLeft = 0, l.value.scrollTop = 0);
334
- })) : u.value && M();
334
+ })) : c.value && M();
335
335
  }), Z(() => e.fullscreen, (p) => {
336
336
  l.value && (p ? (r = l.value.style.transform, l.value.style.transform = "") : l.value.style.transform = r);
337
337
  }), te(() => {
338
- e.modelValue && (u.value = !0, C.value = !0, F());
338
+ e.modelValue && (c.value = !0, C.value = !0, A());
339
339
  }), {
340
340
  afterEnter: S,
341
341
  afterLeave: z,
342
342
  beforeLeave: Y,
343
343
  handleClose: T,
344
- onModalClick: D,
344
+ onModalClick: L,
345
345
  close: M,
346
- doClose: B,
346
+ doClose: D,
347
347
  onOpenAutoFocus: t,
348
- onCloseAutoFocus: L,
349
- onCloseRequested: ue,
348
+ onCloseAutoFocus: I,
349
+ onCloseRequested: ce,
350
350
  onFocusoutPrevented: $,
351
351
  titleId: f,
352
352
  bodyId: a,
@@ -354,28 +354,28 @@ const lo = J({
354
354
  style: i,
355
355
  overlayDialogStyle: O,
356
356
  rendered: C,
357
- visible: u,
357
+ visible: c,
358
358
  zIndex: g
359
359
  };
360
- }, ro = X({
360
+ }, ro = U({
361
361
  name: "ElDialog",
362
362
  inheritAttrs: !1
363
- }), io = /* @__PURE__ */ X({
363
+ }), io = /* @__PURE__ */ U({
364
364
  ...ro,
365
365
  props: lo,
366
366
  emits: no,
367
367
  setup(e, { expose: l }) {
368
368
  const n = e, d = he();
369
- Ke({
369
+ We({
370
370
  scope: "el-dialog",
371
371
  from: "the title slot",
372
372
  replacement: "the header slot",
373
373
  version: "3.0.0",
374
374
  ref: "https://element-plus.org/en-US/component/dialog.html#slots"
375
375
  }, k(() => !!d.title));
376
- const s = _("dialog"), c = A(), r = A(), f = A(), {
376
+ const s = Q("dialog"), u = F(), r = F(), f = F(), {
377
377
  visible: a,
378
- titleId: u,
378
+ titleId: c,
379
379
  bodyId: y,
380
380
  style: C,
381
381
  overlayDialogStyle: g,
@@ -387,19 +387,19 @@ const lo = J({
387
387
  handleClose: S,
388
388
  onModalClick: z,
389
389
  onOpenAutoFocus: Y,
390
- onCloseAutoFocus: F,
390
+ onCloseAutoFocus: A,
391
391
  onCloseRequested: M,
392
392
  onFocusoutPrevented: T
393
- } = ao(n, c);
393
+ } = ao(n, u);
394
394
  we(ie, {
395
- dialogRef: c,
395
+ dialogRef: u,
396
396
  headerRef: r,
397
397
  bodyId: y,
398
398
  ns: s,
399
399
  rendered: m,
400
400
  style: C
401
401
  });
402
- const D = re(z), I = k(() => n.draggable && !n.fullscreen);
402
+ const L = re(z), B = k(() => n.draggable && !n.fullscreen);
403
403
  return l({
404
404
  visible: a,
405
405
  dialogContentRef: f,
@@ -407,7 +407,7 @@ const lo = J({
407
407
  var t;
408
408
  (t = f.value) == null || t.resetPosition();
409
409
  }
410
- }), (t, L) => (N(), K(o(ze), {
410
+ }), (t, I) => (N(), W(o(ze), {
411
411
  to: t.appendTo,
412
412
  disabled: t.appendTo !== "body" ? !1 : !t.appendToBody
413
413
  }, {
@@ -420,36 +420,36 @@ const lo = J({
420
420
  persisted: ""
421
421
  }, {
422
422
  default: E(() => [
423
- ke(R(o(_e), {
423
+ ke(R(o(Qe), {
424
424
  "custom-mask-event": "",
425
425
  mask: t.modal,
426
426
  "overlay-class": t.modalClass,
427
427
  "z-index": o(v)
428
428
  }, {
429
429
  default: E(() => [
430
- j("div", {
430
+ X("div", {
431
431
  role: "dialog",
432
432
  "aria-modal": "true",
433
433
  "aria-label": t.title || void 0,
434
- "aria-labelledby": t.title ? void 0 : o(u),
434
+ "aria-labelledby": t.title ? void 0 : o(c),
435
435
  "aria-describedby": o(y),
436
436
  class: w(`${o(s).namespace.value}-overlay-dialog`),
437
437
  style: le(o(g)),
438
- onClick: o(D).onClick,
439
- onMousedown: o(D).onMousedown,
440
- onMouseup: o(D).onMouseup
438
+ onClick: o(L).onClick,
439
+ onMousedown: o(L).onMousedown,
440
+ onMouseup: o(L).onMouseup
441
441
  }, [
442
442
  R(o(Ye), {
443
443
  loop: "",
444
444
  trapped: o(a),
445
445
  "focus-start-el": "container",
446
446
  onFocusAfterTrapped: o(Y),
447
- onFocusAfterReleased: o(F),
447
+ onFocusAfterReleased: o(A),
448
448
  onFocusoutPrevented: o(T),
449
449
  onReleaseRequested: o(M)
450
450
  }, {
451
451
  default: E(() => [
452
- o(m) ? (N(), K(to, Se({
452
+ o(m) ? (N(), W(to, Se({
453
453
  key: 0,
454
454
  ref_key: "dialogContentRef",
455
455
  ref: f
@@ -457,7 +457,7 @@ const lo = J({
457
457
  center: t.center,
458
458
  "align-center": t.alignCenter,
459
459
  "close-icon": t.closeIcon,
460
- draggable: o(I),
460
+ draggable: o(B),
461
461
  overflow: t.overflow,
462
462
  fullscreen: t.fullscreen,
463
463
  "header-class": t.headerClass,
@@ -472,7 +472,7 @@ const lo = J({
472
472
  t.$slots.title ? b(t.$slots, "title", { key: 1 }) : b(t.$slots, "header", {
473
473
  key: 0,
474
474
  close: o(S),
475
- titleId: o(u),
475
+ titleId: o(c),
476
476
  titleClass: o(s).e("title")
477
477
  })
478
478
  ]),
@@ -505,11 +505,11 @@ const lo = J({
505
505
  }, 8, ["to", "disabled"]));
506
506
  }
507
507
  });
508
- var co = /* @__PURE__ */ ne(io, [["__file", "dialog.vue"]]);
509
- const ho = Fe(co);
508
+ var uo = /* @__PURE__ */ ne(io, [["__file", "dialog.vue"]]);
509
+ const ho = Ae(uo);
510
510
  export {
511
511
  ho as E,
512
- _e as a,
512
+ Qe as a,
513
513
  so as b,
514
514
  re as c,
515
515
  xe as u