henry-search 1.0.32 → 1.0.33
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 +6203 -6189
- package/dist/HenrySearch.umd.cjs +84 -84
- package/package.json +1 -1
- package/src/components/SearchTab.vue +19 -4
- package/src/styles/atoms/toolTip/index.scss +2 -2
- package/src/styles/organisms/filters/index.scss +3 -0
- package/src/styles/organisms/resultsGrid/index.scss +1 -0
package/package.json
CHANGED
|
@@ -399,7 +399,7 @@ const formatRefinement = (refinement) => {
|
|
|
399
399
|
|
|
400
400
|
const filterItems = (items) => {
|
|
401
401
|
if (!items.length) {
|
|
402
|
-
|
|
402
|
+
emitNoResults()
|
|
403
403
|
}
|
|
404
404
|
if (showByWorks.value && props.indexName == "dev_henry_perfs") {
|
|
405
405
|
|
|
@@ -479,6 +479,21 @@ const emitQuery = useDebounceFn(() => {
|
|
|
479
479
|
}
|
|
480
480
|
}, 1000)
|
|
481
481
|
|
|
482
|
+
const emitNoResults = useDebounceFn(() => {
|
|
483
|
+
if (currentQuery.value) {
|
|
484
|
+
emit('push', {event: 'no_results', data: currentQuery.value})
|
|
485
|
+
}
|
|
486
|
+
}, 1000)
|
|
487
|
+
|
|
488
|
+
const copyUrl = () => {
|
|
489
|
+
navigator.clipboard.writeText(window.location.href)
|
|
490
|
+
const htmlHolder = document.querySelector('#copy_link').innerHTML
|
|
491
|
+
document.querySelector('#copy_link').innerHTML = "URL Copied!"
|
|
492
|
+
setTimeout(() => {
|
|
493
|
+
document.querySelector('#copy_link').innerHTML = htmlHolder
|
|
494
|
+
}, 1000)
|
|
495
|
+
}
|
|
496
|
+
|
|
482
497
|
</script>
|
|
483
498
|
|
|
484
499
|
<template>
|
|
@@ -814,15 +829,15 @@ const emitQuery = useDebounceFn(() => {
|
|
|
814
829
|
</select>
|
|
815
830
|
</div>
|
|
816
831
|
<div v-if="showNumHits" class="resultActions__buttons">
|
|
817
|
-
<div class="toolTip">
|
|
818
|
-
<a
|
|
832
|
+
<div class="toolTip" id="copy_tooltip">
|
|
833
|
+
<a @click="copyUrl()" id="shareActions__icon">
|
|
819
834
|
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="resultActions__icon" outline="black">
|
|
820
835
|
<!-- <circle cx="12" cy="12" stroke="none" r="12"/> -->
|
|
821
836
|
<path d="M11.3334 12.5068C11.5012 12.7435 11.7153 12.9393 11.9611 13.081C12.2069 13.2227 12.4788 13.307 12.7582 13.3281C13.0376 13.3492 13.3181 13.3066 13.5806 13.2034C13.8431 13.1001 14.0814 12.9384 14.2795 12.7294L15.4516 11.4928C15.8075 11.1041 16.0044 10.5835 16 10.0431C15.9955 9.50271 15.7901 8.98578 15.4278 8.60365C15.0656 8.22153 14.5756 8.00477 14.0634 8.00008C13.5511 7.99538 13.0577 8.20312 12.6892 8.57855L12.0171 9.28341" stroke-linecap="round" stroke-linejoin="round"/>
|
|
822
837
|
<path d="M13.3333 11.4932C13.1416 11.2565 12.8969 11.0607 12.6159 10.919C12.335 10.7773 12.0243 10.6931 11.7049 10.672C11.3856 10.6508 11.0651 10.6934 10.7651 10.7967C10.4651 10.9 10.1927 11.0616 9.96639 11.2706L8.62675 12.5072C8.22004 12.8959 7.995 13.4165 8.00008 13.9569C8.00517 14.4973 8.23998 15.0142 8.65395 15.3964C9.06791 15.7785 9.62791 15.9952 10.2133 15.9999C10.7987 16.0046 11.3627 15.7969 11.7838 15.4215L12.5474 14.7166" stroke-linecap="round" stroke-linejoin="round"/>
|
|
823
838
|
</svg>
|
|
824
839
|
</a>
|
|
825
|
-
<span class="toolTip__text">Copy Link</span>
|
|
840
|
+
<span class="toolTip__text" id="copy_link">Copy Link</span>
|
|
826
841
|
</div>
|
|
827
842
|
<div class="toolTip">
|
|
828
843
|
<a :href="`/actions/csvexport/csv-export${ routing.router.getLocation().search }`" id="downloadActions__icon">
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
font-size: 0.75rem;
|
|
12
12
|
font-weight: 100;
|
|
13
13
|
height: 1.8rem;
|
|
14
|
-
left: -
|
|
14
|
+
left: -0.1rem;
|
|
15
15
|
margin-left: -100%;
|
|
16
16
|
opacity: 0;
|
|
17
17
|
padding: 5px 0;
|
|
18
18
|
position: absolute;
|
|
19
19
|
text-align: center;
|
|
20
20
|
text-wrap: nowrap;
|
|
21
|
-
top:
|
|
21
|
+
top: 2.5rem;
|
|
22
22
|
transition: opacity 0.3s;
|
|
23
23
|
visibility: hidden;
|
|
24
24
|
width: 6rem;
|