@danielgindi/selectbox 1.0.50 → 1.0.53

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/css/selectbox.css CHANGED
@@ -1,3 +1,3 @@
1
- .selectbox{position:relative;box-sizing:border-box;display:inline-block;cursor:default;outline:0;user-select:none;-webkit-user-select:none;color:#000;background-color:#fff;border-radius:4px;border:solid #aaa 1px}.selectbox.selectbox__searchable{cursor:text}.selectbox[aria-disabled=true]{border:solid #aaa 1px;background-color:#eee;cursor:default}.selectbox[aria-disabled=true] *{cursor:default}.selectbox.has_droplist_above{border-top-left-radius:0;border-top-right-radius:0}.selectbox.has_droplist_below{border-bottom-left-radius:0;border-bottom-right-radius:0}.selectbox.selectbox__single{padding-top:4px}.selectbox.selectbox__single.selectbox__has_open_indicator:not(.selectbox__has_clear):not(.selectbox__has_spinner){padding-right:17px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_open_indicator:not(.selectbox__has_clear):not(.selectbox__has_spinner){padding-right:0;padding-left:17px}.selectbox.selectbox__single.selectbox__has_clear:not(.selectbox__has_open_indicator):not(.selectbox__has_spinner),.selectbox.selectbox__single.selectbox__has_spinner:not(.selectbox__has_open_indicator):not(.selectbox__has_clear){padding-right:27px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_clear:not(.selectbox__has_open_indicator):not(.selectbox__has_spinner),[dir=rtl] .selectbox.selectbox__single.selectbox__has_spinner:not(.selectbox__has_open_indicator):not(.selectbox__has_clear){padding-right:0;padding-left:27px}.selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_spinner:not(.selectbox__has_clear),.selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_clear:not(.selectbox__has_spinner){padding-right:44px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_spinner:not(.selectbox__has_clear),[dir=rtl] .selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_clear:not(.selectbox__has_spinner){padding-right:0;padding-left:44px}.selectbox.selectbox__single.selectbox__has_clear.selectbox__has_spinner:not(.selectbox__has_open_indicator){padding-right:54px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_clear.selectbox__has_spinner:not(.selectbox__has_open_indicator){padding-right:0;padding-left:54px}.selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_clear.selectbox__has_spinner{padding-right:74px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_clear.selectbox__has_spinner{padding-right:0;padding-left:74px}.selectbox.selectbox__multi{padding-top:5px}.selectbox__focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.selectbox__list{box-sizing:border-box;list-style:none none;display:inline-block;vertical-align:top;overflow:hidden;width:100%;margin:-5px 0 0;padding:0 8px 4px;text-overflow:ellipsis;white-space:nowrap}.selectbox__list::before{float:right;display:block;content:"";width:0;height:25px}[dir=rtl] .selectbox__list::before{float:left}.selectbox__has_open_indicator .selectbox__list::before,.selectbox__has_clear .selectbox__list::before,.selectbox__has_spinner .selectbox__list::before{margin-left:-8px;margin-right:-8px}.selectbox__has_open_indicator:not(.selectbox__has_clear):not(.selectbox__has_spinner) .selectbox__list::before{width:17px}.selectbox__has_clear:not(.selectbox__has_open_indicator):not(.selectbox__has_spinner) .selectbox__list::before,.selectbox__has_spinner:not(.selectbox__has_open_indicator):not(.selectbox__has_clear) .selectbox__list::before{width:27px}.selectbox__has_open_indicator.selectbox__has_spinner:not(.selectbox__has_clear) .selectbox__list::before,.selectbox__has_open_indicator.selectbox__has_clear:not(.selectbox__has_spinner) .selectbox__list::before{width:44px}.selectbox__has_clear.selectbox__has_spinner:not(.selectbox__has_open_indicator) .selectbox__list::before{width:54px}.selectbox__has_open_indicator.selectbox__has_clear.selectbox__has_spinner .selectbox__list::before{width:74px}.selectbox__open_indicator{position:absolute;right:4px;z-index:2;font-size:1em;width:1em;height:.6423em;overflow:hidden;direction:ltr;text-align:left;cursor:pointer}.selectbox__open_indicator::before{border-style:solid;border-color:#9d9d9d;border-width:.25em .25em 0 0;content:"";display:inline-block;height:.45em;left:.15em;position:relative;top:-0.18em;transform:rotate(135deg);vertical-align:top;width:.45em;transition:transform 150ms cubic-bezier(1, -0.115, 0.975, 0.855)}[dir=rtl] .selectbox__open_indicator::before{transform:rotate(-225deg)}.selectbox__open_list .selectbox__open_indicator::before{transform:translateY(50%) rotate(-45deg)}[dir=rtl] .selectbox__open_indicator{right:auto;left:4px}.selectbox__multi .selectbox__open_indicator{top:11px}.selectbox__single .selectbox__open_indicator{top:8px}.selectbox__clear{position:absolute;right:2px;z-index:2}.selectbox__clear>button{box-sizing:border-box;display:block;cursor:pointer;font-weight:bold;width:26px;text-align:center;font-size:13px;line-height:1.4;margin:0;padding:0 0 3px;border:0;background:none}.selectbox__clear>button:before{content:"×"}.selectbox__clear>button:focus{outline:none;color:red}[dir=rtl] .selectbox__clear{right:auto;left:2px}.selectbox__multi .selectbox__clear{top:5px}.selectbox__single .selectbox__clear{top:4px}.selectbox__has_open_indicator.selectbox__has_clear .selectbox__clear{right:14px}[dir=rtl] .selectbox__has_open_indicator.selectbox__has_clear .selectbox__clear{right:auto;left:14px}.selectbox__spinner{position:absolute;right:2px;z-index:2;font-size:1em;width:1em;height:1em;text-indent:-9999em;overflow:hidden;border-top:.3em solid rgba(100,100,100,.1);border-right:.3em solid rgba(100,100,100,.1);border-bottom:.3em solid rgba(100,100,100,.1);border-left:.3em solid rgba(60,60,60,.45);border-radius:50%;transform:translateZ(0);animation:selectbox__spinner_anim 1.1s infinite linear;transition:opacity .1s}[dir=rtl] .selectbox__spinner{right:auto;left:2px}.selectbox__multi .selectbox__spinner{top:4px}.selectbox__single .selectbox__spinner{top:3px}.selectbox__has_spinner.selectbox__has_open_indicator .selectbox__spinner{right:22px}[dir=rtl] .selectbox__has_spinner.selectbox__has_open_indicator .selectbox__spinner{right:auto;left:22px}.selectbox__has_spinner.selectbox__has_clear .selectbox__spinner{right:36px}[dir=rtl] .selectbox__has_spinner.selectbox__has_clear .selectbox__spinner{right:auto;left:36px}.selectbox__item{box-sizing:border-box;float:left;cursor:default;background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;margin-left:0;margin-right:5px;margin-top:5px;padding:0 5px 2px}.selectbox__item span{vertical-align:middle}.selectbox__item:focus{background-color:#ccc;outline:0}[dir=rtl] .selectbox__item{float:right;margin-left:5px;margin-right:0}.selectbox__item_remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px;font-size:13px}.selectbox__item_remove:before{content:"×"}[dir=rtl] .selectbox__item_remove{margin-left:2px;margin-right:0}.selectbox__single_wrapper{position:relative;min-height:1em;max-width:100%;margin:0 0 3px;padding:2px 0 1px;color:currentColor}.selectbox__single_wrapper:empty::after{content:"​"}.selectbox__empty_selection .selectbox__single_wrapper{width:12em}.selectbox__has_selection.selectbox__has_input .selectbox__single_wrapper{opacity:0}.selectbox__has_selection.selectbox__empty_input.has_droplist .selectbox__single_wrapper,.selectbox__has_selection.selectbox__empty_input.selectbox__focus .selectbox__single_wrapper{opacity:.5}.selectbox__search_wrapper{max-width:100%}.selectbox__multi .selectbox__search_wrapper{float:left;margin-top:5px}[dir=rtl] .selectbox__multi .selectbox__search_wrapper{float:right}.selectbox__single .selectbox__search_wrapper{position:absolute;z-index:1;left:0;top:4px}[dir=rtl] .selectbox__single .selectbox__search_wrapper{right:0;left:auto}input.selectbox__search_field{box-sizing:border-box;display:inline-block;height:auto;max-width:100%;cursor:inherit;color:currentColor;-webkit-appearance:none;appearance:none;background:transparent;box-shadow:none;border:none;border-radius:0;outline:0;margin:0;padding:2px 0;font-size:1em;line-height:normal}input.selectbox__search_field::-webkit-search-decoration,input.selectbox__search_field::-webkit-search-cancel-button,input.selectbox__search_field::-webkit-search-results-button,input.selectbox__search_field::-webkit-search-results-decoration{appearance:none;-webkit-appearance:none;width:0;height:0;margin:0;padding:0}input.selectbox__search_field::-ms-clear{appearance:none;-webkit-appearance:none;width:0;height:0;margin:0;padding:0}input.selectbox__search_field:focus{outline:0 !important;border:0 !important;box-shadow:none !important}.selectbox__single_wrapper,.selectbox__single input.selectbox__search_field{padding-left:8px;padding-right:8px}@-webkit-keyframes selectbox__spinner_anim{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes selectbox__spinner_anim{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
1
+ .selectbox{position:relative;box-sizing:border-box;display:inline-block;cursor:default;outline:0;user-select:none;-webkit-user-select:none;color:#000;background-color:#fff;border-radius:4px;border:solid #aaa 1px}.selectbox.selectbox__searchable{cursor:text}.selectbox[aria-disabled=true]{border:solid #aaa 1px;background-color:#eee;cursor:default}.selectbox[aria-disabled=true] *{cursor:default}.selectbox.has_droplist_above{border-top-left-radius:0;border-top-right-radius:0}.selectbox.has_droplist_below{border-bottom-left-radius:0;border-bottom-right-radius:0}.selectbox.selectbox__single{padding-top:4px}.selectbox.selectbox__single.selectbox__has_open_indicator:not(.selectbox__has_clear):not(.selectbox__has_spinner){padding-right:17px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_open_indicator:not(.selectbox__has_clear):not(.selectbox__has_spinner){padding-right:0;padding-left:17px}.selectbox.selectbox__single.selectbox__has_clear:not(.selectbox__has_open_indicator):not(.selectbox__has_spinner),.selectbox.selectbox__single.selectbox__has_spinner:not(.selectbox__has_open_indicator):not(.selectbox__has_clear){padding-right:27px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_clear:not(.selectbox__has_open_indicator):not(.selectbox__has_spinner),[dir=rtl] .selectbox.selectbox__single.selectbox__has_spinner:not(.selectbox__has_open_indicator):not(.selectbox__has_clear){padding-right:0;padding-left:27px}.selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_spinner:not(.selectbox__has_clear),.selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_clear:not(.selectbox__has_spinner){padding-right:44px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_spinner:not(.selectbox__has_clear),[dir=rtl] .selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_clear:not(.selectbox__has_spinner){padding-right:0;padding-left:44px}.selectbox.selectbox__single.selectbox__has_clear.selectbox__has_spinner:not(.selectbox__has_open_indicator){padding-right:54px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_clear.selectbox__has_spinner:not(.selectbox__has_open_indicator){padding-right:0;padding-left:54px}.selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_clear.selectbox__has_spinner{padding-right:74px}[dir=rtl] .selectbox.selectbox__single.selectbox__has_open_indicator.selectbox__has_clear.selectbox__has_spinner{padding-right:0;padding-left:74px}.selectbox.selectbox__multi{padding-top:5px}.selectbox__focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.selectbox__list{box-sizing:border-box;list-style:none none;display:inline-block;vertical-align:top;overflow:hidden;width:100%;margin:-5px 0 0;padding:0 8px 4px;text-overflow:ellipsis;white-space:nowrap}.selectbox__list::before{float:right;display:block;content:"";width:0;height:25px}[dir=rtl] .selectbox__list::before{float:left}.selectbox__has_open_indicator .selectbox__list::before,.selectbox__has_clear .selectbox__list::before,.selectbox__has_spinner .selectbox__list::before{margin-left:-8px;margin-right:-8px}.selectbox__has_open_indicator:not(.selectbox__has_clear):not(.selectbox__has_spinner) .selectbox__list::before{width:17px}.selectbox__has_clear:not(.selectbox__has_open_indicator):not(.selectbox__has_spinner) .selectbox__list::before,.selectbox__has_spinner:not(.selectbox__has_open_indicator):not(.selectbox__has_clear) .selectbox__list::before{width:27px}.selectbox__has_open_indicator.selectbox__has_spinner:not(.selectbox__has_clear) .selectbox__list::before,.selectbox__has_open_indicator.selectbox__has_clear:not(.selectbox__has_spinner) .selectbox__list::before{width:44px}.selectbox__has_clear.selectbox__has_spinner:not(.selectbox__has_open_indicator) .selectbox__list::before{width:54px}.selectbox__has_open_indicator.selectbox__has_clear.selectbox__has_spinner .selectbox__list::before{width:74px}.selectbox__open_indicator{position:absolute;right:4px;z-index:2;font-size:1em;width:1em;height:.6423em;overflow:hidden;direction:ltr;text-align:left;cursor:pointer}.selectbox__open_indicator::before{border-style:solid;border-color:#9d9d9d;border-width:.25em .25em 0 0;content:"";display:inline-block;height:.45em;left:.15em;position:relative;top:-0.18em;transform:rotate(135deg);vertical-align:top;width:.45em;transition:transform 150ms cubic-bezier(1, -0.115, 0.975, 0.855)}[dir=rtl] .selectbox__open_indicator::before{transform:rotate(-225deg)}.selectbox__open_list .selectbox__open_indicator::before{transform:translateY(50%) rotate(-45deg)}[dir=rtl] .selectbox__open_indicator{right:auto;left:4px}.selectbox__multi .selectbox__open_indicator{top:11px}.selectbox__single .selectbox__open_indicator{top:8px}.selectbox__clear{position:absolute;right:2px;z-index:2}.selectbox__clear>button{box-sizing:border-box;display:block;cursor:pointer;font-weight:bold;width:26px;text-align:center;font-size:13px;line-height:1.4;margin:0;padding:0 0 3px;border:0;background:none}.selectbox__clear>button:before{content:"×"}.selectbox__clear>button:focus{outline:none;color:red}[dir=rtl] .selectbox__clear{right:auto;left:2px}.selectbox__multi .selectbox__clear{top:5px}.selectbox__single .selectbox__clear{top:4px}.selectbox__has_open_indicator.selectbox__has_clear .selectbox__clear{right:14px}[dir=rtl] .selectbox__has_open_indicator.selectbox__has_clear .selectbox__clear{right:auto;left:14px}.selectbox__spinner{position:absolute;right:2px;z-index:2;font-size:1em;width:1em;height:1em;text-indent:-9999em;overflow:hidden;border-top:.3em solid rgba(100,100,100,.1);border-right:.3em solid rgba(100,100,100,.1);border-bottom:.3em solid rgba(100,100,100,.1);border-left:.3em solid rgba(60,60,60,.45);border-radius:50%;transform:translateZ(0);animation:selectbox__spinner_anim 1.1s infinite linear;transition:opacity .1s}[dir=rtl] .selectbox__spinner{right:auto;left:2px}.selectbox__multi .selectbox__spinner{top:4px}.selectbox__single .selectbox__spinner{top:3px}.selectbox__has_spinner.selectbox__has_open_indicator .selectbox__spinner{right:22px}[dir=rtl] .selectbox__has_spinner.selectbox__has_open_indicator .selectbox__spinner{right:auto;left:22px}.selectbox__has_spinner.selectbox__has_clear .selectbox__spinner{right:36px}[dir=rtl] .selectbox__has_spinner.selectbox__has_clear .selectbox__spinner{right:auto;left:36px}.selectbox__item{box-sizing:border-box;float:left;cursor:default;background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;margin-left:0;margin-right:5px;margin-top:5px;padding:0 5px 2px}.selectbox__item span{vertical-align:middle}.selectbox__item:focus{background-color:#ccc;outline:0}[dir=rtl] .selectbox__item{float:right;margin-left:5px;margin-right:0}.selectbox__item_remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px;font-size:13px}.selectbox__item_remove:before{content:"×"}[dir=rtl] .selectbox__item_remove{margin-left:2px;margin-right:0}.selectbox__single_wrapper{position:relative;min-height:1em;max-width:100%;margin:0 0 3px;padding:2px 0 1px;color:currentColor}.selectbox__single_wrapper:empty::after{content:"​"}.selectbox__empty_selection .selectbox__single_wrapper{width:12em}.selectbox__has_selection.selectbox__has_input .selectbox__single_wrapper{opacity:0}.selectbox__has_selection.selectbox__empty_input.has_droplist .selectbox__single_wrapper,.selectbox__has_selection.selectbox__empty_input.selectbox__focus .selectbox__single_wrapper{opacity:.5}.selectbox__search_wrapper{max-width:100%}.selectbox__multi .selectbox__search_wrapper{float:left;margin-top:5px}[dir=rtl] .selectbox__multi .selectbox__search_wrapper{float:right}.selectbox__single .selectbox__search_wrapper{position:absolute;z-index:1;left:0;top:4px}[dir=rtl] .selectbox__single .selectbox__search_wrapper{right:0;left:auto}input.selectbox__search_field{box-sizing:border-box;display:inline-block;height:auto;max-width:100%;cursor:inherit;color:currentColor;-webkit-appearance:none;appearance:none;background:rgba(0,0,0,0);box-shadow:none;border:none;border-radius:0;outline:0;margin:0;padding:2px 0;font-size:1em;line-height:normal}input.selectbox__search_field::-webkit-search-decoration,input.selectbox__search_field::-webkit-search-cancel-button,input.selectbox__search_field::-webkit-search-results-button,input.selectbox__search_field::-webkit-search-results-decoration{appearance:none;-webkit-appearance:none;width:0;height:0;margin:0;padding:0}input.selectbox__search_field::-ms-clear{appearance:none;-webkit-appearance:none;width:0;height:0;margin:0;padding:0}input.selectbox__search_field:focus{outline:0 !important;border:0 !important;box-shadow:none !important}.selectbox__single_wrapper,.selectbox__single input.selectbox__search_field{padding-left:8px;padding-right:8px}@-webkit-keyframes selectbox__spinner_anim{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes selectbox__spinner_anim{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
2
2
 
3
3
  /*# sourceMappingURL=selectbox.css.map */
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../scss/selectbox.scss"],"names":[],"mappings":"CAGA,WACI,kBACA,sBACA,qBACA,eACA,UAEA,iBACA,yBAEA,WACA,sBACA,kBACA,sBAEA,iCACI,YAGP,+BACC,sBACA,sBACA,eAEA,iCACC,eAIF,8BACC,yBACA,0BAGD,8BACC,4BACA,6BAGE,6BACI,gBAEA,mHACI,mBAEA,6HACI,gBACA,kBAIR,sOAEI,mBAEA,0PACI,gBACA,kBAIR,0NAEI,mBAEA,8OACI,gBACA,kBAIR,6GACI,mBAEA,uHACI,gBACA,kBAIR,uGACI,mBAEA,iHACI,gBACA,kBAKZ,4BACI,gBAIR,kBACI,qBACA,UAEA,WADM,8DAIV,iBACI,sBACA,qBACA,qBACA,mBACA,gBAEA,WACA,gBACA,kBAEA,uBACA,mBAEA,yBAEI,YAEA,cACA,WACA,QACA,YAEA,mCACI,WAOJ,wJACI,iBACA,kBAKJ,gHACI,WAMJ,gOACI,WAMJ,oNACI,WAKJ,0GACI,WAKJ,oGACI,WAKZ,2BACI,kBACA,UACA,UACA,cACA,UACA,eACA,gBACA,cACA,gBACA,eAEA,mCACI,mBACA,qBACA,6BACA,WACA,qBACA,aACA,WACA,kBACA,YACA,yBACA,mBACA,YACA,iEAGJ,6CACI,0BAGJ,yDACI,yCAGJ,qCACI,WACA,SAGJ,6CACI,SAGJ,8CACI,QAIR,kBACI,kBACA,UACA,UAEA,yBACI,sBACA,cACA,eACA,iBACA,WACA,kBACA,eACA,gBACA,SACA,gBACA,SACA,gBAEA,gCACI,YAGJ,+BACI,aACA,UAIR,4BACI,WACA,SAGJ,oCACI,QAGJ,qCACI,QAGJ,sEACI,WAEA,gFACI,WACA,UAKZ,oBACI,kBACA,UACA,UACA,cACA,UACA,WACA,oBACA,gBACA,2CACA,6CACA,8CACA,0CACA,kBACA,wBACA,uDACA,uBAEA,8BACI,WACA,SAGJ,sCACI,QAGJ,uCACI,QAGJ,0EACI,WAEA,oFACI,WACA,UAIR,iEACI,WAEA,2EACI,WACA,UAKZ,iBAEI,sBACA,WACA,eAEA,yBACA,sBACA,kBAEA,cACA,iBACA,eACA,kBAEH,sBACC,sBAGD,uBACC,sBACA,UAGE,2BACI,YACA,gBACA,eAIR,wBACI,WACA,eACA,qBACA,iBACA,iBACH,eAEA,+BACC,YAGE,kCACI,gBACA,eAIR,2BACI,kBACA,eACA,eACA,eACA,kBACA,mBAEA,oDAEA,uDACI,WAGJ,0EACI,UAIR,sLAEI,WAGJ,2BACC,eAEG,6CACI,WACA,eAEA,uDACI,YAIR,8CACI,kBACA,UACA,OACA,QAEA,wDACI,QACA,UAKZ,8BACI,sBACH,qBACG,YACH,eACG,eACA,mBAEA,wBACA,gBACH,uBACG,gBACA,YACA,gBACA,UACA,SACA,cAEA,cACA,mBAEA,mPAII,gBACA,wBACA,QACA,SACA,SACA,UAGJ,yCACI,gBACA,wBACA,QACA,SACA,SACA,UAGP,oCACC,qBACA,oBACA,2BAIF,4EAEI,iBACA,kBAGJ,2CACI,GACI,uBAEJ,KACI,0BAIR,mCACI,GACI,uBAEJ,KACI","file":"selectbox.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../scss/selectbox.scss"],"names":[],"mappings":"CAGA,WACI,kBACA,sBACA,qBACA,eACA,UAEA,iBACA,yBAEA,WACA,sBACA,kBACA,sBAEA,iCACI,YAGP,+BACC,sBACA,sBACA,eAEA,iCACC,eAIF,8BACC,yBACA,0BAGD,8BACC,4BACA,6BAGE,6BACI,gBAEA,mHACI,mBAEA,6HACI,gBACA,kBAIR,sOAEI,mBAEA,0PACI,gBACA,kBAIR,0NAEI,mBAEA,8OACI,gBACA,kBAIR,6GACI,mBAEA,uHACI,gBACA,kBAIR,uGACI,mBAEA,iHACI,gBACA,kBAKZ,4BACI,gBAIR,kBACI,qBACA,UAEA,WADM,8DAIV,iBACI,sBACA,qBACA,qBACA,mBACA,gBAEA,WACA,gBACA,kBAEA,uBACA,mBAEA,yBAEI,YAEA,cACA,WACA,QACA,YAEA,mCACI,WAOJ,wJACI,iBACA,kBAKJ,gHACI,WAMJ,gOACI,WAMJ,oNACI,WAKJ,0GACI,WAKJ,oGACI,WAKZ,2BACI,kBACA,UACA,UACA,cACA,UACA,eACA,gBACA,cACA,gBACA,eAEA,mCACI,mBACA,qBACA,6BACA,WACA,qBACA,aACA,WACA,kBACA,YACA,yBACA,mBACA,YACA,iEAGJ,6CACI,0BAGJ,yDACI,yCAGJ,qCACI,WACA,SAGJ,6CACI,SAGJ,8CACI,QAIR,kBACI,kBACA,UACA,UAEA,yBACI,sBACA,cACA,eACA,iBACA,WACA,kBACA,eACA,gBACA,SACA,gBACA,SACA,gBAEA,gCACI,YAGJ,+BACI,aACA,UAIR,4BACI,WACA,SAGJ,oCACI,QAGJ,qCACI,QAGJ,sEACI,WAEA,gFACI,WACA,UAKZ,oBACI,kBACA,UACA,UACA,cACA,UACA,WACA,oBACA,gBACA,2CACA,6CACA,8CACA,0CACA,kBACA,wBACA,uDACA,uBAEA,8BACI,WACA,SAGJ,sCACI,QAGJ,uCACI,QAGJ,0EACI,WAEA,oFACI,WACA,UAIR,iEACI,WAEA,2EACI,WACA,UAKZ,iBAEI,sBACA,WACA,eAEA,yBACA,sBACA,kBAEA,cACA,iBACA,eACA,kBAEH,sBACC,sBAGD,uBACC,sBACA,UAGE,2BACI,YACA,gBACA,eAIR,wBACI,WACA,eACA,qBACA,iBACA,iBACH,eAEA,+BACC,YAGE,kCACI,gBACA,eAIR,2BACI,kBACA,eACA,eACA,eACA,kBACA,mBAEA,oDAEA,uDACI,WAGJ,0EACI,UAIR,sLAEI,WAGJ,2BACC,eAEG,6CACI,WACA,eAEA,uDACI,YAIR,8CACI,kBACA,UACA,OACA,QAEA,wDACI,QACA,UAKZ,8BACI,sBACH,qBACG,YACH,eACG,eACA,mBAEA,wBACA,gBACH,yBACG,gBACA,YACA,gBACA,UACA,SACA,cAEA,cACA,mBAEA,mPAII,gBACA,wBACA,QACA,SACA,SACA,UAGJ,yCACI,gBACA,wBACA,QACA,SACA,SACA,UAGP,oCACC,qBACA,oBACA,2BAIF,4EAEI,iBACA,kBAGJ,2CACI,GACI,uBAEJ,KACI,0BAIR,mCACI,GACI,uBAEJ,KACI","file":"selectbox.css"}
package/dist/lib.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/selectbox 1.0.50
2
+ * @danielgindi/selectbox 1.0.53
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  'use strict';
@@ -20,6 +20,281 @@ var DomEventsSink__default = /*#__PURE__*/_interopDefaultLegacy(DomEventsSink);
20
20
  var VirtualListHelper__default = /*#__PURE__*/_interopDefaultLegacy(VirtualListHelper);
21
21
  var mitt__default = /*#__PURE__*/_interopDefaultLegacy(mitt);
22
22
 
23
+ function createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) {
24
+ return {
25
+ getMetadata: function (key) {
26
+ assertNotFinished(decoratorFinishedRef, "getMetadata"), assertMetadataKey(key);
27
+ var metadataForKey = metadataMap[key];
28
+ if (void 0 !== metadataForKey) if (1 === kind) {
29
+ var pub = metadataForKey.public;
30
+ if (void 0 !== pub) return pub[property];
31
+ } else if (2 === kind) {
32
+ var priv = metadataForKey.private;
33
+ if (void 0 !== priv) return priv.get(property);
34
+ } else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor;
35
+ },
36
+ setMetadata: function (key, value) {
37
+ assertNotFinished(decoratorFinishedRef, "setMetadata"), assertMetadataKey(key);
38
+ var metadataForKey = metadataMap[key];
39
+
40
+ if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) {
41
+ var pub = metadataForKey.public;
42
+ void 0 === pub && (pub = metadataForKey.public = {}), pub[property] = value;
43
+ } else if (2 === kind) {
44
+ var priv = metadataForKey.priv;
45
+ void 0 === priv && (priv = metadataForKey.private = new Map()), priv.set(property, value);
46
+ } else metadataForKey.constructor = value;
47
+ }
48
+ };
49
+ }
50
+
51
+ function convertMetadataMapToFinal(obj, metadataMap) {
52
+ var parentMetadataMap = obj[Symbol.metadata || Symbol.for("Symbol.metadata")],
53
+ metadataKeys = Object.getOwnPropertySymbols(metadataMap);
54
+
55
+ if (0 !== metadataKeys.length) {
56
+ for (var i = 0; i < metadataKeys.length; i++) {
57
+ var key = metadataKeys[i],
58
+ metaForKey = metadataMap[key],
59
+ parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null,
60
+ pub = metaForKey.public,
61
+ parentPub = parentMetaForKey ? parentMetaForKey.public : null;
62
+ pub && parentPub && Object.setPrototypeOf(pub, parentPub);
63
+ var priv = metaForKey.private;
64
+
65
+ if (priv) {
66
+ var privArr = Array.from(priv.values()),
67
+ parentPriv = parentMetaForKey ? parentMetaForKey.private : null;
68
+ parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey.private = privArr;
69
+ }
70
+
71
+ parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey);
72
+ }
73
+
74
+ parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol.for("Symbol.metadata")] = metadataMap;
75
+ }
76
+ }
77
+
78
+ function createAddInitializerMethod(initializers, decoratorFinishedRef) {
79
+ return function (initializer) {
80
+ assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
81
+ };
82
+ }
83
+
84
+ function memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) {
85
+ var kindStr;
86
+
87
+ switch (kind) {
88
+ case 1:
89
+ kindStr = "accessor";
90
+ break;
91
+
92
+ case 2:
93
+ kindStr = "method";
94
+ break;
95
+
96
+ case 3:
97
+ kindStr = "getter";
98
+ break;
99
+
100
+ case 4:
101
+ kindStr = "setter";
102
+ break;
103
+
104
+ default:
105
+ kindStr = "field";
106
+ }
107
+
108
+ var metadataKind,
109
+ metadataName,
110
+ ctx = {
111
+ kind: kindStr,
112
+ name: isPrivate ? "#" + name : name,
113
+ isStatic: isStatic,
114
+ isPrivate: isPrivate
115
+ },
116
+ decoratorFinishedRef = {
117
+ v: !1
118
+ };
119
+
120
+ if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) {
121
+ metadataKind = 2, metadataName = Symbol(name);
122
+ var access = {};
123
+ 0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () {
124
+ return desc.value;
125
+ } : (1 !== kind && 3 !== kind || (access.get = function () {
126
+ return desc.get.call(this);
127
+ }), 1 !== kind && 4 !== kind || (access.set = function (v) {
128
+ desc.set.call(this, v);
129
+ })), ctx.access = access;
130
+ } else metadataKind = 1, metadataName = name;
131
+
132
+ try {
133
+ return dec(value, Object.assign(ctx, createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef)));
134
+ } finally {
135
+ decoratorFinishedRef.v = !0;
136
+ }
137
+ }
138
+
139
+ function assertNotFinished(decoratorFinishedRef, fnName) {
140
+ if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
141
+ }
142
+
143
+ function assertMetadataKey(key) {
144
+ if ("symbol" != typeof key) throw new TypeError("Metadata keys must be symbols, received: " + key);
145
+ }
146
+
147
+ function assertCallable(fn, hint) {
148
+ if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
149
+ }
150
+
151
+ function assertValidReturnValue(kind, value) {
152
+ var type = typeof value;
153
+
154
+ if (1 === kind) {
155
+ if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
156
+ void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && assertCallable(value.initializer, "accessor.initializer");
157
+ } else if ("function" !== type) {
158
+ var hint;
159
+ throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
160
+ }
161
+ }
162
+
163
+ function getInit(desc) {
164
+ var initializer;
165
+ return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer;
166
+ }
167
+
168
+ function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) {
169
+ var desc,
170
+ initializer,
171
+ value,
172
+ newValue,
173
+ get,
174
+ set,
175
+ decs = decInfo[0];
176
+ if (isPrivate ? desc = 0 === kind || 1 === kind ? {
177
+ get: decInfo[3],
178
+ set: decInfo[4]
179
+ } : 3 === kind ? {
180
+ get: decInfo[3]
181
+ } : 4 === kind ? {
182
+ set: decInfo[3]
183
+ } : {
184
+ value: decInfo[3]
185
+ } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
186
+ get: desc.get,
187
+ set: desc.set
188
+ } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
189
+ get: get,
190
+ set: set
191
+ }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
192
+ var newInit;
193
+ if (void 0 !== (newValue = memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
194
+ get: get,
195
+ set: set
196
+ }) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit));
197
+ }
198
+
199
+ if (0 === kind || 1 === kind) {
200
+ if (void 0 === initializer) initializer = function (instance, init) {
201
+ return init;
202
+ };else if ("function" != typeof initializer) {
203
+ var ownInitializers = initializer;
204
+
205
+ initializer = function (instance, init) {
206
+ for (var value = init, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
207
+
208
+ return value;
209
+ };
210
+ } else {
211
+ var originalInitializer = initializer;
212
+
213
+ initializer = function (instance, init) {
214
+ return originalInitializer.call(instance, init);
215
+ };
216
+ }
217
+ ret.push(initializer);
218
+ }
219
+
220
+ 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
221
+ return value.get.call(instance, args);
222
+ }), ret.push(function (instance, args) {
223
+ return value.set.call(instance, args);
224
+ })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
225
+ return value.call(instance, args);
226
+ }) : Object.defineProperty(base, name, desc));
227
+ }
228
+
229
+ function applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) {
230
+ for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
231
+ var decInfo = decInfos[i];
232
+
233
+ if (Array.isArray(decInfo)) {
234
+ var base,
235
+ metadataMap,
236
+ initializers,
237
+ kind = decInfo[1],
238
+ name = decInfo[2],
239
+ isPrivate = decInfo.length > 3,
240
+ isStatic = kind >= 5;
241
+
242
+ if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
243
+ var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
244
+ existingKind = existingNonFields.get(name) || 0;
245
+ if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
246
+ !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
247
+ }
248
+
249
+ applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers);
250
+ }
251
+ }
252
+
253
+ pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers);
254
+ }
255
+
256
+ function pushInitializers(ret, initializers) {
257
+ initializers && ret.push(function (instance) {
258
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
259
+
260
+ return instance;
261
+ });
262
+ }
263
+
264
+ function applyClassDecs(ret, targetClass, metadataMap, classDecs) {
265
+ if (classDecs.length > 0) {
266
+ for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
267
+ var decoratorFinishedRef = {
268
+ v: !1
269
+ };
270
+
271
+ try {
272
+ var ctx = Object.assign({
273
+ kind: "class",
274
+ name: name,
275
+ addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
276
+ }, createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)),
277
+ nextNewClass = classDecs[i](newClass, ctx);
278
+ } finally {
279
+ decoratorFinishedRef.v = !0;
280
+ }
281
+
282
+ void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
283
+ }
284
+
285
+ ret.push(newClass, function () {
286
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
287
+ });
288
+ }
289
+ }
290
+
291
+ function _applyDecs(targetClass, memberDecs, classDecs) {
292
+ var ret = [],
293
+ staticMetadataMap = {},
294
+ protoMetadataMap = {};
295
+ return applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), convertMetadataMapToFinal(targetClass, staticMetadataMap), ret;
296
+ }
297
+
23
298
  function _asyncIterator(iterable) {
24
299
  var method,
25
300
  async,
@@ -1684,6 +1959,10 @@ function _classPrivateMethodSet() {
1684
1959
  throw new TypeError("attempted to reassign private method");
1685
1960
  }
1686
1961
 
1962
+ function _identity(x) {
1963
+ return x;
1964
+ }
1965
+
1687
1966
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1688
1967
 
1689
1968
  function getDefaultExportFromCjs (x) {
@@ -2032,10 +2311,10 @@ var store$2 = sharedStore;
2032
2311
  (shared$6.exports = function (key, value) {
2033
2312
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
2034
2313
  })('versions', []).push({
2035
- version: '3.20.3',
2314
+ version: '3.21.1',
2036
2315
  mode: IS_PURE$5 ? 'pure' : 'global',
2037
2316
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
2038
- license: 'https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE',
2317
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
2039
2318
  source: 'https://github.com/zloirock/core-js'
2040
2319
  });
2041
2320
 
@@ -4247,8 +4526,8 @@ var fails$e = fails$v;
4247
4526
  var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
4248
4527
  var method = [][METHOD_NAME];
4249
4528
  return !!method && fails$e(function () {
4250
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
4251
- method.call(null, argument || function () { throw 1; }, 1);
4529
+ // eslint-disable-next-line no-useless-call -- required for testing
4530
+ method.call(null, argument || function () { return 1; }, 1);
4252
4531
  });
4253
4532
  };
4254
4533
 
@@ -9924,27 +10203,11 @@ var SelectBox = /*#__PURE__*/function () {
9924
10203
  * @returns {SelectBox}
9925
10204
  */ }, { key: "clear", value:
9926
10205
  function clear() {
9927
- var p = this._p;
9928
-
9929
- var clearEvt = { cancel: false };
9930
- this._trigger('clear:before', clearEvt);
9931
- if (clearEvt.cancel)
10206
+ if (!this._performClearWithEvent(true))
9932
10207
  return this;
9933
10208
 
9934
- p.selectedItems = [];
9935
- p.selectedValues = [];
9936
- p.selectionChanged = true;
9937
- p.resortBySelectionNeeded = true;
9938
-
9939
- this._trigger('clear');
9940
-
9941
10209
  if (this[DestroyedSymbol]) return this; // destroyed by event handler
9942
10210
 
9943
- this._updateListItems();
9944
-
9945
- this._setInputText('');
9946
- this._scheduleSync('full');
9947
-
9948
10211
  return this;
9949
10212
  }
9950
10213
 
@@ -10608,19 +10871,11 @@ var SelectBox = /*#__PURE__*/function () {
10608
10871
  var _item = event.item;
10609
10872
  var _value = event.value;
10610
10873
 
10611
- var selectEvt = { value: _value, item: _item, cancel: false };
10612
- _this5._trigger('select:before', selectEvt);
10613
-
10614
- if (selectEvt.cancel)
10874
+ if (!_this5._performSelectWithEvent(_item, _value))
10615
10875
  return;
10616
10876
 
10617
10877
  if (_this5[DestroyedSymbol]) return; // destroyed by event handler
10618
10878
 
10619
- _this5._setSelectedItems([_item]);
10620
- _this5._trigger('select', { value: _value, item: _item });
10621
-
10622
- if (_this5[DestroyedSymbol]) return; // destroyed by event handler
10623
-
10624
10879
  _this5.closeList();
10625
10880
 
10626
10881
  if (p.blurOnSingleSelection === 'touch' && hasTouchCapability ||
@@ -10884,6 +11139,40 @@ var SelectBox = /*#__PURE__*/function () {
10884
11139
  }).
10885
11140
  add(p.el, 'touchcancel.dropdown_touchextra', onTouchCancel);
10886
11141
  });
11142
+ } }, { key: "_performSelectWithEvent", value:
11143
+
11144
+ function _performSelectWithEvent(item, value) {
11145
+ var cancellable = { value: value, item: item, cancel: false };
11146
+ this._trigger('select:before', cancellable);
11147
+
11148
+ if (cancellable.cancel)
11149
+ return false;
11150
+
11151
+ if (this[DestroyedSymbol]) return false; // destroyed by event handler
11152
+
11153
+ this._setSelectedItems([item]);
11154
+ this._trigger('select', { value: value, item: item });
11155
+
11156
+ return true;
11157
+ } }, { key: "_performClearWithEvent", value:
11158
+
11159
+ function _performClearWithEvent() {var clearInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
11160
+ var cancellable = { cancel: false };
11161
+ this._trigger('clear:before', cancellable);
11162
+
11163
+ if (cancellable.cancel)
11164
+ return false;
11165
+
11166
+ if (this[DestroyedSymbol]) return false; // destroyed by event handler
11167
+
11168
+ this._setSelectedItems([]);
11169
+
11170
+ if (clearInput)
11171
+ this._setInputText('');
11172
+
11173
+ this._trigger('clear');
11174
+
11175
+ return true;
10887
11176
  } }, { key: "_movePrev", value:
10888
11177
 
10889
11178
  function _movePrev() {var _p$filteredItems;
@@ -10899,7 +11188,13 @@ var SelectBox = /*#__PURE__*/function () {
10899
11188
  var nextIndex = selectedItems.length > 0 ? items.indexOf(selectedItems[0]) - 1 : items.length - 1;
10900
11189
  if (nextIndex === -1 && !p.clearable)
10901
11190
  nextIndex = items.length - 1;
10902
- this.setSelectedItems(nextIndex === -1 ? [] : [items[nextIndex]]);
11191
+
11192
+ var item = nextIndex === -1 ? null : items[nextIndex];
11193
+ if (item) {
11194
+ this._performSelectWithEvent(item, item[p.valueProp]);
11195
+ } else {
11196
+ this._performClearWithEvent();
11197
+ }
10903
11198
  }
10904
11199
  } }, { key: "_moveNext", value:
10905
11200
 
@@ -10916,7 +11211,13 @@ var SelectBox = /*#__PURE__*/function () {
10916
11211
  var nextIndex = selectedItems.length > 0 ? items.indexOf(selectedItems[0]) + 1 : 0;
10917
11212
  if (nextIndex === items.length)
10918
11213
  nextIndex = p.clearable ? -1 : 0;
10919
- this.setSelectedItems(nextIndex === -1 ? [] : [items[nextIndex]]);
11214
+
11215
+ var item = nextIndex === -1 ? null : items[nextIndex];
11216
+ if (item) {
11217
+ this._performSelectWithEvent(item, item[p.valueProp]);
11218
+ } else {
11219
+ this._performClearWithEvent();
11220
+ }
10920
11221
  }
10921
11222
  }
10922
11223