@abi-software/map-utilities 0.0.0-beta.5 → 0.0.0-beta.6
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 +27 -27
- package/dist/map-utilities.js +554 -560
- package/dist/map-utilities.umd.cjs +13 -13
- package/dist/style.css +1 -1
- package/jsconfig.json +8 -8
- package/package.json +40 -40
- package/src/App.vue +511 -506
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +5 -5
- package/src/components/DrawToolbar/ConnectionDialog.vue +118 -118
- package/src/components/DrawToolbar/DrawToolbar.vue +627 -627
- package/src/components/EventBus.js +3 -3
- package/src/components/HelpModeDialog/HelpModeDialog.vue +394 -413
- package/src/components/Tooltip/AnnotationPopup.vue +467 -467
- package/src/components/Tooltip/ExternalResourceCard.vue +108 -104
- package/src/components/Tooltip/ProvenancePopup.vue +518 -516
- package/src/components/Tooltip/Tooltip.vue +53 -45
- package/src/components/TreeControls/TreeControls.vue +350 -345
- package/src/components/index.js +6 -6
- package/src/main.js +16 -16
- package/vite.config.js +56 -56
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
// Primary colors
|
|
2
|
-
$purple: #8300BF;
|
|
3
|
-
$darkBlue: #24245B;
|
|
4
|
-
$grey: #303133;
|
|
5
|
-
|
|
6
|
-
// Secondary colors
|
|
7
|
-
$lightPurple: #BC00FC;
|
|
8
|
-
$blue: #0026FF;
|
|
9
|
-
|
|
10
|
-
// Status colors
|
|
11
|
-
$success: #5e9f69;
|
|
12
|
-
$warning: #FF8400;
|
|
13
|
-
$danger: #b51d09;
|
|
14
|
-
|
|
15
|
-
// Text colors
|
|
16
|
-
$neutralGrey: #616161;
|
|
17
|
-
$mediumGrey: #606266;
|
|
18
|
-
$lightGrey: #909399;
|
|
19
|
-
|
|
20
|
-
// Line colors
|
|
21
|
-
$lineColor1: #DCDFE6;
|
|
22
|
-
$lineColor2: #E4E7ED;
|
|
23
|
-
|
|
24
|
-
// Background colors
|
|
25
|
-
$background: #F5F7FA;
|
|
26
|
-
$cochlear: #FFFFFF;
|
|
27
|
-
|
|
28
|
-
//Search box colors
|
|
29
|
-
$darkGrey: #606266;
|
|
30
|
-
|
|
31
|
-
$app-primary-color: $purple !default;
|
|
32
|
-
$app-secondary-color: $darkBlue !default;
|
|
33
|
-
$text-color: $grey !default;
|
|
34
|
-
$input-text: $grey !default;
|
|
35
|
-
|
|
36
|
-
$system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
|
|
37
|
-
$font-family: 'Asap', sans-serif;
|
|
38
|
-
|
|
39
|
-
// Viewport Sizes
|
|
40
|
-
$viewport-sm: 20rem;
|
|
41
|
-
$viewport-md: 47rem;
|
|
42
|
-
$viewport-lg: 64rem;
|
|
43
|
-
$viewport-xlg: 120rem;
|
|
1
|
+
// Primary colors
|
|
2
|
+
$purple: #8300BF;
|
|
3
|
+
$darkBlue: #24245B;
|
|
4
|
+
$grey: #303133;
|
|
5
|
+
|
|
6
|
+
// Secondary colors
|
|
7
|
+
$lightPurple: #BC00FC;
|
|
8
|
+
$blue: #0026FF;
|
|
9
|
+
|
|
10
|
+
// Status colors
|
|
11
|
+
$success: #5e9f69;
|
|
12
|
+
$warning: #FF8400;
|
|
13
|
+
$danger: #b51d09;
|
|
14
|
+
|
|
15
|
+
// Text colors
|
|
16
|
+
$neutralGrey: #616161;
|
|
17
|
+
$mediumGrey: #606266;
|
|
18
|
+
$lightGrey: #909399;
|
|
19
|
+
|
|
20
|
+
// Line colors
|
|
21
|
+
$lineColor1: #DCDFE6;
|
|
22
|
+
$lineColor2: #E4E7ED;
|
|
23
|
+
|
|
24
|
+
// Background colors
|
|
25
|
+
$background: #F5F7FA;
|
|
26
|
+
$cochlear: #FFFFFF;
|
|
27
|
+
|
|
28
|
+
//Search box colors
|
|
29
|
+
$darkGrey: #606266;
|
|
30
|
+
|
|
31
|
+
$app-primary-color: $purple !default;
|
|
32
|
+
$app-secondary-color: $darkBlue !default;
|
|
33
|
+
$text-color: $grey !default;
|
|
34
|
+
$input-text: $grey !default;
|
|
35
|
+
|
|
36
|
+
$system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
|
|
37
|
+
$font-family: 'Asap', sans-serif;
|
|
38
|
+
|
|
39
|
+
// Viewport Sizes
|
|
40
|
+
$viewport-sm: 20rem;
|
|
41
|
+
$viewport-md: 47rem;
|
|
42
|
+
$viewport-lg: 64rem;
|
|
43
|
+
$viewport-xlg: 120rem;
|
package/src/assets/styles.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '_variables';
|
|
2
|
-
|
|
3
|
-
@import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
|
|
4
|
-
|
|
5
|
-
$--color-primary: $app-primary-color !default;
|
|
1
|
+
@import '_variables';
|
|
2
|
+
|
|
3
|
+
@import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
|
|
4
|
+
|
|
5
|
+
$--color-primary: $app-primary-color !default;
|
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="dialog-container">
|
|
3
|
-
<el-row>
|
|
4
|
-
<el-col>
|
|
5
|
-
<el-row v-if="inDrawing">
|
|
6
|
-
<span class="dialog-title">Finalise drawing</span>
|
|
7
|
-
<el-button-group>
|
|
8
|
-
<el-button
|
|
9
|
-
type="primary"
|
|
10
|
-
plain
|
|
11
|
-
@click="$emit('confirmDrawn', true)"
|
|
12
|
-
>
|
|
13
|
-
Confirm
|
|
14
|
-
</el-button>
|
|
15
|
-
<el-button type="primary" plain @click="$emit('cancelDrawn', true)">
|
|
16
|
-
Cancel
|
|
17
|
-
</el-button>
|
|
18
|
-
</el-button-group>
|
|
19
|
-
</el-row>
|
|
20
|
-
<el-row v-else>
|
|
21
|
-
<span class="dialog-title">Visualise connection</span>
|
|
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="connectionExist">
|
|
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
|
-
const capitalise = function (str) {
|
|
47
|
-
if (str) return str.charAt(0).toUpperCase() + str.slice(1);
|
|
48
|
-
return "";
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export default {
|
|
52
|
-
name: "ConnectionDialog",
|
|
53
|
-
props: {
|
|
54
|
-
connectionEntry: {
|
|
55
|
-
type: Object,
|
|
56
|
-
default: {},
|
|
57
|
-
},
|
|
58
|
-
inDrawing: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: false,
|
|
61
|
-
},
|
|
62
|
-
connectionExist: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false,
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
data: function () {
|
|
68
|
-
return {
|
|
69
|
-
tooltipId: undefined,
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
methods: {
|
|
73
|
-
shadowDisplay: function (value) {
|
|
74
|
-
return this.tooltipId === value ? "always" : "hover";
|
|
75
|
-
},
|
|
76
|
-
capitalise: function (label) {
|
|
77
|
-
return capitalise(label);
|
|
78
|
-
},
|
|
79
|
-
handleTooltip: function (value) {
|
|
80
|
-
this.tooltipId = this.tooltipId === value ? undefined : value;
|
|
81
|
-
this.$emit("featureTooltip", this.tooltipId);
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
|
-
<style lang="scss" scoped>
|
|
88
|
-
.dialog-container {
|
|
89
|
-
width: 200px;
|
|
90
|
-
height: fit-content;
|
|
91
|
-
text-align: justify;
|
|
92
|
-
border-radius: 4px;
|
|
93
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
94
|
-
pointer-events: auto;
|
|
95
|
-
background: #fff;
|
|
96
|
-
border: 1px solid $app-primary-color;
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
padding: 0.8em;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.dialog-title {
|
|
103
|
-
font-size: 18px;
|
|
104
|
-
font-weight: bold;
|
|
105
|
-
color: rgb(131, 0, 191);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.el-button {
|
|
109
|
-
margin: 5px 0px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:deep(.el-card) {
|
|
113
|
-
width: 100%;
|
|
114
|
-
--el-card-padding: 8px;
|
|
115
|
-
border: 0;
|
|
116
|
-
cursor: pointer;
|
|
117
|
-
}
|
|
118
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="dialog-container">
|
|
3
|
+
<el-row>
|
|
4
|
+
<el-col>
|
|
5
|
+
<el-row v-if="inDrawing">
|
|
6
|
+
<span class="dialog-title">Finalise drawing</span>
|
|
7
|
+
<el-button-group>
|
|
8
|
+
<el-button
|
|
9
|
+
type="primary"
|
|
10
|
+
plain
|
|
11
|
+
@click="$emit('confirmDrawn', true)"
|
|
12
|
+
>
|
|
13
|
+
Confirm
|
|
14
|
+
</el-button>
|
|
15
|
+
<el-button type="primary" plain @click="$emit('cancelDrawn', true)">
|
|
16
|
+
Cancel
|
|
17
|
+
</el-button>
|
|
18
|
+
</el-button-group>
|
|
19
|
+
</el-row>
|
|
20
|
+
<el-row v-else>
|
|
21
|
+
<span class="dialog-title">Visualise connection</span>
|
|
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="connectionExist">
|
|
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
|
+
const capitalise = function (str) {
|
|
47
|
+
if (str) return str.charAt(0).toUpperCase() + str.slice(1);
|
|
48
|
+
return "";
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default {
|
|
52
|
+
name: "ConnectionDialog",
|
|
53
|
+
props: {
|
|
54
|
+
connectionEntry: {
|
|
55
|
+
type: Object,
|
|
56
|
+
default: {},
|
|
57
|
+
},
|
|
58
|
+
inDrawing: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false,
|
|
61
|
+
},
|
|
62
|
+
connectionExist: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: false,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
data: function () {
|
|
68
|
+
return {
|
|
69
|
+
tooltipId: undefined,
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
shadowDisplay: function (value) {
|
|
74
|
+
return this.tooltipId === value ? "always" : "hover";
|
|
75
|
+
},
|
|
76
|
+
capitalise: function (label) {
|
|
77
|
+
return capitalise(label);
|
|
78
|
+
},
|
|
79
|
+
handleTooltip: function (value) {
|
|
80
|
+
this.tooltipId = this.tooltipId === value ? undefined : value;
|
|
81
|
+
this.$emit("featureTooltip", this.tooltipId);
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
</script>
|
|
86
|
+
|
|
87
|
+
<style lang="scss" scoped>
|
|
88
|
+
.dialog-container {
|
|
89
|
+
width: 200px;
|
|
90
|
+
height: fit-content;
|
|
91
|
+
text-align: justify;
|
|
92
|
+
border-radius: 4px;
|
|
93
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
94
|
+
pointer-events: auto;
|
|
95
|
+
background: #fff;
|
|
96
|
+
border: 1px solid $app-primary-color;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
padding: 0.8em;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.dialog-title {
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
font-weight: bold;
|
|
105
|
+
color: rgb(131, 0, 191);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.el-button {
|
|
109
|
+
margin: 5px 0px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:deep(.el-card) {
|
|
113
|
+
width: 100%;
|
|
114
|
+
--el-card-padding: 8px;
|
|
115
|
+
border: 0;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
</style>
|