@abi-software/mapintegratedvuer 1.12.0 → 1.12.2

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.
@@ -1,11 +1,11 @@
1
1
  import { markRaw as L } from "vue";
2
- import { u as _, c as C, d as O, E as f, T as E, e as y, f as N, h as R, l as x, J as P } from "./index-D9h80UWP.js";
2
+ import { u as C, c as E, d as O, E as f, T as y, e as R, f as N, h as w, l as x, J as P } from "./index-d6lIRou_.js";
3
3
  import { mapStores as B } from "pinia";
4
4
  const M = function(e) {
5
5
  return e ? [...new Set(e.map((r) => JSON.stringify(r)))].map(
6
6
  (r) => JSON.parse(r)
7
7
  ) : [];
8
- }, b = [], w = async function(e, r) {
8
+ }, b = [], T = async function(e, r) {
9
9
  const a = r.filter(
10
10
  (s) => b.some((i) => i.taxon === s)
11
11
  ), n = b.filter(
@@ -32,7 +32,7 @@ const M = function(e) {
32
32
  const a = e.name ?? e, n = r.name ?? r, t = a.toUpperCase(), s = n.toUpperCase();
33
33
  return t < s ? -1 : t > s ? 1 : 0;
34
34
  };
35
- let T = function() {
35
+ let S = function() {
36
36
  this.initialise = function(e) {
37
37
  this.flatmapAPI = e, this.destinations = [], this.origins = [], this.components = [], this.rawURLs = [], this.controller = void 0, this.uberons = [], this.lookUp = [], this.connectivitySource = "map", this.noMapConnectivity = !1;
38
38
  }, this.createTooltipData = async function(e, r) {
@@ -42,7 +42,7 @@ let T = function() {
42
42
  if (r.provenanceTaxonomy) {
43
43
  n = [];
44
44
  try {
45
- const s = await w(e, r.provenanceTaxonomy);
45
+ const s = await T(e, r.provenanceTaxonomy);
46
46
  s.length && s.forEach((i) => {
47
47
  const { label: l } = i;
48
48
  n.push(l);
@@ -87,7 +87,7 @@ let T = function() {
87
87
  return new Promise(async (a) => {
88
88
  let n = {};
89
89
  this.uberons = [];
90
- const t = await w(e, r);
90
+ const t = await T(e, r);
91
91
  t.length && (t.forEach((s) => {
92
92
  const { taxon: i, label: l } = s;
93
93
  n[i] = l, this.uberons.push({
@@ -272,7 +272,7 @@ let T = function() {
272
272
  return s.values;
273
273
  };
274
274
  };
275
- const S = [
275
+ const I = [
276
276
  {
277
277
  id: 0,
278
278
  nerve_id: "ILX:0793723",
@@ -1087,7 +1087,7 @@ const S = [
1087
1087
  }
1088
1088
  ], X = () => {
1089
1089
  const e = {};
1090
- return S.forEach((r) => {
1090
+ return I.forEach((r) => {
1091
1091
  const a = r.nerve_id, n = r.label.toLowerCase(), t = r["subclass labels"];
1092
1092
  if (a && n !== "nerve") {
1093
1093
  if (!t.length)
@@ -1106,7 +1106,7 @@ const S = [
1106
1106
  label: "Nerves",
1107
1107
  children: []
1108
1108
  }, a = [];
1109
- for (const n of S) {
1109
+ for (const n of I) {
1110
1110
  if (n.label === "nerve")
1111
1111
  continue;
1112
1112
  let t = {
@@ -1147,7 +1147,7 @@ const q = {
1147
1147
  },
1148
1148
  inject: ["showGlobalSettings", "showOpenMapButton"],
1149
1149
  computed: {
1150
- ...B(_, C, O),
1150
+ ...B(C, E, O),
1151
1151
  idNamePair() {
1152
1152
  return this.splitFlowStore.idNamePair;
1153
1153
  },
@@ -1190,7 +1190,7 @@ const q = {
1190
1190
  this.settingsStore.updateMapManager(e);
1191
1191
  },
1192
1192
  trackOpenMap: function(e) {
1193
- E.sendEvent({
1193
+ y.sendEvent({
1194
1194
  event: "interaction_event",
1195
1195
  event_name: "portal_maps_open_map",
1196
1196
  category: e,
@@ -1289,7 +1289,7 @@ const q = {
1289
1289
  if (e.resource && e.resource.resource && (a = e.resource.resource[0]), this.entry.type === "Scaffold") {
1290
1290
  if (this.$refs.scaffold.findObjectsWithGroupName(r).length === 0) {
1291
1291
  if (e.resource && e.resource.feature) {
1292
- const s = y(e.resource.feature.models);
1292
+ const s = R(e.resource.feature.models);
1293
1293
  if (s.length > 0) return s;
1294
1294
  }
1295
1295
  let t = N(r);
@@ -1306,7 +1306,7 @@ const q = {
1306
1306
  if (r === "Bladder")
1307
1307
  r = "Urinary Bladder";
1308
1308
  else {
1309
- const n = y(r);
1309
+ const n = R(r);
1310
1310
  n.length > 0 && (r = n[0]);
1311
1311
  }
1312
1312
  return { id: a, name: r };
@@ -1477,7 +1477,7 @@ const q = {
1477
1477
  },
1478
1478
  mockUpFlatmapService: async function() {
1479
1479
  const a = (await (await fetch(this.flatmapAPI)).json()).filter((u) => u.id === "human-flatmap_male").sort((u, h) => h.created.localeCompare(u.created))[0], n = a.uuid, t = a.sckan["knowledge-source"], i = await (await fetch(`${this.flatmapAPI}/flatmap/${n}/pathways`)).json();
1480
- this.flatmapQueries = L(new T()), this.flatmapQueries.initialise(this.flatmapAPI);
1480
+ this.flatmapQueries = L(new S()), this.flatmapQueries.initialise(this.flatmapAPI);
1481
1481
  const l = {
1482
1482
  provenance: {
1483
1483
  uuid: n,
@@ -1497,10 +1497,10 @@ const q = {
1497
1497
  let g;
1498
1498
  for (const F of v)
1499
1499
  if (F[1] !== g) {
1500
- const I = JSON.parse(F[2]);
1500
+ const _ = JSON.parse(F[2]);
1501
1501
  p.push({
1502
1502
  entity: F[1],
1503
- label: I.label || F[1]
1503
+ label: _.label || F[1]
1504
1504
  }), g = F[1];
1505
1505
  }
1506
1506
  return p;
@@ -1518,10 +1518,10 @@ const q = {
1518
1518
  },
1519
1519
  loadConnectivityExplorerConfig: async function(e) {
1520
1520
  var s;
1521
- const r = e.mapImp, a = R(r), n = e.mockup ? r.resource : r.uuid;
1521
+ const r = e.mapImp, a = w(r), n = e.mockup ? r.resource : r.uuid;
1522
1522
  let t = [];
1523
1523
  if (!this.connectivityKnowledge[a]) {
1524
- this.flatmapQueries = L(new T()), this.flatmapQueries.initialise(this.flatmapAPI);
1524
+ this.flatmapQueries = L(new S()), this.flatmapQueries.initialise(this.flatmapAPI);
1525
1525
  const i = await x(r, this.flatmapQueries);
1526
1526
  this.connectivityKnowledge[a] = i.filter((l) => {
1527
1527
  var o;
@@ -1563,7 +1563,7 @@ const q = {
1563
1563
  provenanceTaxonomy: e.taxons,
1564
1564
  feature: []
1565
1565
  });
1566
- return r.knowledgeSource = R(this.flatmapService.mapImp), r.mapId = this.flatmapService.mapImp.provenance.id, r.mapuuid = this.flatmapService.mapImp.provenance.uuid, r["nerve-label"] = e["nerve-label"], r.ready = !0, r;
1566
+ return r.knowledgeSource = w(this.flatmapService.mapImp), r.mapId = this.flatmapService.mapImp.provenance.id, r.mapuuid = this.flatmapService.mapImp.provenance.uuid, r["nerve-label"] = e["nerve-label"], r.ready = !0, r;
1567
1567
  },
1568
1568
  getKnowledgeTooltip: async function(e) {
1569
1569
  this.tooltipEntry = [], e.data.forEach((n) => this.tooltipEntry.push({ title: n.label, featureId: [n.id], ready: !1 })), f.emit("connectivity-info-open", this.tooltipEntry);
@@ -1575,6 +1575,9 @@ const q = {
1575
1575
  changeConnectivitySource: async function(e) {
1576
1576
  const { entry: r, connectivitySource: a } = e;
1577
1577
  await this.flatmapQueries.queryForConnectivityNew(this.flatmapService.mapImp, r.featureId[0], a), this.tooltipEntry = this.tooltipEntry.map((n) => n.featureId[0] === r.featureId[0] ? this.flatmapQueries.updateTooltipData(n) : n), f.emit("connectivity-info-open", this.tooltipEntry);
1578
+ },
1579
+ trackEvent: function(e) {
1580
+ y.sendEvent(e);
1578
1581
  }
1579
1582
  },
1580
1583
  data: function() {
@@ -1,6 +1,6 @@
1
- import { _ as d, q as h, t as u, T as s, E as r } from "./index-D9h80UWP.js";
2
- import { C as y } from "./ContentMixin-BEPgCmhm.js";
3
- import { D as g } from "./style-Dv7DCccG.js";
1
+ import { _ as d, q as h, t as u, T as s, E as r } from "./index-d6lIRou_.js";
2
+ import { C as y } from "./ContentMixin-Cr34tOdt.js";
3
+ import { D as g } from "./style-BvLt3kE9.js";
4
4
  import { FlatmapVuer as v } from "@abi-software/flatmapvuer";
5
5
  import { resolveComponent as p, openBlock as f, createElementBlock as C, createVNode as M, createBlock as I, createCommentVNode as S } from "vue";
6
6
  const w = {
@@ -186,8 +186,9 @@ function b(e, t, a, n, i, o) {
186
186
  onOpenMap: e.openMap,
187
187
  onPathwaySelectionChanged: o.onPathwaySelectionChanged,
188
188
  onMapmanagerLoaded: e.onMapmanagerLoaded,
189
- showPathwayFilter: !1
190
- }, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "onNeuronConnectionFeatureClick", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "showLocalSettings", "showOpenMapButton", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded"]),
189
+ showPathwayFilter: !1,
190
+ onTrackEvent: e.trackEvent
191
+ }, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "onNeuronConnectionFeatureClick", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "showLocalSettings", "showOpenMapButton", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded", "onTrackEvent"]),
191
192
  e.helpMode && e.useHelpModeDialog ? (f(), I(m, {
192
193
  key: 0,
193
194
  ref: "flatmapHelp",
@@ -198,7 +199,7 @@ function b(e, t, a, n, i, o) {
198
199
  }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : S("", !0)
199
200
  ]);
200
201
  }
201
- const O = /* @__PURE__ */ d(w, [["render", b], ["__scopeId", "data-v-b9d541d9"]]);
202
+ const E = /* @__PURE__ */ d(w, [["render", b], ["__scopeId", "data-v-a09a66dc"]]);
202
203
  export {
203
- O as default
204
+ E as default
204
205
  };
@@ -1,6 +1,6 @@
1
- import { C as r } from "./ContentMixin-BEPgCmhm.js";
1
+ import { C as r } from "./ContentMixin-Cr34tOdt.js";
2
2
  import { openBlock as o, createElementBlock as t, createElementVNode as a } from "vue";
3
- import { _ as s } from "./index-D9h80UWP.js";
3
+ import { _ as s } from "./index-d6lIRou_.js";
4
4
  const n = {
5
5
  name: "Iframe",
6
6
  mixins: [r]
@@ -1,7 +1,7 @@
1
- import { _ as c, q as h, a as g, t as y, T as r, E as l } from "./index-D9h80UWP.js";
2
- import { C as M } from "./ContentMixin-BEPgCmhm.js";
3
- import { D as C } from "./style-Dv7DCccG.js";
4
- import { MultiFlatmapVuer as v } from "@abi-software/flatmapvuer";
1
+ import { _ as c, q as h, a as g, t as y, T as r, E as l } from "./index-d6lIRou_.js";
2
+ import { C as M } from "./ContentMixin-Cr34tOdt.js";
3
+ import { D as v } from "./style-BvLt3kE9.js";
4
+ import { MultiFlatmapVuer as C } from "@abi-software/flatmapvuer";
5
5
  import { resolveComponent as p, openBlock as m, createElementBlock as S, createVNode as I, createBlock as F, createCommentVNode as w } from "vue";
6
6
  const k = '<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>', f = (e) => [
7
7
  {
@@ -18,9 +18,9 @@ const k = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
18
18
  }
19
19
  ], b = {
20
20
  name: "MultiFlatmap",
21
- mixins: [M, C],
21
+ mixins: [M, v],
22
22
  components: {
23
- MultiFlatmapVuer: v,
23
+ MultiFlatmapVuer: C,
24
24
  HelpModeDialog: h
25
25
  },
26
26
  data: function() {
@@ -294,8 +294,9 @@ function L(e, t, a, n, o, s) {
294
294
  onPathwaySelectionChanged: s.onPathwaySelectionChanged,
295
295
  onOpenPubmedUrl: s.onOpenPubmedUrl,
296
296
  onMapmanagerLoaded: e.onMapmanagerLoaded,
297
- showPathwayFilter: !1
298
- }, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "mapManager", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "onNeuronConnectionFeatureClick", "connectivityInfoSidebar", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "showLocalSettings", "showOpenMapButton", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl", "onMapmanagerLoaded"]),
297
+ showPathwayFilter: !1,
298
+ onTrackEvent: e.trackEvent
299
+ }, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "mapManager", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "onNeuronConnectionFeatureClick", "connectivityInfoSidebar", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "showLocalSettings", "showOpenMapButton", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl", "onMapmanagerLoaded", "onTrackEvent"]),
299
300
  e.helpMode && e.useHelpModeDialog ? (m(), F(d, {
300
301
  key: 0,
301
302
  ref: "multiflatmapHelp",
@@ -306,7 +307,7 @@ function L(e, t, a, n, o, s) {
306
307
  }, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : w("", !0)
307
308
  ]);
308
309
  }
309
- const $ = /* @__PURE__ */ c(b, [["render", L], ["__scopeId", "data-v-efec39bf"]]);
310
+ const $ = /* @__PURE__ */ c(b, [["render", L], ["__scopeId", "data-v-be8627cd"]]);
310
311
  export {
311
312
  $ as default
312
313
  };
@@ -1,7 +1,7 @@
1
1
  import { PlotVuer as o } from "@abi-software/plotvuer";
2
- import { C as r } from "./ContentMixin-BEPgCmhm.js";
2
+ import { C as r } from "./ContentMixin-Cr34tOdt.js";
3
3
  import { resolveComponent as a, openBlock as n, createBlock as s } from "vue";
4
- import { _ as p } from "./index-D9h80UWP.js";
4
+ import { _ as p } from "./index-d6lIRou_.js";
5
5
  const l = {
6
6
  name: "Plot",
7
7
  mixins: [r],
@@ -1,5 +1,5 @@
1
- import { _ as g, q as m, g as v, b as y, E as c } from "./index-D9h80UWP.js";
2
- import { C as w } from "./ContentMixin-BEPgCmhm.js";
1
+ import { _ as g, q as m, g as v, b as y, E as c } from "./index-d6lIRou_.js";
2
+ import { C as w } from "./ContentMixin-Cr34tOdt.js";
3
3
  import { ScaffoldVuer as b } from "@abi-software/scaffoldvuer";
4
4
  import { resolveComponent as p, openBlock as u, createElementBlock as S, createVNode as M, createBlock as $, createCommentVNode as C } from "vue";
5
5
  const N = {
@@ -1,7 +1,7 @@
1
- import { C as n } from "./ContentMixin-BEPgCmhm.js";
1
+ import { C as n } from "./ContentMixin-Cr34tOdt.js";
2
2
  import { SimulationVuer as e } from "@abi-software/simulationvuer";
3
3
  import { resolveComponent as r, openBlock as a, createBlock as c } from "vue";
4
- import { _ as m } from "./index-D9h80UWP.js";
4
+ import { _ as m } from "./index-d6lIRou_.js";
5
5
  const s = {
6
6
  name: "Simulation",
7
7
  mixins: [n],