st-comp 0.0.149 → 0.0.150
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 +5 -4
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +24 -22
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +52 -50
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +18 -16
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +26 -24
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +16 -14
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +58 -56
- package/es/PasswordPrompt.cjs +1 -0
- package/es/PasswordPrompt.js +13 -0
- package/es/Table.cjs +1 -1
- package/es/Table.js +105 -103
- package/es/User.cjs +1 -1
- package/es/User.js +400 -378
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +230 -228
- package/es/VirtualTable.cjs +3 -3
- package/es/VirtualTable.js +196 -194
- package/es/_initCloneObject-47814efa.cjs +1 -0
- package/es/{_initCloneObject-14b53c6f.js → _initCloneObject-e3d8a9ab.js} +21 -21
- package/es/base-0ca7c43a.cjs +5 -0
- package/es/base-19787dfb.js +303 -0
- package/es/{castArray-4251bbe4.js → castArray-8405000b.js} +1 -1
- package/es/castArray-a78ae889.cjs +1 -0
- package/es/{config-provider-55482a43.js → config-provider-0f6672af.js} +3 -3
- package/es/{config-provider-7cdfca4d.cjs → config-provider-cfbb9cd8.cjs} +1 -1
- package/es/{debounce-ac30be50.js → debounce-6cb0781f.js} +19 -19
- package/es/debounce-cf26af24.cjs +1 -0
- package/es/{dropdown-634b5e27.js → dropdown-17b3ef6a.js} +4 -4
- package/es/{dropdown-d7c59a21.cjs → dropdown-790d31ea.cjs} +1 -1
- package/es/{el-button-e1665717.js → el-button-0bf1d532.js} +17 -16
- package/es/el-button-62966947.cjs +1 -0
- package/es/{el-checkbox-group-492b95cc.cjs → el-checkbox-group-45247bbf.cjs} +1 -1
- package/es/{el-checkbox-group-e8fece80.js → el-checkbox-group-d53bc316.js} +5 -5
- package/es/el-empty-2ece1134.cjs +1 -0
- package/es/{el-empty-bacc6613.js → el-empty-bd5343a7.js} +10 -9
- package/es/{el-form-item-af1855f0.js → el-form-item-05c0e335.js} +52 -51
- package/es/el-form-item-47e255d4.cjs +12 -0
- package/es/{el-input-4961b99f.js → el-input-1e309239.js} +79 -78
- package/es/el-input-6a3805c5.cjs +1 -0
- package/es/{el-input-number-610fc8ba.js → el-input-number-60ebc58f.js} +57 -55
- package/es/el-input-number-96ff2e47.cjs +1 -0
- package/es/el-menu-item-4c9eb7ad.cjs +1 -0
- package/es/{el-menu-item-7d04c11a.js → el-menu-item-6c6236a1.js} +84 -83
- package/es/{el-message-c3b3ac96.js → el-message-7d927756.js} +55 -54
- package/es/el-message-d5ed7a4f.cjs +1 -0
- package/es/{el-overlay-12dd9b35.js → el-overlay-26bf0945.js} +73 -71
- package/es/el-overlay-41994f67.cjs +1 -0
- package/es/{el-popover-0aa071f2.js → el-popover-17e2e66c.js} +26 -24
- package/es/el-popover-7bd8a7c3.cjs +1 -0
- package/es/el-popper-7adbf1c6.cjs +1 -0
- package/es/{el-popper-50100766.js → el-popper-b6527ae2.js} +194 -193
- package/es/{el-scrollbar-562d0595.js → el-scrollbar-29bcab5f.js} +28 -28
- package/es/{el-scrollbar-d1c3e7f7.cjs → el-scrollbar-ac525239.cjs} +1 -1
- package/es/el-select-31f8ac8a.cjs +1 -0
- package/es/{el-select-9381b156.js → el-select-7395562b.js} +42 -40
- package/es/{el-table-column-55bffba5.js → el-table-column-47d80736.js} +329 -327
- package/es/el-table-column-bdc46568.cjs +14 -0
- package/es/{el-tag-985d9aff.js → el-tag-7414e0c7.js} +78 -77
- package/es/el-tag-9732314f.cjs +1 -0
- package/es/{index-deb8de52.cjs → index-1d85ba4b.cjs} +1 -1
- package/es/{index-39ec9741.js → index-273822d1.js} +21 -20
- package/es/index-2f958e56.cjs +3 -0
- package/es/index-375e8de4.cjs +5 -0
- package/es/{index-0cb48e01.js → index-621b092b.js} +1 -1
- package/es/{index-3bf8d597.cjs → index-65b4113e.cjs} +1 -1
- package/es/index-70372cdb.js +519 -0
- package/es/{use-form-common-props-f377e500.js → index-72151b24.js} +150 -312
- package/es/index-9e6e8d03.cjs +1 -0
- package/es/index-ab96bbf4.js +156 -0
- package/es/index-afc88a4b.cjs +1 -0
- package/es/{index-09e01b1d.js → index-c066fe0d.js} +32 -31
- package/es/index-ce3223db.cjs +1 -0
- package/es/{index-a902a0d9.js → index-dc22ffe4.js} +2 -2
- package/es/{raf-b128c7b7.js → raf-a532c514.js} +1 -1
- package/es/{raf-8fc301fd.cjs → raf-f46caea0.cjs} +1 -1
- package/es/{scroll-41224831.cjs → scroll-339681d4.cjs} +1 -1
- package/es/{scroll-387fcfdb.js → scroll-d787d648.js} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-5ff2f51b.js +171 -0
- package/es/use-form-common-props-74a96df2.cjs +2 -0
- package/es/{vnode-7dfd4ed5.js → vnode-6a0c7411.js} +1 -1
- package/es/{vnode-7fbc61e1.cjs → vnode-b15eb11b.cjs} +1 -1
- package/es/{zh-cn-ab9a583d.cjs → zh-cn-36f34912.cjs} +1 -1
- package/es/{zh-cn-eb9c2820.js → zh-cn-f37255ae.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +136 -136
- package/lib/{index-d2de454d.js → index-d0cb2fa2.js} +14674 -14502
- package/lib/{python-22975586.js → python-050ba5a4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/PasswordPrompt/index.ts +8 -0
- package/packages/PasswordPrompt/index.vue +266 -0
- package/packages/User/index.vue +97 -58
- package/packages/index.ts +2 -0
- package/src/pages/PasswordPrompt/index.vue +12 -0
- package/src/router/routes.ts +5 -0
- package/es/_initCloneObject-441db749.cjs +0 -1
- package/es/base-437d17f3.js +0 -816
- package/es/base-ec05f348.cjs +0 -9
- package/es/castArray-a45823fe.cjs +0 -1
- package/es/debounce-b2ff12bd.cjs +0 -1
- package/es/el-button-196807af.cjs +0 -1
- package/es/el-empty-19ea04f4.cjs +0 -1
- package/es/el-form-item-5bdffd07.cjs +0 -12
- package/es/el-input-23e2bac3.cjs +0 -1
- package/es/el-input-number-40a81eb5.cjs +0 -1
- package/es/el-menu-item-78b858f2.cjs +0 -1
- package/es/el-message-d4df8136.cjs +0 -1
- package/es/el-overlay-bc0790a2.cjs +0 -1
- package/es/el-popover-8a77e015.cjs +0 -1
- package/es/el-popper-746070ba.cjs +0 -1
- package/es/el-select-b162dffc.cjs +0 -1
- package/es/el-table-column-6d761fce.cjs +0 -14
- package/es/el-tag-c51a6490.cjs +0 -1
- package/es/index-8a0b1c53.cjs +0 -3
- package/es/index-a387515d.cjs +0 -1
- package/es/use-form-common-props-1b84d8f4.cjs +0 -2
package/es/User.js
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { d as
|
|
3
|
-
import { E as re } from "./el-button-
|
|
4
|
-
import { E as Oe, a as De } from "./el-form-item-
|
|
5
|
-
import { E as Ne } from "./el-input-
|
|
6
|
-
import { c as
|
|
7
|
-
import { b as Me } from "./el-scrollbar-
|
|
8
|
-
import { defineComponent as U, ref as
|
|
9
|
-
import { E as le,
|
|
10
|
-
import { V as
|
|
1
|
+
import { b as Te, d as oe, _ as V, u as te, v as Re, w as Se, s as ve } from "./base-19787dfb.js";
|
|
2
|
+
import { d as we, E as ke } from "./el-overlay-26bf0945.js";
|
|
3
|
+
import { E as re } from "./el-button-0bf1d532.js";
|
|
4
|
+
import { E as Oe, a as De } from "./el-form-item-05c0e335.js";
|
|
5
|
+
import { E as Ne } from "./el-input-1e309239.js";
|
|
6
|
+
import { c as M, d as Ke, E as Be, O as Le, w as pe } from "./el-popper-b6527ae2.js";
|
|
7
|
+
import { b as Me } from "./el-scrollbar-29bcab5f.js";
|
|
8
|
+
import { defineComponent as U, ref as h, inject as R, computed as k, provide as Q, readonly as Ge, toRef as j, unref as $, watch as ge, renderSlot as G, resolveComponent as F, openBlock as D, createBlock as H, withCtx as i, createVNode as a, normalizeProps as Ae, guardReactiveProps as Ve, getCurrentInstance as _e, onBeforeUnmount as Ue, createElementBlock as A, normalizeClass as X, createSlots as ze, mergeProps as Z, createCommentVNode as ne, nextTick as be, Fragment as Ye, createElementVNode as q, withModifiers as x, resolveDynamicComponent as He, normalizeStyle as Je, createTextVNode as W, toDisplayString as We, withKeys as je } from "vue";
|
|
9
|
+
import { E as le, a as Ee, u as qe, r as Qe } from "./index-72151b24.js";
|
|
10
|
+
import { V as Xe, A as Ze, K as xe } from "./index-8542fe24.js";
|
|
11
|
+
import { P as eo } from "./index-ab96bbf4.js";
|
|
12
|
+
import { E as oo } from "./el-message-7d927756.js";
|
|
11
13
|
import { _ as no } from "./_plugin-vue_export-helper-dad06003.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
14
|
+
import { c as to, E as ro, d as lo, a as Ie, C as so, b as ao, e as io, f as uo, g as co, F as po, L as fo } from "./dropdown-17b3ef6a.js";
|
|
15
|
+
import { E as N, F as mo } from "./index-621b092b.js";
|
|
16
|
+
import { a as vo, u as he } from "./index-70372cdb.js";
|
|
17
|
+
import { a as wo } from "./use-form-common-props-5ff2f51b.js";
|
|
18
|
+
import { c as go } from "./castArray-8405000b.js";
|
|
19
|
+
import "./vnode-6a0c7411.js";
|
|
20
|
+
import "./scroll-d787d648.js";
|
|
21
|
+
import "./index-c066fe0d.js";
|
|
19
22
|
import "./index-657047bb.js";
|
|
20
|
-
import "./_initCloneObject-
|
|
23
|
+
import "./_initCloneObject-e3d8a9ab.js";
|
|
21
24
|
import "./typescript-7ae59c4c.js";
|
|
22
|
-
import "./index-
|
|
23
|
-
import "./config-provider-
|
|
24
|
-
const
|
|
25
|
+
import "./index-dc22ffe4.js";
|
|
26
|
+
import "./config-provider-0f6672af.js";
|
|
27
|
+
const _o = Te({
|
|
25
28
|
style: { type: oe([String, Array, Object]) },
|
|
26
29
|
currentTabId: {
|
|
27
30
|
type: oe(String)
|
|
@@ -40,11 +43,11 @@ const go = Fe({
|
|
|
40
43
|
onFocus: Function,
|
|
41
44
|
onMousedown: Function
|
|
42
45
|
}), {
|
|
43
|
-
ElCollection:
|
|
44
|
-
ElCollectionItem:
|
|
46
|
+
ElCollection: bo,
|
|
47
|
+
ElCollectionItem: Eo,
|
|
45
48
|
COLLECTION_INJECTION_KEY: se,
|
|
46
|
-
COLLECTION_ITEM_INJECTION_KEY:
|
|
47
|
-
} =
|
|
49
|
+
COLLECTION_ITEM_INJECTION_KEY: Io
|
|
50
|
+
} = to("RovingFocusGroup"), ae = Symbol("elRovingFocusGroup"), Ce = Symbol("elRovingFocusGroupItem"), ho = {
|
|
48
51
|
ArrowLeft: "prev",
|
|
49
52
|
ArrowUp: "prev",
|
|
50
53
|
ArrowRight: "next",
|
|
@@ -53,103 +56,103 @@ const go = Fe({
|
|
|
53
56
|
Home: "first",
|
|
54
57
|
PageDown: "last",
|
|
55
58
|
End: "last"
|
|
56
|
-
},
|
|
59
|
+
}, Co = (e, n) => {
|
|
57
60
|
if (n !== "rtl")
|
|
58
61
|
return e;
|
|
59
62
|
switch (e) {
|
|
60
|
-
case
|
|
61
|
-
return
|
|
62
|
-
case
|
|
63
|
-
return
|
|
63
|
+
case N.right:
|
|
64
|
+
return N.left;
|
|
65
|
+
case N.left:
|
|
66
|
+
return N.right;
|
|
64
67
|
default:
|
|
65
68
|
return e;
|
|
66
69
|
}
|
|
67
|
-
},
|
|
68
|
-
const
|
|
69
|
-
if (!(n === "vertical" && [
|
|
70
|
-
return
|
|
71
|
-
},
|
|
70
|
+
}, yo = (e, n, p) => {
|
|
71
|
+
const t = Co(e.code, p);
|
|
72
|
+
if (!(n === "vertical" && [N.left, N.right].includes(t)) && !(n === "horizontal" && [N.up, N.down].includes(t)))
|
|
73
|
+
return ho[t];
|
|
74
|
+
}, Po = (e, n) => e.map((p, t) => e[(t + n) % e.length]), ie = (e) => {
|
|
72
75
|
const { activeElement: n } = document;
|
|
73
|
-
for (const
|
|
74
|
-
if (
|
|
76
|
+
for (const p of e)
|
|
77
|
+
if (p === n || (p.focus(), n !== document.activeElement))
|
|
75
78
|
return;
|
|
76
|
-
}, fe = "currentTabIdChange", me = "rovingFocusGroup.entryFocus",
|
|
79
|
+
}, fe = "currentTabIdChange", me = "rovingFocusGroup.entryFocus", Fo = { bubbles: !1, cancelable: !0 }, $o = U({
|
|
77
80
|
name: "ElRovingFocusGroupImpl",
|
|
78
81
|
inheritAttrs: !1,
|
|
79
|
-
props:
|
|
82
|
+
props: _o,
|
|
80
83
|
emits: [fe, "entryFocus"],
|
|
81
84
|
setup(e, { emit: n }) {
|
|
82
|
-
var
|
|
83
|
-
const
|
|
85
|
+
var p;
|
|
86
|
+
const t = h((p = e.currentTabId || e.defaultCurrentTabId) != null ? p : null), w = h(!1), m = h(!1), c = h(null), { getItems: s } = R(se, void 0), v = k(() => [
|
|
84
87
|
{
|
|
85
88
|
outline: "none"
|
|
86
89
|
},
|
|
87
90
|
e.style
|
|
88
|
-
]),
|
|
89
|
-
n(fe,
|
|
91
|
+
]), d = (f) => {
|
|
92
|
+
n(fe, f);
|
|
90
93
|
}, _ = () => {
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
var
|
|
94
|
-
(
|
|
94
|
+
w.value = !0;
|
|
95
|
+
}, E = M((f) => {
|
|
96
|
+
var g;
|
|
97
|
+
(g = e.onMousedown) == null || g.call(e, f);
|
|
95
98
|
}, () => {
|
|
96
99
|
m.value = !0;
|
|
97
|
-
}),
|
|
98
|
-
var
|
|
99
|
-
(
|
|
100
|
-
}, (
|
|
101
|
-
const
|
|
102
|
-
if (C ===
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
105
|
-
const
|
|
100
|
+
}), P = M((f) => {
|
|
101
|
+
var g;
|
|
102
|
+
(g = e.onFocus) == null || g.call(e, f);
|
|
103
|
+
}, (f) => {
|
|
104
|
+
const g = !$(m), { target: C, currentTarget: r } = f;
|
|
105
|
+
if (C === r && g && !$(w)) {
|
|
106
|
+
const T = new Event(me, Fo);
|
|
107
|
+
if (r == null || r.dispatchEvent(T), !T.defaultPrevented) {
|
|
108
|
+
const b = s().filter((S) => S.focusable), O = b.find((S) => S.active), y = b.find((S) => S.id === $(t)), B = [O, y, ...b].filter(Boolean).map((S) => S.ref);
|
|
106
109
|
ie(B);
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
m.value = !1;
|
|
110
|
-
}), o =
|
|
111
|
-
var
|
|
112
|
-
(
|
|
113
|
+
}), o = M((f) => {
|
|
114
|
+
var g;
|
|
115
|
+
(g = e.onBlur) == null || g.call(e, f);
|
|
113
116
|
}, () => {
|
|
114
|
-
|
|
115
|
-
}),
|
|
116
|
-
n("entryFocus", ...
|
|
117
|
+
w.value = !1;
|
|
118
|
+
}), u = (...f) => {
|
|
119
|
+
n("entryFocus", ...f);
|
|
117
120
|
};
|
|
118
121
|
Q(ae, {
|
|
119
|
-
currentTabbedId: Ge(
|
|
120
|
-
loop:
|
|
121
|
-
tabIndex: k(() =>
|
|
122
|
+
currentTabbedId: Ge(t),
|
|
123
|
+
loop: j(e, "loop"),
|
|
124
|
+
tabIndex: k(() => $(w) ? -1 : 0),
|
|
122
125
|
rovingFocusGroupRef: c,
|
|
123
|
-
rovingFocusGroupRootStyle:
|
|
124
|
-
orientation:
|
|
125
|
-
dir:
|
|
126
|
-
onItemFocus:
|
|
126
|
+
rovingFocusGroupRootStyle: v,
|
|
127
|
+
orientation: j(e, "orientation"),
|
|
128
|
+
dir: j(e, "dir"),
|
|
129
|
+
onItemFocus: d,
|
|
127
130
|
onItemShiftTab: _,
|
|
128
131
|
onBlur: o,
|
|
129
|
-
onFocus:
|
|
130
|
-
onMousedown:
|
|
131
|
-
}),
|
|
132
|
-
|
|
133
|
-
}), Me(c, me,
|
|
132
|
+
onFocus: P,
|
|
133
|
+
onMousedown: E
|
|
134
|
+
}), ge(() => e.currentTabId, (f) => {
|
|
135
|
+
t.value = f ?? null;
|
|
136
|
+
}), Me(c, me, u);
|
|
134
137
|
}
|
|
135
138
|
});
|
|
136
|
-
function
|
|
139
|
+
function To(e, n, p, t, w, m) {
|
|
137
140
|
return G(e.$slots, "default");
|
|
138
141
|
}
|
|
139
|
-
var
|
|
140
|
-
const
|
|
142
|
+
var Ro = /* @__PURE__ */ V($o, [["render", To], ["__file", "roving-focus-group-impl.vue"]]);
|
|
143
|
+
const So = U({
|
|
141
144
|
name: "ElRovingFocusGroup",
|
|
142
145
|
components: {
|
|
143
|
-
ElFocusGroupCollection:
|
|
144
|
-
ElRovingFocusGroupImpl:
|
|
146
|
+
ElFocusGroupCollection: bo,
|
|
147
|
+
ElRovingFocusGroupImpl: Ro
|
|
145
148
|
}
|
|
146
149
|
});
|
|
147
|
-
function
|
|
148
|
-
const c =
|
|
149
|
-
return
|
|
150
|
-
default:
|
|
151
|
-
|
|
152
|
-
default:
|
|
150
|
+
function ko(e, n, p, t, w, m) {
|
|
151
|
+
const c = F("el-roving-focus-group-impl"), s = F("el-focus-group-collection");
|
|
152
|
+
return D(), H(s, null, {
|
|
153
|
+
default: i(() => [
|
|
154
|
+
a(c, Ae(Ve(e.$attrs)), {
|
|
155
|
+
default: i(() => [
|
|
153
156
|
G(e.$slots, "default")
|
|
154
157
|
]),
|
|
155
158
|
_: 3
|
|
@@ -158,126 +161,126 @@ function So(e, n, f, r, v, m) {
|
|
|
158
161
|
_: 3
|
|
159
162
|
});
|
|
160
163
|
}
|
|
161
|
-
var
|
|
162
|
-
const ee = Symbol("elDropdown"), { ButtonGroup:
|
|
164
|
+
var Oo = /* @__PURE__ */ V(So, [["render", ko], ["__file", "roving-focus-group.vue"]]);
|
|
165
|
+
const ee = Symbol("elDropdown"), { ButtonGroup: Do } = re, No = U({
|
|
163
166
|
name: "ElDropdown",
|
|
164
167
|
components: {
|
|
165
168
|
ElButton: re,
|
|
166
|
-
ElButtonGroup:
|
|
169
|
+
ElButtonGroup: Do,
|
|
167
170
|
ElScrollbar: Ke,
|
|
168
|
-
ElDropdownCollection:
|
|
171
|
+
ElDropdownCollection: ro,
|
|
169
172
|
ElTooltip: Be,
|
|
170
|
-
ElRovingFocusGroup:
|
|
173
|
+
ElRovingFocusGroup: Oo,
|
|
171
174
|
ElOnlyChild: Le,
|
|
172
175
|
ElIcon: le,
|
|
173
|
-
ArrowDown:
|
|
176
|
+
ArrowDown: Ee
|
|
174
177
|
},
|
|
175
|
-
props:
|
|
178
|
+
props: lo,
|
|
176
179
|
emits: ["visible-change", "click", "command"],
|
|
177
180
|
setup(e, { emit: n }) {
|
|
178
|
-
const
|
|
181
|
+
const p = _e(), t = te("dropdown"), { t: w } = vo(), m = h(), c = h(), s = h(null), v = h(null), d = h(null), _ = h(null), E = h(!1), P = k(() => ({
|
|
179
182
|
maxHeight: Re(e.maxHeight)
|
|
180
|
-
})), o = k(() => [
|
|
181
|
-
|
|
183
|
+
})), o = k(() => [t.m(b.value)]), u = k(() => go(e.trigger)), f = he().value, g = k(() => e.id || f);
|
|
184
|
+
ge([m, u], ([l, L], [Y]) => {
|
|
182
185
|
var de, ue, ce;
|
|
183
|
-
(de =
|
|
186
|
+
(de = Y == null ? void 0 : Y.$el) != null && de.removeEventListener && Y.$el.removeEventListener("pointerenter", y), (ue = l == null ? void 0 : l.$el) != null && ue.removeEventListener && l.$el.removeEventListener("pointerenter", y), (ce = l == null ? void 0 : l.$el) != null && ce.addEventListener && L.includes("hover") && l.$el.addEventListener("pointerenter", y);
|
|
184
187
|
}, { immediate: !0 }), Ue(() => {
|
|
185
|
-
var l,
|
|
186
|
-
(
|
|
188
|
+
var l, L;
|
|
189
|
+
(L = (l = m.value) == null ? void 0 : l.$el) != null && L.removeEventListener && m.value.$el.removeEventListener("pointerenter", y);
|
|
187
190
|
});
|
|
188
191
|
function C() {
|
|
189
|
-
|
|
192
|
+
r();
|
|
190
193
|
}
|
|
191
|
-
function
|
|
194
|
+
function r() {
|
|
192
195
|
var l;
|
|
193
196
|
(l = s.value) == null || l.onClose();
|
|
194
197
|
}
|
|
195
|
-
function
|
|
198
|
+
function T() {
|
|
196
199
|
var l;
|
|
197
200
|
(l = s.value) == null || l.onOpen();
|
|
198
201
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
202
|
+
const b = wo();
|
|
203
|
+
function O(...l) {
|
|
201
204
|
n("command", ...l);
|
|
202
205
|
}
|
|
203
|
-
function
|
|
204
|
-
var l,
|
|
205
|
-
(
|
|
206
|
+
function y() {
|
|
207
|
+
var l, L;
|
|
208
|
+
(L = (l = m.value) == null ? void 0 : l.$el) == null || L.focus();
|
|
206
209
|
}
|
|
207
|
-
function
|
|
210
|
+
function K() {
|
|
208
211
|
}
|
|
209
212
|
function B() {
|
|
210
|
-
const l =
|
|
211
|
-
|
|
213
|
+
const l = $(v);
|
|
214
|
+
u.value.includes("hover") && (l == null || l.focus()), _.value = null;
|
|
212
215
|
}
|
|
213
216
|
function S(l) {
|
|
214
217
|
_.value = l;
|
|
215
218
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
219
|
+
function J(l) {
|
|
220
|
+
E.value || (l.preventDefault(), l.stopImmediatePropagation());
|
|
218
221
|
}
|
|
219
|
-
function
|
|
222
|
+
function z() {
|
|
220
223
|
n("visible-change", !0);
|
|
221
224
|
}
|
|
222
|
-
function
|
|
223
|
-
(l == null ? void 0 : l.type) === "keydown" &&
|
|
225
|
+
function I(l) {
|
|
226
|
+
(l == null ? void 0 : l.type) === "keydown" && v.value.focus();
|
|
224
227
|
}
|
|
225
228
|
function $e() {
|
|
226
229
|
n("visible-change", !1);
|
|
227
230
|
}
|
|
228
231
|
return Q(ee, {
|
|
229
|
-
contentRef:
|
|
232
|
+
contentRef: v,
|
|
230
233
|
role: k(() => e.role),
|
|
231
|
-
triggerId:
|
|
232
|
-
isUsingKeyboard:
|
|
233
|
-
onItemEnter:
|
|
234
|
+
triggerId: g,
|
|
235
|
+
isUsingKeyboard: E,
|
|
236
|
+
onItemEnter: K,
|
|
234
237
|
onItemLeave: B
|
|
235
238
|
}), Q("elDropdown", {
|
|
236
|
-
instance:
|
|
237
|
-
dropdownSize:
|
|
239
|
+
instance: p,
|
|
240
|
+
dropdownSize: b,
|
|
238
241
|
handleClick: C,
|
|
239
|
-
commandHandler:
|
|
240
|
-
trigger:
|
|
241
|
-
hideOnClick:
|
|
242
|
+
commandHandler: O,
|
|
243
|
+
trigger: j(e, "trigger"),
|
|
244
|
+
hideOnClick: j(e, "hideOnClick")
|
|
242
245
|
}), {
|
|
243
|
-
t:
|
|
244
|
-
ns:
|
|
245
|
-
scrollbar:
|
|
246
|
-
wrapStyle:
|
|
246
|
+
t: w,
|
|
247
|
+
ns: t,
|
|
248
|
+
scrollbar: d,
|
|
249
|
+
wrapStyle: P,
|
|
247
250
|
dropdownTriggerKls: o,
|
|
248
|
-
dropdownSize:
|
|
249
|
-
triggerId:
|
|
251
|
+
dropdownSize: b,
|
|
252
|
+
triggerId: g,
|
|
250
253
|
currentTabId: _,
|
|
251
254
|
handleCurrentTabIdChange: S,
|
|
252
255
|
handlerMainButtonClick: (l) => {
|
|
253
256
|
n("click", l);
|
|
254
257
|
},
|
|
255
|
-
handleEntryFocus:
|
|
256
|
-
handleClose:
|
|
257
|
-
handleOpen:
|
|
258
|
-
handleBeforeShowTooltip:
|
|
259
|
-
handleShowTooltip:
|
|
258
|
+
handleEntryFocus: J,
|
|
259
|
+
handleClose: r,
|
|
260
|
+
handleOpen: T,
|
|
261
|
+
handleBeforeShowTooltip: z,
|
|
262
|
+
handleShowTooltip: I,
|
|
260
263
|
handleBeforeHideTooltip: $e,
|
|
261
264
|
onFocusAfterTrapped: (l) => {
|
|
262
|
-
var
|
|
263
|
-
l.preventDefault(), (
|
|
265
|
+
var L, Y;
|
|
266
|
+
l.preventDefault(), (Y = (L = v.value) == null ? void 0 : L.focus) == null || Y.call(L, {
|
|
264
267
|
preventScroll: !0
|
|
265
268
|
});
|
|
266
269
|
},
|
|
267
270
|
popperRef: s,
|
|
268
|
-
contentRef:
|
|
271
|
+
contentRef: v,
|
|
269
272
|
triggeringElementRef: m,
|
|
270
273
|
referenceElementRef: c
|
|
271
274
|
};
|
|
272
275
|
}
|
|
273
276
|
});
|
|
274
|
-
function
|
|
277
|
+
function Ko(e, n, p, t, w, m) {
|
|
275
278
|
var c;
|
|
276
|
-
const s =
|
|
277
|
-
return
|
|
279
|
+
const s = F("el-dropdown-collection"), v = F("el-roving-focus-group"), d = F("el-scrollbar"), _ = F("el-only-child"), E = F("el-tooltip"), P = F("el-button"), o = F("arrow-down"), u = F("el-icon"), f = F("el-button-group");
|
|
280
|
+
return D(), A("div", {
|
|
278
281
|
class: X([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
279
282
|
}, [
|
|
280
|
-
|
|
283
|
+
a(E, {
|
|
281
284
|
ref: "popperRef",
|
|
282
285
|
role: e.role,
|
|
283
286
|
effect: e.effect,
|
|
@@ -305,24 +308,24 @@ function No(e, n, f, r, v, m) {
|
|
|
305
308
|
onShow: e.handleShowTooltip,
|
|
306
309
|
onBeforeHide: e.handleBeforeHideTooltip
|
|
307
310
|
}, ze({
|
|
308
|
-
content:
|
|
309
|
-
|
|
311
|
+
content: i(() => [
|
|
312
|
+
a(d, {
|
|
310
313
|
ref: "scrollbar",
|
|
311
314
|
"wrap-style": e.wrapStyle,
|
|
312
315
|
tag: "div",
|
|
313
316
|
"view-class": e.ns.e("list")
|
|
314
317
|
}, {
|
|
315
|
-
default:
|
|
316
|
-
|
|
318
|
+
default: i(() => [
|
|
319
|
+
a(v, {
|
|
317
320
|
loop: e.loop,
|
|
318
321
|
"current-tab-id": e.currentTabId,
|
|
319
322
|
orientation: "horizontal",
|
|
320
323
|
onCurrentTabIdChange: e.handleCurrentTabIdChange,
|
|
321
324
|
onEntryFocus: e.handleEntryFocus
|
|
322
325
|
}, {
|
|
323
|
-
default:
|
|
324
|
-
|
|
325
|
-
default:
|
|
326
|
+
default: i(() => [
|
|
327
|
+
a(s, null, {
|
|
328
|
+
default: i(() => [
|
|
326
329
|
G(e.$slots, "dropdown")
|
|
327
330
|
]),
|
|
328
331
|
_: 3
|
|
@@ -338,14 +341,14 @@ function No(e, n, f, r, v, m) {
|
|
|
338
341
|
}, [
|
|
339
342
|
e.splitButton ? void 0 : {
|
|
340
343
|
name: "default",
|
|
341
|
-
fn:
|
|
342
|
-
|
|
344
|
+
fn: i(() => [
|
|
345
|
+
a(_, {
|
|
343
346
|
id: e.triggerId,
|
|
344
347
|
ref: "triggeringElementRef",
|
|
345
348
|
role: "button",
|
|
346
349
|
tabindex: e.tabindex
|
|
347
350
|
}, {
|
|
348
|
-
default:
|
|
351
|
+
default: i(() => [
|
|
349
352
|
G(e.$slots, "default")
|
|
350
353
|
]),
|
|
351
354
|
_: 3
|
|
@@ -353,21 +356,21 @@ function No(e, n, f, r, v, m) {
|
|
|
353
356
|
])
|
|
354
357
|
}
|
|
355
358
|
]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported", "onBeforeShow", "onShow", "onBeforeHide"]),
|
|
356
|
-
e.splitButton ? (
|
|
357
|
-
default:
|
|
358
|
-
|
|
359
|
+
e.splitButton ? (D(), H(f, { key: 0 }, {
|
|
360
|
+
default: i(() => [
|
|
361
|
+
a(P, Z({ ref: "referenceElementRef" }, e.buttonProps, {
|
|
359
362
|
size: e.dropdownSize,
|
|
360
363
|
type: e.type,
|
|
361
364
|
disabled: e.disabled,
|
|
362
365
|
tabindex: e.tabindex,
|
|
363
366
|
onClick: e.handlerMainButtonClick
|
|
364
367
|
}), {
|
|
365
|
-
default:
|
|
368
|
+
default: i(() => [
|
|
366
369
|
G(e.$slots, "default")
|
|
367
370
|
]),
|
|
368
371
|
_: 3
|
|
369
372
|
}, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
|
|
370
|
-
|
|
373
|
+
a(P, Z({
|
|
371
374
|
id: e.triggerId,
|
|
372
375
|
ref: "triggeringElementRef"
|
|
373
376
|
}, e.buttonProps, {
|
|
@@ -379,12 +382,12 @@ function No(e, n, f, r, v, m) {
|
|
|
379
382
|
tabindex: e.tabindex,
|
|
380
383
|
"aria-label": e.t("el.dropdown.toggleDropdown")
|
|
381
384
|
}), {
|
|
382
|
-
default:
|
|
383
|
-
u
|
|
385
|
+
default: i(() => [
|
|
386
|
+
a(u, {
|
|
384
387
|
class: X(e.ns.e("icon"))
|
|
385
388
|
}, {
|
|
386
|
-
default:
|
|
387
|
-
|
|
389
|
+
default: i(() => [
|
|
390
|
+
a(o)
|
|
388
391
|
]),
|
|
389
392
|
_: 1
|
|
390
393
|
}, 8, ["class"])
|
|
@@ -396,10 +399,10 @@ function No(e, n, f, r, v, m) {
|
|
|
396
399
|
})) : ne("v-if", !0)
|
|
397
400
|
], 2);
|
|
398
401
|
}
|
|
399
|
-
var
|
|
400
|
-
const
|
|
402
|
+
var Bo = /* @__PURE__ */ V(No, [["render", Ko], ["__file", "dropdown.vue"]]);
|
|
403
|
+
const Lo = U({
|
|
401
404
|
components: {
|
|
402
|
-
ElRovingFocusCollectionItem:
|
|
405
|
+
ElRovingFocusCollectionItem: Eo
|
|
403
406
|
},
|
|
404
407
|
props: {
|
|
405
408
|
focusable: {
|
|
@@ -413,115 +416,115 @@ const Bo = U({
|
|
|
413
416
|
},
|
|
414
417
|
emits: ["mousedown", "focus", "keydown"],
|
|
415
418
|
setup(e, { emit: n }) {
|
|
416
|
-
const { currentTabbedId:
|
|
419
|
+
const { currentTabbedId: p, loop: t, onItemFocus: w, onItemShiftTab: m } = R(ae, void 0), { getItems: c } = R(se, void 0), s = he(), v = h(null), d = M((o) => {
|
|
417
420
|
n("mousedown", o);
|
|
418
421
|
}, (o) => {
|
|
419
|
-
e.focusable ?
|
|
420
|
-
}), _ =
|
|
422
|
+
e.focusable ? w($(s)) : o.preventDefault();
|
|
423
|
+
}), _ = M((o) => {
|
|
421
424
|
n("focus", o);
|
|
422
425
|
}, () => {
|
|
423
|
-
|
|
424
|
-
}),
|
|
426
|
+
w($(s));
|
|
427
|
+
}), E = M((o) => {
|
|
425
428
|
n("keydown", o);
|
|
426
429
|
}, (o) => {
|
|
427
|
-
const { code:
|
|
428
|
-
if (
|
|
430
|
+
const { code: u, shiftKey: f, target: g, currentTarget: C } = o;
|
|
431
|
+
if (u === N.tab && f) {
|
|
429
432
|
m();
|
|
430
433
|
return;
|
|
431
434
|
}
|
|
432
|
-
if (
|
|
435
|
+
if (g !== C)
|
|
433
436
|
return;
|
|
434
|
-
const
|
|
435
|
-
if (
|
|
437
|
+
const r = yo(o);
|
|
438
|
+
if (r) {
|
|
436
439
|
o.preventDefault();
|
|
437
|
-
let
|
|
438
|
-
switch (
|
|
440
|
+
let b = c().filter((O) => O.focusable).map((O) => O.ref);
|
|
441
|
+
switch (r) {
|
|
439
442
|
case "last": {
|
|
440
|
-
|
|
443
|
+
b.reverse();
|
|
441
444
|
break;
|
|
442
445
|
}
|
|
443
446
|
case "prev":
|
|
444
447
|
case "next": {
|
|
445
|
-
|
|
446
|
-
const
|
|
447
|
-
|
|
448
|
+
r === "prev" && b.reverse();
|
|
449
|
+
const O = b.indexOf(C);
|
|
450
|
+
b = t.value ? Po(b, O + 1) : b.slice(O + 1);
|
|
448
451
|
break;
|
|
449
452
|
}
|
|
450
453
|
}
|
|
451
|
-
|
|
452
|
-
ie(
|
|
454
|
+
be(() => {
|
|
455
|
+
ie(b);
|
|
453
456
|
});
|
|
454
457
|
}
|
|
455
|
-
}),
|
|
456
|
-
return Q(
|
|
457
|
-
rovingFocusGroupItemRef:
|
|
458
|
-
tabIndex: k(() => P
|
|
459
|
-
handleMousedown:
|
|
458
|
+
}), P = k(() => p.value === $(s));
|
|
459
|
+
return Q(Ce, {
|
|
460
|
+
rovingFocusGroupItemRef: v,
|
|
461
|
+
tabIndex: k(() => $(P) ? 0 : -1),
|
|
462
|
+
handleMousedown: d,
|
|
460
463
|
handleFocus: _,
|
|
461
|
-
handleKeydown:
|
|
464
|
+
handleKeydown: E
|
|
462
465
|
}), {
|
|
463
466
|
id: s,
|
|
464
|
-
handleKeydown:
|
|
467
|
+
handleKeydown: E,
|
|
465
468
|
handleFocus: _,
|
|
466
|
-
handleMousedown:
|
|
469
|
+
handleMousedown: d
|
|
467
470
|
};
|
|
468
471
|
}
|
|
469
472
|
});
|
|
470
|
-
function
|
|
471
|
-
const c =
|
|
472
|
-
return
|
|
473
|
+
function Mo(e, n, p, t, w, m) {
|
|
474
|
+
const c = F("el-roving-focus-collection-item");
|
|
475
|
+
return D(), H(c, {
|
|
473
476
|
id: e.id,
|
|
474
477
|
focusable: e.focusable,
|
|
475
478
|
active: e.active
|
|
476
479
|
}, {
|
|
477
|
-
default:
|
|
480
|
+
default: i(() => [
|
|
478
481
|
G(e.$slots, "default")
|
|
479
482
|
]),
|
|
480
483
|
_: 3
|
|
481
484
|
}, 8, ["id", "focusable", "active"]);
|
|
482
485
|
}
|
|
483
|
-
var
|
|
484
|
-
const
|
|
486
|
+
var Go = /* @__PURE__ */ V(Lo, [["render", Mo], ["__file", "roving-focus-item.vue"]]);
|
|
487
|
+
const Ao = U({
|
|
485
488
|
name: "DropdownItemImpl",
|
|
486
489
|
components: {
|
|
487
490
|
ElIcon: le
|
|
488
491
|
},
|
|
489
|
-
props:
|
|
492
|
+
props: Ie,
|
|
490
493
|
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
491
494
|
setup(e, { emit: n }) {
|
|
492
|
-
const
|
|
495
|
+
const p = te("dropdown"), { role: t } = R(ee, void 0), { collectionItemRef: w } = R(so, void 0), { collectionItemRef: m } = R(Io, void 0), {
|
|
493
496
|
rovingFocusGroupItemRef: c,
|
|
494
497
|
tabIndex: s,
|
|
495
|
-
handleFocus:
|
|
496
|
-
handleKeydown:
|
|
498
|
+
handleFocus: v,
|
|
499
|
+
handleKeydown: d,
|
|
497
500
|
handleMousedown: _
|
|
498
|
-
} = R(
|
|
499
|
-
if ([
|
|
500
|
-
return
|
|
501
|
-
},
|
|
501
|
+
} = R(Ce, void 0), E = we(w, m, c), P = k(() => t.value === "menu" ? "menuitem" : t.value === "navigation" ? "link" : "button"), o = M((u) => {
|
|
502
|
+
if ([N.enter, N.numpadEnter, N.space].includes(u.code))
|
|
503
|
+
return u.preventDefault(), u.stopImmediatePropagation(), n("clickimpl", u), !0;
|
|
504
|
+
}, d);
|
|
502
505
|
return {
|
|
503
|
-
ns:
|
|
504
|
-
itemRef:
|
|
506
|
+
ns: p,
|
|
507
|
+
itemRef: E,
|
|
505
508
|
dataset: {
|
|
506
|
-
[
|
|
509
|
+
[ao]: ""
|
|
507
510
|
},
|
|
508
|
-
role:
|
|
511
|
+
role: P,
|
|
509
512
|
tabIndex: s,
|
|
510
|
-
handleFocus:
|
|
513
|
+
handleFocus: v,
|
|
511
514
|
handleKeydown: o,
|
|
512
515
|
handleMousedown: _
|
|
513
516
|
};
|
|
514
517
|
}
|
|
515
518
|
});
|
|
516
|
-
function
|
|
517
|
-
const c =
|
|
518
|
-
return
|
|
519
|
-
e.divided ? (
|
|
519
|
+
function Vo(e, n, p, t, w, m) {
|
|
520
|
+
const c = F("el-icon");
|
|
521
|
+
return D(), A(Ye, null, [
|
|
522
|
+
e.divided ? (D(), A("li", {
|
|
520
523
|
key: 0,
|
|
521
524
|
role: "separator",
|
|
522
525
|
class: X(e.ns.bem("menu", "item", "divided"))
|
|
523
526
|
}, null, 2)) : ne("v-if", !0),
|
|
524
|
-
|
|
527
|
+
q("li", Z({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
|
|
525
528
|
"aria-disabled": e.disabled,
|
|
526
529
|
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
527
530
|
tabindex: e.tabIndex,
|
|
@@ -533,9 +536,9 @@ function Ao(e, n, f, r, v, m) {
|
|
|
533
536
|
onPointermove: (s) => e.$emit("pointermove", s),
|
|
534
537
|
onPointerleave: (s) => e.$emit("pointerleave", s)
|
|
535
538
|
}), [
|
|
536
|
-
e.icon ? (
|
|
537
|
-
default:
|
|
538
|
-
(
|
|
539
|
+
e.icon ? (D(), H(c, { key: 0 }, {
|
|
540
|
+
default: i(() => [
|
|
541
|
+
(D(), H(He(e.icon)))
|
|
539
542
|
]),
|
|
540
543
|
_: 1
|
|
541
544
|
})) : ne("v-if", !0),
|
|
@@ -543,72 +546,72 @@ function Ao(e, n, f, r, v, m) {
|
|
|
543
546
|
], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
|
|
544
547
|
], 64);
|
|
545
548
|
}
|
|
546
|
-
var
|
|
547
|
-
const
|
|
549
|
+
var Uo = /* @__PURE__ */ V(Ao, [["render", Vo], ["__file", "dropdown-item-impl.vue"]]);
|
|
550
|
+
const ye = () => {
|
|
548
551
|
const e = R("elDropdown", {}), n = k(() => e == null ? void 0 : e.dropdownSize);
|
|
549
552
|
return {
|
|
550
553
|
elDropdown: e,
|
|
551
554
|
_elDropdownSize: n
|
|
552
555
|
};
|
|
553
|
-
},
|
|
556
|
+
}, zo = U({
|
|
554
557
|
name: "ElDropdownItem",
|
|
555
558
|
components: {
|
|
556
|
-
ElDropdownCollectionItem:
|
|
557
|
-
ElRovingFocusItem:
|
|
558
|
-
ElDropdownItemImpl:
|
|
559
|
+
ElDropdownCollectionItem: io,
|
|
560
|
+
ElRovingFocusItem: Go,
|
|
561
|
+
ElDropdownItemImpl: Uo
|
|
559
562
|
},
|
|
560
563
|
inheritAttrs: !1,
|
|
561
|
-
props:
|
|
564
|
+
props: Ie,
|
|
562
565
|
emits: ["pointermove", "pointerleave", "click"],
|
|
563
|
-
setup(e, { emit: n, attrs:
|
|
564
|
-
const { elDropdown:
|
|
565
|
-
var o,
|
|
566
|
-
return (
|
|
567
|
-
}), { onItemEnter: s, onItemLeave:
|
|
566
|
+
setup(e, { emit: n, attrs: p }) {
|
|
567
|
+
const { elDropdown: t } = ye(), w = _e(), m = h(null), c = k(() => {
|
|
568
|
+
var o, u;
|
|
569
|
+
return (u = (o = $(m)) == null ? void 0 : o.textContent) != null ? u : "";
|
|
570
|
+
}), { onItemEnter: s, onItemLeave: v } = R(ee, void 0), d = M((o) => (n("pointermove", o), o.defaultPrevented), pe((o) => {
|
|
568
571
|
if (e.disabled) {
|
|
569
|
-
|
|
572
|
+
v(o);
|
|
570
573
|
return;
|
|
571
574
|
}
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
})), _ =
|
|
575
|
+
const u = o.currentTarget;
|
|
576
|
+
u === document.activeElement || u.contains(document.activeElement) || (s(o), o.defaultPrevented || u == null || u.focus());
|
|
577
|
+
})), _ = M((o) => (n("pointerleave", o), o.defaultPrevented), pe(v)), E = M((o) => {
|
|
575
578
|
if (!e.disabled)
|
|
576
579
|
return n("click", o), o.type !== "keydown" && o.defaultPrevented;
|
|
577
580
|
}, (o) => {
|
|
578
|
-
var
|
|
581
|
+
var u, f, g;
|
|
579
582
|
if (e.disabled) {
|
|
580
583
|
o.stopImmediatePropagation();
|
|
581
584
|
return;
|
|
582
585
|
}
|
|
583
|
-
(
|
|
584
|
-
}),
|
|
586
|
+
(u = t == null ? void 0 : t.hideOnClick) != null && u.value && ((f = t.handleClick) == null || f.call(t)), (g = t.commandHandler) == null || g.call(t, e.command, w, o);
|
|
587
|
+
}), P = k(() => ({ ...e, ...p }));
|
|
585
588
|
return {
|
|
586
|
-
handleClick:
|
|
587
|
-
handlePointerMove:
|
|
589
|
+
handleClick: E,
|
|
590
|
+
handlePointerMove: d,
|
|
588
591
|
handlePointerLeave: _,
|
|
589
592
|
textContent: c,
|
|
590
|
-
propsAndAttrs:
|
|
593
|
+
propsAndAttrs: P
|
|
591
594
|
};
|
|
592
595
|
}
|
|
593
596
|
});
|
|
594
|
-
function
|
|
597
|
+
function Yo(e, n, p, t, w, m) {
|
|
595
598
|
var c;
|
|
596
|
-
const s =
|
|
597
|
-
return
|
|
599
|
+
const s = F("el-dropdown-item-impl"), v = F("el-roving-focus-item"), d = F("el-dropdown-collection-item");
|
|
600
|
+
return D(), H(d, {
|
|
598
601
|
disabled: e.disabled,
|
|
599
602
|
"text-value": (c = e.textValue) != null ? c : e.textContent
|
|
600
603
|
}, {
|
|
601
|
-
default:
|
|
602
|
-
|
|
604
|
+
default: i(() => [
|
|
605
|
+
a(v, {
|
|
603
606
|
focusable: !e.disabled
|
|
604
607
|
}, {
|
|
605
|
-
default:
|
|
606
|
-
|
|
608
|
+
default: i(() => [
|
|
609
|
+
a(s, Z(e.propsAndAttrs, {
|
|
607
610
|
onPointerleave: e.handlePointerLeave,
|
|
608
611
|
onPointermove: e.handlePointerMove,
|
|
609
612
|
onClickimpl: e.handleClick
|
|
610
613
|
}), {
|
|
611
|
-
default:
|
|
614
|
+
default: i(() => [
|
|
612
615
|
G(e.$slots, "default")
|
|
613
616
|
]),
|
|
614
617
|
_: 3
|
|
@@ -620,50 +623,50 @@ function zo(e, n, f, r, v, m) {
|
|
|
620
623
|
_: 3
|
|
621
624
|
}, 8, ["disabled", "text-value"]);
|
|
622
625
|
}
|
|
623
|
-
var
|
|
624
|
-
const
|
|
626
|
+
var Pe = /* @__PURE__ */ V(zo, [["render", Yo], ["__file", "dropdown-item.vue"]]);
|
|
627
|
+
const Ho = U({
|
|
625
628
|
name: "ElDropdownMenu",
|
|
626
|
-
props:
|
|
629
|
+
props: uo,
|
|
627
630
|
setup(e) {
|
|
628
|
-
const n = te("dropdown"), { _elDropdownSize:
|
|
629
|
-
rovingFocusGroupRef:
|
|
630
|
-
rovingFocusGroupRootStyle:
|
|
631
|
+
const n = te("dropdown"), { _elDropdownSize: p } = ye(), t = p.value, { focusTrapRef: w, onKeydown: m } = R(mo, void 0), { contentRef: c, role: s, triggerId: v } = R(ee, void 0), { collectionRef: d, getItems: _ } = R(co, void 0), {
|
|
632
|
+
rovingFocusGroupRef: E,
|
|
633
|
+
rovingFocusGroupRootStyle: P,
|
|
631
634
|
tabIndex: o,
|
|
632
|
-
onBlur:
|
|
633
|
-
onFocus:
|
|
634
|
-
onMousedown:
|
|
635
|
-
} = R(ae, void 0), { collectionRef: C } = R(se, void 0),
|
|
636
|
-
var
|
|
637
|
-
(
|
|
638
|
-
}, (
|
|
639
|
-
const { currentTarget:
|
|
640
|
-
if (
|
|
635
|
+
onBlur: u,
|
|
636
|
+
onFocus: f,
|
|
637
|
+
onMousedown: g
|
|
638
|
+
} = R(ae, void 0), { collectionRef: C } = R(se, void 0), r = k(() => [n.b("menu"), n.bm("menu", t == null ? void 0 : t.value)]), T = we(c, d, w, E, C), b = M((y) => {
|
|
639
|
+
var K;
|
|
640
|
+
(K = e.onKeydown) == null || K.call(e, y);
|
|
641
|
+
}, (y) => {
|
|
642
|
+
const { currentTarget: K, code: B, target: S } = y;
|
|
643
|
+
if (K.contains(S), N.tab === B && y.stopImmediatePropagation(), y.preventDefault(), S !== $(c) || !po.includes(B))
|
|
641
644
|
return;
|
|
642
|
-
const
|
|
643
|
-
|
|
645
|
+
const z = _().filter((I) => !I.disabled).map((I) => I.ref);
|
|
646
|
+
fo.includes(B) && z.reverse(), ie(z);
|
|
644
647
|
});
|
|
645
648
|
return {
|
|
646
|
-
size:
|
|
647
|
-
rovingFocusGroupRootStyle:
|
|
649
|
+
size: t,
|
|
650
|
+
rovingFocusGroupRootStyle: P,
|
|
648
651
|
tabIndex: o,
|
|
649
|
-
dropdownKls:
|
|
652
|
+
dropdownKls: r,
|
|
650
653
|
role: s,
|
|
651
|
-
triggerId:
|
|
652
|
-
dropdownListWrapperRef:
|
|
653
|
-
handleKeydown: (
|
|
654
|
-
|
|
654
|
+
triggerId: v,
|
|
655
|
+
dropdownListWrapperRef: T,
|
|
656
|
+
handleKeydown: (y) => {
|
|
657
|
+
b(y), m(y);
|
|
655
658
|
},
|
|
656
|
-
onBlur:
|
|
657
|
-
onFocus:
|
|
658
|
-
onMousedown:
|
|
659
|
+
onBlur: u,
|
|
660
|
+
onFocus: f,
|
|
661
|
+
onMousedown: g
|
|
659
662
|
};
|
|
660
663
|
}
|
|
661
664
|
});
|
|
662
|
-
function
|
|
663
|
-
return
|
|
665
|
+
function Jo(e, n, p, t, w, m) {
|
|
666
|
+
return D(), A("ul", {
|
|
664
667
|
ref: e.dropdownListWrapperRef,
|
|
665
668
|
class: X(e.dropdownKls),
|
|
666
|
-
style:
|
|
669
|
+
style: Je(e.rovingFocusGroupRootStyle),
|
|
667
670
|
tabindex: -1,
|
|
668
671
|
role: e.role,
|
|
669
672
|
"aria-labelledby": e.triggerId,
|
|
@@ -675,12 +678,12 @@ function Ho(e, n, f, r, v, m) {
|
|
|
675
678
|
G(e.$slots, "default")
|
|
676
679
|
], 46, ["role", "aria-labelledby", "onBlur", "onFocus", "onKeydown", "onMousedown"]);
|
|
677
680
|
}
|
|
678
|
-
var
|
|
679
|
-
const
|
|
680
|
-
DropdownItem:
|
|
681
|
-
DropdownMenu:
|
|
682
|
-
}),
|
|
683
|
-
const
|
|
681
|
+
var Fe = /* @__PURE__ */ V(Ho, [["render", Jo], ["__file", "dropdown-menu.vue"]]);
|
|
682
|
+
const Wo = Se(Bo, {
|
|
683
|
+
DropdownItem: Pe,
|
|
684
|
+
DropdownMenu: Fe
|
|
685
|
+
}), jo = ve(Pe), qo = ve(Fe);
|
|
686
|
+
const Qo = { class: "user" }, Xo = { key: 0 }, Zo = { class: "user-msg" }, xo = { class: "dialog-footer" }, en = {
|
|
684
687
|
__name: "index",
|
|
685
688
|
props: {
|
|
686
689
|
config: {
|
|
@@ -691,66 +694,74 @@ const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo =
|
|
|
691
694
|
},
|
|
692
695
|
emits: ["loginout"],
|
|
693
696
|
setup(e, { emit: n }) {
|
|
694
|
-
const
|
|
697
|
+
const p = R("stConfig"), t = Xe(), w = h(null), m = n, c = e, s = h(null), v = h(!1), d = h({
|
|
695
698
|
oldPassword: "",
|
|
696
699
|
newPassword: "",
|
|
697
700
|
confirmPassword: ""
|
|
698
|
-
}), _ =
|
|
701
|
+
}), _ = h({
|
|
699
702
|
oldPassword: [
|
|
700
703
|
{ required: !0, message: "请输入原密码", trigger: "blur" },
|
|
701
704
|
{ min: 6, max: 18, trigger: "blur", message: "密码长度为6到18位" }
|
|
702
705
|
],
|
|
703
|
-
newPassword: [
|
|
704
|
-
{ required: !0, message: "请输入新密码", trigger: "blur" },
|
|
705
|
-
{ min: 6, max: 18, trigger: "blur", message: "密码长度为6到18位" }
|
|
706
|
-
],
|
|
706
|
+
newPassword: [],
|
|
707
707
|
confirmPassword: [
|
|
708
708
|
{ required: !0, message: "请输入确认密码", trigger: "blur" },
|
|
709
|
-
{
|
|
710
|
-
|
|
711
|
-
|
|
709
|
+
{
|
|
710
|
+
validator: (C, r, T) => {
|
|
711
|
+
r === "" ? T(new Error("请输入确认密码")) : r !== d.value.newPassword ? T(new Error("两次输入密码不一致!")) : T();
|
|
712
|
+
},
|
|
713
|
+
trigger: "blur"
|
|
714
|
+
},
|
|
712
715
|
{ min: 6, max: 18, trigger: "blur", message: "密码长度为6到18位" }
|
|
713
716
|
]
|
|
714
|
-
}), h = () => {
|
|
715
|
-
const { loginUrl:
|
|
716
|
-
|
|
717
|
-
}, I = () => {
|
|
718
|
-
const { loginoutToLogin: i, loginoutUrl: t } = m.config || {};
|
|
719
|
-
oo(i, t), v("loginout");
|
|
717
|
+
}), E = h(!1), P = () => {
|
|
718
|
+
const { loginUrl: C } = c.config || {};
|
|
719
|
+
Ze(C);
|
|
720
720
|
}, o = () => {
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
721
|
+
const { loginoutToLogin: C, loginoutUrl: r } = c.config || {};
|
|
722
|
+
xe(C, r), m("loginout");
|
|
723
|
+
}, u = () => {
|
|
724
|
+
s.value.validate(async (C, r) => {
|
|
725
|
+
C && (await p.request.post("/invest/sys/user/password", {
|
|
726
|
+
password: d.value.oldPassword,
|
|
727
|
+
newPassword: d.value.newPassword,
|
|
728
|
+
newPassword2: d.value.confirmPassword
|
|
729
|
+
}), oo.success("修改成功!"), v.value = !1);
|
|
730
|
+
});
|
|
731
|
+
}, f = () => {
|
|
732
|
+
_.value.newPassword.length === 0 && be(() => {
|
|
733
|
+
var r;
|
|
734
|
+
_.value.newPassword = (r = w.value) == null ? void 0 : r.ruleFormPassword;
|
|
735
|
+
let C = setTimeout(() => {
|
|
736
|
+
s.value.resetFields(), clearTimeout(C);
|
|
737
|
+
}, 0);
|
|
727
738
|
});
|
|
728
|
-
},
|
|
729
|
-
|
|
739
|
+
}, g = () => {
|
|
740
|
+
d.value = {
|
|
730
741
|
oldPassword: "",
|
|
731
742
|
newPassword: "",
|
|
732
743
|
confirmPassword: ""
|
|
733
|
-
},
|
|
744
|
+
}, s.value.resetFields();
|
|
734
745
|
};
|
|
735
|
-
return (
|
|
736
|
-
const
|
|
737
|
-
return
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
dropdown:
|
|
741
|
-
|
|
742
|
-
default:
|
|
743
|
-
|
|
744
|
-
onClick:
|
|
746
|
+
return (C, r) => {
|
|
747
|
+
const T = le, b = jo, O = qo, y = Wo, K = Ne, B = Oe, S = De, J = re, z = ke;
|
|
748
|
+
return D(), A("div", Qo, [
|
|
749
|
+
$(t) ? (D(), A("div", Xo, [
|
|
750
|
+
a(y, { placement: "bottom" }, {
|
|
751
|
+
dropdown: i(() => [
|
|
752
|
+
a(O, null, {
|
|
753
|
+
default: i(() => [
|
|
754
|
+
a(b, {
|
|
755
|
+
onClick: r[0] || (r[0] = (I) => v.value = !0)
|
|
745
756
|
}, {
|
|
746
|
-
default:
|
|
747
|
-
|
|
757
|
+
default: i(() => [
|
|
758
|
+
W("修改密码")
|
|
748
759
|
]),
|
|
749
760
|
_: 1
|
|
750
761
|
}),
|
|
751
|
-
|
|
752
|
-
default:
|
|
753
|
-
|
|
762
|
+
a(b, { onClick: o }, {
|
|
763
|
+
default: i(() => [
|
|
764
|
+
W("退出登录")
|
|
754
765
|
]),
|
|
755
766
|
_: 1
|
|
756
767
|
})
|
|
@@ -758,20 +769,20 @@ const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo =
|
|
|
758
769
|
_: 1
|
|
759
770
|
})
|
|
760
771
|
]),
|
|
761
|
-
default:
|
|
762
|
-
var
|
|
772
|
+
default: i(() => {
|
|
773
|
+
var I;
|
|
763
774
|
return [
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
default:
|
|
767
|
-
|
|
775
|
+
q("div", Zo, [
|
|
776
|
+
a(T, { class: "user-msg-icon" }, {
|
|
777
|
+
default: i(() => [
|
|
778
|
+
a($(qe))
|
|
768
779
|
]),
|
|
769
780
|
_: 1
|
|
770
781
|
}),
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
default:
|
|
774
|
-
|
|
782
|
+
q("span", null, We((I = $(t)) == null ? void 0 : I.username), 1),
|
|
783
|
+
a(T, { class: "user-msg-arrow" }, {
|
|
784
|
+
default: i(() => [
|
|
785
|
+
a($(Ee))
|
|
775
786
|
]),
|
|
776
787
|
_: 1
|
|
777
788
|
})
|
|
@@ -780,95 +791,106 @@ const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo =
|
|
|
780
791
|
}),
|
|
781
792
|
_: 1
|
|
782
793
|
})
|
|
783
|
-
])) : (
|
|
794
|
+
])) : (D(), A("div", {
|
|
784
795
|
key: 1,
|
|
785
796
|
class: "user-login",
|
|
786
|
-
onClick:
|
|
797
|
+
onClick: P
|
|
787
798
|
}, [
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
default:
|
|
791
|
-
|
|
799
|
+
W(" 前往登录 "),
|
|
800
|
+
a(T, { class: "user-login-icon" }, {
|
|
801
|
+
default: i(() => [
|
|
802
|
+
a($(Qe))
|
|
792
803
|
]),
|
|
793
804
|
_: 1
|
|
794
805
|
})
|
|
795
806
|
])),
|
|
796
|
-
|
|
797
|
-
modelValue:
|
|
798
|
-
"onUpdate:modelValue":
|
|
807
|
+
a(z, {
|
|
808
|
+
modelValue: v.value,
|
|
809
|
+
"onUpdate:modelValue": r[7] || (r[7] = (I) => v.value = I),
|
|
799
810
|
title: "修改密码",
|
|
800
811
|
width: "500",
|
|
801
812
|
"z-index": 200,
|
|
802
|
-
|
|
813
|
+
onOpened: f,
|
|
814
|
+
onClosed: g
|
|
803
815
|
}, {
|
|
804
|
-
footer:
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
onClick:
|
|
816
|
+
footer: i(() => [
|
|
817
|
+
q("div", xo, [
|
|
818
|
+
a(J, {
|
|
819
|
+
onClick: r[6] || (r[6] = (I) => v.value = !1)
|
|
808
820
|
}, {
|
|
809
|
-
default:
|
|
810
|
-
|
|
821
|
+
default: i(() => [
|
|
822
|
+
W("取消")
|
|
811
823
|
]),
|
|
812
824
|
_: 1
|
|
813
825
|
}),
|
|
814
|
-
|
|
826
|
+
a(J, {
|
|
815
827
|
type: "primary",
|
|
816
|
-
onClick:
|
|
828
|
+
onClick: u
|
|
817
829
|
}, {
|
|
818
|
-
default:
|
|
819
|
-
|
|
830
|
+
default: i(() => [
|
|
831
|
+
W(" 修改 ")
|
|
820
832
|
]),
|
|
821
833
|
_: 1
|
|
822
834
|
})
|
|
823
835
|
])
|
|
824
836
|
]),
|
|
825
|
-
default:
|
|
826
|
-
|
|
837
|
+
default: i(() => [
|
|
838
|
+
a(S, {
|
|
827
839
|
ref_key: "changePasswordFormRef",
|
|
828
|
-
ref:
|
|
829
|
-
model:
|
|
840
|
+
ref: s,
|
|
841
|
+
model: d.value,
|
|
830
842
|
rules: _.value,
|
|
831
|
-
onSubmit: x(
|
|
832
|
-
onKeyup: je(
|
|
843
|
+
onSubmit: x(u, ["prevent"]),
|
|
844
|
+
onKeyup: je(u, ["enter", "native"]),
|
|
833
845
|
"label-width": "auto"
|
|
834
846
|
}, {
|
|
835
|
-
default:
|
|
836
|
-
|
|
847
|
+
default: i(() => [
|
|
848
|
+
a(B, {
|
|
837
849
|
label: "原密码",
|
|
838
850
|
prop: "oldPassword"
|
|
839
851
|
}, {
|
|
840
|
-
default:
|
|
841
|
-
|
|
842
|
-
modelValue:
|
|
843
|
-
"onUpdate:modelValue":
|
|
852
|
+
default: i(() => [
|
|
853
|
+
a(K, {
|
|
854
|
+
modelValue: d.value.oldPassword,
|
|
855
|
+
"onUpdate:modelValue": r[1] || (r[1] = (I) => d.value.oldPassword = I),
|
|
844
856
|
type: "password",
|
|
845
857
|
"show-password": !0
|
|
846
858
|
}, null, 8, ["modelValue"])
|
|
847
859
|
]),
|
|
848
860
|
_: 1
|
|
849
861
|
}),
|
|
850
|
-
|
|
862
|
+
a(B, {
|
|
851
863
|
label: "新密码",
|
|
852
864
|
prop: "newPassword"
|
|
853
865
|
}, {
|
|
854
|
-
default:
|
|
855
|
-
|
|
856
|
-
modelValue:
|
|
857
|
-
"onUpdate:modelValue":
|
|
866
|
+
default: i(() => [
|
|
867
|
+
a(K, {
|
|
868
|
+
modelValue: d.value.newPassword,
|
|
869
|
+
"onUpdate:modelValue": r[2] || (r[2] = (I) => d.value.newPassword = I),
|
|
858
870
|
type: "password",
|
|
859
|
-
"show-password": !0
|
|
860
|
-
|
|
871
|
+
"show-password": !0,
|
|
872
|
+
onFocus: r[3] || (r[3] = () => {
|
|
873
|
+
s.value.clearValidate(["newPassword"]), E.value = !0;
|
|
874
|
+
}),
|
|
875
|
+
onBlur: r[4] || (r[4] = (I) => E.value = !1)
|
|
876
|
+
}, null, 8, ["modelValue"]),
|
|
877
|
+
a(eo, {
|
|
878
|
+
ref_key: "PasswordPromptRef",
|
|
879
|
+
ref: w,
|
|
880
|
+
value: d.value.newPassword,
|
|
881
|
+
isFocus: E.value
|
|
882
|
+
}, null, 8, ["value", "isFocus"])
|
|
861
883
|
]),
|
|
862
884
|
_: 1
|
|
863
885
|
}),
|
|
864
|
-
|
|
886
|
+
a(B, {
|
|
865
887
|
label: "确认密码",
|
|
866
888
|
prop: "confirmPassword"
|
|
867
889
|
}, {
|
|
868
|
-
default:
|
|
869
|
-
|
|
870
|
-
modelValue:
|
|
871
|
-
"onUpdate:modelValue":
|
|
890
|
+
default: i(() => [
|
|
891
|
+
a(K, {
|
|
892
|
+
modelValue: d.value.confirmPassword,
|
|
893
|
+
"onUpdate:modelValue": r[5] || (r[5] = (I) => d.value.confirmPassword = I),
|
|
872
894
|
type: "password",
|
|
873
895
|
"show-password": !0
|
|
874
896
|
}, null, 8, ["modelValue"])
|
|
@@ -884,11 +906,11 @@ const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo =
|
|
|
884
906
|
]);
|
|
885
907
|
};
|
|
886
908
|
}
|
|
887
|
-
},
|
|
909
|
+
}, on = /* @__PURE__ */ no(en, [["__scopeId", "data-v-7e945ac7"]]), kn = {
|
|
888
910
|
install(e) {
|
|
889
|
-
e.component("st-user",
|
|
911
|
+
e.component("st-user", on);
|
|
890
912
|
}
|
|
891
913
|
};
|
|
892
914
|
export {
|
|
893
|
-
|
|
915
|
+
kn as default
|
|
894
916
|
};
|