mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 02:45:25 +00:00
(js/css) Update generated files
This commit is contained in:
+65
-52
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license AngularJS v1.5.8
|
||||
* @license AngularJS v1.5.9
|
||||
* (c) 2010-2016 Google, Inc. http://angularjs.org
|
||||
* License: MIT
|
||||
*/
|
||||
@@ -29,7 +29,7 @@ var CSS_PREFIX = '', TRANSITION_PROP, TRANSITIONEND_EVENT, ANIMATION_PROP, ANIMA
|
||||
// Also, the only modern browser that uses vendor prefixes for transitions/keyframes is webkit
|
||||
// therefore there is no reason to test anymore for other vendor prefixes:
|
||||
// http://caniuse.com/#search=transition
|
||||
if ((window.ontransitionend === void 0) && (window.onwebkittransitionend !== void 0)) {
|
||||
if ((window.ontransitionend === undefined) && (window.onwebkittransitionend !== undefined)) {
|
||||
CSS_PREFIX = '-webkit-';
|
||||
TRANSITION_PROP = 'WebkitTransition';
|
||||
TRANSITIONEND_EVENT = 'webkitTransitionEnd transitionend';
|
||||
@@ -38,7 +38,7 @@ if ((window.ontransitionend === void 0) && (window.onwebkittransitionend !== voi
|
||||
TRANSITIONEND_EVENT = 'transitionend';
|
||||
}
|
||||
|
||||
if ((window.onanimationend === void 0) && (window.onwebkitanimationend !== void 0)) {
|
||||
if ((window.onanimationend === undefined) && (window.onwebkitanimationend !== undefined)) {
|
||||
CSS_PREFIX = '-webkit-';
|
||||
ANIMATION_PROP = 'WebkitAnimation';
|
||||
ANIMATIONEND_EVENT = 'webkitAnimationEnd animationend';
|
||||
@@ -63,7 +63,7 @@ var TRANSITION_DURATION_PROP = TRANSITION_PROP + DURATION_KEY;
|
||||
var ngMinErr = angular.$$minErr('ng');
|
||||
function assertArg(arg, name, reason) {
|
||||
if (!arg) {
|
||||
throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required"));
|
||||
throw ngMinErr('areq', 'Argument \'{0}\' is {1}', (name || '?'), (reason || 'required'));
|
||||
}
|
||||
return arg;
|
||||
}
|
||||
@@ -139,7 +139,7 @@ function extractElementNode(element) {
|
||||
if (!element[0]) return element;
|
||||
for (var i = 0; i < element.length; i++) {
|
||||
var elm = element[i];
|
||||
if (elm.nodeType == ELEMENT_NODE) {
|
||||
if (elm.nodeType === ELEMENT_NODE) {
|
||||
return elm;
|
||||
}
|
||||
}
|
||||
@@ -432,7 +432,7 @@ var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) {
|
||||
* @example
|
||||
* <example module="ngAnimateChildren" name="ngAnimateChildren" deps="angular-animate.js" animations="true">
|
||||
<file name="index.html">
|
||||
<div ng-controller="mainController as main">
|
||||
<div ng-controller="MainController as main">
|
||||
<label>Show container? <input type="checkbox" ng-model="main.enterElement" /></label>
|
||||
<label>Animate children? <input type="checkbox" ng-model="main.animateChildren" /></label>
|
||||
<hr>
|
||||
@@ -482,7 +482,7 @@ var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) {
|
||||
</file>
|
||||
<file name="script.js">
|
||||
angular.module('ngAnimateChildren', ['ngAnimate'])
|
||||
.controller('mainController', function() {
|
||||
.controller('MainController', function MainController() {
|
||||
this.animateChildren = false;
|
||||
this.enterElement = false;
|
||||
});
|
||||
@@ -510,6 +510,8 @@ var $$AnimateChildrenDirective = ['$interpolate', function($interpolate) {
|
||||
};
|
||||
}];
|
||||
|
||||
/* exported $AnimateCssProvider */
|
||||
|
||||
var ANIMATE_TIMER_KEY = '$$animateCss';
|
||||
|
||||
/**
|
||||
@@ -727,7 +729,6 @@ var ANIMATE_TIMER_KEY = '$$animateCss';
|
||||
* * `end` - This method will cancel the animation and remove all applied CSS classes and styles.
|
||||
*/
|
||||
var ONE_SECOND = 1000;
|
||||
var BASE_TEN = 10;
|
||||
|
||||
var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3;
|
||||
var CLOSING_TIME_BUFFER = 1.5;
|
||||
@@ -789,7 +790,7 @@ function parseMaxTime(str) {
|
||||
forEach(values, function(value) {
|
||||
// it's always safe to consider only second values and omit `ms` values since
|
||||
// getComputedStyle will always handle the conversion for us
|
||||
if (value.charAt(value.length - 1) == 's') {
|
||||
if (value.charAt(value.length - 1) === 's') {
|
||||
value = value.substring(0, value.length - 1);
|
||||
}
|
||||
value = parseFloat(value) || 0;
|
||||
@@ -857,7 +858,7 @@ function registerRestorableStyles(backup, node, properties) {
|
||||
});
|
||||
}
|
||||
|
||||
var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
var $AnimateCssProvider = ['$animateProvider', /** @this */ function($animateProvider) {
|
||||
var gcsLookup = createLocalCacheLookup();
|
||||
var gcsStaggerLookup = createLocalCacheLookup();
|
||||
|
||||
@@ -870,7 +871,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
|
||||
var parentCounter = 0;
|
||||
function gcsHashFn(node, extraClasses) {
|
||||
var KEY = "$$ngAnimateParentKey";
|
||||
var KEY = '$$ngAnimateParentKey';
|
||||
var parentNode = node.parentNode;
|
||||
var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter);
|
||||
return parentID + '-' + node.getAttribute('class') + '-' + extraClasses;
|
||||
@@ -921,7 +922,6 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
return stagger || {};
|
||||
}
|
||||
|
||||
var cancelLastRAFRequest;
|
||||
var rafWaitQueue = [];
|
||||
function waitUntilQuiet(callback) {
|
||||
rafWaitQueue.push(callback);
|
||||
@@ -1110,7 +1110,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
var flags = {};
|
||||
flags.hasTransitions = timings.transitionDuration > 0;
|
||||
flags.hasAnimations = timings.animationDuration > 0;
|
||||
flags.hasTransitionAll = flags.hasTransitions && timings.transitionProperty == 'all';
|
||||
flags.hasTransitionAll = flags.hasTransitions && timings.transitionProperty === 'all';
|
||||
flags.applyTransitionDuration = hasToStyles && (
|
||||
(flags.hasTransitions && !flags.hasTransitionAll)
|
||||
|| (flags.hasAnimations && !flags.hasTransitions));
|
||||
@@ -1142,7 +1142,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
|
||||
if (options.delay != null) {
|
||||
var delayStyle;
|
||||
if (typeof options.delay !== "boolean") {
|
||||
if (typeof options.delay !== 'boolean') {
|
||||
delayStyle = parseFloat(options.delay);
|
||||
// number in options.delay means we have to recalculate the delay for the closing timeout
|
||||
maxDelay = Math.max(delayStyle, 0);
|
||||
@@ -1220,7 +1220,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
close(true);
|
||||
}
|
||||
|
||||
function close(rejected) { // jshint ignore:line
|
||||
function close(rejected) {
|
||||
// if the promise has been called already then we shouldn't close
|
||||
// the animation again
|
||||
if (animationClosed || (animationCompleted && animationPaused)) return;
|
||||
@@ -1247,8 +1247,11 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
|
||||
if (Object.keys(restoreStyles).length) {
|
||||
forEach(restoreStyles, function(value, prop) {
|
||||
value ? node.style.setProperty(prop, value)
|
||||
: node.style.removeProperty(prop);
|
||||
if (value) {
|
||||
node.style.setProperty(prop, value);
|
||||
} else {
|
||||
node.style.removeProperty(prop);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1351,9 +1354,11 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
animationPaused = !playAnimation;
|
||||
if (timings.animationDuration) {
|
||||
var value = blockKeyframeAnimations(node, animationPaused);
|
||||
animationPaused
|
||||
? temporaryStyles.push(value)
|
||||
: removeFromArray(temporaryStyles, value);
|
||||
if (animationPaused) {
|
||||
temporaryStyles.push(value);
|
||||
} else {
|
||||
removeFromArray(temporaryStyles, value);
|
||||
}
|
||||
}
|
||||
} else if (animationPaused && playAnimation) {
|
||||
animationPaused = false;
|
||||
@@ -1420,7 +1425,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
}
|
||||
|
||||
if (flags.applyAnimationDelay) {
|
||||
relativeDelay = typeof options.delay !== "boolean" && truthyTimingValue(options.delay)
|
||||
relativeDelay = typeof options.delay !== 'boolean' && truthyTimingValue(options.delay)
|
||||
? parseFloat(options.delay)
|
||||
: relativeDelay;
|
||||
|
||||
@@ -1512,7 +1517,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
|
||||
}];
|
||||
}];
|
||||
|
||||
var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationProvider) {
|
||||
var $$AnimateCssDriverProvider = ['$$animationProvider', /** @this */ function($$animationProvider) {
|
||||
$$animationProvider.drivers.push('$$animateCssDriver');
|
||||
|
||||
var NG_ANIMATE_SHIM_CLASS_NAME = 'ng-animate-shim';
|
||||
@@ -1541,8 +1546,6 @@ var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationPro
|
||||
isDocumentFragment(rootNode) || bodyNode.contains(rootNode) ? rootNode : bodyNode
|
||||
);
|
||||
|
||||
var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
|
||||
|
||||
return function initDriverFn(animationDetails) {
|
||||
return animationDetails.from && animationDetails.to
|
||||
? prepareFromToAnchorAnimation(animationDetails.from,
|
||||
@@ -1784,7 +1787,7 @@ var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationPro
|
||||
// TODO(matsko): add documentation
|
||||
// by the time...
|
||||
|
||||
var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) {
|
||||
var $$AnimateJsProvider = ['$animateProvider', /** @this */ function($animateProvider) {
|
||||
this.$get = ['$injector', '$$AnimateRunner', '$$jqLite',
|
||||
function($injector, $$AnimateRunner, $$jqLite) {
|
||||
|
||||
@@ -1823,7 +1826,7 @@ var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) {
|
||||
var before, after;
|
||||
if (animations.length) {
|
||||
var afterFn, beforeFn;
|
||||
if (event == 'leave') {
|
||||
if (event === 'leave') {
|
||||
beforeFn = 'leave';
|
||||
afterFn = 'afterLeave'; // TODO(matsko): get rid of this
|
||||
} else {
|
||||
@@ -2008,7 +2011,7 @@ var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) {
|
||||
function packageAnimations(element, event, options, animations, fnName) {
|
||||
var operations = groupEventedAnimations(element, event, options, animations, fnName);
|
||||
if (operations.length === 0) {
|
||||
var a,b;
|
||||
var a, b;
|
||||
if (fnName === 'beforeSetClass') {
|
||||
a = groupEventedAnimations(element, 'removeClass', options, animations, 'beforeRemoveClass');
|
||||
b = groupEventedAnimations(element, 'addClass', options, animations, 'beforeAddClass');
|
||||
@@ -2036,11 +2039,19 @@ var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) {
|
||||
});
|
||||
}
|
||||
|
||||
runners.length ? $$AnimateRunner.all(runners, callback) : callback();
|
||||
if (runners.length) {
|
||||
$$AnimateRunner.all(runners, callback);
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
|
||||
return function endFn(reject) {
|
||||
forEach(runners, function(runner) {
|
||||
reject ? runner.cancel() : runner.end();
|
||||
if (reject) {
|
||||
runner.cancel();
|
||||
} else {
|
||||
runner.end();
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
||||
@@ -2050,7 +2061,7 @@ var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) {
|
||||
function lookupAnimations(classes) {
|
||||
classes = isArray(classes) ? classes : classes.split(' ');
|
||||
var matches = [], flagMap = {};
|
||||
for (var i=0; i < classes.length; i++) {
|
||||
for (var i = 0; i < classes.length; i++) {
|
||||
var klass = classes[i],
|
||||
animationFactory = $animateProvider.$$registeredAnimations[klass];
|
||||
if (animationFactory && !flagMap[klass]) {
|
||||
@@ -2063,7 +2074,7 @@ var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) {
|
||||
}];
|
||||
}];
|
||||
|
||||
var $$AnimateJsDriverProvider = ['$$animationProvider', function($$animationProvider) {
|
||||
var $$AnimateJsDriverProvider = ['$$animationProvider', /** @this */ function($$animationProvider) {
|
||||
$$animationProvider.drivers.push('$$animateJsDriver');
|
||||
this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
|
||||
return function initDriverFn(animationDetails) {
|
||||
@@ -2125,7 +2136,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 $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animateProvider) {
|
||||
var PRE_DIGEST_STATE = 1;
|
||||
var RUNNING_STATE = 2;
|
||||
var ONE_SPACE = ' ';
|
||||
@@ -2185,7 +2196,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
|
||||
rules.skip.push(function(element, newAnimation, currentAnimation) {
|
||||
// why should we trigger a new structural animation if the element will
|
||||
// be removed from the DOM anyway?
|
||||
return currentAnimation.event == 'leave' && newAnimation.structural;
|
||||
return currentAnimation.event === 'leave' && newAnimation.structural;
|
||||
});
|
||||
|
||||
rules.skip.push(function(element, newAnimation, currentAnimation) {
|
||||
@@ -2297,10 +2308,9 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
|
||||
}
|
||||
|
||||
// IE9-11 has no method "contains" in SVG element and in Node.prototype. Bug #10259.
|
||||
var contains = window.Node.prototype.contains || function(arg) {
|
||||
// jshint bitwise: false
|
||||
var contains = window.Node.prototype.contains || /** @this */ function(arg) {
|
||||
// eslint-disable-next-line no-bitwise
|
||||
return this === arg || !!(this.compareDocumentPosition(arg) & 16);
|
||||
// jshint bitwise: true
|
||||
};
|
||||
|
||||
function findCallbacks(parent, element, event) {
|
||||
@@ -2502,7 +2512,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
|
||||
|
||||
// there is no point in traversing the same collection of parent ancestors if a followup
|
||||
// animation will be run on the same element that already did all that checking work
|
||||
if (!skipAnimations && (!hasExistingAnimation || existingAnimation.state != PRE_DIGEST_STATE)) {
|
||||
if (!skipAnimations && (!hasExistingAnimation || existingAnimation.state !== PRE_DIGEST_STATE)) {
|
||||
skipAnimations = !areAnimationsAllowed(element, parent, event);
|
||||
}
|
||||
|
||||
@@ -2698,7 +2708,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
|
||||
runner.progress(event, phase, data);
|
||||
}
|
||||
|
||||
function close(reject) { // jshint ignore:line
|
||||
function close(reject) {
|
||||
clearGeneratedClasses(element, options);
|
||||
applyAnimationClasses(element, options);
|
||||
applyAnimationStyles(element, options);
|
||||
@@ -2711,7 +2721,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
|
||||
var node = getDomNode(element);
|
||||
var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']');
|
||||
forEach(children, function(child) {
|
||||
var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME));
|
||||
var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME), 10);
|
||||
var animationDetails = activeAnimationsLookup.get(child);
|
||||
if (animationDetails) {
|
||||
switch (state) {
|
||||
@@ -2844,7 +2854,9 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
|
||||
}];
|
||||
}];
|
||||
|
||||
var $$AnimationProvider = ['$animateProvider', function($animateProvider) {
|
||||
/* exported $$AnimationProvider */
|
||||
|
||||
var $$AnimationProvider = ['$animateProvider', /** @this */ function($animateProvider) {
|
||||
var NG_ANIMATE_REF_ATTR = 'ng-animate-ref';
|
||||
|
||||
var drivers = this.drivers = [];
|
||||
@@ -3232,7 +3244,7 @@ var $$AnimationProvider = ['$animateProvider', function($animateProvider) {
|
||||
}
|
||||
}
|
||||
|
||||
function close(rejected) { // jshint ignore:line
|
||||
function close(rejected) {
|
||||
element.off('$destroy', handleDestroyedElement);
|
||||
removeRunner(element);
|
||||
|
||||
@@ -3918,22 +3930,23 @@ var ngAnimateSwapDirective = ['$animate', '$rootScope', function($animate, $root
|
||||
}])
|
||||
.run(['$rootScope', function($rootScope) {
|
||||
$rootScope.records = [
|
||||
{ id:1, title: "Miss Beulah Roob" },
|
||||
{ id:2, title: "Trent Morissette" },
|
||||
{ id:3, title: "Miss Ava Pouros" },
|
||||
{ id:4, title: "Rod Pouros" },
|
||||
{ id:5, title: "Abdul Rice" },
|
||||
{ id:6, title: "Laurie Rutherford Sr." },
|
||||
{ id:7, title: "Nakia McLaughlin" },
|
||||
{ id:8, title: "Jordon Blanda DVM" },
|
||||
{ id:9, title: "Rhoda Hand" },
|
||||
{ id:10, title: "Alexandrea Sauer" }
|
||||
{ id: 1, title: 'Miss Beulah Roob' },
|
||||
{ id: 2, title: 'Trent Morissette' },
|
||||
{ id: 3, title: 'Miss Ava Pouros' },
|
||||
{ id: 4, title: 'Rod Pouros' },
|
||||
{ id: 5, title: 'Abdul Rice' },
|
||||
{ id: 6, title: 'Laurie Rutherford Sr.' },
|
||||
{ id: 7, title: 'Nakia McLaughlin' },
|
||||
{ id: 8, title: 'Jordon Blanda DVM' },
|
||||
{ id: 9, title: 'Rhoda Hand' },
|
||||
{ id: 10, title: 'Alexandrea Sauer' }
|
||||
];
|
||||
}])
|
||||
.controller('HomeController', [function() {
|
||||
//empty
|
||||
}])
|
||||
.controller('ProfileController', ['$rootScope', '$routeParams', function($rootScope, $routeParams) {
|
||||
.controller('ProfileController', ['$rootScope', '$routeParams',
|
||||
function ProfileController($rootScope, $routeParams) {
|
||||
var index = parseInt($routeParams.id, 10);
|
||||
var record = $rootScope.records[index - 1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user