@abi-software/map-side-bar 2.5.3-beta.16 → 2.5.3-beta.17
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 +10620 -38671
- 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/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.17",
|
|
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 {
|
|
@@ -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
|
},
|