@abi-software/map-side-bar 2.18.0 → 2.19.1-demo.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/.postcssrc.json +5 -5
- package/README.md +8 -9
- package/cypress.config.js +6 -7
- package/dist/map-side-bar.js +6890 -6026
- package/dist/map-side-bar.umd.cjs +65 -62
- package/dist/style.css +1 -1
- package/eslint.config.js +44 -9
- package/package.json +10 -3
- package/reporter-config.json +1 -1
- package/src/App.vue +89 -80
- package/src/algolia/algolia.js +173 -167
- package/src/algolia/utils.js +34 -38
- package/src/assets/_variables.scss +12 -10
- package/src/assets/connectivity-explorer.scss +1 -1
- package/src/assets/fonts.scss +0 -1
- package/src/assets/searchPopover.scss +1 -2
- package/src/components/AnnotationTool.vue +9 -32
- package/src/components/BadgesGroup.vue +29 -32
- package/src/components/CellCard.vue +992 -0
- package/src/components/CellCardExplorer.vue +879 -0
- package/src/components/ConnectivityCard.vue +22 -19
- package/src/components/ConnectivityExplorer.vue +109 -130
- package/src/components/ConnectivityInfo.vue +142 -171
- package/src/components/ContributorItem.vue +15 -11
- package/src/components/DatasetCard.vue +166 -201
- package/src/components/DatasetExplorer.vue +160 -201
- package/src/components/ImageGallery.vue +35 -36
- package/src/components/SearchFilters.vue +384 -407
- package/src/components/SearchHistory.vue +69 -103
- package/src/components/SideBar.vue +186 -94
- package/src/components/Tabs.vue +25 -21
- package/src/components/icons/IconOpenExternal.vue +23 -0
- package/src/components/index.js +3 -5
- package/src/components/species-map.js +7 -7
- package/src/components.d.ts +3 -0
- package/src/exampleConnectivityInput.js +310 -318
- package/src/main.js +6 -6
- package/src/mixins/S3Bucket.vue +10 -13
- package/src/utils/common.js +59 -0
- package/vite.config.js +62 -61
- package/vuese-generator.js +47 -55
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="full-size">
|
|
3
3
|
<Gallery
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
:bottomSpacer="bottomSpacer"
|
|
5
|
+
:cardWidth="10"
|
|
6
|
+
:items="galleryItems"
|
|
7
|
+
:max-width="maxWidth"
|
|
8
|
+
:show-indicator-bar="false"
|
|
9
|
+
:show-card-details="true"
|
|
10
|
+
:highlight-active="false"
|
|
11
|
+
:image-style="imageStyle"
|
|
12
|
+
:image-container-style="imageContainerStyle"
|
|
13
|
+
:body-style="bodyStyle"
|
|
14
|
+
:shadow="shadow"
|
|
15
|
+
@card-clicked="cardClicked"
|
|
16
|
+
@datalink-clicked="datalinkClicked"
|
|
17
|
+
ref="gallery"
|
|
18
|
+
/>
|
|
19
19
|
</div>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script>
|
|
23
|
-
import Gallery from
|
|
24
|
-
import
|
|
23
|
+
import Gallery from '@abi-software/gallery';
|
|
24
|
+
import '@abi-software/gallery/dist/style.css';
|
|
25
25
|
//provide the s3Bucket related methods and data.
|
|
26
26
|
|
|
27
27
|
export default {
|
|
@@ -35,17 +35,17 @@ export default {
|
|
|
35
35
|
items: {
|
|
36
36
|
type: Object,
|
|
37
37
|
defualt: () => {
|
|
38
|
-
return
|
|
38
|
+
return {
|
|
39
39
|
Dataset: [],
|
|
40
|
-
Flatmaps:[],
|
|
40
|
+
Flatmaps: [],
|
|
41
41
|
Images: [],
|
|
42
42
|
Scaffolds: [],
|
|
43
43
|
Simulations: [],
|
|
44
44
|
Videos: [],
|
|
45
45
|
Plots: [],
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
49
|
},
|
|
50
50
|
data() {
|
|
51
51
|
return {
|
|
@@ -64,50 +64,49 @@ export default {
|
|
|
64
64
|
shadow: 'never',
|
|
65
65
|
bottomSpacer: { minHeight: '0rem' },
|
|
66
66
|
resetIndex: false,
|
|
67
|
-
}
|
|
67
|
+
};
|
|
68
68
|
},
|
|
69
69
|
methods: {
|
|
70
70
|
cardClicked: function (payload) {
|
|
71
|
-
this.$emit('card-clicked', payload)
|
|
71
|
+
this.$emit('card-clicked', payload);
|
|
72
72
|
},
|
|
73
73
|
datalinkClicked: function (payload) {
|
|
74
74
|
this.$emit('datalink-clicked', payload);
|
|
75
75
|
},
|
|
76
76
|
onResize: function () {
|
|
77
|
-
this.maxWidth = this.$el.clientWidth
|
|
77
|
+
this.maxWidth = this.$el.clientWidth;
|
|
78
78
|
// this.$emit('resize', this.$el.clientWidth)
|
|
79
79
|
},
|
|
80
|
-
|
|
81
80
|
},
|
|
82
81
|
computed: {
|
|
83
82
|
galleryItems() {
|
|
84
83
|
if (this.resetIndex) {
|
|
85
|
-
this.$refs.gallery.indicatorClicked(0)
|
|
84
|
+
this.$refs.gallery.indicatorClicked(0);
|
|
86
85
|
}
|
|
87
|
-
let items = [...this.items['Dataset']]
|
|
86
|
+
let items = [...this.items['Dataset']];
|
|
88
87
|
if (this.category === 'All') {
|
|
89
88
|
for (const [key, value] of Object.entries(this.items)) {
|
|
90
|
-
if (key !== 'Dataset') items = items.concat(value)
|
|
89
|
+
if (key !== 'Dataset') items = items.concat(value);
|
|
91
90
|
}
|
|
92
|
-
return items
|
|
93
|
-
} else return [...this.items[this.category]]
|
|
91
|
+
return items;
|
|
92
|
+
} else return [...this.items[this.category]];
|
|
94
93
|
},
|
|
95
94
|
},
|
|
96
95
|
watch: {
|
|
97
96
|
category: function () {
|
|
98
|
-
this.resetIndex = true
|
|
97
|
+
this.resetIndex = true;
|
|
99
98
|
},
|
|
100
99
|
galleryItems: function () {
|
|
101
|
-
this.resetIndex = false
|
|
100
|
+
this.resetIndex = false;
|
|
102
101
|
},
|
|
103
102
|
},
|
|
104
103
|
mounted() {
|
|
105
|
-
this.ro = new ResizeObserver(this.onResize).observe(this.$el)
|
|
104
|
+
this.ro = new ResizeObserver(this.onResize).observe(this.$el);
|
|
106
105
|
},
|
|
107
106
|
unmounted() {
|
|
108
|
-
delete this.ro
|
|
107
|
+
delete this.ro;
|
|
109
108
|
},
|
|
110
|
-
}
|
|
109
|
+
};
|
|
111
110
|
</script>
|
|
112
111
|
|
|
113
112
|
<style lang="scss" scoped>
|