homebirdscomponents
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -271,3 +271,3 @@ 'use strict'; | ||
const searchInputComponentCss = "*{font-family:sans-serif}#searchbar{display:flex;align-items:center;background:#fff;padding:10px;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);border-radius:10px}#icon-container{border-right:1px solid #aaa;padding-right:20px;display:flex;align-items:center}#icon{width:28px}#cmp{position:relative}#input{margin-left:20px;font-size:18px;padding:5px;border:0;outline:none;color:#888;flex:1}#input::placeholder{color:#aaa}#input:focus::placeholder{opacity:0}#suggestions{height:210px;background:#fff;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);position:absolute;z-index:10;width:100%;overflow-y:auto}#suggestions>div{font-size:18px;padding:10px;border-bottom:1px solid #ccc;cursor:default}#suggestions>div:hover{background:#fafafa}"; | ||
const searchInputComponentCss = "*{font-family:sans-serif}#searchbar{display:flex;align-items:center;background:#fff;padding:10px;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);border-radius:10px}#icon-container{border-right:1px solid #aaa;padding-right:20px;display:flex;align-items:center}#icon{width:28px}#cmp{position:relative}#input{margin-left:20px;font-size:18px;padding:5px;border:0;outline:none;color:#888;flex:1}#input::placeholder{color:#aaa}#input:focus::placeholder{opacity:0}#suggestions{height:210px;background:#fff;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);position:absolute;z-index:10;width:100%;overflow-y:auto}#suggestions>a{display:block;font-size:18px;padding:10px;border-bottom:1px solid #ccc;cursor:default}#suggestions>div:hover{background:#fafafa}"; | ||
@@ -376,43 +376,70 @@ const searchInput = class { | ||
let suggestionsTmp = []; | ||
this.tokenizedSuggestions.forEach((itemArr, idx) => { | ||
let rank = 0; | ||
let possHits = 0; | ||
for (let suggItem of itemArr) { | ||
for (let srchItem of this.tokenizedSearchTerms) { | ||
if (suggItem.substring(0, srchItem.length) === srchItem.substring(0, srchItem.length)) { | ||
possHits++; | ||
this.tokenizedSearchTerms.forEach(term => { | ||
this.tokenizedSuggestions.forEach((suggArr, suggArrIdx) => { | ||
let rank = 0; | ||
for (let suggToken of suggArr) { | ||
if (suggToken.substring(0, term.length) === term.substring(0, term.length)) { | ||
rank++; | ||
} | ||
if (itemArr.length === this.tokenizedSearchTerms.length && levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
rank += 1; | ||
if (suggArr.length === this.tokenizedSearchTerms.length && levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 4) { | ||
rank++; | ||
} | ||
if (suggItem.includes(srchItem)) { | ||
possHits++; | ||
if (suggToken.includes(term)) { | ||
rank++; | ||
} | ||
if (levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
if (levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 4) { | ||
rank++; | ||
} | ||
if (levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 3) { | ||
possHits++; | ||
if (levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 3) { | ||
rank++; | ||
} | ||
if (levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 2) { | ||
possHits++; | ||
if (levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 2) { | ||
rank++; | ||
} | ||
} | ||
if (possHits / itemArr.length > 0.8) { | ||
rank += 1; | ||
if (rank > 0) { | ||
if (suggestionsTmp.length) { | ||
suggestionsTmp.forEach((item, idx) => { | ||
if (item.item === this.suggestionsArr[suggArrIdx] && item.rank <= rank) { | ||
delete suggestionsTmp[idx]; | ||
} | ||
}); | ||
} | ||
suggestionsTmp.push({ rank, item: this.suggestionsArr[suggArrIdx] }); | ||
} | ||
} | ||
if (rank > 0) { | ||
suggestionsTmp.forEach((item, idx2) => { | ||
if (item.item === this.suggestionsArr[idx] && item.rank <= rank) { | ||
delete suggestionsTmp[idx2]; | ||
} | ||
}); | ||
suggestionsTmp.push({ rank, item: this.suggestionsArr[idx] }); | ||
} | ||
}); | ||
}); | ||
// this.tokenizedSuggestions.forEach((itemArr, idx) => { | ||
// let rank = 0; | ||
// for (let suggItem of itemArr) { | ||
// for (let srchItem of this.tokenizedSearchTerms) { | ||
// if (suggItem.substring(0, srchItem.length) === srchItem.substring(0, srchItem.length)) { | ||
// rank++; | ||
// } | ||
// if (itemArr.length === this.tokenizedSearchTerms.length && lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
// rank++; | ||
// } | ||
// if (suggItem.includes(srchItem)) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 3) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 2) { | ||
// rank++; | ||
// } | ||
// } | ||
// } | ||
// if (rank > 0) { | ||
// suggestionsTmp.forEach((item, idx2) => { | ||
// if (item.item === this.suggestionsArr[idx] && item.rank <= rank) { | ||
// delete suggestionsTmp[idx2]; | ||
// } | ||
// }); | ||
// suggestionsTmp.push({ rank, item: this.suggestionsArr[idx] }); | ||
// } | ||
// }); | ||
suggestionsTmp.sort((a, b) => b.rank - a.rank); | ||
@@ -419,0 +446,0 @@ suggestionsTmp.splice(this.maxSuggestionsShown); |
@@ -102,43 +102,70 @@ import { Component, h, Prop, State, Watch, Element, Event, Listen } from '@stencil/core'; | ||
let suggestionsTmp = []; | ||
this.tokenizedSuggestions.forEach((itemArr, idx) => { | ||
let rank = 0; | ||
let possHits = 0; | ||
for (let suggItem of itemArr) { | ||
for (let srchItem of this.tokenizedSearchTerms) { | ||
if (suggItem.substring(0, srchItem.length) === srchItem.substring(0, srchItem.length)) { | ||
possHits++; | ||
this.tokenizedSearchTerms.forEach(term => { | ||
this.tokenizedSuggestions.forEach((suggArr, suggArrIdx) => { | ||
let rank = 0; | ||
for (let suggToken of suggArr) { | ||
if (suggToken.substring(0, term.length) === term.substring(0, term.length)) { | ||
rank++; | ||
} | ||
if (itemArr.length === this.tokenizedSearchTerms.length && lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
rank += 1; | ||
if (suggArr.length === this.tokenizedSearchTerms.length && lev.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 4) { | ||
rank++; | ||
} | ||
if (suggItem.includes(srchItem)) { | ||
possHits++; | ||
if (suggToken.includes(term)) { | ||
rank++; | ||
} | ||
if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
if (lev.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 4) { | ||
rank++; | ||
} | ||
if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 3) { | ||
possHits++; | ||
if (lev.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 3) { | ||
rank++; | ||
} | ||
if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 2) { | ||
possHits++; | ||
if (lev.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 2) { | ||
rank++; | ||
} | ||
} | ||
if (possHits / itemArr.length > 0.8) { | ||
rank += 1; | ||
if (rank > 0) { | ||
if (suggestionsTmp.length) { | ||
suggestionsTmp.forEach((item, idx) => { | ||
if (item.item === this.suggestionsArr[suggArrIdx] && item.rank <= rank) { | ||
delete suggestionsTmp[idx]; | ||
} | ||
}); | ||
} | ||
suggestionsTmp.push({ rank, item: this.suggestionsArr[suggArrIdx] }); | ||
} | ||
} | ||
if (rank > 0) { | ||
suggestionsTmp.forEach((item, idx2) => { | ||
if (item.item === this.suggestionsArr[idx] && item.rank <= rank) { | ||
delete suggestionsTmp[idx2]; | ||
} | ||
}); | ||
suggestionsTmp.push({ rank, item: this.suggestionsArr[idx] }); | ||
} | ||
}); | ||
}); | ||
// this.tokenizedSuggestions.forEach((itemArr, idx) => { | ||
// let rank = 0; | ||
// for (let suggItem of itemArr) { | ||
// for (let srchItem of this.tokenizedSearchTerms) { | ||
// if (suggItem.substring(0, srchItem.length) === srchItem.substring(0, srchItem.length)) { | ||
// rank++; | ||
// } | ||
// if (itemArr.length === this.tokenizedSearchTerms.length && lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
// rank++; | ||
// } | ||
// if (suggItem.includes(srchItem)) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 3) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 2) { | ||
// rank++; | ||
// } | ||
// } | ||
// } | ||
// if (rank > 0) { | ||
// suggestionsTmp.forEach((item, idx2) => { | ||
// if (item.item === this.suggestionsArr[idx] && item.rank <= rank) { | ||
// delete suggestionsTmp[idx2]; | ||
// } | ||
// }); | ||
// suggestionsTmp.push({ rank, item: this.suggestionsArr[idx] }); | ||
// } | ||
// }); | ||
suggestionsTmp.sort((a, b) => b.rank - a.rank); | ||
@@ -145,0 +172,0 @@ suggestionsTmp.splice(this.maxSuggestionsShown); |
@@ -412,3 +412,3 @@ import { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client'; | ||
const searchInputComponentCss = "*{font-family:sans-serif}#searchbar{display:flex;align-items:center;background:#fff;padding:10px;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);border-radius:10px}#icon-container{border-right:1px solid #aaa;padding-right:20px;display:flex;align-items:center}#icon{width:28px}#cmp{position:relative}#input{margin-left:20px;font-size:18px;padding:5px;border:0;outline:none;color:#888;flex:1}#input::placeholder{color:#aaa}#input:focus::placeholder{opacity:0}#suggestions{height:210px;background:#fff;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);position:absolute;z-index:10;width:100%;overflow-y:auto}#suggestions>div{font-size:18px;padding:10px;border-bottom:1px solid #ccc;cursor:default}#suggestions>div:hover{background:#fafafa}"; | ||
const searchInputComponentCss = "*{font-family:sans-serif}#searchbar{display:flex;align-items:center;background:#fff;padding:10px;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);border-radius:10px}#icon-container{border-right:1px solid #aaa;padding-right:20px;display:flex;align-items:center}#icon{width:28px}#cmp{position:relative}#input{margin-left:20px;font-size:18px;padding:5px;border:0;outline:none;color:#888;flex:1}#input::placeholder{color:#aaa}#input:focus::placeholder{opacity:0}#suggestions{height:210px;background:#fff;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);position:absolute;z-index:10;width:100%;overflow-y:auto}#suggestions>a{display:block;font-size:18px;padding:10px;border-bottom:1px solid #ccc;cursor:default}#suggestions>div:hover{background:#fafafa}"; | ||
@@ -519,43 +519,70 @@ const searchInput = class extends HTMLElement { | ||
let suggestionsTmp = []; | ||
this.tokenizedSuggestions.forEach((itemArr, idx) => { | ||
let rank = 0; | ||
let possHits = 0; | ||
for (let suggItem of itemArr) { | ||
for (let srchItem of this.tokenizedSearchTerms) { | ||
if (suggItem.substring(0, srchItem.length) === srchItem.substring(0, srchItem.length)) { | ||
possHits++; | ||
this.tokenizedSearchTerms.forEach(term => { | ||
this.tokenizedSuggestions.forEach((suggArr, suggArrIdx) => { | ||
let rank = 0; | ||
for (let suggToken of suggArr) { | ||
if (suggToken.substring(0, term.length) === term.substring(0, term.length)) { | ||
rank++; | ||
} | ||
if (itemArr.length === this.tokenizedSearchTerms.length && levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
rank += 1; | ||
if (suggArr.length === this.tokenizedSearchTerms.length && levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 4) { | ||
rank++; | ||
} | ||
if (suggItem.includes(srchItem)) { | ||
possHits++; | ||
if (suggToken.includes(term)) { | ||
rank++; | ||
} | ||
if (levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
if (levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 4) { | ||
rank++; | ||
} | ||
if (levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 3) { | ||
possHits++; | ||
if (levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 3) { | ||
rank++; | ||
} | ||
if (levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 2) { | ||
possHits++; | ||
if (levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 2) { | ||
rank++; | ||
} | ||
} | ||
if (possHits / itemArr.length > 0.8) { | ||
rank += 1; | ||
if (rank > 0) { | ||
if (suggestionsTmp.length) { | ||
suggestionsTmp.forEach((item, idx) => { | ||
if (item.item === this.suggestionsArr[suggArrIdx] && item.rank <= rank) { | ||
delete suggestionsTmp[idx]; | ||
} | ||
}); | ||
} | ||
suggestionsTmp.push({ rank, item: this.suggestionsArr[suggArrIdx] }); | ||
} | ||
} | ||
if (rank > 0) { | ||
suggestionsTmp.forEach((item, idx2) => { | ||
if (item.item === this.suggestionsArr[idx] && item.rank <= rank) { | ||
delete suggestionsTmp[idx2]; | ||
} | ||
}); | ||
suggestionsTmp.push({ rank, item: this.suggestionsArr[idx] }); | ||
} | ||
}); | ||
}); | ||
// this.tokenizedSuggestions.forEach((itemArr, idx) => { | ||
// let rank = 0; | ||
// for (let suggItem of itemArr) { | ||
// for (let srchItem of this.tokenizedSearchTerms) { | ||
// if (suggItem.substring(0, srchItem.length) === srchItem.substring(0, srchItem.length)) { | ||
// rank++; | ||
// } | ||
// if (itemArr.length === this.tokenizedSearchTerms.length && lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
// rank++; | ||
// } | ||
// if (suggItem.includes(srchItem)) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 3) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 2) { | ||
// rank++; | ||
// } | ||
// } | ||
// } | ||
// if (rank > 0) { | ||
// suggestionsTmp.forEach((item, idx2) => { | ||
// if (item.item === this.suggestionsArr[idx] && item.rank <= rank) { | ||
// delete suggestionsTmp[idx2]; | ||
// } | ||
// }); | ||
// suggestionsTmp.push({ rank, item: this.suggestionsArr[idx] }); | ||
// } | ||
// }); | ||
suggestionsTmp.sort((a, b) => b.rank - a.rank); | ||
@@ -562,0 +589,0 @@ suggestionsTmp.splice(this.maxSuggestionsShown); |
@@ -267,3 +267,3 @@ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-ab3cece5.js'; | ||
const searchInputComponentCss = "*{font-family:sans-serif}#searchbar{display:flex;align-items:center;background:#fff;padding:10px;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);border-radius:10px}#icon-container{border-right:1px solid #aaa;padding-right:20px;display:flex;align-items:center}#icon{width:28px}#cmp{position:relative}#input{margin-left:20px;font-size:18px;padding:5px;border:0;outline:none;color:#888;flex:1}#input::placeholder{color:#aaa}#input:focus::placeholder{opacity:0}#suggestions{height:210px;background:#fff;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);position:absolute;z-index:10;width:100%;overflow-y:auto}#suggestions>div{font-size:18px;padding:10px;border-bottom:1px solid #ccc;cursor:default}#suggestions>div:hover{background:#fafafa}"; | ||
const searchInputComponentCss = "*{font-family:sans-serif}#searchbar{display:flex;align-items:center;background:#fff;padding:10px;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);border-radius:10px}#icon-container{border-right:1px solid #aaa;padding-right:20px;display:flex;align-items:center}#icon{width:28px}#cmp{position:relative}#input{margin-left:20px;font-size:18px;padding:5px;border:0;outline:none;color:#888;flex:1}#input::placeholder{color:#aaa}#input:focus::placeholder{opacity:0}#suggestions{height:210px;background:#fff;box-shadow:0 0 10px rgba(0, 0, 0, 0.2);position:absolute;z-index:10;width:100%;overflow-y:auto}#suggestions>a{display:block;font-size:18px;padding:10px;border-bottom:1px solid #ccc;cursor:default}#suggestions>div:hover{background:#fafafa}"; | ||
@@ -372,43 +372,70 @@ const searchInput = class { | ||
let suggestionsTmp = []; | ||
this.tokenizedSuggestions.forEach((itemArr, idx) => { | ||
let rank = 0; | ||
let possHits = 0; | ||
for (let suggItem of itemArr) { | ||
for (let srchItem of this.tokenizedSearchTerms) { | ||
if (suggItem.substring(0, srchItem.length) === srchItem.substring(0, srchItem.length)) { | ||
possHits++; | ||
this.tokenizedSearchTerms.forEach(term => { | ||
this.tokenizedSuggestions.forEach((suggArr, suggArrIdx) => { | ||
let rank = 0; | ||
for (let suggToken of suggArr) { | ||
if (suggToken.substring(0, term.length) === term.substring(0, term.length)) { | ||
rank++; | ||
} | ||
if (itemArr.length === this.tokenizedSearchTerms.length && levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
rank += 1; | ||
if (suggArr.length === this.tokenizedSearchTerms.length && levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 4) { | ||
rank++; | ||
} | ||
if (suggItem.includes(srchItem)) { | ||
possHits++; | ||
if (suggToken.includes(term)) { | ||
rank++; | ||
} | ||
if (levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
if (levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 4) { | ||
rank++; | ||
} | ||
if (levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 3) { | ||
possHits++; | ||
if (levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 3) { | ||
rank++; | ||
} | ||
if (levenshtein.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 2) { | ||
possHits++; | ||
if (levenshtein.get(term.substring(0, term.length), suggToken.substring(0, term.length)) < 2) { | ||
rank++; | ||
} | ||
} | ||
if (possHits / itemArr.length > 0.8) { | ||
rank += 1; | ||
if (rank > 0) { | ||
if (suggestionsTmp.length) { | ||
suggestionsTmp.forEach((item, idx) => { | ||
if (item.item === this.suggestionsArr[suggArrIdx] && item.rank <= rank) { | ||
delete suggestionsTmp[idx]; | ||
} | ||
}); | ||
} | ||
suggestionsTmp.push({ rank, item: this.suggestionsArr[suggArrIdx] }); | ||
} | ||
} | ||
if (rank > 0) { | ||
suggestionsTmp.forEach((item, idx2) => { | ||
if (item.item === this.suggestionsArr[idx] && item.rank <= rank) { | ||
delete suggestionsTmp[idx2]; | ||
} | ||
}); | ||
suggestionsTmp.push({ rank, item: this.suggestionsArr[idx] }); | ||
} | ||
}); | ||
}); | ||
// this.tokenizedSuggestions.forEach((itemArr, idx) => { | ||
// let rank = 0; | ||
// for (let suggItem of itemArr) { | ||
// for (let srchItem of this.tokenizedSearchTerms) { | ||
// if (suggItem.substring(0, srchItem.length) === srchItem.substring(0, srchItem.length)) { | ||
// rank++; | ||
// } | ||
// if (itemArr.length === this.tokenizedSearchTerms.length && lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
// rank++; | ||
// } | ||
// if (suggItem.includes(srchItem)) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 4) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 3) { | ||
// rank++; | ||
// } | ||
// if (lev.get(srchItem.substring(0, srchItem.length), suggItem.substring(0, srchItem.length)) < 2) { | ||
// rank++; | ||
// } | ||
// } | ||
// } | ||
// if (rank > 0) { | ||
// suggestionsTmp.forEach((item, idx2) => { | ||
// if (item.item === this.suggestionsArr[idx] && item.rank <= rank) { | ||
// delete suggestionsTmp[idx2]; | ||
// } | ||
// }); | ||
// suggestionsTmp.push({ rank, item: this.suggestionsArr[idx] }); | ||
// } | ||
// }); | ||
suggestionsTmp.sort((a, b) => b.rank - a.rank); | ||
@@ -415,0 +442,0 @@ suggestionsTmp.splice(this.maxSuggestionsShown); |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as a}from"./p-6e605cc7.js";(()=>{const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),e(o)})().then(e=>a([["p-8db36953",[[1,"ba-google-map",{apiKey:[1,"api-key"],centerLat:[2,"map-center-lat"],centerLon:[2,"map-center-lon"],zoom:[2,"map-zoom"],mapPins:[16],height:[1,"map-height"],disableControls:[4,"map-disable-controls"],google:[32],map:[32],markers:[32]}]]],["p-278b5b39",[[1,"ba-search-input",{placeholder:[1],suggestions:[1040],formParticipation:[4,"form-participation"],controlName:[1,"control-name"],value:[1025],asyncSearch:[4,"async-search"],maxSuggestionsShown:[2,"max-suggestions-shown"],tokenizedSearchTerms:[32],suggestionsArr:[32],tokenizedSuggestions:[32],suggestionsResults:[32],suggestionsPaneOpen:[32],showSuggestions:[32]},[[0,"blur","handleElementBlur"]]]]],["p-ba85ba80",[[1,"ba-text-input-one",{type:[513],placeholder:[513],value:[1537]}]]]],e)); | ||
import{p as e,b as a}from"./p-6e605cc7.js";(()=>{const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),e(o)})().then(e=>a([["p-8db36953",[[1,"ba-google-map",{apiKey:[1,"api-key"],centerLat:[2,"map-center-lat"],centerLon:[2,"map-center-lon"],zoom:[2,"map-zoom"],mapPins:[16],height:[1,"map-height"],disableControls:[4,"map-disable-controls"],google:[32],map:[32],markers:[32]}]]],["p-9385f12e",[[1,"ba-search-input",{placeholder:[1],suggestions:[1040],formParticipation:[4,"form-participation"],controlName:[1,"control-name"],value:[1025],asyncSearch:[4,"async-search"],maxSuggestionsShown:[2,"max-suggestions-shown"],tokenizedSearchTerms:[32],suggestionsArr:[32],tokenizedSuggestions:[32],suggestionsResults:[32],suggestionsPaneOpen:[32],showSuggestions:[32]},[[0,"blur","handleElementBlur"]]]]],["p-ba85ba80",[[1,"ba-text-input-one",{type:[513],placeholder:[513],value:[1537]}]]]],e)); |
{ | ||
"name": "homebirdscomponents", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Stencil Component Starter", | ||
@@ -28,2 +28,3 @@ "main": "dist/index.cjs.js", | ||
"fast-levenshtein": "^3.0.0", | ||
"fuse.js": "^6.4.1", | ||
"google-maps": "^4.3.2" | ||
@@ -30,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
410510
7480
5
+ Addedfuse.js@^6.4.1
+ Addedfuse.js@6.6.2(transitive)