@abi-software/map-utilities 1.5.1-beta.0 → 1.6.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-utilities",
3
- "version": "1.5.1-beta.0",
3
+ "version": "1.6.0-beta.0",
4
4
  "files": [
5
5
  "dist/*",
6
6
  "src/*",
@@ -52,7 +52,7 @@
52
52
  popper-class="popover-origin-help"
53
53
  >
54
54
  <template #reference>
55
- <el-icon
55
+ <el-icon
56
56
  class="magnify-glass"
57
57
  v-show="shouldShowMagnifyGlass(origin,)"
58
58
  @click="onConnectivityClicked(origin)"
@@ -98,7 +98,7 @@
98
98
  popper-class="popover-origin-help"
99
99
  >
100
100
  <template #reference>
101
- <el-icon
101
+ <el-icon
102
102
  class="magnify-glass"
103
103
  v-show="shouldShowMagnifyGlass(component)"
104
104
  @click="onConnectivityClicked(component)"
@@ -146,7 +146,7 @@
146
146
  popper-class="popover-origin-help"
147
147
  >
148
148
  <template #reference>
149
- <el-icon
149
+ <el-icon
150
150
  class="magnify-glass"
151
151
  v-show="shouldShowMagnifyGlass(destination)"
152
152
  @click="onConnectivityClicked(destination)"
@@ -472,7 +472,7 @@ export default {
472
472
  right:0px;
473
473
  }
474
474
 
475
- :deep(.connectivity-error-container.el-popover) {
475
+ .connectivity-list :deep(.connectivity-error-container.el-popover) {
476
476
  min-height: 31px; // placeholder
477
477
  align-items: center;
478
478
  justify-content: center;
@@ -481,5 +481,6 @@ export default {
481
481
  border-radius: var(--el-border-radius-small);
482
482
  border: 1px solid var(--el-color-error);
483
483
  pointer-events: none;
484
+ word-break: break-word;
484
485
  }
485
486
  </style>
@@ -72,13 +72,13 @@
72
72
  {{ sub.creator.name }}
73
73
  </el-row>
74
74
  <el-row class="dialog-text">
75
- <strong>Evidence: </strong>
75
+ <strong>Evidence: &nbsp;</strong>
76
76
  <el-row
77
77
  v-for="(evidence, index) in processEvidences(sub)"
78
78
  :key="evidence"
79
79
  class="dialog-text"
80
- >
81
- <a v-if="typeof evidence === 'object' ":href="Object.values(evidence)[0]" target="_blank">
80
+ >
81
+ <a v-if="typeof evidence === 'object' ":href="Object.values(evidence)[0]" target="_blank">
82
82
  {{ Object.keys(evidence)[0] }}
83
83
  </a>
84
84
  <span v-else> {{ evidence }}</span>
@@ -86,7 +86,7 @@
86
86
  </el-row>
87
87
  </el-row>
88
88
  <el-row class="dialog-text">
89
- <strong>Comment: </strong> {{ sub.body.comment }}
89
+ <strong>Comment: &nbsp;</strong> {{ sub.body.comment }}
90
90
  </el-row>
91
91
  </div>
92
92
  </template>
@@ -270,13 +270,22 @@ export default {
270
270
  previous: function () {
271
271
  if (this.entryIndex !== 0) {
272
272
  this.entryIndex = this.entryIndex - 1;
273
+ this.emitActiveItemChange();
273
274
  }
274
275
  },
275
276
  next: function () {
276
277
  if (this.entryIndex !== this.annotationEntry.length - 1) {
277
278
  this.entryIndex = this.entryIndex + 1;
279
+ this.emitActiveItemChange();
278
280
  }
279
281
  },
282
+ emitActiveItemChange: function () {
283
+ const tabType = { tabType: "annotation" };
284
+ const data = this.annotationEntry[this.entryIndex];
285
+ const payload = {...tabType, ...data};
286
+
287
+ this.$emit('hover-changed', payload);
288
+ },
280
289
  processEvidences: function(sub) {
281
290
  const evidences = [];
282
291
  if (sub?.body?.evidence) {
@@ -490,6 +499,10 @@ export default {
490
499
  handler: function (newVal, oldVal) {
491
500
  if (newVal !== oldVal) {
492
501
  this.entryIndex = 0;
502
+
503
+ if (newVal?.length) {
504
+ this.emitActiveItemChange();
505
+ }
493
506
  }
494
507
  },
495
508
  },
@@ -523,6 +536,9 @@ export default {
523
536
  .toggle-button {
524
537
  display: flex;
525
538
  justify-content: space-between;
539
+ padding-bottom: 1rem;
540
+ margin-bottom: 1rem;
541
+ border-bottom: 1px solid #e4e7ed;
526
542
 
527
543
  .is-disabled {
528
544
  color: #fff !important;
@@ -559,6 +575,9 @@ export default {
559
575
 
560
576
  .block {
561
577
  margin-bottom: 0.5em;
578
+ display: flex;
579
+ flex-direction: column;
580
+ gap: 0.5rem;
562
581
 
563
582
  .main > &:first-of-type {
564
583
  margin-right: 0.5em;
@@ -637,7 +656,8 @@ export default {
637
656
 
638
657
  .dialog-spacer {
639
658
  border-bottom: 1px solid #e4e7ed;
640
- margin-bottom: 10px;
659
+ margin-top: 0.5rem;
660
+ margin-bottom: 0.5rem;
641
661
  }
642
662
 
643
663
  .submit {
@@ -689,4 +709,8 @@ export default {
689
709
  }
690
710
  }
691
711
  }
712
+
713
+ .annotation-popup :deep(.el-popover.el-popper) {
714
+ word-break: break-word;
715
+ }
692
716
  </style>