st-comp 0.0.122 → 0.0.124
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.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +14 -13
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +26 -25
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +849 -1605
- package/es/KlineBasic.cjs +6 -0
- package/es/KlineBasic.js +2888 -0
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +12 -12
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +18 -17
- package/es/Pie.cjs +1 -1
- package/es/Pie.js +1 -1
- package/es/Table.cjs +1 -1
- package/es/Table.js +18 -17
- package/es/User.cjs +1 -1
- package/es/User.js +75 -74
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +903 -1253
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +13 -12
- package/es/{base-f7877059.js → base-a8f938bd.js} +6 -6
- package/es/{castArray-18f43497.js → castArray-5c01dae1.js} +1 -1
- package/es/config-provider-4954003d.cjs +1 -0
- package/es/{config-provider-6479d795.js → config-provider-d3edea8a.js} +3 -3
- package/es/{debounce-2336e546.js → debounce-edbff018.js} +10 -10
- package/es/{dropdown-46daf582.js → dropdown-7e381525.js} +4 -4
- package/es/el-button-c7b375c4.cjs +1 -0
- package/es/{el-button-802f579a.js → el-button-ce99c64e.js} +6 -5
- package/es/{el-empty-3c5ec277.js → el-empty-ed6c115b.js} +1 -1
- package/es/{el-form-item-84099d46.js → el-form-item-b686a8bb.js} +9 -9
- package/es/{el-form-item-c39f717e.cjs → el-form-item-ff0d8d07.cjs} +1 -1
- package/es/{el-input-fac5b401.js → el-input-21e079e4.js} +5 -5
- package/es/el-menu-item-9369a2ad.js +771 -0
- package/es/el-menu-item-dc904a35.cjs +1 -0
- package/es/el-message-e97bdea1.cjs +1 -0
- package/es/el-message-fd827012.js +374 -0
- package/es/el-overlay-7b90d61c.cjs +1 -0
- package/es/{el-overlay-69e9ae49.js → el-overlay-9245ec1e.js} +77 -76
- package/es/{el-popover-694ded47.js → el-popover-6f075cee.js} +4 -4
- package/es/{el-popover-8735b1fa.cjs → el-popover-6f48d00b.cjs} +1 -1
- package/es/{el-popper-6126b1f6.js → el-popper-8dca8dd4.js} +4 -4
- package/es/{el-scrollbar-e0493906.js → el-scrollbar-906103f8.js} +1 -1
- package/es/{el-select-513126a5.js → el-select-6d6093eb.js} +10 -10
- package/es/el-table-column-26e7f13f.cjs +14 -0
- package/es/{el-table-column-3c920bdd.js → el-table-column-3f388c44.js} +15 -14
- package/es/{el-tag-5becabc9.js → el-tag-cdf0019e.js} +19 -19
- package/es/{index-7e40be25.js → index-53bce290.js} +3 -3
- package/es/index-669a0983.js +14 -0
- package/es/{index-048dca7e.js → index-6ced00c4.js} +1 -1
- package/es/index-c4649a37.cjs +3 -0
- package/es/{index-dc273ea2.cjs → index-d1b7c61e.cjs} +39 -39
- package/es/{index-57f8f7b9.js → index-f8e448bc.js} +5893 -5856
- package/es/{raf-07da7cdf.js → raf-b584bce8.js} +1 -1
- package/es/{refs-1b1fe6ca.js → refs-e1675167.js} +1 -1
- package/es/{scroll-3b521d81.js → scroll-25ec9230.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-f3a520d0.js → use-form-common-props-f7d2e83c.js} +18 -18
- package/es/use-global-config-8429db7d.js +72 -0
- package/es/{index-8a0b1c53.cjs → use-global-config-ac2dad80.cjs} +1 -3
- package/es/{vnode-25d7c2f5.js → vnode-699e61cb.js} +1 -1
- package/es/{zh-cn-74781bbd.js → zh-cn-61ca7f91.js} +2 -2
- package/es/{zh-cn-ab9a583d.cjs → zh-cn-a20960b5.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +213 -208
- package/lib/{index-62c62885.js → index-741ecbcc.js} +38391 -35484
- package/lib/{python-6cdad7a6.js → python-5a672b35.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/packages/KlineBasic/api.js +60 -0
- package/packages/KlineBasic/components/Contextmenu/index.vue +105 -0
- package/packages/KlineBasic/components/KlineSub/index.vue +297 -0
- package/packages/KlineBasic/components/KlineTips/index.vue +66 -0
- package/packages/KlineBasic/components/Tips/index.vue +33 -0
- package/packages/KlineBasic/index.ts +8 -0
- package/packages/KlineBasic/index.vue +565 -0
- package/packages/KlineBasic/utils.js +86 -0
- package/packages/VarietySearch/components/FactorScreen/index.vue +7 -7
- package/packages/index.ts +2 -0
- package/src/main.ts +2 -0
- package/src/pages/KlineBasic/api.js +45 -0
- package/src/pages/KlineBasic/index.vue +74 -0
- package/src/pages/KlineBasic/indicator.js +114 -0
- package/src/pages/VarietySearch/index.vue +3 -2
- package/src/router/routes.ts +5 -0
- package/es/config-provider-7cdfca4d.cjs +0 -1
- package/es/el-button-196807af.cjs +0 -1
- package/es/el-overlay-891dcc40.cjs +0 -1
- package/es/el-table-column-dd8b62aa.cjs +0 -14
- package/es/index-35117549.js +0 -81
package/es/User.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { b as Fe, d as X, _ as z, u as oe, x as Re, y as Se, e as me, w as ke, v as ve } from "./base-
|
|
2
|
-
import { E as _e } from "./el-button-
|
|
3
|
-
import { c as P, d as Oe, E as De, O as Pe, w as ue } from "./el-popper-
|
|
4
|
-
import { b as Ne } from "./el-scrollbar-
|
|
1
|
+
import { b as Fe, d as X, _ as z, u as oe, x as Re, y as Se, e as me, w as ke, v as ve } from "./base-a8f938bd.js";
|
|
2
|
+
import { E as _e } from "./el-button-ce99c64e.js";
|
|
3
|
+
import { c as P, d as Oe, E as De, O as Pe, w as ue } from "./el-popper-8dca8dd4.js";
|
|
4
|
+
import { b as Ne } from "./el-scrollbar-906103f8.js";
|
|
5
5
|
import { defineComponent as K, ref as $, inject as y, computed as T, provide as W, readonly as Be, toRef as H, unref as E, watch as ge, renderSlot as N, resolveComponent as I, openBlock as F, createBlock as V, withCtx as p, createVNode as m, normalizeProps as Ke, guardReactiveProps as Le, getCurrentInstance as we, onBeforeUnmount as Me, createElementBlock as A, normalizeClass as j, createSlots as Ge, mergeProps as q, createCommentVNode as Z, nextTick as Ae, Fragment as ze, createElementVNode as x, withModifiers as ee, resolveDynamicComponent as Ue, normalizeStyle as Ve, createTextVNode as ce, toDisplayString as Ye } from "vue";
|
|
6
|
-
import { E as ne, g as be, a as He, s as Je, t as We } from "./use-form-common-props-
|
|
7
|
-
import { V as je, A as qe, K as Qe } from "./index-
|
|
8
|
-
import { c as Xe, E as Ze, d as xe, a as he, C as eo, b as oo, e as no, f as to, g as
|
|
9
|
-
import { E as R, F as io } from "./index-
|
|
10
|
-
import { c as ao } from "./castArray-
|
|
11
|
-
import { c as Ie } from "./refs-
|
|
6
|
+
import { E as ne, g as be, a as He, s as Je, t as We } from "./use-form-common-props-f7d2e83c.js";
|
|
7
|
+
import { V as je, A as qe, K as Qe } from "./index-f8e448bc.js";
|
|
8
|
+
import { c as Xe, E as Ze, d as xe, a as he, C as eo, b as oo, e as no, f as to, g as ro, F as lo, L as so } from "./dropdown-7e381525.js";
|
|
9
|
+
import { E as R, F as io } from "./index-6ced00c4.js";
|
|
10
|
+
import { c as ao } from "./castArray-5c01dae1.js";
|
|
11
|
+
import { c as Ie } from "./refs-e1675167.js";
|
|
12
12
|
import { _ as uo } from "./_plugin-vue_export-helper-dad06003.js";
|
|
13
|
-
import "./index-
|
|
13
|
+
import "./index-669a0983.js";
|
|
14
|
+
import "./use-global-config-8429db7d.js";
|
|
14
15
|
import "./index-657047bb.js";
|
|
15
16
|
const co = Fe({
|
|
16
17
|
style: { type: X([String, Array, Object]) },
|
|
@@ -35,7 +36,7 @@ const co = Fe({
|
|
|
35
36
|
ElCollectionItem: fo,
|
|
36
37
|
COLLECTION_INJECTION_KEY: te,
|
|
37
38
|
COLLECTION_ITEM_INJECTION_KEY: mo
|
|
38
|
-
} = Xe("RovingFocusGroup"),
|
|
39
|
+
} = Xe("RovingFocusGroup"), re = Symbol("elRovingFocusGroup"), Ee = Symbol("elRovingFocusGroupItem"), vo = {
|
|
39
40
|
ArrowLeft: "prev",
|
|
40
41
|
ArrowUp: "prev",
|
|
41
42
|
ArrowRight: "next",
|
|
@@ -59,7 +60,7 @@ const co = Fe({
|
|
|
59
60
|
const t = _o(e.code, s);
|
|
60
61
|
if (!(n === "vertical" && [R.left, R.right].includes(t)) && !(n === "horizontal" && [R.up, R.down].includes(t)))
|
|
61
62
|
return vo[t];
|
|
62
|
-
}, wo = (e, n) => e.map((s, t) => e[(t + n) % e.length]),
|
|
63
|
+
}, wo = (e, n) => e.map((s, t) => e[(t + n) % e.length]), le = (e) => {
|
|
63
64
|
const { activeElement: n } = document;
|
|
64
65
|
for (const s of e)
|
|
65
66
|
if (s === n || (s.focus(), n !== document.activeElement))
|
|
@@ -71,7 +72,7 @@ const co = Fe({
|
|
|
71
72
|
emits: [pe, "entryFocus"],
|
|
72
73
|
setup(e, { emit: n }) {
|
|
73
74
|
var s;
|
|
74
|
-
const t = $((s = e.currentTabId || e.defaultCurrentTabId) != null ? s : null), u = $(!1), a = $(!1), i = $(null), { getItems:
|
|
75
|
+
const t = $((s = e.currentTabId || e.defaultCurrentTabId) != null ? s : null), u = $(!1), a = $(!1), i = $(null), { getItems: l } = y(te, void 0), f = T(() => [
|
|
75
76
|
{
|
|
76
77
|
outline: "none"
|
|
77
78
|
},
|
|
@@ -93,8 +94,8 @@ const co = Fe({
|
|
|
93
94
|
if (B === S && _ && !E(u)) {
|
|
94
95
|
const L = new Event(fe, bo);
|
|
95
96
|
if (S == null || S.dispatchEvent(L), !L.defaultPrevented) {
|
|
96
|
-
const b =
|
|
97
|
-
|
|
97
|
+
const b = l().filter((k) => k.focusable), O = b.find((k) => k.active), C = b.find((k) => k.id === E(t)), G = [O, C, ...b].filter(Boolean).map((k) => k.ref);
|
|
98
|
+
le(G);
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
a.value = !1;
|
|
@@ -106,7 +107,7 @@ const co = Fe({
|
|
|
106
107
|
}), d = (...c) => {
|
|
107
108
|
n("entryFocus", ...c);
|
|
108
109
|
};
|
|
109
|
-
W(
|
|
110
|
+
W(re, {
|
|
110
111
|
currentTabbedId: Be(t),
|
|
111
112
|
loop: H(e, "loop"),
|
|
112
113
|
tabIndex: T(() => E(u) ? -1 : 0),
|
|
@@ -136,8 +137,8 @@ const Co = K({
|
|
|
136
137
|
}
|
|
137
138
|
});
|
|
138
139
|
function yo(e, n, s, t, u, a) {
|
|
139
|
-
const i = I("el-roving-focus-group-impl"),
|
|
140
|
-
return F(), V(
|
|
140
|
+
const i = I("el-roving-focus-group-impl"), l = I("el-focus-group-collection");
|
|
141
|
+
return F(), V(l, null, {
|
|
141
142
|
default: p(() => [
|
|
142
143
|
m(i, Ke(Le(e.$attrs)), {
|
|
143
144
|
default: p(() => [
|
|
@@ -166,52 +167,52 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
166
167
|
props: xe,
|
|
167
168
|
emits: ["visible-change", "click", "command"],
|
|
168
169
|
setup(e, { emit: n }) {
|
|
169
|
-
const s = we(), t = oe("dropdown"), { t: u } = Re(), a = $(), i = $(),
|
|
170
|
+
const s = we(), t = oe("dropdown"), { t: u } = Re(), a = $(), i = $(), l = $(null), f = $(null), v = $(null), g = $(null), w = $(!1), h = T(() => ({
|
|
170
171
|
maxHeight: Se(e.maxHeight)
|
|
171
172
|
})), o = T(() => [t.m(b.value)]), d = T(() => ao(e.trigger)), c = me().value, _ = T(() => e.id || c);
|
|
172
|
-
ge([a, d], ([
|
|
173
|
+
ge([a, d], ([r, D], [U]) => {
|
|
173
174
|
var ie, ae, de;
|
|
174
|
-
(ie = U == null ? void 0 : U.$el) != null && ie.removeEventListener && U.$el.removeEventListener("pointerenter", C), (ae =
|
|
175
|
+
(ie = U == null ? void 0 : U.$el) != null && ie.removeEventListener && U.$el.removeEventListener("pointerenter", C), (ae = r == null ? void 0 : r.$el) != null && ae.removeEventListener && r.$el.removeEventListener("pointerenter", C), (de = r == null ? void 0 : r.$el) != null && de.addEventListener && D.includes("hover") && r.$el.addEventListener("pointerenter", C);
|
|
175
176
|
}, { immediate: !0 }), Me(() => {
|
|
176
|
-
var
|
|
177
|
-
(D = (
|
|
177
|
+
var r, D;
|
|
178
|
+
(D = (r = a.value) == null ? void 0 : r.$el) != null && D.removeEventListener && a.value.$el.removeEventListener("pointerenter", C);
|
|
178
179
|
});
|
|
179
180
|
function B() {
|
|
180
181
|
S();
|
|
181
182
|
}
|
|
182
183
|
function S() {
|
|
183
|
-
var
|
|
184
|
-
(
|
|
184
|
+
var r;
|
|
185
|
+
(r = l.value) == null || r.onClose();
|
|
185
186
|
}
|
|
186
187
|
function L() {
|
|
187
|
-
var
|
|
188
|
-
(
|
|
188
|
+
var r;
|
|
189
|
+
(r = l.value) == null || r.onOpen();
|
|
189
190
|
}
|
|
190
191
|
const b = He();
|
|
191
|
-
function O(...
|
|
192
|
-
n("command", ...
|
|
192
|
+
function O(...r) {
|
|
193
|
+
n("command", ...r);
|
|
193
194
|
}
|
|
194
195
|
function C() {
|
|
195
|
-
var
|
|
196
|
-
(D = (
|
|
196
|
+
var r, D;
|
|
197
|
+
(D = (r = a.value) == null ? void 0 : r.$el) == null || D.focus();
|
|
197
198
|
}
|
|
198
199
|
function M() {
|
|
199
200
|
}
|
|
200
201
|
function G() {
|
|
201
|
-
const
|
|
202
|
-
d.value.includes("hover") && (
|
|
202
|
+
const r = E(f);
|
|
203
|
+
d.value.includes("hover") && (r == null || r.focus()), g.value = null;
|
|
203
204
|
}
|
|
204
|
-
function k(
|
|
205
|
-
g.value =
|
|
205
|
+
function k(r) {
|
|
206
|
+
g.value = r;
|
|
206
207
|
}
|
|
207
|
-
function se(
|
|
208
|
-
w.value || (
|
|
208
|
+
function se(r) {
|
|
209
|
+
w.value || (r.preventDefault(), r.stopImmediatePropagation());
|
|
209
210
|
}
|
|
210
211
|
function J() {
|
|
211
212
|
n("visible-change", !0);
|
|
212
213
|
}
|
|
213
|
-
function Y(
|
|
214
|
-
(
|
|
214
|
+
function Y(r) {
|
|
215
|
+
(r == null ? void 0 : r.type) === "keydown" && f.value.focus();
|
|
215
216
|
}
|
|
216
217
|
function $e() {
|
|
217
218
|
n("visible-change", !1);
|
|
@@ -240,8 +241,8 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
240
241
|
triggerId: _,
|
|
241
242
|
currentTabId: g,
|
|
242
243
|
handleCurrentTabIdChange: k,
|
|
243
|
-
handlerMainButtonClick: (
|
|
244
|
-
n("click",
|
|
244
|
+
handlerMainButtonClick: (r) => {
|
|
245
|
+
n("click", r);
|
|
245
246
|
},
|
|
246
247
|
handleEntryFocus: se,
|
|
247
248
|
handleClose: S,
|
|
@@ -249,13 +250,13 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
249
250
|
handleBeforeShowTooltip: J,
|
|
250
251
|
handleShowTooltip: Y,
|
|
251
252
|
handleBeforeHideTooltip: $e,
|
|
252
|
-
onFocusAfterTrapped: (
|
|
253
|
+
onFocusAfterTrapped: (r) => {
|
|
253
254
|
var D, U;
|
|
254
|
-
|
|
255
|
+
r.preventDefault(), (U = (D = f.value) == null ? void 0 : D.focus) == null || U.call(D, {
|
|
255
256
|
preventScroll: !0
|
|
256
257
|
});
|
|
257
258
|
},
|
|
258
|
-
popperRef:
|
|
259
|
+
popperRef: l,
|
|
259
260
|
contentRef: f,
|
|
260
261
|
triggeringElementRef: a,
|
|
261
262
|
referenceElementRef: i
|
|
@@ -264,7 +265,7 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
264
265
|
});
|
|
265
266
|
function Ro(e, n, s, t, u, a) {
|
|
266
267
|
var i;
|
|
267
|
-
const
|
|
268
|
+
const l = I("el-dropdown-collection"), f = I("el-roving-focus-group"), v = I("el-scrollbar"), g = I("el-only-child"), w = I("el-tooltip"), h = I("el-button"), o = I("arrow-down"), d = I("el-icon"), c = I("el-button-group");
|
|
268
269
|
return F(), A("div", {
|
|
269
270
|
class: j([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
270
271
|
}, [
|
|
@@ -312,7 +313,7 @@ function Ro(e, n, s, t, u, a) {
|
|
|
312
313
|
onEntryFocus: e.handleEntryFocus
|
|
313
314
|
}, {
|
|
314
315
|
default: p(() => [
|
|
315
|
-
m(
|
|
316
|
+
m(l, null, {
|
|
316
317
|
default: p(() => [
|
|
317
318
|
N(e.$slots, "dropdown")
|
|
318
319
|
]),
|
|
@@ -404,14 +405,14 @@ const ko = K({
|
|
|
404
405
|
},
|
|
405
406
|
emits: ["mousedown", "focus", "keydown"],
|
|
406
407
|
setup(e, { emit: n }) {
|
|
407
|
-
const { currentTabbedId: s, loop: t, onItemFocus: u, onItemShiftTab: a } = y(
|
|
408
|
+
const { currentTabbedId: s, loop: t, onItemFocus: u, onItemShiftTab: a } = y(re, void 0), { getItems: i } = y(te, void 0), l = me(), f = $(null), v = P((o) => {
|
|
408
409
|
n("mousedown", o);
|
|
409
410
|
}, (o) => {
|
|
410
|
-
e.focusable ? u(E(
|
|
411
|
+
e.focusable ? u(E(l)) : o.preventDefault();
|
|
411
412
|
}), g = P((o) => {
|
|
412
413
|
n("focus", o);
|
|
413
414
|
}, () => {
|
|
414
|
-
u(E(
|
|
415
|
+
u(E(l));
|
|
415
416
|
}), w = P((o) => {
|
|
416
417
|
n("keydown", o);
|
|
417
418
|
}, (o) => {
|
|
@@ -440,10 +441,10 @@ const ko = K({
|
|
|
440
441
|
}
|
|
441
442
|
}
|
|
442
443
|
Ae(() => {
|
|
443
|
-
|
|
444
|
+
le(b);
|
|
444
445
|
});
|
|
445
446
|
}
|
|
446
|
-
}), h = T(() => s.value === E(
|
|
447
|
+
}), h = T(() => s.value === E(l));
|
|
447
448
|
return W(Ee, {
|
|
448
449
|
rovingFocusGroupItemRef: f,
|
|
449
450
|
tabIndex: T(() => E(h) ? 0 : -1),
|
|
@@ -451,7 +452,7 @@ const ko = K({
|
|
|
451
452
|
handleFocus: g,
|
|
452
453
|
handleKeydown: w
|
|
453
454
|
}), {
|
|
454
|
-
id:
|
|
455
|
+
id: l,
|
|
455
456
|
handleKeydown: w,
|
|
456
457
|
handleFocus: g,
|
|
457
458
|
handleMousedown: v
|
|
@@ -482,7 +483,7 @@ const Po = K({
|
|
|
482
483
|
setup(e, { emit: n }) {
|
|
483
484
|
const s = oe("dropdown"), { role: t } = y(Q, void 0), { collectionItemRef: u } = y(eo, void 0), { collectionItemRef: a } = y(mo, void 0), {
|
|
484
485
|
rovingFocusGroupItemRef: i,
|
|
485
|
-
tabIndex:
|
|
486
|
+
tabIndex: l,
|
|
486
487
|
handleFocus: f,
|
|
487
488
|
handleKeydown: v,
|
|
488
489
|
handleMousedown: g
|
|
@@ -497,7 +498,7 @@ const Po = K({
|
|
|
497
498
|
[oo]: ""
|
|
498
499
|
},
|
|
499
500
|
role: h,
|
|
500
|
-
tabIndex:
|
|
501
|
+
tabIndex: l,
|
|
501
502
|
handleFocus: f,
|
|
502
503
|
handleKeydown: o,
|
|
503
504
|
handleMousedown: g
|
|
@@ -517,12 +518,12 @@ function No(e, n, s, t, u, a) {
|
|
|
517
518
|
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
518
519
|
tabindex: e.tabIndex,
|
|
519
520
|
role: e.role,
|
|
520
|
-
onClick: (
|
|
521
|
+
onClick: (l) => e.$emit("clickimpl", l),
|
|
521
522
|
onFocus: e.handleFocus,
|
|
522
523
|
onKeydown: ee(e.handleKeydown, ["self"]),
|
|
523
524
|
onMousedown: e.handleMousedown,
|
|
524
|
-
onPointermove: (
|
|
525
|
-
onPointerleave: (
|
|
525
|
+
onPointermove: (l) => e.$emit("pointermove", l),
|
|
526
|
+
onPointerleave: (l) => e.$emit("pointerleave", l)
|
|
526
527
|
}), [
|
|
527
528
|
e.icon ? (F(), V(i, { key: 0 }, {
|
|
528
529
|
default: p(() => [
|
|
@@ -555,13 +556,13 @@ const Ce = () => {
|
|
|
555
556
|
const { elDropdown: t } = Ce(), u = we(), a = $(null), i = T(() => {
|
|
556
557
|
var o, d;
|
|
557
558
|
return (d = (o = E(a)) == null ? void 0 : o.textContent) != null ? d : "";
|
|
558
|
-
}), { onItemEnter:
|
|
559
|
+
}), { onItemEnter: l, onItemLeave: f } = y(Q, void 0), v = P((o) => (n("pointermove", o), o.defaultPrevented), ue((o) => {
|
|
559
560
|
if (e.disabled) {
|
|
560
561
|
f(o);
|
|
561
562
|
return;
|
|
562
563
|
}
|
|
563
564
|
const d = o.currentTarget;
|
|
564
|
-
d === document.activeElement || d.contains(document.activeElement) || (
|
|
565
|
+
d === document.activeElement || d.contains(document.activeElement) || (l(o), o.defaultPrevented || d == null || d.focus());
|
|
565
566
|
})), g = P((o) => (n("pointerleave", o), o.defaultPrevented), ue(f)), w = P((o) => {
|
|
566
567
|
if (!e.disabled)
|
|
567
568
|
return n("click", o), o.type !== "keydown" && o.defaultPrevented;
|
|
@@ -584,7 +585,7 @@ const Ce = () => {
|
|
|
584
585
|
});
|
|
585
586
|
function Lo(e, n, s, t, u, a) {
|
|
586
587
|
var i;
|
|
587
|
-
const
|
|
588
|
+
const l = I("el-dropdown-item-impl"), f = I("el-roving-focus-item"), v = I("el-dropdown-collection-item");
|
|
588
589
|
return F(), V(v, {
|
|
589
590
|
disabled: e.disabled,
|
|
590
591
|
"text-value": (i = e.textValue) != null ? i : e.textContent
|
|
@@ -594,7 +595,7 @@ function Lo(e, n, s, t, u, a) {
|
|
|
594
595
|
focusable: !e.disabled
|
|
595
596
|
}, {
|
|
596
597
|
default: p(() => [
|
|
597
|
-
m(
|
|
598
|
+
m(l, q(e.propsAndAttrs, {
|
|
598
599
|
onPointerleave: e.handlePointerLeave,
|
|
599
600
|
onPointermove: e.handlePointerMove,
|
|
600
601
|
onClickimpl: e.handleClick
|
|
@@ -616,29 +617,29 @@ const Mo = K({
|
|
|
616
617
|
name: "ElDropdownMenu",
|
|
617
618
|
props: to,
|
|
618
619
|
setup(e) {
|
|
619
|
-
const n = oe("dropdown"), { _elDropdownSize: s } = Ce(), t = s.value, { focusTrapRef: u, onKeydown: a } = y(io, void 0), { contentRef: i, role:
|
|
620
|
+
const n = oe("dropdown"), { _elDropdownSize: s } = Ce(), t = s.value, { focusTrapRef: u, onKeydown: a } = y(io, void 0), { contentRef: i, role: l, triggerId: f } = y(Q, void 0), { collectionRef: v, getItems: g } = y(ro, void 0), {
|
|
620
621
|
rovingFocusGroupRef: w,
|
|
621
622
|
rovingFocusGroupRootStyle: h,
|
|
622
623
|
tabIndex: o,
|
|
623
624
|
onBlur: d,
|
|
624
625
|
onFocus: c,
|
|
625
626
|
onMousedown: _
|
|
626
|
-
} = y(
|
|
627
|
+
} = y(re, void 0), { collectionRef: B } = y(te, void 0), S = T(() => [n.b("menu"), n.bm("menu", t == null ? void 0 : t.value)]), L = Ie(i, v, u, w, B), b = P((C) => {
|
|
627
628
|
var M;
|
|
628
629
|
(M = e.onKeydown) == null || M.call(e, C);
|
|
629
630
|
}, (C) => {
|
|
630
631
|
const { currentTarget: M, code: G, target: k } = C;
|
|
631
|
-
if (M.contains(k), R.tab === G && C.stopImmediatePropagation(), C.preventDefault(), k !== E(i) || !
|
|
632
|
+
if (M.contains(k), R.tab === G && C.stopImmediatePropagation(), C.preventDefault(), k !== E(i) || !lo.includes(G))
|
|
632
633
|
return;
|
|
633
634
|
const J = g().filter((Y) => !Y.disabled).map((Y) => Y.ref);
|
|
634
|
-
so.includes(G) && J.reverse(),
|
|
635
|
+
so.includes(G) && J.reverse(), le(J);
|
|
635
636
|
});
|
|
636
637
|
return {
|
|
637
638
|
size: t,
|
|
638
639
|
rovingFocusGroupRootStyle: h,
|
|
639
640
|
tabIndex: o,
|
|
640
641
|
dropdownKls: S,
|
|
641
|
-
role:
|
|
642
|
+
role: l,
|
|
642
643
|
triggerId: f,
|
|
643
644
|
dropdownListWrapperRef: L,
|
|
644
645
|
handleKeydown: (C) => {
|
|
@@ -683,13 +684,13 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
683
684
|
emits: ["loginout"],
|
|
684
685
|
setup(e, { emit: n }) {
|
|
685
686
|
const s = je(), t = n, u = e, a = () => {
|
|
686
|
-
const { loginUrl:
|
|
687
|
-
qe(
|
|
687
|
+
const { loginUrl: l } = u.config || {};
|
|
688
|
+
qe(l);
|
|
688
689
|
}, i = () => {
|
|
689
|
-
const { loginoutToLogin:
|
|
690
|
-
Qe(
|
|
690
|
+
const { loginoutToLogin: l, loginoutUrl: f } = u.config || {};
|
|
691
|
+
Qe(l, f), t("loginout");
|
|
691
692
|
};
|
|
692
|
-
return (
|
|
693
|
+
return (l, f) => {
|
|
693
694
|
const v = ne, g = zo, w = Uo, h = Ao;
|
|
694
695
|
return F(), A("div", Vo, [
|
|
695
696
|
E(s) ? (F(), A("div", Yo, [
|
|
@@ -746,11 +747,11 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
746
747
|
};
|
|
747
748
|
}
|
|
748
749
|
});
|
|
749
|
-
const Wo = /* @__PURE__ */ uo(Jo, [["__scopeId", "data-v-b83bf27d"]]),
|
|
750
|
+
const Wo = /* @__PURE__ */ uo(Jo, [["__scopeId", "data-v-b83bf27d"]]), pn = {
|
|
750
751
|
install(e) {
|
|
751
752
|
e.component("st-user", Wo);
|
|
752
753
|
}
|
|
753
754
|
};
|
|
754
755
|
export {
|
|
755
|
-
|
|
756
|
+
pn as default
|
|
756
757
|
};
|