@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/dist/flatmapvuer.js +5 -4
- package/dist/flatmapvuer.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/FlatmapVuer.vue +7 -2
- package/src/services/flatmapQueries.js +10 -4
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -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
|
-
|
|
2924
|
+
transform: translateX(0);
|
|
2923
2925
|
}
|
|
2924
2926
|
&.close {
|
|
2925
|
-
|
|
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
|
-
|
|
557
|
+
if (urls.length) {
|
|
558
|
+
resolve(true)
|
|
559
|
+
} else {
|
|
560
|
+
resolve(false)
|
|
561
|
+
}
|
|
556
562
|
})
|
|
557
563
|
.catch(() => {
|
|
558
564
|
this.urls = []
|