@abi-software/map-utilities 1.5.0-beta.1 → 1.5.0-beta.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/dist/map-utilities.js +3063 -3015
- package/dist/map-utilities.umd.cjs +55 -55
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/ConnectivityList/ConnectivityList.vue +37 -5
- package/src/components.d.ts +1 -0
package/package.json
CHANGED
|
@@ -26,7 +26,13 @@
|
|
|
26
26
|
@mouseenter="onConnectivityHovered(origin)"
|
|
27
27
|
@mouseleave="onConnectivityHovered()"
|
|
28
28
|
>
|
|
29
|
-
{{ capitalise(origin) }}
|
|
29
|
+
<span>{{ capitalise(origin) }}</span>
|
|
30
|
+
<el-icon
|
|
31
|
+
class="connectivity-search-icon"
|
|
32
|
+
@click="onConnectivityClicked(origin)"
|
|
33
|
+
>
|
|
34
|
+
<el-icon-search />
|
|
35
|
+
</el-icon>
|
|
30
36
|
</div>
|
|
31
37
|
<el-button
|
|
32
38
|
v-show="
|
|
@@ -55,7 +61,13 @@
|
|
|
55
61
|
@mouseenter="onConnectivityHovered(component)"
|
|
56
62
|
@mouseleave="onConnectivityHovered()"
|
|
57
63
|
>
|
|
58
|
-
{{ capitalise(component) }}
|
|
64
|
+
<span>{{ capitalise(component) }}</span>
|
|
65
|
+
<el-icon
|
|
66
|
+
class="connectivity-search-icon"
|
|
67
|
+
@click="onConnectivityClicked(component)"
|
|
68
|
+
>
|
|
69
|
+
<el-icon-search />
|
|
70
|
+
</el-icon>
|
|
59
71
|
</div>
|
|
60
72
|
</div>
|
|
61
73
|
<div
|
|
@@ -86,7 +98,13 @@
|
|
|
86
98
|
@mouseenter="onConnectivityHovered(destination)"
|
|
87
99
|
@mouseleave="onConnectivityHovered()"
|
|
88
100
|
>
|
|
89
|
-
{{ capitalise(destination) }}
|
|
101
|
+
<span>{{ capitalise(destination) }}</span>
|
|
102
|
+
<el-icon
|
|
103
|
+
class="connectivity-search-icon"
|
|
104
|
+
@click="onConnectivityClicked(destination)"
|
|
105
|
+
>
|
|
106
|
+
<el-icon-search />
|
|
107
|
+
</el-icon>
|
|
90
108
|
</div>
|
|
91
109
|
<el-button
|
|
92
110
|
v-show="
|
|
@@ -130,6 +148,7 @@
|
|
|
130
148
|
<script>
|
|
131
149
|
import {
|
|
132
150
|
Warning as ElIconWarning,
|
|
151
|
+
Search as ElIconSearch,
|
|
133
152
|
} from '@element-plus/icons-vue'
|
|
134
153
|
import {
|
|
135
154
|
ElButton as Button,
|
|
@@ -145,6 +164,7 @@ export default {
|
|
|
145
164
|
Container,
|
|
146
165
|
Icon,
|
|
147
166
|
ElIconWarning,
|
|
167
|
+
ElIconSearch
|
|
148
168
|
},
|
|
149
169
|
props: {
|
|
150
170
|
entry: {
|
|
@@ -232,8 +252,8 @@ export default {
|
|
|
232
252
|
onConnectivityHovered: function (name) {
|
|
233
253
|
this.$emit('connectivity-hovered', name);
|
|
234
254
|
},
|
|
235
|
-
onConnectivityClicked: function (
|
|
236
|
-
this.$emit('connectivity-clicked',
|
|
255
|
+
onConnectivityClicked: function (name) {
|
|
256
|
+
this.$emit('connectivity-clicked', name);
|
|
237
257
|
},
|
|
238
258
|
// shouldShowExploreButton: Checks if the feature is in the list of available anatomy facets
|
|
239
259
|
shouldShowExploreButton: function (features) {
|
|
@@ -348,14 +368,26 @@ export default {
|
|
|
348
368
|
}
|
|
349
369
|
|
|
350
370
|
.attribute-content {
|
|
371
|
+
display: flex;
|
|
372
|
+
justify-content: space-between;
|
|
351
373
|
font-size: 14px;
|
|
352
374
|
font-weight: 500;
|
|
353
375
|
transition: color 0.25s ease;
|
|
354
376
|
position: relative;
|
|
355
377
|
cursor: default;
|
|
356
378
|
|
|
379
|
+
.connectivity-search-icon {
|
|
380
|
+
display: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
357
383
|
&:hover {
|
|
358
384
|
color: $app-primary-color;
|
|
385
|
+
|
|
386
|
+
.connectivity-search-icon {
|
|
387
|
+
padding-top: 4px;
|
|
388
|
+
cursor: pointer;
|
|
389
|
+
display: block;
|
|
390
|
+
}
|
|
359
391
|
}
|
|
360
392
|
|
|
361
393
|
+ .attribute-content {
|
package/src/components.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ declare module 'vue' {
|
|
|
30
30
|
ElIconEdit: typeof import('@element-plus/icons-vue')['Edit']
|
|
31
31
|
ElIconFinished: typeof import('@element-plus/icons-vue')['Finished']
|
|
32
32
|
ElIconLock: typeof import('@element-plus/icons-vue')['Lock']
|
|
33
|
+
ElIconSearch: typeof import('@element-plus/icons-vue')['Search']
|
|
33
34
|
ElIconUnlock: typeof import('@element-plus/icons-vue')['Unlock']
|
|
34
35
|
ElIconWarning: typeof import('@element-plus/icons-vue')['Warning']
|
|
35
36
|
ElIconZoomIn: typeof import('@element-plus/icons-vue')['ZoomIn']
|