@abi-software/map-side-bar 2.2.1-beta.2 → 2.2.1-beta.4
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/map-side-bar.js +241 -189
- package/dist/map-side-bar.umd.cjs +23 -23
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +48 -16
- package/src/algolia/utils.js +0 -1
- package/src/components/ConnectivityInfo.vue +47 -7
- package/src/components/DatasetCard.vue +2 -1
- package/src/components/SearchFilters.vue +2 -0
- package/src/components/SideBar.vue +61 -20
- package/src/components/SidebarContent.vue +21 -4
- package/src/components/Tabs.vue +3 -3
- package/src/exampleConnectivityInput.js +292 -0
package/dist/map-side-bar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentScope as Pp, onScopeDispose as tu, unref as d, getCurrentInstance as Je, onMounted as qe, nextTick as ke, ref as $, readonly as nu, watch as ae, computed as w, defineComponent as M, openBlock as x, createElementBlock as A, createElementVNode as j, warn as Fp, inject as ve, isRef as dn, shallowRef as Mr, onBeforeUnmount as vt, onBeforeMount as $p, provide as Ue, mergeProps as $t, renderSlot as le, toRef as
|
|
1
|
+
import { getCurrentScope as Pp, onScopeDispose as tu, unref as d, getCurrentInstance as Je, onMounted as qe, nextTick as ke, ref as $, readonly as nu, watch as ae, computed as w, defineComponent as M, openBlock as x, createElementBlock as A, createElementVNode as j, warn as Fp, inject as ve, isRef as dn, shallowRef as Mr, onBeforeUnmount as vt, onBeforeMount as $p, provide as Ue, mergeProps as $t, renderSlot as le, toRef as _t, onUnmounted as Pm, useAttrs as Rp, useSlots as Kr, createCommentVNode as q, Fragment as Te, normalizeClass as N, createBlock as Q, withCtx as W, resolveDynamicComponent as Ct, withModifiers as De, createVNode as ie, toDisplayString as pe, normalizeStyle as Ye, Transition as kr, withDirectives as Oe, vShow as yt, reactive as fn, onUpdated as Np, cloneVNode as Lp, Text as qs, Comment as Bp, Teleport as ru, onDeactivated as Dp, createTextVNode as Fe, toRaw as _s, vModelCheckbox as Cs, toRefs as Ao, vModelRadio as Mp, h as ft, resolveComponent as lt, renderList as it, onBeforeUpdate as Fm, withKeys as Nr, vModelText as jp, watchEffect as zp, resolveDirective as $m, createApp as Vp, pushScopeId as Io, popScopeId as Po, markRaw as Lc } from "vue";
|
|
2
2
|
const Hp = (e) => !e.getAttribute("aria-owns"), Up = (e, t, n) => {
|
|
3
3
|
const { parentNode: r } = e;
|
|
4
4
|
if (!r)
|
|
@@ -226,7 +226,7 @@ const Xm = () => Xe && /firefox/i.test(window.navigator.userAgent);
|
|
|
226
226
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
227
227
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
228
228
|
const jn = () => {
|
|
229
|
-
}, Kp = Object.assign, Qm = Object.prototype.hasOwnProperty, Kc = (e, t) => Qm.call(e, t),
|
|
229
|
+
}, Kp = Object.assign, Qm = Object.prototype.hasOwnProperty, Kc = (e, t) => Qm.call(e, t), Ot = Array.isArray, Tt = (e) => typeof e == "function", Wt = (e) => typeof e == "string", e1 = (e) => typeof e == "symbol", At = (e) => e !== null && typeof e == "object", t1 = (e) => (At(e) || Tt(e)) && Tt(e.then) && Tt(e.catch), n1 = Object.prototype.toString, r1 = (e) => n1.call(e), Vi = (e) => r1(e).slice(8, -1), ou = (e) => {
|
|
230
230
|
const t = /* @__PURE__ */ Object.create(null);
|
|
231
231
|
return (n) => t[n] || (t[n] = e(n));
|
|
232
232
|
}, o1 = /-(\w)/g, a1 = ou((e) => e.replace(o1, (t, n) => n ? n.toUpperCase() : "")), s1 = /\B([A-Z])/g, i1 = ou(
|
|
@@ -1354,7 +1354,7 @@ function wS(e, t) {
|
|
|
1354
1354
|
var SS = jb(function(e, t) {
|
|
1355
1355
|
return e == null ? {} : wS(e, t);
|
|
1356
1356
|
});
|
|
1357
|
-
const co = (e) => e === void 0, Un = (e) => typeof e == "boolean", Ge = (e) => typeof e == "number", kl = (e) => !e && e !== 0 ||
|
|
1357
|
+
const co = (e) => e === void 0, Un = (e) => typeof e == "boolean", Ge = (e) => typeof e == "number", kl = (e) => !e && e !== 0 || Ot(e) && e.length === 0 || At(e) && !Object.keys(e).length, ua = (e) => typeof Element > "u" ? !1 : e instanceof Element, ca = (e) => $o(e), xS = (e) => Wt(e) ? !Number.isNaN(Number(e)) : !1, _S = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"), Cd = (e) => l1(e), kd = (e) => Object.keys(e);
|
|
1358
1358
|
class xh extends Error {
|
|
1359
1359
|
constructor(t) {
|
|
1360
1360
|
super(t), this.name = "ElementPlusError";
|
|
@@ -1676,8 +1676,8 @@ var ES = /* @__PURE__ */ M({
|
|
|
1676
1676
|
]));
|
|
1677
1677
|
}
|
|
1678
1678
|
}), Th = KS;
|
|
1679
|
-
const Ah = "__epPropKey", ge = (e) => e, GS = (e) =>
|
|
1680
|
-
if (!
|
|
1679
|
+
const Ah = "__epPropKey", ge = (e) => e, GS = (e) => At(e) && !!e[Ah], ni = (e, t) => {
|
|
1680
|
+
if (!At(e) || GS(e))
|
|
1681
1681
|
return e;
|
|
1682
1682
|
const { values: n, required: r, default: o, type: a, validator: s } = e, l = {
|
|
1683
1683
|
type: a,
|
|
@@ -2078,7 +2078,7 @@ getter: `, this.getter), Ki(t, 2)), t._value;
|
|
|
2078
2078
|
}
|
|
2079
2079
|
function v3(e, t, n = !1) {
|
|
2080
2080
|
let r, o;
|
|
2081
|
-
const a =
|
|
2081
|
+
const a = Tt(e);
|
|
2082
2082
|
a ? (r = e, o = process.env.NODE_ENV !== "production" ? () => {
|
|
2083
2083
|
Fh("Write operation failed: computed value is readonly");
|
|
2084
2084
|
} : jn) : (r = e.get, o = e.set);
|
|
@@ -2189,12 +2189,12 @@ const ea = "el", m3 = "is-", Fr = (e, t, n, r, o) => {
|
|
|
2189
2189
|
onShow: c,
|
|
2190
2190
|
onHide: f
|
|
2191
2191
|
}) => {
|
|
2192
|
-
const g = Je(), { emit: v } = g, p = g.props, h = w(() =>
|
|
2193
|
-
s.value !== !0 && (s.value = !0, i && (i.value = P),
|
|
2192
|
+
const g = Je(), { emit: v } = g, p = g.props, h = w(() => Tt(p[n])), m = w(() => p[e] === null), y = (P) => {
|
|
2193
|
+
s.value !== !0 && (s.value = !0, i && (i.value = P), Tt(c) && c(P));
|
|
2194
2194
|
}, C = (P) => {
|
|
2195
|
-
s.value !== !1 && (s.value = !1, i && (i.value = P),
|
|
2195
|
+
s.value !== !1 && (s.value = !1, i && (i.value = P), Tt(f) && f(P));
|
|
2196
2196
|
}, O = (P) => {
|
|
2197
|
-
if (p.disabled === !0 ||
|
|
2197
|
+
if (p.disabled === !0 || Tt(u) && !u())
|
|
2198
2198
|
return;
|
|
2199
2199
|
const F = h.value && Xe;
|
|
2200
2200
|
F && v(t, !0), (m.value || !F) && y(P);
|
|
@@ -2640,12 +2640,12 @@ function cx(e) {
|
|
|
2640
2640
|
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, s = n.altAxis, i = s === void 0 ? !1 : s, l = n.boundary, u = n.rootBoundary, c = n.altBoundary, f = n.padding, g = n.tether, v = g === void 0 ? !0 : g, p = n.tetherOffset, h = p === void 0 ? 0 : p, m = pa(t, { boundary: l, rootBoundary: u, padding: f, altBoundary: c }), y = Vn(t.placement), C = mo(t.placement), O = !C, E = Tu(y), I = ux(E), T = t.modifiersData.popperOffsets, P = t.rects.reference, F = t.rects.popper, G = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, z = typeof G == "number" ? { mainAxis: G, altAxis: G } : Object.assign({ mainAxis: 0, altAxis: 0 }, G), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, V = { x: 0, y: 0 };
|
|
2641
2641
|
if (T) {
|
|
2642
2642
|
if (a) {
|
|
2643
|
-
var Y, ue = E === "y" ? Kt : Gt, re = E === "y" ? vn : gn, ee = E === "y" ? "height" : "width", L = T[E], he = L + m[ue], me = L - m[re], Ve = v ? -F[ee] / 2 : 0, Le = C === po ? P[ee] : F[ee], ze = C === po ? -F[ee] : -P[ee], Ee = t.elements.arrow, nt = v && Ee ? Ou(Ee) : { width: 0, height: 0 }, Me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Vh(), wt = Me[ue], ut = Me[re], He = ta(0, P[ee], nt[ee]), Sn = O ? P[ee] / 2 - Ve - He - wt - z.mainAxis : Le - He - wt - z.mainAxis, rt = O ? -P[ee] / 2 + Ve + He + ut + z.mainAxis : ze + He + ut + z.mainAxis, ot = t.elements.arrow && Ea(t.elements.arrow), St = ot ? E === "y" ? ot.clientTop || 0 : ot.clientLeft || 0 : 0, ct = (Y = D == null ? void 0 : D[E]) != null ? Y : 0,
|
|
2643
|
+
var Y, ue = E === "y" ? Kt : Gt, re = E === "y" ? vn : gn, ee = E === "y" ? "height" : "width", L = T[E], he = L + m[ue], me = L - m[re], Ve = v ? -F[ee] / 2 : 0, Le = C === po ? P[ee] : F[ee], ze = C === po ? -F[ee] : -P[ee], Ee = t.elements.arrow, nt = v && Ee ? Ou(Ee) : { width: 0, height: 0 }, Me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Vh(), wt = Me[ue], ut = Me[re], He = ta(0, P[ee], nt[ee]), Sn = O ? P[ee] / 2 - Ve - He - wt - z.mainAxis : Le - He - wt - z.mainAxis, rt = O ? -P[ee] / 2 + Ve + He + ut + z.mainAxis : ze + He + ut + z.mainAxis, ot = t.elements.arrow && Ea(t.elements.arrow), St = ot ? E === "y" ? ot.clientTop || 0 : ot.clientLeft || 0 : 0, ct = (Y = D == null ? void 0 : D[E]) != null ? Y : 0, kt = L + Sn - ct - St, Yt = L + rt - ct, Nt = ta(v ? Is(he, kt) : he, L, v ? Vr(me, Yt) : me);
|
|
2644
2644
|
T[E] = Nt, V[E] = Nt - L;
|
|
2645
2645
|
}
|
|
2646
2646
|
if (i) {
|
|
2647
|
-
var Xt, Lt = E === "x" ? Kt : Gt, xn = E === "x" ? vn : gn, je = T[I], Qe = I === "y" ? "height" : "width", Bt = je + m[Lt], zt = je - m[xn], gt = [Kt, Gt].indexOf(y) !== -1, Z = (Xt = D == null ? void 0 : D[I]) != null ? Xt : 0, ye = gt ? Bt : je - P[Qe] - F[Qe] - Z + z.altAxis, $e = gt ? je + P[Qe] + F[Qe] - Z - z.altAxis : zt,
|
|
2648
|
-
T[I] =
|
|
2647
|
+
var Xt, Lt = E === "x" ? Kt : Gt, xn = E === "x" ? vn : gn, je = T[I], Qe = I === "y" ? "height" : "width", Bt = je + m[Lt], zt = je - m[xn], gt = [Kt, Gt].indexOf(y) !== -1, Z = (Xt = D == null ? void 0 : D[I]) != null ? Xt : 0, ye = gt ? Bt : je - P[Qe] - F[Qe] - Z + z.altAxis, $e = gt ? je + P[Qe] + F[Qe] - Z - z.altAxis : zt, Et = v && gt ? B3(ye, je, $e) : ta(v ? ye : Bt, je, v ? $e : zt);
|
|
2648
|
+
T[I] = Et, V[I] = Et - je;
|
|
2649
2649
|
}
|
|
2650
2650
|
t.modifiersData[r] = V;
|
|
2651
2651
|
}
|
|
@@ -3037,7 +3037,7 @@ function n0(e, { afterFocus: t, beforeBlur: n, afterBlur: r } = {}) {
|
|
|
3037
3037
|
i.value || (i.value = !0, a("focus", f), t == null || t());
|
|
3038
3038
|
}, u = (f) => {
|
|
3039
3039
|
var g;
|
|
3040
|
-
|
|
3040
|
+
Tt(n) && n(f) || f.relatedTarget && ((g = s.value) != null && g.contains(f.relatedTarget)) || (i.value = !1, a("blur", f), r == null || r());
|
|
3041
3041
|
}, c = () => {
|
|
3042
3042
|
var f;
|
|
3043
3043
|
(f = e.value) == null || f.focus();
|
|
@@ -3162,7 +3162,7 @@ const tt = Mt(Vx), Ru = Symbol("formContextKey"), Fs = Symbol("formItemContextKe
|
|
|
3162
3162
|
return !!(!e.label && t && t.inputIds && ((i = t.inputIds) == null ? void 0 : i.length) <= 1);
|
|
3163
3163
|
});
|
|
3164
3164
|
return qe(() => {
|
|
3165
|
-
a = ae([
|
|
3165
|
+
a = ae([_t(e, "id"), n], ([i, l]) => {
|
|
3166
3166
|
const u = i ?? (l ? void 0 : _r().value);
|
|
3167
3167
|
u !== o.value && (t != null && t.removeInputId && (o.value && t.removeInputId(o.value), !(r != null && r.value) && !l && u && t.addInputId(u)), o.value = u);
|
|
3168
3168
|
}, { immediate: !0 });
|
|
@@ -3390,7 +3390,7 @@ const Wx = _e({
|
|
|
3390
3390
|
const { type: Z, autosize: ye } = r;
|
|
3391
3391
|
if (!(!Xe || Z !== "textarea" || !C.value))
|
|
3392
3392
|
if (ye) {
|
|
3393
|
-
const $e =
|
|
3393
|
+
const $e = At(ye) ? ye.minRows : void 0, Et = At(ye) ? ye.maxRows : void 0, Rn = Kd(C.value, $e, Et);
|
|
3394
3394
|
P.value = {
|
|
3395
3395
|
overflowY: "hidden",
|
|
3396
3396
|
...Rn
|
|
@@ -3424,13 +3424,13 @@ const Wx = _e({
|
|
|
3424
3424
|
}
|
|
3425
3425
|
}, ct = (Z) => {
|
|
3426
3426
|
n("change", Z.target.value);
|
|
3427
|
-
},
|
|
3427
|
+
}, kt = (Z) => {
|
|
3428
3428
|
n("compositionstart", Z), E.value = !0;
|
|
3429
3429
|
}, Yt = (Z) => {
|
|
3430
3430
|
var ye;
|
|
3431
3431
|
n("compositionupdate", Z);
|
|
3432
|
-
const $e = (ye = Z.target) == null ? void 0 : ye.value,
|
|
3433
|
-
E.value = !xu(
|
|
3432
|
+
const $e = (ye = Z.target) == null ? void 0 : ye.value, Et = $e[$e.length - 1] || "";
|
|
3433
|
+
E.value = !xu(Et);
|
|
3434
3434
|
}, Nt = (Z) => {
|
|
3435
3435
|
n("compositionend", Z), E.value && (E.value = !1, St(Z));
|
|
3436
3436
|
}, Xt = () => {
|
|
@@ -3465,7 +3465,7 @@ const Wx = _e({
|
|
|
3465
3465
|
textarea: C,
|
|
3466
3466
|
ref: F,
|
|
3467
3467
|
textareaStyle: he,
|
|
3468
|
-
autosize:
|
|
3468
|
+
autosize: _t(r, "autosize"),
|
|
3469
3469
|
focus: Lt,
|
|
3470
3470
|
blur: xn,
|
|
3471
3471
|
select: zt,
|
|
@@ -3506,7 +3506,7 @@ const Wx = _e({
|
|
|
3506
3506
|
class: N(d(h).e("icon"))
|
|
3507
3507
|
}, {
|
|
3508
3508
|
default: W(() => [
|
|
3509
|
-
(x(), Q(
|
|
3509
|
+
(x(), Q(Ct(Z.prefixIcon)))
|
|
3510
3510
|
]),
|
|
3511
3511
|
_: 1
|
|
3512
3512
|
}, 8, ["class"])) : q("v-if", !0)
|
|
@@ -3530,7 +3530,7 @@ const Wx = _e({
|
|
|
3530
3530
|
style: Z.inputStyle,
|
|
3531
3531
|
form: Z.form,
|
|
3532
3532
|
autofocus: Z.autofocus,
|
|
3533
|
-
onCompositionstart:
|
|
3533
|
+
onCompositionstart: kt,
|
|
3534
3534
|
onCompositionupdate: Yt,
|
|
3535
3535
|
onCompositionend: Nt,
|
|
3536
3536
|
onInput: St,
|
|
@@ -3554,7 +3554,7 @@ const Wx = _e({
|
|
|
3554
3554
|
class: N(d(h).e("icon"))
|
|
3555
3555
|
}, {
|
|
3556
3556
|
default: W(() => [
|
|
3557
|
-
(x(), Q(
|
|
3557
|
+
(x(), Q(Ct(Z.suffixIcon)))
|
|
3558
3558
|
]),
|
|
3559
3559
|
_: 1
|
|
3560
3560
|
}, 8, ["class"])) : q("v-if", !0)
|
|
@@ -3576,7 +3576,7 @@ const Wx = _e({
|
|
|
3576
3576
|
onClick: Xt
|
|
3577
3577
|
}, {
|
|
3578
3578
|
default: W(() => [
|
|
3579
|
-
(x(), Q(
|
|
3579
|
+
(x(), Q(Ct(d(ee))))
|
|
3580
3580
|
]),
|
|
3581
3581
|
_: 1
|
|
3582
3582
|
}, 8, ["class"])) : q("v-if", !0),
|
|
@@ -3597,7 +3597,7 @@ const Wx = _e({
|
|
|
3597
3597
|
])
|
|
3598
3598
|
}, {
|
|
3599
3599
|
default: W(() => [
|
|
3600
|
-
(x(), Q(
|
|
3600
|
+
(x(), Q(Ct(d(re))))
|
|
3601
3601
|
]),
|
|
3602
3602
|
_: 1
|
|
3603
3603
|
}, 8, ["class"])) : q("v-if", !0)
|
|
@@ -3630,7 +3630,7 @@ const Wx = _e({
|
|
|
3630
3630
|
placeholder: Z.placeholder,
|
|
3631
3631
|
form: Z.form,
|
|
3632
3632
|
autofocus: Z.autofocus,
|
|
3633
|
-
onCompositionstart:
|
|
3633
|
+
onCompositionstart: kt,
|
|
3634
3634
|
onCompositionupdate: Yt,
|
|
3635
3635
|
onCompositionend: Nt,
|
|
3636
3636
|
onInput: St,
|
|
@@ -3733,7 +3733,7 @@ const Aa = Mt(Qx), no = 4, e_ = {
|
|
|
3733
3733
|
const I = () => {
|
|
3734
3734
|
document.onselectstart !== c && (document.onselectstart = c);
|
|
3735
3735
|
};
|
|
3736
|
-
return jr(
|
|
3736
|
+
return jr(_t(n, "scrollbarElement"), "mousemove", O), jr(_t(n, "scrollbarElement"), "mouseleave", E), (T, P) => (x(), Q(kr, {
|
|
3737
3737
|
name: d(r).b("fade"),
|
|
3738
3738
|
persisted: ""
|
|
3739
3739
|
}, {
|
|
@@ -3881,7 +3881,7 @@ const l_ = _e({
|
|
|
3881
3881
|
}));
|
|
3882
3882
|
};
|
|
3883
3883
|
function h(O, E) {
|
|
3884
|
-
|
|
3884
|
+
At(O) ? l.value.scrollTo(O) : Ge(O) && Ge(E) && l.value.scrollTo(O, E);
|
|
3885
3885
|
}
|
|
3886
3886
|
const m = (O) => {
|
|
3887
3887
|
if (!Ge(O)) {
|
|
@@ -3932,7 +3932,7 @@ const l_ = _e({
|
|
|
3932
3932
|
style: Ye(d(f)),
|
|
3933
3933
|
onScroll: p
|
|
3934
3934
|
}, [
|
|
3935
|
-
(x(), Q(
|
|
3935
|
+
(x(), Q(Ct(O.tag), {
|
|
3936
3936
|
id: O.id,
|
|
3937
3937
|
ref_key: "resizeRef",
|
|
3938
3938
|
ref: u,
|
|
@@ -4046,7 +4046,7 @@ function i0(e) {
|
|
|
4046
4046
|
return null;
|
|
4047
4047
|
const t = e;
|
|
4048
4048
|
for (const n of t) {
|
|
4049
|
-
if (
|
|
4049
|
+
if (At(n))
|
|
4050
4050
|
switch (n.type) {
|
|
4051
4051
|
case Bp:
|
|
4052
4052
|
continue;
|
|
@@ -4761,7 +4761,7 @@ const Z_ = Mt(g_), ju = Symbol("elTooltip"), qt = _e({
|
|
|
4761
4761
|
"hide",
|
|
4762
4762
|
"open",
|
|
4763
4763
|
"close"
|
|
4764
|
-
], nC = (e, t) =>
|
|
4764
|
+
], nC = (e, t) => Ot(e) ? e.includes(t) : e === t, ro = (e, t, n) => (r) => {
|
|
4765
4765
|
nC(d(e), t) && n(r);
|
|
4766
4766
|
}, rC = M({
|
|
4767
4767
|
name: "ElTooltipTrigger"
|
|
@@ -4772,7 +4772,7 @@ const Z_ = Mt(g_), ju = Symbol("elTooltip"), qt = _e({
|
|
|
4772
4772
|
const n = e, r = be("tooltip"), { controlled: o, id: a, open: s, onOpen: i, onClose: l, onToggle: u } = ve(ju, void 0), c = $(null), f = () => {
|
|
4773
4773
|
if (d(o) || n.disabled)
|
|
4774
4774
|
return !0;
|
|
4775
|
-
}, g =
|
|
4775
|
+
}, g = _t(n, "trigger"), v = tr(f, ro(g, "hover", i)), p = tr(f, ro(g, "hover", l)), h = tr(f, ro(g, "click", (E) => {
|
|
4776
4776
|
E.button === 0 && u(E);
|
|
4777
4777
|
})), m = tr(f, ro(g, "focus", i)), y = tr(f, ro(g, "focus", l)), C = tr(f, ro(g, "contextmenu", (E) => {
|
|
4778
4778
|
E.preventDefault(), u(E);
|
|
@@ -4937,9 +4937,9 @@ const uC = ["innerHTML"], cC = { key: 1 }, dC = M({
|
|
|
4937
4937
|
indicator: l,
|
|
4938
4938
|
toggleReason: u
|
|
4939
4939
|
}), { onOpen: v, onClose: p } = Px({
|
|
4940
|
-
showAfter:
|
|
4941
|
-
hideAfter:
|
|
4942
|
-
autoClose:
|
|
4940
|
+
showAfter: _t(r, "showAfter"),
|
|
4941
|
+
hideAfter: _t(r, "hideAfter"),
|
|
4942
|
+
autoClose: _t(r, "autoClose"),
|
|
4943
4943
|
open: c,
|
|
4944
4944
|
close: f
|
|
4945
4945
|
}), h = w(() => Un(r.visible) && !g.value);
|
|
@@ -4947,7 +4947,7 @@ const uC = ["innerHTML"], cC = { key: 1 }, dC = M({
|
|
|
4947
4947
|
controlled: h,
|
|
4948
4948
|
id: o,
|
|
4949
4949
|
open: nu(l),
|
|
4950
|
-
trigger:
|
|
4950
|
+
trigger: _t(r, "trigger"),
|
|
4951
4951
|
onOpen: (y) => {
|
|
4952
4952
|
v(y);
|
|
4953
4953
|
},
|
|
@@ -5143,7 +5143,7 @@ const $s = Mt(pC), f0 = Symbol("buttonGroupContextKey"), hC = (e, t) => {
|
|
|
5143
5143
|
}), mC = {
|
|
5144
5144
|
click: (e) => e instanceof MouseEvent
|
|
5145
5145
|
};
|
|
5146
|
-
function
|
|
5146
|
+
function It(e, t) {
|
|
5147
5147
|
yC(e) && (e = "100%");
|
|
5148
5148
|
var n = bC(e);
|
|
5149
5149
|
return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
|
|
@@ -5168,13 +5168,13 @@ function Lr(e) {
|
|
|
5168
5168
|
}
|
|
5169
5169
|
function wC(e, t, n) {
|
|
5170
5170
|
return {
|
|
5171
|
-
r:
|
|
5172
|
-
g:
|
|
5173
|
-
b:
|
|
5171
|
+
r: It(e, 255) * 255,
|
|
5172
|
+
g: It(t, 255) * 255,
|
|
5173
|
+
b: It(n, 255) * 255
|
|
5174
5174
|
};
|
|
5175
5175
|
}
|
|
5176
5176
|
function rf(e, t, n) {
|
|
5177
|
-
e =
|
|
5177
|
+
e = It(e, 255), t = It(t, 255), n = It(n, 255);
|
|
5178
5178
|
var r = Math.max(e, t, n), o = Math.min(e, t, n), a = 0, s = 0, i = (r + o) / 2;
|
|
5179
5179
|
if (r === o)
|
|
5180
5180
|
s = 0, a = 0;
|
|
@@ -5200,7 +5200,7 @@ function Yi(e, t, n) {
|
|
|
5200
5200
|
}
|
|
5201
5201
|
function SC(e, t, n) {
|
|
5202
5202
|
var r, o, a;
|
|
5203
|
-
if (e =
|
|
5203
|
+
if (e = It(e, 360), t = It(t, 100), n = It(n, 100), t === 0)
|
|
5204
5204
|
o = n, a = n, r = n;
|
|
5205
5205
|
else {
|
|
5206
5206
|
var s = n < 0.5 ? n * (1 + t) : n + t - n * t, i = 2 * n - s;
|
|
@@ -5209,7 +5209,7 @@ function SC(e, t, n) {
|
|
|
5209
5209
|
return { r: r * 255, g: o * 255, b: a * 255 };
|
|
5210
5210
|
}
|
|
5211
5211
|
function of(e, t, n) {
|
|
5212
|
-
e =
|
|
5212
|
+
e = It(e, 255), t = It(t, 255), n = It(n, 255);
|
|
5213
5213
|
var r = Math.max(e, t, n), o = Math.min(e, t, n), a = 0, s = r, i = r - o, l = r === 0 ? 0 : i / r;
|
|
5214
5214
|
if (r === o)
|
|
5215
5215
|
a = 0;
|
|
@@ -5230,7 +5230,7 @@ function of(e, t, n) {
|
|
|
5230
5230
|
return { h: a, s: l, v: s };
|
|
5231
5231
|
}
|
|
5232
5232
|
function xC(e, t, n) {
|
|
5233
|
-
e =
|
|
5233
|
+
e = It(e, 360) * 6, t = It(t, 100), n = It(n, 100);
|
|
5234
5234
|
var r = Math.floor(e), o = e - r, a = n * (1 - t), s = n * (1 - o * t), i = n * (1 - (1 - o) * t), l = r % 6, u = [n, s, a, a, i, n][l], c = [i, n, n, s, a, a][l], f = [a, a, i, n, n, s][l];
|
|
5235
5235
|
return { r: u * 255, g: c * 255, b: f * 255 };
|
|
5236
5236
|
}
|
|
@@ -5540,7 +5540,7 @@ var IC = (
|
|
|
5540
5540
|
return this.a === 1 ? "rgb(".concat(t, ", ").concat(n, ", ").concat(r, ")") : "rgba(".concat(t, ", ").concat(n, ", ").concat(r, ", ").concat(this.roundA, ")");
|
|
5541
5541
|
}, e.prototype.toPercentageRgb = function() {
|
|
5542
5542
|
var t = function(n) {
|
|
5543
|
-
return "".concat(Math.round(
|
|
5543
|
+
return "".concat(Math.round(It(n, 255) * 100), "%");
|
|
5544
5544
|
};
|
|
5545
5545
|
return {
|
|
5546
5546
|
r: t(this.r),
|
|
@@ -5550,7 +5550,7 @@ var IC = (
|
|
|
5550
5550
|
};
|
|
5551
5551
|
}, e.prototype.toPercentageRgbString = function() {
|
|
5552
5552
|
var t = function(n) {
|
|
5553
|
-
return Math.round(
|
|
5553
|
+
return Math.round(It(n, 255) * 100);
|
|
5554
5554
|
};
|
|
5555
5555
|
return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
|
|
5556
5556
|
}, e.prototype.toName = function() {
|
|
@@ -5709,7 +5709,7 @@ const FC = M({
|
|
|
5709
5709
|
type: l,
|
|
5710
5710
|
disabled: u,
|
|
5711
5711
|
shouldAddSpace: f
|
|
5712
|
-
}), (v, p) => (x(), Q(
|
|
5712
|
+
}), (v, p) => (x(), Q(Ct(v.tag), $t({
|
|
5713
5713
|
ref_key: "_ref",
|
|
5714
5714
|
ref: s
|
|
5715
5715
|
}, d(c), {
|
|
@@ -5736,13 +5736,13 @@ const FC = M({
|
|
|
5736
5736
|
class: N(d(a).is("loading"))
|
|
5737
5737
|
}, {
|
|
5738
5738
|
default: W(() => [
|
|
5739
|
-
(x(), Q(
|
|
5739
|
+
(x(), Q(Ct(v.loadingIcon)))
|
|
5740
5740
|
]),
|
|
5741
5741
|
_: 1
|
|
5742
5742
|
}, 8, ["class"]))
|
|
5743
5743
|
], 64)) : v.icon || v.$slots.icon ? (x(), Q(d(tt), { key: 1 }, {
|
|
5744
5744
|
default: W(() => [
|
|
5745
|
-
v.icon ? (x(), Q(
|
|
5745
|
+
v.icon ? (x(), Q(Ct(v.icon), { key: 0 })) : le(v.$slots, "icon", { key: 1 })
|
|
5746
5746
|
]),
|
|
5747
5747
|
_: 3
|
|
5748
5748
|
})) : q("v-if", !0),
|
|
@@ -5769,8 +5769,8 @@ const NC = {
|
|
|
5769
5769
|
setup(e) {
|
|
5770
5770
|
const t = e;
|
|
5771
5771
|
Ue(f0, fn({
|
|
5772
|
-
size:
|
|
5773
|
-
type:
|
|
5772
|
+
size: _t(t, "size"),
|
|
5773
|
+
type: _t(t, "type")
|
|
5774
5774
|
}));
|
|
5775
5775
|
const n = be("button");
|
|
5776
5776
|
return (r, o) => (x(), A("div", {
|
|
@@ -5982,7 +5982,7 @@ const g0 = Mt(HC), m0 = {
|
|
|
5982
5982
|
},
|
|
5983
5983
|
set(i) {
|
|
5984
5984
|
var l, u;
|
|
5985
|
-
o.value &&
|
|
5985
|
+
o.value && Ot(i) ? (a.value = ((l = r == null ? void 0 : r.max) == null ? void 0 : l.value) !== void 0 && i.length > (r == null ? void 0 : r.max.value) && i.length > s.value.length, a.value === !1 && ((u = r == null ? void 0 : r.changeEvent) == null || u.call(r, i))) : (n(et, i), t.value = i);
|
|
5986
5986
|
}
|
|
5987
5987
|
});
|
|
5988
5988
|
return {
|
|
@@ -5993,7 +5993,7 @@ const g0 = Mt(HC), m0 = {
|
|
|
5993
5993
|
}, KC = (e, t, { model: n }) => {
|
|
5994
5994
|
const r = ve(Ro, void 0), o = $(!1), a = w(() => ca(e.value) ? e.label : e.value), s = w(() => {
|
|
5995
5995
|
const c = n.value;
|
|
5996
|
-
return Un(c) ? c :
|
|
5996
|
+
return Un(c) ? c : Ot(c) ? At(a.value) ? c.map(_s).some((f) => En(f, a.value)) : c.map(_s).includes(a.value) : c != null ? c === e.trueValue || c === e.trueLabel : !!c;
|
|
5997
5997
|
}), i = Cr(w(() => {
|
|
5998
5998
|
var c;
|
|
5999
5999
|
return (c = r == null ? void 0 : r.size) == null ? void 0 : c.value;
|
|
@@ -6033,7 +6033,7 @@ const g0 = Mt(HC), m0 = {
|
|
|
6033
6033
|
return (() => {
|
|
6034
6034
|
function C() {
|
|
6035
6035
|
var O, E;
|
|
6036
|
-
|
|
6036
|
+
Ot(r.value) && !r.value.includes(f.value) ? r.value.push(f.value) : r.value = (E = (O = e.trueValue) != null ? O : e.trueLabel) != null ? E : !0;
|
|
6037
6037
|
}
|
|
6038
6038
|
e.checked && C();
|
|
6039
6039
|
})(), lo({
|
|
@@ -6100,7 +6100,7 @@ const g0 = Mt(HC), m0 = {
|
|
|
6100
6100
|
p.is("indeterminate", t.indeterminate),
|
|
6101
6101
|
p.is("focus", i.value)
|
|
6102
6102
|
]);
|
|
6103
|
-
return (y, C) => (x(), Q(
|
|
6103
|
+
return (y, C) => (x(), Q(Ct(!d(u) && d(o) ? "span" : "label"), {
|
|
6104
6104
|
class: N(d(h)),
|
|
6105
6105
|
"aria-controls": y.indeterminate ? y.controls : null,
|
|
6106
6106
|
onClick: d(v)
|
|
@@ -6274,8 +6274,8 @@ const rk = _e({
|
|
|
6274
6274
|
default: !0
|
|
6275
6275
|
}
|
|
6276
6276
|
}), ok = {
|
|
6277
|
-
[et]: (e) =>
|
|
6278
|
-
change: (e) =>
|
|
6277
|
+
[et]: (e) => Ot(e),
|
|
6278
|
+
change: (e) => Ot(e)
|
|
6279
6279
|
}, ak = M({
|
|
6280
6280
|
name: "ElCheckboxGroup"
|
|
6281
6281
|
}), sk = /* @__PURE__ */ M({
|
|
@@ -6311,7 +6311,7 @@ const rk = _e({
|
|
|
6311
6311
|
n.validateEvent && (o == null || o.validate("change").catch((u) => bt(u)));
|
|
6312
6312
|
}), (u, c) => {
|
|
6313
6313
|
var f;
|
|
6314
|
-
return x(), Q(
|
|
6314
|
+
return x(), Q(Ct(u.tag), {
|
|
6315
6315
|
id: d(a),
|
|
6316
6316
|
class: N(d(r).b("group")),
|
|
6317
6317
|
role: "group",
|
|
@@ -6858,10 +6858,10 @@ class yo {
|
|
|
6858
6858
|
}
|
|
6859
6859
|
get isDisabled() {
|
|
6860
6860
|
const { data: t, parent: n, config: r } = this, { disabled: o, checkStrictly: a } = r;
|
|
6861
|
-
return (
|
|
6861
|
+
return (Tt(o) ? o(t, this) : !!t[o]) || !a && (n == null ? void 0 : n.isDisabled);
|
|
6862
6862
|
}
|
|
6863
6863
|
get isLeaf() {
|
|
6864
|
-
const { data: t, config: n, childrenData: r, loaded: o } = this, { lazy: a, leaf: s } = n, i =
|
|
6864
|
+
const { data: t, config: n, childrenData: r, loaded: o } = this, { lazy: a, leaf: s } = n, i = Tt(s) ? s(t, this) : t[s];
|
|
6865
6865
|
return co(i) ? a && !o ? !1 : !(Array.isArray(r) && r.length) : !!i;
|
|
6866
6866
|
}
|
|
6867
6867
|
get valueByOption() {
|
|
@@ -7351,7 +7351,7 @@ const bo = Mt(Uk), qk = _e({
|
|
|
7351
7351
|
closable: !Y.value && !K.isDisabled,
|
|
7352
7352
|
isCollapseTag: !1
|
|
7353
7353
|
};
|
|
7354
|
-
},
|
|
7354
|
+
}, kt = (K) => {
|
|
7355
7355
|
var te;
|
|
7356
7356
|
const de = K.node;
|
|
7357
7357
|
de.doCheck(!1), (te = m.value) == null || te.calculateCheckedValue(), n("removeTag", de.valueByOption);
|
|
@@ -7450,8 +7450,8 @@ const bo = Mt(Uk), qk = _e({
|
|
|
7450
7450
|
}
|
|
7451
7451
|
}, $e = () => {
|
|
7452
7452
|
const K = F.value, te = K[K.length - 1];
|
|
7453
|
-
i = P.value ? 0 : i + 1, !(!te || !i || r.collapseTags && K.length > 1) && (te.hitState ?
|
|
7454
|
-
},
|
|
7453
|
+
i = P.value ? 0 : i + 1, !(!te || !i || r.collapseTags && K.length > 1) && (te.hitState ? kt(te) : te.hitState = !0);
|
|
7454
|
+
}, Et = (K) => {
|
|
7455
7455
|
const te = K.target, de = l.e("search-input");
|
|
7456
7456
|
te.className === de && (I.value = !0), n("focus", K);
|
|
7457
7457
|
}, Rn = (K) => {
|
|
@@ -7528,7 +7528,7 @@ const bo = Mt(Uk), qk = _e({
|
|
|
7528
7528
|
onCompositionstart: Qe,
|
|
7529
7529
|
onCompositionupdate: Qe,
|
|
7530
7530
|
onCompositionend: Qe,
|
|
7531
|
-
onFocus:
|
|
7531
|
+
onFocus: Et,
|
|
7532
7532
|
onBlur: Rn,
|
|
7533
7533
|
onInput: cr
|
|
7534
7534
|
}, {
|
|
@@ -7571,7 +7571,7 @@ const bo = Mt(Uk), qk = _e({
|
|
|
7571
7571
|
hit: de.hitState,
|
|
7572
7572
|
closable: de.closable,
|
|
7573
7573
|
"disable-transitions": "",
|
|
7574
|
-
onClose: (Ne) =>
|
|
7574
|
+
onClose: (Ne) => kt(de)
|
|
7575
7575
|
}, {
|
|
7576
7576
|
default: W(() => [
|
|
7577
7577
|
de.isCollapseTag === !1 ? (x(), A("span", Kk, pe(de.text), 1)) : (x(), Q(d($s), {
|
|
@@ -7600,7 +7600,7 @@ const bo = Mt(Uk), qk = _e({
|
|
|
7600
7600
|
hit: Ne.hitState,
|
|
7601
7601
|
closable: Ne.closable,
|
|
7602
7602
|
"disable-transitions": "",
|
|
7603
|
-
onClose: (Vt) =>
|
|
7603
|
+
onClose: (Vt) => kt(Ne)
|
|
7604
7604
|
}, {
|
|
7605
7605
|
default: W(() => [
|
|
7606
7606
|
j("span", null, pe(Ne.text), 1)
|
|
@@ -7627,7 +7627,7 @@ const bo = Mt(Uk), qk = _e({
|
|
|
7627
7627
|
onCompositionstart: Qe,
|
|
7628
7628
|
onCompositionupdate: Qe,
|
|
7629
7629
|
onCompositionend: Qe,
|
|
7630
|
-
onFocus:
|
|
7630
|
+
onFocus: Et,
|
|
7631
7631
|
onBlur: Rn
|
|
7632
7632
|
}, null, 42, Gk)), [
|
|
7633
7633
|
[jp, P.value]
|
|
@@ -8370,7 +8370,7 @@ const R0 = Symbol("elPaginationKey"), D5 = _e({
|
|
|
8370
8370
|
}, [
|
|
8371
8371
|
o.prevText ? (x(), A("span", z5, pe(o.prevText), 1)) : (x(), Q(d(tt), { key: 1 }, {
|
|
8372
8372
|
default: W(() => [
|
|
8373
|
-
(x(), Q(
|
|
8373
|
+
(x(), Q(Ct(o.prevIcon)))
|
|
8374
8374
|
]),
|
|
8375
8375
|
_: 1
|
|
8376
8376
|
}))
|
|
@@ -8412,7 +8412,7 @@ const q5 = _e({
|
|
|
8412
8412
|
}, [
|
|
8413
8413
|
o.nextText ? (x(), A("span", K5, pe(o.nextText), 1)) : (x(), Q(d(tt), { key: 1 }, {
|
|
8414
8414
|
default: W(() => [
|
|
8415
|
-
(x(), Q(
|
|
8415
|
+
(x(), Q(Ct(o.nextIcon)))
|
|
8416
8416
|
]),
|
|
8417
8417
|
_: 1
|
|
8418
8418
|
}))
|
|
@@ -8428,8 +8428,8 @@ function Y5(e, t) {
|
|
|
8428
8428
|
return !o.value && v.length >= n.props.multipleLimit && n.props.multipleLimit > 0;
|
|
8429
8429
|
} else
|
|
8430
8430
|
return !1;
|
|
8431
|
-
}), s = w(() => e.label || (
|
|
8432
|
-
if (
|
|
8431
|
+
}), s = w(() => e.label || (At(e.value) ? "" : e.value)), i = w(() => e.value || e.label || ""), l = w(() => e.disabled || t.groupDisabled || a.value), u = Je(), c = (v = [], p) => {
|
|
8432
|
+
if (At(e.value)) {
|
|
8433
8433
|
const h = n.props.valueKey;
|
|
8434
8434
|
return v && v.some((m) => _s(rr(m, h)) === rr(p, h));
|
|
8435
8435
|
} else
|
|
@@ -8445,7 +8445,7 @@ function Y5(e, t) {
|
|
|
8445
8445
|
}), ae(() => e.value, (v, p) => {
|
|
8446
8446
|
const { remote: h, valueKey: m } = n.props;
|
|
8447
8447
|
if (En(v, p) || (n.onOptionDestroy(p, u.proxy), n.onOptionCreate(u.proxy)), !e.created && !h) {
|
|
8448
|
-
if (m &&
|
|
8448
|
+
if (m && At(v) && At(p) && v[m] === p[m])
|
|
8449
8449
|
return;
|
|
8450
8450
|
n.setSelected();
|
|
8451
8451
|
}
|
|
@@ -8588,7 +8588,7 @@ function o4(e) {
|
|
|
8588
8588
|
t.value = !xu(i);
|
|
8589
8589
|
},
|
|
8590
8590
|
handleCompositionEnd: (a) => {
|
|
8591
|
-
t.value && (t.value = !1,
|
|
8591
|
+
t.value && (t.value = !1, Tt(e) && e(a));
|
|
8592
8592
|
}
|
|
8593
8593
|
};
|
|
8594
8594
|
}
|
|
@@ -8622,7 +8622,7 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8622
8622
|
}
|
|
8623
8623
|
}), P = $(!1), F = $(), { form: G, formItem: z } = Tr(), { inputId: D } = Ta(e, {
|
|
8624
8624
|
formItemContext: z
|
|
8625
|
-
}), V = w(() => e.disabled || (G == null ? void 0 : G.disabled)), Y = w(() => Ee.value.some((B) => B.value === "")), ue = w(() => e.multiple ?
|
|
8625
|
+
}), V = w(() => e.disabled || (G == null ? void 0 : G.disabled)), Y = w(() => Ee.value.some((B) => B.value === "")), ue = w(() => e.multiple ? Ot(e.modelValue) && e.modelValue.length > 0 : !$o(e.modelValue) && (e.modelValue !== "" || Y.value)), re = w(() => e.clearable && !V.value && s.inputHovering && ue.value), ee = w(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), L = w(() => o.is("reverse", ee.value && P.value)), he = w(() => (z == null ? void 0 : z.validateState) || ""), me = w(() => Ih[he.value]), Ve = w(() => e.remote ? 300 : 0), Le = w(() => e.loading ? e.loadingText || n("el.select.loading") : e.remote && !s.inputValue && s.options.size === 0 ? !1 : e.filterable && s.inputValue && s.options.size > 0 && ze.value === 0 ? e.noMatchText || n("el.select.noMatch") : s.options.size === 0 ? e.noDataText || n("el.select.noData") : null), ze = w(() => Ee.value.filter((B) => B.visible).length), Ee = w(() => {
|
|
8626
8626
|
const B = Array.from(s.options.values()), ne = [];
|
|
8627
8627
|
return s.optionValues.forEach((Be) => {
|
|
8628
8628
|
const at = B.findIndex((Nn) => Nn.value === Be);
|
|
@@ -8632,7 +8632,7 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8632
8632
|
const B = Ee.value.filter((ne) => !ne.created).some((ne) => ne.currentLabel === s.inputValue);
|
|
8633
8633
|
return e.filterable && e.allowCreate && s.inputValue !== "" && !B;
|
|
8634
8634
|
}), wt = () => {
|
|
8635
|
-
e.filterable &&
|
|
8635
|
+
e.filterable && Tt(e.filterMethod) || e.filterable && e.remote && Tt(e.remoteMethod) || Ee.value.forEach((B) => {
|
|
8636
8636
|
var ne;
|
|
8637
8637
|
(ne = B.updateOption) == null || ne.call(B, s.inputValue);
|
|
8638
8638
|
});
|
|
@@ -8643,13 +8643,13 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8643
8643
|
set(B) {
|
|
8644
8644
|
P.value = B;
|
|
8645
8645
|
}
|
|
8646
|
-
}), rt = w(() =>
|
|
8646
|
+
}), rt = w(() => Ot(e.modelValue) ? e.modelValue.length === 0 && !s.inputValue : e.filterable ? !s.inputValue : !0), ot = w(() => {
|
|
8647
8647
|
var B;
|
|
8648
8648
|
const ne = (B = e.placeholder) != null ? B : n("el.select.placeholder");
|
|
8649
8649
|
return e.multiple || !ue.value ? ne : s.selectedLabel;
|
|
8650
8650
|
});
|
|
8651
8651
|
ae(() => e.modelValue, (B, ne) => {
|
|
8652
|
-
e.multiple && e.filterable && !e.reserveKeyword && (s.inputValue = "", St("")),
|
|
8652
|
+
e.multiple && e.filterable && !e.reserveKeyword && (s.inputValue = "", St("")), kt(), !En(B, ne) && e.validateEvent && (z == null || z.validate("change").catch((Be) => bt(Be)));
|
|
8653
8653
|
}, {
|
|
8654
8654
|
flush: "post",
|
|
8655
8655
|
deep: !0
|
|
@@ -8660,7 +8660,7 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8660
8660
|
if (!Xe)
|
|
8661
8661
|
return;
|
|
8662
8662
|
const ne = ((B = i.value) == null ? void 0 : B.querySelectorAll("input")) || [];
|
|
8663
|
-
(!e.filterable && !e.defaultFirstOption && !co(e.modelValue) || !Array.from(ne).includes(document.activeElement)) &&
|
|
8663
|
+
(!e.filterable && !e.defaultFirstOption && !co(e.modelValue) || !Array.from(ne).includes(document.activeElement)) && kt(), e.defaultFirstOption && (e.filterable || e.remote) && ze.value && ct();
|
|
8664
8664
|
}, {
|
|
8665
8665
|
flush: "post"
|
|
8666
8666
|
}), ae(() => s.hoveringIndex, (B) => {
|
|
@@ -8671,11 +8671,11 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8671
8671
|
s.isBeforeHide || wt();
|
|
8672
8672
|
});
|
|
8673
8673
|
const St = (B) => {
|
|
8674
|
-
s.previousQuery !== B && (s.previousQuery = B, e.filterable &&
|
|
8674
|
+
s.previousQuery !== B && (s.previousQuery = B, e.filterable && Tt(e.filterMethod) ? e.filterMethod(B) : e.filterable && e.remote && Tt(e.remoteMethod) && e.remoteMethod(B), e.defaultFirstOption && (e.filterable || e.remote) && ze.value ? ke(ct) : ke(Nt));
|
|
8675
8675
|
}, ct = () => {
|
|
8676
8676
|
const B = Ee.value.filter((at) => at.visible && !at.disabled && !at.states.groupDisabled), ne = B.find((at) => at.created), Be = B[0];
|
|
8677
8677
|
s.hoveringIndex = cr(Ee.value, ne || Be);
|
|
8678
|
-
},
|
|
8678
|
+
}, kt = () => {
|
|
8679
8679
|
if (e.multiple)
|
|
8680
8680
|
s.selectedLabel = "";
|
|
8681
8681
|
else {
|
|
@@ -8684,7 +8684,7 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8684
8684
|
return;
|
|
8685
8685
|
}
|
|
8686
8686
|
const B = [];
|
|
8687
|
-
|
|
8687
|
+
Ot(e.modelValue) && e.modelValue.forEach((ne) => {
|
|
8688
8688
|
B.push(Yt(ne));
|
|
8689
8689
|
}), s.selected = B;
|
|
8690
8690
|
}, Yt = (B) => {
|
|
@@ -8740,7 +8740,7 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8740
8740
|
return;
|
|
8741
8741
|
ne.splice(Be, 1), t(et, ne), Z(ne);
|
|
8742
8742
|
}
|
|
8743
|
-
},
|
|
8743
|
+
}, Et = (B, ne) => {
|
|
8744
8744
|
const Be = s.selected.indexOf(ne);
|
|
8745
8745
|
if (Be > -1 && !V.value) {
|
|
8746
8746
|
const at = e.modelValue.slice();
|
|
@@ -8764,14 +8764,14 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8764
8764
|
Zn(B);
|
|
8765
8765
|
});
|
|
8766
8766
|
}, cr = (B = [], ne) => {
|
|
8767
|
-
if (!
|
|
8767
|
+
if (!At(ne))
|
|
8768
8768
|
return B.indexOf(ne);
|
|
8769
8769
|
const Be = e.valueKey;
|
|
8770
8770
|
let at = -1;
|
|
8771
8771
|
return B.some((Nn, dr) => _s(rr(Nn, Be)) === rr(ne, Be) ? (at = dr, !0) : !1), at;
|
|
8772
8772
|
}, Zn = (B) => {
|
|
8773
8773
|
var ne, Be, at, Nn, dr;
|
|
8774
|
-
const Qr =
|
|
8774
|
+
const Qr = Ot(B) ? B[0] : B;
|
|
8775
8775
|
let Xn = null;
|
|
8776
8776
|
if (Qr != null && Qr.value) {
|
|
8777
8777
|
const rn = Ee.value.filter((za) => za.value === Qr.value);
|
|
@@ -8813,7 +8813,7 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8813
8813
|
V.value || (s.menuVisibleOnFocus ? s.menuVisibleOnFocus = !1 : P.value = !P.value);
|
|
8814
8814
|
}, Ma = () => {
|
|
8815
8815
|
P.value ? Ee.value[s.hoveringIndex] && Yr(Ee.value[s.hoveringIndex]) : Yn();
|
|
8816
|
-
}, Ir = (B) =>
|
|
8816
|
+
}, Ir = (B) => At(B.value) ? rr(B.value, e.valueKey) : B.value, Pi = w(() => Ee.value.filter((B) => B.visible).every((B) => B.disabled)), Fi = w(() => e.multiple ? e.collapseTags ? s.selected.slice(0, e.maxCollapseTags) : s.selected : []), zo = w(() => e.multiple ? e.collapseTags ? s.selected.slice(e.maxCollapseTags) : [] : []), ja = (B) => {
|
|
8817
8817
|
if (!P.value) {
|
|
8818
8818
|
P.value = !0;
|
|
8819
8819
|
return;
|
|
@@ -8834,8 +8834,8 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8834
8834
|
}), Ni = w(() => ({ maxWidth: `${s.selectionWidth}px` })), Li = w(() => ({
|
|
8835
8835
|
width: `${Math.max(s.calculatorWidth, a4)}px`
|
|
8836
8836
|
}));
|
|
8837
|
-
return e.multiple && !
|
|
8838
|
-
|
|
8837
|
+
return e.multiple && !Ot(e.modelValue) && t(et, []), !e.multiple && Ot(e.modelValue) && t(et, ""), Ln(l, Xt), Ln(g, Lt), Ln(h, je), Ln(O, je), Ln(m, Qe), Ln(y, xn), qe(() => {
|
|
8838
|
+
kt();
|
|
8839
8839
|
}), {
|
|
8840
8840
|
inputId: D,
|
|
8841
8841
|
contentId: r,
|
|
@@ -8854,7 +8854,7 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8854
8854
|
debouncedOnInputChange: gt,
|
|
8855
8855
|
onInput: zt,
|
|
8856
8856
|
deletePrevTag: $e,
|
|
8857
|
-
deleteTag:
|
|
8857
|
+
deleteTag: Et,
|
|
8858
8858
|
deleteSelected: Rn,
|
|
8859
8859
|
handleOptionSelect: Yr,
|
|
8860
8860
|
scrollToOption: Zn,
|
|
@@ -8869,7 +8869,7 @@ const a4 = 11, s4 = (e, t) => {
|
|
|
8869
8869
|
showNewOption: Me,
|
|
8870
8870
|
updateOptions: wt,
|
|
8871
8871
|
collapseTagSize: He,
|
|
8872
|
-
setSelected:
|
|
8872
|
+
setSelected: kt,
|
|
8873
8873
|
selectDisabled: V,
|
|
8874
8874
|
emptyText: Le,
|
|
8875
8875
|
handleCompositionStart: de,
|
|
@@ -8920,10 +8920,10 @@ var i4 = M({
|
|
|
8920
8920
|
var o, a;
|
|
8921
8921
|
const s = (o = t.default) == null ? void 0 : o.call(t), i = [];
|
|
8922
8922
|
function l(u) {
|
|
8923
|
-
|
|
8923
|
+
Ot(u) && u.forEach((c) => {
|
|
8924
8924
|
var f, g, v, p;
|
|
8925
8925
|
const h = (f = (c == null ? void 0 : c.type) || {}) == null ? void 0 : f.name;
|
|
8926
|
-
h === "ElOptionGroup" ? l(!Wt(c.children) && !
|
|
8926
|
+
h === "ElOptionGroup" ? l(!Wt(c.children) && !Ot(c.children) && Tt((g = c.children) == null ? void 0 : g.default) ? (v = c.children) == null ? void 0 : v.default() : c.children) : h === "ElOption" ? i.push((p = c.props) == null ? void 0 : p.value) : Ot(c.children) && l(c.children);
|
|
8927
8927
|
});
|
|
8928
8928
|
}
|
|
8929
8929
|
return s.length && l((a = s[0]) == null ? void 0 : a.children), En(i, r) || (r = i, n && (n.states.optionValues = i)), s;
|
|
@@ -9268,7 +9268,7 @@ function f4(e, t, n, r, o, a) {
|
|
|
9268
9268
|
class: N([e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.iconReverse])
|
|
9269
9269
|
}, {
|
|
9270
9270
|
default: W(() => [
|
|
9271
|
-
(x(), Q(
|
|
9271
|
+
(x(), Q(Ct(e.iconComponent)))
|
|
9272
9272
|
]),
|
|
9273
9273
|
_: 1
|
|
9274
9274
|
}, 8, ["class"])) : q("v-if", !0),
|
|
@@ -9278,7 +9278,7 @@ function f4(e, t, n, r, o, a) {
|
|
|
9278
9278
|
onClick: e.handleClearClick
|
|
9279
9279
|
}, {
|
|
9280
9280
|
default: W(() => [
|
|
9281
|
-
(x(), Q(
|
|
9281
|
+
(x(), Q(Ct(e.clearIcon)))
|
|
9282
9282
|
]),
|
|
9283
9283
|
_: 1
|
|
9284
9284
|
}, 8, ["class", "onClick"])) : q("v-if", !0),
|
|
@@ -9287,7 +9287,7 @@ function f4(e, t, n, r, o, a) {
|
|
|
9287
9287
|
class: N([e.nsInput.e("icon"), e.nsInput.e("validateIcon")])
|
|
9288
9288
|
}, {
|
|
9289
9289
|
default: W(() => [
|
|
9290
|
-
(x(), Q(
|
|
9290
|
+
(x(), Q(Ct(e.validateIcon)))
|
|
9291
9291
|
]),
|
|
9292
9292
|
_: 1
|
|
9293
9293
|
}, 8, ["class"])) : q("v-if", !0)
|
|
@@ -9380,7 +9380,7 @@ const h4 = M({
|
|
|
9380
9380
|
}));
|
|
9381
9381
|
const a = w(() => o.value.some((l) => l.visible === !0)), s = (l) => {
|
|
9382
9382
|
const u = [];
|
|
9383
|
-
return
|
|
9383
|
+
return Ot(l.children) && l.children.forEach((c) => {
|
|
9384
9384
|
var f, g;
|
|
9385
9385
|
c.type && c.type.name === "ElOption" && c.component && c.component.proxy ? u.push(c.component.proxy) : (f = c.children) != null && f.length ? u.push(...s(c)) : (g = c.component) != null && g.subTree && u.push(...s(c.component.subTree));
|
|
9386
9386
|
}), u;
|
|
@@ -10177,7 +10177,7 @@ const Q4 = function(e = {}) {
|
|
|
10177
10177
|
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? da(t, r.bm("parent", "relative")) : El(t, r.bm("parent", "relative")), e.fullscreen && e.lock ? El(t, r.bm("parent", "hidden")) : da(t, r.bm("parent", "hidden"));
|
|
10178
10178
|
}, hs = Symbol("ElLoading"), gf = (e, t) => {
|
|
10179
10179
|
var n, r, o, a;
|
|
10180
|
-
const s = t.instance, i = (g) =>
|
|
10180
|
+
const s = t.instance, i = (g) => At(t.value) ? t.value[g] : void 0, l = (g) => {
|
|
10181
10181
|
const v = Wt(g) && (s == null ? void 0 : s[g]) || g;
|
|
10182
10182
|
return v && $(v);
|
|
10183
10183
|
}, u = (g) => l(i(g) || e.getAttribute(`element-loading-${i1(g)}`)), c = (n = i("fullscreen")) != null ? n : t.modifiers.fullscreen, f = {
|
|
@@ -10205,7 +10205,7 @@ const Q4 = function(e = {}) {
|
|
|
10205
10205
|
},
|
|
10206
10206
|
updated(e, t) {
|
|
10207
10207
|
const n = e[hs];
|
|
10208
|
-
t.oldValue !== t.value && (t.value && !t.oldValue ? gf(e, t) : t.value && t.oldValue ?
|
|
10208
|
+
t.oldValue !== t.value && (t.value && !t.oldValue ? gf(e, t) : t.value && t.oldValue ? At(t.value) && nE(t.value, n.options) : n == null || n.instance.close());
|
|
10209
10209
|
},
|
|
10210
10210
|
unmounted(e) {
|
|
10211
10211
|
var t;
|
|
@@ -13063,12 +13063,12 @@ function w6(e) {
|
|
|
13063
13063
|
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, s = n.altAxis, i = s === void 0 ? !1 : s, l = n.boundary, u = n.rootBoundary, c = n.altBoundary, f = n.padding, g = n.tether, v = g === void 0 ? !0 : g, p = n.tetherOffset, h = p === void 0 ? 0 : p, m = ba(t, { boundary: l, rootBoundary: u, padding: f, altBoundary: c }), y = Hn(t.placement), C = Oo(t.placement), O = !C, E = dc(y), I = b6(E), T = t.modifiersData.popperOffsets, P = t.rects.reference, F = t.rects.popper, G = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, z = typeof G == "number" ? { mainAxis: G, altAxis: G } : Object.assign({ mainAxis: 0, altAxis: 0 }, G), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, V = { x: 0, y: 0 };
|
|
13064
13064
|
if (T) {
|
|
13065
13065
|
if (a) {
|
|
13066
|
-
var Y, ue = E === "y" ? Jt : Zt, re = E === "y" ? mn : yn, ee = E === "y" ? "height" : "width", L = T[E], he = L + m[ue], me = L - m[re], Ve = v ? -F[ee] / 2 : 0, Le = C === _o ? P[ee] : F[ee], ze = C === _o ? -F[ee] : -P[ee], Ee = t.elements.arrow, nt = v && Ee ? cc(Ee) : { width: 0, height: 0 }, Me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : kv(), wt = Me[ue], ut = Me[re], He = ra(0, P[ee], nt[ee]), Sn = O ? P[ee] / 2 - Ve - He - wt - z.mainAxis : Le - He - wt - z.mainAxis, rt = O ? -P[ee] / 2 + Ve + He + ut + z.mainAxis : ze + He + ut + z.mainAxis, ot = t.elements.arrow && Na(t.elements.arrow), St = ot ? E === "y" ? ot.clientTop || 0 : ot.clientLeft || 0 : 0, ct = (Y = D == null ? void 0 : D[E]) != null ? Y : 0,
|
|
13066
|
+
var Y, ue = E === "y" ? Jt : Zt, re = E === "y" ? mn : yn, ee = E === "y" ? "height" : "width", L = T[E], he = L + m[ue], me = L - m[re], Ve = v ? -F[ee] / 2 : 0, Le = C === _o ? P[ee] : F[ee], ze = C === _o ? -F[ee] : -P[ee], Ee = t.elements.arrow, nt = v && Ee ? cc(Ee) : { width: 0, height: 0 }, Me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : kv(), wt = Me[ue], ut = Me[re], He = ra(0, P[ee], nt[ee]), Sn = O ? P[ee] / 2 - Ve - He - wt - z.mainAxis : Le - He - wt - z.mainAxis, rt = O ? -P[ee] / 2 + Ve + He + ut + z.mainAxis : ze + He + ut + z.mainAxis, ot = t.elements.arrow && Na(t.elements.arrow), St = ot ? E === "y" ? ot.clientTop || 0 : ot.clientLeft || 0 : 0, ct = (Y = D == null ? void 0 : D[E]) != null ? Y : 0, kt = L + Sn - ct - St, Yt = L + rt - ct, Nt = ra(v ? Ms(he, kt) : he, L, v ? Hr(me, Yt) : me);
|
|
13067
13067
|
T[E] = Nt, V[E] = Nt - L;
|
|
13068
13068
|
}
|
|
13069
13069
|
if (i) {
|
|
13070
|
-
var Xt, Lt = E === "x" ? Jt : Zt, xn = E === "x" ? mn : yn, je = T[I], Qe = I === "y" ? "height" : "width", Bt = je + m[Lt], zt = je - m[xn], gt = [Jt, Zt].indexOf(y) !== -1, Z = (Xt = D == null ? void 0 : D[I]) != null ? Xt : 0, ye = gt ? Bt : je - P[Qe] - F[Qe] - Z + z.altAxis, $e = gt ? je + P[Qe] + F[Qe] - Z - z.altAxis : zt,
|
|
13071
|
-
T[I] =
|
|
13070
|
+
var Xt, Lt = E === "x" ? Jt : Zt, xn = E === "x" ? mn : yn, je = T[I], Qe = I === "y" ? "height" : "width", Bt = je + m[Lt], zt = je - m[xn], gt = [Jt, Zt].indexOf(y) !== -1, Z = (Xt = D == null ? void 0 : D[I]) != null ? Xt : 0, ye = gt ? Bt : je - P[Qe] - F[Qe] - Z + z.altAxis, $e = gt ? je + P[Qe] + F[Qe] - Z - z.altAxis : zt, Et = v && gt ? KT(ye, je, $e) : ra(v ? ye : Bt, je, v ? $e : zt);
|
|
13071
|
+
T[I] = Et, V[I] = Et - je;
|
|
13072
13072
|
}
|
|
13073
13073
|
t.modifiersData[r] = V;
|
|
13074
13074
|
}
|
|
@@ -14313,7 +14313,7 @@ const MA = Do(oA), Sc = Symbol("elTooltip"), on = Rt({
|
|
|
14313
14313
|
const n = e, r = wn("tooltip"), { controlled: o, id: a, open: s, onOpen: i, onClose: l, onToggle: u } = ve(Sc, void 0), c = $(null), f = () => {
|
|
14314
14314
|
if (d(o) || n.disabled)
|
|
14315
14315
|
return !0;
|
|
14316
|
-
}, g =
|
|
14316
|
+
}, g = _t(n, "trigger"), v = nr(f, oo(g, "hover", i)), p = nr(f, oo(g, "hover", l)), h = nr(f, oo(g, "click", (E) => {
|
|
14317
14317
|
E.button === 0 && u(E);
|
|
14318
14318
|
})), m = nr(f, oo(g, "focus", i)), y = nr(f, oo(g, "focus", l)), C = nr(f, oo(g, "contextmenu", (E) => {
|
|
14319
14319
|
E.preventDefault(), u(E);
|
|
@@ -14476,9 +14476,9 @@ const XA = ["innerHTML"], QA = { key: 1 }, eI = M({
|
|
|
14476
14476
|
indicator: l,
|
|
14477
14477
|
toggleReason: u
|
|
14478
14478
|
}), { onOpen: v, onClose: p } = z6({
|
|
14479
|
-
showAfter:
|
|
14480
|
-
hideAfter:
|
|
14481
|
-
autoClose:
|
|
14479
|
+
showAfter: _t(r, "showAfter"),
|
|
14480
|
+
hideAfter: _t(r, "hideAfter"),
|
|
14481
|
+
autoClose: _t(r, "autoClose"),
|
|
14482
14482
|
open: c,
|
|
14483
14483
|
close: f
|
|
14484
14484
|
}), h = w(() => ac(r.visible) && !g.value);
|
|
@@ -14486,7 +14486,7 @@ const XA = ["innerHTML"], QA = { key: 1 }, eI = M({
|
|
|
14486
14486
|
controlled: h,
|
|
14487
14487
|
id: o,
|
|
14488
14488
|
open: nu(l),
|
|
14489
|
-
trigger:
|
|
14489
|
+
trigger: _t(r, "trigger"),
|
|
14490
14490
|
onOpen: (y) => {
|
|
14491
14491
|
v(y);
|
|
14492
14492
|
},
|
|
@@ -14682,7 +14682,7 @@ const rI = Do(nI), Jv = Symbol("buttonGroupContextKey"), oI = (e, t) => {
|
|
|
14682
14682
|
}), iI = {
|
|
14683
14683
|
click: (e) => e instanceof MouseEvent
|
|
14684
14684
|
};
|
|
14685
|
-
function
|
|
14685
|
+
function Pt(e, t) {
|
|
14686
14686
|
lI(e) && (e = "100%");
|
|
14687
14687
|
var n = uI(e);
|
|
14688
14688
|
return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
|
|
@@ -14707,13 +14707,13 @@ function Dr(e) {
|
|
|
14707
14707
|
}
|
|
14708
14708
|
function cI(e, t, n) {
|
|
14709
14709
|
return {
|
|
14710
|
-
r:
|
|
14711
|
-
g:
|
|
14712
|
-
b:
|
|
14710
|
+
r: Pt(e, 255) * 255,
|
|
14711
|
+
g: Pt(t, 255) * 255,
|
|
14712
|
+
b: Pt(n, 255) * 255
|
|
14713
14713
|
};
|
|
14714
14714
|
}
|
|
14715
14715
|
function cp(e, t, n) {
|
|
14716
|
-
e =
|
|
14716
|
+
e = Pt(e, 255), t = Pt(t, 255), n = Pt(n, 255);
|
|
14717
14717
|
var r = Math.max(e, t, n), o = Math.min(e, t, n), a = 0, s = 0, i = (r + o) / 2;
|
|
14718
14718
|
if (r === o)
|
|
14719
14719
|
s = 0, a = 0;
|
|
@@ -14739,7 +14739,7 @@ function cl(e, t, n) {
|
|
|
14739
14739
|
}
|
|
14740
14740
|
function dI(e, t, n) {
|
|
14741
14741
|
var r, o, a;
|
|
14742
|
-
if (e =
|
|
14742
|
+
if (e = Pt(e, 360), t = Pt(t, 100), n = Pt(n, 100), t === 0)
|
|
14743
14743
|
o = n, a = n, r = n;
|
|
14744
14744
|
else {
|
|
14745
14745
|
var s = n < 0.5 ? n * (1 + t) : n + t - n * t, i = 2 * n - s;
|
|
@@ -14748,7 +14748,7 @@ function dI(e, t, n) {
|
|
|
14748
14748
|
return { r: r * 255, g: o * 255, b: a * 255 };
|
|
14749
14749
|
}
|
|
14750
14750
|
function dp(e, t, n) {
|
|
14751
|
-
e =
|
|
14751
|
+
e = Pt(e, 255), t = Pt(t, 255), n = Pt(n, 255);
|
|
14752
14752
|
var r = Math.max(e, t, n), o = Math.min(e, t, n), a = 0, s = r, i = r - o, l = r === 0 ? 0 : i / r;
|
|
14753
14753
|
if (r === o)
|
|
14754
14754
|
a = 0;
|
|
@@ -14769,7 +14769,7 @@ function dp(e, t, n) {
|
|
|
14769
14769
|
return { h: a, s: l, v: s };
|
|
14770
14770
|
}
|
|
14771
14771
|
function fI(e, t, n) {
|
|
14772
|
-
e =
|
|
14772
|
+
e = Pt(e, 360) * 6, t = Pt(t, 100), n = Pt(n, 100);
|
|
14773
14773
|
var r = Math.floor(e), o = e - r, a = n * (1 - t), s = n * (1 - o * t), i = n * (1 - (1 - o) * t), l = r % 6, u = [n, s, a, a, i, n][l], c = [i, n, n, s, a, a][l], f = [a, a, i, n, n, s][l];
|
|
14774
14774
|
return { r: u * 255, g: c * 255, b: f * 255 };
|
|
14775
14775
|
}
|
|
@@ -15079,7 +15079,7 @@ var wI = (
|
|
|
15079
15079
|
return this.a === 1 ? "rgb(".concat(t, ", ").concat(n, ", ").concat(r, ")") : "rgba(".concat(t, ", ").concat(n, ", ").concat(r, ", ").concat(this.roundA, ")");
|
|
15080
15080
|
}, e.prototype.toPercentageRgb = function() {
|
|
15081
15081
|
var t = function(n) {
|
|
15082
|
-
return "".concat(Math.round(
|
|
15082
|
+
return "".concat(Math.round(Pt(n, 255) * 100), "%");
|
|
15083
15083
|
};
|
|
15084
15084
|
return {
|
|
15085
15085
|
r: t(this.r),
|
|
@@ -15089,7 +15089,7 @@ var wI = (
|
|
|
15089
15089
|
};
|
|
15090
15090
|
}, e.prototype.toPercentageRgbString = function() {
|
|
15091
15091
|
var t = function(n) {
|
|
15092
|
-
return Math.round(
|
|
15092
|
+
return Math.round(Pt(n, 255) * 100);
|
|
15093
15093
|
};
|
|
15094
15094
|
return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
|
|
15095
15095
|
}, e.prototype.toName = function() {
|
|
@@ -15248,7 +15248,7 @@ const xI = M({
|
|
|
15248
15248
|
type: l,
|
|
15249
15249
|
disabled: u,
|
|
15250
15250
|
shouldAddSpace: f
|
|
15251
|
-
}), (v, p) => (x(), Q(
|
|
15251
|
+
}), (v, p) => (x(), Q(Ct(v.tag), $t({
|
|
15252
15252
|
ref_key: "_ref",
|
|
15253
15253
|
ref: s
|
|
15254
15254
|
}, d(c), {
|
|
@@ -15275,13 +15275,13 @@ const xI = M({
|
|
|
15275
15275
|
class: N(d(a).is("loading"))
|
|
15276
15276
|
}, {
|
|
15277
15277
|
default: W(() => [
|
|
15278
|
-
(x(), Q(
|
|
15278
|
+
(x(), Q(Ct(v.loadingIcon)))
|
|
15279
15279
|
]),
|
|
15280
15280
|
_: 1
|
|
15281
15281
|
}, 8, ["class"]))
|
|
15282
15282
|
], 64)) : v.icon || v.$slots.icon ? (x(), Q(d(tp), { key: 1 }, {
|
|
15283
15283
|
default: W(() => [
|
|
15284
|
-
v.icon ? (x(), Q(
|
|
15284
|
+
v.icon ? (x(), Q(Ct(v.icon), { key: 0 })) : le(v.$slots, "icon", { key: 1 })
|
|
15285
15285
|
]),
|
|
15286
15286
|
_: 3
|
|
15287
15287
|
})) : q("v-if", !0),
|
|
@@ -15308,8 +15308,8 @@ const kI = {
|
|
|
15308
15308
|
setup(e) {
|
|
15309
15309
|
const t = e;
|
|
15310
15310
|
Ue(Jv, fn({
|
|
15311
|
-
size:
|
|
15312
|
-
type:
|
|
15311
|
+
size: _t(t, "size"),
|
|
15312
|
+
type: _t(t, "type")
|
|
15313
15313
|
}));
|
|
15314
15314
|
const n = wn("button");
|
|
15315
15315
|
return (r, o) => (x(), A("div", {
|
|
@@ -18091,7 +18091,7 @@ function WF(e) {
|
|
|
18091
18091
|
});
|
|
18092
18092
|
} };
|
|
18093
18093
|
}
|
|
18094
|
-
const
|
|
18094
|
+
const xt = new WF(), Hs = {
|
|
18095
18095
|
"homo sapiens": "Human",
|
|
18096
18096
|
"rattus norvegicus": "Rat",
|
|
18097
18097
|
"mus musculus": "Mouse",
|
|
@@ -18166,7 +18166,7 @@ const Ft = new WF(), Hs = {
|
|
|
18166
18166
|
this.propogateCardAction(e);
|
|
18167
18167
|
},
|
|
18168
18168
|
galleryDatalinkClicked: function(e) {
|
|
18169
|
-
|
|
18169
|
+
xt.emit("datalink-clicked", e);
|
|
18170
18170
|
},
|
|
18171
18171
|
openDataset: function() {
|
|
18172
18172
|
window.open(this.dataLocation, "_blank");
|
|
@@ -18186,7 +18186,7 @@ const Ft = new WF(), Hs = {
|
|
|
18186
18186
|
});
|
|
18187
18187
|
},
|
|
18188
18188
|
propogateCardAction: function(e) {
|
|
18189
|
-
|
|
18189
|
+
xt.emit("PopoverActionClick", e), xt.emit("contextUpdate", e);
|
|
18190
18190
|
},
|
|
18191
18191
|
splitDOI: function(e) {
|
|
18192
18192
|
return [
|
|
@@ -18230,7 +18230,7 @@ const Ft = new WF(), Hs = {
|
|
|
18230
18230
|
this.getBanner();
|
|
18231
18231
|
}
|
|
18232
18232
|
}
|
|
18233
|
-
}, GF = (e) => (Io("data-v-
|
|
18233
|
+
}, GF = (e) => (Io("data-v-8192a773"), e = e(), Po(), e), JF = {
|
|
18234
18234
|
class: "dataset-card-container",
|
|
18235
18235
|
ref: "container"
|
|
18236
18236
|
}, ZF = {
|
|
@@ -18299,7 +18299,7 @@ function a9(e, t, n, r, o, a) {
|
|
|
18299
18299
|
], 512)
|
|
18300
18300
|
], 512);
|
|
18301
18301
|
}
|
|
18302
|
-
const wg = /* @__PURE__ */ Kn(KF, [["render", a9], ["__scopeId", "data-v-
|
|
18302
|
+
const wg = /* @__PURE__ */ Kn(KF, [["render", a9], ["__scopeId", "data-v-8192a773"]]), Ap = function(e) {
|
|
18303
18303
|
return [...new Set(e.map((t) => JSON.stringify(t)))].map(
|
|
18304
18304
|
(t) => JSON.parse(t)
|
|
18305
18305
|
);
|
|
@@ -18358,7 +18358,7 @@ const wg = /* @__PURE__ */ Kn(KF, [["render", a9], ["__scopeId", "data-v-a1a7b92
|
|
|
18358
18358
|
}
|
|
18359
18359
|
},
|
|
18360
18360
|
mounted: function() {
|
|
18361
|
-
this.getSearchHistory(),
|
|
18361
|
+
this.getSearchHistory(), xt.on("search-changed", (e) => {
|
|
18362
18362
|
this.setSearchHistory(e);
|
|
18363
18363
|
});
|
|
18364
18364
|
}
|
|
@@ -19260,26 +19260,26 @@ var om = { exports: {} };
|
|
|
19260
19260
|
if (We === void 0)
|
|
19261
19261
|
throw { name: "RetryError", message: "Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.", transporterStackTrace: me(R) };
|
|
19262
19262
|
var st = { data: X, headers: se, method: J, url: L(We, _.path, fe), connectTimeout: Ce(ce, b.timeouts.connect), responseTimeout: Ce(ce, k.timeout) }, Ht = function(Ut) {
|
|
19263
|
-
var
|
|
19264
|
-
return R.push(
|
|
19263
|
+
var Ft = { request: st, response: Ut, host: We, triesLeft: Ae.length };
|
|
19264
|
+
return R.push(Ft), Ft;
|
|
19265
19265
|
}, Vo = { onSuccess: function(Ut) {
|
|
19266
|
-
return function(
|
|
19266
|
+
return function(Ft) {
|
|
19267
19267
|
try {
|
|
19268
|
-
return JSON.parse(
|
|
19268
|
+
return JSON.parse(Ft.content);
|
|
19269
19269
|
} catch (Pr) {
|
|
19270
19270
|
throw /* @__PURE__ */ function(fr, to) {
|
|
19271
19271
|
return { name: "DeserializationError", message: fr, response: to };
|
|
19272
|
-
}(Pr.message,
|
|
19272
|
+
}(Pr.message, Ft);
|
|
19273
19273
|
}
|
|
19274
19274
|
}(Ut);
|
|
19275
19275
|
}, onRetry: function(Ut) {
|
|
19276
|
-
var
|
|
19277
|
-
return Ut.isTimedOut && ce++, Promise.all([b.logger.info("Retryable failure", Ve(
|
|
19276
|
+
var Ft = Ht(Ut);
|
|
19277
|
+
return Ut.isTimedOut && ce++, Promise.all([b.logger.info("Retryable failure", Ve(Ft)), b.hostsCache.set(We, P(We, Ut.isTimedOut ? T : I))]).then(function() {
|
|
19278
19278
|
return Se(Ae, Ce);
|
|
19279
19279
|
});
|
|
19280
19280
|
}, onFail: function(Ut) {
|
|
19281
|
-
throw Ht(Ut), function(
|
|
19282
|
-
var fr =
|
|
19281
|
+
throw Ht(Ut), function(Ft, Pr) {
|
|
19282
|
+
var fr = Ft.content, to = Ft.status, Ho = fr;
|
|
19283
19283
|
try {
|
|
19284
19284
|
Ho = JSON.parse(fr).message;
|
|
19285
19285
|
} catch {
|
|
@@ -19290,14 +19290,14 @@ var om = { exports: {} };
|
|
|
19290
19290
|
}(Ut, me(R));
|
|
19291
19291
|
} };
|
|
19292
19292
|
return b.requester.send(st).then(function(Ut) {
|
|
19293
|
-
return function(
|
|
19293
|
+
return function(Ft, Pr) {
|
|
19294
19294
|
return function(fr) {
|
|
19295
19295
|
var to = fr.status;
|
|
19296
19296
|
return fr.isTimedOut || function(Ho) {
|
|
19297
19297
|
var Ha = Ho.isTimedOut, zi = Ho.status;
|
|
19298
19298
|
return !Ha && ~~zi == 0;
|
|
19299
19299
|
}(fr) || ~~(to / 100) != 2 && ~~(to / 100) != 4;
|
|
19300
|
-
}(
|
|
19300
|
+
}(Ft) ? Pr.onRetry(Ft) : ~~(Ft.status / 100) == 2 ? Pr.onSuccess(Ft) : Pr.onFail(Ft);
|
|
19301
19301
|
}(Ut, Vo);
|
|
19302
19302
|
});
|
|
19303
19303
|
};
|
|
@@ -19435,7 +19435,7 @@ var om = { exports: {} };
|
|
|
19435
19435
|
return $e(b)(S, { methods: { waitTask: dt } }).waitTask(R.taskID, X);
|
|
19436
19436
|
});
|
|
19437
19437
|
};
|
|
19438
|
-
},
|
|
19438
|
+
}, kt = function(b) {
|
|
19439
19439
|
return function(S, _, k) {
|
|
19440
19440
|
return ct(b)(S, _, o(o({}, k), {}, { scope: [ji.Rules] }));
|
|
19441
19441
|
};
|
|
@@ -19505,7 +19505,7 @@ var om = { exports: {} };
|
|
|
19505
19505
|
var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = { transporter: b.transporter, appId: b.appId, indexName: S };
|
|
19506
19506
|
return h(k, _.methods);
|
|
19507
19507
|
};
|
|
19508
|
-
},
|
|
19508
|
+
}, Et = function(b) {
|
|
19509
19509
|
return function(S) {
|
|
19510
19510
|
return b.transporter.read({ method: z, path: "1/keys" }, S);
|
|
19511
19511
|
};
|
|
@@ -20035,7 +20035,7 @@ var om = { exports: {} };
|
|
|
20035
20035
|
return Promise.all([ce.requestsCache.clear(), ce.responsesCache.clear()]).then(function() {
|
|
20036
20036
|
});
|
|
20037
20037
|
} }, J.methods);
|
|
20038
|
-
}(o(o({}, X), {}, { methods: { search: de, searchForFacetValues: Ne, multipleBatch: K, multipleGetObjects: te, multipleQueries: de, copyIndex: ct, copySettings: Yt, copySynonyms: Nt, copyRules:
|
|
20038
|
+
}(o(o({}, X), {}, { methods: { search: de, searchForFacetValues: Ne, multipleBatch: K, multipleGetObjects: te, multipleQueries: de, copyIndex: ct, copySettings: Yt, copySynonyms: Nt, copyRules: kt, moveIndex: Zn, listIndices: Yr, getLogs: zt, listClusters: Rn, multipleSearchForFacetValues: Ne, getApiKey: je, addApiKey: Sn, listApiKeys: Et, updateApiKey: Ii, deleteApiKey: Lt, restoreApiKey: en, assignUserID: rt, assignUserIDs: ot, getUserID: Z, searchUserIDs: Ai, listUserIDs: cr, getTopUserIDs: gt, removeUserID: Qt, hasPendingMappings: ye, clearDictionaryEntries: St, deleteDictionaryEntries: xn, getDictionarySettings: Bt, getAppTask: Qe, replaceDictionaryEntries: Vt, saveDictionaryEntries: Xr, searchDictionaryEntries: Ti, setDictionarySettings: Da, waitAppTask: Yn, customRequest: Xt, initIndex: function(J) {
|
|
20039
20039
|
return function(oe) {
|
|
20040
20040
|
return $e(J)(oe, { methods: { batch: Ma, delete: Li, findAnswers: dr, getObject: Xn, getObjects: za, saveObject: mm, saveObjects: Bi, search: Pc, searchForFacetValues: Fc, waitTask: dt, setSettings: wm, getSettings: Ac, partialUpdateObject: pm, partialUpdateObjects: Ic, deleteObject: B, deleteObjects: ne, deleteBy: Ni, clearObjects: ja, browseObjects: Ir, getObjectPosition: rn, findObject: Qr, exists: Nn, saveSynonym: bm, saveSynonyms: Mi, getSynonym: fm, searchSynonyms: Rc, browseSynonyms: Fi, deleteSynonym: at, clearSynonyms: Ri, replaceAllObjects: hm, replaceAllSynonyms: gm, searchRules: $c, getRule: dm, deleteRule: Be, saveRule: ym, saveRules: Di, replaceAllRules: vm, browseRules: Pi, clearRules: $i } });
|
|
20041
20041
|
};
|
|
@@ -20274,7 +20274,7 @@ function Ip(e = void 0) {
|
|
|
20274
20274
|
let u = l.facetSubPropPath ? l.facetSubPropPath : o;
|
|
20275
20275
|
l.AND ? i += `AND "${u}":"${l.label}"` : s += `"${u}":"${l.label}" OR `;
|
|
20276
20276
|
}), !(s == "" && i == "") && (s = `(${s.substring(0, s.lastIndexOf(" OR "))})`, n += `${s + i} AND `, n = n.split("()AND ").join(""));
|
|
20277
|
-
}),
|
|
20277
|
+
}), n.substring(0, n.lastIndexOf(" AND "));
|
|
20278
20278
|
}
|
|
20279
20279
|
function _9(e) {
|
|
20280
20280
|
return e.filter((t) => t.label !== "Show all");
|
|
@@ -20357,7 +20357,7 @@ const Us = function(e) {
|
|
|
20357
20357
|
populateCascader: function() {
|
|
20358
20358
|
return new Promise((e) => {
|
|
20359
20359
|
this.algoliaClient.getAlgoliaFacets(Tc).then((t) => {
|
|
20360
|
-
this.facets = t, this.options = t, this.options.forEach((n, r) => {
|
|
20360
|
+
this.facets = t, xt.emit("available-facets", t), this.options = t, this.options.forEach((n, r) => {
|
|
20361
20361
|
this.options[r].total = this.countTotalFacet(n), this.options[r].label = yl(n.label), this.options[r].value = this.createCascaderItemValue(
|
|
20362
20362
|
n.key,
|
|
20363
20363
|
void 0
|
|
@@ -20655,7 +20655,7 @@ const Us = function(e) {
|
|
|
20655
20655
|
this.cascaderIsReady = !0, this.checkShowAllBoxes(), this.setCascader(this.entry.filterFacets), this.cssMods(), this.$emit("cascaderReady");
|
|
20656
20656
|
});
|
|
20657
20657
|
}
|
|
20658
|
-
}, k9 = (e) => (Io("data-v-
|
|
20658
|
+
}, k9 = (e) => (Io("data-v-307e97be"), e = e(), Po(), e), E9 = { class: "filters" }, O9 = {
|
|
20659
20659
|
key: 0,
|
|
20660
20660
|
class: "cascader-tag"
|
|
20661
20661
|
}, T9 = { class: "el-tags-container" }, A9 = { class: "el-tags-container" }, I9 = { class: "search-filters transition-box" }, P9 = {
|
|
@@ -20794,7 +20794,7 @@ function N9(e, t, n, r, o, a) {
|
|
|
20794
20794
|
])
|
|
20795
20795
|
]);
|
|
20796
20796
|
}
|
|
20797
|
-
const sm = /* @__PURE__ */ Kn(C9, [["render", N9], ["__scopeId", "data-v-
|
|
20797
|
+
const sm = /* @__PURE__ */ Kn(C9, [["render", N9], ["__scopeId", "data-v-307e97be"]]);
|
|
20798
20798
|
var L9 = async function(e) {
|
|
20799
20799
|
if (!e.ok) {
|
|
20800
20800
|
let t = await e.json();
|
|
@@ -20900,7 +20900,7 @@ const D9 = {
|
|
|
20900
20900
|
},
|
|
20901
20901
|
searchAlgolia(e, t = "") {
|
|
20902
20902
|
this.loadingCards = !0, this.algoliaClient.anatomyInSearch(Ip(e), t).then((n) => {
|
|
20903
|
-
|
|
20903
|
+
xt.emit("anatomy-in-datasets", n.forFlatmap), xt.emit("number-of-datasets-for-anatomies", n.forScaffold);
|
|
20904
20904
|
}), this.algoliaClient.search(Ip(e), t, this.numberPerPage, this.page).then((n) => {
|
|
20905
20905
|
this.numberOfHits = n.total, this.discoverIds = n.discoverIds, this._dois = n.dois, this.results = n.items, this.loadingCards = !1, this.scrollToTop(), this.$emit("search-changed", {
|
|
20906
20906
|
value: this.searchInput,
|
|
@@ -21097,7 +21097,7 @@ function V9(e, t, n, r, o, a) {
|
|
|
21097
21097
|
_: 1
|
|
21098
21098
|
}, 8, ["body-style"]);
|
|
21099
21099
|
}
|
|
21100
|
-
const im = /* @__PURE__ */ Kn(D9, [["render", V9], ["__scopeId", "data-v-
|
|
21100
|
+
const im = /* @__PURE__ */ Kn(D9, [["render", V9], ["__scopeId", "data-v-aeb7c099"]]), H9 = {
|
|
21101
21101
|
name: "ExternalResourceCard",
|
|
21102
21102
|
components: {
|
|
21103
21103
|
Button: Fn
|
|
@@ -21120,7 +21120,7 @@ const im = /* @__PURE__ */ Kn(D9, [["render", V9], ["__scopeId", "data-v-7869292
|
|
|
21120
21120
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
21121
21121
|
},
|
|
21122
21122
|
openUrl: function(e) {
|
|
21123
|
-
|
|
21123
|
+
xt.emit("open-pubmed-url", e), window.open(e, "_blank");
|
|
21124
21124
|
}
|
|
21125
21125
|
}
|
|
21126
21126
|
}, U9 = { class: "resource-container" };
|
|
@@ -21171,6 +21171,10 @@ const lm = /* @__PURE__ */ Kn(H9, [["render", q9], ["__scopeId", "data-v-e726c31
|
|
|
21171
21171
|
componentsWithDatasets: [],
|
|
21172
21172
|
resource: void 0
|
|
21173
21173
|
})
|
|
21174
|
+
},
|
|
21175
|
+
availableAnatomyFacets: {
|
|
21176
|
+
type: Array,
|
|
21177
|
+
default: () => []
|
|
21174
21178
|
}
|
|
21175
21179
|
},
|
|
21176
21180
|
// inject: ['getFeaturesAlert'],
|
|
@@ -21180,6 +21184,7 @@ const lm = /* @__PURE__ */ Kn(H9, [["render", q9], ["__scopeId", "data-v-e726c31
|
|
|
21180
21184
|
activeSpecies: void 0,
|
|
21181
21185
|
pubmedSearchUrl: "",
|
|
21182
21186
|
loading: !1,
|
|
21187
|
+
facetList: [],
|
|
21183
21188
|
showToolip: !1,
|
|
21184
21189
|
showDetails: !1,
|
|
21185
21190
|
originDescriptions: {
|
|
@@ -21190,6 +21195,15 @@ const lm = /* @__PURE__ */ Kn(H9, [["render", q9], ["__scopeId", "data-v-e726c31
|
|
|
21190
21195
|
uberons: [{ id: void 0, name: void 0 }]
|
|
21191
21196
|
};
|
|
21192
21197
|
},
|
|
21198
|
+
watch: {
|
|
21199
|
+
availableAnatomyFacets: {
|
|
21200
|
+
handler: function(e) {
|
|
21201
|
+
this.convertFacetsToList(e);
|
|
21202
|
+
},
|
|
21203
|
+
immediate: !0,
|
|
21204
|
+
deep: !0
|
|
21205
|
+
}
|
|
21206
|
+
},
|
|
21193
21207
|
computed: {
|
|
21194
21208
|
resources: function() {
|
|
21195
21209
|
let e = [];
|
|
@@ -21218,28 +21232,41 @@ const lm = /* @__PURE__ */ Kn(H9, [["render", q9], ["__scopeId", "data-v-e726c31
|
|
|
21218
21232
|
window.open(e, "_blank");
|
|
21219
21233
|
},
|
|
21220
21234
|
openAll: function() {
|
|
21221
|
-
|
|
21235
|
+
xt.emit("onConnectivityActionClick", {
|
|
21222
21236
|
type: "Facets",
|
|
21223
|
-
labels: this.entry.componentsWithDatasets.map((e) => e.name)
|
|
21237
|
+
labels: this.entry.componentsWithDatasets.map((e) => e.name.toLowerCase())
|
|
21224
21238
|
});
|
|
21225
21239
|
},
|
|
21226
21240
|
openAxons: function() {
|
|
21227
|
-
|
|
21241
|
+
xt.emit("onConnectivityActionClick", {
|
|
21228
21242
|
type: "Facets",
|
|
21229
|
-
labels: this.entry.destinationsWithDatasets.map((e) => e.name)
|
|
21243
|
+
labels: this.entry.destinationsWithDatasets.map((e) => e.name.toLowerCase())
|
|
21244
|
+
});
|
|
21245
|
+
},
|
|
21246
|
+
// shouldShowExploreButton: Checks if the feature is in the list of available anatomy facets
|
|
21247
|
+
shouldShowExploreButton: function(e) {
|
|
21248
|
+
for (let t = 0; t < e.length; t++)
|
|
21249
|
+
if (this.facetList.includes(e[t].name.toLowerCase()))
|
|
21250
|
+
return !0;
|
|
21251
|
+
return !1;
|
|
21252
|
+
},
|
|
21253
|
+
// convertFacetsToList: Converts the available anatomy facets to a list for easy searching
|
|
21254
|
+
convertFacetsToList: function(e) {
|
|
21255
|
+
e.forEach((t) => {
|
|
21256
|
+
t.children ? this.convertFacetsToList(t.children) : this.facetList.push(t.label.toLowerCase());
|
|
21230
21257
|
});
|
|
21231
21258
|
},
|
|
21232
21259
|
openDendrites: function() {
|
|
21233
|
-
|
|
21260
|
+
xt.emit("onConnectivityActionClick", {
|
|
21234
21261
|
type: "Facets",
|
|
21235
|
-
labels: this.entry.originsWithDatasets.map((e) => e.name)
|
|
21262
|
+
labels: this.entry.originsWithDatasets.map((e) => e.name.toLowerCase())
|
|
21236
21263
|
});
|
|
21237
21264
|
},
|
|
21238
21265
|
pubmedSearchUrlUpdate: function(e) {
|
|
21239
21266
|
this.pubmedSearchUrl = e;
|
|
21240
21267
|
}
|
|
21241
21268
|
}
|
|
21242
|
-
}, jo = (e) => (Io("data-v-
|
|
21269
|
+
}, jo = (e) => (Io("data-v-2f48689c"), e = e(), Po(), e), J9 = {
|
|
21243
21270
|
key: 0,
|
|
21244
21271
|
class: "main"
|
|
21245
21272
|
}, Z9 = { class: "connectivity-info-title" }, Y9 = {
|
|
@@ -21362,7 +21389,7 @@ function _$(e, t, n, r, o, a) {
|
|
|
21362
21389
|
}, 8, ["onClick"]), [
|
|
21363
21390
|
[
|
|
21364
21391
|
yt,
|
|
21365
|
-
n.entry.originsWithDatasets && n.entry.originsWithDatasets.length > 0
|
|
21392
|
+
n.entry.originsWithDatasets && n.entry.originsWithDatasets.length > 0 && a.shouldShowExploreButton(n.entry.originsWithDatasets)
|
|
21366
21393
|
]
|
|
21367
21394
|
])
|
|
21368
21395
|
])) : q("", !0),
|
|
@@ -21419,7 +21446,7 @@ function _$(e, t, n, r, o, a) {
|
|
|
21419
21446
|
}, 8, ["onClick"]), [
|
|
21420
21447
|
[
|
|
21421
21448
|
yt,
|
|
21422
|
-
n.entry.destinationsWithDatasets && n.entry.destinationsWithDatasets.length > 0
|
|
21449
|
+
n.entry.destinationsWithDatasets && n.entry.destinationsWithDatasets.length > 0 && a.shouldShowExploreButton(n.entry.destinationsWithDatasets)
|
|
21423
21450
|
]
|
|
21424
21451
|
])
|
|
21425
21452
|
])) : q("", !0),
|
|
@@ -21434,7 +21461,7 @@ function _$(e, t, n, r, o, a) {
|
|
|
21434
21461
|
}, 8, ["onClick"]), [
|
|
21435
21462
|
[
|
|
21436
21463
|
yt,
|
|
21437
|
-
n.entry.componentsWithDatasets && n.entry.componentsWithDatasets.length > 0
|
|
21464
|
+
n.entry.componentsWithDatasets && n.entry.componentsWithDatasets.length > 0 && a.shouldShowExploreButton(n.entry.componentsWithDatasets)
|
|
21438
21465
|
]
|
|
21439
21466
|
])
|
|
21440
21467
|
])
|
|
@@ -21442,7 +21469,7 @@ function _$(e, t, n, r, o, a) {
|
|
|
21442
21469
|
[f, e.loading]
|
|
21443
21470
|
]) : q("", !0);
|
|
21444
21471
|
}
|
|
21445
|
-
const um = /* @__PURE__ */ Kn(G9, [["render", _$], ["__scopeId", "data-v-
|
|
21472
|
+
const um = /* @__PURE__ */ Kn(G9, [["render", _$], ["__scopeId", "data-v-2f48689c"]]), C$ = {
|
|
21446
21473
|
name: "Tabs",
|
|
21447
21474
|
props: {
|
|
21448
21475
|
tabTitles: {
|
|
@@ -21455,14 +21482,14 @@ const um = /* @__PURE__ */ Kn(G9, [["render", _$], ["__scopeId", "data-v-c04b8ef
|
|
|
21455
21482
|
}
|
|
21456
21483
|
},
|
|
21457
21484
|
methods: {
|
|
21458
|
-
titleClicked: function(e) {
|
|
21459
|
-
this.$emit("titleClicked", e);
|
|
21485
|
+
titleClicked: function(e, t) {
|
|
21486
|
+
this.$emit("titleClicked", { id: e, type: t });
|
|
21460
21487
|
},
|
|
21461
21488
|
tabClose: function(e) {
|
|
21462
21489
|
this.$emit("tab-close", e);
|
|
21463
21490
|
}
|
|
21464
21491
|
}
|
|
21465
|
-
}, k$ = (e) => (Io("data-v-
|
|
21492
|
+
}, k$ = (e) => (Io("data-v-312bf84d"), e = e(), Po(), e), E$ = { class: "tab-container" }, O$ = ["onClick"], T$ = { class: "title-text" }, A$ = /* @__PURE__ */ k$(() => /* @__PURE__ */ j("span", { class: "visually-hidden" }, "Close", -1));
|
|
21466
21493
|
function I$(e, t, n, r, o, a) {
|
|
21467
21494
|
const s = Fn;
|
|
21468
21495
|
return x(), A("div", E$, [
|
|
@@ -21472,7 +21499,7 @@ function I$(e, t, n, r, o, a) {
|
|
|
21472
21499
|
}, [
|
|
21473
21500
|
j("div", {
|
|
21474
21501
|
class: N(["title-text-table", { highlightText: i.id == n.activeId }]),
|
|
21475
|
-
onClick: (l) => a.titleClicked(i.id)
|
|
21502
|
+
onClick: (l) => a.titleClicked(i.id, i.type)
|
|
21476
21503
|
}, [
|
|
21477
21504
|
j("div", T$, pe(i.title), 1)
|
|
21478
21505
|
], 10, O$),
|
|
@@ -21491,7 +21518,7 @@ function I$(e, t, n, r, o, a) {
|
|
|
21491
21518
|
], 2))), 128))
|
|
21492
21519
|
]);
|
|
21493
21520
|
}
|
|
21494
|
-
const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-
|
|
21521
|
+
const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-312bf84d"]]), P$ = {
|
|
21495
21522
|
components: {
|
|
21496
21523
|
SidebarContent: im,
|
|
21497
21524
|
Tabs: cm,
|
|
@@ -21527,14 +21554,14 @@ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-78c45eb
|
|
|
21527
21554
|
tabs: {
|
|
21528
21555
|
type: Array,
|
|
21529
21556
|
default: () => [
|
|
21530
|
-
{ title: "Search",
|
|
21531
|
-
{ title: "Connectivity",
|
|
21557
|
+
{ id: 1, title: "Search", type: "search" },
|
|
21558
|
+
{ id: 2, title: "Connectivity", type: "connectivity" }
|
|
21532
21559
|
]
|
|
21533
21560
|
},
|
|
21534
21561
|
/**
|
|
21535
21562
|
* The active tab id for default tab.
|
|
21536
21563
|
*/
|
|
21537
|
-
|
|
21564
|
+
activeTabId: {
|
|
21538
21565
|
type: Number,
|
|
21539
21566
|
default: 1
|
|
21540
21567
|
},
|
|
@@ -21589,9 +21616,30 @@ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-78c45eb
|
|
|
21589
21616
|
},
|
|
21590
21617
|
openSearch: function(e, t) {
|
|
21591
21618
|
this.drawerOpen = !0, this.$nextTick(() => {
|
|
21592
|
-
this
|
|
21619
|
+
this.getSearchTabRefById(1).openSearch(e, t);
|
|
21593
21620
|
});
|
|
21594
21621
|
},
|
|
21622
|
+
/**
|
|
21623
|
+
* Get the tab object by tab id and type.
|
|
21624
|
+
* If not found, return the first available tab.
|
|
21625
|
+
*/
|
|
21626
|
+
getTabByIdAndType: function(e, t) {
|
|
21627
|
+
const n = e || this.activeTabId, r = t || "search", o = this.tabs.find((s) => s.id === n && s.type === r), a = this.tabs[0];
|
|
21628
|
+
return o || a;
|
|
21629
|
+
},
|
|
21630
|
+
/**
|
|
21631
|
+
* Get the ref id of the tab by id and type.
|
|
21632
|
+
*/
|
|
21633
|
+
getTabRefId: function(e, t) {
|
|
21634
|
+
let n = "searchTab_";
|
|
21635
|
+
t === "connectivity" && (n = "connectivityTab_");
|
|
21636
|
+
const r = this.getTabByIdAndType(e, t);
|
|
21637
|
+
return n + r.id;
|
|
21638
|
+
},
|
|
21639
|
+
getSearchTabRefById: function(e) {
|
|
21640
|
+
const t = e || 1, n = this.getTabRefId(t, "search");
|
|
21641
|
+
return this.$refs[n][0];
|
|
21642
|
+
},
|
|
21595
21643
|
/**
|
|
21596
21644
|
* @vuese
|
|
21597
21645
|
* The function to add filters to sidebar search.
|
|
@@ -21599,12 +21647,12 @@ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-78c45eb
|
|
|
21599
21647
|
*/
|
|
21600
21648
|
addFilter: function(e) {
|
|
21601
21649
|
this.drawerOpen = !0, e.AND = !0, this.$nextTick(() => {
|
|
21602
|
-
this
|
|
21650
|
+
this.getSearchTabRefById(1).addFilter(e);
|
|
21603
21651
|
});
|
|
21604
21652
|
},
|
|
21605
21653
|
openNeuronSearch: function(e) {
|
|
21606
21654
|
this.drawerOpen = !0, this.$nextTick(() => {
|
|
21607
|
-
this
|
|
21655
|
+
this.getSearchTabRefById(1).openSearch(
|
|
21608
21656
|
"",
|
|
21609
21657
|
void 0,
|
|
21610
21658
|
"scicrunch-query-string/",
|
|
@@ -21613,18 +21661,19 @@ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-78c45eb
|
|
|
21613
21661
|
});
|
|
21614
21662
|
},
|
|
21615
21663
|
getAlgoliaFacets: async function() {
|
|
21616
|
-
return await this
|
|
21664
|
+
return await this.getSearchTabRefById(1).getAlgoliaFacets();
|
|
21617
21665
|
},
|
|
21618
21666
|
setDrawerOpen: function(e = !0) {
|
|
21619
21667
|
this.drawerOpen = e;
|
|
21620
21668
|
},
|
|
21621
21669
|
/**
|
|
21622
21670
|
* @vuese
|
|
21623
|
-
* The function to emit 'tabClicked' event with tab's `id`
|
|
21624
|
-
*
|
|
21671
|
+
* The function to emit 'tabClicked' event with tab's `id` and tab's `type`
|
|
21672
|
+
* when user clicks the sidebar tab.
|
|
21673
|
+
* @arg {id, type}
|
|
21625
21674
|
*/
|
|
21626
|
-
tabClicked: function(e) {
|
|
21627
|
-
this.$emit("tabClicked", e);
|
|
21675
|
+
tabClicked: function({ id: e, type: t }) {
|
|
21676
|
+
this.$emit("tabClicked", { id: e, type: t });
|
|
21628
21677
|
},
|
|
21629
21678
|
tabClose: function(e) {
|
|
21630
21679
|
this.$emit("connectivity-info-close");
|
|
@@ -21634,18 +21683,20 @@ const cm = /* @__PURE__ */ Kn(C$, [["render", I$], ["__scopeId", "data-v-78c45eb
|
|
|
21634
21683
|
this.drawerOpen = this.openAtStart;
|
|
21635
21684
|
},
|
|
21636
21685
|
mounted: function() {
|
|
21637
|
-
|
|
21686
|
+
xt.on("PopoverActionClick", (e) => {
|
|
21638
21687
|
this.$emit("actionClick", e);
|
|
21639
|
-
}),
|
|
21688
|
+
}), xt.on("number-of-datasets-for-anatomies", (e) => {
|
|
21640
21689
|
this.$emit("number-of-datasets-for-anatomies", e);
|
|
21641
|
-
}),
|
|
21690
|
+
}), xt.on("anatomy-in-datasets", (e) => {
|
|
21642
21691
|
this.$emit("anatomy-in-datasets", e);
|
|
21643
|
-
}),
|
|
21692
|
+
}), xt.on("contextUpdate", (e) => {
|
|
21644
21693
|
this.$emit("contextUpdate", e);
|
|
21645
|
-
}),
|
|
21694
|
+
}), xt.on("datalink-clicked", (e) => {
|
|
21646
21695
|
this.$emit("datalink-clicked", e);
|
|
21647
|
-
}),
|
|
21648
|
-
this.tabClicked(1), this.$emit("actionClick", e);
|
|
21696
|
+
}), xt.on("onConnectivityActionClick", (e) => {
|
|
21697
|
+
this.tabClicked({ id: 1, type: "search" }), this.$emit("actionClick", e);
|
|
21698
|
+
}), xt.on("available-facets", (e) => {
|
|
21699
|
+
this.availableAnatomyFacets = e.find((t) => t.label === "Anatomical Structure").children;
|
|
21649
21700
|
});
|
|
21650
21701
|
}
|
|
21651
21702
|
}, F$ = { ref: "container" }, $$ = { class: "box-card" }, R$ = { class: "sidebar-container" };
|
|
@@ -21696,29 +21747,30 @@ function N$(e, t, n, r, o, a) {
|
|
|
21696
21747
|
n.tabs.length > 1 && n.connectivityInfo ? (x(), Q(u, {
|
|
21697
21748
|
key: 0,
|
|
21698
21749
|
tabTitles: n.tabs,
|
|
21699
|
-
activeId: n.
|
|
21750
|
+
activeId: n.activeTabId,
|
|
21700
21751
|
onTitleClicked: a.tabClicked,
|
|
21701
21752
|
onTabClose: a.tabClose
|
|
21702
21753
|
}, null, 8, ["tabTitles", "activeId", "onTitleClicked", "onTabClose"])) : q("", !0),
|
|
21703
21754
|
(x(!0), A(Te, null, it(n.tabs, (v) => (x(), A(Te, { key: "tab.id" }, [
|
|
21704
|
-
v.
|
|
21755
|
+
v.type === "connectivity" ? Oe((x(), Q(c, {
|
|
21705
21756
|
key: 0,
|
|
21706
21757
|
entry: n.connectivityInfo,
|
|
21758
|
+
availableAnatomyFacets: e.availableAnatomyFacets,
|
|
21707
21759
|
ref_for: !0,
|
|
21708
|
-
ref: v.id
|
|
21709
|
-
}, null, 8, ["entry"])), [
|
|
21710
|
-
[yt, v.id === n.
|
|
21760
|
+
ref: "connectivityTab_" + v.id
|
|
21761
|
+
}, null, 8, ["entry", "availableAnatomyFacets"])), [
|
|
21762
|
+
[yt, v.id === n.activeTabId]
|
|
21711
21763
|
]) : Oe((x(), Q(f, {
|
|
21712
21764
|
key: 1,
|
|
21713
21765
|
class: "sidebar-content-container",
|
|
21714
21766
|
contextCardEntry: v.contextCard,
|
|
21715
21767
|
envVars: n.envVars,
|
|
21716
21768
|
ref_for: !0,
|
|
21717
|
-
ref: v.id,
|
|
21769
|
+
ref: "searchTab_" + v.id,
|
|
21718
21770
|
onSearchChanged: (p) => a.searchChanged(v.id, p),
|
|
21719
21771
|
onHoverChanged: t[2] || (t[2] = (p) => a.hoverChanged(p))
|
|
21720
21772
|
}, null, 8, ["contextCardEntry", "envVars", "onSearchChanged"])), [
|
|
21721
|
-
[yt, v.id === n.
|
|
21773
|
+
[yt, v.id === n.activeTabId]
|
|
21722
21774
|
])
|
|
21723
21775
|
], 64))), 128))
|
|
21724
21776
|
])
|
|
@@ -21728,7 +21780,7 @@ function N$(e, t, n, r, o, a) {
|
|
|
21728
21780
|
}, 8, ["modelValue"])
|
|
21729
21781
|
], 512);
|
|
21730
21782
|
}
|
|
21731
|
-
const M$ = /* @__PURE__ */ Kn(P$, [["render", N$], ["__scopeId", "data-v-
|
|
21783
|
+
const M$ = /* @__PURE__ */ Kn(P$, [["render", N$], ["__scopeId", "data-v-3ad9ae64"]]);
|
|
21732
21784
|
export {
|
|
21733
21785
|
M$ as SideBar
|
|
21734
21786
|
};
|