st-comp 0.0.146 → 0.0.147

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 (148) hide show
  1. package/components.d.ts +0 -3
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +2 -2
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +22 -26
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +103 -112
  8. package/es/KlineBasic.cjs +1 -1
  9. package/es/KlineBasic.js +1426 -671
  10. package/es/KlineNew.cjs +3 -1
  11. package/es/KlineNew.js +2736 -314
  12. package/es/Pagination.cjs +1 -1
  13. package/es/Pagination.js +96 -102
  14. package/es/Table.cjs +1 -1
  15. package/es/Table.js +60 -66
  16. package/es/User.cjs +1 -1
  17. package/es/User.js +96 -103
  18. package/es/VarietySearch.cjs +1 -1
  19. package/es/VarietySearch.js +32 -41
  20. package/es/VirtualTable.cjs +1 -13
  21. package/es/VirtualTable.js +1 -2801
  22. package/es/_initCloneObject-7493ecd5.cjs +1 -0
  23. package/es/{_initCloneObject-14b53c6f.js → _initCloneObject-a8dcd058.js} +26 -26
  24. package/es/{base-ec05f348.cjs → base-00ce90ec.cjs} +3 -3
  25. package/es/{base-437d17f3.js → base-674a354a.js} +63 -64
  26. package/es/config-provider-419ffbf2.js +120 -0
  27. package/es/config-provider-68414290.cjs +3 -0
  28. package/es/dropdown-127a8c0d.cjs +1 -0
  29. package/es/{dropdown-634b5e27.js → dropdown-ce30ada6.js} +30 -31
  30. package/es/el-button-7b9f5933.js +745 -0
  31. package/es/el-button-c00975e1.cjs +1 -0
  32. package/es/{el-checkbox-group-e8fece80.js → el-checkbox-group-0554b352.js} +10 -10
  33. package/es/el-checkbox-group-7a313d34.cjs +1 -0
  34. package/es/{el-empty-bacc6613.js → el-empty-39b3aed7.js} +5 -5
  35. package/es/{el-empty-19ea04f4.cjs → el-empty-87154b6d.cjs} +1 -1
  36. package/es/el-form-item-7867f64d.cjs +12 -0
  37. package/es/{el-form-item-af1855f0.js → el-form-item-fc6f80ab.js} +78 -79
  38. package/es/el-input-2ff1628c.cjs +1 -0
  39. package/es/{el-input-4961b99f.js → el-input-d249ac86.js} +82 -84
  40. package/es/{el-input-number-610fc8ba.js → el-input-number-2066fbb7.js} +35 -36
  41. package/es/el-input-number-d6801a5c.cjs +1 -0
  42. package/es/{el-message-c3b3ac96.js → el-message-9859835d.js} +79 -81
  43. package/es/el-message-ffcf690c.cjs +1 -0
  44. package/es/el-overlay-91784be2.cjs +1 -0
  45. package/es/el-overlay-f0757cc4.js +525 -0
  46. package/es/el-popover-4db657e2.cjs +1 -0
  47. package/es/{el-popover-0aa071f2.js → el-popover-b7b43c1f.js} +18 -18
  48. package/es/el-scrollbar-35bac6b3.js +2452 -0
  49. package/es/el-scrollbar-ec09bbd3.cjs +1 -0
  50. package/es/el-select-0785c35a.cjs +1 -0
  51. package/es/{el-select-9381b156.js → el-select-bcbb7e55.js} +329 -333
  52. package/es/el-table-column-2478adf8.cjs +14 -0
  53. package/es/{el-table-column-55bffba5.js → el-table-column-c1e1a206.js} +346 -350
  54. package/es/el-tag-13ee17b3.cjs +1 -0
  55. package/es/el-tag-73372c6c.js +359 -0
  56. package/es/index-07b61d12.cjs +1 -0
  57. package/es/{index-39ec9741.js → index-45de4a12.js} +7 -7
  58. package/es/index-65b719a4.cjs +1 -0
  59. package/es/index-8b5fbc11.js +66 -0
  60. package/es/index-8c85d7c5.js +858 -0
  61. package/es/index-a49f4743.cjs +2 -0
  62. package/es/{scroll-387fcfdb.js → scroll-cb696ed2.js} +1 -1
  63. package/es/{scroll-41224831.cjs → scroll-cca17da0.cjs} +1 -1
  64. package/es/style.css +1 -1
  65. package/es/{zh-cn-ab9a583d.cjs → zh-cn-37af467d.cjs} +1 -1
  66. package/es/{zh-cn-eb9c2820.js → zh-cn-ef7d7220.js} +2 -2
  67. package/lib/bundle.js +1 -1
  68. package/lib/bundle.umd.cjs +206 -206
  69. package/lib/{index-9b8ff62a.js → index-24f8572c.js} +31450 -33319
  70. package/lib/{python-a9c3d9e5.js → python-2143eee4.js} +1 -1
  71. package/lib/style.css +1 -1
  72. package/package.json +1 -1
  73. package/packages/KlineBasic/components/KlineSub/index.vue +17 -3
  74. package/packages/KlineBasic/index.vue +2 -1
  75. package/packages/KlineBasic/utils.js +20 -2
  76. package/packages/index.ts +0 -2
  77. package/src/pages/KlineBasic/api.js +1 -1
  78. package/src/router/routes.ts +0 -5
  79. package/es/Kline.cjs +0 -1
  80. package/es/Kline.js +0 -1901
  81. package/es/_initCloneObject-441db749.cjs +0 -1
  82. package/es/castArray-4251bbe4.js +0 -10
  83. package/es/castArray-a45823fe.cjs +0 -1
  84. package/es/config-provider-55482a43.js +0 -47
  85. package/es/config-provider-7cdfca4d.cjs +0 -1
  86. package/es/debounce-ac30be50.js +0 -83
  87. package/es/debounce-b2ff12bd.cjs +0 -1
  88. package/es/dropdown-d7c59a21.cjs +0 -1
  89. package/es/el-button-196807af.cjs +0 -1
  90. package/es/el-button-e1665717.js +0 -235
  91. package/es/el-checkbox-group-492b95cc.cjs +0 -1
  92. package/es/el-form-item-5bdffd07.cjs +0 -12
  93. package/es/el-input-23e2bac3.cjs +0 -1
  94. package/es/el-input-number-40a81eb5.cjs +0 -1
  95. package/es/el-menu-item-78b858f2.cjs +0 -1
  96. package/es/el-menu-item-7d04c11a.js +0 -771
  97. package/es/el-message-d4df8136.cjs +0 -1
  98. package/es/el-overlay-12dd9b35.js +0 -519
  99. package/es/el-overlay-bc0790a2.cjs +0 -1
  100. package/es/el-popover-8a77e015.cjs +0 -1
  101. package/es/el-popper-50100766.js +0 -2262
  102. package/es/el-popper-746070ba.cjs +0 -1
  103. package/es/el-scrollbar-562d0595.js +0 -201
  104. package/es/el-scrollbar-d1c3e7f7.cjs +0 -1
  105. package/es/el-select-b162dffc.cjs +0 -1
  106. package/es/el-table-column-6d761fce.cjs +0 -14
  107. package/es/el-tag-985d9aff.js +0 -279
  108. package/es/el-tag-c51a6490.cjs +0 -1
  109. package/es/index-09e01b1d.js +0 -81
  110. package/es/index-0cb48e01.js +0 -306
  111. package/es/index-3bf8d597.cjs +0 -1
  112. package/es/index-657047bb.js +0 -513
  113. package/es/index-8a0b1c53.cjs +0 -3
  114. package/es/index-a387515d.cjs +0 -1
  115. package/es/index-a902a0d9.js +0 -59
  116. package/es/index-deb8de52.cjs +0 -1
  117. package/es/index-eea0bcb3.cjs +0 -1
  118. package/es/index.esm-8d9a2abe.js +0 -2432
  119. package/es/index.esm-94a95a2a.cjs +0 -3
  120. package/es/raf-8fc301fd.cjs +0 -1
  121. package/es/raf-b128c7b7.js +0 -6
  122. package/es/typescript-7ae59c4c.js +0 -4
  123. package/es/typescript-b63f8e83.cjs +0 -1
  124. package/es/use-form-common-props-1b84d8f4.cjs +0 -2
  125. package/es/use-form-common-props-f377e500.js +0 -587
  126. package/es/vnode-7dfd4ed5.js +0 -14
  127. package/es/vnode-7fbc61e1.cjs +0 -1
  128. package/packages/Kline/components/Contextmenu/index.vue +0 -110
  129. package/packages/Kline/components/Tips/index.vue +0 -40
  130. package/packages/Kline/componentsNew/KlineSlide/index.vue +0 -155
  131. package/packages/Kline/componentsNew/KlineSub/index.vue +0 -297
  132. package/packages/Kline/componentsNew/KlineTips/index.vue +0 -66
  133. package/packages/Kline/componentsNew/KlineUtils/index.vue +0 -84
  134. package/packages/Kline/componentsNew/Tips/index.vue +0 -33
  135. package/packages/Kline/formatKlineData.ts +0 -109
  136. package/packages/Kline/images/buy.svg +0 -1
  137. package/packages/Kline/images/pen.png +0 -0
  138. package/packages/Kline/images/sell.svg +0 -1
  139. package/packages/Kline/images/t.svg +0 -1
  140. package/packages/Kline/index.ts +0 -16
  141. package/packages/Kline/index.vue +0 -891
  142. package/packages/Kline/option.ts +0 -539
  143. package/packages/Kline/type.d.ts +0 -219
  144. package/packages/Kline/utils.ts +0 -682
  145. package/src/pages/Kline/api.ts +0 -127
  146. package/src/pages/Kline/components/MultiCycleSingleVariety.vue +0 -701
  147. package/src/pages/Kline/components/SingleCycleSingleVariety.vue +0 -924
  148. package/src/pages/Kline/index.vue +0 -90
@@ -0,0 +1,525 @@
1
+ import { isVNode as ee, defineComponent as K, createVNode as H, renderSlot as b, h as me, onMounted as le, watchEffect as ye, onBeforeUnmount as pe, inject as oe, computed as h, openBlock as R, createElementBlock as X, unref as o, normalizeClass as T, normalizeStyle as ae, createElementVNode as U, toDisplayString as Ce, withCtx as S, createBlock as j, resolveDynamicComponent as Ee, createCommentVNode as q, isRef as be, watch as J, onScopeDispose as ge, getCurrentInstance as Te, ref as O, nextTick as Se, useSlots as he, provide as we, Transition as Le, withDirectives as De, mergeProps as Ae, createSlots as Me, vShow as ke } from "vue";
2
+ import { J as G, N as F, b as Q, d as V, u as x, h as Z, e as Ie, g as Be, _ as re, y as Oe, t as Ne, i as ie, K as te, F as Ye, E as $e, D as Re, f as ne, r as _e, x as se, w as ze } from "./base-674a354a.js";
3
+ import { i as He, H as Ke, E as Ue, J as Pe, U as ue, l as Ve, K as Xe, L as Ge, D as Fe } from "./index-8c85d7c5.js";
4
+ import { g as We } from "./scroll-cb696ed2.js";
5
+ import { b as je, a as qe } from "./config-provider-419ffbf2.js";
6
+ var P = /* @__PURE__ */ ((e) => (e[e.TEXT = 1] = "TEXT", e[e.CLASS = 2] = "CLASS", e[e.STYLE = 4] = "STYLE", e[e.PROPS = 8] = "PROPS", e[e.FULL_PROPS = 16] = "FULL_PROPS", e[e.HYDRATE_EVENTS = 32] = "HYDRATE_EVENTS", e[e.STABLE_FRAGMENT = 64] = "STABLE_FRAGMENT", e[e.KEYED_FRAGMENT = 128] = "KEYED_FRAGMENT", e[e.UNKEYED_FRAGMENT = 256] = "UNKEYED_FRAGMENT", e[e.NEED_PATCH = 512] = "NEED_PATCH", e[e.DYNAMIC_SLOTS = 1024] = "DYNAMIC_SLOTS", e[e.HOISTED = -1] = "HOISTED", e[e.BAIL = -2] = "BAIL", e))(P || {});
7
+ const W = (e) => {
8
+ const s = G(e) ? e : [e], t = [];
9
+ return s.forEach((a) => {
10
+ var l;
11
+ G(a) ? t.push(...W(a)) : ee(a) && ((l = a.component) != null && l.subTree) ? t.push(a, ...W(a.component.subTree)) : ee(a) && G(a.children) ? t.push(...W(a.children)) : t.push(a);
12
+ }), t;
13
+ }, de = (e) => {
14
+ if (!e)
15
+ return { onClick: F, onMousedown: F, onMouseup: F };
16
+ let s = !1, t = !1;
17
+ return { onClick: (i) => {
18
+ s && t && e(i), s = t = !1;
19
+ }, onMousedown: (i) => {
20
+ s = i.target === i.currentTarget;
21
+ }, onMouseup: (i) => {
22
+ t = i.target === i.currentTarget;
23
+ } };
24
+ }, Je = Q({
25
+ mask: {
26
+ type: Boolean,
27
+ default: !0
28
+ },
29
+ customMaskEvent: Boolean,
30
+ overlayClass: {
31
+ type: V([
32
+ String,
33
+ Array,
34
+ Object
35
+ ])
36
+ },
37
+ zIndex: {
38
+ type: V([String, Number])
39
+ }
40
+ }), Ze = {
41
+ click: (e) => e instanceof MouseEvent
42
+ }, Qe = "overlay";
43
+ var xe = K({
44
+ name: "ElOverlay",
45
+ props: Je,
46
+ emits: Ze,
47
+ setup(e, { slots: s, emit: t }) {
48
+ const a = x(Qe), l = (r) => {
49
+ t("click", r);
50
+ }, { onClick: d, onMousedown: i, onMouseup: f } = de(e.customMaskEvent ? void 0 : l);
51
+ return () => e.mask ? H("div", {
52
+ class: [a.b(), e.overlayClass],
53
+ style: {
54
+ zIndex: e.zIndex
55
+ },
56
+ onClick: d,
57
+ onMousedown: i,
58
+ onMouseup: f
59
+ }, [b(s, "default")], P.STYLE | P.CLASS | P.PROPS, ["onClick", "onMouseup", "onMousedown"]) : me("div", {
60
+ class: e.overlayClass,
61
+ style: {
62
+ zIndex: e.zIndex,
63
+ position: "fixed",
64
+ top: "0px",
65
+ right: "0px",
66
+ bottom: "0px",
67
+ left: "0px"
68
+ }
69
+ }, [b(s, "default")]);
70
+ }
71
+ });
72
+ const eo = xe, ce = Symbol("dialogInjectionKey"), fe = Q({
73
+ center: Boolean,
74
+ alignCenter: Boolean,
75
+ closeIcon: {
76
+ type: He
77
+ },
78
+ draggable: Boolean,
79
+ overflow: Boolean,
80
+ fullscreen: Boolean,
81
+ headerClass: String,
82
+ bodyClass: String,
83
+ footerClass: String,
84
+ showClose: {
85
+ type: Boolean,
86
+ default: !0
87
+ },
88
+ title: {
89
+ type: String,
90
+ default: ""
91
+ },
92
+ ariaLevel: {
93
+ type: String,
94
+ default: "2"
95
+ }
96
+ }), oo = {
97
+ close: () => !0
98
+ }, to = (e, s, t, a) => {
99
+ let l = {
100
+ offsetX: 0,
101
+ offsetY: 0
102
+ };
103
+ const d = (c) => {
104
+ const y = c.clientX, E = c.clientY, { offsetX: C, offsetY: v } = l, m = e.value.getBoundingClientRect(), g = m.left, u = m.top, N = m.width, w = m.height, _ = document.documentElement.clientWidth, z = document.documentElement.clientHeight, Y = -g + C, L = -u + v, D = _ - g - N + C, A = z - u - w + v, M = (n) => {
105
+ let I = C + n.clientX - y, $ = v + n.clientY - E;
106
+ a != null && a.value || (I = Math.min(Math.max(I, Y), D), $ = Math.min(Math.max($, L), A)), l = {
107
+ offsetX: I,
108
+ offsetY: $
109
+ }, e.value && (e.value.style.transform = `translate(${Z(I)}, ${Z($)})`);
110
+ }, k = () => {
111
+ document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", k);
112
+ };
113
+ document.addEventListener("mousemove", M), document.addEventListener("mouseup", k);
114
+ }, i = () => {
115
+ s.value && e.value && s.value.addEventListener("mousedown", d);
116
+ }, f = () => {
117
+ s.value && e.value && s.value.removeEventListener("mousedown", d);
118
+ }, r = () => {
119
+ l = {
120
+ offsetX: 0,
121
+ offsetY: 0
122
+ }, e.value && (e.value.style.transform = "none");
123
+ };
124
+ return le(() => {
125
+ ye(() => {
126
+ t.value ? i() : f();
127
+ });
128
+ }), pe(() => {
129
+ f();
130
+ }), {
131
+ resetPosition: r
132
+ };
133
+ }, no = (...e) => (s) => {
134
+ e.forEach((t) => {
135
+ Ie(t) ? t(s) : t.value = s;
136
+ });
137
+ }, so = K({ name: "ElDialogContent" }), lo = /* @__PURE__ */ K({
138
+ ...so,
139
+ props: fe,
140
+ emits: oo,
141
+ setup(e, { expose: s }) {
142
+ const t = e, { t: a } = Be(), { Close: l } = Pe, { dialogRef: d, headerRef: i, bodyId: f, ns: r, style: c } = oe(ce), { focusTrapRef: y } = oe(Ke), E = h(() => [
143
+ r.b(),
144
+ r.is("fullscreen", t.fullscreen),
145
+ r.is("draggable", t.draggable),
146
+ r.is("align-center", t.alignCenter),
147
+ { [r.m("center")]: t.center }
148
+ ]), C = no(y, d), v = h(() => t.draggable), m = h(() => t.overflow), { resetPosition: g } = to(d, i, v, m);
149
+ return s({
150
+ resetPosition: g
151
+ }), (u, N) => (R(), X("div", {
152
+ ref: o(C),
153
+ class: T(o(E)),
154
+ style: ae(o(c)),
155
+ tabindex: "-1"
156
+ }, [
157
+ U("header", {
158
+ ref_key: "headerRef",
159
+ ref: i,
160
+ class: T([o(r).e("header"), u.headerClass, { "show-close": u.showClose }])
161
+ }, [
162
+ b(u.$slots, "header", {}, () => [
163
+ U("span", {
164
+ role: "heading",
165
+ "aria-level": u.ariaLevel,
166
+ class: T(o(r).e("title"))
167
+ }, Ce(u.title), 11, ["aria-level"])
168
+ ]),
169
+ u.showClose ? (R(), X("button", {
170
+ key: 0,
171
+ "aria-label": o(a)("el.dialog.close"),
172
+ class: T(o(r).e("headerbtn")),
173
+ type: "button",
174
+ onClick: (w) => u.$emit("close")
175
+ }, [
176
+ H(o(Ue), {
177
+ class: T(o(r).e("close"))
178
+ }, {
179
+ default: S(() => [
180
+ (R(), j(Ee(u.closeIcon || o(l))))
181
+ ]),
182
+ _: 1
183
+ }, 8, ["class"])
184
+ ], 10, ["aria-label", "onClick"])) : q("v-if", !0)
185
+ ], 2),
186
+ U("div", {
187
+ id: o(f),
188
+ class: T([o(r).e("body"), u.bodyClass])
189
+ }, [
190
+ b(u.$slots, "default")
191
+ ], 10, ["id"]),
192
+ u.$slots.footer ? (R(), X("footer", {
193
+ key: 0,
194
+ class: T([o(r).e("footer"), u.footerClass])
195
+ }, [
196
+ b(u.$slots, "footer")
197
+ ], 2)) : q("v-if", !0)
198
+ ], 6));
199
+ }
200
+ });
201
+ var ao = /* @__PURE__ */ re(lo, [["__file", "dialog-content.vue"]]);
202
+ const ro = Q({
203
+ ...fe,
204
+ appendToBody: Boolean,
205
+ appendTo: {
206
+ type: V([String, Object]),
207
+ default: "body"
208
+ },
209
+ beforeClose: {
210
+ type: V(Function)
211
+ },
212
+ destroyOnClose: Boolean,
213
+ closeOnClickModal: {
214
+ type: Boolean,
215
+ default: !0
216
+ },
217
+ closeOnPressEscape: {
218
+ type: Boolean,
219
+ default: !0
220
+ },
221
+ lockScroll: {
222
+ type: Boolean,
223
+ default: !0
224
+ },
225
+ modal: {
226
+ type: Boolean,
227
+ default: !0
228
+ },
229
+ openDelay: {
230
+ type: Number,
231
+ default: 0
232
+ },
233
+ closeDelay: {
234
+ type: Number,
235
+ default: 0
236
+ },
237
+ top: {
238
+ type: String
239
+ },
240
+ modelValue: Boolean,
241
+ modalClass: String,
242
+ headerClass: String,
243
+ bodyClass: String,
244
+ footerClass: String,
245
+ width: {
246
+ type: [String, Number]
247
+ },
248
+ zIndex: {
249
+ type: Number
250
+ },
251
+ trapFocus: Boolean,
252
+ headerAriaLevel: {
253
+ type: String,
254
+ default: "2"
255
+ }
256
+ }), io = {
257
+ open: () => !0,
258
+ opened: () => !0,
259
+ close: () => !0,
260
+ closed: () => !0,
261
+ [ue]: (e) => Oe(e),
262
+ openAutoFocus: () => !0,
263
+ closeAutoFocus: () => !0
264
+ }, uo = (e, s = {}) => {
265
+ be(e) || Ne("[useLockscreen]", "You need to pass a ref param to this function");
266
+ const t = s.ns || x("popup"), a = h(() => t.bm("parent", "hidden"));
267
+ if (!ie || te(document.body, a.value))
268
+ return;
269
+ let l = 0, d = !1, i = "0";
270
+ const f = () => {
271
+ setTimeout(() => {
272
+ typeof document > "u" || d && document && (document.body.style.width = i, Re(document.body, a.value));
273
+ }, 200);
274
+ };
275
+ J(e, (r) => {
276
+ if (!r) {
277
+ f();
278
+ return;
279
+ }
280
+ d = !te(document.body, a.value), d && (i = document.body.style.width, Ye(document.body, a.value)), l = We(t.namespace.value);
281
+ const c = document.documentElement.clientHeight < document.body.scrollHeight, y = $e(document.body, "overflowY");
282
+ l > 0 && (c || y === "scroll") && d && (document.body.style.width = `calc(100% - ${l}px)`);
283
+ }), ge(() => f());
284
+ }, co = (e, s) => {
285
+ var t;
286
+ const l = Te().emit, { nextZIndex: d } = Ve();
287
+ let i = "";
288
+ const f = ne(), r = ne(), c = O(!1), y = O(!1), E = O(!1), C = O((t = e.zIndex) != null ? t : d());
289
+ let v, m;
290
+ const g = je("namespace", _e), u = h(() => {
291
+ const p = {}, B = `--${g.value}-dialog`;
292
+ return e.fullscreen || (e.top && (p[`${B}-margin-top`] = e.top), e.width && (p[`${B}-width`] = Z(e.width))), p;
293
+ }), N = h(() => e.alignCenter ? { display: "flex" } : {});
294
+ function w() {
295
+ l("opened");
296
+ }
297
+ function _() {
298
+ l("closed"), l(ue, !1), e.destroyOnClose && (E.value = !1);
299
+ }
300
+ function z() {
301
+ l("close");
302
+ }
303
+ function Y() {
304
+ m == null || m(), v == null || v(), e.openDelay && e.openDelay > 0 ? { stop: v } = se(() => M(), e.openDelay) : M();
305
+ }
306
+ function L() {
307
+ v == null || v(), m == null || m(), e.closeDelay && e.closeDelay > 0 ? { stop: m } = se(() => k(), e.closeDelay) : k();
308
+ }
309
+ function D() {
310
+ function p(B) {
311
+ B || (y.value = !0, c.value = !1);
312
+ }
313
+ e.beforeClose ? e.beforeClose(p) : L();
314
+ }
315
+ function A() {
316
+ e.closeOnClickModal && D();
317
+ }
318
+ function M() {
319
+ ie && (c.value = !0);
320
+ }
321
+ function k() {
322
+ c.value = !1;
323
+ }
324
+ function n() {
325
+ l("openAutoFocus");
326
+ }
327
+ function I() {
328
+ l("closeAutoFocus");
329
+ }
330
+ function $(p) {
331
+ var B;
332
+ ((B = p.detail) == null ? void 0 : B.focusReason) === "pointer" && p.preventDefault();
333
+ }
334
+ e.lockScroll && uo(c);
335
+ function ve() {
336
+ e.closeOnPressEscape && D();
337
+ }
338
+ return J(() => e.modelValue, (p) => {
339
+ p ? (y.value = !1, Y(), E.value = !0, C.value = Xe(e.zIndex) ? d() : C.value++, Se(() => {
340
+ l("open"), s.value && (s.value.parentElement.scrollTop = 0, s.value.parentElement.scrollLeft = 0, s.value.scrollTop = 0);
341
+ })) : c.value && L();
342
+ }), J(() => e.fullscreen, (p) => {
343
+ s.value && (p ? (i = s.value.style.transform, s.value.style.transform = "") : s.value.style.transform = i);
344
+ }), le(() => {
345
+ e.modelValue && (c.value = !0, E.value = !0, Y());
346
+ }), {
347
+ afterEnter: w,
348
+ afterLeave: _,
349
+ beforeLeave: z,
350
+ handleClose: D,
351
+ onModalClick: A,
352
+ close: L,
353
+ doClose: k,
354
+ onOpenAutoFocus: n,
355
+ onCloseAutoFocus: I,
356
+ onCloseRequested: ve,
357
+ onFocusoutPrevented: $,
358
+ titleId: f,
359
+ bodyId: r,
360
+ closed: y,
361
+ style: u,
362
+ overlayDialogStyle: N,
363
+ rendered: E,
364
+ visible: c,
365
+ zIndex: C
366
+ };
367
+ }, fo = K({
368
+ name: "ElDialog",
369
+ inheritAttrs: !1
370
+ }), vo = /* @__PURE__ */ K({
371
+ ...fo,
372
+ props: ro,
373
+ emits: io,
374
+ setup(e, { expose: s }) {
375
+ const t = e, a = he();
376
+ qe({
377
+ scope: "el-dialog",
378
+ from: "the title slot",
379
+ replacement: "the header slot",
380
+ version: "3.0.0",
381
+ ref: "https://element-plus.org/en-US/component/dialog.html#slots"
382
+ }, h(() => !!a.title));
383
+ const l = x("dialog"), d = O(), i = O(), f = O(), {
384
+ visible: r,
385
+ titleId: c,
386
+ bodyId: y,
387
+ style: E,
388
+ overlayDialogStyle: C,
389
+ rendered: v,
390
+ zIndex: m,
391
+ afterEnter: g,
392
+ afterLeave: u,
393
+ beforeLeave: N,
394
+ handleClose: w,
395
+ onModalClick: _,
396
+ onOpenAutoFocus: z,
397
+ onCloseAutoFocus: Y,
398
+ onCloseRequested: L,
399
+ onFocusoutPrevented: D
400
+ } = co(t, d);
401
+ we(ce, {
402
+ dialogRef: d,
403
+ headerRef: i,
404
+ bodyId: y,
405
+ ns: l,
406
+ rendered: v,
407
+ style: E
408
+ });
409
+ const A = de(_), M = h(() => t.draggable && !t.fullscreen);
410
+ return s({
411
+ visible: r,
412
+ dialogContentRef: f,
413
+ resetPosition: () => {
414
+ var n;
415
+ (n = f.value) == null || n.resetPosition();
416
+ }
417
+ }), (n, I) => (R(), j(o(Ge), {
418
+ to: n.appendTo,
419
+ disabled: n.appendTo !== "body" ? !1 : !n.appendToBody
420
+ }, {
421
+ default: S(() => [
422
+ H(Le, {
423
+ name: "dialog-fade",
424
+ onAfterEnter: o(g),
425
+ onAfterLeave: o(u),
426
+ onBeforeLeave: o(N),
427
+ persisted: ""
428
+ }, {
429
+ default: S(() => [
430
+ De(H(o(eo), {
431
+ "custom-mask-event": "",
432
+ mask: n.modal,
433
+ "overlay-class": n.modalClass,
434
+ "z-index": o(m)
435
+ }, {
436
+ default: S(() => [
437
+ U("div", {
438
+ role: "dialog",
439
+ "aria-modal": "true",
440
+ "aria-label": n.title || void 0,
441
+ "aria-labelledby": n.title ? void 0 : o(c),
442
+ "aria-describedby": o(y),
443
+ class: T(`${o(l).namespace.value}-overlay-dialog`),
444
+ style: ae(o(C)),
445
+ onClick: o(A).onClick,
446
+ onMousedown: o(A).onMousedown,
447
+ onMouseup: o(A).onMouseup
448
+ }, [
449
+ H(o(Fe), {
450
+ loop: "",
451
+ trapped: o(r),
452
+ "focus-start-el": "container",
453
+ onFocusAfterTrapped: o(z),
454
+ onFocusAfterReleased: o(Y),
455
+ onFocusoutPrevented: o(D),
456
+ onReleaseRequested: o(L)
457
+ }, {
458
+ default: S(() => [
459
+ o(v) ? (R(), j(ao, Ae({
460
+ key: 0,
461
+ ref_key: "dialogContentRef",
462
+ ref: f
463
+ }, n.$attrs, {
464
+ center: n.center,
465
+ "align-center": n.alignCenter,
466
+ "close-icon": n.closeIcon,
467
+ draggable: o(M),
468
+ overflow: n.overflow,
469
+ fullscreen: n.fullscreen,
470
+ "header-class": n.headerClass,
471
+ "body-class": n.bodyClass,
472
+ "footer-class": n.footerClass,
473
+ "show-close": n.showClose,
474
+ title: n.title,
475
+ "aria-level": n.headerAriaLevel,
476
+ onClose: o(w)
477
+ }), Me({
478
+ header: S(() => [
479
+ n.$slots.title ? b(n.$slots, "title", { key: 1 }) : b(n.$slots, "header", {
480
+ key: 0,
481
+ close: o(w),
482
+ titleId: o(c),
483
+ titleClass: o(l).e("title")
484
+ })
485
+ ]),
486
+ default: S(() => [
487
+ b(n.$slots, "default")
488
+ ]),
489
+ _: 2
490
+ }, [
491
+ n.$slots.footer ? {
492
+ name: "footer",
493
+ fn: S(() => [
494
+ b(n.$slots, "footer")
495
+ ])
496
+ } : void 0
497
+ ]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) : q("v-if", !0)
498
+ ]),
499
+ _: 3
500
+ }, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
501
+ ], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
502
+ ]),
503
+ _: 3
504
+ }, 8, ["mask", "overlay-class", "z-index"]), [
505
+ [ke, o(r)]
506
+ ])
507
+ ]),
508
+ _: 3
509
+ }, 8, ["onAfterEnter", "onAfterLeave", "onBeforeLeave"])
510
+ ]),
511
+ _: 3
512
+ }, 8, ["to", "disabled"]));
513
+ }
514
+ });
515
+ var mo = /* @__PURE__ */ re(vo, [["__file", "dialog.vue"]]);
516
+ const go = ze(mo);
517
+ export {
518
+ go as E,
519
+ eo as a,
520
+ uo as b,
521
+ de as c,
522
+ no as d,
523
+ W as f,
524
+ to as u
525
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),l=require("./el-button-c00975e1.cjs"),s=require("./index-a49f4743.cjs"),p=require("./el-scrollbar-ec09bbd3.cjs"),o=require("./base-00ce90ec.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:s.iconPropType,default:()=>s.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"}),S=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(),d=()=>{var t,c;(c=(t=f.value)==null?void 0:t.onClose)==null||c.call(t)},B=e.computed(()=>({width:o.addUnit(i.width)})),m=t=>{a("confirm",t),d()},y=t=>{a("cancel",t),d()},T=e.computed(()=>i.confirmButtonText||u("el.popconfirm.confirmButtonText")),C=e.computed(()=>i.cancelButtonText||u("el.popconfirm.cancelButtonText"));return(t,c)=>(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(s.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:m,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: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 k=o._export_sfc(S,[["__file","popconfirm.vue"]]);const E=o.withInstall(k);exports.ElPopconfirm=E;
@@ -1,25 +1,25 @@
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-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
- const G = R({
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 u, toDisplayString as m, renderSlot as C, createVNode as E } from "vue";
2
+ import { b as P, E as b } from "./el-button-7b9f5933.js";
3
+ import { i as _, q, E as A } from "./index-8c85d7c5.js";
4
+ import { a as S, E as D } from "./el-scrollbar-35bac6b3.js";
5
+ import { b as M, g as R, u as L, h as U, _ as j, w as F } from "./base-674a354a.js";
6
+ const G = M({
7
7
  title: String,
8
8
  confirmButtonText: String,
9
9
  cancelButtonText: String,
10
10
  confirmButtonType: {
11
11
  type: String,
12
- values: b,
12
+ values: P,
13
13
  default: "primary"
14
14
  },
15
15
  cancelButtonType: {
16
16
  type: String,
17
- values: b,
17
+ values: P,
18
18
  default: "text"
19
19
  },
20
20
  icon: {
21
21
  type: _,
22
- default: () => A
22
+ default: () => q
23
23
  },
24
24
  iconColor: {
25
25
  type: String,
@@ -49,17 +49,17 @@ const G = R({
49
49
  props: G,
50
50
  emits: H,
51
51
  setup(o, { emit: d }) {
52
- const s = o, { t: y } = j(), n = q("popconfirm"), T = $(), B = () => {
52
+ const s = o, { t: y } = R(), n = L("popconfirm"), T = x(), B = () => {
53
53
  var e, i;
54
54
  (i = (e = T.value) == null ? void 0 : e.onClose) == null || i.call(e);
55
55
  }, N = p(() => ({
56
- width: L(s.width)
56
+ width: U(s.width)
57
57
  })), v = (e) => {
58
58
  d("confirm", e), B();
59
59
  }, h = (e) => {
60
60
  d("cancel", e), B();
61
- }, w = p(() => s.confirmButtonText || y("el.popconfirm.confirmButtonText")), x = p(() => s.cancelButtonText || y("el.popconfirm.cancelButtonText"));
62
- return (e, i) => (a(), c(t(M), z({
61
+ }, w = p(() => s.confirmButtonText || y("el.popconfirm.confirmButtonText")), $ = p(() => s.cancelButtonText || y("el.popconfirm.cancelButtonText"));
62
+ return (e, i) => (a(), c(t(D), z({
63
63
  ref_key: "tooltipRef",
64
64
  ref: T,
65
65
  trigger: "click",
@@ -79,7 +79,7 @@ const G = R({
79
79
  f("div", {
80
80
  class: l(t(n).e("main"))
81
81
  }, [
82
- !e.hideIcon && e.icon ? (a(), c(t(D), {
82
+ !e.hideIcon && e.icon ? (a(), c(t(A), {
83
83
  key: 0,
84
84
  class: l(t(n).e("icon")),
85
85
  style: I({ color: e.iconColor })
@@ -98,18 +98,18 @@ const G = R({
98
98
  confirm: v,
99
99
  cancel: h
100
100
  }, () => [
101
- E(t(P), {
101
+ E(t(b), {
102
102
  size: "small",
103
103
  type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
104
104
  text: e.cancelButtonType === "text",
105
105
  onClick: h
106
106
  }, {
107
107
  default: r(() => [
108
- u(m(t(x)), 1)
108
+ u(m(t($)), 1)
109
109
  ]),
110
110
  _: 1
111
111
  }, 8, ["type", "text"]),
112
- E(t(P), {
112
+ E(t(b), {
113
113
  size: "small",
114
114
  type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
115
115
  text: e.confirmButtonType === "text",
@@ -131,7 +131,7 @@ const G = R({
131
131
  }, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]));
132
132
  }
133
133
  });
134
- var O = /* @__PURE__ */ U(K, [["__file", "popconfirm.vue"]]);
134
+ var O = /* @__PURE__ */ j(K, [["__file", "popconfirm.vue"]]);
135
135
  const ee = F(O);
136
136
  export {
137
137
  ee as E