tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkuhn...@apache.org
Subject svn commit: r618461 [24/43] - in /tapestry/tapestry4/trunk/tapestry-framework/src/js: dojo-0.4.3-custom-4.1.5/ dojo-0.4.3-custom-4.1.5/nls/ dojo-0.4.3-custom-4.1.5/src/ dojo-0.4.3-custom-4.1.5/src/animation/ dojo-0.4.3-custom-4.1.5/src/cal/ dojo-0.4.3-...
Date Mon, 04 Feb 2008 22:08:37 GMT
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/extras.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/extras.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/extras.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/func.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/func.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/func.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/func.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,122 @@
+dojo.provide("dojo.lang.func");
+dojo.require("dojo.lang.common");
+dojo.lang.hitch=function(_1,_2){
+var _3=[];
+for(var x=2;x<arguments.length;x++){
+_3.push(arguments[x]);
+}
+var _5=(dojo.lang.isString(_2)?_1[_2]:_2)||function(){
+};
+return function(){
+var ta=_3.concat([]);
+for(var x=0;x<arguments.length;x++){
+ta.push(arguments[x]);
+}
+return _5.apply(_1,ta);
+};
+};
+dojo.lang.anonCtr=0;
+dojo.lang.anon={};
+dojo.lang.nameAnonFunc=function(_8,_9,_a){
+var _b=(_9||dojo.lang.anon);
+if((_a)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
+for(var x in _b){
+try{
+if(_b[x]===_8){
+return x;
+}
+}
+catch(e){
+}
+}
+}
+var _d="__"+dojo.lang.anonCtr++;
+while(typeof _b[_d]!="undefined"){
+_d="__"+dojo.lang.anonCtr++;
+}
+_b[_d]=_8;
+return _d;
+};
+dojo.lang.forward=function(_e){
+return function(){
+return this[_e].apply(this,arguments);
+};
+};
+dojo.lang.curry=function(_f,_10){
+var _11=[];
+_f=_f||dj_global;
+if(dojo.lang.isString(_10)){
+_10=_f[_10];
+}
+for(var x=2;x<arguments.length;x++){
+_11.push(arguments[x]);
+}
+var _13=(_10["__preJoinArity"]||_10.length)-_11.length;
+function gather(_14,_15,_16){
+var _17=_16;
+var _18=_15.slice(0);
+for(var x=0;x<_14.length;x++){
+_18.push(_14[x]);
+}
+_16=_16-_14.length;
+if(_16<=0){
+var res=_10.apply(_f,_18);
+_16=_17;
+return res;
+}else{
+return function(){
+return gather(arguments,_18,_16);
+};
+}
+}
+return gather([],_11,_13);
+};
+dojo.lang.curryArguments=function(_1b,_1c,_1d,_1e){
+var _1f=[];
+var x=_1e||0;
+for(x=_1e;x<_1d.length;x++){
+_1f.push(_1d[x]);
+}
+return dojo.lang.curry.apply(dojo.lang,[_1b,_1c].concat(_1f));
+};
+dojo.lang.tryThese=function(){
+for(var x=0;x<arguments.length;x++){
+try{
+if(typeof arguments[x]=="function"){
+var ret=(arguments[x]());
+if(ret){
+return ret;
+}
+}
+}
+catch(e){
+dojo.debug(e);
+}
+}
+};
+dojo.lang.delayThese=function(_23,cb,_25,_26){
+if(!_23.length){
+if(typeof _26=="function"){
+_26();
+}
+return;
+}
+if((typeof _25=="undefined")&&(typeof cb=="number")){
+_25=cb;
+cb=function(){
+};
+}else{
+if(!cb){
+cb=function(){
+};
+if(!_25){
+_25=0;
+}
+}
+}
+setTimeout(function(){
+(_23.shift())();
+cb();
+dojo.lang.delayThese(_23,cb,_25,_26);
+},_25);
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/func.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/func.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/func.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/repr.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/repr.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/repr.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/repr.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,55 @@
+dojo.provide("dojo.lang.repr");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.AdapterRegistry");
+dojo.require("dojo.string.extras");
+dojo.lang.reprRegistry=new dojo.AdapterRegistry();
+dojo.lang.registerRepr=function(_1,_2,_3,_4){
+dojo.lang.reprRegistry.register(_1,_2,_3,_4);
+};
+dojo.lang.repr=function(_5){
+if(typeof (_5)=="undefined"){
+return "undefined";
+}else{
+if(_5===null){
+return "null";
+}
+}
+try{
+if(typeof (_5["__repr__"])=="function"){
+return _5["__repr__"]();
+}else{
+if((typeof (_5["repr"])=="function")&&(_5.repr!=arguments.callee)){
+return _5["repr"]();
+}
+}
+return dojo.lang.reprRegistry.match(_5);
+}
+catch(e){
+if(typeof (_5.NAME)=="string"&&(_5.toString==Function.prototype.toString||_5.toString==Object.prototype.toString)){
+return _5.NAME;
+}
+}
+if(typeof (_5)=="function"){
+_5=(_5+"").replace(/^\s+/,"");
+var _6=_5.indexOf("{");
+if(_6!=-1){
+_5=_5.substr(0,_6)+"{...}";
+}
+}
+return _5+"";
+};
+dojo.lang.reprArrayLike=function(_7){
+try{
+var na=dojo.lang.map(_7,dojo.lang.repr);
+return "["+na.join(", ")+"]";
+}
+catch(e){
+}
+};
+(function(){
+var m=dojo.lang;
+m.registerRepr("arrayLike",m.isArrayLike,m.reprArrayLike);
+m.registerRepr("string",m.isString,m.reprString);
+m.registerRepr("numbers",m.isNumber,m.reprNumber);
+m.registerRepr("boolean",m.isBoolean,m.reprNumber);
+})();

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/repr.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/repr.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/repr.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Streamer.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Streamer.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Streamer.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Streamer.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,54 @@
+dojo.provide("dojo.lang.timing.Streamer");
+dojo.require("dojo.lang.timing.Timer");
+dojo.lang.timing.Streamer=function(_1,_2,_3,_4,_5){
+var _6=this;
+var _7=[];
+this.interval=_3||1000;
+this.minimumSize=_4||10;
+this.inputFunction=_1||function(q){
+};
+this.outputFunction=_2||function(_9){
+};
+var _a=new dojo.lang.timing.Timer(this.interval);
+var _b=function(){
+_6.onTick(_6);
+if(_7.length<_6.minimumSize){
+_6.inputFunction(_7);
+}
+var _c=_7.shift();
+while(typeof (_c)=="undefined"&&_7.length>0){
+_c=_7.shift();
+}
+if(typeof (_c)=="undefined"){
+_6.stop();
+return;
+}
+_6.outputFunction(_c);
+};
+this.setInterval=function(ms){
+this.interval=ms;
+_a.setInterval(ms);
+};
+this.onTick=function(_e){
+};
+this.start=function(){
+if(typeof (this.inputFunction)=="function"&&typeof (this.outputFunction)=="function"){
+_a.start();
+return;
+}
+dojo.raise("You cannot start a Streamer without an input and an output function.");
+};
+this.onStart=function(){
+};
+this.stop=function(){
+_a.stop();
+};
+this.onStop=function(){
+};
+_a.onTick=this.tick;
+_a.onStart=this.onStart;
+_a.onStop=this.onStop;
+if(_5){
+_7.concat(_5);
+}
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Streamer.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Streamer.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Streamer.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Timer.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Timer.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Timer.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Timer.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,31 @@
+dojo.provide("dojo.lang.timing.Timer");
+dojo.require("dojo.lang.func");
+dojo.lang.timing.Timer=function(_1){
+this.timer=null;
+this.isRunning=false;
+this.interval=_1;
+this.onStart=null;
+this.onStop=null;
+};
+dojo.extend(dojo.lang.timing.Timer,{onTick:function(){
+},setInterval:function(_2){
+if(this.isRunning){
+dj_global.clearInterval(this.timer);
+}
+this.interval=_2;
+if(this.isRunning){
+this.timer=dj_global.setInterval(dojo.lang.hitch(this,"onTick"),this.interval);
+}
+},start:function(){
+if(typeof this.onStart=="function"){
+this.onStart();
+}
+this.isRunning=true;
+this.timer=dj_global.setInterval(dojo.lang.hitch(this,"onTick"),this.interval);
+},stop:function(){
+if(typeof this.onStop=="function"){
+this.onStop();
+}
+this.isRunning=false;
+dj_global.clearInterval(this.timer);
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Timer.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Timer.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/Timer.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/__package__.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/__package__.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/__package__.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/__package__.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1 @@
+dojo.provide("dojo.lang.timing.*");

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/__package__.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/__package__.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/timing/__package__.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/type.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/type.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/type.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/type.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,132 @@
+dojo.provide("dojo.lang.type");
+dojo.require("dojo.lang.common");
+dojo.lang.whatAmI=function(_1){
+dojo.deprecated("dojo.lang.whatAmI","use dojo.lang.getType instead","0.5");
+return dojo.lang.getType(_1);
+};
+dojo.lang.whatAmI.custom={};
+dojo.lang.getType=function(_2){
+try{
+if(dojo.lang.isArray(_2)){
+return "array";
+}
+if(dojo.lang.isFunction(_2)){
+return "function";
+}
+if(dojo.lang.isString(_2)){
+return "string";
+}
+if(dojo.lang.isNumber(_2)){
+return "number";
+}
+if(dojo.lang.isBoolean(_2)){
+return "boolean";
+}
+if(dojo.lang.isAlien(_2)){
+return "alien";
+}
+if(dojo.lang.isUndefined(_2)){
+return "undefined";
+}
+for(var _3 in dojo.lang.whatAmI.custom){
+if(dojo.lang.whatAmI.custom[_3](_2)){
+return _3;
+}
+}
+if(dojo.lang.isObject(_2)){
+return "object";
+}
+}
+catch(e){
+}
+return "unknown";
+};
+dojo.lang.isNumeric=function(_4){
+return (!isNaN(_4)&&isFinite(_4)&&(_4!=null)&&!dojo.lang.isBoolean(_4)&&!dojo.lang.isArray(_4)&&!/^\s*$/.test(_4));
+};
+dojo.lang.isBuiltIn=function(_5){
+return (dojo.lang.isArray(_5)||dojo.lang.isFunction(_5)||dojo.lang.isString(_5)||dojo.lang.isNumber(_5)||dojo.lang.isBoolean(_5)||(_5==null)||(_5 instanceof Error)||(typeof _5=="error"));
+};
+dojo.lang.isPureObject=function(_6){
+return ((_6!=null)&&dojo.lang.isObject(_6)&&_6.constructor==Object);
+};
+dojo.lang.isOfType=function(_7,_8,_9){
+var _a=false;
+if(_9){
+_a=_9["optional"];
+}
+if(_a&&((_7===null)||dojo.lang.isUndefined(_7))){
+return true;
+}
+if(dojo.lang.isArray(_8)){
+var _b=_8;
+for(var i in _b){
+var _d=_b[i];
+if(dojo.lang.isOfType(_7,_d)){
+return true;
+}
+}
+return false;
+}else{
+if(dojo.lang.isString(_8)){
+_8=_8.toLowerCase();
+}
+switch(_8){
+case Array:
+case "array":
+return dojo.lang.isArray(_7);
+case Function:
+case "function":
+return dojo.lang.isFunction(_7);
+case String:
+case "string":
+return dojo.lang.isString(_7);
+case Number:
+case "number":
+return dojo.lang.isNumber(_7);
+case "numeric":
+return dojo.lang.isNumeric(_7);
+case Boolean:
+case "boolean":
+return dojo.lang.isBoolean(_7);
+case Object:
+case "object":
+return dojo.lang.isObject(_7);
+case "pureobject":
+return dojo.lang.isPureObject(_7);
+case "builtin":
+return dojo.lang.isBuiltIn(_7);
+case "alien":
+return dojo.lang.isAlien(_7);
+case "undefined":
+return dojo.lang.isUndefined(_7);
+case null:
+case "null":
+return (_7===null);
+case "optional":
+dojo.deprecated("dojo.lang.isOfType(value, [type, \"optional\"])","use dojo.lang.isOfType(value, type, {optional: true} ) instead","0.5");
+return ((_7===null)||dojo.lang.isUndefined(_7));
+default:
+if(dojo.lang.isFunction(_8)){
+return (_7 instanceof _8);
+}else{
+dojo.raise("dojo.lang.isOfType() was passed an invalid type");
+}
+}
+}
+dojo.raise("If we get here, it means a bug was introduced above.");
+};
+dojo.lang.getObject=function(_e){
+var _f=_e.split("."),i=0,obj=dj_global;
+do{
+obj=obj[_f[i++]];
+}while(i<_f.length&&obj);
+return (obj!=dj_global)?obj:null;
+};
+dojo.lang.doesObjectExist=function(str){
+var _13=str.split("."),i=0,obj=dj_global;
+do{
+obj=obj[_13[i++]];
+}while(i<_13.length&&obj);
+return (obj&&obj!=dj_global);
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/type.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/type.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lang/type.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/Animation.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/Animation.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/Animation.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/Animation.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,391 @@
+dojo.provide("dojo.lfx.Animation");
+dojo.require("dojo.lang.func");
+dojo.lfx.Line=function(_1,_2){
+this.start=_1;
+this.end=_2;
+if(dojo.lang.isArray(_1)){
+var _3=[];
+dojo.lang.forEach(this.start,function(s,i){
+_3[i]=this.end[i]-s;
+},this);
+this.getValue=function(n){
+var _7=[];
+dojo.lang.forEach(this.start,function(s,i){
+_7[i]=(_3[i]*n)+s;
+},this);
+return _7;
+};
+}else{
+var _3=_2-_1;
+this.getValue=function(n){
+return (_3*n)+this.start;
+};
+}
+};
+if((dojo.render.html.khtml)&&(!dojo.render.html.safari)){
+dojo.lfx.easeDefault=function(n){
+return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
+};
+}else{
+dojo.lfx.easeDefault=function(n){
+return (0.5+((Math.sin((n+1.5)*Math.PI))/2));
+};
+}
+dojo.lfx.easeIn=function(n){
+return Math.pow(n,3);
+};
+dojo.lfx.easeOut=function(n){
+return (1-Math.pow(1-n,3));
+};
+dojo.lfx.easeInOut=function(n){
+return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
+};
+dojo.lfx.IAnimation=function(){
+};
+dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:10,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,connect:function(evt,_11,_12){
+if(!_12){
+_12=_11;
+_11=this;
+}
+_12=dojo.lang.hitch(_11,_12);
+var _13=this[evt]||function(){
+};
+this[evt]=function(){
+var ret=_13.apply(this,arguments);
+_12.apply(this,arguments);
+return ret;
+};
+return this;
+},fire:function(evt,_16){
+if(this[evt]){
+this[evt].apply(this,(_16||[]));
+}
+return this;
+},repeat:function(_17){
+this.repeatCount=_17;
+return this;
+},_active:false,_paused:false});
+dojo.lfx.Animation=function(_18,_19,_1a,_1b,_1c,_1d){
+dojo.lfx.IAnimation.call(this);
+if(dojo.lang.isNumber(_18)||(!_18&&_19.getValue)){
+_1d=_1c;
+_1c=_1b;
+_1b=_1a;
+_1a=_19;
+_19=_18;
+_18=null;
+}else{
+if(_18.getValue||dojo.lang.isArray(_18)){
+_1d=_1b;
+_1c=_1a;
+_1b=_19;
+_1a=_18;
+_19=null;
+_18=null;
+}
+}
+if(dojo.lang.isArray(_1a)){
+this.curve=new dojo.lfx.Line(_1a[0],_1a[1]);
+}else{
+this.curve=_1a;
+}
+if(_19!=null&&_19>0){
+this.duration=_19;
+}
+if(_1c){
+this.repeatCount=_1c;
+}
+if(_1d){
+this.rate=_1d;
+}
+if(_18){
+dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(_1e){
+if(_18[_1e]){
+this.connect(_1e,_18[_1e]);
+}
+},this);
+}
+if(_1b&&dojo.lang.isFunction(_1b)){
+this.easing=_1b;
+}
+};
+dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);
+dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(_1f,_20){
+if(_20){
+clearTimeout(this._timer);
+this._active=false;
+this._paused=false;
+this._percent=0;
+}else{
+if(this._active&&!this._paused){
+return this;
+}
+}
+this.fire("handler",["beforeBegin"]);
+this.fire("beforeBegin");
+if(_1f>0){
+setTimeout(dojo.lang.hitch(this,function(){
+this.play(null,_20);
+}),_1f);
+return this;
+}
+this._startTime=new Date().valueOf();
+if(this._paused){
+this._startTime-=(this.duration*this._percent/100);
+}
+this._endTime=this._startTime+this.duration;
+this._active=true;
+this._paused=false;
+var _21=this._percent/100;
+var _22=this.curve.getValue(_21);
+if(this._percent==0){
+if(!this._startRepeatCount){
+this._startRepeatCount=this.repeatCount;
+}
+this.fire("handler",["begin",_22]);
+this.fire("onBegin",[_22]);
+}
+this.fire("handler",["play",_22]);
+this.fire("onPlay",[_22]);
+this._cycle();
+return this;
+},pause:function(){
+clearTimeout(this._timer);
+if(!this._active){
+return this;
+}
+this._paused=true;
+var _23=this.curve.getValue(this._percent/100);
+this.fire("handler",["pause",_23]);
+this.fire("onPause",[_23]);
+return this;
+},gotoPercent:function(pct,_25){
+clearTimeout(this._timer);
+this._active=true;
+this._paused=true;
+this._percent=pct;
+if(_25){
+this.play();
+}
+return this;
+},stop:function(_26){
+clearTimeout(this._timer);
+var _27=this._percent/100;
+if(_26){
+_27=1;
+}
+var _28=this.curve.getValue(_27);
+this.fire("handler",["stop",_28]);
+this.fire("onStop",[_28]);
+this._active=false;
+this._paused=false;
+return this;
+},status:function(){
+if(this._active){
+return this._paused?"paused":"playing";
+}else{
+return "stopped";
+}
+return this;
+},_cycle:function(){
+clearTimeout(this._timer);
+if(this._active){
+var _29=new Date().valueOf();
+var _2a=(_29-this._startTime)/(this._endTime-this._startTime);
+if(_2a>=1){
+_2a=1;
+this._percent=100;
+}else{
+this._percent=_2a*100;
+}
+if((this.easing)&&(dojo.lang.isFunction(this.easing))){
+_2a=this.easing(_2a);
+}
+var _2b=this.curve.getValue(_2a);
+this.fire("handler",["animate",_2b]);
+this.fire("onAnimate",[_2b]);
+if(_2a<1){
+this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
+}else{
+this._active=false;
+this.fire("handler",["end"]);
+this.fire("onEnd");
+if(this.repeatCount>0){
+this.repeatCount--;
+this.play(null,true);
+}else{
+if(this.repeatCount==-1){
+this.play(null,true);
+}else{
+if(this._startRepeatCount){
+this.repeatCount=this._startRepeatCount;
+this._startRepeatCount=0;
+}
+}
+}
+}
+}
+return this;
+}});
+dojo.lfx.Combine=function(_2c){
+dojo.lfx.IAnimation.call(this);
+this._anims=[];
+this._animsEnded=0;
+var _2d=arguments;
+if(_2d.length==1&&(dojo.lang.isArray(_2d[0])||dojo.lang.isArrayLike(_2d[0]))){
+_2d=_2d[0];
+}
+dojo.lang.forEach(_2d,function(_2e){
+this._anims.push(_2e);
+_2e.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded"));
+},this);
+};
+dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
+dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_2f,_30){
+if(!this._anims.length){
+return this;
+}
+this.fire("beforeBegin");
+if(_2f>0){
+setTimeout(dojo.lang.hitch(this,function(){
+this.play(null,_30);
+}),_2f);
+return this;
+}
+if(_30||this._anims[0].percent==0){
+this.fire("onBegin");
+}
+this.fire("onPlay");
+this._animsCall("play",null,_30);
+return this;
+},pause:function(){
+this.fire("onPause");
+this._animsCall("pause");
+return this;
+},stop:function(_31){
+this.fire("onStop");
+this._animsCall("stop",_31);
+return this;
+},_onAnimsEnded:function(){
+this._animsEnded++;
+if(this._animsEnded>=this._anims.length){
+this.fire("onEnd");
+}
+return this;
+},_animsCall:function(_32){
+var _33=[];
+if(arguments.length>1){
+for(var i=1;i<arguments.length;i++){
+_33.push(arguments[i]);
+}
+}
+var _35=this;
+dojo.lang.forEach(this._anims,function(_36){
+_36[_32](_33);
+},_35);
+return this;
+}});
+dojo.lfx.Chain=function(_37){
+dojo.lfx.IAnimation.call(this);
+this._anims=[];
+this._currAnim=-1;
+var _38=arguments;
+if(_38.length==1&&(dojo.lang.isArray(_38[0])||dojo.lang.isArrayLike(_38[0]))){
+_38=_38[0];
+}
+var _39=this;
+dojo.lang.forEach(_38,function(_3a,i,_3c){
+this._anims.push(_3a);
+if(i<_3c.length-1){
+_3a.connect("onEnd",dojo.lang.hitch(this,"_playNext"));
+}else{
+_3a.connect("onEnd",dojo.lang.hitch(this,function(){
+this.fire("onEnd");
+}));
+}
+},this);
+};
+dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
+dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_3d,_3e){
+if(!this._anims.length){
+return this;
+}
+if(_3e||!this._anims[this._currAnim]){
+this._currAnim=0;
+}
+var _3f=this._anims[this._currAnim];
+this.fire("beforeBegin");
+if(_3d>0){
+setTimeout(dojo.lang.hitch(this,function(){
+this.play(null,_3e);
+}),_3d);
+return this;
+}
+if(_3f){
+if(this._currAnim==0){
+this.fire("handler",["begin",this._currAnim]);
+this.fire("onBegin",[this._currAnim]);
+}
+this.fire("onPlay",[this._currAnim]);
+_3f.play(null,_3e);
+}
+return this;
+},pause:function(){
+if(this._anims[this._currAnim]){
+this._anims[this._currAnim].pause();
+this.fire("onPause",[this._currAnim]);
+}
+return this;
+},playPause:function(){
+if(this._anims.length==0){
+return this;
+}
+if(this._currAnim==-1){
+this._currAnim=0;
+}
+var _40=this._anims[this._currAnim];
+if(_40){
+if(!_40._active||_40._paused){
+this.play();
+}else{
+this.pause();
+}
+}
+return this;
+},stop:function(){
+var _41=this._anims[this._currAnim];
+if(_41){
+_41.stop();
+this.fire("onStop",[this._currAnim]);
+}
+return _41;
+},_playNext:function(){
+if(this._currAnim==-1||this._anims.length==0){
+return this;
+}
+this._currAnim++;
+if(this._anims[this._currAnim]){
+this._anims[this._currAnim].play(null,true);
+}
+return this;
+}});
+dojo.lfx.combine=function(_42){
+var _43=arguments;
+if(dojo.lang.isArray(arguments[0])){
+_43=arguments[0];
+}
+if(_43.length==1){
+return _43[0];
+}
+return new dojo.lfx.Combine(_43);
+};
+dojo.lfx.chain=function(_44){
+var _45=arguments;
+if(dojo.lang.isArray(arguments[0])){
+_45=arguments[0];
+}
+if(_45.length==1){
+return _45[0];
+}
+return new dojo.lfx.Chain(_45);
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/Animation.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/Animation.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/Animation.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/__package__.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/__package__.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/__package__.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/__package__.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,2 @@
+dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});
+dojo.provide("dojo.lfx.*");

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/__package__.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/__package__.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/__package__.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/extras.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/extras.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/extras.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/extras.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,67 @@
+dojo.provide("dojo.lfx.extras");
+dojo.require("dojo.lfx.html");
+dojo.require("dojo.lfx.Animation");
+dojo.lfx.html.fadeWipeIn=function(_1,_2,_3,_4){
+_1=dojo.lfx.html._byId(_1);
+var _5=dojo.lfx.combine(dojo.lfx.fadeIn(_1,_2,_3),dojo.lfx.wipeIn(_1,_2,_3));
+if(_4){
+_5.connect("onEnd",function(){
+_4(_1,_5);
+});
+}
+return _5;
+};
+dojo.lfx.html.fadeWipeOut=function(_6,_7,_8,_9){
+_6=dojo.lfx.html._byId(_6);
+var _a=dojo.lfx.combine(dojo.lfx.fadeOut(_6,_7,_8),dojo.lfx.wipeOut(_6,_7,_8));
+if(_9){
+_a.connect("onEnd",function(){
+_9(_6,_a);
+});
+}
+return _a;
+};
+dojo.lfx.html.scale=function(_b,_c,_d,_e,_f,_10,_11){
+_b=dojo.lfx.html._byId(_b);
+var _12=[];
+dojo.lang.forEach(_b,function(_13){
+var _14=dojo.html.getMarginBox(_13);
+var _15=_c/100;
+var _16=[{property:"width",start:_14.width,end:_14.width*_15},{property:"height",start:_14.height,end:_14.height*_15}];
+if(_d){
+var _17=dojo.html.getStyle(_13,"font-size");
+var _18=null;
+if(!_17){
+_17=parseFloat("100%");
+_18="%";
+}else{
+dojo.lang.some(["em","px","%"],function(_19,_1a,arr){
+if(_17.indexOf(_19)>0){
+_17=parseFloat(_17);
+_18=_19;
+return true;
+}
+});
+}
+_16.push({property:"font-size",start:_17,end:_17*_15,units:_18});
+}
+if(_e){
+var _1c=dojo.html.getStyle(_13,"position");
+var _1d=_13.offsetTop;
+var _1e=_13.offsetLeft;
+var _1f=((_14.height*_15)-_14.height)/2;
+var _20=((_14.width*_15)-_14.width)/2;
+_16.push({property:"top",start:_1d,end:(_1c=="absolute"?_1d-_1f:(-1*_1f))});
+_16.push({property:"left",start:_1e,end:(_1c=="absolute"?_1e-_20:(-1*_20))});
+}
+var _21=dojo.lfx.propertyAnimation(_13,_16,_f,_10);
+if(_11){
+_21.connect("onEnd",function(){
+_11(_13,_21);
+});
+}
+_12.push(_21);
+});
+return dojo.lfx.combine(_12);
+};
+dojo.lang.mixin(dojo.lfx,dojo.lfx.html);

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/extras.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/extras.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/extras.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/html.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/html.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/html.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/html.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,496 @@
+dojo.provide("dojo.lfx.html");
+dojo.require("dojo.gfx.color");
+dojo.require("dojo.lfx.Animation");
+dojo.require("dojo.lang.array");
+dojo.require("dojo.html.display");
+dojo.require("dojo.html.color");
+dojo.require("dojo.html.layout");
+dojo.lfx.html._byId=function(_1){
+if(!_1){
+return [];
+}
+if(dojo.lang.isArrayLike(_1)){
+if(!_1.alreadyChecked){
+var n=[];
+dojo.lang.forEach(_1,function(_3){
+n.push(dojo.byId(_3));
+});
+n.alreadyChecked=true;
+return n;
+}else{
+return _1;
+}
+}else{
+var n=[];
+n.push(dojo.byId(_1));
+n.alreadyChecked=true;
+return n;
+}
+};
+dojo.lfx.html.propertyAnimation=function(_4,_5,_6,_7,_8){
+_4=dojo.lfx.html._byId(_4);
+var _9={"propertyMap":_5,"nodes":_4,"duration":_6,"easing":_7||dojo.lfx.easeDefault};
+var _a=function(_b){
+if(_b.nodes.length==1){
+var pm=_b.propertyMap;
+if(!dojo.lang.isArray(_b.propertyMap)){
+var _d=[];
+for(var _e in pm){
+pm[_e].property=_e;
+_d.push(pm[_e]);
+}
+pm=_b.propertyMap=_d;
+}
+dojo.lang.forEach(pm,function(_f){
+if(dj_undef("start",_f)){
+if(_f.property!="opacity"){
+_f.start=parseInt(dojo.html.getComputedStyle(_b.nodes[0],_f.property));
+}else{
+_f.start=dojo.html.getOpacity(_b.nodes[0]);
+}
+}
+});
+}
+};
+var _10=function(_11){
+var _12=[];
+dojo.lang.forEach(_11,function(c){
+_12.push(Math.round(c));
+});
+return _12;
+};
+var _14=function(n,_16){
+n=dojo.byId(n);
+if(!n||!n.style){
+return;
+}
+for(var s in _16){
+try{
+if(s=="opacity"){
+dojo.html.setOpacity(n,_16[s]);
+}else{
+n.style[s]=_16[s];
+}
+}
+catch(e){
+dojo.debug(e);
+}
+}
+};
+var _18=function(_19){
+this._properties=_19;
+this.diffs=new Array(_19.length);
+dojo.lang.forEach(_19,function(_1a,i){
+if(dojo.lang.isFunction(_1a.start)){
+_1a.start=_1a.start(_1a,i);
+}
+if(dojo.lang.isFunction(_1a.end)){
+_1a.end=_1a.end(_1a,i);
+}
+if(dojo.lang.isArray(_1a.start)){
+this.diffs[i]=null;
+}else{
+if(_1a.start instanceof dojo.gfx.color.Color){
+_1a.startRgb=_1a.start.toRgb();
+_1a.endRgb=_1a.end.toRgb();
+}else{
+this.diffs[i]=_1a.end-_1a.start;
+}
+}
+},this);
+this.getValue=function(n){
+var ret={};
+dojo.lang.forEach(this._properties,function(_1e,i){
+var _20=null;
+if(dojo.lang.isArray(_1e.start)){
+}else{
+if(_1e.start instanceof dojo.gfx.color.Color){
+_20=(_1e.units||"rgb")+"(";
+for(var j=0;j<_1e.startRgb.length;j++){
+_20+=Math.round(((_1e.endRgb[j]-_1e.startRgb[j])*n)+_1e.startRgb[j])+(j<_1e.startRgb.length-1?",":"");
+}
+_20+=")";
+}else{
+_20=((this.diffs[i])*n)+_1e.start+(_1e.property!="opacity"?_1e.units||"px":"");
+}
+}
+ret[dojo.html.toCamelCase(_1e.property)]=_20;
+},this);
+return ret;
+};
+};
+var _22=new dojo.lfx.Animation({beforeBegin:function(){
+_a(_9);
+_22.curve=new _18(_9.propertyMap);
+},onAnimate:function(_23){
+dojo.lang.forEach(_9.nodes,function(_24){
+_14(_24,_23);
+});
+}},_9.duration,null,_9.easing);
+if(_8){
+for(var x in _8){
+if(dojo.lang.isFunction(_8[x])){
+_22.connect(x,_22,_8[x]);
+}
+}
+}
+return _22;
+};
+dojo.lfx.html._makeFadeable=function(_26){
+var _27=function(_28){
+if(dojo.render.html.ie){
+if((_28.style.zoom.length==0)&&(dojo.html.getStyle(_28,"zoom")=="normal")){
+_28.style.zoom="1";
+}
+if((_28.style.width.length==0)&&(dojo.html.getStyle(_28,"width")=="auto")){
+_28.style.width="auto";
+}
+}
+};
+if(dojo.lang.isArrayLike(_26)){
+dojo.lang.forEach(_26,_27);
+}else{
+_27(_26);
+}
+};
+dojo.lfx.html.fade=function(_29,_2a,_2b,_2c,_2d){
+_29=dojo.lfx.html._byId(_29);
+var _2e={property:"opacity"};
+if(!dj_undef("start",_2a)){
+_2e.start=_2a.start;
+}else{
+_2e.start=function(){
+return dojo.html.getOpacity(_29[0]);
+};
+}
+if(!dj_undef("end",_2a)){
+_2e.end=_2a.end;
+}else{
+dojo.raise("dojo.lfx.html.fade needs an end value");
+}
+var _2f=dojo.lfx.propertyAnimation(_29,[_2e],_2b,_2c);
+_2f.connect("beforeBegin",function(){
+dojo.lfx.html._makeFadeable(_29);
+});
+if(_2d){
+_2f.connect("onEnd",function(){
+_2d(_29,_2f);
+});
+}
+return _2f;
+};
+dojo.lfx.html.fadeIn=function(_30,_31,_32,_33){
+return dojo.lfx.html.fade(_30,{end:1},_31,_32,_33);
+};
+dojo.lfx.html.fadeOut=function(_34,_35,_36,_37){
+return dojo.lfx.html.fade(_34,{end:0},_35,_36,_37);
+};
+dojo.lfx.html.fadeShow=function(_38,_39,_3a,_3b){
+_38=dojo.lfx.html._byId(_38);
+dojo.lang.forEach(_38,function(_3c){
+dojo.html.setOpacity(_3c,0);
+});
+var _3d=dojo.lfx.html.fadeIn(_38,_39,_3a,_3b);
+_3d.connect("beforeBegin",function(){
+if(dojo.lang.isArrayLike(_38)){
+dojo.lang.forEach(_38,dojo.html.show);
+}else{
+dojo.html.show(_38);
+}
+});
+return _3d;
+};
+dojo.lfx.html.fadeHide=function(_3e,_3f,_40,_41){
+var _42=dojo.lfx.html.fadeOut(_3e,_3f,_40,function(){
+if(dojo.lang.isArrayLike(_3e)){
+dojo.lang.forEach(_3e,dojo.html.hide);
+}else{
+dojo.html.hide(_3e);
+}
+if(_41){
+_41(_3e,_42);
+}
+});
+return _42;
+};
+dojo.lfx.html.wipeIn=function(_43,_44,_45,_46){
+_43=dojo.lfx.html._byId(_43);
+var _47=[];
+dojo.lang.forEach(_43,function(_48){
+var _49={};
+var _4a,_4b,_4c;
+with(_48.style){
+_4a=top;
+_4b=left;
+_4c=position;
+top="-9999px";
+left="-9999px";
+position="absolute";
+display="";
+}
+var _4d=dojo.html.getBorderBox(_48).height;
+with(_48.style){
+top=_4a;
+left=_4b;
+position=_4c;
+display="none";
+}
+var _4e=dojo.lfx.propertyAnimation(_48,{"height":{start:1,end:function(){
+return _4d;
+}}},_44,_45);
+_4e.connect("beforeBegin",function(){
+_49.overflow=_48.style.overflow;
+_49.height=_48.style.height;
+with(_48.style){
+overflow="hidden";
+height="1px";
+}
+dojo.html.show(_48);
+});
+_4e.connect("onEnd",function(){
+with(_48.style){
+overflow=_49.overflow;
+height=_49.height;
+}
+if(_46){
+_46(_48,_4e);
+}
+});
+_47.push(_4e);
+});
+return dojo.lfx.combine(_47);
+};
+dojo.lfx.html.wipeOut=function(_4f,_50,_51,_52){
+_4f=dojo.lfx.html._byId(_4f);
+var _53=[];
+dojo.lang.forEach(_4f,function(_54){
+var _55={};
+var _56=dojo.lfx.propertyAnimation(_54,{"height":{start:function(){
+return dojo.html.getContentBox(_54).height;
+},end:1}},_50,_51,{"beforeBegin":function(){
+_55.overflow=_54.style.overflow;
+_55.height=_54.style.height;
+with(_54.style){
+overflow="hidden";
+}
+dojo.html.show(_54);
+},"onEnd":function(){
+dojo.html.hide(_54);
+with(_54.style){
+overflow=_55.overflow;
+height=_55.height;
+}
+if(_52){
+_52(_54,_56);
+}
+}});
+_53.push(_56);
+});
+return dojo.lfx.combine(_53);
+};
+dojo.lfx.html.slideTo=function(_57,_58,_59,_5a,_5b){
+_57=dojo.lfx.html._byId(_57);
+var _5c=[];
+var _5d=dojo.html.getComputedStyle;
+if(dojo.lang.isArray(_58)){
+dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
+_58={top:_58[0],left:_58[1]};
+}
+dojo.lang.forEach(_57,function(_5e){
+var top=null;
+var _60=null;
+var _61=(function(){
+var _62=_5e;
+return function(){
+var pos=_5d(_62,"position");
+top=(pos=="absolute"?_5e.offsetTop:parseInt(_5d(_5e,"top"))||0);
+_60=(pos=="absolute"?_5e.offsetLeft:parseInt(_5d(_5e,"left"))||0);
+if(!dojo.lang.inArray(["absolute","relative"],pos)){
+var ret=dojo.html.abs(_62,true);
+dojo.html.setStyleAttributes(_62,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
+top=ret.y;
+_60=ret.x;
+}
+};
+})();
+_61();
+var _65=dojo.lfx.propertyAnimation(_5e,{"top":{start:top,end:(_58.top||0)},"left":{start:_60,end:(_58.left||0)}},_59,_5a,{"beforeBegin":_61});
+if(_5b){
+_65.connect("onEnd",function(){
+_5b(_57,_65);
+});
+}
+_5c.push(_65);
+});
+return dojo.lfx.combine(_5c);
+};
+dojo.lfx.html.slideBy=function(_66,_67,_68,_69,_6a){
+_66=dojo.lfx.html._byId(_66);
+var _6b=[];
+var _6c=dojo.html.getComputedStyle;
+if(dojo.lang.isArray(_67)){
+dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
+_67={top:_67[0],left:_67[1]};
+}
+dojo.lang.forEach(_66,function(_6d){
+var top=null;
+var _6f=null;
+var _70=(function(){
+var _71=_6d;
+return function(){
+var pos=_6c(_71,"position");
+top=(pos=="absolute"?_6d.offsetTop:parseInt(_6c(_6d,"top"))||0);
+_6f=(pos=="absolute"?_6d.offsetLeft:parseInt(_6c(_6d,"left"))||0);
+if(!dojo.lang.inArray(["absolute","relative"],pos)){
+var ret=dojo.html.abs(_71,true);
+dojo.html.setStyleAttributes(_71,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
+top=ret.y;
+_6f=ret.x;
+}
+};
+})();
+_70();
+var _74=dojo.lfx.propertyAnimation(_6d,{"top":{start:top,end:top+(_67.top||0)},"left":{start:_6f,end:_6f+(_67.left||0)}},_68,_69).connect("beforeBegin",_70);
+if(_6a){
+_74.connect("onEnd",function(){
+_6a(_66,_74);
+});
+}
+_6b.push(_74);
+});
+return dojo.lfx.combine(_6b);
+};
+dojo.lfx.html.explode=function(_75,_76,_77,_78,_79){
+var h=dojo.html;
+_75=dojo.byId(_75);
+_76=dojo.byId(_76);
+var _7b=h.toCoordinateObject(_75,true);
+var _7c=document.createElement("div");
+h.copyStyle(_7c,_76);
+if(_76.explodeClassName){
+_7c.className=_76.explodeClassName;
+}
+with(_7c.style){
+position="absolute";
+display="none";
+var _7d=h.getStyle(_75,"background-color");
+backgroundColor=_7d?_7d.toLowerCase():"transparent";
+backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
+}
+dojo.body().appendChild(_7c);
+with(_76.style){
+visibility="hidden";
+display="block";
+}
+var _7e=h.toCoordinateObject(_76,true);
+with(_76.style){
+display="none";
+visibility="visible";
+}
+var _7f={opacity:{start:0.5,end:1}};
+dojo.lang.forEach(["height","width","top","left"],function(_80){
+_7f[_80]={start:_7b[_80],end:_7e[_80]};
+});
+var _81=new dojo.lfx.propertyAnimation(_7c,_7f,_77,_78,{"beforeBegin":function(){
+h.setDisplay(_7c,"block");
+},"onEnd":function(){
+h.setDisplay(_76,"block");
+_7c.parentNode.removeChild(_7c);
+}});
+if(_79){
+_81.connect("onEnd",function(){
+_79(_76,_81);
+});
+}
+return _81;
+};
+dojo.lfx.html.implode=function(_82,end,_84,_85,_86){
+var h=dojo.html;
+_82=dojo.byId(_82);
+end=dojo.byId(end);
+var _88=dojo.html.toCoordinateObject(_82,true);
+var _89=dojo.html.toCoordinateObject(end,true);
+var _8a=document.createElement("div");
+dojo.html.copyStyle(_8a,_82);
+if(_82.explodeClassName){
+_8a.className=_82.explodeClassName;
+}
+dojo.html.setOpacity(_8a,0.3);
+with(_8a.style){
+position="absolute";
+display="none";
+backgroundColor=h.getStyle(_82,"background-color").toLowerCase();
+}
+dojo.body().appendChild(_8a);
+var _8b={opacity:{start:1,end:0.5}};
+dojo.lang.forEach(["height","width","top","left"],function(_8c){
+_8b[_8c]={start:_88[_8c],end:_89[_8c]};
+});
+var _8d=new dojo.lfx.propertyAnimation(_8a,_8b,_84,_85,{"beforeBegin":function(){
+dojo.html.hide(_82);
+dojo.html.show(_8a);
+},"onEnd":function(){
+_8a.parentNode.removeChild(_8a);
+}});
+if(_86){
+_8d.connect("onEnd",function(){
+_86(_82,_8d);
+});
+}
+return _8d;
+};
+dojo.lfx.html.highlight=function(_8e,_8f,_90,_91,_92){
+_8e=dojo.lfx.html._byId(_8e);
+var _93=[];
+dojo.lang.forEach(_8e,function(_94){
+var _95=dojo.html.getBackgroundColor(_94);
+var bg=dojo.html.getStyle(_94,"background-color").toLowerCase();
+var _97=dojo.html.getStyle(_94,"background-image");
+var _98=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
+while(_95.length>3){
+_95.pop();
+}
+var rgb=new dojo.gfx.color.Color(_8f);
+var _9a=new dojo.gfx.color.Color(_95);
+var _9b=dojo.lfx.propertyAnimation(_94,{"background-color":{start:rgb,end:_9a}},_90,_91,{"beforeBegin":function(){
+if(_97){
+_94.style.backgroundImage="none";
+}
+_94.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
+},"onEnd":function(){
+if(_97){
+_94.style.backgroundImage=_97;
+}
+if(_98){
+_94.style.backgroundColor="transparent";
+}
+if(_92){
+_92(_94,_9b);
+}
+}});
+_93.push(_9b);
+});
+return dojo.lfx.combine(_93);
+};
+dojo.lfx.html.unhighlight=function(_9c,_9d,_9e,_9f,_a0){
+_9c=dojo.lfx.html._byId(_9c);
+var _a1=[];
+dojo.lang.forEach(_9c,function(_a2){
+var _a3=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(_a2));
+var rgb=new dojo.gfx.color.Color(_9d);
+var _a5=dojo.html.getStyle(_a2,"background-image");
+var _a6=dojo.lfx.propertyAnimation(_a2,{"background-color":{start:_a3,end:rgb}},_9e,_9f,{"beforeBegin":function(){
+if(_a5){
+_a2.style.backgroundImage="none";
+}
+_a2.style.backgroundColor="rgb("+_a3.toRgb().join(",")+")";
+},"onEnd":function(){
+if(_a0){
+_a0(_a2,_a6);
+}
+}});
+_a1.push(_a6);
+});
+return dojo.lfx.combine(_a1);
+};
+dojo.lang.mixin(dojo.lfx,dojo.lfx.html);

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/html.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/html.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/html.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/rounded.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/rounded.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/rounded.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/rounded.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,431 @@
+dojo.provide("dojo.lfx.rounded");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.html.common");
+dojo.require("dojo.html.style");
+dojo.require("dojo.html.display");
+dojo.require("dojo.html.layout");
+dojo.lfx.rounded=function(_1){
+var _2={validTags:_1.validTags||["div"],autoPad:_1.autoPad!=null?_1.autoPad:true,antiAlias:_1.antiAlias!=null?_1.antiAlias:true,radii:{tl:(_1.tl&&_1.tl.radius!=null)?_1.tl.radius:5,tr:(_1.tr&&_1.tr.radius!=null)?_1.tr.radius:5,bl:(_1.bl&&_1.bl.radius!=null)?_1.bl.radius:5,br:(_1.br&&_1.br.radius!=null)?_1.br.radius:5}};
+var _3;
+if(typeof (arguments[1])=="string"){
+_3=dojo.html.getElementsByClass(arguments[1]);
+}else{
+if(dojo.lang.isArrayLike(arguments[1])){
+_3=arguments[1];
+for(var i=0;i<_3.length;i++){
+_3[i]=dojo.byId(_3[i]);
+}
+}
+}
+if(_3.length==0){
+return;
+}
+for(var i=0;i<_3.length;i++){
+dojo.lfx.rounded.applyCorners(_2,_3[i]);
+}
+};
+dojo.lfx.rounded.applyCorners=function(_5,_6){
+var _7=null;
+var _8=null;
+var _9=null;
+var _a=dojo.lfx.rounded._fns;
+var _b=_6.offsetWidth;
+var _c=_6.offsetHeight;
+var _d=parseInt(dojo.html.getComputedStyle(_6,"border-top-width"));
+var _e=dojo.html.getComputedStyle(_6,"border-top-color");
+var _f=dojo.html.getComputedStyle(_6,"background-color");
+var _10=dojo.html.getComputedStyle(_6,"background-image");
+var _11=dojo.html.getComputedStyle(_6,"position");
+var _12=parseInt(dojo.html.getComputedStyle(_6,"padding-top"));
+var _13={height:_c,width:_b,borderWidth:_d,color:_a.getRGB(_f),padding:_12,borderColor:_a.getRGB(_e),borderString:_d+"px"+" solid "+_a.getRGB(_e),bgImage:((_10!="none")?_10:""),content:_6.innerHTML};
+if(!dojo.html.isPositionAbsolute(_6)){
+_6.style.position="relative";
+}
+_6.style.padding="0px";
+if(dojo.render.html.ie&&_b=="auto"&&_c=="auto"){
+_6.style.width="100%";
+}
+if(_5.autoPad&&_13.padding>0){
+_6.innerHTML="";
+}
+var _14=Math.max(_5.radii.tl,_5.radii.tr);
+var _15=Math.max(_5.radii.bl,_5.radii.br);
+if(_5.radii.tl||_5.radii.tr){
+_7=document.createElement("div");
+_7.style.width="100%";
+_7.style.fontSize="1px";
+_7.style.overflow="hidden";
+_7.style.position="absolute";
+_7.style.paddingLeft=_13.borderWidth+"px";
+_7.style.paddingRight=_13.borderWidth+"px";
+_7.style.height=_14+"px";
+_7.style.top=(0-_14)+"px";
+_7.style.left=(0-_13.borderWidth)+"px";
+_6.appendChild(_7);
+}
+if(_5.radii.bl||_5.radii.br){
+_8=document.createElement("div");
+_8.style.width="100%";
+_8.style.fontSize="1px";
+_8.style.overflow="hidden";
+_8.style.position="absolute";
+_8.style.paddingLeft=_13.borderWidth+"px";
+_8.style.paddingRight=_13.borderWidth+"px";
+_8.style.height=_15+"px";
+_8.style.bottom=(0-_15)+"px";
+_8.style.left=(0-_13.borderWidth)+"px";
+_6.appendChild(_8);
+}
+if(_7){
+_6.style.borderTopWidth="0px";
+}
+if(_8){
+_6.style.borderBottomWidth="0px";
+}
+var _16=["tr","tl","br","bl"];
+for(var i=0;i<_16.length;i++){
+var cc=_16[i];
+if(_5.radii[cc]==0){
+if((cc.charAt(0)=="t"&&_7)||(cc.charAt(0)=="b"&&_8)){
+var _19=document.createElement("div");
+_19.style.position="relative";
+_19.style.fontSize="1px;";
+_19.style.overflow="hidden";
+if(_13.bgImage==""){
+_19.style.backgroundColor=_13.color;
+}else{
+_19.style.backgroundImage=_13.bgImage;
+}
+switch(cc){
+case "tl":
+_19.style.height=_14-_13.borderWidth+"px";
+_19.style.marginRight=_5.radii[cc]-(_13.borderWidth*2)+"px";
+_19.style.borderLeft=_13.borderString;
+_19.style.borderTop=_13.borderString;
+_19.style.left=-_13.borderWidth+"px";
+break;
+case "tr":
+_19.style.height=_14-_13.borderWidth+"px";
+_19.style.marginLeft=_5.radii[cc]-(_13.borderWidth*2)+"px";
+_19.style.borderRight=_13.borderString;
+_19.style.borderTop=_13.borderString;
+_19.style.backgroundPosition="-"+(_14-_13.borderWidth)+"px 0px";
+_19.style.left=_13.borderWidth+"px";
+break;
+case "bl":
+_19.style.height=_15-_13.borderWidth+"px";
+_19.style.marginRight=_5.radii[cc]-(_13.borderWidth*2)+"px";
+_19.style.borderLeft=_13.borderString;
+_19.style.borderBottom=_13.borderString;
+_19.style.left=_13.borderWidth+"px";
+_19.style.backgroundPosition="-"+_13.borderWidth+"px -"+(_13.height+(_15+_13.borderWidth))+"px";
+break;
+case "br":
+_19.style.height=_15-_13.borderWidth+"px";
+_19.style.marginLeft=_5.radii[cc]-(_13.borderWidth*2)+"px";
+_19.style.borderRight=_13.borderString;
+_19.style.borderBottom=_13.borderString;
+_19.style.left=_13.borderWidth+"px";
+_19.style.backgroundPosition="-"+(_15+_13.borderWidth)+"px -"+(_13.height+(_15+_13.borderWidth))+"px";
+break;
+}
+}
+}else{
+var _19=document.createElement("div");
+_19.style.height=_5.radii[cc]+"px";
+_19.style.width=_5.radii[cc]+"px";
+_19.style.position="absolute";
+_19.style.fontSize="1px";
+_19.style.overflow="hidden";
+var _1a=Math.floor(_5.radii[cc]-_13.borderWidth);
+for(var x=0,j=_5.radii[cc];x<j;x++){
+var y1=Math.floor(Math.sqrt(Math.pow(_1a,2)-Math.pow((x+1),2)))-1;
+if((x+1)>=_1a){
+var y1=-1;
+}
+var y2=Math.ceil(Math.sqrt(Math.pow(_1a,2)-Math.pow(x,2)));
+if(x>=_1a){
+y2=-1;
+}
+var y3=Math.floor(Math.sqrt(Math.pow(j,2)-Math.pow((x+1),2)))-1;
+if((x+1)>=j){
+y3=-1;
+}
+var y4=Math.ceil(Math.sqrt(Math.pow(j,2)-Math.pow(x,2)));
+if(x>=j){
+y4=-1;
+}
+if(y1>-1){
+_a.draw(x,0,_13.color,100,(y1+1),_19,-1,j,_14,_13);
+}
+for(var y=(y1+1);y<y2;y++){
+if(_5.antiAlias){
+if(_13.bgImage!=""){
+var _22=_a.fraction(x,y,_1a)*100;
+if(_22<30){
+_a.draw(x,y,_13.borderColor,100,1,_19,0,_5.radii[cc],_14,_13);
+}else{
+_a.draw(x,y,_13.borderColor,100,1,_19,-1,_5.radii[cc],_14,_13);
+}
+}else{
+var clr=_a.blend(_13.color,_13.borderColor,_a.fraction(x,y,_1a));
+_a.draw(x,y,clr,100,1,_19,0,_5.radii[cc],_14,_13);
+}
+}
+}
+if(_5.antiAlias){
+if(y3>=y2){
+if(y2==-1){
+y2=0;
+}
+_a.draw(x,y2,_13.borderColor,100,(y3-y2+1),_19,0,0,_14,_13);
+}else{
+if(y3>=y1){
+_a.draw(x,(y1+1),_13.borderColor,100,(y3-y1),_19,0,0,_14,_13);
+}
+}
+for(var y=(y3+1);y<y4;y++){
+_a.draw(x,y,_13.borderColor,(_a.fraction(x,y,j)*100),1,_19,(_13.borderWidth>0?0:-1),_5.radii[cc],_14,_13);
+}
+}else{
+y3=y1;
+}
+}
+if(cc!="br"){
+for(var t=0,k=_19.childNodes.length;t<k;t++){
+var bar=_19.childNodes[t];
+var _27=parseInt(dojo.html.getComputedStyle(bar,"top"));
+var _28=parseInt(dojo.html.getComputedStyle(bar,"left"));
+var _29=parseInt(dojo.html.getComputedStyle(bar,"height"));
+if(cc.charAt(1)=="l"){
+bar.style.left=(_5.radii[cc]-_28-1)+"px";
+}
+if(cc=="tr"){
+bar.style.top=(_5.radii[cc]-_29-_27)+"px";
+bar.style.backgroundPosition="-"+Math.abs((_13.width-_5.radii[cc]+_13.borderWidth)+_28)+"px -"+Math.abs(_5.radii[cc]-_29-_27-_13.borderWidth)+"px";
+}else{
+if(cc=="tl"){
+bar.style.top=(_5.radii[cc]-_29-_27)+"px";
+bar.style.backgroundPosition="-"+Math.abs((_5.radii[cc]-_28-1)-_13.borderWidth)+"px -"+Math.abs(_5.radii[cc]-_29-_27-_13.borderWidth)+"px";
+}else{
+bar.style.backgroundPosition="-"+Math.abs((_5.radii[cc]+_28)+_13.borderWidth)+"px -"+Math.abs((_13.height+_5.radii[cc]+_27)-_13.borderWidth)+"px";
+}
+}
+}
+}
+}
+if(_19){
+var psn=[];
+if(cc.charAt(0)=="t"){
+psn.push("top");
+}else{
+psn.push("bottom");
+}
+if(cc.charAt(1)=="l"){
+psn.push("left");
+}else{
+psn.push("right");
+}
+if(_19.style.position=="absolute"){
+for(var z=0;z<psn.length;z++){
+_19.style[psn[z]]="0px";
+}
+}
+if(psn[0]=="top"){
+if(_7){
+_7.appendChild(_19);
+}
+}else{
+if(_8){
+_8.appendChild(_19);
+}
+}
+}
+}
+var _2c={t:Math.abs(_5.radii.tl-_5.radii.tr),b:Math.abs(_5.radii.bl-_5.radii.br)};
+for(var z in _2c){
+var _2d=(_5.radii[z+"l"]<_5.radii[z+"r"]?z+"l":z+"r");
+var _2e=document.createElement("div");
+_2e.style.height=_2c[z]+"px";
+_2e.style.width=_5.radii[_2d]+"px";
+_2e.style.position="absolute";
+_2e.style.fontSize="1px";
+_2e.style.overflow="hidden";
+_2e.style.backgroundColor=_13.color;
+switch(_2d){
+case "tl":
+_2e.style.bottom="0px";
+_2e.style.left="0px";
+_2e.style.borderLeft=_13.borderString;
+_7.appendChild(_2e);
+break;
+case "tr":
+_2e.style.bottom="0px";
+_2e.style.right="0px";
+_2e.style.borderRight=_13.borderString;
+_7.appendChild(_2e);
+break;
+case "bl":
+_2e.style.top="0px";
+_2e.style.left="0px";
+_2e.style.borderLeft=_13.borderString;
+_8.appendChild(_2e);
+break;
+case "br":
+_2e.style.top="0px";
+_2e.style.right="0px";
+_2e.style.borderRight=_13.borderString;
+_8.appendChild(_2e);
+break;
+}
+var _2f=document.createElement("div");
+_2f.style.position="relative";
+_2f.style.fontSize="1px";
+_2f.style.overflow="hidden";
+_2f.style.backgroundColor=_13.color;
+_2f.style.backgroundImage=_13.bgImage;
+if(z=="t"){
+if(_7){
+if(_5.radii.tl&&_5.radii.tr){
+_2f.style.height=(_14-_13.borderWidth)+"px";
+_2f.style.marginLeft=(_5.radii.tl-_13.borderWidth)+"px";
+_2f.style.marginRight=(_5.radii.tr-_13.borderWidth)+"px";
+_2f.style.borderTop=_13.borderString;
+if(_13.bgImage!=""){
+_2f.style.backgroundPosition="-"+(_14+_13.borderWidth)+"px 0px";
+}
+}
+_7.appendChild(_2f);
+}
+}else{
+if(_8){
+if(_5.radii.bl&&_5.radii.br){
+_2f.style.height=(_15-_13.borderWidth)+"px";
+_2f.style.marginLeft=(_5.radii.bl-_13.borderWidth)+"px";
+_2f.style.marginRight=(_5.radii.br-_13.borderWidth)+"px";
+_2f.style.borderBottom=_13.borderString;
+if(_13.bgImage!=""){
+_2f.style.backgroundPosition="-"+(_15+_13.borderWidth)+"px -"+(_13.height+(_14+_13.borderWidth))+"px";
+}
+}
+_8.appendChild(_2f);
+}
+}
+}
+if(_5.autoPad&&_13.padding>0){
+var _30=document.createElement("div");
+_30.style.position="relative";
+_30.innerHTML=_13.content;
+_30.className="autoPadDiv";
+if(_14<_13.padding){
+_30.style.paddingTop=Math.abs(_14-_13.padding)+"px";
+}
+if(_15<_13.padding){
+_30.style.paddingBottom=Math.abs(_15-_13.padding)+"px";
+}
+_30.style.paddingLeft=_13.padding+"px";
+_30.style.paddingRight=_13.padding+"px";
+_6.appendChild(_30);
+}
+};
+var count=0;
+dojo.lfx.rounded._fns={blend:function(_31,_32,_33){
+var c1={r:parseInt(_31.substr(1,2),16),g:parseInt(_31.substr(3,2),16),b:parseInt(_31.substr(5,2),16)};
+var c2={r:parseInt(_32.substr(1,2),16),g:parseInt(_32.substr(3,2),16),b:parseInt(_32.substr(5,2),16)};
+if(_33>1||_33<0){
+_33=1;
+}
+var ret=[Math.min(Math.max(Math.round((c1.r*_33)+(c2.r*(1-_33))),0),255),Math.min(Math.max(Math.round((c1.g*_33)+(c2.g*(1-_33))),0),255),Math.min(Math.max(Math.round((c1.b*_33)+(c2.b*(1-_33))),0),255)];
+for(var i=0;i<ret.length;i++){
+var n=ret[i].toString(16);
+if(n.length<2){
+n="0"+n;
+}
+ret[i]=n;
+}
+return "#"+ret.join("");
+},fraction:function(x,y,r){
+var _3c=0;
+var _3d=[];
+var _3e=[];
+var _3f=0;
+var _40="";
+var _41=Math.sqrt((Math.pow(r,2)-Math.pow(x,2)));
+if(_41>=y&&_41<(y+1)){
+_40="Left";
+_3d[_3f]=0;
+_3e[_3f++]=_41-y;
+}
+_41=Math.sqrt((Math.pow(r,2)-Math.pow(y+1,2)));
+if(_41>=x&&_41<(x+1)){
+_40+="Top";
+_3d[_3f]=_41-x;
+_3e[_3f++]=1;
+}
+_41=Math.sqrt((Math.pow(r,2)-Math.pow(x+1,2)));
+if(_41>=y&&_41<(y+1)){
+_40+="Right";
+_3d[_3f]=1;
+_3e[_3f++]=_41-y;
+}
+_41=Math.sqrt((Math.pow(r,2)-Math.pow(y,2)));
+if(_41>=x&&_41<(x+1)){
+_40+="Bottom";
+_3d[_3f]=_41-x;
+_3e[_3f]=1;
+}
+switch(_40){
+case "LeftRight":
+return Math.min(_3e[0],_3e[1])+((Math.max(_3e[0],_3e[1])-Math.min(_3e[0],_3e[1]))/2);
+case "TopRight":
+return 1-(((1-_3d[0])*(1-_3e[1]))/2);
+case "TopBottom":
+return Math.min(_3d[0],_3d[1])+((Math.max(_3d[0],_3d[1])-Math.min(_3d[0],_3d[1]))/2);
+case "LeftBottom":
+return (_3e[0]*_3d[1])/2;
+default:
+return 1;
+}
+},draw:function(x,y,_44,_45,_46,_47,_48,_49,top,_4b){
+var px=document.createElement("div");
+px.style.height=_46+"px";
+px.style.width="1px";
+px.style.position="absolute";
+px.style.fontSize="1px";
+px.style.overflow="hidden";
+if(_48==-1&&_4b.bgImage!=""){
+px.style.backgroundImage=_4b.bgImage;
+px.style.backgroundPosition="-"+(_4b.width-(_49-x)+_4b.borderWidth)+"px -"+((_4b.height+top+y)-_4b.borderWidth)+"px";
+}else{
+px.style.backgroundColor=_44;
+}
+if(_45!=100){
+dojo.html.setOpacity(px,(_45/100));
+}
+px.style.top=y+"px";
+px.style.left=x+"px";
+_47.appendChild(px);
+},getRGB:function(clr){
+var ret="#ffffff";
+if(clr!=""&&clr!="transparent"){
+if(clr.substr(0,3)=="rgb"){
+var t=clr.substring(4,clr.indexOf(")"));
+t=t.split(",");
+for(var i=0;i<t.length;i++){
+var n=parseInt(t[i]).toString(16);
+if(n.length<2){
+n="0"+n;
+}
+t[i]=n;
+}
+ret="#"+t.join("");
+}else{
+if(clr.length==4){
+ret="#"+clr.substring(1,2)+clr.substring(1,2)+clr.substring(2,3)+clr.substring(2,3)+clr.substring(3,4)+clr.substring(3,4);
+}else{
+ret=clr;
+}
+}
+}
+return ret;
+}};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/rounded.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/rounded.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/rounded.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/shadow.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/shadow.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/shadow.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/shadow.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,62 @@
+dojo.provide("dojo.lfx.shadow");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.uri.Uri");
+dojo.lfx.shadow=function(_1){
+this.shadowPng=dojo.uri.moduleUri("dojo.html","images/shadow");
+this.shadowThickness=8;
+this.shadowOffset=15;
+this.init(_1);
+};
+dojo.extend(dojo.lfx.shadow,{init:function(_2){
+this.node=_2;
+this.pieces={};
+var x1=-1*this.shadowThickness;
+var y0=this.shadowOffset;
+var y1=this.shadowOffset+this.shadowThickness;
+this._makePiece("tl","top",y0,"left",x1);
+this._makePiece("l","top",y1,"left",x1,"scale");
+this._makePiece("tr","top",y0,"left",0);
+this._makePiece("r","top",y1,"left",0,"scale");
+this._makePiece("bl","top",0,"left",x1);
+this._makePiece("b","top",0,"left",0,"crop");
+this._makePiece("br","top",0,"left",0);
+},_makePiece:function(_6,_7,_8,_9,_a,_b){
+var _c;
+var _d=this.shadowPng+_6.toUpperCase()+".png";
+if(dojo.render.html.ie55||dojo.render.html.ie60){
+_c=dojo.doc().createElement("div");
+_c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_d+"'"+(_b?", sizingMethod='"+_b+"'":"")+")";
+}else{
+_c=dojo.doc().createElement("img");
+_c.src=_d;
+}
+_c.style.position="absolute";
+_c.style[_7]=_8+"px";
+_c.style[_9]=_a+"px";
+_c.style.width=this.shadowThickness+"px";
+_c.style.height=this.shadowThickness+"px";
+this.pieces[_6]=_c;
+this.node.appendChild(_c);
+},size:function(_e,_f){
+var _10=_f-(this.shadowOffset+this.shadowThickness+1);
+if(_10<0){
+_10=0;
+}
+if(_f<1){
+_f=1;
+}
+if(_e<1){
+_e=1;
+}
+with(this.pieces){
+l.style.height=_10+"px";
+r.style.height=_10+"px";
+b.style.width=(_e-1)+"px";
+bl.style.top=(_f-1)+"px";
+b.style.top=(_f-1)+"px";
+br.style.top=(_f-1)+"px";
+tr.style.left=(_e-1)+"px";
+r.style.left=(_e-1)+"px";
+br.style.left=(_e-1)+"px";
+}
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/shadow.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/shadow.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/shadow.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/toggle.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/toggle.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/toggle.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/toggle.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,28 @@
+dojo.provide("dojo.lfx.toggle");
+dojo.require("dojo.lfx.*");
+dojo.lfx.toggle.plain={show:function(_1,_2,_3,_4){
+dojo.html.show(_1);
+if(dojo.lang.isFunction(_4)){
+_4();
+}
+},hide:function(_5,_6,_7,_8){
+dojo.html.hide(_5);
+if(dojo.lang.isFunction(_8)){
+_8();
+}
+}};
+dojo.lfx.toggle.fade={show:function(_9,_a,_b,_c){
+dojo.lfx.fadeShow(_9,_a,_b,_c).play();
+},hide:function(_d,_e,_f,_10){
+dojo.lfx.fadeHide(_d,_e,_f,_10).play();
+}};
+dojo.lfx.toggle.wipe={show:function(_11,_12,_13,_14){
+dojo.lfx.wipeIn(_11,_12,_13,_14).play();
+},hide:function(_15,_16,_17,_18){
+dojo.lfx.wipeOut(_15,_16,_17,_18).play();
+}};
+dojo.lfx.toggle.explode={show:function(_19,_1a,_1b,_1c,_1d){
+dojo.lfx.explode(_1d||{x:0,y:0,width:0,height:0},_19,_1a,_1b,_1c).play();
+},hide:function(_1e,_1f,_20,_21,_22){
+dojo.lfx.implode(_1e,_22||{x:0,y:0,width:0,height:0},_1f,_20,_21).play();
+}};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/toggle.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/toggle.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/lfx/toggle.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,432 @@
+(function(){
+var _1={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_2,_3){
+this.modulePrefixes_[_2]={name:_2,value:_3};
+},moduleHasPrefix:function(_4){
+var mp=this.modulePrefixes_;
+return Boolean(mp[_4]&&mp[_4].value);
+},getModulePrefix:function(_6){
+if(this.moduleHasPrefix(_6)){
+return this.modulePrefixes_[_6].value;
+}
+return _6;
+},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
+for(var _7 in _1){
+dojo.hostenv[_7]=_1[_7];
+}
+})();
+dojo.hostenv.loadPath=function(_8,_9,cb){
+var _b;
+if(_8.charAt(0)=="/"||_8.match(/^\w+:/)){
+_b=_8;
+}else{
+_b=this.getBaseScriptUri()+_8;
+}
+if(djConfig.cacheBust&&dojo.render.html.capable){
+_b+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
+}
+try{
+return !_9?this.loadUri(_b,cb):this.loadUriAndCheck(_b,_9,cb);
+}
+catch(e){
+dojo.debug(e);
+return false;
+}
+};
+dojo.hostenv.loadUri=function(_c,cb){
+if(this.loadedUris[_c]){
+return true;
+}
+var _e=this.getText(_c,null,true);
+if(!_e){
+return false;
+}
+this.loadedUris[_c]=true;
+var _f=dj_eval(_e);
+if(cb){
+cb(_f);
+}
+return true;
+};
+dojo.hostenv.loadUriAndCheck=function(uri,_11,cb){
+var ok=true;
+try{
+ok=this.loadUri(uri,cb);
+}
+catch(e){
+dojo.debug("failed loading ",uri," with error: ",e);
+}
+return Boolean(ok&&this.findModule(_11,false));
+};
+dojo.loaded=function(){
+};
+dojo.unloaded=function(){
+};
+dojo.hostenv.loaded=function(){
+this.loadNotifying=true;
+this.post_load_=true;
+var mll=this.modulesLoadedListeners;
+for(var x=0;x<mll.length;x++){
+mll[x]();
+}
+this.modulesLoadedListeners=[];
+this.loadNotifying=false;
+dojo.loaded();
+};
+dojo.hostenv.unloaded=function(){
+var mll=this.unloadListeners;
+while(mll.length){
+(mll.pop())();
+}
+dojo.unloaded();
+};
+dojo.addOnLoad=function(obj,_18){
+var dh=dojo.hostenv;
+if(arguments.length==1){
+dh.modulesLoadedListeners.push(obj);
+}else{
+if(arguments.length>1){
+dh.modulesLoadedListeners.push(function(){
+obj[_18]();
+});
+}
+}
+if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
+dh.callLoaded();
+}
+};
+dojo.addOnUnload=function(obj,_1b){
+var dh=dojo.hostenv;
+if(arguments.length==1){
+dh.unloadListeners.push(obj);
+}else{
+if(arguments.length>1){
+dh.unloadListeners.push(function(){
+obj[_1b]();
+});
+}
+}
+};
+dojo.hostenv.modulesLoaded=function(){
+if(this.post_load_){
+return;
+}
+if(this.loadUriStack.length==0&&this.getTextStack.length==0){
+if(this.inFlightCount>0){
+dojo.debug("files still in flight!");
+return;
+}
+dojo.hostenv.callLoaded();
+}
+};
+dojo.hostenv.callLoaded=function(){
+if(typeof setTimeout=="object"||(djConfig["useXDomain"]&&dojo.render.html.opera)){
+setTimeout("dojo.hostenv.loaded();",0);
+}else{
+dojo.hostenv.loaded();
+}
+};
+dojo.hostenv.getModuleSymbols=function(_1d){
+var _1e=_1d.split(".");
+for(var i=_1e.length;i>0;i--){
+var _20=_1e.slice(0,i).join(".");
+if((i==1)&&!this.moduleHasPrefix(_20)){
+_1e[0]="../"+_1e[0];
+}else{
+var _21=this.getModulePrefix(_20);
+if(_21!=_20){
+_1e.splice(0,i,_21);
+break;
+}
+}
+}
+return _1e;
+};
+dojo.hostenv._global_omit_module_check=false;
+dojo.hostenv.loadModule=function(_22,_23,_24){
+if(!_22){
+return;
+}
+_24=this._global_omit_module_check||_24;
+var _25=this.findModule(_22,false);
+if(_25){
+return _25;
+}
+if(dj_undef(_22,this.loading_modules_)){
+this.addedToLoadingCount.push(_22);
+}
+this.loading_modules_[_22]=1;
+var _26=_22.replace(/\./g,"/")+".js";
+var _27=_22.split(".");
+var _28=this.getModuleSymbols(_22);
+var _29=((_28[0].charAt(0)!="/")&&!_28[0].match(/^\w+:/));
+var _2a=_28[_28.length-1];
+var ok;
+if(_2a=="*"){
+_22=_27.slice(0,-1).join(".");
+while(_28.length){
+_28.pop();
+_28.push(this.pkgFileName);
+_26=_28.join("/")+".js";
+if(_29&&_26.charAt(0)=="/"){
+_26=_26.slice(1);
+}
+ok=this.loadPath(_26,!_24?_22:null);
+if(ok){
+break;
+}
+_28.pop();
+}
+}else{
+_26=_28.join("/")+".js";
+_22=_27.join(".");
+var _2c=!_24?_22:null;
+ok=this.loadPath(_26,_2c);
+if(!ok&&!_23){
+_28.pop();
+while(_28.length){
+_26=_28.join("/")+".js";
+ok=this.loadPath(_26,_2c);
+if(ok){
+break;
+}
+_28.pop();
+_26=_28.join("/")+"/"+this.pkgFileName+".js";
+if(_29&&_26.charAt(0)=="/"){
+_26=_26.slice(1);
+}
+ok=this.loadPath(_26,_2c);
+if(ok){
+break;
+}
+}
+}
+if(!ok&&!_24){
+dojo.raise("Could not load '"+_22+"'; last tried '"+_26+"'");
+}
+}
+if(!_24&&!this["isXDomain"]){
+_25=this.findModule(_22,false);
+if(!_25){
+dojo.raise("symbol '"+_22+"' is not defined after loading '"+_26+"'");
+}
+}
+return _25;
+};
+dojo.hostenv.startPackage=function(_2d){
+var _2e=String(_2d);
+var _2f=_2e;
+var _30=_2d.split(/\./);
+if(_30[_30.length-1]=="*"){
+_30.pop();
+_2f=_30.join(".");
+}
+var _31=dojo.evalObjPath(_2f,true);
+this.loaded_modules_[_2e]=_31;
+this.loaded_modules_[_2f]=_31;
+return _31;
+};
+dojo.hostenv.findModule=function(_32,_33){
+var lmn=String(_32);
+if(this.loaded_modules_[lmn]){
+return this.loaded_modules_[lmn];
+}
+if(_33){
+dojo.raise("no loaded module named '"+_32+"'");
+}
+return null;
+};
+dojo.kwCompoundRequire=function(_35){
+var _36=_35["common"]||[];
+var _37=_35[dojo.hostenv.name_]?_36.concat(_35[dojo.hostenv.name_]||[]):_36.concat(_35["default"]||[]);
+for(var x=0;x<_37.length;x++){
+var _39=_37[x];
+if(_39.constructor==Array){
+dojo.hostenv.loadModule.apply(dojo.hostenv,_39);
+}else{
+dojo.hostenv.loadModule(_39);
+}
+}
+};
+dojo.require=function(_3a){
+dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
+};
+dojo.requireIf=function(_3b,_3c){
+var _3d=arguments[0];
+if((_3d===true)||(_3d=="common")||(_3d&&dojo.render[_3d].capable)){
+var _3e=[];
+for(var i=1;i<arguments.length;i++){
+_3e.push(arguments[i]);
+}
+dojo.require.apply(dojo,_3e);
+}
+};
+dojo.requireAfterIf=dojo.requireIf;
+dojo.provide=function(_40){
+return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
+};
+dojo.registerModulePath=function(_41,_42){
+return dojo.hostenv.setModulePrefix(_41,_42);
+};
+if(djConfig["modulePaths"]){
+for(var param in djConfig["modulePaths"]){
+dojo.registerModulePath(param,djConfig["modulePaths"][param]);
+}
+}
+dojo.setModulePrefix=function(_43,_44){
+dojo.deprecated("dojo.setModulePrefix(\""+_43+"\", \""+_44+"\")","replaced by dojo.registerModulePath","0.5");
+return dojo.registerModulePath(_43,_44);
+};
+dojo.exists=function(obj,_46){
+var p=_46.split(".");
+for(var i=0;i<p.length;i++){
+if(!obj[p[i]]){
+return false;
+}
+obj=obj[p[i]];
+}
+return true;
+};
+dojo.hostenv.normalizeLocale=function(_49){
+var _4a=_49?_49.toLowerCase():dojo.locale;
+if(_4a=="root"){
+_4a="ROOT";
+}
+return _4a;
+};
+dojo.hostenv.searchLocalePath=function(_4b,_4c,_4d){
+_4b=dojo.hostenv.normalizeLocale(_4b);
+var _4e=_4b.split("-");
+var _4f=[];
+for(var i=_4e.length;i>0;i--){
+_4f.push(_4e.slice(0,i).join("-"));
+}
+_4f.push(false);
+if(_4c){
+_4f.reverse();
+}
+for(var j=_4f.length-1;j>=0;j--){
+var loc=_4f[j]||"ROOT";
+var _53=_4d(loc);
+if(_53){
+break;
+}
+}
+};
+dojo.hostenv.localesGenerated;
+dojo.hostenv.registerNlsPrefix=function(){
+dojo.registerModulePath("nls","nls");
+};
+dojo.hostenv.preloadLocalizations=function(){
+if(dojo.hostenv.localesGenerated){
+dojo.hostenv.registerNlsPrefix();
+function preload(_54){
+_54=dojo.hostenv.normalizeLocale(_54);
+dojo.hostenv.searchLocalePath(_54,true,function(loc){
+for(var i=0;i<dojo.hostenv.localesGenerated.length;i++){
+if(dojo.hostenv.localesGenerated[i]==loc){
+dojo["require"]("nls.dojo_"+loc);
+return true;
+}
+}
+return false;
+});
+}
+preload();
+var _57=djConfig.extraLocale||[];
+for(var i=0;i<_57.length;i++){
+preload(_57[i]);
+}
+}
+dojo.hostenv.preloadLocalizations=function(){
+};
+};
+dojo.requireLocalization=function(_59,_5a,_5b,_5c){
+dojo.hostenv.preloadLocalizations();
+var _5d=dojo.hostenv.normalizeLocale(_5b);
+var _5e=[_59,"nls",_5a].join(".");
+var _5f="";
+if(_5c){
+var _60=_5c.split(",");
+for(var i=0;i<_60.length;i++){
+if(_5d.indexOf(_60[i])==0){
+if(_60[i].length>_5f.length){
+_5f=_60[i];
+}
+}
+}
+if(!_5f){
+_5f="ROOT";
+}
+}
+var _62=_5c?_5f:_5d;
+var _63=dojo.hostenv.findModule(_5e);
+var _64=null;
+if(_63){
+if(djConfig.localizationComplete&&_63._built){
+return;
+}
+var _65=_62.replace("-","_");
+var _66=_5e+"."+_65;
+_64=dojo.hostenv.findModule(_66);
+}
+if(!_64){
+_63=dojo.hostenv.startPackage(_5e);
+var _67=dojo.hostenv.getModuleSymbols(_59);
+var _68=_67.concat("nls").join("/");
+var _69;
+dojo.hostenv.searchLocalePath(_62,_5c,function(loc){
+var _6b=loc.replace("-","_");
+var _6c=_5e+"."+_6b;
+var _6d=false;
+if(!dojo.hostenv.findModule(_6c)){
+dojo.hostenv.startPackage(_6c);
+var _6e=[_68];
+if(loc!="ROOT"){
+_6e.push(loc);
+}
+_6e.push(_5a);
+var _6f=_6e.join("/")+".js";
+_6d=dojo.hostenv.loadPath(_6f,null,function(_70){
+var _71=function(){
+};
+_71.prototype=_69;
+_63[_6b]=new _71();
+for(var j in _70){
+_63[_6b][j]=_70[j];
+}
+});
+}else{
+_6d=true;
+}
+if(_6d&&_63[_6b]){
+_69=_63[_6b];
+}else{
+_63[_6b]=_69;
+}
+if(_5c){
+return true;
+}
+});
+}
+if(_5c&&_5d!=_5f){
+_63[_5d.replace("-","_")]=_63[_5f.replace("-","_")];
+}
+};
+(function(){
+var _73=djConfig.extraLocale;
+if(_73){
+if(!_73 instanceof Array){
+_73=[_73];
+}
+var req=dojo.requireLocalization;
+dojo.requireLocalization=function(m,b,_77,_78){
+req(m,b,_77,_78);
+if(_77){
+return;
+}
+for(var i=0;i<_73.length;i++){
+req(m,b,_73[i],_78);
+}
+};
+}
+})();

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader_xd.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader_xd.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader_xd.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader_xd.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,395 @@
+dojo.hostenv.resetXd=function(){
+this.isXDomain=djConfig.useXDomain||false;
+this.xdTimer=0;
+this.xdInFlight={};
+this.xdOrderedReqs=[];
+this.xdDepMap={};
+this.xdContents=[];
+this.xdDefList=[];
+};
+dojo.hostenv.resetXd();
+dojo.hostenv.createXdPackage=function(_1,_2,_3){
+var _4=[];
+var _5=/dojo.(requireLocalization|require|requireIf|requireAll|provide|requireAfterIf|requireAfter|kwCompoundRequire|conditionalRequire|hostenv\.conditionalLoadModule|.hostenv\.loadModule|hostenv\.moduleLoaded)\(([\w\W]*?)\)/mg;
+var _6;
+while((_6=_5.exec(_1))!=null){
+if(_6[1]=="requireLocalization"){
+eval(_6[0]);
+}else{
+_4.push("\""+_6[1]+"\", "+_6[2]);
+}
+}
+var _7=[];
+_7.push("dojo.hostenv.packageLoaded({\n");
+if(_4.length>0){
+_7.push("depends: [");
+for(var i=0;i<_4.length;i++){
+if(i>0){
+_7.push(",\n");
+}
+_7.push("["+_4[i]+"]");
+}
+_7.push("],");
+}
+_7.push("\ndefinePackage: function(dojo){");
+_7.push(_1);
+_7.push("\n}, resourceName: '"+_2+"', resourcePath: '"+_3+"'});");
+return _7.join("");
+};
+dojo.hostenv.loadPath=function(_9,_a,cb){
+var _c=_9.indexOf(":");
+var _d=_9.indexOf("/");
+var _e;
+var _f=false;
+if(_c>0&&_c<_d){
+_e=_9;
+this.isXDomain=_f=true;
+}else{
+_e=this.getBaseScriptUri()+_9;
+_c=_e.indexOf(":");
+_d=_e.indexOf("/");
+if(_c>0&&_c<_d&&(!location.host||_e.indexOf("http://"+location.host)!=0)){
+this.isXDomain=_f=true;
+}
+}
+if(djConfig.cacheBust&&dojo.render.html.capable){
+_e+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
+}
+try{
+return ((!_a||this.isXDomain)?this.loadUri(_e,cb,_f,_a):this.loadUriAndCheck(_e,_a,cb));
+}
+catch(e){
+dojo.debug(e);
+return false;
+}
+};
+dojo.hostenv.loadUri=function(uri,cb,_12,_13){
+if(this.loadedUris[uri]){
+return 1;
+}
+if(this.isXDomain&&_13){
+if(uri.indexOf("__package__")!=-1){
+_13+=".*";
+}
+this.xdOrderedReqs.push(_13);
+if(_12||uri.indexOf("/nls/")==-1){
+this.xdInFlight[_13]=true;
+this.inFlightCount++;
+}
+if(!this.xdTimer){
+this.xdTimer=setInterval("dojo.hostenv.watchInFlightXDomain();",100);
+}
+this.xdStartTime=(new Date()).getTime();
+}
+if(_12){
+var _14=uri.lastIndexOf(".");
+if(_14<=0){
+_14=uri.length-1;
+}
+var _15=uri.substring(0,_14)+".xd";
+if(_14!=uri.length-1){
+_15+=uri.substring(_14,uri.length);
+}
+var _16=document.createElement("script");
+_16.type="text/javascript";
+_16.src=_15;
+if(!this.headElement){
+this.headElement=document.getElementsByTagName("head")[0];
+if(!this.headElement){
+this.headElement=document.getElementsByTagName("html")[0];
+}
+}
+this.headElement.appendChild(_16);
+}else{
+var _17=this.getText(uri,null,true);
+if(_17==null){
+return 0;
+}
+if(this.isXDomain&&uri.indexOf("/nls/")==-1){
+var pkg=this.createXdPackage(_17,_13,uri);
+dj_eval(pkg);
+}else{
+if(cb){
+_17="("+_17+")";
+}
+var _19=dj_eval(_17);
+if(cb){
+cb(_19);
+}
+}
+}
+this.loadedUris[uri]=true;
+return 1;
+};
+dojo.hostenv.packageLoaded=function(pkg){
+var _1b=pkg.depends;
+var _1c=null;
+var _1d=null;
+var _1e=[];
+if(_1b&&_1b.length>0){
+var dep=null;
+var _20=0;
+var _21=false;
+for(var i=0;i<_1b.length;i++){
+dep=_1b[i];
+if(dep[0]=="provide"||dep[0]=="hostenv.moduleLoaded"){
+_1e.push(dep[1]);
+}else{
+if(!_1c){
+_1c=[];
+}
+if(!_1d){
+_1d=[];
+}
+var _23=this.unpackXdDependency(dep);
+if(_23.requires){
+_1c=_1c.concat(_23.requires);
+}
+if(_23.requiresAfter){
+_1d=_1d.concat(_23.requiresAfter);
+}
+}
+var _24=dep[0];
+var _25=_24.split(".");
+if(_25.length==2){
+dojo[_25[0]][_25[1]].apply(dojo[_25[0]],dep.slice(1));
+}else{
+dojo[_24].apply(dojo,dep.slice(1));
+}
+}
+var _26=this.xdContents.push({content:pkg.definePackage,resourceName:pkg["resourceName"],resourcePath:pkg["resourcePath"],isDefined:false})-1;
+for(var i=0;i<_1e.length;i++){
+this.xdDepMap[_1e[i]]={requires:_1c,requiresAfter:_1d,contentIndex:_26};
+}
+for(var i=0;i<_1e.length;i++){
+this.xdInFlight[_1e[i]]=false;
+}
+}
+};
+dojo.hostenv.xdLoadFlattenedBundle=function(_27,_28,_29,_2a){
+_29=_29||"root";
+var _2b=dojo.hostenv.normalizeLocale(_29).replace("-","_");
+var _2c=[_27,"nls",_28].join(".");
+var _2d=dojo.hostenv.startPackage(_2c);
+_2d[_2b]=_2a;
+var _2e=[_27,_2b,_28].join(".");
+var _2f=dojo.hostenv.xdBundleMap[_2e];
+if(_2f){
+for(var _30 in _2f){
+_2d[_30]=_2a;
+}
+}
+};
+dojo.hostenv.xdBundleMap={};
+dojo.xdRequireLocalization=function(_31,_32,_33,_34){
+var _35=_34.split(",");
+var _36=dojo.hostenv.normalizeLocale(_33);
+var _37="";
+for(var i=0;i<_35.length;i++){
+if(_36.indexOf(_35[i])==0){
+if(_35[i].length>_37.length){
+_37=_35[i];
+}
+}
+}
+var _39=_37.replace("-","_");
+var _3a=dojo.evalObjPath([_31,"nls",_32].join("."));
+if(_3a&&_3a[_39]){
+bundle[_36.replace("-","_")]=_3a[_39];
+}else{
+var _3b=[_31,(_39||"root"),_32].join(".");
+var _3c=dojo.hostenv.xdBundleMap[_3b];
+if(!_3c){
+_3c=dojo.hostenv.xdBundleMap[_3b]={};
+}
+_3c[_36.replace("-","_")]=true;
+dojo.require(_31+".nls"+(_37?"."+_37:"")+"."+_32);
+}
+};
+(function(){
+var _3d=djConfig.extraLocale;
+if(_3d){
+if(!_3d instanceof Array){
+_3d=[_3d];
+}
+dojo._xdReqLoc=dojo.xdRequireLocalization;
+dojo.xdRequireLocalization=function(m,b,_40,_41){
+dojo._xdReqLoc(m,b,_40,_41);
+if(_40){
+return;
+}
+for(var i=0;i<_3d.length;i++){
+dojo._xdReqLoc(m,b,_3d[i],_41);
+}
+};
+}
+})();
+dojo.hostenv.unpackXdDependency=function(dep){
+var _44=null;
+var _45=null;
+switch(dep[0]){
+case "requireIf":
+case "requireAfterIf":
+case "conditionalRequire":
+if((dep[1]===true)||(dep[1]=="common")||(dep[1]&&dojo.render[dep[1]].capable)){
+_44=[{name:dep[2],content:null}];
+}
+break;
+case "requireAll":
+dep.shift();
+_44=dep;
+dojo.hostenv.flattenRequireArray(_44);
+break;
+case "kwCompoundRequire":
+case "hostenv.conditionalLoadModule":
+var _46=dep[1];
+var _47=_46["common"]||[];
+var _44=(_46[dojo.hostenv.name_])?_47.concat(_46[dojo.hostenv.name_]||[]):_47.concat(_46["default"]||[]);
+dojo.hostenv.flattenRequireArray(_44);
+break;
+case "require":
+case "requireAfter":
+case "hostenv.loadModule":
+_44=[{name:dep[1],content:null}];
+break;
+}
+if(dep[0]=="requireAfterIf"||dep[0]=="requireIf"){
+_45=_44;
+_44=null;
+}
+return {requires:_44,requiresAfter:_45};
+};
+dojo.hostenv.xdWalkReqs=function(){
+var _48=null;
+var req;
+for(var i=0;i<this.xdOrderedReqs.length;i++){
+req=this.xdOrderedReqs[i];
+if(this.xdDepMap[req]){
+_48=[req];
+_48[req]=true;
+this.xdEvalReqs(_48);
+}
+}
+};
+dojo.hostenv.xdEvalReqs=function(_4b){
+while(_4b.length>0){
+var req=_4b[_4b.length-1];
+var pkg=this.xdDepMap[req];
+if(pkg){
+var _4e=pkg.requires;
+if(_4e&&_4e.length>0){
+var _4f;
+for(var i=0;i<_4e.length;i++){
+_4f=_4e[i].name;
+if(_4f&&!_4b[_4f]){
+_4b.push(_4f);
+_4b[_4f]=true;
+this.xdEvalReqs(_4b);
+}
+}
+}
+var _51=this.xdContents[pkg.contentIndex];
+if(!_51.isDefined){
+var _52=_51.content;
+_52["resourceName"]=_51["resourceName"];
+_52["resourcePath"]=_51["resourcePath"];
+this.xdDefList.push(_52);
+_51.isDefined=true;
+}
+this.xdDepMap[req]=null;
+var _4e=pkg.requiresAfter;
+if(_4e&&_4e.length>0){
+var _4f;
+for(var i=0;i<_4e.length;i++){
+_4f=_4e[i].name;
+if(_4f&&!_4b[_4f]){
+_4b.push(_4f);
+_4b[_4f]=true;
+this.xdEvalReqs(_4b);
+}
+}
+}
+}
+_4b.pop();
+}
+};
+dojo.hostenv.clearXdInterval=function(){
+clearInterval(this.xdTimer);
+this.xdTimer=0;
+};
+dojo.hostenv.watchInFlightXDomain=function(){
+var _53=(djConfig.xdWaitSeconds||15)*1000;
+if(this.xdStartTime+_53<(new Date()).getTime()){
+this.clearXdInterval();
+var _54="";
+for(var _55 in this.xdInFlight){
+if(this.xdInFlight[_55]){
+_54+=_55+" ";
+}
+}
+dojo.raise("Could not load cross-domain packages: "+_54);
+}
+for(var _55 in this.xdInFlight){
+if(this.xdInFlight[_55]){
+return;
+}
+}
+this.clearXdInterval();
+this.xdWalkReqs();
+var _56=this.xdDefList.length;
+for(var i=0;i<_56;i++){
+var _58=dojo.hostenv.xdDefList[i];
+if(djConfig["debugAtAllCosts"]&&_58["resourceName"]){
+if(!this["xdDebugQueue"]){
+this.xdDebugQueue=[];
+}
+this.xdDebugQueue.push({resourceName:_58.resourceName,resourcePath:_58.resourcePath});
+}else{
+_58(dojo);
+}
+}
+for(var i=0;i<this.xdContents.length;i++){
+var _59=this.xdContents[i];
+if(_59.content&&!_59.isDefined){
+_59.content(dojo);
+}
+}
+this.resetXd();
+if(this["xdDebugQueue"]&&this.xdDebugQueue.length>0){
+this.xdDebugFileLoaded();
+}else{
+this.xdNotifyLoaded();
+}
+};
+dojo.hostenv.xdNotifyLoaded=function(){
+this.inFlightCount=0;
+if(this._djInitFired&&!this.loadNotifying){
+this.callLoaded();
+}
+};
+dojo.hostenv.flattenRequireArray=function(_5a){
+if(_5a){
+for(var i=0;i<_5a.length;i++){
+if(_5a[i] instanceof Array){
+_5a[i]={name:_5a[i][0],content:null};
+}else{
+_5a[i]={name:_5a[i],content:null};
+}
+}
+}
+};
+dojo.hostenv.xdHasCalledPreload=false;
+dojo.hostenv.xdRealCallLoaded=dojo.hostenv.callLoaded;
+dojo.hostenv.callLoaded=function(){
+if(this.xdHasCalledPreload||dojo.hostenv.getModulePrefix("dojo")=="src"||!this.localesGenerated){
+this.xdRealCallLoaded();
+}else{
+if(this.localesGenerated){
+this.registerNlsPrefix=function(){
+dojo.registerModulePath("nls",dojo.hostenv.getModulePrefix("dojo")+"/../nls");
+};
+this.preloadLocalizations();
+}
+}
+this.xdHasCalledPreload=true;
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader_xd.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader_xd.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/loader_xd.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/ConsoleLogger.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/ConsoleLogger.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/ConsoleLogger.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/ConsoleLogger.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,73 @@
+dojo.provide("dojo.logging.ConsoleLogger");
+dojo.require("dojo.logging.Logger");
+dojo.lang.extend(dojo.logging.MemoryLogHandler,{debug:function(){
+dojo.hostenv.println.apply(this,arguments);
+},info:function(){
+dojo.hostenv.println.apply(this,arguments);
+},warn:function(){
+dojo.hostenv.println.apply(this,arguments);
+},error:function(){
+dojo.hostenv.println.apply(this,arguments);
+},critical:function(){
+dojo.hostenv.println.apply(this,arguments);
+},emit:function(_1){
+if(!djConfig.isDebug){
+return;
+}
+var _2=null;
+switch(_1.level){
+case 1:
+_2="debug";
+break;
+case 2:
+_2="info";
+break;
+case 3:
+_2="warn";
+break;
+case 4:
+_2="error";
+break;
+case 5:
+_2="critical";
+break;
+default:
+_2="debug";
+}
+var _3=String(dojo.log.getLevelName(_1.level)+": "+_1.time.toLocaleTimeString())+": "+_1.message;
+if(_1.msgArgs&&_1.msgArgs.length>0){
+this[_2].call(this,_3,_1.msgArgs);
+}else{
+this[_2].call(this,_3);
+}
+this.data.push(_1);
+if(this.numRecords!=-1){
+while(this.data.length>this.numRecords){
+this.data.shift();
+}
+}
+}});
+if(!dj_undef("console")&&!dj_undef("info",console)){
+dojo.lang.extend(dojo.logging.MemoryLogHandler,{debug:function(){
+console.debug.apply(this,arguments);
+},info:function(){
+console.info.apply(this,arguments);
+},warn:function(){
+console.warn.apply(this,arguments);
+},error:function(){
+console.error.apply(this,arguments);
+},critical:function(){
+console.error.apply(this,arguments);
+}});
+dojo.lang.extend(dojo.logging.Logger,{exception:function(_4,e,_6){
+var _7=[_4];
+if(e){
+_4+=" : "+e.name+" "+(e.description||e.message);
+_7.push(e);
+}
+this.logType("ERROR",_7);
+if(!_6){
+throw e;
+}
+}});
+}

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/ConsoleLogger.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/ConsoleLogger.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/logging/ConsoleLogger.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message