@abi-software/map-side-bar 2.5.3-beta.16 → 2.5.3-beta.18
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/map-side-bar.js +10628 -38674
- package/dist/map-side-bar.umd.cjs +61 -528
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/SearchFilters.vue +29 -33
- package/src/components/SearchHistory.vue +18 -3
- package/src/components/SidebarContent.vue +1 -0
- package/src/exampleConnectivityInput.js +1 -4
- package/vite.config.js +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/map-side-bar",
|
|
3
|
-
"version": "2.5.3-beta.
|
|
3
|
+
"version": "2.5.3-beta.18",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/*",
|
|
6
6
|
"src/*",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@abi-software/gallery": "^1.1.2",
|
|
42
|
-
"@abi-software/map-utilities": "^1.2.2-beta.
|
|
42
|
+
"@abi-software/map-utilities": "^1.2.2-beta.8",
|
|
43
43
|
"@abi-software/svg-sprite": "^1.0.1",
|
|
44
44
|
"@element-plus/icons-vue": "^2.3.1",
|
|
45
45
|
"algoliasearch": "^4.10.5",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
placement="bottom-start"
|
|
16
16
|
:width="200"
|
|
17
17
|
trigger="hover"
|
|
18
|
+
:teleported="false"
|
|
19
|
+
popper-class="cascade-tags-popover"
|
|
20
|
+
ref="cascadeTagsPopover"
|
|
21
|
+
@show="onCascadeTagsPopoverShown"
|
|
18
22
|
>
|
|
19
23
|
<template #default>
|
|
20
24
|
<div class="el-tags-container">
|
|
@@ -59,14 +63,15 @@
|
|
|
59
63
|
@expand-change="cascadeExpandChange"
|
|
60
64
|
:show-all-levels="true"
|
|
61
65
|
popper-class="sidebar-cascader-popper"
|
|
66
|
+
:teleported="false"
|
|
62
67
|
/>
|
|
63
68
|
<div v-if="showFiltersText" class="filter-default-value">Filters</div>
|
|
64
69
|
<el-popover
|
|
65
70
|
title="How do filters work?"
|
|
66
71
|
width="250"
|
|
67
72
|
trigger="hover"
|
|
68
|
-
:append-to-body="false"
|
|
69
73
|
popper-class="popover"
|
|
74
|
+
:teleported="false"
|
|
70
75
|
>
|
|
71
76
|
<template #reference>
|
|
72
77
|
<MapSvgIcon icon="help" class="help" />
|
|
@@ -91,6 +96,7 @@
|
|
|
91
96
|
v-model="numberShown"
|
|
92
97
|
placeholder="10"
|
|
93
98
|
@change="numberShownChanged($event)"
|
|
99
|
+
:teleported="false"
|
|
94
100
|
>
|
|
95
101
|
<el-option
|
|
96
102
|
v-for="item in numberDatasetsShown"
|
|
@@ -791,6 +797,22 @@ export default {
|
|
|
791
797
|
}
|
|
792
798
|
return []
|
|
793
799
|
},
|
|
800
|
+
onCascadeTagsPopoverShown: function () {
|
|
801
|
+
const cascadeTagsPopover = this.$refs.cascadeTagsPopover;
|
|
802
|
+
const cascader = this.$refs.cascader;
|
|
803
|
+
|
|
804
|
+
if (cascader && cascadeTagsPopover) {
|
|
805
|
+
const cascaderZIndex = cascader.contentRef?.style.zIndex;
|
|
806
|
+
const cascaderTagZIndex = (cascaderZIndex * 1) + 1;
|
|
807
|
+
const cascadeTagsPopoverContentRef = cascadeTagsPopover.popperRef?.contentRef;
|
|
808
|
+
|
|
809
|
+
if (cascadeTagsPopoverContentRef) {
|
|
810
|
+
const cascaderTag = cascadeTagsPopoverContentRef.closest('.cascader-tag');
|
|
811
|
+
cascadeTagsPopoverContentRef.style.zIndex = cascaderTagZIndex;
|
|
812
|
+
cascaderTag.style.zIndex = cascaderTagZIndex;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
},
|
|
794
816
|
},
|
|
795
817
|
mounted: function () {
|
|
796
818
|
this.algoliaClient = markRaw(new AlgoliaClient(
|
|
@@ -932,40 +954,13 @@ export default {
|
|
|
932
954
|
line-height: 18px;
|
|
933
955
|
}
|
|
934
956
|
|
|
935
|
-
.filters :deep(.el-popover
|
|
936
|
-
|
|
937
|
-
border-
|
|
938
|
-
}
|
|
939
|
-
.filters :deep(.el-popover[x-placement^='top'] .popper__arrow::after) {
|
|
940
|
-
border-top-color: #f3ecf6;
|
|
941
|
-
border-bottom-width: 0;
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
.filters :deep(.el-popover[x-placement^='bottom'] .popper__arrow) {
|
|
945
|
-
border-top-width: 0;
|
|
946
|
-
border-bottom-color: $app-primary-color;
|
|
947
|
-
}
|
|
948
|
-
.filters :deep(.el-popover[x-placement^='bottom'] .popper__arrow::after) {
|
|
949
|
-
border-top-width: 0;
|
|
950
|
-
border-bottom-color: #f3ecf6;
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
.filters :deep(.el-popover[x-placement^='right'] .popper__arrow) {
|
|
954
|
-
border-right-color: $app-primary-color;
|
|
955
|
-
border-left-width: 0;
|
|
956
|
-
}
|
|
957
|
-
.filters :deep(.el-popover[x-placement^='right'] .popper__arrow::after) {
|
|
958
|
-
border-right-color: #f3ecf6;
|
|
959
|
-
border-left-width: 0;
|
|
957
|
+
.filters :deep(.el-popover .el-popper__arrow::before) {
|
|
958
|
+
background: #f3ecf6;
|
|
959
|
+
border-color: $app-primary-color;
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
border-left-color: $app-primary-color;
|
|
965
|
-
}
|
|
966
|
-
.filters :deep(.el-popover[x-placement^='left'] .popper__arrow::after) {
|
|
967
|
-
border-right-width: 0;
|
|
968
|
-
border-left-color: #f3ecf6;
|
|
962
|
+
:deep(.cascade-tags-popover) {
|
|
963
|
+
position: fixed !important;
|
|
969
964
|
}
|
|
970
965
|
</style>
|
|
971
966
|
|
|
@@ -981,6 +976,7 @@ export default {
|
|
|
981
976
|
color: #292b66;
|
|
982
977
|
text-align: center;
|
|
983
978
|
padding-bottom: 6px;
|
|
979
|
+
position: fixed !important;
|
|
984
980
|
}
|
|
985
981
|
|
|
986
982
|
.sidebar-cascader-popper .el-cascader-node.is-active {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
<el-popover
|
|
14
14
|
width="auto"
|
|
15
15
|
trigger="hover"
|
|
16
|
+
:teleported="false"
|
|
16
17
|
:show-after="200"
|
|
17
18
|
:persistent="false"
|
|
18
19
|
popper-class="popover-dropdown"
|
|
@@ -32,7 +33,13 @@
|
|
|
32
33
|
<div v-else>
|
|
33
34
|
<span class="empty-saved-search">No Saved Searches</span>
|
|
34
35
|
</div>
|
|
35
|
-
<el-dropdown
|
|
36
|
+
<el-dropdown
|
|
37
|
+
trigger="click"
|
|
38
|
+
:hide-on-click="false"
|
|
39
|
+
:teleported="false"
|
|
40
|
+
class="search-history-dropdown"
|
|
41
|
+
popper-class="search-history-dropdown__popper"
|
|
42
|
+
>
|
|
36
43
|
<span class="el-dropdown-select">
|
|
37
44
|
Search history
|
|
38
45
|
<el-icon class="el-icon--right">
|
|
@@ -47,6 +54,7 @@
|
|
|
47
54
|
<el-popover
|
|
48
55
|
width="auto"
|
|
49
56
|
trigger="hover"
|
|
57
|
+
:teleported="false"
|
|
50
58
|
:show-after="200"
|
|
51
59
|
:persistent="false"
|
|
52
60
|
popper-class="popover-dropdown"
|
|
@@ -69,7 +77,7 @@
|
|
|
69
77
|
<el-popover
|
|
70
78
|
width="auto"
|
|
71
79
|
trigger="hover"
|
|
72
|
-
:teleported="
|
|
80
|
+
:teleported="false"
|
|
73
81
|
:show-after="200"
|
|
74
82
|
:persistent="false"
|
|
75
83
|
popper-class="popover-dropdown"
|
|
@@ -110,7 +118,7 @@
|
|
|
110
118
|
<el-popover
|
|
111
119
|
width="auto"
|
|
112
120
|
trigger="hover"
|
|
113
|
-
:teleported="
|
|
121
|
+
:teleported="false"
|
|
114
122
|
:show-after="200"
|
|
115
123
|
:persistent="false"
|
|
116
124
|
popper-class="popover-dropdown"
|
|
@@ -422,6 +430,7 @@ export default {
|
|
|
422
430
|
align-items: center;
|
|
423
431
|
justify-content: space-between;
|
|
424
432
|
padding-bottom: 6px;
|
|
433
|
+
z-index: 2;
|
|
425
434
|
}
|
|
426
435
|
|
|
427
436
|
.empty-saved-search {
|
|
@@ -539,6 +548,10 @@ export default {
|
|
|
539
548
|
margin: 0;
|
|
540
549
|
}
|
|
541
550
|
}
|
|
551
|
+
|
|
552
|
+
:deep(.search-history-dropdown__popper) {
|
|
553
|
+
position: fixed !important;
|
|
554
|
+
}
|
|
542
555
|
</style>
|
|
543
556
|
|
|
544
557
|
<style lang="scss">
|
|
@@ -595,9 +608,11 @@ export default {
|
|
|
595
608
|
max-width: 240px;
|
|
596
609
|
font-family: Asap;
|
|
597
610
|
font-size: 12px;
|
|
611
|
+
white-space: normal;
|
|
598
612
|
word-break: break-word;
|
|
599
613
|
text-align: left;
|
|
600
614
|
color: inherit;
|
|
615
|
+
position: fixed !important;
|
|
601
616
|
background: #f3ecf6 !important;
|
|
602
617
|
border: 1px solid $app-primary-color;
|
|
603
618
|
|
|
@@ -274,10 +274,7 @@ export default {
|
|
|
274
274
|
"ilxtr:neuron-type-aacar-5"
|
|
275
275
|
],
|
|
276
276
|
"hyperlinks": [
|
|
277
|
-
|
|
278
|
-
"url": "https://pubmed.ncbi.nlm.nih.gov/?term=%2F%2Fwww.ncbi.nlm.nih.gov%2Fpubmed%2F27783854",
|
|
279
|
-
"id": "pubmed"
|
|
280
|
-
}
|
|
277
|
+
"https://doi.org/10.1002/cphy.c150046"
|
|
281
278
|
],
|
|
282
279
|
"provenanceTaxonomy": [
|
|
283
280
|
"NCBITaxon:9606",
|
package/vite.config.js
CHANGED
|
@@ -38,11 +38,12 @@ export default defineConfig({
|
|
|
38
38
|
fileName: 'map-side-bar',
|
|
39
39
|
},
|
|
40
40
|
rollupOptions: {
|
|
41
|
-
external: ["vue"],
|
|
41
|
+
external: ["vue", "@abi-software/map-utilities"],
|
|
42
42
|
output: {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
globals: {
|
|
44
|
+
vue: "Vue",
|
|
45
|
+
"@abi-software/map-utilities": "@abi-software/map-utilities"
|
|
46
|
+
},
|
|
46
47
|
},
|
|
47
48
|
},
|
|
48
49
|
},
|