@abi-software/mapintegratedvuer 1.20.1 → 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.
Files changed (41) hide show
  1. package/cypress.config.js +8 -7
  2. package/dist/ConnectivityGraph-CZMROk9r.js +121 -0
  3. package/dist/ContentMixin-Vn34n5t2.js +1672 -0
  4. package/dist/DynamicMarkerMixin-B087dVL_.js +50 -0
  5. package/dist/Flatmap-Bm7m_5m_.js +193 -0
  6. package/dist/Iframe-BWbhTjCR.js +18 -0
  7. package/dist/MultiFlatmap-JziqSEwL.js +303 -0
  8. package/dist/Plot-ChbPsDZX.js +28 -0
  9. package/dist/Scaffold-C6f7c7Ha.js +308 -0
  10. package/dist/Simulation-DcJScRYo.js +25 -0
  11. package/dist/connectivities-UXTqf7_0.js +35743 -0
  12. package/dist/mapintegratedvuer.js +43234 -3
  13. package/dist/mapintegratedvuer.umd.cjs +556 -297
  14. package/dist/style.css +2 -1
  15. package/eslint.config.js +33 -0
  16. package/package.json +61 -76
  17. package/src/assets/fonts.scss +2 -0
  18. package/src/assets/header-icon.scss +2 -1
  19. package/src/assets/styles.scss +2 -3
  20. package/src/components/CustomSplitter.vue +3 -3
  21. package/src/components/SearchControls.vue +1 -1
  22. package/src/components/index.js +1 -0
  23. package/src/components/scripts/simulation_data.js +461 -0
  24. package/src/components/viewers/Flatmap.vue +11 -7
  25. package/src/components/viewers/MultiFlatmap.vue +12 -8
  26. package/src/components.d.ts +6 -2
  27. package/src/main.js +2 -1
  28. package/vite.bundle-build.js +19 -4
  29. package/vite.config.js +16 -1
  30. package/babel.config.js +0 -0
  31. package/dist/ConnectivityGraph-C2SH21O2.js +0 -123
  32. package/dist/ContentMixin-DyNQa5V5.js +0 -1725
  33. package/dist/Flatmap-2O4GdIZV.js +0 -203
  34. package/dist/Iframe-ComVJ_Ev.js +0 -20
  35. package/dist/MultiFlatmap-oVdJqKEz.js +0 -317
  36. package/dist/Plot-CYyVTjHQ.js +0 -25
  37. package/dist/Scaffold-DXGZqxdu.js +0 -305
  38. package/dist/Simulation-DNOubbSn.js +0 -28
  39. package/dist/index-BkejiyeA.js +0 -79223
  40. package/dist/style-3VbUVJif.js +0 -57
  41. 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 };