henry-search 1.0.29 → 1.0.31

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "henry-search",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Searches a typesense archive of musical performances",
5
5
  "main": "js/main.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
 
3
- import { ref, onMounted } from 'vue'
3
+ import { onMounted, defineEmits } from 'vue'
4
4
  import '@vuepic/vue-datepicker/dist/main.css'
5
5
  import PTabs from './PTabs.vue'
6
6
  import SearchTab from "./SearchTab.vue"
@@ -31,16 +31,20 @@
31
31
  require: true
32
32
  }
33
33
  })
34
+
35
+ const emit = defineEmits(['push'])
36
+
37
+ const pushEmit = (obj) => {
38
+ emit('push', obj)
39
+ }
34
40
 
35
41
  onMounted(() => {
36
42
  document.addEventListener("click", function(){
37
- console.log('click')
38
43
  document.querySelectorAll(".audioLinks__box").forEach((el) => {
39
44
  el.classList.remove("-open")
40
45
  })
41
46
  })
42
-
43
-
47
+
44
48
  })
45
49
 
46
50
  const mainRefinements = [
@@ -172,6 +176,7 @@
172
176
  results-title="Performances"
173
177
  :search-key="props.searchKey"
174
178
  :search-host="props.searchHost"
179
+ @push="pushEmit"
175
180
  >
176
181
  <template v-slot="{ items }">
177
182
  <div class="resultsGrid" v-if="items && items.length">