diff options
Diffstat (limited to 'vnfmarket/common/thirdparty/angular-material/modules/js/backdrop')
7 files changed, 172 insertions, 0 deletions
diff --git a/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop-default-theme.css b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop-default-theme.css new file mode 100644 index 00000000..0e560222 --- /dev/null +++ b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop-default-theme.css @@ -0,0 +1,10 @@ +/*! + * Angular Material Design + * https://github.com/angular/material + * @license MIT + * v1.1.3 + */ +md-backdrop { + background-color: '{{background-900-0.0}}'; } + md-backdrop.md-opaque.md-THEME_NAME-theme { + background-color: '{{background-900-1.0}}'; } diff --git a/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop-default-theme.min.css b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop-default-theme.min.css new file mode 100644 index 00000000..f557119b --- /dev/null +++ b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop-default-theme.min.css @@ -0,0 +1,6 @@ +/*! + * Angular Material Design + * https://github.com/angular/material + * @license MIT + * v1.1.2-master-a9ba340 + */md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}
\ No newline at end of file diff --git a/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.css b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.css new file mode 100644 index 00000000..eb32d410 --- /dev/null +++ b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.css @@ -0,0 +1,42 @@ +/*! + * Angular Material Design + * https://github.com/angular/material + * @license MIT + * v1.1.3 + */ +md-backdrop { + -webkit-transition: opacity 450ms; + transition: opacity 450ms; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 50; } + md-backdrop.md-menu-backdrop { + position: fixed !important; + z-index: 99; } + md-backdrop.md-select-backdrop { + z-index: 81; + -webkit-transition-duration: 0; + transition-duration: 0; } + md-backdrop.md-dialog-backdrop { + z-index: 79; } + md-backdrop.md-bottom-sheet-backdrop { + z-index: 69; } + md-backdrop.md-sidenav-backdrop { + z-index: 59; } + md-backdrop.md-click-catcher { + position: absolute; } + md-backdrop.md-opaque { + opacity: .48; } + md-backdrop.md-opaque.ng-enter { + opacity: 0; } + md-backdrop.md-opaque.ng-enter.md-opaque.ng-enter-active { + opacity: .48; } + md-backdrop.md-opaque.ng-leave { + opacity: .48; + -webkit-transition: opacity 400ms; + transition: opacity 400ms; } + md-backdrop.md-opaque.ng-leave.md-opaque.ng-leave-active { + opacity: 0; } diff --git a/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.js b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.js new file mode 100644 index 00000000..486cf4a1 --- /dev/null +++ b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.js @@ -0,0 +1,94 @@ +/*! + * 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 diff --git a/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.min.css b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.min.css new file mode 100644 index 00000000..d6f917f2 --- /dev/null +++ b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.min.css @@ -0,0 +1,6 @@ +/*! + * Angular Material Design + * https://github.com/angular/material + * @license MIT + * v1.1.2-master-a9ba340 + */md-backdrop{-webkit-transition:opacity .45s;transition:opacity .45s;position:absolute;top:0;bottom:0;left:0;right:0;z-index:50}md-backdrop.md-menu-backdrop{position:fixed!important;z-index:99}md-backdrop.md-select-backdrop{z-index:81;-webkit-transition-duration:0;transition-duration:0}md-backdrop.md-dialog-backdrop{z-index:79}md-backdrop.md-bottom-sheet-backdrop{z-index:69}md-backdrop.md-sidenav-backdrop{z-index:59}md-backdrop.md-click-catcher{position:absolute}md-backdrop.md-opaque{opacity:.48}md-backdrop.md-opaque.ng-enter{opacity:0}md-backdrop.md-opaque.ng-enter.md-opaque.ng-enter-active{opacity:.48}md-backdrop.md-opaque.ng-leave{opacity:.48;-webkit-transition:opacity .4s;transition:opacity .4s}md-backdrop.md-opaque.ng-leave.md-opaque.ng-leave-active{opacity:0}
\ No newline at end of file diff --git a/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.min.js b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.min.js new file mode 100644 index 00000000..3c0cb837 --- /dev/null +++ b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/backdrop.min.js @@ -0,0 +1,7 @@ +/*! + * Angular Material Design + * https://github.com/angular/material + * @license MIT + * v1.1.2-master-a9ba340 + */ +!function(e,t,n){"use strict";t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(e,n,o,i,r,a,d,c){function p(p,l,m){function u(){var e=parseInt(f.height,10)+Math.abs(parseInt(f.top,10));l.css("height",e+"px")}o.pin&&o.pin(l,i);var f;d(function(){if(f=r.getComputedStyle(c[0].body),"fixed"===f.position){var o=n.debounce(function(){f=r.getComputedStyle(c[0].body),u()},60,null,!1);u(),t.element(r).on("resize",o),p.$on("$destroy",function(){t.element(r).off("resize",o)})}var i=l.parent();if(i.length){"BODY"===i[0].nodeName&&l.css("position","fixed");var d=r.getComputedStyle(i[0]);"static"===d.position&&a.warn(s),e.inherit(l,i)}})}var s="<md-backdrop> may not work properly in a scrolled, static-positioned parent container.";return{restrict:"E",link:p}}])}(window,window.angular);
\ No newline at end of file diff --git a/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/bower.json b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/bower.json new file mode 100644 index 00000000..b662a9bc --- /dev/null +++ b/vnfmarket/common/thirdparty/angular-material/modules/js/backdrop/bower.json @@ -0,0 +1,7 @@ +{ + "name": "angular-material-backdrop", + "version": "1.1.2-master-a9ba340", + "dependencies": { + "angular-material-core": "1.1.2-master-a9ba340" + } +}
\ No newline at end of file |