Skip to content

Commit

Permalink
(js/css) Update generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
InverseBot committed Jul 4, 2017
1 parent 14b9022 commit 3927494
Show file tree
Hide file tree
Showing 15 changed files with 1,198 additions and 687 deletions.
45 changes: 22 additions & 23 deletions UI/WebServerResources/js/vendor/angular-animate.js
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.6.4
* @license AngularJS v1.6.5
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -2294,14 +2294,17 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate

var callbackRegistry = Object.create(null);

// remember that the classNameFilter is set during the provider/config
// stage therefore we can optimize here and setup a helper function
// remember that the `customFilter`/`classNameFilter` are set during the
// provider/config stage therefore we can optimize here and setup helper functions
var customFilter = $animateProvider.customFilter();
var classNameFilter = $animateProvider.classNameFilter();
var isAnimatableClassName = !classNameFilter
? function() { return true; }
: function(className) {
return classNameFilter.test(className);
};
var returnTrue = function() { return true; };

var isAnimatableByFilter = customFilter || returnTrue;
var isAnimatableClassName = !classNameFilter ? returnTrue : function(node, options) {
var className = [node.getAttribute('class'), options.addClass, options.removeClass].join(' ');
return classNameFilter.test(className);
};

var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);

Expand Down Expand Up @@ -2479,16 +2482,13 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
options.to = null;
}

// there are situations where a directive issues an animation for
// a jqLite wrapper that contains only comment nodes... If this
// happens then there is no way we can perform an animation
if (!node) {
close();
return runner;
}

var className = [node.getAttribute('class'), options.addClass, options.removeClass].join(' ');
if (!isAnimatableClassName(className)) {
// If animations are hard-disabled for the whole application there is no need to continue.
// There are also situations where a directive issues an animation for a jqLite wrapper that
// contains only comment nodes. In this case, there is no way we can perform an animation.
if (!animationsEnabled ||
!node ||
!isAnimatableByFilter(node, event, initialOptions) ||
!isAnimatableClassName(node, options)) {
close();
return runner;
}
Expand All @@ -2497,12 +2497,11 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate

var documentHidden = $$isDocumentHidden();

// this is a hard disable of all animations for the application or on
// the element itself, therefore there is no need to continue further
// past this point if not enabled
// This is a hard disable of all animations the element itself, therefore there is no need to
// continue further past this point if not enabled
// Animations are also disabled if the document is currently hidden (page is not visible
// to the user), because browsers slow down or do not flush calls to requestAnimationFrame
var skipAnimations = !animationsEnabled || documentHidden || disabledElementsLookup.get(node);
var skipAnimations = documentHidden || disabledElementsLookup.get(node);
var existingAnimation = (!skipAnimations && activeAnimationsLookup.get(node)) || {};
var hasExistingAnimation = !!existingAnimation.state;

Expand Down Expand Up @@ -4136,7 +4135,7 @@ angular.module('ngAnimate', [], function initAngularHelpers() {
isFunction = angular.isFunction;
isElement = angular.isElement;
})
.info({ angularVersion: '1.6.4' })
.info({ angularVersion: '1.6.5' })
.directive('ngAnimateSwap', ngAnimateSwapDirective)

.directive('ngAnimateChildren', $$AnimateChildrenDirective)
Expand Down
104 changes: 52 additions & 52 deletions UI/WebServerResources/js/vendor/angular-animate.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions UI/WebServerResources/js/vendor/angular-animate.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions UI/WebServerResources/js/vendor/angular-aria.js
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.6.4
* @license AngularJS v1.6.5
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -59,7 +59,7 @@
* {@link guide/accessibility Developer Guide}.
*/
var ngAriaModule = angular.module('ngAria', ['ng']).
info({ angularVersion: '1.6.4' }).
info({ angularVersion: '1.6.5' }).
provider('$aria', $AriaProvider);

/**
Expand Down
4 changes: 2 additions & 2 deletions UI/WebServerResources/js/vendor/angular-aria.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions UI/WebServerResources/js/vendor/angular-cookies.js
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.6.4
* @license AngularJS v1.6.5
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand All @@ -22,7 +22,7 @@


angular.module('ngCookies', ['ng']).
info({ angularVersion: '1.6.4' }).
info({ angularVersion: '1.6.5' }).
/**
* @ngdoc provider
* @name $cookiesProvider
Expand Down
4 changes: 2 additions & 2 deletions UI/WebServerResources/js/vendor/angular-cookies.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions UI/WebServerResources/js/vendor/angular-messages.js
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.6.4
* @license AngularJS v1.6.5
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -272,7 +272,7 @@ angular.module('ngMessages', [], function initAngularHelpers() {
isString = angular.isString;
jqLite = angular.element;
})
.info({ angularVersion: '1.6.4' })
.info({ angularVersion: '1.6.5' })

/**
* @ngdoc directive
Expand Down
4 changes: 2 additions & 2 deletions UI/WebServerResources/js/vendor/angular-messages.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 74 additions & 24 deletions UI/WebServerResources/js/vendor/angular-sanitize.js
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.6.4
* @license AngularJS v1.6.5
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -318,27 +318,78 @@ function $SanitizeProvider() {
return obj;
}

var inertBodyElement;
(function(window) {
var doc;
if (window.document && window.document.implementation) {
doc = window.document.implementation.createHTMLDocument('inert');
/**
* Create an inert document that contains the dirty HTML that needs sanitizing
* Depending upon browser support we use one of three strategies for doing this.
* Support: Safari 10.x -> XHR strategy
* Support: Firefox -> DomParser strategy
*/
var getInertBodyElement /* function(html: string): HTMLBodyElement */ = (function(window, document) {
var inertDocument;
if (document && document.implementation) {
inertDocument = document.implementation.createHTMLDocument('inert');
} else {
throw $sanitizeMinErr('noinert', 'Can\'t create an inert html document');
}
var docElement = doc.documentElement || doc.getDocumentElement();
var bodyElements = docElement.getElementsByTagName('body');
var inertBodyElement = (inertDocument.documentElement || inertDocument.getDocumentElement()).querySelector('body');

// usually there should be only one body element in the document, but IE doesn't have any, so we need to create one
if (bodyElements.length === 1) {
inertBodyElement = bodyElements[0];
// Check for the Safari 10.1 bug - which allows JS to run inside the SVG G element
inertBodyElement.innerHTML = '<svg><g onload="this.parentNode.remove()"></g></svg>';
if (!inertBodyElement.querySelector('svg')) {
return getInertBodyElement_XHR;
} else {
var html = doc.createElement('html');
inertBodyElement = doc.createElement('body');
html.appendChild(inertBodyElement);
doc.appendChild(html);
// Check for the Firefox bug - which prevents the inner img JS from being sanitized
inertBodyElement.innerHTML = '<svg><p><style><img src="</style><img src=x onerror=alert(1)//">';
if (inertBodyElement.querySelector('svg img')) {
return getInertBodyElement_DOMParser;
} else {
return getInertBodyElement_InertDocument;
}
}

function getInertBodyElement_XHR(html) {
// We add this dummy element to ensure that the rest of the content is parsed as expected
// e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the `<head>` tag.
html = '<remove></remove>' + html;
try {
html = encodeURI(html);
} catch (e) {
return undefined;
}
var xhr = new window.XMLHttpRequest();
xhr.responseType = 'document';
xhr.open('GET', 'data:text/html;charset=utf-8,' + html, false);
xhr.send(null);
var body = xhr.response.body;
body.firstChild.remove();
return body;
}

function getInertBodyElement_DOMParser(html) {
// We add this dummy element to ensure that the rest of the content is parsed as expected
// e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the `<head>` tag.
html = '<remove></remove>' + html;
try {
var body = new window.DOMParser().parseFromString(html, 'text/html').body;
body.firstChild.remove();
return body;
} catch (e) {
return undefined;
}
}

function getInertBodyElement_InertDocument(html) {
inertBodyElement.innerHTML = html;

// Support: IE 9-11 only
// strip custom-namespaced attributes on IE<=11
if (document.documentMode) {
stripCustomNsAttrs(inertBodyElement);
}

return inertBodyElement;
}
})(window);
})(window, window.document);

/**
* @example
Expand All @@ -358,7 +409,9 @@ function $SanitizeProvider() {
} else if (typeof html !== 'string') {
html = '' + html;
}
inertBodyElement.innerHTML = html;

var inertBodyElement = getInertBodyElement(html);
if (!inertBodyElement) return '';

//mXSS protection
var mXSSAttempts = 5;
Expand All @@ -368,12 +421,9 @@ function $SanitizeProvider() {
}
mXSSAttempts--;

// strip custom-namespaced attributes on IE<=11
if (window.document.documentMode) {
stripCustomNsAttrs(inertBodyElement);
}
html = inertBodyElement.innerHTML; //trigger mXSS
inertBodyElement.innerHTML = html;
// trigger mXSS if it is going to happen by reading and writing the innerHTML
html = inertBodyElement.innerHTML;
inertBodyElement = getInertBodyElement(html);
} while (html !== inertBodyElement.innerHTML);

var node = inertBodyElement.firstChild;
Expand Down Expand Up @@ -554,7 +604,7 @@ function sanitizeText(chars) {
// define ngSanitize module and register $sanitize service
angular.module('ngSanitize', [])
.provider('$sanitize', $SanitizeProvider)
.info({ angularVersion: '1.6.4' });
.info({ angularVersion: '1.6.5' });

/**
* @ngdoc filter
Expand Down

0 comments on commit 3927494

Please sign in to comment.