(js/css) Update generated files

This commit is contained in:
InverseBot
2017-06-03 01:24:59 -04:00
parent b8f54dd8e8
commit dc9eaa164d
2 changed files with 68 additions and 36 deletions

View File

@@ -2,7 +2,7 @@
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.3-master-e3f9772
* v1.1.4-master-e1345ae
*/
(function( window, angular, undefined ){
"use strict";
@@ -22323,9 +22323,10 @@ function getDirective(name) {
/* @ngInject */
function DirectiveFactory($parse) {
return { restrict: 'A', link: postLink };
function postLink(scope, element, attr) {
element.css('touch-action', 'none');
return {restrict: 'A', link: postLink};
function postLink(scope, element, attr) {
element.css('touch-action', attr['mdSwipeTouchAction'] || 'none');
var fn = $parse(attr[directiveName]);
element.on(eventName, function(ev) {
@@ -23414,20 +23415,20 @@ function MdTooltipDirective($timeout, $window, $$rAF, $document, $interpolate,
function addAriaLabel(labelText) {
// Only interpolate the text from the HTML element because otherwise the custom text could
// be interpolated twice and cause XSS violations.
var interpolatedText = labelText || $interpolate(element.text().trim())(parent.scope);
var interpolatedText = labelText || $interpolate(element.text().trim())(scope.$parent);
// Only add the `aria-label` to the parent if there isn't already one, if there isn't an
// already present `aria-labelledby`, or if the previous `aria-label` was added by the
// tooltip directive.
if (
(!parent.attr('aria-label') && !parent.attr('aria-labelledby')) ||
parent.attr('aria-labelledby') === tooltipId
parent.attr('md-labeled-by-tooltip')
) {
parent.attr('aria-label', interpolatedText);
// Set the `aria-labelledby` attribute if it has not already been set.
if (!parent.attr('aria-labelledby')) {
parent.attr('aria-labelledby', tooltipId);
// Set the `md-labeled-by-tooltip` attribute if it has not already been set.
if (!parent.attr('md-labeled-by-tooltip')) {
parent.attr('md-labeled-by-tooltip', tooltipId);
}
}
}
@@ -23895,7 +23896,8 @@ angular.module('material.components.virtualRepeat', [
'material.components.showHide'
])
.directive('mdVirtualRepeatContainer', VirtualRepeatContainerDirective)
.directive('mdVirtualRepeat', VirtualRepeatDirective);
.directive('mdVirtualRepeat', VirtualRepeatDirective)
.directive('mdForceHeight', ForceHeightDirective);
/**
@@ -24410,6 +24412,7 @@ function VirtualRepeatController($scope, $element, $attrs, $browser, $document,
this.$attrs = $attrs;
this.$browser = $browser;
this.$document = $document;
this.$mdUtil = $mdUtil;
this.$rootScope = $rootScope;
this.$$rAF = $$rAF;
@@ -24649,16 +24652,6 @@ VirtualRepeatController.prototype.virtualRepeatUpdate_ = function(items, oldItem
this.container.setScrollSize(itemsLength * this.itemSize);
}
var cleanupFirstRender = false, firstRenderStartIndex;
if (this.isFirstRender) {
cleanupFirstRender = true;
this.isFirstRender = false;
firstRenderStartIndex = this.$attrs.mdStartIndex ?
this.$scope.$eval(this.$attrs.mdStartIndex) :
this.container.topIndex;
this.container.scrollToIndex(firstRenderStartIndex);
}
// Detach and pool any blocks that are no longer in the viewport.
Object.keys(this.blocks).forEach(function(blockIndex) {
var index = parseInt(blockIndex, 10);
@@ -24710,16 +24703,25 @@ VirtualRepeatController.prototype.virtualRepeatUpdate_ = function(items, oldItem
this.blocks[maxIndex] && this.blocks[maxIndex].element[0].nextSibling);
}
// DOM manipulation may have altered scroll, so scroll again
if (cleanupFirstRender) {
this.container.scrollToIndex(firstRenderStartIndex);
}
// Restore $$checkUrlChange.
this.$browser.$$checkUrlChange = this.browserCheckUrlChange;
this.startIndex = this.newStartIndex;
this.endIndex = this.newEndIndex;
if (this.isFirstRender) {
this.isFirstRender = false;
var firstRenderStartIndex = this.$attrs.mdStartIndex ?
this.$scope.$eval(this.$attrs.mdStartIndex) :
this.container.topIndex;
// The first call to virtualRepeatUpdate_ may not be when the virtual repeater is ready.
// Introduce a slight delay so that the update happens when it is actually ready.
this.$mdUtil.nextTick(function() {
this.container.scrollToIndex(firstRenderStartIndex);
}.bind(this));
}
this.isVirtualRepeatUpdating_ = false;
};
@@ -24878,6 +24880,35 @@ VirtualRepeatModelArrayLike.prototype.$$includeIndexes = function(start, end) {
this.length = this.model.getLength();
};
/**
* @ngdoc directive
* @name mdForceHeight
* @module material.components.virtualRepeat
* @restrict A
* @description
*
* Force an element to have a certain px height. This is used in place of a style tag in order to
* conform to the Content Security Policy regarding unsafe-inline style tags.
*
* @usage
* <hljs lang="html">
* <div md-force-height="'100px'"></div>
* </hljs>
*/
function ForceHeightDirective($mdUtil) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var height = scope.$eval(attrs.mdForceHeight) || null;
if (height && element) {
element[0].style.height = height;
}
}
}
}
ForceHeightDirective.$inject = ['$mdUtil'];
})();
(function(){
"use strict";
@@ -28991,7 +29022,7 @@ function MdContactChips($mdTheming, $mdUtil) {
// The <tr> ensures that the <tbody> will always have the
// proper height, even if it's empty. If it's content is
// compiled, the <tr> will be overwritten.
'<tr aria-hidden="true" style="height:' + TBODY_HEIGHT + 'px;"></tr>' +
'<tr aria-hidden="true" md-force-height="\'' + TBODY_HEIGHT + 'px\'"></tr>' +
'</tbody>' +
'</table>' +
'</md-virtual-repeat-container>' +
@@ -29602,7 +29633,7 @@ function MdContactChips($mdTheming, $mdUtil) {
'md-item-size="' + TBODY_HEIGHT + '">' +
// The <tr> ensures that the <tbody> will have the proper
// height, even though it may be empty.
'<tr aria-hidden="true" style="height:' + TBODY_HEIGHT + 'px;"></tr>' +
'<tr aria-hidden="true" md-force-height="\'' + TBODY_HEIGHT + 'px\'"></tr>' +
'</tbody>' +
'</table>' +
'</md-virtual-repeat-container>' +
@@ -35835,7 +35866,7 @@ function MdTabs ($$mdSvgRegistry) {
'\'md-disabled\': tab.scope.disabled ' +
'}" ' +
'ng-disabled="tab.scope.disabled" ' +
'md-swipe-left="$mdTabsCtrl.nextPage()" ' +
'md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-touch-action="pan-y" ' +
'md-swipe-right="$mdTabsCtrl.previousPage()" ' +
'md-tabs-template="::tab.label" ' +
'md-scope="::tab.parent"></md-tab-item> ' +
@@ -35865,6 +35896,7 @@ function MdTabs ($$mdSvgRegistry) {
'aria-labelledby="tab-item-{{::tab.id}}" ' +
'md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" ' +
'md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" ' +
'md-swipe-touch-action="pan-y" ' +
'ng-if="tab.hasContent" ' +
'ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ' +
'ng-class="{ ' +
@@ -36000,4 +36032,4 @@ angular.module("material.core").constant("$MD_THEME_CSS", "md-autocomplete.md-TH
})();
})(window, window.angular);;window.ngMaterial={version:{full: "1.1.3-master-e3f9772"}};
})(window, window.angular);;window.ngMaterial={version:{full: "1.1.4-master-e1345ae"}};

File diff suppressed because one or more lines are too long