@eox/itemfilter 1.1.1 → 1.1.2
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/eox-itemfilter.js +19 -7
- package/dist/eox-itemfilter.umd.cjs +19 -7
- package/package.json +1 -1
package/dist/eox-itemfilter.js
CHANGED
|
@@ -613,6 +613,7 @@ details {
|
|
|
613
613
|
transparent
|
|
614
614
|
);
|
|
615
615
|
--background-color: #fff;
|
|
616
|
+
--padding: 0.5rem;
|
|
616
617
|
}
|
|
617
618
|
* {
|
|
618
619
|
font-family: Roboto, sans-serif;
|
|
@@ -639,7 +640,7 @@ details summary {
|
|
|
639
640
|
display: flex;
|
|
640
641
|
align-items: center;
|
|
641
642
|
border-bottom: 1px solid #0002;
|
|
642
|
-
padding: .5rem
|
|
643
|
+
padding: .5rem var(--padding);
|
|
643
644
|
}
|
|
644
645
|
|
|
645
646
|
details > summary::-webkit-details-marker {
|
|
@@ -664,7 +665,8 @@ h6.main-heading {
|
|
|
664
665
|
font-size: 1rem;
|
|
665
666
|
margin-block-start: 1.33em;
|
|
666
667
|
margin-block-end: 1.33em;
|
|
667
|
-
margin-top:
|
|
668
|
+
margin-top: var(--padding);
|
|
669
|
+
padding: 0 var(--padding);
|
|
668
670
|
}
|
|
669
671
|
details summary .title {
|
|
670
672
|
display: flex;
|
|
@@ -694,6 +696,8 @@ eox-itemfilter-expandcontainer > [data-type=filter] {
|
|
|
694
696
|
display: block;
|
|
695
697
|
height: calc(100% - 32px);
|
|
696
698
|
overflow-y: auto;
|
|
699
|
+
overflow-x: hidden;
|
|
700
|
+
padding: 0 var(--padding);
|
|
697
701
|
}
|
|
698
702
|
[data-type=filter] .title,
|
|
699
703
|
details summary {
|
|
@@ -729,7 +733,10 @@ section:not(section:last-of-type) {
|
|
|
729
733
|
flex-direction: column;
|
|
730
734
|
}
|
|
731
735
|
ul:not(#filters) > li {
|
|
732
|
-
padding: 5px
|
|
736
|
+
padding: 5px 0;
|
|
737
|
+
}
|
|
738
|
+
.details-results ul:not(#filters) li {
|
|
739
|
+
padding: 5px var(--padding);
|
|
733
740
|
}
|
|
734
741
|
section {
|
|
735
742
|
position: relative;
|
|
@@ -737,8 +744,8 @@ section {
|
|
|
737
744
|
}
|
|
738
745
|
button#filter-reset {
|
|
739
746
|
position: absolute;
|
|
740
|
-
top:
|
|
741
|
-
right:
|
|
747
|
+
top: 0;
|
|
748
|
+
right: var(--padding);
|
|
742
749
|
padding: 2px 10px;
|
|
743
750
|
}
|
|
744
751
|
.count {
|
|
@@ -757,7 +764,12 @@ eox-itemfilter-range,
|
|
|
757
764
|
tc-range-slider {
|
|
758
765
|
align-items: center;
|
|
759
766
|
display: block;
|
|
760
|
-
|
|
767
|
+
}
|
|
768
|
+
tc-range-slider {
|
|
769
|
+
width: calc(100% - 16px);
|
|
770
|
+
margin-left: 8px;
|
|
771
|
+
margin-right: 8px;
|
|
772
|
+
--width: 100%;
|
|
761
773
|
}
|
|
762
774
|
.range-before,
|
|
763
775
|
.range-after {
|
|
@@ -4882,7 +4894,7 @@ class Bu extends ra {
|
|
|
4882
4894
|
return Y`
|
|
4883
4895
|
<section id="section-results">
|
|
4884
4896
|
<div>
|
|
4885
|
-
<h6
|
|
4897
|
+
<h6 class="main-heading">Results</h6>
|
|
4886
4898
|
</div>
|
|
4887
4899
|
<div id="container-results" class="scroll">
|
|
4888
4900
|
${qe(
|
|
@@ -73,6 +73,7 @@ details {
|
|
|
73
73
|
transparent
|
|
74
74
|
);
|
|
75
75
|
--background-color: #fff;
|
|
76
|
+
--padding: 0.5rem;
|
|
76
77
|
}
|
|
77
78
|
* {
|
|
78
79
|
font-family: Roboto, sans-serif;
|
|
@@ -99,7 +100,7 @@ details summary {
|
|
|
99
100
|
display: flex;
|
|
100
101
|
align-items: center;
|
|
101
102
|
border-bottom: 1px solid #0002;
|
|
102
|
-
padding: .5rem
|
|
103
|
+
padding: .5rem var(--padding);
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
details > summary::-webkit-details-marker {
|
|
@@ -124,7 +125,8 @@ h6.main-heading {
|
|
|
124
125
|
font-size: 1rem;
|
|
125
126
|
margin-block-start: 1.33em;
|
|
126
127
|
margin-block-end: 1.33em;
|
|
127
|
-
margin-top:
|
|
128
|
+
margin-top: var(--padding);
|
|
129
|
+
padding: 0 var(--padding);
|
|
128
130
|
}
|
|
129
131
|
details summary .title {
|
|
130
132
|
display: flex;
|
|
@@ -154,6 +156,8 @@ eox-itemfilter-expandcontainer > [data-type=filter] {
|
|
|
154
156
|
display: block;
|
|
155
157
|
height: calc(100% - 32px);
|
|
156
158
|
overflow-y: auto;
|
|
159
|
+
overflow-x: hidden;
|
|
160
|
+
padding: 0 var(--padding);
|
|
157
161
|
}
|
|
158
162
|
[data-type=filter] .title,
|
|
159
163
|
details summary {
|
|
@@ -189,7 +193,10 @@ section:not(section:last-of-type) {
|
|
|
189
193
|
flex-direction: column;
|
|
190
194
|
}
|
|
191
195
|
ul:not(#filters) > li {
|
|
192
|
-
padding: 5px
|
|
196
|
+
padding: 5px 0;
|
|
197
|
+
}
|
|
198
|
+
.details-results ul:not(#filters) li {
|
|
199
|
+
padding: 5px var(--padding);
|
|
193
200
|
}
|
|
194
201
|
section {
|
|
195
202
|
position: relative;
|
|
@@ -197,8 +204,8 @@ section {
|
|
|
197
204
|
}
|
|
198
205
|
button#filter-reset {
|
|
199
206
|
position: absolute;
|
|
200
|
-
top:
|
|
201
|
-
right:
|
|
207
|
+
top: 0;
|
|
208
|
+
right: var(--padding);
|
|
202
209
|
padding: 2px 10px;
|
|
203
210
|
}
|
|
204
211
|
.count {
|
|
@@ -217,7 +224,12 @@ eox-itemfilter-range,
|
|
|
217
224
|
tc-range-slider {
|
|
218
225
|
align-items: center;
|
|
219
226
|
display: block;
|
|
220
|
-
|
|
227
|
+
}
|
|
228
|
+
tc-range-slider {
|
|
229
|
+
width: calc(100% - 16px);
|
|
230
|
+
margin-left: 8px;
|
|
231
|
+
margin-right: 8px;
|
|
232
|
+
--width: 100%;
|
|
221
233
|
}
|
|
222
234
|
.range-before,
|
|
223
235
|
.range-after {
|
|
@@ -644,7 +656,7 @@ eox-itemfilter-results li.highlighted {
|
|
|
644
656
|
`}class ju extends Wo{constructor(){super();Xe(this,Kt);this.config=null,this.filters={},this.resultAggregation=[],this.selectedResult=null}static get properties(){return{config:{attribute:!1,type:Object},results:{state:!0,type:Object},filters:{state:!0,type:Object},resultAggregation:{attribute:!1,type:Array},selectedResult:{state:!0,type:Object}}}aggregateResults(n,r){return ku(n,r,this)}createRenderRoot(){return this}handleAccordion(n){Ho(n,this.config,this)}render(){return Y`
|
|
645
657
|
<section id="section-results">
|
|
646
658
|
<div>
|
|
647
|
-
<h6
|
|
659
|
+
<h6 class="main-heading">Results</h6>
|
|
648
660
|
</div>
|
|
649
661
|
<div id="container-results" class="scroll">
|
|
650
662
|
${Ie(this.results.length<1,()=>Y`<small class="no-results">No matching items</small>`,()=>ge)}
|