@abi-software/mapintegratedvuer 1.16.3 → 1.17.0

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.
@@ -0,0 +1,125 @@
1
+ import { _ as h, B as m, E as r } from "./index-raNlNgsS.js";
2
+ import { C as y } from "./ContentMixin-R9Bw7Ou4.js";
3
+ import { resolveComponent as p, openBlock as d, createElementBlock as l, createVNode as v } from "vue";
4
+ const g = {
5
+ name: "ConnectivityGraph",
6
+ mixins: [y],
7
+ components: {
8
+ MapUtilitiesConnectivityGraph: m
9
+ },
10
+ computed: {
11
+ graphEntry() {
12
+ return this.entry.resource;
13
+ },
14
+ connectivityError() {
15
+ return {};
16
+ },
17
+ connectivityFromMap() {
18
+ var t;
19
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.connectivityFromMap) || null;
20
+ },
21
+ origins() {
22
+ var t;
23
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.origins) || [];
24
+ },
25
+ components() {
26
+ var t;
27
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.components) || [];
28
+ },
29
+ destinations() {
30
+ var t;
31
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.destinations) || [];
32
+ },
33
+ originsWithDatasets() {
34
+ var t;
35
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.originsWithDatasets) || [];
36
+ },
37
+ componentsWithDatasets() {
38
+ var t;
39
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.componentsWithDatasets) || [];
40
+ },
41
+ destinationsWithDatasets() {
42
+ var t;
43
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.destinationsWithDatasets) || [];
44
+ },
45
+ hasSingleConnectivityList() {
46
+ var t;
47
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.hasSingleConnectivityList) || !1;
48
+ },
49
+ originsCombinations() {
50
+ var t;
51
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.originsCombinations) || [];
52
+ },
53
+ componentsCombinations() {
54
+ var t;
55
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.componentsCombinations) || [];
56
+ },
57
+ destinationsCombinations() {
58
+ var t;
59
+ return ((t = this.entry.graphPayload) == null ? void 0 : t.destinationsCombinations) || [];
60
+ },
61
+ mapServer() {
62
+ return this.entry.mapServer || null;
63
+ },
64
+ sckanVersion() {
65
+ return this.entry.sckanVersion || null;
66
+ }
67
+ },
68
+ methods: {
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
+ });
74
+ },
75
+ onConnectivityHovered: function(t) {
76
+ const i = {
77
+ connectivityInfo: this.graphEntry,
78
+ label: t,
79
+ data: t ? this.getConnectivityDatasets(t) : []
80
+ };
81
+ r.emit("connectivity-hovered", i);
82
+ },
83
+ 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) => {
88
+ const e = i.find(
89
+ (c) => c.name.toLowerCase().trim() === n.toLowerCase().trim()
90
+ );
91
+ e && a.push({
92
+ id: e.id,
93
+ label: e.name
94
+ });
95
+ }), a;
96
+ }
97
+ }
98
+ }, u = { class: "viewer-container" };
99
+ function C(t, i, s, a, o, n) {
100
+ const e = p("MapUtilitiesConnectivityGraph");
101
+ return d(), l("div", u, [
102
+ v(e, {
103
+ entry: n.graphEntry,
104
+ mapServer: n.mapServer,
105
+ sckanVersion: n.sckanVersion,
106
+ connectivityFromMap: n.connectivityFromMap,
107
+ connectivityError: n.connectivityError,
108
+ origins: n.origins,
109
+ components: n.components,
110
+ destinations: n.destinations,
111
+ originsWithDatasets: n.originsWithDatasets,
112
+ componentsWithDatasets: n.componentsWithDatasets,
113
+ destinationsWithDatasets: n.destinationsWithDatasets,
114
+ hasSingleConnectivityList: n.hasSingleConnectivityList,
115
+ originsCombinations: n.originsCombinations,
116
+ componentsCombinations: n.componentsCombinations,
117
+ destinationsCombinations: n.destinationsCombinations,
118
+ onTapNode: n.onTapNode
119
+ }, null, 8, ["entry", "mapServer", "sckanVersion", "connectivityFromMap", "connectivityError", "origins", "components", "destinations", "originsWithDatasets", "componentsWithDatasets", "destinationsWithDatasets", "hasSingleConnectivityList", "originsCombinations", "componentsCombinations", "destinationsCombinations", "onTapNode"])
120
+ ]);
121
+ }
122
+ const b = /* @__PURE__ */ h(g, [["render", C], ["__scopeId", "data-v-485c95c8"]]);
123
+ export {
124
+ b as default
125
+ };