@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.
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-DrSaFEDd.js} +3 -3
  6. package/dist/{ContentMixin-Vn34n5t2.js → ContentMixin-Xg0PjBqG.js} +2 -2
  7. package/dist/{DynamicMarkerMixin-BS6t7w_i.js → DynamicMarkerMixin-D5Ruu_hd.js} +1 -1
  8. package/dist/{Flatmap-BejxA0uz.js → Flatmap-CxN8TbnS.js} +4 -4
  9. package/dist/{Iframe-BWbhTjCR.js → Iframe-CkgbLfJt.js} +4 -4
  10. package/dist/{MultiFlatmap-nlmsH-Ib.js → MultiFlatmap-CkejvAJe.js} +4 -4
  11. package/dist/{Plot-ChbPsDZX.js → Plot-BfwoipSl.js} +2 -2
  12. package/dist/{Scaffold-C6f7c7Ha.js → Scaffold-DCqsTKpg.js} +4 -4
  13. package/dist/{Simulation-DcJScRYo.js → Simulation-BOtU3kTT.js} +2 -2
  14. package/dist/{connectivities-UXTqf7_0.js → connectivities-DyeS8w0c.js} +126 -95
  15. package/dist/index.html +9 -6
  16. package/dist/mapintegratedvuer.js +5489 -5578
  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 +11 -5
  21. package/public/index.html +9 -6
  22. package/src/App.vue +234 -249
  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 +98 -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 +90 -86
  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 +421 -237
  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 +59 -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 +364 -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,13 +1,11 @@
1
1
  import { defineStore } from 'pinia';
2
2
 
3
- /* eslint-disable no-alert, no-console */
4
-
5
3
  export const useSettingsStore = defineStore('settings', {
6
4
  state: () => {
7
5
  return {
8
6
  shareLink: undefined,
9
7
  sparcApi: undefined,
10
- algoliaIndex: "k-core_dev_published_time_desc",
8
+ algoliaIndex: 'k-core_dev_published_time_desc',
11
9
  algoliaKey: undefined,
12
10
  algoliaId: undefined,
13
11
  pennsieveApi: undefined,
@@ -46,38 +44,36 @@ export const useSettingsStore = defineStore('settings', {
46
44
  backgroundDisplay: 'white',
47
45
  connectionType: 'All', // 'Origin', 'Via', 'Destination', 'All
48
46
  },
49
- }
47
+ };
50
48
  },
51
49
  getters: {
52
- isFeaturedMarkerIdentifier: state => identifier => {
50
+ isFeaturedMarkerIdentifier: (state) => (identifier) => {
53
51
  // state.featuredMarkerIdentifiers can be nested array
54
52
  const flatIds = state.featuredMarkerIdentifiers.flat(Infinity);
55
53
  return flatIds.includes(identifier);
56
54
  },
57
- featuredMarkerDoi: state => identifier => {
58
- const index = state.featuredMarkerIdentifiers.findIndex(
59
- element => element == identifier
60
- );
55
+ featuredMarkerDoi: (state) => (identifier) => {
56
+ const index = state.featuredMarkerIdentifiers.findIndex((element) => element == identifier);
61
57
  return state.featuredMarkerDois[index];
62
58
  },
63
- getGlobalSettings: state => () => {
59
+ getGlobalSettings: (state) => () => {
64
60
  const globalSettings = {};
65
61
  for (const [key, value] of Object.entries(state.globalSettings)) {
66
62
  globalSettings[key] = value;
67
63
  }
68
64
  return globalSettings;
69
65
  },
70
- getUpdatedGlobalSettingsKey: state => settings => {
66
+ getUpdatedGlobalSettingsKey: (state) => (settings) => {
71
67
  let updatedSettings = [];
72
68
  for (const [key, value] of Object.entries(settings)) {
73
69
  const attribute = state.globalSettings[key];
74
- if (attribute === undefined || (attribute !== value)) {
70
+ if (attribute === undefined || attribute !== value) {
75
71
  updatedSettings.push(key);
76
72
  }
77
73
  }
78
74
  return updatedSettings;
79
75
  },
80
- hasAppliedFacets: state => facets => {
76
+ hasAppliedFacets: (state) => (facets) => {
81
77
  for (const facet of facets) {
82
78
  for (const appliedFacet of state.appliedFacets) {
83
79
  if (facet && appliedFacet && facet.toLowerCase() === appliedFacet.toLowerCase()) {
@@ -86,7 +82,7 @@ export const useSettingsStore = defineStore('settings', {
86
82
  }
87
83
  }
88
84
  return false;
89
- }
85
+ },
90
86
  },
91
87
  actions: {
92
88
  updateShareLink(newLink) {
@@ -134,7 +130,7 @@ export const useSettingsStore = defineStore('settings', {
134
130
  },
135
131
  updateFeaturedMarker(payload) {
136
132
  const index = this.featuredDatasetIdentifiers.findIndex(
137
- element => element == payload.identifier
133
+ (element) => element == payload.identifier,
138
134
  );
139
135
  this.featuredMarkers[index] = payload.marker;
140
136
  this.featuredMarkerDois[index] = payload.doi;
@@ -144,9 +140,7 @@ export const useSettingsStore = defineStore('settings', {
144
140
  this.featuredMarkerIdentifiers[payload.index] = payload.markerIdentifier;
145
141
  },
146
142
  resetFeaturedMarkerIdentifier() {
147
- this.featuredMarkerIdentifiers = new Array(
148
- this.featuredDatasetIdentifiers.length
149
- );
143
+ this.featuredMarkerIdentifiers = new Array(this.featuredDatasetIdentifiers.length);
150
144
  },
151
145
  updateAppliedFacets(facetsIn) {
152
146
  this.appliedFacets = facetsIn;
@@ -156,10 +150,10 @@ export const useSettingsStore = defineStore('settings', {
156
150
  let facets = { species: [], gender: [], organ: [] };
157
151
  //First add missing item
158
152
  if (facetsIn) {
159
- facetsIn.forEach(e => {
153
+ facetsIn.forEach((e) => {
160
154
  switch (e.term.toLowerCase()) {
161
- case "species":
162
- if (e.facet.toLowerCase() !== "show all") {
155
+ case 'species':
156
+ if (e.facet.toLowerCase() !== 'show all') {
163
157
  facets.species.push(e.facet);
164
158
  if (!this.facets.species.includes(e.facet)) {
165
159
  this.facets.species.push(e.facet);
@@ -168,18 +162,16 @@ export const useSettingsStore = defineStore('settings', {
168
162
  this.facets.species = [];
169
163
  }
170
164
  break;
171
- case "gender":
172
- if (e.facet.toLowerCase() !== "show all") {
165
+ case 'gender':
166
+ if (e.facet.toLowerCase() !== 'show all') {
173
167
  facets.gender.push(e.facet);
174
- if (!this.facets.species.includes(e.facet))
175
- this.facets.gender.push(e.facet);
168
+ if (!this.facets.species.includes(e.facet)) this.facets.gender.push(e.facet);
176
169
  }
177
170
  break;
178
- case "organ":
179
- if (e.facet.toLowerCase() !== "show all") {
171
+ case 'organ':
172
+ if (e.facet.toLowerCase() !== 'show all') {
180
173
  facets.organ.push(e.facet);
181
- if (!this.facets.species.includes(e.facet))
182
- this.facets.organ.push(e.facet);
174
+ if (!this.facets.species.includes(e.facet)) this.facets.organ.push(e.facet);
183
175
  }
184
176
  break;
185
177
  default:
@@ -188,7 +180,7 @@ export const useSettingsStore = defineStore('settings', {
188
180
  });
189
181
  //Remove item not in list
190
182
  for (const [key, arr] of Object.entries(this.facets)) {
191
- let i = 0;
183
+ let i;
192
184
  for (i = arr.length - 1; i >= 0; i -= 1) {
193
185
  const index = facets[key].indexOf(arr[i]);
194
186
  if (index == -1) {
@@ -224,5 +216,5 @@ export const useSettingsStore = defineStore('settings', {
224
216
  this.globalSettings[key] = value;
225
217
  }
226
218
  },
227
- }
219
+ },
228
220
  });