@abi-software/mapintegratedvuer 1.18.0 → 1.18.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.18.0",
3
+ "version": "1.18.2",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
@@ -52,11 +52,11 @@
52
52
  "*.js"
53
53
  ],
54
54
  "dependencies": {
55
- "@abi-software/flatmapvuer": "1.13.2",
56
- "@abi-software/map-side-bar": "2.14.3",
57
- "@abi-software/map-utilities": "1.8.2",
55
+ "@abi-software/flatmapvuer": "1.13.4",
56
+ "@abi-software/map-side-bar": "2.14.5",
57
+ "@abi-software/map-utilities": "1.8.3",
58
58
  "@abi-software/plotvuer": "1.0.7",
59
- "@abi-software/scaffoldvuer": "1.15.5",
59
+ "@abi-software/scaffoldvuer": "1.15.6",
60
60
  "@abi-software/simulationvuer": "3.0.16",
61
61
  "@abi-software/sparc-annotation": "0.3.2",
62
62
  "@abi-software/svg-sprite": "1.0.4",
@@ -58,11 +58,11 @@
58
58
  </template>
59
59
  <template #reference>
60
60
  <div v-show="contextCardEntry">
61
- <div v-show="contextCardVisible" class="hide" @click="contextCardVisible = false">
61
+ <div v-show="contextCardVisible" class="information" @click="contextCardVisible = false">
62
62
  Hide information
63
63
  <el-icon><el-icon-arrow-up /></el-icon>
64
64
  </div>
65
- <div v-show="!contextCardVisible" class="hide" @click="contextCardVisible = true">
65
+ <div v-show="!contextCardVisible" class="information" @click="contextCardVisible = true">
66
66
  Show information
67
67
  <el-icon><el-icon-arrow-down /></el-icon>
68
68
  </div>
@@ -339,11 +339,13 @@ export default {
339
339
  .shrink {
340
340
  flex-shrink: 1;
341
341
  min-width: 0;
342
- overflow:hidden;
343
342
  }
344
343
 
345
344
  .information-group {
346
345
  margin-left: auto;
346
+ margin-right: 12px;
347
+ height: 100%;
348
+ position: relative;
347
349
  }
348
350
 
349
351
  .toolbar-title {
@@ -354,14 +356,18 @@ export default {
354
356
  font-weight: normal;
355
357
  line-height: 20px;
356
358
  margin-left: 1rem;
357
- margin-top: 6px;
359
+ overflow: hidden;
360
+ text-overflow: ellipsis;
361
+ white-space: nowrap;
358
362
  }
359
363
 
360
364
  .select-box {
365
+ width: fit-content;
361
366
  max-width: 200px;
367
+ min-width: 0;
362
368
  z-index: 5;
363
369
  flex-shrink: 1;
364
- min-width: 0;
370
+
365
371
  :deep(.el-select__wrapper) {
366
372
  color: $app-primary-color;
367
373
  height: 29px;
@@ -427,13 +433,13 @@ export default {
427
433
  }
428
434
 
429
435
  .source-chip {
430
- padding: 4px;
436
+ padding: 4px!important;
431
437
  margin-left: 2px;
432
438
  margin-right:2px;
433
439
  background-color: $app-primary-color;
434
440
  border-color: $app-primary-color;
435
441
  color: #fff;
436
- font-size: 11px;
442
+ font-size: 11px !important;
437
443
  &:hover {
438
444
  color: #fff !important;
439
445
  background-color: #ac76c5 !important;
@@ -454,7 +460,7 @@ export default {
454
460
  flex-shrink: 0;
455
461
  }
456
462
 
457
- .hide {
463
+ .information {
458
464
  font-size: 12px;
459
465
  margin-top: 0;
460
466
  display: flex;
@@ -463,6 +469,7 @@ export default {
463
469
  gap: 4px;
464
470
  color: $app-primary-color;
465
471
  cursor: pointer;
472
+ line-height: normal;
466
473
  }
467
474
 
468
475
  }
@@ -110,10 +110,15 @@ const getAllFacetLabels = (children) => {
110
110
  return labels;
111
111
  }
112
112
 
113
+ const getFacetsFromAction = (action) => {
114
+ const actionFacets = action.facets ? action.facets : action.labels ? action.labels : [];
115
+ return actionFacets;
116
+ }
113
117
 
114
118
  const getAnatomyTermsForFilters = (action, availableNameCurieMapping) => {
115
119
  const facets = [];
116
- for (const facet of action.facets) {
120
+ const actionFacets = getFacetsFromAction(action);
121
+ for (const facet of actionFacets) {
117
122
  if (facet in availableNameCurieMapping) {
118
123
  facets.push(availableNameCurieMapping[facet]);
119
124
  } else {
@@ -327,7 +332,8 @@ export default {
327
332
  };
328
333
  const filters = [];
329
334
  const facets = getAnatomyTermsForFilters(action, this.availableNameCurieMapping);
330
- const facetString = action.facets.join(', ');
335
+ const actionFacets = getFacetsFromAction(action);
336
+ const facetString = actionFacets.join(', ');
331
337
  facets.forEach(facet => filters.push({...sendAction, facet}));
332
338
  this.$refs.sideBar.addFilter(filters);
333
339
  // GA Tagging
@@ -30,7 +30,7 @@
30
30
  @context-restored="contextRestored"
31
31
  @ready="flatmapReadyCall"
32
32
  :displayMinimap="displayMinimap"
33
- :displayWarning="true"
33
+ :displayWarning="false"
34
34
  :enableOpenMapUI="true"
35
35
  :flatmapAPI="flatmapAPI"
36
36
  :render="visible"
@@ -28,6 +28,7 @@
28
28
  :warning-message="warningMessage"
29
29
  :display-minimap="false"
30
30
  :display-markers="false"
31
+ :display-warning="false"
31
32
  :enableOpenMapUI="true"
32
33
  :view-u-r-l="entry.viewUrl"
33
34
  :markerCluster="true"