st-comp 0.0.143 → 0.0.144

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 (94) hide show
  1. package/es/ChartLayout.js +2 -2
  2. package/es/ConfigProvider.cjs +1 -1
  3. package/es/ConfigProvider.js +28 -11
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +22 -24
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +28 -27
  8. package/es/Kline.cjs +1 -1
  9. package/es/Kline.js +14 -14
  10. package/es/KlineBasic.cjs +1 -1
  11. package/es/KlineBasic.js +24 -25
  12. package/es/KlineNew.cjs +1 -1
  13. package/es/KlineNew.js +12 -12
  14. package/es/Pagination.cjs +1 -1
  15. package/es/Pagination.js +16 -16
  16. package/es/Table.cjs +1 -1
  17. package/es/Table.js +16 -16
  18. package/es/User.cjs +1 -1
  19. package/es/User.js +510 -382
  20. package/es/VarietySearch.cjs +1 -1
  21. package/es/VarietySearch.js +37 -36
  22. package/es/VirtualTable.js +10 -10
  23. package/es/_initCloneObject-14b53c6f.js +81 -0
  24. package/es/_initCloneObject-441db749.cjs +1 -0
  25. package/es/{base-3ecbc734.js → base-437d17f3.js} +25 -25
  26. package/es/{castArray-7d3fc921.js → castArray-4251bbe4.js} +1 -1
  27. package/es/{config-provider-83904b4d.js → config-provider-55482a43.js} +3 -3
  28. package/es/{debounce-7344b088.js → debounce-ac30be50.js} +14 -14
  29. package/es/{dropdown-7da44c8f.js → dropdown-634b5e27.js} +4 -4
  30. package/es/{dropdown-9a974876.cjs → dropdown-d7c59a21.cjs} +1 -1
  31. package/es/{el-button-24f79286.js → el-button-e1665717.js} +3 -3
  32. package/es/el-checkbox-group-492b95cc.cjs +1 -0
  33. package/es/el-checkbox-group-e8fece80.js +67 -0
  34. package/es/{el-empty-79c5f7a8.js → el-empty-bacc6613.js} +1 -1
  35. package/es/el-form-item-5bdffd07.cjs +12 -0
  36. package/es/el-form-item-af1855f0.js +1262 -0
  37. package/es/{el-input-6c6f5bda.cjs → el-input-23e2bac3.cjs} +1 -1
  38. package/es/{el-input-ee7db655.js → el-input-4961b99f.js} +71 -71
  39. package/es/{el-input-number-0524d787.cjs → el-input-number-40a81eb5.cjs} +1 -1
  40. package/es/{el-input-number-63c21037.js → el-input-number-610fc8ba.js} +24 -24
  41. package/es/{el-menu-item-dc904a35.cjs → el-menu-item-78b858f2.cjs} +1 -1
  42. package/es/{el-menu-item-0d92e7dc.js → el-menu-item-7d04c11a.js} +7 -7
  43. package/es/{el-message-71aa42ca.js → el-message-c3b3ac96.js} +16 -16
  44. package/es/{el-message-562e923d.cjs → el-message-d4df8136.cjs} +1 -1
  45. package/es/{el-overlay-6056c89a.js → el-overlay-12dd9b35.js} +140 -137
  46. package/es/el-overlay-bc0790a2.cjs +1 -0
  47. package/es/{el-popover-c8b2456c.js → el-popover-0aa071f2.js} +4 -4
  48. package/es/{el-popover-8735b1fa.cjs → el-popover-8a77e015.cjs} +1 -1
  49. package/es/el-popper-50100766.js +2262 -0
  50. package/es/el-popper-746070ba.cjs +1 -0
  51. package/es/{el-scrollbar-66f3bb72.js → el-scrollbar-562d0595.js} +11 -11
  52. package/es/{el-select-5fb7d469.js → el-select-9381b156.js} +55 -55
  53. package/es/el-select-b162dffc.cjs +1 -0
  54. package/es/{el-table-column-560db3aa.js → el-table-column-55bffba5.js} +1049 -1124
  55. package/es/el-table-column-6d761fce.cjs +14 -0
  56. package/es/el-tag-985d9aff.js +279 -0
  57. package/es/el-tag-c51a6490.cjs +1 -0
  58. package/es/{index-68ee64fa.js → index-09e01b1d.js} +7 -7
  59. package/es/{index-fa07a823.js → index-0cb48e01.js} +81 -78
  60. package/es/index-39ec9741.js +112 -0
  61. package/es/index-3bf8d597.cjs +1 -0
  62. package/es/index-a387515d.cjs +1 -0
  63. package/es/index-a902a0d9.js +59 -0
  64. package/es/index-deb8de52.cjs +1 -0
  65. package/es/{raf-377cf8f5.js → raf-b128c7b7.js} +1 -1
  66. package/es/{scroll-1efa8148.js → scroll-387fcfdb.js} +1 -1
  67. package/es/style.css +1 -1
  68. package/es/{use-form-common-props-9c0363ac.js → use-form-common-props-f377e500.js} +30 -30
  69. package/es/{vnode-cfcdab70.js → vnode-7dfd4ed5.js} +1 -1
  70. package/es/{zh-cn-4a476dc8.js → zh-cn-eb9c2820.js} +2 -2
  71. package/lib/bundle.js +1 -1
  72. package/lib/bundle.umd.cjs +141 -141
  73. package/lib/{index-a992391a.js → index-e7a32fed.js} +12131 -11996
  74. package/lib/{python-58a62aaf.js → python-ae8d98bd.js} +1 -1
  75. package/lib/style.css +1 -1
  76. package/package.json +1 -1
  77. package/packages/ConfigProvider/index.vue +28 -0
  78. package/packages/User/index.vue +87 -1
  79. package/es/el-form-item-7d32befa.cjs +0 -12
  80. package/es/el-form-item-afc3dcf2.js +0 -1324
  81. package/es/el-overlay-891dcc40.cjs +0 -1
  82. package/es/el-popper-d3eef7ed.js +0 -2093
  83. package/es/el-popper-f62316cd.cjs +0 -1
  84. package/es/el-select-928f8c19.cjs +0 -1
  85. package/es/el-table-column-dd8b62aa.cjs +0 -14
  86. package/es/el-tag-3b03d13e.cjs +0 -1
  87. package/es/el-tag-6a31c968.js +0 -450
  88. package/es/event-09e37cc8.js +0 -6
  89. package/es/event-61f49698.cjs +0 -1
  90. package/es/index-80a2b137.cjs +0 -1
  91. package/es/index-a1ecf26c.js +0 -167
  92. package/es/index-e1e83173.cjs +0 -1
  93. package/es/refs-46cf8186.js +0 -9
  94. package/es/refs-d00b710b.cjs +0 -1
@@ -1,15 +1,13 @@
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";
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";
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 Q, computed as k, openBlock as z, createElementBlock as j, unref as o, normalizeClass as E, normalizeStyle as le, createElementVNode as V, toDisplayString as ve, withCtx as w, createBlock as W, resolveDynamicComponent as ye, createCommentVNode as q, isRef as pe, watch as J, onScopeDispose as ge, getCurrentInstance as Ce, ref as A, nextTick as be, useSlots as he, provide as Ee, Transition as we, withDirectives as ke, mergeProps as Se, createSlots as Me, vShow as Te } from "vue";
2
+ import { U as H, b as G, d as X, u as _, y as Z, h as Be, x as De, _ as ne, c as Ie, t as Le, j as se, o as x, n as Pe, A as Ae, r as Fe, e as ee, V as Oe, p as oe, w as $e } from "./base-437d17f3.js";
3
+ import { P as K } from "./vnode-7dfd4ed5.js";
4
+ import { F as ze, U as ae, i as Ne, b as Ye, a as Re } from "./index-0cb48e01.js";
5
+ import { j as Ue, E as Ve, J as Xe, K as je } from "./use-form-common-props-f377e500.js";
6
+ import { g as He } from "./scroll-387fcfdb.js";
7
+ import { b as Ke, a as We } from "./index-09e01b1d.js";
10
8
  const re = (e) => {
11
9
  if (!e)
12
- return { onClick: V, onMousedown: V, onMouseup: V };
10
+ return { onClick: H, onMousedown: H, onMouseup: H };
13
11
  let l = !1, n = !1;
14
12
  return { onClick: (r) => {
15
13
  l && n && e(r), l = n = !1;
@@ -18,42 +16,42 @@ const re = (e) => {
18
16
  }, onMouseup: (r) => {
19
17
  n = r.target === r.currentTarget;
20
18
  } };
21
- }, qe = J({
19
+ }, qe = G({
22
20
  mask: {
23
21
  type: Boolean,
24
22
  default: !0
25
23
  },
26
24
  customMaskEvent: Boolean,
27
25
  overlayClass: {
28
- type: H([
26
+ type: X([
29
27
  String,
30
28
  Array,
31
29
  Object
32
30
  ])
33
31
  },
34
32
  zIndex: {
35
- type: H([String, Number])
33
+ type: X([String, Number])
36
34
  }
37
- }), Ze = {
35
+ }), Je = {
38
36
  click: (e) => e instanceof MouseEvent
39
- }, Ge = "overlay";
40
- var Je = X({
37
+ }, Ze = "overlay";
38
+ var Ge = U({
41
39
  name: "ElOverlay",
42
40
  props: qe,
43
- emits: Ze,
41
+ emits: Je,
44
42
  setup(e, { slots: l, emit: n }) {
45
- const d = _(Ge), s = (a) => {
43
+ const d = _(Ze), s = (a) => {
46
44
  n("click", a);
47
- }, { onClick: c, onMousedown: r, onMouseup: f } = re(e.customMaskEvent ? void 0 : s);
45
+ }, { onClick: u, onMousedown: r, onMouseup: f } = re(e.customMaskEvent ? void 0 : s);
48
46
  return () => e.mask ? R("div", {
49
47
  class: [d.b(), e.overlayClass],
50
48
  style: {
51
49
  zIndex: e.zIndex
52
50
  },
53
- onClick: c,
51
+ onClick: u,
54
52
  onMousedown: r,
55
53
  onMouseup: f
56
- }, [b(l, "default")], W.STYLE | W.CLASS | W.PROPS, ["onClick", "onMouseup", "onMousedown"]) : de("div", {
54
+ }, [b(l, "default")], K.STYLE | K.CLASS | K.PROPS, ["onClick", "onMouseup", "onMousedown"]) : de("div", {
57
55
  class: e.overlayClass,
58
56
  style: {
59
57
  zIndex: e.zIndex,
@@ -66,11 +64,11 @@ var Je = X({
66
64
  }, [b(l, "default")]);
67
65
  }
68
66
  });
69
- const _e = Je, ie = Symbol("dialogInjectionKey"), ce = J({
67
+ const _e = Ge, ie = Symbol("dialogInjectionKey"), ue = G({
70
68
  center: Boolean,
71
69
  alignCenter: Boolean,
72
70
  closeIcon: {
73
- type: Re
71
+ type: Ue
74
72
  },
75
73
  draggable: Boolean,
76
74
  overflow: Boolean,
@@ -97,21 +95,21 @@ const _e = Je, ie = Symbol("dialogInjectionKey"), ce = J({
97
95
  offsetX: 0,
98
96
  offsetY: 0
99
97
  };
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) => {
98
+ const u = (c) => {
99
+ const y = c.clientX, C = c.clientY, { offsetX: g, offsetY: m } = s, v = e.value.getBoundingClientRect(), h = v.left, i = v.top, F = v.width, S = v.height, N = document.documentElement.clientWidth, Y = document.documentElement.clientHeight, O = -h + g, M = -i + m, T = N - h - F + g, B = Y - i - S + m, D = (t) => {
102
100
  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 = {
101
+ d != null && d.value || (L = Math.min(Math.max(L, O), T), $ = Math.min(Math.max($, M), B)), s = {
104
102
  offsetX: L,
105
103
  offsetY: $
106
- }, e.value && (e.value.style.transform = `translate(${G(L)}, ${G($)})`);
107
- }, B = () => {
108
- document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", B);
104
+ }, e.value && (e.value.style.transform = `translate(${Z(L)}, ${Z($)})`);
105
+ }, I = () => {
106
+ document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", I);
109
107
  };
110
- document.addEventListener("mousemove", I), document.addEventListener("mouseup", B);
108
+ document.addEventListener("mousemove", D), document.addEventListener("mouseup", I);
111
109
  }, r = () => {
112
- l.value && e.value && l.value.addEventListener("mousedown", c);
110
+ l.value && e.value && l.value.addEventListener("mousedown", u);
113
111
  }, f = () => {
114
- l.value && e.value && l.value.removeEventListener("mousedown", c);
112
+ l.value && e.value && l.value.removeEventListener("mousedown", u);
115
113
  }, a = () => {
116
114
  s = {
117
115
  offsetX: 0,
@@ -127,80 +125,84 @@ const _e = Je, ie = Symbol("dialogInjectionKey"), ce = J({
127
125
  }), {
128
126
  resetPosition: a
129
127
  };
130
- }, eo = X({ name: "ElDialogContent" }), oo = /* @__PURE__ */ X({
131
- ...eo,
132
- props: ce,
128
+ }, eo = (...e) => (l) => {
129
+ e.forEach((n) => {
130
+ Be(n) ? n(l) : n.value = l;
131
+ });
132
+ }, oo = U({ name: "ElDialogContent" }), to = /* @__PURE__ */ U({
133
+ ...oo,
134
+ props: ue,
133
135
  emits: Qe,
134
136
  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(() => [
137
+ const n = e, { t: d } = De(), { Close: s } = Xe, { dialogRef: u, headerRef: r, bodyId: f, ns: a, style: c } = Q(ie), { focusTrapRef: y } = Q(ze), C = k(() => [
136
138
  a.b(),
137
139
  a.is("fullscreen", n.fullscreen),
138
140
  a.is("draggable", n.draggable),
139
141
  a.is("align-center", n.alignCenter),
140
142
  { [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);
143
+ ]), g = eo(y, u), m = k(() => n.draggable), v = k(() => n.overflow), { resetPosition: h } = xe(u, r, m, v);
142
144
  return l({
143
145
  resetPosition: h
144
- }), (i, O) => (N(), U("div", {
146
+ }), (i, F) => (z(), j("div", {
145
147
  ref: o(g),
146
- class: w(o(C)),
147
- style: le(o(u)),
148
+ class: E(o(C)),
149
+ style: le(o(c)),
148
150
  tabindex: "-1"
149
151
  }, [
150
- j("header", {
152
+ V("header", {
151
153
  ref_key: "headerRef",
152
154
  ref: r,
153
- class: w([o(a).e("header"), i.headerClass, { "show-close": i.showClose }])
155
+ class: E([o(a).e("header"), i.headerClass, { "show-close": i.showClose }])
154
156
  }, [
155
157
  b(i.$slots, "header", {}, () => [
156
- j("span", {
158
+ V("span", {
157
159
  role: "heading",
158
160
  "aria-level": i.ariaLevel,
159
- class: w(o(a).e("title"))
161
+ class: E(o(a).e("title"))
160
162
  }, ve(i.title), 11, ["aria-level"])
161
163
  ]),
162
- i.showClose ? (N(), U("button", {
164
+ i.showClose ? (z(), j("button", {
163
165
  key: 0,
164
166
  "aria-label": o(d)("el.dialog.close"),
165
- class: w(o(a).e("headerbtn")),
167
+ class: E(o(a).e("headerbtn")),
166
168
  type: "button",
167
169
  onClick: (S) => i.$emit("close")
168
170
  }, [
169
- R(o(Xe), {
170
- class: w(o(a).e("close"))
171
+ R(o(Ve), {
172
+ class: E(o(a).e("close"))
171
173
  }, {
172
- default: E(() => [
173
- (N(), K(ye(i.closeIcon || o(s))))
174
+ default: w(() => [
175
+ (z(), W(ye(i.closeIcon || o(s))))
174
176
  ]),
175
177
  _: 1
176
178
  }, 8, ["class"])
177
179
  ], 10, ["aria-label", "onClick"])) : q("v-if", !0)
178
180
  ], 2),
179
- j("div", {
181
+ V("div", {
180
182
  id: o(f),
181
- class: w([o(a).e("body"), i.bodyClass])
183
+ class: E([o(a).e("body"), i.bodyClass])
182
184
  }, [
183
185
  b(i.$slots, "default")
184
186
  ], 10, ["id"]),
185
- i.$slots.footer ? (N(), U("footer", {
187
+ i.$slots.footer ? (z(), j("footer", {
186
188
  key: 0,
187
- class: w([o(a).e("footer"), i.footerClass])
189
+ class: E([o(a).e("footer"), i.footerClass])
188
190
  }, [
189
191
  b(i.$slots, "footer")
190
192
  ], 2)) : q("v-if", !0)
191
193
  ], 6));
192
194
  }
193
195
  });
194
- var to = /* @__PURE__ */ ne(oo, [["__file", "dialog-content.vue"]]);
195
- const lo = J({
196
- ...ce,
196
+ var lo = /* @__PURE__ */ ne(to, [["__file", "dialog-content.vue"]]);
197
+ const no = G({
198
+ ...ue,
197
199
  appendToBody: Boolean,
198
200
  appendTo: {
199
- type: H([String, Object]),
201
+ type: X([String, Object]),
200
202
  default: "body"
201
203
  },
202
204
  beforeClose: {
203
- type: H(Function)
205
+ type: X(Function)
204
206
  },
205
207
  destroyOnClose: Boolean,
206
208
  closeOnClickModal: {
@@ -246,7 +248,7 @@ const lo = J({
246
248
  type: String,
247
249
  default: "2"
248
250
  }
249
- }), no = {
251
+ }), so = {
250
252
  open: () => !0,
251
253
  opened: () => !0,
252
254
  close: () => !0,
@@ -254,65 +256,65 @@ const lo = J({
254
256
  [ae]: (e) => Ie(e),
255
257
  openAutoFocus: () => !0,
256
258
  closeAutoFocus: () => !0
257
- }, so = (e, l = {}) => {
258
- pe(e) || Be("[useLockscreen]", "You need to pass a ref param to this function");
259
+ }, ao = (e, l = {}) => {
260
+ pe(e) || Le("[useLockscreen]", "You need to pass a ref param to this function");
259
261
  const n = l.ns || _("popup"), d = k(() => n.bm("parent", "hidden"));
260
262
  if (!se || x(document.body, d.value))
261
263
  return;
262
- let s = 0, c = !1, r = "0";
264
+ let s = 0, u = !1, r = "0";
263
265
  const f = () => {
264
266
  setTimeout(() => {
265
- typeof document > "u" || c && document && (document.body.style.width = r, Ae(document.body, d.value));
267
+ typeof document > "u" || u && document && (document.body.style.width = r, Fe(document.body, d.value));
266
268
  }, 200);
267
269
  };
268
- Z(e, (a) => {
270
+ J(e, (a) => {
269
271
  if (!a) {
270
272
  f();
271
273
  return;
272
274
  }
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)`);
275
+ u = !x(document.body, d.value), u && (r = document.body.style.width, Pe(document.body, d.value)), s = He(n.namespace.value);
276
+ const c = document.documentElement.clientHeight < document.body.scrollHeight, y = Ae(document.body, "overflowY");
277
+ s > 0 && (c || y === "scroll") && u && (document.body.style.width = `calc(100% - ${s}px)`);
276
278
  }), ge(() => f());
277
- }, ao = (e, l) => {
279
+ }, ro = (e, l) => {
278
280
  var n;
279
- const s = Ce().emit, { nextZIndex: c } = He();
281
+ const s = Ce().emit, { nextZIndex: u } = je();
280
282
  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());
283
+ const f = ee(), a = ee(), c = A(!1), y = A(!1), C = A(!1), g = A((n = e.zIndex) != null ? n : u());
282
284
  let m, v;
283
- const h = We("namespace", Oe), i = k(() => {
285
+ const h = Ke("namespace", Oe), i = k(() => {
284
286
  const p = {}, P = `--${h.value}-dialog`;
285
- return e.fullscreen || (e.top && (p[`${P}-margin-top`] = e.top), e.width && (p[`${P}-width`] = G(e.width))), p;
286
- }), O = k(() => e.alignCenter ? { display: "flex" } : {});
287
+ return e.fullscreen || (e.top && (p[`${P}-margin-top`] = e.top), e.width && (p[`${P}-width`] = Z(e.width))), p;
288
+ }), F = k(() => e.alignCenter ? { display: "flex" } : {});
287
289
  function S() {
288
290
  s("opened");
289
291
  }
290
- function z() {
292
+ function N() {
291
293
  s("closed"), s(ae, !1), e.destroyOnClose && (C.value = !1);
292
294
  }
293
295
  function Y() {
294
296
  s("close");
295
297
  }
296
- function F() {
297
- v == null || v(), m == null || m(), e.openDelay && e.openDelay > 0 ? { stop: m } = oe(() => I(), e.openDelay) : I();
298
+ function O() {
299
+ v == null || v(), m == null || m(), e.openDelay && e.openDelay > 0 ? { stop: m } = oe(() => D(), e.openDelay) : D();
298
300
  }
299
301
  function M() {
300
- m == null || m(), v == null || v(), e.closeDelay && e.closeDelay > 0 ? { stop: v } = oe(() => B(), e.closeDelay) : B();
302
+ m == null || m(), v == null || v(), e.closeDelay && e.closeDelay > 0 ? { stop: v } = oe(() => I(), e.closeDelay) : I();
301
303
  }
302
304
  function T() {
303
305
  function p(P) {
304
- P || (y.value = !0, u.value = !1);
306
+ P || (y.value = !0, c.value = !1);
305
307
  }
306
308
  e.beforeClose ? e.beforeClose(p) : M();
307
309
  }
308
- function D() {
310
+ function B() {
309
311
  e.closeOnClickModal && T();
310
312
  }
311
- function I() {
312
- se && (u.value = !0);
313
+ function D() {
314
+ se && (c.value = !0);
313
315
  }
314
- function B() {
315
- u.value = !1;
316
+ function I() {
317
+ c.value = !1;
316
318
  }
317
319
  function t() {
318
320
  s("openAutoFocus");
@@ -324,58 +326,58 @@ const lo = J({
324
326
  var P;
325
327
  ((P = p.detail) == null ? void 0 : P.focusReason) === "pointer" && p.preventDefault();
326
328
  }
327
- e.lockScroll && so(u);
328
- function ue() {
329
+ e.lockScroll && ao(c);
330
+ function ce() {
329
331
  e.closeOnPressEscape && T();
330
332
  }
331
- return Z(() => e.modelValue, (p) => {
332
- p ? (y.value = !1, F(), C.value = !0, g.value = Ne(e.zIndex) ? c() : g.value++, be(() => {
333
+ return J(() => e.modelValue, (p) => {
334
+ p ? (y.value = !1, O(), C.value = !0, g.value = Ne(e.zIndex) ? u() : g.value++, be(() => {
333
335
  s("open"), l.value && (l.value.parentElement.scrollTop = 0, l.value.parentElement.scrollLeft = 0, l.value.scrollTop = 0);
334
- })) : u.value && M();
335
- }), Z(() => e.fullscreen, (p) => {
336
+ })) : c.value && M();
337
+ }), J(() => e.fullscreen, (p) => {
336
338
  l.value && (p ? (r = l.value.style.transform, l.value.style.transform = "") : l.value.style.transform = r);
337
339
  }), te(() => {
338
- e.modelValue && (u.value = !0, C.value = !0, F());
340
+ e.modelValue && (c.value = !0, C.value = !0, O());
339
341
  }), {
340
342
  afterEnter: S,
341
- afterLeave: z,
343
+ afterLeave: N,
342
344
  beforeLeave: Y,
343
345
  handleClose: T,
344
- onModalClick: D,
346
+ onModalClick: B,
345
347
  close: M,
346
- doClose: B,
348
+ doClose: I,
347
349
  onOpenAutoFocus: t,
348
350
  onCloseAutoFocus: L,
349
- onCloseRequested: ue,
351
+ onCloseRequested: ce,
350
352
  onFocusoutPrevented: $,
351
353
  titleId: f,
352
354
  bodyId: a,
353
355
  closed: y,
354
356
  style: i,
355
- overlayDialogStyle: O,
357
+ overlayDialogStyle: F,
356
358
  rendered: C,
357
- visible: u,
359
+ visible: c,
358
360
  zIndex: g
359
361
  };
360
- }, ro = X({
362
+ }, io = U({
361
363
  name: "ElDialog",
362
364
  inheritAttrs: !1
363
- }), io = /* @__PURE__ */ X({
364
- ...ro,
365
- props: lo,
366
- emits: no,
365
+ }), uo = /* @__PURE__ */ U({
366
+ ...io,
367
+ props: no,
368
+ emits: so,
367
369
  setup(e, { expose: l }) {
368
370
  const n = e, d = he();
369
- Ke({
371
+ We({
370
372
  scope: "el-dialog",
371
373
  from: "the title slot",
372
374
  replacement: "the header slot",
373
375
  version: "3.0.0",
374
376
  ref: "https://element-plus.org/en-US/component/dialog.html#slots"
375
377
  }, k(() => !!d.title));
376
- const s = _("dialog"), c = A(), r = A(), f = A(), {
378
+ const s = _("dialog"), u = A(), r = A(), f = A(), {
377
379
  visible: a,
378
- titleId: u,
380
+ titleId: c,
379
381
  bodyId: y,
380
382
  style: C,
381
383
  overlayDialogStyle: g,
@@ -383,23 +385,23 @@ const lo = J({
383
385
  zIndex: v,
384
386
  afterEnter: h,
385
387
  afterLeave: i,
386
- beforeLeave: O,
388
+ beforeLeave: F,
387
389
  handleClose: S,
388
- onModalClick: z,
390
+ onModalClick: N,
389
391
  onOpenAutoFocus: Y,
390
- onCloseAutoFocus: F,
392
+ onCloseAutoFocus: O,
391
393
  onCloseRequested: M,
392
394
  onFocusoutPrevented: T
393
- } = ao(n, c);
394
- we(ie, {
395
- dialogRef: c,
395
+ } = ro(n, u);
396
+ Ee(ie, {
397
+ dialogRef: u,
396
398
  headerRef: r,
397
399
  bodyId: y,
398
400
  ns: s,
399
401
  rendered: m,
400
402
  style: C
401
403
  });
402
- const D = re(z), I = k(() => n.draggable && !n.fullscreen);
404
+ const B = re(N), D = k(() => n.draggable && !n.fullscreen);
403
405
  return l({
404
406
  visible: a,
405
407
  dialogContentRef: f,
@@ -407,49 +409,49 @@ const lo = J({
407
409
  var t;
408
410
  (t = f.value) == null || t.resetPosition();
409
411
  }
410
- }), (t, L) => (N(), K(o(ze), {
412
+ }), (t, L) => (z(), W(o(Ye), {
411
413
  to: t.appendTo,
412
414
  disabled: t.appendTo !== "body" ? !1 : !t.appendToBody
413
415
  }, {
414
- default: E(() => [
415
- R(Ee, {
416
+ default: w(() => [
417
+ R(we, {
416
418
  name: "dialog-fade",
417
419
  onAfterEnter: o(h),
418
420
  onAfterLeave: o(i),
419
- onBeforeLeave: o(O),
421
+ onBeforeLeave: o(F),
420
422
  persisted: ""
421
423
  }, {
422
- default: E(() => [
424
+ default: w(() => [
423
425
  ke(R(o(_e), {
424
426
  "custom-mask-event": "",
425
427
  mask: t.modal,
426
428
  "overlay-class": t.modalClass,
427
429
  "z-index": o(v)
428
430
  }, {
429
- default: E(() => [
430
- j("div", {
431
+ default: w(() => [
432
+ V("div", {
431
433
  role: "dialog",
432
434
  "aria-modal": "true",
433
435
  "aria-label": t.title || void 0,
434
- "aria-labelledby": t.title ? void 0 : o(u),
436
+ "aria-labelledby": t.title ? void 0 : o(c),
435
437
  "aria-describedby": o(y),
436
- class: w(`${o(s).namespace.value}-overlay-dialog`),
438
+ class: E(`${o(s).namespace.value}-overlay-dialog`),
437
439
  style: le(o(g)),
438
- onClick: o(D).onClick,
439
- onMousedown: o(D).onMousedown,
440
- onMouseup: o(D).onMouseup
440
+ onClick: o(B).onClick,
441
+ onMousedown: o(B).onMousedown,
442
+ onMouseup: o(B).onMouseup
441
443
  }, [
442
- R(o(Ye), {
444
+ R(o(Re), {
443
445
  loop: "",
444
446
  trapped: o(a),
445
447
  "focus-start-el": "container",
446
448
  onFocusAfterTrapped: o(Y),
447
- onFocusAfterReleased: o(F),
449
+ onFocusAfterReleased: o(O),
448
450
  onFocusoutPrevented: o(T),
449
451
  onReleaseRequested: o(M)
450
452
  }, {
451
- default: E(() => [
452
- o(m) ? (N(), K(to, Se({
453
+ default: w(() => [
454
+ o(m) ? (z(), W(lo, Se({
453
455
  key: 0,
454
456
  ref_key: "dialogContentRef",
455
457
  ref: f
@@ -457,7 +459,7 @@ const lo = J({
457
459
  center: t.center,
458
460
  "align-center": t.alignCenter,
459
461
  "close-icon": t.closeIcon,
460
- draggable: o(I),
462
+ draggable: o(D),
461
463
  overflow: t.overflow,
462
464
  fullscreen: t.fullscreen,
463
465
  "header-class": t.headerClass,
@@ -468,22 +470,22 @@ const lo = J({
468
470
  "aria-level": t.headerAriaLevel,
469
471
  onClose: o(S)
470
472
  }), Me({
471
- header: E(() => [
473
+ header: w(() => [
472
474
  t.$slots.title ? b(t.$slots, "title", { key: 1 }) : b(t.$slots, "header", {
473
475
  key: 0,
474
476
  close: o(S),
475
- titleId: o(u),
477
+ titleId: o(c),
476
478
  titleClass: o(s).e("title")
477
479
  })
478
480
  ]),
479
- default: E(() => [
481
+ default: w(() => [
480
482
  b(t.$slots, "default")
481
483
  ]),
482
484
  _: 2
483
485
  }, [
484
486
  t.$slots.footer ? {
485
487
  name: "footer",
486
- fn: E(() => [
488
+ fn: w(() => [
487
489
  b(t.$slots, "footer")
488
490
  ])
489
491
  } : void 0
@@ -505,12 +507,13 @@ const lo = J({
505
507
  }, 8, ["to", "disabled"]));
506
508
  }
507
509
  });
508
- var co = /* @__PURE__ */ ne(io, [["__file", "dialog.vue"]]);
509
- const ho = Fe(co);
510
+ var co = /* @__PURE__ */ ne(uo, [["__file", "dialog.vue"]]);
511
+ const bo = $e(co);
510
512
  export {
511
- ho as E,
513
+ bo as E,
512
514
  _e as a,
513
- so as b,
515
+ ao as b,
514
516
  re as c,
517
+ eo as d,
515
518
  xe as u
516
519
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),t=require("./base-ec05f348.cjs"),$=require("./vnode-7fbc61e1.cjs"),O=require("./index-3bf8d597.cjs"),A=require("./use-form-common-props-1b84d8f4.cjs"),W=require("./scroll-41224831.cjs"),V=require("./index-8a0b1c53.cjs"),z=o=>{if(!o)return{onClick:t.NOOP,onMousedown:t.NOOP,onMouseup:t.NOOP};let l=!1,s=!1;return{onClick:i=>{l&&s&&o(i),l=s=!1},onMousedown:i=>{l=i.target===i.currentTarget},onMouseup:i=>{s=i.target===i.currentTarget}}},x=t.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:t.definePropType([String,Array,Object])},zIndex:{type:t.definePropType([String,Number])}}),K={click:o=>o instanceof MouseEvent},_="overlay";var Z=e.defineComponent({name:"ElOverlay",props:x,emits:K,setup(o,{slots:l,emit:s}){const f=t.useNamespace(_),a=r=>{s("click",r)},{onClick:c,onMousedown:i,onMouseup:m}=z(o.customMaskEvent?void 0:a);return()=>o.mask?e.createVNode("div",{class:[f.b(),o.overlayClass],style:{zIndex:o.zIndex},onClick:c,onMousedown:i,onMouseup:m},[e.renderSlot(l,"default")],$.PatchFlags.STYLE|$.PatchFlags.CLASS|$.PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):e.h("div",{class:o.overlayClass,style:{zIndex:o.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[e.renderSlot(l,"default")])}});const Y=Z,q=Symbol("dialogInjectionKey"),R=t.buildProps({center:Boolean,alignCenter:Boolean,closeIcon:{type:A.iconPropType},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),G={close:()=>!0},U=(o,l,s,f)=>{let a={offsetX:0,offsetY:0};const c=d=>{const y=d.clientX,h=d.clientY,{offsetX:g,offsetY:v}=a,p=o.value.getBoundingClientRect(),b=p.left,u=p.top,D=p.width,E=p.height,N=document.documentElement.clientWidth,F=document.documentElement.clientHeight,L=-b+g,w=-u+v,k=N-b-D+g,S=F-u-E+v,T=n=>{let P=g+n.clientX-y,I=v+n.clientY-h;f!=null&&f.value||(P=Math.min(Math.max(P,L),k),I=Math.min(Math.max(I,w),S)),a={offsetX:P,offsetY:I},o.value&&(o.value.style.transform=`translate(${t.addUnit(P)}, ${t.addUnit(I)})`)},B=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",B)},i=()=>{l.value&&o.value&&l.value.addEventListener("mousedown",c)},m=()=>{l.value&&o.value&&l.value.removeEventListener("mousedown",c)},r=()=>{a={offsetX:0,offsetY:0},o.value&&(o.value.style.transform="none")};return e.onMounted(()=>{e.watchEffect(()=>{s.value?i():m()})}),e.onBeforeUnmount(()=>{m()}),{resetPosition:r}},X=(...o)=>l=>{o.forEach(s=>{t.isFunction(s)?s(l):s.value=l})},J=e.defineComponent({name:"ElDialogContent"}),Q=e.defineComponent({...J,props:R,emits:G,setup(o,{expose:l}){const s=o,{t:f}=t.useLocale(),{Close:a}=A.CloseComponents,{dialogRef:c,headerRef:i,bodyId:m,ns:r,style:d}=e.inject(q),{focusTrapRef:y}=e.inject(O.FOCUS_TRAP_INJECTION_KEY),h=e.computed(()=>[r.b(),r.is("fullscreen",s.fullscreen),r.is("draggable",s.draggable),r.is("align-center",s.alignCenter),{[r.m("center")]:s.center}]),g=X(y,c),v=e.computed(()=>s.draggable),p=e.computed(()=>s.overflow),{resetPosition:b}=U(c,i,v,p);return l({resetPosition:b}),(u,D)=>(e.openBlock(),e.createElementBlock("div",{ref:e.unref(g),class:e.normalizeClass(e.unref(h)),style:e.normalizeStyle(e.unref(d)),tabindex:"-1"},[e.createElementVNode("header",{ref_key:"headerRef",ref:i,class:e.normalizeClass([e.unref(r).e("header"),u.headerClass,{"show-close":u.showClose}])},[e.renderSlot(u.$slots,"header",{},()=>[e.createElementVNode("span",{role:"heading","aria-level":u.ariaLevel,class:e.normalizeClass(e.unref(r).e("title"))},e.toDisplayString(u.title),11,["aria-level"])]),u.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":e.unref(f)("el.dialog.close"),class:e.normalizeClass(e.unref(r).e("headerbtn")),type:"button",onClick:E=>u.$emit("close")},[e.createVNode(e.unref(A.ElIcon),{class:e.normalizeClass(e.unref(r).e("close"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.closeIcon||e.unref(a))))]),_:1},8,["class"])],10,["aria-label","onClick"])):e.createCommentVNode("v-if",!0)],2),e.createElementVNode("div",{id:e.unref(m),class:e.normalizeClass([e.unref(r).e("body"),u.bodyClass])},[e.renderSlot(u.$slots,"default")],10,["id"]),u.$slots.footer?(e.openBlock(),e.createElementBlock("footer",{key:0,class:e.normalizeClass([e.unref(r).e("footer"),u.footerClass])},[e.renderSlot(u.$slots,"footer")],2)):e.createCommentVNode("v-if",!0)],6))}});var ee=t._export_sfc(Q,[["__file","dialog-content.vue"]]);const oe=t.buildProps({...R,appendToBody:Boolean,appendTo:{type:t.definePropType([String,Object]),default:"body"},beforeClose:{type:t.definePropType(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),te={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[O.UPDATE_MODEL_EVENT]:o=>t.isBoolean(o),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},H=(o,l={})=>{e.isRef(o)||t.throwError("[useLockscreen]","You need to pass a ref param to this function");const s=l.ns||t.useNamespace("popup"),f=e.computed(()=>s.bm("parent","hidden"));if(!t.isClient||t.hasClass(document.body,f.value))return;let a=0,c=!1,i="0";const m=()=>{setTimeout(()=>{typeof document>"u"||c&&document&&(document.body.style.width=i,t.removeClass(document.body,f.value))},200)};e.watch(o,r=>{if(!r){m();return}c=!t.hasClass(document.body,f.value),c&&(i=document.body.style.width,t.addClass(document.body,f.value)),a=W.getScrollBarWidth(s.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,y=t.getStyle(document.body,"overflowY");a>0&&(d||y==="scroll")&&c&&(document.body.style.width=`calc(100% - ${a}px)`)}),e.onScopeDispose(()=>m())},ne=(o,l)=>{var s;const a=e.getCurrentInstance().emit,{nextZIndex:c}=A.useZIndex();let i="";const m=t.useId(),r=t.useId(),d=e.ref(!1),y=e.ref(!1),h=e.ref(!1),g=e.ref((s=o.zIndex)!=null?s:c());let v,p;const b=V.useGlobalConfig("namespace",t.defaultNamespace),u=e.computed(()=>{const C={},M=`--${b.value}-dialog`;return o.fullscreen||(o.top&&(C[`${M}-margin-top`]=o.top),o.width&&(C[`${M}-width`]=t.addUnit(o.width))),C}),D=e.computed(()=>o.alignCenter?{display:"flex"}:{});function E(){a("opened")}function N(){a("closed"),a(O.UPDATE_MODEL_EVENT,!1),o.destroyOnClose&&(h.value=!1)}function F(){a("close")}function L(){p==null||p(),v==null||v(),o.openDelay&&o.openDelay>0?{stop:v}=t.useTimeoutFn(()=>T(),o.openDelay):T()}function w(){v==null||v(),p==null||p(),o.closeDelay&&o.closeDelay>0?{stop:p}=t.useTimeoutFn(()=>B(),o.closeDelay):B()}function k(){function C(M){M||(y.value=!0,d.value=!1)}o.beforeClose?o.beforeClose(C):w()}function S(){o.closeOnClickModal&&k()}function T(){t.isClient&&(d.value=!0)}function B(){d.value=!1}function n(){a("openAutoFocus")}function P(){a("closeAutoFocus")}function I(C){var M;((M=C.detail)==null?void 0:M.focusReason)==="pointer"&&C.preventDefault()}o.lockScroll&&H(d);function j(){o.closeOnPressEscape&&k()}return e.watch(()=>o.modelValue,C=>{C?(y.value=!1,L(),h.value=!0,g.value=O.isUndefined(o.zIndex)?c():g.value++,e.nextTick(()=>{a("open"),l.value&&(l.value.parentElement.scrollTop=0,l.value.parentElement.scrollLeft=0,l.value.scrollTop=0)})):d.value&&w()}),e.watch(()=>o.fullscreen,C=>{l.value&&(C?(i=l.value.style.transform,l.value.style.transform=""):l.value.style.transform=i)}),e.onMounted(()=>{o.modelValue&&(d.value=!0,h.value=!0,L())}),{afterEnter:E,afterLeave:N,beforeLeave:F,handleClose:k,onModalClick:S,close:w,doClose:B,onOpenAutoFocus:n,onCloseAutoFocus:P,onCloseRequested:j,onFocusoutPrevented:I,titleId:m,bodyId:r,closed:y,style:u,overlayDialogStyle:D,rendered:h,visible:d,zIndex:g}},le=e.defineComponent({name:"ElDialog",inheritAttrs:!1}),se=e.defineComponent({...le,props:oe,emits:te,setup(o,{expose:l}){const s=o,f=e.useSlots();V.useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},e.computed(()=>!!f.title));const a=t.useNamespace("dialog"),c=e.ref(),i=e.ref(),m=e.ref(),{visible:r,titleId:d,bodyId:y,style:h,overlayDialogStyle:g,rendered:v,zIndex:p,afterEnter:b,afterLeave:u,beforeLeave:D,handleClose:E,onModalClick:N,onOpenAutoFocus:F,onCloseAutoFocus:L,onCloseRequested:w,onFocusoutPrevented:k}=ne(s,c);e.provide(q,{dialogRef:c,headerRef:i,bodyId:y,ns:a,rendered:v,style:h});const S=z(N),T=e.computed(()=>s.draggable&&!s.fullscreen);return l({visible:r,dialogContentRef:m,resetPosition:()=>{var n;(n=m.value)==null||n.resetPosition()}}),(n,P)=>(e.openBlock(),e.createBlock(e.unref(O.ElTeleport),{to:n.appendTo,disabled:n.appendTo!=="body"?!1:!n.appendToBody},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"dialog-fade",onAfterEnter:e.unref(b),onAfterLeave:e.unref(u),onBeforeLeave:e.unref(D),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(Y),{"custom-mask-event":"",mask:n.modal,"overlay-class":n.modalClass,"z-index":e.unref(p)},{default:e.withCtx(()=>[e.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":n.title||void 0,"aria-labelledby":n.title?void 0:e.unref(d),"aria-describedby":e.unref(y),class:e.normalizeClass(`${e.unref(a).namespace.value}-overlay-dialog`),style:e.normalizeStyle(e.unref(g)),onClick:e.unref(S).onClick,onMousedown:e.unref(S).onMousedown,onMouseup:e.unref(S).onMouseup},[e.createVNode(e.unref(O.ElFocusTrap),{loop:"",trapped:e.unref(r),"focus-start-el":"container",onFocusAfterTrapped:e.unref(F),onFocusAfterReleased:e.unref(L),onFocusoutPrevented:e.unref(k),onReleaseRequested:e.unref(w)},{default:e.withCtx(()=>[e.unref(v)?(e.openBlock(),e.createBlock(ee,e.mergeProps({key:0,ref_key:"dialogContentRef",ref:m},n.$attrs,{center:n.center,"align-center":n.alignCenter,"close-icon":n.closeIcon,draggable:e.unref(T),overflow:n.overflow,fullscreen:n.fullscreen,"header-class":n.headerClass,"body-class":n.bodyClass,"footer-class":n.footerClass,"show-close":n.showClose,title:n.title,"aria-level":n.headerAriaLevel,onClose:e.unref(E)}),e.createSlots({header:e.withCtx(()=>[n.$slots.title?e.renderSlot(n.$slots,"title",{key:1}):e.renderSlot(n.$slots,"header",{key:0,close:e.unref(E),titleId:e.unref(d),titleClass:e.unref(a).e("title")})]),default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:2},[n.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):e.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[e.vShow,e.unref(r)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var ae=t._export_sfc(se,[["__file","dialog.vue"]]);const re=t.withInstall(ae);exports.ElDialog=re;exports.ElOverlay=Y;exports.composeRefs=X;exports.useDraggable=U;exports.useLockscreen=H;exports.useSameTarget=z;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as k, ref as $, computed as p, openBlock as a, createBlock as c, unref as t, mergeProps as z, withCtx as r, createElementVNode as f, normalizeClass as l, normalizeStyle as I, resolveDynamicComponent as V, createCommentVNode as g, createTextVNode as u, toDisplayString as m, renderSlot as C, createVNode as E } from "vue";
2
- import { b, E as P } from "./el-button-24f79286.js";
3
- import { j as _, r as A, E as D } from "./use-form-common-props-9c0363ac.js";
4
- import { b as S, E as M } from "./el-popper-d3eef7ed.js";
5
- import { b as R, x as j, u as q, y as L, _ as U, w as F } from "./base-3ecbc734.js";
2
+ import { b, E as P } from "./el-button-e1665717.js";
3
+ import { j as _, r as A, E as D } from "./use-form-common-props-f377e500.js";
4
+ import { b as S, E as M } from "./el-popper-50100766.js";
5
+ import { b as R, x as j, u as q, y as L, _ as U, w as F } from "./base-437d17f3.js";
6
6
  const G = R({
7
7
  title: String,
8
8
  confirmButtonText: String,
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),l=require("./el-button-196807af.cjs"),c=require("./use-form-common-props-1b84d8f4.cjs"),p=require("./el-popper-f62316cd.cjs"),o=require("./base-ec05f348.cjs"),v=o.buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:l.buttonTypes,default:"primary"},cancelButtonType:{type:String,values:l.buttonTypes,default:"text"},icon:{type:c.iconPropType,default:()=>c.question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:p.useTooltipContentProps.teleported,persistent:p.useTooltipContentProps.persistent,width:{type:[String,Number],default:150}}),h={confirm:n=>n instanceof MouseEvent,cancel:n=>n instanceof MouseEvent},g=e.defineComponent({name:"ElPopconfirm"}),P=e.defineComponent({...g,props:v,emits:h,setup(n,{emit:a}){const i=n,{t:u}=o.useLocale(),r=o.useNamespace("popconfirm"),f=e.ref(),m=()=>{var t,s;(s=(t=f.value)==null?void 0:t.onClose)==null||s.call(t)},B=e.computed(()=>({width:o.addUnit(i.width)})),d=t=>{a("confirm",t),m()},y=t=>{a("cancel",t),m()},T=e.computed(()=>i.confirmButtonText||u("el.popconfirm.confirmButtonText")),C=e.computed(()=>i.cancelButtonText||u("el.popconfirm.cancelButtonText"));return(t,s)=>(e.openBlock(),e.createBlock(e.unref(p.ElTooltip),e.mergeProps({ref_key:"tooltipRef",ref:f,trigger:"click",effect:"light"},t.$attrs,{"popper-class":`${e.unref(r).namespace.value}-popover`,"popper-style":e.unref(B),teleported:t.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":t.hideAfter,persistent:t.persistent}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("main"))},[!t.hideIcon&&t.icon?(e.openBlock(),e.createBlock(e.unref(c.ElIcon),{key:0,class:e.normalizeClass(e.unref(r).e("icon")),style:e.normalizeStyle({color:t.iconColor})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))]),_:1},8,["class","style"])):e.createCommentVNode("v-if",!0),e.createTextVNode(" "+e.toDisplayString(t.title),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("action"))},[e.renderSlot(t.$slots,"actions",{confirm:d,cancel:y},()=>[e.createVNode(e.unref(l.ElButton),{size:"small",type:t.cancelButtonType==="text"?"":t.cancelButtonType,text:t.cancelButtonType==="text",onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(C)),1)]),_:1},8,["type","text"]),e.createVNode(e.unref(l.ElButton),{size:"small",type:t.confirmButtonType==="text"?"":t.confirmButtonType,text:t.confirmButtonType==="text",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(T)),1)]),_:1},8,["type","text"])])],2)],2)]),default:e.withCtx(()=>[t.$slots.reference?e.renderSlot(t.$slots,"reference",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var k=o._export_sfc(P,[["__file","popconfirm.vue"]]);const E=o.withInstall(k);exports.ElPopconfirm=E;
1
+ "use strict";const e=require("vue"),l=require("./el-button-196807af.cjs"),c=require("./use-form-common-props-1b84d8f4.cjs"),p=require("./el-popper-746070ba.cjs"),o=require("./base-ec05f348.cjs"),v=o.buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:l.buttonTypes,default:"primary"},cancelButtonType:{type:String,values:l.buttonTypes,default:"text"},icon:{type:c.iconPropType,default:()=>c.question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:p.useTooltipContentProps.teleported,persistent:p.useTooltipContentProps.persistent,width:{type:[String,Number],default:150}}),h={confirm:n=>n instanceof MouseEvent,cancel:n=>n instanceof MouseEvent},g=e.defineComponent({name:"ElPopconfirm"}),P=e.defineComponent({...g,props:v,emits:h,setup(n,{emit:a}){const i=n,{t:u}=o.useLocale(),r=o.useNamespace("popconfirm"),f=e.ref(),m=()=>{var t,s;(s=(t=f.value)==null?void 0:t.onClose)==null||s.call(t)},B=e.computed(()=>({width:o.addUnit(i.width)})),d=t=>{a("confirm",t),m()},y=t=>{a("cancel",t),m()},T=e.computed(()=>i.confirmButtonText||u("el.popconfirm.confirmButtonText")),C=e.computed(()=>i.cancelButtonText||u("el.popconfirm.cancelButtonText"));return(t,s)=>(e.openBlock(),e.createBlock(e.unref(p.ElTooltip),e.mergeProps({ref_key:"tooltipRef",ref:f,trigger:"click",effect:"light"},t.$attrs,{"popper-class":`${e.unref(r).namespace.value}-popover`,"popper-style":e.unref(B),teleported:t.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":t.hideAfter,persistent:t.persistent}),{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("main"))},[!t.hideIcon&&t.icon?(e.openBlock(),e.createBlock(e.unref(c.ElIcon),{key:0,class:e.normalizeClass(e.unref(r).e("icon")),style:e.normalizeStyle({color:t.iconColor})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))]),_:1},8,["class","style"])):e.createCommentVNode("v-if",!0),e.createTextVNode(" "+e.toDisplayString(t.title),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("action"))},[e.renderSlot(t.$slots,"actions",{confirm:d,cancel:y},()=>[e.createVNode(e.unref(l.ElButton),{size:"small",type:t.cancelButtonType==="text"?"":t.cancelButtonType,text:t.cancelButtonType==="text",onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(C)),1)]),_:1},8,["type","text"]),e.createVNode(e.unref(l.ElButton),{size:"small",type:t.confirmButtonType==="text"?"":t.confirmButtonType,text:t.confirmButtonType==="text",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(T)),1)]),_:1},8,["type","text"])])],2)],2)]),default:e.withCtx(()=>[t.$slots.reference?e.renderSlot(t.$slots,"reference",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var k=o._export_sfc(P,[["__file","popconfirm.vue"]]);const E=o.withInstall(k);exports.ElPopconfirm=E;