@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.
Files changed (41) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +120 -120
  3. package/cypress.config.js +23 -23
  4. package/dist/flatmapvuer.js +43570 -38544
  5. package/dist/flatmapvuer.umd.cjs +182 -182
  6. package/dist/index.html +17 -17
  7. package/dist/style.css +1 -1
  8. package/package.json +95 -95
  9. package/public/index.html +17 -17
  10. package/reporter-config.json +9 -9
  11. package/src/App.vue +379 -379
  12. package/src/assets/_variables.scss +43 -43
  13. package/src/assets/styles.scss +5 -5
  14. package/src/components/AnnotationTool.vue +501 -501
  15. package/src/components/ConnectionDialog.vue +134 -134
  16. package/src/components/DrawTool.vue +502 -502
  17. package/src/components/EventBus.js +3 -3
  18. package/src/components/ExternalResourceCard.vue +109 -109
  19. package/src/components/FlatmapVuer.vue +3515 -3461
  20. package/src/components/HelpModeDialog.vue +360 -360
  21. package/src/components/MultiFlatmapVuer.vue +814 -814
  22. package/src/components/ProvenancePopup.vue +530 -530
  23. package/src/components/SelectionsGroup.vue +363 -363
  24. package/src/components/Tooltip.vue +50 -50
  25. package/src/components/TreeControls.vue +236 -236
  26. package/src/components/index.js +8 -8
  27. package/src/components/legends/DynamicLegends.vue +106 -106
  28. package/src/components/legends/SvgLegends.vue +112 -112
  29. package/src/icons/flatmap-marker.js +9 -9
  30. package/src/icons/fonts/mapicon-species.svg +14 -14
  31. package/src/icons/fonts/mapicon-species.ttf +0 -0
  32. package/src/icons/fonts/mapicon-species.woff +0 -0
  33. package/src/icons/mapicon-species-style.css +42 -42
  34. package/src/icons/yellowstar.js +5 -5
  35. package/src/legends/legend.svg +25 -25
  36. package/src/main.js +19 -19
  37. package/src/services/flatmapQueries.js +475 -475
  38. package/src/store/index.js +23 -23
  39. package/vite.config.js +73 -73
  40. package/vite.static-build.js +12 -12
  41. 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>