diff --git a/lib/setup.php b/lib/setup.php index c8b5626c923..cd652f669b0 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -222,7 +222,7 @@ umask(0000); // exact version of currently used yui2 and 3 library $CFG->yui2version = '2.9.0'; -$CFG->yui3version = '3.4.1'; +$CFG->yui3version = '3.5.0'; // special support for highly optimised scripts that do not need libraries and DB connection diff --git a/lib/thirdpartylibs.xml b/lib/thirdpartylibs.xml index dfcdf8f7eb7..21241ebe043 100644 --- a/lib/thirdpartylibs.xml +++ b/lib/thirdpartylibs.xml @@ -207,7 +207,7 @@ yui YUI BSD - 3.4.1 + 3.5.0 diff --git a/lib/yui/3.4.1/build/anim-base/anim-base-min.js b/lib/yui/3.4.1/build/anim-base/anim-base-min.js deleted file mode 100644 index 3f14007a298..00000000000 --- a/lib/yui/3.4.1/build/anim-base/anim-base-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("anim-base",function(b){var c="running",n="startTime",l="elapsedTime",j="start",i="tween",m="end",d="node",k="paused",o="reverse",h="iterationCount",a=Number;var f={},e;b.Anim=function(){b.Anim.superclass.constructor.apply(this,arguments);b.Anim._instances[b.stamp(this)]=this;};b.Anim.NAME="anim";b.Anim._instances={};b.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i;b.Anim.DEFAULT_UNIT="px";b.Anim.DEFAULT_EASING=function(q,p,s,r){return s*q/r+p;};b.Anim._intervalTime=20;b.Anim.behaviors={left:{get:function(q,p){return q._getOffset(p);}}};b.Anim.behaviors.top=b.Anim.behaviors.left;b.Anim.DEFAULT_SETTER=function(s,t,v,w,y,r,u,x){var q=s._node,p=u(y,a(v),a(w)-a(v),r);if(t in q._node.style||t in b.DOM.CUSTOM_STYLES){x=x||"";q.setStyle(t,p+x);}else{if(q._node.attributes[t]){q.setAttribute(t,p);}else{q.set(t,p);}}};b.Anim.DEFAULT_GETTER=function(r,p){var q=r._node,s="";if(p in q._node.style||p in b.DOM.CUSTOM_STYLES){s=q.getComputedStyle(p);}else{if(q._node.attributes[p]){s=q.getAttribute(p);}else{s=q.get(p);}}return s;};b.Anim.ATTRS={node:{setter:function(p){if(p){if(typeof p=="string"||p.nodeType){p=b.one(p);}}this._node=p;if(!p){}return p;}},duration:{value:1},easing:{value:b.Anim.DEFAULT_EASING,setter:function(p){if(typeof p==="string"&&b.Easing){return b.Easing[p];}}},from:{},to:{},startTime:{value:0,readOnly:true},elapsedTime:{value:0,readOnly:true},running:{getter:function(){return !!f[b.stamp(this)];},value:false,readOnly:true},iterations:{value:1},iterationCount:{value:0,readOnly:true},direction:{value:"normal"},paused:{readOnly:true,value:false},reverse:{value:false}};b.Anim.run=function(){var q=b.Anim._instances;for(var p in q){if(q[p].run){q[p].run();}}};b.Anim.pause=function(){for(var p in f){if(f[p].pause){f[p].pause();}}b.Anim._stopTimer();};b.Anim.stop=function(){for(var p in f){if(f[p].stop){f[p].stop();}}b.Anim._stopTimer();};b.Anim._startTimer=function(){if(!e){e=setInterval(b.Anim._runFrame,b.Anim._intervalTime);}};b.Anim._stopTimer=function(){clearInterval(e);e=0;};b.Anim._runFrame=function(){var p=true;for(var q in f){if(f[q]._runFrame){p=false;f[q]._runFrame();}}if(p){b.Anim._stopTimer();}};b.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;var g={run:function(){if(this.get(k)){this._resume();}else{if(!this.get(c)){this._start();}}return this;},pause:function(){if(this.get(c)){this._pause();}return this;},stop:function(p){if(this.get(c)||this.get(k)){this._end(p);}return this;},_added:false,_start:function(){this._set(n,new Date()-this.get(l));this._actualFrames=0;if(!this.get(k)){this._initAnimAttr();}f[b.stamp(this)]=this;b.Anim._startTimer();this.fire(j);},_pause:function(){this._set(n,null);this._set(k,true);delete f[b.stamp(this)];this.fire("pause");},_resume:function(){this._set(k,false);f[b.stamp(this)]=this;this._set(n,new Date()-this.get(l));b.Anim._startTimer();this.fire("resume");},_end:function(p){var q=this.get("duration")*1000;if(p){this._runAttrs(q,q,this.get(o));}this._set(n,null);this._set(l,0);this._set(k,false);delete f[b.stamp(this)];this.fire(m,{elapsed:this.get(l)});},_runFrame:function(){var u=this._runtimeAttr.duration,r=new Date()-this.get(n),q=this.get(o),p=(r>=u),s,v;this._runAttrs(r,u,q);this._actualFrames+=1;this._set(l,r);this.fire(i);if(p){this._lastFrame();}},_runAttrs:function(A,z,w){var x=this._runtimeAttr,r=b.Anim.behaviors,y=x.easing,p=z,u=false,q,s,v;if(A>=z){u=true;}if(w){A=z-A;p=0;}for(v in x){if(x[v].to){q=x[v];s=(v in r&&"set" in r[v])?r[v].set:b.Anim.DEFAULT_SETTER;if(!u){s(this,v,q.from,q.to,A,z,y,q.unit);}else{s(this,v,q.from,q.to,p,z,y,q.unit);}}}},_lastFrame:function(){var p=this.get("iterations"),q=this.get(h);q+=1;if(p==="infinite"||q-1&&e>0){for(;g>-1;--g){if(g in f&&f[g]===j){return g;}}}return -1;};a.unique=function(f,l){var k=0,e=f.length,h=[],m,g;for(;k-1;--g){if(m===h[g]){break;}}if(g===-1){h.push(m);}}if(l){if(b.isNumber(h[0])){h.sort(a.numericSort);}else{h.sort();}}return h;};a.filter=c.filter?function(e,g,h){return e.filter(g,h);}:function(g,l,m){var j=0,e=g.length,h=[],k;for(;j.yui3-menu-content>ul:after{content:"";display:block;clear:both;line-height:0;font-size:0;visibility:hidden}.yui3-menu-content{*zoom:1}.yui3-menu-hidden .yui3-menu-content{*zoom:normal}.yui3-menuitem-content,.yui3-menu-label{_zoom:1}.yui3-menu-hidden .yui3-menuitem-content,.yui3-menu-hidden .yui3-menu-label{_zoom:normal}.yui3-skin-sam .yui3-menu-content,.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-content{font-size:93%;line-height:1.5;*line-height:1.45;border:solid 1px #808080;background:#fff;padding:3px 0}.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-content{font-size:100%}.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-content{line-height:2;*line-height:1.9;background:url(sprite.png) repeat-x 0 0;padding:0}.yui3-skin-sam .yui3-menu ul,.yui3-skin-sam .yui3-menu ul ul{margin-top:3px;padding-top:3px;border-top:solid 1px #ccc}.yui3-skin-sam .yui3-menu ul.first-of-type{border:0;margin:0;padding:0}.yui3-skin-sam .yui3-menu-horizontal ul{padding:0;margin:0;border:0}.yui3-skin-sam .yui3-menu li,.yui3-skin-sam .yui3-menu .yui3-menu li{_border-bottom:solid 1px #fff}.yui3-skin-sam .yui3-menu-horizontal li{_border-bottom:0}.yui3-skin-sam .yui3-menubuttonnav li{border-right:solid 1px #ccc}.yui3-skin-sam .yui3-splitbuttonnav li{border-right:solid 1px #808080}.yui3-skin-sam .yui3-menubuttonnav li li,.yui3-skin-sam .yui3-splitbuttonnav li li{border-right:0}.yui3-skin-sam .yui3-menu-label,.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-label,.yui3-skin-sam .yui3-menuitem-content,.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menuitem-content{padding:0 20px;color:#000;text-decoration:none;cursor:default;float:none;border:0;margin:0}.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-label,.yui3-skin-sam .yui3-menu-horizontal .yui3-menuitem-content{padding:0 10px;border-style:solid;border-color:#808080;border-width:1px 0;margin:-1px 0;float:left;width:auto}.yui3-skin-sam .yui3-menu-label,.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-label{background:url(vertical-menu-submenu-indicator.png) right center no-repeat}.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-label{background:url(sprite.png) repeat-x 0 0}.yui3-skin-sam .yui3-menubuttonnav .yui3-menu-label,.yui3-skin-sam .yui3-splitbuttonnav .yui3-menu-label{background-image:none}.yui3-skin-sam .yui3-menubuttonnav .yui3-menu-label{padding-right:0}.yui3-skin-sam .yui3-menubuttonnav .yui3-menu-label em{font-style:normal;padding-right:20px;display:block;background:url(horizontal-menu-submenu-indicator.png) right center no-repeat}.yui3-skin-sam .yui3-splitbuttonnav .yui3-menu-label{padding:0}.yui3-skin-sam .yui3-splitbuttonnav .yui3-menu-label a{float:left;width:auto;color:#000;text-decoration:none;cursor:default;padding:0 5px 0 10px}.yui3-skin-sam .yui3-splitbuttonnav .yui3-menu-label .yui3-menu-toggle{padding:0;border-left:solid 1px #ccc;width:15px;overflow:hidden;text-indent:-1000px;background:url(horizontal-menu-submenu-indicator.png) 3px center no-repeat}.yui3-skin-sam .yui3-menu-label-active,.yui3-skin-sam .yui3-menu-label-menuvisible,.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-label-active,.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-label-menuvisible{background-color:#b3d4ff}.yui3-skin-sam .yui3-menuitem-active .yui3-menuitem-content,.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menuitem-active .yui3-menuitem-content{background-image:none;background-color:#b3d4ff;border-left-width:0;margin-left:0}.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-label-active,.yui3-skin-sam .yui3-menu-horizontal .yui3-menuitem-active .yui3-menuitem-content,.yui3-skin-sam .yui3-menu-horizontal .yui3-menu-label-menuvisible{border-color:#7d98b8;background:url(sprite.png) repeat-x 0 -1700px}.yui3-skin-sam .yui3-menubuttonnav .yui3-menu-label-active,.yui3-skin-sam .yui3-menubuttonnav .yui3-menuitem-active .yui3-menuitem-content,.yui3-skin-sam .yui3-menubuttonnav .yui3-menu-label-menuvisible,.yui3-skin-sam .yui3-splitbuttonnav .yui3-menu-label-active,.yui3-skin-sam .yui3-splitbuttonnav .yui3-menuitem-active .yui3-menuitem-content,.yui3-skin-sam .yui3-splitbuttonnav .yui3-menu-label-menuvisible{border-left-width:1px;margin-left:-1px}.yui3-skin-sam .yui3-splitbuttonnav .yui3-menu-label-menuvisible{border-color:#808080;background:transparent}.yui3-skin-sam .yui3-splitbuttonnav .yui3-menu-label-menuvisible .yui3-menu-toggle{border-color:#7d98b8;background:url(horizontal-menu-submenu-toggle.png) left center no-repeat} diff --git a/lib/yui/3.4.1/build/assets/skins/sam/panel.css b/lib/yui/3.4.1/build/assets/skins/sam/panel.css deleted file mode 100644 index 3c8b32bbbe1..00000000000 --- a/lib/yui/3.4.1/build/assets/skins/sam/panel.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-panel{position:absolute}.yui3-panel-hidden{visibility:hidden}.yui3-widget-tmp-forcesize .yui3-panel-content{overflow:hidden!important}.yui3-panel .yui3-widget-hd{position:relative}.yui3-panel .yui3-widget-hd .yui3-widget-button-wrapper{position:absolute;top:0;right:0}.yui3-panel .yui3-widget-ft .yui3-widget-button-wrapper{display:inline-block;*display:inline;zoom:1}.yui3-skin-sam .yui3-widget-mask{background-color:black;zoom:1;-ms-filter:"alpha(opacity=70)";filter:alpha(opacity=70);opacity:.7}.yui3-skin-sam .yui3-panel-content{-webkit-box-shadow:0 0 5px #333;-moz-box-shadow:0 0 5px #333;box-shadow:0 0 5px #333;border:1px solid black;background:white}.yui3-skin-sam .yui3-panel-content .yui3-widget-hd{padding:8px 28px 8px 8px;min-height:13px;_height:13px;color:white;background-color:#3961c5;background:-moz-linear-gradient(0% 100% 90deg,#2647a0 7%,#3d67ce 50%,#426fd9 100%);background:-webkit-gradient(linear,left bottom,left top,from(#2647a0),color-stop(0.07,#2647a0),color-stop(0.5,#3d67ce),to(#426fd9))}.yui3-skin-sam .yui3-panel-content .yui3-widget-hd .yui3-widget-button-wrapper{padding:8px}.yui3-skin-sam .yui3-panel-content .yui3-widget-bd{padding:10px}.yui3-skin-sam .yui3-panel-content .yui3-widget-ft{background:#edf5ff;padding:8px;text-align:right}.yui3-skin-sam .yui3-panel-content .yui3-widget-ft .yui3-button{padding:2px 8px;margin:0 3px;border:1px solid gray;-moz-border-radius:.435em;-webkit-border-radius:.435em;border-radius:.435em;color:black;background:#d8d8da;background:-moz-linear-gradient(0% 100% 90deg,#d8d8da 18%,#f1f2f2 50%,white 100%);background:-webkit-gradient(linear,left bottom,left top,from(#d8d8da),color-stop(0.18,#d8d8da),color-stop(0.5,#f1f2f2),to(white))} diff --git a/lib/yui/3.4.1/build/assets/skins/sam/rail-x-lines.png b/lib/yui/3.4.1/build/assets/skins/sam/rail-x-lines.png deleted file mode 100644 index c1e9465df1b..00000000000 Binary files a/lib/yui/3.4.1/build/assets/skins/sam/rail-x-lines.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/assets/skins/sam/rail-x.png b/lib/yui/3.4.1/build/assets/skins/sam/rail-x.png deleted file mode 100644 index 2077d968dca..00000000000 Binary files a/lib/yui/3.4.1/build/assets/skins/sam/rail-x.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/assets/skins/sam/rail-y-lines.png b/lib/yui/3.4.1/build/assets/skins/sam/rail-y-lines.png deleted file mode 100644 index 3749aafc36c..00000000000 Binary files a/lib/yui/3.4.1/build/assets/skins/sam/rail-y-lines.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/assets/skins/sam/rail-y.png b/lib/yui/3.4.1/build/assets/skins/sam/rail-y.png deleted file mode 100644 index bf613e662ef..00000000000 Binary files a/lib/yui/3.4.1/build/assets/skins/sam/rail-y.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/assets/skins/sam/tabview.css b/lib/yui/3.4.1/build/assets/skins/sam/tabview.css deleted file mode 100644 index 07a1c6115e7..00000000000 --- a/lib/yui/3.4.1/build/assets/skins/sam/tabview.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-tab-panel{display:none}.yui3-tab-panel-selected{display:block}.yui3-tabview-list,.yui3-tab{margin:0;padding:0;list-style:none}.yui3-tabview{position:relative}.yui3-tabview,.yui3-tabview-list,.yui3-tabview-panel,.yui3-tab,.yui3-tab-panel{zoom:1}.yui3-tab{display:inline-block;*display:inline;vertical-align:bottom;cursor:pointer}.yui3-tab-label{display:block;display:inline-block;padding:6px 10px;position:relative;text-decoration:none;vertical-align:bottom}.yui3-skin-sam .yui3-tabview-list{border:solid #2647a0;border-width:0 0 5px;zoom:1}.yui3-skin-sam .yui3-tab{margin:0 .2em 0 0;padding:1px 0 0;zoom:1}.yui3-skin-sam .yui3-tab-selected{margin-bottom:-1px}.yui3-skin-sam .yui3-tab-label{background:#d8d8d8 url(sprite.png) repeat-x;border:solid #a3a3a3;border-width:1px 1px 0 1px;color:#000;cursor:hand;font-size:85%;padding:.3em .75em;text-decoration:none}.yui3-skin-sam .yui3-tab-label:hover,.yui3-skin-sam .yui3-tab-label:focus{background:#bfdaff url(sprite.png) repeat-x left -1300px;outline:0}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label,.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:focus,.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:hover{background:#2647a0 url(sprite.png) repeat-x left -1400px;color:#fff}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label{padding:.4em .75em}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label{border-color:#243356}.yui3-skin-sam .yui3-tabview-panel{background:#edf5ff}.yui3-skin-sam .yui3-tabview-panel{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em} diff --git a/lib/yui/3.4.1/build/assets/skins/sam/thumb-x.png b/lib/yui/3.4.1/build/assets/skins/sam/thumb-x.png deleted file mode 100644 index aa2a2294950..00000000000 Binary files a/lib/yui/3.4.1/build/assets/skins/sam/thumb-x.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/assets/skins/sam/thumb-y.png b/lib/yui/3.4.1/build/assets/skins/sam/thumb-y.png deleted file mode 100644 index 314c8d144f4..00000000000 Binary files a/lib/yui/3.4.1/build/assets/skins/sam/thumb-y.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/assets/skins/sam/vertical-menu-submenu-indicator.png b/lib/yui/3.4.1/build/assets/skins/sam/vertical-menu-submenu-indicator.png deleted file mode 100644 index 8a8a1aff748..00000000000 Binary files a/lib/yui/3.4.1/build/assets/skins/sam/vertical-menu-submenu-indicator.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/assets/skins/sam/widget-buttons.css b/lib/yui/3.4.1/build/assets/skins/sam/widget-buttons.css deleted file mode 100644 index f0a3654c4e5..00000000000 --- a/lib/yui/3.4.1/build/assets/skins/sam/widget-buttons.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-widget-buttons .yui3-button{display:inline-block;*display:inline;zoom:1;cursor:pointer;text-decoration:none}.yui3-widget-buttons .yui3-button-close,.yui3-widget-buttons .yui3-button-close .yui3-button-content,.yui3-widget-buttons .yui3-button-close .yui3-button-icon{display:inline-block;*display:inline;zoom:1;width:13px;height:13px;line-height:13px;vertical-align:top}.yui3-widget-buttons .yui3-button-close .yui3-button-icon{background-repeat:no-repeat;background-position:1px 1px}.yui3-skin-sam .yui3-widget-buttons .yui3-button-icon{background-image:url(sprite_icons.gif)} diff --git a/lib/yui/3.4.1/build/attribute-base/attribute-base-min.js b/lib/yui/3.4.1/build/attribute-base/attribute-base-min.js deleted file mode 100644 index 35f81a81f8d..00000000000 --- a/lib/yui/3.4.1/build/attribute-base/attribute-base-min.js +++ /dev/null @@ -1,8 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("attribute-base",function(c){c.State=function(){this.data={};};c.State.prototype={add:function(B,C,E){var D=this.data;D[C]=D[C]||{};D[C][B]=E;},addAll:function(B,D){var C;for(C in D){if(D.hasOwnProperty(C)){this.add(B,C,D[C]);}}},remove:function(B,C){var D=this.data;if(D[C]&&(B in D[C])){delete D[C][B];}},removeAll:function(B,D){var C=this.data;c.each(D||C,function(F,E){if(c.Lang.isString(E)){this.remove(B,E);}else{this.remove(B,F);}},this);},get:function(B,C){var D=this.data;return(D[C]&&B in D[C])?D[C][B]:undefined;},getAll:function(B){var D=this.data,C;c.each(D,function(F,E){if(B in D[E]){C=C||{};C[E]=F[B];}},this);return C;}};var k=c.Object,f=c.Lang,l=c.EventTarget,w=".",t="Change",n="getter",m="setter",o="readOnly",x="writeOnce",u="initOnly",A="validator",h="value",p="valueFn",e="broadcast",r="lazyAdd",j="_bypassProxy",z="added",b="initializing",i="initValue",v="published",s="defaultValue",a="lazy",q="isLazyAdd",g,y={};y[o]=1;y[x]=1;y[n]=1;y[e]=1;function d(C,B,D){var E=this;E._ATTR_E_FACADE={};l.call(E,{emitFacade:true});E._conf=E._state=new c.State();E._stateProxy=E._stateProxy||null;E._requireAddAttr=E._requireAddAttr||false;this._initAttrs(C,B,D);}d.INVALID_VALUE={};g=d.INVALID_VALUE;d._ATTR_CFG=[m,n,A,h,p,x,o,r,e,j];d.prototype={addAttr:function(C,B,E){var F=this,H=F._state,G,D;E=(r in B)?B[r]:E;if(E&&!F.attrAdded(C)){H.add(C,a,B||{});H.add(C,z,true);}else{if(!F.attrAdded(C)||H.get(C,q)){B=B||{};D=(h in B);if(D){G=B.value;delete B.value;}B.added=true;B.initializing=true;H.addAll(C,B);if(D){F.set(C,G);}H.remove(C,b);}}return F;},attrAdded:function(B){return !!this._state.get(B,z);},modifyAttr:function(C,B){var D=this,F,E;if(D.attrAdded(C)){if(D._isLazyAttr(C)){D._addLazyAttr(C);}E=D._state;for(F in B){if(y[F]&&B.hasOwnProperty(F)){E.add(C,F,B[F]);if(F===e){E.remove(C,v);}}}}},removeAttr:function(B){this._state.removeAll(B);},get:function(B){return this._getAttr(B);},_isLazyAttr:function(B){return this._state.get(B,a);},_addLazyAttr:function(C){var D=this._state,B=D.get(C,a);D.add(C,q,true);D.remove(C,a);this.addAttr(C,B);},set:function(B,D,C){return this._setAttr(B,D,C);},reset:function(B){var D=this,C;if(B){if(D._isLazyAttr(B)){D._addLazyAttr(B);}D.set(B,D._state.get(B,i));}else{C=D._state.data.added;c.each(C,function(E,F){D.reset(F);},D);}return D;},_set:function(B,D,C){return this._setAttr(B,D,C,true);},_getAttr:function(D){var E=this,I=D,F=E._state,G,B,H,C;if(D.indexOf(w)!==-1){G=D.split(w);D=G.shift();}if(E._tCfgs&&E._tCfgs[D]){C={};C[D]=E._tCfgs[D];delete E._tCfgs[D];E._addAttrs(C,E._tVals);}if(E._isLazyAttr(D)){E._addLazyAttr(D);}H=E._getStateVal(D);B=F.get(D,n);if(B&&!B.call){B=this[B];}H=(B)?B.call(E,H,I):H;H=(G)?k.getValue(H,G):H;return H;},_setAttr:function(D,G,B,E){var K=true,C=this._state,H=this._stateProxy,M=C.data,J,N,O,F,I,L;if(D.indexOf(w)!==-1){N=D;O=D.split(w);D=O.shift();}if(this._isLazyAttr(D)){this._addLazyAttr(D);}J=(!M.value||!(D in M.value));if(H&&D in H&&!this._state.get(D,j)){J=false;}if(this._requireAddAttr&&!this.attrAdded(D)){}else{I=C.get(D,x);L=C.get(D,b);if(!J&&!E){if(I){K=false;}if(C.get(D,o)){K=false;}}if(!L&&!E&&I===u){K=false;}if(K){if(!J){F=this.get(D);}if(O){G=k.setValue(c.clone(F),O,G);if(G===undefined){K=false;}}if(K){if(L){this._setAttrVal(D,N,F,G);}else{this._fireAttrChange(D,N,F,G,B);}}}}return this;},_fireAttrChange:function(H,G,E,D,B){var J=this,F=H+t,C=J._state,I;if(!C.get(H,v)){J.publish(F,{queuable:false,defaultTargetOnly:true,defaultFn:J._defAttrChangeFn,silent:true,broadcast:C.get(H,e)});C.add(H,v,true);}I=(B)?c.merge(B):J._ATTR_E_FACADE;I.attrName=H;I.subAttrName=G;I.prevVal=E;I.newVal=D;J.fire(F,I);},_defAttrChangeFn:function(B){if(!this._setAttrVal(B.attrName,B.subAttrName,B.prevVal,B.newVal)){B.stopImmediatePropagation();}else{B.newVal=this.get(B.attrName);}},_getStateVal:function(B){var C=this._stateProxy;return C&&(B in C)&&!this._state.get(B,j)?C[B]:this._state.get(B,h);},_setStateVal:function(B,D){var C=this._stateProxy;if(C&&(B in C)&&!this._state.get(B,j)){C[B]=D;}else{this._state.add(B,h,D);}},_setAttrVal:function(M,L,I,G){var O=this,J=true,D=O._state,E=D.get(M,A),H=D.get(M,m),K=D.get(M,b),N=this._getStateVal(M),C=L||M,F,B;if(E){if(!E.call){E=this[E];}if(E){B=E.call(O,G,C);if(!B&&K){G=D.get(M,s);B=true;}}}if(!E||B){if(H){if(!H.call){H=this[H];}if(H){F=H.call(O,G,C);if(F===g){J=false;}else{if(F!==undefined){G=F;}}}}if(J){if(!L&&(G===N)&&!f.isObject(G)){J=false;}else{if(D.get(M,i)===undefined){D.add(M,i,G);}O._setStateVal(M,G);}}}else{J=false;}return J;},setAttrs:function(B,C){return this._setAttrs(B,C);},_setAttrs:function(C,D){for(var B in C){if(C.hasOwnProperty(B)){this.set(B,C[B]);}}return this;},getAttrs:function(B){return this._getAttrs(B);},_getAttrs:function(E){var G=this,I={},F,C,B,H,D=(E===true);E=(E&&!D)?E:k.keys(G._state.data.added);for(F=0,C=E.length;FY.Base extension that provides core autocomplete logic (but no - * UI implementation) for a text input field or textarea. Must be mixed into a - * Y.Base-derived class to be useful. - * - * @submodule autocomplete-base - */ - -/** - *

- * Extension that provides core autocomplete logic (but no UI implementation) - * for a text input field or textarea. - *

- * - *

- * The AutoCompleteBase class provides events and attributes that - * abstract away core autocomplete logic and configuration, but does not provide - * a widget implementation or suggestion UI. For a prepackaged autocomplete - * widget, see AutoCompleteList. - *

- * - *

- * This extension cannot be instantiated directly, since it doesn't provide an - * actual implementation. It's intended to be mixed into a - * Y.Base-based class or widget. - *

- * - *

- * Y.Widget-based example: - *

- * - *
- * YUI().use('autocomplete-base', 'widget', function (Y) {
- *   var MyAC = Y.Base.create('myAC', Y.Widget, [Y.AutoCompleteBase], {
- *     // Custom prototype methods and properties.
- *   }, {
- *     // Custom static methods and properties.
- *   });
- *  
- *   // Custom implementation code.
- * });
- * 
- * - *

- * Y.Base-based example: - *

- * - *
- * YUI().use('autocomplete-base', function (Y) {
- *   var MyAC = Y.Base.create('myAC', Y.Base, [Y.AutoCompleteBase], {
- *     initializer: function () {
- *       this._bindUIACBase();
- *       this._syncUIACBase();
- *     },
- *  
- *     // Custom prototype methods and properties.
- *   }, {
- *     // Custom static methods and properties.
- *   });
- *  
- *   // Custom implementation code.
- * });
- * 
- * - * @class AutoCompleteBase - */ - -var Escape = Y.Escape, - Lang = Y.Lang, - YArray = Y.Array, - YObject = Y.Object, - - isFunction = Lang.isFunction, - isString = Lang.isString, - trim = Lang.trim, - - INVALID_VALUE = Y.Attribute.INVALID_VALUE, - - _FUNCTION_VALIDATOR = '_functionValidator', - _SOURCE_SUCCESS = '_sourceSuccess', - - ALLOW_BROWSER_AC = 'allowBrowserAutocomplete', - INPUT_NODE = 'inputNode', - QUERY = 'query', - QUERY_DELIMITER = 'queryDelimiter', - REQUEST_TEMPLATE = 'requestTemplate', - RESULTS = 'results', - RESULT_LIST_LOCATOR = 'resultListLocator', - VALUE = 'value', - VALUE_CHANGE = 'valueChange', - - EVT_CLEAR = 'clear', - EVT_QUERY = QUERY, - EVT_RESULTS = RESULTS; - -function AutoCompleteBase() { - // AOP bindings. - Y.before(this._bindUIACBase, this, 'bindUI'); - Y.before(this._destructorACBase, this, 'destructor'); - Y.before(this._syncUIACBase, this, 'syncUI'); - - // -- Public Events -------------------------------------------------------- - - /** - * Fires after the query has been completely cleared or no longer meets the - * minimum query length requirement. - * - * @event clear - * @param {EventFacade} e Event facade with the following additional - * properties: - * - *
- *
prevVal (String)
- *
- * Value of the query before it was cleared. - *
- *
- * - * @preventable _defClearFn - */ - this.publish(EVT_CLEAR, { - defaultFn: this._defClearFn - }); - - /** - * Fires when the contents of the input field have changed and the input - * value meets the criteria necessary to generate an autocomplete query. - * - * @event query - * @param {EventFacade} e Event facade with the following additional - * properties: - * - *
- *
inputValue (String)
- *
- * Full contents of the text input field or textarea that generated - * the query. - *
- * - *
query (String)
- *
- * Autocomplete query. This is the string that will be used to - * request completion results. It may or may not be the same as - * inputValue. - *
- *
- * - * @preventable _defQueryFn - */ - this.publish(EVT_QUERY, { - defaultFn: this._defQueryFn - }); - - /** - * Fires after query results are received from the source. If - * no source has been set, this event will not fire. - * - * @event results - * @param {EventFacade} e Event facade with the following additional - * properties: - * - *
- *
data (Array|Object)
- *
- * Raw, unfiltered result data (if available). - *
- * - *
query (String)
- *
- * Query that generated these results. - *
- * - *
results (Array)
- *
- * Array of filtered, formatted, and highlighted results. Each item in - * the array is an object with the following properties: - * - *
- *
display (Node|HTMLElement|String)
- *
- * Formatted result HTML suitable for display to the user. If no - * custom formatter is set, this will be an HTML-escaped version of - * the string in the text property. - *
- * - *
highlighted (String)
- *
- * Highlighted (but not formatted) result text. This property will - * only be set if a highlighter is in use. - *
- * - *
raw (mixed)
- *
- * Raw, unformatted result in whatever form it was provided by the - * source. - *
- * - *
text (String)
- *
- * Plain text version of the result, suitable for being inserted - * into the value of a text input field or textarea when the result - * is selected by a user. This value is not HTML-escaped and should - * not be inserted into the page using innerHTML. - *
- *
- *
- *
- * - * @preventable _defResultsFn - */ - this.publish(EVT_RESULTS, { - defaultFn: this._defResultsFn - }); -} - -// -- Public Static Properties ------------------------------------------------- -AutoCompleteBase.ATTRS = { - /** - * Whether or not to enable the browser's built-in autocomplete - * functionality for input fields. - * - * @attribute allowBrowserAutocomplete - * @type Boolean - * @default false - */ - allowBrowserAutocomplete: { - value: false - }, - - /** - * When a queryDelimiter is set, trailing delimiters will - * automatically be stripped from the input value by default when the - * input node loses focus. Set this to true to allow trailing - * delimiters. - * - * @attribute allowTrailingDelimiter - * @type Boolean - * @default false - */ - allowTrailingDelimiter: { - value: false - }, - - /** - * Node to monitor for changes, which will generate query - * events when appropriate. May be either an input field or a textarea. - * - * @attribute inputNode - * @type Node|HTMLElement|String - * @writeonce - */ - inputNode: { - setter: Y.one, - writeOnce: 'initOnly' - }, - - /** - * Maximum number of results to return. A value of 0 or less - * will allow an unlimited number of results. - * - * @attribute maxResults - * @type Number - * @default 0 - */ - maxResults: { - value: 0 - }, - - /** - * Minimum number of characters that must be entered before a - * query event will be fired. A value of 0 - * allows empty queries; a negative value will effectively disable all - * query events. - * - * @attribute minQueryLength - * @type Number - * @default 1 - */ - minQueryLength: { - value: 1 - }, - - /** - *

- * Current query, or null if there is no current query. - *

- * - *

- * The query might not be the same as the current value of the input - * node, both for timing reasons (due to queryDelay) and - * because when one or more queryDelimiter separators are - * in use, only the last portion of the delimited input string will be - * used as the query value. - *

- * - * @attribute query - * @type String|null - * @default null - * @readonly - */ - query: { - readOnly: true, - value: null - }, - - /** - *

- * Number of milliseconds to delay after input before triggering a - * query event. If new input occurs before this delay is - * over, the previous input event will be ignored and a new delay will - * begin. - *

- * - *

- * This can be useful both to throttle queries to a remote data source - * and to avoid distracting the user by showing them less relevant - * results before they've paused their typing. - *

- * - * @attribute queryDelay - * @type Number - * @default 100 - */ - queryDelay: { - value: 100 - }, - - /** - * Query delimiter string. When a delimiter is configured, the input value - * will be split on the delimiter, and only the last portion will be used in - * autocomplete queries and updated when the query attribute is - * modified. - * - * @attribute queryDelimiter - * @type String|null - * @default null - */ - queryDelimiter: { - value: null - }, - - /** - *

- * Source request template. This can be a function that accepts a query as a - * parameter and returns a request string, or it can be a string containing - * the placeholder "{query}", which will be replaced with the actual - * URI-encoded query. In either case, the resulting string will be appended - * to the request URL when the source attribute is set to a - * remote DataSource, JSONP URL, or XHR URL (it will not be appended to YQL - * URLs). - *

- * - *

- * While requestTemplate may be set to either a function or - * a string, it will always be returned as a function that accepts a - * query argument and returns a string. - *

- * - * @attribute requestTemplate - * @type Function|String|null - * @default null - */ - requestTemplate: { - setter: '_setRequestTemplate', - value: null - }, - - /** - *

- * Array of local result filter functions. If provided, each filter - * will be called with two arguments when results are received: the query - * and an array of result objects. See the documentation for the - * results event for a list of the properties available on each - * result object. - *

- * - *

- * Each filter is expected to return a filtered or modified version of the - * results array, which will then be passed on to subsequent filters, then - * the resultHighlighter function (if set), then the - * resultFormatter function (if set), and finally to - * subscribers to the results event. - *

- * - *

- * If no source is set, result filters will not be called. - *

- * - *

- * Prepackaged result filters provided by the autocomplete-filters and - * autocomplete-filters-accentfold modules can be used by specifying the - * filter name as a string, such as 'phraseMatch' (assuming - * the necessary filters module is loaded). - *

- * - * @attribute resultFilters - * @type Array - * @default [] - */ - resultFilters: { - setter: '_setResultFilters', - value: [] - }, - - /** - *

- * Function which will be used to format results. If provided, this function - * will be called with two arguments after results have been received and - * filtered: the query and an array of result objects. The formatter is - * expected to return an array of HTML strings or Node instances containing - * the desired HTML for each result. - *

- * - *

- * See the documentation for the results event for a list of - * the properties available on each result object. - *

- * - *

- * If no source is set, the formatter will not be called. - *

- * - * @attribute resultFormatter - * @type Function|null - */ - resultFormatter: { - validator: _FUNCTION_VALIDATOR - }, - - /** - *

- * Function which will be used to highlight results. If provided, this - * function will be called with two arguments after results have been - * received and filtered: the query and an array of filtered result objects. - * The highlighter is expected to return an array of highlighted result - * text in the form of HTML strings. - *

- * - *

- * See the documentation for the results event for a list of - * the properties available on each result object. - *

- * - *

- * If no source is set, the highlighter will not be called. - *

- * - * @attribute resultHighlighter - * @type Function|null - */ - resultHighlighter: { - setter: '_setResultHighlighter' - }, - - /** - *

- * Locator that should be used to extract an array of results from a - * non-array response. - *

- * - *

- * By default, no locator is applied, and all responses are assumed to be - * arrays by default. If all responses are already arrays, you don't need to - * define a locator. - *

- * - *

- * The locator may be either a function (which will receive the raw response - * as an argument and must return an array) or a string representing an - * object path, such as "foo.bar.baz" (which would return the value of - * result.foo.bar.baz if the response is an object). - *

- * - *

- * While resultListLocator may be set to either a function or a - * string, it will always be returned as a function that accepts a response - * argument and returns an array. - *

- * - * @attribute resultListLocator - * @type Function|String|null - */ - resultListLocator: { - setter: '_setLocator' - }, - - /** - * Current results, or an empty array if there are no results. - * - * @attribute results - * @type Array - * @default [] - * @readonly - */ - results: { - readOnly: true, - value: [] - }, - - /** - *

- * Locator that should be used to extract a plain text string from a - * non-string result item. The resulting text value will typically be the - * value that ends up being inserted into an input field or textarea when - * the user of an autocomplete implementation selects a result. - *

- * - *

- * By default, no locator is applied, and all results are assumed to be - * plain text strings. If all results are already plain text strings, you - * don't need to define a locator. - *

- * - *

- * The locator may be either a function (which will receive the raw result - * as an argument and must return a string) or a string representing an - * object path, such as "foo.bar.baz" (which would return the value of - * result.foo.bar.baz if the result is an object). - *

- * - *

- * While resultTextLocator may be set to either a function or a - * string, it will always be returned as a function that accepts a result - * argument and returns a string. - *

- * - * @attribute resultTextLocator - * @type Function|String|null - */ - resultTextLocator: { - setter: '_setLocator' - }, - - /** - *

- * Source for autocomplete results. The following source types are - * supported: - *

- * - *
- *
Array
- *
- *

- * Example: ['first result', 'second result', 'etc'] - *

- * - *

- * The full array will be provided to any configured filters for each - * query. This is an easy way to create a fully client-side autocomplete - * implementation. - *

- *
- * - *
DataSource
- *
- *

- * A DataSource instance or other object that provides a - * DataSource-like sendRequest method. See the - * DataSource documentation for details. - *

- *
- * - *
Function
- *
- *

- * Example (synchronous): function (query) { return ['foo', 'bar']; }
- Example (async): function (query, callback) { callback(['foo', 'bar']); } - *

- * - *

- * A function source will be called with the current query and a - * callback function as parameters, and should either return an array of - * results (for synchronous operation) or return nothing and pass an - * array of results to the provided callback (for asynchronous - * operation). - *

- *
- * - *
Object
- *
- *

- * Example: {foo: ['foo result 1', 'foo result 2'], bar: ['bar result']} - *

- * - *

- * An object will be treated as a query hashmap. If a property on the - * object matches the current query, the value of that property will be - * used as the response. - *

- * - *

- * The response is assumed to be an array of results by default. If the - * response is not an array, provide a resultListLocator to - * process the response and return an array. - *

- *
- *
- * - *

- * If the optional autocomplete-sources module is loaded, then - * the following additional source types will be supported as well: - *

- * - *
- *
<select> Node
- *
- *

- * You may provide a YUI Node instance wrapping a <select> - * element, and the options in the list will be used as results. You - * will also need to specify a resultTextLocator of 'text' - * or 'value', depending on what you want to use as the text of the - * result. - *

- * - *

- * Each result will be an object with the following properties: - *

- * - *
- *
html (String)
- *
- *

HTML content of the <option> element.

- *
- * - *
index (Number)
- *
- *

Index of the <option> element in the list.

- *
- * - *
node (Y.Node)
- *
- *

Node instance referring to the original <option> element.

- *
- * - *
selected (Boolean)
- *
- *

Whether or not this item is currently selected in the - * <select> list.

- *
- * - *
text (String)
- *
- *

Text content of the <option> element.

- *
- * - *
value (String)
- *
- *

Value of the <option> element.

- *
- *
- *
- * - *
String (JSONP URL)
- *
- *

- * Example: 'http://example.com/search?q={query}&callback={callback}' - *

- * - *

- * If a URL with a {callback} placeholder is provided, it - * will be used to make a JSONP request. The {query} - * placeholder will be replaced with the current query, and the - * {callback} placeholder will be replaced with an - * internally-generated JSONP callback name. Both placeholders must - * appear in the URL, or the request will fail. An optional - * {maxResults} placeholder may also be provided, and will - * be replaced with the value of the maxResults attribute (or 1000 if - * the maxResults attribute is 0 or less). - *

- * - *

- * The response is assumed to be an array of results by default. If the - * response is not an array, provide a resultListLocator to - * process the response and return an array. - *

- * - *

- * The jsonp module must be loaded in order for - * JSONP URL sources to work. If the jsonp module - * is not already loaded, it will be loaded on demand if possible. - *

- *
- * - *
String (XHR URL)
- *
- *

- * Example: 'http://example.com/search?q={query}' - *

- * - *

- * If a URL without a {callback} placeholder is provided, - * it will be used to make a same-origin XHR request. The - * {query} placeholder will be replaced with the current - * query. An optional {maxResults} placeholder may also be - * provided, and will be replaced with the value of the maxResults - * attribute (or 1000 if the maxResults attribute is 0 or less). - *

- * - *

- * The response is assumed to be a JSON array of results by default. If - * the response is a JSON object and not an array, provide a - * resultListLocator to process the response and return an - * array. If the response is in some form other than JSON, you will - * need to use a custom DataSource instance as the source. - *

- * - *

- * The io-base and json-parse modules - * must be loaded in order for XHR URL sources to work. If - * these modules are not already loaded, they will be loaded on demand - * if possible. - *

- *
- * - *
String (YQL query)
- *
- *

- * Example: 'select * from search.suggest where query="{query}"' - *

- * - *

- * If a YQL query is provided, it will be used to make a YQL request. - * The {query} placeholder will be replaced with the - * current autocomplete query. This placeholder must appear in the YQL - * query, or the request will fail. An optional - * {maxResults} placeholder may also be provided, and will - * be replaced with the value of the maxResults attribute (or 1000 if - * the maxResults attribute is 0 or less). - *

- * - *

- * The yql module must be loaded in order for YQL - * sources to work. If the yql module is not - * already loaded, it will be loaded on demand if possible. - *

- *
- *
- * - *

- * As an alternative to providing a source, you could simply listen for - * query events and handle them any way you see fit. Providing - * a source is optional, but will usually be simpler. - *

- * - * @attribute source - * @type Array|DataSource|Function|Node|Object|String|null - */ - source: { - setter: '_setSource' - }, - - /** - *

- * May be used to force a specific source type, overriding the automatic - * source type detection. It should almost never be necessary to do this, - * but as they taught us in the Boy Scouts, one should always be prepared, - * so it's here if you need it. Be warned that if you set this attribute and - * something breaks, it's your own fault. - *

- * - *

- * Supported sourceType values are: 'array', 'datasource', - * 'function', and 'object'. - *

- * - *

- * If the autocomplete-sources module is loaded, the following - * additional source types are supported: 'io', 'jsonp', 'select', - * 'string', 'yql' - *

- * - * @attribute sourceType - * @type String - */ - sourceType: { - value: null - }, - - /** - * If the inputNode specified at instantiation time has a - * node-tokeninput plugin attached to it, this attribute will - * be a reference to the Y.Plugin.TokenInput instance. - * - * @attribute tokenInput - * @type Plugin.TokenInput - * @readonly - */ - tokenInput: { - readOnly: true - }, - - /** - * Current value of the input node. - * - * @attribute value - * @type String - * @default '' - */ - value: { - // Why duplicate this._inputNode.get('value')? Because we need a - // reliable way to track the source of value changes. We want to perform - // completion when the user changes the value, but not when we change - // the value. - value: '' - } -}; - -AutoCompleteBase.CSS_PREFIX = 'ac'; -AutoCompleteBase.UI_SRC = (Y.Widget && Y.Widget.UI_SRC) || 'ui'; - -/** - * Mapping of built-in source types to their setter functions. DataSource - * instances and DataSource-like objects are handled natively, so are not - * mapped here. - * - * @property SOURCE_TYPES - * @type {Object} - * @static - */ -AutoCompleteBase.SOURCE_TYPES = { - array : '_createArraySource', - 'function': '_createFunctionSource', - object : '_createObjectSource' -}; - -AutoCompleteBase.prototype = { - // -- Public Prototype Methods --------------------------------------------- - - /** - *

- * Sends a request to the configured source. If no source is configured, - * this method won't do anything. - *

- * - *

- * Usually there's no reason to call this method manually; it will be - * called automatically when user input causes a query event to - * be fired. The only time you'll need to call this method manually is if - * you want to force a request to be sent when no user input has occurred. - *

- * - * @method sendRequest - * @param {String} query (optional) Query to send. If specified, the - * query attribute will be set to this query. If not - * specified, the current value of the query attribute will - * be used. - * @param {Function} requestTemplate (optional) Request template function. - * If not specified, the current value of the requestTemplate - * attribute will be used. - * @chainable - */ - sendRequest: function (query, requestTemplate) { - var request, - source = this.get('source'); - - if (query || query === '') { - this._set(QUERY, query); - } else { - query = this.get(QUERY) || ''; - } - - if (source) { - if (!requestTemplate) { - requestTemplate = this.get(REQUEST_TEMPLATE); - } - - request = requestTemplate ? - requestTemplate.call(this, query) : query; - - Y.log('sendRequest: ' + request, 'info', 'autocomplete-base'); - - source.sendRequest({ - query : query, - request: request, - - callback: { - success: Y.bind(this._onResponse, this, query) - } - }); - } - - return this; - }, - - // -- Protected Lifecycle Methods ------------------------------------------ - - /** - * Attaches event listeners and behaviors. - * - * @method _bindUIACBase - * @protected - */ - _bindUIACBase: function () { - var inputNode = this.get(INPUT_NODE), - tokenInput = inputNode && inputNode.tokenInput; - - // If the inputNode has a node-tokeninput plugin attached, bind to the - // plugin's inputNode instead. - if (tokenInput) { - inputNode = tokenInput.get(INPUT_NODE); - this._set('tokenInput', tokenInput); - } - - if (!inputNode) { - Y.error('No inputNode specified.'); - return; - } - - this._inputNode = inputNode; - - this._acBaseEvents = new Y.EventHandle([ - // This is the valueChange event on the inputNode, provided by the - // event-valuechange module, not our own valueChange. - inputNode.on(VALUE_CHANGE, this._onInputValueChange, this), - inputNode.on('blur', this._onInputBlur, this), - - this.after(ALLOW_BROWSER_AC + 'Change', this._syncBrowserAutocomplete), - this.after('sourceTypeChange', this._afterSourceTypeChange), - this.after(VALUE_CHANGE, this._afterValueChange) - ]); - }, - - /** - * Detaches AutoCompleteBase event listeners. - * - * @method _destructorACBase - * @protected - */ - _destructorACBase: function () { - this._acBaseEvents.detach(); - }, - - /** - * Synchronizes the UI state of the inputNode. - * - * @method _syncUIACBase - * @protected - */ - _syncUIACBase: function () { - this._syncBrowserAutocomplete(); - this.set(VALUE, this.get(INPUT_NODE).get(VALUE)); - }, - - // -- Protected Prototype Methods ------------------------------------------ - - /** - * Creates a DataSource-like object that simply returns the specified array - * as a response. See the source attribute for more details. - * - * @method _createArraySource - * @param {Array} source - * @return {Object} DataSource-like object. - * @protected - */ - _createArraySource: function (source) { - var that = this; - - return { - type: 'array', - sendRequest: function (request) { - that[_SOURCE_SUCCESS](source.concat(), request); - } - }; - }, - - /** - * Creates a DataSource-like object that passes the query to a - * custom-defined function, which is expected to call the provided callback - * with an array of results. See the source attribute for more - * details. - * - * @method _createFunctionSource - * @param {Function} source Function that accepts a query and a callback as - * parameters, and calls the callback with an array of results. - * @return {Object} DataSource-like object. - * @protected - */ - _createFunctionSource: function (source) { - var that = this; - - return { - type: 'function', - sendRequest: function (request) { - var value; - - function afterResults(results) { - that[_SOURCE_SUCCESS](results || [], request); - } - - // Allow both synchronous and asynchronous functions. If we get - // a truthy return value, assume the function is synchronous. - if ((value = source(request.query, afterResults))) { - afterResults(value); - } - } - }; - }, - - /** - * Creates a DataSource-like object that looks up queries as properties on - * the specified object, and returns the found value (if any) as a response. - * See the source attribute for more details. - * - * @method _createObjectSource - * @param {Object} source - * @return {Object} DataSource-like object. - * @protected - */ - _createObjectSource: function (source) { - var that = this; - - return { - type: 'object', - sendRequest: function (request) { - var query = request.query; - - that[_SOURCE_SUCCESS]( - YObject.owns(source, query) ? source[query] : [], - request - ); - } - }; - }, - - /** - * Returns true if value is either a function or - * null. - * - * @method _functionValidator - * @param {Function|null} value Value to validate. - * @protected - */ - _functionValidator: function (value) { - return value === null || isFunction(value); - }, - - /** - * Faster and safer alternative to Y.Object.getValue(). Doesn't bother - * casting the path to an array (since we already know it's an array) and - * doesn't throw an error if a value in the middle of the object hierarchy - * is neither undefined nor an object. - * - * @method _getObjectValue - * @param {Object} obj - * @param {Array} path - * @return {mixed} Located value, or undefined if the value was - * not found at the specified path. - * @protected - */ - _getObjectValue: function (obj, path) { - if (!obj) { - return; - } - - for (var i = 0, len = path.length; obj && i < len; i++) { - obj = obj[path[i]]; - } - - return obj; - }, - - /** - * Parses result responses, performs filtering and highlighting, and fires - * the results event. - * - * @method _parseResponse - * @param {String} query Query that generated these results. - * @param {Object} response Response containing results. - * @param {Object} data Raw response data. - * @protected - */ - _parseResponse: function (query, response, data) { - var facade = { - data : data, - query : query, - results: [] - }, - - listLocator = this.get(RESULT_LIST_LOCATOR), - results = [], - unfiltered = response && response.results, - - filters, - formatted, - formatter, - highlighted, - highlighter, - i, - len, - maxResults, - result, - text, - textLocator; - - if (unfiltered && listLocator) { - unfiltered = listLocator.call(this, unfiltered); - } - - if (unfiltered && unfiltered.length) { - filters = this.get('resultFilters'); - textLocator = this.get('resultTextLocator'); - - // Create a lightweight result object for each result to make them - // easier to work with. The various properties on the object - // represent different formats of the result, and will be populated - // as we go. - for (i = 0, len = unfiltered.length; i < len; ++i) { - result = unfiltered[i]; - - text = textLocator ? - textLocator.call(this, result) : - result.toString(); - - results.push({ - display: Escape.html(text), - raw : result, - text : text - }); - } - - // Run the results through all configured result filters. Each - // filter returns an array of (potentially fewer) result objects, - // which is then passed to the next filter, and so on. - for (i = 0, len = filters.length; i < len; ++i) { - results = filters[i].call(this, query, results.concat()); - - if (!results) { - Y.log("Filter didn't return anything.", 'warn', 'autocomplete-base'); - return; - } - - if (!results.length) { - break; - } - } - - if (results.length) { - formatter = this.get('resultFormatter'); - highlighter = this.get('resultHighlighter'); - maxResults = this.get('maxResults'); - - // If maxResults is set and greater than 0, limit the number of - // results. - if (maxResults && maxResults > 0 && - results.length > maxResults) { - results.length = maxResults; - } - - // Run the results through the configured highlighter (if any). - // The highlighter returns an array of highlighted strings (not - // an array of result objects), and these strings are then added - // to each result object. - if (highlighter) { - highlighted = highlighter.call(this, query, - results.concat()); - - if (!highlighted) { - Y.log("Highlighter didn't return anything.", 'warn', 'autocomplete-base'); - return; - } - - for (i = 0, len = highlighted.length; i < len; ++i) { - result = results[i]; - result.highlighted = highlighted[i]; - result.display = result.highlighted; - } - } - - // Run the results through the configured formatter (if any) to - // produce the final formatted results. The formatter returns an - // array of strings or Node instances (not an array of result - // objects), and these strings/Nodes are then added to each - // result object. - if (formatter) { - formatted = formatter.call(this, query, results.concat()); - - if (!formatted) { - Y.log("Formatter didn't return anything.", 'warn', 'autocomplete-base'); - return; - } - - for (i = 0, len = formatted.length; i < len; ++i) { - results[i].display = formatted[i]; - } - } - } - } - - facade.results = results; - this.fire(EVT_RESULTS, facade); - }, - - /** - *

- * Returns the query portion of the specified input value, or - * null if there is no suitable query within the input value. - *

- * - *

- * If a query delimiter is defined, the query will be the last delimited - * part of of the string. - *

- * - * @method _parseValue - * @param {String} value Input value from which to extract the query. - * @return {String|null} query - * @protected - */ - _parseValue: function (value) { - var delim = this.get(QUERY_DELIMITER); - - if (delim) { - value = value.split(delim); - value = value[value.length - 1]; - } - - return Lang.trimLeft(value); - }, - - /** - * Setter for locator attributes. - * - * @method _setLocator - * @param {Function|String|null} locator - * @return {Function|null} - * @protected - */ - _setLocator: function (locator) { - if (this[_FUNCTION_VALIDATOR](locator)) { - return locator; - } - - var that = this; - - locator = locator.toString().split('.'); - - return function (result) { - return result && that._getObjectValue(result, locator); - }; - }, - - /** - * Setter for the requestTemplate attribute. - * - * @method _setRequestTemplate - * @param {Function|String|null} template - * @return {Function|null} - * @protected - */ - _setRequestTemplate: function (template) { - if (this[_FUNCTION_VALIDATOR](template)) { - return template; - } - - template = template.toString(); - - return function (query) { - return Lang.sub(template, {query: encodeURIComponent(query)}); - }; - }, - - /** - * Setter for the resultFilters attribute. - * - * @method _setResultFilters - * @param {Array|Function|String|null} filters null, a filter - * function, an array of filter functions, or a string or array of strings - * representing the names of methods on - * Y.AutoCompleteFilters. - * @return {Array} Array of filter functions (empty if filters is - * null). - * @protected - */ - _setResultFilters: function (filters) { - var acFilters, getFilterFunction; - - if (filters === null) { - return []; - } - - acFilters = Y.AutoCompleteFilters; - - getFilterFunction = function (filter) { - if (isFunction(filter)) { - return filter; - } - - if (isString(filter) && acFilters && - isFunction(acFilters[filter])) { - return acFilters[filter]; - } - - return false; - }; - - if (Lang.isArray(filters)) { - filters = YArray.map(filters, getFilterFunction); - return YArray.every(filters, function (f) { return !!f; }) ? - filters : INVALID_VALUE; - } else { - filters = getFilterFunction(filters); - return filters ? [filters] : INVALID_VALUE; - } - }, - - /** - * Setter for the resultHighlighter attribute. - * - * @method _setResultHighlighter - * @param {Function|String|null} highlighter null, a - * highlighter function, or a string representing the name of a method on - * Y.AutoCompleteHighlighters. - * @return {Function|null} - * @protected - */ - _setResultHighlighter: function (highlighter) { - var acHighlighters; - - if (this._functionValidator(highlighter)) { - return highlighter; - } - - acHighlighters = Y.AutoCompleteHighlighters; - - if (isString(highlighter) && acHighlighters && - isFunction(acHighlighters[highlighter])) { - return acHighlighters[highlighter]; - } - - return INVALID_VALUE; - }, - - /** - * Setter for the source attribute. Returns a DataSource or - * a DataSource-like object depending on the type of source and/or - * the value of the sourceType attribute. - * - * @method _setSource - * @param {mixed} source AutoComplete source. See the source - * attribute for details. - * @return {DataSource|Object} - * @protected - */ - _setSource: function (source) { - var sourceType = this.get('sourceType') || Lang.type(source), - sourceSetter; - - if ((source && isFunction(source.sendRequest)) - || source === null - || sourceType === 'datasource') { - - // Quacks like a DataSource instance (or null). Make it so! - this._rawSource = source; - return source; - } - - // See if there's a registered setter for this source type. - if ((sourceSetter = AutoCompleteBase.SOURCE_TYPES[sourceType])) { - this._rawSource = source; - return Lang.isString(sourceSetter) ? - this[sourceSetter](source) : sourceSetter(source); - } - - Y.error("Unsupported source type '" + sourceType + "'. Maybe autocomplete-sources isn't loaded?"); - return INVALID_VALUE; - }, - - /** - * Shared success callback for non-DataSource sources. - * - * @method _sourceSuccess - * @param {mixed} data Response data. - * @param {Object} request Request object. - * @protected - */ - _sourceSuccess: function (data, request) { - request.callback.success({ - data: data, - response: {results: data} - }); - }, - - /** - * Synchronizes the UI state of the allowBrowserAutocomplete - * attribute. - * - * @method _syncBrowserAutocomplete - * @protected - */ - _syncBrowserAutocomplete: function () { - var inputNode = this.get(INPUT_NODE); - - if (inputNode.get('nodeName').toLowerCase() === 'input') { - inputNode.setAttribute('autocomplete', - this.get(ALLOW_BROWSER_AC) ? 'on' : 'off'); - } - }, - - /** - *

- * Updates the query portion of the value attribute. - *

- * - *

- * If a query delimiter is defined, the last delimited portion of the input - * value will be replaced with the specified value. - *

- * - * @method _updateValue - * @param {String} newVal New value. - * @protected - */ - _updateValue: function (newVal) { - var delim = this.get(QUERY_DELIMITER), - insertDelim, - len, - prevVal; - - newVal = Lang.trimLeft(newVal); - - if (delim) { - insertDelim = trim(delim); // so we don't double up on spaces - prevVal = YArray.map(trim(this.get(VALUE)).split(delim), trim); - len = prevVal.length; - - if (len > 1) { - prevVal[len - 1] = newVal; - newVal = prevVal.join(insertDelim + ' '); - } - - newVal = newVal + insertDelim + ' '; - } - - this.set(VALUE, newVal); - }, - - // -- Protected Event Handlers --------------------------------------------- - - /** - * Updates the current source based on the new - * sourceType to ensure that the two attributes don't get out - * of sync when they're changed separately. - * - * @method _afterSourceTypeChange - * @param {EventFacade} e - * @protected - */ - _afterSourceTypeChange: function (e) { - if (this._rawSource) { - this.set('source', this._rawSource); - } - }, - - /** - * Handles change events for the value attribute. - * - * @method _afterValueChange - * @param {EventFacade} e - * @protected - */ - _afterValueChange: function (e) { - var delay, - fire, - minQueryLength, - newVal = e.newVal, - query, - that; - - // Don't query on value changes that didn't come from the user. - if (e.src !== AutoCompleteBase.UI_SRC) { - this._inputNode.set(VALUE, newVal); - return; - } - - Y.log('valueChange: new: "' + newVal + '"; old: "' + e.prevVal + '"', 'info', 'autocomplete-base'); - - minQueryLength = this.get('minQueryLength'); - query = this._parseValue(newVal) || ''; - - if (minQueryLength >= 0 && query.length >= minQueryLength) { - delay = this.get('queryDelay'); - that = this; - - fire = function () { - that.fire(EVT_QUERY, { - inputValue: newVal, - query : query - }); - }; - - if (delay) { - clearTimeout(this._delay); - this._delay = setTimeout(fire, delay); - } else { - fire(); - } - } else { - clearTimeout(this._delay); - - this.fire(EVT_CLEAR, { - prevVal: e.prevVal ? this._parseValue(e.prevVal) : null - }); - } - }, - - /** - * Handles blur events on the input node. - * - * @method _onInputBlur - * @param {EventFacade} e - * @protected - */ - _onInputBlur: function (e) { - var delim = this.get(QUERY_DELIMITER), - delimPos, - newVal, - value; - - // If a query delimiter is set and the input's value contains one or - // more trailing delimiters, strip them. - if (delim && !this.get('allowTrailingDelimiter')) { - delim = Lang.trimRight(delim); - value = newVal = this._inputNode.get(VALUE); - - if (delim) { - while ((newVal = Lang.trimRight(newVal)) && - (delimPos = newVal.length - delim.length) && - newVal.lastIndexOf(delim) === delimPos) { - - newVal = newVal.substring(0, delimPos); - } - } else { - // Delimiter is one or more space characters, so just trim the - // value. - newVal = Lang.trimRight(newVal); - } - - if (newVal !== value) { - this.set(VALUE, newVal); - } - } - }, - - /** - * Handles valueChange events on the input node and fires a - * query event when the input value meets the configured - * criteria. - * - * @method _onInputValueChange - * @param {EventFacade} e - * @protected - */ - _onInputValueChange: function (e) { - var newVal = e.newVal; - - // Don't query if the internal value is the same as the new value - // reported by valueChange. - if (newVal === this.get(VALUE)) { - return; - } - - this.set(VALUE, newVal, {src: AutoCompleteBase.UI_SRC}); - }, - - /** - * Handles source responses and fires the results event. - * - * @method _onResponse - * @param {EventFacade} e - * @protected - */ - _onResponse: function (query, e) { - // Ignore stale responses that aren't for the current query. - if (query === (this.get(QUERY) || '')) { - this._parseResponse(query || '', e.response, e.data); - } - }, - - // -- Protected Default Event Handlers ------------------------------------- - - /** - * Default clear event handler. Sets the results - * property to an empty array and query to null. - * - * @method _defClearFn - * @protected - */ - _defClearFn: function () { - this._set(QUERY, null); - this._set(RESULTS, []); - }, - - /** - * Default query event handler. Sets the query - * property and sends a request to the source if one is configured. - * - * @method _defQueryFn - * @param {EventFacade} e - * @protected - */ - _defQueryFn: function (e) { - var query = e.query; - - Y.log('query: "' + query + '"; inputValue: "' + e.inputValue + '"', 'info', 'autocomplete-base'); - this.sendRequest(query); // sendRequest will set the 'query' attribute - }, - - /** - * Default results event handler. Sets the results - * property to the latest results. - * - * @method _defResultsFn - * @param {EventFacade} e - * @protected - */ - _defResultsFn: function (e) { - Y.log('results: ' + Y.dump(e.results), 'info', 'autocomplete-base'); - this._set(RESULTS, e[RESULTS]); - } -}; - -Y.AutoCompleteBase = AutoCompleteBase; - - -}, '3.4.1' ,{optional:['autocomplete-sources'], requires:['array-extras', 'base-build', 'escape', 'event-valuechange', 'node-base']}); diff --git a/lib/yui/3.4.1/build/autocomplete-base/autocomplete-base-min.js b/lib/yui/3.4.1/build/autocomplete-base/autocomplete-base-min.js deleted file mode 100644 index 56fe53f6cae..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-base/autocomplete-base-min.js +++ /dev/null @@ -1,8 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("autocomplete-base",function(f){var g=f.Escape,j=f.Lang,q=f.Array,i=f.Object,d=j.isFunction,r=j.isString,u=j.trim,l=f.Attribute.INVALID_VALUE,o="_functionValidator",x="_sourceSuccess",c="allowBrowserAutocomplete",h="inputNode",w="query",e="queryDelimiter",b="requestTemplate",m="results",n="resultListLocator",k="value",s="valueChange",a="clear",t=w,p=m;function v(){f.before(this._bindUIACBase,this,"bindUI");f.before(this._destructorACBase,this,"destructor");f.before(this._syncUIACBase,this,"syncUI");this.publish(a,{defaultFn:this._defClearFn});this.publish(t,{defaultFn:this._defQueryFn});this.publish(p,{defaultFn:this._defResultsFn});}v.ATTRS={allowBrowserAutocomplete:{value:false},allowTrailingDelimiter:{value:false},inputNode:{setter:f.one,writeOnce:"initOnly"},maxResults:{value:0},minQueryLength:{value:1},query:{readOnly:true,value:null},queryDelay:{value:100},queryDelimiter:{value:null},requestTemplate:{setter:"_setRequestTemplate",value:null},resultFilters:{setter:"_setResultFilters",value:[]},resultFormatter:{validator:o},resultHighlighter:{setter:"_setResultHighlighter"},resultListLocator:{setter:"_setLocator"},results:{readOnly:true,value:[]},resultTextLocator:{setter:"_setLocator"},source:{setter:"_setSource"},sourceType:{value:null},tokenInput:{readOnly:true},value:{value:""}};v.CSS_PREFIX="ac";v.UI_SRC=(f.Widget&&f.Widget.UI_SRC)||"ui";v.SOURCE_TYPES={array:"_createArraySource","function":"_createFunctionSource",object:"_createObjectSource"};v.prototype={sendRequest:function(A,B){var y,z=this.get("source");if(A||A===""){this._set(w,A);}else{A=this.get(w)||"";}if(z){if(!B){B=this.get(b);}y=B?B.call(this,A):A;z.sendRequest({query:A,request:y,callback:{success:f.bind(this._onResponse,this,A)}});}return this;},_bindUIACBase:function(){var z=this.get(h),y=z&&z.tokenInput;if(y){z=y.get(h);this._set("tokenInput",y);}if(!z){f.error("No inputNode specified.");return;}this._inputNode=z;this._acBaseEvents=new f.EventHandle([z.on(s,this._onInputValueChange,this),z.on("blur",this._onInputBlur,this),this.after(c+"Change",this._syncBrowserAutocomplete),this.after("sourceTypeChange",this._afterSourceTypeChange),this.after(s,this._afterValueChange)]);},_destructorACBase:function(){this._acBaseEvents.detach();},_syncUIACBase:function(){this._syncBrowserAutocomplete();this.set(k,this.get(h).get(k));},_createArraySource:function(z){var y=this;return{type:"array",sendRequest:function(A){y[x](z.concat(),A);}};},_createFunctionSource:function(z){var y=this;return{type:"function",sendRequest:function(A){var B;function C(D){y[x](D||[],A);}if((B=z(A.query,C))){C(B);}}};},_createObjectSource:function(z){var y=this;return{type:"object",sendRequest:function(A){var B=A.query;y[x](i.owns(z,B)?z[B]:[],A);}};},_functionValidator:function(y){return y===null||d(y);},_getObjectValue:function(B,A){if(!B){return;}for(var z=0,y=A.length;B&&z0&&H.length>M){H.length=M;}if(O){B=O.call(this,A,H.concat());if(!B){return;}for(K=0,L=B.length;K1){C[y-1]=z;z=C.join(A+" ");}z=z+A+" ";}this.set(k,z);},_afterSourceTypeChange:function(y){if(this._rawSource){this.set("source",this._rawSource);}},_afterValueChange:function(E){var A,B,y,z=E.newVal,D,C;if(E.src!==v.UI_SRC){this._inputNode.set(k,z);return;}y=this.get("minQueryLength");D=this._parseValue(z)||"";if(y>=0&&D.length>=y){A=this.get("queryDelay");C=this;B=function(){C.fire(t,{inputValue:z,query:D});};if(A){clearTimeout(this._delay);this._delay=setTimeout(B,A);}else{B();}}else{clearTimeout(this._delay);this.fire(a,{prevVal:E.prevVal?this._parseValue(E.prevVal):null});}},_onInputBlur:function(B){var C=this.get(e),y,z,A;if(C&&!this.get("allowTrailingDelimiter")){C=j.trimRight(C);A=z=this._inputNode.get(k);if(C){while((z=j.trimRight(z))&&(y=z.length-C.length)&&z.lastIndexOf(C)===y){z=z.substring(0,y); -}}else{z=j.trimRight(z);}if(z!==A){this.set(k,z);}}},_onInputValueChange:function(z){var y=z.newVal;if(y===this.get(k)){return;}this.set(k,y,{src:v.UI_SRC});},_onResponse:function(y,z){if(y===(this.get(w)||"")){this._parseResponse(y||"",z.response,z.data);}},_defClearFn:function(){this._set(w,null);this._set(m,[]);},_defQueryFn:function(z){var y=z.query;this.sendRequest(y);},_defResultsFn:function(y){this._set(m,y[m]);}};f.AutoCompleteBase=v;},"3.4.1",{optional:["autocomplete-sources"],requires:["array-extras","base-build","escape","event-valuechange","node-base"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/autocomplete-base/autocomplete-base.js b/lib/yui/3.4.1/build/autocomplete-base/autocomplete-base.js deleted file mode 100644 index a66c4161583..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-base/autocomplete-base.js +++ /dev/null @@ -1,1635 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('autocomplete-base', function(Y) { - -/** - * Provides automatic input completion or suggestions for text input fields and - * textareas. - * - * @module autocomplete - * @main autocomplete - * @since 3.3.0 - */ - -/** - * Y.Base extension that provides core autocomplete logic (but no - * UI implementation) for a text input field or textarea. Must be mixed into a - * Y.Base-derived class to be useful. - * - * @submodule autocomplete-base - */ - -/** - *

- * Extension that provides core autocomplete logic (but no UI implementation) - * for a text input field or textarea. - *

- * - *

- * The AutoCompleteBase class provides events and attributes that - * abstract away core autocomplete logic and configuration, but does not provide - * a widget implementation or suggestion UI. For a prepackaged autocomplete - * widget, see AutoCompleteList. - *

- * - *

- * This extension cannot be instantiated directly, since it doesn't provide an - * actual implementation. It's intended to be mixed into a - * Y.Base-based class or widget. - *

- * - *

- * Y.Widget-based example: - *

- * - *
- * YUI().use('autocomplete-base', 'widget', function (Y) {
- *   var MyAC = Y.Base.create('myAC', Y.Widget, [Y.AutoCompleteBase], {
- *     // Custom prototype methods and properties.
- *   }, {
- *     // Custom static methods and properties.
- *   });
- *  
- *   // Custom implementation code.
- * });
- * 
- * - *

- * Y.Base-based example: - *

- * - *
- * YUI().use('autocomplete-base', function (Y) {
- *   var MyAC = Y.Base.create('myAC', Y.Base, [Y.AutoCompleteBase], {
- *     initializer: function () {
- *       this._bindUIACBase();
- *       this._syncUIACBase();
- *     },
- *  
- *     // Custom prototype methods and properties.
- *   }, {
- *     // Custom static methods and properties.
- *   });
- *  
- *   // Custom implementation code.
- * });
- * 
- * - * @class AutoCompleteBase - */ - -var Escape = Y.Escape, - Lang = Y.Lang, - YArray = Y.Array, - YObject = Y.Object, - - isFunction = Lang.isFunction, - isString = Lang.isString, - trim = Lang.trim, - - INVALID_VALUE = Y.Attribute.INVALID_VALUE, - - _FUNCTION_VALIDATOR = '_functionValidator', - _SOURCE_SUCCESS = '_sourceSuccess', - - ALLOW_BROWSER_AC = 'allowBrowserAutocomplete', - INPUT_NODE = 'inputNode', - QUERY = 'query', - QUERY_DELIMITER = 'queryDelimiter', - REQUEST_TEMPLATE = 'requestTemplate', - RESULTS = 'results', - RESULT_LIST_LOCATOR = 'resultListLocator', - VALUE = 'value', - VALUE_CHANGE = 'valueChange', - - EVT_CLEAR = 'clear', - EVT_QUERY = QUERY, - EVT_RESULTS = RESULTS; - -function AutoCompleteBase() { - // AOP bindings. - Y.before(this._bindUIACBase, this, 'bindUI'); - Y.before(this._destructorACBase, this, 'destructor'); - Y.before(this._syncUIACBase, this, 'syncUI'); - - // -- Public Events -------------------------------------------------------- - - /** - * Fires after the query has been completely cleared or no longer meets the - * minimum query length requirement. - * - * @event clear - * @param {EventFacade} e Event facade with the following additional - * properties: - * - *
- *
prevVal (String)
- *
- * Value of the query before it was cleared. - *
- *
- * - * @preventable _defClearFn - */ - this.publish(EVT_CLEAR, { - defaultFn: this._defClearFn - }); - - /** - * Fires when the contents of the input field have changed and the input - * value meets the criteria necessary to generate an autocomplete query. - * - * @event query - * @param {EventFacade} e Event facade with the following additional - * properties: - * - *
- *
inputValue (String)
- *
- * Full contents of the text input field or textarea that generated - * the query. - *
- * - *
query (String)
- *
- * Autocomplete query. This is the string that will be used to - * request completion results. It may or may not be the same as - * inputValue. - *
- *
- * - * @preventable _defQueryFn - */ - this.publish(EVT_QUERY, { - defaultFn: this._defQueryFn - }); - - /** - * Fires after query results are received from the source. If - * no source has been set, this event will not fire. - * - * @event results - * @param {EventFacade} e Event facade with the following additional - * properties: - * - *
- *
data (Array|Object)
- *
- * Raw, unfiltered result data (if available). - *
- * - *
query (String)
- *
- * Query that generated these results. - *
- * - *
results (Array)
- *
- * Array of filtered, formatted, and highlighted results. Each item in - * the array is an object with the following properties: - * - *
- *
display (Node|HTMLElement|String)
- *
- * Formatted result HTML suitable for display to the user. If no - * custom formatter is set, this will be an HTML-escaped version of - * the string in the text property. - *
- * - *
highlighted (String)
- *
- * Highlighted (but not formatted) result text. This property will - * only be set if a highlighter is in use. - *
- * - *
raw (mixed)
- *
- * Raw, unformatted result in whatever form it was provided by the - * source. - *
- * - *
text (String)
- *
- * Plain text version of the result, suitable for being inserted - * into the value of a text input field or textarea when the result - * is selected by a user. This value is not HTML-escaped and should - * not be inserted into the page using innerHTML. - *
- *
- *
- *
- * - * @preventable _defResultsFn - */ - this.publish(EVT_RESULTS, { - defaultFn: this._defResultsFn - }); -} - -// -- Public Static Properties ------------------------------------------------- -AutoCompleteBase.ATTRS = { - /** - * Whether or not to enable the browser's built-in autocomplete - * functionality for input fields. - * - * @attribute allowBrowserAutocomplete - * @type Boolean - * @default false - */ - allowBrowserAutocomplete: { - value: false - }, - - /** - * When a queryDelimiter is set, trailing delimiters will - * automatically be stripped from the input value by default when the - * input node loses focus. Set this to true to allow trailing - * delimiters. - * - * @attribute allowTrailingDelimiter - * @type Boolean - * @default false - */ - allowTrailingDelimiter: { - value: false - }, - - /** - * Node to monitor for changes, which will generate query - * events when appropriate. May be either an input field or a textarea. - * - * @attribute inputNode - * @type Node|HTMLElement|String - * @writeonce - */ - inputNode: { - setter: Y.one, - writeOnce: 'initOnly' - }, - - /** - * Maximum number of results to return. A value of 0 or less - * will allow an unlimited number of results. - * - * @attribute maxResults - * @type Number - * @default 0 - */ - maxResults: { - value: 0 - }, - - /** - * Minimum number of characters that must be entered before a - * query event will be fired. A value of 0 - * allows empty queries; a negative value will effectively disable all - * query events. - * - * @attribute minQueryLength - * @type Number - * @default 1 - */ - minQueryLength: { - value: 1 - }, - - /** - *

- * Current query, or null if there is no current query. - *

- * - *

- * The query might not be the same as the current value of the input - * node, both for timing reasons (due to queryDelay) and - * because when one or more queryDelimiter separators are - * in use, only the last portion of the delimited input string will be - * used as the query value. - *

- * - * @attribute query - * @type String|null - * @default null - * @readonly - */ - query: { - readOnly: true, - value: null - }, - - /** - *

- * Number of milliseconds to delay after input before triggering a - * query event. If new input occurs before this delay is - * over, the previous input event will be ignored and a new delay will - * begin. - *

- * - *

- * This can be useful both to throttle queries to a remote data source - * and to avoid distracting the user by showing them less relevant - * results before they've paused their typing. - *

- * - * @attribute queryDelay - * @type Number - * @default 100 - */ - queryDelay: { - value: 100 - }, - - /** - * Query delimiter string. When a delimiter is configured, the input value - * will be split on the delimiter, and only the last portion will be used in - * autocomplete queries and updated when the query attribute is - * modified. - * - * @attribute queryDelimiter - * @type String|null - * @default null - */ - queryDelimiter: { - value: null - }, - - /** - *

- * Source request template. This can be a function that accepts a query as a - * parameter and returns a request string, or it can be a string containing - * the placeholder "{query}", which will be replaced with the actual - * URI-encoded query. In either case, the resulting string will be appended - * to the request URL when the source attribute is set to a - * remote DataSource, JSONP URL, or XHR URL (it will not be appended to YQL - * URLs). - *

- * - *

- * While requestTemplate may be set to either a function or - * a string, it will always be returned as a function that accepts a - * query argument and returns a string. - *

- * - * @attribute requestTemplate - * @type Function|String|null - * @default null - */ - requestTemplate: { - setter: '_setRequestTemplate', - value: null - }, - - /** - *

- * Array of local result filter functions. If provided, each filter - * will be called with two arguments when results are received: the query - * and an array of result objects. See the documentation for the - * results event for a list of the properties available on each - * result object. - *

- * - *

- * Each filter is expected to return a filtered or modified version of the - * results array, which will then be passed on to subsequent filters, then - * the resultHighlighter function (if set), then the - * resultFormatter function (if set), and finally to - * subscribers to the results event. - *

- * - *

- * If no source is set, result filters will not be called. - *

- * - *

- * Prepackaged result filters provided by the autocomplete-filters and - * autocomplete-filters-accentfold modules can be used by specifying the - * filter name as a string, such as 'phraseMatch' (assuming - * the necessary filters module is loaded). - *

- * - * @attribute resultFilters - * @type Array - * @default [] - */ - resultFilters: { - setter: '_setResultFilters', - value: [] - }, - - /** - *

- * Function which will be used to format results. If provided, this function - * will be called with two arguments after results have been received and - * filtered: the query and an array of result objects. The formatter is - * expected to return an array of HTML strings or Node instances containing - * the desired HTML for each result. - *

- * - *

- * See the documentation for the results event for a list of - * the properties available on each result object. - *

- * - *

- * If no source is set, the formatter will not be called. - *

- * - * @attribute resultFormatter - * @type Function|null - */ - resultFormatter: { - validator: _FUNCTION_VALIDATOR - }, - - /** - *

- * Function which will be used to highlight results. If provided, this - * function will be called with two arguments after results have been - * received and filtered: the query and an array of filtered result objects. - * The highlighter is expected to return an array of highlighted result - * text in the form of HTML strings. - *

- * - *

- * See the documentation for the results event for a list of - * the properties available on each result object. - *

- * - *

- * If no source is set, the highlighter will not be called. - *

- * - * @attribute resultHighlighter - * @type Function|null - */ - resultHighlighter: { - setter: '_setResultHighlighter' - }, - - /** - *

- * Locator that should be used to extract an array of results from a - * non-array response. - *

- * - *

- * By default, no locator is applied, and all responses are assumed to be - * arrays by default. If all responses are already arrays, you don't need to - * define a locator. - *

- * - *

- * The locator may be either a function (which will receive the raw response - * as an argument and must return an array) or a string representing an - * object path, such as "foo.bar.baz" (which would return the value of - * result.foo.bar.baz if the response is an object). - *

- * - *

- * While resultListLocator may be set to either a function or a - * string, it will always be returned as a function that accepts a response - * argument and returns an array. - *

- * - * @attribute resultListLocator - * @type Function|String|null - */ - resultListLocator: { - setter: '_setLocator' - }, - - /** - * Current results, or an empty array if there are no results. - * - * @attribute results - * @type Array - * @default [] - * @readonly - */ - results: { - readOnly: true, - value: [] - }, - - /** - *

- * Locator that should be used to extract a plain text string from a - * non-string result item. The resulting text value will typically be the - * value that ends up being inserted into an input field or textarea when - * the user of an autocomplete implementation selects a result. - *

- * - *

- * By default, no locator is applied, and all results are assumed to be - * plain text strings. If all results are already plain text strings, you - * don't need to define a locator. - *

- * - *

- * The locator may be either a function (which will receive the raw result - * as an argument and must return a string) or a string representing an - * object path, such as "foo.bar.baz" (which would return the value of - * result.foo.bar.baz if the result is an object). - *

- * - *

- * While resultTextLocator may be set to either a function or a - * string, it will always be returned as a function that accepts a result - * argument and returns a string. - *

- * - * @attribute resultTextLocator - * @type Function|String|null - */ - resultTextLocator: { - setter: '_setLocator' - }, - - /** - *

- * Source for autocomplete results. The following source types are - * supported: - *

- * - *
- *
Array
- *
- *

- * Example: ['first result', 'second result', 'etc'] - *

- * - *

- * The full array will be provided to any configured filters for each - * query. This is an easy way to create a fully client-side autocomplete - * implementation. - *

- *
- * - *
DataSource
- *
- *

- * A DataSource instance or other object that provides a - * DataSource-like sendRequest method. See the - * DataSource documentation for details. - *

- *
- * - *
Function
- *
- *

- * Example (synchronous): function (query) { return ['foo', 'bar']; }
- Example (async): function (query, callback) { callback(['foo', 'bar']); } - *

- * - *

- * A function source will be called with the current query and a - * callback function as parameters, and should either return an array of - * results (for synchronous operation) or return nothing and pass an - * array of results to the provided callback (for asynchronous - * operation). - *

- *
- * - *
Object
- *
- *

- * Example: {foo: ['foo result 1', 'foo result 2'], bar: ['bar result']} - *

- * - *

- * An object will be treated as a query hashmap. If a property on the - * object matches the current query, the value of that property will be - * used as the response. - *

- * - *

- * The response is assumed to be an array of results by default. If the - * response is not an array, provide a resultListLocator to - * process the response and return an array. - *

- *
- *
- * - *

- * If the optional autocomplete-sources module is loaded, then - * the following additional source types will be supported as well: - *

- * - *
- *
<select> Node
- *
- *

- * You may provide a YUI Node instance wrapping a <select> - * element, and the options in the list will be used as results. You - * will also need to specify a resultTextLocator of 'text' - * or 'value', depending on what you want to use as the text of the - * result. - *

- * - *

- * Each result will be an object with the following properties: - *

- * - *
- *
html (String)
- *
- *

HTML content of the <option> element.

- *
- * - *
index (Number)
- *
- *

Index of the <option> element in the list.

- *
- * - *
node (Y.Node)
- *
- *

Node instance referring to the original <option> element.

- *
- * - *
selected (Boolean)
- *
- *

Whether or not this item is currently selected in the - * <select> list.

- *
- * - *
text (String)
- *
- *

Text content of the <option> element.

- *
- * - *
value (String)
- *
- *

Value of the <option> element.

- *
- *
- *
- * - *
String (JSONP URL)
- *
- *

- * Example: 'http://example.com/search?q={query}&callback={callback}' - *

- * - *

- * If a URL with a {callback} placeholder is provided, it - * will be used to make a JSONP request. The {query} - * placeholder will be replaced with the current query, and the - * {callback} placeholder will be replaced with an - * internally-generated JSONP callback name. Both placeholders must - * appear in the URL, or the request will fail. An optional - * {maxResults} placeholder may also be provided, and will - * be replaced with the value of the maxResults attribute (or 1000 if - * the maxResults attribute is 0 or less). - *

- * - *

- * The response is assumed to be an array of results by default. If the - * response is not an array, provide a resultListLocator to - * process the response and return an array. - *

- * - *

- * The jsonp module must be loaded in order for - * JSONP URL sources to work. If the jsonp module - * is not already loaded, it will be loaded on demand if possible. - *

- *
- * - *
String (XHR URL)
- *
- *

- * Example: 'http://example.com/search?q={query}' - *

- * - *

- * If a URL without a {callback} placeholder is provided, - * it will be used to make a same-origin XHR request. The - * {query} placeholder will be replaced with the current - * query. An optional {maxResults} placeholder may also be - * provided, and will be replaced with the value of the maxResults - * attribute (or 1000 if the maxResults attribute is 0 or less). - *

- * - *

- * The response is assumed to be a JSON array of results by default. If - * the response is a JSON object and not an array, provide a - * resultListLocator to process the response and return an - * array. If the response is in some form other than JSON, you will - * need to use a custom DataSource instance as the source. - *

- * - *

- * The io-base and json-parse modules - * must be loaded in order for XHR URL sources to work. If - * these modules are not already loaded, they will be loaded on demand - * if possible. - *

- *
- * - *
String (YQL query)
- *
- *

- * Example: 'select * from search.suggest where query="{query}"' - *

- * - *

- * If a YQL query is provided, it will be used to make a YQL request. - * The {query} placeholder will be replaced with the - * current autocomplete query. This placeholder must appear in the YQL - * query, or the request will fail. An optional - * {maxResults} placeholder may also be provided, and will - * be replaced with the value of the maxResults attribute (or 1000 if - * the maxResults attribute is 0 or less). - *

- * - *

- * The yql module must be loaded in order for YQL - * sources to work. If the yql module is not - * already loaded, it will be loaded on demand if possible. - *

- *
- *
- * - *

- * As an alternative to providing a source, you could simply listen for - * query events and handle them any way you see fit. Providing - * a source is optional, but will usually be simpler. - *

- * - * @attribute source - * @type Array|DataSource|Function|Node|Object|String|null - */ - source: { - setter: '_setSource' - }, - - /** - *

- * May be used to force a specific source type, overriding the automatic - * source type detection. It should almost never be necessary to do this, - * but as they taught us in the Boy Scouts, one should always be prepared, - * so it's here if you need it. Be warned that if you set this attribute and - * something breaks, it's your own fault. - *

- * - *

- * Supported sourceType values are: 'array', 'datasource', - * 'function', and 'object'. - *

- * - *

- * If the autocomplete-sources module is loaded, the following - * additional source types are supported: 'io', 'jsonp', 'select', - * 'string', 'yql' - *

- * - * @attribute sourceType - * @type String - */ - sourceType: { - value: null - }, - - /** - * If the inputNode specified at instantiation time has a - * node-tokeninput plugin attached to it, this attribute will - * be a reference to the Y.Plugin.TokenInput instance. - * - * @attribute tokenInput - * @type Plugin.TokenInput - * @readonly - */ - tokenInput: { - readOnly: true - }, - - /** - * Current value of the input node. - * - * @attribute value - * @type String - * @default '' - */ - value: { - // Why duplicate this._inputNode.get('value')? Because we need a - // reliable way to track the source of value changes. We want to perform - // completion when the user changes the value, but not when we change - // the value. - value: '' - } -}; - -AutoCompleteBase.CSS_PREFIX = 'ac'; -AutoCompleteBase.UI_SRC = (Y.Widget && Y.Widget.UI_SRC) || 'ui'; - -/** - * Mapping of built-in source types to their setter functions. DataSource - * instances and DataSource-like objects are handled natively, so are not - * mapped here. - * - * @property SOURCE_TYPES - * @type {Object} - * @static - */ -AutoCompleteBase.SOURCE_TYPES = { - array : '_createArraySource', - 'function': '_createFunctionSource', - object : '_createObjectSource' -}; - -AutoCompleteBase.prototype = { - // -- Public Prototype Methods --------------------------------------------- - - /** - *

- * Sends a request to the configured source. If no source is configured, - * this method won't do anything. - *

- * - *

- * Usually there's no reason to call this method manually; it will be - * called automatically when user input causes a query event to - * be fired. The only time you'll need to call this method manually is if - * you want to force a request to be sent when no user input has occurred. - *

- * - * @method sendRequest - * @param {String} query (optional) Query to send. If specified, the - * query attribute will be set to this query. If not - * specified, the current value of the query attribute will - * be used. - * @param {Function} requestTemplate (optional) Request template function. - * If not specified, the current value of the requestTemplate - * attribute will be used. - * @chainable - */ - sendRequest: function (query, requestTemplate) { - var request, - source = this.get('source'); - - if (query || query === '') { - this._set(QUERY, query); - } else { - query = this.get(QUERY) || ''; - } - - if (source) { - if (!requestTemplate) { - requestTemplate = this.get(REQUEST_TEMPLATE); - } - - request = requestTemplate ? - requestTemplate.call(this, query) : query; - - - source.sendRequest({ - query : query, - request: request, - - callback: { - success: Y.bind(this._onResponse, this, query) - } - }); - } - - return this; - }, - - // -- Protected Lifecycle Methods ------------------------------------------ - - /** - * Attaches event listeners and behaviors. - * - * @method _bindUIACBase - * @protected - */ - _bindUIACBase: function () { - var inputNode = this.get(INPUT_NODE), - tokenInput = inputNode && inputNode.tokenInput; - - // If the inputNode has a node-tokeninput plugin attached, bind to the - // plugin's inputNode instead. - if (tokenInput) { - inputNode = tokenInput.get(INPUT_NODE); - this._set('tokenInput', tokenInput); - } - - if (!inputNode) { - Y.error('No inputNode specified.'); - return; - } - - this._inputNode = inputNode; - - this._acBaseEvents = new Y.EventHandle([ - // This is the valueChange event on the inputNode, provided by the - // event-valuechange module, not our own valueChange. - inputNode.on(VALUE_CHANGE, this._onInputValueChange, this), - inputNode.on('blur', this._onInputBlur, this), - - this.after(ALLOW_BROWSER_AC + 'Change', this._syncBrowserAutocomplete), - this.after('sourceTypeChange', this._afterSourceTypeChange), - this.after(VALUE_CHANGE, this._afterValueChange) - ]); - }, - - /** - * Detaches AutoCompleteBase event listeners. - * - * @method _destructorACBase - * @protected - */ - _destructorACBase: function () { - this._acBaseEvents.detach(); - }, - - /** - * Synchronizes the UI state of the inputNode. - * - * @method _syncUIACBase - * @protected - */ - _syncUIACBase: function () { - this._syncBrowserAutocomplete(); - this.set(VALUE, this.get(INPUT_NODE).get(VALUE)); - }, - - // -- Protected Prototype Methods ------------------------------------------ - - /** - * Creates a DataSource-like object that simply returns the specified array - * as a response. See the source attribute for more details. - * - * @method _createArraySource - * @param {Array} source - * @return {Object} DataSource-like object. - * @protected - */ - _createArraySource: function (source) { - var that = this; - - return { - type: 'array', - sendRequest: function (request) { - that[_SOURCE_SUCCESS](source.concat(), request); - } - }; - }, - - /** - * Creates a DataSource-like object that passes the query to a - * custom-defined function, which is expected to call the provided callback - * with an array of results. See the source attribute for more - * details. - * - * @method _createFunctionSource - * @param {Function} source Function that accepts a query and a callback as - * parameters, and calls the callback with an array of results. - * @return {Object} DataSource-like object. - * @protected - */ - _createFunctionSource: function (source) { - var that = this; - - return { - type: 'function', - sendRequest: function (request) { - var value; - - function afterResults(results) { - that[_SOURCE_SUCCESS](results || [], request); - } - - // Allow both synchronous and asynchronous functions. If we get - // a truthy return value, assume the function is synchronous. - if ((value = source(request.query, afterResults))) { - afterResults(value); - } - } - }; - }, - - /** - * Creates a DataSource-like object that looks up queries as properties on - * the specified object, and returns the found value (if any) as a response. - * See the source attribute for more details. - * - * @method _createObjectSource - * @param {Object} source - * @return {Object} DataSource-like object. - * @protected - */ - _createObjectSource: function (source) { - var that = this; - - return { - type: 'object', - sendRequest: function (request) { - var query = request.query; - - that[_SOURCE_SUCCESS]( - YObject.owns(source, query) ? source[query] : [], - request - ); - } - }; - }, - - /** - * Returns true if value is either a function or - * null. - * - * @method _functionValidator - * @param {Function|null} value Value to validate. - * @protected - */ - _functionValidator: function (value) { - return value === null || isFunction(value); - }, - - /** - * Faster and safer alternative to Y.Object.getValue(). Doesn't bother - * casting the path to an array (since we already know it's an array) and - * doesn't throw an error if a value in the middle of the object hierarchy - * is neither undefined nor an object. - * - * @method _getObjectValue - * @param {Object} obj - * @param {Array} path - * @return {mixed} Located value, or undefined if the value was - * not found at the specified path. - * @protected - */ - _getObjectValue: function (obj, path) { - if (!obj) { - return; - } - - for (var i = 0, len = path.length; obj && i < len; i++) { - obj = obj[path[i]]; - } - - return obj; - }, - - /** - * Parses result responses, performs filtering and highlighting, and fires - * the results event. - * - * @method _parseResponse - * @param {String} query Query that generated these results. - * @param {Object} response Response containing results. - * @param {Object} data Raw response data. - * @protected - */ - _parseResponse: function (query, response, data) { - var facade = { - data : data, - query : query, - results: [] - }, - - listLocator = this.get(RESULT_LIST_LOCATOR), - results = [], - unfiltered = response && response.results, - - filters, - formatted, - formatter, - highlighted, - highlighter, - i, - len, - maxResults, - result, - text, - textLocator; - - if (unfiltered && listLocator) { - unfiltered = listLocator.call(this, unfiltered); - } - - if (unfiltered && unfiltered.length) { - filters = this.get('resultFilters'); - textLocator = this.get('resultTextLocator'); - - // Create a lightweight result object for each result to make them - // easier to work with. The various properties on the object - // represent different formats of the result, and will be populated - // as we go. - for (i = 0, len = unfiltered.length; i < len; ++i) { - result = unfiltered[i]; - - text = textLocator ? - textLocator.call(this, result) : - result.toString(); - - results.push({ - display: Escape.html(text), - raw : result, - text : text - }); - } - - // Run the results through all configured result filters. Each - // filter returns an array of (potentially fewer) result objects, - // which is then passed to the next filter, and so on. - for (i = 0, len = filters.length; i < len; ++i) { - results = filters[i].call(this, query, results.concat()); - - if (!results) { - return; - } - - if (!results.length) { - break; - } - } - - if (results.length) { - formatter = this.get('resultFormatter'); - highlighter = this.get('resultHighlighter'); - maxResults = this.get('maxResults'); - - // If maxResults is set and greater than 0, limit the number of - // results. - if (maxResults && maxResults > 0 && - results.length > maxResults) { - results.length = maxResults; - } - - // Run the results through the configured highlighter (if any). - // The highlighter returns an array of highlighted strings (not - // an array of result objects), and these strings are then added - // to each result object. - if (highlighter) { - highlighted = highlighter.call(this, query, - results.concat()); - - if (!highlighted) { - return; - } - - for (i = 0, len = highlighted.length; i < len; ++i) { - result = results[i]; - result.highlighted = highlighted[i]; - result.display = result.highlighted; - } - } - - // Run the results through the configured formatter (if any) to - // produce the final formatted results. The formatter returns an - // array of strings or Node instances (not an array of result - // objects), and these strings/Nodes are then added to each - // result object. - if (formatter) { - formatted = formatter.call(this, query, results.concat()); - - if (!formatted) { - return; - } - - for (i = 0, len = formatted.length; i < len; ++i) { - results[i].display = formatted[i]; - } - } - } - } - - facade.results = results; - this.fire(EVT_RESULTS, facade); - }, - - /** - *

- * Returns the query portion of the specified input value, or - * null if there is no suitable query within the input value. - *

- * - *

- * If a query delimiter is defined, the query will be the last delimited - * part of of the string. - *

- * - * @method _parseValue - * @param {String} value Input value from which to extract the query. - * @return {String|null} query - * @protected - */ - _parseValue: function (value) { - var delim = this.get(QUERY_DELIMITER); - - if (delim) { - value = value.split(delim); - value = value[value.length - 1]; - } - - return Lang.trimLeft(value); - }, - - /** - * Setter for locator attributes. - * - * @method _setLocator - * @param {Function|String|null} locator - * @return {Function|null} - * @protected - */ - _setLocator: function (locator) { - if (this[_FUNCTION_VALIDATOR](locator)) { - return locator; - } - - var that = this; - - locator = locator.toString().split('.'); - - return function (result) { - return result && that._getObjectValue(result, locator); - }; - }, - - /** - * Setter for the requestTemplate attribute. - * - * @method _setRequestTemplate - * @param {Function|String|null} template - * @return {Function|null} - * @protected - */ - _setRequestTemplate: function (template) { - if (this[_FUNCTION_VALIDATOR](template)) { - return template; - } - - template = template.toString(); - - return function (query) { - return Lang.sub(template, {query: encodeURIComponent(query)}); - }; - }, - - /** - * Setter for the resultFilters attribute. - * - * @method _setResultFilters - * @param {Array|Function|String|null} filters null, a filter - * function, an array of filter functions, or a string or array of strings - * representing the names of methods on - * Y.AutoCompleteFilters. - * @return {Array} Array of filter functions (empty if filters is - * null). - * @protected - */ - _setResultFilters: function (filters) { - var acFilters, getFilterFunction; - - if (filters === null) { - return []; - } - - acFilters = Y.AutoCompleteFilters; - - getFilterFunction = function (filter) { - if (isFunction(filter)) { - return filter; - } - - if (isString(filter) && acFilters && - isFunction(acFilters[filter])) { - return acFilters[filter]; - } - - return false; - }; - - if (Lang.isArray(filters)) { - filters = YArray.map(filters, getFilterFunction); - return YArray.every(filters, function (f) { return !!f; }) ? - filters : INVALID_VALUE; - } else { - filters = getFilterFunction(filters); - return filters ? [filters] : INVALID_VALUE; - } - }, - - /** - * Setter for the resultHighlighter attribute. - * - * @method _setResultHighlighter - * @param {Function|String|null} highlighter null, a - * highlighter function, or a string representing the name of a method on - * Y.AutoCompleteHighlighters. - * @return {Function|null} - * @protected - */ - _setResultHighlighter: function (highlighter) { - var acHighlighters; - - if (this._functionValidator(highlighter)) { - return highlighter; - } - - acHighlighters = Y.AutoCompleteHighlighters; - - if (isString(highlighter) && acHighlighters && - isFunction(acHighlighters[highlighter])) { - return acHighlighters[highlighter]; - } - - return INVALID_VALUE; - }, - - /** - * Setter for the source attribute. Returns a DataSource or - * a DataSource-like object depending on the type of source and/or - * the value of the sourceType attribute. - * - * @method _setSource - * @param {mixed} source AutoComplete source. See the source - * attribute for details. - * @return {DataSource|Object} - * @protected - */ - _setSource: function (source) { - var sourceType = this.get('sourceType') || Lang.type(source), - sourceSetter; - - if ((source && isFunction(source.sendRequest)) - || source === null - || sourceType === 'datasource') { - - // Quacks like a DataSource instance (or null). Make it so! - this._rawSource = source; - return source; - } - - // See if there's a registered setter for this source type. - if ((sourceSetter = AutoCompleteBase.SOURCE_TYPES[sourceType])) { - this._rawSource = source; - return Lang.isString(sourceSetter) ? - this[sourceSetter](source) : sourceSetter(source); - } - - Y.error("Unsupported source type '" + sourceType + "'. Maybe autocomplete-sources isn't loaded?"); - return INVALID_VALUE; - }, - - /** - * Shared success callback for non-DataSource sources. - * - * @method _sourceSuccess - * @param {mixed} data Response data. - * @param {Object} request Request object. - * @protected - */ - _sourceSuccess: function (data, request) { - request.callback.success({ - data: data, - response: {results: data} - }); - }, - - /** - * Synchronizes the UI state of the allowBrowserAutocomplete - * attribute. - * - * @method _syncBrowserAutocomplete - * @protected - */ - _syncBrowserAutocomplete: function () { - var inputNode = this.get(INPUT_NODE); - - if (inputNode.get('nodeName').toLowerCase() === 'input') { - inputNode.setAttribute('autocomplete', - this.get(ALLOW_BROWSER_AC) ? 'on' : 'off'); - } - }, - - /** - *

- * Updates the query portion of the value attribute. - *

- * - *

- * If a query delimiter is defined, the last delimited portion of the input - * value will be replaced with the specified value. - *

- * - * @method _updateValue - * @param {String} newVal New value. - * @protected - */ - _updateValue: function (newVal) { - var delim = this.get(QUERY_DELIMITER), - insertDelim, - len, - prevVal; - - newVal = Lang.trimLeft(newVal); - - if (delim) { - insertDelim = trim(delim); // so we don't double up on spaces - prevVal = YArray.map(trim(this.get(VALUE)).split(delim), trim); - len = prevVal.length; - - if (len > 1) { - prevVal[len - 1] = newVal; - newVal = prevVal.join(insertDelim + ' '); - } - - newVal = newVal + insertDelim + ' '; - } - - this.set(VALUE, newVal); - }, - - // -- Protected Event Handlers --------------------------------------------- - - /** - * Updates the current source based on the new - * sourceType to ensure that the two attributes don't get out - * of sync when they're changed separately. - * - * @method _afterSourceTypeChange - * @param {EventFacade} e - * @protected - */ - _afterSourceTypeChange: function (e) { - if (this._rawSource) { - this.set('source', this._rawSource); - } - }, - - /** - * Handles change events for the value attribute. - * - * @method _afterValueChange - * @param {EventFacade} e - * @protected - */ - _afterValueChange: function (e) { - var delay, - fire, - minQueryLength, - newVal = e.newVal, - query, - that; - - // Don't query on value changes that didn't come from the user. - if (e.src !== AutoCompleteBase.UI_SRC) { - this._inputNode.set(VALUE, newVal); - return; - } - - - minQueryLength = this.get('minQueryLength'); - query = this._parseValue(newVal) || ''; - - if (minQueryLength >= 0 && query.length >= minQueryLength) { - delay = this.get('queryDelay'); - that = this; - - fire = function () { - that.fire(EVT_QUERY, { - inputValue: newVal, - query : query - }); - }; - - if (delay) { - clearTimeout(this._delay); - this._delay = setTimeout(fire, delay); - } else { - fire(); - } - } else { - clearTimeout(this._delay); - - this.fire(EVT_CLEAR, { - prevVal: e.prevVal ? this._parseValue(e.prevVal) : null - }); - } - }, - - /** - * Handles blur events on the input node. - * - * @method _onInputBlur - * @param {EventFacade} e - * @protected - */ - _onInputBlur: function (e) { - var delim = this.get(QUERY_DELIMITER), - delimPos, - newVal, - value; - - // If a query delimiter is set and the input's value contains one or - // more trailing delimiters, strip them. - if (delim && !this.get('allowTrailingDelimiter')) { - delim = Lang.trimRight(delim); - value = newVal = this._inputNode.get(VALUE); - - if (delim) { - while ((newVal = Lang.trimRight(newVal)) && - (delimPos = newVal.length - delim.length) && - newVal.lastIndexOf(delim) === delimPos) { - - newVal = newVal.substring(0, delimPos); - } - } else { - // Delimiter is one or more space characters, so just trim the - // value. - newVal = Lang.trimRight(newVal); - } - - if (newVal !== value) { - this.set(VALUE, newVal); - } - } - }, - - /** - * Handles valueChange events on the input node and fires a - * query event when the input value meets the configured - * criteria. - * - * @method _onInputValueChange - * @param {EventFacade} e - * @protected - */ - _onInputValueChange: function (e) { - var newVal = e.newVal; - - // Don't query if the internal value is the same as the new value - // reported by valueChange. - if (newVal === this.get(VALUE)) { - return; - } - - this.set(VALUE, newVal, {src: AutoCompleteBase.UI_SRC}); - }, - - /** - * Handles source responses and fires the results event. - * - * @method _onResponse - * @param {EventFacade} e - * @protected - */ - _onResponse: function (query, e) { - // Ignore stale responses that aren't for the current query. - if (query === (this.get(QUERY) || '')) { - this._parseResponse(query || '', e.response, e.data); - } - }, - - // -- Protected Default Event Handlers ------------------------------------- - - /** - * Default clear event handler. Sets the results - * property to an empty array and query to null. - * - * @method _defClearFn - * @protected - */ - _defClearFn: function () { - this._set(QUERY, null); - this._set(RESULTS, []); - }, - - /** - * Default query event handler. Sets the query - * property and sends a request to the source if one is configured. - * - * @method _defQueryFn - * @param {EventFacade} e - * @protected - */ - _defQueryFn: function (e) { - var query = e.query; - - this.sendRequest(query); // sendRequest will set the 'query' attribute - }, - - /** - * Default results event handler. Sets the results - * property to the latest results. - * - * @method _defResultsFn - * @param {EventFacade} e - * @protected - */ - _defResultsFn: function (e) { - this._set(RESULTS, e[RESULTS]); - } -}; - -Y.AutoCompleteBase = AutoCompleteBase; - - -}, '3.4.1' ,{optional:['autocomplete-sources'], requires:['array-extras', 'base-build', 'escape', 'event-valuechange', 'node-base']}); diff --git a/lib/yui/3.4.1/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-debug.js b/lib/yui/3.4.1/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-debug.js deleted file mode 100644 index 242263f1216..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold-debug.js +++ /dev/null @@ -1,117 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('autocomplete-highlighters-accentfold', function(Y) { - -/** - *

- * Provides pre-built accent-folding result highlighters for AutoComplete. - *

- * - *

- * These highlighters are similar to the ones provided by the - * autocomplete-highlighters module, but use accent-aware - * comparisons. For example, "resume" and "résumé" will be considered equal when - * using the accent-folding highlighters. - *

- * - * @module autocomplete - * @submodule autocomplete-highlighters-accentfold - */ - -/** - * @class AutoCompleteHighlighters - * @static - */ - -var Highlight = Y.Highlight, - YArray = Y.Array; - -Y.mix(Y.namespace('AutoCompleteHighlighters'), { - /** - * Accent-folding version of charMatch(). - * - * @method charMatchFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - charMatchFold: function (query, results) { - var queryChars = YArray.unique(query.split('')); - - return YArray.map(results, function (result) { - return Highlight.allFold(result.text, queryChars); - }); - }, - - /** - * Accent-folding version of phraseMatch(). - * - * @method phraseMatchFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - phraseMatchFold: function (query, results) { - return YArray.map(results, function (result) { - return Highlight.allFold(result.text, [query]); - }); - }, - - /** - * Accent-folding version of startsWith(). - * - * @method startsWithFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - startsWithFold: function (query, results) { - return YArray.map(results, function (result) { - return Highlight.allFold(result.text, [query], { - startsWith: true - }); - }); - }, - - /** - * Accent-folding version of subWordMatch(). - * - * @method subWordMatchFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - subWordMatchFold: function (query, results) { - var queryWords = Y.Text.WordBreak.getUniqueWords(query); - - return YArray.map(results, function (result) { - return Highlight.allFold(result.text, queryWords); - }); - }, - - /** - * Accent-folding version of wordMatch(). - * - * @method wordMatchFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - wordMatchFold: function (query, results) { - return YArray.map(results, function (result) { - return Highlight.wordsFold(result.text, query); - }); - } -}); - - -}, '3.4.1' ,{requires:['array-extras', 'highlight-accentfold']}); diff --git a/lib/yui/3.4.1/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js b/lib/yui/3.4.1/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js deleted file mode 100644 index 242263f1216..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-highlighters-accentfold/autocomplete-highlighters-accentfold.js +++ /dev/null @@ -1,117 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('autocomplete-highlighters-accentfold', function(Y) { - -/** - *

- * Provides pre-built accent-folding result highlighters for AutoComplete. - *

- * - *

- * These highlighters are similar to the ones provided by the - * autocomplete-highlighters module, but use accent-aware - * comparisons. For example, "resume" and "résumé" will be considered equal when - * using the accent-folding highlighters. - *

- * - * @module autocomplete - * @submodule autocomplete-highlighters-accentfold - */ - -/** - * @class AutoCompleteHighlighters - * @static - */ - -var Highlight = Y.Highlight, - YArray = Y.Array; - -Y.mix(Y.namespace('AutoCompleteHighlighters'), { - /** - * Accent-folding version of charMatch(). - * - * @method charMatchFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - charMatchFold: function (query, results) { - var queryChars = YArray.unique(query.split('')); - - return YArray.map(results, function (result) { - return Highlight.allFold(result.text, queryChars); - }); - }, - - /** - * Accent-folding version of phraseMatch(). - * - * @method phraseMatchFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - phraseMatchFold: function (query, results) { - return YArray.map(results, function (result) { - return Highlight.allFold(result.text, [query]); - }); - }, - - /** - * Accent-folding version of startsWith(). - * - * @method startsWithFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - startsWithFold: function (query, results) { - return YArray.map(results, function (result) { - return Highlight.allFold(result.text, [query], { - startsWith: true - }); - }); - }, - - /** - * Accent-folding version of subWordMatch(). - * - * @method subWordMatchFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - subWordMatchFold: function (query, results) { - var queryWords = Y.Text.WordBreak.getUniqueWords(query); - - return YArray.map(results, function (result) { - return Highlight.allFold(result.text, queryWords); - }); - }, - - /** - * Accent-folding version of wordMatch(). - * - * @method wordMatchFold - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - wordMatchFold: function (query, results) { - return YArray.map(results, function (result) { - return Highlight.wordsFold(result.text, query); - }); - } -}); - - -}, '3.4.1' ,{requires:['array-extras', 'highlight-accentfold']}); diff --git a/lib/yui/3.4.1/build/autocomplete-highlighters/autocomplete-highlighters-debug.js b/lib/yui/3.4.1/build/autocomplete-highlighters/autocomplete-highlighters-debug.js deleted file mode 100644 index 518c853c6c7..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-highlighters/autocomplete-highlighters-debug.js +++ /dev/null @@ -1,205 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('autocomplete-highlighters', function(Y) { - -/** - * Provides pre-built result highlighters for AutoComplete. - * - * @module autocomplete - * @submodule autocomplete-highlighters - * @class AutoCompleteHighlighters - * @static - */ - -var YArray = Y.Array, - Highlight = Y.Highlight, - -Highlighters = Y.mix(Y.namespace('AutoCompleteHighlighters'), { - // -- Public Methods ------------------------------------------------------- - - /** - * Highlights any individual query character that occurs anywhere in a - * result. Case-insensitive. - * - * @method charMatch - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - charMatch: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // charMatchCase(). It's intentionally undocumented. - - var queryChars = YArray.unique((caseSensitive ? query : - query.toLowerCase()).split('')); - - return YArray.map(results, function (result) { - return Highlight.all(result.text, queryChars, { - caseSensitive: caseSensitive - }); - }); - }, - - /** - * Case-sensitive version of charMatch(). - * - * @method charMatchCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - charMatchCase: function (query, results) { - return Highlighters.charMatch(query, results, true); - }, - - /** - * Highlights the complete query as a phrase anywhere within a result. - * Case-insensitive. - * - * @method phraseMatch - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - phraseMatch: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // phraseMatchCase(). It's intentionally undocumented. - - return YArray.map(results, function (result) { - return Highlight.all(result.text, [query], { - caseSensitive: caseSensitive - }); - }); - }, - - /** - * Case-sensitive version of phraseMatch(). - * - * @method phraseMatchCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - phraseMatchCase: function (query, results) { - return Highlighters.phraseMatch(query, results, true); - }, - - /** - * Highlights the complete query as a phrase at the beginning of a result. - * Case-insensitive. - * - * @method startsWith - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - startsWith: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // startsWithCase(). It's intentionally undocumented. - - return YArray.map(results, function (result) { - return Highlight.all(result.text, [query], { - caseSensitive: caseSensitive, - startsWith : true - }); - }); - }, - - /** - * Case-sensitive version of startsWith(). - * - * @method startsWithCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - startsWithCase: function (query, results) { - return Highlighters.startsWith(query, results, true); - }, - - /** - * Highlights portions of results in which words from the query match either - * whole words or parts of words in the result. Non-word characters like - * whitespace and certain punctuation are ignored. Case-insensitive. - * - * @method subWordMatch - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - subWordMatch: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // subWordMatchCase(). It's intentionally undocumented. - - var queryWords = Y.Text.WordBreak.getUniqueWords(query, { - ignoreCase: !caseSensitive - }); - - return YArray.map(results, function (result) { - return Highlight.all(result.text, queryWords, { - caseSensitive: caseSensitive - }); - }); - }, - - /** - * Case-sensitive version of subWordMatch(). - * - * @method subWordMatchCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - subWordMatchCase: function (query, results) { - return Highlighters.subWordMatch(query, results, true); - }, - - /** - * Highlights individual words in results that are also in the query. - * Non-word characters like punctuation are ignored. Case-insensitive. - * - * @method wordMatch - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - wordMatch: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // wordMatchCase(). It's intentionally undocumented. - - return YArray.map(results, function (result) { - return Highlight.words(result.text, query, { - caseSensitive: caseSensitive - }); - }); - }, - - /** - * Case-sensitive version of wordMatch(). - * - * @method wordMatchCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - wordMatchCase: function (query, results) { - return Highlighters.wordMatch(query, results, true); - } -}); - - -}, '3.4.1' ,{requires:['array-extras', 'highlight-base']}); diff --git a/lib/yui/3.4.1/build/autocomplete-highlighters/autocomplete-highlighters.js b/lib/yui/3.4.1/build/autocomplete-highlighters/autocomplete-highlighters.js deleted file mode 100644 index 518c853c6c7..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-highlighters/autocomplete-highlighters.js +++ /dev/null @@ -1,205 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('autocomplete-highlighters', function(Y) { - -/** - * Provides pre-built result highlighters for AutoComplete. - * - * @module autocomplete - * @submodule autocomplete-highlighters - * @class AutoCompleteHighlighters - * @static - */ - -var YArray = Y.Array, - Highlight = Y.Highlight, - -Highlighters = Y.mix(Y.namespace('AutoCompleteHighlighters'), { - // -- Public Methods ------------------------------------------------------- - - /** - * Highlights any individual query character that occurs anywhere in a - * result. Case-insensitive. - * - * @method charMatch - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - charMatch: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // charMatchCase(). It's intentionally undocumented. - - var queryChars = YArray.unique((caseSensitive ? query : - query.toLowerCase()).split('')); - - return YArray.map(results, function (result) { - return Highlight.all(result.text, queryChars, { - caseSensitive: caseSensitive - }); - }); - }, - - /** - * Case-sensitive version of charMatch(). - * - * @method charMatchCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - charMatchCase: function (query, results) { - return Highlighters.charMatch(query, results, true); - }, - - /** - * Highlights the complete query as a phrase anywhere within a result. - * Case-insensitive. - * - * @method phraseMatch - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - phraseMatch: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // phraseMatchCase(). It's intentionally undocumented. - - return YArray.map(results, function (result) { - return Highlight.all(result.text, [query], { - caseSensitive: caseSensitive - }); - }); - }, - - /** - * Case-sensitive version of phraseMatch(). - * - * @method phraseMatchCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - phraseMatchCase: function (query, results) { - return Highlighters.phraseMatch(query, results, true); - }, - - /** - * Highlights the complete query as a phrase at the beginning of a result. - * Case-insensitive. - * - * @method startsWith - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - startsWith: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // startsWithCase(). It's intentionally undocumented. - - return YArray.map(results, function (result) { - return Highlight.all(result.text, [query], { - caseSensitive: caseSensitive, - startsWith : true - }); - }); - }, - - /** - * Case-sensitive version of startsWith(). - * - * @method startsWithCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - startsWithCase: function (query, results) { - return Highlighters.startsWith(query, results, true); - }, - - /** - * Highlights portions of results in which words from the query match either - * whole words or parts of words in the result. Non-word characters like - * whitespace and certain punctuation are ignored. Case-insensitive. - * - * @method subWordMatch - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - subWordMatch: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // subWordMatchCase(). It's intentionally undocumented. - - var queryWords = Y.Text.WordBreak.getUniqueWords(query, { - ignoreCase: !caseSensitive - }); - - return YArray.map(results, function (result) { - return Highlight.all(result.text, queryWords, { - caseSensitive: caseSensitive - }); - }); - }, - - /** - * Case-sensitive version of subWordMatch(). - * - * @method subWordMatchCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - subWordMatchCase: function (query, results) { - return Highlighters.subWordMatch(query, results, true); - }, - - /** - * Highlights individual words in results that are also in the query. - * Non-word characters like punctuation are ignored. Case-insensitive. - * - * @method wordMatch - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - wordMatch: function (query, results, caseSensitive) { - // The caseSensitive parameter is only intended for use by - // wordMatchCase(). It's intentionally undocumented. - - return YArray.map(results, function (result) { - return Highlight.words(result.text, query, { - caseSensitive: caseSensitive - }); - }); - }, - - /** - * Case-sensitive version of wordMatch(). - * - * @method wordMatchCase - * @param {String} query Query to match - * @param {Array} results Results to highlight - * @return {Array} Highlighted results - * @static - */ - wordMatchCase: function (query, results) { - return Highlighters.wordMatch(query, results, true); - } -}); - - -}, '3.4.1' ,{requires:['array-extras', 'highlight-base']}); diff --git a/lib/yui/3.4.1/build/autocomplete-list-keys/autocomplete-list-keys-min.js b/lib/yui/3.4.1/build/autocomplete-list-keys/autocomplete-list-keys-min.js deleted file mode 100644 index 50b3451eedd..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-list-keys/autocomplete-list-keys-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("autocomplete-list-keys",function(g){var c=40,a=13,d=27,f=9,b=38;function e(){g.before(this._unbindKeys,this,"destructor");g.before(this._bindKeys,this,"bindUI");this._initKeys();}e.prototype={_initKeys:function(){var h={},i={};this._keyEvents=[];h[c]=this._keyDown;i[a]=this._keyEnter;i[d]=this._keyEsc;i[f]=this._keyTab;i[b]=this._keyUp;this._keys=h;this._keysVisible=i;},_bindKeys:function(){this._keyEvents.push(this._inputNode.on("keydown",this._onInputKey,this));},_unbindKeys:function(){while(this._keyEvents.length){this._keyEvents.pop().detach();}},_keyDown:function(){if(this.get("visible")){this._activateNextItem();}else{this.show();}},_keyEnter:function(i){var h=this.get("activeItem");if(h){this.selectItem(h,i);}else{return false;}},_keyEsc:function(){this.hide();},_keyTab:function(i){var h;if(this.get("tabSelect")){h=this.get("activeItem");if(h){this.selectItem(h,i);return true;}}return false;},_keyUp:function(){this._activatePrevItem();},_onInputKey:function(j){var h,i=j.keyCode;this._lastInputKey=i;if(this.get("results").length){h=this._keys[i];if(!h&&this.get("visible")){h=this._keysVisible[i];}if(h){if(h.call(this,j)!==false){j.preventDefault();}}}}};g.Base.mix(g.AutoCompleteList,[e]);},"3.4.1",{requires:["autocomplete-list","base-build"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/autocomplete-list/assets/skins/night/autocomplete-list-skin.css b/lib/yui/3.4.1/build/autocomplete-list/assets/skins/night/autocomplete-list-skin.css deleted file mode 100644 index 9b1de4a8ef9..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-list/assets/skins/night/autocomplete-list-skin.css +++ /dev/null @@ -1,56 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-skin-night{ - background-color:#000; - font-family: HelveticaNeue,arial,helvetica,clean,sans-serif; - color:#fff; -} - -.yui3-skin-night .yui3-aclist-content { - font-size:100%; - background: #0E0E0E; - color: #ccc; - border: 1px solid #303030; - -moz-box-shadow: 0 0 17px rgba(0,0,0,0.58); - -webkit-box-shadow: 0 0 17px rgba(0,0,0,0.58); - box-shadow: 0 0 17px rgba(0,0,0,0.58); - margin: 5px 0 0 8px; -} - -.yui3-skin-night .yui3-aclist-input { - background: #fff; - font-size:100%; - -moz-border-radius: 13px; - -webkit-border-radius: 13px; - border-radius: 13px; - -moz-box-shadow: inset 1px 1px 4px rgba(0,0,0,0.9); - -webkit-box-shadow: inset 1px 1px 4px rgba(0,0,0,0.9); - box-shadow: 1px 1px 4px rgba(0,0,0,0.6) inset; - - border: none; - padding-left:0.6em; -} - -.yui3-skin-night .yui3-aclist-item-active, -.yui3-skin-night .yui3-aclist-item-hover { - background: -moz-linear-gradient( - 0% 100% 90deg, - #252626 0%, - #333434 100% - ); - background: -webkit-gradient( - linear, - left top, - left bottom, - from(#333434), - to(#252626) - ); -} - -.yui3-skin-night .yui3-aclist-item { padding: 0.4em 1em 0.6em; } -.yui3-skin-night .yui3-aclist-item-active { outline: none; } -.yui3-skin-night .yui3-highlight { color:#EFEFEF; } diff --git a/lib/yui/3.4.1/build/autocomplete-list/assets/skins/night/autocomplete-list.css b/lib/yui/3.4.1/build/autocomplete-list/assets/skins/night/autocomplete-list.css deleted file mode 100644 index c7967998354..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-list/assets/skins/night/autocomplete-list.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-aclist{position:absolute;z-index:1}.yui3-aclist-hidden{visibility:hidden}.yui3-aclist-aria{left:-9999px;position:absolute}.yui3-aclist-list{list-style:none;margin:0;overflow:hidden;padding:0}.yui3-aclist-item{cursor:pointer;list-style:none;padding:2px 5px}.yui3-aclist-item-active{outline:#afafaf dotted thin}.yui3-skin-night{background-color:#000;font-family:HelveticaNeue,arial,helvetica,clean,sans-serif;color:#fff}.yui3-skin-night .yui3-aclist-content{font-size:100%;background:#0e0e0e;color:#ccc;border:1px solid #303030;-moz-box-shadow:0 0 17px rgba(0,0,0,0.58);-webkit-box-shadow:0 0 17px rgba(0,0,0,0.58);box-shadow:0 0 17px rgba(0,0,0,0.58);margin:5px 0 0 8px}.yui3-skin-night .yui3-aclist-input{background:#fff;font-size:100%;-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px;-moz-box-shadow:inset 1px 1px 4px rgba(0,0,0,0.9);-webkit-box-shadow:inset 1px 1px 4px rgba(0,0,0,0.9);box-shadow:1px 1px 4px rgba(0,0,0,0.6) inset;border:0;padding-left:.6em}.yui3-skin-night .yui3-aclist-item-active,.yui3-skin-night .yui3-aclist-item-hover{background:-moz-linear-gradient(0% 100% 90deg,#252626 0,#333434 100%);background:-webkit-gradient(linear,left top,left bottom,from(#333434),to(#252626))}.yui3-skin-night .yui3-aclist-item{padding:.4em 1em .6em}.yui3-skin-night .yui3-aclist-item-active{outline:0}.yui3-skin-night .yui3-highlight{color:#efefef} diff --git a/lib/yui/3.4.1/build/autocomplete-list/autocomplete-list-min.js b/lib/yui/3.4.1/build/autocomplete-list/autocomplete-list-min.js deleted file mode 100644 index e6f3f6ebb94..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-list/autocomplete-list-min.js +++ /dev/null @@ -1,8 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("autocomplete-list",function(b){var i=b.Lang,v=b.Node,l=b.Array,h=b.UA.ie&&b.UA.ie<7,p=9,s="_CLASS_ITEM",t="_CLASS_ITEM_ACTIVE",d="_CLASS_ITEM_HOVER",u="_SELECTOR_ITEM",f="activeItem",k="alwaysShowList",o="circular",r="hoveredItem",m="id",e="item",c="list",w="result",j="results",q="visible",g="width",n="select",a=b.Base.create("autocompleteList",b.Widget,[b.AutoCompleteBase,b.WidgetPosition,b.WidgetPositionAlign],{ARIA_TEMPLATE:"
",ITEM_TEMPLATE:"
  • ",LIST_TEMPLATE:"
      ",initializer:function(){var x=this.get("inputNode");if(!x){b.error("No inputNode specified.");return;}this._inputNode=x;this._listEvents=[];this.DEF_PARENT_NODE=x.get("parentNode");this[s]=this.getClassName(e);this[t]=this.getClassName(e,"active");this[d]=this.getClassName(e,"hover");this[u]="."+this[s];this.publish(n,{defaultFn:this._defSelectFn});},destructor:function(){while(this._listEvents.length){this._listEvents.pop().detach();}if(this._ariaNode){this._ariaNode.remove().destroy(true);}},bindUI:function(){this._bindInput();this._bindList();},renderUI:function(){var C=this._createAriaNode(),z=this.get("boundingBox"),y=this.get("contentBox"),B=this._inputNode,A=this._createListNode(),x=B.get("parentNode");B.addClass(this.getClassName("input")).setAttrs({"aria-autocomplete":c,"aria-expanded":false,"aria-owns":A.get("id")});x.append(C);if(h){z.plug(b.Plugin.Shim);}z.setStyle("position","absolute");this._ariaNode=C;this._boundingBox=z;this._contentBox=y;this._listNode=A;this._parentNode=x;},syncUI:function(){this._syncResults();this._syncVisibility();},hide:function(){return this.get(k)?this:this.set(q,false);},selectItem:function(y,x){if(y){if(!y.hasClass(this[s])){return this;}}else{y=this.get(f);if(!y){return this;}}this.fire(n,{itemNode:y,originEvent:x||null,result:y.getData(w)});return this;},_activateNextItem:function(){var y=this.get(f),x;if(y){x=y.next(this[u])||(this.get(o)?null:y);}else{x=this._getFirstItemNode();}this.set(f,x);return this;},_activatePrevItem:function(){var y=this.get(f),x=y?y.previous(this[u]):this.get(o)&&this._getLastItemNode();this.set(f,x||null);return this;},_add:function(x){var y=[];l.each(i.isArray(x)?x:[x],function(z){y.push(this._createItemNode(z).setData(w,z));},this);y=b.all(y);this._listNode.append(y.toFrag());return y;},_ariaSay:function(z,x){var y=this.get("strings."+z);this._ariaNode.setContent(x?i.sub(y,x):y);},_bindInput:function(){var A=this._inputNode,y,z,x;if(this.get("align")===null){x=this.get("tokenInput");y=(x&&x.get("boundingBox"))||A;this.set("align",{node:y,points:["tl","bl"]});if(!this.get(g)&&(z=y.get("offsetWidth"))){this.set(g,z);}}this._listEvents.concat([A.after("blur",this._afterListInputBlur,this),A.after("focus",this._afterListInputFocus,this)]);},_bindList:function(){this._listEvents.concat([b.on("windowresize",this._syncPosition,this),this.after({blur:this._afterListBlur,focus:this._afterListFocus,mouseover:this._afterMouseOver,mouseout:this._afterMouseOut,activeItemChange:this._afterActiveItemChange,alwaysShowListChange:this._afterAlwaysShowListChange,hoveredItemChange:this._afterHoveredItemChange,resultsChange:this._afterResultsChange,visibleChange:this._afterVisibleChange}),this._listNode.delegate("click",this._onItemClick,this[u],this)]);},_clear:function(){this.set(f,null);this._set(r,null);this._listNode.get("children").remove(true);},_createAriaNode:function(){var x=v.create(this.ARIA_TEMPLATE);return x.addClass(this.getClassName("aria")).setAttrs({"aria-live":"polite",role:"status"});},_createItemNode:function(x){var y=v.create(this.ITEM_TEMPLATE);return y.addClass(this[s]).setAttrs({id:b.stamp(y),role:"option"}).setAttribute("data-text",x.text).append(x.display);},_createListNode:function(){var x=this.get("listNode")||v.create(this.LIST_TEMPLATE);x.addClass(this.getClassName(c)).setAttrs({id:b.stamp(x),role:"listbox"});this._set("listNode",x);this.get("contentBox").append(x);return x;},_getFirstItemNode:function(){return this._listNode.one(this[u]);},_getLastItemNode:function(){return this._listNode.one(this[u]+":last-child");},_syncPosition:function(){this._syncUIPosAlign();this._syncShim();},_syncResults:function(x){if(!x){x=this.get(j);}this._clear();if(x.length){this._add(x);this._ariaSay("items_available");}this._syncPosition();if(this.get("activateFirstItem")&&!this.get(f)){this.set(f,this._getFirstItemNode());}},_syncShim:h?function(){this._boundingBox.shim.sync();}:function(){},_syncVisibility:function(x){if(this.get(k)){x=true;this.set(q,x);}if(typeof x==="undefined"){x=this.get(q);}this._inputNode.set("aria-expanded",x);this._boundingBox.set("aria-hidden",!x);if(x){this._syncPosition();}else{this.set(f,null);this._set(r,null);this._boundingBox.get("offsetWidth");}},_afterActiveItemChange:function(A){var z=this._inputNode,x=A.newVal,B=A.prevVal,y;if(B&&B._node){B.removeClass(this[t]);}if(x){x.addClass(this[t]);z.set("aria-activedescendant",x.get(m));}else{z.removeAttribute("aria-activedescendant");}if(this.get("scrollIntoView")){y=x||z;if(!y.inRegion(b.DOM.viewportRegion(),true)||!y.inRegion(this._contentBox,true)){y.scrollIntoView();}}},_afterAlwaysShowListChange:function(x){this.set(q,x.newVal||this.get(j).length>0);},_afterHoveredItemChange:function(y){var x=y.newVal,z=y.prevVal;if(z){z.removeClass(this[d]);}if(x){x.addClass(this[d]);}},_afterListBlur:function(){this._listFocused=false;if(!this._listInputFocused){this.hide();}},_afterListFocus:function(){this._listFocused=true;},_afterListInputBlur:function(){this._listInputFocused=false;if((!this._mouseOverList&&!this._listFocused)||this._lastInputKey===p){this.hide();}},_afterListInputFocus:function(){this._listInputFocused=true;},_afterMouseOver:function(x){var y=x.domEvent.target.ancestor(this[u],true);this._mouseOverList=true;if(y){this._set(r,y);}},_afterMouseOut:function(){this._mouseOverList=false;this._set(r,null);if(!this._listFocused&&!this._listInputFocused){this.hide();}},_afterResultsChange:function(x){this._syncResults(x.newVal);if(!this.get(k)){this.set(q,!!x.newVal.length); -}},_afterVisibleChange:function(x){this._syncVisibility(!!x.newVal);},_onItemClick:function(x){var y=x.currentTarget;this.set(f,y);this.selectItem(y,x);},_defSelectFn:function(x){var y=x.result.text;this._inputNode.focus();this._updateValue(y);this._ariaSay("item_selected",{item:y});this.hide();}},{ATTRS:{activateFirstItem:{value:false},activeItem:{setter:b.one,value:null},alwaysShowList:{value:false},circular:{value:true},hoveredItem:{readOnly:true,value:null},listNode:{writeOnce:"initOnly",value:null},scrollIntoView:{value:false},strings:{valueFn:function(){return b.Intl.get("autocomplete-list");}},tabSelect:{value:true},visible:{value:false}},CSS_PREFIX:b.ClassNameManager.getClassName("aclist")});b.AutoCompleteList=a;b.AutoComplete=a;},"3.4.1",{lang:["en"],after:["autocomplete-sources"],requires:["autocomplete-base","event-resize","node-screen","selector-css3","shim-plugin","widget","widget-position","widget-position-align"],skinnable:true}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/autocomplete-plugin/autocomplete-plugin-debug.js b/lib/yui/3.4.1/build/autocomplete-plugin/autocomplete-plugin-debug.js deleted file mode 100644 index be60ecc2c8f..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-plugin/autocomplete-plugin-debug.js +++ /dev/null @@ -1,60 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('autocomplete-plugin', function(Y) { - -/** - * Binds an AutoCompleteList instance to a Node instance. - * - * @module autocomplete - * @submodule autocomplete-plugin - */ - -/** - *

      - * Binds an AutoCompleteList instance to a Node instance. - *

      - * - *

      - * Example: - *

      - * - *
      - * Y.one('#my-input').plug(Y.Plugin.AutoComplete, {
      - *   source: 'select * from search.suggest where query="{query}"'
      - * });
      - *  
      - * // You can now access the AutoCompleteList instance at Y.one('#my-input').ac
      - * 
      - * - * @class Plugin.AutoComplete - * @extends AutoCompleteList - */ - -var Plugin = Y.Plugin; - -function ACListPlugin(config) { - config.inputNode = config.host; - - // Render by default. - if (!config.render && config.render !== false) { - config.render = true; - } - - ACListPlugin.superclass.constructor.apply(this, arguments); -} - -Y.extend(ACListPlugin, Y.AutoCompleteList, {}, { - NAME : 'autocompleteListPlugin', - NS : 'ac', - CSS_PREFIX: Y.ClassNameManager.getClassName('aclist') -}); - -Plugin.AutoComplete = ACListPlugin; -Plugin.AutoCompleteList = ACListPlugin; - - -}, '3.4.1' ,{requires:['autocomplete-list', 'node-pluginhost']}); diff --git a/lib/yui/3.4.1/build/autocomplete-plugin/autocomplete-plugin.js b/lib/yui/3.4.1/build/autocomplete-plugin/autocomplete-plugin.js deleted file mode 100644 index be60ecc2c8f..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-plugin/autocomplete-plugin.js +++ /dev/null @@ -1,60 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('autocomplete-plugin', function(Y) { - -/** - * Binds an AutoCompleteList instance to a Node instance. - * - * @module autocomplete - * @submodule autocomplete-plugin - */ - -/** - *

      - * Binds an AutoCompleteList instance to a Node instance. - *

      - * - *

      - * Example: - *

      - * - *
      - * Y.one('#my-input').plug(Y.Plugin.AutoComplete, {
      - *   source: 'select * from search.suggest where query="{query}"'
      - * });
      - *  
      - * // You can now access the AutoCompleteList instance at Y.one('#my-input').ac
      - * 
      - * - * @class Plugin.AutoComplete - * @extends AutoCompleteList - */ - -var Plugin = Y.Plugin; - -function ACListPlugin(config) { - config.inputNode = config.host; - - // Render by default. - if (!config.render && config.render !== false) { - config.render = true; - } - - ACListPlugin.superclass.constructor.apply(this, arguments); -} - -Y.extend(ACListPlugin, Y.AutoCompleteList, {}, { - NAME : 'autocompleteListPlugin', - NS : 'ac', - CSS_PREFIX: Y.ClassNameManager.getClassName('aclist') -}); - -Plugin.AutoComplete = ACListPlugin; -Plugin.AutoCompleteList = ACListPlugin; - - -}, '3.4.1' ,{requires:['autocomplete-list', 'node-pluginhost']}); diff --git a/lib/yui/3.4.1/build/autocomplete-sources/autocomplete-sources-min.js b/lib/yui/3.4.1/build/autocomplete-sources/autocomplete-sources-min.js deleted file mode 100644 index f52b2f54640..00000000000 --- a/lib/yui/3.4.1/build/autocomplete-sources/autocomplete-sources-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("autocomplete-sources",function(g){var a=g.AutoCompleteBase,f=g.Lang,b="_sourceSuccess",d="maxResults",e="requestTemplate",c="resultListLocator";g.mix(a.prototype,{_YQL_SOURCE_REGEX:/^(?:select|set|use)\s+/i,_beforeCreateObjectSource:function(h){if(h instanceof g.Node&&h.get("nodeName").toLowerCase()==="select"){return this._createSelectSource(h);}if(g.JSONPRequest&&h instanceof g.JSONPRequest){return this._createJSONPSource(h);}return this._createObjectSource(h);},_createIOSource:function(m){var j={},k={type:"io"},l=this,o,i,n;function h(p){var r=p.request,q=p.query;if(j[r]){l[b](j[r],p);return;}if(o&&o.isInProgress()){o.abort();}o=g.io(l._getXHRUrl(m,p),{on:{success:function(v,s){var u;try{u=g.JSON.parse(s.responseText);}catch(t){g.error("JSON parse error",t);}if(u){j[r]=u;l[b](u,p);}}}});}k.sendRequest=function(p){i=p;if(n){return;}n=true;g.use("io-base","json-parse",function(){k.sendRequest=h;h(i);});};return k;},_createJSONPSource:function(m){var j={},k={type:"jsonp"},l=this,i,n;function h(o){var q=o.request,p=o.query;if(j[q]){l[b](j[q],o);return;}m._config.on.success=function(r){j[q]=r;l[b](r,o);};m.send(p);}k.sendRequest=function(o){i=o;if(n){return;}n=true;g.use("jsonp",function(){if(!(m instanceof g.JSONPRequest)){m=new g.JSONPRequest(m,{format:g.bind(l._jsonpFormatter,l)});}k.sendRequest=h;h(i);});};return k;},_createSelectSource:function(i){var h=this;return{type:"select",sendRequest:function(k){var j=[];i.get("options").each(function(l){j.push({html:l.get("innerHTML"),index:l.get("index"),node:l,selected:l.get("selected"),text:l.get("text"),value:l.get("value")});});h[b](j,k);}};},_createStringSource:function(h){if(this._YQL_SOURCE_REGEX.test(h)){return this._createYQLSource(h);}else{if(h.indexOf("{callback}")!==-1){return this._createJSONPSource(h);}else{return this._createIOSource(h);}}},_createYQLSource:function(m){var j={},n={type:"yql"},l=this,i,o,k;if(!this.get(c)){this.set(c,this._defaultYQLLocator);}function h(t){var v=t.request,u=t.query,w,r,p,s,q;if(j[v]){l[b](j[v],t);return;}w=function(x){j[v]=x;l[b](x,t);};r=l.get("yqlEnv");p=l.get(d);s={proto:l.get("yqlProtocol")};q=f.sub(m,{maxResults:p>0?p:1000,query:u});if(k){k._callback=w;k._opts=s;k._params.q=q;if(r){k._params.env=r;}}else{k=new g.YQLRequest(q,{on:{success:w},allowCache:false},r?{env:r}:null,s);}k.send();}n.sendRequest=function(p){i=p;if(!o){o=true;g.use("yql",function(){n.sendRequest=h;h(i);});}};return n;},_defaultYQLLocator:function(i){var j=i&&i.query&&i.query.results,h;if(j&&f.isObject(j)){h=g.Object.values(j)||[];j=h.length===1?h[0]:h;if(!f.isArray(j)){j=[j];}}else{j=[];}return j;},_getXHRUrl:function(i,j){var h=this.get(d);if(j.query!==j.request){i+=j.request;}return f.sub(i,{maxResults:h>0?h:1000,query:encodeURIComponent(j.query)});},_jsonpFormatter:function(i,j,k){var h=this.get(d),l=this.get(e);if(l){i+=l(k);}return f.sub(i,{callback:j,maxResults:h>0?h:1000,query:encodeURIComponent(k)});}});g.mix(a.ATTRS,{yqlEnv:{value:null},yqlProtocol:{value:"http"}});g.mix(a.SOURCE_TYPES,{io:"_createIOSource",jsonp:"_createJSONPSource",object:"_beforeCreateObjectSource",select:"_createSelectSource",string:"_createStringSource",yql:"_createYQLSource"},true);},"3.4.1",{optional:["io-base","json-parse","jsonp","yql"],requires:["autocomplete-base"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/base-base/base-base-min.js b/lib/yui/3.4.1/build/base-base/base-base-min.js deleted file mode 100644 index 4aa6750b32a..00000000000 --- a/lib/yui/3.4.1/build/base-base/base-base-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("base-base",function(d){var g=d.Object,h=d.Lang,o=".",q="destroy",b="init",r="initialized",m="destroyed",n="initializer",j="bubbleTargets",e="_bubbleTargets",a=Object.prototype.constructor,c="deep",p="shallow",k="destructor",f=d.Attribute,l=function(v,u,t){var w;for(w in u){if(t[w]){v[w]=u[w];}}return v;};function i(){d.stamp(this);f.call(this);var s=d.Plugin&&d.Plugin.Host;if(this._initPlugins&&s){s.call(this);}if(this._lazyAddAttrs!==false){this._lazyAddAttrs=true;}this.name=this.constructor.NAME;this._eventPrefix=this.constructor.EVENT_PREFIX||this.constructor.NAME;this.init.apply(this,arguments);}i._ATTR_CFG=f._ATTR_CFG.concat("cloneDefaultValue");i._ATTR_CFG_HASH=d.Array.hash(i._ATTR_CFG);i.NAME="base";i.ATTRS={initialized:{readOnly:true,value:false},destroyed:{readOnly:true,value:false}};i.prototype={init:function(s){this._yuievt.config.prefix=this._eventPrefix;this.publish(b,{queuable:false,fireOnce:true,defaultTargetOnly:true,defaultFn:this._defInitFn});this._preInitEventCfg(s);this.fire(b,{cfg:s});return this;},_preInitEventCfg:function(t){if(t){if(t.on){this.on(t.on);}if(t.after){this.after(t.after);}}var u,s,w,v=(t&&j in t);if(v||e in this){w=v?(t&&t.bubbleTargets):this._bubbleTargets;if(h.isArray(w)){for(u=0,s=w.length;u=0;--t){A=z[t];for(v in A){if(A.hasOwnProperty(v)){u=l({},A[v],x);s=u.value;y=u.cloneDefaultValue;if(s){if((y===undefined&&(a===s.constructor||h.isArray(s)))||y===c||y===true){u.value=d.clone(s);}else{if(y===p){u.value=d.merge(s);}}}B=null;if(v.indexOf(o)!==-1){B=v.split(o);v=B.shift();}if(B&&w[v]&&w[v].value){g.setValue(w[v].value,B,s);}else{if(!B){if(!w[v]){w[v]=u;}else{l(w[v],u,x);}}}}}}}return w;},_initHierarchy:function(y){var u=this._lazyAddAttrs,z,A,C,w,t,B,x,v=this._getClasses(),s=this._getAttrCfgs();for(C=v.length-1;C>=0;C--){z=v[C];A=z.prototype;x=z._yuibuild&&z._yuibuild.exts;if(x){for(w=0,t=x.length;w=0);}},entries:{readOnly:true,getter:"_getEntries"}}});d.extend(c,d.Base,{_entries:null,initializer:function(e){this.publish("add",{defaultFn:this._defAddFn});this.publish("flush",{defaultFn:this._defFlushFn});this._entries=[];},destructor:function(){this._entries=[];},_setMax:function(f){var e=this._entries;if(f>0){if(e){while(e.length>f){e.shift();}}}else{f=0;this._entries=[];}return f;},_getSize:function(){return this._entries.length;},_getEntries:function(){return this._entries;},_defAddFn:function(i){var g=this._entries,f=this.get("max"),h=i.entry;if(this.get("uniqueKeys")&&(this.retrieve(i.entry.request))){g.shift();}while(f&&g.length>=f){g.shift();}g[g.length]=h;},_defFlushFn:function(h){var f=this._entries,g=h.details[0],i;if(g&&a.isValue(g.request)){i=this._position(g.request);if(a.isValue(i)){f.splice(i,1);}}else{this._entries=[];}},_isMatch:function(f,e){if(!e.expires||new Date()0){for(;f>=0;f--){if(this._isMatch(h,e[f])){return f;}}}return null;},add:function(g,f){var e=this.get("expires");if(this.get("initialized")&&((this.get("max")===null)||this.get("max")>0)&&(a.isValue(g)||a.isNull(g)||a.isUndefined(g))){this.fire("add",{entry:{request:g,response:f,cached:new Date(),expires:b(e)?e:(e?new Date(new Date().getTime()+this.get("expires")):null)}});}else{}},flush:function(e){this.fire("flush",{request:(a.isValue(e)?e:null)});},retrieve:function(h){var e=this._entries,g=e.length,f=null,i;if((g>0)&&((this.get("max")===null)||(this.get("max")>0))){this.fire("request",{request:h});i=this._position(h);if(a.isValue(i)){f=e[i];this.fire("retrieve",{entry:f});if(i=parseInt(H[0],10)&&I<=parseInt(H[1],10)){return true;}else{if(H.length==1&&(parseInt(J[K],10)==I)){return true;}}}return false;}},_getRulesForDate:function(R){var N=R.getFullYear(),L=R.getMonth(),J=R.getDate(),M=R.getDay(),Q=this._rules,O=[],K,I,H,P;for(K in Q){if(this._isNumInList(N,K)){if(i.isString(Q[K])){O.push(Q[K]);}else{for(I in Q[K]){if(this._isNumInList(L,I)){if(i.isString(Q[K][I])){O.push(Q[K][I]);}else{for(H in Q[K][I]){if(this._isNumInList(J,H)){if(i.isString(Q[K][I][H])){O.push(Q[K][I][H]);}else{for(P in Q[K][I][H]){if(this._isNumInList(M,P)){if(i.isString(Q[K][I][H][P])){O.push(Q[K][I][H][P]);}}}}}}}}}}}}return O;},_matchesRule:function(H,I){return(w(this._getRulesForDate(H),I)>=0);},_canBeSelected:function(J){var H=this.get("enabledDatesRule"),I=this.get("disabledDatesRule");if(H){return this._matchesRule(J,H);}else{if(I){return !this._matchesRule(J,I);}else{return true;}}},selectDates:function(H){if(n.isValidDate(H)){this._addDateToSelection(H);}else{if(i.isArray(H)){this._addDatesToSelection(H);}}},deselectDates:function(H){if(H==null){this._clearSelection();}else{if(n.isValidDate(H)){this._removeDateFromSelection(H);}else{if(i.isArray(H)){this._removeDatesFromSelection(H);}}}},_addDateToSelection:function(K,I){if(this._canBeSelected(K)){var J=K.getFullYear(),L=K.getMonth(),H=K.getDate();if(E(this._selectedDates,J)){if(E(this._selectedDates[J],L)){this._selectedDates[J][L][H]=K;}else{this._selectedDates[J][L]={};this._selectedDates[J][L][H]=K;}}else{this._selectedDates[J]={};this._selectedDates[J][L]={};this._selectedDates[J][L][H]=K;}this._selectedDates=a(this._selectedDates,[J,L,H],K);this._renderSelectedDate(K);if(I==null){this._fireSelectionChange();}}},_addDatesToSelection:function(H){f(H,this._addDateToSelection,this);this._fireSelectionChange();},_addDateRangeToSelection:function(H,M){var I=(M.getTimezoneOffset()-H.getTimezoneOffset())*60000,K=H.getTime(),J=M.getTime();if(K>J){var O=K;K=J;J=O+I;}else{J=J-I;}for(var L=K;L<=J;L+=86400000){var N=new Date(L);N.setHours(12);this._addDateToSelection(N,L);}this._fireSelectionChange();},_removeDateFromSelection:function(K,I){var J=K.getFullYear(),L=K.getMonth(),H=K.getDate();if(E(this._selectedDates,J)&&E(this._selectedDates[J],L)&&E(this._selectedDates[J][L],H)){delete this._selectedDates[J][L][H];this._renderUnselectedDate(K);if(I==null){this._fireSelectionChange();}}},_removeDatesFromSelection:function(H){f(H,this._removeDateDromSelection);this._fireSelectionChange();},_removeDateRangeFromSelection:function(H,L){var J=H.getTime(),I=L.getTime();for(var K=J;K<=I;K+=86400000){this._removeDateFromSelection(new Date(K),K);}this._fireSelectionChange();},_clearSelection:function(H){this._selectedDates={};this.get("contentBox").all("."+e).removeClass(e);if(!H){this._fireSelectionChange();}},_fireSelectionChange:function(){this.fire("selectionChange",{newSelection:this._getSelectedDatesList()});},_restoreModifiedCells:function(){var H=this.get("contentBox"),I;for(I in this._storedDateCells){H.one("#"+I).replace(this._storedDateCells[I]);delete this._storedDateCells[I];}},_renderCustomRules:function(){this.get("contentBox").all("."+C+",."+s).removeClass(g);if(!o(this._rules)){var K=this.get("enabledDatesRule"),J=this.get("disabledDatesRule");for(var I=0;I0){var N=this._dateToNode(M);if((K&&!(w(O,K)>=0))||(J&&(w(O,J)>=0))){N.addClass(g);}if(i.isFunction(this._filterFunction)){this._storedDateCells[N.get("id")]=N.cloneNode(true);this._filterFunction(M,N,O);}}},this);}}},_renderSelectedDates:function(){this.get("contentBox").all("."+e).removeClass(e);for(var I=0;I=6){J=12;}else{J=5;}break;case (1):J=6;break;case (2):if(M>0){J=7;}else{J=0;}break;case (3):if(M>1){J=8;}else{J=1;}break;case (4):if(M>2){J=9;}else{J=2;}break;case (5):if(M>3){J=10;}else{J=3;}break;case (6):if(M>4){J=11;}else{J=4;}break;}return(this.get("contentBox").one("#"+this._calendarId+"_pane_"+L+"_"+J+"_"+H));},_nodeToDate:function(N){var I=N.get("id").split("_").reverse(),K=parseInt(I[2],10),H=parseInt(I[0],10);var M=n.addMonths(this.get("date"),K),J=M.getFullYear(),L=M.getMonth();return new Date(J,L,H,12,0,0,0);},_bindCalendarEvents:function(){},_normalizeDate:function(H){return new Date(H.getFullYear(),H.getMonth(),1,12,0,0,0);},_getCutoffColumn:function(I,J){var K=this._normalizeDate(I).getDay()-J;var H=6-(K+7)%7;return H;},_turnPrevMonthOn:function(L){var K=L.get("id"),I=this._paneProperties[K].paneDate,J=n.daysInMonth(n.addMonths(I,-1));if(!this._paneProperties[K].hasOwnProperty("daysInPrevMonth")){this._paneProperties[K].daysInPrevMonth=0;}if(J!=this._paneProperties[K].daysInPrevMonth){this._paneProperties[K].daysInPrevMonth=J;for(var H=5;H>=0;H--){L.one("#"+K+"_"+H+"_"+(H-5)).setContent(J--);}}},_turnPrevMonthOff:function(J){var I=J.get("id");this._paneProperties[I].daysInPrevMonth=0;for(var H=5;H>=0;H--){J.one("#"+I+"_"+H+"_"+(H-5)).setContent(" ");}},_cleanUpNextMonthCells:function(I){var H=I.get("id");I.one("#"+H+"_6_29").removeClass(s);I.one("#"+H+"_7_30").removeClass(s);I.one("#"+H+"_8_31").removeClass(s);I.one("#"+H+"_0_30").removeClass(s);I.one("#"+H+"_1_31").removeClass(s);},_turnNextMonthOn:function(N){var I=1,M=N.get("id"),J=this._paneProperties[M].daysInMonth,L=this._paneProperties[M].cutoffCol;for(var H=J-22;HI){V=s;}}if(L<1||L>I){L=" ";}var O=(M>=S&&M<(S+7))?"":v;R[X]+=u(A.CALDAY_TEMPLATE,{day_content:L,calendar_col_class:"calendar_col"+M,calendar_col_visibility_class:O,calendar_day_class:V,calendar_day_id:Q});}}P["body_template"]="";f(R,function(Y){P["body_template"]+=u(A.CALDAY_ROW_TEMPLATE,{calday_row:Y});});P["calendar_pane_id"]=N;var J=u(u(A.CALENDAR_GRID_TEMPLATE,P),A.CALENDAR_STRINGS);this._paneProperties[N]={cutoffCol:S,daysInMonth:I,paneDate:K};return J;},_rerenderCalendarPane:function(O,J){var H=this.get("strings.first_weekday")||0,N=this._getCutoffColumn(O,H),I=n.daysInMonth(O),L=J.get("id");J.setStyle("visibility","hidden");for(var K=0;K<=12;K++){var M=J.all("."+"calendar_col"+K);M.removeClass(v);if(K=(N+7)){M.addClass(v);}else{switch(K){case 0:var P=J.one("#"+L+"_0_30");if(I>=30){P.setContent("30");P.removeClass(s).addClass(C);}else{P.setContent(" ");P.addClass(s).addClass(C);}break;case 1:var P=J.one("#"+L+"_1_31");if(I>=31){P.setContent("31");P.removeClass(s).addClass(C);}else{P.setContent(" ");P.removeClass(C).addClass(s);}break;case 6:var P=J.one("#"+L+"_6_29");if(I>=29){P.setContent("29");P.removeClass(s).addClass(C);}else{P.setContent(" ");P.removeClass(C).addClass(s);}break;case 7:var P=J.one("#"+L+"_7_30");if(I>=30){P.setContent("30");P.removeClass(s).addClass(C);}else{P.setContent(" ");P.removeClass(C).addClass(s);}break;case 8:var P=J.one("#"+L+"_8_31");if(I>=31){P.setContent("31");P.removeClass(s).addClass(C); -}else{P.setContent(" ");P.removeClass(C).addClass(s);}break;}}}this._paneProperties[L].cutoffCol=N;this._paneProperties[L].daysInMonth=I;this._paneProperties[L].paneDate=O;J.setStyle("visibility","visible");},_updateCalendarHeader:function(J){var I="",H=this.get("headerRenderer");if(c.Lang.isString(H)){I=n.format(J,{format:H});}else{if(H instanceof Function){I=H.call(this,J);}}return I;},_initCalendarHeader:function(H){return u(u(A.HEADER_TEMPLATE,{calheader:this._updateCalendarHeader(H)}),A.CALENDAR_STRINGS);},_initCalendarHTML:function(K){var J={},H=0;J["header_template"]=this._initCalendarHeader(K);J["calendar_id"]=this._calendarId;J["body_template"]=u(u(A.CONTENT_TEMPLATE,J),A.CALENDAR_STRINGS);function L(){var M=this._initCalendarPane(n.addMonths(K,H),J["calendar_id"]+"_pane_"+H);H++;return M;}var I=J["body_template"].replace(/\{calendar_grid_template\}/g,c.bind(L,this));this._paneNumber=H;return I;}},{CALENDAR_STRINGS:{calendar_grid_class:j,calendar_body_class:z,calendar_hd_class:p,calendar_hd_label_class:m,calendar_weekdayrow_class:r,calendar_weekday_class:B,calendar_row_class:k,calendar_day_class:C,calendar_dayanchor_class:y,calendar_pane_class:G,calendar_right_grid_class:x,calendar_left_grid_class:d},CONTENT_TEMPLATE:'
      '+"{header_template}"+'
      '+"{calendar_grid_template}"+"
      "+"
      ",ONE_PANE_TEMPLATE:'
      '+"{header_template}"+'
      '+"{calendar_grid_template}"+"
      "+"
      ",TWO_PANE_TEMPLATE:'
      '+"{header_template}"+'
      '+'
      '+"{calendar_grid_template}"+"
      "+"
      "+'
      '+'
      '+"{calendar_grid_template}"+"
      "+"
      "+"
      ",THREE_PANE_TEMPLATE:'
      '+"{header_template}"+'
      '+'
      '+"{calendar_grid_template}"+"
      "+"
      "+'
      '+"{calendar_grid_template}"+"
      "+'
      '+'
      '+"{calendar_grid_template}"+"
      "+"
      "+"
      ",CALENDAR_GRID_TEMPLATE:''+""+"{weekday_row_template}"+""+""+"{body_template}"+""+"
      ",HEADER_TEMPLATE:'
      '+'
      '+"

      "+"{calheader}"+"

      "+"
      "+"
      ",WEEKDAY_ROW_TEMPLATE:''+"{weekday_row}"+"",CALDAY_ROW_TEMPLATE:''+"{calday_row}"+"",WEEKDAY_TEMPLATE:'{weekdayname}',CALDAY_TEMPLATE:''+"{day_content}"+"",NAME:"calendarBase",ATTRS:{date:{value:new Date(),setter:function(I){var H=this._normalizeDate(I);if(n.areEqual(H,this.get("date"))){return this.get("date");}}},showPrevMonth:{value:false},showNextMonth:{value:false},strings:{valueFn:function(){return c.Intl.get("calendar-base");}},headerRenderer:{value:"%B %Y"},enabledDatesRule:{value:null},disabledDatesRule:{value:null},selectedDates:{readOnly:true,getter:function(H){return(this._getSelectedDatesList());}},customRenderer:{value:{},setter:function(H){this._rules=H.rules;this._filterFunction=H.filterFunction;}}}});},"3.4.1",{requires:["widget","substitute","datatype-date","datatype-date-math","cssgrids"],lang:["en","ja","ru"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/calendar-base/lang/calendar-base_ja.js b/lib/yui/3.4.1/build/calendar-base/lang/calendar-base_ja.js deleted file mode 100644 index 944bc62f85e..00000000000 --- a/lib/yui/3.4.1/build/calendar-base/lang/calendar-base_ja.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("lang/calendar-base_ja",function(a){a.Intl.add("calendar-base","ja",{weekdays:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],short_weekdays:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"],very_short_weekdays:["日","月","火","水","木","金","土"],first_weekday:0,weekends:[0,6]});},"3.4.1"); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/calendar/assets/calendar-base-core.css b/lib/yui/3.4.1/build/calendar/assets/calendar-base-core.css deleted file mode 100644 index b9c617a5d93..00000000000 --- a/lib/yui/3.4.1/build/calendar/assets/calendar-base-core.css +++ /dev/null @@ -1,56 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-calendar { -} - -.yui3-calendar-content { -} - -.yui3-calendar-pane { - width: 100%; -} - -.yui3-calendar-grid { - width: 100%; -} - -.yui3-calendar-left-grid { - margin-right:1em; -} - -.yui3-calendar-right-grid { - margin-left:1em; -} - -.yui3-calendar-column-hidden, .yui3-calendar-hidden { - display:none; -} - -.yui3-calendar-day { - -} - -.yui3-calendar-selection-disabled { - color: #999999; -} - -.yui3-calendar-prevmonth-day { - color: #cccccc; -} - -.yui3-calendar-nextmonth-day { - color: #cccccc; -} - -.yui3-calendar-day-selected { - background-color: #dddddd; -} - -.yui3-calendar-header-label { - text-align: center; -} - diff --git a/lib/yui/3.4.1/build/calendar/assets/skins/sam/calendar-skin.css b/lib/yui/3.4.1/build/calendar/assets/skins/sam/calendar-skin.css deleted file mode 100644 index 9ee12f94af9..00000000000 --- a/lib/yui/3.4.1/build/calendar/assets/skins/sam/calendar-skin.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ diff --git a/lib/yui/3.4.1/build/calendar/assets/skins/sam/calendarnavigator-skin.css b/lib/yui/3.4.1/build/calendar/assets/skins/sam/calendarnavigator-skin.css deleted file mode 100644 index b0aa0968705..00000000000 --- a/lib/yui/3.4.1/build/calendar/assets/skins/sam/calendarnavigator-skin.css +++ /dev/null @@ -1,13 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-calendarnav-prevmonth, .yui3-calendarnav-nextmonth { - color: #000000; -} - -.yui3-calendarnav-prevmonth:hover, .yui3-calendarnav-nextmonth:hover { - color: #0066CC; -} \ No newline at end of file diff --git a/lib/yui/3.4.1/build/calendar/calendar-min.js b/lib/yui/3.4.1/build/calendar/calendar-min.js deleted file mode 100644 index 913f2d63e93..00000000000 --- a/lib/yui/3.4.1/build/calendar/calendar-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("calendar",function(a){var e=a.ClassNameManager.getClassName,m="calendar",h=e(m,"header"),d=e(m,"day-selected"),b=e(m,"day"),l=e(m,"prevmonth-day"),j=e(m,"nextmonth-day"),k=a.DataType.Date,i=a.delegate,g=e(m,"pane"),f=a.UA.os;function c(n){c.superclass.constructor.apply(this,arguments);}a.Calendar=a.extend(c,a.CalendarBase,{_lastSelectedDate:null,initializer:function(){this.plug(a.Plugin.CalendarNavigator);},syncUI:function(){},_bindCalendarEvents:function(){var n=this.get("contentBox"),o=n.one("."+g);o.on("selectstart",function(p){p.preventDefault();});o.delegate("click",this._clickCalendar,"."+b,this);},_clickCalendar:function(q){var r=q.target,o=r.hasClass(b)&&!r.hasClass(l)&&!r.hasClass(j),n=r.hasClass(d);switch(this.get("selectionMode")){case ("single"):if(o){if(!n){this._clearSelection(true);this._addDateToSelection(this._nodeToDate(r));}}break;case ("multiple-sticky"):if(o){if(n){this._removeDateFromSelection(this._nodeToDate(r));}else{this._addDateToSelection(this._nodeToDate(r));}}break;case ("multiple"):if(!q.metaKey&&!q.ctrlKey&&!q.shiftKey){this._clearSelection(true);this._lastSelectedDate=this._nodeToDate(r);this._addDateToSelection(this._lastSelectedDate);}else{if(((f=="macintosh"&&q.metaKey)||(f!="macintosh"&&q.ctrlKey))&&!q.shiftKey){if(n){this._removeDateFromSelection(this._nodeToDate(r));this._lastSelectedDate=null;}else{this._lastSelectedDate=this._nodeToDate(r);this._addDateToSelection(this._lastSelectedDate);}}else{if(((f=="macintosh"&&q.metaKey)||(f!="macintosh"&&q.ctrlKey))&&q.shiftKey){if(this._lastSelectedDate!=null){var p=this._nodeToDate(r);this._addDateRangeToSelection(p,this._lastSelectedDate);this._lastSelectedDate=p;}else{this._lastSelectedDate=this._nodeToDate(r);this._addDateToSelection(this._lastSelectedDate);}}else{if(q.shiftKey){if(this._lastSelectedDate!=null){var p=this._nodeToDate(r);this._clearSelection(true);this._addDateRangeToSelection(p,this._lastSelectedDate);this._lastSelectedDate=p;}else{this._clearSelection(true);this._lastSelectedDate=this._nodeToDate(r);this._addDateToSelection(this._lastSelectedDate);}}}}}break;}if(o){this.fire("dateClick",{cell:r,date:this._nodeToDate(r)});}else{if(r.hasClass(l)){this.fire("prevMonthClick");}else{if(r.hasClass(j)){this.fire("nextMonthClick");}}}},subtractMonth:function(n){this.set("date",k.addMonths(this.get("date"),-1));n.halt();},subtractYear:function(n){this.set("date",k.addYears(this.get("date"),-1));n.halt();},addMonth:function(n){this.set("date",k.addMonths(this.get("date"),1));n.halt();},addYear:function(n){this.set("date",k.addYears(this.get("date"),1));n.halt();}},{NAME:"Calendar",ATTRS:{selectionMode:{value:"single"},date:{value:new Date(),setter:function(s){var o=this._normalizeDate(s),p=k.addMonths(o,this._paneNumber-1),q=this.get("minimumDate"),r=this.get("maximumDate");if((q==null||k.isGreaterOrEqual(o,q))&&(r==null||k.isGreaterOrEqual(r,p))){return o;}else{if(q!=null&&k.isGreater(q,o)){return q;}else{if(r!=null&&k.isGreater(p,r)){var n=k.addMonths(r,-1*(this._paneNumber-1));return n;}}}}},minimumDate:{value:null,setter:function(p){if(p!=null){var o=this.get("date"),n=this._normalizeDate(p);if(o!=null&&!k.isGreaterOrEqual(o,n)){this.set("date",n);}return n;}else{return p;}}},maximumDate:{value:null,setter:function(p){if(p!=null){var n=this.get("date"),o=this._normalizeDate(p);if(n!=null&&!k.isGreaterOrEqual(p,k.addMonths(n,this._paneNumber-1))){this.set("date",k.addMonths(o,-1*(this._paneNumber-1)));}return o;}else{return p;}}}}});},"3.4.1",{requires:["calendar-base","calendarnavigator"],lang:["en","ja","ru"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/calendar/lang/calendar_ja.js b/lib/yui/3.4.1/build/calendar/lang/calendar_ja.js deleted file mode 100644 index 62f26d95fb5..00000000000 --- a/lib/yui/3.4.1/build/calendar/lang/calendar_ja.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("lang/calendar_ja",function(a){a.Intl.add("calendar","ja",{weekdays:["月曜日","火曜日","水曜日","木曜日","金曜日","土曜日","日曜日"],short_weekdays:["月曜","火曜","水曜","木曜","金曜","土曜","日曜"],very_short_weekdays:["月","火","水","木","金","土","日"]});},"3.4.1"); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/calendarnavigator/assets/calendar-base-core.css b/lib/yui/3.4.1/build/calendarnavigator/assets/calendar-base-core.css deleted file mode 100644 index b9c617a5d93..00000000000 --- a/lib/yui/3.4.1/build/calendarnavigator/assets/calendar-base-core.css +++ /dev/null @@ -1,56 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-calendar { -} - -.yui3-calendar-content { -} - -.yui3-calendar-pane { - width: 100%; -} - -.yui3-calendar-grid { - width: 100%; -} - -.yui3-calendar-left-grid { - margin-right:1em; -} - -.yui3-calendar-right-grid { - margin-left:1em; -} - -.yui3-calendar-column-hidden, .yui3-calendar-hidden { - display:none; -} - -.yui3-calendar-day { - -} - -.yui3-calendar-selection-disabled { - color: #999999; -} - -.yui3-calendar-prevmonth-day { - color: #cccccc; -} - -.yui3-calendar-nextmonth-day { - color: #cccccc; -} - -.yui3-calendar-day-selected { - background-color: #dddddd; -} - -.yui3-calendar-header-label { - text-align: center; -} - diff --git a/lib/yui/3.4.1/build/calendarnavigator/assets/skins/sam/calendar-skin.css b/lib/yui/3.4.1/build/calendarnavigator/assets/skins/sam/calendar-skin.css deleted file mode 100644 index 9ee12f94af9..00000000000 --- a/lib/yui/3.4.1/build/calendarnavigator/assets/skins/sam/calendar-skin.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ diff --git a/lib/yui/3.4.1/build/calendarnavigator/assets/skins/sam/calendarnavigator-skin.css b/lib/yui/3.4.1/build/calendarnavigator/assets/skins/sam/calendarnavigator-skin.css deleted file mode 100644 index b0aa0968705..00000000000 --- a/lib/yui/3.4.1/build/calendarnavigator/assets/skins/sam/calendarnavigator-skin.css +++ /dev/null @@ -1,13 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-calendarnav-prevmonth, .yui3-calendarnav-nextmonth { - color: #000000; -} - -.yui3-calendarnav-prevmonth:hover, .yui3-calendarnav-nextmonth:hover { - color: #0066CC; -} \ No newline at end of file diff --git a/lib/yui/3.4.1/build/calendarnavigator/assets/skins/sam/calendarnavigator.css b/lib/yui/3.4.1/build/calendarnavigator/assets/skins/sam/calendarnavigator.css deleted file mode 100644 index 5556df775db..00000000000 --- a/lib/yui/3.4.1/build/calendarnavigator/assets/skins/sam/calendarnavigator.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -.yui3-calendar-header{padding-left:15px;padding-right:15px}.yui3-calendar-header-label{width:100%}.yui3-calendarnav-prevmonth{width:15px;margin-left:-15px;cursor:pointer}.yui3-calendarnav-nextmonth{width:15px;margin-right:-15px;cursor:pointer;text-align:right}.yui3-calendarnav-prevmonth,.yui3-calendarnav-nextmonth{color:#000}.yui3-calendarnav-prevmonth:hover,.yui3-calendarnav-nextmonth:hover{color:#06c} diff --git a/lib/yui/3.4.1/build/calendarnavigator/calendarnavigator-min.js b/lib/yui/3.4.1/build/calendarnavigator/calendarnavigator-min.js deleted file mode 100644 index af2e76b296b..00000000000 --- a/lib/yui/3.4.1/build/calendarnavigator/calendarnavigator-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("calendarnavigator",function(a){var m="contentBox",o="host",k="rendered",b=a.ClassNameManager.getClassName,h=a.substitute,c=a.Node,g=c.create,n="calendar",f="calendarnav",i=b(n,"header"),d=b(f,"prevmonth"),e=b(f,"nextmonth"),l=a.DataType.Date;function j(p){j.superclass.constructor.apply(this,arguments);}j.NS="navigator";j.NAME="pluginCalendarNavigator";j.ATTRS={shiftByMonths:{value:1}};j.CALENDARNAV_STRINGS={prev_month_class:d,next_month_class:e};j.PREV_MONTH_CONTROL_TEMPLATE='
      '+"◄"+"
      ";j.NEXT_MONTH_CONTROL_TEMPLATE='
      '+"►"+"
      ";a.extend(j,a.Plugin.Base,{initializer:function(p){this.afterHostMethod("renderUI",this._initNavigationControls);},destructor:function(){},_subtractMonths:function(r){var q=this.get(o);var p=q.get("date");q.set("date",l.addMonths(p,-1*this.get("shiftByMonths")));r.preventDefault();},_addMonths:function(r){var q=this.get(o);var p=q.get("date");q.set("date",l.addMonths(p,this.get("shiftByMonths")));r.preventDefault();},_renderPrevControls:function(){var p=g(h(j.PREV_MONTH_CONTROL_TEMPLATE,j.CALENDARNAV_STRINGS));p.on("click",this._subtractMonths,this);p.on("selectstart",function(q){q.preventDefault();});return p;},_renderNextControls:function(){var p=g(h(j.NEXT_MONTH_CONTROL_TEMPLATE,j.CALENDARNAV_STRINGS));p.on("click",this._addMonths,this);p.on("selectstart",function(q){q.preventDefault();});return p;},_initNavigationControls:function(){var p=this.get(o);var q=p.get(m).one("."+i);q.prepend(this._renderPrevControls(p));q.append(this._renderNextControls(p));}});a.namespace("Plugin").CalendarNavigator=j;},"3.4.1",{requires:["plugin","classnamemanager","datatype-date","node","substitute"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/charts/charts-min.js b/lib/yui/3.4.1/build/charts/charts-min.js deleted file mode 100644 index ab785ed8189..00000000000 --- a/lib/yui/3.4.1/build/charts/charts-min.js +++ /dev/null @@ -1,24 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("charts",function(b){var g=b.config.doc,p=b.Lang,k,o,s,a,c=b.ClassNameManager.getClassName,m=c("seriesmarker");function q(){}q.ATTRS={styles:{getter:function(){this._styles=this._styles||this._getDefaultStyles();return this._styles;},setter:function(w){this._styles=this._setStyles(w);}},graphic:{}};q.NAME="renderer";q.prototype={_styles:null,_setStyles:function(x){var w=this.get("styles");return this._mergeStyles(x,w);},_mergeStyles:function(x,w){if(!w){w={};}var y=b.merge(w,{});b.Object.each(x,function(B,A,z){if(w.hasOwnProperty(A)&&p.isObject(B)&&!p.isArray(B)){y[A]=this._mergeStyles(B,w[A]);}else{y[A]=B;}},this);return y;},_getDefaultStyles:function(){return{padding:{top:0,right:0,bottom:0,left:0}};}};b.augment(q,b.Attribute);b.Renderer=q;k=function(){};k.prototype={_getDefaultMargins:function(){return{top:0,left:0,right:4,bottom:0};},setTickOffsets:function(){var y=this,A=y.get("styles").majorTicks,x=A.length,w=x*0.5,z=A.display;y.set("topTickOffset",0);y.set("bottomTickOffset",0);switch(z){case"inside":y.set("rightTickOffset",x);y.set("leftTickOffset",0);break;case"outside":y.set("rightTickOffset",0);y.set("leftTickOffset",x);break;case"cross":y.set("rightTickOffset",w);y.set("leftTickOffset",w);break;default:y.set("rightTickOffset",0);y.set("leftTickOffset",0);break;}},drawTick:function(D,E,z){var C=this,w=C.get("styles"),B=w.padding,A=z.length,x={x:B.left,y:E.y},y={x:A+B.left,y:E.y};C.drawLine(D,x,y);},getLineStart:function(){var w=this.get("styles"),A=w.padding,B=w.majorTicks,x=B.length,z=B.display,y={x:A.left,y:0};if(z==="outside"){y.x+=x;}else{if(z==="cross"){y.x+=x/2;}}return y;},getLabelPoint:function(w){return{x:w.x-this.get("leftTickOffset"),y:w.y};},updateMaxLabelSize:function(F){var H=this,D=this._labelRotationProps,x=D.rot,A=D.absRot,G=D.sinRadians,y=D.cosRadians,C=D.m11,B=D.m12,z=D.m21,w=D.m22,E;if(!g.createElementNS){F.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+C+" M12="+B+" M21="+z+" M22="+w+' sizingMethod="auto expand")';H.set("maxLabelSize",Math.max(H.get("maxLabelSize"),F.offsetWidth));}else{F.style.msTransform="rotate(0deg)";if(x===0){E=F.offsetWidth;}else{if(A===90){E=F.offsetHeight;}else{E=(y*F.offsetWidth)+(G*F.offsetHeight);}}H.set("maxLabelSize",Math.max(H.get("maxLabelSize"),E));}},positionTitle:function(J){var L=this,H,M=L.get("styles").title,F=this._getTextRotationProps(M),A=F.rot,C=F.absRot,K=F.sinRadians,z=F.cosRadians,I=0,G=this.get("height")/2,w=0,D=0,E=J.offsetWidth,B=J.offsetHeight;if(b.config.doc.createElementNS){if(A===0){H=E;D-=B*0.5;}else{if(C===90){H=B;if(A===90){w+=B;D-=E*0.5;}else{D+=E*0.5;}}else{H=(z*E)+(K*B);if(A>0){D-=((K*E)+(z*B))/2;w+=Math.min(B,(K*B));}else{D+=(K*E)/2-(z*B)/2;}}}G+=D;I+=w;F.x=Math.round(I);F.y=Math.round(G);}else{J.style.filter=null;E=Math.round(J.offsetWidth);B=Math.round(J.offsetHeight);if(A===0){D-=B*0.5;H=E;}else{if(A===90){D-=E*0.5;H=B;}else{if(A===-90){D-=E*0.5;H=B;}else{H=(z*E)+(K*B);D-=((K*E)+(z*B))/2;}}}G+=D;I+=w;J.style.left=Math.round(I)+"px";J.style.top=Math.round(G)+"px";}this._titleSize=H;this._rotate(J,F);},positionLabel:function(I,M){var L=this,K=L.get("leftTickOffset"),F=L.get("rightTickOffset"),x=L.get("styles").label,B=0,A=M.x+this._titleSize,E=M.y,H=this._labelRotationProps,z=H.rot,D=H.absRot,J=H.sinRadians,y=H.cosRadians,w=L.get("maxLabelSize"),G=Math.round(I.offsetWidth),C=Math.round(I.offsetHeight);if(x.margin&&x.margin.right){B=x.margin.right;}if(!g.createElementNS){I.style.filter=null;G=Math.round(I.offsetWidth);C=Math.round(I.offsetHeight);if(z===0){A=G;E-=C*0.5;}else{if(D===90){A=C;E-=G*0.5;}else{if(z>0){A=(y*G)+(C*z/90);E-=(J*G)+(y*(C*0.5));}else{A=(y*G)+(D/90*C);E-=y*(C*0.5);}}}A+=K;I.style.left=Math.round((M.x+this._titleSize+w)-A)+"px";I.style.top=Math.round(E)+"px";this._rotate(I,this._labelRotationProps);return;}I.style.msTransform="rotate(0deg)";G=Math.round(I.offsetWidth);C=Math.round(I.offsetHeight);if(z===0){A-=G;E-=C*0.5;}else{if(z===90){E-=G*0.5;}else{if(z===-90){A-=C;E+=G*0.5;}else{if(z<0){A-=(y*G)+(J*C);E+=(J*G)-(y*(C*0.6));}else{A-=(y*G);E-=(J*G)+(y*(C*0.6));}}}}A+=F;A-=B;H.x=Math.round(L.get("maxLabelSize")+A);H.y=Math.round(E);this._rotate(I,this._labelRotationProps);},setSizeAndPosition:function(){var y=this,w=y.get("maxLabelSize"),x=y.get("styles"),C=y.get("leftTickOffset"),A=w+C,B=y.get("graphic"),z=x.label.margin;if(z&&z.right){A+=z.right;}A+=this._titleSize;A=Math.round(A);y.set("width",A);y.get("contentBox").setStyle("width",A);B.set("x",A-C);},offsetNodeForTick:function(w){},setCalculatedSize:function(){var A=this,z=A.get("styles"),y=z.label,B=A.get("leftTickOffset"),x=A.get("maxLabelSize"),w=Math.round(this._titleSize+B+x+y.margin.right);A.get("contentBox").setStyle("width",w);A.set("width",w);}};b.LeftAxisLayout=k;o=function(){};o.prototype={_getDefaultMargins:function(){return{top:0,left:4,right:0,bottom:0};},setTickOffsets:function(){var y=this,A=y.get("styles").majorTicks,x=A.length,w=x*0.5,z=A.display;y.set("topTickOffset",0);y.set("bottomTickOffset",0);switch(z){case"inside":y.set("leftTickOffset",x);y.set("rightTickOffset",0);break;case"outside":y.set("leftTickOffset",0);y.set("rightTickOffset",x);break;case"cross":y.set("rightTickOffset",w);y.set("leftTickOffset",w);break;default:y.set("leftTickOffset",0);y.set("rightTickOffset",0);break;}},drawTick:function(D,E,z){var C=this,w=C.get("styles"),B=w.padding,A=z.length,x={x:B.left,y:E.y},y={x:B.left+A,y:E.y};C.drawLine(D,x,y);},getLineStart:function(){var y=this,w=y.get("styles"),B=w.padding,C=w.majorTicks,x=C.length,A=C.display,z={x:B.left,y:B.top};if(A==="inside"){z.x+=x;}else{if(A==="cross"){z.x+=x/2;}}return z;},getLabelPoint:function(w){return{x:w.x+this.get("rightTickOffset"),y:w.y};},updateMaxLabelSize:function(F){var H=this,D=this._labelRotationProps,x=D.rot,A=D.absRot,G=D.sinRadians,y=D.cosRadians,C=D.m11,B=D.m12,z=D.m21,w=D.m22,E;if(!g.createElementNS){F.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+C+" M12="+B+" M21="+z+" M22="+w+' sizingMethod="auto expand")';H.set("maxLabelSize",Math.max(H.get("maxLabelSize"),F.offsetWidth)); -}else{F.style.msTransform="rotate(0deg)";if(x===0){E=F.offsetWidth;}else{if(A===90){E=F.offsetHeight;}else{E=(y*F.offsetWidth)+(G*F.offsetHeight);}}H.set("maxLabelSize",Math.max(H.get("maxLabelSize"),E));}},positionTitle:function(K){var M=this,I,N=M.get("styles").title,B=N.margin,G=this._getTextRotationProps(N),A=G.rot,D=G.absRot,L=G.sinRadians,z=G.cosRadians,J=0,H=this.get("height")/2,w=this.get("maxLabelSize")+B.left+this.get("rightTickOffset")+this.get("styles").label.margin.left,E=0,F=K.offsetWidth,C=K.offsetHeight;if(b.config.doc.createElementNS){if(A===0){I=F;E-=C*0.5;}else{if(D===90){I=C;if(A===90){E-=F*0.5;w+=C;}else{E+=F*0.5;}}else{I=(z*F)+(L*C);if(A>0){E-=((L*F)+(z*C))/2;w+=Math.min(C,(L*C));}else{E+=(L*F)/2-(z*C)/2;}}}H+=E;J+=w;G.x=Math.round(J);G.y=Math.round(H);}else{K.style.filter=null;F=Math.round(K.offsetWidth);C=Math.round(K.offsetHeight);if(A===0){E-=C*0.5;I=F;}else{if(A===90){E-=F*0.5;I=C;}else{if(A===-90){E-=F*0.5;I=C;}else{I=(z*F)+(L*C);E-=((L*F)+(z*C))/2;}}}H+=E;J+=w;K.style.left=Math.round(J)+"px";K.style.top=Math.round(H)+"px";}this._titleSize=I;this._rotate(K,G);},positionLabel:function(G,K){var J=this,I=J.get("rightTickOffset"),w=J.get("styles").label,A=0,z=K.x,D=K.y,F=this._labelRotationProps,y=F.rot,C=F.absRot,H=F.sinRadians,x=F.cosRadians,E=Math.round(G.offsetWidth),B=Math.round(G.offsetHeight);if(w.margin&&w.margin.left){A=w.margin.left;}if(!g.createElementNS){G.style.filter=null;if(y===0){D-=B*0.5;}else{if(C===90){D-=E*0.5;}else{if(y>0){D-=(x*(B*0.5));}else{D-=(H*E)+(x*(B*0.5));}}}z+=A;z+=I;G.style.left=Math.round(z)+"px";G.style.top=Math.round(D)+"px";this._rotate(G,F);return;}G.style.msTransform="rotate(0deg)";E=Math.round(G.offsetWidth);B=Math.round(G.offsetHeight);if(y===0){D-=B*0.5;}else{if(y===90){z+=B;D-=E*0.5;}else{if(y===-90){D+=E*0.5;}else{if(y<0){D-=(x*(B*0.6));}else{D-=x*(B*0.6);z+=H*B;}}}}z+=A;z+=I;F.x=Math.round(z);F.y=Math.round(D);this._rotate(G,F);},setSizeAndPosition:function(){var y=this,x=y.get("styles").label,w=y.get("maxLabelSize"),A=y.get("rightTickOffset"),z=A+w;if(x.margin&&x.margin.left){z+=x.margin.left;}z+=this._titleSize;y.set("width",z);y.get("contentBox").setStyle("width",z);},offsetNodeForTick:function(w){var x=this,z=x.get("leftTickOffset"),y=0-z;w.setStyle("left",y);},setCalculatedSize:function(){var y=this,x=y.get("styles").label,w=Math.round(y.get("rightTickOffset")+y.get("maxLabelSize")+this._titleSize+y.get("styles").title.margin.left+x.margin.left);y.set("width",w);}};b.RightAxisLayout=o;s=function(){};s.prototype={_getDefaultMargins:function(){return{top:4,left:0,right:0,bottom:0};},setTickOffsets:function(){var y=this,A=y.get("styles").majorTicks,x=A.length,w=x*0.5,z=A.display;y.set("leftTickOffset",0);y.set("rightTickOffset",0);switch(z){case"inside":y.set("topTickOffset",x);y.set("bottomTickOffset",0);break;case"outside":y.set("topTickOffset",0);y.set("bottomTickOffset",x);break;case"cross":y.set("topTickOffset",w);y.set("bottomTickOffset",w);break;default:y.set("topTickOffset",0);y.set("bottomTickOffset",0);break;}},getLineStart:function(){var w=this.get("styles"),A=w.padding,B=w.majorTicks,x=B.length,z=B.display,y={x:0,y:A.top};if(z==="inside"){y.y+=x;}else{if(z==="cross"){y.y+=x/2;}}return y;},drawTick:function(D,E,z){var C=this,w=C.get("styles"),B=w.padding,A=z.length,x={x:E.x,y:B.top},y={x:E.x,y:A+B.top};C.drawLine(D,x,y);},getLabelPoint:function(w){return{x:w.x,y:w.y+this.get("bottomTickOffset")};},updateMaxLabelSize:function(F){var H=this,D=this._labelRotationProps,x=D.rot,A=D.absRot,G=D.sinRadians,y=D.cosRadians,C=D.m11,B=D.m12,z=D.m21,w=D.m22,E;if(!g.createElementNS){F.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+C+" M12="+B+" M21="+z+" M22="+w+' sizingMethod="auto expand")';H.set("maxLabelSize",Math.max(H.get("maxLabelSize"),F.offsetHeight));}else{F.style.msTransform="rotate(0deg)";if(x===0){E=F.offsetHeight;}else{if(A===90){E=F.offsetWidth;}else{E=(G*F.offsetWidth)+(y*F.offsetHeight);}}H.set("maxLabelSize",Math.max(H.get("maxLabelSize"),E));}},positionTitle:function(J){var L=this,H,M=L.get("styles").title,F=this._getTextRotationProps(M),A=F.rot,C=F.absRot,K=F.sinRadians,z=F.cosRadians,I=this.get("width")/2,G=this.get("maxLabelSize")+this.get("styles").label.margin.top+M.margin.top+this.get("bottomTickOffset"),w=0,D=0,E=J.offsetWidth,B=J.offsetHeight;if(b.config.doc.createElementNS){if(A===0){H=B;w-=E*0.5;}else{if(C===90){H=E;if(A===-90){D+=E;w-=B;}}else{H=(K*E)+(z*B);if(A>0){w-=(z*E)/2-(K*B)/2;}else{D+=(K*E)-(z*B)/2;w-=(z*E)/2+(K*B)/2;}}}I+=w;G+=D;F.x=Math.round(I);F.y=Math.round(G);}else{J.style.filter=null;E=Math.round(J.offsetWidth);B=Math.round(J.offsetHeight);if(A===0){w-=E*0.5;H=B;}else{if(A===90){w-=B*0.5;H=E;}else{if(A===-90){w-=B*0.5;H=E;}else{H=(K*E)+(z*B);w-=((z*E)+(K*B))/2;}}}I+=w;G+=D;J.style.left=Math.round(I)+"px";J.style.top=Math.round(G)+"px";}this._titleSize=H;this._rotate(J,F);},positionLabel:function(G,K){var J=this,I=J.get("bottomTickOffset"),w=J.get("styles").label,A=0,F=this._labelRotationProps,z=F.rot,C=F.absRot,H=F.sinRadians,y=F.cosRadians,x=Math.round(K.x),D=Math.round(K.y),E=Math.round(G.offsetWidth),B=Math.round(G.offsetHeight);if(w.margin&&w.margin.top){A=w.margin.top;}if(!g.createElementNS){G.style.filter=null;E=Math.round(G.offsetWidth);B=Math.round(G.offsetHeight);if(C===90){x-=B*0.5;}else{if(z<0){x-=y*E;x-=H*(B*0.5);}else{if(z>0){x-=H*(B*0.5);}else{x-=E*0.5;}}}D+=A;D+=I;G.style.left=Math.round(x)+"px";G.style.top=Math.round(D)+"px";this._rotate(G,F);return;}G.style.msTransform="rotate(0deg)";E=Math.round(G.offsetWidth);B=Math.round(G.offsetHeight);if(z===0){x-=E*0.5;}else{if(C===90){if(z===90){x+=B*0.5;}else{D+=E;x-=B*0.5;}}else{if(z<0){x-=(y*E)+(H*(B*0.6));D+=H*E;}else{x+=Math.round(H*(B*0.6));}}}D+=A;D+=I;F.x=x;F.y=D;this._rotate(G,F);},setSizeAndPosition:function(){var z=this,w=z.get("maxLabelSize"),y=z.get("bottomTickLength"),x=z.get("styles"),B=y+w,A=x.label.margin;if(A&&A.top){B+=A.top;}B=Math.round(B);z.set("height",B);},offsetNodeForTick:function(w){var x=this; -x.get("contentBox").setStyle("top",0-x.get("topTickOffset"));},setCalculatedSize:function(){var y=this,x=y.get("styles").label,w=Math.round(y.get("bottomTickOffset")+y.get("maxLabelSize")+x.margin.top+this.get("styles").title.margin.top+this._titleSize);y.set("height",w);}};b.BottomAxisLayout=s;a=function(){};a.prototype={_getDefaultMargins:function(){return{top:0,left:0,right:0,bottom:4};},setTickOffsets:function(){var y=this,A=y.get("styles").majorTicks,x=A.length,w=x*0.5,z=A.display;y.set("leftTickOffset",0);y.set("rightTickOffset",0);switch(z){case"inside":y.set("bottomTickOffset",x);y.set("topTickOffset",0);break;case"outside":y.set("bottomTickOffset",0);y.set("topTickOffset",x);break;case"cross":y.set("topTickOffset",w);y.set("bottomTickOffset",w);break;default:y.set("topTickOffset",0);y.set("bottomTickOffset",0);break;}},getLineStart:function(){var y=this,w=y.get("styles"),B=w.padding,C=w.majorTicks,x=C.length,A=C.display,z={x:0,y:B.top};if(A==="outside"){z.y+=x;}else{if(A==="cross"){z.y+=x/2;}}return z;},drawTick:function(D,E,z){var C=this,w=C.get("styles"),B=w.padding,A=z.length,x={x:E.x,y:B.top},y={x:E.x,y:A+B.top};C.drawLine(D,x,y);},getLabelPoint:function(w){return{x:w.x,y:w.y-this.get("topTickOffset")};},updateMaxLabelSize:function(F){var H=this,D=this._labelRotationProps,x=D.rot,A=D.absRot,G=D.sinRadians,y=D.cosRadians,C=D.m11,B=D.m12,z=D.m21,w=D.m22,E;if(!g.createElementNS){F.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+C+" M12="+B+" M21="+z+" M22="+w+' sizingMethod="auto expand")';H.set("maxLabelSize",Math.max(H.get("maxLabelSize"),F.offsetHeight));}else{F.style.msTransform="rotate(0deg)";if(x===0){E=F.offsetHeight;}else{if(A===90){E=F.offsetWidth;}else{E=(G*F.offsetWidth)+(y*F.offsetHeight);}}H.set("maxLabelSize",Math.max(H.get("maxLabelSize"),E));}},positionTitle:function(J){var L=this,H,M=L.get("styles").title,F=this._getTextRotationProps(M),A=F.rot,C=F.absRot,K=F.sinRadians,z=F.cosRadians,I=this.get("width")/2,G=M.margin.top,w=0,D=0,E=J.offsetWidth,B=J.offsetHeight;if(b.config.doc.createElementNS){if(A===0){H=B;w-=E*0.5;}else{if(C===90){H=E;if(A===90){w+=B/2;}else{D+=E;w-=B/2;}}else{H=(K*E)+(z*B);if(A>0){w-=(z*E)/2-(K*B)/2;}else{D+=(K*E);w-=(z*E)/2+(K*B)/2;}}}I+=w;G+=D;F.x=Math.round(I);F.y=Math.round(G);}else{J.style.filter=null;E=Math.round(J.offsetWidth);B=Math.round(J.offsetHeight);if(A===0){w-=E*0.5;H=B;}else{if(A===90){w-=B*0.5;H=E;}else{if(A===-90){w-=B*0.5;H=E;}else{H=(K*E)+(z*B);w-=((z*E)+(K*B))/2;}}}I+=w;G+=D;J.style.left=Math.round(I)+"px";J.style.top=Math.round(G)+"px";}this._titleSize=H;this._rotate(J,F);},positionLabel:function(D,K){var I=this,A=I.get("topTickOffset"),B=I.get("bottomTickOffset"),M=I.get("styles").label,z=I.get("styles").title,O=this.get("title")?this._titleSize+z.margin.top+z.margin.bottom:0,J=0,F=K.x,L=K.y+O,y=this._labelRotationProps,E=y.rot,x=y.absRot,H=y.sinRadians,C=y.cosRadians,G=I.get("maxLabelSize"),N=Math.round(D.offsetWidth),w=Math.round(D.offsetHeight);if(M.margin&&M.margin.bottom){J=M.margin.bottom;}if(!g.createElementNS){D.style.filter=null;N=Math.round(D.offsetWidth);w=Math.round(D.offsetHeight);if(E===0){F-=N*0.5;}else{if(x===90){F-=w*0.5;}else{if(E>0){F-=(C*N)+Math.min((H*w),(E/180*w));L-=(H*N)+(C*(w));L+=G;}else{F-=H*(w*0.5);L-=(H*N)+(C*(w));L+=G;}}}L-=A;D.style.left=Math.round(F);D.style.top=Math.round(L);this._rotate(D,y);return;}D.style.msTransform="rotate(0deg)";N=Math.round(D.offsetWidth);w=Math.round(D.offsetHeight);if(E===0){F-=N*0.5;L-=w;}else{if(E===90){F+=w*0.5;L-=N;}else{if(E===-90){F-=w*0.5;L-=0;}else{if(E<0){F-=(H*(w*0.6));L-=(C*w);}else{F-=(C*N)-(H*(w*0.6));L-=(H*N)+(C*w);}}}}L+=B;L-=J;y.x=Math.round(F);y.y=Math.round(I.get("maxLabelSize")+L);this._rotate(D,y);},setSizeAndPosition:function(){var z=this,w=z.get("maxLabelSize"),C=z.get("topTickOffset"),y=z.get("styles"),A=y.label.margin,D=z.get("graphic"),B=C+w,x=y.title.margin;if(A&&A.bottom){B+=A.bottom;}if(this.get("title")){B+=this._titleSize+x.top+x.bottom;}z.set("height",B);D.set("y",B-C);},offsetNodeForTick:function(w){},setCalculatedSize:function(){var B=this,w=B.get("graphic"),C=B.get("styles"),A=C.label.margin,D=C.title.margin,x=A.top+A.bottom+B.get("maxLabelSize"),z=B.get("title")?D.top+D.bottom+B._titleSize:0,E=this.get("topTickOffset"),y=Math.round(E+x+z);B.set("height",y);w.set("y",y-E);}};b.TopAxisLayout=a;b.Axis=b.Base.create("axis",b.Widget,[b.Renderer],{_dataChangeHandler:function(w){if(this.get("rendered")){this._drawAxis();}},_updateHandler:function(w){if(this.get("rendered")){this._drawAxis();}},renderUI:function(){var x=this.get("position"),w=this._layoutClasses[x];if(x&&x!="none"){this._layout=new w();if(this._layout){this._setCanvas();}}},syncUI:function(){var A=this._layout,z,y,w,B,x;if(A){z=A._getDefaultMargins();y=this.get("styles");w=y.label.margin;B=y.title.margin;for(x in z){if(z.hasOwnProperty(x)){w[x]=w[x]===undefined?z[x]:w[x];B[x]=B[x]===undefined?z[x]:B[x];}}}this._drawAxis();},_setCanvas:function(){var x=this.get("contentBox"),C=this.get("boundingBox"),B=this.get("position"),z=this._parentNode,y=this.get("width"),A=this.get("height");C.setStyle("position","absolute");C.setStyle("zIndex",2);y=y?y+"px":z.getStyle("width");A=A?A+"px":z.getStyle("height");if(B==="top"||B==="bottom"){x.setStyle("width",y);}else{x.setStyle("height",A);}x.setStyle("position","relative");x.setStyle("left","0px");x.setStyle("top","0px");this.set("graphic",new b.Graphic());this.get("graphic").render(x);},_getDefaultStyles:function(){var w={majorTicks:{display:"inside",length:4,color:"#dad8c9",weight:1,alpha:1},minorTicks:{display:"none",length:2,color:"#dad8c9",weight:1},line:{weight:1,color:"#dad8c9",alpha:1},majorUnit:{determinant:"count",count:11,distance:75},top:"0px",left:"0px",width:"100px",height:"100px",label:{color:"#808080",alpha:1,fontSize:"85%",rotation:0,margin:{top:undefined,right:undefined,bottom:undefined,left:undefined}},title:{color:"#808080",alpha:1,fontSize:"85%",rotation:undefined,margin:{top:undefined,right:undefined,bottom:undefined,left:undefined}},hideOverlappingLabelTicks:false}; -return b.merge(b.Renderer.prototype._getDefaultStyles(),w);},_handleSizeChange:function(z){var y=z.attrName,B=this.get("position"),x=B=="left"||B=="right",w=this.get("contentBox"),A=B=="bottom"||B=="top";w.setStyle("width",this.get("width"));w.setStyle("height",this.get("height"));if((A&&y=="width")||(x&&y=="height")){this._drawAxis();}},_layoutClasses:{top:a,bottom:s,left:k,right:o},drawLine:function(y,x,w){y.moveTo(x.x,x.y);y.lineTo(w.x,w.y);},_getTextRotationProps:function(F){if(F.rotation===undefined){switch(this.get("position")){case"left":F.rotation=-90;break;case"right":F.rotation=90;break;default:F.rotation=0;break;}}var x=Math.min(90,Math.max(-90,F.rotation)),A=Math.abs(x),D=Math.PI/180,E=parseFloat(parseFloat(Math.sin(A*D)).toFixed(8)),y=parseFloat(parseFloat(Math.cos(A*D)).toFixed(8)),C=y,B=x>0?-E:E,z=-B,w=C;return{rot:x,absRot:A,radCon:D,sinRadians:E,cosRadians:y,m11:C,m12:B,m21:z,m22:w,textAlpha:F.alpha};},_drawAxis:function(){if(this._drawing){this._callLater=true;return;}this._drawing=true;this._callLater=false;if(this._layout){var D=this.get("styles"),F=D.line,A=D.label,P=D.majorTicks,w=P.display!="none",E,y=D.majorUnit,N,L,M=0,O=this._layout,K,Q,H,C,B=this.get("labelFunction"),x=this.get("labelFunctionScope"),z=this.get("labelFormat"),G=this.get("graphic"),I=this.get("path"),J;G.set("autoDraw",false);I.clear();I.set("stroke",{weight:F.weight,color:F.color,opacity:F.alpha});this._labelRotationProps=this._getTextRotationProps(A);O.setTickOffsets.apply(this);K=this.getLength();H=O.getLineStart.apply(this);N=this.getTotalMajorUnits(y);L=this.getMajorUnitDistance(N,K,y);this.set("edgeOffset",this.getEdgeOffset(N,K)*0.5);E=this.getFirstPoint(H);this.drawLine(I,H,this.getLineEnd(E));if(w){J=this.get("tickPath");J.clear();J.set("stroke",{weight:P.weight,color:P.color,opacity:P.alpha});O.drawTick.apply(this,[J,E,P]);}if(N<1){this._clearLabelCache();return;}this._createLabelCache();this._tickPoints=[];this.set("maxLabelSize",0);this._titleSize=0;for(;M0){x=w.shift();}else{x=g.createElement("span");x.style.display="block";x.style.whiteSpace="nowrap";b.one(x).addClass("axisLabel");this.get("contentBox").appendChild(x);}x.style.position="absolute";this._labels.push(x);this._tickPoints.push({x:B.x,y:B.y});this._layout.updateMaxLabelSize.apply(this,[x]);for(y in A){if(A.hasOwnProperty(y)&&!z.hasOwnProperty(y)){x.style[y]=A[y];}}return x;},_createLabelCache:function(){if(this._labels){if(this._labelCache){this._labelCache=this._labels.concat(this._labelCache);}else{this._labelCache=this._labels.concat();}}else{this._clearLabelCache();}this._labels=[];},_clearLabelCache:function(){if(this._labelCache){var w=this._labelCache.length,y=0,x,z=this._labelCache;for(;y-1&&!isNaN(L)){G="progid:DXImageTransform.Microsoft.Alpha(Opacity="+Math.round(L*100)+")";}if(A!==0){if(G){G+=" ";}else{G="";}G+="progid:DXImageTransform.Microsoft.Matrix(M11="+E+" M12="+D+" M21="+B+" M22="+w+' sizingMethod="auto expand")';}if(G){J.style.filter=G;}}}},{ATTRS:{edgeOffset:{value:0},graphic:{},path:{readOnly:true,getter:function(){if(!this._path){var w=this.get("graphic");if(w){this._path=w.addShape({type:"path"});}}return this._path;}},tickPath:{readOnly:true,getter:function(){if(!this._tickPath){var w=this.get("graphic");if(w){this._tickPath=w.addShape({type:"path"});}}return this._tickPath;}},node:{},position:{setOnce:true,setter:function(w){if(w=="none"){this.bindUI();}return w;}},topTickOffset:{value:0},bottomTickOffset:{value:0},leftTickOffset:{value:0},rightTickOffset:{value:0},labels:{readOnly:true,getter:function(){return this._labels;}},tickPoints:{readOnly:true,getter:function(){if(this.get("position")=="none"){return this.get("styles").majorUnit.count;}return this._tickPoints;}},overlapGraph:{value:true,validator:function(w){return p.isBoolean(w);}},labelFunctionScope:{},maxLabelSize:{value:0},title:{}}});b.AxisType=b.Base.create("baseAxis",b.Axis,[],{bindUI:function(){this.after("dataReady",b.bind(this._dataChangeHandler,this));this.after("dataUpdate",b.bind(this._dataChangeHandler,this));this.after("minimumChange",b.bind(this._keyChangeHandler,this));this.after("maximumChange",b.bind(this._keyChangeHandler,this));this.after("keysChange",this._keyChangeHandler);this.after("dataProviderChange",this._dataProviderChangeHandler);this.after("stylesChange",this._updateHandler);this.after("positionChange",this._positionChangeHandler);this.after("overlapGraphChange",this._updateHandler);this.after("widthChange",this._handleSizeChange);this.after("heightChange",this._handleSizeChange);this.after("alwaysShowZeroChange",this._keyChangeHandler);this.after("roundingMethodChange",this._keyChangeHandler);},_dataProviderChangeHandler:function(z){var w=this.get("keyCollection").concat(),y=this.get("keys"),x;if(y){for(x in y){if(y.hasOwnProperty(x)){delete y[x];}}}if(w&&w.length){this.set("keys",w);}},GUID:"yuibaseaxis",_type:null,_setMaximum:null,_dataMaximum:null,_setMinimum:null,_data:null,_updateTotalDataFlag:true,_dataReady:false,addKey:function(w){this.set("keys",w);},_getKeyArray:function(z,A){var y=0,B,x=[],w=A.length;for(;y0){w=B.length;x=A=B[0];if(w>1){for(z=1;z=A){x=Math.floor((z/2-A)/(Math.pow(10,w-1)/2));A=z/2-x*Math.pow(10,w-1)/2;}else{A=z;}if(!isNaN(A)){return A;}return y;},_updateMinAndMax:function(){var x=this.get("data"),C=0,w=0,A,z,y=0,D,E=this.get("setMax"),B=this.get("setMin");if(!E||!B){if(x&&x.length&&x.length>0){A=x.length;for(;y=0,z=F>0,N,w,K,E,G,M,J,B=this.getTotalMajorUnits()-1,H=this.get("alwaysShowZero"),y=this.get("roundingMethod"),A=(F-C)/B>=1;if(y){if(y=="niceNumber"){x=this._getMinimumUnit(F,C,B);if(L&&z){if((H||C=0){G--;E++;M=Math.ceil(F/E);J=Math.floor(C/G)*-1;}if(G>0){F=J*E;}else{F=C+(x*B);}}else{if(I){while(M=0){G++;E--;J=Math.floor(C/G)*-1;M=Math.ceil(F/E);}if(E>0){C=M*G*-1;}else{C=F-(x*B);}}else{x=Math.max(M,J);x=this._getNiceNumber(x);F=x*E;C=x*G*-1;}}}else{if(I){C=F-(x*B);}else{if(D){F=C+(x*B);}else{C=this._roundDownToNearest(C,x);F=this._roundUpToNearest(F,x);}}}}else{if(D){if(H){F=0;}else{F=C+(x*B);}}else{if(!I){if(H||F===0||F+x>0){F=0;x=this._getMinimumUnit(F,C,B);}else{F=this._roundUpToNearest(F,x);}C=F-(x*B);}else{C=F-(x*B);}}}}}else{if(y=="auto"){if(L&&z){if((H||C<(F-C)/B)&&!D){C=0;}x=(F-C)/B;if(A){x=Math.ceil(x);}F=C+(x*B);}else{if(z&&!L){if(H){E=Math.round(B/((-1*C)/F+1));E=Math.max(Math.min(E,B-1),1);G=B-E;if(A){M=Math.ceil(F/E);J=Math.floor(C/G)*-1;}else{M=F/E;J=C/G*-1;}x=Math.max(M,J);F=x*E;C=x*G*-1;}else{x=(F-C)/B;if(A){x=Math.ceil(x);}C=this._roundDownToNearest(C,x);F=this._roundUpToNearest(F,x);}}else{x=(F-C)/B;if(A){x=Math.ceil(x);}if(H||F===0||F+x>0){F=0;x=(F-C)/B;if(A){Math.ceil(x);}}else{F=this._roundUpToNearest(F,x);}C=F-(x*B);}}}else{if(!isNaN(y)&&isFinite(y)){x=y;O=x*B;N=(F-C)>O;K=this._roundDownToNearest(C,x);w=this._roundUpToNearest(F,x);if(I){C=F-O;}else{if(D){F=C+O;}else{if(L&&z){if(H||K<=0){C=0;}else{C=K;}F=C+O;}else{if(z&&!L){C=K;F=C+O;}else{if(H||w>=0){F=0;}else{F=w;}C=F-O;}}}}}}}}this._dataMaximum=F;this._dataMinimum=C;},getLabelByIndex:function(A,x){var z=this.get("minimum"),w=this.get("maximum"),C=(w-z)/(x-1),y,B=this.get("roundingMethod");x-=1;if(A===0){y=z;}else{if(A===x){y=w;}else{y=(A*C);if(this.get("roundingMethod")=="niceNumber"){y=this._roundToNearest(y,C);}y+=z;}}return y;},_roundToNearest:function(y,x){x=x||1;if(x===0){return y;}var w=Math.round(this._roundToPrecision(y/x,10))*x;return this._roundToPrecision(w,10);},_roundUpToNearest:function(x,w){w=w||1;if(w===0){return x;}return Math.ceil(this._roundToPrecision(x/w,10))*w;},_roundDownToNearest:function(x,w){w=w||1;if(w===0){return x;}return Math.floor(this._roundToPrecision(x/w,10))*w;},_roundToPrecision:function(y,w){w=w||0;var x=Math.pow(10,w);return Math.round(x*y)/x;},_hasDataOverflow:function(){var y,x,w;if(this.get("setMin")||this.get("setMax")){return true;}y=this.get("roundingMethod");x=this._actualMinimum;w=this._actualMaximum;if(p.isNumber(y)&&((p.isNumber(w)&&w>this._dataMaximum)||(p.isNumber(x)&&x=0){C+=z;}else{w+=z;}}}if(C>0){D=Math.max(D,C);}else{D=Math.max(D,w);}if(w<0){x=Math.min(x,w);}else{x=Math.min(x,C);}}this._actualMaximum=D;this._actualMinimum=x;if(G){D=this._setMaximum;}if(B){x=this._setMinimum;}this._roundMinAndMax(x,D,B,G);}});b.StackedAxis=e;function d(w){d.superclass.constructor.apply(this,arguments);}d.NAME="timeAxis";d.ATTRS={setMax:{readOnly:true,getter:function(){var w=this._getNumber(this._setMaximum);return(p.isNumber(w));}},setMin:{readOnly:true,getter:function(){var w=this._getNumber(this._setMinimum);return(p.isNumber(w));}},maximum:{getter:function(){var w=this._getNumber(this._setMaximum);if(!p.isNumber(w)){w=this._getNumber(this.get("dataMaximum"));}return w;},setter:function(w){this._setMaximum=this._getNumber(w);return w;}},minimum:{getter:function(){var w=this._getNumber(this._setMinimum);if(!p.isNumber(w)){w=this._getNumber(this.get("dataMinimum"));}return w;},setter:function(w){this._setMinimum=this._getNumber(w);return w;}},labelFunction:{value:function(x,w){x=b.DataType.Date.parse(x);if(w){return b.DataType.Date.format(x,{format:w});}return x;}},labelFormat:{value:"%b %d, %y"}};b.extend(d,b.AxisType,{GUID:"yuitimeaxis",_dataType:"time",getLabelByIndex:function(B,y){var A=this.get("minimum"),x=this.get("maximum"),w=this.get("position"),C,z;y-=1;C=((x-A)/y)*B;if(w=="bottom"||w=="top"){z=A+C;}else{z=x-C;}return z;},_getKeyArray:function(z,A){var B,x=[],y=0,C,w=A.length;for(;yy){K.lineTo(F+Math.cos(z)*y,E+Math.sin(z)*y);}else{if(J>0){K.lineTo(F+Math.cos(z)*J,E+Math.sin(z)*J);}}K.moveTo(w,I);},_getLineDefaults:function(){return{alpha:1,weight:6,lineType:"solid",dashLength:10,gapSpace:10,connectDiscontinuousPoints:true,discontinuousType:"solid",discontinuousDashLength:10,discontinuousGapSpace:10};}};b.augment(h,b.Attribute);b.Lines=h;function u(w){var x={area:{getter:function(){return this._defaults||this._getAreaDefaults();},setter:function(z){var y=this._defaults||this._getAreaDefaults();this._defaults=b.merge(y,z);}}};this.addAttrs(x,w);this.get("styles");}u.prototype={_getPath:function(){var w=this._path;if(!w){w=this.get("graph").get("graphic").addShape({type:"path"}); -this._path=w;}return w;},_toggleVisible:function(w){if(this._path){this._path.set("visible",w);}},drawFill:function(E,A){if(E.length<1){return;}var D=E.length,x=E[0],w=A[0],C=x,B=w,I,G,z=1,F=this.get("styles").area,H=this._getPath(),y=F.color||this._getDefaultColor(this.get("graphOrder"),"slice");H.clear();H.set("fill",{color:y,opacity:F.alpha});H.set("stroke",{weight:0});H.moveTo(x,w);for(;z0){z=B[O-1].get("xcoords").concat().reverse();L=B[O-1].get("ycoords").concat().reverse();H=this.getCurveControlPoints(z,L);P=0;Q=H.length;M.lineTo(z[0],L[0]);for(;P0){C=y[A-1].get("xcoords").concat();z=y[A-1].get("ycoords").concat();F=F.concat(C.concat().reverse());B=B.concat(z.concat().reverse());F.push(F[0]);B.push(B[0]);}else{if(E==="vertical"){F.push(this._leftOrigin);F.push(this._leftOrigin);B.push(B[B.length-1]);B.push(w);}else{F.push(F[F.length-1]);F.push(x);B.push(this._bottomOrigin);B.push(this._bottomOrigin);}}return[F,B];},_getAreaDefaults:function(){return{};}};b.augment(u,b.Attribute);b.Fills=u;function t(w){var x={markers:{getter:function(){return this._markers;}}};this.addAttrs(x,w);}t.prototype={_plotDefaults:null,drawPlots:function(){if(!this.get("xcoords")||this.get("xcoords").length<1){return;}var M=p.isNumber,y=b.clone(this.get("styles").marker),L=y.width,E=y.height,K=this.get("xcoords"),C=this.get("ycoords"),D=0,F=K.length,J=C[0],A,B,G=L/2,z=E/2,I=null,H=null,x=this.get("graphOrder");if(p.isArray(y.fill.color)){I=y.fill.color.concat();}if(p.isArray(y.border.color)){H=y.border.colors.concat();}this._createMarkerCache();for(;D0){while(!x){if(this._markerCache.length<1){x=this._createMarker(A,w,z);break;}x=this._markerCache.shift();}x.set(A);}else{x=this._createMarker(A,w,z);}this._markers.push(x);return x;},_createMarker:function(A,w,z){var B=this.get("graphic"),y,x=b.clone(A);B.set("autoDraw",false);x.type=x.shape;y=B.addShape(x);y.addClass(m);return y;},_createMarkerCache:function(){if(this._markers&&this._markers.length>0){this._markerCache=this._markers.concat();}else{this._markerCache=[];}this._markers=[];},_toggleVisible:function(A){var x,z=this.get("markers"),y=0,w;if(z){w=z.length;for(;y0){w=this._markerCache.shift();if(w){w.destroy();}}},updateMarkerState:function(D,B){if(this._markers[B]){var F,C,G=b.clone(this.get("styles").marker),x=this._getState(D),E=this.get("xcoords"),A=this.get("ycoords"),z=this._markers[B],y=x=="off"||!G[x]?G:G[x];y.fill.color=this._getItemColor(y.fill.color,B);y.border.color=this._getItemColor(y.border.color,B);y.stroke=y.border;z.set(y);F=y.width;C=y.height;z.set("x",(E[B]-F/2));z.set("y",(A[B]-C/2));z.set("visible",this.get("visible"));}},_getItemColor:function(x,w){if(p.isArray(x)){return x[w%x.length];}return x;},_setStyles:function(w){w=this._parseMarkerStyles(w);return b.Renderer.prototype._setStyles.apply(this,[w]);},_parseMarkerStyles:function(x){if(x.marker){var w=this._getPlotDefaults(); -x.marker=this._mergeStyles(x.marker,w);if(x.marker.over){x.marker.over=this._mergeStyles(x.marker.over,x.marker);}if(x.marker.down){x.marker.down=this._mergeStyles(x.marker.down,x.marker);}}return x;},_getState:function(w){var x;switch(w){case"mouseout":x="off";break;case"mouseover":x="over";break;case"mouseup":x="over";break;case"mousedown":x="down";break;}return x;},_stateSyles:null};b.augment(t,b.Attribute);b.Plots=t;function v(){}v.prototype={drawSeries:function(){if(this.get("xcoords").length<1){return;}var S=b.clone(this.get("styles").marker),T,M,J=this.get("xcoords"),V=this.get("ycoords"),P=0,Q=J.length,K=V[0],y=this.get("type"),x=this.get("graph"),F=x.seriesTypes[y],R=F.length,H=0,I=0,B=0,E,N,O=this.get("order"),G=this.get("graphOrder"),A,D,L,z,U,w=null,C=null;if(p.isArray(S.fill.color)){w=S.fill.color.concat();}if(p.isArray(S.border.color)){C=S.border.colors.concat();}if(this.get("direction")=="vertical"){L="height";z="width";}else{L="width";z="height";}T=S[L];M=S[z];this._createMarkerCache();for(;PP){B=H;}}I=Q*H;if(I>x.get(L)){E=x.get(L)/I;H*=E;B*=E;T*=E;T=Math.max(T,1);}B-=H/2;for(P=0;P0){K=U.top;A=U.left;S[L]=T;S[z]=U.calculatedSize;S.x=A;S.y=K;if(w){S.fill.color=w[P%w.length];}if(C){S.border.colors=C[P%C.length];}D=this.getMarker(S,G,P);}else{this._markers.push(null);}}this._clearMarkerCache();},_defaultFillColors:["#66007f","#a86f41","#295454","#996ab2","#e8cdb7","#90bdbd","#000000","#c3b8ca","#968373","#678585"],_getPlotDefaults:function(){var w={fill:{type:"solid",alpha:1,colors:null,alphas:null,ratios:null},border:{weight:0,alpha:1},width:12,height:12,shape:"rect",padding:{top:0,left:0,right:0,bottom:0}};w.fill.color=this._getDefaultColor(this.get("graphOrder"),"fill");w.border.color=this._getDefaultColor(this.get("graphOrder"),"border");return w;}};b.Histogram=v;b.CartesianSeries=b.Base.create("cartesianSeries",b.Base,[b.Renderer],{_xDisplayName:null,_yDisplayName:null,_leftOrigin:null,_bottomOrigin:null,render:function(){this._setCanvas();this.addListeners();this.set("rendered",true);this.validate();},addListeners:function(){var x=this.get("xAxis"),w=this.get("yAxis");if(x){x.after("dataReady",b.bind(this._xDataChangeHandler,this));x.after("dataUpdate",b.bind(this._xDataChangeHandler,this));}if(w){w.after("dataReady",b.bind(this._yDataChangeHandler,this));w.after("dataUpdate",b.bind(this._yDataChangeHandler,this));}this.after("xAxisChange",this._xAxisChangeHandler);this.after("yAxisChange",this._yAxisChangeHandler);this.after("stylesChange",function(z){var y=this._updateAxisData();if(y){this.draw();}});this.after("widthChange",function(z){var y=this._updateAxisData();if(y){this.draw();}});this.after("heightChange",function(z){var y=this._updateAxisData();if(y){this.draw();}});this.after("visibleChange",this._handleVisibleChange);},_xAxisChangeHandler:function(x){var w=this.get("xAxis");w.after("dataReady",b.bind(this._xDataChangeHandler,this));w.after("dataUpdate",b.bind(this._xDataChangeHandler,this));},_yAxisChangeHandler:function(x){var w=this.get("yAxis");w.after("dataReady",b.bind(this._yDataChangeHandler,this));w.after("dataUpdate",b.bind(this._yDataChangeHandler,this));},GUID:"yuicartesianseries",_xDataChangeHandler:function(w){var x=this._updateAxisData();if(x){this.draw();}},_yDataChangeHandler:function(w){var x=this._updateAxisData();if(x){this.draw();}},_updateAxisData:function(){var A=this.get("xAxis"),x=this.get("yAxis"),y=this.get("xKey"),w=this.get("yKey"),z,B;if(!A||!x||!y||!w){return false;}B=A.getDataByKey(y);z=x.getDataByKey(w);if(!B||!z){return false;}this.set("xData",B.concat());this.set("yData",z.concat());return true;},validate:function(){if((this.get("xData")&&this.get("yData"))||this._updateAxisData()){this.draw();}else{this.fire("drawingComplete");}},_setCanvas:function(){var w=this.get("graph"),x=w.get("graphic");this.set("graphic",x);},setAreaData:function(){var O=p.isNumber,ac,aa,B=this.get("graph"),K=B.get("width"),V=B.get("height"),I=this.get("xAxis"),y=this.get("yAxis"),D=this.get("xData").concat(),Y=this.get("yData").concat(),S,W,af=I.getEdgeOffset(D.length,K),H=y.getEdgeOffset(Y.length,V),P=this.get("styles").padding,R=P.left,Z=P.top,F=K-(R+P.right+af),U=V-(Z+P.bottom+H),N=[],ae=[],ad=I.get("maximum"),X=I.get("minimum"),A=y.get("maximum"),x=y.get("minimum"),E=F/(ad-X),L=U/(A-x),G,ab=this.get("direction"),T=0,J=[],Q=[],C=this.get("xMarkerPlaneOffset"),z=this.get("yMarkerPlaneOffset"),M=this.get("graphic");M.set("width",K);M.set("height",V);G=D.length;af*=0.5;H*=0.5;if(ab==="vertical"){Y=Y.reverse();}this._leftOrigin=Math.round(((0-X)*E)+R+af);this._bottomOrigin=Math.round((U+Z+H)-(0-x)*L);for(;T0&&y>0)&&((this.get("xData")&&this.get("yData"))||this._updateAxisData())){if(this._drawing){this._callLater=true;return;}this._drawing=true;this._callLater=false;this.setAreaData();if(this.get("xcoords")&&this.get("ycoords")){this.drawSeries();}this._drawing=false;if(this._callLater){this.draw();}else{this._toggleVisible(this.get("visible"));this.fire("drawingComplete");}}}},_defaultPlaneOffset:4,_getDefaultStyles:function(){return{padding:{top:0,left:0,right:0,bottom:0}};},_defaultLineColors:["#426ab3","#d09b2c","#000000","#b82837","#b384b5","#ff7200","#779de3","#cbc8ba","#7ed7a6","#007a6c"],_defaultFillColors:["#6084d0","#eeb647","#6c6b5f","#d6484f","#ce9ed1","#ff9f3b","#93b7ff","#e0ddd0","#94ecba","#309687"],_defaultBorderColors:["#205096","#b38206","#000000","#94001e","#9d6fa0","#e55b00","#5e85c9","#adab9e","#6ac291","#006457"],_defaultSliceColors:["#66007f","#a86f41","#295454","#996ab2","#e8cdb7","#90bdbd","#000000","#c3b8ca","#968373","#678585"],_getDefaultColor:function(z,A){var x={line:this._defaultLineColors,fill:this._defaultFillColors,border:this._defaultBorderColors,slice:this._defaultSliceColors},y=x[A],w=y.length; -z=z||0;if(z>=w){z=z%w;}A=A||"fill";return x[A][z];},_handleVisibleChange:function(w){this._toggleVisible(this.get("visible"));}},{ATTRS:{xDisplayName:{getter:function(){return this._xDisplayName||this.get("xKey");},setter:function(w){this._xDisplayName=w;return w;}},yDisplayName:{getter:function(){return this._yDisplayName||this.get("yKey");},setter:function(w){this._yDisplayName=w;return w;}},categoryDisplayName:{readOnly:true,getter:function(){return this.get("direction")=="vertical"?this.get("yDisplayName"):this.get("xDisplayName");}},valueDisplayName:{readOnly:true,getter:function(){return this.get("direction")=="vertical"?this.get("xDisplayName"):this.get("yDisplayName");}},type:{value:"cartesian"},order:{},graphOrder:{},xcoords:{},ycoords:{},chart:{readOnly:true,getter:function(){return this.get("graph").get("chart");}},graph:{},xAxis:{},yAxis:{},xKey:{},yKey:{},xData:{},yData:{},rendered:{value:false},width:{readOnly:true,getter:function(){this.get("graph").get("width");}},height:{readOnly:true,getter:function(){this.get("graph").get("height");}},visible:{value:true},xMarkerPlane:{},yMarkerPlane:{},xMarkerPlaneOffset:{getter:function(){var w=this.get("styles").marker;if(w&&w.width&&isFinite(w.width)){return w.width*0.5;}return this._defaultPlaneOffset;}},yMarkerPlaneOffset:{getter:function(){var w=this.get("styles").marker;if(w&&w.height&&isFinite(w.height)){return w.height*0.5;}return this._defaultPlaneOffset;}},direction:{value:"horizontal"}}});b.MarkerSeries=b.Base.create("markerSeries",b.CartesianSeries,[b.Plots],{drawSeries:function(){this.drawPlots();},_setStyles:function(w){if(!w.marker){w={marker:w};}w=this._parseMarkerStyles(w);return b.MarkerSeries.superclass._mergeStyles.apply(this,[w,this._getDefaultStyles()]);},_getDefaultStyles:function(){var w=this._mergeStyles({marker:this._getPlotDefaults()},b.MarkerSeries.superclass._getDefaultStyles());return w;}},{ATTRS:{type:{value:"marker"}}});b.LineSeries=b.Base.create("lineSeries",b.CartesianSeries,[b.Lines],{drawSeries:function(){this.drawLines();},_setStyles:function(w){if(!w.line){w={line:w};}return b.LineSeries.superclass._setStyles.apply(this,[w]);},_getDefaultStyles:function(){var w=this._mergeStyles({line:this._getLineDefaults()},b.LineSeries.superclass._getDefaultStyles());return w;}},{ATTRS:{type:{value:"line"}}});b.SplineSeries=b.Base.create("splineSeries",b.LineSeries,[b.CurveUtil,b.Lines],{drawSeries:function(){this.drawSpline();}},{ATTRS:{type:{value:"spline"}}});b.AreaSplineSeries=b.Base.create("areaSplineSeries",b.CartesianSeries,[b.Fills,b.CurveUtil],{drawSeries:function(){this.drawAreaSpline();}},{ATTRS:{type:{value:"areaSpline"}}});b.StackedSplineSeries=b.Base.create("stackedSplineSeries",b.SplineSeries,[b.StackingUtil],{setAreaData:function(){b.StackedSplineSeries.superclass.setAreaData.apply(this);this._stackCoordinates.apply(this);}},{ATTRS:{type:{value:"stackedSpline"}}});b.StackedMarkerSeries=b.Base.create("stackedMarkerSeries",b.MarkerSeries,[b.StackingUtil],{setAreaData:function(){b.StackedMarkerSeries.superclass.setAreaData.apply(this);this._stackCoordinates.apply(this);}},{ATTRS:{type:{value:"stackedMarker"}}});b.ColumnSeries=b.Base.create("columnSeries",b.MarkerSeries,[b.Histogram],{_getMarkerDimensions:function(x,w,z,A){var y={left:x+A};if(this._bottomOrigin>=w){y.top=w;y.calculatedSize=this._bottomOrigin-y.top;}else{y.top=this._bottomOrigin;y.calculatedSize=w-this._bottomOrigin;}return y;},updateMarkerState:function(y,K){if(this._markers[K]){var D=b.clone(this.get("styles").marker),N,z=this._getState(y),G=this.get("xcoords"),O=this.get("ycoords"),B=this._markers[K],w=this.get("graph"),x,C=w.seriesTypes[this.get("type")],L=C.length,F=0,A=0,I,H=0,E=[],J=this.get("order"),M;N=z=="off"||!D[z]?D:D[z];N.fill.color=this._getItemColor(N.fill.color,K);N.border.color=this._getItemColor(N.border.color,K);M=this._getMarkerDimensions(G[K],O[K],D.width,A);N.height=M.calculatedSize;B.set(N);for(;HH){A=F;}A-=F/2;}for(H=0;H=this._leftOrigin){y.left=this._leftOrigin;y.calculatedSize=x-y.left;}else{y.left=x;y.calculatedSize=this._leftOrigin-x;}return y;},updateMarkerState:function(y,K){if(this._markers[K]){var D=b.clone(this.get("styles").marker),N,z=this._getState(y),F=this.get("xcoords"),O=this.get("ycoords"),B=this._markers[K],w=this.get("graph"),C=w.seriesTypes[this.get("type")],L=C.length,x,E=0,A=0,H,G=0,J=[],I=this.get("order"),M;N=z=="off"||!D[z]?D:D[z];N.fill.color=this._getItemColor(N.fill.color,K);N.border.color=this._getItemColor(N.border.color,K);M=this._getMarkerDimensions(F[K],O[K],D.height,A);N.width=M.calculatedSize;B.set(N);for(;GG){A=E;}A-=E/2;}for(G=0;Gthis.get("width")){D=this.width/z;I*=D;I=Math.max(I,1);}if(!x){C=F[N-1];G=C.get("negativeBaseValues");M=C.get("positiveBaseValues");if(!G||!M){x=true;M=[];G=[];}}else{G=[];M=[];}this.set("negativeBaseValues",G);this.set("positiveBaseValues",M);for(O=0;Othis._bottomOrigin){M[O]=this._bottomOrigin;G[O]=L;L-=Q;}else{M[O]=L;G[O]=L;}}}else{if(L>this._bottomOrigin){L+=(G[O]-this._bottomOrigin);Q=L-G[O];G[O]=L;L-=Q;}else{if(L<=this._bottomOrigin){L=M[O]-(this._bottomOrigin-L);Q=M[O]-L;M[O]=L;}}}if(!isNaN(Q)&&Q>0){B-=I/2;R.width=I;R.height=Q;R.x=B;R.y=L;E=this.getMarker(R,H,O);}else{this._markers.push(null);}}this._clearMarkerCache();},updateMarkerState:function(A,z){if(this._markers[z]){var B,x,C=this._getState(A),y=this.get("xcoords"),w=this._markers[z],D=0;B=this.get("styles").marker;D=B.width*0.5;x=C=="off"||!B[C]?B:B[C];x.height=w.get("height");x.x=(y[z]-D);x.y=w.get("y");x.id=w.get("id");w.set(x);}},_getPlotDefaults:function(){var w={fill:{type:"solid",alpha:1,colors:null,alphas:null,ratios:null},border:{weight:0,alpha:1},width:24,height:24,shape:"rect",padding:{top:0,left:0,right:0,bottom:0}};w.fill.color=this._getDefaultColor(this.get("graphOrder"),"fill");w.border.color=this._getDefaultColor(this.get("graphOrder"),"border");return w;}},{ATTRS:{type:{value:"stackedColumn"},negativeBaseValues:{value:null},positiveBaseValues:{value:null}}});b.StackedBarSeries=b.Base.create("stackedBarSeries",b.BarSeries,[b.StackingUtil],{drawSeries:function(){if(this.get("xcoords").length<1){return;}var I=p.isNumber,Q=this.get("styles").marker,H=Q.width,P=Q.height,J=this.get("xcoords"),S=this.get("ycoords"),N=0,O=J.length,K=S[0],z=this.get("type"),y=this.get("graph"),E=y.seriesTypes[z],C,M=this.get("order"),G=this.get("graphOrder"),A,D,B,F,L,x=M===0,R=O*P;this._createMarkerCache();if(R>this.get("height")){C=this.height/R;P*=C;P=Math.max(P,1);}if(!x){B=E[M-1];F=B.get("negativeBaseValues");L=B.get("positiveBaseValues");if(!F||!L){x=true;L=[];F=[];}}else{F=[];L=[];}this.set("negativeBaseValues",F);this.set("positiveBaseValues",L);for(N=0;Nthis._leftOrigin){L[N]=A;F[N]=this._leftOrigin;A-=H;}else{if(A=this._leftOrigin){A+=(L[N]-this._leftOrigin);H=A-L[N];L[N]=A;A-=H;}}}if(!isNaN(H)&&H>0){K-=P/2;Q.width=H;Q.height=P;Q.x=A;Q.y=K;D=this.getMarker(Q,G,N);}else{this._markers.push(null);}}this._clearMarkerCache(); -},updateMarkerState:function(A,y){if(this._markers[y]){var C=this._getState(A),D=this.get("ycoords"),w=this._markers[y],B=this.get("styles").marker,z=B.height,x=C=="off"||!B[C]?B:B[C];x.y=(D[y]-z/2);x.x=w.get("x");x.width=w.get("width");x.id=w.get("id");w.set(x);}},_getPlotDefaults:function(){var w={fill:{type:"solid",alpha:1,colors:null,alphas:null,ratios:null},border:{weight:0,alpha:1},width:24,height:24,shape:"rect",padding:{top:0,left:0,right:0,bottom:0}};w.fill.color=this._getDefaultColor(this.get("graphOrder"),"fill");w.border.color=this._getDefaultColor(this.get("graphOrder"),"border");return w;}},{ATTRS:{type:{value:"stackedBar"},direction:{value:"vertical"},negativeBaseValues:{value:null},positiveBaseValues:{value:null}}});b.PieSeries=b.Base.create("pieSeries",b.MarkerSeries,[],{_map:null,_image:null,_setMap:function(){var y="pieHotSpotMapi_"+Math.round(100000*Math.random()),w=this.get("graph").get("contentBox"),x;if(this._image){w.removeChild(this._image);while(this._areaNodes&&this._areaNodes.length>0){x=this._areaNodes.shift();this._map.removeChild(x);}w.removeChild(this._map);}this._image=g.createElement("img");this._image.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAABCAYAAAD9yd/wAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABJJREFUeNpiZGBgSGPAAgACDAAIkABoFyloZQAAAABJRU5ErkJggg==";w.appendChild(this._image);this._image.setAttribute("usemap","#"+y);this._image.style.zIndex=3;this._image.style.opacity=0;this._image.setAttribute("alt","imagemap");this._map=g.createElement("map");this._map.style.zIndex=5;w.appendChild(this._map);this._map.setAttribute("name",y);this._map.setAttribute("id",y);this._areaNodes=[];},_categoryDisplayName:null,_valueDisplayName:null,addListeners:function(){var w=this.get("categoryAxis"),x=this.get("valueAxis");if(w){w.after("dataReady",b.bind(this._categoryDataChangeHandler,this));w.after("dataUpdate",b.bind(this._categoryDataChangeHandler,this));}if(x){x.after("dataReady",b.bind(this._valueDataChangeHandler,this));x.after("dataUpdate",b.bind(this._valueDataChangeHandler,this));}this.after("categoryAxisChange",this.categoryAxisChangeHandler);this.after("valueAxisChange",this.valueAxisChangeHandler);this.after("stylesChange",this._updateHandler);},validate:function(){this.draw();this._renderered=true;},_categoryAxisChangeHandler:function(w){var x=this.get("categoryAxis");x.after("dataReady",b.bind(this._categoryDataChangeHandler,this));x.after("dataUpdate",b.bind(this._categoryDataChangeHandler,this));},_valueAxisChangeHandler:function(w){var x=this.get("valueAxis");x.after("dataReady",b.bind(this._valueDataChangeHandler,this));x.after("dataUpdate",b.bind(this._valueDataChangeHandler,this));},GUID:"pieseries",_categoryDataChangeHandler:function(w){if(this._rendered&&this.get("categoryKey")&&this.get("valueKey")){this.draw();}},_valueDataChangeHandler:function(w){if(this._rendered&&this.get("categoryKey")&&this.get("valueKey")){this.draw();}},draw:function(){var z=this.get("graph"),x=z.get("width"),y=z.get("height");if(isFinite(x)&&isFinite(y)&&x>0&&y>0){this._rendered=true;if(this._drawing){this._callLater=true;return;}this._drawing=true;this._callLater=false;this.drawSeries();this._drawing=false;if(this._callLater){this.draw();}else{this.fire("drawingComplete");}}},drawPlots:function(){var z=this.get("valueAxis").getDataByKey(this.get("valueKey")).concat(),A=this.get("categoryAxis").getDataByKey(this.get("categoryKey")).concat(),D=0,ac=z.length,L=this.get("styles").marker,x=L.fill.colors,ad=L.fill.alphas||["1"],H=L.border.colors,B=[L.border.weight],C=[L.border.alpha],ae=B.concat(),N=H.concat(),P=C.concat(),Z,ab,Q=L.padding,y=this.get("graph"),J=Math.min(y.get("width"),y.get("height")),O=J-(Q.left+Q.right),Y=J-(Q.top+Q.bottom),W=-90,I=O/2,R=Y/2,E=Math.min(I,R),X=0,U,aa=0,T,V,F,M,G,K=this.get("graphOrder"),S=b.Graphic.NAME=="canvasGraphic";for(;X=w){z=z%w;}A=A||"fill";return x[A][z];}},{ATTRS:{type:{value:"pie"},order:{},graph:{},categoryAxis:{value:null,validator:function(w){return w!==this.get("categoryAxis");}},valueAxis:{value:null,validator:function(w){return w!==this.get("valueAxis");}},categoryKey:{value:null,validator:function(w){return w!==this.get("categoryKey");}},valueKey:{value:null,validator:function(w){return w!==this.get("valueKey");}},categoryDisplayName:{setter:function(w){this._categoryDisplayName=w;return w;},getter:function(){return this._categoryDisplayName||this.get("categoryKey");}},valueDisplayName:{setter:function(w){this._valueDisplayName=w;return w;},getter:function(){return this._valueDisplayName||this.get("valueKey");}},slices:null}});b.Gridlines=b.Base.create("gridlines",b.Base,[b.Renderer],{_path:null,remove:function(){var w=this._path;if(w){w.destroy();}},draw:function(){if(this.get("axis")&&this.get("graph")){this._drawGridlines();}},_drawGridlines:function(){var L,x=this.get("axis"),F=x.get("position"),I,C=0,z,G=this.get("direction"),J=this.get("graph"),H=J.get("width"),E=J.get("height"),K=this.get("styles").line,B=K.color,D=K.weight,A=K.alpha,y=G=="vertical"?this._verticalLine:this._horizontalLine;if(F=="none"){I=[];z=x.get("styles").majorUnit.count;for(;Cy){x=w[y];}return x;},getSeriesByKey:function(y){var x=this._seriesDictionary,w;if(x&&x.hasOwnProperty(y)){w=x[y];}return w;},addDispatcher:function(w){if(!this._dispatchers){this._dispatchers=[];}this._dispatchers.push(w);},_seriesCollection:null,_seriesDictionary:null,_parseSeriesCollection:function(A){if(!A){return;}var x=A.length,z=0,y,w;if(!this.get("seriesCollection")){this._seriesCollection=[];}if(!this._seriesDictionary){this._seriesDictionary={};}if(!this.seriesTypes){this.seriesTypes=[];}for(;z-1){this._dispatchers.splice(w,1);}if(this._dispatchers.length<1){z=this.get("graphic");if(!z.get("autoDraw")){z._redraw();}this.fire("chartRendered");}},_getDefaultStyles:function(){var w={background:{shape:"rect",fill:{color:"#faf9f2"},border:{color:"#dad8c9",weight:1}}};return w;}},{ATTRS:{chart:{},seriesCollection:{getter:function(){return this._seriesCollection;},setter:function(w){this._parseSeriesCollection(w);return this._seriesCollection;}},showBackground:{value:true},seriesDictionary:{readOnly:true,getter:function(){return this._seriesDictionary;}},horizontalGridlines:{value:null,setter:function(x){var w=this.get("horizontalGridlines");if(w&&w instanceof b.Gridlines){w.remove();}if(x instanceof b.Gridlines){w=x;x.set("graph",this);return x;}else{if(x&&x.axis){w=new b.Gridlines({direction:"horizontal",axis:x.axis,graph:this,styles:x.styles});return w;}}}},verticalGridlines:{value:null,setter:function(x){var w=this.get("verticalGridlines");if(w&&w instanceof b.Gridlines){w.remove();}if(x instanceof b.Gridlines){w=x;x.set("graph",this);return x;}else{if(x&&x.axis){w=new b.Gridlines({direction:"vertical",axis:x.axis,graph:this,styles:x.styles});return w;}}}},background:{getter:function(){if(!this._background){this._backgroundGraphic=new b.Graphic({render:this.get("contentBox")});b.one(this._backgroundGraphic.get("node")).setStyle("zIndex",0);this._background=this._backgroundGraphic.addShape({type:"rect"});}return this._background;}},gridlines:{readOnly:true,getter:function(){if(!this._gridlines){this._gridlinesGraphic=new b.Graphic({render:this.get("contentBox")});b.one(this._gridlinesGraphic.get("node")).setStyle("zIndex",1);this._gridlines=this._gridlinesGraphic.addShape({type:"path"});}return this._gridlines;}},graphic:{readOnly:true,getter:function(){if(!this._graphic){this._graphic=new b.Graphic({render:this.get("contentBox")});b.one(this._graphic.get("node")).setStyle("zIndex",2);this._graphic.set("autoDraw",false);}return this._graphic;}}}});function n(){}n.ATTRS={tooltip:{valueFn:"_getTooltip",setter:function(w){return this._updateTooltip(w);}},categoryKey:{value:"category"},categoryType:{value:"category"},interactionType:{value:"marker"},dataProvider:{setter:function(w){return this._setDataValues(w);}},seriesKeys:{},axesCollection:{},graph:{valueFn:"_getGraph"}};n.prototype={_getGraph:function(){var w=new b.Graph({chart:this});w.after("chartRendered",b.bind(function(x){this.fire("chartRendered");},this));return w;},getSeries:function(y){var w=null,x=this.get("graph");if(x){if(p.isNumber(y)){w=x.getSeriesByIndex(y);}else{w=x.getSeriesByKey(y);}}return w;},getAxisByKey:function(y){var w,x=this.get("axes");if(x.hasOwnProperty(y)){w=x[y];}return w;},getCategoryAxis:function(){var x,w=this.get("categoryKey"),y=this.get("axes");if(y.hasOwnProperty(w)){x=y[w];}return x;},_direction:"horizontal",_dataProvider:null,_setDataValues:function(B){if(p.isArray(B[0])){var A,D=[],y=B[0],z=0,x=y.length,C,w=B.length;for(;z"+F.displayName+": "+x.get("labelFunction").apply(this,[x.getKeyValueAt(F.key,E),x.get("labelFormat")])+"";}}return w;},_tooltipLabelFunction:function(B,w,z,y,x){var A=B.displayName+": "+B.axis.get("labelFunction").apply(this,[B.value,B.axis.get("labelFormat")])+"
      "+w.displayName+": "+w.axis.get("labelFunction").apply(this,[w.value,w.axis.get("labelFormat")]);return A;},_tooltipChangeHandler:function(A){if(this.get("tooltip")){var y=this.get("tooltip"),z=y.node,x=y.show,w=this.get("contentBox");if(z&&x){if(!w.contains(z)){this._addTooltip();}}}}};b.ChartBase=n;b.CartesianChart=b.Base.create("cartesianChart",b.Widget,[b.ChartBase],{renderUI:function(){var y=this.get("tooltip"),w,x=c("overlay");this.get("boundingBox").setStyle("position","absolute");this.get("contentBox").setStyle("position","absolute");this._addAxes();this._addGridlines();this._addSeries();if(y&&y.show){this._addTooltip();}this.get("styles");if(this.get("interactionType")=="planar"){w=g.createElement("div");this.get("contentBox").appendChild(w);this._overlay=b.one(w);this._overlay.setStyle("position","absolute");this._overlay.setStyle("background","#fff");this._overlay.setStyle("opacity",0);this._overlay.addClass(x);this._overlay.setStyle("zIndex",4);}this._redraw();},_planarEventDispatcher:function(R){var z=this.get("graph"),D=this.get("boundingBox"),L=z.get("contentBox"),y=R.pageX,w=R.pageY,H=y-D.getX(),G=w-D.getY(),E={x:y-L.getX(),y:w-L.getY()},x=z.get("seriesCollection"),I,P=0,F,C=this._selectedIndex,T,K=[],A=[],J=[],U=this.get("direction"),V,S,N,M,B,Q,O;if(U=="horizontal"){S="x";N="y";}else{N="x";S="y";}M=E[S];if(x){Q=x.length;while(P=B[P].start){F=P;break;}}Q=x.length;for(P=0;P-1){I.updateMarkerState("mouseout",C);}if(O&&O[F]>-1){if(V&&!isNaN(F)&&F>-1){I.updateMarkerState("mouseover",F);}T=this.getSeriesItems(I,F);A.push(T.category);J.push(T.value);K.push(I);}}this._selectedIndex=F;if(F>-1){this.fire("planarEvent:mouseover",{categoryItem:A,valueItem:J,x:H,y:G,pageX:y,pageY:w,items:K,index:F,originEvent:R});}else{this.fire("planarEvent:mouseout");}}},_type:"combo",_axesRenderQueue:null,_addToAxesRenderQueue:function(w){if(!this._axesRenderQueue){this._axesRenderQueue=[];}if(b.Array.indexOf(this._axesRenderQueue,w)<0){this._axesRenderQueue.push(w);}},_getDefaultSeriesCollection:function(P){var F=this.get("direction"),w=P||[],M,J,H=[],C,B=this.get("seriesKeys").concat(),L,A,I,z=this.get("type"),N,E,O,x,y=this.get("categoryKey"),K=this.get("showMarkers"),G=this.get("showAreaFill"),D=this.get("showLines");if(F=="vertical"){M="yAxis";E="yKey";J="xAxis";O="xKey"; -}else{M="xAxis";E="xKey";J="yAxis";O="yKey";}I=w.length;for(L=0;L-1){B.splice(A,1);}H.push(N);}}if(B.length>0){H=H.concat(B);}I=H.length;for(L=0;L0){y.set("overlapGraph",false);}y.after("axisRendered",b.bind(this._axisRendered,this));E[C]=y;}}}return E;},_addAxes:function(){var C=this.get("axes"),y,A,D,x=this.get("width"),z=this.get("height"),B=b.Node.one(this._parentNode);if(!this._axesCollection){this._axesCollection=[];}for(y in C){if(C.hasOwnProperty(y)){A=C[y];if(A instanceof b.Axis){if(!x){this.set("width",B.get("offsetWidth"));x=this.get("width");}if(!z){this.set("height",B.get("offsetHeight"));z=this.get("height");}A.set("width",x);A.set("height",z);this._addToAxesRenderQueue(A);D=A.get("position");if(!this.get(D+"AxesCollection")){this.set(D+"AxesCollection",[A]);}else{this.get(D+"AxesCollection").push(A);}this._axesCollection.push(A);if(A.get("keys").hasOwnProperty(this.get("categoryKey"))){this.set("categoryAxis",A);}A.render(this.get("contentBox"));}}}},_addSeries:function(){var w=this.get("graph"),x=this.get("seriesCollection");w.render(this.get("contentBox"));},_addGridlines:function(){var G=this.get("graph"),x=this.get("horizontalGridlines"),y=this.get("verticalGridlines"),F=this.get("direction"),H=this.get("leftAxesCollection"),B=this.get("rightAxesCollection"),D=this.get("bottomAxesCollection"),z=this.get("topAxesCollection"),A,w=this.get("categoryAxis"),E,C;if(this._axesCollection){A=this._axesCollection.concat();A.splice(b.Array.indexOf(A,w),1);}if(x){if(H&&H[0]){E=H[0];}else{if(B&&B[0]){E=B[0];}else{E=F=="horizontal"?w:A[0];}}if(!this._getBaseAttribute(x,"axis")&&E){this._setBaseAttribute(x,"axis",E);}if(this._getBaseAttribute(x,"axis")){G.set("horizontalGridlines",x);}}if(y){if(D&&D[0]){C=D[0];}else{if(z&&z[0]){C=z[0];}else{C=F=="vertical"?w:A[0];}}if(!this._getBaseAttribute(y,"axis")&&C){this._setBaseAttribute(y,"axis",C);}if(this._getBaseAttribute(y,"axis")){G.set("verticalGridlines",y);}}},_getDefaultAxes:function(O){var G=this.get("categoryKey"),x,M,I,z={},K=[],y=this.get("categoryAxisName")||this.get("categoryKey"),w=this.get("valueAxisName"),A=this.get("seriesKeys")||[],P,N,F,D,J,H,L=this.get("dataProvider"),Q=this.get("direction"),E,B,C=[],R=this.get("stacked")?"stacked":"numeric";H=L[0];if(Q=="vertical"){E="bottom";B="left";}else{E="left";B="bottom";}if(O){for(P in O){if(O.hasOwnProperty(P)){x=O[P];I=this._getBaseAttribute(x,"keys");M=this._getBaseAttribute(x,"type");if(M=="time"||M=="category"){y=P;this.set("categoryAxisName",P);if(p.isArray(I)&&I.length>0){G=I[0];this.set("categoryKey",G);}z[P]=x;}else{if(P==y){z[P]=x;}else{z[P]=x;if(P!=w&&I&&p.isArray(I)){D=I.length;for(F=0;F-1){A.splice(J,1);}N=K.length;for(P=0;P-1){A.splice(J,1);}}if(!z.hasOwnProperty(y)){z[y]={};}if(!(this._getBaseAttribute(z[y],"keys"))){this._setBaseAttribute(z[y],"keys",[G]);}if(!(this._getBaseAttribute(z[y],"position"))){this._setBaseAttribute(z[y],"position",B);}if(!(this._getBaseAttribute(z[y],"type"))){this._setBaseAttribute(z[y],"type",this.get("categoryType"));}if(!z.hasOwnProperty(w)&&A&&A.length>0){z[w]={keys:A};C.push(z[w]);}if(K.length>0){if(A.length>0){A=K.concat(A);}else{A=K; -}}if(z.hasOwnProperty(w)){if(!(this._getBaseAttribute(z[w],"position"))){this._setBaseAttribute(z[w],"position",this._getDefaultAxisPosition(z[w],C,E));}if(!(this._getBaseAttribute(z[w],"type"))){this._setBaseAttribute(z[w],"type",R);}if(!(this._getBaseAttribute(z[w],"keys"))){this._setBaseAttribute(z[w],"keys",A);}}this.set("seriesKeys",A);return z;},_getDefaultAxisPosition:function(z,x,w){var A=this.get("direction"),y=b.Array.indexOf(x,z);if(x[y-1]&&x[y-1].position){if(A=="horizontal"){if(x[y-1].position=="left"){w="right";}else{if(x[y-1].position=="right"){w="left";}}}else{if(x[y-1].position=="bottom"){w="top";}else{w="bottom";}}}return w;},getSeriesItems:function(B,A){var C=B.get("xAxis"),y=B.get("yAxis"),z=B.get("xKey"),x=B.get("yKey"),D,w;if(this.get("direction")=="vertical"){D={axis:y,key:x,value:y.getKeyValueAt(x,A)};w={axis:C,key:z,value:C.getKeyValueAt(z,A)};}else{w={axis:y,key:x,value:y.getKeyValueAt(x,A)};D={axis:C,key:z,value:C.getKeyValueAt(z,A)};}D.displayName=B.get("categoryDisplayName");w.displayName=B.get("valueDisplayName");D.value=D.axis.getKeyValueAt(D.key,A);w.value=w.axis.getKeyValueAt(w.key,A);return{category:D,value:w};},_axisRendered:function(w){this._axesRenderQueue=this._axesRenderQueue.splice(1+b.Array.indexOf(this._axesRenderQueue,w.currentTarget),1);if(this._axesRenderQueue.length<1){this._redraw();}},_sizeChanged:function(z){if(this._axesCollection){var y=this._axesCollection,x=0,w=y.length;for(;x-1;--H){N[b.Array.indexOf(this._axesCollection,z[H])]={x:D+"px"};D+=z[H].get("width");}}if(x){E=x.length;H=0;for(H=E-1;H>-1;--H){A+=x[H].get("width");N[b.Array.indexOf(this._axesCollection,x[H])]={x:(L-A)+"px"};}}if(F){E=F.length;for(H=E-1;H>-1;--H){N[b.Array.indexOf(this._axesCollection,F[H])]={y:y+"px"};y+=F[H].get("height");}}if(J){E=J.length;for(H=E-1;H>-1;--H){G+=J[H].get("height");N[b.Array.indexOf(this._axesCollection,J[H])]={y:(I-G)+"px"};}}E=this._axesCollection.length;H=0;for(;H0){this.set("seriesKeys",x);}}return{values:{keys:x,type:w},category:{keys:[A],type:this.get("categoryType")}};},getSeriesItems:function(y,x){var z={axis:y.get("categoryAxis"),key:y.get("categoryKey"),displayName:y.get("categoryDisplayName")},w={axis:y.get("valueAxis"),key:y.get("valueKey"),displayName:y.get("valueDisplayName")};z.value=z.axis.getKeyValueAt(z.key,x);w.value=w.axis.getKeyValueAt(w.key,x);return{category:z,value:w};},_sizeChanged:function(x){var w=this.get("graph");if(w){w.set(x.attrName,x.newVal);}},_redraw:function(){var w=this.get("graph");if(w){w.set("width",this.get("width"));w.set("height",this.get("height"));}}},{ATTRS:{axes:{getter:function(){return this._axes;},setter:function(w){this._parseAxes(w);}},seriesCollection:{getter:function(){return this._getSeriesCollection();},setter:function(w){return this._setSeriesCollection(w);}},type:{value:"pie"}}});function r(w){if(w.type!="pie"){return new b.CartesianChart(w);}else{return new b.PieChart(w);}}b.Chart=r;},"3.4.1",{requires:["dom","datatype-number","datatype-date","event-custom","event-mouseenter","widget","widget-position","widget-stack","graphics"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong-dark.png b/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong-dark.png deleted file mode 100644 index 2cea7bddc34..00000000000 Binary files a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong-dark.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong.png b/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong.png deleted file mode 100644 index 7db5a203d89..00000000000 Binary files a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong2-dark.png b/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong2-dark.png deleted file mode 100644 index c57fb270098..00000000000 Binary files a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong2-dark.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong2.png b/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong2.png deleted file mode 100644 index 25cc0547b43..00000000000 Binary files a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-x-oblong2.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong-dark.png b/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong-dark.png deleted file mode 100644 index 272e5934a8c..00000000000 Binary files a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong-dark.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong.png b/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong.png deleted file mode 100644 index e12265a7cec..00000000000 Binary files a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong2-dark.png b/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong2-dark.png deleted file mode 100644 index 450b78d539b..00000000000 Binary files a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong2-dark.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong2.png b/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong2.png deleted file mode 100644 index 3da5ed82d12..00000000000 Binary files a/lib/yui/3.4.1/build/clickable-rail/assets/thumb-y-oblong2.png and /dev/null differ diff --git a/lib/yui/3.4.1/build/clickable-rail/clickable-rail-min.js b/lib/yui/3.4.1/build/clickable-rail/clickable-rail-min.js deleted file mode 100644 index 77ac891c7cf..00000000000 --- a/lib/yui/3.4.1/build/clickable-rail/clickable-rail-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("clickable-rail",function(b){function a(){this._initClickableRail();}b.ClickableRail=b.mix(a,{prototype:{_initClickableRail:function(){this._evtGuid=this._evtGuid||(b.guid()+"|");this.publish("railMouseDown",{defaultFn:this._defRailMouseDownFn});this.after("render",this._bindClickableRail);this.on("destroy",this._unbindClickableRail);},_bindClickableRail:function(){this._dd.addHandle(this.rail);this.rail.on(this._evtGuid+b.DD.Drag.START_EVENT,b.bind(this._onRailMouseDown,this));},_unbindClickableRail:function(){if(this.get("rendered")){var c=this.get("contentBox"),d=c.one("."+this.getClassName("rail"));d.detach(this.evtGuid+"*");}},_onRailMouseDown:function(c){if(this.get("clickableRail")&&!this.get("disabled")){this.fire("railMouseDown",{ev:c});}},_defRailMouseDownFn:function(k){k=k.ev;var c=this._resolveThumb(k),g=this._key.xyIndex,h=parseFloat(this.get("length"),10),f,d,j;if(c){f=c.get("dragNode");d=parseFloat(f.getStyle(this._key.dim),10);j=this._getThumbDestination(k,f);j=j[g]-this.rail.getXY()[g];j=Math.min(Math.max(j,0),(h-d));this._uiMoveThumb(j);k.target=this.thumb.one("img")||this.thumb;c._handleMouseDownEvent(k);}},_resolveThumb:function(c){return this._dd;},_getThumbDestination:function(g,f){var d=f.get("offsetWidth"),c=f.get("offsetHeight");return[(g.pageX-Math.round((d/2))),(g.pageY-Math.round((c/2)))];}},ATTRS:{clickableRail:{value:true,validator:b.Lang.isBoolean}}},true);},"3.4.1",{requires:["slider-base"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/console-filters/assets/console-filters-core.css b/lib/yui/3.4.1/build/console-filters/assets/console-filters-core.css deleted file mode 100644 index 9ee12f94af9..00000000000 --- a/lib/yui/3.4.1/build/console-filters/assets/console-filters-core.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ diff --git a/lib/yui/3.4.1/build/console/assets/console-core.css b/lib/yui/3.4.1/build/console/assets/console-core.css deleted file mode 100644 index 9ee12f94af9..00000000000 --- a/lib/yui/3.4.1/build/console/assets/console-core.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ diff --git a/lib/yui/3.4.1/build/console/assets/console-filters-core.css b/lib/yui/3.4.1/build/console/assets/console-filters-core.css deleted file mode 100644 index 9ee12f94af9..00000000000 --- a/lib/yui/3.4.1/build/console/assets/console-filters-core.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ diff --git a/lib/yui/3.4.1/build/console/lang/console_ja.js b/lib/yui/3.4.1/build/console/lang/console_ja.js deleted file mode 100644 index 2c5dc630e52..00000000000 --- a/lib/yui/3.4.1/build/console/lang/console_ja.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("lang/console_ja",function(a){a.Intl.add("console","ja",{title:"ログコンソール",pause:"一時停止",clear:"クリア",collapse:"閉じる",expand:"開く"});},"3.4.1"); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/controller/controller-min.js b/lib/yui/3.4.1/build/controller/controller-min.js deleted file mode 100644 index 72aaa11464d..00000000000 --- a/lib/yui/3.4.1/build/controller/controller-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("controller",function(a){var h=a.HistoryHash,e=a.Lang,b=a.QueryString,j=a.Array,f=a.HistoryBase.html5&&(!a.UA.android||a.UA.android>=3),g=a.config.win,k=g.location,i=[],d="ready";function c(){c.superclass.constructor.apply(this,arguments);}a.Controller=a.extend(c,a.Base,{html5:f,root:"",routes:[],_regexPathParam:/([:*])([\w-]+)/g,_regexUrlQuery:/\?([^#]*).*$/,_regexUrlStrip:/^https?:\/\/[^\/]*/i,initializer:function(m){var l=this;m||(m={});m.routes&&(l.routes=m.routes);e.isValue(m.root)&&(l.root=m.root);l._routes=[];j.each(l.routes,function(n){l.route(n.path,n.callback);});if(f){l._history=new a.HistoryHTML5({force:true});l._history.after("change",l._afterHistoryChange,l);}else{a.on("hashchange",l._afterHistoryChange,g,l);}l.publish(d,{defaultFn:l._defReadyFn,fireOnce:true,preventable:false});l.once("initializedChange",function(){a.once("load",function(){setTimeout(function(){l.fire(d,{dispatched:!!l._dispatched});},20);});});},destructor:function(){if(f){this._history.detachAll();}else{a.detach("hashchange",this._afterHistoryChange,g);}},dispatch:function(){this.once(d,function(){this._ready=true;if(f&&this.upgrade()){return;}else{this._dispatch(this._getPath());}});return this;},getPath:function(){return this._getPath();},hasRoute:function(l){return !!this.match(l).length;},match:function(l){return j.filter(this._routes,function(m){return l.search(m.regex)>-1;});},removeRoot:function(m){var l=this.root;m=m.replace(this._regexUrlStrip,"");if(l&&m.indexOf(l)===0){m=m.substring(l.length);}return m.charAt(0)==="/"?m:"/"+m;},replace:function(l){return this._queue(l,true);},route:function(m,n){var l=[];this._routes.push({callback:n,keys:l,path:m,regex:this._getRegex(m,l)});return this;},save:function(l){return this._queue(l);},upgrade:f?function(){var l=this._getHashPath();if(l&&l.charAt(0)==="/"){this.once(d,function(){this.replace(l);});return true;}return false;}:function(){return false;},_decode:function(l){return decodeURIComponent(l.replace(/\+/g," "));},_dequeue:function(){var l=this,m;if(!YUI.Env.windowLoaded){a.once("load",function(){l._dequeue();});return this;}m=i.shift();return m?m():this;},_dispatch:function(o){var m=this,l=m.match(o),n;m._dispatching=m._dispatched=true;if(!l||!l.length){m._dispatching=false;return m;}n=m._getRequest(o);n.next=function(q){var s,r,p;if(q){a.error(q);}else{if((p=l.shift())){r=p.regex.exec(o);s=typeof p.callback==="string"?m[p.callback]:p.callback;if(r.length===p.keys.length+1){n.params=j.hash(p.keys,r.slice(1));}else{n.params=r.concat();}s.call(m,n,n.next);}}};n.next();m._dispatching=false;return m._dequeue();},_getHashPath:function(){return h.getHash().replace(this._regexUrlQuery,"");},_getPath:f?function(){return this.removeRoot(k.pathname);}:function(){return this._getHashPath()||this.removeRoot(k.pathname);},_getQuery:f?function(){return k.search.substring(1);}:function(){var m=h.getHash(),l=m.match(this._regexUrlQuery);return m&&l?l[1]:k.search.substring(1);},_getRegex:function(m,l){if(m instanceof RegExp){return m;}m=m.replace(this._regexPathParam,function(o,n,p){l.push(p);return n==="*"?"(.*?)":"([^/]*)";});return new RegExp("^"+m+"$");},_getRequest:function(l){return{path:l,query:this._parseQuery(this._getQuery())};},_joinURL:function(m){var l=this.root;if(m.charAt(0)==="/"){m=m.substring(1);}return l&&l.charAt(l.length-1)==="/"?l+m:l+"/"+m;},_parseQuery:b&&b.parse?b.parse:function(o){var p=this._decode,r=o.split("&"),n=0,m=r.length,l={},q;for(;n",x="",I='',f='',J='
      {value}
      ',G='',a='
      {value}
      ',j="{value}",n='';function m(L){m.superclass.constructor.apply(this,arguments);}c.mix(m,{NAME:"column",ATTRS:{id:{valueFn:"_defaultId",readOnly:true},key:{valueFn:"_defaultKey"},field:{valueFn:"_defaultField"},label:{valueFn:"_defaultLabel"},children:{value:null},abbr:{value:""},classnames:{readOnly:true,getter:"_getClassnames"},formatter:{},emptyCellValue:{value:"",validator:c.Lang.isString},sortable:{value:false},editor:{},width:{},resizeable:{},minimized:{},minWidth:{},maxAutoWidth:{}}});c.extend(m,c.Widget,{_defaultId:function(){return c.guid();},_defaultKey:function(L){return L||c.guid();},_defaultField:function(L){return L||this.get("key");},_defaultLabel:function(L){return L||this.get("key");},_afterAbbrChange:function(L){this._uiSetAbbr(L.newVal);},keyIndex:null,headers:null,colSpan:1,rowSpan:1,parent:null,thNode:null,initializer:function(L){},destructor:function(){},_getClassnames:function(){return c.ClassNameManager.getClassName(r,this.get("key").replace(/[^\w\-]/g,""));},syncUI:function(){this._uiSetAbbr(this.get("abbr"));},_uiSetAbbr:function(L){this.thNode.set("abbr",L);}});c.Column=m;function y(L){y.superclass.constructor.apply(this,arguments);}c.mix(y,{NAME:"columnset",ATTRS:{definitions:{setter:"_setDefinitions"}}});c.extend(y,c.Base,{_setDefinitions:function(L){return c.clone(L);},tree:null,idHash:null,keyHash:null,keys:null,initializer:function(){var L=[],Q={},R={},P=[],O=this.get("definitions"),M=this;function N(Z,Y,X){var U=0,T=Y.length,W,V,S;Z++;if(!L[Z]){L[Z]=[];}for(;UO){O=W;}}}}}for(M=0;M"];for(;M");this._colgroupNode=N.insertBefore(t(O.join("")),N.get("firstChild"));return this._colgroupNode;},_addTheadNode:function(L){if(L){this._theadNode=L.insertBefore(t(I),this._colgroupNode.next());return this._theadNode;}},_addTbodyNode:function(L){this._tbodyNode=L.appendChild(t(f)); -return this._tbodyNode;},_addMessageNode:function(L){this._msgNode=L.insertBefore(t(n),this._tbodyNode);return this._msgNode;},_addCaptionNode:function(L){this._captionNode=c.Node.create("");},bindUI:function(){this.after({columnsetChange:this._afterColumnsetChange,summaryChange:this._afterSummaryChange,captionChange:this._afterCaptionChange,recordsetChange:this._afterRecordsChange,"recordset:tableChange":this._afterRecordsChange});},delegate:function(L){if(L==="dblclick"){this.get("boundingBox").delegate.apply(this.get("boundingBox"),arguments);}else{this.get("contentBox").delegate.apply(this.get("contentBox"),arguments);}},syncUI:function(){this._uiSetColumnset(this.get("columnset"));this._uiSetRecordset(this.get("recordset"));this._uiSetSummary(this.get("summary"));this._uiSetCaption(this.get("caption"));},_uiSetSummary:function(L){L=g(L)?L:"";this._tableNode.set("summary",L);},_uiSetCaption:function(N){var L=this._captionNode,M=L.inDoc(),O=N?(!M&&"prepend"):(M&&"removeChild");L.setContent(N||"");if(O){this._tableNode[O](L);}},_uiSetColumnset:function(P){var M=P.tree,R=this._theadNode,N=0,L=M.length,O=R.get("parentNode"),Q=R.next();R.remove();R.get("children").remove(true);for(;N=0;--Q){M=N[Q];L.columns[Q]={column:M,fields:M.get("field"),classnames:M.get("classnames"),emptyCellValue:M.get("emptyCellValue")};V=M.get("formatter");if(w.isFunction(V)){V=c.bind(this._functionFormatter,this,V);}else{if(!w.isString(V)){V=R;}V=c.bind(this._templateFormatter,this,V);}L.columns[Q].formatter=V;}for(Q=0,S=O.size();Q
  • ',c='
    ',h="
    ",f=b.cached(function(){var q=b.one("body").appendChild('

    '),r=q.get("offsetWidth")-q.get("clientWidth");q.remove(true);return r;});function p(){p.superclass.constructor.apply(this,arguments);}b.mix(p,{NS:"scroll",NAME:"dataTableScroll",ATTRS:{width:{value:undefined,writeOnce:"initOnly"},height:{value:undefined,writeOnce:"initOnly"},_scroll:{valueFn:function(){var q=this.get("width"),r=this.get("height");if(q&&r){return"xy";}else{if(q){return"x";}else{if(r){return"y";}else{return null;}}}}},COLOR_COLUMNFILLER:{value:"#f2f2f2",validator:k.isString,setter:function(q){if(this._headerContainerNode){this._headerContainerNode.setStyle("backgroundColor",q);}}}}});b.extend(p,b.Plugin.Base,{_parentTableNode:null,_parentTheadNode:null,_parentTbodyNode:null,_parentMsgNode:null,_parentContainer:null,_bodyContainerNode:null,_headerContainerNode:null,initializer:function(q){var r=this.get("host");this._parentContainer=r.get("contentBox");this._parentContainer.addClass(j);this._setUpNodes();},_setUpNodes:function(){this.afterHostMethod("_addTableNode",this._setUpParentTableNode);this.afterHostMethod("_addTheadNode",this._setUpParentTheadNode);this.afterHostMethod("_addTbodyNode",this._setUpParentTbodyNode);this.afterHostMethod("_addMessageNode",this._setUpParentMessageNode);this.afterHostMethod("renderUI",this.renderUI);this.afterHostMethod("bindUI",this.bindUI);this.afterHostMethod("syncUI",this.syncUI);if(this.get("_scroll")!=="x"){this.afterHostMethod("_attachTheadThNode",this._attachTheadThNode);this.afterHostMethod("_attachTbodyTdNode",this._attachTbodyTdNode);}},_setUpParentTableNode:function(){this._parentTableNode=this.get("host")._tableNode;},_setUpParentTheadNode:function(){this._parentTheadNode=this.get("host")._theadNode;},_setUpParentTbodyNode:function(){this._parentTbodyNode=this.get("host")._tbodyNode;},_setUpParentMessageNode:function(){this._parentMsgNode=this.get("host")._msgNode;},renderUI:function(){this._createBodyContainer();this._createHeaderContainer();this._setContentBoxDimensions();},bindUI:function(){this._bodyContainerNode.on("scroll",b.bind("_onScroll",this));this.afterHostEvent("recordsetChange",this.syncUI);this.afterHostEvent("recordset:recordsChange",this.syncUI);},syncUI:function(){this._removeCaptionNode();this._syncWidths();this._syncScroll();},_removeCaptionNode:function(){this.get("host")._captionNode.remove();},_syncWidths:function(){var t=this._parentContainer.one("."+a),q=this._parentContainer.one("."+e),v=t.all("thead ."+l),u=q.one("."+d+" tr"),s=u&&u.all("."+l),r=(o.ie)?"offsetWidth":"clientWidth";if(s&&s.size()){v.each(function(B,y){var w=s.item(y),x=B.get(r),A=w.get(r),z=Math.max(x,A);z-=(parseInt(B.getComputedStyle("paddingLeft"),10)|0)+(parseInt(B.getComputedStyle("paddingRight"),10)|0);B.setStyle("width",z+"px");w.setStyle("width",z+"px");});}},_attachTheadThNode:function(r){var q=r.column.get("width");if(q){r.th.one("."+l).setStyles({width:q,overflow:"hidden"});}},_attachTbodyTdNode:function(r){var q=r.column.get("width");if(q){r.td.one("."+l).setStyles({width:q,overflow:"hidden"});}},_createBodyContainer:function(){var q=m.create(c);this._bodyContainerNode=q;this._setStylesForTbody();q.appendChild(this._parentTableNode);this._parentContainer.appendChild(q);},_createHeaderContainer:function(){var r=m.create(i),q=m.create(h);this._headerContainerNode=r;this._setStylesForThead();q.appendChild(this._parentTheadNode);r.appendChild(q);this._parentContainer.prepend(r);},_setStylesForTbody:function(){var r=this.get("_scroll"),q=this.get("width")||"",t=this.get("height")||"",s=this._bodyContainerNode,u={width:"",height:t};if(r==="x"){u.overflowY="hidden";u.width=q;}else{if(r==="y"){u.overflowX="hidden";}else{if(r==="xy"){u.width=q;}else{u.overflowX="hidden";u.overflowY="hidden";u.width=q;}}}s.setStyles(u);return s;},_setStylesForThead:function(){var q=this.get("width")||"",r=this._headerContainerNode;r.setStyles({"width":q,"overflow":"hidden"});},_setContentBoxDimensions:function(){if(this.get("_scroll")==="y"||(!this.get("width"))){this._parentContainer.setStyle("width","auto");}},_onScroll:function(){this._headerContainerNode.set("scrollLeft",this._bodyContainerNode.get("scrollLeft"));},_syncScroll:function(){this._syncScrollX();this._syncScrollY();this._syncScrollOverhang();if(o.opera){this._headerContainerNode.set("scrollLeft",this._bodyContainerNode.get("scrollLeft"));if(!this.get("width")){document.body.style+="";}}},_syncScrollY:function(){var q=this._parentTbodyNode,s=this._bodyContainerNode,r;if(!this.get("width")){r=(s.get("scrollHeight")>s.get("clientHeight"))?(q.get("parentNode").get("clientWidth")+f())+"px":(q.get("parentNode").get("clientWidth")+2)+"px";this._parentContainer.setStyle("width",r);}},_syncScrollX:function(){var q=this._parentTbodyNode,s=this._bodyContainerNode,r;this._headerContainerNode.set("scrollLeft",this._bodyContainerNode.get("scrollLeft"));if(!this.get("height")&&(o.ie)){r=(s.get("scrollWidth")>s.get("offsetWidth"))?(q.get("parentNode").get("offsetHeight")+f())+"px":q.get("parentNode").get("offsetHeight")+"px";s.setStyle("height",r);}if(q.get("rows").size()){this._parentMsgNode.get("parentNode").setStyle("width","");}else{this._parentMsgNode.get("parentNode").setStyle("width",this._parentTheadNode.get("parentNode").get("offsetWidth")+"px");}},_syncScrollOverhang:function(){var q=this._bodyContainerNode,r=1;if((q.get("scrollHeight")>q.get("clientHeight"))||(q.get("scrollWidth")>q.get("clientWidth"))){r=18;}this._setOverhangValue(r);if(o.ie!==0&&this.get("_scroll")==="y"&&this._bodyContainerNode.get("scrollHeight")>this._bodyContainerNode.get("offsetHeight")){this._headerContainerNode.setStyle("width",this._parentContainer.get("width")); -}},_setOverhangValue:function(r){var t=this.get("host"),v=t.get("columnset").get("definitions"),q=v.length,u=r+"px solid "+this.get("COLOR_COLUMNFILLER"),s=m.all("#"+this._parentContainer.get("id")+" ."+a+" table thead th");s.item(q-1).setStyle("borderRight",u);}});b.namespace("Plugin").DataTableScroll=p;},"3.4.1",{requires:["datatable-base","plugin"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/datatable-sort/assets/datatable-base-core.css b/lib/yui/3.4.1/build/datatable-sort/assets/datatable-base-core.css deleted file mode 100644 index 410683e186b..00000000000 --- a/lib/yui/3.4.1/build/datatable-sort/assets/datatable-base-core.css +++ /dev/null @@ -1,93 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -/* foundational CSS */ - -/* mask */ -.yui3-skin-sam .yui3-datatable-mask { - position:absolute; - z-index:9500; -} - -/* scrollable */ -.yui3-datatable-tmp { - position:absolute; - left:-9000px; -} - -.yui3-datatable-scrollable .yui3-datatable-bd { - overflow:auto; -} -.yui3-datatable-scrollable .yui3-datatable-hd { - overflow:hidden; - position:relative; /* for ie overflow bug http://rowanw.com/bugs/overflow_relative.htm */ -} - -.yui3-datatable-scrollable .yui3-datatable-bd thead tr, -.yui3-datatable-scrollable .yui3-datatable-bd thead th { - position:absolute; - left:-1500px; -} - -.yui3-datatable-scrollable tbody { - -moz-outline:none; -} - -/* sortable columns */ - -.yui3-skin-sam thead .yui3-datatable-sortable { - cursor:pointer; -} - -/* draggable columns */ -.yui3-skin-sam thead .yui3-datatable-draggable { - cursor: move; -} -.yui3-datatable-coltarget { - position: absolute; - z-index: 999; -} - -/* resizeable columns */ -.yui3-datatable-hd { - zoom:1; -} -th.yui3-datatable-resizeable .yui3-datatable-resizerliner { - position:relative; -} -.yui3-datatable-resizer { - position:absolute; - right:0; - bottom:0; - height:100%; - cursor:e-resize; - cursor:col-resize; - background-color:#CCC;opacity:0;filter: alpha(opacity=0); /* Bug 1952811: IE transparency z-index */ -} -.yui3-datatable-resizerproxy { - visibility:hidden; - position:absolute; - z-index:9000; - background-color:#CCC;opacity:0;filter: alpha(opacity=0); /* Bug 1952811: IE transparency z-index */ -} - -/* hidden columns */ -th.yui3-datatable-hidden .yui3-datatable-liner, -td.yui3-datatable-hidden .yui3-datatable-liner, -th.yui3-datatable-hidden .yui3-datatable-resizer { - /*TODO: document change from 2.5.2 to 2.6 - margin:0; - padding:0; - white-space:nowrap; - width:1px; - overflow:hidden;*/ - display:none; -} - -/* editing */ -.yui3-datatable-editor, .yui3-datatable-editor-shim { - position:absolute;z-index:9000; -} diff --git a/lib/yui/3.4.1/build/datatable-sort/datatable-sort-min.js b/lib/yui/3.4.1/build/datatable-sort/datatable-sort-min.js deleted file mode 100644 index fed72f42b46..00000000000 --- a/lib/yui/3.4.1/build/datatable-sort/datatable-sort-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("datatable-sort",function(g){var f=g.ClassNameManager.getClassName,h="datatable",b="column",d="asc",c="desc",a='{value}';function e(){e.superclass.constructor.apply(this,arguments);}g.mix(e,{NS:"sort",NAME:"dataTableSort",ATTRS:{trigger:{value:{event:"click",selector:"th"},writeOnce:"initOnly"},lastSortedBy:{setter:"_setLastSortedBy",lazyAdd:false},template:{value:a},strings:{valueFn:function(){return g.Intl.get("datatable-sort");}}}});g.extend(e,g.Plugin.Base,{initializer:function(j){var k=this.get("host"),i=this.get("trigger");k.get("recordset").plug(g.Plugin.RecordsetSort,{dt:k});k.get("recordset").sort.addTarget(k);this.doBefore("_createTheadThNode",this._beforeCreateTheadThNode);this.doBefore("_attachTheadThNode",this._beforeAttachTheadThNode);this.doBefore("_attachTbodyTdNode",this._beforeAttachTbodyTdNode);k.delegate(i.event,g.bind(this._onEventSortColumn,this),i.selector);k.after("recordsetSort:sort",function(){this._uiSetRecordset(this.get("recordset"));});this.on("lastSortedByChange",function(l){this._uiSetLastSortedBy(l.prevVal,l.newVal,k);});if(k.get("rendered")){k._uiSetColumnset(k.get("columnset"));this._uiSetLastSortedBy(null,this.get("lastSortedBy"),k);}},_setLastSortedBy:function(i){if(g.Lang.isString(i)){i={key:i,dir:"desc"};}if(i){return(i.dir==="desc")?{key:i.key,dir:"desc",notdir:"asc"}:{key:i.key,dir:"asc",notdir:"desc"};}else{return null;}},_uiSetLastSortedBy:function(n,m,l){var w=this.get("strings"),k=l.get("columnset"),x=n&&n.key,u=m&&m.key,i=n&&l.getClassName(n.dir),p=m&&l.getClassName(m.dir),r=k.keyHash[x],o=k.keyHash[u],q=l._tbodyNode,v=g.Lang.sub,j,t,s;if(r&&i){j=r.thNode;t=j.one("a");if(t){t.set("title",v(w.sortBy,{column:r.get("label")}));}j.removeClass(i);q.all("."+f(b,r.get("id"))).removeClass(i);}if(o&&p){j=o.thNode;t=j.one("a");if(t){s=(m.dir===d)?"reverseSortBy":"sortBy";t.set("title",v(w[s],{column:o.get("label")}));}j.addClass(p);q.all("."+f(b,o.get("id"))).addClass(p);}},_beforeCreateTheadThNode:function(k){var i,j;if(k.column.get("sortable")){i=this.get("lastSortedBy");j=(i&&i.dir===d&&i.key===k.column.get("key"))?"reverseSortBy":"sortBy";k.value=g.Lang.sub(this.get("template"),{link_class:k.link_class||"",link_title:g.Lang.sub(this.get("strings."+j),{column:k.column.get("label")}),link_href:"#",value:k.value});}},_beforeAttachTheadThNode:function(m){var l=this.get("lastSortedBy"),k=l&&l.key,i=l&&l.dir,j=l&&l.notdir;if(m.column.get("sortable")){m.th.addClass(f(h,"sortable"));}if(k&&(k===m.column.get("key"))){m.th.replaceClass(f(h,j),f(h,i));}},_beforeAttachTbodyTdNode:function(m){var l=this.get("lastSortedBy"),k=l&&l.key,i=l&&l.dir,j=l&&l.notdir;if(m.column.get("sortable")){m.td.addClass(f(h,"sortable"));}if(k&&(k===m.column.get("key"))){m.td.replaceClass(f(h,j),f(h,i));}},_onEventSortColumn:function(n){n.halt();var l=this.get("host"),k=l.get("columnset").idHash[n.currentTarget.get("id")],j,m,i,o,p;if(k.get("sortable")){j=k.get("key");m=k.get("field");i=this.get("lastSortedBy")||{};o=(i.key===j&&i.dir===d);p=k.get("sortFn");l.get("recordset").sort.sort(m,o,p);this.set("lastSortedBy",{key:j,dir:(o)?c:d});}}});g.namespace("Plugin").DataTableSort=e;},"3.4.1",{requires:["datatable-base","plugin","recordset-sort"],lang:["en"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/datatype-date-format/lang/datatype-date-format_ja-JP.js b/lib/yui/3.4.1/build/datatype-date-format/lang/datatype-date-format_ja-JP.js deleted file mode 100644 index a123bfa0cde..00000000000 --- a/lib/yui/3.4.1/build/datatype-date-format/lang/datatype-date-format_ja-JP.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("lang/datatype-date-format_ja-JP",function(a){a.Intl.add("datatype-date-format","ja-JP",{"a":["日","月","火","水","木","金","土"],"A":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"b":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"B":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"c":"%Y年%m月%d日(%a)%k時%M分%S秒 %Z","p":["午前","午後"],"P":["午前","午後"],"x":"%y/%m/%d","X":"%k時%M分%S秒"});},"3.4.1"); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/datatype-date-format/lang/datatype-date-format_ja.js b/lib/yui/3.4.1/build/datatype-date-format/lang/datatype-date-format_ja.js deleted file mode 100644 index 7ba11aa7a1c..00000000000 --- a/lib/yui/3.4.1/build/datatype-date-format/lang/datatype-date-format_ja.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("lang/datatype-date-format_ja",function(a){a.Intl.add("datatype-date-format","ja",{"a":["日","月","火","水","木","金","土"],"A":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"b":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"B":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"c":"%Y年%m月%d日(%a)%k時%M分%S秒 %Z","p":["午前","午後"],"P":["午前","午後"],"x":"%y/%m/%d","X":"%k時%M分%S秒"});},"3.4.1"); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/datatype-date-math/datatype-date-math-debug.js b/lib/yui/3.4.1/build/datatype-date-math/datatype-date-math-debug.js deleted file mode 100644 index ce74771099d..00000000000 --- a/lib/yui/3.4.1/build/datatype-date-math/datatype-date-math-debug.js +++ /dev/null @@ -1,127 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('datatype-date-math', function(Y) { - -/** - * Parse number submodule. - * - * @module datatype - * @submodule datatype-date-parse - * @for DataType.Date - */ -var LANG = Y.Lang; - -Y.mix(Y.namespace("DataType.Date"), { - - /** - * Checks whether a native JavaScript Date contains a valid value. - * @for DataType.Date - * @method isValidDate - * @param oDate {Date} Date in the month for which the number of days is desired. - * @return {Boolean} True if the date argument contains a valid value. - */ - isValidDate : function (oDate) { - if(LANG.isDate(oDate) && (isFinite(oDate)) && (oDate != "Invalid Date") && !isNaN(oDate) && (oDate != null)) { - return true; - } - else { - Y.log("Could not validate data " + LANG.dump(oDate) + " as type Date", "warn", "date"); - return false; - } - }, - - areEqual : function (aDate, bDate) { - return (this.isValidDate(aDate) && this.isValidDate(bDate) && (aDate.getTime() == bDate.getTime())); - }, - - isGreater : function (aDate, bDate) { - return (this.isValidDate(aDate) && this.isValidDate(bDate) && (aDate.getTime() > bDate.getTime())); - }, - - isGreaterOrEqual : function (aDate, bDate) { - return (this.isValidDate(aDate) && this.isValidDate(bDate) && (aDate.getTime() >= bDate.getTime())); - }, - - addMonths : function (oDate, numMonths) { - var newYear = oDate.getFullYear(); - var newMonth = oDate.getMonth() + numMonths; - - newYear = Math.floor(newYear + newMonth / 12); - newMonth = (newMonth % 12 + 12) % 12; - - var newDate = new Date (oDate.getTime()); - newDate.setYear(newYear); - newDate.setMonth(newMonth); - - return newDate; - }, - - addYears : function (oDate, numYears) { - var newYear = oDate.getFullYear() + numYears; - var newDate = new Date(oDate.getTime()); - - newDate.setYear(newYear); - return newDate; - }, - - listOfDatesInMonth : function (oDate) { - if (!this.isValidDate(oDate)) { - return []; - } - - var daysInMonth = this.daysInMonth(oDate), - year = oDate.getFullYear(), - month = oDate.getMonth(), - output = []; - - for (var day = 1; day <= daysInMonth; day++) { - output.push(new Date(year, month, day, 12, 0, 0)); - } - - return output; - }, - - /** - * Takes a native JavaScript Date and returns the number of days in the month that the given date belongs to. - * @for DataType.Date - * @method daysInMonth - * @param oDate {Date} Date in the month for which the number of days is desired. - * @return {Number} A number (either 28, 29, 30 or 31) of days in the given month. - */ - daysInMonth : function (oDate) { - if (!this.isValidDate(oDate)) { - return 0; - } - - var mon = oDate.getMonth(); - var lengths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - - if (mon != 1) { - return lengths[mon]; - } - else { - - var year = oDate.getFullYear(); - if (year%400 === 0) { - return 29; - } - else if (year%100 === 0) { - return 28; - } - else if (year%4 === 0) { - return 29; - } - else { - return 28; - } - } - } - -}); - - -}, '3.4.1' ,{requires:['yui-base']}); diff --git a/lib/yui/3.4.1/build/datatype-date-math/datatype-date-math-min.js b/lib/yui/3.4.1/build/datatype-date-math/datatype-date-math-min.js deleted file mode 100644 index 98d943ca232..00000000000 --- a/lib/yui/3.4.1/build/datatype-date-math/datatype-date-math-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("datatype-date-math",function(b){var a=b.Lang;b.mix(b.namespace("DataType.Date"),{isValidDate:function(c){if(a.isDate(c)&&(isFinite(c))&&(c!="Invalid Date")&&!isNaN(c)&&(c!=null)){return true;}else{return false;}},areEqual:function(d,c){return(this.isValidDate(d)&&this.isValidDate(c)&&(d.getTime()==c.getTime()));},isGreater:function(d,c){return(this.isValidDate(d)&&this.isValidDate(c)&&(d.getTime()>c.getTime()));},isGreaterOrEqual:function(d,c){return(this.isValidDate(d)&&this.isValidDate(c)&&(d.getTime()>=c.getTime()));},addMonths:function(f,c){var e=f.getFullYear();var g=f.getMonth()+c;e=Math.floor(e+g/12);g=(g%12+12)%12;var d=new Date(f.getTime());d.setYear(e);d.setMonth(g);return d;},addYears:function(f,e){var d=f.getFullYear()+e;var c=new Date(f.getTime());c.setYear(d);return c;},listOfDatesInMonth:function(g){if(!this.isValidDate(g)){return[];}var e=this.daysInMonth(g),f=g.getFullYear(),h=g.getMonth(),d=[];for(var c=1;c<=e;c++){d.push(new Date(f,h,c,12,0,0));}return d;},daysInMonth:function(e){if(!this.isValidDate(e)){return 0;}var d=e.getMonth();var f=[31,28,31,30,31,30,31,31,30,31,30,31];if(d!=1){return f[d];}else{var c=e.getFullYear();if(c%400===0){return 29;}else{if(c%100===0){return 28;}else{if(c%4===0){return 29;}else{return 28;}}}}}});},"3.4.1",{requires:["yui-base"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/datatype-date-math/datatype-date-math.js b/lib/yui/3.4.1/build/datatype-date-math/datatype-date-math.js deleted file mode 100644 index d644196763a..00000000000 --- a/lib/yui/3.4.1/build/datatype-date-math/datatype-date-math.js +++ /dev/null @@ -1,126 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('datatype-date-math', function(Y) { - -/** - * Parse number submodule. - * - * @module datatype - * @submodule datatype-date-parse - * @for DataType.Date - */ -var LANG = Y.Lang; - -Y.mix(Y.namespace("DataType.Date"), { - - /** - * Checks whether a native JavaScript Date contains a valid value. - * @for DataType.Date - * @method isValidDate - * @param oDate {Date} Date in the month for which the number of days is desired. - * @return {Boolean} True if the date argument contains a valid value. - */ - isValidDate : function (oDate) { - if(LANG.isDate(oDate) && (isFinite(oDate)) && (oDate != "Invalid Date") && !isNaN(oDate) && (oDate != null)) { - return true; - } - else { - return false; - } - }, - - areEqual : function (aDate, bDate) { - return (this.isValidDate(aDate) && this.isValidDate(bDate) && (aDate.getTime() == bDate.getTime())); - }, - - isGreater : function (aDate, bDate) { - return (this.isValidDate(aDate) && this.isValidDate(bDate) && (aDate.getTime() > bDate.getTime())); - }, - - isGreaterOrEqual : function (aDate, bDate) { - return (this.isValidDate(aDate) && this.isValidDate(bDate) && (aDate.getTime() >= bDate.getTime())); - }, - - addMonths : function (oDate, numMonths) { - var newYear = oDate.getFullYear(); - var newMonth = oDate.getMonth() + numMonths; - - newYear = Math.floor(newYear + newMonth / 12); - newMonth = (newMonth % 12 + 12) % 12; - - var newDate = new Date (oDate.getTime()); - newDate.setYear(newYear); - newDate.setMonth(newMonth); - - return newDate; - }, - - addYears : function (oDate, numYears) { - var newYear = oDate.getFullYear() + numYears; - var newDate = new Date(oDate.getTime()); - - newDate.setYear(newYear); - return newDate; - }, - - listOfDatesInMonth : function (oDate) { - if (!this.isValidDate(oDate)) { - return []; - } - - var daysInMonth = this.daysInMonth(oDate), - year = oDate.getFullYear(), - month = oDate.getMonth(), - output = []; - - for (var day = 1; day <= daysInMonth; day++) { - output.push(new Date(year, month, day, 12, 0, 0)); - } - - return output; - }, - - /** - * Takes a native JavaScript Date and returns the number of days in the month that the given date belongs to. - * @for DataType.Date - * @method daysInMonth - * @param oDate {Date} Date in the month for which the number of days is desired. - * @return {Number} A number (either 28, 29, 30 or 31) of days in the given month. - */ - daysInMonth : function (oDate) { - if (!this.isValidDate(oDate)) { - return 0; - } - - var mon = oDate.getMonth(); - var lengths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - - if (mon != 1) { - return lengths[mon]; - } - else { - - var year = oDate.getFullYear(); - if (year%400 === 0) { - return 29; - } - else if (year%100 === 0) { - return 28; - } - else if (year%4 === 0) { - return 29; - } - else { - return 28; - } - } - } - -}); - - -}, '3.4.1' ,{requires:['yui-base']}); diff --git a/lib/yui/3.4.1/build/dd-constrain/dd-constrain-min.js b/lib/yui/3.4.1/build/dd-constrain/dd-constrain-min.js deleted file mode 100644 index 5700e8af8f9..00000000000 --- a/lib/yui/3.4.1/build/dd-constrain/dd-constrain-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("dd-constrain",function(b){var l="dragNode",n="offsetHeight",e="offsetWidth",q="host",f="tickXArray",o="tickYArray",p=b.DD.DDM,d="top",j="right",m="bottom",c="left",k="view",h=null,i="drag:tickAlignX",g="drag:tickAlignY",a=function(r){this._lazyAddAttrs=false;a.superclass.constructor.apply(this,arguments);};a.NAME="ddConstrained";a.NS="con";a.ATTRS={host:{},stickX:{value:false},stickY:{value:false},tickX:{value:false},tickY:{value:false},tickXArray:{value:false},tickYArray:{value:false},gutter:{value:"0",setter:function(r){return b.DD.DDM.cssSizestoObject(r);}},constrain:{value:k,setter:function(r){var s=b.one(r);if(s){r=s;}return r;}},constrain2region:{setter:function(s){return this.set("constrain",s);}},constrain2node:{setter:function(r){return this.set("constrain",b.one(r));}},constrain2view:{setter:function(r){return this.set("constrain",k);}},cacheRegion:{value:true}};h={_lastTickXFired:null,_lastTickYFired:null,initializer:function(){this._createEvents();this.get(q).on("drag:end",b.bind(this._handleEnd,this));this.get(q).on("drag:start",b.bind(this._handleStart,this));this.get(q).after("drag:align",b.bind(this.align,this));this.get(q).after("drag:drag",b.bind(this.drag,this));},_createEvents:function(){var r=this;var s=[i,g];b.each(s,function(u,t){this.publish(u,{type:u,emitFacade:true,bubbles:true,queuable:false,prefix:"drag"});},this);},_handleEnd:function(){this._lastTickYFired=null;this._lastTickXFired=null;},_handleStart:function(){this.resetCache();},_regionCache:null,_cacheRegion:function(){this._regionCache=this.get("constrain").get("region");},resetCache:function(){this._regionCache=null;},_getConstraint:function(){var r=this.get("constrain"),s=this.get("gutter"),t;if(r){if(r instanceof b.Node){if(!this._regionCache){b.on("resize",b.bind(this._cacheRegion,this),b.config.win);this._cacheRegion();}t=b.clone(this._regionCache);if(!this.get("cacheRegion")){this.resetCache();}}else{if(b.Lang.isObject(r)){t=b.clone(r);}}}if(!r||!t){r=k;}if(r===k){t=this.get(q).get(l).get("viewportRegion");}b.each(s,function(u,v){if((v==j)||(v==m)){t[v]-=u;}else{t[v]+=u;}});return t;},getRegion:function(w){var u={},v=null,s=null,t=this.get(q);u=this._getConstraint();if(w){v=t.get(l).get(n);s=t.get(l).get(e);u[j]=u[j]-s;u[m]=u[m]-v;}return u;},_checkRegion:function(s){var u=s,w=this.getRegion(),v=this.get(q),x=v.get(l).get(n),t=v.get(l).get(e);if(u[1]>(w[m]-x)){s[1]=(w[m]-x);}if(w[d]>u[1]){s[1]=w[d];}if(u[0]>(w[j]-t)){s[0]=(w[j]-t);}if(w[c]>u[0]){s[0]=w[c];}return s;},inRegion:function(t){t=t||this.get(q).get(l).getXY();var s=this._checkRegion([t[0],t[1]]),r=false;if((t[0]===s[0])&&(t[1]===s[1])){r=true;}return r;},align:function(){var u=this.get(q),s=[u.actXY[0],u.actXY[1]],t=this.getRegion(true);if(this.get("stickX")){s[1]=(u.startXY[1]-u.deltaXY[1]);}if(this.get("stickY")){s[0]=(u.startXY[0]-u.deltaXY[0]);}if(t){s=this._checkRegion(s);}s=this._checkTicks(s,t);u.actXY=s;},drag:function(v){var u=this.get(q),s=this.get("tickX"),t=this.get("tickY"),r=[u.actXY[0],u.actXY[1]];if((b.Lang.isNumber(s)||this.get(f))&&(this._lastTickXFired!==r[0])){this._tickAlignX();this._lastTickXFired=r[0];}if((b.Lang.isNumber(t)||this.get(o))&&(this._lastTickYFired!==r[1])){this._tickAlignY();this._lastTickYFired=r[1];}},_checkTicks:function(y,w){var v=this.get(q),x=(v.startXY[0]-v.deltaXY[0]),u=(v.startXY[1]-v.deltaXY[1]),s=this.get("tickX"),t=this.get("tickY");if(s&&!this.get(f)){y[0]=p._calcTicks(y[0],x,s,w[c],w[j]);}if(t&&!this.get(o)){y[1]=p._calcTicks(y[1],u,t,w[d],w[m]);}if(this.get(f)){y[0]=p._calcTickArray(y[0],this.get(f),w[c],w[j]);}if(this.get(o)){y[1]=p._calcTickArray(y[1],this.get(o),w[d],w[m]);}return y;},_tickAlignX:function(){this.fire(i);},_tickAlignY:function(){this.fire(g);}};b.namespace("Plugin");b.extend(a,b.Base,h);b.Plugin.DDConstrained=a;b.mix(p,{_calcTicks:function(y,x,u,w,v){var s=((y-x)/u),t=Math.floor(s),r=Math.ceil(s);if((t!==0)||(r!==0)){if((s>=t)&&(s<=r)){y=(x+(u*t));if(w&&v){if(yv){y=(x+(u*(t-1)));}}}}return y;},_calcTickArray:function(z,A,y,v){var s=0,w=A.length,u=0,t,r,x;if(!A||(A.length===0)){return z;}else{if(A[0]>=z){return A[0];}else{for(s=0;s=z){t=z-A[s];r=A[u]-z;x=(r>t)?A[s]:A[u];if(y&&v){if(x>v){if(A[s]){x=A[s];}else{x=A[w-1];}}}return x;}}return A[A.length-1];}}}});},"3.4.1",{skinnable:false,requires:["dd-drag"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/dd-ddm/dd-ddm-min.js b/lib/yui/3.4.1/build/dd-ddm/dd-ddm-min.js deleted file mode 100644 index f8cdce6ce78..00000000000 --- a/lib/yui/3.4.1/build/dd-ddm/dd-ddm-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("dd-ddm",function(a){a.mix(a.DD.DDM,{_pg:null,_debugShim:false,_activateTargets:function(){},_deactivateTargets:function(){},_startDrag:function(){if(this.activeDrag&&this.activeDrag.get("useShim")){this._pg_activate();this._activateTargets();}},_endDrag:function(){this._pg_deactivate();this._deactivateTargets();},_pg_deactivate:function(){this._pg.setStyle("display","none");},_pg_activate:function(){var b=this.activeDrag.get("activeHandle"),c="auto";if(b){c=b.getStyle("cursor");}if(c=="auto"){c=this.get("dragCursor");}this._pg_size();this._pg.setStyles({top:0,left:0,display:"block",opacity:((this._debugShim)?".5":"0"),cursor:c});},_pg_size:function(){if(this.activeDrag){var c=a.one("body"),e=c.get("docHeight"),d=c.get("docWidth");this._pg.setStyles({height:e+"px",width:d+"px"});}},_createPG:function(){var d=a.Node.create("
    "),b=a.one("body"),c;d.setStyles({top:"0",left:"0",position:"absolute",zIndex:"9999",overflow:"hidden",backgroundColor:"red",display:"none",height:"5px",width:"5px"});d.set("id",a.stamp(d));d.addClass(a.DD.DDM.CSS_PREFIX+"-shim");b.prepend(d);this._pg=d;this._pg.on("mousemove",a.throttle(a.bind(this._move,this),this.get("throttleTime")));this._pg.on("mouseup",a.bind(this._end,this));c=a.one("win");a.on("window:resize",a.bind(this._pg_size,this));c.on("scroll",a.bind(this._pg_size,this));}},true);},"3.4.1",{skinnable:false,requires:["dd-ddm-base","event-resize"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/dd-drop/dd-drop-min.js b/lib/yui/3.4.1/build/dd-drop/dd-drop-min.js deleted file mode 100644 index 056c05ce302..00000000000 --- a/lib/yui/3.4.1/build/dd-drop/dd-drop-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("dd-drop",function(a){var b="node",g=a.DD.DDM,f="offsetHeight",c="offsetWidth",i="drop:over",h="drop:enter",d="drop:exit",e=function(){this._lazyAddAttrs=false;e.superclass.constructor.apply(this,arguments);a.on("domready",a.bind(function(){a.later(100,this,this._createShim);},this));g._regTarget(this);};e.NAME="drop";e.ATTRS={node:{setter:function(j){var k=a.one(j);if(!k){a.error("DD.Drop: Invalid Node Given: "+j);}return k;}},groups:{value:["default"],setter:function(j){this._groups={};a.each(j,function(m,l){this._groups[m]=true;},this);return j;}},padding:{value:"0",setter:function(j){return g.cssSizestoObject(j);}},lock:{value:false,setter:function(j){if(j){this.get(b).addClass(g.CSS_PREFIX+"-drop-locked");}else{this.get(b).removeClass(g.CSS_PREFIX+"-drop-locked");}return j;}},bubbles:{setter:function(j){this.addTarget(j);return j;}},useShim:{value:true,setter:function(j){a.DD.DDM._noShim=!j;return j;}}};a.extend(e,a.Base,{_bubbleTargets:a.DD.DDM,addToGroup:function(j){this._groups[j]=true;return this;},removeFromGroup:function(j){delete this._groups[j];return this;},_createEvents:function(){var j=[i,h,d,"drop:hit"];a.each(j,function(m,l){this.publish(m,{type:m,emitFacade:true,preventable:false,bubbles:true,queuable:false,prefix:"drop"});},this);},_valid:null,_groups:null,shim:null,region:null,overTarget:null,inGroup:function(j){this._valid=false;var k=false;a.each(j,function(m,l){if(this._groups[m]){k=true;this._valid=true;}},this);return k;},initializer:function(j){a.later(100,this,this._createEvents);var k=this.get(b),l;if(!k.get("id")){l=a.stamp(k);k.set("id",l);}k.addClass(g.CSS_PREFIX+"-drop");this.set("groups",this.get("groups"));},destructor:function(){g._unregTarget(this);if(this.shim&&(this.shim!==this.get(b))){this.shim.detachAll();this.shim.remove();this.shim=null;}this.get(b).removeClass(g.CSS_PREFIX+"-drop");this.detachAll();},_deactivateShim:function(){if(!this.shim){return false;}this.get(b).removeClass(g.CSS_PREFIX+"-drop-active-valid");this.get(b).removeClass(g.CSS_PREFIX+"-drop-active-invalid");this.get(b).removeClass(g.CSS_PREFIX+"-drop-over");if(this.get("useShim")){this.shim.setStyles({top:"-999px",left:"-999px",zIndex:"1"});}this.overTarget=false;},_activateShim:function(){if(!g.activeDrag){return false;}if(this.get(b)===g.activeDrag.get(b)){return false;}if(this.get("lock")){return false;}var j=this.get(b);if(this.inGroup(g.activeDrag.get("groups"))){j.removeClass(g.CSS_PREFIX+"-drop-active-invalid");j.addClass(g.CSS_PREFIX+"-drop-active-valid");g._addValid(this);this.overTarget=false;if(!this.get("useShim")){this.shim=this.get(b);}this.sizeShim();}else{g._removeValid(this);j.removeClass(g.CSS_PREFIX+"-drop-active-valid");j.addClass(g.CSS_PREFIX+"-drop-active-invalid");}},sizeShim:function(){if(!g.activeDrag){return false;}if(this.get(b)===g.activeDrag.get(b)){return false;}if(this.get("lock")){return false;}if(!this.shim){a.later(100,this,this.sizeShim);return false;}var o=this.get(b),m=o.get(f),k=o.get(c),r=o.getXY(),q=this.get("padding"),j,n,l;k=k+q.left+q.right;m=m+q.top+q.bottom;r[0]=r[0]-q.left;r[1]=r[1]-q.top;if(g.activeDrag.get("dragMode")===g.INTERSECT){j=g.activeDrag;n=j.get(b).get(f);l=j.get(b).get(c);m=(m+n);k=(k+l);r[0]=r[0]-(l-j.deltaXY[0]);r[1]=r[1]-(n-j.deltaXY[1]);}if(this.get("useShim")){this.shim.setStyles({height:m+"px",width:k+"px",top:r[1]+"px",left:r[0]+"px"});}this.region={"0":r[0],"1":r[1],area:0,top:r[1],right:r[0]+k,bottom:r[1]+m,left:r[0]};},_createShim:function(){if(!g._pg){a.later(10,this,this._createShim);return;}if(this.shim){return;}var j=this.get("node");if(this.get("useShim")){j=a.Node.create('
    ');j.setStyles({height:this.get(b).get(f)+"px",width:this.get(b).get(c)+"px",backgroundColor:"yellow",opacity:".5",zIndex:"1",overflow:"hidden",top:"-900px",left:"-900px",position:"absolute"});g._pg.appendChild(j);j.on("mouseover",a.bind(this._handleOverEvent,this));j.on("mouseout",a.bind(this._handleOutEvent,this));}this.shim=j;},_handleTargetOver:function(){if(g.isOverTarget(this)){this.get(b).addClass(g.CSS_PREFIX+"-drop-over");g.activeDrop=this;g.otherDrops[this]=this;if(this.overTarget){g.activeDrag.fire("drag:over",{drop:this,drag:g.activeDrag});this.fire(i,{drop:this,drag:g.activeDrag});}else{if(g.activeDrag.get("dragging")){this.overTarget=true;this.fire(h,{drop:this,drag:g.activeDrag});g.activeDrag.fire("drag:enter",{drop:this,drag:g.activeDrag});g.activeDrag.get(b).addClass(g.CSS_PREFIX+"-drag-over");}}}else{this._handleOut();}},_handleOverEvent:function(){this.shim.setStyle("zIndex","999");g._addActiveShim(this);},_handleOutEvent:function(){this.shim.setStyle("zIndex","1");g._removeActiveShim(this);},_handleOut:function(j){if(!g.isOverTarget(this)||j){if(this.overTarget){this.overTarget=false;if(!j){g._removeActiveShim(this);}if(g.activeDrag){this.get(b).removeClass(g.CSS_PREFIX+"-drop-over");g.activeDrag.get(b).removeClass(g.CSS_PREFIX+"-drag-over");this.fire(d);g.activeDrag.fire("drag:exit",{drop:this});delete g.otherDrops[this];}}}}});a.DD.Drop=e;},"3.4.1",{skinnable:false,requires:["dd-ddm-drop","dd-drag"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/dd-plugin/dd-plugin-debug.js b/lib/yui/3.4.1/build/dd-plugin/dd-plugin-debug.js deleted file mode 100644 index a9750e3ebb0..00000000000 --- a/lib/yui/3.4.1/build/dd-plugin/dd-plugin-debug.js +++ /dev/null @@ -1,163 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add('dd-plugin', function(Y) { - - - - /** - * Simple Drag plugin that can be attached to a Node or Widget via the plug method. - * @module dd - * @submodule dd-plugin - */ - /** - * Simple Drag plugin that can be attached to a Node or Widget via the plug method. - * @class Drag - * @extends DD.Drag - * @constructor - * @namespace Plugin - */ - var Drag = function(config) { - if (Y.Widget && config.host instanceof Y.Widget) { - config.node = config.host.get('boundingBox'); - config.widget = config.host; - } - else { - config.node = config.host; - config.widget = false; - } - Drag.superclass.constructor.call(this, config); - }, - - EV_DRAG = 'drag:drag', - EV_DRAG_END = 'drag:end'; - - /** - * @property NAME - * @description dd-plugin - * @type {String} - */ - Drag.NAME = "dd-plugin"; - - /** - * @property NS - * @description The Drag instance will be placed on the Node instance under the dd namespace. It can be accessed via Node.dd; - * @type {String} - */ - Drag.NS = "dd"; - - Y.extend(Drag, Y.DD.Drag, { - - - /** - * refers to a Y.Widget if its the host, otherwise = false. - * - * @attribute _widget - * @private - */ - _widget: undefined, - - - /** - * refers to the [x,y] coordinate where the drag was stopped last - * - * @attribute _stoppedPosition - * @private - */ - _stoppedPosition: undefined, - - - /** - * Returns true if widget uses widgetPosition, otherwise returns false - * - * @method _usesWidgetPosition - * @private - */ - _usesWidgetPosition: function(widget) { - var r = false; - if (widget) { - r = (widget.hasImpl && widget.hasImpl(Y.WidgetPosition)) ? true : false; - } - return r; - }, - - - /** - * Sets up event listeners on drag events if interacting with a widget - * - * @method initializer - * @protected - */ - initializer: function(config) { - - - this._widget = config.widget; - - //if this thing is a widget, and it uses widgetposition... - if (this._usesWidgetPosition(this._widget)) { - - //set the x,y on the widget's ATTRS - this.on(EV_DRAG, this._setWidgetCoords); - - //store the new position that the widget ends up on - this.on(EV_DRAG_END, this._updateStopPosition); - } - - - }, - - /** - * Updates x,y or xy attributes on widget based on where the widget is dragged - * - * @method initializer - * @param {EventFacade} e Event Facade - * @private - */ - _setWidgetCoords: function(e) { - - //get the last position where the widget was, or get the starting point - var nodeXY = this._stoppedPosition || e.target.nodeXY, - realXY = e.target.realXY, - - //amount moved = [(x2 - x1) , (y2 - y1)] - movedXY = [realXY[0] - nodeXY[0], realXY[1] - nodeXY[0]]; - - //if both have changed.. - if (movedXY[0] !== 0 && movedXY[1] !== 0) { - this._widget.set('xy', realXY); - } - - //if only x is 0, set the Y - else if (movedXY[0] === 0) { - this._widget.set('y',realXY[1]); - } - - //otherwise, y is 0, so set X - else if (movedXY[1] === 0){ - this._widget.set('x', realXY[0]); - } - }, - - /** - * Updates the last position where the widget was stopped. - * - * @method updateStopPosition - * @param {EventFacade} e Event Facade - * @private - */ - updateStopPosition: function(e) { - this._stoppedPosition = e.target.realXY; - } - }); - - Y.namespace('Plugin'); - Y.Plugin.Drag = Drag; - - - - - -}, '3.4.1' ,{optional:['dd-constrain', 'dd-proxy'], requires:['dd-drag'], skinnable:false}); diff --git a/lib/yui/3.4.1/build/dd-plugin/dd-plugin-min.js b/lib/yui/3.4.1/build/dd-plugin/dd-plugin-min.js deleted file mode 100644 index b05c6536865..00000000000 --- a/lib/yui/3.4.1/build/dd-plugin/dd-plugin-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("dd-plugin",function(c){var a=function(e){if(c.Widget&&e.host instanceof c.Widget){e.node=e.host.get("boundingBox");e.widget=e.host;}else{e.node=e.host;e.widget=false;}a.superclass.constructor.call(this,e);},b="drag:drag",d="drag:end";a.NAME="dd-plugin";a.NS="dd";c.extend(a,c.DD.Drag,{_widget:undefined,_stoppedPosition:undefined,_usesWidgetPosition:function(f){var e=false;if(f){e=(f.hasImpl&&f.hasImpl(c.WidgetPosition))?true:false;}return e;},initializer:function(e){this._widget=e.widget;if(this._usesWidgetPosition(this._widget)){this.on(b,this._setWidgetCoords);this.on(d,this._updateStopPosition);}},_setWidgetCoords:function(i){var h=this._stoppedPosition||i.target.nodeXY,f=i.target.realXY,g=[f[0]-h[0],f[1]-h[0]];if(g[0]!==0&&g[1]!==0){this._widget.set("xy",f);}else{if(g[0]===0){this._widget.set("y",f[1]);}else{if(g[1]===0){this._widget.set("x",f[0]);}}}},updateStopPosition:function(f){this._stoppedPosition=f.target.realXY;}});c.namespace("Plugin");c.Plugin.Drag=a;},"3.4.1",{optional:["dd-constrain","dd-proxy"],requires:["dd-drag"],skinnable:false}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/dial/dial-min.js b/lib/yui/3.4.1/build/dial/dial-min.js deleted file mode 100644 index 9702a2546f7..00000000000 --- a/lib/yui/3.4.1/build/dial/dial-min.js +++ /dev/null @@ -1,9 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("dial",function(h){var g=false;if(h.UA.ie&&h.UA.ie<9){g=true;}var e=h.Lang,d=h.Widget,b=h.Node;function a(i){a.superclass.constructor.apply(this,arguments);}a.NAME="dial";a.ATTRS={min:{value:-220},max:{value:220},diameter:{value:100},handleDiameter:{value:0.2},markerDiameter:{value:0.1},centerButtonDiameter:{value:0.5},value:{value:0,validator:function(i){return this._validateValue(i);}},minorStep:{value:1},majorStep:{value:10},stepsPerRevolution:{value:100},decimalPlaces:{value:0},strings:{valueFn:function(){return h.Intl.get("dial");}},handleDistance:{value:0.75}};function c(i){return h.ClassNameManager.getClassName(a.NAME,i);}a.CSS_CLASSES={label:c("label"),labelString:c("label-string"),valueString:c("value-string"),northMark:c("north-mark"),ring:c("ring"),ringVml:c("ring-vml"),marker:c("marker"),markerVml:c("marker-vml"),markerMaxMin:c("marker-max-min"),centerButton:c("center-button"),centerButtonVml:c("center-button-vml"),resetString:c("reset-string"),handle:c("handle"),handleVml:c("handle-vml"),hidden:c("hidden"),dragging:h.ClassNameManager.getClassName("dd-dragging")};var f=a.CSS_CLASSES.label+h.guid();a.LABEL_TEMPLATE='
    {label}
    ';if(g===false){a.RING_TEMPLATE='
    ';a.MARKER_TEMPLATE='
    ';a.CENTER_BUTTON_TEMPLATE='
    {resetStr}
    ';a.HANDLE_TEMPLATE='
    ';}else{a.RING_TEMPLATE='
    '+'
    '+''+"
    "+"";a.MARKER_TEMPLATE='
    '+''+''+""+"
    "+"";a.CENTER_BUTTON_TEMPLATE='
    '+''+''+''+""+'
    {resetStr}
    '+"
    "+"";a.HANDLE_TEMPLATE='
    '+''+''+""+"
    "+"";}h.extend(a,d,{renderUI:function(){this._renderLabel();this._renderRing();this._renderMarker();this._renderCenterButton();this._renderHandle();this.contentBox=this.get("contentBox");this._originalValue=this.get("value");this._minValue=this.get("min");this._maxValue=this.get("max");this._stepsPerRevolution=this.get("stepsPerRevolution");this._minTimesWrapped=(Math.floor(this._minValue/this._stepsPerRevolution-1));this._maxTimesWrapped=(Math.floor(this._maxValue/this._stepsPerRevolution+1));this._timesWrapped=0;this._angle=this._getAngleFromValue(this.get("value"));this._prevAng=this._angle;this._setTimesWrappedFromValue(this._originalValue);this._handleNode.set("aria-valuemin",this._minValue);this._handleNode.set("aria-valuemax",this._maxValue);},_setBorderRadius:function(){this._ringNode.setStyles({"WebkitBorderRadius":this._ringNodeRadius+"px","MozBorderRadius":this._ringNodeRadius+"px","borderRadius":this._ringNodeRadius+"px"});this._handleNode.setStyles({"WebkitBorderRadius":this._handleNodeRadius+"px","MozBorderRadius":this._handleNodeRadius+"px","borderRadius":this._handleNodeRadius+"px"});this._markerNode.setStyles({"WebkitBorderRadius":this._markerNodeRadius+"px","MozBorderRadius":this._markerNodeRadius+"px","borderRadius":this._markerNodeRadius+"px"});this._centerButtonNode.setStyles({"WebkitBorderRadius":this._centerButtonNodeRadius+"px","MozBorderRadius":this._centerButtonNodeRadius+"px","borderRadius":this._centerButtonNodeRadius+"px"});},bindUI:function(){this.after("valueChange",this._afterValueChange);var i=this.get("boundingBox"),j=(!h.UA.opera)?"down:":"press:",k=(!h.UA.opera)?"down:":"press:";j+="38,40,33,34,35,36";k+="37,39";h.on("key",h.bind(this._onDirectionKey,this),i,j);h.on("key",h.bind(this._onLeftRightKey,this),i,k);h.on("mouseenter",function(){this.one("."+a.CSS_CLASSES.resetString).removeClass(a.CSS_CLASSES.hidden);},this._centerButtonNode);h.on("mouseleave",function(){this.one("."+a.CSS_CLASSES.resetString).addClass(a.CSS_CLASSES.hidden);},this._centerButtonNode);h.on("gesturemovestart",h.bind(this._resetDial,this),this._centerButtonNode);h.on("gesturemoveend",h.bind(function(){this._handleNode.focus();},this),this._centerButtonNode);h.on("gesturemovestart",h.bind(function(){this._handleNode.focus();},this),this._handleNode);h.on("gesturemovestart",h.bind(this._handleMousedown,this),this._ringNode);h.on("gesturemoveend",h.bind(function(){this._handleNode.focus();},this),this._ringNode);this._dd1=new h.DD.Drag({node:this._handleNode,on:{"drag:drag":h.bind(this._handleDrag,this),"drag:start":h.bind(this._handleDragStart,this),"drag:end":h.bind(this._handleDragEnd,this)}});h.bind(this._dd1.addHandle(this._ringNode),this);},_setTimesWrappedFromValue:function(i){if(i%this._stepsPerRevolution===0){this._timesWrapped=(i/this._stepsPerRevolution);}else{this._timesWrapped=Math.floor(i/this._stepsPerRevolution);}},_getAngleFromHandleCenter:function(k,j){var i=Math.atan((this._centerYOnPage-j)/(this._centerXOnPage-k))*(180/Math.PI); -i=((this._centerXOnPage-k)<0)?i+90:i+90+180;return i;},_recalculateDialCenter:function(){this._centerYOnPage=(this._ringNode.getY()+this._ringNodeRadius);this._centerXOnPage=(this._ringNode.getX()+this._ringNodeRadius);},_handleDrag:function(k){var m,l,i,j;m=k.pageX+this._handleNodeRadius;l=k.pageY+this._handleNodeRadius;i=this._getAngleFromHandleCenter(m,l);if((this._prevAng>270)&&(i<90)){if(this._timesWrapped270)){if(this._timesWrapped>this._minTimesWrapped){this._timesWrapped=(this._timesWrapped-1);}}}j=this._getValueFromAngle(i);if(j>(this._maxValue+this._stepsPerRevolution)){this._timesWrapped--;}else{if(j<(this._minValue-this._stepsPerRevolution)){this._timesWrapped++;}}this._prevAng=i;this._handleValuesBeyondMinMax(k,j);},_handleMousedown:function(n){var l=this._getAngleFromValue(this._minValue),k=this._getAngleFromValue(this._maxValue),m,j,i;this._recalculateDialCenter();var p=n.pageX,o=n.pageY;i=this._getAngleFromHandleCenter(p,o);if(this._maxValue-this._minValue>this._stepsPerRevolution){if(Math.abs(this._prevAng-i)>180){if((this._timesWrapped>this._minTimesWrapped)&&(this._timesWrapped0)?(this._timesWrapped+1):(this._timesWrapped-1);}}else{if((this._timesWrapped===this._minTimesWrapped)&&(i-this._prevAng<180)){this._timesWrapped++;}}}else{if(this._maxValue-this._minValue===this._stepsPerRevolution){if(ik){if((this._prevAng>=l)&&(i<=(l+k)/2)){this._timesWrapped++;}else{if((this._prevAng<=k)&&(i>(l+k)/2)){this._timesWrapped--;}}}else{if((ik)){j=(((l+k)/2)+180)%360;if(j>180){m=((ki)&&(i>j))?this.get("min"):this.get("max");}this._prevAng=this._getAngleFromValue(m);this.set("value",m);this._setTimesWrappedFromValue(m);return;}}}}m=this._getValueFromAngle(i);this._prevAng=i;this._handleValuesBeyondMinMax(n,m);},_handleValuesBeyondMinMax:function(j,i){if((i>=this._minValue)&&(i<=this._maxValue)){this.set("value",i);if(j.currentTarget===this._ringNode){this._dd1._handleMouseDownEvent(j);}}else{if(i>this._maxValue){this.set("value",this._maxValue);if(j.type==="gesturemovestart"){this._prevAng=this._getAngleFromValue(this._maxValue);}}else{if(ithis._minValue)&&(j=j&&k<=i);}});h.Dial=a;},"3.4.1",{requires:["widget","dd-drag","substitute","event-mouseenter","event-move","event-key","transition","intl"],lang:["en","es"],skinnable:true}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/dom-base/dom-base-min.js b/lib/yui/3.4.1/build/dom-base/dom-base-min.js deleted file mode 100644 index 64664e1038b..00000000000 --- a/lib/yui/3.4.1/build/dom-base/dom-base-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("dom-base",function(b){var o=b.config.doc.documentElement,g=b.DOM,m="tagName",a="ownerDocument",c="",n=b.Features.add,k=b.Features.test;b.mix(g,{getText:(o.textContent!==undefined)?function(s){var r="";if(s){r=s.textContent;}return r||"";}:function(s){var r="";if(s){r=s.innerText||s.nodeValue;}return r||"";},setText:(o.textContent!==undefined)?function(r,s){if(r){r.textContent=s;}}:function(r,s){if("innerText" in r){r.innerText=s;}else{if("nodeValue" in r){r.nodeValue=s;}}},CUSTOM_ATTRIBUTES:(!o.hasAttribute)?{"for":"htmlFor","class":"className"}:{"htmlFor":"for","className":"class"},setAttribute:function(t,r,u,s){if(t&&r&&t.setAttribute){r=g.CUSTOM_ATTRIBUTES[r]||r;t.setAttribute(r,u,s);}},getAttribute:function(u,r,t){t=(t!==undefined)?t:2;var s="";if(u&&r&&u.getAttribute){r=g.CUSTOM_ATTRIBUTES[r]||r;s=u.getAttribute(r,t);if(s===null){s="";}}return s;},VALUE_SETTERS:{},VALUE_GETTERS:{},getValue:function(t){var s="",r;if(t&&t[m]){r=g.VALUE_GETTERS[t[m].toLowerCase()];if(r){s=r(t);}else{s=t.value;}}if(s===c){s=c;}return(typeof s==="string")?s:"";},setValue:function(r,s){var t;if(r&&r[m]){t=g.VALUE_SETTERS[r[m].toLowerCase()];if(t){t(r,s);}else{r.value=s;}}},creators:{}});n("value-set","select",{test:function(){var r=b.config.doc.createElement("select");r.innerHTML="";r.value="2";return(r.value&&r.value==="2");}});if(!k("value-set","select")){g.VALUE_SETTERS.select=function(u,v){for(var s=0,r=u.getElementsByTagName("option"),t;t=r[s++];){if(g.getValue(t)===v){t.selected=true;break;}}};}b.mix(g.VALUE_GETTERS,{button:function(r){return(r.attributes&&r.attributes.value)?r.attributes.value.value:"";}});b.mix(g.VALUE_SETTERS,{button:function(s,t){var r=s.attributes.value;if(!r){r=s[a].createAttribute("value");s.setAttributeNode(r);}r.value=t;}});b.mix(g.VALUE_GETTERS,{option:function(s){var r=s.attributes;return(r.value&&r.value.specified)?s.value:s.text;},select:function(s){var t=s.value,r=s.options;if(r&&r.length){if(s.multiple){}else{t=g.getValue(r[s.selectedIndex]);}}return t;}});var h,f,q;b.mix(b.DOM,{hasClass:function(t,s){var r=b.DOM._getRegExp("(?:^|\\s+)"+s+"(?:\\s+|$)");return r.test(t.className);},addClass:function(s,r){if(!b.DOM.hasClass(s,r)){s.className=b.Lang.trim([s.className,r].join(" "));}},removeClass:function(s,r){if(r&&f(s,r)){s.className=b.Lang.trim(s.className.replace(b.DOM._getRegExp("(?:^|\\s+)"+r+"(?:\\s+|$)")," "));if(f(s,r)){q(s,r);}}},replaceClass:function(s,r,t){q(s,r);h(s,t);},toggleClass:function(s,r,t){var u=(t!==undefined)?t:!(f(s,r));if(u){h(s,r);}else{q(s,r);}}});f=b.DOM.hasClass;q=b.DOM.removeClass;h=b.DOM.addClass;var e=/<([a-z]+)/i,g=b.DOM,n=b.Features.add,k=b.Features.test,j={},i=function(t,r){var u=b.config.doc.createElement("div"),s=true;u.innerHTML=t;if(!u.firstChild||u.firstChild.tagName!==r.toUpperCase()){s=false;}return s;},p=/(?:\/(?:thead|tfoot|tbody|caption|col|colgroup)>)+\s*";}catch(s){return false;}return(r.firstChild&&r.firstChild.nodeName==="TBODY");}});n("innerhtml-div","tr",{test:function(){return i("","tr");}});n("innerhtml-div","script",{test:function(){return i(" + + +@method template +@param {Function} template Precompiled Handlebars template function. +@return {Function} Compiled template function. +*/ + + +}, '3.5.0' ,{requires:['escape']}); diff --git a/lib/yui/3.5.0/build/handlebars-base/handlebars-base-min.js b/lib/yui/3.5.0/build/handlebars-base/handlebars-base-min.js new file mode 100644 index 00000000000..f4253f5ac83 --- /dev/null +++ b/lib/yui/3.5.0/build/handlebars-base/handlebars-base-min.js @@ -0,0 +1,12 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add("handlebars-base",function(e){ +/*! +Handlebars.js - Copyright (C) 2011 Yehuda Katz +https://raw.github.com/wycats/handlebars.js/master/LICENSE +*/ +var d={};d.VERSION="1.0.beta.5";d.helpers={};d.partials={};d.registerHelper=function(g,h,f){if(f){h.not=f;}this.helpers[g]=h;};d.registerPartial=function(f,g){this.partials[f]=g;};d.registerHelper("helperMissing",function(f){if(arguments.length===2){return undefined;}else{throw new Error("Could not find property '"+f+"'");}});var b=Object.prototype.toString,c="[object Function]";d.registerHelper("blockHelperMissing",function(m,k){var f=k.inverse||function(){},o=k.fn;var h="";var n=b.call(m);if(n===c){m=m.call(this);}if(m===true){return o(this);}else{if(m===false||m==null){return f(this);}else{if(n==="[object Array]"){if(m.length>0){for(var l=0,g=m.length;l0){for(var l=0,g=m.length;l 0) { + for(var i=0, j=context.length; i 0) { + for(var i=0, j=context.length; i. + +@module handlebars +@main handlebars +*/ + +/** +Provides basic Handlebars template rendering functionality. Use this module when +you only need to render pre-compiled templates. + +@module handlebars +@submodule handlebars-base +*/ + +/** +Handlebars is a simple template language inspired by Mustache. + +This is a YUI port of the original Handlebars project, which can be found at +. + +@class Handlebars +*/ +Y.Handlebars = Handlebars; + +Handlebars.VERSION += '-yui'; + +// The rest of this file is just API docs for methods defined in Handlebars +// itself. + +/** +Registers a helper function that will be made available to all templates. + +Helper functions receive the current template context as the `this` object, and +can also receive arguments passed by the template. + +@example + + Y.Handlebars.registerHelper('linkify', function () { + return '' + + Y.Escape.html(this.text) + ''; + }); + + var source = '
      {{#each links}}
    • {{linkify}}
    • {{/each}}
    '; + + Y.Handlebars.render(source, { + links: [ + {url: '/foo', text: 'Foo'}, + {url: '/bar', text: 'Bar'}, + {url: '/baz', text: 'Baz'} + ] + }); + +@method registerHelper +@param {String} name Name of this helper. +@param {Function} fn Helper function. +@param {Boolean} [inverse=false] If `true`, this helper will be considered an + "inverse" helper, like "unless". This means it will only be called if the + expression given in the template evaluates to a false or empty value. +*/ + +/** +Registers a partial that will be made available to all templates. + +A partial is another template that can be used to render part of a larger +template. For example, a website with a common header and footer across all its +pages might use a template for each page, which would call shared partials to +render the headers and footers. + +Partials may be specified as uncompiled template strings or as compiled template +functions. + +@example + + Y.Handlebars.registerPartial('header', '

    {{title}}

    '); + Y.Handlebars.registerPartial('footer', 'Copyright (c) 2011 by Me.'); + + var source = '{{> header}}

    Mustaches are awesome!

    {{> footer}}'; + + Y.Handlebars.render(source, {title: 'My Page About Mustaches'}); + +@method registerPartial +@param {String} name Name of this partial. +@param {Function|String} partial Template string or compiled template function. +*/ + +/** +Converts a precompiled template into a renderable template function. + +@example + + + + +@method template +@param {Function} template Precompiled Handlebars template function. +@return {Function} Compiled template function. +*/ + + +}, '3.5.0' ,{requires:['escape']}); diff --git a/lib/yui/3.5.0/build/handlebars-compiler/handlebars-compiler-debug.js b/lib/yui/3.5.0/build/handlebars-compiler/handlebars-compiler-debug.js new file mode 100644 index 00000000000..04da9d510a4 --- /dev/null +++ b/lib/yui/3.5.0/build/handlebars-compiler/handlebars-compiler-debug.js @@ -0,0 +1,1531 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add('handlebars-compiler', function(Y) { + +/*! +Handlebars.js - Copyright (C) 2011 Yehuda Katz +https://raw.github.com/wycats/handlebars.js/master/LICENSE +*/ +// This file contains code that will be inserted at the beginning of the +// handlebars-compiler module. + +// This is necessary because the Y.Handlebars object is created in the +// handlebars-base module, but the native Handlebars code expects to use a local +// Handlebars reference. +var Handlebars = Y.Handlebars; +/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT! */ + +/* Jison generated parser */ +var handlebars = (function(){ + +var parser = {trace: function trace() { }, +yy: {}, +symbols_: {"error":2,"root":3,"program":4,"EOF":5,"statements":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"OPEN_PARTIAL":24,"params":25,"hash":26,"param":27,"STRING":28,"INTEGER":29,"BOOLEAN":30,"hashSegments":31,"hashSegment":32,"ID":33,"EQUALS":34,"pathSegments":35,"SEP":36,"$accept":0,"$end":1}, +terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",28:"STRING",29:"INTEGER",30:"BOOLEAN",33:"ID",34:"EQUALS",36:"SEP"}, +productions_: [0,[3,2],[4,3],[4,1],[4,0],[6,1],[6,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[7,2],[17,3],[17,2],[17,2],[17,1],[25,2],[25,1],[27,1],[27,1],[27,1],[27,1],[26,1],[31,2],[31,1],[32,3],[32,3],[32,3],[32,3],[21,1],[35,3],[35,1]], +performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) { + +var $0 = $$.length - 1; +switch (yystate) { +case 1: return $$[$0-1]; +break; +case 2: this.$ = new yy.ProgramNode($$[$0-2], $$[$0]); +break; +case 3: this.$ = new yy.ProgramNode($$[$0]); +break; +case 4: this.$ = new yy.ProgramNode([]); +break; +case 5: this.$ = [$$[$0]]; +break; +case 6: $$[$0-1].push($$[$0]); this.$ = $$[$0-1]; +break; +case 7: this.$ = new yy.InverseNode($$[$0-2], $$[$0-1], $$[$0]); +break; +case 8: this.$ = new yy.BlockNode($$[$0-2], $$[$0-1], $$[$0]); +break; +case 9: this.$ = $$[$0]; +break; +case 10: this.$ = $$[$0]; +break; +case 11: this.$ = new yy.ContentNode($$[$0]); +break; +case 12: this.$ = new yy.CommentNode($$[$0]); +break; +case 13: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1]); +break; +case 14: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1]); +break; +case 15: this.$ = $$[$0-1]; +break; +case 16: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1]); +break; +case 17: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1], true); +break; +case 18: this.$ = new yy.PartialNode($$[$0-1]); +break; +case 19: this.$ = new yy.PartialNode($$[$0-2], $$[$0-1]); +break; +case 20: +break; +case 21: this.$ = [[$$[$0-2]].concat($$[$0-1]), $$[$0]]; +break; +case 22: this.$ = [[$$[$0-1]].concat($$[$0]), null]; +break; +case 23: this.$ = [[$$[$0-1]], $$[$0]]; +break; +case 24: this.$ = [[$$[$0]], null]; +break; +case 25: $$[$0-1].push($$[$0]); this.$ = $$[$0-1]; +break; +case 26: this.$ = [$$[$0]]; +break; +case 27: this.$ = $$[$0]; +break; +case 28: this.$ = new yy.StringNode($$[$0]); +break; +case 29: this.$ = new yy.IntegerNode($$[$0]); +break; +case 30: this.$ = new yy.BooleanNode($$[$0]); +break; +case 31: this.$ = new yy.HashNode($$[$0]); +break; +case 32: $$[$0-1].push($$[$0]); this.$ = $$[$0-1]; +break; +case 33: this.$ = [$$[$0]]; +break; +case 34: this.$ = [$$[$0-2], $$[$0]]; +break; +case 35: this.$ = [$$[$0-2], new yy.StringNode($$[$0])]; +break; +case 36: this.$ = [$$[$0-2], new yy.IntegerNode($$[$0])]; +break; +case 37: this.$ = [$$[$0-2], new yy.BooleanNode($$[$0])]; +break; +case 38: this.$ = new yy.IdNode($$[$0]); +break; +case 39: $$[$0-2].push($$[$0]); this.$ = $$[$0-2]; +break; +case 40: this.$ = [$$[$0]]; +break; +} +}, +table: [{3:1,4:2,5:[2,4],6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{1:[3]},{5:[1,16]},{5:[2,3],7:17,8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,19],20:[2,3],22:[1,13],23:[1,14],24:[1,15]},{5:[2,5],14:[2,5],15:[2,5],16:[2,5],19:[2,5],20:[2,5],22:[2,5],23:[2,5],24:[2,5]},{4:20,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{4:21,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],24:[2,9]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],24:[2,10]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],24:[2,11]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],24:[2,12]},{17:22,21:23,33:[1,25],35:24},{17:26,21:23,33:[1,25],35:24},{17:27,21:23,33:[1,25],35:24},{17:28,21:23,33:[1,25],35:24},{21:29,33:[1,25],35:24},{1:[2,1]},{6:30,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{5:[2,6],14:[2,6],15:[2,6],16:[2,6],19:[2,6],20:[2,6],22:[2,6],23:[2,6],24:[2,6]},{17:22,18:[1,31],21:23,33:[1,25],35:24},{10:32,20:[1,33]},{10:34,20:[1,33]},{18:[1,35]},{18:[2,24],21:40,25:36,26:37,27:38,28:[1,41],29:[1,42],30:[1,43],31:39,32:44,33:[1,45],35:24},{18:[2,38],28:[2,38],29:[2,38],30:[2,38],33:[2,38],36:[1,46]},{18:[2,40],28:[2,40],29:[2,40],30:[2,40],33:[2,40],36:[2,40]},{18:[1,47]},{18:[1,48]},{18:[1,49]},{18:[1,50],21:51,33:[1,25],35:24},{5:[2,2],8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,2],22:[1,13],23:[1,14],24:[1,15]},{14:[2,20],15:[2,20],16:[2,20],19:[2,20],22:[2,20],23:[2,20],24:[2,20]},{5:[2,7],14:[2,7],15:[2,7],16:[2,7],19:[2,7],20:[2,7],22:[2,7],23:[2,7],24:[2,7]},{21:52,33:[1,25],35:24},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],24:[2,8]},{14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],24:[2,14]},{18:[2,22],21:40,26:53,27:54,28:[1,41],29:[1,42],30:[1,43],31:39,32:44,33:[1,45],35:24},{18:[2,23]},{18:[2,26],28:[2,26],29:[2,26],30:[2,26],33:[2,26]},{18:[2,31],32:55,33:[1,56]},{18:[2,27],28:[2,27],29:[2,27],30:[2,27],33:[2,27]},{18:[2,28],28:[2,28],29:[2,28],30:[2,28],33:[2,28]},{18:[2,29],28:[2,29],29:[2,29],30:[2,29],33:[2,29]},{18:[2,30],28:[2,30],29:[2,30],30:[2,30],33:[2,30]},{18:[2,33],33:[2,33]},{18:[2,40],28:[2,40],29:[2,40],30:[2,40],33:[2,40],34:[1,57],36:[2,40]},{33:[1,58]},{14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],24:[2,13]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],24:[2,16]},{5:[2,17],14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],24:[2,17]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],24:[2,18]},{18:[1,59]},{18:[1,60]},{18:[2,21]},{18:[2,25],28:[2,25],29:[2,25],30:[2,25],33:[2,25]},{18:[2,32],33:[2,32]},{34:[1,57]},{21:61,28:[1,62],29:[1,63],30:[1,64],33:[1,25],35:24},{18:[2,39],28:[2,39],29:[2,39],30:[2,39],33:[2,39],36:[2,39]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],24:[2,19]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],24:[2,15]},{18:[2,34],33:[2,34]},{18:[2,35],33:[2,35]},{18:[2,36],33:[2,36]},{18:[2,37],33:[2,37]}], +defaultActions: {16:[2,1],37:[2,23],53:[2,21]}, +parseError: function parseError(str, hash) { + throw new Error(str); +}, +parse: function parse(input) { + var self = this, + stack = [0], + vstack = [null], // semantic value stack + lstack = [], // location stack + table = this.table, + yytext = '', + yylineno = 0, + yyleng = 0, + recovering = 0, + TERROR = 2, + EOF = 1; + + //this.reductionCount = this.shiftCount = 0; + + this.lexer.setInput(input); + this.lexer.yy = this.yy; + this.yy.lexer = this.lexer; + if (typeof this.lexer.yylloc == 'undefined') + this.lexer.yylloc = {}; + var yyloc = this.lexer.yylloc; + lstack.push(yyloc); + + if (typeof this.yy.parseError === 'function') + this.parseError = this.yy.parseError; + + function popStack (n) { + stack.length = stack.length - 2*n; + vstack.length = vstack.length - n; + lstack.length = lstack.length - n; + } + + function lex() { + var token; + token = self.lexer.lex() || 1; // $end = 1 + // if token isn't its numeric value, convert + if (typeof token !== 'number') { + token = self.symbols_[token] || token; + } + return token; + } + + var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected; + while (true) { + // retreive state number from top of stack + state = stack[stack.length-1]; + + // use default actions if available + if (this.defaultActions[state]) { + action = this.defaultActions[state]; + } else { + if (symbol == null) + symbol = lex(); + // read action for current state and first input + action = table[state] && table[state][symbol]; + } + + // handle parse error + _handle_error: + if (typeof action === 'undefined' || !action.length || !action[0]) { + + if (!recovering) { + // Report error + expected = []; + for (p in table[state]) if (this.terminals_[p] && p > 2) { + expected.push("'"+this.terminals_[p]+"'"); + } + var errStr = ''; + if (this.lexer.showPosition) { + errStr = 'Parse error on line '+(yylineno+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+expected.join(', ') + ", got '" + this.terminals_[symbol]+ "'"; + } else { + errStr = 'Parse error on line '+(yylineno+1)+": Unexpected " + + (symbol == 1 /*EOF*/ ? "end of input" : + ("'"+(this.terminals_[symbol] || symbol)+"'")); + } + this.parseError(errStr, + {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected}); + } + + // just recovered from another error + if (recovering == 3) { + if (symbol == EOF) { + throw new Error(errStr || 'Parsing halted.'); + } + + // discard current lookahead and grab another + yyleng = this.lexer.yyleng; + yytext = this.lexer.yytext; + yylineno = this.lexer.yylineno; + yyloc = this.lexer.yylloc; + symbol = lex(); + } + + // try to recover from error + while (1) { + // check for error recovery rule in this state + if ((TERROR.toString()) in table[state]) { + break; + } + if (state == 0) { + throw new Error(errStr || 'Parsing halted.'); + } + popStack(1); + state = stack[stack.length-1]; + } + + preErrorSymbol = symbol; // save the lookahead token + symbol = TERROR; // insert generic error symbol as new lookahead + state = stack[stack.length-1]; + action = table[state] && table[state][TERROR]; + recovering = 3; // allow 3 real symbols to be shifted before reporting a new error + } + + // this shouldn't happen, unless resolve defaults are off + if (action[0] instanceof Array && action.length > 1) { + throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol); + } + + switch (action[0]) { + + case 1: // shift + //this.shiftCount++; + + stack.push(symbol); + vstack.push(this.lexer.yytext); + lstack.push(this.lexer.yylloc); + stack.push(action[1]); // push state + symbol = null; + if (!preErrorSymbol) { // normal execution/no error + yyleng = this.lexer.yyleng; + yytext = this.lexer.yytext; + yylineno = this.lexer.yylineno; + yyloc = this.lexer.yylloc; + if (recovering > 0) + recovering--; + } else { // error just occurred, resume old lookahead f/ before error + symbol = preErrorSymbol; + preErrorSymbol = null; + } + break; + + case 2: // reduce + //this.reductionCount++; + + len = this.productions_[action[1]][1]; + + // perform semantic action + yyval.$ = vstack[vstack.length-len]; // default to $$ = $1 + // default location, uses first token for firsts, last for lasts + yyval._$ = { + first_line: lstack[lstack.length-(len||1)].first_line, + last_line: lstack[lstack.length-1].last_line, + first_column: lstack[lstack.length-(len||1)].first_column, + last_column: lstack[lstack.length-1].last_column + }; + r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack); + + if (typeof r !== 'undefined') { + return r; + } + + // pop off stack + if (len) { + stack = stack.slice(0,-1*len*2); + vstack = vstack.slice(0, -1*len); + lstack = lstack.slice(0, -1*len); + } + + stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce) + vstack.push(yyval.$); + lstack.push(yyval._$); + // goto new state = table[STATE][NONTERMINAL] + newState = table[stack[stack.length-2]][stack[stack.length-1]]; + stack.push(newState); + break; + + case 3: // accept + return true; + } + + } + + return true; +}};/* Jison generated lexer */ +var lexer = (function(){ + +var lexer = ({EOF:1, +parseError:function parseError(str, hash) { + if (this.yy.parseError) { + this.yy.parseError(str, hash); + } else { + throw new Error(str); + } + }, +setInput:function (input) { + this._input = input; + this._more = this._less = this.done = false; + this.yylineno = this.yyleng = 0; + this.yytext = this.matched = this.match = ''; + this.conditionStack = ['INITIAL']; + this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0}; + return this; + }, +input:function () { + var ch = this._input[0]; + this.yytext+=ch; + this.yyleng++; + this.match+=ch; + this.matched+=ch; + var lines = ch.match(/\n/); + if (lines) this.yylineno++; + this._input = this._input.slice(1); + return ch; + }, +unput:function (ch) { + this._input = ch + this._input; + return this; + }, +more:function () { + this._more = true; + return this; + }, +pastInput:function () { + var past = this.matched.substr(0, this.matched.length - this.match.length); + return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, ""); + }, +upcomingInput:function () { + var next = this.match; + if (next.length < 20) { + next += this._input.substr(0, 20-next.length); + } + return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, ""); + }, +showPosition:function () { + var pre = this.pastInput(); + var c = new Array(pre.length + 1).join("-"); + return pre + this.upcomingInput() + "\n" + c+"^"; + }, +next:function () { + if (this.done) { + return this.EOF; + } + if (!this._input) this.done = true; + + var token, + match, + col, + lines; + if (!this._more) { + this.yytext = ''; + this.match = ''; + } + var rules = this._currentRules(); + for (var i=0;i < rules.length; i++) { + match = this._input.match(this.rules[rules[i]]); + if (match) { + lines = match[0].match(/\n.*/g); + if (lines) this.yylineno += lines.length; + this.yylloc = {first_line: this.yylloc.last_line, + last_line: this.yylineno+1, + first_column: this.yylloc.last_column, + last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length} + this.yytext += match[0]; + this.match += match[0]; + this.matches = match; + this.yyleng = this.yytext.length; + this._more = false; + this._input = this._input.slice(match[0].length); + this.matched += match[0]; + token = this.performAction.call(this, this.yy, this, rules[i],this.conditionStack[this.conditionStack.length-1]); + if (token) return token; + else return; + } + } + if (this._input === "") { + return this.EOF; + } else { + this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(), + {text: "", token: null, line: this.yylineno}); + } + }, +lex:function lex() { + var r = this.next(); + if (typeof r !== 'undefined') { + return r; + } else { + return this.lex(); + } + }, +begin:function begin(condition) { + this.conditionStack.push(condition); + }, +popState:function popState() { + return this.conditionStack.pop(); + }, +_currentRules:function _currentRules() { + return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules; + }, +topState:function () { + return this.conditionStack[this.conditionStack.length-2]; + }, +pushState:function begin(condition) { + this.begin(condition); + }}); +lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { + +var YYSTATE=YY_START +switch($avoiding_name_collisions) { +case 0: + if(yy_.yytext.slice(-1) !== "\\") this.begin("mu"); + if(yy_.yytext.slice(-1) === "\\") yy_.yytext = yy_.yytext.substr(0,yy_.yyleng-1), this.begin("emu"); + if(yy_.yytext) return 14; + +break; +case 1: return 14; +break; +case 2: this.popState(); return 14; +break; +case 3: return 24; +break; +case 4: return 16; +break; +case 5: return 20; +break; +case 6: return 19; +break; +case 7: return 19; +break; +case 8: return 23; +break; +case 9: return 23; +break; +case 10: yy_.yytext = yy_.yytext.substr(3,yy_.yyleng-5); this.popState(); return 15; +break; +case 11: return 22; +break; +case 12: return 34; +break; +case 13: return 33; +break; +case 14: return 33; +break; +case 15: return 36; +break; +case 16: /*ignore whitespace*/ +break; +case 17: this.popState(); return 18; +break; +case 18: this.popState(); return 18; +break; +case 19: yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2).replace(/\\"/g,'"'); return 28; +break; +case 20: return 30; +break; +case 21: return 30; +break; +case 22: return 29; +break; +case 23: return 33; +break; +case 24: yy_.yytext = yy_.yytext.substr(1, yy_.yyleng-2); return 33; +break; +case 25: return 'INVALID'; +break; +case 26: return 5; +break; +} +}; +lexer.rules = [/^[^\x00]*?(?=(\{\{))/,/^[^\x00]+/,/^[^\x00]{2,}?(?=(\{\{))/,/^\{\{>/,/^\{\{#/,/^\{\{\//,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{![\s\S]*?\}\}/,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[\/.]/,/^\s+/,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^true(?=[}\s])/,/^false(?=[}\s])/,/^[0-9]+(?=[}\s])/,/^[a-zA-Z0-9_$-]+(?=[=}\s\/.])/,/^\[[^\]]*\]/,/^./,/^$/]; +lexer.conditions = {"mu":{"rules":[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],"inclusive":false},"emu":{"rules":[2],"inclusive":false},"INITIAL":{"rules":[0,1,26],"inclusive":true}};return lexer;})() +parser.lexer = lexer; +return parser; +})(); +if (typeof require !== 'undefined' && typeof exports !== 'undefined') { +exports.parser = handlebars; +exports.parse = function () { return handlebars.parse.apply(handlebars, arguments); } +exports.main = function commonjsMain(args) { + if (!args[1]) + throw new Error('Usage: '+args[0]+' FILE'); + if (typeof process !== 'undefined') { + var source = require('fs').readFileSync(require('path').join(process.cwd(), args[1]), "utf8"); + } else { + var cwd = require("file").path(require("file").cwd()); + var source = cwd.join(args[1]).read({charset: "utf-8"}); + } + return exports.parser.parse(source); +} +if (typeof module !== 'undefined' && require.main === module) { + exports.main(typeof process !== 'undefined' ? process.argv.slice(1) : require("system").args); +} +}; +/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT! */ + +// BEGIN(BROWSER) +Handlebars.Parser = handlebars; + +Handlebars.parse = function(string) { + Handlebars.Parser.yy = Handlebars.AST; + return Handlebars.Parser.parse(string); +}; + +Handlebars.print = function(ast) { + return new Handlebars.PrintVisitor().accept(ast); +}; + +Handlebars.logger = { + DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, level: 3, + + // override in the host environment + log: function(level, str) {} +}; + +Handlebars.log = function(level, str) { Handlebars.logger.log(level, str); }; + +// END(BROWSER) +/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT! */ + +// BEGIN(BROWSER) +(function() { + + Handlebars.AST = {}; + + Handlebars.AST.ProgramNode = function(statements, inverse) { + this.type = "program"; + this.statements = statements; + if(inverse) { this.inverse = new Handlebars.AST.ProgramNode(inverse); } + }; + + Handlebars.AST.MustacheNode = function(params, hash, unescaped) { + this.type = "mustache"; + this.id = params[0]; + this.params = params.slice(1); + this.hash = hash; + this.escaped = !unescaped; + }; + + Handlebars.AST.PartialNode = function(id, context) { + this.type = "partial"; + + // TODO: disallow complex IDs + + this.id = id; + this.context = context; + }; + + var verifyMatch = function(open, close) { + if(open.original !== close.original) { + throw new Handlebars.Exception(open.original + " doesn't match " + close.original); + } + }; + + Handlebars.AST.BlockNode = function(mustache, program, close) { + verifyMatch(mustache.id, close); + this.type = "block"; + this.mustache = mustache; + this.program = program; + }; + + Handlebars.AST.InverseNode = function(mustache, program, close) { + verifyMatch(mustache.id, close); + this.type = "inverse"; + this.mustache = mustache; + this.program = program; + }; + + Handlebars.AST.ContentNode = function(string) { + this.type = "content"; + this.string = string; + }; + + Handlebars.AST.HashNode = function(pairs) { + this.type = "hash"; + this.pairs = pairs; + }; + + Handlebars.AST.IdNode = function(parts) { + this.type = "ID"; + this.original = parts.join("."); + + var dig = [], depth = 0; + + for(var i=0,l=parts.length; i 0) { + this.source[1] = this.source[1] + ", " + locals.join(", "); + } + + // Generate minimizer alias mappings + if (!this.isChild) { + var aliases = []; + for (var alias in this.context.aliases) { + this.source[1] = this.source[1] + ', ' + alias + '=' + this.context.aliases[alias]; + } + } + + if (this.source[1]) { + this.source[1] = "var " + this.source[1].substring(2) + ";"; + } + + // Merge children + if (!this.isChild) { + this.source[1] += '\n' + this.context.programs.join('\n') + '\n'; + } + + if (!this.environment.isSimple) { + this.source.push("return buffer;"); + } + + var params = this.isChild ? ["depth0", "data"] : ["Handlebars", "depth0", "helpers", "partials", "data"]; + + for(var i=0, l=this.environment.depths.list.length; i this.stackVars.length) { this.stackVars.push("stack" + this.stackSlot); } + return "stack" + this.stackSlot; + }, + + popStack: function() { + return "stack" + this.stackSlot--; + }, + + topStack: function() { + return "stack" + this.stackSlot; + }, + + quotedString: function(str) { + return '"' + str + .replace(/\\/g, '\\\\') + .replace(/"/g, '\\"') + .replace(/\n/g, '\\n') + .replace(/\r/g, '\\r') + '"'; + } + }; + + var reservedWords = ( + "break else new var" + + " case finally return void" + + " catch for switch while" + + " continue function this with" + + " default if throw" + + " delete in try" + + " do instanceof typeof" + + " abstract enum int short" + + " boolean export interface static" + + " byte extends long super" + + " char final native synchronized" + + " class float package throws" + + " const goto private transient" + + " debugger implements protected volatile" + + " double import public let yield" + ).split(" "); + + var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {}; + + for(var i=0, l=reservedWords.length; i "The pie of the day is Maple Custard!" + +@method render +@param {String} string Handlebars template string to render. +@param {Object} context Context object to pass to the template. +@param {Object} [options] Compile/render options. + @param {Object} [options.helpers] Helper functions. + @param {Object} [options.partials] Partials. + @param {Object} [options.data] Data. +@return {String} Rendered template string. +*/ +Handlebars.render = function (string, context, options) { + return Handlebars.compile(string)(context, options); +}; + +// The rest of this file is just API docs for methods defined in Handlebars +// itself. + +/** +Compiles a Handlebars template string into a function. To render the template, +call the function and pass in a context object. + +@example + + var template = Y.Handlebars.compile('The pie of the day is {{pie}}!.'); + template({pie: 'Pecan'}); + // => "The pie of the day is Pecan!" + +@method compile +@param {String} string Handlebars template string to compile. +@param {Object} [options] Compiler options. +@return {Function} Compiled template function. +*/ + +/** +Precompiles a Handlebars template string into a string of JavaScript code. This +can be used to precompile a template at build time or on the server, and the +resulting template can then be rendered at runtime or on the client without +needing to go through a compile step. + +To render a precompiled template, evaluate the code and then pass the resulting +function to `Y.Handlebars.template()` to get back an executable template +function. + +@method precompile +@param {String} string Handlebars template string to compile. +@param {Object} [options] Compiler options. +@return {String} Precompiled template code. +*/ + + +}, '3.5.0' ,{requires:['handlebars-base']}); diff --git a/lib/yui/3.5.0/build/handlebars-compiler/handlebars-compiler-min.js b/lib/yui/3.5.0/build/handlebars-compiler/handlebars-compiler-min.js new file mode 100644 index 00000000000..3fb44181731 --- /dev/null +++ b/lib/yui/3.5.0/build/handlebars-compiler/handlebars-compiler-min.js @@ -0,0 +1,16 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add("handlebars-compiler",function(e){ +/*! +Handlebars.js - Copyright (C) 2011 Yehuda Katz +https://raw.github.com/wycats/handlebars.js/master/LICENSE +*/ +var d=e.Handlebars;var a=(function(){var k={trace:function h(){},yy:{},symbols_:{"error":2,"root":3,"program":4,"EOF":5,"statements":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"OPEN_PARTIAL":24,"params":25,"hash":26,"param":27,"STRING":28,"INTEGER":29,"BOOLEAN":30,"hashSegments":31,"hashSegment":32,"ID":33,"EQUALS":34,"pathSegments":35,"SEP":36,"$accept":0,"$end":1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",28:"STRING",29:"INTEGER",30:"BOOLEAN",33:"ID",34:"EQUALS",36:"SEP"},productions_:[0,[3,2],[4,3],[4,1],[4,0],[6,1],[6,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[7,2],[17,3],[17,2],[17,2],[17,1],[25,2],[25,1],[27,1],[27,1],[27,1],[27,1],[26,1],[31,2],[31,1],[32,3],[32,3],[32,3],[32,3],[21,1],[35,3],[35,1]],performAction:function g(l,o,p,s,r,n,q){var m=n.length-1;switch(r){case 1:return n[m-1];break;case 2:this.$=new s.ProgramNode(n[m-2],n[m]);break;case 3:this.$=new s.ProgramNode(n[m]);break;case 4:this.$=new s.ProgramNode([]);break;case 5:this.$=[n[m]];break;case 6:n[m-1].push(n[m]);this.$=n[m-1];break;case 7:this.$=new s.InverseNode(n[m-2],n[m-1],n[m]);break;case 8:this.$=new s.BlockNode(n[m-2],n[m-1],n[m]);break;case 9:this.$=n[m];break;case 10:this.$=n[m];break;case 11:this.$=new s.ContentNode(n[m]);break;case 12:this.$=new s.CommentNode(n[m]);break;case 13:this.$=new s.MustacheNode(n[m-1][0],n[m-1][1]);break;case 14:this.$=new s.MustacheNode(n[m-1][0],n[m-1][1]);break;case 15:this.$=n[m-1];break;case 16:this.$=new s.MustacheNode(n[m-1][0],n[m-1][1]);break;case 17:this.$=new s.MustacheNode(n[m-1][0],n[m-1][1],true);break;case 18:this.$=new s.PartialNode(n[m-1]);break;case 19:this.$=new s.PartialNode(n[m-2],n[m-1]);break;case 20:break;case 21:this.$=[[n[m-2]].concat(n[m-1]),n[m]];break;case 22:this.$=[[n[m-1]].concat(n[m]),null];break;case 23:this.$=[[n[m-1]],n[m]];break;case 24:this.$=[[n[m]],null];break;case 25:n[m-1].push(n[m]);this.$=n[m-1];break;case 26:this.$=[n[m]];break;case 27:this.$=n[m];break;case 28:this.$=new s.StringNode(n[m]);break;case 29:this.$=new s.IntegerNode(n[m]);break;case 30:this.$=new s.BooleanNode(n[m]);break;case 31:this.$=new s.HashNode(n[m]);break;case 32:n[m-1].push(n[m]);this.$=n[m-1];break;case 33:this.$=[n[m]];break;case 34:this.$=[n[m-2],n[m]];break;case 35:this.$=[n[m-2],new s.StringNode(n[m])];break;case 36:this.$=[n[m-2],new s.IntegerNode(n[m])];break;case 37:this.$=[n[m-2],new s.BooleanNode(n[m])];break;case 38:this.$=new s.IdNode(n[m]);break;case 39:n[m-2].push(n[m]);this.$=n[m-2];break;case 40:this.$=[n[m]];break;}},table:[{3:1,4:2,5:[2,4],6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{1:[3]},{5:[1,16]},{5:[2,3],7:17,8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,19],20:[2,3],22:[1,13],23:[1,14],24:[1,15]},{5:[2,5],14:[2,5],15:[2,5],16:[2,5],19:[2,5],20:[2,5],22:[2,5],23:[2,5],24:[2,5]},{4:20,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{4:21,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],24:[2,9]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],24:[2,10]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],24:[2,11]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],24:[2,12]},{17:22,21:23,33:[1,25],35:24},{17:26,21:23,33:[1,25],35:24},{17:27,21:23,33:[1,25],35:24},{17:28,21:23,33:[1,25],35:24},{21:29,33:[1,25],35:24},{1:[2,1]},{6:30,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{5:[2,6],14:[2,6],15:[2,6],16:[2,6],19:[2,6],20:[2,6],22:[2,6],23:[2,6],24:[2,6]},{17:22,18:[1,31],21:23,33:[1,25],35:24},{10:32,20:[1,33]},{10:34,20:[1,33]},{18:[1,35]},{18:[2,24],21:40,25:36,26:37,27:38,28:[1,41],29:[1,42],30:[1,43],31:39,32:44,33:[1,45],35:24},{18:[2,38],28:[2,38],29:[2,38],30:[2,38],33:[2,38],36:[1,46]},{18:[2,40],28:[2,40],29:[2,40],30:[2,40],33:[2,40],36:[2,40]},{18:[1,47]},{18:[1,48]},{18:[1,49]},{18:[1,50],21:51,33:[1,25],35:24},{5:[2,2],8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,2],22:[1,13],23:[1,14],24:[1,15]},{14:[2,20],15:[2,20],16:[2,20],19:[2,20],22:[2,20],23:[2,20],24:[2,20]},{5:[2,7],14:[2,7],15:[2,7],16:[2,7],19:[2,7],20:[2,7],22:[2,7],23:[2,7],24:[2,7]},{21:52,33:[1,25],35:24},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],24:[2,8]},{14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],24:[2,14]},{18:[2,22],21:40,26:53,27:54,28:[1,41],29:[1,42],30:[1,43],31:39,32:44,33:[1,45],35:24},{18:[2,23]},{18:[2,26],28:[2,26],29:[2,26],30:[2,26],33:[2,26]},{18:[2,31],32:55,33:[1,56]},{18:[2,27],28:[2,27],29:[2,27],30:[2,27],33:[2,27]},{18:[2,28],28:[2,28],29:[2,28],30:[2,28],33:[2,28]},{18:[2,29],28:[2,29],29:[2,29],30:[2,29],33:[2,29]},{18:[2,30],28:[2,30],29:[2,30],30:[2,30],33:[2,30]},{18:[2,33],33:[2,33]},{18:[2,40],28:[2,40],29:[2,40],30:[2,40],33:[2,40],34:[1,57],36:[2,40]},{33:[1,58]},{14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],24:[2,13]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],24:[2,16]},{5:[2,17],14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],24:[2,17]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],24:[2,18]},{18:[1,59]},{18:[1,60]},{18:[2,21]},{18:[2,25],28:[2,25],29:[2,25],30:[2,25],33:[2,25]},{18:[2,32],33:[2,32]},{34:[1,57]},{21:61,28:[1,62],29:[1,63],30:[1,64],33:[1,25],35:24},{18:[2,39],28:[2,39],29:[2,39],30:[2,39],33:[2,39],36:[2,39]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],24:[2,19]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],24:[2,15]},{18:[2,34],33:[2,34]},{18:[2,35],33:[2,35]},{18:[2,36],33:[2,36]},{18:[2,37],33:[2,37]}],defaultActions:{16:[2,1],37:[2,23],53:[2,21]},parseError:function i(m,l){throw new Error(m); +},parse:function j(v){var C=this,s=[0],L=[null],x=[],M=this.table,m="",w=0,J=0,o=0,u=2,z=1;this.lexer.setInput(v);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;if(typeof this.lexer.yylloc=="undefined"){this.lexer.yylloc={};}var n=this.lexer.yylloc;x.push(n);if(typeof this.yy.parseError==="function"){this.parseError=this.yy.parseError;}function B(p){s.length=s.length-2*p;L.length=L.length-p;x.length=x.length-p;}function A(){var p;p=C.lexer.lex()||1;if(typeof p!=="number"){p=C.symbols_[p]||p;}return p;}var I,E,q,H,N,y,G={},D,K,l,t;while(true){q=s[s.length-1];if(this.defaultActions[q]){H=this.defaultActions[q];}else{if(I==null){I=A();}H=M[q]&&M[q][I];}_handle_error:if(typeof H==="undefined"||!H.length||!H[0]){if(!o){t=[];for(D in M[q]){if(this.terminals_[D]&&D>2){t.push("'"+this.terminals_[D]+"'");}}var F="";if(this.lexer.showPosition){F="Parse error on line "+(w+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+t.join(", ")+", got '"+this.terminals_[I]+"'";}else{F="Parse error on line "+(w+1)+": Unexpected "+(I==1?"end of input":("'"+(this.terminals_[I]||I)+"'"));}this.parseError(F,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:n,expected:t});}if(o==3){if(I==z){throw new Error(F||"Parsing halted.");}J=this.lexer.yyleng;m=this.lexer.yytext;w=this.lexer.yylineno;n=this.lexer.yylloc;I=A();}while(1){if((u.toString()) in M[q]){break;}if(q==0){throw new Error(F||"Parsing halted.");}B(1);q=s[s.length-1];}E=I;I=u;q=s[s.length-1];H=M[q]&&M[q][u];o=3;}if(H[0] instanceof Array&&H.length>1){throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+I);}switch(H[0]){case 1:s.push(I);L.push(this.lexer.yytext);x.push(this.lexer.yylloc);s.push(H[1]);I=null;if(!E){J=this.lexer.yyleng;m=this.lexer.yytext;w=this.lexer.yylineno;n=this.lexer.yylloc;if(o>0){o--;}}else{I=E;E=null;}break;case 2:K=this.productions_[H[1]][1];G.$=L[L.length-K];G._$={first_line:x[x.length-(K||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(K||1)].first_column,last_column:x[x.length-1].last_column};y=this.performAction.call(G,m,J,w,this.yy,H[1],L,x);if(typeof y!=="undefined"){return y;}if(K){s=s.slice(0,-1*K*2);L=L.slice(0,-1*K);x=x.slice(0,-1*K);}s.push(this.productions_[H[1]][0]);L.push(G.$);x.push(G._$);l=M[s[s.length-2]][s[s.length-1]];s.push(l);break;case 3:return true;}}return true;}};var f=(function(){var o=({EOF:1,parseError:function q(t,s){if(this.yy.parseError){this.yy.parseError(t,s);}else{throw new Error(t);}},setInput:function(s){this._input=s;this._more=this._less=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};return this;},input:function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.match+=t;this.matched+=t;var s=t.match(/\n/);if(s){this.yylineno++;}this._input=this._input.slice(1);return t;},unput:function(s){this._input=s+this._input;return this;},more:function(){this._more=true;return this;},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"");},upcomingInput:function(){var s=this.match;if(s.length<20){s+=this._input.substr(0,20-s.length);}return(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"");},showPosition:function(){var s=this.pastInput();var t=new Array(s.length+1).join("-");return s+this.upcomingInput()+"\n"+t+"^";},next:function(){if(this.done){return this.EOF;}if(!this._input){this.done=true;}var w,u,t,s;if(!this._more){this.yytext="";this.match="";}var x=this._currentRules();for(var v=0;v/,/^\{\{#/,/^\{\{\//,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{![\s\S]*?\}\}/,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[\/.]/,/^\s+/,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^true(?=[}\s])/,/^false(?=[}\s])/,/^[0-9]+(?=[}\s])/,/^[a-zA-Z0-9_$-]+(?=[=}\s\/.])/,/^\[[^\]]*\]/,/^./,/^$/]; +o.conditions={"mu":{"rules":[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],"inclusive":false},"emu":{"rules":[2],"inclusive":false},"INITIAL":{"rules":[0,1,26],"inclusive":true}};return o;})();k.lexer=f;return k;})();if(typeof require!=="undefined"&&typeof exports!=="undefined"){exports.parser=a;exports.parse=function(){return a.parse.apply(a,arguments);};exports.main=function b(f){if(!f[1]){throw new Error("Usage: "+f[0]+" FILE");}if(typeof process!=="undefined"){var h=require("fs").readFileSync(require("path").join(process.cwd(),f[1]),"utf8");}else{var g=require("file").path(require("file").cwd());var h=g.join(f[1]).read({charset:"utf-8"});}return exports.parser.parse(h);};if(typeof module!=="undefined"&&require.main===module){exports.main(typeof process!=="undefined"?process.argv.slice(1):require("system").args);}}d.Parser=a;d.parse=function(f){d.Parser.yy=d.AST;return d.Parser.parse(f);};d.print=function(f){return new d.PrintVisitor().accept(f);};d.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(g,f){}};d.log=function(g,f){d.logger.log(g,f);};(function(){d.AST={};d.AST.ProgramNode=function(h,g){this.type="program";this.statements=h;if(g){this.inverse=new d.AST.ProgramNode(g);}};d.AST.MustacheNode=function(i,h,g){this.type="mustache";this.id=i[0];this.params=i.slice(1);this.hash=h;this.escaped=!g;};d.AST.PartialNode=function(h,g){this.type="partial";this.id=h;this.context=g;};var f=function(g,h){if(g.original!==h.original){throw new d.Exception(g.original+" doesn't match "+h.original);}};d.AST.BlockNode=function(h,g,i){f(h.id,i);this.type="block";this.mustache=h;this.program=g;};d.AST.InverseNode=function(h,g,i){f(h.id,i);this.type="inverse";this.mustache=h;this.program=g;};d.AST.ContentNode=function(g){this.type="content";this.string=g;};d.AST.HashNode=function(g){this.type="hash";this.pairs=g;};d.AST.IdNode=function(m){this.type="ID";this.original=m.join(".");var j=[],n=0;for(var k=0,g=m.length;k0){this.source[1]=this.source[1]+", "+v.join(", ");}if(!this.isChild){var q=[];for(var t in this.context.aliases){this.source[1]=this.source[1]+", "+t+"="+this.context.aliases[t];}}if(this.source[1]){this.source[1]="var "+this.source[1].substring(2)+";";}if(!this.isChild){this.source[1]+="\n"+this.context.programs.join("\n")+"\n";}if(!this.environment.isSimple){this.source.push("return buffer;");}var w=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"];for(var s=0,p=this.environment.depths.list.length;sthis.stackVars.length){this.stackVars.push("stack"+this.stackSlot);}return"stack"+this.stackSlot;},popStack:function(){return"stack"+this.stackSlot--;},topStack:function(){return"stack"+this.stackSlot;},quotedString:function(i){return'"'+i.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"';}};var f=("break else new var"+" case finally return void"+" catch for switch while"+" continue function this with"+" default if throw"+" delete in try"+" do instanceof typeof"+" abstract enum int short"+" boolean export interface static"+" byte extends long super"+" char final native synchronized"+" class float package throws"+" const goto private transient"+" debugger implements protected volatile"+" double import public let yield").split(" ");var j=k.RESERVED_WORDS={};for(var h=0,g=f.length;h 2) { + expected.push("'"+this.terminals_[p]+"'"); + } + var errStr = ''; + if (this.lexer.showPosition) { + errStr = 'Parse error on line '+(yylineno+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+expected.join(', ') + ", got '" + this.terminals_[symbol]+ "'"; + } else { + errStr = 'Parse error on line '+(yylineno+1)+": Unexpected " + + (symbol == 1 /*EOF*/ ? "end of input" : + ("'"+(this.terminals_[symbol] || symbol)+"'")); + } + this.parseError(errStr, + {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected}); + } + + // just recovered from another error + if (recovering == 3) { + if (symbol == EOF) { + throw new Error(errStr || 'Parsing halted.'); + } + + // discard current lookahead and grab another + yyleng = this.lexer.yyleng; + yytext = this.lexer.yytext; + yylineno = this.lexer.yylineno; + yyloc = this.lexer.yylloc; + symbol = lex(); + } + + // try to recover from error + while (1) { + // check for error recovery rule in this state + if ((TERROR.toString()) in table[state]) { + break; + } + if (state == 0) { + throw new Error(errStr || 'Parsing halted.'); + } + popStack(1); + state = stack[stack.length-1]; + } + + preErrorSymbol = symbol; // save the lookahead token + symbol = TERROR; // insert generic error symbol as new lookahead + state = stack[stack.length-1]; + action = table[state] && table[state][TERROR]; + recovering = 3; // allow 3 real symbols to be shifted before reporting a new error + } + + // this shouldn't happen, unless resolve defaults are off + if (action[0] instanceof Array && action.length > 1) { + throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol); + } + + switch (action[0]) { + + case 1: // shift + //this.shiftCount++; + + stack.push(symbol); + vstack.push(this.lexer.yytext); + lstack.push(this.lexer.yylloc); + stack.push(action[1]); // push state + symbol = null; + if (!preErrorSymbol) { // normal execution/no error + yyleng = this.lexer.yyleng; + yytext = this.lexer.yytext; + yylineno = this.lexer.yylineno; + yyloc = this.lexer.yylloc; + if (recovering > 0) + recovering--; + } else { // error just occurred, resume old lookahead f/ before error + symbol = preErrorSymbol; + preErrorSymbol = null; + } + break; + + case 2: // reduce + //this.reductionCount++; + + len = this.productions_[action[1]][1]; + + // perform semantic action + yyval.$ = vstack[vstack.length-len]; // default to $$ = $1 + // default location, uses first token for firsts, last for lasts + yyval._$ = { + first_line: lstack[lstack.length-(len||1)].first_line, + last_line: lstack[lstack.length-1].last_line, + first_column: lstack[lstack.length-(len||1)].first_column, + last_column: lstack[lstack.length-1].last_column + }; + r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack); + + if (typeof r !== 'undefined') { + return r; + } + + // pop off stack + if (len) { + stack = stack.slice(0,-1*len*2); + vstack = vstack.slice(0, -1*len); + lstack = lstack.slice(0, -1*len); + } + + stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce) + vstack.push(yyval.$); + lstack.push(yyval._$); + // goto new state = table[STATE][NONTERMINAL] + newState = table[stack[stack.length-2]][stack[stack.length-1]]; + stack.push(newState); + break; + + case 3: // accept + return true; + } + + } + + return true; +}};/* Jison generated lexer */ +var lexer = (function(){ + +var lexer = ({EOF:1, +parseError:function parseError(str, hash) { + if (this.yy.parseError) { + this.yy.parseError(str, hash); + } else { + throw new Error(str); + } + }, +setInput:function (input) { + this._input = input; + this._more = this._less = this.done = false; + this.yylineno = this.yyleng = 0; + this.yytext = this.matched = this.match = ''; + this.conditionStack = ['INITIAL']; + this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0}; + return this; + }, +input:function () { + var ch = this._input[0]; + this.yytext+=ch; + this.yyleng++; + this.match+=ch; + this.matched+=ch; + var lines = ch.match(/\n/); + if (lines) this.yylineno++; + this._input = this._input.slice(1); + return ch; + }, +unput:function (ch) { + this._input = ch + this._input; + return this; + }, +more:function () { + this._more = true; + return this; + }, +pastInput:function () { + var past = this.matched.substr(0, this.matched.length - this.match.length); + return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, ""); + }, +upcomingInput:function () { + var next = this.match; + if (next.length < 20) { + next += this._input.substr(0, 20-next.length); + } + return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, ""); + }, +showPosition:function () { + var pre = this.pastInput(); + var c = new Array(pre.length + 1).join("-"); + return pre + this.upcomingInput() + "\n" + c+"^"; + }, +next:function () { + if (this.done) { + return this.EOF; + } + if (!this._input) this.done = true; + + var token, + match, + col, + lines; + if (!this._more) { + this.yytext = ''; + this.match = ''; + } + var rules = this._currentRules(); + for (var i=0;i < rules.length; i++) { + match = this._input.match(this.rules[rules[i]]); + if (match) { + lines = match[0].match(/\n.*/g); + if (lines) this.yylineno += lines.length; + this.yylloc = {first_line: this.yylloc.last_line, + last_line: this.yylineno+1, + first_column: this.yylloc.last_column, + last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length} + this.yytext += match[0]; + this.match += match[0]; + this.matches = match; + this.yyleng = this.yytext.length; + this._more = false; + this._input = this._input.slice(match[0].length); + this.matched += match[0]; + token = this.performAction.call(this, this.yy, this, rules[i],this.conditionStack[this.conditionStack.length-1]); + if (token) return token; + else return; + } + } + if (this._input === "") { + return this.EOF; + } else { + this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(), + {text: "", token: null, line: this.yylineno}); + } + }, +lex:function lex() { + var r = this.next(); + if (typeof r !== 'undefined') { + return r; + } else { + return this.lex(); + } + }, +begin:function begin(condition) { + this.conditionStack.push(condition); + }, +popState:function popState() { + return this.conditionStack.pop(); + }, +_currentRules:function _currentRules() { + return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules; + }, +topState:function () { + return this.conditionStack[this.conditionStack.length-2]; + }, +pushState:function begin(condition) { + this.begin(condition); + }}); +lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { + +var YYSTATE=YY_START +switch($avoiding_name_collisions) { +case 0: + if(yy_.yytext.slice(-1) !== "\\") this.begin("mu"); + if(yy_.yytext.slice(-1) === "\\") yy_.yytext = yy_.yytext.substr(0,yy_.yyleng-1), this.begin("emu"); + if(yy_.yytext) return 14; + +break; +case 1: return 14; +break; +case 2: this.popState(); return 14; +break; +case 3: return 24; +break; +case 4: return 16; +break; +case 5: return 20; +break; +case 6: return 19; +break; +case 7: return 19; +break; +case 8: return 23; +break; +case 9: return 23; +break; +case 10: yy_.yytext = yy_.yytext.substr(3,yy_.yyleng-5); this.popState(); return 15; +break; +case 11: return 22; +break; +case 12: return 34; +break; +case 13: return 33; +break; +case 14: return 33; +break; +case 15: return 36; +break; +case 16: /*ignore whitespace*/ +break; +case 17: this.popState(); return 18; +break; +case 18: this.popState(); return 18; +break; +case 19: yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2).replace(/\\"/g,'"'); return 28; +break; +case 20: return 30; +break; +case 21: return 30; +break; +case 22: return 29; +break; +case 23: return 33; +break; +case 24: yy_.yytext = yy_.yytext.substr(1, yy_.yyleng-2); return 33; +break; +case 25: return 'INVALID'; +break; +case 26: return 5; +break; +} +}; +lexer.rules = [/^[^\x00]*?(?=(\{\{))/,/^[^\x00]+/,/^[^\x00]{2,}?(?=(\{\{))/,/^\{\{>/,/^\{\{#/,/^\{\{\//,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{![\s\S]*?\}\}/,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[\/.]/,/^\s+/,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^true(?=[}\s])/,/^false(?=[}\s])/,/^[0-9]+(?=[}\s])/,/^[a-zA-Z0-9_$-]+(?=[=}\s\/.])/,/^\[[^\]]*\]/,/^./,/^$/]; +lexer.conditions = {"mu":{"rules":[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],"inclusive":false},"emu":{"rules":[2],"inclusive":false},"INITIAL":{"rules":[0,1,26],"inclusive":true}};return lexer;})() +parser.lexer = lexer; +return parser; +})(); +if (typeof require !== 'undefined' && typeof exports !== 'undefined') { +exports.parser = handlebars; +exports.parse = function () { return handlebars.parse.apply(handlebars, arguments); } +exports.main = function commonjsMain(args) { + if (!args[1]) + throw new Error('Usage: '+args[0]+' FILE'); + if (typeof process !== 'undefined') { + var source = require('fs').readFileSync(require('path').join(process.cwd(), args[1]), "utf8"); + } else { + var cwd = require("file").path(require("file").cwd()); + var source = cwd.join(args[1]).read({charset: "utf-8"}); + } + return exports.parser.parse(source); +} +if (typeof module !== 'undefined' && require.main === module) { + exports.main(typeof process !== 'undefined' ? process.argv.slice(1) : require("system").args); +} +}; +/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT! */ + +// BEGIN(BROWSER) +Handlebars.Parser = handlebars; + +Handlebars.parse = function(string) { + Handlebars.Parser.yy = Handlebars.AST; + return Handlebars.Parser.parse(string); +}; + +Handlebars.print = function(ast) { + return new Handlebars.PrintVisitor().accept(ast); +}; + +Handlebars.logger = { + DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, level: 3, + + // override in the host environment + log: function(level, str) {} +}; + +Handlebars.log = function(level, str) { Handlebars.logger.log(level, str); }; + +// END(BROWSER) +/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT! */ + +// BEGIN(BROWSER) +(function() { + + Handlebars.AST = {}; + + Handlebars.AST.ProgramNode = function(statements, inverse) { + this.type = "program"; + this.statements = statements; + if(inverse) { this.inverse = new Handlebars.AST.ProgramNode(inverse); } + }; + + Handlebars.AST.MustacheNode = function(params, hash, unescaped) { + this.type = "mustache"; + this.id = params[0]; + this.params = params.slice(1); + this.hash = hash; + this.escaped = !unescaped; + }; + + Handlebars.AST.PartialNode = function(id, context) { + this.type = "partial"; + + // TODO: disallow complex IDs + + this.id = id; + this.context = context; + }; + + var verifyMatch = function(open, close) { + if(open.original !== close.original) { + throw new Handlebars.Exception(open.original + " doesn't match " + close.original); + } + }; + + Handlebars.AST.BlockNode = function(mustache, program, close) { + verifyMatch(mustache.id, close); + this.type = "block"; + this.mustache = mustache; + this.program = program; + }; + + Handlebars.AST.InverseNode = function(mustache, program, close) { + verifyMatch(mustache.id, close); + this.type = "inverse"; + this.mustache = mustache; + this.program = program; + }; + + Handlebars.AST.ContentNode = function(string) { + this.type = "content"; + this.string = string; + }; + + Handlebars.AST.HashNode = function(pairs) { + this.type = "hash"; + this.pairs = pairs; + }; + + Handlebars.AST.IdNode = function(parts) { + this.type = "ID"; + this.original = parts.join("."); + + var dig = [], depth = 0; + + for(var i=0,l=parts.length; i 0) { + this.source[1] = this.source[1] + ", " + locals.join(", "); + } + + // Generate minimizer alias mappings + if (!this.isChild) { + var aliases = []; + for (var alias in this.context.aliases) { + this.source[1] = this.source[1] + ', ' + alias + '=' + this.context.aliases[alias]; + } + } + + if (this.source[1]) { + this.source[1] = "var " + this.source[1].substring(2) + ";"; + } + + // Merge children + if (!this.isChild) { + this.source[1] += '\n' + this.context.programs.join('\n') + '\n'; + } + + if (!this.environment.isSimple) { + this.source.push("return buffer;"); + } + + var params = this.isChild ? ["depth0", "data"] : ["Handlebars", "depth0", "helpers", "partials", "data"]; + + for(var i=0, l=this.environment.depths.list.length; i this.stackVars.length) { this.stackVars.push("stack" + this.stackSlot); } + return "stack" + this.stackSlot; + }, + + popStack: function() { + return "stack" + this.stackSlot--; + }, + + topStack: function() { + return "stack" + this.stackSlot; + }, + + quotedString: function(str) { + return '"' + str + .replace(/\\/g, '\\\\') + .replace(/"/g, '\\"') + .replace(/\n/g, '\\n') + .replace(/\r/g, '\\r') + '"'; + } + }; + + var reservedWords = ( + "break else new var" + + " case finally return void" + + " catch for switch while" + + " continue function this with" + + " default if throw" + + " delete in try" + + " do instanceof typeof" + + " abstract enum int short" + + " boolean export interface static" + + " byte extends long super" + + " char final native synchronized" + + " class float package throws" + + " const goto private transient" + + " debugger implements protected volatile" + + " double import public let yield" + ).split(" "); + + var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {}; + + for(var i=0, l=reservedWords.length; i "The pie of the day is Maple Custard!" + +@method render +@param {String} string Handlebars template string to render. +@param {Object} context Context object to pass to the template. +@param {Object} [options] Compile/render options. + @param {Object} [options.helpers] Helper functions. + @param {Object} [options.partials] Partials. + @param {Object} [options.data] Data. +@return {String} Rendered template string. +*/ +Handlebars.render = function (string, context, options) { + return Handlebars.compile(string)(context, options); +}; + +// The rest of this file is just API docs for methods defined in Handlebars +// itself. + +/** +Compiles a Handlebars template string into a function. To render the template, +call the function and pass in a context object. + +@example + + var template = Y.Handlebars.compile('The pie of the day is {{pie}}!.'); + template({pie: 'Pecan'}); + // => "The pie of the day is Pecan!" + +@method compile +@param {String} string Handlebars template string to compile. +@param {Object} [options] Compiler options. +@return {Function} Compiled template function. +*/ + +/** +Precompiles a Handlebars template string into a string of JavaScript code. This +can be used to precompile a template at build time or on the server, and the +resulting template can then be rendered at runtime or on the client without +needing to go through a compile step. + +To render a precompiled template, evaluate the code and then pass the resulting +function to `Y.Handlebars.template()` to get back an executable template +function. + +@method precompile +@param {String} string Handlebars template string to compile. +@param {Object} [options] Compiler options. +@return {String} Precompiled template code. +*/ + + +}, '3.5.0' ,{requires:['handlebars-base']}); diff --git a/lib/yui/3.4.1/build/highlight-accentfold/highlight-accentfold-debug.js b/lib/yui/3.5.0/build/highlight-accentfold/highlight-accentfold-debug.js similarity index 97% rename from lib/yui/3.4.1/build/highlight-accentfold/highlight-accentfold-debug.js rename to lib/yui/3.5.0/build/highlight-accentfold/highlight-accentfold-debug.js index 6eba7cf9042..ecda76ec863 100644 --- a/lib/yui/3.4.1/build/highlight-accentfold/highlight-accentfold-debug.js +++ b/lib/yui/3.5.0/build/highlight-accentfold/highlight-accentfold-debug.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -147,4 +147,4 @@ Highlight = Y.mix(Y.Highlight, { }); -}, '3.4.1' ,{requires:['highlight-base', 'text-accentfold']}); +}, '3.5.0' ,{requires:['highlight-base', 'text-accentfold']}); diff --git a/lib/yui/3.4.1/build/highlight-accentfold/highlight-accentfold-min.js b/lib/yui/3.5.0/build/highlight-accentfold/highlight-accentfold-min.js similarity index 86% rename from lib/yui/3.4.1/build/highlight-accentfold/highlight-accentfold-min.js rename to lib/yui/3.5.0/build/highlight-accentfold/highlight-accentfold-min.js index e965387ee85..7ec1f88269b 100644 --- a/lib/yui/3.4.1/build/highlight-accentfold/highlight-accentfold-min.js +++ b/lib/yui/3.5.0/build/highlight-accentfold/highlight-accentfold-min.js @@ -1,7 +1,7 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("highlight-accentfold",function(e){var d=e.Text.AccentFold,b=e.Escape,c={},a=e.mix(e.Highlight,{allFold:function(o,f,q){var n=a._TEMPLATE,g=[],l=0,m,h,k,j,p;q=e.merge({escapeHTML:false,replacer:function(r,t,s,u){var i;if(t&&!(/\s/).test(s)){return r;}i=s.length;g.push([o.substring(l,u),o.substr(u,i)]);l=u+i;}},q||c);a.all(d.fold(o),d.fold(f),q);if(l{s}',all:function(r,j,s){var p=[],o,m,n,l,q,k;if(!s){s=f;}o=s.escapeHTML!==false;q=s.startsWith?b._START_REGEX:b._REGEX;k=s.replacer||b._REPLACER;j=a(j)?j:[j];for(m=0,n=j.length;m{s}',all:function(r,j,s){var p=[],o,m,n,l,q,k;if(!s){s=f;}o=s.escapeHTML!==false;q=s.startsWith?b._START_REGEX:b._REGEX;k=s.replacer||b._REPLACER;j=a(j)?j:[j];for(m=0,n=j.length;m= 2)); + win.history.replaceState && ('onpopstate' in win || Y.UA.gecko >= 2) && + (!Y.UA.android || Y.UA.android >= 2.4)); /** * Whether or not this browser supports the window.onhashchange @@ -641,4 +643,4 @@ Y.mix(HistoryBase.prototype, { Y.HistoryBase = HistoryBase; -}, '3.4.1' ,{requires:['event-custom-complex']}); +}, '3.5.0' ,{requires:['event-custom-complex']}); diff --git a/lib/yui/3.5.0/build/history-base/history-base-min.js b/lib/yui/3.5.0/build/history-base/history-base-min.js new file mode 100644 index 00000000000..8cea62efd0b --- /dev/null +++ b/lib/yui/3.5.0/build/history-base/history-base-min.js @@ -0,0 +1,7 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add("history-base",function(b){var i=b.Lang,e=b.Object,l=YUI.namespace("Env.History"),m=b.Array,n=b.config.doc,f=n.documentMode,j=b.config.win,c={merge:true},h="change",a="add",g="replace";function d(){this._init.apply(this,arguments);}b.augment(d,b.EventTarget,null,null,{emitFacade:true,prefix:"history",preventable:false,queueable:true});if(!l._state){l._state={};}function k(o){return i.type(o)==="object";}d.NAME="historyBase";d.SRC_ADD=a;d.SRC_REPLACE=g;d.html5=!!(j.history&&j.history.pushState&&j.history.replaceState&&("onpopstate" in j||b.UA.gecko>=2)&&(!b.UA.android||b.UA.android>=2.4));d.nativeHashChange=("onhashchange" in j||"onhashchange" in n)&&(!f||f>7);b.mix(d.prototype,{_init:function(p){var o;p=this._config=p||{};this.force=!!p.force;o=this._initialState=this._initialState||p.initialState||null;this.publish(h,{broadcast:2,defaultFn:this._defChangeFn});if(o){this.replace(o);}},add:function(){var o=m(arguments,0,true);o.unshift(a);return this._change.apply(this,o);},addValue:function(p,r,o){var q={};q[p]=r;return this._change(a,q,o);},get:function(p){var q=l._state,o=k(q);if(p){return o&&e.owns(q,p)?q[p]:undefined;}else{return o?b.mix({},q,true):q;}},replace:function(){var o=m(arguments,0,true);o.unshift(g);return this._change.apply(this,o);},replaceValue:function(p,r,o){var q={};q[p]=r;return this._change(g,q,o);},_change:function(q,p,o){o=o?b.merge(c,o):c;if(o.merge&&k(p)&&k(l._state)){p=b.merge(l._state,p);}this._resolveChanges(q,p,o);return this;},_fireEvents:function(q,p,o){this.fire(h,{_options:o,changed:p.changed,newVal:p.newState,prevVal:p.prevState,removed:p.removed,src:q});e.each(p.changed,function(s,r){this._fireChangeEvent(q,r,s);},this);e.each(p.removed,function(s,r){this._fireRemoveEvent(q,r,s);},this);},_fireChangeEvent:function(q,o,p){this.fire(o+"Change",{newVal:p.newVal,prevVal:p.prevVal,src:q});},_fireRemoveEvent:function(q,o,p){this.fire(o+"Remove",{prevVal:p,src:q});},_resolveChanges:function(u,s,p){var t={},o,r=l._state,q={};s||(s={});p||(p={});if(k(s)&&k(r)){e.each(s,function(v,w){var x=r[w];if(v!==x){t[w]={newVal:v,prevVal:x};o=true;}},this);e.each(r,function(w,v){if(!e.owns(s,v)||s[v]===null){delete s[v];q[v]=w;o=true;}},this);}else{o=s!==r;}if(o||this.force){this._fireEvents(u,{changed:t,newState:s,prevState:r,removed:q},p);}},_storeState:function(p,o){l._state=o||{};},_defChangeFn:function(o){this._storeState(o.src,o.newVal,o._options);}},true);b.HistoryBase=d;},"3.5.0",{requires:["event-custom-complex"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/history-base/history-base.js b/lib/yui/3.5.0/build/history-base/history-base.js similarity index 99% rename from lib/yui/3.4.1/build/history-base/history-base.js rename to lib/yui/3.5.0/build/history-base/history-base.js index 6134e8d572f..32a7e7af2b5 100644 --- a/lib/yui/3.4.1/build/history-base/history-base.js +++ b/lib/yui/3.5.0/build/history-base/history-base.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -14,6 +14,7 @@ YUI.add('history-base', function(Y) { * application that doesn't perform full-page refreshes. * * @module history + * @main history * @since 3.2.0 */ @@ -134,7 +135,8 @@ HistoryBase.SRC_REPLACE = SRC_REPLACE; // true for 'onpopstate' in win. In order to support Gecko 2, we fall back to a // UA sniff for now. (current as of Firefox 4.0b2) HistoryBase.html5 = !!(win.history && win.history.pushState && - win.history.replaceState && ('onpopstate' in win || Y.UA.gecko >= 2)); + win.history.replaceState && ('onpopstate' in win || Y.UA.gecko >= 2) && + (!Y.UA.android || Y.UA.android >= 2.4)); /** * Whether or not this browser supports the window.onhashchange @@ -641,4 +643,4 @@ Y.mix(HistoryBase.prototype, { Y.HistoryBase = HistoryBase; -}, '3.4.1' ,{requires:['event-custom-complex']}); +}, '3.5.0' ,{requires:['event-custom-complex']}); diff --git a/lib/yui/3.4.1/build/history-hash-ie/history-hash-ie-debug.js b/lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-debug.js similarity index 95% rename from lib/yui/3.4.1/build/history-hash-ie/history-hash-ie-debug.js rename to lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-debug.js index 91ab7310eb3..bf89519efe6 100644 --- a/lib/yui/3.4.1/build/history-hash-ie/history-hash-ie-debug.js +++ b/lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-debug.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -24,9 +24,8 @@ if (Y.UA.ie && !Y.HistoryBase.nativeHashChange) { GlobalEnv = YUI.namespace('Env.HistoryHash'), HistoryHash = Y.HistoryHash, - iframe = GlobalEnv._iframe, - win = Y.config.win, - location = win.location; + iframe = GlobalEnv._iframe, + win = Y.config.win; /** * Gets the raw (not decoded) current location hash from the IE iframe, @@ -142,4 +141,4 @@ if (Y.UA.ie && !Y.HistoryBase.nativeHashChange) { } -}, '3.4.1' ,{requires:['history-hash', 'node-base']}); +}, '3.5.0' ,{requires:['history-hash', 'node-base']}); diff --git a/lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-min.js b/lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-min.js new file mode 100644 index 00000000000..ee974ed7198 --- /dev/null +++ b/lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-min.js @@ -0,0 +1,7 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add("history-hash-ie",function(f){if(f.UA.ie&&!f.HistoryBase.nativeHashChange){var b=f.Do,c=YUI.namespace("Env.HistoryHash"),a=f.HistoryHash,d=c._iframe,e=f.config.win;a.getIframeHash=function(){if(!d||!d.contentWindow){return"";}var g=a.hashPrefix,h=d.contentWindow.location.hash.substr(1);return g&&h.indexOf(g)===0?h.replace(g,""):h;};a._updateIframe=function(h,g){var i=d&&d.contentWindow&&d.contentWindow.document,j=i&&i.location;if(!i||!j){return;}if(g){j.replace(h.charAt(0)==="#"?h:"#"+h);}else{i.open().close();j.hash=h;}};b.before(a._updateIframe,a,"replaceHash",a,true);if(!d){f.on("domready",function(){var g=a.getHash();d=c._iframe=f.Node.getDOMNode(f.Node.create('';al.ATTRS={useARIA:{value:true,writeOnce:true,lazyAdd:false,setter:function(aw){var at=this.get(B),ax,Y,av,au;if(aw){at.set(aq,r);at.all("ul,li,"+M).set(aq,n);at.all((i+am(g,Z))).set(aq,g);at.all((i+aj)).each(function(ay){ax=ay;Y=ay.one(ah);if(Y){Y.set(aq,n);ax=Y.previous();}ax.set(aq,g);ax.set("aria-haspopup",true);av=ay.next();if(av){av.set(aq,r);ax=av.previous();Y=ax.one(ah);if(Y){ax=Y;}au=d.stamp(ax);if(!ax.get(F)){ax.set(F,au);}av.set("aria-labelledby",au);av.set(X,true);}});}}},autoSubmenuDisplay:{value:true,writeOnce:true},submenuShowDelay:{value:250,writeOnce:true},submenuHideDelay:{value:250,writeOnce:true},mouseOutHideDelay:{value:750,writeOnce:true}};d.extend(al,d.Plugin.Base,{_rootMenu:null,_activeItem:null,_activeMenu:null,_hasFocus:false,_blockMouseEvent:false,_currentMouseX:0,_movingToSubmenu:false,_showSubmenuTimer:null,_hideSubmenuTimer:null,_hideAllSubmenusTimer:null,_firstItem:null,initializer:function(au){var av=this,aw=this.get(B),at=[],Y;if(aw){av._rootMenu=aw;aw.all("ul:first-child").addClass(u);aw.all(H).addClass(ag);at.push(aw.on("mouseover",av._onMouseOver,av));at.push(aw.on("mouseout",av._onMouseOut,av));at.push(aw.on("mousemove",av._onMouseMove,av));at.push(aw.on(W,av._toggleSubmenuDisplay,av));at.push(d.on("key",av._toggleSubmenuDisplay,aw,"down:13",av));at.push(aw.on(ac,av._toggleSubmenuDisplay,av));at.push(aw.on("keypress",av._onKeyPress,av));at.push(aw.on(ap,av._onKeyDown,av));Y=aw.get("ownerDocument");at.push(Y.on(W,av._onDocMouseDown,av));at.push(Y.on("focus",av._onDocFocus,av));this._eventHandlers=at;av._initFocusManager();}},destructor:function(){var Y=this._eventHandlers;if(Y){d.Array.each(Y,function(at){at.detach();});this._eventHandlers=null;}this.get(B).unplug("focusManager");},_isRoot:function(Y){return this._rootMenu.compareTo(Y);},_getTopmostSubmenu:function(av){var au=this,Y=m(av),at;if(!Y){at=av;}else{if(au._isRoot(Y)){at=av;}else{at=au._getTopmostSubmenu(Y);}}return at;},_clearActiveItem:function(){var at=this,Y=at._activeItem;if(Y){Y.removeClass(E(Y));}at._activeItem=null;},_setActiveItem:function(at){var Y=this;if(at){Y._clearActiveItem();at.addClass(E(at));Y._activeItem=at;}},_focusItem:function(au){var at=this,Y,av;if(au&&at._hasFocus){Y=m(au);av=P(au);if(Y&&!Y.compareTo(at._activeMenu)){at._activeMenu=Y;at._initFocusManager();}at._focusManager.focus(av);}},_showMenu:function(av){var Y=m(av),au=av.get(s),at=au.getXY();if(this.get(j)){av.set(X,false);}if(Q(Y)){at[1]=at[1]+au.get(aa);}else{at[0]=at[0]+au.get(ad);}av.setXY(at);if(L.ie<8){if(L.ie===6&&!av.hasIFrameShim){av.appendChild(d.Node.create(al.SHIM_TEMPLATE));av.hasIFrameShim=true;}av.setStyles({height:q,width:q});av.setStyles({height:(av.get(aa)+ao),width:(av.get(ad)+ao)});}av.previous().addClass(x);av.removeClass(ag);},_hideMenu:function(av,at){var au=this,aw=av.previous(),Y;aw.removeClass(x);if(at){au._focusItem(aw);au._setActiveItem(aw);}Y=av.one((i+a));if(Y){Y.removeClass(a);}av.setStyles({left:q,top:q});av.addClass(ag);if(au.get(j)){av.set(X,true);}},_hideAllSubmenus:function(at){var Y=this;at.all(H).each(d.bind(function(au){Y._hideMenu(au);},Y));},_cancelShowSubmenuTimer:function(){var at=this,Y=at._showSubmenuTimer;if(Y){Y.cancel();at._showSubmenuTimer=null;}},_cancelHideSubmenuTimer:function(){var Y=this,at=Y._hideSubmenuTimer;if(at){at.cancel();Y._hideSubmenuTimer=null;}},_initFocusManager:function(){var av=this,ax=av._rootMenu,at=av._activeMenu||ax,aw=av._isRoot(at)?q:("#"+at.get("id")),Y=av._focusManager,au,ay,az;if(Q(at)){ay=aw+an+","+aw+o;au={next:"down:39",previous:"down:37"};}else{ay=aw+an;au={next:"down:40",previous:"down:38"};}if(!Y){ax.plug(d.Plugin.NodeFocusManager,{descendants:ay,keys:au,circular:true});Y=ax.focusManager;az="#"+ax.get("id")+H+" a,"+ah;ax.all(az).set("tabIndex",-1);Y.on(G,this._onActiveDescendantChange,Y,this);Y.after(G,this._afterActiveDescendantChange,Y,this); av._focusManager=Y;}else{Y.set(U,-1);Y.set(ae,ay);Y.set("keys",au);}},_onActiveDescendantChange:function(at,Y){if(at.src===I&&Y._activeMenu&&!Y._movingToSubmenu){Y._hideAllSubmenus(Y._activeMenu);}},_afterActiveDescendantChange:function(at,Y){var au;if(at.src===I){au=b(this.get(ae).item(at.newVal),true);Y._setActiveItem(au);}},_onDocFocus:function(aw){var av=this,Y=av._activeItem,au=aw.target,at;if(av._rootMenu.contains(au)){if(av._hasFocus){at=m(au);if(!av._activeMenu.compareTo(at)){av._activeMenu=at;av._initFocusManager();av._focusManager.set(U,au);av._setActiveItem(b(au,true));}}else{av._hasFocus=true;Y=b(au,true);if(Y){av._setActiveItem(Y);}}}else{av._clearActiveItem();av._cancelShowSubmenuTimer();av._hideAllSubmenus(av._rootMenu);av._activeMenu=av._rootMenu;av._initFocusManager();av._focusManager.set(U,0);av._hasFocus=false;}},_onMenuMouseOver:function(av,au){var at=this,Y=at._hideAllSubmenusTimer;if(Y){Y.cancel();at._hideAllSubmenusTimer=null;}at._cancelHideSubmenuTimer();if(av&&!av.compareTo(at._activeMenu)){at._activeMenu=av;if(at._hasFocus){at._initFocusManager();}}if(at._movingToSubmenu&&Q(av)){at._movingToSubmenu=false;}},_hideAndFocusLabel:function(){var au=this,at=au._activeMenu,Y;au._hideAllSubmenus(au._rootMenu);if(at){Y=au._getTopmostSubmenu(at);au._focusItem(Y.previous());}},_onMenuMouseOut:function(az,ax){var aw=this,au=aw._activeMenu,ay=ax.relatedTarget,Y=aw._activeItem,av,at;if(au&&!au.contains(ay)){av=m(au);if(av&&!av.contains(ay)){if(aw.get(t)>0){aw._cancelShowSubmenuTimer();aw._hideAllSubmenusTimer=T(aw.get(t),aw,aw._hideAndFocusLabel);}}else{if(Y){at=m(Y);if(!aw._isRoot(at)){aw._focusItem(at.previous());}}}}},_onMenuLabelMouseOver:function(av,Y){var at=this,aw=at._activeMenu,az=at._isRoot(aw),au=(at.get(V)&&az||!az),ax=at.get("submenuShowDelay"),ay;var aA=function(aB){at._cancelHideSubmenuTimer();at._cancelShowSubmenuTimer();if(!N(av)){ay=av.next();if(ay){at._hideAllSubmenus(aw);at._showSubmenuTimer=T(aB,at,at._showMenu,ay);}}};at._focusItem(av);at._setActiveItem(av);if(au){if(at._movingToSubmenu){d.message("Pause path");at._hoverTimer=T(ax,at,function(){aA(0);});}else{aA(ax);}}},_onMenuLabelMouseOut:function(aw,ay){var ax=this,at=ax._isRoot(ax._activeMenu),av=(ax.get(V)&&at||!at),az=ay.relatedTarget,au=aw.next(),Y=ax._hoverTimer;if(Y){Y.cancel();}ax._clearActiveItem();if(av){if(ax._movingToSubmenu&&!ax._showSubmenuTimer&&au){ax._hideSubmenuTimer=T(ax.get("submenuHideDelay"),ax,ax._hideMenu,au);}else{if(!ax._movingToSubmenu&&au&&(!az||(az&&!au.contains(az)&&!az.compareTo(au)))){ax._cancelShowSubmenuTimer();ax._hideMenu(au);}}}},_onMenuItemMouseOver:function(av,ax){var aw=this,au=aw._activeMenu,Y=aw._isRoot(au),at=(aw.get(V)&&Y||!Y);aw._focusItem(av);aw._setActiveItem(av);if(at&&!aw._movingToSubmenu){aw._hideAllSubmenus(au);}},_onMenuItemMouseOut:function(Y,at){this._clearActiveItem();},_onVerticalMenuKeyDown:function(Y){var at=this,ax=at._activeMenu,aC=at._rootMenu,au=Y.target,aw=false,aB=Y.keyCode,az,av,ay,aA;switch(aB){case 37:av=m(ax);if(av&&Q(av)){at._hideMenu(ax);ay=l(ax.get(s));aA=b(ay);if(aA){if(S(aA)){az=aA.next();if(az){at._showMenu(az);at._focusItem(c(az));at._setActiveItem(c(az));}else{at._focusItem(aA);at._setActiveItem(aA);}}else{at._focusItem(aA);at._setActiveItem(aA);}}}else{if(!at._isRoot(ax)){at._hideMenu(ax,true);}}aw=true;break;case 39:if(S(au)){az=au.next();if(az){at._showMenu(az);at._focusItem(c(az));at._setActiveItem(c(az));}}else{if(Q(aC)){az=at._getTopmostSubmenu(ax);ay=A(az.get(s));aA=b(ay);at._hideAllSubmenus(aC);if(aA){if(S(aA)){az=aA.next();if(az){at._showMenu(az);at._focusItem(c(az));at._setActiveItem(c(az));}else{at._focusItem(aA);at._setActiveItem(aA);}}else{at._focusItem(aA);at._setActiveItem(aA);}}}}aw=true;break;}if(aw){Y.preventDefault();}},_onHorizontalMenuKeyDown:function(ay){var ax=this,av=ax._activeMenu,at=ay.target,Y=b(at,true),aw=false,az=ay.keyCode,au;if(az===40){ax._hideAllSubmenus(av);if(S(Y)){au=Y.next();if(au){ax._showMenu(au);ax._focusItem(c(au));ax._setActiveItem(c(au));}aw=true;}}if(aw){ay.preventDefault();}},_onMouseMove:function(at){var Y=this;T(10,Y,function(){Y._currentMouseX=at.pageX;});},_onMouseOver:function(aw){var av=this,at,Y,ay,au,ax;if(av._blockMouseEvent){av._blockMouseEvent=false;}else{at=aw.target;Y=w(at,true);ay=O(at,true);ax=af(at,true);if(D(Y,at)){av._onMenuMouseOver(Y,aw);Y[R]=true;Y[e]=false;au=m(Y);if(au){au[e]=true;au[R]=false;}}if(D(ay,at)){av._onMenuLabelMouseOver(ay,aw);ay[R]=true;ay[e]=false;}if(D(ax,at)){av._onMenuItemMouseOver(ax,aw);ax[R]=true;ax[e]=false;}}},_onMouseOut:function(at){var au=this,aw=au._activeMenu,aB=false,av,ax,az,Y,ay,aA;au._movingToSubmenu=(aw&&!Q(aw)&&((at.pageX-5)>au._currentMouseX));av=at.target;ax=at.relatedTarget;az=w(av,true);Y=O(av,true);aA=af(av,true);if(h(Y,ax)){au._onMenuLabelMouseOut(Y,at);Y[e]=true;Y[R]=false;}if(h(aA,ax)){au._onMenuItemMouseOut(aA,at);aA[e]=true;aA[R]=false;}if(Y){ay=Y.next();if(ay&&ax&&(ax.compareTo(ay)||ay.contains(ax))){aB=true;}}if(h(az,ax)||aB){au._onMenuMouseOut(az,at);az[e]=true;az[R]=false;}},_toggleSubmenuDisplay:function(au){var av=this,aw=au.target,at=O(aw,true),Y=au.type,aA,az,ay,aB,aC,ax;if(at){aA=f(aw)?aw:aw.ancestor(f);if(aA){ay=aA.getAttribute("href",2);aB=ay.indexOf("#");aC=ay.length;if(aB===0&&aC>1){ax=ay.substr(1,aC);az=at.next();if(az&&(az.get(F)===ax)){if(Y===W||Y===ap){if((L.opera||L.gecko||L.ie)&&Y===ap&&!av._preventClickHandle){av._preventClickHandle=av._rootMenu.on("click",function(aD){aD.preventDefault();av._preventClickHandle.detach();av._preventClickHandle=null;});}if(Y==W){au.preventDefault();au.stopImmediatePropagation();av._hasFocus=true;}if(av._isRoot(m(aw))){if(N(at)){av._hideMenu(az);av._focusItem(at);av._setActiveItem(at);}else{av._hideAllSubmenus(av._rootMenu);av._showMenu(az);av._focusItem(c(az));av._setActiveItem(c(az));}}else{if(av._activeItem==at){av._showMenu(az);av._focusItem(c(az));av._setActiveItem(c(az));}else{if(!at._clickHandle){at._clickHandle=at.on("click",function(){av._hideAllSubmenus(av._rootMenu); -av._hasFocus=false;av._clearActiveItem();at._clickHandle.detach();at._clickHandle=null;});}}}}if(Y===ac){au.preventDefault();}}}}}},_onKeyPress:function(Y){switch(Y.keyCode){case 37:case 38:case 39:case 40:Y.preventDefault();break;}},_onKeyDown:function(ax){var aw=this,Y=aw._activeItem,at=ax.target,av=m(at),au;if(av){aw._activeMenu=av;if(Q(av)){aw._onHorizontalMenuKeyDown(ax);}else{aw._onVerticalMenuKeyDown(ax);}if(ax.keyCode===27){if(!aw._isRoot(av)){if(L.opera){T(0,aw,function(){aw._hideMenu(av,true);});}else{aw._hideMenu(av,true);}ax.stopPropagation();aw._blockMouseEvent=L.gecko?true:false;}else{if(Y){if(S(Y)&&N(Y)){au=Y.next();if(au){aw._hideMenu(au);}}else{aw._focusManager.blur();aw._clearActiveItem();aw._hasFocus=false;}}}}}},_onDocMouseDown:function(av){var au=this,at=au._rootMenu,Y=av.target;if(!(at.compareTo(Y)||at.contains(Y))){au._hideAllSubmenus(at);if(L.webkit){au._hasFocus=false;au._clearActiveItem();}}}});d.namespace("Plugin");d.Plugin.NodeMenuNav=al;},"3.4.1",{requires:["node","classnamemanager","node-focusmanager","plugin"]}); \ No newline at end of file +av._hasFocus=false;av._clearActiveItem();at._clickHandle.detach();at._clickHandle=null;});}}}}if(Y===ac){au.preventDefault();}}}}}},_onKeyPress:function(Y){switch(Y.keyCode){case 37:case 38:case 39:case 40:Y.preventDefault();break;}},_onKeyDown:function(ax){var aw=this,Y=aw._activeItem,at=ax.target,av=m(at),au;if(av){aw._activeMenu=av;if(Q(av)){aw._onHorizontalMenuKeyDown(ax);}else{aw._onVerticalMenuKeyDown(ax);}if(ax.keyCode===27){if(!aw._isRoot(av)){if(L.opera){T(0,aw,function(){aw._hideMenu(av,true);});}else{aw._hideMenu(av,true);}ax.stopPropagation();aw._blockMouseEvent=L.gecko?true:false;}else{if(Y){if(S(Y)&&N(Y)){au=Y.next();if(au){aw._hideMenu(au);}}else{aw._focusManager.blur();aw._clearActiveItem();aw._hasFocus=false;}}}}}},_onDocMouseDown:function(av){var au=this,at=au._rootMenu,Y=av.target;if(!(at.compareTo(Y)||at.contains(Y))){au._hideAllSubmenus(at);if(L.webkit){au._hasFocus=false;au._clearActiveItem();}}}});d.namespace("Plugin");d.Plugin.NodeMenuNav=al;},"3.5.0",{requires:["node","classnamemanager","node-focusmanager","plugin"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/node-menunav/node-menunav.js b/lib/yui/3.5.0/build/node-menunav/node-menunav.js similarity index 99% rename from lib/yui/3.4.1/build/node-menunav/node-menunav.js rename to lib/yui/3.5.0/build/node-menunav/node-menunav.js index 37e0d6e8cf2..e72c8a235b3 100644 --- a/lib/yui/3.4.1/build/node-menunav/node-menunav.js +++ b/lib/yui/3.5.0/build/node-menunav/node-menunav.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -2187,4 +2187,4 @@ Y.namespace('Plugin'); Y.Plugin.NodeMenuNav = NodeMenuNav; -}, '3.4.1' ,{requires:['node', 'classnamemanager', 'node-focusmanager', 'plugin']}); +}, '3.5.0' ,{requires:['node', 'classnamemanager', 'node-focusmanager', 'plugin']}); diff --git a/lib/yui/3.4.1/build/node-pluginhost/node-pluginhost-debug.js b/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-debug.js similarity index 93% rename from lib/yui/3.4.1/build/node-pluginhost/node-pluginhost-debug.js rename to lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-debug.js index 70c0dbd28e7..b9dc4885418 100644 --- a/lib/yui/3.4.1/build/node-pluginhost/node-pluginhost-debug.js +++ b/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-debug.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -62,4 +62,4 @@ Y.NodeList.prototype.unplug = function() { }; -}, '3.4.1' ,{requires:['node-base', 'pluginhost']}); +}, '3.5.0' ,{requires:['node-base', 'pluginhost']}); diff --git a/lib/yui/3.4.1/build/node-pluginhost/node-pluginhost-min.js b/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-min.js similarity index 83% rename from lib/yui/3.4.1/build/node-pluginhost/node-pluginhost-min.js rename to lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-min.js index d2d063efe77..8c27f7abfed 100644 --- a/lib/yui/3.4.1/build/node-pluginhost/node-pluginhost-min.js +++ b/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-min.js @@ -1,7 +1,7 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("node-pluginhost",function(a){a.Node.plug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.plug.apply(a.Base,b);return a.Node;};a.Node.unplug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.unplug.apply(a.Base,b);return a.Node;};a.mix(a.Node,a.Plugin.Host,false,null,1);a.NodeList.prototype.plug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.plug.apply(a.one(c),b);});};a.NodeList.prototype.unplug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.unplug.apply(a.one(c),b);});};},"3.4.1",{requires:["node-base","pluginhost"]}); \ No newline at end of file +YUI.add("node-pluginhost",function(a){a.Node.plug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.plug.apply(a.Base,b);return a.Node;};a.Node.unplug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.unplug.apply(a.Base,b);return a.Node;};a.mix(a.Node,a.Plugin.Host,false,null,1);a.NodeList.prototype.plug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.plug.apply(a.one(c),b);});};a.NodeList.prototype.unplug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.unplug.apply(a.one(c),b);});};},"3.5.0",{requires:["node-base","pluginhost"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/node-pluginhost/node-pluginhost.js b/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost.js similarity index 93% rename from lib/yui/3.4.1/build/node-pluginhost/node-pluginhost.js rename to lib/yui/3.5.0/build/node-pluginhost/node-pluginhost.js index 70c0dbd28e7..b9dc4885418 100644 --- a/lib/yui/3.4.1/build/node-pluginhost/node-pluginhost.js +++ b/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -62,4 +62,4 @@ Y.NodeList.prototype.unplug = function() { }; -}, '3.4.1' ,{requires:['node-base', 'pluginhost']}); +}, '3.5.0' ,{requires:['node-base', 'pluginhost']}); diff --git a/lib/yui/3.4.1/build/node-screen/node-screen-debug.js b/lib/yui/3.5.0/build/node-screen/node-screen-debug.js similarity index 98% rename from lib/yui/3.4.1/build/node-screen/node-screen-debug.js rename to lib/yui/3.5.0/build/node-screen/node-screen-debug.js index 32803d06e64..0010a5683bc 100644 --- a/lib/yui/3.4.1/build/node-screen/node-screen-debug.js +++ b/lib/yui/3.5.0/build/node-screen/node-screen-debug.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -243,4 +243,4 @@ Y.Node.prototype.inRegion = function(node2, all, altRegion) { }; -}, '3.4.1' ,{requires:['node-base', 'dom-screen']}); +}, '3.5.0' ,{requires:['node-base', 'dom-screen']}); diff --git a/lib/yui/3.4.1/build/node-screen/node-screen-min.js b/lib/yui/3.5.0/build/node-screen/node-screen-min.js similarity index 93% rename from lib/yui/3.4.1/build/node-screen/node-screen-min.js rename to lib/yui/3.5.0/build/node-screen/node-screen-min.js index 8ff56c5b88a..b7d3e3e8986 100644 --- a/lib/yui/3.4.1/build/node-screen/node-screen-min.js +++ b/lib/yui/3.5.0/build/node-screen/node-screen-min.js @@ -1,7 +1,7 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("node-screen",function(a){a.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(b){a.Node.ATTRS[b]={getter:function(){var c=Array.prototype.slice.call(arguments);c.unshift(a.Node.getDOMNode(this));return a.DOM[b].apply(this,c);}};});a.Node.ATTRS.scrollLeft={getter:function(){var b=a.Node.getDOMNode(this);return("scrollLeft" in b)?b.scrollLeft:a.DOM.docScrollX(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollLeft" in b){b.scrollLeft=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(c,a.DOM.docScrollY(b));}}}else{}}};a.Node.ATTRS.scrollTop={getter:function(){var b=a.Node.getDOMNode(this);return("scrollTop" in b)?b.scrollTop:a.DOM.docScrollY(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollTop" in b){b.scrollTop=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(a.DOM.docScrollX(b),c);}}}else{}}};a.Node.importMethod(a.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]);a.Node.ATTRS.region={getter:function(){var b=this.getDOMNode(),c;if(b&&!b.tagName){if(b.nodeType===9){b=b.documentElement;}}if(a.DOM.isWindow(b)){c=a.DOM.viewportRegion(b);}else{c=a.DOM.region(b);}return c;}};a.Node.ATTRS.viewportRegion={getter:function(){return a.DOM.viewportRegion(a.Node.getDOMNode(this));}};a.Node.importMethod(a.DOM,"inViewportRegion");a.Node.prototype.intersect=function(b,d){var c=a.Node.getDOMNode(this);if(a.instanceOf(b,a.Node)){b=a.Node.getDOMNode(b);}return a.DOM.intersect(c,b,d);};a.Node.prototype.inRegion=function(b,d,e){var c=a.Node.getDOMNode(this);if(a.instanceOf(b,a.Node)){b=a.Node.getDOMNode(b);}return a.DOM.inRegion(c,b,d,e);};},"3.4.1",{requires:["node-base","dom-screen"]}); \ No newline at end of file +YUI.add("node-screen",function(a){a.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(b){a.Node.ATTRS[b]={getter:function(){var c=Array.prototype.slice.call(arguments);c.unshift(a.Node.getDOMNode(this));return a.DOM[b].apply(this,c);}};});a.Node.ATTRS.scrollLeft={getter:function(){var b=a.Node.getDOMNode(this);return("scrollLeft" in b)?b.scrollLeft:a.DOM.docScrollX(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollLeft" in b){b.scrollLeft=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(c,a.DOM.docScrollY(b));}}}else{}}};a.Node.ATTRS.scrollTop={getter:function(){var b=a.Node.getDOMNode(this);return("scrollTop" in b)?b.scrollTop:a.DOM.docScrollY(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollTop" in b){b.scrollTop=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(a.DOM.docScrollX(b),c);}}}else{}}};a.Node.importMethod(a.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]);a.Node.ATTRS.region={getter:function(){var b=this.getDOMNode(),c;if(b&&!b.tagName){if(b.nodeType===9){b=b.documentElement;}}if(a.DOM.isWindow(b)){c=a.DOM.viewportRegion(b);}else{c=a.DOM.region(b);}return c;}};a.Node.ATTRS.viewportRegion={getter:function(){return a.DOM.viewportRegion(a.Node.getDOMNode(this));}};a.Node.importMethod(a.DOM,"inViewportRegion");a.Node.prototype.intersect=function(b,d){var c=a.Node.getDOMNode(this);if(a.instanceOf(b,a.Node)){b=a.Node.getDOMNode(b);}return a.DOM.intersect(c,b,d);};a.Node.prototype.inRegion=function(b,d,e){var c=a.Node.getDOMNode(this);if(a.instanceOf(b,a.Node)){b=a.Node.getDOMNode(b);}return a.DOM.inRegion(c,b,d,e);};},"3.5.0",{requires:["node-base","dom-screen"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/node-screen/node-screen.js b/lib/yui/3.5.0/build/node-screen/node-screen.js similarity index 98% rename from lib/yui/3.4.1/build/node-screen/node-screen.js rename to lib/yui/3.5.0/build/node-screen/node-screen.js index 3236303883c..e307c317aa4 100644 --- a/lib/yui/3.4.1/build/node-screen/node-screen.js +++ b/lib/yui/3.5.0/build/node-screen/node-screen.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -241,4 +241,4 @@ Y.Node.prototype.inRegion = function(node2, all, altRegion) { }; -}, '3.4.1' ,{requires:['node-base', 'dom-screen']}); +}, '3.5.0' ,{requires:['node-base', 'dom-screen']}); diff --git a/lib/yui/3.4.1/build/node-style/node-style-debug.js b/lib/yui/3.5.0/build/node-style/node-style-debug.js similarity index 58% rename from lib/yui/3.4.1/build/node-style/node-style-debug.js rename to lib/yui/3.5.0/build/node-style/node-style-debug.js index 3d21712dd50..4bbe04e25f0 100644 --- a/lib/yui/3.4.1/build/node-style/node-style-debug.js +++ b/lib/yui/3.5.0/build/node-style/node-style-debug.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -13,47 +13,60 @@ YUI.add('node-style', function(Y) { * @submodule node-style */ -var methods = [ +Y.mix(Y.Node.prototype, { /** - * Returns the style's current value. - * @method getStyle - * @for Node - * @param {String} attr The style attribute to retrieve. - * @return {String} The current value of the style property for the element. - */ - 'getStyle', - - /** - * Returns the computed value for the given style property. - * Use CSS case (e.g. 'background-color') for multi-word properties. - - * @method getComputedStyle - * @param {String} attr The style attribute to retrieve. - * @return {String} The computed value of the style property for the element. - */ - 'getComputedStyle', - - /** - * Sets a style property of the node. Use CSS case (e.g. 'background-color') - * for multi-word properties. + * Sets a style property of the node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method setStyle * @param {String} attr The style attribute to set. * @param {String|Number} val The value. * @chainable */ - 'setStyle', + setStyle: function(attr, val) { + Y.DOM.setStyle(this._node, attr, val); + return this; + }, /** * Sets multiple style properties on the node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method setStyles * @param {Object} hash An object literal of property:value pairs. * @chainable */ - 'setStyles' -]; -Y.Node.importMethod(Y.DOM, methods); + setStyles: function(hash) { + Y.DOM.setStyles(this._node, hash); + return this; + }, + + /** + * Returns the style's current value. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. + * @method getStyle + * @for Node + * @param {String} attr The style attribute to retrieve. + * @return {String} The current value of the style property for the element. + */ + + getStyle: function(attr) { + return Y.DOM.getStyle(this._node, attr); + }, + + /** + * Returns the computed value for the given style property. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. + * @method getComputedStyle + * @param {String} attr The style attribute to retrieve. + * @return {String} The computed value of the style property for the element. + */ + getComputedStyle: function(attr) { + return Y.DOM.getComputedStyle(this._node, attr); + } +}); + /** * Returns an array of values for each node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method getStyle * @for NodeList * @see Node.getStyle @@ -63,6 +76,7 @@ Y.Node.importMethod(Y.DOM, methods); /** * Returns an array of the computed value for each node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method getComputedStyle * @see Node.getComputedStyle * @param {String} attr The style attribute to retrieve. @@ -71,6 +85,7 @@ Y.Node.importMethod(Y.DOM, methods); /** * Sets a style property on each node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method setStyle * @see Node.setStyle * @param {String} attr The style attribute to set. @@ -80,13 +95,18 @@ Y.Node.importMethod(Y.DOM, methods); /** * Sets multiple style properties on each node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method setStyles * @see Node.setStyles * @param {Object} hash An object literal of property:value pairs. * @chainable */ -Y.NodeList.importMethod(Y.Node.prototype, methods); + +// These are broken out to handle undefined return (avoid false positive for +// chainable) + +Y.NodeList.importMethod(Y.Node.prototype, ['getStyle', 'getComputedStyle', 'setStyle', 'setStyles']); })(Y); -}, '3.4.1' ,{requires:['dom-style', 'node-base']}); +}, '3.5.0' ,{requires:['dom-style', 'node-base']}); diff --git a/lib/yui/3.5.0/build/node-style/node-style-min.js b/lib/yui/3.5.0/build/node-style/node-style-min.js new file mode 100644 index 00000000000..938bdb936df --- /dev/null +++ b/lib/yui/3.5.0/build/node-style/node-style-min.js @@ -0,0 +1,7 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add("node-style",function(a){(function(b){b.mix(b.Node.prototype,{setStyle:function(c,d){b.DOM.setStyle(this._node,c,d);return this;},setStyles:function(c){b.DOM.setStyles(this._node,c);return this;},getStyle:function(c){return b.DOM.getStyle(this._node,c);},getComputedStyle:function(c){return b.DOM.getComputedStyle(this._node,c);}});b.NodeList.importMethod(b.Node.prototype,["getStyle","getComputedStyle","setStyle","setStyles"]);})(a);},"3.5.0",{requires:["dom-style","node-base"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/node-style/node-style.js b/lib/yui/3.5.0/build/node-style/node-style.js similarity index 58% rename from lib/yui/3.4.1/build/node-style/node-style.js rename to lib/yui/3.5.0/build/node-style/node-style.js index 3d21712dd50..4bbe04e25f0 100644 --- a/lib/yui/3.4.1/build/node-style/node-style.js +++ b/lib/yui/3.5.0/build/node-style/node-style.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -13,47 +13,60 @@ YUI.add('node-style', function(Y) { * @submodule node-style */ -var methods = [ +Y.mix(Y.Node.prototype, { /** - * Returns the style's current value. - * @method getStyle - * @for Node - * @param {String} attr The style attribute to retrieve. - * @return {String} The current value of the style property for the element. - */ - 'getStyle', - - /** - * Returns the computed value for the given style property. - * Use CSS case (e.g. 'background-color') for multi-word properties. - - * @method getComputedStyle - * @param {String} attr The style attribute to retrieve. - * @return {String} The computed value of the style property for the element. - */ - 'getComputedStyle', - - /** - * Sets a style property of the node. Use CSS case (e.g. 'background-color') - * for multi-word properties. + * Sets a style property of the node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method setStyle * @param {String} attr The style attribute to set. * @param {String|Number} val The value. * @chainable */ - 'setStyle', + setStyle: function(attr, val) { + Y.DOM.setStyle(this._node, attr, val); + return this; + }, /** * Sets multiple style properties on the node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method setStyles * @param {Object} hash An object literal of property:value pairs. * @chainable */ - 'setStyles' -]; -Y.Node.importMethod(Y.DOM, methods); + setStyles: function(hash) { + Y.DOM.setStyles(this._node, hash); + return this; + }, + + /** + * Returns the style's current value. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. + * @method getStyle + * @for Node + * @param {String} attr The style attribute to retrieve. + * @return {String} The current value of the style property for the element. + */ + + getStyle: function(attr) { + return Y.DOM.getStyle(this._node, attr); + }, + + /** + * Returns the computed value for the given style property. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. + * @method getComputedStyle + * @param {String} attr The style attribute to retrieve. + * @return {String} The computed value of the style property for the element. + */ + getComputedStyle: function(attr) { + return Y.DOM.getComputedStyle(this._node, attr); + } +}); + /** * Returns an array of values for each node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method getStyle * @for NodeList * @see Node.getStyle @@ -63,6 +76,7 @@ Y.Node.importMethod(Y.DOM, methods); /** * Returns an array of the computed value for each node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method getComputedStyle * @see Node.getComputedStyle * @param {String} attr The style attribute to retrieve. @@ -71,6 +85,7 @@ Y.Node.importMethod(Y.DOM, methods); /** * Sets a style property on each node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method setStyle * @see Node.setStyle * @param {String} attr The style attribute to set. @@ -80,13 +95,18 @@ Y.Node.importMethod(Y.DOM, methods); /** * Sets multiple style properties on each node. + * Use camelCase (e.g. 'backgroundColor') for multi-word properties. * @method setStyles * @see Node.setStyles * @param {Object} hash An object literal of property:value pairs. * @chainable */ -Y.NodeList.importMethod(Y.Node.prototype, methods); + +// These are broken out to handle undefined return (avoid false positive for +// chainable) + +Y.NodeList.importMethod(Y.Node.prototype, ['getStyle', 'getComputedStyle', 'setStyle', 'setStyles']); })(Y); -}, '3.4.1' ,{requires:['dom-style', 'node-base']}); +}, '3.5.0' ,{requires:['dom-style', 'node-base']}); diff --git a/lib/yui/3.4.1/build/oop/oop-debug.js b/lib/yui/3.5.0/build/oop/oop-debug.js similarity index 93% rename from lib/yui/3.4.1/build/oop/oop-debug.js rename to lib/yui/3.5.0/build/oop/oop-debug.js index dccecb7a7bb..cb298c3dd5c 100644 --- a/lib/yui/3.4.1/build/oop/oop-debug.js +++ b/lib/yui/3.5.0/build/oop/oop-debug.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -143,18 +143,19 @@ Y.augment = function (receiver, supplier, overwrite, whitelist, args) { }; /** - * Applies object properties from the supplier to the receiver. If - * the target has the property, and the property is an object, the target - * object will be augmented with the supplier's value. If the property - * is an array, the suppliers value will be appended to the target. + * Copies object properties from the supplier to the receiver. If the target has + * the property, and the property is an object, the target object will be + * augmented with the supplier's value. + * * @method aggregate - * @param {function} r the object to receive the augmentation. - * @param {function} s the object that supplies the properties to augment. - * @param {boolean} ov if true, properties already on the receiver - * will be overwritten if found on the supplier. - * @param {string[]} wl a whitelist. If supplied, only properties in - * this list will be applied to the receiver. - * @return {object} the extended object. + * @param {Object} receiver Object to receive the augmentation. + * @param {Object} supplier Object that supplies the properties with which to + * augment the receiver. + * @param {Boolean} [overwrite=false] If `true`, properties already on the receiver + * will be overwritten if found on the supplier. + * @param {String[]} [whitelist] Whitelist. If supplied, only properties in this + * list will be applied to the receiver. + * @return {Object} Augmented object. */ Y.aggregate = function(r, s, ov, wl) { return Y.mix(r, s, ov, wl, 0, true); @@ -392,4 +393,4 @@ Y.rbind = function(f, c) { }; -}, '3.4.1' ,{requires:['yui-base']}); +}, '3.5.0' ,{requires:['yui-base']}); diff --git a/lib/yui/3.4.1/build/oop/oop-min.js b/lib/yui/3.5.0/build/oop/oop-min.js similarity index 95% rename from lib/yui/3.4.1/build/oop/oop-min.js rename to lib/yui/3.5.0/build/oop/oop-min.js index 49ca9743081..ba0848730d7 100644 --- a/lib/yui/3.4.1/build/oop/oop-min.js +++ b/lib/yui/3.5.0/build/oop/oop-min.js @@ -1,7 +1,7 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("oop",function(h){var d=h.Lang,c=h.Array,b=Object.prototype,a="_~yuim~_",e=b.hasOwnProperty,g=b.toString;function f(l,k,m,i,j){if(l&&l[j]&&l!==h){return l[j].call(l,k,m);}else{switch(c.test(l)){case 1:return c[j](l,k,m);case 2:return c[j](h.Array(l,0,true),k,m);default:return h.Object[j](l,k,m,i);}}}h.augment=function(i,k,r,o,s){var n=i.prototype,m=n&&k,q=k.prototype,v=n||i,j,u,p,l,t;s=s?h.Array(s):[];if(m){u={};p={};l={};j=function(x,w){if(r||!(w in n)){if(g.call(x)==="[object Function]"){l[w]=x;u[w]=p[w]=function(){return t(this,x,arguments);};}else{u[w]=x;}}};t=function(w,y,z){for(var x in l){if(e.call(l,x)&&w[x]===p[x]){w[x]=l[x];}}k.apply(w,s);return y.apply(w,z);};if(o){h.Array.each(o,function(w){if(w in q){j(q[w],w);}});}else{h.Object.each(q,j,null,true);}}h.mix(v,u||q,r,o);if(!m){k.apply(v,s);}return i;};h.aggregate=function(k,j,i,l){return h.mix(k,j,i,l,0,true);};h.extend=function(l,k,i,n){if(!k||!l){h.error("extend failed, verify dependencies");}var m=k.prototype,j=h.Object(m);l.prototype=j;j.constructor=l;l.superclass=m;if(k!=Object&&m.constructor==b.constructor){m.constructor=k;}if(i){h.mix(j,i,true);}if(n){h.mix(l,n,true);}return l;};h.each=function(k,j,l,i){return f(k,j,l,i,"each");};h.some=function(k,j,l,i){return f(k,j,l,i,"some");};h.clone=function(l,m,r,s,k,q){if(!d.isObject(l)){return l;}if(h.instanceOf(l,YUI)){return l;}var n,j=q||{},i,p=h.each;switch(d.type(l)){case"date":return new Date(l);case"regexp":return l;case"function":return l;case"array":n=[];break;default:if(l[a]){return j[l[a]];}i=h.guid();n=(m)?{}:h.Object(l);l[a]=i;j[i]=l;}if(!l.addEventListener&&!l.attachEvent){p(l,function(t,o){if((o||o===0)&&(!r||(r.call(s||this,t,o,this,l)!==false))){if(o!==a){if(o=="prototype"){}else{this[o]=h.clone(t,m,r,s,k||l,j);}}}},n);}if(!q){h.Object.each(j,function(t,o){if(t[a]){try{delete t[a];}catch(u){t[a]=null;}}},this);j=null;}return n;};h.bind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?j.concat(h.Array(arguments,0,true)):arguments;return m.apply(k||m,l);};};h.rbind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?h.Array(arguments,0,true).concat(j):arguments;return m.apply(k||m,l);};};},"3.4.1",{requires:["yui-base"]}); \ No newline at end of file +YUI.add("oop",function(h){var d=h.Lang,c=h.Array,b=Object.prototype,a="_~yuim~_",e=b.hasOwnProperty,g=b.toString;function f(l,k,m,i,j){if(l&&l[j]&&l!==h){return l[j].call(l,k,m);}else{switch(c.test(l)){case 1:return c[j](l,k,m);case 2:return c[j](h.Array(l,0,true),k,m);default:return h.Object[j](l,k,m,i);}}}h.augment=function(i,k,r,o,s){var n=i.prototype,m=n&&k,q=k.prototype,v=n||i,j,u,p,l,t;s=s?h.Array(s):[];if(m){u={};p={};l={};j=function(x,w){if(r||!(w in n)){if(g.call(x)==="[object Function]"){l[w]=x;u[w]=p[w]=function(){return t(this,x,arguments);};}else{u[w]=x;}}};t=function(w,y,z){for(var x in l){if(e.call(l,x)&&w[x]===p[x]){w[x]=l[x];}}k.apply(w,s);return y.apply(w,z);};if(o){h.Array.each(o,function(w){if(w in q){j(q[w],w);}});}else{h.Object.each(q,j,null,true);}}h.mix(v,u||q,r,o);if(!m){k.apply(v,s);}return i;};h.aggregate=function(k,j,i,l){return h.mix(k,j,i,l,0,true);};h.extend=function(l,k,i,n){if(!k||!l){h.error("extend failed, verify dependencies");}var m=k.prototype,j=h.Object(m);l.prototype=j;j.constructor=l;l.superclass=m;if(k!=Object&&m.constructor==b.constructor){m.constructor=k;}if(i){h.mix(j,i,true);}if(n){h.mix(l,n,true);}return l;};h.each=function(k,j,l,i){return f(k,j,l,i,"each");};h.some=function(k,j,l,i){return f(k,j,l,i,"some");};h.clone=function(l,m,r,s,k,q){if(!d.isObject(l)){return l;}if(h.instanceOf(l,YUI)){return l;}var n,j=q||{},i,p=h.each;switch(d.type(l)){case"date":return new Date(l);case"regexp":return l;case"function":return l;case"array":n=[];break;default:if(l[a]){return j[l[a]];}i=h.guid();n=(m)?{}:h.Object(l);l[a]=i;j[i]=l;}if(!l.addEventListener&&!l.attachEvent){p(l,function(t,o){if((o||o===0)&&(!r||(r.call(s||this,t,o,this,l)!==false))){if(o!==a){if(o=="prototype"){}else{this[o]=h.clone(t,m,r,s,k||l,j);}}}},n);}if(!q){h.Object.each(j,function(t,o){if(t[a]){try{delete t[a];}catch(u){t[a]=null;}}},this);j=null;}return n;};h.bind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?j.concat(h.Array(arguments,0,true)):arguments;return m.apply(k||m,l);};};h.rbind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?h.Array(arguments,0,true).concat(j):arguments;return m.apply(k||m,l);};};},"3.5.0",{requires:["yui-base"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/oop/oop.js b/lib/yui/3.5.0/build/oop/oop.js similarity index 93% rename from lib/yui/3.4.1/build/oop/oop.js rename to lib/yui/3.5.0/build/oop/oop.js index dccecb7a7bb..cb298c3dd5c 100644 --- a/lib/yui/3.4.1/build/oop/oop.js +++ b/lib/yui/3.5.0/build/oop/oop.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -143,18 +143,19 @@ Y.augment = function (receiver, supplier, overwrite, whitelist, args) { }; /** - * Applies object properties from the supplier to the receiver. If - * the target has the property, and the property is an object, the target - * object will be augmented with the supplier's value. If the property - * is an array, the suppliers value will be appended to the target. + * Copies object properties from the supplier to the receiver. If the target has + * the property, and the property is an object, the target object will be + * augmented with the supplier's value. + * * @method aggregate - * @param {function} r the object to receive the augmentation. - * @param {function} s the object that supplies the properties to augment. - * @param {boolean} ov if true, properties already on the receiver - * will be overwritten if found on the supplier. - * @param {string[]} wl a whitelist. If supplied, only properties in - * this list will be applied to the receiver. - * @return {object} the extended object. + * @param {Object} receiver Object to receive the augmentation. + * @param {Object} supplier Object that supplies the properties with which to + * augment the receiver. + * @param {Boolean} [overwrite=false] If `true`, properties already on the receiver + * will be overwritten if found on the supplier. + * @param {String[]} [whitelist] Whitelist. If supplied, only properties in this + * list will be applied to the receiver. + * @return {Object} Augmented object. */ Y.aggregate = function(r, s, ov, wl) { return Y.mix(r, s, ov, wl, 0, true); @@ -392,4 +393,4 @@ Y.rbind = function(f, c) { }; -}, '3.4.1' ,{requires:['yui-base']}); +}, '3.5.0' ,{requires:['yui-base']}); diff --git a/lib/yui/3.4.1/build/overlay/assets/overlay-core.css b/lib/yui/3.5.0/build/overlay/assets/overlay-core.css similarity index 77% rename from lib/yui/3.4.1/build/overlay/assets/overlay-core.css rename to lib/yui/3.5.0/build/overlay/assets/overlay-core.css index b219b79756f..64f7d3ba19a 100644 --- a/lib/yui/3.4.1/build/overlay/assets/overlay-core.css +++ b/lib/yui/3.5.0/build/overlay/assets/overlay-core.css @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ diff --git a/lib/yui/3.4.1/build/overlay/assets/skins/night/overlay-skin.css b/lib/yui/3.5.0/build/overlay/assets/skins/night/overlay-skin.css similarity index 98% rename from lib/yui/3.4.1/build/overlay/assets/skins/night/overlay-skin.css rename to lib/yui/3.5.0/build/overlay/assets/skins/night/overlay-skin.css index 24aa008f6f1..3dd3f2db83a 100644 --- a/lib/yui/3.4.1/build/overlay/assets/skins/night/overlay-skin.css +++ b/lib/yui/3.5.0/build/overlay/assets/skins/night/overlay-skin.css @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ diff --git a/lib/yui/3.4.1/build/overlay/assets/skins/night/overlay.css b/lib/yui/3.5.0/build/overlay/assets/skins/night/overlay.css similarity index 95% rename from lib/yui/3.4.1/build/overlay/assets/skins/night/overlay.css rename to lib/yui/3.5.0/build/overlay/assets/skins/night/overlay.css index d38f8e3df24..b52284a30b4 100644 --- a/lib/yui/3.4.1/build/overlay/assets/skins/night/overlay.css +++ b/lib/yui/3.5.0/build/overlay/assets/skins/night/overlay.css @@ -1,7 +1,7 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -.yui3-overlay{position:absolute}.yui3-overlay-hidden{visibility:hidden}.yui3-widget-tmp-forcesize .yui3-overlay-content{overflow:hidden!important}.yui3-skin-night{background-color:#000;font-family:HelveticaNeue,arial,helvetica,clean,sans-serif;color:#fff}.yui3-skin-night .yui3-overlay-content ul,ol,li{margin:0;padding:0;list-style:none;zoom:1}.yui3-skin-night .yui3-overlay-content li{*float:left}.yui3-skin-night .yui3-overlay-content{background-color:#6d6e6e;-moz-box-shadow:0 0 17px rgba(0,0,0,0.58);-webkit-box-shadow:0 0 17px rgba(0,0,0,0.58);box-shadow:0 0 17px rgba(0,0,0,0.58);-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}.yui3-skin-night .yui3-overlay-content .yui3-widget-hd{background-color:#6d6e6e;-moz-border-radius:7px 7px 0 0;-webkit-border-radius:7px 7px 0 0;border-radius:7px 7px 0 0;color:#fff;margin:0;padding:20px 22px 0;font-size:147%}.yui3-skin-night .yui3-overlay-content .yui3-widget-bd{padding:11px 22px 17px;font-size:92%}.yui3-skin-night .yui3-overlay .yui3-widget-bd li{margin:.04em}.yui3-skin-night .yui3-overlay-content .yui3-widget-ft{background-color:#575858;border-top:solid 1px #494a4a;-moz-border-radius:0 0 7px 7px;-webkit-border-radius:0 0 7px 7px;border-radius:0 0 7px 7px;padding:17px 25px 20px;text-align:center}.yui3-skin-night .yui3-overlay-content .yui3-widget-ft li{margin:3px;display:inline-block}.yui3-skin-night .yui3-overlay-content .yui3-widget-ft li a{border:solid 1px #1b1c1c;border-radius:6px;-moz-box-shadow:0 1px #677478;-webkit-box-shadow:0 1px #677478;box-shadow:0 1px #677478;text-shadow:0 -1px 0 rgba(0,0,0,0.7);font-size:85%;text-align:center;color:#fff;padding:6px 28px;background-color:#2b2d2d;background:-moz-linear-gradient(0% 100% 90deg,#242526 0,#3b3c3d 96%,#2c2d2f 100%);background:-webkit-gradient(linear,left bottom,left top,from(#242526),color-stop(0.96,#3b3c3d),to(#2c2d2f))}.yui3-skin-night .yui3-overlay .yui3-widget-ft li:first-child{margin-left:0}.yui3-skin-night .yui3-overlay .yui3-widget-ft li:last-child{margin-right:0}.yui3-skin-night .yui3-overlay .yui3-widget-ft li:last-child a{border:solid 1px #520e00;-moz-box-shadow:0 1px #7d5d57;-webkit-box-shadow:0 1px #7d5d57;box-shadow:0 1px #7d5d57;background-color:#901704;background:-moz-linear-gradient(100% 0 270deg,#ab1c0b,#7b1400);background:-webkit-gradient(linear,left top,left bottom,from(#ab1c0b),to(#7b1400));margin-right:0}#yui3-widget-mask{background-color:#000;opacity:.5} +.yui3-overlay{position:absolute}.yui3-overlay-hidden{visibility:hidden}.yui3-widget-tmp-forcesize .yui3-overlay-content{overflow:hidden!important}.yui3-skin-night{background-color:#000;font-family:HelveticaNeue,arial,helvetica,clean,sans-serif;color:#fff}.yui3-skin-night .yui3-overlay-content ul,ol,li{margin:0;padding:0;list-style:none;zoom:1}.yui3-skin-night .yui3-overlay-content li{*float:left}.yui3-skin-night .yui3-overlay-content{background-color:#6d6e6e;-moz-box-shadow:0 0 17px rgba(0,0,0,0.58);-webkit-box-shadow:0 0 17px rgba(0,0,0,0.58);box-shadow:0 0 17px rgba(0,0,0,0.58);-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}.yui3-skin-night .yui3-overlay-content .yui3-widget-hd{background-color:#6d6e6e;-moz-border-radius:7px 7px 0 0;-webkit-border-radius:7px 7px 0 0;border-radius:7px 7px 0 0;color:#fff;margin:0;padding:20px 22px 0;font-size:147%}.yui3-skin-night .yui3-overlay-content .yui3-widget-bd{padding:11px 22px 17px;font-size:92%}.yui3-skin-night .yui3-overlay .yui3-widget-bd li{margin:.04em}.yui3-skin-night .yui3-overlay-content .yui3-widget-ft{background-color:#575858;border-top:solid 1px #494a4a;-moz-border-radius:0 0 7px 7px;-webkit-border-radius:0 0 7px 7px;border-radius:0 0 7px 7px;padding:17px 25px 20px;text-align:center}.yui3-skin-night .yui3-overlay-content .yui3-widget-ft li{margin:3px;display:inline-block}.yui3-skin-night .yui3-overlay-content .yui3-widget-ft li a{border:solid 1px #1b1c1c;border-radius:6px;-moz-box-shadow:0 1px #677478;-webkit-box-shadow:0 1px #677478;box-shadow:0 1px #677478;text-shadow:0 -1px 0 rgba(0,0,0,0.7);font-size:85%;text-align:center;color:#fff;padding:6px 28px;background-color:#2b2d2d;background:-moz-linear-gradient(0% 100% 90deg,#242526 0,#3b3c3d 96%,#2c2d2f 100%);background:-webkit-gradient(linear,left bottom,left top,from(#242526),color-stop(0.96,#3b3c3d),to(#2c2d2f))}.yui3-skin-night .yui3-overlay .yui3-widget-ft li:first-child{margin-left:0}.yui3-skin-night .yui3-overlay .yui3-widget-ft li:last-child{margin-right:0}.yui3-skin-night .yui3-overlay .yui3-widget-ft li:last-child a{border:solid 1px #520e00;-moz-box-shadow:0 1px #7d5d57;-webkit-box-shadow:0 1px #7d5d57;box-shadow:0 1px #7d5d57;background-color:#901704;background:-moz-linear-gradient(100% 0 270deg,#ab1c0b,#7b1400);background:-webkit-gradient(linear,left top,left bottom,from(#ab1c0b),to(#7b1400));margin-right:0}#yui3-widget-mask{background-color:#000;opacity:.5}#yui3-css-stamp.skin-night-overlay{display:none} diff --git a/lib/yui/3.5.0/build/overlay/assets/skins/sam/overlay-skin.css b/lib/yui/3.5.0/build/overlay/assets/skins/sam/overlay-skin.css new file mode 100644 index 00000000000..7cef9228d45 --- /dev/null +++ b/lib/yui/3.5.0/build/overlay/assets/skins/sam/overlay-skin.css @@ -0,0 +1,6 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ diff --git a/lib/yui/3.4.1/build/assets/skins/sam/overlay.css b/lib/yui/3.5.0/build/overlay/assets/skins/sam/overlay.css similarity index 59% rename from lib/yui/3.4.1/build/assets/skins/sam/overlay.css rename to lib/yui/3.5.0/build/overlay/assets/skins/sam/overlay.css index b01e42c7f50..14edf580b96 100644 --- a/lib/yui/3.4.1/build/assets/skins/sam/overlay.css +++ b/lib/yui/3.5.0/build/overlay/assets/skins/sam/overlay.css @@ -1,7 +1,7 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -.yui3-overlay{position:absolute}.yui3-overlay-hidden{visibility:hidden}.yui3-widget-tmp-forcesize .yui3-overlay-content{overflow:hidden!important} +.yui3-overlay{position:absolute}.yui3-overlay-hidden{visibility:hidden}.yui3-widget-tmp-forcesize .yui3-overlay-content{overflow:hidden!important}#yui3-css-stamp.skin-sam-overlay{display:none} diff --git a/lib/yui/3.4.1/build/overlay/overlay-debug.js b/lib/yui/3.5.0/build/overlay/overlay-debug.js similarity index 89% rename from lib/yui/3.4.1/build/overlay/overlay-debug.js rename to lib/yui/3.5.0/build/overlay/overlay-debug.js index 6e386a768d3..11fb3b14cd4 100644 --- a/lib/yui/3.4.1/build/overlay/overlay-debug.js +++ b/lib/yui/3.5.0/build/overlay/overlay-debug.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -32,4 +32,4 @@ YUI.add('overlay', function(Y) { Y.Overlay = Y.Base.create("overlay", Y.Widget, [Y.WidgetStdMod, Y.WidgetPosition, Y.WidgetStack, Y.WidgetPositionAlign, Y.WidgetPositionConstrain]); -}, '3.4.1' ,{requires:['widget', 'widget-stdmod', 'widget-position', 'widget-stack', 'widget-position-align', 'widget-position-constrain']}); +}, '3.5.0' ,{requires:['widget', 'widget-stdmod', 'widget-position', 'widget-stack', 'widget-position-align', 'widget-position-constrain']}); diff --git a/lib/yui/3.4.1/build/overlay/overlay-min.js b/lib/yui/3.5.0/build/overlay/overlay-min.js similarity index 69% rename from lib/yui/3.4.1/build/overlay/overlay-min.js rename to lib/yui/3.5.0/build/overlay/overlay-min.js index e0c17476172..14669cd7c9d 100644 --- a/lib/yui/3.4.1/build/overlay/overlay-min.js +++ b/lib/yui/3.5.0/build/overlay/overlay-min.js @@ -1,7 +1,7 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("overlay",function(a){a.Overlay=a.Base.create("overlay",a.Widget,[a.WidgetStdMod,a.WidgetPosition,a.WidgetStack,a.WidgetPositionAlign,a.WidgetPositionConstrain]);},"3.4.1",{requires:["widget","widget-stdmod","widget-position","widget-stack","widget-position-align","widget-position-constrain"]}); \ No newline at end of file +YUI.add("overlay",function(a){a.Overlay=a.Base.create("overlay",a.Widget,[a.WidgetStdMod,a.WidgetPosition,a.WidgetStack,a.WidgetPositionAlign,a.WidgetPositionConstrain]);},"3.5.0",{requires:["widget","widget-stdmod","widget-position","widget-stack","widget-position-align","widget-position-constrain"]}); \ No newline at end of file diff --git a/lib/yui/3.4.1/build/overlay/overlay.js b/lib/yui/3.5.0/build/overlay/overlay.js similarity index 89% rename from lib/yui/3.4.1/build/overlay/overlay.js rename to lib/yui/3.5.0/build/overlay/overlay.js index 6e386a768d3..11fb3b14cd4 100644 --- a/lib/yui/3.4.1/build/overlay/overlay.js +++ b/lib/yui/3.5.0/build/overlay/overlay.js @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -32,4 +32,4 @@ YUI.add('overlay', function(Y) { Y.Overlay = Y.Base.create("overlay", Y.Widget, [Y.WidgetStdMod, Y.WidgetPosition, Y.WidgetStack, Y.WidgetPositionAlign, Y.WidgetPositionConstrain]); -}, '3.4.1' ,{requires:['widget', 'widget-stdmod', 'widget-position', 'widget-stack', 'widget-position-align', 'widget-position-constrain']}); +}, '3.5.0' ,{requires:['widget', 'widget-stdmod', 'widget-position', 'widget-stack', 'widget-position-align', 'widget-position-constrain']}); diff --git a/lib/yui/3.4.1/build/panel/assets/panel-core.css b/lib/yui/3.5.0/build/panel/assets/panel-core.css similarity index 68% rename from lib/yui/3.4.1/build/panel/assets/panel-core.css rename to lib/yui/3.5.0/build/panel/assets/panel-core.css index 46f109d476f..a62d8a76815 100644 --- a/lib/yui/3.4.1/build/panel/assets/panel-core.css +++ b/lib/yui/3.5.0/build/panel/assets/panel-core.css @@ -1,6 +1,6 @@ /* -YUI 3.4.1 (build 4118) -Copyright 2011 Yahoo! Inc. All rights reserved. +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ @@ -16,12 +16,12 @@ http://yuilibrary.com/license/ .yui3-panel .yui3-widget-hd { position: relative; } -.yui3-panel .yui3-widget-hd .yui3-widget-button-wrapper { +.yui3-panel .yui3-widget-hd .yui3-widget-buttons { position: absolute; top: 0; right: 0; } -.yui3-panel .yui3-widget-ft .yui3-widget-button-wrapper { +.yui3-panel .yui3-widget-ft .yui3-widget-buttons { display: inline-block; *display: inline; zoom: 1; diff --git a/lib/yui/3.5.0/build/panel/assets/raw/icons_window_close_max_restore_min.psd b/lib/yui/3.5.0/build/panel/assets/raw/icons_window_close_max_restore_min.psd new file mode 100644 index 00000000000..94e2d23d342 Binary files /dev/null and b/lib/yui/3.5.0/build/panel/assets/raw/icons_window_close_max_restore_min.psd differ diff --git a/lib/yui/3.5.0/build/panel/assets/skins/night/panel-skin.css b/lib/yui/3.5.0/build/panel/assets/skins/night/panel-skin.css new file mode 100644 index 00000000000..90d61de2796 --- /dev/null +++ b/lib/yui/3.5.0/build/panel/assets/skins/night/panel-skin.css @@ -0,0 +1,129 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +.yui3-skin-night .yui3-panel { + color: #FFFFFF; + font-family: HelveticaNeue, arial, helvetica, clean, sans-serif; +} + +.yui3-skin-night .yui3-panel-content { + background: #6D6E6E; + -webkit-box-shadow: 0 0 20px #000; + -moz-box-shadow: 0 0 20px #000; + box-shadow: 0 0 20px #000; + border: 1px solid black; + -webkit-border-radius: 7px; + -moz-border-radius: 7px; + border-radius: 7px; +} +.yui3-skin-night .yui3-panel .yui3-widget-hd { + padding: 11px 57px 11px 22px; /* Room for close button. */ + min-height: 17px; /* For the close button */ + _height: 17px; /* IE6 */ + -webkit-border-top-left-radius: 7px; + -webkit-border-top-right-radius: 7px; + -moz-border-radius-topleft: 7px; + -moz-border-radius-topright: 7px; + border-top-left-radius: 7px; + border-top-right-radius: 7px; + font-weight: bold; + color: white; + background-color: #555658; + background: -moz-linear-gradient( + 0% 100% 90deg, + #343536 0%, + #555658 96%, + #3E3F41 100% + ); + background: -webkit-gradient( + linear, + left bottom, + left top, + from(#343536), + color-stop(0.96, #555658), + to(#3E3F41) + ); +} +.yui3-skin-night .yui3-panel .yui3-widget-hd .yui3-widget-buttons { + padding: 11px; +} +.yui3-skin-night .yui3-panel .yui3-widget-bd { + padding: 11px 22px 17px; +} +.yui3-skin-night .yui3-panel .yui3-widget-ft { + background-color: #575858; + border-top: 1px solid #494A4A; + padding: 6px 16px 8px; + text-align: center; + -webkit-border-bottom-right-radius: 7px; + -webkit-border-bottom-left-radius: 7px; + -moz-border-radius-bottomright: 7px; + -moz-border-radius-bottomleft: 7px; + border-bottom-right-radius: 7px; + border-bottom-left-radius: 7px; +} +.yui3-skin-night .yui3-panel .yui3-widget-ft .yui3-widget-buttons { + bottom: 0; + position: relative; + right: auto; + width: 100%; + text-align: center; + padding-bottom: 0; + margin-left: -5px; + margin-right: -5px; +} +.yui3-skin-night .yui3-panel .yui3-widget-ft .yui3-button { + margin: 5px; +} + +/* +Support for icon-based [x] "close" button in the header. + +Nicolas Gallagher: "CSS image replacement with pseudo-elements (NIR)" +http://nicolasgallagher.com/css-image-replacement-with-pseudo-elements/ +*/ +.yui3-skin-night .yui3-panel .yui3-widget-hd .yui3-button-close { + /* Reset base button styles */ + background: transparent; + filter: none; + border: none; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + + /* Structure */ + width: 22px; + height: 17px; + padding: 0; + overflow: hidden; + vertical-align: top; + /* IE < 8 :( */ + *font-size: 0; + *line-height: 0; + *letter-spacing: -1000px; + *color: #86A5EC; + *background: url(sprite_icons.png) no-repeat center 3px; +} +.yui3-skin-night .yui3-panel .yui3-widget-hd .yui3-button-close:hover { + background-color: #333; +} +.yui3-skin-night .yui3-panel .yui3-widget-hd .yui3-button-close:before { + /* + Displays the [x] icon in place of the "Close" text. + Note: The `width` of this pseudo element is the same as its "host" element. + */ + content: url(sprite_icons.png); + display: inline-block; + text-align: center; + font-size: 0; + line-height: 0; + width: 22px; + margin: 3px 0 0 1px; +} +.yui3-skin-night .yui3-panel-hidden .yui3-widget-hd .yui3-button-close { + /* Required for IE > 7 to deal with pseudo :before element */ + display: none; +} diff --git a/lib/yui/3.5.0/build/panel/assets/skins/night/panel.css b/lib/yui/3.5.0/build/panel/assets/skins/night/panel.css new file mode 100644 index 00000000000..5e394c88328 --- /dev/null +++ b/lib/yui/3.5.0/build/panel/assets/skins/night/panel.css @@ -0,0 +1,7 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +.yui3-panel{position:absolute}.yui3-panel-hidden{visibility:hidden}.yui3-widget-tmp-forcesize .yui3-panel-content{overflow:hidden!important}.yui3-panel .yui3-widget-hd{position:relative}.yui3-panel .yui3-widget-hd .yui3-widget-buttons{position:absolute;top:0;right:0}.yui3-panel .yui3-widget-ft .yui3-widget-buttons{display:inline-block;*display:inline;zoom:1}.yui3-skin-night .yui3-panel{color:#fff;font-family:HelveticaNeue,arial,helvetica,clean,sans-serif}.yui3-skin-night .yui3-panel-content{background:#6d6e6e;-webkit-box-shadow:0 0 20px #000;-moz-box-shadow:0 0 20px #000;box-shadow:0 0 20px #000;border:1px solid black;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.yui3-skin-night .yui3-panel .yui3-widget-hd{padding:11px 57px 11px 22px;min-height:17px;_height:17px;-webkit-border-top-left-radius:7px;-webkit-border-top-right-radius:7px;-moz-border-radius-topleft:7px;-moz-border-radius-topright:7px;border-top-left-radius:7px;border-top-right-radius:7px;font-weight:bold;color:white;background-color:#555658;background:-moz-linear-gradient(0% 100% 90deg,#343536 0,#555658 96%,#3e3f41 100%);background:-webkit-gradient(linear,left bottom,left top,from(#343536),color-stop(0.96,#555658),to(#3e3f41))}.yui3-skin-night .yui3-panel .yui3-widget-hd .yui3-widget-buttons{padding:11px}.yui3-skin-night .yui3-panel .yui3-widget-bd{padding:11px 22px 17px}.yui3-skin-night .yui3-panel .yui3-widget-ft{background-color:#575858;border-top:1px solid #494a4a;padding:6px 16px 8px;text-align:center;-webkit-border-bottom-right-radius:7px;-webkit-border-bottom-left-radius:7px;-moz-border-radius-bottomright:7px;-moz-border-radius-bottomleft:7px;border-bottom-right-radius:7px;border-bottom-left-radius:7px}.yui3-skin-night .yui3-panel .yui3-widget-ft .yui3-widget-buttons{bottom:0;position:relative;right:auto;width:100%;text-align:center;padding-bottom:0;margin-left:-5px;margin-right:-5px}.yui3-skin-night .yui3-panel .yui3-widget-ft .yui3-button{margin:5px}.yui3-skin-night .yui3-panel .yui3-widget-hd .yui3-button-close{background:transparent;filter:none;border:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;width:22px;height:17px;padding:0;overflow:hidden;vertical-align:top;*font-size:0;*line-height:0;*letter-spacing:-1000px;*color:#86a5ec;*background:url(sprite_icons.png) no-repeat center 3px}.yui3-skin-night .yui3-panel .yui3-widget-hd .yui3-button-close:hover{background-color:#333}.yui3-skin-night .yui3-panel .yui3-widget-hd .yui3-button-close:before{content:url(sprite_icons.png);display:inline-block;text-align:center;font-size:0;line-height:0;width:22px;margin:3px 0 0 1px}.yui3-skin-night .yui3-panel-hidden .yui3-widget-hd .yui3-button-close{display:none}#yui3-css-stamp.skin-night-panel{display:none} diff --git a/lib/yui/3.5.0/build/panel/assets/skins/night/sprite_icons.png b/lib/yui/3.5.0/build/panel/assets/skins/night/sprite_icons.png new file mode 100644 index 00000000000..34fd6cdc644 Binary files /dev/null and b/lib/yui/3.5.0/build/panel/assets/skins/night/sprite_icons.png differ diff --git a/lib/yui/3.5.0/build/panel/assets/skins/sam/panel-skin.css b/lib/yui/3.5.0/build/panel/assets/skins/sam/panel-skin.css new file mode 100644 index 00000000000..aa0a0541f7b --- /dev/null +++ b/lib/yui/3.5.0/build/panel/assets/skins/sam/panel-skin.css @@ -0,0 +1,101 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +.yui3-skin-sam .yui3-panel-content { + -webkit-box-shadow: 0 0 5px #333; + -moz-box-shadow: 0 0 5px #333; + box-shadow: 0 0 5px #333; + border: 1px solid black; + background: white; +} +.yui3-skin-sam .yui3-panel .yui3-widget-hd { + padding: 8px 28px 8px 8px; /* Room for close button. */ + min-height: 13px; /* For the close button */ + _height: 13px; /* IE6 */ + color: white; + background-color: #3961c5; + background: -moz-linear-gradient( + 0% 100% 90deg, + #2647a0 7%, + #3d67ce 50%, + #426fd9 100% + ); + background: -webkit-gradient( + linear, + left bottom, + left top, + from(#2647a0), + color-stop(0.07, #2647a0), + color-stop(0.5, #3d67ce), + to(#426fd9) + ); + /* + TODO: Add support for IE and W3C gradients + */ +} +.yui3-skin-sam .yui3-panel .yui3-widget-hd .yui3-widget-buttons { + padding: 8px; +} +.yui3-skin-sam .yui3-panel .yui3-widget-bd { + padding: 10px; +} +.yui3-skin-sam .yui3-panel .yui3-widget-ft { + background: #EDF5FF; + padding: 8px; + text-align: right; +} +.yui3-skin-sam .yui3-panel .yui3-widget-ft .yui3-button { + margin-left: 8px; +} + +/* +Support for icon-based [x] "close" button in the header. + +Nicolas Gallagher: "CSS image replacement with pseudo-elements (NIR)" +http://nicolasgallagher.com/css-image-replacement-with-pseudo-elements/ +*/ +.yui3-skin-sam .yui3-panel .yui3-widget-hd .yui3-button-close { + /* Reset base button styles */ + background: transparent; + filter: none; + border: none; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + + /* Structure */ + width: 13px; + height: 13px; + padding: 0; + overflow: hidden; + vertical-align: top; + /* IE < 8 :( */ + *font-size: 0; + *line-height: 0; + *letter-spacing: -1000px; + *color: #86A5EC; + *background: url(sprite_icons.png) no-repeat 1px 1px; +} +.yui3-skin-sam .yui3-panel .yui3-widget-hd .yui3-button-close:before { + /* + Displays the [x] icon in place of the "Close" text. + Note: The `width` of this pseudo element is the same as its "host" element. + */ + content: url(sprite_icons.png); + display: inline-block; + text-align: center; + font-size: 0; + line-height: 0; + width: 13px; + margin: 1px 0 0 1px; +} +.yui3-skin-sam .yui3-panel-hidden .yui3-widget-hd .yui3-button-close { + /* Required for IE > 7 to deal with pseudo :before element */ + display: none; +} diff --git a/lib/yui/3.5.0/build/panel/assets/skins/sam/panel.css b/lib/yui/3.5.0/build/panel/assets/skins/sam/panel.css new file mode 100644 index 00000000000..07c04be7c01 --- /dev/null +++ b/lib/yui/3.5.0/build/panel/assets/skins/sam/panel.css @@ -0,0 +1,7 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +.yui3-panel{position:absolute}.yui3-panel-hidden{visibility:hidden}.yui3-widget-tmp-forcesize .yui3-panel-content{overflow:hidden!important}.yui3-panel .yui3-widget-hd{position:relative}.yui3-panel .yui3-widget-hd .yui3-widget-buttons{position:absolute;top:0;right:0}.yui3-panel .yui3-widget-ft .yui3-widget-buttons{display:inline-block;*display:inline;zoom:1}.yui3-skin-sam .yui3-panel-content{-webkit-box-shadow:0 0 5px #333;-moz-box-shadow:0 0 5px #333;box-shadow:0 0 5px #333;border:1px solid black;background:white}.yui3-skin-sam .yui3-panel .yui3-widget-hd{padding:8px 28px 8px 8px;min-height:13px;_height:13px;color:white;background-color:#3961c5;background:-moz-linear-gradient(0% 100% 90deg,#2647a0 7%,#3d67ce 50%,#426fd9 100%);background:-webkit-gradient(linear,left bottom,left top,from(#2647a0),color-stop(0.07,#2647a0),color-stop(0.5,#3d67ce),to(#426fd9))}.yui3-skin-sam .yui3-panel .yui3-widget-hd .yui3-widget-buttons{padding:8px}.yui3-skin-sam .yui3-panel .yui3-widget-bd{padding:10px}.yui3-skin-sam .yui3-panel .yui3-widget-ft{background:#edf5ff;padding:8px;text-align:right}.yui3-skin-sam .yui3-panel .yui3-widget-ft .yui3-button{margin-left:8px}.yui3-skin-sam .yui3-panel .yui3-widget-hd .yui3-button-close{background:transparent;filter:none;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;width:13px;height:13px;padding:0;overflow:hidden;vertical-align:top;*font-size:0;*line-height:0;*letter-spacing:-1000px;*color:#86a5ec;*background:url(sprite_icons.png) no-repeat 1px 1px}.yui3-skin-sam .yui3-panel .yui3-widget-hd .yui3-button-close:before{content:url(sprite_icons.png);display:inline-block;text-align:center;font-size:0;line-height:0;width:13px;margin:1px 0 0 1px}.yui3-skin-sam .yui3-panel-hidden .yui3-widget-hd .yui3-button-close{display:none}#yui3-css-stamp.skin-sam-panel{display:none} diff --git a/lib/yui/3.5.0/build/panel/assets/skins/sam/sprite_icons.png b/lib/yui/3.5.0/build/panel/assets/skins/sam/sprite_icons.png new file mode 100644 index 00000000000..89944ba0ff7 Binary files /dev/null and b/lib/yui/3.5.0/build/panel/assets/skins/sam/sprite_icons.png differ diff --git a/lib/yui/3.5.0/build/panel/panel-debug.js b/lib/yui/3.5.0/build/panel/panel-debug.js new file mode 100644 index 00000000000..faba4b05623 --- /dev/null +++ b/lib/yui/3.5.0/build/panel/panel-debug.js @@ -0,0 +1,105 @@ +/* +YUI 3.5.0 (build 5089) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add('panel', function(Y) { + +// TODO: Change this description! +/** +Provides a Panel widget, a widget that mimics the functionality of a regular OS +window. Comes with Standard Module support, XY Positioning, Alignment Support, +Stack (z-index) support, modality, auto-focus and auto-hide functionality, and +header/footer button support. + +@module panel +**/ + +var getClassName = Y.ClassNameManager.getClassName; + +// TODO: Change this description! +/** +A basic Panel Widget, which can be positioned based on Page XY co-ordinates and +is stackable (z-index support). It also provides alignment and centering support +and uses a standard module format for it's content, with header, body and footer +section support. It can be made modal, and has functionality to hide and focus +on different events. The header and footer sections can be modified to allow for +button support. + +@class Panel +@constructor +@extends Widget +@uses WidgetAutohide +@uses WidgetButtons +@uses WidgetModality +@uses WidgetPosition +@uses WidgetPositionAlign +@uses WidgetPositionConstrain +@uses WidgetStack +@uses WidgetStdMod +@since 3.4.0 + */ +Y.Panel = Y.Base.create('panel', Y.Widget, [ + // Other Widget extensions depend on these two. + Y.WidgetPosition, + Y.WidgetStdMod, + + Y.WidgetAutohide, + Y.WidgetButtons, + Y.WidgetModality, + Y.WidgetPositionAlign, + Y.WidgetPositionConstrain, + Y.WidgetStack +], { + // -- Public Properties ---------------------------------------------------- + + /** + Collection of predefined buttons mapped from name => config. + + Panel includes a "close" button which can be use by name. When the close + button is in the header (which is the default), it will look like: [x]. + + See `addButton()` for a list of possible configuration values. + + @example + // Panel with close button in header. + var panel = new Y.Panel({ + buttons: ['close'] + }); + + // Panel with close button in footer. + var otherPanel = new Y.Panel({ + buttons: { + footer: ['close'] + } + }); + + @property BUTTONS + @type Object + @default {close: {}} + @since 3.5.0 + **/ + BUTTONS: { + close: { + label : 'Close', + action : 'hide', + section: 'header', + + // Uses `type="button"` so the button's default action can still + // occur but it won't cause things like a form to submit. + template : '