@abi-software/mapintegratedvuer 0.7.2-vue3.0-alpha.0 → 1.0.1
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 +150 -150
- package/assets/styleguide.css +19 -19
- package/cypress.config.js +23 -23
- package/dist/index.html +17 -17
- package/dist/mapintegratedvuer.js +74289 -73840
- package/dist/mapintegratedvuer.umd.cjs +878 -515
- package/dist/style.css +1 -1
- package/package.json +134 -135
- package/public/index.html +17 -17
- package/reporter-config.json +9 -9
- package/src/App.vue +245 -245
- package/src/assets/_variables.scss +43 -43
- package/src/assets/fonts/mapicon-species.eot +0 -0
- package/src/assets/fonts/mapicon-species.ttf +0 -0
- package/src/assets/fonts/mapicon-species.woff +0 -0
- package/src/assets/header-icon.scss +67 -67
- package/src/assets/mapicon-species-style.css +41 -41
- package/src/assets/styles.scss +9 -9
- package/src/components/ContentBar.vue +376 -376
- package/src/components/ContentVuer.vue +217 -217
- package/src/components/ContextCard.vue +385 -385
- package/src/components/ContextHelp.vue +73 -73
- package/src/components/CustomSplitter.vue +151 -151
- package/src/components/DatasetHeader.vue +97 -97
- package/src/components/DialogToolbarContent.vue +464 -464
- package/src/components/EventBus.js +3 -3
- package/src/components/FlatmapContextCard.vue +134 -134
- package/src/components/MapContent.vue +328 -333
- package/src/components/ResizeSensor.vue +47 -47
- package/src/components/SearchControls.vue +115 -115
- package/src/components/SimulatedData.js +721 -721
- package/src/components/SplitDialog.vue +287 -287
- package/src/components/SplitFlow.vue +414 -414
- package/src/components/index.js +7 -7
- package/src/components/markerZoomLevelsHardCoded.js +255 -255
- package/src/components/scripts/utilities.js +173 -173
- package/src/components/viewers/Flatmap.vue +145 -145
- package/src/components/viewers/Iframe.vue +31 -31
- package/src/components/viewers/MultiFlatmap.vue +384 -384
- package/src/components/viewers/Plot.vue +23 -23
- package/src/components/viewers/Scaffold.vue +198 -198
- package/src/components/viewers/Simulation.vue +21 -21
- package/src/icons/yellowstar.js +1 -1
- package/src/main.js +31 -31
- package/src/mixins/ContentMixin.js +438 -438
- package/src/mixins/DynamicMarkerMixin.js +88 -88
- package/src/mixins/S3Bucket.vue +37 -37
- package/src/stores/entries.js +40 -40
- package/src/stores/index.js +23 -23
- package/src/stores/settings.js +144 -144
- package/src/stores/splitFlow.js +523 -523
- package/static.json +7 -7
- package/vite.config.js +70 -70
- package/vite.static-build.js +12 -12
- package/vitest.workspace.js +3 -3
- package/vuese-generator.js +65 -65
- package/assets/gazelle-icons-no-background.css +0 -32
- package/dist/matterport.pdf +0 -0
- package/dist/test.txt +0 -0
- package/public/matterport.pdf +0 -0
- package/public/test.txt +0 -0
- package/q.json +0 -690
- package/src/mixins/RetrieveContextCardMixin.js +0 -82
- package/tsconfig.json +0 -19
@@ -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,134 +1,134 @@
|
|
1
|
-
<template>
|
2
|
-
<div v-loading="loading" class="flatmap-context-card" >
|
3
|
-
<div class="card-right scrollbar">
|
4
|
-
<div class="title">Flatmap Provenance</div>
|
5
|
-
SCKAN version: <a :href="sckanReleaseLink" target="_blank"> {{sckanReleaseDisplay}} </a>
|
6
|
-
<br>
|
7
|
-
Published on:
|
8
|
-
{{flatmapPublishedDisplay}}
|
9
|
-
<br>
|
10
|
-
View publication <a :href="flatmapSource" target="_blank">here</a>
|
11
|
-
<br/>
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
</template>
|
15
|
-
|
16
|
-
|
17
|
-
<script>
|
18
|
-
/* eslint-disable no-alert, no-console */
|
19
|
-
import {
|
20
|
-
ElLoading as Loading
|
21
|
-
} from "element-plus";
|
22
|
-
|
23
|
-
export default {
|
24
|
-
name: "FlatmapContextCard",
|
25
|
-
components: {
|
26
|
-
Loading,
|
27
|
-
},
|
28
|
-
props: {
|
29
|
-
/**
|
30
|
-
* Object containing information for
|
31
|
-
* the required viewing. Can be retrieved from a flatmap
|
32
|
-
*/
|
33
|
-
mapImpProv: Object,
|
34
|
-
},
|
35
|
-
data: function () {
|
36
|
-
return {
|
37
|
-
contextData: {},
|
38
|
-
showDetails: true,
|
39
|
-
showContextCard: true,
|
40
|
-
sampleDetails: {},
|
41
|
-
loading: false
|
42
|
-
};
|
43
|
-
},
|
44
|
-
computed: {
|
45
|
-
flatmapPublishedDisplay: function() {
|
46
|
-
let flatmapPublished = "Unknown"
|
47
|
-
if(this.mapImpProv){
|
48
|
-
flatmapPublished = new Date(this.mapImpProv.created).toLocaleDateString('en-US', {
|
49
|
-
day: '2-digit',
|
50
|
-
month: 'long',
|
51
|
-
year: 'numeric',
|
52
|
-
})
|
53
|
-
}
|
54
|
-
return flatmapPublished
|
55
|
-
},
|
56
|
-
sckanReleaseDisplay: function() {
|
57
|
-
let sckanRelease = "Unknown"
|
58
|
-
if(this.mapImpProv){
|
59
|
-
let sckanCreated = this.mapImpProv.sckan.created ? this.mapImpProv.sckan.created : this.mapImpProv.sckan
|
60
|
-
let isoTime = sckanCreated.replace(',', '.') // Date time does not accept commas but Sckan uses them
|
61
|
-
sckanRelease = new Date(isoTime).toLocaleDateString('en-US', {
|
62
|
-
day: '2-digit',
|
63
|
-
month: 'long',
|
64
|
-
year: 'numeric',
|
65
|
-
})
|
66
|
-
}
|
67
|
-
return sckanRelease
|
68
|
-
},
|
69
|
-
sckanReleaseLink: function() {
|
70
|
-
let sckanRelease = "Unknown"
|
71
|
-
if(this.mapImpProv){
|
72
|
-
sckanRelease = this.mapImpProv.sckan.release
|
73
|
-
}
|
74
|
-
return sckanRelease
|
75
|
-
},
|
76
|
-
flatmapSource: function() {
|
77
|
-
let flatmapSource = "Unknown"
|
78
|
-
if(this.mapImpProv){
|
79
|
-
flatmapSource = this.mapImpProv.source
|
80
|
-
}
|
81
|
-
return flatmapSource
|
82
|
-
},
|
83
|
-
},
|
84
|
-
};
|
85
|
-
</script>
|
86
|
-
|
87
|
-
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
88
|
-
<style scoped lang="scss">
|
89
|
-
|
90
|
-
|
91
|
-
.flatmap-context-card{
|
92
|
-
background-color: white;
|
93
|
-
max-height: 10 50px;
|
94
|
-
font-size: 12px;
|
95
|
-
position: relative;
|
96
|
-
display: flex;
|
97
|
-
width: 100%;
|
98
|
-
max-height: 258px;
|
99
|
-
}
|
100
|
-
|
101
|
-
.card-right {
|
102
|
-
flex: 1.3;
|
103
|
-
padding-left: 6px;
|
104
|
-
// overflow-y: scroll;
|
105
|
-
scrollbar-width: thin;
|
106
|
-
}
|
107
|
-
|
108
|
-
.cursor-pointer {
|
109
|
-
cursor: pointer;
|
110
|
-
}
|
111
|
-
|
112
|
-
.title{
|
113
|
-
font-weight: bold;
|
114
|
-
}
|
115
|
-
|
116
|
-
|
117
|
-
.scrollbar::-webkit-scrollbar-track {
|
118
|
-
border-radius: 10px;
|
119
|
-
background-color: #f5f5f5;
|
120
|
-
}
|
121
|
-
|
122
|
-
.scrollbar::-webkit-scrollbar {
|
123
|
-
width: 12px;
|
124
|
-
right: -12px;
|
125
|
-
background-color: #f5f5f5;
|
126
|
-
}
|
127
|
-
|
128
|
-
.scrollbar::-webkit-scrollbar-thumb {
|
129
|
-
border-radius: 4px;
|
130
|
-
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
|
131
|
-
background-color: #979797;
|
132
|
-
}
|
133
|
-
|
134
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div v-loading="loading" class="flatmap-context-card" >
|
3
|
+
<div class="card-right scrollbar">
|
4
|
+
<div class="title">Flatmap Provenance</div>
|
5
|
+
SCKAN version: <a :href="sckanReleaseLink" target="_blank"> {{sckanReleaseDisplay}} </a>
|
6
|
+
<br>
|
7
|
+
Published on:
|
8
|
+
{{flatmapPublishedDisplay}}
|
9
|
+
<br>
|
10
|
+
View publication <a :href="flatmapSource" target="_blank">here</a>
|
11
|
+
<br/>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
</template>
|
15
|
+
|
16
|
+
|
17
|
+
<script>
|
18
|
+
/* eslint-disable no-alert, no-console */
|
19
|
+
import {
|
20
|
+
ElLoading as Loading
|
21
|
+
} from "element-plus";
|
22
|
+
|
23
|
+
export default {
|
24
|
+
name: "FlatmapContextCard",
|
25
|
+
components: {
|
26
|
+
Loading,
|
27
|
+
},
|
28
|
+
props: {
|
29
|
+
/**
|
30
|
+
* Object containing information for
|
31
|
+
* the required viewing. Can be retrieved from a flatmap
|
32
|
+
*/
|
33
|
+
mapImpProv: Object,
|
34
|
+
},
|
35
|
+
data: function () {
|
36
|
+
return {
|
37
|
+
contextData: {},
|
38
|
+
showDetails: true,
|
39
|
+
showContextCard: true,
|
40
|
+
sampleDetails: {},
|
41
|
+
loading: false
|
42
|
+
};
|
43
|
+
},
|
44
|
+
computed: {
|
45
|
+
flatmapPublishedDisplay: function() {
|
46
|
+
let flatmapPublished = "Unknown"
|
47
|
+
if(this.mapImpProv){
|
48
|
+
flatmapPublished = new Date(this.mapImpProv.created).toLocaleDateString('en-US', {
|
49
|
+
day: '2-digit',
|
50
|
+
month: 'long',
|
51
|
+
year: 'numeric',
|
52
|
+
})
|
53
|
+
}
|
54
|
+
return flatmapPublished
|
55
|
+
},
|
56
|
+
sckanReleaseDisplay: function() {
|
57
|
+
let sckanRelease = "Unknown"
|
58
|
+
if(this.mapImpProv){
|
59
|
+
let sckanCreated = this.mapImpProv.sckan.created ? this.mapImpProv.sckan.created : this.mapImpProv.sckan
|
60
|
+
let isoTime = sckanCreated.replace(',', '.') // Date time does not accept commas but Sckan uses them
|
61
|
+
sckanRelease = new Date(isoTime).toLocaleDateString('en-US', {
|
62
|
+
day: '2-digit',
|
63
|
+
month: 'long',
|
64
|
+
year: 'numeric',
|
65
|
+
})
|
66
|
+
}
|
67
|
+
return sckanRelease
|
68
|
+
},
|
69
|
+
sckanReleaseLink: function() {
|
70
|
+
let sckanRelease = "Unknown"
|
71
|
+
if(this.mapImpProv){
|
72
|
+
sckanRelease = this.mapImpProv.sckan.release
|
73
|
+
}
|
74
|
+
return sckanRelease
|
75
|
+
},
|
76
|
+
flatmapSource: function() {
|
77
|
+
let flatmapSource = "Unknown"
|
78
|
+
if(this.mapImpProv){
|
79
|
+
flatmapSource = this.mapImpProv.source
|
80
|
+
}
|
81
|
+
return flatmapSource
|
82
|
+
},
|
83
|
+
},
|
84
|
+
};
|
85
|
+
</script>
|
86
|
+
|
87
|
+
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
88
|
+
<style scoped lang="scss">
|
89
|
+
|
90
|
+
|
91
|
+
.flatmap-context-card{
|
92
|
+
background-color: white;
|
93
|
+
max-height: 10 50px;
|
94
|
+
font-size: 12px;
|
95
|
+
position: relative;
|
96
|
+
display: flex;
|
97
|
+
width: 100%;
|
98
|
+
max-height: 258px;
|
99
|
+
}
|
100
|
+
|
101
|
+
.card-right {
|
102
|
+
flex: 1.3;
|
103
|
+
padding-left: 6px;
|
104
|
+
// overflow-y: scroll;
|
105
|
+
scrollbar-width: thin;
|
106
|
+
}
|
107
|
+
|
108
|
+
.cursor-pointer {
|
109
|
+
cursor: pointer;
|
110
|
+
}
|
111
|
+
|
112
|
+
.title{
|
113
|
+
font-weight: bold;
|
114
|
+
}
|
115
|
+
|
116
|
+
|
117
|
+
.scrollbar::-webkit-scrollbar-track {
|
118
|
+
border-radius: 10px;
|
119
|
+
background-color: #f5f5f5;
|
120
|
+
}
|
121
|
+
|
122
|
+
.scrollbar::-webkit-scrollbar {
|
123
|
+
width: 12px;
|
124
|
+
right: -12px;
|
125
|
+
background-color: #f5f5f5;
|
126
|
+
}
|
127
|
+
|
128
|
+
.scrollbar::-webkit-scrollbar-thumb {
|
129
|
+
border-radius: 4px;
|
130
|
+
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
|
131
|
+
background-color: #979797;
|
132
|
+
}
|
133
|
+
|
134
|
+
</style>
|