jmash-core 0.0.40 → 0.0.41
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/dist/{401-CEl3xZ9U.mjs → 401-CJFCHgSZ.mjs} +2 -2
- package/dist/{404-BJI4jQGp.mjs → 404-CIMxkP9D.mjs} +1 -1
- package/dist/{BarChart-DdL2YjH9.mjs → BarChart-DU09mkLm.mjs} +2 -2
- package/dist/{PieChart-DpRLzU_D.mjs → PieChart-CoqFm60I.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-Db-lqTD8.mjs → PieChart.vue_vue_type_script_setup_true_lang-sfYOFNKO.mjs} +2 -2
- package/dist/{RadarChart-2a1QGb0r.mjs → RadarChart-0WISsxpt.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-CwF9slnO.mjs → RadarChart.vue_vue_type_script_setup_true_lang-BIOHXswr.mjs} +2 -2
- package/dist/{el-card-FMIPeWk6.mjs → el-card-DTXS4SWb.mjs} +1 -1
- package/dist/{el-col-8K1Xv7aq.mjs → el-col-C1oER81S.mjs} +1 -1
- package/dist/{el-form-item-J_27GFln.mjs → el-form-item-CJcAbcqr.mjs} +76 -76
- package/dist/{index-BB9i38wB.mjs → index-BAk-5oG9.mjs} +1 -1
- package/dist/{index--oHFkGGF.mjs → index-BwIx8FCt.mjs} +32 -32
- package/dist/{index-C_arFWKZ.mjs → index-C195Pa7c.mjs} +9759 -11332
- package/dist/{index-Ca93omwQ.mjs → index-DB4OW-7Q.mjs} +980 -944
- package/dist/{index-BUndPokw.mjs → index-ORr19rEl.mjs} +42 -42
- package/dist/index.mjs +36 -36
- package/dist/index.vue_vue_type_script_setup_true_lang-fPrQh0lj.mjs +720 -0
- package/dist/{picture-BQKPWIIU.mjs → picture-Cpgh-vo-.mjs} +106 -106
- package/dist/{position-DZbY0x3r.mjs → position-M0AZIV5D.mjs} +1 -1
- package/dist/profile-DBegP-cF.mjs +4904 -0
- package/dist/{runAs-DSfasz8M.mjs → runAs-xhA9mf-i.mjs} +1 -1
- package/dist/runAs.vue_vue_type_script_setup_true_lang-DLfQ0lsg.mjs +610 -0
- package/dist/style.css +1 -1
- package/dist/{types-BHZ78WKD.mjs → types-FkPgztcJ.mjs} +4 -3
- package/dist/{updatePwd-D2U2rq9Q.mjs → updatePwd-D1EnTbTY.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-HlhGZun3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DkH3J5K0.mjs} +20 -20
- package/dts/src/api/auth/index.d.ts +27 -2
- package/dts/src/api/auth/types.d.ts +42 -34
- package/dts/src/index.d.ts +2 -3
- package/dts/src/lang/package/zh-cn.d.ts +2 -0
- package/dts/src/utils/request.d.ts +2 -0
- package/package.json +1 -1
- package/dist/edit-BEz2CGVA.mjs +0 -4
- package/dist/edit-BfCUuHU7.mjs +0 -823
- package/dist/edit-BjIGOyRY.mjs +0 -4
- package/dist/edit-ByyeESA7.mjs +0 -4
- package/dist/edit-DCqdRa7R.mjs +0 -4
- package/dist/edit-DaPZ7RSc.mjs +0 -4
- package/dist/edit-Mg7mOWDc.mjs +0 -4
- package/dist/edit-voW3EO87.mjs +0 -459
- package/dist/edit.vue_vue_type_script_setup_true_lang-BCgNC4mY.mjs +0 -136
- package/dist/edit.vue_vue_type_script_setup_true_lang-BMYBrnHy.mjs +0 -280
- package/dist/edit.vue_vue_type_script_setup_true_lang-C-WS99W7.mjs +0 -157
- package/dist/edit.vue_vue_type_script_setup_true_lang-CylQxP9Z.mjs +0 -226
- package/dist/edit.vue_vue_type_script_setup_true_lang-DDCQNqdc.mjs +0 -593
- package/dist/edit.vue_vue_type_script_setup_true_lang-DyO-f1Lc.mjs +0 -216
- package/dist/el-checkbox-group-l0sNRNKZ.mjs +0 -1
- package/dist/el-date-picker-CHigi6WN.mjs +0 -3345
- package/dist/el-divider-Cg4Mgsu-.mjs +0 -45
- package/dist/el-dropdown-item-DHcRJ-Fg.mjs +0 -671
- package/dist/el-tree-select-C4cU2Ot7.mjs +0 -1313
- package/dist/index-9e59vbzb.mjs +0 -949
- package/dist/index-B5IfrzOt.mjs +0 -63
- package/dist/index-BcxeqvFF.mjs +0 -505
- package/dist/index-BoT8a4D9.mjs +0 -480
- package/dist/index-BzsE8aZb.mjs +0 -280
- package/dist/index-CKu3Vm7Y.mjs +0 -246
- package/dist/index-CPi9CcGt.mjs +0 -134
- package/dist/index-CdarTP7Q.mjs +0 -471
- package/dist/index-D3kdKwxs.mjs +0 -292
- package/dist/index-D7uxePGV.mjs +0 -501
- package/dist/index-DSwTLzp1.mjs +0 -74
- package/dist/index-Dd9wDjLG.mjs +0 -280
- package/dist/index-DdnQhmYX.mjs +0 -502
- package/dist/index-DsmvLyNJ.mjs +0 -93
- package/dist/index-VD2Oa87u.mjs +0 -280
- package/dist/index.vue_vue_type_script_setup_true_lang-BUTwLlja.mjs +0 -55
- package/dist/moment-CMYwqyVT.mjs +0 -2579
- package/dist/profile-Blgfj6Pw.mjs +0 -262
- package/dist/runAs.vue_vue_type_script_setup_true_lang-xOMc-WaC.mjs +0 -114
|
@@ -1,671 +0,0 @@
|
|
|
1
|
-
import { defineComponent as A, ref as $, inject as h, computed as C, provide as W, readonly as $e, toRef as H, unref as O, watch as ce, renderSlot as B, resolveComponent as g, openBlock as N, createBlock as U, withCtx as v, createVNode as R, normalizeProps as Te, guardReactiveProps as Fe, nextTick as Re, getCurrentInstance as pe, onBeforeUnmount as Se, createElementBlock as j, normalizeClass as q, createSlots as ke, mergeProps as V, createCommentVNode as Z, Fragment as Oe, createElementVNode as Pe, withModifiers as x, resolveDynamicComponent as De, normalizeStyle as Ne } from "vue";
|
|
2
|
-
import { b as Ke, d as X, bJ as Be, A as E, aD as Le, _ as G, bK as P, be as fe, t as ve, ad as Me, bL as Ae, r as Ge, bM as ze, E as me, x as Ue, bN as Ye, u as ee, k as He, e as Ve, m as Je, bO as be, bP as We, bQ as je, bR as ge, bS as Qe, bT as ae, bU as Xe, bV as qe, bW as Ze, bX as xe, bY as eo, w as oo, a as we } from "./index-C_arFWKZ.mjs";
|
|
3
|
-
import { c as no } from "./el-form-item-J_27GFln.mjs";
|
|
4
|
-
const to = Ke({
|
|
5
|
-
style: { type: X([String, Array, Object]) },
|
|
6
|
-
currentTabId: {
|
|
7
|
-
type: X(String)
|
|
8
|
-
},
|
|
9
|
-
defaultCurrentTabId: String,
|
|
10
|
-
loop: Boolean,
|
|
11
|
-
dir: {
|
|
12
|
-
type: String,
|
|
13
|
-
values: ["ltr", "rtl"],
|
|
14
|
-
default: "ltr"
|
|
15
|
-
},
|
|
16
|
-
orientation: {
|
|
17
|
-
type: X(String)
|
|
18
|
-
},
|
|
19
|
-
onBlur: Function,
|
|
20
|
-
onFocus: Function,
|
|
21
|
-
onMousedown: Function
|
|
22
|
-
}), {
|
|
23
|
-
ElCollection: ro,
|
|
24
|
-
ElCollectionItem: lo,
|
|
25
|
-
COLLECTION_INJECTION_KEY: oe,
|
|
26
|
-
COLLECTION_ITEM_INJECTION_KEY: so
|
|
27
|
-
} = Be("RovingFocusGroup"), ne = Symbol("elRovingFocusGroup"), Ie = Symbol("elRovingFocusGroupItem"), io = {
|
|
28
|
-
ArrowLeft: "prev",
|
|
29
|
-
ArrowUp: "prev",
|
|
30
|
-
ArrowRight: "next",
|
|
31
|
-
ArrowDown: "next",
|
|
32
|
-
PageUp: "first",
|
|
33
|
-
Home: "first",
|
|
34
|
-
PageDown: "last",
|
|
35
|
-
End: "last"
|
|
36
|
-
}, ao = (e, o) => {
|
|
37
|
-
if (o !== "rtl")
|
|
38
|
-
return e;
|
|
39
|
-
switch (e) {
|
|
40
|
-
case E.right:
|
|
41
|
-
return E.left;
|
|
42
|
-
case E.left:
|
|
43
|
-
return E.right;
|
|
44
|
-
default:
|
|
45
|
-
return e;
|
|
46
|
-
}
|
|
47
|
-
}, uo = (e, o, a) => {
|
|
48
|
-
const t = ao(e.key, a);
|
|
49
|
-
if (!(o === "vertical" && [E.left, E.right].includes(t)) && !(o === "horizontal" && [E.up, E.down].includes(t)))
|
|
50
|
-
return io[t];
|
|
51
|
-
}, co = (e, o) => e.map((a, t) => e[(t + o) % e.length]), te = (e) => {
|
|
52
|
-
const { activeElement: o } = document;
|
|
53
|
-
for (const a of e)
|
|
54
|
-
if (a === o || (a.focus(), o !== document.activeElement))
|
|
55
|
-
return;
|
|
56
|
-
}, de = "currentTabIdChange", ue = "rovingFocusGroup.entryFocus", po = { bubbles: !1, cancelable: !0 }, fo = A({
|
|
57
|
-
name: "ElRovingFocusGroupImpl",
|
|
58
|
-
inheritAttrs: !1,
|
|
59
|
-
props: to,
|
|
60
|
-
emits: [de, "entryFocus"],
|
|
61
|
-
setup(e, { emit: o }) {
|
|
62
|
-
var a;
|
|
63
|
-
const t = $((a = e.currentTabId || e.defaultCurrentTabId) != null ? a : null), c = $(!1), u = $(!1), s = $(null), { getItems: l } = h(oe, void 0), p = C(() => [
|
|
64
|
-
{
|
|
65
|
-
outline: "none"
|
|
66
|
-
},
|
|
67
|
-
e.style
|
|
68
|
-
]), m = (i) => {
|
|
69
|
-
o(de, i);
|
|
70
|
-
}, b = () => {
|
|
71
|
-
c.value = !0;
|
|
72
|
-
}, w = P((i) => {
|
|
73
|
-
var f;
|
|
74
|
-
(f = e.onMousedown) == null || f.call(e, i);
|
|
75
|
-
}, () => {
|
|
76
|
-
u.value = !0;
|
|
77
|
-
}), _ = P((i) => {
|
|
78
|
-
var f;
|
|
79
|
-
(f = e.onFocus) == null || f.call(e, i);
|
|
80
|
-
}, (i) => {
|
|
81
|
-
const f = !O(u), { target: K, currentTarget: S } = i;
|
|
82
|
-
if (K === S && f && !O(c)) {
|
|
83
|
-
const L = new Event(ue, po);
|
|
84
|
-
if (S == null || S.dispatchEvent(L), !L.defaultPrevented) {
|
|
85
|
-
const I = l().filter((F) => F.focusable), y = I.find((F) => F.active), T = I.find((F) => F.id === O(t)), M = [y, T, ...I].filter(Boolean).map((F) => F.ref);
|
|
86
|
-
te(M);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
u.value = !1;
|
|
90
|
-
}), n = P((i) => {
|
|
91
|
-
var f;
|
|
92
|
-
(f = e.onBlur) == null || f.call(e, i);
|
|
93
|
-
}, () => {
|
|
94
|
-
c.value = !1;
|
|
95
|
-
}), d = (...i) => {
|
|
96
|
-
o("entryFocus", ...i);
|
|
97
|
-
};
|
|
98
|
-
W(ne, {
|
|
99
|
-
currentTabbedId: $e(t),
|
|
100
|
-
loop: H(e, "loop"),
|
|
101
|
-
tabIndex: C(() => O(c) ? -1 : 0),
|
|
102
|
-
rovingFocusGroupRef: s,
|
|
103
|
-
rovingFocusGroupRootStyle: p,
|
|
104
|
-
orientation: H(e, "orientation"),
|
|
105
|
-
dir: H(e, "dir"),
|
|
106
|
-
onItemFocus: m,
|
|
107
|
-
onItemShiftTab: b,
|
|
108
|
-
onBlur: n,
|
|
109
|
-
onFocus: _,
|
|
110
|
-
onMousedown: w
|
|
111
|
-
}), ce(() => e.currentTabId, (i) => {
|
|
112
|
-
t.value = i ?? null;
|
|
113
|
-
}), Le(s, ue, d);
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
function vo(e, o, a, t, c, u) {
|
|
117
|
-
return B(e.$slots, "default");
|
|
118
|
-
}
|
|
119
|
-
var mo = /* @__PURE__ */ G(fo, [["render", vo], ["__file", "roving-focus-group-impl.vue"]]);
|
|
120
|
-
const bo = A({
|
|
121
|
-
name: "ElRovingFocusGroup",
|
|
122
|
-
components: {
|
|
123
|
-
ElFocusGroupCollection: ro,
|
|
124
|
-
ElRovingFocusGroupImpl: mo
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
function go(e, o, a, t, c, u) {
|
|
128
|
-
const s = g("el-roving-focus-group-impl"), l = g("el-focus-group-collection");
|
|
129
|
-
return N(), U(l, null, {
|
|
130
|
-
default: v(() => [
|
|
131
|
-
R(s, Te(Fe(e.$attrs)), {
|
|
132
|
-
default: v(() => [
|
|
133
|
-
B(e.$slots, "default")
|
|
134
|
-
]),
|
|
135
|
-
_: 3
|
|
136
|
-
}, 16)
|
|
137
|
-
]),
|
|
138
|
-
_: 3
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
var wo = /* @__PURE__ */ G(bo, [["render", go], ["__file", "roving-focus-group.vue"]]);
|
|
142
|
-
const Io = A({
|
|
143
|
-
components: {
|
|
144
|
-
ElRovingFocusCollectionItem: lo
|
|
145
|
-
},
|
|
146
|
-
props: {
|
|
147
|
-
focusable: {
|
|
148
|
-
type: Boolean,
|
|
149
|
-
default: !0
|
|
150
|
-
},
|
|
151
|
-
active: {
|
|
152
|
-
type: Boolean,
|
|
153
|
-
default: !1
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
emits: ["mousedown", "focus", "keydown"],
|
|
157
|
-
setup(e, { emit: o }) {
|
|
158
|
-
const { currentTabbedId: a, loop: t, onItemFocus: c, onItemShiftTab: u } = h(ne, void 0), { getItems: s } = h(oe, void 0), l = fe(), p = $(null), m = P((n) => {
|
|
159
|
-
o("mousedown", n);
|
|
160
|
-
}, (n) => {
|
|
161
|
-
e.focusable ? c(O(l)) : n.preventDefault();
|
|
162
|
-
}), b = P((n) => {
|
|
163
|
-
o("focus", n);
|
|
164
|
-
}, () => {
|
|
165
|
-
c(O(l));
|
|
166
|
-
}), w = P((n) => {
|
|
167
|
-
o("keydown", n);
|
|
168
|
-
}, (n) => {
|
|
169
|
-
const { key: d, shiftKey: i, target: f, currentTarget: K } = n;
|
|
170
|
-
if (d === E.tab && i) {
|
|
171
|
-
u();
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
if (f !== K)
|
|
175
|
-
return;
|
|
176
|
-
const S = uo(n);
|
|
177
|
-
if (S) {
|
|
178
|
-
n.preventDefault();
|
|
179
|
-
let I = s().filter((y) => y.focusable).map((y) => y.ref);
|
|
180
|
-
switch (S) {
|
|
181
|
-
case "last": {
|
|
182
|
-
I.reverse();
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
case "prev":
|
|
186
|
-
case "next": {
|
|
187
|
-
S === "prev" && I.reverse();
|
|
188
|
-
const y = I.indexOf(K);
|
|
189
|
-
I = t.value ? co(I, y + 1) : I.slice(y + 1);
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
Re(() => {
|
|
194
|
-
te(I);
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}), _ = C(() => a.value === O(l));
|
|
198
|
-
return W(Ie, {
|
|
199
|
-
rovingFocusGroupItemRef: p,
|
|
200
|
-
tabIndex: C(() => O(_) ? 0 : -1),
|
|
201
|
-
handleMousedown: m,
|
|
202
|
-
handleFocus: b,
|
|
203
|
-
handleKeydown: w
|
|
204
|
-
}), {
|
|
205
|
-
id: l,
|
|
206
|
-
handleKeydown: w,
|
|
207
|
-
handleFocus: b,
|
|
208
|
-
handleMousedown: m
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
function Eo(e, o, a, t, c, u) {
|
|
213
|
-
const s = g("el-roving-focus-collection-item");
|
|
214
|
-
return N(), U(s, {
|
|
215
|
-
id: e.id,
|
|
216
|
-
focusable: e.focusable,
|
|
217
|
-
active: e.active
|
|
218
|
-
}, {
|
|
219
|
-
default: v(() => [
|
|
220
|
-
B(e.$slots, "default")
|
|
221
|
-
]),
|
|
222
|
-
_: 3
|
|
223
|
-
}, 8, ["id", "focusable", "active"]);
|
|
224
|
-
}
|
|
225
|
-
var _o = /* @__PURE__ */ G(Io, [["render", Eo], ["__file", "roving-focus-item.vue"]]);
|
|
226
|
-
const Q = Symbol("elDropdown"), { ButtonGroup: ho } = ve, Co = A({
|
|
227
|
-
name: "ElDropdown",
|
|
228
|
-
components: {
|
|
229
|
-
ElButton: ve,
|
|
230
|
-
ElButtonGroup: ho,
|
|
231
|
-
ElScrollbar: Me,
|
|
232
|
-
ElDropdownCollection: Ae,
|
|
233
|
-
ElTooltip: Ge,
|
|
234
|
-
ElRovingFocusGroup: wo,
|
|
235
|
-
ElOnlyChild: ze,
|
|
236
|
-
ElIcon: me,
|
|
237
|
-
ArrowDown: Ue
|
|
238
|
-
},
|
|
239
|
-
props: Ye,
|
|
240
|
-
emits: ["visible-change", "click", "command"],
|
|
241
|
-
setup(e, { emit: o }) {
|
|
242
|
-
const a = pe(), t = ee("dropdown"), { t: c } = He(), u = $(), s = $(), l = $(null), p = $(null), m = $(null), b = $(null), w = $(!1), _ = [E.enter, E.space, E.down], n = C(() => ({
|
|
243
|
-
maxHeight: Ve(e.maxHeight)
|
|
244
|
-
})), d = C(() => [t.m(y.value)]), i = C(() => no(e.trigger)), f = fe().value, K = C(() => e.id || f);
|
|
245
|
-
ce([u, i], ([r, k], [z]) => {
|
|
246
|
-
var le, se, ie;
|
|
247
|
-
(le = z == null ? void 0 : z.$el) != null && le.removeEventListener && z.$el.removeEventListener("pointerenter", D), (se = r == null ? void 0 : r.$el) != null && se.removeEventListener && r.$el.removeEventListener("pointerenter", D), (ie = r == null ? void 0 : r.$el) != null && ie.addEventListener && k.includes("hover") && r.$el.addEventListener("pointerenter", D);
|
|
248
|
-
}, { immediate: !0 }), Se(() => {
|
|
249
|
-
var r, k;
|
|
250
|
-
(k = (r = u.value) == null ? void 0 : r.$el) != null && k.removeEventListener && u.value.$el.removeEventListener("pointerenter", D);
|
|
251
|
-
});
|
|
252
|
-
function S() {
|
|
253
|
-
L();
|
|
254
|
-
}
|
|
255
|
-
function L() {
|
|
256
|
-
var r;
|
|
257
|
-
(r = l.value) == null || r.onClose();
|
|
258
|
-
}
|
|
259
|
-
function I() {
|
|
260
|
-
var r;
|
|
261
|
-
(r = l.value) == null || r.onOpen();
|
|
262
|
-
}
|
|
263
|
-
const y = Je();
|
|
264
|
-
function T(...r) {
|
|
265
|
-
o("command", ...r);
|
|
266
|
-
}
|
|
267
|
-
function D() {
|
|
268
|
-
var r, k;
|
|
269
|
-
(k = (r = u.value) == null ? void 0 : r.$el) == null || k.focus();
|
|
270
|
-
}
|
|
271
|
-
function M() {
|
|
272
|
-
}
|
|
273
|
-
function F() {
|
|
274
|
-
const r = O(p);
|
|
275
|
-
i.value.includes("hover") && (r == null || r.focus()), b.value = null;
|
|
276
|
-
}
|
|
277
|
-
function re(r) {
|
|
278
|
-
b.value = r;
|
|
279
|
-
}
|
|
280
|
-
function J(r) {
|
|
281
|
-
w.value || (r.preventDefault(), r.stopImmediatePropagation());
|
|
282
|
-
}
|
|
283
|
-
function Y() {
|
|
284
|
-
o("visible-change", !0);
|
|
285
|
-
}
|
|
286
|
-
function Ce(r) {
|
|
287
|
-
(r == null ? void 0 : r.type) === "keydown" && p.value.focus();
|
|
288
|
-
}
|
|
289
|
-
function ye() {
|
|
290
|
-
o("visible-change", !1);
|
|
291
|
-
}
|
|
292
|
-
return W(Q, {
|
|
293
|
-
contentRef: p,
|
|
294
|
-
role: C(() => e.role),
|
|
295
|
-
triggerId: K,
|
|
296
|
-
isUsingKeyboard: w,
|
|
297
|
-
onItemEnter: M,
|
|
298
|
-
onItemLeave: F
|
|
299
|
-
}), W("elDropdown", {
|
|
300
|
-
instance: a,
|
|
301
|
-
dropdownSize: y,
|
|
302
|
-
handleClick: S,
|
|
303
|
-
commandHandler: T,
|
|
304
|
-
trigger: H(e, "trigger"),
|
|
305
|
-
hideOnClick: H(e, "hideOnClick")
|
|
306
|
-
}), {
|
|
307
|
-
t: c,
|
|
308
|
-
ns: t,
|
|
309
|
-
scrollbar: m,
|
|
310
|
-
wrapStyle: n,
|
|
311
|
-
dropdownTriggerKls: d,
|
|
312
|
-
dropdownSize: y,
|
|
313
|
-
triggerId: K,
|
|
314
|
-
triggerKeys: _,
|
|
315
|
-
currentTabId: b,
|
|
316
|
-
handleCurrentTabIdChange: re,
|
|
317
|
-
handlerMainButtonClick: (r) => {
|
|
318
|
-
o("click", r);
|
|
319
|
-
},
|
|
320
|
-
handleEntryFocus: J,
|
|
321
|
-
handleClose: L,
|
|
322
|
-
handleOpen: I,
|
|
323
|
-
handleBeforeShowTooltip: Y,
|
|
324
|
-
handleShowTooltip: Ce,
|
|
325
|
-
handleBeforeHideTooltip: ye,
|
|
326
|
-
onFocusAfterTrapped: (r) => {
|
|
327
|
-
var k, z;
|
|
328
|
-
r.preventDefault(), (z = (k = p.value) == null ? void 0 : k.focus) == null || z.call(k, {
|
|
329
|
-
preventScroll: !0
|
|
330
|
-
});
|
|
331
|
-
},
|
|
332
|
-
popperRef: l,
|
|
333
|
-
contentRef: p,
|
|
334
|
-
triggeringElementRef: u,
|
|
335
|
-
referenceElementRef: s
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
});
|
|
339
|
-
function yo(e, o, a, t, c, u) {
|
|
340
|
-
var s;
|
|
341
|
-
const l = g("el-dropdown-collection"), p = g("el-roving-focus-group"), m = g("el-scrollbar"), b = g("el-only-child"), w = g("el-tooltip"), _ = g("el-button"), n = g("arrow-down"), d = g("el-icon"), i = g("el-button-group");
|
|
342
|
-
return N(), j("div", {
|
|
343
|
-
class: q([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
344
|
-
}, [
|
|
345
|
-
R(w, {
|
|
346
|
-
ref: "popperRef",
|
|
347
|
-
role: e.role,
|
|
348
|
-
effect: e.effect,
|
|
349
|
-
"fallback-placements": ["bottom", "top"],
|
|
350
|
-
"popper-options": e.popperOptions,
|
|
351
|
-
"gpu-acceleration": !1,
|
|
352
|
-
"hide-after": e.trigger === "hover" ? e.hideTimeout : 0,
|
|
353
|
-
"manual-mode": !0,
|
|
354
|
-
placement: e.placement,
|
|
355
|
-
"popper-class": [e.ns.e("popper"), e.popperClass],
|
|
356
|
-
"reference-element": (s = e.referenceElementRef) == null ? void 0 : s.$el,
|
|
357
|
-
trigger: e.trigger,
|
|
358
|
-
"trigger-keys": e.triggerKeys,
|
|
359
|
-
"trigger-target-el": e.contentRef,
|
|
360
|
-
"show-after": e.trigger === "hover" ? e.showTimeout : 0,
|
|
361
|
-
"stop-popper-mouse-event": !1,
|
|
362
|
-
"virtual-ref": e.triggeringElementRef,
|
|
363
|
-
"virtual-triggering": e.splitButton,
|
|
364
|
-
disabled: e.disabled,
|
|
365
|
-
transition: `${e.ns.namespace.value}-zoom-in-top`,
|
|
366
|
-
teleported: e.teleported,
|
|
367
|
-
pure: "",
|
|
368
|
-
persistent: "",
|
|
369
|
-
onBeforeShow: e.handleBeforeShowTooltip,
|
|
370
|
-
onShow: e.handleShowTooltip,
|
|
371
|
-
onBeforeHide: e.handleBeforeHideTooltip
|
|
372
|
-
}, ke({
|
|
373
|
-
content: v(() => [
|
|
374
|
-
R(m, {
|
|
375
|
-
ref: "scrollbar",
|
|
376
|
-
"wrap-style": e.wrapStyle,
|
|
377
|
-
tag: "div",
|
|
378
|
-
"view-class": e.ns.e("list")
|
|
379
|
-
}, {
|
|
380
|
-
default: v(() => [
|
|
381
|
-
R(p, {
|
|
382
|
-
loop: e.loop,
|
|
383
|
-
"current-tab-id": e.currentTabId,
|
|
384
|
-
orientation: "horizontal",
|
|
385
|
-
onCurrentTabIdChange: e.handleCurrentTabIdChange,
|
|
386
|
-
onEntryFocus: e.handleEntryFocus
|
|
387
|
-
}, {
|
|
388
|
-
default: v(() => [
|
|
389
|
-
R(l, null, {
|
|
390
|
-
default: v(() => [
|
|
391
|
-
B(e.$slots, "dropdown")
|
|
392
|
-
]),
|
|
393
|
-
_: 3
|
|
394
|
-
})
|
|
395
|
-
]),
|
|
396
|
-
_: 3
|
|
397
|
-
}, 8, ["loop", "current-tab-id", "onCurrentTabIdChange", "onEntryFocus"])
|
|
398
|
-
]),
|
|
399
|
-
_: 3
|
|
400
|
-
}, 8, ["wrap-style", "view-class"])
|
|
401
|
-
]),
|
|
402
|
-
_: 2
|
|
403
|
-
}, [
|
|
404
|
-
e.splitButton ? void 0 : {
|
|
405
|
-
name: "default",
|
|
406
|
-
fn: v(() => [
|
|
407
|
-
R(b, {
|
|
408
|
-
id: e.triggerId,
|
|
409
|
-
ref: "triggeringElementRef",
|
|
410
|
-
role: "button",
|
|
411
|
-
tabindex: e.tabindex
|
|
412
|
-
}, {
|
|
413
|
-
default: v(() => [
|
|
414
|
-
B(e.$slots, "default")
|
|
415
|
-
]),
|
|
416
|
-
_: 3
|
|
417
|
-
}, 8, ["id", "tabindex"])
|
|
418
|
-
])
|
|
419
|
-
}
|
|
420
|
-
]), 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"]),
|
|
421
|
-
e.splitButton ? (N(), U(i, { key: 0 }, {
|
|
422
|
-
default: v(() => [
|
|
423
|
-
R(_, V({ ref: "referenceElementRef" }, e.buttonProps, {
|
|
424
|
-
size: e.dropdownSize,
|
|
425
|
-
type: e.type,
|
|
426
|
-
disabled: e.disabled,
|
|
427
|
-
tabindex: e.tabindex,
|
|
428
|
-
onClick: e.handlerMainButtonClick
|
|
429
|
-
}), {
|
|
430
|
-
default: v(() => [
|
|
431
|
-
B(e.$slots, "default")
|
|
432
|
-
]),
|
|
433
|
-
_: 3
|
|
434
|
-
}, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
|
|
435
|
-
R(_, V({
|
|
436
|
-
id: e.triggerId,
|
|
437
|
-
ref: "triggeringElementRef"
|
|
438
|
-
}, e.buttonProps, {
|
|
439
|
-
role: "button",
|
|
440
|
-
size: e.dropdownSize,
|
|
441
|
-
type: e.type,
|
|
442
|
-
class: e.ns.e("caret-button"),
|
|
443
|
-
disabled: e.disabled,
|
|
444
|
-
tabindex: e.tabindex,
|
|
445
|
-
"aria-label": e.t("el.dropdown.toggleDropdown")
|
|
446
|
-
}), {
|
|
447
|
-
default: v(() => [
|
|
448
|
-
R(d, {
|
|
449
|
-
class: q(e.ns.e("icon"))
|
|
450
|
-
}, {
|
|
451
|
-
default: v(() => [
|
|
452
|
-
R(n)
|
|
453
|
-
]),
|
|
454
|
-
_: 1
|
|
455
|
-
}, 8, ["class"])
|
|
456
|
-
]),
|
|
457
|
-
_: 1
|
|
458
|
-
}, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
|
|
459
|
-
]),
|
|
460
|
-
_: 3
|
|
461
|
-
})) : Z("v-if", !0)
|
|
462
|
-
], 2);
|
|
463
|
-
}
|
|
464
|
-
var $o = /* @__PURE__ */ G(Co, [["render", yo], ["__file", "dropdown.vue"]]);
|
|
465
|
-
const To = A({
|
|
466
|
-
name: "DropdownItemImpl",
|
|
467
|
-
components: {
|
|
468
|
-
ElIcon: me
|
|
469
|
-
},
|
|
470
|
-
props: be,
|
|
471
|
-
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
472
|
-
setup(e, { emit: o }) {
|
|
473
|
-
const a = ee("dropdown"), { role: t } = h(Q, void 0), { collectionItemRef: c } = h(We, void 0), { collectionItemRef: u } = h(so, void 0), {
|
|
474
|
-
rovingFocusGroupItemRef: s,
|
|
475
|
-
tabIndex: l,
|
|
476
|
-
handleFocus: p,
|
|
477
|
-
handleKeydown: m,
|
|
478
|
-
handleMousedown: b
|
|
479
|
-
} = h(Ie, void 0), w = ge(c, u, s), _ = C(() => t.value === "menu" ? "menuitem" : t.value === "navigation" ? "link" : "button"), n = P((d) => {
|
|
480
|
-
const { code: i } = d;
|
|
481
|
-
if (i === E.enter || i === E.space)
|
|
482
|
-
return d.preventDefault(), d.stopImmediatePropagation(), o("clickimpl", d), !0;
|
|
483
|
-
}, m);
|
|
484
|
-
return {
|
|
485
|
-
ns: a,
|
|
486
|
-
itemRef: w,
|
|
487
|
-
dataset: {
|
|
488
|
-
[je]: ""
|
|
489
|
-
},
|
|
490
|
-
role: _,
|
|
491
|
-
tabIndex: l,
|
|
492
|
-
handleFocus: p,
|
|
493
|
-
handleKeydown: n,
|
|
494
|
-
handleMousedown: b
|
|
495
|
-
};
|
|
496
|
-
}
|
|
497
|
-
}), Fo = ["aria-disabled", "tabindex", "role"];
|
|
498
|
-
function Ro(e, o, a, t, c, u) {
|
|
499
|
-
const s = g("el-icon");
|
|
500
|
-
return N(), j(Oe, null, [
|
|
501
|
-
e.divided ? (N(), j("li", V({
|
|
502
|
-
key: 0,
|
|
503
|
-
role: "separator",
|
|
504
|
-
class: e.ns.bem("menu", "item", "divided")
|
|
505
|
-
}, e.$attrs), null, 16)) : Z("v-if", !0),
|
|
506
|
-
Pe("li", V({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
|
|
507
|
-
"aria-disabled": e.disabled,
|
|
508
|
-
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
509
|
-
tabindex: e.tabIndex,
|
|
510
|
-
role: e.role,
|
|
511
|
-
onClick: o[0] || (o[0] = (l) => e.$emit("clickimpl", l)),
|
|
512
|
-
onFocus: o[1] || (o[1] = (...l) => e.handleFocus && e.handleFocus(...l)),
|
|
513
|
-
onKeydown: o[2] || (o[2] = x((...l) => e.handleKeydown && e.handleKeydown(...l), ["self"])),
|
|
514
|
-
onMousedown: o[3] || (o[3] = (...l) => e.handleMousedown && e.handleMousedown(...l)),
|
|
515
|
-
onPointermove: o[4] || (o[4] = (l) => e.$emit("pointermove", l)),
|
|
516
|
-
onPointerleave: o[5] || (o[5] = (l) => e.$emit("pointerleave", l))
|
|
517
|
-
}), [
|
|
518
|
-
e.icon ? (N(), U(s, { key: 0 }, {
|
|
519
|
-
default: v(() => [
|
|
520
|
-
(N(), U(De(e.icon)))
|
|
521
|
-
]),
|
|
522
|
-
_: 1
|
|
523
|
-
})) : Z("v-if", !0),
|
|
524
|
-
B(e.$slots, "default")
|
|
525
|
-
], 16, Fo)
|
|
526
|
-
], 64);
|
|
527
|
-
}
|
|
528
|
-
var So = /* @__PURE__ */ G(To, [["render", Ro], ["__file", "dropdown-item-impl.vue"]]);
|
|
529
|
-
const Ee = () => {
|
|
530
|
-
const e = h("elDropdown", {}), o = C(() => e == null ? void 0 : e.dropdownSize);
|
|
531
|
-
return {
|
|
532
|
-
elDropdown: e,
|
|
533
|
-
_elDropdownSize: o
|
|
534
|
-
};
|
|
535
|
-
}, ko = A({
|
|
536
|
-
name: "ElDropdownItem",
|
|
537
|
-
components: {
|
|
538
|
-
ElDropdownCollectionItem: Qe,
|
|
539
|
-
ElRovingFocusItem: _o,
|
|
540
|
-
ElDropdownItemImpl: So
|
|
541
|
-
},
|
|
542
|
-
inheritAttrs: !1,
|
|
543
|
-
props: be,
|
|
544
|
-
emits: ["pointermove", "pointerleave", "click"],
|
|
545
|
-
setup(e, { emit: o, attrs: a }) {
|
|
546
|
-
const { elDropdown: t } = Ee(), c = pe(), u = $(null), s = C(() => {
|
|
547
|
-
var n, d;
|
|
548
|
-
return (d = (n = O(u)) == null ? void 0 : n.textContent) != null ? d : "";
|
|
549
|
-
}), { onItemEnter: l, onItemLeave: p } = h(Q, void 0), m = P((n) => (o("pointermove", n), n.defaultPrevented), ae((n) => {
|
|
550
|
-
if (e.disabled) {
|
|
551
|
-
p(n);
|
|
552
|
-
return;
|
|
553
|
-
}
|
|
554
|
-
const d = n.currentTarget;
|
|
555
|
-
d === document.activeElement || d.contains(document.activeElement) || (l(n), n.defaultPrevented || d == null || d.focus());
|
|
556
|
-
})), b = P((n) => (o("pointerleave", n), n.defaultPrevented), ae((n) => {
|
|
557
|
-
p(n);
|
|
558
|
-
})), w = P((n) => {
|
|
559
|
-
if (!e.disabled)
|
|
560
|
-
return o("click", n), n.type !== "keydown" && n.defaultPrevented;
|
|
561
|
-
}, (n) => {
|
|
562
|
-
var d, i, f;
|
|
563
|
-
if (e.disabled) {
|
|
564
|
-
n.stopImmediatePropagation();
|
|
565
|
-
return;
|
|
566
|
-
}
|
|
567
|
-
(d = t == null ? void 0 : t.hideOnClick) != null && d.value && ((i = t.handleClick) == null || i.call(t)), (f = t.commandHandler) == null || f.call(t, e.command, c, n);
|
|
568
|
-
}), _ = C(() => ({ ...e, ...a }));
|
|
569
|
-
return {
|
|
570
|
-
handleClick: w,
|
|
571
|
-
handlePointerMove: m,
|
|
572
|
-
handlePointerLeave: b,
|
|
573
|
-
textContent: s,
|
|
574
|
-
propsAndAttrs: _
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
function Oo(e, o, a, t, c, u) {
|
|
579
|
-
var s;
|
|
580
|
-
const l = g("el-dropdown-item-impl"), p = g("el-roving-focus-item"), m = g("el-dropdown-collection-item");
|
|
581
|
-
return N(), U(m, {
|
|
582
|
-
disabled: e.disabled,
|
|
583
|
-
"text-value": (s = e.textValue) != null ? s : e.textContent
|
|
584
|
-
}, {
|
|
585
|
-
default: v(() => [
|
|
586
|
-
R(p, {
|
|
587
|
-
focusable: !e.disabled
|
|
588
|
-
}, {
|
|
589
|
-
default: v(() => [
|
|
590
|
-
R(l, V(e.propsAndAttrs, {
|
|
591
|
-
onPointerleave: e.handlePointerLeave,
|
|
592
|
-
onPointermove: e.handlePointerMove,
|
|
593
|
-
onClickimpl: e.handleClick
|
|
594
|
-
}), {
|
|
595
|
-
default: v(() => [
|
|
596
|
-
B(e.$slots, "default")
|
|
597
|
-
]),
|
|
598
|
-
_: 3
|
|
599
|
-
}, 16, ["onPointerleave", "onPointermove", "onClickimpl"])
|
|
600
|
-
]),
|
|
601
|
-
_: 3
|
|
602
|
-
}, 8, ["focusable"])
|
|
603
|
-
]),
|
|
604
|
-
_: 3
|
|
605
|
-
}, 8, ["disabled", "text-value"]);
|
|
606
|
-
}
|
|
607
|
-
var _e = /* @__PURE__ */ G(ko, [["render", Oo], ["__file", "dropdown-item.vue"]]);
|
|
608
|
-
const Po = A({
|
|
609
|
-
name: "ElDropdownMenu",
|
|
610
|
-
props: Xe,
|
|
611
|
-
setup(e) {
|
|
612
|
-
const o = ee("dropdown"), { _elDropdownSize: a } = Ee(), t = a.value, { focusTrapRef: c, onKeydown: u } = h(qe, void 0), { contentRef: s, role: l, triggerId: p } = h(Q, void 0), { collectionRef: m, getItems: b } = h(Ze, void 0), {
|
|
613
|
-
rovingFocusGroupRef: w,
|
|
614
|
-
rovingFocusGroupRootStyle: _,
|
|
615
|
-
tabIndex: n,
|
|
616
|
-
onBlur: d,
|
|
617
|
-
onFocus: i,
|
|
618
|
-
onMousedown: f
|
|
619
|
-
} = h(ne, void 0), { collectionRef: K } = h(oe, void 0), S = C(() => [o.b("menu"), o.bm("menu", t == null ? void 0 : t.value)]), L = ge(s, m, c, w, K), I = P((T) => {
|
|
620
|
-
var D;
|
|
621
|
-
(D = e.onKeydown) == null || D.call(e, T);
|
|
622
|
-
}, (T) => {
|
|
623
|
-
const { currentTarget: D, code: M, target: F } = T;
|
|
624
|
-
if (D.contains(F), E.tab === M && T.stopImmediatePropagation(), T.preventDefault(), F !== O(s) || !xe.includes(M))
|
|
625
|
-
return;
|
|
626
|
-
const J = b().filter((Y) => !Y.disabled).map((Y) => Y.ref);
|
|
627
|
-
eo.includes(M) && J.reverse(), te(J);
|
|
628
|
-
});
|
|
629
|
-
return {
|
|
630
|
-
size: t,
|
|
631
|
-
rovingFocusGroupRootStyle: _,
|
|
632
|
-
tabIndex: n,
|
|
633
|
-
dropdownKls: S,
|
|
634
|
-
role: l,
|
|
635
|
-
triggerId: p,
|
|
636
|
-
dropdownListWrapperRef: L,
|
|
637
|
-
handleKeydown: (T) => {
|
|
638
|
-
I(T), u(T);
|
|
639
|
-
},
|
|
640
|
-
onBlur: d,
|
|
641
|
-
onFocus: i,
|
|
642
|
-
onMousedown: f
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
}), Do = ["role", "aria-labelledby"];
|
|
646
|
-
function No(e, o, a, t, c, u) {
|
|
647
|
-
return N(), j("ul", {
|
|
648
|
-
ref: e.dropdownListWrapperRef,
|
|
649
|
-
class: q(e.dropdownKls),
|
|
650
|
-
style: Ne(e.rovingFocusGroupRootStyle),
|
|
651
|
-
tabindex: -1,
|
|
652
|
-
role: e.role,
|
|
653
|
-
"aria-labelledby": e.triggerId,
|
|
654
|
-
onBlur: o[0] || (o[0] = (...s) => e.onBlur && e.onBlur(...s)),
|
|
655
|
-
onFocus: o[1] || (o[1] = (...s) => e.onFocus && e.onFocus(...s)),
|
|
656
|
-
onKeydown: o[2] || (o[2] = x((...s) => e.handleKeydown && e.handleKeydown(...s), ["self"])),
|
|
657
|
-
onMousedown: o[3] || (o[3] = x((...s) => e.onMousedown && e.onMousedown(...s), ["self"]))
|
|
658
|
-
}, [
|
|
659
|
-
B(e.$slots, "default")
|
|
660
|
-
], 46, Do);
|
|
661
|
-
}
|
|
662
|
-
var he = /* @__PURE__ */ G(Po, [["render", No], ["__file", "dropdown-menu.vue"]]);
|
|
663
|
-
const Go = oo($o, {
|
|
664
|
-
DropdownItem: _e,
|
|
665
|
-
DropdownMenu: he
|
|
666
|
-
}), zo = we(_e), Uo = we(he);
|
|
667
|
-
export {
|
|
668
|
-
zo as E,
|
|
669
|
-
Uo as a,
|
|
670
|
-
Go as b
|
|
671
|
-
};
|