@abi-software/map-side-bar 2.6.4-beta.3 → 2.6.4-beta.5
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
CHANGED
|
@@ -23144,49 +23144,54 @@ const Ry = /* @__PURE__ */ tr(JL, [["render", XL], ["__scopeId", "data-v-de83d64
|
|
|
23144
23144
|
const t = e.map((n) => n.label).join(", ");
|
|
23145
23145
|
this.toggleConnectivityTooltip(t, { show: !0 });
|
|
23146
23146
|
},
|
|
23147
|
+
onShowReferenceConnectivities: function(e) {
|
|
23148
|
+
this.$emit("show-reference-connectivities", e);
|
|
23149
|
+
},
|
|
23147
23150
|
onReferencesLoaded: function(e) {
|
|
23148
23151
|
this.updatedCopyContent = this.getUpdateCopyContent(e);
|
|
23149
23152
|
},
|
|
23150
23153
|
getUpdateCopyContent: function(e) {
|
|
23151
|
-
var
|
|
23154
|
+
var s, i, l, c;
|
|
23152
23155
|
if (!this.entry)
|
|
23153
23156
|
return "";
|
|
23154
23157
|
const t = [];
|
|
23155
|
-
|
|
23156
|
-
|
|
23157
|
-
|
|
23158
|
-
|
|
23159
|
-
|
|
23160
|
-
|
|
23161
|
-
|
|
23162
|
-
|
|
23163
|
-
|
|
23164
|
-
|
|
23158
|
+
let n = this.entry.title, r = this.entry.featureId;
|
|
23159
|
+
const o = [];
|
|
23160
|
+
n && o.push(`<strong>${da(this.entry.title)}</strong>`), r != null && r.length && (typeof r == "object" ? o.push(`(${r[0]})`) : o.push(`(${r})`)), t.push(`<div>${o.join(" ")}</div>`), (s = this.entry.provenanceTaxonomyLabel) != null && s.length && t.push(`<div>${this.provSpeciesDescription}</div>`), this.entry.paths && t.push(`<div>${this.entry.paths}</div>`);
|
|
23161
|
+
function a(u, f, m = []) {
|
|
23162
|
+
let v = `<div><strong>${u}</strong></div>`;
|
|
23163
|
+
const d = [];
|
|
23164
|
+
f.forEach((g) => {
|
|
23165
|
+
let y = [];
|
|
23166
|
+
g.split(",").forEach((k) => {
|
|
23167
|
+
const A = m.find((x) => x.name === k.trim());
|
|
23168
|
+
A ? y.push(`${da(k)} (${A.id})`) : y.push(`${da(k)}`);
|
|
23169
|
+
}), d.push(y.join(","));
|
|
23165
23170
|
});
|
|
23166
|
-
const
|
|
23171
|
+
const h = d.map((g) => `<li>${g}</li>`).join(`
|
|
23167
23172
|
`);
|
|
23168
|
-
return
|
|
23169
|
-
`,
|
|
23173
|
+
return v += `
|
|
23174
|
+
`, v += `<ul>${h}</ul>`, v;
|
|
23170
23175
|
}
|
|
23171
|
-
if ((
|
|
23172
|
-
const
|
|
23173
|
-
t.push(
|
|
23176
|
+
if ((i = this.entry.origins) != null && i.length) {
|
|
23177
|
+
const u = "Origin", f = this.entry.origins, m = this.entry.originsWithDatasets, v = a(u, f, m);
|
|
23178
|
+
t.push(v);
|
|
23174
23179
|
}
|
|
23175
|
-
if ((
|
|
23176
|
-
const
|
|
23177
|
-
t.push(
|
|
23180
|
+
if ((l = this.entry.components) != null && l.length) {
|
|
23181
|
+
const u = "Components", f = this.entry.components, m = this.entry.componentsWithDatasets, v = a(u, f, m);
|
|
23182
|
+
t.push(v);
|
|
23178
23183
|
}
|
|
23179
|
-
if ((
|
|
23180
|
-
const
|
|
23181
|
-
t.push(
|
|
23184
|
+
if ((c = this.entry.destinations) != null && c.length) {
|
|
23185
|
+
const u = "Destination", f = this.entry.destinations, m = this.entry.destinationsWithDatasets, v = a(u, f, m);
|
|
23186
|
+
t.push(v);
|
|
23182
23187
|
}
|
|
23183
23188
|
if (e) {
|
|
23184
|
-
let
|
|
23185
|
-
|
|
23189
|
+
let u = "<div><strong>References</strong></div>";
|
|
23190
|
+
u += `
|
|
23186
23191
|
`;
|
|
23187
|
-
const
|
|
23192
|
+
const f = e.list.map((m) => `<li>${m}</li>`).join(`
|
|
23188
23193
|
`);
|
|
23189
|
-
|
|
23194
|
+
u += `<ul>${f}</ul>`, t.push(u);
|
|
23190
23195
|
}
|
|
23191
23196
|
return t.join(`
|
|
23192
23197
|
|
|
@@ -23241,7 +23246,7 @@ const Ry = /* @__PURE__ */ tr(JL, [["render", XL], ["__scopeId", "data-v-de83d64
|
|
|
23241
23246
|
this.pushConnectivityError(e);
|
|
23242
23247
|
});
|
|
23243
23248
|
}
|
|
23244
|
-
}, go = (e) => (co("data-v-
|
|
23249
|
+
}, go = (e) => (co("data-v-733e7709"), e = e(), uo(), e), nN = {
|
|
23245
23250
|
key: 0,
|
|
23246
23251
|
class: "main"
|
|
23247
23252
|
}, rN = { class: "connectivity-info-title" }, oN = { class: "title-content" }, aN = {
|
|
@@ -23511,15 +23516,15 @@ function BN(e, t, n, r, o, a) {
|
|
|
23511
23516
|
a.resources.length ? (_(), I("div", NN, [
|
|
23512
23517
|
Z(d, {
|
|
23513
23518
|
resources: a.resources,
|
|
23514
|
-
|
|
23515
|
-
|
|
23516
|
-
}, null, 8, ["resources", "
|
|
23519
|
+
onReferencesLoaded: a.onReferencesLoaded,
|
|
23520
|
+
onShowReferenceConnectivities: a.onShowReferenceConnectivities
|
|
23521
|
+
}, null, 8, ["resources", "onReferencesLoaded", "onShowReferenceConnectivities"])
|
|
23517
23522
|
])) : W("", !0)
|
|
23518
23523
|
])), [
|
|
23519
23524
|
[h, e.loading]
|
|
23520
23525
|
]) : W("", !0);
|
|
23521
23526
|
}
|
|
23522
|
-
const Ly = /* @__PURE__ */ tr(tN, [["render", BN], ["__scopeId", "data-v-
|
|
23527
|
+
const Ly = /* @__PURE__ */ tr(tN, [["render", BN], ["__scopeId", "data-v-733e7709"]]), DN = {
|
|
23523
23528
|
name: "Tabs",
|
|
23524
23529
|
props: {
|
|
23525
23530
|
tabTitles: {
|
|
@@ -23679,6 +23684,13 @@ const Ny = /* @__PURE__ */ tr(DN, [["render", HN], ["__scopeId", "data-v-0855c70
|
|
|
23679
23684
|
showConnectivity: function(e) {
|
|
23680
23685
|
this.$emit("show-connectivity", e);
|
|
23681
23686
|
},
|
|
23687
|
+
/**
|
|
23688
|
+
* This event is emitted when the show related connectivities button in reference is clicked.
|
|
23689
|
+
* @param refSource
|
|
23690
|
+
*/
|
|
23691
|
+
onShowReferenceConnectivities: function(e) {
|
|
23692
|
+
this.$emit("show-reference-connectivities", e);
|
|
23693
|
+
},
|
|
23682
23694
|
/**
|
|
23683
23695
|
* This function is triggered after a connectivity component is clicked.
|
|
23684
23696
|
* @arg data
|
|
@@ -23871,8 +23883,9 @@ function JN(e, t, n, r, o, a) {
|
|
|
23871
23883
|
ref: "connectivityTab_" + d.id,
|
|
23872
23884
|
useDOIFormatter: n.useDOIFormatter,
|
|
23873
23885
|
onShowConnectivity: a.showConnectivity,
|
|
23886
|
+
onShowReferenceConnectivities: a.onShowReferenceConnectivities,
|
|
23874
23887
|
onConnectivityComponentClick: a.onConnectivityComponentClick
|
|
23875
|
-
}, null, 8, ["entry", "availableAnatomyFacets", "envVars", "useDOIFormatter", "onShowConnectivity", "onConnectivityComponentClick"])) : W("", !0)
|
|
23888
|
+
}, null, 8, ["entry", "availableAnatomyFacets", "envVars", "useDOIFormatter", "onShowConnectivity", "onShowReferenceConnectivities", "onConnectivityComponentClick"])) : W("", !0)
|
|
23876
23889
|
], 64)) : d.type === "annotation" ? Ae((_(), Y(f, {
|
|
23877
23890
|
key: 1,
|
|
23878
23891
|
ref_for: !0,
|
|
@@ -23905,7 +23918,7 @@ function JN(e, t, n, r, o, a) {
|
|
|
23905
23918
|
}, 8, ["modelValue"])
|
|
23906
23919
|
], 512);
|
|
23907
23920
|
}
|
|
23908
|
-
const XN = /* @__PURE__ */ tr(qN, [["render", JN], ["__scopeId", "data-v-
|
|
23921
|
+
const XN = /* @__PURE__ */ tr(qN, [["render", JN], ["__scopeId", "data-v-b8bc14ca"]]);
|
|
23909
23922
|
export {
|
|
23910
23923
|
XN as SideBar
|
|
23911
23924
|
};
|