From f300c254653613f9d66d95bff6af8e28030167c4 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sun, 14 Aug 2016 17:32:08 +0100 Subject: [PATCH] Favicons + update read me --- README.md | 4 ++-- assets/images/android-chrome-192x192.png | Bin 0 -> 6751 bytes assets/images/apple-touch-icon.png | Bin 0 -> 1739 bytes assets/images/browserconfig.xml | 9 ++++++++ assets/images/favicon-16x16.png | Bin 0 -> 574 bytes assets/images/favicon-32x32.png | Bin 0 -> 887 bytes assets/images/favicon.ico | Bin 0 -> 15086 bytes assets/images/favicon.png | Bin 0 -> 6153 bytes assets/images/manifest.json | 12 ++++++++++ assets/images/mstile-150x150.png | Bin 0 -> 3067 bytes assets/images/safari-pinned-tab.svg | 28 +++++++++++++++++++++++ assets/scripts/dist/choices.min.js | 2 +- index.html | 10 ++++++++ 13 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 assets/images/android-chrome-192x192.png create mode 100644 assets/images/apple-touch-icon.png create mode 100644 assets/images/browserconfig.xml create mode 100644 assets/images/favicon-16x16.png create mode 100644 assets/images/favicon-32x32.png create mode 100644 assets/images/favicon.ico create mode 100644 assets/images/favicon.png create mode 100644 assets/images/manifest.json create mode 100644 assets/images/mstile-150x150.png create mode 100644 assets/images/safari-pinned-tab.svg diff --git a/README.md b/README.md index cbf69f6..ea3a055 100644 --- a/README.md +++ b/README.md @@ -207,9 +207,9 @@ Pass an array of objects: ### search Type: `Boolean` Default: `true` -Input types affected: `text`, `select-one`, `select-multiple` +Input types affected: `select-one` -Usage: Whether a search input should display allowing a user to filter choices. +Usage: Whether a user should be allowed to search avaiable choices. Note that multiple select boxes will always show search inputs. ### flip Type: `Boolean` Default: `true` diff --git a/assets/images/android-chrome-192x192.png b/assets/images/android-chrome-192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..5ee80a7ac9547f63cc5ec5fb5cef08ddc8db2b1b GIT binary patch literal 6751 zcmZ{Ic|4R|*zg%MnX!*0`!XcSV;Qmxk7W#ntWiCP5RD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ch-icon.png b/assets/images/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a6c4f84a342c74c584ce8aea80826600bf36438a GIT binary patch literal 1739 zcmZ{jX;2e(8pi*UatKtE!%(gUSrKq{0=q(DFn3TBIopin{xf`S+jtSExJQwjmA z)gp%?@u+JHRdKE16oMdU0tpETA%r9(0!bhVZhxd8rd1sz^KfLp+JRT4K z)ZD=w0PtySOk|?L+y5Lhh(XP5HVg_r$vTWU48V(83vIfwA;U6a5)lAg{wn}wHvmu@ zR%Jo}3Vi@rN&_IM4ghF=BOxIKfGs1(k0PTsH#fEVO{GpRQfucG>PeaMon*ajN!rL4 zSI)0s8A8-FA33=YH9j9O%-T1^-2I;6Oq|)-N4M&wnfFYac2kYJs776sEu9pdese>o zpW9H6NfiW<3@?yWb5;tO!qZeiY_sQXQ;gB@p+#QvoPX}^*fqbHx<%Feg1LHsefi$@AM~K)B=X!IGMAe*7|;! zrOA~J{q#VYIg2V|Mo!c|WbRA$=_Dq{}Q$t7R zj*>X1DBK+S;;jYIBf;vM71{9G#>~1(pwdK)v6H5_c{74;v3ydd;43xm@0lqS-nX+K z8~9?XTxs7&-#;{~(&-)hXJ$84y^{3@i;|#`xgEWX^|6tMk;M!VQx))Ig45s{ znQrqkM0R}7sL#fb2P(FH$meBV|Il4~&$ueDJ>M2BP2d{Gvx7ZL57F*T33SlTtHtPU z#al&~2_&Q1_r3jpiH0rxGE2TLvof7pC$ZkA3X&3zkC@Ukr{6aDDv<0n5KW?OdLIg@X`JYmOUn|C}jN%b(& zCqJ~lID9Taes1>!JmG~0;rAG0!Xu<@YI2KF>C>aOsYOY~gcNAhGT)P=h#dQRIn;Qu zt~edrSx(0E?62<58^rG&?ZaF&c1cx*+v}RGYg@m!j)wn@L#~XH_7jb{z1^P@hChCv^(PNviw3@EpcL#<_@ zmk7M5e?ge8EQLLVJBhA;E_940lHKxOxyCp--+)_vcgD1QVrNA<^0LjtT-(}>s_oJ6 zkOBOIP-yg_YyX5ZA0M+$HE%tquHK3tL|#$(c~`q6r5!vfY(bYs7!#s4zUVdSvBXk% z776mISUVx*rxxK)&pb(OsJ1KE&cy3GPYd>(P0y#K9TV<72-+>Lrq)aUu*fqNup6oH=6DT> zr>P!z9CoZ|K{|Z)7W0WtDXjBv2+l6d{L+^>^`^aU?P|eL&9xpie!6k_y_I8w{#1>q ziPiN>y{@A6L72-54J8tZbA$h_4G0Lcr#0ndjiLSrI5Kq@#Oh{YnPlEpVgPqHHtHl6 zm5$8}$|%S*81VD)J?P~V=;iB=^bHL13kdS_-|OQSp0Bwa?H#3rU+g5?+Fp|f){Vc3%VOjve4HUog-My}M-?84U`9>d2*Mq~Mj0ODrh zonc|)W)pYY7GeX7Ec5S2LEK&;VIy?P5OI{~L^K^Ki)lXM4VIugu+oSx?ifyh*r@o( J)`+z7KLEQNkWc^s literal 0 HcmV?d00001 diff --git a/assets/images/browserconfig.xml b/assets/images/browserconfig.xml new file mode 100644 index 0000000..011a5dd --- /dev/null +++ b/assets/images/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #ffffff + + + diff --git a/assets/images/favicon-16x16.png b/assets/images/favicon-16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..8a14f87d78b6847b282a969ebac14f78ae5d2874 GIT binary patch literal 574 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLl<6e(pbstU$g(vPY0F z14ES>14Ba#1H&(%P{RubhEf9thF1v;3|2E37{m+a>$qswaksN_uEeD?k;&(C>oKxK?c-tI0k zb66bNfgJV{PhVH|2ONAt(vmk0%$x!git==E43W5;dcsqvK|z4!VB5sd7zf9L|NmcJ zEqiUPP(YMg^4!g7LTefR2go%lI!LfgR7^^nF;PNDrulbsYQzSkH8&*8-tbr(IlEcz zs~4HGHMU&-SWjL2+IjkCHN~T{E~%sgZBZ?8jVMV;EJ?LWE=mPb3`PcqX1WFzx`rkp zh89*v=2k|g+6G2e1_o2b-v2?-kei>9nO2Eg!xQgt2cU-Vs*s41pu}>8f};Gi%$!t( zlFEWqh0KDIWCn(cIgdZ_a1@4VXq@stea7=?5CgL^w_Y;0u(GiCWD#az1(ybs!zs+l tn?n>%-?(z($eANDN7zp{cr5VJV|XPlSn|oqbSlsa22WQ%mvv4FO#l+d&PV_N literal 0 HcmV?d00001 diff --git a/assets/images/favicon-32x32.png b/assets/images/favicon-32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..7c4a93a67ad495eef1876f6a70a6f3833f089981 GIT binary patch literal 887 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10;&y;fh%3Y1t3W2h-YX1y zh(GyKmVATZ#?_-i~k6}@?G0^Q9q|`Jbv@zkKbP(T|Tg)C+}~7@k_2A!*4Q2WCzI3O)98 zaSX9I-FnGgsL6rB<)T~2g}}6sGfC$pH#bE-_-Fo!A#7{??fjb#KK<&G+Gcun`&^sk z<*7Ye@a2?D72!f#wkMxhcSi(W^j{USh5M(>si_?yD;I^OFNkwKoOmE}!Of%vS6dcJ z1hCx_T-(dXE?Z*xV$pF&elvEnUou||A0#lGY;1Yt@R!}0uT7%Rpy_a9vmtx3kHw6H zQwK$i`O;<-8yrtM`Ryr_b~j^o>(mc$R0`{(ule*3C=y73nMNxe)AlS+~VfZkOtag8WRNi0dVN-jzT zQVd20hGx137P^KeA%+%KM&?#VrrHKZRt5%B#oqrx(U6;;l9^VCTf-CYa0j4<@T!oA zlAy$Lg@U5|w9K4Tg_6pGRE5lfl4J&kiaC!z@o*G|X=t4CKYhmYX%GXmGPhnbx3IFX z_hb=fVFi~4lfx;@%9}$JPT#n4;>ejJGDp}?H+U@Y(qnifE?Dx($#g2v3I~swaaYVNRF^5&2LC z&4XZM7<8egm&_TCG+n3+qM4%==@d~JWmnBh&h+~^XAOsg#@X%@>#PmGS^M&R-~Yew zXRo~{gq|=z^z{YWO4zj`gn-_;ZouPj{>-~ugy~lfi-nVD$U++0y`{VZ4`}-Mhf4xs; z?0*99J}<=mkz1?xpECBZ_un)2uXmrzayxFKU%lt_+!cMtR_{6fc8LD<-c9`s(O0{z z-v5Disx^26*>qqZ7K6}OW)B6t@Z-2dim9c-lf10s>y^m$=U+=z4 zi04CYt=^x_*uUN%g&coF=vnV~Lyq@gJ?s4@_!DwF_VujyKFIMNrsqETaF@~UhupUR ze!cS!;1ay=&Cvf|z4MNEKHhg`=znK@lo$I9c;B3%|IK=Lz`O6ab36Xm&$>V3e>MJ( zWwZ`@UESn=1=IG$<+2a-%2zA11LyGqrU$|AK!#u#-UPoJ`4WDFKfrt5|M^?P+G?n! zrrLVY%P{CokAr%S{#)AvW1+|8yj#7L*j~5>*1#R`5IhYp!rSl>9DwiOXYjsw0_+>m zk2vl;mlm{&9ZEZgz8^LyFmjP$bY{Z6X_gE04<7T z;WZco-;Ym%&!`6*IPN@`8Dp$D=32vA)?B8BTG2}t3X?gWob--Eph??N5ypYeZ8e0K5PWnFRHc`h@? zSaZy^hPA9|Z8esvskYrTHF^}PbQ83~;*Jc}v($DTeM3X`Q`jw0fw_JP{@1K^!1Hpr zAD)2`*awHeZ|z)faol+>GsakR%-slXr=rKNIp)4}9=TD=-1kc4n_K1_HMh()#@sU3 zNPp*eoW|`@w2jAk(YzRMzUN<@F4~&=TZw#g?VB#D8{^HjPc}{$ZOwh9M83IOO5~e6 p09)a8(9aZj&U#$M{p+~%TxN{1TVbF^pJ#Qh*Rb{K@ZZzs{R_iA#isxO literal 0 HcmV?d00001 diff --git a/assets/images/favicon.png b/assets/images/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..bfc463c14c6a219129bf172f0712d45001162d0d GIT binary patch literal 6153 zcmZ8lc{r5s*B_4uqp?gBMwXE=lBEen*~U^#V~G}tn6j6Bi3*t^OIb%4WQkJRl;vwL z6Up9`6lJN%E@UV9-Q)Xv-}k!SKjxb2e(rP5bJou}=ZQUTZp^<;d>aCR;3t_FS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}@#TUC|qME9j^mj>MPk~qr9m~6c%0#*B*C)I! zH}vU4kI{)JQFYOF@4-J-4wzupPhTMvu-XNtanexY<{exqJh)r#$h3=S#tE>Chf_w% zL|ID61*1G;W?7|9_lY4SiUTQuXD{vzrA5W(+*!H$k&*r zM_+-tarNnAm#?33Sruh_uV1NAn&ZPiRt3#i;yl#(&tg|$Nru zwBjxsjr0%?_qDs(VVC;DhHx1X83LyXr##oX)=*1s>o@Py?tq&2O2 zFQ)EHxxysYre65N2UF|Qr^wOi0YcXD!v$A@^dnfV69&(vplkSVeHs(~LAd02$=Ki) zSxjGvsK~)7jaOGIM|<8<8dgP3`$=aU^v(xua9#VoV1SqCs!a(t$f%=5PC0k%>%MUz z)D-SZi=1=D3;G9r48m=X#bsGvxiFWI{kcTZI;YXdImmW~RZSkAG(lF?%H+K2v@ zGM-Quy1J`-&bW>g9U2mXuGZzW7ZiJWZ8DBuD!2T+-zV_p) zzPMpepfQ3O@YZi8*=vQ%c6Ii)C;!41-KX9TcU04lY5%>gi!M-&X&w(f=%&2C_ogmR zaqYR1;w3BhyLO+h>YNKTRePu{8~o%Sk4MT`d!>uw_hujK7|l;2)JAS^{C;w+cAxyry@}Gr-C&%i;`Jp~xn<~v+4}me#Hy*Wf)i+A_9p@fp_S`_2h7T< T7W-lFZ6858Vs7-zfI|BZkHLv@ literal 0 HcmV?d00001 diff --git a/assets/images/manifest.json b/assets/images/manifest.json new file mode 100644 index 0000000..572d844 --- /dev/null +++ b/assets/images/manifest.json @@ -0,0 +1,12 @@ +{ + "name": "Choices.js", + "icons": [ + { + "src": "\/assets\/images\/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image\/png" + } + ], + "theme_color": "#ffffff", + "display": "standalone" +} diff --git a/assets/images/mstile-150x150.png b/assets/images/mstile-150x150.png new file mode 100644 index 0000000000000000000000000000000000000000..9e7cf45cca13cdf0a2f76490f1484b42887061cb GIT binary patch literal 3067 zcmb_ec{r478-E#DvTuWo$y%8thL{w|(pbXbn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c`|^DtKdj?;1G{ypJ#Po~%AN(8Xk~r*Ni#uq{35(9hgh#aRK$9SuFS#fSvUxkCyP6! z7PHm9a$Yk`R79(aTMbwM6BR|AY?X>FTI;luNecqY)olH=$aA<~ zoiqiC7NF%=`0rYKIH^vWh)`VF+{LL5@%3pjxSnCOhzmJwr<@+?M^(LBmNg&{mAsz9 zXgQ5x{-?NyIU>#@E`NlvMDsM=h{@%s{;qgIXIQQ~8HlhorTIzJ4!%lmvPXR5AHM5X zE^YFS{oDjB{cmEloZrt}{aTy>@}gVFVd3eAFmgrICi_DDe%{v?DMAYO{R`tU;8uc1 zGkut!zz%4-6r93o4lj8UP-oi-(_k-jX4)|?=LkDga5|E>6Yvr2Kzx^x0RT@ z!Z+-KOILkwiy7@#2qui`zsfXIaR>qbYDY(Zb?w3adVxZfoE$%)DaPP)<&Cf$6OO3^ zTz8FA%bDug!^;H<`aBgDpN0qd<|Nkk)L)|>jtt|0RxNY}vTkJQLR(I*wa+pGNOATs zpxn&$<{ILOMMz~4Q}>BuUcm6)WQ%o+mf&to?J(Ds)rx>rCeAI^)hTy)fc;}SLUBPb zZ~y6$nA$4S7F1wnz*CP zxdnNkEa~i88zahq%a~|l)BDHil^czpQA(%98EVb6D3svm+`@Aql{99kn=#^^4pVh9 z_m_mER1eimAKAN|M~*8=Hy|eEm*9zWf@f8u%wt4j@v&lXaVOYt?8Jj0%X9eXzB}`VbPm+%4XLu6c z>ms^Ur^yaVsOdt_NHh7#rwow2`)WyKlj>9MIh4Pm#6HFlwF(A<2`y#rFb!bnn + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + diff --git a/assets/scripts/dist/choices.min.js b/assets/scripts/dist/choices.min.js index f9a8e9c..008de7d 100644 --- a/assets/scripts/dist/choices.min.js +++ b/assets/scripts/dist/choices.min.js @@ -1,4 +1,4 @@ -/*! choices.js v1.1.0 | (c) 2016 Josh Johnson | https://github.com/jshjohnson/Choices#readme */ +/*! choices.js v1.1.1 | (c) 2016 Josh Johnson | https://github.com/jshjohnson/Choices#readme */ !function(e){function t(n){if(i[n])return i[n].exports;var s=i[n]={exports:{},id:n,loaded:!1};return e[n].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var i={};return t.m=e,t.c=i,t.p="/assets/scripts/dist/",t(0)}([function(e,t,i){e.exports=i(1)},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t1)for(var r=1;r=i;return o?this.containerOuter.classList.add(this.config.classNames.flippedState):this.containerOuter.classList.remove(this.config.classNames.flippedState),this}},{key:"hideDropdown",value:function(){var e=this.containerOuter.classList.contains(this.config.classNames.flippedState);return this.containerOuter.classList.remove(this.config.classNames.openState),this.containerOuter.setAttribute("aria-expanded","false"),this.dropdown.classList.remove(this.config.classNames.activeState),e&&this.containerOuter.classList.remove(this.config.classNames.flippedState),this}},{key:"toggleDropdown",value:function(){var e=this.dropdown.classList.contains(this.config.classNames.activeState);return e?this.hideDropdown():this.showDropdown(),this}},{key:"getValue",value:function(){var e=this,t=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],i=this.store.getItemsFilteredByActive(),n=[];return i.forEach(function(i){"text"===e.passedElement.type?n.push(t?i.value:i):i.active&&n.push(t?i.value:i)}),"select-one"==this.passedElement.type?n[0]:n}},{key:"setValue",value:function(e){var t=this;if(this.initialised===!0){var i=[].concat(s(e));i.forEach(function(e,i){if((0,c.isType)("Object",e)){if(!e.value)return;"text"!==t.passedElement.type?t._addChoice(!0,!1,e.value,e.label,-1):t._addItem(e.value,e.label,e.id)}else(0,c.isType)("String",e)&&("text"!==t.passedElement.type?t._addChoice(!0,!1,e,e,-1):t._addItem(e))})}return this}},{key:"setValueByChoice",value:function(e){var t=this;return"text"!==this.passedElement.type&&!function(){var i=t.store.getChoices();(0,c.isType)("Array",e)||(e=[e]),e.forEach(function(e,n){var s=i.find(function(t){return t.value===e});s?s.selected?console.warn("Attempting to select choice already selected"):t._addItem(s.value,s.label,s.id):console.warn("Attempting to select choice that does not exist")})}(),this}},{key:"setChoices",value:function(e,t,i){var n=this;if(this.initialised===!0&&("select-one"===this.passedElement.type||"select-multiple"===this.passedElement.type)){if(!(0,c.isType)("Array",e)||!t)return;e&&e.length&&(this.containerOuter.classList.remove(this.config.classNames.loadingState),e.forEach(function(e,s){if(e.choices){var o=0===s;n._addGroup(e,s,o)}else n._addChoice(!!e.selected&&e.selected,!!e.disabled&&e.disabled,e[t],e[i])}))}return this}},{key:"clearStore",value:function(){return this.store.dispatch((0,a.clearAll)()),this}},{key:"clearInput",value:function(){return this.input.value&&(this.input.value=""),"select-one"!==this.passedElement.type&&(this.input.style.width=(0,c.getWidthOfInput)(this.input)),this}},{key:"disable",value:function(){return this.passedElement.disabled=!0,this.initialised&&(this.containerOuter.classList.contains(this.config.classNames.disabledState)||(this._removeEventListeners(),this.passedElement.setAttribute("disabled",""),this.input.setAttribute("disabled",""),this.containerOuter.classList.add(this.config.classNames.disabledState),this.containerOuter.setAttribute("aria-disabled","true"))),this}},{key:"enable",value:function(){return this.passedElement.disabled=!1,this.initialised&&this.containerOuter.classList.contains(this.config.classNames.disabledState)&&(this._addEventListeners(),this.passedElement.removeAttribute("disabled"),this.input.removeAttribute("disabled"),this.containerOuter.classList.remove(this.config.classNames.disabledState),this.containerOuter.removeAttribute("aria-disabled")),this}},{key:"ajax",value:function(e){var t=this;if(this.initialised===!0&&("select-one"===this.passedElement.type||"select-multiple"===this.passedElement.type)){if(this.containerOuter.classList.add(this.config.classNames.loadingState),this.containerOuter.setAttribute("aria-busy","true"),"select-one"===this.passedElement.type){var i=this._getTemplate("item",{id:-1,value:"Loading",label:this.config.loadingText,active:!0});this.itemList.appendChild(i)}else this.input.placeholder=this.config.loadingText;var n=function(e,i,n){(0,c.isType)("Array",e)&&i&&(e&&e.length&&(t.containerOuter.classList.remove(t.config.classNames.loadingState),"select-multiple"===t.passedElement.type&&(t.input.placeholder=t.config.placeholderValue||t.passedElement.getAttribute("placeholder")),e.forEach(function(e,s){0===s&&"select-one"===t.passedElement.type?t._addChoice(!0,!1,e[i],e[n]):t._addChoice(!1,!1,e[i],e[n])})),t.containerOuter.removeAttribute("aria-busy"))};e(n)}return this}},{key:"_triggerChange",value:function(e){if(e){if(this.config.callbackOnChange){var t=this.config.callbackOnChange;(0,c.isType)("Function",t)?t(e,this.passedElement):console.error("callbackOnChange: Callback is not a function")}"select-one"===this.passedElement.type&&(this.focusAndHideDropdown=!0,this.containerOuter.focus())}}},{key:"_handleButtonAction",value:function(e,t){var i=this;e&&t&&this.config.removeItems&&this.config.removeItemButton&&!function(){var n=t.parentNode.getAttribute("data-id"),s=e.find(function(e){return e.id===parseInt(n)});i._removeItem(s),i._triggerChange(s.value)}()}},{key:"_handleItemAction",value:function(e,t){var i=this,n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];e&&t&&this.config.removeItems&&"select-one"!==this.passedElement.type&&!function(){var s=t.getAttribute("data-id");e.forEach(function(e){e.id!==parseInt(s)||e.highlighted?n||e.highlighted&&i.unhighlightItem(e):i.highlightItem(e)}),document.activeElement!==i.input&&i.input.focus()}()}},{key:"_handleChoiceAction",value:function(e,t){if(e&&t){var i=t.getAttribute("data-id"),n=this.store.getChoiceById(i);if(n&&!n.selected&&!n.disabled){var s=(this.dropdown.classList.contains(this.config.classNames.activeState),!0);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&"select-multiple"===this.passedElement.type&&(s=!1),s&&(this._addItem(n.value,n.label,n.id),this._triggerChange(n.value)),"select-one"===this.passedElement.type&&(this.canSearch&&(this.input.value=""),this.isSearching=!1,this.store.dispatch((0,a.activateChoices)(!0)),this.hideDropdown())}}}},{key:"_handleBackspace",value:function(e){if(this.config.removeItems&&e){var t=e[e.length-1],i=e.some(function(e){return e.highlighted===!0});this.config.editItems&&!i&&t?(this.input.value=t.value,this._removeItem(t),this._triggerChange(t.value)):(i||this.highlightItem(t),this.removeHighlightedItems())}}},{key:"_canAddItem",value:function(e,t){var i=!0,n='Press Enter to add "'+t+'"';if("select-multiple"!==this.passedElement.type&&"text"!==this.passedElement.type||this.config.maxItemCount>0&&this.config.maxItemCount<=this.itemList.children.length&&(i=!1,n="Only "+this.config.maxItemCount+" values can be added."),"text"===this.passedElement.type&&this.config.addItems){var s=!e.some(function(e){return e.value===t});this.config.regexFilter&&(i=this._regexFilter(t)),this.config.duplicateItems!==!1||s||(i=!1,n="Only unique values can be added.")}return{response:i,notice:n}}},{key:"_searchChoices",value:function(e){var t=this;if(e&&this.input===document.activeElement){var i=this.store.getChoices(),n=i.some(function(e){return e.active!==!0});if(e&&e.length>1){var s=function(){var i=(0,c.isType)("String",e)?e.trim():e,n=(0,c.isType)("String",t.currentValue)?t.currentValue.trim():t.currentValue;if(i.length>=1&&i!==n+" "){var s=t.store.getChoicesFilteredBySelectable(),o=i,r=(0,c.isType)("Array",t.config.sortFields)?t.config.sortFields:[t.config.sortFields],l=new h.default(s,{keys:r,shouldSort:!0,include:"score"}),u=l.search(o);t.currentValue=i,t.highlightPosition=0,t.isSearching=!0,t.store.dispatch((0,a.filterChoices)(u))}};s()}else n&&(this.isSearching=!1,this.store.dispatch((0,a.activateChoices)(!0)))}}},{key:"_addEventListeners",value:function(){document.addEventListener("keyup",this._onKeyUp),document.addEventListener("keydown",this._onKeyDown),document.addEventListener("click",this._onClick),document.addEventListener("touchmove",this._onTouchMove),document.addEventListener("touchend",this._onTouchEnd),document.addEventListener("mousedown",this._onMouseDown),document.addEventListener("mouseover",this._onMouseOver),this.passedElement.type&&"select-one"===this.passedElement.type&&(this.containerOuter.addEventListener("focus",this._onFocus),this.containerOuter.addEventListener("blur",this._onBlur)),this.input.addEventListener("input",this._onInput),this.input.addEventListener("paste",this._onPaste),this.input.addEventListener("focus",this._onFocus),this.input.addEventListener("blur",this._onBlur)}},{key:"_removeEventListeners",value:function(){document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("keydown",this._onKeyDown),document.removeEventListener("click",this._onClick),document.removeEventListener("touchmove",this._onTouchMove),document.removeEventListener("touchend",this._onTouchEnd),document.removeEventListener("mousedown",this._onMouseDown),document.removeEventListener("mouseover",this._onMouseOver),this.passedElement.type&&"select-one"===this.passedElement.type&&(this.containerOuter.removeEventListener("focus",this._onFocus),this.containerOuter.removeEventListener("blur",this._onBlur)),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("paste",this._onPaste),this.input.removeEventListener("focus",this._onFocus),this.input.removeEventListener("blur",this._onBlur)}},{key:"_onKeyDown",value:function(e){if(e.target===this.input||this.containerOuter.contains(e.target)){var t=e.target,i=e.ctrlKey||e.metaKey,n=46,s=8,o=13,r=65,l=27,h=38,u=40,d=this.store.getItemsFilteredByActive(),p=(this.store.getChoicesFilteredByActive(),this.input===document.activeElement),f=this.dropdown.classList.contains(this.config.classNames.activeState),v=this.itemList&&this.itemList.children,m=String.fromCharCode(e.keyCode);switch("text"!==this.passedElement.type&&/[a-zA-Z0-9-_ ]/.test(m)&&!f&&this.showDropdown(),this.canSearch=this.config.search,e.keyCode){case r:i&&v&&(this.canSearch=!1,this.config.removeItems&&!this.input.value&&this.input===document.activeElement&&this.highlightAll(this.itemList.children));break;case o:if("text"===this.passedElement.type&&t.value){var g=this.input.value,y=this._canAddItem(d,g);y.response&&(this.toggleDropdown(),this._addItem(g),this._triggerChange(g),this.clearInput(this.passedElement))}if(t.hasAttribute("data-button")&&this._handleButtonAction(d,t),f){var b=this.dropdown.querySelector("."+this.config.classNames.highlightedState);if(b){var E=b.getAttribute("data-value"),_=b.innerHTML,w=b.getAttribute("data-id"),I=this._canAddItem(d,E);I.response&&(this._addItem(E,_,w),this._triggerChange(E),this.clearInput(this.passedElement)),"select-one"===this.passedElement.type&&(this.isSearching=!1,this.store.dispatch((0,a.activateChoices)()),this.toggleDropdown())}}else"select-one"===this.passedElement.type&&(e.preventDefault(),this.showDropdown(),this.canSearch&&this.input.focus());break;case l:f&&this.toggleDropdown();break;case u:case h:if(f||"select-one"===this.passedElement.type){f||(this.showDropdown(),this.canSearch&&this.input.focus());var S=this.dropdown.querySelector("."+this.config.classNames.highlightedState),A=e.keyCode===u?1:-1,T=void 0;this.canSearch=!1,T=S?(0,c.getAdjacentEl)(S,"[data-choice-selectable]",A):this.dropdown.querySelector("[data-choice-selectable]"),T&&((0,c.isScrolledIntoView)(T,this.choiceList,A)||this._scrollToChoice(T,A),this._highlightChoice(T)),e.preventDefault()}break;case n:case s:p&&!e.target.value&&"select-one"!==this.passedElement.type&&(this._handleBackspace(d),e.preventDefault())}}}},{key:"_onKeyUp",value:function(e){if(e.target===this.input)if("text"===this.passedElement.type){var t=this.dropdown.classList.contains(this.config.classNames.activeState),i=this.input.value;if(i){var n=this.store.getItemsFilteredByActive(),s=this._canAddItem(n,i);if(s.notice){var o=this._getTemplate("notice",s.notice);this.dropdown.innerHTML=o.outerHTML}s.response===!0?t||this.showDropdown():!s.notice&&t&&this.hideDropdown()}else t&&this.hideDropdown()}else{var r=46,c=8;e.keyCode!==r&&e.keyCode!==c||e.target.value?this.canSearch&&this._searchChoices(this.input.value):"text"!==this.passedElement.type&&this.isSearching&&(this.isSearching=!1,this.store.dispatch((0,a.activateChoices)(!0)))}}},{key:"_onInput",value:function(e){if("select-one"!==this.passedElement.type)if(this.config.placeholder&&(this.config.placeholderValue||this.passedElement.getAttribute("placeholder"))){var t=this.config.placeholderValue||this.passedElement.getAttribute("placeholder");this.input.value&&this.input.value.length>=t.length/1.25&&(this.input.style.width=(0,c.getWidthOfInput)(this.input))}else this.input.style.width=(0,c.getWidthOfInput)(this.input)}},{key:"_onTouchMove",value:function(e){this.wasTap===!0&&(this.wasTap=!1)}},{key:"_onTouchEnd",value:function(e){var t=e.target||e.touches[0].target;this.wasTap===!0&&this.containerOuter.contains(t)&&(t!==this.containerOuter&&t!==this.containerInner||"select-one"===this.passedElement.type||("text"===this.passedElement.type?document.activeElement!==this.input&&this.input.focus():(this.showDropdown(),this.canSearch&&document.activeElement!==this.input&&this.input.focus())),e.stopPropagation()),this.wasTap=!0}},{key:"_onMouseDown",value:function(e){var t=e.target;if(this.containerOuter.contains(t)&&t!==this.input){var i=this.store.getItemsFilteredByActive(),n=!!e.shiftKey;t!==this.input&&e.preventDefault(),t.hasAttribute("data-button")?this._handleButtonAction(i,t):t.hasAttribute("data-item")?this._handleItemAction(i,t,n):t.hasAttribute("data-choice")&&this._handleChoiceAction(i,t)}}},{key:"_onClick",value:function(e){var t=e.target,i=this.dropdown.classList.contains(this.config.classNames.activeState);if(this.containerOuter.contains(t)){!!e.shiftKey;i?"select-one"===this.passedElement.type&&t!==this.input&&this.hideDropdown():"text"===this.passedElement.type?document.activeElement!==this.input&&this.input.focus():(this.showDropdown(),this.canSearch&&document.activeElement!==this.input&&this.input.focus())}else{var n=this.store.getItemsFilteredByActive(),s=n.some(function(e){return e.highlighted===!0});s&&this.unhighlightAll(),this.containerOuter.classList.remove(this.config.classNames.focusState),i&&this.toggleDropdown()}}},{key:"_onMouseOver",value:function(e){(e.target===this.dropdown||(0,c.findAncestor)(e.target,this.config.classNames.listDropdown))&&e.target.hasAttribute("data-choice")&&this._highlightChoice(e.target)}},{key:"_onPaste",value:function(e){e.target===this.input&&(this.config.paste||e.preventDefault())}},{key:"_onFocus",value:function(e){var t=e.target||e.touches[0].target,i=this.dropdown.classList.contains(this.config.classNames.activeState);t!==this.input||i?"text"===this.passedElement.type||t!==this.containerOuter&&t!==this.containerInner||i||(this.containerOuter.classList.add(this.config.classNames.focusState),this.showDropdown(),"select-one"===this.passedElement.type&&t===this.containerOuter?(this.focusAndHideDropdown||this.input.focus(),this.focusAndHideDropdown=!1):this.canSearch&&this.input.focus()):(this.containerOuter.classList.add(this.config.classNames.focusState),"select-one"!==this.passedElement.type&&"select-multiple"!==this.passedElement.type||this.showDropdown())}},{key:"_onBlur",value:function(e){if(e.target===this.input||e.target===this.containerOuter&&"select-one"===this.passedElement.type){var t=this.store.getItemsFilteredByActive(),i=this.dropdown.classList.contains(this.config.classNames.activeState),n=t.some(function(e){return e.highlighted===!0});this.containerOuter.classList.remove(this.config.classNames.focusState),i&&(e.target===this.input||e.target===this.containerOuter&&!this.canSearch)&&this.hideDropdown(),n&&this.unhighlightAll()}}},{key:"_regexFilter",value:function(e){if(e){var t=this.config.regexFilter,i=new RegExp(t.source,"i");return i.test(e)}}},{key:"_scrollToChoice",value:function(e,t){var i=this;if(e){var n=this.choiceList.offsetHeight,s=e.offsetHeight,o=e.offsetTop+s,r=this.choiceList.scrollTop+n,a=t>0?this.choiceList.scrollTop+o-r:e.offsetTop,c=function l(e,t,n){var s=!1,o=void 0,r=void 0,a=4;n>0?(o=(t-i.choiceList.scrollTop)/a,r=o>1?o:1,i.choiceList.scrollTop=i.choiceList.scrollTop+r,i.choiceList.scrollTop1?o:1,i.choiceList.scrollTop=i.choiceList.scrollTop-r,i.choiceList.scrollTop>t&&(s=!0)),s&&requestAnimationFrame(function(e){l(e,t,n)})};requestAnimationFrame(function(e){c(e,a,t)})}}},{key:"_highlightChoice",value:function(e){var t=this,i=Array.from(this.dropdown.querySelectorAll("[data-choice-selectable]"));if(i&&i.length){var n=Array.from(this.dropdown.querySelectorAll("."+this.config.classNames.highlightedState));if(n.forEach(function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")}),e)e.classList.add(this.config.classNames.highlightedState),this.highlightPosition=i.indexOf(e);else{var s=void 0;s=i.length>this.highlightPosition?i[this.highlightPosition]:i[i.length-1],s||(s=i[0]),s.classList.add(this.config.classNames.highlightedState),s.setAttribute("aria-selected","true")}}}},{key:"_addItem",value:function(e,t){var i=arguments.length<=2||void 0===arguments[2]?-1:arguments[2],n=this.store.getItems(),s=(0,c.isType)("String",e)?e.trim():e,o=t||s,r=parseInt(i)||-1;this.config.prependValue&&(s=this.config.prependValue+s.toString()),this.config.appendValue&&(s+=this.config.appendValue.toString());var l=n?n.length+1:1;if(this.store.dispatch((0,a.addItem)(s,o,l,r)),"select-one"===this.passedElement.type&&this.removeActiveItems(l),this.config.callbackOnAddItem){var h=this.config.callbackOnAddItem;(0,c.isType)("Function",h)?h(l,s,this.passedElement):console.error("callbackOnAddItem: Callback is not a function")}return this}},{key:"_removeItem",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.config.callbackOnRemoveItem:arguments[1];if(!e||!(0,c.isType)("Object",e))return void console.error("removeItem: No item object was passed to be removed");var i=e.id,n=e.value,s=e.choiceId;if(this.store.dispatch((0,a.removeItem)(i,s)),t){if(!(0,c.isType)("Function",t))return void console.error("callbackOnRemoveItem: Callback is not a function");t(i,n,this.passedElement)}return this}},{key:"_addChoice",value:function(e,t,i,n){var s=arguments.length<=4||void 0===arguments[4]?-1:arguments[4];if(i){n||(n=i);var o=this.store.getChoices(),r=o?o.length+1:1;this.store.dispatch((0,a.addChoice)(i,n,r,s,t)),e&&!t&&this._addItem(i,n,r)}}},{key:"_addGroup",value:function(e,t,i){var n=this,s=(0,c.isType)("Object",e)?e.choices:Array.from(e.getElementsByTagName("OPTION")),o=t,r=!!e.disabled&&e.disabled;s?(this.store.dispatch((0,a.addGroup)(e.label,o,!0,r)),s.forEach(function(e,t){var i=e.disabled||e.parentNode&&e.parentNode.disabled||!1,s=!!e.selected&&e.selected,r=void 0;r=(0,c.isType)("Object",e)?e.label||e.value:e.innerHTML,n._addChoice(s,i,e.value,r,o)})):this.store.dispatch((0,a.addGroup)(e.label,e.id,!1,e.disabled))}},{key:"_getTemplate",value:function(e){if(e){for(var t=this.config.templates,i=arguments.length,n=Array(i>1?i-1:0),s=1;s