@abi-software/flatmapvuer 1.5.5 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist/*",
package/src/App.vue CHANGED
@@ -271,7 +271,7 @@ export default {
271
271
  displayWarning: true,
272
272
  },
273
273
  Vagus: {
274
- taxo: 'UBERON:1759',
274
+ taxo: 'UBERON:0001759',
275
275
  displayWarning: true,
276
276
  },
277
277
  Sample: { taxo: 'NCBITaxon:1', displayWarning: true },
@@ -2917,12 +2917,14 @@ export default {
2917
2917
  .pathway-location {
2918
2918
  position: absolute;
2919
2919
  bottom: 0px;
2920
+ left: 0px;
2921
+ transform: translateX(0);
2920
2922
  transition: all var(--el-transition-duration);
2921
2923
  &.open {
2922
- left: 0px;
2924
+ transform: translateX(0);
2923
2925
  }
2924
2926
  &.close {
2925
- left: -298px;
2927
+ transform: translateX(-100%);
2926
2928
  }
2927
2929
  }
2928
2930
 
@@ -2940,6 +2942,8 @@ export default {
2940
2942
  text-align: left;
2941
2943
  overflow: auto;
2942
2944
  border: 1px solid rgb(220, 223, 230);
2945
+ border-left: 0;
2946
+ border-bottom: 0;
2943
2947
  padding-bottom: 16px;
2944
2948
  background: #ffffff;
2945
2949
  overflow-x: hidden;
@@ -3496,6 +3500,7 @@ export default {
3496
3500
  }
3497
3501
  }
3498
3502
  &.close {
3503
+ transform: translateX(22px); // button + border width
3499
3504
  i {
3500
3505
  transform: rotate(180deg) scaleY(2);
3501
3506
  }
@@ -393,7 +393,7 @@ let FlatmapQueries = function () {
393
393
  this.stripPMIDPrefix = function (pubmedId) {
394
394
  return pubmedId.split(':')[1]
395
395
  }
396
-
396
+
397
397
  this.getPMID = function(idsList) {
398
398
  return new Promise((resolve) => {
399
399
  if (idsList.length > 0) {
@@ -419,7 +419,7 @@ let FlatmapQueries = function () {
419
419
  })
420
420
  promises.push(promise)
421
421
  })
422
-
422
+
423
423
  Promise.all(promises).then(() => {
424
424
  resolve(results)
425
425
  }).catch(() => {
@@ -450,7 +450,7 @@ let FlatmapQueries = function () {
450
450
  resolve(pmids)
451
451
  })
452
452
  })
453
- }
453
+ }
454
454
 
455
455
  this.extractPublicationIdFromURLString = function (urlStr) {
456
456
  if (!urlStr) return
@@ -505,6 +505,8 @@ let FlatmapQueries = function () {
505
505
  if (pmids.length > 0) {
506
506
  const transformedIDs = pmids.join()
507
507
  resolve([this.pubmedSearchUrl(transformedIDs)])
508
+ } else {
509
+ resolve([])
508
510
  }
509
511
  })
510
512
  })
@@ -552,7 +554,11 @@ let FlatmapQueries = function () {
552
554
  if (data.values.length > 0) {
553
555
  this.getURLsForPubMed(data).then((urls) => {
554
556
  this.urls = urls
555
- resolve(true)
557
+ if (urls.length) {
558
+ resolve(true)
559
+ } else {
560
+ resolve(false)
561
+ }
556
562
  })
557
563
  .catch(() => {
558
564
  this.urls = []