bkui-vue 2.0.1-beta.114 → 2.0.1-beta.115

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.esm.js CHANGED
@@ -196,7 +196,7 @@ function j2(e, t) {
196
196
  }
197
197
  return !1;
198
198
  }
199
- function Fn(e) {
199
+ function Vn(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
- Fn(e).position === "fixed" ? null : e.offsetParent;
225
+ Vn(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 = Fn(e);
230
+ var s = Vn(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 = Fn(a);
236
+ var r = Vn(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) && Fn(n).position === "static"; )
244
+ for (var t = Bt(e), n = kd(e); n && E9(n) && Vn(n).position === "static"; )
245
245
  n = kd(n);
246
- return n && ($n(n) === "html" || $n(n) === "body" && Fn(n).position === "static") ? t : n || L9(e) || t;
246
+ return n && ($n(n) === "html" || $n(n) === "body" && Vn(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), Fn(S).position !== "static" && l === "absolute" && ($ = "scrollHeight", _ = "scrollWidth")), S = S, a === Dt || (a === Mt || a === Jt) && r === lr) {
327
+ if (S === Bt(n) && (S = os(n), Vn(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 Fn(a || n).direction === "rtl" && (l += Os(n.clientWidth, a ? a.clientWidth : 0) - r), {
457
+ return Vn(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 = Fn(e), n = t.overflow, s = t.overflowX, a = t.overflowY;
465
+ var t = Vn(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(Fn(e).position) >= 0, s = n && Xt(e) ? Cr(e) : e;
496
+ var t = er(cl(e)), n = ["absolute", "fixed"].indexOf(Vn(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 Vn = new K4(), Y4 = function() {
1900
+ const An = 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(Vn.getModalNextIndex()), i = `${e.bottom}px`, l = `${e.right}px`, o = wa(() => {
4101
+ const n = P(null), s = P(null), a = P(!1), r = P(An.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 = Vn.getModalNextIndex();
4110
+ r.value = An.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 An(e) {
5501
+ function kn(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 (; An(t) && !no(t); ) {
5525
+ for (; kn(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 : An(t) && Hr(t) ? t : X3(t);
5564
+ return no(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : kn(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 = An(e), r = a ? e.offsetWidth : n, i = a ? e.offsetHeight : s, l = Fi(n) !== r || Fi(s) !== i;
5575
+ const a = kn(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 (!An(t))
5587
+ if (!kn(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 = An(n), r = Wn(n);
5639
+ const a = kn(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)), An(n))) {
5647
+ if ((a || !a && s !== "fixed") && ((ls(n) !== "body" || Hr(r)) && (i = so(n)), kn(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 = An(e) ? Qs(e) : is(1), i = e.clientWidth * r.x, l = e.clientHeight * r.y, o = a * r.x, d = s * r.y;
5691
+ const n = ks(e, !0, t === "fixed"), s = n.top + e.clientTop, a = n.left + e.clientLeft, r = kn(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 = An(t), a = Wn(t), r = n === "fixed", i = ks(e, !0, r, t);
5763
+ const s = kn(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 !An(e) || Zt(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
5782
+ return !kn(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 (!An(e))
5786
+ if (!kn(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 : Vn.getPopperIndex()}`), O(), t.emit(yn.CONTENT_AfterShow, {
6136
+ B.style.setProperty("display", "block"), B.style.setProperty("z-index", `${e.zIndex ? e.zIndex : An.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
- }, Rn = /* @__PURE__ */ new WeakMap(), Gn = {
6837
+ }, Hn = /* @__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
- Rn.set(e, {
6867
+ Hn.set(e, {
6868
6868
  opts: n,
6869
6869
  popper: r,
6870
6870
  popperInstance: null
6871
6871
  });
6872
6872
  },
6873
6873
  updated(e, t) {
6874
- Rn.get(e) && (Rn.get(e).opts = P0(t));
6874
+ Hn.get(e) && (Hn.get(e).opts = P0(t));
6875
6875
  },
6876
6876
  unmounted(e) {
6877
- Ra(e), Rn.delete(e);
6877
+ Ra(e), Hn.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 = Vn.getPopperIndex(), l = document.createElement("div"), o = document.documentElement.style.getPropertyValue("--bk-prefix") || "bk";
6912
+ const { content: t, arrow: n, theme: s, extCls: a } = e, r = s === "light", i = An.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 } = Rn.get(e), { placement: s, distance: a, sameWidth: r } = n;
6924
+ const { opts: n } = Hn.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 } = Rn.get(e), { disabled: s, content: a, arrow: r, onShow: i, boundary: l, modifiers: o = [] } = n;
6958
+ const { popper: t, opts: n } = Hn.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(), Rn.get(e).popperInstance = f;
6970
+ })), f.forceUpdate(), Hn.get(e).popperInstance = f;
6971
6971
  }
6972
6972
  function Ra(e) {
6973
6973
  var r;
6974
- if (!Rn.get(e)) return;
6975
- const { popper: t, popperInstance: n, opts: s } = Rn.get(e), { onHide: a } = s;
6974
+ if (!Hn.get(e)) return;
6975
+ const { popper: t, popperInstance: n, opts: s } = Hn.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, kn;
10757
+ var Xe, Dn;
10758
10758
  if (mt.value)
10759
10759
  return !!j.value(pe, {
10760
10760
  ...Oe
10761
10761
  });
10762
10762
  if (V.value) {
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)));
10763
+ const Mn = Si.parse(Se).map((ut) => ut.type === 2 ? ut.target.toLowerCase() : ut.target), Xr = Mn.reduce((ut, Oo) => ut + Oo[0], "");
10764
+ return Mn.join("").indexOf(pe) !== -1 || Xr.indexOf(pe) !== -1 || ((Xe = js(String(Se))) == null ? void 0 : Xe.includes(js(pe)));
10765
10765
  }
10766
- return (kn = js(String(Se))) == null ? void 0 : kn.includes(js(pe));
10766
+ return (Dn = js(String(Se))) == null ? void 0 : Dn.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((Dn) => js(String(Dn.optionName)) === js(Oe));
10795
+ const Xe = se.value.find((Mn) => js(String(Mn.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((Dn) => Dn.value))) : (z.value = [{
10803
+ }), dn(z.value.map((Mn) => Mn.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 kn of X.value.keys())
10876
- if (Zu(kn, Se)) {
10877
- Se = kn;
10875
+ for (const Dn of X.value.keys())
10876
+ if (Zu(Dn, Se)) {
10877
+ Se = Dn;
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, kn, Dn, Xr;
10896
+ var Xe, Dn, Mn, 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) || (Dn = (kn = Se[ut]) == null ? void 0 : kn.$el) == null || Dn.scrollIntoView(), ie.value = (Xr = Se[ut]) == null ? void 0 : Xr.optionID;
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) || (Mn = (Dn = Se[ut]) == null ? void 0 : Dn.$el) == null || Mn.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 + Vn.getModalNextIndex()), f;
14805
+ return e.appendToBody && (f["z-index"] = 1060 + An.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 = " - ", In = (e, t) => {
16641
+ const ud = " - ", Pn = (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 In(n, t) + ud + In(s, t);
16648
+ return Pn(n, t) + ud + Pn(s, t);
16649
16649
  } else if (!Array.isArray(e) && e instanceof Date)
16650
- return In(e, t);
16650
+ return Pn(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 = " - ", In = (e, t) => {
16669
16669
  }
16670
16670
  },
16671
16671
  date: {
16672
- formatter: (e, t) => In(e, t),
16672
+ formatter: (e, t) => Pn(e, t),
16673
16673
  parser: (e, t) => it.parse(e, t || "yyyy-MM-dd")
16674
16674
  },
16675
16675
  datetime: {
16676
- formatter: (e, t) => In(e, t),
16676
+ formatter: (e, t) => Pn(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 = " - ", In = (e, t) => {
16689
16689
  parser: Ua
16690
16690
  },
16691
16691
  time: {
16692
- formatter: (e, t) => In(e, t),
16692
+ formatter: (e, t) => Pn(e, t),
16693
16693
  parser: (e, t) => it.parse(e, t || "yyyy-MM-dd")
16694
16694
  },
16695
16695
  month: {
16696
- formatter: (e, t) => In(e, t),
16696
+ formatter: (e, t) => Pn(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 = " - ", In = (e, t) => {
16701
16701
  parser: Ua
16702
16702
  },
16703
16703
  year: {
16704
- formatter: (e, t) => In(e, t),
16704
+ formatter: (e, t) => Pn(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 = " - ", In = (e, t) => {
16710
16710
  },
16711
16711
  multiple: {
16712
16712
  formatter(e, t) {
16713
- return e.filter(Boolean).map((n) => In(n, t)).join(",");
16713
+ return e.filter(Boolean).map((n) => Pn(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" && (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), {
19483
+ return typeof e == "string" && (e = m$(e)), Ji(e) == "object" && (In(e.r) && In(e.g) && In(e.b) ? (t = XL(e.r, e.g, e.b), i = !0, l = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : In(e.h) && In(e.s) && In(e.v) ? (s = qa(e.s), a = qa(e.v), t = JL(e.h, s, a), i = !0, l = "hsv") : In(e.h) && In(e.s) && In(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 Mn(e) {
19920
+ function In(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 || Vn.getModalNextIndex(), e.showMask && ii.showMask(i.value), t.emit("shown"), o.value = !0;
20746
+ d.value = e.zIndex || An.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
@@ -21380,7 +21380,7 @@ const PD = /* @__PURE__ */ ge({
21380
21380
  },
21381
21381
  icon: "",
21382
21382
  text: ""
21383
- }, i)), s = Vn.getModalNextIndex(), a = (i) => {
21383
+ }, i)), s = An.getModalNextIndex(), a = (i) => {
21384
21384
  t("click", i), i.action();
21385
21385
  }, {
21386
21386
  resolveClassName: r
@@ -22240,7 +22240,7 @@ const KM = () => ({
22240
22240
  })]);
22241
22241
  };
22242
22242
  }
22243
- }), eI = Et(XM, { Item: JM, Submenu: QM, Group: qM }), Pn = {
22243
+ }), eI = Et(XM, { Item: JM, Submenu: QM, Group: qM }), Rn = {
22244
22244
  "top-left": [],
22245
22245
  "top-right": [],
22246
22246
  "bottom-left": [],
@@ -22256,7 +22256,7 @@ const F1 = (e, t) => {
22256
22256
  const a = t.onClose, r = n.offsetX || 10;
22257
22257
  let i = n.offsetY || 30;
22258
22258
  const { spacing: l = 10 } = n;
22259
- Pn[s].forEach((h) => {
22259
+ Rn[s].forEach((h) => {
22260
22260
  i += (h.el.offsetHeight || 0) + l;
22261
22261
  }), u2 += 1;
22262
22262
  const o = `message_${u2}`;
@@ -22270,11 +22270,11 @@ const F1 = (e, t) => {
22270
22270
  f.props.onDestroy = (h) => {
22271
22271
  tI(h, s, l, a), Go(null, d);
22272
22272
  }, f.props.onDetail = (h, g) => {
22273
- Pn[s].forEach((v) => {
22273
+ Rn[s].forEach((v) => {
22274
22274
  var y, b;
22275
22275
  v.props.id !== g && ((b = (y = v.component) == null ? void 0 : y.exposed) == null || b.setDetailsShow(null, !1));
22276
22276
  });
22277
- }, Go(f, d), Pn[s].push(f);
22277
+ }, Go(f, d), Rn[s].push(f);
22278
22278
  let c;
22279
22279
  f.props.getContainer && _s(f.props.getContainer) ? c = f.props.getContainer : c = document.body, c.appendChild(d.firstElementChild);
22280
22280
  };
@@ -22282,15 +22282,15 @@ function tI(e, t, n, s) {
22282
22282
  s == null || s();
22283
22283
  const a = t.startsWith("top") ? "top" : "bottom";
22284
22284
  let r = -1;
22285
- Pn[t].forEach((d, f) => {
22285
+ Rn[t].forEach((d, f) => {
22286
22286
  d.props.id === e && (r = f);
22287
22287
  });
22288
- const l = Pn[t][r].el.offsetHeight, o = Pn[t].length;
22288
+ const l = Rn[t][r].el.offsetHeight, o = Rn[t].length;
22289
22289
  for (let d = r; d < o; d++) {
22290
- const f = parseInt(Pn[t][d].el.style[a], 10) - l - n;
22291
- Pn[t][d].component.props.offsetY = f;
22290
+ const f = parseInt(Rn[t][d].el.style[a], 10) - l - n;
22291
+ Rn[t][d].component.props.offsetY = f;
22292
22292
  }
22293
- Pn[t].splice(r, 1);
22293
+ Rn[t].splice(r, 1);
22294
22294
  }
22295
22295
  var V1 = { exports: {} };
22296
22296
  /*!
@@ -23135,7 +23135,7 @@ const lI = {
23135
23135
  }) {
23136
23136
  const a = Ue("message"), {
23137
23137
  resolveClassName: r
23138
- } = 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(() => {
23138
+ } = ve(), i = k(() => [`${r("message")}`, `${r(`message-${e.theme}`)}`, `${e.extCls}`]), l = An.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
23139
  const B = {
23140
23140
  maxWidth: g("maxWidth"),
23141
23141
  minWidth: g("minWidth")
@@ -23644,7 +23644,7 @@ const mI = {
23644
23644
  setup(e, {
23645
23645
  emit: t
23646
23646
  }) {
23647
- const n = Vn.getMessageNextIndex(), s = k(() => e.position.indexOf("right") > 1 ? "right" : "left"), a = k(() => e.position.startsWith("top") ? "top" : "bottom"), r = k(() => ({
23647
+ const n = An.getMessageNextIndex(), s = k(() => e.position.indexOf("right") > 1 ? "right" : "left"), a = k(() => e.position.startsWith("top") ? "top" : "bottom"), r = k(() => ({
23648
23648
  [s.value]: `${e.offsetX}px`,
23649
23649
  [a.value]: `${e.offsetY}px`,
23650
23650
  zIndex: n
@@ -26357,7 +26357,7 @@ const uP = /* @__PURE__ */ ge({
26357
26357
  renderDirective: e.renderDirective,
26358
26358
  showMask: e.showMask,
26359
26359
  transfer: e.transfer,
26360
- zIndex: e.zIndex,
26360
+ zIndex: e.zIndex || An.getModalNextIndex(),
26361
26361
  onClose: i,
26362
26362
  onHidden: o,
26363
26363
  onShown: l
@@ -32505,8 +32505,8 @@ const pH = {
32505
32505
  });
32506
32506
  }
32507
32507
  }), AH = He($H), Ss = "upload";
32508
- 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 || {});
32509
- const O2 = [Hn.BUTTON, Hn.DRAGGABLE, Hn.PICTURE], N2 = [Fc.FORMDATA, Fc.BINARY], Yt = {
32508
+ var Fn = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.DRAGGABLE = "draggable", e.PICTURE = "picture", e))(Fn || {}), 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 || {});
32509
+ const O2 = [Fn.BUTTON, Fn.DRAGGABLE, Fn.PICTURE], N2 = [Fc.FORMDATA, Fc.BINARY], Yt = {
32510
32510
  type: {
32511
32511
  type: String,
32512
32512
  default: "formdata",
@@ -32655,7 +32655,7 @@ const kH = /* @__PURE__ */ ge({
32655
32655
  disabled: i,
32656
32656
  multiple: l,
32657
32657
  isShowPreview: o
32658
- } = We(e), d = `${a(Ss)}-list`, f = k(() => r.value === Hn.PICTURE), c = k(() => f.value && !l.value), h = k(() => $e({
32658
+ } = We(e), d = `${a(Ss)}-list`, f = k(() => r.value === Fn.PICTURE), c = k(() => f.value && !l.value), h = k(() => $e({
32659
32659
  [d]: !0,
32660
32660
  [`${d}--${r.value}`]: !0,
32661
32661
  [`${d}--disabled`]: i.value
@@ -32815,7 +32815,7 @@ const kH = /* @__PURE__ */ ge({
32815
32815
  multiple: o,
32816
32816
  accept: d,
32817
32817
  isShowPreview: f
32818
- } = 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(() => {
32818
+ } = We(e), c = `${a(Ss)}-trigger`, h = k(() => r.value === Fn.BUTTON), g = k(() => r.value === Fn.DRAGGABLE), v = k(() => r.value === Fn.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
32819
  var j;
32820
32820
  return $e({
32821
32821
  [c]: !0,
@@ -33340,7 +33340,7 @@ const HH = (e, t) => {
33340
33340
  }) {
33341
33341
  const {
33342
33342
  resolveClassName: a
33343
- } = ve(), r = ol({}), i = k(() => e.theme === Hn.PICTURE), l = k(() => i.value && !e.multiple), o = k(() => $e({
33343
+ } = ve(), r = ol({}), i = k(() => e.theme === Fn.PICTURE), l = k(() => i.value && !e.multiple), o = k(() => $e({
33344
33344
  [`${a(Ss)}`]: !0,
33345
33345
  [`${a(Ss)}--${e.theme}`]: !0,
33346
33346
  [`${a(Ss)}--disabled`]: e.disabled,
@@ -33586,7 +33586,7 @@ const HH = (e, t) => {
33586
33586
  }, JH = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
33587
33587
  __proto__: null,
33588
33588
  $bkPopover: Xu
33589
- }, Symbol.toStringTag, { value: "Module" })), BH = "2.0.1-beta.114";
33589
+ }, Symbol.toStringTag, { value: "Module" })), BH = "2.0.1-beta.115";
33590
33590
  window.__bkui_vue_version__ = BH;
33591
33591
  export {
33592
33592
  Xu as $bkPopover,