@abi-software/mapintegratedvuer 1.20.0 → 1.21.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.
- package/cypress.config.js +8 -7
- package/dist/ConnectivityGraph-CZMROk9r.js +121 -0
- package/dist/ContentMixin-Vn34n5t2.js +1672 -0
- package/dist/DynamicMarkerMixin-B087dVL_.js +50 -0
- package/dist/Flatmap-Bm7m_5m_.js +193 -0
- package/dist/Iframe-BWbhTjCR.js +18 -0
- package/dist/MultiFlatmap-JziqSEwL.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/App.vue +58 -24
- 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/MapContent.vue +11 -0
- package/src/components/SearchControls.vue +1 -1
- package/src/components/SplitFlow.vue +6 -5
- package/src/components/index.js +1 -0
- package/src/components/scripts/simulation_data.js +461 -0
- package/src/components/viewers/Flatmap.vue +13 -8
- package/src/components/viewers/MultiFlatmap.vue +13 -8
- package/src/components.d.ts +6 -2
- package/src/main.js +2 -1
- package/src/mixins/ContentMixin.js +81 -1
- package/vite.bundle-build.js +19 -4
- package/vite.config.js +16 -1
- package/babel.config.js +0 -0
- package/dist/ConnectivityGraph-B2xlAebI.js +0 -123
- package/dist/ContentMixin-jHFoA2A8.js +0 -1675
- package/dist/Flatmap-CBB2P9Ql.js +0 -202
- package/dist/Iframe-BXPDKp2g.js +0 -20
- package/dist/MultiFlatmap-BPUGtzDT.js +0 -316
- package/dist/Plot-CAAiTTub.js +0 -25
- package/dist/Scaffold-oW-i75jl.js +0 -305
- package/dist/Simulation-D5BM15nU.js +0 -28
- package/dist/index-B6Cnscja.js +0 -79215
- package/dist/style-DuFTyFX4.js +0 -57
- package/static.json +0 -7
package/vite.bundle-build.js
CHANGED
|
@@ -7,13 +7,23 @@ export default defineConfig((configEnv) => {
|
|
|
7
7
|
const config = rootConfig(configEnv);
|
|
8
8
|
config.build = {
|
|
9
9
|
lib: {
|
|
10
|
-
entry: path.resolve(
|
|
10
|
+
entry: path.resolve(import.meta.dirname, "./src/components/index.js"),
|
|
11
11
|
name: "MapintegratedVuer",
|
|
12
12
|
fileName: "mapintegratedvuer",
|
|
13
13
|
},
|
|
14
14
|
rollupOptions: {
|
|
15
|
-
external: [
|
|
16
|
-
"
|
|
15
|
+
external: [
|
|
16
|
+
"vue",
|
|
17
|
+
"pinia",
|
|
18
|
+
"@abi-software/flatmapvuer",
|
|
19
|
+
"@abi-software/plotvuer",
|
|
20
|
+
"@abi-software/scaffoldvuer",
|
|
21
|
+
"@abi-software/simulationvuer",
|
|
22
|
+
"@abi-software/flatmapvuer/dist/style.css",
|
|
23
|
+
"@abi-software/plotvuer/dist/style.css",
|
|
24
|
+
"@abi-software/scaffoldvuer/dist/style.css",
|
|
25
|
+
"@abi-software/simulationvuer/dist/style.css",
|
|
26
|
+
],
|
|
17
27
|
output: {
|
|
18
28
|
globals: {
|
|
19
29
|
vue: "Vue",
|
|
@@ -23,9 +33,14 @@ export default defineConfig((configEnv) => {
|
|
|
23
33
|
"@abi-software/scaffoldvuer": "scaffoldvuer",
|
|
24
34
|
"@abi-software/simulationvuer": "simulationvuer",
|
|
25
35
|
},
|
|
36
|
+
// keep css output name stable for the "./dist/style.css" export/import paths
|
|
37
|
+
assetFileNames: (assetInfo) =>
|
|
38
|
+
assetInfo.name?.endsWith(".css")
|
|
39
|
+
? "style.css"
|
|
40
|
+
: "assets/[name][extname]",
|
|
26
41
|
},
|
|
27
42
|
},
|
|
28
43
|
};
|
|
29
|
-
|
|
44
|
+
|
|
30
45
|
return config;
|
|
31
46
|
})
|
package/vite.config.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
1
3
|
import { defineConfig } from "vite";
|
|
2
4
|
import vue from "@vitejs/plugin-vue";
|
|
3
5
|
import Components from "unplugin-vue-components/vite";
|
|
4
6
|
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
|
|
5
7
|
|
|
8
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const pathSrc = path.resolve(__dirname, "./src");
|
|
10
|
+
|
|
6
11
|
// https://vitejs.dev/config/
|
|
7
12
|
export default defineConfig(({ command, mode }) => {
|
|
8
13
|
const config = {
|
|
9
14
|
css: {
|
|
10
15
|
preprocessorOptions: {
|
|
11
16
|
scss: {
|
|
12
|
-
|
|
17
|
+
api: 'modern-compiler',
|
|
18
|
+
additionalData: `@use '@/assets/styles' as *;`,
|
|
13
19
|
},
|
|
14
20
|
},
|
|
15
21
|
},
|
|
@@ -36,11 +42,20 @@ export default defineConfig(({ command, mode }) => {
|
|
|
36
42
|
optimizeDeps: {
|
|
37
43
|
exclude: ["vue-router"],
|
|
38
44
|
},
|
|
45
|
+
resolve: {
|
|
46
|
+
alias: {
|
|
47
|
+
"@": pathSrc,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
39
50
|
};
|
|
40
51
|
|
|
41
52
|
if (command === "serve") {
|
|
42
53
|
config.server = {
|
|
43
54
|
port: 8081,
|
|
55
|
+
headers: {
|
|
56
|
+
"Cross-Origin-Opener-Policy": "same-origin",
|
|
57
|
+
"Cross-Origin-Embedder-Policy": "credentialless",
|
|
58
|
+
},
|
|
44
59
|
};
|
|
45
60
|
config.define = {
|
|
46
61
|
"process.env.HTTP_PROXY": 8081,
|
package/babel.config.js
DELETED
|
File without changes
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { _ as c, N as h, E as m } from "./index-B6Cnscja.js";
|
|
2
|
-
import { C as y } from "./ContentMixin-jHFoA2A8.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: h
|
|
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((a) => a.label).join(", ");
|
|
71
|
-
this.onConnectivityHovered(i);
|
|
72
|
-
},
|
|
73
|
-
onConnectivityHovered: function(t) {
|
|
74
|
-
const i = {
|
|
75
|
-
connectivityInfo: this.entry.connectivityInfo,
|
|
76
|
-
label: t,
|
|
77
|
-
data: t ? this.getConnectivityDatasets(t) : []
|
|
78
|
-
};
|
|
79
|
-
m.emit("connectivity-hovered", i);
|
|
80
|
-
},
|
|
81
|
-
getConnectivityDatasets: function(t) {
|
|
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) => {
|
|
86
|
-
const e = i.find(
|
|
87
|
-
(r) => r.name.toLowerCase().trim() === n.toLowerCase().trim()
|
|
88
|
-
);
|
|
89
|
-
e && o.push({
|
|
90
|
-
id: e.id,
|
|
91
|
-
label: e.name
|
|
92
|
-
});
|
|
93
|
-
}), o;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}, C = { class: "viewer-container" };
|
|
97
|
-
function u(t, i, a, o, s, n) {
|
|
98
|
-
const e = p("MapUtilitiesConnectivityGraph");
|
|
99
|
-
return d(), l("div", C, [
|
|
100
|
-
v(e, {
|
|
101
|
-
entry: n.graphEntry,
|
|
102
|
-
mapServer: n.mapServer,
|
|
103
|
-
sckanVersion: n.sckanVersion,
|
|
104
|
-
connectivityFromMap: n.connectivityFromMap,
|
|
105
|
-
connectivityError: n.connectivityError,
|
|
106
|
-
origins: n.origins,
|
|
107
|
-
components: n.components,
|
|
108
|
-
destinations: n.destinations,
|
|
109
|
-
originsWithDatasets: n.originsWithDatasets,
|
|
110
|
-
componentsWithDatasets: n.componentsWithDatasets,
|
|
111
|
-
destinationsWithDatasets: n.destinationsWithDatasets,
|
|
112
|
-
hasSingleConnectivityList: n.hasSingleConnectivityList,
|
|
113
|
-
originsCombinations: n.originsCombinations,
|
|
114
|
-
componentsCombinations: n.componentsCombinations,
|
|
115
|
-
destinationsCombinations: n.destinationsCombinations,
|
|
116
|
-
onTapNode: n.onTapNode
|
|
117
|
-
}, null, 8, ["entry", "mapServer", "sckanVersion", "connectivityFromMap", "connectivityError", "origins", "components", "destinations", "originsWithDatasets", "componentsWithDatasets", "destinationsWithDatasets", "hasSingleConnectivityList", "originsCombinations", "componentsCombinations", "destinationsCombinations", "onTapNode"])
|
|
118
|
-
]);
|
|
119
|
-
}
|
|
120
|
-
const W = /* @__PURE__ */ c(g, [["render", u], ["__scopeId", "data-v-70988bee"]]);
|
|
121
|
-
export {
|
|
122
|
-
W as default
|
|
123
|
-
};
|