@abi-software/map-side-bar 2.4.0 → 2.4.1

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/map-side-bar",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "files": [
5
5
  "dist/*",
6
6
  "src/*",
@@ -4,7 +4,24 @@
4
4
  <div class="connectivity-info-title">
5
5
  <div>
6
6
  <div class="block" v-if="entry.title">
7
- <div class="title">{{ capitalise(entry.title) }}</div>
7
+ <div class="title">
8
+ {{ capitalise(entry.title) }}
9
+ <template v-if="entry.featuresAlert">
10
+ <el-popover
11
+ width="250"
12
+ trigger="hover"
13
+ :teleported="false"
14
+ popper-class="popover-origin-help"
15
+ >
16
+ <template #reference>
17
+ <el-icon class="alert"><el-icon-warn-triangle-filled /></el-icon>
18
+ </template>
19
+ <span style="word-break: keep-all">
20
+ {{ entry.featuresAlert }}
21
+ </span>
22
+ </el-popover>
23
+ </template>
24
+ </div>
8
25
  <div
9
26
  v-if="
10
27
  entry.provenanceTaxonomyLabel &&
@@ -41,22 +58,6 @@
41
58
  <CopyToClipboard :content="updatedCopyContent" />
42
59
  </div>
43
60
  </div>
44
- <div v-if="featuresAlert" class="attribute-title-container">
45
- <span class="attribute-title">Alert</span>
46
- <el-popover
47
- width="250"
48
- trigger="hover"
49
- :teleported="false"
50
- popper-class="popover-origin-help"
51
- >
52
- <template #reference>
53
- <el-icon class="info"><el-icon-warning /></el-icon>
54
- </template>
55
- <span style="word-break: keep-all">
56
- {{ featuresAlert }}
57
- </span>
58
- </el-popover>
59
- </div>
60
61
  <div class="content-container scrollbar">
61
62
  {{ entry.paths }}
62
63
  <div v-if="entry.origins && entry.origins.length > 0" class="block">
@@ -229,6 +230,7 @@ export default {
229
230
  originsWithDatasets: [],
230
231
  componentsWithDatasets: [],
231
232
  resource: undefined,
233
+ featuresAlert: undefined,
232
234
  }),
233
235
  },
234
236
  availableAnatomyFacets: {
@@ -236,7 +238,6 @@ export default {
236
238
  default: () => [],
237
239
  },
238
240
  },
239
- // inject: ['getFeaturesAlert'],
240
241
  data: function () {
241
242
  return {
242
243
  controller: undefined,
@@ -274,9 +275,6 @@ export default {
274
275
  }
275
276
  return resources;
276
277
  },
277
- featuresAlert() {
278
- // return this.getFeaturesAlert()
279
- },
280
278
  originDescription: function () {
281
279
  if (
282
280
  this.entry &&
@@ -517,6 +515,9 @@ export default {
517
515
  :deep(.popover-origin-help.el-popover) {
518
516
  text-transform: none !important; // need to overide the tooltip text transform
519
517
  border: 1px solid $app-primary-color;
518
+ font-weight: 400;
519
+ font-family: Asap, sans-serif, Helvetica;
520
+
520
521
  .el-popper__arrow {
521
522
  &:before {
522
523
  border-color: $app-primary-color;
@@ -525,12 +526,27 @@ export default {
525
526
  }
526
527
  }
527
528
 
529
+ .info,
530
+ .alert {
531
+ color: #8300bf;
532
+ }
533
+
528
534
  .info {
529
535
  transform: rotate(180deg);
530
- color: #8300bf;
531
536
  margin-left: 8px;
532
537
  }
533
538
 
539
+ .alert {
540
+ margin-left: 5px;
541
+ vertical-align: text-bottom;
542
+
543
+ &,
544
+ > svg {
545
+ width: 1.25rem;
546
+ height: 1.25rem;
547
+ }
548
+ }
549
+
534
550
  .seperator {
535
551
  width: 90%;
536
552
  height: 1px;
@@ -19,6 +19,7 @@ declare module 'vue' {
19
19
  ElIconArrowRight: typeof import('@element-plus/icons-vue')['ArrowRight']
20
20
  ElIconLocation: typeof import('@element-plus/icons-vue')['Location']
21
21
  ElIconWarning: typeof import('@element-plus/icons-vue')['Warning']
22
+ ElIconWarnTriangleFilled: typeof import('@element-plus/icons-vue')['WarnTriangleFilled']
22
23
  ElInput: typeof import('element-plus/es')['ElInput']
23
24
  ElOption: typeof import('element-plus/es')['ElOption']
24
25
  ElPagination: typeof import('element-plus/es')['ElPagination']