@abi-software/mapintegratedvuer 1.16.3-simulation.1 → 1.17.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 (43) hide show
  1. package/dist/ConnectivityGraph-DbqPx-8k.js +125 -0
  2. package/dist/{ContentMixin-CN4E1Tcm.js → ContentMixin-R9Bw7Ou4.js} +545 -270
  3. package/dist/Flatmap-BYUfDJ9B.js +202 -0
  4. package/dist/{Iframe-NY9zAQZz.js → Iframe-2ofJ9NJW.js} +2 -2
  5. package/dist/{MultiFlatmap-C8gAg-MI.js → MultiFlatmap-CYxpB20e.js} +25 -18
  6. package/dist/{Plot-DH_Px9IB.js → Plot-DmQzP7lz.js} +2 -2
  7. package/dist/{Scaffold-C6XY3IQb.js → Scaffold-C8x1IHb9.js} +53 -79
  8. package/dist/Simulation-D9pblkqI.js +28 -0
  9. package/dist/{index-DaB85Tpy.js → index-raNlNgsS.js} +30069 -28444
  10. package/dist/mapintegratedvuer.js +1 -1
  11. package/dist/mapintegratedvuer.umd.cjs +238 -4270
  12. package/dist/{DynamicMarkerMixin-ToiTtIcj.js → style-QpNSY6to.js} +1 -1
  13. package/dist/style.css +1 -1
  14. package/package.json +6 -11
  15. package/src/App.vue +265 -283
  16. package/src/assets/styles.scss +1 -1
  17. package/src/components/ContentVuer.vue +5 -1
  18. package/src/components/ContextCard.vue +1 -0
  19. package/src/components/EventBus.js +3 -0
  20. package/src/components/MapContent.vue +9 -8
  21. package/src/components/SplitDialog.vue +5 -6
  22. package/src/components/SplitFlow.vue +491 -469
  23. package/src/components/scripts/utilities.js +16 -1
  24. package/src/components/viewers/ConnectivityGraph.vue +146 -0
  25. package/src/components/viewers/Flatmap.vue +84 -136
  26. package/src/components/viewers/MultiFlatmap.vue +9 -5
  27. package/src/components/viewers/Simulation.vue +15 -66
  28. package/src/components.d.ts +1 -3
  29. package/src/main.js +3 -9
  30. package/src/mixins/ContentMixin.js +391 -420
  31. package/src/stores/connectivities.js +6 -1
  32. package/src/stores/entries.js +1 -1
  33. package/src/stores/splitFlow.js +366 -427
  34. package/dist/Flatmap-D7eEw_Q5.js +0 -103398
  35. package/dist/Simulation-Bb3HbeD4.js +0 -72
  36. package/src/components/DummyRouteComponent.vue +0 -1
  37. package/src/components/EventBus.ts +0 -13
  38. package/src/components/FloatingWindow.vue +0 -125
  39. package/src/components/PlotComponent.vue +0 -56
  40. package/src/services/mapping.js +0 -69
  41. package/src/stores/mapping.js +0 -29
  42. package/src/stores/simulationPlotStore.js +0 -104
  43. package/src/types/simulation.js +0 -18
@@ -1,5 +1,5 @@
1
+ @import '_variables';
1
2
 
2
- @import '_variables.scss';
3
3
  @import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
4
4
 
5
5
  /* icon font path, required */
@@ -49,6 +49,7 @@ import { useSplitFlowStore } from '../stores/splitFlow';
49
49
  const Flatmap = defineAsyncComponent(() => import("./viewers/Flatmap.vue"));
50
50
  const Iframe = defineAsyncComponent(() => import("./viewers/Iframe.vue"));
51
51
  const MultiFlatmap = defineAsyncComponent(() => import("./viewers/MultiFlatmap.vue"));
52
+ const ConnectivityGraph = defineAsyncComponent(() => import("./viewers/ConnectivityGraph.vue"));
52
53
  const Plot = defineAsyncComponent(() => import("./viewers/Plot.vue"));
53
54
  const Scaffold = defineAsyncComponent(() => import("./viewers/Scaffold.vue"));
54
55
  const Simulation = defineAsyncComponent(() => import("./viewers/Simulation.vue"));
@@ -70,6 +71,7 @@ export default {
70
71
  //DatasetHeader,
71
72
  Button,
72
73
  ContentBar,
74
+ ConnectivityGraph,
73
75
  Flatmap,
74
76
  Iframe,
75
77
  MultiFlatmap,
@@ -157,7 +159,9 @@ export default {
157
159
  this.$refs.viewer?.setVisibilityFilter(payload);
158
160
  },
159
161
  onLoadConnectivityDetail: function(payload) {
160
- this.$refs.viewer?.getKnowledgeTooltip(payload);
162
+ if (this.$refs.viewer?.entry.type !== 'ConnectivityGraph') {
163
+ this.$refs.viewer?.getKnowledgeTooltip(payload);
164
+ }
161
165
  },
162
166
  toggleMinimap: function(option, prevState) {
163
167
  this.$refs.viewer?.toggleMinimap(option, prevState);
@@ -94,6 +94,7 @@
94
94
  </div>
95
95
  </template>
96
96
 
97
+
97
98
  <script>
98
99
  /* eslint-disable no-alert, no-console */
99
100
  import { CopyToClipboard } from "@abi-software/map-utilities";
@@ -0,0 +1,3 @@
1
+ import mitt from 'mitt';
2
+ const EventBus = new mitt();
3
+ export default EventBus;
@@ -11,6 +11,7 @@
11
11
  v-if="isReady"
12
12
  @onFullscreen="onFullscreen"
13
13
  :state="stateToSet"
14
+ :showLongLabel="showLongLabel"
14
15
  ref="flow"
15
16
  @vue:mounted="flowMounted"
16
17
  />
@@ -24,7 +25,6 @@ import SplitFlow from './SplitFlow.vue';
24
25
  import EventBus from './EventBus';
25
26
  import { mapStores } from 'pinia';
26
27
  import { useSettingsStore } from '../stores/settings';
27
- import { useSimulationPlotStore } from '../stores/simulationPlotStore'
28
28
  import { useSplitFlowStore } from '../stores/splitFlow';
29
29
  import { defaultSpecies, findSpeciesKey } from './scripts/utilities.js';
30
30
  import { MapSvgSpriteColor} from '@abi-software/svg-sprite';
@@ -60,6 +60,10 @@ export default {
60
60
  type: Object,
61
61
  default: undefined
62
62
  },
63
+ showLongLabel: {
64
+ type: Boolean,
65
+ default: true,
66
+ },
63
67
  /**
64
68
  * The options include APIs and Keys.
65
69
  */
@@ -330,7 +334,7 @@ export default {
330
334
  this.$refs.flow.setState(currentState);
331
335
  //Do not create a new entry, instead set the multiflatmap viewer
332
336
  //to the primary slot
333
- this.$refs.flow.setIdToPane(entry.id);
337
+ this.$refs.flow.setIdToPrimaryPane(entry.id);
334
338
  break;
335
339
  }
336
340
  }
@@ -385,7 +389,7 @@ export default {
385
389
  },
386
390
  },
387
391
  computed: {
388
- ...mapStores(useSettingsStore, useSimulationPlotStore, useSplitFlowStore),
392
+ ...mapStores(useSettingsStore, useSplitFlowStore),
389
393
  stateToSet() {
390
394
  return this.state ? this.state : this.initialState;
391
395
  },
@@ -446,16 +450,13 @@ export default {
446
450
  this.settingsStore.updateUseHelpModeDialog(this.useHelpModeDialog);
447
451
  this.settingsStore.updateConnectivityInfoSidebar(this.connectivityInfoSidebar);
448
452
  this.settingsStore.updateAnnotationSidebar(this.annotationSidebar);
449
- this.simulationPlotStore.initListeners();
450
- },
451
- beforeUnmount: function () {
452
- this.simulationPlotStore.cleanupListeners();
453
- },
453
+ }
454
454
  }
455
455
 
456
456
  </script>
457
457
 
458
458
  <style scoped lang="scss">
459
+
459
460
  :deep(.el-loading-spinner) {
460
461
  .path {
461
462
  stroke: $app-primary-color;
@@ -203,12 +203,11 @@ export default {
203
203
 
204
204
  // mix connectivites of available maps
205
205
  if (uuids.length) {
206
- this.connectivitiesStore.updateActiveConnectivityKeys(uuids);
207
-
208
- // emit connectivity-knowledge event will be at connectivityQueryFilter
209
-
210
- const uniqueFilters = this.connectivitiesStore.getUniqueFilterOptionsByKeys;
211
- EventBus.emit("connectivity-filter-options", uniqueFilters);
206
+ // emit connectivity-knowledge event only if active connectivity keys are updated
207
+ if (this.connectivitiesStore.updateActiveConnectivityKeys(uuids)) {
208
+ const uniqueFilters = this.connectivitiesStore.getUniqueFilterOptionsByKeys;
209
+ EventBus.emit("connectivity-filter-options", uniqueFilters);
210
+ }
212
211
  } else {
213
212
  const connectivityData = this.connectivitiesStore.globalConnectivities[sckanVersion] || [];
214
213
  EventBus.emit("connectivity-knowledge", {