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,521 +0,0 @@
1
- import { defineComponent as X, createVNode as R, renderSlot as b, h as de, onMounted as te, watchEffect as fe, onBeforeUnmount as me, inject as Q, computed as k, openBlock as N, createElementBlock as V, unref as o, normalizeClass as E, normalizeStyle as le, createElementVNode as H, toDisplayString as ve, withCtx as w, createBlock as K, resolveDynamicComponent as ye, createCommentVNode as q, isRef as pe, watch as Z, onScopeDispose as ge, getCurrentInstance as Ce, ref as F, nextTick as be, useSlots as he, provide as Ee, Transition as we, withDirectives as ke, mergeProps as Se, createSlots as Me, vShow as Te } from "vue";
2
- import { N as W, b as J, d as U, u as _, y as G, g as Be, _ as ne, c as De, t as Ie, h as se, n as x, m as Le, v as Pe, r as Fe, C as Oe, o as ee, w as Ae } from "./base-b56cf478.js";
3
- import { P as j } from "./vnode-0fd3003d.js";
4
- import { F as $e, U as ae, i as Ne, b as ze, a as Ye } from "./index-733cd68a.js";
5
- import { E as Re } from "./index-e5fe37a4.js";
6
- import { i as Xe, C as He, n as Ue } from "./use-form-common-props-04fb0752.js";
7
- import { a as Ve, u as oe } from "./index-57a7323a.js";
8
- import { g as We } from "./scroll-4fe7a76f.js";
9
- import { b as je, a as Ke } from "./index-0baeaec7.js";
10
- const re = (e) => {
11
- if (!e)
12
- return { onClick: W, onMousedown: W, onMouseup: W };
13
- let l = !1, n = !1;
14
- return { onClick: (r) => {
15
- l && n && e(r), l = n = !1;
16
- }, onMousedown: (r) => {
17
- l = r.target === r.currentTarget;
18
- }, onMouseup: (r) => {
19
- n = r.target === r.currentTarget;
20
- } };
21
- }, qe = J({
22
- mask: {
23
- type: Boolean,
24
- default: !0
25
- },
26
- customMaskEvent: Boolean,
27
- overlayClass: {
28
- type: U([
29
- String,
30
- Array,
31
- Object
32
- ])
33
- },
34
- zIndex: {
35
- type: U([String, Number])
36
- }
37
- }), Ze = {
38
- click: (e) => e instanceof MouseEvent
39
- }, Ge = "overlay";
40
- var Je = X({
41
- name: "ElOverlay",
42
- props: qe,
43
- emits: Ze,
44
- setup(e, { slots: l, emit: n }) {
45
- const d = _(Ge), s = (a) => {
46
- n("click", a);
47
- }, { onClick: u, onMousedown: r, onMouseup: f } = re(e.customMaskEvent ? void 0 : s);
48
- return () => e.mask ? R("div", {
49
- class: [d.b(), e.overlayClass],
50
- style: {
51
- zIndex: e.zIndex
52
- },
53
- onClick: u,
54
- onMousedown: r,
55
- onMouseup: f
56
- }, [b(l, "default")], j.STYLE | j.CLASS | j.PROPS, ["onClick", "onMouseup", "onMousedown"]) : de("div", {
57
- class: e.overlayClass,
58
- style: {
59
- zIndex: e.zIndex,
60
- position: "fixed",
61
- top: "0px",
62
- right: "0px",
63
- bottom: "0px",
64
- left: "0px"
65
- }
66
- }, [b(l, "default")]);
67
- }
68
- });
69
- const _e = Je, ie = Symbol("dialogInjectionKey"), ue = J({
70
- center: Boolean,
71
- alignCenter: Boolean,
72
- closeIcon: {
73
- type: Xe
74
- },
75
- draggable: Boolean,
76
- overflow: Boolean,
77
- fullscreen: Boolean,
78
- headerClass: String,
79
- bodyClass: String,
80
- footerClass: String,
81
- showClose: {
82
- type: Boolean,
83
- default: !0
84
- },
85
- title: {
86
- type: String,
87
- default: ""
88
- },
89
- ariaLevel: {
90
- type: String,
91
- default: "2"
92
- }
93
- }), Qe = {
94
- close: () => !0
95
- }, xe = (e, l, n, d) => {
96
- let s = {
97
- offsetX: 0,
98
- offsetY: 0
99
- };
100
- const u = (c) => {
101
- const y = c.clientX, C = c.clientY, { offsetX: g, offsetY: m } = s, v = e.value.getBoundingClientRect(), h = v.left, i = v.top, O = v.width, S = v.height, z = document.documentElement.clientWidth, Y = document.documentElement.clientHeight, A = -h + g, M = -i + m, T = z - h - O + g, B = Y - i - S + m, D = (t) => {
102
- let L = g + t.clientX - y, $ = m + t.clientY - C;
103
- d != null && d.value || (L = Math.min(Math.max(L, A), T), $ = Math.min(Math.max($, M), B)), s = {
104
- offsetX: L,
105
- offsetY: $
106
- }, e.value && (e.value.style.transform = `translate(${G(L)}, ${G($)})`);
107
- }, I = () => {
108
- document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", I);
109
- };
110
- document.addEventListener("mousemove", D), document.addEventListener("mouseup", I);
111
- }, r = () => {
112
- l.value && e.value && l.value.addEventListener("mousedown", u);
113
- }, f = () => {
114
- l.value && e.value && l.value.removeEventListener("mousedown", u);
115
- }, a = () => {
116
- s = {
117
- offsetX: 0,
118
- offsetY: 0
119
- }, e.value && (e.value.style.transform = "none");
120
- };
121
- return te(() => {
122
- fe(() => {
123
- n.value ? r() : f();
124
- });
125
- }), me(() => {
126
- f();
127
- }), {
128
- resetPosition: a
129
- };
130
- }, eo = (...e) => (l) => {
131
- e.forEach((n) => {
132
- Be(n) ? n(l) : n.value = l;
133
- });
134
- }, oo = X({ name: "ElDialogContent" }), to = /* @__PURE__ */ X({
135
- ...oo,
136
- props: ue,
137
- emits: Qe,
138
- setup(e, { expose: l }) {
139
- const n = e, { t: d } = Ve(), { Close: s } = He, { dialogRef: u, headerRef: r, bodyId: f, ns: a, style: c } = Q(ie), { focusTrapRef: y } = Q($e), C = k(() => [
140
- a.b(),
141
- a.is("fullscreen", n.fullscreen),
142
- a.is("draggable", n.draggable),
143
- a.is("align-center", n.alignCenter),
144
- { [a.m("center")]: n.center }
145
- ]), g = eo(y, u), m = k(() => n.draggable), v = k(() => n.overflow), { resetPosition: h } = xe(u, r, m, v);
146
- return l({
147
- resetPosition: h
148
- }), (i, O) => (N(), V("div", {
149
- ref: o(g),
150
- class: E(o(C)),
151
- style: le(o(c)),
152
- tabindex: "-1"
153
- }, [
154
- H("header", {
155
- ref_key: "headerRef",
156
- ref: r,
157
- class: E([o(a).e("header"), i.headerClass, { "show-close": i.showClose }])
158
- }, [
159
- b(i.$slots, "header", {}, () => [
160
- H("span", {
161
- role: "heading",
162
- "aria-level": i.ariaLevel,
163
- class: E(o(a).e("title"))
164
- }, ve(i.title), 11, ["aria-level"])
165
- ]),
166
- i.showClose ? (N(), V("button", {
167
- key: 0,
168
- "aria-label": o(d)("el.dialog.close"),
169
- class: E(o(a).e("headerbtn")),
170
- type: "button",
171
- onClick: (S) => i.$emit("close")
172
- }, [
173
- R(o(Re), {
174
- class: E(o(a).e("close"))
175
- }, {
176
- default: w(() => [
177
- (N(), K(ye(i.closeIcon || o(s))))
178
- ]),
179
- _: 1
180
- }, 8, ["class"])
181
- ], 10, ["aria-label", "onClick"])) : q("v-if", !0)
182
- ], 2),
183
- H("div", {
184
- id: o(f),
185
- class: E([o(a).e("body"), i.bodyClass])
186
- }, [
187
- b(i.$slots, "default")
188
- ], 10, ["id"]),
189
- i.$slots.footer ? (N(), V("footer", {
190
- key: 0,
191
- class: E([o(a).e("footer"), i.footerClass])
192
- }, [
193
- b(i.$slots, "footer")
194
- ], 2)) : q("v-if", !0)
195
- ], 6));
196
- }
197
- });
198
- var lo = /* @__PURE__ */ ne(to, [["__file", "dialog-content.vue"]]);
199
- const no = J({
200
- ...ue,
201
- appendToBody: Boolean,
202
- appendTo: {
203
- type: U([String, Object]),
204
- default: "body"
205
- },
206
- beforeClose: {
207
- type: U(Function)
208
- },
209
- destroyOnClose: Boolean,
210
- closeOnClickModal: {
211
- type: Boolean,
212
- default: !0
213
- },
214
- closeOnPressEscape: {
215
- type: Boolean,
216
- default: !0
217
- },
218
- lockScroll: {
219
- type: Boolean,
220
- default: !0
221
- },
222
- modal: {
223
- type: Boolean,
224
- default: !0
225
- },
226
- openDelay: {
227
- type: Number,
228
- default: 0
229
- },
230
- closeDelay: {
231
- type: Number,
232
- default: 0
233
- },
234
- top: {
235
- type: String
236
- },
237
- modelValue: Boolean,
238
- modalClass: String,
239
- headerClass: String,
240
- bodyClass: String,
241
- footerClass: String,
242
- width: {
243
- type: [String, Number]
244
- },
245
- zIndex: {
246
- type: Number
247
- },
248
- trapFocus: Boolean,
249
- headerAriaLevel: {
250
- type: String,
251
- default: "2"
252
- }
253
- }), so = {
254
- open: () => !0,
255
- opened: () => !0,
256
- close: () => !0,
257
- closed: () => !0,
258
- [ae]: (e) => De(e),
259
- openAutoFocus: () => !0,
260
- closeAutoFocus: () => !0
261
- }, ao = (e, l = {}) => {
262
- pe(e) || Ie("[useLockscreen]", "You need to pass a ref param to this function");
263
- const n = l.ns || _("popup"), d = k(() => n.bm("parent", "hidden"));
264
- if (!se || x(document.body, d.value))
265
- return;
266
- let s = 0, u = !1, r = "0";
267
- const f = () => {
268
- setTimeout(() => {
269
- typeof document > "u" || u && document && (document.body.style.width = r, Fe(document.body, d.value));
270
- }, 200);
271
- };
272
- Z(e, (a) => {
273
- if (!a) {
274
- f();
275
- return;
276
- }
277
- u = !x(document.body, d.value), u && (r = document.body.style.width, Le(document.body, d.value)), s = We(n.namespace.value);
278
- const c = document.documentElement.clientHeight < document.body.scrollHeight, y = Pe(document.body, "overflowY");
279
- s > 0 && (c || y === "scroll") && u && (document.body.style.width = `calc(100% - ${s}px)`);
280
- }), ge(() => f());
281
- }, ro = (e, l) => {
282
- var n;
283
- const s = Ce().emit, { nextZIndex: u } = Ue();
284
- let r = "";
285
- const f = oe(), a = oe(), c = F(!1), y = F(!1), C = F(!1), g = F((n = e.zIndex) != null ? n : u());
286
- let m, v;
287
- const h = je("namespace", Oe), i = k(() => {
288
- const p = {}, P = `--${h.value}-dialog`;
289
- return e.fullscreen || (e.top && (p[`${P}-margin-top`] = e.top), e.width && (p[`${P}-width`] = G(e.width))), p;
290
- }), O = k(() => e.alignCenter ? { display: "flex" } : {});
291
- function S() {
292
- s("opened");
293
- }
294
- function z() {
295
- s("closed"), s(ae, !1), e.destroyOnClose && (C.value = !1);
296
- }
297
- function Y() {
298
- s("close");
299
- }
300
- function A() {
301
- v == null || v(), m == null || m(), e.openDelay && e.openDelay > 0 ? { stop: m } = ee(() => D(), e.openDelay) : D();
302
- }
303
- function M() {
304
- m == null || m(), v == null || v(), e.closeDelay && e.closeDelay > 0 ? { stop: v } = ee(() => I(), e.closeDelay) : I();
305
- }
306
- function T() {
307
- function p(P) {
308
- P || (y.value = !0, c.value = !1);
309
- }
310
- e.beforeClose ? e.beforeClose(p) : M();
311
- }
312
- function B() {
313
- e.closeOnClickModal && T();
314
- }
315
- function D() {
316
- se && (c.value = !0);
317
- }
318
- function I() {
319
- c.value = !1;
320
- }
321
- function t() {
322
- s("openAutoFocus");
323
- }
324
- function L() {
325
- s("closeAutoFocus");
326
- }
327
- function $(p) {
328
- var P;
329
- ((P = p.detail) == null ? void 0 : P.focusReason) === "pointer" && p.preventDefault();
330
- }
331
- e.lockScroll && ao(c);
332
- function ce() {
333
- e.closeOnPressEscape && T();
334
- }
335
- return Z(() => e.modelValue, (p) => {
336
- p ? (y.value = !1, A(), C.value = !0, g.value = Ne(e.zIndex) ? u() : g.value++, be(() => {
337
- s("open"), l.value && (l.value.parentElement.scrollTop = 0, l.value.parentElement.scrollLeft = 0, l.value.scrollTop = 0);
338
- })) : c.value && M();
339
- }), Z(() => e.fullscreen, (p) => {
340
- l.value && (p ? (r = l.value.style.transform, l.value.style.transform = "") : l.value.style.transform = r);
341
- }), te(() => {
342
- e.modelValue && (c.value = !0, C.value = !0, A());
343
- }), {
344
- afterEnter: S,
345
- afterLeave: z,
346
- beforeLeave: Y,
347
- handleClose: T,
348
- onModalClick: B,
349
- close: M,
350
- doClose: I,
351
- onOpenAutoFocus: t,
352
- onCloseAutoFocus: L,
353
- onCloseRequested: ce,
354
- onFocusoutPrevented: $,
355
- titleId: f,
356
- bodyId: a,
357
- closed: y,
358
- style: i,
359
- overlayDialogStyle: O,
360
- rendered: C,
361
- visible: c,
362
- zIndex: g
363
- };
364
- }, io = X({
365
- name: "ElDialog",
366
- inheritAttrs: !1
367
- }), uo = /* @__PURE__ */ X({
368
- ...io,
369
- props: no,
370
- emits: so,
371
- setup(e, { expose: l }) {
372
- const n = e, d = he();
373
- Ke({
374
- scope: "el-dialog",
375
- from: "the title slot",
376
- replacement: "the header slot",
377
- version: "3.0.0",
378
- ref: "https://element-plus.org/en-US/component/dialog.html#slots"
379
- }, k(() => !!d.title));
380
- const s = _("dialog"), u = F(), r = F(), f = F(), {
381
- visible: a,
382
- titleId: c,
383
- bodyId: y,
384
- style: C,
385
- overlayDialogStyle: g,
386
- rendered: m,
387
- zIndex: v,
388
- afterEnter: h,
389
- afterLeave: i,
390
- beforeLeave: O,
391
- handleClose: S,
392
- onModalClick: z,
393
- onOpenAutoFocus: Y,
394
- onCloseAutoFocus: A,
395
- onCloseRequested: M,
396
- onFocusoutPrevented: T
397
- } = ro(n, u);
398
- Ee(ie, {
399
- dialogRef: u,
400
- headerRef: r,
401
- bodyId: y,
402
- ns: s,
403
- rendered: m,
404
- style: C
405
- });
406
- const B = re(z), D = k(() => n.draggable && !n.fullscreen);
407
- return l({
408
- visible: a,
409
- dialogContentRef: f,
410
- resetPosition: () => {
411
- var t;
412
- (t = f.value) == null || t.resetPosition();
413
- }
414
- }), (t, L) => (N(), K(o(ze), {
415
- to: t.appendTo,
416
- disabled: t.appendTo !== "body" ? !1 : !t.appendToBody
417
- }, {
418
- default: w(() => [
419
- R(we, {
420
- name: "dialog-fade",
421
- onAfterEnter: o(h),
422
- onAfterLeave: o(i),
423
- onBeforeLeave: o(O),
424
- persisted: ""
425
- }, {
426
- default: w(() => [
427
- ke(R(o(_e), {
428
- "custom-mask-event": "",
429
- mask: t.modal,
430
- "overlay-class": t.modalClass,
431
- "z-index": o(v)
432
- }, {
433
- default: w(() => [
434
- H("div", {
435
- role: "dialog",
436
- "aria-modal": "true",
437
- "aria-label": t.title || void 0,
438
- "aria-labelledby": t.title ? void 0 : o(c),
439
- "aria-describedby": o(y),
440
- class: E(`${o(s).namespace.value}-overlay-dialog`),
441
- style: le(o(g)),
442
- onClick: o(B).onClick,
443
- onMousedown: o(B).onMousedown,
444
- onMouseup: o(B).onMouseup
445
- }, [
446
- R(o(Ye), {
447
- loop: "",
448
- trapped: o(a),
449
- "focus-start-el": "container",
450
- onFocusAfterTrapped: o(Y),
451
- onFocusAfterReleased: o(A),
452
- onFocusoutPrevented: o(T),
453
- onReleaseRequested: o(M)
454
- }, {
455
- default: w(() => [
456
- o(m) ? (N(), K(lo, Se({
457
- key: 0,
458
- ref_key: "dialogContentRef",
459
- ref: f
460
- }, t.$attrs, {
461
- center: t.center,
462
- "align-center": t.alignCenter,
463
- "close-icon": t.closeIcon,
464
- draggable: o(D),
465
- overflow: t.overflow,
466
- fullscreen: t.fullscreen,
467
- "header-class": t.headerClass,
468
- "body-class": t.bodyClass,
469
- "footer-class": t.footerClass,
470
- "show-close": t.showClose,
471
- title: t.title,
472
- "aria-level": t.headerAriaLevel,
473
- onClose: o(S)
474
- }), Me({
475
- header: w(() => [
476
- t.$slots.title ? b(t.$slots, "title", { key: 1 }) : b(t.$slots, "header", {
477
- key: 0,
478
- close: o(S),
479
- titleId: o(c),
480
- titleClass: o(s).e("title")
481
- })
482
- ]),
483
- default: w(() => [
484
- b(t.$slots, "default")
485
- ]),
486
- _: 2
487
- }, [
488
- t.$slots.footer ? {
489
- name: "footer",
490
- fn: w(() => [
491
- b(t.$slots, "footer")
492
- ])
493
- } : void 0
494
- ]), 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)
495
- ]),
496
- _: 3
497
- }, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
498
- ], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
499
- ]),
500
- _: 3
501
- }, 8, ["mask", "overlay-class", "z-index"]), [
502
- [Te, o(a)]
503
- ])
504
- ]),
505
- _: 3
506
- }, 8, ["onAfterEnter", "onAfterLeave", "onBeforeLeave"])
507
- ]),
508
- _: 3
509
- }, 8, ["to", "disabled"]));
510
- }
511
- });
512
- var co = /* @__PURE__ */ ne(uo, [["__file", "dialog.vue"]]);
513
- const Eo = Ae(co);
514
- export {
515
- Eo as E,
516
- _e as a,
517
- ao as b,
518
- re as c,
519
- eo as d,
520
- xe as u
521
- };