bkui-vue 2.0.1-beta.115 → 2.0.1-beta.116
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/index.cjs.js +7 -7
- package/dist/index.esm.js +81 -78
- package/dist/index.umd.js +23 -23
- package/lib/index.js +1 -1
- package/lib/modal/index.js +3 -0
- package/lib/sideslider/index.js +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -196,7 +196,7 @@ function j2(e, t) {
|
|
196
196
|
}
|
197
197
|
return !1;
|
198
198
|
}
|
199
|
-
function
|
199
|
+
function Fn(e) {
|
200
200
|
return Bt(e).getComputedStyle(e);
|
201
201
|
}
|
202
202
|
function E9(e) {
|
@@ -222,18 +222,18 @@ function cl(e) {
|
|
222
222
|
}
|
223
223
|
function kd(e) {
|
224
224
|
return !Xt(e) || // https://github.com/popperjs/popper-core/issues/837
|
225
|
-
|
225
|
+
Fn(e).position === "fixed" ? null : e.offsetParent;
|
226
226
|
}
|
227
227
|
function L9(e) {
|
228
228
|
var t = /firefox/i.test(Xo()), n = /Trident/i.test(Xo());
|
229
229
|
if (n && Xt(e)) {
|
230
|
-
var s =
|
230
|
+
var s = Fn(e);
|
231
231
|
if (s.position === "fixed")
|
232
232
|
return null;
|
233
233
|
}
|
234
234
|
var a = cl(e);
|
235
235
|
for (Gc(a) && (a = a.host); Xt(a) && ["html", "body"].indexOf($n(a)) < 0; ) {
|
236
|
-
var r =
|
236
|
+
var r = Fn(a);
|
237
237
|
if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || t && r.willChange === "filter" || t && r.filter && r.filter !== "none")
|
238
238
|
return a;
|
239
239
|
a = a.parentNode;
|
@@ -241,9 +241,9 @@ function L9(e) {
|
|
241
241
|
return null;
|
242
242
|
}
|
243
243
|
function Cr(e) {
|
244
|
-
for (var t = Bt(e), n = kd(e); n && E9(n) &&
|
244
|
+
for (var t = Bt(e), n = kd(e); n && E9(n) && Fn(n).position === "static"; )
|
245
245
|
n = kd(n);
|
246
|
-
return n && ($n(n) === "html" || $n(n) === "body" &&
|
246
|
+
return n && ($n(n) === "html" || $n(n) === "body" && Fn(n).position === "static") ? t : n || L9(e) || t;
|
247
247
|
}
|
248
248
|
function Yc(e) {
|
249
249
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
@@ -324,7 +324,7 @@ function Dd(e) {
|
|
324
324
|
var p = i.hasOwnProperty("x"), x = i.hasOwnProperty("y"), w = Mt, C = Dt, T = window;
|
325
325
|
if (d) {
|
326
326
|
var S = Cr(n), $ = "clientHeight", _ = "clientWidth";
|
327
|
-
if (S === Bt(n) && (S = os(n),
|
327
|
+
if (S === Bt(n) && (S = os(n), Fn(S).position !== "static" && l === "absolute" && ($ = "scrollHeight", _ = "scrollWidth")), S = S, a === Dt || (a === Mt || a === Jt) && r === lr) {
|
328
328
|
C = qt;
|
329
329
|
var L = c && S === T && T.visualViewport ? T.visualViewport.height : (
|
330
330
|
// $FlowFixMe[prop-missing]
|
@@ -454,7 +454,7 @@ function j9(e, t) {
|
|
454
454
|
}
|
455
455
|
function U9(e) {
|
456
456
|
var t, n = os(e), s = Xc(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, r = Os(n.scrollWidth, n.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), i = Os(n.scrollHeight, n.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), l = -s.scrollLeft + qc(e), o = -s.scrollTop;
|
457
|
-
return
|
457
|
+
return Fn(a || n).direction === "rtl" && (l += Os(n.clientWidth, a ? a.clientWidth : 0) - r), {
|
458
458
|
width: r,
|
459
459
|
height: i,
|
460
460
|
x: l,
|
@@ -462,7 +462,7 @@ function U9(e) {
|
|
462
462
|
};
|
463
463
|
}
|
464
464
|
function Jc(e) {
|
465
|
-
var t =
|
465
|
+
var t = Fn(e), n = t.overflow, s = t.overflowX, a = t.overflowY;
|
466
466
|
return /auto|scroll|overlay|hidden/.test(n + a + s);
|
467
467
|
}
|
468
468
|
function K2(e) {
|
@@ -493,7 +493,7 @@ function Id(e, t, n) {
|
|
493
493
|
return t === V2 ? qo(j9(e, n)) : $s(t) ? W9(t, n) : qo(U9(os(e)));
|
494
494
|
}
|
495
495
|
function G9(e) {
|
496
|
-
var t = er(cl(e)), n = ["absolute", "fixed"].indexOf(
|
496
|
+
var t = er(cl(e)), n = ["absolute", "fixed"].indexOf(Fn(e).position) >= 0, s = n && Xt(e) ? Cr(e) : e;
|
497
497
|
return $s(s) ? t.filter(function(a) {
|
498
498
|
return $s(a) && j2(a, s) && $n(a) !== "body";
|
499
499
|
}) : [];
|
@@ -1897,7 +1897,7 @@ class K4 {
|
|
1897
1897
|
this.storageLayerIndexValue = Object.create(Eo, t);
|
1898
1898
|
}
|
1899
1899
|
}
|
1900
|
-
const
|
1900
|
+
const Vn = new K4(), Y4 = function() {
|
1901
1901
|
const e = {
|
1902
1902
|
cancelToken: 0
|
1903
1903
|
}, t = () => {
|
@@ -4098,7 +4098,7 @@ const Ib = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4098
4098
|
setup(e, {
|
4099
4099
|
slots: t
|
4100
4100
|
}) {
|
4101
|
-
const n = P(null), s = P(null), a = P(!1), r = P(
|
4101
|
+
const n = P(null), s = P(null), a = P(!1), r = P(Vn.getModalNextIndex()), i = `${e.bottom}px`, l = `${e.right}px`, o = wa(() => {
|
4102
4102
|
a.value = s.value.scrollTop >= e.visibilityHeight;
|
4103
4103
|
}, 30), d = () => {
|
4104
4104
|
s.value.scrollTo({
|
@@ -4107,7 +4107,7 @@ const Ib = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4107
4107
|
});
|
4108
4108
|
};
|
4109
4109
|
he(() => a, () => {
|
4110
|
-
r.value =
|
4110
|
+
r.value = Vn.getModalNextIndex();
|
4111
4111
|
}), Re(() => {
|
4112
4112
|
if (n.value = document, s.value = document.documentElement, e.target) {
|
4113
4113
|
if (s.value = document.querySelector(e.target), !s.value)
|
@@ -5498,7 +5498,7 @@ function Y3(e) {
|
|
5498
5498
|
function jn(e) {
|
5499
5499
|
return e instanceof Element || e instanceof Vt(e).Element;
|
5500
5500
|
}
|
5501
|
-
function
|
5501
|
+
function An(e) {
|
5502
5502
|
return e instanceof HTMLElement || e instanceof Vt(e).HTMLElement;
|
5503
5503
|
}
|
5504
5504
|
function _0(e) {
|
@@ -5522,7 +5522,7 @@ function Gu(e) {
|
|
5522
5522
|
}
|
5523
5523
|
function Nw(e) {
|
5524
5524
|
let t = pa(e);
|
5525
|
-
for (;
|
5525
|
+
for (; An(t) && !no(t); ) {
|
5526
5526
|
if (Gu(t))
|
5527
5527
|
return t;
|
5528
5528
|
t = pa(t);
|
@@ -5561,7 +5561,7 @@ function pa(e) {
|
|
5561
5561
|
}
|
5562
5562
|
function X3(e) {
|
5563
5563
|
const t = pa(e);
|
5564
|
-
return no(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
5564
|
+
return no(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : An(t) && Hr(t) ? t : X3(t);
|
5565
5565
|
}
|
5566
5566
|
function vr(e, t, n) {
|
5567
5567
|
var s;
|
@@ -5572,7 +5572,7 @@ function vr(e, t, n) {
|
|
5572
5572
|
function q3(e) {
|
5573
5573
|
const t = Zt(e);
|
5574
5574
|
let n = parseFloat(t.width) || 0, s = parseFloat(t.height) || 0;
|
5575
|
-
const a =
|
5575
|
+
const a = An(e), r = a ? e.offsetWidth : n, i = a ? e.offsetHeight : s, l = Fi(n) !== r || Fi(s) !== i;
|
5576
5576
|
return l && (n = r, s = i), {
|
5577
5577
|
width: n,
|
5578
5578
|
height: s,
|
@@ -5584,7 +5584,7 @@ function Yu(e) {
|
|
5584
5584
|
}
|
5585
5585
|
function Qs(e) {
|
5586
5586
|
const t = Yu(e);
|
5587
|
-
if (!
|
5587
|
+
if (!An(t))
|
5588
5588
|
return is(1);
|
5589
5589
|
const n = t.getBoundingClientRect(), {
|
5590
5590
|
width: s,
|
@@ -5636,7 +5636,7 @@ function $w(e) {
|
|
5636
5636
|
offsetParent: n,
|
5637
5637
|
strategy: s
|
5638
5638
|
} = e;
|
5639
|
-
const a =
|
5639
|
+
const a = An(n), r = Wn(n);
|
5640
5640
|
if (n === r)
|
5641
5641
|
return t;
|
5642
5642
|
let i = {
|
@@ -5644,7 +5644,7 @@ function $w(e) {
|
|
5644
5644
|
scrollTop: 0
|
5645
5645
|
}, l = is(1);
|
5646
5646
|
const o = is(0);
|
5647
|
-
if ((a || !a && s !== "fixed") && ((ls(n) !== "body" || Hr(r)) && (i = so(n)),
|
5647
|
+
if ((a || !a && s !== "fixed") && ((ls(n) !== "body" || Hr(r)) && (i = so(n)), An(n))) {
|
5648
5648
|
const d = ks(n);
|
5649
5649
|
l = Qs(n), o.x = d.x + n.clientLeft, o.y = d.y + n.clientTop;
|
5650
5650
|
}
|
@@ -5688,7 +5688,7 @@ function Dw(e, t) {
|
|
5688
5688
|
};
|
5689
5689
|
}
|
5690
5690
|
function Mw(e, t) {
|
5691
|
-
const n = ks(e, !0, t === "fixed"), s = n.top + e.clientTop, a = n.left + e.clientLeft, r =
|
5691
|
+
const n = ks(e, !0, t === "fixed"), s = n.top + e.clientTop, a = n.left + e.clientLeft, r = An(e) ? Qs(e) : is(1), i = e.clientWidth * r.x, l = e.clientHeight * r.y, o = a * r.x, d = s * r.y;
|
5692
5692
|
return {
|
5693
5693
|
width: i,
|
5694
5694
|
height: l,
|
@@ -5760,7 +5760,7 @@ function Rw(e) {
|
|
5760
5760
|
};
|
5761
5761
|
}
|
5762
5762
|
function Hw(e, t, n) {
|
5763
|
-
const s =
|
5763
|
+
const s = An(t), a = Wn(t), r = n === "fixed", i = ks(e, !0, r, t);
|
5764
5764
|
let l = {
|
5765
5765
|
scrollLeft: 0,
|
5766
5766
|
scrollTop: 0
|
@@ -5779,11 +5779,11 @@ function Hw(e, t, n) {
|
|
5779
5779
|
};
|
5780
5780
|
}
|
5781
5781
|
function N0(e, t) {
|
5782
|
-
return !
|
5782
|
+
return !An(e) || Zt(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
5783
5783
|
}
|
5784
5784
|
function eh(e, t) {
|
5785
5785
|
const n = Vt(e);
|
5786
|
-
if (!
|
5786
|
+
if (!An(e))
|
5787
5787
|
return n;
|
5788
5788
|
let s = N0(e, t);
|
5789
5789
|
for (; s && Ow(s) && Zt(s).position === "static"; )
|
@@ -6133,7 +6133,7 @@ const L0 = /* @__PURE__ */ pt(vC), Ao = {}, tc = {}, nc = (e) => document.queryS
|
|
6133
6133
|
}, V = () => {
|
6134
6134
|
var ae;
|
6135
6135
|
const B = x((ae = s.value) == null ? void 0 : ae.$el);
|
6136
|
-
B.style.setProperty("display", "block"), B.style.setProperty("z-index", `${e.zIndex ? e.zIndex :
|
6136
|
+
B.style.setProperty("display", "block"), B.style.setProperty("z-index", `${e.zIndex ? e.zIndex : Vn.getPopperIndex()}`), O(), t.emit(yn.CONTENT_AfterShow, {
|
6137
6137
|
isShow: !0
|
6138
6138
|
});
|
6139
6139
|
}, A = () => {
|
@@ -6834,7 +6834,7 @@ const kC = /* @__PURE__ */ pt(AC), DC = typeof navigator < "u" && navigator.user
|
|
6834
6834
|
beforeMount(e, t) {
|
6835
6835
|
MC(e, t.value);
|
6836
6836
|
}
|
6837
|
-
},
|
6837
|
+
}, Rn = /* @__PURE__ */ new WeakMap(), Gn = {
|
6838
6838
|
beforeMount(e, t) {
|
6839
6839
|
const n = P0(t), { trigger: s, showOnInit: a } = n, r = PC(n);
|
6840
6840
|
let i = null;
|
@@ -6864,17 +6864,17 @@ const kC = /* @__PURE__ */ pt(AC), DC = typeof navigator < "u" && navigator.user
|
|
6864
6864
|
ko(e), clearTimeout(i);
|
6865
6865
|
}, n.delay) : r.hasAttribute("data-show") && Ra(e);
|
6866
6866
|
});
|
6867
|
-
|
6867
|
+
Rn.set(e, {
|
6868
6868
|
opts: n,
|
6869
6869
|
popper: r,
|
6870
6870
|
popperInstance: null
|
6871
6871
|
});
|
6872
6872
|
},
|
6873
6873
|
updated(e, t) {
|
6874
|
-
|
6874
|
+
Rn.get(e) && (Rn.get(e).opts = P0(t));
|
6875
6875
|
},
|
6876
6876
|
unmounted(e) {
|
6877
|
-
Ra(e),
|
6877
|
+
Ra(e), Rn.delete(e);
|
6878
6878
|
}
|
6879
6879
|
};
|
6880
6880
|
function IC() {
|
@@ -6909,7 +6909,7 @@ function dh(e, t) {
|
|
6909
6909
|
}
|
6910
6910
|
}
|
6911
6911
|
function PC(e) {
|
6912
|
-
const { content: t, arrow: n, theme: s, extCls: a } = e, r = s === "light", i =
|
6912
|
+
const { content: t, arrow: n, theme: s, extCls: a } = e, r = s === "light", i = Vn.getPopperIndex(), l = document.createElement("div"), o = document.documentElement.style.getPropertyValue("--bk-prefix") || "bk";
|
6913
6913
|
if (l.className = `${Ii("popper", o)} ${r ? "light" : "dark"} ${a}`, l.innerText = t, l.style.zIndex = String(i), dh(t, l), n) {
|
6914
6914
|
const d = fh();
|
6915
6915
|
l.appendChild(d);
|
@@ -6921,7 +6921,7 @@ function fh() {
|
|
6921
6921
|
return e.className = Ii("popper-arrow", t), e.setAttribute("data-popper-arrow", ""), e;
|
6922
6922
|
}
|
6923
6923
|
function RC(e, t) {
|
6924
|
-
const { opts: n } =
|
6924
|
+
const { opts: n } = Rn.get(e), { placement: s, distance: a, sameWidth: r } = n;
|
6925
6925
|
return X2(e, t, {
|
6926
6926
|
placement: s,
|
6927
6927
|
modifiers: [
|
@@ -6955,7 +6955,7 @@ function RC(e, t) {
|
|
6955
6955
|
});
|
6956
6956
|
}
|
6957
6957
|
function ko(e) {
|
6958
|
-
const { popper: t, opts: n } =
|
6958
|
+
const { popper: t, opts: n } = Rn.get(e), { disabled: s, content: a, arrow: r, onShow: i, boundary: l, modifiers: o = [] } = n;
|
6959
6959
|
if (s) return;
|
6960
6960
|
if (dh(a, t), r) {
|
6961
6961
|
const c = fh();
|
@@ -6967,12 +6967,12 @@ function ko(e) {
|
|
6967
6967
|
i(), t.setAttribute("data-show", ""), f.setOptions((c) => ({
|
6968
6968
|
...c,
|
6969
6969
|
modifiers: [...c.modifiers, ...o, { name: "eventListeners", enabled: !0 }]
|
6970
|
-
})), f.forceUpdate(),
|
6970
|
+
})), f.forceUpdate(), Rn.get(e).popperInstance = f;
|
6971
6971
|
}
|
6972
6972
|
function Ra(e) {
|
6973
6973
|
var r;
|
6974
|
-
if (!
|
6975
|
-
const { popper: t, popperInstance: n, opts: s } =
|
6974
|
+
if (!Rn.get(e)) return;
|
6975
|
+
const { popper: t, popperInstance: n, opts: s } = Rn.get(e), { onHide: a } = s;
|
6976
6976
|
t && document.body.contains(t) && (t.removeAttribute("data-show"), n == null || n.destroy(), (r = t == null ? void 0 : t.parentNode) == null || r.removeChild(t), a());
|
6977
6977
|
}
|
6978
6978
|
function HC() {
|
@@ -10754,16 +10754,16 @@ const VT = /* @__PURE__ */ ge({
|
|
10754
10754
|
const pe = z.value[0], Se = X.value.get(pe == null ? void 0 : pe.value);
|
10755
10755
|
Se && !Se.disabled && Se.visible ? ie.value = pe == null ? void 0 : pe.value : ie.value = (Oe = se.value.find((Xe) => !Xe.disabled && Xe.visible)) == null ? void 0 : Oe.optionID;
|
10756
10756
|
}, Nd = (pe, Se, Oe = {}) => {
|
10757
|
-
var Xe,
|
10757
|
+
var Xe, kn;
|
10758
10758
|
if (mt.value)
|
10759
10759
|
return !!j.value(pe, {
|
10760
10760
|
...Oe
|
10761
10761
|
});
|
10762
10762
|
if (V.value) {
|
10763
|
-
const
|
10764
|
-
return
|
10763
|
+
const Dn = Si.parse(Se).map((ut) => ut.type === 2 ? ut.target.toLowerCase() : ut.target), Xr = Dn.reduce((ut, Oo) => ut + Oo[0], "");
|
10764
|
+
return Dn.join("").indexOf(pe) !== -1 || Xr.indexOf(pe) !== -1 || ((Xe = js(String(Se))) == null ? void 0 : Xe.includes(js(pe)));
|
10765
10765
|
}
|
10766
|
-
return (
|
10766
|
+
return (kn = js(String(Se))) == null ? void 0 : kn.includes(js(pe));
|
10767
10767
|
}, V6 = (pe) => {
|
10768
10768
|
i.value && (pe ? se.value.forEach((Se) => {
|
10769
10769
|
Se.visible = Nd(pe, String(Se.optionName), {
|
@@ -10792,7 +10792,7 @@ const VT = /* @__PURE__ */ ge({
|
|
10792
10792
|
const Oe = String(pe);
|
10793
10793
|
if (!g.value || !Oe) return;
|
10794
10794
|
Se.stopPropagation(), Se.preventDefault();
|
10795
|
-
const Xe = se.value.find((
|
10795
|
+
const Xe = se.value.find((Dn) => js(String(Dn.optionName)) === js(Oe));
|
10796
10796
|
if (i.value && Xe) {
|
10797
10797
|
Kr(Xe), Bs.value = "";
|
10798
10798
|
return;
|
@@ -10800,7 +10800,7 @@ const VT = /* @__PURE__ */ ge({
|
|
10800
10800
|
X.value.get(Oe) || (l.value ? (z.value.push({
|
10801
10801
|
value: Oe,
|
10802
10802
|
label: Oe
|
10803
|
-
}), dn(z.value.map((
|
10803
|
+
}), dn(z.value.map((Dn) => Dn.value))) : (z.value = [{
|
10804
10804
|
value: Oe,
|
10805
10805
|
label: Oe
|
10806
10806
|
}], dn(Oe), Ur()), Bs.value = "");
|
@@ -10872,9 +10872,9 @@ const VT = /* @__PURE__ */ ge({
|
|
10872
10872
|
var Oe, Xe;
|
10873
10873
|
let Se = pe;
|
10874
10874
|
if (typeof Se == "object") {
|
10875
|
-
for (const
|
10876
|
-
if (Zu(
|
10877
|
-
Se =
|
10875
|
+
for (const kn of X.value.keys())
|
10876
|
+
if (Zu(kn, Se)) {
|
10877
|
+
Se = kn;
|
10878
10878
|
break;
|
10879
10879
|
}
|
10880
10880
|
}
|
@@ -10893,7 +10893,7 @@ const VT = /* @__PURE__ */ ge({
|
|
10893
10893
|
value: Se[_.value]
|
10894
10894
|
}));
|
10895
10895
|
}, Ld = (pe) => {
|
10896
|
-
var Xe,
|
10896
|
+
var Xe, kn, Dn, Xr;
|
10897
10897
|
if (!hs.value || Vs.value) return;
|
10898
10898
|
const Se = se.value.filter((ut) => !ut.disabled && ut.visible), Oe = Se.findIndex((ut) => ut.optionID === ie.value);
|
10899
10899
|
switch (pe.code) {
|
@@ -10901,7 +10901,7 @@ const VT = /* @__PURE__ */ ge({
|
|
10901
10901
|
case "ArrowDown": {
|
10902
10902
|
pe.preventDefault();
|
10903
10903
|
let ut = 0;
|
10904
|
-
pe.code === "ArrowDown" ? ut = Oe >= Se.length - 1 ? 0 : Oe + 1 : ut = Oe === 0 ? Se.length - 1 : Oe - 1, ex((Xe = Se[ut]) == null ? void 0 : Xe.$el, ne.value) || (
|
10904
|
+
pe.code === "ArrowDown" ? ut = Oe >= Se.length - 1 ? 0 : Oe + 1 : ut = Oe === 0 ? Se.length - 1 : Oe - 1, ex((Xe = Se[ut]) == null ? void 0 : Xe.$el, ne.value) || (Dn = (kn = Se[ut]) == null ? void 0 : kn.$el) == null || Dn.scrollIntoView(), ie.value = (Xr = Se[ut]) == null ? void 0 : Xr.optionID;
|
10905
10905
|
break;
|
10906
10906
|
}
|
10907
10907
|
case "Backspace": {
|
@@ -14802,7 +14802,7 @@ const o1 = /* @__PURE__ */ ge({
|
|
14802
14802
|
});
|
14803
14803
|
}, l = k(() => {
|
14804
14804
|
const f = {};
|
14805
|
-
return e.appendToBody && (f["z-index"] = 1060 +
|
14805
|
+
return e.appendToBody && (f["z-index"] = 1060 + Vn.getModalNextIndex()), f;
|
14806
14806
|
}), o = ke({
|
14807
14807
|
styles: l
|
14808
14808
|
}), {
|
@@ -16638,16 +16638,16 @@ it.parse = (e, t, n) => {
|
|
16638
16638
|
r.millisecond || 0
|
16639
16639
|
), l;
|
16640
16640
|
};
|
16641
|
-
const ud = " - ",
|
16641
|
+
const ud = " - ", In = (e, t) => {
|
16642
16642
|
const n = jt(new Date(e));
|
16643
16643
|
return !n || isNaN(n.getTime()) ? "" : xL(n, t || "yyyy-MM-dd");
|
16644
16644
|
}, ja = (e, t) => {
|
16645
16645
|
if (Array.isArray(e) && e.length === 2) {
|
16646
16646
|
const n = e[0], s = e[1];
|
16647
16647
|
if (n && s)
|
16648
|
-
return
|
16648
|
+
return In(n, t) + ud + In(s, t);
|
16649
16649
|
} else if (!Array.isArray(e) && e instanceof Date)
|
16650
|
-
return
|
16650
|
+
return In(e, t);
|
16651
16651
|
return "";
|
16652
16652
|
}, Ua = (e, t) => {
|
16653
16653
|
const n = Array.isArray(e) ? e : e.split(ud);
|
@@ -16669,11 +16669,11 @@ const ud = " - ", Pn = (e, t) => {
|
|
16669
16669
|
}
|
16670
16670
|
},
|
16671
16671
|
date: {
|
16672
|
-
formatter: (e, t) =>
|
16672
|
+
formatter: (e, t) => In(e, t),
|
16673
16673
|
parser: (e, t) => it.parse(e, t || "yyyy-MM-dd")
|
16674
16674
|
},
|
16675
16675
|
datetime: {
|
16676
|
-
formatter: (e, t) =>
|
16676
|
+
formatter: (e, t) => In(e, t),
|
16677
16677
|
parser: (e, t) => it.parse(e, t || "yyyy-MM-dd")
|
16678
16678
|
},
|
16679
16679
|
daterange: {
|
@@ -16689,11 +16689,11 @@ const ud = " - ", Pn = (e, t) => {
|
|
16689
16689
|
parser: Ua
|
16690
16690
|
},
|
16691
16691
|
time: {
|
16692
|
-
formatter: (e, t) =>
|
16692
|
+
formatter: (e, t) => In(e, t),
|
16693
16693
|
parser: (e, t) => it.parse(e, t || "yyyy-MM-dd")
|
16694
16694
|
},
|
16695
16695
|
month: {
|
16696
|
-
formatter: (e, t) =>
|
16696
|
+
formatter: (e, t) => In(e, t),
|
16697
16697
|
parser: (e, t) => it.parse(e, t || "yyyy-MM-dd")
|
16698
16698
|
},
|
16699
16699
|
monthrange: {
|
@@ -16701,7 +16701,7 @@ const ud = " - ", Pn = (e, t) => {
|
|
16701
16701
|
parser: Ua
|
16702
16702
|
},
|
16703
16703
|
year: {
|
16704
|
-
formatter: (e, t) =>
|
16704
|
+
formatter: (e, t) => In(e, t),
|
16705
16705
|
parser: (e, t) => it.parse(e, t || "yyyy-MM-dd")
|
16706
16706
|
},
|
16707
16707
|
yearrange: {
|
@@ -16710,7 +16710,7 @@ const ud = " - ", Pn = (e, t) => {
|
|
16710
16710
|
},
|
16711
16711
|
multiple: {
|
16712
16712
|
formatter(e, t) {
|
16713
|
-
return e.filter(Boolean).map((n) =>
|
16713
|
+
return e.filter(Boolean).map((n) => In(n, t)).join(",");
|
16714
16714
|
},
|
16715
16715
|
parser(e, t) {
|
16716
16716
|
return (typeof e == "string" ? e.split(",") : e).map((s) => {
|
@@ -19480,7 +19480,7 @@ function YL(e) {
|
|
19480
19480
|
g: 0,
|
19481
19481
|
b: 0
|
19482
19482
|
}, n = 1, s = null, a = null, r = null, i = !1, l = !1;
|
19483
|
-
return typeof e == "string" && (e = m$(e)), Ji(e) == "object" && (
|
19483
|
+
return typeof e == "string" && (e = m$(e)), Ji(e) == "object" && (Mn(e.r) && Mn(e.g) && Mn(e.b) ? (t = XL(e.r, e.g, e.b), i = !0, l = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Mn(e.h) && Mn(e.s) && Mn(e.v) ? (s = qa(e.s), a = qa(e.v), t = JL(e.h, s, a), i = !0, l = "hsv") : Mn(e.h) && Mn(e.s) && Mn(e.l) && (s = qa(e.s), r = qa(e.l), t = qL(e.h, s, r), i = !0, l = "hsl"), e.hasOwnProperty("a") && (n = e.a)), n = O1(n), {
|
19484
19484
|
ok: i,
|
19485
19485
|
format: e.format || l,
|
19486
19486
|
r: Math.min(255, Math.max(t.r, 0)),
|
@@ -19917,7 +19917,7 @@ var en = function() {
|
|
19917
19917
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
19918
19918
|
};
|
19919
19919
|
}();
|
19920
|
-
function
|
19920
|
+
function Mn(e) {
|
19921
19921
|
return !!en.CSS_UNIT.exec(e);
|
19922
19922
|
}
|
19923
19923
|
function m$(e) {
|
@@ -20743,7 +20743,7 @@ const I$ = (e) => {
|
|
20743
20743
|
}));
|
20744
20744
|
he(() => e.isShow, () => {
|
20745
20745
|
e.isShow ? (f.value = !0, setTimeout(() => {
|
20746
|
-
d.value = e.zIndex ||
|
20746
|
+
d.value = e.zIndex || Vn.getModalNextIndex(), e.showMask && ii.showMask(i.value), t.emit("shown"), o.value = !0;
|
20747
20747
|
})) : f.value && (e.showMask && ii.hideMask(i.value), t.emit("hidden"), o.value = !1);
|
20748
20748
|
}, {
|
20749
20749
|
immediate: !0
|
@@ -20809,6 +20809,9 @@ const I$ = (e) => {
|
|
20809
20809
|
default: () => [u("div", me({
|
20810
20810
|
ref: r
|
20811
20811
|
}, s, {
|
20812
|
+
style: {
|
20813
|
+
zIndex: d.value
|
20814
|
+
},
|
20812
20815
|
class: [a("modal"), e.extCls || ""]
|
20813
20816
|
}), [p(), u(En, {
|
20814
20817
|
name: `modal-${e.animateType}`
|
@@ -21380,7 +21383,7 @@ const PD = /* @__PURE__ */ ge({
|
|
21380
21383
|
},
|
21381
21384
|
icon: "",
|
21382
21385
|
text: ""
|
21383
|
-
}, i)), s =
|
21386
|
+
}, i)), s = Vn.getModalNextIndex(), a = (i) => {
|
21384
21387
|
t("click", i), i.action();
|
21385
21388
|
}, {
|
21386
21389
|
resolveClassName: r
|
@@ -22240,7 +22243,7 @@ const KM = () => ({
|
|
22240
22243
|
})]);
|
22241
22244
|
};
|
22242
22245
|
}
|
22243
|
-
}), eI = Et(XM, { Item: JM, Submenu: QM, Group: qM }),
|
22246
|
+
}), eI = Et(XM, { Item: JM, Submenu: QM, Group: qM }), Pn = {
|
22244
22247
|
"top-left": [],
|
22245
22248
|
"top-right": [],
|
22246
22249
|
"bottom-left": [],
|
@@ -22256,7 +22259,7 @@ const F1 = (e, t) => {
|
|
22256
22259
|
const a = t.onClose, r = n.offsetX || 10;
|
22257
22260
|
let i = n.offsetY || 30;
|
22258
22261
|
const { spacing: l = 10 } = n;
|
22259
|
-
|
22262
|
+
Pn[s].forEach((h) => {
|
22260
22263
|
i += (h.el.offsetHeight || 0) + l;
|
22261
22264
|
}), u2 += 1;
|
22262
22265
|
const o = `message_${u2}`;
|
@@ -22270,11 +22273,11 @@ const F1 = (e, t) => {
|
|
22270
22273
|
f.props.onDestroy = (h) => {
|
22271
22274
|
tI(h, s, l, a), Go(null, d);
|
22272
22275
|
}, f.props.onDetail = (h, g) => {
|
22273
|
-
|
22276
|
+
Pn[s].forEach((v) => {
|
22274
22277
|
var y, b;
|
22275
22278
|
v.props.id !== g && ((b = (y = v.component) == null ? void 0 : y.exposed) == null || b.setDetailsShow(null, !1));
|
22276
22279
|
});
|
22277
|
-
}, Go(f, d),
|
22280
|
+
}, Go(f, d), Pn[s].push(f);
|
22278
22281
|
let c;
|
22279
22282
|
f.props.getContainer && _s(f.props.getContainer) ? c = f.props.getContainer : c = document.body, c.appendChild(d.firstElementChild);
|
22280
22283
|
};
|
@@ -22282,15 +22285,15 @@ function tI(e, t, n, s) {
|
|
22282
22285
|
s == null || s();
|
22283
22286
|
const a = t.startsWith("top") ? "top" : "bottom";
|
22284
22287
|
let r = -1;
|
22285
|
-
|
22288
|
+
Pn[t].forEach((d, f) => {
|
22286
22289
|
d.props.id === e && (r = f);
|
22287
22290
|
});
|
22288
|
-
const l =
|
22291
|
+
const l = Pn[t][r].el.offsetHeight, o = Pn[t].length;
|
22289
22292
|
for (let d = r; d < o; d++) {
|
22290
|
-
const f = parseInt(
|
22291
|
-
|
22293
|
+
const f = parseInt(Pn[t][d].el.style[a], 10) - l - n;
|
22294
|
+
Pn[t][d].component.props.offsetY = f;
|
22292
22295
|
}
|
22293
|
-
|
22296
|
+
Pn[t].splice(r, 1);
|
22294
22297
|
}
|
22295
22298
|
var V1 = { exports: {} };
|
22296
22299
|
/*!
|
@@ -23135,7 +23138,7 @@ const lI = {
|
|
23135
23138
|
}) {
|
23136
23139
|
const a = Ue("message"), {
|
23137
23140
|
resolveClassName: r
|
23138
|
-
} = ve(), i = k(() => [`${r("message")}`, `${r(`message-${e.theme}`)}`, `${e.extCls}`]), l =
|
23141
|
+
} = ve(), i = k(() => [`${r("message")}`, `${r(`message-${e.theme}`)}`, `${e.extCls}`]), l = Vn.getMessageNextIndex(), o = 560, d = 800, f = 3e3, c = 8e3, h = k(() => /^\d+\.?\d*$/.test(`${e.delay}`) ? e.delay : typeof e.message == "object" && !gt(e.message) ? c : f), g = (B) => typeof e[B] == "number" ? `${e[B]}px` : e[B], v = k(() => {
|
23139
23142
|
const B = {
|
23140
23143
|
maxWidth: g("maxWidth"),
|
23141
23144
|
minWidth: g("minWidth")
|
@@ -23644,7 +23647,7 @@ const mI = {
|
|
23644
23647
|
setup(e, {
|
23645
23648
|
emit: t
|
23646
23649
|
}) {
|
23647
|
-
const n =
|
23650
|
+
const n = Vn.getMessageNextIndex(), s = k(() => e.position.indexOf("right") > 1 ? "right" : "left"), a = k(() => e.position.startsWith("top") ? "top" : "bottom"), r = k(() => ({
|
23648
23651
|
[s.value]: `${e.offsetX}px`,
|
23649
23652
|
[a.value]: `${e.offsetY}px`,
|
23650
23653
|
zIndex: n
|
@@ -26357,7 +26360,7 @@ const uP = /* @__PURE__ */ ge({
|
|
26357
26360
|
renderDirective: e.renderDirective,
|
26358
26361
|
showMask: e.showMask,
|
26359
26362
|
transfer: e.transfer,
|
26360
|
-
zIndex: e.zIndex
|
26363
|
+
zIndex: e.zIndex,
|
26361
26364
|
onClose: i,
|
26362
26365
|
onHidden: o,
|
26363
26366
|
onShown: l
|
@@ -32505,8 +32508,8 @@ const pH = {
|
|
32505
32508
|
});
|
32506
32509
|
}
|
32507
32510
|
}), AH = He($H), Ss = "upload";
|
32508
|
-
var
|
32509
|
-
const O2 = [
|
32511
|
+
var Hn = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.DRAGGABLE = "draggable", e.PICTURE = "picture", e))(Hn || {}), Fc = /* @__PURE__ */ ((e) => (e.BINARY = "binary", e.FORMDATA = "formdata", e))(Fc || {}), Ks = /* @__PURE__ */ ((e) => (e.FAIL = "fail", e.NEW = "new", e.SUCCESS = "success", e.UPLOADING = "uploading", e))(Ks || {});
|
32512
|
+
const O2 = [Hn.BUTTON, Hn.DRAGGABLE, Hn.PICTURE], N2 = [Fc.FORMDATA, Fc.BINARY], Yt = {
|
32510
32513
|
type: {
|
32511
32514
|
type: String,
|
32512
32515
|
default: "formdata",
|
@@ -32655,7 +32658,7 @@ const kH = /* @__PURE__ */ ge({
|
|
32655
32658
|
disabled: i,
|
32656
32659
|
multiple: l,
|
32657
32660
|
isShowPreview: o
|
32658
|
-
} = We(e), d = `${a(Ss)}-list`, f = k(() => r.value ===
|
32661
|
+
} = We(e), d = `${a(Ss)}-list`, f = k(() => r.value === Hn.PICTURE), c = k(() => f.value && !l.value), h = k(() => $e({
|
32659
32662
|
[d]: !0,
|
32660
32663
|
[`${d}--${r.value}`]: !0,
|
32661
32664
|
[`${d}--disabled`]: i.value
|
@@ -32815,7 +32818,7 @@ const kH = /* @__PURE__ */ ge({
|
|
32815
32818
|
multiple: o,
|
32816
32819
|
accept: d,
|
32817
32820
|
isShowPreview: f
|
32818
|
-
} = We(e), c = `${a(Ss)}-trigger`, h = k(() => r.value ===
|
32821
|
+
} = We(e), c = `${a(Ss)}-trigger`, h = k(() => r.value === Hn.BUTTON), g = k(() => r.value === Hn.DRAGGABLE), v = k(() => r.value === Hn.PICTURE), y = k(() => v.value && !o.value), b = k(() => v.value && !d.value ? "image/png,image/jpeg,image/jpg" : d.value), p = P(null), x = k(() => {
|
32819
32822
|
var j;
|
32820
32823
|
return $e({
|
32821
32824
|
[c]: !0,
|
@@ -33340,7 +33343,7 @@ const HH = (e, t) => {
|
|
33340
33343
|
}) {
|
33341
33344
|
const {
|
33342
33345
|
resolveClassName: a
|
33343
|
-
} = ve(), r = ol({}), i = k(() => e.theme ===
|
33346
|
+
} = ve(), r = ol({}), i = k(() => e.theme === Hn.PICTURE), l = k(() => i.value && !e.multiple), o = k(() => $e({
|
33344
33347
|
[`${a(Ss)}`]: !0,
|
33345
33348
|
[`${a(Ss)}--${e.theme}`]: !0,
|
33346
33349
|
[`${a(Ss)}--disabled`]: e.disabled,
|
@@ -33586,7 +33589,7 @@ const HH = (e, t) => {
|
|
33586
33589
|
}, JH = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
33587
33590
|
__proto__: null,
|
33588
33591
|
$bkPopover: Xu
|
33589
|
-
}, Symbol.toStringTag, { value: "Module" })), BH = "2.0.1-beta.
|
33592
|
+
}, Symbol.toStringTag, { value: "Module" })), BH = "2.0.1-beta.116";
|
33590
33593
|
window.__bkui_vue_version__ = BH;
|
33591
33594
|
export {
|
33592
33595
|
Xu as $bkPopover,
|