@abi-software/map-side-bar 2.14.1-simulation.5 → 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 +3951 -3956
- 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 +23 -11
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) {
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
</template>
|
|
69
69
|
<template #default="scope">
|
|
70
70
|
<el-button
|
|
71
|
-
|
|
71
|
+
class="file-button"
|
|
72
72
|
@click="handleView(scope.row)"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
:icon="ElIconView"
|
|
74
|
+
type="primary"
|
|
75
|
+
/>
|
|
76
76
|
</template>
|
|
77
77
|
</el-table-column>
|
|
78
78
|
</el-table>
|
|
@@ -81,21 +81,29 @@
|
|
|
81
81
|
|
|
82
82
|
<script>
|
|
83
83
|
//provide the s3Bucket related methods and data.
|
|
84
|
+
import { shallowRef } from 'vue';
|
|
84
85
|
import BadgesGroup from './BadgesGroup.vue'
|
|
85
86
|
import {
|
|
86
87
|
ElButton as Button,
|
|
87
88
|
ElImage as Image,
|
|
89
|
+
ElIcon as Icon,
|
|
88
90
|
ElInput as Input,
|
|
89
91
|
ElTable as Table,
|
|
90
92
|
ElTableColumn as TableColumn
|
|
91
93
|
} from "element-plus";
|
|
92
94
|
import { ref } from 'vue'
|
|
95
|
+
import {
|
|
96
|
+
View as ElIconView,
|
|
97
|
+
} from '@element-plus/icons-vue'
|
|
98
|
+
|
|
93
99
|
|
|
94
100
|
export default {
|
|
95
101
|
name: 'FileBrowser',
|
|
96
102
|
components: {
|
|
97
103
|
BadgesGroup,
|
|
98
104
|
Button,
|
|
105
|
+
ElIconView,
|
|
106
|
+
Icon,
|
|
99
107
|
Image,
|
|
100
108
|
Input,
|
|
101
109
|
Table,
|
|
@@ -104,6 +112,7 @@ export default {
|
|
|
104
112
|
data() {
|
|
105
113
|
return {
|
|
106
114
|
category: "All",
|
|
115
|
+
ElIconView: shallowRef(ElIconView),
|
|
107
116
|
items: {
|
|
108
117
|
Dataset: [],
|
|
109
118
|
Flatmaps:[],
|
|
@@ -119,13 +128,6 @@ export default {
|
|
|
119
128
|
categoryChanged: function(name) {
|
|
120
129
|
this.category = name
|
|
121
130
|
},
|
|
122
|
-
getActionLabel: function(type) {
|
|
123
|
-
if (type === "Simulations" || type === "Protocol Data") {
|
|
124
|
-
return "Run"
|
|
125
|
-
} else {
|
|
126
|
-
return "View"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
131
|
setSearchTerm: function(searchTerm) {
|
|
130
132
|
this.search = searchTerm
|
|
131
133
|
},
|
|
@@ -225,6 +227,16 @@ export default {
|
|
|
225
227
|
}
|
|
226
228
|
}
|
|
227
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
|
+
|
|
228
240
|
.file-details {
|
|
229
241
|
padding-left: 8px;
|
|
230
242
|
font-size: 12px;
|