@abi-software/mapintegratedvuer 1.21.1 → 1.21.2
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 +23 -5
- package/assets/location-icon.html +33 -1
- package/assets/styleguide.css +18 -18
- package/cypress.config.js +7 -9
- package/dist/{ConnectivityGraph-CZMROk9r.js → ConnectivityGraph-DrSaFEDd.js} +3 -3
- package/dist/{ContentMixin-Vn34n5t2.js → ContentMixin-Xg0PjBqG.js} +2 -2
- package/dist/{DynamicMarkerMixin-BS6t7w_i.js → DynamicMarkerMixin-D5Ruu_hd.js} +1 -1
- package/dist/{Flatmap-BejxA0uz.js → Flatmap-CxN8TbnS.js} +4 -4
- package/dist/{Iframe-BWbhTjCR.js → Iframe-CkgbLfJt.js} +4 -4
- package/dist/{MultiFlatmap-nlmsH-Ib.js → MultiFlatmap-CkejvAJe.js} +4 -4
- package/dist/{Plot-ChbPsDZX.js → Plot-BfwoipSl.js} +2 -2
- package/dist/{Scaffold-C6f7c7Ha.js → Scaffold-DCqsTKpg.js} +4 -4
- package/dist/{Simulation-DcJScRYo.js → Simulation-BOtU3kTT.js} +2 -2
- package/dist/{connectivities-UXTqf7_0.js → connectivities-DyeS8w0c.js} +126 -95
- package/dist/index.html +9 -6
- package/dist/mapintegratedvuer.js +5489 -5578
- package/dist/mapintegratedvuer.umd.cjs +196 -196
- package/dist/style.css +1 -1
- package/eslint.config.js +39 -15
- package/package.json +11 -5
- package/public/index.html +9 -6
- package/src/App.vue +234 -249
- package/src/assets/_variables.scss +12 -10
- package/src/assets/header-icon.scss +8 -9
- package/src/assets/mapicon-species-style.css +10 -8
- package/src/assets/styles.scss +1 -1
- package/src/components/ContentBar.vue +98 -106
- package/src/components/ContentVuer.vue +36 -39
- package/src/components/ContextCard.vue +238 -199
- package/src/components/ContextHelp.vue +22 -26
- package/src/components/CustomSplitter.vue +32 -43
- package/src/components/DatasetHeader.vue +37 -41
- package/src/components/DialogToolbarContent.vue +292 -256
- package/src/components/FlatmapContextCard.vue +52 -57
- package/src/components/MapContent.vue +90 -86
- package/src/components/ResizeSensor.vue +8 -13
- package/src/components/SearchControls.vue +26 -35
- package/src/components/SimulatedData.js +196 -219
- package/src/components/SplitDialog.vue +139 -129
- package/src/components/SplitFlow.vue +421 -237
- package/src/components/index.js +1 -3
- package/src/components/scripts/simulation_data.js +393 -397
- package/src/components/scripts/utilities.js +108 -78
- package/src/components/viewers/CellDLViewer.vue +9 -9
- package/src/components/viewers/ConnectivityGraph.vue +9 -12
- package/src/components/viewers/Flatmap.vue +23 -25
- package/src/components/viewers/Iframe.vue +8 -10
- package/src/components/viewers/MultiFlatmap.vue +59 -69
- package/src/components/viewers/Plot.vue +6 -7
- package/src/components/viewers/Scaffold.vue +73 -63
- package/src/components/viewers/Simulation.vue +10 -15
- package/src/main.js +16 -21
- package/src/mixins/ContentMixin.js +208 -178
- package/src/mixins/DynamicMarkerMixin.js +14 -18
- package/src/mixins/RetrieveContextCardMixin.js +35 -30
- package/src/mixins/S3Bucket.vue +10 -13
- package/src/services/knowledgeMapping.js +53 -53
- package/src/services/tagging.js +4 -4
- package/src/stores/connectivities.js +46 -8
- package/src/stores/entries.js +7 -9
- package/src/stores/index.js +7 -7
- package/src/stores/settings.js +23 -31
- package/src/stores/splitFlow.js +364 -298
- package/vite.bundle-build.js +24 -26
- package/vite.config.js +22 -21
- package/vite.static-build.js +4 -4
- package/vitest.workspace.js +1 -3
- package/vuese-generator.js +47 -55
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@scaffold-view-clicked="scaffoldViewClicked"
|
|
13
13
|
@vue:mounted="setPanesBoundary"
|
|
14
14
|
/>
|
|
15
|
-
|
|
15
|
+
<!--
|
|
16
16
|
<DatasetHeader
|
|
17
17
|
v-if="entry.datasetTitle"
|
|
18
18
|
class="dataset-header"
|
|
@@ -38,24 +38,22 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
|
|
40
40
|
<script>
|
|
41
|
-
|
|
42
|
-
import
|
|
43
|
-
import { ElButton as Button } from "element-plus";
|
|
44
|
-
import ContentBar from "./ContentBar.vue";
|
|
41
|
+
import { defineAsyncComponent } from 'vue';
|
|
42
|
+
import ContentBar from './ContentBar.vue';
|
|
45
43
|
import { mapStores } from 'pinia';
|
|
46
44
|
import { useEntriesStore } from '../stores/entries';
|
|
47
45
|
import { useSplitFlowStore } from '../stores/splitFlow';
|
|
48
46
|
|
|
49
|
-
const Flatmap = defineAsyncComponent(() => import(
|
|
50
|
-
const
|
|
51
|
-
const MultiFlatmap = defineAsyncComponent(() => import(
|
|
52
|
-
const ConnectivityGraph = defineAsyncComponent(() => import(
|
|
53
|
-
const Plot = defineAsyncComponent(() => import(
|
|
54
|
-
const Scaffold = defineAsyncComponent(() => import(
|
|
55
|
-
const Simulation = defineAsyncComponent(() => import(
|
|
47
|
+
const Flatmap = defineAsyncComponent(() => import('./viewers/Flatmap.vue'));
|
|
48
|
+
const MapIframe = defineAsyncComponent(() => import('./viewers/Iframe.vue'));
|
|
49
|
+
const MultiFlatmap = defineAsyncComponent(() => import('./viewers/MultiFlatmap.vue'));
|
|
50
|
+
const ConnectivityGraph = defineAsyncComponent(() => import('./viewers/ConnectivityGraph.vue'));
|
|
51
|
+
const Plot = defineAsyncComponent(() => import('./viewers/Plot.vue'));
|
|
52
|
+
const Scaffold = defineAsyncComponent(() => import('./viewers/Scaffold.vue'));
|
|
53
|
+
const Simulation = defineAsyncComponent(() => import('./viewers/Simulation.vue'));
|
|
56
54
|
|
|
57
55
|
export default {
|
|
58
|
-
name:
|
|
56
|
+
name: 'ContentVuer',
|
|
59
57
|
props: {
|
|
60
58
|
/**
|
|
61
59
|
* Object containing information for
|
|
@@ -69,18 +67,17 @@ export default {
|
|
|
69
67
|
},
|
|
70
68
|
components: {
|
|
71
69
|
//DatasetHeader,
|
|
72
|
-
Button,
|
|
73
70
|
ContentBar,
|
|
74
71
|
ConnectivityGraph,
|
|
75
72
|
Flatmap,
|
|
76
|
-
|
|
73
|
+
MapIframe,
|
|
77
74
|
MultiFlatmap,
|
|
78
75
|
Plot,
|
|
79
76
|
Scaffold,
|
|
80
77
|
Simulation,
|
|
81
78
|
},
|
|
82
79
|
methods: {
|
|
83
|
-
flatmapProvenanceReady: function(prov) {
|
|
80
|
+
flatmapProvenanceReady: function (prov) {
|
|
84
81
|
this.$refs.contentBar?.setupFlatmapContextCard(prov);
|
|
85
82
|
this.entriesStore.updateMapForEntry(this.entry, prov);
|
|
86
83
|
},
|
|
@@ -91,11 +88,11 @@ export default {
|
|
|
91
88
|
return this.$refs.viewer?.getState();
|
|
92
89
|
},
|
|
93
90
|
resourceSelected: function (payload) {
|
|
94
|
-
this.$emit(
|
|
91
|
+
this.$emit('resource-selected', payload);
|
|
95
92
|
},
|
|
96
93
|
scaffoldViewClicked: function (viewUrl) {
|
|
97
94
|
if (this.entry.viewUrl !== viewUrl) {
|
|
98
|
-
this.entriesStore.updateViewForEntry({id: this.entry.id, viewUrl});
|
|
95
|
+
this.entriesStore.updateViewForEntry({ id: this.entry.id, viewUrl });
|
|
99
96
|
} else {
|
|
100
97
|
//Manually set it as it cannot be set with reactivity
|
|
101
98
|
this.$refs.viewer?.updateWithViewUrl(viewUrl);
|
|
@@ -111,74 +108,74 @@ export default {
|
|
|
111
108
|
/**
|
|
112
109
|
* Push the suggested terms into the suggestions array
|
|
113
110
|
*/
|
|
114
|
-
searchSuggestions: function(term, suggestions) {
|
|
111
|
+
searchSuggestions: function (term, suggestions) {
|
|
115
112
|
this.$refs.viewer?.searchSuggestions(term, suggestions);
|
|
116
113
|
},
|
|
117
|
-
setPanesBoundary: function() {
|
|
118
|
-
this.$refs.contentBar?.setBoundary(this.$refs[
|
|
114
|
+
setPanesBoundary: function () {
|
|
115
|
+
this.$refs.contentBar?.setBoundary(this.$refs['container']);
|
|
119
116
|
},
|
|
120
117
|
speciesChanged: function (species) {
|
|
121
118
|
this.activeSpecies = species;
|
|
122
|
-
this.$emit(
|
|
119
|
+
this.$emit('species-changed', species);
|
|
123
120
|
},
|
|
124
121
|
onResize: function () {
|
|
125
122
|
this.$refs.viewer?.onResize();
|
|
126
123
|
},
|
|
127
124
|
//The following handle EventBus.on from SplitDialog
|
|
128
|
-
onConnectivityItemClose: function() {
|
|
125
|
+
onConnectivityItemClose: function () {
|
|
129
126
|
this.$refs.viewer?.onConnectivityItemClose();
|
|
130
127
|
},
|
|
131
|
-
onConnectivitySourceChange: function(payload, ongoingSource) {
|
|
128
|
+
onConnectivitySourceChange: function (payload, ongoingSource) {
|
|
132
129
|
this.$refs.viewer?.changeConnectivitySource(payload, ongoingSource);
|
|
133
130
|
},
|
|
134
|
-
onFlatmapMarkerUpdate: function() {
|
|
131
|
+
onFlatmapMarkerUpdate: function () {
|
|
135
132
|
this.$refs.viewer?.flatmapMarkerUpdate();
|
|
136
133
|
},
|
|
137
|
-
onGlobalViewerSettingsUpdate: function() {
|
|
134
|
+
onGlobalViewerSettingsUpdate: function () {
|
|
138
135
|
this.$refs.viewer?.updateViewerSettings();
|
|
139
136
|
},
|
|
140
|
-
onHoverUpdate: function(payload) {
|
|
137
|
+
onHoverUpdate: function (payload) {
|
|
141
138
|
this.$refs.viewer?.sidebarHoverHighlight(payload);
|
|
142
139
|
},
|
|
143
|
-
onShowConnectivity: function(payload) {
|
|
140
|
+
onShowConnectivity: function (payload) {
|
|
144
141
|
this.$refs.viewer?.showConnectivity(payload);
|
|
145
142
|
},
|
|
146
|
-
onShowConnectivityTooltips: function(payload) {
|
|
143
|
+
onShowConnectivityTooltips: function (payload) {
|
|
147
144
|
this.$refs.viewer?.showConnectivityTooltips(payload);
|
|
148
145
|
},
|
|
149
|
-
onShowReferenceConnectivity: function(payload) {
|
|
146
|
+
onShowReferenceConnectivity: function (payload) {
|
|
150
147
|
this.$refs.viewer?.showConnectivitiesByReference(payload);
|
|
151
148
|
},
|
|
152
|
-
onSidebarAnnotationClose: function() {
|
|
149
|
+
onSidebarAnnotationClose: function () {
|
|
153
150
|
this.$refs.viewer?.onSidebarAnnotationClose();
|
|
154
151
|
},
|
|
155
|
-
onStartHelp: function() {
|
|
152
|
+
onStartHelp: function () {
|
|
156
153
|
this.$refs.viewer?.startHelp();
|
|
157
154
|
},
|
|
158
|
-
onFilterVisibility: function(payload) {
|
|
155
|
+
onFilterVisibility: function (payload) {
|
|
159
156
|
this.$refs.viewer?.setVisibilityFilter(payload);
|
|
160
157
|
},
|
|
161
|
-
onLoadConnectivityDetail: function(payload) {
|
|
158
|
+
onLoadConnectivityDetail: function (payload) {
|
|
162
159
|
if (this.$refs.viewer?.entry.type !== 'ConnectivityGraph') {
|
|
163
160
|
this.$refs.viewer?.getKnowledgeTooltip(payload);
|
|
164
161
|
}
|
|
165
162
|
},
|
|
166
|
-
toggleMinimap: function(option, prevState) {
|
|
163
|
+
toggleMinimap: function (option, prevState) {
|
|
167
164
|
this.$refs.viewer?.toggleMinimap(option, prevState);
|
|
168
165
|
},
|
|
169
166
|
},
|
|
170
167
|
data: function () {
|
|
171
168
|
return {
|
|
172
169
|
mouseHovered: false,
|
|
173
|
-
activeSpecies:
|
|
170
|
+
activeSpecies: 'Rat',
|
|
174
171
|
};
|
|
175
172
|
},
|
|
176
173
|
computed: {
|
|
177
174
|
...mapStores(useEntriesStore, useSplitFlowStore),
|
|
178
175
|
viewerType() {
|
|
179
176
|
switch (this.entry.type) {
|
|
180
|
-
case
|
|
181
|
-
return '
|
|
177
|
+
case 'MapIframe':
|
|
178
|
+
return 'MapIframe';
|
|
182
179
|
default:
|
|
183
180
|
return this.entry.type;
|
|
184
181
|
}
|
|
@@ -208,7 +205,7 @@ export default {
|
|
|
208
205
|
width: 100%;
|
|
209
206
|
bottom: 0px;
|
|
210
207
|
position: absolute;
|
|
211
|
-
z-index:6;
|
|
208
|
+
z-index: 6;
|
|
212
209
|
overflow: hidden;
|
|
213
210
|
}
|
|
214
211
|
|