@abi-software/map-side-bar 2.14.1-simulation.4 → 2.14.1-simulation.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/dist/map-side-bar.js +4959 -4972
- package/dist/map-side-bar.umd.cjs +61 -61
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/DatasetCard.vue +5 -5
- package/src/components/DatasetExplorer.vue +1 -1
- package/src/components/FileBrowser.vue +26 -21
package/package.json
CHANGED
|
@@ -265,7 +265,7 @@ export default {
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
let action = {
|
|
268
|
-
label:
|
|
268
|
+
label: baseName(filePath),
|
|
269
269
|
resource: flatmap.associated_flatmap.identifier,
|
|
270
270
|
title: 'View Flatmap',
|
|
271
271
|
type: 'Flatmap',
|
|
@@ -354,7 +354,7 @@ export default {
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
let action = {
|
|
357
|
-
label:
|
|
357
|
+
label: baseName(filePath),
|
|
358
358
|
resource: resource,
|
|
359
359
|
s3uri: this.entry.s3uri,
|
|
360
360
|
title: 'View plot',
|
|
@@ -400,7 +400,7 @@ export default {
|
|
|
400
400
|
mimetype = thumbnail.mimetype.name
|
|
401
401
|
}
|
|
402
402
|
let action = {
|
|
403
|
-
label:
|
|
403
|
+
label: baseName(filePath),
|
|
404
404
|
resource: `${this.envVars.API_LOCATION}s3-resource/${this.getS3Prefix()}files/${filePath}${this.getS3Args()}`,
|
|
405
405
|
title: "View 3D scaffold",
|
|
406
406
|
type: "Scaffold",
|
|
@@ -482,7 +482,7 @@ export default {
|
|
|
482
482
|
this.envVars.TEST_DATA_LOCATION)
|
|
483
483
|
}
|
|
484
484
|
let action = {
|
|
485
|
-
label:
|
|
485
|
+
label: baseName(filePath),
|
|
486
486
|
resource: resource,
|
|
487
487
|
s3uri: this.entry.s3uri,
|
|
488
488
|
title: 'View simulation',
|
|
@@ -514,7 +514,7 @@ export default {
|
|
|
514
514
|
let mimetype = ''
|
|
515
515
|
let resource = protocol.protocol
|
|
516
516
|
let action = {
|
|
517
|
-
label:
|
|
517
|
+
label: baseName(protocol.csv_file),
|
|
518
518
|
csv_file: protocol.csv_file,
|
|
519
519
|
columns: protocol.columns,
|
|
520
520
|
resource: resource,
|
|
@@ -244,9 +244,9 @@ export default {
|
|
|
244
244
|
},
|
|
245
245
|
methods: {
|
|
246
246
|
fileActionTriggered: function(action) {
|
|
247
|
-
this.fileBrowserVisible = false
|
|
248
247
|
EventBus.emit('PopoverActionClick', action)
|
|
249
248
|
EventBus.emit('contextUpdate', action) // Pass to mapintegratedvuer
|
|
249
|
+
this.fileBrowserVisible = true
|
|
250
250
|
},
|
|
251
251
|
fileInfoReady: function(payload) {
|
|
252
252
|
if (this.fileSearch.onGoing) {
|
|
@@ -19,24 +19,17 @@
|
|
|
19
19
|
<template #default="props">
|
|
20
20
|
<div class="file-details" m="4">
|
|
21
21
|
<p m="t-0 b-2" v-if="props.row.description">
|
|
22
|
-
<b
|
|
22
|
+
<b>Description:</b> {{ props.row.description }}
|
|
23
23
|
</p>
|
|
24
|
-
<p m="t-0 b-2" v-if="props.row.protocol">
|
|
25
|
-
<b>Protocol</b>: {{ props.row.protocol }}
|
|
26
|
-
</p>
|
|
27
|
-
<div v-for="(val, key) in props.row.columns">
|
|
28
|
-
<p :key="key" m="t-0 b-2">Column {{ key + 1 }}: {{ val }}</p>
|
|
29
|
-
</div>
|
|
30
24
|
<p m="t-0 b-2">
|
|
31
25
|
<b>File path:</b> {{ props.row.filePath }}
|
|
32
26
|
</p>
|
|
33
27
|
<p m="t-0 b-2" v-if="props.row.protocol">
|
|
34
|
-
Protocol
|
|
28
|
+
<b>Protocol</b>: {{ props.row.protocol }}
|
|
35
29
|
</p>
|
|
36
30
|
<div v-for="(val, key) in props.row.columns">
|
|
37
|
-
<p :key="key" m="t-0 b-2">Column {{ key + 1 }}
|
|
31
|
+
<p :key="key" m="t-0 b-2"><b>Column {{ key + 1 }}</b>: {{ val }}</p>
|
|
38
32
|
</div>
|
|
39
|
-
<p m="t-0 b-2">File path: {{ props.row.filePath }}</p>
|
|
40
33
|
</div>
|
|
41
34
|
</template>
|
|
42
35
|
</el-table-column>
|
|
@@ -75,11 +68,11 @@
|
|
|
75
68
|
</template>
|
|
76
69
|
<template #default="scope">
|
|
77
70
|
<el-button
|
|
78
|
-
|
|
71
|
+
class="file-button"
|
|
79
72
|
@click="handleView(scope.row)"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
73
|
+
:icon="ElIconView"
|
|
74
|
+
type="primary"
|
|
75
|
+
/>
|
|
83
76
|
</template>
|
|
84
77
|
</el-table-column>
|
|
85
78
|
</el-table>
|
|
@@ -88,21 +81,29 @@
|
|
|
88
81
|
|
|
89
82
|
<script>
|
|
90
83
|
//provide the s3Bucket related methods and data.
|
|
84
|
+
import { shallowRef } from 'vue';
|
|
91
85
|
import BadgesGroup from './BadgesGroup.vue'
|
|
92
86
|
import {
|
|
93
87
|
ElButton as Button,
|
|
94
88
|
ElImage as Image,
|
|
89
|
+
ElIcon as Icon,
|
|
95
90
|
ElInput as Input,
|
|
96
91
|
ElTable as Table,
|
|
97
92
|
ElTableColumn as TableColumn
|
|
98
93
|
} from "element-plus";
|
|
99
94
|
import { ref } from 'vue'
|
|
95
|
+
import {
|
|
96
|
+
View as ElIconView,
|
|
97
|
+
} from '@element-plus/icons-vue'
|
|
98
|
+
|
|
100
99
|
|
|
101
100
|
export default {
|
|
102
101
|
name: 'FileBrowser',
|
|
103
102
|
components: {
|
|
104
103
|
BadgesGroup,
|
|
105
104
|
Button,
|
|
105
|
+
ElIconView,
|
|
106
|
+
Icon,
|
|
106
107
|
Image,
|
|
107
108
|
Input,
|
|
108
109
|
Table,
|
|
@@ -111,6 +112,7 @@ export default {
|
|
|
111
112
|
data() {
|
|
112
113
|
return {
|
|
113
114
|
category: "All",
|
|
115
|
+
ElIconView: shallowRef(ElIconView),
|
|
114
116
|
items: {
|
|
115
117
|
Dataset: [],
|
|
116
118
|
Flatmaps:[],
|
|
@@ -126,13 +128,6 @@ export default {
|
|
|
126
128
|
categoryChanged: function(name) {
|
|
127
129
|
this.category = name
|
|
128
130
|
},
|
|
129
|
-
getActionLabel: function(type) {
|
|
130
|
-
if (type === "Simulations" || type === "Protocol Data") {
|
|
131
|
-
return "Run"
|
|
132
|
-
} else {
|
|
133
|
-
return "View"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
131
|
setSearchTerm: function(searchTerm) {
|
|
137
132
|
this.search = searchTerm
|
|
138
133
|
},
|
|
@@ -232,6 +227,16 @@ export default {
|
|
|
232
227
|
}
|
|
233
228
|
}
|
|
234
229
|
|
|
230
|
+
.file-button {
|
|
231
|
+
border-radius: 50%;
|
|
232
|
+
width: 26px;
|
|
233
|
+
height: 26px;
|
|
234
|
+
padding:5px;
|
|
235
|
+
:deep(svg) {
|
|
236
|
+
scale: 1.2;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
235
240
|
.file-details {
|
|
236
241
|
padding-left: 8px;
|
|
237
242
|
font-size: 12px;
|