diff --git a/ajax/libs/jquery.selectboxit/2.6.0/jquery.selectBoxIt.css b/ajax/libs/jquery.selectboxit/2.6.0/jquery.selectBoxIt.css new file mode 100644 index 000000000..6859d0a5f --- /dev/null +++ b/ajax/libs/jquery.selectboxit/2.6.0/jquery.selectBoxIt.css @@ -0,0 +1,163 @@ +/* + * jquery.selectBoxIt.css 2.6.0 + * Author: @gregfranko + */ + +/* Div container holding the dropdown list */ +.selectboxit-container { + position: relative; + display: inline-block; + /* Prevents text selection */ + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: -moz-none; + ms-user-select: none; + -o-user-select: none; + user-select: none; +} + +/* Dropdown List Box */ +.selectboxit-container .selectboxit { + width: 220px; /* Width of the dropdown list box */ + height: 30px; /* Height of the select box */ + cursor: pointer; + padding: 0; + display: block; + border-radius: 6px; + margin: 0; +} + +.selectboxit-container .selectboxit.selectboxit-disabled { + cursor: default; +} + +/* Dropdown list Default Icon Positioning */ +.selectboxit-default-icon { + float: left; +} + +/* Dropdown List Box Text */ +.selectboxit-text { + font: 14px Helvetica, Arial; + text-indent: 5px; + line-height: 30px; + overflow: hidden; + float: left; + white-space: nowrap; +} + +/* Dropdown List Options List*/ +.selectboxit-container .selectboxit-options { + min-width: 220px; /* Minimum Width of the dropdown list box options */ + font: 14px Helvetica, Arial; + margin: 0; + padding: 0; + list-style: none; + position: absolute; + overflow: auto; + cursor: pointer; + display: none; + z-index: 9999999999999; + outline: none; + top: auto; + bottom: auto; + left: auto; + right: auto; + -moz-box-shadow: none; /* Firefox */ + -webkit-box-shadow: none; /* Safari, Chrome */ + box-shadow: none; /* CSS3 */ + border-radius: 6px; + text-align: left; +} + +/* Overrides Bootstrap drop down option style */ +.selectboxit-options .selectboxit-option.active .selectboxit-option-anchor { + color: #fff; +} + +.selectboxit-option .selectboxit-option-anchor { + padding: 0px 3px; + line-height: 30px; +} + +.selectboxit-option .selectboxit-option-anchor:hover { + text-decoration: none; +} + +/* Dropdown List Individual Options */ +.selectboxit-option, .selectboxit-optgroup-header { + line-height: 30px; /* Height of Individual Select Box Options */ + text-indent: 5px; /* Horizontal Positioning of the select box option text */ + overflow: hidden; + white-space: nowrap; + list-style: none; + margin: 0; +} + +/* The first drop down option */ +.selectboxit-option-first { + border-top-right-radius: 6px; + border-top-left-radius: 6px; +} + +/* The last drop down option */ +.selectboxit-option-last { + border-bottom-right-radius: 6px; + border-bottom-left-radius: 6px; +} + +/* Dropdown List Optgroup Headers */ +.selectboxit-optgroup-header { + font-weight: bold; +} + +/* Dropdown List Optgroup Options */ +.selectboxit-optgroup-option { + text-indent: 20px; +} + +/* Dropdown List Optgroup Header hover psuedo class */ +.selectboxit-optgroup-header[data-disabled='true']:hover { + cursor: default; +} + +/* Dropdown List Down Arrow Container (if an image is not used) */ +.selectboxit-arrow-container { + /* Positions the down arrow */ + width: 30px; + float: right; + position: relative; +} + +/* Dropdown List Down Arrow */ +.selectboxit .selectboxit-arrow-container .selectboxit-arrow { + /* Horizontally centers the down arrow */ + margin: 0 auto; + display: block; + position: absolute; + top: 50%; + right: 40%; +} + +/* Dropdown List Down Arrow For jQueryUI and jQuery Mobile */ +.selectboxit .selectboxit-arrow-container .selectboxit-arrow.ui-icon { + top: 30%; +} + +/* Dropdown List Individual Option Icon Positioning */ +.selectboxit-option-icon { + float: left; +} + +/* Dropdown List Individual Option Image Positioning */ +.selectboxit-option-icon-url { + width: 18px; + height: 18px; + background-size: 18px 18px; + background-repeat: no-repeat; +} + +.selectboxit-default-icon.selectboxit-option-icon-url { + margin-left: 5px; +} \ No newline at end of file diff --git a/ajax/libs/jquery.selectboxit/2.6.0/jquery.selectBoxIt.min.js b/ajax/libs/jquery.selectboxit/2.6.0/jquery.selectBoxIt.min.js new file mode 100644 index 000000000..aa724ff90 --- /dev/null +++ b/ajax/libs/jquery.selectboxit/2.6.0/jquery.selectBoxIt.min.js @@ -0,0 +1,11 @@ +(function(e){"use strict";e(window.jQuery,window,document)})(function(e,t,n,r){"use strict";e.widget("selectBox.selectBoxIt",{VERSION:"2.6.0",options:{showEffect:"none",showEffectOptions:{},showEffectSpeed:"medium",hideEffect:"none",hideEffectOptions:{},hideEffectSpeed:"medium",showFirstOption:!0,defaultText:"",defaultIcon:"",downArrowIcon:"",theme:"bootstrap",keydownOpen:!0,isMobile:function(){var e=navigator.userAgent||navigator.vendor||t.opera;return/iPhone|iPod|iPad|Android|BlackBerry|Opera Mini|IEMobile/.test(e)},nostyle:!1,"native":!1,aggressiveChange:!1},_create:function(){var t=this;return t.originalElem=t.element[0],t.selectBox=t.element,t.selectItems=t.element.find("option"),t.firstSelectItem=t.element.find("option").slice(0,1),t.currentFocus=0,t.blur=!0,t.documentHeight=e(n).height(),t.textArray=[],t.currentIndex=0,t.flipped=!1,t.disabledClasses=function(){return t.options.theme==="bootstrap"?"disabled":t.options.theme==="jqueryui"?"ui-state-disabled":t.options.theme==="jquerymobile"?"ui-disabled":"selectboxit-disabled"}(),t._createDiv()._createUnorderedList()._replaceSelectBox()._eventHandlers(),t.originalElem.disabled&&t.disable&&t.disable(),t._ariaAccessibility&&t._ariaAccessibility(),t.options.theme==="bootstrap"?t._twitterbootstrap():this.options.theme==="jqueryui"?t._jqueryui():this.options.theme==="jquerymobile"?t._jquerymobile():t._addClasses(),t._mobile(),t.options["native"]&&this._applyNativeSelect(),t.triggerEvent("create"),t},_createDiv:function(){var t=this;return t.divText=e("",{id:(t.originalElem.id||"")&&t.originalElem.id+"SelectBoxItText","class":"selectboxit-text",unselectable:"on",text:t.firstSelectItem.text()}).attr("data-val",t.originalElem.value),t.divImage=e("",{id:(t.originalElem.id||"")&&t.originalElem.id+"SelectBoxItDefaultIcon","class":"selectboxit-default-icon",unselectable:"on"}),t.div=e("",{id:(t.originalElem.id||"")&&t.originalElem.id+"SelectBoxIt","class":"selectboxit "+(t.selectBox.attr("class")||""),style:t.selectBox.attr("style"),name:t.originalElem.name,tabindex:t.selectBox.attr("tabindex")||"0",unselectable:"on"}).append(t.divImage).append(t.divText),t.divContainer=e("",{id:(t.originalElem.id||"")&&t.originalElem.id+"SelectBoxItContainer","class":"selectboxit-container"}).append(t.div),t},_createUnorderedList:function(){var t=this,n,r,i,s,o,u,a,f="",l=e("