(js/css) Update generated files

This commit is contained in:
Francis Lachapelle
2015-12-11 15:44:55 -05:00
parent 4b5abdb5ce
commit 5dfb57a955
30 changed files with 275 additions and 17971 deletions
+92 -29
View File
@@ -2,7 +2,7 @@
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.0-rc7-master-2ab3075
* v1.0.0-rc7-master-195dbb4
*/
(function( window, angular, undefined ){
"use strict";
@@ -3017,7 +3017,7 @@ function InterimElementProvider() {
var SUFFIXES = /(-gt)?-(sm|md|lg)/g;
var WHITESPACE = /\s+/g;
var FLEX_OPTIONS = ['grow', 'initial', 'auto', 'none', 'noshrink'];
var FLEX_OPTIONS = ['grow', 'initial', 'auto', 'none', 'noshrink', 'nogrow' ];
var LAYOUT_OPTIONS = ['row', 'column'];
var ALIGNMENT_MAIN_AXIS= [ "", "start", "center", "end", "stretch", "space-around", "space-between" ];
var ALIGNMENT_CROSS_AXIS= [ "", "start", "center", "end", "stretch" ];
@@ -9453,8 +9453,13 @@ function MdDialogProvider($$interimElementProvider) {
options.hideBackdrop(options.$destroy);
// Remove the focus traps that we added earlier for keeping focus within the dialog.
topFocusTrap.parentNode.removeChild(topFocusTrap);
bottomFocusTrap.parentNode.removeChild(bottomFocusTrap);
if (topFocusTrap && topFocusTrap.parentNode) {
topFocusTrap.parentNode.removeChild(topFocusTrap);
}
if (bottomFocusTrap && bottomFocusTrap.parentNode) {
bottomFocusTrap.parentNode.removeChild(bottomFocusTrap);
}
// For navigation $destroy events, do a quick, non-animated removal,
// but for normal closes (from clicks, etc) animate the removal
@@ -9970,6 +9975,8 @@ MdDividerDirective.$inject = ["$mdTheming"];
setupDefaults();
setupListeners();
setupWatchers();
var initialAnimationAttempts = 0;
fireInitialAnimations();
function setupDefaults() {
@@ -9981,6 +9988,9 @@ MdDividerDirective.$inject = ["$mdTheming"];
// Start the keyboard interaction at the first action
resetActionIndex();
// Add an animations waiting class so we know not to run
$element.addClass('md-animations-waiting');
}
function setupListeners() {
@@ -10074,11 +10084,23 @@ MdDividerDirective.$inject = ["$mdTheming"];
});
}
// Fire the animations once in a separate digest loop to initialize them
function fireInitialAnimations() {
$mdUtil.nextTick(function() {
$animate.addClass($element, 'md-noop');
});
// If the element is actually visible on the screen
if ($element[0].scrollHeight > 0) {
// Fire our animation
$animate.addClass($element, 'md-animations-ready').then(function() {
// Remove the waiting class
$element.removeClass('md-animations-waiting');
});
}
// Otherwise, try for up to 1 second before giving up
else if (initialAnimationAttempts < 10) {
$timeout(fireInitialAnimations, 100);
// Increment our counter
initialAnimationAttempts = initialAnimationAttempts + 1;
}
}
function enableKeyboard() {
@@ -10340,6 +10362,11 @@ MdDividerDirective.$inject = ["$mdTheming"];
function delayDone(done) { $timeout(done, cssAnimationDuration, false); }
function runAnimation(element) {
// Don't run if we are still waiting and we are not ready
if (element.hasClass('md-animations-waiting') && !element.hasClass('md-animations-ready')) {
return;
}
var el = element[0];
var ctrl = element.controller('mdFabSpeedDial');
var items = el.querySelectorAll('.md-fab-action-item');
@@ -10410,8 +10437,10 @@ MdDividerDirective.$inject = ["$mdTheming"];
addClass: function(element, className, done) {
if (element.hasClass('md-fling')) {
runAnimation(element);
delayDone(done);
} else {
done();
}
delayDone(done);
},
removeClass: function(element, className, done) {
runAnimation(element);
@@ -13790,7 +13819,7 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
selectContainer = angular.element(
element[0].querySelector('.md-select-menu-container')
);
selectScope = selectContainer.scope();
selectScope = scope;
if (element.attr('md-container-class')) {
var value = selectContainer[0].getAttribute('class') + ' ' + element.attr('md-container-class');
selectContainer[0].setAttribute('class', value);
@@ -14837,15 +14866,19 @@ function createDirective(name, targetValue) {
restrict: 'A',
multiElement: true,
link: function($scope, $element, $attr) {
$scope.$watch($attr[name], function(value) {
if (!!value === targetValue) {
$mdUtil.nextTick(function() {
$scope.$broadcast('$md-resize');
});
$mdUtil.dom.animator.waitTransitionEnd($element).then(function() {
$scope.$broadcast('$md-resize');
});
}
var unregister = $scope.$on('$md-resize-enable', function() {
unregister();
$scope.$watch($attr[name], function(value) {
if (!!value === targetValue) {
$mdUtil.nextTick(function() {
$scope.$broadcast('$md-resize');
});
$mdUtil.dom.animator.waitTransitionEnd($element).then(function() {
$scope.$broadcast('$md-resize');
});
}
});
});
}
};
@@ -16565,6 +16598,9 @@ MdToastDirective.$inject = ["$mdToast"];
* have an outer `md-toast` element.
* - `template` - `{string=}`: Same as templateUrl, except this is an actual
* template string.
* - `autoWrap` - `{boolean=}`: Whether or not to automatically wrap the template content with a
* `<div class="md-toast-content">` if one is not provided. Defaults to true. Can be disabled if you provide a
* custom toast directive.
* - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified, it will create a new child scope.
* This scope will be destroyed when the toast is removed unless `preserveScope` is set to true.
* - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
@@ -16687,7 +16723,28 @@ function MdToastProvider($$interimElementProvider) {
onRemove: onRemove,
position: 'bottom left',
themable: true,
hideDelay: 3000
hideDelay: 3000,
autoWrap: true,
transformTemplate: function(template, options) {
var shouldAddWrapper = options.autoWrap && template && !/md-toast-content/g.test(template);
if (shouldAddWrapper) {
// Root element of template will be <md-toast>. We need to wrap all of its content inside of
// of <div class="md-toast-content">. All templates provided here should be static, developer-controlled
// content (meaning we're not attempting to guard against XSS).
var parsedTemplate = angular.element(template);
var wrappedContent = '<div class="md-toast-content">' + parsedTemplate.html() + '</div>';
parsedTemplate.empty().append(wrappedContent);
// Underlying interimElement expects a template string.
return parsedTemplate[0].outerHTML;
}
return shouldAddWrapper ?
'<div class="md-toast-content">' + template + '</div>' :
template || '';
}
};
function onShow(scope, element, options) {
@@ -17384,7 +17441,8 @@ var NUM_EXTRA = 3;
/** @ngInject */
function VirtualRepeatContainerController(
$$rAF, $mdUtil, $parse, $window, $scope, $element, $attrs) {
$$rAF, $mdUtil, $parse, $rootScope, $window, $scope, $element, $attrs) {
this.$rootScope = $rootScope;
this.$scope = $scope;
this.$element = $element;
this.$attrs = $attrs;
@@ -17454,10 +17512,11 @@ function VirtualRepeatContainerController(
jWindow.off('resize', debouncedUpdateSize);
});
$scope.$emit('$md-resize-enable');
$scope.$on('$md-resize', boundUpdateSize);
}));
}
VirtualRepeatContainerController.$inject = ["$$rAF", "$mdUtil", "$parse", "$window", "$scope", "$element", "$attrs"];
VirtualRepeatContainerController.$inject = ["$$rAF", "$mdUtil", "$parse", "$rootScope", "$window", "$scope", "$element", "$attrs"];
/** Called by the md-virtual-repeat inside of the container at startup. */
@@ -17643,7 +17702,7 @@ VirtualRepeatContainerController.prototype.handleScroll_ = function() {
if (topIndex !== this.topIndex && topIndex < this.repeater.itemsLength) {
this.topIndex = topIndex;
this.bindTopIndex.assign(this.$scope, topIndex);
if (!this.$scope.$root.$$phase) this.$scope.$digest();
if (!this.$rootScope.$$phase) this.$scope.$digest();
}
}
@@ -17718,12 +17777,14 @@ VirtualRepeatDirective.$inject = ["$parse"];
/** @ngInject */
function VirtualRepeatController($scope, $element, $attrs, $browser, $document, $$rAF) {
function VirtualRepeatController($scope, $element, $attrs, $browser, $document, $rootScope,
$$rAF) {
this.$scope = $scope;
this.$element = $element;
this.$attrs = $attrs;
this.$browser = $browser;
this.$document = $document;
this.$rootScope = $rootScope;
this.$$rAF = $$rAF;
/** @type {boolean} Whether we are in on-demand mode. */
@@ -17771,7 +17832,7 @@ function VirtualRepeatController($scope, $element, $attrs, $browser, $document,
/** @type {Array<!VirtualRepeatController.Block>} A pool of presently unused blocks. */
this.pooledBlocks = [];
}
VirtualRepeatController.$inject = ["$scope", "$element", "$attrs", "$browser", "$document", "$$rAF"];
VirtualRepeatController.$inject = ["$scope", "$element", "$attrs", "$browser", "$document", "$rootScope", "$$rAF"];
/**
@@ -17865,7 +17926,7 @@ VirtualRepeatController.prototype.containerUpdated = function() {
this.$$rAF(angular.bind(this, this.readItemSize_));
}
}));
if (!this.$scope.$root.$$phase) this.$scope.$digest();
if (!this.$rootScope.$$phase) this.$scope.$digest();
return;
} else if (!this.sized) {
@@ -18056,7 +18117,7 @@ VirtualRepeatController.prototype.updateBlock_ = function(block, index) {
// Perform digest before reattaching the block.
// Any resulting synchronous dom mutations should be much faster as a result.
// This might break some directives, but I'm going to try it for now.
if (!this.$scope.$root.$$phase) {
if (!this.$rootScope.$$phase) {
block.scope.$digest();
}
};
@@ -23750,7 +23811,9 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
contentHeight = tabContent ? tabContent.offsetHeight : 0,
tabsHeight = elements.wrapper.offsetHeight,
newHeight = contentHeight + tabsHeight,
currentHeight = $element.prop('offsetHeight');
currentHeight = $element.prop('clientHeight');
if (currentHeight === newHeight) return;
// Adjusts calculations for when the buttons are bottom-aligned since this relies on absolute
// positioning. This should probably be cleaned up if a cleaner solution is possible.
@@ -24123,4 +24186,4 @@ angular.module("material.core").constant("$MD_THEME_CSS", "md-autocomplete.md-TH
})();
})(window, window.angular);;window.ngMaterial={version:{full: "1.0.0-rc7-master-2ab3075"}};
})(window, window.angular);;window.ngMaterial={version:{full: "1.0.0-rc7-master-195dbb4"}};