@abi-software/map-side-bar 2.6.1-beta.2 → 2.6.1-beta.4
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,22 +999,24 @@ export default {
|
|
|
1048
999
|
border-color: $app-primary-color;
|
|
1049
1000
|
}
|
|
1050
1001
|
|
|
1051
|
-
.
|
|
1002
|
+
.filter-help-popover,
|
|
1003
|
+
.cascade-tags-popover {
|
|
1004
|
+
font-family: 'Asap', sans-serif;
|
|
1052
1005
|
background: #f3ecf6 !important;
|
|
1053
1006
|
border: 1px solid $app-primary-color !important;
|
|
1054
1007
|
border-radius: 4px !important;
|
|
1055
1008
|
color: #303133 !important;
|
|
1056
1009
|
font-size: 12px !important;
|
|
1057
1010
|
line-height: 18px !important;
|
|
1058
|
-
}
|
|
1059
1011
|
|
|
1060
|
-
.el-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
}
|
|
1012
|
+
.el-popper__arrow::before {
|
|
1013
|
+
background: #f3ecf6 !important;
|
|
1014
|
+
border-color: $app-primary-color !important;
|
|
1015
|
+
}
|
|
1064
1016
|
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1017
|
+
&[data-popper-placement^=bottom] .el-popper__arrow:before {
|
|
1018
|
+
border-bottom-color: transparent !important;
|
|
1019
|
+
border-right-color: transparent !important;
|
|
1020
|
+
}
|
|
1068
1021
|
}
|
|
1069
1022
|
</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 {
|
|
@@ -498,6 +490,7 @@ export default {
|
|
|
498
490
|
.el-icon {
|
|
499
491
|
transform: rotate(0deg);
|
|
500
492
|
transition: transform 0.25s linear;
|
|
493
|
+
color: var(--el-text-color-placeholder);
|
|
501
494
|
}
|
|
502
495
|
|
|
503
496
|
&[aria-expanded="true"] {
|
|
@@ -549,10 +542,6 @@ export default {
|
|
|
549
542
|
margin: 0;
|
|
550
543
|
}
|
|
551
544
|
}
|
|
552
|
-
|
|
553
|
-
:deep(.search-history-dropdown__popper) {
|
|
554
|
-
position: fixed !important;
|
|
555
|
-
}
|
|
556
545
|
</style>
|
|
557
546
|
|
|
558
547
|
<style lang="scss">
|
|
@@ -609,11 +598,9 @@ export default {
|
|
|
609
598
|
max-width: 240px;
|
|
610
599
|
font-family: Asap;
|
|
611
600
|
font-size: 12px;
|
|
612
|
-
white-space: normal;
|
|
613
601
|
word-break: break-word;
|
|
614
602
|
text-align: left;
|
|
615
603
|
color: inherit;
|
|
616
|
-
position: fixed !important;
|
|
617
604
|
background: #f3ecf6 !important;
|
|
618
605
|
border: 1px solid $app-primary-color;
|
|
619
606
|
|