@abi-software/flatmapvuer 1.1.4 → 1.2.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 +120 -120
- package/cypress.config.js +23 -23
- package/dist/flatmapvuer.js +43570 -38544
- package/dist/flatmapvuer.umd.cjs +182 -182
- package/dist/index.html +17 -17
- package/dist/style.css +1 -1
- package/package.json +95 -95
- package/public/index.html +17 -17
- package/reporter-config.json +9 -9
- package/src/App.vue +379 -379
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +5 -5
- package/src/components/AnnotationTool.vue +501 -501
- package/src/components/ConnectionDialog.vue +134 -134
- package/src/components/DrawTool.vue +502 -502
- package/src/components/EventBus.js +3 -3
- package/src/components/ExternalResourceCard.vue +109 -109
- package/src/components/FlatmapVuer.vue +3515 -3461
- package/src/components/HelpModeDialog.vue +360 -360
- package/src/components/MultiFlatmapVuer.vue +814 -814
- package/src/components/ProvenancePopup.vue +530 -530
- package/src/components/SelectionsGroup.vue +363 -363
- package/src/components/Tooltip.vue +50 -50
- package/src/components/TreeControls.vue +236 -236
- package/src/components/index.js +8 -8
- package/src/components/legends/DynamicLegends.vue +106 -106
- package/src/components/legends/SvgLegends.vue +112 -112
- package/src/icons/flatmap-marker.js +9 -9
- package/src/icons/fonts/mapicon-species.svg +14 -14
- package/src/icons/fonts/mapicon-species.ttf +0 -0
- package/src/icons/fonts/mapicon-species.woff +0 -0
- package/src/icons/mapicon-species-style.css +42 -42
- package/src/icons/yellowstar.js +5 -5
- package/src/legends/legend.svg +25 -25
- package/src/main.js +19 -19
- package/src/services/flatmapQueries.js +475 -475
- package/src/store/index.js +23 -23
- package/vite.config.js +73 -73
- package/vite.static-build.js +12 -12
- package/vuese-generator.js +64 -64
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import mitt from 'mitt'
|
|
2
|
-
const EventBus = new mitt()
|
|
3
|
-
export default EventBus
|
|
1
|
+
import mitt from 'mitt'
|
|
2
|
+
const EventBus = new mitt()
|
|
3
|
+
export default EventBus
|
|
@@ -1,109 +1,109 @@
|
|
|
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
|
-
import { shallowRef } from 'vue'
|
|
21
|
-
import {
|
|
22
|
-
Notebook as ElIconNotebook,
|
|
23
|
-
} from '@element-plus/icons-vue'
|
|
24
|
-
/* eslint-disable no-alert, no-console */
|
|
25
|
-
import { ElButton as Button } from 'element-plus'
|
|
26
|
-
import EventBus from './EventBus'
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
name: 'ExternalResourceCard',
|
|
30
|
-
components: {
|
|
31
|
-
Button,
|
|
32
|
-
},
|
|
33
|
-
props: {
|
|
34
|
-
resources: {
|
|
35
|
-
type: Array,
|
|
36
|
-
default: () => [],
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
data: function () {
|
|
40
|
-
return {
|
|
41
|
-
pubmeds: [],
|
|
42
|
-
pubmedIds: [],
|
|
43
|
-
ElIconNotebook: shallowRef(ElIconNotebook)
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
methods: {
|
|
47
|
-
capitalise: function (string) {
|
|
48
|
-
return string.charAt(0).toUpperCase() + string.slice(1)
|
|
49
|
-
},
|
|
50
|
-
openUrl: function (url) {
|
|
51
|
-
EventBus.emit('open-pubmed-url', url);
|
|
52
|
-
window.open(url, '_blank')
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
}
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
<style lang="scss" scoped>
|
|
59
|
-
.attribute-title {
|
|
60
|
-
font-size: 16px;
|
|
61
|
-
font-weight: 600;
|
|
62
|
-
/* font-weight: bold; */
|
|
63
|
-
text-transform: uppercase;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.attribute-content {
|
|
67
|
-
font-size: 14px;
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.el-link {
|
|
72
|
-
color: $app-primary-color;
|
|
73
|
-
text-decoration: none;
|
|
74
|
-
word-wrap: break-word;
|
|
75
|
-
&:hover,
|
|
76
|
-
&:focus {
|
|
77
|
-
color: $app-primary-color;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:deep(.el-carousel__button) {
|
|
82
|
-
background-color: $app-primary-color;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.attribute-title {
|
|
86
|
-
font-size: 16px;
|
|
87
|
-
font-weight: 600;
|
|
88
|
-
/* font-weight: bold; */
|
|
89
|
-
text-transform: uppercase;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.button {
|
|
93
|
-
margin-left: 0px !important;
|
|
94
|
-
margin-top: 0px !important;
|
|
95
|
-
font-size: 14px !important;
|
|
96
|
-
background-color: $app-primary-color;
|
|
97
|
-
color: #fff;
|
|
98
|
-
&:hover {
|
|
99
|
-
color: #fff !important;
|
|
100
|
-
background: #ac76c5 !important;
|
|
101
|
-
border: 1px solid #ac76c5 !important;
|
|
102
|
-
}
|
|
103
|
-
& + .button {
|
|
104
|
-
margin-top: 10px !important;
|
|
105
|
-
background-color: $app-primary-color;
|
|
106
|
-
color: #fff;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
</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
|
+
import { shallowRef } from 'vue'
|
|
21
|
+
import {
|
|
22
|
+
Notebook as ElIconNotebook,
|
|
23
|
+
} from '@element-plus/icons-vue'
|
|
24
|
+
/* eslint-disable no-alert, no-console */
|
|
25
|
+
import { ElButton as Button } from 'element-plus'
|
|
26
|
+
import EventBus from './EventBus'
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
name: 'ExternalResourceCard',
|
|
30
|
+
components: {
|
|
31
|
+
Button,
|
|
32
|
+
},
|
|
33
|
+
props: {
|
|
34
|
+
resources: {
|
|
35
|
+
type: Array,
|
|
36
|
+
default: () => [],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
data: function () {
|
|
40
|
+
return {
|
|
41
|
+
pubmeds: [],
|
|
42
|
+
pubmedIds: [],
|
|
43
|
+
ElIconNotebook: shallowRef(ElIconNotebook)
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
capitalise: function (string) {
|
|
48
|
+
return string.charAt(0).toUpperCase() + string.slice(1)
|
|
49
|
+
},
|
|
50
|
+
openUrl: function (url) {
|
|
51
|
+
EventBus.emit('open-pubmed-url', url);
|
|
52
|
+
window.open(url, '_blank')
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style lang="scss" scoped>
|
|
59
|
+
.attribute-title {
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
/* font-weight: bold; */
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.attribute-content {
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.el-link {
|
|
72
|
+
color: $app-primary-color;
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
word-wrap: break-word;
|
|
75
|
+
&:hover,
|
|
76
|
+
&:focus {
|
|
77
|
+
color: $app-primary-color;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:deep(.el-carousel__button) {
|
|
82
|
+
background-color: $app-primary-color;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.attribute-title {
|
|
86
|
+
font-size: 16px;
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
/* font-weight: bold; */
|
|
89
|
+
text-transform: uppercase;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.button {
|
|
93
|
+
margin-left: 0px !important;
|
|
94
|
+
margin-top: 0px !important;
|
|
95
|
+
font-size: 14px !important;
|
|
96
|
+
background-color: $app-primary-color;
|
|
97
|
+
color: #fff;
|
|
98
|
+
&:hover {
|
|
99
|
+
color: #fff !important;
|
|
100
|
+
background: #ac76c5 !important;
|
|
101
|
+
border: 1px solid #ac76c5 !important;
|
|
102
|
+
}
|
|
103
|
+
& + .button {
|
|
104
|
+
margin-top: 10px !important;
|
|
105
|
+
background-color: $app-primary-color;
|
|
106
|
+
color: #fff;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</style>
|