@abi-software/mapintegratedvuer 1.5.0 → 1.5.1-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { u as y, b as w, E as l, T as A, c as v, d as u, e as N } from "./index-BbKW1iaX.js";
2
- import { mapStores as R } from "pinia";
3
- let c = 7, r = 5;
4
- const E = [
1
+ import { u as p, b as g, E as l, T as y, c as m, d as w } from "./index-DBVNcOgU.js";
2
+ import { mapStores as A } from "pinia";
3
+ let c = 7, s = 5;
4
+ const N = [
5
5
  {
6
6
  id: "UBERON:0000948",
7
7
  name: "heart",
@@ -182,19 +182,19 @@ const E = [
182
182
  {
183
183
  id: "UBERON:0001103",
184
184
  name: "Diaphragm",
185
- showAtZoom: r,
185
+ showAtZoom: s,
186
186
  keyword: !0
187
187
  },
188
188
  {
189
189
  id: "UBERON:0001160",
190
190
  name: "Fundus of stomach",
191
- showAtZoom: r,
191
+ showAtZoom: s,
192
192
  keyword: !0
193
193
  },
194
194
  {
195
195
  id: "UBERON:0000955",
196
196
  name: "Brain",
197
- showAtZoom: r,
197
+ showAtZoom: s,
198
198
  keyword: !0
199
199
  },
200
200
  {
@@ -206,7 +206,7 @@ const E = [
206
206
  {
207
207
  id: "UBERON:0002079",
208
208
  name: "Left cardiac atrium",
209
- showAtZoom: r,
209
+ showAtZoom: s,
210
210
  keyword: !0
211
211
  },
212
212
  {
@@ -218,44 +218,44 @@ const E = [
218
218
  {
219
219
  id: "UBERON:0002078",
220
220
  name: "Right cardiac atrium",
221
- showAtZoom: r,
221
+ showAtZoom: s,
222
222
  keyword: !0
223
223
  },
224
224
  {
225
225
  id: "UBERON:0002084",
226
226
  name: "Heart left ventricle",
227
- showAtZoom: r,
227
+ showAtZoom: s,
228
228
  keyword: !0
229
229
  },
230
230
  {
231
231
  id: "UBERON:0002080",
232
232
  name: "Heart right ventricle",
233
- showAtZoom: r,
233
+ showAtZoom: s,
234
234
  keyword: !0
235
235
  },
236
236
  {
237
237
  id: "UBERON:0001508",
238
238
  name: "Arch of Aorta",
239
- showAtZoom: r,
239
+ showAtZoom: s,
240
240
  keyword: !0
241
241
  },
242
242
  {
243
243
  id: "UBERON:0001738",
244
244
  name: "Thyroid cartilage",
245
- showAtZoom: r,
245
+ showAtZoom: s,
246
246
  keyword: !0
247
247
  },
248
248
  {
249
249
  id: "UBERON:0000388",
250
250
  name: "Epiglottis",
251
- showAtZoom: r,
251
+ showAtZoom: s,
252
252
  keyword: !0
253
253
  }
254
254
  ];
255
- function B(e) {
255
+ function v(e) {
256
256
  return e[0].toUpperCase() + e.substring(1);
257
257
  }
258
- const U = {
258
+ const B = {
259
259
  emits: ["flatmap-provenance-ready", "resource-selected", "species-changed"],
260
260
  props: {
261
261
  /**
@@ -273,7 +273,7 @@ const U = {
273
273
  }
274
274
  },
275
275
  computed: {
276
- ...R(y, w),
276
+ ...A(p, g),
277
277
  idNamePair() {
278
278
  return this.splitFlowStore.idNamePair;
279
279
  },
@@ -301,7 +301,7 @@ const U = {
301
301
  e === "SYNC" ? (this.toggleSyncMode(), this.trackOpenMap("toggle_map_sync_mode")) : (l.emit("OpenNewMap", e), this.trackOpenMap(`open_new_${e}_map`)), this.onConnectivityInfoClose();
302
302
  },
303
303
  trackOpenMap: function(e) {
304
- A.sendEvent({
304
+ y.sendEvent({
305
305
  event: "interaction_event",
306
306
  event_name: "portal_maps_open_map",
307
307
  category: e,
@@ -324,13 +324,13 @@ const U = {
324
324
  /**
325
325
  * Callback when the vuers emit a selected event.
326
326
  */
327
- resourceSelected: function(e, t, i) {
328
- var f, d, m;
327
+ resourceSelected: function(e, t) {
328
+ var o, r, f;
329
329
  if (this.resourceHasAction(t)) {
330
330
  l.emit("PopoverActionClick", t);
331
331
  return;
332
332
  }
333
- let n, s = "none", o = !1;
333
+ let i, n = !1;
334
334
  const a = {
335
335
  paneIndex: this.entry.id,
336
336
  type: e,
@@ -341,38 +341,38 @@ const U = {
341
341
  if (e == "MultiFlatmap" || e == "Flatmap")
342
342
  if (a.internalName = this.idNamePair[t.feature.models], t.eventType == "click")
343
343
  if (a.eventType = "selected", t.feature.type == "marker") {
344
- let p = this.idNamePair[t.feature.models], g = E.filter(
344
+ let d = this.idNamePair[t.feature.models], u = N.filter(
345
345
  (h) => h.id === t.feature.models
346
346
  );
347
347
  this.settingsStore.isFeaturedMarkerIdentifier(
348
348
  t.feature.id
349
- ) ? n = {
349
+ ) ? i = {
350
350
  type: "Search",
351
351
  term: this.settingsStore.featuredMarkerDoi(
352
352
  t.feature.id
353
353
  ),
354
354
  featuredDataset: !0
355
- } : g.filter((h) => h.keyword).length > 0 ? n = {
355
+ } : u.filter((h) => h.keyword).length > 0 ? i = {
356
356
  type: "Search",
357
357
  term: "http://purl.obolibrary.org/obo/" + t.feature.models.replace(":", "_")
358
- } : n = {
358
+ } : i = {
359
359
  type: "Facet",
360
- facet: p,
360
+ facet: d,
361
361
  facetPropPath: "anatomy.organ.category.name",
362
362
  term: "Anatomical structure"
363
- }, o = !0, e == "MultiFlatmap" && this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults();
363
+ }, n = !0, e == "MultiFlatmap" && this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults();
364
364
  } else
365
- t.feature.type == "feature" && (this.syncMode ? o = !0 : s = "scaffold");
365
+ t.feature.type == "feature" && this.syncMode && (n = !0);
366
366
  else
367
- t.eventType == "mouseenter" && (a.eventType = "highlighted", o = !0);
367
+ t.eventType == "mouseenter" && (a.eventType = "highlighted", n = !0);
368
368
  else
369
- e == "Scaffold" && (t && t[0] && ((((f = t[0].data) == null ? void 0 : f.id) === void 0 || ((d = t[0].data) == null ? void 0 : d.id) === "") && (t[0].data.id = (m = t[0].data) == null ? void 0 : m.group), a.internalName = t[0].data.id, t[0].data.lastActionOnMarker === !0 && (n = {
369
+ e == "Scaffold" && (t && t[0] && ((((o = t[0].data) == null ? void 0 : o.id) === void 0 || ((r = t[0].data) == null ? void 0 : r.id) === "") && (t[0].data.id = (f = t[0].data) == null ? void 0 : f.group), a.internalName = t[0].data.id, t[0].data.lastActionOnMarker === !0 && (i = {
370
370
  type: "Facet",
371
- facet: B(t[0].data.id),
371
+ facet: v(t[0].data.id),
372
372
  facetPropPath: "anatomy.organ.category.name",
373
373
  term: "Anatomical structure"
374
- })), a.eventType = "selected", o = !0, s = "search");
375
- n === void 0 && i && (n = v(a, s)), n && l.emit("PopoverActionClick", n), o && this.$emit("resource-selected", a);
374
+ })), a.eventType = "selected", n = !0);
375
+ i && l.emit("PopoverActionClick", i), n && this.$emit("resource-selected", a);
376
376
  },
377
377
  resourceHasAction: function(e) {
378
378
  return e.type === "URL" || e.type === "Search" || e.type === "Neuron Search" || e.type == "Facet" || e.type == "Facets";
@@ -397,13 +397,13 @@ const U = {
397
397
  if (e.resource && e.resource.resource && (i = e.resource.resource[0]), this.entry.type === "Scaffold") {
398
398
  if (this.$refs.scaffold.findObjectsWithGroupName(t).length === 0) {
399
399
  if (e.resource && e.resource.feature) {
400
- const o = u(e.resource.feature.models);
400
+ const o = m(e.resource.feature.models);
401
401
  if (o.length > 0)
402
402
  return o;
403
403
  }
404
- let s = N(t);
405
- if (s)
406
- return s;
404
+ let a = w(t);
405
+ if (a)
406
+ return a;
407
407
  if (i && e.eventType === "selected")
408
408
  return fetch(`${this.apiLocation}get-related-terms/${i}`).then((o) => o.json()).then((o) => {
409
409
  if (o.uberon.array.length > 0)
@@ -414,7 +414,7 @@ const U = {
414
414
  if (t === "Bladder")
415
415
  t = "Urinary Bladder";
416
416
  else {
417
- const n = u(t);
417
+ const n = m(t);
418
418
  n.length > 0 && (t = n[0]);
419
419
  }
420
420
  return { id: i, name: t };
@@ -429,18 +429,18 @@ const U = {
429
429
  } catch {
430
430
  n = void 0;
431
431
  }
432
- let s;
432
+ let a;
433
433
  try {
434
- s = i.item.curie;
434
+ a = i.item.curie;
435
435
  } catch {
436
- s = void 0;
436
+ a = void 0;
437
437
  }
438
438
  let o;
439
439
  try {
440
- let a = 0, f = !1;
441
- for (; !f && a < i.organisms.subject.length; ) {
442
- const d = i.organisms.subject[a];
443
- d.species && (o = d.species.name, f = !0), a += 1;
440
+ let r = 0, f = !1;
441
+ for (; !f && r < i.organisms.subject.length; ) {
442
+ const d = i.organisms.subject[r];
443
+ d.species && (o = d.species.name, f = !0), r += 1;
444
444
  }
445
445
  } catch {
446
446
  o = void 0;
@@ -448,7 +448,7 @@ const U = {
448
448
  this.settingsStore.updateFeaturedMarker({
449
449
  identifier: e,
450
450
  marker: n,
451
- doi: s,
451
+ doi: a,
452
452
  species: o
453
453
  });
454
454
  });
@@ -580,5 +580,5 @@ const U = {
580
580
  }
581
581
  };
582
582
  export {
583
- U as C
583
+ B as C
584
584
  };
@@ -1,6 +1,6 @@
1
- import { _ as d, L as h, t as u, T as s, E as l } from "./index-BbKW1iaX.js";
2
- import { C as I } from "./ContentMixin-DG--521q.js";
3
- import { D as y, B as g } from "./style-BR8ELy16.js";
1
+ import { _ as c, L as h, t as u, T as s, E as l } from "./index-DBVNcOgU.js";
2
+ import { C as I } from "./ContentMixin-BY38ulup.js";
3
+ import { D as y, B as g } from "./style-C32DKsFv.js";
4
4
  import { resolveComponent as p, openBlock as r, createElementBlock as M, createVNode as v, createBlock as S, createCommentVNode as C } from "vue";
5
5
  const w = {
6
6
  name: "Flatmap",
@@ -24,11 +24,7 @@ const w = {
24
24
  return (e = this.$refs.flatmap) == null ? void 0 : e.mapImp;
25
25
  },
26
26
  flatmaprResourceSelected: function(e, t) {
27
- if (this.resourceSelected(
28
- e,
29
- t,
30
- this.$refs.flatmap.viewingMode === "Exploration"
31
- ), t.eventType === "click" && t.feature.type === "feature") {
27
+ if (this.resourceSelected(e, t), t.eventType === "click" && t.feature.type === "feature") {
32
28
  const o = {
33
29
  label: t.label || "",
34
30
  id: t.feature.id || "",
@@ -111,13 +107,13 @@ const w = {
111
107
  });
112
108
  }
113
109
  }, F = { class: "viewer-container" };
114
- function b(e, t, o, a, n, i) {
110
+ function H(e, t, o, a, n, i) {
115
111
  const m = p("FlatmapVuer"), f = p("HelpModeDialog");
116
112
  return r(), M("div", F, [
117
113
  v(m, {
118
114
  state: e.entry.state,
119
115
  entry: e.entry.resource,
120
- onResourceSelected: t[0] || (t[0] = (c) => i.flatmaprResourceSelected(e.entry.type, c)),
116
+ onResourceSelected: t[0] || (t[0] = (d) => i.flatmaprResourceSelected(e.entry.type, d)),
121
117
  onPanZoomCallback: e.flatmapPanZoomCallback,
122
118
  name: e.entry.resource,
123
119
  style: { height: "100%", width: "100%" },
@@ -153,7 +149,7 @@ function b(e, t, o, a, n, i) {
153
149
  }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : C("", !0)
154
150
  ]);
155
151
  }
156
- const P = /* @__PURE__ */ d(w, [["render", b], ["__scopeId", "data-v-3b350e7b"]]);
152
+ const P = /* @__PURE__ */ c(w, [["render", H], ["__scopeId", "data-v-d49919d0"]]);
157
153
  export {
158
154
  P as default
159
155
  };
@@ -1,6 +1,6 @@
1
- import { C as r } from "./ContentMixin-DG--521q.js";
1
+ import { C as r } from "./ContentMixin-BY38ulup.js";
2
2
  import { openBlock as o, createElementBlock as t, createElementVNode as s } from "vue";
3
- import { _ as n } from "./index-BbKW1iaX.js";
3
+ import { _ as n } from "./index-DBVNcOgU.js";
4
4
  const a = {
5
5
  name: "Iframe",
6
6
  mixins: [r]
@@ -1,8 +1,8 @@
1
- import { _ as u, L as h, a as y, g, E as s, t as M, T as p } from "./index-BbKW1iaX.js";
2
- import { C as v } from "./ContentMixin-DG--521q.js";
3
- import { D as I, K as S } from "./style-BR8ELy16.js";
1
+ import { _ as u, L as h, a as y, g, E as s, t as M, T as p } from "./index-DBVNcOgU.js";
2
+ import { C as v } from "./ContentMixin-BY38ulup.js";
3
+ import { D as I, K as S } from "./style-C32DKsFv.js";
4
4
  import { resolveComponent as f, openBlock as c, createElementBlock as C, createVNode as F, createBlock as k, createCommentVNode as w } from "vue";
5
- const b = '<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) => {
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 = [
7
7
  {
8
8
  display: "Open AC Map",
@@ -28,7 +28,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
28
28
  break;
29
29
  }
30
30
  return t;
31
- }, R = {
31
+ }, b = {
32
32
  name: "MultiFlatmap",
33
33
  mixins: [v, I],
34
34
  components: {
@@ -108,7 +108,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
108
108
  },
109
109
  flatmaprResourceSelected: function(e, t) {
110
110
  const a = this.$refs.multiflatmap.getCurrentFlatmap();
111
- if (this.resourceSelected(e, t, a.viewingMode === "Exploration"), t.eventType === "click" && t.feature.type === "feature") {
111
+ if (this.resourceSelected(e, t), t.eventType === "click" && t.feature.type === "feature") {
112
112
  const n = {
113
113
  label: t.label || "",
114
114
  id: t.feature.id || "",
@@ -230,7 +230,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
230
230
  let o = a;
231
231
  if (o || (o = this.getFlatmapImp()), o) {
232
232
  let i = document.createElement("div");
233
- i.innerHTML = b;
233
+ i.innerHTML = R;
234
234
  const r = o.addMarker(e, {
235
235
  element: i,
236
236
  className: "highlight-marker",
@@ -326,7 +326,7 @@ function L(e, t, a, n, o, i) {
326
326
  }, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : w("", !0)
327
327
  ]);
328
328
  }
329
- const E = /* @__PURE__ */ u(R, [["render", L], ["__scopeId", "data-v-7ab7e49b"]]);
329
+ const _ = /* @__PURE__ */ u(b, [["render", L], ["__scopeId", "data-v-2900d620"]]);
330
330
  export {
331
- E as default
331
+ _ as default
332
332
  };