st-comp 0.0.178 → 0.0.180
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.
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +3 -3
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +29 -33
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -18
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +25 -30
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +457 -419
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +13 -16
- package/es/KlinePlus.cjs +3 -3
- package/es/KlinePlus.js +140 -142
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +274 -276
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +21 -23
- package/es/User.cjs +1 -1
- package/es/User.js +472 -482
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +440 -2878
- package/es/VarietySearch.cjs +12 -12
- package/es/VarietySearch.js +1199 -1176
- package/es/VirtualTable.cjs +1 -13
- package/es/VirtualTable.js +1547 -1567
- package/es/{_initCloneObject-da90eef0.js → _initCloneObject-346b7ee2.js} +25 -26
- package/es/_initCloneObject-e2f0deb9.cjs +1 -0
- package/es/base-62a70f61.js +288 -0
- package/es/base-ef747d02.cjs +5 -0
- package/es/config-provider-178bb43c.cjs +1 -0
- package/es/config-provider-2e733cae.js +58 -0
- package/es/dayjs.min-2c20abe6.cjs +1 -0
- package/es/{dayjs.min-54a4e095.js → dayjs.min-8313b006.js} +96 -93
- package/es/{debounce-9e323221.cjs → debounce-0b77a317.cjs} +1 -1
- package/es/{debounce-3cec4646.js → debounce-5f2ec4be.js} +19 -19
- package/es/{dropdown-82b80e8b.js → dropdown-d06edf54.js} +49 -39
- package/es/dropdown-f2fec683.cjs +1 -0
- package/es/el-button-5b08c08a.js +272 -0
- package/es/el-button-fc46a173.cjs +1 -0
- package/es/el-dialog-0b7166c9.cjs +1 -0
- package/es/el-dialog-d8d0da7a.js +276 -0
- package/es/{el-divider-fd2b4e2e.js → el-divider-2f300113.js} +1 -1
- package/es/{el-divider-40c50ce7.cjs → el-divider-4713d74c.cjs} +1 -1
- package/es/{el-empty-412fc297.js → el-empty-87a86f30.js} +57 -80
- package/es/el-empty-bb2b0235.cjs +1 -0
- package/es/el-form-item-caffd133.cjs +12 -0
- package/es/el-form-item-ff9c7d98.js +1267 -0
- package/es/el-input-6db30c8c.js +531 -0
- package/es/el-input-9c912678.cjs +1 -0
- package/es/el-input-number-05f150e5.js +311 -0
- package/es/el-input-number-6fe73563.cjs +1 -0
- package/es/el-loading-8514feaa.cjs +1 -0
- package/es/el-loading-93842445.js +203 -0
- package/es/el-menu-item-7a57c1be.cjs +1 -0
- package/es/el-menu-item-a886fbdd.js +768 -0
- package/es/el-message-8aa674f2.js +406 -0
- package/es/el-message-aad5b42b.cjs +1 -0
- package/es/el-message-box-2b6b2b68.js +550 -0
- package/es/el-message-box-53f355d7.cjs +1 -0
- package/es/el-overlay-540b2a02.js +324 -0
- package/es/el-overlay-96630a2e.cjs +1 -0
- package/es/el-popconfirm-2afdf6fb.cjs +1 -0
- package/es/el-popconfirm-c18d8035.js +162 -0
- package/es/el-popper-544fd77e.js +2412 -0
- package/es/el-popper-73466d7a.cjs +1 -0
- package/es/el-scrollbar-691cfc11.cjs +1 -0
- package/es/el-scrollbar-fae984e3.js +763 -0
- package/es/el-segmented-a7493831.js +142 -0
- package/es/el-segmented-b6bd3c0e.cjs +1 -0
- package/es/el-select-5959e837.cjs +1 -0
- package/es/el-select-ea8feecf.js +1251 -0
- package/es/el-table-column-9ef52443.js +3878 -0
- package/es/el-table-column-b824ac5c.cjs +14 -0
- package/es/el-tag-2fc9b9eb.js +116 -0
- package/es/el-tag-ecad6d02.cjs +1 -0
- package/es/index-2e331d74.js +10 -0
- package/es/{index-a8e9ec0f.js → index-34592e82.js} +176 -182
- package/es/index-3a74eae4.cjs +1 -0
- package/es/{index-1c41bd56.js → index-5d4e5c51.js} +3 -3
- package/es/{index-e348d5e8.cjs → index-694bb944.cjs} +1 -1
- package/es/{index-ee1cebbc.js → index-74fb90c7.js} +5 -5
- package/es/{index-d577b81b.js → index-8d7ae5dc.js} +2 -2
- package/es/index-a9095b4a.js +163 -0
- package/es/index-a93dd9c4.cjs +1 -0
- package/es/index-ebd2fd7e.cjs +1 -0
- package/es/index-f1c702f6.cjs +1 -0
- package/es/{index-19fa1fcf.cjs → index-f6afafaa.cjs} +1 -1
- package/es/{raf-bfbf42e4.js → raf-41aed4d4.js} +1 -1
- package/es/{raf-07cb6953.cjs → raf-8249652f.cjs} +1 -1
- package/es/{scroll-e3cb691f.js → scroll-7d352c1f.js} +2 -2
- package/es/{scroll-4769a65d.cjs → scroll-b108dabd.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-global-config-03735617.cjs +1 -0
- package/es/use-global-config-4b185eb5.js +71 -0
- package/es/validator-0e688e4e.cjs +1 -0
- package/es/validator-d12a8f8c.js +5 -0
- package/es/vnode-4db20540.cjs +1 -0
- package/es/vnode-a0795a4b.js +70 -0
- package/es/{zh-cn-d883afa8.js → zh-cn-0ff32188.js} +5 -4
- package/es/{zh-cn-b24a7dc9.cjs → zh-cn-adf19c4b.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +226 -245
- package/lib/{index-0f16f8b0.js → index-9341884f.js} +44358 -46367
- package/lib/{python-e9c32bc9.js → python-5c9b3e4e.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/packages/KlinePlus/index.vue +2 -1
- package/packages/VarSelectDialog/index.vue +43 -67
- package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +4 -2
- package/packages/VarietySearch/components/FactorScreen/index.vue +6 -4
- package/packages/index.ts +0 -2
- package/src/pages/VarSelectDialog/index.vue +1 -1
- package/src/router/routes.ts +0 -5
- package/es/Dialog.cjs +0 -1
- package/es/Dialog.js +0 -95
- package/es/_commonjsHelpers-10dfc225.js +0 -8
- package/es/_commonjsHelpers-87b0abe8.cjs +0 -1
- package/es/_initCloneObject-9ccbb113.cjs +0 -1
- package/es/base-bdc10baa.cjs +0 -5
- package/es/base-d9284bf0.js +0 -304
- package/es/castArray-37eb9980.cjs +0 -1
- package/es/castArray-b0ab0165.js +0 -10
- package/es/config-provider-ec6b09df.cjs +0 -1
- package/es/config-provider-f0151e9f.js +0 -47
- package/es/dayjs.min-19fb125f.cjs +0 -1
- package/es/dropdown-b2dab5bb.cjs +0 -1
- package/es/el-button-34665425.js +0 -237
- package/es/el-button-960edd49.cjs +0 -1
- package/es/el-dialog-a412484e.js +0 -267
- package/es/el-dialog-cd484c1f.cjs +0 -1
- package/es/el-empty-627ec09e.cjs +0 -1
- package/es/el-form-item-668ba024.js +0 -1263
- package/es/el-form-item-e1c3104b.cjs +0 -12
- package/es/el-input-22e66e37.js +0 -523
- package/es/el-input-5163bda3.cjs +0 -1
- package/es/el-input-number-481e21c5.js +0 -284
- package/es/el-input-number-eb54cde4.cjs +0 -1
- package/es/el-loading-15a5501c.cjs +0 -1
- package/es/el-loading-d4e403ab.js +0 -187
- package/es/el-menu-item-404c10e5.js +0 -772
- package/es/el-menu-item-ac89e804.cjs +0 -1
- package/es/el-message-ad87b9dd.cjs +0 -1
- package/es/el-message-box-41f39f6d.js +0 -558
- package/es/el-message-box-6694f827.cjs +0 -1
- package/es/el-message-ef506caa.js +0 -375
- package/es/el-overlay-4a9fa4e1.js +0 -269
- package/es/el-overlay-e5d318c3.cjs +0 -1
- package/es/el-popconfirm-7b9183aa.js +0 -140
- package/es/el-popconfirm-a497b279.cjs +0 -1
- package/es/el-popper-14a9d493.cjs +0 -1
- package/es/el-popper-e73466eb.js +0 -2263
- package/es/el-scrollbar-45318df0.js +0 -201
- package/es/el-scrollbar-8bf765f2.cjs +0 -1
- package/es/el-segmented-3ba6d664.cjs +0 -1
- package/es/el-segmented-41820018.js +0 -135
- package/es/el-select-1d2309a1.cjs +0 -1
- package/es/el-select-d7a00294.js +0 -1130
- package/es/el-table-column-a2d0c635.js +0 -3805
- package/es/el-table-column-be9a76bb.cjs +0 -14
- package/es/el-tag-7f391090.js +0 -280
- package/es/el-tag-8d49d4d2.cjs +0 -1
- package/es/index-02ca0096.cjs +0 -5
- package/es/index-3120be08.js +0 -14
- package/es/index-5b81f4da.cjs +0 -1
- package/es/index-85a32a00.js +0 -59
- package/es/index-8d3c5e96.cjs +0 -3
- package/es/index-94f38460.js +0 -306
- package/es/index-a99a5307.cjs +0 -1
- package/es/index-b90c746b.cjs +0 -1
- package/es/index-d94bae37.cjs +0 -1
- package/es/index-d99fdc6d.js +0 -159
- package/es/use-form-common-props-592797e2.cjs +0 -2
- package/es/use-form-common-props-cc347a83.js +0 -171
- package/es/use-global-config-584b62f1.cjs +0 -1
- package/es/use-global-config-c7f0a7e3.js +0 -73
- package/es/validator-10fa54fe.js +0 -5
- package/es/validator-af488a9a.cjs +0 -1
- package/es/vnode-1b827c99.cjs +0 -1
- package/es/vnode-6be33bb1.js +0 -14
- package/packages/Dialog/index.ts +0 -8
- package/packages/Dialog/index.vue +0 -54
- package/src/pages/Dialog/index.vue +0 -16
|
@@ -1,375 +0,0 @@
|
|
|
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 G, createTextVNode as le, toDisplayString as q, 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 F } from "vue";
|
|
2
|
-
import { b as me, u as ge } from "./el-scrollbar-45318df0.js";
|
|
3
|
-
import { b as K, d as N, u as ye, m as T, k as H, _ as Q, w as ve, p as X, c as Ce, i as R, y as _, A as he, n as be, l as V, G as Te } from "./base-d9284bf0.js";
|
|
4
|
-
import { E as P } from "./index-ee1cebbc.js";
|
|
5
|
-
import { i as we, g as U, T as Se } from "./use-form-common-props-cc347a83.js";
|
|
6
|
-
import { m as Ee } from "./typescript-7ae59c4c.js";
|
|
7
|
-
import { u as Ne } from "./use-global-config-c7f0a7e3.js";
|
|
8
|
-
import { E as Be } from "./index-94f38460.js";
|
|
9
|
-
import { m as c } from "./config-provider-f0151e9f.js";
|
|
10
|
-
const Me = K({
|
|
11
|
-
value: {
|
|
12
|
-
type: [String, Number],
|
|
13
|
-
default: ""
|
|
14
|
-
},
|
|
15
|
-
max: {
|
|
16
|
-
type: Number,
|
|
17
|
-
default: 99
|
|
18
|
-
},
|
|
19
|
-
isDot: Boolean,
|
|
20
|
-
hidden: Boolean,
|
|
21
|
-
type: {
|
|
22
|
-
type: String,
|
|
23
|
-
values: ["primary", "success", "warning", "info", "danger"],
|
|
24
|
-
default: "danger"
|
|
25
|
-
},
|
|
26
|
-
showZero: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !0
|
|
29
|
-
},
|
|
30
|
-
color: String,
|
|
31
|
-
badgeStyle: {
|
|
32
|
-
type: N([String, Object, Array])
|
|
33
|
-
},
|
|
34
|
-
offset: {
|
|
35
|
-
type: N(Array),
|
|
36
|
-
default: [0, 0]
|
|
37
|
-
},
|
|
38
|
-
badgeClass: {
|
|
39
|
-
type: String
|
|
40
|
-
}
|
|
41
|
-
}), ke = B({
|
|
42
|
-
name: "ElBadge"
|
|
43
|
-
}), $e = /* @__PURE__ */ B({
|
|
44
|
-
...ke,
|
|
45
|
-
props: Me,
|
|
46
|
-
setup(o, { expose: t }) {
|
|
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(() => {
|
|
48
|
-
var r, u, f, g, y;
|
|
49
|
-
return [
|
|
50
|
-
{
|
|
51
|
-
backgroundColor: e.color,
|
|
52
|
-
marginRight: H(-((u = (r = e.offset) == null ? void 0 : r[0]) != null ? u : 0)),
|
|
53
|
-
marginTop: H((g = (f = e.offset) == null ? void 0 : f[1]) != null ? g : 0)
|
|
54
|
-
},
|
|
55
|
-
(y = e.badgeStyle) != null ? y : {}
|
|
56
|
-
];
|
|
57
|
-
});
|
|
58
|
-
return t({
|
|
59
|
-
content: n
|
|
60
|
-
}), (r, u) => (v(), z("div", {
|
|
61
|
-
class: C(s(a).b())
|
|
62
|
-
}, [
|
|
63
|
-
I(r.$slots, "default"),
|
|
64
|
-
O(Z, {
|
|
65
|
-
name: `${s(a).namespace.value}-zoom-in-center`,
|
|
66
|
-
persisted: ""
|
|
67
|
-
}, {
|
|
68
|
-
default: E(() => [
|
|
69
|
-
j(L("sup", {
|
|
70
|
-
class: C([
|
|
71
|
-
s(a).e("content"),
|
|
72
|
-
s(a).em("content", r.type),
|
|
73
|
-
s(a).is("fixed", !!r.$slots.default),
|
|
74
|
-
s(a).is("dot", r.isDot),
|
|
75
|
-
s(a).is("hide-zero", !r.showZero && e.value === 0),
|
|
76
|
-
r.badgeClass
|
|
77
|
-
]),
|
|
78
|
-
style: G(s(p))
|
|
79
|
-
}, [
|
|
80
|
-
I(r.$slots, "content", { value: s(n) }, () => [
|
|
81
|
-
le(q(s(n)), 1)
|
|
82
|
-
])
|
|
83
|
-
], 6), [
|
|
84
|
-
[W, !r.hidden && (s(n) || r.isDot || r.$slots.content)]
|
|
85
|
-
])
|
|
86
|
-
]),
|
|
87
|
-
_: 3
|
|
88
|
-
}, 8, ["name"])
|
|
89
|
-
], 2));
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
var ze = /* @__PURE__ */ Q($e, [["__file", "badge.vue"]]);
|
|
93
|
-
const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
|
|
94
|
-
customClass: "",
|
|
95
|
-
center: !1,
|
|
96
|
-
dangerouslyUseHTMLString: !1,
|
|
97
|
-
duration: 3e3,
|
|
98
|
-
icon: void 0,
|
|
99
|
-
id: "",
|
|
100
|
-
message: "",
|
|
101
|
-
onClose: void 0,
|
|
102
|
-
showClose: !1,
|
|
103
|
-
type: "info",
|
|
104
|
-
plain: !1,
|
|
105
|
-
offset: 16,
|
|
106
|
-
zIndex: 0,
|
|
107
|
-
grouping: !1,
|
|
108
|
-
repeatNum: 1,
|
|
109
|
-
appendTo: X ? document.body : void 0
|
|
110
|
-
}), Le = K({
|
|
111
|
-
customClass: {
|
|
112
|
-
type: String,
|
|
113
|
-
default: i.customClass
|
|
114
|
-
},
|
|
115
|
-
center: {
|
|
116
|
-
type: Boolean,
|
|
117
|
-
default: i.center
|
|
118
|
-
},
|
|
119
|
-
dangerouslyUseHTMLString: {
|
|
120
|
-
type: Boolean,
|
|
121
|
-
default: i.dangerouslyUseHTMLString
|
|
122
|
-
},
|
|
123
|
-
duration: {
|
|
124
|
-
type: Number,
|
|
125
|
-
default: i.duration
|
|
126
|
-
},
|
|
127
|
-
icon: {
|
|
128
|
-
type: we,
|
|
129
|
-
default: i.icon
|
|
130
|
-
},
|
|
131
|
-
id: {
|
|
132
|
-
type: String,
|
|
133
|
-
default: i.id
|
|
134
|
-
},
|
|
135
|
-
message: {
|
|
136
|
-
type: N([
|
|
137
|
-
String,
|
|
138
|
-
Object,
|
|
139
|
-
Function
|
|
140
|
-
]),
|
|
141
|
-
default: i.message
|
|
142
|
-
},
|
|
143
|
-
onClose: {
|
|
144
|
-
type: N(Function),
|
|
145
|
-
default: i.onClose
|
|
146
|
-
},
|
|
147
|
-
showClose: {
|
|
148
|
-
type: Boolean,
|
|
149
|
-
default: i.showClose
|
|
150
|
-
},
|
|
151
|
-
type: {
|
|
152
|
-
type: String,
|
|
153
|
-
values: Y,
|
|
154
|
-
default: i.type
|
|
155
|
-
},
|
|
156
|
-
plain: {
|
|
157
|
-
type: Boolean,
|
|
158
|
-
default: i.plain
|
|
159
|
-
},
|
|
160
|
-
offset: {
|
|
161
|
-
type: Number,
|
|
162
|
-
default: i.offset
|
|
163
|
-
},
|
|
164
|
-
zIndex: {
|
|
165
|
-
type: Number,
|
|
166
|
-
default: i.zIndex
|
|
167
|
-
},
|
|
168
|
-
grouping: {
|
|
169
|
-
type: Boolean,
|
|
170
|
-
default: i.grouping
|
|
171
|
-
},
|
|
172
|
-
repeatNum: {
|
|
173
|
-
type: Number,
|
|
174
|
-
default: i.repeatNum
|
|
175
|
-
}
|
|
176
|
-
}), _e = {
|
|
177
|
-
destroy: () => !0
|
|
178
|
-
}, d = ie([]), Oe = (o) => {
|
|
179
|
-
const t = d.findIndex((n) => n.id === o), e = d[t];
|
|
180
|
-
let a;
|
|
181
|
-
return t > 0 && (a = d[t - 1]), { current: e, prev: a };
|
|
182
|
-
}, De = (o) => {
|
|
183
|
-
const { prev: t } = Oe(o);
|
|
184
|
-
return t ? t.vm.exposed.bottom.value : 0;
|
|
185
|
-
}, xe = (o, t) => d.findIndex((a) => a.id === o) > 0 ? 16 : t, Ae = B({
|
|
186
|
-
name: "ElMessage"
|
|
187
|
-
}), Fe = /* @__PURE__ */ B({
|
|
188
|
-
...Ae,
|
|
189
|
-
props: Le,
|
|
190
|
-
emits: _e,
|
|
191
|
-
setup(o, { expose: t }) {
|
|
192
|
-
const e = o, { Close: a } = Se, { ns: n, zIndex: p } = Ne("message"), { currentZIndex: r, nextZIndex: u } = p, f = $(), g = $(!1), y = $(0);
|
|
193
|
-
let M;
|
|
194
|
-
const se = m(() => e.type ? e.type === "error" ? "danger" : e.type : "info"), oe = m(() => {
|
|
195
|
-
const l = e.type;
|
|
196
|
-
return { [n.bm("icon", l)]: l && U[l] };
|
|
197
|
-
}), D = m(() => e.icon || U[e.type] || ""), te = m(() => De(e.id)), x = m(() => xe(e.id, e.offset) + te.value), ne = m(() => y.value + x.value), ae = m(() => ({
|
|
198
|
-
top: `${x.value}px`,
|
|
199
|
-
zIndex: r.value
|
|
200
|
-
}));
|
|
201
|
-
function k() {
|
|
202
|
-
e.duration !== 0 && ({ stop: M } = Ce(() => {
|
|
203
|
-
w();
|
|
204
|
-
}, e.duration));
|
|
205
|
-
}
|
|
206
|
-
function A() {
|
|
207
|
-
M == null || M();
|
|
208
|
-
}
|
|
209
|
-
function w() {
|
|
210
|
-
g.value = !1;
|
|
211
|
-
}
|
|
212
|
-
function re({ code: l }) {
|
|
213
|
-
l === Be.esc && w();
|
|
214
|
-
}
|
|
215
|
-
return ue(() => {
|
|
216
|
-
k(), u(), g.value = !0;
|
|
217
|
-
}), de(() => e.repeatNum, () => {
|
|
218
|
-
A(), k();
|
|
219
|
-
}), me(document, "keydown", re), ge(f, () => {
|
|
220
|
-
y.value = f.value.getBoundingClientRect().height;
|
|
221
|
-
}), t({
|
|
222
|
-
visible: g,
|
|
223
|
-
bottom: ne,
|
|
224
|
-
close: w
|
|
225
|
-
}), (l, Ze) => (v(), b(Z, {
|
|
226
|
-
name: s(n).b("fade"),
|
|
227
|
-
onBeforeLeave: l.onClose,
|
|
228
|
-
onAfterLeave: (je) => l.$emit("destroy"),
|
|
229
|
-
persisted: ""
|
|
230
|
-
}, {
|
|
231
|
-
default: E(() => [
|
|
232
|
-
j(L("div", {
|
|
233
|
-
id: l.id,
|
|
234
|
-
ref_key: "messageRef",
|
|
235
|
-
ref: f,
|
|
236
|
-
class: C([
|
|
237
|
-
s(n).b(),
|
|
238
|
-
{ [s(n).m(l.type)]: l.type },
|
|
239
|
-
s(n).is("center", l.center),
|
|
240
|
-
s(n).is("closable", l.showClose),
|
|
241
|
-
s(n).is("plain", l.plain),
|
|
242
|
-
l.customClass
|
|
243
|
-
]),
|
|
244
|
-
style: G(s(ae)),
|
|
245
|
-
role: "alert",
|
|
246
|
-
onMouseenter: A,
|
|
247
|
-
onMouseleave: k
|
|
248
|
-
}, [
|
|
249
|
-
l.repeatNum > 1 ? (v(), b(s(Ie), {
|
|
250
|
-
key: 0,
|
|
251
|
-
value: l.repeatNum,
|
|
252
|
-
type: s(se),
|
|
253
|
-
class: C(s(n).e("badge"))
|
|
254
|
-
}, null, 8, ["value", "type", "class"])) : S("v-if", !0),
|
|
255
|
-
s(D) ? (v(), b(s(P), {
|
|
256
|
-
key: 1,
|
|
257
|
-
class: C([s(n).e("icon"), s(oe)])
|
|
258
|
-
}, {
|
|
259
|
-
default: E(() => [
|
|
260
|
-
(v(), b(ce(s(D))))
|
|
261
|
-
]),
|
|
262
|
-
_: 1
|
|
263
|
-
}, 8, ["class"])) : S("v-if", !0),
|
|
264
|
-
I(l.$slots, "default", {}, () => [
|
|
265
|
-
l.dangerouslyUseHTMLString ? (v(), z(pe, { key: 1 }, [
|
|
266
|
-
S(" Caution here, message could've been compromised, never use user's input as message "),
|
|
267
|
-
L("p", {
|
|
268
|
-
class: C(s(n).e("content")),
|
|
269
|
-
innerHTML: l.message
|
|
270
|
-
}, null, 10, ["innerHTML"])
|
|
271
|
-
], 2112)) : (v(), z("p", {
|
|
272
|
-
key: 0,
|
|
273
|
-
class: C(s(n).e("content"))
|
|
274
|
-
}, q(l.message), 3))
|
|
275
|
-
]),
|
|
276
|
-
l.showClose ? (v(), b(s(P), {
|
|
277
|
-
key: 2,
|
|
278
|
-
class: C(s(n).e("closeBtn")),
|
|
279
|
-
onClick: fe(w, ["stop"])
|
|
280
|
-
}, {
|
|
281
|
-
default: E(() => [
|
|
282
|
-
O(s(a))
|
|
283
|
-
]),
|
|
284
|
-
_: 1
|
|
285
|
-
}, 8, ["class", "onClick"])) : S("v-if", !0)
|
|
286
|
-
], 46, ["id"]), [
|
|
287
|
-
[W, g.value]
|
|
288
|
-
])
|
|
289
|
-
]),
|
|
290
|
-
_: 3
|
|
291
|
-
}, 8, ["name", "onBeforeLeave", "onAfterLeave"]));
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
var He = /* @__PURE__ */ Q(Fe, [["__file", "message.vue"]]);
|
|
295
|
-
let Re = 1;
|
|
296
|
-
const ee = (o) => {
|
|
297
|
-
const t = !o || R(o) || J(o) || _(o) ? { message: o } : o, e = {
|
|
298
|
-
...i,
|
|
299
|
-
...t
|
|
300
|
-
};
|
|
301
|
-
if (!e.appendTo)
|
|
302
|
-
e.appendTo = document.body;
|
|
303
|
-
else if (R(e.appendTo)) {
|
|
304
|
-
let a = document.querySelector(e.appendTo);
|
|
305
|
-
he(a) || (be("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), a = document.body), e.appendTo = a;
|
|
306
|
-
}
|
|
307
|
-
return V(c.grouping) && !e.grouping && (e.grouping = c.grouping), T(c.duration) && e.duration === 3e3 && (e.duration = c.duration), T(c.offset) && e.offset === 16 && (e.offset = c.offset), V(c.showClose) && !e.showClose && (e.showClose = c.showClose), e;
|
|
308
|
-
}, Ve = (o) => {
|
|
309
|
-
const t = d.indexOf(o);
|
|
310
|
-
if (t === -1)
|
|
311
|
-
return;
|
|
312
|
-
d.splice(t, 1);
|
|
313
|
-
const { handler: e } = o;
|
|
314
|
-
e.close();
|
|
315
|
-
}, Pe = ({ appendTo: o, ...t }, e) => {
|
|
316
|
-
const a = `message_${Re++}`, n = t.onClose, p = document.createElement("div"), r = {
|
|
317
|
-
...t,
|
|
318
|
-
id: a,
|
|
319
|
-
onClose: () => {
|
|
320
|
-
n == null || n(), Ve(y);
|
|
321
|
-
},
|
|
322
|
-
onDestroy: () => {
|
|
323
|
-
F(null, p);
|
|
324
|
-
}
|
|
325
|
-
}, u = O(He, r, _(r.message) || J(r.message) ? {
|
|
326
|
-
default: _(r.message) ? r.message : () => r.message
|
|
327
|
-
} : null);
|
|
328
|
-
u.appContext = e || h._context, F(u, p), o.appendChild(p.firstElementChild);
|
|
329
|
-
const f = u.component, y = {
|
|
330
|
-
id: a,
|
|
331
|
-
vnode: u,
|
|
332
|
-
vm: f,
|
|
333
|
-
handler: {
|
|
334
|
-
close: () => {
|
|
335
|
-
f.exposed.visible.value = !1;
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
props: u.component.props
|
|
339
|
-
};
|
|
340
|
-
return y;
|
|
341
|
-
}, h = (o = {}, t) => {
|
|
342
|
-
if (!X)
|
|
343
|
-
return { close: () => {
|
|
344
|
-
} };
|
|
345
|
-
const e = ee(o);
|
|
346
|
-
if (e.grouping && d.length) {
|
|
347
|
-
const n = d.find(({ vnode: p }) => {
|
|
348
|
-
var r;
|
|
349
|
-
return ((r = p.props) == null ? void 0 : r.message) === e.message;
|
|
350
|
-
});
|
|
351
|
-
if (n)
|
|
352
|
-
return n.props.repeatNum += 1, n.props.type = e.type, n.handler;
|
|
353
|
-
}
|
|
354
|
-
if (T(c.max) && d.length >= c.max)
|
|
355
|
-
return { close: () => {
|
|
356
|
-
} };
|
|
357
|
-
const a = Pe(e, t);
|
|
358
|
-
return d.push(a), a.handler;
|
|
359
|
-
};
|
|
360
|
-
Y.forEach((o) => {
|
|
361
|
-
h[o] = (t = {}, e) => {
|
|
362
|
-
const a = ee(t);
|
|
363
|
-
return h({ ...a, type: o }, e);
|
|
364
|
-
};
|
|
365
|
-
});
|
|
366
|
-
function Ue(o) {
|
|
367
|
-
for (const t of d)
|
|
368
|
-
(!o || o === t.props.type) && t.handler.close();
|
|
369
|
-
}
|
|
370
|
-
h.closeAll = Ue;
|
|
371
|
-
h._context = null;
|
|
372
|
-
const ss = Te(h, "$message");
|
|
373
|
-
export {
|
|
374
|
-
ss as E
|
|
375
|
-
};
|
|
@@ -1,269 +0,0 @@
|
|
|
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, b as E, d as C, u as F, l as oe, t as te, p as L, h as P, a as ne, q as le, r as se, k as ae, D as ue, c as I } from "./base-d9284bf0.js";
|
|
3
|
-
import { P as k } from "./vnode-6be33bb1.js";
|
|
4
|
-
import { i as ie, n as ce } from "./use-form-common-props-cc347a83.js";
|
|
5
|
-
import { U as N, i as re } from "./index-94f38460.js";
|
|
6
|
-
import { g as de } from "./scroll-e3cb691f.js";
|
|
7
|
-
import { a as D } from "./index-a8e9ec0f.js";
|
|
8
|
-
import { a as fe } from "./use-global-config-c7f0a7e3.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: r } = 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: r
|
|
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 r = () => {
|
|
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
|
-
r();
|
|
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(() => r());
|
|
176
|
-
}, De = (e, o) => {
|
|
177
|
-
var s;
|
|
178
|
-
const n = X().emit, { nextZIndex: a } = ce();
|
|
179
|
-
let t = "";
|
|
180
|
-
const r = 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 = {}, c = `--${A.value}-dialog`;
|
|
184
|
-
return e.fullscreen || (e.top && (l[`${c}-margin-top`] = e.top), e.width && (l[`${c}-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(c) {
|
|
203
|
-
c || (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 W() {
|
|
220
|
-
n("closeAutoFocus");
|
|
221
|
-
}
|
|
222
|
-
function j(l) {
|
|
223
|
-
var c;
|
|
224
|
-
((c = l.detail) == null ? void 0 : c.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 = re(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: W,
|
|
248
|
-
onCloseRequested: q,
|
|
249
|
-
onFocusoutPrevented: j,
|
|
250
|
-
titleId: r,
|
|
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
|
-
Ie as a,
|
|
263
|
-
ge as b,
|
|
264
|
-
me as c,
|
|
265
|
-
Pe as d,
|
|
266
|
-
be as e,
|
|
267
|
-
Te as f,
|
|
268
|
-
De as u
|
|
269
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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;
|