@abi-software/map-utilities 0.0.0-beta.6 → 1.0.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/LICENSE +201 -201
- package/README.md +27 -27
- package/dist/map-utilities.js +1322 -1277
- package/dist/map-utilities.umd.cjs +13 -13
- package/dist/style.css +1 -1
- package/jsconfig.json +8 -8
- package/package.json +44 -40
- package/src/App.vue +511 -511
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +5 -5
- package/src/components/DrawToolbar/ConnectionDialog.vue +118 -118
- package/src/components/DrawToolbar/DrawToolbar.vue +627 -627
- package/src/components/EventBus.js +3 -3
- package/src/components/HelpModeDialog/HelpModeDialog.vue +394 -394
- package/src/components/Tooltip/AnnotationPopup.vue +467 -467
- package/src/components/Tooltip/ExternalResourceCard.vue +108 -108
- package/src/components/Tooltip/ProvenancePopup.vue +518 -518
- package/src/components/Tooltip/Tooltip.vue +53 -53
- package/src/components/TreeControls/TreeControls.vue +418 -350
- package/src/components/index.js +6 -6
- package/src/main.js +16 -16
- package/vite.config.js +56 -56
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="resource-container">
|
|
3
|
-
<template v-for="resource in resources" :key="resource.id">
|
|
4
|
-
<div class="resource">
|
|
5
|
-
<el-button
|
|
6
|
-
v-if="resource.id === 'pubmed'"
|
|
7
|
-
class="button"
|
|
8
|
-
id="open-pubmed-button"
|
|
9
|
-
:icon="ElIconNotebook"
|
|
10
|
-
@click="openUrl(resource.url)"
|
|
11
|
-
>
|
|
12
|
-
Open publications in PubMed
|
|
13
|
-
</el-button>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
/* eslint-disable no-alert, no-console */
|
|
21
|
-
import { shallowRef } from "vue";
|
|
22
|
-
import { Notebook as ElIconNotebook } from "@element-plus/icons-vue";
|
|
23
|
-
|
|
24
|
-
import EventBus from "../EventBus.js";
|
|
25
|
-
|
|
26
|
-
export default {
|
|
27
|
-
name: "ExternalResourceCard",
|
|
28
|
-
props: {
|
|
29
|
-
resources: {
|
|
30
|
-
type: Array,
|
|
31
|
-
default: () => [],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
data: function () {
|
|
35
|
-
return {
|
|
36
|
-
pubmeds: [],
|
|
37
|
-
pubmedIds: [],
|
|
38
|
-
ElIconNotebook: shallowRef(ElIconNotebook),
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
methods: {
|
|
42
|
-
capitalise: function (string) {
|
|
43
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
44
|
-
},
|
|
45
|
-
openUrl: function (url) {
|
|
46
|
-
EventBus.emit("open-pubmed-url", url);
|
|
47
|
-
window.open(url, "_blank");
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
</script>
|
|
52
|
-
|
|
53
|
-
<style lang="scss" scoped>
|
|
54
|
-
.resource-container {
|
|
55
|
-
margin-top: 0.5em;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.attribute-title {
|
|
59
|
-
font-size: 16px;
|
|
60
|
-
font-weight: 600;
|
|
61
|
-
/* font-weight: bold; */
|
|
62
|
-
text-transform: uppercase;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.attribute-content {
|
|
66
|
-
font-size: 14px;
|
|
67
|
-
font-weight: 400;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.el-link {
|
|
71
|
-
color: $app-primary-color;
|
|
72
|
-
text-decoration: none;
|
|
73
|
-
word-wrap: break-word;
|
|
74
|
-
&:hover,
|
|
75
|
-
&:focus {
|
|
76
|
-
color: $app-primary-color;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:deep(.el-carousel__button) {
|
|
81
|
-
background-color: $app-primary-color;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.attribute-title {
|
|
85
|
-
font-size: 16px;
|
|
86
|
-
font-weight: 600;
|
|
87
|
-
/* font-weight: bold; */
|
|
88
|
-
text-transform: uppercase;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.button {
|
|
92
|
-
margin-left: 0px !important;
|
|
93
|
-
margin-top: 0px !important;
|
|
94
|
-
font-size: 14px !important;
|
|
95
|
-
background-color: $app-primary-color;
|
|
96
|
-
color: #fff;
|
|
97
|
-
&:hover {
|
|
98
|
-
color: #fff !important;
|
|
99
|
-
background: #ac76c5 !important;
|
|
100
|
-
border: 1px solid #ac76c5 !important;
|
|
101
|
-
}
|
|
102
|
-
& + .button {
|
|
103
|
-
margin-top: 10px !important;
|
|
104
|
-
background-color: $app-primary-color;
|
|
105
|
-
color: #fff;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="resource-container">
|
|
3
|
+
<template v-for="resource in resources" :key="resource.id">
|
|
4
|
+
<div class="resource">
|
|
5
|
+
<el-button
|
|
6
|
+
v-if="resource.id === 'pubmed'"
|
|
7
|
+
class="button"
|
|
8
|
+
id="open-pubmed-button"
|
|
9
|
+
:icon="ElIconNotebook"
|
|
10
|
+
@click="openUrl(resource.url)"
|
|
11
|
+
>
|
|
12
|
+
Open publications in PubMed
|
|
13
|
+
</el-button>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
/* eslint-disable no-alert, no-console */
|
|
21
|
+
import { shallowRef } from "vue";
|
|
22
|
+
import { Notebook as ElIconNotebook } from "@element-plus/icons-vue";
|
|
23
|
+
|
|
24
|
+
import EventBus from "../EventBus.js";
|
|
25
|
+
|
|
26
|
+
export default {
|
|
27
|
+
name: "ExternalResourceCard",
|
|
28
|
+
props: {
|
|
29
|
+
resources: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: () => [],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
data: function () {
|
|
35
|
+
return {
|
|
36
|
+
pubmeds: [],
|
|
37
|
+
pubmedIds: [],
|
|
38
|
+
ElIconNotebook: shallowRef(ElIconNotebook),
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
methods: {
|
|
42
|
+
capitalise: function (string) {
|
|
43
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
44
|
+
},
|
|
45
|
+
openUrl: function (url) {
|
|
46
|
+
EventBus.emit("open-pubmed-url", url);
|
|
47
|
+
window.open(url, "_blank");
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<style lang="scss" scoped>
|
|
54
|
+
.resource-container {
|
|
55
|
+
margin-top: 0.5em;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.attribute-title {
|
|
59
|
+
font-size: 16px;
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
/* font-weight: bold; */
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.attribute-content {
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.el-link {
|
|
71
|
+
color: $app-primary-color;
|
|
72
|
+
text-decoration: none;
|
|
73
|
+
word-wrap: break-word;
|
|
74
|
+
&:hover,
|
|
75
|
+
&:focus {
|
|
76
|
+
color: $app-primary-color;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:deep(.el-carousel__button) {
|
|
81
|
+
background-color: $app-primary-color;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.attribute-title {
|
|
85
|
+
font-size: 16px;
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
/* font-weight: bold; */
|
|
88
|
+
text-transform: uppercase;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.button {
|
|
92
|
+
margin-left: 0px !important;
|
|
93
|
+
margin-top: 0px !important;
|
|
94
|
+
font-size: 14px !important;
|
|
95
|
+
background-color: $app-primary-color;
|
|
96
|
+
color: #fff;
|
|
97
|
+
&:hover {
|
|
98
|
+
color: #fff !important;
|
|
99
|
+
background: #ac76c5 !important;
|
|
100
|
+
border: 1px solid #ac76c5 !important;
|
|
101
|
+
}
|
|
102
|
+
& + .button {
|
|
103
|
+
margin-top: 10px !important;
|
|
104
|
+
background-color: $app-primary-color;
|
|
105
|
+
color: #fff;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
</style>
|