X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-FE%2Fclient%2Fbower_components%2Fangular-material%2Fmodules%2Fjs%2Fbutton%2Fbutton.js;fp=ecomp-portal-FE%2Fclient%2Fbower_components%2Fangular-material%2Fmodules%2Fjs%2Fbutton%2Fbutton.js;h=0000000000000000000000000000000000000000;hb=b54df0ddd0c6a0372327c5aa3668e5a6458fcd64;hp=eff332664e415c0a8b245bdf8bc5d5074822cbe2;hpb=39d1e62c84041831bfc52cca73b5ed5efaf57d27;p=portal.git diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.js deleted file mode 100644 index eff33266..00000000 --- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.js +++ /dev/null @@ -1,136 +0,0 @@ -/*! - * Angular Material Design - * https://github.com/angular/material - * @license MIT - * v0.9.8 - */ -(function( window, angular, undefined ){ -"use strict"; - -/** - * @ngdoc module - * @name material.components.button - * @description - * - * Button - */ -angular - .module('material.components.button', [ 'material.core' ]) - .directive('mdButton', MdButtonDirective); - -/** - * @ngdoc directive - * @name mdButton - * @module material.components.button - * - * @restrict E - * - * @description - * `` is a button directive with optional ink ripples (default enabled). - * - * If you supply a `href` or `ng-href` attribute, it will become an `` element. Otherwise, it will - * become a `'; - } - - function postLink(scope, element, attr) { - var node = element[0]; - $mdTheming(element); - $mdButtonInkRipple.attach(scope, element); - - var elementHasText = node.textContent.trim(); - if (!elementHasText) { - $mdAria.expect(element, 'aria-label'); - } - - // For anchor elements, we have to set tabindex manually when the - // element is disabled - if (isAnchor(attr) && angular.isDefined(attr.ngDisabled) ) { - scope.$watch(attr.ngDisabled, function(isDisabled) { - element.attr('tabindex', isDisabled ? -1 : 0); - }); - } - - // disabling click event when disabled is true - element.on('click', function(e){ - if (attr.disabled === true) { - e.preventDefault(); - e.stopImmediatePropagation(); - } - }); - - // restrict focus styles to the keyboard - scope.mouseActive = false; - element.on('mousedown', function() { - scope.mouseActive = true; - $timeout(function(){ - scope.mouseActive = false; - }, 100); - }) - .on('focus', function() { - if(scope.mouseActive === false) { element.addClass('md-focused'); } - }) - .on('blur', function() { element.removeClass('md-focused'); }); - } - -} -MdButtonDirective.$inject = ["$mdButtonInkRipple", "$mdTheming", "$mdAria", "$timeout"]; - -})(window, window.angular); \ No newline at end of file