@abi-software/map-side-bar 1.2.1 → 1.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "./dist/map-side-bar.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -75,6 +75,7 @@ export class AlgoliaClient {
75
75
  _processResultsForCards(results) {
76
76
  let newResults = []
77
77
  let newResult = {}
78
+ let id = 0
78
79
  for (let res of results) {
79
80
  newResult = {...res}
80
81
  newResult = {
@@ -83,7 +84,9 @@ export class AlgoliaClient {
83
84
  description: res.item.description,
84
85
  updated: res.pennsieve.updatedAt,
85
86
  publishDate: res.pennsieve.publishDate,
86
- }
87
+ id: id
88
+ }
89
+ id++
87
90
  newResults.push(newResult)
88
91
  }
89
92
  return newResults
@@ -22,12 +22,12 @@
22
22
  @loading="filtersLoading"
23
23
  ></SearchFilters>
24
24
  <div class="content scrollbar" v-loading="loadingCards" ref="content">
25
- <div v-if="loadingScicrunch" class="loading-icon" v-loading="loadingScicrunch"></div>
26
25
  <div
27
26
  class="error-feedback"
28
27
  v-if="results.length === 0 && !loadingCards && !sciCrunchError"
29
28
  >No results found - Please change your search / filter criteria.</div>
30
29
  <div class="error-feedback" v-if="sciCrunchError">{{sciCrunchError}}</div>
30
+ <div v-if="loadingScicrunch" class="loading-icon" v-loading="loadingScicrunch"></div>
31
31
  <div v-for="result in results" :key="result.id" class="step-item">
32
32
  <DatasetCard :entry="result" :envVars="envVars" @contextUpdate="contextCardUpdate"></DatasetCard>
33
33
  </div>
@@ -249,7 +249,6 @@ export default {
249
249
  resultsProcessing: function(data) {
250
250
  this.lastSearch = this.searchInput;
251
251
 
252
- let id = 0;
253
252
  if (data.results.length === 0) {
254
253
  return;
255
254
  }
@@ -281,12 +280,10 @@ export default {
281
280
  ? [...new Set(element.organisms.map((v) =>v.species ? v.species.name : null))]
282
281
  : undefined
283
282
  : undefined, // This processing only includes each gender once into 'sexes'
284
- id: id,
285
283
  scaffolds: element['abi-scaffold-metadata-file'] ? element['abi-scaffold-metadata-file'] : undefined,
286
284
  contextualInformation: element['abi-contextual-information'].length > 0 ? element['abi-contextual-information'] : undefined,
287
285
  simulation: element['abi-simulation-file'],
288
286
  });
289
- id++;
290
287
 
291
288
  Vue.set(this.results, i, this.results[i])
292
289
  });
@@ -382,15 +379,19 @@ export default {
382
379
  }
383
380
 
384
381
  .loading-icon {
385
- position: relative;
382
+ position: absolute;
386
383
  display: flex;
387
384
  float: right;
388
- top: 0;
385
+ right: 40px;
389
386
  z-index: 20;
390
387
  width: 40px;
391
388
  height: 40px;
392
389
  }
393
390
 
391
+ .loading-icon >>> .el-loading-mask {
392
+ background-color: rgba(117, 190, 218, 0.0) !important;
393
+ }
394
+
394
395
  .pagination >>> button {
395
396
  background-color: white !important;
396
397
  }