diff --git a/dist/ext-jquery-ui.css b/dist/ext-jquery-ui.css index 9d9f81f..57885bb 100644 --- a/dist/ext-jquery-ui.css +++ b/dist/ext-jquery-ui.css @@ -1,4 +1,4 @@ -/*! Ben's jQuery UI Extensions - v1.0.7 - 2013-10-22 +/*! Ben's jQuery UI Extensions - v1.0.8 - 2013-10-22 * https://github.com/bseth99/jquery-ui-extensions * Includes: jquery.ui.spinner.css, jquery.ui.slidespinner.css, jquery.ui.labeledslider.css, jquery.ui.combobox.css, jquery.ui.waitbutton.css * Copyright 2013 Ben Olson; Licensed MIT */ diff --git a/dist/ext-jquery-ui.js b/dist/ext-jquery-ui.js index a921ea2..4321f18 100644 --- a/dist/ext-jquery-ui.js +++ b/dist/ext-jquery-ui.js @@ -1,4 +1,4 @@ -/*! Ben's jQuery UI Extensions - v1.0.7 - 2013-10-22 +/*! Ben's jQuery UI Extensions - v1.0.8 - 2013-10-22 * https://github.com/bseth99/jquery-ui-extensions * Includes: jquery.ui.spinner.js, jquery.ui.combobox.js, jquery.ui.labeledslider.js, jquery.ui.slidespinner.js, jquery.ui.waitbutton.js * Copyright 2013 Ben Olson; Licensed MIT */ @@ -16,7 +16,7 @@ function modifier( fn ) { } $.widget( "ui.spinner", { - version: "1.0.7", + version: "1.0.8", defaultElement: "", widgetEventPrefix: "spin", options: { @@ -526,7 +526,7 @@ $.widget( "ui.spinner", { $.widget( "ui.combobox", { - version: "1.0.7", + version: "1.0.8", widgetEventPrefix: "combobox", @@ -739,7 +739,7 @@ $.widget( "ui.spinner", { $.widget( "ui.labeledslider", $.ui.slider, { - version: "1.0.7", + version: "1.0.8", options: { tickInterval: 0, @@ -853,7 +853,7 @@ $.widget( "ui.spinner", { $.widget( "ui.slidespinner", $.ui.spinner, { - version: "1.0.7", + version: "1.0.8", widgetEventPrefix: "slidespinner", @@ -946,7 +946,7 @@ $.widget( "ui.slidespinner", $.ui.spinner, { (function ( $, undefined ) { $.widget( "ui.waitbutton", $.ui.button, { - version: "1.0.7", + version: "1.0.8", // Keep button prefix instead of waitbutton // otherwise waiting event is waitbuttonwaiting diff --git a/dist/ext-jquery-ui.min.css b/dist/ext-jquery-ui.min.css index e55168e..458f5b4 100644 --- a/dist/ext-jquery-ui.min.css +++ b/dist/ext-jquery-ui.min.css @@ -1,4 +1,4 @@ -/*! Ben's jQuery UI Extensions - v1.0.7 - 2013-10-22 +/*! Ben's jQuery UI Extensions - v1.0.8 - 2013-10-22 * https://github.com/bseth99/jquery-ui-extensions * Includes: jquery.ui.spinner.css, jquery.ui.slidespinner.css, jquery.ui.labeledslider.css, jquery.ui.combobox.css, jquery.ui.waitbutton.css * Copyright 2013 Ben Olson; Licensed MIT */ .ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:0;background:0;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-right .ui-spinner-input{margin:.2em 0;margin-left:.4em;margin-right:22px}.ui-spinner-left .ui-spinner-input{margin:.2em 0;margin-right:.4em;margin-left:22px;text-align:right}.ui-spinner-vertical .ui-spinner-input{margin:0 .2em;margin-top:12px;margin-bottom:12px;text-align:center}.ui-spinner-horizontal .ui-spinner-input{margin:.2em 0;margin-left:12px;margin-right:12px;text-align:center}.ui-spinner-button{font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden}.ui-spinner-right .ui-spinner-button{width:16px;height:50%;right:0}.ui-spinner-left .ui-spinner-button{width:16px;height:50%;left:0}.ui-spinner-vertical .ui-spinner-button{width:100%;height:10px;left:0}.ui-spinner-horizontal .ui-spinner-button{width:10px;height:100%;top:0}.ui-spinner a.ui-spinner-button{border:0}.ui-spinner .ui-icon{position:absolute}.ui-spinner-right .ui-icon{margin-top:-8px;top:50%;left:0}.ui-spinner-left .ui-icon{margin-top:-8px;top:50%;left:0}.ui-spinner-vertical .ui-icon{margin-top:-3px;margin-left:-7px;top:0;left:50%}.ui-spinner-horizontal .ui-icon{margin-top:-8.5px;margin-left:-3px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner-horizontal .ui-spinner-up{right:0}.ui-spinner-horizontal .ui-spinner-down{left:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-slidespinner{position:relative;display:inline-block}.ui-slidespinner .ui-spinner-vertical{margin-right:20px}.ui-slidespinner .ui-spinner-horizontal{margin-bottom:20px}.ui-slidespinner input{width:2.5em}.ui-slidespinner div{position:absolute;font-size:7pt}.ui-slider-wrapper{position:relative}.ui-slider-wrapper .ui-slider-horizontal{width:100%}.ui-slider-labels{position:absolute;border:1px solid transparent}.ui-slider-label-ticks{border:1px solid transparent;position:absolute;white-space:nowrap}.ui-slider-label-ticks span{font-size:.9em;min-width:1.2em}.ui-slider-wrapper.horizontal{height:4.5em}.horizontal .ui-slider-labels{left:0;right:0;top:.7em}.horizontal .ui-slider-label-ticks{width:1.2em;height:.8em;text-align:center;border-left:1px solid #999}.horizontal .ui-slider-label-ticks span{position:relative;display:inline-block;margin-left:-1.2em;top:.8em}.ui-slider-wrapper.vertical{width:4.5em}.vertical .ui-slider-labels{top:1px;bottom:0;left:.7em}.vertical .ui-slider-label-ticks{height:1.2em;width:.8em;border-bottom:1px solid #999}.vertical .ui-slider-label-ticks span{position:relative;display:inline-block;margin-left:1em;top:.6em}.ui-combobox{display:inline-block;margin:0;margin-right:1.8em;position:relative}.ui-combobox-input{padding:.2em;margin:0}.ui-combobox-button{position:absolute;width:1.8em!important;margin:0;margin-left:-1px;top:0;bottom:0}.ui-combobox-button .ui-button-text{padding:0}.ui-combobox .ui-autocomplete{max-height:10em;overflow-y:auto;overflow-x:hidden}.ui-wait-button .ui-icon-waiting{background-image:url(images/waitbutton-loading.gif);background-position:0 center} \ No newline at end of file diff --git a/dist/ext-jquery-ui.min.js b/dist/ext-jquery-ui.min.js index a66e820..76e4c38 100644 --- a/dist/ext-jquery-ui.min.js +++ b/dist/ext-jquery-ui.min.js @@ -1,5 +1,5 @@ -/*! Ben's jQuery UI Extensions - v1.0.7 - 2013-10-22 +/*! Ben's jQuery UI Extensions - v1.0.8 - 2013-10-22 * https://github.com/bseth99/jquery-ui-extensions * Includes: jquery.ui.spinner.js, jquery.ui.combobox.js, jquery.ui.labeledslider.js, jquery.ui.slidespinner.js, jquery.ui.waitbutton.js * Copyright 2013 Ben Olson; Licensed MIT */ -(function(t){function i(t){return function(){var i=this.element.val();t.apply(this,arguments),this._refresh(),i!==this.element.val()&&this._trigger("change")}}t.widget("ui.spinner",{version:"1.0.7",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,alignment:"right",icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n",left:"ui-icon-triangle-1-w",right:"ui-icon-triangle-1-e"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var i={},e=this.element;return t.each(["min","max","step"],function(t,n){var s=e.attr(n);void 0!==s&&s.length&&(i[n]=s)}),i},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t),void 0)},mousewheel:function(t,i){if(i){if(!this.spinning&&!this._start(t))return!1;this._spin((i>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(i){function e(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),i.preventDefault(),e.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,e.call(this)}),this._start(i)!==!1&&this._repeat(null,t(i.currentTarget).hasClass("ui-spinner-up")?1:-1,i)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(i){return t(i.currentTarget).hasClass("ui-state-active")?this._start(i)===!1?!1:(this._repeat(null,t(i.currentTarget).hasClass("ui-spinner-up")?1:-1,i),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().addClass("ui-spinner-"+this.options.alignment).append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(i){var e=this.options,n=t.ui.keyCode;switch(i.keyCode){case n.UP:return this._repeat(null,1,i),!0;case n.DOWN:return this._repeat(null,-1,i),!0;case n.PAGE_UP:return this._repeat(null,e.page,i),!0;case n.PAGE_DOWN:return this._repeat(null,-e.page,i),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){switch(this.options.alignment){case"right":return""+""+""+""+"";case"left":return""+""+""+""+"";case"vertical":return""+""+""+""+"";case"horizontal":return""+""+""+""+""}},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,i,e){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,i,e)},t),this._spin(i*this.options.step,e)},_spin:function(t,i){var e=this.value()||0;this.counter||(this.counter=1),e=this._adjustValue(e+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",i,{value:e})===!1||(this._value(e),this.counter++)},_increment:function(i){var e=this.options.incremental;return e?t.isFunction(e)?e(i):Math.floor(i*i*i/5e4-i*i/500+17*i/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var i=""+t,e=i.indexOf(".");return-1===e?0:i.length-e-1},_adjustValue:function(t){var i,e,n=this.options;return i=null!==n.min?n.min:0,e=t-i,e=Math.round(e/n.step)*n.step,t=i+e,t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&n.min>t?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,i){if("culture"===t||"numberFormat"===t){var e=this._parse(this.element.val());return this.options[t]=i,this.element.val(this._format(e)),void 0}("max"===t||"min"===t||"step"===t)&&"string"==typeof i&&(i=this._parse(i)),"icons"===t&&("horizontal"==this.options.alignment?(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.left).addClass(i.left),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.right).addClass(i.right)):(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(i.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(i.down))),this._super(t,i),"disabled"===t&&(this.widget().toggleClass("ui-state-disabled",!!i),this.element.prop("disabled",!!i),this.buttons.button(i?"disable":"enable"))},_setOptions:i(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(t,i){var e;""!==t&&(e=this._parse(t),null!==e&&(i||(e=this._adjustValue(e)),t=this._format(e))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:i(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:i(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:i(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:i(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?(i(this._value).call(this,t),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})})(jQuery),function(t){t.widget("ui.combobox",{version:"1.0.7",widgetEventPrefix:"combobox",uiCombo:null,uiInput:null,_wasOpen:!1,_create:function(){var i,e,n=this.element.hide();i=this.uiInput=t("").insertAfter(n).addClass("ui-widget ui-widget-content ui-corner-left ui-combobox-input").val(n.children(":selected").text()),e=this.uiCombo=i.wrap("").parent().addClass("ui-combobox").insertAfter(n),i.autocomplete({delay:0,minLength:0,appendTo:e,source:t.proxy(this,"_linkSelectList")}),t("