From 663394f188c4460ad889b70a82557db0f9754032 Mon Sep 17 00:00:00 2001 From: seshukm Date: Mon, 6 Mar 2017 10:23:16 +0530 Subject: thirdparty files updated for the vnf market place IssueId : CLIENT-4 Change-Id: Id58c2d11985bda35dc482b122dc404aea2e477da Signed-off-by: seshukm --- .../modules/js/fabActions/fabActions.js | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 vnfmarket/common/thirdparty/angular-material/modules/js/fabActions/fabActions.js (limited to 'vnfmarket/common/thirdparty/angular-material/modules/js/fabActions/fabActions.js') diff --git a/vnfmarket/common/thirdparty/angular-material/modules/js/fabActions/fabActions.js b/vnfmarket/common/thirdparty/angular-material/modules/js/fabActions/fabActions.js new file mode 100644 index 00000000..e7e4872d --- /dev/null +++ b/vnfmarket/common/thirdparty/angular-material/modules/js/fabActions/fabActions.js @@ -0,0 +1,61 @@ +/*! + * Angular Material Design + * https://github.com/angular/material + * @license MIT + * v1.1.3 + */ +(function( window, angular, undefined ){ +"use strict"; + +(function() { + 'use strict'; + + /** + * @ngdoc module + * @name material.components.fabActions + */ + MdFabActionsDirective['$inject'] = ["$mdUtil"]; + angular + .module('material.components.fabActions', ['material.core']) + .directive('mdFabActions', MdFabActionsDirective); + + /** + * @ngdoc directive + * @name mdFabActions + * @module material.components.fabActions + * + * @restrict E + * + * @description + * The `` directive is used inside of a `` or + * `` directive to mark an element (or elements) as the actions and setup the + * proper event listeners. + * + * @usage + * See the `` or `` directives for example usage. + */ + function MdFabActionsDirective($mdUtil) { + return { + restrict: 'E', + + require: ['^?mdFabSpeedDial', '^?mdFabToolbar'], + + compile: function(element, attributes) { + var children = element.children(); + + var hasNgRepeat = $mdUtil.prefixer().hasAttribute(children, 'ng-repeat'); + + // Support both ng-repeat and static content + if (hasNgRepeat) { + children.addClass('md-fab-action-item'); + } else { + // Wrap every child in a new div and add a class that we can scale/fling independently + children.wrap('
'); + } + } + }; + } + +})(); + +})(window, window.angular); \ No newline at end of file -- cgit 1.2.3-korg