update dojo to 1.14.2
parent
ed1bd992d7
commit
f097f33836
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
//>>built
|
//>>built
|
||||||
define("dijit/_editor/_Plugin",["dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","../Destroyable","../form/Button"],function(_1,_2,_3,_4,_5){var _6=_2("dijit._editor._Plugin",_4,{constructor:function(_7){this.params=_7||{};_3.mixin(this,this.params);this._attrPairNames={};},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:true,buttonClass:_5,disabled:false,getLabel:function(_8){return this.editor.commands[_8];},_initButton:function(){if(this.command.length){var _9=this.getLabel(this.command),_a=this.editor,_b=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){var _c=_3.mixin({label:_9,ownerDocument:_a.ownerDocument,dir:_a.dir,lang:_a.lang,showLabel:false,iconClass:_b,dropDown:this.dropDown,tabIndex:"-1"},this.params||{});delete _c.name;this.button=new this.buttonClass(_c);}}if(this.get("disabled")&&this.button){this.button.set("disabled",this.get("disabled"));}},destroy:function(){if(this.dropDown){this.dropDown.destroyRecursive();}this.inherited(arguments);},connect:function(o,f,tf){this.own(_1.connect(o,f,this,tf));},updateState:function(){var e=this.editor,c=this.command,_d,_e;if(!e||!e.isLoaded||!c.length){return;}var _f=this.get("disabled");if(this.button){try{_e=!_f&&e.queryCommandEnabled(c);if(this.enabled!==_e){this.enabled=_e;this.button.set("disabled",!_e);}if(_e){if(typeof this.button.checked=="boolean"){_d=e.queryCommandState(c);if(this.checked!==_d){this.checked=_d;this.button.set("checked",e.queryCommandState(c));}}}}catch(e){}}},setEditor:function(_10){this.editor=_10;this._initButton();if(this.button&&this.useDefaultCommand){if(this.editor.queryCommandAvailable(this.command)){this.own(this.button.on("click",_3.hitch(this.editor,"execCommand",this.command,this.commandArg)));}else{this.button.domNode.style.display="none";}}this.own(this.editor.on("NormalizedDisplayChanged",_3.hitch(this,"updateState")));},setToolbar:function(_11){if(this.button){_11.addChild(this.button);}},set:function(_12,_13){if(typeof _12==="object"){for(var x in _12){this.set(x,_12[x]);}return this;}var _14=this._getAttrNames(_12);if(this[_14.s]){var _15=this[_14.s].apply(this,Array.prototype.slice.call(arguments,1));}else{this._set(_12,_13);}return _15||this;},get:function(_16){var _17=this._getAttrNames(_16);return this[_17.g]?this[_17.g]():this[_16];},_setDisabledAttr:function(_18){this._set("disabled",_18);this.updateState();},_getAttrNames:function(_19){var apn=this._attrPairNames;if(apn[_19]){return apn[_19];}var uc=_19.charAt(0).toUpperCase()+_19.substr(1);return (apn[_19]={s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(_1a,_1b){this[_1a]=_1b;}});_6.registry={};return _6;});
|
define("dijit/_editor/_Plugin",["dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","../Destroyable","../form/Button"],function(_1,_2,_3,_4,_5){var _6=_2("dijit._editor._Plugin",_4,{constructor:function(_7){this.params=_7||{};_3.mixin(this,this.params);this._attrPairNames={};},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:true,buttonClass:_5,disabled:false,getLabel:function(_8){return this.editor.commands[_8];},_initButton:function(){if(this.command.length){var _9=this.getLabel(this.command),_a=this.editor,_b=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){var _c=_3.mixin({label:_9,ownerDocument:_a.ownerDocument,dir:_a.dir,lang:_a.lang,showLabel:false,iconClass:_b,dropDown:this.dropDown,tabIndex:"-1"},this.params||{});delete _c.name;this.button=new this.buttonClass(_c);}}if(this.get("disabled")&&this.button){this.button.set("disabled",this.get("disabled"));}},destroy:function(){if(this.dropDown){this.dropDown.destroyRecursive();}this.inherited(arguments);},connect:function(o,f,tf){this.own(_1.connect(o,f,this,tf));},updateState:function(){var e=this.editor,c=this.command,_d,_e;if(!e||!e.isLoaded||!c.length){return;}var _f=this.get("disabled");if(this.button){try{var _10=e._implCommand(c);_e=!_f&&(this[_10]?this[_10](c):e.queryCommandEnabled(c));if(this.enabled!==_e){this.enabled=_e;this.button.set("disabled",!_e);}if(_e){if(typeof this.button.checked=="boolean"){_d=e.queryCommandState(c);if(this.checked!==_d){this.checked=_d;this.button.set("checked",e.queryCommandState(c));}}}}catch(e){}}},setEditor:function(_11){this.editor=_11;this._initButton();if(this.button&&this.useDefaultCommand){if(this.editor.queryCommandAvailable(this.command)){this.own(this.button.on("click",_3.hitch(this.editor,"execCommand",this.command,this.commandArg)));}else{this.button.domNode.style.display="none";}}this.own(this.editor.on("NormalizedDisplayChanged",_3.hitch(this,"updateState")));},setToolbar:function(_12){if(this.button){_12.addChild(this.button);}},set:function(_13,_14){if(typeof _13==="object"){for(var x in _13){this.set(x,_13[x]);}return this;}var _15=this._getAttrNames(_13);if(this[_15.s]){var _16=this[_15.s].apply(this,Array.prototype.slice.call(arguments,1));}else{this._set(_13,_14);}return _16||this;},get:function(_17){var _18=this._getAttrNames(_17);return this[_18.g]?this[_18.g]():this[_17];},_setDisabledAttr:function(_19){this._set("disabled",_19);this.updateState();},_getAttrNames:function(_1a){var apn=this._attrPairNames;if(apn[_1a]){return apn[_1a];}var uc=_1a.charAt(0).toUpperCase()+_1a.substr(1);return (apn[_1a]={s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(_1b,_1c){this[_1b]=_1c;}});_6.registry={};return _6;});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
//>>built
|
//>>built
|
||||||
define("dijit/form/NumberTextBox",["dojo/_base/declare","dojo/_base/lang","dojo/i18n","dojo/string","dojo/number","./RangeBoundTextBox"],function(_1,_2,_3,_4,_5,_6){var _7=function(_8){var _8=_8||{},_9=_3.getLocalization("dojo.cldr","number",_3.normalizeLocale(_8.locale)),_a=_8.pattern?_8.pattern:_9[(_8.type||"decimal")+"Format"];var _b;if(typeof _8.places=="number"){_b=_8.places;}else{if(typeof _8.places==="string"&&_8.places.length>0){_b=_8.places.replace(/.*,/,"");}else{_b=(_a.indexOf(".")!=-1?_a.split(".")[1].replace(/[^#0]/g,"").length:0);}}return {sep:_9.decimal,places:_b};};var _c=_1("dijit.form.NumberTextBoxMixin",null,{pattern:function(_d){return "("+(this.focused&&this.editOptions?this._regExpGenerator(_2.delegate(_d,this.editOptions))+"|":"")+this._regExpGenerator(_d)+")";},value:NaN,editOptions:{pattern:"#.######"},_formatter:_5.format,_regExpGenerator:_5.regexp,_decimalInfo:_7(),postMixInProperties:function(){this.inherited(arguments);this._set("type","text");},_setConstraintsAttr:function(_e){var _f=typeof _e.places=="number"?_e.places:0;if(_f){_f++;}if(typeof _e.max!="number"){_e.max=9*Math.pow(10,15-_f);}if(typeof _e.min!="number"){_e.min=-9*Math.pow(10,15-_f);}this.inherited(arguments,[_e]);if(this.focusNode&&this.focusNode.value&&!isNaN(this.value)){this.set("value",this.value);}this._decimalInfo=_7(_e);},_onFocus:function(){if(this.disabled||this.readOnly){return;}var val=this.get("value");if(typeof val=="number"&&!isNaN(val)){var _10=this.format(val,this.constraints);if(_10!==undefined){this.textbox.value=_10;}}this.inherited(arguments);},format:function(_11,_12){var _13=String(_11);if(typeof _11!="number"){return _13;}if(isNaN(_11)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_11,_12))&&_12.exponent!==false&&/\de[-+]?\d/i.test(_13)){return _13;}if(this.editOptions&&this.focused){_12=_2.mixin({},_12,this.editOptions);}return this._formatter(_11,_12);},_parser:_5.parse,parse:function(_14,_15){var _16=_2.mixin({},_15,(this.editOptions&&this.focused)?this.editOptions:{});if(this.focused&&_16.places!=null){var _17=_16.places;var _18=typeof _17==="number"?_17:Number(_17.split(",").pop());_16.places="0,"+_18;}var v=this._parser(_14,_16);if(this.editOptions&&this.focused&&isNaN(v)){v=this._parser(_14,_15);}return v;},_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_19){if(_19==null||typeof _19=="string"&&_19==""){return NaN;}else{if(typeof _19=="number"&&!isNaN(_19)&&_19!=0){_19=_5.round(_19,this._decimalInfo.places);}}return this.inherited(arguments,[_19]);},serialize:function(_1a,_1b){return (typeof _1a!="number"||isNaN(_1a))?"":this.inherited(arguments);},_setBlurValue:function(){var val=_2.hitch(_2.delegate(this,{focused:true}),"get")("value");this._setValueAttr(val,true);},_setValueAttr:function(_1c,_1d,_1e){if(_1c!==undefined&&_1e===undefined){_1e=String(_1c);if(typeof _1c=="number"){if(isNaN(_1c)){_1e="";}else{if(("rangeCheck" in this&&this.rangeCheck(_1c,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_1e)){_1e=undefined;}}}else{if(!_1c){_1e="";_1c=NaN;}else{_1c=undefined;}}}this.inherited(arguments,[_1c,_1d,_1e]);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)&&(new RegExp("^"+_5._realNumberRegexp(_2.delegate(this.constraints))+"$").test(this.textbox.value))){var n=Number(this.textbox.value);return isNaN(n)?undefined:n;}else{return undefined;}}else{return v;}},isValid:function(_1f){if(!this.focused||this._isEmpty(this.textbox.value)){return this.inherited(arguments);}else{var v=this.get("value");if(!isNaN(v)&&this.rangeCheck(v,this.constraints)){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)){return true;}else{return this.inherited(arguments);}}else{return false;}}},_isValidSubset:function(){var _20=(typeof this.constraints.min=="number"),_21=(typeof this.constraints.max=="number"),_22=this.get("value");if(isNaN(_22)||(!_20&&!_21)){return this.inherited(arguments);}var _23=_22|0,_24=_22<0,_25=this.textbox.value.indexOf(this._decimalInfo.sep)!=-1,_26=this.maxLength||20,_27=_26-this.textbox.value.length,_28=_25?this.textbox.value.split(this._decimalInfo.sep)[1].replace(/[^0-9]/g,""):"";var _29=_25?_23+"."+_28:_23+"";var _2a=_4.rep("9",_27),_2b=_22,_2c=_22;if(_24){_2b=Number(_29+_2a);}else{_2c=Number(_29+_2a);}return !((_20&&_2c<this.constraints.min)||(_21&&_2b>this.constraints.max));}});var _2d=_1("dijit.form.NumberTextBox",[_6,_c],{baseClass:"dijitTextBox dijitNumberTextBox"});_2d.Mixin=_c;return _2d;});
|
define("dijit/form/NumberTextBox",["dojo/_base/declare","dojo/_base/lang","dojo/i18n","dojo/string","dojo/number","./RangeBoundTextBox"],function(_1,_2,_3,_4,_5,_6){var _7=function(_8){var _8=_8||{},_9=_3.getLocalization("dojo.cldr","number",_3.normalizeLocale(_8.locale)),_a=_8.pattern?_8.pattern:_9[(_8.type||"decimal")+"Format"];var _b;if(typeof _8.places=="number"){_b=_8.places;}else{if(typeof _8.places==="string"&&_8.places.length>0){_b=_8.places.replace(/.*,/,"");}else{_b=(_a.indexOf(".")!=-1?_a.split(".")[1].replace(/[^#0]/g,"").length:0);}}return {sep:_9.decimal,places:_b};};var _c=_1("dijit.form.NumberTextBoxMixin",null,{pattern:function(_d){return "("+(this.focused&&this.editOptions?this._regExpGenerator(_2.delegate(_d,this.editOptions))+"|":"")+this._regExpGenerator(_d)+")";},value:NaN,editOptions:{pattern:"#.######"},_formatter:_5.format,_regExpGenerator:_5.regexp,_decimalInfo:_7(),postMixInProperties:function(){this.inherited(arguments);this._set("type","text");},_setConstraintsAttr:function(_e){var _f=typeof _e.places=="number"?_e.places:0;if(_f){_f++;}if(typeof _e.max!="number"){_e.max=9*Math.pow(10,15-_f);}if(typeof _e.min!="number"){_e.min=-9*Math.pow(10,15-_f);}this.inherited(arguments,[_e]);if(this.focusNode&&this.focusNode.value&&!isNaN(this.value)){this.set("value",this.value);}this._decimalInfo=_7(_e);},_onFocus:function(by){if(this.disabled||this.readOnly){return;}var val=this.get("value");if(typeof val=="number"&&!isNaN(val)){var _10=this.format(val,this.constraints);if(_10!==undefined){this.textbox.value=_10;if(by!=="mouse"){this.textbox.select();}}}this.inherited(arguments);},format:function(_11,_12){var _13=String(_11);if(typeof _11!="number"){return _13;}if(isNaN(_11)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_11,_12))&&_12.exponent!==false&&/\de[-+]?\d/i.test(_13)){return _13;}if(this.editOptions&&this.focused){_12=_2.mixin({},_12,this.editOptions);}return this._formatter(_11,_12);},_parser:_5.parse,parse:function(_14,_15){var _16=_2.mixin({},_15,(this.editOptions&&this.focused)?this.editOptions:{});if(this.focused&&_16.places!=null){var _17=_16.places;var _18=typeof _17==="number"?_17:Number(_17.split(",").pop());_16.places="0,"+_18;}var v=this._parser(_14,_16);if(this.editOptions&&this.focused&&isNaN(v)){v=this._parser(_14,_15);}return v;},_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_19){if(_19==null||typeof _19=="string"&&_19==""){return NaN;}else{if(typeof _19=="number"&&!isNaN(_19)&&_19!=0){_19=_5.round(_19,this._decimalInfo.places);}}return this.inherited(arguments,[_19]);},serialize:function(_1a,_1b){return (typeof _1a!="number"||isNaN(_1a))?"":this.inherited(arguments);},_setBlurValue:function(){var val=_2.hitch(_2.delegate(this,{focused:true}),"get")("value");this._setValueAttr(val,true);},_setValueAttr:function(_1c,_1d,_1e){if(_1c!==undefined&&_1e===undefined){_1e=String(_1c);if(typeof _1c=="number"){if(isNaN(_1c)){_1e="";}else{if(("rangeCheck" in this&&this.rangeCheck(_1c,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_1e)){_1e=undefined;}}}else{if(!_1c){_1e="";_1c=NaN;}else{_1c=undefined;}}}this.inherited(arguments,[_1c,_1d,_1e]);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)&&(new RegExp("^"+_5._realNumberRegexp(_2.delegate(this.constraints))+"$").test(this.textbox.value))){var n=Number(this.textbox.value);return isNaN(n)?undefined:n;}else{return undefined;}}else{return v;}},isValid:function(_1f){if(!this.focused||this._isEmpty(this.textbox.value)){return this.inherited(arguments);}else{var v=this.get("value");if(!isNaN(v)&&this.rangeCheck(v,this.constraints)){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)){return true;}else{return this.inherited(arguments);}}else{return false;}}},_isValidSubset:function(){var _20=(typeof this.constraints.min=="number"),_21=(typeof this.constraints.max=="number"),_22=this.get("value");if(isNaN(_22)||(!_20&&!_21)){return this.inherited(arguments);}var _23=_22|0,_24=_22<0,_25=this.textbox.value.indexOf(this._decimalInfo.sep)!=-1,_26=this.maxLength||20,_27=_26-this.textbox.value.length,_28=_25?this.textbox.value.split(this._decimalInfo.sep)[1].replace(/[^0-9]/g,""):"";var _29=_25?_23+"."+_28:_23+"";var _2a=_4.rep("9",_27),_2b=_22,_2c=_22;if(_24){_2b=Number(_29+_2a);}else{_2c=Number(_29+_2a);}return !((_20&&_2c<this.constraints.min)||(_21&&_2b>this.constraints.max));}});var _2d=_1("dijit.form.NumberTextBox",[_6,_c],{baseClass:"dijitTextBox dijitNumberTextBox"});_2d.Mixin=_c;return _2d;});
|
@ -1,2 +1,2 @@
|
|||||||
//>>built
|
//>>built
|
||||||
define("dijit/form/TimeTextBox",["dojo/_base/declare","dojo/keys","dojo/_base/lang","../_TimePicker","./_DateTimeTextBox"],function(_1,_2,_3,_4,_5){var _6=_1("dijit.form.TimeTextBox",_5,{baseClass:"dijitTextBox dijitComboBox dijitTimeTextBox",popupClass:_4,_selector:"time",value:new Date(""),maxHeight:-1,openDropDown:function(_7){this.inherited(arguments);this.dropDown.on("input",_3.hitch(this,function(){this.set("value",this.dropDown.get("value"),false);}));},_onInput:function(){this.inherited(arguments);var _8=this.get("displayedValue");this.filterString=(_8&&!this.parse(_8,this.constraints))?_8.toLowerCase():"";if(this._opened){this.closeDropDown();}this.openDropDown();}});return _6;});
|
define("dijit/form/TimeTextBox",["dojo/_base/declare","dojo/keys","dojo/query","dojo/_base/lang","../_TimePicker","./_DateTimeTextBox"],function(_1,_2,_3,_4,_5,_6){var _7=_1("dijit.form.TimeTextBox",_6,{baseClass:"dijitTextBox dijitComboBox dijitTimeTextBox",popupClass:_5,_selector:"time",value:new Date(""),maxHeight:-1,openDropDown:function(_8){this.inherited(arguments);var _9=_3(".dijitTimePickerItemSelected",this.dropDown.domNode),_a=this.dropDown.domNode.parentNode;if(_9[0]){_a.scrollTop=_9[0].offsetTop-(_a.clientHeight-_9[0].clientHeight)/2;}else{_a.scrollTop=(_a.scrollHeight-_a.clientHeight)/2;}this.dropDown.on("input",_4.hitch(this,function(){this.set("value",this.dropDown.get("value"),false);}));},_onInput:function(){this.inherited(arguments);var _b=this.get("displayedValue");this.filterString=(_b&&!this.parse(_b,this.constraints))?_b.toLowerCase():"";if(this._opened){this.closeDropDown();}this.openDropDown();}});return _7;});
|
@ -1,2 +1,2 @@
|
|||||||
//>>built
|
//>>built
|
||||||
define("dijit/form/_FormValueMixin",["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/_base/lang","dojo/on","./_FormWidgetMixin"],function(_1,_2,_3,_4,on,_5){return _1("dijit.form._FormValueMixin",_5,{readOnly:false,_setReadOnlyAttr:function(_6){_2.set(this.focusNode,"readOnly",_6);this._set("readOnly",_6);},postCreate:function(){this.inherited(arguments);if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_7,_8){this._handleOnChange(_7,_8);},_handleOnChange:function(_9,_a){this._set("value",_9);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);}});});
|
define("dijit/form/_FormValueMixin",["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/_base/lang","dojo/on","dojo/sniff","./_FormWidgetMixin"],function(_1,_2,_3,_4,on,_5,_6){return _1("dijit.form._FormValueMixin",_6,{readOnly:false,_setReadOnlyAttr:function(_7){if(_5("trident")&&"disabled" in this){_2.set(this.focusNode,"readOnly",_7||this.disabled);}else{_2.set(this.focusNode,"readOnly",_7);}this._set("readOnly",_7);},postCreate:function(){this.inherited(arguments);if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_8,_9){this._handleOnChange(_8,_9);},_handleOnChange:function(_a,_b){this._set("value",_a);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);}});});
|
@ -1,2 +1,2 @@
|
|||||||
//>>built
|
//>>built
|
||||||
define("dijit/form/_FormWidgetMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/mouse","dojo/on","dojo/sniff","dojo/window","../a11y"],function(_1,_2,_3,_4,_5,_6,on,_7,_8,_9){return _2("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",_setDisabledAttr:function(_a){this._set("disabled",_a);if(/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)){_3.set(this.focusNode,"disabled",_a);}else{this.focusNode.setAttribute("aria-disabled",_a?"true":"false");}if(this.valueNode){_3.set(this.valueNode,"disabled",_a);}if(_a){this._set("hovering",false);this._set("active",false);var _b="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_1.forEach(_5.isArray(_b)?_b:[_b],function(_c){var _d=this[_c];if(_7("webkit")||_9.hasDefaultTabStop(_d)){_d.setAttribute("tabIndex","-1");}else{_d.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.set("tabIndex",this.tabIndex);}}},_onFocus:function(by){if(by=="mouse"&&this.isFocusable()){var _e=this.own(on(this.focusNode,"focus",function(){_f.remove();_e.remove();}))[0];var _10=_7("pointer-events")?"pointerup":_7("MSPointer")?"MSPointerUp":_7("touch-events")?"touchend, mouseup":"mouseup";var _f=this.own(on(this.ownerDocumentBody,_10,_5.hitch(this,function(evt){_f.remove();_e.remove();if(this.focused){if(evt.type=="touchend"){this.defer("focus");}else{this.focus();}}})))[0];}if(this.scrollOnFocus){this.defer(function(){_8.scrollIntoView(this.domNode);});}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_4.get(this.domNode,"display")!="none");},focus:function(){if(!this.disabled&&this.focusNode.focus){try{this.focusNode.focus();}catch(e){}}},compare:function(_11,_12){if(typeof _11=="number"&&typeof _12=="number"){return (isNaN(_11)&&isNaN(_12))?0:_11-_12;}else{if(_11>_12){return 1;}else{if(_11<_12){return -1;}else{return 0;}}}},onChange:function(){},_onChangeActive:false,_handleOnChange:function(_13,_14){if(this._lastValueReported==undefined&&(_14===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_13;}this._pendingOnChange=this._pendingOnChange||(typeof _13!=typeof this._lastValueReported)||(this.compare(_13,this._lastValueReported)!=0);if((this.intermediateChanges||_14||_14===undefined)&&this._pendingOnChange){this._lastValueReported=_13;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){this._onChangeHandle.remove();}this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(_13);});}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){this._onChangeHandle.remove();this.onChange(this._lastValueReported);}this.inherited(arguments);}});});
|
define("dijit/form/_FormWidgetMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/mouse","dojo/on","dojo/sniff","dojo/window","../a11y"],function(_1,_2,_3,_4,_5,_6,on,_7,_8,_9){return _2("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",_setDisabledAttr:function(_a){this._set("disabled",_a);if(/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)){_3.set(this.focusNode,"disabled",_a);if(_7("trident")&&"readOnly" in this){_3.set(this.focusNode,"readonly",_a||this.readOnly);}}else{this.focusNode.setAttribute("aria-disabled",_a?"true":"false");}if(this.valueNode){_3.set(this.valueNode,"disabled",_a);}if(_a){this._set("hovering",false);this._set("active",false);var _b="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_1.forEach(_5.isArray(_b)?_b:[_b],function(_c){var _d=this[_c];if(_7("webkit")||_9.hasDefaultTabStop(_d)){_d.setAttribute("tabIndex","-1");}else{_d.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.set("tabIndex",this.tabIndex);}}},_onFocus:function(by){if(by=="mouse"&&this.isFocusable()){var _e=this.own(on(this.focusNode,"focus",function(){_f.remove();_e.remove();}))[0];var _10=_7("pointer-events")?"pointerup":_7("MSPointer")?"MSPointerUp":_7("touch-events")?"touchend, mouseup":"mouseup";var _f=this.own(on(this.ownerDocumentBody,_10,_5.hitch(this,function(evt){_f.remove();_e.remove();if(this.focused){if(evt.type=="touchend"){this.defer("focus");}else{this.focus();}}})))[0];}if(this.scrollOnFocus){this.defer(function(){_8.scrollIntoView(this.domNode);});}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_4.get(this.domNode,"display")!="none");},focus:function(){if(!this.disabled&&this.focusNode.focus){try{this.focusNode.focus();}catch(e){}}},compare:function(_11,_12){if(typeof _11=="number"&&typeof _12=="number"){return (isNaN(_11)&&isNaN(_12))?0:_11-_12;}else{if(_11>_12){return 1;}else{if(_11<_12){return -1;}else{return 0;}}}},onChange:function(){},_onChangeActive:false,_handleOnChange:function(_13,_14){if(this._lastValueReported==undefined&&(_14===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_13;}this._pendingOnChange=this._pendingOnChange||(typeof _13!=typeof this._lastValueReported)||(this.compare(_13,this._lastValueReported)!=0);if((this.intermediateChanges||_14||_14===undefined)&&this._pendingOnChange){this._lastValueReported=_13;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){this._onChangeHandle.remove();}this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(_13);});}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){this._onChangeHandle.remove();this.onChange(this._lastValueReported);}this.inherited(arguments);}});});
|
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
//>>built
|
//>>built
|
||||||
define("dijit/tree/ObjectStoreModel",["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/Deferred","dojo/_base/lang","dojo/when","../Destroyable"],function(_1,_2,_3,_4,_5,_6,_7){return _3("dijit.tree.ObjectStoreModel",_7,{store:null,labelAttr:"name",labelType:"text",root:null,query:null,constructor:function(_8){_5.mixin(this,_8);this.childrenCache={};},getRoot:function(_9,_a){if(this.root){_9(this.root);}else{var _b=this.store.query(this.query);if(_b.then){this.own(_b);}_6(_b,_5.hitch(this,function(_c){if(_c.length!=1){throw new Error("dijit.tree.ObjectStoreModel: root query returned "+_c.length+" items, but must return exactly one");}this.root=_c[0];_9(this.root);if(_b.observe){_b.observe(_5.hitch(this,function(_d){this.onChange(_d);}),true);}}),_a);}},mayHaveChildren:function(){return true;},getChildren:function(_e,_f,_10){var id=this.store.getIdentity(_e);if(this.childrenCache[id]){_6(this.childrenCache[id],_f,_10);return;}var res=this.childrenCache[id]=this.store.getChildren(_e);if(res.then){this.own(res);}if(res.observe){this.own(res.observe(_5.hitch(this,function(obj,_11,_12){this.onChange(obj);if(_11!=_12){_6(res,_5.hitch(this,"onChildrenChange",_e));}}),true));}_6(res,_f,_10);},isItem:function(){return true;},getIdentity:function(_13){return this.store.getIdentity(_13);},getLabel:function(_14){return _14[this.labelAttr];},newItem:function(_15,_16,_17,_18){return this.store.put(_15,{parent:_16,before:_18});},pasteItem:function(_19,_1a,_1b,_1c,_1d,_1e){var d=new _4();if(_1a===_1b&&!_1c&&!_1e){d.resolve(true);return d;}if(_1a&&!_1c){this.getChildren(_1a,_5.hitch(this,function(_1f){_1f=[].concat(_1f);var _20=_1.indexOf(_1f,_19);_1f.splice(_20,1);this.onChildrenChange(_1a,_1f);d.resolve(this.store.put(_19,{overwrite:true,parent:_1b,oldParent:_1a,before:_1e}));}));}else{d.resolve(this.store.put(_19,{overwrite:true,parent:_1b,oldParent:_1a,before:_1e}));}return d;},onChange:function(){},onChildrenChange:function(){},onDelete:function(){}});});
|
define("dijit/tree/ObjectStoreModel",["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/Deferred","dojo/_base/lang","dojo/when","../Destroyable"],function(_1,_2,_3,_4,_5,_6,_7){return _3("dijit.tree.ObjectStoreModel",_7,{store:null,labelAttr:"name",labelType:"text",root:null,query:null,constructor:function(_8){_5.mixin(this,_8);this.childrenCache={};},getRoot:function(_9,_a){if(this.root){_9(this.root);}else{var _b=this.store.query(this.query);if(_b.then){this.own(_b);}_6(_b,_5.hitch(this,function(_c){if(_c.length!=1){throw new Error("dijit.tree.ObjectStoreModel: root query returned "+_c.length+" items, but must return exactly one");}this.root=_c[0];_9(this.root);if(_b.observe){_b.observe(_5.hitch(this,function(_d){this.onChange(_d);}),true);}}),_a);}},mayHaveChildren:function(){return true;},getChildren:function(_e,_f,_10){var id=this.store.getIdentity(_e);if(this.childrenCache[id]){_6(this.childrenCache[id],_f,_10);return;}var res=this.childrenCache[id]=this.store.getChildren(_e);if(res.then){this.own(res);}if(res.observe){this.own(res.observe(_5.hitch(this,function(obj,_11,_12){this.onChange(obj);if(_11!=_12){_6(res,_5.hitch(this,"onChildrenChange",_e));}}),true));}_6(res,_f,_10);},isItem:function(){return true;},getIdentity:function(_13){return this.store.getIdentity(_13);},getLabel:function(_14){return _14[this.labelAttr];},newItem:function(_15,_16,_17,_18){return this.store.put(_15,{parent:_16,before:_18});},pasteItem:function(_19,_1a,_1b,_1c,_1d,_1e){var d=new _4();if(_1a===_1b&&!_1c&&!_1e){d.resolve(true);return d;}if(_1a&&!_1c){this.getChildren(_1a,_5.hitch(this,function(_1f){_1f=[].concat(_1f);var _20=_1.indexOf(_1f,_19);_1f.splice(_20,1);this.onChildrenChange(_1a,_1f);d.resolve(this.store.put(_19,{overwrite:true,parent:_1b,oldParent:_1a,before:_1e,isCopy:false}));}));}else{d.resolve(this.store.put(_19,{overwrite:true,parent:_1b,oldParent:_1a,before:_1e,isCopy:true}));}return d;},onChange:function(){},onChildrenChange:function(){},onDelete:function(){}});});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue