mirror of
https://github.com/arnaucube/socketioMEANseed.git
synced 2026-02-07 19:56:46 +01:00
init
This commit is contained in:
7
www/bower_components/angular-material/modules/js/showHide/bower.json
vendored
Normal file
7
www/bower_components/angular-material/modules/js/showHide/bower.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "angular-material-showHide",
|
||||
"version": "1.1.2-master-a9ba340",
|
||||
"dependencies": {
|
||||
"angular-material-core": "1.1.2-master-a9ba340"
|
||||
}
|
||||
}
|
||||
59
www/bower_components/angular-material/modules/js/showHide/showHide.js
vendored
Normal file
59
www/bower_components/angular-material/modules/js/showHide/showHide.js
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
/*!
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v1.1.3
|
||||
*/
|
||||
(function( window, angular, undefined ){
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* @ngdoc module
|
||||
* @name material.components.showHide
|
||||
*/
|
||||
|
||||
// Add additional handlers to ng-show and ng-hide that notify directives
|
||||
// contained within that they should recompute their size.
|
||||
// These run in addition to Angular's built-in ng-hide and ng-show directives.
|
||||
angular.module('material.components.showHide', [
|
||||
'material.core'
|
||||
])
|
||||
.directive('ngShow', createDirective('ngShow', true))
|
||||
.directive('ngHide', createDirective('ngHide', false));
|
||||
|
||||
|
||||
function createDirective(name, targetValue) {
|
||||
return ['$mdUtil', '$window', function($mdUtil, $window) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
multiElement: true,
|
||||
link: function($scope, $element, $attr) {
|
||||
var unregister = $scope.$on('$md-resize-enable', function() {
|
||||
unregister();
|
||||
|
||||
var node = $element[0];
|
||||
var cachedTransitionStyles = node.nodeType === $window.Node.ELEMENT_NODE ?
|
||||
$window.getComputedStyle(node) : {};
|
||||
|
||||
$scope.$watch($attr[name], function(value) {
|
||||
if (!!value === targetValue) {
|
||||
$mdUtil.nextTick(function() {
|
||||
$scope.$broadcast('$md-resize');
|
||||
});
|
||||
|
||||
var opts = {
|
||||
cachedTransitionStyles: cachedTransitionStyles
|
||||
};
|
||||
|
||||
$mdUtil.dom.animator.waitTransitionEnd($element, opts).then(function() {
|
||||
$scope.$broadcast('$md-resize');
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
}];
|
||||
}
|
||||
|
||||
})(window, window.angular);
|
||||
7
www/bower_components/angular-material/modules/js/showHide/showHide.min.js
vendored
Normal file
7
www/bower_components/angular-material/modules/js/showHide/showHide.min.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v1.1.2-master-a9ba340
|
||||
*/
|
||||
!function(n,e,i){"use strict";function t(n,e){return["$mdUtil","$window",function(i,t){return{restrict:"A",multiElement:!0,link:function(o,r,a){var d=o.$on("$md-resize-enable",function(){d();var c=r[0],u=c.nodeType===t.Node.ELEMENT_NODE?t.getComputedStyle(c):{};o.$watch(a[n],function(n){if(!!n===e){i.nextTick(function(){o.$broadcast("$md-resize")});var t={cachedTransitionStyles:u};i.dom.animator.waitTransitionEnd(r,t).then(function(){o.$broadcast("$md-resize")})}})})}}}]}e.module("material.components.showHide",["material.core"]).directive("ngShow",t("ngShow",!0)).directive("ngHide",t("ngHide",!1))}(window,window.angular);
|
||||
Reference in New Issue
Block a user