@abi-software/mapintegratedvuer 1.17.3 → 1.17.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.
@@ -1,11 +1,11 @@
1
- import { _ as h, B as m, E as r } from "./index-CgeNF-PU.js";
2
- import { C as y } from "./ContentMixin-NLNFG_hM.js";
1
+ import { _ as c, B as h, E as m } from "./index-qyfmiqHe.js";
2
+ import { C as y } from "./ContentMixin-BImmmP1E.js";
3
3
  import { resolveComponent as p, openBlock as d, createElementBlock as l, createVNode as v } from "vue";
4
4
  const g = {
5
5
  name: "ConnectivityGraph",
6
6
  mixins: [y],
7
7
  components: {
8
- MapUtilitiesConnectivityGraph: m
8
+ MapUtilitiesConnectivityGraph: h
9
9
  },
10
10
  computed: {
11
11
  graphEntry() {
@@ -67,38 +67,36 @@ const g = {
67
67
  },
68
68
  methods: {
69
69
  onTapNode: function(t) {
70
- const i = t.map((s) => s.label).join(", ");
71
- this.onConnectivityHovered(i), i || r.emit("show-connectivity", {
72
- featureIds: [this.entry.resource]
73
- });
70
+ const i = t.map((a) => a.label).join(", ");
71
+ this.onConnectivityHovered(i);
74
72
  },
75
73
  onConnectivityHovered: function(t) {
76
74
  const i = {
77
- connectivityInfo: this.graphEntry,
75
+ connectivityInfo: this.entry.connectivityInfo,
78
76
  label: t,
79
77
  data: t ? this.getConnectivityDatasets(t) : []
80
78
  };
81
- r.emit("connectivity-hovered", i);
79
+ m.emit("connectivity-hovered", i);
82
80
  },
83
81
  getConnectivityDatasets: function(t) {
84
- var o;
85
- const i = ((o = this.entry.graphPayload) == null ? void 0 : o.allWithDatasets) || [], s = t.split(",");
86
- let a = [];
87
- return s.forEach((n) => {
82
+ var s;
83
+ const i = ((s = this.entry.graphPayload) == null ? void 0 : s.allWithDatasets) || [], a = t.split(",");
84
+ let o = [];
85
+ return a.forEach((n) => {
88
86
  const e = i.find(
89
- (c) => c.name.toLowerCase().trim() === n.toLowerCase().trim()
87
+ (r) => r.name.toLowerCase().trim() === n.toLowerCase().trim()
90
88
  );
91
- e && a.push({
89
+ e && o.push({
92
90
  id: e.id,
93
91
  label: e.name
94
92
  });
95
- }), a;
93
+ }), o;
96
94
  }
97
95
  }
98
- }, u = { class: "viewer-container" };
99
- function C(t, i, s, a, o, n) {
96
+ }, C = { class: "viewer-container" };
97
+ function u(t, i, a, o, s, n) {
100
98
  const e = p("MapUtilitiesConnectivityGraph");
101
- return d(), l("div", u, [
99
+ return d(), l("div", C, [
102
100
  v(e, {
103
101
  entry: n.graphEntry,
104
102
  mapServer: n.mapServer,
@@ -119,7 +117,7 @@ function C(t, i, s, a, o, n) {
119
117
  }, null, 8, ["entry", "mapServer", "sckanVersion", "connectivityFromMap", "connectivityError", "origins", "components", "destinations", "originsWithDatasets", "componentsWithDatasets", "destinationsWithDatasets", "hasSingleConnectivityList", "originsCombinations", "componentsCombinations", "destinationsCombinations", "onTapNode"])
120
118
  ]);
121
119
  }
122
- const b = /* @__PURE__ */ h(g, [["render", C], ["__scopeId", "data-v-485c95c8"]]);
120
+ const W = /* @__PURE__ */ c(g, [["render", u], ["__scopeId", "data-v-70988bee"]]);
123
121
  export {
124
- b as default
122
+ W as default
125
123
  };