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("
    ",{id:(t.originalElem.id||"")&&t.originalElem.id+"SelectBoxItOptions","class":"selectboxit-options",tabindex:-1});return t.options.showFirstOption||(t.selectItems=t.selectBox.find("option").slice(1)),t.selectItems.each(function(l){r="",i="",n=e(this).prop("disabled"),s=e(this).data("icon")||"",o=e(this).data("iconurl")||"",u=o?"selectboxit-option-icon-url":"",a=o?"style=\"background-image:url('"+o+"');\"":"",e(this).parent().is("optgroup")&&(r="selectboxit-optgroup-option",e(this).index()===0&&(i='
    '+e(this).parent().first().attr("label")+"
    ")),f+=i+'
  • "+t.htmlEscape(e(this).text())+"
  • ",t.textArray[l]=e(this).text(),this.selected&&(t.divText.text(e(this).text()),t.currentFocus=l)}),t.options.defaultText&&t.divText.text(t.options.defaultText),t.selectBox.data("text")&&(t.divText.text(t.selectBox.data("text")),t.options.defaultText=t.selectBox.data("text")),l.append(f),t.list=l,t.divContainer.append(t.list),t.listItems=t.list.find("li"),t.listItems.first().addClass("selectboxit-option-first"),t.listItems.last().addClass("selectboxit-option-last"),t.list.find("li[data-disabled='true']").not(".optgroupHeader").addClass(t.disabledClasses),t.currentFocus===0&&!t.options.showFirstOption&&t.listItems.eq(0).hasClass(t.disabledClasses)&&(t.currentFocus=+t.listItems.not(".ui-state-disabled").first().attr("id")),t.divImage.addClass(t.selectBox.data("icon")||t.options.defaultIcon||t.listItems.eq(t.currentFocus).find("i").attr("class")),t.divImage.attr("style",t.listItems.eq(t.currentFocus).find("i").attr("style")),t},_replaceSelectBox:function(){var t=this;t.selectBox.css("display","none").after(t.divContainer);var n=t.div.height();return t.downArrow=e("",{id:(t.originalElem.id||"")&&t.originalElem.id+"SelectBoxItArrow","class":"selectboxit-arrow",unselectable:"on"}),t.downArrowContainer=e("",{id:(t.originalElem.id||"")&&t.originalElem.id+"SelectBoxItArrowContainer","class":"selectboxit-arrow-container",unselectable:"on"}).append(t.downArrow),t.div.append(this.options.nostyle?t.downArrow:t.downArrowContainer),t.options.nostyle||(t.downArrowContainer.css({height:n+"px"}),t.divText.css({"line-height":t.div.css("height"),"max-width":t.div.outerWidth()-(t.downArrowContainer.outerWidth()+t.divImage.outerWidth())}),t.divImage.css({"margin-top":n/4}),t.listItems.removeClass("selectboxit-selected").eq(t.currentFocus).addClass("selectboxit-selected")),t},_scrollToView:function(e){var t=this,n=t.list.scrollTop(),r=t.listItems.eq(t.currentFocus).height(),i=t.listItems.eq(t.currentFocus).position().top,s=t.list.height();return e==="search"?s-i/g,">")},triggerEvent:function(e){var t=this,n=t.options.showFirstOption?t.currentFocus:t.currentFocus-1>=0?t.currentFocus:0;return t.selectBox.trigger(e,{elem:t.selectBox.eq(n),"dropdown-elem":t.listItems.eq(t.currentFocus)}),t}})}); +(function(e){"use strict";e(window.jQuery,window,document)})(function(e,t,n,r){"use strict";e.selectBox.selectBoxIt.prototype._ariaAccessibility=function(){var t=this;return t.div.attr({role:"combobox","aria-autocomplete":"list","aria-expanded":"false","aria-owns":t.list.attr("id"),"aria-activedescendant":t.listItems.eq(t.currentFocus).attr("id"),"aria-label":e("label[for='"+t.originalElem.id+"']").text()||"","aria-live":"assertive"}).bind({"disable.selectBoxIt":function(){t.div.attr("aria-disabled","true")},"enable.selectBoxIt":function(){t.div.attr("aria-disabled","false")}}),t.list.attr({role:"listbox","aria-hidden":"true"}),t.listItems.attr({role:"option"}),t.selectBox.bind({"change.selectBoxIt":function(){t.divText.attr("aria-label",t.originalElem.value)},"open.selectBoxIt":function(){t.list.attr("aria-hidden","false"),t.div.attr("aria-expanded","true")},"close.selectBoxIt":function(){t.list.attr("aria-hidden","true"),t.div.attr("aria-expanded","false")}}),t}}); +(function(e){"use strict";e(window.jQuery,window,document)})(function(e,t,n,r){"use strict";e.selectBox.selectBoxIt.prototype.disable=function(t){var n=this;return n.options.disabled||(n.close(),n.triggerEvent("disable"),n.selectBox.attr("disabled","disabled"),n.div.removeAttr("tabindex").addClass("selectboxit-disabled"),e.Widget.prototype.disable.call(n)),n._callbackSupport(t),n},e.selectBox.selectBoxIt.prototype.disableOption=function(e,t){var n=this,r,i,s;return typeof e=="number"&&(n.close(),r=n.selectBox.find("option").eq(e),n.triggerEvent("disable-option"),r.attr("disabled","disabled"),n.listItems.eq(e).attr("data-disabled","true").addClass(n.disabledClasses),n.currentFocus===e&&(i=n.listItems.eq(n.currentFocus).nextAll("li").not("[data-disabled='true']").first().length,s=n.listItems.eq(n.currentFocus).prevAll("li").not("[data-disabled='true']").first().length,i?n.moveDown():s?n.moveUp():n.disable())),n._callbackSupport(t),n},e.selectBox.selectBoxIt.prototype._isDisabled=function(e){var t=this;return t.originalElem.disabled&&t.disable(),t}}); +(function(e){"use strict";e(window.jQuery,window,document)})(function(e,t,n,r){"use strict";e.selectBox.selectBoxIt.prototype._dynamicPositioning=function(){var n=this,r=n.div.offset().top,i=n.list.data("max-height")||n.list.outerHeight(),s=n.div.outerHeight(),o=e(t).height(),u=e(t).scrollTop(),a=r+s+i<=o+u,f=!a;n.list.data("max-height")||n.list.data("max-height",n.list.outerHeight()),n.selectBox.css("display","none");if(!f)n.list.css("max-height",n.list.data("max-height")),n.list.css("top","auto");else if(n.div.offset().top-u>=i)n.list.css("max-height",n.list.data("max-height")),n.list.css("top",n.div.position().top-n.list.outerHeight());else{var l=Math.abs(r+s+i-(o+u)),c=Math.abs(n.div.offset().top-u-i);l