henry-search 1.0.22 → 1.0.24
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/HenrySearch.css +1 -1
- package/dist/HenrySearch.js +4272 -4269
- package/dist/HenrySearch.umd.cjs +72 -72
- package/package.json +1 -1
- package/src/components/SearchTab.vue +7 -3
- package/src/styles/organisms/filters/index.scss +5 -3
package/package.json
CHANGED
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
const workFilters = ref(null)
|
|
76
76
|
const currentQuery = ref(null)
|
|
77
77
|
const filtersClosed = ref(false)
|
|
78
|
+
const mobileFiltersClosed = ref(false)
|
|
78
79
|
|
|
79
80
|
const updateNow = ref(0)
|
|
80
81
|
|
|
@@ -154,6 +155,7 @@
|
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
const toggleFiltersMobile = () => {
|
|
158
|
+
mobileFiltersClosed.value = !mobileFiltersClosed.value
|
|
157
159
|
const wrapper = document.getElementById(`${props.indexName}_filterRail`)
|
|
158
160
|
const leftPane = document.getElementById(`${props.indexName}_eventsSearch__results`)
|
|
159
161
|
const containers = document.querySelectorAll('.container')
|
|
@@ -161,6 +163,7 @@
|
|
|
161
163
|
wrapper.classList.remove('closed')
|
|
162
164
|
wrapper.classList.toggle('openMobile')
|
|
163
165
|
leftPane.classList.toggle('openMobile')
|
|
166
|
+
console.log(wrapper.classList)
|
|
164
167
|
containers.forEach((el) => {
|
|
165
168
|
if (el.style.display != "none") {
|
|
166
169
|
el.style.display = "none"
|
|
@@ -511,7 +514,7 @@
|
|
|
511
514
|
});
|
|
512
515
|
|
|
513
516
|
}"
|
|
514
|
-
|
|
517
|
+
:teleport="true"
|
|
515
518
|
:clearable="false"
|
|
516
519
|
:multi-calendars="false"
|
|
517
520
|
:enable-time-picker="false"
|
|
@@ -529,6 +532,7 @@
|
|
|
529
532
|
min: formatMinValue(currentRefinement.min, range.min),
|
|
530
533
|
max: formatMaxValue(modelValue/1000, range.max),
|
|
531
534
|
})}"
|
|
535
|
+
:teleport="true"
|
|
532
536
|
:clearable="false"
|
|
533
537
|
:text-input="true"
|
|
534
538
|
:enter-submit="true"
|
|
@@ -555,7 +559,7 @@
|
|
|
555
559
|
</div>
|
|
556
560
|
|
|
557
561
|
<!-- View Toggle and Active Filters -->
|
|
558
|
-
<section :class="`filters__filterRail ${filtersClosed ? 'closed' : ''}`" :id="`${props.indexName}_filterRail`">
|
|
562
|
+
<section :class="`filters__filterRail ${filtersClosed ? 'closed' : ''} ${mobileFiltersClosed ? '' : 'openMobile'}`" :id="`${props.indexName}_filterRail`">
|
|
559
563
|
|
|
560
564
|
<div class="filters__wrapper">
|
|
561
565
|
<div class="filters__header">
|
|
@@ -740,7 +744,7 @@
|
|
|
740
744
|
</section>
|
|
741
745
|
|
|
742
746
|
<!-- Search Results Section -->
|
|
743
|
-
<section :class="`eventsSearch__results ${ filtersClosed ? 'closed' : ''}`" :id="`${props.indexName}_eventsSearch__results`">
|
|
747
|
+
<section :class="`eventsSearch__results ${ filtersClosed ? 'closed' : ''} ${mobileFiltersClosed ? '' : 'openMobile'}`" :id="`${props.indexName}_eventsSearch__results`">
|
|
744
748
|
|
|
745
749
|
<ais-hits :key="updateNow" class="eventsSearch__hits" :transform-items="filterItems">
|
|
746
750
|
<template v-slot="{ items }">
|
|
@@ -46,8 +46,10 @@
|
|
|
46
46
|
transition: width 400ms, padding-left 400ms;
|
|
47
47
|
width: 0;
|
|
48
48
|
&.closed {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
@include at(lg) {
|
|
50
|
+
width: 0;
|
|
51
|
+
padding-left: 6rem;
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
@include at(lg) {
|
|
@@ -270,7 +272,7 @@
|
|
|
270
272
|
&__wrapper {
|
|
271
273
|
overflow-y: scroll;
|
|
272
274
|
width: 100%;
|
|
273
|
-
height:
|
|
275
|
+
height: 90%;
|
|
274
276
|
@include at(lg) {
|
|
275
277
|
overflow: hidden;
|
|
276
278
|
display: grid;
|