@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.
Files changed (41) hide show
  1. package/.postcssrc.json +5 -5
  2. package/README.md +8 -9
  3. package/cypress.config.js +6 -7
  4. package/dist/map-side-bar.js +6890 -6026
  5. package/dist/map-side-bar.umd.cjs +65 -62
  6. package/dist/style.css +1 -1
  7. package/eslint.config.js +44 -9
  8. package/package.json +10 -3
  9. package/reporter-config.json +1 -1
  10. package/src/App.vue +89 -80
  11. package/src/algolia/algolia.js +173 -167
  12. package/src/algolia/utils.js +34 -38
  13. package/src/assets/_variables.scss +12 -10
  14. package/src/assets/connectivity-explorer.scss +1 -1
  15. package/src/assets/fonts.scss +0 -1
  16. package/src/assets/searchPopover.scss +1 -2
  17. package/src/components/AnnotationTool.vue +9 -32
  18. package/src/components/BadgesGroup.vue +29 -32
  19. package/src/components/CellCard.vue +992 -0
  20. package/src/components/CellCardExplorer.vue +879 -0
  21. package/src/components/ConnectivityCard.vue +22 -19
  22. package/src/components/ConnectivityExplorer.vue +109 -130
  23. package/src/components/ConnectivityInfo.vue +142 -171
  24. package/src/components/ContributorItem.vue +15 -11
  25. package/src/components/DatasetCard.vue +166 -201
  26. package/src/components/DatasetExplorer.vue +160 -201
  27. package/src/components/ImageGallery.vue +35 -36
  28. package/src/components/SearchFilters.vue +384 -407
  29. package/src/components/SearchHistory.vue +69 -103
  30. package/src/components/SideBar.vue +186 -94
  31. package/src/components/Tabs.vue +25 -21
  32. package/src/components/icons/IconOpenExternal.vue +23 -0
  33. package/src/components/index.js +3 -5
  34. package/src/components/species-map.js +7 -7
  35. package/src/components.d.ts +3 -0
  36. package/src/exampleConnectivityInput.js +310 -318
  37. package/src/main.js +6 -6
  38. package/src/mixins/S3Bucket.vue +10 -13
  39. package/src/utils/common.js +59 -0
  40. package/vite.config.js +62 -61
  41. package/vuese-generator.js +47 -55
@@ -1,27 +1,27 @@
1
1
  <template>
2
2
  <div class="full-size">
3
3
  <Gallery
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
- />
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 "@abi-software/gallery";
24
- import "@abi-software/gallery/dist/style.css";
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>