blip-toolkit
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BLiPToolkit=t():e.BLiPToolkit=t()}(window,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EventEmitter=function(e){return{$event:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,s;t.strToEl=(i=document.createElement("div"),function(e){var t,n=e.trim();for(i.innerHTML=n,t=i.children[0];i.firstChild;)i.removeChild(i.firstChild);return t}),t.guid=(s=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},function(){return s()+s()+"-"+s()+"-"+s()+"-"+s()+"-"+s()+s()+s()})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlipSelect=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(3),l=n(2);t.BlipSelect=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$state={isSelectOpen:!1,noResultsFound:!1,disabled:!1,label:"",placeholder:"",mode:"select",noResultsText:"No results found",beforeOpenSelect:function(){},afterOpenSelect:function(){},beforeCloseSelect:function(){},afterCloseSelect:function(){},onInputChange:function(e){e.$event},onSelectOption:function(e){e.$event},customSearch:void 0},this.wrapper="",this.elementLabel="",this.selectOptions=[],this.searchResults=[],this.selectOptionsContainer="",this.selectOptionsContainerOpenPosition="",this.selectLabel="",this._handleSelectFocus="",this._handleSelectBlur="",this._handleOptionClick="",this.parentNode="",this.configOptions=i({},this.$state,n),this.el=t,this._setup(),this._setupEventHandlers()}return s(e,[{key:"_setup",value:function(){var e=this;if(this.el instanceof Element==!1)throw new Error("Invalid dom element");var t=this.el.querySelectorAll("option");if(0===t.length)throw new Error("Element has no options");switch(this.parentNode=this.el.parentNode,this.customSelectId="blip-select__options-"+(0,o.guid)(),this.configOptions.mode){case"select":this.wrapper=(0,o.strToEl)('\n <div tabindex="0" class="bp-input-wrapper blip-select bp-input--with-bullet">\n <label class="bp-label bp-c-rooftop">'+this.configOptions.label+'</label>\n <input placeholder="'+this.configOptions.placeholder+'" class="blip-select__input bp-c-cloud" data-target="'+this.customSelectId+'" readonly>\n <ul class="blip-select__options" id="'+this.customSelectId+'"></ul>\n </div>\n ');break;case"autocomplete":this.wrapper=(0,o.strToEl)('\n <div tabindex="0" class="bp-input-wrapper blip-select">\n <label class="bp-label bp-c-rooftop">'+this.configOptions.label+'</label>\n <input placeholder="'+this.configOptions.placeholder+'" class="blip-select__input bp-c-cloud" data-target="'+this.customSelectId+'">\n <ul class="blip-select__options" id="'+this.customSelectId+'"></ul>\n </div>\n ');break;default:throw new Error("Unrecognized component mode")}this.parentNode.insertBefore(this.wrapper,this.el),this.selectOptionsContainer=this.wrapper.querySelector("#"+this.customSelectId),this.selectLabel=this.wrapper.querySelector("label"),Array.prototype.forEach.call(t,function(t){e.selectOptions=e.selectOptions.concat({value:t.value,label:t.label,element:t})}),this._arrayToDomOptions(this.selectOptions),this.input=this.wrapper.querySelector('input[data-target="'+this.customSelectId+'"]'),this.el.style.display="none",this.isDisabled=this.el.disabled}},{key:"_arrayToDomOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[{value:"",label:""}];this.selectOptionsContainer.innerHTML="",t.forEach(function(t){var n=t.value,i=t.label;e.selectOptionsContainer.appendChild((0,o.strToEl)('\n <li tabindex="0" class="blip-select__option" data-value="'+n+'">'+i+"</li>\n "))}),this._setupOptionsEventHandlers()}},{key:"_setupOptionsEventHandlers",value:function(){var e=this;Array.prototype.forEach.call(this.selectOptionsContainer.querySelectorAll("li"),function(t){return t.addEventListener("click",e._onOptionClick.bind(e))})}},{key:"_setupEventHandlers",value:function(){switch(this._handleSelectFocus=this._onSelectFocus.bind(this),this._handleSelectBlur=this._onSelectBlur.bind(this),this._handleCenterOption=this._centerSelectedOption.bind(this),this._handleInputChange=this._onInputChange.bind(this),this.input.addEventListener("focus",this._handleSelectFocus),this.input.addEventListener("blur",this._handleSelectBlur),this.configOptions.mode){case"autocomplete":this.input.addEventListener("keyup",this._handleInputChange)}this.selectOptionsContainer.addEventListener("transitionend",this._handleCenterOption)}},{key:"_onInputChange",value:function(e){if("function"!=typeof this.configOptions.onInputChange)throw new Error('Callback "onInputChange" is not a function');var t=this.input.value,n=this.configOptions.customSearch?this.configOptions.customSearch.call(this,(0,l.EventEmitter)({query:t,items:this.selectOptions})):this.selectOptions.filter(function(e){e.value;return e.label.toLowerCase().includes(t.toLowerCase())});this.configOptions.onInputChange((0,l.EventEmitter)({value:t,event:e})),n.length>0?(this.noResultsFound=!1,this._arrayToDomOptions(n)):this.noResultsFound=!0}},{key:"_setInputValue",value:function(e){var t=e.value,n=e.label;if(this.input.value=n||t,"function"!=typeof this.configOptions.onSelectOption)throw new Error('Callback "onSelectOption" is not a function');this.configOptions.onSelectOption.call(this,(0,l.EventEmitter)({value:t,label:n}))}},{key:"clearInput",value:function(){this._setInputValue({value:"",label:""})}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{value:"",label:""},t=e.value;e.label;if(t){var n=this.selectOptions.find(function(e){return e.value===t});n?(n.element.classList.add("blip-select__option--selected"),this._setInputValue({value:n.value,label:n.label})):this._setInputValue({value:t})}}},{key:"getValue",value:function(){var e=this;if(!this.input.value)return{value:void 0,label:void 0};var t=this.selectOptions.find(function(t){return t.label===e.input.value});return t?{value:t.value,label:t.label}:{value:this.input.value,label:this.input.value}}},{key:"_onOptionClick",value:function(e){this.isSelectOpen&&(this._setInputValue(this.selectOptions.find(function(t){return t.value===e.target.getAttribute("data-value")})),this._resetSelectedOptions(),e.target.classList.add("blip-select__option--selected"),this._closeSelect())}},{key:"_resetSelectedOptions",value:function(){Array.prototype.forEach.call(this.selectOptionsContainer.querySelectorAll("li"),function(e){return e.classList.contains("blip-select__option--selected")?e.classList.remove("blip-select__option--selected"):""})}},{key:"_onSelectFocus",value:function(){if(!this.isDisabled){if("function"!=typeof this.configOptions.beforeOpenSelect)throw Error('Callback "beforeOpenSelect" is not a function');if("function"!=typeof this.configOptions.afterOpenSelect)throw Error('Callback "afterOpenSelect" is not a function');this.configOptions.beforeOpenSelect(),this._openSelect(),this.configOptions.afterOpenSelect()}}},{key:"_onSelectBlur",value:function(e){var t=this;e.relatedTarget&&e.relatedTarget.classList.contains("blip-select__option")||setTimeout(function(){t._closeSelect()},100)}},{key:"_openSelect",value:function(){var e=this;this.selectOptionsContainer.style.display="block",setTimeout(function(){var t=e.selectOptionsContainer.offsetHeight,n=e.wrapper.getBoundingClientRect().top,i=window.innerHeight-n;i<t&&n>t||n>i?(e.selectOptionsContainer.classList.add("blip-select__options--open-top"),e.selectOptionsContainerOpenPosition="top"):e.selectOptionsContainerOpenPosition="bottom",e.selectOptionsContainer.style.transform="scale(1)",e.selectOptionsContainer.style.opacity=1}),this.input.parentNode.classList.add("bp-input-wrapper--focus"),this.selectLabel.classList.remove("bp-c-rooftop"),this.selectLabel.classList.add("bp-c-blip-light"),this.isSelectOpen=!0}},{key:"_centerSelectedOption",value:function(e){var t=this.selectOptionsContainer.querySelector("li.blip-select__option--selected");if(this.selectOptionsContainer.scrollHeight>this.selectOptionsContainer.clientHeight&&"transform"===e.propertyName){if(!t)return;var n=t.getBoundingClientRect().top-this.selectOptionsContainer.getBoundingClientRect().top;n-=this.selectOptionsContainer.clientHeight/2,this.selectOptionsContainer.scrollTop=n}}},{key:"_closeSelect",value:function(){var e=this;if("function"!=typeof this.configOptions.beforeCloseSelect)throw Error('Callback "beforeCloseSelect" is not a function');if("function"!=typeof this.configOptions.afterCloseSelect)throw Error('Callback "afterCloseSelect" is not a function');this.configOptions.beforeCloseSelect(),this.selectOptionsContainer.style.transform="scale(0)",this.selectOptionsContainer.style.opacity=0,setTimeout(function(){e.selectOptionsContainer.style.display="none",e.selectOptionsContainer.classList.remove("blip-select__options--open-top")},300),this.input.parentNode.classList.remove("bp-input-wrapper--focus"),this.selectLabel.classList.remove("bp-c-blip-light"),this.selectLabel.classList.add("bp-c-rooftop"),this.isSelectOpen=!1,this.configOptions.afterCloseSelect()}},{key:"_removeElements",value:function(){this.wrapper.parentNode.removeChild(this.wrapper)}},{key:"_removeEventHandlers",value:function(){this.input.removeEventListener("focus",this._handleSelectFocus),this.input.removeEventListener("blur",this._handleSelectBlur),this.input.removeEventListener("keyup",this._handleInputChange)}},{key:"destroy",value:function(){this._removeEventHandlers(),this._removeElements(),this.el.style.display="inline-block"}},{key:"isSelectOpen",get:function(){return this.$state.isSelectOpen},set:function(e){this.$state.isSelectOpen=e}},{key:"noResultsFound",get:function(){return this.$state.noResultsFound},set:function(e){switch(this.$state.noResultsFound=e,e){case!0:this.selectOptionsContainer.innerHTML='<li style="cursor: default" class="blip-select__option">'+this.configOptions.noResultsText+"</li>"}}},{key:"isDisabled",get:function(){return this.$state.disabled},set:function(e){switch(this.$state.disabled=e,this.input.disabled=e,e){case!0:this.wrapper.classList.add("bp-input-wrapper--disabled");break;case!1:this.wrapper.classList.remove("bp-input-wrapper--disabled")}}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlipSelect=void 0;var i=n(4);Object.defineProperty(t,"BlipSelect",{enumerable:!0,get:function(){return i.BlipSelect}}),n(1)},function(e,t,n){e.exports=n(5)}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BLiPToolkit=t():e.BLiPToolkit=t()}(window,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EventEmitter=function(e){return{$event:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,s;t.strToEl=(i=document.createElement("div"),function(e){var t,n=e.trim();for(i.innerHTML=n,t=i.children[0];i.firstChild;)i.removeChild(i.firstChild);return t}),t.guid=(s=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},function(){return s()+s()+"-"+s()+"-"+s()+"-"+s()+"-"+s()+s()+s()})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlipSelect=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(3),l=n(2);t.BlipSelect=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$state={isSelectOpen:!1,noResultsFound:!1,disabled:!1,label:"",placeholder:"",mode:"select",noResultsText:"No results found",beforeOpenSelect:function(){},afterOpenSelect:function(){},beforeCloseSelect:function(){},afterCloseSelect:function(){},onInputChange:function(e){e.$event},onSelectOption:function(e){e.$event},customSearch:void 0},this.wrapper="",this.elementLabel="",this.selectOptions=[],this.searchResults=[],this.selectOptionsContainer="",this.selectOptionsContainerOpenPosition="",this.selectLabel="",this._handleSelectFocus="",this._handleSelectBlur="",this._handleOptionClick="",this.parentNode="",this.configOptions=i({},this.$state,n),this.el=t,this._setup(),this._setupEventHandlers()}return s(e,[{key:"_setup",value:function(){var e=this;if(this.el instanceof Element==!1)throw new Error("Invalid dom element");var t=this.el.querySelectorAll("option");if(0===t.length)throw new Error("Element has no options");switch(this.parentNode=this.el.parentNode,this.customSelectId="blip-select__options-"+(0,o.guid)(),this.configOptions.mode){case"select":this.wrapper=(0,o.strToEl)('\n <div tabindex="0" class="bp-input-wrapper blip-select bp-input--with-bullet">\n <label class="bp-label bp-c-rooftop">'+this.configOptions.label+'</label>\n <input placeholder="'+this.configOptions.placeholder+'" class="blip-select__input bp-c-cloud" data-target="'+this.customSelectId+'" readonly>\n <ul class="blip-select__options" id="'+this.customSelectId+'"></ul>\n </div>\n ');break;case"autocomplete":this.wrapper=(0,o.strToEl)('\n <div tabindex="0" class="bp-input-wrapper blip-select">\n <label class="bp-label bp-c-rooftop">'+this.configOptions.label+'</label>\n <input placeholder="'+this.configOptions.placeholder+'" class="blip-select__input bp-c-cloud" data-target="'+this.customSelectId+'">\n <ul class="blip-select__options" id="'+this.customSelectId+'"></ul>\n </div>\n ');break;default:throw new Error("Unrecognized component mode")}this.parentNode.insertBefore(this.wrapper,this.el),this.selectOptionsContainer=this.wrapper.querySelector("#"+this.customSelectId),this.selectLabel=this.wrapper.querySelector("label"),Array.prototype.forEach.call(t,function(t){e.selectOptions=e.selectOptions.concat({value:t.value,label:t.label,element:t})}),this._arrayToDomOptions(this.selectOptions),this.input=this.wrapper.querySelector('input[data-target="'+this.customSelectId+'"]'),this.el.style.display="none",this.isDisabled=this.el.disabled}},{key:"_arrayToDomOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[{value:"",label:""}];this.selectOptionsContainer.innerHTML="",t.forEach(function(t){var n=t.value,i=t.label;e.selectOptionsContainer.appendChild((0,o.strToEl)('\n <li tabindex="0" class="blip-select__option" data-value="'+n+'">'+i+"</li>\n "))}),this._setupOptionsEventHandlers()}},{key:"_setupOptionsEventHandlers",value:function(){var e=this;Array.prototype.forEach.call(this.selectOptionsContainer.querySelectorAll("li"),function(t){return t.addEventListener("click",e._onOptionClick.bind(e))})}},{key:"_setupEventHandlers",value:function(){switch(this._handleSelectFocus=this._onSelectFocus.bind(this),this._handleSelectBlur=this._onSelectBlur.bind(this),this._handleCenterOption=this._centerSelectedOption.bind(this),this._handleInputChange=this._onInputChange.bind(this),this.input.addEventListener("focus",this._handleSelectFocus),this.input.addEventListener("blur",this._handleSelectBlur),this.configOptions.mode){case"autocomplete":this.input.addEventListener("keyup",this._handleInputChange)}this.selectOptionsContainer.addEventListener("transitionend",this._handleCenterOption)}},{key:"_onInputChange",value:function(e){if("function"!=typeof this.configOptions.onInputChange)throw new Error('Callback "onInputChange" is not a function');var t=this.input.value,n=this.configOptions.customSearch?this.configOptions.customSearch.call(this,(0,l.EventEmitter)({query:t,items:this.selectOptions})):this.selectOptions.filter(function(e){e.value;return e.label.toLowerCase().includes(t.toLowerCase())});this.configOptions.onInputChange((0,l.EventEmitter)({value:t,event:e})),n.length>0?(this.noResultsFound=!1,this._arrayToDomOptions(n)):this.noResultsFound=!0}},{key:"_setInputValue",value:function(e){var t=e.value,n=e.label;if(this.input.value=n||t,"function"!=typeof this.configOptions.onSelectOption)throw new Error('Callback "onSelectOption" is not a function');this.configOptions.onSelectOption.call(this,(0,l.EventEmitter)({value:t,label:n}))}},{key:"clearInput",value:function(){this._setInputValue({value:"",label:""})}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{value:"",label:""},t=e.value;e.label;if(t){var n=this.selectOptions.find(function(e){return e.value===t});n?(n.element.classList.add("blip-select__option--selected"),this._setInputValue({value:n.value,label:n.label})):this._setInputValue({value:t})}}},{key:"getValue",value:function(){var e=this;if(!this.input.value)return{value:void 0,label:void 0};var t=this.selectOptions.find(function(t){return t.label===e.input.value});return t?{value:t.value,label:t.label}:{value:this.input.value,label:this.input.value}}},{key:"_onOptionClick",value:function(e){this.isSelectOpen&&(this._setInputValue(this.selectOptions.find(function(t){return t.value===e.target.getAttribute("data-value")})),this._resetSelectedOptions(),e.target.classList.add("blip-select__option--selected"),this._closeSelect())}},{key:"_resetSelectedOptions",value:function(){Array.prototype.forEach.call(this.selectOptionsContainer.querySelectorAll("li"),function(e){return e.classList.contains("blip-select__option--selected")?e.classList.remove("blip-select__option--selected"):""})}},{key:"_onSelectFocus",value:function(){if(!this.isDisabled){if("function"!=typeof this.configOptions.beforeOpenSelect)throw Error('Callback "beforeOpenSelect" is not a function');if("function"!=typeof this.configOptions.afterOpenSelect)throw Error('Callback "afterOpenSelect" is not a function');this.configOptions.beforeOpenSelect(),this._openSelect(),this.configOptions.afterOpenSelect()}}},{key:"_onSelectBlur",value:function(e){var t=this;e.relatedTarget&&e.relatedTarget.classList.contains("blip-select__option")||setTimeout(function(){t._closeSelect()},100)}},{key:"_openSelect",value:function(){var e=this;this.selectOptionsContainer.style.display="block",setTimeout(function(){var t=e.selectOptionsContainer.offsetHeight,n=e.wrapper.getBoundingClientRect().top,i=window.innerHeight-n;i<t&&n>t&&n>i?(e.selectOptionsContainer.classList.add("blip-select__options--open-top"),e.selectOptionsContainerOpenPosition="top"):e.selectOptionsContainerOpenPosition="bottom",e.selectOptionsContainer.style.transform="scale(1)",e.selectOptionsContainer.style.opacity=1}),this.input.parentNode.classList.add("bp-input-wrapper--focus"),this.selectLabel.classList.remove("bp-c-rooftop"),this.selectLabel.classList.add("bp-c-blip-light"),this.isSelectOpen=!0}},{key:"_centerSelectedOption",value:function(e){var t=this.selectOptionsContainer.querySelector("li.blip-select__option--selected");if(this.selectOptionsContainer.scrollHeight>this.selectOptionsContainer.clientHeight&&"transform"===e.propertyName){if(!t)return;var n=t.getBoundingClientRect().top-this.selectOptionsContainer.getBoundingClientRect().top;n-=this.selectOptionsContainer.clientHeight/2,this.selectOptionsContainer.scrollTop=n}}},{key:"_closeSelect",value:function(){var e=this;if("function"!=typeof this.configOptions.beforeCloseSelect)throw Error('Callback "beforeCloseSelect" is not a function');if("function"!=typeof this.configOptions.afterCloseSelect)throw Error('Callback "afterCloseSelect" is not a function');this.configOptions.beforeCloseSelect(),this.selectOptionsContainer.style.transform="scale(0)",this.selectOptionsContainer.style.opacity=0,setTimeout(function(){e.selectOptionsContainer.style.display="none",e.selectOptionsContainer.classList.remove("blip-select__options--open-top")},300),this.input.parentNode.classList.remove("bp-input-wrapper--focus"),this.selectLabel.classList.remove("bp-c-blip-light"),this.selectLabel.classList.add("bp-c-rooftop"),this.isSelectOpen=!1,this.configOptions.afterCloseSelect()}},{key:"_removeElements",value:function(){this.wrapper.parentNode.removeChild(this.wrapper)}},{key:"_removeEventHandlers",value:function(){this.input.removeEventListener("focus",this._handleSelectFocus),this.input.removeEventListener("blur",this._handleSelectBlur),this.input.removeEventListener("keyup",this._handleInputChange)}},{key:"destroy",value:function(){this._removeEventHandlers(),this._removeElements(),this.el.style.display="inline-block"}},{key:"isSelectOpen",get:function(){return this.$state.isSelectOpen},set:function(e){this.$state.isSelectOpen=e}},{key:"noResultsFound",get:function(){return this.$state.noResultsFound},set:function(e){switch(this.$state.noResultsFound=e,e){case!0:this.selectOptionsContainer.innerHTML='<li style="cursor: default" class="blip-select__option">'+this.configOptions.noResultsText+"</li>"}}},{key:"isDisabled",get:function(){return this.$state.disabled},set:function(e){switch(this.$state.disabled=e,this.input.disabled=e,e){case!0:this.wrapper.classList.add("bp-input-wrapper--disabled");break;case!1:this.wrapper.classList.remove("bp-input-wrapper--disabled")}}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlipSelect=void 0;var i=n(4);Object.defineProperty(t,"BlipSelect",{enumerable:!0,get:function(){return i.BlipSelect}}),n(1)},function(e,t,n){e.exports=n(5)}])}); |
{ | ||
"name": "blip-toolkit", | ||
"description": "'BLiP's Toolkit'", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "dist/blip-toolkit.js", |
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