@abi-software/map-utilities 1.5.1-beta.0 → 1.6.0-beta.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-utilities",
3
- "version": "1.5.1-beta.0",
3
+ "version": "1.6.0-beta.1",
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>
@@ -84,7 +84,6 @@
84
84
  :class="{ 'show-picker': showColourPicker }"
85
85
  v-model="data.activeColour"
86
86
  size="small"
87
- :popper-class="myPopperClass"
88
87
  @change="setColour(data, $event)"
89
88
  />
90
89
  <div class="lastChildInItem">
@@ -157,7 +156,6 @@ export default {
157
156
  return {
158
157
  defaultExpandedKeys: ["All"],
159
158
  filterText: "",
160
- myPopperClass: "hide-scaffold-colour-popup",
161
159
  tooltipVisible: false,
162
160
  tooltipLabel: "",
163
161
  tooltipAtBottom: false,
@@ -186,13 +184,6 @@ export default {
186
184
  },
187
185
  },
188
186
  watch: {
189
- showColourPicker: {
190
- immediate: true,
191
- handler: function () {
192
- if (this.showColourPicker) this.myPopperClass = "showPicker";
193
- else this.myPopperClass = "hide-scaffold-colour-popup";
194
- },
195
- },
196
187
  filterText: {
197
188
  handler: function (value) {
198
189
  if (this.$refs.regionTree) this.$refs.regionTree.filter(value);
@@ -394,6 +385,7 @@ export default {
394
385
  width: 100%;
395
386
 
396
387
  :deep(.el-color-picker) {
388
+ pointer-events: none;
397
389
  height: 14px !important;
398
390
  }
399
391
 
@@ -412,14 +404,17 @@ export default {
412
404
  }
413
405
 
414
406
  :deep(.el-color-picker__icon) {
415
- &.el-icon-arrow-down {
407
+ &.is-icon-arrow-down {
416
408
  display: none;
417
409
  }
418
410
  }
419
411
 
420
412
  :deep(.show-picker) {
413
+ &.el-color-picker {
414
+ pointer-events: auto;
415
+ }
421
416
  .el-color-picker__icon {
422
- &.el-icon-arrow-down {
417
+ &.is-icon-arrow-down {
423
418
  display: block;
424
419
  }
425
420
  }