st-comp 0.0.93 → 0.0.95
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/components.d.ts +13 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -5
- package/es/Dialog.js +45 -711
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +463 -1
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +92 -91
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +10 -9
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +106 -104
- package/es/Table.cjs +1 -20
- package/es/Table.js +361 -4253
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +2545 -1
- package/es/VirtualTable.cjs +3 -3
- package/es/VirtualTable.js +249 -254
- package/es/base-6e64c2e6.js +762 -0
- package/es/base-8776b83e.cjs +9 -0
- package/es/castArray-59d5ae43.cjs +1 -0
- package/es/castArray-8ec29ca6.js +10 -0
- package/es/config-provider-76ef1b35.cjs +1 -0
- package/es/config-provider-f4278c8e.js +46 -0
- package/es/{el-button-9476b767.js → el-button-4c7ae9df.js} +52 -52
- package/es/{el-button-ed961332.cjs → el-button-65e4598f.cjs} +1 -1
- package/es/{el-empty-f4c08c01.js → el-empty-05e13b3c.js} +3 -3
- package/es/{el-empty-7adcc7f0.cjs → el-empty-dfe11c21.cjs} +1 -1
- package/es/el-icon-0ea8fbf8.cjs +1 -0
- package/es/el-icon-4ed993c7.js +1 -0
- package/es/el-input-11327619.cjs +9 -0
- package/es/el-input-f4898cfa.js +544 -0
- package/es/el-overlay-9d9c6ba9.cjs +5 -0
- package/es/el-overlay-d7af7dda.js +678 -0
- package/es/el-popover-4a4a4b02.cjs +1 -0
- package/es/el-popover-dc9c7ff7.js +133 -0
- package/es/el-radio-group-a31fb7c0.js +1743 -0
- package/es/el-radio-group-cc2d6c87.cjs +12 -0
- package/es/{el-scrollbar-ffb7b9c1.js → el-scrollbar-a00aca2f.js} +48 -48
- package/es/{el-scrollbar-586be9bd.cjs → el-scrollbar-f197b544.cjs} +1 -1
- package/es/el-select-5dbb0da3.cjs +1 -0
- package/es/el-select-b9cf452e.js +1360 -0
- package/es/el-table-column-1e15361e.cjs +20 -0
- package/es/el-table-column-675f51e6.js +3795 -0
- package/es/el-tag-c9d5baa7.cjs +1 -0
- package/es/{el-tag-7549c103.js → el-tag-f878b1f1.js} +126 -119
- package/es/{focus-trap-5fc152a0.js → focus-trap-2677bd39.js} +35 -34
- package/es/focus-trap-5f42842b.cjs +1 -0
- package/es/raf-32ed81f4.js +6 -0
- package/es/{raf-c4bba516.cjs → raf-7c366b55.cjs} +1 -1
- package/es/{scroll-38e17abc.cjs → scroll-22a00b05.cjs} +1 -1
- package/es/{scroll-c6e51ef8.js → scroll-9b9249e9.js} +5 -5
- package/es/style.css +1 -1
- package/es/use-form-item-67e7ef93.cjs +3 -0
- package/es/use-form-item-bfc7dddf.js +669 -0
- package/es/use-global-config-89daeba3.js +110 -0
- package/es/use-global-config-f9103903.cjs +1 -0
- package/es/{vnode-40f9df3c.cjs → vnode-69f3ca85.cjs} +1 -1
- package/es/{vnode-f4b846cb.js → vnode-aa3448ec.js} +1 -1
- package/es/zh-cn-720e514b.cjs +1 -0
- package/es/{zh-cn-e36dfbf4.js → zh-cn-e662dc89.js} +6 -45
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +174 -174
- package/lib/{index-4635557b.js → index-5fe750ca.js} +27924 -27395
- package/lib/{python-aa056c80.js → python-65fdc0e1.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +270 -112
- package/packages/VarietySearch/components/FactorScreen/index.vue +44 -5
- package/packages/VarietySearch/config.js +12 -1
- package/packages/VarietySearch/index.vue +8 -0
- package/es/base-8aa55db5.js +0 -725
- package/es/base-b187e78f.cjs +0 -9
- package/es/el-select-a6cf0236.js +0 -1893
- package/es/el-select-eaa79c54.cjs +0 -9
- package/es/el-tag-5a8b728a.cjs +0 -1
- package/es/focus-trap-ea1e7a19.cjs +0 -1
- package/es/raf-3a2b250a.js +0 -6
- package/es/use-form-item-bd4b9eeb.js +0 -531
- package/es/use-form-item-c25c7251.cjs +0 -3
- package/es/use-global-config-2d21cd56.js +0 -110
- package/es/use-global-config-bce8cdd8.cjs +0 -1
- package/es/zh-cn-a61d484e.cjs +0 -1
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
import { onMounted as ue, watchEffect as Le, onBeforeUnmount as Se, isRef as De, watch as q, onScopeDispose as Te, defineComponent as Y, createVNode as V, renderSlot as C, h as Ie, inject as se, computed as I, openBlock as A, createElementBlock as X, unref as n, normalizeClass as E, normalizeStyle as de, createElementVNode as H, toDisplayString as Me, withCtx as D, createBlock as K, resolveDynamicComponent as Ne, createCommentVNode as G, getCurrentInstance as Be, ref as T, nextTick as Fe, useSlots as Oe, provide as Ae, Teleport as $e, Transition as Pe, withDirectives as Re, mergeProps as Ve, createSlots as ze, vShow as Ye } from "vue";
|
|
2
|
+
import { v as fe, m as Z, F as He, N as U, G as Ue, H as ve, t as We, u as te, o as me, h as ne, p as Xe, a as je, r as xe, b as oe, d as J, g as qe, _ as pe, l as Ke, C as le, I as Ge, c as ae, w as Ze } from "./base-6e64c2e6.js";
|
|
3
|
+
import { P as j } from "./vnode-aa3448ec.js";
|
|
4
|
+
import { i as Je, E as Qe, C as et, z as tt, u as ie } from "./use-form-item-bfc7dddf.js";
|
|
5
|
+
import { F as ot, U as he, a as st } from "./focus-trap-2677bd39.js";
|
|
6
|
+
import { b as nt } from "./use-global-config-89daeba3.js";
|
|
7
|
+
import { g as lt } from "./scroll-9b9249e9.js";
|
|
8
|
+
const at = (...e) => (t) => {
|
|
9
|
+
e.forEach((s) => {
|
|
10
|
+
fe(s) ? s(t) : s.value = t;
|
|
11
|
+
});
|
|
12
|
+
}, it = (e, t, s) => {
|
|
13
|
+
let l = {
|
|
14
|
+
offsetX: 0,
|
|
15
|
+
offsetY: 0
|
|
16
|
+
};
|
|
17
|
+
const o = (c) => {
|
|
18
|
+
const d = c.clientX, m = c.clientY, { offsetX: f, offsetY: g } = l, v = e.value.getBoundingClientRect(), u = v.left, _ = v.top, N = v.width, $ = v.height, P = document.documentElement.clientWidth, B = document.documentElement.clientHeight, R = -u + f, F = -_ + g, k = P - u - N + f, w = B - _ - $ + g, O = (b) => {
|
|
19
|
+
const r = Math.min(Math.max(f + b.clientX - d, R), k), y = Math.min(Math.max(g + b.clientY - m, F), w);
|
|
20
|
+
l = {
|
|
21
|
+
offsetX: r,
|
|
22
|
+
offsetY: y
|
|
23
|
+
}, e.value.style.transform = `translate(${Z(r)}, ${Z(y)})`;
|
|
24
|
+
}, p = () => {
|
|
25
|
+
document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", p);
|
|
26
|
+
};
|
|
27
|
+
document.addEventListener("mousemove", O), document.addEventListener("mouseup", p);
|
|
28
|
+
}, a = () => {
|
|
29
|
+
t.value && e.value && t.value.addEventListener("mousedown", o);
|
|
30
|
+
}, i = () => {
|
|
31
|
+
t.value && e.value && t.value.removeEventListener("mousedown", o);
|
|
32
|
+
};
|
|
33
|
+
ue(() => {
|
|
34
|
+
Le(() => {
|
|
35
|
+
s.value ? a() : i();
|
|
36
|
+
});
|
|
37
|
+
}), Se(() => {
|
|
38
|
+
i();
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @vue/reactivity v3.4.19
|
|
43
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
44
|
+
* @license MIT
|
|
45
|
+
**/
|
|
46
|
+
function ge(e, ...t) {
|
|
47
|
+
console.warn(`[Vue warn] ${e}`, ...t);
|
|
48
|
+
}
|
|
49
|
+
let rt;
|
|
50
|
+
function ct(e, t = rt) {
|
|
51
|
+
t && t.active && t.effects.push(e);
|
|
52
|
+
}
|
|
53
|
+
let z;
|
|
54
|
+
class ut {
|
|
55
|
+
constructor(t, s, l, o) {
|
|
56
|
+
this.fn = t, this.trigger = s, this.scheduler = l, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, ct(this, o);
|
|
57
|
+
}
|
|
58
|
+
get dirty() {
|
|
59
|
+
if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
|
|
60
|
+
this._dirtyLevel = 1, ft();
|
|
61
|
+
for (let t = 0; t < this._depsLength; t++) {
|
|
62
|
+
const s = this.deps[t];
|
|
63
|
+
if (s.computed && (dt(s.computed), this._dirtyLevel >= 4))
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
this._dirtyLevel === 1 && (this._dirtyLevel = 0), vt();
|
|
67
|
+
}
|
|
68
|
+
return this._dirtyLevel >= 4;
|
|
69
|
+
}
|
|
70
|
+
set dirty(t) {
|
|
71
|
+
this._dirtyLevel = t ? 4 : 0;
|
|
72
|
+
}
|
|
73
|
+
run() {
|
|
74
|
+
if (this._dirtyLevel = 0, !this.active)
|
|
75
|
+
return this.fn();
|
|
76
|
+
let t = M, s = z;
|
|
77
|
+
try {
|
|
78
|
+
return M = !0, z = this, this._runnings++, re(this), this.fn();
|
|
79
|
+
} finally {
|
|
80
|
+
ce(this), this._runnings--, z = s, M = t;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
stop() {
|
|
84
|
+
var t;
|
|
85
|
+
this.active && (re(this), ce(this), (t = this.onStop) == null || t.call(this), this.active = !1);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function dt(e) {
|
|
89
|
+
return e.value;
|
|
90
|
+
}
|
|
91
|
+
function re(e) {
|
|
92
|
+
e._trackId++, e._depsLength = 0;
|
|
93
|
+
}
|
|
94
|
+
function ce(e) {
|
|
95
|
+
if (e.deps.length > e._depsLength) {
|
|
96
|
+
for (let t = e._depsLength; t < e.deps.length; t++)
|
|
97
|
+
ye(e.deps[t], e);
|
|
98
|
+
e.deps.length = e._depsLength;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function ye(e, t) {
|
|
102
|
+
const s = e.get(t);
|
|
103
|
+
s !== void 0 && t._trackId !== s && (e.delete(t), e.size === 0 && e.cleanup());
|
|
104
|
+
}
|
|
105
|
+
let M = !0, Q = 0;
|
|
106
|
+
const _e = [];
|
|
107
|
+
function ft() {
|
|
108
|
+
_e.push(M), M = !1;
|
|
109
|
+
}
|
|
110
|
+
function vt() {
|
|
111
|
+
const e = _e.pop();
|
|
112
|
+
M = e === void 0 ? !0 : e;
|
|
113
|
+
}
|
|
114
|
+
function mt() {
|
|
115
|
+
Q++;
|
|
116
|
+
}
|
|
117
|
+
function pt() {
|
|
118
|
+
for (Q--; !Q && ee.length; )
|
|
119
|
+
ee.shift()();
|
|
120
|
+
}
|
|
121
|
+
function ht(e, t, s) {
|
|
122
|
+
var l;
|
|
123
|
+
if (t.get(e) !== e._trackId) {
|
|
124
|
+
t.set(e, e._trackId);
|
|
125
|
+
const o = e.deps[e._depsLength];
|
|
126
|
+
o !== t ? (o && ye(o, e), e.deps[e._depsLength++] = t) : e._depsLength++, process.env.NODE_ENV !== "production" && ((l = e.onTrack) == null || l.call(e, ve({ effect: e }, s)));
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
const ee = [];
|
|
130
|
+
function gt(e, t, s) {
|
|
131
|
+
var l;
|
|
132
|
+
mt();
|
|
133
|
+
for (const o of e.keys()) {
|
|
134
|
+
let a;
|
|
135
|
+
o._dirtyLevel < t && (a ?? (a = e.get(o) === o._trackId)) && (o._shouldSchedule || (o._shouldSchedule = o._dirtyLevel === 0), o._dirtyLevel = t), o._shouldSchedule && (a ?? (a = e.get(o) === o._trackId)) && (process.env.NODE_ENV !== "production" && ((l = o.onTrigger) == null || l.call(o, ve({ effect: o }, s))), o.trigger(), (!o._runnings || o.allowRecurse) && o._dirtyLevel !== 2 && (o._shouldSchedule = !1, o.scheduler && ee.push(o.scheduler)));
|
|
136
|
+
}
|
|
137
|
+
pt();
|
|
138
|
+
}
|
|
139
|
+
const yt = (e, t) => {
|
|
140
|
+
const s = /* @__PURE__ */ new Map();
|
|
141
|
+
return s.cleanup = e, s.computed = t, s;
|
|
142
|
+
};
|
|
143
|
+
Symbol(process.env.NODE_ENV !== "production" ? "iterate" : "");
|
|
144
|
+
Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
|
|
145
|
+
new Set(
|
|
146
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(He)
|
|
147
|
+
);
|
|
148
|
+
function W(e) {
|
|
149
|
+
const t = e && e.__v_raw;
|
|
150
|
+
return t ? W(t) : e;
|
|
151
|
+
}
|
|
152
|
+
const _t = "Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";
|
|
153
|
+
class Ce {
|
|
154
|
+
constructor(t, s, l, o) {
|
|
155
|
+
this._setter = s, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new ut(
|
|
156
|
+
() => t(this._value),
|
|
157
|
+
() => x(
|
|
158
|
+
this,
|
|
159
|
+
this.effect._dirtyLevel === 2 ? 2 : 3
|
|
160
|
+
)
|
|
161
|
+
), this.effect.computed = this, this.effect.active = this._cacheable = !o, this.__v_isReadonly = l;
|
|
162
|
+
}
|
|
163
|
+
get value() {
|
|
164
|
+
const t = W(this);
|
|
165
|
+
return (!t._cacheable || t.effect.dirty) && Ue(t._value, t._value = t.effect.run()) && x(t, 4), bt(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && ge(_t), x(t, 2)), t._value;
|
|
166
|
+
}
|
|
167
|
+
set value(t) {
|
|
168
|
+
this._setter(t);
|
|
169
|
+
}
|
|
170
|
+
// #region polyfill _dirty for backward compatibility third party code for Vue <= 3.3.x
|
|
171
|
+
get _dirty() {
|
|
172
|
+
return this.effect.dirty;
|
|
173
|
+
}
|
|
174
|
+
set _dirty(t) {
|
|
175
|
+
this.effect.dirty = t;
|
|
176
|
+
}
|
|
177
|
+
// #endregion
|
|
178
|
+
}
|
|
179
|
+
function Ct(e, t, s = !1) {
|
|
180
|
+
let l, o;
|
|
181
|
+
const a = fe(e);
|
|
182
|
+
a ? (l = e, o = process.env.NODE_ENV !== "production" ? () => {
|
|
183
|
+
ge("Write operation failed: computed value is readonly");
|
|
184
|
+
} : U) : (l = e.get, o = e.set);
|
|
185
|
+
const i = new Ce(l, o, a || !o, s);
|
|
186
|
+
return process.env.NODE_ENV !== "production" && t && !s && (i.effect.onTrack = t.onTrack, i.effect.onTrigger = t.onTrigger), i;
|
|
187
|
+
}
|
|
188
|
+
function bt(e) {
|
|
189
|
+
var t;
|
|
190
|
+
M && z && (e = W(e), ht(
|
|
191
|
+
z,
|
|
192
|
+
(t = e.dep) != null ? t : e.dep = yt(
|
|
193
|
+
() => e.dep = void 0,
|
|
194
|
+
e instanceof Ce ? e : void 0
|
|
195
|
+
),
|
|
196
|
+
process.env.NODE_ENV !== "production" ? {
|
|
197
|
+
target: e,
|
|
198
|
+
type: "get",
|
|
199
|
+
key: "value"
|
|
200
|
+
} : void 0
|
|
201
|
+
));
|
|
202
|
+
}
|
|
203
|
+
function x(e, t = 4, s) {
|
|
204
|
+
e = W(e);
|
|
205
|
+
const l = e.dep;
|
|
206
|
+
l && gt(
|
|
207
|
+
l,
|
|
208
|
+
t,
|
|
209
|
+
process.env.NODE_ENV !== "production" ? {
|
|
210
|
+
target: e,
|
|
211
|
+
type: "set",
|
|
212
|
+
key: "value",
|
|
213
|
+
newValue: s
|
|
214
|
+
} : void 0
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
const Et = (e, t = {}) => {
|
|
218
|
+
De(e) || We("[useLockscreen]", "You need to pass a ref param to this function");
|
|
219
|
+
const s = t.ns || te("popup"), l = Ct(() => s.bm("parent", "hidden"));
|
|
220
|
+
if (!me || ne(document.body, l.value))
|
|
221
|
+
return;
|
|
222
|
+
let o = 0, a = !1, i = "0";
|
|
223
|
+
const c = () => {
|
|
224
|
+
setTimeout(() => {
|
|
225
|
+
xe(document == null ? void 0 : document.body, l.value), a && document && (document.body.style.width = i);
|
|
226
|
+
}, 200);
|
|
227
|
+
};
|
|
228
|
+
q(e, (d) => {
|
|
229
|
+
if (!d) {
|
|
230
|
+
c();
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
a = !ne(document.body, l.value), a && (i = document.body.style.width), o = lt(s.namespace.value);
|
|
234
|
+
const m = document.documentElement.clientHeight < document.body.scrollHeight, f = Xe(document.body, "overflowY");
|
|
235
|
+
o > 0 && (m || f === "scroll") && a && (document.body.style.width = `calc(100% - ${o}px)`), je(document.body, l.value);
|
|
236
|
+
}), Te(() => c());
|
|
237
|
+
}, be = (e) => {
|
|
238
|
+
if (!e)
|
|
239
|
+
return { onClick: U, onMousedown: U, onMouseup: U };
|
|
240
|
+
let t = !1, s = !1;
|
|
241
|
+
return { onClick: (i) => {
|
|
242
|
+
t && s && e(i), t = s = !1;
|
|
243
|
+
}, onMousedown: (i) => {
|
|
244
|
+
t = i.target === i.currentTarget;
|
|
245
|
+
}, onMouseup: (i) => {
|
|
246
|
+
s = i.target === i.currentTarget;
|
|
247
|
+
} };
|
|
248
|
+
}, kt = oe({
|
|
249
|
+
mask: {
|
|
250
|
+
type: Boolean,
|
|
251
|
+
default: !0
|
|
252
|
+
},
|
|
253
|
+
customMaskEvent: {
|
|
254
|
+
type: Boolean,
|
|
255
|
+
default: !1
|
|
256
|
+
},
|
|
257
|
+
overlayClass: {
|
|
258
|
+
type: J([
|
|
259
|
+
String,
|
|
260
|
+
Array,
|
|
261
|
+
Object
|
|
262
|
+
])
|
|
263
|
+
},
|
|
264
|
+
zIndex: {
|
|
265
|
+
type: J([String, Number])
|
|
266
|
+
}
|
|
267
|
+
}), wt = {
|
|
268
|
+
click: (e) => e instanceof MouseEvent
|
|
269
|
+
}, Lt = "overlay";
|
|
270
|
+
var St = Y({
|
|
271
|
+
name: "ElOverlay",
|
|
272
|
+
props: kt,
|
|
273
|
+
emits: wt,
|
|
274
|
+
setup(e, { slots: t, emit: s }) {
|
|
275
|
+
const l = te(Lt), o = (d) => {
|
|
276
|
+
s("click", d);
|
|
277
|
+
}, { onClick: a, onMousedown: i, onMouseup: c } = be(e.customMaskEvent ? void 0 : o);
|
|
278
|
+
return () => e.mask ? V("div", {
|
|
279
|
+
class: [l.b(), e.overlayClass],
|
|
280
|
+
style: {
|
|
281
|
+
zIndex: e.zIndex
|
|
282
|
+
},
|
|
283
|
+
onClick: a,
|
|
284
|
+
onMousedown: i,
|
|
285
|
+
onMouseup: c
|
|
286
|
+
}, [C(t, "default")], j.STYLE | j.CLASS | j.PROPS, ["onClick", "onMouseup", "onMousedown"]) : Ie("div", {
|
|
287
|
+
class: e.overlayClass,
|
|
288
|
+
style: {
|
|
289
|
+
zIndex: e.zIndex,
|
|
290
|
+
position: "fixed",
|
|
291
|
+
top: "0px",
|
|
292
|
+
right: "0px",
|
|
293
|
+
bottom: "0px",
|
|
294
|
+
left: "0px"
|
|
295
|
+
}
|
|
296
|
+
}, [C(t, "default")]);
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
const Dt = St, Ee = Symbol("dialogInjectionKey"), ke = oe({
|
|
300
|
+
center: Boolean,
|
|
301
|
+
alignCenter: Boolean,
|
|
302
|
+
closeIcon: {
|
|
303
|
+
type: Je
|
|
304
|
+
},
|
|
305
|
+
customClass: {
|
|
306
|
+
type: String,
|
|
307
|
+
default: ""
|
|
308
|
+
},
|
|
309
|
+
draggable: Boolean,
|
|
310
|
+
fullscreen: Boolean,
|
|
311
|
+
showClose: {
|
|
312
|
+
type: Boolean,
|
|
313
|
+
default: !0
|
|
314
|
+
},
|
|
315
|
+
title: {
|
|
316
|
+
type: String,
|
|
317
|
+
default: ""
|
|
318
|
+
},
|
|
319
|
+
ariaLevel: {
|
|
320
|
+
type: String,
|
|
321
|
+
default: "2"
|
|
322
|
+
}
|
|
323
|
+
}), Tt = {
|
|
324
|
+
close: () => !0
|
|
325
|
+
}, It = ["aria-level"], Mt = ["aria-label"], Nt = ["id"], Bt = Y({ name: "ElDialogContent" }), Ft = /* @__PURE__ */ Y({
|
|
326
|
+
...Bt,
|
|
327
|
+
props: ke,
|
|
328
|
+
emits: Tt,
|
|
329
|
+
setup(e) {
|
|
330
|
+
const t = e, { t: s } = qe(), { Close: l } = et, { dialogRef: o, headerRef: a, bodyId: i, ns: c, style: d } = se(Ee), { focusTrapRef: m } = se(ot), f = I(() => [
|
|
331
|
+
c.b(),
|
|
332
|
+
c.is("fullscreen", t.fullscreen),
|
|
333
|
+
c.is("draggable", t.draggable),
|
|
334
|
+
c.is("align-center", t.alignCenter),
|
|
335
|
+
{ [c.m("center")]: t.center },
|
|
336
|
+
t.customClass
|
|
337
|
+
]), g = at(m, o), v = I(() => t.draggable);
|
|
338
|
+
return it(o, a, v), (u, _) => (A(), X("div", {
|
|
339
|
+
ref: n(g),
|
|
340
|
+
class: E(n(f)),
|
|
341
|
+
style: de(n(d)),
|
|
342
|
+
tabindex: "-1"
|
|
343
|
+
}, [
|
|
344
|
+
H("header", {
|
|
345
|
+
ref_key: "headerRef",
|
|
346
|
+
ref: a,
|
|
347
|
+
class: E(n(c).e("header"))
|
|
348
|
+
}, [
|
|
349
|
+
C(u.$slots, "header", {}, () => [
|
|
350
|
+
H("span", {
|
|
351
|
+
role: "heading",
|
|
352
|
+
"aria-level": u.ariaLevel,
|
|
353
|
+
class: E(n(c).e("title"))
|
|
354
|
+
}, Me(u.title), 11, It)
|
|
355
|
+
]),
|
|
356
|
+
u.showClose ? (A(), X("button", {
|
|
357
|
+
key: 0,
|
|
358
|
+
"aria-label": n(s)("el.dialog.close"),
|
|
359
|
+
class: E(n(c).e("headerbtn")),
|
|
360
|
+
type: "button",
|
|
361
|
+
onClick: _[0] || (_[0] = (N) => u.$emit("close"))
|
|
362
|
+
}, [
|
|
363
|
+
V(n(Qe), {
|
|
364
|
+
class: E(n(c).e("close"))
|
|
365
|
+
}, {
|
|
366
|
+
default: D(() => [
|
|
367
|
+
(A(), K(Ne(u.closeIcon || n(l))))
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
}, 8, ["class"])
|
|
371
|
+
], 10, Mt)) : G("v-if", !0)
|
|
372
|
+
], 2),
|
|
373
|
+
H("div", {
|
|
374
|
+
id: n(i),
|
|
375
|
+
class: E(n(c).e("body"))
|
|
376
|
+
}, [
|
|
377
|
+
C(u.$slots, "default")
|
|
378
|
+
], 10, Nt),
|
|
379
|
+
u.$slots.footer ? (A(), X("footer", {
|
|
380
|
+
key: 0,
|
|
381
|
+
class: E(n(c).e("footer"))
|
|
382
|
+
}, [
|
|
383
|
+
C(u.$slots, "footer")
|
|
384
|
+
], 2)) : G("v-if", !0)
|
|
385
|
+
], 6));
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
var Ot = /* @__PURE__ */ pe(Ft, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);
|
|
389
|
+
const At = oe({
|
|
390
|
+
...ke,
|
|
391
|
+
appendToBody: Boolean,
|
|
392
|
+
beforeClose: {
|
|
393
|
+
type: J(Function)
|
|
394
|
+
},
|
|
395
|
+
destroyOnClose: Boolean,
|
|
396
|
+
closeOnClickModal: {
|
|
397
|
+
type: Boolean,
|
|
398
|
+
default: !0
|
|
399
|
+
},
|
|
400
|
+
closeOnPressEscape: {
|
|
401
|
+
type: Boolean,
|
|
402
|
+
default: !0
|
|
403
|
+
},
|
|
404
|
+
lockScroll: {
|
|
405
|
+
type: Boolean,
|
|
406
|
+
default: !0
|
|
407
|
+
},
|
|
408
|
+
modal: {
|
|
409
|
+
type: Boolean,
|
|
410
|
+
default: !0
|
|
411
|
+
},
|
|
412
|
+
openDelay: {
|
|
413
|
+
type: Number,
|
|
414
|
+
default: 0
|
|
415
|
+
},
|
|
416
|
+
closeDelay: {
|
|
417
|
+
type: Number,
|
|
418
|
+
default: 0
|
|
419
|
+
},
|
|
420
|
+
top: {
|
|
421
|
+
type: String
|
|
422
|
+
},
|
|
423
|
+
modelValue: Boolean,
|
|
424
|
+
modalClass: String,
|
|
425
|
+
width: {
|
|
426
|
+
type: [String, Number]
|
|
427
|
+
},
|
|
428
|
+
zIndex: {
|
|
429
|
+
type: Number
|
|
430
|
+
},
|
|
431
|
+
trapFocus: {
|
|
432
|
+
type: Boolean,
|
|
433
|
+
default: !1
|
|
434
|
+
},
|
|
435
|
+
headerAriaLevel: {
|
|
436
|
+
type: String,
|
|
437
|
+
default: "2"
|
|
438
|
+
}
|
|
439
|
+
}), $t = {
|
|
440
|
+
open: () => !0,
|
|
441
|
+
opened: () => !0,
|
|
442
|
+
close: () => !0,
|
|
443
|
+
closed: () => !0,
|
|
444
|
+
[he]: (e) => Ke(e),
|
|
445
|
+
openAutoFocus: () => !0,
|
|
446
|
+
closeAutoFocus: () => !0
|
|
447
|
+
}, Pt = (e, t) => {
|
|
448
|
+
const l = Be().emit, { nextZIndex: o } = tt();
|
|
449
|
+
let a = "";
|
|
450
|
+
const i = le(), c = le(), d = T(!1), m = T(!1), f = T(!1), g = T(e.zIndex || o());
|
|
451
|
+
let v, u;
|
|
452
|
+
const _ = nt("namespace", Ge), N = I(() => {
|
|
453
|
+
const h = {}, S = `--${_.value}-dialog`;
|
|
454
|
+
return e.fullscreen || (e.top && (h[`${S}-margin-top`] = e.top), e.width && (h[`${S}-width`] = Z(e.width))), h;
|
|
455
|
+
}), $ = I(() => e.alignCenter ? { display: "flex" } : {});
|
|
456
|
+
function P() {
|
|
457
|
+
l("opened");
|
|
458
|
+
}
|
|
459
|
+
function B() {
|
|
460
|
+
l("closed"), l(he, !1), e.destroyOnClose && (f.value = !1);
|
|
461
|
+
}
|
|
462
|
+
function R() {
|
|
463
|
+
l("close");
|
|
464
|
+
}
|
|
465
|
+
function F() {
|
|
466
|
+
u == null || u(), v == null || v(), e.openDelay && e.openDelay > 0 ? { stop: v } = ae(() => p(), e.openDelay) : p();
|
|
467
|
+
}
|
|
468
|
+
function k() {
|
|
469
|
+
v == null || v(), u == null || u(), e.closeDelay && e.closeDelay > 0 ? { stop: u } = ae(() => b(), e.closeDelay) : b();
|
|
470
|
+
}
|
|
471
|
+
function w() {
|
|
472
|
+
function h(S) {
|
|
473
|
+
S || (m.value = !0, d.value = !1);
|
|
474
|
+
}
|
|
475
|
+
e.beforeClose ? e.beforeClose(h) : k();
|
|
476
|
+
}
|
|
477
|
+
function O() {
|
|
478
|
+
e.closeOnClickModal && w();
|
|
479
|
+
}
|
|
480
|
+
function p() {
|
|
481
|
+
me && (d.value = !0);
|
|
482
|
+
}
|
|
483
|
+
function b() {
|
|
484
|
+
d.value = !1;
|
|
485
|
+
}
|
|
486
|
+
function r() {
|
|
487
|
+
l("openAutoFocus");
|
|
488
|
+
}
|
|
489
|
+
function y() {
|
|
490
|
+
l("closeAutoFocus");
|
|
491
|
+
}
|
|
492
|
+
function L(h) {
|
|
493
|
+
var S;
|
|
494
|
+
((S = h.detail) == null ? void 0 : S.focusReason) === "pointer" && h.preventDefault();
|
|
495
|
+
}
|
|
496
|
+
e.lockScroll && Et(d);
|
|
497
|
+
function we() {
|
|
498
|
+
e.closeOnPressEscape && w();
|
|
499
|
+
}
|
|
500
|
+
return q(() => e.modelValue, (h) => {
|
|
501
|
+
h ? (m.value = !1, F(), f.value = !0, g.value = e.zIndex ? g.value++ : o(), Fe(() => {
|
|
502
|
+
l("open"), t.value && (t.value.scrollTop = 0);
|
|
503
|
+
})) : d.value && k();
|
|
504
|
+
}), q(() => e.fullscreen, (h) => {
|
|
505
|
+
t.value && (h ? (a = t.value.style.transform, t.value.style.transform = "") : t.value.style.transform = a);
|
|
506
|
+
}), ue(() => {
|
|
507
|
+
e.modelValue && (d.value = !0, f.value = !0, F());
|
|
508
|
+
}), {
|
|
509
|
+
afterEnter: P,
|
|
510
|
+
afterLeave: B,
|
|
511
|
+
beforeLeave: R,
|
|
512
|
+
handleClose: w,
|
|
513
|
+
onModalClick: O,
|
|
514
|
+
close: k,
|
|
515
|
+
doClose: b,
|
|
516
|
+
onOpenAutoFocus: r,
|
|
517
|
+
onCloseAutoFocus: y,
|
|
518
|
+
onCloseRequested: we,
|
|
519
|
+
onFocusoutPrevented: L,
|
|
520
|
+
titleId: i,
|
|
521
|
+
bodyId: c,
|
|
522
|
+
closed: m,
|
|
523
|
+
style: N,
|
|
524
|
+
overlayDialogStyle: $,
|
|
525
|
+
rendered: f,
|
|
526
|
+
visible: d,
|
|
527
|
+
zIndex: g
|
|
528
|
+
};
|
|
529
|
+
}, Rt = ["aria-label", "aria-labelledby", "aria-describedby"], Vt = Y({
|
|
530
|
+
name: "ElDialog",
|
|
531
|
+
inheritAttrs: !1
|
|
532
|
+
}), zt = /* @__PURE__ */ Y({
|
|
533
|
+
...Vt,
|
|
534
|
+
props: At,
|
|
535
|
+
emits: $t,
|
|
536
|
+
setup(e, { expose: t }) {
|
|
537
|
+
const s = e, l = Oe();
|
|
538
|
+
ie({
|
|
539
|
+
scope: "el-dialog",
|
|
540
|
+
from: "the title slot",
|
|
541
|
+
replacement: "the header slot",
|
|
542
|
+
version: "3.0.0",
|
|
543
|
+
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
544
|
+
}, I(() => !!l.title)), ie({
|
|
545
|
+
scope: "el-dialog",
|
|
546
|
+
from: "custom-class",
|
|
547
|
+
replacement: "class",
|
|
548
|
+
version: "2.3.0",
|
|
549
|
+
ref: "https://element-plus.org/en-US/component/dialog.html#attributes",
|
|
550
|
+
type: "Attribute"
|
|
551
|
+
}, I(() => !!s.customClass));
|
|
552
|
+
const o = te("dialog"), a = T(), i = T(), c = T(), {
|
|
553
|
+
visible: d,
|
|
554
|
+
titleId: m,
|
|
555
|
+
bodyId: f,
|
|
556
|
+
style: g,
|
|
557
|
+
overlayDialogStyle: v,
|
|
558
|
+
rendered: u,
|
|
559
|
+
zIndex: _,
|
|
560
|
+
afterEnter: N,
|
|
561
|
+
afterLeave: $,
|
|
562
|
+
beforeLeave: P,
|
|
563
|
+
handleClose: B,
|
|
564
|
+
onModalClick: R,
|
|
565
|
+
onOpenAutoFocus: F,
|
|
566
|
+
onCloseAutoFocus: k,
|
|
567
|
+
onCloseRequested: w,
|
|
568
|
+
onFocusoutPrevented: O
|
|
569
|
+
} = Pt(s, a);
|
|
570
|
+
Ae(Ee, {
|
|
571
|
+
dialogRef: a,
|
|
572
|
+
headerRef: i,
|
|
573
|
+
bodyId: f,
|
|
574
|
+
ns: o,
|
|
575
|
+
rendered: u,
|
|
576
|
+
style: g
|
|
577
|
+
});
|
|
578
|
+
const p = be(R), b = I(() => s.draggable && !s.fullscreen);
|
|
579
|
+
return t({
|
|
580
|
+
visible: d,
|
|
581
|
+
dialogContentRef: c
|
|
582
|
+
}), (r, y) => (A(), K($e, {
|
|
583
|
+
to: "body",
|
|
584
|
+
disabled: !r.appendToBody
|
|
585
|
+
}, [
|
|
586
|
+
V(Pe, {
|
|
587
|
+
name: "dialog-fade",
|
|
588
|
+
onAfterEnter: n(N),
|
|
589
|
+
onAfterLeave: n($),
|
|
590
|
+
onBeforeLeave: n(P),
|
|
591
|
+
persisted: ""
|
|
592
|
+
}, {
|
|
593
|
+
default: D(() => [
|
|
594
|
+
Re(V(n(Dt), {
|
|
595
|
+
"custom-mask-event": "",
|
|
596
|
+
mask: r.modal,
|
|
597
|
+
"overlay-class": r.modalClass,
|
|
598
|
+
"z-index": n(_)
|
|
599
|
+
}, {
|
|
600
|
+
default: D(() => [
|
|
601
|
+
H("div", {
|
|
602
|
+
role: "dialog",
|
|
603
|
+
"aria-modal": "true",
|
|
604
|
+
"aria-label": r.title || void 0,
|
|
605
|
+
"aria-labelledby": r.title ? void 0 : n(m),
|
|
606
|
+
"aria-describedby": n(f),
|
|
607
|
+
class: E(`${n(o).namespace.value}-overlay-dialog`),
|
|
608
|
+
style: de(n(v)),
|
|
609
|
+
onClick: y[0] || (y[0] = (...L) => n(p).onClick && n(p).onClick(...L)),
|
|
610
|
+
onMousedown: y[1] || (y[1] = (...L) => n(p).onMousedown && n(p).onMousedown(...L)),
|
|
611
|
+
onMouseup: y[2] || (y[2] = (...L) => n(p).onMouseup && n(p).onMouseup(...L))
|
|
612
|
+
}, [
|
|
613
|
+
V(n(st), {
|
|
614
|
+
loop: "",
|
|
615
|
+
trapped: n(d),
|
|
616
|
+
"focus-start-el": "container",
|
|
617
|
+
onFocusAfterTrapped: n(F),
|
|
618
|
+
onFocusAfterReleased: n(k),
|
|
619
|
+
onFocusoutPrevented: n(O),
|
|
620
|
+
onReleaseRequested: n(w)
|
|
621
|
+
}, {
|
|
622
|
+
default: D(() => [
|
|
623
|
+
n(u) ? (A(), K(Ot, Ve({
|
|
624
|
+
key: 0,
|
|
625
|
+
ref_key: "dialogContentRef",
|
|
626
|
+
ref: c
|
|
627
|
+
}, r.$attrs, {
|
|
628
|
+
"custom-class": r.customClass,
|
|
629
|
+
center: r.center,
|
|
630
|
+
"align-center": r.alignCenter,
|
|
631
|
+
"close-icon": r.closeIcon,
|
|
632
|
+
draggable: n(b),
|
|
633
|
+
fullscreen: r.fullscreen,
|
|
634
|
+
"show-close": r.showClose,
|
|
635
|
+
title: r.title,
|
|
636
|
+
"aria-level": r.headerAriaLevel,
|
|
637
|
+
onClose: n(B)
|
|
638
|
+
}), ze({
|
|
639
|
+
header: D(() => [
|
|
640
|
+
r.$slots.title ? C(r.$slots, "title", { key: 1 }) : C(r.$slots, "header", {
|
|
641
|
+
key: 0,
|
|
642
|
+
close: n(B),
|
|
643
|
+
titleId: n(m),
|
|
644
|
+
titleClass: n(o).e("title")
|
|
645
|
+
})
|
|
646
|
+
]),
|
|
647
|
+
default: D(() => [
|
|
648
|
+
C(r.$slots, "default")
|
|
649
|
+
]),
|
|
650
|
+
_: 2
|
|
651
|
+
}, [
|
|
652
|
+
r.$slots.footer ? {
|
|
653
|
+
name: "footer",
|
|
654
|
+
fn: D(() => [
|
|
655
|
+
C(r.$slots, "footer")
|
|
656
|
+
])
|
|
657
|
+
} : void 0
|
|
658
|
+
]), 1040, ["custom-class", "center", "align-center", "close-icon", "draggable", "fullscreen", "show-close", "title", "aria-level", "onClose"])) : G("v-if", !0)
|
|
659
|
+
]),
|
|
660
|
+
_: 3
|
|
661
|
+
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
662
|
+
], 46, Rt)
|
|
663
|
+
]),
|
|
664
|
+
_: 3
|
|
665
|
+
}, 8, ["mask", "overlay-class", "z-index"]), [
|
|
666
|
+
[Ye, n(d)]
|
|
667
|
+
])
|
|
668
|
+
]),
|
|
669
|
+
_: 3
|
|
670
|
+
}, 8, ["onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
671
|
+
], 8, ["disabled"]));
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
var Yt = /* @__PURE__ */ pe(zt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);
|
|
675
|
+
const Kt = Ze(Yt);
|
|
676
|
+
export {
|
|
677
|
+
Kt as E
|
|
678
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),l=require("./el-button-65e4598f.cjs"),s=require("./use-form-item-67e7ef93.cjs"),p=require("./el-tag-c9d5baa7.cjs"),o=require("./base-8776b83e.cjs"),h=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}}),v={confirm:n=>n instanceof MouseEvent,cancel:n=>n instanceof MouseEvent},g=e.defineComponent({name:"ElPopconfirm"}),k=e.defineComponent({...g,props:h,emits:v,setup(n,{emit:a}){const c=n,{t:u}=o.useLocale(),r=o.useNamespace("popconfirm"),f=e.ref(),m=()=>{var t,i;(i=(t=f.value)==null?void 0:t.onClose)==null||i.call(t)},d=e.computed(()=>({width:o.addUnit(c.width)})),y=t=>{a("confirm",t),m()},B=t=>{a("cancel",t),m()},T=e.computed(()=>c.confirmButtonText||u("el.popconfirm.confirmButtonText")),C=e.computed(()=>c.cancelButtonText||u("el.popconfirm.cancelButtonText"));return(t,i)=>(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(d),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.createVNode(e.unref(l.ElButton),{size:"small",type:t.cancelButtonType==="text"?"":t.cancelButtonType,text:t.cancelButtonType==="text",onClick:B},{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:y},{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 E=o._export_sfc(k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const N=o.withInstall(E);exports.ElPopconfirm=N;
|