@abi-software/flatmapvuer 1.1.3 → 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 +43580 -38546
- 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 +109 -109
- package/src/components/FlatmapVuer.vue +3515 -3455
- 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 -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 +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,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>
|