@maxtropy/v-components 0.1.17-beta.7 → 0.1.17-beta.8
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/mx-vcomponents.es.js +165 -166
- package/dist/style.css +1 -1
- package/dist/types/components/select/MxSelect.vue.d.ts +0 -12496
- package/dist/types/theme/types/Themes.d.ts +7 -0
- package/package.json +1 -1
- /package/dist/types/components/dropdown/{MxDropDownItem.vue.d.ts → MxDropdownItem.vue.d.ts} +0 -0
|
@@ -13476,7 +13476,7 @@ const Cm = G6, wm = Symbol("dialogInjectionKey"), Em = Ie({
|
|
|
13476
13476
|
], 6));
|
|
13477
13477
|
}
|
|
13478
13478
|
});
|
|
13479
|
-
var
|
|
13479
|
+
var e3 = /* @__PURE__ */ we($6, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);
|
|
13480
13480
|
const Im = Ie({
|
|
13481
13481
|
...Em,
|
|
13482
13482
|
appendToBody: {
|
|
@@ -13532,7 +13532,7 @@ const Im = Ie({
|
|
|
13532
13532
|
type: Boolean,
|
|
13533
13533
|
default: !1
|
|
13534
13534
|
}
|
|
13535
|
-
}),
|
|
13535
|
+
}), t3 = {
|
|
13536
13536
|
open: () => !0,
|
|
13537
13537
|
opened: () => !0,
|
|
13538
13538
|
close: () => !0,
|
|
@@ -13540,7 +13540,7 @@ const Im = Ie({
|
|
|
13540
13540
|
[_e]: (e) => Nt(e),
|
|
13541
13541
|
openAutoFocus: () => !0,
|
|
13542
13542
|
closeAutoFocus: () => !0
|
|
13543
|
-
},
|
|
13543
|
+
}, n3 = (e, t) => {
|
|
13544
13544
|
const o = Ue().emit, { nextZIndex: r } = Ls();
|
|
13545
13545
|
let a = "";
|
|
13546
13546
|
const l = Fn(), i = Fn(), u = M(!1), c = M(!1), p = M(!1), d = M(e.zIndex || r());
|
|
@@ -13622,13 +13622,13 @@ const Im = Ie({
|
|
|
13622
13622
|
visible: u,
|
|
13623
13623
|
zIndex: d
|
|
13624
13624
|
};
|
|
13625
|
-
},
|
|
13625
|
+
}, o3 = ["aria-label", "aria-labelledby", "aria-describedby"], r3 = j({
|
|
13626
13626
|
name: "ElDialog",
|
|
13627
13627
|
inheritAttrs: !1
|
|
13628
|
-
}),
|
|
13629
|
-
...
|
|
13628
|
+
}), a3 = /* @__PURE__ */ j({
|
|
13629
|
+
...r3,
|
|
13630
13630
|
props: Im,
|
|
13631
|
-
emits:
|
|
13631
|
+
emits: t3,
|
|
13632
13632
|
setup(e, { expose: t }) {
|
|
13633
13633
|
const n = e, o = Cn();
|
|
13634
13634
|
Wo({
|
|
@@ -13662,7 +13662,7 @@ const Im = Ie({
|
|
|
13662
13662
|
onCloseAutoFocus: k,
|
|
13663
13663
|
onCloseRequested: I,
|
|
13664
13664
|
onFocusoutPrevented: B
|
|
13665
|
-
} =
|
|
13665
|
+
} = n3(n, a);
|
|
13666
13666
|
Ze(wm, {
|
|
13667
13667
|
dialogRef: a,
|
|
13668
13668
|
headerRef: l,
|
|
@@ -13716,7 +13716,7 @@ const Im = Ie({
|
|
|
13716
13716
|
onReleaseRequested: s(I)
|
|
13717
13717
|
}, {
|
|
13718
13718
|
default: K(() => [
|
|
13719
|
-
s(v) ? (w(), Z(
|
|
13719
|
+
s(v) ? (w(), Z(e3, Pe({
|
|
13720
13720
|
key: 0,
|
|
13721
13721
|
ref_key: "dialogContentRef",
|
|
13722
13722
|
ref: i
|
|
@@ -13754,7 +13754,7 @@ const Im = Ie({
|
|
|
13754
13754
|
]),
|
|
13755
13755
|
_: 3
|
|
13756
13756
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
13757
|
-
], 46,
|
|
13757
|
+
], 46, o3)
|
|
13758
13758
|
]),
|
|
13759
13759
|
_: 3
|
|
13760
13760
|
}, 8, ["mask", "overlay-class", "z-index"]), [
|
|
@@ -13766,25 +13766,25 @@ const Im = Ie({
|
|
|
13766
13766
|
], 8, ["disabled"]));
|
|
13767
13767
|
}
|
|
13768
13768
|
});
|
|
13769
|
-
var
|
|
13770
|
-
const
|
|
13769
|
+
var l3 = /* @__PURE__ */ we(a3, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);
|
|
13770
|
+
const s3 = gt(l3), i3 = /* @__PURE__ */ j({
|
|
13771
13771
|
inheritAttrs: !1
|
|
13772
13772
|
});
|
|
13773
|
-
function
|
|
13773
|
+
function u3(e, t, n, o, r, a) {
|
|
13774
13774
|
return ee(e.$slots, "default");
|
|
13775
13775
|
}
|
|
13776
|
-
var
|
|
13777
|
-
const
|
|
13776
|
+
var c3 = /* @__PURE__ */ we(i3, [["render", u3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);
|
|
13777
|
+
const d3 = /* @__PURE__ */ j({
|
|
13778
13778
|
name: "ElCollectionItem",
|
|
13779
13779
|
inheritAttrs: !1
|
|
13780
13780
|
});
|
|
13781
|
-
function
|
|
13781
|
+
function f3(e, t, n, o, r, a) {
|
|
13782
13782
|
return ee(e.$slots, "default");
|
|
13783
13783
|
}
|
|
13784
|
-
var
|
|
13784
|
+
var p3 = /* @__PURE__ */ we(d3, [["render", f3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);
|
|
13785
13785
|
const km = "data-el-collection-item", Bm = (e) => {
|
|
13786
13786
|
const t = `El${e}Collection`, n = `${t}Item`, o = Symbol(t), r = Symbol(n), a = {
|
|
13787
|
-
...
|
|
13787
|
+
...c3,
|
|
13788
13788
|
name: t,
|
|
13789
13789
|
setup() {
|
|
13790
13790
|
const i = M(null), u = /* @__PURE__ */ new Map();
|
|
@@ -13801,7 +13801,7 @@ const km = "data-el-collection-item", Bm = (e) => {
|
|
|
13801
13801
|
});
|
|
13802
13802
|
}
|
|
13803
13803
|
}, l = {
|
|
13804
|
-
...
|
|
13804
|
+
...p3,
|
|
13805
13805
|
name: n,
|
|
13806
13806
|
setup(i, { attrs: u }) {
|
|
13807
13807
|
const c = M(null), p = Ce(o, void 0);
|
|
@@ -13825,7 +13825,7 @@ const km = "data-el-collection-item", Bm = (e) => {
|
|
|
13825
13825
|
ElCollection: a,
|
|
13826
13826
|
ElCollectionItem: l
|
|
13827
13827
|
};
|
|
13828
|
-
},
|
|
13828
|
+
}, v3 = Ie({
|
|
13829
13829
|
style: { type: pe([String, Array, Object]) },
|
|
13830
13830
|
currentTabId: {
|
|
13831
13831
|
type: pe(String)
|
|
@@ -13844,11 +13844,11 @@ const km = "data-el-collection-item", Bm = (e) => {
|
|
|
13844
13844
|
onFocus: Function,
|
|
13845
13845
|
onMousedown: Function
|
|
13846
13846
|
}), {
|
|
13847
|
-
ElCollection:
|
|
13848
|
-
ElCollectionItem:
|
|
13847
|
+
ElCollection: g3,
|
|
13848
|
+
ElCollectionItem: m3,
|
|
13849
13849
|
COLLECTION_INJECTION_KEY: wc,
|
|
13850
|
-
COLLECTION_ITEM_INJECTION_KEY:
|
|
13851
|
-
} = Bm("RovingFocusGroup"), Ec = Symbol("elRovingFocusGroup"), Sm = Symbol("elRovingFocusGroupItem"),
|
|
13850
|
+
COLLECTION_ITEM_INJECTION_KEY: h3
|
|
13851
|
+
} = Bm("RovingFocusGroup"), Ec = Symbol("elRovingFocusGroup"), Sm = Symbol("elRovingFocusGroupItem"), A3 = {
|
|
13852
13852
|
ArrowLeft: "prev",
|
|
13853
13853
|
ArrowUp: "prev",
|
|
13854
13854
|
ArrowRight: "next",
|
|
@@ -13857,7 +13857,7 @@ const km = "data-el-collection-item", Bm = (e) => {
|
|
|
13857
13857
|
Home: "first",
|
|
13858
13858
|
PageDown: "last",
|
|
13859
13859
|
End: "last"
|
|
13860
|
-
},
|
|
13860
|
+
}, y3 = (e, t) => {
|
|
13861
13861
|
if (t !== "rtl")
|
|
13862
13862
|
return e;
|
|
13863
13863
|
switch (e) {
|
|
@@ -13868,19 +13868,19 @@ const km = "data-el-collection-item", Bm = (e) => {
|
|
|
13868
13868
|
default:
|
|
13869
13869
|
return e;
|
|
13870
13870
|
}
|
|
13871
|
-
},
|
|
13872
|
-
const o =
|
|
13871
|
+
}, b3 = (e, t, n) => {
|
|
13872
|
+
const o = y3(e.key, n);
|
|
13873
13873
|
if (!(t === "vertical" && [Ee.left, Ee.right].includes(o)) && !(t === "horizontal" && [Ee.up, Ee.down].includes(o)))
|
|
13874
|
-
return
|
|
13875
|
-
},
|
|
13874
|
+
return A3[o];
|
|
13875
|
+
}, C3 = (e, t) => e.map((n, o) => e[(o + t) % e.length]), Ic = (e) => {
|
|
13876
13876
|
const { activeElement: t } = document;
|
|
13877
13877
|
for (const n of e)
|
|
13878
13878
|
if (n === t || (n.focus(), t !== document.activeElement))
|
|
13879
13879
|
return;
|
|
13880
|
-
}, Kf = "currentTabIdChange", Lf = "rovingFocusGroup.entryFocus",
|
|
13880
|
+
}, Kf = "currentTabIdChange", Lf = "rovingFocusGroup.entryFocus", w3 = { bubbles: !1, cancelable: !0 }, E3 = j({
|
|
13881
13881
|
name: "ElRovingFocusGroupImpl",
|
|
13882
13882
|
inheritAttrs: !1,
|
|
13883
|
-
props:
|
|
13883
|
+
props: v3,
|
|
13884
13884
|
emits: [Kf, "entryFocus"],
|
|
13885
13885
|
setup(e, { emit: t }) {
|
|
13886
13886
|
var n;
|
|
@@ -13904,7 +13904,7 @@ const km = "data-el-collection-item", Bm = (e) => {
|
|
|
13904
13904
|
}, (g) => {
|
|
13905
13905
|
const h = !s(a), { target: A, currentTarget: b } = g;
|
|
13906
13906
|
if (A === b && h && !s(r)) {
|
|
13907
|
-
const C = new Event(Lf,
|
|
13907
|
+
const C = new Event(Lf, w3);
|
|
13908
13908
|
if (b == null || b.dispatchEvent(C), !C.defaultPrevented) {
|
|
13909
13909
|
const y = i().filter((F) => F.focusable), k = y.find((F) => F.active), I = y.find((F) => F.id === s(o)), O = [k, I, ...y].filter(Boolean).map((F) => F.ref);
|
|
13910
13910
|
Ic(O);
|
|
@@ -13937,18 +13937,18 @@ const km = "data-el-collection-item", Bm = (e) => {
|
|
|
13937
13937
|
}), zt(l, Lf, m);
|
|
13938
13938
|
}
|
|
13939
13939
|
});
|
|
13940
|
-
function
|
|
13940
|
+
function I3(e, t, n, o, r, a) {
|
|
13941
13941
|
return ee(e.$slots, "default");
|
|
13942
13942
|
}
|
|
13943
|
-
var
|
|
13944
|
-
const
|
|
13943
|
+
var k3 = /* @__PURE__ */ we(E3, [["render", I3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);
|
|
13944
|
+
const B3 = j({
|
|
13945
13945
|
name: "ElRovingFocusGroup",
|
|
13946
13946
|
components: {
|
|
13947
|
-
ElFocusGroupCollection:
|
|
13948
|
-
ElRovingFocusGroupImpl:
|
|
13947
|
+
ElFocusGroupCollection: g3,
|
|
13948
|
+
ElRovingFocusGroupImpl: k3
|
|
13949
13949
|
}
|
|
13950
13950
|
});
|
|
13951
|
-
function
|
|
13951
|
+
function S3(e, t, n, o, r, a) {
|
|
13952
13952
|
const l = be("el-roving-focus-group-impl"), i = be("el-focus-group-collection");
|
|
13953
13953
|
return w(), Z(i, null, {
|
|
13954
13954
|
default: K(() => [
|
|
@@ -13962,10 +13962,10 @@ function SM(e, t, n, o, r, a) {
|
|
|
13962
13962
|
_: 3
|
|
13963
13963
|
});
|
|
13964
13964
|
}
|
|
13965
|
-
var
|
|
13966
|
-
const
|
|
13965
|
+
var M3 = /* @__PURE__ */ we(B3, [["render", S3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);
|
|
13966
|
+
const T3 = j({
|
|
13967
13967
|
components: {
|
|
13968
|
-
ElRovingFocusCollectionItem:
|
|
13968
|
+
ElRovingFocusCollectionItem: m3
|
|
13969
13969
|
},
|
|
13970
13970
|
props: {
|
|
13971
13971
|
focusable: {
|
|
@@ -13997,7 +13997,7 @@ const TM = j({
|
|
|
13997
13997
|
}
|
|
13998
13998
|
if (h !== A)
|
|
13999
13999
|
return;
|
|
14000
|
-
const b =
|
|
14000
|
+
const b = b3(v);
|
|
14001
14001
|
if (b) {
|
|
14002
14002
|
v.preventDefault();
|
|
14003
14003
|
let y = l().filter((k) => k.focusable).map((k) => k.ref);
|
|
@@ -14010,7 +14010,7 @@ const TM = j({
|
|
|
14010
14010
|
case "next": {
|
|
14011
14011
|
b === "prev" && y.reverse();
|
|
14012
14012
|
const k = y.indexOf(A);
|
|
14013
|
-
y = o.value ?
|
|
14013
|
+
y = o.value ? C3(y, k + 1) : y.slice(k + 1);
|
|
14014
14014
|
break;
|
|
14015
14015
|
}
|
|
14016
14016
|
}
|
|
@@ -14033,7 +14033,7 @@ const TM = j({
|
|
|
14033
14033
|
};
|
|
14034
14034
|
}
|
|
14035
14035
|
});
|
|
14036
|
-
function
|
|
14036
|
+
function x3(e, t, n, o, r, a) {
|
|
14037
14037
|
const l = be("el-roving-focus-collection-item");
|
|
14038
14038
|
return w(), Z(l, {
|
|
14039
14039
|
id: e.id,
|
|
@@ -14046,7 +14046,7 @@ function xM(e, t, n, o, r, a) {
|
|
|
14046
14046
|
_: 3
|
|
14047
14047
|
}, 8, ["id", "focusable", "active"]);
|
|
14048
14048
|
}
|
|
14049
|
-
var
|
|
14049
|
+
var O3 = /* @__PURE__ */ we(T3, [["render", x3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);
|
|
14050
14050
|
const Gl = Ie({
|
|
14051
14051
|
trigger: Ga.trigger,
|
|
14052
14052
|
effect: {
|
|
@@ -14121,26 +14121,26 @@ const Gl = Ie({
|
|
|
14121
14121
|
icon: {
|
|
14122
14122
|
type: kt
|
|
14123
14123
|
}
|
|
14124
|
-
}),
|
|
14124
|
+
}), P3 = Ie({
|
|
14125
14125
|
onKeydown: { type: pe(Function) }
|
|
14126
|
-
}),
|
|
14126
|
+
}), F3 = [
|
|
14127
14127
|
Ee.down,
|
|
14128
14128
|
Ee.pageDown,
|
|
14129
14129
|
Ee.home
|
|
14130
|
-
], Tm = [Ee.up, Ee.pageUp, Ee.end],
|
|
14131
|
-
ElCollection:
|
|
14132
|
-
ElCollectionItem:
|
|
14133
|
-
COLLECTION_INJECTION_KEY:
|
|
14134
|
-
COLLECTION_ITEM_INJECTION_KEY:
|
|
14135
|
-
} = Bm("Dropdown"), Hs = Symbol("elDropdown"), { ButtonGroup:
|
|
14130
|
+
], Tm = [Ee.up, Ee.pageUp, Ee.end], R3 = [...F3, ...Tm], {
|
|
14131
|
+
ElCollection: N3,
|
|
14132
|
+
ElCollectionItem: D3,
|
|
14133
|
+
COLLECTION_INJECTION_KEY: K3,
|
|
14134
|
+
COLLECTION_ITEM_INJECTION_KEY: L3
|
|
14135
|
+
} = Bm("Dropdown"), Hs = Symbol("elDropdown"), { ButtonGroup: Q3 } = mo, V3 = j({
|
|
14136
14136
|
name: "ElDropdown",
|
|
14137
14137
|
components: {
|
|
14138
14138
|
ElButton: mo,
|
|
14139
|
-
ElButtonGroup:
|
|
14139
|
+
ElButtonGroup: Q3,
|
|
14140
14140
|
ElScrollbar: Wn,
|
|
14141
|
-
ElDropdownCollection:
|
|
14141
|
+
ElDropdownCollection: N3,
|
|
14142
14142
|
ElTooltip: fn,
|
|
14143
|
-
ElRovingFocusGroup:
|
|
14143
|
+
ElRovingFocusGroup: M3,
|
|
14144
14144
|
ElOnlyChild: vg,
|
|
14145
14145
|
ElIcon: ke,
|
|
14146
14146
|
ArrowDown: wo
|
|
@@ -14246,7 +14246,7 @@ const Gl = Ie({
|
|
|
14246
14246
|
};
|
|
14247
14247
|
}
|
|
14248
14248
|
});
|
|
14249
|
-
function
|
|
14249
|
+
function z3(e, t, n, o, r, a) {
|
|
14250
14250
|
var l;
|
|
14251
14251
|
const i = be("el-dropdown-collection"), u = be("el-roving-focus-group"), c = be("el-scrollbar"), p = be("el-only-child"), d = be("el-tooltip"), f = be("el-button"), v = be("arrow-down"), m = be("el-icon"), g = be("el-button-group");
|
|
14252
14252
|
return w(), R("div", {
|
|
@@ -14371,8 +14371,8 @@ function zM(e, t, n, o, r, a) {
|
|
|
14371
14371
|
})) : J("v-if", !0)
|
|
14372
14372
|
], 2);
|
|
14373
14373
|
}
|
|
14374
|
-
var
|
|
14375
|
-
const
|
|
14374
|
+
var H3 = /* @__PURE__ */ we(V3, [["render", z3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);
|
|
14375
|
+
const U3 = j({
|
|
14376
14376
|
name: "DropdownItemImpl",
|
|
14377
14377
|
components: {
|
|
14378
14378
|
ElIcon: ke
|
|
@@ -14380,7 +14380,7 @@ const UM = j({
|
|
|
14380
14380
|
props: Mm,
|
|
14381
14381
|
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
14382
14382
|
setup(e, { emit: t }) {
|
|
14383
|
-
const n = ge("dropdown"), { role: o } = Ce(Hs, void 0), { collectionItemRef: r } = Ce(
|
|
14383
|
+
const n = ge("dropdown"), { role: o } = Ce(Hs, void 0), { collectionItemRef: r } = Ce(L3, void 0), { collectionItemRef: a } = Ce(h3, void 0), {
|
|
14384
14384
|
rovingFocusGroupItemRef: l,
|
|
14385
14385
|
tabIndex: i,
|
|
14386
14386
|
handleFocus: u,
|
|
@@ -14404,8 +14404,8 @@ const UM = j({
|
|
|
14404
14404
|
handleMousedown: p
|
|
14405
14405
|
};
|
|
14406
14406
|
}
|
|
14407
|
-
}),
|
|
14408
|
-
function
|
|
14407
|
+
}), W3 = ["aria-disabled", "tabindex", "role"];
|
|
14408
|
+
function j3(e, t, n, o, r, a) {
|
|
14409
14409
|
const l = be("el-icon");
|
|
14410
14410
|
return w(), R(Te, null, [
|
|
14411
14411
|
e.divided ? (w(), R("li", Pe({
|
|
@@ -14432,22 +14432,22 @@ function jM(e, t, n, o, r, a) {
|
|
|
14432
14432
|
_: 1
|
|
14433
14433
|
})) : J("v-if", !0),
|
|
14434
14434
|
ee(e.$slots, "default")
|
|
14435
|
-
], 16,
|
|
14435
|
+
], 16, W3)
|
|
14436
14436
|
], 64);
|
|
14437
14437
|
}
|
|
14438
|
-
var
|
|
14438
|
+
var _3 = /* @__PURE__ */ we(U3, [["render", j3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);
|
|
14439
14439
|
const xm = () => {
|
|
14440
14440
|
const e = Ce("elDropdown", {}), t = E(() => e == null ? void 0 : e.dropdownSize);
|
|
14441
14441
|
return {
|
|
14442
14442
|
elDropdown: e,
|
|
14443
14443
|
_elDropdownSize: t
|
|
14444
14444
|
};
|
|
14445
|
-
},
|
|
14445
|
+
}, Y3 = j({
|
|
14446
14446
|
name: "ElDropdownItem",
|
|
14447
14447
|
components: {
|
|
14448
|
-
ElDropdownCollectionItem:
|
|
14449
|
-
ElRovingFocusItem:
|
|
14450
|
-
ElDropdownItemImpl:
|
|
14448
|
+
ElDropdownCollectionItem: D3,
|
|
14449
|
+
ElRovingFocusItem: O3,
|
|
14450
|
+
ElDropdownItemImpl: _3
|
|
14451
14451
|
},
|
|
14452
14452
|
inheritAttrs: !1,
|
|
14453
14453
|
props: Mm,
|
|
@@ -14485,7 +14485,7 @@ const xm = () => {
|
|
|
14485
14485
|
};
|
|
14486
14486
|
}
|
|
14487
14487
|
});
|
|
14488
|
-
function
|
|
14488
|
+
function G3(e, t, n, o, r, a) {
|
|
14489
14489
|
var l;
|
|
14490
14490
|
const i = be("el-dropdown-item-impl"), u = be("el-roving-focus-item"), c = be("el-dropdown-collection-item");
|
|
14491
14491
|
return w(), Z(c, {
|
|
@@ -14514,12 +14514,12 @@ function GM(e, t, n, o, r, a) {
|
|
|
14514
14514
|
_: 3
|
|
14515
14515
|
}, 8, ["disabled", "text-value"]);
|
|
14516
14516
|
}
|
|
14517
|
-
var Om = /* @__PURE__ */ we(
|
|
14518
|
-
const
|
|
14517
|
+
var Om = /* @__PURE__ */ we(Y3, [["render", G3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);
|
|
14518
|
+
const q3 = j({
|
|
14519
14519
|
name: "ElDropdownMenu",
|
|
14520
|
-
props:
|
|
14520
|
+
props: P3,
|
|
14521
14521
|
setup(e) {
|
|
14522
|
-
const t = ge("dropdown"), { _elDropdownSize: n } = xm(), o = n.value, { focusTrapRef: r, onKeydown: a } = Ce(dc, void 0), { contentRef: l, role: i, triggerId: u } = Ce(Hs, void 0), { collectionRef: c, getItems: p } = Ce(
|
|
14522
|
+
const t = ge("dropdown"), { _elDropdownSize: n } = xm(), o = n.value, { focusTrapRef: r, onKeydown: a } = Ce(dc, void 0), { contentRef: l, role: i, triggerId: u } = Ce(Hs, void 0), { collectionRef: c, getItems: p } = Ce(K3, void 0), {
|
|
14523
14523
|
rovingFocusGroupRef: d,
|
|
14524
14524
|
rovingFocusGroupRootStyle: f,
|
|
14525
14525
|
tabIndex: v,
|
|
@@ -14531,7 +14531,7 @@ const qM = j({
|
|
|
14531
14531
|
(B = e.onKeydown) == null || B.call(e, I);
|
|
14532
14532
|
}, (I) => {
|
|
14533
14533
|
const { currentTarget: B, code: O, target: F } = I;
|
|
14534
|
-
if (B.contains(F), Ee.tab === O && I.stopImmediatePropagation(), I.preventDefault(), F !== s(l) || !
|
|
14534
|
+
if (B.contains(F), Ee.tab === O && I.stopImmediatePropagation(), I.preventDefault(), F !== s(l) || !R3.includes(O))
|
|
14535
14535
|
return;
|
|
14536
14536
|
const z = p().filter((D) => !D.disabled).map((D) => D.ref);
|
|
14537
14537
|
Tm.includes(O) && z.reverse(), Ic(z);
|
|
@@ -14552,8 +14552,8 @@ const qM = j({
|
|
|
14552
14552
|
onMousedown: h
|
|
14553
14553
|
};
|
|
14554
14554
|
}
|
|
14555
|
-
}),
|
|
14556
|
-
function
|
|
14555
|
+
}), Z3 = ["role", "aria-labelledby"];
|
|
14556
|
+
function J3(e, t, n, o, r, a) {
|
|
14557
14557
|
return w(), R("ul", {
|
|
14558
14558
|
ref: e.dropdownListWrapperRef,
|
|
14559
14559
|
class: S(e.dropdownKls),
|
|
@@ -14567,42 +14567,42 @@ function JM(e, t, n, o, r, a) {
|
|
|
14567
14567
|
onMousedown: t[3] || (t[3] = De((...l) => e.onMousedown && e.onMousedown(...l), ["self"]))
|
|
14568
14568
|
}, [
|
|
14569
14569
|
ee(e.$slots, "default")
|
|
14570
|
-
], 46,
|
|
14570
|
+
], 46, Z3);
|
|
14571
14571
|
}
|
|
14572
|
-
var Pm = /* @__PURE__ */ we(
|
|
14573
|
-
const vu = gt(
|
|
14572
|
+
var Pm = /* @__PURE__ */ we(q3, [["render", J3], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);
|
|
14573
|
+
const vu = gt(H3, {
|
|
14574
14574
|
DropdownItem: Om,
|
|
14575
14575
|
DropdownMenu: Pm
|
|
14576
|
-
}), Po = Lt(Om), ms = Lt(Pm),
|
|
14576
|
+
}), Po = Lt(Om), ms = Lt(Pm), X3 = {
|
|
14577
14577
|
viewBox: "0 0 79 86",
|
|
14578
14578
|
version: "1.1",
|
|
14579
14579
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14580
14580
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
14581
|
-
}, $
|
|
14581
|
+
}, $3 = ["id"], eM = ["stop-color"], tM = ["stop-color"], nM = ["id"], oM = ["stop-color"], rM = ["stop-color"], aM = ["id"], lM = {
|
|
14582
14582
|
id: "Illustrations",
|
|
14583
14583
|
stroke: "none",
|
|
14584
14584
|
"stroke-width": "1",
|
|
14585
14585
|
fill: "none",
|
|
14586
14586
|
"fill-rule": "evenodd"
|
|
14587
|
-
},
|
|
14587
|
+
}, sM = {
|
|
14588
14588
|
id: "B-type",
|
|
14589
14589
|
transform: "translate(-1268.000000, -535.000000)"
|
|
14590
|
-
},
|
|
14590
|
+
}, iM = {
|
|
14591
14591
|
id: "Group-2",
|
|
14592
14592
|
transform: "translate(1268.000000, 535.000000)"
|
|
14593
|
-
},
|
|
14593
|
+
}, uM = ["fill"], cM = ["fill"], dM = {
|
|
14594
14594
|
id: "Group-Copy",
|
|
14595
14595
|
transform: "translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"
|
|
14596
|
-
},
|
|
14596
|
+
}, fM = ["fill"], pM = ["fill"], vM = ["fill"], gM = ["fill"], mM = ["fill"], hM = {
|
|
14597
14597
|
id: "Rectangle-Copy-17",
|
|
14598
14598
|
transform: "translate(53.000000, 45.000000)"
|
|
14599
|
-
},
|
|
14599
|
+
}, AM = ["fill", "xlink:href"], yM = ["fill", "mask"], bM = ["fill"], CM = j({
|
|
14600
14600
|
name: "ImgEmpty"
|
|
14601
|
-
}),
|
|
14602
|
-
...
|
|
14601
|
+
}), wM = /* @__PURE__ */ j({
|
|
14602
|
+
...CM,
|
|
14603
14603
|
setup(e) {
|
|
14604
14604
|
const t = ge("empty"), n = Fn();
|
|
14605
|
-
return (o, r) => (w(), R("svg",
|
|
14605
|
+
return (o, r) => (w(), R("svg", X3, [
|
|
14606
14606
|
Q("defs", null, [
|
|
14607
14607
|
Q("linearGradient", {
|
|
14608
14608
|
id: `linearGradient-1-${s(n)}`,
|
|
@@ -14614,12 +14614,12 @@ const vu = gt(HM, {
|
|
|
14614
14614
|
Q("stop", {
|
|
14615
14615
|
"stop-color": `var(${s(t).cssVarBlockName("fill-color-1")})`,
|
|
14616
14616
|
offset: "0%"
|
|
14617
|
-
}, null, 8,
|
|
14617
|
+
}, null, 8, eM),
|
|
14618
14618
|
Q("stop", {
|
|
14619
14619
|
"stop-color": `var(${s(t).cssVarBlockName("fill-color-4")})`,
|
|
14620
14620
|
offset: "100%"
|
|
14621
|
-
}, null, 8,
|
|
14622
|
-
], 8, $
|
|
14621
|
+
}, null, 8, tM)
|
|
14622
|
+
], 8, $3),
|
|
14623
14623
|
Q("linearGradient", {
|
|
14624
14624
|
id: `linearGradient-2-${s(n)}`,
|
|
14625
14625
|
x1: "0%",
|
|
@@ -14630,46 +14630,46 @@ const vu = gt(HM, {
|
|
|
14630
14630
|
Q("stop", {
|
|
14631
14631
|
"stop-color": `var(${s(t).cssVarBlockName("fill-color-1")})`,
|
|
14632
14632
|
offset: "0%"
|
|
14633
|
-
}, null, 8,
|
|
14633
|
+
}, null, 8, oM),
|
|
14634
14634
|
Q("stop", {
|
|
14635
14635
|
"stop-color": `var(${s(t).cssVarBlockName("fill-color-6")})`,
|
|
14636
14636
|
offset: "100%"
|
|
14637
|
-
}, null, 8,
|
|
14638
|
-
], 8,
|
|
14637
|
+
}, null, 8, rM)
|
|
14638
|
+
], 8, nM),
|
|
14639
14639
|
Q("rect", {
|
|
14640
14640
|
id: `path-3-${s(n)}`,
|
|
14641
14641
|
x: "0",
|
|
14642
14642
|
y: "0",
|
|
14643
14643
|
width: "17",
|
|
14644
14644
|
height: "36"
|
|
14645
|
-
}, null, 8,
|
|
14645
|
+
}, null, 8, aM)
|
|
14646
14646
|
]),
|
|
14647
|
-
Q("g",
|
|
14648
|
-
Q("g",
|
|
14649
|
-
Q("g",
|
|
14647
|
+
Q("g", lM, [
|
|
14648
|
+
Q("g", sM, [
|
|
14649
|
+
Q("g", iM, [
|
|
14650
14650
|
Q("path", {
|
|
14651
14651
|
id: "Oval-Copy-2",
|
|
14652
14652
|
d: "M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",
|
|
14653
14653
|
fill: `var(${s(t).cssVarBlockName("fill-color-3")})`
|
|
14654
|
-
}, null, 8,
|
|
14654
|
+
}, null, 8, uM),
|
|
14655
14655
|
Q("polygon", {
|
|
14656
14656
|
id: "Rectangle-Copy-14",
|
|
14657
14657
|
fill: `var(${s(t).cssVarBlockName("fill-color-7")})`,
|
|
14658
14658
|
transform: "translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",
|
|
14659
14659
|
points: "13 58 53 58 42 45 2 45"
|
|
14660
|
-
}, null, 8,
|
|
14661
|
-
Q("g",
|
|
14660
|
+
}, null, 8, cM),
|
|
14661
|
+
Q("g", dM, [
|
|
14662
14662
|
Q("polygon", {
|
|
14663
14663
|
id: "Rectangle-Copy-10",
|
|
14664
14664
|
fill: `var(${s(t).cssVarBlockName("fill-color-7")})`,
|
|
14665
14665
|
transform: "translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",
|
|
14666
14666
|
points: "2.84078316e-14 3 18 3 23 7 5 7"
|
|
14667
|
-
}, null, 8,
|
|
14667
|
+
}, null, 8, fM),
|
|
14668
14668
|
Q("polygon", {
|
|
14669
14669
|
id: "Rectangle-Copy-11",
|
|
14670
14670
|
fill: `var(${s(t).cssVarBlockName("fill-color-5")})`,
|
|
14671
14671
|
points: "-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"
|
|
14672
|
-
}, null, 8,
|
|
14672
|
+
}, null, 8, pM),
|
|
14673
14673
|
Q("rect", {
|
|
14674
14674
|
id: "Rectangle-Copy-12",
|
|
14675
14675
|
fill: `url(#linearGradient-1-${s(n)})`,
|
|
@@ -14678,13 +14678,13 @@ const vu = gt(HM, {
|
|
|
14678
14678
|
y: "7",
|
|
14679
14679
|
width: "17",
|
|
14680
14680
|
height: "36"
|
|
14681
|
-
}, null, 8,
|
|
14681
|
+
}, null, 8, vM),
|
|
14682
14682
|
Q("polygon", {
|
|
14683
14683
|
id: "Rectangle-Copy-13",
|
|
14684
14684
|
fill: `var(${s(t).cssVarBlockName("fill-color-2")})`,
|
|
14685
14685
|
transform: "translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",
|
|
14686
14686
|
points: "24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"
|
|
14687
|
-
}, null, 8,
|
|
14687
|
+
}, null, 8, gM)
|
|
14688
14688
|
]),
|
|
14689
14689
|
Q("rect", {
|
|
14690
14690
|
id: "Rectangle-Copy-15",
|
|
@@ -14693,36 +14693,36 @@ const vu = gt(HM, {
|
|
|
14693
14693
|
y: "45",
|
|
14694
14694
|
width: "40",
|
|
14695
14695
|
height: "36"
|
|
14696
|
-
}, null, 8,
|
|
14697
|
-
Q("g",
|
|
14696
|
+
}, null, 8, mM),
|
|
14697
|
+
Q("g", hM, [
|
|
14698
14698
|
Q("use", {
|
|
14699
14699
|
id: "Mask",
|
|
14700
14700
|
fill: `var(${s(t).cssVarBlockName("fill-color-8")})`,
|
|
14701
14701
|
transform: "translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ",
|
|
14702
14702
|
"xlink:href": `#path-3-${s(n)}`
|
|
14703
|
-
}, null, 8,
|
|
14703
|
+
}, null, 8, AM),
|
|
14704
14704
|
Q("polygon", {
|
|
14705
14705
|
id: "Rectangle-Copy",
|
|
14706
14706
|
fill: `var(${s(t).cssVarBlockName("fill-color-9")})`,
|
|
14707
14707
|
mask: `url(#mask-4-${s(n)})`,
|
|
14708
14708
|
transform: "translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",
|
|
14709
14709
|
points: "7 0 24 0 20 18 7 16.5"
|
|
14710
|
-
}, null, 8,
|
|
14710
|
+
}, null, 8, yM)
|
|
14711
14711
|
]),
|
|
14712
14712
|
Q("polygon", {
|
|
14713
14713
|
id: "Rectangle-Copy-18",
|
|
14714
14714
|
fill: `var(${s(t).cssVarBlockName("fill-color-2")})`,
|
|
14715
14715
|
transform: "translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",
|
|
14716
14716
|
points: "62 45 79 45 70 58 53 58"
|
|
14717
|
-
}, null, 8,
|
|
14717
|
+
}, null, 8, bM)
|
|
14718
14718
|
])
|
|
14719
14719
|
])
|
|
14720
14720
|
])
|
|
14721
14721
|
]));
|
|
14722
14722
|
}
|
|
14723
14723
|
});
|
|
14724
|
-
var
|
|
14725
|
-
const
|
|
14724
|
+
var EM = /* @__PURE__ */ we(wM, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);
|
|
14725
|
+
const IM = Ie({
|
|
14726
14726
|
image: {
|
|
14727
14727
|
type: String,
|
|
14728
14728
|
default: ""
|
|
@@ -14732,11 +14732,11 @@ const I3 = Ie({
|
|
|
14732
14732
|
type: String,
|
|
14733
14733
|
default: ""
|
|
14734
14734
|
}
|
|
14735
|
-
}),
|
|
14735
|
+
}), kM = ["src"], BM = { key: 1 }, SM = j({
|
|
14736
14736
|
name: "ElEmpty"
|
|
14737
|
-
}),
|
|
14738
|
-
...
|
|
14739
|
-
props:
|
|
14737
|
+
}), MM = /* @__PURE__ */ j({
|
|
14738
|
+
...SM,
|
|
14739
|
+
props: IM,
|
|
14740
14740
|
setup(e) {
|
|
14741
14741
|
const t = e, { t: n } = ut(), o = ge("empty"), r = E(() => t.description || n("el.table.emptyText")), a = E(() => ({
|
|
14742
14742
|
width: An(t.imageSize)
|
|
@@ -14752,14 +14752,14 @@ const I3 = Ie({
|
|
|
14752
14752
|
key: 0,
|
|
14753
14753
|
src: l.image,
|
|
14754
14754
|
ondragstart: "return false"
|
|
14755
|
-
}, null, 8,
|
|
14756
|
-
G(
|
|
14755
|
+
}, null, 8, kM)) : ee(l.$slots, "image", { key: 1 }, () => [
|
|
14756
|
+
G(EM)
|
|
14757
14757
|
])
|
|
14758
14758
|
], 6),
|
|
14759
14759
|
Q("div", {
|
|
14760
14760
|
class: S(s(o).e("description"))
|
|
14761
14761
|
}, [
|
|
14762
|
-
l.$slots.description ? ee(l.$slots, "description", { key: 0 }) : (w(), R("p",
|
|
14762
|
+
l.$slots.description ? ee(l.$slots, "description", { key: 0 }) : (w(), R("p", BM, ce(s(r)), 1))
|
|
14763
14763
|
], 2),
|
|
14764
14764
|
l.$slots.default ? (w(), R("div", {
|
|
14765
14765
|
key: 0,
|
|
@@ -14770,8 +14770,8 @@ const I3 = Ie({
|
|
|
14770
14770
|
], 2));
|
|
14771
14771
|
}
|
|
14772
14772
|
});
|
|
14773
|
-
var
|
|
14774
|
-
const
|
|
14773
|
+
var TM = /* @__PURE__ */ we(MM, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);
|
|
14774
|
+
const xM = gt(TM), OM = Ie({
|
|
14775
14775
|
id: {
|
|
14776
14776
|
type: String,
|
|
14777
14777
|
default: void 0
|
|
@@ -14818,18 +14818,18 @@ const x3 = gt(T3), O3 = Ie({
|
|
|
14818
14818
|
type: Boolean,
|
|
14819
14819
|
default: !0
|
|
14820
14820
|
}
|
|
14821
|
-
}),
|
|
14821
|
+
}), PM = {
|
|
14822
14822
|
[Pt]: (e, t) => t !== e,
|
|
14823
14823
|
blur: (e) => e instanceof FocusEvent,
|
|
14824
14824
|
focus: (e) => e instanceof FocusEvent,
|
|
14825
14825
|
[un]: (e) => qe(e) || Jt(e),
|
|
14826
14826
|
[_e]: (e) => qe(e) || Jt(e)
|
|
14827
|
-
},
|
|
14827
|
+
}, FM = ["aria-label", "onKeydown"], RM = ["aria-label", "onKeydown"], NM = j({
|
|
14828
14828
|
name: "ElInputNumber"
|
|
14829
|
-
}),
|
|
14830
|
-
...
|
|
14831
|
-
props:
|
|
14832
|
-
emits:
|
|
14829
|
+
}), DM = /* @__PURE__ */ j({
|
|
14830
|
+
...NM,
|
|
14831
|
+
props: OM,
|
|
14832
|
+
emits: PM,
|
|
14833
14833
|
setup(e, { expose: t, emit: n }) {
|
|
14834
14834
|
const o = e, { t: r } = ut(), a = ge("input-number"), l = M(), i = wt({
|
|
14835
14835
|
currentValue: o.modelValue,
|
|
@@ -14953,7 +14953,7 @@ const x3 = gt(T3), O3 = Ie({
|
|
|
14953
14953
|
]),
|
|
14954
14954
|
_: 1
|
|
14955
14955
|
})
|
|
14956
|
-
], 42,
|
|
14956
|
+
], 42, FM)), [
|
|
14957
14957
|
[s(ps), y]
|
|
14958
14958
|
]) : J("v-if", !0),
|
|
14959
14959
|
T.controls ? Qe((w(), R("span", {
|
|
@@ -14969,7 +14969,7 @@ const x3 = gt(T3), O3 = Ie({
|
|
|
14969
14969
|
]),
|
|
14970
14970
|
_: 1
|
|
14971
14971
|
})
|
|
14972
|
-
], 42,
|
|
14972
|
+
], 42, RM)), [
|
|
14973
14973
|
[s(ps), C]
|
|
14974
14974
|
]) : J("v-if", !0),
|
|
14975
14975
|
G(s(qt), {
|
|
@@ -15002,9 +15002,9 @@ const x3 = gt(T3), O3 = Ie({
|
|
|
15002
15002
|
], 34));
|
|
15003
15003
|
}
|
|
15004
15004
|
});
|
|
15005
|
-
var
|
|
15006
|
-
const Fm = gt(
|
|
15007
|
-
let
|
|
15005
|
+
var KM = /* @__PURE__ */ we(DM, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);
|
|
15006
|
+
const Fm = gt(KM);
|
|
15007
|
+
let LM = class {
|
|
15008
15008
|
constructor(t, n) {
|
|
15009
15009
|
this.parent = t, this.domNode = n, this.subIndex = 0, this.subIndex = 0, this.init();
|
|
15010
15010
|
}
|
|
@@ -15042,14 +15042,14 @@ let L3 = class {
|
|
|
15042
15042
|
});
|
|
15043
15043
|
});
|
|
15044
15044
|
}
|
|
15045
|
-
},
|
|
15045
|
+
}, QM = class {
|
|
15046
15046
|
constructor(t, n) {
|
|
15047
15047
|
this.domNode = t, this.submenu = null, this.submenu = null, this.init(n);
|
|
15048
15048
|
}
|
|
15049
15049
|
init(t) {
|
|
15050
15050
|
this.domNode.setAttribute("tabindex", "0");
|
|
15051
15051
|
const n = this.domNode.querySelector(`.${t}-menu`);
|
|
15052
|
-
n && (this.submenu = new
|
|
15052
|
+
n && (this.submenu = new LM(this, n)), this.addListeners();
|
|
15053
15053
|
}
|
|
15054
15054
|
addListeners() {
|
|
15055
15055
|
this.domNode.addEventListener("keydown", (t) => {
|
|
@@ -15076,18 +15076,18 @@ let L3 = class {
|
|
|
15076
15076
|
n && t.preventDefault();
|
|
15077
15077
|
});
|
|
15078
15078
|
}
|
|
15079
|
-
},
|
|
15079
|
+
}, VM = class {
|
|
15080
15080
|
constructor(t, n) {
|
|
15081
15081
|
this.domNode = t, this.init(n);
|
|
15082
15082
|
}
|
|
15083
15083
|
init(t) {
|
|
15084
15084
|
const n = this.domNode.childNodes;
|
|
15085
15085
|
Array.from(n).forEach((o) => {
|
|
15086
|
-
o.nodeType === 1 && new
|
|
15086
|
+
o.nodeType === 1 && new QM(o, t);
|
|
15087
15087
|
});
|
|
15088
15088
|
}
|
|
15089
15089
|
};
|
|
15090
|
-
const
|
|
15090
|
+
const zM = j({
|
|
15091
15091
|
name: "ElMenuCollapseTransition",
|
|
15092
15092
|
setup() {
|
|
15093
15093
|
const e = ge("menu");
|
|
@@ -15110,7 +15110,7 @@ const z3 = j({
|
|
|
15110
15110
|
};
|
|
15111
15111
|
}
|
|
15112
15112
|
});
|
|
15113
|
-
function
|
|
15113
|
+
function HM(e, t, n, o, r, a) {
|
|
15114
15114
|
return w(), Z(dn, Pe({ mode: "out-in" }, e.listeners), {
|
|
15115
15115
|
default: K(() => [
|
|
15116
15116
|
ee(e.$slots, "default")
|
|
@@ -15118,7 +15118,7 @@ function H3(e, t, n, o, r, a) {
|
|
|
15118
15118
|
_: 3
|
|
15119
15119
|
}, 16);
|
|
15120
15120
|
}
|
|
15121
|
-
var
|
|
15121
|
+
var UM = /* @__PURE__ */ we(zM, [["render", HM], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);
|
|
15122
15122
|
function Rm(e, t) {
|
|
15123
15123
|
const n = E(() => {
|
|
15124
15124
|
let r = e.parent;
|
|
@@ -15137,7 +15137,7 @@ function Rm(e, t) {
|
|
|
15137
15137
|
indexPath: n
|
|
15138
15138
|
};
|
|
15139
15139
|
}
|
|
15140
|
-
function
|
|
15140
|
+
function WM(e) {
|
|
15141
15141
|
return E(() => {
|
|
15142
15142
|
const n = e.backgroundColor;
|
|
15143
15143
|
return n ? new Ig(n).shade(20).toString() : "";
|
|
@@ -15149,11 +15149,11 @@ const Nm = (e, t) => {
|
|
|
15149
15149
|
"text-color": e.textColor || "",
|
|
15150
15150
|
"hover-text-color": e.textColor || "",
|
|
15151
15151
|
"bg-color": e.backgroundColor || "",
|
|
15152
|
-
"hover-bg-color":
|
|
15152
|
+
"hover-bg-color": WM(e).value || "",
|
|
15153
15153
|
"active-color": e.activeTextColor || "",
|
|
15154
15154
|
level: `${t}`
|
|
15155
15155
|
}));
|
|
15156
|
-
},
|
|
15156
|
+
}, jM = Ie({
|
|
15157
15157
|
index: {
|
|
15158
15158
|
type: String,
|
|
15159
15159
|
required: !0
|
|
@@ -15195,7 +15195,7 @@ const Nm = (e, t) => {
|
|
|
15195
15195
|
}), Tl = "ElSubMenu";
|
|
15196
15196
|
var kc = j({
|
|
15197
15197
|
name: Tl,
|
|
15198
|
-
props:
|
|
15198
|
+
props: jM,
|
|
15199
15199
|
setup(e, { slots: t, expose: n }) {
|
|
15200
15200
|
Wo({
|
|
15201
15201
|
from: "popper-append-to-body",
|
|
@@ -15380,7 +15380,7 @@ var kc = j({
|
|
|
15380
15380
|
};
|
|
15381
15381
|
}
|
|
15382
15382
|
});
|
|
15383
|
-
const
|
|
15383
|
+
const _M = Ie({
|
|
15384
15384
|
mode: {
|
|
15385
15385
|
type: String,
|
|
15386
15386
|
values: ["horizontal", "vertical"],
|
|
@@ -15418,15 +15418,15 @@ const _3 = Ie({
|
|
|
15418
15418
|
values: ["dark", "light"],
|
|
15419
15419
|
default: "dark"
|
|
15420
15420
|
}
|
|
15421
|
-
}), mi = (e) => Array.isArray(e) && e.every((t) => Je(t)),
|
|
15421
|
+
}), mi = (e) => Array.isArray(e) && e.every((t) => Je(t)), YM = {
|
|
15422
15422
|
close: (e, t) => Je(e) && mi(t),
|
|
15423
15423
|
open: (e, t) => Je(e) && mi(t),
|
|
15424
15424
|
select: (e, t, n, o) => Je(e) && mi(t) && Ot(n) && (o === void 0 || o instanceof Promise)
|
|
15425
15425
|
};
|
|
15426
|
-
var
|
|
15426
|
+
var GM = j({
|
|
15427
15427
|
name: "ElMenu",
|
|
15428
|
-
props:
|
|
15429
|
-
emits:
|
|
15428
|
+
props: _M,
|
|
15429
|
+
emits: YM,
|
|
15430
15430
|
setup(e, { emit: t, slots: n, expose: o }) {
|
|
15431
15431
|
const r = Ue(), a = r.appContext.config.globalProperties.$router, l = M(), i = ge("menu"), u = ge("sub-menu"), c = M(-1), p = M(e.defaultOpeneds && !e.collapse ? e.defaultOpeneds.slice(0) : []), d = M(e.defaultActive), f = M({}), v = M({}), m = E(() => e.mode === "horizontal" || e.mode === "vertical" && e.collapse), g = () => {
|
|
15432
15432
|
const z = d.value && f.value[d.value];
|
|
@@ -15528,7 +15528,7 @@ var G3 = j({
|
|
|
15528
15528
|
});
|
|
15529
15529
|
}
|
|
15530
15530
|
return Ye(() => {
|
|
15531
|
-
e.mode === "horizontal" && new
|
|
15531
|
+
e.mode === "horizontal" && new VM(r.vnode.el, i.namespace.value);
|
|
15532
15532
|
}), o({
|
|
15533
15533
|
open: (D) => {
|
|
15534
15534
|
const { indexPath: T } = v.value[D];
|
|
@@ -15563,11 +15563,11 @@ var G3 = j({
|
|
|
15563
15563
|
[i.m("collapse")]: e.collapse
|
|
15564
15564
|
}
|
|
15565
15565
|
}, [...T, ...L]);
|
|
15566
|
-
return e.collapseTransition && e.mode === "vertical" ? Oe(
|
|
15566
|
+
return e.collapseTransition && e.mode === "vertical" ? Oe(UM, () => _) : _;
|
|
15567
15567
|
};
|
|
15568
15568
|
}
|
|
15569
15569
|
});
|
|
15570
|
-
const
|
|
15570
|
+
const qM = Ie({
|
|
15571
15571
|
index: {
|
|
15572
15572
|
type: pe([String, null]),
|
|
15573
15573
|
default: null
|
|
@@ -15576,15 +15576,15 @@ const q3 = Ie({
|
|
|
15576
15576
|
type: pe([String, Object])
|
|
15577
15577
|
},
|
|
15578
15578
|
disabled: Boolean
|
|
15579
|
-
}),
|
|
15579
|
+
}), ZM = {
|
|
15580
15580
|
click: (e) => Je(e.index) && Array.isArray(e.indexPath)
|
|
15581
|
-
}, hi = "ElMenuItem",
|
|
15581
|
+
}, hi = "ElMenuItem", JM = j({
|
|
15582
15582
|
name: hi,
|
|
15583
15583
|
components: {
|
|
15584
15584
|
ElTooltip: fn
|
|
15585
15585
|
},
|
|
15586
|
-
props:
|
|
15587
|
-
emits:
|
|
15586
|
+
props: qM,
|
|
15587
|
+
emits: ZM,
|
|
15588
15588
|
setup(e, { emit: t }) {
|
|
15589
15589
|
const n = Ue(), o = Ce("rootMenu"), r = ge("menu"), a = ge("menu-item");
|
|
15590
15590
|
o || Kt(hi, "can not inject root menu");
|
|
@@ -15615,7 +15615,7 @@ const q3 = Ie({
|
|
|
15615
15615
|
};
|
|
15616
15616
|
}
|
|
15617
15617
|
});
|
|
15618
|
-
function
|
|
15618
|
+
function XM(e, t, n, o, r, a) {
|
|
15619
15619
|
const l = be("el-tooltip");
|
|
15620
15620
|
return w(), R("li", {
|
|
15621
15621
|
class: S([
|
|
@@ -15651,12 +15651,12 @@ function X3(e, t, n, o, r, a) {
|
|
|
15651
15651
|
], 64))
|
|
15652
15652
|
], 2);
|
|
15653
15653
|
}
|
|
15654
|
-
var Dm = /* @__PURE__ */ we(
|
|
15655
|
-
const $
|
|
15654
|
+
var Dm = /* @__PURE__ */ we(JM, [["render", XM], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);
|
|
15655
|
+
const $M = {
|
|
15656
15656
|
title: String
|
|
15657
15657
|
}, eT = "ElMenuItemGroup", tT = j({
|
|
15658
15658
|
name: eT,
|
|
15659
|
-
props: $
|
|
15659
|
+
props: $M,
|
|
15660
15660
|
setup() {
|
|
15661
15661
|
return {
|
|
15662
15662
|
ns: ge("menu-item-group")
|
|
@@ -15680,7 +15680,7 @@ function nT(e, t, n, o, r, a) {
|
|
|
15680
15680
|
], 2);
|
|
15681
15681
|
}
|
|
15682
15682
|
var Km = /* @__PURE__ */ we(tT, [["render", nT], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);
|
|
15683
|
-
const Lm = gt(
|
|
15683
|
+
const Lm = gt(GM, {
|
|
15684
15684
|
MenuItem: Dm,
|
|
15685
15685
|
MenuItemGroup: Km,
|
|
15686
15686
|
SubMenu: kc
|
|
@@ -26932,7 +26932,6 @@ const iD = /* @__PURE__ */ j({
|
|
|
26932
26932
|
setup(e, { expose: t }) {
|
|
26933
26933
|
const n = M();
|
|
26934
26934
|
return t({
|
|
26935
|
-
selectRef: n,
|
|
26936
26935
|
// 可选:直接暴露常用方法
|
|
26937
26936
|
focus: () => {
|
|
26938
26937
|
var o;
|
|
@@ -26962,7 +26961,7 @@ const iD = /* @__PURE__ */ j({
|
|
|
26962
26961
|
}, 8, ["locale"]));
|
|
26963
26962
|
}
|
|
26964
26963
|
});
|
|
26965
|
-
const $r = /* @__PURE__ */ At(iD, [["__scopeId", "data-v-
|
|
26964
|
+
const $r = /* @__PURE__ */ At(iD, [["__scopeId", "data-v-eff4739c"]]), Bh = /* @__PURE__ */ j({
|
|
26966
26965
|
__name: "MxOption",
|
|
26967
26966
|
setup(e) {
|
|
26968
26967
|
return (t, n) => (w(), Z(s(hs), Pe({
|
|
@@ -27858,7 +27857,7 @@ const ca = /* @__PURE__ */ At(nK, [["__scopeId", "data-v-ccc5eca1"]]), Oh = /* @
|
|
|
27858
27857
|
]), 1040));
|
|
27859
27858
|
}
|
|
27860
27859
|
}), Ph = /* @__PURE__ */ j({
|
|
27861
|
-
__name: "
|
|
27860
|
+
__name: "MxDropdownItem",
|
|
27862
27861
|
setup(e) {
|
|
27863
27862
|
return (t, n) => (w(), Z(s(Po), Pe(t.$attrs, { class: "mx-dropdown-menu" }), et({ _: 2 }, [
|
|
27864
27863
|
Be(t.$slots, (o, r, a) => ({
|
|
@@ -27916,7 +27915,7 @@ const oK = {
|
|
|
27916
27915
|
o.value = n[a], t.bodyScroll && t.size && (r.value = t.size);
|
|
27917
27916
|
},
|
|
27918
27917
|
{ immediate: !0 }
|
|
27919
|
-
), (a, l) => (w(), Z(s(
|
|
27918
|
+
), (a, l) => (w(), Z(s(s3), Pe({ ...t, ...a.$attrs }, {
|
|
27920
27919
|
class: ["mx-dialog", r.value],
|
|
27921
27920
|
width: o.value
|
|
27922
27921
|
}), {
|
|
@@ -28933,7 +28932,7 @@ const VK = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAA
|
|
|
28933
28932
|
setup(e) {
|
|
28934
28933
|
return (t, n) => (w(), Z(s(ko), { locale: s(Bo) }, {
|
|
28935
28934
|
default: K(() => [
|
|
28936
|
-
G(s(
|
|
28935
|
+
G(s(xM), Pe(t.$attrs, {
|
|
28937
28936
|
image: s(VK),
|
|
28938
28937
|
"image-size": 80,
|
|
28939
28938
|
class: "mx-empty"
|