summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-04-30 18:30:11 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-04-30 18:30:11 +0200
commiteb28c3b137c8a0d61377087c9a04b820151b0b7c (patch)
treec1ebf149f43fa653a4ef1c3f33df04557094e834 /js
parent2e54780c1496bfa39cd035b9ac40ed851d2198f1 (diff)
update deps
Diffstat (limited to 'js')
-rw-r--r--js/vendor/angular-animate/.bower.json10
-rw-r--r--js/vendor/angular-animate/angular-animate.js369
-rw-r--r--js/vendor/angular-animate/angular-animate.min.js88
-rw-r--r--js/vendor/angular-animate/angular-animate.min.js.map4
-rw-r--r--js/vendor/angular-animate/bower.json4
-rw-r--r--js/vendor/angular-animate/package.json2
-rw-r--r--js/vendor/angular-mocks/.bower.json10
-rw-r--r--js/vendor/angular-mocks/angular-mocks.js2
-rw-r--r--js/vendor/angular-mocks/bower.json4
-rw-r--r--js/vendor/angular-mocks/package.json2
-rw-r--r--js/vendor/angular-route/.bower.json10
-rw-r--r--js/vendor/angular-route/angular-route.js2
-rw-r--r--js/vendor/angular-route/angular-route.min.js2
-rw-r--r--js/vendor/angular-route/bower.json4
-rw-r--r--js/vendor/angular-route/package.json2
-rw-r--r--js/vendor/angular-sanitize/.bower.json10
-rw-r--r--js/vendor/angular-sanitize/angular-sanitize.js2
-rw-r--r--js/vendor/angular-sanitize/angular-sanitize.min.js2
-rw-r--r--js/vendor/angular-sanitize/bower.json4
-rw-r--r--js/vendor/angular-sanitize/package.json2
-rw-r--r--js/vendor/angular/.bower.json8
-rw-r--r--js/vendor/angular/angular.js630
-rw-r--r--js/vendor/angular/angular.min.js537
-rw-r--r--js/vendor/angular/angular.min.js.gzipbin50718 -> 50995 bytes
-rw-r--r--js/vendor/angular/angular.min.js.map6
-rw-r--r--js/vendor/angular/bower.json2
-rw-r--r--js/vendor/angular/package.json2
-rw-r--r--js/vendor/es6-shim/.bower.json8
-rw-r--r--js/vendor/es6-shim/CHANGELOG.md17
-rw-r--r--js/vendor/es6-shim/bower.json2
-rw-r--r--js/vendor/es6-shim/component.json2
-rw-r--r--js/vendor/es6-shim/es6-sham.js20
-rw-r--r--js/vendor/es6-shim/es6-sham.map2
-rw-r--r--js/vendor/es6-shim/es6-sham.min.js2
-rw-r--r--js/vendor/es6-shim/es6-shim.js500
-rw-r--r--js/vendor/es6-shim/es6-shim.map2
-rw-r--r--js/vendor/es6-shim/es6-shim.min.js5
-rw-r--r--js/vendor/es6-shim/package.json6
-rw-r--r--js/vendor/jquery/.bower.json9
-rw-r--r--js/vendor/jquery/bower.json3
-rw-r--r--js/vendor/jquery/dist/jquery.js13
-rw-r--r--js/vendor/jquery/dist/jquery.min.js8
-rw-r--r--js/vendor/jquery/dist/jquery.min.map2
-rw-r--r--js/vendor/jquery/src/core.js7
44 files changed, 1413 insertions, 915 deletions
diff --git a/js/vendor/angular-animate/.bower.json b/js/vendor/angular-animate/.bower.json
index 0f44e04c4..dc1346b69 100644
--- a/js/vendor/angular-animate/.bower.json
+++ b/js/vendor/angular-animate/.bower.json
@@ -1,17 +1,17 @@
{
"name": "angular-animate",
- "version": "1.4.0-rc.0",
+ "version": "1.4.0-rc.1",
"main": "./angular-animate.js",
"ignore": [],
"dependencies": {
- "angular": "1.4.0-rc.0"
+ "angular": "1.4.0-rc.1"
},
"homepage": "https://github.com/angular/bower-angular-animate",
- "_release": "1.4.0-rc.0",
+ "_release": "1.4.0-rc.1",
"_resolution": {
"type": "version",
- "tag": "v1.4.0-rc.0",
- "commit": "a75c362178f4aac89b1daf1d8e9711f47ffa96da"
+ "tag": "v1.4.0-rc.1",
+ "commit": "872a7357132b252b0856edeea082d6e57d516ea7"
},
"_source": "git://github.com/angular/bower-angular-animate.git",
"_target": "~1.4.*",
diff --git a/js/vendor/angular-animate/angular-animate.js b/js/vendor/angular-animate/angular-animate.js
index c6e8fb592..66fc23934 100644
--- a/js/vendor/angular-animate/angular-animate.js
+++ b/js/vendor/angular-animate/angular-animate.js
@@ -1,5 +1,5 @@
/**
- * @license AngularJS v1.4.0-rc.0
+ * @license AngularJS v1.4.0-rc.1
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
@@ -27,6 +27,13 @@ var isPromiseLike = function(p) {
return p && p.then ? true : false;
}
+function assertArg(arg, name, reason) {
+ if (!arg) {
+ throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required"));
+ }
+ return arg;
+}
+
function mergeClasses(a,b) {
if (!a && !b) return '';
if (!a) return b;
@@ -115,7 +122,6 @@ function applyAnimationClassesFactory($$jqLite) {
}
if (options.removeClass) {
$$removeClass($$jqLite, element, options.removeClass);
- element.removeClass(options.removeClass);
options.removeClass = null;
}
}
@@ -417,19 +423,7 @@ var $$AnimateChildrenDirective = [function() {
* start: Function,
*
* // ends (aborts) the animation
- * end: Function,
- *
- * // the total number of seconds that the animation will run for
- * duration: Number,
- *
- * // the total number of seconds that the animation will delay for before starting
- * delay: Number,
- *
- * // whether or not transitions were detected and will therefore be used for the animation
- * transitions: Boolean,
- *
- * // whether or not keyframe animations were detected and will therefore be used for the animation
- * keyframes: Boolean
+ * end: Function
* }
* ```
*
@@ -481,6 +475,7 @@ var $$AnimateChildrenDirective = [function() {
* ({@link ngAnimate#css-staggering-animations Click here to learn how CSS-based staggering works in ngAnimate.})
* * `staggerIndex` - The numeric index representing the stagger item (e.g. a value of 5 is equal to the sixth item in the stagger; therefore when a
* `stagger` option value of `0.1` is used then there will be a stagger delay of `600ms`)
+ * `applyClassesEarly` - Whether or not the classes being added or removed will be used when detecting the animation. This is set by `$animate` when enter/leave/move animations are fired to ensure that the CSS classes are resolved in time. (Note that this will prevent any transitions from occuring on the classes being added and removed.)
*
* @return {null|object} an object with a start method and details about the animation. If no animation is detected then a value of `null` will be returned.
*
@@ -753,9 +748,12 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
//WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND
//WILL TAKE YEARS AWAY FROM YOUR LIFE.
var width = bod.offsetWidth + 1;
- forEach(rafWaitQueue, function(cb) {
- cb(width);
- });
+
+ // we use a for loop to ensure that if the queue is changed
+ // during this looping then it will consider new requests
+ for (var i = 0; i < rafWaitQueue.length; i++) {
+ rafWaitQueue[i](width);
+ }
rafWaitQueue.length = 0;
});
}
@@ -823,6 +821,17 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
addRemoveClassName += pendClasses(options.removeClass, '-remove');
}
+ // there may be a situation where a structural animation is combined together
+ // with CSS classes that need to resolve before the animation is computed.
+ // However this means that there is no explicit CSS code to block the animation
+ // from happening (by setting 0s none in the class name). If this is the case
+ // we need to apply the classes before the first rAF so we know to continue if
+ // there actually is a detected transition or keyframe animation
+ if (options.applyClassesEarly && addRemoveClassName.length) {
+ applyAnimationClasses(element, options);
+ addRemoveClassName = '';
+ }
+
var setupClasses = [structuralClassName, addRemoveClassName].join(' ').trim();
var fullClassName = classes + ' ' + setupClasses;
var activeClasses = pendClasses(setupClasses, '-active');
@@ -904,10 +913,10 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
flags.applyTransitionDuration = hasToStyles && (
(flags.hasTransitions && !flags.hasTransitionAll)
|| (flags.hasAnimations && !flags.hasTransitions));
- flags.applyAnimationDuration = options.duration && flags.hasAnimations;
- flags.applyTransitionDelay = truthyTimingValue(options.delay) && (flags.applyTransitionDuration || flags.hasTransitions);
- flags.applyAnimationDelay = truthyTimingValue(options.delay) && flags.hasAnimations;
- flags.recalculateTimingStyles = addRemoveClassName.length > 0;
+ flags.applyAnimationDuration = options.duration && flags.hasAnimations;
+ flags.applyTransitionDelay = truthyTimingValue(options.delay) && (flags.applyTransitionDuration || flags.hasTransitions);
+ flags.applyAnimationDelay = truthyTimingValue(options.delay) && flags.hasAnimations;
+ flags.recalculateTimingStyles = addRemoveClassName.length > 0;
if (flags.applyTransitionDuration || flags.applyAnimationDuration) {
maxDuration = options.duration ? parseFloat(options.duration) : maxDuration;
@@ -926,42 +935,6 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
}
}
- flags.transitionClassBlock = timings.transitionProperty === 'none' &&
- timings.transitionDuration === 0;
-
- // there may be a situation where a structural animation is combined together
- // with CSS classes that need to resolve before the animation is computed.
- // However this means that there is no explicit CSS code to block the animation
- // from happening (by setting 0s none in the class name). If this is the case
- // we need to apply the classes before the first rAF so we know to continue if
- // there actually is a detected transition or keyframe animation
- var applyClassesEarly = maxDuration === 0
- && isStructural
- && addRemoveClassName.length > 0
- && !flags.transitionClassBlock;
-
- // this is an early check to avoid having to do another call to getComputedStyle
- // call which is expensive. GCS calls are cached to speed things up.
- if (!applyClassesEarly && maxDuration === 0 && !flags.recalculateTimingStyles) {
- close();
- return false;
- }
-
- if (applyClassesEarly) {
- applyAnimationClasses(element, options);
-
- // no need to calculate this anymore
- flags.recalculateTimingStyles = false;
-
- fullClassName = node.className + ' ' + setupClasses;
- cacheKey = gcsHashFn(node, fullClassName);
-
- timings = computeTimings(node, fullClassName, cacheKey);
- relativeDelay = timings.maxDelay;
- maxDelay = Math.max(relativeDelay, 0);
- maxDuration = timings.maxDuration;
- }
-
if (maxDuration === 0 && !flags.recalculateTimingStyles) {
close();
return false;
@@ -983,9 +956,8 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
stagger.animationDuration === 0;
}
- if (flags.blockTransition) {
- applyAnimationFromStyles(element, options);
- } else {
+ applyAnimationFromStyles(element, options);
+ if (!flags.blockTransition) {
blockTransitions(node, false);
}
@@ -1300,27 +1272,39 @@ var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationPro
rootBodyElement.append(clone);
- var animatorOut = prepareOutAnimation();
+ var animatorIn, animatorOut = prepareOutAnimation();
+
+ // the user may not end up using the `out` animation and
+ // only making use of the `in` animation or vice-versa.
+ // In either case we should allow this and not assume the
+ // animation is over unless both animations are not used.
if (!animatorOut) {
- return end();
+ animatorIn = prepareInAnimation();
+ if (!animatorIn) {
+ return end();
+ }
}
+ var startingAnimator = animatorOut || animatorIn;
+
return {
start: function() {
var runner;
- var currentAnimation = animatorOut.start();
+ var currentAnimation = startingAnimator.start();
currentAnimation.done(function() {
currentAnimation = null;
- var animatorIn = prepareInAnimation();
- if (animatorIn) {
- currentAnimation = animatorIn.start();
- currentAnimation.done(function() {
- currentAnimation = null;
- end();
- runner.complete();
- });
- return currentAnimation;
+ if (!animatorIn) {
+ animatorIn = prepareInAnimation();
+ if (animatorIn) {
+ currentAnimation = animatorIn.start();
+ currentAnimation.done(function() {
+ currentAnimation = null;
+ end();
+ runner.complete();
+ });
+ return currentAnimation;
+ }
}
// in the event that there is no `in` animation
end();
@@ -1446,8 +1430,13 @@ var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationPro
function prepareRegularAnimation(animationDetails) {
var element = animationDetails.element;
var options = animationDetails.options || {};
+
options.structural = animationDetails.structural;
+ // structural animations ensure that the CSS classes are always applied
+ // before the detection starts.
+ options.applyClassesEarly = options.structural;
+
// we special case the leave animation since we want to ensure that
// the element is removed as soon as the animation is over. Otherwise
// a flicker might appear or the element may not be removed at all
@@ -1771,6 +1760,7 @@ var $$AnimateJsDriverProvider = ['$$animationProvider', function($$animationProv
}];
var NG_ANIMATE_ATTR_NAME = 'data-ng-animate';
+var NG_ANIMATE_PIN_DATA = '$ngAnimatePin';
var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
var PRE_DIGEST_STATE = 1;
var RUNNING_STATE = 2;
@@ -1937,6 +1927,12 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
}
},
+ pin: function(element, parentElement) {
+ assertArg(isElement(element), 'element', 'not an element');
+ assertArg(isElement(parentElement), 'parentElement', 'not an element');
+ element.data(NG_ANIMATE_PIN_DATA, parentElement);
+ },
+
push: function(element, event, options, domOperation) {
options = options || {};
options.domOperation = domOperation;
@@ -2020,7 +2016,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
var className = [node.className, options.addClass, options.removeClass].join(' ');
if (!isAnimatableClassName(className)) {
- runner.end();
+ close();
return runner;
}
@@ -2151,6 +2147,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
// it, otherwise if it's the same then the end result will be the same too
if (animationCancelled || (isStructural && animationDetails.event !== event)) {
options.domOperation();
+ runner.end();
}
return;
@@ -2245,7 +2242,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
// animations to properly function (otherwise any CSS selectors may not work)
function examineParentAnimation(node, animationDetails) {
// enter/leave/move always have priority
- if (animationDetails.structural) return;
+ if (animationDetails.structural || !hasAnimationClasses(animationDetails.options)) return;
if (animationDetails.state === RUNNING_STATE) {
animationDetails.runner.end();
@@ -2260,7 +2257,18 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
var parentAnimationDetected = false;
var animateChildren;
+ var parentHost = element.data(NG_ANIMATE_PIN_DATA);
+ if (parentHost) {
+ parent = parentHost;
+ }
+
while (parent && parent.length) {
+ if (!rootElementDetected) {
+ // angular doesn't want to attempt to animate elements outside of the application
+ // therefore we need to ensure that the rootElement is an ancestor of the current element
+ rootElementDetected = isMatchingElement(parent, $rootElement);
+ }
+
var parentNode = parent[0];
if (parentNode.nodeType !== ELEMENT_NODE) {
// no point in inspecting the #document element
@@ -2289,6 +2297,12 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
// angular doesn't want to attempt to animate elements outside of the application
// therefore we need to ensure that the rootElement is an ancestor of the current element
rootElementDetected = isMatchingElement(parent, $rootElement);
+ if (!rootElementDetected) {
+ parentHost = parent.data(NG_ANIMATE_PIN_DATA);
+ if (parentHost) {
+ parent = parentHost;
+ }
+ }
}
if (!bodyElementDetected) {
@@ -3149,6 +3163,207 @@ var $$AnimationProvider = ['$animateProvider', function($animateProvider) {
*
* To learn more about what's possible be sure to visit the {@link ngAnimate.$animateCss $animateCss service}.
*
+ * ## Animation Anchoring (via `ng-animate-ref`)
+ *
+ * ngAnimate in AngularJS 1.4 comes packed with the ability to cross-animate elements between
+ * structural areas of an application (like views) by pairing up elements using an attribute
+ * called `ng-animate-ref`.
+ *
+ * Let's say for example we have two views that are managed by `ng-view` and we want to show
+ * that there is a relationship between two components situated in different views. By using the
+ * `ng-animate-ref` attribute we can identify that the two components are paired together and we
+ * can then attach an animation, which is triggered when the view changes.
+ *
+ * ```html
+ * <!-- index.html -->
+ * <div ng-view class="view-animation">
+ * </div>
+ *
+ * <!-- home.html -->
+ * <a href="#/banner-page">