init
This commit is contained in:
166
include/javascript/yui3/assets/dpSyntaxHighlighter.js
vendored
Normal file
166
include/javascript/yui3/assets/dpSyntaxHighlighter.js
vendored
Normal file
@@ -0,0 +1,166 @@
|
||||
/**
|
||||
* Code Syntax Highlighter.
|
||||
* Version 1.3.0
|
||||
* Copyright (C) 2004 Alex Gorbatchev.
|
||||
* http://www.dreamprojections.com/syntaxhighlighter/
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
|
||||
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
var dp={sh:{Utils:{},Brushes:{},Strings:{},Version:'1.3.0'}};dp.sh.Strings={AboutDialog:'<html><head><title>About...</title></head><body class="dp-about"><table cellspacing="0"><tr><td class="copy"><p class="title">dp.SyntaxHighlighter</div><div class="para">Version: {V}</p><p><a href="http://www.dreamprojections.com/syntaxhighlighter/?ref=about" target="_blank">http://www.dreamprojections.com/SyntaxHighlighter</a></p>©2004-2005 Alex Gorbatchev. All right reserved.</td></tr><tr><td class="footer"><input type="button" class="close" value="OK" onClick="window.close()"/></td></tr></table></body></html>',ExpandCode:'+ expand code',ViewPlain:'view plain',Print:'print',CopyToClipboard:'copy to clipboard',About:'?',CopiedToClipboard:'The code is in your clipboard now.'};dp.SyntaxHighlighter=dp.sh;dp.sh.Utils.Expand=function(sender)
|
||||
{var table=sender;var span=sender;while(span!=null&&span.tagName!='SPAN')
|
||||
span=span.parentNode;while(table!=null&&table.tagName!='TABLE')
|
||||
table=table.parentNode;span.parentNode.removeChild(span);table.tBodies[0].className='show';table.parentNode.style.height='100%';}
|
||||
dp.sh.Utils.ViewSource=function(sender)
|
||||
{var code=sender.parentNode.originalCode;var wnd=window.open('','_blank','width=750, height=400, location=0, resizable=1, menubar=0, scrollbars=1');code=code.replace(/</g,'<');wnd.document.write('<pre>'+code+'</pre>');wnd.document.close();}
|
||||
dp.sh.Utils.ToClipboard=function(sender)
|
||||
{var code=sender.parentNode.originalCode;if(window.clipboardData)
|
||||
{window.clipboardData.setData('text',code);alert(dp.sh.Strings.CopiedToClipboard);}}
|
||||
dp.sh.Utils.PrintSource=function(sender)
|
||||
{var td=sender.parentNode;var code=td.processedCode;var iframe=document.createElement('IFRAME');var doc=null;var wnd=iframe.style.cssText='position:absolute; width:0px; height:0px; left:-5px; top:-5px;';td.appendChild(iframe);doc=iframe.contentWindow.document;code=code.replace(/</g,'<');doc.open();doc.write('<pre>'+code+'</pre>');doc.close();iframe.contentWindow.focus();iframe.contentWindow.print();td.removeChild(iframe);}
|
||||
dp.sh.Utils.About=function()
|
||||
{var wnd=window.open('','_blank','dialog,width=320,height=150,scrollbars=0');var doc=wnd.document;var styles=document.getElementsByTagName('style');var links=document.getElementsByTagName('link');doc.write(dp.sh.Strings.AboutDialog.replace('{V}',dp.sh.Version));for(var i=0;i<styles.length;i++)
|
||||
doc.write('<style>'+styles[i].innerHTML+'</style>');for(var i=0;i<links.length;i++)
|
||||
if(links[i].rel.toLowerCase()=='stylesheet')
|
||||
doc.write('<link type="text/css" rel="stylesheet" href="'+links[i].href+'"></link>');doc.close();wnd.focus();}
|
||||
dp.sh.Match=function(value,index,css)
|
||||
{this.value=value;this.index=index;this.length=value.length;this.css=css;}
|
||||
dp.sh.Highlighter=function()
|
||||
{this.addGutter=true;this.addControls=true;this.collapse=false;this.tabsToSpaces=true;}
|
||||
dp.sh.Highlighter.SortCallback=function(m1,m2)
|
||||
{if(m1.index<m2.index)
|
||||
return-1;else if(m1.index>m2.index)
|
||||
return 1;else
|
||||
{if(m1.length<m2.length)
|
||||
return-1;else if(m1.length>m2.length)
|
||||
return 1;}
|
||||
return 0;}
|
||||
dp.sh.Highlighter.prototype.GetMatches=function(regex,css)
|
||||
{var index=0;var match=null;while((match=regex.exec(this.code))!=null)
|
||||
{this.matches[this.matches.length]=new dp.sh.Match(match[0],match.index,css);}}
|
||||
dp.sh.Highlighter.prototype.AddBit=function(str,css)
|
||||
{var span=document.createElement('span');str=str.replace(/&/g,'&');str=str.replace(/ /g,' ');str=str.replace(/</g,'<');str=str.replace(/\n/gm,' <br>');if(css!=null)
|
||||
{var regex=new RegExp('<br>','gi');if(regex.test(str))
|
||||
{var lines=str.split(' <br>');str='';for(var i=0;i<lines.length;i++)
|
||||
{span=document.createElement('SPAN');span.className=css;span.innerHTML=lines[i];this.div.appendChild(span);if(i+1<lines.length)
|
||||
this.div.appendChild(document.createElement('BR'));}}
|
||||
else
|
||||
{span.className=css;span.innerHTML=str;this.div.appendChild(span);}}
|
||||
else
|
||||
{span.innerHTML=str;this.div.appendChild(span);}}
|
||||
dp.sh.Highlighter.prototype.IsInside=function(match)
|
||||
{if(match==null||match.length==0)
|
||||
return;for(var i=0;i<this.matches.length;i++)
|
||||
{var c=this.matches[i];if(c==null)
|
||||
continue;if((match.index>c.index)&&(match.index<=c.index+c.length))
|
||||
return true;}
|
||||
return false;}
|
||||
dp.sh.Highlighter.prototype.ProcessRegexList=function()
|
||||
{for(var i=0;i<this.regexList.length;i++)
|
||||
this.GetMatches(this.regexList[i].regex,this.regexList[i].css);}
|
||||
dp.sh.Highlighter.prototype.ProcessSmartTabs=function(code)
|
||||
{var lines=code.split('\n');var result='';var tabSize=4;var tab='\t';function InsertSpaces(line,pos,count)
|
||||
{var left=line.substr(0,pos);var right=line.substr(pos+1,line.length);var spaces='';for(var i=0;i<count;i++)
|
||||
spaces+=' ';return left+spaces+right;}
|
||||
function ProcessLine(line,tabSize)
|
||||
{if(line.indexOf(tab)==-1)
|
||||
return line;var pos=0;while((pos=line.indexOf(tab))!=-1)
|
||||
{var spaces=tabSize-pos%tabSize;line=InsertSpaces(line,pos,spaces);}
|
||||
return line;}
|
||||
for(var i=0;i<lines.length;i++)
|
||||
result+=ProcessLine(lines[i],tabSize)+'\n';return result;}
|
||||
dp.sh.Highlighter.prototype.SwitchToTable=function()
|
||||
{var html=this.div.innerHTML.replace(/<(br)\/?>/gi,'\n');var lines=html.split('\n');var row=null;var cell=null;var tBody=null;var html='';var pipe=' | ';function UtilHref(util,text)
|
||||
{return'<a href="#" onclick="dp.sh.Utils.'+util+'(this); return false;">'+text+'</a>';}
|
||||
tBody=document.createElement('TBODY');this.table.appendChild(tBody);if(this.addGutter==true)
|
||||
{row=tBody.insertRow(-1);cell=row.insertCell(-1);cell.className='tools-corner';}
|
||||
if(this.addControls==true)
|
||||
{var tHead=document.createElement('THEAD');this.table.appendChild(tHead);row=tHead.insertRow(-1);if(this.addGutter==true)
|
||||
{cell=row.insertCell(-1);cell.className='tools-corner';}
|
||||
cell=row.insertCell(-1);cell.originalCode=this.originalCode;cell.processedCode=this.code;cell.className='tools';if(this.collapse==true)
|
||||
{tBody.className='hide';cell.innerHTML+='<span><b>'+UtilHref('Expand',dp.sh.Strings.ExpandCode)+'</b>'+pipe+'</span>';}
|
||||
cell.innerHTML+=UtilHref('ViewSource',dp.sh.Strings.ViewPlain)+pipe+UtilHref('PrintSource',dp.sh.Strings.Print);if(window.clipboardData)
|
||||
cell.innerHTML+=pipe+UtilHref('ToClipboard',dp.sh.Strings.CopyToClipboard);cell.innerHTML+=pipe+UtilHref('About',dp.sh.Strings.About);}
|
||||
for(var i=0,lineIndex=this.firstLine;i<lines.length-1;i++,lineIndex++)
|
||||
{row=tBody.insertRow(-1);if(this.addGutter==true)
|
||||
{cell=row.insertCell(-1);cell.className='gutter';cell.innerHTML=lineIndex;}
|
||||
cell=row.insertCell(-1);cell.className='line'+(i%2+1);cell.innerHTML=lines[i];}
|
||||
this.div.innerHTML='';}
|
||||
dp.sh.Highlighter.prototype.Highlight=function(code)
|
||||
{function Trim(str)
|
||||
{return str.replace(/^\s*(.*?)[\s\n]*$/g,'$1');}
|
||||
function Chop(str)
|
||||
{return str.replace(/\n*$/,'').replace(/^\n*/,'');}
|
||||
function Unindent(str)
|
||||
{var lines=str.split('\n');var indents=new Array();var regex=new RegExp('^\\s*','g');var min=1000;for(var i=0;i<lines.length&&min>0;i++)
|
||||
{if(Trim(lines[i]).length==0)
|
||||
continue;var matches=regex.exec(lines[i]);if(matches!=null&&matches.length>0)
|
||||
min=Math.min(matches[0].length,min);}
|
||||
if(min>0)
|
||||
for(var i=0;i<lines.length;i++)
|
||||
lines[i]=lines[i].substr(min);return lines.join('\n');}
|
||||
function Copy(string,pos1,pos2)
|
||||
{return string.substr(pos1,pos2-pos1);}
|
||||
var pos=0;this.originalCode=code;this.code=Chop(Unindent(code));this.div=document.createElement('DIV');this.table=document.createElement('TABLE');this.matches=new Array();if(this.CssClass!=null)
|
||||
this.table.className=this.CssClass;if(this.tabsToSpaces==true)
|
||||
this.code=this.ProcessSmartTabs(this.code);this.table.border=0;this.table.cellSpacing=0;this.table.cellPadding=0;this.ProcessRegexList();if(this.matches.length==0)
|
||||
{this.AddBit(this.code,null);this.SwitchToTable();return;}
|
||||
this.matches=this.matches.sort(dp.sh.Highlighter.SortCallback);for(var i=0;i<this.matches.length;i++)
|
||||
if(this.IsInside(this.matches[i]))
|
||||
this.matches[i]=null;for(var i=0;i<this.matches.length;i++)
|
||||
{var match=this.matches[i];if(match==null||match.length==0)
|
||||
continue;this.AddBit(Copy(this.code,pos,match.index),null);this.AddBit(match.value,match.css);pos=match.index+match.length;}
|
||||
this.AddBit(this.code.substr(pos),null);this.SwitchToTable();}
|
||||
dp.sh.Highlighter.prototype.GetKeywords=function(str)
|
||||
{return'\\b'+str.replace(/ /g,'\\b|\\b')+'\\b';}
|
||||
dp.sh.HighlightAll=function(name,showGutter,showControls,collapseAll,firstLine)
|
||||
{function FindValue()
|
||||
{var a=arguments;for(var i=0;i<a.length;i++)
|
||||
{if(a[i]==null)
|
||||
continue;if(typeof(a[i])=='string'&&a[i]!='')
|
||||
return a[i]+'';if(typeof(a[i])=='object'&&a[i].value!='')
|
||||
return a[i].value+'';}
|
||||
return null;}
|
||||
function IsOptionSet(value,list)
|
||||
{for(var i=0;i<list.length;i++)
|
||||
if(list[i]==value)
|
||||
return true;return false;}
|
||||
function GetOptionValue(name,list,defaultValue)
|
||||
{var regex=new RegExp('^'+name+'\\[(\\w+)\\]$','gi');var matches=null;for(var i=0;i<list.length;i++)
|
||||
if((matches=regex.exec(list[i]))!=null)
|
||||
return matches[1];return defaultValue;}
|
||||
var elements=document.getElementsByName(name);var highlighter=null;var registered=new Object();var propertyName='value';if(elements==null)
|
||||
return;for(var brush in dp.sh.Brushes)
|
||||
{var aliases=dp.sh.Brushes[brush].Aliases;if(aliases==null)
|
||||
continue;for(var i=0;i<aliases.length;i++)
|
||||
registered[aliases[i]]=brush;}
|
||||
for(var i=0;i<elements.length;i++)
|
||||
{var element=elements[i];var options=FindValue(element.attributes['class'],element.className,element.attributes['language'],element.language);var language='';if(options==null)
|
||||
continue;options=options.split(':');language=options[0].toLowerCase();if(registered[language]==null)
|
||||
continue;highlighter=new dp.sh.Brushes[registered[language]]();element.style.display='none';highlighter.addGutter=(showGutter==null)?!IsOptionSet('nogutter',options):showGutter;highlighter.addControls=(showControls==null)?!IsOptionSet('nocontrols',options):showControls;highlighter.collapse=(collapseAll==null)?IsOptionSet('collapse',options):collapseAll;highlighter.firstLine=(firstLine==null)?parseInt(GetOptionValue('firstline',options,1)):firstLine;highlighter.Highlight(element[propertyName]);var div=document.createElement('DIV');div.className='dp-highlighter';div.appendChild(highlighter.table);element.parentNode.insertBefore(div,element);}}
|
||||
dp.sh.Brushes.Xml=function()
|
||||
{this.CssClass='dp-xml';}
|
||||
dp.sh.Brushes.Xml.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Xml.Aliases=['xml','xhtml','xslt','html','xhtml'];dp.sh.Brushes.Xml.prototype.ProcessRegexList=function()
|
||||
{function push(array,value)
|
||||
{array[array.length]=value;}
|
||||
var index=0;var match=null;var regex=null;this.GetMatches(new RegExp('<\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\]>','gm'),'cdata');this.GetMatches(new RegExp('<!--\\s*.*\\s*?-->','gm'),'comments');regex=new RegExp('([\\w-\.]+)\\s*=\\s*(".*?"|\'.*?\'|\\w+)*','gm');while((match=regex.exec(this.code))!=null)
|
||||
{push(this.matches,new dp.sh.Match(match[1],match.index,'attribute'));if(match[2]!=undefined)
|
||||
{push(this.matches,new dp.sh.Match(match[2],match.index+match[0].indexOf(match[2]),'attribute-value'));}}
|
||||
this.GetMatches(new RegExp('</*\\?*(?!\\!)|/*\\?*>','gm'),'tag');regex=new RegExp('</*\\?*\\s*([\\w-\.]+)','gm');while((match=regex.exec(this.code))!=null)
|
||||
{push(this.matches,new dp.sh.Match(match[1],match.index+match[0].indexOf(match[1]),'tag-name'));}}
|
||||
dp.sh.Brushes.Php=function()
|
||||
{var keywords='and or xor __FILE__ __LINE__ array as break case '+'cfunction class const continue declare default die do echo else '+'elseif empty enddeclare endfor endforeach endif endswitch endwhile eval exit '+'extends for foreach function global if include include_once isset list '+'new old_function print require require_once return static switch unset use '+'var while __FUNCTION__ __CLASS__';this.regexList=[{regex:new RegExp('//.*$','gm'),css:'comment'},{regex:new RegExp('/\\*[\\s\\S]*?\\*/','g'),css:'comment'},{regex:new RegExp('"(?:[^"\n]|[\"])*?"','g'),css:'string'},{regex:new RegExp("'(?:[^'\n]|[\'])*?'",'g'),css:'string'},{regex:new RegExp('\\$\\w+','g'),css:'vars'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-c';}
|
||||
dp.sh.Brushes.Php.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Php.Aliases=['php'];dp.sh.Brushes.JScript=function()
|
||||
{var keywords='abstract boolean break byte case catch char class const continue debugger '+'default delete do double else enum export extends false final finally float '+'for function goto if implements import in instanceof int interface long native '+'new null package private protected public return short static super switch '+'synchronized this throw throws transient true try typeof var void volatile while with';this.regexList=[{regex:new RegExp('//.*$','gm'),css:'comment'},{regex:new RegExp('/\\*[\\s\\S]*?\\*/','g'),css:'comment'},{regex:new RegExp('"(?:[^"\n]|[\"])*?"','g'),css:'string'},{regex:new RegExp("'(?:[^'\n]|[\'])*?'",'g'),css:'string'},{regex:new RegExp('^\\s*#.*','gm'),css:'preprocessor'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-c';}
|
||||
dp.sh.Brushes.JScript.prototype=new dp.sh.Highlighter();dp.sh.Brushes.JScript.Aliases=['js','jscript','javascript'];dp.sh.Brushes.CSS=function(){var tags='abbr acronym address applet area a b base basefont bdo big blockquote body br button '+'caption center cite code col colgroup dd del dfn dir div dl dt em fieldset form frame frameset h1 h2 h3 h4 h5 h6 head hr html img i '+'iframe img input ins isindex kbd label legend li link map menu meta noframes noscript ol optgroup option p param pre q s samp script select '+'span strike strong style sub sup table tbody td textarea tfoot th thead title tr tt ul u';var keywords='ascent azimuth background-attachment background-color background-image background-position '+'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top '+'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color '+'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width '+'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color '+'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display '+'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font '+'height letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top '+'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans '+'outline-color outline-style outline-width outline overflow-x overflow-y overflow padding-top padding-right padding-bottom padding-left padding page '+'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position '+'quotes richness right left bottom top size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress '+'table-layout text-align text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em '+'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index zoom important after filter opacity';var values='progid:DXImageTransform.Microsoft.AlphaImageLoader src sizingMethod alpha opacity '+'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder both bottom braille capitalize center center-left center-right circle close-quote code collapse compact condensed '+'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+'gray green groove handheld hebrew help hidden hide high higher inline-table inline inset inside invert italic justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+'outside overline pointer portrait print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';this.regexList=[{regex:new RegExp('//.*$','gm'),css:'comment'},{regex:new RegExp('/\\*[\\s\\S]*?\\*/','g'),css:'comment'},{regex:new RegExp('"(?:[^"\n]|[\"])*?"','g'),css:'string'},{regex:new RegExp("'(?:[^'\n]|[\'])*?'",'g'),css:'string'},{regex:new RegExp('^\\s*.*{','gm'),css:'preprocessor'},{regex:new RegExp('}','gm'),css:'preprocessor'},{regex:new RegExp(this.GetKeywordsCSS(keywords),'gm'),css:'keyword'},{regex:new RegExp(this.GetValuesCSS(values),'gm'),css:'value'},{regex:new RegExp('(-?\\d+)(\.\\d+)?(px|em|pt|\:|\%|)','g'),css:'value'}];this.CssClass='dp-css';}
|
||||
dp.sh.Highlighter.prototype.GetKeywordsCSS=function(str){var str='\\b([a-z_]|)'+str.replace(/ /g,'(?=:)\\b|\\b([a-z_\\*]|\\*|)')+'(?=:)\\b';return str;}
|
||||
dp.sh.Highlighter.prototype.GetValuesCSS=function(str){var str='\\b'+str.replace(/ /g,'(?!-)(?!:)\\b|\\b()')+'\:\\b';return str;}
|
||||
dp.sh.Brushes.CSS.prototype=new dp.sh.Highlighter();dp.sh.Brushes.CSS.Aliases=['css'];
|
||||
3
include/javascript/yui3/assets/syntax.js
vendored
Normal file
3
include/javascript/yui3/assets/syntax.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
if(YUI&&yuiConfig){YUI(yuiConfig).use('node','event-mouseenter','later',function(Y){var items=Y.all('.yui-syntax-highlight'),openWindow=function(node,print){var n=Y.one('#'+node.get('id')+'-plain'),code=n.get('value'),win=null,h=n.get('offsetHeight');code=code.replace(/</g,'<').replace(/>/g,'>');win=window.open('',"codeview","status=0,scrollbars=1,width=600,height=400,menubar=0,toolbar=0,directories=0");win.document.body.innerHTML='<pre>'+code+'</pre>';if(print){Y.later(1000,win,function(){win.focus();win.print();win.focus();});}},handleClick=function(e){if(e.target.get('tagName').toLowerCase()=='a'){var type=e.target.get('innerHTML').replace(/ /g,'');switch(type){case'print':openWindow(e.target.get('parentNode.parentNode'),true);break;case'viewplain':openWindow(e.target.get('parentNode.parentNode'));break;case'togglelinenumbers':e.target.get('parentNode.parentNode').toggleClass('yui-syntax-highlight-linenumbers');break;case'copy':break;}}
|
||||
e.halt();};items.each(function(i){var header=Y.Node.create('<div class="syn-header hidden"><a href="#">view plain</a> | <a href="#">print</a> | <a href="#">toggle line numbers</a></div>');header.on('click',handleClick);i.insertBefore(header,i.get('firstChild'));i.on('mouseenter',function(){header.removeClass('hidden');});i.on('mouseleave',function(){header.addClass('hidden');});});});}
|
||||
8
include/javascript/yui3/build/anim/anim-base-min.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-base-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("anim-base",function(B){var C="running",N="startTime",L="elapsedTime",J="start",I="tween",M="end",D="node",K="paused",P="reverse",H="iterationCount",A=Number;var F={},O={},E;B.Anim=function(){B.Anim.superclass.constructor.apply(this,arguments);O[B.stamp(this)]=this;};B.Anim.NAME="anim";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(R,Q,T,S){return T*R/S+Q;};B.Anim.behaviors={left:{get:function(R,Q){return R._getOffset(Q);}}};B.Anim.behaviors.top=B.Anim.behaviors.left;B.Anim.DEFAULT_SETTER=function(U,R,X,W,Q,V,S,T){T=T||"";U._node.setStyle(R,S(Q,A(X),A(W)-A(X),V)+T);};B.Anim.DEFAULT_GETTER=function(Q,R){return Q._node.getComputedStyle(R);};B.Anim.ATTRS={node:{setter:function(Q){Q=B.get(Q);this._node=Q;if(!Q){}return Q;}},duration:{value:1},easing:{value:B.Anim.DEFAULT_EASING,setter:function(Q){if(typeof Q==="string"&&B.Easing){return B.Easing[Q];}}},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(){for(var Q in O){if(O[Q].run){O[Q].run();}}};B.Anim.pause=function(){for(var Q in F){if(F[Q].pause){F[Q].pause();}}B.Anim._stopTimer();};B.Anim.stop=function(){for(var Q in F){if(F[Q].stop){F[Q].stop();}}B.Anim._stopTimer();};B.Anim._startTimer=function(){if(!E){E=setInterval(B.Anim._runFrame,1);}};B.Anim._stopTimer=function(){clearInterval(E);E=0;};B.Anim._runFrame=function(){var Q=true;for(var R in F){if(F[R]._runFrame){Q=false;F[R]._runFrame();}}if(Q){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(C)){this._start();}else{if(this.get(K)){this._resume();}}return this;},pause:function(){if(this.get(C)){this._pause();}return this;},stop:function(Q){if(this.get(C)||this.get(K)){this._end(Q);}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.fire("resume");},_end:function(Q){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 X=this._runtimeAttr,S=B.Anim.behaviors,Y=X.easing,Z=X.duration,a=new Date()-this.get(N),W=this.get(P),U=(a>=Z),Q=Z,R,T;if(W){a=Z-a;U=(a<=0);Q=0;}for(var V in X){if(X[V].to){R=X[V];T=(V in S&&"set"in S[V])?S[V].set:B.Anim.DEFAULT_SETTER;if(!U){T(this,V,R.from,R.to,a,Z,Y,R.unit);}else{T(this,V,R.from,R.to,Q,Z,Y,R.unit);}}}this._actualFrames+=1;this._set(L,a);this.fire(I);if(U){this._lastFrame();}},_lastFrame:function(){var Q=this.get("iterations"),R=this.get(H);R+=1;if(Q==="infinite"||R<Q){if(this.get("direction")==="alternate"){this.set(P,!this.get(P));}this.fire("iteration");}else{R=0;this._end();}this._set(N,new Date());this._set(H,R);},_initAnimAttr:function(){var X=this.get("from")||{},Y=this.get("to")||{},Q=this.get("duration")*1000,T=this.get(D),W=this.get("easing")||{},V={},R=B.Anim.behaviors,Z,S,U;B.each(Y,function(d,b){if(typeof d==="function"){d=d.call(this,T);}S=X[b];if(S===undefined){S=(b in R&&"get"in R[b])?R[b].get(this,b):B.Anim.DEFAULT_GETTER(this,b);}else{if(typeof S==="function"){S=S.call(this,T);}}var a=B.Anim.RE_UNITS.exec(S);var c=B.Anim.RE_UNITS.exec(d);S=a?a[1]:S;U=c?c[1]:d;Z=c?c[2]:a?a[2]:"";if(!Z&&B.Anim.RE_DEFAULT_UNIT.test(b)){Z=B.Anim.DEFAULT_UNIT;}if(!S||!U){B.error('invalid "from" or "to" for "'+b+'"',"Anim");return;}V[b]={from:S,to:U,unit:Z};V.duration=Q;V.easing=W;},this);this._runtimeAttr=V;},_getOffset:function(R){var T=this._node,U=T.getComputedStyle(R),S=(R==="left")?"getX":"getY",V=(R==="left")?"setX":"setY";if(U==="auto"){var Q=T.getStyle("position");if(Q==="absolute"||Q==="fixed"){U=T[S]();T[V](U);}else{U=0;}}return U;}};B.extend(B.Anim,B.Base,G);},"3.0.0",{requires:["base-base","node-style"]});
|
||||
25
include/javascript/yui3/build/anim/anim-base.js
vendored
Normal file
25
include/javascript/yui3/build/anim/anim-base.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('anim-base',function(Y){var RUNNING='running',START_TIME='startTime',ELAPSED_TIME='elapsedTime',START='start',TWEEN='tween',END='end',NODE='node',PAUSED='paused',REVERSE='reverse',ITERATION_COUNT='iterationCount',NUM=Number;var _running={},_instances={},_timer;Y.Anim=function(){Y.Anim.superclass.constructor.apply(this,arguments);_instances[Y.stamp(this)]=this;};Y.Anim.NAME='anim';Y.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i;Y.Anim.DEFAULT_UNIT='px';Y.Anim.DEFAULT_EASING=function(t,b,c,d){return c*t/d+b;};Y.Anim.behaviors={left:{get:function(anim,attr){return anim._getOffset(attr);}}};Y.Anim.behaviors.top=Y.Anim.behaviors.left;Y.Anim.DEFAULT_SETTER=function(anim,att,from,to,elapsed,duration,fn,unit){unit=unit||'';anim._node.setStyle(att,fn(elapsed,NUM(from),NUM(to)-NUM(from),duration)+unit);};Y.Anim.DEFAULT_GETTER=function(anim,prop){return anim._node.getComputedStyle(prop);};Y.Anim.ATTRS={node:{setter:function(node){node=Y.get(node);this._node=node;if(!node){}
|
||||
return node;}},duration:{value:1},easing:{value:Y.Anim.DEFAULT_EASING,setter:function(val){if(typeof val==='string'&&Y.Easing){return Y.Easing[val];}}},from:{},to:{},startTime:{value:0,readOnly:true},elapsedTime:{value:0,readOnly:true},running:{getter:function(){return!!_running[Y.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}};Y.Anim.run=function(){for(var i in _instances){if(_instances[i].run){_instances[i].run();}}};Y.Anim.pause=function(){for(var i in _running){if(_running[i].pause){_running[i].pause();}}
|
||||
Y.Anim._stopTimer();};Y.Anim.stop=function(){for(var i in _running){if(_running[i].stop){_running[i].stop();}}
|
||||
Y.Anim._stopTimer();};Y.Anim._startTimer=function(){if(!_timer){_timer=setInterval(Y.Anim._runFrame,1);}};Y.Anim._stopTimer=function(){clearInterval(_timer);_timer=0;};Y.Anim._runFrame=function(){var done=true;for(var anim in _running){if(_running[anim]._runFrame){done=false;_running[anim]._runFrame();}}
|
||||
if(done){Y.Anim._stopTimer();}};Y.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;var proto={run:function(){if(!this.get(RUNNING)){this._start();}else if(this.get(PAUSED)){this._resume();}
|
||||
return this;},pause:function(){if(this.get(RUNNING)){this._pause();}
|
||||
return this;},stop:function(finish){if(this.get(RUNNING)||this.get(PAUSED)){this._end(finish);}
|
||||
return this;},_added:false,_start:function(){this._set(START_TIME,new Date()-this.get(ELAPSED_TIME));this._actualFrames=0;if(!this.get(PAUSED)){this._initAnimAttr();}
|
||||
_running[Y.stamp(this)]=this;Y.Anim._startTimer();this.fire(START);},_pause:function(){this._set(START_TIME,null);this._set(PAUSED,true);delete _running[Y.stamp(this)];this.fire('pause');},_resume:function(){this._set(PAUSED,false);_running[Y.stamp(this)]=this;this.fire('resume');},_end:function(finish){this._set(START_TIME,null);this._set(ELAPSED_TIME,0);this._set(PAUSED,false);delete _running[Y.stamp(this)];this.fire(END,{elapsed:this.get(ELAPSED_TIME)});},_runFrame:function(){var attr=this._runtimeAttr,customAttr=Y.Anim.behaviors,easing=attr.easing,d=attr.duration,t=new Date()-this.get(START_TIME),reversed=this.get(REVERSE),done=(t>=d),lastFrame=d,attribute,setter;if(reversed){t=d-t;done=(t<=0);lastFrame=0;}
|
||||
for(var i in attr){if(attr[i].to){attribute=attr[i];setter=(i in customAttr&&'set'in customAttr[i])?customAttr[i].set:Y.Anim.DEFAULT_SETTER;if(!done){setter(this,i,attribute.from,attribute.to,t,d,easing,attribute.unit);}else{setter(this,i,attribute.from,attribute.to,lastFrame,d,easing,attribute.unit);}}}
|
||||
this._actualFrames+=1;this._set(ELAPSED_TIME,t);this.fire(TWEEN);if(done){this._lastFrame();}},_lastFrame:function(){var iter=this.get('iterations'),iterCount=this.get(ITERATION_COUNT);iterCount+=1;if(iter==='infinite'||iterCount<iter){if(this.get('direction')==='alternate'){this.set(REVERSE,!this.get(REVERSE));}
|
||||
this.fire('iteration');}else{iterCount=0;this._end();}
|
||||
this._set(START_TIME,new Date());this._set(ITERATION_COUNT,iterCount);},_initAnimAttr:function(){var from=this.get('from')||{},to=this.get('to')||{},dur=this.get('duration')*1000,node=this.get(NODE),easing=this.get('easing')||{},attr={},customAttr=Y.Anim.behaviors,unit,begin,end;Y.each(to,function(val,name){if(typeof val==='function'){val=val.call(this,node);}
|
||||
begin=from[name];if(begin===undefined){begin=(name in customAttr&&'get'in customAttr[name])?customAttr[name].get(this,name):Y.Anim.DEFAULT_GETTER(this,name);}else if(typeof begin==='function'){begin=begin.call(this,node);}
|
||||
var mFrom=Y.Anim.RE_UNITS.exec(begin);var mTo=Y.Anim.RE_UNITS.exec(val);begin=mFrom?mFrom[1]:begin;end=mTo?mTo[1]:val;unit=mTo?mTo[2]:mFrom?mFrom[2]:'';if(!unit&&Y.Anim.RE_DEFAULT_UNIT.test(name)){unit=Y.Anim.DEFAULT_UNIT;}
|
||||
if(!begin||!end){Y.error('invalid "from" or "to" for "'+name+'"','Anim');return;}
|
||||
attr[name]={from:begin,to:end,unit:unit};attr.duration=dur;attr.easing=easing;},this);this._runtimeAttr=attr;},_getOffset:function(attr){var node=this._node,val=node.getComputedStyle(attr),get=(attr==='left')?'getX':'getY',set=(attr==='left')?'setX':'setY';if(val==='auto'){var position=node.getStyle('position');if(position==='absolute'||position==='fixed'){val=node[get]();node[set](val);}else{val=0;}}
|
||||
return val;}};Y.extend(Y.Anim,Y.Base,proto);},'3.0.0',{requires:['base-base','node-style']});
|
||||
8
include/javascript/yui3/build/anim/anim-color-min.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-color-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("anim-color",function(B){var A=Number;B.Anim.behaviors.color={set:function(F,D,I,H,C,G,E){I=B.Color.re_RGB.exec(B.Color.toRGB(I));H=B.Color.re_RGB.exec(B.Color.toRGB(H));if(!I||I.length<3||!H||H.length<3){B.error("invalid from or to passed to color behavior");}F._node.setStyle(D,"rgb("+[Math.floor(E(C,A(I[1]),A(H[1])-A(I[1]),G)),Math.floor(E(C,A(I[2]),A(H[2])-A(I[2]),G)),Math.floor(E(C,A(I[3]),A(H[3])-A(I[3]),G))].join(", ")+")");},get:function(D,C){var E=D._node.getComputedStyle(C);E=(E==="transparent")?"rgb(255, 255, 255)":E;return E;}};B.each(["backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],function(C,D){B.Anim.behaviors[C]=B.Anim.behaviors.color;});},"3.0.0",{requires:["anim-base"]});
|
||||
9
include/javascript/yui3/build/anim/anim-color.js
vendored
Normal file
9
include/javascript/yui3/build/anim/anim-color.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('anim-color',function(Y){var NUM=Number;Y.Anim.behaviors.color={set:function(anim,att,from,to,elapsed,duration,fn){from=Y.Color.re_RGB.exec(Y.Color.toRGB(from));to=Y.Color.re_RGB.exec(Y.Color.toRGB(to));if(!from||from.length<3||!to||to.length<3){Y.error('invalid from or to passed to color behavior');}
|
||||
anim._node.setStyle(att,'rgb('+[Math.floor(fn(elapsed,NUM(from[1]),NUM(to[1])-NUM(from[1]),duration)),Math.floor(fn(elapsed,NUM(from[2]),NUM(to[2])-NUM(from[2]),duration)),Math.floor(fn(elapsed,NUM(from[3]),NUM(to[3])-NUM(from[3]),duration))].join(', ')+')');},get:function(anim,att){var val=anim._node.getComputedStyle(att);val=(val==='transparent')?'rgb(255, 255, 255)':val;return val;}};Y.each(['backgroundColor','borderColor','borderTopColor','borderRightColor','borderBottomColor','borderLeftColor'],function(v,i){Y.Anim.behaviors[v]=Y.Anim.behaviors.color;});},'3.0.0',{requires:['anim-base']});
|
||||
8
include/javascript/yui3/build/anim/anim-curve-min.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-curve-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("anim-curve",function(A){A.Anim.behaviors.curve={set:function(F,C,I,H,B,G,E){I=I.slice.call(I);H=H.slice.call(H);var D=E(B,0,100,G)/100;H.unshift(I);F._node.setXY(A.Anim.getBezier(H,D));},get:function(C,B){return C._node.getXY();}};A.Anim.getBezier=function(F,E){var G=F.length;var D=[];for(var C=0;C<G;++C){D[C]=[F[C][0],F[C][1]];}for(var B=1;B<G;++B){for(C=0;C<G-B;++C){D[C][0]=(1-E)*D[C][0]+E*D[parseInt(C+1,10)][0];D[C][1]=(1-E)*D[C][1]+E*D[parseInt(C+1,10)][1];}}return[D[0][0],D[0][1]];};},"3.0.0",{requires:["anim-xy"]});
|
||||
10
include/javascript/yui3/build/anim/anim-curve.js
vendored
Normal file
10
include/javascript/yui3/build/anim/anim-curve.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('anim-curve',function(Y){Y.Anim.behaviors.curve={set:function(anim,att,from,to,elapsed,duration,fn){from=from.slice.call(from);to=to.slice.call(to);var t=fn(elapsed,0,100,duration)/100;to.unshift(from);anim._node.setXY(Y.Anim.getBezier(to,t));},get:function(anim,att){return anim._node.getXY();}};Y.Anim.getBezier=function(points,t){var n=points.length;var tmp=[];for(var i=0;i<n;++i){tmp[i]=[points[i][0],points[i][1]];}
|
||||
for(var j=1;j<n;++j){for(i=0;i<n-j;++i){tmp[i][0]=(1-t)*tmp[i][0]+t*tmp[parseInt(i+1,10)][0];tmp[i][1]=(1-t)*tmp[i][1]+t*tmp[parseInt(i+1,10)][1];}}
|
||||
return[tmp[0][0],tmp[0][1]];};},'3.0.0',{requires:['anim-xy']});
|
||||
8
include/javascript/yui3/build/anim/anim-easing-min.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-easing-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("anim-easing",function(A){A.Easing={easeNone:function(C,B,E,D){return E*C/D+B;},easeIn:function(C,B,E,D){return E*(C/=D)*C+B;},easeOut:function(C,B,E,D){return-E*(C/=D)*(C-2)+B;},easeBoth:function(C,B,E,D){if((C/=D/2)<1){return E/2*C*C+B;}return-E/2*((--C)*(C-2)-1)+B;},easeInStrong:function(C,B,E,D){return E*(C/=D)*C*C*C+B;},easeOutStrong:function(C,B,E,D){return-E*((C=C/D-1)*C*C*C-1)+B;},easeBothStrong:function(C,B,E,D){if((C/=D/2)<1){return E/2*C*C*C*C+B;}return-E/2*((C-=2)*C*C*C-2)+B;},elasticIn:function(D,B,H,G,C,F){var E;if(D===0){return B;}if((D/=G)===1){return B+H;}if(!F){F=G*0.3;}if(!C||C<Math.abs(H)){C=H;E=F/4;}else{E=F/(2*Math.PI)*Math.asin(H/C);}return-(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+B;},elasticOut:function(D,B,H,G,C,F){var E;if(D===0){return B;}if((D/=G)===1){return B+H;}if(!F){F=G*0.3;}if(!C||C<Math.abs(H)){C=H;E=F/4;}else{E=F/(2*Math.PI)*Math.asin(H/C);}return C*Math.pow(2,-10*D)*Math.sin((D*G-E)*(2*Math.PI)/F)+H+B;},elasticBoth:function(D,B,H,G,C,F){var E;if(D===0){return B;}if((D/=G/2)===2){return B+H;}if(!F){F=G*(0.3*1.5);}if(!C||C<Math.abs(H)){C=H;E=F/4;}else{E=F/(2*Math.PI)*Math.asin(H/C);}if(D<1){return-0.5*(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+B;}return C*Math.pow(2,-10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F)*0.5+H+B;},backIn:function(C,B,F,E,D){if(D===undefined){D=1.70158;}if(C===E){C-=0.001;}return F*(C/=E)*C*((D+1)*C-D)+B;},backOut:function(C,B,F,E,D){if(typeof D==="undefined"){D=1.70158;}return F*((C=C/E-1)*C*((D+1)*C+D)+1)+B;},backBoth:function(C,B,F,E,D){if(typeof D==="undefined"){D=1.70158;}if((C/=E/2)<1){return F/2*(C*C*(((D*=(1.525))+1)*C-D))+B;}return F/2*((C-=2)*C*(((D*=(1.525))+1)*C+D)+2)+B;},bounceIn:function(C,B,E,D){return E-A.Easing.bounceOut(D-C,0,E,D)+B;},bounceOut:function(C,B,E,D){if((C/=D)<(1/2.75)){return E*(7.5625*C*C)+B;}else{if(C<(2/2.75)){return E*(7.5625*(C-=(1.5/2.75))*C+0.75)+B;}else{if(C<(2.5/2.75)){return E*(7.5625*(C-=(2.25/2.75))*C+0.9375)+B;}}}return E*(7.5625*(C-=(2.625/2.75))*C+0.984375)+B;},bounceBoth:function(C,B,E,D){if(C<D/2){return A.Easing.bounceIn(C*2,0,E,D)*0.5+B;}return A.Easing.bounceOut(C*2-D,0,E,D)*0.5+E*0.5+B;}};},"3.0.0",{requires:["anim-base"]});
|
||||
33
include/javascript/yui3/build/anim/anim-easing.js
vendored
Normal file
33
include/javascript/yui3/build/anim/anim-easing.js
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('anim-easing',function(Y){Y.Easing={easeNone:function(t,b,c,d){return c*t/d+b;},easeIn:function(t,b,c,d){return c*(t/=d)*t+b;},easeOut:function(t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeBoth:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
|
||||
return-c/2*((--t)*(t-2)-1)+b;},easeInStrong:function(t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutStrong:function(t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeBothStrong:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b;}
|
||||
return-c/2*((t-=2)*t*t*t-2)+b;},elasticIn:function(t,b,c,d,a,p){var s;if(t===0){return b;}
|
||||
if((t/=d)===1){return b+c;}
|
||||
if(!p){p=d*0.3;}
|
||||
if(!a||a<Math.abs(c)){a=c;s=p/4;}
|
||||
else{s=p/(2*Math.PI)*Math.asin(c/a);}
|
||||
return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},elasticOut:function(t,b,c,d,a,p){var s;if(t===0){return b;}
|
||||
if((t/=d)===1){return b+c;}
|
||||
if(!p){p=d*0.3;}
|
||||
if(!a||a<Math.abs(c)){a=c;s=p/4;}
|
||||
else{s=p/(2*Math.PI)*Math.asin(c/a);}
|
||||
return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},elasticBoth:function(t,b,c,d,a,p){var s;if(t===0){return b;}
|
||||
if((t/=d/2)===2){return b+c;}
|
||||
if(!p){p=d*(0.3*1.5);}
|
||||
if(!a||a<Math.abs(c)){a=c;s=p/4;}
|
||||
else{s=p/(2*Math.PI)*Math.asin(c/a);}
|
||||
if(t<1){return-0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;}
|
||||
return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b;},backIn:function(t,b,c,d,s){if(s===undefined){s=1.70158;}
|
||||
if(t===d){t-=0.001;}
|
||||
return c*(t/=d)*t*((s+1)*t-s)+b;},backOut:function(t,b,c,d,s){if(typeof s==='undefined'){s=1.70158;}
|
||||
return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},backBoth:function(t,b,c,d,s){if(typeof s==='undefined'){s=1.70158;}
|
||||
if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;}
|
||||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},bounceIn:function(t,b,c,d){return c-Y.Easing.bounceOut(d-t,0,c,d)+b;},bounceOut:function(t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b;}
|
||||
return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b;},bounceBoth:function(t,b,c,d){if(t<d/2){return Y.Easing.bounceIn(t*2,0,c,d)*0.5+b;}
|
||||
return Y.Easing.bounceOut(t*2-d,0,c,d)*0.5+c*0.5+b;}};},'3.0.0',{requires:['anim-base']});
|
||||
8
include/javascript/yui3/build/anim/anim-min.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
include/javascript/yui3/build/anim/anim-node-plugin-min.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-node-plugin-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("anim-node-plugin",function(B){var A=function(C){C=(C)?B.merge(C):{};C.node=C.host;A.superclass.constructor.apply(this,arguments);};A.NAME="nodefx";A.NS="fx";B.extend(A,B.Anim);B.namespace("Plugin");B.Plugin.NodeFX=A;},"3.0.0",{requires:["node-pluginhost","anim-base"]});
|
||||
8
include/javascript/yui3/build/anim/anim-node-plugin.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-node-plugin.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('anim-node-plugin',function(Y){var NodeFX=function(config){config=(config)?Y.merge(config):{};config.node=config.host;NodeFX.superclass.constructor.apply(this,arguments);};NodeFX.NAME="nodefx";NodeFX.NS="fx";Y.extend(NodeFX,Y.Anim);Y.namespace('Plugin');Y.Plugin.NodeFX=NodeFX;},'3.0.0',{requires:['node-pluginhost','anim-base']});
|
||||
8
include/javascript/yui3/build/anim/anim-scroll-min.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-scroll-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("anim-scroll",function(B){var A=Number;B.Anim.behaviors.scroll={set:function(F,G,I,J,K,E,H){var D=F._node,C=([H(K,A(I[0]),A(J[0])-A(I[0]),E),H(K,A(I[1]),A(J[1])-A(I[1]),E)]);if(C[0]){D.set("scrollLeft",C[0]);}if(C[1]){D.set("scrollTop",C[1]);}},get:function(D){var C=D._node;return[C.get("scrollLeft"),C.get("scrollTop")];}};},"3.0.0",{requires:["anim-base"]});
|
||||
10
include/javascript/yui3/build/anim/anim-scroll.js
vendored
Normal file
10
include/javascript/yui3/build/anim/anim-scroll.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('anim-scroll',function(Y){var NUM=Number;Y.Anim.behaviors.scroll={set:function(anim,att,from,to,elapsed,duration,fn){var
|
||||
node=anim._node,val=([fn(elapsed,NUM(from[0]),NUM(to[0])-NUM(from[0]),duration),fn(elapsed,NUM(from[1]),NUM(to[1])-NUM(from[1]),duration)]);if(val[0]){node.set('scrollLeft',val[0]);}
|
||||
if(val[1]){node.set('scrollTop',val[1]);}},get:function(anim){var node=anim._node;return[node.get('scrollLeft'),node.get('scrollTop')];}};},'3.0.0',{requires:['anim-base']});
|
||||
8
include/javascript/yui3/build/anim/anim-xy-min.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-xy-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("anim-xy",function(B){var A=Number;B.Anim.behaviors.xy={set:function(F,D,I,H,C,G,E){F._node.setXY([E(C,A(I[0]),A(H[0])-A(I[0]),G),E(C,A(I[1]),A(H[1])-A(I[1]),G)]);},get:function(C){return C._node.getXY();}};},"3.0.0",{requires:["anim-base","node-screen"]});
|
||||
8
include/javascript/yui3/build/anim/anim-xy.js
vendored
Normal file
8
include/javascript/yui3/build/anim/anim-xy.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('anim-xy',function(Y){var NUM=Number;Y.Anim.behaviors.xy={set:function(anim,att,from,to,elapsed,duration,fn){anim._node.setXY([fn(elapsed,NUM(from[0]),NUM(to[0])-NUM(from[0]),duration),fn(elapsed,NUM(from[1]),NUM(to[1])-NUM(from[1]),duration)]);},get:function(anim){return anim._node.getXY();}};},'3.0.0',{requires:['anim-base','node-screen']});
|
||||
55
include/javascript/yui3/build/anim/anim.js
vendored
Normal file
55
include/javascript/yui3/build/anim/anim.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('anim-base',function(Y){var RUNNING='running',START_TIME='startTime',ELAPSED_TIME='elapsedTime',START='start',TWEEN='tween',END='end',NODE='node',PAUSED='paused',REVERSE='reverse',ITERATION_COUNT='iterationCount',NUM=Number;var _running={},_instances={},_timer;Y.Anim=function(){Y.Anim.superclass.constructor.apply(this,arguments);_instances[Y.stamp(this)]=this;};Y.Anim.NAME='anim';Y.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i;Y.Anim.DEFAULT_UNIT='px';Y.Anim.DEFAULT_EASING=function(t,b,c,d){return c*t/d+b;};Y.Anim.behaviors={left:{get:function(anim,attr){return anim._getOffset(attr);}}};Y.Anim.behaviors.top=Y.Anim.behaviors.left;Y.Anim.DEFAULT_SETTER=function(anim,att,from,to,elapsed,duration,fn,unit){unit=unit||'';anim._node.setStyle(att,fn(elapsed,NUM(from),NUM(to)-NUM(from),duration)+unit);};Y.Anim.DEFAULT_GETTER=function(anim,prop){return anim._node.getComputedStyle(prop);};Y.Anim.ATTRS={node:{setter:function(node){node=Y.get(node);this._node=node;if(!node){}
|
||||
return node;}},duration:{value:1},easing:{value:Y.Anim.DEFAULT_EASING,setter:function(val){if(typeof val==='string'&&Y.Easing){return Y.Easing[val];}}},from:{},to:{},startTime:{value:0,readOnly:true},elapsedTime:{value:0,readOnly:true},running:{getter:function(){return!!_running[Y.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}};Y.Anim.run=function(){for(var i in _instances){if(_instances[i].run){_instances[i].run();}}};Y.Anim.pause=function(){for(var i in _running){if(_running[i].pause){_running[i].pause();}}
|
||||
Y.Anim._stopTimer();};Y.Anim.stop=function(){for(var i in _running){if(_running[i].stop){_running[i].stop();}}
|
||||
Y.Anim._stopTimer();};Y.Anim._startTimer=function(){if(!_timer){_timer=setInterval(Y.Anim._runFrame,1);}};Y.Anim._stopTimer=function(){clearInterval(_timer);_timer=0;};Y.Anim._runFrame=function(){var done=true;for(var anim in _running){if(_running[anim]._runFrame){done=false;_running[anim]._runFrame();}}
|
||||
if(done){Y.Anim._stopTimer();}};Y.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;var proto={run:function(){if(!this.get(RUNNING)){this._start();}else if(this.get(PAUSED)){this._resume();}
|
||||
return this;},pause:function(){if(this.get(RUNNING)){this._pause();}
|
||||
return this;},stop:function(finish){if(this.get(RUNNING)||this.get(PAUSED)){this._end(finish);}
|
||||
return this;},_added:false,_start:function(){this._set(START_TIME,new Date()-this.get(ELAPSED_TIME));this._actualFrames=0;if(!this.get(PAUSED)){this._initAnimAttr();}
|
||||
_running[Y.stamp(this)]=this;Y.Anim._startTimer();this.fire(START);},_pause:function(){this._set(START_TIME,null);this._set(PAUSED,true);delete _running[Y.stamp(this)];this.fire('pause');},_resume:function(){this._set(PAUSED,false);_running[Y.stamp(this)]=this;this.fire('resume');},_end:function(finish){this._set(START_TIME,null);this._set(ELAPSED_TIME,0);this._set(PAUSED,false);delete _running[Y.stamp(this)];this.fire(END,{elapsed:this.get(ELAPSED_TIME)});},_runFrame:function(){var attr=this._runtimeAttr,customAttr=Y.Anim.behaviors,easing=attr.easing,d=attr.duration,t=new Date()-this.get(START_TIME),reversed=this.get(REVERSE),done=(t>=d),lastFrame=d,attribute,setter;if(reversed){t=d-t;done=(t<=0);lastFrame=0;}
|
||||
for(var i in attr){if(attr[i].to){attribute=attr[i];setter=(i in customAttr&&'set'in customAttr[i])?customAttr[i].set:Y.Anim.DEFAULT_SETTER;if(!done){setter(this,i,attribute.from,attribute.to,t,d,easing,attribute.unit);}else{setter(this,i,attribute.from,attribute.to,lastFrame,d,easing,attribute.unit);}}}
|
||||
this._actualFrames+=1;this._set(ELAPSED_TIME,t);this.fire(TWEEN);if(done){this._lastFrame();}},_lastFrame:function(){var iter=this.get('iterations'),iterCount=this.get(ITERATION_COUNT);iterCount+=1;if(iter==='infinite'||iterCount<iter){if(this.get('direction')==='alternate'){this.set(REVERSE,!this.get(REVERSE));}
|
||||
this.fire('iteration');}else{iterCount=0;this._end();}
|
||||
this._set(START_TIME,new Date());this._set(ITERATION_COUNT,iterCount);},_initAnimAttr:function(){var from=this.get('from')||{},to=this.get('to')||{},dur=this.get('duration')*1000,node=this.get(NODE),easing=this.get('easing')||{},attr={},customAttr=Y.Anim.behaviors,unit,begin,end;Y.each(to,function(val,name){if(typeof val==='function'){val=val.call(this,node);}
|
||||
begin=from[name];if(begin===undefined){begin=(name in customAttr&&'get'in customAttr[name])?customAttr[name].get(this,name):Y.Anim.DEFAULT_GETTER(this,name);}else if(typeof begin==='function'){begin=begin.call(this,node);}
|
||||
var mFrom=Y.Anim.RE_UNITS.exec(begin);var mTo=Y.Anim.RE_UNITS.exec(val);begin=mFrom?mFrom[1]:begin;end=mTo?mTo[1]:val;unit=mTo?mTo[2]:mFrom?mFrom[2]:'';if(!unit&&Y.Anim.RE_DEFAULT_UNIT.test(name)){unit=Y.Anim.DEFAULT_UNIT;}
|
||||
if(!begin||!end){Y.error('invalid "from" or "to" for "'+name+'"','Anim');return;}
|
||||
attr[name]={from:begin,to:end,unit:unit};attr.duration=dur;attr.easing=easing;},this);this._runtimeAttr=attr;},_getOffset:function(attr){var node=this._node,val=node.getComputedStyle(attr),get=(attr==='left')?'getX':'getY',set=(attr==='left')?'setX':'setY';if(val==='auto'){var position=node.getStyle('position');if(position==='absolute'||position==='fixed'){val=node[get]();node[set](val);}else{val=0;}}
|
||||
return val;}};Y.extend(Y.Anim,Y.Base,proto);},'3.0.0',{requires:['base-base','node-style']});YUI.add('anim-color',function(Y){var NUM=Number;Y.Anim.behaviors.color={set:function(anim,att,from,to,elapsed,duration,fn){from=Y.Color.re_RGB.exec(Y.Color.toRGB(from));to=Y.Color.re_RGB.exec(Y.Color.toRGB(to));if(!from||from.length<3||!to||to.length<3){Y.error('invalid from or to passed to color behavior');}
|
||||
anim._node.setStyle(att,'rgb('+[Math.floor(fn(elapsed,NUM(from[1]),NUM(to[1])-NUM(from[1]),duration)),Math.floor(fn(elapsed,NUM(from[2]),NUM(to[2])-NUM(from[2]),duration)),Math.floor(fn(elapsed,NUM(from[3]),NUM(to[3])-NUM(from[3]),duration))].join(', ')+')');},get:function(anim,att){var val=anim._node.getComputedStyle(att);val=(val==='transparent')?'rgb(255, 255, 255)':val;return val;}};Y.each(['backgroundColor','borderColor','borderTopColor','borderRightColor','borderBottomColor','borderLeftColor'],function(v,i){Y.Anim.behaviors[v]=Y.Anim.behaviors.color;});},'3.0.0',{requires:['anim-base']});YUI.add('anim-curve',function(Y){Y.Anim.behaviors.curve={set:function(anim,att,from,to,elapsed,duration,fn){from=from.slice.call(from);to=to.slice.call(to);var t=fn(elapsed,0,100,duration)/100;to.unshift(from);anim._node.setXY(Y.Anim.getBezier(to,t));},get:function(anim,att){return anim._node.getXY();}};Y.Anim.getBezier=function(points,t){var n=points.length;var tmp=[];for(var i=0;i<n;++i){tmp[i]=[points[i][0],points[i][1]];}
|
||||
for(var j=1;j<n;++j){for(i=0;i<n-j;++i){tmp[i][0]=(1-t)*tmp[i][0]+t*tmp[parseInt(i+1,10)][0];tmp[i][1]=(1-t)*tmp[i][1]+t*tmp[parseInt(i+1,10)][1];}}
|
||||
return[tmp[0][0],tmp[0][1]];};},'3.0.0',{requires:['anim-xy']});YUI.add('anim-easing',function(Y){Y.Easing={easeNone:function(t,b,c,d){return c*t/d+b;},easeIn:function(t,b,c,d){return c*(t/=d)*t+b;},easeOut:function(t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeBoth:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
|
||||
return-c/2*((--t)*(t-2)-1)+b;},easeInStrong:function(t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutStrong:function(t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeBothStrong:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b;}
|
||||
return-c/2*((t-=2)*t*t*t-2)+b;},elasticIn:function(t,b,c,d,a,p){var s;if(t===0){return b;}
|
||||
if((t/=d)===1){return b+c;}
|
||||
if(!p){p=d*0.3;}
|
||||
if(!a||a<Math.abs(c)){a=c;s=p/4;}
|
||||
else{s=p/(2*Math.PI)*Math.asin(c/a);}
|
||||
return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},elasticOut:function(t,b,c,d,a,p){var s;if(t===0){return b;}
|
||||
if((t/=d)===1){return b+c;}
|
||||
if(!p){p=d*0.3;}
|
||||
if(!a||a<Math.abs(c)){a=c;s=p/4;}
|
||||
else{s=p/(2*Math.PI)*Math.asin(c/a);}
|
||||
return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},elasticBoth:function(t,b,c,d,a,p){var s;if(t===0){return b;}
|
||||
if((t/=d/2)===2){return b+c;}
|
||||
if(!p){p=d*(0.3*1.5);}
|
||||
if(!a||a<Math.abs(c)){a=c;s=p/4;}
|
||||
else{s=p/(2*Math.PI)*Math.asin(c/a);}
|
||||
if(t<1){return-0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;}
|
||||
return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b;},backIn:function(t,b,c,d,s){if(s===undefined){s=1.70158;}
|
||||
if(t===d){t-=0.001;}
|
||||
return c*(t/=d)*t*((s+1)*t-s)+b;},backOut:function(t,b,c,d,s){if(typeof s==='undefined'){s=1.70158;}
|
||||
return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},backBoth:function(t,b,c,d,s){if(typeof s==='undefined'){s=1.70158;}
|
||||
if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;}
|
||||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},bounceIn:function(t,b,c,d){return c-Y.Easing.bounceOut(d-t,0,c,d)+b;},bounceOut:function(t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b;}
|
||||
return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b;},bounceBoth:function(t,b,c,d){if(t<d/2){return Y.Easing.bounceIn(t*2,0,c,d)*0.5+b;}
|
||||
return Y.Easing.bounceOut(t*2-d,0,c,d)*0.5+c*0.5+b;}};},'3.0.0',{requires:['anim-base']});YUI.add('anim-node-plugin',function(Y){var NodeFX=function(config){config=(config)?Y.merge(config):{};config.node=config.host;NodeFX.superclass.constructor.apply(this,arguments);};NodeFX.NAME="nodefx";NodeFX.NS="fx";Y.extend(NodeFX,Y.Anim);Y.namespace('Plugin');Y.Plugin.NodeFX=NodeFX;},'3.0.0',{requires:['node-pluginhost','anim-base']});YUI.add('anim-scroll',function(Y){var NUM=Number;Y.Anim.behaviors.scroll={set:function(anim,att,from,to,elapsed,duration,fn){var
|
||||
node=anim._node,val=([fn(elapsed,NUM(from[0]),NUM(to[0])-NUM(from[0]),duration),fn(elapsed,NUM(from[1]),NUM(to[1])-NUM(from[1]),duration)]);if(val[0]){node.set('scrollLeft',val[0]);}
|
||||
if(val[1]){node.set('scrollTop',val[1]);}},get:function(anim){var node=anim._node;return[node.get('scrollLeft'),node.get('scrollTop')];}};},'3.0.0',{requires:['anim-base']});YUI.add('anim-xy',function(Y){var NUM=Number;Y.Anim.behaviors.xy={set:function(anim,att,from,to,elapsed,duration,fn){anim._node.setXY([fn(elapsed,NUM(from[0]),NUM(to[0])-NUM(from[0]),duration),fn(elapsed,NUM(from[1]),NUM(to[1])-NUM(from[1]),duration)]);},get:function(anim){return anim._node.getXY();}};},'3.0.0',{requires:['anim-base','node-screen']});YUI.add('anim',function(Y){},'3.0.0',{use:['anim-base','anim-color','anim-curve','anim-easing','anim-node-plugin','anim-scroll','anim-xy'],skinnable:false});
|
||||
8
include/javascript/yui3/build/async-queue/async-queue-min.js
vendored
Normal file
8
include/javascript/yui3/build/async-queue/async-queue-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("async-queue",function(G){G.AsyncQueue=function(){this._init();this.add.apply(this,arguments);};var E=G.AsyncQueue,C="execute",B="shift",D="promote",H="remove",A=G.Lang.isObject,F=G.Lang.isFunction;E.defaults=G.mix({autoContinue:true,iterations:1,timeout:10,until:function(){this.iterations|=0;return this.iterations<=0;}},G.config.queueDefaults||{});G.extend(E,G.EventTarget,{_running:false,_init:function(){G.EventTarget.call(this,{emitFacade:true});this._q=[];this.defaults={};this._initEvents();},_initEvents:function(){this.publish("execute",{defaultFn:this._defExecFn,emitFacade:true});this.publish("shift",{defaultFn:this._defShiftFn,emitFacade:true});this.publish("add",{defaultFn:this._defAddFn,emitFacade:true});this.publish("promote",{defaultFn:this._defPromoteFn,emitFacade:true});this.publish("remove",{defaultFn:this._defRemoveFn,emitFacade:true});},next:function(){var I;while(this._q.length){I=this._q[0]=this._prepare(this._q[0]);if(I&&I.until()){this.fire(B,{callback:I});I=null;}else{break;}}return I||null;},_defShiftFn:function(I){if(this.indexOf(I.callback)===0){this._q.shift();}},_prepare:function(K){if(F(K)&&K._prepared){return K;}var I=G.merge(E.defaults,{context:this,args:[],_prepared:true},this.defaults,(F(K)?{fn:K}:K)),J=G.bind(function(){if(!J._running){J.iterations--;}if(F(J.fn)){J.fn.apply(J.context||G,G.Array(J.args));}},this);return G.mix(J,I);},run:function(){var J,I=true;for(J=this.next();I&&J&&!this.isRunning();J=this.next()){I=(J.timeout<0)?this._execute(J):this._schedule(J);}if(!J){this.fire("complete");}return this;},_execute:function(J){this._running=J._running=true;J.iterations--;this.fire(C,{callback:J});var I=this._running&&J.autoContinue;this._running=J._running=false;return I;},_schedule:function(I){this._running=G.later(I.timeout,this,function(){if(this._execute(I)){this.run();}});return false;},isRunning:function(){return!!this._running;},_defExecFn:function(I){I.callback();},add:function(){this.fire("add",{callbacks:G.Array(arguments,0,true)});return this;},_defAddFn:function(J){var K=this._q,I=[];G.Array.each(J.callbacks,function(L){if(A(L)){K.push(L);I.push(L);}});J.added=I;},pause:function(){if(A(this._running)){this._running.cancel();}this._running=false;return this;},stop:function(){this._q=[];return this.pause();},indexOf:function(L){var J=0,I=this._q.length,K;for(;J<I;++J){K=this._q[J];if(K===L||K.id===L){return J;}}return-1;},getCallback:function(J){var I=this.indexOf(J);return(I>-1)?this._q[I]:null;},promote:function(K){var J={callback:K},I;if(this.isRunning()){I=this.after(B,function(){this.fire(D,J);I.detach();},this);}else{this.fire(D,J);}return this;},_defPromoteFn:function(K){var I=this.indexOf(K.callback),J=(I>-1)?this._q.splice(I,1)[0]:null;K.promoted=J;if(J){this._q.unshift(J);}},remove:function(K){var J={callback:K},I;if(this.isRunning()){I=this.after(B,function(){this.fire(H,J);I.detach();},this);}else{this.fire(H,J);}return this;},_defRemoveFn:function(J){var I=this.indexOf(J.callback);J.removed=(I>-1)?this._q.splice(I,1)[0]:null;},size:function(){if(!this.isRunning()){this.next();}return this._q.length;}});},"3.0.0",{requires:["event-custom"]});
|
||||
19
include/javascript/yui3/build/async-queue/async-queue.js
vendored
Normal file
19
include/javascript/yui3/build/async-queue/async-queue.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('async-queue',function(Y){Y.AsyncQueue=function(){this._init();this.add.apply(this,arguments);};var Queue=Y.AsyncQueue,EXECUTE='execute',SHIFT='shift',PROMOTE='promote',REMOVE='remove',isObject=Y.Lang.isObject,isFunction=Y.Lang.isFunction;Queue.defaults=Y.mix({autoContinue:true,iterations:1,timeout:10,until:function(){this.iterations|=0;return this.iterations<=0;}},Y.config.queueDefaults||{});Y.extend(Queue,Y.EventTarget,{_running:false,_init:function(){Y.EventTarget.call(this,{emitFacade:true});this._q=[];this.defaults={};this._initEvents();},_initEvents:function(){this.publish('execute',{defaultFn:this._defExecFn,emitFacade:true});this.publish('shift',{defaultFn:this._defShiftFn,emitFacade:true});this.publish('add',{defaultFn:this._defAddFn,emitFacade:true});this.publish('promote',{defaultFn:this._defPromoteFn,emitFacade:true});this.publish('remove',{defaultFn:this._defRemoveFn,emitFacade:true});},next:function(){var callback;while(this._q.length){callback=this._q[0]=this._prepare(this._q[0]);if(callback&&callback.until()){this.fire(SHIFT,{callback:callback});callback=null;}else{break;}}
|
||||
return callback||null;},_defShiftFn:function(e){if(this.indexOf(e.callback)===0){this._q.shift();}},_prepare:function(callback){if(isFunction(callback)&&callback._prepared){return callback;}
|
||||
var config=Y.merge(Queue.defaults,{context:this,args:[],_prepared:true},this.defaults,(isFunction(callback)?{fn:callback}:callback)),wrapper=Y.bind(function(){if(!wrapper._running){wrapper.iterations--;}
|
||||
if(isFunction(wrapper.fn)){wrapper.fn.apply(wrapper.context||Y,Y.Array(wrapper.args));}},this);return Y.mix(wrapper,config);},run:function(){var callback,cont=true;for(callback=this.next();cont&&callback&&!this.isRunning();callback=this.next())
|
||||
{cont=(callback.timeout<0)?this._execute(callback):this._schedule(callback);}
|
||||
if(!callback){this.fire('complete');}
|
||||
return this;},_execute:function(callback){this._running=callback._running=true;callback.iterations--;this.fire(EXECUTE,{callback:callback});var cont=this._running&&callback.autoContinue;this._running=callback._running=false;return cont;},_schedule:function(callback){this._running=Y.later(callback.timeout,this,function(){if(this._execute(callback)){this.run();}});return false;},isRunning:function(){return!!this._running;},_defExecFn:function(e){e.callback();},add:function(){this.fire('add',{callbacks:Y.Array(arguments,0,true)});return this;},_defAddFn:function(e){var _q=this._q,added=[];Y.Array.each(e.callbacks,function(c){if(isObject(c)){_q.push(c);added.push(c);}});e.added=added;},pause:function(){if(isObject(this._running)){this._running.cancel();}
|
||||
this._running=false;return this;},stop:function(){this._q=[];return this.pause();},indexOf:function(callback){var i=0,len=this._q.length,c;for(;i<len;++i){c=this._q[i];if(c===callback||c.id===callback){return i;}}
|
||||
return-1;},getCallback:function(id){var i=this.indexOf(id);return(i>-1)?this._q[i]:null;},promote:function(callback){var payload={callback:callback},e;if(this.isRunning()){e=this.after(SHIFT,function(){this.fire(PROMOTE,payload);e.detach();},this);}else{this.fire(PROMOTE,payload);}
|
||||
return this;},_defPromoteFn:function(e){var i=this.indexOf(e.callback),promoted=(i>-1)?this._q.splice(i,1)[0]:null;e.promoted=promoted;if(promoted){this._q.unshift(promoted);}},remove:function(callback){var payload={callback:callback},e;if(this.isRunning()){e=this.after(SHIFT,function(){this.fire(REMOVE,payload);e.detach();},this);}else{this.fire(REMOVE,payload);}
|
||||
return this;},_defRemoveFn:function(e){var i=this.indexOf(e.callback);e.removed=(i>-1)?this._q.splice(i,1)[0]:null;},size:function(){if(!this.isRunning()){this.next();}
|
||||
return this._q.length;}});},'3.0.0',{requires:['event-custom']});
|
||||
8
include/javascript/yui3/build/attribute/attribute-base-min.js
vendored
Normal file
8
include/javascript/yui3/build/attribute/attribute-base-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
37
include/javascript/yui3/build/attribute/attribute-base.js
vendored
Normal file
37
include/javascript/yui3/build/attribute/attribute-base.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('attribute-base',function(Y){Y.State=function(){this.data={};};Y.State.prototype={add:function(name,key,val){var d=this.data;d[key]=d[key]||{};d[key][name]=val;},addAll:function(name,o){var key;for(key in o){if(o.hasOwnProperty(key)){this.add(name,key,o[key]);}}},remove:function(name,key){var d=this.data;if(d[key]&&(name in d[key])){delete d[key][name];}},removeAll:function(name,o){var d=this.data;Y.each(o||d,function(v,k){if(Y.Lang.isString(k)){this.remove(name,k);}else{this.remove(name,v);}},this);},get:function(name,key){var d=this.data;return(d[key]&&name in d[key])?d[key][name]:undefined;},getAll:function(name){var d=this.data,o;Y.each(d,function(v,k){if(name in d[k]){o=o||{};o[k]=v[name];}},this);return o;}};var O=Y.Object,Lang=Y.Lang,EventTarget=Y.EventTarget,DOT=".",CHANGE="Change",GETTER="getter",SETTER="setter",READ_ONLY="readOnly",WRITE_ONCE="writeOnce",VALIDATOR="validator",VALUE="value",VALUE_FN="valueFn",BROADCAST="broadcast",LAZY_ADD="lazyAdd",BYPASS_PROXY="_bypassProxy",ADDED="added",INITIALIZING="initializing",INIT_VALUE="initValue",PUBLISHED="published",DEF_VALUE="defaultValue",LAZY="lazy",IS_LAZY_ADD="isLazyAdd",INVALID_VALUE,MODIFIABLE={};MODIFIABLE[READ_ONLY]=1;MODIFIABLE[WRITE_ONCE]=1;MODIFIABLE[GETTER]=1;MODIFIABLE[BROADCAST]=1;function Attribute(){var host=this,attrs=this.constructor.ATTRS,Base=Y.Base;host._ATTR_E_FACADE={};EventTarget.call(host,{emitFacade:true});host._conf=host._state=new Y.State();host._stateProxy=host._stateProxy||null;host._requireAddAttr=host._requireAddAttr||false;if(attrs&&!(Base&&host instanceof Base)){host.addAttrs(this._protectAttrs(attrs));}}
|
||||
Attribute.INVALID_VALUE={};INVALID_VALUE=Attribute.INVALID_VALUE;Attribute._ATTR_CFG=[SETTER,GETTER,VALIDATOR,VALUE,VALUE_FN,WRITE_ONCE,READ_ONLY,LAZY_ADD,BROADCAST,BYPASS_PROXY];Attribute.prototype={addAttr:function(name,config,lazy){var host=this,state=host._state,value,hasValue;lazy=(LAZY_ADD in config)?config[LAZY_ADD]:lazy;if(lazy&&!host.attrAdded(name)){state.add(name,LAZY,config||{});state.add(name,ADDED,true);}else{if(!host.attrAdded(name)||state.get(name,IS_LAZY_ADD)){config=config||{};hasValue=(VALUE in config);if(hasValue){value=config.value;delete config.value;}
|
||||
config.added=true;config.initializing=true;state.addAll(name,config);if(hasValue){host.set(name,value);}
|
||||
state.remove(name,INITIALIZING);}}
|
||||
return host;},attrAdded:function(name){return!!this._state.get(name,ADDED);},modifyAttr:function(name,config){var host=this,prop,state;if(host.attrAdded(name)){if(host._isLazyAttr(name)){host._addLazyAttr(name);}
|
||||
state=host._state;for(prop in config){if(MODIFIABLE[prop]&&config.hasOwnProperty(prop)){state.add(name,prop,config[prop]);if(prop===BROADCAST){state.remove(name,PUBLISHED);}}}}},removeAttr:function(name){this._state.removeAll(name);},get:function(name){return this._getAttr(name);},_isLazyAttr:function(name){return this._state.get(name,LAZY);},_addLazyAttr:function(name){var state=this._state,lazyCfg=state.get(name,LAZY);state.add(name,IS_LAZY_ADD,true);state.remove(name,LAZY);this.addAttr(name,lazyCfg);},set:function(name,val,opts){return this._setAttr(name,val,opts);},reset:function(name){var host=this,added;if(name){if(host._isLazyAttr(name)){host._addLazyAttr(name);}
|
||||
host.set(name,host._state.get(name,INIT_VALUE));}else{added=host._state.data.added;Y.each(added,function(v,n){host.reset(n);},host);}
|
||||
return host;},_set:function(name,val,opts){return this._setAttr(name,val,opts,true);},_getAttr:function(name){var host=this,fullName=name,state=host._state,path,getter,val,cfg;if(name.indexOf(DOT)!==-1){path=name.split(DOT);name=path.shift();}
|
||||
if(host._tCfgs&&host._tCfgs[name]){cfg={};cfg[name]=host._tCfgs[name];delete host._tCfgs[name];host._addAttrs(cfg,host._tVals);}
|
||||
if(host._isLazyAttr(name)){host._addLazyAttr(name);}
|
||||
val=host._getStateVal(name);getter=state.get(name,GETTER);val=(getter)?getter.call(host,val,fullName):val;val=(path)?O.getValue(val,path):val;return val;},_setAttr:function(name,val,opts,force){var allowSet=true,state=this._state,stateProxy=this._stateProxy,data=state.data,initialSet,strPath,path,currVal;if(name.indexOf(DOT)!==-1){strPath=name;path=name.split(DOT);name=path.shift();}
|
||||
if(this._isLazyAttr(name)){this._addLazyAttr(name);}
|
||||
initialSet=(!data.value||!(name in data.value));if(stateProxy&&name in stateProxy&&!this._state.get(name,BYPASS_PROXY)){initialSet=false;}
|
||||
if(this._requireAddAttr&&!this.attrAdded(name)){}else{if(!initialSet&&!force){if(state.get(name,WRITE_ONCE)){allowSet=false;}
|
||||
if(state.get(name,READ_ONLY)){allowSet=false;}}
|
||||
if(allowSet){if(!initialSet){currVal=this.get(name);}
|
||||
if(path){val=O.setValue(Y.clone(currVal),path,val);if(val===undefined){allowSet=false;}}
|
||||
if(allowSet){if(state.get(name,INITIALIZING)){this._setAttrVal(name,strPath,currVal,val);}else{this._fireAttrChange(name,strPath,currVal,val,opts);}}}}
|
||||
return this;},_fireAttrChange:function(attrName,subAttrName,currVal,newVal,opts){var host=this,eventName=attrName+CHANGE,state=host._state,facade;if(!state.get(attrName,PUBLISHED)){host.publish(eventName,{queuable:false,defaultFn:host._defAttrChangeFn,silent:true,broadcast:state.get(attrName,BROADCAST)});state.add(attrName,PUBLISHED,true);}
|
||||
facade=(opts)?Y.merge(opts):host._ATTR_E_FACADE;facade.type=eventName;facade.attrName=attrName;facade.subAttrName=subAttrName;facade.prevVal=currVal;facade.newVal=newVal;host.fire(facade);},_defAttrChangeFn:function(e){if(!this._setAttrVal(e.attrName,e.subAttrName,e.prevVal,e.newVal)){e.stopImmediatePropagation();}else{e.newVal=this._getStateVal(e.attrName);}},_getStateVal:function(name){var stateProxy=this._stateProxy;return stateProxy&&(name in stateProxy)&&!this._state.get(name,BYPASS_PROXY)?stateProxy[name]:this._state.get(name,VALUE);},_setStateVal:function(name,value){var stateProxy=this._stateProxy;if(stateProxy&&(name in stateProxy)&&!this._state.get(name,BYPASS_PROXY)){stateProxy[name]=value;}else{this._state.add(name,VALUE,value);}},_setAttrVal:function(attrName,subAttrName,prevVal,newVal){var host=this,allowSet=true,state=host._state,validator=state.get(attrName,VALIDATOR),setter=state.get(attrName,SETTER),initializing=state.get(attrName,INITIALIZING),prevValRaw=this._getStateVal(attrName),name=subAttrName||attrName,retVal,valid;if(validator){valid=validator.call(host,newVal,name);if(!valid&&initializing){newVal=state.get(attrName,DEF_VALUE);valid=true;}}
|
||||
if(!validator||valid){if(setter){retVal=setter.call(host,newVal,name);if(retVal===INVALID_VALUE){allowSet=false;}else if(retVal!==undefined){newVal=retVal;}}
|
||||
if(allowSet){if(!subAttrName&&(newVal===prevValRaw)&&!Lang.isObject(newVal)){allowSet=false;}else{if(state.get(attrName,INIT_VALUE)===undefined){state.add(attrName,INIT_VALUE,newVal);}
|
||||
host._setStateVal(attrName,newVal);}}}else{allowSet=false;}
|
||||
return allowSet;},setAttrs:function(attrs,opts){return this._setAttrs(attrs,opts);},_setAttrs:function(attrs,opts){for(var attr in attrs){if(attrs.hasOwnProperty(attr)){this.set(attr,attrs[attr]);}}
|
||||
return this;},getAttrs:function(attrs){return this._getAttrs(attrs);},_getAttrs:function(attrs){var host=this,o={},i,l,attr,val,modifiedOnly=(attrs===true);attrs=(attrs&&!modifiedOnly)?attrs:O.keys(host._state.data.added);for(i=0,l=attrs.length;i<l;i++){attr=attrs[i];val=host.get(attr);if(!modifiedOnly||host._getStateVal(attr)!=host._state.get(attr,INIT_VALUE)){o[attr]=host.get(attr);}}
|
||||
return o;},addAttrs:function(cfgs,values,lazy){var host=this;if(cfgs){host._tCfgs=cfgs;host._tVals=host._normAttrVals(values);host._addAttrs(cfgs,host._tVals,lazy);host._tCfgs=host._tVals=null;}
|
||||
return host;},_addAttrs:function(cfgs,values,lazy){var host=this,attr,attrCfg,value;for(attr in cfgs){if(cfgs.hasOwnProperty(attr)){attrCfg=cfgs[attr];attrCfg.defaultValue=attrCfg.value;value=host._getAttrInitVal(attr,attrCfg,host._tVals);if(value!==undefined){attrCfg.value=value;}
|
||||
if(host._tCfgs[attr]){delete host._tCfgs[attr];}
|
||||
host.addAttr(attr,attrCfg,lazy);}}},_protectAttrs:function(attrs){if(attrs){attrs=Y.merge(attrs);for(var attr in attrs){if(attrs.hasOwnProperty(attr)){attrs[attr]=Y.merge(attrs[attr]);}}}
|
||||
return attrs;},_normAttrVals:function(valueHash){return(valueHash)?Y.merge(valueHash):null;},_getAttrInitVal:function(attr,cfg,initValues){var val=(!cfg[READ_ONLY]&&initValues&&initValues.hasOwnProperty(attr))?val=initValues[attr]:(cfg[VALUE_FN])?cfg[VALUE_FN].call(this):cfg[VALUE];return val;}};Y.mix(Attribute,EventTarget,false,null,1);Y.Attribute=Attribute;},'3.0.0',{requires:['event-custom']});
|
||||
8
include/javascript/yui3/build/attribute/attribute-complex-min.js
vendored
Normal file
8
include/javascript/yui3/build/attribute/attribute-complex-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("attribute-complex",function(B){var A=B.Object,C=".";B.Attribute.Complex=function(){};B.Attribute.Complex.prototype={_normAttrVals:function(G){var I={},H={},J,D,F,E;if(G){for(E in G){if(G.hasOwnProperty(E)){if(E.indexOf(C)!==-1){J=E.split(C);D=J.shift();F=H[D]=H[D]||[];F[F.length]={path:J,value:G[E]};}else{I[E]=G[E];}}}return{simple:I,complex:H};}else{return null;}},_getAttrInitVal:function(K,I,M){var E=(I.valueFn)?I.valueFn.call(this):I.value,D,F,H,G,N,L,J;if(!I.readOnly&&M){D=M.simple;if(D&&D.hasOwnProperty(K)){E=D[K];}F=M.complex;if(F&&F.hasOwnProperty(K)){J=F[K];for(H=0,G=J.length;H<G;++H){N=J[H].path;L=J[H].value;A.setValue(E,N,L);}}}return E;}};B.mix(B.Attribute,B.Attribute.Complex,true,null,1);},"3.0.0",{requires:["attribute-base"]});
|
||||
11
include/javascript/yui3/build/attribute/attribute-complex.js
vendored
Normal file
11
include/javascript/yui3/build/attribute/attribute-complex.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('attribute-complex',function(Y){var O=Y.Object,DOT=".";Y.Attribute.Complex=function(){};Y.Attribute.Complex.prototype={_normAttrVals:function(valueHash){var vals={},subvals={},path,attr,v,k;if(valueHash){for(k in valueHash){if(valueHash.hasOwnProperty(k)){if(k.indexOf(DOT)!==-1){path=k.split(DOT);attr=path.shift();v=subvals[attr]=subvals[attr]||[];v[v.length]={path:path,value:valueHash[k]};}else{vals[k]=valueHash[k];}}}
|
||||
return{simple:vals,complex:subvals};}else{return null;}},_getAttrInitVal:function(attr,cfg,initValues){var val=(cfg.valueFn)?cfg.valueFn.call(this):cfg.value,simple,complex,i,l,path,subval,subvals;if(!cfg.readOnly&&initValues){simple=initValues.simple;if(simple&&simple.hasOwnProperty(attr)){val=simple[attr];}
|
||||
complex=initValues.complex;if(complex&&complex.hasOwnProperty(attr)){subvals=complex[attr];for(i=0,l=subvals.length;i<l;++i){path=subvals[i].path;subval=subvals[i].value;O.setValue(val,path,subval);}}}
|
||||
return val;}};Y.mix(Y.Attribute,Y.Attribute.Complex,true,null,1);},'3.0.0',{requires:['attribute-base']});
|
||||
8
include/javascript/yui3/build/attribute/attribute-min.js
vendored
Normal file
8
include/javascript/yui3/build/attribute/attribute-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
40
include/javascript/yui3/build/attribute/attribute.js
vendored
Normal file
40
include/javascript/yui3/build/attribute/attribute.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('attribute-base',function(Y){Y.State=function(){this.data={};};Y.State.prototype={add:function(name,key,val){var d=this.data;d[key]=d[key]||{};d[key][name]=val;},addAll:function(name,o){var key;for(key in o){if(o.hasOwnProperty(key)){this.add(name,key,o[key]);}}},remove:function(name,key){var d=this.data;if(d[key]&&(name in d[key])){delete d[key][name];}},removeAll:function(name,o){var d=this.data;Y.each(o||d,function(v,k){if(Y.Lang.isString(k)){this.remove(name,k);}else{this.remove(name,v);}},this);},get:function(name,key){var d=this.data;return(d[key]&&name in d[key])?d[key][name]:undefined;},getAll:function(name){var d=this.data,o;Y.each(d,function(v,k){if(name in d[k]){o=o||{};o[k]=v[name];}},this);return o;}};var O=Y.Object,Lang=Y.Lang,EventTarget=Y.EventTarget,DOT=".",CHANGE="Change",GETTER="getter",SETTER="setter",READ_ONLY="readOnly",WRITE_ONCE="writeOnce",VALIDATOR="validator",VALUE="value",VALUE_FN="valueFn",BROADCAST="broadcast",LAZY_ADD="lazyAdd",BYPASS_PROXY="_bypassProxy",ADDED="added",INITIALIZING="initializing",INIT_VALUE="initValue",PUBLISHED="published",DEF_VALUE="defaultValue",LAZY="lazy",IS_LAZY_ADD="isLazyAdd",INVALID_VALUE,MODIFIABLE={};MODIFIABLE[READ_ONLY]=1;MODIFIABLE[WRITE_ONCE]=1;MODIFIABLE[GETTER]=1;MODIFIABLE[BROADCAST]=1;function Attribute(){var host=this,attrs=this.constructor.ATTRS,Base=Y.Base;host._ATTR_E_FACADE={};EventTarget.call(host,{emitFacade:true});host._conf=host._state=new Y.State();host._stateProxy=host._stateProxy||null;host._requireAddAttr=host._requireAddAttr||false;if(attrs&&!(Base&&host instanceof Base)){host.addAttrs(this._protectAttrs(attrs));}}
|
||||
Attribute.INVALID_VALUE={};INVALID_VALUE=Attribute.INVALID_VALUE;Attribute._ATTR_CFG=[SETTER,GETTER,VALIDATOR,VALUE,VALUE_FN,WRITE_ONCE,READ_ONLY,LAZY_ADD,BROADCAST,BYPASS_PROXY];Attribute.prototype={addAttr:function(name,config,lazy){var host=this,state=host._state,value,hasValue;lazy=(LAZY_ADD in config)?config[LAZY_ADD]:lazy;if(lazy&&!host.attrAdded(name)){state.add(name,LAZY,config||{});state.add(name,ADDED,true);}else{if(!host.attrAdded(name)||state.get(name,IS_LAZY_ADD)){config=config||{};hasValue=(VALUE in config);if(hasValue){value=config.value;delete config.value;}
|
||||
config.added=true;config.initializing=true;state.addAll(name,config);if(hasValue){host.set(name,value);}
|
||||
state.remove(name,INITIALIZING);}}
|
||||
return host;},attrAdded:function(name){return!!this._state.get(name,ADDED);},modifyAttr:function(name,config){var host=this,prop,state;if(host.attrAdded(name)){if(host._isLazyAttr(name)){host._addLazyAttr(name);}
|
||||
state=host._state;for(prop in config){if(MODIFIABLE[prop]&&config.hasOwnProperty(prop)){state.add(name,prop,config[prop]);if(prop===BROADCAST){state.remove(name,PUBLISHED);}}}}},removeAttr:function(name){this._state.removeAll(name);},get:function(name){return this._getAttr(name);},_isLazyAttr:function(name){return this._state.get(name,LAZY);},_addLazyAttr:function(name){var state=this._state,lazyCfg=state.get(name,LAZY);state.add(name,IS_LAZY_ADD,true);state.remove(name,LAZY);this.addAttr(name,lazyCfg);},set:function(name,val,opts){return this._setAttr(name,val,opts);},reset:function(name){var host=this,added;if(name){if(host._isLazyAttr(name)){host._addLazyAttr(name);}
|
||||
host.set(name,host._state.get(name,INIT_VALUE));}else{added=host._state.data.added;Y.each(added,function(v,n){host.reset(n);},host);}
|
||||
return host;},_set:function(name,val,opts){return this._setAttr(name,val,opts,true);},_getAttr:function(name){var host=this,fullName=name,state=host._state,path,getter,val,cfg;if(name.indexOf(DOT)!==-1){path=name.split(DOT);name=path.shift();}
|
||||
if(host._tCfgs&&host._tCfgs[name]){cfg={};cfg[name]=host._tCfgs[name];delete host._tCfgs[name];host._addAttrs(cfg,host._tVals);}
|
||||
if(host._isLazyAttr(name)){host._addLazyAttr(name);}
|
||||
val=host._getStateVal(name);getter=state.get(name,GETTER);val=(getter)?getter.call(host,val,fullName):val;val=(path)?O.getValue(val,path):val;return val;},_setAttr:function(name,val,opts,force){var allowSet=true,state=this._state,stateProxy=this._stateProxy,data=state.data,initialSet,strPath,path,currVal;if(name.indexOf(DOT)!==-1){strPath=name;path=name.split(DOT);name=path.shift();}
|
||||
if(this._isLazyAttr(name)){this._addLazyAttr(name);}
|
||||
initialSet=(!data.value||!(name in data.value));if(stateProxy&&name in stateProxy&&!this._state.get(name,BYPASS_PROXY)){initialSet=false;}
|
||||
if(this._requireAddAttr&&!this.attrAdded(name)){}else{if(!initialSet&&!force){if(state.get(name,WRITE_ONCE)){allowSet=false;}
|
||||
if(state.get(name,READ_ONLY)){allowSet=false;}}
|
||||
if(allowSet){if(!initialSet){currVal=this.get(name);}
|
||||
if(path){val=O.setValue(Y.clone(currVal),path,val);if(val===undefined){allowSet=false;}}
|
||||
if(allowSet){if(state.get(name,INITIALIZING)){this._setAttrVal(name,strPath,currVal,val);}else{this._fireAttrChange(name,strPath,currVal,val,opts);}}}}
|
||||
return this;},_fireAttrChange:function(attrName,subAttrName,currVal,newVal,opts){var host=this,eventName=attrName+CHANGE,state=host._state,facade;if(!state.get(attrName,PUBLISHED)){host.publish(eventName,{queuable:false,defaultFn:host._defAttrChangeFn,silent:true,broadcast:state.get(attrName,BROADCAST)});state.add(attrName,PUBLISHED,true);}
|
||||
facade=(opts)?Y.merge(opts):host._ATTR_E_FACADE;facade.type=eventName;facade.attrName=attrName;facade.subAttrName=subAttrName;facade.prevVal=currVal;facade.newVal=newVal;host.fire(facade);},_defAttrChangeFn:function(e){if(!this._setAttrVal(e.attrName,e.subAttrName,e.prevVal,e.newVal)){e.stopImmediatePropagation();}else{e.newVal=this._getStateVal(e.attrName);}},_getStateVal:function(name){var stateProxy=this._stateProxy;return stateProxy&&(name in stateProxy)&&!this._state.get(name,BYPASS_PROXY)?stateProxy[name]:this._state.get(name,VALUE);},_setStateVal:function(name,value){var stateProxy=this._stateProxy;if(stateProxy&&(name in stateProxy)&&!this._state.get(name,BYPASS_PROXY)){stateProxy[name]=value;}else{this._state.add(name,VALUE,value);}},_setAttrVal:function(attrName,subAttrName,prevVal,newVal){var host=this,allowSet=true,state=host._state,validator=state.get(attrName,VALIDATOR),setter=state.get(attrName,SETTER),initializing=state.get(attrName,INITIALIZING),prevValRaw=this._getStateVal(attrName),name=subAttrName||attrName,retVal,valid;if(validator){valid=validator.call(host,newVal,name);if(!valid&&initializing){newVal=state.get(attrName,DEF_VALUE);valid=true;}}
|
||||
if(!validator||valid){if(setter){retVal=setter.call(host,newVal,name);if(retVal===INVALID_VALUE){allowSet=false;}else if(retVal!==undefined){newVal=retVal;}}
|
||||
if(allowSet){if(!subAttrName&&(newVal===prevValRaw)&&!Lang.isObject(newVal)){allowSet=false;}else{if(state.get(attrName,INIT_VALUE)===undefined){state.add(attrName,INIT_VALUE,newVal);}
|
||||
host._setStateVal(attrName,newVal);}}}else{allowSet=false;}
|
||||
return allowSet;},setAttrs:function(attrs,opts){return this._setAttrs(attrs,opts);},_setAttrs:function(attrs,opts){for(var attr in attrs){if(attrs.hasOwnProperty(attr)){this.set(attr,attrs[attr]);}}
|
||||
return this;},getAttrs:function(attrs){return this._getAttrs(attrs);},_getAttrs:function(attrs){var host=this,o={},i,l,attr,val,modifiedOnly=(attrs===true);attrs=(attrs&&!modifiedOnly)?attrs:O.keys(host._state.data.added);for(i=0,l=attrs.length;i<l;i++){attr=attrs[i];val=host.get(attr);if(!modifiedOnly||host._getStateVal(attr)!=host._state.get(attr,INIT_VALUE)){o[attr]=host.get(attr);}}
|
||||
return o;},addAttrs:function(cfgs,values,lazy){var host=this;if(cfgs){host._tCfgs=cfgs;host._tVals=host._normAttrVals(values);host._addAttrs(cfgs,host._tVals,lazy);host._tCfgs=host._tVals=null;}
|
||||
return host;},_addAttrs:function(cfgs,values,lazy){var host=this,attr,attrCfg,value;for(attr in cfgs){if(cfgs.hasOwnProperty(attr)){attrCfg=cfgs[attr];attrCfg.defaultValue=attrCfg.value;value=host._getAttrInitVal(attr,attrCfg,host._tVals);if(value!==undefined){attrCfg.value=value;}
|
||||
if(host._tCfgs[attr]){delete host._tCfgs[attr];}
|
||||
host.addAttr(attr,attrCfg,lazy);}}},_protectAttrs:function(attrs){if(attrs){attrs=Y.merge(attrs);for(var attr in attrs){if(attrs.hasOwnProperty(attr)){attrs[attr]=Y.merge(attrs[attr]);}}}
|
||||
return attrs;},_normAttrVals:function(valueHash){return(valueHash)?Y.merge(valueHash):null;},_getAttrInitVal:function(attr,cfg,initValues){var val=(!cfg[READ_ONLY]&&initValues&&initValues.hasOwnProperty(attr))?val=initValues[attr]:(cfg[VALUE_FN])?cfg[VALUE_FN].call(this):cfg[VALUE];return val;}};Y.mix(Attribute,EventTarget,false,null,1);Y.Attribute=Attribute;},'3.0.0',{requires:['event-custom']});YUI.add('attribute-complex',function(Y){var O=Y.Object,DOT=".";Y.Attribute.Complex=function(){};Y.Attribute.Complex.prototype={_normAttrVals:function(valueHash){var vals={},subvals={},path,attr,v,k;if(valueHash){for(k in valueHash){if(valueHash.hasOwnProperty(k)){if(k.indexOf(DOT)!==-1){path=k.split(DOT);attr=path.shift();v=subvals[attr]=subvals[attr]||[];v[v.length]={path:path,value:valueHash[k]};}else{vals[k]=valueHash[k];}}}
|
||||
return{simple:vals,complex:subvals};}else{return null;}},_getAttrInitVal:function(attr,cfg,initValues){var val=(cfg.valueFn)?cfg.valueFn.call(this):cfg.value,simple,complex,i,l,path,subval,subvals;if(!cfg.readOnly&&initValues){simple=initValues.simple;if(simple&&simple.hasOwnProperty(attr)){val=simple[attr];}
|
||||
complex=initValues.complex;if(complex&&complex.hasOwnProperty(attr)){subvals=complex[attr];for(i=0,l=subvals.length;i<l;++i){path=subvals[i].path;subval=subvals[i].value;O.setValue(val,path,subval);}}}
|
||||
return val;}};Y.mix(Y.Attribute,Y.Attribute.Complex,true,null,1);},'3.0.0',{requires:['attribute-base']});YUI.add('attribute',function(Y){},'3.0.0',{use:['attribute-base','attribute-complex']});
|
||||
8
include/javascript/yui3/build/base/base-base-min.js
vendored
Normal file
8
include/javascript/yui3/build/base/base-base-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("base-base",function(B){var H=B.Object,J=B.Lang,I=".",F="destroy",P="init",N="initialized",G="destroyed",D="initializer",C=Object.prototype.constructor,K="deep",Q="shallow",M="destructor",A=B.Attribute;function E(){A.call(this);var L=B.Plugin&&B.Plugin.Host;if(this._initPlugins&&L){L.call(this);}if(this._lazyAddAttrs!==false){this._lazyAddAttrs=true;}this.init.apply(this,arguments);}E._ATTR_CFG=A._ATTR_CFG.concat("cloneDefaultValue");E.NAME="base";E.ATTRS={initialized:{readOnly:true,value:false},destroyed:{readOnly:true,value:false}};E.prototype={init:function(L){this._yuievt.config.prefix=this.name=this.constructor.NAME;this.publish(P,{queuable:false,defaultFn:this._defInitFn});if(L){if(L.on){this.on(L.on);}if(L.after){this.after(L.after);}}this.fire(P,{cfg:L});return this;},destroy:function(){this.publish(F,{queuable:false,defaultFn:this._defDestroyFn});this.fire(F);return this;},_defInitFn:function(L){this._initHierarchy(L.cfg);if(this._initPlugins){this._initPlugins(L.cfg);}this._set(N,true);},_defDestroyFn:function(L){this._destroyHierarchy();if(this._destroyPlugins){this._destroyPlugins();}this._set(G,true);},_getClasses:function(){if(!this._classes){this._initHierarchyData();}return this._classes;},_getAttrCfgs:function(){if(!this._attrs){this._initHierarchyData();}return this._attrs;},_filterAttrCfgs:function(T,O){var R=null,L,S=T.ATTRS;if(S){for(L in S){if(S.hasOwnProperty(L)&&O[L]){R=R||{};R[L]=O[L];delete O[L];}}}return R;},_initHierarchyData:function(){var R=this.constructor,O=[],L=[];while(R){O[O.length]=R;if(R.ATTRS){L[L.length]=R.ATTRS;}R=R.superclass?R.superclass.constructor:null;}this._classes=O;this._attrs=this._aggregateAttrs(L);},_aggregateAttrs:function(W){var T,X,S,L,Y,O,V,R=E._ATTR_CFG,U={};if(W){for(O=W.length-1;O>=0;--O){X=W[O];for(T in X){if(X.hasOwnProperty(T)){S=B.mix({},X[T],true,R);L=S.value;V=S.cloneDefaultValue;if(L){if((V===undefined&&(C===L.constructor||J.isArray(L)))||V===K||V===true){S.value=B.clone(L);}else{if(V===Q){S.value=B.merge(L);}}}Y=null;if(T.indexOf(I)!==-1){Y=T.split(I);T=Y.shift();}if(Y&&U[T]&&U[T].value){H.setValue(U[T].value,Y,L);}else{if(!Y){if(!U[T]){U[T]=S;}else{B.mix(U[T],S,true,R);}}}}}}}return U;},_initHierarchy:function(U){var R=this._lazyAddAttrs,V,W,X,S,O,T=this._getClasses(),L=this._getAttrCfgs();for(X=T.length-1;X>=0;X--){V=T[X];W=V.prototype;if(V._yuibuild&&V._yuibuild.exts&&!V._yuibuild.dynamic){for(S=0,O=V._yuibuild.exts.length;S<O;S++){V._yuibuild.exts[S].apply(this,arguments);}}this.addAttrs(this._filterAttrCfgs(V,L),U,R);if(W.hasOwnProperty(D)){W.initializer.apply(this,arguments);}}},_destroyHierarchy:function(){var T,O,S,L,R=this._getClasses();for(S=0,L=R.length;S<L;S++){T=R[S];O=T.prototype;if(O.hasOwnProperty(M)){O.destructor.apply(this,arguments);}}},toString:function(){return this.constructor.NAME+"["+B.stamp(this)+"]";}};B.mix(E,A,false,null,1);E.prototype.constructor=E;B.Base=E;E.prototype.constructor=E;},"3.0.0",{requires:["attribute-base"]});
|
||||
24
include/javascript/yui3/build/base/base-base.js
vendored
Normal file
24
include/javascript/yui3/build/base/base-base.js
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('base-base',function(Y){var O=Y.Object,L=Y.Lang,DOT=".",DESTROY="destroy",INIT="init",INITIALIZED="initialized",DESTROYED="destroyed",INITIALIZER="initializer",OBJECT_CONSTRUCTOR=Object.prototype.constructor,DEEP="deep",SHALLOW="shallow",DESTRUCTOR="destructor",Attribute=Y.Attribute;function Base(){Attribute.call(this);var PluginHost=Y.Plugin&&Y.Plugin.Host;if(this._initPlugins&&PluginHost){PluginHost.call(this);}
|
||||
if(this._lazyAddAttrs!==false){this._lazyAddAttrs=true;}
|
||||
this.init.apply(this,arguments);}
|
||||
Base._ATTR_CFG=Attribute._ATTR_CFG.concat("cloneDefaultValue");Base.NAME="base";Base.ATTRS={initialized:{readOnly:true,value:false},destroyed:{readOnly:true,value:false}};Base.prototype={init:function(config){this._yuievt.config.prefix=this.name=this.constructor.NAME;this.publish(INIT,{queuable:false,defaultFn:this._defInitFn});if(config){if(config.on){this.on(config.on);}
|
||||
if(config.after){this.after(config.after);}}
|
||||
this.fire(INIT,{cfg:config});return this;},destroy:function(){this.publish(DESTROY,{queuable:false,defaultFn:this._defDestroyFn});this.fire(DESTROY);return this;},_defInitFn:function(e){this._initHierarchy(e.cfg);if(this._initPlugins){this._initPlugins(e.cfg);}
|
||||
this._set(INITIALIZED,true);},_defDestroyFn:function(e){this._destroyHierarchy();if(this._destroyPlugins){this._destroyPlugins();}
|
||||
this._set(DESTROYED,true);},_getClasses:function(){if(!this._classes){this._initHierarchyData();}
|
||||
return this._classes;},_getAttrCfgs:function(){if(!this._attrs){this._initHierarchyData();}
|
||||
return this._attrs;},_filterAttrCfgs:function(clazz,allCfgs){var cfgs=null,attr,attrs=clazz.ATTRS;if(attrs){for(attr in attrs){if(attrs.hasOwnProperty(attr)&&allCfgs[attr]){cfgs=cfgs||{};cfgs[attr]=allCfgs[attr];delete allCfgs[attr];}}}
|
||||
return cfgs;},_initHierarchyData:function(){var c=this.constructor,classes=[],attrs=[];while(c){classes[classes.length]=c;if(c.ATTRS){attrs[attrs.length]=c.ATTRS;}
|
||||
c=c.superclass?c.superclass.constructor:null;}
|
||||
this._classes=classes;this._attrs=this._aggregateAttrs(attrs);},_aggregateAttrs:function(allAttrs){var attr,attrs,cfg,val,path,i,clone,cfgProps=Base._ATTR_CFG,aggAttrs={};if(allAttrs){for(i=allAttrs.length-1;i>=0;--i){attrs=allAttrs[i];for(attr in attrs){if(attrs.hasOwnProperty(attr)){cfg=Y.mix({},attrs[attr],true,cfgProps);val=cfg.value;clone=cfg.cloneDefaultValue;if(val){if((clone===undefined&&(OBJECT_CONSTRUCTOR===val.constructor||L.isArray(val)))||clone===DEEP||clone===true){cfg.value=Y.clone(val);}else if(clone===SHALLOW){cfg.value=Y.merge(val);}}
|
||||
path=null;if(attr.indexOf(DOT)!==-1){path=attr.split(DOT);attr=path.shift();}
|
||||
if(path&&aggAttrs[attr]&&aggAttrs[attr].value){O.setValue(aggAttrs[attr].value,path,val);}else if(!path){if(!aggAttrs[attr]){aggAttrs[attr]=cfg;}else{Y.mix(aggAttrs[attr],cfg,true,cfgProps);}}}}}}
|
||||
return aggAttrs;},_initHierarchy:function(userVals){var lazy=this._lazyAddAttrs,constr,constrProto,ci,ei,el,classes=this._getClasses(),attrCfgs=this._getAttrCfgs();for(ci=classes.length-1;ci>=0;ci--){constr=classes[ci];constrProto=constr.prototype;if(constr._yuibuild&&constr._yuibuild.exts&&!constr._yuibuild.dynamic){for(ei=0,el=constr._yuibuild.exts.length;ei<el;ei++){constr._yuibuild.exts[ei].apply(this,arguments);}}
|
||||
this.addAttrs(this._filterAttrCfgs(constr,attrCfgs),userVals,lazy);if(constrProto.hasOwnProperty(INITIALIZER)){constrProto.initializer.apply(this,arguments);}}},_destroyHierarchy:function(){var constr,constrProto,ci,cl,classes=this._getClasses();for(ci=0,cl=classes.length;ci<cl;ci++){constr=classes[ci];constrProto=constr.prototype;if(constrProto.hasOwnProperty(DESTRUCTOR)){constrProto.destructor.apply(this,arguments);}}},toString:function(){return this.constructor.NAME+"["+Y.stamp(this)+"]";}};Y.mix(Base,Attribute,false,null,1);Base.prototype.constructor=Base;Y.Base=Base;Base.prototype.constructor=Base;},'3.0.0',{requires:['attribute-base']});
|
||||
8
include/javascript/yui3/build/base/base-build-min.js
vendored
Normal file
8
include/javascript/yui3/build/base/base-build-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("base-build",function(C){var B=C.Base,A=C.Lang;B._buildCfg={aggregates:["ATTRS","_PLUG","_UNPLUG"]};B.build=function(D,I,M,L){var O=B.build,E=O._getClass(I,L),K=O._getAggregates(I,L),G=E._yuibuild.dynamic,J,H,F,N;if(G){if(K){for(J=0,H=K.length;J<H;++J){F=K[J];if(I.hasOwnProperty(F)){E[F]=A.isArray(I[F])?[]:{};}}C.aggregate(E,I,true,K);}}for(J=0,H=M.length;J<H;J++){N=M[J];if(K){C.aggregate(E,N,true,K);}C.mix(E,N,true,null,1);E._yuibuild.exts.push(N);}E.prototype.hasImpl=O._hasImpl;if(G){E.NAME=D;E.prototype.constructor=E;}return E;};C.mix(B.build,{_template:function(D){function E(){E.superclass.constructor.apply(this,arguments);var H=E._yuibuild.exts,F=H.length,G;for(G=0;G<F;G++){H[G].apply(this,arguments);}return this;}C.extend(E,D);return E;},_hasImpl:function(G){var J=this._getClasses();for(var I=0,E=J.length;I<E;I++){var D=J[I];if(D._yuibuild){var H=D._yuibuild.exts,K=H.length,F;for(F=0;F<K;F++){if(H[F]===G){return true;}}}}return false;},_getClass:function(D,E){var F=(E&&false===E.dynamic)?false:true,G=(F)?B.build._template(D):D;G._yuibuild={id:null,exts:[],dynamic:F};return G;},_getAggregates:function(D,E){var F=[],H=(E&&E.aggregates),I=D,G;while(I&&I.prototype){G=I._buildCfg&&I._buildCfg.aggregates;if(G){F=F.concat(G);}I=I.superclass?I.superclass.constructor:null;}if(H){F=F.concat(H);}return F;}});},"3.0.0",{requires:["base-base"]});
|
||||
19
include/javascript/yui3/build/base/base-build.js
vendored
Normal file
19
include/javascript/yui3/build/base/base-build.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('base-build',function(Y){var Base=Y.Base,L=Y.Lang;Base._buildCfg={aggregates:["ATTRS","_PLUG","_UNPLUG"]};Base.build=function(name,main,extensions,cfg){var build=Base.build,builtClass=build._getClass(main,cfg),aggregates=build._getAggregates(main,cfg),dynamic=builtClass._yuibuild.dynamic,i,l,val,extClass;if(dynamic){if(aggregates){for(i=0,l=aggregates.length;i<l;++i){val=aggregates[i];if(main.hasOwnProperty(val)){builtClass[val]=L.isArray(main[val])?[]:{};}}
|
||||
Y.aggregate(builtClass,main,true,aggregates);}}
|
||||
for(i=0,l=extensions.length;i<l;i++){extClass=extensions[i];if(aggregates){Y.aggregate(builtClass,extClass,true,aggregates);}
|
||||
Y.mix(builtClass,extClass,true,null,1);builtClass._yuibuild.exts.push(extClass);}
|
||||
builtClass.prototype.hasImpl=build._hasImpl;if(dynamic){builtClass.NAME=name;builtClass.prototype.constructor=builtClass;}
|
||||
return builtClass;};Y.mix(Base.build,{_template:function(main){function BuiltClass(){BuiltClass.superclass.constructor.apply(this,arguments);var f=BuiltClass._yuibuild.exts,l=f.length,i;for(i=0;i<l;i++){f[i].apply(this,arguments);}
|
||||
return this;}
|
||||
Y.extend(BuiltClass,main);return BuiltClass;},_hasImpl:function(extClass){var classes=this._getClasses();for(var i=0,l=classes.length;i<l;i++){var cls=classes[i];if(cls._yuibuild){var exts=cls._yuibuild.exts,ll=exts.length,j;for(j=0;j<ll;j++){if(exts[j]===extClass){return true;}}}}
|
||||
return false;},_getClass:function(main,cfg){var dynamic=(cfg&&false===cfg.dynamic)?false:true,builtClass=(dynamic)?Base.build._template(main):main;builtClass._yuibuild={id:null,exts:[],dynamic:dynamic};return builtClass;},_getAggregates:function(main,cfg){var aggr=[],cfgAggr=(cfg&&cfg.aggregates),c=main,classAggr;while(c&&c.prototype){classAggr=c._buildCfg&&c._buildCfg.aggregates;if(classAggr){aggr=aggr.concat(classAggr);}
|
||||
c=c.superclass?c.superclass.constructor:null;}
|
||||
if(cfgAggr){aggr=aggr.concat(cfgAggr);}
|
||||
return aggr;}});},'3.0.0',{requires:['base-base']});
|
||||
8
include/javascript/yui3/build/base/base-min.js
vendored
Normal file
8
include/javascript/yui3/build/base/base-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("base-base",function(B){var H=B.Object,J=B.Lang,I=".",F="destroy",P="init",N="initialized",G="destroyed",D="initializer",C=Object.prototype.constructor,K="deep",Q="shallow",M="destructor",A=B.Attribute;function E(){A.call(this);var L=B.Plugin&&B.Plugin.Host;if(this._initPlugins&&L){L.call(this);}if(this._lazyAddAttrs!==false){this._lazyAddAttrs=true;}this.init.apply(this,arguments);}E._ATTR_CFG=A._ATTR_CFG.concat("cloneDefaultValue");E.NAME="base";E.ATTRS={initialized:{readOnly:true,value:false},destroyed:{readOnly:true,value:false}};E.prototype={init:function(L){this._yuievt.config.prefix=this.name=this.constructor.NAME;this.publish(P,{queuable:false,defaultFn:this._defInitFn});if(L){if(L.on){this.on(L.on);}if(L.after){this.after(L.after);}}this.fire(P,{cfg:L});return this;},destroy:function(){this.publish(F,{queuable:false,defaultFn:this._defDestroyFn});this.fire(F);return this;},_defInitFn:function(L){this._initHierarchy(L.cfg);if(this._initPlugins){this._initPlugins(L.cfg);}this._set(N,true);},_defDestroyFn:function(L){this._destroyHierarchy();if(this._destroyPlugins){this._destroyPlugins();}this._set(G,true);},_getClasses:function(){if(!this._classes){this._initHierarchyData();}return this._classes;},_getAttrCfgs:function(){if(!this._attrs){this._initHierarchyData();}return this._attrs;},_filterAttrCfgs:function(T,O){var R=null,L,S=T.ATTRS;if(S){for(L in S){if(S.hasOwnProperty(L)&&O[L]){R=R||{};R[L]=O[L];delete O[L];}}}return R;},_initHierarchyData:function(){var R=this.constructor,O=[],L=[];while(R){O[O.length]=R;if(R.ATTRS){L[L.length]=R.ATTRS;}R=R.superclass?R.superclass.constructor:null;}this._classes=O;this._attrs=this._aggregateAttrs(L);},_aggregateAttrs:function(W){var T,X,S,L,Y,O,V,R=E._ATTR_CFG,U={};if(W){for(O=W.length-1;O>=0;--O){X=W[O];for(T in X){if(X.hasOwnProperty(T)){S=B.mix({},X[T],true,R);L=S.value;V=S.cloneDefaultValue;if(L){if((V===undefined&&(C===L.constructor||J.isArray(L)))||V===K||V===true){S.value=B.clone(L);}else{if(V===Q){S.value=B.merge(L);}}}Y=null;if(T.indexOf(I)!==-1){Y=T.split(I);T=Y.shift();}if(Y&&U[T]&&U[T].value){H.setValue(U[T].value,Y,L);}else{if(!Y){if(!U[T]){U[T]=S;}else{B.mix(U[T],S,true,R);}}}}}}}return U;},_initHierarchy:function(U){var R=this._lazyAddAttrs,V,W,X,S,O,T=this._getClasses(),L=this._getAttrCfgs();for(X=T.length-1;X>=0;X--){V=T[X];W=V.prototype;if(V._yuibuild&&V._yuibuild.exts&&!V._yuibuild.dynamic){for(S=0,O=V._yuibuild.exts.length;S<O;S++){V._yuibuild.exts[S].apply(this,arguments);}}this.addAttrs(this._filterAttrCfgs(V,L),U,R);if(W.hasOwnProperty(D)){W.initializer.apply(this,arguments);}}},_destroyHierarchy:function(){var T,O,S,L,R=this._getClasses();for(S=0,L=R.length;S<L;S++){T=R[S];O=T.prototype;if(O.hasOwnProperty(M)){O.destructor.apply(this,arguments);}}},toString:function(){return this.constructor.NAME+"["+B.stamp(this)+"]";}};B.mix(E,A,false,null,1);E.prototype.constructor=E;B.Base=E;E.prototype.constructor=E;},"3.0.0",{requires:["attribute-base"]});YUI.add("base-pluginhost",function(C){var A=C.Base,B=C.Plugin.Host;C.mix(A,B,false,null,1);A.plug=B.plug;A.unplug=B.unplug;},"3.0.0",{requires:["base-base","pluginhost"]});YUI.add("base-build",function(C){var B=C.Base,A=C.Lang;B._buildCfg={aggregates:["ATTRS","_PLUG","_UNPLUG"]};B.build=function(D,I,M,L){var O=B.build,E=O._getClass(I,L),K=O._getAggregates(I,L),G=E._yuibuild.dynamic,J,H,F,N;if(G){if(K){for(J=0,H=K.length;J<H;++J){F=K[J];if(I.hasOwnProperty(F)){E[F]=A.isArray(I[F])?[]:{};}}C.aggregate(E,I,true,K);}}for(J=0,H=M.length;J<H;J++){N=M[J];if(K){C.aggregate(E,N,true,K);}C.mix(E,N,true,null,1);E._yuibuild.exts.push(N);}E.prototype.hasImpl=O._hasImpl;if(G){E.NAME=D;E.prototype.constructor=E;}return E;};C.mix(B.build,{_template:function(D){function E(){E.superclass.constructor.apply(this,arguments);var H=E._yuibuild.exts,F=H.length,G;for(G=0;G<F;G++){H[G].apply(this,arguments);}return this;}C.extend(E,D);return E;},_hasImpl:function(G){var J=this._getClasses();for(var I=0,E=J.length;I<E;I++){var D=J[I];if(D._yuibuild){var H=D._yuibuild.exts,K=H.length,F;for(F=0;F<K;F++){if(H[F]===G){return true;}}}}return false;},_getClass:function(D,E){var F=(E&&false===E.dynamic)?false:true,G=(F)?B.build._template(D):D;G._yuibuild={id:null,exts:[],dynamic:F};return G;},_getAggregates:function(D,E){var F=[],H=(E&&E.aggregates),I=D,G;while(I&&I.prototype){G=I._buildCfg&&I._buildCfg.aggregates;if(G){F=F.concat(G);}I=I.superclass?I.superclass.constructor:null;}if(H){F=F.concat(H);}return F;}});},"3.0.0",{requires:["base-base"]});YUI.add("base",function(A){},"3.0.0",{use:["base-base","base-pluginhost","base-build"]});
|
||||
8
include/javascript/yui3/build/base/base-pluginhost-min.js
vendored
Normal file
8
include/javascript/yui3/build/base/base-pluginhost-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("base-pluginhost",function(C){var A=C.Base,B=C.Plugin.Host;C.mix(A,B,false,null,1);A.plug=B.plug;A.unplug=B.unplug;},"3.0.0",{requires:["base-base","pluginhost"]});
|
||||
8
include/javascript/yui3/build/base/base-pluginhost.js
vendored
Normal file
8
include/javascript/yui3/build/base/base-pluginhost.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('base-pluginhost',function(Y){var Base=Y.Base,PluginHost=Y.Plugin.Host;Y.mix(Base,PluginHost,false,null,1);Base.plug=PluginHost.plug;Base.unplug=PluginHost.unplug;},'3.0.0',{requires:['base-base','pluginhost']});
|
||||
35
include/javascript/yui3/build/base/base.js
vendored
Normal file
35
include/javascript/yui3/build/base/base.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('base-base',function(Y){var O=Y.Object,L=Y.Lang,DOT=".",DESTROY="destroy",INIT="init",INITIALIZED="initialized",DESTROYED="destroyed",INITIALIZER="initializer",OBJECT_CONSTRUCTOR=Object.prototype.constructor,DEEP="deep",SHALLOW="shallow",DESTRUCTOR="destructor",Attribute=Y.Attribute;function Base(){Attribute.call(this);var PluginHost=Y.Plugin&&Y.Plugin.Host;if(this._initPlugins&&PluginHost){PluginHost.call(this);}
|
||||
if(this._lazyAddAttrs!==false){this._lazyAddAttrs=true;}
|
||||
this.init.apply(this,arguments);}
|
||||
Base._ATTR_CFG=Attribute._ATTR_CFG.concat("cloneDefaultValue");Base.NAME="base";Base.ATTRS={initialized:{readOnly:true,value:false},destroyed:{readOnly:true,value:false}};Base.prototype={init:function(config){this._yuievt.config.prefix=this.name=this.constructor.NAME;this.publish(INIT,{queuable:false,defaultFn:this._defInitFn});if(config){if(config.on){this.on(config.on);}
|
||||
if(config.after){this.after(config.after);}}
|
||||
this.fire(INIT,{cfg:config});return this;},destroy:function(){this.publish(DESTROY,{queuable:false,defaultFn:this._defDestroyFn});this.fire(DESTROY);return this;},_defInitFn:function(e){this._initHierarchy(e.cfg);if(this._initPlugins){this._initPlugins(e.cfg);}
|
||||
this._set(INITIALIZED,true);},_defDestroyFn:function(e){this._destroyHierarchy();if(this._destroyPlugins){this._destroyPlugins();}
|
||||
this._set(DESTROYED,true);},_getClasses:function(){if(!this._classes){this._initHierarchyData();}
|
||||
return this._classes;},_getAttrCfgs:function(){if(!this._attrs){this._initHierarchyData();}
|
||||
return this._attrs;},_filterAttrCfgs:function(clazz,allCfgs){var cfgs=null,attr,attrs=clazz.ATTRS;if(attrs){for(attr in attrs){if(attrs.hasOwnProperty(attr)&&allCfgs[attr]){cfgs=cfgs||{};cfgs[attr]=allCfgs[attr];delete allCfgs[attr];}}}
|
||||
return cfgs;},_initHierarchyData:function(){var c=this.constructor,classes=[],attrs=[];while(c){classes[classes.length]=c;if(c.ATTRS){attrs[attrs.length]=c.ATTRS;}
|
||||
c=c.superclass?c.superclass.constructor:null;}
|
||||
this._classes=classes;this._attrs=this._aggregateAttrs(attrs);},_aggregateAttrs:function(allAttrs){var attr,attrs,cfg,val,path,i,clone,cfgProps=Base._ATTR_CFG,aggAttrs={};if(allAttrs){for(i=allAttrs.length-1;i>=0;--i){attrs=allAttrs[i];for(attr in attrs){if(attrs.hasOwnProperty(attr)){cfg=Y.mix({},attrs[attr],true,cfgProps);val=cfg.value;clone=cfg.cloneDefaultValue;if(val){if((clone===undefined&&(OBJECT_CONSTRUCTOR===val.constructor||L.isArray(val)))||clone===DEEP||clone===true){cfg.value=Y.clone(val);}else if(clone===SHALLOW){cfg.value=Y.merge(val);}}
|
||||
path=null;if(attr.indexOf(DOT)!==-1){path=attr.split(DOT);attr=path.shift();}
|
||||
if(path&&aggAttrs[attr]&&aggAttrs[attr].value){O.setValue(aggAttrs[attr].value,path,val);}else if(!path){if(!aggAttrs[attr]){aggAttrs[attr]=cfg;}else{Y.mix(aggAttrs[attr],cfg,true,cfgProps);}}}}}}
|
||||
return aggAttrs;},_initHierarchy:function(userVals){var lazy=this._lazyAddAttrs,constr,constrProto,ci,ei,el,classes=this._getClasses(),attrCfgs=this._getAttrCfgs();for(ci=classes.length-1;ci>=0;ci--){constr=classes[ci];constrProto=constr.prototype;if(constr._yuibuild&&constr._yuibuild.exts&&!constr._yuibuild.dynamic){for(ei=0,el=constr._yuibuild.exts.length;ei<el;ei++){constr._yuibuild.exts[ei].apply(this,arguments);}}
|
||||
this.addAttrs(this._filterAttrCfgs(constr,attrCfgs),userVals,lazy);if(constrProto.hasOwnProperty(INITIALIZER)){constrProto.initializer.apply(this,arguments);}}},_destroyHierarchy:function(){var constr,constrProto,ci,cl,classes=this._getClasses();for(ci=0,cl=classes.length;ci<cl;ci++){constr=classes[ci];constrProto=constr.prototype;if(constrProto.hasOwnProperty(DESTRUCTOR)){constrProto.destructor.apply(this,arguments);}}},toString:function(){return this.constructor.NAME+"["+Y.stamp(this)+"]";}};Y.mix(Base,Attribute,false,null,1);Base.prototype.constructor=Base;Y.Base=Base;Base.prototype.constructor=Base;},'3.0.0',{requires:['attribute-base']});YUI.add('base-pluginhost',function(Y){var Base=Y.Base,PluginHost=Y.Plugin.Host;Y.mix(Base,PluginHost,false,null,1);Base.plug=PluginHost.plug;Base.unplug=PluginHost.unplug;},'3.0.0',{requires:['base-base','pluginhost']});YUI.add('base-build',function(Y){var Base=Y.Base,L=Y.Lang;Base._buildCfg={aggregates:["ATTRS","_PLUG","_UNPLUG"]};Base.build=function(name,main,extensions,cfg){var build=Base.build,builtClass=build._getClass(main,cfg),aggregates=build._getAggregates(main,cfg),dynamic=builtClass._yuibuild.dynamic,i,l,val,extClass;if(dynamic){if(aggregates){for(i=0,l=aggregates.length;i<l;++i){val=aggregates[i];if(main.hasOwnProperty(val)){builtClass[val]=L.isArray(main[val])?[]:{};}}
|
||||
Y.aggregate(builtClass,main,true,aggregates);}}
|
||||
for(i=0,l=extensions.length;i<l;i++){extClass=extensions[i];if(aggregates){Y.aggregate(builtClass,extClass,true,aggregates);}
|
||||
Y.mix(builtClass,extClass,true,null,1);builtClass._yuibuild.exts.push(extClass);}
|
||||
builtClass.prototype.hasImpl=build._hasImpl;if(dynamic){builtClass.NAME=name;builtClass.prototype.constructor=builtClass;}
|
||||
return builtClass;};Y.mix(Base.build,{_template:function(main){function BuiltClass(){BuiltClass.superclass.constructor.apply(this,arguments);var f=BuiltClass._yuibuild.exts,l=f.length,i;for(i=0;i<l;i++){f[i].apply(this,arguments);}
|
||||
return this;}
|
||||
Y.extend(BuiltClass,main);return BuiltClass;},_hasImpl:function(extClass){var classes=this._getClasses();for(var i=0,l=classes.length;i<l;i++){var cls=classes[i];if(cls._yuibuild){var exts=cls._yuibuild.exts,ll=exts.length,j;for(j=0;j<ll;j++){if(exts[j]===extClass){return true;}}}}
|
||||
return false;},_getClass:function(main,cfg){var dynamic=(cfg&&false===cfg.dynamic)?false:true,builtClass=(dynamic)?Base.build._template(main):main;builtClass._yuibuild={id:null,exts:[],dynamic:dynamic};return builtClass;},_getAggregates:function(main,cfg){var aggr=[],cfgAggr=(cfg&&cfg.aggregates),c=main,classAggr;while(c&&c.prototype){classAggr=c._buildCfg&&c._buildCfg.aggregates;if(classAggr){aggr=aggr.concat(classAggr);}
|
||||
c=c.superclass?c.superclass.constructor:null;}
|
||||
if(cfgAggr){aggr=aggr.concat(cfgAggr);}
|
||||
return aggr;}});},'3.0.0',{requires:['base-base']});YUI.add('base',function(Y){},'3.0.0',{use:['base-base','base-pluginhost','base-build']});
|
||||
8
include/javascript/yui3/build/classnamemanager/classnamemanager-min.js
vendored
Normal file
8
include/javascript/yui3/build/classnamemanager/classnamemanager-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("classnamemanager",function(C){var B="classNamePrefix",D="classNameDelimiter",A=C.config;A[B]=A[B]||"yui";A[D]=A[D]||"-";C.ClassNameManager=function(){var E=A[B],F=A[D];return{getClassName:C.cached(function(I,G){var H=E+F+((G)?Array.prototype.join.call(arguments,F):I);return H.replace(/\s/g,"");})};}();},"3.0.0");
|
||||
9
include/javascript/yui3/build/classnamemanager/classnamemanager.js
vendored
Normal file
9
include/javascript/yui3/build/classnamemanager/classnamemanager.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('classnamemanager',function(Y){var CLASS_NAME_PREFIX='classNamePrefix',CLASS_NAME_DELIMITER='classNameDelimiter',CONFIG=Y.config;CONFIG[CLASS_NAME_PREFIX]=CONFIG[CLASS_NAME_PREFIX]||'yui';CONFIG[CLASS_NAME_DELIMITER]=CONFIG[CLASS_NAME_DELIMITER]||'-';Y.ClassNameManager=function(){var sPrefix=CONFIG[CLASS_NAME_PREFIX],sDelimiter=CONFIG[CLASS_NAME_DELIMITER];return{getClassName:Y.cached(function(c,x){var sClass=sPrefix+sDelimiter+
|
||||
((x)?Array.prototype.join.call(arguments,sDelimiter):c);return sClass.replace(/\s/g,'');})};}();},'3.0.0');
|
||||
8
include/javascript/yui3/build/collection/collection-min.js
vendored
Normal file
8
include/javascript/yui3/build/collection/collection-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("collection",function(E){var C=E.Lang,D=Array.prototype,B=E.Array;B.lastIndexOf=(D.lastIndexOf)?function(A,F){return A.lastIndexOf(F);}:function(A,G){for(var F=A.length-1;F>=0;F=F-1){if(A[F]===G){break;}}return F;};B.unique=function(F,H){var A=F.slice(),G=0,J=-1,I=null;while(G<A.length){I=A[G];while((J=A.lastIndexOf(I))!==G){A.splice(J,1);}G+=1;}if(H){if(C.isNumber(A[0])){A.sort(B.numericSort);}else{A.sort();}}return A;};B.filter=(D.filter)?function(A,F,G){return D.filter.call(A,F,G);}:function(A,G,H){var F=[];B.each(A,function(K,J,I){if(G.call(H,K,J,I)){F.push(K);}});return F;};B.reject=function(A,F,G){return B.filter(A,function(J,I,H){return!F.call(G,J,I,H);});};B.every=(D.every)?function(A,F,G){return D.every.call(A,F,G);}:function(F,H,I){var A=F.length;for(var G=0;G<A;G=G+1){if(!H.call(I,F[G],G,F)){return false;}}return true;};B.map=(D.map)?function(A,F,G){return D.map.call(A,F,G);}:function(A,G,H){var F=[];B.each(A,function(K,J,I){F.push(G.call(H,K,J,I));});return F;};B.reduce=(D.reduce)?function(A,H,F,G){return D.reduce.call(A,function(L,K,J,I){return F.call(G,L,K,J,I);},H);}:function(A,I,G,H){var F=I;B.each(A,function(L,K,J){F=G.call(H,F,L,K,J);});return F;};B.find=function(F,H,I){var A=F.length;for(var G=0;G<A;G++){if(H.call(I,F[G],G,F)){return F[G];}}return null;};B.grep=function(A,F){return B.filter(A,function(H,G){return F.test(H);});};B.partition=function(A,G,H){var F={matches:[],rejects:[]};B.each(A,function(J,I){var K=G.call(H,J,I,A)?F.matches:F.rejects;K.push(J);});return F;};B.zip=function(F,A){var G=[];B.each(F,function(I,H){G.push([I,A[H]]);});return G;};},"3.0.0");
|
||||
14
include/javascript/yui3/build/collection/collection.js
vendored
Normal file
14
include/javascript/yui3/build/collection/collection.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('collection',function(Y){var L=Y.Lang,Native=Array.prototype,A=Y.Array;A.lastIndexOf=(Native.lastIndexOf)?function(a,val){return a.lastIndexOf(val);}:function(a,val){for(var i=a.length-1;i>=0;i=i-1){if(a[i]===val){break;}}
|
||||
return i;};A.unique=function(a,sort){var b=a.slice(),i=0,n=-1,item=null;while(i<b.length){item=b[i];while((n=b.lastIndexOf(item))!==i){b.splice(n,1);}
|
||||
i+=1;}
|
||||
if(sort){if(L.isNumber(b[0])){b.sort(A.numericSort);}else{b.sort();}}
|
||||
return b;};A.filter=(Native.filter)?function(a,f,o){return Native.filter.call(a,f,o);}:function(a,f,o){var results=[];A.each(a,function(item,i,a){if(f.call(o,item,i,a)){results.push(item);}});return results;};A.reject=function(a,f,o){return A.filter(a,function(item,i,a){return!f.call(o,item,i,a);});};A.every=(Native.every)?function(a,f,o){return Native.every.call(a,f,o);}:function(a,f,o){var l=a.length;for(var i=0;i<l;i=i+1){if(!f.call(o,a[i],i,a)){return false;}}
|
||||
return true;};A.map=(Native.map)?function(a,f,o){return Native.map.call(a,f,o);}:function(a,f,o){var results=[];A.each(a,function(item,i,a){results.push(f.call(o,item,i,a));});return results;};A.reduce=(Native.reduce)?function(a,init,f,o){return Native.reduce.call(a,function(init,item,i,a){return f.call(o,init,item,i,a);},init);}:function(a,init,f,o){var r=init;A.each(a,function(item,i,a){r=f.call(o,r,item,i,a);});return r;};A.find=function(a,f,o){var l=a.length;for(var i=0;i<l;i++){if(f.call(o,a[i],i,a)){return a[i];}}
|
||||
return null;};A.grep=function(a,pattern){return A.filter(a,function(item,index){return pattern.test(item);});};A.partition=function(a,f,o){var results={matches:[],rejects:[]};A.each(a,function(item,index){var set=f.call(o,item,index,a)?results.matches:results.rejects;set.push(item);});return results;};A.zip=function(a,a2){var results=[];A.each(a,function(item,index){results.push([item,a2[index]]);});return results;};},'3.0.0');
|
||||
8
include/javascript/yui3/build/compat/compat-min.js
vendored
Normal file
8
include/javascript/yui3/build/compat/compat-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
45
include/javascript/yui3/build/compat/compat.js
vendored
Normal file
45
include/javascript/yui3/build/compat/compat.js
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('compat',function(Y){var COMPAT_ARG='~yui|2|compat~';if(window.YAHOO!=YUI){var o=(window.YAHOO)?YUI.merge(window.YAHOO):null;window.YAHOO=YUI;if(o){Y.mix(Y,o);}}
|
||||
Y.namespace("util","widget","example");Y.env=(Y.env)?Y.mix(Y.env,Y.Env):Y.Env;Y.lang=(Y.lang)?Y.mix(Y.lang,Y.Lang):Y.Lang;Y.env.ua=Y.UA;Y.mix(Y.env,{modules:[],listeners:[],getVersion:function(name){return this.Env.modules[name]||null;}});var L=Y.lang;Y.mix(L,{augmentObject:function(r,s){var a=arguments,wl=(a.length>2)?Y.Array(a,2,true):null;return Y.mix(r,s,(wl),wl);},augmentProto:function(r,s){var a=arguments,wl=(a.length>2)?Y.Array(a,2,true):null;return Y.mix(r,s,(wl),wl,1);},extend:Y.extend,merge:Y.merge},true);L.augment=L.augmentProto;L.hasOwnProperty=function(o,k){return(o.hasOwnProperty(k));};Y.augmentProto=L.augmentProto;Y.mix(Y,{register:function(name,mainClass,data){var mods=Y.Env.modules;if(!mods[name]){mods[name]={versions:[],builds:[]};}
|
||||
var m=mods[name],v=data.version,b=data.build,ls=Y.Env.listeners;m.name=name;m.version=v;m.build=b;m.versions.push(v);m.builds.push(b);m.mainClass=mainClass;for(var i=0;i<ls.length;i=i+1){ls[i](m);}
|
||||
if(mainClass){mainClass.VERSION=v;mainClass.BUILD=b;}else{}}});if("undefined"!==typeof YAHOO_config){var l=YAHOO_config.listener,ls=Y.Env.listeners,unique=true,i;if(l){for(i=0;i<ls.length;i=i+1){if(ls[i]==l){unique=false;break;}}
|
||||
if(unique){ls.push(l);}}}
|
||||
Y.register("yahoo",Y,{version:"3.0.0",build:"1549"});if(Y.Event){var o={isSafari:Y.UA.webkit,webkit:Y.UA.webkit,webkitKeymap:{63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},isIE:Y.UA.ie,_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var d=Y.config.doc,dd=d.documentElement,db=d.body;if(dd&&(dd.scrollTop||dd.scrollLeft)){return[dd.scrollTop,dd.scrollLeft];}else if(db){return[db.scrollTop,db.scrollLeft];}else{return[0,0];}},getPageX:function(ev){var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(Y.UA.ie){x+=this._getScrollLeft();}}
|
||||
return x;},getCharCode:function(ev){var code=ev.keyCode||ev.charCode||0;if(Y.UA.webkit&&(code in Y.Event.webkitKeymap)){code=Y.Event.webkitKeymap[code];}
|
||||
return code;},getPageY:function(ev){var y=ev.pageY;if(!y&&0!==y){y=ev.clientY||0;if(Y.UA.ie){y+=this._getScrollTop();}}
|
||||
return y;},getXY:function(ev){return[this.getPageX(ev),this.getPageY(ev)];},getRelatedTarget:function(ev){var t=ev.relatedTarget;if(!t){if(ev.type=="mouseout"){t=ev.toElement;}else if(ev.type=="mouseover"){t=ev.fromElement;}}
|
||||
return this.resolveTextNode(t);},getTime:function(ev){if(!ev.time){var t=new Date().getTime();try{ev.time=t;}catch(ex){this.lastError=ex;return t;}}
|
||||
return ev.time;},stopEvent:function(ev){this.stopPropagation(ev);this.preventDefault(ev);},stopPropagation:function(ev){if(ev.stopPropagation){ev.stopPropagation();}else{ev.cancelBubble=true;}},preventDefault:function(ev){if(ev.preventDefault){ev.preventDefault();}else{ev.returnValue=false;}},getTarget:function(ev,resolveTextNode){var t=ev.target||ev.srcElement;return this.resolveTextNode(t);},resolveTextNode:function(node){if(node&&3==node.nodeType){return node.parentNode;}else{return node;}},getEl:function(id){return Y.get(id);}};Y.mix(Y.Event,o);Y.Event.removeListener=function(el,type,fn,data,override){var context,a=[type,fn,el];if(data){if(override){context=(override===true)?data:override;}
|
||||
a.push(context);a.push(data);}
|
||||
a.push(COMPAT_ARG);return Y.Event.detach.apply(Y.Event,a);};Y.Event.addListener=function(el,type,fn,data,override){var context,a=[type,fn,el];if(data){if(override){context=(override===true)?data:override;}
|
||||
a.push(context);a.push(data);}
|
||||
a.push(COMPAT_ARG);return Y.Event.attach.apply(Y.Event,a);};Y.Event.on=Y.Event.addListener;var newOnavail=Y.Event.onAvailable;Y.Event.onAvailable=function(id,fn,p_obj,p_override){return newOnavail(id,fn,p_obj,p_override,false,true);};Y.Event.onContentReady=function(id,fn,p_obj,p_override){return newOnavail(id,fn,p_obj,p_override,true,true);};Y.Event.onDOMReady=function(fn){var a=Y.Array(arguments,0,true);a.unshift('event:ready');return Y.on.apply(Y,a);};Y.util.Event=Y.Event;var CE=function(type,oScope,silent,signature){var o={context:oScope,silent:silent||false};CE.superclass.constructor.call(this,type,o);this.signature=signature||CE.LIST;};Y.extend(CE,Y.CustomEvent,{});CE.LIST=0;CE.FLAT=1;Y.util.CustomEvent=CE;var EP=function(){if(!this._yuievt){var sub=this.subscribe;Y.EventTarget.apply(this,arguments);this.subscribe=sub;this.__yuiepinit=function(){};}};Y.extend(EP,Y.EventTarget,{createEvent:function(type,o){o=o||{};o.signature=o.signature||CE.FLAT;return this.publish(type,o);},subscribe:function(type,fn,obj,override){var ce=this._yuievt.events[type]||this.createEvent(type),a=Y.Array(arguments);if(override&&true!==override){}
|
||||
Y.EventTarget.prototype.subscribe.apply(this,a);},fireEvent:function(type){return this.fire.apply(this,arguments);},hasEvent:function(type){return this.getEvent(type);}});Y.util.EventProvider=EP;}
|
||||
Y.register("event",Y,{version:"3.0.0",build:"1549"});var propertyCache={};var patterns={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i};var hyphenToCamel=function(property){if(!patterns.HYPHEN.test(property)){return property;}
|
||||
if(propertyCache[property]){return propertyCache[property];}
|
||||
var converted=property;while(patterns.HYPHEN.exec(converted)){converted=converted.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}
|
||||
propertyCache[property]=converted;return converted;};var Dom={get:function(el){if(el){if(el.nodeType||el.item){return el;}
|
||||
if(typeof el==='string'){return document.getElementById(el);}
|
||||
if('length'in el){var c=[];for(var i=0,len=el.length;i<len;++i){c[c.length]=Dom.get(el[i]);}
|
||||
return c;}
|
||||
return el;}
|
||||
return null;},isAncestor:function(haystack,needle){return YUI.DOM.contains(Dom.get(haystack),Dom.get(needle));},inDocument:function(el){return Dom.isAncestor(Y.config.doc.documentElement,el);},batch:function(el,method,o,override,args){el=(el&&(el.tagName||el.item))?el:Dom.get(el);if(!el||!method){return false;}
|
||||
if(args){args=Y.Array(args);}
|
||||
var scope=(override)?o:window;var apply=function(el){if(args){var tmp=slice.call(args);tmp.unshift(el);return method.apply(scope,tmp);}else{return method.call(scope,el,o);}};if(el.tagName||el.length===undefined){return apply(el);}
|
||||
var collection=[];for(var i=0,len=el.length;i<len;++i){collection[collection.length]=apply(el[i]);}
|
||||
return collection;},_addClass:function(el,className){if(YUI.DOM.hasClass(el,className)){return false;}
|
||||
YUI.DOM.addClass(el,className);return true;},_removeClass:function(el,className){if(!YUI.DOM.hasClass(el,className)){return false;}
|
||||
YUI.DOM.removeClass(el,className);return true;},_replaceClass:function(el,oldClass,newClass){if(!newClass||oldClass===newClass){return false;}
|
||||
YUI.DOM.replaceClass(el,oldClass,newClass);return true;},getElementsByClassName:function(className,tag,root){tag=tag||'*';root=(root)?Dom.get(root):Y.config.doc;var nodes=[];if(root){nodes=Y.Selector.query(tag+'.'+className,root);}
|
||||
return nodes;},getElementsBy:function(method,tag,root){tag=tag||'*';root=(root)?Dom.get(root):null||document;var nodes=[];if(root){nodes=YUI.DOM.byTag(tag,root,method);}
|
||||
return nodes;},getViewportWidth:YUI.DOM.winWidth,getViewportHeight:YUI.DOM.winHeight,getDocumentWidth:YUI.DOM.docWidth,getDocumentHeight:YUI.DOM.docHeight,getDocumentScrollTop:YUI.DOM.docScrollY,getDocumentScrollLeft:YUI.DOM.docScrollX,getDocumentHeight:YUI.DOM.docHeight,_guid:function(el,prefix){prefix=prefix||'yui-gen';Dom._id_counter=Dom._id_counter||0;if(el&&el.id){return el.id;}
|
||||
var id=prefix+Dom._id_counter++;if(el){el.id=id;}
|
||||
return id;},_region:function(el){if((el.parentNode===null||el.offsetParent===null||YUI.DOM.getStyle(el,'display')=='none')&&el!=el.ownerDocument.body){return false;}
|
||||
return YUI.DOM.region(el);},_ancestorByClass:function(element,className){return YUI.DOM.ancestor(element,function(el){return YUI.DOM.hasClass(el,className);});},_ancestorByTag:function(element,tag){tag=tag.toUpperCase();return YUI.DOM.ancestor(element,function(el){return el.tagName.toUpperCase()===tag;});}};var slice=[].slice;var wrap=function(fn,name){Dom[name]=function(){var args=slice.call(arguments);args[0]=Dom.get(args[0]);return fn.apply(Dom,args);};};var wrapped={getAncestorBy:YUI.DOM.ancestor,getAncestorByClassName:Dom._ancestorByClass,getAncestorByTagName:Dom._ancestorByTag,getPreviousSiblingBy:YUI.DOM.previous,getPreviousSibling:YUI.DOM.previous,getNextSiblingBy:YUI.DOM.next,getNextSibling:YUI.DOM.next,getFirstChildBy:YUI.DOM.firstChild,getFirstChild:YUI.DOM.firstChild,getLastChildBy:YUI.DOM.lastChild,getLastChild:YUI.DOM.lastChild,getChildrenBy:YUI.DOM.children,getChildren:YUI.DOM.children,insertBefore:function(newNode,refNode){YUI.DOM.insertBefore(Dom.get(newNode),Dom.get(refNode));},insertAfter:function(newNode,refNode){YUI.DOM.insertAfter(Dom.get(newNode),Dom.get(refNode));}};Y.each(wrapped,wrap);var batched={getStyle:YUI.DOM.getStyle,setStyle:YUI.DOM.setStyle,getXY:YUI.DOM.getXY,setXY:YUI.DOM.setXY,getX:YUI.DOM.getX,getY:YUI.DOM.getY,setX:YUI.DOM.setX,setY:YUI.DOM.setY,getRegion:Dom._region,hasClass:YUI.DOM.hasClass,addClass:Dom._addClass,removeClass:Dom._removeClass,replaceClass:Dom._replaceClass,generateId:Dom._guid};Y.each(batched,function(v,n){Dom[n]=function(el){var args=slice.call(arguments,1);return Dom.batch(el,v,null,null,args);};});Y.util.Dom=Dom;YAHOO.util.Region=function(t,r,b,l){this.top=t;this[1]=t;this.right=r;this.bottom=b;this.left=l;this[0]=l;};YAHOO.util.Region.prototype.contains=function(region){return(region.left>=this.left&®ion.right<=this.right&®ion.top>=this.top&®ion.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(el){return YUI.DOM.region(el);};YAHOO.util.Point=function(x,y){if(YAHOO.lang.isArray(x)){y=x[1];x=x[0];}
|
||||
this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};YAHOO.util.Point.prototype=new YAHOO.util.Region();},'3.0.0',{requires:['dom','event']});YUI._setup();YUI.use('dom','event','compat');
|
||||
8
include/javascript/yui3/build/console/console-filters-min.js
vendored
Normal file
8
include/javascript/yui3/build/console/console-filters-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
19
include/javascript/yui3/build/console/console-filters.js
vendored
Normal file
19
include/javascript/yui3/build/console/console-filters.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('console-filters',function(Y){var getCN=Y.ClassNameManager.getClassName,CONSOLE='console',FILTERS='filters',FILTER='filter',CATEGORY='category',SOURCE='source',CATEGORY_DOT='category.',SOURCE_DOT='source.',HOST='host',PARENT_NODE='parentNode',CHECKED='checked',DEF_VISIBILITY='defaultVisibility',DOT='.',EMPTY='',C_BODY=DOT+Y.Console.CHROME_CLASSES.console_bd_class,C_FOOT=DOT+Y.Console.CHROME_CLASSES.console_ft_class,SEL_CHECK='input[type=checkbox].',isString=Y.Lang.isString;function ConsoleFilters(){ConsoleFilters.superclass.constructor.apply(this,arguments);}
|
||||
Y.mix(ConsoleFilters,{NAME:'consoleFilters',NS:FILTER,CATEGORIES_TEMPLATE:'<div class="{categories}"></div>',SOURCES_TEMPLATE:'<div class="{sources}"></div>',FILTER_TEMPLATE:'<label class="{filter_label}">'+'<input type="checkbox" value="{filter_name}" '+'class="{filter} {filter_class}"> {filter_name}'+'</label> ',CHROME_CLASSES:{categories:getCN(CONSOLE,FILTERS,'categories'),sources:getCN(CONSOLE,FILTERS,'sources'),category:getCN(CONSOLE,FILTER,CATEGORY),source:getCN(CONSOLE,FILTER,SOURCE),filter:getCN(CONSOLE,FILTER),filter_label:getCN(CONSOLE,FILTER,'label')},ATTRS:{defaultVisibility:{value:true,validator:Y.Lang.isBoolean},category:{value:{},validator:function(v,k){return this._validateCategory(k,v);}},source:{value:{},validator:function(v,k){return this._validateSource(k,v);}},cacheLimit:{value:Number.POSITIVE_INFINITY,setter:function(v){if(Y.Lang.isNumber(v)){this._cacheLimit=v;return v;}else{return Y.Attribute.INVALID_VALUE;}}}}});Y.extend(ConsoleFilters,Y.Plugin.Base,{_entries:null,_cacheLimit:Number.POSITIVE_INFINITY,_categories:null,_sources:null,initializer:function(){this._entries=[];this.get(HOST).on("entry",this._onEntry,this);this.doAfter("renderUI",this.renderUI);this.doAfter("syncUI",this.syncUI);this.doAfter("bindUI",this.bindUI);this.doAfter("clearConsole",this._afterClearConsole);if(this.get(HOST).get('rendered')){this.renderUI();this.syncUI();this.bindUI();}
|
||||
this.after("cacheLimitChange",this._afterCacheLimitChange);},destructor:function(){this._entries=[];if(this._categories){this._categories.get(PARENT_NODE).removeChild(this._categories);}
|
||||
if(this._sources){this._sources.get(PARENT_NODE).removeChild(this._sources);}},renderUI:function(){var foot=this.get(HOST).get('contentBox').query(C_FOOT),html;if(foot){html=Y.substitute(ConsoleFilters.CATEGORIES_TEMPLATE,ConsoleFilters.CHROME_CLASSES);this._categories=foot.appendChild(Y.Node.create(html));html=Y.substitute(ConsoleFilters.SOURCES_TEMPLATE,ConsoleFilters.CHROME_CLASSES);this._sources=foot.appendChild(Y.Node.create(html));}},bindUI:function(){this._categories.on('click',Y.bind(this._onCategoryCheckboxClick,this));this._sources.on('click',Y.bind(this._onSourceCheckboxClick,this));this.after('categoryChange',this._afterCategoryChange);this.after('sourceChange',this._afterSourceChange);},syncUI:function(){Y.each(this.get(CATEGORY),function(v,k){this._uiSetCheckbox(CATEGORY,k,v);},this);Y.each(this.get(SOURCE),function(v,k){this._uiSetCheckbox(SOURCE,k,v);},this);this.refreshConsole();},_onEntry:function(e){this._entries.push(e.message);var cat=CATEGORY_DOT+e.message.category,src=SOURCE_DOT+e.message.source,cat_filter=this.get(cat),src_filter=this.get(src),overLimit=this._entries.length-this._cacheLimit,visible;if(overLimit>0){this._entries.splice(0,overLimit);}
|
||||
if(cat_filter===undefined){visible=this.get(DEF_VISIBILITY);this.set(cat,visible);cat_filter=visible;}
|
||||
if(src_filter===undefined){visible=this.get(DEF_VISIBILITY);this.set(src,visible);src_filter=visible;}
|
||||
if(!cat_filter||!src_filter){e.preventDefault();}},_afterClearConsole:function(){this._entries=[];},_afterCategoryChange:function(e){var cat=e.subAttrName.replace(/category\./,EMPTY),before=e.prevVal,after=e.newVal;if(!cat||before[cat]!==undefined){this.refreshConsole();this._filterBuffer();}
|
||||
if(cat&&!e.fromUI){this._uiSetCheckbox(CATEGORY,cat,after[cat]);}},_afterSourceChange:function(e){var src=e.subAttrName.replace(/source\./,EMPTY),before=e.prevVal,after=e.newVal;if(!src||before[src]!==undefined){this.refreshConsole();this._filterBuffer();}
|
||||
if(src&&!e.fromUI){this._uiSetCheckbox(SOURCE,src,after[src]);}},_filterBuffer:function(){var cats=this.get(CATEGORY),srcs=this.get(SOURCE),buffer=this.get(HOST).buffer,start=null,i;for(i=buffer.length-1;i>=0;--i){if(!cats[buffer[i].category]||!srcs[buffer[i].source]){start=start||i;}else if(start){buffer.splice(i,(start-i));start=null;}}
|
||||
if(start){buffer.splice(0,start+1);}},_afterCacheLimitChange:function(e){if(isFinite(e.newVal)){var delta=this._entries.length-e.newVal;if(delta>0){this._entries.splice(0,delta);}}},refreshConsole:function(){var entries=this._entries,host=this.get(HOST),body=host.get('contentBox').query(C_BODY),remaining=host.get('consoleLimit'),cats=this.get(CATEGORY),srcs=this.get(SOURCE),buffer=[],i,e;if(body){host._cancelPrintLoop();for(i=entries.length-1;i>=0&&remaining>=0;--i){e=entries[i];if(cats[e.category]&&srcs[e.source]){buffer.unshift(e);--remaining;}}
|
||||
body.set('innerHTML',EMPTY);host.buffer=buffer;host.printBuffer();}},_uiSetCheckbox:function(type,item,checked){if(type&&item){var container=type===CATEGORY?this._categories:this._sources,sel=SEL_CHECK+getCN(CONSOLE,FILTER,item),checkbox=container.query(sel),host;if(!checkbox){host=this.get(HOST);this._createCheckbox(container,item);checkbox=container.query(sel);host._uiSetHeight(host.get('height'));}
|
||||
checkbox.set(CHECKED,checked);}},_onCategoryCheckboxClick:function(e){var t=e.target,cat;if(t.hasClass(ConsoleFilters.CHROME_CLASSES.filter)){cat=t.get('value');if(cat&&cat in this.get(CATEGORY)){this.set(CATEGORY_DOT+cat,t.get(CHECKED),{fromUI:true});}}},_onSourceCheckboxClick:function(e){var t=e.target,src;if(t.hasClass(ConsoleFilters.CHROME_CLASSES.filter)){src=t.get('value');if(src&&src in this.get(SOURCE)){this.set(SOURCE_DOT+src,t.get(CHECKED),{fromUI:true});}}},hideCategory:function(cat,multiple){if(isString(multiple)){Y.Array.each(arguments,arguments.callee,this);}else{this.set(CATEGORY_DOT+cat,false);}},showCategory:function(cat,multiple){if(isString(multiple)){Y.Array.each(arguments,arguments.callee,this);}else{this.set(CATEGORY_DOT+cat,true);}},hideSource:function(src,multiple){if(isString(multiple)){Y.Array.each(arguments,arguments.callee,this);}else{this.set(SOURCE_DOT+src,false);}},showSource:function(src,multiple){if(isString(multiple)){Y.Array.each(arguments,arguments.callee,this);}else{this.set(SOURCE_DOT+src,true);}},_createCheckbox:function(container,name){var info=Y.merge(ConsoleFilters.CHROME_CLASSES,{filter_name:name,filter_class:getCN(CONSOLE,FILTER,name)}),node=Y.Node.create(Y.substitute(ConsoleFilters.FILTER_TEMPLATE,info));container.appendChild(node);},_validateCategory:function(cat,v){return Y.Lang.isObject(v,true)&&cat.split(/\./).length<3;},_validateSource:function(src,v){return Y.Lang.isObject(v,true)&&src.split(/\./).length<3;}});Y.namespace('Plugin').ConsoleFilters=ConsoleFilters;},'3.0.0',{requires:['console','plugin']});
|
||||
8
include/javascript/yui3/build/console/console-min.js
vendored
Normal file
8
include/javascript/yui3/build/console/console-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
28
include/javascript/yui3/build/console/console.js
vendored
Normal file
28
include/javascript/yui3/build/console/console.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
include/javascript/yui3/build/cookie/cookie-min.js
vendored
Normal file
8
include/javascript/yui3/build/cookie/cookie-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("cookie",function(C){var K=C.Lang,I=C.Object,G=null,D=K.isString,P=K.isObject,F=K.isUndefined,E=K.isFunction,H=encodeURIComponent,B=decodeURIComponent,N=C.config.doc;function J(L){throw new TypeError(L);}function M(L){if(!D(L)||L===""){J("Cookie name must be a non-empty string.");}}function A(L){if(!D(L)||L===""){J("Subcookie name must be a non-empty string.");}}C.Cookie={_createCookieString:function(Q,T,R,O){O=O||{};var V=H(Q)+"="+(R?H(T):T),L=O.expires,U=O.path,S=O.domain;if(P(O)){if(L instanceof Date){V+="; expires="+L.toUTCString();}if(D(U)&&U!==""){V+="; path="+U;}if(D(S)&&S!==""){V+="; domain="+S;}if(O.secure===true){V+="; secure";}}return V;},_createCookieHashString:function(L){if(!P(L)){J("Cookie._createCookieHashString(): Argument must be an object.");}var O=[];I.each(L,function(R,Q){if(!E(R)&&!F(R)){O.push(H(Q)+"="+H(String(R)));}});return O.join("&");},_parseCookieHash:function(S){var R=S.split("&"),T=G,Q={};if(S.length){for(var O=0,L=R.length;O<L;O++){T=R[O].split("=");Q[B(T[0])]=B(T[1]);}}return Q;},_parseCookieString:function(W,Y){var X={};if(D(W)&&W.length>0){var L=(Y===false?function(Z){return Z;}:B),U=W.split(/;\s/g),V=G,O=G,R=G;for(var Q=0,S=U.length;Q<S;Q++){R=U[Q].match(/([^=]+)=/i);if(R instanceof Array){try{V=B(R[1]);O=L(U[Q].substring(R[1].length+1));}catch(T){}}else{V=B(U[Q]);O="";}X[V]=O;}}return X;},exists:function(L){M(L);var O=this._parseCookieString(N.cookie,true);return O.hasOwnProperty(L);},get:function(O,L){M(O);var S,Q,R;if(E(L)){R=L;L={};}else{if(P(L)){R=L.converter;}else{L={};}}S=this._parseCookieString(N.cookie,!L.raw);Q=S[O];if(F(Q)){return G;}if(!E(R)){return Q;}else{return R(Q);}},getSub:function(L,Q,O){var R=this.getSubs(L);if(R!==G){A(Q);if(F(R[Q])){return G;}if(!E(O)){return R[Q];}else{return O(R[Q]);}}else{return G;}},getSubs:function(L){M(L);var O=this._parseCookieString(N.cookie,false);if(D(O[L])){return this._parseCookieHash(O[L]);}return G;},remove:function(O,L){M(O);L=C.merge(L||{},{expires:new Date(0)});return this.set(O,"",L);},removeSub:function(O,S,L){M(O);A(S);L=L||{};var R=this.getSubs(O);if(P(R)&&R.hasOwnProperty(S)){delete R[S];if(!L.removeIfEmpty){return this.setSubs(O,R,L);}else{for(var Q in R){if(R.hasOwnProperty(Q)&&!E(R[Q])&&!F(R[Q])){return this.setSubs(O,R,L);}}return this.remove(O,L);}}else{return"";}},set:function(O,Q,L){M(O);if(F(Q)){J("Cookie.set(): Value cannot be undefined.");}L=L||{};var R=this._createCookieString(O,Q,!L.raw,L);N.cookie=R;return R;},setSub:function(O,R,Q,L){M(O);A(R);if(F(Q)){J("Cookie.setSub(): Subcookie value cannot be undefined.");}var S=this.getSubs(O);if(!P(S)){S={};}S[R]=Q;return this.setSubs(O,S,L);},setSubs:function(O,Q,L){M(O);if(!P(Q)){J("Cookie.setSubs(): Cookie value must be an object.");}var R=this._createCookieString(O,this._createCookieHashString(Q),false,L);N.cookie=R;return R;}};},"3.0.0",{requires:["yui-base"]});
|
||||
28
include/javascript/yui3/build/cookie/cookie.js
vendored
Normal file
28
include/javascript/yui3/build/cookie/cookie.js
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('cookie',function(Y){var L=Y.Lang,O=Y.Object,NULL=null,isString=L.isString,isObject=L.isObject,isUndefined=L.isUndefined,isFunction=L.isFunction,encode=encodeURIComponent,decode=decodeURIComponent,doc=Y.config.doc;function error(message){throw new TypeError(message);}
|
||||
function validateCookieName(name){if(!isString(name)||name===""){error("Cookie name must be a non-empty string.");}}
|
||||
function validateSubcookieName(subName){if(!isString(subName)||subName===""){error("Subcookie name must be a non-empty string.");}}
|
||||
Y.Cookie={_createCookieString:function(name,value,encodeValue,options){options=options||{};var text=encode(name)+"="+(encodeValue?encode(value):value),expires=options.expires,path=options.path,domain=options.domain;if(isObject(options)){if(expires instanceof Date){text+="; expires="+expires.toUTCString();}
|
||||
if(isString(path)&&path!==""){text+="; path="+path;}
|
||||
if(isString(domain)&&domain!==""){text+="; domain="+domain;}
|
||||
if(options.secure===true){text+="; secure";}}
|
||||
return text;},_createCookieHashString:function(hash){if(!isObject(hash)){error("Cookie._createCookieHashString(): Argument must be an object.");}
|
||||
var text=[];O.each(hash,function(value,key){if(!isFunction(value)&&!isUndefined(value)){text.push(encode(key)+"="+encode(String(value)));}});return text.join("&");},_parseCookieHash:function(text){var hashParts=text.split("&"),hashPart=NULL,hash={};if(text.length){for(var i=0,len=hashParts.length;i<len;i++){hashPart=hashParts[i].split("=");hash[decode(hashPart[0])]=decode(hashPart[1]);}}
|
||||
return hash;},_parseCookieString:function(text,shouldDecode){var cookies={};if(isString(text)&&text.length>0){var decodeValue=(shouldDecode===false?function(s){return s;}:decode),cookieParts=text.split(/;\s/g),cookieName=NULL,cookieValue=NULL,cookieNameValue=NULL;for(var i=0,len=cookieParts.length;i<len;i++){cookieNameValue=cookieParts[i].match(/([^=]+)=/i);if(cookieNameValue instanceof Array){try{cookieName=decode(cookieNameValue[1]);cookieValue=decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));}catch(ex){}}else{cookieName=decode(cookieParts[i]);cookieValue="";}
|
||||
cookies[cookieName]=cookieValue;}}
|
||||
return cookies;},exists:function(name){validateCookieName(name);var cookies=this._parseCookieString(doc.cookie,true);return cookies.hasOwnProperty(name);},get:function(name,options){validateCookieName(name);var cookies,cookie,converter;if(isFunction(options)){converter=options;options={};}else if(isObject(options)){converter=options.converter;}else{options={};}
|
||||
cookies=this._parseCookieString(doc.cookie,!options.raw);cookie=cookies[name];if(isUndefined(cookie)){return NULL;}
|
||||
if(!isFunction(converter)){return cookie;}else{return converter(cookie);}},getSub:function(name,subName,converter){var hash=this.getSubs(name);if(hash!==NULL){validateSubcookieName(subName);if(isUndefined(hash[subName])){return NULL;}
|
||||
if(!isFunction(converter)){return hash[subName];}else{return converter(hash[subName]);}}else{return NULL;}},getSubs:function(name){validateCookieName(name);var cookies=this._parseCookieString(doc.cookie,false);if(isString(cookies[name])){return this._parseCookieHash(cookies[name]);}
|
||||
return NULL;},remove:function(name,options){validateCookieName(name);options=Y.merge(options||{},{expires:new Date(0)});return this.set(name,"",options);},removeSub:function(name,subName,options){validateCookieName(name);validateSubcookieName(subName);options=options||{};var subs=this.getSubs(name);if(isObject(subs)&&subs.hasOwnProperty(subName)){delete subs[subName];if(!options.removeIfEmpty){return this.setSubs(name,subs,options);}else{for(var key in subs){if(subs.hasOwnProperty(key)&&!isFunction(subs[key])&&!isUndefined(subs[key])){return this.setSubs(name,subs,options);}}
|
||||
return this.remove(name,options);}}else{return"";}},set:function(name,value,options){validateCookieName(name);if(isUndefined(value)){error("Cookie.set(): Value cannot be undefined.");}
|
||||
options=options||{};var text=this._createCookieString(name,value,!options.raw,options);doc.cookie=text;return text;},setSub:function(name,subName,value,options){validateCookieName(name);validateSubcookieName(subName);if(isUndefined(value)){error("Cookie.setSub(): Subcookie value cannot be undefined.");}
|
||||
var hash=this.getSubs(name);if(!isObject(hash)){hash={};}
|
||||
hash[subName]=value;return this.setSubs(name,hash,options);},setSubs:function(name,value,options){validateCookieName(name);if(!isObject(value)){error("Cookie.setSubs(): Cookie value must be an object.");}
|
||||
var text=this._createCookieString(name,this._createCookieHashString(value),false,options);doc.cookie=text;return text;}};},'3.0.0',{requires:['yui-base']});
|
||||
8
include/javascript/yui3/build/dataschema/dataschema-array-min.js
vendored
Normal file
8
include/javascript/yui3/build/dataschema/dataschema-array-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("dataschema-array",function(C){var A=C.Lang,B={apply:function(F,G){var D=G,E={results:[],meta:{}};if(A.isArray(D)){if(A.isArray(F.resultFields)){E=B._parseResults(F.resultFields,D,E);}else{E.results=D;}}else{E.error=new Error("Array schema parse failure");}return E;},_parseResults:function(H,K,D){var G=[],O,N,I,J,M,L,F,E;for(F=K.length-1;F>-1;F--){O={};N=K[F];I=(A.isObject(N)&&!A.isFunction(N))?2:(A.isArray(N))?1:(A.isString(N))?0:-1;if(I>0){for(E=H.length-1;E>-1;E--){J=H[E];M=(!A.isUndefined(J.key))?J.key:J;L=(!A.isUndefined(N[M]))?N[M]:N[E];O[M]=C.DataSchema.Base.parse(L,J);}}else{if(I===0){O=N;}else{O=null;}}G[F]=O;}D.results=G;return D;}};C.DataSchema.Array=C.mix(B,C.DataSchema.Base);},"3.0.0",{requires:["dataschema-base"]});
|
||||
15
include/javascript/yui3/build/dataschema/dataschema-array.js
vendored
Normal file
15
include/javascript/yui3/build/dataschema/dataschema-array.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('dataschema-array',function(Y){var LANG=Y.Lang,SchemaArray={apply:function(schema,data){var data_in=data,data_out={results:[],meta:{}};if(LANG.isArray(data_in)){if(LANG.isArray(schema.resultFields)){data_out=SchemaArray._parseResults(schema.resultFields,data_in,data_out);}
|
||||
else{data_out.results=data_in;}}
|
||||
else{data_out.error=new Error("Array schema parse failure");}
|
||||
return data_out;},_parseResults:function(fields,array_in,data_out){var results=[],result,item,type,field,key,value,i,j;for(i=array_in.length-1;i>-1;i--){result={};item=array_in[i];type=(LANG.isObject(item)&&!LANG.isFunction(item))?2:(LANG.isArray(item))?1:(LANG.isString(item))?0:-1;if(type>0){for(j=fields.length-1;j>-1;j--){field=fields[j];key=(!LANG.isUndefined(field.key))?field.key:field;value=(!LANG.isUndefined(item[key]))?item[key]:item[j];result[key]=Y.DataSchema.Base.parse(value,field);}}
|
||||
else if(type===0){result=item;}
|
||||
else{result=null;}
|
||||
results[i]=result;}
|
||||
data_out.results=results;return data_out;}};Y.DataSchema.Array=Y.mix(SchemaArray,Y.DataSchema.Base);},'3.0.0',{requires:['dataschema-base']});
|
||||
8
include/javascript/yui3/build/dataschema/dataschema-base-min.js
vendored
Normal file
8
include/javascript/yui3/build/dataschema/dataschema-base-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("dataschema-base",function(B){var A=B.Lang,C={apply:function(D,E){return E;},parse:function(D,E){if(E.parser){var F=(A.isFunction(E.parser))?E.parser:B.Parsers[E.parser+""];if(F){D=F.call(this,D);}else{}}return D;}};B.namespace("DataSchema").Base=C;B.namespace("Parsers");},"3.0.0",{requires:["base"]});
|
||||
10
include/javascript/yui3/build/dataschema/dataschema-base.js
vendored
Normal file
10
include/javascript/yui3/build/dataschema/dataschema-base.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('dataschema-base',function(Y){var LANG=Y.Lang,SchemaBase={apply:function(schema,data){return data;},parse:function(value,field){if(field.parser){var parser=(LANG.isFunction(field.parser))?field.parser:Y.Parsers[field.parser+''];if(parser){value=parser.call(this,value);}
|
||||
else{}}
|
||||
return value;}};Y.namespace("DataSchema").Base=SchemaBase;Y.namespace("Parsers");},'3.0.0',{requires:['base']});
|
||||
8
include/javascript/yui3/build/dataschema/dataschema-json-min.js
vendored
Normal file
8
include/javascript/yui3/build/dataschema/dataschema-json-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("dataschema-json",function(C){var A=C.Lang,B={getPath:function(D){var G=null,F=[],E=0;if(D){D=D.replace(/\[(['"])(.*?)\1\]/g,function(I,H,J){F[E]=J;return".@"+(E++);}).replace(/\[(\d+)\]/g,function(I,H){F[E]=parseInt(H,10)|0;return".@"+(E++);}).replace(/^\./,"");if(!/[^\w\.\$@]/.test(D)){G=D.split(".");for(E=G.length-1;E>=0;--E){if(G[E].charAt(0)==="@"){G[E]=F[parseInt(G[E].substr(1),10)];}}}else{}}return G;},getLocationValue:function(G,F){var E=0,D=G.length;for(;E<D;E++){if(!A.isUndefined(F[G[E]])){F=F[G[E]];}else{F=undefined;break;}}return F;},apply:function(F,G){var D=G,E={results:[],meta:{}};if(!A.isObject(G)){try{D=C.JSON.parse(G);}catch(H){E.error=H;return E;}}if(A.isObject(D)&&F){if(!A.isUndefined(F.resultListLocator)){E=B._parseResults(F,D,E);}if(!A.isUndefined(F.metaFields)){E=B._parseMeta(F.metaFields,D,E);}}else{E.error=new Error("JSON schema parse failure");}return E;},_parseResults:function(H,D,G){var F=[],I,E;if(H.resultListLocator){I=B.getPath(H.resultListLocator);if(I){F=B.getLocationValue(I,D);if(F===undefined){G.results=[];E=new Error("JSON results retrieval failure");}else{if(A.isArray(H.resultFields)&&A.isArray(F)){G=B._getFieldValues(H.resultFields,F,G);}else{G.results=[];E=new Error("JSON Schema fields retrieval failure");}}}else{E=new Error("JSON Schema results locator failure");}if(E){G.error=E;}}return G;},_getFieldValues:function(K,P,E){var G=[],M=K.length,H,F,O,Q,S,D,J=[],N=[],L=[],R,I;for(H=0;H<M;H++){O=K[H];Q=O.key||O;S=B.getPath(Q);if(S){if(S.length===1){J[J.length]={key:Q,path:S[0]};}else{N[N.length]={key:Q,path:S};}}else{}D=(A.isFunction(O.parser))?O.parser:C.Parsers[O.parser+""];if(D){L[L.length]={key:Q,parser:D};}}for(H=P.length-1;H>=0;--H){I={};R=P[H];if(R){for(F=J.length-1;F>=0;--F){I[J[F].key]=C.DataSchema.Base.parse((A.isUndefined(R[J[F].path])?R[F]:R[J[F].path]),J[F]);}for(F=N.length-1;F>=0;--F){I[N[F].key]=C.DataSchema.Base.parse((B.getLocationValue(N[F].path,R)),N[F]);}for(F=L.length-1;F>=0;--F){Q=L[F].key;I[Q]=L[F].parser(I[Q]);if(A.isUndefined(I[Q])){I[Q]=null;}}G[H]=I;}}E.results=G;return E;},_parseMeta:function(G,D,F){if(A.isObject(G)){var E,H;for(E in G){if(G.hasOwnProperty(E)){H=B.getPath(G[E]);if(H&&D){F.meta[E]=B.getLocationValue(H,D);}}}}else{F.error=new Error("JSON meta data retrieval failure");}return F;}};C.DataSchema.JSON=C.mix(B,C.DataSchema.Base);},"3.0.0",{requires:["json","dataschema-base"]});
|
||||
30
include/javascript/yui3/build/dataschema/dataschema-json.js
vendored
Normal file
30
include/javascript/yui3/build/dataschema/dataschema-json.js
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('dataschema-json',function(Y){var LANG=Y.Lang,SchemaJSON={getPath:function(locator){var path=null,keys=[],i=0;if(locator){locator=locator.replace(/\[(['"])(.*?)\1\]/g,function(x,$1,$2){keys[i]=$2;return'.@'+(i++);}).replace(/\[(\d+)\]/g,function(x,$1){keys[i]=parseInt($1,10)|0;return'.@'+(i++);}).replace(/^\./,'');if(!/[^\w\.\$@]/.test(locator)){path=locator.split('.');for(i=path.length-1;i>=0;--i){if(path[i].charAt(0)==='@'){path[i]=keys[parseInt(path[i].substr(1),10)];}}}
|
||||
else{}}
|
||||
return path;},getLocationValue:function(path,data){var i=0,len=path.length;for(;i<len;i++){if(!LANG.isUndefined(data[path[i]])){data=data[path[i]];}
|
||||
else{data=undefined;break;}}
|
||||
return data;},apply:function(schema,data){var data_in=data,data_out={results:[],meta:{}};if(!LANG.isObject(data)){try{data_in=Y.JSON.parse(data);}
|
||||
catch(e){data_out.error=e;return data_out;}}
|
||||
if(LANG.isObject(data_in)&&schema){if(!LANG.isUndefined(schema.resultListLocator)){data_out=SchemaJSON._parseResults(schema,data_in,data_out);}
|
||||
if(!LANG.isUndefined(schema.metaFields)){data_out=SchemaJSON._parseMeta(schema.metaFields,data_in,data_out);}}
|
||||
else{data_out.error=new Error("JSON schema parse failure");}
|
||||
return data_out;},_parseResults:function(schema,json_in,data_out){var results=[],path,error;if(schema.resultListLocator){path=SchemaJSON.getPath(schema.resultListLocator);if(path){results=SchemaJSON.getLocationValue(path,json_in);if(results===undefined){data_out.results=[];error=new Error("JSON results retrieval failure");}
|
||||
else{if(LANG.isArray(schema.resultFields)&&LANG.isArray(results)){data_out=SchemaJSON._getFieldValues(schema.resultFields,results,data_out);}
|
||||
else{data_out.results=[];error=new Error("JSON Schema fields retrieval failure");}}}
|
||||
else{error=new Error("JSON Schema results locator failure");}
|
||||
if(error){data_out.error=error;}}
|
||||
return data_out;},_getFieldValues:function(fields,array_in,data_out){var results=[],len=fields.length,i,j,field,key,path,parser,simplePaths=[],complexPaths=[],fieldParsers=[],result,record;for(i=0;i<len;i++){field=fields[i];key=field.key||field;path=SchemaJSON.getPath(key);if(path){if(path.length===1){simplePaths[simplePaths.length]={key:key,path:path[0]};}else{complexPaths[complexPaths.length]={key:key,path:path};}}else{}
|
||||
parser=(LANG.isFunction(field.parser))?field.parser:Y.Parsers[field.parser+''];if(parser){fieldParsers[fieldParsers.length]={key:key,parser:parser};}}
|
||||
for(i=array_in.length-1;i>=0;--i){record={};result=array_in[i];if(result){for(j=simplePaths.length-1;j>=0;--j){record[simplePaths[j].key]=Y.DataSchema.Base.parse((LANG.isUndefined(result[simplePaths[j].path])?result[j]:result[simplePaths[j].path]),simplePaths[j]);}
|
||||
for(j=complexPaths.length-1;j>=0;--j){record[complexPaths[j].key]=Y.DataSchema.Base.parse((SchemaJSON.getLocationValue(complexPaths[j].path,result)),complexPaths[j]);}
|
||||
for(j=fieldParsers.length-1;j>=0;--j){key=fieldParsers[j].key;record[key]=fieldParsers[j].parser(record[key]);if(LANG.isUndefined(record[key])){record[key]=null;}}
|
||||
results[i]=record;}}
|
||||
data_out.results=results;return data_out;},_parseMeta:function(metaFields,json_in,data_out){if(LANG.isObject(metaFields)){var key,path;for(key in metaFields){if(metaFields.hasOwnProperty(key)){path=SchemaJSON.getPath(metaFields[key]);if(path&&json_in){data_out.meta[key]=SchemaJSON.getLocationValue(path,json_in);}}}}
|
||||
else{data_out.error=new Error("JSON meta data retrieval failure");}
|
||||
return data_out;}};Y.DataSchema.JSON=Y.mix(SchemaJSON,Y.DataSchema.Base);},'3.0.0',{requires:['json','dataschema-base']});
|
||||
8
include/javascript/yui3/build/dataschema/dataschema-min.js
vendored
Normal file
8
include/javascript/yui3/build/dataschema/dataschema-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
include/javascript/yui3/build/dataschema/dataschema-text-min.js
vendored
Normal file
8
include/javascript/yui3/build/dataschema/dataschema-text-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("dataschema-text",function(C){var B=C.Lang,A={apply:function(F,G){var D=G,E={results:[],meta:{}};if(B.isString(D)&&B.isString(F.resultDelimiter)){E=A._parseResults(F,D,E);}else{E.error=new Error("Text schema parse failure");}return E;},_parseResults:function(D,K,E){var I=D.resultDelimiter,H=[],L,P,S,R,J,N,Q,O,G,F,M=K.length-I.length;if(K.substr(M)==I){K=K.substr(0,M);}L=K.split(D.resultDelimiter);for(G=L.length-1;G>-1;G--){S={};R=L[G];if(B.isString(D.fieldDelimiter)){P=R.split(D.fieldDelimiter);if(B.isArray(D.resultFields)){J=D.resultFields;for(F=J.length-1;F>-1;F--){N=J[F];Q=(!B.isUndefined(N.key))?N.key:N;O=(!B.isUndefined(P[Q]))?P[Q]:P[F];S[Q]=C.DataSchema.Base.parse(O,N);}}}else{S=R;}H[G]=S;}E.results=H;return E;}};C.DataSchema.Text=C.mix(A,C.DataSchema.Base);},"3.0.0",{requires:["dataschema-base"]});
|
||||
14
include/javascript/yui3/build/dataschema/dataschema-text.js
vendored
Normal file
14
include/javascript/yui3/build/dataschema/dataschema-text.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('dataschema-text',function(Y){var LANG=Y.Lang,SchemaText={apply:function(schema,data){var data_in=data,data_out={results:[],meta:{}};if(LANG.isString(data_in)&&LANG.isString(schema.resultDelimiter)){data_out=SchemaText._parseResults(schema,data_in,data_out);}
|
||||
else{data_out.error=new Error("Text schema parse failure");}
|
||||
return data_out;},_parseResults:function(schema,text_in,data_out){var resultDelim=schema.resultDelimiter,results=[],results_in,fields_in,result,item,fields,field,key,value,i,j,tmpLength=text_in.length-resultDelim.length;if(text_in.substr(tmpLength)==resultDelim){text_in=text_in.substr(0,tmpLength);}
|
||||
results_in=text_in.split(schema.resultDelimiter);for(i=results_in.length-1;i>-1;i--){result={};item=results_in[i];if(LANG.isString(schema.fieldDelimiter)){fields_in=item.split(schema.fieldDelimiter);if(LANG.isArray(schema.resultFields)){fields=schema.resultFields;for(j=fields.length-1;j>-1;j--){field=fields[j];key=(!LANG.isUndefined(field.key))?field.key:field;value=(!LANG.isUndefined(fields_in[key]))?fields_in[key]:fields_in[j];result[key]=Y.DataSchema.Base.parse(value,field);}}}
|
||||
else{result=item;}
|
||||
results[i]=result;}
|
||||
data_out.results=results;return data_out;}};Y.DataSchema.Text=Y.mix(SchemaText,Y.DataSchema.Base);},'3.0.0',{requires:['dataschema-base']});
|
||||
8
include/javascript/yui3/build/dataschema/dataschema-xml-min.js
vendored
Normal file
8
include/javascript/yui3/build/dataschema/dataschema-xml-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("dataschema-xml",function(C){var B=C.Lang,A={apply:function(F,G){var D=G,E={results:[],meta:{}};if(D&&D.nodeType&&(D.nodeType===9||D.nodeType===1||D.nodeType===11)&&F){E=A._parseResults(F,D,E);E=A._parseMeta(F.metaFields,D,E);}else{E.error=new Error("XML schema parse failure");}return E;},_getLocationValue:function(K,H){var F=K.locator||K.key||K,E=H.ownerDocument||H,D,G,I=null;try{if(!B.isUndefined(E.evaluate)){D=E.evaluate(F,H,E.createNSResolver(!H.ownerDocument?H.documentElement:H.ownerDocument.documentElement),0,null);while(G=D.iterateNext()){I=G.textContent;}}else{E.setProperty("SelectionLanguage","XPath");D=H.selectNodes(F)[0];I=D.value||D.text||null;}return C.DataSchema.Base.parse(I,K);}catch(J){}},_parseMeta:function(H,G,F){if(B.isObject(H)){var E,D=G.ownerDocument||G;for(E in H){if(H.hasOwnProperty(E)){F.meta[E]=A._getLocationValue(H[E],D);}}}return F;},_parseResults:function(F,K,G){if(F.resultListLocator&&B.isArray(F.resultFields)){var E=K.getElementsByTagName(F.resultListLocator),L=F.resultFields,J=[],D,M,N,I,H;if(E.length){for(I=E.length-1;I>=0;I--){N={};D=E[I];for(H=L.length-1;H>=0;H--){M=L[H];N[M.key||M]=A._getLocationValue(M,D);}J[I]=N;}G.results=J;}else{G.error=new Error("XML schema result nodes retrieval failure");}}return G;}};C.DataSchema.XML=C.mix(A,C.DataSchema.Base);},"3.0.0",{requires:["dataschema-base"]});
|
||||
18
include/javascript/yui3/build/dataschema/dataschema-xml.js
vendored
Normal file
18
include/javascript/yui3/build/dataschema/dataschema-xml.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('dataschema-xml',function(Y){var LANG=Y.Lang,SchemaXML={apply:function(schema,data){var xmldoc=data,data_out={results:[],meta:{}};if(xmldoc&&xmldoc.nodeType&&(xmldoc.nodeType===9||xmldoc.nodeType===1||xmldoc.nodeType===11)&&schema){data_out=SchemaXML._parseResults(schema,xmldoc,data_out);data_out=SchemaXML._parseMeta(schema.metaFields,xmldoc,data_out);}
|
||||
else{data_out.error=new Error("XML schema parse failure");}
|
||||
return data_out;},_getLocationValue:function(field,context){var locator=field.locator||field.key||field,xmldoc=context.ownerDocument||context,result,res,value=null;try{if(!LANG.isUndefined(xmldoc.evaluate)){result=xmldoc.evaluate(locator,context,xmldoc.createNSResolver(!context.ownerDocument?context.documentElement:context.ownerDocument.documentElement),0,null);while(res=result.iterateNext()){value=res.textContent;}}
|
||||
else{xmldoc.setProperty("SelectionLanguage","XPath");result=context.selectNodes(locator)[0];value=result.value||result.text||null;}
|
||||
return Y.DataSchema.Base.parse(value,field);}
|
||||
catch(e){}},_parseMeta:function(metaFields,xmldoc_in,data_out){if(LANG.isObject(metaFields)){var key,xmldoc=xmldoc_in.ownerDocument||xmldoc_in;for(key in metaFields){if(metaFields.hasOwnProperty(key)){data_out.meta[key]=SchemaXML._getLocationValue(metaFields[key],xmldoc);}}}
|
||||
return data_out;},_parseResults:function(schema,xmldoc_in,data_out){if(schema.resultListLocator&&LANG.isArray(schema.resultFields)){var nodeList=xmldoc_in.getElementsByTagName(schema.resultListLocator),fields=schema.resultFields,results=[],node,field,result,i,j;if(nodeList.length){for(i=nodeList.length-1;i>=0;i--){result={};node=nodeList[i];for(j=fields.length-1;j>=0;j--){field=fields[j];result[field.key||field]=SchemaXML._getLocationValue(field,node);}
|
||||
results[i]=result;}
|
||||
data_out.results=results;}
|
||||
else{data_out.error=new Error("XML schema result nodes retrieval failure");}}
|
||||
return data_out;}};Y.DataSchema.XML=Y.mix(SchemaXML,Y.DataSchema.Base);},'3.0.0',{requires:['dataschema-base']});
|
||||
55
include/javascript/yui3/build/dataschema/dataschema.js
vendored
Normal file
55
include/javascript/yui3/build/dataschema/dataschema.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('dataschema-base',function(Y){var LANG=Y.Lang,SchemaBase={apply:function(schema,data){return data;},parse:function(value,field){if(field.parser){var parser=(LANG.isFunction(field.parser))?field.parser:Y.Parsers[field.parser+''];if(parser){value=parser.call(this,value);}
|
||||
else{}}
|
||||
return value;}};Y.namespace("DataSchema").Base=SchemaBase;Y.namespace("Parsers");},'3.0.0',{requires:['base']});YUI.add('dataschema-json',function(Y){var LANG=Y.Lang,SchemaJSON={getPath:function(locator){var path=null,keys=[],i=0;if(locator){locator=locator.replace(/\[(['"])(.*?)\1\]/g,function(x,$1,$2){keys[i]=$2;return'.@'+(i++);}).replace(/\[(\d+)\]/g,function(x,$1){keys[i]=parseInt($1,10)|0;return'.@'+(i++);}).replace(/^\./,'');if(!/[^\w\.\$@]/.test(locator)){path=locator.split('.');for(i=path.length-1;i>=0;--i){if(path[i].charAt(0)==='@'){path[i]=keys[parseInt(path[i].substr(1),10)];}}}
|
||||
else{}}
|
||||
return path;},getLocationValue:function(path,data){var i=0,len=path.length;for(;i<len;i++){if(!LANG.isUndefined(data[path[i]])){data=data[path[i]];}
|
||||
else{data=undefined;break;}}
|
||||
return data;},apply:function(schema,data){var data_in=data,data_out={results:[],meta:{}};if(!LANG.isObject(data)){try{data_in=Y.JSON.parse(data);}
|
||||
catch(e){data_out.error=e;return data_out;}}
|
||||
if(LANG.isObject(data_in)&&schema){if(!LANG.isUndefined(schema.resultListLocator)){data_out=SchemaJSON._parseResults(schema,data_in,data_out);}
|
||||
if(!LANG.isUndefined(schema.metaFields)){data_out=SchemaJSON._parseMeta(schema.metaFields,data_in,data_out);}}
|
||||
else{data_out.error=new Error("JSON schema parse failure");}
|
||||
return data_out;},_parseResults:function(schema,json_in,data_out){var results=[],path,error;if(schema.resultListLocator){path=SchemaJSON.getPath(schema.resultListLocator);if(path){results=SchemaJSON.getLocationValue(path,json_in);if(results===undefined){data_out.results=[];error=new Error("JSON results retrieval failure");}
|
||||
else{if(LANG.isArray(schema.resultFields)&&LANG.isArray(results)){data_out=SchemaJSON._getFieldValues(schema.resultFields,results,data_out);}
|
||||
else{data_out.results=[];error=new Error("JSON Schema fields retrieval failure");}}}
|
||||
else{error=new Error("JSON Schema results locator failure");}
|
||||
if(error){data_out.error=error;}}
|
||||
return data_out;},_getFieldValues:function(fields,array_in,data_out){var results=[],len=fields.length,i,j,field,key,path,parser,simplePaths=[],complexPaths=[],fieldParsers=[],result,record;for(i=0;i<len;i++){field=fields[i];key=field.key||field;path=SchemaJSON.getPath(key);if(path){if(path.length===1){simplePaths[simplePaths.length]={key:key,path:path[0]};}else{complexPaths[complexPaths.length]={key:key,path:path};}}else{}
|
||||
parser=(LANG.isFunction(field.parser))?field.parser:Y.Parsers[field.parser+''];if(parser){fieldParsers[fieldParsers.length]={key:key,parser:parser};}}
|
||||
for(i=array_in.length-1;i>=0;--i){record={};result=array_in[i];if(result){for(j=simplePaths.length-1;j>=0;--j){record[simplePaths[j].key]=Y.DataSchema.Base.parse((LANG.isUndefined(result[simplePaths[j].path])?result[j]:result[simplePaths[j].path]),simplePaths[j]);}
|
||||
for(j=complexPaths.length-1;j>=0;--j){record[complexPaths[j].key]=Y.DataSchema.Base.parse((SchemaJSON.getLocationValue(complexPaths[j].path,result)),complexPaths[j]);}
|
||||
for(j=fieldParsers.length-1;j>=0;--j){key=fieldParsers[j].key;record[key]=fieldParsers[j].parser(record[key]);if(LANG.isUndefined(record[key])){record[key]=null;}}
|
||||
results[i]=record;}}
|
||||
data_out.results=results;return data_out;},_parseMeta:function(metaFields,json_in,data_out){if(LANG.isObject(metaFields)){var key,path;for(key in metaFields){if(metaFields.hasOwnProperty(key)){path=SchemaJSON.getPath(metaFields[key]);if(path&&json_in){data_out.meta[key]=SchemaJSON.getLocationValue(path,json_in);}}}}
|
||||
else{data_out.error=new Error("JSON meta data retrieval failure");}
|
||||
return data_out;}};Y.DataSchema.JSON=Y.mix(SchemaJSON,Y.DataSchema.Base);},'3.0.0',{requires:['json','dataschema-base']});YUI.add('dataschema-xml',function(Y){var LANG=Y.Lang,SchemaXML={apply:function(schema,data){var xmldoc=data,data_out={results:[],meta:{}};if(xmldoc&&xmldoc.nodeType&&(xmldoc.nodeType===9||xmldoc.nodeType===1||xmldoc.nodeType===11)&&schema){data_out=SchemaXML._parseResults(schema,xmldoc,data_out);data_out=SchemaXML._parseMeta(schema.metaFields,xmldoc,data_out);}
|
||||
else{data_out.error=new Error("XML schema parse failure");}
|
||||
return data_out;},_getLocationValue:function(field,context){var locator=field.locator||field.key||field,xmldoc=context.ownerDocument||context,result,res,value=null;try{if(!LANG.isUndefined(xmldoc.evaluate)){result=xmldoc.evaluate(locator,context,xmldoc.createNSResolver(!context.ownerDocument?context.documentElement:context.ownerDocument.documentElement),0,null);while(res=result.iterateNext()){value=res.textContent;}}
|
||||
else{xmldoc.setProperty("SelectionLanguage","XPath");result=context.selectNodes(locator)[0];value=result.value||result.text||null;}
|
||||
return Y.DataSchema.Base.parse(value,field);}
|
||||
catch(e){}},_parseMeta:function(metaFields,xmldoc_in,data_out){if(LANG.isObject(metaFields)){var key,xmldoc=xmldoc_in.ownerDocument||xmldoc_in;for(key in metaFields){if(metaFields.hasOwnProperty(key)){data_out.meta[key]=SchemaXML._getLocationValue(metaFields[key],xmldoc);}}}
|
||||
return data_out;},_parseResults:function(schema,xmldoc_in,data_out){if(schema.resultListLocator&&LANG.isArray(schema.resultFields)){var nodeList=xmldoc_in.getElementsByTagName(schema.resultListLocator),fields=schema.resultFields,results=[],node,field,result,i,j;if(nodeList.length){for(i=nodeList.length-1;i>=0;i--){result={};node=nodeList[i];for(j=fields.length-1;j>=0;j--){field=fields[j];result[field.key||field]=SchemaXML._getLocationValue(field,node);}
|
||||
results[i]=result;}
|
||||
data_out.results=results;}
|
||||
else{data_out.error=new Error("XML schema result nodes retrieval failure");}}
|
||||
return data_out;}};Y.DataSchema.XML=Y.mix(SchemaXML,Y.DataSchema.Base);},'3.0.0',{requires:['dataschema-base']});YUI.add('dataschema-array',function(Y){var LANG=Y.Lang,SchemaArray={apply:function(schema,data){var data_in=data,data_out={results:[],meta:{}};if(LANG.isArray(data_in)){if(LANG.isArray(schema.resultFields)){data_out=SchemaArray._parseResults(schema.resultFields,data_in,data_out);}
|
||||
else{data_out.results=data_in;}}
|
||||
else{data_out.error=new Error("Array schema parse failure");}
|
||||
return data_out;},_parseResults:function(fields,array_in,data_out){var results=[],result,item,type,field,key,value,i,j;for(i=array_in.length-1;i>-1;i--){result={};item=array_in[i];type=(LANG.isObject(item)&&!LANG.isFunction(item))?2:(LANG.isArray(item))?1:(LANG.isString(item))?0:-1;if(type>0){for(j=fields.length-1;j>-1;j--){field=fields[j];key=(!LANG.isUndefined(field.key))?field.key:field;value=(!LANG.isUndefined(item[key]))?item[key]:item[j];result[key]=Y.DataSchema.Base.parse(value,field);}}
|
||||
else if(type===0){result=item;}
|
||||
else{result=null;}
|
||||
results[i]=result;}
|
||||
data_out.results=results;return data_out;}};Y.DataSchema.Array=Y.mix(SchemaArray,Y.DataSchema.Base);},'3.0.0',{requires:['dataschema-base']});YUI.add('dataschema-text',function(Y){var LANG=Y.Lang,SchemaText={apply:function(schema,data){var data_in=data,data_out={results:[],meta:{}};if(LANG.isString(data_in)&&LANG.isString(schema.resultDelimiter)){data_out=SchemaText._parseResults(schema,data_in,data_out);}
|
||||
else{data_out.error=new Error("Text schema parse failure");}
|
||||
return data_out;},_parseResults:function(schema,text_in,data_out){var resultDelim=schema.resultDelimiter,results=[],results_in,fields_in,result,item,fields,field,key,value,i,j,tmpLength=text_in.length-resultDelim.length;if(text_in.substr(tmpLength)==resultDelim){text_in=text_in.substr(0,tmpLength);}
|
||||
results_in=text_in.split(schema.resultDelimiter);for(i=results_in.length-1;i>-1;i--){result={};item=results_in[i];if(LANG.isString(schema.fieldDelimiter)){fields_in=item.split(schema.fieldDelimiter);if(LANG.isArray(schema.resultFields)){fields=schema.resultFields;for(j=fields.length-1;j>-1;j--){field=fields[j];key=(!LANG.isUndefined(field.key))?field.key:field;value=(!LANG.isUndefined(fields_in[key]))?fields_in[key]:fields_in[j];result[key]=Y.DataSchema.Base.parse(value,field);}}}
|
||||
else{result=item;}
|
||||
results[i]=result;}
|
||||
data_out.results=results;return data_out;}};Y.DataSchema.Text=Y.mix(SchemaText,Y.DataSchema.Base);},'3.0.0',{requires:['dataschema-base']});YUI.add('dataschema',function(Y){},'3.0.0',{use:['dataschema-base','dataschema-json','dataschema-xml','dataschema-array','dataschema-text']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-arrayschema-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-arrayschema-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-arrayschema",function(B){var A=function(){A.superclass.constructor.apply(this,arguments);};B.mix(A,{NS:"schema",NAME:"dataSourceArraySchema",ATTRS:{schema:{}}});B.extend(A,B.Plugin.Base,{initializer:function(C){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(E){var D=(B.DataSource.IO&&(this.get("host")instanceof B.DataSource.IO)&&B.Lang.isString(E.data.responseText))?E.data.responseText:E.data,C=B.DataSchema.Array.apply(this.get("schema"),D);if(!C){C={meta:{},results:D};}this.get("host").fire("response",B.mix({response:C},E));return new B.Do.Halt("DataSourceArraySchema plugin halted _defDataFn");}});B.namespace("Plugin").DataSourceArraySchema=A;},"3.0.0",{requires:["plugin","datasource-local","dataschema-array"]});
|
||||
9
include/javascript/yui3/build/datasource/datasource-arrayschema.js
vendored
Normal file
9
include/javascript/yui3/build/datasource/datasource-arrayschema.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-arrayschema',function(Y){var DataSourceArraySchema=function(){DataSourceArraySchema.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceArraySchema,{NS:"schema",NAME:"dataSourceArraySchema",ATTRS:{schema:{}}});Y.extend(DataSourceArraySchema,Y.Plugin.Base,{initializer:function(config){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(e){var data=(Y.DataSource.IO&&(this.get("host")instanceof Y.DataSource.IO)&&Y.Lang.isString(e.data.responseText))?e.data.responseText:e.data,response=Y.DataSchema.Array.apply(this.get("schema"),data);if(!response){response={meta:{},results:data};}
|
||||
this.get("host").fire("response",Y.mix({response:response},e));return new Y.Do.Halt("DataSourceArraySchema plugin halted _defDataFn");}});Y.namespace('Plugin').DataSourceArraySchema=DataSourceArraySchema;},'3.0.0',{requires:['plugin','datasource-local','dataschema-array']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-cache-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-cache-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-cache",function(B){var A=function(){A.superclass.constructor.apply(this,arguments);};B.mix(A,{NS:"cache",NAME:"dataSourceCache",ATTRS:{}});B.extend(A,B.Cache,{initializer:function(C){this.doBefore("_defRequestFn",this._beforeDefRequestFn);this.doBefore("_defResponseFn",this._beforeDefResponseFn);},_beforeDefRequestFn:function(D){var C=(this.retrieve(D.request))||null;if(C&&C.response){this.get("host").fire("response",B.mix({response:C.response},D));return new B.Do.Halt("DataSourceCache plugin halted _defRequestFn");}},_beforeDefResponseFn:function(C){if(C.response&&!C.response.cached){C.response.cached=true;this.add(C.request,C.response,(C.callback&&C.callback.argument));}}});B.namespace("Plugin").DataSourceCache=A;},"3.0.0",{requires:["datasource-local","cache"]});
|
||||
8
include/javascript/yui3/build/datasource/datasource-cache.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-cache.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-cache',function(Y){var DataSourceCache=function(){DataSourceCache.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceCache,{NS:"cache",NAME:"dataSourceCache",ATTRS:{}});Y.extend(DataSourceCache,Y.Cache,{initializer:function(config){this.doBefore("_defRequestFn",this._beforeDefRequestFn);this.doBefore("_defResponseFn",this._beforeDefResponseFn);},_beforeDefRequestFn:function(e){var entry=(this.retrieve(e.request))||null;if(entry&&entry.response){this.get("host").fire("response",Y.mix({response:entry.response},e));return new Y.Do.Halt("DataSourceCache plugin halted _defRequestFn");}},_beforeDefResponseFn:function(e){if(e.response&&!e.response.cached){e.response.cached=true;this.add(e.request,e.response,(e.callback&&e.callback.argument));}}});Y.namespace('Plugin').DataSourceCache=DataSourceCache;},'3.0.0',{requires:['datasource-local','cache']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-function-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-function-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-function",function(B){var A=B.Lang,C=function(){C.superclass.constructor.apply(this,arguments);};B.mix(C,{NAME:"dataSourceFunction",ATTRS:{source:{validator:A.isFunction}}});B.extend(C,B.DataSource.Local,{_defRequestFn:function(G){var F=this.get("source"),D;if(F){try{D=F(G.request,this,G);this.fire("data",B.mix({data:D},G));}catch(E){G.error=E;this.fire("error",G);}}else{G.error=new Error("Function data failure");this.fire("error",G);}return G.tId;}});B.DataSource.Function=C;},"3.0.0",{requires:["datasource-local"]});
|
||||
11
include/javascript/yui3/build/datasource/datasource-function.js
vendored
Normal file
11
include/javascript/yui3/build/datasource/datasource-function.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-function',function(Y){var LANG=Y.Lang,DSFn=function(){DSFn.superclass.constructor.apply(this,arguments);};Y.mix(DSFn,{NAME:"dataSourceFunction",ATTRS:{source:{validator:LANG.isFunction}}});Y.extend(DSFn,Y.DataSource.Local,{_defRequestFn:function(e){var fn=this.get("source"),response;if(fn){try{response=fn(e.request,this,e);this.fire("data",Y.mix({data:response},e));}
|
||||
catch(error){e.error=error;this.fire("error",e);}}
|
||||
else{e.error=new Error("Function data failure");this.fire("error",e);}
|
||||
return e.tId;}});Y.DataSource.Function=DSFn;},'3.0.0',{requires:['datasource-local']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-get-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-get-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-get",function(B){var A=function(){A.superclass.constructor.apply(this,arguments);};B.mix(A,{NAME:"dataSourceGet",ATTRS:{get:{value:B.Get,cloneDefaultValue:false},asyncMode:{value:"allowAll"},scriptCallbackParam:{value:"callback"},generateRequestCallback:{value:function(C,D){return"&"+C.get("scriptCallbackParam")+"=YUI.Env.DataSource.callbacks["+D+"]";}}},callbacks:[],_tId:0});B.extend(A,B.DataSource.Local,{_defRequestFn:function(F){var E=this.get("source"),D=this.get("get"),G=A._tId++,C=this;YUI.Env.DataSource.callbacks[G]=B.rbind(function(H){if((C.get("asyncMode")!=="ignoreStaleResponses")||(G===A.callbacks.length-1)){C.fire("data",B.mix({data:H},F));}else{}delete A.callbacks[G];},this,G);E+=F.request+this.get("generateRequestCallback")(this,G);D.script(E,{autopurge:true,onFailure:B.bind(function(H){H.error=new Error("Script node data failure");this.fire("error",H);},this,F)});return F.tId;}});B.DataSource.Get=A;YUI.namespace("Env.DataSource.callbacks");},"3.0.0",{requires:["datasource-local","get"]});
|
||||
10
include/javascript/yui3/build/datasource/datasource-get.js
vendored
Normal file
10
include/javascript/yui3/build/datasource/datasource-get.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-get',function(Y){var DSGet=function(){DSGet.superclass.constructor.apply(this,arguments);};Y.mix(DSGet,{NAME:"dataSourceGet",ATTRS:{get:{value:Y.Get,cloneDefaultValue:false},asyncMode:{value:"allowAll"},scriptCallbackParam:{value:"callback"},generateRequestCallback:{value:function(self,id){return"&"+self.get("scriptCallbackParam")+"=YUI.Env.DataSource.callbacks["+id+"]";}}},callbacks:[],_tId:0});Y.extend(DSGet,Y.DataSource.Local,{_defRequestFn:function(e){var uri=this.get("source"),get=this.get("get"),id=DSGet._tId++,self=this;YUI.Env.DataSource.callbacks[id]=Y.rbind(function(response){if((self.get("asyncMode")!=="ignoreStaleResponses")||(id===DSGet.callbacks.length-1)){self.fire("data",Y.mix({data:response},e));}
|
||||
else{}
|
||||
delete DSGet.callbacks[id];},this,id);uri+=e.request+this.get("generateRequestCallback")(this,id);get.script(uri,{autopurge:true,onFailure:Y.bind(function(e){e.error=new Error("Script node data failure");this.fire("error",e);},this,e)});return e.tId;}});Y.DataSource.Get=DSGet;YUI.namespace("Env.DataSource.callbacks");},'3.0.0',{requires:['datasource-local','get']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-io-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-io-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-io",function(B){var A=function(){A.superclass.constructor.apply(this,arguments);};B.mix(A,{NAME:"dataSourceIO",ATTRS:{io:{value:B.io,cloneDefaultValue:false}}});B.extend(A,B.DataSource.Local,{initializer:function(C){this._queue={interval:null,conn:null,requests:[]};},_queue:null,_defRequestFn:function(F){var E=this.get("source"),G=this.get("io"),D=F.request,C=B.mix(F.cfg,{on:{success:function(J,H,I){this.fire("data",B.mix({data:H},I));},failure:function(J,H,I){I.error=new Error("IO data failure");this.fire("error",B.mix({data:H},I));this.fire("data",B.mix({data:H},I));}},context:this,arguments:F});if(B.Lang.isString(D)){if(C.method&&(C.method.toUpperCase()==="POST")){C.data=C.data?C.data+D:D;}else{E+=D;}}G(E,C);return F.tId;}});B.DataSource.IO=A;},"3.0.0",{requires:["datasource-local","io"]});
|
||||
10
include/javascript/yui3/build/datasource/datasource-io.js
vendored
Normal file
10
include/javascript/yui3/build/datasource/datasource-io.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-io',function(Y){var DSIO=function(){DSIO.superclass.constructor.apply(this,arguments);};Y.mix(DSIO,{NAME:"dataSourceIO",ATTRS:{io:{value:Y.io,cloneDefaultValue:false}}});Y.extend(DSIO,Y.DataSource.Local,{initializer:function(config){this._queue={interval:null,conn:null,requests:[]};},_queue:null,_defRequestFn:function(e){var uri=this.get("source"),io=this.get("io"),request=e.request,cfg=Y.mix(e.cfg,{on:{success:function(id,response,e){this.fire("data",Y.mix({data:response},e));},failure:function(id,response,e){e.error=new Error("IO data failure");this.fire("error",Y.mix({data:response},e));this.fire("data",Y.mix({data:response},e));}},context:this,arguments:e});if(Y.Lang.isString(request)){if(cfg.method&&(cfg.method.toUpperCase()==="POST")){cfg.data=cfg.data?cfg.data+request:request;}
|
||||
else{uri+=request;}}
|
||||
io(uri,cfg);return e.tId;}});Y.DataSource.IO=DSIO;},'3.0.0',{requires:['datasource-local','io']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-jsonschema-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-jsonschema-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-jsonschema",function(B){var A=function(){A.superclass.constructor.apply(this,arguments);};B.mix(A,{NS:"schema",NAME:"dataSourceJSONSchema",ATTRS:{schema:{}}});B.extend(A,B.Plugin.Base,{initializer:function(C){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(E){var D=(B.DataSource.IO&&(this.get("host")instanceof B.DataSource.IO)&&B.Lang.isString(E.data.responseText))?E.data.responseText:E.data,C=B.DataSchema.JSON.apply(this.get("schema"),D);if(!C){C={meta:{},results:D};}this.get("host").fire("response",B.mix({response:C},E));return new B.Do.Halt("DataSourceJSONSchema plugin halted _defDataFn");}});B.namespace("Plugin").DataSourceJSONSchema=A;},"3.0.0",{requires:["plugin","datasource-local","dataschema-json"]});
|
||||
9
include/javascript/yui3/build/datasource/datasource-jsonschema.js
vendored
Normal file
9
include/javascript/yui3/build/datasource/datasource-jsonschema.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-jsonschema',function(Y){var DataSourceJSONSchema=function(){DataSourceJSONSchema.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceJSONSchema,{NS:"schema",NAME:"dataSourceJSONSchema",ATTRS:{schema:{}}});Y.extend(DataSourceJSONSchema,Y.Plugin.Base,{initializer:function(config){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(e){var data=(Y.DataSource.IO&&(this.get("host")instanceof Y.DataSource.IO)&&Y.Lang.isString(e.data.responseText))?e.data.responseText:e.data,response=Y.DataSchema.JSON.apply(this.get("schema"),data);if(!response){response={meta:{},results:data};}
|
||||
this.get("host").fire("response",Y.mix({response:response},e));return new Y.Do.Halt("DataSourceJSONSchema plugin halted _defDataFn");}});Y.namespace('Plugin').DataSourceJSONSchema=DataSourceJSONSchema;},'3.0.0',{requires:['plugin','datasource-local','dataschema-json']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-local-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-local-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-local",function(C){var B=C.Lang,A=function(){A.superclass.constructor.apply(this,arguments);};C.mix(A,{NAME:"dataSourceLocal",ATTRS:{source:{value:null}},_tId:0,issueCallback:function(E){if(E.callback){var D=(E.error&&E.callback.failure)||E.callback.success;if(D){D(E);}}}});C.extend(A,C.Base,{initializer:function(D){this._initEvents();},_initEvents:function(){this.publish("request",{defaultFn:C.bind("_defRequestFn",this),queuable:true});this.publish("data",{defaultFn:C.bind("_defDataFn",this),queuable:true});this.publish("response",{defaultFn:C.bind("_defResponseFn",this),queuable:true});},_defRequestFn:function(E){var D=this.get("source");if(B.isUndefined(D)){E.error=new Error("Local source undefined");}if(E.error){this.fire("error",E);}this.fire("data",C.mix({data:D},E));},_defDataFn:function(G){var E=G.data,F=G.meta,D={results:(B.isArray(E))?E:[E],meta:(F)?F:{}};this.fire("response",C.mix({response:D},G));},_defResponseFn:function(D){A.issueCallback(D);},sendRequest:function(E,G,D){var F=A._tId++;this.fire("request",{tId:F,request:E,callback:G,cfg:D||{}});return F;}});C.namespace("DataSource").Local=A;},"3.0.0",{requires:["base"]});
|
||||
10
include/javascript/yui3/build/datasource/datasource-local.js
vendored
Normal file
10
include/javascript/yui3/build/datasource/datasource-local.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-local',function(Y){var LANG=Y.Lang,DSLocal=function(){DSLocal.superclass.constructor.apply(this,arguments);};Y.mix(DSLocal,{NAME:"dataSourceLocal",ATTRS:{source:{value:null}},_tId:0,issueCallback:function(e){if(e.callback){var callbackFunc=(e.error&&e.callback.failure)||e.callback.success;if(callbackFunc){callbackFunc(e);}}}});Y.extend(DSLocal,Y.Base,{initializer:function(config){this._initEvents();},_initEvents:function(){this.publish("request",{defaultFn:Y.bind("_defRequestFn",this),queuable:true});this.publish("data",{defaultFn:Y.bind("_defDataFn",this),queuable:true});this.publish("response",{defaultFn:Y.bind("_defResponseFn",this),queuable:true});},_defRequestFn:function(e){var data=this.get("source");if(LANG.isUndefined(data)){e.error=new Error("Local source undefined");}
|
||||
if(e.error){this.fire("error",e);}
|
||||
this.fire("data",Y.mix({data:data},e));},_defDataFn:function(e){var data=e.data,meta=e.meta,response={results:(LANG.isArray(data))?data:[data],meta:(meta)?meta:{}};this.fire("response",Y.mix({response:response},e));},_defResponseFn:function(e){DSLocal.issueCallback(e);},sendRequest:function(request,callback,cfg){var tId=DSLocal._tId++;this.fire("request",{tId:tId,request:request,callback:callback,cfg:cfg||{}});return tId;}});Y.namespace("DataSource").Local=DSLocal;},'3.0.0',{requires:['base']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
include/javascript/yui3/build/datasource/datasource-polling-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-polling-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-polling",function(C){var A=C.Lang,B=function(){this._intervals={};};B.prototype={_intervals:null,setInterval:function(F,E,G){var D=C.later(F,this,this.sendRequest,[E,G],true);this._intervals[D.id]=D;return D.id;},clearInterval:function(E,D){E=D||E;if(this._intervals[E]){this._intervals[E].cancel();delete this._intervals[E];}},clearAllIntervals:function(){C.each(this._intervals,this.clearInterval,this);}};C.augment(C.DataSource.Local,B);},"3.0.0",{requires:["datasource-local"]});
|
||||
8
include/javascript/yui3/build/datasource/datasource-polling.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-polling.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-polling',function(Y){var LANG=Y.Lang,Pollable=function(){this._intervals={};};Pollable.prototype={_intervals:null,setInterval:function(msec,request,callback){var x=Y.later(msec,this,this.sendRequest,[request,callback],true);this._intervals[x.id]=x;return x.id;},clearInterval:function(id,key){id=key||id;if(this._intervals[id]){this._intervals[id].cancel();delete this._intervals[id];}},clearAllIntervals:function(){Y.each(this._intervals,this.clearInterval,this);}};Y.augment(Y.DataSource.Local,Pollable);},'3.0.0',{requires:['datasource-local']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-textschema-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-textschema-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-textschema",function(B){var A=function(){A.superclass.constructor.apply(this,arguments);};B.mix(A,{NS:"schema",NAME:"dataSourceTextSchema",ATTRS:{schema:{}}});B.extend(A,B.Plugin.Base,{initializer:function(C){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(E){var D=(B.DataSource.IO&&(this.get("host")instanceof B.DataSource.IO)&&B.Lang.isString(E.data.responseText))?E.data.responseText:E.data,C=B.DataSchema.Text.apply(this.get("schema"),D);if(!C){C={meta:{},results:D};}this.get("host").fire("response",B.mix({response:C},E));return new B.Do.Halt("DataSourceTextSchema plugin halted _defDataFn");}});B.namespace("Plugin").DataSourceTextSchema=A;},"3.0.0",{requires:["plugin","datasource-local","dataschema-text"]});
|
||||
9
include/javascript/yui3/build/datasource/datasource-textschema.js
vendored
Normal file
9
include/javascript/yui3/build/datasource/datasource-textschema.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-textschema',function(Y){var DataSourceTextSchema=function(){DataSourceTextSchema.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceTextSchema,{NS:"schema",NAME:"dataSourceTextSchema",ATTRS:{schema:{}}});Y.extend(DataSourceTextSchema,Y.Plugin.Base,{initializer:function(config){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(e){var data=(Y.DataSource.IO&&(this.get("host")instanceof Y.DataSource.IO)&&Y.Lang.isString(e.data.responseText))?e.data.responseText:e.data,response=Y.DataSchema.Text.apply(this.get("schema"),data);if(!response){response={meta:{},results:data};}
|
||||
this.get("host").fire("response",Y.mix({response:response},e));return new Y.Do.Halt("DataSourceTextSchema plugin halted _defDataFn");}});Y.namespace('Plugin').DataSourceTextSchema=DataSourceTextSchema;},'3.0.0',{requires:['plugin','datasource-local','dataschema-text']});
|
||||
8
include/javascript/yui3/build/datasource/datasource-xmlschema-min.js
vendored
Normal file
8
include/javascript/yui3/build/datasource/datasource-xmlschema-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datasource-xmlschema",function(B){var A=function(){A.superclass.constructor.apply(this,arguments);};B.mix(A,{NS:"schema",NAME:"dataSourceXMLSchema",ATTRS:{schema:{}}});B.extend(A,B.Plugin.Base,{initializer:function(C){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(E){var D=(B.DataSource.IO&&(this.get("host")instanceof B.DataSource.IO)&&E.data.responseXML&&(E.data.responseXML.nodeType===9))?E.data.responseXML:E.data,C=B.DataSchema.XML.apply(this.get("schema"),D);if(!C){C={meta:{},results:D};}this.get("host").fire("response",B.mix({response:C},E));return new B.Do.Halt("DataSourceXMLSchema plugin halted _defDataFn");}});B.namespace("Plugin").DataSourceXMLSchema=A;},"3.0.0",{requires:["plugin","datasource-local","dataschema-xml"]});
|
||||
9
include/javascript/yui3/build/datasource/datasource-xmlschema.js
vendored
Normal file
9
include/javascript/yui3/build/datasource/datasource-xmlschema.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-xmlschema',function(Y){var DataSourceXMLSchema=function(){DataSourceXMLSchema.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceXMLSchema,{NS:"schema",NAME:"dataSourceXMLSchema",ATTRS:{schema:{}}});Y.extend(DataSourceXMLSchema,Y.Plugin.Base,{initializer:function(config){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(e){var data=(Y.DataSource.IO&&(this.get("host")instanceof Y.DataSource.IO)&&e.data.responseXML&&(e.data.responseXML.nodeType===9))?e.data.responseXML:e.data,response=Y.DataSchema.XML.apply(this.get("schema"),data);if(!response){response={meta:{},results:data};}
|
||||
this.get("host").fire("response",Y.mix({response:response},e));return new Y.Do.Halt("DataSourceXMLSchema plugin halted _defDataFn");}});Y.namespace('Plugin').DataSourceXMLSchema=DataSourceXMLSchema;},'3.0.0',{requires:['plugin','datasource-local','dataschema-xml']});
|
||||
21
include/javascript/yui3/build/datasource/datasource.js
vendored
Normal file
21
include/javascript/yui3/build/datasource/datasource.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datasource-local',function(Y){var LANG=Y.Lang,DSLocal=function(){DSLocal.superclass.constructor.apply(this,arguments);};Y.mix(DSLocal,{NAME:"dataSourceLocal",ATTRS:{source:{value:null}},_tId:0,issueCallback:function(e){if(e.callback){var callbackFunc=(e.error&&e.callback.failure)||e.callback.success;if(callbackFunc){callbackFunc(e);}}}});Y.extend(DSLocal,Y.Base,{initializer:function(config){this._initEvents();},_initEvents:function(){this.publish("request",{defaultFn:Y.bind("_defRequestFn",this),queuable:true});this.publish("data",{defaultFn:Y.bind("_defDataFn",this),queuable:true});this.publish("response",{defaultFn:Y.bind("_defResponseFn",this),queuable:true});},_defRequestFn:function(e){var data=this.get("source");if(LANG.isUndefined(data)){e.error=new Error("Local source undefined");}
|
||||
if(e.error){this.fire("error",e);}
|
||||
this.fire("data",Y.mix({data:data},e));},_defDataFn:function(e){var data=e.data,meta=e.meta,response={results:(LANG.isArray(data))?data:[data],meta:(meta)?meta:{}};this.fire("response",Y.mix({response:response},e));},_defResponseFn:function(e){DSLocal.issueCallback(e);},sendRequest:function(request,callback,cfg){var tId=DSLocal._tId++;this.fire("request",{tId:tId,request:request,callback:callback,cfg:cfg||{}});return tId;}});Y.namespace("DataSource").Local=DSLocal;},'3.0.0',{requires:['base']});YUI.add('datasource-io',function(Y){var DSIO=function(){DSIO.superclass.constructor.apply(this,arguments);};Y.mix(DSIO,{NAME:"dataSourceIO",ATTRS:{io:{value:Y.io,cloneDefaultValue:false}}});Y.extend(DSIO,Y.DataSource.Local,{initializer:function(config){this._queue={interval:null,conn:null,requests:[]};},_queue:null,_defRequestFn:function(e){var uri=this.get("source"),io=this.get("io"),request=e.request,cfg=Y.mix(e.cfg,{on:{success:function(id,response,e){this.fire("data",Y.mix({data:response},e));},failure:function(id,response,e){e.error=new Error("IO data failure");this.fire("error",Y.mix({data:response},e));this.fire("data",Y.mix({data:response},e));}},context:this,arguments:e});if(Y.Lang.isString(request)){if(cfg.method&&(cfg.method.toUpperCase()==="POST")){cfg.data=cfg.data?cfg.data+request:request;}
|
||||
else{uri+=request;}}
|
||||
io(uri,cfg);return e.tId;}});Y.DataSource.IO=DSIO;},'3.0.0',{requires:['datasource-local','io']});YUI.add('datasource-get',function(Y){var DSGet=function(){DSGet.superclass.constructor.apply(this,arguments);};Y.mix(DSGet,{NAME:"dataSourceGet",ATTRS:{get:{value:Y.Get,cloneDefaultValue:false},asyncMode:{value:"allowAll"},scriptCallbackParam:{value:"callback"},generateRequestCallback:{value:function(self,id){return"&"+self.get("scriptCallbackParam")+"=YUI.Env.DataSource.callbacks["+id+"]";}}},callbacks:[],_tId:0});Y.extend(DSGet,Y.DataSource.Local,{_defRequestFn:function(e){var uri=this.get("source"),get=this.get("get"),id=DSGet._tId++,self=this;YUI.Env.DataSource.callbacks[id]=Y.rbind(function(response){if((self.get("asyncMode")!=="ignoreStaleResponses")||(id===DSGet.callbacks.length-1)){self.fire("data",Y.mix({data:response},e));}
|
||||
else{}
|
||||
delete DSGet.callbacks[id];},this,id);uri+=e.request+this.get("generateRequestCallback")(this,id);get.script(uri,{autopurge:true,onFailure:Y.bind(function(e){e.error=new Error("Script node data failure");this.fire("error",e);},this,e)});return e.tId;}});Y.DataSource.Get=DSGet;YUI.namespace("Env.DataSource.callbacks");},'3.0.0',{requires:['datasource-local','get']});YUI.add('datasource-function',function(Y){var LANG=Y.Lang,DSFn=function(){DSFn.superclass.constructor.apply(this,arguments);};Y.mix(DSFn,{NAME:"dataSourceFunction",ATTRS:{source:{validator:LANG.isFunction}}});Y.extend(DSFn,Y.DataSource.Local,{_defRequestFn:function(e){var fn=this.get("source"),response;if(fn){try{response=fn(e.request,this,e);this.fire("data",Y.mix({data:response},e));}
|
||||
catch(error){e.error=error;this.fire("error",e);}}
|
||||
else{e.error=new Error("Function data failure");this.fire("error",e);}
|
||||
return e.tId;}});Y.DataSource.Function=DSFn;},'3.0.0',{requires:['datasource-local']});YUI.add('datasource-cache',function(Y){var DataSourceCache=function(){DataSourceCache.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceCache,{NS:"cache",NAME:"dataSourceCache",ATTRS:{}});Y.extend(DataSourceCache,Y.Cache,{initializer:function(config){this.doBefore("_defRequestFn",this._beforeDefRequestFn);this.doBefore("_defResponseFn",this._beforeDefResponseFn);},_beforeDefRequestFn:function(e){var entry=(this.retrieve(e.request))||null;if(entry&&entry.response){this.get("host").fire("response",Y.mix({response:entry.response},e));return new Y.Do.Halt("DataSourceCache plugin halted _defRequestFn");}},_beforeDefResponseFn:function(e){if(e.response&&!e.response.cached){e.response.cached=true;this.add(e.request,e.response,(e.callback&&e.callback.argument));}}});Y.namespace('Plugin').DataSourceCache=DataSourceCache;},'3.0.0',{requires:['datasource-local','cache']});YUI.add('datasource-jsonschema',function(Y){var DataSourceJSONSchema=function(){DataSourceJSONSchema.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceJSONSchema,{NS:"schema",NAME:"dataSourceJSONSchema",ATTRS:{schema:{}}});Y.extend(DataSourceJSONSchema,Y.Plugin.Base,{initializer:function(config){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(e){var data=(Y.DataSource.IO&&(this.get("host")instanceof Y.DataSource.IO)&&Y.Lang.isString(e.data.responseText))?e.data.responseText:e.data,response=Y.DataSchema.JSON.apply(this.get("schema"),data);if(!response){response={meta:{},results:data};}
|
||||
this.get("host").fire("response",Y.mix({response:response},e));return new Y.Do.Halt("DataSourceJSONSchema plugin halted _defDataFn");}});Y.namespace('Plugin').DataSourceJSONSchema=DataSourceJSONSchema;},'3.0.0',{requires:['plugin','datasource-local','dataschema-json']});YUI.add('datasource-xmlschema',function(Y){var DataSourceXMLSchema=function(){DataSourceXMLSchema.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceXMLSchema,{NS:"schema",NAME:"dataSourceXMLSchema",ATTRS:{schema:{}}});Y.extend(DataSourceXMLSchema,Y.Plugin.Base,{initializer:function(config){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(e){var data=(Y.DataSource.IO&&(this.get("host")instanceof Y.DataSource.IO)&&e.data.responseXML&&(e.data.responseXML.nodeType===9))?e.data.responseXML:e.data,response=Y.DataSchema.XML.apply(this.get("schema"),data);if(!response){response={meta:{},results:data};}
|
||||
this.get("host").fire("response",Y.mix({response:response},e));return new Y.Do.Halt("DataSourceXMLSchema plugin halted _defDataFn");}});Y.namespace('Plugin').DataSourceXMLSchema=DataSourceXMLSchema;},'3.0.0',{requires:['plugin','datasource-local','dataschema-xml']});YUI.add('datasource-arrayschema',function(Y){var DataSourceArraySchema=function(){DataSourceArraySchema.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceArraySchema,{NS:"schema",NAME:"dataSourceArraySchema",ATTRS:{schema:{}}});Y.extend(DataSourceArraySchema,Y.Plugin.Base,{initializer:function(config){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(e){var data=(Y.DataSource.IO&&(this.get("host")instanceof Y.DataSource.IO)&&Y.Lang.isString(e.data.responseText))?e.data.responseText:e.data,response=Y.DataSchema.Array.apply(this.get("schema"),data);if(!response){response={meta:{},results:data};}
|
||||
this.get("host").fire("response",Y.mix({response:response},e));return new Y.Do.Halt("DataSourceArraySchema plugin halted _defDataFn");}});Y.namespace('Plugin').DataSourceArraySchema=DataSourceArraySchema;},'3.0.0',{requires:['plugin','datasource-local','dataschema-array']});YUI.add('datasource-textschema',function(Y){var DataSourceTextSchema=function(){DataSourceTextSchema.superclass.constructor.apply(this,arguments);};Y.mix(DataSourceTextSchema,{NS:"schema",NAME:"dataSourceTextSchema",ATTRS:{schema:{}}});Y.extend(DataSourceTextSchema,Y.Plugin.Base,{initializer:function(config){this.doBefore("_defDataFn",this._beforeDefDataFn);},_beforeDefDataFn:function(e){var data=(Y.DataSource.IO&&(this.get("host")instanceof Y.DataSource.IO)&&Y.Lang.isString(e.data.responseText))?e.data.responseText:e.data,response=Y.DataSchema.Text.apply(this.get("schema"),data);if(!response){response={meta:{},results:data};}
|
||||
this.get("host").fire("response",Y.mix({response:response},e));return new Y.Do.Halt("DataSourceTextSchema plugin halted _defDataFn");}});Y.namespace('Plugin').DataSourceTextSchema=DataSourceTextSchema;},'3.0.0',{requires:['plugin','datasource-local','dataschema-text']});YUI.add('datasource-polling',function(Y){var LANG=Y.Lang,Pollable=function(){this._intervals={};};Pollable.prototype={_intervals:null,setInterval:function(msec,request,callback){var x=Y.later(msec,this,this.sendRequest,[request,callback],true);this._intervals[x.id]=x;return x.id;},clearInterval:function(id,key){id=key||id;if(this._intervals[id]){this._intervals[id].cancel();delete this._intervals[id];}},clearAllIntervals:function(){Y.each(this._intervals,this.clearInterval,this);}};Y.augment(Y.DataSource.Local,Pollable);},'3.0.0',{requires:['datasource-local']});YUI.add('datasource',function(Y){},'3.0.0',{use:['datasource-local','datasource-io','datasource-get','datasource-function','datasource-cache','datasource-jsonschema','datasource-xmlschema','datasource-arrayschema','datasource-textschema','datasource-polling']});
|
||||
8
include/javascript/yui3/build/datatype/datatype-date-format-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-date-format-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datatype-date-format",function(D){var A=function(E,G,F){if(typeof F==="undefined"){F=10;}G=G.toString();for(;parseInt(E,10)<F&&F>1;F/=10){E=G+E;}return E.toString();};D.config.dateFormat=D.config.dateFormat||"%Y-%m-%d";D.config.locale=D.config.locale||"en";var C={formats:{a:function(F,E){return E.a[F.getDay()];},A:function(F,E){return E.A[F.getDay()];},b:function(F,E){return E.b[F.getMonth()];},B:function(F,E){return E.B[F.getMonth()];},C:function(E){return A(parseInt(E.getFullYear()/100,10),0);},d:["getDate","0"],e:["getDate"," "],g:function(E){return A(parseInt(C.formats.G(E)%100,10),0);},G:function(G){var H=G.getFullYear();var F=parseInt(C.formats.V(G),10);var E=parseInt(C.formats.W(G),10);if(E>F){H++;}else{if(E===0&&F>=52){H--;}}return H;},H:["getHours","0"],I:function(F){var E=F.getHours()%12;return A(E===0?12:E,0);},j:function(I){var H=new Date(""+I.getFullYear()+"/1/1 GMT");var F=new Date(""+I.getFullYear()+"/"+(I.getMonth()+1)+"/"+I.getDate()+" GMT");var E=F-H;var G=parseInt(E/60000/60/24,10)+1;return A(G,0,100);},k:["getHours"," "],l:function(F){var E=F.getHours()%12;return A(E===0?12:E," ");},m:function(E){return A(E.getMonth()+1,0);},M:["getMinutes","0"],p:function(F,E){return E.p[F.getHours()>=12?1:0];},P:function(F,E){return E.P[F.getHours()>=12?1:0];},s:function(F,E){return parseInt(F.getTime()/1000,10);},S:["getSeconds","0"],u:function(E){var F=E.getDay();return F===0?7:F;},U:function(H){var E=parseInt(C.formats.j(H),10);var G=6-H.getDay();var F=parseInt((E+G)/7,10);return A(F,0);},V:function(H){var G=parseInt(C.formats.W(H),10);var E=(new Date(""+H.getFullYear()+"/1/1")).getDay();var F=G+(E>4||E<=1?0:1);if(F===53&&(new Date(""+H.getFullYear()+"/12/31")).getDay()<4){F=1;}else{if(F===0){F=C.formats.V(new Date(""+(H.getFullYear()-1)+"/12/31"));}}return A(F,0);},w:"getDay",W:function(H){var E=parseInt(C.formats.j(H),10);var G=7-C.formats.u(H);var F=parseInt((E+G)/7,10);return A(F,0,10);},y:function(E){return A(E.getFullYear()%100,0);},Y:"getFullYear",z:function(G){var F=G.getTimezoneOffset();var E=A(parseInt(Math.abs(F/60),10),0);var I=A(Math.abs(F%60),0);return(F>0?"-":"+")+E+I;},Z:function(E){var F=E.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");if(F.length>4){F=C.formats.z(E);}return F;},"%":function(E){return"%";}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(N,H){H=H||{};if(!D.Lang.isDate(N)){return D.Lang.isValue(N)?N:"";}var M=H.format||D.config.dateFormat,F=H.locale||D.config.locale,L=D.DataType.Date.Locale;F=F.replace(/_/g,"-");if(!L[F]){var G=F.replace(/-[a-zA-Z]+$/,"");if(G in L){F=G;}else{if(D.config.locale in L){F=D.config.locale;}else{F="en";}}}var J=L[F];var I=function(P,O){var Q=C.aggregates[O];return(Q==="locale"?J[O]:Q);};var E=function(P,O){var Q=C.formats[O];switch(D.Lang.type(Q)){case"string":return N[Q]();case"function":return Q.call(N,N,J);case"array":if(D.Lang.type(Q[0])==="string"){return A(N[Q[0]](),Q[1]);}default:return O;}};while(M.match(/%[cDFhnrRtTxX]/)){M=M.replace(/%([cDFhnrRtTxX])/g,I);}var K=M.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,E);I=E=undefined;return K;}};D.mix(D.namespace("DataType.Date"),C);var B={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"};D.namespace("DataType.Date.Locale");D.DataType.Date.Locale["en"]=B;D.DataType.Date.Locale["en-US"]=D.merge(B,{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"});D.DataType.Date.Locale["en-GB"]=D.merge(B,{r:"%l:%M:%S %P %Z"});D.DataType.Date.Locale["en-AU"]=D.merge(B);},"3.0.0");
|
||||
22
include/javascript/yui3/build/datatype/datatype-date-format.js
vendored
Normal file
22
include/javascript/yui3/build/datatype/datatype-date-format.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-date-format',function(Y){var xPad=function(x,pad,r)
|
||||
{if(typeof r==="undefined")
|
||||
{r=10;}
|
||||
pad=pad.toString();for(;parseInt(x,10)<r&&r>1;r/=10){x=pad+x;}
|
||||
return x.toString();};Y.config.dateFormat=Y.config.dateFormat||"%Y-%m-%d";Y.config.locale=Y.config.locale||"en";var Dt={formats:{a:function(d,l){return l.a[d.getDay()];},A:function(d,l){return l.A[d.getDay()];},b:function(d,l){return l.b[d.getMonth()];},B:function(d,l){return l.B[d.getMonth()];},C:function(d){return xPad(parseInt(d.getFullYear()/100,10),0);},d:["getDate","0"],e:["getDate"," "],g:function(d){return xPad(parseInt(Dt.formats.G(d)%100,10),0);},G:function(d){var y=d.getFullYear();var V=parseInt(Dt.formats.V(d),10);var W=parseInt(Dt.formats.W(d),10);if(W>V){y++;}else if(W===0&&V>=52){y--;}
|
||||
return y;},H:["getHours","0"],I:function(d){var I=d.getHours()%12;return xPad(I===0?12:I,0);},j:function(d){var gmd_1=new Date(""+d.getFullYear()+"/1/1 GMT");var gmdate=new Date(""+d.getFullYear()+"/"+(d.getMonth()+1)+"/"+d.getDate()+" GMT");var ms=gmdate-gmd_1;var doy=parseInt(ms/60000/60/24,10)+1;return xPad(doy,0,100);},k:["getHours"," "],l:function(d){var I=d.getHours()%12;return xPad(I===0?12:I," ");},m:function(d){return xPad(d.getMonth()+1,0);},M:["getMinutes","0"],p:function(d,l){return l.p[d.getHours()>=12?1:0];},P:function(d,l){return l.P[d.getHours()>=12?1:0];},s:function(d,l){return parseInt(d.getTime()/1000,10);},S:["getSeconds","0"],u:function(d){var dow=d.getDay();return dow===0?7:dow;},U:function(d){var doy=parseInt(Dt.formats.j(d),10);var rdow=6-d.getDay();var woy=parseInt((doy+rdow)/7,10);return xPad(woy,0);},V:function(d){var woy=parseInt(Dt.formats.W(d),10);var dow1_1=(new Date(""+d.getFullYear()+"/1/1")).getDay();var idow=woy+(dow1_1>4||dow1_1<=1?0:1);if(idow===53&&(new Date(""+d.getFullYear()+"/12/31")).getDay()<4)
|
||||
{idow=1;}
|
||||
else if(idow===0)
|
||||
{idow=Dt.formats.V(new Date(""+(d.getFullYear()-1)+"/12/31"));}
|
||||
return xPad(idow,0);},w:"getDay",W:function(d){var doy=parseInt(Dt.formats.j(d),10);var rdow=7-Dt.formats.u(d);var woy=parseInt((doy+rdow)/7,10);return xPad(woy,0,10);},y:function(d){return xPad(d.getFullYear()%100,0);},Y:"getFullYear",z:function(d){var o=d.getTimezoneOffset();var H=xPad(parseInt(Math.abs(o/60),10),0);var M=xPad(Math.abs(o%60),0);return(o>0?"-":"+")+H+M;},Z:function(d){var tz=d.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");if(tz.length>4){tz=Dt.formats.z(d);}
|
||||
return tz;},"%":function(d){return"%";}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(oDate,oConfig){oConfig=oConfig||{};if(!Y.Lang.isDate(oDate)){return Y.Lang.isValue(oDate)?oDate:"";}
|
||||
var format=oConfig.format||Y.config.dateFormat,sLocale=oConfig.locale||Y.config.locale,LOCALE=Y.DataType.Date.Locale;sLocale=sLocale.replace(/_/g,"-");if(!LOCALE[sLocale]){var tmpLocale=sLocale.replace(/-[a-zA-Z]+$/,"");if(tmpLocale in LOCALE){sLocale=tmpLocale;}else if(Y.config.locale in LOCALE){sLocale=Y.config.locale;}else{sLocale="en";}}
|
||||
var aLocale=LOCALE[sLocale];var replace_aggs=function(m0,m1){var f=Dt.aggregates[m1];return(f==="locale"?aLocale[m1]:f);};var replace_formats=function(m0,m1){var f=Dt.formats[m1];switch(Y.Lang.type(f)){case"string":return oDate[f]();case"function":return f.call(oDate,oDate,aLocale);case"array":if(Y.Lang.type(f[0])==="string"){return xPad(oDate[f[0]](),f[1]);}
|
||||
default:return m1;}};while(format.match(/%[cDFhnrRtTxX]/)){format=format.replace(/%([cDFhnrRtTxX])/g,replace_aggs);}
|
||||
var str=format.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,replace_formats);replace_aggs=replace_formats=undefined;return str;}};Y.mix(Y.namespace("DataType.Date"),Dt);var YDateEn={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"};Y.namespace("DataType.Date.Locale");Y.DataType.Date.Locale["en"]=YDateEn;Y.DataType.Date.Locale["en-US"]=Y.merge(YDateEn,{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"});Y.DataType.Date.Locale["en-GB"]=Y.merge(YDateEn,{r:"%l:%M:%S %P %Z"});Y.DataType.Date.Locale["en-AU"]=Y.merge(YDateEn);},'3.0.0');
|
||||
8
include/javascript/yui3/build/datatype/datatype-date-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-date-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datatype-date-parse",function(B){var A=B.Lang;B.mix(B.namespace("DataType.Date"),{parse:function(D){var C=null;if(!(A.isDate(D))){C=new Date(D);}else{return C;}if(A.isDate(C)&&(C!="Invalid Date")&&!isNaN(C)){return C;}else{return null;}}});B.namespace("Parsers").date=B.DataType.Date.parse;},"3.0.0");YUI.add("datatype-date-format",function(D){var A=function(E,G,F){if(typeof F==="undefined"){F=10;}G=G.toString();for(;parseInt(E,10)<F&&F>1;F/=10){E=G+E;}return E.toString();};D.config.dateFormat=D.config.dateFormat||"%Y-%m-%d";D.config.locale=D.config.locale||"en";var C={formats:{a:function(F,E){return E.a[F.getDay()];},A:function(F,E){return E.A[F.getDay()];},b:function(F,E){return E.b[F.getMonth()];},B:function(F,E){return E.B[F.getMonth()];},C:function(E){return A(parseInt(E.getFullYear()/100,10),0);},d:["getDate","0"],e:["getDate"," "],g:function(E){return A(parseInt(C.formats.G(E)%100,10),0);},G:function(G){var H=G.getFullYear();var F=parseInt(C.formats.V(G),10);var E=parseInt(C.formats.W(G),10);if(E>F){H++;}else{if(E===0&&F>=52){H--;}}return H;},H:["getHours","0"],I:function(F){var E=F.getHours()%12;return A(E===0?12:E,0);},j:function(I){var H=new Date(""+I.getFullYear()+"/1/1 GMT");var F=new Date(""+I.getFullYear()+"/"+(I.getMonth()+1)+"/"+I.getDate()+" GMT");var E=F-H;var G=parseInt(E/60000/60/24,10)+1;return A(G,0,100);},k:["getHours"," "],l:function(F){var E=F.getHours()%12;return A(E===0?12:E," ");},m:function(E){return A(E.getMonth()+1,0);},M:["getMinutes","0"],p:function(F,E){return E.p[F.getHours()>=12?1:0];},P:function(F,E){return E.P[F.getHours()>=12?1:0];},s:function(F,E){return parseInt(F.getTime()/1000,10);},S:["getSeconds","0"],u:function(E){var F=E.getDay();return F===0?7:F;},U:function(H){var E=parseInt(C.formats.j(H),10);var G=6-H.getDay();var F=parseInt((E+G)/7,10);return A(F,0);},V:function(H){var G=parseInt(C.formats.W(H),10);var E=(new Date(""+H.getFullYear()+"/1/1")).getDay();var F=G+(E>4||E<=1?0:1);if(F===53&&(new Date(""+H.getFullYear()+"/12/31")).getDay()<4){F=1;}else{if(F===0){F=C.formats.V(new Date(""+(H.getFullYear()-1)+"/12/31"));}}return A(F,0);},w:"getDay",W:function(H){var E=parseInt(C.formats.j(H),10);var G=7-C.formats.u(H);var F=parseInt((E+G)/7,10);return A(F,0,10);},y:function(E){return A(E.getFullYear()%100,0);},Y:"getFullYear",z:function(G){var F=G.getTimezoneOffset();var E=A(parseInt(Math.abs(F/60),10),0);var I=A(Math.abs(F%60),0);return(F>0?"-":"+")+E+I;},Z:function(E){var F=E.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");if(F.length>4){F=C.formats.z(E);}return F;},"%":function(E){return"%";}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(N,H){H=H||{};if(!D.Lang.isDate(N)){return D.Lang.isValue(N)?N:"";}var M=H.format||D.config.dateFormat,F=H.locale||D.config.locale,L=D.DataType.Date.Locale;F=F.replace(/_/g,"-");if(!L[F]){var G=F.replace(/-[a-zA-Z]+$/,"");if(G in L){F=G;}else{if(D.config.locale in L){F=D.config.locale;}else{F="en";}}}var J=L[F];var I=function(P,O){var Q=C.aggregates[O];return(Q==="locale"?J[O]:Q);};var E=function(P,O){var Q=C.formats[O];switch(D.Lang.type(Q)){case"string":return N[Q]();case"function":return Q.call(N,N,J);case"array":if(D.Lang.type(Q[0])==="string"){return A(N[Q[0]](),Q[1]);}default:return O;}};while(M.match(/%[cDFhnrRtTxX]/)){M=M.replace(/%([cDFhnrRtTxX])/g,I);}var K=M.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,E);I=E=undefined;return K;}};D.mix(D.namespace("DataType.Date"),C);var B={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"};D.namespace("DataType.Date.Locale");D.DataType.Date.Locale["en"]=B;D.DataType.Date.Locale["en-US"]=D.merge(B,{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"});D.DataType.Date.Locale["en-GB"]=D.merge(B,{r:"%l:%M:%S %P %Z"});D.DataType.Date.Locale["en-AU"]=D.merge(B);},"3.0.0");YUI.add("datatype-date",function(A){},"3.0.0",{use:["datatype-date-parse","datatype-date-format"]});
|
||||
8
include/javascript/yui3/build/datatype/datatype-date-parse-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-date-parse-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datatype-date-parse",function(B){var A=B.Lang;B.mix(B.namespace("DataType.Date"),{parse:function(D){var C=null;if(!(A.isDate(D))){C=new Date(D);}else{return C;}if(A.isDate(C)&&(C!="Invalid Date")&&!isNaN(C)){return C;}else{return null;}}});B.namespace("Parsers").date=B.DataType.Date.parse;},"3.0.0");
|
||||
11
include/javascript/yui3/build/datatype/datatype-date-parse.js
vendored
Normal file
11
include/javascript/yui3/build/datatype/datatype-date-parse.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-date-parse',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.Date"),{parse:function(data){var date=null;if(!(LANG.isDate(data))){date=new Date(data);}
|
||||
else{return date;}
|
||||
if(LANG.isDate(date)&&(date!="Invalid Date")&&!isNaN(date)){return date;}
|
||||
else{return null;}}});Y.namespace("Parsers").date=Y.DataType.Date.parse;},'3.0.0');
|
||||
25
include/javascript/yui3/build/datatype/datatype-date.js
vendored
Normal file
25
include/javascript/yui3/build/datatype/datatype-date.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-date-parse',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.Date"),{parse:function(data){var date=null;if(!(LANG.isDate(data))){date=new Date(data);}
|
||||
else{return date;}
|
||||
if(LANG.isDate(date)&&(date!="Invalid Date")&&!isNaN(date)){return date;}
|
||||
else{return null;}}});Y.namespace("Parsers").date=Y.DataType.Date.parse;},'3.0.0');YUI.add('datatype-date-format',function(Y){var xPad=function(x,pad,r)
|
||||
{if(typeof r==="undefined")
|
||||
{r=10;}
|
||||
pad=pad.toString();for(;parseInt(x,10)<r&&r>1;r/=10){x=pad+x;}
|
||||
return x.toString();};Y.config.dateFormat=Y.config.dateFormat||"%Y-%m-%d";Y.config.locale=Y.config.locale||"en";var Dt={formats:{a:function(d,l){return l.a[d.getDay()];},A:function(d,l){return l.A[d.getDay()];},b:function(d,l){return l.b[d.getMonth()];},B:function(d,l){return l.B[d.getMonth()];},C:function(d){return xPad(parseInt(d.getFullYear()/100,10),0);},d:["getDate","0"],e:["getDate"," "],g:function(d){return xPad(parseInt(Dt.formats.G(d)%100,10),0);},G:function(d){var y=d.getFullYear();var V=parseInt(Dt.formats.V(d),10);var W=parseInt(Dt.formats.W(d),10);if(W>V){y++;}else if(W===0&&V>=52){y--;}
|
||||
return y;},H:["getHours","0"],I:function(d){var I=d.getHours()%12;return xPad(I===0?12:I,0);},j:function(d){var gmd_1=new Date(""+d.getFullYear()+"/1/1 GMT");var gmdate=new Date(""+d.getFullYear()+"/"+(d.getMonth()+1)+"/"+d.getDate()+" GMT");var ms=gmdate-gmd_1;var doy=parseInt(ms/60000/60/24,10)+1;return xPad(doy,0,100);},k:["getHours"," "],l:function(d){var I=d.getHours()%12;return xPad(I===0?12:I," ");},m:function(d){return xPad(d.getMonth()+1,0);},M:["getMinutes","0"],p:function(d,l){return l.p[d.getHours()>=12?1:0];},P:function(d,l){return l.P[d.getHours()>=12?1:0];},s:function(d,l){return parseInt(d.getTime()/1000,10);},S:["getSeconds","0"],u:function(d){var dow=d.getDay();return dow===0?7:dow;},U:function(d){var doy=parseInt(Dt.formats.j(d),10);var rdow=6-d.getDay();var woy=parseInt((doy+rdow)/7,10);return xPad(woy,0);},V:function(d){var woy=parseInt(Dt.formats.W(d),10);var dow1_1=(new Date(""+d.getFullYear()+"/1/1")).getDay();var idow=woy+(dow1_1>4||dow1_1<=1?0:1);if(idow===53&&(new Date(""+d.getFullYear()+"/12/31")).getDay()<4)
|
||||
{idow=1;}
|
||||
else if(idow===0)
|
||||
{idow=Dt.formats.V(new Date(""+(d.getFullYear()-1)+"/12/31"));}
|
||||
return xPad(idow,0);},w:"getDay",W:function(d){var doy=parseInt(Dt.formats.j(d),10);var rdow=7-Dt.formats.u(d);var woy=parseInt((doy+rdow)/7,10);return xPad(woy,0,10);},y:function(d){return xPad(d.getFullYear()%100,0);},Y:"getFullYear",z:function(d){var o=d.getTimezoneOffset();var H=xPad(parseInt(Math.abs(o/60),10),0);var M=xPad(Math.abs(o%60),0);return(o>0?"-":"+")+H+M;},Z:function(d){var tz=d.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");if(tz.length>4){tz=Dt.formats.z(d);}
|
||||
return tz;},"%":function(d){return"%";}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(oDate,oConfig){oConfig=oConfig||{};if(!Y.Lang.isDate(oDate)){return Y.Lang.isValue(oDate)?oDate:"";}
|
||||
var format=oConfig.format||Y.config.dateFormat,sLocale=oConfig.locale||Y.config.locale,LOCALE=Y.DataType.Date.Locale;sLocale=sLocale.replace(/_/g,"-");if(!LOCALE[sLocale]){var tmpLocale=sLocale.replace(/-[a-zA-Z]+$/,"");if(tmpLocale in LOCALE){sLocale=tmpLocale;}else if(Y.config.locale in LOCALE){sLocale=Y.config.locale;}else{sLocale="en";}}
|
||||
var aLocale=LOCALE[sLocale];var replace_aggs=function(m0,m1){var f=Dt.aggregates[m1];return(f==="locale"?aLocale[m1]:f);};var replace_formats=function(m0,m1){var f=Dt.formats[m1];switch(Y.Lang.type(f)){case"string":return oDate[f]();case"function":return f.call(oDate,oDate,aLocale);case"array":if(Y.Lang.type(f[0])==="string"){return xPad(oDate[f[0]](),f[1]);}
|
||||
default:return m1;}};while(format.match(/%[cDFhnrRtTxX]/)){format=format.replace(/%([cDFhnrRtTxX])/g,replace_aggs);}
|
||||
var str=format.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,replace_formats);replace_aggs=replace_formats=undefined;return str;}};Y.mix(Y.namespace("DataType.Date"),Dt);var YDateEn={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"};Y.namespace("DataType.Date.Locale");Y.DataType.Date.Locale["en"]=YDateEn;Y.DataType.Date.Locale["en-US"]=Y.merge(YDateEn,{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"});Y.DataType.Date.Locale["en-GB"]=Y.merge(YDateEn,{r:"%l:%M:%S %P %Z"});Y.DataType.Date.Locale["en-AU"]=Y.merge(YDateEn);},'3.0.0');YUI.add('datatype-date',function(Y){},'3.0.0',{use:['datatype-date-parse','datatype-date-format']});
|
||||
8
include/javascript/yui3/build/datatype/datatype-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
include/javascript/yui3/build/datatype/datatype-number-format-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-number-format-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datatype-number-format",function(B){var A=B.Lang;B.mix(B.namespace("DataType.Number"),{format:function(I,E){if(A.isNumber(I)){E=E||{};var D=(I<0),F=I+"",M=E.decimalPlaces,C=E.decimalSeparator||".",L=E.thousandsSeparator,K,G,J,H;if(A.isNumber(M)&&(M>=0)&&(M<=20)){F=I.toFixed(M);}if(C!=="."){F=F.replace(".",C);}if(L){K=F.lastIndexOf(C);K=(K>-1)?K:F.length;G=F.substring(K);for(J=0,H=K;H>0;H--){if((J%3===0)&&(H!==K)&&(!D||(H>1))){G=L+G;}G=F.charAt(H-1)+G;J++;}F=G;}F=(E.prefix)?E.prefix+F:F;F=(E.suffix)?F+E.suffix:F;return F;}else{return(A.isValue(I)&&I.toString)?I.toString():"";}}});},"3.0.0");
|
||||
14
include/javascript/yui3/build/datatype/datatype-number-format.js
vendored
Normal file
14
include/javascript/yui3/build/datatype/datatype-number-format.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-number-format',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.Number"),{format:function(data,config){if(LANG.isNumber(data)){config=config||{};var isNeg=(data<0),output=data+"",decPlaces=config.decimalPlaces,decSep=config.decimalSeparator||".",thouSep=config.thousandsSeparator,decIndex,newOutput,count,i;if(LANG.isNumber(decPlaces)&&(decPlaces>=0)&&(decPlaces<=20)){output=data.toFixed(decPlaces);}
|
||||
if(decSep!=="."){output=output.replace(".",decSep);}
|
||||
if(thouSep){decIndex=output.lastIndexOf(decSep);decIndex=(decIndex>-1)?decIndex:output.length;newOutput=output.substring(decIndex);for(count=0,i=decIndex;i>0;i--){if((count%3===0)&&(i!==decIndex)&&(!isNeg||(i>1))){newOutput=thouSep+newOutput;}
|
||||
newOutput=output.charAt(i-1)+newOutput;count++;}
|
||||
output=newOutput;}
|
||||
output=(config.prefix)?config.prefix+output:output;output=(config.suffix)?output+config.suffix:output;return output;}
|
||||
else{return(LANG.isValue(data)&&data.toString)?data.toString():"";}}});},'3.0.0');
|
||||
8
include/javascript/yui3/build/datatype/datatype-number-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-number-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datatype-number-parse",function(B){var A=B.Lang;B.mix(B.namespace("DataType.Number"),{parse:function(D){var C=(D===null)?D:+D;if(A.isNumber(C)){return C;}else{return null;}}});B.namespace("Parsers").number=B.DataType.Number.parse;},"3.0.0");YUI.add("datatype-number-format",function(B){var A=B.Lang;B.mix(B.namespace("DataType.Number"),{format:function(I,E){if(A.isNumber(I)){E=E||{};var D=(I<0),F=I+"",M=E.decimalPlaces,C=E.decimalSeparator||".",L=E.thousandsSeparator,K,G,J,H;if(A.isNumber(M)&&(M>=0)&&(M<=20)){F=I.toFixed(M);}if(C!=="."){F=F.replace(".",C);}if(L){K=F.lastIndexOf(C);K=(K>-1)?K:F.length;G=F.substring(K);for(J=0,H=K;H>0;H--){if((J%3===0)&&(H!==K)&&(!D||(H>1))){G=L+G;}G=F.charAt(H-1)+G;J++;}F=G;}F=(E.prefix)?E.prefix+F:F;F=(E.suffix)?F+E.suffix:F;return F;}else{return(A.isValue(I)&&I.toString)?I.toString():"";}}});},"3.0.0");YUI.add("datatype-number",function(A){},"3.0.0",{use:["datatype-number-parse","datatype-number-format"]});
|
||||
8
include/javascript/yui3/build/datatype/datatype-number-parse-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-number-parse-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datatype-number-parse",function(B){var A=B.Lang;B.mix(B.namespace("DataType.Number"),{parse:function(D){var C=(D===null)?D:+D;if(A.isNumber(C)){return C;}else{return null;}}});B.namespace("Parsers").number=B.DataType.Number.parse;},"3.0.0");
|
||||
9
include/javascript/yui3/build/datatype/datatype-number-parse.js
vendored
Normal file
9
include/javascript/yui3/build/datatype/datatype-number-parse.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-number-parse',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.Number"),{parse:function(data){var number=(data===null)?data:+data;if(LANG.isNumber(number)){return number;}
|
||||
else{return null;}}});Y.namespace("Parsers").number=Y.DataType.Number.parse;},'3.0.0');
|
||||
15
include/javascript/yui3/build/datatype/datatype-number.js
vendored
Normal file
15
include/javascript/yui3/build/datatype/datatype-number.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-number-parse',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.Number"),{parse:function(data){var number=(data===null)?data:+data;if(LANG.isNumber(number)){return number;}
|
||||
else{return null;}}});Y.namespace("Parsers").number=Y.DataType.Number.parse;},'3.0.0');YUI.add('datatype-number-format',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.Number"),{format:function(data,config){if(LANG.isNumber(data)){config=config||{};var isNeg=(data<0),output=data+"",decPlaces=config.decimalPlaces,decSep=config.decimalSeparator||".",thouSep=config.thousandsSeparator,decIndex,newOutput,count,i;if(LANG.isNumber(decPlaces)&&(decPlaces>=0)&&(decPlaces<=20)){output=data.toFixed(decPlaces);}
|
||||
if(decSep!=="."){output=output.replace(".",decSep);}
|
||||
if(thouSep){decIndex=output.lastIndexOf(decSep);decIndex=(decIndex>-1)?decIndex:output.length;newOutput=output.substring(decIndex);for(count=0,i=decIndex;i>0;i--){if((count%3===0)&&(i!==decIndex)&&(!isNeg||(i>1))){newOutput=thouSep+newOutput;}
|
||||
newOutput=output.charAt(i-1)+newOutput;count++;}
|
||||
output=newOutput;}
|
||||
output=(config.prefix)?config.prefix+output:output;output=(config.suffix)?output+config.suffix:output;return output;}
|
||||
else{return(LANG.isValue(data)&&data.toString)?data.toString():"";}}});},'3.0.0');YUI.add('datatype-number',function(Y){},'3.0.0',{use:['datatype-number-parse','datatype-number-format']});
|
||||
8
include/javascript/yui3/build/datatype/datatype-xml-format-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-xml-format-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datatype-xml-format",function(B){var A=B.Lang;B.mix(B.namespace("DataType.XML"),{format:function(C){try{if(!A.isUndefined(XMLSerializer)){return(new XMLSerializer()).serializeToString(C);}}catch(D){if(C&&C.xml){return C.xml;}else{return(A.isValue(C)&&C.toString)?C.toString():"";}}}});},"3.0.0");
|
||||
10
include/javascript/yui3/build/datatype/datatype-xml-format.js
vendored
Normal file
10
include/javascript/yui3/build/datatype/datatype-xml-format.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-xml-format',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.XML"),{format:function(data){try{if(!LANG.isUndefined(XMLSerializer)){return(new XMLSerializer()).serializeToString(data);}}
|
||||
catch(e){if(data&&data.xml){return data.xml;}
|
||||
else{return(LANG.isValue(data)&&data.toString)?data.toString():"";}}}});},'3.0.0');
|
||||
8
include/javascript/yui3/build/datatype/datatype-xml-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-xml-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datatype-xml-parse",function(B){var A=B.Lang;B.mix(B.namespace("DataType.XML"),{parse:function(E){var D=null;if(A.isString(E)){try{if(!A.isUndefined(DOMParser)){D=new DOMParser().parseFromString(E,"text/xml");}}catch(F){try{if(!A.isUndefined(ActiveXObject)){D=new ActiveXObject("Microsoft.XMLDOM");D.async=false;D.loadXML(E);}}catch(C){}}}if((A.isNull(D))||(A.isNull(D.documentElement))||(D.documentElement.nodeName==="parsererror")){}return D;}});B.namespace("Parsers").xml=B.DataType.XML.parse;},"3.0.0");YUI.add("datatype-xml-format",function(B){var A=B.Lang;B.mix(B.namespace("DataType.XML"),{format:function(C){try{if(!A.isUndefined(XMLSerializer)){return(new XMLSerializer()).serializeToString(C);}}catch(D){if(C&&C.xml){return C.xml;}else{return(A.isValue(C)&&C.toString)?C.toString():"";}}}});},"3.0.0");YUI.add("datatype-xml",function(A){},"3.0.0",{use:["datatype-xml-parse","datatype-xml-format"]});
|
||||
8
include/javascript/yui3/build/datatype/datatype-xml-parse-min.js
vendored
Normal file
8
include/javascript/yui3/build/datatype/datatype-xml-parse-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("datatype-xml-parse",function(B){var A=B.Lang;B.mix(B.namespace("DataType.XML"),{parse:function(E){var D=null;if(A.isString(E)){try{if(!A.isUndefined(DOMParser)){D=new DOMParser().parseFromString(E,"text/xml");}}catch(F){try{if(!A.isUndefined(ActiveXObject)){D=new ActiveXObject("Microsoft.XMLDOM");D.async=false;D.loadXML(E);}}catch(C){}}}if((A.isNull(D))||(A.isNull(D.documentElement))||(D.documentElement.nodeName==="parsererror")){}return D;}});B.namespace("Parsers").xml=B.DataType.XML.parse;},"3.0.0");
|
||||
12
include/javascript/yui3/build/datatype/datatype-xml-parse.js
vendored
Normal file
12
include/javascript/yui3/build/datatype/datatype-xml-parse.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-xml-parse',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.XML"),{parse:function(data){var xmlDoc=null;if(LANG.isString(data)){try{if(!LANG.isUndefined(DOMParser)){xmlDoc=new DOMParser().parseFromString(data,"text/xml");}}
|
||||
catch(e){try{if(!LANG.isUndefined(ActiveXObject)){xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async=false;xmlDoc.loadXML(data);}}
|
||||
catch(ee){}}}
|
||||
if((LANG.isNull(xmlDoc))||(LANG.isNull(xmlDoc.documentElement))||(xmlDoc.documentElement.nodeName==="parsererror")){}
|
||||
return xmlDoc;}});Y.namespace("Parsers").xml=Y.DataType.XML.parse;},'3.0.0');
|
||||
14
include/javascript/yui3/build/datatype/datatype-xml.js
vendored
Normal file
14
include/javascript/yui3/build/datatype/datatype-xml.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-xml-parse',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.XML"),{parse:function(data){var xmlDoc=null;if(LANG.isString(data)){try{if(!LANG.isUndefined(DOMParser)){xmlDoc=new DOMParser().parseFromString(data,"text/xml");}}
|
||||
catch(e){try{if(!LANG.isUndefined(ActiveXObject)){xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async=false;xmlDoc.loadXML(data);}}
|
||||
catch(ee){}}}
|
||||
if((LANG.isNull(xmlDoc))||(LANG.isNull(xmlDoc.documentElement))||(xmlDoc.documentElement.nodeName==="parsererror")){}
|
||||
return xmlDoc;}});Y.namespace("Parsers").xml=Y.DataType.XML.parse;},'3.0.0');YUI.add('datatype-xml-format',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.XML"),{format:function(data){try{if(!LANG.isUndefined(XMLSerializer)){return(new XMLSerializer()).serializeToString(data);}}
|
||||
catch(e){if(data&&data.xml){return data.xml;}
|
||||
else{return(LANG.isValue(data)&&data.toString)?data.toString():"";}}}});},'3.0.0');YUI.add('datatype-xml',function(Y){},'3.0.0',{use:['datatype-xml-parse','datatype-xml-format']});
|
||||
38
include/javascript/yui3/build/datatype/datatype.js
vendored
Normal file
38
include/javascript/yui3/build/datatype/datatype.js
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('datatype-number-parse',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.Number"),{parse:function(data){var number=(data===null)?data:+data;if(LANG.isNumber(number)){return number;}
|
||||
else{return null;}}});Y.namespace("Parsers").number=Y.DataType.Number.parse;},'3.0.0');YUI.add('datatype-number-format',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.Number"),{format:function(data,config){if(LANG.isNumber(data)){config=config||{};var isNeg=(data<0),output=data+"",decPlaces=config.decimalPlaces,decSep=config.decimalSeparator||".",thouSep=config.thousandsSeparator,decIndex,newOutput,count,i;if(LANG.isNumber(decPlaces)&&(decPlaces>=0)&&(decPlaces<=20)){output=data.toFixed(decPlaces);}
|
||||
if(decSep!=="."){output=output.replace(".",decSep);}
|
||||
if(thouSep){decIndex=output.lastIndexOf(decSep);decIndex=(decIndex>-1)?decIndex:output.length;newOutput=output.substring(decIndex);for(count=0,i=decIndex;i>0;i--){if((count%3===0)&&(i!==decIndex)&&(!isNeg||(i>1))){newOutput=thouSep+newOutput;}
|
||||
newOutput=output.charAt(i-1)+newOutput;count++;}
|
||||
output=newOutput;}
|
||||
output=(config.prefix)?config.prefix+output:output;output=(config.suffix)?output+config.suffix:output;return output;}
|
||||
else{return(LANG.isValue(data)&&data.toString)?data.toString():"";}}});},'3.0.0');YUI.add('datatype-number',function(Y){},'3.0.0',{use:['datatype-number-parse','datatype-number-format']});YUI.add('datatype-date-parse',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.Date"),{parse:function(data){var date=null;if(!(LANG.isDate(data))){date=new Date(data);}
|
||||
else{return date;}
|
||||
if(LANG.isDate(date)&&(date!="Invalid Date")&&!isNaN(date)){return date;}
|
||||
else{return null;}}});Y.namespace("Parsers").date=Y.DataType.Date.parse;},'3.0.0');YUI.add('datatype-date-format',function(Y){var xPad=function(x,pad,r)
|
||||
{if(typeof r==="undefined")
|
||||
{r=10;}
|
||||
pad=pad.toString();for(;parseInt(x,10)<r&&r>1;r/=10){x=pad+x;}
|
||||
return x.toString();};Y.config.dateFormat=Y.config.dateFormat||"%Y-%m-%d";Y.config.locale=Y.config.locale||"en";var Dt={formats:{a:function(d,l){return l.a[d.getDay()];},A:function(d,l){return l.A[d.getDay()];},b:function(d,l){return l.b[d.getMonth()];},B:function(d,l){return l.B[d.getMonth()];},C:function(d){return xPad(parseInt(d.getFullYear()/100,10),0);},d:["getDate","0"],e:["getDate"," "],g:function(d){return xPad(parseInt(Dt.formats.G(d)%100,10),0);},G:function(d){var y=d.getFullYear();var V=parseInt(Dt.formats.V(d),10);var W=parseInt(Dt.formats.W(d),10);if(W>V){y++;}else if(W===0&&V>=52){y--;}
|
||||
return y;},H:["getHours","0"],I:function(d){var I=d.getHours()%12;return xPad(I===0?12:I,0);},j:function(d){var gmd_1=new Date(""+d.getFullYear()+"/1/1 GMT");var gmdate=new Date(""+d.getFullYear()+"/"+(d.getMonth()+1)+"/"+d.getDate()+" GMT");var ms=gmdate-gmd_1;var doy=parseInt(ms/60000/60/24,10)+1;return xPad(doy,0,100);},k:["getHours"," "],l:function(d){var I=d.getHours()%12;return xPad(I===0?12:I," ");},m:function(d){return xPad(d.getMonth()+1,0);},M:["getMinutes","0"],p:function(d,l){return l.p[d.getHours()>=12?1:0];},P:function(d,l){return l.P[d.getHours()>=12?1:0];},s:function(d,l){return parseInt(d.getTime()/1000,10);},S:["getSeconds","0"],u:function(d){var dow=d.getDay();return dow===0?7:dow;},U:function(d){var doy=parseInt(Dt.formats.j(d),10);var rdow=6-d.getDay();var woy=parseInt((doy+rdow)/7,10);return xPad(woy,0);},V:function(d){var woy=parseInt(Dt.formats.W(d),10);var dow1_1=(new Date(""+d.getFullYear()+"/1/1")).getDay();var idow=woy+(dow1_1>4||dow1_1<=1?0:1);if(idow===53&&(new Date(""+d.getFullYear()+"/12/31")).getDay()<4)
|
||||
{idow=1;}
|
||||
else if(idow===0)
|
||||
{idow=Dt.formats.V(new Date(""+(d.getFullYear()-1)+"/12/31"));}
|
||||
return xPad(idow,0);},w:"getDay",W:function(d){var doy=parseInt(Dt.formats.j(d),10);var rdow=7-Dt.formats.u(d);var woy=parseInt((doy+rdow)/7,10);return xPad(woy,0,10);},y:function(d){return xPad(d.getFullYear()%100,0);},Y:"getFullYear",z:function(d){var o=d.getTimezoneOffset();var H=xPad(parseInt(Math.abs(o/60),10),0);var M=xPad(Math.abs(o%60),0);return(o>0?"-":"+")+H+M;},Z:function(d){var tz=d.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");if(tz.length>4){tz=Dt.formats.z(d);}
|
||||
return tz;},"%":function(d){return"%";}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(oDate,oConfig){oConfig=oConfig||{};if(!Y.Lang.isDate(oDate)){return Y.Lang.isValue(oDate)?oDate:"";}
|
||||
var format=oConfig.format||Y.config.dateFormat,sLocale=oConfig.locale||Y.config.locale,LOCALE=Y.DataType.Date.Locale;sLocale=sLocale.replace(/_/g,"-");if(!LOCALE[sLocale]){var tmpLocale=sLocale.replace(/-[a-zA-Z]+$/,"");if(tmpLocale in LOCALE){sLocale=tmpLocale;}else if(Y.config.locale in LOCALE){sLocale=Y.config.locale;}else{sLocale="en";}}
|
||||
var aLocale=LOCALE[sLocale];var replace_aggs=function(m0,m1){var f=Dt.aggregates[m1];return(f==="locale"?aLocale[m1]:f);};var replace_formats=function(m0,m1){var f=Dt.formats[m1];switch(Y.Lang.type(f)){case"string":return oDate[f]();case"function":return f.call(oDate,oDate,aLocale);case"array":if(Y.Lang.type(f[0])==="string"){return xPad(oDate[f[0]](),f[1]);}
|
||||
default:return m1;}};while(format.match(/%[cDFhnrRtTxX]/)){format=format.replace(/%([cDFhnrRtTxX])/g,replace_aggs);}
|
||||
var str=format.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,replace_formats);replace_aggs=replace_formats=undefined;return str;}};Y.mix(Y.namespace("DataType.Date"),Dt);var YDateEn={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"};Y.namespace("DataType.Date.Locale");Y.DataType.Date.Locale["en"]=YDateEn;Y.DataType.Date.Locale["en-US"]=Y.merge(YDateEn,{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"});Y.DataType.Date.Locale["en-GB"]=Y.merge(YDateEn,{r:"%l:%M:%S %P %Z"});Y.DataType.Date.Locale["en-AU"]=Y.merge(YDateEn);},'3.0.0');YUI.add('datatype-date',function(Y){},'3.0.0',{use:['datatype-date-parse','datatype-date-format']});YUI.add('datatype-xml-parse',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.XML"),{parse:function(data){var xmlDoc=null;if(LANG.isString(data)){try{if(!LANG.isUndefined(DOMParser)){xmlDoc=new DOMParser().parseFromString(data,"text/xml");}}
|
||||
catch(e){try{if(!LANG.isUndefined(ActiveXObject)){xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async=false;xmlDoc.loadXML(data);}}
|
||||
catch(ee){}}}
|
||||
if((LANG.isNull(xmlDoc))||(LANG.isNull(xmlDoc.documentElement))||(xmlDoc.documentElement.nodeName==="parsererror")){}
|
||||
return xmlDoc;}});Y.namespace("Parsers").xml=Y.DataType.XML.parse;},'3.0.0');YUI.add('datatype-xml-format',function(Y){var LANG=Y.Lang;Y.mix(Y.namespace("DataType.XML"),{format:function(data){try{if(!LANG.isUndefined(XMLSerializer)){return(new XMLSerializer()).serializeToString(data);}}
|
||||
catch(e){if(data&&data.xml){return data.xml;}
|
||||
else{return(LANG.isValue(data)&&data.toString)?data.toString():"";}}}});},'3.0.0');YUI.add('datatype-xml',function(Y){},'3.0.0',{use:['datatype-xml-parse','datatype-xml-format']});YUI.add('datatype',function(Y){},'3.0.0',{use:['datatype-number','datatype-date','datatype-xml']});
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user