@abi-software/flatmapvuer 1.1.3 → 1.1.4-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/LICENSE +201 -201
- package/README.md +120 -120
- package/cypress.config.js +23 -23
- package/dist/flatmapvuer.js +43644 -38535
- package/dist/flatmapvuer.umd.cjs +189 -181
- 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 +113 -109
- package/src/components/FlatmapVuer.vue +3588 -3455
- package/src/components/HelpModeDialog.vue +360 -360
- package/src/components/MultiFlatmapVuer.vue +830 -814
- package/src/components/ProvenancePopup.vue +532 -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 -1
- 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 +505 -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,113 @@
|
|
|
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
|
-
.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
:
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
+
.resource-container {
|
|
60
|
+
margin-top: 0.5em;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.attribute-title {
|
|
64
|
+
font-size: 16px;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
/* font-weight: bold; */
|
|
67
|
+
text-transform: uppercase;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.attribute-content {
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.el-link {
|
|
76
|
+
color: $app-primary-color;
|
|
77
|
+
text-decoration: none;
|
|
78
|
+
word-wrap: break-word;
|
|
79
|
+
&:hover,
|
|
80
|
+
&:focus {
|
|
81
|
+
color: $app-primary-color;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:deep(.el-carousel__button) {
|
|
86
|
+
background-color: $app-primary-color;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.attribute-title {
|
|
90
|
+
font-size: 16px;
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
/* font-weight: bold; */
|
|
93
|
+
text-transform: uppercase;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.button {
|
|
97
|
+
margin-left: 0px !important;
|
|
98
|
+
margin-top: 0px !important;
|
|
99
|
+
font-size: 14px !important;
|
|
100
|
+
background-color: $app-primary-color;
|
|
101
|
+
color: #fff;
|
|
102
|
+
&:hover {
|
|
103
|
+
color: #fff !important;
|
|
104
|
+
background: #ac76c5 !important;
|
|
105
|
+
border: 1px solid #ac76c5 !important;
|
|
106
|
+
}
|
|
107
|
+
& + .button {
|
|
108
|
+
margin-top: 10px !important;
|
|
109
|
+
background-color: $app-primary-color;
|
|
110
|
+
color: #fff;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
</style>
|