@abi-software/flatmapvuer 1.17.1-demo.0 → 1.18.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/README.md +28 -6
- package/cypress.config.js +19 -19
- package/dist/flatmapvuer.js +2684 -3322
- package/dist/flatmapvuer.umd.cjs +10 -18
- package/dist/index.html +9 -6
- package/dist/style.css +1 -1
- package/eslint.config.js +43 -9
- package/package.json +9 -3
- package/public/index.html +9 -6
- package/reporter-config.json +1 -1
- package/src/App.vue +57 -89
- package/src/assets/_variables.scss +12 -10
- package/src/components/EventBus.js +3 -3
- package/src/components/FlatmapError.vue +38 -38
- package/src/components/FlatmapVuer.vue +891 -946
- package/src/components/MultiFlatmapVuer.vue +257 -158
- package/src/components/SelectionsGroup.vue +66 -82
- package/src/components/index.js +2 -2
- package/src/components/legends/DynamicLegends.vue +5 -10
- package/src/components/legends/LegendItem.vue +32 -35
- package/src/components/legends/SvgLegends.vue +1 -1
- package/src/components/utilities.js +3 -7
- package/src/components.d.ts +1 -0
- package/src/icons/flatmap-marker.js +1 -1
- package/src/icons/mapicon-species-style.css +10 -8
- package/src/icons/yellowstar.js +1 -1
- package/src/main.js +12 -14
- package/src/services/flatmapKnowledge.js +7 -11
- package/src/services/flatmapQueries.js +282 -279
- package/src/store/index.js +7 -7
- package/vite.config.js +33 -34
- package/vite.static-build.js +4 -4
- package/vuese-generator.js +47 -56
- package/src/services/somaLocationMarkers.js +0 -125
|
@@ -45,7 +45,7 @@ async function filterPathsByOriginFromKnowledge(resource) {
|
|
|
45
45
|
const flatmapKnowledge = getFlatmapKnowledge();
|
|
46
46
|
const results = findPathsByOriginItem(flatmapKnowledge, resource);
|
|
47
47
|
if (Array.isArray(results)) {
|
|
48
|
-
return results.map(x => x.id);
|
|
48
|
+
return results.map((x) => x.id);
|
|
49
49
|
}
|
|
50
50
|
return [];
|
|
51
51
|
}
|
|
@@ -54,7 +54,7 @@ async function filterPathsByDestinationFromKnowledge(resource) {
|
|
|
54
54
|
const flatmapKnowledge = getFlatmapKnowledge();
|
|
55
55
|
const results = findPathsByDestinationItem(flatmapKnowledge, resource);
|
|
56
56
|
if (Array.isArray(results)) {
|
|
57
|
-
return results.map(x => x.id);
|
|
57
|
+
return results.map((x) => x.id);
|
|
58
58
|
}
|
|
59
59
|
return [];
|
|
60
60
|
}
|
|
@@ -63,7 +63,7 @@ async function filterPathsByViaFromKnowledge(resource) {
|
|
|
63
63
|
const flatmapKnowledge = getFlatmapKnowledge();
|
|
64
64
|
const results = findPathsByViaItem(flatmapKnowledge, resource);
|
|
65
65
|
if (Array.isArray(results)) {
|
|
66
|
-
return results.map(x => x.id);
|
|
66
|
+
return results.map((x) => x.id);
|
|
67
67
|
}
|
|
68
68
|
return [];
|
|
69
69
|
}
|
|
@@ -91,13 +91,13 @@ async function loadAndStoreKnowledge(mapImp, flatmapQueries) {
|
|
|
91
91
|
where source="${knowledgeSource}"
|
|
92
92
|
order by source desc`;
|
|
93
93
|
|
|
94
|
-
refreshFlatmapKnowledgeCache()
|
|
94
|
+
refreshFlatmapKnowledgeCache();
|
|
95
95
|
const flatmapKnowledge = sessionStorage.getItem('flatmap-knowledge');
|
|
96
96
|
const flatmapKnowledgeSource = sessionStorage.getItem('flatmap-knowledge-source');
|
|
97
97
|
|
|
98
98
|
if (!flatmapKnowledge || flatmapKnowledgeSource !== knowledgeSource) {
|
|
99
99
|
const response = await flatmapQueries.queryKnowledge(sql);
|
|
100
|
-
const parsedData = response.map(x => JSON.parse(x));
|
|
100
|
+
const parsedData = response.map((x) => JSON.parse(x));
|
|
101
101
|
|
|
102
102
|
sessionStorage.setItem('flatmap-knowledge', JSON.stringify(parsedData));
|
|
103
103
|
sessionStorage.setItem('flatmap-knowledge-source', knowledgeSource);
|
|
@@ -117,11 +117,7 @@ function updateFlatmapKnowledgeCache() {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
function removeFlatmapKnowledgeCache() {
|
|
120
|
-
const keys = [
|
|
121
|
-
'flatmap-knowledge',
|
|
122
|
-
'flatmap-knowledge-expiry',
|
|
123
|
-
'flatmap-knowledge-source',
|
|
124
|
-
];
|
|
120
|
+
const keys = ['flatmap-knowledge', 'flatmap-knowledge-expiry', 'flatmap-knowledge-source'];
|
|
125
121
|
|
|
126
122
|
keys.forEach((key) => {
|
|
127
123
|
sessionStorage.removeItem(key);
|
|
@@ -147,4 +143,4 @@ export {
|
|
|
147
143
|
filterPathsByOriginFromKnowledge,
|
|
148
144
|
filterPathsByDestinationFromKnowledge,
|
|
149
145
|
filterPathsByViaFromKnowledge,
|
|
150
|
-
}
|
|
146
|
+
};
|