//>>built require({cache:{"url:dijit/form/templates/Spinner.html":"
\n"}}); define("dijit/form/_Spinner",["dojo/_base/declare","dojo/_base/event","dojo/keys","dojo/_base/lang","dojo/sniff","dojo/mouse","../typematic","./RangeBoundTextBox","dojo/text!./templates/Spinner.html","./_TextBoxMixin"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a){ return _1("dijit.form._Spinner",_8,{defaultTimeout:500,minimumTimeout:10,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:_9,baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{"upArrowNode":"dijitUpArrowButton","downArrowNode":"dijitDownArrowButton"},adjust:function(_b){ return _b; },_arrowPressed:function(_c,_d,_e){ if(this.disabled||this.readOnly){ return; } this._setValueAttr(this.adjust(this.get("value"),_d*_e),false); _a.selectInputText(this.textbox,this.textbox.value.length); },_arrowReleased:function(){ this._wheelTimer=null; },_typematicCallback:function(_f,_10,evt){ var inc=this.smallDelta; if(_10==this.textbox){ var key=evt.charOrCode; inc=(key==_3.PAGE_UP||key==_3.PAGE_DOWN)?this.largeDelta:this.smallDelta; _10=(key==_3.UP_ARROW||key==_3.PAGE_UP)?this.upArrowNode:this.downArrowNode; } if(_f==-1){ this._arrowReleased(_10); }else{ this._arrowPressed(_10,(_10==this.upArrowNode)?1:-1,inc); } },_wheelTimer:null,_mouseWheeled:function(evt){ _2.stop(evt); var _11=evt.wheelDelta/120; if(Math.floor(_11)!=_11){ _11=evt.wheelDelta>0?1:-1; } var _12=evt.detail?(evt.detail*-1):_11; if(_12!==0){ var _13=this[(_12>0?"upArrowNode":"downArrowNode")]; this._arrowPressed(_13,_12,this.smallDelta); if(this._wheelTimer){ this._wheelTimer.remove(); } this._wheelTimer=this.defer(function(){ this._arrowReleased(_13); },50); } },postCreate:function(){ this.inherited(arguments); this.connect(this.domNode,_6.wheel,"_mouseWheeled"); this.own(_7.addListener(this.upArrowNode,this.textbox,{charOrCode:_3.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),_7.addListener(this.downArrowNode,this.textbox,{charOrCode:_3.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),_7.addListener(this.upArrowNode,this.textbox,{charOrCode:_3.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),_7.addListener(this.downArrowNode,this.textbox,{charOrCode:_3.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout)); }}); });