Browse files

AUI-865 - Build files

  • Loading branch information...
1 parent 25cb03d commit fef587644d5ac0e1fe336ce61ace8b649fa40d3e @natecavanaugh natecavanaugh committed Mar 28, 2013
View
6 build/aui-toggler/assets/aui-toggler-base-core.css
@@ -1,7 +1,7 @@
.aui-toggler-content-collapsed {
- display: none;
+ display: none;
}
.aui-toggler-content-wrapper {
- overflow: hidden;
-}
+ overflow: hidden;
+}
View
6 build/aui-toggler/aui-toggler-base-debug.js
@@ -18,7 +18,6 @@ var Lang = A.Lang,
CLICK = 'click',
COLLAPSED = 'collapsed',
CONTENT = 'content',
- CUBIC_BEZIER = 'cubic-bezier(0.25, 0.1, 0.25, 1)',
DOWN = 'down',
ENTER = 'enter',
ESC = 'esc',
@@ -106,8 +105,7 @@ var Toggler = A.Component.create({
transition: {
validator: isObject,
value: {
- duration: 0.4,
- easing: CUBIC_BEZIER
+ duration: 0.4
}
}
@@ -280,4 +278,4 @@ var Toggler = A.Component.create({
A.Toggler = Toggler;
-}, '@VERSION@' ,{requires:['aui-base','transition'], skinnable:true});
+}, '@VERSION@' ,{skinnable:true, requires:['aui-base','transition']});
View
2 build/aui-toggler/aui-toggler-base-min.js
@@ -1 +1 @@
-AUI.add("aui-toggler-base",function(p){var ad=p.Lang,K=ad.isBoolean,Q=ad.isObject,u=ad.isUndefined,m=ad.toInt,C="-",x=".",O="",G="px",a=" ",H="animated",T="animating",D="bindDOMEvents",U="click",q="collapsed",R="content",V="cubic-bezier(0.25, 0.1, 0.25, 1)",F="down",b="enter",j="esc",c="expanded",k="expandedChange",i="getBoundingClientRect",S="gutter",M="header",W="helper",ac="keydown",y="left",h="linear",n="marginTop",l="minus",r="num_minus",z="num_plus",o="parentNode",w="plus",X="right",a="space",B="toggler",Z="transition",g="transitionEnd",e="transitionStart",v="up",aa="wrapper",f=p.getClassName,t=f(B,R),ab=f(B,R,q),N=f(B,R,c),s=f(B,R,aa),d=f(B,M),J=f(B,M,q),I=f(B,M,c),L={"false":ab,"true":N},E={"false":J,"true":I},P='<div class="'+s+'"></div>';var Y=p.Component.create({NAME:B,ATTRS:{animated:{validator:K,value:false,writeOnce:true},animating:{validator:K,value:false},bindDOMEvents:{validator:K,value:true,writeOnce:true},content:{setter:p.one},expanded:{validator:K,value:true},header:{setter:p.one},transition:{validator:Q,value:{duration:0.4,easing:V}}},EXTENDS:p.Base,headerEventHandler:function(ae,A){if(ae.type===U||ae.isKey(b)||ae.isKey(a)){ae.preventDefault();return A.toggle();}else{if(ae.isKey(F)||ae.isKey(X)||ae.isKey(z)){ae.preventDefault();return A.expand();}else{if(ae.isKey(v)||ae.isKey(y)||ae.isKey(j)||ae.isKey(r)){ae.preventDefault();return A.collapse();}}}},prototype:{initializer:function(){var A=this;A.bindUI();A.syncUI();A._uiSetExpanded(A.get(c));},bindUI:function(){var A=this;var ae=A.get(M);ae.setData(B,A);A.on(k,p.bind(A._onExpandedChange,A));if(A.get(D)){ae.on([U,ac],p.rbind(Y.headerEventHandler,null,A));}},syncUI:function(){var A=this;A.get(R).addClass(t);A.get(M).addClass(d);},animate:function(ae,af){var A=this;A._uiSetExpanded(true);var ag=p.merge(ae,A.get(Z));A.get(R).transition(ag,p.bind(af,A));},collapse:function(){var A=this;return A.toggle(false);},expand:function(){var A=this;return A.toggle(true);},getContentHeight:function(){var ae=this;var ah=ae.get(R);var ag=ae.get(c),A;if(!ag){ae._uiSetExpanded(true);}if(ah.hasMethod(i)){var af=ah.invoke(i);if(af){A=af.bottom-af.top;}}else{A=ah.get(OFFSET_HEIGHT);}if(!ag){ae._uiSetExpanded(false);}return A;},toggle:function(af){var ae=this;if(u(af)){af=!ae.get(c);}if(ae.get(H)){if(ae.get(T)){return af;}var ag=ae.get(R);var A=ae.getContentHeight();var ah=m(ag.getStyle(n));if(!ae.wrapped){ag.wrap(P);if(af){ah=-(A+ah);ag.setStyle(n,ah);}ae.wrapped=true;}ae.set(T,true);ae.animate({marginTop:-(A+ah)+G},function(){ae.set(T,false);ae.set(c,af);});}else{ae.set(c,af);}return af;},_onExpandedChange:function(ae){var A=this;A._uiSetExpanded(ae.newVal);},_uiSetExpanded:function(ae){var A=this;A.get(R).replaceClass(L[!ae],L[ae]);A.get(M).replaceClass(E[!ae],E[ae]);}}});p.Toggler=Y;},"@VERSION@",{requires:["aui-base","transition"],skinnable:true});
+AUI.add("aui-toggler-base",function(p){var ac=p.Lang,K=ac.isBoolean,Q=ac.isObject,u=ac.isUndefined,m=ac.toInt,C="-",x=".",O="",G="px",a=" ",H="animated",T="animating",D="bindDOMEvents",U="click",q="collapsed",R="content",F="down",b="enter",j="esc",c="expanded",k="expandedChange",i="getBoundingClientRect",S="gutter",M="header",V="helper",ab="keydown",y="left",h="linear",n="marginTop",l="minus",r="num_minus",z="num_plus",o="parentNode",w="plus",W="right",a="space",B="toggler",Y="transition",g="transitionEnd",e="transitionStart",v="up",Z="wrapper",f=p.getClassName,t=f(B,R),aa=f(B,R,q),N=f(B,R,c),s=f(B,R,Z),d=f(B,M),J=f(B,M,q),I=f(B,M,c),L={"false":aa,"true":N},E={"false":J,"true":I},P='<div class="'+s+'"></div>';var X=p.Component.create({NAME:B,ATTRS:{animated:{validator:K,value:false,writeOnce:true},animating:{validator:K,value:false},bindDOMEvents:{validator:K,value:true,writeOnce:true},content:{setter:p.one},expanded:{validator:K,value:true},header:{setter:p.one},transition:{validator:Q,value:{duration:0.4}}},EXTENDS:p.Base,headerEventHandler:function(ad,A){if(ad.type===U||ad.isKey(b)||ad.isKey(a)){ad.preventDefault();return A.toggle();}else{if(ad.isKey(F)||ad.isKey(W)||ad.isKey(z)){ad.preventDefault();return A.expand();}else{if(ad.isKey(v)||ad.isKey(y)||ad.isKey(j)||ad.isKey(r)){ad.preventDefault();return A.collapse();}}}},prototype:{initializer:function(){var A=this;A.bindUI();A.syncUI();A._uiSetExpanded(A.get(c));},bindUI:function(){var A=this;var ad=A.get(M);ad.setData(B,A);A.on(k,p.bind(A._onExpandedChange,A));if(A.get(D)){ad.on([U,ab],p.rbind(X.headerEventHandler,null,A));}},syncUI:function(){var A=this;A.get(R).addClass(t);A.get(M).addClass(d);},animate:function(ad,ae){var A=this;A._uiSetExpanded(true);var af=p.merge(ad,A.get(Y));A.get(R).transition(af,p.bind(ae,A));},collapse:function(){var A=this;return A.toggle(false);},expand:function(){var A=this;return A.toggle(true);},getContentHeight:function(){var ad=this;var ag=ad.get(R);var af=ad.get(c),A;if(!af){ad._uiSetExpanded(true);}if(ag.hasMethod(i)){var ae=ag.invoke(i);if(ae){A=ae.bottom-ae.top;}}else{A=ag.get(OFFSET_HEIGHT);}if(!af){ad._uiSetExpanded(false);}return A;},toggle:function(ae){var ad=this;if(u(ae)){ae=!ad.get(c);}if(ad.get(H)){if(ad.get(T)){return ae;}var af=ad.get(R);var A=ad.getContentHeight();var ag=m(af.getStyle(n));if(!ad.wrapped){af.wrap(P);if(ae){ag=-(A+ag);af.setStyle(n,ag);}ad.wrapped=true;}ad.set(T,true);ad.animate({marginTop:-(A+ag)+G},function(){ad.set(T,false);ad.set(c,ae);});}else{ad.set(c,ae);}return ae;},_onExpandedChange:function(ad){var A=this;A._uiSetExpanded(ad.newVal);},_uiSetExpanded:function(ad){var A=this;A.get(R).replaceClass(L[!ad],L[ad]);A.get(M).replaceClass(E[!ad],E[ad]);}}});p.Toggler=X;},"@VERSION@",{skinnable:true,requires:["aui-base","transition"]});
View
6 build/aui-toggler/aui-toggler-base.js
@@ -18,7 +18,6 @@ var Lang = A.Lang,
CLICK = 'click',
COLLAPSED = 'collapsed',
CONTENT = 'content',
- CUBIC_BEZIER = 'cubic-bezier(0.25, 0.1, 0.25, 1)',
DOWN = 'down',
ENTER = 'enter',
ESC = 'esc',
@@ -106,8 +105,7 @@ var Toggler = A.Component.create({
transition: {
validator: isObject,
value: {
- duration: 0.4,
- easing: CUBIC_BEZIER
+ duration: 0.4
}
}
@@ -280,4 +278,4 @@ var Toggler = A.Component.create({
A.Toggler = Toggler;
-}, '@VERSION@' ,{requires:['aui-base','transition'], skinnable:true});
+}, '@VERSION@' ,{skinnable:true, requires:['aui-base','transition']});
View
12 build/aui-toggler/aui-toggler-debug.js
@@ -18,7 +18,6 @@ var Lang = A.Lang,
CLICK = 'click',
COLLAPSED = 'collapsed',
CONTENT = 'content',
- CUBIC_BEZIER = 'cubic-bezier(0.25, 0.1, 0.25, 1)',
DOWN = 'down',
ENTER = 'enter',
ESC = 'esc',
@@ -106,8 +105,7 @@ var Toggler = A.Component.create({
transition: {
validator: isObject,
value: {
- duration: 0.4,
- easing: CUBIC_BEZIER
+ duration: 0.4
}
}
@@ -280,8 +278,7 @@ var Toggler = A.Component.create({
A.Toggler = Toggler;
-}, '@VERSION@' ,{requires:['aui-base','transition'], skinnable:true});
-
+}, '@VERSION@' ,{skinnable:true, requires:['aui-base','transition']});
AUI.add('aui-toggler-delegate', function(A) {
var Lang = A.Lang,
isBoolean = Lang.isBoolean,
@@ -467,9 +464,8 @@ var TogglerDelegate = A.Component.create({
A.TogglerDelegate = TogglerDelegate;
-}, '@VERSION@' ,{requires:['aui-toggler-base'], skinnable:false});
-
+}, '@VERSION@' ,{skinnable:false, requires:['aui-toggler-base']});
-AUI.add('aui-toggler', function(A){}, '@VERSION@' ,{skinnable:true, use:['aui-toggler-base','aui-toggler-delegate']});
+AUI.add('aui-toggler', function(A){}, '@VERSION@' ,{use:['aui-toggler-base','aui-toggler-delegate'], skinnable:true});
View
2 build/aui-toggler/aui-toggler-delegate-debug.js
@@ -183,4 +183,4 @@ var TogglerDelegate = A.Component.create({
A.TogglerDelegate = TogglerDelegate;
-}, '@VERSION@' ,{requires:['aui-toggler-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['aui-toggler-base']});
View
2 build/aui-toggler/aui-toggler-delegate-min.js
@@ -1 +1 @@
-AUI.add("aui-toggler-delegate",function(t){var e=t.Lang,o=e.isBoolean,p=e.isObject,r=e.isString,C=t.Array,b=t.config.doc,g=t.Toggler,y="-",w=".",F="",n=" ",q="animated",f="click",s="closeAllOnExpand",u="container",j="content",v="cubic-bezier(0.25, 0.1, 0.25, 1)",l="expanded",a="firstChild",x="header",d="keydown",m="linear",i="toggler",c="toggler:animatingChange",B="toggler-delegate",E="transition",h="wrapper",D=t.getClassName,z=D(i,j,h);var k=t.Component.create({NAME:B,ATTRS:{animated:{validator:o,value:false,writeOnce:true},closeAllOnExpand:{validator:o,value:false},container:{setter:t.one,value:b},content:{validator:r},expanded:{validator:o,value:true},header:{validator:r},transition:{validator:p,value:{duration:0.4,easing:v}}},EXTENDS:t.Base,prototype:{items:null,initializer:function(){var A=this;A.bindUI();A.renderUI();},renderUI:function(){var A=this;if(A.get(s)){A.items=[];A.get(u).all(A.get(x)).each(function(G){A.items.push(A._create(G));});}},bindUI:function(){var A=this;var G=A.get(u);var H=A.get(x);A.on(c,t.bind(A._onAnimatingChange,A));G.delegate([f,d],t.bind(A.headerEventHandler,A),H);},findContentNode:function(J){var G=this;var H=G.get(j);var A=J.next(H)||J.one(H);if(!A){var I=J.next(w+z);if(I){A=I.get(a);}}return A;},headerEventHandler:function(G){var A=this;if(A.animating){return false;}var I=G.currentTarget;var H=I.getData(i)||A._create(I);if(g.headerEventHandler(G,H)&&A.get(s)){C.each(A.items,function(K,J,L){if(K!==H&&K.get(l)){K.collapse();}});}},_create:function(H){var A=this;var G=new g({animated:A.get(q),bindDOMEvents:false,bubbleTargets:[A],content:A.findContentNode(H),expanded:A.get(l),header:H,transition:A.get(E)});return G;},_onAnimatingChange:function(G){var A=this;A.animating=G.newVal;}}});t.TogglerDelegate=k;},"@VERSION@",{requires:["aui-toggler-base"],skinnable:false});
+AUI.add("aui-toggler-delegate",function(t){var e=t.Lang,o=e.isBoolean,p=e.isObject,r=e.isString,C=t.Array,b=t.config.doc,g=t.Toggler,y="-",w=".",F="",n=" ",q="animated",f="click",s="closeAllOnExpand",u="container",j="content",v="cubic-bezier(0.25, 0.1, 0.25, 1)",l="expanded",a="firstChild",x="header",d="keydown",m="linear",i="toggler",c="toggler:animatingChange",B="toggler-delegate",E="transition",h="wrapper",D=t.getClassName,z=D(i,j,h);var k=t.Component.create({NAME:B,ATTRS:{animated:{validator:o,value:false,writeOnce:true},closeAllOnExpand:{validator:o,value:false},container:{setter:t.one,value:b},content:{validator:r},expanded:{validator:o,value:true},header:{validator:r},transition:{validator:p,value:{duration:0.4,easing:v}}},EXTENDS:t.Base,prototype:{items:null,initializer:function(){var A=this;A.bindUI();A.renderUI();},renderUI:function(){var A=this;if(A.get(s)){A.items=[];A.get(u).all(A.get(x)).each(function(G){A.items.push(A._create(G));});}},bindUI:function(){var A=this;var G=A.get(u);var H=A.get(x);A.on(c,t.bind(A._onAnimatingChange,A));G.delegate([f,d],t.bind(A.headerEventHandler,A),H);},findContentNode:function(J){var G=this;var H=G.get(j);var A=J.next(H)||J.one(H);if(!A){var I=J.next(w+z);if(I){A=I.get(a);}}return A;},headerEventHandler:function(G){var A=this;if(A.animating){return false;}var I=G.currentTarget;var H=I.getData(i)||A._create(I);if(g.headerEventHandler(G,H)&&A.get(s)){C.each(A.items,function(K,J,L){if(K!==H&&K.get(l)){K.collapse();}});}},_create:function(H){var A=this;var G=new g({animated:A.get(q),bindDOMEvents:false,bubbleTargets:[A],content:A.findContentNode(H),expanded:A.get(l),header:H,transition:A.get(E)});return G;},_onAnimatingChange:function(G){var A=this;A.animating=G.newVal;}}});t.TogglerDelegate=k;},"@VERSION@",{skinnable:false,requires:["aui-toggler-base"]});
View
2 build/aui-toggler/aui-toggler-delegate.js
@@ -183,4 +183,4 @@ var TogglerDelegate = A.Component.create({
A.TogglerDelegate = TogglerDelegate;
-}, '@VERSION@' ,{requires:['aui-toggler-base'], skinnable:false});
+}, '@VERSION@' ,{skinnable:false, requires:['aui-toggler-base']});
View
2 build/aui-toggler/aui-toggler-min.js
@@ -1 +1 @@
-AUI.add("aui-toggler-base",function(p){var ad=p.Lang,K=ad.isBoolean,Q=ad.isObject,u=ad.isUndefined,m=ad.toInt,C="-",x=".",O="",G="px",a=" ",H="animated",T="animating",D="bindDOMEvents",U="click",q="collapsed",R="content",V="cubic-bezier(0.25, 0.1, 0.25, 1)",F="down",b="enter",j="esc",c="expanded",k="expandedChange",i="getBoundingClientRect",S="gutter",M="header",W="helper",ac="keydown",y="left",h="linear",n="marginTop",l="minus",r="num_minus",z="num_plus",o="parentNode",w="plus",X="right",a="space",B="toggler",Z="transition",g="transitionEnd",e="transitionStart",v="up",aa="wrapper",f=p.getClassName,t=f(B,R),ab=f(B,R,q),N=f(B,R,c),s=f(B,R,aa),d=f(B,M),J=f(B,M,q),I=f(B,M,c),L={"false":ab,"true":N},E={"false":J,"true":I},P='<div class="'+s+'"></div>';var Y=p.Component.create({NAME:B,ATTRS:{animated:{validator:K,value:false,writeOnce:true},animating:{validator:K,value:false},bindDOMEvents:{validator:K,value:true,writeOnce:true},content:{setter:p.one},expanded:{validator:K,value:true},header:{setter:p.one},transition:{validator:Q,value:{duration:0.4,easing:V}}},EXTENDS:p.Base,headerEventHandler:function(ae,A){if(ae.type===U||ae.isKey(b)||ae.isKey(a)){ae.preventDefault();return A.toggle();}else{if(ae.isKey(F)||ae.isKey(X)||ae.isKey(z)){ae.preventDefault();return A.expand();}else{if(ae.isKey(v)||ae.isKey(y)||ae.isKey(j)||ae.isKey(r)){ae.preventDefault();return A.collapse();}}}},prototype:{initializer:function(){var A=this;A.bindUI();A.syncUI();A._uiSetExpanded(A.get(c));},bindUI:function(){var A=this;var ae=A.get(M);ae.setData(B,A);A.on(k,p.bind(A._onExpandedChange,A));if(A.get(D)){ae.on([U,ac],p.rbind(Y.headerEventHandler,null,A));}},syncUI:function(){var A=this;A.get(R).addClass(t);A.get(M).addClass(d);},animate:function(ae,af){var A=this;A._uiSetExpanded(true);var ag=p.merge(ae,A.get(Z));A.get(R).transition(ag,p.bind(af,A));},collapse:function(){var A=this;return A.toggle(false);},expand:function(){var A=this;return A.toggle(true);},getContentHeight:function(){var ae=this;var ah=ae.get(R);var ag=ae.get(c),A;if(!ag){ae._uiSetExpanded(true);}if(ah.hasMethod(i)){var af=ah.invoke(i);if(af){A=af.bottom-af.top;}}else{A=ah.get(OFFSET_HEIGHT);}if(!ag){ae._uiSetExpanded(false);}return A;},toggle:function(af){var ae=this;if(u(af)){af=!ae.get(c);}if(ae.get(H)){if(ae.get(T)){return af;}var ag=ae.get(R);var A=ae.getContentHeight();var ah=m(ag.getStyle(n));if(!ae.wrapped){ag.wrap(P);if(af){ah=-(A+ah);ag.setStyle(n,ah);}ae.wrapped=true;}ae.set(T,true);ae.animate({marginTop:-(A+ah)+G},function(){ae.set(T,false);ae.set(c,af);});}else{ae.set(c,af);}return af;},_onExpandedChange:function(ae){var A=this;A._uiSetExpanded(ae.newVal);},_uiSetExpanded:function(ae){var A=this;A.get(R).replaceClass(L[!ae],L[ae]);A.get(M).replaceClass(E[!ae],E[ae]);}}});p.Toggler=Y;},"@VERSION@",{requires:["aui-base","transition"],skinnable:true});AUI.add("aui-toggler-delegate",function(t){var e=t.Lang,o=e.isBoolean,p=e.isObject,r=e.isString,C=t.Array,b=t.config.doc,g=t.Toggler,y="-",w=".",F="",n=" ",q="animated",f="click",s="closeAllOnExpand",u="container",j="content",v="cubic-bezier(0.25, 0.1, 0.25, 1)",l="expanded",a="firstChild",x="header",d="keydown",m="linear",i="toggler",c="toggler:animatingChange",B="toggler-delegate",E="transition",h="wrapper",D=t.getClassName,z=D(i,j,h);var k=t.Component.create({NAME:B,ATTRS:{animated:{validator:o,value:false,writeOnce:true},closeAllOnExpand:{validator:o,value:false},container:{setter:t.one,value:b},content:{validator:r},expanded:{validator:o,value:true},header:{validator:r},transition:{validator:p,value:{duration:0.4,easing:v}}},EXTENDS:t.Base,prototype:{items:null,initializer:function(){var A=this;A.bindUI();A.renderUI();},renderUI:function(){var A=this;if(A.get(s)){A.items=[];A.get(u).all(A.get(x)).each(function(G){A.items.push(A._create(G));});}},bindUI:function(){var A=this;var G=A.get(u);var H=A.get(x);A.on(c,t.bind(A._onAnimatingChange,A));G.delegate([f,d],t.bind(A.headerEventHandler,A),H);},findContentNode:function(J){var G=this;var H=G.get(j);var A=J.next(H)||J.one(H);if(!A){var I=J.next(w+z);if(I){A=I.get(a);}}return A;},headerEventHandler:function(G){var A=this;if(A.animating){return false;}var I=G.currentTarget;var H=I.getData(i)||A._create(I);if(g.headerEventHandler(G,H)&&A.get(s)){C.each(A.items,function(K,J,L){if(K!==H&&K.get(l)){K.collapse();}});}},_create:function(H){var A=this;var G=new g({animated:A.get(q),bindDOMEvents:false,bubbleTargets:[A],content:A.findContentNode(H),expanded:A.get(l),header:H,transition:A.get(E)});return G;},_onAnimatingChange:function(G){var A=this;A.animating=G.newVal;}}});t.TogglerDelegate=k;},"@VERSION@",{requires:["aui-toggler-base"],skinnable:false});AUI.add("aui-toggler",function(a){},"@VERSION@",{skinnable:true,use:["aui-toggler-base","aui-toggler-delegate"]});
+AUI.add("aui-toggler-base",function(p){var ac=p.Lang,K=ac.isBoolean,Q=ac.isObject,u=ac.isUndefined,m=ac.toInt,C="-",x=".",O="",G="px",a=" ",H="animated",T="animating",D="bindDOMEvents",U="click",q="collapsed",R="content",F="down",b="enter",j="esc",c="expanded",k="expandedChange",i="getBoundingClientRect",S="gutter",M="header",V="helper",ab="keydown",y="left",h="linear",n="marginTop",l="minus",r="num_minus",z="num_plus",o="parentNode",w="plus",W="right",a="space",B="toggler",Y="transition",g="transitionEnd",e="transitionStart",v="up",Z="wrapper",f=p.getClassName,t=f(B,R),aa=f(B,R,q),N=f(B,R,c),s=f(B,R,Z),d=f(B,M),J=f(B,M,q),I=f(B,M,c),L={"false":aa,"true":N},E={"false":J,"true":I},P='<div class="'+s+'"></div>';var X=p.Component.create({NAME:B,ATTRS:{animated:{validator:K,value:false,writeOnce:true},animating:{validator:K,value:false},bindDOMEvents:{validator:K,value:true,writeOnce:true},content:{setter:p.one},expanded:{validator:K,value:true},header:{setter:p.one},transition:{validator:Q,value:{duration:0.4}}},EXTENDS:p.Base,headerEventHandler:function(ad,A){if(ad.type===U||ad.isKey(b)||ad.isKey(a)){ad.preventDefault();return A.toggle();}else{if(ad.isKey(F)||ad.isKey(W)||ad.isKey(z)){ad.preventDefault();return A.expand();}else{if(ad.isKey(v)||ad.isKey(y)||ad.isKey(j)||ad.isKey(r)){ad.preventDefault();return A.collapse();}}}},prototype:{initializer:function(){var A=this;A.bindUI();A.syncUI();A._uiSetExpanded(A.get(c));},bindUI:function(){var A=this;var ad=A.get(M);ad.setData(B,A);A.on(k,p.bind(A._onExpandedChange,A));if(A.get(D)){ad.on([U,ab],p.rbind(X.headerEventHandler,null,A));}},syncUI:function(){var A=this;A.get(R).addClass(t);A.get(M).addClass(d);},animate:function(ad,ae){var A=this;A._uiSetExpanded(true);var af=p.merge(ad,A.get(Y));A.get(R).transition(af,p.bind(ae,A));},collapse:function(){var A=this;return A.toggle(false);},expand:function(){var A=this;return A.toggle(true);},getContentHeight:function(){var ad=this;var ag=ad.get(R);var af=ad.get(c),A;if(!af){ad._uiSetExpanded(true);}if(ag.hasMethod(i)){var ae=ag.invoke(i);if(ae){A=ae.bottom-ae.top;}}else{A=ag.get(OFFSET_HEIGHT);}if(!af){ad._uiSetExpanded(false);}return A;},toggle:function(ae){var ad=this;if(u(ae)){ae=!ad.get(c);}if(ad.get(H)){if(ad.get(T)){return ae;}var af=ad.get(R);var A=ad.getContentHeight();var ag=m(af.getStyle(n));if(!ad.wrapped){af.wrap(P);if(ae){ag=-(A+ag);af.setStyle(n,ag);}ad.wrapped=true;}ad.set(T,true);ad.animate({marginTop:-(A+ag)+G},function(){ad.set(T,false);ad.set(c,ae);});}else{ad.set(c,ae);}return ae;},_onExpandedChange:function(ad){var A=this;A._uiSetExpanded(ad.newVal);},_uiSetExpanded:function(ad){var A=this;A.get(R).replaceClass(L[!ad],L[ad]);A.get(M).replaceClass(E[!ad],E[ad]);}}});p.Toggler=X;},"@VERSION@",{skinnable:true,requires:["aui-base","transition"]});AUI.add("aui-toggler-delegate",function(t){var e=t.Lang,o=e.isBoolean,p=e.isObject,r=e.isString,C=t.Array,b=t.config.doc,g=t.Toggler,y="-",w=".",F="",n=" ",q="animated",f="click",s="closeAllOnExpand",u="container",j="content",v="cubic-bezier(0.25, 0.1, 0.25, 1)",l="expanded",a="firstChild",x="header",d="keydown",m="linear",i="toggler",c="toggler:animatingChange",B="toggler-delegate",E="transition",h="wrapper",D=t.getClassName,z=D(i,j,h);var k=t.Component.create({NAME:B,ATTRS:{animated:{validator:o,value:false,writeOnce:true},closeAllOnExpand:{validator:o,value:false},container:{setter:t.one,value:b},content:{validator:r},expanded:{validator:o,value:true},header:{validator:r},transition:{validator:p,value:{duration:0.4,easing:v}}},EXTENDS:t.Base,prototype:{items:null,initializer:function(){var A=this;A.bindUI();A.renderUI();},renderUI:function(){var A=this;if(A.get(s)){A.items=[];A.get(u).all(A.get(x)).each(function(G){A.items.push(A._create(G));});}},bindUI:function(){var A=this;var G=A.get(u);var H=A.get(x);A.on(c,t.bind(A._onAnimatingChange,A));G.delegate([f,d],t.bind(A.headerEventHandler,A),H);},findContentNode:function(J){var G=this;var H=G.get(j);var A=J.next(H)||J.one(H);if(!A){var I=J.next(w+z);if(I){A=I.get(a);}}return A;},headerEventHandler:function(G){var A=this;if(A.animating){return false;}var I=G.currentTarget;var H=I.getData(i)||A._create(I);if(g.headerEventHandler(G,H)&&A.get(s)){C.each(A.items,function(K,J,L){if(K!==H&&K.get(l)){K.collapse();}});}},_create:function(H){var A=this;var G=new g({animated:A.get(q),bindDOMEvents:false,bubbleTargets:[A],content:A.findContentNode(H),expanded:A.get(l),header:H,transition:A.get(E)});return G;},_onAnimatingChange:function(G){var A=this;A.animating=G.newVal;}}});t.TogglerDelegate=k;},"@VERSION@",{skinnable:false,requires:["aui-toggler-base"]});AUI.add("aui-toggler",function(a){},"@VERSION@",{use:["aui-toggler-base","aui-toggler-delegate"],skinnable:true});
View
12 build/aui-toggler/aui-toggler.js
@@ -18,7 +18,6 @@ var Lang = A.Lang,
CLICK = 'click',
COLLAPSED = 'collapsed',
CONTENT = 'content',
- CUBIC_BEZIER = 'cubic-bezier(0.25, 0.1, 0.25, 1)',
DOWN = 'down',
ENTER = 'enter',
ESC = 'esc',
@@ -106,8 +105,7 @@ var Toggler = A.Component.create({
transition: {
validator: isObject,
value: {
- duration: 0.4,
- easing: CUBIC_BEZIER
+ duration: 0.4
}
}
@@ -280,8 +278,7 @@ var Toggler = A.Component.create({
A.Toggler = Toggler;
-}, '@VERSION@' ,{requires:['aui-base','transition'], skinnable:true});
-
+}, '@VERSION@' ,{skinnable:true, requires:['aui-base','transition']});
AUI.add('aui-toggler-delegate', function(A) {
var Lang = A.Lang,
isBoolean = Lang.isBoolean,
@@ -467,9 +464,8 @@ var TogglerDelegate = A.Component.create({
A.TogglerDelegate = TogglerDelegate;
-}, '@VERSION@' ,{requires:['aui-toggler-base'], skinnable:false});
-
+}, '@VERSION@' ,{skinnable:false, requires:['aui-toggler-base']});
-AUI.add('aui-toggler', function(A){}, '@VERSION@' ,{skinnable:true, use:['aui-toggler-base','aui-toggler-delegate']});
+AUI.add('aui-toggler', function(A){}, '@VERSION@' ,{use:['aui-toggler-base','aui-toggler-delegate'], skinnable:true});

0 comments on commit fef5876

Please sign in to comment.