aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.js')
-rw-r--r--vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.js94
1 files changed, 0 insertions, 94 deletions
diff --git a/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.js b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.js
deleted file mode 100644
index 486cf4a1..00000000
--- a/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.js
+++ /dev/null
@@ -1,94 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v1.1.3
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/*
- * @ngdoc module
- * @name material.components.backdrop
- * @description Backdrop
- */
-
-/**
- * @ngdoc directive
- * @name mdBackdrop
- * @module material.components.backdrop
- *
- * @restrict E
- *
- * @description
- * `<md-backdrop>` is a backdrop element used by other components, such as dialog and bottom sheet.
- * Apply class `opaque` to make the backdrop use the theme backdrop color.
- *
- */
-
-angular
- .module('material.components.backdrop', ['material.core'])
- .directive('mdBackdrop', ["$mdTheming", "$mdUtil", "$animate", "$rootElement", "$window", "$log", "$$rAF", "$document", function BackdropDirective($mdTheming, $mdUtil, $animate, $rootElement, $window, $log, $$rAF, $document) {
- var ERROR_CSS_POSITION = '<md-backdrop> may not work properly in a scrolled, static-positioned parent container.';
-
- return {
- restrict: 'E',
- link: postLink
- };
-
- function postLink(scope, element, attrs) {
- // backdrop may be outside the $rootElement, tell ngAnimate to animate regardless
- if ($animate.pin) $animate.pin(element, $rootElement);
-
- var bodyStyles;
-
- $$rAF(function() {
- // If body scrolling has been disabled using mdUtil.disableBodyScroll(),
- // adjust the 'backdrop' height to account for the fixed 'body' top offset.
- // Note that this can be pretty expensive and is better done inside the $$rAF.
- bodyStyles = $window.getComputedStyle($document[0].body);
-
- if (bodyStyles.position === 'fixed') {
- var resizeHandler = $mdUtil.debounce(function(){
- bodyStyles = $window.getComputedStyle($document[0].body);
- resize();
- }, 60, null, false);
-
- resize();
- angular.element($window).on('resize', resizeHandler);
-
- scope.$on('$destroy', function() {
- angular.element($window).off('resize', resizeHandler);
- });
- }
-
- // Often $animate.enter() is used to append the backDrop element
- // so let's wait until $animate is done...
- var parent = element.parent();
-
- if (parent.length) {
- if (parent[0].nodeName === 'BODY') {
- element.css('position', 'fixed');
- }
-
- var styles = $window.getComputedStyle(parent[0]);
-
- if (styles.position === 'static') {
- // backdrop uses position:absolute and will not work properly with parent position:static (default)
- $log.warn(ERROR_CSS_POSITION);
- }
-
- // Only inherit the parent if the backdrop has a parent.
- $mdTheming.inherit(element, parent);
- }
- });
-
- function resize() {
- var viewportHeight = parseInt(bodyStyles.height, 10) + Math.abs(parseInt(bodyStyles.top, 10));
- element.css('height', viewportHeight + 'px');
- }
- }
-
- }]);
-
-})(window, window.angular); \ No newline at end of file