diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/Color.js b/spring-js/src/main/resources/META-INF/dojo/_base/Color.js new file mode 100644 index 00000000..22863985 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/Color.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");dojo.require("dojo._base.array");dojo.require("dojo._base.lang");dojo.Color=function(_1){if(_1){this.setColor(_1);}};dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255]};dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_7){var d=dojo;if(d.isString(_7)){d.colorFromString(_7,this);}else{if(d.isArray(_7)){d.colorFromArray(_7,this);}else{this._set(_7.r,_7.g,_7.b,_7.a);if(!(_7 instanceof d.Color)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var _b=dojo.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+_b.join("");},toCss:function(_e){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_e?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_11,end,_13,obj){var d=dojo,t=obj||new dojo.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_11[x]+(end[x]-_11[x])*_13;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_18,obj){var m=_18.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_1b,obj){var d=dojo,t=obj||new d.Color(),_1f=(_1b.length==4)?4:8,_20=(1<<_1f)-1;_1b=Number("0x"+_1b.substr(1));if(isNaN(_1b)){return null;}d.forEach(["b","g","r"],function(x){var c=_1b&_20;_1b>>=_1f;t[x]=_1f==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new dojo.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};dojo.colorFromString=function(str,obj){var a=dojo.Color.named[str];return a&&dojo.colorFromArray(a,obj)||dojo.colorFromRgb(str,obj)||dojo.colorFromHex(str,obj);};} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/Deferred.js b/spring-js/src/main/resources/META-INF/dojo/_base/Deferred.js new file mode 100644 index 00000000..816f2f06 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/Deferred.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");dojo.require("dojo._base.lang");dojo.Deferred=function(_1){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_1;this.silentlyCancelled=false;};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++;};})(),cancel:function(){var _3;if(this.fired==-1){if(this.canceller){_3=this.canceller(this);}else{this.silentlyCancelled=true;}if(this.fired==-1){if(!(_3 instanceof Error)){var _4=_3;_3=new Error("Deferred Cancelled");_3.dojoType="cancel";_3.cancelResult=_4;}this.errback(_3);}}else{if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){this.results[0].cancel();}}},_resback:function(_5){this.fired=((_5 instanceof Error)?1:0);this.results[this.fired]=_5;this._fire();},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!");}this.silentlyCancelled=false;return;}},callback:function(_6){this._check();this._resback(_6);},errback:function(_7){this._check();if(!(_7 instanceof Error)){_7=new Error(_7);}this._resback(_7);},addBoth:function(cb,_9){var _a=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_a,_a);},addCallback:function(cb,_c){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(cb,_e){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0){this._fire();}return this;},_fire:function(){var _11=this.chain;var _12=this.fired;var res=this.results[_12];var _14=this;var cb=null;while((_11.length>0)&&(this.paused==0)){var f=_11.shift()[_12];if(!f){continue;}var _17=function(){var ret=f(res);if(typeof ret!="undefined"){res=ret;}_12=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){_14._resback(res);_14.paused--;if((_14.paused==0)&&(_14.fired>=0)){_14._fire();}};this.paused++;}};if(dojo.config.isDebug){_17.call(this);}else{try{_17.call(this);}catch(err){_12=1;res=err;}}}this.fired=_12;this.results[_12]=res;if((cb)&&(this.paused)){res.addBoth(cb);}}});} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/NodeList.js b/spring-js/src/main/resources/META-INF/dojo/_base/NodeList.js new file mode 100644 index 00000000..7cc51902 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/NodeList.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");dojo.require("dojo._base.lang");dojo.require("dojo._base.array");(function(){var d=dojo;var _2=function(_3){_3.constructor=dojo.NodeList;dojo._mixin(_3,dojo.NodeList.prototype);return _3;};var _4=function(_5,_6){return function(){var _a=arguments;var aa=d._toArray(_a,0,[null]);var s=this.map(function(i){aa[0]=i;return d[_5].apply(d,aa);});return (_6||((_a.length>1)||!d.isString(_a[0])))?this:s;};};dojo.NodeList=function(){return _2(Array.apply(null,arguments));};dojo.NodeList._wrap=_2;dojo.extend(dojo.NodeList,{slice:function(){var a=d._toArray(arguments);return _2(a.slice.apply(this,a));},splice:function(){var a=d._toArray(arguments);return _2(a.splice.apply(this,a));},concat:function(){var a=d._toArray(arguments,0,[this]);return _2(a.concat.apply([],a));},indexOf:function(_e,_f){return d.indexOf(this,_e,_f);},lastIndexOf:function(){return d.lastIndexOf.apply(d,d._toArray(arguments,0,[this]));},every:function(_10,_11){return d.every(this,_10,_11);},some:function(_12,_13){return d.some(this,_12,_13);},map:function(_14,obj){return d.map(this,_14,obj,d.NodeList);},forEach:function(_16,_17){d.forEach(this,_16,_17);return this;},coords:function(){return d.map(this,d.coords);},attr:_4("attr"),style:_4("style"),addClass:_4("addClass",true),removeClass:_4("removeClass",true),toggleClass:_4("toggleClass",true),connect:_4("connect",true),place:function(_18,_19){var _1a=d.query(_18)[0];return this.forEach(function(i){d.place(i,_1a,_19);});},orphan:function(_1c){return (_1c?d._filterQueryResult(this,_1c):this).forEach("if(item.parentNode){ item.parentNode.removeChild(item); }");},adopt:function(_1d,_1e){var _1f=this[0];return d.query(_1d).forEach(function(ai){d.place(ai,_1f,_1e||"last");});},query:function(_21){if(!_21){return this;}var ret=d.NodeList();this.forEach(function(_23){ret=ret.concat(d.query(_21,_23).filter(function(_24){return (_24!==undefined);}));});return ret;},filter:function(_25){var _26=this;var _a=arguments;var r=d.NodeList();var rp=function(t){if(t!==undefined){r.push(t);}};if(d.isString(_25)){_26=d._filterQueryResult(this,_a[0]);if(_a.length==1){return _26;}_a.shift();}d.forEach(d.filter(_26,_a[0],_a[1]),rp);return r;},addContent:function(_2b,_2c){var ta=d.doc.createElement("span");if(d.isString(_2b)){ta.innerHTML=_2b;}else{ta.appendChild(_2b);}if(_2c===undefined){_2c="last";}var ct=(_2c=="first"||_2c=="after")?"lastChild":"firstChild";this.forEach(function(_2f){var tn=ta.cloneNode(true);while(tn[ct]){d.place(tn[ct],_2f,_2c);}});return this;},empty:function(){return this.forEach("item.innerHTML='';");},instantiate:function(_31,_32){var c=d.isFunction(_31)?_31:d.getObject(_31);return this.forEach(function(i){new c(_32||{},i);});},at:function(){var nl=new dojo.NodeList();dojo.forEach(arguments,function(i){if(this[i]){nl.push(this[i]);}},this);return nl;}});d.forEach(["blur","focus","click","keydown","keypress","keyup","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit","load","error"],function(evt){var _oe="on"+evt;d.NodeList.prototype[_oe]=function(a,b){return this.connect(_oe,a,b);};});})();} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/_loader/bootstrap.js b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/bootstrap.js new file mode 100644 index 00000000..8a89278f --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/bootstrap.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +(function(){if(!this["console"]){this.console={};}var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var _4=tn+"";console[_4]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(_4+":");console["log"](a.join(" "));}:function(){};})();}}if(typeof dojo=="undefined"){this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){this.dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){this.dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var _7 in djConfig){d.config[_7]=djConfig[_7];}}var _8=["Browser","Rhino","Spidermonkey","Mobile"];var t;while((t=_8.shift())){d["is"+t]=false;}dojo.locale=d.config.locale;var _a="$Rev: 15385 $".match(/\d+/);dojo.version={major:1,minor:2,patch:0,flag:"",revision:_a?+_a[0]:999999,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());}dojo._mixin=function(_b,_c){var _d={};for(var x in _c){if(_d[x]===undefined||_d[x]!=_c[x]){_b[x]=_c[x];}}if(d["isIE"]&&_c){var p=_c.toString;if(typeof p=="function"&&p!=_b.toString&&p!=_d.toString&&p!="\nfunction toString() {\n [native code]\n}\n"){_b.toString=_c.toString;}}return _b;};dojo.mixin=function(obj,_11){for(var i=1,l=arguments.length;i= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _2=document.getElementsByTagName("script");var _3=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_2.length;i++){var _5=_2[i].getAttribute("src");if(!_5){continue;}var m=_5.match(_3);if(m){if(!d.config.baseUrl){d.config.baseUrl=_5.substring(0,m.index);}var _7=_2[i].getAttribute("djConfig");if(_7){var _8=eval("({ "+_7+" })");for(var x in _8){dojo.config[x]=_8[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var _b=n.userAgent;var _c=n.appVersion;var tv=parseFloat(_c);if(_b.indexOf("Opera")>=0){d.isOpera=tv;}var _e=Math.max(_c.indexOf("WebKit"),_c.indexOf("Safari"),0);if(_e){d.isSafari=parseFloat(_c.split("Version/")[1])||(parseFloat(_c.substr(_e+7))>419.3)?3:2;}if(_b.indexOf("AdobeAIR")>=0){d.isAIR=1;}if(_c.indexOf("Konqueror")>=0||d.isSafari){d.isKhtml=tv;}if(_b.indexOf("Gecko")>=0&&!d.isKhtml){d.isMozilla=d.isMoz=tv;}if(d.isMoz){d.isFF=parseFloat(_b.split("Firefox/")[1])||undefined;}if(document.all&&!d.isOpera){d.isIE=parseFloat(_c.split("MSIE ")[1])||undefined;}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}var cm=document.compatMode;d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _10=null;var _11=null;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_10=new XMLHttpRequest();}catch(e){}}if(!_10){for(var i=0;i<3;++i){var _13=d._XMLHTTP_PROGIDS[i];try{_10=new ActiveXObject(_13);}catch(e){_11=e;}if(_10){d._XMLHTTP_PROGIDS=[_13];break;}}}if(!_10){throw new Error("XMLHTTP not available: "+_11);}return _10;};d._isDocumentOk=function(_14){var _15=_14.status||0;return (_15>=200&&_15<300)||_15==304||_15==1223||(!_15&&(location.protocol=="file:"||location.protocol=="chrome:"));};var _16=window.location+"";var _17=document.getElementsByTagName("base");var _18=(_17&&_17.length>0);d._getText=function(uri,_1a){var _1b=this._xhrObj();if(!_18&&dojo._Url){uri=(new dojo._Url(_16,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_1b.open("GET",uri,false);try{_1b.send(null);if(!d._isDocumentOk(_1b)){var err=Error("Unable to load "+uri+" status:"+_1b.status);err.status=_1b.status;err.responseText=_1b.responseText;throw err;}}catch(e){if(_1a){return null;}throw e;}return _1b.responseText;};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=this._windowUnloaders;while(mll.length){(mll.pop())();}};d.addOnWindowUnload=function(obj,_1f){d._onto(d._windowUnloaders,obj,_1f);};})();dojo._initFired=false;dojo._loadInit=function(e){dojo._initFired=true;var _21=(e&&e.type)?e.type.toLowerCase():"load";if(arguments.callee.initialized||(_21!="domcontentloaded"&&_21!="load")){return;}arguments.callee.initialized=true;if("_khtmlTimer" in dojo){clearInterval(dojo._khtmlTimer);delete dojo._khtmlTimer;}if(dojo._inFlightCount==0){dojo._modulesLoaded();}};dojo._fakeLoadInit=function(){dojo._loadInit({type:"load"});};if(!dojo.config.afterOnLoad){if(document.addEventListener){if(dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){document.addEventListener("DOMContentLoaded",dojo._loadInit,null);}window.addEventListener("load",dojo._loadInit,null);}if(dojo.isAIR){window.addEventListener("load",dojo._loadInit,null);}else{if(/(WebKit|khtml)/i.test(navigator.userAgent)){dojo._khtmlTimer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){dojo._loadInit();}},10);}}}(function(){var _w=window;var _23=function(_24,fp){var _26=_w[_24]||function(){};_w[_24]=function(){fp.apply(_w,arguments);_26.apply(_w,arguments);};};if(dojo.isIE){if(!dojo.config.afterOnLoad){document.write(""+"");}try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");}catch(e){}}_23("onbeforeunload",function(){dojo.unloaded();});_23("onunload",function(){dojo.windowUnloaded();});})();}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _28 in mp){dojo.registerModulePath(_28,mp[_28]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug");dojo.require("dojo.i18n");} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/_loader/hostenv_rhino.js b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/hostenv_rhino.js new file mode 100644 index 00000000..fb34426f --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/hostenv_rhino.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(dojo.config["baseUrl"]){dojo.baseUrl=dojo.config["baseUrl"];}else{dojo.baseUrl="./";}dojo.locale=dojo.locale||String(java.util.Locale.getDefault().toString().replace("_","-").toLowerCase());dojo._name="rhino";dojo.isRhino=true;if(typeof print=="function"){console.debug=print;}if(typeof dojo["byId"]=="undefined"){dojo.byId=function(id,_2){if(id&&(typeof id=="string"||id instanceof String)){if(!_2){_2=document;}return _2.getElementById(id);}return id;};}dojo._loadUri=function(_3,cb){try{var _5=(new java.io.File(_3)).exists();if(!_5){try{var _6=(new java.net.URL(_3)).openStream();_6.close();}catch(e){return false;}}if(cb){var _7=(_5?readText:readUri)(_3,"UTF-8");cb(eval("("+_7+")"));}else{load(_3);}return true;}catch(e){console.debug("rhino load('"+_3+"') failed. Exception: "+e);return false;}};dojo.exit=function(_8){quit(_8);};dojo._rhinoCurrentScriptViaJava=function(_9){var _a=Packages.org.mozilla.javascript.Context.getCurrentContext().getOptimizationLevel();var _b=new java.io.CharArrayWriter();var pw=new java.io.PrintWriter(_b);var _d=new java.lang.Exception();var s=_b.toString();var _f=s.match(/[^\(]*\.js\)/gi);if(!_f){throw Error("cannot parse printStackTrace output: "+s);}var _10=((typeof _9!="undefined")&&(_9))?_f[_9+1]:_f[_f.length-1];_10=_f[3];if(!_10){_10=_f[1];}if(!_10){throw Error("could not find js file in printStackTrace output: "+s);}return _10;};function readText(_11,_12){_12=_12||"utf-8";var jf=new java.io.File(_11);var is=new java.io.FileInputStream(jf);return dj_readInputStream(is,_12);};function readUri(uri,_16){var _17=(new java.net.URL(uri)).openConnection();_16=_16||_17.getContentEncoding()||"utf-8";var is=_17.getInputStream();return dj_readInputStream(is,_16);};function dj_readInputStream(is,_1a){var _1b=new java.io.BufferedReader(new java.io.InputStreamReader(is,_1a));try{var sb=new java.lang.StringBuffer();var _1d="";while((_1d=_1b.readLine())!==null){sb.append(_1d);sb.append(java.lang.System.getProperty("line.separator"));}return sb.toString();}finally{_1b.close();}};if((!dojo.config.libraryScriptUri)||(!dojo.config.libraryScriptUri.length)){try{dojo.config.libraryScriptUri=dojo._rhinoCurrentScriptViaJava(1);}catch(e){if(dojo.config["isDebug"]){print("\n");print("we have no idea where Dojo is located.");print("Please try loading rhino in a non-interpreted mode or set a");print("\n\tdjConfig.libraryScriptUri\n");print("Setting the dojo path to './'");print("This is probably wrong!");print("\n");print("Dojo will try to load anyway");}dojo.config.libraryScriptUri="./";}}dojo.doc=typeof (document)!="undefined"?document:null;dojo.body=function(){return document.body;};try{setTimeout;clearTimeout;}catch(e){dojo._timeouts=[];function clearTimeout(idx){if(!dojo._timeouts[idx]){return;}dojo._timeouts[idx].stop();};function setTimeout(_1f,_20){var def={sleepTime:_20,hasSlept:false,run:function(){if(!this.hasSlept){this.hasSlept=true;java.lang.Thread.currentThread().sleep(this.sleepTime);}try{_1f();}catch(e){console.debug("Error running setTimeout thread:"+e);}}};var _22=new java.lang.Runnable(def);var _23=new java.lang.Thread(_22);_23.start();return dojo._timeouts.push(_23)-1;};}if(dojo.config["modulePaths"]){for(var param in dojo.config["modulePaths"]){dojo.registerModulePath(param,dojo.config["modulePaths"][param]);}} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/_loader/hostenv_spidermonkey.js b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/hostenv_spidermonkey.js new file mode 100644 index 00000000..44a88663 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/hostenv_spidermonkey.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(dojo.config["baseUrl"]){dojo.baseUrl=dojo.config["baseUrl"];}else{dojo.baseUrl="./";}dojo._name="spidermonkey";dojo.isSpidermonkey=true;dojo.exit=function(_1){quit(_1);};if(typeof print=="function"){console.debug=print;}if(typeof line2pc=="undefined"){throw new Error("attempt to use SpiderMonkey host environment when no 'line2pc' global");}dojo._spidermonkeyCurrentFile=function(_2){var s="";try{throw Error("whatever");}catch(e){s=e.stack;}var _4=s.match(/[^@]*\.js/gi);if(!_4){throw Error("could not parse stack string: '"+s+"'");}var _5=(typeof _2!="undefined"&&_2)?_4[_2+1]:_4[_4.length-1];if(!_5){throw Error("could not find file name in stack string '"+s+"'");}return _5;};dojo._loadUri=function(_6){var ok=load(_6);return 1;};if(dojo.config["modulePaths"]){for(var param in dojo.config["modulePaths"]){dojo.registerModulePath(param,dojo.config["modulePaths"][param]);}} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/_loader/loader.js b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/loader.js new file mode 100644 index 00000000..38c58a79 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/loader.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo.foo"]){dojo._hasResource["dojo.foo"]=true;(function(){var d=dojo;d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_2){var mp=this._modulePrefixes;return !!(mp[_2]&&mp[_2].value);},_getModulePrefix:function(_4){var mp=this._modulePrefixes;if(this._moduleHasPrefix(_4)){return mp[_4].value;}return _4;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_6,_7,cb){var _9=((_6.charAt(0)=="/"||_6.match(/^\w+:/))?"":this.baseUrl)+_6;try{return !_7?this._loadUri(_9,cb):this._loadUriAndCheck(_9,_7,cb);}catch(e){console.error(e);return false;}};dojo._loadUri=function(_a,cb){if(this._loadedUrls[_a]){return true;}var _c=this._getText(_a,true);if(!_c){return false;}this._loadedUrls[_a]=true;this._loadedUrls.push(_a);if(cb){_c="("+_c+")";}else{_c=this._scopePrefix+_c+this._scopeSuffix;}if(d.isMoz){_c+="\r\n//@ sourceURL="+_a;}var _d=d["eval"](_c);if(cb){cb(_d);}return true;};dojo._loadUriAndCheck=function(_e,_f,cb){var ok=false;try{ok=this._loadUri(_e,cb);}catch(e){console.error("failed loading "+_e+" with error: "+e);}return !!(ok&&this._loadedModules[_f]);};dojo.loaded=function(){this._loadNotifying=true;this._postLoad=true;var mll=d._loaders;this._loaders=[];for(var x=0;x0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(dojo.config.useXDomain&&d.isOpera)){if(dojo.isAIR){setTimeout(function(){dojo.loaded();},0);}else{setTimeout(dojo._scopeName+".loaded();",0);}}else{d.loaded();}};dojo._getModuleSymbols=function(_1e){var _1f=_1e.split(".");for(var i=_1f.length;i>0;i--){var _21=_1f.slice(0,i).join(".");if((i==1)&&!this._moduleHasPrefix(_21)){_1f[0]="../"+_1f[0];}else{var _22=this._getModulePrefix(_21);if(_22!=_21){_1f.splice(0,i,_22);break;}}}return _1f;};dojo._global_omit_module_check=false;dojo.loadInit=function(_23){_23();};dojo._loadModule=dojo.require=function(_24,_25){_25=this._global_omit_module_check||_25;var _26=this._loadedModules[_24];if(_26){return _26;}var _27=this._getModuleSymbols(_24).join("/")+".js";var _28=(!_25)?_24:null;var ok=this._loadPath(_27,_28);if(!ok&&!_25){throw new Error("Could not load '"+_24+"'; last tried '"+_27+"'");}if(!_25&&!this._isXDomain){_26=this._loadedModules[_24];if(!_26){throw new Error("symbol '"+_24+"' is not defined after loading '"+_27+"'");}}return _26;};dojo.provide=function(_2a){_2a=_2a+"";return (d._loadedModules[_2a]=d.getObject(_2a,true));};dojo.platformRequire=function(_2b){var _2c=_2b.common||[];var _2d=_2c.concat(_2b[d._name]||_2b["default"]||[]);for(var x=0;x<_2d.length;x++){var _2f=_2d[x];if(_2f.constructor==Array){d._loadModule.apply(d,_2f);}else{d._loadModule(_2f);}}};dojo.requireIf=function(_30,_31){if(_30===true){var _32=[];for(var i=1;i0&&!(j==1&&_43[0]=="")&&_43[j]==".."&&_43[j-1]!=".."){if(j==(_43.length-1)){_43.splice(j,1);_43[j-1]="";}else{_43.splice(j-1,2);j-=2;}}}}_40.path=_43.join("/");}}}}uri=[];if(_40.scheme){uri.push(_40.scheme,":");}if(_40.authority){uri.push("//",_40.authority);}uri.push(_40.path);if(_40.query){uri.push("?",_40.query);}if(_40.fragment){uri.push("#",_40.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_46,url){var loc=d._getModuleSymbols(_46).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _49=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_49==-1||_49>loc.indexOf("/"))){loc=d.baseUrl+loc;}return new d._Url(loc,url);};})();} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/_loader/loader_debug.js b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/loader_debug.js new file mode 100644 index 00000000..3d8ce86a --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/loader_debug.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base._loader.loader_debug"]){dojo._hasResource["dojo._base._loader.loader_debug"]=true;dojo.provide("dojo._base._loader.loader_debug");dojo.nonDebugProvide=dojo.provide;dojo.provide=function(_1){var _2=dojo["_xdDebugQueue"];if(_2&&_2.length>0&&_1==_2["currentResourceName"]){if(dojo.isAIR){window.setTimeout(function(){dojo._xdDebugFileLoaded(_1);},1);}else{window.setTimeout(dojo._scopeName+"._xdDebugFileLoaded('"+_1+"')",1);}}return dojo.nonDebugProvide.apply(dojo,arguments);};dojo._xdDebugFileLoaded=function(_3){if(!this._xdDebugScopeChecked){if(dojo._scopeName!="dojo"){window.dojo=window[dojo.config.scopeMap[0][1]];window.dijit=window[dojo.config.scopeMap[1][1]];window.dojox=window[dojo.config.scopeMap[2][1]];}this._xdDebugScopeChecked=true;}var _4=this._xdDebugQueue;if(_3&&_3==_4.currentResourceName){_4.shift();}if(_4.length==0){dojo._xdWatchInFlight();}if(_4.length==0){_4.currentResourceName=null;for(var _5 in this._xdInFlight){if(this._xdInFlight[_5]===true){return;}}this._xdNotifyLoaded();}else{if(_3==_4.currentResourceName){_4.currentResourceName=_4[0].resourceName;var _6=document.createElement("script");_6.type="text/javascript";_6.src=_4[0].resourcePath;document.getElementsByTagName("head")[0].appendChild(_6);}}};} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/_loader/loader_xd.js b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/loader_xd.js new file mode 100644 index 00000000..3f873116 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/_loader/loader_xd.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base._loader.loader_xd"]){dojo._hasResource["dojo._base._loader.loader_xd"]=true;dojo.provide("dojo._base._loader.loader_xd");dojo._xdReset=function(){this._isXDomain=dojo.config.useXDomain||false;this._xdTimer=0;this._xdInFlight={};this._xdOrderedReqs=[];this._xdDepMap={};this._xdContents=[];this._xdDefList=[];};dojo._xdReset();dojo._xdCreateResource=function(_1,_2,_3){var _4=_1.replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,"");var _5=[];var _6=/dojo.(require|requireIf|provide|requireAfterIf|platformRequire|requireLocalization)\s*\(([\w\W]*?)\)/mg;var _7;while((_7=_6.exec(_4))!=null){if(_7[1]=="requireLocalization"){eval(_7[0]);}else{_5.push("\""+_7[1]+"\", "+_7[2]);}}var _8=[];_8.push(dojo._scopeName+"._xdResourceLoaded(function("+dojo._scopePrefixArgs+"){\n");var _9=dojo._xdExtractLoadInits(_1);if(_9){_1=_9[0];for(var i=1;i<_9.length;i++){_8.push(_9[i]+";\n");}}_8.push("return {");if(_5.length>0){_8.push("depends: [");for(i=0;i<_5.length;i++){if(i>0){_8.push(",\n");}_8.push("["+_5[i]+"]");}_8.push("],");}_8.push("\ndefineResource: function("+dojo._scopePrefixArgs+"){");if(!dojo.config["debugAtAllCosts"]||_2=="dojo._base._loader.loader_debug"){_8.push(_1);}_8.push("\n}, resourceName: '"+_2+"', resourcePath: '"+_3+"'};});");return _8.join("");};dojo._xdExtractLoadInits=function(_b){var _c=/dojo.loadInit\s*\(/g;_c.lastIndex=0;var _d=/[\(\)]/g;_d.lastIndex=0;var _e=[];var _f;while((_f=_c.exec(_b))){_d.lastIndex=_c.lastIndex;var _10=1;var _11;while((_11=_d.exec(_b))){if(_11[0]==")"){_10-=1;}else{_10+=1;}if(_10==0){break;}}if(_10!=0){throw "unmatched paren around character "+_d.lastIndex+" in: "+_b;}var _12=_c.lastIndex-_f[0].length;_e.push(_b.substring(_12,_d.lastIndex));var _13=_d.lastIndex-_12;_b=_b.substring(0,_12)+_b.substring(_d.lastIndex,_b.length);_c.lastIndex=_d.lastIndex-_13;_c.lastIndex=_d.lastIndex;}if(_e.length>0){_e.unshift(_b);}return (_e.length?_e:null);};dojo._xdIsXDomainPath=function(_14){var _15=_14.indexOf(":");var _16=_14.indexOf("/");if(_15>0&&_15<_16){return true;}else{var url=this.baseUrl;_15=url.indexOf(":");_16=url.indexOf("/");if(_15>0&&_15<_16&&(!location.host||url.indexOf("http://"+location.host)!=0)){return true;}}return false;};dojo._loadPath=function(_18,_19,cb){var _1b=this._xdIsXDomainPath(_18);this._isXDomain|=_1b;var uri=((_18.charAt(0)=="/"||_18.match(/^\w+:/))?"":this.baseUrl)+_18;try{return ((!_19||this._isXDomain)?this._loadUri(uri,cb,_1b,_19):this._loadUriAndCheck(uri,_19,cb));}catch(e){console.error(e);return false;}};dojo._loadUri=function(uri,cb,_1f,_20){if(this._loadedUrls[uri]){return 1;}if(this._isXDomain&&_20&&_20!="dojo.i18n"){this._xdOrderedReqs.push(_20);if(_1f||uri.indexOf("/nls/")==-1){this._xdInFlight[_20]=true;this._inFlightCount++;}if(!this._xdTimer){if(dojo.isAIR){this._xdTimer=setInterval(function(){dojo._xdWatchInFlight();},100);}else{this._xdTimer=setInterval(dojo._scopeName+"._xdWatchInFlight();",100);}}this._xdStartTime=(new Date()).getTime();}if(_1f){var _21=uri.lastIndexOf(".");if(_21<=0){_21=uri.length-1;}var _22=uri.substring(0,_21)+".xd";if(_21!=uri.length-1){_22+=uri.substring(_21,uri.length);}if(dojo.isAIR){_22=_22.replace("app:/","/");}var _23=document.createElement("script");_23.type="text/javascript";_23.src=_22;if(!this.headElement){this._headElement=document.getElementsByTagName("head")[0];if(!this._headElement){this._headElement=document.getElementsByTagName("html")[0];}}this._headElement.appendChild(_23);}else{var _24=this._getText(uri,null,true);if(_24==null){return 0;}if(this._isXDomain&&uri.indexOf("/nls/")==-1&&_20!="dojo.i18n"){var res=this._xdCreateResource(_24,_20,uri);dojo.eval(res);}else{if(cb){_24="("+_24+")";}else{_24=this._scopePrefix+_24+this._scopeSuffix;}var _26=dojo["eval"](_24+"\r\n//@ sourceURL="+uri);if(cb){cb(_26);}}}this._loadedUrls[uri]=true;this._loadedUrls.push(uri);return true;};dojo._xdResourceLoaded=function(res){res=res.apply(dojo.global,dojo._scopeArgs);var _28=res.depends;var _29=null;var _2a=null;var _2b=[];if(_28&&_28.length>0){var dep=null;var _2d=0;var _2e=false;for(var i=0;i<_28.length;i++){dep=_28[i];if(dep[0]=="provide"){_2b.push(dep[1]);}else{if(!_29){_29=[];}if(!_2a){_2a=[];}var _30=this._xdUnpackDependency(dep);if(_30.requires){_29=_29.concat(_30.requires);}if(_30.requiresAfter){_2a=_2a.concat(_30.requiresAfter);}}var _31=dep[0];var _32=_31.split(".");if(_32.length==2){dojo[_32[0]][_32[1]].apply(dojo[_32[0]],dep.slice(1));}else{dojo[_31].apply(dojo,dep.slice(1));}}if(_2b.length==1&&_2b[0]=="dojo._base._loader.loader_debug"){res.defineResource(dojo);}else{var _33=this._xdContents.push({content:res.defineResource,resourceName:res["resourceName"],resourcePath:res["resourcePath"],isDefined:false})-1;for(i=0;i<_2b.length;i++){this._xdDepMap[_2b[i]]={requires:_29,requiresAfter:_2a,contentIndex:_33};}}for(i=0;i<_2b.length;i++){this._xdInFlight[_2b[i]]=false;}}};dojo._xdLoadFlattenedBundle=function(_34,_35,_36,_37){_36=_36||"root";var _38=dojo.i18n.normalizeLocale(_36).replace("-","_");var _39=[_34,"nls",_35].join(".");var _3a=dojo["provide"](_39);_3a[_38]=_37;var _3b=[_34,_38,_35].join(".");var _3c=dojo._xdBundleMap[_3b];if(_3c){for(var _3d in _3c){_3a[_3d]=_37;}}};dojo._xdInitExtraLocales=function(){var _3e=dojo.config.extraLocale;if(_3e){if(!_3e instanceof Array){_3e=[_3e];}dojo._xdReqLoc=dojo.xdRequireLocalization;dojo.xdRequireLocalization=function(m,b,_41,_42){dojo._xdReqLoc(m,b,_41,_42);if(_41){return;}for(var i=0;i<_3e.length;i++){dojo._xdReqLoc(m,b,_3e[i],_42);}};}};dojo._xdBundleMap={};dojo.xdRequireLocalization=function(_44,_45,_46,_47){if(dojo._xdInitExtraLocales){dojo._xdInitExtraLocales();dojo._xdInitExtraLocales=null;dojo.xdRequireLocalization.apply(dojo,arguments);return;}var _48=_47.split(",");var _49=dojo.i18n.normalizeLocale(_46);var _4a="";for(var i=0;i<_48.length;i++){if(_49.indexOf(_48[i])==0){if(_48[i].length>_4a.length){_4a=_48[i];}}}var _4c=_4a.replace("-","_");var _4d=dojo.getObject([_44,"nls",_45].join("."));if(_4d&&_4d[_4c]){bundle[_49.replace("-","_")]=_4d[_4c];}else{var _4e=[_44,(_4c||"root"),_45].join(".");var _4f=dojo._xdBundleMap[_4e];if(!_4f){_4f=dojo._xdBundleMap[_4e]={};}_4f[_49.replace("-","_")]=true;dojo.require(_44+".nls"+(_4a?"."+_4a:"")+"."+_45);}};dojo._xdRealRequireLocalization=dojo.requireLocalization;dojo.requireLocalization=function(_50,_51,_52,_53){var _54=this.moduleUrl(_50).toString();if(this._xdIsXDomainPath(_54)){return dojo.xdRequireLocalization.apply(dojo,arguments);}else{return dojo._xdRealRequireLocalization.apply(dojo,arguments);}};dojo._xdUnpackDependency=function(dep){var _56=null;var _57=null;switch(dep[0]){case "requireIf":case "requireAfterIf":if(dep[1]===true){_56=[{name:dep[2],content:null}];}break;case "platformRequire":var _58=dep[1];var _59=_58["common"]||[];_56=(_58[dojo.hostenv.name_])?_59.concat(_58[dojo.hostenv.name_]||[]):_59.concat(_58["default"]||[]);if(_56){for(var i=0;i<_56.length;i++){if(_56[i] instanceof Array){_56[i]={name:_56[i][0],content:null};}else{_56[i]={name:_56[i],content:null};}}}break;case "require":_56=[{name:dep[1],content:null}];break;case "i18n._preloadLocalizations":dojo.i18n._preloadLocalizations.apply(dojo.i18n._preloadLocalizations,dep.slice(1));break;}if(dep[0]=="requireAfterIf"||dep[0]=="requireIf"){_57=_56;_56=null;}return {requires:_56,requiresAfter:_57};};dojo._xdWalkReqs=function(){var _5b=null;var req;for(var i=0;i0){var req=_5e[_5e.length-1];var res=this._xdDepMap[req];var i,_62,_63;if(res){_62=res.requires;if(_62&&_62.length>0){for(i=0;i<_62.length;i++){_63=_62[i].name;if(_63&&!_5e[_63]){_5e.push(_63);_5e[_63]=true;this._xdEvalReqs(_5e);}}}var _64=this._xdContents[res.contentIndex];if(!_64.isDefined){var _65=_64.content;_65["resourceName"]=_64["resourceName"];_65["resourcePath"]=_64["resourcePath"];this._xdDefList.push(_65);_64.isDefined=true;}this._xdDepMap[req]=null;_62=res.requiresAfter;if(_62&&_62.length>0){for(i=0;i<_62.length;i++){_63=_62[i].name;if(_63&&!_5e[_63]){_5e.push(_63);_5e[_63]=true;this._xdEvalReqs(_5e);}}}}_5e.pop();}};dojo._xdClearInterval=function(){clearInterval(this._xdTimer);this._xdTimer=0;};dojo._xdWatchInFlight=function(){var _66="";var _67=(dojo.config.xdWaitSeconds||15)*1000;var _68=(this._xdStartTime+_67)<(new Date()).getTime();for(var _69 in this._xdInFlight){if(this._xdInFlight[_69]===true){if(_68){_66+=_69+" ";}else{return;}}}this._xdClearInterval();if(_68){throw "Could not load cross-domain resources: "+_66;}this._xdWalkReqs();var _6a=this._xdDefList.length;for(var i=0;i<_6a;i++){var _6c=dojo._xdDefList[i];if(dojo.config["debugAtAllCosts"]&&_6c["resourceName"]){if(!this["_xdDebugQueue"]){this._xdDebugQueue=[];}this._xdDebugQueue.push({resourceName:_6c.resourceName,resourcePath:_6c.resourcePath});}else{_6c.apply(dojo.global,dojo._scopeArgs);}}for(i=0;i0){this._xdDebugFileLoaded();}else{this._xdNotifyLoaded();}};dojo._xdNotifyLoaded=function(){this._inFlightCount=0;if(this._initFired&&!this._loadNotifying){this._callLoaded();}};} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/array.js b/spring-js/src/main/resources/META-INF/dojo/_base/array.js new file mode 100644 index 00000000..1a8219be --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/array.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.require("dojo._base.lang");dojo.provide("dojo._base.array");(function(){var _1=function(_2,_3,cb){return [dojo.isString(_2)?_2.split(""):_2,_3||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb];};dojo.mixin(dojo,{indexOf:function(_5,_6,_7,_8){var _9=1,_a=_5.length||0,i=0;if(_8){i=_a-1;_9=_a=-1;}if(_7!=undefined){i=_7;}if((_8&&i>_a)||i<_a){for(;i!=_a;i+=_9){if(_5[i]==_6){return i;}}}return -1;},lastIndexOf:function(_c,_d,_e){return dojo.indexOf(_c,_d,_e,true);},forEach:function(_f,_10,_11){if(!_f||!_f.length){return;}var _p=_1(_f,_11,_10);_f=_p[0];for(var i=0,l=_f.length;i= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");dojo.require("dojo._base.window");dojo.require("dojo._base.event");dojo.require("dojo._base.html");dojo.require("dojo._base.NodeList");dojo.require("dojo._base.query");dojo.require("dojo._base.xhr");dojo.require("dojo._base.fx");if(dojo.config.require){dojo.forEach(dojo.config.require,"dojo['require'](item);");}} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/connect.js b/spring-js/src/main/resources/META-INF/dojo/_base/connect.js new file mode 100644 index 00000000..8bd4cc28 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/connect.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo.require("dojo._base.lang");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;var r=t&&t.apply(this,arguments);var _6;_6=[].concat(ls);for(var i in _6){if(!(i in ap)){_6[i].apply(this,arguments);}}return r;};},add:function(_8,_9,_a){_8=_8||dojo.global;var f=_8[_9];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_8[_9]=d;}return f._listeners.push(_a);},remove:function(_d,_e,_f){var f=(_d||dojo.global)[_e];if(f&&f._listeners&&_f--){delete f._listeners[_f];}}};dojo.connect=function(obj,_12,_13,_14,_15){var a=arguments,_17=[],i=0;_17.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];_17.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");dojo.require("dojo._base.lang");dojo.declare=function(_1,_2,_3){var dd=arguments.callee,_5;if(dojo.isArray(_2)){_5=_2;_2=_5.shift();}if(_5){dojo.forEach(_5,function(m){if(!m){throw (_1+": mixin #"+i+" is null");}_2=dd._delegate(_2,m);});}var _7=dd._delegate(_2);_3=_3||{};_7.extend(_3);dojo.extend(_7,{declaredClass:_1,_constructor:_3.constructor});_7.prototype.constructor=_7;return dojo.setObject(_1,_7);};dojo.mixin(dojo.declare,{_delegate:function(_8,_9){var bp=(_8||0).prototype,mp=(_9||0).prototype,dd=dojo.declare;var _d=dd._makeCtor();dojo.mixin(_d,{superclass:bp,mixin:mp,extend:dd._extend});if(_8){_d.prototype=dojo._delegate(bp);}dojo.extend(_d,dd._core,mp||0,{_constructor:null,preamble:null});_d.prototype.constructor=_d;_d.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass;return _d;},_extend:function(_e){var i,fn;for(i in _e){if(dojo.isFunction(fn=_e[i])&&!0[i]){fn.nom=i;fn.ctor=this;}}dojo.extend(this,_e);},_makeCtor:function(){return function(){this._construct(arguments);};},_core:{_construct:function(_11){var c=_11.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=_11,ii,fn;if(a[0]){if(((fn=a[0].preamble))){a=fn.apply(this,a)||a;}}if((fn=c.prototype.preamble)){a=fn.apply(this,a)||a;}if(ct&&ct.apply){ct.apply(this,a);}if(mct&&mct.apply){mct.apply(this,a);}if((ii=c.prototype._constructor)){ii.apply(this,_11);}if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){ct.apply(this,_11);}},_findMixin:function(_1a){var c=this.constructor,p,m;while(c){p=c.superclass;m=c.mixin;if(m==_1a||(m instanceof _1a.constructor)){return p;}if(m&&m._findMixin&&(m=m._findMixin(_1a))){return m;}c=p&&p.constructor;}},_findMethod:function(_1e,_1f,_20,has){var p=_20,c,m,f;do{c=p.constructor;m=c.mixin;if(m&&(m=this._findMethod(_1e,_1f,m,has))){return m;}if((f=p[_1e])&&(has==(f==_1f))){return p;}p=c.superclass;}while(p);return !has&&(p=this._findMixin(_20))&&this._findMethod(_1e,_1f,p,has);},inherited:function(_26,_27,_28){var a=arguments;if(!dojo.isString(a[0])){_28=_27;_27=_26;_26=_27.callee.nom;}a=_28||_27;var c=_27.callee,p=this.constructor.prototype,fn,mp;if(this[_26]!=c||p[_26]==c){mp=(c.ctor||0).superclass||this._findMethod(_26,c,p,true);if(!mp){throw (this.declaredClass+": inherited method \""+_26+"\" mismatch");}p=this._findMethod(_26,c,mp,false);}fn=p&&p[_26];if(!fn){throw (mp.declaredClass+": inherited method \""+_26+"\" not found");}return fn.apply(this,a);}}});} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/event.js b/spring-js/src/main/resources/META-INF/dojo/_base/event.js new file mode 100644 index 00000000..8ec5025d --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/event.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");dojo.require("dojo._base.connect");(function(){var _1=(dojo._event_listener={add:function(_2,_3,fp){if(!_2){return;}_3=_1._normalizeEventName(_3);fp=_1._fixCallback(_3,fp);var _5=_3;if(!dojo.isIE&&(_3=="mouseenter"||_3=="mouseleave")){var _6=fp;_3=(_3=="mouseenter")?"mouseover":"mouseout";fp=function(e){try{e.relatedTarget.tagName;}catch(e2){return;}if(!dojo.isDescendant(e.relatedTarget,_2)){return _6.call(this,e);}};}_2.addEventListener(_3,fp,false);return fp;},remove:function(_8,_9,_a){if(_8){_9=_1._normalizeEventName(_9);if(!dojo.isIE&&(_9=="mouseenter"||_9=="mouseleave")){_9=(_9=="mouseenter")?"mouseover":"mouseout";}_8.removeEventListener(_9,_a,false);}},_normalizeEventName:function(_b){return _b.slice(0,2)=="on"?_b.slice(2):_b;},_fixCallback:function(_c,fp){return _c!="keypress"?fp:function(e){return fp.call(this,_1._fixEvent(e,this));};},_fixEvent:function(_f,_10){switch(_f.type){case "keypress":_1._setKeyChar(_f);break;}return _f;},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});dojo.fixEvent=function(evt,_13){return _1._fixEvent(evt,_13);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _15=dojo._listener;dojo._connect=function(obj,_17,_18,_19,_1a){var _1b=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=!_1b?0:(!_1a?1:2),l=[dojo._listener,_1,_15][lid];var h=l.add(obj,_17,dojo.hitch(_18,_19));return [obj,_17,h,lid];};dojo._disconnect=function(obj,_20,_21,_22){([dojo._listener,_1,_15][_22]).remove(obj,_20,_21);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145};if(dojo.isIE){var _23=function(e,_25){try{return (e.keyCode=_25);}catch(e){return 0;}};var iel=dojo._listener;var _27=dojo._ieListenersName="_"+dojo._scopeName+"_listeners";if(!dojo.config._allow_leaks){_15=iel=dojo._ie_listener={handlers:[],add:function(_28,_29,_2a){_28=_28||dojo.global;var f=_28[_29];if(!f||!f[_27]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_27]=[];f=_28[_29]=d;}return f[_27].push(ieh.push(_2a)-1);},remove:function(_2e,_2f,_30){var f=(_2e||dojo.global)[_2f],l=f&&f[_27];if(f&&l&&_30--){delete ieh[l[_30]];delete l[_30];}}};var ieh=iel.handlers;}dojo.mixin(_1,{add:function(_33,_34,fp){if(!_33){return;}_34=_1._normalizeEventName(_34);if(_34=="onkeypress"){var kd=_33.onkeydown;if(!kd||!kd[_27]||!kd._stealthKeydownHandle){var h=_1.add(_33,"onkeydown",_1._stealthKeyDown);kd=_33.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(_33,_34,_1._fixCallback(fp));},remove:function(_38,_39,_3a){_39=_1._normalizeEventName(_39);iel.remove(_38,_39,_3a);if(_39=="onkeypress"){var kd=_38.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(_38,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_3c){return _3c.slice(0,2)!="on"?"on"+_3c:_3c;},_nop:function(){},_fixEvent:function(evt,_3e){if(!evt){var w=_3e&&(_3e.ownerDocument||_3e.document||_3e).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_3e||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _42=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _43=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_42.scrollLeft||0)-_43.x;evt.pageY=evt.clientY+(_42.scrollTop||0)-_43.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}evt.stopPropagation=_1._stopPropagation;evt.preventDefault=_1._preventDefault;return _1._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;_1._setKeyChar(evt);break;}return evt;},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp[_27]){return;}var k=evt.keyCode;var _49=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_49||evt.ctrlKey){var c=_49?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=_1._punctMap[c]||c;}}}}var _4b=_1._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,_4b);evt.cancelBubble=_4b.cancelBubble;evt.returnValue=_4b.returnValue;_23(evt,_4b.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_23(this,0);}this.returnValue=false;}});dojo.stopEvent=function(evt){evt=evt||window.event;_1._stopPropagation.call(evt);_1._preventDefault.call(evt);};}_1._synthesizeEvent=function(evt,_4e){var _4f=dojo.mixin({},evt,_4e);_1._setKeyChar(_4f);_4f.preventDefault=function(){evt.preventDefault();};_4f.stopPropagation=function(){evt.stopPropagation();};return _4f;};if(dojo.isOpera){dojo.mixin(_1,{_fixEvent:function(evt,_51){switch(evt.type){case "keypress":var c=evt.which;if(c==3){c=99;}c=((c<41)&&(!evt.shiftKey)?0:c);if((evt.ctrlKey)&&(!evt.shiftKey)&&(c>=65)&&(c<=90)){c+=32;}return _1._synthesizeEvent(evt,{charCode:c});}return evt;}});}if(dojo.isSafari){_1._add=_1.add;_1._remove=_1.remove;dojo.mixin(_1,{add:function(_53,_54,fp){if(!_53){return;}var _56=_1._add(_53,_54,fp);if(_1._normalizeEventName(_54)=="keypress"){_56._stealthKeyDownHandle=_1._add(_53,"keydown",function(evt){var k=evt.keyCode;var _59=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_59||evt.ctrlKey){var c=_59?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=_1._punctMap[c]||c;}}}}var _5b=_1._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});fp.call(evt.currentTarget,_5b);}});}return _56;},remove:function(_5c,_5d,_5e){if(_5c){if(_5e._stealthKeyDownHandle){_1._remove(_5c,"keydown",_5e._stealthKeyDownHandle);}_1._remove(_5c,_5d,_5e);}},_fixEvent:function(evt,_60){switch(evt.type){case "keypress":if(evt.faux){return evt;}var c=evt.charCode;c=c>=32?c:0;return _1._synthesizeEvent(evt,{charCode:c,faux:true});}return evt;}});}})();if(dojo.isIE){dojo._ieDispatcher=function(_62,_63){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=_62.callee,ls=c[dojo._ieListenersName],t=h[c.target];var r=t&&t.apply(_63,_62);var lls=[].concat(ls);for(var i in lls){if(!(i in ap)){h[lls[i]].apply(_63,_62);}}return r;};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};};}} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/fx.js b/spring-js/src/main/resources/META-INF/dojo/_base/fx.js new file mode 100644 index 00000000..ae6bf8f4 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/fx.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");dojo.require("dojo._base.Color");dojo.require("dojo._base.connect");dojo.require("dojo._base.declare");dojo.require("dojo._base.lang");dojo.require("dojo._base.html");(function(){var d=dojo;dojo._Line=function(_2,_3){this.start=_2;this.end=_3;this.getValue=function(n){return ((this.end-this.start)*n)+this.start;};};d.declare("dojo._Animation",null,{constructor:function(_5){d.mixin(this,_5);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1]);}},duration:350,repeat:0,rate:10,_percent:0,_startRepeatCount:0,_fire:function(_6,_7){if(this[_6]){if(dojo.config.isDebug){this[_6].apply(this,_7||[]);}else{try{this[_6].apply(this,_7||[]);}catch(e){console.error("exception in animation handler for:",_6);console.error(e);}}}return this;},play:function(_8,_9){var _t=this;if(_9){_t._stopTimer();_t._active=_t._paused=false;_t._percent=0;}else{if(_t._active&&!_t._paused){return _t;}}_t._fire("beforeBegin");var de=_8||_t.delay;var _p=dojo.hitch(_t,"_play",_9);if(de>0){setTimeout(_p,de);return _t;}_p();return _t;},_play:function(_d){var _t=this;_t._startTime=new Date().valueOf();if(_t._paused){_t._startTime-=_t.duration*_t._percent;}_t._endTime=_t._startTime+_t.duration;_t._active=true;_t._paused=false;var _f=_t.curve.getValue(_t._percent);if(!_t._percent){if(!_t._startRepeatCount){_t._startRepeatCount=_t.repeat;}_t._fire("onBegin",[_f]);}_t._fire("onPlay",[_f]);_t._cycle();return _t;},pause:function(){this._stopTimer();if(!this._active){return this;}this._paused=true;this._fire("onPause",[this.curve.getValue(this._percent)]);return this;},gotoPercent:function(_10,_11){this._stopTimer();this._active=this._paused=true;this._percent=_10;if(_11){this.play();}return this;},stop:function(_12){if(!this._timer){return this;}this._stopTimer();if(_12){this._percent=1;}this._fire("onStop",[this.curve.getValue(this._percent)]);this._active=this._paused=false;return this;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _t=this;if(_t._active){var _14=new Date().valueOf();var _15=(_14-_t._startTime)/(_t._endTime-_t._startTime);if(_15>=1){_15=1;}_t._percent=_15;if(_t.easing){_15=_t.easing(_15);}_t._fire("onAnimate",[_t.curve.getValue(_15)]);if(_t._percent<1){_t._startTimer();}else{_t._active=false;if(_t.repeat>0){_t.repeat--;_t.play(null,true);}else{if(_t.repeat==-1){_t.play(null,true);}else{if(_t._startRepeatCount){_t.repeat=_t._startRepeatCount;_t._startRepeatCount=0;}}}_t._percent=0;_t._fire("onEnd");_t._stopTimer();}}return _t;}});var ctr=0;var _17=[];var _18={run:function(){}};var _19=null;dojo._Animation.prototype._startTimer=function(){if(!this._timer){this._timer=d.connect(_18,"run",this,"_cycle");ctr++;}if(!_19){_19=setInterval(d.hitch(_18,"run"),this.rate);}};dojo._Animation.prototype._stopTimer=function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_19);_19=null;ctr=0;}};var _1a=(d.isIE)?function(_1b){var ns=_1b.style;if(!ns.width.length&&d.style(_1b,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(_1d){_1d.node=d.byId(_1d.node);var _1e=d.mixin({properties:{}},_1d);var _1f=(_1e.properties.opacity={});_1f.start=!("start" in _1e)?function(){return Number(d.style(_1e.node,"opacity"));}:_1e.start;_1f.end=_1e.end;var _20=d.animateProperty(_1e);d.connect(_20,"beforeBegin",d.partial(_1a,_1e.node));return _20;};dojo.fadeIn=function(_21){return d._fade(d.mixin({end:1},_21));};dojo.fadeOut=function(_22){return d._fade(d.mixin({end:0},_22));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _24=function(_25){this._properties=_25;for(var p in _25){var _27=_25[p];if(_27.start instanceof d.Color){_27.tempColor=new d.Color();}}this.getValue=function(r){var ret={};for(var p in this._properties){var _2b=this._properties[p];var _2c=_2b.start;if(_2c instanceof d.Color){ret[p]=d.blendColors(_2c,_2b.end,r,_2b.tempColor).toCss();}else{if(!d.isArray(_2c)){ret[p]=((_2b.end-_2c)*r)+_2c+(p!="opacity"?_2b.units||"px":"");}}}return ret;};};dojo.animateProperty=function(_2d){_2d.node=d.byId(_2d.node);if(!_2d.easing){_2d.easing=d._defaultEasing;}var _2e=new d._Animation(_2d);d.connect(_2e,"beforeBegin",_2e,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var _31=this.properties[p];_31=pm[p]=d.mixin({},(d.isObject(_31)?_31:{end:_31}));if(d.isFunction(_31.start)){_31.start=_31.start();}if(d.isFunction(_31.end)){_31.end=_31.end();}var _32=(p.toLowerCase().indexOf("color")>=0);function getStyle(_33,p){var v=({height:_33.offsetHeight,width:_33.offsetWidth})[p];if(v!==undefined){return v;}v=d.style(_33,p);return (p=="opacity")?Number(v):(_32?v:parseFloat(v));};if(!("end" in _31)){_31.end=getStyle(this.node,p);}else{if(!("start" in _31)){_31.start=getStyle(this.node,p);}}if(_32){_31.start=new d.Color(_31.start);_31.end=new d.Color(_31.end);}else{_31.start=(p=="opacity")?Number(_31.start):parseFloat(_31.start);}}this.curve=new _24(pm);});d.connect(_2e,"onAnimate",d.hitch(d,"style",_2e.node));return _2e;};dojo.anim=function(_36,_37,_38,_39,_3a,_3b){return d.animateProperty({node:_36,duration:_38||d._Animation.prototype.duration,properties:_37,easing:_39,onEnd:_3a}).play(_3b||0);};})();} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/html.js b/spring-js/src/main/resources/META-INF/dojo/_base/html.js new file mode 100644 index 00000000..d69ab17f --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/html.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.require("dojo._base.lang");dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}if(dojo.isIE||dojo.isOpera){dojo.byId=function(id,_2){if(dojo.isString(id)){var _d=_2||dojo.doc;var te=_d.getElementById(id);if(te&&te.attributes.id.value==id){return te;}else{var _5=_d.all[id];if(!_5||!_5.length){return _5;}var i=0;while((te=_5[i++])){if(te.attributes.id.value==id){return te;}}}}else{return id;}};}else{dojo.byId=function(id,_8){return dojo.isString(id)?(_8||dojo.doc).getElementById(id):id;};}(function(){var d=dojo;var _a=null;dojo.addOnWindowUnload(function(){_a=null;});dojo._destroyElement=function(_b){_b=d.byId(_b);try{if(!_a||_a.ownerDocument!=_b.ownerDocument){_a=_b.ownerDocument.createElement("div");}_a.appendChild(_b.parentNode?_b.parentNode.removeChild(_b):_b);_a.innerHTML="";}catch(e){}};dojo.isDescendant=function(_c,_d){try{_c=d.byId(_c);_d=d.byId(_d);while(_c){if(_c===_d){return true;}_c=_c.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(_e,_f){_e=d.byId(_e);if(d.isMozilla){_e.style.MozUserSelect=_f?"":"none";}else{if(d.isKhtml){_e.style.KhtmlUserSelect=_f?"auto":"none";}else{if(d.isIE){var v=(_e.unselectable=_f?"":"on");d.query("*",_e).forEach("item.unselectable = '"+v+"'");}}}};var _11=function(_12,ref){ref.parentNode.insertBefore(_12,ref);return true;};var _14=function(_15,ref){var pn=ref.parentNode;if(ref==pn.lastChild){pn.appendChild(_15);}else{return _11(_15,ref.nextSibling);}return true;};dojo.place=function(_18,_19,_1a){if(!_18||!_19){return false;}_18=d.byId(_18);_19=d.byId(_19);if(typeof _1a=="number"){var cn=_19.childNodes;if(!cn.length||cn.length<=_1a){_19.appendChild(_18);return true;}return _11(_18,_1a<=0?_19.firstChild:cn[_1a]);}switch(_1a){case "before":return _11(_18,_19);case "after":return _14(_18,_19);case "first":if(_19.firstChild){return _11(_18,_19.firstChild);}default:_19.appendChild(_18);return true;}};dojo.boxModel="content-box";if(d.isIE){var _1c=document.compatMode;d.boxModel=_1c=="BackCompat"||_1c=="QuirksMode"||d.isIE<6?"border-box":"content-box";}var gcs;if(d.isSafari){gcs=function(_1e){var s;if(_1e instanceof HTMLElement){var dv=_1e.ownerDocument.defaultView;s=dv.getComputedStyle(_1e,null);if(!s&&_1e.style){_1e.style.display="";s=dv.getComputedStyle(_1e,null);}}return s||{};};}else{if(d.isIE){gcs=function(_21){return _21.nodeType==1?_21.currentStyle:{};};}else{gcs=function(_22){return _22 instanceof HTMLElement?_22.ownerDocument.defaultView.getComputedStyle(_22,null):{};};}}dojo.getComputedStyle=gcs;if(!d.isIE){dojo._toPixelValue=function(_23,_24){return parseFloat(_24)||0;};}else{dojo._toPixelValue=function(_25,_26){if(!_26){return 0;}if(_26=="medium"){return 4;}if(_26.slice&&(_26.slice(-2)=="px")){return parseFloat(_26);}with(_25){var _27=style.left;var _28=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_26;_26=style.pixelLeft;}catch(e){_26=0;}style.left=_27;runtimeStyle.left=_28;}return _26;};}var px=d._toPixelValue;var _2a="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(_2a);}catch(e){return f?{}:null;}};dojo._getOpacity=d.isIE?function(_2e){try{return af(_2e).Opacity/100;}catch(e){return 1;}}:function(_2f){return gcs(_2f).opacity;};dojo._setOpacity=d.isIE?function(_30,_31){var ov=_31*100;_30.style.zoom=1;af(_30,1).Enabled=(_31==1?false:true);if(!af(_30)){_30.style.filter+=" progid:"+_2a+"(Opacity="+ov+")";}else{af(_30,1).Opacity=ov;}if(_30.nodeName.toLowerCase()=="tr"){d.query("> td",_30).forEach(function(i){d._setOpacity(i,_31);});}return _31;}:function(_34,_35){return _34.style.opacity=_35;};var _36={left:true,top:true};var _37=/margin|padding|width|height|max|min|offset/;var _38=function(_39,_3a,_3b){_3a=_3a.toLowerCase();if(d.isIE){if(_3b=="auto"){if(_3a=="height"){return _39.offsetHeight;}if(_3a=="width"){return _39.offsetWidth;}}if(_3a=="fontweight"){switch(_3b){case 700:return "bold";case 400:default:return "normal";}}}if(!(_3a in _36)){_36[_3a]=_37.test(_3a);}return _36[_3a]?px(_39,_3b):_3b;};var _3c=d.isIE?"styleFloat":"cssFloat";var _3d={"cssFloat":_3c,"styleFloat":_3c,"float":_3c};dojo.style=function(_3e,_3f,_40){var n=d.byId(_3e),_42=arguments.length,op=(_3f=="opacity");_3f=_3d[_3f]||_3f;if(_42==3){return op?d._setOpacity(n,_40):n.style[_3f]=_40;}if(_42==2&&op){return d._getOpacity(n);}var s=gcs(n);if(_42==2&&!d.isString(_3f)){for(var x in _3f){d.style(_3e,x,_3f[x]);}return s;}return (_42==1)?s:_38(n,_3f,s[_3f]||n.style[_3f]);};dojo._getPadExtents=function(n,_47){var s=_47||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};};dojo._getBorderExtents=function(n,_4c){var ne="none",s=_4c||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};};dojo._getPadBorderExtents=function(n,_52){var s=_52||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};};dojo._getMarginExtents=function(n,_57){var s=_57||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isSafari&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(_5d,_5e){var s=_5e||gcs(_5d),me=d._getMarginExtents(_5d,s);var l=_5d.offsetLeft-me.l,t=_5d.offsetTop-me.t,p=_5d.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera){if(p){var be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}}return {l:l,t:t,w:_5d.offsetWidth+me.w,h:_5d.offsetHeight+me.h};};dojo._getContentBox=function(_68,_69){var s=_69||gcs(_68),pe=d._getPadExtents(_68,s),be=d._getBorderExtents(_68,s),w=_68.clientWidth,h;if(!w){w=_68.offsetWidth,h=_68.offsetHeight;}else{h=_68.clientHeight,be.w=be.h=0;}if(d.isOpera){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};dojo._getBorderBox=function(_6f,_70){var s=_70||gcs(_6f),pe=d._getPadExtents(_6f,s),cb=d._getContentBox(_6f,s);return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};};dojo._setBox=function(_74,l,t,w,h,u){u=u||"px";var s=_74.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};dojo._isButtonTag=function(_7b){return _7b.tagName=="BUTTON"||_7b.tagName=="INPUT"&&_7b.getAttribute("type").toUpperCase()=="BUTTON";};dojo._usesBorderBox=function(_7c){var n=_7c.tagName;return d.boxModel=="border-box"||n=="TABLE"||dojo._isButtonTag(_7c);};dojo._setContentSize=function(_7e,_7f,_80,_81){if(d._usesBorderBox(_7e)){var pb=d._getPadBorderExtents(_7e,_81);if(_7f>=0){_7f+=pb.w;}if(_80>=0){_80+=pb.h;}}d._setBox(_7e,NaN,NaN,_7f,_80);};dojo._setMarginBox=function(_83,_84,_85,_86,_87,_88){var s=_88||gcs(_83);var bb=d._usesBorderBox(_83),pb=bb?_8c:d._getPadBorderExtents(_83,s);if(dojo.isSafari){if(dojo._isButtonTag(_83)){var ns=_83.style;if(_86>=0&&!ns.width){ns.width="4px";}if(_87>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(_83,s);if(_86>=0){_86=Math.max(_86-pb.w-mb.w,0);}if(_87>=0){_87=Math.max(_87-pb.h-mb.h,0);}d._setBox(_83,_84,_85,_86,_87);};var _8c={l:0,t:0,w:0,h:0};dojo.marginBox=function(_8f,box){var n=d.byId(_8f),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(_94,box){var n=d.byId(_94),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _99=function(_9a,_9b){if(!(_9a=(_9a||0).parentNode)){return 0;}var val,_9d=0,_b=d.body();while(_9a&&_9a.style){if(gcs(_9a).position=="fixed"){return 0;}val=_9a[_9b];if(val){_9d+=val-0;if(_9a==_b){break;}}_9a=_9a.parentNode;}return _9d;};dojo._docScroll=function(){var _b=d.body(),_w=d.global,de=d.doc.documentElement;return {y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||0)};};dojo._isBodyLtr=function(){return !("_bodyLtr" in d)?d._bodyLtr=gcs(d.body()).direction=="ltr":d._bodyLtr;};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;return (d.isIE>=7)?{x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top}:{x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};};dojo._fixIeBiDiScrollLeft=function(_a3){var dd=d.doc;if(d.isIE&&!dojo._isBodyLtr()){var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;return _a3+de.clientWidth-de.scrollWidth;}return _a3;};dojo._abs=function(_a6,_a7){var _a8=_a6.ownerDocument;var ret={x:0,y:0};var db=d.body();if(d.isIE||(d.isFF>=3)){var _ab=_a6.getBoundingClientRect();var cs;if(d.isFF){var dv=_a6.ownerDocument.defaultView;cs=dv.getComputedStyle(db.parentNode,null);}var _ae=(d.isIE)?d._getIeDocumentElementOffset():{x:px(db.parentNode,cs.marginLeft),y:px(db.parentNode,cs.marginTop)};ret.x=_ab.left-_ae.x;ret.y=_ab.top-_ae.y;}else{if(_a6["offsetParent"]){var _af;if(d.isSafari&&(gcs(_a6).position=="absolute")&&(_a6.parentNode==db)){_af=db;}else{_af=db.parentNode;}var cs=gcs(_a6);var n=_a6;if(d.isOpera&&cs.position!="absolute"){n=n.offsetParent;}ret.x-=_99(n,"scrollLeft");ret.y-=_99(n,"scrollTop");var _b1=_a6;do{var n=_b1.offsetLeft;if(!d.isOpera||n>0){ret.x+=isNaN(n)?0:n;}var t=_b1.offsetTop;ret.y+=isNaN(t)?0:t;var cs=gcs(_b1);if(_b1!=_a6){if(d.isSafari){ret.x+=px(_b1,cs.borderLeftWidth);ret.y+=px(_b1,cs.borderTopWidth);}else{if(d.isFF){ret.x+=2*px(_b1,cs.borderLeftWidth);ret.y+=2*px(_b1,cs.borderTopWidth);}}}if(d.isFF&&cs.position=="static"){var _b3=_b1.parentNode;while(_b3!=_b1.offsetParent){var pcs=gcs(_b3);if(pcs.position=="static"){ret.x+=px(_b1,pcs.borderLeftWidth);ret.y+=px(_b1,pcs.borderTopWidth);}_b3=_b3.parentNode;}}_b1=_b1.offsetParent;}while((_b1!=_af)&&_b1);}else{if(_a6.x&&_a6.y){ret.x+=isNaN(_a6.x)?0:_a6.x;ret.y+=isNaN(_a6.y)?0:_a6.y;}}}if(_a7){var _b5=d._docScroll();ret.y+=_b5.y;ret.x+=_b5.x;}return ret;};dojo.coords=function(_b6,_b7){var n=d.byId(_b6),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d._abs(n,_b7);mb.x=abs.x;mb.y=abs.y;return mb;};var _bc=d.isIE<8;var _bd=function(_be){switch(_be.toLowerCase()){case "tabindex":return _bc?"tabIndex":"tabindex";case "for":case "htmlfor":return _bc?"htmlFor":"for";case "class":return d.isIE?"className":"class";default:return _be;}};var _bf={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType"};dojo.hasAttr=function(_c0,_c1){_c0=d.byId(_c0);var _c2=_bd(_c1);_c2=_c2=="htmlFor"?"for":_c2;var _c3=_c0.getAttributeNode&&_c0.getAttributeNode(_c2);return _c3?_c3.specified:false;};var _c4={};var _c5=0;var _c6=dojo._scopeName+"attrid";dojo.attr=function(_c7,_c8,_c9){var _ca=arguments.length;if(_ca==2&&!d.isString(_c8)){for(var x in _c8){d.attr(_c7,x,_c8[x]);}return;}_c7=d.byId(_c7);_c8=_bd(_c8);if(_ca==3){if(d.isFunction(_c9)){var _cc=d.attr(_c7,_c6);if(!_cc){_cc=_c5++;d.attr(_c7,_c6,_cc);}if(!_c4[_cc]){_c4[_cc]={};}var h=_c4[_cc][_c8];if(h){d.disconnect(h);}else{try{delete _c7[_c8];}catch(e){}}_c4[_cc][_c8]=d.connect(_c7,_c8,_c9);}else{if((typeof _c9=="boolean")||(_c8=="innerHTML")){_c7[_c8]=_c9;}else{if((_c8=="style")&&(!d.isString(_c9))){d.style(_c7,_c9);}else{_c7.setAttribute(_c8,_c9);}}}return;}else{var _ce=_bf[_c8.toLowerCase()];if(_ce){return _c7[_ce];}else{var _cf=_c7[_c8];return (typeof _cf=="boolean"||typeof _cf=="function")?_cf:(d.hasAttr(_c7,_c8)?_c7.getAttribute(_c8):null);}}};dojo.removeAttr=function(_d0,_d1){d.byId(_d0).removeAttribute(_bd(_d1));};var _d2="className";dojo.hasClass=function(_d3,_d4){return ((" "+d.byId(_d3)[_d2]+" ").indexOf(" "+_d4+" ")>=0);};dojo.addClass=function(_d5,_d6){_d5=d.byId(_d5);var cls=_d5[_d2];if((" "+cls+" ").indexOf(" "+_d6+" ")<0){_d5[_d2]=cls+(cls?" ":"")+_d6;}};dojo.removeClass=function(_d8,_d9){_d8=d.byId(_d8);var t=d.trim((" "+_d8[_d2]+" ").replace(" "+_d9+" "," "));if(_d8[_d2]!=t){_d8[_d2]=t;}};dojo.toggleClass=function(_db,_dc,_dd){if(_dd===undefined){_dd=!d.hasClass(_db,_dc);}d[_dd?"addClass":"removeClass"](_db,_dc);};})();} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/json.js b/spring-js/src/main/resources/META-INF/dojo/_base/json.js new file mode 100644 index 00000000..0b32678e --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/json.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(_1){return eval("("+_1+")");};dojo._escapeString=function(_2){return ("\""+_2.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_4,_5){if(it===undefined){return "undefined";}var _6=typeof it;if(_6=="number"||_6=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}var _7=arguments.callee;var _8;_5=_5||"";var _9=_4?_5+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){_8=tf.call(it);if(it!==_8){return _7(_8,_4,_9);}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}var _b=_4?" ":"";var _c=_4?"\n":"";if(dojo.isArray(it)){var _d=dojo.map(it,function(_e){var _f=_7(_e,_4,_9);if(typeof _f!="string"){_f="undefined";}return _c+_9+_f;});return "["+_d.join(","+_b)+_c+_5+"]";}if(_6=="function"){return null;}var _10=[],key;for(key in it){var _12,val;if(typeof key=="number"){_12="\""+key+"\"";}else{if(typeof key=="string"){_12=dojo._escapeString(key);}else{continue;}}val=_7(it[key],_4,_9);if(typeof val!="string"){continue;}_10.push(_c+_9+_12+":"+_b+val);}return "{"+_10.join(","+_b)+_c+_5+"}";};} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/lang.js b/spring-js/src/main/resources/META-INF/dojo/_base/lang.js new file mode 100644 index 00000000..fcfe6ec8 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/lang.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");dojo.isString=function(it){return !!arguments.length&&it!=null&&(typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=(function(){var _3=function(it){return it&&(typeof it=="function"||it instanceof Function);};return dojo.isSafari?function(it){if(typeof it=="function"&&it=="[object NodeList]"){return false;}return _3(it);}:_3;})();dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));};dojo.isArrayLike=function(it){var d=dojo;return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));};dojo.isAlien=function(it){return it&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_a,_b){for(var i=1,l=arguments.length;i2){return dojo._hitchArgs.apply(dojo,arguments);}if(!_15){_15=_14;_14=null;}if(dojo.isString(_15)){_14=_14||dojo.global;if(!_14[_15]){throw (["dojo.hitch: scope[\"",_15,"\"] is null (scope=\"",_14,"\")"].join(""));}return function(){return _14[_15].apply(_14,arguments||[]);};}return !_14?_15:function(){return _15.apply(_14,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_17){TMP.prototype=obj;var tmp=new TMP();if(_17){dojo._mixin(tmp,_17);}return tmp;};})();(function(){var _19=function(obj,_1b,_1c){return (_1c||[]).concat(Array.prototype.slice.call(obj,_1b||0));};var _1d=function(obj,_1f,_20){var arr=_20||[];for(var x=_1f||0;x= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;dojo.provide("dojo._base.query");dojo.require("dojo._base.NodeList");(function(){var d=dojo;var _2=dojo.isIE?"children":"childNodes";var _3=false;var _4=function(_5){if(">~+".indexOf(_5.charAt(_5.length-1))>=0){_5+=" *";}_5+=" ";var ts=function(s,e){return d.trim(_5.slice(s,e));};var _9=[];var _a=-1;var _b=-1;var _c=-1;var _d=-1;var _e=-1;var _f=-1;var _10=-1;var lc="";var cc="";var _13;var x=0;var ql=_5.length;var _16=null;var _cp=null;var _18=function(){if(_10>=0){var tv=(_10==x)?null:ts(_10,x);_16[(">~+".indexOf(tv)<0)?"tag":"oper"]=tv;_10=-1;}};var _1a=function(){if(_f>=0){_16.id=ts(_f,x).replace(/\\/g,"");_f=-1;}};var _1b=function(){if(_e>=0){_16.classes.push(ts(_e+1,x).replace(/\\/g,""));_e=-1;}};var _1c=function(){_1a();_18();_1b();};for(;lc=cc,cc=_5.charAt(x),x=0){if(cc=="]"){if(!_cp.attr){_cp.attr=ts(_a+1,x);}else{_cp.matchFor=ts((_c||_a+1),x);}var cmf=_cp.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_cp.matchFor=cmf.substring(1,cmf.length-1);}}_16.attrs.push(_cp);_cp=null;_a=_c=-1;}else{if(cc=="="){var _1e=("|~^$*".indexOf(lc)>=0)?lc:"";_cp.type=_1e+cc;_cp.attr=ts(_a+1,x-_1e.length);_c=x+1;}}}else{if(_b>=0){if(cc==")"){if(_d>=0){_cp.value=ts(_b+1,x);}_d=_b=-1;}}else{if(cc=="#"){_1c();_f=x+1;}else{if(cc=="."){_1c();_e=x;}else{if(cc==":"){_1c();_d=x;}else{if(cc=="["){_1c();_a=x;_cp={};}else{if(cc=="("){if(_d>=0){_cp={name:ts(_d+1,x),value:null};_16.pseudos.push(_cp);}_b=x;}else{if(cc==" "&&lc!=cc){_1c();if(_d>=0){_16.pseudos.push({name:ts(_d+1,x)});}_16.hasLoops=(_16.pseudos.length||_16.attrs.length||_16.classes.length);_16.query=ts(_13,x);_16.otag=_16.tag=(_16["oper"])?null:(_16.tag||"*");if(_16.tag){_16.tag=_16.tag.toUpperCase();}_9.push(_16);_16=null;}}}}}}}}}return _9;};var _1f={"*=":function(_20,_21){return "[contains(@"+_20+", '"+_21+"')]";},"^=":function(_22,_23){return "[starts-with(@"+_22+", '"+_23+"')]";},"$=":function(_24,_25){return "[substring(@"+_24+", string-length(@"+_24+")-"+(_25.length-1)+")='"+_25+"']";},"~=":function(_26,_27){return "[contains(concat(' ',@"+_26+",' '), ' "+_27+" ')]";},"|=":function(_28,_29){return "[contains(concat(' ',@"+_28+",' '), ' "+_29+"-')]";},"=":function(_2a,_2b){return "[@"+_2a+"='"+_2b+"']";}};var _2c=function(_2d,_2e,_2f,_30){d.forEach(_2e.attrs,function(_31){var _32;if(_31.type&&_2d[_31.type]){_32=_2d[_31.type](_31.attr,_31.matchFor);}else{if(_31.attr.length){_32=_2f(_31.attr);}}if(_32){_30(_32);}});};var _33=function(_34){var _35=".";var _36=_4(d.trim(_34));while(_36.length){var tqp=_36.shift();var _38;var _39="";if(tqp.oper==">"){_38="/";tqp=_36.shift();}else{if(tqp.oper=="~"){_38="/following-sibling::";tqp=_36.shift();}else{if(tqp.oper=="+"){_38="/following-sibling::";_39="[position()=1]";tqp=_36.shift();}else{_38="//";}}}_35+=_38+tqp.tag+_39;if(tqp.id){_35+="[@id='"+tqp.id+"'][1]";}d.forEach(tqp.classes,function(cn){var cnl=cn.length;var _3c=" ";if(cn.charAt(cnl-1)=="*"){_3c="";cn=cn.substr(0,cnl-1);}_35+="[contains(concat(' ',@class,' '), ' "+cn+_3c+"')]";});_2c(_1f,tqp,function(_3d){return "[@"+_3d+"]";},function(_3e){_35+=_3e;});}return _35;};var _3f={};var _40=function(_41){if(_3f[_41]){return _3f[_41];}var doc=d.doc;var _43=_33(_41);var tf=function(_45){var ret=[];var _47;var _48=doc;if(_45){_48=(_45.nodeType==9)?_45:_45.ownerDocument;}try{_47=_48.evaluate(_43,_45,null,XPathResult.ANY_TYPE,null);}catch(e){console.debug("failure in exprssion:",_43,"under:",_45);console.debug(e);}var _49=_47.iterateNext();while(_49){ret.push(_49);_49=_47.iterateNext();}return ret;};return _3f[_41]=tf;};var _4a={};var _4b={};var _4c=function(_4d,_4e){if(!_4d){return _4e;}if(!_4e){return _4d;}return function(){return _4d.apply(window,arguments)&&_4e.apply(window,arguments);};};var _4f=function(_50){var ret=[];var te,x=0,_54=_50[_2];while((te=_54[x++])){if(te.nodeType==1){ret.push(te);}}return ret;};var _55=function(_56,_57){var ret=[];var te=_56;while(te=te.nextSibling){if(te.nodeType==1){ret.push(te);if(_57){break;}}}return ret;};var _5a=function(_5b,_5c,_5d,idx){var _5f=idx+1;var _60=(_5c.length==_5f);var tqp=_5c[idx];if(tqp.oper){var ecn=(tqp.oper==">")?_4f(_5b):_55(_5b,(tqp.oper=="+"));if(!ecn||!ecn.length){return;}_5f++;_60=(_5c.length==_5f);var tf=_64(_5c[idx+1]);for(var x=0,_66=ecn.length,te;x<_66,te=ecn[x];x++){if(tf(te)){if(_60){_5d.push(te);}else{_5a(te,_5c,_5d,_5f);}}}}var _68=_69(tqp)(_5b);if(_60){while(_68.length){_5d.push(_68.shift());}}else{while(_68.length){_5a(_68.shift(),_5c,_5d,_5f);}}};var _6a=function(_6b,_6c){var ret=[];var x=_6b.length-1,te;while((te=_6b[x--])){_5a(te,_6c,ret,0);}return ret;};var _64=function(q){if(_4a[q.query]){return _4a[q.query];}var ff=null;if(q.tag){if(q.tag=="*"){ff=_4c(ff,function(_72){return (_72.nodeType==1);});}else{ff=_4c(ff,function(_73){return ((_73.nodeType==1)&&(q[_3?"otag":"tag"]==_73.tagName));});}}if(q.id){ff=_4c(ff,function(_74){return ((_74.nodeType==1)&&(_74.id==q.id));});}if(q.hasLoops){ff=_4c(ff,_75(q));}return _4a[q.query]=ff;};var _76=function(_77){var pn=_77.parentNode;var pnc=pn.childNodes;var _7a=-1;var _7b=pn.firstChild;if(!_7b){return _7a;}var ci=_77["__cachedIndex"];var cl=pn["__cachedLength"];if(((typeof cl=="number")&&(cl!=pnc.length))||(typeof ci!="number")){pn["__cachedLength"]=pnc.length;var idx=1;do{if(_7b===_77){_7a=idx;}if(_7b.nodeType==1){_7b["__cachedIndex"]=idx;idx++;}_7b=_7b.nextSibling;}while(_7b);}else{_7a=ci;}return _7a;};var _7f=0;var _80="";var _81=function(_82,_83){if(_83=="class"){return _82.className||_80;}if(_83=="for"){return _82.htmlFor||_80;}if(_83=="style"){return _82.style.cssText||_80;}return _82.getAttribute(_83,2)||_80;};var _84={"*=":function(_85,_86){return function(_87){return (_81(_87,_85).indexOf(_86)>=0);};},"^=":function(_88,_89){return function(_8a){return (_81(_8a,_88).indexOf(_89)==0);};},"$=":function(_8b,_8c){var _8d=" "+_8c;return function(_8e){var ea=" "+_81(_8e,_8b);return (ea.lastIndexOf(_8c)==(ea.length-_8c.length));};},"~=":function(_90,_91){var _92=" "+_91+" ";return function(_93){var ea=" "+_81(_93,_90)+" ";return (ea.indexOf(_92)>=0);};},"|=":function(_95,_96){var _97=" "+_96+"-";return function(_98){var ea=" "+(_98.getAttribute(_95,2)||"");return ((ea==_96)||(ea.indexOf(_97)==0));};},"=":function(_9a,_9b){return function(_9c){return (_81(_9c,_9a)==_9b);};}};var _9d={"checked":function(_9e,_9f){return function(_a0){return !!d.attr(_a0,"checked");};},"first-child":function(_a1,_a2){return function(_a3){if(_a3.nodeType!=1){return false;}var fc=_a3.previousSibling;while(fc&&(fc.nodeType!=1)){fc=fc.previousSibling;}return (!fc);};},"last-child":function(_a5,_a6){return function(_a7){if(_a7.nodeType!=1){return false;}var nc=_a7.nextSibling;while(nc&&(nc.nodeType!=1)){nc=nc.nextSibling;}return (!nc);};},"empty":function(_a9,_aa){return function(_ab){var cn=_ab.childNodes;var cnl=_ab.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt==1)||(nt==3)){return false;}}return true;};},"contains":function(_b0,_b1){return function(_b2){if(_b1.charAt(0)=="\""||_b1.charAt(0)=="'"){_b1=_b1.substr(1,_b1.length-2);}return (_b2.innerHTML.indexOf(_b1)>=0);};},"not":function(_b3,_b4){var ntf=_64(_4(_b4)[0]);return function(_b6){return (!ntf(_b6));};},"nth-child":function(_b7,_b8){var pi=parseInt;if(_b8=="odd"){_b8="2n+1";}else{if(_b8=="even"){_b8="2n";}}if(_b8.indexOf("n")!=-1){var _ba=_b8.split("n",2);var _bb=_ba[0]?(_ba[0]=="-"?-1:pi(_ba[0])):1;var idx=_ba[1]?pi(_ba[1]):0;var lb=0,ub=-1;if(_bb>0){if(idx<0){idx=(idx%_bb)&&(_bb+(idx%_bb));}else{if(idx>0){if(idx>=_bb){lb=idx-idx%_bb;}idx=idx%_bb;}}}else{if(_bb<0){_bb*=-1;if(idx>0){ub=idx;idx=idx%_bb;}}}if(_bb>0){return function(_bf){var i=_76(_bf);return (i>=lb)&&(ub<0||i<=ub)&&((i%_bb)==idx);};}else{_b8=idx;}}var _c1=pi(_b8);return function(_c2){return (_76(_c2)==_c1);};}};var _c3=(d.isIE)?function(_c4){var clc=_c4.toLowerCase();return function(_c6){return _c6[_c4]||_c6[clc];};}:function(_c7){return function(_c8){return (_c8&&_c8.getAttribute&&_c8.hasAttribute(_c7));};};var _75=function(_c9){var _ca=(_4b[_c9.query]||_4a[_c9.query]);if(_ca){return _ca;}var ff=null;if(_c9.id){if(_c9.tag!="*"){ff=_4c(ff,function(_cc){return (_cc.tagName==_c9[_3?"otag":"tag"]);});}}d.forEach(_c9.classes,function(_cd,idx,arr){var _d0=_cd.charAt(_cd.length-1)=="*";if(_d0){_cd=_cd.substr(0,_cd.length-1);}var re=new RegExp("(?:^|\\s)"+_cd+(_d0?".*":"")+"(?:\\s|$)");ff=_4c(ff,function(_d2){return re.test(_d2.className);});ff.count=idx;});d.forEach(_c9.pseudos,function(_d3){if(_9d[_d3.name]){ff=_4c(ff,_9d[_d3.name](_d3.name,_d3.value));}});_2c(_84,_c9,_c3,function(_d4){ff=_4c(ff,_d4);});if(!ff){ff=function(){return true;};}return _4b[_c9.query]=ff;};var _d5={};var _69=function(_d6,_d7){var _d8=_d5[_d6.query];if(_d8){return _d8;}if(_d6.id&&!_d6.hasLoops&&!_d6.tag){return _d5[_d6.query]=function(_d9){return [d.byId(_d6.id)];};}var _da=_75(_d6);var _db;if(_d6.tag&&_d6.id&&!_d6.hasLoops){_db=function(_dc){var te=d.byId(_d6.id,(_dc.ownerDocument||_dc));if(_da(te)){return [te];}};}else{var _de;if(!_d6.hasLoops){_db=function(_df){var ret=[];var te,x=0,_de=_df.getElementsByTagName(_d6[_3?"otag":"tag"]);while((te=_de[x++])){ret.push(te);}return ret;};}else{_db=function(_e3){var ret=[];var te,x=0,_de=_e3.getElementsByTagName(_d6[_3?"otag":"tag"]);while((te=_de[x++])){if(_da(te)){ret.push(te);}}return ret;};}}return _d5[_d6.query]=_db;};var _e7={};var _e8={"*":d.isIE?function(_e9){return _e9.all;}:function(_ea){return _ea.getElementsByTagName("*");},"~":_55,"+":function(_eb){return _55(_eb,true);},">":_4f};var _ec=function(_ed){var _ee=_4(d.trim(_ed));if(_ee.length==1){var tt=_69(_ee[0]);tt.nozip=true;return tt;}var sqf=function(_f1){var _f2=_ee.slice(0);var _f3;if(_f2[0].oper==">"){_f3=[_f1];}else{_f3=_69(_f2.shift())(_f1);}return _6a(_f3,_f2);};return sqf;};var _f4=((document["evaluate"]&&!d.isSafari)?function(_f5,_f6){var _f7=_f5.split(" ");if((!_3)&&(document["evaluate"])&&(_f5.indexOf(":")==-1)&&(_f5.indexOf("+")==-1)){if(((_f7.length>2)&&(_f5.indexOf(">")==-1))||(_f7.length>3)||(_f5.indexOf("[")>=0)||((1==_f7.length)&&(0<=_f5.indexOf(".")))){return _40(_f5);}}return _ec(_f5);}:_ec);var _f8=function(_f9){var qcz=_f9.charAt(0);if(d.doc["querySelectorAll"]&&((!d.isSafari)||(d.isSafari>3.1))&&(">+~".indexOf(qcz)==-1)){return function(_fb){var r=_fb.querySelectorAll(_f9);r.nozip=true;return r;};}if(_e8[_f9]){return _e8[_f9];}if(0>_f9.indexOf(",")){return _e8[_f9]=_f4(_f9);}else{var _fd=_f9.split(/\s*,\s*/);var tf=function(_ff){var _100=0;var ret=[];var tp;while((tp=_fd[_100++])){ret=ret.concat(_f4(tp,tp.indexOf(" "))(_ff));}return ret;};return _e8[_f9]=tf;}};var _103=0;var _zip=function(arr){if(arr&&arr.nozip){return d.NodeList._wrap(arr);}var ret=new d.NodeList();if(!arr){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_103++;if(d.isIE&&_3){var _107=_103+"";arr[0].setAttribute("_zipIdx",_107);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute("_zipIdx")!=_107){ret.push(te);}te.setAttribute("_zipIdx",_107);}}else{arr[0]["_zipIdx"]=_103;for(var x=1,te;te=arr[x];x++){if(arr[x]["_zipIdx"]!=_103){ret.push(te);}te["_zipIdx"]=_103;}}return ret;};d.query=function(_10a,root){if(_10a.constructor==d.NodeList){return _10a;}if(!d.isString(_10a)){return new d.NodeList(_10a);}if(d.isString(root)){root=d.byId(root);}root=root||d.doc;var od=root.ownerDocument||root.documentElement;_3=(root.contentType&&root.contentType=="application/xml")||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));return _zip(_f8(_10a)(root));};d.query.pseudos=_9d;d._filterQueryResult=function(_10d,_10e){var tnl=new d.NodeList();var ff=(_10e)?_64(_4(_10e)[0]):function(){return true;};for(var x=0,te;te=_10d[x];x++){if(ff(te)){tnl.push(te);}}return tnl;};})();} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/window.js b/spring-js/src/main/resources/META-INF/dojo/_base/window.js new file mode 100644 index 00000000..554e29b3 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/window.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_1,_2){dojo.global=_1;dojo.doc=_2;};dojo._fireCallback=function(_3,_4,_5){if(_4&&dojo.isString(_3)){_3=_4[_3];}return _3.apply(_4,_5||[]);};dojo.withGlobal=function(_6,_7,_8,_9){var _a;var _b=dojo.global;var _c=dojo.doc;try{dojo.setContext(_6,_6.document);_a=dojo._fireCallback(_7,_8,_9);}finally{dojo.setContext(_b,_c);}return _a;};dojo.withDoc=function(_d,_e,_f,_10){var _11;var _12=dojo.doc;try{dojo.doc=_d;_11=dojo._fireCallback(_e,_f,_10);}finally{dojo.doc=_12;}return _11;};} \ No newline at end of file diff --git a/spring-js/src/main/resources/META-INF/dojo/_base/xhr.js b/spring-js/src/main/resources/META-INF/dojo/_base/xhr.js new file mode 100644 index 00000000..73f1d858 --- /dev/null +++ b/spring-js/src/main/resources/META-INF/dojo/_base/xhr.js @@ -0,0 +1,8 @@ +/* + Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");dojo.require("dojo._base.Deferred");dojo.require("dojo._base.json");dojo.require("dojo._base.lang");dojo.require("dojo._base.query");(function(){var _d=dojo;function setValue(_2,_3,_4){var _5=_2[_3];if(_d.isString(_5)){_2[_3]=[_5,_4];}else{if(_d.isArray(_5)){_5.push(_4);}else{_2[_3]=_4;}}};dojo.formToObject=function(_6){var _7={};var _8="file|submit|image|reset|button|";_d.forEach(dojo.byId(_6).elements,function(_9){var _a=_9.name;var _b=(_9.type||"").toLowerCase();if(_a&&_b&&_8.indexOf(_b)==-1&&!_9.disabled){if(_b=="radio"||_b=="checkbox"){if(_9.checked){setValue(_7,_a,_9.value);}}else{if(_9.multiple){_7[_a]=[];_d.query("option",_9).forEach(function(_c){if(_c.selected){setValue(_7,_a,_c.value);}});}else{setValue(_7,_a,_9.value);if(_b=="image"){_7[_a+".x"]=_7[_a+".y"]=_7[_a].x=_7[_a].y=0;}}}}});return _7;};dojo.objectToQuery=function(_d){var _e=encodeURIComponent;var _f=[];var _10={};for(var _11 in _d){var _12=_d[_11];if(_12!=_10[_11]){var _13=_e(_11)+"=";if(_d.isArray(_12)){for(var i=0;i<_12.length;i++){_f.push(_13+_e(_12[i]));}}else{_f.push(_13+_e(_12));}}}return _f.join("&");};dojo.formToQuery=function(_15){return _d.objectToQuery(_d.formToObject(_15));};dojo.formToJson=function(_16,_17){return _d.toJson(_d.formToObject(_16),_17);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_d.forEach(qp,function(_1c){if(_1c.length){var _1d=_1c.split("=");var _1e=dec(_1d.shift());var val=dec(_1d.join("="));if(_d.isString(ret[_1e])){ret[_1e]=[ret[_1e]];}if(_d.isArray(ret[_1e])){ret[_1e].push(val);}else{ret[_1e]=val;}}});return ret;};dojo._blockAsync=false;dojo._contentHandlers={"text":function(xhr){return xhr.responseText;},"json":function(xhr){return _d.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!dojo.config.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _23=xhr.responseText;var _24=_23.indexOf("/*");var _25=_23.lastIndexOf("*/");if(_24==-1||_25==-1){throw new Error("JSON was not comment filtered");}return _d.fromJson(_23.substring(_24+2,_25));},"javascript":function(xhr){return _d.eval(xhr.responseText);},"xml":function(xhr){var _28=xhr.responseXML;if(_d.isIE&&(!_28||_28.documentElement==null)){_d.forEach(["MSXML2","Microsoft","MSXML","MSXML3"],function(_29){try{var dom=new ActiveXObject(_29+".XMLDOM");dom.async=false;dom.loadXML(xhr.responseText);_28=dom;}catch(e){}});}return _28;}};dojo._contentHandlers["json-comment-optional"]=function(xhr){var _2c=_d._contentHandlers;if(xhr.responseText&&xhr.responseText.indexOf("/*")!=-1){return _2c["json-comment-filtered"](xhr);}else{return _2c["json"](xhr);}};dojo._ioSetArgs=function(_2d,_2e,_2f,_30){var _31={args:_2d,url:_2d.url};var _32=null;if(_2d.form){var _33=_d.byId(_2d.form);var _34=_33.getAttributeNode("action");_31.url=_31.url||(_34?_34.value:null);_32=_d.formToObject(_33);}var _35=[{}];if(_32){_35.push(_32);}if(_2d.content){_35.push(_2d.content);}if(_2d.preventCache){_35.push({"dojo.preventCache":new Date().valueOf()});}_31.query=_d.objectToQuery(_d.mixin.apply(null,_35));_31.handleAs=_2d.handleAs||"text";var d=new _d.Deferred(_2e);d.addCallbacks(_2f,function(_37){return _30(_37,d);});var ld=_2d.load;if(ld&&_d.isFunction(ld)){d.addCallback(function(_39){return ld.call(_2d,_39,_31);});}var err=_2d.error;if(err&&_d.isFunction(err)){d.addErrback(function(_3b){return err.call(_2d,_3b,_31);});}var _3c=_2d.handle;if(_3c&&_d.isFunction(_3c)){d.addBoth(function(_3d){return _3c.call(_2d,_3d,_31);});}d.ioArgs=_31;return d;};var _3e=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _at=typeof xhr.abort;if(_at=="function"||_at=="object"||_at=="unknown"){xhr.abort();}var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel";}return err;};var _43=function(dfd){var ret=_d._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return (typeof ret=="undefined")?null:ret;};var _46=function(_47,dfd){console.debug(_47);return _47;};var _49=null;var _4a=[];var _4b=function(){var now=(new Date()).getTime();if(!_d._blockAsync){for(var i=0,tif;i<_4a.length&&(tif=_4a[i]);i++){var dfd=tif.dfd;var _50=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_4a.splice(i--,1);}else{if(tif.ioCheck(dfd)){_4a.splice(i--,1);tif.resHandle(dfd);}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)