@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,134 +1,134 @@
1
- <template>
2
- <div class="dialog-container">
3
- <el-row>
4
- <el-col>
5
- <span class="dialog-title">Visualise connection</span>
6
- <el-row v-if="inDrawing">
7
- <span class="dialog-subtitle">Finalise drawing</span>
8
- <el-button-group>
9
- <el-button
10
- type="primary"
11
- plain
12
- @click="$emit('confirmDrawn', true)"
13
- >
14
- Confirm
15
- </el-button>
16
- <el-button type="primary" plain @click="$emit('cancelDrawn', true)">
17
- Cancel
18
- </el-button>
19
- </el-button-group>
20
- </el-row>
21
- <el-row v-else>
22
- <el-button
23
- type="primary"
24
- plain
25
- @click="$emit('dialogDisplay', false)"
26
- >
27
- Close
28
- </el-button>
29
- </el-row>
30
- </el-col>
31
- </el-row>
32
- <el-row v-if="hasConnection">
33
- <el-col>
34
- <b><span>Related Features</span></b>
35
- <el-row v-for="(value, key) in connectionEntry" :key="key">
36
- <el-card :shadow="shadowDisplay(key)" @click="handleTooltip(key)">
37
- <span>{{ capitalise(value.label) }}</span>
38
- </el-card>
39
- </el-row>
40
- </el-col>
41
- </el-row>
42
- </div>
43
- </template>
44
-
45
- <script>
46
- /* eslint-disable no-alert, no-console */
47
- import {
48
- ElRow as Row,
49
- ElCol as Col,
50
- ElCard as Card,
51
- ElButton as Button,
52
- ElButtonGroup as ButtonGroup,
53
- } from "element-plus";
54
-
55
- export default {
56
- name: "ConnectionDialog",
57
- components: {
58
- Row,
59
- Col,
60
- ButtonGroup,
61
- Button,
62
- Card,
63
- },
64
- props: {
65
- connectionEntry: {
66
- type: Object,
67
- },
68
- inDrawing: {
69
- type: Boolean,
70
- default: false,
71
- },
72
- hasConnection: {
73
- type: Boolean,
74
- default: false,
75
- },
76
- },
77
- data: function () {
78
- return {
79
- tooltipId: undefined,
80
- };
81
- },
82
- methods: {
83
- shadowDisplay: function (value) {
84
- return this.tooltipId === value ? "always" : "hover";
85
- },
86
- capitalise: function (label) {
87
- return label[0].toUpperCase() + label.slice(1);
88
- },
89
- handleTooltip: function (value) {
90
- this.tooltipId = this.tooltipId === value ? undefined : value;
91
- this.$emit("featureTooltip", this.tooltipId);
92
- },
93
- },
94
- };
95
- </script>
96
-
97
- <style lang="scss" scoped>
98
- .dialog-container {
99
- width: 200px;
100
- height: fit-content;
101
- text-align: justify;
102
- border-radius: 4px;
103
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
104
- pointer-events: auto;
105
- background: #fff;
106
- border: 1px solid $app-primary-color;
107
- display: flex;
108
- flex-direction: column;
109
- padding: 0.8em;
110
- }
111
-
112
- .dialog-title {
113
- font-size: 18px;
114
- font-weight: bold;
115
- color: rgb(131, 0, 191);
116
- }
117
-
118
- .dialog-subtitle {
119
- margin-top: 5px;
120
- font-size: 15px;
121
- color: rgb(131, 0, 191);
122
- }
123
-
124
- .el-button {
125
- margin: 5px 0px;
126
- }
127
-
128
- :deep(.el-card) {
129
- width: 100%;
130
- --el-card-padding: 8px;
131
- border: 0;
132
- cursor: pointer;
133
- }
134
- </style>
1
+ <template>
2
+ <div class="dialog-container">
3
+ <el-row>
4
+ <el-col>
5
+ <span class="dialog-title">Visualise connection</span>
6
+ <el-row v-if="inDrawing">
7
+ <span class="dialog-subtitle">Finalise drawing</span>
8
+ <el-button-group>
9
+ <el-button
10
+ type="primary"
11
+ plain
12
+ @click="$emit('confirmDrawn', true)"
13
+ >
14
+ Confirm
15
+ </el-button>
16
+ <el-button type="primary" plain @click="$emit('cancelDrawn', true)">
17
+ Cancel
18
+ </el-button>
19
+ </el-button-group>
20
+ </el-row>
21
+ <el-row v-else>
22
+ <el-button
23
+ type="primary"
24
+ plain
25
+ @click="$emit('dialogDisplay', false)"
26
+ >
27
+ Close
28
+ </el-button>
29
+ </el-row>
30
+ </el-col>
31
+ </el-row>
32
+ <el-row v-if="hasConnection">
33
+ <el-col>
34
+ <b><span>Related Features</span></b>
35
+ <el-row v-for="(value, key) in connectionEntry" :key="key">
36
+ <el-card :shadow="shadowDisplay(key)" @click="handleTooltip(key)">
37
+ <span>{{ capitalise(value.label) }}</span>
38
+ </el-card>
39
+ </el-row>
40
+ </el-col>
41
+ </el-row>
42
+ </div>
43
+ </template>
44
+
45
+ <script>
46
+ /* eslint-disable no-alert, no-console */
47
+ import {
48
+ ElRow as Row,
49
+ ElCol as Col,
50
+ ElCard as Card,
51
+ ElButton as Button,
52
+ ElButtonGroup as ButtonGroup,
53
+ } from "element-plus";
54
+
55
+ export default {
56
+ name: "ConnectionDialog",
57
+ components: {
58
+ Row,
59
+ Col,
60
+ ButtonGroup,
61
+ Button,
62
+ Card,
63
+ },
64
+ props: {
65
+ connectionEntry: {
66
+ type: Object,
67
+ },
68
+ inDrawing: {
69
+ type: Boolean,
70
+ default: false,
71
+ },
72
+ hasConnection: {
73
+ type: Boolean,
74
+ default: false,
75
+ },
76
+ },
77
+ data: function () {
78
+ return {
79
+ tooltipId: undefined,
80
+ };
81
+ },
82
+ methods: {
83
+ shadowDisplay: function (value) {
84
+ return this.tooltipId === value ? "always" : "hover";
85
+ },
86
+ capitalise: function (label) {
87
+ return label[0].toUpperCase() + label.slice(1);
88
+ },
89
+ handleTooltip: function (value) {
90
+ this.tooltipId = this.tooltipId === value ? undefined : value;
91
+ this.$emit("featureTooltip", this.tooltipId);
92
+ },
93
+ },
94
+ };
95
+ </script>
96
+
97
+ <style lang="scss" scoped>
98
+ .dialog-container {
99
+ width: 200px;
100
+ height: fit-content;
101
+ text-align: justify;
102
+ border-radius: 4px;
103
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
104
+ pointer-events: auto;
105
+ background: #fff;
106
+ border: 1px solid $app-primary-color;
107
+ display: flex;
108
+ flex-direction: column;
109
+ padding: 0.8em;
110
+ }
111
+
112
+ .dialog-title {
113
+ font-size: 18px;
114
+ font-weight: bold;
115
+ color: rgb(131, 0, 191);
116
+ }
117
+
118
+ .dialog-subtitle {
119
+ margin-top: 5px;
120
+ font-size: 15px;
121
+ color: rgb(131, 0, 191);
122
+ }
123
+
124
+ .el-button {
125
+ margin: 5px 0px;
126
+ }
127
+
128
+ :deep(.el-card) {
129
+ width: 100%;
130
+ --el-card-padding: 8px;
131
+ border: 0;
132
+ cursor: pointer;
133
+ }
134
+ </style>