@abi-software/mapintegratedvuer 1.20.1 → 1.21.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.
- package/cypress.config.js +8 -7
- package/dist/ConnectivityGraph-CZMROk9r.js +121 -0
- package/dist/ContentMixin-Vn34n5t2.js +1672 -0
- package/dist/DynamicMarkerMixin-BS6t7w_i.js +50 -0
- package/dist/Flatmap-BejxA0uz.js +193 -0
- package/dist/Iframe-BWbhTjCR.js +18 -0
- package/dist/MultiFlatmap-nlmsH-Ib.js +303 -0
- package/dist/Plot-ChbPsDZX.js +28 -0
- package/dist/Scaffold-C6f7c7Ha.js +308 -0
- package/dist/Simulation-DcJScRYo.js +25 -0
- package/dist/connectivities-UXTqf7_0.js +35743 -0
- package/dist/mapintegratedvuer.js +43234 -3
- package/dist/mapintegratedvuer.umd.cjs +556 -297
- package/dist/style.css +2 -1
- package/eslint.config.js +33 -0
- package/package.json +61 -76
- package/src/assets/fonts.scss +2 -0
- package/src/assets/header-icon.scss +2 -1
- package/src/assets/styles.scss +2 -3
- package/src/components/CustomSplitter.vue +3 -3
- package/src/components/SearchControls.vue +1 -1
- package/src/components/index.js +1 -0
- package/src/components/scripts/simulation_data.js +461 -0
- package/src/components/viewers/Flatmap.vue +11 -7
- package/src/components/viewers/MultiFlatmap.vue +12 -8
- package/src/components.d.ts +6 -2
- package/src/main.js +2 -1
- package/src/mixins/DynamicMarkerMixin.js +3 -3
- package/vite.bundle-build.js +19 -4
- package/vite.config.js +16 -1
- package/babel.config.js +0 -0
- package/dist/ConnectivityGraph-C2SH21O2.js +0 -123
- package/dist/ContentMixin-DyNQa5V5.js +0 -1725
- package/dist/Flatmap-2O4GdIZV.js +0 -203
- package/dist/Iframe-ComVJ_Ev.js +0 -20
- package/dist/MultiFlatmap-oVdJqKEz.js +0 -317
- package/dist/Plot-CYyVTjHQ.js +0 -25
- package/dist/Scaffold-DXGZqxdu.js +0 -305
- package/dist/Simulation-DNOubbSn.js +0 -28
- package/dist/index-BkejiyeA.js +0 -79223
- package/dist/style-3VbUVJif.js +0 -57
- package/static.json +0 -7
package/cypress.config.js
CHANGED
|
@@ -10,6 +10,13 @@ export default {
|
|
|
10
10
|
reporterOptions: {
|
|
11
11
|
configFile: "reporter-config.json",
|
|
12
12
|
},
|
|
13
|
+
expose: {
|
|
14
|
+
visualRegressionType: 'regression',
|
|
15
|
+
visualRegressionBaseDirectory: 'cypress/snapshots/MapContent.cy.js/base',
|
|
16
|
+
visualRegressionDiffDirectory: 'cypress/snapshots/diff',
|
|
17
|
+
visualRegressionGenerateDiff: 'always',
|
|
18
|
+
visualRegressionFailSilently: false,
|
|
19
|
+
},
|
|
13
20
|
component: {
|
|
14
21
|
viewportWidth: 1440,
|
|
15
22
|
viewportHeight: 900,
|
|
@@ -18,13 +25,6 @@ export default {
|
|
|
18
25
|
framework: "vue",
|
|
19
26
|
bundler: "vite",
|
|
20
27
|
},
|
|
21
|
-
env: {
|
|
22
|
-
visualRegressionType: 'regression',
|
|
23
|
-
visualRegressionBaseDirectory: 'cypress/snapshots/MapContent.cy.js/base',
|
|
24
|
-
visualRegressionDiffDirectory: 'cypress/snapshots/diff',
|
|
25
|
-
visualRegressionGenerateDiff: 'always',
|
|
26
|
-
visualRegressionFailSilently: false,
|
|
27
|
-
},
|
|
28
28
|
screenshotsFolder: './cypress/snapshots',
|
|
29
29
|
setupNodeEvents(on, config) {
|
|
30
30
|
on('task', {
|
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
36
|
configureVisualRegression(on);
|
|
37
|
+
return config;
|
|
37
38
|
},
|
|
38
39
|
trashAssetsBeforeRuns: false,
|
|
39
40
|
},
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { T as e, _ as t, b as n } from "./connectivities-UXTqf7_0.js";
|
|
2
|
+
import { t as r } from "./ContentMixin-Vn34n5t2.js";
|
|
3
|
+
import { createElementBlock as i, createVNode as a, openBlock as o, resolveComponent as s } from "vue";
|
|
4
|
+
//#region src/components/viewers/ConnectivityGraph.vue
|
|
5
|
+
var c = {
|
|
6
|
+
name: "ConnectivityGraph",
|
|
7
|
+
mixins: [r],
|
|
8
|
+
components: { MapUtilitiesConnectivityGraph: e },
|
|
9
|
+
computed: {
|
|
10
|
+
graphEntry() {
|
|
11
|
+
return this.entry.resource;
|
|
12
|
+
},
|
|
13
|
+
connectivityError() {
|
|
14
|
+
return {};
|
|
15
|
+
},
|
|
16
|
+
connectivityFromMap() {
|
|
17
|
+
return this.entry.graphPayload?.connectivityFromMap || null;
|
|
18
|
+
},
|
|
19
|
+
origins() {
|
|
20
|
+
return this.entry.graphPayload?.origins || [];
|
|
21
|
+
},
|
|
22
|
+
components() {
|
|
23
|
+
return this.entry.graphPayload?.components || [];
|
|
24
|
+
},
|
|
25
|
+
destinations() {
|
|
26
|
+
return this.entry.graphPayload?.destinations || [];
|
|
27
|
+
},
|
|
28
|
+
originsWithDatasets() {
|
|
29
|
+
return this.entry.graphPayload?.originsWithDatasets || [];
|
|
30
|
+
},
|
|
31
|
+
componentsWithDatasets() {
|
|
32
|
+
return this.entry.graphPayload?.componentsWithDatasets || [];
|
|
33
|
+
},
|
|
34
|
+
destinationsWithDatasets() {
|
|
35
|
+
return this.entry.graphPayload?.destinationsWithDatasets || [];
|
|
36
|
+
},
|
|
37
|
+
hasSingleConnectivityList() {
|
|
38
|
+
return this.entry.graphPayload?.hasSingleConnectivityList || !1;
|
|
39
|
+
},
|
|
40
|
+
originsCombinations() {
|
|
41
|
+
return this.entry.graphPayload?.originsCombinations || [];
|
|
42
|
+
},
|
|
43
|
+
componentsCombinations() {
|
|
44
|
+
return this.entry.graphPayload?.componentsCombinations || [];
|
|
45
|
+
},
|
|
46
|
+
destinationsCombinations() {
|
|
47
|
+
return this.entry.graphPayload?.destinationsCombinations || [];
|
|
48
|
+
},
|
|
49
|
+
mapServer() {
|
|
50
|
+
return this.entry.mapServer || null;
|
|
51
|
+
},
|
|
52
|
+
sckanVersion() {
|
|
53
|
+
return this.entry.sckanVersion || null;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
onTapNode: function(e) {
|
|
58
|
+
let t = e.map((e) => e.label).join(", ");
|
|
59
|
+
this.onConnectivityHovered(t);
|
|
60
|
+
},
|
|
61
|
+
onConnectivityHovered: function(e) {
|
|
62
|
+
let t = {
|
|
63
|
+
connectivityInfo: this.entry.connectivityInfo,
|
|
64
|
+
label: e,
|
|
65
|
+
data: e ? this.getConnectivityDatasets(e) : []
|
|
66
|
+
};
|
|
67
|
+
n.emit("connectivity-hovered", t);
|
|
68
|
+
},
|
|
69
|
+
getConnectivityDatasets: function(e) {
|
|
70
|
+
let t = this.entry.graphPayload?.allWithDatasets || [], n = e.split(","), r = [];
|
|
71
|
+
return n.forEach((e) => {
|
|
72
|
+
let n = t.find((t) => t.name.toLowerCase().trim() === e.toLowerCase().trim());
|
|
73
|
+
n && r.push({
|
|
74
|
+
id: n.id,
|
|
75
|
+
label: n.name
|
|
76
|
+
});
|
|
77
|
+
}), r;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}, l = { class: "viewer-container" };
|
|
81
|
+
function u(e, t, n, r, c, u) {
|
|
82
|
+
let d = s("MapUtilitiesConnectivityGraph");
|
|
83
|
+
return o(), i("div", l, [a(d, {
|
|
84
|
+
entry: u.graphEntry,
|
|
85
|
+
mapServer: u.mapServer,
|
|
86
|
+
sckanVersion: u.sckanVersion,
|
|
87
|
+
connectivityFromMap: u.connectivityFromMap,
|
|
88
|
+
connectivityError: u.connectivityError,
|
|
89
|
+
origins: u.origins,
|
|
90
|
+
components: u.components,
|
|
91
|
+
destinations: u.destinations,
|
|
92
|
+
originsWithDatasets: u.originsWithDatasets,
|
|
93
|
+
componentsWithDatasets: u.componentsWithDatasets,
|
|
94
|
+
destinationsWithDatasets: u.destinationsWithDatasets,
|
|
95
|
+
hasSingleConnectivityList: u.hasSingleConnectivityList,
|
|
96
|
+
originsCombinations: u.originsCombinations,
|
|
97
|
+
componentsCombinations: u.componentsCombinations,
|
|
98
|
+
destinationsCombinations: u.destinationsCombinations,
|
|
99
|
+
onTapNode: u.onTapNode
|
|
100
|
+
}, null, 8, [
|
|
101
|
+
"entry",
|
|
102
|
+
"mapServer",
|
|
103
|
+
"sckanVersion",
|
|
104
|
+
"connectivityFromMap",
|
|
105
|
+
"connectivityError",
|
|
106
|
+
"origins",
|
|
107
|
+
"components",
|
|
108
|
+
"destinations",
|
|
109
|
+
"originsWithDatasets",
|
|
110
|
+
"componentsWithDatasets",
|
|
111
|
+
"destinationsWithDatasets",
|
|
112
|
+
"hasSingleConnectivityList",
|
|
113
|
+
"originsCombinations",
|
|
114
|
+
"componentsCombinations",
|
|
115
|
+
"destinationsCombinations",
|
|
116
|
+
"onTapNode"
|
|
117
|
+
])]);
|
|
118
|
+
}
|
|
119
|
+
var d = /*#__PURE__*/ t(c, [["render", u], ["__scopeId", "data-v-70988bee"]]);
|
|
120
|
+
//#endregion
|
|
121
|
+
export { d as default };
|