@abi-software/mapintegratedvuer 1.10.2-beta.0 → 1.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/mapintegratedvuer",
3
- "version": "1.10.2-beta.0",
3
+ "version": "1.10.2",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
@@ -52,9 +52,9 @@
52
52
  "*.js"
53
53
  ],
54
54
  "dependencies": {
55
- "@abi-software/flatmapvuer": "^1.10.1-beta.1",
56
- "@abi-software/map-side-bar": "^2.9.1-beta.1",
57
- "@abi-software/map-utilities": "^1.6.1-beta.0",
55
+ "@abi-software/flatmapvuer": "^1.10.1",
56
+ "@abi-software/map-side-bar": "^2.9.1",
57
+ "@abi-software/map-utilities": "^1.6.0",
58
58
  "@abi-software/plotvuer": "1.0.4",
59
59
  "@abi-software/scaffoldvuer": "^1.10.0",
60
60
  "@abi-software/simulationvuer": "^2.0.12",
@@ -14,7 +14,7 @@
14
14
  :teleported="false"
15
15
  trigger="hover"
16
16
  class="toolbar-dropdown"
17
- popper-class="toolbar-dropdown-popper"
17
+ popper-class="toolbar-dropdown-dropdown"
18
18
  :hide-on-click="false"
19
19
  :disabled="!mapLoaded"
20
20
  >
@@ -29,10 +29,6 @@
29
29
  <el-icon-edit-pen />
30
30
  </el-icon>
31
31
  {{ globalSettings.viewingMode }}
32
- <template v-if="globalSettings.viewingMode === 'Neuron Connection'">
33
- &nbsp;
34
- <small class="toolbar-dropdown-badge"><em>{{ globalSettings.connectionType }}</em></small>
35
- </template>
36
32
  <el-icon class="el-icon--right">
37
33
  <el-icon-arrow-down />
38
34
  </el-icon>
@@ -95,34 +91,6 @@
95
91
  </el-popover>
96
92
  </div>
97
93
  </template> -->
98
- <template v-if="key === 'Neuron Connection'">
99
- <div class="setting-popover-block" v-if="'connectionType' in globalSettings">
100
- <el-radio-group
101
- v-model="globalSettings.connectionType"
102
- @change="updateGlobalSettings"
103
- >
104
- <el-radio-button value="Origin" size="small">Origin</el-radio-button>
105
- <el-radio-button value="Via" size="small">Via</el-radio-button>
106
- <el-radio-button value="Destination" size="small">Destination</el-radio-button>
107
- <el-radio-button value="All" size="small">All</el-radio-button>
108
- </el-radio-group>
109
- <div class="el-radio__description">
110
- <small v-if="globalSettings.connectionType === 'Origin'">
111
- Neuron populations beginning at a location.
112
- </small>
113
- <small v-else-if="globalSettings.connectionType === 'Via'">
114
- Neuron populations via a location.
115
- </small>
116
- <small v-else-if="globalSettings.connectionType === 'Destination'">
117
- Neuron populations terminating at a location.
118
- </small>
119
- <small v-else>
120
- Neuron populations associated with a location (or)
121
- Neuron populations that share at least one edge with another neuron population.
122
- </small>
123
- </div>
124
- </div>
125
- </template>
126
94
  </el-dropdown-item>
127
95
  </el-dropdown-menu>
128
96
  </template>
@@ -517,7 +485,7 @@ export default {
517
485
  permalinkRef: undefined,
518
486
  viewingModes: {
519
487
  'Exploration': 'Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources',
520
- 'Neuron Connection': 'Discover Neuron connections by selecting a feature and viewing its associated network connections',
488
+ 'Neuron Connection': 'Discover Neuron connections by selecting a neuron and viewing its associated network connections',
521
489
  'Annotation': ['View feature annotations', 'Add, comment on and view feature annotations']
522
490
  },
523
491
  authorisedUser: false,
@@ -565,7 +533,6 @@ export default {
565
533
  }
566
534
  // viewing mode update
567
535
  if (updatedSettings.includes('viewingMode') ||
568
- updatedSettings.includes('connectionType') ||
569
536
  updatedSettings.includes('flightPathDisplay') ||
570
537
  updatedSettings.includes('organsDisplay') ||
571
538
  updatedSettings.includes('outlinesDisplay') ||
@@ -789,7 +756,7 @@ export default {
789
756
  gap: 0.5rem;
790
757
  }
791
758
 
792
- :deep(.toolbar-dropdown-popper.el-popper) {
759
+ :deep(.toolbar-dropdown-dropdown.el-popper) {
793
760
  border: 1px solid $app-primary-color;
794
761
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
795
762
  background-color: #f3ecf6;
@@ -843,6 +810,14 @@ export default {
843
810
  font-weight: 500;
844
811
  }
845
812
 
813
+ > small {
814
+ height: auto;
815
+ line-height: 1.2;
816
+ font-weight: normal;
817
+ color: gray;
818
+ white-space: normal;
819
+ }
820
+
846
821
  &.is-selected,
847
822
  &:hover {
848
823
  background-color: #f1e4f6;
@@ -866,13 +841,6 @@ export default {
866
841
  }
867
842
  }
868
843
 
869
- .toolbar-dropdown-badge {
870
- color: white;
871
- background-color: $app-primary-color;
872
- border-radius: 4px;
873
- padding: 2px 4px;
874
- }
875
-
876
844
  :deep(.setting-popover.el-popper) {
877
845
  padding: 1px !important;
878
846
  }
@@ -916,21 +884,8 @@ export default {
916
884
  scale: 0.7;
917
885
  }
918
886
 
919
- .el-option__description,
920
- .el-radio__description small {
921
- display: inline-block;
922
- font-size: 12px;
923
- white-space: normal;
924
- line-height: 1.2;
925
- height: auto;
926
- font-weight: normal;
927
- color: gray;
928
- }
929
-
930
887
  .el-radio__description {
931
- margin-top: 0.25rem;
932
- padding-left: 0.25rem;
933
- font-style: italic;
888
+ font-size: 12px;
934
889
  }
935
890
 
936
891
  .bg-color-radio-group {
@@ -31,7 +31,6 @@ import EventBus from './EventBus';
31
31
  import { mapStores } from 'pinia';
32
32
  import { useSplitFlowStore } from '../stores/splitFlow';
33
33
  import { useConnectivitiesStore } from '../stores/connectivities';
34
- import { findPathsByDestinationItem, findPathsByOriginItem, findPathsByViaItem } from "@abi-software/map-utilities";
35
34
 
36
35
  export default {
37
36
  name: "SplitDialog",
@@ -211,7 +210,7 @@ export default {
211
210
  // mix connectivites of available maps
212
211
  if (uuids.length) {
213
212
  this.connectivitiesStore.updateActiveConnectivityKeys(uuids);
214
-
213
+
215
214
  const uniqueConnectivities = this.connectivitiesStore.getUniqueConnectivitiesByKeys;
216
215
  EventBus.emit("connectivity-knowledge", {
217
216
  data: uniqueConnectivities
@@ -226,7 +225,7 @@ export default {
226
225
  });
227
226
  this.connectivitiesStore.updateActiveConnectivityKeys([sckanVersion]);
228
227
  } else {
229
- console.warn(`There is no connectivity to show!`);
228
+ console.warn(`There has no connectivity to show!`);
230
229
  }
231
230
  }
232
231
  },
@@ -254,8 +253,7 @@ export default {
254
253
  },
255
254
  connectivityQueryFilter: async function (data) {
256
255
  const activeContents = this.getActiveContents();
257
- const searchOrders = [], searchResults = [];
258
- let searchHighlights = [];
256
+ const searchOrders = [], searchHighlights = [], searchResults = [];
259
257
  let processed = false;
260
258
 
261
259
  for (const activeContent of activeContents) {
@@ -283,7 +281,6 @@ export default {
283
281
 
284
282
  const filters = {};
285
283
  let queryIds = [], facetIds = [];
286
- let hasConnectionTargets = false;
287
284
  if (data) {
288
285
  this.query = data.query;
289
286
  // get query search result ids and order
@@ -307,8 +304,7 @@ export default {
307
304
  data.filter.forEach((item) => {
308
305
  const facetKey = item.facetPropPath.split('.').pop();;
309
306
  const matchedFilter = uniqueFilters.find(filter => filter.key.includes(facetKey));
310
- const isNeuronConnection = Boolean(item.facetPropPath.includes('flatmap.connectivity.source'));
311
- if (matchedFilter && !isNeuronConnection) {
307
+ if (matchedFilter) {
312
308
  matchedFilter.children.forEach((child) => {
313
309
  if (child.label === item.facet && child.key) {
314
310
  const childKey = child.key.split('.').pop();
@@ -320,20 +316,6 @@ export default {
320
316
  }
321
317
  });
322
318
  }
323
- if (isNeuronConnection && item.facet !== 'Show all') {
324
- const facet = item.facet;
325
- const feature = JSON.parse(facet);
326
- const mode = item.facetPropPath.split('.').pop();
327
- hasConnectionTargets = true;
328
-
329
- if (mode === 'origin') {
330
- results = findPathsByOriginItem(results, feature);
331
- } else if (mode === 'destination') {
332
- results = findPathsByDestinationItem(results, feature);
333
- } else if (mode === 'via') {
334
- results = findPathsByViaItem(results, feature);
335
- }
336
- }
337
319
  });
338
320
  this.filter = Object.values(filters);
339
321
  // between facet search categories -> AND
@@ -348,7 +330,7 @@ export default {
348
330
  } else if (!this.query && this.filter.length) { // pure facet search
349
331
  target = facetIds;
350
332
  } else if (this.query && this.filter.length) { // combined query and facet search
351
- // between query search and facet search -> AND
333
+ // between query search and facet search -> AND
352
334
  target = queryIds.filter(id => facetIds.includes(id));
353
335
  }
354
336
  // This can be empty array due to the AND operation
@@ -357,14 +339,6 @@ export default {
357
339
  results = results.filter((item) => target.includes(item.id));
358
340
  processed = true;
359
341
  }
360
- if (hasConnectionTargets) {
361
- const connectionTargets = results.map((item) => item.id);
362
- if (searchHighlights.length) {
363
- searchHighlights = searchHighlights.filter((item) => connectionTargets.includes(item));
364
- } else {
365
- searchHighlights = connectionTargets;
366
- }
367
- }
368
342
  searchResults.push(...results);
369
343
  }
370
344
  }
@@ -50,7 +50,6 @@
50
50
  @connectivity-source-change="onConnectivitySourceChange"
51
51
  @filter-visibility="onFilterVisibility"
52
52
  @connectivity-item-close="onConnectivityItemClose"
53
- @connectivity-explorer-reset="onConnectivityExplorerReset"
54
53
  />
55
54
  <SplitDialog
56
55
  :entries="entries"
@@ -138,7 +137,7 @@ export default {
138
137
  connectivityHighlight: [],
139
138
  connectivityKnowledge: [],
140
139
  connectivityExplorerClicked: [], // to support multi views
141
- showVisibilityFilter: true,
140
+ showVisibilityFilter: false,
142
141
  filterVisibility: true,
143
142
  filterOptions: [],
144
143
  annotationHighlight: [],
@@ -192,37 +191,6 @@ export default {
192
191
  onConnectivityItemClose: function () {
193
192
  EventBus.emit('connectivity-item-close');
194
193
  },
195
- onConnectivityExplorerReset: function () {
196
- const activeFlatmaps = this.getActiveFlatmaps();
197
- activeFlatmaps.forEach((activeFlatmap) => {
198
- activeFlatmap.resetConnectivityfilters();
199
- });
200
- },
201
- getActiveFlatmaps: function () {
202
- const activeFlatmaps = [];
203
- let splitdialog = this.$refs.splitdialog;
204
-
205
- if (splitdialog) {
206
- const activeContents = splitdialog.getActiveContents();
207
-
208
- activeContents.forEach(content => {
209
- if (content?.$refs['viewer']) {
210
- const contentViewer = content.$refs['viewer'];
211
- const flatmapRef = contentViewer.flatmapRef;
212
- const multiflatmapRef = contentViewer.multiflatmapRef;
213
- let flatmap = null;
214
-
215
- if (flatmapRef) flatmap = flatmapRef;
216
- if (multiflatmapRef) flatmap = multiflatmapRef.getCurrentFlatmap();
217
-
218
- if (flatmap && flatmap.$el.checkVisibility()) {
219
- activeFlatmaps.push(flatmap);
220
- }
221
- }
222
- });
223
- }
224
- return activeFlatmaps;
225
- },
226
194
  /**
227
195
  * Callback when an action is performed (open new dialogs).
228
196
  */
@@ -752,19 +720,6 @@ export default {
752
720
  this.$refs.sideBar.updateConnectivityError(payload.data);
753
721
  }
754
722
  });
755
- EventBus.on('neuron-connection-click', payload => {
756
- const activeFlatmaps = this.getActiveFlatmaps();
757
- activeFlatmaps.forEach((activeFlatmap) => {
758
- activeFlatmap.highlightConnectedPaths(payload);
759
- });
760
- });
761
- EventBus.on('neuron-connection-feature-click', payload => {
762
- if (this.$refs.sideBar) {
763
- this.$refs.sideBar.openConnectivitySearch(payload, '');
764
- this.$refs.sideBar.tabClicked({ id: 2, type: 'connectivityExplorer' });
765
- this.$refs.sideBar.setDrawerOpen(true);
766
- }
767
- });
768
723
  EventBus.on("OpenNewMap", type => {
769
724
  this.openNewMap(type);
770
725
  });
@@ -23,8 +23,6 @@
23
23
  @connectivity-info-open="onConnectivityInfoOpen"
24
24
  @connectivity-error="onConnectivityError"
25
25
  @connectivity-info-close="onConnectivityInfoClose"
26
- @neuron-connection-click="onNeuronConnectionClick"
27
- @neuron-connection-feature-click="onNeuronConnectionFeatureClick"
28
26
  :connectivityInfoSidebar="connectivityInfoSidebar"
29
27
  :pathControls="true"
30
28
  ref="flatmap"
@@ -39,6 +37,7 @@
39
37
  @open-map="openMap"
40
38
  @pathway-selection-changed="onPathwaySelectionChanged"
41
39
  @mapmanager-loaded="onMapmanagerLoaded"
40
+ :showPathwayFilter="false"
42
41
  />
43
42
 
44
43
  <HelpModeDialog
@@ -215,7 +214,6 @@ export default {
215
214
  flightPathDisplay,
216
215
  organsDisplay,
217
216
  outlinesDisplay,
218
- connectionType,
219
217
  } = this.settingsStore.globalSettings;
220
218
 
221
219
  const currentFlatmap = this.$refs.flatmap;
@@ -225,7 +223,6 @@ export default {
225
223
  currentFlatmap.setColour(organsDisplay);
226
224
  currentFlatmap.setOutlines(outlinesDisplay);
227
225
  currentFlatmap.backgroundChangeCallback(backgroundDisplay);
228
- currentFlatmap.setConnectionType(connectionType);
229
226
  },
230
227
  setVisibilityFilter: function (payload) {
231
228
  if (this?.alive) {
@@ -22,8 +22,6 @@
22
22
  @connectivity-info-open="onConnectivityInfoOpen"
23
23
  @connectivity-error="onConnectivityError"
24
24
  @connectivity-info-close="onConnectivityInfoClose"
25
- @neuron-connection-click="onNeuronConnectionClick"
26
- @neuron-connection-feature-click="onNeuronConnectionFeatureClick"
27
25
  :connectivityInfoSidebar="connectivityInfoSidebar"
28
26
  ref="multiflatmap"
29
27
  :displayMinimap="true"
@@ -393,7 +391,6 @@ export default {
393
391
  flightPathDisplay,
394
392
  organsDisplay,
395
393
  outlinesDisplay,
396
- connectionType,
397
394
  } = this.settingsStore.globalSettings;
398
395
 
399
396
  if (this.flatmapReady) {
@@ -404,7 +401,6 @@ export default {
404
401
  currentFlatmap.setColour(organsDisplay);
405
402
  currentFlatmap.setOutlines(outlinesDisplay);
406
403
  currentFlatmap.backgroundChangeCallback(backgroundDisplay);
407
- currentFlatmap.setConnectionType(connectionType);
408
404
  }
409
405
  },
410
406
  setVisibilityFilter: function (payload) {
@@ -35,7 +35,6 @@ declare module 'vue' {
35
35
  ElOption: typeof import('element-plus/es')['ElOption']
36
36
  ElPopover: typeof import('element-plus/es')['ElPopover']
37
37
  ElRadio: typeof import('element-plus/es')['ElRadio']
38
- ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
39
38
  ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
40
39
  ElRow: typeof import('element-plus/es')['ElRow']
41
40
  ElSelect: typeof import('element-plus/es')['ElSelect']
@@ -551,13 +551,7 @@ export default {
551
551
  onSidebarAnnotationClose: function() {
552
552
  return;
553
553
  },
554
- onNeuronConnectionClick: function (payload) {
555
- EventBus.emit('neuron-connection-click', payload);
556
- },
557
- onNeuronConnectionFeatureClick: function (payload) {
558
- EventBus.emit('neuron-connection-feature-click', payload);
559
- },
560
- showConnectivity: function(payload) {
554
+ showConnectivity: function() {
561
555
  return;
562
556
  },
563
557
  showConnectivitiesByReference: function() {
@@ -43,7 +43,6 @@ export const useSettingsStore = defineStore('settings', {
43
43
  organsDisplay: true,
44
44
  outlinesDisplay: true,
45
45
  backgroundDisplay: 'white',
46
- connectionType: 'All', // 'Origin', 'Via', 'Destination', 'All
47
46
  },
48
47
  }
49
48
  },
package/vite.config.js CHANGED
@@ -36,9 +36,6 @@ export default defineConfig(({ command, mode }) => {
36
36
  optimizeDeps: {
37
37
  exclude: ["vue-router"],
38
38
  },
39
- preview: {
40
- allowedHosts: ['mapintegratedvuer-mapcore-754fcb3bf891.herokuapp.com'],
41
- }
42
39
  };
43
40
 
44
41
  if (command === "serve") {