@abi-software/mapintegratedvuer 1.9.0-beta.3 → 1.9.0-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/{ContentMixin-EguyU2f9.js → ContentMixin-DhjA4yzK.js} +30 -30
- package/dist/{Flatmap-B2rxO-O0.js → Flatmap-CuufZrlg.js} +10 -10
- package/dist/{Iframe-BPdpAMF2.js → Iframe-Bapq0lQY.js} +2 -2
- package/dist/{MultiFlatmap-DeEDa4_P.js → MultiFlatmap-DXrn4QYP.js} +6 -6
- package/dist/{Plot-C6R5QybS.js → Plot-aSDizBaA.js} +2 -2
- package/dist/{Scaffold-DVfxzKQM.js → Scaffold-Dwk6fYgD.js} +10858 -11419
- package/dist/{Simulation-DxkR7k2K.js → Simulation-D8tAkp8c.js} +2 -2
- package/dist/{index-BxnKKH6I.js → index-DyEtZe9i.js} +18879 -18722
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +459 -472
- package/dist/{style-DTctIWuz.js → style-DouK-b65.js} +19954 -20663
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/src/components/DialogToolbarContent.vue +24 -35
- package/src/components/SplitFlow.vue +2 -2
- package/src/components/viewers/Flatmap.vue +1 -1
- package/src/components/viewers/MultiFlatmap.vue +1 -1
- package/src/components.d.ts +1 -0
- package/src/mixins/ContentMixin.js +12 -10
@@ -1,14 +1,14 @@
|
|
1
1
|
import { markRaw as b } from "vue";
|
2
|
-
import { u as I,
|
3
|
-
import { mapStores as
|
2
|
+
import { u as I, o as M, a as h, T as F, p as y, q as C } from "./index-DyEtZe9i.js";
|
3
|
+
import { mapStores as A } from "pinia";
|
4
4
|
const d = function(e) {
|
5
5
|
return e ? [...new Set(e.map((t) => JSON.stringify(t)))].map(
|
6
6
|
(t) => JSON.parse(t)
|
7
7
|
) : [];
|
8
|
-
},
|
8
|
+
}, m = [], w = async function(e, t) {
|
9
9
|
const n = t.filter(
|
10
|
-
(o) =>
|
11
|
-
), i =
|
10
|
+
(o) => m.some((a) => a.taxon === o)
|
11
|
+
), i = m.filter(
|
12
12
|
(o) => n.includes(o.taxon)
|
13
13
|
), s = t.filter(
|
14
14
|
(o) => !n.includes(o)
|
@@ -20,11 +20,11 @@ const d = function(e) {
|
|
20
20
|
let { entity: r, label: l } = a;
|
21
21
|
l === "Mammalia" && (l = "Mammalia not otherwise specified");
|
22
22
|
const c = { taxon: r, label: l };
|
23
|
-
i.push(c),
|
23
|
+
i.push(c), m.push(c);
|
24
24
|
}), i;
|
25
25
|
} else
|
26
26
|
return i;
|
27
|
-
},
|
27
|
+
}, g = function(e, t) {
|
28
28
|
if (!e || !t) return !1;
|
29
29
|
let n = JSON.stringify(e), i = JSON.stringify(t);
|
30
30
|
return n.indexOf(i) !== -1;
|
@@ -42,7 +42,7 @@ let $ = function() {
|
|
42
42
|
if (t.provenanceTaxonomy) {
|
43
43
|
i = [];
|
44
44
|
try {
|
45
|
-
const o = await
|
45
|
+
const o = await w(e, t.provenanceTaxonomy);
|
46
46
|
o.length && o.forEach((a) => {
|
47
47
|
const { label: r } = a;
|
48
48
|
i.push(r);
|
@@ -85,7 +85,7 @@ let $ = function() {
|
|
85
85
|
return new Promise(async (n) => {
|
86
86
|
let i = {};
|
87
87
|
this.uberons = [];
|
88
|
-
const s = await
|
88
|
+
const s = await w(e, t);
|
89
89
|
s.length && (s.forEach((o) => {
|
90
90
|
const { taxon: a, label: r } = o;
|
91
91
|
i[a] = r, this.uberons.push({
|
@@ -123,7 +123,7 @@ let $ = function() {
|
|
123
123
|
}, this.findComponents = function(e, t, n, i) {
|
124
124
|
let s = e.connectivity.flat(), o = d(s), a = [], r = !1;
|
125
125
|
return o.forEach((l) => {
|
126
|
-
r = !1,
|
126
|
+
r = !1, g(t, l) && (r = !0), i && g(i, l) && (r = !0), g(n, l) && (r = !0), r || a.push(l);
|
127
127
|
}), a;
|
128
128
|
}, this.retrieveFlatmapKnowledgeForEvent = async function(e, t) {
|
129
129
|
this.controller && this.controller.abort(), this.controller = new AbortController(), this.controller.signal;
|
@@ -269,7 +269,7 @@ let $ = function() {
|
|
269
269
|
});
|
270
270
|
};
|
271
271
|
};
|
272
|
-
function
|
272
|
+
function S(e) {
|
273
273
|
var n;
|
274
274
|
let t = "";
|
275
275
|
if ((n = e.provenance) != null && n.connectivity) {
|
@@ -279,10 +279,10 @@ function v(e) {
|
|
279
279
|
return t;
|
280
280
|
}
|
281
281
|
async function H(e, t) {
|
282
|
-
const n =
|
282
|
+
const n = S(e), i = `select knowledge from knowledge
|
283
283
|
where source="${n}"
|
284
284
|
order by source desc`;
|
285
|
-
|
285
|
+
P();
|
286
286
|
const s = sessionStorage.getItem("flatmap-knowledge"), o = sessionStorage.getItem("flatmap-knowledge-source");
|
287
287
|
if (!s || o !== n) {
|
288
288
|
const l = (await t.flatmapQuery(i)).values.map((c) => c[0]).map((c) => JSON.parse(c));
|
@@ -303,14 +303,14 @@ function T() {
|
|
303
303
|
sessionStorage.removeItem(t);
|
304
304
|
});
|
305
305
|
}
|
306
|
-
function
|
306
|
+
function P() {
|
307
307
|
const e = sessionStorage.getItem("flatmap-knowledge-expiry");
|
308
308
|
(/* @__PURE__ */ new Date()).getTime() > e && T();
|
309
309
|
}
|
310
|
-
function
|
310
|
+
function E(e) {
|
311
311
|
return e[0].toUpperCase() + e.substring(1);
|
312
312
|
}
|
313
|
-
const
|
313
|
+
const x = {
|
314
314
|
emits: ["flatmap-provenance-ready", "resource-selected", "species-changed"],
|
315
315
|
props: {
|
316
316
|
/**
|
@@ -328,7 +328,7 @@ const k = {
|
|
328
328
|
}
|
329
329
|
},
|
330
330
|
computed: {
|
331
|
-
...
|
331
|
+
...A(I, M),
|
332
332
|
idNamePair() {
|
333
333
|
return this.splitFlowStore.idNamePair;
|
334
334
|
},
|
@@ -419,8 +419,8 @@ const k = {
|
|
419
419
|
term: "Anatomical structure"
|
420
420
|
};
|
421
421
|
let f = /* @__PURE__ */ new Set();
|
422
|
-
n.feature["marker-terms"].forEach((
|
423
|
-
f.add(
|
422
|
+
n.feature["marker-terms"].forEach((v) => {
|
423
|
+
f.add(v.label);
|
424
424
|
}), f.add(u), f.size > 0 && (i = {
|
425
425
|
type: "Facets",
|
426
426
|
labels: [...f]
|
@@ -431,7 +431,7 @@ const k = {
|
|
431
431
|
else n.eventType == "mouseenter" && (o.eventType = "highlighted", s = !0);
|
432
432
|
else e == "Scaffold" && (n && ((((r = n.data) == null ? void 0 : r.id) === void 0 || ((l = n.data) == null ? void 0 : l.id) === "") && (n.data.id = (c = n.data) == null ? void 0 : c.group), o.internalName = n.data.id, n.data.lastActionOnMarker === !0 && (i = {
|
433
433
|
type: "Facet",
|
434
|
-
facet:
|
434
|
+
facet: E(n.data.id),
|
435
435
|
facetPropPath: "anatomy.organ.category.name",
|
436
436
|
term: "Anatomical structure"
|
437
437
|
})), o.eventType = "selected", s = !0);
|
@@ -460,10 +460,10 @@ const k = {
|
|
460
460
|
if (e.resource && e.resource.resource && (n = e.resource.resource[0]), this.entry.type === "Scaffold") {
|
461
461
|
if (this.$refs.scaffold.findObjectsWithGroupName(t).length === 0) {
|
462
462
|
if (e.resource && e.resource.feature) {
|
463
|
-
const o =
|
463
|
+
const o = y(e.resource.feature.models);
|
464
464
|
if (o.length > 0) return o;
|
465
465
|
}
|
466
|
-
let s =
|
466
|
+
let s = C(t);
|
467
467
|
if (s)
|
468
468
|
return s;
|
469
469
|
if (n && e.eventType === "selected")
|
@@ -477,7 +477,7 @@ const k = {
|
|
477
477
|
if (t === "Bladder")
|
478
478
|
t = "Urinary Bladder";
|
479
479
|
else {
|
480
|
-
const i =
|
480
|
+
const i = y(t);
|
481
481
|
i.length > 0 && (t = i[0]);
|
482
482
|
}
|
483
483
|
return { id: n, name: t };
|
@@ -634,17 +634,17 @@ const k = {
|
|
634
634
|
onConnectivityInfoOpen: function(e) {
|
635
635
|
h.emit("connectivity-info-open", e);
|
636
636
|
},
|
637
|
-
|
638
|
-
h.emit("connectivity-
|
637
|
+
onConnectivityError: function(e) {
|
638
|
+
h.emit("connectivity-error", e);
|
639
639
|
},
|
640
640
|
loadConnectivityKnowledge: async function(e) {
|
641
|
-
const t =
|
641
|
+
const t = S(e), n = b(new $());
|
642
642
|
n.initialise(this.flatmapAPI);
|
643
643
|
const i = await H(e, n), s = e.uuid, o = await n.queryMapPaths(s), a = o ? o.paths : {};
|
644
644
|
this.connectivityKnowledge[s] = i.filter((r) => {
|
645
645
|
var l;
|
646
|
-
return
|
647
|
-
}), h.emit("connectivity-knowledge", {
|
646
|
+
return r.source === t && ((l = r.connectivity) == null ? void 0 : l.length) && r.id in a;
|
647
|
+
}).sort((r, l) => r.label.localeCompare(l.label)), h.emit("connectivity-knowledge", { data: this.connectivityKnowledge[s] });
|
648
648
|
},
|
649
649
|
getSearchedId: function(e, t) {
|
650
650
|
let n = [];
|
@@ -671,7 +671,7 @@ const k = {
|
|
671
671
|
let c = await e.retrieveConnectedPaths(l, o);
|
672
672
|
c = [...l, ...c.filter((f) => !l.includes(f))];
|
673
673
|
let u = this.connectivityKnowledge[n].filter((f) => c.includes(f.id));
|
674
|
-
|
674
|
+
i.data = u;
|
675
675
|
}
|
676
676
|
h.emit("connectivity-knowledge", i);
|
677
677
|
}
|
@@ -711,5 +711,5 @@ const k = {
|
|
711
711
|
}
|
712
712
|
};
|
713
713
|
export {
|
714
|
-
|
714
|
+
x as C
|
715
715
|
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as c,
|
2
|
-
import { C as g } from "./ContentMixin-
|
3
|
-
import { D as M,
|
4
|
-
import { resolveComponent as
|
1
|
+
import { _ as c, E as h, t as u, T as l, a as r } from "./index-DyEtZe9i.js";
|
2
|
+
import { C as g } from "./ContentMixin-DhjA4yzK.js";
|
3
|
+
import { D as M, N as I } from "./style-DouK-b65.js";
|
4
|
+
import { resolveComponent as s, openBlock as p, createElementBlock as y, createVNode as v, createBlock as S, createCommentVNode as C } from "vue";
|
5
5
|
const F = {
|
6
6
|
name: "Flatmap",
|
7
7
|
mixins: [g, M],
|
@@ -116,8 +116,8 @@ const F = {
|
|
116
116
|
}
|
117
117
|
}, w = { class: "viewer-container" };
|
118
118
|
function b(e, a, n, t, i, o) {
|
119
|
-
const m =
|
120
|
-
return
|
119
|
+
const m = s("FlatmapVuer"), f = s("HelpModeDialog");
|
120
|
+
return p(), y("div", w, [
|
121
121
|
v(m, {
|
122
122
|
state: e.entry.state,
|
123
123
|
entry: e.entry.resource,
|
@@ -138,7 +138,7 @@ function b(e, a, n, t, i, o) {
|
|
138
138
|
onAnnotationClose: e.onAnnotationClose,
|
139
139
|
annotationSidebar: e.annotationSidebar,
|
140
140
|
onConnectivityInfoOpen: e.onConnectivityInfoOpen,
|
141
|
-
|
141
|
+
onConnectivityError: e.onConnectivityError,
|
142
142
|
connectivityInfoSidebar: e.connectivityInfoSidebar,
|
143
143
|
pathControls: !0,
|
144
144
|
ref: "flatmap",
|
@@ -151,8 +151,8 @@ function b(e, a, n, t, i, o) {
|
|
151
151
|
onOpenMap: e.openMap,
|
152
152
|
onPathwaySelectionChanged: o.onPathwaySelectionChanged,
|
153
153
|
onMapmanagerLoaded: e.onMapmanagerLoaded
|
154
|
-
}, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "
|
155
|
-
e.helpMode && e.useHelpModeDialog ? (
|
154
|
+
}, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded"]),
|
155
|
+
e.helpMode && e.useHelpModeDialog ? (p(), S(f, {
|
156
156
|
key: 0,
|
157
157
|
ref: "flatmapHelp",
|
158
158
|
flatmapRef: e.flatmapRef,
|
@@ -162,7 +162,7 @@ function b(e, a, n, t, i, o) {
|
|
162
162
|
}, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : C("", !0)
|
163
163
|
]);
|
164
164
|
}
|
165
|
-
const k = /* @__PURE__ */ c(F, [["render", b], ["__scopeId", "data-v-
|
165
|
+
const k = /* @__PURE__ */ c(F, [["render", b], ["__scopeId", "data-v-b420acb4"]]);
|
166
166
|
export {
|
167
167
|
k as default
|
168
168
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { C as r } from "./ContentMixin-
|
1
|
+
import { C as r } from "./ContentMixin-DhjA4yzK.js";
|
2
2
|
import { openBlock as o, createElementBlock as t, createElementVNode as s } from "vue";
|
3
|
-
import { _ as n } from "./index-
|
3
|
+
import { _ as n } from "./index-DyEtZe9i.js";
|
4
4
|
const a = {
|
5
5
|
name: "Iframe",
|
6
6
|
mixins: [r]
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as u,
|
2
|
-
import { C as v } from "./ContentMixin-
|
3
|
-
import { D as I,
|
1
|
+
import { _ as u, E as h, b as y, g, a as s, t as M, T as p } from "./index-DyEtZe9i.js";
|
2
|
+
import { C as v } from "./ContentMixin-DhjA4yzK.js";
|
3
|
+
import { D as I, F as C } from "./style-DouK-b65.js";
|
4
4
|
import { resolveComponent as f, openBlock as c, createElementBlock as S, createVNode as F, createBlock as w, createCommentVNode as k } from "vue";
|
5
5
|
const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><path d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z" stroke="#000000" stroke-width="2"/></svg>', d = (e) => {
|
6
6
|
const t = [
|
@@ -329,7 +329,7 @@ function L(e, t, a, n, o, i) {
|
|
329
329
|
onAnnotationClose: e.onAnnotationClose,
|
330
330
|
annotationSidebar: e.annotationSidebar,
|
331
331
|
onConnectivityInfoOpen: e.onConnectivityInfoOpen,
|
332
|
-
|
332
|
+
onConnectivityError: e.onConnectivityError,
|
333
333
|
connectivityInfoSidebar: e.connectivityInfoSidebar,
|
334
334
|
ref: "multiflatmap",
|
335
335
|
displayMinimap: !0,
|
@@ -344,7 +344,7 @@ function L(e, t, a, n, o, i) {
|
|
344
344
|
onPathwaySelectionChanged: i.onPathwaySelectionChanged,
|
345
345
|
onOpenPubmedUrl: i.onOpenPubmedUrl,
|
346
346
|
onMapmanagerLoaded: e.onMapmanagerLoaded
|
347
|
-
}, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "mapManager", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "
|
347
|
+
}, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "mapManager", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "connectivityInfoSidebar", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl", "onMapmanagerLoaded"]),
|
348
348
|
e.helpMode && e.useHelpModeDialog ? (c(), w(l, {
|
349
349
|
key: 0,
|
350
350
|
ref: "multiflatmapHelp",
|
@@ -355,7 +355,7 @@ function L(e, t, a, n, o, i) {
|
|
355
355
|
}, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : k("", !0)
|
356
356
|
]);
|
357
357
|
}
|
358
|
-
const T = /* @__PURE__ */ u(b, [["render", L], ["__scopeId", "data-v-
|
358
|
+
const T = /* @__PURE__ */ u(b, [["render", L], ["__scopeId", "data-v-5da34951"]]);
|
359
359
|
export {
|
360
360
|
T as default
|
361
361
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PlotVuer as o } from "@abi-software/plotvuer";
|
2
|
-
import { C as r } from "./ContentMixin-
|
2
|
+
import { C as r } from "./ContentMixin-DhjA4yzK.js";
|
3
3
|
import { resolveComponent as a, openBlock as n, createBlock as s } from "vue";
|
4
|
-
import { _ as m } from "./index-
|
4
|
+
import { _ as m } from "./index-DyEtZe9i.js";
|
5
5
|
const p = {
|
6
6
|
name: "Plot",
|
7
7
|
mixins: [r],
|