@moubing/bing-ui 0.8.2 → 0.9.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/bing-ui.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, h as m, inject as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ee, onBeforeUpdate as x, onMounted as S, onUnmounted as C, onUpdated as w, onWatcherCleanup as T, openBlock as E, provide as D, reactive as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, shallowReactive as N, shallowReadonly as P, shallowRef as F, toDisplayString as I, toRaw as L, toValue as R, unref as z, useAttrs as B, useCssVars as V, useId as te, useSlots as ne, vShow as H, watch as U, watchEffect as W, withCtx as G, withDirectives as re, withModifiers as ie } from "vue";
|
|
2
2
|
import { gsap as K } from "gsap";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var q = Object.create,
|
|
4
|
+
var q = Object.create, ae = Object.defineProperty, J = Object.getOwnPropertyDescriptor, Y = Object.getOwnPropertyNames, X = Object.getPrototypeOf, oe = Object.prototype.hasOwnProperty, se = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Z = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) ae(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
10
|
+
return t || ae(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
11
|
}, ce = (e, t, n, r) => {
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i = Y(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !oe.call(e, s) && s !== n &&
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = Y(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !oe.call(e, s) && s !== n && ae(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = J(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
}, le = (e, t, n) => (n = e == null ? {} : q(X(e)), ce(t || !e || !e.__esModule ?
|
|
17
|
+
}, le = (e, t, n) => (n = e == null ? {} : q(X(e)), ce(t || !e || !e.__esModule ? ae(n, "default", {
|
|
18
18
|
value: e,
|
|
19
19
|
enumerable: !0
|
|
20
20
|
}) : n, e)), ue, de, fe = typeof Symbol == "function" ? Symbol() : "_split", pe, me = () => pe || Ne.register(window.gsap), he = typeof Intl < "u" && "Segmenter" in Intl ? new Intl.Segmenter() : 0, ge = (e) => e ? typeof e == "string" ? ge(document.querySelectorAll(e)) : "length" in e ? Array.from(e).reduce((e, t) => (typeof t == "string" ? e.push(...ge(t)) : e.push(t), e), []) : [e] : [], _e = (e) => ge(e).filter((e) => e && e.nodeType === 1), ve = [], ye = function() {}, be = { add: (e) => e() }, xe = /\s+/g, Se = /* @__PURE__ */ RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.", "gu"), Ce = {
|
|
@@ -951,65 +951,66 @@ function xt(e, t, n, r) {
|
|
|
951
951
|
w(() => i()), ee(() => a()), S(() => {
|
|
952
952
|
let o = e.value, s = t.value, c = n.value;
|
|
953
953
|
if (!o || !s || !c) return;
|
|
954
|
-
let l = o.ownerDocument, u = l.defaultView, d = u.matchMedia(_t), f = !1, p = !1, m = !1, h = !1, g = !1, _ =
|
|
955
|
-
function
|
|
956
|
-
|
|
954
|
+
let l = o.ownerDocument, u = l.defaultView, d = u.matchMedia(_t), f = !1, p = !1, m = !1, h = !1, g = !1, _ = 0, v = !1, y = !1, b, ee, x, S = "", C = NaN, w = 0, T = 0, E, D, O = l.createRange();
|
|
955
|
+
function k() {
|
|
956
|
+
g && (o.removeAttribute("data-smooth-caret"), c.removeAttribute("data-active")), g = !1, c.classList.contains("is-idle") && c.classList.remove("is-idle"), clearTimeout(b), D?.tween.pause();
|
|
957
957
|
}
|
|
958
|
-
function
|
|
959
|
-
clearTimeout(
|
|
960
|
-
|
|
958
|
+
function A() {
|
|
959
|
+
clearTimeout(b), c.classList.remove("is-idle"), b = setTimeout(() => {
|
|
960
|
+
g && !h && c.classList.add("is-idle");
|
|
961
961
|
}, 600);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
964
|
-
|
|
965
|
-
let e =
|
|
966
|
-
if (
|
|
963
|
+
function j() {
|
|
964
|
+
_ = 0;
|
|
965
|
+
let e = v, t = y;
|
|
966
|
+
if (v = y = !1, h) return;
|
|
967
967
|
let n = p && o.selectionDirection !== "backward" ? o.selectionEnd : o.selectionStart;
|
|
968
|
-
if (!f || !r() || o.disabled || o.readOnly || m ||
|
|
969
|
-
|
|
968
|
+
if (!f || !r() || o.disabled || o.readOnly || m || d.matches || l.hidden || !l.hasFocus() || l.activeElement !== o || !vt.has(o.type) || n === null || !p && n !== o.selectionEnd || yt.test(o.value)) {
|
|
969
|
+
k(), x && !vt.has(o.type) && (x.data = "");
|
|
970
970
|
return;
|
|
971
971
|
}
|
|
972
972
|
let i = u.getComputedStyle(o);
|
|
973
973
|
if (i.direction !== "ltr" || i.writingMode !== "horizontal-tb" || !["start", "left"].includes(i.textAlign) || parseFloat(i.textIndent) !== 0 || !o.clientWidth) {
|
|
974
|
-
|
|
974
|
+
k();
|
|
975
975
|
return;
|
|
976
976
|
}
|
|
977
|
-
|
|
977
|
+
ee || (ee = l.createElement("span"), ee.setAttribute("aria-hidden", "true"), ee.style.cssText = "position:absolute;left:0;top:0;visibility:hidden;white-space:pre;width:max-content;pointer-events:none;", x = l.createTextNode(""), ee.append(x), s.append(ee));
|
|
978
978
|
let a = bt.map((e) => i[e]).join("|");
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
}),
|
|
982
|
-
let
|
|
983
|
-
|
|
984
|
-
let
|
|
985
|
-
if (!
|
|
986
|
-
|
|
979
|
+
S !== a && (bt.forEach((e) => {
|
|
980
|
+
ee.style[e] = i[e];
|
|
981
|
+
}), S = a);
|
|
982
|
+
let b = o.value || "";
|
|
983
|
+
x.data !== b && (x.data = b), O.setStart(x, n), O.collapse(!0);
|
|
984
|
+
let j = O.getClientRects();
|
|
985
|
+
if (!j.length) {
|
|
986
|
+
k();
|
|
987
987
|
return;
|
|
988
988
|
}
|
|
989
|
-
let
|
|
990
|
-
if (
|
|
991
|
-
|
|
989
|
+
let M = ee.getBoundingClientRect(), N = s.getBoundingClientRect().width / s.clientWidth || 1, P = parseFloat(i.paddingLeft) || 0, F = o.offsetLeft + P + (j[0].left - M.left) / N - o.scrollLeft;
|
|
990
|
+
if (F < o.offsetLeft - 1 || F > o.offsetLeft + o.clientWidth + 1) {
|
|
991
|
+
k();
|
|
992
992
|
return;
|
|
993
993
|
}
|
|
994
|
-
let
|
|
995
|
-
|
|
996
|
-
|
|
994
|
+
let I = Math.max(o.offsetLeft, Math.min(o.offsetLeft + o.clientWidth - 2, F)), L = Math.min(o.clientHeight, parseFloat(i.fontSize) * 1.2), R = o.offsetTop + (o.clientHeight - L) / 2, z = !g || Math.abs(C - I) > .1, B = w !== o.scrollLeft || T !== o.clientWidth;
|
|
995
|
+
D || (E = K.context(() => {
|
|
996
|
+
D = K.quickTo(c, "x", {
|
|
997
997
|
duration: .09,
|
|
998
998
|
ease: "power2.out"
|
|
999
999
|
});
|
|
1000
|
-
}, s)), !
|
|
1000
|
+
}, s)), !g || e || B ? (D(I, I), D.tween.progress(1).pause()) : z && D(I), c.style.height !== `${L}px` && (c.style.height = `${L}px`), c.style.top !== `${R}px` && (c.style.top = `${R}px`), c.style.color !== i.color && (c.style.color = i.color), g || (c.setAttribute("data-active", ""), o.setAttribute("data-smooth-caret", "")), g = !0, C = I, w = o.scrollLeft, T = o.clientWidth, (z || t) && A();
|
|
1001
|
+
}
|
|
1002
|
+
function M(e = !1, t = !1) {
|
|
1003
|
+
h || !f || (v ||= e, y ||= t, _ ||= u.requestAnimationFrame(j));
|
|
1001
1004
|
}
|
|
1002
|
-
function N(
|
|
1003
|
-
|
|
1005
|
+
function N() {
|
|
1006
|
+
h || !f || (u.cancelAnimationFrame(_), v = y = !0, j());
|
|
1004
1007
|
}
|
|
1005
|
-
let P = () =>
|
|
1006
|
-
m = !1, N(!0, !0);
|
|
1007
|
-
}, B = new ResizeObserver(F);
|
|
1008
|
+
let P = () => M(), F = () => M(!0), I = () => M(!1, !0), L = () => k(), R = () => l.hidden ? k() : M(!0), z = () => N(), B = new ResizeObserver(F);
|
|
1008
1009
|
function V() {
|
|
1009
|
-
f || (f = !0, l.addEventListener("selectionchange", P), l.addEventListener("pointerup", z), l.addEventListener("pointercancel", z), l.addEventListener("visibilitychange", R), u.addEventListener("blur", L), u.addEventListener("focus", F), u.addEventListener("resize", F), d.addEventListener("change", F), l.fonts?.addEventListener("loadingdone", F), B.observe(o), N(!0, !0));
|
|
1010
|
+
f || (f = !0, l.addEventListener("selectionchange", P), l.addEventListener("pointerup", z), l.addEventListener("pointercancel", z), l.addEventListener("visibilitychange", R), u.addEventListener("blur", L), u.addEventListener("focus", F), u.addEventListener("resize", F), d.addEventListener("change", F), l.fonts?.addEventListener("loadingdone", F), B.observe(o), N(), M(!0, !0));
|
|
1010
1011
|
}
|
|
1011
1012
|
function te() {
|
|
1012
|
-
f = p = m =
|
|
1013
|
+
f = p = m = !1, k(), u.cancelAnimationFrame(_), _ = 0, v = y = !1, l.removeEventListener("selectionchange", P), l.removeEventListener("pointerup", z), l.removeEventListener("pointercancel", z), l.removeEventListener("visibilitychange", R), u.removeEventListener("blur", L), u.removeEventListener("focus", F), u.removeEventListener("resize", F), d.removeEventListener("change", F), l.fonts?.removeEventListener("loadingdone", F), B.disconnect(), E?.revert(), E = D = void 0, ee?.remove(), ee = x = void 0, S = "";
|
|
1013
1014
|
}
|
|
1014
1015
|
let ne = {
|
|
1015
1016
|
focus: V,
|
|
@@ -1020,19 +1021,19 @@ function xt(e, t, n, r) {
|
|
|
1020
1021
|
select: P,
|
|
1021
1022
|
scroll: F,
|
|
1022
1023
|
pointerdown: (e) => {
|
|
1023
|
-
m
|
|
1024
|
+
m ||= e.pointerType === "touch", m ? k() : M(!0, !0);
|
|
1024
1025
|
},
|
|
1025
1026
|
compositionstart: () => {
|
|
1026
|
-
p = !0,
|
|
1027
|
+
p = !0, M(!1, !0);
|
|
1027
1028
|
},
|
|
1028
1029
|
compositionupdate: I,
|
|
1029
1030
|
compositionend: () => {
|
|
1030
|
-
p = !1,
|
|
1031
|
+
p = !1, M(!1, !0);
|
|
1031
1032
|
}
|
|
1032
1033
|
};
|
|
1033
1034
|
for (let [e, t] of Object.entries(ne)) o.addEventListener(e, t);
|
|
1034
|
-
i = () =>
|
|
1035
|
-
|
|
1035
|
+
i = () => M(), a = () => {
|
|
1036
|
+
h = !0, te();
|
|
1036
1037
|
for (let [e, t] of Object.entries(ne)) o.removeEventListener(e, t);
|
|
1037
1038
|
i = () => {};
|
|
1038
1039
|
}, l.activeElement === o && V();
|
|
@@ -1878,18 +1879,18 @@ var St = (e) => {
|
|
|
1878
1879
|
I = void 0, l("debounced-input", e);
|
|
1879
1880
|
}, B.value);
|
|
1880
1881
|
}
|
|
1881
|
-
function
|
|
1882
|
+
function ae(e, t) {
|
|
1882
1883
|
let n = e === "" ? NaN : Number(e);
|
|
1883
1884
|
l("update:modelValue", r.type === "number" && Number.isFinite(n) ? n : e), l("input", e, t), q(e), m?.handleControlChange();
|
|
1884
1885
|
}
|
|
1885
|
-
function
|
|
1886
|
+
function J(e) {
|
|
1886
1887
|
let t = e.target.value;
|
|
1887
1888
|
if (O.value || e.isComposing) {
|
|
1888
1889
|
A.value = t;
|
|
1889
1890
|
return;
|
|
1890
1891
|
}
|
|
1891
1892
|
let n = N === t;
|
|
1892
|
-
N = void 0, !n &&
|
|
1893
|
+
N = void 0, !n && ae(t, e);
|
|
1893
1894
|
}
|
|
1894
1895
|
function Y(e) {
|
|
1895
1896
|
M = e.target.value, A.value = M, N = void 0, O.value = !0, P = I !== void 0, K();
|
|
@@ -1897,7 +1898,7 @@ var St = (e) => {
|
|
|
1897
1898
|
function X(e) {
|
|
1898
1899
|
if (!O.value) return;
|
|
1899
1900
|
let t = e.target.value;
|
|
1900
|
-
O.value = !1, N = t, t === M ? P && q(t) :
|
|
1901
|
+
O.value = !1, N = t, t === M ? P && q(t) : ae(t, e), P = !1;
|
|
1901
1902
|
}
|
|
1902
1903
|
function oe(e) {
|
|
1903
1904
|
!O.value && !e.isComposing && e.keyCode !== 229 && (N = void 0), l("keydown", e);
|
|
@@ -2006,7 +2007,7 @@ var St = (e) => {
|
|
|
2006
2007
|
"aria-label": r.ariaLabel || void 0,
|
|
2007
2008
|
"aria-describedby": z(x),
|
|
2008
2009
|
"aria-invalid": z(b) === "error" || void 0,
|
|
2009
|
-
onInput:
|
|
2010
|
+
onInput: J,
|
|
2010
2011
|
onCompositionstart: Y,
|
|
2011
2012
|
onCompositionend: X,
|
|
2012
2013
|
onFocus: de,
|
|
@@ -2406,13 +2407,13 @@ var or = [
|
|
|
2406
2407
|
transform: `translate(-50%, ${W}px)`
|
|
2407
2408
|
};
|
|
2408
2409
|
}
|
|
2409
|
-
function
|
|
2410
|
+
function ae() {
|
|
2410
2411
|
return {
|
|
2411
2412
|
width: `${x.value}px`,
|
|
2412
2413
|
transform: `translate(${G}px, -50%)`
|
|
2413
2414
|
};
|
|
2414
2415
|
}
|
|
2415
|
-
let
|
|
2416
|
+
let J = i(() => Math.max(1, r.overflowTolerance)), Y = i(() => (h.value || g.value) && r.focusable && !r.disabled), X = i(() => r.ariaLabel ?? (Y.value ? "可滚动内容" : void 0));
|
|
2416
2417
|
function oe(e) {
|
|
2417
2418
|
l.value = e instanceof HTMLElement ? e : null;
|
|
2418
2419
|
}
|
|
@@ -2453,7 +2454,7 @@ var or = [
|
|
|
2453
2454
|
function ge() {
|
|
2454
2455
|
let e = l.value;
|
|
2455
2456
|
if (!e) return;
|
|
2456
|
-
let t = e.clientHeight, n = e.scrollHeight, i = e.clientWidth, a = e.scrollWidth, o = Math.max(0, n - t), s = Math.max(0, a - i), c = r.vertical && !r.disabled && o >
|
|
2457
|
+
let t = e.clientHeight, n = e.scrollHeight, i = e.clientWidth, a = e.scrollWidth, o = Math.max(0, n - t), s = Math.max(0, a - i), c = r.vertical && !r.disabled && o > J.value, u = r.horizontal && !r.disabled && s > J.value;
|
|
2457
2458
|
if (h.value = c, g.value = u, z = c ? o : 0, B = u ? s : 0, !c || !d.value) y.value = 0, _e(0), V = 0;
|
|
2458
2459
|
else {
|
|
2459
2460
|
let i = d.value.clientHeight, a = n > 0 ? t / n * i : i, s = Math.min(i, Math.max(Math.max(12, r.minThumbSize), a));
|
|
@@ -2731,7 +2732,7 @@ var or = [
|
|
|
2731
2732
|
ref_key: "horizontalThumbRef",
|
|
2732
2733
|
ref: m,
|
|
2733
2734
|
class: "bing-scrollbar__thumb bing-scrollbar__thumb--horizontal",
|
|
2734
|
-
style: b(
|
|
2735
|
+
style: b(ae()),
|
|
2735
2736
|
onPointerdown: t[2] ||= (e) => Le("horizontal", e)
|
|
2736
2737
|
}, null, 36)], 544), [[H, g.value]])
|
|
2737
2738
|
], 38));
|
|
@@ -2874,6 +2875,10 @@ var vr = {
|
|
|
2874
2875
|
type: Boolean,
|
|
2875
2876
|
default: !0
|
|
2876
2877
|
},
|
|
2878
|
+
openOnEmpty: {
|
|
2879
|
+
type: Boolean,
|
|
2880
|
+
default: !0
|
|
2881
|
+
},
|
|
2877
2882
|
loading: {
|
|
2878
2883
|
type: Boolean,
|
|
2879
2884
|
default: !1
|
|
@@ -2919,7 +2924,7 @@ var vr = {
|
|
|
2919
2924
|
setup(r, { expose: f, emit: p }) {
|
|
2920
2925
|
let m = r, h = p, y = ne(), { rootAttrs: x, controlAttrs: C } = gt(), { formItem: w, resolvedId: T, resolvedSize: D, resolvedDisabled: O, resolvedStatus: M, resolvedAriaDescribedby: N } = at(m);
|
|
2921
2926
|
ot();
|
|
2922
|
-
let P = _r(), L = `bing-autocomplete-${te()}`, R = k(null), B = k(null), V = k(null), H = k(null), W = F(), re = k("right"), q = k(null),
|
|
2927
|
+
let P = _r(), L = `bing-autocomplete-${te()}`, R = k(null), B = k(null), V = k(null), H = k(null), W = F(), re = k("right"), q = k(null), ae = k(null), J = k(null), Y = k(!1), X = k(!1), oe = k(-1), se = k({
|
|
2923
2928
|
left: 0,
|
|
2924
2929
|
top: 0,
|
|
2925
2930
|
width: 320,
|
|
@@ -2941,7 +2946,7 @@ var vr = {
|
|
|
2941
2946
|
zIndex: () => 3e3,
|
|
2942
2947
|
closeOnEscape: () => !X.value,
|
|
2943
2948
|
onEscape: () => {
|
|
2944
|
-
|
|
2949
|
+
et(), xe = !0, q.value?.input?.focus({ preventScroll: !0 }), xe = !1;
|
|
2945
2950
|
}
|
|
2946
2951
|
}), Oe = i(() => ({
|
|
2947
2952
|
position: "fixed",
|
|
@@ -2982,7 +2987,7 @@ var vr = {
|
|
|
2982
2987
|
animateContent: e,
|
|
2983
2988
|
previousSnapshot: t,
|
|
2984
2989
|
reducedMotion: Ae(),
|
|
2985
|
-
onComplete: () =>
|
|
2990
|
+
onComplete: () => J.value?.update()
|
|
2986
2991
|
});
|
|
2987
2992
|
n && (re.value = n.placement);
|
|
2988
2993
|
});
|
|
@@ -3083,10 +3088,15 @@ var vr = {
|
|
|
3083
3088
|
return;
|
|
3084
3089
|
}
|
|
3085
3090
|
je(() => {
|
|
3086
|
-
let e = n ? Be : Ve, a = r.getBoundingClientRect()
|
|
3087
|
-
|
|
3091
|
+
let e = n ? Be : Ve, a = r.getBoundingClientRect(), o = i.filter((e) => {
|
|
3092
|
+
let t = e.getBoundingClientRect();
|
|
3093
|
+
return t.top < a.bottom && t.bottom > a.top;
|
|
3094
|
+
});
|
|
3095
|
+
o.forEach((e) => {
|
|
3096
|
+
e.style.willChange = "transform, opacity";
|
|
3097
|
+
}), _e = e({
|
|
3088
3098
|
panel: r,
|
|
3089
|
-
items:
|
|
3099
|
+
items: o,
|
|
3090
3100
|
actionRail: null,
|
|
3091
3101
|
actionButtons: [],
|
|
3092
3102
|
placement: se.value.placement,
|
|
@@ -3118,37 +3128,40 @@ var vr = {
|
|
|
3118
3128
|
function Ze() {
|
|
3119
3129
|
Y.value && !Z && (Z = requestAnimationFrame(Xe));
|
|
3120
3130
|
}
|
|
3121
|
-
function Qe() {
|
|
3122
|
-
|
|
3131
|
+
function Qe(e = m.modelValue) {
|
|
3132
|
+
return m.openOnEmpty || !!e.trim();
|
|
3133
|
+
}
|
|
3134
|
+
function $e(e = m.modelValue) {
|
|
3135
|
+
O.value || Y.value || xe || !Qe(e) || (Y.value = !0, me = !1, oe.value = Se.value.findIndex((e) => !e.disabled), Xe(), h("open"), _(() => {
|
|
3123
3136
|
Y.value && Xe();
|
|
3124
3137
|
}));
|
|
3125
3138
|
}
|
|
3126
|
-
function $e() {
|
|
3127
|
-
Y.value && (Y.value = !1, me = !1, clearTimeout(pe), Ie(), B.value && be?.unobserve(B.value), h("close"));
|
|
3128
|
-
}
|
|
3129
3139
|
function et() {
|
|
3130
|
-
|
|
3140
|
+
Y.value && (Y.value = !1, me = !1, clearTimeout(pe), Ie(), B.value && be?.unobserve(B.value), h("close"));
|
|
3131
3141
|
}
|
|
3132
|
-
function tt(
|
|
3133
|
-
|
|
3142
|
+
function tt() {
|
|
3143
|
+
q.value?.focus(), $e();
|
|
3134
3144
|
}
|
|
3135
3145
|
function nt(e) {
|
|
3136
|
-
|
|
3146
|
+
h("update:modelValue", String(e)), w?.handleControlChange(), Qe(String(e)) ? $e(String(e)) : et();
|
|
3137
3147
|
}
|
|
3138
|
-
function rt() {
|
|
3148
|
+
function rt(e) {
|
|
3149
|
+
!Ce.value || e.disabled || O.value || X.value || (m.completeOnSelect && nt(e.label), h("select", e), m.closeOnSelect && et());
|
|
3150
|
+
}
|
|
3151
|
+
function it() {
|
|
3139
3152
|
_(() => {
|
|
3140
|
-
let e =
|
|
3153
|
+
let e = ae.value?.viewport, t = document.getElementById(`${L}-${oe.value}`);
|
|
3141
3154
|
if (!Y.value || !e || !t) return;
|
|
3142
|
-
|
|
3155
|
+
ae.value?.stop();
|
|
3143
3156
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
3144
3157
|
r.top < n.top ? e.scrollTop += r.top - n.top : r.bottom > n.bottom && (e.scrollTop += r.bottom - n.bottom), Fe();
|
|
3145
3158
|
});
|
|
3146
3159
|
}
|
|
3147
|
-
function
|
|
3148
|
-
if (!(e.isComposing || X.value || e.keyCode === 229 || O.value)) if (e.key === "Escape" && Y.value) e.preventDefault(), e.stopPropagation(),
|
|
3160
|
+
function st(e) {
|
|
3161
|
+
if (!(e.isComposing || X.value || e.keyCode === 229 || O.value)) if (e.key === "Escape" && Y.value) e.preventDefault(), e.stopPropagation(), et();
|
|
3149
3162
|
else if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
3150
3163
|
if (e.preventDefault(), !Y.value) {
|
|
3151
|
-
|
|
3164
|
+
$e(), me = !0, it();
|
|
3152
3165
|
return;
|
|
3153
3166
|
}
|
|
3154
3167
|
if (!Ce.value) return;
|
|
@@ -3157,24 +3170,24 @@ var vr = {
|
|
|
3157
3170
|
for (let e = 1; e <= Se.value.length; e++) {
|
|
3158
3171
|
let n = (oe.value + t * e + Se.value.length) % Se.value.length;
|
|
3159
3172
|
if (!Se.value[n]?.disabled) {
|
|
3160
|
-
oe.value = n,
|
|
3173
|
+
oe.value = n, it();
|
|
3161
3174
|
break;
|
|
3162
3175
|
}
|
|
3163
3176
|
}
|
|
3164
|
-
} else e.key === "Enter" && Y.value && we.value && (e.preventDefault(),
|
|
3177
|
+
} else e.key === "Enter" && Y.value && we.value && (e.preventDefault(), rt(we.value));
|
|
3165
3178
|
}
|
|
3166
|
-
function
|
|
3179
|
+
function ct(e) {
|
|
3167
3180
|
return !!(e && ([
|
|
3168
3181
|
R.value,
|
|
3169
3182
|
B.value,
|
|
3170
3183
|
V.value
|
|
3171
3184
|
].some((t) => t?.contains(e)) || De.contains(e)));
|
|
3172
3185
|
}
|
|
3173
|
-
function ct(e) {
|
|
3174
|
-
Y.value && e.target instanceof Node && !st(e.target) && $e();
|
|
3175
|
-
}
|
|
3176
3186
|
function lt(e) {
|
|
3177
|
-
|
|
3187
|
+
Y.value && e.target instanceof Node && !ct(e.target) && et();
|
|
3188
|
+
}
|
|
3189
|
+
function ut(e) {
|
|
3190
|
+
let t = e.relatedTarget instanceof Node && ct(e.relatedTarget);
|
|
3178
3191
|
cancelAnimationFrame(ce), ce = requestAnimationFrame(() => {
|
|
3179
3192
|
ce = 0;
|
|
3180
3193
|
let n = !e.relatedTarget && e.target instanceof Node && !e.target.isConnected || t && e.relatedTarget instanceof Node && !e.relatedTarget.isConnected;
|
|
@@ -3182,29 +3195,31 @@ var vr = {
|
|
|
3182
3195
|
q.value?.input?.focus({ preventScroll: !0 });
|
|
3183
3196
|
return;
|
|
3184
3197
|
}
|
|
3185
|
-
|
|
3198
|
+
ct(document.activeElement) || (et(), w?.handleControlBlur());
|
|
3186
3199
|
});
|
|
3187
3200
|
}
|
|
3188
3201
|
return U([Se, Ce], () => {
|
|
3189
|
-
let e = typeof document > "u" ? null : document.activeElement, t =
|
|
3190
|
-
oe.value = Se.value.findIndex((e) => !e.disabled), Y.value && (Ze(), me && we.value ?
|
|
3202
|
+
let e = typeof document > "u" ? null : document.activeElement, t = ct(e);
|
|
3203
|
+
oe.value = Se.value.findIndex((e) => !e.disabled), Y.value && (Ze(), me && we.value ? it() : Ie(!0)), _(() => {
|
|
3191
3204
|
Y.value && t && e && !e.isConnected && document.activeElement === document.body && q.value?.input?.focus({ preventScroll: !0 });
|
|
3192
3205
|
});
|
|
3193
3206
|
}), U(O, (e) => {
|
|
3194
|
-
e &&
|
|
3207
|
+
e && et();
|
|
3208
|
+
}), U([() => m.modelValue, () => m.openOnEmpty], () => {
|
|
3209
|
+
Qe() || et();
|
|
3195
3210
|
}), U([() => m.panelWidth, () => m.panelMaxHeight], Ze), U(Ee, () => {
|
|
3196
|
-
me &&
|
|
3211
|
+
me && it();
|
|
3197
3212
|
}), U(H, (e, t) => {
|
|
3198
3213
|
t && be?.unobserve(t), e && be?.observe(e);
|
|
3199
3214
|
}), S(() => {
|
|
3200
3215
|
ye = K.context(() => {}, R.value), be = new ResizeObserver((e) => {
|
|
3201
3216
|
e.some((e) => e.target !== H.value) && Ze(), e.some((e) => e.target === H.value) && !le && V.value && !K.isTweening(V.value) && Q();
|
|
3202
|
-
}), R.value && be.observe(R.value), window.addEventListener("resize", Ze), window.addEventListener("scroll", Ze, !0), window.visualViewport?.addEventListener("resize", Ze), window.visualViewport?.addEventListener("scroll", Ze), document.addEventListener("pointerdown",
|
|
3217
|
+
}), R.value && be.observe(R.value), window.addEventListener("resize", Ze), window.addEventListener("scroll", Ze, !0), window.visualViewport?.addEventListener("resize", Ze), window.visualViewport?.addEventListener("scroll", Ze), document.addEventListener("pointerdown", lt, !0), document.addEventListener("focusin", lt);
|
|
3203
3218
|
}), ee(() => {
|
|
3204
|
-
ge = !0, ue++, Ne(), clearTimeout(pe), cancelAnimationFrame(le), Je(), ve?.(), ve = void 0, ye?.revert(), cancelAnimationFrame(Z), cancelAnimationFrame(ce), be?.disconnect(), window.removeEventListener("resize", Ze), window.removeEventListener("scroll", Ze, !0), window.visualViewport?.removeEventListener("resize", Ze), window.visualViewport?.removeEventListener("scroll", Ze), document.removeEventListener("pointerdown",
|
|
3219
|
+
ge = !0, ue++, Ne(), clearTimeout(pe), cancelAnimationFrame(le), Je(), ve?.(), ve = void 0, ye?.revert(), cancelAnimationFrame(Z), cancelAnimationFrame(ce), be?.disconnect(), window.removeEventListener("resize", Ze), window.removeEventListener("scroll", Ze, !0), window.visualViewport?.removeEventListener("resize", Ze), window.visualViewport?.removeEventListener("scroll", Ze), document.removeEventListener("pointerdown", lt, !0), document.removeEventListener("focusin", lt);
|
|
3205
3220
|
}), f({
|
|
3206
|
-
focus:
|
|
3207
|
-
close:
|
|
3221
|
+
focus: tt,
|
|
3222
|
+
close: et,
|
|
3208
3223
|
get input() {
|
|
3209
3224
|
return q.value?.input ?? null;
|
|
3210
3225
|
}
|
|
@@ -3212,7 +3227,7 @@ var vr = {
|
|
|
3212
3227
|
ref_key: "root",
|
|
3213
3228
|
ref: R,
|
|
3214
3229
|
class: ["bing-autocomplete", { "is-block": r.block }],
|
|
3215
|
-
onFocusout:
|
|
3230
|
+
onFocusout: ut
|
|
3216
3231
|
}), [d(Ln, g(z(C)(), {
|
|
3217
3232
|
id: z(T),
|
|
3218
3233
|
ref_key: "input",
|
|
@@ -3233,13 +3248,13 @@ var vr = {
|
|
|
3233
3248
|
"aria-controls": Y.value ? L : void 0,
|
|
3234
3249
|
"aria-activedescendant": Y.value && we.value ? `${L}-${oe.value}` : void 0,
|
|
3235
3250
|
spellcheck: !1,
|
|
3236
|
-
"onUpdate:modelValue":
|
|
3237
|
-
onFocus:
|
|
3238
|
-
onClick:
|
|
3239
|
-
onKeydown:
|
|
3240
|
-
onCompositionstart: f[
|
|
3241
|
-
onCompositionend: f[
|
|
3242
|
-
onClear: f[
|
|
3251
|
+
"onUpdate:modelValue": nt,
|
|
3252
|
+
onFocus: f[0] ||= (e) => $e(),
|
|
3253
|
+
onClick: f[1] ||= (e) => $e(),
|
|
3254
|
+
onKeydown: st,
|
|
3255
|
+
onCompositionstart: f[2] ||= (e) => X.value = !0,
|
|
3256
|
+
onCompositionend: f[3] ||= (e) => X.value = !1,
|
|
3257
|
+
onClear: f[4] ||= (e) => h("clear")
|
|
3243
3258
|
}), l({ _: 2 }, [y.icon ? {
|
|
3244
3259
|
name: "icon",
|
|
3245
3260
|
fn: G(() => [j(i.$slots, "icon", {}, void 0, !0)]),
|
|
@@ -3263,8 +3278,8 @@ var vr = {
|
|
|
3263
3278
|
to: "body"
|
|
3264
3279
|
}, [d(n, {
|
|
3265
3280
|
css: !1,
|
|
3266
|
-
onEnter: f[
|
|
3267
|
-
onLeave: f[
|
|
3281
|
+
onEnter: f[7] ||= (e, t) => Ge(e, t, !0),
|
|
3282
|
+
onLeave: f[8] ||= (e, t) => Ge(e, t, !1),
|
|
3268
3283
|
onEnterCancelled: Je,
|
|
3269
3284
|
onLeaveCancelled: Je
|
|
3270
3285
|
}, {
|
|
@@ -3274,10 +3289,10 @@ var vr = {
|
|
|
3274
3289
|
ref: B,
|
|
3275
3290
|
class: "bing-autocomplete__panel",
|
|
3276
3291
|
style: b(Oe.value),
|
|
3277
|
-
onFocusout:
|
|
3292
|
+
onFocusout: ut
|
|
3278
3293
|
}, [d(sr, {
|
|
3279
3294
|
ref_key: "scrollbar",
|
|
3280
|
-
ref:
|
|
3295
|
+
ref: ae,
|
|
3281
3296
|
"max-height": se.value.height - Ee.value,
|
|
3282
3297
|
focusable: !1,
|
|
3283
3298
|
onScroll: He
|
|
@@ -3303,19 +3318,19 @@ var vr = {
|
|
|
3303
3318
|
"aria-disabled": e.disabled || void 0,
|
|
3304
3319
|
"aria-label": e.label,
|
|
3305
3320
|
"data-autocomplete-index": t,
|
|
3306
|
-
onMousedown: f[
|
|
3321
|
+
onMousedown: f[5] ||= ie(() => {}, ["prevent"]),
|
|
3307
3322
|
onMouseenter: (e) => Re(e, t),
|
|
3308
3323
|
onMousemove: (e) => Re(e, t),
|
|
3309
3324
|
onMouseleave: ze,
|
|
3310
|
-
onClick: (t) =>
|
|
3311
|
-
}, [f[
|
|
3325
|
+
onClick: (t) => rt(e)
|
|
3326
|
+
}, [f[12] ||= c("span", {
|
|
3312
3327
|
class: "bing-autocomplete__option-liquid",
|
|
3313
3328
|
"aria-hidden": "true"
|
|
3314
3329
|
}, null, -1), c("span", xr, [j(i.$slots, "option", {
|
|
3315
3330
|
option: e,
|
|
3316
3331
|
active: oe.value === t
|
|
3317
3332
|
}, () => [c("span", null, I(e.label), 1)], !0)])], 42, br))), 128)) : o("", !0)], 40, yr),
|
|
3318
|
-
r.loading ? (E(), s("div", Sr, [j(i.$slots, "loading", {}, () => [f[
|
|
3333
|
+
r.loading ? (E(), s("div", Sr, [j(i.$slots, "loading", {}, () => [f[13] ||= u("正在加载…", -1)], !0)])) : r.error ? (E(), s("div", Cr, [j(i.$slots, "error", { error: r.error }, () => [u(I(r.error), 1)], !0)])) : Se.value.length ? o("", !0) : (E(), s("div", wr, [j(i.$slots, "empty", {}, () => [u(I(r.emptyText), 1)], !0)])),
|
|
3319
3334
|
y.footer ? (E(), s("div", Tr, [j(i.$slots, "footer", {}, void 0, !0)])) : o("", !0)
|
|
3320
3335
|
]),
|
|
3321
3336
|
_: 3
|
|
@@ -3325,7 +3340,7 @@ var vr = {
|
|
|
3325
3340
|
"aria-hidden": "true",
|
|
3326
3341
|
onMouseenter: Ne,
|
|
3327
3342
|
onMouseleave: Le,
|
|
3328
|
-
onMousedown: f[
|
|
3343
|
+
onMousedown: f[6] ||= ie(() => {}, ["prevent"])
|
|
3329
3344
|
}, [d(sr, {
|
|
3330
3345
|
"max-height": Math.max(0, Ee.value - 28),
|
|
3331
3346
|
focusable: !1
|
|
@@ -3347,12 +3362,12 @@ var vr = {
|
|
|
3347
3362
|
"aria-hidden": "true",
|
|
3348
3363
|
onMouseenter: Ne,
|
|
3349
3364
|
onMouseleave: Le,
|
|
3350
|
-
onMousedown: f[
|
|
3351
|
-
onPointerdown: f[
|
|
3352
|
-
onClick: f[
|
|
3365
|
+
onMousedown: f[9] ||= ie(() => {}, ["prevent"]),
|
|
3366
|
+
onPointerdown: f[10] ||= ie(() => {}, ["stop"]),
|
|
3367
|
+
onClick: f[11] ||= ie(() => {}, ["stop"])
|
|
3353
3368
|
}, [d(sr, {
|
|
3354
3369
|
ref_key: "detailScrollbar",
|
|
3355
|
-
ref:
|
|
3370
|
+
ref: J,
|
|
3356
3371
|
"max-height": se.value.detailHeight,
|
|
3357
3372
|
focusable: !1
|
|
3358
3373
|
}, {
|
|
@@ -3368,7 +3383,7 @@ var vr = {
|
|
|
3368
3383
|
_: 3
|
|
3369
3384
|
}, 8, ["max-height"])], 36)) : o("", !0)])) : o("", !0)], 16));
|
|
3370
3385
|
}
|
|
3371
|
-
}), [["__scopeId", "data-v-
|
|
3386
|
+
}), [["__scopeId", "data-v-5fa956b3"]]), jr = {
|
|
3372
3387
|
duration: {
|
|
3373
3388
|
fast: .18,
|
|
3374
3389
|
normal: .32,
|
|
@@ -3498,12 +3513,12 @@ var Pr = ["aria-label"], Fr = [
|
|
|
3498
3513
|
function q() {
|
|
3499
3514
|
return R() && !!d.value?.contains(document.activeElement);
|
|
3500
3515
|
}
|
|
3501
|
-
function
|
|
3516
|
+
function ae(e = !1) {
|
|
3502
3517
|
if (o.activation !== "auto" || P.value < 0) return;
|
|
3503
3518
|
let t = o.items[P.value];
|
|
3504
3519
|
!t || V(t) || (y.value = P.value, e && q() && X(P.value));
|
|
3505
3520
|
}
|
|
3506
|
-
function
|
|
3521
|
+
function J(e, t) {
|
|
3507
3522
|
if (V(e)) {
|
|
3508
3523
|
t.preventDefault();
|
|
3509
3524
|
return;
|
|
@@ -3522,7 +3537,7 @@ var Pr = ["aria-label"], Fr = [
|
|
|
3522
3537
|
l("update:modelValue", e.value), l("change", i);
|
|
3523
3538
|
}
|
|
3524
3539
|
function Y(e, t, n) {
|
|
3525
|
-
n.defaultPrevented || (y.value = t,
|
|
3540
|
+
n.defaultPrevented || (y.value = t, J(e, n));
|
|
3526
3541
|
}
|
|
3527
3542
|
function X(e) {
|
|
3528
3543
|
let t = m.value[e];
|
|
@@ -3530,8 +3545,8 @@ var Pr = ["aria-label"], Fr = [
|
|
|
3530
3545
|
}
|
|
3531
3546
|
function oe(e, t) {
|
|
3532
3547
|
let n = o.items[e];
|
|
3533
|
-
!n || V(n) || (t.preventDefault(), X(e), o.activation === "auto" && (
|
|
3534
|
-
Object.is(N.value, n.value) ||
|
|
3548
|
+
!n || V(n) || (t.preventDefault(), X(e), o.activation === "auto" && (J(n, t), _().then(() => {
|
|
3549
|
+
Object.is(N.value, n.value) || ae(!0);
|
|
3535
3550
|
})));
|
|
3536
3551
|
}
|
|
3537
3552
|
function se(e, t) {
|
|
@@ -3554,7 +3569,7 @@ var Pr = ["aria-label"], Fr = [
|
|
|
3554
3569
|
if (t.key === "Enter" || t.key === " ") {
|
|
3555
3570
|
let n = o.items[e];
|
|
3556
3571
|
if (!n) return;
|
|
3557
|
-
t.preventDefault(),
|
|
3572
|
+
t.preventDefault(), J(n, t);
|
|
3558
3573
|
}
|
|
3559
3574
|
}
|
|
3560
3575
|
function Z(e, t, n) {
|
|
@@ -3643,7 +3658,7 @@ var Pr = ["aria-label"], Fr = [
|
|
|
3643
3658
|
});
|
|
3644
3659
|
}), U(P, () => {
|
|
3645
3660
|
y.value < 0 || !q() || _().then(() => {
|
|
3646
|
-
|
|
3661
|
+
ae(!0);
|
|
3647
3662
|
});
|
|
3648
3663
|
}), (n, r) => (E(), a(sr, {
|
|
3649
3664
|
ref_key: "scrollbarRef",
|
|
@@ -4162,7 +4177,7 @@ var Gr = { class: "bing-card__face bing-card__front" }, Kr = {
|
|
|
4162
4177
|
}
|
|
4163
4178
|
};
|
|
4164
4179
|
}
|
|
4165
|
-
function
|
|
4180
|
+
function ae() {
|
|
4166
4181
|
switch (r.entrance) {
|
|
4167
4182
|
case "bubble": return {
|
|
4168
4183
|
from: {
|
|
@@ -4208,7 +4223,7 @@ var Gr = { class: "bing-card__face bing-card__front" }, Kr = {
|
|
|
4208
4223
|
};
|
|
4209
4224
|
}
|
|
4210
4225
|
}
|
|
4211
|
-
function
|
|
4226
|
+
function J() {
|
|
4212
4227
|
C?.kill(), C = void 0, g.value = !1, f.value && (K.killTweensOf(f.value), K.set(f.value, {
|
|
4213
4228
|
"--bing-card-press-progress": 0,
|
|
4214
4229
|
"--bing-card-press-ring-scale": .78,
|
|
@@ -4265,7 +4280,7 @@ var Gr = { class: "bing-card__face bing-card__front" }, Kr = {
|
|
|
4265
4280
|
}
|
|
4266
4281
|
function oe(e) {
|
|
4267
4282
|
if (!B() || F.value !== "press" || O || e.button !== 0) return;
|
|
4268
|
-
|
|
4283
|
+
J(), N = !1, A = e.clientX, M = e.clientY, g.value = !0;
|
|
4269
4284
|
let t = l.value?.getBoundingClientRect(), n = t && t.width > 0 ? `${te((e.clientX - t.left) / t.width * 100, 0, 100)}%` : "50%", i = t && t.height > 0 ? `${te((e.clientY - t.top) / t.height * 100, 0, 100)}%` : "50%";
|
|
4270
4285
|
try {
|
|
4271
4286
|
e.currentTarget?.setPointerCapture?.(e.pointerId);
|
|
@@ -4306,13 +4321,13 @@ var Gr = { class: "bing-card__face bing-card__front" }, Kr = {
|
|
|
4306
4321
|
function Z(e) {
|
|
4307
4322
|
if (!C) return;
|
|
4308
4323
|
let t = e.clientX - A, n = e.clientY - M;
|
|
4309
|
-
Math.hypot(t, n) > ti &&
|
|
4324
|
+
Math.hypot(t, n) > ti && J();
|
|
4310
4325
|
}
|
|
4311
4326
|
function ce() {
|
|
4312
|
-
|
|
4327
|
+
J(), N && r.longPressRelease === "restore" && X(!1), N = !1;
|
|
4313
4328
|
}
|
|
4314
4329
|
function le() {
|
|
4315
|
-
N ||
|
|
4330
|
+
N || J(), !D && ie();
|
|
4316
4331
|
}
|
|
4317
4332
|
function ue() {
|
|
4318
4333
|
let e = l.value, t = u.value;
|
|
@@ -4324,7 +4339,7 @@ var Gr = { class: "bing-card__face bing-card__front" }, Kr = {
|
|
|
4324
4339
|
});
|
|
4325
4340
|
return;
|
|
4326
4341
|
}
|
|
4327
|
-
let n =
|
|
4342
|
+
let n = ae();
|
|
4328
4343
|
y = K.context(() => {
|
|
4329
4344
|
let e = K.fromTo(t, n.from, {
|
|
4330
4345
|
...n.to,
|
|
@@ -4373,11 +4388,11 @@ var Gr = { class: "bing-card__face bing-card__front" }, Kr = {
|
|
|
4373
4388
|
r.flipTrigger,
|
|
4374
4389
|
r.disabled
|
|
4375
4390
|
], () => {
|
|
4376
|
-
|
|
4391
|
+
J(), m.value = !1, _(de);
|
|
4377
4392
|
}, { flush: "post" }), S(() => {
|
|
4378
4393
|
_(de);
|
|
4379
4394
|
}), ee(() => {
|
|
4380
|
-
|
|
4395
|
+
J(), T?.kill(), T = void 0, O = !1, w?.kill(), w = void 0, D = !1, x?.disconnect(), x = void 0, y?.revert(), y = void 0, K.killTweensOf([
|
|
4381
4396
|
u.value,
|
|
4382
4397
|
d.value,
|
|
4383
4398
|
f.value,
|
|
@@ -4796,10 +4811,10 @@ var Gr = { class: "bing-card__face bing-card__front" }, Kr = {
|
|
|
4796
4811
|
y: re(e?.y, 0)
|
|
4797
4812
|
};
|
|
4798
4813
|
}
|
|
4799
|
-
function
|
|
4814
|
+
function ae(e) {
|
|
4800
4815
|
return Math.round(e * 1e3) / 1e3;
|
|
4801
4816
|
}
|
|
4802
|
-
function
|
|
4817
|
+
function J(e, t, n) {
|
|
4803
4818
|
return Math.min(n, Math.max(t, e));
|
|
4804
4819
|
}
|
|
4805
4820
|
function Y(e, t) {
|
|
@@ -4887,15 +4902,15 @@ var Gr = { class: "bing-card__face bing-card__front" }, Kr = {
|
|
|
4887
4902
|
function he(e, t, n) {
|
|
4888
4903
|
let r = me();
|
|
4889
4904
|
if (u.lockAspectRatio && n && n.aspectRatio > 0) {
|
|
4890
|
-
let i = n.aspectRatio, a =
|
|
4905
|
+
let i = n.aspectRatio, a = J(_e(e, t, n.direction, n) === "width" ? e : t * i, Math.max(r.minWidth, r.minHeight * i), Math.min(r.maxWidth, r.maxHeight * i));
|
|
4891
4906
|
return {
|
|
4892
4907
|
width: a,
|
|
4893
4908
|
height: a / i
|
|
4894
4909
|
};
|
|
4895
4910
|
}
|
|
4896
4911
|
return {
|
|
4897
|
-
width:
|
|
4898
|
-
height:
|
|
4912
|
+
width: J(e, r.minWidth, r.maxWidth),
|
|
4913
|
+
height: J(t, r.minHeight, r.maxHeight)
|
|
4899
4914
|
};
|
|
4900
4915
|
}
|
|
4901
4916
|
function ge(e, t, n, r) {
|
|
@@ -4980,12 +4995,12 @@ var Gr = { class: "bing-card__face bing-card__front" }, Kr = {
|
|
|
4980
4995
|
let l = he(o, s, e), u = ye(l, e), d = be(l, u, e);
|
|
4981
4996
|
return l = d.size, u = d.position, {
|
|
4982
4997
|
size: {
|
|
4983
|
-
width:
|
|
4984
|
-
height:
|
|
4998
|
+
width: ae(l.width),
|
|
4999
|
+
height: ae(l.height)
|
|
4985
5000
|
},
|
|
4986
5001
|
position: {
|
|
4987
|
-
x:
|
|
4988
|
-
y:
|
|
5002
|
+
x: ae(u.x),
|
|
5003
|
+
y: ae(u.y)
|
|
4989
5004
|
}
|
|
4990
5005
|
};
|
|
4991
5006
|
}
|
|
@@ -12352,14 +12367,14 @@ var Bp = ["aria-label"], Vp = {
|
|
|
12352
12367
|
w.value,
|
|
12353
12368
|
D.value
|
|
12354
12369
|
], () => {
|
|
12355
|
-
|
|
12370
|
+
ae();
|
|
12356
12371
|
}, { immediate: !0 }), S(() => {
|
|
12357
12372
|
H(), x = new MutationObserver(H), x.observe(document.documentElement, {
|
|
12358
12373
|
attributeFilter: ["data-bing-theme"],
|
|
12359
12374
|
attributes: !0
|
|
12360
12375
|
}), C = window.matchMedia?.("(prefers-color-scheme: dark)"), C?.addEventListener?.("change", H);
|
|
12361
12376
|
}), ee(() => {
|
|
12362
|
-
g += 1,
|
|
12377
|
+
g += 1, J(), x?.disconnect(), C?.removeEventListener?.("change", H), x = void 0, C = void 0;
|
|
12363
12378
|
});
|
|
12364
12379
|
function ne() {
|
|
12365
12380
|
if (typeof document > "u") return "vitesse-light";
|
|
@@ -12397,7 +12412,7 @@ var Bp = ["aria-label"], Vp = {
|
|
|
12397
12412
|
let t = {};
|
|
12398
12413
|
return e.color && (t.color = e.color), e.fontStyle !== void 0 && ((e.fontStyle & im) === im && (t.fontStyle = "italic"), (e.fontStyle & am) === am && (t.fontWeight = "700"), (e.fontStyle & om) === om && (t.textDecoration = "underline")), t;
|
|
12399
12414
|
}
|
|
12400
|
-
async function
|
|
12415
|
+
async function ae() {
|
|
12401
12416
|
let e = g += 1;
|
|
12402
12417
|
p.value = "loading", f.value = re(l.code);
|
|
12403
12418
|
try {
|
|
@@ -12410,7 +12425,7 @@ var Bp = ["aria-label"], Vp = {
|
|
|
12410
12425
|
f.value = re(l.code), p.value = "error", u("highlightError", n);
|
|
12411
12426
|
}
|
|
12412
12427
|
}
|
|
12413
|
-
function
|
|
12428
|
+
function J() {
|
|
12414
12429
|
if (y === void 0 || typeof window > "u") {
|
|
12415
12430
|
y = void 0;
|
|
12416
12431
|
return;
|
|
@@ -12418,7 +12433,7 @@ var Bp = ["aria-label"], Vp = {
|
|
|
12418
12433
|
window.clearTimeout(y), y = void 0;
|
|
12419
12434
|
}
|
|
12420
12435
|
function Y() {
|
|
12421
|
-
|
|
12436
|
+
J(), !(typeof window > "u") && (y = window.setTimeout(() => {
|
|
12422
12437
|
y = void 0, m.value = !1;
|
|
12423
12438
|
}, Math.max(0, l.copyResetDelay)));
|
|
12424
12439
|
}
|
|
@@ -12734,16 +12749,16 @@ var bm = [
|
|
|
12734
12749
|
originY: 0,
|
|
12735
12750
|
placement: u.placement,
|
|
12736
12751
|
top: 0
|
|
12737
|
-
}), N, P, I, L = 0, R = !1, B = !1, V = !1, te = !1, H = "manual", W = i(() => u.id ?? S), re = !!(y?.vnode.props && (Object.prototype.hasOwnProperty.call(y.vnode.props, "modelValue") || Object.prototype.hasOwnProperty.call(y.vnode.props, "model-value"))), q = i(() => !u.disabled && (re ? !!u.modelValue : O.value)),
|
|
12752
|
+
}), N, P, I, L = 0, R = !1, B = !1, V = !1, te = !1, H = "manual", W = i(() => u.id ?? S), re = !!(y?.vnode.props && (Object.prototype.hasOwnProperty.call(y.vnode.props, "modelValue") || Object.prototype.hasOwnProperty.call(y.vnode.props, "model-value"))), q = i(() => !u.disabled && (re ? !!u.modelValue : O.value)), ae = gr({
|
|
12738
12753
|
open: () => gm.value && fm.value?.id === x,
|
|
12739
12754
|
elements: () => [C.value, mm.value],
|
|
12740
12755
|
zIndex: () => u.zIndex,
|
|
12741
12756
|
closeOnEscape: () => u.closeOnEsc,
|
|
12742
12757
|
onEscape: () => it("escape")
|
|
12743
|
-
}),
|
|
12758
|
+
}), J = i(() => {
|
|
12744
12759
|
let e = Array.isArray(u.trigger) ? u.trigger : [u.trigger], t = e.length > 0 ? e : ["manual"];
|
|
12745
12760
|
return [...new Set(t)];
|
|
12746
|
-
}), Y = i(() =>
|
|
12761
|
+
}), Y = i(() => J.value.includes("hover")), X = i(() => J.value.includes("click")), oe = i(() => J.value.includes("manual")), se = i(() => Math.max(0, u.openDelay)), Z = i(() => Math.max(0, u.closeDelay)), ce = i(() => Math.max(0, u.offset)), le = i(() => Math.max(0, u.viewportPadding)), ue = i(() => typeof u.maxWidth == "number" ? `${Math.max(1, u.maxWidth)}px` : u.maxWidth), de = i(() => Wr("bing-tooltip", {
|
|
12747
12762
|
glass: u.glass,
|
|
12748
12763
|
glassBlur: u.glassBlur,
|
|
12749
12764
|
glassOpacity: u.glassOpacity,
|
|
@@ -13189,8 +13204,8 @@ var bm = [
|
|
|
13189
13204
|
getPlacement: () => u.placement,
|
|
13190
13205
|
getTooltipId: () => W.value,
|
|
13191
13206
|
getViewportPadding: () => le.value,
|
|
13192
|
-
getZIndex: () =>
|
|
13193
|
-
isTopLayer: (e) =>
|
|
13207
|
+
getZIndex: () => ae.zIndex.value,
|
|
13208
|
+
isTopLayer: (e) => ae.isTop(e),
|
|
13194
13209
|
hide: it,
|
|
13195
13210
|
scheduleClose: st
|
|
13196
13211
|
};
|
|
@@ -13282,7 +13297,7 @@ var bm = [
|
|
|
13282
13297
|
_: 1
|
|
13283
13298
|
})], 512)], 46, Sm)) : o("", !0)])) : o("", !0)], 42, bm));
|
|
13284
13299
|
}
|
|
13285
|
-
}), [["__scopeId", "data-v-
|
|
13300
|
+
}), [["__scopeId", "data-v-18e56d25"]]), Tm = { class: "bing-select__control" }, Em = [
|
|
13286
13301
|
"id",
|
|
13287
13302
|
"disabled",
|
|
13288
13303
|
"aria-label",
|
|
@@ -13388,7 +13403,7 @@ var bm = [
|
|
|
13388
13403
|
keyboard: !1,
|
|
13389
13404
|
smoothTouchpad: !1,
|
|
13390
13405
|
respectReducedMotion: !0
|
|
13391
|
-
})), M = `bing-select-${te()}`, N = `${M}-listbox`, P = k(null), F = k(null), L = k(null), R = k(null), B = k(null), V = k(null), H = k(null), W = k(null), q = k(null),
|
|
13406
|
+
})), M = `bing-select-${te()}`, N = `${M}-listbox`, P = k(null), F = k(null), L = k(null), R = k(null), B = k(null), V = k(null), H = k(null), W = k(null), q = k(null), ae = k(null), J = k(null), Y = k([]), X = k(!1), oe = k(!1), se = k(!1), Z = k(-1), ce = k(!1), le = k(!1), ue = k(-1), de = k("right"), fe = k(""), pe = k(2 ** 53 - 1), me = k(0), he = k(0), ge = k(0), _e = k({
|
|
13392
13407
|
align: "start",
|
|
13393
13408
|
left: 0,
|
|
13394
13409
|
minHeight: 0,
|
|
@@ -13445,7 +13460,7 @@ var bm = [
|
|
|
13445
13460
|
P.value,
|
|
13446
13461
|
V.value,
|
|
13447
13462
|
W.value,
|
|
13448
|
-
|
|
13463
|
+
ae.value
|
|
13449
13464
|
],
|
|
13450
13465
|
zIndex: () => 3e3,
|
|
13451
13466
|
onEscape: () => Or(!0)
|
|
@@ -13720,7 +13735,7 @@ var bm = [
|
|
|
13720
13735
|
return e < 0 || !Rt() ? null : document.getElementById(Qt(e));
|
|
13721
13736
|
}
|
|
13722
13737
|
function Gn(e) {
|
|
13723
|
-
let t = V.value, n =
|
|
13738
|
+
let t = V.value, n = ae.value;
|
|
13724
13739
|
if (!t || !n || !Rt()) return null;
|
|
13725
13740
|
let r = t.getBoundingClientRect(), i = Nr(e).getBoundingClientRect(), a = n.getBoundingClientRect(), o = a.width || 236, s = a.height || 132, c = window.innerWidth - r.right - 12 - 12, l = r.left - 12 - 12, u = c >= o || c >= l ? "right" : "left", d = u === "right" ? r.right + 12 : r.left - o - 12, f = i.top + i.height / 2 - s / 2;
|
|
13726
13741
|
return {
|
|
@@ -13730,12 +13745,12 @@ var bm = [
|
|
|
13730
13745
|
};
|
|
13731
13746
|
}
|
|
13732
13747
|
function Kn() {
|
|
13733
|
-
return Ue(
|
|
13748
|
+
return Ue(ae.value);
|
|
13734
13749
|
}
|
|
13735
13750
|
function qn(e, t = !1, n) {
|
|
13736
13751
|
let r = We({
|
|
13737
|
-
panel:
|
|
13738
|
-
content:
|
|
13752
|
+
panel: ae.value,
|
|
13753
|
+
content: J.value,
|
|
13739
13754
|
getTarget: () => Gn(e),
|
|
13740
13755
|
animateContent: t,
|
|
13741
13756
|
previousSnapshot: n,
|
|
@@ -13757,12 +13772,12 @@ var bm = [
|
|
|
13757
13772
|
}
|
|
13758
13773
|
function Xn(e = !1) {
|
|
13759
13774
|
yn(), vn();
|
|
13760
|
-
let t =
|
|
13775
|
+
let t = ae.value;
|
|
13761
13776
|
if (!t) {
|
|
13762
13777
|
se.value = !1, ue.value = -1;
|
|
13763
13778
|
return;
|
|
13764
13779
|
}
|
|
13765
|
-
if (K.killTweensOf([t,
|
|
13780
|
+
if (K.killTweensOf([t, J.value].filter(Boolean)), e || Vt()) {
|
|
13766
13781
|
K.set(t, {
|
|
13767
13782
|
autoAlpha: 0,
|
|
13768
13783
|
scale: .96,
|
|
@@ -13969,7 +13984,7 @@ var bm = [
|
|
|
13969
13984
|
return e.key !== "/" || e.altKey || e.ctrlKey || e.metaKey || !X.value || !He.value || Sr(e.target) ? !1 : (e.preventDefault(), xr(), !0);
|
|
13970
13985
|
}
|
|
13971
13986
|
function wr(e) {
|
|
13972
|
-
return e instanceof Node ? !!(P.value?.contains(e) || V.value?.contains(e) || W.value?.contains(e) ||
|
|
13987
|
+
return e instanceof Node ? !!(P.value?.contains(e) || V.value?.contains(e) || W.value?.contains(e) || ae.value?.contains(e)) : !1;
|
|
13973
13988
|
}
|
|
13974
13989
|
function Tr() {
|
|
13975
13990
|
if (!g) return;
|
|
@@ -14003,7 +14018,7 @@ var bm = [
|
|
|
14003
14018
|
}
|
|
14004
14019
|
}
|
|
14005
14020
|
function Ar(e) {
|
|
14006
|
-
let t = P.value, n = V.value, r = W.value, i =
|
|
14021
|
+
let t = P.value, n = V.value, r = W.value, i = ae.value;
|
|
14007
14022
|
!t || !(e.target instanceof Node) || rt.contains(e.target) || !t.contains(e.target) && !n?.contains(e.target) && !r?.contains(e.target) && !i?.contains(e.target) && Or();
|
|
14008
14023
|
}
|
|
14009
14024
|
function jr(e) {
|
|
@@ -14262,8 +14277,8 @@ var bm = [
|
|
|
14262
14277
|
V.value,
|
|
14263
14278
|
W.value,
|
|
14264
14279
|
...fr(),
|
|
14265
|
-
J.value,
|
|
14266
14280
|
ae.value,
|
|
14281
|
+
J.value,
|
|
14267
14282
|
...Y.value,
|
|
14268
14283
|
...dr()
|
|
14269
14284
|
].filter(Boolean));
|
|
@@ -14530,7 +14545,7 @@ var bm = [
|
|
|
14530
14545
|
se.value && Nt.value ? (E(), s("div", {
|
|
14531
14546
|
key: 2,
|
|
14532
14547
|
ref_key: "optionDetailPanelRef",
|
|
14533
|
-
ref:
|
|
14548
|
+
ref: ae,
|
|
14534
14549
|
class: v(["bing-select__option-detail-panel", `is-placement-${de.value}`]),
|
|
14535
14550
|
style: b($e.value),
|
|
14536
14551
|
"aria-hidden": "true",
|
|
@@ -14540,7 +14555,7 @@ var bm = [
|
|
|
14540
14555
|
onMouseleave: i[5] ||= (e) => Zn()
|
|
14541
14556
|
}, [c("div", {
|
|
14542
14557
|
ref_key: "optionDetailContentRef",
|
|
14543
|
-
ref:
|
|
14558
|
+
ref: J,
|
|
14544
14559
|
class: "bing-select__option-detail-content"
|
|
14545
14560
|
}, [j(r.$slots, "option-detail", {
|
|
14546
14561
|
option: Nt.value,
|
|
@@ -14707,7 +14722,7 @@ var bm = [
|
|
|
14707
14722
|
label: "HSL",
|
|
14708
14723
|
value: "hsl"
|
|
14709
14724
|
}
|
|
14710
|
-
], F = k(null), L = k(null), R = k(null), B = k(null), V = k(st(p.modelValue)), te = k(ct(p.modelValue)), ne = k(V.value), H = k(te.value), W = k("hex"), q = k(""),
|
|
14725
|
+
], F = k(null), L = k(null), R = k(null), B = k(null), V = k(st(p.modelValue)), te = k(ct(p.modelValue)), ne = k(V.value), H = k(te.value), W = k("hex"), q = k(""), ae = k(!1), J = k(!1), Y = k(pt(lt(ne.value)).h), X = k(!1), oe = k(!1), se = k(null), Z = k({
|
|
14711
14726
|
left: 0,
|
|
14712
14727
|
placement: "bottom",
|
|
14713
14728
|
top: 0,
|
|
@@ -14774,7 +14789,7 @@ var bm = [
|
|
|
14774
14789
|
}), U(() => [p.panelWidth, p.presets.length], () => {
|
|
14775
14790
|
X.value && _(nn);
|
|
14776
14791
|
}), U(Ie, (e) => {
|
|
14777
|
-
|
|
14792
|
+
ae.value || (q.value = e.value, J.value = !1);
|
|
14778
14793
|
}, { immediate: !0 }), U(() => S.value, (e) => {
|
|
14779
14794
|
e && pn();
|
|
14780
14795
|
}), ee(() => {
|
|
@@ -15104,28 +15119,28 @@ var bm = [
|
|
|
15104
15119
|
Tt(e.value, "preset", { immediate: !0 });
|
|
15105
15120
|
}
|
|
15106
15121
|
function Bt() {
|
|
15107
|
-
q.value = Ie.value.value,
|
|
15122
|
+
q.value = Ie.value.value, J.value = !1;
|
|
15108
15123
|
}
|
|
15109
15124
|
function Ut(e = !1) {
|
|
15110
15125
|
let t = rt(q.value);
|
|
15111
|
-
return t ? (
|
|
15126
|
+
return t ? (J.value = !1, Et(t, "input", { immediate: e }), e && Bt(), !0) : (J.value = q.value.trim().length > 0, !1);
|
|
15112
15127
|
}
|
|
15113
15128
|
function Wt() {
|
|
15114
|
-
|
|
15129
|
+
ae.value = !0;
|
|
15115
15130
|
}
|
|
15116
15131
|
function Gt(e) {
|
|
15117
15132
|
let t = e.target;
|
|
15118
15133
|
t instanceof HTMLInputElement && (q.value = t.value, Ut());
|
|
15119
15134
|
}
|
|
15120
15135
|
function Kt() {
|
|
15121
|
-
|
|
15136
|
+
ae.value = !1, Ut(!0) || Bt(), g?.handleControlBlur();
|
|
15122
15137
|
}
|
|
15123
15138
|
function qt(e) {
|
|
15124
15139
|
if (e.key === "Enter") {
|
|
15125
|
-
e.preventDefault(),
|
|
15140
|
+
e.preventDefault(), ae.value = !1, Ut(!0), e.currentTarget?.blur();
|
|
15126
15141
|
return;
|
|
15127
15142
|
}
|
|
15128
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
15143
|
+
e.key === "Escape" && (e.preventDefault(), ae.value = !1, Bt(), e.currentTarget?.blur());
|
|
15129
15144
|
}
|
|
15130
15145
|
function Jt() {
|
|
15131
15146
|
!ze() || ce || (window.addEventListener("pointerdown", gn, !0), ce = !0);
|
|
@@ -15484,7 +15499,7 @@ var bm = [
|
|
|
15484
15499
|
class: "bing-color-picker__preset-color",
|
|
15485
15500
|
style: b({ backgroundColor: e.value })
|
|
15486
15501
|
}, null, 4)])], 10, ih)), [[z(u)]])), 128))]),
|
|
15487
|
-
c("div", { class: v(["bing-color-picker__format-editor", { "is-invalid":
|
|
15502
|
+
c("div", { class: v(["bing-color-picker__format-editor", { "is-invalid": J.value }]) }, [
|
|
15488
15503
|
d(Bm, {
|
|
15489
15504
|
id: M,
|
|
15490
15505
|
modelValue: W.value,
|
|
@@ -15514,7 +15529,7 @@ var bm = [
|
|
|
15514
15529
|
class: "bing-color-picker__format-input",
|
|
15515
15530
|
type: "text",
|
|
15516
15531
|
value: q.value,
|
|
15517
|
-
"aria-invalid":
|
|
15532
|
+
"aria-invalid": J.value || void 0,
|
|
15518
15533
|
disabled: z(S),
|
|
15519
15534
|
autocomplete: "off",
|
|
15520
15535
|
autocapitalize: "off",
|
|
@@ -16601,7 +16616,7 @@ var qh = /* @__PURE__ */ le(Hh(), 1), Jh = /* @__PURE__ */ le(Uh(), 1), Yh = [
|
|
|
16601
16616
|
year: "year"
|
|
16602
16617
|
}, { vClickFeedback: m, playClickFeedback: h } = tt(), g = n, y = l, x = _r(), { formItem: S, resolvedId: C, resolvedSize: w, resolvedDisabled: T, resolvedStatus: D, resolvedAriaDescribedby: O } = at(g);
|
|
16603
16618
|
ot();
|
|
16604
|
-
let j = k(null), M = k(null), N = k(null), P = k(null), F = {}, L = k(!1), R = k(!1), B = k(!1), V = k((0, qh.default)().startOf("month")), te = k((0, qh.default)().year()), ne = k("calendar"), H = k("start"), W = k(null), q = k(null),
|
|
16619
|
+
let j = k(null), M = k(null), N = k(null), P = k(null), F = {}, L = k(!1), R = k(!1), B = k(!1), V = k((0, qh.default)().startOf("month")), te = k((0, qh.default)().year()), ne = k("calendar"), H = k("start"), W = k(null), q = k(null), ae = k(null), J = k(null), Y = k({
|
|
16605
16620
|
left: 0,
|
|
16606
16621
|
placement: "bottom",
|
|
16607
16622
|
top: 0,
|
|
@@ -16708,7 +16723,7 @@ var qh = /* @__PURE__ */ le(Hh(), 1), Jh = /* @__PURE__ */ le(Uh(), 1), Yh = [
|
|
|
16708
16723
|
t.scrollTo(Math.max(0, s));
|
|
16709
16724
|
});
|
|
16710
16725
|
}
|
|
16711
|
-
let Ge = i(() => g.range ? (H.value === "start" ?
|
|
16726
|
+
let Ge = i(() => g.range ? (H.value === "start" ? ae.value : J.value) ?? gt() : q.value ?? gt()), Ke = i(() => me.value ? g.range ? !!(ae.value && J.value && !Dt(ae.value, "start") && !Dt(J.value, "end") && (g.type !== "time" || !wt(ae.value, J.value))) : !!(q.value && !Dt(q.value, "start")) : !0), qe = i(() => jn()), Je = i(() => g.type === "year" || ne.value === "year" ? "year" : g.type === "month" ? "month" : "date"), Ye = i(() => g.type !== "year" && g.type !== "time"), Xe = i(() => Je.value === "year" ? `${Pe.value} - ${Pe.value + 11}` : Je.value === "month" ? String(te.value) : new Intl.DateTimeFormat(g.locale, {
|
|
16712
16727
|
year: "numeric",
|
|
16713
16728
|
month: "long"
|
|
16714
16729
|
}).format(V.value.toDate()));
|
|
@@ -16944,22 +16959,22 @@ var qh = /* @__PURE__ */ le(Hh(), 1), Jh = /* @__PURE__ */ le(Uh(), 1), Yh = [
|
|
|
16944
16959
|
});
|
|
16945
16960
|
}
|
|
16946
16961
|
function Nt(e) {
|
|
16947
|
-
let t = g.range ? H.value === "start" ?
|
|
16962
|
+
let t = g.range ? H.value === "start" ? ae.value : J.value : q.value;
|
|
16948
16963
|
return g.type !== "datetime" || !t ? vt(e) : vt(e.hour(t.hour()).minute(t.minute()).second(t.second()));
|
|
16949
16964
|
}
|
|
16950
16965
|
function Pt() {
|
|
16951
16966
|
if (ne.value = "calendar", g.range) {
|
|
16952
16967
|
let e = Array.isArray(g.modelValue) ? g.modelValue : null;
|
|
16953
|
-
|
|
16968
|
+
ae.value = e ? _t(e[0]) : null, J.value = e ? _t(e[1]) : null, q.value = null, H.value = ae.value && !J.value ? "end" : "start", Ft(ae.value ?? J.value ?? (0, qh.default)());
|
|
16954
16969
|
return;
|
|
16955
16970
|
}
|
|
16956
|
-
q.value = typeof g.modelValue == "string" ? _t(g.modelValue) : null,
|
|
16971
|
+
q.value = typeof g.modelValue == "string" ? _t(g.modelValue) : null, ae.value = null, J.value = null, Ft(q.value ?? (0, qh.default)());
|
|
16957
16972
|
}
|
|
16958
16973
|
function Ft(e) {
|
|
16959
16974
|
V.value = e.startOf("month"), te.value = e.year();
|
|
16960
16975
|
}
|
|
16961
16976
|
function It() {
|
|
16962
|
-
return g.range ? [
|
|
16977
|
+
return g.range ? [ae.value, J.value] : [q.value];
|
|
16963
16978
|
}
|
|
16964
16979
|
function Lt(e, t, n) {
|
|
16965
16980
|
return n ? e.startOf(n).valueOf() - t.startOf(n).valueOf() : xt(e, t);
|
|
@@ -16968,7 +16983,7 @@ var qh = /* @__PURE__ */ le(Hh(), 1), Jh = /* @__PURE__ */ le(Uh(), 1), Yh = [
|
|
|
16968
16983
|
return It().some((n) => n && Lt(n, e, t) === 0);
|
|
16969
16984
|
}
|
|
16970
16985
|
function Bt(e, t) {
|
|
16971
|
-
let n =
|
|
16986
|
+
let n = ae.value, r = J.value ?? W.value;
|
|
16972
16987
|
if (!g.range || !n || !r) return !1;
|
|
16973
16988
|
let i = Ct(n, r) ? n : r, a = Ct(n, r) ? r : n;
|
|
16974
16989
|
return t ? !e.endOf(t).isBefore(i) && !e.startOf(t).isAfter(a) : !Ct(e, i) && !wt(e, a);
|
|
@@ -16987,11 +17002,11 @@ var qh = /* @__PURE__ */ le(Hh(), 1), Jh = /* @__PURE__ */ le(Uh(), 1), Yh = [
|
|
|
16987
17002
|
q.value = t, me.value || Jt(t);
|
|
16988
17003
|
return;
|
|
16989
17004
|
}
|
|
16990
|
-
if (!
|
|
16991
|
-
|
|
17005
|
+
if (!ae.value || J.value) {
|
|
17006
|
+
ae.value = t, J.value = null, H.value = "end";
|
|
16992
17007
|
return;
|
|
16993
17008
|
}
|
|
16994
|
-
Ct(t,
|
|
17009
|
+
Ct(t, ae.value) ? (J.value = ae.value, ae.value = t) : J.value = t, H.value = "end";
|
|
16995
17010
|
}
|
|
16996
17011
|
}
|
|
16997
17012
|
function Xt(e) {
|
|
@@ -17009,18 +17024,18 @@ var qh = /* @__PURE__ */ le(Hh(), 1), Jh = /* @__PURE__ */ le(Uh(), 1), Yh = [
|
|
|
17009
17024
|
let n = Ge.value[e](t);
|
|
17010
17025
|
if (g.range) {
|
|
17011
17026
|
if (H.value === "start") {
|
|
17012
|
-
|
|
17027
|
+
ae.value = vt(n);
|
|
17013
17028
|
return;
|
|
17014
17029
|
}
|
|
17015
|
-
|
|
17030
|
+
J.value = vt(n);
|
|
17016
17031
|
return;
|
|
17017
17032
|
}
|
|
17018
17033
|
q.value = vt(n);
|
|
17019
17034
|
}
|
|
17020
17035
|
function $t() {
|
|
17021
17036
|
if (Ke.value) {
|
|
17022
|
-
if (g.range &&
|
|
17023
|
-
let e = Ct(
|
|
17037
|
+
if (g.range && ae.value && J.value) {
|
|
17038
|
+
let e = Ct(ae.value, J.value) ? ae.value : J.value, t = Ct(ae.value, J.value) ? J.value : ae.value;
|
|
17024
17039
|
Gt([yt(e), yt(t)], !0), un(!0);
|
|
17025
17040
|
return;
|
|
17026
17041
|
}
|
|
@@ -17374,11 +17389,11 @@ var qh = /* @__PURE__ */ le(Hh(), 1), Jh = /* @__PURE__ */ le(Uh(), 1), Yh = [
|
|
|
17374
17389
|
class: v(["bing-date-picker__range-tab", { "is-active": H.value === "start" }]),
|
|
17375
17390
|
type: "button",
|
|
17376
17391
|
onClick: i[3] ||= (e) => H.value = "start"
|
|
17377
|
-
}, [u(I(
|
|
17392
|
+
}, [u(I(ae.value?.format(de.value) || n.startPlaceholder), 1)], 2)), [[z(m)]]), re((E(), s("button", {
|
|
17378
17393
|
class: v(["bing-date-picker__range-tab", { "is-active": H.value === "end" }]),
|
|
17379
17394
|
type: "button",
|
|
17380
17395
|
onClick: i[4] ||= (e) => H.value = "end"
|
|
17381
|
-
}, [u(I(
|
|
17396
|
+
}, [u(I(J.value?.format(de.value) || n.endPlaceholder), 1)], 2)), [[z(m)]])])) : o("", !0),
|
|
17382
17397
|
n.type === "time" ? o("", !0) : (E(), s("div", eg, [c("div", tg, [
|
|
17383
17398
|
c("div", ng, [c("span", { class: v(["bing-date-picker__nav-button-slot", { "is-empty": Je.value !== "date" }]) }, [Je.value === "date" ? (E(), a(wm, {
|
|
17384
17399
|
key: 0,
|
|
@@ -18093,13 +18108,13 @@ var Ag = {
|
|
|
18093
18108
|
function q() {
|
|
18094
18109
|
return typeof window < "u" && typeof document < "u";
|
|
18095
18110
|
}
|
|
18096
|
-
function
|
|
18111
|
+
function ae() {
|
|
18097
18112
|
return q() && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
18098
18113
|
}
|
|
18099
|
-
let { lock:
|
|
18114
|
+
let { lock: J, unlock: Y } = kg();
|
|
18100
18115
|
function X() {
|
|
18101
18116
|
if (l.modelValue && l.lockScroll) {
|
|
18102
|
-
|
|
18117
|
+
J();
|
|
18103
18118
|
return;
|
|
18104
18119
|
}
|
|
18105
18120
|
l.lockScroll || Y();
|
|
@@ -18175,7 +18190,7 @@ var Ag = {
|
|
|
18175
18190
|
];
|
|
18176
18191
|
}
|
|
18177
18192
|
function _e() {
|
|
18178
|
-
if (he(), !l.modelValue || !l.overlayBlur || !l.overlayOrbsAnimated ||
|
|
18193
|
+
if (he(), !l.modelValue || !l.overlayBlur || !l.overlayOrbsAnimated || ae() || !D.value) return;
|
|
18179
18194
|
let e = Array.from(D.value.querySelectorAll(".bing-dialog__orb"));
|
|
18180
18195
|
e.length !== 0 && (S = K.context(() => {
|
|
18181
18196
|
e.forEach((e, t) => {
|
|
@@ -18233,7 +18248,7 @@ var Ag = {
|
|
|
18233
18248
|
t.overlay,
|
|
18234
18249
|
t.overlayBlur,
|
|
18235
18250
|
t.ambience
|
|
18236
|
-
]), r =
|
|
18251
|
+
]), r = ae() ? 0 : e ? .32 : .42, i = e ? "power3.inOut" : "power4.out";
|
|
18237
18252
|
if (!t.dialog || !t.peekAnchor) return;
|
|
18238
18253
|
ye();
|
|
18239
18254
|
let a = .08;
|
|
@@ -18641,7 +18656,7 @@ var Ag = {
|
|
|
18641
18656
|
function q(e, t, n) {
|
|
18642
18657
|
return Math.min(n, Math.max(t, e));
|
|
18643
18658
|
}
|
|
18644
|
-
function
|
|
18659
|
+
function ae(e, t) {
|
|
18645
18660
|
if (typeof e == "number") return Math.max(0, e);
|
|
18646
18661
|
if (typeof e == "string") {
|
|
18647
18662
|
let n = Number.parseFloat(e);
|
|
@@ -18649,7 +18664,7 @@ var Ag = {
|
|
|
18649
18664
|
}
|
|
18650
18665
|
return t;
|
|
18651
18666
|
}
|
|
18652
|
-
function
|
|
18667
|
+
function J(e) {
|
|
18653
18668
|
let [t, n] = e.split("-");
|
|
18654
18669
|
return {
|
|
18655
18670
|
align: n,
|
|
@@ -18979,7 +18994,7 @@ var Ag = {
|
|
|
18979
18994
|
if (!ie() || !m.value || !h.value) return;
|
|
18980
18995
|
let e = u.trigger === "contextmenu" ? 0 : 8, t = Y();
|
|
18981
18996
|
if (!t) return;
|
|
18982
|
-
let n = h.value, r = n.querySelector(".bing-dropdown__body"), i = window.innerWidth, a = window.innerHeight, { align: o, side: s } =
|
|
18997
|
+
let n = h.value, r = n.querySelector(".bing-dropdown__body"), i = window.innerWidth, a = window.innerHeight, { align: o, side: s } = J(u.placement), c = n.getBoundingClientRect(), l = nt(n, r), d = ae(u.minWidth, 228), f = c.width || d, p = Math.max(0, i - 24), g = Math.min(f, p), _ = a - t.bottom - e - 12, v = t.top - e - 12, y = t.left - e - 12, b = i - t.right - e - 12, ee = l, x, S, C;
|
|
18983
18998
|
if (s === "left" || s === "right") {
|
|
18984
18999
|
x = s === "left" ? y >= g || y >= b ? "left" : "right" : b >= g || b >= y ? "right" : "left";
|
|
18985
19000
|
let n = x === "left" ? t.left - e - g : t.right + e, r = o === "end" ? t.bottom - ee : t.top, c = Math.max(12, i - 12 - g), l = Math.max(12, a - 12 - ee);
|
|
@@ -19191,8 +19206,8 @@ var Ag = {
|
|
|
19191
19206
|
let { playClickFeedback: r } = tt(), l = e, d = n, f = _r(), p = ne(), m = h(Vg, null), g = k(), y = k(), x = k(), S = k(!1), C = k(!1), w = k(!1), T = k("right"), D = k({
|
|
19192
19207
|
left: 0,
|
|
19193
19208
|
top: 0
|
|
19194
|
-
}), O, A = 0, N = !1, P, F, L = !1, R = !1, B = `bing-dropdown-submenu-${++t_}`, V = i(() => l.shortcut ? Array.isArray(l.shortcut) ? l.shortcut : [l.shortcut] : []), te = i(() => V.value.join("+")), H = i(() => !!(l.icon || p.prefix)), W = i(() => !!(l.description || p.description)), re = i(() => !!p.submenu), ie = i(() => !!(p.suffix || V.value.length > 0 || re.value)), q = i(() => l.closeOnClick ?? !re.value),
|
|
19195
|
-
if (
|
|
19209
|
+
}), O, A = 0, N = !1, P, F, L = !1, R = !1, B = `bing-dropdown-submenu-${++t_}`, V = i(() => l.shortcut ? Array.isArray(l.shortcut) ? l.shortcut : [l.shortcut] : []), te = i(() => V.value.join("+")), H = i(() => !!(l.icon || p.prefix)), W = i(() => !!(l.description || p.description)), re = i(() => !!p.submenu), ie = i(() => !!(p.suffix || V.value.length > 0 || re.value)), q = i(() => l.closeOnClick ?? !re.value), ae = i(() => !!(l.href && !l.disabled)), J = i(() => ae.value ? "a" : "button"), Y = i(() => {
|
|
19210
|
+
if (ae.value) return l.rel ? l.rel : l.target === "_blank" ? "noreferrer noopener" : void 0;
|
|
19196
19211
|
}), X = i(() => ["bing-dropdown-item-shell", {
|
|
19197
19212
|
"has-submenu": re.value,
|
|
19198
19213
|
"is-submenu-visible": S.value
|
|
@@ -19362,17 +19377,17 @@ var Ag = {
|
|
|
19362
19377
|
onPointerleave: Oe,
|
|
19363
19378
|
onFocusin: ke,
|
|
19364
19379
|
onFocusout: Ae
|
|
19365
|
-
}, [(E(), a(M(
|
|
19380
|
+
}, [(E(), a(M(J.value), {
|
|
19366
19381
|
ref_key: "itemRef",
|
|
19367
19382
|
ref: g,
|
|
19368
19383
|
class: v(oe.value),
|
|
19369
19384
|
"data-bing-dropdown-item": "",
|
|
19370
19385
|
role: "menuitem",
|
|
19371
|
-
type:
|
|
19372
|
-
href:
|
|
19373
|
-
target:
|
|
19386
|
+
type: J.value === "button" ? "button" : void 0,
|
|
19387
|
+
href: ae.value ? e.href : void 0,
|
|
19388
|
+
target: ae.value ? e.target : void 0,
|
|
19374
19389
|
rel: Y.value,
|
|
19375
|
-
disabled:
|
|
19390
|
+
disabled: J.value === "button" ? e.disabled : void 0,
|
|
19376
19391
|
tabindex: e.disabled ? -1 : void 0,
|
|
19377
19392
|
"aria-disabled": e.disabled || void 0,
|
|
19378
19393
|
"aria-current": e.active ? "true" : void 0,
|
|
@@ -19537,7 +19552,7 @@ var Ag = {
|
|
|
19537
19552
|
x: 0,
|
|
19538
19553
|
y: 0,
|
|
19539
19554
|
rotation: 0
|
|
19540
|
-
}), A = !1, j = 0, M, N, P, F = 0, L = 0, R, B, V, te, ne, H, W, re, ie = !1, q = !1,
|
|
19555
|
+
}), A = !1, j = 0, M, N, P, F = 0, L = 0, R, B, V, te, ne, H, W, re, ie = !1, q = !1, ae, J, Y = 0, X = 0, oe = 0, se = 0, Z = !1, ce = i(() => l.items.filter((e) => !!(e.src || e.previewSrc))), le = i(() => ce.value.length), ue = i(() => le.value > 0), de = i(() => ce.value[y.value]), fe = i(() => de.value?.previewSrc || de.value?.src || ""), pe = i(() => de.value?.alt ?? ""), me = i(() => le.value > 1), he = i(() => l.downloadable && !!de.value), ge = i(() => Math.max(.1, Math.min(l.minScale, l.maxScale))), _e = i(() => Math.max(ge.value, l.maxScale)), ve = i(() => Math.max(.05, l.zoomStep)), ye = i(() => D.scale <= ge.value + .001), be = i(() => D.scale >= _e.value - .001), xe = i(() => x.value ?? y.value), Se = i(() => C.value === "loading" || x.value !== void 0), Ce = i(() => ["bing-image-preview-root", {
|
|
19541
19556
|
"is-active": g.value,
|
|
19542
19557
|
"is-dragging": S.value,
|
|
19543
19558
|
"is-loading": Se.value,
|
|
@@ -19792,19 +19807,19 @@ var Ag = {
|
|
|
19792
19807
|
}
|
|
19793
19808
|
function ot(e) {
|
|
19794
19809
|
if (!(e.button !== 0 || !ue.value || C.value === "error")) {
|
|
19795
|
-
Le(), S.value = !0, Z = !1,
|
|
19810
|
+
Le(), S.value = !0, Z = !1, J = e.pointerId, Y = e.clientX, X = e.clientY, oe = D.x, se = D.y;
|
|
19796
19811
|
try {
|
|
19797
19812
|
e.currentTarget?.setPointerCapture?.(e.pointerId);
|
|
19798
19813
|
} catch {}
|
|
19799
19814
|
}
|
|
19800
19815
|
}
|
|
19801
19816
|
function st(e) {
|
|
19802
|
-
if (!S.value || e.pointerId !==
|
|
19817
|
+
if (!S.value || e.pointerId !== J) return;
|
|
19803
19818
|
let t = e.clientX - Y, n = e.clientY - X;
|
|
19804
19819
|
Math.hypot(t, n) > v_ && (Z = !0), D.x = oe + t, D.y = se + n;
|
|
19805
19820
|
}
|
|
19806
19821
|
function ct() {
|
|
19807
|
-
S.value = !1,
|
|
19822
|
+
S.value = !1, J = void 0;
|
|
19808
19823
|
}
|
|
19809
19824
|
function lt() {
|
|
19810
19825
|
if (!(Z || C.value === "error")) {
|
|
@@ -19862,7 +19877,7 @@ var Ag = {
|
|
|
19862
19877
|
Oe() && (j &&= (window.cancelAnimationFrame(j), 0), M &&= (window.clearTimeout(M), void 0));
|
|
19863
19878
|
}
|
|
19864
19879
|
function ht() {
|
|
19865
|
-
p.value && (
|
|
19880
|
+
p.value && (ae?.revert(), ae = K.context(() => {
|
|
19866
19881
|
let e = p.value?.querySelector(".bing-image-preview__media"), t = p.value?.querySelector(".bing-image-preview__toolbar");
|
|
19867
19882
|
!e || ke() || (K.fromTo(e, {
|
|
19868
19883
|
autoAlpha: 0,
|
|
@@ -19898,7 +19913,7 @@ var Ag = {
|
|
|
19898
19913
|
});
|
|
19899
19914
|
return;
|
|
19900
19915
|
}
|
|
19901
|
-
g.value = !1, We(), Me(!0), $e(),
|
|
19916
|
+
g.value = !1, We(), Me(!0), $e(), ae?.revert(), ae = void 0, ct(), Le(), M = window.setTimeout(() => {
|
|
19902
19917
|
M = void 0, h.value = !1, Q();
|
|
19903
19918
|
}, ke() ? 0 : __);
|
|
19904
19919
|
}
|
|
@@ -19909,7 +19924,7 @@ var Ag = {
|
|
|
19909
19924
|
}), U(() => le.value, () => {
|
|
19910
19925
|
x.value !== void 0 && x.value >= le.value && (We(), Me()), y.value = Fe(y.value);
|
|
19911
19926
|
}), ee(() => {
|
|
19912
|
-
pt(), We(), Me(!0), V?.kill(), V = void 0, te = void 0, ne = void 0, H = void 0, W = void 0, re = void 0,
|
|
19927
|
+
pt(), We(), Me(!0), V?.kill(), V = void 0, te = void 0, ne = void 0, H = void 0, W = void 0, re = void 0, ae?.revert(), ae = void 0, Le(), Q(), Oe() && A && (window.removeEventListener("keydown", dt), A = !1);
|
|
19913
19928
|
}), (r, i) => z(f) ? (E(), a(t, {
|
|
19914
19929
|
key: 0,
|
|
19915
19930
|
to: e.teleportTo
|
|
@@ -20307,7 +20322,7 @@ var Ag = {
|
|
|
20307
20322
|
downloadName: e.name,
|
|
20308
20323
|
caption: e.name
|
|
20309
20324
|
}] : [];
|
|
20310
|
-
}),
|
|
20325
|
+
}), ae = i(() => {
|
|
20311
20326
|
switch (M.value) {
|
|
20312
20327
|
case "image": return on;
|
|
20313
20328
|
case "pdf": return un;
|
|
@@ -20319,7 +20334,7 @@ var Ag = {
|
|
|
20319
20334
|
case "docx": return ln;
|
|
20320
20335
|
default: return M.value === "unknown" ? sn : dn;
|
|
20321
20336
|
}
|
|
20322
|
-
}),
|
|
20337
|
+
}), J = i(() => {
|
|
20323
20338
|
switch (M.value) {
|
|
20324
20339
|
case "image": return "IMG";
|
|
20325
20340
|
case "pdf": return "PDF";
|
|
@@ -20574,9 +20589,9 @@ var Ag = {
|
|
|
20574
20589
|
class: "bing-file-preview",
|
|
20575
20590
|
style: b(K.value)
|
|
20576
20591
|
}, [c("header", C_, [c("div", w_, [c("span", T_, [d(kn, {
|
|
20577
|
-
icon:
|
|
20592
|
+
icon: ae.value,
|
|
20578
20593
|
size: "md"
|
|
20579
|
-
}, null, 8, ["icon"]), c("span", E_, I(
|
|
20594
|
+
}, null, 8, ["icon"]), c("span", E_, I(J.value), 1)]), c("div", D_, [c("h2", O_, I(j.value), 1), c("div", k_, [c("span", null, I(Y.value), 1), X.value ? (E(), s("span", A_, I(X.value), 1)) : o("", !0)])])]), c("div", j_, [
|
|
20580
20595
|
n.openable && N.value ? (E(), a(mt, {
|
|
20581
20596
|
key: 0,
|
|
20582
20597
|
throttle: !1,
|
|
@@ -20660,9 +20675,9 @@ var Ag = {
|
|
|
20660
20675
|
_: 1
|
|
20661
20676
|
}, 8, ["smooth"]))])) : V.value ? (E(), s("div", K_, [
|
|
20662
20677
|
c("span", q_, [d(kn, {
|
|
20663
|
-
icon:
|
|
20678
|
+
icon: ae.value,
|
|
20664
20679
|
size: "xl"
|
|
20665
|
-
}, null, 8, ["icon"]), c("span", J_, I(
|
|
20680
|
+
}, null, 8, ["icon"]), c("span", J_, I(J.value), 1)]),
|
|
20666
20681
|
i[9] ||= c("h3", null, "暂不支持直接预览此文档", -1),
|
|
20667
20682
|
i[10] ||= c("p", null, " 此文档暂时无法在线预览,可在新标签页打开或下载后查看。 ", -1),
|
|
20668
20683
|
c("div", Y_, [n.openable && N.value ? (E(), a(mt, {
|
|
@@ -20995,14 +21010,14 @@ var sv = { class: "bing-form__layout" }, cv = ["data-target", "data-offscreen"],
|
|
|
20995
21010
|
function q(e, t) {
|
|
20996
21011
|
return e === t || e.startsWith(`${t}.`) || t.startsWith(`${e}.`);
|
|
20997
21012
|
}
|
|
20998
|
-
function
|
|
21013
|
+
function ae(e) {
|
|
20999
21014
|
Object.keys(m).forEach((e) => {
|
|
21000
21015
|
delete m[e];
|
|
21001
21016
|
}), Object.entries(e).forEach(([e, t]) => {
|
|
21002
21017
|
m[e] = [...t];
|
|
21003
21018
|
});
|
|
21004
21019
|
}
|
|
21005
|
-
function
|
|
21020
|
+
function J(e, t) {
|
|
21006
21021
|
Object.keys(m).forEach((t) => {
|
|
21007
21022
|
q(t, e) && delete m[t];
|
|
21008
21023
|
}), Object.entries(t).forEach(([t, n]) => {
|
|
@@ -21023,7 +21038,7 @@ var sv = { class: "bing-form__layout" }, cv = ["data-target", "data-offscreen"],
|
|
|
21023
21038
|
if (C || t.cancelled) return !1;
|
|
21024
21039
|
if (n !== x) continue;
|
|
21025
21040
|
let o = a && !a.success ? K(a.error.issues) : {}, s = Object.entries(o).filter(([t]) => !e || q(t, e)).length === 0;
|
|
21026
|
-
if (e) t.id >= N &&
|
|
21041
|
+
if (e) t.id >= N && J(e, o);
|
|
21027
21042
|
else {
|
|
21028
21043
|
let e = new Set([...Object.keys(m), ...Object.keys(o)]);
|
|
21029
21044
|
for (let n of e) [...M].some(([e, r]) => r > t.id && q(n, e)) || (o[n] ? m[n] = [...o[n]] : delete m[n]);
|
|
@@ -21048,7 +21063,7 @@ var sv = { class: "bing-form__layout" }, cv = ["data-target", "data-offscreen"],
|
|
|
21048
21063
|
w += 1;
|
|
21049
21064
|
for (let t of A) (!e || !t.prop || q(t.prop, e)) && (t.cancelled = !0);
|
|
21050
21065
|
if (e ? M.set(e, ++y) : (M.clear(), N = ++y), !e) {
|
|
21051
|
-
|
|
21066
|
+
ae({});
|
|
21052
21067
|
return;
|
|
21053
21068
|
}
|
|
21054
21069
|
Object.keys(m).forEach((t) => {
|
|
@@ -21211,8 +21226,8 @@ var mv = { class: "bing-form-item__control" }, hv = { class: "bing-form-item__la
|
|
|
21211
21226
|
"has-label": !!t.label,
|
|
21212
21227
|
"has-message": R.value
|
|
21213
21228
|
}
|
|
21214
|
-
]),
|
|
21215
|
-
let e = Y(
|
|
21229
|
+
]), ae = i(() => {
|
|
21230
|
+
let e = Y(J(t.span), r?.columns.value ?? J(1));
|
|
21216
21231
|
return {
|
|
21217
21232
|
"--bing-form-item-span-base": String(e.base),
|
|
21218
21233
|
"--bing-form-item-span-sm": String(e.sm),
|
|
@@ -21222,7 +21237,7 @@ var mv = { class: "bing-form-item__control" }, hv = { class: "bing-form-item__la
|
|
|
21222
21237
|
"--bing-form-item-label-width": ie.value
|
|
21223
21238
|
};
|
|
21224
21239
|
});
|
|
21225
|
-
function
|
|
21240
|
+
function J(e) {
|
|
21226
21241
|
let t = [
|
|
21227
21242
|
"base",
|
|
21228
21243
|
"sm",
|
|
@@ -21362,7 +21377,7 @@ var mv = { class: "bing-form-item__control" }, hv = { class: "bing-form-item__la
|
|
|
21362
21377
|
ref_key: "rootRef",
|
|
21363
21378
|
ref: u,
|
|
21364
21379
|
class: v(q.value),
|
|
21365
|
-
style: b(
|
|
21380
|
+
style: b(ae.value)
|
|
21366
21381
|
}, [
|
|
21367
21382
|
c("div", mv, [j(t.$slots, "default", {
|
|
21368
21383
|
id: S.value,
|
|
@@ -21567,7 +21582,7 @@ var mv = { class: "bing-form-item__control" }, hv = { class: "bing-form-item__la
|
|
|
21567
21582
|
naturalHeight: t.naturalHeight
|
|
21568
21583
|
}));
|
|
21569
21584
|
}
|
|
21570
|
-
function
|
|
21585
|
+
function ae(e) {
|
|
21571
21586
|
let t = f.value || "", n = !!r.fallbackSrc && r.fallbackSrc !== t && !h.value;
|
|
21572
21587
|
if (l("error", {
|
|
21573
21588
|
event: e,
|
|
@@ -21608,7 +21623,7 @@ var mv = { class: "bing-form-item__control" }, hv = { class: "bing-form-item__la
|
|
|
21608
21623
|
crossorigin: e.crossorigin,
|
|
21609
21624
|
referrerpolicy: e.referrerPolicy,
|
|
21610
21625
|
onLoad: q,
|
|
21611
|
-
onError:
|
|
21626
|
+
onError: ae
|
|
21612
21627
|
}, null, 40, xv)) : o("", !0),
|
|
21613
21628
|
C.value ? (E(), s("div", Sv, [j(t.$slots, "placeholder", {}, () => [e.placeholderSrc ? (E(), s("img", {
|
|
21614
21629
|
key: 0,
|
|
@@ -24683,13 +24698,13 @@ oD = XT(aD), sD = /* @__PURE__ */ new WeakMap(), cD = /* @__PURE__ */ new WeakSe
|
|
|
24683
24698
|
let K = Kv(() => r.transform), q = d.translate ?? {
|
|
24684
24699
|
x: 0,
|
|
24685
24700
|
y: 0
|
|
24686
|
-
},
|
|
24701
|
+
}, ae = K.x * p.scaleX + q.x, J = K.y * p.scaleY + q.y, Y = GC();
|
|
24687
24702
|
x.set({
|
|
24688
24703
|
width: v - z,
|
|
24689
24704
|
height: y - B,
|
|
24690
24705
|
top: ie.top + Y.y,
|
|
24691
24706
|
left: ie.left + Y.x,
|
|
24692
|
-
translate: `${
|
|
24707
|
+
translate: `${ae}px ${J}px 0`,
|
|
24693
24708
|
transform: this.overlay ? "none" : I,
|
|
24694
24709
|
transition: P ? `${P}, translate 0ms linear` : "translate 0ms linear",
|
|
24695
24710
|
scale: h ? `${_.x} ${_.y}` : "",
|
|
@@ -26439,14 +26454,14 @@ var fA = ["aria-grabbed", "data-bing-sortable-key"], pA = /* @__PURE__ */ Q(/* @
|
|
|
26439
26454
|
let t = D.value, n = new Set(t), r = e.filter((t, r) => n.has(t) && e.indexOf(t) === r), i = t.filter((e) => !r.includes(e));
|
|
26440
26455
|
return [...r, ...i];
|
|
26441
26456
|
}
|
|
26442
|
-
function
|
|
26457
|
+
function ae(e, t) {
|
|
26443
26458
|
return typeof r.handleAriaLabel == "function" ? r.handleAriaLabel(e, t) : r.handleAriaLabel;
|
|
26444
26459
|
}
|
|
26445
|
-
function
|
|
26460
|
+
function J(e) {
|
|
26446
26461
|
return N.value.find((t) => t.key === e);
|
|
26447
26462
|
}
|
|
26448
26463
|
function Y(e) {
|
|
26449
|
-
let t =
|
|
26464
|
+
let t = J(e), n = M.value.indexOf(e);
|
|
26450
26465
|
return {
|
|
26451
26466
|
item: t?.item,
|
|
26452
26467
|
key: e,
|
|
@@ -26458,7 +26473,7 @@ var fA = ["aria-grabbed", "data-bing-sortable-key"], pA = /* @__PURE__ */ Q(/* @
|
|
|
26458
26473
|
ref: () => {},
|
|
26459
26474
|
role: "button",
|
|
26460
26475
|
tabindex: -1,
|
|
26461
|
-
"aria-label":
|
|
26476
|
+
"aria-label": ae(t?.item, n),
|
|
26462
26477
|
"aria-disabled": "true",
|
|
26463
26478
|
onKeydown: () => {}
|
|
26464
26479
|
}
|
|
@@ -26483,7 +26498,7 @@ var fA = ["aria-grabbed", "data-bing-sortable-key"], pA = /* @__PURE__ */ Q(/* @
|
|
|
26483
26498
|
}), !0);
|
|
26484
26499
|
}
|
|
26485
26500
|
function ce(e, t, n, r) {
|
|
26486
|
-
let i =
|
|
26501
|
+
let i = J(e);
|
|
26487
26502
|
return i ? {
|
|
26488
26503
|
key: e,
|
|
26489
26504
|
item: i.item,
|
|
@@ -26495,7 +26510,7 @@ var fA = ["aria-grabbed", "data-bing-sortable-key"], pA = /* @__PURE__ */ Q(/* @
|
|
|
26495
26510
|
function le(e) {
|
|
26496
26511
|
let { source: t } = e.operation, n = X(e);
|
|
26497
26512
|
if (!n || !fk(t) || !W(t.id)) return;
|
|
26498
|
-
let r =
|
|
26513
|
+
let r = J(t.id);
|
|
26499
26514
|
r && (p.value = t.id, m.value = t.index, l("drag-start", {
|
|
26500
26515
|
key: t.id,
|
|
26501
26516
|
item: r.item,
|
|
@@ -26511,7 +26526,7 @@ var fA = ["aria-grabbed", "data-bing-sortable-key"], pA = /* @__PURE__ */ Q(/* @
|
|
|
26511
26526
|
h.value = a;
|
|
26512
26527
|
let o = ce(t.id, t.index, a, n);
|
|
26513
26528
|
if (o && l("drag", o), r.reorderMode === "live") {
|
|
26514
|
-
let e =
|
|
26529
|
+
let e = J(t.id);
|
|
26515
26530
|
e && Z(a, {
|
|
26516
26531
|
key: t.id,
|
|
26517
26532
|
item: e.item,
|
|
@@ -26524,7 +26539,7 @@ var fA = ["aria-grabbed", "data-bing-sortable-key"], pA = /* @__PURE__ */ Q(/* @
|
|
|
26524
26539
|
function de(e) {
|
|
26525
26540
|
let { source: t } = e.operation, n = X(e), i = p.value, a = m.value;
|
|
26526
26541
|
if (p.value = null, m.value = null, h.value = null, !n || !fk(t) || !W(t.id)) return;
|
|
26527
|
-
let o =
|
|
26542
|
+
let o = J(t.id);
|
|
26528
26543
|
if (!o) return;
|
|
26529
26544
|
let s = a ?? t.initialIndex, c = e.canceled ? O.value.indexOf(t.id) : t.index, u = se(t.id, s, c);
|
|
26530
26545
|
!e.canceled && r.reorderMode === "drop" && Z(u, {
|
|
@@ -26583,7 +26598,7 @@ var fA = ["aria-grabbed", "data-bing-sortable-key"], pA = /* @__PURE__ */ Q(/* @
|
|
|
26583
26598
|
axis: t.axis,
|
|
26584
26599
|
flip: t.flip,
|
|
26585
26600
|
duration: t.duration,
|
|
26586
|
-
"handle-label":
|
|
26601
|
+
"handle-label": ae(e.item, r),
|
|
26587
26602
|
onKeyboardMove: (t) => fe(e, t)
|
|
26588
26603
|
}, {
|
|
26589
26604
|
default: G((e) => [j(n.$slots, "default", g({ ref_for: !0 }, e), void 0, !0)]),
|
|
@@ -26606,7 +26621,7 @@ var fA = ["aria-grabbed", "data-bing-sortable-key"], pA = /* @__PURE__ */ Q(/* @
|
|
|
26606
26621
|
"aria-hidden": "true",
|
|
26607
26622
|
inert: ""
|
|
26608
26623
|
}, {
|
|
26609
|
-
default: G(({ source: e }) => [e &&
|
|
26624
|
+
default: G(({ source: e }) => [e && J(e.id) ? j(n.$slots, "default", y(g({ key: 0 }, Y(e.id))), void 0, !0) : o("", !0)]),
|
|
26610
26625
|
_: 3
|
|
26611
26626
|
}, 8, ["drop-animation"])) : o("", !0)], 16, mA)]),
|
|
26612
26627
|
_: 3
|
|
@@ -27088,10 +27103,10 @@ var rj = [
|
|
|
27088
27103
|
function q(e) {
|
|
27089
27104
|
return wA(e.dataset.position);
|
|
27090
27105
|
}
|
|
27091
|
-
function
|
|
27106
|
+
function ae() {
|
|
27092
27107
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
27093
27108
|
}
|
|
27094
|
-
function
|
|
27109
|
+
function J(e) {
|
|
27095
27110
|
return e.querySelector(".bing-toast__card");
|
|
27096
27111
|
}
|
|
27097
27112
|
function Y() {
|
|
@@ -27101,7 +27116,7 @@ var rj = [
|
|
|
27101
27116
|
}
|
|
27102
27117
|
function X() {
|
|
27103
27118
|
let e = C;
|
|
27104
|
-
if (C = void 0, T || !e || !m.value || (B(),
|
|
27119
|
+
if (C = void 0, T || !e || !m.value || (B(), ae())) return;
|
|
27105
27120
|
let t = /* @__PURE__ */ new Map();
|
|
27106
27121
|
e.forEach((e, n) => {
|
|
27107
27122
|
if (!n.isConnected) return;
|
|
@@ -27127,7 +27142,7 @@ var rj = [
|
|
|
27127
27142
|
function oe(e) {
|
|
27128
27143
|
if (T) return;
|
|
27129
27144
|
let t = e, n = ie(q(t));
|
|
27130
|
-
y.add(t), K.set(
|
|
27145
|
+
y.add(t), K.set(J(t), {
|
|
27131
27146
|
autoAlpha: 0,
|
|
27132
27147
|
x: n.x,
|
|
27133
27148
|
y: n.y,
|
|
@@ -27140,13 +27155,13 @@ var rj = [
|
|
|
27140
27155
|
t();
|
|
27141
27156
|
return;
|
|
27142
27157
|
}
|
|
27143
|
-
let n =
|
|
27158
|
+
let n = J(e);
|
|
27144
27159
|
K.killTweensOf(n), K.to(n, {
|
|
27145
27160
|
autoAlpha: 1,
|
|
27146
27161
|
x: 0,
|
|
27147
27162
|
y: 0,
|
|
27148
27163
|
scale: 1,
|
|
27149
|
-
duration:
|
|
27164
|
+
duration: ae() ? 0 : .34,
|
|
27150
27165
|
ease: "back.out(1.7)",
|
|
27151
27166
|
overwrite: "auto",
|
|
27152
27167
|
clearProps: "visibility,transform",
|
|
@@ -27158,13 +27173,13 @@ var rj = [
|
|
|
27158
27173
|
t();
|
|
27159
27174
|
return;
|
|
27160
27175
|
}
|
|
27161
|
-
let n = e, r = ie(q(n)), i =
|
|
27176
|
+
let n = e, r = ie(q(n)), i = J(e);
|
|
27162
27177
|
y.add(n), K.killTweensOf(i), K.to(i, {
|
|
27163
27178
|
autoAlpha: 0,
|
|
27164
27179
|
x: r.x * .55,
|
|
27165
27180
|
y: r.y,
|
|
27166
27181
|
scale: .93,
|
|
27167
|
-
duration:
|
|
27182
|
+
duration: ae() ? 0 : .38,
|
|
27168
27183
|
ease: "power3.inOut",
|
|
27169
27184
|
overwrite: "auto",
|
|
27170
27185
|
onComplete: () => {
|
|
@@ -27192,7 +27207,7 @@ var rj = [
|
|
|
27192
27207
|
$A(g);
|
|
27193
27208
|
}), ee(() => {
|
|
27194
27209
|
T = !0, C = void 0, R(), ej(g);
|
|
27195
|
-
let e = [...y].flatMap((e) => [e,
|
|
27210
|
+
let e = [...y].flatMap((e) => [e, J(e)]);
|
|
27196
27211
|
K.getTweensOf(e).forEach((e) => e.kill()), y.clear();
|
|
27197
27212
|
}), (n, i) => z(p) ? (E(), a(t, {
|
|
27198
27213
|
key: 0,
|
|
@@ -27730,16 +27745,16 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
27730
27745
|
"scroll"
|
|
27731
27746
|
],
|
|
27732
27747
|
setup(t, { expose: n, emit: l }) {
|
|
27733
|
-
let { playClickFeedback: f } = tt(), p = t, m = l, h = k(!1), y = i(() => p.loading || h.value), x = F(p.data), C = k(p.total), w = k(null), T = i(() => y.value ? x.value : p.data), O,
|
|
27734
|
-
D(bj,
|
|
27735
|
-
let
|
|
27748
|
+
let { playClickFeedback: f } = tt(), p = t, m = l, h = k(!1), y = i(() => p.loading || h.value), x = F(p.data), C = k(p.total), w = k(null), T = i(() => y.value ? x.value : p.data), O, N = 0, P = k(null), L = xj(P, Ti);
|
|
27749
|
+
D(bj, L);
|
|
27750
|
+
let R = k(null), B = k(null), V = k(null), te = k(null), ne = k(null), H = k(!1), W = k([...p.defaultSelectedRowKeys]), re = k([...p.defaultExpandedRowKeys]), K = k({ ...p.defaultColumnWidths }), q = k(p.defaultColumnOrder.length ? [...p.defaultColumnOrder] : p.columns.map((e) => e.key)), ae = k([...new Set([...p.defaultHiddenColumnKeys, ...p.columns.filter((e) => e.hidden).map((e) => e.key)])]), J = k({ ...p.defaultColumnFixed }), Y = k(Math.max(1, p.defaultPage)), X = k(Math.max(1, p.defaultPageSize)), oe = k(p.defaultSortKey), se = k(p.defaultSortOrder), Z = k(0), ce = k(0), le = k(0), ue = k(0), de = k(0), fe = k(0), pe = k(0), me = k(0), he = k(!1), ge = k(null), _e = k(null), ve = k(null), ye = k(!1), be = k(null), xe = k(!1), Se = k(!1), Ce = k(null), we = k(!1), Te = k(null), Ee = k(void 0), De = k(null), Oe = {
|
|
27736
27751
|
duration: 190,
|
|
27737
27752
|
easing: "cubic-bezier(0.22, 1, 0.36, 1)"
|
|
27738
|
-
},
|
|
27753
|
+
}, ke = i(() => Hn(p.smoothScroll, Vn, {
|
|
27739
27754
|
keyboard: !1,
|
|
27740
27755
|
smoothTouchpad: !1,
|
|
27741
27756
|
respectReducedMotion: !0
|
|
27742
|
-
})),
|
|
27757
|
+
})), Ae = [aO.configure({
|
|
27743
27758
|
activationConstraints: [new tO.Distance({
|
|
27744
27759
|
value: 6,
|
|
27745
27760
|
tolerance: {
|
|
@@ -27751,155 +27766,155 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
27751
27766
|
let t = e.target;
|
|
27752
27767
|
return t instanceof Element && !!t.closest("[data-bing-table-dnd-ignore]");
|
|
27753
27768
|
}
|
|
27754
|
-
})],
|
|
27769
|
+
})], je = (e) => e.filter((e) => e !== RD).map((e) => e === fD ? fD.configure({ dropAnimation: Oe }) : e), Me, Ne, Pe, Q, Fe, Ie, Le, Re, ze, Be, Ve, He, Ue, We = "", Ge = "", Ke = i(() => Math.max(32, Math.floor(p.virtualRowHeight ?? {
|
|
27755
27770
|
sm: 36,
|
|
27756
27771
|
md: 40,
|
|
27757
27772
|
lg: 44
|
|
27758
|
-
}[p.size]),
|
|
27773
|
+
}[p.size]), ce.value)), qe = i(() => Math.max(0, Math.floor(p.virtualOverscan))), Je = i(() => Math.max(0, Math.floor(p.virtualThreshold))), Ye = i(() => Math.max(0, Math.floor(p.indentSize))), Xe = i(() => Math.max(42, Math.floor(p.selectionColumnWidth))), Ze = i(() => [
|
|
27759
27774
|
"bing-table",
|
|
27760
27775
|
`bing-table--${p.size}`,
|
|
27761
27776
|
{
|
|
27762
27777
|
"is-bordered": p.bordered,
|
|
27763
27778
|
"is-striped": p.striped,
|
|
27764
27779
|
"is-loading": y.value,
|
|
27765
|
-
"is-virtual":
|
|
27766
|
-
"is-preserving-page-height":
|
|
27767
|
-
"has-horizontal-scrollbar":
|
|
27768
|
-
"has-vertical-scrollbar":
|
|
27780
|
+
"is-virtual": Nt.value,
|
|
27781
|
+
"is-preserving-page-height": Rt.value,
|
|
27782
|
+
"has-horizontal-scrollbar": dn.value,
|
|
27783
|
+
"has-vertical-scrollbar": he.value,
|
|
27769
27784
|
"has-selection": p.selectable,
|
|
27770
|
-
"has-column-panel":
|
|
27785
|
+
"has-column-panel": H.value,
|
|
27771
27786
|
"has-reorderable-columns": p.reorderableColumns,
|
|
27772
|
-
"is-resizing-column": !!
|
|
27773
|
-
"is-reordering-columns": !!
|
|
27774
|
-
"is-page-size-transitioning":
|
|
27775
|
-
"is-pagination-floating":
|
|
27787
|
+
"is-resizing-column": !!ve.value,
|
|
27788
|
+
"is-reordering-columns": !!ge.value,
|
|
27789
|
+
"is-page-size-transitioning": Se.value,
|
|
27790
|
+
"is-pagination-floating": we.value
|
|
27776
27791
|
}
|
|
27777
|
-
]),
|
|
27792
|
+
]), Qe = i(() => {
|
|
27778
27793
|
let e = {
|
|
27779
|
-
"--bing-table-row-height": `${
|
|
27780
|
-
"--bing-table-selection-width": `${
|
|
27794
|
+
"--bing-table-row-height": `${Ke.value}px`,
|
|
27795
|
+
"--bing-table-selection-width": `${Xe.value}px`,
|
|
27781
27796
|
"--bing-table-vertical-scrollbar-gutter": `${Zj}px`
|
|
27782
27797
|
};
|
|
27783
|
-
return
|
|
27784
|
-
}),
|
|
27798
|
+
return Te.value !== null && (e.paddingBottom = `${Te.value}px`), e;
|
|
27799
|
+
}), $e = i(() => p.height), et = i(() => p.maxHeight ?? (Nt.value ? 520 : void 0)), nt = i(() => y.value && w.value !== null ? { height: `${w.value}px` } : be.value ? { height: be.value } : void 0), rt = i(() => p.columns.map((e) => ({
|
|
27785
27800
|
...e,
|
|
27786
27801
|
dataKey: e.dataKey ?? e.key
|
|
27787
|
-
}))),
|
|
27788
|
-
let e = new Map(
|
|
27789
|
-
return
|
|
27790
|
-
}),
|
|
27791
|
-
let e = p.hiddenColumnKeys ??
|
|
27802
|
+
}))), it = i(() => Fn(p.columnOrder ?? q.value)), at = i(() => {
|
|
27803
|
+
let e = new Map(rt.value.map((e) => [e.key, e]));
|
|
27804
|
+
return it.value.map((t) => e.get(t)).filter((e) => !!e);
|
|
27805
|
+
}), ot = i(() => {
|
|
27806
|
+
let e = p.hiddenColumnKeys ?? ae.value;
|
|
27792
27807
|
return new Set(e);
|
|
27793
|
-
}),
|
|
27794
|
-
body:
|
|
27795
|
-
header:
|
|
27796
|
-
}]))),
|
|
27797
|
-
body:
|
|
27798
|
-
header:
|
|
27799
|
-
}]))),
|
|
27800
|
-
if (
|
|
27801
|
-
}),
|
|
27802
|
-
let e =
|
|
27808
|
+
}), st = i(() => at.value.filter((e) => !ot.value.has(e.key))), ct = i(() => new Map(st.value.map((e) => [e.key, {
|
|
27809
|
+
body: Un(e),
|
|
27810
|
+
header: Un(e, !0)
|
|
27811
|
+
}]))), lt = i(() => new Map(st.value.map((e) => [e.key, {
|
|
27812
|
+
body: Kn(e),
|
|
27813
|
+
header: Kn(e, !0)
|
|
27814
|
+
}]))), ut = i(() => {
|
|
27815
|
+
if (st.value.length) return p.treeColumnKey ? st.value.find((e) => e.key === p.treeColumnKey) : st.value[0];
|
|
27816
|
+
}), dt = i(() => st.value.length + +!!p.selectable), ft = i(() => p.selectedRowKeys ?? W.value), pt = i(() => new Set(ft.value)), ht = i(() => p.expandedRowKeys ?? re.value), gt = i(() => new Set(ht.value)), _t = i(() => Math.max(1, p.page ?? Y.value)), vt = i(() => Math.max(1, p.pageSize ?? X.value)), yt = i(() => p.sortKey ?? oe.value), bt = i(() => p.sortOrder ?? se.value), xt = i(() => {
|
|
27817
|
+
let e = yt.value, t = bt.value;
|
|
27803
27818
|
if (!e || !t) return T.value;
|
|
27804
|
-
let n =
|
|
27819
|
+
let n = rt.value.find((t) => t.key === e);
|
|
27805
27820
|
return n ? [...T.value].sort((e, r) => {
|
|
27806
|
-
let i = n.sorter ? n.sorter(e, r) :
|
|
27821
|
+
let i = n.sorter ? n.sorter(e, r) : rr(tr(e, n), tr(r, n));
|
|
27807
27822
|
return t === "asc" ? i : -i;
|
|
27808
27823
|
}) : T.value;
|
|
27809
|
-
}),
|
|
27810
|
-
if (!p.pagination || p.remotePagination) return
|
|
27811
|
-
let e = (
|
|
27812
|
-
return
|
|
27813
|
-
}),
|
|
27814
|
-
if (!
|
|
27815
|
-
let e =
|
|
27816
|
-
return
|
|
27817
|
-
}),
|
|
27818
|
-
if (!
|
|
27819
|
-
let e = Math.min(
|
|
27820
|
-
return Math.max(0, e -
|
|
27821
|
-
}),
|
|
27824
|
+
}), St = i(() => (y.value ? C.value : p.total) ?? xt.value.length), Ct = i(() => p.pagination ? Math.max(1, Math.ceil(St.value / vt.value)) : 1), wt = i(() => {
|
|
27825
|
+
if (!p.pagination || p.remotePagination) return xt.value;
|
|
27826
|
+
let e = (_t.value - 1) * vt.value;
|
|
27827
|
+
return xt.value.slice(e, e + vt.value);
|
|
27828
|
+
}), Tt = i(() => er(wt.value, !1)), Et = i(() => er(xt.value, !0)), Dt = i(() => !!p.treeColumnKey || Et.value.some((e) => e.hasChildren || e.level > 0)), Ot = i(() => Se.value && Ce.value ? Ce.value : Tt.value), kt = i(() => Ce.value ? Math.max(0, Ce.value.length - Tt.value.length) : 0), At = i(() => Tt.value.filter((e) => !e.disabled)), jt = i(() => !p.selectable || !At.value.length || p.selectionMode === "single" ? !1 : At.value.every((e) => pt.value.has(e.key))), Mt = i(() => !p.selectable || !At.value.length || p.selectionMode === "single" ? !1 : At.value.some((e) => pt.value.has(e.key)) && !jt.value), Nt = i(() => p.virtual === !0 ? Tt.value.length > 0 : p.virtual === !1 ? !1 : Tt.value.length > Je.value), Pt = i(() => Nt.value ? Tn(Math.floor(Z.value / Ke.value) - qe.value, 0, Tt.value.length) : 0), Ft = i(() => {
|
|
27829
|
+
if (!Nt.value) return Tt.value.length;
|
|
27830
|
+
let e = Ke.value * 10, t = le.value || e;
|
|
27831
|
+
return Tn(Math.ceil((Z.value + t) / Ke.value) + qe.value, Pt.value, Tt.value.length);
|
|
27832
|
+
}), It = i(() => Nt.value ? Tt.value.slice(Pt.value, Ft.value) : Ot.value), Lt = i(() => st.value.length > 0 && It.value.length > 0), Rt = i(() => p.preservePageHeight && p.pagination && p.height === void 0 && !Nt.value), zt = i(() => {
|
|
27833
|
+
if (!Rt.value || !st.value.length || !Tt.value.length || St.value === 0) return 0;
|
|
27834
|
+
let e = Math.min(vt.value, St.value);
|
|
27835
|
+
return Math.max(0, e - Tt.value.length);
|
|
27836
|
+
}), Bt = i(() => [
|
|
27822
27837
|
p.pagination ? "paginated" : "plain",
|
|
27823
27838
|
y.value ? "loading" : "ready",
|
|
27824
27839
|
p.height === void 0 ? "auto-height" : "fixed-height",
|
|
27825
|
-
|
|
27826
|
-
gt.value,
|
|
27840
|
+
Nt.value ? "virtual" : "static",
|
|
27827
27841
|
_t.value,
|
|
27828
|
-
|
|
27829
|
-
|
|
27830
|
-
|
|
27831
|
-
|
|
27832
|
-
|
|
27842
|
+
vt.value,
|
|
27843
|
+
Tt.value.length,
|
|
27844
|
+
zt.value,
|
|
27845
|
+
st.value.length
|
|
27846
|
+
].join("|")), Vt = i(() => Nt.value ? Pt.value * Ke.value : 0), Gt = i(() => Nt.value ? Math.max(0, Tt.value.length - Ft.value) * Ke.value : 0), Jt = i(() => {
|
|
27847
|
+
let e = p.selectable ? Xe.value : 0, t = st.value.reduce((e, t) => e + Ln(t), 0);
|
|
27833
27848
|
return Math.max(e + t, 320);
|
|
27834
|
-
}), Jt = i(() => {
|
|
27835
|
-
let e = {}, t = p.selectable && p.selectionFixed ? Ye.value : 0;
|
|
27836
|
-
return ot.value.forEach((n) => {
|
|
27837
|
-
On(n) === "left" && (e[n.key] = t, t += In(n));
|
|
27838
|
-
}), e;
|
|
27839
27849
|
}), Yt = i(() => {
|
|
27840
|
-
let e = {}, t = 0;
|
|
27841
|
-
return
|
|
27842
|
-
|
|
27850
|
+
let e = {}, t = p.selectable && p.selectionFixed ? Xe.value : 0;
|
|
27851
|
+
return st.value.forEach((n) => {
|
|
27852
|
+
An(n) === "left" && (e[n.key] = t, t += Ln(n));
|
|
27843
27853
|
}), e;
|
|
27844
27854
|
}), Xt = i(() => {
|
|
27845
|
-
let e =
|
|
27846
|
-
return
|
|
27847
|
-
|
|
27855
|
+
let e = {}, t = 0;
|
|
27856
|
+
return st.value.slice().reverse().forEach((n) => {
|
|
27857
|
+
An(n) === "right" && (e[n.key] = t, t += Ln(n));
|
|
27848
27858
|
}), e;
|
|
27849
|
-
}), Zt = i(() =>
|
|
27850
|
-
|
|
27851
|
-
|
|
27852
|
-
|
|
27853
|
-
|
|
27859
|
+
}), Zt = i(() => {
|
|
27860
|
+
let e = p.selectable && p.selectionFixed ? Xe.value : 0;
|
|
27861
|
+
return st.value.forEach((t) => {
|
|
27862
|
+
An(t) === "left" && (e += Ln(t));
|
|
27863
|
+
}), e;
|
|
27864
|
+
}), $t = i(() => st.value.reduce((e, t) => An(t) === "right" ? e + Ln(t) : e, 0)), en = i(() => $j * Tn(pe.value / Qj, 0, 1)), tn = i(() => $j * Tn((me.value - pe.value) / Qj, 0, 1)), nn = i(() => ({
|
|
27865
|
+
left: `${Zt.value}px`,
|
|
27854
27866
|
opacity: en.value
|
|
27855
|
-
})), rn = i(() => ({
|
|
27867
|
+
})), rn = i(() => ({
|
|
27868
|
+
right: `${$t.value}px`,
|
|
27869
|
+
opacity: tn.value
|
|
27870
|
+
})), an = i(() => ({ width: p.selectable && mn.value ? `${Xe.value}px` : "0px" })), on = i(() => ({
|
|
27856
27871
|
right: "0px",
|
|
27857
|
-
width: `${
|
|
27858
|
-
})),
|
|
27859
|
-
if (!
|
|
27872
|
+
width: `${$t.value}px`
|
|
27873
|
+
})), sn = i(() => Lt.value && p.selectable && mn.value), cn = i(() => Lt.value && $t.value > 0), ln = i(() => Lt.value && Zt.value > 0 && me.value > 1), un = i(() => Lt.value && $t.value > 0 && me.value > 1), dn = i(() => me.value > 1), pn = i(() => {
|
|
27874
|
+
if (!dn.value || fe.value <= 0 || ue.value <= 0 || de.value <= 0) return {
|
|
27860
27875
|
width: "0px",
|
|
27861
27876
|
transform: "translate3d(0, 0, 0)"
|
|
27862
27877
|
};
|
|
27863
|
-
let e =
|
|
27878
|
+
let e = Tn(ue.value / de.value * fe.value, 36, fe.value), t = Math.max(0, fe.value - e), n = me.value > 0 ? pe.value / me.value * t : 0;
|
|
27864
27879
|
return {
|
|
27865
27880
|
width: `${e}px`,
|
|
27866
|
-
transform: `translate3d(${
|
|
27881
|
+
transform: `translate3d(${Tn(n, 0, t)}px, 0, 0)`
|
|
27867
27882
|
};
|
|
27868
|
-
}),
|
|
27869
|
-
let e =
|
|
27883
|
+
}), mn = i(() => p.selectionFixed && (!Nt.value || dn.value)), hn = i(() => {
|
|
27884
|
+
let e = Ct.value, t = Tn(Tn(_t.value, 1, e) - 2, 1, Math.max(1, e - 4)), n = Math.min(e, t + 4), r = [];
|
|
27870
27885
|
for (let e = t; e <= n; e += 1) r.push(e);
|
|
27871
27886
|
return r;
|
|
27872
|
-
}),
|
|
27873
|
-
page:
|
|
27874
|
-
pageCount:
|
|
27875
|
-
pageNumbers:
|
|
27876
|
-
})),
|
|
27887
|
+
}), gn = i(() => ({
|
|
27888
|
+
page: Tn(_t.value, 1, Ct.value),
|
|
27889
|
+
pageCount: Ct.value,
|
|
27890
|
+
pageNumbers: hn.value
|
|
27891
|
+
})), yn = i(() => De.value ?? gn.value), bn = i(() => {
|
|
27877
27892
|
let e = p.pageSizeOptions.map((e) => Math.round(e)).filter((e) => e > 0), t = Math.max(1, Math.round(p.defaultPageSize)), n = p.pageSize === void 0 ? void 0 : Math.max(1, Math.round(p.pageSize));
|
|
27878
27893
|
return [...new Set([
|
|
27879
27894
|
...e,
|
|
27880
27895
|
t,
|
|
27881
27896
|
n
|
|
27882
27897
|
])].filter((e) => typeof e == "number").sort((e, t) => e - t);
|
|
27883
|
-
}),
|
|
27898
|
+
}), xn = i(() => bn.value.map((e) => ({
|
|
27884
27899
|
label: String(e),
|
|
27885
27900
|
value: e
|
|
27886
|
-
}))),
|
|
27887
|
-
function
|
|
27901
|
+
}))), Sn = i(() => !p.pagination || St.value === 0 ? `共 ${Tt.value.length} 条` : `${Math.min(St.value, (_t.value - 1) * vt.value + 1)}-${Math.min(St.value, _t.value * vt.value)} / 共 ${St.value} 条`);
|
|
27902
|
+
function Cn() {
|
|
27888
27903
|
return typeof window < "u" && typeof document < "u";
|
|
27889
27904
|
}
|
|
27890
|
-
function
|
|
27891
|
-
return
|
|
27905
|
+
function wn() {
|
|
27906
|
+
return Cn() && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
27892
27907
|
}
|
|
27893
|
-
function
|
|
27908
|
+
function Tn(e, t, n) {
|
|
27894
27909
|
return Math.min(n, Math.max(t, e));
|
|
27895
27910
|
}
|
|
27896
|
-
function
|
|
27911
|
+
function En(e, t) {
|
|
27897
27912
|
return e.length === t.length && e.every((e, n) => e === t[n]);
|
|
27898
27913
|
}
|
|
27899
|
-
function
|
|
27914
|
+
function Dn(e, t) {
|
|
27900
27915
|
return !!(e && Object.prototype.hasOwnProperty.call(e, t));
|
|
27901
27916
|
}
|
|
27902
|
-
function
|
|
27917
|
+
function On(e, t) {
|
|
27903
27918
|
if (typeof e == "number" && Number.isFinite(e)) return e;
|
|
27904
27919
|
if (typeof e == "string") {
|
|
27905
27920
|
let t = Number.parseFloat(e);
|
|
@@ -27907,129 +27922,129 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
27907
27922
|
}
|
|
27908
27923
|
return t;
|
|
27909
27924
|
}
|
|
27910
|
-
function On(e) {
|
|
27911
|
-
return En(p.columnFixed, e.key) ? p.columnFixed?.[e.key] ?? null : En(J.value, e.key) ? J.value[e.key] ?? null : e.fixed ?? null;
|
|
27912
|
-
}
|
|
27913
27925
|
function An(e) {
|
|
27914
|
-
return
|
|
27926
|
+
return Dn(p.columnFixed, e.key) ? p.columnFixed?.[e.key] ?? null : Dn(J.value, e.key) ? J.value[e.key] ?? null : e.fixed ?? null;
|
|
27915
27927
|
}
|
|
27916
|
-
function jn(e
|
|
27917
|
-
return
|
|
27928
|
+
function jn(e) {
|
|
27929
|
+
return rt.value.find((t) => t.key === e);
|
|
27918
27930
|
}
|
|
27919
|
-
function Mn(e) {
|
|
27920
|
-
|
|
27931
|
+
function Mn(e, t = p.columnFixed ?? J.value) {
|
|
27932
|
+
return Dn(t, e) ? t[e] ?? null : jn(e)?.fixed ?? null;
|
|
27921
27933
|
}
|
|
27922
27934
|
function Nn(e) {
|
|
27923
|
-
|
|
27935
|
+
p.columnFixed === void 0 && (J.value = e), m("update:columnFixed", e);
|
|
27936
|
+
}
|
|
27937
|
+
function Pn(e) {
|
|
27938
|
+
let t = new Set(rt.value.map((e) => e.key)), n = e.filter((e, n, r) => t.has(e) && r.indexOf(e) === n), r = rt.value.map((e) => e.key).filter((e) => !n.includes(e));
|
|
27924
27939
|
return [...n, ...r];
|
|
27925
27940
|
}
|
|
27926
|
-
function
|
|
27927
|
-
let n =
|
|
27941
|
+
function Fn(e, t = p.columnFixed ?? J.value) {
|
|
27942
|
+
let n = Pn(e), r = n.filter((e) => Mn(e, t) === "left"), i = n.filter((e) => !Mn(e, t)), a = n.filter((e) => Mn(e, t) === "right");
|
|
27928
27943
|
return [
|
|
27929
27944
|
...r,
|
|
27930
27945
|
...i,
|
|
27931
27946
|
...a
|
|
27932
27947
|
];
|
|
27933
27948
|
}
|
|
27934
|
-
function Fn(e) {
|
|
27935
|
-
p.columnOrder === void 0 && (K.value = e), m("update:columnOrder", e);
|
|
27936
|
-
}
|
|
27937
27949
|
function In(e) {
|
|
27938
|
-
|
|
27939
|
-
return En(p.columnWidths, e.key) ? Rn(e, p.columnWidths?.[e.key] ?? t) : En(re.value, e.key) ? Rn(e, re.value[e.key] ?? t) : Rn(e, t);
|
|
27950
|
+
p.columnOrder === void 0 && (q.value = e), m("update:columnOrder", e);
|
|
27940
27951
|
}
|
|
27941
27952
|
function Ln(e) {
|
|
27942
|
-
|
|
27953
|
+
let t = On(e.width, e.minWidth ?? 160);
|
|
27954
|
+
return Dn(p.columnWidths, e.key) ? zn(e, p.columnWidths?.[e.key] ?? t) : Dn(K.value, e.key) ? zn(e, K.value[e.key] ?? t) : zn(e, t);
|
|
27943
27955
|
}
|
|
27944
|
-
function Rn(e
|
|
27945
|
-
|
|
27946
|
-
return Math.round(wn(t, n, r));
|
|
27956
|
+
function Rn(e) {
|
|
27957
|
+
return `${Ln(e)}px`;
|
|
27947
27958
|
}
|
|
27948
|
-
function zn(e, t
|
|
27949
|
-
|
|
27959
|
+
function zn(e, t) {
|
|
27960
|
+
let n = Math.max(48, e.minWidth ?? 96), r = e.maxWidth ?? Infinity;
|
|
27961
|
+
return Math.round(Tn(t, n, r));
|
|
27950
27962
|
}
|
|
27951
27963
|
function Bn(e, t = !1) {
|
|
27952
|
-
|
|
27953
|
-
|
|
27954
|
-
|
|
27964
|
+
return ct.value.get(e.key)?.[t ? "header" : "body"] ?? Un(e, t);
|
|
27965
|
+
}
|
|
27966
|
+
function Un(e, t = !1) {
|
|
27967
|
+
let n = An(e), r = {
|
|
27968
|
+
width: Rn(e),
|
|
27969
|
+
minWidth: Rn(e),
|
|
27955
27970
|
maxWidth: e.maxWidth ? `${e.maxWidth}px` : void 0,
|
|
27956
27971
|
textAlign: t ? e.headerAlign ?? e.align ?? "left" : e.align ?? "left"
|
|
27957
27972
|
};
|
|
27958
|
-
return n === "left" && (r.left = `${
|
|
27973
|
+
return n === "left" && (r.left = `${Yt.value[e.key] ?? 0}px`), n === "right" && (r.right = `${Xt.value[e.key] ?? 0}px`), r;
|
|
27959
27974
|
}
|
|
27960
|
-
function
|
|
27961
|
-
return
|
|
27975
|
+
function Wn() {
|
|
27976
|
+
return mn.value ? {
|
|
27962
27977
|
left: "0px",
|
|
27963
|
-
width: `${
|
|
27964
|
-
minWidth: `${
|
|
27978
|
+
width: `${Xe.value}px`,
|
|
27979
|
+
minWidth: `${Xe.value}px`
|
|
27965
27980
|
} : {
|
|
27966
|
-
width: `${
|
|
27967
|
-
minWidth: `${
|
|
27981
|
+
width: `${Xe.value}px`,
|
|
27982
|
+
minWidth: `${Xe.value}px`
|
|
27968
27983
|
};
|
|
27969
27984
|
}
|
|
27970
|
-
function Wn(e, t = !1) {
|
|
27971
|
-
return ct.value.get(e.key)?.[t ? "header" : "body"] ?? Gn(e, t);
|
|
27972
|
-
}
|
|
27973
27985
|
function Gn(e, t = !1) {
|
|
27974
|
-
|
|
27986
|
+
return lt.value.get(e.key)?.[t ? "header" : "body"] ?? Kn(e, t);
|
|
27987
|
+
}
|
|
27988
|
+
function Kn(e, t = !1) {
|
|
27989
|
+
let n = An(e);
|
|
27975
27990
|
return [
|
|
27976
27991
|
t ? e.headerClass : e.class,
|
|
27977
27992
|
`is-align-${t ? e.headerAlign ?? e.align ?? "left" : e.align ?? "left"}`,
|
|
27978
27993
|
{
|
|
27979
27994
|
"is-fixed-left": n === "left",
|
|
27980
27995
|
"is-fixed-right": n === "right",
|
|
27981
|
-
"is-last-left-fixed": n === "left" &&
|
|
27982
|
-
"is-first-right-fixed": n === "right" &&
|
|
27983
|
-
"is-last-right-fixed": n === "right" &&
|
|
27984
|
-
"is-before-right-fixed": n !== "right" &&
|
|
27985
|
-
"is-sorting":
|
|
27986
|
-
"is-dragging":
|
|
27987
|
-
"is-drag-over":
|
|
27988
|
-
"is-resizing":
|
|
27996
|
+
"is-last-left-fixed": n === "left" && qn(e.key),
|
|
27997
|
+
"is-first-right-fixed": n === "right" && Jn(e.key),
|
|
27998
|
+
"is-last-right-fixed": n === "right" && Yn(e.key),
|
|
27999
|
+
"is-before-right-fixed": n !== "right" && Xn(e.key),
|
|
28000
|
+
"is-sorting": yt.value === e.key && !!bt.value,
|
|
28001
|
+
"is-dragging": ge.value === e.key,
|
|
28002
|
+
"is-drag-over": _e.value === e.key,
|
|
28003
|
+
"is-resizing": ve.value === e.key,
|
|
27989
28004
|
"is-ellipsis": e.ellipsis !== !1
|
|
27990
28005
|
}
|
|
27991
28006
|
];
|
|
27992
28007
|
}
|
|
27993
|
-
function Kn(e) {
|
|
27994
|
-
let t = ot.value.findIndex((t) => t.key === e);
|
|
27995
|
-
return !ot.value.slice(t + 1).some((e) => On(e) === "left");
|
|
27996
|
-
}
|
|
27997
28008
|
function qn(e) {
|
|
27998
|
-
let t =
|
|
27999
|
-
return !
|
|
28009
|
+
let t = st.value.findIndex((t) => t.key === e);
|
|
28010
|
+
return !st.value.slice(t + 1).some((e) => An(e) === "left");
|
|
28000
28011
|
}
|
|
28001
28012
|
function Jn(e) {
|
|
28002
|
-
let t =
|
|
28003
|
-
return !
|
|
28013
|
+
let t = st.value.findIndex((t) => t.key === e);
|
|
28014
|
+
return !st.value.slice(0, t).some((e) => An(e) === "right");
|
|
28004
28015
|
}
|
|
28005
28016
|
function Yn(e) {
|
|
28006
|
-
let t =
|
|
28007
|
-
return
|
|
28017
|
+
let t = st.value.findIndex((t) => t.key === e);
|
|
28018
|
+
return !st.value.slice(t + 1).some((e) => An(e) === "right");
|
|
28008
28019
|
}
|
|
28009
28020
|
function Xn(e) {
|
|
28021
|
+
let t = st.value.findIndex((e) => An(e) === "right");
|
|
28022
|
+
return t > 0 && st.value[t - 1]?.key === e;
|
|
28023
|
+
}
|
|
28024
|
+
function Zn(e) {
|
|
28010
28025
|
let t = e[p.childrenKey];
|
|
28011
28026
|
return Array.isArray(t) ? t : [];
|
|
28012
28027
|
}
|
|
28013
|
-
function
|
|
28028
|
+
function Qn(e, t, n) {
|
|
28014
28029
|
if (typeof p.rowKey == "function") return p.rowKey(e, t, n);
|
|
28015
28030
|
let r = e[p.rowKey];
|
|
28016
28031
|
return typeof r == "string" || typeof r == "number" ? r : n.join("-");
|
|
28017
28032
|
}
|
|
28018
|
-
function
|
|
28033
|
+
function $n(e, t) {
|
|
28019
28034
|
return p.rowDisabled ? typeof p.rowDisabled == "function" ? p.rowDisabled(e, t) : !!e[p.rowDisabled] : !1;
|
|
28020
28035
|
}
|
|
28021
|
-
function
|
|
28036
|
+
function er(e, t) {
|
|
28022
28037
|
let n = [];
|
|
28023
28038
|
function r(e, i, a, o) {
|
|
28024
28039
|
e.forEach((e, s) => {
|
|
28025
|
-
let c = [...o, s], l =
|
|
28040
|
+
let c = [...o, s], l = Qn(e, n.length, c), u = Zn(e), d = u.length > 0, f = gt.value.has(l), p = {
|
|
28026
28041
|
row: e,
|
|
28027
28042
|
key: l,
|
|
28028
28043
|
level: i,
|
|
28029
28044
|
parentKey: a,
|
|
28030
28045
|
index: n.length,
|
|
28031
28046
|
path: c,
|
|
28032
|
-
disabled:
|
|
28047
|
+
disabled: $n(e, n.length),
|
|
28033
28048
|
hasChildren: d,
|
|
28034
28049
|
expanded: f
|
|
28035
28050
|
};
|
|
@@ -28038,10 +28053,10 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28038
28053
|
}
|
|
28039
28054
|
return r(e, 0, null, []), n;
|
|
28040
28055
|
}
|
|
28041
|
-
function
|
|
28056
|
+
function tr(e, t) {
|
|
28042
28057
|
return e[t.dataKey ?? t.key];
|
|
28043
28058
|
}
|
|
28044
|
-
function
|
|
28059
|
+
function nr(e) {
|
|
28045
28060
|
if (e == null) return "";
|
|
28046
28061
|
if (e instanceof Date) return e.toLocaleString();
|
|
28047
28062
|
if (typeof e == "object") try {
|
|
@@ -28051,164 +28066,164 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28051
28066
|
}
|
|
28052
28067
|
return String(e);
|
|
28053
28068
|
}
|
|
28054
|
-
function
|
|
28069
|
+
function rr(e, t) {
|
|
28055
28070
|
return e === t ? 0 : e == null ? 1 : t == null ? -1 : typeof e == "number" && typeof t == "number" ? e - t : String(e).localeCompare(String(t), void 0, {
|
|
28056
28071
|
numeric: !0,
|
|
28057
28072
|
sensitivity: "base"
|
|
28058
28073
|
});
|
|
28059
28074
|
}
|
|
28060
|
-
function
|
|
28075
|
+
function ir(e) {
|
|
28061
28076
|
return [typeof p.rowClass == "function" ? p.rowClass(e.row, e.index) : p.rowClass, {
|
|
28062
28077
|
"is-striped-row": e.index % 2 == 1,
|
|
28063
|
-
"is-selected":
|
|
28078
|
+
"is-selected": pt.value.has(e.key),
|
|
28064
28079
|
"is-disabled": e.disabled,
|
|
28065
28080
|
"is-expanded": e.expanded,
|
|
28066
28081
|
"has-children": e.hasChildren
|
|
28067
28082
|
}];
|
|
28068
28083
|
}
|
|
28069
|
-
function ir(e) {
|
|
28070
|
-
return (wt.value.length + e - 1) % 2 == 1;
|
|
28071
|
-
}
|
|
28072
28084
|
function ar(e) {
|
|
28073
|
-
return
|
|
28085
|
+
return (Tt.value.length + e - 1) % 2 == 1;
|
|
28074
28086
|
}
|
|
28075
28087
|
function or(e) {
|
|
28076
|
-
return
|
|
28088
|
+
return Dt.value && ut.value?.key === e.key;
|
|
28077
28089
|
}
|
|
28078
28090
|
function cr(e) {
|
|
28091
|
+
return ot.value.has(e);
|
|
28092
|
+
}
|
|
28093
|
+
function lr(e) {
|
|
28079
28094
|
let t = e.filter((t, n) => e.indexOf(t) === n);
|
|
28080
|
-
p.selectedRowKeys === void 0 && (
|
|
28095
|
+
p.selectedRowKeys === void 0 && (W.value = t), m("update:selectedRowKeys", t), m("selection-change", {
|
|
28081
28096
|
keys: t,
|
|
28082
|
-
rows:
|
|
28097
|
+
rows: Et.value.filter((e) => t.includes(e.key)).map((e) => e.row)
|
|
28083
28098
|
});
|
|
28084
28099
|
}
|
|
28085
|
-
function
|
|
28086
|
-
let n =
|
|
28100
|
+
function ur(e, t) {
|
|
28101
|
+
let n = Et.value.find((t) => t.key === e);
|
|
28087
28102
|
if (!n || n.disabled) return;
|
|
28088
|
-
let r =
|
|
28103
|
+
let r = pt.value.has(e), i = t ?? !r;
|
|
28089
28104
|
if (p.selectionMode === "single") {
|
|
28090
|
-
|
|
28105
|
+
lr(i ? [e] : []);
|
|
28091
28106
|
return;
|
|
28092
28107
|
}
|
|
28093
|
-
|
|
28108
|
+
lr(i ? [...ft.value, e] : ft.value.filter((t) => t !== e));
|
|
28094
28109
|
}
|
|
28095
|
-
function
|
|
28110
|
+
function dr(e) {
|
|
28096
28111
|
if (p.selectionMode === "single") return;
|
|
28097
|
-
let t =
|
|
28098
|
-
|
|
28112
|
+
let t = At.value.map((e) => e.key), n = ft.value.filter((e) => !t.includes(e));
|
|
28113
|
+
lr(e ? [...n, ...t] : n);
|
|
28099
28114
|
}
|
|
28100
|
-
function
|
|
28101
|
-
|
|
28115
|
+
function fr() {
|
|
28116
|
+
lr([]);
|
|
28102
28117
|
}
|
|
28103
|
-
function
|
|
28118
|
+
function pr(e, t, n = !1) {
|
|
28104
28119
|
let r = e.filter((t, n) => e.indexOf(t) === n);
|
|
28105
|
-
p.expandedRowKeys === void 0 && (
|
|
28120
|
+
p.expandedRowKeys === void 0 && (re.value = r), m("update:expandedRowKeys", r), t && m("expand-change", {
|
|
28106
28121
|
key: t.key,
|
|
28107
28122
|
row: t.row,
|
|
28108
28123
|
expanded: n,
|
|
28109
28124
|
expandedRowKeys: r
|
|
28110
28125
|
});
|
|
28111
28126
|
}
|
|
28112
|
-
function
|
|
28113
|
-
let n =
|
|
28127
|
+
function mr(e, t) {
|
|
28128
|
+
let n = Et.value.find((t) => t.key === e);
|
|
28114
28129
|
if (!n || !n.hasChildren) return;
|
|
28115
|
-
let r =
|
|
28116
|
-
|
|
28130
|
+
let r = gt.value.has(e), i = t ?? !r;
|
|
28131
|
+
pr(i ? [...ht.value, e] : ht.value.filter((t) => t !== e), n, i);
|
|
28117
28132
|
}
|
|
28118
|
-
function
|
|
28133
|
+
function hr(e) {
|
|
28119
28134
|
if (!e.sortable) return;
|
|
28120
28135
|
let t = e.key, n = "asc";
|
|
28121
|
-
|
|
28136
|
+
yt.value === e.key && (bt.value === "asc" ? n = "desc" : bt.value === "desc" && (t = null, n = null)), p.sortKey === void 0 && (oe.value = t), p.sortOrder === void 0 && (se.value = n), m("update:sortKey", t), m("update:sortOrder", n), m("sort-change", {
|
|
28122
28137
|
key: t,
|
|
28123
28138
|
order: n,
|
|
28124
28139
|
column: t ? e : void 0
|
|
28125
28140
|
});
|
|
28126
28141
|
}
|
|
28127
|
-
function
|
|
28128
|
-
p.columnWidths === void 0 && (
|
|
28142
|
+
function gr(e, t, n) {
|
|
28143
|
+
p.columnWidths === void 0 && (K.value = e), m("update:columnWidths", e), m("column-resize", {
|
|
28129
28144
|
key: t,
|
|
28130
28145
|
width: n,
|
|
28131
28146
|
widths: e
|
|
28132
28147
|
});
|
|
28133
28148
|
}
|
|
28134
|
-
function
|
|
28135
|
-
let n =
|
|
28149
|
+
function _r(e, t) {
|
|
28150
|
+
let n = rt.value.find((t) => t.key === e);
|
|
28136
28151
|
if (!n) return;
|
|
28137
|
-
let r =
|
|
28138
|
-
r !==
|
|
28139
|
-
...p.columnWidths ??
|
|
28152
|
+
let r = zn(n, t);
|
|
28153
|
+
r !== Ln(n) && gr({
|
|
28154
|
+
...p.columnWidths ?? K.value,
|
|
28140
28155
|
[e]: r
|
|
28141
28156
|
}, e, r);
|
|
28142
28157
|
}
|
|
28143
|
-
function
|
|
28158
|
+
function vr(e) {
|
|
28144
28159
|
return p.resizableColumns && e.resizable !== !1;
|
|
28145
28160
|
}
|
|
28146
|
-
function
|
|
28147
|
-
!
|
|
28161
|
+
function yr(e, t) {
|
|
28162
|
+
!vr(e) || t.button !== 0 || (t.preventDefault(), Ve = {
|
|
28148
28163
|
key: e.key,
|
|
28149
28164
|
startClientX: t.clientX,
|
|
28150
|
-
startWidth:
|
|
28151
|
-
},
|
|
28165
|
+
startWidth: Ln(e)
|
|
28166
|
+
}, ve.value = e.key, Dr(), Tr());
|
|
28152
28167
|
}
|
|
28153
|
-
function
|
|
28154
|
-
|
|
28155
|
-
}
|
|
28156
|
-
function br() {
|
|
28157
|
-
Me !== void 0 && Sn() && window.cancelAnimationFrame(Me), Me = void 0;
|
|
28168
|
+
function br(e) {
|
|
28169
|
+
Ve && (e.preventDefault(), Pe = Ve.startWidth + e.clientX - Ve.startClientX, Ne === void 0 && (Cn() && typeof window.requestAnimationFrame == "function" ? Ne = window.requestAnimationFrame(Sr) : Sr()));
|
|
28158
28170
|
}
|
|
28159
28171
|
function xr() {
|
|
28160
|
-
|
|
28161
|
-
let e = Ne;
|
|
28162
|
-
Ne = void 0, Be && e !== void 0 && gr(Be.key, e);
|
|
28172
|
+
Ne !== void 0 && Cn() && window.cancelAnimationFrame(Ne), Ne = void 0;
|
|
28163
28173
|
}
|
|
28164
28174
|
function Sr() {
|
|
28165
|
-
|
|
28175
|
+
xr();
|
|
28176
|
+
let e = Pe;
|
|
28177
|
+
Pe = void 0, Ve && e !== void 0 && _r(Ve.key, e);
|
|
28166
28178
|
}
|
|
28167
|
-
function Cr(
|
|
28168
|
-
|
|
28179
|
+
function Cr() {
|
|
28180
|
+
Ve && (Sr(), Ve = void 0, ve.value = null, Er(), Or());
|
|
28181
|
+
}
|
|
28182
|
+
function wr(e, t) {
|
|
28183
|
+
if (!vr(e) || t.key !== "ArrowLeft" && t.key !== "ArrowRight") return;
|
|
28169
28184
|
t.preventDefault();
|
|
28170
28185
|
let n = t.key === "ArrowRight" ? 12 : -12;
|
|
28171
|
-
|
|
28172
|
-
}
|
|
28173
|
-
function wr() {
|
|
28174
|
-
Sn() && (window.addEventListener("pointermove", yr), window.addEventListener("pointerup", Sr), window.addEventListener("pointercancel", Sr));
|
|
28186
|
+
_r(e.key, Ln(e) + n);
|
|
28175
28187
|
}
|
|
28176
28188
|
function Tr() {
|
|
28177
|
-
|
|
28189
|
+
Cn() && (window.addEventListener("pointermove", br), window.addEventListener("pointerup", Cr), window.addEventListener("pointercancel", Cr));
|
|
28178
28190
|
}
|
|
28179
28191
|
function Er() {
|
|
28180
|
-
|
|
28192
|
+
Cn() && (window.removeEventListener("pointermove", br), window.removeEventListener("pointerup", Cr), window.removeEventListener("pointercancel", Cr));
|
|
28181
28193
|
}
|
|
28182
28194
|
function Dr() {
|
|
28183
|
-
|
|
28195
|
+
Cn() && (We = document.documentElement.style.cursor, Ge = document.documentElement.style.userSelect, document.documentElement.style.cursor = "col-resize", document.documentElement.style.userSelect = "none");
|
|
28184
28196
|
}
|
|
28185
|
-
function Or(
|
|
28197
|
+
function Or() {
|
|
28198
|
+
Cn() && (document.documentElement.style.cursor = We, document.documentElement.style.userSelect = Ge);
|
|
28199
|
+
}
|
|
28200
|
+
function kr(e, t) {
|
|
28186
28201
|
if (e === t) return;
|
|
28187
|
-
let n =
|
|
28202
|
+
let n = it.value, r = n.indexOf(e), i = n.indexOf(t);
|
|
28188
28203
|
if (r < 0 || i < 0) return;
|
|
28189
28204
|
let a = [...n], [o] = a.splice(r, 1);
|
|
28190
28205
|
if (!o) return;
|
|
28191
28206
|
a.splice(i, 0, o);
|
|
28192
|
-
let s =
|
|
28193
|
-
|
|
28207
|
+
let s = Fn(a), c = s.indexOf(e);
|
|
28208
|
+
In(s), m("column-reorder", {
|
|
28194
28209
|
key: e,
|
|
28195
28210
|
from: r,
|
|
28196
28211
|
to: c,
|
|
28197
28212
|
order: s
|
|
28198
28213
|
});
|
|
28199
28214
|
}
|
|
28200
|
-
function
|
|
28201
|
-
let i =
|
|
28202
|
-
|
|
28215
|
+
function Ar(e, t, n, r) {
|
|
28216
|
+
let i = Fn(e.map((e) => String(e))), a = i.indexOf(String(t));
|
|
28217
|
+
In(i), m("column-reorder", {
|
|
28203
28218
|
key: String(t),
|
|
28204
28219
|
from: n,
|
|
28205
28220
|
to: a === -1 ? r : a,
|
|
28206
28221
|
order: i
|
|
28207
28222
|
});
|
|
28208
28223
|
}
|
|
28209
|
-
function
|
|
28210
|
-
|
|
28211
|
-
let e =
|
|
28224
|
+
function jr() {
|
|
28225
|
+
Ue?.(), B.value?.stop();
|
|
28226
|
+
let e = P.value?.ownerDocument;
|
|
28212
28227
|
if (!e) return;
|
|
28213
28228
|
let t = (e) => {
|
|
28214
28229
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -28232,119 +28247,119 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28232
28247
|
}), e.addEventListener("touchmove", t, {
|
|
28233
28248
|
capture: !0,
|
|
28234
28249
|
passive: !1
|
|
28235
|
-
}), e.addEventListener("keydown", n, !0), e.addEventListener("keyup", n, !0),
|
|
28236
|
-
e.removeEventListener("wheel", t, !0), e.removeEventListener("touchmove", t, !0), e.removeEventListener("keydown", n, !0), e.removeEventListener("keyup", n, !0),
|
|
28250
|
+
}), e.addEventListener("keydown", n, !0), e.addEventListener("keyup", n, !0), Ue = () => {
|
|
28251
|
+
e.removeEventListener("wheel", t, !0), e.removeEventListener("touchmove", t, !0), e.removeEventListener("keydown", n, !0), e.removeEventListener("keyup", n, !0), Ue = void 0;
|
|
28237
28252
|
};
|
|
28238
28253
|
}
|
|
28239
|
-
function
|
|
28240
|
-
|
|
28241
|
-
}
|
|
28242
|
-
function Mr(e) {
|
|
28243
|
-
let t = ot.value.length - 1;
|
|
28244
|
-
return t < 0 ? null : ot.value[Math.min(t, Math.max(0, e))]?.key ?? null;
|
|
28254
|
+
function Mr() {
|
|
28255
|
+
Ue?.(), ge.value = null, _e.value = null;
|
|
28245
28256
|
}
|
|
28246
28257
|
function Nr(e) {
|
|
28247
|
-
let
|
|
28248
|
-
|
|
28258
|
+
let t = st.value.length - 1;
|
|
28259
|
+
return t < 0 ? null : st.value[Math.min(t, Math.max(0, e))]?.key ?? null;
|
|
28249
28260
|
}
|
|
28250
28261
|
function Pr(e) {
|
|
28251
28262
|
let { source: t } = e.operation;
|
|
28252
|
-
!p.reorderableColumns || !
|
|
28263
|
+
!p.reorderableColumns || !fk(t) || (jr(), ge.value = String(t.id), _e.value = Nr(t.index));
|
|
28253
28264
|
}
|
|
28254
28265
|
function Fr(e) {
|
|
28255
|
-
let { source: t } = e.operation
|
|
28256
|
-
|
|
28257
|
-
let e = Mr(t.index);
|
|
28258
|
-
e && Or(n, e);
|
|
28259
|
-
}
|
|
28260
|
-
jr();
|
|
28266
|
+
let { source: t } = e.operation;
|
|
28267
|
+
!p.reorderableColumns || !ge.value || !fk(t) || (_e.value = Nr(t.index));
|
|
28261
28268
|
}
|
|
28262
28269
|
function Ir(e) {
|
|
28263
|
-
|
|
28270
|
+
let { source: t } = e.operation, n = ge.value;
|
|
28271
|
+
if (p.reorderableColumns && n && !e.canceled && fk(t)) {
|
|
28272
|
+
let e = Nr(t.index);
|
|
28273
|
+
e && kr(n, e);
|
|
28274
|
+
}
|
|
28275
|
+
Mr();
|
|
28264
28276
|
}
|
|
28265
28277
|
function Lr(e) {
|
|
28266
|
-
|
|
28278
|
+
Ar(e.order, e.key, e.from, e.to);
|
|
28279
|
+
}
|
|
28280
|
+
function Rr(e) {
|
|
28281
|
+
V.value?.stop(), ge.value = String(e.key);
|
|
28267
28282
|
}
|
|
28268
|
-
function
|
|
28269
|
-
let n = p.hiddenColumnKeys ??
|
|
28270
|
-
|
|
28283
|
+
function zr(e, t) {
|
|
28284
|
+
let n = p.hiddenColumnKeys ?? ae.value, r = t ? n.filter((t) => t !== e) : [...n, e].filter((e, t, n) => n.indexOf(e) === t);
|
|
28285
|
+
at.value.filter((e) => !r.includes(e.key)).length !== 0 && (p.hiddenColumnKeys === void 0 && (ae.value = r), m("update:hiddenColumnKeys", r), m("column-visibility-change", {
|
|
28271
28286
|
key: e,
|
|
28272
28287
|
hidden: !t,
|
|
28273
28288
|
hiddenColumnKeys: r
|
|
28274
28289
|
}));
|
|
28275
28290
|
}
|
|
28276
|
-
function
|
|
28277
|
-
let n = p.columnFixed ?? J.value, r =
|
|
28291
|
+
function Br(e, t) {
|
|
28292
|
+
let n = p.columnFixed ?? J.value, r = it.value, i = {
|
|
28278
28293
|
...n,
|
|
28279
28294
|
[e]: t
|
|
28280
|
-
}, a =
|
|
28281
|
-
|
|
28295
|
+
}, a = Fn(r, i);
|
|
28296
|
+
Nn(i), En(r, a) || In(a), m("column-fixed-change", {
|
|
28282
28297
|
key: e,
|
|
28283
28298
|
fixed: t,
|
|
28284
28299
|
columnFixed: i
|
|
28285
28300
|
});
|
|
28286
28301
|
}
|
|
28287
|
-
function
|
|
28302
|
+
function Vr() {
|
|
28288
28303
|
let e = { ...p.defaultColumnWidths }, t = p.defaultColumnOrder.length ? [...p.defaultColumnOrder] : p.columns.map((e) => e.key), n = [...new Set([...p.defaultHiddenColumnKeys, ...p.columns.filter((e) => e.hidden).map((e) => e.key)])], r = { ...p.defaultColumnFixed };
|
|
28289
|
-
|
|
28304
|
+
K.value = e, q.value = t, ae.value = n, J.value = r, m("update:columnWidths", e), m("update:columnOrder", t), m("update:hiddenColumnKeys", n), m("update:columnFixed", r);
|
|
28290
28305
|
}
|
|
28291
|
-
function
|
|
28292
|
-
let t =
|
|
28293
|
-
p.page === void 0 && (
|
|
28306
|
+
function Hr(e) {
|
|
28307
|
+
let t = Tn(Math.round(e), 1, Ct.value);
|
|
28308
|
+
p.page === void 0 && (Y.value = t), m("update:page", t), m("page-change", {
|
|
28294
28309
|
page: t,
|
|
28295
|
-
pageSize:
|
|
28310
|
+
pageSize: vt.value
|
|
28296
28311
|
});
|
|
28297
28312
|
}
|
|
28298
|
-
function
|
|
28313
|
+
function Ur(e) {
|
|
28299
28314
|
let t = Math.max(1, Math.round(e));
|
|
28300
|
-
(t !==
|
|
28315
|
+
(t !== vt.value || _t.value !== 1) && li(t), p.pageSize === void 0 && (X.value = t), p.page === void 0 && (Y.value = 1), m("update:pageSize", t), m("update:page", 1), m("page-change", {
|
|
28301
28316
|
page: 1,
|
|
28302
28317
|
pageSize: t
|
|
28303
28318
|
});
|
|
28304
28319
|
}
|
|
28305
|
-
function
|
|
28306
|
-
Array.isArray(e) || e === null ||
|
|
28320
|
+
function Wr(e) {
|
|
28321
|
+
Array.isArray(e) || e === null || Ur(Number(e));
|
|
28307
28322
|
}
|
|
28308
|
-
function
|
|
28309
|
-
m("row-click", e.row, t), !(t.defaultPrevented || t.target instanceof Element && t.target.closest("button,a[href],input,label,select,textarea,[role=\"button\"],[role=\"combobox\"],[contenteditable]:not([contenteditable=\"false\"]),[data-bing-table-row-click-ignore]")) && p.selectable && p.selectOnRowClick && !e.disabled && (f(t),
|
|
28323
|
+
function Gr(e, t) {
|
|
28324
|
+
m("row-click", e.row, t), !(t.defaultPrevented || t.target instanceof Element && t.target.closest("button,a[href],input,label,select,textarea,[role=\"button\"],[role=\"combobox\"],[contenteditable]:not([contenteditable=\"false\"]),[data-bing-table-row-click-ignore]")) && p.selectable && p.selectOnRowClick && !e.disabled && (f(t), ur(e.key));
|
|
28310
28325
|
}
|
|
28311
|
-
function
|
|
28326
|
+
function Kr(e) {
|
|
28312
28327
|
let t = e.target;
|
|
28313
|
-
|
|
28314
|
-
}
|
|
28315
|
-
function Kr() {
|
|
28316
|
-
de.value = V.value?.clientWidth ?? 0;
|
|
28328
|
+
Z.value = t.scrollTop, pe.value = t.scrollLeft, ue.value = t.clientWidth, de.value = t.scrollWidth, me.value = hi(t), he.value = gi(t) > 0, qr(), m("scroll", e);
|
|
28317
28329
|
}
|
|
28318
28330
|
function qr() {
|
|
28319
|
-
|
|
28320
|
-
ce.value = e?.clientHeight ?? 0, le.value = e?.clientWidth ?? 0, ue.value = e?.scrollWidth ?? 0, fe.value = e?.scrollLeft ?? 0, pe.value = e ? mi(e) : 0, me.value = e ? hi(e) > 0 : !1, Kr();
|
|
28331
|
+
fe.value = te.value?.clientWidth ?? 0;
|
|
28321
28332
|
}
|
|
28322
28333
|
function Jr() {
|
|
28334
|
+
let e = B.value?.viewport;
|
|
28335
|
+
le.value = e?.clientHeight ?? 0, ue.value = e?.clientWidth ?? 0, de.value = e?.scrollWidth ?? 0, pe.value = e?.scrollLeft ?? 0, me.value = e ? hi(e) : 0, he.value = e ? gi(e) > 0 : !1, qr();
|
|
28336
|
+
}
|
|
28337
|
+
function Yr() {
|
|
28323
28338
|
_(() => {
|
|
28324
|
-
|
|
28325
|
-
|
|
28339
|
+
B.value?.update(), Jr(), !(!Cn() || typeof window.requestAnimationFrame != "function") && (Q !== void 0 && window.cancelAnimationFrame(Q), Q = window.requestAnimationFrame(() => {
|
|
28340
|
+
Q = void 0, B.value?.update(), Jr();
|
|
28326
28341
|
}));
|
|
28327
28342
|
});
|
|
28328
28343
|
}
|
|
28329
|
-
function
|
|
28344
|
+
function Xr(e) {
|
|
28330
28345
|
let t = e.querySelector(":scope > .bing-table__scroll"), n = e.querySelector(":scope > .bing-table__horizontal-scrollbar");
|
|
28331
28346
|
return (t?.getBoundingClientRect().height ?? 0) + (n?.getBoundingClientRect().height ?? 0);
|
|
28332
28347
|
}
|
|
28333
|
-
function Xr() {
|
|
28334
|
-
return Ot.value * Ge.value;
|
|
28335
|
-
}
|
|
28336
28348
|
function Zr() {
|
|
28337
|
-
|
|
28338
|
-
Ie = void 0;
|
|
28339
|
-
return;
|
|
28340
|
-
}
|
|
28341
|
-
Ie !== void 0 && (window.clearTimeout(Ie), Ie = void 0);
|
|
28349
|
+
return kt.value * Ke.value;
|
|
28342
28350
|
}
|
|
28343
28351
|
function Qr() {
|
|
28344
|
-
|
|
28352
|
+
if (!Cn()) {
|
|
28353
|
+
Le = void 0;
|
|
28354
|
+
return;
|
|
28355
|
+
}
|
|
28356
|
+
Le !== void 0 && (window.clearTimeout(Le), Le = void 0);
|
|
28345
28357
|
}
|
|
28346
28358
|
function $r() {
|
|
28347
|
-
|
|
28359
|
+
return !!R.value && p.height === void 0 && !Nt.value && !wn();
|
|
28360
|
+
}
|
|
28361
|
+
function ei() {
|
|
28362
|
+
let e = P.value, t = R.value, n = ne.value;
|
|
28348
28363
|
if (!e || !t || !n) return;
|
|
28349
28364
|
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = n.getBoundingClientRect();
|
|
28350
28365
|
if (!(a.width <= 0 || a.height <= 0)) return {
|
|
@@ -28354,7 +28369,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28354
28369
|
reserve: Math.max(0, a.bottom - i.bottom)
|
|
28355
28370
|
};
|
|
28356
28371
|
}
|
|
28357
|
-
function
|
|
28372
|
+
function ti(e, t, n = "none") {
|
|
28358
28373
|
return {
|
|
28359
28374
|
position: "absolute",
|
|
28360
28375
|
top: `${e.top}px`,
|
|
@@ -28364,185 +28379,185 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28364
28379
|
transition: n
|
|
28365
28380
|
};
|
|
28366
28381
|
}
|
|
28367
|
-
function ti() {
|
|
28368
|
-
Le !== void 0 && Sn() && window.cancelAnimationFrame(Le), Le = void 0, Re = void 0, we.value = null, Te.value = void 0, Ce.value = !1;
|
|
28369
|
-
}
|
|
28370
28382
|
function ni() {
|
|
28371
|
-
|
|
28372
|
-
|
|
28373
|
-
|
|
28383
|
+
Re !== void 0 && Cn() && window.cancelAnimationFrame(Re), Re = void 0, ze = void 0, Te.value = null, Ee.value = void 0, we.value = !1;
|
|
28384
|
+
}
|
|
28385
|
+
function ri() {
|
|
28386
|
+
ni();
|
|
28387
|
+
let e = ei();
|
|
28388
|
+
e && (ze = e, Te.value = e.reserve, Ee.value = ti(e, "translate3d(0, 0, 0)"), we.value = !0);
|
|
28374
28389
|
}
|
|
28375
|
-
function
|
|
28376
|
-
let n =
|
|
28377
|
-
if (!n || !
|
|
28390
|
+
function ii(e, t) {
|
|
28391
|
+
let n = ze, r = t - e;
|
|
28392
|
+
if (!n || !we.value || Math.abs(r) < 1) return;
|
|
28378
28393
|
let i = `translate3d(0, ${r}px, 0)`, a = "transform 260ms var(--bing-ease-smooth)";
|
|
28379
|
-
if (!
|
|
28380
|
-
|
|
28394
|
+
if (!Cn() || typeof window.requestAnimationFrame != "function") {
|
|
28395
|
+
Ee.value = ti(n, i, a);
|
|
28381
28396
|
return;
|
|
28382
28397
|
}
|
|
28383
|
-
|
|
28384
|
-
|
|
28398
|
+
Re = window.requestAnimationFrame(() => {
|
|
28399
|
+
Re = void 0, Ee.value = ti(n, i, a);
|
|
28385
28400
|
});
|
|
28386
28401
|
}
|
|
28387
|
-
function
|
|
28402
|
+
function ai(e) {
|
|
28388
28403
|
return {
|
|
28389
28404
|
page: e.page,
|
|
28390
28405
|
pageCount: e.pageCount,
|
|
28391
28406
|
pageNumbers: [...e.pageNumbers]
|
|
28392
28407
|
};
|
|
28393
28408
|
}
|
|
28394
|
-
function
|
|
28395
|
-
|
|
28396
|
-
}
|
|
28397
|
-
function oi(e) {
|
|
28398
|
-
Se.value = null, !(!p.pagination || p.remotePagination || p.loading || Mt.value || e >= _t.value || wt.value.length <= e) && (Se.value = [...wt.value]);
|
|
28409
|
+
function oi() {
|
|
28410
|
+
Qr(), ni(), Be = void 0, De.value = null, Ce.value = null, Se.value = !1;
|
|
28399
28411
|
}
|
|
28400
28412
|
function ci(e) {
|
|
28401
|
-
|
|
28402
|
-
|
|
28413
|
+
Ce.value = null, !(!p.pagination || p.remotePagination || p.loading || Nt.value || e >= vt.value || Tt.value.length <= e) && (Ce.value = [...Tt.value]);
|
|
28414
|
+
}
|
|
28415
|
+
function li(e) {
|
|
28416
|
+
if (!$r()) {
|
|
28417
|
+
Ce.value = null;
|
|
28403
28418
|
return;
|
|
28404
28419
|
}
|
|
28405
|
-
|
|
28420
|
+
Qr(), ci(e), Be = R.value?.getBoundingClientRect().height, ri(), De.value = ai(gn.value), Se.value = !0, Cn() && (Le = window.setTimeout(oi, 420));
|
|
28406
28421
|
}
|
|
28407
|
-
function
|
|
28408
|
-
if (!
|
|
28409
|
-
|
|
28422
|
+
function ui() {
|
|
28423
|
+
if (!Cn()) {
|
|
28424
|
+
Fe = void 0, Ie = void 0;
|
|
28410
28425
|
return;
|
|
28411
28426
|
}
|
|
28412
|
-
|
|
28427
|
+
Fe !== void 0 && (window.cancelAnimationFrame(Fe), Fe = void 0), Ie !== void 0 && (window.clearTimeout(Ie), Ie = void 0);
|
|
28413
28428
|
}
|
|
28414
|
-
function
|
|
28415
|
-
|
|
28429
|
+
function di() {
|
|
28430
|
+
ui(), be.value = null, xe.value = !1, oi(), Yr();
|
|
28416
28431
|
}
|
|
28417
|
-
function
|
|
28418
|
-
if (!
|
|
28432
|
+
function fi(e) {
|
|
28433
|
+
if (!Cn() || typeof window.requestAnimationFrame != "function") {
|
|
28419
28434
|
e();
|
|
28420
28435
|
return;
|
|
28421
28436
|
}
|
|
28422
|
-
|
|
28423
|
-
if (!
|
|
28424
|
-
|
|
28437
|
+
Fe = window.requestAnimationFrame(() => {
|
|
28438
|
+
if (!Se.value) {
|
|
28439
|
+
Fe = void 0, e();
|
|
28425
28440
|
return;
|
|
28426
28441
|
}
|
|
28427
|
-
|
|
28428
|
-
|
|
28442
|
+
Fe = window.requestAnimationFrame(() => {
|
|
28443
|
+
Fe = void 0, e();
|
|
28429
28444
|
});
|
|
28430
28445
|
});
|
|
28431
28446
|
}
|
|
28432
|
-
function
|
|
28433
|
-
let e =
|
|
28434
|
-
if (!e || y.value || p.height !== void 0 ||
|
|
28435
|
-
let t =
|
|
28436
|
-
|
|
28437
|
-
let e =
|
|
28447
|
+
function pi() {
|
|
28448
|
+
let e = R.value;
|
|
28449
|
+
if (!e || y.value || p.height !== void 0 || Nt.value || wn()) return;
|
|
28450
|
+
let t = Be ?? e.getBoundingClientRect().height;
|
|
28451
|
+
Be = void 0, !(t <= 0) && (ui(), be.value = `${t}px`, xe.value = !0, _(() => {
|
|
28452
|
+
let e = R.value;
|
|
28438
28453
|
if (!e) {
|
|
28439
|
-
|
|
28454
|
+
di();
|
|
28440
28455
|
return;
|
|
28441
28456
|
}
|
|
28442
|
-
let n = Math.max(0,
|
|
28457
|
+
let n = Math.max(0, Xr(e) - Zr());
|
|
28443
28458
|
if (n <= 0 || Math.abs(n - t) < 1) {
|
|
28444
|
-
|
|
28459
|
+
di();
|
|
28445
28460
|
return;
|
|
28446
28461
|
}
|
|
28447
|
-
if (!
|
|
28448
|
-
|
|
28462
|
+
if (!Cn() || typeof window.requestAnimationFrame != "function") {
|
|
28463
|
+
be.value = `${n}px`, di();
|
|
28449
28464
|
return;
|
|
28450
28465
|
}
|
|
28451
|
-
|
|
28452
|
-
|
|
28466
|
+
fi(() => {
|
|
28467
|
+
ii(t, n), be.value = `${n}px`, Ie = window.setTimeout(di, 340);
|
|
28453
28468
|
});
|
|
28454
28469
|
}));
|
|
28455
28470
|
}
|
|
28456
|
-
function pi(e) {
|
|
28457
|
-
e.target !== L.value || e.propertyName !== "height" || ui();
|
|
28458
|
-
}
|
|
28459
28471
|
function mi(e) {
|
|
28472
|
+
e.target !== R.value || e.propertyName !== "height" || di();
|
|
28473
|
+
}
|
|
28474
|
+
function hi(e) {
|
|
28460
28475
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
28461
28476
|
return t > Jj ? t : 0;
|
|
28462
28477
|
}
|
|
28463
|
-
function
|
|
28478
|
+
function gi(e) {
|
|
28464
28479
|
let t = Math.max(0, e.scrollHeight - e.clientHeight);
|
|
28465
28480
|
return t > Jj ? t : 0;
|
|
28466
28481
|
}
|
|
28467
|
-
function
|
|
28468
|
-
let t =
|
|
28469
|
-
t && (t.scrollLeft =
|
|
28470
|
-
}
|
|
28471
|
-
function
|
|
28472
|
-
if (
|
|
28473
|
-
let e =
|
|
28474
|
-
return Math.max(0,
|
|
28475
|
-
}
|
|
28476
|
-
function vi(e) {
|
|
28477
|
-
if (!un.value || !V.value) return;
|
|
28478
|
-
e.preventDefault(), R.value?.stop(), Kr();
|
|
28479
|
-
let t = V.value.getBoundingClientRect(), n = _i();
|
|
28480
|
-
if (n <= 0) return;
|
|
28481
|
-
let r = de.value - n;
|
|
28482
|
-
gi(wn(e.clientX - t.left - r / 2, 0, n) / n * Math.max(1, pe.value));
|
|
28482
|
+
function _i(e) {
|
|
28483
|
+
let t = B.value?.viewport;
|
|
28484
|
+
t && (t.scrollLeft = Tn(e, 0, hi(t)), Jr());
|
|
28485
|
+
}
|
|
28486
|
+
function vi() {
|
|
28487
|
+
if (fe.value <= 0 || ue.value <= 0 || de.value <= 0) return 0;
|
|
28488
|
+
let e = Tn(ue.value / de.value * fe.value, 36, fe.value);
|
|
28489
|
+
return Math.max(0, fe.value - e);
|
|
28483
28490
|
}
|
|
28484
28491
|
function yi(e) {
|
|
28485
|
-
if (!
|
|
28486
|
-
|
|
28487
|
-
let t =
|
|
28488
|
-
|
|
28489
|
-
|
|
28492
|
+
if (!dn.value || !te.value) return;
|
|
28493
|
+
e.preventDefault(), B.value?.stop(), qr();
|
|
28494
|
+
let t = te.value.getBoundingClientRect(), n = vi();
|
|
28495
|
+
if (n <= 0) return;
|
|
28496
|
+
let r = fe.value - n;
|
|
28497
|
+
_i(Tn(e.clientX - t.left - r / 2, 0, n) / n * Math.max(1, me.value));
|
|
28498
|
+
}
|
|
28499
|
+
function bi(e) {
|
|
28500
|
+
if (!dn.value) return;
|
|
28501
|
+
B.value?.stop(), qr();
|
|
28502
|
+
let t = vi();
|
|
28503
|
+
t <= 0 || !Cn() || (e.preventDefault(), e.stopPropagation(), He = {
|
|
28504
|
+
maxScrollLeft: me.value,
|
|
28490
28505
|
startClientX: e.clientX,
|
|
28491
|
-
startScrollLeft:
|
|
28506
|
+
startScrollLeft: pe.value,
|
|
28492
28507
|
thumbTravel: t
|
|
28493
|
-
},
|
|
28508
|
+
}, ye.value = !0, We = document.documentElement.style.cursor, Ge = document.documentElement.style.userSelect, document.documentElement.style.cursor = "grabbing", document.documentElement.style.userSelect = "none", window.addEventListener("pointermove", xi), window.addEventListener("pointerup", Si), window.addEventListener("pointercancel", Si));
|
|
28494
28509
|
}
|
|
28495
|
-
function
|
|
28496
|
-
if (!
|
|
28497
|
-
let t = (e.clientX -
|
|
28498
|
-
|
|
28510
|
+
function xi(e) {
|
|
28511
|
+
if (!He) return;
|
|
28512
|
+
let t = (e.clientX - He.startClientX) / He.thumbTravel * He.maxScrollLeft;
|
|
28513
|
+
_i(He.startScrollLeft + t);
|
|
28499
28514
|
}
|
|
28500
|
-
function
|
|
28501
|
-
if (!
|
|
28502
|
-
|
|
28515
|
+
function Si() {
|
|
28516
|
+
if (!He || !Cn()) {
|
|
28517
|
+
He = void 0, ye.value = !1;
|
|
28503
28518
|
return;
|
|
28504
28519
|
}
|
|
28505
|
-
|
|
28520
|
+
He = void 0, ye.value = !1, document.documentElement.style.cursor = We, document.documentElement.style.userSelect = Ge, window.removeEventListener("pointermove", xi), window.removeEventListener("pointerup", Si), window.removeEventListener("pointercancel", Si);
|
|
28506
28521
|
}
|
|
28507
|
-
function
|
|
28508
|
-
|
|
28522
|
+
function Ci(e) {
|
|
28523
|
+
B.value && (B.value.scrollTo(Math.max(0, e)), Z.value = B.value.viewport?.scrollTop ?? 0, Jr());
|
|
28509
28524
|
}
|
|
28510
|
-
function
|
|
28511
|
-
if (
|
|
28512
|
-
|
|
28525
|
+
function wi() {
|
|
28526
|
+
if (Me?.disconnect(), Me = void 0, !Cn() || typeof ResizeObserver > "u") {
|
|
28527
|
+
Jr(), window.addEventListener("resize", Jr);
|
|
28513
28528
|
return;
|
|
28514
28529
|
}
|
|
28515
|
-
|
|
28530
|
+
Me = new ResizeObserver(Jr), B.value?.viewport && Me.observe(B.value.viewport), te.value && Me.observe(te.value), Jr();
|
|
28516
28531
|
}
|
|
28517
28532
|
U(() => [p.size, p.virtualRowHeight], () => {
|
|
28518
|
-
|
|
28519
|
-
}, { flush: "sync" }), U(
|
|
28520
|
-
function
|
|
28521
|
-
if (!
|
|
28522
|
-
let t =
|
|
28533
|
+
ce.value = 0, L.invalidate();
|
|
28534
|
+
}, { flush: "sync" }), U(Nt, () => L.invalidate());
|
|
28535
|
+
function Ti(e) {
|
|
28536
|
+
if (!Nt.value || !Cn()) return;
|
|
28537
|
+
let t = Ke.value;
|
|
28523
28538
|
for (let n of e) {
|
|
28524
28539
|
let e = n.closest(".bing-table__cell-content");
|
|
28525
28540
|
if (!e?.parentElement) continue;
|
|
28526
28541
|
let r = window.getComputedStyle(e), i = (Number.parseFloat(r.paddingTop) || 0) + (Number.parseFloat(r.paddingBottom) || 0), a = Math.max(0, ...Array.from(e.children).map((e) => e.getBoundingClientRect().height)), o = Number.parseFloat(window.getComputedStyle(e.parentElement).borderBottomWidth) || 0;
|
|
28527
28542
|
t = Math.max(t, Math.ceil(a + i + o));
|
|
28528
28543
|
}
|
|
28529
|
-
if (t <=
|
|
28530
|
-
let n =
|
|
28544
|
+
if (t <= Ke.value) return;
|
|
28545
|
+
let n = Z.value / Ke.value;
|
|
28531
28546
|
return () => {
|
|
28532
|
-
|
|
28533
|
-
let e =
|
|
28534
|
-
e && (e.scrollTop = n * t,
|
|
28547
|
+
ce.value = t, _(() => {
|
|
28548
|
+
let e = B.value?.viewport;
|
|
28549
|
+
e && (e.scrollTop = n * t, Z.value = e.scrollTop);
|
|
28535
28550
|
});
|
|
28536
28551
|
};
|
|
28537
28552
|
}
|
|
28538
|
-
function
|
|
28553
|
+
function Ei(e) {
|
|
28539
28554
|
if (clearTimeout(O), O = void 0, e) {
|
|
28540
28555
|
h.value || (O = setTimeout(() => {
|
|
28541
|
-
O = void 0,
|
|
28556
|
+
O = void 0, N = Date.now(), h.value = !0;
|
|
28542
28557
|
}, Yj));
|
|
28543
28558
|
return;
|
|
28544
28559
|
}
|
|
28545
|
-
let t = Xj - (Date.now() -
|
|
28560
|
+
let t = Xj - (Date.now() - N);
|
|
28546
28561
|
h.value && t > 0 ? O = setTimeout(() => {
|
|
28547
28562
|
O = void 0, h.value = !1;
|
|
28548
28563
|
}, t) : h.value = !1;
|
|
@@ -28555,75 +28570,75 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28555
28570
|
e || (x.value = t, C.value = n);
|
|
28556
28571
|
}), U(y, (e) => {
|
|
28557
28572
|
if (e) {
|
|
28558
|
-
let e =
|
|
28559
|
-
w.value = e > 0 ? e : null,
|
|
28573
|
+
let e = R.value?.getBoundingClientRect().height ?? 0;
|
|
28574
|
+
w.value = e > 0 ? e : null, ui(), be.value = null, xe.value = !1, oi();
|
|
28560
28575
|
} else w.value = null;
|
|
28561
28576
|
}), U(() => [
|
|
28562
28577
|
p.defaultExpandAll,
|
|
28563
28578
|
T.value,
|
|
28564
28579
|
p.childrenKey
|
|
28565
28580
|
], () => {
|
|
28566
|
-
p.defaultExpandAll && p.expandedRowKeys === void 0 && (
|
|
28581
|
+
p.defaultExpandAll && p.expandedRowKeys === void 0 && (re.value = Et.value.filter((e) => e.hasChildren).map((e) => e.key)), Yr();
|
|
28567
28582
|
}, {
|
|
28568
28583
|
deep: !0,
|
|
28569
28584
|
immediate: !0
|
|
28570
|
-
}), U(
|
|
28571
|
-
|
|
28585
|
+
}), U(Bt, () => {
|
|
28586
|
+
pi();
|
|
28572
28587
|
}, { flush: "pre" }), U(() => [
|
|
28573
|
-
gt.value,
|
|
28574
28588
|
_t.value,
|
|
28575
|
-
|
|
28589
|
+
vt.value,
|
|
28590
|
+
Tt.value.length
|
|
28576
28591
|
], () => {
|
|
28577
|
-
|
|
28578
|
-
}), U(
|
|
28579
|
-
|
|
28580
|
-
}), U(
|
|
28581
|
-
e ||
|
|
28582
|
-
}), U(
|
|
28583
|
-
|
|
28592
|
+
Ci(0), Yr();
|
|
28593
|
+
}), U(Jt, () => {
|
|
28594
|
+
Yr();
|
|
28595
|
+
}), U(H, (e) => {
|
|
28596
|
+
e || V.value?.stop();
|
|
28597
|
+
}), U(Ct, (e) => {
|
|
28598
|
+
_t.value > e && Hr(e);
|
|
28584
28599
|
}), S(() => {
|
|
28585
|
-
U(() => p.loading,
|
|
28586
|
-
|
|
28600
|
+
U(() => p.loading, Ei, { immediate: !0 }), _(() => {
|
|
28601
|
+
wi(), Yr();
|
|
28587
28602
|
});
|
|
28588
28603
|
}), ee(() => {
|
|
28589
|
-
clearTimeout(O),
|
|
28604
|
+
clearTimeout(O), Mr(), xr(), Pe = void 0, Er(), Or(), Si(), Me?.disconnect(), Me = void 0, Q !== void 0 && Cn() && (window.cancelAnimationFrame(Q), Q = void 0), ui(), Qr(), ni(), Cn() && window.removeEventListener("resize", Jr);
|
|
28590
28605
|
}), n({
|
|
28591
|
-
clearSelection:
|
|
28592
|
-
toggleRowSelection:
|
|
28593
|
-
toggleRowExpansion:
|
|
28594
|
-
resetColumns:
|
|
28595
|
-
scrollTo:
|
|
28606
|
+
clearSelection: fr,
|
|
28607
|
+
toggleRowSelection: ur,
|
|
28608
|
+
toggleRowExpansion: mr,
|
|
28609
|
+
resetColumns: Vr,
|
|
28610
|
+
scrollTo: Ci
|
|
28596
28611
|
}), (n, i) => (E(), s("section", {
|
|
28597
28612
|
ref_key: "rootRef",
|
|
28598
|
-
ref:
|
|
28599
|
-
class: v(
|
|
28600
|
-
style: b(
|
|
28613
|
+
ref: P,
|
|
28614
|
+
class: v(Ze.value),
|
|
28615
|
+
style: b(Qe.value),
|
|
28601
28616
|
"aria-busy": y.value
|
|
28602
28617
|
}, [
|
|
28603
28618
|
n.$slots.toolbar ? (E(), s("div", wj, [c("div", Tj, [j(n.$slots, "toolbar", {
|
|
28604
|
-
selectedRowKeys:
|
|
28605
|
-
visibleColumns:
|
|
28619
|
+
selectedRowKeys: ft.value,
|
|
28620
|
+
visibleColumns: st.value
|
|
28606
28621
|
}, void 0, !0)])])) : o("", !0),
|
|
28607
28622
|
c("div", {
|
|
28608
28623
|
ref_key: "frameRef",
|
|
28609
|
-
ref:
|
|
28610
|
-
class: v(["bing-table__frame", { "is-height-animating":
|
|
28611
|
-
style: b(
|
|
28612
|
-
onTransitionend:
|
|
28624
|
+
ref: R,
|
|
28625
|
+
class: v(["bing-table__frame", { "is-height-animating": xe.value }]),
|
|
28626
|
+
style: b(nt.value),
|
|
28627
|
+
onTransitionend: mi
|
|
28613
28628
|
}, [
|
|
28614
28629
|
d(z(FO), {
|
|
28615
|
-
sensors:
|
|
28616
|
-
plugins:
|
|
28617
|
-
onDragStart:
|
|
28618
|
-
onDragMove:
|
|
28619
|
-
onDragEnd:
|
|
28630
|
+
sensors: Ae,
|
|
28631
|
+
plugins: je,
|
|
28632
|
+
onDragStart: Pr,
|
|
28633
|
+
onDragMove: Fr,
|
|
28634
|
+
onDragEnd: Ir
|
|
28620
28635
|
}, {
|
|
28621
28636
|
default: G(() => [d(sr, {
|
|
28622
28637
|
ref_key: "scrollRef",
|
|
28623
|
-
ref:
|
|
28638
|
+
ref: B,
|
|
28624
28639
|
class: "bing-table__scroll",
|
|
28625
|
-
height:
|
|
28626
|
-
"max-height":
|
|
28640
|
+
height: $e.value,
|
|
28641
|
+
"max-height": et.value,
|
|
28627
28642
|
"overflow-tolerance": Jj,
|
|
28628
28643
|
smooth: t.smoothScroll,
|
|
28629
28644
|
horizontal: "",
|
|
@@ -28631,48 +28646,48 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28631
28646
|
always: "",
|
|
28632
28647
|
"aria-label": t.ariaLabel,
|
|
28633
28648
|
inert: y.value,
|
|
28634
|
-
onScroll:
|
|
28649
|
+
onScroll: Kr
|
|
28635
28650
|
}, {
|
|
28636
28651
|
default: G(() => [c("table", {
|
|
28637
28652
|
class: "bing-table__table",
|
|
28638
|
-
style: b({ minWidth: `${
|
|
28653
|
+
style: b({ minWidth: `${Jt.value}px` })
|
|
28639
28654
|
}, [
|
|
28640
28655
|
c("colgroup", null, [t.selectable ? (E(), s("col", {
|
|
28641
28656
|
key: 0,
|
|
28642
|
-
style: b({ width: `${
|
|
28643
|
-
}, null, 4)) : o("", !0), (E(!0), s(e, null, A(
|
|
28657
|
+
style: b({ width: `${Xe.value}px` })
|
|
28658
|
+
}, null, 4)) : o("", !0), (E(!0), s(e, null, A(st.value, (e) => (E(), s("col", {
|
|
28644
28659
|
key: e.key,
|
|
28645
|
-
style: b({ width:
|
|
28660
|
+
style: b({ width: Rn(e) })
|
|
28646
28661
|
}, null, 4))), 128))]),
|
|
28647
28662
|
c("thead", Ej, [c("tr", null, [t.selectable ? (E(), s("th", {
|
|
28648
28663
|
key: 0,
|
|
28649
|
-
class: v(["bing-table__selection-cell bing-table__selection-cell--head", { "is-fixed-left":
|
|
28650
|
-
style: b(
|
|
28664
|
+
class: v(["bing-table__selection-cell bing-table__selection-cell--head", { "is-fixed-left": mn.value }]),
|
|
28665
|
+
style: b(Wn()),
|
|
28651
28666
|
scope: "col"
|
|
28652
28667
|
}, [t.selectionMode === "multiple" ? (E(), a(si, {
|
|
28653
28668
|
key: 0,
|
|
28654
28669
|
size: "sm",
|
|
28655
|
-
"model-value":
|
|
28656
|
-
indeterminate:
|
|
28670
|
+
"model-value": jt.value,
|
|
28671
|
+
indeterminate: Mt.value,
|
|
28657
28672
|
"aria-label": "选择当前页的所有行",
|
|
28658
|
-
onChange:
|
|
28659
|
-
}, null, 8, ["model-value", "indeterminate"])) : o("", !0)], 6)) : o("", !0), (E(!0), s(e, null, A(
|
|
28660
|
-
|
|
28661
|
-
|
|
28662
|
-
|
|
28663
|
-
|
|
28664
|
-
class:
|
|
28665
|
-
style:
|
|
28673
|
+
onChange: dr
|
|
28674
|
+
}, null, 8, ["model-value", "indeterminate"])) : o("", !0)], 6)) : o("", !0), (E(!0), s(e, null, A(st.value, (e, r) => (E(), a(M(t.reorderableColumns ? dj : "th"), g({ key: e.key }, { ref_for: !0 }, t.reorderableColumns ? {
|
|
28675
|
+
columnKey: e.key,
|
|
28676
|
+
index: r
|
|
28677
|
+
} : {}, {
|
|
28678
|
+
"data-bing-table-sortable-key": e.key,
|
|
28679
|
+
class: ["bing-table__header-cell", Gn(e, !0)],
|
|
28680
|
+
style: Bn(e, !0),
|
|
28666
28681
|
scope: "col"
|
|
28667
|
-
}, {
|
|
28682
|
+
}), {
|
|
28668
28683
|
default: G(() => [d(yj, {
|
|
28669
28684
|
column: e,
|
|
28670
28685
|
reorderable: t.reorderableColumns,
|
|
28671
|
-
resizable:
|
|
28672
|
-
"sort-order":
|
|
28673
|
-
onSort: (t) =>
|
|
28674
|
-
onResizeStart: (t) =>
|
|
28675
|
-
onResizeKeydown: (t) =>
|
|
28686
|
+
resizable: vr(e),
|
|
28687
|
+
"sort-order": yt.value === e.key ? bt.value : null,
|
|
28688
|
+
onSort: (t) => hr(e),
|
|
28689
|
+
onResizeStart: (t) => yr(e, t),
|
|
28690
|
+
onResizeKeydown: (t) => wr(e, t)
|
|
28676
28691
|
}, {
|
|
28677
28692
|
default: G(() => [j(n.$slots, `header-${e.key}`, { column: e }, () => [u(I(e.title || e.key), 1)], !0)]),
|
|
28678
28693
|
_: 2
|
|
@@ -28686,52 +28701,50 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28686
28701
|
"onResizeKeydown"
|
|
28687
28702
|
])]),
|
|
28688
28703
|
_: 2
|
|
28689
|
-
},
|
|
28690
|
-
"
|
|
28691
|
-
"index",
|
|
28692
|
-
"disabled",
|
|
28704
|
+
}, 1040, [
|
|
28705
|
+
"data-bing-table-sortable-key",
|
|
28693
28706
|
"class",
|
|
28694
28707
|
"style"
|
|
28695
28708
|
]))), 128))])]),
|
|
28696
|
-
!
|
|
28709
|
+
!Ot.value.length || !st.value.length ? (E(), s("tbody", Dj, [c("tr", null, [c("td", {
|
|
28697
28710
|
class: "bing-table__state-cell",
|
|
28698
|
-
colspan:
|
|
28711
|
+
colspan: dt.value
|
|
28699
28712
|
}, [y.value ? o("", !0) : (E(), s("span", kj, I(t.emptyText), 1))], 8, Oj)])])) : (E(), s("tbody", Aj, [
|
|
28700
|
-
|
|
28701
|
-
colspan:
|
|
28702
|
-
style: b({ height: `${
|
|
28713
|
+
Nt.value && Vt.value > 0 ? (E(), s("tr", jj, [c("td", {
|
|
28714
|
+
colspan: dt.value,
|
|
28715
|
+
style: b({ height: `${Vt.value}px` })
|
|
28703
28716
|
}, null, 12, Mj)])) : o("", !0),
|
|
28704
|
-
(E(!0), s(e, null, A(
|
|
28717
|
+
(E(!0), s(e, null, A(It.value, (r) => (E(), s("tr", {
|
|
28705
28718
|
key: r.key,
|
|
28706
|
-
class: v(["bing-table__row",
|
|
28707
|
-
"aria-selected": t.selectable ?
|
|
28708
|
-
onClick: (e) =>
|
|
28719
|
+
class: v(["bing-table__row", ir(r)]),
|
|
28720
|
+
"aria-selected": t.selectable ? pt.value.has(r.key) : void 0,
|
|
28721
|
+
onClick: (e) => Gr(r, e)
|
|
28709
28722
|
}, [t.selectable ? (E(), s("td", {
|
|
28710
28723
|
key: 0,
|
|
28711
|
-
class: v(["bing-table__selection-cell", { "is-fixed-left":
|
|
28712
|
-
style: b(
|
|
28724
|
+
class: v(["bing-table__selection-cell", { "is-fixed-left": mn.value }]),
|
|
28725
|
+
style: b(Wn())
|
|
28713
28726
|
}, [c("span", {
|
|
28714
28727
|
class: "bing-table__selection-wrap",
|
|
28715
28728
|
onClick: i[0] ||= ie(() => {}, ["stop"])
|
|
28716
28729
|
}, [d(si, {
|
|
28717
28730
|
size: "sm",
|
|
28718
|
-
"model-value":
|
|
28731
|
+
"model-value": pt.value.has(r.key),
|
|
28719
28732
|
disabled: r.disabled,
|
|
28720
28733
|
"aria-label": `选择行 ${r.key}`,
|
|
28721
|
-
onChange: (e) =>
|
|
28734
|
+
onChange: (e) => ur(r.key, e)
|
|
28722
28735
|
}, null, 8, [
|
|
28723
28736
|
"model-value",
|
|
28724
28737
|
"disabled",
|
|
28725
28738
|
"aria-label",
|
|
28726
28739
|
"onChange"
|
|
28727
|
-
])])], 6)) : o("", !0), (E(!0), s(e, null, A(
|
|
28740
|
+
])])], 6)) : o("", !0), (E(!0), s(e, null, A(st.value, (e) => (E(), s("td", {
|
|
28728
28741
|
key: e.key,
|
|
28729
|
-
class: v(["bing-table__cell",
|
|
28730
|
-
style: b(
|
|
28742
|
+
class: v(["bing-table__cell", Gn(e)]),
|
|
28743
|
+
style: b(Bn(e))
|
|
28731
28744
|
}, [c("div", {
|
|
28732
|
-
class: v(["bing-table__cell-content", { "is-tree-cell":
|
|
28733
|
-
style: b(
|
|
28734
|
-
}, [
|
|
28745
|
+
class: v(["bing-table__cell-content", { "is-tree-cell": or(e) }]),
|
|
28746
|
+
style: b(or(e) ? { paddingLeft: `calc(var(--bing-table-cell-padding-x) + ${r.level * Ye.value}px)` } : void 0)
|
|
28747
|
+
}, [or(e) && r.hasChildren ? (E(), a(mt, {
|
|
28735
28748
|
key: 0,
|
|
28736
28749
|
variant: "ghost",
|
|
28737
28750
|
size: "xs",
|
|
@@ -28740,7 +28753,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28740
28753
|
class: "bing-table__expander",
|
|
28741
28754
|
"aria-expanded": r.expanded,
|
|
28742
28755
|
"aria-label": r.expanded ? "收起行" : "展开行",
|
|
28743
|
-
onClick: ie((e) =>
|
|
28756
|
+
onClick: ie((e) => mr(r.key), ["stop"])
|
|
28744
28757
|
}, {
|
|
28745
28758
|
prefix: G(() => [d(kn, {
|
|
28746
28759
|
icon: r.expanded ? z(Ht) : z(Wt),
|
|
@@ -28752,44 +28765,44 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28752
28765
|
"aria-expanded",
|
|
28753
28766
|
"aria-label",
|
|
28754
28767
|
"onClick"
|
|
28755
|
-
])) :
|
|
28768
|
+
])) : or(e) ? (E(), s("span", Pj)) : o("", !0), d(Sj, {
|
|
28756
28769
|
ellipsis: e.ellipsis !== !1,
|
|
28757
28770
|
disabled: y.value
|
|
28758
28771
|
}, {
|
|
28759
28772
|
default: G(() => [j(n.$slots, `cell-${e.key}`, {
|
|
28760
28773
|
row: r.row,
|
|
28761
28774
|
column: e,
|
|
28762
|
-
value:
|
|
28775
|
+
value: tr(r.row, e),
|
|
28763
28776
|
rowIndex: r.index,
|
|
28764
28777
|
level: r.level
|
|
28765
28778
|
}, () => [j(n.$slots, "cell", {
|
|
28766
28779
|
row: r.row,
|
|
28767
28780
|
column: e,
|
|
28768
|
-
value:
|
|
28781
|
+
value: tr(r.row, e),
|
|
28769
28782
|
rowIndex: r.index,
|
|
28770
28783
|
level: r.level
|
|
28771
|
-
}, () => [u(I(tr(
|
|
28784
|
+
}, () => [u(I(nr(tr(r.row, e))), 1)], !0)], !0)]),
|
|
28772
28785
|
_: 2
|
|
28773
28786
|
}, 1032, ["ellipsis", "disabled"])], 6)], 6))), 128))], 10, Nj))), 128)),
|
|
28774
|
-
(E(!0), s(e, null, A(
|
|
28787
|
+
(E(!0), s(e, null, A(zt.value, (n) => (E(), s("tr", {
|
|
28775
28788
|
key: `__bing-page-filler-${n}`,
|
|
28776
|
-
class: v(["bing-table__row bing-table__row--filler", { "is-striped-row":
|
|
28789
|
+
class: v(["bing-table__row bing-table__row--filler", { "is-striped-row": ar(n) }]),
|
|
28777
28790
|
"aria-hidden": "true"
|
|
28778
28791
|
}, [t.selectable ? (E(), s("td", {
|
|
28779
28792
|
key: 0,
|
|
28780
|
-
class: v(["bing-table__selection-cell", { "is-fixed-left":
|
|
28781
|
-
style: b(
|
|
28782
|
-
}, [...i[6] ||= [c("span", { class: "bing-table__selection-placeholder" }, null, -1)]], 6)) : o("", !0), (E(!0), s(e, null, A(
|
|
28793
|
+
class: v(["bing-table__selection-cell", { "is-fixed-left": mn.value }]),
|
|
28794
|
+
style: b(Wn())
|
|
28795
|
+
}, [...i[6] ||= [c("span", { class: "bing-table__selection-placeholder" }, null, -1)]], 6)) : o("", !0), (E(!0), s(e, null, A(st.value, (e) => (E(), s("td", {
|
|
28783
28796
|
key: e.key,
|
|
28784
|
-
class: v(["bing-table__cell",
|
|
28785
|
-
style: b(
|
|
28797
|
+
class: v(["bing-table__cell", Gn(e)]),
|
|
28798
|
+
style: b(Bn(e))
|
|
28786
28799
|
}, [...i[7] ||= [c("div", {
|
|
28787
28800
|
class: "bing-table__cell-content",
|
|
28788
28801
|
"aria-hidden": "true"
|
|
28789
28802
|
}, null, -1)]], 6))), 128))], 2))), 128)),
|
|
28790
|
-
|
|
28791
|
-
colspan:
|
|
28792
|
-
style: b({ height: `${
|
|
28803
|
+
Nt.value && Gt.value > 0 ? (E(), s("tr", Fj, [c("td", {
|
|
28804
|
+
colspan: dt.value,
|
|
28805
|
+
style: b({ height: `${Gt.value}px` })
|
|
28793
28806
|
}, null, 12, Ij)])) : o("", !0)
|
|
28794
28807
|
]))
|
|
28795
28808
|
], 4)]),
|
|
@@ -28802,20 +28815,20 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28802
28815
|
"inert"
|
|
28803
28816
|
]), d(z(zO), {
|
|
28804
28817
|
class: "bing-table__column-drag-overlay",
|
|
28805
|
-
"drop-animation":
|
|
28818
|
+
"drop-animation": Oe,
|
|
28806
28819
|
style: b({
|
|
28807
|
-
"--bing-table-column-drop-duration": `${
|
|
28808
|
-
"--bing-table-column-drop-easing":
|
|
28820
|
+
"--bing-table-column-drop-duration": `${Oe.duration}ms`,
|
|
28821
|
+
"--bing-table-column-drop-easing": Oe.easing
|
|
28809
28822
|
})
|
|
28810
28823
|
}, {
|
|
28811
28824
|
default: G(({ source: e }) => [e ? (E(), s("div", {
|
|
28812
28825
|
key: 0,
|
|
28813
|
-
class: v(["bing-table__header-cell bing-table__column-drag-card", [
|
|
28826
|
+
class: v(["bing-table__header-cell bing-table__column-drag-card", [Gn(jn(String(e.id)) ?? { key: String(e.id) }, !0), { "is-landing": !ge.value }]]),
|
|
28814
28827
|
"aria-hidden": "true",
|
|
28815
28828
|
inert: ""
|
|
28816
28829
|
}, [d(yj, {
|
|
28817
|
-
column:
|
|
28818
|
-
"sort-order":
|
|
28830
|
+
column: jn(String(e.id)) ?? { key: String(e.id) },
|
|
28831
|
+
"sort-order": yt.value === String(e.id) ? bt.value : null,
|
|
28819
28832
|
preview: ""
|
|
28820
28833
|
}, {
|
|
28821
28834
|
default: G(({ column: e }) => [j(n.$slots, `header-${e.key}`, { column: e }, () => [u(I(e.title || e.key), 1)], !0)]),
|
|
@@ -28827,42 +28840,42 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28827
28840
|
}),
|
|
28828
28841
|
c("div", {
|
|
28829
28842
|
class: v(["bing-table__horizontal-scrollbar", {
|
|
28830
|
-
"is-visible":
|
|
28831
|
-
"is-dragging":
|
|
28843
|
+
"is-visible": dn.value,
|
|
28844
|
+
"is-dragging": ye.value
|
|
28832
28845
|
}]),
|
|
28833
28846
|
"aria-hidden": "true"
|
|
28834
28847
|
}, [c("div", {
|
|
28835
28848
|
ref_key: "horizontalRailRef",
|
|
28836
|
-
ref:
|
|
28849
|
+
ref: te,
|
|
28837
28850
|
class: "bing-table__horizontal-rail",
|
|
28838
|
-
onPointerdown:
|
|
28851
|
+
onPointerdown: yi
|
|
28839
28852
|
}, [c("div", {
|
|
28840
28853
|
class: "bing-table__horizontal-thumb",
|
|
28841
|
-
style: b(
|
|
28842
|
-
onPointerdown:
|
|
28854
|
+
style: b(pn.value),
|
|
28855
|
+
onPointerdown: bi
|
|
28843
28856
|
}, null, 36)], 544)], 2),
|
|
28844
|
-
|
|
28857
|
+
sn.value ? (E(), s("div", {
|
|
28845
28858
|
key: 0,
|
|
28846
28859
|
class: "bing-table__fixed-mask bing-table__fixed-mask--left",
|
|
28847
|
-
style: b(
|
|
28860
|
+
style: b(an.value),
|
|
28848
28861
|
"aria-hidden": "true"
|
|
28849
28862
|
}, null, 4)) : o("", !0),
|
|
28850
|
-
|
|
28863
|
+
cn.value ? (E(), s("div", {
|
|
28851
28864
|
key: 1,
|
|
28852
28865
|
class: "bing-table__fixed-mask bing-table__fixed-mask--right",
|
|
28853
|
-
style: b(
|
|
28866
|
+
style: b(on.value),
|
|
28854
28867
|
"aria-hidden": "true"
|
|
28855
28868
|
}, null, 4)) : o("", !0),
|
|
28856
|
-
|
|
28869
|
+
ln.value ? (E(), s("div", {
|
|
28857
28870
|
key: 2,
|
|
28858
28871
|
class: "bing-table__fixed-shadow bing-table__fixed-shadow--left",
|
|
28859
|
-
style: b(
|
|
28872
|
+
style: b(nn.value),
|
|
28860
28873
|
"aria-hidden": "true"
|
|
28861
28874
|
}, null, 4)) : o("", !0),
|
|
28862
|
-
|
|
28875
|
+
un.value ? (E(), s("div", {
|
|
28863
28876
|
key: 3,
|
|
28864
28877
|
class: "bing-table__fixed-shadow bing-table__fixed-shadow--right",
|
|
28865
|
-
style: b(
|
|
28878
|
+
style: b(rn.value),
|
|
28866
28879
|
"aria-hidden": "true"
|
|
28867
28880
|
}, null, 4)) : o("", !0),
|
|
28868
28881
|
y.value ? (E(), s("div", {
|
|
@@ -28877,13 +28890,13 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28877
28890
|
t.pagination || t.showColumnControls ? (E(), s("footer", {
|
|
28878
28891
|
key: 1,
|
|
28879
28892
|
ref_key: "paginationRef",
|
|
28880
|
-
ref:
|
|
28881
|
-
class: v(["bing-table__pagination", { "is-layout-floating":
|
|
28882
|
-
style: b(
|
|
28893
|
+
ref: ne,
|
|
28894
|
+
class: v(["bing-table__pagination", { "is-layout-floating": we.value }]),
|
|
28895
|
+
style: b(Ee.value)
|
|
28883
28896
|
}, [
|
|
28884
28897
|
t.showColumnControls ? (E(), s("div", zj, [d(qg, {
|
|
28885
|
-
open:
|
|
28886
|
-
"onUpdate:open": i[1] ||= (e) =>
|
|
28898
|
+
open: H.value,
|
|
28899
|
+
"onUpdate:open": i[1] ||= (e) => H.value = e,
|
|
28887
28900
|
class: "bing-table__column-dropdown",
|
|
28888
28901
|
placement: "top-start",
|
|
28889
28902
|
width: 360,
|
|
@@ -28897,7 +28910,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28897
28910
|
rounded: "sm",
|
|
28898
28911
|
throttle: !1
|
|
28899
28912
|
}, e, {
|
|
28900
|
-
class: ["bing-table__icon-button", { "is-active":
|
|
28913
|
+
class: ["bing-table__icon-button", { "is-active": H.value }],
|
|
28901
28914
|
"aria-label": "列设置"
|
|
28902
28915
|
}), {
|
|
28903
28916
|
prefix: G(() => [d(kn, {
|
|
@@ -28913,39 +28926,39 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28913
28926
|
rounded: "sm",
|
|
28914
28927
|
throttle: !1,
|
|
28915
28928
|
class: "bing-table__text-button",
|
|
28916
|
-
onClick:
|
|
28929
|
+
onClick: Vr
|
|
28917
28930
|
}, {
|
|
28918
28931
|
default: G(() => [...i[8] ||= [u(" 重置 ", -1)]]),
|
|
28919
28932
|
_: 1
|
|
28920
28933
|
})])]),
|
|
28921
28934
|
default: G(() => [c("div", Vj, [d(sr, {
|
|
28922
28935
|
ref_key: "columnListScrollRef",
|
|
28923
|
-
ref:
|
|
28936
|
+
ref: V,
|
|
28924
28937
|
class: "bing-table__column-list-scroll",
|
|
28925
28938
|
"max-height": 330,
|
|
28926
|
-
smooth:
|
|
28939
|
+
smooth: ke.value,
|
|
28927
28940
|
focusable: !1,
|
|
28928
28941
|
"aria-label": "列设置列表"
|
|
28929
28942
|
}, {
|
|
28930
28943
|
default: G(() => [d(hA, {
|
|
28931
28944
|
class: "bing-table__column-list",
|
|
28932
|
-
items:
|
|
28933
|
-
order:
|
|
28945
|
+
items: at.value,
|
|
28946
|
+
order: it.value,
|
|
28934
28947
|
"item-key": "key",
|
|
28935
28948
|
disabled: !t.reorderableColumns,
|
|
28936
28949
|
axis: "vertical",
|
|
28937
28950
|
"drag-overlay": "",
|
|
28938
28951
|
"aria-label": "列顺序",
|
|
28939
28952
|
"handle-aria-label": "调整列顺序",
|
|
28940
|
-
onReorder:
|
|
28941
|
-
onDragStart:
|
|
28942
|
-
onDragEnd:
|
|
28953
|
+
onReorder: Lr,
|
|
28954
|
+
onDragStart: Rr,
|
|
28955
|
+
onDragEnd: Mr
|
|
28943
28956
|
}, {
|
|
28944
28957
|
default: G(({ item: e, handleProps: t }) => [c("div", {
|
|
28945
28958
|
class: v(["bing-table__column-option", {
|
|
28946
|
-
"is-hidden":
|
|
28947
|
-
"is-fixed-left":
|
|
28948
|
-
"is-fixed-right":
|
|
28959
|
+
"is-hidden": cr(e.key),
|
|
28960
|
+
"is-fixed-left": An(e) === "left",
|
|
28961
|
+
"is-fixed-right": An(e) === "right"
|
|
28949
28962
|
}]),
|
|
28950
28963
|
"data-bing-dropdown-stagger": ""
|
|
28951
28964
|
}, [
|
|
@@ -28957,9 +28970,9 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28957
28970
|
d(si, {
|
|
28958
28971
|
class: "bing-table__column-check",
|
|
28959
28972
|
size: "sm",
|
|
28960
|
-
"model-value": !
|
|
28973
|
+
"model-value": !cr(e.key),
|
|
28961
28974
|
"aria-label": `显示列:${e.title || e.key}`,
|
|
28962
|
-
onChange: (t) =>
|
|
28975
|
+
onChange: (t) => zr(e.key, t)
|
|
28963
28976
|
}, null, 8, [
|
|
28964
28977
|
"model-value",
|
|
28965
28978
|
"aria-label",
|
|
@@ -28969,12 +28982,12 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28969
28982
|
c("div", Gj, [d(mt, {
|
|
28970
28983
|
size: "xs",
|
|
28971
28984
|
rounded: "sm",
|
|
28972
|
-
variant:
|
|
28985
|
+
variant: An(e) === "left" ? "secondary" : "ghost",
|
|
28973
28986
|
throttle: !1,
|
|
28974
|
-
class: v(["bing-table__pin-button bing-table__pin-button--left", { "is-active":
|
|
28975
|
-
"aria-pressed":
|
|
28987
|
+
class: v(["bing-table__pin-button bing-table__pin-button--left", { "is-active": An(e) === "left" }]),
|
|
28988
|
+
"aria-pressed": An(e) === "left",
|
|
28976
28989
|
"aria-label": "固定到左侧",
|
|
28977
|
-
onClick: (t) =>
|
|
28990
|
+
onClick: (t) => Br(e.key, An(e) === "left" ? null : "left")
|
|
28978
28991
|
}, {
|
|
28979
28992
|
prefix: G(() => [d(kn, {
|
|
28980
28993
|
icon: z(vn),
|
|
@@ -28990,12 +29003,12 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
28990
29003
|
]), d(mt, {
|
|
28991
29004
|
size: "xs",
|
|
28992
29005
|
rounded: "sm",
|
|
28993
|
-
variant:
|
|
29006
|
+
variant: An(e) === "right" ? "secondary" : "ghost",
|
|
28994
29007
|
throttle: !1,
|
|
28995
|
-
class: v(["bing-table__pin-button bing-table__pin-button--right", { "is-active":
|
|
28996
|
-
"aria-pressed":
|
|
29008
|
+
class: v(["bing-table__pin-button bing-table__pin-button--right", { "is-active": An(e) === "right" }]),
|
|
29009
|
+
"aria-pressed": An(e) === "right",
|
|
28997
29010
|
"aria-label": "固定到右侧",
|
|
28998
|
-
onClick: (t) =>
|
|
29011
|
+
onClick: (t) => Br(e.key, An(e) === "right" ? null : "right")
|
|
28999
29012
|
}, {
|
|
29000
29013
|
prefix: G(() => [d(kn, {
|
|
29001
29014
|
icon: z(vn),
|
|
@@ -29020,11 +29033,11 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29020
29033
|
}, 8, ["smooth"])])]),
|
|
29021
29034
|
_: 1
|
|
29022
29035
|
}, 8, ["open"])])) : o("", !0),
|
|
29023
|
-
t.pagination ? (E(), s("span", Kj, I(
|
|
29036
|
+
t.pagination ? (E(), s("span", Kj, I(Sn.value), 1)) : o("", !0),
|
|
29024
29037
|
t.pagination ? (E(), s("label", qj, [i[10] ||= c("span", null, "每页条数", -1), d(Bm, {
|
|
29025
29038
|
class: "bing-table__page-size-select",
|
|
29026
|
-
"model-value":
|
|
29027
|
-
options:
|
|
29039
|
+
"model-value": vt.value,
|
|
29040
|
+
options: xn.value,
|
|
29028
29041
|
clearable: !1,
|
|
29029
29042
|
"show-select-all": !1,
|
|
29030
29043
|
searchable: !1,
|
|
@@ -29033,7 +29046,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29033
29046
|
disabled: y.value,
|
|
29034
29047
|
size: "sm",
|
|
29035
29048
|
"aria-label": "每页条数",
|
|
29036
|
-
"onUpdate:modelValue":
|
|
29049
|
+
"onUpdate:modelValue": Wr
|
|
29037
29050
|
}, null, 8, [
|
|
29038
29051
|
"model-value",
|
|
29039
29052
|
"options",
|
|
@@ -29054,9 +29067,9 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29054
29067
|
throttle: !1,
|
|
29055
29068
|
key: "first",
|
|
29056
29069
|
class: "bing-table__page-button",
|
|
29057
|
-
disabled: y.value ||
|
|
29070
|
+
disabled: y.value || yn.value.page <= 1,
|
|
29058
29071
|
"aria-label": "首页",
|
|
29059
|
-
onClick: i[2] ||= (e) =>
|
|
29072
|
+
onClick: i[2] ||= (e) => Hr(1)
|
|
29060
29073
|
}, {
|
|
29061
29074
|
prefix: G(() => [d(kn, {
|
|
29062
29075
|
icon: z(Kt),
|
|
@@ -29072,9 +29085,9 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29072
29085
|
throttle: !1,
|
|
29073
29086
|
key: "previous",
|
|
29074
29087
|
class: "bing-table__page-button",
|
|
29075
|
-
disabled: y.value ||
|
|
29088
|
+
disabled: y.value || yn.value.page <= 1,
|
|
29076
29089
|
"aria-label": "上一页",
|
|
29077
|
-
onClick: i[3] ||= (e) =>
|
|
29090
|
+
onClick: i[3] ||= (e) => Hr(_t.value - 1)
|
|
29078
29091
|
}, {
|
|
29079
29092
|
prefix: G(() => [d(kn, {
|
|
29080
29093
|
icon: z(Ut),
|
|
@@ -29083,16 +29096,16 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29083
29096
|
}, null, 8, ["icon"])]),
|
|
29084
29097
|
_: 1
|
|
29085
29098
|
}, 8, ["disabled"]),
|
|
29086
|
-
(E(!0), s(e, null, A(
|
|
29099
|
+
(E(!0), s(e, null, A(yn.value.pageNumbers, (e) => (E(), a(mt, {
|
|
29087
29100
|
variant: "ghost",
|
|
29088
29101
|
size: "xs",
|
|
29089
29102
|
rounded: "sm",
|
|
29090
29103
|
throttle: !1,
|
|
29091
29104
|
key: `page-${e}`,
|
|
29092
|
-
class: v(["bing-table__page-button", { "is-active": e ===
|
|
29093
|
-
"aria-current": e ===
|
|
29105
|
+
class: v(["bing-table__page-button", { "is-active": e === yn.value.page }]),
|
|
29106
|
+
"aria-current": e === yn.value.page ? "page" : void 0,
|
|
29094
29107
|
disabled: y.value,
|
|
29095
|
-
onClick: (t) =>
|
|
29108
|
+
onClick: (t) => Hr(e)
|
|
29096
29109
|
}, {
|
|
29097
29110
|
default: G(() => [u(I(e), 1)]),
|
|
29098
29111
|
_: 2
|
|
@@ -29109,9 +29122,9 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29109
29122
|
throttle: !1,
|
|
29110
29123
|
key: "next",
|
|
29111
29124
|
class: "bing-table__page-button",
|
|
29112
|
-
disabled: y.value ||
|
|
29125
|
+
disabled: y.value || yn.value.page >= yn.value.pageCount,
|
|
29113
29126
|
"aria-label": "下一页",
|
|
29114
|
-
onClick: i[4] ||= (e) =>
|
|
29127
|
+
onClick: i[4] ||= (e) => Hr(_t.value + 1)
|
|
29115
29128
|
}, {
|
|
29116
29129
|
prefix: G(() => [d(kn, {
|
|
29117
29130
|
icon: z(Wt),
|
|
@@ -29127,9 +29140,9 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29127
29140
|
throttle: !1,
|
|
29128
29141
|
key: "last",
|
|
29129
29142
|
class: "bing-table__page-button",
|
|
29130
|
-
disabled: y.value ||
|
|
29143
|
+
disabled: y.value || yn.value.page >= yn.value.pageCount,
|
|
29131
29144
|
"aria-label": "末页",
|
|
29132
|
-
onClick: i[5] ||= (e) =>
|
|
29145
|
+
onClick: i[5] ||= (e) => Hr(Ct.value)
|
|
29133
29146
|
}, {
|
|
29134
29147
|
prefix: G(() => [d(kn, {
|
|
29135
29148
|
icon: z(qt),
|
|
@@ -29144,7 +29157,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29144
29157
|
], 6)) : o("", !0)
|
|
29145
29158
|
], 14, Cj));
|
|
29146
29159
|
}
|
|
29147
|
-
}), [["__scopeId", "data-v-
|
|
29160
|
+
}), [["__scopeId", "data-v-c3aaebc9"]]), tM = { class: "bing-tree-select__control" }, nM = [
|
|
29148
29161
|
"id",
|
|
29149
29162
|
"disabled",
|
|
29150
29163
|
"aria-label",
|
|
@@ -29274,7 +29287,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29274
29287
|
keyboard: !1,
|
|
29275
29288
|
smoothTouchpad: !1,
|
|
29276
29289
|
respectReducedMotion: !0
|
|
29277
|
-
})), O = `bing-tree-select-${te()}`, M = `${O}-listbox`, N = k(null), P = k(null), F = k(null), L = k(null), R = k(null), B = k(null), V = k(null), H = k(null), W = k(null), q = k(!1),
|
|
29290
|
+
})), O = `bing-tree-select-${te()}`, M = `${O}-listbox`, N = k(null), P = k(null), F = k(null), L = k(null), R = k(null), B = k(null), V = k(null), H = k(null), W = k(null), q = k(!1), ae = k(!1), J = k(!1), Y = k(void 0), X = k(!1), oe = k(!1), se = k(-1), Z = k("right"), ce = k(""), le = k([]), ue = k(0), de = k(0), fe = k(0), pe = k({
|
|
29278
29291
|
align: "start",
|
|
29279
29292
|
left: 0,
|
|
29280
29293
|
minHeight: 180,
|
|
@@ -29345,7 +29358,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29345
29358
|
"is-keyboard-scrolling": oe.value
|
|
29346
29359
|
}
|
|
29347
29360
|
]), Vt = gr({
|
|
29348
|
-
open: () =>
|
|
29361
|
+
open: () => ae.value,
|
|
29349
29362
|
elements: () => [
|
|
29350
29363
|
N.value,
|
|
29351
29364
|
L.value,
|
|
@@ -29709,7 +29722,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29709
29722
|
function or(e, t) {
|
|
29710
29723
|
if (!Qn(t)) return;
|
|
29711
29724
|
let n = se.value, r = n === t.index ? void 0 : rr();
|
|
29712
|
-
Gn(), se.value = t.index,
|
|
29725
|
+
Gn(), se.value = t.index, J.value = !0, _(() => {
|
|
29713
29726
|
ar(e, n !== t.index, r);
|
|
29714
29727
|
});
|
|
29715
29728
|
}
|
|
@@ -29717,7 +29730,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29717
29730
|
Gn(), Wn();
|
|
29718
29731
|
let t = H.value;
|
|
29719
29732
|
if (!t) {
|
|
29720
|
-
|
|
29733
|
+
J.value = !1, se.value = -1;
|
|
29721
29734
|
return;
|
|
29722
29735
|
}
|
|
29723
29736
|
if (K.killTweensOf([t, W.value].filter(Boolean)), e || qt()) {
|
|
@@ -29726,7 +29739,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29726
29739
|
scale: 1,
|
|
29727
29740
|
clearProps: "width,height,overflow",
|
|
29728
29741
|
willChange: "auto"
|
|
29729
|
-
}),
|
|
29742
|
+
}), J.value = !1, se.value = -1;
|
|
29730
29743
|
return;
|
|
29731
29744
|
}
|
|
29732
29745
|
K.to(t, {
|
|
@@ -29737,7 +29750,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29737
29750
|
ease: "power2.out",
|
|
29738
29751
|
overwrite: !0,
|
|
29739
29752
|
onComplete: () => {
|
|
29740
|
-
|
|
29753
|
+
J.value = !1, se.value = -1;
|
|
29741
29754
|
}
|
|
29742
29755
|
});
|
|
29743
29756
|
}
|
|
@@ -29770,7 +29783,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29770
29783
|
}, 150));
|
|
29771
29784
|
}
|
|
29772
29785
|
function pr() {
|
|
29773
|
-
if (!
|
|
29786
|
+
if (!J.value || !kt.value) return;
|
|
29774
29787
|
let e = $n(se.value);
|
|
29775
29788
|
if (!e) {
|
|
29776
29789
|
cr(!0);
|
|
@@ -29877,7 +29890,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29877
29890
|
});
|
|
29878
29891
|
}
|
|
29879
29892
|
function Dr(e) {
|
|
29880
|
-
ai(),
|
|
29893
|
+
ai(), ae.value = !1, Y.value = void 0, X.value = !1, cr(!0), Qr(), e && P.value?.focus();
|
|
29881
29894
|
}
|
|
29882
29895
|
function Or(e = !1) {
|
|
29883
29896
|
let t = L.value;
|
|
@@ -29952,7 +29965,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
29952
29965
|
Pr(e.relatedTarget) || Fr();
|
|
29953
29966
|
}
|
|
29954
29967
|
async function Lr() {
|
|
29955
|
-
S.value || q.value || (
|
|
29968
|
+
S.value || q.value || (ae.value = !0, q.value = !0, di(), xn(), Tn(), On(), m("open"), await _(), mr(), br(), Er(), pi(), await jr(), X.value && hi());
|
|
29956
29969
|
}
|
|
29957
29970
|
function Rr(e = !1) {
|
|
29958
29971
|
q.value && (V.value?.stop(), q.value = !1, Jn(), Sn(), Dn(), An(), jn(), cr(), m("close"), Or(e));
|
|
@@ -30091,7 +30104,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
30091
30104
|
cr(!0);
|
|
30092
30105
|
return;
|
|
30093
30106
|
}
|
|
30094
|
-
Gn(), (se.value !== t.index || !
|
|
30107
|
+
Gn(), (se.value !== t.index || !J.value) && or(e.currentTarget, t);
|
|
30095
30108
|
}
|
|
30096
30109
|
U(Ze, ai, { flush: "pre" }), U(X, (e) => {
|
|
30097
30110
|
e && ai();
|
|
@@ -30412,7 +30425,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
30412
30425
|
key: 0,
|
|
30413
30426
|
to: "body"
|
|
30414
30427
|
}, [
|
|
30415
|
-
|
|
30428
|
+
ae.value && Tt.value ? (E(), s("div", {
|
|
30416
30429
|
key: 0,
|
|
30417
30430
|
ref_key: "actionRailRef",
|
|
30418
30431
|
ref: B,
|
|
@@ -30486,7 +30499,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
30486
30499
|
])]),
|
|
30487
30500
|
_: 1
|
|
30488
30501
|
}, 8, ["content"])) : o("", !0)], 36)) : o("", !0),
|
|
30489
|
-
|
|
30502
|
+
ae.value ? (E(), s("div", {
|
|
30490
30503
|
key: 1,
|
|
30491
30504
|
id: M,
|
|
30492
30505
|
ref_key: "panelRef",
|
|
@@ -30643,7 +30656,7 @@ var Sj = /* @__PURE__ */ Q(/* @__PURE__ */ f({
|
|
|
30643
30656
|
])], 46, oM))), 128))], 38), He.value.length === 0 ? (E(), s("div", pM, I(Le.value ? n.noSearchResultsText : n.emptyText), 1)) : o("", !0)], 6)]),
|
|
30644
30657
|
_: 3
|
|
30645
30658
|
}, 8, ["height", "smooth"])], 46, aM)) : o("", !0),
|
|
30646
|
-
|
|
30659
|
+
J.value && kt.value && At.value ? (E(), s("div", {
|
|
30647
30660
|
key: 2,
|
|
30648
30661
|
ref_key: "nodeDetailPanelRef",
|
|
30649
30662
|
ref: H,
|