@abi-software/map-side-bar 2.6.1-beta.1 → 2.6.1-beta.3
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
|
@@ -15,11 +15,7 @@
|
|
|
15
15
|
placement="bottom-start"
|
|
16
16
|
:width="200"
|
|
17
17
|
trigger="hover"
|
|
18
|
-
|
|
19
|
-
ref="cascadeTagsPopover"
|
|
20
|
-
:persistent="false"
|
|
21
|
-
popper-class="cascade-tags-popper"
|
|
22
|
-
@show="onCascadeTagsPopoverShown"
|
|
18
|
+
popper-class="cascade-tags-popover"
|
|
23
19
|
>
|
|
24
20
|
<template #default>
|
|
25
21
|
<div class="el-tags-container">
|
|
@@ -64,15 +60,13 @@
|
|
|
64
60
|
@expand-change="cascadeExpandChange"
|
|
65
61
|
:show-all-levels="true"
|
|
66
62
|
popper-class="sidebar-cascader-popper"
|
|
67
|
-
:teleported="false"
|
|
68
63
|
/>
|
|
69
64
|
<div v-if="showFiltersText" class="filter-default-value">Filters</div>
|
|
70
65
|
<el-popover
|
|
71
66
|
title="How do filters work?"
|
|
72
67
|
width="250"
|
|
73
68
|
trigger="hover"
|
|
74
|
-
popper-class="popover"
|
|
75
|
-
:teleported="false"
|
|
69
|
+
popper-class="filter-help-popover"
|
|
76
70
|
>
|
|
77
71
|
<template #reference>
|
|
78
72
|
<MapSvgIcon icon="help" class="help" />
|
|
@@ -97,7 +91,6 @@
|
|
|
97
91
|
v-model="numberShown"
|
|
98
92
|
placeholder="10"
|
|
99
93
|
@change="numberShownChanged($event)"
|
|
100
|
-
:teleported="false"
|
|
101
94
|
>
|
|
102
95
|
<el-option
|
|
103
96
|
v-for="item in numberDatasetsShown"
|
|
@@ -804,48 +797,6 @@ export default {
|
|
|
804
797
|
}
|
|
805
798
|
return []
|
|
806
799
|
},
|
|
807
|
-
onCascadeTagsPopoverShown: function () {
|
|
808
|
-
const cascadeTagsPopover = this.$refs.cascadeTagsPopover;
|
|
809
|
-
const fullscreenContainer = document.querySelector('.mapcontent');
|
|
810
|
-
const cascader = this.$refs.cascader;
|
|
811
|
-
|
|
812
|
-
if (cascader && cascadeTagsPopover) {
|
|
813
|
-
const cascaderZIndex = cascader.contentRef?.style.zIndex;
|
|
814
|
-
const cascaderTagZIndex = (cascaderZIndex * 1) + 1;
|
|
815
|
-
const cascadeTagsPopoverContentRef = cascadeTagsPopover.popperRef?.contentRef;
|
|
816
|
-
|
|
817
|
-
if (cascadeTagsPopoverContentRef) {
|
|
818
|
-
cascadeTagsPopoverContentRef.style.zIndex = cascaderTagZIndex;
|
|
819
|
-
|
|
820
|
-
if (fullscreenContainer) {
|
|
821
|
-
fullscreenContainer.append(cascadeTagsPopoverContentRef);
|
|
822
|
-
} else {
|
|
823
|
-
document.body.append(cascadeTagsPopoverContentRef);
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
// Work around to fix the first time replacement position
|
|
827
|
-
window.dispatchEvent(new Event('resize'));
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
},
|
|
831
|
-
/**
|
|
832
|
-
* Move the cascader(panel) under map container
|
|
833
|
-
* so that it will work on fulscreen mode
|
|
834
|
-
*/
|
|
835
|
-
replaceCascader: function () {
|
|
836
|
-
const fullscreenContainer = document.querySelector('.mapcontent');
|
|
837
|
-
const cascader = this.$refs.cascader;
|
|
838
|
-
|
|
839
|
-
if (cascader) {
|
|
840
|
-
const cascaderEl = cascader.contentRef;
|
|
841
|
-
|
|
842
|
-
if (fullscreenContainer) {
|
|
843
|
-
fullscreenContainer.append(cascaderEl);
|
|
844
|
-
} else {
|
|
845
|
-
document.body.append(cascaderEl);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
},
|
|
849
800
|
},
|
|
850
801
|
mounted: function () {
|
|
851
802
|
this.algoliaClient = markRaw(new AlgoliaClient(
|
|
@@ -1048,17 +999,29 @@ export default {
|
|
|
1048
999
|
border-color: $app-primary-color;
|
|
1049
1000
|
}
|
|
1050
1001
|
|
|
1051
|
-
.
|
|
1002
|
+
.filter-help-popover {
|
|
1003
|
+
color: rgb(48, 49, 51);
|
|
1004
|
+
font-family: Asap;
|
|
1005
|
+
margin: 12px;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.filter-help-popover,
|
|
1009
|
+
.cascade-tags-popover {
|
|
1052
1010
|
background: #f3ecf6 !important;
|
|
1053
|
-
border: 1px solid $app-primary-color;
|
|
1054
|
-
border-radius: 4px;
|
|
1011
|
+
border: 1px solid $app-primary-color !important;
|
|
1012
|
+
border-radius: 4px !important;
|
|
1055
1013
|
color: #303133 !important;
|
|
1056
|
-
font-size: 12px;
|
|
1057
|
-
line-height: 18px;
|
|
1058
|
-
}
|
|
1014
|
+
font-size: 12px !important;
|
|
1015
|
+
line-height: 18px !important;
|
|
1059
1016
|
|
|
1060
|
-
.el-
|
|
1061
|
-
|
|
1062
|
-
|
|
1017
|
+
.el-popper__arrow::before {
|
|
1018
|
+
background: #f3ecf6 !important;
|
|
1019
|
+
border-color: $app-primary-color !important;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
&[data-popper-placement^=bottom] .el-popper__arrow:before {
|
|
1023
|
+
border-bottom-color: transparent !important;
|
|
1024
|
+
border-right-color: transparent !important;
|
|
1025
|
+
}
|
|
1063
1026
|
}
|
|
1064
1027
|
</style>
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
<el-popover
|
|
14
14
|
width="auto"
|
|
15
15
|
trigger="hover"
|
|
16
|
-
:teleported="false"
|
|
17
16
|
:show-after="200"
|
|
18
17
|
:persistent="false"
|
|
19
18
|
popper-class="popover-dropdown"
|
|
@@ -36,9 +35,6 @@
|
|
|
36
35
|
<el-dropdown
|
|
37
36
|
trigger="click"
|
|
38
37
|
:hide-on-click="false"
|
|
39
|
-
:teleported="false"
|
|
40
|
-
class="search-history-dropdown"
|
|
41
|
-
popper-class="search-history-dropdown__popper"
|
|
42
38
|
>
|
|
43
39
|
<span class="el-dropdown-select">
|
|
44
40
|
Search history
|
|
@@ -54,7 +50,6 @@
|
|
|
54
50
|
<el-popover
|
|
55
51
|
width="auto"
|
|
56
52
|
trigger="hover"
|
|
57
|
-
:teleported="false"
|
|
58
53
|
:show-after="200"
|
|
59
54
|
:persistent="false"
|
|
60
55
|
popper-class="popover-dropdown"
|
|
@@ -77,7 +72,6 @@
|
|
|
77
72
|
<el-popover
|
|
78
73
|
width="auto"
|
|
79
74
|
trigger="hover"
|
|
80
|
-
:teleported="false"
|
|
81
75
|
:show-after="200"
|
|
82
76
|
:persistent="false"
|
|
83
77
|
popper-class="popover-dropdown"
|
|
@@ -118,7 +112,6 @@
|
|
|
118
112
|
<el-popover
|
|
119
113
|
width="auto"
|
|
120
114
|
trigger="hover"
|
|
121
|
-
:teleported="false"
|
|
122
115
|
:show-after="200"
|
|
123
116
|
:persistent="false"
|
|
124
117
|
popper-class="popover-dropdown"
|
|
@@ -430,7 +423,6 @@ export default {
|
|
|
430
423
|
align-items: center;
|
|
431
424
|
justify-content: space-between;
|
|
432
425
|
padding-bottom: 6px;
|
|
433
|
-
z-index: 2;
|
|
434
426
|
}
|
|
435
427
|
|
|
436
428
|
.empty-saved-search {
|
|
@@ -549,10 +541,6 @@ export default {
|
|
|
549
541
|
margin: 0;
|
|
550
542
|
}
|
|
551
543
|
}
|
|
552
|
-
|
|
553
|
-
:deep(.search-history-dropdown__popper) {
|
|
554
|
-
position: fixed !important;
|
|
555
|
-
}
|
|
556
544
|
</style>
|
|
557
545
|
|
|
558
546
|
<style lang="scss">
|
|
@@ -609,11 +597,9 @@ export default {
|
|
|
609
597
|
max-width: 240px;
|
|
610
598
|
font-family: Asap;
|
|
611
599
|
font-size: 12px;
|
|
612
|
-
white-space: normal;
|
|
613
600
|
word-break: break-word;
|
|
614
601
|
text-align: left;
|
|
615
602
|
color: inherit;
|
|
616
|
-
position: fixed !important;
|
|
617
603
|
background: #f3ecf6 !important;
|
|
618
604
|
border: 1px solid $app-primary-color;
|
|
619
605
|
|