@yqg/permission 1.2.0 → 1.2.1
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/{apply-modal-BBqMmKS2.js → apply-modal-COwJCSGK.js} +3 -3
- package/dist/{checkbox-item-CFWhXmMU.js → checkbox-item-DyKSHMQJ.js} +168 -168
- package/{dist_/345/211/257/346/234/254/index-CUS1Jydp.js → dist/index-DKDl-l25.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +47 -47
- package/dist/{yqg-permission-Bxzu3bMl.js → yqg-permission-DfFns5kK.js} +2 -2
- package/package.json +1 -1
- package/src/components/checkbox-item.vue +1 -1
- package/src/typings/index.d.ts +5 -5
- package/dist/index-BAGvIeoy.js +0 -6164
- package/dist_/345/211/257/346/234/254/apply-modal-Bgd3UWf-.js +0 -8739
- package/dist_/345/211/257/346/234/254/card.png +0 -0
- package/dist_/345/211/257/346/234/254/checkbox-item-DiIgFuBE.js +0 -4988
- package/dist_/345/211/257/346/234/254/dialog.png +0 -0
- package/dist_/345/211/257/346/234/254/image.png +0 -0
- package/dist_/345/211/257/346/234/254/index.js +0 -5
- package/dist_/345/211/257/346/234/254/index.umd.cjs +0 -259
- package/dist_/345/211/257/346/234/254/yqg-permission-ChMRXqi6.js +0 -14944
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as se, c as P, r as he, e as y, i as to, m as ln, a as Ye, p as et, x as an, s as X, w as ie, b as Te, l as Ee, S as Pe, F as He, o as Xe, X as no, G as Be, $ as oo, E as yt, q as We, v as lo, y as Oe, K as ye, P as qe, M as ge, N as Se, L as ze, u as ae, O as ao, R as ve, U as Ae, a0 as Kt } from "./index-
|
|
2
|
-
import { _ as C, X as io, P as N, a as W, b as re, aT as ro, ap as rn, K as St, Y as je, ao as sn, aU as $e, av as Ie, aq as tt, T as so, aV as we, aW as Wt, aX as jt, aY as Ut, I as un, a8 as uo, a9 as co, aC as cn, aZ as dn, al as de, O as nt, a_ as vt, Q as xe, a$ as fn, L as mn, N as fo, d as mo, V as wt, as as po, an as vo, aD as go, b0 as ho, b1 as bo, W as Yt, ag as Ke, af as yo, ai as So, b2 as wo, b3 as Co, aj as Io, b4 as xo, b5 as Oo, b6 as $o, ar as To, aM as Ce, b7 as Eo, aO as Qe, aP as Mo } from "./yqg-permission-
|
|
3
|
-
import { B as Po, R as Ct, p as It, K, S as Ro, u as Do, F as Fo, g as No, a as Ao, C as Vo, Q as Lo } from "./apply-modal-
|
|
1
|
+
import { d as se, c as P, r as he, e as y, i as to, m as ln, a as Ye, p as et, x as an, s as X, w as ie, b as Te, l as Ee, S as Pe, F as He, o as Xe, X as no, G as Be, $ as oo, E as yt, q as We, v as lo, y as Oe, K as ye, P as qe, M as ge, N as Se, L as ze, u as ae, O as ao, R as ve, U as Ae, a0 as Kt } from "./index-DKDl-l25.js";
|
|
2
|
+
import { _ as C, X as io, P as N, a as W, b as re, aT as ro, ap as rn, K as St, Y as je, ao as sn, aU as $e, av as Ie, aq as tt, T as so, aV as we, aW as Wt, aX as jt, aY as Ut, I as un, a8 as uo, a9 as co, aC as cn, aZ as dn, al as de, O as nt, a_ as vt, Q as xe, a$ as fn, L as mn, N as fo, d as mo, V as wt, as as po, an as vo, aD as go, b0 as ho, b1 as bo, W as Yt, ag as Ke, af as yo, ai as So, b2 as wo, b3 as Co, aj as Io, b4 as xo, b5 as Oo, b6 as $o, ar as To, aM as Ce, b7 as Eo, aO as Qe, aP as Mo } from "./yqg-permission-DfFns5kK.js";
|
|
3
|
+
import { B as Po, R as Ct, p as It, K, S as Ro, u as Do, F as Fo, g as No, a as Ao, C as Vo, Q as Lo } from "./apply-modal-COwJCSGK.js";
|
|
4
4
|
function Xt(e, n) {
|
|
5
5
|
const {
|
|
6
6
|
key: o
|
|
@@ -34,18 +34,18 @@ function Ho(e) {
|
|
|
34
34
|
} = pn(n, !1);
|
|
35
35
|
function r(d, s) {
|
|
36
36
|
d.forEach((i) => {
|
|
37
|
-
const
|
|
37
|
+
const f = i[l];
|
|
38
38
|
if (s || !(u in i)) {
|
|
39
39
|
const p = i[a];
|
|
40
40
|
t.push({
|
|
41
41
|
key: Xt(i, t.length),
|
|
42
42
|
groupOption: s,
|
|
43
43
|
data: i,
|
|
44
|
-
label:
|
|
44
|
+
label: f,
|
|
45
45
|
value: p
|
|
46
46
|
});
|
|
47
47
|
} else {
|
|
48
|
-
let p =
|
|
48
|
+
let p = f;
|
|
49
49
|
p === void 0 && o && (p = i.label), t.push({
|
|
50
50
|
key: Xt(i, t.length),
|
|
51
51
|
group: !0,
|
|
@@ -74,7 +74,7 @@ function Bo(e, n) {
|
|
|
74
74
|
if (!r)
|
|
75
75
|
return [a];
|
|
76
76
|
const s = a.split(r);
|
|
77
|
-
return o = o || s.length > 1, s.reduce((i,
|
|
77
|
+
return o = o || s.length > 1, s.reduce((i, f) => [...i, ...t(f, d)], []).filter((i) => i);
|
|
78
78
|
}
|
|
79
79
|
const l = t(e, n);
|
|
80
80
|
return o ? l : null;
|
|
@@ -177,7 +177,7 @@ const zo = (e) => {
|
|
|
177
177
|
empty: d = !1
|
|
178
178
|
} = r, s = _o(r, ["empty"]), {
|
|
179
179
|
visible: i,
|
|
180
|
-
dropdownAlign:
|
|
180
|
+
dropdownAlign: f,
|
|
181
181
|
prefixCls: p,
|
|
182
182
|
popupElement: w,
|
|
183
183
|
dropdownClassName: v,
|
|
@@ -211,7 +211,7 @@ const zo = (e) => {
|
|
|
211
211
|
builtinPlacements: a.value,
|
|
212
212
|
prefixCls: G,
|
|
213
213
|
popupTransitionName: D,
|
|
214
|
-
popupAlign:
|
|
214
|
+
popupAlign: f,
|
|
215
215
|
popupVisible: i,
|
|
216
216
|
getPopupContainer: $,
|
|
217
217
|
popupClassName: re(v, {
|
|
@@ -340,7 +340,7 @@ const Wo = {
|
|
|
340
340
|
tabindex: d,
|
|
341
341
|
autofocus: s,
|
|
342
342
|
autocomplete: i,
|
|
343
|
-
editable:
|
|
343
|
+
editable: f,
|
|
344
344
|
activeDescendantId: p,
|
|
345
345
|
value: w,
|
|
346
346
|
onKeydown: v,
|
|
@@ -385,11 +385,11 @@ const Wo = {
|
|
|
385
385
|
"aria-controls": `${a}_list`,
|
|
386
386
|
"aria-activedescendant": p
|
|
387
387
|
}), F), {
|
|
388
|
-
value:
|
|
389
|
-
readonly: !
|
|
390
|
-
unselectable:
|
|
388
|
+
value: f ? w : "",
|
|
389
|
+
readonly: !f,
|
|
390
|
+
unselectable: f ? null : "on",
|
|
391
391
|
style: C(C({}, ee), {
|
|
392
|
-
opacity:
|
|
392
|
+
opacity: f ? null : 0
|
|
393
393
|
}),
|
|
394
394
|
onKeydown: (h) => {
|
|
395
395
|
v(h), z && z(h);
|
|
@@ -489,14 +489,14 @@ const Ve = void 0, Ze = se({
|
|
|
489
489
|
prefixCls: d,
|
|
490
490
|
invalidate: s,
|
|
491
491
|
item: i,
|
|
492
|
-
renderItem:
|
|
492
|
+
renderItem: f,
|
|
493
493
|
responsive: p,
|
|
494
494
|
registerSize: w,
|
|
495
495
|
itemKey: v,
|
|
496
496
|
display: S,
|
|
497
497
|
order: I,
|
|
498
498
|
component: x = "div"
|
|
499
|
-
} = e, M = Uo(e, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "display", "order", "component"]), R = (r = o.default) === null || r === void 0 ? void 0 : r.call(o), O =
|
|
499
|
+
} = e, M = Uo(e, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "display", "order", "component"]), R = (r = o.default) === null || r === void 0 ? void 0 : r.call(o), O = f && i !== Ve ? f(i) : R;
|
|
500
500
|
let g;
|
|
501
501
|
s || (g = {
|
|
502
502
|
opacity: l.value ? 0 : 1,
|
|
@@ -573,9 +573,9 @@ const Yo = se({
|
|
|
573
573
|
var a;
|
|
574
574
|
if (!l.value) {
|
|
575
575
|
const {
|
|
576
|
-
component:
|
|
576
|
+
component: f = "div"
|
|
577
577
|
} = e, p = ct(e, ["component"]);
|
|
578
|
-
return y(
|
|
578
|
+
return y(f, W(W({}, p), t), {
|
|
579
579
|
default: () => [(a = o.default) === null || a === void 0 ? void 0 : a.call(o)]
|
|
580
580
|
});
|
|
581
581
|
}
|
|
@@ -642,7 +642,7 @@ const ko = () => ({
|
|
|
642
642
|
emit: t,
|
|
643
643
|
slots: l
|
|
644
644
|
} = n;
|
|
645
|
-
const a = P(() => e.ssr === "full"), u = X(null), r = P(() => u.value || 0), d = X(/* @__PURE__ */ new Map()), s = X(0), i = X(0),
|
|
645
|
+
const a = P(() => e.ssr === "full"), u = X(null), r = P(() => u.value || 0), d = X(/* @__PURE__ */ new Map()), s = X(0), i = X(0), f = X(0), p = X(null), w = X(null), v = P(() => w.value === null && a.value ? Number.MAX_SAFE_INTEGER : w.value || 0), S = X(!1), I = P(() => `${e.prefixCls}-item`), x = P(() => Math.max(s.value, i.value)), M = P(() => !!(e.data.length && e.maxCount === hn)), R = P(() => e.maxCount === bn), O = P(() => M.value || typeof e.maxCount == "number" && e.data.length > e.maxCount), g = P(() => {
|
|
646
646
|
let D = e.data;
|
|
647
647
|
return M.value ? u.value === null && a.value ? D = e.data : D = e.data.slice(0, Math.min(e.data.length, r.value / e.itemWidth)) : typeof e.maxCount == "number" && (D = e.data.slice(0, e.maxCount)), D;
|
|
648
648
|
}), T = P(() => M.value ? e.data.slice(v.value + 1) : e.data.slice(g.value.length)), $ = (D, L) => {
|
|
@@ -658,11 +658,11 @@ const ko = () => ({
|
|
|
658
658
|
}, Q = (D, L) => {
|
|
659
659
|
s.value = i.value, i.value = L;
|
|
660
660
|
}, G = (D, L) => {
|
|
661
|
-
|
|
661
|
+
f.value = L;
|
|
662
662
|
}, Y = (D) => d.value.get($(g.value[D], D));
|
|
663
|
-
return ie([r, d, i,
|
|
663
|
+
return ie([r, d, i, f, () => e.itemKey, g], () => {
|
|
664
664
|
if (r.value && x.value && g.value) {
|
|
665
|
-
let D =
|
|
665
|
+
let D = f.value;
|
|
666
666
|
const L = g.value.length, k = L - 1;
|
|
667
667
|
if (!L) {
|
|
668
668
|
V(0), p.value = null;
|
|
@@ -680,11 +680,11 @@ const ko = () => ({
|
|
|
680
680
|
V(k), p.value = null;
|
|
681
681
|
break;
|
|
682
682
|
} else if (D + x.value > r.value) {
|
|
683
|
-
V(ee - 1), p.value = D - h -
|
|
683
|
+
V(ee - 1), p.value = D - h - f.value + i.value;
|
|
684
684
|
break;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
e.suffix && Y(0) +
|
|
687
|
+
e.suffix && Y(0) + f.value > r.value && (p.value = null);
|
|
688
688
|
}
|
|
689
689
|
}), () => {
|
|
690
690
|
const D = S.value && !!T.value.length, {
|
|
@@ -738,7 +738,7 @@ const ko = () => ({
|
|
|
738
738
|
display: q <= v.value
|
|
739
739
|
}), null);
|
|
740
740
|
};
|
|
741
|
-
let
|
|
741
|
+
let m = () => null;
|
|
742
742
|
const A = {
|
|
743
743
|
order: D ? v.value : Number.MAX_SAFE_INTEGER,
|
|
744
744
|
className: `${I.value} ${I.value}-rest`,
|
|
@@ -746,14 +746,14 @@ const ko = () => ({
|
|
|
746
746
|
display: D
|
|
747
747
|
};
|
|
748
748
|
if (ee)
|
|
749
|
-
ee && (
|
|
749
|
+
ee && (m = () => y(ht, {
|
|
750
750
|
value: C(C({}, b), A)
|
|
751
751
|
}, {
|
|
752
752
|
default: () => [ee(T.value)]
|
|
753
753
|
}));
|
|
754
754
|
else {
|
|
755
755
|
const _ = h || Go;
|
|
756
|
-
|
|
756
|
+
m = () => y(Ze, W(W({}, b), A), {
|
|
757
757
|
default: () => typeof _ == "function" ? _(T.value) : _
|
|
758
758
|
});
|
|
759
759
|
}
|
|
@@ -766,7 +766,7 @@ const ko = () => ({
|
|
|
766
766
|
onMousedown: oe,
|
|
767
767
|
role: e.role
|
|
768
768
|
}, me), {
|
|
769
|
-
default: () => [g.value.map(c), O.value ?
|
|
769
|
+
default: () => [g.value.map(c), O.value ? m() : null, j && y(Ze, W(W({}, b), {}, {
|
|
770
770
|
order: v.value,
|
|
771
771
|
class: `${I.value}-suffix`,
|
|
772
772
|
registerSize: G,
|
|
@@ -890,7 +890,7 @@ const Qo = {
|
|
|
890
890
|
option: T
|
|
891
891
|
})]);
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function f(v) {
|
|
894
894
|
const {
|
|
895
895
|
disabled: S,
|
|
896
896
|
label: I,
|
|
@@ -972,7 +972,7 @@ const Qo = {
|
|
|
972
972
|
}, [d.value, Pe(" ")])]), L = y(ot, {
|
|
973
973
|
prefixCls: `${a.value}-overflow`,
|
|
974
974
|
data: I,
|
|
975
|
-
renderItem:
|
|
975
|
+
renderItem: f,
|
|
976
976
|
renderRest: p,
|
|
977
977
|
suffix: D,
|
|
978
978
|
itemKey: "key",
|
|
@@ -1057,7 +1057,7 @@ const Qo = {
|
|
|
1057
1057
|
i.target.composing || (n.value = !0, e.onInputChange(i));
|
|
1058
1058
|
};
|
|
1059
1059
|
return () => {
|
|
1060
|
-
var i,
|
|
1060
|
+
var i, f, p, w;
|
|
1061
1061
|
const {
|
|
1062
1062
|
inputElement: v,
|
|
1063
1063
|
prefixCls: S,
|
|
@@ -1079,7 +1079,7 @@ const Qo = {
|
|
|
1079
1079
|
} = e, D = x[0];
|
|
1080
1080
|
let L = null;
|
|
1081
1081
|
if (D && a.customSlots) {
|
|
1082
|
-
const k = (i = D.key) !== null && i !== void 0 ? i : D.value, ee = ((
|
|
1082
|
+
const k = (i = D.key) !== null && i !== void 0 ? i : D.value, ee = ((f = a.keyEntities[k]) === null || f === void 0 ? void 0 : f.node) || {};
|
|
1083
1083
|
L = a.customSlots[(p = ee.slots) === null || p === void 0 ? void 0 : p.title] || a.customSlots.title || D.label, typeof L == "function" && (L = L(ee));
|
|
1084
1084
|
} else
|
|
1085
1085
|
L = V && D ? V(D.option) : D == null ? void 0 : D.label;
|
|
@@ -1245,7 +1245,7 @@ const tl = se({
|
|
|
1245
1245
|
let s = null;
|
|
1246
1246
|
const i = (x) => {
|
|
1247
1247
|
e.onSearch(x, !0, l.value) !== !1 && e.onToggleOpen(!0);
|
|
1248
|
-
},
|
|
1248
|
+
}, f = () => {
|
|
1249
1249
|
l.value = !0;
|
|
1250
1250
|
}, p = (x) => {
|
|
1251
1251
|
l.value = !1, e.mode !== "combobox" && i(x.target.value);
|
|
@@ -1295,7 +1295,7 @@ const tl = se({
|
|
|
1295
1295
|
onInputChange: w,
|
|
1296
1296
|
onInputPaste: v,
|
|
1297
1297
|
compositionStatus: l.value,
|
|
1298
|
-
onInputCompositionStart:
|
|
1298
|
+
onInputCompositionStart: f,
|
|
1299
1299
|
onInputCompositionEnd: p
|
|
1300
1300
|
}, g = R === "multiple" || R === "tags" ? y(Jo, W(W({}, e), O), null) : y(Ot, W(W({}, e), O), null);
|
|
1301
1301
|
return y("div", {
|
|
@@ -1547,7 +1547,7 @@ const dl = se({
|
|
|
1547
1547
|
Ee(() => {
|
|
1548
1548
|
r.value = il();
|
|
1549
1549
|
});
|
|
1550
|
-
const d = xt(), s = X(null), i = Ue(),
|
|
1550
|
+
const d = xt(), s = X(null), i = Ue(), f = X(null), p = X(null), w = X(null), v = he(!1), [S, I, x] = ol();
|
|
1551
1551
|
t({
|
|
1552
1552
|
focus: () => {
|
|
1553
1553
|
var c;
|
|
@@ -1558,16 +1558,16 @@ const dl = se({
|
|
|
1558
1558
|
(c = p.value) === null || c === void 0 || c.blur();
|
|
1559
1559
|
},
|
|
1560
1560
|
scrollTo: (c) => {
|
|
1561
|
-
var
|
|
1562
|
-
return (
|
|
1561
|
+
var m;
|
|
1562
|
+
return (m = w.value) === null || m === void 0 ? void 0 : m.scrollTo(c);
|
|
1563
1563
|
}
|
|
1564
1564
|
});
|
|
1565
1565
|
const O = P(() => {
|
|
1566
1566
|
var c;
|
|
1567
1567
|
if (e.mode !== "combobox")
|
|
1568
1568
|
return e.searchValue;
|
|
1569
|
-
const
|
|
1570
|
-
return typeof
|
|
1569
|
+
const m = (c = e.displayValues[0]) === null || c === void 0 ? void 0 : c.value;
|
|
1570
|
+
return typeof m == "string" || typeof m == "number" ? String(m) : "";
|
|
1571
1571
|
}), g = e.open !== void 0 ? e.open : e.defaultOpen, T = X(g), $ = X(g), F = (c) => {
|
|
1572
1572
|
T.value = e.open !== void 0 ? e.open : c, $.value = T.value;
|
|
1573
1573
|
};
|
|
@@ -1579,21 +1579,21 @@ const dl = se({
|
|
|
1579
1579
|
$.value = T.value, (e.disabled || V.value && $.value && e.mode === "combobox") && ($.value = !1);
|
|
1580
1580
|
});
|
|
1581
1581
|
const U = P(() => V.value ? !1 : $.value), z = (c) => {
|
|
1582
|
-
const
|
|
1583
|
-
$.value !==
|
|
1582
|
+
const m = c !== void 0 ? c : !$.value;
|
|
1583
|
+
$.value !== m && !e.disabled && (F(m), e.onDropdownVisibleChange && e.onDropdownVisibleChange(m));
|
|
1584
1584
|
}, Q = P(() => (e.tokenSeparators || []).some((c) => [`
|
|
1585
1585
|
`, `\r
|
|
1586
|
-
`].includes(c))), G = (c,
|
|
1586
|
+
`].includes(c))), G = (c, m, A) => {
|
|
1587
1587
|
var E, _;
|
|
1588
1588
|
let q = !0, J = c;
|
|
1589
1589
|
(E = e.onActiveValueChange) === null || E === void 0 || E.call(e, null);
|
|
1590
1590
|
const le = A ? null : Bo(c, e.tokenSeparators);
|
|
1591
1591
|
return e.mode !== "combobox" && le && (J = "", (_ = e.onSearchSplit) === null || _ === void 0 || _.call(e, le), z(!1), q = !1), e.onSearch && O.value !== J && e.onSearch(J, {
|
|
1592
|
-
source:
|
|
1592
|
+
source: m ? "typing" : "effect"
|
|
1593
1593
|
}), q;
|
|
1594
1594
|
}, Y = (c) => {
|
|
1595
|
-
var
|
|
1596
|
-
!c || !c.trim() || (
|
|
1595
|
+
var m;
|
|
1596
|
+
!c || !c.trim() || (m = e.onSearch) === null || m === void 0 || m.call(e, c, {
|
|
1597
1597
|
source: "submit"
|
|
1598
1598
|
});
|
|
1599
1599
|
};
|
|
@@ -1608,7 +1608,7 @@ const dl = se({
|
|
|
1608
1608
|
immediate: !0
|
|
1609
1609
|
});
|
|
1610
1610
|
const [D, L] = yn(), k = function(c) {
|
|
1611
|
-
var
|
|
1611
|
+
var m;
|
|
1612
1612
|
const A = D(), {
|
|
1613
1613
|
which: E
|
|
1614
1614
|
} = c;
|
|
@@ -1629,14 +1629,14 @@ const dl = se({
|
|
|
1629
1629
|
}
|
|
1630
1630
|
for (var _ = arguments.length, q = new Array(_ > 1 ? _ - 1 : 0), J = 1; J < _; J++)
|
|
1631
1631
|
q[J - 1] = arguments[J];
|
|
1632
|
-
$.value && w.value && w.value.onKeydown(c, ...q), (
|
|
1632
|
+
$.value && w.value && w.value.onKeydown(c, ...q), (m = e.onKeydown) === null || m === void 0 || m.call(e, c, ...q);
|
|
1633
1633
|
}, ee = function(c) {
|
|
1634
|
-
for (var
|
|
1634
|
+
for (var m = arguments.length, A = new Array(m > 1 ? m - 1 : 0), E = 1; E < m; E++)
|
|
1635
1635
|
A[E - 1] = arguments[E];
|
|
1636
1636
|
$.value && w.value && w.value.onKeyup(c, ...A), e.onKeyup && e.onKeyup(c, ...A);
|
|
1637
1637
|
}, h = (c) => {
|
|
1638
|
-
const
|
|
1639
|
-
e.onDisplayValuesChange(
|
|
1638
|
+
const m = e.displayValues.filter((A) => A !== c);
|
|
1639
|
+
e.onDisplayValuesChange(m, {
|
|
1640
1640
|
type: "remove",
|
|
1641
1641
|
values: [c]
|
|
1642
1642
|
});
|
|
@@ -1669,10 +1669,10 @@ const dl = se({
|
|
|
1669
1669
|
ne.forEach((c) => clearTimeout(c)), ne.splice(0, ne.length);
|
|
1670
1670
|
});
|
|
1671
1671
|
const me = function(c) {
|
|
1672
|
-
var
|
|
1672
|
+
var m, A;
|
|
1673
1673
|
const {
|
|
1674
1674
|
target: E
|
|
1675
|
-
} = c, _ = (
|
|
1675
|
+
} = c, _ = (m = f.value) === null || m === void 0 ? void 0 : m.getPopupElement();
|
|
1676
1676
|
if (_ && _.contains(E)) {
|
|
1677
1677
|
const Z = setTimeout(() => {
|
|
1678
1678
|
var ce;
|
|
@@ -1690,14 +1690,14 @@ const dl = se({
|
|
|
1690
1690
|
ie(U, () => {
|
|
1691
1691
|
var c;
|
|
1692
1692
|
if (U.value) {
|
|
1693
|
-
const
|
|
1694
|
-
pe.value !==
|
|
1693
|
+
const m = Math.ceil((c = s.value) === null || c === void 0 ? void 0 : c.offsetWidth);
|
|
1694
|
+
pe.value !== m && !Number.isNaN(m) && (pe.value = m);
|
|
1695
1695
|
}
|
|
1696
1696
|
}, {
|
|
1697
1697
|
immediate: !0,
|
|
1698
1698
|
flush: "post"
|
|
1699
1699
|
});
|
|
1700
|
-
}), nl([s,
|
|
1700
|
+
}), nl([s, f], U, z), ll(wn(C(C({}, oo(e)), {
|
|
1701
1701
|
open: $,
|
|
1702
1702
|
triggerOpen: U,
|
|
1703
1703
|
showSearch: u,
|
|
@@ -1705,7 +1705,7 @@ const dl = se({
|
|
|
1705
1705
|
toggleOpen: z
|
|
1706
1706
|
}))), () => {
|
|
1707
1707
|
const c = C(C({}, e), o), {
|
|
1708
|
-
prefixCls:
|
|
1708
|
+
prefixCls: m,
|
|
1709
1709
|
id: A,
|
|
1710
1710
|
open: E,
|
|
1711
1711
|
defaultOpen: _,
|
|
@@ -1768,8 +1768,8 @@ const dl = se({
|
|
|
1768
1768
|
const Lt = Ge !== void 0 ? Ge : Ne || !a.value && q !== "combobox";
|
|
1769
1769
|
let Ht;
|
|
1770
1770
|
Lt && (Ht = y(De, {
|
|
1771
|
-
class: re(`${
|
|
1772
|
-
[`${
|
|
1771
|
+
class: re(`${m}-arrow`, {
|
|
1772
|
+
[`${m}-arrow-loading`]: Ne
|
|
1773
1773
|
}),
|
|
1774
1774
|
customizeIcon: at,
|
|
1775
1775
|
customizeIconProps: {
|
|
@@ -1788,7 +1788,7 @@ const dl = se({
|
|
|
1788
1788
|
}), G("", !1, !1);
|
|
1789
1789
|
};
|
|
1790
1790
|
!Fe && ce && (ke.length || O.value) && (Bt = y(De, {
|
|
1791
|
-
class: `${
|
|
1791
|
+
class: `${m}-clear`,
|
|
1792
1792
|
onMousedown: Qn,
|
|
1793
1793
|
customizeIcon: fe
|
|
1794
1794
|
}, {
|
|
@@ -1798,21 +1798,21 @@ const dl = se({
|
|
|
1798
1798
|
ref: w
|
|
1799
1799
|
}, C(C({}, d.customSlots), {
|
|
1800
1800
|
option: l.option
|
|
1801
|
-
})), Zn = re(
|
|
1802
|
-
[`${
|
|
1803
|
-
[`${
|
|
1804
|
-
[`${
|
|
1805
|
-
[`${
|
|
1806
|
-
[`${
|
|
1807
|
-
[`${
|
|
1808
|
-
[`${
|
|
1809
|
-
[`${
|
|
1810
|
-
[`${
|
|
1811
|
-
[`${
|
|
1801
|
+
})), Zn = re(m, o.class, {
|
|
1802
|
+
[`${m}-focused`]: S.value,
|
|
1803
|
+
[`${m}-multiple`]: a.value,
|
|
1804
|
+
[`${m}-single`]: !a.value,
|
|
1805
|
+
[`${m}-allow-clear`]: ce,
|
|
1806
|
+
[`${m}-show-arrow`]: Lt,
|
|
1807
|
+
[`${m}-disabled`]: Fe,
|
|
1808
|
+
[`${m}-loading`]: Ne,
|
|
1809
|
+
[`${m}-open`]: $.value,
|
|
1810
|
+
[`${m}-customize-input`]: At,
|
|
1811
|
+
[`${m}-show-search`]: u.value
|
|
1812
1812
|
}), _t = y(Ko, {
|
|
1813
|
-
ref:
|
|
1813
|
+
ref: f,
|
|
1814
1814
|
disabled: Fe,
|
|
1815
|
-
prefixCls:
|
|
1815
|
+
prefixCls: m,
|
|
1816
1816
|
visible: U.value,
|
|
1817
1817
|
popupElement: Jn,
|
|
1818
1818
|
containerWidth: pe.value,
|
|
@@ -1837,7 +1837,7 @@ const dl = se({
|
|
|
1837
1837
|
ref: i
|
|
1838
1838
|
}, !1, !0) : y(tl, W(W({}, e), {}, {
|
|
1839
1839
|
domRef: i,
|
|
1840
|
-
prefixCls:
|
|
1840
|
+
prefixCls: m,
|
|
1841
1841
|
inputElement: At,
|
|
1842
1842
|
ref: p,
|
|
1843
1843
|
id: A,
|
|
@@ -1911,9 +1911,9 @@ const dl = se({
|
|
|
1911
1911
|
}, [y(Ct, {
|
|
1912
1912
|
onResize: (i) => {
|
|
1913
1913
|
let {
|
|
1914
|
-
offsetHeight:
|
|
1914
|
+
offsetHeight: f
|
|
1915
1915
|
} = i;
|
|
1916
|
-
|
|
1916
|
+
f && a && a();
|
|
1917
1917
|
}
|
|
1918
1918
|
}, {
|
|
1919
1919
|
default: () => [y("div", {
|
|
@@ -2161,18 +2161,18 @@ function pl(e, n, o, t) {
|
|
|
2161
2161
|
}
|
|
2162
2162
|
function s() {
|
|
2163
2163
|
d(), r = Ie(() => {
|
|
2164
|
-
l.forEach((
|
|
2165
|
-
if (
|
|
2164
|
+
l.forEach((f, p) => {
|
|
2165
|
+
if (f && f.offsetParent) {
|
|
2166
2166
|
const {
|
|
2167
2167
|
offsetHeight: w
|
|
2168
|
-
} =
|
|
2169
|
-
a.get(p) !== w && (u.value = Symbol("update"), a.set(p,
|
|
2168
|
+
} = f;
|
|
2169
|
+
a.get(p) !== w && (u.value = Symbol("update"), a.set(p, f.offsetHeight));
|
|
2170
2170
|
}
|
|
2171
2171
|
});
|
|
2172
2172
|
});
|
|
2173
2173
|
}
|
|
2174
|
-
function i(
|
|
2175
|
-
const w = n(
|
|
2174
|
+
function i(f, p) {
|
|
2175
|
+
const w = n(f);
|
|
2176
2176
|
l.get(w), p ? (l.set(w, p.$el || p), s()) : l.delete(w);
|
|
2177
2177
|
}
|
|
2178
2178
|
return an(() => {
|
|
@@ -2187,7 +2187,7 @@ function vl(e, n, o, t, l, a, u, r) {
|
|
|
2187
2187
|
return;
|
|
2188
2188
|
}
|
|
2189
2189
|
Ie.cancel(d);
|
|
2190
|
-
const i = n.value,
|
|
2190
|
+
const i = n.value, f = t.itemHeight;
|
|
2191
2191
|
if (typeof s == "number")
|
|
2192
2192
|
u(s);
|
|
2193
2193
|
else if (s && typeof s == "object") {
|
|
@@ -2212,7 +2212,7 @@ function vl(e, n, o, t, l, a, u, r) {
|
|
|
2212
2212
|
const G = l(i[Q]);
|
|
2213
2213
|
$ = T;
|
|
2214
2214
|
const Y = o.get(G);
|
|
2215
|
-
F = $ + (Y === void 0 ?
|
|
2215
|
+
F = $ + (Y === void 0 ? f : Y), T = F, Q === p && Y === void 0 && (R = !0);
|
|
2216
2216
|
}
|
|
2217
2217
|
const U = e.value.scrollTop;
|
|
2218
2218
|
let z = null;
|
|
@@ -2258,18 +2258,18 @@ const gl = typeof navigator == "object" && /Firefox/i.test(navigator.userAgent),
|
|
|
2258
2258
|
function hl(e, n, o, t) {
|
|
2259
2259
|
let l = 0, a = null, u = null, r = !1;
|
|
2260
2260
|
const d = xn(n, o);
|
|
2261
|
-
function s(
|
|
2261
|
+
function s(f) {
|
|
2262
2262
|
if (!e.value) return;
|
|
2263
2263
|
Ie.cancel(a);
|
|
2264
2264
|
const {
|
|
2265
2265
|
deltaY: p
|
|
2266
|
-
} =
|
|
2267
|
-
l += p, u = p, !d(p) && (gl ||
|
|
2266
|
+
} = f;
|
|
2267
|
+
l += p, u = p, !d(p) && (gl || f.preventDefault(), a = Ie(() => {
|
|
2268
2268
|
t(l * (r ? 10 : 1)), l = 0;
|
|
2269
2269
|
}));
|
|
2270
2270
|
}
|
|
2271
|
-
function i(
|
|
2272
|
-
e.value && (r =
|
|
2271
|
+
function i(f) {
|
|
2272
|
+
e.value && (r = f.detail === u);
|
|
2273
2273
|
}
|
|
2274
2274
|
return [s, i];
|
|
2275
2275
|
}
|
|
@@ -2292,10 +2292,10 @@ function yl(e, n, o) {
|
|
|
2292
2292
|
r(), p.touches.length === 1 && !t && (t = !0, l = Math.ceil(p.touches[0].pageY), a = p.target, a.addEventListener("touchmove", d, {
|
|
2293
2293
|
passive: !1
|
|
2294
2294
|
}), a.addEventListener("touchend", s));
|
|
2295
|
-
},
|
|
2295
|
+
}, f = () => {
|
|
2296
2296
|
};
|
|
2297
2297
|
Ee(() => {
|
|
2298
|
-
document.addEventListener("touchmove",
|
|
2298
|
+
document.addEventListener("touchmove", f, {
|
|
2299
2299
|
passive: !1
|
|
2300
2300
|
}), ie(e, (p) => {
|
|
2301
2301
|
n.value.removeEventListener("touchstart", i), r(), clearInterval(u), p && n.value.addEventListener("touchstart", i, {
|
|
@@ -2305,7 +2305,7 @@ function yl(e, n, o) {
|
|
|
2305
2305
|
immediate: !0
|
|
2306
2306
|
});
|
|
2307
2307
|
}), Xe(() => {
|
|
2308
|
-
document.removeEventListener("touchmove",
|
|
2308
|
+
document.removeEventListener("touchmove", f);
|
|
2309
2309
|
});
|
|
2310
2310
|
}
|
|
2311
2311
|
var Sl = function(e, n) {
|
|
@@ -2326,9 +2326,9 @@ function Il(e, n, o, t, l, a) {
|
|
|
2326
2326
|
return e.slice(n, o + 1).map((r, d) => {
|
|
2327
2327
|
const s = n + d, i = l(r, s, {
|
|
2328
2328
|
// style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
|
|
2329
|
-
}),
|
|
2329
|
+
}), f = u(r);
|
|
2330
2330
|
return y(In, {
|
|
2331
|
-
key:
|
|
2331
|
+
key: f,
|
|
2332
2332
|
setRef: (p) => t(r, p)
|
|
2333
2333
|
}, {
|
|
2334
2334
|
default: () => [i]
|
|
@@ -2403,7 +2403,7 @@ const xl = se({
|
|
|
2403
2403
|
}, {
|
|
2404
2404
|
immediate: !0
|
|
2405
2405
|
});
|
|
2406
|
-
const s = X(), i = X(),
|
|
2406
|
+
const s = X(), i = X(), f = X(), p = (h) => d.value(h), w = {
|
|
2407
2407
|
getKey: p
|
|
2408
2408
|
};
|
|
2409
2409
|
function v(h) {
|
|
@@ -2455,8 +2455,8 @@ const xl = se({
|
|
|
2455
2455
|
height: me
|
|
2456
2456
|
} = e, pe = ue + me;
|
|
2457
2457
|
for (let b = 0; b < te; b += 1) {
|
|
2458
|
-
const c = oe[b],
|
|
2459
|
-
let A = x.get(
|
|
2458
|
+
const c = oe[b], m = p(c);
|
|
2459
|
+
let A = x.get(m);
|
|
2460
2460
|
A === void 0 && (A = ne);
|
|
2461
2461
|
const E = h + A;
|
|
2462
2462
|
H === void 0 && E >= ue && (H = b, j = h), B === void 0 && E > pe && (B = b), h = E;
|
|
@@ -2513,7 +2513,7 @@ const xl = se({
|
|
|
2513
2513
|
});
|
|
2514
2514
|
const L = vl(s, r, x, e, p, I, v, () => {
|
|
2515
2515
|
var h;
|
|
2516
|
-
(h =
|
|
2516
|
+
(h = f.value) === null || h === void 0 || h.delayHidden();
|
|
2517
2517
|
});
|
|
2518
2518
|
o({
|
|
2519
2519
|
scrollTo: L
|
|
@@ -2543,11 +2543,11 @@ const xl = se({
|
|
|
2543
2543
|
collectHeight: I,
|
|
2544
2544
|
setInstance: S,
|
|
2545
2545
|
sharedConfig: w,
|
|
2546
|
-
scrollBarRef:
|
|
2546
|
+
scrollBarRef: f,
|
|
2547
2547
|
fillerInnerRef: i,
|
|
2548
2548
|
delayHideScrollBar: () => {
|
|
2549
2549
|
var h;
|
|
2550
|
-
(h =
|
|
2550
|
+
(h = f.value) === null || h === void 0 || h.delayHidden();
|
|
2551
2551
|
}
|
|
2552
2552
|
};
|
|
2553
2553
|
},
|
|
@@ -2564,7 +2564,7 @@ const xl = se({
|
|
|
2564
2564
|
component: d = "div",
|
|
2565
2565
|
onScroll: s,
|
|
2566
2566
|
children: i = this.$slots.default,
|
|
2567
|
-
style:
|
|
2567
|
+
style: f,
|
|
2568
2568
|
class: p
|
|
2569
2569
|
} = e, w = Sl(e, ["prefixCls", "height", "itemHeight", "fullHeight", "data", "itemKey", "virtual", "component", "onScroll", "children", "style", "class"]), v = re(n, p), {
|
|
2570
2570
|
scrollTop: S
|
|
@@ -2585,7 +2585,7 @@ const xl = se({
|
|
|
2585
2585
|
delayHideScrollBar: Q
|
|
2586
2586
|
} = this;
|
|
2587
2587
|
return y("div", W({
|
|
2588
|
-
style: C(C({},
|
|
2588
|
+
style: C(C({}, f), {
|
|
2589
2589
|
position: "relative"
|
|
2590
2590
|
}),
|
|
2591
2591
|
class: v
|
|
@@ -2665,7 +2665,7 @@ const Pl = se({
|
|
|
2665
2665
|
d.current && d.current.scrollTo(typeof g == "number" ? {
|
|
2666
2666
|
index: g
|
|
2667
2667
|
} : g);
|
|
2668
|
-
},
|
|
2668
|
+
}, f = function(g) {
|
|
2669
2669
|
let T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
2670
2670
|
const $ = r.value.length;
|
|
2671
2671
|
for (let F = 0; F < $; F += 1) {
|
|
@@ -2678,7 +2678,7 @@ const Pl = se({
|
|
|
2678
2678
|
}
|
|
2679
2679
|
return -1;
|
|
2680
2680
|
}, p = Be({
|
|
2681
|
-
activeIndex:
|
|
2681
|
+
activeIndex: f(0)
|
|
2682
2682
|
}), w = function(g) {
|
|
2683
2683
|
let T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2684
2684
|
p.activeIndex = g;
|
|
@@ -2692,7 +2692,7 @@ const Pl = se({
|
|
|
2692
2692
|
a.onActiveValue(F.value, g, $);
|
|
2693
2693
|
};
|
|
2694
2694
|
ie([() => r.value.length, () => l.searchValue], () => {
|
|
2695
|
-
w(a.defaultActiveFirstOption !== !1 ?
|
|
2695
|
+
w(a.defaultActiveFirstOption !== !1 ? f(0) : -1);
|
|
2696
2696
|
}, {
|
|
2697
2697
|
immediate: !0
|
|
2698
2698
|
});
|
|
@@ -2752,7 +2752,7 @@ const Pl = se({
|
|
|
2752
2752
|
case K.DOWN: {
|
|
2753
2753
|
let F = 0;
|
|
2754
2754
|
if (T === K.UP ? F = -1 : T === K.DOWN ? F = 1 : $l() && $ && (T === K.N ? F = 1 : T === K.P && (F = -1)), F !== 0) {
|
|
2755
|
-
const V =
|
|
2755
|
+
const V = f(p.activeIndex + F, F);
|
|
2756
2756
|
i(V), w(V, !0);
|
|
2757
2757
|
}
|
|
2758
2758
|
break;
|
|
@@ -2833,7 +2833,7 @@ const Pl = se({
|
|
|
2833
2833
|
style: pe,
|
|
2834
2834
|
class: b,
|
|
2835
2835
|
className: c
|
|
2836
|
-
} = j,
|
|
2836
|
+
} = j, m = Ml(j, ["disabled", "title", "children", "style", "class", "className"]), A = tt(m, D), E = v(B), _ = `${u.value}-option`, q = re(u.value, _, b, c, {
|
|
2837
2837
|
[`${_}-grouped`]: H,
|
|
2838
2838
|
[`${_}-active`]: Y === k && !ue,
|
|
2839
2839
|
[`${_}-disabled`]: ue,
|
|
@@ -2845,10 +2845,10 @@ const Pl = se({
|
|
|
2845
2845
|
class: q,
|
|
2846
2846
|
title: ce,
|
|
2847
2847
|
onMousemove: (fe) => {
|
|
2848
|
-
|
|
2848
|
+
m.onMousemove && m.onMousemove(fe), !(Y === k || ue) && w(k);
|
|
2849
2849
|
},
|
|
2850
2850
|
onClick: (fe) => {
|
|
2851
|
-
ue || S(B),
|
|
2851
|
+
ue || S(B), m.onClick && m.onClick(fe);
|
|
2852
2852
|
},
|
|
2853
2853
|
style: pe
|
|
2854
2854
|
}), [y("div", {
|
|
@@ -2905,11 +2905,11 @@ function Tt(e) {
|
|
|
2905
2905
|
} = t;
|
|
2906
2906
|
if (n || !u)
|
|
2907
2907
|
return Dl(t);
|
|
2908
|
-
const i = d && d.default ? d.default() : void 0,
|
|
2908
|
+
const i = d && d.default ? d.default() : void 0, f = (s == null ? void 0 : s.label) || ((a = d.label) === null || a === void 0 ? void 0 : a.call(d)) || r;
|
|
2909
2909
|
return C(C({
|
|
2910
2910
|
key: `__RC_SELECT_GRP__${r === null ? l : String(r)}__`
|
|
2911
2911
|
}, s), {
|
|
2912
|
-
label:
|
|
2912
|
+
label: f,
|
|
2913
2913
|
options: Tt(i || [])
|
|
2914
2914
|
});
|
|
2915
2915
|
}).filter((t) => t);
|
|
@@ -2923,14 +2923,14 @@ function Fl(e, n, o) {
|
|
|
2923
2923
|
deep: !0
|
|
2924
2924
|
}), Te(() => {
|
|
2925
2925
|
const r = u.value, d = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i = o.value;
|
|
2926
|
-
function
|
|
2926
|
+
function f(p) {
|
|
2927
2927
|
let w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2928
2928
|
for (let v = 0; v < p.length; v += 1) {
|
|
2929
2929
|
const S = p[v];
|
|
2930
|
-
!S[i.options] || w ? (d.set(S[i.value], S), s.set(S[i.label], S)) :
|
|
2930
|
+
!S[i.options] || w ? (d.set(S[i.value], S), s.set(S[i.label], S)) : f(S[i.options], !0);
|
|
2931
2931
|
}
|
|
2932
2932
|
}
|
|
2933
|
-
|
|
2933
|
+
f(r), t.value = r, l.value = d, a.value = s;
|
|
2934
2934
|
}), {
|
|
2935
2935
|
options: t,
|
|
2936
2936
|
valueOptions: l,
|
|
@@ -2965,13 +2965,13 @@ function Hl(e) {
|
|
|
2965
2965
|
showSearch: d,
|
|
2966
2966
|
onSearch: s,
|
|
2967
2967
|
defaultOpen: i,
|
|
2968
|
-
autofocus:
|
|
2968
|
+
autofocus: f,
|
|
2969
2969
|
labelInValue: p,
|
|
2970
2970
|
value: w,
|
|
2971
2971
|
inputValue: v,
|
|
2972
2972
|
optionLabelProp: S
|
|
2973
2973
|
} = e, I = $t(n), x = d !== void 0 ? d : I || n === "combobox", M = o || Tt(t);
|
|
2974
|
-
if (we(n !== "tags" || M.every((R) => !R.disabled), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), we(n !== "combobox" || !S, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), we(n === "combobox" || !l, "`backfill` only works with `combobox` mode."), we(n === "combobox" || !r, "`getInputElement` only work with `combobox` mode."), Wt(n !== "combobox" || !r || !a || !u, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), s && !x && n !== "combobox" && n !== "tags" && we(!1, "`onSearch` should work with `showSearch` instead of use alone."), Wt(!i ||
|
|
2974
|
+
if (we(n !== "tags" || M.every((R) => !R.disabled), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), we(n !== "combobox" || !S, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), we(n === "combobox" || !l, "`backfill` only works with `combobox` mode."), we(n === "combobox" || !r, "`getInputElement` only work with `combobox` mode."), Wt(n !== "combobox" || !r || !a || !u, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), s && !x && n !== "combobox" && n !== "tags" && we(!1, "`onSearch` should work with `showSearch` instead of use alone."), Wt(!i || f, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."), w != null) {
|
|
2975
2975
|
const R = Et(w);
|
|
2976
2976
|
we(!p || R.every((O) => typeof O == "object" && ("key" in O || "value" in O)), "`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"), we(!I || Array.isArray(w), "`value` should be array when `mode` is `multiple` or `tags`");
|
|
2977
2977
|
}
|
|
@@ -2999,21 +2999,21 @@ const Bl = (e, n, o, t, l) => P(() => {
|
|
|
2999
2999
|
options: d,
|
|
3000
3000
|
label: s,
|
|
3001
3001
|
value: i
|
|
3002
|
-
} = n.value,
|
|
3002
|
+
} = n.value, f = [], p = typeof r == "function", w = a.toUpperCase(), v = p ? r : (I, x) => u ? dt(x[u], w) : x[d] ? dt(x[s !== "children" ? s : "label"], w) : dt(x[i], w), S = p ? (I) => gt(I) : (I) => I;
|
|
3003
3003
|
return e.value.forEach((I) => {
|
|
3004
3004
|
if (I[d]) {
|
|
3005
3005
|
if (v(a, S(I)))
|
|
3006
|
-
|
|
3006
|
+
f.push(I);
|
|
3007
3007
|
else {
|
|
3008
3008
|
const M = I[d].filter((R) => v(a, S(R)));
|
|
3009
|
-
M.length &&
|
|
3009
|
+
M.length && f.push(C(C({}, I), {
|
|
3010
3010
|
[d]: M
|
|
3011
3011
|
}));
|
|
3012
3012
|
}
|
|
3013
3013
|
return;
|
|
3014
3014
|
}
|
|
3015
|
-
v(a, S(I)) &&
|
|
3016
|
-
}),
|
|
3015
|
+
v(a, S(I)) && f.push(I);
|
|
3016
|
+
}), f;
|
|
3017
3017
|
}), _l = (e, n) => {
|
|
3018
3018
|
const o = X({
|
|
3019
3019
|
values: /* @__PURE__ */ new Map(),
|
|
@@ -3024,9 +3024,9 @@ const Bl = (e, n, o, t, l) => P(() => {
|
|
|
3024
3024
|
values: a,
|
|
3025
3025
|
options: u
|
|
3026
3026
|
} = o.value, r = e.value.map((i) => {
|
|
3027
|
-
var
|
|
3027
|
+
var f;
|
|
3028
3028
|
return i.label === void 0 ? C(C({}, i), {
|
|
3029
|
-
label: (
|
|
3029
|
+
label: (f = a.get(i.value)) === null || f === void 0 ? void 0 : f.label
|
|
3030
3030
|
}) : i;
|
|
3031
3031
|
}), d = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
3032
3032
|
return r.forEach((i) => {
|
|
@@ -3115,17 +3115,17 @@ const Wl = se({
|
|
|
3115
3115
|
attrs: t,
|
|
3116
3116
|
slots: l
|
|
3117
3117
|
} = n;
|
|
3118
|
-
const a = Vl(Oe(e, "id")), u = P(() => $t(e.mode)), r = P(() => !!(!e.options && e.children)), d = P(() => e.filterOption === void 0 && e.mode === "combobox" ? !1 : e.filterOption), s = P(() => pn(e.fieldNames, r.value)), [i,
|
|
3118
|
+
const a = Vl(Oe(e, "id")), u = P(() => $t(e.mode)), r = P(() => !!(!e.options && e.children)), d = P(() => e.filterOption === void 0 && e.mode === "combobox" ? !1 : e.filterOption), s = P(() => pn(e.fieldNames, r.value)), [i, f] = jt("", {
|
|
3119
3119
|
value: P(() => e.searchValue !== void 0 ? e.searchValue : e.inputValue),
|
|
3120
3120
|
postState: (b) => b || ""
|
|
3121
3121
|
}), p = Fl(Oe(e, "options"), Oe(e, "children"), s), {
|
|
3122
3122
|
valueOptions: w,
|
|
3123
3123
|
labelOptions: v,
|
|
3124
3124
|
options: S
|
|
3125
|
-
} = p, I = (b) => Et(b).map((
|
|
3125
|
+
} = p, I = (b) => Et(b).map((m) => {
|
|
3126
3126
|
var A, E;
|
|
3127
3127
|
let _, q, J, le;
|
|
3128
|
-
Kl(
|
|
3128
|
+
Kl(m) ? _ = m : (J = m.key, q = m.label, _ = (A = m.value) !== null && A !== void 0 ? A : J);
|
|
3129
3129
|
const Z = w.value.get(_);
|
|
3130
3130
|
return Z && (q === void 0 && (q = Z == null ? void 0 : Z[e.optionLabelProp || s.value.label]), J === void 0 && (J = (E = Z == null ? void 0 : Z.key) !== null && E !== void 0 ? E : _), le = Z == null ? void 0 : Z.disabled), {
|
|
3131
3131
|
label: q,
|
|
@@ -3157,16 +3157,16 @@ const Wl = se({
|
|
|
3157
3157
|
var b;
|
|
3158
3158
|
if (e.mode === "combobox") {
|
|
3159
3159
|
const c = (b = O.value[0]) === null || b === void 0 ? void 0 : b.value;
|
|
3160
|
-
c != null &&
|
|
3160
|
+
c != null && f(String(c));
|
|
3161
3161
|
}
|
|
3162
3162
|
}, {
|
|
3163
3163
|
flush: "post"
|
|
3164
3164
|
});
|
|
3165
3165
|
const F = (b, c) => {
|
|
3166
|
-
const
|
|
3166
|
+
const m = c ?? b;
|
|
3167
3167
|
return {
|
|
3168
3168
|
[s.value.value]: b,
|
|
3169
|
-
[s.value.label]:
|
|
3169
|
+
[s.value.label]: m
|
|
3170
3170
|
};
|
|
3171
3171
|
}, V = X();
|
|
3172
3172
|
Te(() => {
|
|
@@ -3174,10 +3174,10 @@ const Wl = se({
|
|
|
3174
3174
|
V.value = S.value;
|
|
3175
3175
|
return;
|
|
3176
3176
|
}
|
|
3177
|
-
const b = S.value.slice(), c = (
|
|
3178
|
-
[...O.value].sort((
|
|
3179
|
-
const A =
|
|
3180
|
-
c(A) || b.push(F(A,
|
|
3177
|
+
const b = S.value.slice(), c = (m) => w.value.has(m);
|
|
3178
|
+
[...O.value].sort((m, A) => m.value < A.value ? -1 : 1).forEach((m) => {
|
|
3179
|
+
const A = m.value;
|
|
3180
|
+
c(A) || b.push(F(A, m.label));
|
|
3181
3181
|
}), V.value = b;
|
|
3182
3182
|
});
|
|
3183
3183
|
const U = Bl(V, s, i, d, Oe(e, "optionFilterProp")), z = P(() => e.mode !== "tags" || !i.value || U.value.some((b) => b[e.optionFilterProp || "value"] === i.value) ? U.value : [F(i.value), ...U.value]), Q = P(() => e.filterSort ? [...z.value].sort((b, c) => e.filterSort(b, c)) : z.value), G = P(() => Ho(Q.value, {
|
|
@@ -3186,28 +3186,28 @@ const Wl = se({
|
|
|
3186
3186
|
})), Y = (b) => {
|
|
3187
3187
|
const c = I(b);
|
|
3188
3188
|
if (M(c), e.onChange && // Trigger event only when value changed
|
|
3189
|
-
(c.length !== O.value.length || c.some((
|
|
3189
|
+
(c.length !== O.value.length || c.some((m, A) => {
|
|
3190
3190
|
var E;
|
|
3191
|
-
return ((E = O.value[A]) === null || E === void 0 ? void 0 : E.value) !== (
|
|
3191
|
+
return ((E = O.value[A]) === null || E === void 0 ? void 0 : E.value) !== (m == null ? void 0 : m.value);
|
|
3192
3192
|
}))) {
|
|
3193
|
-
const
|
|
3193
|
+
const m = e.labelInValue ? c.map((E) => C(C({}, E), {
|
|
3194
3194
|
originLabel: E.label,
|
|
3195
3195
|
label: typeof E.label == "function" ? E.label() : E.label
|
|
3196
3196
|
})) : c.map((E) => E.value), A = c.map((E) => gt(g(E.value)));
|
|
3197
3197
|
e.onChange(
|
|
3198
3198
|
// Value
|
|
3199
|
-
u.value ?
|
|
3199
|
+
u.value ? m : m[0],
|
|
3200
3200
|
// Option
|
|
3201
3201
|
u.value ? A : A[0]
|
|
3202
3202
|
);
|
|
3203
3203
|
}
|
|
3204
3204
|
}, [D, L] = Ut(null), [k, ee] = Ut(0), h = P(() => e.defaultActiveFirstOption !== void 0 ? e.defaultActiveFirstOption : e.mode !== "combobox"), H = function(b, c) {
|
|
3205
3205
|
let {
|
|
3206
|
-
source:
|
|
3206
|
+
source: m = "keyboard"
|
|
3207
3207
|
} = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3208
|
-
ee(c), e.backfill && e.mode === "combobox" && b !== null &&
|
|
3208
|
+
ee(c), e.backfill && e.mode === "combobox" && b !== null && m === "keyboard" && L(String(b));
|
|
3209
3209
|
}, j = (b, c) => {
|
|
3210
|
-
const
|
|
3210
|
+
const m = () => {
|
|
3211
3211
|
var A;
|
|
3212
3212
|
const E = g(b), _ = E == null ? void 0 : E[s.value.label];
|
|
3213
3213
|
return [e.labelInValue ? {
|
|
@@ -3218,39 +3218,39 @@ const Wl = se({
|
|
|
3218
3218
|
} : b, gt(E)];
|
|
3219
3219
|
};
|
|
3220
3220
|
if (c && e.onSelect) {
|
|
3221
|
-
const [A, E] =
|
|
3221
|
+
const [A, E] = m();
|
|
3222
3222
|
e.onSelect(A, E);
|
|
3223
3223
|
} else if (!c && e.onDeselect) {
|
|
3224
|
-
const [A, E] =
|
|
3224
|
+
const [A, E] = m();
|
|
3225
3225
|
e.onDeselect(A, E);
|
|
3226
3226
|
}
|
|
3227
3227
|
}, B = (b, c) => {
|
|
3228
|
-
let
|
|
3228
|
+
let m;
|
|
3229
3229
|
const A = u.value ? c.selected : !0;
|
|
3230
|
-
A ?
|
|
3230
|
+
A ? m = u.value ? [...O.value, b] : [b] : m = O.value.filter((E) => E.value !== b), Y(m), j(b, A), e.mode === "combobox" ? L("") : (!u.value || e.autoClearSearchValue) && (f(""), L(""));
|
|
3231
3231
|
}, te = (b, c) => {
|
|
3232
|
-
Y(b), (c.type === "remove" || c.type === "clear") && c.values.forEach((
|
|
3233
|
-
j(
|
|
3232
|
+
Y(b), (c.type === "remove" || c.type === "clear") && c.values.forEach((m) => {
|
|
3233
|
+
j(m.value, !1);
|
|
3234
3234
|
});
|
|
3235
3235
|
}, oe = (b, c) => {
|
|
3236
|
-
var
|
|
3237
|
-
if (
|
|
3236
|
+
var m;
|
|
3237
|
+
if (f(b), L(null), c.source === "submit") {
|
|
3238
3238
|
const A = (b || "").trim();
|
|
3239
3239
|
if (A) {
|
|
3240
3240
|
const E = Array.from(/* @__PURE__ */ new Set([...$.value, A]));
|
|
3241
|
-
Y(E), j(A, !0),
|
|
3241
|
+
Y(E), j(A, !0), f("");
|
|
3242
3242
|
}
|
|
3243
3243
|
return;
|
|
3244
3244
|
}
|
|
3245
|
-
c.source !== "blur" && (e.mode === "combobox" && Y(b), (
|
|
3245
|
+
c.source !== "blur" && (e.mode === "combobox" && Y(b), (m = e.onSearch) === null || m === void 0 || m.call(e, b));
|
|
3246
3246
|
}, ue = (b) => {
|
|
3247
3247
|
let c = b;
|
|
3248
3248
|
e.mode !== "tags" && (c = b.map((A) => {
|
|
3249
3249
|
const E = v.value.get(A);
|
|
3250
3250
|
return E == null ? void 0 : E.value;
|
|
3251
3251
|
}).filter((A) => A !== void 0));
|
|
3252
|
-
const
|
|
3253
|
-
Y(
|
|
3252
|
+
const m = Array.from(/* @__PURE__ */ new Set([...$.value, ...c]));
|
|
3253
|
+
Y(m), m.forEach((A) => {
|
|
3254
3254
|
j(A, !0);
|
|
3255
3255
|
});
|
|
3256
3256
|
}, ne = P(() => e.virtual !== !1 && e.dropdownMatchSelectWidth !== !1);
|
|
@@ -3398,7 +3398,7 @@ function Gl(e) {
|
|
|
3398
3398
|
hasFeedback: a,
|
|
3399
3399
|
feedbackIcon: u,
|
|
3400
3400
|
showArrow: r
|
|
3401
|
-
} = e, d = e.suffixIcon || n.suffixIcon && n.suffixIcon(), s = e.clearIcon || n.clearIcon && n.clearIcon(), i = e.menuItemSelectedIcon || n.menuItemSelectedIcon && n.menuItemSelectedIcon(),
|
|
3401
|
+
} = e, d = e.suffixIcon || n.suffixIcon && n.suffixIcon(), s = e.clearIcon || n.clearIcon && n.clearIcon(), i = e.menuItemSelectedIcon || n.menuItemSelectedIcon && n.menuItemSelectedIcon(), f = e.removeIcon || n.removeIcon && n.removeIcon(), p = s ?? y(uo, null, null), w = (x) => y(He, null, [r !== !1 && x, a && u]);
|
|
3402
3402
|
let v = null;
|
|
3403
3403
|
if (d !== void 0)
|
|
3404
3404
|
v = w(d);
|
|
@@ -3423,7 +3423,7 @@ function Gl(e) {
|
|
|
3423
3423
|
let S = null;
|
|
3424
3424
|
i !== void 0 ? S = i : t ? S = y(Dt, null, null) : S = null;
|
|
3425
3425
|
let I = null;
|
|
3426
|
-
return
|
|
3426
|
+
return f !== void 0 ? I = f : I = y(cn, null, null), {
|
|
3427
3427
|
clearIcon: p,
|
|
3428
3428
|
suffixIcon: v,
|
|
3429
3429
|
itemIcon: S,
|
|
@@ -4437,7 +4437,7 @@ const fa = (e) => {
|
|
|
4437
4437
|
const u = he(), r = Do(), d = Fo.useInject(), s = P(() => No(d.status, e.status)), i = () => {
|
|
4438
4438
|
var B;
|
|
4439
4439
|
(B = u.value) === null || B === void 0 || B.focus();
|
|
4440
|
-
},
|
|
4440
|
+
}, f = () => {
|
|
4441
4441
|
var B;
|
|
4442
4442
|
(B = u.value) === null || B === void 0 || B.blur();
|
|
4443
4443
|
}, p = (B) => {
|
|
@@ -4481,7 +4481,7 @@ const fa = (e) => {
|
|
|
4481
4481
|
t("blur", B), r.onFieldBlur();
|
|
4482
4482
|
};
|
|
4483
4483
|
a({
|
|
4484
|
-
blur:
|
|
4484
|
+
blur: f,
|
|
4485
4485
|
focus: i,
|
|
4486
4486
|
scrollTo: p
|
|
4487
4487
|
});
|
|
@@ -4494,7 +4494,7 @@ const fa = (e) => {
|
|
|
4494
4494
|
listItemHeight: pe = 24,
|
|
4495
4495
|
popupClassName: b,
|
|
4496
4496
|
dropdownClassName: c,
|
|
4497
|
-
virtual:
|
|
4497
|
+
virtual: m,
|
|
4498
4498
|
dropdownMatchSelectWidth: A,
|
|
4499
4499
|
id: E = r.id.value,
|
|
4500
4500
|
placeholder: _ = (B = l.placeholder) === null || B === void 0 ? void 0 : B.call(l),
|
|
@@ -4523,7 +4523,7 @@ const fa = (e) => {
|
|
|
4523
4523
|
}, G.value);
|
|
4524
4524
|
return Q(y(Wl, W(W(W({
|
|
4525
4525
|
ref: u,
|
|
4526
|
-
virtual:
|
|
4526
|
+
virtual: m,
|
|
4527
4527
|
dropdownMatchSelectWidth: A
|
|
4528
4528
|
}, Fe), o), {}, {
|
|
4529
4529
|
showSearch: (te = e.showSearch) !== null && te !== void 0 ? te : (oe = T == null ? void 0 : T.value) === null || oe === void 0 ? void 0 : oe.showSearch,
|
|
@@ -4725,9 +4725,9 @@ const Je = (e, n, o) => {
|
|
|
4725
4725
|
prefixCls: a
|
|
4726
4726
|
} = wt("tag", e), [u, r] = Dn(a), d = (i) => {
|
|
4727
4727
|
const {
|
|
4728
|
-
checked:
|
|
4728
|
+
checked: f
|
|
4729
4729
|
} = e;
|
|
4730
|
-
t("update:checked", !
|
|
4730
|
+
t("update:checked", !f), t("change", !f), t("click", i);
|
|
4731
4731
|
}, s = P(() => re(a.value, r.value, {
|
|
4732
4732
|
[`${a.value}-checkable`]: !0,
|
|
4733
4733
|
[`${a.value}-checkable-checked`]: e.checked
|
|
@@ -4789,9 +4789,9 @@ const Je = (e, n, o) => {
|
|
|
4789
4789
|
});
|
|
4790
4790
|
const i = (v) => {
|
|
4791
4791
|
v.stopPropagation(), t("update:visible", !1), t("close", v), !v.defaultPrevented && e.visible === void 0 && (s.value = !1);
|
|
4792
|
-
},
|
|
4793
|
-
[`${a.value}-${e.color}`]:
|
|
4794
|
-
[`${a.value}-has-color`]: e.color && !
|
|
4792
|
+
}, f = P(() => xo(e.color) || Oo(e.color)), p = P(() => re(a.value, d.value, {
|
|
4793
|
+
[`${a.value}-${e.color}`]: f.value,
|
|
4794
|
+
[`${a.value}-has-color`]: e.color && !f.value,
|
|
4795
4795
|
[`${a.value}-hidden`]: !s.value,
|
|
4796
4796
|
[`${a.value}-rtl`]: u.value === "rtl",
|
|
4797
4797
|
[`${a.value}-borderless`]: !e.bordered
|
|
@@ -4812,7 +4812,7 @@ const Je = (e, n, o) => {
|
|
|
4812
4812
|
class: `${a.value}-close-icon`,
|
|
4813
4813
|
onClick: i
|
|
4814
4814
|
}, null) : null, T = {
|
|
4815
|
-
backgroundColor: M && !
|
|
4815
|
+
backgroundColor: M && !f.value ? M : void 0
|
|
4816
4816
|
}, $ = x || null, F = (I = o.default) === null || I === void 0 ? void 0 : I.call(o), V = $ ? y(He, null, [$, y("span", null, [F])]) : F, U = e.onClick !== void 0, z = y("span", W(W({}, l), {}, {
|
|
4817
4817
|
onClick: w,
|
|
4818
4818
|
class: [p.value, l.class],
|
|
@@ -4873,15 +4873,15 @@ const Ca = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAA
|
|
|
4873
4873
|
L1: "SIXTY_DAYS",
|
|
4874
4874
|
L2: "THIRTY_DAYS",
|
|
4875
4875
|
L3: "SEVEN_DAYS"
|
|
4876
|
-
}, { relatedDepartmentIds:
|
|
4877
|
-
return
|
|
4876
|
+
}, { relatedDepartmentIds: f = [], curDepartmentId: p = 0, securityLevel: w } = s;
|
|
4877
|
+
return f != null && f.includes(p) ? s.validTime = "NINETY_DAYS" : s.validTime = i[w], s.validTime;
|
|
4878
4878
|
}, r = (s) => {
|
|
4879
4879
|
o.item.validTime = s, o.onChangeTime();
|
|
4880
4880
|
}, d = (s) => {
|
|
4881
4881
|
s.target.checked && (a.value = u(o.item));
|
|
4882
4882
|
};
|
|
4883
4883
|
return (s, i) => {
|
|
4884
|
-
var
|
|
4884
|
+
var f;
|
|
4885
4885
|
return ye(), qe("div", Ia, [
|
|
4886
4886
|
y(ae(Vo), {
|
|
4887
4887
|
value: e.item.roleId,
|
|
@@ -4955,7 +4955,7 @@ const Ca = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAA
|
|
|
4955
4955
|
]),
|
|
4956
4956
|
_: 1
|
|
4957
4957
|
})) : Ae("", !0),
|
|
4958
|
-
(
|
|
4958
|
+
(f = e.item.relatedCompleteNames) != null && f.length ? (ye(), ze(ae(Qe), { key: 1 }, {
|
|
4959
4959
|
content: ge(() => [
|
|
4960
4960
|
Se("div", Pa, ve(ae(Ce)("adaptDepartment")) + ":" + ve(e.item.relatedCompleteNames.map((p) => p).join("、")), 1)
|
|
4961
4961
|
]),
|
|
@@ -4985,7 +4985,7 @@ const Ca = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAA
|
|
|
4985
4985
|
]);
|
|
4986
4986
|
};
|
|
4987
4987
|
}
|
|
4988
|
-
}), Ga = /* @__PURE__ */ Mo(Aa, [["__scopeId", "data-v-
|
|
4988
|
+
}), Ga = /* @__PURE__ */ Mo(Aa, [["__scopeId", "data-v-a3286223"]]);
|
|
4989
4989
|
export {
|
|
4990
4990
|
Ga as default
|
|
4991
4991
|
};
|