tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkuhn...@apache.org
Subject svn commit: r618461 [27/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/uuid/Uuid.js
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

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

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

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

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

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

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/__package__.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/__package__.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/__package__.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/__package__.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,3 @@
+dojo.require("dojo.validate");
+dojo.kwCompoundRequire({common:["dojo.validate.check","dojo.validate.datetime","dojo.validate.de","dojo.validate.jp","dojo.validate.us","dojo.validate.web"]});
+dojo.provide("dojo.validate.*");

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/check.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/check.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/check.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/check.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,221 @@
+dojo.provide("dojo.validate.check");
+dojo.require("dojo.validate.common");
+dojo.require("dojo.lang.common");
+dojo.validate.check=function(_1,_2){
+var _3=[];
+var _4=[];
+var _5={isSuccessful:function(){
+return (!this.hasInvalid()&&!this.hasMissing());
+},hasMissing:function(){
+return (_3.length>0);
+},getMissing:function(){
+return _3;
+},isMissing:function(_6){
+for(var i=0;i<_3.length;i++){
+if(_6==_3[i]){
+return true;
+}
+}
+return false;
+},hasInvalid:function(){
+return (_4.length>0);
+},getInvalid:function(){
+return _4;
+},isInvalid:function(_8){
+for(var i=0;i<_4.length;i++){
+if(_8==_4[i]){
+return true;
+}
+}
+return false;
+}};
+if(_2.trim instanceof Array){
+for(var i=0;i<_2.trim.length;i++){
+var _b=_1[_2.trim[i]];
+if(dj_undef("type",_b)||_b.type!="text"&&_b.type!="textarea"&&_b.type!="password"){
+continue;
+}
+_b.value=_b.value.replace(/(^\s*|\s*$)/g,"");
+}
+}
+if(_2.uppercase instanceof Array){
+for(var i=0;i<_2.uppercase.length;i++){
+var _b=_1[_2.uppercase[i]];
+if(dj_undef("type",_b)||_b.type!="text"&&_b.type!="textarea"&&_b.type!="password"){
+continue;
+}
+_b.value=_b.value.toUpperCase();
+}
+}
+if(_2.lowercase instanceof Array){
+for(var i=0;i<_2.lowercase.length;i++){
+var _b=_1[_2.lowercase[i]];
+if(dj_undef("type",_b)||_b.type!="text"&&_b.type!="textarea"&&_b.type!="password"){
+continue;
+}
+_b.value=_b.value.toLowerCase();
+}
+}
+if(_2.ucfirst instanceof Array){
+for(var i=0;i<_2.ucfirst.length;i++){
+var _b=_1[_2.ucfirst[i]];
+if(dj_undef("type",_b)||_b.type!="text"&&_b.type!="textarea"&&_b.type!="password"){
+continue;
+}
+_b.value=_b.value.replace(/\b\w+\b/g,function(_c){
+return _c.substring(0,1).toUpperCase()+_c.substring(1).toLowerCase();
+});
+}
+}
+if(_2.digit instanceof Array){
+for(var i=0;i<_2.digit.length;i++){
+var _b=_1[_2.digit[i]];
+if(dj_undef("type",_b)||_b.type!="text"&&_b.type!="textarea"&&_b.type!="password"){
+continue;
+}
+_b.value=_b.value.replace(/\D/g,"");
+}
+}
+if(_2.required instanceof Array){
+for(var i=0;i<_2.required.length;i++){
+if(!dojo.lang.isString(_2.required[i])){
+continue;
+}
+var _b=_1[_2.required[i]];
+if(!dj_undef("type",_b)&&(_b.type=="text"||_b.type=="textarea"||_b.type=="password"||_b.type=="file")&&/^\s*$/.test(_b.value)){
+_3[_3.length]=_b.name;
+}else{
+if(!dj_undef("type",_b)&&(_b.type=="select-one"||_b.type=="select-multiple")&&(_b.selectedIndex==-1||/^\s*$/.test(_b.options[_b.selectedIndex].value))){
+_3[_3.length]=_b.name;
+}else{
+if(dojo.lang.isArrayLike(_b)){
+var _d=false;
+for(var j=0;j<_b.length;j++){
+if(_b[j].checked){
+_d=true;
+}
+}
+if(!_d){
+_3[_3.length]=_b[0].name;
+}
+}
+}
+}
+}
+}
+if(_2.required instanceof Array){
+for(var i=0;i<_2.required.length;i++){
+if(!dojo.lang.isObject(_2.required[i])){
+continue;
+}
+var _b,_f;
+for(var _10 in _2.required[i]){
+_b=_1[_10];
+_f=_2.required[i][_10];
+}
+if(dojo.lang.isArrayLike(_b)){
+var _d=0;
+for(var j=0;j<_b.length;j++){
+if(_b[j].checked){
+_d++;
+}
+}
+if(_d<_f){
+_3[_3.length]=_b[0].name;
+}
+}else{
+if(!dj_undef("type",_b)&&_b.type=="select-multiple"){
+var _11=0;
+for(var j=0;j<_b.options.length;j++){
+if(_b.options[j].selected&&!/^\s*$/.test(_b.options[j].value)){
+_11++;
+}
+}
+if(_11<_f){
+_3[_3.length]=_b.name;
+}
+}
+}
+}
+}
+if(dojo.lang.isObject(_2.dependencies)||dojo.lang.isObject(_2.dependancies)){
+if(_2["dependancies"]){
+dojo.deprecated("dojo.validate.check","profile 'dependancies' is deprecated, please use "+"'dependencies'","0.5");
+_2.dependencies=_2.dependancies;
+}
+for(_10 in _2.dependencies){
+var _b=_1[_10];
+if(dj_undef("type",_b)){
+continue;
+}
+if(_b.type!="text"&&_b.type!="textarea"&&_b.type!="password"){
+continue;
+}
+if(/\S+/.test(_b.value)){
+continue;
+}
+if(_5.isMissing(_b.name)){
+continue;
+}
+var _12=_1[_2.dependencies[_10]];
+if(_12.type!="text"&&_12.type!="textarea"&&_12.type!="password"){
+continue;
+}
+if(/^\s*$/.test(_12.value)){
+continue;
+}
+_3[_3.length]=_b.name;
+}
+}
+if(dojo.lang.isObject(_2.constraints)){
+for(_10 in _2.constraints){
+var _b=_1[_10];
+if(!_b){
+continue;
+}
+if(!dj_undef("tagName",_b)&&(_b.tagName.toLowerCase().indexOf("input")>=0||_b.tagName.toLowerCase().indexOf("textarea")>=0)&&/^\s*$/.test(_b.value)){
+continue;
+}
+var _13=true;
+if(dojo.lang.isFunction(_2.constraints[_10])){
+_13=_2.constraints[_10](_b.value);
+}else{
+if(dojo.lang.isArray(_2.constraints[_10])){
+if(dojo.lang.isArray(_2.constraints[_10][0])){
+for(var i=0;i<_2.constraints[_10].length;i++){
+_13=dojo.validate.evaluateConstraint(_2,_2.constraints[_10][i],_10,_b);
+if(!_13){
+break;
+}
+}
+}else{
+_13=dojo.validate.evaluateConstraint(_2,_2.constraints[_10],_10,_b);
+}
+}
+}
+if(!_13){
+_4[_4.length]=_b.name;
+}
+}
+}
+if(dojo.lang.isObject(_2.confirm)){
+for(_10 in _2.confirm){
+var _b=_1[_10];
+var _12=_1[_2.confirm[_10]];
+if(dj_undef("type",_b)||dj_undef("type",_12)||(_b.type!="text"&&_b.type!="textarea"&&_b.type!="password")||(_12.type!=_b.type)||(_12.value==_b.value)||(_5.isInvalid(_b.name))||(/^\s*$/.test(_12.value))){
+continue;
+}
+_4[_4.length]=_b.name;
+}
+}
+return _5;
+};
+dojo.validate.evaluateConstraint=function(_14,_15,_16,_17){
+var _18=_15[0];
+var _19=_15.slice(1);
+_19.unshift(_17.value);
+if(typeof _18!="undefined"){
+return _18.apply(null,_19);
+}
+return false;
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/common.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/common.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/common.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/common.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,83 @@
+dojo.provide("dojo.validate.common");
+dojo.require("dojo.regexp");
+dojo.validate.isText=function(_1,_2){
+_2=(typeof _2=="object")?_2:{};
+if(/^\s*$/.test(_1)){
+return false;
+}
+if(typeof _2.length=="number"&&_2.length!=_1.length){
+return false;
+}
+if(typeof _2.minlength=="number"&&_2.minlength>_1.length){
+return false;
+}
+if(typeof _2.maxlength=="number"&&_2.maxlength<_1.length){
+return false;
+}
+return true;
+};
+dojo.validate.isInteger=function(_3,_4){
+var re=new RegExp("^"+dojo.regexp.integer(_4)+"$");
+return re.test(_3);
+};
+dojo.validate.isRealNumber=function(_6,_7){
+var re=new RegExp("^"+dojo.regexp.realNumber(_7)+"$");
+return re.test(_6);
+};
+dojo.validate.isCurrency=function(_9,_a){
+var re=new RegExp("^"+dojo.regexp.currency(_a)+"$");
+return re.test(_9);
+};
+dojo.validate._isInRangeCache={};
+dojo.validate.isInRange=function(_c,_d){
+_c=_c.replace(dojo.lang.has(_d,"separator")?_d.separator:",","","g").replace(dojo.lang.has(_d,"symbol")?_d.symbol:"$","");
+if(isNaN(_c)){
+return false;
+}
+_d=(typeof _d=="object")?_d:{};
+var _e=(typeof _d.max=="number")?_d.max:Infinity;
+var _f=(typeof _d.min=="number")?_d.min:-Infinity;
+var dec=(typeof _d.decimal=="string")?_d.decimal:".";
+var _11=dojo.validate._isInRangeCache;
+var _12=_c+"max"+_e+"min"+_f+"dec"+dec;
+if(typeof _11[_12]!="undefined"){
+return _11[_12];
+}
+var _13="[^"+dec+"\\deE+-]";
+_c=_c.replace(RegExp(_13,"g"),"");
+_c=_c.replace(/^([+-]?)(\D*)/,"$1");
+_c=_c.replace(/(\D*)$/,"");
+_13="(\\d)["+dec+"](\\d)";
+_c=_c.replace(RegExp(_13,"g"),"$1.$2");
+_c=Number(_c);
+if(_c<_f||_c>_e){
+_11[_12]=false;
+return false;
+}
+_11[_12]=true;
+return true;
+};
+dojo.validate.isNumberFormat=function(_14,_15){
+var re=new RegExp("^"+dojo.regexp.numberFormat(_15)+"$","i");
+return re.test(_14);
+};
+dojo.validate.isValidLuhn=function(_17){
+var sum,_19,_1a;
+if(typeof _17!="string"){
+_17=String(_17);
+}
+_17=_17.replace(/[- ]/g,"");
+_19=_17.length%2;
+sum=0;
+for(var i=0;i<_17.length;i++){
+_1a=parseInt(_17.charAt(i));
+if(i%2==_19){
+_1a*=2;
+}
+if(_1a>9){
+_1a-=9;
+}
+sum+=_1a;
+}
+return !(sum%10);
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/creditCard.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/creditCard.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/creditCard.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/creditCard.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,51 @@
+dojo.provide("dojo.validate.creditCard");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.validate.common");
+dojo.validate.isValidCreditCard=function(_1,_2){
+if(_1&&_2&&((_2.toLowerCase()=="er"||dojo.validate.isValidLuhn(_1))&&(dojo.validate.isValidCreditCardNumber(_1,_2.toLowerCase())))){
+return true;
+}
+return false;
+};
+dojo.validate.isValidCreditCardNumber=function(_3,_4){
+if(typeof _3!="string"){
+_3=String(_3);
+}
+_3=_3.replace(/[- ]/g,"");
+var _5=[];
+var _6={"mc":"5[1-5][0-9]{14}","ec":"5[1-5][0-9]{14}","vi":"4([0-9]{12}|[0-9]{15})","ax":"3[47][0-9]{13}","dc":"3(0[0-5][0-9]{11}|[68][0-9]{12})","bl":"3(0[0-5][0-9]{11}|[68][0-9]{12})","di":"6011[0-9]{12}","jcb":"(3[0-9]{15}|(2131|1800)[0-9]{11})","er":"2(014|149)[0-9]{11}"};
+if(_4&&dojo.lang.has(_6,_4.toLowerCase())){
+return Boolean(_3.match(_6[_4.toLowerCase()]));
+}else{
+for(var p in _6){
+if(_3.match("^"+_6[p]+"$")!=null){
+_5.push(p);
+}
+}
+return (_5.length)?_5.join("|"):false;
+}
+};
+dojo.validate.isValidCvv=function(_8,_9){
+if(typeof _8!="string"){
+_8=String(_8);
+}
+var _a;
+switch(_9.toLowerCase()){
+case "mc":
+case "ec":
+case "vi":
+case "di":
+_a="###";
+break;
+case "ax":
+_a="####";
+break;
+default:
+return false;
+}
+var _b={format:_a};
+if((_8.length==_a.length)&&(dojo.validate.isNumberFormat(_8,_b))){
+return true;
+}
+return false;
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/datetime.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/datetime.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/datetime.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/datetime.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,79 @@
+dojo.provide("dojo.validate.datetime");
+dojo.require("dojo.validate.common");
+dojo.validate.isValidTime=function(_1,_2){
+dojo.deprecated("dojo.validate.datetime","use dojo.date.parse instead","0.5");
+var re=new RegExp("^"+dojo.regexp.time(_2)+"$","i");
+return re.test(_1);
+};
+dojo.validate.is12HourTime=function(_4){
+dojo.deprecated("dojo.validate.datetime","use dojo.date.parse instead","0.5");
+return dojo.validate.isValidTime(_4,{format:["h:mm:ss t","h:mm t"]});
+};
+dojo.validate.is24HourTime=function(_5){
+dojo.deprecated("dojo.validate.datetime","use dojo.date.parse instead","0.5");
+return dojo.validate.isValidTime(_5,{format:["HH:mm:ss","HH:mm"]});
+};
+dojo.validate.isValidDate=function(_6,_7){
+dojo.deprecated("dojo.validate.datetime","use dojo.date.parse instead","0.5");
+if(typeof _7=="object"&&typeof _7.format=="string"){
+_7=_7.format;
+}
+if(typeof _7!="string"){
+_7="MM/DD/YYYY";
+}
+var _8=_7.replace(/([$^.*+?=!:|\/\\\(\)\[\]\{\}])/g,"\\$1");
+_8=_8.replace("YYYY","([0-9]{4})");
+_8=_8.replace("MM","(0[1-9]|10|11|12)");
+_8=_8.replace("M","([1-9]|10|11|12)");
+_8=_8.replace("DDD","(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])");
+_8=_8.replace("DD","(0[1-9]|[12][0-9]|30|31)");
+_8=_8.replace("D","([1-9]|[12][0-9]|30|31)");
+_8=_8.replace("ww","(0[1-9]|[1-4][0-9]|5[0-3])");
+_8=_8.replace("d","([1-7])");
+_8="^"+_8+"$";
+var re=new RegExp(_8);
+if(!re.test(_6)){
+return false;
+}
+var _a=0,_b=1,_c=1,_d=1,_e=1,_f=1;
+var _10=_7.match(/(YYYY|MM|M|DDD|DD|D|ww|d)/g);
+var _11=re.exec(_6);
+for(var i=0;i<_10.length;i++){
+switch(_10[i]){
+case "YYYY":
+_a=Number(_11[i+1]);
+break;
+case "M":
+case "MM":
+_b=Number(_11[i+1]);
+break;
+case "D":
+case "DD":
+_c=Number(_11[i+1]);
+break;
+case "DDD":
+_d=Number(_11[i+1]);
+break;
+case "ww":
+_e=Number(_11[i+1]);
+break;
+case "d":
+_f=Number(_11[i+1]);
+break;
+}
+}
+var _13=(_a%4==0&&(_a%100!=0||_a%400==0));
+if(_c==31&&(_b==4||_b==6||_b==9||_b==11)){
+return false;
+}
+if(_c>=30&&_b==2){
+return false;
+}
+if(_c==29&&_b==2&&!_13){
+return false;
+}
+if(_d==366&&!_13){
+return false;
+}
+return true;
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/de.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/de.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/de.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/de.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,6 @@
+dojo.provide("dojo.validate.de");
+dojo.require("dojo.validate.common");
+dojo.validate.isGermanCurrency=function(_1){
+var _2={symbol:"\u20ac",placement:"after",signPlacement:"begin",decimal:",",separator:"."};
+return dojo.validate.isCurrency(_1,_2);
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/jp.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/jp.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/jp.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/jp.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,6 @@
+dojo.provide("dojo.validate.jp");
+dojo.require("dojo.validate.common");
+dojo.validate.isJapaneseCurrency=function(_1){
+var _2={symbol:"\xa5",fractional:false};
+return dojo.validate.isCurrency(_1,_2);
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/us.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/us.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/us.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/us.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,21 @@
+dojo.provide("dojo.validate.us");
+dojo.require("dojo.validate.common");
+dojo.validate.us.isCurrency=function(_1,_2){
+return dojo.validate.isCurrency(_1,_2);
+};
+dojo.validate.us.isState=function(_3,_4){
+var re=new RegExp("^"+dojo.regexp.us.state(_4)+"$","i");
+return re.test(_3);
+};
+dojo.validate.us.isPhoneNumber=function(_6){
+var _7={format:["###-###-####","(###) ###-####","(###) ### ####","###.###.####","###/###-####","### ### ####","###-###-#### x#???","(###) ###-#### x#???","(###) ### #### x#???","###.###.#### x#???","###/###-#### x#???","### ### #### x#???","##########"]};
+return dojo.validate.isNumberFormat(_6,_7);
+};
+dojo.validate.us.isSocialSecurityNumber=function(_8){
+var _9={format:["###-##-####","### ## ####","#########"]};
+return dojo.validate.isNumberFormat(_8,_9);
+};
+dojo.validate.us.isZipCode=function(_a){
+var _b={format:["#####-####","##### ####","#########","#####"]};
+return dojo.validate.isNumberFormat(_a,_b);
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/web.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/web.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/web.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/validate/web.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,30 @@
+dojo.provide("dojo.validate.web");
+dojo.require("dojo.validate.common");
+dojo.validate.isIpAddress=function(_1,_2){
+var re=new RegExp("^"+dojo.regexp.ipAddress(_2)+"$","i");
+return re.test(_1);
+};
+dojo.validate.isUrl=function(_4,_5){
+var re=new RegExp("^"+dojo.regexp.url(_5)+"$","i");
+return re.test(_4);
+};
+dojo.validate.isEmailAddress=function(_7,_8){
+var re=new RegExp("^"+dojo.regexp.emailAddress(_8)+"$","i");
+return re.test(_7);
+};
+dojo.validate.isEmailAddressList=function(_a,_b){
+var re=new RegExp("^"+dojo.regexp.emailAddressList(_b)+"$","i");
+return re.test(_a);
+};
+dojo.validate.getEmailAddressList=function(_d,_e){
+if(!_e){
+_e={};
+}
+if(!_e.listSeparator){
+_e.listSeparator="\\s;,";
+}
+if(dojo.validate.isEmailAddressList(_d,_e)){
+return _d.split(new RegExp("\\s*["+_e.listSeparator+"]\\s*"));
+}
+return [];
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/AccordionContainer.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/AccordionContainer.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/AccordionContainer.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/AccordionContainer.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,115 @@
+dojo.provide("dojo.widget.AccordionContainer");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.html.*");
+dojo.require("dojo.lfx.html");
+dojo.require("dojo.html.selection");
+dojo.require("dojo.widget.html.layout");
+dojo.require("dojo.widget.PageContainer");
+dojo.widget.defineWidget("dojo.widget.AccordionContainer",dojo.widget.HtmlWidget,{isContainer:true,labelNodeClass:"label",containerNodeClass:"accBody",duration:250,fillInTemplate:function(){
+with(this.domNode.style){
+if(position!="absolute"){
+position="relative";
+}
+overflow="hidden";
+}
+},addChild:function(_1){
+var _2=this._addChild(_1);
+this._setSizes();
+return _2;
+},_addChild:function(_3){
+if(_3.open){
+dojo.deprecated("open parameter deprecated, use 'selected=true' instead will be removed in ","0.5");
+dojo.debug(_3.widgetId+": open == "+_3.open);
+_3.selected=true;
+}
+if(_3.widgetType!="AccordionPane"){
+var _4=dojo.widget.createWidget("AccordionPane",{label:_3.label,selected:_3.selected,labelNodeClass:this.labelNodeClass,containerNodeClass:this.containerNodeClass,allowCollapse:this.allowCollapse});
+_4.addChild(_3);
+this.addWidgetAsDirectChild(_4);
+this.registerChild(_4,this.children.length);
+return _4;
+}else{
+dojo.html.addClass(_3.containerNode,this.containerNodeClass);
+dojo.html.addClass(_3.labelNode,this.labelNodeClass);
+this.addWidgetAsDirectChild(_3);
+this.registerChild(_3,this.children.length);
+return _3;
+}
+},postCreate:function(){
+var _5=this.children;
+this.children=[];
+dojo.html.removeChildren(this.domNode);
+dojo.lang.forEach(_5,dojo.lang.hitch(this,"_addChild"));
+this._setSizes();
+},removeChild:function(_6){
+dojo.widget.AccordionContainer.superclass.removeChild.call(this,_6);
+this._setSizes();
+},onResized:function(){
+this._setSizes();
+},_setSizes:function(){
+var _7=0;
+var _8=0;
+dojo.lang.forEach(this.children,function(_9,_a){
+_7+=_9.getLabelHeight();
+if(_9.selected){
+_8=_a;
+}
+});
+var _b=dojo.html.getContentBox(this.domNode);
+var y=0;
+dojo.lang.forEach(this.children,function(_d,_e){
+var _f=_d.getLabelHeight();
+_d.resizeTo(_b.width,_b.height-_7+_f);
+_d.domNode.style.zIndex=_e+1;
+_d.domNode.style.position="absolute";
+_d.domNode.style.top=y+"px";
+y+=(_e==_8)?dojo.html.getBorderBox(_d.domNode).height:_f;
+});
+},selectChild:function(_10){
+dojo.lang.forEach(this.children,function(_11){
+_11.setSelected(_11==_10);
+});
+var y=0;
+var _13=[];
+dojo.lang.forEach(this.children,function(_14,idx){
+if(_14.domNode.style.top!=(y+"px")){
+_13.push(dojo.lfx.html.slideTo(_14.domNode,{top:y,left:0},this.duration));
+}
+y+=_14.selected?dojo.html.getBorderBox(_14.domNode).height:_14.getLabelHeight();
+},this);
+dojo.lfx.combine(_13).play();
+}});
+dojo.widget.defineWidget("dojo.widget.AccordionPane",dojo.widget.HtmlWidget,{label:"","class":"dojoAccordionPane",labelNodeClass:"label",containerNodeClass:"accBody",selected:false,templateString:"<div dojoAttachPoint=\"domNode\">\n<div dojoAttachPoint=\"labelNode\" dojoAttachEvent=\"onclick: onLabelClick\" class=\"${this.labelNodeClass}\">${this.label}</div>\n<div dojoAttachPoint=\"containerNode\" style=\"overflow: hidden;\" class=\"${this.containerNodeClass}\"></div>\n</div>\n",templateCssString:".dojoAccordionPane .label {\n\tcolor: #000;\n\tfont-weight: bold;\n\tbackground: url(\"images/soriaAccordionOff.gif\") repeat-x top left #85aeec;\n\tborder:1px solid #d9d9d9;\n\tfont-size:0.9em;\n}\n\n.dojoAccordionPane-selected .label {\n\tbackground: url(\"images/soriaAccordionSelected.gif\") repeat-x top left #85aeec;\n\tborder:1px solid #84a3d1;\n}\n\n.dojoAccordionPane .label:hover {\n\tcursor: pointer;\n}\n\n.dojoAccordionPane .accBody {\n\tbackground: #fff;\n\toverflow: aut
 o;\n\tborder:1px solid #84a3d1;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/AccordionPane.css"),isContainer:true,fillInTemplate:function(){
+dojo.html.addClass(this.domNode,this["class"]);
+dojo.widget.AccordionPane.superclass.fillInTemplate.call(this);
+dojo.html.disableSelection(this.labelNode);
+this.setSelected(this.selected);
+},setLabel:function(_16){
+this.labelNode.innerHTML=_16;
+},resizeTo:function(_17,_18){
+dojo.html.setMarginBox(this.domNode,{width:_17,height:_18});
+var _19=[{domNode:this.labelNode,layoutAlign:"top"},{domNode:this.containerNode,layoutAlign:"client"}];
+dojo.widget.html.layout(this.domNode,_19);
+var _1a=dojo.html.getContentBox(this.containerNode);
+this.children[0].resizeTo(_1a.width,_1a.height);
+},getLabelHeight:function(){
+return dojo.html.getMarginBox(this.labelNode).height;
+},onLabelClick:function(){
+this.parent.selectChild(this);
+},setSelected:function(_1b){
+this.selected=_1b;
+(_1b?dojo.html.addClass:dojo.html.removeClass)(this.domNode,this["class"]+"-selected");
+var _1c=this.children[0];
+if(_1c){
+if(_1b){
+if(!_1c.isShowing()){
+_1c.show();
+}else{
+_1c.onShow();
+}
+}else{
+_1c.onHide();
+}
+}
+}});
+dojo.lang.extend(dojo.widget.Widget,{open:false});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/AnimatedPng.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/AnimatedPng.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/AnimatedPng.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/AnimatedPng.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,34 @@
+dojo.provide("dojo.widget.AnimatedPng");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.widget.defineWidget("dojo.widget.AnimatedPng",dojo.widget.HtmlWidget,{isContainer:false,width:0,height:0,aniSrc:"",interval:100,_blankSrc:dojo.uri.moduleUri("dojo.widget","templates/images/blank.gif"),templateString:"<img class=\"dojoAnimatedPng\" />",postCreate:function(){
+this.cellWidth=this.width;
+this.cellHeight=this.height;
+var _1=new Image();
+var _2=this;
+_1.onload=function(){
+_2._initAni(_1.width,_1.height);
+};
+_1.src=this.aniSrc;
+},_initAni:function(w,h){
+this.domNode.src=this._blankSrc;
+this.domNode.width=this.cellWidth;
+this.domNode.height=this.cellHeight;
+this.domNode.style.backgroundImage="url("+this.aniSrc+")";
+this.domNode.style.backgroundRepeat="no-repeat";
+this.aniCols=Math.floor(w/this.cellWidth);
+this.aniRows=Math.floor(h/this.cellHeight);
+this.aniCells=this.aniCols*this.aniRows;
+this.aniFrame=0;
+window.setInterval(dojo.lang.hitch(this,"_tick"),this.interval);
+},_tick:function(){
+this.aniFrame++;
+if(this.aniFrame==this.aniCells){
+this.aniFrame=0;
+}
+var _5=this.aniFrame%this.aniCols;
+var _6=Math.floor(this.aniFrame/this.aniCols);
+var bx=-1*_5*this.cellWidth;
+var by=-1*_6*this.cellHeight;
+this.domNode.style.backgroundPosition=bx+"px "+by+"px";
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Button.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Button.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Button.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Button.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,246 @@
+dojo.provide("dojo.widget.Button");
+dojo.require("dojo.lang.extras");
+dojo.require("dojo.html.*");
+dojo.require("dojo.html.selection");
+dojo.require("dojo.widget.*");
+dojo.widget.defineWidget("dojo.widget.Button",dojo.widget.HtmlWidget,{isContainer:true,caption:"",templateString:"<div dojoAttachPoint=\"buttonNode\" class=\"dojoButton\" style=\"position:relative;\" dojoAttachEvent=\"onMouseOver; onMouseOut; onMouseDown; onMouseUp; onClick:buttonClick; onKey:onKey; onFocus;\">\n  <div class=\"dojoButtonContents\" align=center dojoAttachPoint=\"containerNode\" style=\"position:absolute;z-index:2;\"></div>\n  <img dojoAttachPoint=\"leftImage\" style=\"position:absolute;left:0px;\">\n  <img dojoAttachPoint=\"centerImage\" style=\"position:absolute;z-index:1;\">\n  <img dojoAttachPoint=\"rightImage\" style=\"position:absolute;top:0px;right:0px;\">\n</div>\n",templateCssString:"/* ---- button --- */\n.dojoButton {\n\tpadding: 0 0 0 0;\n\tfont-size: 8pt;\n\twhite-space: nowrap;\n\tcursor: pointer;\n\tfont-family: Myriad, Tahoma, Verdana, sans-serif;\n}\n\n.dojoButton .dojoButtonContents {\n\tpadding: 2px 2px 2px 2px;\n\ttext-align: center;\t\t/* 
 if icon and label are split across two lines, center icon */\n\tcolor: white;\n}\n\n.dojoButtonLeftPart .dojoButtonContents {\n\tpadding-right: 8px;\n}\n\n.dojoButtonDisabled {\n\tcursor: url(\"images/no.gif\"), default;\n}\n\n\n.dojoButtonContents img {\n\tvertical-align: middle;\t/* if icon and label are on same line, center them */\n}\n\n/* -------- colors ------------ */\n\n.dojoButtonHover .dojoButtonContents {\n}\n\n.dojoButtonDepressed .dojoButtonContents {\n\tcolor: #293a4b;\n}\n\n.dojoButtonDisabled .dojoButtonContents {\n\tcolor: #aaa;\n}\n\n\n/* ---------- drop down button specific ---------- */\n\n/* border between label and arrow (for drop down buttons */\n.dojoButton .border {\n\twidth: 1px;\n\tbackground: gray;\n}\n\n/* button arrow */\n.dojoButton .downArrow {\n\tpadding-left: 10px;\n\ttext-align: center;\n}\n\n.dojoButton.disabled .downArrow {\n\tcursor : default;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/ButtonTemplate.css"),inactive
 Img:"templates/images/soriaButton-",activeImg:"templates/images/soriaActive-",pressedImg:"templates/images/soriaPressed-",disabledImg:"templates/images/soriaDisabled-",width2height:1/3,fillInTemplate:function(){
+if(this.caption){
+this.containerNode.appendChild(document.createTextNode(this.caption));
+}
+dojo.html.disableSelection(this.containerNode);
+},postCreate:function(){
+this._sizeMyself();
+},_sizeMyself:function(){
+if(this.domNode.parentNode){
+var _1=document.createElement("span");
+dojo.html.insertBefore(_1,this.domNode);
+}
+dojo.body().appendChild(this.domNode);
+this._sizeMyselfHelper();
+if(_1){
+dojo.html.insertBefore(this.domNode,_1);
+dojo.html.removeNode(_1);
+}
+},_sizeMyselfHelper:function(){
+var mb=dojo.html.getMarginBox(this.containerNode);
+this.height=mb.height;
+this.containerWidth=mb.width;
+var _3=this.height*this.width2height;
+this.containerNode.style.left=_3+"px";
+this.leftImage.height=this.rightImage.height=this.centerImage.height=this.height;
+this.leftImage.width=this.rightImage.width=_3+1;
+this.centerImage.width=this.containerWidth;
+this.centerImage.style.left=_3+"px";
+this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
+if(this.disabled){
+dojo.html.prependClass(this.domNode,"dojoButtonDisabled");
+this.domNode.removeAttribute("tabIndex");
+dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
+}else{
+dojo.html.removeClass(this.domNode,"dojoButtonDisabled");
+this.domNode.setAttribute("tabIndex","0");
+dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
+}
+this.domNode.style.height=this.height+"px";
+this.domNode.style.width=(this.containerWidth+2*_3)+"px";
+},onMouseOver:function(e){
+if(this.disabled){
+return;
+}
+if(!dojo.html.hasClass(this.buttonNode,"dojoButtonHover")){
+dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
+}
+this._setImage(this.activeImg);
+},onMouseDown:function(e){
+if(this.disabled){
+return;
+}
+dojo.html.prependClass(this.buttonNode,"dojoButtonDepressed");
+dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
+this._setImage(this.pressedImg);
+},onMouseUp:function(e){
+if(this.disabled){
+return;
+}
+dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
+dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");
+this._setImage(this.activeImg);
+},onMouseOut:function(e){
+if(this.disabled){
+return;
+}
+if(e.toElement&&dojo.html.isDescendantOf(e.toElement,this.buttonNode)){
+return;
+}
+dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
+dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");
+this._setImage(this.inactiveImg);
+},onKey:function(e){
+if(!e.key){
+return;
+}
+var _9=dojo.widget.getWidgetById(this.menuId);
+if(e.key==e.KEY_ENTER||e.key==" "){
+this.onMouseDown(e);
+this.buttonClick(e);
+dojo.lang.setTimeout(this,"onMouseUp",75,e);
+dojo.event.browser.stopEvent(e);
+}
+if(_9&&_9.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
+dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
+}
+},onFocus:function(e){
+var _b=dojo.widget.getWidgetById(this.menuId);
+if(_b){
+dojo.event.connectOnce(this.domNode,"onblur",this,"onBlur");
+}
+},onBlur:function(e){
+var _d=dojo.widget.getWidgetById(this.menuId);
+if(!_d){
+return;
+}
+if(_d.close&&_d.isShowingNow){
+_d.close();
+}
+},buttonClick:function(e){
+if(!this.disabled){
+try{
+this.domNode.focus();
+}
+catch(e2){
+}
+this.onClick(e);
+}
+},onClick:function(e){
+},_setImage:function(_10){
+this.leftImage.src=dojo.uri.moduleUri("dojo.widget",_10+"l.gif");
+this.centerImage.src=dojo.uri.moduleUri("dojo.widget",_10+"c.gif");
+this.rightImage.src=dojo.uri.moduleUri("dojo.widget",_10+"r.gif");
+},_toggleMenu:function(_11){
+var _12=dojo.widget.getWidgetById(_11);
+if(!_12){
+return;
+}
+if(_12.open&&!_12.isShowingNow){
+var pos=dojo.html.getAbsolutePosition(this.domNode,false);
+_12.open(pos.x,pos.y+this.height,this);
+dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
+}else{
+if(_12.close&&_12.isShowingNow){
+_12.close();
+}else{
+_12.toggle();
+}
+}
+},setCaption:function(_14){
+this.caption=_14;
+this.containerNode.innerHTML=_14;
+this._sizeMyself();
+},setDisabled:function(_15){
+this.disabled=_15;
+this._sizeMyself();
+}});
+dojo.widget.defineWidget("dojo.widget.DropDownButton",dojo.widget.Button,{menuId:"",downArrow:"templates/images/whiteDownArrow.gif",disabledDownArrow:"templates/images/whiteDownArrow.gif",fillInTemplate:function(){
+dojo.widget.DropDownButton.superclass.fillInTemplate.apply(this,arguments);
+this.arrow=document.createElement("img");
+dojo.html.setClass(this.arrow,"downArrow");
+dojo.widget.wai.setAttr(this.domNode,"waiState","haspopup",this.menuId);
+},_sizeMyselfHelper:function(){
+this.arrow.src=dojo.uri.moduleUri("dojo.widget",this.disabled?this.disabledDownArrow:this.downArrow);
+this.containerNode.appendChild(this.arrow);
+dojo.widget.DropDownButton.superclass._sizeMyselfHelper.call(this);
+},onClick:function(e){
+this._toggleMenu(this.menuId);
+}});
+dojo.widget.defineWidget("dojo.widget.ComboButton",dojo.widget.Button,{menuId:"",templateString:"<div class=\"dojoButton\" style=\"position:relative;top:0px;left:0px; text-align:none;\" dojoAttachEvent=\"onKey;onFocus\">\n\n\t<div dojoAttachPoint=\"buttonNode\" class=\"dojoButtonLeftPart\" style=\"position:absolute;left:0px;top:0px;\"\n\t\tdojoAttachEvent=\"onMouseOver; onMouseOut; onMouseDown; onMouseUp; onClick:buttonClick;\">\n\t\t<div class=\"dojoButtonContents\" dojoAttachPoint=\"containerNode\" style=\"position:absolute;top:0px;right:0px;z-index:2;\"></div>\n\t\t<img dojoAttachPoint=\"leftImage\" style=\"position:absolute;left:0px;top:0px;\">\n\t\t<img dojoAttachPoint=\"centerImage\" style=\"position:absolute;right:0px;top:0px;z-index:1;\">\n\t</div>\n\n\t<div dojoAttachPoint=\"rightPart\" class=\"dojoButtonRightPart\" style=\"position:absolute;top:0px;right:0px;\"\n\t\tdojoAttachEvent=\"onMouseOver:rightOver; onMouseOut:rightOut; onMouseDown:rightDown; onMouseUp:right
 Up; onClick:rightClick;\">\n\t\t<img dojoAttachPoint=\"arrowBackgroundImage\" style=\"position:absolute;top:0px;left:0px;z-index:1;\">\n\t\t<img src=\"${dojoWidgetModuleUri}templates/images/whiteDownArrow.gif\"\n\t\t  \t\tstyle=\"z-index:2;position:absolute;left:3px;top:50%;\">\n\t\t<img dojoAttachPoint=\"rightImage\" style=\"position:absolute;top:0px;right:0px;\">\n\t</div>\n\n</div>\n",splitWidth:2,arrowWidth:5,_sizeMyselfHelper:function(e){
+var mb=dojo.html.getMarginBox(this.containerNode);
+this.height=mb.height;
+this.containerWidth=mb.width;
+var _19=this.height/3;
+if(this.disabled){
+dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
+this.domNode.removeAttribute("tabIndex");
+}else{
+dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
+this.domNode.setAttribute("tabIndex","0");
+}
+this.leftImage.height=this.rightImage.height=this.centerImage.height=this.arrowBackgroundImage.height=this.height;
+this.leftImage.width=_19+1;
+this.centerImage.width=this.containerWidth;
+this.buttonNode.style.height=this.height+"px";
+this.buttonNode.style.width=_19+this.containerWidth+"px";
+this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
+this.arrowBackgroundImage.width=this.arrowWidth;
+this.rightImage.width=_19+1;
+this.rightPart.style.height=this.height+"px";
+this.rightPart.style.width=this.arrowWidth+_19+"px";
+this._setImageR(this.disabled?this.disabledImg:this.inactiveImg);
+this.domNode.style.height=this.height+"px";
+var _1a=this.containerWidth+this.splitWidth+this.arrowWidth+2*_19;
+this.domNode.style.width=_1a+"px";
+},_setImage:function(_1b){
+this.leftImage.src=dojo.uri.moduleUri("dojo.widget",_1b+"l.gif");
+this.centerImage.src=dojo.uri.moduleUri("dojo.widget",_1b+"c.gif");
+},rightOver:function(e){
+if(this.disabled){
+return;
+}
+dojo.html.prependClass(this.rightPart,"dojoButtonHover");
+this._setImageR(this.activeImg);
+},rightDown:function(e){
+if(this.disabled){
+return;
+}
+dojo.html.prependClass(this.rightPart,"dojoButtonDepressed");
+dojo.html.removeClass(this.rightPart,"dojoButtonHover");
+this._setImageR(this.pressedImg);
+},rightUp:function(e){
+if(this.disabled){
+return;
+}
+dojo.html.prependClass(this.rightPart,"dojoButtonHover");
+dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");
+this._setImageR(this.activeImg);
+},rightOut:function(e){
+if(this.disabled){
+return;
+}
+dojo.html.removeClass(this.rightPart,"dojoButtonHover");
+dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");
+this._setImageR(this.inactiveImg);
+},rightClick:function(e){
+if(this.disabled){
+return;
+}
+try{
+this.domNode.focus();
+}
+catch(e2){
+}
+this._toggleMenu(this.menuId);
+},_setImageR:function(_21){
+this.arrowBackgroundImage.src=dojo.uri.moduleUri("dojo.widget",_21+"c.gif");
+this.rightImage.src=dojo.uri.moduleUri("dojo.widget",_21+"r.gif");
+},onKey:function(e){
+if(!e.key){
+return;
+}
+var _23=dojo.widget.getWidgetById(this.menuId);
+if(e.key==e.KEY_ENTER||e.key==" "){
+this.onMouseDown(e);
+this.buttonClick(e);
+dojo.lang.setTimeout(this,"onMouseUp",75,e);
+dojo.event.browser.stopEvent(e);
+}else{
+if(e.key==e.KEY_DOWN_ARROW&&e.altKey){
+this.rightDown(e);
+this.rightClick(e);
+dojo.lang.setTimeout(this,"rightUp",75,e);
+dojo.event.browser.stopEvent(e);
+}else{
+if(_23&&_23.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
+dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
+}
+}
+}
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Chart.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Chart.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Chart.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Chart.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,220 @@
+dojo.provide("dojo.widget.Chart");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.gfx.color");
+dojo.require("dojo.gfx.color.hsl");
+dojo.declare("dojo.widget.Chart",null,function(){
+this.series=[];
+},{isContainer:false,assignColors:function(){
+var _1=30;
+var _2=120;
+var _3=120;
+var _4=Math.round(330/this.series.length);
+for(var i=0;i<this.series.length;i++){
+var c=dojo.gfx.color.hsl2rgb(_1,_2,_3);
+if(!this.series[i].color){
+this.series[i].color=dojo.gfx.color.rgb2hex(c[0],c[1],c[2]);
+}
+_1+=_4;
+}
+},parseData:function(_7){
+var _8=_7.getElementsByTagName("thead")[0];
+var _9=_7.getElementsByTagName("tbody")[0];
+if(!(_8&&_9)){
+dojo.raise("dojo.widget.Chart: supplied table must define a head and a body.");
+}
+var _a=_8.getElementsByTagName("tr")[0].getElementsByTagName("th");
+for(var i=1;i<_a.length;i++){
+var _c="column"+i;
+var _d=_a[i].innerHTML;
+var _e=_a[i].getAttribute("plotType")||"line";
+var _f=_a[i].getAttribute("color");
+var ds=new dojo.widget.Chart.DataSeries(_c,_d,_e,_f);
+this.series.push(ds);
+}
+var _11=_9.rows;
+var _12=Number.MAX_VALUE,_13=Number.MIN_VALUE;
+var _14=Number.MAX_VALUE,_15=Number.MIN_VALUE;
+var _16=["accesskey","align","bgcolor","class","colspan","height","id","nowrap","rowspan","style","tabindex","title","valign","width"];
+for(var i=0;i<_11.length;i++){
+var row=_11[i];
+var _18=row.cells;
+var x=Number.MIN_VALUE;
+for(var j=0;j<_18.length;j++){
+if(j==0){
+x=parseFloat(_18[j].innerHTML);
+_12=Math.min(_12,x);
+_13=Math.max(_13,x);
+}else{
+var ds=this.series[j-1];
+var y=parseFloat(_18[j].innerHTML);
+_14=Math.min(_14,y);
+_15=Math.max(_15,y);
+var o={x:x,value:y};
+var _1d=_18[j].attributes;
+for(var k=0;k<_1d.length;k++){
+var _1f=_1d.item(k);
+var _20=false;
+for(var l=0;l<_16.length;l++){
+if(_1f.nodeName.toLowerCase()==_16[l]){
+_20=true;
+break;
+}
+}
+if(!_20){
+o[_1f.nodeName]=_1f.nodeValue;
+}
+}
+ds.add(o);
+}
+}
+}
+return {x:{min:_12,max:_13},y:{min:_14,max:_15}};
+}});
+dojo.declare("dojo.widget.Chart.DataSeries",null,function(key,_23,_24,_25){
+this.id="DataSeries"+dojo.widget.Chart.DataSeries.count++;
+this.key=key;
+this.label=_23||this.id;
+this.plotType=_24||"line";
+this.color=_25;
+this.values=[];
+},{add:function(v){
+if(v.x==null||v.value==null){
+dojo.raise("dojo.widget.Chart.DataSeries.add: v must have both an 'x' and 'value' property.");
+}
+this.values.push(v);
+},clear:function(){
+this.values=[];
+},createRange:function(len){
+var idx=this.values.length-1;
+var _29=(len||this.values.length);
+return {"index":idx,"length":_29,"start":Math.max(idx-_29,0)};
+},getMean:function(len){
+var _2b=this.createRange(len);
+if(_2b.index<0){
+return 0;
+}
+var t=0;
+var c=0;
+for(var i=_2b.index;i>=_2b.start;i--){
+var n=parseFloat(this.values[i].value);
+if(!isNaN(n)){
+t+=n;
+c++;
+}
+}
+t/=Math.max(c,1);
+return t;
+},getMovingAverage:function(len){
+var _31=this.createRange(len);
+if(_31.index<0){
+return 0;
+}
+var t=0;
+var c=0;
+for(var i=_31.index;i>=_31.start;i--){
+var n=parseFloat(this.values[i].value);
+if(!isNaN(n)){
+t+=n;
+c++;
+}
+}
+t/=Math.max(c,1);
+return t;
+},getVariance:function(len){
+var _37=this.createRange(len);
+if(_37.index<0){
+return 0;
+}
+var t=0;
+var s=0;
+var c=0;
+for(var i=_37.index;i>=_37.start;i--){
+var n=parseFloat(this.values[i].value);
+if(!isNaN(n)){
+t+=n;
+s+=Math.pow(n,2);
+c++;
+}
+}
+return (s/c)-Math.pow(t/c,2);
+},getStandardDeviation:function(len){
+return Math.sqrt(this.getVariance(len));
+},getMax:function(len){
+var _3f=this.createRange(len);
+if(_3f.index<0){
+return 0;
+}
+var t=0;
+for(var i=_3f.index;i>=_3f.start;i--){
+var n=parseFloat(this.values[i].value);
+if(!isNaN(n)){
+t=Math.max(n,t);
+}
+}
+return t;
+},getMin:function(len){
+var _44=this.createRange(len);
+if(_44.index<0){
+return 0;
+}
+var t=0;
+for(var i=_44.index;i>=_44.start;i--){
+var n=parseFloat(this.values[i].value);
+if(!isNaN(n)){
+t=Math.min(n,t);
+}
+}
+return t;
+},getMedian:function(len){
+var _49=this.createRange(len);
+if(_49.index<0){
+return 0;
+}
+var a=[];
+for(var i=_49.index;i>=_49.start;i--){
+var n=parseFloat(this.values[i].value);
+if(!isNaN(n)){
+var b=false;
+for(var j=0;j<a.length&&!b;j++){
+if(n==a[j]){
+b=true;
+}
+}
+if(!b){
+a.push(n);
+}
+}
+}
+a.sort();
+if(a.length>0){
+return a[Math.ceil(a.length/2)];
+}
+return 0;
+},getMode:function(len){
+var _50=this.createRange(len);
+if(_50.index<0){
+return 0;
+}
+var o={};
+var ret=0;
+var m=0;
+for(var i=_50.index;i>=_50.start;i--){
+var n=parseFloat(this.values[i].value);
+if(!isNaN(n)){
+if(!o[this.values[i].value]){
+o[this.values[i].value]=1;
+}else{
+o[this.values[i].value]++;
+}
+}
+}
+for(var p in o){
+if(m<o[p]){
+m=o[p];
+ret=p;
+}
+}
+return parseFloat(ret);
+}});
+dojo.requireIf(dojo.render.svg.capable,"dojo.widget.svg.Chart");
+dojo.requireIf(!dojo.render.svg.capable&&dojo.render.vml.capable,"dojo.widget.vml.Chart");

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Checkbox.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Checkbox.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Checkbox.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Checkbox.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,90 @@
+dojo.provide("dojo.widget.Checkbox");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.event.*");
+dojo.require("dojo.html.style");
+dojo.require("dojo.html.selection");
+dojo.widget.defineWidget("dojo.widget.Checkbox",dojo.widget.HtmlWidget,{templateString:"<span style=\"display: inline-block;\" tabIndex=\"${this.tabIndex}\" waiRole=\"checkbox\" id=\"${this.id}\">\n\t<img dojoAttachPoint=\"imageNode\" class=\"dojoHtmlCheckbox\" src=\"${dojoWidgetModuleUri}templates/images/blank.gif\" alt=\"\" />\n\t<input type=\"checkbox\" name=\"${this.name}\" style=\"display: none\" value=\"${this.value}\"\n\t\tdojoAttachPoint=\"inputNode\">\n</span>\n",templateCssString:".dojoHtmlCheckbox {\n\tborder: 0px;\n\twidth: 16px;\n\theight: 16px;\n\tmargin: 2px;\n\tvertical-align: middle;\n}\n\n.dojoHtmlCheckboxOn {\n\tbackground: url(check.gif) 0px 0px;\n}\n.dojoHtmlCheckboxOff {\n\tbackground: url(check.gif) -16px 0px;\n}\n.dojoHtmlCheckboxDisabledOn {\n\tbackground: url(check.gif) -32px 0px;\n}\n.dojoHtmlCheckboxDisabledOff {\n\tbackground: url(check.gif) -48px 0px;\n}\n.dojoHtmlCheckboxOnHover {\n\tbackground: url(check.gif) -64px 0px;\n}\n.dojoHtmlCheckboxOf
 fHover {\n\tbackground: url(check.gif) -80px 0px;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/Checkbox.css"),name:"",id:"",checked:false,tabIndex:"",value:"on",postMixInProperties:function(){
+dojo.widget.Checkbox.superclass.postMixInProperties.apply(this,arguments);
+if(!this.disabled&&this.tabIndex==""){
+this.tabIndex="0";
+}
+},fillInTemplate:function(){
+this._setInfo();
+},postCreate:function(){
+var _1=true;
+this.id=this.id!=""?this.id:this.widgetId;
+if(this.id!=""){
+var _2=document.getElementsByTagName("label");
+if(_2!=null&&_2.length>0){
+for(var i=0;i<_2.length;i++){
+if(_2[i].htmlFor==this.id){
+_2[i].id=(_2[i].htmlFor+"label");
+this._connectEvents(_2[i]);
+dojo.widget.wai.setAttr(this.domNode,"waiState","labelledby",_2[i].id);
+break;
+}
+}
+}
+}
+this._connectEvents(this.domNode);
+this.inputNode.checked=this.checked;
+},_connectEvents:function(_4){
+dojo.event.connect(_4,"onmouseover",this,"mouseOver");
+dojo.event.connect(_4,"onmouseout",this,"mouseOut");
+dojo.event.connect(_4,"onkey",this,"onKey");
+dojo.event.connect(_4,"onclick",this,"_onClick");
+dojo.html.disableSelection(_4);
+},_onClick:function(e){
+if(this.disabled==false){
+this.checked=!this.checked;
+this._setInfo();
+}
+e.preventDefault();
+e.stopPropagation();
+this.onClick();
+},setValue:function(_6){
+if(this.disabled==false){
+this.checked=_6;
+this._setInfo();
+}
+},onClick:function(){
+},onKey:function(e){
+var k=dojo.event.browser.keys;
+if(e.key==" "){
+this._onClick(e);
+}
+},mouseOver:function(e){
+this._hover(e,true);
+},mouseOut:function(e){
+this._hover(e,false);
+},_hover:function(e,_c){
+if(this.disabled==false){
+var _d=this.checked?"On":"Off";
+var _e="dojoHtmlCheckbox"+_d+"Hover";
+if(_c){
+dojo.html.addClass(this.imageNode,_e);
+}else{
+dojo.html.removeClass(this.imageNode,_e);
+}
+}
+},_setInfo:function(){
+var _f="dojoHtmlCheckbox"+(this.disabled?"Disabled":"")+(this.checked?"On":"Off");
+dojo.html.setClass(this.imageNode,"dojoHtmlCheckbox "+_f);
+this.inputNode.checked=this.checked;
+if(this.disabled){
+this.inputNode.setAttribute("disabled",true);
+}else{
+this.inputNode.removeAttribute("disabled");
+}
+dojo.widget.wai.setAttr(this.domNode,"waiState","checked",this.checked);
+}});
+dojo.widget.defineWidget("dojo.widget.a11y.Checkbox",dojo.widget.Checkbox,{templateString:"<span class='dojoHtmlCheckbox'>\n\t<input type=\"checkbox\" name=\"${this.name}\" tabIndex=\"${this.tabIndex}\" id=\"${this.id}\" value=\"${this.value}\"\n\t\t dojoAttachEvent=\"onClick: _onClick;\" dojoAttachPoint=\"inputNode\"> \n</span>\n",fillInTemplate:function(){
+},postCreate:function(_10,_11){
+this.inputNode.checked=this.checked;
+if(this.disabled){
+this.inputNode.setAttribute("disabled",true);
+}
+},_onClick:function(){
+this.onClick();
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Clock.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Clock.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Clock.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Clock.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,129 @@
+dojo.provide("dojo.widget.Clock");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.gfx.*");
+dojo.require("dojo.uri.Uri");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.lang.timing.Timer");
+dojo.widget.defineWidget("dojo.widget.Clock",dojo.widget.HtmlWidget,function(){
+var _1=this;
+this.timeZoneOffset=0;
+this.label="";
+this.date=new Date();
+this.handColor="#788598";
+this.handStroke="#6f7b8c";
+this.secondHandColor=[201,4,5,0.8];
+this.topLabelColor="#efefef";
+this.labelColor="#fff";
+this.timer=new dojo.lang.timing.Timer(1000);
+this.center={x:75,y:75};
+this.hands={hour:null,minute:null,second:null};
+this.shadows={hour:{shadow:null,shift:{dx:2,dy:2}},minute:{shadow:null,shift:{dx:2,dy:3}},second:{shadow:null,shift:{dx:4,dy:4}}};
+this.image=dojo.uri.moduleUri("dojo.widget","templates/images/clock.png");
+this.surface=null;
+this.labelNode=null;
+this.topLabelNode=null;
+this.draw=function(){
+_1.date=new Date();
+var h=(_1.date.getHours()+_1.timeZoneOffset)%12;
+var m=_1.date.getMinutes();
+var s=_1.date.getSeconds();
+_1.placeHour(h,m,s);
+_1.placeMinute(m,s);
+_1.placeSecond(s);
+_1.topLabelNode.innerHTML=((_1.date.getHours()+_1.timeZoneOffset)>11)?"PM":"AM";
+};
+this.timer.onTick=_1.draw;
+},{set:function(dt){
+this.date=dt;
+if(!this.timer.isRunning){
+this.draw();
+}
+},start:function(){
+this.timer.start();
+},stop:function(){
+this.timer.stop();
+},_initPoly:function(_6,_7){
+var _8=_6.createPath();
+var _9=true;
+dojo.lang.forEach(_7,function(c){
+if(_9){
+_8.moveTo(c.x,c.y);
+_9=false;
+}else{
+_8.lineTo(c.x,c.y);
+}
+});
+return _8;
+},_placeHand:function(_b,_c,_d){
+var _e={dx:this.center.x+(_d?_d.dx:0),dy:this.center.y+(_d?_d.dy:0)};
+return _b.setTransform([_e,dojo.gfx.matrix.rotateg(-_c)]);
+},placeHour:function(h,m,s){
+var _12=30*(h+m/60+s/3600);
+this._placeHand(this.hands.hour,_12);
+this._placeHand(this.shadows.hour.shadow,_12,this.shadows.hour.shift);
+},placeMinute:function(m,s){
+var _15=6*(m+s/60);
+this._placeHand(this.hands.minute,_15);
+this._placeHand(this.shadows.minute.shadow,_15,this.shadows.minute.shift);
+},placeSecond:function(s){
+var _17=6*s;
+this._placeHand(this.hands.second,_17);
+this._placeHand(this.shadows.second.shadow,_17,this.shadows.second.shift);
+},init:function(){
+if(this.domNode.style.position!="absolute"){
+this.domNode.style.position="relative";
+}
+while(this.domNode.childNodes.length>0){
+this.domNode.removeChild(this.domNode.childNodes[0]);
+}
+this.domNode.style.width="150px";
+this.domNode.style.height="150px";
+this.surface=dojo.gfx.createSurface(this.domNode,150,150);
+this.surface.createRect({width:150,height:150});
+this.surface.createImage({width:150,height:150,src:this.image+""});
+var hP=[{x:-3,y:-4},{x:3,y:-4},{x:1,y:-27},{x:-1,y:-27},{x:-3,y:-4}];
+var mP=[{x:-3,y:-4},{x:3,y:-4},{x:1,y:-38},{x:-1,y:-38},{x:-3,y:-4}];
+var sP=[{x:-2,y:-2},{x:2,y:-2},{x:1,y:-45},{x:-1,y:-45},{x:-2,y:-2}];
+this.shadows.hour.shadow=this._initPoly(this.surface,hP).setFill([0,0,0,0.1]);
+this.hands.hour=this._initPoly(this.surface,hP).setStroke({color:this.handStroke,width:1}).setFill({type:"linear",x1:0,y1:0,x2:0,y2:-27,colors:[{offset:0,color:"#fff"},{offset:0.33,color:this.handColor}]});
+this.shadows.minute.shadow=this._initPoly(this.surface,mP).setFill([0,0,0,0.1]);
+this.hands.minute=this._initPoly(this.surface,mP).setStroke({color:this.handStroke,width:1}).setFill({type:"linear",x1:0,y1:0,x2:0,y2:-38,colors:[{offset:0,color:"#fff"},{offset:0.33,color:this.handColor}]});
+this.surface.createCircle({r:6}).setStroke({color:this.handStroke,width:2}).setFill("#fff").setTransform({dx:75,dy:75});
+this.shadows.second.shadow=this._initPoly(this.surface,sP).setFill([0,0,0,0.1]);
+this.hands.second=this._initPoly(this.surface,sP).setFill(this.secondHandColor);
+this.surface.createCircle({r:4}).setFill(this.secondHandColor).setTransform({dx:75,dy:75});
+this.topLabelNode=document.createElement("div");
+with(this.topLabelNode.style){
+position="absolute";
+top="3px";
+left="0px";
+color=this.topLabelColor;
+textAlign="center";
+width="150px";
+fontFamily="sans-serif";
+fontSize="11px";
+textTransform="uppercase";
+fontWeight="bold";
+}
+this.topLabelNode.innerHTML=((this.date.getHours()+this.timeZoneOffset)>11)?"PM":"AM";
+this.domNode.appendChild(this.topLabelNode);
+this.labelNode=document.createElement("div");
+with(this.labelNode.style){
+position="absolute";
+top="134px";
+left="0px";
+color=this.labelColor;
+textAlign="center";
+width="150px";
+fontFamily="sans-serif";
+fontSize="10px";
+textTransform="uppercase";
+fontWeight="bold";
+}
+this.labelNode.innerHTML=this.label||"&nbsp;";
+this.domNode.appendChild(this.labelNode);
+this.draw();
+},postCreate:function(){
+this.init();
+this.start();
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ColorPalette.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ColorPalette.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ColorPalette.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ColorPalette.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,47 @@
+dojo.provide("dojo.widget.ColorPalette");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.html.layout");
+dojo.require("dojo.html.display");
+dojo.require("dojo.html.selection");
+dojo.widget.defineWidget("dojo.widget.ColorPalette",dojo.widget.HtmlWidget,{palette:"7x10",_palettes:{"7x10":[["fff","fcc","fc9","ff9","ffc","9f9","9ff","cff","ccf","fcf"],["ccc","f66","f96","ff6","ff3","6f9","3ff","6ff","99f","f9f"],["c0c0c0","f00","f90","fc6","ff0","3f3","6cc","3cf","66c","c6c"],["999","c00","f60","fc3","fc0","3c0","0cc","36f","63f","c3c"],["666","900","c60","c93","990","090","399","33f","60c","939"],["333","600","930","963","660","060","366","009","339","636"],["000","300","630","633","330","030","033","006","309","303"]],"3x4":[["ffffff","00ff00","008000","0000ff"],["c0c0c0","ffff00","ff00ff","000080"],["808080","ff0000","800080","000000"]]},buildRendering:function(){
+this.domNode=document.createElement("table");
+dojo.html.disableSelection(this.domNode);
+dojo.event.connect(this.domNode,"onmousedown",function(e){
+e.preventDefault();
+});
+with(this.domNode){
+cellPadding="0";
+cellSpacing="1";
+border="1";
+style.backgroundColor="white";
+}
+var _2=this._palettes[this.palette];
+for(var i=0;i<_2.length;i++){
+var tr=this.domNode.insertRow(-1);
+for(var j=0;j<_2[i].length;j++){
+if(_2[i][j].length==3){
+_2[i][j]=_2[i][j].replace(/(.)(.)(.)/,"$1$1$2$2$3$3");
+}
+var td=tr.insertCell(-1);
+with(td.style){
+backgroundColor="#"+_2[i][j];
+border="1px solid gray";
+width=height="15px";
+fontSize="1px";
+}
+td.color="#"+_2[i][j];
+td.onmouseover=function(e){
+this.style.borderColor="white";
+};
+td.onmouseout=function(e){
+this.style.borderColor="gray";
+};
+dojo.event.connect(td,"onmousedown",this,"onClick");
+td.innerHTML="&nbsp;";
+}
+}
+},onClick:function(e){
+this.onColorSelect(e.currentTarget.color);
+e.currentTarget.style.borderColor="gray";
+},onColorSelect:function(_a){
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ComboBox.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ComboBox.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ComboBox.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ComboBox.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,545 @@
+dojo.provide("dojo.widget.ComboBox");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.event.*");
+dojo.require("dojo.io.*");
+dojo.require("dojo.html.*");
+dojo.require("dojo.string");
+dojo.require("dojo.widget.html.stabile");
+dojo.require("dojo.widget.PopupContainer");
+dojo.declare("dojo.widget.incrementalComboBoxDataProvider",null,function(_1){
+this.searchUrl=_1.dataUrl;
+this._cache={};
+this._inFlight=false;
+this._lastRequest=null;
+this.allowCache=false;
+},{_addToCache:function(_2,_3){
+if(this.allowCache){
+this._cache[_2]=_3;
+}
+},startSearch:function(_4,_5){
+if(this._inFlight){
+}
+var _6=encodeURIComponent(_4);
+var _7=dojo.string.substituteParams(this.searchUrl,{"searchString":_6});
+var _8=this;
+var _9=this._lastRequest=dojo.io.bind({url:_7,method:"get",mimetype:"text/json",load:function(_a,_b,_c){
+_8._inFlight=false;
+if(!dojo.lang.isArray(_b)){
+var _d=[];
+for(var _e in _b){
+_d.push([_b[_e],_e]);
+}
+_b=_d;
+}
+_8._addToCache(_4,_b);
+if(_9==_8._lastRequest){
+_5(_b);
+}
+}});
+this._inFlight=true;
+}});
+dojo.declare("dojo.widget.basicComboBoxDataProvider",null,function(_f,_10){
+this._data=[];
+this.searchLimit=30;
+this.searchType="STARTSTRING";
+this.caseSensitive=false;
+if(!dj_undef("dataUrl",_f)&&!dojo.string.isBlank(_f.dataUrl)){
+this._getData(_f.dataUrl);
+}else{
+if((_10)&&(_10.nodeName.toLowerCase()=="select")){
+var _11=_10.getElementsByTagName("option");
+var ol=_11.length;
+var _13=[];
+for(var x=0;x<ol;x++){
+var _15=_11[x].textContent||_11[x].innerText||_11[x].innerHTML;
+var _16=[String(_15),String(_11[x].value)];
+_13.push(_16);
+if(_11[x].selected){
+_f.setAllValues(_16[0],_16[1]);
+}
+}
+this.setData(_13);
+}
+}
+},{_getData:function(url){
+dojo.io.bind({url:url,load:dojo.lang.hitch(this,function(_18,_19,evt){
+if(!dojo.lang.isArray(_19)){
+var _1b=[];
+for(var key in _19){
+_1b.push([_19[key],key]);
+}
+_19=_1b;
+}
+this.setData(_19);
+}),mimetype:"text/json"});
+},startSearch:function(_1d,_1e){
+this._performSearch(_1d,_1e);
+},_performSearch:function(_1f,_20){
+var st=this.searchType;
+var ret=[];
+if(!this.caseSensitive){
+_1f=_1f.toLowerCase();
+}
+for(var x=0;x<this._data.length;x++){
+if((this.searchLimit>0)&&(ret.length>=this.searchLimit)){
+break;
+}
+var _24=new String((!this.caseSensitive)?this._data[x][0].toLowerCase():this._data[x][0]);
+if(_24.length<_1f.length){
+continue;
+}
+if(st=="STARTSTRING"){
+if(_1f==_24.substr(0,_1f.length)){
+ret.push(this._data[x]);
+}
+}else{
+if(st=="SUBSTRING"){
+if(_24.indexOf(_1f)>=0){
+ret.push(this._data[x]);
+}
+}else{
+if(st=="STARTWORD"){
+var idx=_24.indexOf(_1f);
+if(idx==0){
+ret.push(this._data[x]);
+}
+if(idx<=0){
+continue;
+}
+var _26=false;
+while(idx!=-1){
+if(" ,/(".indexOf(_24.charAt(idx-1))!=-1){
+_26=true;
+break;
+}
+idx=_24.indexOf(_1f,idx+1);
+}
+if(!_26){
+continue;
+}else{
+ret.push(this._data[x]);
+}
+}
+}
+}
+}
+_20(ret);
+},setData:function(_27){
+this._data=_27;
+}});
+dojo.widget.defineWidget("dojo.widget.ComboBox",dojo.widget.HtmlWidget,{forceValidOption:false,searchType:"stringstart",dataProvider:null,autoComplete:true,searchDelay:100,dataUrl:"",fadeTime:200,maxListLength:8,mode:"local",selectedResult:null,dataProviderClass:"",buttonSrc:dojo.uri.moduleUri("dojo.widget","templates/images/combo_box_arrow.png"),dropdownToggle:"fade",templateString:"<span _=\"whitespace and CR's between tags adds &nbsp; in FF\"\n\tclass=\"dojoComboBoxOuter\"\n\t><input style=\"display:none\"  tabindex=\"-1\" name=\"\" value=\"\" \n\t\tdojoAttachPoint=\"comboBoxValue\"\n\t><input style=\"display:none\"  tabindex=\"-1\" name=\"\" value=\"\" \n\t\tdojoAttachPoint=\"comboBoxSelectionValue\"\n\t><input type=\"text\" autocomplete=\"off\" class=\"dojoComboBox\"\n\t\tdojoAttachEvent=\"key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize;\"\n\t\tdojoAttachPoint=\"textInputNode\"\n\t><img hspace=\"0\"\n\t\tvspace=\"0\"\n\t\tclass=\"dojoComboBox\"\n\t\tdojoA
 ttachPoint=\"downArrowNode\"\n\t\tdojoAttachEvent=\"onMouseUp: handleArrowClick; onResize;\"\n\t\tsrc=\"${this.buttonSrc}\"\n></span>\n",templateCssString:".dojoComboBoxOuter {\n\tborder: 0px !important;\n\tmargin: 0px !important;\n\tpadding: 0px !important;\n\tbackground: transparent !important;\n\twhite-space: nowrap !important;\n}\n\n.dojoComboBox {\n\tborder: 1px inset #afafaf;\n\tmargin: 0px;\n\tpadding: 0px;\n\tvertical-align: middle !important;\n\tfloat: none !important;\n\tposition: static !important;\n\tdisplay: inline !important;\n}\n\n/* the input box */\ninput.dojoComboBox {\n\tborder-right-width: 0px !important; \n\tmargin-right: 0px !important;\n\tpadding-right: 0px !important;\n}\n\n/* the down arrow */\nimg.dojoComboBox {\n\tborder-left-width: 0px !important;\n\tpadding-left: 0px !important;\n\tmargin-left: 0px !important;\n}\n\n/* IE vertical-alignment calculations can be off by +-1 but these margins are collapsed away */\n.dj_ie img.dojoComboBox {\n\tmargin
 -top: 1px; \n\tmargin-bottom: 1px; \n}\n\n/* the drop down */\n.dojoComboBoxOptions {\n\tfont-family: Verdana, Helvetica, Garamond, sans-serif;\n\t/* font-size: 0.7em; */\n\tbackground-color: white;\n\tborder: 1px solid #afafaf;\n\tposition: absolute;\n\tz-index: 1000; \n\toverflow: auto;\n\tcursor: default;\n}\n\n.dojoComboBoxItem {\n\tpadding-left: 2px;\n\tpadding-top: 2px;\n\tmargin: 0px;\n}\n\n.dojoComboBoxItemEven {\n\tbackground-color: #f4f4f4;\n}\n\n.dojoComboBoxItemOdd {\n\tbackground-color: white;\n}\n\n.dojoComboBoxItemHighlight {\n\tbackground-color: #63709A;\n\tcolor: white;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/ComboBox.css"),setValue:function(_28){
+this.comboBoxValue.value=_28;
+if(this.textInputNode.value!=_28){
+this.textInputNode.value=_28;
+dojo.widget.html.stabile.setState(this.widgetId,this.getState(),true);
+this.onValueChanged(_28);
+}
+},onValueChanged:function(_29){
+},getValue:function(){
+return this.comboBoxValue.value;
+},getState:function(){
+return {value:this.getValue()};
+},setState:function(_2a){
+this.setValue(_2a.value);
+},enable:function(){
+this.disabled=false;
+this.textInputNode.removeAttribute("disabled");
+},disable:function(){
+this.disabled=true;
+this.textInputNode.setAttribute("disabled",true);
+},_getCaretPos:function(_2b){
+if(dojo.lang.isNumber(_2b.selectionStart)){
+return _2b.selectionStart;
+}else{
+if(dojo.render.html.ie){
+var tr=document.selection.createRange().duplicate();
+var ntr=_2b.createTextRange();
+tr.move("character",0);
+ntr.move("character",0);
+try{
+ntr.setEndPoint("EndToEnd",tr);
+return String(ntr.text).replace(/\r/g,"").length;
+}
+catch(e){
+return 0;
+}
+}
+}
+},_setCaretPos:function(_2e,_2f){
+_2f=parseInt(_2f);
+this._setSelectedRange(_2e,_2f,_2f);
+},_setSelectedRange:function(_30,_31,end){
+if(!end){
+end=_30.value.length;
+}
+if(_30.setSelectionRange){
+_30.focus();
+_30.setSelectionRange(_31,end);
+}else{
+if(_30.createTextRange){
+var _33=_30.createTextRange();
+with(_33){
+collapse(true);
+moveEnd("character",end);
+moveStart("character",_31);
+select();
+}
+}else{
+_30.value=_30.value;
+_30.blur();
+_30.focus();
+var _34=parseInt(_30.value.length)-end;
+var _35=String.fromCharCode(37);
+var tcc=_35.charCodeAt(0);
+for(var x=0;x<_34;x++){
+var te=document.createEvent("KeyEvents");
+te.initKeyEvent("keypress",true,true,null,false,false,false,false,tcc,tcc);
+_30.dispatchEvent(te);
+}
+}
+}
+},_handleKeyEvents:function(evt){
+if(evt.ctrlKey||evt.altKey||!evt.key){
+return;
+}
+this._prev_key_backspace=false;
+this._prev_key_esc=false;
+var k=dojo.event.browser.keys;
+var _3b=true;
+switch(evt.key){
+case k.KEY_DOWN_ARROW:
+if(!this.popupWidget.isShowingNow){
+this._startSearchFromInput();
+}
+this._highlightNextOption();
+dojo.event.browser.stopEvent(evt);
+return;
+case k.KEY_UP_ARROW:
+this._highlightPrevOption();
+dojo.event.browser.stopEvent(evt);
+return;
+case k.KEY_TAB:
+if(!this.autoComplete&&this.popupWidget.isShowingNow&&this._highlighted_option){
+dojo.event.browser.stopEvent(evt);
+this._selectOption({"target":this._highlighted_option,"noHide":false});
+this._setSelectedRange(this.textInputNode,this.textInputNode.value.length,null);
+}else{
+this._selectOption();
+return;
+}
+break;
+case k.KEY_ENTER:
+if(this.popupWidget.isShowingNow){
+dojo.event.browser.stopEvent(evt);
+}
+if(this.autoComplete){
+this._selectOption();
+return;
+}
+case " ":
+if(this.popupWidget.isShowingNow&&this._highlighted_option){
+dojo.event.browser.stopEvent(evt);
+this._selectOption();
+this._hideResultList();
+return;
+}
+break;
+case k.KEY_ESCAPE:
+this._hideResultList();
+this._prev_key_esc=true;
+return;
+case k.KEY_BACKSPACE:
+this._prev_key_backspace=true;
+if(!this.textInputNode.value.length){
+this.setAllValues("","");
+this._hideResultList();
+_3b=false;
+}
+break;
+case k.KEY_RIGHT_ARROW:
+case k.KEY_LEFT_ARROW:
+_3b=false;
+break;
+default:
+if(evt.charCode==0){
+_3b=false;
+}
+}
+if(this.searchTimer){
+clearTimeout(this.searchTimer);
+}
+if(_3b){
+this._blurOptionNode();
+this.searchTimer=setTimeout(dojo.lang.hitch(this,this._startSearchFromInput),this.searchDelay);
+}
+},compositionEnd:function(evt){
+evt.key=evt.keyCode;
+this._handleKeyEvents(evt);
+},onKeyUp:function(evt){
+this.setValue(this.textInputNode.value);
+},setSelectedValue:function(_3e){
+this.comboBoxSelectionValue.value=_3e;
+},setAllValues:function(_3f,_40){
+this.setSelectedValue(_40);
+this.setValue(_3f);
+},_focusOptionNode:function(_41){
+if(this._highlighted_option!=_41){
+this._blurOptionNode();
+this._highlighted_option=_41;
+dojo.html.addClass(this._highlighted_option,"dojoComboBoxItemHighlight");
+}
+},_blurOptionNode:function(){
+if(this._highlighted_option){
+dojo.html.removeClass(this._highlighted_option,"dojoComboBoxItemHighlight");
+this._highlighted_option=null;
+}
+},_highlightNextOption:function(){
+if((!this._highlighted_option)||!this._highlighted_option.parentNode){
+this._focusOptionNode(this.optionsListNode.firstChild);
+}else{
+if(this._highlighted_option.nextSibling){
+this._focusOptionNode(this._highlighted_option.nextSibling);
+}
+}
+dojo.html.scrollIntoView(this._highlighted_option);
+},_highlightPrevOption:function(){
+if(this._highlighted_option&&this._highlighted_option.previousSibling){
+this._focusOptionNode(this._highlighted_option.previousSibling);
+}else{
+this._highlighted_option=null;
+this._hideResultList();
+return;
+}
+dojo.html.scrollIntoView(this._highlighted_option);
+},_itemMouseOver:function(evt){
+if(evt.target===this.optionsListNode){
+return;
+}
+this._focusOptionNode(evt.target);
+dojo.html.addClass(this._highlighted_option,"dojoComboBoxItemHighlight");
+},_itemMouseOut:function(evt){
+if(evt.target===this.optionsListNode){
+return;
+}
+this._blurOptionNode();
+},onResize:function(){
+var _44=dojo.html.getContentBox(this.textInputNode);
+if(_44.height<=0){
+dojo.lang.setTimeout(this,"onResize",100);
+return;
+}
+var _45={width:_44.height,height:_44.height};
+dojo.html.setContentBox(this.downArrowNode,_45);
+},fillInTemplate:function(_46,_47){
+dojo.html.applyBrowserClass(this.domNode);
+var _48=this.getFragNodeRef(_47);
+if(!this.name&&_48.name){
+this.name=_48.name;
+}
+this.comboBoxValue.name=this.name;
+this.comboBoxSelectionValue.name=this.name+"_selected";
+dojo.html.copyStyle(this.domNode,_48);
+dojo.html.copyStyle(this.textInputNode,_48);
+dojo.html.copyStyle(this.downArrowNode,_48);
+with(this.downArrowNode.style){
+width="0px";
+height="0px";
+}
+var _49;
+if(this.dataProviderClass){
+if(typeof this.dataProviderClass=="string"){
+_49=dojo.evalObjPath(this.dataProviderClass);
+}else{
+_49=this.dataProviderClass;
+}
+}else{
+if(this.mode=="remote"){
+_49=dojo.widget.incrementalComboBoxDataProvider;
+}else{
+_49=dojo.widget.basicComboBoxDataProvider;
+}
+}
+this.dataProvider=new _49(this,this.getFragNodeRef(_47));
+this.popupWidget=new dojo.widget.createWidget("PopupContainer",{toggle:this.dropdownToggle,toggleDuration:this.toggleDuration});
+dojo.event.connect(this,"destroy",this.popupWidget,"destroy");
+this.optionsListNode=this.popupWidget.domNode;
+this.domNode.appendChild(this.optionsListNode);
+dojo.html.addClass(this.optionsListNode,"dojoComboBoxOptions");
+dojo.event.connect(this.optionsListNode,"onclick",this,"_selectOption");
+dojo.event.connect(this.optionsListNode,"onmouseover",this,"_onMouseOver");
+dojo.event.connect(this.optionsListNode,"onmouseout",this,"_onMouseOut");
+dojo.event.connect(this.optionsListNode,"onmouseover",this,"_itemMouseOver");
+dojo.event.connect(this.optionsListNode,"onmouseout",this,"_itemMouseOut");
+},_openResultList:function(_4a){
+if(this.disabled){
+return;
+}
+this._clearResultList();
+if(!_4a.length){
+this._hideResultList();
+}
+if((this.autoComplete)&&(_4a.length)&&(!this._prev_key_backspace)&&(this.textInputNode.value.length>0)){
+var _4b=this._getCaretPos(this.textInputNode);
+if((_4b+1)>this.textInputNode.value.length){
+this.textInputNode.value+=_4a[0][0].substr(_4b);
+this._setSelectedRange(this.textInputNode,_4b,this.textInputNode.value.length);
+}
+}
+var _4c=true;
+while(_4a.length){
+var tr=_4a.shift();
+if(tr){
+var td=document.createElement("div");
+td.appendChild(document.createTextNode(tr[0]));
+td.setAttribute("resultName",tr[0]);
+td.setAttribute("resultValue",tr[1]);
+td.className="dojoComboBoxItem "+((_4c)?"dojoComboBoxItemEven":"dojoComboBoxItemOdd");
+_4c=(!_4c);
+this.optionsListNode.appendChild(td);
+}
+}
+this._showResultList();
+},_onFocusInput:function(){
+this._hasFocus=true;
+},_onBlurInput:function(){
+this._hasFocus=false;
+this._handleBlurTimer(true,500);
+},_handleBlurTimer:function(_4f,_50){
+if(this.blurTimer&&(_4f||_50)){
+clearTimeout(this.blurTimer);
+}
+if(_50){
+this.blurTimer=dojo.lang.setTimeout(this,"_checkBlurred",_50);
+}
+},_onMouseOver:function(evt){
+if(!this._mouseover_list){
+this._handleBlurTimer(true,0);
+this._mouseover_list=true;
+}
+},_onMouseOut:function(evt){
+var _53=evt.relatedTarget;
+try{
+if(!_53||_53.parentNode!=this.optionsListNode){
+this._mouseover_list=false;
+this._handleBlurTimer(true,100);
+this._tryFocus();
+}
+}
+catch(e){
+}
+},_isInputEqualToResult:function(_54){
+var _55=this.textInputNode.value;
+if(!this.dataProvider.caseSensitive){
+_55=_55.toLowerCase();
+_54=_54.toLowerCase();
+}
+return (_55==_54);
+},_isValidOption:function(){
+var tgt=dojo.html.firstElement(this.optionsListNode);
+var _57=false;
+while(!_57&&tgt){
+if(this._isInputEqualToResult(tgt.getAttribute("resultName"))){
+_57=true;
+}else{
+tgt=dojo.html.nextElement(tgt);
+}
+}
+return _57;
+},_checkBlurred:function(){
+if(!this._hasFocus&&!this._mouseover_list){
+this._hideResultList();
+if(!this.textInputNode.value.length){
+this.setAllValues("","");
+return;
+}
+var _58=this._isValidOption();
+if(this.forceValidOption&&!_58){
+this.setAllValues("","");
+return;
+}
+if(!_58){
+this.setSelectedValue("");
+}
+}
+},_selectOption:function(evt){
+var tgt=null;
+if(!evt){
+evt={target:this._highlighted_option};
+}
+if(!dojo.html.isDescendantOf(evt.target,this.optionsListNode)){
+if(!this.textInputNode.value.length){
+return;
+}
+tgt=dojo.html.firstElement(this.optionsListNode);
+if(!tgt||!this._isInputEqualToResult(tgt.getAttribute("resultName"))){
+return;
+}
+}else{
+tgt=evt.target;
+}
+while((tgt.nodeType!=1)||(!tgt.getAttribute("resultName"))){
+tgt=tgt.parentNode;
+if(tgt===dojo.body()){
+return false;
+}
+}
+this.selectedResult=[tgt.getAttribute("resultName"),tgt.getAttribute("resultValue")];
+this.setAllValues(tgt.getAttribute("resultName"),tgt.getAttribute("resultValue"));
+if(!evt.noHide){
+this._hideResultList();
+this._setSelectedRange(this.textInputNode,0,null);
+}
+this._tryFocus();
+},_clearResultList:function(){
+if(this.optionsListNode.innerHTML){
+this.optionsListNode.innerHTML="";
+}
+},_hideResultList:function(){
+this.popupWidget.close();
+},_showResultList:function(){
+var _5b=this.optionsListNode.childNodes;
+if(_5b.length){
+var _5c=Math.min(_5b.length,this.maxListLength);
+with(this.optionsListNode.style){
+display="";
+if(_5c==_5b.length){
+height="";
+}else{
+height=_5c*dojo.html.getMarginBox(_5b[0]).height+"px";
+}
+width=(dojo.html.getMarginBox(this.domNode).width-2)+"px";
+}
+this.popupWidget.open(this.domNode,this,this.downArrowNode);
+}else{
+this._hideResultList();
+}
+},handleArrowClick:function(){
+this._handleBlurTimer(true,0);
+this._tryFocus();
+if(this.popupWidget.isShowingNow){
+this._hideResultList();
+}else{
+this._startSearch("");
+}
+},_tryFocus:function(){
+try{
+this.textInputNode.focus();
+}
+catch(e){
+}
+},_startSearchFromInput:function(){
+this._startSearch(this.textInputNode.value);
+},_startSearch:function(key){
+this.dataProvider.startSearch(key,dojo.lang.hitch(this,"_openResultList"));
+},postCreate:function(){
+this.onResize();
+dojo.event.connect(this.textInputNode,"onblur",this,"_onBlurInput");
+dojo.event.connect(this.textInputNode,"onfocus",this,"_onFocusInput");
+if(this.disabled){
+this.disable();
+}
+var s=dojo.widget.html.stabile.getState(this.widgetId);
+if(s){
+this.setState(s);
+}
+}});

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

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

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



Mime
View raw message