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,13 +1,14 @@
1
- import { defineComponent as ce, createVNode as de, renderSlot as Y, h as fe, isRef as ve, computed as d, watch as _, onScopeDispose as ye, getCurrentInstance as me, ref as h, nextTick as ge, onMounted as be } from "vue";
2
- import { N as M, b as D, d as E, u as Z, o as Ce, a as q, R as $, x as pe, v as Se, t as he, D as _e, s as Ee, p as xe, i as Be, g as K, S as W } from "./base-aa512893.js";
3
- import { P } from "./vnode-b62d0045.js";
4
- import { k as we, m as Oe, d as G } from "./use-form-common-props-4cdda474.js";
5
- import { g as Ie, U as J, t as Te } from "./el-popper-49152708.js";
6
- import { g as Ae } from "./scroll-0a48995c.js";
7
- import { a as ke } from "./use-global-config-7bfbe48c.js";
8
- const Le = (e) => {
1
+ import { defineComponent as ce, createVNode as de, renderSlot as Y, h as fe, isRef as ve, computed as d, watch as E, onScopeDispose as ye, getCurrentInstance as me, ref as S, nextTick as ge, onMounted as be } from "vue";
2
+ import { N as P, b as D, e as _, u as H, o as Ce, s as Z, h as $, a as pe, t as he, r as Se, E as Ee, n as _e, f as xe, j as Be, x as K, d as W } from "./base-a5af3db3.js";
3
+ import { P as k } from "./vnode-5ddb7ed1.js";
4
+ import { i as we, x as Oe } from "./use-form-common-props-815d48a6.js";
5
+ import { q as Ie, U as J, b as Te } from "./el-popper-b4f97157.js";
6
+ import { g as Ae } from "./scroll-679bd6bf.js";
7
+ import { u as q } from "./index-960806da.js";
8
+ import { a as Le } from "./use-global-config-b5e9d3d5.js";
9
+ const Me = (e) => {
9
10
  if (!e)
10
- return { onClick: M, onMousedown: M, onMouseup: M };
11
+ return { onClick: P, onMousedown: P, onMouseup: P };
11
12
  let t = !1, s = !1;
12
13
  return { onClick: (l) => {
13
14
  t && s && e(l), t = s = !1;
@@ -16,33 +17,33 @@ const Le = (e) => {
16
17
  }, onMouseup: (l) => {
17
18
  s = l.target === l.currentTarget;
18
19
  } };
19
- }, Me = D({
20
+ }, Pe = D({
20
21
  mask: {
21
22
  type: Boolean,
22
23
  default: !0
23
24
  },
24
25
  customMaskEvent: Boolean,
25
26
  overlayClass: {
26
- type: E([
27
+ type: _([
27
28
  String,
28
29
  Array,
29
30
  Object
30
31
  ])
31
32
  },
32
33
  zIndex: {
33
- type: E([String, Number])
34
+ type: _([String, Number])
34
35
  }
35
- }), Pe = {
36
+ }), ke = {
36
37
  click: (e) => e instanceof MouseEvent
37
38
  }, De = "overlay";
38
39
  var Fe = ce({
39
40
  name: "ElOverlay",
40
- props: Me,
41
- emits: Pe,
41
+ props: Pe,
42
+ emits: ke,
42
43
  setup(e, { slots: t, emit: s }) {
43
- const f = Z(De), a = (y) => {
44
+ const f = H(De), a = (y) => {
44
45
  s("click", y);
45
- }, { onClick: u, onMousedown: l, onMouseup: v } = Le(e.customMaskEvent ? void 0 : a);
46
+ }, { onClick: u, onMousedown: l, onMouseup: v } = Me(e.customMaskEvent ? void 0 : a);
46
47
  return () => e.mask ? de("div", {
47
48
  class: [f.b(), e.overlayClass],
48
49
  style: {
@@ -51,7 +52,7 @@ var Fe = ce({
51
52
  onClick: u,
52
53
  onMousedown: l,
53
54
  onMouseup: v
54
- }, [Y(t, "default")], P.STYLE | P.CLASS | P.PROPS, ["onClick", "onMouseup", "onMousedown"]) : fe("div", {
55
+ }, [Y(t, "default")], k.STYLE | k.CLASS | k.PROPS, ["onClick", "onMouseup", "onMousedown"]) : fe("div", {
55
56
  class: e.overlayClass,
56
57
  style: {
57
58
  zIndex: e.zIndex,
@@ -64,7 +65,7 @@ var Fe = ce({
64
65
  }, [Y(t, "default")]);
65
66
  }
66
67
  });
67
- const Ge = Fe, He = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
68
+ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
68
69
  center: Boolean,
69
70
  alignCenter: {
70
71
  type: Boolean,
@@ -99,7 +100,7 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
99
100
  }
100
101
  }), Ze = {
101
102
  close: () => !0
102
- }, qe = D({
103
+ }, Je = D({
103
104
  ...Ne,
104
105
  appendToBody: Boolean,
105
106
  appendTo: {
@@ -107,7 +108,7 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
107
108
  default: "body"
108
109
  },
109
110
  beforeClose: {
110
- type: E(Function)
111
+ type: _(Function)
111
112
  },
112
113
  destroyOnClose: Boolean,
113
114
  closeOnClickModal: {
@@ -155,10 +156,10 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
155
156
  default: "2"
156
157
  },
157
158
  transition: {
158
- type: E([String, Object]),
159
+ type: _([String, Object]),
159
160
  default: void 0
160
161
  }
161
- }), Je = {
162
+ }), Qe = {
162
163
  open: () => !0,
163
164
  opened: () => !0,
164
165
  close: () => !0,
@@ -168,39 +169,39 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
168
169
  closeAutoFocus: () => !0
169
170
  }, ze = (e, t = {}) => {
170
171
  ve(e) || Te("[useLockscreen]", "You need to pass a ref param to this function");
171
- const s = t.ns || Z("popup"), f = d(() => s.bm("parent", "hidden"));
172
- if (!q || $(document.body, f.value))
172
+ const s = t.ns || H("popup"), f = d(() => s.bm("parent", "hidden"));
173
+ if (!Z || $(document.body, f.value))
173
174
  return;
174
175
  let a = 0, u = !1, l = "0";
175
176
  const v = () => {
176
177
  setTimeout(() => {
177
- typeof document > "u" || u && document && (document.body.style.width = l, he(document.body, f.value));
178
+ typeof document > "u" || u && document && (document.body.style.width = l, Se(document.body, f.value));
178
179
  }, 200);
179
180
  };
180
- _(e, (y) => {
181
+ E(e, (y) => {
181
182
  if (!y) {
182
183
  v();
183
184
  return;
184
185
  }
185
186
  u = !$(document.body, f.value), u && (l = document.body.style.width, pe(document.body, f.value)), a = Ae(s.namespace.value);
186
- const i = document.documentElement.clientHeight < document.body.scrollHeight, m = Se(document.body, "overflowY");
187
+ const i = document.documentElement.clientHeight < document.body.scrollHeight, m = he(document.body, "overflowY");
187
188
  a > 0 && (i || m === "scroll") && u && (document.body.style.width = `calc(100% - ${a}px)`);
188
189
  }), ye(() => v());
189
- }, Qe = (e, t) => {
190
+ }, Xe = (e, t) => {
190
191
  var s;
191
192
  const a = me().emit, { nextZIndex: u } = Oe();
192
193
  let l = "";
193
- const v = G(), y = G(), i = h(!1), m = h(!1), C = h(!1), x = h((s = e.zIndex) != null ? s : u());
194
+ const v = q(), y = q(), i = S(!1), m = S(!1), C = S(!1), x = S((s = e.zIndex) != null ? s : u());
194
195
  let g, b;
195
- const F = ke(), Q = d(() => {
196
+ const F = Le(), Q = d(() => {
196
197
  var o, n;
197
- return (n = (o = F.value) == null ? void 0 : o.namespace) != null ? n : _e;
198
+ return (n = (o = F.value) == null ? void 0 : o.namespace) != null ? n : Ee;
198
199
  }), p = d(() => {
199
200
  var o;
200
201
  return (o = F.value) == null ? void 0 : o.dialog;
201
202
  }), X = d(() => {
202
203
  const o = {}, n = `--${Q.value}-dialog`;
203
- return e.fullscreen || (e.top && (o[`${n}-margin-top`] = e.top), e.width && (o[`${n}-width`] = Ee(e.width))), o;
204
+ return e.fullscreen || (e.top && (o[`${n}-margin-top`] = e.top), e.width && (o[`${n}-width`] = _e(e.width))), o;
204
205
  }), R = d(() => {
205
206
  var o, n, r;
206
207
  return ((r = (n = e.draggable) != null ? n : (o = p.value) == null ? void 0 : o.draggable) != null ? r : !1) && !e.fullscreen;
@@ -212,19 +213,19 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
212
213
  return (r = (n = e.overflow) != null ? n : (o = p.value) == null ? void 0 : o.overflow) != null ? r : !1;
213
214
  }), oe = d(() => N.value ? { display: "flex" } : {}), ne = d(() => {
214
215
  var o, n, r;
215
- const k = (r = (n = e.transition) != null ? n : (o = p.value) == null ? void 0 : o.transition) != null ? r : H, re = {
216
- name: k,
216
+ const L = (r = (n = e.transition) != null ? n : (o = p.value) == null ? void 0 : o.transition) != null ? r : G, re = {
217
+ name: L,
217
218
  onAfterEnter: B,
218
219
  onBeforeLeave: O,
219
220
  onAfterLeave: w
220
221
  };
221
- if (xe(k)) {
222
- const c = { ...k }, L = (S, ie) => (V) => {
223
- Be(S) ? S.forEach((U) => {
222
+ if (xe(L)) {
223
+ const c = { ...L }, M = (h, ie) => (V) => {
224
+ Be(h) ? h.forEach((U) => {
224
225
  K(U) && U(V);
225
- }) : K(S) && S(V), ie();
226
+ }) : K(h) && h(V), ie();
226
227
  };
227
- return c.onAfterEnter = L(c.onAfterEnter, B), c.onBeforeLeave = L(c.onBeforeLeave, O), c.onAfterLeave = L(c.onAfterLeave, w), c.name || (c.name = H), c;
228
+ return c.onAfterEnter = M(c.onAfterEnter, B), c.onBeforeLeave = M(c.onBeforeLeave, O), c.onAfterLeave = M(c.onAfterLeave, w), c.name || (c.name = G), c;
228
229
  }
229
230
  return re;
230
231
  });
@@ -253,7 +254,7 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
253
254
  e.closeOnClickModal && T();
254
255
  }
255
256
  function j() {
256
- q && (i.value = !0);
257
+ Z && (i.value = !0);
257
258
  }
258
259
  function A() {
259
260
  i.value = !1;
@@ -272,15 +273,15 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
272
273
  function ue() {
273
274
  e.closeOnPressEscape && T();
274
275
  }
275
- return _(() => e.zIndex, () => {
276
+ return E(() => e.zIndex, () => {
276
277
  var o;
277
278
  x.value = (o = e.zIndex) != null ? o : u();
278
- }), _(() => e.modelValue, (o) => {
279
+ }), E(() => e.modelValue, (o) => {
279
280
  var n;
280
281
  o ? (m.value = !1, z(), C.value = !0, x.value = (n = e.zIndex) != null ? n : u(), ge(() => {
281
282
  a("open"), t.value && (t.value.parentElement.scrollTop = 0, t.value.parentElement.scrollLeft = 0, t.value.scrollTop = 0);
282
283
  })) : i.value && I();
283
- }), _(() => e.fullscreen, (o) => {
284
+ }), E(() => e.fullscreen, (o) => {
284
285
  t.value && (o ? (l = t.value.style.transform, t.value.style.transform = "") : t.value.style.transform = l);
285
286
  }), be(() => {
286
287
  e.modelValue && (i.value = !0, C.value = !0, z());
@@ -312,12 +313,12 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
312
313
  };
313
314
  export {
314
315
  Ge as E,
315
- Le as a,
316
- Ze as b,
317
- He as c,
318
- Ne as d,
319
- qe as e,
320
- Je as f,
321
- Qe as g,
322
- ze as u
316
+ Qe as a,
317
+ ze as b,
318
+ Me as c,
319
+ Je as d,
320
+ Ne as e,
321
+ Ze as f,
322
+ He as g,
323
+ Xe as u
323
324
  };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),n=require("./base-ef747d02.cjs"),L=require("./vnode-b906ae6d.cjs"),V=require("./use-form-common-props-fd9b61a0.cjs"),P=require("./el-popper-b6c99b28.cjs"),le=require("./scroll-b108dabd.cjs"),q=require("./index-9780a537.cjs"),ae=require("./use-global-config-30d7d8ce.cjs"),K=e=>{if(!e)return{onClick:n.NOOP,onMousedown:n.NOOP,onMouseup:n.NOOP};let a=!1,r=!1;return{onClick:s=>{a&&r&&e(s),a=r=!1},onMousedown:s=>{a=s.target===s.currentTarget},onMouseup:s=>{r=s.target===s.currentTarget}}},se=n.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:n.definePropType([String,Array,Object])},zIndex:{type:n.definePropType([String,Number])}}),ue={click:e=>e instanceof MouseEvent},re="overlay";var ie=t.defineComponent({name:"ElOverlay",props:se,emits:ue,setup(e,{slots:a,emit:r}){const v=n.useNamespace(re),u=m=>{r("click",m)},{onClick:i,onMousedown:s,onMouseup:y}=K(e.customMaskEvent?void 0:u);return()=>e.mask?t.createVNode("div",{class:[v.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:s,onMouseup:y},[t.renderSlot(a,"default")],L.PatchFlags.STYLE|L.PatchFlags.CLASS|L.PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):t.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[t.renderSlot(a,"default")])}});const ce=ie,de=Symbol("dialogInjectionKey"),j="dialog-fade",U=n.buildProps({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:V.iconPropType},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),fe={close:()=>!0},ve=n.buildProps({...U,appendToBody:Boolean,appendTo:{type:P.teleportProps.to.type,default:"body"},beforeClose:{type:n.definePropType(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,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"},transition:{type:n.definePropType([String,Object]),default:void 0}}),ye={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[P.UPDATE_MODEL_EVENT]:e=>n.isBoolean(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Y=(e,a={})=>{t.isRef(e)||P.throwError("[useLockscreen]","You need to pass a ref param to this function");const r=a.ns||n.useNamespace("popup"),v=t.computed(()=>r.bm("parent","hidden"));if(!n.isClient||n.hasClass(document.body,v.value))return;let u=0,i=!1,s="0";const y=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=s,n.removeClass(document.body,v.value))},200)};t.watch(e,m=>{if(!m){y();return}i=!n.hasClass(document.body,v.value),i&&(s=document.body.style.width,n.addClass(document.body,v.value)),u=le.getScrollBarWidth(r.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,g=n.getStyle(document.body,"overflowY");u>0&&(d||g==="scroll")&&i&&(document.body.style.width=`calc(100% - ${u}px)`)}),t.onScopeDispose(()=>y())},me=(e,a)=>{var r;const u=t.getCurrentInstance().emit,{nextZIndex:i}=V.useZIndex();let s="";const y=q.useId(),m=q.useId(),d=t.ref(!1),g=t.ref(!1),b=t.ref(!1),S=t.ref((r=e.zIndex)!=null?r:i());let p,C;const M=ae.useGlobalConfig(),$=t.computed(()=>{var o,l;return(l=(o=M.value)==null?void 0:o.namespace)!=null?l:n.defaultNamespace}),h=t.computed(()=>{var o;return(o=M.value)==null?void 0:o.dialog}),G=t.computed(()=>{const o={},l=`--${$.value}-dialog`;return e.fullscreen||(e.top&&(o[`${l}-margin-top`]=e.top),e.width&&(o[`${l}-width`]=n.addUnit(e.width))),o}),W=t.computed(()=>{var o,l,c;return((c=(l=e.draggable)!=null?l:(o=h.value)==null?void 0:o.draggable)!=null?c:!1)&&!e.fullscreen}),k=t.computed(()=>{var o,l,c;return(c=(l=e.alignCenter)!=null?l:(o=h.value)==null?void 0:o.alignCenter)!=null?c:!1}),H=t.computed(()=>{var o,l,c;return(c=(l=e.overflow)!=null?l:(o=h.value)==null?void 0:o.overflow)!=null?c:!1}),Z=t.computed(()=>k.value?{display:"flex"}:{}),J=t.computed(()=>{var o,l,c;const x=(c=(l=e.transition)!=null?l:(o=h.value)==null?void 0:o.transition)!=null?c:j,ne={name:x,onAfterEnter:O,onBeforeLeave:_,onAfterLeave:T};if(n.isObject(x)){const f={...x},A=(E,te)=>N=>{n.isArray(E)?E.forEach(z=>{n.isFunction(z)&&z(N)}):n.isFunction(E)&&E(N),te()};return f.onAfterEnter=A(f.onAfterEnter,O),f.onBeforeLeave=A(f.onBeforeLeave,_),f.onAfterLeave=A(f.onAfterLeave,T),f.name||(f.name=j),f}return ne});function O(){u("opened")}function T(){u("closed"),u(P.UPDATE_MODEL_EVENT,!1),e.destroyOnClose&&(b.value=!1)}function _(){u("close")}function D(){C==null||C(),p==null||p(),e.openDelay&&e.openDelay>0?{stop:p}=n.useTimeoutFn(()=>F(),e.openDelay):F()}function w(){p==null||p(),C==null||C(),e.closeDelay&&e.closeDelay>0?{stop:C}=n.useTimeoutFn(()=>I(),e.closeDelay):I()}function B(){function o(l){l||(g.value=!0,d.value=!1)}e.beforeClose?e.beforeClose(o):w()}function Q(){e.closeOnClickModal&&B()}function F(){n.isClient&&(d.value=!0)}function I(){d.value=!1}function X(){u("openAutoFocus")}function R(){u("closeAutoFocus")}function ee(o){var l;((l=o.detail)==null?void 0:l.focusReason)==="pointer"&&o.preventDefault()}e.lockScroll&&Y(d);function oe(){e.closeOnPressEscape&&B()}return t.watch(()=>e.zIndex,()=>{var o;S.value=(o=e.zIndex)!=null?o:i()}),t.watch(()=>e.modelValue,o=>{var l;o?(g.value=!1,D(),b.value=!0,S.value=(l=e.zIndex)!=null?l:i(),t.nextTick(()=>{u("open"),a.value&&(a.value.parentElement.scrollTop=0,a.value.parentElement.scrollLeft=0,a.value.scrollTop=0)})):d.value&&w()}),t.watch(()=>e.fullscreen,o=>{a.value&&(o?(s=a.value.style.transform,a.value.style.transform=""):a.value.style.transform=s)}),t.onMounted(()=>{e.modelValue&&(d.value=!0,b.value=!0,D())}),{afterEnter:O,afterLeave:T,beforeLeave:_,handleClose:B,onModalClick:Q,close:w,doClose:I,onOpenAutoFocus:X,onCloseAutoFocus:R,onCloseRequested:oe,onFocusoutPrevented:ee,titleId:y,bodyId:m,closed:g,style:G,overlayDialogStyle:Z,rendered:b,visible:d,zIndex:S,transitionConfig:J,_draggable:W,_alignCenter:k,_overflow:H}};exports.ElOverlay=ce;exports.dialogContentEmits=fe;exports.dialogContentProps=U;exports.dialogEmits=ye;exports.dialogInjectionKey=de;exports.dialogProps=ve;exports.useDialog=me;exports.useLockscreen=Y;exports.useSameTarget=K;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),c=require("./el-button-eec58cff.cjs"),y=require("./index-098c2447.cjs"),r=require("./el-popper-b6c99b28.cjs"),l=require("./base-ef747d02.cjs"),P=require("./use-form-common-props-fd9b61a0.cjs"),g=require("./index-bb833443.cjs"),N=l.buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:c.buttonTypes,default:"primary"},cancelButtonType:{type:String,values:c.buttonTypes,default:"text"},icon:{type:P.iconPropType,default:()=>y.question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...r.useTooltipContentProps.effect,default:"light"},teleported:r.useTooltipContentProps.teleported,persistent:r.useTooltipContentProps.persistent,width:{type:[String,Number],default:150},closeOnPressEscape:{type:Boolean,default:!0}}),k={confirm:o=>o instanceof MouseEvent,cancel:o=>o instanceof MouseEvent||o instanceof KeyboardEvent},S=e.defineComponent({name:"ElPopconfirm"}),b=e.defineComponent({...S,props:N,emits:k,setup(o,{expose:B,emit:f}){const s=o,{t:d}=g.useLocale(),n=l.useNamespace("popconfirm"),i=e.ref(),C=e.computed(()=>{var t;return(t=e.unref(i))==null?void 0:t.popperRef}),p=()=>{var t,u;(u=(t=i.value)==null?void 0:t.onClose)==null||u.call(t)},T=e.computed(()=>({width:l.addUnit(s.width)})),m=t=>{f("confirm",t),p()},a=t=>{f("cancel",t),p()},v=t=>{s.closeOnPressEscape&&a(t)},h=e.computed(()=>s.confirmButtonText||d("el.popconfirm.confirmButtonText")),E=e.computed(()=>s.cancelButtonText||d("el.popconfirm.cancelButtonText"));return B({popperRef:C,hide:p}),(t,u)=>(e.openBlock(),e.createBlock(e.unref(r.ElTooltip),e.mergeProps({ref_key:"tooltipRef",ref:i,trigger:"click",effect:t.effect},t.$attrs,{"popper-class":`${e.unref(n).namespace.value}-popover`,"popper-style":e.unref(T),teleported:t.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":t.hideAfter,persistent:t.persistent}),{content:e.withCtx(()=>[e.createVNode(e.unref(r.ElFocusTrap),{loop:"",trapped:"",onReleaseRequested:v},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("main"))},[!t.hideIcon&&t.icon?(e.openBlock(),e.createBlock(e.unref(y.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).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(n).e("action"))},[e.renderSlot(t.$slots,"actions",{confirm:m,cancel:a},()=>[e.createVNode(e.unref(c.ElButton),{size:"small",type:t.cancelButtonType==="text"?"":t.cancelButtonType,text:t.cancelButtonType==="text",onClick:a},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(E)),1)]),_:1},8,["type","text"]),e.createVNode(e.unref(c.ElButton),{size:"small",type:t.confirmButtonType==="text"?"":t.confirmButtonType,text:t.confirmButtonType==="text",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)),1)]),_:1},8,["type","text"])])],2)],2)]),_:3})]),default:e.withCtx(()=>[t.$slots.reference?e.renderSlot(t.$slots,"reference",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},16,["effect","popper-class","popper-style","teleported","hide-after","persistent"]))}});var x=l._export_sfc(b,[["__file","popconfirm.vue"]]);const V=l.withInstall(x);exports.ElPopconfirm=V;
@@ -1,26 +1,27 @@
1
- import { defineComponent as S, ref as I, computed as l, unref as t, openBlock as u, createBlock as m, mergeProps as V, withCtx as n, createVNode as d, createElementVNode as y, normalizeClass as p, normalizeStyle as q, resolveDynamicComponent as x, createCommentVNode as g, createTextVNode as T, toDisplayString as v, renderSlot as b } from "vue";
2
- import { b as P, E as k } from "./el-button-56624e61.js";
3
- import { b as A, r as D, u as M, s as O, E as F, _ as K, w as L } from "./base-aa512893.js";
4
- import { a as B, E as U, b as j } from "./el-popper-49152708.js";
5
- import { k as G } from "./use-form-common-props-4cdda474.js";
6
- import { a as H } from "./index-3d0bc5da.js";
7
- const J = A({
1
+ import { defineComponent as k, ref as z, computed as l, unref as t, openBlock as u, createBlock as m, mergeProps as I, withCtx as n, createVNode as d, createElementVNode as y, normalizeClass as p, normalizeStyle as V, resolveDynamicComponent as x, createCommentVNode as C, createTextVNode as T, toDisplayString as v, renderSlot as P } from "vue";
2
+ import { b, E as S } from "./el-button-c95adb85.js";
3
+ import { q as A, E as D } from "./index-a871c3eb.js";
4
+ import { g as B, E as M, e as O } from "./el-popper-b4f97157.js";
5
+ import { b as F, u as K, n as L, _ as U, w as j } from "./base-a5af3db3.js";
6
+ import { i as G } from "./use-form-common-props-815d48a6.js";
7
+ import { u as H } from "./index-d77a7336.js";
8
+ const J = F({
8
9
  title: String,
9
10
  confirmButtonText: String,
10
11
  cancelButtonText: String,
11
12
  confirmButtonType: {
12
13
  type: String,
13
- values: P,
14
+ values: b,
14
15
  default: "primary"
15
16
  },
16
17
  cancelButtonType: {
17
18
  type: String,
18
- values: P,
19
+ values: b,
19
20
  default: "text"
20
21
  },
21
22
  icon: {
22
23
  type: G,
23
- default: () => D
24
+ default: () => A
24
25
  },
25
26
  iconColor: {
26
27
  type: String,
@@ -48,34 +49,34 @@ const J = A({
48
49
  }), Q = {
49
50
  confirm: (o) => o instanceof MouseEvent,
50
51
  cancel: (o) => o instanceof MouseEvent || o instanceof KeyboardEvent
51
- }, W = S({
52
+ }, W = k({
52
53
  name: "ElPopconfirm"
53
- }), X = /* @__PURE__ */ S({
54
+ }), X = /* @__PURE__ */ k({
54
55
  ...W,
55
56
  props: J,
56
57
  emits: Q,
57
58
  setup(o, { expose: N, emit: E }) {
58
- const s = o, { t: h } = H(), r = M("popconfirm"), a = I(), R = l(() => {
59
+ const s = o, { t: h } = H(), r = K("popconfirm"), i = z(), R = l(() => {
59
60
  var e;
60
- return (e = t(a)) == null ? void 0 : e.popperRef;
61
- }), i = () => {
61
+ return (e = t(i)) == null ? void 0 : e.popperRef;
62
+ }), a = () => {
62
63
  var e, f;
63
- (f = (e = a.value) == null ? void 0 : e.onClose) == null || f.call(e);
64
+ (f = (e = i.value) == null ? void 0 : e.onClose) == null || f.call(e);
64
65
  }, w = l(() => ({
65
- width: O(s.width)
66
- })), C = (e) => {
67
- E("confirm", e), i();
66
+ width: L(s.width)
67
+ })), g = (e) => {
68
+ E("confirm", e), a();
68
69
  }, c = (e) => {
69
- E("cancel", e), i();
70
+ E("cancel", e), a();
70
71
  }, _ = (e) => {
71
72
  s.closeOnPressEscape && c(e);
72
- }, $ = l(() => s.confirmButtonText || h("el.popconfirm.confirmButtonText")), z = l(() => s.cancelButtonText || h("el.popconfirm.cancelButtonText"));
73
+ }, $ = l(() => s.confirmButtonText || h("el.popconfirm.confirmButtonText")), q = l(() => s.cancelButtonText || h("el.popconfirm.cancelButtonText"));
73
74
  return N({
74
75
  popperRef: R,
75
- hide: i
76
- }), (e, f) => (u(), m(t(U), V({
76
+ hide: a
77
+ }), (e, f) => (u(), m(t(M), I({
77
78
  ref_key: "tooltipRef",
78
- ref: a,
79
+ ref: i,
79
80
  trigger: "click",
80
81
  effect: e.effect
81
82
  }, e.$attrs, {
@@ -87,7 +88,7 @@ const J = A({
87
88
  persistent: e.persistent
88
89
  }), {
89
90
  content: n(() => [
90
- d(t(j), {
91
+ d(t(O), {
91
92
  loop: "",
92
93
  trapped: "",
93
94
  onReleaseRequested: _
@@ -99,41 +100,41 @@ const J = A({
99
100
  y("div", {
100
101
  class: p(t(r).e("main"))
101
102
  }, [
102
- !e.hideIcon && e.icon ? (u(), m(t(F), {
103
+ !e.hideIcon && e.icon ? (u(), m(t(D), {
103
104
  key: 0,
104
105
  class: p(t(r).e("icon")),
105
- style: q({ color: e.iconColor })
106
+ style: V({ color: e.iconColor })
106
107
  }, {
107
108
  default: n(() => [
108
109
  (u(), m(x(e.icon)))
109
110
  ]),
110
111
  _: 1
111
- }, 8, ["class", "style"])) : g("v-if", !0),
112
+ }, 8, ["class", "style"])) : C("v-if", !0),
112
113
  T(" " + v(e.title), 1)
113
114
  ], 2),
114
115
  y("div", {
115
116
  class: p(t(r).e("action"))
116
117
  }, [
117
- b(e.$slots, "actions", {
118
- confirm: C,
118
+ P(e.$slots, "actions", {
119
+ confirm: g,
119
120
  cancel: c
120
121
  }, () => [
121
- d(t(k), {
122
+ d(t(S), {
122
123
  size: "small",
123
124
  type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
124
125
  text: e.cancelButtonType === "text",
125
126
  onClick: c
126
127
  }, {
127
128
  default: n(() => [
128
- T(v(t(z)), 1)
129
+ T(v(t(q)), 1)
129
130
  ]),
130
131
  _: 1
131
132
  }, 8, ["type", "text"]),
132
- d(t(k), {
133
+ d(t(S), {
133
134
  size: "small",
134
135
  type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
135
136
  text: e.confirmButtonType === "text",
136
- onClick: C
137
+ onClick: g
137
138
  }, {
138
139
  default: n(() => [
139
140
  T(v(t($)), 1)
@@ -148,14 +149,14 @@ const J = A({
148
149
  })
149
150
  ]),
150
151
  default: n(() => [
151
- e.$slots.reference ? b(e.$slots, "reference", { key: 0 }) : g("v-if", !0)
152
+ e.$slots.reference ? P(e.$slots, "reference", { key: 0 }) : C("v-if", !0)
152
153
  ]),
153
154
  _: 3
154
155
  }, 16, ["effect", "popper-class", "popper-style", "teleported", "hide-after", "persistent"]));
155
156
  }
156
157
  });
157
- var Y = /* @__PURE__ */ K(X, [["__file", "popconfirm.vue"]]);
158
- const se = L(Y);
158
+ var Y = /* @__PURE__ */ U(X, [["__file", "popconfirm.vue"]]);
159
+ const le = j(Y);
159
160
  export {
160
- se as E
161
+ le as E
161
162
  };