mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-11 08:01:03 +01:00
66c2332878
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
30 lines
12 KiB
JavaScript
30 lines
12 KiB
JavaScript
/*
|
|
AngularJS v1.3.0-rc.5
|
|
(c) 2010-2014 Google, Inc. http://angularjs.org
|
|
License: MIT
|
|
*/
|
|
(function(L,f,U){'use strict';f.module("ngAnimate",["ng"]).directive("ngAnimateChildren",function(){return function(V,C,h){h=h.ngAnimateChildren;f.isString(h)&&0===h.length?C.data("$$ngAnimateChildren",!0):V.$watch(h,function(f){C.data("$$ngAnimateChildren",!!f)})}}).factory("$$animateReflow",["$$rAF","$document",function(f,C){return function(h){return f(function(){h()})}}]).config(["$provide","$animateProvider",function(V,C){function h(f){for(var k=0;k<f.length;k++){var h=f[k];if(1==h.nodeType)return h}}
|
|
function M(f,k){return h(f)==h(k)}var p=f.noop,k=f.forEach,aa=C.$$selectors,D=f.isArray,ba=f.isString,t={running:!0};V.decorator("$animate",["$delegate","$$q","$injector","$sniffer","$rootElement","$$asyncCallback","$rootScope","$document","$templateRequest",function(N,L,K,W,u,y,O,U,X){function x(a,d){var c=a.data("$$ngAnimateState")||{};d&&(c.running=!0,c.structural=!0,a.data("$$ngAnimateState",c));return c.disabled||c.running&&c.structural}function P(a){var d,c=L.defer();c.promise.$$cancelFn=function(){d&&
|
|
d()};O.$$postDigest(function(){d=a(function(){c.resolve()})});return c.promise}function Q(a){if(D(a))return a;if(ba(a))return[a]}function R(a,d,c){c=c||{};var e={};k(c,function(b,a){k(a.split(" "),function(a){e[a]=b})});var f=Object.create(null);k((a.attr("class")||"").split(/\s+/),function(b){f[b]=!0});var g=[],l=[];k(d.classes,function(b,a){var c=f[a],d=e[a]||{};!1===b?(c||"addClass"==d.event)&&l.push(a):!0===b&&(c&&"removeClass"!=d.event||g.push(a))});return 0<g.length+l.length&&[g.join(" "),l.join(" ")]}
|
|
function S(a){if(a){var d=[],c={};a=a.substr(1).split(".");(W.transitions||W.animations)&&d.push(K.get(aa[""]));for(var e=0;e<a.length;e++){var f=a[e],g=aa[f];g&&!c[f]&&(d.push(K.get(g)),c[f]=!0)}return d}}function Y(a,d,c){function e(b,a){var c=b[a],d=b["before"+a.charAt(0).toUpperCase()+a.substr(1)];if(c||d)return"leave"==a&&(d=c,c=null),q.push({event:a,fn:c}),m.push({event:a,fn:d}),!0}function f(d,s,z){var e=[];k(d,function(b){b.fn&&e.push(b)});var m=0;k(e,function(d,f){var w=function(){a:{if(s){(s[f]||
|
|
p)();if(++m<e.length)break a;s=null}z()}};switch(d.event){case "setClass":s.push(d.fn(a,l,b,w));break;case "addClass":s.push(d.fn(a,l||c,w));break;case "removeClass":s.push(d.fn(a,b||c,w));break;default:s.push(d.fn(a,w))}});s&&0===s.length&&z()}var g=a[0];if(g){var l,b;D(c)&&(l=c[0],b=c[1],l?b?c=l+" "+b:(c=l,d="addClass"):(c=b,d="removeClass"));var s="setClass"==d,z=s||"addClass"==d||"removeClass"==d,w=a.attr("class")+" "+c;if(A(w)){var E=p,F=[],m=[],r=p,h=[],q=[],w=(" "+w).replace(/\s+/g,".");k(S(w),
|
|
function(b){!e(b,d)&&s&&(e(b,"addClass"),e(b,"removeClass"))});return{node:g,event:d,className:c,isClassBased:z,isSetClassOperation:s,before:function(b){E=b;f(m,F,function(){E=p;b()})},after:function(b){r=b;f(q,h,function(){r=p;b()})},cancel:function(){F&&(k(F,function(b){(b||p)(!0)}),E(!0));h&&(k(h,function(b){(b||p)(!0)}),r(!0))}}}}}function G(a,d,c,e,h,g,l,b){function s(b){var l="$animate:"+b;r&&r[l]&&0<r[l].length&&y(function(){c.triggerHandler(l,{event:a,className:d})})}function z(){s("before")}
|
|
function w(){s("after")}function E(){E.hasBeenRun||(E.hasBeenRun=!0,g())}function F(){if(!F.hasBeenRun){F.hasBeenRun=!0;D(l)&&k(l,function(b){c.removeClass(b)});var z=c.data("$$ngAnimateState");z&&(m&&m.isClassBased?B(c,d):(y(function(){var b=c.data("$$ngAnimateState")||{};n==b.index&&B(c,d,a)}),c.data("$$ngAnimateState",z)));s("close");b()}}var m=Y(c,a,d);if(!m)return E(),z(),w(),F(),p;a=m.event;d=m.className;var r=f.element._data(m.node),r=r&&r.events;e||(e=h?h.parent():c.parent());if(J(c,e))return E(),
|
|
z(),w(),F(),p;e=c.data("$$ngAnimateState")||{};var I=e.active||{},q=e.totalActive||0,v=e.last;h=!1;if(0<q){q=[];if(m.isClassBased)"setClass"==v.event?(q.push(v),B(c,d)):I[d]&&($=I[d],$.event==a?h=!0:(q.push($),B(c,d)));else if("leave"==a&&I["ng-leave"])h=!0;else{for(var $ in I)q.push(I[$]);e={};B(c,!0)}0<q.length&&k(q,function(b){b.cancel()})}!m.isClassBased||m.isSetClassOperation||h||(h="addClass"==a==c.hasClass(d));if(h)return E(),z(),w(),s("close"),b(),p;I=e.active||{};q=e.totalActive||0;if("leave"==
|
|
a)c.one("$destroy",function(b){b=f.element(this);var a=b.data("$$ngAnimateState");a&&(a=a.active["ng-leave"])&&(a.cancel(),B(b,"ng-leave"))});c.addClass("ng-animate");D(l)&&k(l,function(b){c.addClass(b)});var n=H++;q++;I[d]=m;c.data("$$ngAnimateState",{last:m,active:I,index:n,totalActive:q});z();m.before(function(b){var l=c.data("$$ngAnimateState");b=b||!l||!l.active[d]||m.isClassBased&&l.active[d].event!=a;E();!0===b?F():(w(),m.after(F))});return m.cancel}function n(a){if(a=h(a))a=f.isFunction(a.getElementsByClassName)?
|
|
a.getElementsByClassName("ng-animate"):a.querySelectorAll(".ng-animate"),k(a,function(a){a=f.element(a);(a=a.data("$$ngAnimateState"))&&a.active&&k(a.active,function(a){a.cancel()})})}function B(a,d){if(M(a,u))t.disabled||(t.running=!1,t.structural=!1);else if(d){var c=a.data("$$ngAnimateState")||{},e=!0===d;!e&&c.active&&c.active[d]&&(c.totalActive--,delete c.active[d]);if(e||!c.totalActive)a.removeClass("ng-animate"),a.removeData("$$ngAnimateState")}}function J(a,d){if(t.disabled)return!0;if(M(a,
|
|
u))return t.running;var c,e,h;do{if(0===d.length)break;var g=M(d,u),l=g?t:d.data("$$ngAnimateState")||{};if(l.disabled)return!0;g&&(h=!0);!1!==c&&(g=d.data("$$ngAnimateChildren"),f.isDefined(g)&&(c=g));e=e||l.running||l.last&&!l.last.isClassBased}while(d=d.parent());return!h||!c&&e}u.data("$$ngAnimateState",t);var Z=O.$watch(function(){return X.totalPendingRequests},function(a,d){0===a&&(Z(),O.$$postDigest(function(){O.$$postDigest(function(){t.running=!1})}))}),H=0,T=C.classNameFilter(),A=T?function(a){return T.test(a)}:
|
|
function(){return!0};return{enter:function(a,d,c,e){e=Q(e);a=f.element(a);d=d&&f.element(d);c=c&&f.element(c);x(a,!0);N.enter(a,d,c);return P(function(k){return G("enter","ng-enter",f.element(h(a)),d,c,p,e,k)})},leave:function(a,d){d=Q(d);a=f.element(a);n(a);x(a,!0);return P(function(c){return G("leave","ng-leave",f.element(h(a)),null,null,function(){N.leave(a)},d,c)})},move:function(a,d,c,e){e=Q(e);a=f.element(a);d=d&&f.element(d);c=c&&f.element(c);n(a);x(a,!0);N.move(a,d,c);return P(function(k){return G("move",
|
|
"ng-move",f.element(h(a)),d,c,p,e,k)})},addClass:function(a,d,c){return this.setClass(a,d,[],c)},removeClass:function(a,d,c){return this.setClass(a,[],d,c)},setClass:function(a,d,c,e){e=Q(e);a=f.element(a);a=f.element(h(a));if(x(a))return N.setClass(a,d,c,!0);var n,g=a.data("$$animateClasses"),l=!!g;g||(g={classes:{}});n=g.classes;d=D(d)?d:d.split(" ");k(d,function(b){b&&b.length&&(n[b]=!0)});c=D(c)?c:c.split(" ");k(c,function(b){b&&b.length&&(n[b]=!1)});if(l)return e&&g.options&&(g.options=g.options.concat(e)),
|
|
g.promise;a.data("$$animateClasses",g={classes:n,options:e});return g.promise=P(function(b){var c=a.parent(),d=h(a),l=d.parentNode;if(!l||l.$$NG_REMOVED||d.$$NG_REMOVED)b();else{d=a.data("$$animateClasses");a.removeData("$$animateClasses");var l=a.data("$$ngAnimateState")||{},e=R(a,d,l.active);return e?G("setClass",e,a,c,null,function(){e[0]&&N.$$addClassImmediately(a,e[0]);e[1]&&N.$$removeClassImmediately(a,e[1])},d.options,b):b()}})},cancel:function(a){a.$$cancelFn()},enabled:function(a,d){switch(arguments.length){case 2:if(a)B(d);
|
|
else{var c=d.data("$$ngAnimateState")||{};c.disabled=!0;d.data("$$ngAnimateState",c)}break;case 1:t.disabled=!a;break;default:a=!t.disabled}return!!a}}}]);C.register("",["$window","$sniffer","$timeout","$$animateReflow",function(t,C,K,W){function u(){c||(c=W(function(){d=[];c=null;A={}}))}function y(a,b){c&&c();d.push(b);c=W(function(){k(d,function(b){b()});d=[];c=null;A={}})}function O(a,b){var c=h(a);a=f.element(c);g.push(a);c=Date.now()+b;c<=M||(K.cancel(e),M=c,e=K(function(){V(g);g=[]},b,!1))}
|
|
function V(a){k(a,function(b){(b=b.data("$$ngAnimateCSS3Data"))&&k(b.closeAnimationFns,function(b){b()})})}function X(a,b){var c=b?A[b]:null;if(!c){var d=0,e=0,f=0,h=0;k(a,function(b){if(1==b.nodeType){b=t.getComputedStyle(b)||{};d=Math.max(x(b[J+"Duration"]),d);e=Math.max(x(b[J+"Delay"]),e);h=Math.max(x(b[H+"Delay"]),h);var a=x(b[H+"Duration"]);0<a&&(a*=parseInt(b[H+"IterationCount"],10)||1);f=Math.max(a,f)}});c={total:0,transitionDelay:e,transitionDuration:d,animationDelay:h,animationDuration:f};
|
|
b&&(A[b]=c)}return c}function x(a){var b=0;a=ba(a)?a.split(/\s*,\s*/):[];k(a,function(a){b=Math.max(parseFloat(a)||0,b)});return b}function P(c,b,d){c=0<=["ng-enter","ng-leave","ng-move"].indexOf(d);var e,f=b.parent(),k=f.data("$$ngAnimateKey");k||(f.data("$$ngAnimateKey",++a),k=a);e=k+"-"+h(b).getAttribute("class");var f=e+" "+d,k=A[f]?++A[f].total:0,g={};if(0<k){var m=d+"-stagger",g=e+" "+m;(e=!A[g])&&b.addClass(m);g=X(b,g);e&&b.removeClass(m)}b.addClass(d);var m=b.data("$$ngAnimateCSS3Data")||
|
|
{},r=X(b,f);e=r.transitionDuration;r=r.animationDuration;if(c&&0===e&&0===r)return b.removeClass(d),!1;d=c&&0<e;c=0<r&&0<g.animationDelay&&0===g.animationDuration;b.data("$$ngAnimateCSS3Data",{stagger:g,cacheKey:f,running:m.running||0,itemIndex:k,blockTransition:d,closeAnimationFns:m.closeAnimationFns||[]});b=h(b);d&&(b.style[J+"Property"]="none");c&&(b.style[H+"PlayState"]="paused");return!0}function Q(a,b,c,d){function e(a){b.off(D,f);b.removeClass(m);b.removeClass(r);y&&K.cancel(y);G(b,c);a=h(b);
|
|
for(var d in n)a.style.removeProperty(n[d])}function f(b){b.stopPropagation();var a=b.originalEvent||b;b=a.$manualTimeStamp||a.timeStamp||Date.now();a=parseFloat(a.elapsedTime.toFixed(3));Math.max(b-C,0)>=A&&a>=x&&d()}var g=h(b);a=b.data("$$ngAnimateCSS3Data");if(-1!=g.getAttribute("class").indexOf(c)&&a){a.blockTransition&&(g.style[J+"Property"]="");var m="",r="";k(c.split(" "),function(b,a){var c=(0<a?" ":"")+b;m+=c+"-active";r+=c+"-pending"});var n=[],q=a.itemIndex,v=a.stagger,p=0;if(0<q){p=0;
|
|
0<v.transitionDelay&&0===v.transitionDuration&&(p=v.transitionDelay*q);var t=0;0<v.animationDelay&&0===v.animationDuration&&(t=v.animationDelay*q,n.push(B+"animation-play-state"));p=Math.round(100*Math.max(p,t))/100}p||b.addClass(m);var u=X(b,a.cacheKey+" "+m),x=Math.max(u.transitionDuration,u.animationDuration);if(0===x)b.removeClass(m),G(b,c),d();else{var q=Math.max(u.transitionDelay,u.animationDelay),A=1E3*q;0<n.length&&(v=g.getAttribute("style")||"",";"!==v.charAt(v.length-1)&&(v+=";"),g.setAttribute("style",
|
|
v+" "));var C=Date.now(),D=T+" "+Z,q=1E3*(p+1.5*(q+x)),y;0<p&&(b.addClass(r),y=K(function(){y=null;b.addClass(m);b.removeClass(r);0<u.animationDuration&&(g.style[H+"PlayState"]="")},1E3*p,!1));b.on(D,f);a.closeAnimationFns.push(function(){e();d()});a.running++;O(b,q);return e}}else d()}function R(a,b,c,d){if(P(a,b,c,d))return function(a){a&&G(b,c)}}function S(a,b,c,d){if(b.data("$$ngAnimateCSS3Data"))return Q(a,b,c,d);G(b,c);d()}function Y(a,b,c,d){var e=R(a,b,c);if(e){var f=e;y(b,function(){f=S(a,
|
|
b,c,d)});return function(a){(f||p)(a)}}u();d()}function G(a,b){a.removeClass(b);var c=a.data("$$ngAnimateCSS3Data");c&&(c.running&&c.running--,c.running&&0!==c.running||a.removeData("$$ngAnimateCSS3Data"))}function n(a,b){var c="";a=D(a)?a:a.split(/\s+/);k(a,function(a,d){a&&0<a.length&&(c+=(0<d?" ":"")+a+b)});return c}var B="",J,Z,H,T;L.ontransitionend===U&&L.onwebkittransitionend!==U?(B="-webkit-",J="WebkitTransition",Z="webkitTransitionEnd transitionend"):(J="transition",Z="transitionend");L.onanimationend===
|
|
U&&L.onwebkitanimationend!==U?(B="-webkit-",H="WebkitAnimation",T="webkitAnimationEnd animationend"):(H="animation",T="animationend");var A={},a=0,d=[],c,e=null,M=0,g=[];return{enter:function(a,b){return Y("enter",a,"ng-enter",b)},leave:function(a,b){return Y("leave",a,"ng-leave",b)},move:function(a,b){return Y("move",a,"ng-move",b)},beforeSetClass:function(a,b,c,d){b=n(c,"-remove")+" "+n(b,"-add");if(b=R("setClass",a,b))return y(a,d),b;u();d()},beforeAddClass:function(a,b,c){if(b=R("addClass",a,
|
|
n(b,"-add")))return y(a,c),b;u();c()},beforeRemoveClass:function(a,b,c){if(b=R("removeClass",a,n(b,"-remove")))return y(a,c),b;u();c()},setClass:function(a,b,c,d){c=n(c,"-remove");b=n(b,"-add");return S("setClass",a,c+" "+b,d)},addClass:function(a,b,c){return S("addClass",a,n(b,"-add"),c)},removeClass:function(a,b,c){return S("removeClass",a,n(b,"-remove"),c)}}}])}])})(window,window.angular);
|
|
//# sourceMappingURL=angular-animate.min.js.map
|