http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/jsonPathStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/jsonPathStore.js b/components/camel-web/src/main/webapp/js/dojox/data/jsonPathStore.js deleted file mode 100644 index 3e53f14..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/jsonPathStore.js +++ /dev/null @@ -1,672 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.data.jsonPathStore"]){ -dojo._hasResource["dojox.data.jsonPathStore"]=true; -dojo.provide("dojox.data.jsonPathStore"); -dojo.require("dojox.jsonPath"); -dojo.require("dojo.date"); -dojo.require("dojo.date.locale"); -dojo.require("dojo.date.stamp"); -dojox.data.ASYNC_MODE=0; -dojox.data.SYNC_MODE=1; -dojo.declare("dojox.data.jsonPathStore",null,{mode:dojox.data.ASYNC_MODE,metaLabel:"_meta",hideMetaAttributes:false,autoIdPrefix:"_auto_",autoIdentity:true,idAttribute:"_id",indexOnLoad:true,labelAttribute:"",url:"",_replaceRegex:/\'\]/gi,noRevert:false,constructor:function(_1){ -this.byId=this.fetchItemByIdentity; -if(_1){ -dojo.mixin(this,_1); -} -this._dirtyItems=[]; -this._autoId=0; -this._referenceId=0; -this._references={}; -this._fetchQueue=[]; -this.index={}; -var _2="("+this.metaLabel+"'])"; -this.metaRegex=new RegExp(_2); -if(!this.data&&!this.url){ -this.setData({}); -} -if(this.data&&!this.url){ -this.setData(this.data); -delete this.data; -} -if(this.url){ -dojo.xhrGet({url:_1.url,handleAs:"json",load:dojo.hitch(this,"setData"),sync:this.mode}); -} -},_loadData:function(_3){ -if(this._data){ -delete this._data; -} -if(dojo.isString(_3)){ -this._data=dojo.fromJson(_3); -}else{ -this._data=_3; -} -if(this.indexOnLoad){ -this.buildIndex(); -} -this._updateMeta(this._data,{path:"$"}); -this.onLoadData(this._data); -},onLoadData:function(_4){ -while(this._fetchQueue.length>0){ -var _5=this._fetchQueue.shift(); -this.fetch(_5); -} -},setData:function(_6){ -this._loadData(_6); -},buildIndex:function(_7,_8){ -if(!this.idAttribute){ -throw new Error("buildIndex requires idAttribute for the store"); -} -_8=_8||this._data; -var _9=_7; -_7=_7||"$"; -_7+="[*]"; -var _a=this.fetch({query:_7,mode:dojox.data.SYNC_MODE}); -for(var i=0;i<_a.length;i++){ -var _c,_d; -if(dojo.isObject(_a[i])){ -var _e=_a[i][this.metaLabel]["path"]; -if(_9){ -_c=_9.split("['"); -_d=_c[_c.length-1].replace(this._replaceRegex,""); -if(!dojo.isArray(_a[i])){ -this._addReference(_a[i],{parent:_8,attribute:_d}); -this.buildIndex(_e,_a[i]); -}else{ -this.buildIndex(_e,_8); -} -}else{ -_c=_e.split("['"); -_d=_c[_c.length-1].replace(this._replaceRegex,""); -this._addReference(_a[i],{parent:this._data,attribute:_d}); -this.buildIndex(_e,_a[i]); -} -} -} -},_correctReference:function(_f){ -if(this.index[_f[this.idAttribute]]&&(this.index[_f[this.idAttribute]][this.metaLabel]===_f[this.metaLabel])){ -return this.index[_f[this.idAttribute]]; -} -return _f; -},getValue:function(_10,_11){ -_10=this._correctReference(_10); -return _10[_11]; -},getValues:function(_12,_13){ -_12=this._correctReference(_12); -return dojo.isArray(_12[_13])?_12[_13]:[_12[_13]]; -},getAttributes:function(_14){ -_14=this._correctReference(_14); -var res=[]; -for(var i in _14){ -if(this.hideMetaAttributes&&(i==this.metaLabel)){ -continue; -} -res.push(i); -} -return res; -},hasAttribute:function(_17,_18){ -_17=this._correctReference(_17); -if(_18 in _17){ -return true; -} -return false; -},containsValue:function(_19,_1a,_1b){ -_19=this._correctReference(_19); -if(_19[_1a]&&_19[_1a]==_1b){ -return true; -} -if(dojo.isObject(_19[_1a])||dojo.isObject(_1b)){ -if(this._shallowCompare(_19[_1a],_1b)){ -return true; -} -} -return false; -},_shallowCompare:function(a,b){ -if((dojo.isObject(a)&&!dojo.isObject(b))||(dojo.isObject(b)&&!dojo.isObject(a))){ -return false; -} -if(a["getFullYear"]||b["getFullYear"]){ -if((a["getFullYear"]&&!b["getFullYear"])||(b["getFullYear"]&&!a["getFullYear"])){ -return false; -}else{ -if(!dojo.date.compare(a,b)){ -return true; -} -return false; -} -} -for(var i in b){ -if(dojo.isObject(b[i])){ -if(!a[i]||!dojo.isObject(a[i])){ -return false; -} -if(b[i]["getFullYear"]){ -if(!a[i]["getFullYear"]){ -return false; -} -if(dojo.date.compare(a,b)){ -return false; -} -}else{ -if(!this._shallowCompare(a[i],b[i])){ -return false; -} -} -}else{ -if(!b[i]||(a[i]!=b[i])){ -return false; -} -} -} -for(i in a){ -if(!b[i]){ -return false; -} -} -return true; -},isItem:function(_1f){ -if(!dojo.isObject(_1f)||!_1f[this.metaLabel]){ -return false; -} -if(this.requireId&&this._hasId&&!_1f[this._id]){ -return false; -} -return true; -},isItemLoaded:function(_20){ -_20=this._correctReference(_20); -return this.isItem(_20); -},loadItem:function(_21){ -return true; -},_updateMeta:function(_22,_23){ -if(_22&&_22[this.metaLabel]){ -dojo.mixin(_22[this.metaLabel],_23); -return; -} -_22[this.metaLabel]=_23; -},cleanMeta:function(_24,_25){ -_24=_24||this._data; -if(_24[this.metaLabel]){ -if(_24[this.metaLabel].autoId){ -delete _24[this.idAttribute]; -} -delete _24[this.metaLabel]; -} -if(dojo.isArray(_24)){ -for(var i=0;i<_24.length;i++){ -if(dojo.isObject(_24[i])||dojo.isArray(_24[i])){ -this.cleanMeta(_24[i]); -} -} -}else{ -if(dojo.isObject(_24)){ -for(i in _24){ -if(dojo.isObject(_24[i])){ -this.cleanMeta(_24[i]); -} -} -} -} -},fetch:function(_27){ -if(!this._data){ -this._fetchQueue.push(_27); -return _27; -} -if(dojo.isString(_27)){ -_28=_27; -_27={query:_28,mode:dojox.data.SYNC_MODE}; -} -var _28; -if(!_27||!_27.query){ -if(!_27){ -var _27={}; -} -if(!_27.query){ -_27.query="$..*"; -_28=_27.query; -} -} -if(dojo.isObject(_27.query)){ -if(_27.query.query){ -_28=_27.query.query; -}else{ -_28=_27.query="$..*"; -} -if(_27.query.queryOptions){ -_27.queryOptions=_27.query.queryOptions; -} -}else{ -_28=_27.query; -} -if(!_27.mode){ -_27.mode=this.mode; -} -if(!_27.queryOptions){ -_27.queryOptions={}; -} -_27.queryOptions.resultType="BOTH"; -var _29=dojox.jsonPath.query(this._data,_28,_27.queryOptions); -var tmp=[]; -var _2b=0; -for(var i=0;i<_29.length;i++){ -if(_27.start&&i<_27.start){ -continue; -} -if(_27.count&&(_2b>=_27.count)){ -continue; -} -var _2d=_29[i]["value"]; -var _2e=_29[i]["path"]; -if(!dojo.isObject(_2d)){ -continue; -} -if(this.metaRegex.exec(_2e)){ -continue; -} -this._updateMeta(_2d,{path:_29[i].path}); -if(this.autoIdentity&&!_2d[this.idAttribute]){ -var _2f=this.autoIdPrefix+this._autoId++; -_2d[this.idAttribute]=_2f; -_2d[this.metaLabel].autoId=true; -} -if(_2d[this.idAttribute]){ -this.index[_2d[this.idAttribute]]=_2d; -} -_2b++; -tmp.push(_2d); -} -_29=tmp; -var _30=_27.scope||dojo.global; -if("sort" in _27){ - -} -if(_27.mode==dojox.data.SYNC_MODE){ -return _29; -} -if(_27.onBegin){ -_27["onBegin"].call(_30,_29.length,_27); -} -if(_27.onItem){ -for(var i=0;i<_29.length;i++){ -_27["onItem"].call(_30,_29[i],_27); -} -} -if(_27.onComplete){ -_27["onComplete"].call(_30,_29,_27); -} -return _27; -},dump:function(_31){ -var _31=_31||{}; -var d=_31.data||this._data; -if(!_31.suppressExportMeta&&_31.clone){ -_33=dojo.clone(d); -if(_33[this.metaLabel]){ -_33[this.metaLabel]["clone"]=true; -} -}else{ -var _33=d; -} -if(!_31.suppressExportMeta&&_33[this.metaLabel]){ -_33[this.metaLabel]["last_export"]=new Date().toString(); -} -if(_31.cleanMeta){ -this.cleanMeta(_33); -} -switch(_31.type){ -case "raw": -return _33; -case "json": -default: -return dojo.toJson(_33,_31.pretty||false); -} -},getFeatures:function(){ -return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true,"dojo.data.api.Write":true,"dojo.data.api.Notification":true}; -},getLabel:function(_34){ -_34=this._correctReference(_34); -var _35=""; -if(dojo.isFunction(this.createLabel)){ -return this.createLabel(_34); -} -if(this.labelAttribute){ -if(dojo.isArray(this.labelAttribute)){ -for(var i=0;i<this.labelAttribute.length;i++){ -if(i>0){ -_35+=" "; -} -_35+=_34[this.labelAttribute[i]]; -} -return _35; -}else{ -return _34[this.labelAttribute]; -} -} -return _34.toString(); -},getLabelAttributes:function(_37){ -_37=this._correctReference(_37); -return dojo.isArray(this.labelAttribute)?this.labelAttribute:[this.labelAttribute]; -},sort:function(a,b){ - -},getIdentity:function(_3a){ -if(this.isItem(_3a)){ -return _3a[this.idAttribute]; -} -throw new Error("Id not found for item"); -},getIdentityAttributes:function(_3b){ -return [this.idAttribute]; -},fetchItemByIdentity:function(_3c){ -var id; -if(dojo.isString(_3c)){ -id=_3c; -_3c={identity:id,mode:dojox.data.SYNC_MODE}; -}else{ -if(_3c){ -id=_3c["identity"]; -} -if(!_3c.mode){ -_3c.mode=this.mode; -} -} -if(this.index&&(this.index[id]||this.index["identity"])){ -if(_3c.mode==dojox.data.SYNC_MODE){ -return this.index[id]; -} -if(_3c.onItem){ -_3c["onItem"].call(_3c.scope||dojo.global,this.index[id],_3c); -} -return _3c; -}else{ -if(_3c.mode==dojox.data.SYNC_MODE){ -return false; -} -} -if(_3c.onError){ -_3c["onItem"].call(_3c.scope||dojo.global,new Error("Item Not Found: "+id),_3c); -} -return _3c; -},_makeItAnItem:function(_3e,_3f){ -var _40={}; -if(this.idAttribute&&!_3e[this.idAttribute]){ -if(this.requireId){ -throw new Error("requireId is enabled, new items must have an id defined to be added"); -} -if(this.autoIdentity){ -var _41=this.autoIdPrefix+this._autoId++; -_3e[this.idAttribute]=_41; -_40.autoId=true; -} -} -if(!_3f&&!_3f.attribute&&!this.idAttribute&&!_3e[this.idAttribute]){ -throw new Error("Adding a new item requires, at a minimum, either the pInfo information, including the pInfo.attribute, or an id on the item in the field identified by idAttribute"); -} -if(!_3f.attribute){ -_3f.attribute=_3e[this.idAttribute]; -} -if(_3e[this.idAttribute]){ -this.index[_3e[this.idAttribute]]=_3e; -} -this._updateMeta(_3e,_40); -this._addReference(_3e,{parent:_3f.item,attribute:_3f.attribute}); -this._setDirty(_3e); -if(_3e[_3f.attribute]&&dojo.isArray(_3e[_3f.attribute])){ -for(var i=0;i<_3e[_3f.attribute].length;i++){ -this._makeItAnItem(_3e[_3f.attribute][i],{item:_3e,attribute:_3f.attribute}); -} -} -return _3e; -},newItem:function(_43,_44){ -var _45={item:this._data}; -if(_44){ -if(_44.parent){ -_44.item=_44.parent; -} -dojo.mixin(_45,_44); -} -this._makeItAnItem(_43,_45); -_45.oldValue=this._trimItem(_45.item[_45.attribute]); -this._setDirty(_45.item); -if(dojo.isArray(_45.item[_45.attribute])){ -_45.item[_45.attribute].push(_43); -}else{ -_45.item[_45.attribute]=_43; -} -_45.newValue=_45.item[_45.attribute]; -this.onNew(_43,_45); -if(_43[_45.attribute]&&dojo.isArray(_43[_45.attribute])){ -for(var i=0;i<_43[_45.attribute].length;i++){ -this.onNew(_43[_45.attribute][i],{item:_43,attribute:_45.attribute}); -} -} -return _43; -},_addReference:function(_47,_48){ -var rid="_ref_"+this._referenceId++; -if(!_47[this.metaLabel]["referenceIds"]){ -_47[this.metaLabel]["referenceIds"]=[]; -} -_47[this.metaLabel]["referenceIds"].push(rid); -this._references[rid]=_48; -},deleteItem:function(_4a){ -_4a=this._correctReference(_4a); - -if(this.isItem(_4a)){ -while(_4a[this.metaLabel]["referenceIds"].length>0){ - - -var rid=_4a[this.metaLabel]["referenceIds"].pop(); -var _4c=this._references[rid]; - -var _4d=_4c.parent; -var _4e=_4c.attribute; -if(_4d&&_4d[_4e]&&!dojo.isArray(_4d[_4e])){ -this._setDirty(_4d); -this.unsetAttribute(_4d,_4e); -delete _4d[_4e]; -} -if(dojo.isArray(_4d[_4e])){ - -var _4f=this._trimItem(_4d[_4e]); -var _50=false; -for(var i=0;i<_4d[_4e].length&&!_50;i++){ -if(_4d[_4e][i][this.metaLabel]===_4a[this.metaLabel]){ -_50=true; -} -} -if(_50){ -this._setDirty(_4d); -var del=_4d[_4e].splice(i-1,1); -delete del; -} -var _53=this._trimItem(_4d[_4e]); -this.onSet(_4d,_4e,_4f,_53); -} -delete this._references[rid]; -} -this.onDelete(_4a); -delete _4a; -this.index[id]=null; -delete this.index[id]; -} -},_setDirty:function(_54){ -if(this.noRevert){ -return; -} -for(var i=0;i<this._dirtyItems.length;i++){ -if(_54[this.idAttribute]==this._dirtyItems[i][this.idAttribute]){ -return; -} -} -this._dirtyItems.push({item:_54,old:this._trimItem(_54)}); -this._updateMeta(_54,{isDirty:true}); -},setValue:function(_56,_57,_58){ -_56=this._correctReference(_56); -this._setDirty(_56); -var old=_56[_57]|undefined; -_56[_57]=_58; -this.onSet(_56,_57,old,_58); -},setValues:function(_5a,_5b,_5c){ -_5a=this._correctReference(_5a); -if(!dojo.isArray(_5c)){ -throw new Error("setValues expects to be passed an Array object as its value"); -} -this._setDirty(_5a); -var old=_5a[_5b]||null; -_5a[_5b]=_5c; -this.onSet(_5a,_5b,old,_5c); -},unsetAttribute:function(_5e,_5f){ -_5e=this._correctReference(_5e); -this._setDirty(_5e); -var old=_5e[_5f]; -delete _5e[_5f]; -this.onSet(_5e,_5f,old,null); -},save:function(_61){ -var _62=[]; -if(!_61){ -_61={}; -} -while(this._dirtyItems.length>0){ -var _63=this._dirtyItems.pop()["item"]; -var t=this._trimItem(_63); -var d; -switch(_61.format){ -case "json": -d=dojo.toJson(t); -break; -case "raw": -default: -d=t; -} -_62.push(d); -this._markClean(_63); -} -this.onSave(_62); -},_markClean:function(_66){ -if(_66&&_66[this.metaLabel]&&_66[this.metaLabel]["isDirty"]){ -delete _66[this.metaLabel]["isDirty"]; -} -},revert:function(){ -while(this._dirtyItems.length>0){ -var d=this._dirtyItems.pop(); -this._mixin(d.item,d.old); -} -this.onRevert(); -},_mixin:function(_68,_69){ -var mix; -if(dojo.isObject(_69)){ -if(dojo.isArray(_69)){ -while(_68.length>0){ -_68.pop(); -} -for(var i=0;i<_69.length;i++){ -if(dojo.isObject(_69[i])){ -if(dojo.isArray(_69[i])){ -mix=[]; -}else{ -mix={}; -if(_69[i][this.metaLabel]&&_69[i][this.metaLabel]["type"]&&_69[i][this.metaLabel]["type"]=="reference"){ -_68[i]=this.index[_69[i][this.idAttribute]]; -continue; -} -} -this._mixin(mix,_69[i]); -_68.push(mix); -}else{ -_68.push(_69[i]); -} -} -}else{ -for(var i in _68){ -if(i in _69){ -continue; -} -delete _68[i]; -} -for(var i in _69){ -if(dojo.isObject(_69[i])){ -if(dojo.isArray(_69[i])){ -mix=[]; -}else{ -if(_69[i][this.metaLabel]&&_69[i][this.metaLabel]["type"]&&_69[i][this.metaLabel]["type"]=="reference"){ -_68[i]=this.index[_69[i][this.idAttribute]]; -continue; -} -mix={}; -} -this._mixin(mix,_69[i]); -_68[i]=mix; -}else{ -_68[i]=_69[i]; -} -} -} -} -},isDirty:function(_6c){ -_6c=this._correctReference(_6c); -return _6c&&_6c[this.metaLabel]&&_6c[this.metaLabel]["isDirty"]; -},_createReference:function(_6d){ -var obj={}; -obj[this.metaLabel]={type:"reference"}; -obj[this.idAttribute]=_6d[this.idAttribute]; -return obj; -},_trimItem:function(_6f){ -var _70; -if(dojo.isArray(_6f)){ -_70=[]; -for(var i=0;i<_6f.length;i++){ -if(dojo.isArray(_6f[i])){ -_70.push(this._trimItem(_6f[i])); -}else{ -if(dojo.isObject(_6f[i])){ -if(_6f[i]["getFullYear"]){ -_70.push(dojo.date.stamp.toISOString(_6f[i])); -}else{ -if(_6f[i][this.idAttribute]){ -_70.push(this._createReference(_6f[i])); -}else{ -_70.push(this._trimItem(_6f[i])); -} -} -}else{ -_70.push(_6f[i]); -} -} -} -return _70; -} -if(dojo.isObject(_6f)){ -_70={}; -for(var _72 in _6f){ -if(!_6f[_72]){ -_70[_72]=undefined; -continue; -} -if(dojo.isArray(_6f[_72])){ -_70[_72]=this._trimItem(_6f[_72]); -}else{ -if(dojo.isObject(_6f[_72])){ -if(_6f[_72]["getFullYear"]){ -_70[_72]=dojo.date.stamp.toISOString(_6f[_72]); -}else{ -if(_6f[_72][this.idAttribute]){ -_70[_72]=this._createReference(_6f[_72]); -}else{ -_70[_72]=this._trimItem(_6f[_72]); -} -} -}else{ -_70[_72]=_6f[_72]; -} -} -} -return _70; -} -},onSet:function(_73,_74,_75,_76){ -},onNew:function(_77,_78){ -},onDelete:function(_79){ -},onSave:function(_7a){ -},onRevert:function(){ -}}); -dojox.data.jsonPathStore.byId=dojox.data.jsonPathStore.fetchItemByIdentity; -}
http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/AppStore.js deleted file mode 100644 index 9333238..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"A URL is required to instantiate an APP Store object","invalidItem":"This error message is provided when a function is called in the following form: getAttribute(argument, attributeName). The argument variable represents the member or owner of the object. The error is created when an item that does not belong to this store is specified as an argument.","invalidAttributeType":"The attribute argument must be a string. The error is created when a different type of variable is specified such as an array or object."}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/cs/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/cs/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/cs/AppStore.js deleted file mode 100644 index 00a1f2b..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/cs/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"K vytvoÅenà instance objektu úložiÅ¡tÄ APP je vyžadována adresa URL.","invalidItem":"Tato chybová zpráva se zobrazÃ, pokud je funkce volána v následujÃcÃm tvaru: getAttribute(argument, attributeName). PromÄnná argument pÅedstavuje Älena nebo vlastnÃka objektu. Chyba se generuje, pokud je jako argument použita položka, která nepatÅà do tohoto úložiÅ¡tÄ.","invalidAttributeType":"Argument atributu musà být ÅetÄzec. Chyba se generuje, pokud je zadána promÄnná jiného typu, napÅÃklad pole nebo objekt."}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/de/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/de/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/de/AppStore.js deleted file mode 100644 index e2e11e2..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/de/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"Zum Instanzieren eines AAP-Speicherobjekts ist ein URL erforderlich.","invalidItem":"Diese Fehlernachricht wird angezeigt, wenn eine Funktion wie folgt aufgerufen wird: getAttribute(Argument, Attributname). Die Variable 'Argument' steht für das Member bzw. den Eigner des Objekts. Der Fehler wird erstellt, wenn ein Element, das nicht zu diesem Speicher gehört, als Argument angegeben wird.","invalidAttributeType":"Das Attributsargument muss eine Zeichenfolge sein. Der Fehler wird generiert, wenn eine Variable eines anderen Typs, z. B. Feldgruppe oder Objekt, angegeben wird. "}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/es/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/es/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/es/AppStore.js deleted file mode 100644 index f934b84..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/es/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"Se necesita un URL para crear una instancia de un objeto APP Store","invalidItem":"Se proporciona este mensaje de error cuando se llama a una función de la forma siguiente: getAttribute(argument, attributeName). La variable argument representa al miembro o propietario del objeto. El error se crea cuando se especifica como argumento un elemento que no pertenece a este almacén.","invalidAttributeType":"El argumento de atributo debe ser una serie. El error se crea cuando se especifica un tipo diferente de variable, como por ejemplo una matriz u objeto."}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/fr/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/fr/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/fr/AppStore.js deleted file mode 100644 index 4b64d46..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/fr/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"Une adresse URL est requise pour instancier un objet de magasin APP ","invalidItem":"Ce message d'erreur s'affiche lorsqu'une fonction est appelée sous la forme suivante : getAttribute(argument, attributeName). La variable argument représente le membre ou le propriétaire de l'objet. L'erreur est générée lorsqu'un élément qui n'appartient pas à ce magasin est spécifié en tant qu'argument. ","invalidAttributeType":"L'argument attribut doit correspondre à une chaîne. L'erreur est générée lorsqu'un type différent de variable est spécifié, par exemple un tableau ou un objet. "}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/hu/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/hu/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/hu/AppStore.js deleted file mode 100644 index 5e143c2..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/hu/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"Meg kell adni egy URL cÃmet az APP tároló objektum példányosÃtásához. ","invalidItem":"Ez a hibaüzenet akkor jelenik meg, ha egy függvény meghÃvása a következÅ formában történik: getAttribute(argumentum, attribútumnév). Az argumentum változó az objektum tagját vagy tulajdonosát jelöli. A hiba akkor keletkezik, ha argumentumként olyan elem van megadva, amely nem ehhez a tárolóhoz tartozik. ","invalidAttributeType":"Az attribútum argumentum csak karaktersorozat lehet. A hiba akkor keletkezik, ha más tÃpusú változó, például tömb vagy objektum van megadva. "}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/it/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/it/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/it/AppStore.js deleted file mode 100644 index 1f8c4b0..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/it/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"à necessario un URL per creare un'istanza di un oggetto di archivio APP","invalidItem":"Questo messaggio di errore viene visualizzato quando viene richiamata una funzione nel seguente formato: getAttribute(argument, attributeName). La variabile dell'argomento rappresenta il membro o il proprietario dell'oggetto. L'errore viene generato quando una voce che non appartiene a questo archivio viene specificata come un argomento.","invalidAttributeType":"L'argomento dell'attributo deve essere una stringa. L'errore viene generato quando viene specificato un tipo diverso di variabile, ad esempio un array o un oggetto."}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/ja/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/ja/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/ja/AppStore.js deleted file mode 100644 index 227b19f..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/ja/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"APP ã¹ãã¢ã»ãªãã¸ã§ã¯ãã®ã¤ã³ã¹ã¿ã³ã¹åã«ã¯ URL ãå¿ è¦ã§ãã","invalidItem":"ãã®ã¨ã©ã¼ã»ã¡ãã»ã¼ã¸ã¯ãgetAttribute(argument, attributeName) ã®å½¢å¼ã§æ©è½ãå¼ã³åºãããã¨ãã«åºããã¾ãã弿°å¤æ°ã«ããªãã¸ã§ã¯ãã®ã¡ã³ãã¼ã¾ãã¯ææè ã示ããã¾ãããã®ã¨ã©ã¼ã¯ããã®ã¹ãã¢ã«å±ãã¦ããªãé ç®ã弿°ã¨ãã¦æå®ãããå ´åã«çºçãã¾ãã","invalidAttributeType":"屿§å¼æ°ã¯ã¹ããªã³ã°ã§ãªããã°ãªãã¾ããããã®ã¨ã©ã¼ã¯ãé åã¾ãã¯ãªãã¸ã§ã¯ããªã©ã®ç°ãªãã¿ã¤ãã®å¤æ°ãæå®ãããå ´åã«çºçãã¾ãã"}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/ko/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/ko/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/ko/AppStore.js deleted file mode 100644 index 89e1958..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/ko/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"URLì APP ì ì¥ ì¤ë¸ì í¸ë¥¼ ì¤ëª í기 ìí´ íìí©ëë¤. ","invalidItem":"기ë¥ì´ ë¤ì ìììì í¸ì¶ë ë ì´ ì¤ë¥ ë©ìì§ê° ë°ìí©ëë¤: getAttribute(argument, attributeName). ì¸ì ë³ìë ì¤ë¸ì í¸ì 구ì±ì ëë ìì ì를 ëíí©ëë¤. ì´ ì ì¥ìì ìíì§ ìì íëª©ì´ ì¸ìë¡ ì§ì ë ê²½ì° ì¤ë¥ê° ë°ìí©ëë¤. ","invalidAttributeType":"ìì± ì¸ìë 문ìì´ì´ì´ì¼ í©ëë¤. ë°°ì´ ëë ì¤ë¸ì í¸ì ê°ì´ ì¸ìì ë¤ë¥¸ ì íì´ ì§ì ëë ê²½ì°ì ì¤ë¥ê° ë°ìí©ëë¤. "}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/pl/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/pl/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/pl/AppStore.js deleted file mode 100644 index b964372..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/pl/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"Do utworzenia instancji obiektu skÅadnicy APP wymagany jest adres URL.","invalidItem":"Ten komunikat o bÅÄdzie jest wyÅwietlany wtedy, gdy funkcja jest wywoÅywana w nastÄpujÄ cej formie: getAttribute(argument, attributeName). Zmienna argument reprezentuje skÅadowÄ lub wÅaÅciciela obiektu. BÅÄ d jest wyÅwietlany w sytuacji, gdy jako argument zostanie okreÅlony element, który nie należy do tej skÅadnicy.","invalidAttributeType":"Argumentem atrybutu musi byÄ ÅaÅcuch. Ten bÅÄ d jest wyÅwietlany wtedy, gdy zostaÅ okreÅlony inny typ zmiennej, taki jak tablica lub obiekt."}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/pt/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/pt/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/pt/AppStore.js deleted file mode 100644 index 0ddd6c3..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/pt/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"à necessária uma URL para instanciar um objeto de Armazenamento APP","invalidItem":"Esta mensagem de erro é fornecida quando uma função é chamada no seguinte formato: getAttribute(argument, attributeName). A variável de argumento representa o membro ou o proprietário do objeto. O erro é criado quando um item não pertencente a este armazenamento é especificado como argumento.","invalidAttributeType":"O argumento de atributo deve ser uma cadeia. O erro é criado quando um tipo diferente de variável é especificado, como uma matriz ou um objeto."}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/ru/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/ru/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/ru/AppStore.js deleted file mode 100644 index 0c69ef6..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/ru/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"ÐÐ»Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ ÑкземплÑÑа APP Store ÑÑебÑеÑÑÑ URL.","invalidItem":"ÐÑо ÑообÑение об оÑибке вÑдаеÑÑÑ Ð¿Ñи вÑзове ÑÑнкÑии в ÑледÑÑÑем ÑоÑмаÑе: getAttribute(аÑгÑменÑ, имÑÐÑÑибÑÑа). ÐеÑÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð°ÑгÑменÑа ÑооÑвеÑÑÑвÑÐµÑ ÑлеменÑÑ Ð¸Ð»Ð¸ владелÑÑÑ Ð¾Ð±ÑекÑа. ÐÑибка возникаеÑ, еÑли в каÑеÑÑве аÑгÑменÑа Ñказан ÑлеменÑ, не пÑинадлежаÑий к ÑÑÐ¾Ð¼Ñ Ñ ÑанилиÑÑ.","invalidAttributeType":"ÐÑгÑÐ¼ÐµÐ½Ñ Ð°ÑÑибÑÑа должен оÑноÑиÑÑÑÑ Ðº ÑÐ¸Ð¿Ñ Ð¡ÑÑока. ÐÑибка Ð²Ð¾Ð·Ð½Ð¸ÐºÐ°ÐµÑ Ð¿Ñи Ñказании пеÑеменной дÑÑгого Ñипа, напÑимеÑ, маÑÑив или обÑекÑ."}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/zh-tw/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/zh-tw/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/zh-tw/AppStore.js deleted file mode 100644 index a5cc508..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/zh-tw/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"éè¦ URLï¼æè½å°æç¨ç¨å¼å²å庫ç©ä»¶å¯¦ä¾å","invalidItem":"ç¶ä»¥ä¸åæ ¼å¼å¼å«å½æ¸æï¼å³æç¼åºéåé¯èª¤è¨æ¯ï¼getAttribute(argument, attributeName)ã弿¸è®æ¸ä»£è¡¨ç©ä»¶çæå¡æææè ãç¶å°ä¸å±¬æ¼éåå²å庫çé ç®æå®çºå¼æ¸æï¼å³æç¢çé¯èª¤ã","invalidAttributeType":"屬æ§å¼æ¸å¿ é æ¯ä¸åå串ãç¶æå®ä¸åé¡åçè®æ¸æï¼å¦ï¼é£åæç©ä»¶ï¼ï¼å³æç¢çé¯èª¤ã"}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/nls/zh/AppStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/nls/zh/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/nls/zh/AppStore.js deleted file mode 100644 index 2bcbd77..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/nls/zh/AppStore.js +++ /dev/null @@ -1 +0,0 @@ -({"missingUrl":"è¦å° APP Store 对象å®ä¾åï¼éè¦ URLã","invalidItem":"å¨ä½¿ç¨ä»¥ä¸æ ¼å¼è°ç¨å½æ°æ¶ï¼ç³»ç»å°æä¾æ¤éè¯¯æ¶æ¯ï¼getAttribute(argument, attributeName)ãargument åé代表对象çæåæææè ã妿æå®äºä¸å±äºæ¤åå¨åºç项ä½ä¸ºåæ°ï¼é£ä¹å°åçæ¤é误ã","invalidAttributeType":"attribute åæ°å¿ é¡»æ¯å符串ã妿æå®äºå¦ä¸ç§ç±»åçåéï¼ä¾å¦æ°ç»æå¯¹è±¡ï¼é£ä¹å°åçæ¤é误ã"}) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/restListener.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/restListener.js b/components/camel-web/src/main/webapp/js/dojox/data/restListener.js deleted file mode 100644 index 619ecb7..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/restListener.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.data.restListener"]){ -dojo._hasResource["dojox.data.restListener"]=true; -dojo.provide("dojox.data.restListener"); -dojox.data.restListener=function(_1){ -var _2=_1.channel; -var jr=dojox.rpc.JsonRest; -var _4=jr.getServiceAndId(_2).service; -var _5=dojox.json.ref.resolveJson(_1.result,{defaultId:_1.event=="put"&&_2,index:dojox.rpc.Rest._index,idPrefix:_4.servicePath,idAttribute:jr.getIdAttribute(_4),schemas:jr.schemas,loader:jr._loader,assignAbsoluteIds:true}); -var _6=dojox.rpc.Rest._index&&dojox.rpc.Rest._index[_2]; -var _7="on"+_1.event.toLowerCase(); -var _8=_4&&_4._store; -if(_6){ -if(_6[_7]){ -_6[_7](_5); -return; -} -} -if(_8){ -switch(_7){ -case "onpost": -_8.onNew(_5); -break; -case "ondelete": -_8.onDelete(_6); -break; -} -} -}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/s3/README ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/s3/README b/components/camel-web/src/main/webapp/js/dojox/data/s3/README deleted file mode 100644 index cfa2347..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/s3/README +++ /dev/null @@ -1,41 +0,0 @@ -Using Amazon S3 with Dojo has the following prerequisites: - * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3. - * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5. - * proxy.php requires the following modules: - o Crypt_HMAC - o HTTP_Request - - -To use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming -proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access key -into the proxy.php file on line 3 and 4: - -$accessKey = "access key"; -$secretAccessKey = "secret access key"; - -You then use the Dojo RPC service with the "PROXIED-PATH" envelope: - -dojo.require("dojox.rpc.Service"); -dojo.require("dojox.rpc.ProxiedPath"); -var s3Buckets = new dojox.rpc.Service({ - target:"http://s3.amazonaws.com/", - proxyUrl:"../s3/proxy.php", // the path to the proxy - transport:"REST", - envelope:"PROXIED-PATH", - contentType:"application/json", - services:{ - myBucket:{ - target:"myBucket", - parameters:[{type:"string"}] - } - } -}); - - -To use the S3 as a Dojo data store you can use the S3JsonRestStore module. First setup an RPC service -as shown above and then pass the RPC service to the S3JsonRestStore: - -dojo.require("dojox.data.S3JsonRestStore"); -s3Store = new dojox.data.S3JsonRestStore({service:s3Buckets.myBucket}); // and create a store for it - -You can then use the s3Store as a normal Read/Write Dojo Data store. http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/s3/proxy.example-php ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/s3/proxy.example-php b/components/camel-web/src/main/webapp/js/dojox/data/s3/proxy.example-php deleted file mode 100644 index f33a639..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/s3/proxy.example-php +++ /dev/null @@ -1,74 +0,0 @@ -<?php -// enter your Amazon S3 secret key and access key here: -$accessKey = "access key"; -$secretAccessKey = "secret access key"; - - - -$TARGET_WS = "http://s3.amazonaws.com"; - -ob_start(); - -require_once 'Crypt/HMAC.php'; -require_once 'HTTP/Request.php'; - -$method = $_SERVER["REQUEST_METHOD"]; -if ($method == "PUT") { - $contentType = $_SERVER['CONTENT_TYPE']; -} -else { - $contentType =''; -} -$resource = str_replace($TARGET_WS, '', $_REQUEST['url']); -$queryIndex = strpos($resource,'?'); // remove the query string -if ($queryIndex) { - $resource = substr($resource,0,$queryIndex); -} - -if (substr($resource,strlen($resource)-1,strlen($resource)) == '/') { - // remove the last slash - $resource = substr($resource,0,strlen($resource)-1); -} -$content = file_get_contents('php://input'); - -$httpDate = gmdate("D, d M Y H:i:s T"); -$acl = "private"; -$stringToSign = "$method\n\n$contentType\n$httpDate\nx-amz-acl:$acl\n$resource"; -$hashObj =& new Crypt_HMAC($secretAccessKey, "sha1"); -$signature = hexTob64($hashObj->hash($stringToSign)); - -$req =& new HTTP_Request($TARGET_WS . $resource); -$req->setMethod($method); -$req->addHeader("content-type", $contentType); -$req->addHeader("Date", $httpDate); -$req->addHeader("x-amz-acl", $acl); -$req->addHeader("Authorization", "AWS " . $accessKey . ":" . $signature); -if ($content != "") { - $req->setBody($content); -} - -$req->sendRequest(); - -$contentType = $req->getResponseHeader("content-type"); -header("content-type: $contentType"); -header('HTTP/1.1 ' . $req->getResponseCode() . ' Ok'); - -ob_end_flush(); - -$content = $req->getResponseBody(); -if ($content) { - print($content); -} -else { - print("\"success\""); -} - -function hexTob64($str) { - $raw = ''; - for ($i=0; $i < strlen($str); $i+=2) { - $raw .= chr(hexdec(substr($str, $i, 2))); - } - return base64_encode($raw); -} - -?> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/util/JsonQuery.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/util/JsonQuery.js b/components/camel-web/src/main/webapp/js/dojox/data/util/JsonQuery.js deleted file mode 100644 index 3616025..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/util/JsonQuery.js +++ /dev/null @@ -1,88 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.data.util.JsonQuery"]){ -dojo._hasResource["dojox.data.util.JsonQuery"]=true; -dojo.provide("dojox.data.util.JsonQuery"); -dojo.declare("dojox.data.util.JsonQuery",null,{useFullIdInQueries:false,_toJsonQuery:function(_1,_2){ -var _3=true; -var _4=this; -function _5(_6,_7){ -if(_7.__id){ -var _8={}; -_8[_4.idAttribute]=_4.useFullIdInQueries?_7.__id:_7[_4.idAttribute]; -_7=_8; -} -for(var i in _7){ -var _a=_7[i]; -var _b=_6+(/^[a-zA-Z_][\w_]*$/.test(i)?"."+i:"["+dojo._escapeString(i)+"]"); -if(_a&&typeof _a=="object"){ -_5(_b,_a); -}else{ -if(_a!="*"){ -_c+=(_3?"":"&")+_b+((_1.queryOptions&&_1.queryOptions.ignoreCase)?"~":"=")+dojo.toJson(_a); -_3=false; -} -} -} -}; -if(_1.query&&typeof _1.query=="object"){ -var _c="[?("; -_5("@",_1.query); -if(!_3){ -_c+=")]"; -}else{ -_c=""; -} -_1.queryStr=_c.replace(/\\"|"/g,function(t){ -return t=="\""?"'":t; -}); -}else{ -if(!_1.query||_1.query=="*"){ -_1.query=""; -} -} -var _e=_1.sort; -if(_e){ -_1.queryStr=_1.queryStr||(typeof _1.query=="string"?_1.query:""); -_3=true; -for(i=0;i<_e.length;i++){ -_1.queryStr+=(_3?"[":",")+(_e[i].descending?"\\":"/")+"@["+dojo._escapeString(_e[i].attribute)+"]"; -_3=false; -} -if(!_3){ -_1.queryStr+="]"; -} -} -if(_2&&(_1.start||_1.count)){ -_1.queryStr=(_1.queryStr||(typeof _1.query=="string"?_1.query:""))+"["+(_1.start||"")+":"+(_1.count?(_1.start||0)+_1.count:"")+"]"; -} -if(typeof _1.queryStr=="string"){ -_1.queryStr=_1.queryStr.replace(/\\"|"/g,function(t){ -return t=="\""?"'":t; -}); -return _1.queryStr; -} -return _1.query; -},jsonQueryPagination:true,fetch:function(_10){ -this._toJsonQuery(_10,this.jsonQueryPagination); -return this.inherited(arguments); -},isUpdateable:function(){ -return true; -},matchesQuery:function(_11,_12){ -_12._jsonQuery=_12._jsonQuery||dojox.json.query(this._toJsonQuery(_12)); -return _12._jsonQuery([_11]).length; -},clientSideFetch:function(_13,_14){ -_13._jsonQuery=_13._jsonQuery||dojox.json.query(this._toJsonQuery(_13)); -return this.clientSidePaging(_13,_13._jsonQuery(_14)); -},querySuperSet:function(_15,_16){ -if(!_15.query){ -return _16.query; -} -return this.inherited(arguments); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/date/HebrewDate.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/date/HebrewDate.js b/components/camel-web/src/main/webapp/js/dojox/date/HebrewDate.js deleted file mode 100644 index 918aa91..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/date/HebrewDate.js +++ /dev/null @@ -1,638 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.date.HebrewDate"]){ -dojo._hasResource["dojox.date.HebrewDate"]=true; -dojo.provide("dojox.date.HebrewDate"); -dojo.experimental("dojox.date.HebrewDate"); -dojo.declare("dojox.date.HebrewDate",null,{TISHRI:0,HESHVAN:1,KISLEV:2,TEVET:3,SHEVAT:4,ADAR_1:5,ADAR:6,NISAN:7,IYAR:8,SIVAN:9,TAMUZ:10,AV:11,ELUL:12,_HOUR_PARTS:1080,_DAY_PARTS:24*1080,_MONTH_DAYS:29,_MONTH_FRACT:12*1080+793,_MONTH_PARTS:29*24*1080+12*1080+793,BAHARAD:11*1080+204,JAN_1_1_JULIAN_DAY:1721426,_MONTH_LENGTH:[[30,30,30],[29,29,30],[29,30,30],[29,29,29],[30,30,30],[30,30,30],[29,29,29],[30,30,30],[29,29,29],[30,30,30],[29,29,29],[30,30,30],[29,29,29]],_MONTH_START:[[0,0,0],[30,30,30],[59,59,60],[88,89,90],[117,118,119],[147,148,149],[147,148,149],[176,177,178],[206,207,208],[235,236,237],[265,266,267],[294,295,296],[324,325,326],[353,354,355]],LEAP_MONTH_START:[[0,0,0],[30,30,30],[59,59,60],[88,89,90],[117,118,119],[147,148,149],[177,178,179],[206,207,208],[236,237,238],[265,266,267],[295,296,297],[324,325,326],[354,355,356],[383,384,385]],GREGORIAN_MONTH_COUNT:[[31,31,0,0],[28,29,31,31],[31,31,59,60],[30,30,90,91],[31,31,120,121],[30,30,151,152],[31,31,181,182],[31,31,2 12,213],[30,30,243,244],[31,31,273,274],[30,30,304,305],[31,31,334,335]],_date:0,_month:0,_year:0,_hours:0,_minutes:0,_seconds:0,_milliseconds:0,_day:0,constructor:function(){ -var _1=arguments.length; -if(_1==0){ -var _2=new Date(); -var _3=this._computeHebrewFields(_2); -this._date=_3[2]; -this._month=_3[1]; -this._year=_3[0]; -this._hours=_2.getHours(); -this._minutes=_2.getMinutes(); -this._seconds=_2.getSeconds(); -this._milliseconds=_2.getMilliseconds(); -this._day=_2.getDay(); -}else{ -if(_1==1){ -this._year=arguments[0].getFullYear(); -this._month=arguments[0].getMonth(); -this._date=arguments[0].getDate(); -this._hours=arguments[0].getHours(); -this._minutes=arguments[0].getMinutes(); -this._seconds=arguments[0].getSeconds(); -this._milliseconds=arguments[0].getMilliseconds(); -}else{ -if(_1>=3){ -this._year=parseInt(arguments[0]); -this._month=parseInt(arguments[1]); -this._date=parseInt(arguments[2]); -if(!this.isLeapYear(this._year)&&this._month>=5){ -this._month++; -} -if(this._month>12||(!this.isLeapYear(this._year)&&this._month>11)){ -console.warn("the month is incorrect , set 0"); -this._month=0; -} -this._hours=(arguments[3]!=null)?parseInt(arguments[3]):0; -this._minutes=(arguments[4]!=null)?parseInt(arguments[4]):0; -this._seconds=(arguments[5]!=null)?parseInt(arguments[5]):0; -this._milliseconds=(arguments[6]!=null)?parseInt(arguments[6]):0; -} -} -} -var _4=this._startOfYear(this._year); -if(this._month!=0){ -if(this.isLeapYear(this._year)){ -_4+=this.LEAP_MONTH_START[this._month][this._yearType(this._year)]; -}else{ -_4+=this._MONTH_START[this._month][this._yearType(this._year)]; -} -} -_4+=(this._date-1); -this._day=((_4+1)%7); -},getDate:function(){ -return parseInt(this._date); -},getMonth:function(){ -return parseInt(this._month); -},getFullYear:function(){ -return parseInt(this._year); -},getHours:function(){ -return this._hours; -},getMinutes:function(){ -return this._minutes; -},getSeconds:function(){ -return this._seconds; -},getMilliseconds:function(){ -return this._milliseconds; -},setDate:function(_5){ -_5=parseInt(_5); -if(_5>0){ -for(var _6=this.getDaysInHebrewMonth(this._month,this._year);_5>_6;_5-=_6,_6=this.getDaysInHebrewMonth(this._month,this._year)){ -this._month++; -if(!this.isLeapYear(this._year)&&(this._month==5)){ -this._month++; -} -if(this._month>=13){ -this._year++; -this._month-=13; -} -} -this._date=_5; -}else{ -for(_6=this.getDaysInHebrewMonth((this._month-1)>=0?(this._month-1):12,((this._month-1)>=0)?this._year:this._year-1);_5<=0;_6=this.getDaysInHebrewMonth((this._month-1)>=0?(this._month-1):12,((this._month-1)>=0)?this._year:this._year-1)){ -this._month--; -if(!this.isLeapYear(this._year)&&this._month==5){ -this._month--; -} -if(this._month<0){ -this._year--; -this._month+=13; -} -_5+=_6; -} -this._date=_5; -} -var _7=this._startOfYear(this._year); -if(this._month!=0){ -if(this.isLeapYear(this._year)){ -_7+=this.LEAP_MONTH_START[this._month][this._yearType(this._year)]; -}else{ -_7+=this._MONTH_START[this._month][this._yearType(this._year)]; -} -} -_7+=(this._date-1); -this._day=((_7+1)%7); -return this; -},setYear:function(_8){ -this._year=parseInt(_8); -if(!this.isLeapYear(this._year)&&this._month==6){ -this._month--; -} -var _9=this._startOfYear(this._year); -if(this._month!=0){ -if(this.isLeapYear(this._year)){ -_9+=this.LEAP_MONTH_START[this._month][this._yearType(this._year)]; -}else{ -_9+=this._MONTH_START[this._month][this._yearType(this._year)]; -} -} -_9+=(this._date-1); -this._day=((_9+1)%7); -return this; -},setMonth:function(_a){ -var _b=parseInt(_a); -if(!this.isLeapYear(this._year)&&_b>5){ -_b++; -} -if(_b>=0){ -while(_b>12){ -this._year++; -_b-=13; -if(!this.isLeapYear(this._year)&&_b>5){ -_b++; -} -} -}else{ -while(_b<0){ -this._year--; -_b+=13; -if(!this.isLeapYear(this._year)&&_b<=5){ -_b--; -} -} -} -this._month=_b; -var _c=this.getDaysInHebrewMonth(this._month,this._year); -if(_c<this._date){ -this._date=_c; -} -var _d=this._startOfYear(this._year); -if(this._month!=0){ -if(this.isLeapYear(this._year)){ -_d+=this.LEAP_MONTH_START[this._month][this._yearType(this._year)]; -}else{ -_d+=this._MONTH_START[this._month][this._yearType(this._year)]; -} -} -_d+=(this._date-1); -this._day=((_d+1)%7); -return this; -},setHours:function(){ -var _e=arguments.length; -var _f=0; -if(_e>=1){ -_f=parseInt(arguments[0]); -} -if(_e>=2){ -this._minutes=parseInt(arguments[1]); -} -if(_e>=3){ -this._seconds=parseInt(arguments[2]); -} -if(_e==4){ -this._milliseconds=parseInt(arguments[3]); -} -while(_f>=24){ -this._date++; -var _10=this.getDaysInHebrewMonth(this._month,this._year); -if(this._date>_10){ -this._month++; -if(!this.isLeapYear(this._year)&&(this._month==5)){ -this._month++; -} -if(this._month>=13){ -this._year++; -this._month-=13; -} -this._date-=_10; -} -_f-=24; -} -this._hours=_f; -var day=this._startOfYear(this._year); -if(this._month!=0){ -if(this.isLeapYear(this._year)){ -day+=this.LEAP_MONTH_START[this._month][this._yearType(this._year)]; -}else{ -day+=this._MONTH_START[this._month][this._yearType(this._year)]; -} -} -day+=(this._date-1); -this._day=((day+1)%7); -return this; -},setMinutes:function(_12){ -while(_12>=60){ -this._hours++; -if(this._hours>=24){ -this._date++; -this._hours-=24; -var _13=this.getDaysInHebrewMonth(this._month,this._year); -if(this._date>_13){ -this._month++; -if(!this.isLeapYear(this._year)&&(this._month==5)){ -this._month++; -} -if(this._month>=13){ -this._year++; -this._month-=13; -} -this._date-=_13; -} -} -_12-=60; -} -this._minutes=_12; -var day=this._startOfYear(this._year); -if(this._month!=0){ -if(this.isLeapYear(this._year)){ -day+=this.LEAP_MONTH_START[this._month][this._yearType(this._year)]; -}else{ -day+=this._MONTH_START[this._month][this._yearType(this._year)]; -} -} -day+=(this._date-1); -this._day=((day+1)%7); -return this; -},setSeconds:function(_15){ -while(_15>=60){ -this._minutes++; -if(this._minutes>=60){ -this._hours++; -this._minutes-=60; -if(this._hours>=24){ -this._date++; -this._hours-=24; -var _16=this.getDaysInHebrewMonth(this._month,this._year); -if(this._date>_16){ -this._month++; -if(!this.isLeapYear(this._year)&&(this._month==5)){ -this._month++; -} -if(this._month>=13){ -this._year++; -this._month-=13; -} -this._date-=_16; -} -} -} -_15-=60; -} -this._seconds=_15; -var day=this._startOfYear(this._year); -if(this._month!=0){ -if(this.isLeapYear(this._year)){ -day+=this.LEAP_MONTH_START[this._month][this._yearType(this._year)]; -}else{ -day+=this._MONTH_START[this._month][this._yearType(this._year)]; -} -} -day+=(this._date-1); -this._day=((day+1)%7); -return this; -},setMilliseconds:function(_18){ -while(_18>=1000){ -this.setSeconds++; -if(this.setSeconds>=60){ -this._minutes++; -this._seconds-=60; -if(this._minutes>=60){ -this._hours++; -this._minutes-=60; -if(this._hours>=24){ -this._date++; -this._hours-=24; -var _19=this.getDaysInHebrewMonth(this._month,this._year); -if(this._date>_19){ -this._month++; -if(!this.isLeapYear(this._year)&&(this._month==5)){ -this._month++; -} -if(this._month>=13){ -this._year++; -this._month-=13; -} -this._date-=_19; -} -} -} -} -_18-=1000; -} -this._milliseconds=_18; -var day=this._startOfYear(this._year); -if(this._month!=0){ -if(this.isLeapYear(this._year)){ -day+=this.LEAP_MONTH_START[this._month][this._yearType(this._year)]; -}else{ -day+=this._MONTH_START[this._month][this._yearType(this._year)]; -} -} -day+=(this._date-1); -this._day=((day+1)%7); -return this; -},toString:function(){ -return this._date+", "+((!this.isLeapYear(this._year)&&this._month>5)?this._month:(this._month+1))+", "+this._year+" "+this._hours+":"+this._minutes+":"+this._seconds; -},valueOf:function(){ -return this.toGregorian().valueOf(); -},getDaysInHebrewMonth:function(_1b,_1c){ -switch(_1b){ -case this.HESHVAN: -case this.KISLEV: -return this._MONTH_LENGTH[_1b][this._yearType(_1c)]; -default: -return this._MONTH_LENGTH[_1b][0]; -} -},_yearType:function(_1d){ -var _1e=this._handleGetYearLength(Number(_1d)); -if(_1e>380){ -_1e-=30; -} -switch(_1e){ -case 353: -return 0; -case 354: -return 1; -case 355: -return 2; -} -throw new Error("Illegal year length "+_1e+" in year "+_1d); -},_handleGetYearLength:function(_1f){ -return this._startOfYear(_1f+1)-this._startOfYear(_1f); -},_startOfYear:function(_20){ -var _21=Math.floor((235*_20-234)/19); -var _22=_21*this._MONTH_FRACT+this.BAHARAD; -var day=_21*29+Math.floor(_22/this._DAY_PARTS); -_22%=this._DAY_PARTS; -var wd=day%7; -if(wd==2||wd==4||wd==6){ -day+=1; -wd=day%7; -} -if(wd==1&&_22>15*this._HOUR_PARTS+204&&!this.isLeapYear(_20)){ -day+=2; -}else{ -if(wd==0&&_22>21*this._HOUR_PARTS+589&&this.isLeapYear(_20-1)){ -day+=1; -} -} -return day; -},isLeapYear:function(_25){ -var x=(_25*12+17)%19; -return x>=((x<0)?-7:12); -},fromGregorian:function(_27){ -var _28=this._computeHebrewFields(_27); -this._year=_28[0]; -this._month=_28[1]; -this._date=_28[2]; -this._hours=_27.getHours(); -this._milliseconds=_27.getMilliseconds(); -this._minutes=_27.getMinutes(); -this._seconds=_27.getSeconds(); -return this; -},_computeHebrewFields:function(_29){ -var _2a=this._getJulianDayFromGregorianDate(_29); -var d=_2a-347997; -var m=Math.floor((d*this._DAY_PARTS)/this._MONTH_PARTS); -var _2d=Math.floor((19*m+234)/235)+1; -var ys=this._startOfYear(_2d); -var _2f=(d-ys); -while(_2f<1){ -_2d--; -ys=this._startOfYear(_2d); -_2f=d-ys; -} -var _30=this._yearType(_2d); -var _31=this.isLeapYear(_2d)?this.LEAP_MONTH_START:this._MONTH_START; -var _32=0; -while(_2f>_31[_32][_30]){ -_32++; -} -_32--; -var _33=_2f-_31[_32][_30]; -return [_2d,_32,_33]; -},toGregorian:function(){ -var _34=this._year; -var _35=this._month; -var _36=this._date; -var day=this._startOfYear(_34); -if(_35!=0){ -if(this.isLeapYear(_34)){ -day+=this.LEAP_MONTH_START[_35][this._yearType(_34)]; -}else{ -day+=this._MONTH_START[_35][this._yearType(_34)]; -} -} -var _38=(_36+day+347997); -var _39=_38-this.JAN_1_1_JULIAN_DAY; -var rem=new Array(1); -var _3b=this._floorDivide(_39,146097,rem); -var _3c=this._floorDivide(rem[0],36524,rem); -var n4=this._floorDivide(rem[0],1461,rem); -var n1=this._floorDivide(rem[0],365,rem); -var _3f=400*_3b+100*_3c+4*n4+n1; -var _40=rem[0]; -if(_3c==4||n1==4){ -_40=365; -}else{ -++_3f; -} -var _41=!(_3f%4)&&(_3f%100||!(_3f%400)); -var _42=0; -var _43=_41?60:59; -if(_40>=_43){ -_42=_41?1:2; -} -var _44=Math.floor((12*(_40+_42)+6)/367); -var _45=_40-this.GREGORIAN_MONTH_COUNT[_44][_41?3:2]+1; -return new Date(_3f,_44,_45,this._hours,this._minutes,this._seconds,this._milliseconds); -},_floorDivide:function(_46,_47,_48){ -if(_46>=0){ -_48[0]=(_46%_47); -return Math.floor(_46/_47); -} -var _49=Math.floor(_46/_47); -_48[0]=_46-(_49*_47); -return _49; -},getDay:function(){ -var _4a=this._year; -var _4b=this._month; -var _4c=this._date; -var day=this._startOfYear(_4a); -if(_4b!=0){ -if(this.isLeapYear(_4a)){ -day+=this.LEAP_MONTH_START[_4b][this._yearType(_4a)]; -}else{ -day+=this._MONTH_START[_4b][this._yearType(_4a)]; -} -} -day+=_4c-1; -return (day+1)%7; -},_getJulianDayFromGregorianDate:function(_4e){ -var _4f=_4e.getFullYear(); -var _50=_4e.getMonth(); -var d=_4e.getDate(); -var _52=!(_4f%4)&&(_4f%100||!(_4f%400)); -var y=_4f-1; -var _54=365*y+Math.floor(y/4)-Math.floor(y/100)+Math.floor(y/400)+this.JAN_1_1_JULIAN_DAY-1; -if(_50!=0){ -_54+=this.GREGORIAN_MONTH_COUNT[_50][_52?3:2]; -} -_54+=d; -return _54; -}}); -dojox.date.HebrewDate.fromGregorian=function(_55){ -var _56=new dojox.date.HebrewDate(); -return _56.fromGregorian(_55); -}; -dojox.date.HebrewDate.add=function(_57,_58,_59){ -var _5a=new dojox.date.HebrewDate(_57); -switch(_58){ -case "day": -_5a.setDate(_57.getDate()+_59); -break; -case "weekday": -var day=_57.getDay(); -if(((day+_59)<5)&&((day+_59)>0)){ -_5a.setDate(_57.getDate()+_59); -}else{ -var _5c=0; -var _5d=0; -if(day==5){ -day=4; -_5d=(_59>0)?-1:1; -}else{ -if(day==6){ -day=4; -_5d=(_59>0)?-2:2; -} -} -var add=(_59>0)?(5-day-1):(0-day); -var _5f=_59-add; -var div=parseInt(_5f/5); -if((_5f%5)!=0){ -_5c=(_59>0)?2:-2; -} -_5c=_5c+div*7+_5f%5+add; -_5a.setDate(_57.getDate()+_5c+_5d); -} -break; -case "year": -_5a.setYear(_57.getFullYear()+_59); -break; -case "week": -_59*=7; -_5a.setDate(_57.getDate()+_59); -break; -case "month": -var _61=_57.getMonth(); -_5a.setMonth(_57.getMonth()+_59); -break; -case "hour": -_5a.setHours(_57.getHours()+_59); -break; -case "minute": -_5a.setMinutes(_57.getMinutes()+_59); -break; -case "second": -_5a.setSeconds(_57.getSeconds()+_59); -break; -case "millisecond": -_5a.setMilliseconds(_57.getMilliseconds()+_59); -break; -} -return _5a; -}; -dojox.date.HebrewDate.difference=function(_62,_63,_64){ -_63=_63||new dojox.date.HebrewDate(); -_64=_64||"day"; -var _65=_62.getFullYear()-_63.getFullYear(); -var _66=1; -switch(_64){ -case "weekday": -var _67=Math.round(dojox.date.HebrewDate.difference(_62,_63,"day")); -var _68=parseInt(dojox.date.HebrewDate.difference(_62,_63,"week")); -var mod=_67%7; -if(mod==0){ -_67=_68*5; -}else{ -var adj=0; -var _6b=_63.getDay(); -var _6c=_62.getDay(); -_68=parseInt(_67/7); -mod=_67%7; -var _6d=new dojox.date.HebrewDate(_63); -_6d.setDate(_6d.getDate()+(_68*7)); -var _6e=_6d.getDay(); -if(_67>0){ -switch(true){ -case _6b==5: -adj=-1; -break; -case _6b==6: -adj=0; -break; -case _6c==5: -adj=-1; -break; -case _6c==6: -adj=-2; -break; -case (_6e+mod)>5: -adj=-2; -} -}else{ -if(_67<0){ -switch(true){ -case _6b==5: -adj=0; -break; -case _6b==6: -adj=1; -break; -case _6c==5: -adj=2; -break; -case _6c==6: -adj=1; -break; -case (_6e+mod)<0: -adj=2; -} -} -} -_67+=adj; -_67-=(_68*2); -} -_66=_67; -break; -case "year": -_66=_65; -break; -case "month": -var _6f=(_62.toGregorian()>_63.toGregorian())?_62:_63; -var _70=(_62.toGregorian()>_63.toGregorian())?_63:_62; -var _71=_6f.getMonth(); -var _72=_70.getMonth(); -if(_65==0){ -_66=(!_62.isLeapYear(_62.getFullYear())&&_6f.getMonth()>5&&_70.getMonth()<=5)?(_6f.getMonth()-_70.getMonth()-1):(_6f.getMonth()-_70.getMonth()); -}else{ -_66=(!_70.isLeapYear(_70.getFullYear())&&_72<6)?(13-_72-1):(13-_72); -_66+=(!_6f.isLeapYear(_6f.getFullYear())&&_71>5)?(_71-1):_71; -var i=_70.getFullYear()+1; -var e=_6f.getFullYear(); -for(i;i<e;i++){ -_66+=_70.isLeapYear(i)?13:12; -} -} -if(_62.toGregorian()<_63.toGregorian()){ -_66=-_66; -} -break; -case "week": -_66=parseInt(dojox.date.HebrewDate.difference(_62,_63,"day")/7); -break; -case "day": -_66/=24; -case "hour": -_66/=60; -case "minute": -_66/=60; -case "second": -_66/=1000; -case "millisecond": -_66*=_62.toGregorian().getTime()-_63.toGregorian().getTime(); -} -return Math.round(_66); -}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/date/HebrewLocale.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/date/HebrewLocale.js b/components/camel-web/src/main/webapp/js/dojox/date/HebrewLocale.js deleted file mode 100644 index 4743fef..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/date/HebrewLocale.js +++ /dev/null @@ -1,411 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.date.HebrewLocale"]){ -dojo._hasResource["dojox.date.HebrewLocale"]=true; -dojo.provide("dojox.date.HebrewLocale"); -dojo.experimental("dojox.date.HebrewLocale"); -dojo.require("dojox.date.HebrewDate"); -dojo.require("dojox.date.HebrewNumerals"); -dojo.require("dojo.regexp"); -dojo.require("dojo.string"); -dojo.require("dojo.i18n"); -dojo.requireLocalization("dojo.cldr","hebrew",null,"ROOT,he"); -(function(){ -function _1(_2,_3,_4,_5,_6){ -return _6.replace(/([a-z])\1*/ig,function(_7){ -var s,_9; -var c=_7.charAt(0); -var l=_7.length; -var _c=["abbr","wide","narrow"]; -switch(c){ -case "y": -if(_4=="he"){ -s=dojox.date.HebrewNumerals.getYearHebrewLetters(_2.getFullYear()); -}else{ -s=String(_2.getFullYear()); -} -break; -case "M": -var m=_2.getMonth(); -if(l<3){ -if(!_2.isLeapYear(_2.getFullYear())&&m>5){ -m--; -} -if(_4=="he"){ -s=dojox.date.HebrewNumerals.getMonthHebrewLetters(m); -}else{ -s=m+1; -_9=true; -} -}else{ -if(!_2.isLeapYear(_2.getFullYear())&&m==6){ -m--; -} -var _e=["months","format",_c[l-3]].join("-"); -s=_3[_e][m]; -} -break; -case "d": -if(_4=="he"){ -s=dojox.date.HebrewNumerals.getDayHebrewLetters(_2.getDate()); -}else{ -s=_2.getDate(); -_9=true; -} -break; -case "E": -var d=_2.getDay(); -if(l<3){ -s=d+1; -_9=true; -}else{ -var _10=["days","format",_c[l-3]].join("-"); -s=_3[_10][d]; -} -break; -case "a": -var _11=(_2.getHours()<12)?"am":"pm"; -s=_3[_11]; -break; -case "h": -case "H": -case "K": -case "k": -var h=_2.getHours(); -switch(c){ -case "h": -s=(h%12)||12; -break; -case "H": -s=h; -break; -case "K": -s=(h%12); -break; -case "k": -s=h||24; -break; -} -_9=true; -break; -case "m": -s=_2.getMinutes(); -_9=true; -break; -case "s": -s=_2.getSeconds(); -_9=true; -break; -case "S": -s=Math.round(_2.getMilliseconds()*Math.pow(10,l-3)); -_9=true; -break; -default: -throw new Error("dojox.date.HebrewLocale.formatPattern: invalid pattern char: "+_6); -} -if(_9){ -s=dojo.string.pad(s,l); -} -return s; -}); -}; -dojox.date.HebrewLocale.format=function(_13,_14){ -_14=_14||{}; -var _15=dojo.i18n.normalizeLocale(_14.locale); -var _16=_14.formatLength||"short"; -var _17=dojox.date.HebrewLocale._getHebrewBundle(_15); -var str=[]; -var _19=dojo.hitch(this,_1,_13,_17,_15,_14.fullYear); -if(_14.selector!="time"){ -var _1a=_14.datePattern||_17["dateFormat-"+_16]; -if(_1a){ -str.push(_1b(_1a,_19)); -} -} -if(_14.selector!="date"){ -var _1c=_14.timePattern||_17["timeFormat-"+_16]; -if(_1c){ -str.push(_1b(_1c,_19)); -} -} -var _1d=str.join(" "); -return _1d; -}; -dojox.date.HebrewLocale.regexp=function(_1e){ -return dojox.date.HebrewLocale._parseInfo(_1e).regexp; -}; -dojox.date.HebrewLocale._parseInfo=function(_1f){ -_1f=_1f||{}; -var _20=dojo.i18n.normalizeLocale(_1f.locale); -var _21=dojox.date.HebrewLocale._getHebrewBundle(_20); -var _22=_1f.formatLength||"short"; -var _23=_1f.datePattern||_21["dateFormat-"+_22]; -var _24=_1f.timePattern||_21["timeFormat-"+_22]; -var _25; -if(_1f.selector=="date"){ -_25=_23; -}else{ -if(_1f.selector=="time"){ -_25=_24; -}else{ -_25=(typeof (_24)=="undefined")?_23:_23+" "+_24; -} -} -var _26=[]; -var re=_1b(_25,dojo.hitch(this,_28,_26,_21,_1f)); -return {regexp:re,tokens:_26,bundle:_21}; -}; -dojox.date.HebrewLocale.parse=function(_29,_2a){ -if(!_2a){ -_2a={}; -} -var _2b=dojox.date.HebrewLocale._parseInfo(_2a); -var _2c=_2b.tokens,_2d=_2b.bundle; -var re=new RegExp("^"+_2b.regexp+"$"); -var _2f=re.exec(_29); -var _30=dojo.i18n.normalizeLocale(_2a.locale); -if(!_2f){ - -return null; -} -var _31,_32; -var _33=[5730,3,23,0,0,0,0]; -var _34=""; -var _35=0; -var _36=["abbr","wide","narrow"]; -var _37=dojo.every(_2f,function(v,i){ -if(!i){ -return true; -} -var _3a=_2c[i-1]; -var l=_3a.length; -switch(_3a.charAt(0)){ -case "y": -if(_30=="he"){ -_33[0]=dojox.date.HebrewNumerals.parseYearHebrewLetters(v); -}else{ -_33[0]=Number(v); -} -break; -case "M": -if(l>2){ -var _3c=_2d["months-format-"+_36[l-3]].concat(); -if(!_2a.strict){ -v=v.replace(".","").toLowerCase(); -_3c=dojo.map(_3c,function(s){ -return s.replace(".","").toLowerCase(); -}); -} -v=dojo.indexOf(_3c,v); -if(v==-1){ -return false; -} -_35=l; -}else{ -if(_30=="he"){ -v=dojox.date.HebrewNumerals.parseMonthHebrewLetters(v); -}else{ -v--; -} -} -_33[1]=Number(v); -break; -case "D": -_33[1]=0; -case "d": -if(_30=="he"){ -_33[2]=dojox.date.HebrewNumerals.parseDayHebrewLetters(v); -}else{ -_33[2]=Number(v); -} -break; -case "a": -var am=_2a.am||_2d.am; -var pm=_2a.pm||_2d.pm; -if(!_2a.strict){ -var _40=/\./g; -v=v.replace(_40,"").toLowerCase(); -am=am.replace(_40,"").toLowerCase(); -pm=pm.replace(_40,"").toLowerCase(); -} -if(_2a.strict&&v!=am&&v!=pm){ -return false; -} -_34=(v==pm)?"p":(v==am)?"a":""; -break; -case "K": -if(v==24){ -v=0; -} -case "h": -case "H": -case "k": -_33[3]=Number(v); -break; -case "m": -_33[4]=Number(v); -break; -case "s": -_33[5]=Number(v); -break; -case "S": -_33[6]=Number(v); -} -return true; -}); -var _41=+_33[3]; -if(_34==="p"&&_41<12){ -_33[3]=_41+12; -}else{ -if(_34==="a"&&_41==12){ -_33[3]=0; -} -} -var _42=new dojox.date.HebrewDate(_33[0],_33[1],_33[2],_33[3],_33[4],_33[5],_33[6]); -if((_35>2)&&(_33[1]>5)&&!_42.isLeapYear(_42.getFullYear())){ -_42=new dojox.date.HebrewDate(_33[0],_33[1]-1,_33[2],_33[3],_33[4],_33[5],_33[6]); -} -return _42; -}; -function _1b(_43,_44,_45,_46){ -var _47=function(x){ -return x; -}; -_44=_44||_47; -_45=_45||_47; -_46=_46||_47; -var _49=_43.match(/(''|[^'])+/g); -var _4a=_43.charAt(0)=="'"; -dojo.forEach(_49,function(_4b,i){ -if(!_4b){ -_49[i]=""; -}else{ -_49[i]=(_4a?_45:_44)(_4b); -_4a=!_4a; -} -}); -return _46(_49.join("")); -}; -function _28(_4d,_4e,_4f,_50){ -_50=dojo.regexp.escapeString(_50); -var _51=dojo.i18n.normalizeLocale(_4f.locale); -return _50.replace(/([a-z])\1*/ig,function(_52){ -var s; -var c=_52.charAt(0); -var l=_52.length; -var p2="",p3=""; -if(_4f.strict){ -if(l>1){ -p2="0"+"{"+(l-1)+"}"; -} -if(l>2){ -p3="0"+"{"+(l-2)+"}"; -} -}else{ -p2="0?"; -p3="0{0,2}"; -} -switch(c){ -case "y": -s="\\S+"; -break; -case "M": -if(_51=="he"){ -s=(l>2)?"\\S+ ?\\S+":"\\S{1,4}"; -}else{ -s=(l>2)?"\\S+ ?\\S+":p2+"[1-9]|1[0-2]"; -} -break; -case "d": -if(_51=="he"){ -s="\\S['\"']{1,2}\\S?"; -}else{ -s="[12]\\d|"+p2+"[1-9]|30"; -} -break; -case "E": -if(_51=="he"){ -s=(l>3)?"\\S+ ?\\S+":"\\S"; -}else{ -s="\\S+"; -} -break; -case "h": -s=p2+"[1-9]|1[0-2]"; -break; -case "k": -s=p2+"\\d|1[01]"; -break; -case "H": -s=p2+"\\d|1\\d|2[0-3]"; -break; -case "K": -s=p2+"[1-9]|1\\d|2[0-4]"; -break; -case "m": -case "s": -s=p2+"\\d|[0-5]\\d"; -break; -case "S": -s="\\d{"+l+"}"; -break; -case "a": -var am=_4f.am||_4e.am||"AM"; -var pm=_4f.pm||_4e.pm||"PM"; -if(_4f.strict){ -s=am+"|"+pm; -}else{ -s=am+"|"+pm; -if(am!=am.toLowerCase()){ -s+="|"+am.toLowerCase(); -} -if(pm!=pm.toLowerCase()){ -s+="|"+pm.toLowerCase(); -} -} -break; -default: -s=".*"; -} -if(_4d){ -_4d.push(_52); -} -return "("+s+")"; -}).replace(/[\xa0 ]/g,"[\\s\\xa0]"); -}; -})(); -(function(){ -var _5a=[]; -dojox.date.HebrewLocale.addCustomFormats=function(_5b,_5c){ -_5a.push({pkg:_5b,name:_5c}); -}; -dojox.date.HebrewLocale._getHebrewBundle=function(_5d){ -var _5e={}; -dojo.forEach(_5a,function(_5f){ -var _60=dojo.i18n.getLocalization(_5f.pkg,_5f.name,_5d); -_5e=dojo.mixin(_5e,_60); -},this); -return _5e; -}; -})(); -dojox.date.HebrewLocale.addCustomFormats("dojo.cldr","hebrew"); -dojox.date.HebrewLocale.getNames=function(_61,_62,_63,_64){ -var _65; -var _66=dojox.date.HebrewLocale._getHebrewBundle; -var _67=[_61,_63,_62]; -if(_63=="standAlone"){ -var key=_67.join("-"); -_65=_66(_64)[key]; -if(_65===_66("ROOT")[key]){ -_65=undefined; -} -} -_67[1]="format"; -return (_65||_66(_64)[_67.join("-")]).concat(); -}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/date/HebrewNumerals.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/date/HebrewNumerals.js b/components/camel-web/src/main/webapp/js/dojox/date/HebrewNumerals.js deleted file mode 100644 index 2f687ed..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/date/HebrewNumerals.js +++ /dev/null @@ -1,158 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.date.HebrewNumerals"]){ -dojo._hasResource["dojox.date.HebrewNumerals"]=true; -dojo.provide("dojox.date.HebrewNumerals"); -dojo.experimental("dojox.date.HebrewNumerals"); -(function(){ -var _1=["×","×","×","×","×","×","×","×","×"]; -var _2=["×","×","×","×","× ","ס","×¢","פ","צ"]; -var _3=["×§","ר","ש","ת"]; -var _4=["××","××","××","××"]; -var _5=["×'","×'","×'","×'","×'","×'","×'","×'","×'","×'","×\"×","×\"×","×\"×"]; -var _6=["'"]; -dojox.date.HebrewNumerals.getYearHebrewLetters=function(_7){ -var _8="",_9=""; -_7=_7%1000; -var i=0,n=4,j=9; -while(_7){ -if(_7>=n*100){ -_8=_8.concat(_3[n-1]); -_7-=n*100; -continue; -}else{ -if(n>1){ -n--; -continue; -}else{ -if(_7>=j*10){ -_8=_8.concat(_2[j-1]); -_7-=j*10; -}else{ -if(j>1){ -j--; -continue; -}else{ -if(_7>0){ -_8=_8.concat(_1[_7-1]); -_7=0; -} -} -} -} -} -} -var _d=""; -var _e=_8.indexOf(_4[0]); -if(_e>-1){ -_8=_d.concat(_8.substr(_8[0],_e),_4[2],_8.substr(_8[_e+2],_8.length-_e-2)); -}else{ -if((_e=_8.indexOf(_4[1]))>-1){ -_8=_d.concat(_8.substr(_8[0],_e),_4[3],_8.substr(_8[_e+2],_8.length-_e-2)); -} -} -if(_8.length>1){ -var _f=_8.charAt(_8.length-1); -_8=_9.concat(_8.substr(0,_8.length-1),"\"",_f); -}else{ -_8=_8.concat(_6[0]); -} -return _8; -}; -dojox.date.HebrewNumerals.parseYearHebrewLetters=function(_10){ -var _11=0,i=0,j=0; -for(j=0;j<_10.length;j++){ -for(i=1;i<=5;i++){ -if(_10.charAt(j)==_3[i-1]){ -_11+=100*i; -continue; -} -} -for(i=1;i<=9;i++){ -if(_10.charAt(j)==_2[i-1]){ -_11+=10*i; -continue; -} -} -for(i=1;i<=9;i++){ -if(_10.charAt(j)==_1[i-1]){ -_11+=i; -} -} -} -return _11+5000; -}; -dojox.date.HebrewNumerals.getDayHebrewLetters=function(day,_15){ -var str=""; -var j=3; -while(day){ -if(day>=j*10){ -str=str.concat(_2[j-1]); -day-=j*10; -}else{ -if(j>1){ -j--; -continue; -}else{ -if(day>0){ -str=str.concat(_1[day-1]); -day=0; -} -} -} -} -var _18=""; -var ind=str.indexOf(_4[0]); -if(ind>-1){ -str=_18.concat(str.substr(str[0],ind),_4[2],str.substr(str[ind+2],str.length-ind-2)); -}else{ -if((ind=str.indexOf(_4[1]))>-1){ -str=_18.concat(str.substr(str[0],ind),_4[3],str.substr(str[ind+2],str.length-ind-2)); -} -} -if(!_15){ -var _1a=""; -if(str.length>1){ -var _1b=str.charAt(str.length-1); -str=_1a.concat(str.substr(0,str.length-1),"\"",_1b); -}else{ -str=str.concat(_6[0]); -} -} -return str; -}; -dojox.date.HebrewNumerals.parseDayHebrewLetters=function(day){ -var _1d=0,i=0; -for(var j=0;j<day.length;j++){ -for(i=1;i<=9;i++){ -if(day.charAt(j)==_2[i-1]){ -_1d+=10*i; -continue; -} -} -for(i=1;i<=9;i++){ -if(day.charAt(j)==_1[i-1]){ -_1d+=i; -} -} -} -return _1d; -}; -dojox.date.HebrewNumerals.getMonthHebrewLetters=function(_20,_21,_22){ -return _5[_20]; -}; -dojox.date.HebrewNumerals.parseMonthHebrewLetters=function(_23){ -var _24=dojox.date.HebrewNumerals.parseDayHebrewLetters(_23)-1; -if(_24==-1){ -console.warn("The month name is incorrect , set 0"); -_24=0; -} -return _24; -}; -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/date/IslamicDate.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/date/IslamicDate.js b/components/camel-web/src/main/webapp/js/dojox/date/IslamicDate.js deleted file mode 100644 index 11fc03b..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/date/IslamicDate.js +++ /dev/null @@ -1,314 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.date.IslamicDate"]){ -dojo._hasResource["dojox.date.IslamicDate"]=true; -dojo.provide("dojox.date.IslamicDate"); -dojo.experimental("dojox.date.IslamicDate"); -dojo.require("dojo.date.locale"); -dojo.require("dojo.date"); -dojo.requireLocalization("dojo.cldr","islamic",null,"ROOT,ar"); -dojo.declare("dojox.date.IslamicDate",null,{_date:0,_month:0,_year:0,_hours:0,_minutes:0,_seconds:0,_milliseconds:0,_day:0,_GREGORIAN_EPOCH:1721425.5,_ISLAMIC_EPOCH:1948439.5,constructor:function(){ -var _1=arguments.length; -if(_1==0){ -var d=new Date(); -this._day=d.getDay(); -this.fromGregorian(d); -}else{ -if(_1==1){ -this.parse(arguments[0]); -}else{ -if(_1>=3){ -this._year=arguments[0]; -this._month=arguments[1]; -this._date=arguments[2]; -this._hours=arguments[3]||0; -this._minutes=arguments[4]||0; -this._seconds=arguments[5]||0; -this._milliseconds=arguments[6]||0; -} -} -} -},getDate:function(){ -return parseInt(this._date); -},getMonth:function(){ -return parseInt(this._month); -},getFullYear:function(){ -return parseInt(this._year); -},getDay:function(){ -var gd=this.toGregorian(); -return gd.getDay(); -},getHours:function(){ -return this._hours; -},getMinutes:function(){ -return this._minutes; -},getSeconds:function(){ -return this._seconds; -},getMilliseconds:function(){ -return this._milliseconds; -},setDate:function(_4){ -_4=parseInt(_4); -if(_4>0&&_4<=this.getDaysInIslamicMonth(this._month,this._year)){ -this._date=_4; -}else{ -var _5; -if(_4>0){ -for(_5=this.getDaysInIslamicMonth(this._month,this._year);_4>_5;_4-=_5,_5=this.getDaysInIslamicMonth(this._month,this._year)){ -this._month++; -if(this._month>=12){ -this._year++; -this._month-=12; -} -} -this._date=_4; -}else{ -for(_5=this.getDaysInIslamicMonth((this._month-1)>=0?(this._month-1):11,((this._month-1)>=0)?this._year:this._year-1);_4<=0;_5=this.getDaysInIslamicMonth((this._month-1)>=0?(this._month-1):11,((this._month-1)>=0)?this._year:this._year-1)){ -this._month--; -if(this._month<0){ -this._year--; -this._month+=12; -} -_4+=_5; -} -this._date=_4; -} -} -return this; -},setYear:function(_6){ -this._year=parseInt(_6); -},setMonth:function(_7){ -this._year+=Math.floor(_7/12); -this._month=Math.floor(_7%12); -},setHours:function(){ -var _8=arguments.length; -var _9=0; -if(_8>=1){ -_9=parseInt(arguments[0]); -} -if(_8>=2){ -this._minutes=parseInt(arguments[1]); -} -if(_8>=3){ -this._seconds=parseInt(arguments[2]); -} -if(_8==4){ -this._milliseconds=parseInt(arguments[3]); -} -while(_9>=24){ -this._date++; -var _a=this.getDaysInIslamicMonth(this._month,this._year); -if(this._date>_a){ -this._month++; -if(this._month>=12){ -this._year++; -this._month-=12; -} -this._date-=_a; -} -_9-=24; -} -this._hours=_9; -},setMinutes:function(_b){ -while(_b>=60){ -this._hours++; -if(this._hours>=24){ -this._date++; -this._hours-=24; -var _c=this.getDaysInIslamicMonth(this._month,this._year); -if(this._date>_c){ -this._month++; -if(this._month>=12){ -this._year++; -this._month-=12; -} -this._date-=_c; -} -} -_b-=60; -} -this._minutes=_b; -},setSeconds:function(_d){ -while(_d>=60){ -this._minutes++; -if(this._minutes>=60){ -this._hours++; -this._minutes-=60; -if(this._hours>=24){ -this._date++; -this._hours-=24; -var _e=this.getDaysInIslamicMonth(this._month,this._year); -if(this._date>_e){ -this._month++; -if(this._month>=12){ -this._year++; -this._month-=12; -} -this._date-=_e; -} -} -} -_d-=60; -} -this._seconds=_d; -},setMilliseconds:function(_f){ -while(_f>=1000){ -this.setSeconds++; -if(this.setSeconds>=60){ -this._minutes++; -this.setSeconds-=60; -if(this._minutes>=60){ -this._hours++; -this._minutes-=60; -if(this._hours>=24){ -this._date++; -this._hours-=24; -var _10=this.getDaysInIslamicMonth(this._month,this._year); -if(this._date>_10){ -this._month++; -if(this._month>=12){ -this._year++; -this._month-=12; -} -this._date-=_10; -} -} -} -} -_f-=1000; -} -this._milliseconds=_f; -},toString:function(){ -var x=new Date(); -x.setHours(this._hours); -x.setMinutes(this._minutes); -x.setSeconds(this._seconds); -x.setMilliseconds(this._milliseconds); -var _12=x.toTimeString(); -return (dojox.date.IslamicDate.weekDays[this.getDay()]+" "+dojox.date.IslamicDate.months[this._month]+" "+this._date+" "+this._year+" "+_12); -},toGregorian:function(){ -var _13=this._year; -var _14=this._month; -var _15=this._date; -var _16=_15+Math.ceil(29.5*_14)+(_13-1)*354+Math.floor((3+(11*_13))/30)+this._ISLAMIC_EPOCH-1; -var wjd=Math.floor(_16-0.5)+0.5,_18=wjd-this._GREGORIAN_EPOCH,_19=Math.floor(_18/146097),dqc=this._mod(_18,146097),_1b=Math.floor(dqc/36524),_1c=this._mod(dqc,36524),_1d=Math.floor(_1c/1461),_1e=this._mod(_1c,1461),_1f=Math.floor(_1e/365),_20=(_19*400)+(_1b*100)+(_1d*4)+_1f; -if(!(_1b==4||_1f==4)){ -_20++; -} -var _21=this._GREGORIAN_EPOCH+(365*(_20-1))+Math.floor((_20-1)/4)-(Math.floor((_20-1)/100))+Math.floor((_20-1)/400); -var _22=wjd-_21; -var tjd=(this._GREGORIAN_EPOCH-1)+(365*(_20-1))+Math.floor((_20-1)/4)-(Math.floor((_20-1)/100))+Math.floor((_20-1)/400)+Math.floor((739/12)+((dojo.date.isLeapYear(new Date(_20,3,1))?-1:-2))+1); -var _24=((wjd<tjd)?0:(dojo.date.isLeapYear(new Date(_20,3,1))?1:2)); -var _25=Math.floor((((_22+_24)*12)+373)/367); -var _26=(this._GREGORIAN_EPOCH-1)+(365*(_20-1))+Math.floor((_20-1)/4)-(Math.floor((_20-1)/100))+Math.floor((_20-1)/400)+Math.floor((((367*_25)-362)/12)+((_25<=2)?0:(dojo.date.isLeapYear(new Date(_20,_25,1))?-1:-2))+1); -var day=(wjd-_26); -var _28=new Date(_20,_25-1,day); -_28.setHours(this._hours); -_28.setMilliseconds(this._milliseconds); -_28.setMinutes(this._minutes); -_28.setSeconds(this._seconds); -return _28; -},fromGregorian:function(_29){ -var _2a=new Date(_29); -var _2b=_2a.getFullYear(),_2c=_2a.getMonth(),_2d=_2a.getDate(); -var _2e=(this._GREGORIAN_EPOCH-1)+(365*(_2b-1))+Math.floor((_2b-1)/4)+(-Math.floor((_2b-1)/100))+Math.floor((_2b-1)/400)+Math.floor((((367*(_2c+1))-362)/12)+(((_2c+1)<=2)?0:(dojo.date.isLeapYear(_2a)?-1:-2))+_2d)+(Math.floor(_2a.getSeconds()+60*(_2a.getMinutes()+60*_2a.getHours())+0.5)/86400); -_2e=Math.floor(_2e)+0.5; -var _2f=_2e-1948440; -var _30=Math.floor((30*_2f+10646)/10631); -var _31=Math.ceil((_2f-29-this._yearStart(_30))/29.5); -_31=Math.min(_31,11); -var _32=Math.ceil(_2f-this._monthStart(_30,_31))+1; -this._date=_32; -this._month=_31; -this._year=_30; -this._hours=_2a.getHours(); -this._minutes=_2a.getMinutes(); -this._seconds=_2a.getSeconds(); -this._milliseconds=_2a.getMilliseconds(); -this._day=_2a.getDay(); -return this; -},parse:function(_33){ -var _34=_33.toString(); -var _35=/\d{1,2}\D\d{1,2}\D\d{4}/; -var sD,jd,mD=_34.match(_35); -if(mD){ -mD=mD.toString(); -sD=mD.split(/\D/); -this._month=sD[0]-1; -this._date=sD[1]; -this._year=sD[2]; -}else{ -mD=_34.match(/\D{4,}\s\d{1,2}\s\d{4}/); -if(mD){ -mD=mD.toString(); -var _39=mD.match(/\d{1,2}\s\d{4}/); -_39=_39.toString(); -var _3a=mD.replace(/\s\d{1,2}\s\d{4}/,""); -_3a=_3a.toString(); -this._month=dojo.indexOf(this._months,_3a); -sD=_39.split(/\s/); -this._date=sD[0]; -this._year=sD[1]; -} -} -var _3b=_34.match(/\d{2}:/); -if(_3b!=null){ -_3b=_3b.toString(); -var _3c=_3b.split(":"); -this._hours=_3c[0]; -_3b=_34.match(/\d{2}:\d{2}/); -if(_3b){ -_3b=_3b.toString(); -_3c=_3b.split(":"); -} -this._minutes=_3c[1]!=null?_3c[1]:0; -_3b=_34.match(/\d{2}:\d{2}:\d{2}/); -if(_3b){ -_3b=_3b.toString(); -_3c=_3b.split(":"); -} -this._seconds=_3c[2]!=null?_3c[2]:0; -}else{ -this._hours=0; -this._minutes=0; -this._seconds=0; -} -this._milliseconds=0; -},valueOf:function(){ -var _3d=this.toGregorian(); -return _3d.valueOf(); -},_yearStart:function(_3e){ -return (_3e-1)*354+Math.floor((3+11*_3e)/30); -},_monthStart:function(_3f,_40){ -return Math.ceil(29.5*_40)+(_3f-1)*354+Math.floor((3+11*_3f)/30); -},_civilLeapYear:function(_41){ -return (14+11*_41)%30<11; -},getDaysInIslamicMonth:function(_42,_43){ -var _44=0; -_44=29+((_42+1)%2); -if(_42==11&&this._civilLeapYear(_43)){ -_44++; -} -return _44; -},_mod:function(a,b){ -return a-(b*Math.floor(a/b)); -}}); -dojox.date.IslamicDate.getDaysInIslamicMonth=function(_47){ -return new dojox.date.IslamicDate().getDaysInIslamicMonth(_47.getMonth(),_47.getFullYear()); -}; -dojox.date.IslamicDate._getNames=function(_48,_49,use,_4b){ -var _4c; -var _4d=dojo.i18n.getLocalization("dojo.cldr","islamic",_4b); -var _4e=[_48,use,_49]; -if(use=="standAlone"){ -_4c=_4d[_4e.join("-")]; -} -_4e[1]="format"; -return (_4c||_4d[_4e.join("-")]).concat(); -}; -dojox.date.IslamicDate.weekDays=dojox.date.IslamicDate._getNames("days","wide","format"); -dojox.date.IslamicDate.months=dojox.date.IslamicDate._getNames("months","wide","format"); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/date/README ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/date/README b/components/camel-web/src/main/webapp/js/dojox/date/README deleted file mode 100644 index 8395369..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/date/README +++ /dev/null @@ -1,40 +0,0 @@ -------------------------------------------------------------------------------- -DojoX Date -------------------------------------------------------------------------------- -Version 0.9 -Release date: 5/17/2007 -------------------------------------------------------------------------------- -Project state: -experimental -------------------------------------------------------------------------------- -Credits - Paul Sowden (dojox.date.posix) - Neil Roberts (dojox.date.php) - Hossam Aldin Katory (dojox.date.IslamicCalendar, dojox.date.HebrewCalendar) -------------------------------------------------------------------------------- -Project description - -Placeholder for any kind of date operations, including formatters that are -common to other languages (posix and php). -------------------------------------------------------------------------------- -Dependencies: - -Depends only on the Dojo Core. -------------------------------------------------------------------------------- -Documentation - -See the API documentation for details. -------------------------------------------------------------------------------- -Installation instructions - -Grab the following from the Dojo SVN Repository: -http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/date/* - -Install into the following directory structure: -/dojox/date/ - -...which should be at the same level as your Dojo checkout. - -To use the non-Gregorian calendars, you must do a complete build of dojo.cldr. -See util/buildscripts/cldr/README for details. -------------------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/date/php.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/date/php.js b/components/camel-web/src/main/webapp/js/dojox/date/php.js deleted file mode 100644 index 867c445..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/date/php.js +++ /dev/null @@ -1,185 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.date.php"]){ -dojo._hasResource["dojox.date.php"]=true; -dojo.provide("dojox.date.php"); -dojo.require("dojo.date"); -dojo.require("dojox.string.tokenize"); -dojox.date.php.format=function(_1,_2){ -var df=new dojox.date.php.DateFormat(_2); -return df.format(_1); -}; -dojox.date.php.DateFormat=function(_4){ -if(!this.regex){ -var _5=[]; -for(var _6 in this.constructor.prototype){ -if(dojo.isString(_6)&&_6.length==1&&dojo.isFunction(this[_6])){ -_5.push(_6); -} -} -this.constructor.prototype.regex=new RegExp("(?:(\\\\.)|(["+_5.join("")+"]))","g"); -} -var _7=[]; -this.tokens=dojox.string.tokenize(_4,this.regex,function(_8,_9,i){ -if(_9){ -_7.push([i,_9]); -return _9; -} -if(_8){ -return _8.charAt(1); -} -}); -this.replacements=_7; -}; -dojo.extend(dojox.date.php.DateFormat,{weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdays_3:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],months_3:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthdays:[31,28,31,30,31,30,31,31,30,31,30,31],format:function(_b){ -this.date=_b; -for(var i=0,_d;_d=this.replacements[i];i++){ -this.tokens[_d[0]]=this[_d[1]](); -} -return this.tokens.join(""); -},d:function(){ -var j=this.j(); -return (j.length==1)?"0"+j:j; -},D:function(){ -return this.weekdays_3[this.date.getDay()]; -},j:function(){ -return this.date.getDate()+""; -},l:function(){ -return this.weekdays[this.date.getDay()]; -},N:function(){ -var w=this.w(); -return (!w)?7:w; -},S:function(){ -switch(this.date.getDate()){ -case 11: -case 12: -case 13: -return "th"; -case 1: -case 21: -case 31: -return "st"; -case 2: -case 22: -return "nd"; -case 3: -case 23: -return "rd"; -default: -return "th"; -} -},w:function(){ -return this.date.getDay()+""; -},z:function(){ -var _10=this.date.getTime()-new Date(this.date.getFullYear(),0,1).getTime(); -return Math.floor(_10/86400000)+""; -},W:function(){ -var _11; -var _12=new Date(this.date.getFullYear(),0,1).getDay()+1; -var w=this.date.getDay()+1; -var z=parseInt(this.z()); -if(z<=(8-_12)&&_12>4){ -var _15=new Date(this.date.getFullYear()-1,this.date.getMonth(),this.date.getDate()); -if(_12==5||(_12==6&&dojo.date.isLeapYear(_15))){ -_11=53; -}else{ -_11=52; -} -}else{ -var i; -if(Boolean(this.L())){ -i=366; -}else{ -i=365; -} -if((i-z)<(4-w)){ -_11=1; -}else{ -var j=z+(7-w)+(_12-1); -_11=Math.ceil(j/7); -if(_12>4){ ---_11; -} -} -} -return _11; -},F:function(){ -return this.months[this.date.getMonth()]; -},m:function(){ -var n=this.n(); -return (n.length==1)?"0"+n:n; -},M:function(){ -return this.months_3[this.date.getMonth()]; -},n:function(){ -return this.date.getMonth()+1+""; -},t:function(){ -return (Boolean(this.L())&&this.date.getMonth()==1)?29:this.monthdays[this.getMonth()]; -},L:function(){ -return (dojo.date.isLeapYear(this.date))?"1":"0"; -},o:function(){ -},Y:function(){ -return this.date.getFullYear()+""; -},y:function(){ -return this.Y().slice(-2); -},a:function(){ -return this.date.getHours()>=12?"pm":"am"; -},b:function(){ -return this.a().toUpperCase(); -},B:function(){ -var off=this.date.getTimezoneOffset()+60; -var _1a=(this.date.getHours()*3600)+(this.date.getMinutes()*60)+this.getSeconds()+(off*60); -var _1b=Math.abs(Math.floor(_1a/86.4)%1000)+""; -while(_1b.length<2){ -_1b="0"+_1b; -} -return _1b; -},g:function(){ -return (this.date.getHours()>12)?this.date.getHours()-12+"":this.date.getHours()+""; -},G:function(){ -return this.date.getHours()+""; -},h:function(){ -var g=this.g(); -return (g.length==1)?"0"+g:g; -},H:function(){ -var G=this.G(); -return (G.length==1)?"0"+G:G; -},i:function(){ -var _1e=this.date.getMinutes()+""; -return (_1e.length==1)?"0"+_1e:_1e; -},s:function(){ -var _1f=this.date.getSeconds()+""; -return (_1f.length==1)?"0"+_1f:_1f; -},e:function(){ -return dojo.date.getTimezoneName(this.date); -},I:function(){ -},O:function(){ -var off=Math.abs(this.date.getTimezoneOffset()); -var _21=Math.floor(off/60)+""; -var _22=(off%60)+""; -if(_21.length==1){ -_21="0"+_21; -} -if(_22.length==1){ -_21="0"+_22; -} -return ((this.date.getTimezoneOffset()<0)?"+":"-")+_21+_22; -},P:function(){ -var O=this.O(); -return O.substring(0,2)+":"+O.substring(2,4); -},T:function(){ -return this.e().substring(0,3); -},Z:function(){ -return this.date.getTimezoneOffset()*-60; -},c:function(){ -return this.Y()+"-"+this.m()+"-"+this.d()+"T"+this.h()+":"+this.i()+":"+this.s()+this.P(); -},r:function(){ -return this.D()+", "+this.d()+" "+this.M()+" "+this.Y()+" "+this.H()+":"+this.i()+":"+this.s()+" "+this.O(); -},U:function(){ -return Math.floor(this.date.getTime()/1000); -}}); -}