From b4f4f1c21e0cfb7439b2f7a36b76a8901fe4ab9b Mon Sep 17 00:00:00 2001 From: Tarek Raafat Date: Mon, 26 Apr 2021 15:10:37 +0200 Subject: [PATCH] v9.0.5 => Release Notes for details --- README.md | 4 ++-- dist/js/autoComplete.js | 2 +- dist/js/autoComplete.js.gz | Bin 5636 -> 5634 bytes dist/js/autoComplete.min.js | 2 +- dist/js/autoComplete.min.js.gz | Bin 3864 -> 3863 bytes docs/demo/index.html | 2 +- docs/index.html | 4 ++-- docs/release-notes.md | 5 ++++- package.json | 2 +- src/controllers/listController.js | 5 +++-- 10 files changed, 15 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index cb6bb8b..8e4c03a 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,13 @@ autoComplete.js is a simple pure vanilla Javascript library that's progressively `JS` ```html - + ``` `CSS` ```html - + ``` #### Package Manager diff --git a/dist/js/autoComplete.js b/dist/js/autoComplete.js index d47cf12..7cb9376 100644 --- a/dist/js/autoComplete.js +++ b/dist/js/autoComplete.js @@ -202,7 +202,6 @@ list = createList(config); } config.inputField.setAttribute("aria-expanded", true); - if (config.resultsList.container) config.resultsList.container(list); if (matches.length) { var _loop = function _loop(index) { var item = data.results[index]; @@ -232,6 +231,7 @@ config.resultsList.noResults(list, data.query); } } + if (config.resultsList.container) config.resultsList.container(list); document.addEventListener("click", function (event) { return closeList(config, event.target); }); diff --git a/dist/js/autoComplete.js.gz b/dist/js/autoComplete.js.gz index 5b131f86f7eaf8580877aba494696271f3446962..97eee486f0cfe26f1a623b660a5fb765317aa306 100644 GIT binary patch delta 5439 zcmV-F6~O9*EP^afABzY800000028%5{de0olE3G#Ky<#8yedlKbh|w{i8t#euX&e# zY?Iqx9IqcuK^7Z{)RI(UU!(v1X7D)!fRd8!=C#ihFc=I5^M#R4^?!ekrV*?IM{n=o z|BP78s9)M_)z+@@w>wW<(Uw`eX zM97)!%C=eq`7lJmo>vzq2EcbtWW8C*wzyg%Jj2b&$lfYO_YF<~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EVb)X0w&A>Z;G&xJvz^ zmo@CGUeq0o#kpmcGMYeY(e@+DRC876FP^bimox;o;u^XoxnXCltwFH#(zYyh?XK@G zY?073c{NXAcp=Y@cbm)`O3}+n=6}_sC_U}ocS@wTLoZ>zI`eQG89{Qq^zRpuw~N?2 z4S`tkmlDQeWblRs`gfyAwRX7*cxJhW-ce%j6>1Li>CFW6V+;0mml!<%!X-9qSx41n z{#6Vur#R*f`t3nkbr8{~BQBAG;O@}f>0#~JFKx4`I!P}7j&$!>97+6o2Y93DuXd59=j zTgV4n18{`F*X+g3AeS{8J%8LVKeq{!g6ViYun`H5u9?Og0qT-_vTU^8A zwd;67tkQr6d>e~SN(Y3+nDEJ=?0VsQHNSkUzqga%ixQ~)f_$JThkwQ)CC-VO7X0Vm ztVmLM&|>K1j>l?9^u?-Os=Ym2^)T!j)H@xMrS$D_q;LGwJIY@M?mj#&=V3S+yh5fx z7YcMVjt<)dx$0Up&3kf?q+iWUyicwdG2w=VSgbKWp@x&OyY|G#5mh^WHY+*np0`=t z;ISQmYhxQ6BZ}TW*?)^=dvK^@KKYN<#uOMC?# z7aM+U7LHV#tG<=tN7}XlQd0%Riiu5Iw%YXSG^>KrvCI3!ZsNdtL544=7L4izQFR(7aFaaWPzP?_Rj zp&~PvTu4an595d*4flRF&8{|(U~?=n51BnYM|Hph3bd(r>W}W`pJfZIXv(ITx}LGO rm7lBqhOUr&`+Zyc6-;tWS2cr~E*eaB-`VE)^`8F+{--;DF<$@xhDDry diff --git a/dist/js/autoComplete.min.js b/dist/js/autoComplete.min.js index f85fa1c..7490676 100644 --- a/dist/js/autoComplete.min.js +++ b/dist/js/autoComplete.min.js @@ -1 +1 @@ -var e,t;e=this,t=function(){"use strict";function e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}var o=function(e,t,n){e.dispatchEvent(new CustomEvent(n,{bubbles:!0,detail:t,cancelable:!0}))},a=function(e,t){var n=document.getElementById(e.resultsList.idName);n&&t!==e.inputField&&(n.remove(),e.inputField.removeAttribute("aria-activedescendant"),e.inputField.setAttribute("aria-expanded",!1),o(e.inputField,null,"close"))},l=function(e,t,n){var r=document.getElementById(e.resultsList.idName);if(r?r.innerHTML="":r=function(e){var t=document.createElement(e.resultsList.element);return t.setAttribute("id",e.resultsList.idName),t.setAttribute("class",e.resultsList.className),t.setAttribute("role","listbox"),("string"==typeof e.resultsList.destination?document.querySelector(e.resultsList.destination):e.resultsList.destination()).insertAdjacentElement(e.resultsList.position,t),t}(e),e.inputField.setAttribute("aria-expanded",!0),e.resultsList.container&&e.resultsList.container(r),n.length)for(var s=function(s){var o=t.results[s],a=function(e,t,n){var i=document.createElement(n.resultItem.element);return i.setAttribute("id","".concat(n.resultItem.idName,"_").concat(t)),i.setAttribute("class",n.resultItem.className),i.setAttribute("role","option"),i.innerHTML=e.match,n.resultItem.content&&n.resultItem.content(e,i),i}(o,s,e);a.addEventListener("click",(function(r){var a={event:r,matches:n,input:t.input,query:t.query,results:t.results,selection:i(i({},o),{},{index:s})};e.onSelection&&e.onSelection(a)})),r.appendChild(a)},o=0;o=t.length&&(n=0),n<0&&(n=t.length-1),t[n].setAttribute("aria-selected","true"),e.resultItem.selected.className&&t[n].classList.add(e.resultItem.selected.className)},l=e.resultsList.navigation||function(t){var i=document.getElementById(e.resultsList.idName);if(i)switch(i=i.getElementsByTagName(e.resultItem.element),t.keyCode){case 40:r(t,i,!0);break;case 38:r(t,i,!1);break;case 27:e.inputField.value="",a(e);break;case 13:t.preventDefault(),i[n].click(),a(e);break;case 9:a(e)}else e.inputField.removeEventListener(u,l)};e.inputField.autoCompleteNavigate&&e.inputField.removeEventListener(u,e.inputField.autoCompleteNavigate),e.inputField.autoCompleteNavigate=l,e.inputField.addEventListener(u,l)},d=function(e,t){for(var n=[],i=function(i){var r=e.data.store[i],o=function(s){var o=(s?r[s]:r).toString();if(o){var a="function"==typeof e.searchEngine?e.searchEngine(t,o):function(e,t,n){var i=n.diacritics?t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").normalize("NFC"):t.toLowerCase();if("loose"===n.searchEngine){e=e.replace(/ /g,"");for(var r=[],s=0,o=0;o').concat(a,""):a,s++),r.push(a)}if(s===e.length)return r.join("")}else if(i.includes(e)){var l=new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"i");return e=l.exec(t),n.resultItem.highlight.render?t.replace(e,'').concat(e,"")):t}}(t,o,e);a&&s?n.push({key:s,index:i,match:a,value:r}):a&&!s&&n.push({index:i,match:a,value:r})}};if(e.data.key){var a,l=s(e.data.key);try{for(l.s();!(a=l.n()).done;)o(a.value)}catch(e){l.e(e)}finally{l.f()}}else o()},r=0;r=e.threshold&&n.replace(/ /g,"").length}(t,e,s)?t.dataStore().then((function(e){try{return t.start(r,s),c.call(t)}catch(e){return i(e)}}),i):(a(t),c.call(t));function c(){return n()}}))}},{key:"init",value:function(){var e,t,n,i,r=this;(e=this).inputField.setAttribute("role","combobox"),e.inputField.setAttribute("aria-haspopup",!0),e.inputField.setAttribute("aria-expanded",!1),e.inputField.setAttribute("aria-controls",e.resultsList.idName),e.inputField.setAttribute("aria-autocomplete","both"),this.placeHolder&&this.inputField.setAttribute("placeholder",this.placeHolder),this.hook=(t=function(e){r.compose(e)},n=this.debounce,function(){var e=this,r=arguments;clearTimeout(i),i=setTimeout((function(){return t.apply(e,r)}),n)}),this.trigger.event.forEach((function(e){r.inputField.removeEventListener(e,r.hook),r.inputField.addEventListener(e,r.hook)})),o(this.inputField,null,"init")}},{key:"preInit",value:function(){var e=this;new MutationObserver((function(t,n){var i,r=s(t);try{for(r.s();!(i=r.n()).done;)i.value,e.inputField&&(n.disconnect(),e.init())}catch(e){r.e(e)}finally{r.f()}})).observe(document,{childList:!0,subtree:!0})}},{key:"unInit",value:function(){this.inputField.removeEventListener("input",this.hook),o(this.inputField,null,"unInit")}}])&&e(n.prototype,i),r&&e(n,r),t}()},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).autoComplete=t(); +var e,t;e=this,t=function(){"use strict";function e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}var o=function(e,t,n){e.dispatchEvent(new CustomEvent(n,{bubbles:!0,detail:t,cancelable:!0}))},a=function(e,t){var n=document.getElementById(e.resultsList.idName);n&&t!==e.inputField&&(n.remove(),e.inputField.removeAttribute("aria-activedescendant"),e.inputField.setAttribute("aria-expanded",!1),o(e.inputField,null,"close"))},l=function(e,t,n){var r=document.getElementById(e.resultsList.idName);if(r?r.innerHTML="":r=function(e){var t=document.createElement(e.resultsList.element);return t.setAttribute("id",e.resultsList.idName),t.setAttribute("class",e.resultsList.className),t.setAttribute("role","listbox"),("string"==typeof e.resultsList.destination?document.querySelector(e.resultsList.destination):e.resultsList.destination()).insertAdjacentElement(e.resultsList.position,t),t}(e),e.inputField.setAttribute("aria-expanded",!0),n.length)for(var s=function(s){var o=t.results[s],a=function(e,t,n){var i=document.createElement(n.resultItem.element);return i.setAttribute("id","".concat(n.resultItem.idName,"_").concat(t)),i.setAttribute("class",n.resultItem.className),i.setAttribute("role","option"),i.innerHTML=e.match,n.resultItem.content&&n.resultItem.content(e,i),i}(o,s,e);a.addEventListener("click",(function(r){var a={event:r,matches:n,input:t.input,query:t.query,results:t.results,selection:i(i({},o),{},{index:s})};e.onSelection&&e.onSelection(a)})),r.appendChild(a)},o=0;o=t.length&&(n=0),n<0&&(n=t.length-1),t[n].setAttribute("aria-selected","true"),e.resultItem.selected.className&&t[n].classList.add(e.resultItem.selected.className)},l=e.resultsList.navigation||function(t){var i=document.getElementById(e.resultsList.idName);if(i)switch(i=i.getElementsByTagName(e.resultItem.element),t.keyCode){case 40:r(t,i,!0);break;case 38:r(t,i,!1);break;case 27:e.inputField.value="",a(e);break;case 13:t.preventDefault(),i[n].click(),a(e);break;case 9:a(e)}else e.inputField.removeEventListener(u,l)};e.inputField.autoCompleteNavigate&&e.inputField.removeEventListener(u,e.inputField.autoCompleteNavigate),e.inputField.autoCompleteNavigate=l,e.inputField.addEventListener(u,l)},d=function(e,t){for(var n=[],i=function(i){var r=e.data.store[i],o=function(s){var o=(s?r[s]:r).toString();if(o){var a="function"==typeof e.searchEngine?e.searchEngine(t,o):function(e,t,n){var i=n.diacritics?t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").normalize("NFC"):t.toLowerCase();if("loose"===n.searchEngine){e=e.replace(/ /g,"");for(var r=[],s=0,o=0;o').concat(a,""):a,s++),r.push(a)}if(s===e.length)return r.join("")}else if(i.includes(e)){var l=new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"i");return e=l.exec(t),n.resultItem.highlight.render?t.replace(e,'').concat(e,"")):t}}(t,o,e);a&&s?n.push({key:s,index:i,match:a,value:r}):a&&!s&&n.push({index:i,match:a,value:r})}};if(e.data.key){var a,l=s(e.data.key);try{for(l.s();!(a=l.n()).done;)o(a.value)}catch(e){l.e(e)}finally{l.f()}}else o()},r=0;r=e.threshold&&n.replace(/ /g,"").length}(t,e,s)?t.dataStore().then((function(e){try{return t.start(r,s),c.call(t)}catch(e){return i(e)}}),i):(a(t),c.call(t));function c(){return n()}}))}},{key:"init",value:function(){var e,t,n,i,r=this;(e=this).inputField.setAttribute("role","combobox"),e.inputField.setAttribute("aria-haspopup",!0),e.inputField.setAttribute("aria-expanded",!1),e.inputField.setAttribute("aria-controls",e.resultsList.idName),e.inputField.setAttribute("aria-autocomplete","both"),this.placeHolder&&this.inputField.setAttribute("placeholder",this.placeHolder),this.hook=(t=function(e){r.compose(e)},n=this.debounce,function(){var e=this,r=arguments;clearTimeout(i),i=setTimeout((function(){return t.apply(e,r)}),n)}),this.trigger.event.forEach((function(e){r.inputField.removeEventListener(e,r.hook),r.inputField.addEventListener(e,r.hook)})),o(this.inputField,null,"init")}},{key:"preInit",value:function(){var e=this;new MutationObserver((function(t,n){var i,r=s(t);try{for(r.s();!(i=r.n()).done;)i.value,e.inputField&&(n.disconnect(),e.init())}catch(e){r.e(e)}finally{r.f()}})).observe(document,{childList:!0,subtree:!0})}},{key:"unInit",value:function(){this.inputField.removeEventListener("input",this.hook),o(this.inputField,null,"unInit")}}])&&e(n.prototype,i),r&&e(n,r),t}()},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).autoComplete=t(); diff --git a/dist/js/autoComplete.min.js.gz b/dist/js/autoComplete.min.js.gz index 82c8e2b7355e0d13fffb876c443d6ad8a91515ec..d09a5fcb0cfe0b9dbcea38b432392aed3e305c6a 100644 GIT binary patch literal 3863 zcmV+y59sh8iwFP!000006Rlclo7*;${=UCL&Gjne1g5)_-I*+9n&Y&cq-T7@v6IP6 zyC)AsK`q!6p@3i?k@(;DEdV@pw0p9M51yMS z5$EP2#g_iu(n-fj#-9e}s!&7|IS>8Fr7*9r%l7=Yx67$2s#b2FT0>+E2?ny9%fbj9 zhMmStciV#`o{1{ga%G@6;&GshCW<0f#;dwo#C)|XZo`tK>4}y7?Ih0cG%wSWiG0lU zCCHSfYAryv7NFCzE{dbHTX8Ngvf)dzZYJ_SzQ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;{M|@@l?Ga_avS%0;cnJHU8})1))n$}DV=vJk>a}0G?w44khoxVrE|0R8 z>^BmzjT>Kg6Mj25;WzdG6Bhg?R1)mRZpMT0e`OEYx9IOk8v9Fk=x>L^Z`og|yQxFi zo4il2*iU)n2UY;luf+?ET##bgq9;@C|q`)9-STy>zuaBEKwS_P2I}zc(BFqql(- ztOZWi90U=(8==L9HO9|YU3)DyVcQ-Ma>Q2G*0Jz>@9J(#6?a|NZ4CnR=)aB~jsIK>~Vq*V76$lxfpfsXf3)r*sfV?{dNQ7jG>g$dw`M|%r+V>WDc3&kjHMx~cj zqNrd+c&4k41H0&@AmXuMUT1Xnx8$CCdTTyM&>F42!EnAedLdCt^saze^(VheFLb>S(7?%<>T1EAdplnj89NfvXe5!<0j_Y0UJ?g5a7chI9qd6z4b zf+%`=_{H9}le@1{!?irnJkkEs&3*T-b6zd=vR*b{LVnLTwfja>5`;v1pPriURQKKq zg8>yy1;wI?w$7<{$jorK6Ek;~azp2CXtXyuEH~HsV;)(t6$o!v9M-($(*4DA7*MT_f<`Q?g1|3%PgOuiy!Guc& znVbG4gY+Sg?R{0A$_lts^gA4nFybM7uid_hF#aY2>jpX#H;jm_3i^^ms-chMRXwpr z_z&al(Q9?b$#)@n$R?q*?htsl#=}0?_##1$#xdKUwh(PFu8kS@`4eD`bn{b|CK=x> zwXxN3c<5I<3q7q-aQHuI7@8B4JCN4>?BUS=P5ELv_K&bxh5&VFgUeD+c=-+|8+VVH aSg*k-XUW!GGHpBhxBme@kgG~!C;$MAP=q4@ diff --git a/docs/demo/index.html b/docs/demo/index.html index 2cf1cdb..41654b2 100644 --- a/docs/demo/index.html +++ b/docs/demo/index.html @@ -151,7 +151,7 @@

mode

- + diff --git a/docs/index.html b/docs/index.html index ab51030..322291f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -192,7 +192,7 @@ mustache: { data: ["../package.json", { minVersion: "9.0", - version: "9.0.4" + version: "9.0.5" }] } } @@ -206,7 +206,7 @@ - + \ No newline at end of file diff --git a/docs/release-notes.md b/docs/release-notes.md index 5339a15..35d74c1 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -34,7 +34,10 @@ For more information on semantic versioning, please visit . *** -### v9.0.4 ✨ +### v9.0.5 ✨ + - 🔧 Fixed: `resultsList.container` hierarchy comes after list rendering instead of before + +### v9.0.4 - 🔧 Fixed: `resultsList.container` is removed on second input (Thanks 👍 @folknor) #206 ### v9.0.3 diff --git a/package.json b/package.json index 2c4f687..b262959 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tarekraafat/autocomplete.js", - "version": "9.0.4", + "version": "9.0.5", "description": "Simple autocomplete pure vanilla Javascript library.", "keywords": [ "simple", diff --git a/src/controllers/listController.js b/src/controllers/listController.js index 22f9d29..119ddd5 100644 --- a/src/controllers/listController.js +++ b/src/controllers/listController.js @@ -48,8 +48,6 @@ const generateList = (config, data, matches) => { } // Set list to opened config.inputField.setAttribute("aria-expanded", true); - // If custom container is set pass the list - if (config.resultsList.container) config.resultsList.container(list); // Check if there are results if (matches.length) { @@ -87,6 +85,9 @@ const generateList = (config, data, matches) => { config.resultsList.noResults(list, data.query); } } + // If custom container is set pass the list + if (config.resultsList.container) config.resultsList.container(list); + /** * @desc * Listen for all `click` events in the document