@abi-software/map-side-bar 1.3.3 → 1.3.4
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/map-side-bar.common.js +81 -85
- package/dist/map-side-bar.common.js.map +1 -1
- package/dist/map-side-bar.css +1 -1
- package/dist/map-side-bar.umd.js +81 -85
- package/dist/map-side-bar.umd.js.map +1 -1
- package/dist/map-side-bar.umd.min.js +1 -1
- package/dist/map-side-bar.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/algolia/algolia.js +0 -1
- package/src/algolia/utils.js +0 -1
- package/src/components/ContextCard.vue +0 -1
- package/src/components/SideBar.vue +2 -2
- package/src/components/SidebarContent.vue +1 -3
package/package.json
CHANGED
package/src/algolia/algolia.js
CHANGED
package/src/algolia/utils.js
CHANGED
|
@@ -23,7 +23,6 @@ export const shownFilters = {
|
|
|
23
23
|
* and each of those results is then joined with an AND.
|
|
24
24
|
* i.e. (color:blue OR color:red) AND (shape:circle OR shape:red) */
|
|
25
25
|
export function getFilters(selectedFacetArray=undefined) {
|
|
26
|
-
console.log('calling getFilters!')
|
|
27
26
|
// return all datasets if no filter
|
|
28
27
|
if (selectedFacetArray === undefined) {
|
|
29
28
|
return 'NOT item.published.status:embargo'
|
|
@@ -139,8 +139,8 @@ export default {
|
|
|
139
139
|
EventBus.$on("PopoverActionClick", (payLoad) => {
|
|
140
140
|
this.$emit("actionClick", payLoad);
|
|
141
141
|
})
|
|
142
|
-
EventBus.$on('
|
|
143
|
-
this.$emit('
|
|
142
|
+
EventBus.$on('keywordsFound', (payLoad)=> {
|
|
143
|
+
this.$emit('search-changed', {
|
|
144
144
|
type: 'keyword-update',
|
|
145
145
|
value: payLoad
|
|
146
146
|
})
|
|
@@ -193,9 +193,7 @@ export default {
|
|
|
193
193
|
// Algolia search
|
|
194
194
|
this.loadingCards = true
|
|
195
195
|
this.algoliaClient.keywordsInSearch(getFilters(filters), query).then(keywords => {
|
|
196
|
-
|
|
197
|
-
console.log(keywords)
|
|
198
|
-
EventBus.$emit("kewordsFound", keywords)
|
|
196
|
+
EventBus.$emit("keywordsFound", keywords)
|
|
199
197
|
})
|
|
200
198
|
this.algoliaClient.search(getFilters(filters), query, this.numberPerPage, this.page).then(searchData => {
|
|
201
199
|
this.numberOfHits = searchData.total
|