st-comp 0.0.164 → 0.0.166

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 (145) hide show
  1. package/components.d.ts +3 -0
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +3 -3
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +16 -14
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +492 -614
  8. package/es/Kline.cjs +1 -1
  9. package/es/Kline.js +16 -16
  10. package/es/KlineBasic.cjs +1 -1
  11. package/es/KlineBasic.js +477 -766
  12. package/es/KlineConfig.cjs +1 -0
  13. package/es/KlineConfig.js +703 -0
  14. package/es/KlineNew.cjs +1 -1
  15. package/es/KlineNew.js +14 -14
  16. package/es/KlinePlus.cjs +6 -0
  17. package/es/KlinePlus.js +1212 -0
  18. package/es/Pagination.cjs +1 -1
  19. package/es/Pagination.js +21 -20
  20. package/es/PasswordPrompt.cjs +1 -1
  21. package/es/PasswordPrompt.js +3 -3
  22. package/es/Table.cjs +1 -1
  23. package/es/Table.js +100 -279
  24. package/es/User.cjs +1 -1
  25. package/es/User.js +41 -39
  26. package/es/VarSelectDialog.cjs +1 -1
  27. package/es/VarSelectDialog.js +23 -22
  28. package/es/VarietySearch.cjs +1 -1
  29. package/es/VarietySearch.js +34 -32
  30. package/es/VirtualTable.cjs +5 -5
  31. package/es/VirtualTable.js +1018 -1056
  32. package/es/{_initCloneObject-47814efa.cjs → _initCloneObject-9ccbb113.cjs} +1 -1
  33. package/es/{_initCloneObject-c939f3af.js → _initCloneObject-a9305c1e.js} +3 -3
  34. package/es/base-4bcd2756.js +304 -0
  35. package/es/base-bdc10baa.cjs +5 -0
  36. package/es/{castArray-a78ae889.cjs → castArray-37eb9980.cjs} +1 -1
  37. package/es/{castArray-2440268f.js → castArray-681d750b.js} +1 -1
  38. package/es/{config-provider-722dca36.js → config-provider-93846ae3.js} +9 -9
  39. package/es/config-provider-ec6b09df.cjs +1 -0
  40. package/es/dayjs.min-19fb125f.cjs +1 -0
  41. package/es/dayjs.min-54a4e095.js +296 -0
  42. package/es/{debounce-82e23c4b.js → debounce-51046b06.js} +1 -1
  43. package/es/{debounce-cf26af24.cjs → debounce-9e323221.cjs} +1 -1
  44. package/es/{dropdown-6f8379f0.js → dropdown-65e74de8.js} +6 -6
  45. package/es/{dropdown-790d31ea.cjs → dropdown-b2dab5bb.cjs} +1 -1
  46. package/es/{el-autocomplete-75762ef9.js → el-autocomplete-5064d466.js} +9 -9
  47. package/es/{el-autocomplete-84de99ba.cjs → el-autocomplete-814993af.cjs} +1 -1
  48. package/es/el-button-960edd49.cjs +1 -0
  49. package/es/{el-button-2e878325.js → el-button-d39472d3.js} +37 -36
  50. package/es/{el-checkbox-group-45247bbf.cjs → el-checkbox-group-020b49f5.cjs} +1 -1
  51. package/es/{el-checkbox-group-5e4f32f0.js → el-checkbox-group-779f353a.js} +2 -2
  52. package/es/el-dialog-cd484c1f.cjs +1 -0
  53. package/es/el-dialog-f45ec2a1.js +267 -0
  54. package/es/el-divider-40c50ce7.cjs +1 -0
  55. package/es/el-divider-7cf13678.js +45 -0
  56. package/es/{el-empty-2ece1134.cjs → el-empty-627ec09e.cjs} +1 -1
  57. package/es/{el-empty-7f8acbdc.js → el-empty-64b2ea8a.js} +2 -2
  58. package/es/{el-form-item-45ba08ff.js → el-form-item-b31e7a98.js} +8 -8
  59. package/es/{el-form-item-47e255d4.cjs → el-form-item-e1c3104b.cjs} +2 -2
  60. package/es/{el-input-1323afd2.js → el-input-42315ac4.js} +48 -48
  61. package/es/{el-input-cb340042.cjs → el-input-5163bda3.cjs} +1 -1
  62. package/es/{el-input-number-0f194f3f.cjs → el-input-number-eb54cde4.cjs} +1 -1
  63. package/es/{el-input-number-991f8bfc.js → el-input-number-ebd64e22.js} +19 -19
  64. package/es/el-loading-15a5501c.cjs +1 -0
  65. package/es/el-loading-5d29f26d.js +187 -0
  66. package/es/{el-menu-item-4c9eb7ad.cjs → el-menu-item-ac89e804.cjs} +1 -1
  67. package/es/{el-menu-item-dbbcd01a.js → el-menu-item-d62e0a3f.js} +32 -32
  68. package/es/el-message-ad87b9dd.cjs +1 -0
  69. package/es/{el-message-03e6f342.js → el-message-bd1d2c82.js} +17 -17
  70. package/es/el-overlay-690b50aa.js +269 -0
  71. package/es/el-overlay-e5d318c3.cjs +1 -0
  72. package/es/{el-popconfirm-8372cd13.js → el-popconfirm-88bbd066.js} +13 -13
  73. package/es/{el-popconfirm-86503f8a.cjs → el-popconfirm-a497b279.cjs} +1 -1
  74. package/es/{el-popper-7adbf1c6.cjs → el-popper-14a9d493.cjs} +1 -1
  75. package/es/{el-popper-b5315f5b.js → el-popper-85365d5b.js} +63 -63
  76. package/es/{el-scrollbar-ac525239.cjs → el-scrollbar-8bf765f2.cjs} +1 -1
  77. package/es/{el-scrollbar-4dc1493a.js → el-scrollbar-bcf29780.js} +21 -21
  78. package/es/el-segmented-84707138.js +136 -0
  79. package/es/el-segmented-bccd9f2a.cjs +1 -0
  80. package/es/{el-select-31f8ac8a.cjs → el-select-1d2309a1.cjs} +1 -1
  81. package/es/{el-select-a4ad7c8b.js → el-select-d3bce4d1.js} +13 -13
  82. package/es/{el-table-column-2e7132b3.js → el-table-column-9691b26d.js} +19 -18
  83. package/es/el-table-column-be9a76bb.cjs +14 -0
  84. package/es/{el-tag-a79385c6.js → el-tag-6036f51c.js} +39 -39
  85. package/es/{el-tag-9732314f.cjs → el-tag-8d49d4d2.cjs} +1 -1
  86. package/es/{index-375e8de4.cjs → index-02ca0096.cjs} +1 -1
  87. package/es/{index-afc88a4b.cjs → index-19fa1fcf.cjs} +1 -1
  88. package/es/{index-733cd68a.js → index-21fb27eb.js} +17 -17
  89. package/es/{index-e5fe37a4.js → index-3425f2f0.js} +10 -10
  90. package/es/{index-1d85ba4b.cjs → index-5b81f4da.cjs} +1 -1
  91. package/es/index-8d3c5e96.cjs +3 -0
  92. package/es/{index-97d24ab7.js → index-8ee89b40.js} +16 -16
  93. package/es/{index-9e6e8d03.cjs → index-a99a5307.cjs} +1 -1
  94. package/es/{index-58521b9e.cjs → index-b90c746b.cjs} +1 -1
  95. package/es/index-c45ac024.js +14 -0
  96. package/es/{index-f5b9b211.js → index-cb8157f2.js} +2 -2
  97. package/es/{index-e6a36e09.js → index-d3c37134.js} +7 -7
  98. package/es/{index-65b4113e.cjs → index-d94bae37.cjs} +1 -1
  99. package/es/{index-2d9c78d4.cjs → index-e348d5e8.cjs} +1 -1
  100. package/es/{index-57a7323a.js → index-ef7c4392.js} +11 -11
  101. package/es/{index-e3353eeb.js → index-fbe85773.js} +13 -13
  102. package/es/{raf-f46caea0.cjs → raf-07cb6953.cjs} +1 -1
  103. package/es/{raf-c817c3f7.js → raf-36faa519.js} +1 -1
  104. package/es/{scroll-4fe7a76f.js → scroll-0277d145.js} +1 -1
  105. package/es/{scroll-339681d4.cjs → scroll-4769a65d.cjs} +1 -1
  106. package/es/style.css +1 -1
  107. package/es/{use-form-common-props-04fb0752.js → use-form-common-props-54c31983.js} +40 -40
  108. package/es/{use-form-common-props-74a96df2.cjs → use-form-common-props-592797e2.cjs} +1 -1
  109. package/es/use-global-config-584b62f1.cjs +1 -0
  110. package/es/use-global-config-946f61a4.js +73 -0
  111. package/es/{vnode-b15eb11b.cjs → vnode-1b827c99.cjs} +1 -1
  112. package/es/{vnode-0fd3003d.js → vnode-dfc92f20.js} +1 -1
  113. package/es/{zh-cn-cac8283b.js → zh-cn-5066f5e9.js} +2 -2
  114. package/es/{zh-cn-36f34912.cjs → zh-cn-b24a7dc9.cjs} +1 -1
  115. package/lib/bundle.js +1 -1
  116. package/lib/bundle.umd.cjs +217 -212
  117. package/lib/{index-5f63dc2e.js → index-80531492.js} +39042 -37182
  118. package/lib/{python-5918f7d5.js → python-20a1a5fc.js} +1 -1
  119. package/lib/style.css +1 -1
  120. package/package.json +1 -1
  121. package/packages/KlineConfig/config.js +39 -0
  122. package/packages/KlineConfig/index.ts +8 -0
  123. package/packages/KlineConfig/index.vue +315 -0
  124. package/packages/KlinePlus/components/SliderChart.vue +218 -0
  125. package/packages/KlinePlus/components/Tips.vue +36 -0
  126. package/packages/KlinePlus/images/buy.svg +1 -0
  127. package/packages/KlinePlus/images/sell.svg +1 -0
  128. package/packages/KlinePlus/images/t.svg +1 -0
  129. package/packages/KlinePlus/index.ts +8 -0
  130. package/packages/KlinePlus/index.vue +880 -0
  131. package/packages/KlinePlus/utils.js +705 -0
  132. package/packages/index.ts +4 -0
  133. package/src/pages/KlineConfig/index.vue +20 -0
  134. package/src/pages/KlinePlus/index.vue +180 -0
  135. package/src/router/routes.ts +10 -0
  136. package/es/base-0ca7c43a.cjs +0 -5
  137. package/es/base-b56cf478.js +0 -303
  138. package/es/config-provider-cfbb9cd8.cjs +0 -1
  139. package/es/el-button-62966947.cjs +0 -1
  140. package/es/el-message-d5ed7a4f.cjs +0 -1
  141. package/es/el-overlay-41994f67.cjs +0 -1
  142. package/es/el-overlay-47b665a0.js +0 -521
  143. package/es/el-table-column-bdc46568.cjs +0 -14
  144. package/es/index-0baeaec7.js +0 -82
  145. package/es/index-2f958e56.cjs +0 -3
@@ -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 Z, withCtx as E, withDirectives as j, createElementVNode as L, normalizeStyle as q, createTextVNode as le, 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 H } from "vue";
2
- import { b as me, a as ge } from "./el-scrollbar-4dc1493a.js";
3
- import { b as K, d as N, u as ye, a as T, y as A, _ as Q, w as ve, h as X, o as Ce, i as R, g as _, l as he, e as be, c as V, F as Te } from "./base-b56cf478.js";
4
- import { E as P } from "./index-e5fe37a4.js";
5
- import { i as we, f as U, T as Se } from "./use-form-common-props-04fb0752.js";
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 Z, withCtx as E, withDirectives as j, createElementVNode as L, normalizeStyle as q, createTextVNode as le, toDisplayString as G, vShow as W, shallowReactive as ie, ref as $, 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 H } from "vue";
2
+ import { b as me, u as ge } from "./el-scrollbar-bcf29780.js";
3
+ import { k as K, m as N, u as ye, v as T, q as A, _ as Q, w as ve, b as X, l as Ce, a as R, i as _, e as he, f as be, s as V, G as Te } from "./base-4bcd2756.js";
4
+ import { E as P } from "./index-3425f2f0.js";
5
+ import { i as we, a as U, T as Se } from "./use-form-common-props-54c31983.js";
6
6
  import { m as Ee } from "./typescript-7ae59c4c.js";
7
- import { u as Ne } from "./index-0baeaec7.js";
8
- import { E as Be } from "./index-733cd68a.js";
9
- import { m as c } from "./config-provider-722dca36.js";
7
+ import { u as Ne } from "./use-global-config-946f61a4.js";
8
+ import { E as Be } from "./index-21fb27eb.js";
9
+ import { m as c } from "./config-provider-93846ae3.js";
10
10
  const Me = K({
11
11
  value: {
12
12
  type: [String, Number],
@@ -38,10 +38,10 @@ const Me = K({
38
38
  badgeClass: {
39
39
  type: String
40
40
  }
41
- }), $e = B({
41
+ }), ke = B({
42
42
  name: "ElBadge"
43
- }), ke = /* @__PURE__ */ B({
44
- ...$e,
43
+ }), $e = /* @__PURE__ */ B({
44
+ ...ke,
45
45
  props: Me,
46
46
  setup(o, { expose: t }) {
47
47
  const e = o, a = ye("badge"), n = m(() => e.isDot ? "" : T(e.value) && T(e.max) ? e.max < e.value ? `${e.max}+` : `${e.value}` : `${e.value}`), p = m(() => {
@@ -89,7 +89,7 @@ const Me = K({
89
89
  ], 2));
90
90
  }
91
91
  });
92
- var ze = /* @__PURE__ */ Q(ke, [["__file", "badge.vue"]]);
92
+ var ze = /* @__PURE__ */ Q($e, [["__file", "badge.vue"]]);
93
93
  const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
94
94
  customClass: "",
95
95
  center: !1,
@@ -189,7 +189,7 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
189
189
  props: Le,
190
190
  emits: _e,
191
191
  setup(o, { expose: t }) {
192
- const e = o, { Close: a } = Se, { ns: n, zIndex: p } = Ne("message"), { currentZIndex: r, nextZIndex: u } = p, f = k(), g = k(!1), y = k(0);
192
+ const e = o, { Close: a } = Se, { ns: n, zIndex: p } = Ne("message"), { currentZIndex: r, nextZIndex: u } = p, f = $(), g = $(!1), y = $(0);
193
193
  let M;
194
194
  const se = m(() => e.type ? e.type === "error" ? "danger" : e.type : "info"), oe = m(() => {
195
195
  const l = e.type;
@@ -198,7 +198,7 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
198
198
  top: `${x.value}px`,
199
199
  zIndex: r.value
200
200
  }));
201
- function $() {
201
+ function k() {
202
202
  e.duration !== 0 && ({ stop: M } = Ce(() => {
203
203
  w();
204
204
  }, e.duration));
@@ -213,9 +213,9 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
213
213
  l === Be.esc && w();
214
214
  }
215
215
  return ue(() => {
216
- $(), u(), g.value = !0;
216
+ k(), u(), g.value = !0;
217
217
  }), de(() => e.repeatNum, () => {
218
- F(), $();
218
+ F(), k();
219
219
  }), me(document, "keydown", re), ge(f, () => {
220
220
  y.value = f.value.getBoundingClientRect().height;
221
221
  }), t({
@@ -244,7 +244,7 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
244
244
  style: q(s(ae)),
245
245
  role: "alert",
246
246
  onMouseenter: F,
247
- onMouseleave: $
247
+ onMouseleave: k
248
248
  }, [
249
249
  l.repeatNum > 1 ? (v(), b(s(Ie), {
250
250
  key: 0,
@@ -0,0 +1,269 @@
1
+ import { defineComponent as Z, createVNode as G, renderSlot as T, h as K, isRef as J, computed as w, watch as B, onScopeDispose as Q, getCurrentInstance as X, ref as p, nextTick as R, onMounted as ee } from "vue";
2
+ import { N as x, k as E, m as C, u as F, s as oe, t as te, b as L, j as P, g as ne, y as le, r as se, q as ae, D as ue, l as I } from "./base-4bcd2756.js";
3
+ import { P as k } from "./vnode-dfc92f20.js";
4
+ import { i as ie, n as re } from "./use-form-common-props-54c31983.js";
5
+ import { U as N, i as ce } from "./index-21fb27eb.js";
6
+ import { g as de } from "./scroll-0277d145.js";
7
+ import { u as D } from "./index-ef7c4392.js";
8
+ import { a as fe } from "./use-global-config-946f61a4.js";
9
+ const me = (e) => {
10
+ if (!e)
11
+ return { onClick: x, onMousedown: x, onMouseup: x };
12
+ let o = !1, s = !1;
13
+ return { onClick: (t) => {
14
+ o && s && e(t), o = s = !1;
15
+ }, onMousedown: (t) => {
16
+ o = t.target === t.currentTarget;
17
+ }, onMouseup: (t) => {
18
+ s = t.target === t.currentTarget;
19
+ } };
20
+ }, ye = E({
21
+ mask: {
22
+ type: Boolean,
23
+ default: !0
24
+ },
25
+ customMaskEvent: Boolean,
26
+ overlayClass: {
27
+ type: C([
28
+ String,
29
+ Array,
30
+ Object
31
+ ])
32
+ },
33
+ zIndex: {
34
+ type: C([String, Number])
35
+ }
36
+ }), ve = {
37
+ click: (e) => e instanceof MouseEvent
38
+ }, pe = "overlay";
39
+ var Ce = Z({
40
+ name: "ElOverlay",
41
+ props: ye,
42
+ emits: ve,
43
+ setup(e, { slots: o, emit: s }) {
44
+ const i = F(pe), n = (d) => {
45
+ s("click", d);
46
+ }, { onClick: a, onMousedown: t, onMouseup: c } = me(e.customMaskEvent ? void 0 : n);
47
+ return () => e.mask ? G("div", {
48
+ class: [i.b(), e.overlayClass],
49
+ style: {
50
+ zIndex: e.zIndex
51
+ },
52
+ onClick: a,
53
+ onMousedown: t,
54
+ onMouseup: c
55
+ }, [T(o, "default")], k.STYLE | k.CLASS | k.PROPS, ["onClick", "onMouseup", "onMousedown"]) : K("div", {
56
+ class: e.overlayClass,
57
+ style: {
58
+ zIndex: e.zIndex,
59
+ position: "fixed",
60
+ top: "0px",
61
+ right: "0px",
62
+ bottom: "0px",
63
+ left: "0px"
64
+ }
65
+ }, [T(o, "default")]);
66
+ }
67
+ });
68
+ const Me = Ce, be = E({
69
+ center: Boolean,
70
+ alignCenter: Boolean,
71
+ closeIcon: {
72
+ type: ie
73
+ },
74
+ draggable: Boolean,
75
+ overflow: Boolean,
76
+ fullscreen: Boolean,
77
+ headerClass: String,
78
+ bodyClass: String,
79
+ footerClass: String,
80
+ showClose: {
81
+ type: Boolean,
82
+ default: !0
83
+ },
84
+ title: {
85
+ type: String,
86
+ default: ""
87
+ },
88
+ ariaLevel: {
89
+ type: String,
90
+ default: "2"
91
+ }
92
+ }), Te = {
93
+ close: () => !0
94
+ }, Pe = E({
95
+ ...be,
96
+ appendToBody: Boolean,
97
+ appendTo: {
98
+ type: C([String, Object]),
99
+ default: "body"
100
+ },
101
+ beforeClose: {
102
+ type: C(Function)
103
+ },
104
+ destroyOnClose: Boolean,
105
+ closeOnClickModal: {
106
+ type: Boolean,
107
+ default: !0
108
+ },
109
+ closeOnPressEscape: {
110
+ type: Boolean,
111
+ default: !0
112
+ },
113
+ lockScroll: {
114
+ type: Boolean,
115
+ default: !0
116
+ },
117
+ modal: {
118
+ type: Boolean,
119
+ default: !0
120
+ },
121
+ openDelay: {
122
+ type: Number,
123
+ default: 0
124
+ },
125
+ closeDelay: {
126
+ type: Number,
127
+ default: 0
128
+ },
129
+ top: {
130
+ type: String
131
+ },
132
+ modelValue: Boolean,
133
+ modalClass: String,
134
+ headerClass: String,
135
+ bodyClass: String,
136
+ footerClass: String,
137
+ width: {
138
+ type: [String, Number]
139
+ },
140
+ zIndex: {
141
+ type: Number
142
+ },
143
+ trapFocus: Boolean,
144
+ headerAriaLevel: {
145
+ type: String,
146
+ default: "2"
147
+ }
148
+ }), Ie = {
149
+ open: () => !0,
150
+ opened: () => !0,
151
+ close: () => !0,
152
+ closed: () => !0,
153
+ [N]: (e) => oe(e),
154
+ openAutoFocus: () => !0,
155
+ closeAutoFocus: () => !0
156
+ }, ge = (e, o = {}) => {
157
+ J(e) || te("[useLockscreen]", "You need to pass a ref param to this function");
158
+ const s = o.ns || F("popup"), i = w(() => s.bm("parent", "hidden"));
159
+ if (!L || P(document.body, i.value))
160
+ return;
161
+ let n = 0, a = !1, t = "0";
162
+ const c = () => {
163
+ setTimeout(() => {
164
+ typeof document > "u" || a && document && (document.body.style.width = t, se(document.body, i.value));
165
+ }, 200);
166
+ };
167
+ B(e, (d) => {
168
+ if (!d) {
169
+ c();
170
+ return;
171
+ }
172
+ a = !P(document.body, i.value), a && (t = document.body.style.width, ne(document.body, i.value)), n = de(s.namespace.value);
173
+ const u = document.documentElement.clientHeight < document.body.scrollHeight, f = le(document.body, "overflowY");
174
+ n > 0 && (u || f === "scroll") && a && (document.body.style.width = `calc(100% - ${n}px)`);
175
+ }), Q(() => c());
176
+ }, De = (e, o) => {
177
+ var s;
178
+ const n = X().emit, { nextZIndex: a } = re();
179
+ let t = "";
180
+ const c = D(), d = D(), u = p(!1), f = p(!1), v = p(!1), b = p((s = e.zIndex) != null ? s : a());
181
+ let m, y;
182
+ const A = fe("namespace", ue), z = w(() => {
183
+ const l = {}, r = `--${A.value}-dialog`;
184
+ return e.fullscreen || (e.top && (l[`${r}-margin-top`] = e.top), e.width && (l[`${r}-width`] = ae(e.width))), l;
185
+ }), V = w(() => e.alignCenter ? { display: "flex" } : {});
186
+ function H() {
187
+ n("opened");
188
+ }
189
+ function U() {
190
+ n("closed"), n(N, !1), e.destroyOnClose && (v.value = !1);
191
+ }
192
+ function Y() {
193
+ n("close");
194
+ }
195
+ function O() {
196
+ y == null || y(), m == null || m(), e.openDelay && e.openDelay > 0 ? { stop: m } = I(() => M(), e.openDelay) : M();
197
+ }
198
+ function g() {
199
+ m == null || m(), y == null || y(), e.closeDelay && e.closeDelay > 0 ? { stop: y } = I(() => S(), e.closeDelay) : S();
200
+ }
201
+ function h() {
202
+ function l(r) {
203
+ r || (f.value = !0, u.value = !1);
204
+ }
205
+ e.beforeClose ? e.beforeClose(l) : g();
206
+ }
207
+ function _() {
208
+ e.closeOnClickModal && h();
209
+ }
210
+ function M() {
211
+ L && (u.value = !0);
212
+ }
213
+ function S() {
214
+ u.value = !1;
215
+ }
216
+ function $() {
217
+ n("openAutoFocus");
218
+ }
219
+ function j() {
220
+ n("closeAutoFocus");
221
+ }
222
+ function W(l) {
223
+ var r;
224
+ ((r = l.detail) == null ? void 0 : r.focusReason) === "pointer" && l.preventDefault();
225
+ }
226
+ e.lockScroll && ge(u);
227
+ function q() {
228
+ e.closeOnPressEscape && h();
229
+ }
230
+ return B(() => e.modelValue, (l) => {
231
+ l ? (f.value = !1, O(), v.value = !0, b.value = ce(e.zIndex) ? a() : b.value++, R(() => {
232
+ n("open"), o.value && (o.value.parentElement.scrollTop = 0, o.value.parentElement.scrollLeft = 0, o.value.scrollTop = 0);
233
+ })) : u.value && g();
234
+ }), B(() => e.fullscreen, (l) => {
235
+ o.value && (l ? (t = o.value.style.transform, o.value.style.transform = "") : o.value.style.transform = t);
236
+ }), ee(() => {
237
+ e.modelValue && (u.value = !0, v.value = !0, O());
238
+ }), {
239
+ afterEnter: H,
240
+ afterLeave: U,
241
+ beforeLeave: Y,
242
+ handleClose: h,
243
+ onModalClick: _,
244
+ close: g,
245
+ doClose: S,
246
+ onOpenAutoFocus: $,
247
+ onCloseAutoFocus: j,
248
+ onCloseRequested: q,
249
+ onFocusoutPrevented: W,
250
+ titleId: c,
251
+ bodyId: d,
252
+ closed: f,
253
+ style: z,
254
+ overlayDialogStyle: V,
255
+ rendered: v,
256
+ visible: u,
257
+ zIndex: b
258
+ };
259
+ };
260
+ export {
261
+ Me as E,
262
+ me as a,
263
+ Ie as b,
264
+ De as c,
265
+ Pe as d,
266
+ be as e,
267
+ Te as f,
268
+ ge as u
269
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),o=require("./base-bdc10baa.cjs"),S=require("./vnode-1b827c99.cjs"),x=require("./use-form-common-props-592797e2.cjs"),E=require("./index-d94bae37.cjs"),H=require("./scroll-4769a65d.cjs"),w=require("./index-02ca0096.cjs"),U=require("./use-global-config-584b62f1.cjs"),k=e=>{if(!e)return{onClick:o.NOOP,onMousedown:o.NOOP,onMouseup:o.NOOP};let n=!1,u=!1;return{onClick:l=>{n&&u&&e(l),n=u=!1},onMousedown:l=>{n=l.target===l.currentTarget},onMouseup:l=>{u=l.target===l.currentTarget}}},Y=o.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:o.definePropType([String,Array,Object])},zIndex:{type:o.definePropType([String,Number])}}),W={click:e=>e instanceof MouseEvent},j="overlay";var G=t.defineComponent({name:"ElOverlay",props:Y,emits:W,setup(e,{slots:n,emit:u}){const r=o.useNamespace(j),s=y=>{u("click",y)},{onClick:i,onMousedown:l,onMouseup:f}=k(e.customMaskEvent?void 0:s);return()=>e.mask?t.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:l,onMouseup:f},[t.renderSlot(n,"default")],S.PatchFlags.STYLE|S.PatchFlags.CLASS|S.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(n,"default")])}});const Z=G,B=o.buildProps({center:Boolean,alignCenter:Boolean,closeIcon:{type:x.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"}}),K={close:()=>!0},J=o.buildProps({...B,appendToBody:Boolean,appendTo:{type:o.definePropType([String,Object]),default:"body"},beforeClose:{type:o.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"}}),Q={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[E.UPDATE_MODEL_EVENT]:e=>o.isBoolean(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},M=(e,n={})=>{t.isRef(e)||o.throwError("[useLockscreen]","You need to pass a ref param to this function");const u=n.ns||o.useNamespace("popup"),r=t.computed(()=>u.bm("parent","hidden"));if(!o.isClient||o.hasClass(document.body,r.value))return;let s=0,i=!1,l="0";const f=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=l,o.removeClass(document.body,r.value))},200)};t.watch(e,y=>{if(!y){f();return}i=!o.hasClass(document.body,r.value),i&&(l=document.body.style.width,o.addClass(document.body,r.value)),s=H.getScrollBarWidth(u.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,m=o.getStyle(document.body,"overflowY");s>0&&(c||m==="scroll")&&i&&(document.body.style.width=`calc(100% - ${s}px)`)}),t.onScopeDispose(()=>f())},X=(e,n)=>{var u;const s=t.getCurrentInstance().emit,{nextZIndex:i}=x.useZIndex();let l="";const f=w.useId(),y=w.useId(),c=t.ref(!1),m=t.ref(!1),C=t.ref(!1),g=t.ref((u=e.zIndex)!=null?u:i());let v,p;const D=U.useGlobalConfig("namespace",o.defaultNamespace),I=t.computed(()=>{const a={},d=`--${D.value}-dialog`;return e.fullscreen||(e.top&&(a[`${d}-margin-top`]=e.top),e.width&&(a[`${d}-width`]=o.addUnit(e.width))),a}),F=t.computed(()=>e.alignCenter?{display:"flex"}:{});function N(){s("opened")}function L(){s("closed"),s(E.UPDATE_MODEL_EVENT,!1),e.destroyOnClose&&(C.value=!1)}function A(){s("close")}function O(){p==null||p(),v==null||v(),e.openDelay&&e.openDelay>0?{stop:v}=o.useTimeoutFn(()=>T(),e.openDelay):T()}function b(){v==null||v(),p==null||p(),e.closeDelay&&e.closeDelay>0?{stop:p}=o.useTimeoutFn(()=>P(),e.closeDelay):P()}function h(){function a(d){d||(m.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(a):b()}function q(){e.closeOnClickModal&&h()}function T(){o.isClient&&(c.value=!0)}function P(){c.value=!1}function z(){s("openAutoFocus")}function V(){s("closeAutoFocus")}function _(a){var d;((d=a.detail)==null?void 0:d.focusReason)==="pointer"&&a.preventDefault()}e.lockScroll&&M(c);function $(){e.closeOnPressEscape&&h()}return t.watch(()=>e.modelValue,a=>{a?(m.value=!1,O(),C.value=!0,g.value=E.isUndefined(e.zIndex)?i():g.value++,t.nextTick(()=>{s("open"),n.value&&(n.value.parentElement.scrollTop=0,n.value.parentElement.scrollLeft=0,n.value.scrollTop=0)})):c.value&&b()}),t.watch(()=>e.fullscreen,a=>{n.value&&(a?(l=n.value.style.transform,n.value.style.transform=""):n.value.style.transform=l)}),t.onMounted(()=>{e.modelValue&&(c.value=!0,C.value=!0,O())}),{afterEnter:N,afterLeave:L,beforeLeave:A,handleClose:h,onModalClick:q,close:b,doClose:P,onOpenAutoFocus:z,onCloseAutoFocus:V,onCloseRequested:$,onFocusoutPrevented:_,titleId:f,bodyId:y,closed:m,style:I,overlayDialogStyle:F,rendered:C,visible:c,zIndex:g}};exports.ElOverlay=Z;exports.dialogContentEmits=K;exports.dialogContentProps=B;exports.dialogEmits=Q;exports.dialogProps=J;exports.useDialog=X;exports.useLockscreen=M;exports.useSameTarget=k;
@@ -1,10 +1,10 @@
1
- import { defineComponent as k, ref as x, 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 m, toDisplayString as u, renderSlot as C, createVNode as E } from "vue";
2
- import { b, E as P } from "./el-button-2e878325.js";
3
- import { q as _, E as q } from "./index-e5fe37a4.js";
4
- import { a as S, E as A } from "./el-popper-b5315f5b.js";
5
- import { b as D, u as M, y as R, _ as L, w as U } from "./base-b56cf478.js";
6
- import { i as j } from "./use-form-common-props-04fb0752.js";
7
- import { a as F } from "./index-57a7323a.js";
1
+ import { defineComponent as S, ref as x, 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 m, toDisplayString as u, renderSlot as C, createVNode as E } from "vue";
2
+ import { b, E as k } from "./el-button-d39472d3.js";
3
+ import { q as _, E as q } from "./index-3425f2f0.js";
4
+ import { b as P, E as A } from "./el-popper-85365d5b.js";
5
+ import { k as D, u as M, q as R, _ as L, w as U } from "./base-4bcd2756.js";
6
+ import { i as j } from "./use-form-common-props-54c31983.js";
7
+ import { a as F } from "./index-ef7c4392.js";
8
8
  const G = D({
9
9
  title: String,
10
10
  confirmButtonText: String,
@@ -35,8 +35,8 @@ const G = D({
35
35
  type: Number,
36
36
  default: 200
37
37
  },
38
- teleported: S.teleported,
39
- persistent: S.persistent,
38
+ teleported: P.teleported,
39
+ persistent: P.persistent,
40
40
  width: {
41
41
  type: [String, Number],
42
42
  default: 150
@@ -44,9 +44,9 @@ const G = D({
44
44
  }), H = {
45
45
  confirm: (o) => o instanceof MouseEvent,
46
46
  cancel: (o) => o instanceof MouseEvent
47
- }, J = k({
47
+ }, J = S({
48
48
  name: "ElPopconfirm"
49
- }), K = /* @__PURE__ */ k({
49
+ }), K = /* @__PURE__ */ S({
50
50
  ...J,
51
51
  props: G,
52
52
  emits: H,
@@ -100,7 +100,7 @@ const G = D({
100
100
  confirm: v,
101
101
  cancel: h
102
102
  }, () => [
103
- E(t(P), {
103
+ E(t(k), {
104
104
  size: "small",
105
105
  type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
106
106
  text: e.cancelButtonType === "text",
@@ -111,7 +111,7 @@ const G = D({
111
111
  ]),
112
112
  _: 1
113
113
  }, 8, ["type", "text"]),
114
- E(t(P), {
114
+ E(t(k), {
115
115
  size: "small",
116
116
  type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
117
117
  text: e.confirmButtonType === "text",
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),l=require("./el-button-62966947.cjs"),y=require("./index-afc88a4b.cjs"),c=require("./el-popper-7adbf1c6.cjs"),r=require("./base-0ca7c43a.cjs"),h=require("./use-form-common-props-74a96df2.cjs"),v=require("./index-375e8de4.cjs"),g=r.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:h.iconPropType,default:()=>y.question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:c.useTooltipContentProps.teleported,persistent:c.useTooltipContentProps.persistent,width:{type:[String,Number],default:150}}),P={confirm:o=>o instanceof MouseEvent,cancel:o=>o instanceof MouseEvent},k=e.defineComponent({name:"ElPopconfirm"}),E=e.defineComponent({...k,props:g,emits:P,setup(o,{emit:p}){const i=o,{t:a}=v.useLocale(),n=r.useNamespace("popconfirm"),u=e.ref(),f=()=>{var t,s;(s=(t=u.value)==null?void 0:t.onClose)==null||s.call(t)},B=e.computed(()=>({width:r.addUnit(i.width)})),m=t=>{p("confirm",t),f()},d=t=>{p("cancel",t),f()},T=e.computed(()=>i.confirmButtonText||a("el.popconfirm.confirmButtonText")),C=e.computed(()=>i.cancelButtonText||a("el.popconfirm.cancelButtonText"));return(t,s)=>(e.openBlock(),e.createBlock(e.unref(c.ElTooltip),e.mergeProps({ref_key:"tooltipRef",ref:u,trigger:"click",effect:"light"},t.$attrs,{"popper-class":`${e.unref(n).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(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:d},()=>[e.createVNode(e.unref(l.ElButton),{size:"small",type:t.cancelButtonType==="text"?"":t.cancelButtonType,text:t.cancelButtonType==="text",onClick:d},{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:m},{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 N=r._export_sfc(E,[["__file","popconfirm.vue"]]);const S=r.withInstall(N);exports.ElPopconfirm=S;
1
+ "use strict";const e=require("vue"),l=require("./el-button-960edd49.cjs"),y=require("./index-19fa1fcf.cjs"),c=require("./el-popper-14a9d493.cjs"),r=require("./base-bdc10baa.cjs"),h=require("./use-form-common-props-592797e2.cjs"),v=require("./index-02ca0096.cjs"),g=r.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:h.iconPropType,default:()=>y.question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:c.useTooltipContentProps.teleported,persistent:c.useTooltipContentProps.persistent,width:{type:[String,Number],default:150}}),P={confirm:o=>o instanceof MouseEvent,cancel:o=>o instanceof MouseEvent},k=e.defineComponent({name:"ElPopconfirm"}),E=e.defineComponent({...k,props:g,emits:P,setup(o,{emit:p}){const i=o,{t:a}=v.useLocale(),n=r.useNamespace("popconfirm"),u=e.ref(),f=()=>{var t,s;(s=(t=u.value)==null?void 0:t.onClose)==null||s.call(t)},B=e.computed(()=>({width:r.addUnit(i.width)})),m=t=>{p("confirm",t),f()},d=t=>{p("cancel",t),f()},T=e.computed(()=>i.confirmButtonText||a("el.popconfirm.confirmButtonText")),C=e.computed(()=>i.cancelButtonText||a("el.popconfirm.cancelButtonText"));return(t,s)=>(e.openBlock(),e.createBlock(e.unref(c.ElTooltip),e.mergeProps({ref_key:"tooltipRef",ref:u,trigger:"click",effect:"light"},t.$attrs,{"popper-class":`${e.unref(n).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(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:d},()=>[e.createVNode(e.unref(l.ElButton),{size:"small",type:t.cancelButtonType==="text"?"":t.cancelButtonType,text:t.cancelButtonType==="text",onClick:d},{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:m},{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 N=r._export_sfc(E,[["__file","popconfirm.vue"]]);const S=r.withInstall(N);exports.ElPopconfirm=S;