henry-search 1.0.23 → 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 +4270 -4269
- package/dist/HenrySearch.umd.cjs +72 -72
- package/package.json +1 -1
- package/src/components/SearchTab.vue +5 -2
- 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"
|
|
@@ -556,7 +559,7 @@
|
|
|
556
559
|
</div>
|
|
557
560
|
|
|
558
561
|
<!-- View Toggle and Active Filters -->
|
|
559
|
-
<section :class="`filters__filterRail ${filtersClosed ? 'closed' : ''}`" :id="`${props.indexName}_filterRail`">
|
|
562
|
+
<section :class="`filters__filterRail ${filtersClosed ? 'closed' : ''} ${mobileFiltersClosed ? '' : 'openMobile'}`" :id="`${props.indexName}_filterRail`">
|
|
560
563
|
|
|
561
564
|
<div class="filters__wrapper">
|
|
562
565
|
<div class="filters__header">
|
|
@@ -741,7 +744,7 @@
|
|
|
741
744
|
</section>
|
|
742
745
|
|
|
743
746
|
<!-- Search Results Section -->
|
|
744
|
-
<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`">
|
|
745
748
|
|
|
746
749
|
<ais-hits :key="updateNow" class="eventsSearch__hits" :transform-items="filterItems">
|
|
747
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;
|