@abi-software/mapintegratedvuer 1.9.1 → 1.9.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,10 +1,10 @@
1
- import { _ as d, k as h, t as u, T as l, E as i } from "./index-qckfB1dl.js";
2
- import { C as y } from "./ContentMixin-c9DvlJVP.js";
3
- import { D as I, r as g } from "./style-C6pIyWak.js";
1
+ import { _ as c, k as h, t as u, T as l, E as r } from "./index-BcpVBq1h.js";
2
+ import { C as I } from "./ContentMixin-DO6jlHIh.js";
3
+ import { D as y, r as g } from "./style-CIceSTeY.js";
4
4
  import { resolveComponent as s, openBlock as p, createElementBlock as M, createVNode as v, createBlock as C, createCommentVNode as S } from "vue";
5
- const F = {
5
+ const w = {
6
6
  name: "Flatmap",
7
- mixins: [y, I],
7
+ mixins: [I, y],
8
8
  components: {
9
9
  FlatmapVuer: g,
10
10
  HelpModeDialog: h
@@ -25,42 +25,42 @@ const F = {
25
25
  },
26
26
  flatmaprResourceSelected: function(e, t) {
27
27
  if (this.resourceSelected(e, t), t.eventType === "click" && t.feature.type === "feature") {
28
- const a = {
28
+ const n = {
29
29
  label: t.label || "",
30
30
  id: t.feature.id || "",
31
31
  featureId: t.feature.featureId || "",
32
32
  taxonomy: t.taxonomy || "",
33
33
  resources: t.resource.join(", ")
34
- }, n = u(a);
34
+ }, a = u(n);
35
35
  l.sendEvent({
36
36
  event: "interaction_event",
37
37
  event_name: "portal_maps_connectivity",
38
- category: n,
38
+ category: a,
39
39
  location: e + " " + this.$refs.flatmap.viewingMode
40
40
  });
41
41
  }
42
42
  },
43
43
  flatmapReadyCall: function(e) {
44
44
  let t = { id: this.entry.id, prov: this.getFlatmapImp().provenance };
45
- const a = e.mapImp;
46
- i.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t), this.flatmapReadyForMarkerUpdates(e), this.loadConnectivityKnowledge(a), i.emit("mapLoaded", e);
45
+ const n = e.mapImp;
46
+ r.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t), this.flatmapReadyForMarkerUpdates(e), this.loadConnectivityKnowledge(n), r.emit("mapLoaded", e);
47
47
  },
48
48
  onPathwaySelectionChanged: function(e) {
49
- const { label: t, property: a, checked: n, selectionsTitle: r } = e;
49
+ const { label: t, property: n, checked: a, selectionsTitle: i } = e;
50
50
  l.sendEvent({
51
51
  event: "interaction_event",
52
52
  event_name: "portal_maps_pathway_change",
53
- category: t + " [" + a + "] " + n,
54
- location: r
53
+ category: t + " [" + n + "] " + a,
54
+ location: i
55
55
  });
56
56
  },
57
57
  highlightFeatures: function(e) {
58
58
  let t = e.name;
59
- const a = this.$refs.flatmap.mapImp;
59
+ const n = this.$refs.flatmap.mapImp;
60
60
  if (t) {
61
- const n = a.search(t);
62
- n.featureIds[0] && a.highlightFeatures([
63
- a.modelForFeature(n.featureIds[0])
61
+ const a = n.search(t);
62
+ a.featureIds[0] && n.highlightFeatures([
63
+ n.modelForFeature(a.featureIds[0])
64
64
  ]);
65
65
  }
66
66
  },
@@ -69,24 +69,24 @@ const F = {
69
69
  */
70
70
  searchSuggestions: function(e, t) {
71
71
  if (e && this.$refs.flatmap.mapImp) {
72
- const a = this.$refs.flatmap.mapImp.search(e);
73
- (a.__featureIds || a.featureIds).forEach((r) => {
74
- const o = this.$refs.flatmap.mapImp.annotation(r);
72
+ const n = this.$refs.flatmap.mapImp.search(e);
73
+ (n.__featureIds || n.featureIds).forEach((i) => {
74
+ const o = this.$refs.flatmap.mapImp.annotation(i);
75
75
  o && o.label && t.push(o.label);
76
76
  });
77
77
  }
78
78
  },
79
79
  zoomToFeatures: function(e, t) {
80
- let a = e.name;
81
- const n = this.$refs.flatmap.mapImp;
82
- if (a) {
83
- const r = n.search(a);
84
- if (r.featureIds.length) {
85
- let o = n.modelForFeature(r.featureIds[0]);
86
- o ? (t && n.selectFeatures(o), n.zoomToFeatures(o)) : n.clearSearchResults();
80
+ let n = e.name;
81
+ const a = this.$refs.flatmap.mapImp;
82
+ if (n) {
83
+ const i = a.search(n);
84
+ if (i.featureIds.length) {
85
+ let o = a.modelForFeature(i.featureIds[0]);
86
+ o ? (t && a.selectFeatures(o), a.zoomToFeatures(o)) : a.clearSearchResults();
87
87
  }
88
88
  } else
89
- n.clearSearchResults();
89
+ a.clearSearchResults();
90
90
  },
91
91
  changeViewingMode: function(e) {
92
92
  this.$refs.flatmap.changeViewingMode(e);
@@ -98,35 +98,32 @@ const F = {
98
98
  }
99
99
  },
100
100
  mounted: function() {
101
- i.on("annotation-close", () => {
101
+ r.on("annotation-close", () => {
102
102
  this.$refs.flatmap && this.$refs.flatmap.annotationEventCallback({}, { type: "aborted" });
103
- }), i.on("markerUpdate", () => {
103
+ }), r.on("markerUpdate", () => {
104
104
  this.flatmapMarkerUpdate(void 0);
105
- }), i.on("hoverUpdate", () => {
105
+ }), r.on("hoverUpdate", () => {
106
106
  this.cardHoverHighlight();
107
- }), i.on("show-connectivity", (e) => {
108
- const { featureIds: t, offset: a } = e, n = this.$refs.flatmap;
109
- n && n.moveMap(t, {
110
- offsetX: a ? -150 : 0,
107
+ }), r.on("show-connectivity", (e) => {
108
+ const { featureIds: t, offset: n } = e, a = this.$refs.flatmap;
109
+ a && a.moveMap(t, {
110
+ offsetX: n ? -150 : 0,
111
111
  zoom: 4
112
112
  });
113
- }), i.on("show-reference-connectivities", (e) => {
113
+ }), r.on("show-reference-connectivities", (e) => {
114
114
  const t = this.$refs.flatmap;
115
115
  t && t.showConnectivitiesByReference(e);
116
- }), i.on("connectivity-query-filter", (e) => {
117
- const t = this.$refs.flatmap;
118
- t && t.mapImp && this.connectivityQueryFilter(t, e);
119
116
  });
120
117
  }
121
- }, w = { class: "viewer-container" };
122
- function $(e, t, a, n, r, o) {
118
+ }, F = { class: "viewer-container" };
119
+ function b(e, t, n, a, i, o) {
123
120
  const m = s("FlatmapVuer"), f = s("HelpModeDialog");
124
- return p(), M("div", w, [
121
+ return p(), M("div", F, [
125
122
  v(m, {
126
123
  state: e.entry.state,
127
124
  entry: e.entry.resource,
128
125
  mapManager: e.mapManager,
129
- onResourceSelected: t[0] || (t[0] = (c) => o.flatmaprResourceSelected(e.entry.type, c)),
126
+ onResourceSelected: t[0] || (t[0] = (d) => o.flatmaprResourceSelected(e.entry.type, d)),
130
127
  onPanZoomCallback: e.flatmapPanZoomCallback,
131
128
  name: e.entry.resource,
132
129
  style: { height: "100%", width: "100%" },
@@ -144,6 +141,7 @@ function $(e, t, a, n, r, o) {
144
141
  onConnectivityInfoOpen: e.onConnectivityInfoOpen,
145
142
  onConnectivityError: e.onConnectivityError,
146
143
  onConnectivityInfoClose: e.onConnectivityInfoClose,
144
+ connectivityInfoSidebar: e.connectivityInfoSidebar,
147
145
  pathControls: !0,
148
146
  ref: "flatmap",
149
147
  onReady: o.flatmapReadyCall,
@@ -155,7 +153,7 @@ function $(e, t, a, n, r, o) {
155
153
  onOpenMap: e.openMap,
156
154
  onPathwaySelectionChanged: o.onPathwaySelectionChanged,
157
155
  onMapmanagerLoaded: e.onMapmanagerLoaded
158
- }, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "onReady", "flatmapAPI", "sparcAPI", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded"]),
156
+ }, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded"]),
159
157
  e.helpMode && e.useHelpModeDialog ? (p(), C(f, {
160
158
  key: 0,
161
159
  ref: "flatmapHelp",
@@ -166,7 +164,7 @@ function $(e, t, a, n, r, o) {
166
164
  }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : S("", !0)
167
165
  ]);
168
166
  }
169
- const R = /* @__PURE__ */ d(F, [["render", $], ["__scopeId", "data-v-4ff4b478"]]);
167
+ const R = /* @__PURE__ */ c(w, [["render", b], ["__scopeId", "data-v-8e8f3246"]]);
170
168
  export {
171
169
  R as default
172
170
  };
@@ -1,6 +1,6 @@
1
- import { C as r } from "./ContentMixin-c9DvlJVP.js";
1
+ import { C as r } from "./ContentMixin-DO6jlHIh.js";
2
2
  import { openBlock as o, createElementBlock as t, createElementVNode as s } from "vue";
3
- import { _ as n } from "./index-qckfB1dl.js";
3
+ import { _ as n } from "./index-BcpVBq1h.js";
4
4
  const a = {
5
5
  name: "Iframe",
6
6
  mixins: [r]
@@ -1,6 +1,6 @@
1
- import { _ as u, k as h, a as y, g, E as s, t as v, T as p } from "./index-qckfB1dl.js";
2
- import { C as M } from "./ContentMixin-c9DvlJVP.js";
3
- import { D as C, h as I } from "./style-C6pIyWak.js";
1
+ import { _ as u, k as h, a as y, g, E as s, t as M, T as p } from "./index-BcpVBq1h.js";
2
+ import { C as v } from "./ContentMixin-DO6jlHIh.js";
3
+ import { D as C, h as I } from "./style-CIceSTeY.js";
4
4
  import { resolveComponent as f, openBlock as c, createElementBlock as S, createVNode as F, createBlock as k, createCommentVNode as w } 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 = [
@@ -30,7 +30,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
30
30
  return t;
31
31
  }, b = {
32
32
  name: "MultiFlatmap",
33
- mixins: [M, C],
33
+ mixins: [v, C],
34
34
  components: {
35
35
  MultiFlatmapVuer: I,
36
36
  HelpModeDialog: h
@@ -117,7 +117,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
117
117
  featureId: t.feature.featureId || "",
118
118
  taxonomy: t.taxonomy || "",
119
119
  resources: t.resource.join(", ")
120
- }, o = v(n);
120
+ }, o = M(n);
121
121
  p.sendEvent({
122
122
  event: "interaction_event",
123
123
  event_name: "portal_maps_connectivity",
@@ -299,11 +299,6 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
299
299
  this.flatmapReady && this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
300
300
  }), s.on("hoverUpdate", () => {
301
301
  this.flatmapReady && this.cardHoverHighlight();
302
- }), s.on("connectivity-query-filter", (e) => {
303
- if (this.flatmapReady && this.$refs.multiflatmap) {
304
- const t = this.$refs.multiflatmap.getCurrentFlatmap();
305
- t && t.mapImp && this.connectivityQueryFilter(t, e);
306
- }
307
302
  });
308
303
  }
309
304
  }, H = { class: "viewer-container" };
@@ -356,7 +351,7 @@ function L(e, t, a, n, o, i) {
356
351
  }, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : w("", !0)
357
352
  ]);
358
353
  }
359
- const T = /* @__PURE__ */ u(b, [["render", L], ["__scopeId", "data-v-e96022db"]]);
354
+ const T = /* @__PURE__ */ u(b, [["render", L], ["__scopeId", "data-v-ce393416"]]);
360
355
  export {
361
356
  T as default
362
357
  };
@@ -1,7 +1,7 @@
1
1
  import { PlotVuer as o } from "@abi-software/plotvuer";
2
- import { C as r } from "./ContentMixin-c9DvlJVP.js";
2
+ import { C as r } from "./ContentMixin-DO6jlHIh.js";
3
3
  import { resolveComponent as a, openBlock as n, createBlock as s } from "vue";
4
- import { _ as m } from "./index-qckfB1dl.js";
4
+ import { _ as m } from "./index-BcpVBq1h.js";
5
5
  const p = {
6
6
  name: "Plot",
7
7
  mixins: [r],
@@ -1,5 +1,5 @@
1
- import { o as w1, S as _1, w as M1, h as S1, j as T1, A as A1, e as E1, _ as C1, k as R1, E as Cu } from "./index-qckfB1dl.js";
2
- import { C as L1 } from "./ContentMixin-c9DvlJVP.js";
1
+ import { o as w1, S as _1, w as M1, h as S1, j as T1, A as A1, e as E1, _ as C1, k as R1, E as Cu } from "./index-BcpVBq1h.js";
2
+ import { C as L1 } from "./ContentMixin-DO6jlHIh.js";
3
3
  import { ref as Ee, defineComponent as Pe, computed as he, openBlock as ye, createElementBlock as Ce, mergeProps as Sr, unref as V, renderSlot as qe, useAttrs as O1, useSlots as Gc, shallowRef as Ai, watch as Qe, nextTick as _t, onMounted as Qt, toRef as ur, createCommentVNode as Ue, Fragment as kt, normalizeClass as Re, createElementVNode as Fe, createBlock as Ve, withCtx as ve, resolveDynamicComponent as Oi, withModifiers as ni, createVNode as le, toDisplayString as vt, normalizeStyle as Ct, provide as si, reactive as Xi, onActivated as P1, onUpdated as Id, inject as ht, onBeforeUnmount as Qi, withDirectives as Ot, cloneVNode as I1, Text as Rv, Comment as N1, Transition as Js, vShow as pi, readonly as Lv, onDeactivated as D1, toHandlers as B1, withKeys as cr, createTextVNode as mt, createSlots as k1, toRefs as _o, getCurrentInstance as li, h as ca, renderList as Zi, onUnmounted as Ov, markRaw as wi, watchEffect as Pv, warn as F1, onBeforeMount as z1, toRaw as Iv, getCurrentScope as U1, onScopeDispose as V1, isRef as Nv, isVNode as Ih, Teleport as H1, resolveComponent as Si, resolveDirective as G1, toHandlerKey as j1, vModelText as W1, createApp as q1 } from "vue";
4
4
  import { defineStore as $1, mapState as Dv } from "pinia";
5
5
  const Wr = (i, e, { checkForDefaultPrevented: t = !0 } = {}) => (r) => {
@@ -1,7 +1,7 @@
1
- import { C as i } from "./ContentMixin-c9DvlJVP.js";
1
+ import { C as i } from "./ContentMixin-DO6jlHIh.js";
2
2
  import { SimulationVuer as t } from "@abi-software/simulationvuer";
3
3
  import { resolveComponent as e, openBlock as r, createBlock as a } from "vue";
4
- import { _ as m } from "./index-qckfB1dl.js";
4
+ import { _ as m } from "./index-BcpVBq1h.js";
5
5
  const c = {
6
6
  name: "Simulation",
7
7
  mixins: [i],