st-comp 0.0.126 → 0.0.128
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 +13 -14
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +74 -74
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -14
- package/es/KlineBasic.cjs +1 -6
- package/es/KlineBasic.js +863 -2449
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +12 -12
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +17 -18
- package/es/Pie.cjs +1 -1
- package/es/Pie.js +1 -1
- package/es/Table.cjs +1 -1
- package/es/Table.js +17 -18
- package/es/User.cjs +1 -1
- package/es/User.js +74 -75
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +34 -34
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +12 -13
- package/es/{base-a8f938bd.js → base-3ecbc734.js} +2 -2
- package/es/{castArray-5c01dae1.js → castArray-7d3fc921.js} +1 -1
- package/es/config-provider-7cdfca4d.cjs +1 -0
- package/es/{config-provider-d3edea8a.js → config-provider-83904b4d.js} +3 -3
- package/es/{debounce-edbff018.js → debounce-7344b088.js} +1 -1
- package/es/{dropdown-7e381525.js → dropdown-7da44c8f.js} +4 -4
- package/es/el-button-196807af.cjs +1 -0
- package/es/{el-button-ce99c64e.js → el-button-24f79286.js} +5 -6
- package/es/{el-empty-ed6c115b.js → el-empty-79c5f7a8.js} +1 -1
- package/es/el-form-item-7d32befa.cjs +12 -0
- package/es/el-form-item-afc3dcf2.js +1324 -0
- package/es/{el-input-21e079e4.js → el-input-ee7db655.js} +5 -5
- package/es/el-input-number-0524d787.cjs +1 -0
- package/es/el-input-number-63c21037.js +282 -0
- package/es/{el-menu-item-9369a2ad.js → el-menu-item-0d92e7dc.js} +7 -7
- package/es/el-message-562e923d.cjs +1 -0
- package/es/{el-message-fd827012.js → el-message-71aa42ca.js} +16 -16
- package/es/{el-overlay-9245ec1e.js → el-overlay-6056c89a.js} +76 -77
- package/es/el-overlay-891dcc40.cjs +1 -0
- package/es/{el-popover-6f48d00b.cjs → el-popover-8735b1fa.cjs} +1 -1
- package/es/{el-popover-6f075cee.js → el-popover-c8b2456c.js} +4 -4
- package/es/{el-popper-8dca8dd4.js → el-popper-d3eef7ed.js} +4 -4
- package/es/{el-scrollbar-906103f8.js → el-scrollbar-66f3bb72.js} +1 -1
- package/es/{el-select-6d6093eb.js → el-select-5fb7d469.js} +10 -10
- package/es/{el-table-column-3f388c44.js → el-table-column-560db3aa.js} +14 -15
- package/es/el-table-column-dd8b62aa.cjs +14 -0
- package/es/{el-tag-cdf0019e.js → el-tag-6a31c968.js} +3 -3
- package/es/index-68ee64fa.js +81 -0
- package/es/{index-f8e448bc.js → index-8542fe24.js} +3924 -3873
- package/es/{use-global-config-ac2dad80.cjs → index-8a0b1c53.cjs} +3 -1
- package/es/{index-53bce290.js → index-a1ecf26c.js} +3 -3
- package/es/{index-d1b7c61e.cjs → index-a96158ae.cjs} +41 -36
- package/es/{index-6ced00c4.js → index-fa07a823.js} +1 -1
- package/es/{raf-b584bce8.js → raf-377cf8f5.js} +1 -1
- package/es/{refs-e1675167.js → refs-46cf8186.js} +1 -1
- package/es/{scroll-25ec9230.js → scroll-1efa8148.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-f7d2e83c.js → use-form-common-props-9c0363ac.js} +1 -1
- package/es/{vnode-699e61cb.js → vnode-cfcdab70.js} +1 -1
- package/es/{zh-cn-61ca7f91.js → zh-cn-4a476dc8.js} +2 -2
- package/es/{zh-cn-a20960b5.cjs → zh-cn-ab9a583d.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +202 -202
- package/lib/{index-0207fed8.js → index-c2cabc8b.js} +32548 -34091
- package/lib/{python-cac37206.js → python-d3e3fec3.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/api.js +39 -41
- package/packages/KlineBasic/index.vue +207 -159
- package/packages/KlineBasic/utils.js +173 -72
- package/src/pages/KlineBasic/index.vue +1 -0
- package/es/config-provider-4954003d.cjs +0 -1
- package/es/el-button-c7b375c4.cjs +0 -1
- package/es/el-form-item-b686a8bb.js +0 -1599
- package/es/el-form-item-ff0d8d07.cjs +0 -12
- package/es/el-message-e97bdea1.cjs +0 -1
- package/es/el-overlay-7b90d61c.cjs +0 -1
- package/es/el-table-column-26e7f13f.cjs +0 -14
- package/es/index-669a0983.js +0 -14
- package/es/index-c4649a37.cjs +0 -3
- package/es/use-global-config-8429db7d.js +0 -72
package/es/User.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
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-3ecbc734.js";
|
|
2
|
+
import { E as _e } from "./el-button-24f79286.js";
|
|
3
|
+
import { c as P, d as Oe, E as De, O as Pe, w as ue } from "./el-popper-d3eef7ed.js";
|
|
4
|
+
import { b as Ne } from "./el-scrollbar-66f3bb72.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-9c0363ac.js";
|
|
7
|
+
import { V as je, A as qe, K as Qe } from "./index-8542fe24.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 lo, F as ro, L as so } from "./dropdown-7da44c8f.js";
|
|
9
|
+
import { E as R, F as io } from "./index-fa07a823.js";
|
|
10
|
+
import { c as ao } from "./castArray-7d3fc921.js";
|
|
11
|
+
import { c as Ie } from "./refs-46cf8186.js";
|
|
12
12
|
import { _ as uo } from "./_plugin-vue_export-helper-dad06003.js";
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./use-global-config-8429db7d.js";
|
|
13
|
+
import "./index-68ee64fa.js";
|
|
15
14
|
import "./index-657047bb.js";
|
|
16
15
|
const co = Fe({
|
|
17
16
|
style: { type: X([String, Array, Object]) },
|
|
@@ -36,7 +35,7 @@ const co = Fe({
|
|
|
36
35
|
ElCollectionItem: fo,
|
|
37
36
|
COLLECTION_INJECTION_KEY: te,
|
|
38
37
|
COLLECTION_ITEM_INJECTION_KEY: mo
|
|
39
|
-
} = Xe("RovingFocusGroup"),
|
|
38
|
+
} = Xe("RovingFocusGroup"), le = Symbol("elRovingFocusGroup"), Ee = Symbol("elRovingFocusGroupItem"), vo = {
|
|
40
39
|
ArrowLeft: "prev",
|
|
41
40
|
ArrowUp: "prev",
|
|
42
41
|
ArrowRight: "next",
|
|
@@ -60,7 +59,7 @@ const co = Fe({
|
|
|
60
59
|
const t = _o(e.code, s);
|
|
61
60
|
if (!(n === "vertical" && [R.left, R.right].includes(t)) && !(n === "horizontal" && [R.up, R.down].includes(t)))
|
|
62
61
|
return vo[t];
|
|
63
|
-
}, wo = (e, n) => e.map((s, t) => e[(t + n) % e.length]),
|
|
62
|
+
}, wo = (e, n) => e.map((s, t) => e[(t + n) % e.length]), re = (e) => {
|
|
64
63
|
const { activeElement: n } = document;
|
|
65
64
|
for (const s of e)
|
|
66
65
|
if (s === n || (s.focus(), n !== document.activeElement))
|
|
@@ -72,7 +71,7 @@ const co = Fe({
|
|
|
72
71
|
emits: [pe, "entryFocus"],
|
|
73
72
|
setup(e, { emit: n }) {
|
|
74
73
|
var s;
|
|
75
|
-
const t = $((s = e.currentTabId || e.defaultCurrentTabId) != null ? s : null), u = $(!1), a = $(!1), i = $(null), { getItems:
|
|
74
|
+
const t = $((s = e.currentTabId || e.defaultCurrentTabId) != null ? s : null), u = $(!1), a = $(!1), i = $(null), { getItems: r } = y(te, void 0), f = T(() => [
|
|
76
75
|
{
|
|
77
76
|
outline: "none"
|
|
78
77
|
},
|
|
@@ -94,8 +93,8 @@ const co = Fe({
|
|
|
94
93
|
if (B === S && _ && !E(u)) {
|
|
95
94
|
const L = new Event(fe, bo);
|
|
96
95
|
if (S == null || S.dispatchEvent(L), !L.defaultPrevented) {
|
|
97
|
-
const b =
|
|
98
|
-
|
|
96
|
+
const b = r().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);
|
|
97
|
+
re(G);
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
a.value = !1;
|
|
@@ -107,7 +106,7 @@ const co = Fe({
|
|
|
107
106
|
}), d = (...c) => {
|
|
108
107
|
n("entryFocus", ...c);
|
|
109
108
|
};
|
|
110
|
-
W(
|
|
109
|
+
W(le, {
|
|
111
110
|
currentTabbedId: Be(t),
|
|
112
111
|
loop: H(e, "loop"),
|
|
113
112
|
tabIndex: T(() => E(u) ? -1 : 0),
|
|
@@ -137,8 +136,8 @@ const Co = K({
|
|
|
137
136
|
}
|
|
138
137
|
});
|
|
139
138
|
function yo(e, n, s, t, u, a) {
|
|
140
|
-
const i = I("el-roving-focus-group-impl"),
|
|
141
|
-
return F(), V(
|
|
139
|
+
const i = I("el-roving-focus-group-impl"), r = I("el-focus-group-collection");
|
|
140
|
+
return F(), V(r, null, {
|
|
142
141
|
default: p(() => [
|
|
143
142
|
m(i, Ke(Le(e.$attrs)), {
|
|
144
143
|
default: p(() => [
|
|
@@ -167,52 +166,52 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
167
166
|
props: xe,
|
|
168
167
|
emits: ["visible-change", "click", "command"],
|
|
169
168
|
setup(e, { emit: n }) {
|
|
170
|
-
const s = we(), t = oe("dropdown"), { t: u } = Re(), a = $(), i = $(),
|
|
169
|
+
const s = we(), t = oe("dropdown"), { t: u } = Re(), a = $(), i = $(), r = $(null), f = $(null), v = $(null), g = $(null), w = $(!1), h = T(() => ({
|
|
171
170
|
maxHeight: Se(e.maxHeight)
|
|
172
171
|
})), o = T(() => [t.m(b.value)]), d = T(() => ao(e.trigger)), c = me().value, _ = T(() => e.id || c);
|
|
173
|
-
ge([a, d], ([
|
|
172
|
+
ge([a, d], ([l, D], [U]) => {
|
|
174
173
|
var ie, ae, de;
|
|
175
|
-
(ie = U == null ? void 0 : U.$el) != null && ie.removeEventListener && U.$el.removeEventListener("pointerenter", C), (ae =
|
|
174
|
+
(ie = U == null ? void 0 : U.$el) != null && ie.removeEventListener && U.$el.removeEventListener("pointerenter", C), (ae = l == null ? void 0 : l.$el) != null && ae.removeEventListener && l.$el.removeEventListener("pointerenter", C), (de = l == null ? void 0 : l.$el) != null && de.addEventListener && D.includes("hover") && l.$el.addEventListener("pointerenter", C);
|
|
176
175
|
}, { immediate: !0 }), Me(() => {
|
|
177
|
-
var
|
|
178
|
-
(D = (
|
|
176
|
+
var l, D;
|
|
177
|
+
(D = (l = a.value) == null ? void 0 : l.$el) != null && D.removeEventListener && a.value.$el.removeEventListener("pointerenter", C);
|
|
179
178
|
});
|
|
180
179
|
function B() {
|
|
181
180
|
S();
|
|
182
181
|
}
|
|
183
182
|
function S() {
|
|
184
|
-
var
|
|
185
|
-
(
|
|
183
|
+
var l;
|
|
184
|
+
(l = r.value) == null || l.onClose();
|
|
186
185
|
}
|
|
187
186
|
function L() {
|
|
188
|
-
var
|
|
189
|
-
(
|
|
187
|
+
var l;
|
|
188
|
+
(l = r.value) == null || l.onOpen();
|
|
190
189
|
}
|
|
191
190
|
const b = He();
|
|
192
|
-
function O(...
|
|
193
|
-
n("command", ...
|
|
191
|
+
function O(...l) {
|
|
192
|
+
n("command", ...l);
|
|
194
193
|
}
|
|
195
194
|
function C() {
|
|
196
|
-
var
|
|
197
|
-
(D = (
|
|
195
|
+
var l, D;
|
|
196
|
+
(D = (l = a.value) == null ? void 0 : l.$el) == null || D.focus();
|
|
198
197
|
}
|
|
199
198
|
function M() {
|
|
200
199
|
}
|
|
201
200
|
function G() {
|
|
202
|
-
const
|
|
203
|
-
d.value.includes("hover") && (
|
|
201
|
+
const l = E(f);
|
|
202
|
+
d.value.includes("hover") && (l == null || l.focus()), g.value = null;
|
|
204
203
|
}
|
|
205
|
-
function k(
|
|
206
|
-
g.value =
|
|
204
|
+
function k(l) {
|
|
205
|
+
g.value = l;
|
|
207
206
|
}
|
|
208
|
-
function se(
|
|
209
|
-
w.value || (
|
|
207
|
+
function se(l) {
|
|
208
|
+
w.value || (l.preventDefault(), l.stopImmediatePropagation());
|
|
210
209
|
}
|
|
211
210
|
function J() {
|
|
212
211
|
n("visible-change", !0);
|
|
213
212
|
}
|
|
214
|
-
function Y(
|
|
215
|
-
(
|
|
213
|
+
function Y(l) {
|
|
214
|
+
(l == null ? void 0 : l.type) === "keydown" && f.value.focus();
|
|
216
215
|
}
|
|
217
216
|
function $e() {
|
|
218
217
|
n("visible-change", !1);
|
|
@@ -241,8 +240,8 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
241
240
|
triggerId: _,
|
|
242
241
|
currentTabId: g,
|
|
243
242
|
handleCurrentTabIdChange: k,
|
|
244
|
-
handlerMainButtonClick: (
|
|
245
|
-
n("click",
|
|
243
|
+
handlerMainButtonClick: (l) => {
|
|
244
|
+
n("click", l);
|
|
246
245
|
},
|
|
247
246
|
handleEntryFocus: se,
|
|
248
247
|
handleClose: S,
|
|
@@ -250,13 +249,13 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
250
249
|
handleBeforeShowTooltip: J,
|
|
251
250
|
handleShowTooltip: Y,
|
|
252
251
|
handleBeforeHideTooltip: $e,
|
|
253
|
-
onFocusAfterTrapped: (
|
|
252
|
+
onFocusAfterTrapped: (l) => {
|
|
254
253
|
var D, U;
|
|
255
|
-
|
|
254
|
+
l.preventDefault(), (U = (D = f.value) == null ? void 0 : D.focus) == null || U.call(D, {
|
|
256
255
|
preventScroll: !0
|
|
257
256
|
});
|
|
258
257
|
},
|
|
259
|
-
popperRef:
|
|
258
|
+
popperRef: r,
|
|
260
259
|
contentRef: f,
|
|
261
260
|
triggeringElementRef: a,
|
|
262
261
|
referenceElementRef: i
|
|
@@ -265,7 +264,7 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
265
264
|
});
|
|
266
265
|
function Ro(e, n, s, t, u, a) {
|
|
267
266
|
var i;
|
|
268
|
-
const
|
|
267
|
+
const r = 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");
|
|
269
268
|
return F(), A("div", {
|
|
270
269
|
class: j([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
271
270
|
}, [
|
|
@@ -313,7 +312,7 @@ function Ro(e, n, s, t, u, a) {
|
|
|
313
312
|
onEntryFocus: e.handleEntryFocus
|
|
314
313
|
}, {
|
|
315
314
|
default: p(() => [
|
|
316
|
-
m(
|
|
315
|
+
m(r, null, {
|
|
317
316
|
default: p(() => [
|
|
318
317
|
N(e.$slots, "dropdown")
|
|
319
318
|
]),
|
|
@@ -405,14 +404,14 @@ const ko = K({
|
|
|
405
404
|
},
|
|
406
405
|
emits: ["mousedown", "focus", "keydown"],
|
|
407
406
|
setup(e, { emit: n }) {
|
|
408
|
-
const { currentTabbedId: s, loop: t, onItemFocus: u, onItemShiftTab: a } = y(
|
|
407
|
+
const { currentTabbedId: s, loop: t, onItemFocus: u, onItemShiftTab: a } = y(le, void 0), { getItems: i } = y(te, void 0), r = me(), f = $(null), v = P((o) => {
|
|
409
408
|
n("mousedown", o);
|
|
410
409
|
}, (o) => {
|
|
411
|
-
e.focusable ? u(E(
|
|
410
|
+
e.focusable ? u(E(r)) : o.preventDefault();
|
|
412
411
|
}), g = P((o) => {
|
|
413
412
|
n("focus", o);
|
|
414
413
|
}, () => {
|
|
415
|
-
u(E(
|
|
414
|
+
u(E(r));
|
|
416
415
|
}), w = P((o) => {
|
|
417
416
|
n("keydown", o);
|
|
418
417
|
}, (o) => {
|
|
@@ -441,10 +440,10 @@ const ko = K({
|
|
|
441
440
|
}
|
|
442
441
|
}
|
|
443
442
|
Ae(() => {
|
|
444
|
-
|
|
443
|
+
re(b);
|
|
445
444
|
});
|
|
446
445
|
}
|
|
447
|
-
}), h = T(() => s.value === E(
|
|
446
|
+
}), h = T(() => s.value === E(r));
|
|
448
447
|
return W(Ee, {
|
|
449
448
|
rovingFocusGroupItemRef: f,
|
|
450
449
|
tabIndex: T(() => E(h) ? 0 : -1),
|
|
@@ -452,7 +451,7 @@ const ko = K({
|
|
|
452
451
|
handleFocus: g,
|
|
453
452
|
handleKeydown: w
|
|
454
453
|
}), {
|
|
455
|
-
id:
|
|
454
|
+
id: r,
|
|
456
455
|
handleKeydown: w,
|
|
457
456
|
handleFocus: g,
|
|
458
457
|
handleMousedown: v
|
|
@@ -483,7 +482,7 @@ const Po = K({
|
|
|
483
482
|
setup(e, { emit: n }) {
|
|
484
483
|
const s = oe("dropdown"), { role: t } = y(Q, void 0), { collectionItemRef: u } = y(eo, void 0), { collectionItemRef: a } = y(mo, void 0), {
|
|
485
484
|
rovingFocusGroupItemRef: i,
|
|
486
|
-
tabIndex:
|
|
485
|
+
tabIndex: r,
|
|
487
486
|
handleFocus: f,
|
|
488
487
|
handleKeydown: v,
|
|
489
488
|
handleMousedown: g
|
|
@@ -498,7 +497,7 @@ const Po = K({
|
|
|
498
497
|
[oo]: ""
|
|
499
498
|
},
|
|
500
499
|
role: h,
|
|
501
|
-
tabIndex:
|
|
500
|
+
tabIndex: r,
|
|
502
501
|
handleFocus: f,
|
|
503
502
|
handleKeydown: o,
|
|
504
503
|
handleMousedown: g
|
|
@@ -518,12 +517,12 @@ function No(e, n, s, t, u, a) {
|
|
|
518
517
|
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
519
518
|
tabindex: e.tabIndex,
|
|
520
519
|
role: e.role,
|
|
521
|
-
onClick: (
|
|
520
|
+
onClick: (r) => e.$emit("clickimpl", r),
|
|
522
521
|
onFocus: e.handleFocus,
|
|
523
522
|
onKeydown: ee(e.handleKeydown, ["self"]),
|
|
524
523
|
onMousedown: e.handleMousedown,
|
|
525
|
-
onPointermove: (
|
|
526
|
-
onPointerleave: (
|
|
524
|
+
onPointermove: (r) => e.$emit("pointermove", r),
|
|
525
|
+
onPointerleave: (r) => e.$emit("pointerleave", r)
|
|
527
526
|
}), [
|
|
528
527
|
e.icon ? (F(), V(i, { key: 0 }, {
|
|
529
528
|
default: p(() => [
|
|
@@ -556,13 +555,13 @@ const Ce = () => {
|
|
|
556
555
|
const { elDropdown: t } = Ce(), u = we(), a = $(null), i = T(() => {
|
|
557
556
|
var o, d;
|
|
558
557
|
return (d = (o = E(a)) == null ? void 0 : o.textContent) != null ? d : "";
|
|
559
|
-
}), { onItemEnter:
|
|
558
|
+
}), { onItemEnter: r, onItemLeave: f } = y(Q, void 0), v = P((o) => (n("pointermove", o), o.defaultPrevented), ue((o) => {
|
|
560
559
|
if (e.disabled) {
|
|
561
560
|
f(o);
|
|
562
561
|
return;
|
|
563
562
|
}
|
|
564
563
|
const d = o.currentTarget;
|
|
565
|
-
d === document.activeElement || d.contains(document.activeElement) || (
|
|
564
|
+
d === document.activeElement || d.contains(document.activeElement) || (r(o), o.defaultPrevented || d == null || d.focus());
|
|
566
565
|
})), g = P((o) => (n("pointerleave", o), o.defaultPrevented), ue(f)), w = P((o) => {
|
|
567
566
|
if (!e.disabled)
|
|
568
567
|
return n("click", o), o.type !== "keydown" && o.defaultPrevented;
|
|
@@ -585,7 +584,7 @@ const Ce = () => {
|
|
|
585
584
|
});
|
|
586
585
|
function Lo(e, n, s, t, u, a) {
|
|
587
586
|
var i;
|
|
588
|
-
const
|
|
587
|
+
const r = I("el-dropdown-item-impl"), f = I("el-roving-focus-item"), v = I("el-dropdown-collection-item");
|
|
589
588
|
return F(), V(v, {
|
|
590
589
|
disabled: e.disabled,
|
|
591
590
|
"text-value": (i = e.textValue) != null ? i : e.textContent
|
|
@@ -595,7 +594,7 @@ function Lo(e, n, s, t, u, a) {
|
|
|
595
594
|
focusable: !e.disabled
|
|
596
595
|
}, {
|
|
597
596
|
default: p(() => [
|
|
598
|
-
m(
|
|
597
|
+
m(r, q(e.propsAndAttrs, {
|
|
599
598
|
onPointerleave: e.handlePointerLeave,
|
|
600
599
|
onPointermove: e.handlePointerMove,
|
|
601
600
|
onClickimpl: e.handleClick
|
|
@@ -617,29 +616,29 @@ const Mo = K({
|
|
|
617
616
|
name: "ElDropdownMenu",
|
|
618
617
|
props: to,
|
|
619
618
|
setup(e) {
|
|
620
|
-
const n = oe("dropdown"), { _elDropdownSize: s } = Ce(), t = s.value, { focusTrapRef: u, onKeydown: a } = y(io, void 0), { contentRef: i, role:
|
|
619
|
+
const n = oe("dropdown"), { _elDropdownSize: s } = Ce(), t = s.value, { focusTrapRef: u, onKeydown: a } = y(io, void 0), { contentRef: i, role: r, triggerId: f } = y(Q, void 0), { collectionRef: v, getItems: g } = y(lo, void 0), {
|
|
621
620
|
rovingFocusGroupRef: w,
|
|
622
621
|
rovingFocusGroupRootStyle: h,
|
|
623
622
|
tabIndex: o,
|
|
624
623
|
onBlur: d,
|
|
625
624
|
onFocus: c,
|
|
626
625
|
onMousedown: _
|
|
627
|
-
} = y(
|
|
626
|
+
} = y(le, 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) => {
|
|
628
627
|
var M;
|
|
629
628
|
(M = e.onKeydown) == null || M.call(e, C);
|
|
630
629
|
}, (C) => {
|
|
631
630
|
const { currentTarget: M, code: G, target: k } = C;
|
|
632
|
-
if (M.contains(k), R.tab === G && C.stopImmediatePropagation(), C.preventDefault(), k !== E(i) || !
|
|
631
|
+
if (M.contains(k), R.tab === G && C.stopImmediatePropagation(), C.preventDefault(), k !== E(i) || !ro.includes(G))
|
|
633
632
|
return;
|
|
634
633
|
const J = g().filter((Y) => !Y.disabled).map((Y) => Y.ref);
|
|
635
|
-
so.includes(G) && J.reverse(),
|
|
634
|
+
so.includes(G) && J.reverse(), re(J);
|
|
636
635
|
});
|
|
637
636
|
return {
|
|
638
637
|
size: t,
|
|
639
638
|
rovingFocusGroupRootStyle: h,
|
|
640
639
|
tabIndex: o,
|
|
641
640
|
dropdownKls: S,
|
|
642
|
-
role:
|
|
641
|
+
role: r,
|
|
643
642
|
triggerId: f,
|
|
644
643
|
dropdownListWrapperRef: L,
|
|
645
644
|
handleKeydown: (C) => {
|
|
@@ -684,13 +683,13 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
684
683
|
emits: ["loginout"],
|
|
685
684
|
setup(e, { emit: n }) {
|
|
686
685
|
const s = je(), t = n, u = e, a = () => {
|
|
687
|
-
const { loginUrl:
|
|
688
|
-
qe(
|
|
686
|
+
const { loginUrl: r } = u.config || {};
|
|
687
|
+
qe(r);
|
|
689
688
|
}, i = () => {
|
|
690
|
-
const { loginoutToLogin:
|
|
691
|
-
Qe(
|
|
689
|
+
const { loginoutToLogin: r, loginoutUrl: f } = u.config || {};
|
|
690
|
+
Qe(r, f), t("loginout");
|
|
692
691
|
};
|
|
693
|
-
return (
|
|
692
|
+
return (r, f) => {
|
|
694
693
|
const v = ne, g = zo, w = Uo, h = Ao;
|
|
695
694
|
return F(), A("div", Vo, [
|
|
696
695
|
E(s) ? (F(), A("div", Yo, [
|
|
@@ -747,11 +746,11 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
747
746
|
};
|
|
748
747
|
}
|
|
749
748
|
});
|
|
750
|
-
const Wo = /* @__PURE__ */ uo(Jo, [["__scopeId", "data-v-b83bf27d"]]),
|
|
749
|
+
const Wo = /* @__PURE__ */ uo(Jo, [["__scopeId", "data-v-b83bf27d"]]), cn = {
|
|
751
750
|
install(e) {
|
|
752
751
|
e.component("st-user", Wo);
|
|
753
752
|
}
|
|
754
753
|
};
|
|
755
754
|
export {
|
|
756
|
-
|
|
755
|
+
cn as default
|
|
757
756
|
};
|