@abi-software/mapintegratedvuer 1.21.1 → 1.22.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 (68) hide show
  1. package/README.md +23 -5
  2. package/assets/location-icon.html +33 -1
  3. package/assets/styleguide.css +18 -18
  4. package/cypress.config.js +7 -9
  5. package/dist/{ConnectivityGraph-CZMROk9r.js → ConnectivityGraph-BBZ3Dgat.js} +3 -3
  6. package/dist/{ContentMixin-Vn34n5t2.js → ContentMixin-B-O_IwPg.js} +16 -18
  7. package/dist/{DynamicMarkerMixin-BS6t7w_i.js → DynamicMarkerMixin-B9iqtP_f.js} +1 -1
  8. package/dist/{Flatmap-BejxA0uz.js → Flatmap-BoEFI50b.js} +4 -4
  9. package/dist/{Iframe-BWbhTjCR.js → Iframe-Slj-LQTF.js} +4 -4
  10. package/dist/{MultiFlatmap-nlmsH-Ib.js → MultiFlatmap-l6aBn6x3.js} +17 -5
  11. package/dist/{Plot-ChbPsDZX.js → Plot-CIhEip5b.js} +2 -2
  12. package/dist/{Scaffold-C6f7c7Ha.js → Scaffold-D5ZGCDvt.js} +4 -4
  13. package/dist/{Simulation-DcJScRYo.js → Simulation-C5o5DXRb.js} +2 -2
  14. package/dist/{connectivities-UXTqf7_0.js → connectivities-Br3MpoAv.js} +154 -95
  15. package/dist/index.html +9 -6
  16. package/dist/mapintegratedvuer.js +5506 -5582
  17. package/dist/mapintegratedvuer.umd.cjs +196 -196
  18. package/dist/style.css +1 -1
  19. package/eslint.config.js +39 -15
  20. package/package.json +12 -6
  21. package/public/index.html +9 -6
  22. package/src/App.vue +224 -255
  23. package/src/assets/_variables.scss +12 -10
  24. package/src/assets/header-icon.scss +8 -9
  25. package/src/assets/mapicon-species-style.css +10 -8
  26. package/src/assets/styles.scss +1 -1
  27. package/src/components/ContentBar.vue +99 -106
  28. package/src/components/ContentVuer.vue +36 -39
  29. package/src/components/ContextCard.vue +238 -199
  30. package/src/components/ContextHelp.vue +22 -26
  31. package/src/components/CustomSplitter.vue +32 -43
  32. package/src/components/DatasetHeader.vue +37 -41
  33. package/src/components/DialogToolbarContent.vue +292 -256
  34. package/src/components/FlatmapContextCard.vue +52 -57
  35. package/src/components/MapContent.vue +111 -87
  36. package/src/components/ResizeSensor.vue +8 -13
  37. package/src/components/SearchControls.vue +26 -35
  38. package/src/components/SimulatedData.js +196 -219
  39. package/src/components/SplitDialog.vue +139 -129
  40. package/src/components/SplitFlow.vue +433 -239
  41. package/src/components/index.js +1 -3
  42. package/src/components/scripts/simulation_data.js +393 -397
  43. package/src/components/scripts/utilities.js +108 -78
  44. package/src/components/viewers/CellDLViewer.vue +9 -9
  45. package/src/components/viewers/ConnectivityGraph.vue +9 -12
  46. package/src/components/viewers/Flatmap.vue +23 -25
  47. package/src/components/viewers/Iframe.vue +8 -10
  48. package/src/components/viewers/MultiFlatmap.vue +73 -69
  49. package/src/components/viewers/Plot.vue +6 -7
  50. package/src/components/viewers/Scaffold.vue +73 -63
  51. package/src/components/viewers/Simulation.vue +10 -15
  52. package/src/main.js +16 -21
  53. package/src/mixins/ContentMixin.js +208 -178
  54. package/src/mixins/DynamicMarkerMixin.js +14 -18
  55. package/src/mixins/RetrieveContextCardMixin.js +35 -30
  56. package/src/mixins/S3Bucket.vue +10 -13
  57. package/src/services/knowledgeMapping.js +53 -53
  58. package/src/services/tagging.js +4 -4
  59. package/src/stores/connectivities.js +46 -8
  60. package/src/stores/entries.js +7 -9
  61. package/src/stores/index.js +7 -7
  62. package/src/stores/settings.js +23 -31
  63. package/src/stores/splitFlow.js +395 -298
  64. package/vite.bundle-build.js +24 -26
  65. package/vite.config.js +22 -21
  66. package/vite.static-build.js +4 -4
  67. package/vitest.workspace.js +1 -3
  68. package/vuese-generator.js +47 -55
@@ -1,29 +1,24 @@
1
1
  <template>
2
- <SimulationVuer
3
- :apiLocation="apiLocation"
4
- :id="id"
5
- ref="simulation"
6
- />
2
+ <SimulationVuer :apiLocation="apiLocation" :id="id" ref="simulation" />
7
3
  </template>
8
4
 
9
5
  <script>
10
- /* eslint-disable no-alert, no-console */
11
- import ContentMixin from "../../mixins/ContentMixin";
12
- import { SimulationVuer } from "@abi-software/simulationvuer";
13
- import "@abi-software/simulationvuer/dist/style.css";
6
+ import ContentMixin from '../../mixins/ContentMixin';
7
+ import { SimulationVuer } from '@abi-software/simulationvuer';
8
+ import '@abi-software/simulationvuer/dist/style.css';
14
9
 
15
10
  export default {
16
- name: "Simulation",
17
- mixins: [ ContentMixin ],
11
+ name: 'Simulation',
12
+ mixins: [ContentMixin],
18
13
  components: {
19
14
  SimulationVuer,
20
15
  },
21
16
  computed: {
22
- id: function() {
17
+ id: function () {
23
18
  //resource field is only available for simulation omex file and it will run locally.
24
19
  //discoverId field is used for simulations running on O2SPARC.
25
- return this.entry.resource ? this.entry.resource: this.entry.discoverId;
26
- }
27
- }
20
+ return this.entry.resource ? this.entry.resource : this.entry.discoverId;
21
+ },
22
+ },
28
23
  };
29
24
  </script>
package/src/main.js CHANGED
@@ -1,33 +1,28 @@
1
+ import { createApp } from 'vue';
2
+ import { createPinia } from 'pinia';
3
+ import * as VueRouter from 'vue-router';
4
+ import App from './App.vue';
5
+ import { useMainStore } from './stores/index';
6
+ import './assets/fonts.scss';
1
7
 
2
- import { createApp } from 'vue'
3
- import { createPinia } from 'pinia'
4
- import * as VueRouter from 'vue-router'
5
- import App from './App.vue'
6
- import { useMainStore } from './stores/index'
7
- import './assets/fonts.scss'
8
-
9
- const routes = [
10
- { path: '/' },
11
- ]
8
+ const routes = [{ path: '/' }];
12
9
 
13
10
  const router = VueRouter.createRouter({
14
11
  // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
15
12
  history: VueRouter.createWebHashHistory(),
16
13
  routes,
17
- })
14
+ });
18
15
 
19
- const pinia = createPinia()
20
- const app = createApp(App)
16
+ const pinia = createPinia();
17
+ const app = createApp(App);
21
18
 
22
- app.use(pinia)
23
- app.use(router)
19
+ app.use(pinia);
20
+ app.use(router);
24
21
 
25
- const mainStore = useMainStore()
26
- const token = document.cookie
27
- .split("; ")
28
- .find((row) => row.startsWith("user-token"))
22
+ const mainStore = useMainStore();
23
+ const token = document.cookie.split('; ').find((row) => row.startsWith('user-token'));
29
24
  if (mainStore && token) {
30
- mainStore.setUserToken(token.split("=")[1])
25
+ mainStore.setUserToken(token.split('=')[1]);
31
26
  }
32
27
 
33
- app.mount('#app')
28
+ app.mount('#app');