@abi-software/flatmapvuer 0.5.10 → 0.6.0-vue3-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.
Files changed (41) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +105 -105
  3. package/babel.config.js +0 -14
  4. package/dist/favicon.ico +0 -0
  5. package/dist/flatmapvuer.js +69542 -0
  6. package/dist/flatmapvuer.umd.cjs +1021 -0
  7. package/dist/index.html +17 -0
  8. package/dist/style.css +1 -0
  9. package/package.json +87 -79
  10. package/public/index.html +17 -17
  11. package/src/App.vue +303 -228
  12. package/src/assets/_variables.scss +43 -43
  13. package/src/assets/styles.scss +6 -7
  14. package/src/components/AnnotationTool.vue +443 -403
  15. package/src/components/EventBus.js +3 -3
  16. package/src/components/ExternalResourceCard.vue +108 -99
  17. package/src/components/FlatmapVuer.vue +2117 -2070
  18. package/src/components/MultiFlatmapVuer.vue +603 -535
  19. package/src/components/ProvenancePopup.vue +496 -422
  20. package/src/components/SelectionsGroup.vue +258 -249
  21. package/src/components/Tooltip.vue +50 -52
  22. package/src/components/TreeControls.vue +234 -231
  23. package/src/components/index.js +6 -9
  24. package/src/components/legends/DynamicLegends.vue +106 -112
  25. package/src/components/legends/SvgLegends.vue +112 -67
  26. package/src/components.d.ts +46 -0
  27. package/src/icons/flatmap-marker.js +1 -1
  28. package/src/icons/fonts/mapicon-species.eot +0 -0
  29. package/src/icons/fonts/mapicon-species.svg +14 -14
  30. package/src/icons/fonts/mapicon-species.ttf +0 -0
  31. package/src/icons/fonts/mapicon-species.woff +0 -0
  32. package/src/icons/mapicon-species-style.css +42 -42
  33. package/src/icons/yellowstar.js +5 -5
  34. package/src/legends/legend.svg +25 -25
  35. package/src/main.js +4 -8
  36. package/src/services/flatmapQueries.js +451 -415
  37. package/vite.config.js +76 -0
  38. package/vue.config.js +45 -31
  39. package/CHANGELOG.md +0 -402
  40. package/package-lock.json +0 -18473
  41. package/src/nerve-map.js +0 -99
@@ -1,3 +1,3 @@
1
- import Vue from 'vue';
2
- const EventBus = new Vue();
3
- export default EventBus;
1
+ import mitt from 'mitt'
2
+ const EventBus = new mitt()
3
+ export default EventBus
@@ -1,99 +1,108 @@
1
- <template>
2
- <div class="resource-container">
3
- <template v-for="resource in resources">
4
- <div class="resource" :key="resource.id">
5
- <el-button v-if="resource.id === 'pubmed'" class="button" icon="el-icon-notebook-2" @click="openUrl(resource.url)">
6
- Open publications in pubmed
7
- </el-button>
8
- </div>
9
- </template>
10
- </div>
11
- </template>
12
-
13
-
14
-
15
- <script>
16
- /* eslint-disable no-alert, no-console */
17
- import Vue from "vue";
18
- import { Button } from "element-ui";
19
- Vue.use(Button);
20
-
21
- export default {
22
- name: "ExternalResourceCard",
23
- props: {
24
- resources: {
25
- type: Array,
26
- default: () => []
27
- },
28
- },
29
- data: function() {
30
- return {
31
- pubmeds: [],
32
- pubmedIds: [],
33
- };
34
- },
35
- methods: {
36
- capitalise: function(string) {
37
- return string.charAt(0).toUpperCase() + string.slice(1);
38
- },
39
- openUrl: function(url){
40
- window.open(url, '_blank')
41
- },
42
- }
43
- };
44
- </script>
45
-
46
- <style scoped lang="scss">
47
- @import "~element-ui/packages/theme-chalk/src/button";
48
-
49
- .attribute-title{
50
- font-size: 16px;
51
- font-weight: 600;
52
- /* font-weight: bold; */
53
- text-transform: uppercase;
54
- }
55
-
56
- .attribute-content{
57
- font-size: 14px;
58
- font-weight: 400;
59
- }
60
-
61
- .el-link {
62
- color: $app-primary-color;
63
- text-decoration: none;
64
- word-wrap: break-word;
65
- &:hover, &:focus{
66
- color: $app-primary-color;
67
- }
68
- }
69
-
70
- ::v-deep .el-carousel__button {
71
- background-color: $app-primary-color;
72
- }
73
-
74
- .attribute-title{
75
- font-size: 16px;
76
- font-weight: 600;
77
- /* font-weight: bold; */
78
- text-transform: uppercase;
79
- }
80
-
81
- .button {
82
- margin-left: 0px !important;
83
- margin-top: 0px !important;
84
- font-size: 14px !important;
85
- background-color: $app-primary-color;
86
- color: #fff;
87
- &:hover{
88
- color: #fff !important;
89
- background: #ac76c5 !important;
90
- border: 1px solid #ac76c5 !important;
91
- }
92
- &+.button {
93
- margin-top: 10px !important;
94
- background-color: $app-primary-color;
95
- color: #fff;
96
- }
97
- }
98
-
99
- </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
+ :icon="ElIconNotebook"
9
+ @click="openUrl(resource.url)"
10
+ >
11
+ Open publications in pubmed
12
+ </el-button>
13
+ </div>
14
+ </template>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ import { shallowRef } from 'vue'
20
+ import {
21
+ Notebook as ElIconNotebook,
22
+ } from '@element-plus/icons-vue'
23
+ /* eslint-disable no-alert, no-console */
24
+ import { ElButton as Button } from 'element-plus'
25
+
26
+ export default {
27
+ name: 'ExternalResourceCard',
28
+ components: {
29
+ Button,
30
+ },
31
+ props: {
32
+ resources: {
33
+ type: Array,
34
+ default: () => [],
35
+ },
36
+ },
37
+ data: function () {
38
+ return {
39
+ pubmeds: [],
40
+ pubmedIds: [],
41
+ ElIconNotebook: shallowRef(ElIconNotebook)
42
+ }
43
+ },
44
+ methods: {
45
+ capitalise: function (string) {
46
+ return string.charAt(0).toUpperCase() + string.slice(1)
47
+ },
48
+ openUrl: function (url) {
49
+ window.open(url, '_blank')
50
+ },
51
+ },
52
+ }
53
+ </script>
54
+
55
+ <style lang="scss" scoped>
56
+ @use 'element-plus/theme-chalk/src/button';
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>