mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-23 19:04:18 +00:00
(js/css) Update generated files
This commit is contained in:
+42
-86
@@ -2,7 +2,7 @@
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v1.0.3-master-0918596
|
||||
* v1.0.1-master-8ef798f
|
||||
*/
|
||||
(function( window, angular, undefined ){
|
||||
"use strict";
|
||||
@@ -846,9 +846,9 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
|
||||
element = angular.element(element || body)[0];
|
||||
var zIndex = 50;
|
||||
var scrollMask = angular.element(
|
||||
'<div class="md-scroll-mask">' +
|
||||
'<div class="md-scroll-mask" style="z-index: ' + zIndex + '">' +
|
||||
' <div class="md-scroll-mask-bar"></div>' +
|
||||
'</div>').css('z-index', zIndex);
|
||||
'</div>');
|
||||
element.appendChild(scrollMask[0]);
|
||||
|
||||
scrollMask.on('wheel', preventDefault);
|
||||
@@ -883,8 +883,8 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
|
||||
// position
|
||||
function disableBodyScroll() {
|
||||
var htmlNode = body.parentNode;
|
||||
var restoreHtmlStyle = htmlNode.style.cssText || '';
|
||||
var restoreBodyStyle = body.style.cssText || '';
|
||||
var restoreHtmlStyle = htmlNode.getAttribute('style') || '';
|
||||
var restoreBodyStyle = body.getAttribute('style') || '';
|
||||
var scrollOffset = $mdUtil.scrollTop(body);
|
||||
var clientWidth = body.clientWidth;
|
||||
|
||||
@@ -903,8 +903,8 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
|
||||
if (body.clientWidth < clientWidth) applyStyles(body, {overflow: 'hidden'});
|
||||
|
||||
return function restoreScroll() {
|
||||
body.style.cssText = restoreBodyStyle;
|
||||
htmlNode.style.cssText = restoreHtmlStyle;
|
||||
body.setAttribute('style', restoreBodyStyle);
|
||||
htmlNode.setAttribute('style', restoreHtmlStyle);
|
||||
body.scrollTop = scrollOffset;
|
||||
htmlNode.scrollTop = scrollOffset;
|
||||
};
|
||||
@@ -922,15 +922,7 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
|
||||
},
|
||||
floatingScrollbars: function() {
|
||||
if (this.floatingScrollbars.cached === undefined) {
|
||||
var tempNode = angular.element('<div><div></div></div>').css({
|
||||
width: '100%',
|
||||
'z-index': -1,
|
||||
position: 'absolute',
|
||||
height: '35px',
|
||||
'overflow-y': 'scroll'
|
||||
});
|
||||
tempNode.children().css('height', '60px');
|
||||
|
||||
var tempNode = angular.element('<div style="width: 100%; z-index: -1; position: absolute; height: 35px; overflow-y: scroll"><div style="height: 60px;"></div></div>');
|
||||
$document[0].body.appendChild(tempNode[0]);
|
||||
this.floatingScrollbars.cached = (tempNode[0].offsetWidth == tempNode[0].childNodes[0].offsetWidth);
|
||||
tempNode.remove();
|
||||
@@ -1386,7 +1378,7 @@ angular.module('material.core')
|
||||
/*
|
||||
* @ngInject
|
||||
*/
|
||||
function AriaService($$rAF, $log, $window, $interpolate) {
|
||||
function AriaService($$rAF, $log, $window) {
|
||||
|
||||
return {
|
||||
expect: expect,
|
||||
@@ -1425,25 +1417,18 @@ function AriaService($$rAF, $log, $window, $interpolate) {
|
||||
// the text may not be defined yet in the case of a binding.
|
||||
// There is a higher chance that a binding will be defined if we wait one frame.
|
||||
$$rAF(function() {
|
||||
expect(element, attrName, defaultValueGetter());
|
||||
expect(element, attrName, defaultValueGetter());
|
||||
});
|
||||
}
|
||||
|
||||
function expectWithText(element, attrName) {
|
||||
var content = getText(element) || "";
|
||||
var hasBinding = content.indexOf($interpolate.startSymbol())>-1;
|
||||
|
||||
if ( hasBinding ) {
|
||||
expectAsync(element, attrName, function() {
|
||||
return getText(element);
|
||||
});
|
||||
} else {
|
||||
expect(element, attrName, content);
|
||||
}
|
||||
expectAsync(element, attrName, function() {
|
||||
return getText(element);
|
||||
});
|
||||
}
|
||||
|
||||
function getText(element) {
|
||||
return (element.text() || "").trim();
|
||||
return element.text().trim();
|
||||
}
|
||||
|
||||
function childHasAttribute(node, attrName) {
|
||||
@@ -1469,7 +1454,7 @@ function AriaService($$rAF, $log, $window, $interpolate) {
|
||||
return hasAttr;
|
||||
}
|
||||
}
|
||||
AriaService.$inject = ["$$rAF", "$log", "$window", "$interpolate"];
|
||||
AriaService.$inject = ["$$rAF", "$log", "$window"];
|
||||
|
||||
})();
|
||||
(function(){
|
||||
@@ -4664,13 +4649,6 @@ angular.module('material.core.theming', ['material.core.theming.palette'])
|
||||
* @description Provider to configure the `$mdTheming` service.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name $mdThemingProvider#setNonce
|
||||
* @param {string} nonceValue The nonce to be added as an attribute to the theme style tags.
|
||||
* Setting a value allows the use CSP policy without using the unsafe-inline directive.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name $mdThemingProvider#setDefaultTheme
|
||||
@@ -4784,9 +4762,6 @@ var VALID_HUE_VALUES = [
|
||||
// Whether or not themes are to be generated on-demand (vs. eagerly).
|
||||
var generateOnDemand = false;
|
||||
|
||||
// Nonce to be added as an attribute to the generated themes style tags.
|
||||
var nonce = null;
|
||||
|
||||
function ThemingProvider($mdColorPalette) {
|
||||
PALETTES = { };
|
||||
THEMES = { };
|
||||
@@ -4806,9 +4781,6 @@ function ThemingProvider($mdColorPalette) {
|
||||
extendPalette: extendPalette,
|
||||
theme: registerTheme,
|
||||
|
||||
setNonce: function(nonceValue) {
|
||||
nonce = nonceValue;
|
||||
},
|
||||
setDefaultTheme: function(theme) {
|
||||
defaultTheme = theme;
|
||||
},
|
||||
@@ -5021,7 +4993,7 @@ function ThemingProvider($mdColorPalette) {
|
||||
applyTheme.THEMES = angular.extend({}, THEMES);
|
||||
applyTheme.defaultTheme = function() { return defaultTheme; };
|
||||
applyTheme.registered = registered;
|
||||
applyTheme.generateTheme = function(name) { generateTheme(name, nonce); };
|
||||
applyTheme.generateTheme = generateTheme;
|
||||
|
||||
return applyTheme;
|
||||
|
||||
@@ -5185,7 +5157,7 @@ function generateAllThemes($injector) {
|
||||
|
||||
angular.forEach(THEMES, function(theme) {
|
||||
if (!GENERATED[theme.name]) {
|
||||
generateTheme(theme.name, nonce);
|
||||
generateTheme(theme.name);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -5251,7 +5223,7 @@ function generateAllThemes($injector) {
|
||||
}
|
||||
generateAllThemes.$inject = ["$injector"];
|
||||
|
||||
function generateTheme(name, nonce) {
|
||||
function generateTheme(name) {
|
||||
var theme = THEMES[name];
|
||||
var head = document.head;
|
||||
var firstChild = head ? head.firstElementChild : null;
|
||||
@@ -5266,9 +5238,6 @@ function generateTheme(name, nonce) {
|
||||
if (styleContent) {
|
||||
var style = document.createElement('style');
|
||||
style.setAttribute('md-theme-style', '');
|
||||
if (nonce) {
|
||||
style.setAttribute('nonce', nonce);
|
||||
}
|
||||
style.appendChild(document.createTextNode(styleContent));
|
||||
head.insertBefore(style, firstChild);
|
||||
}
|
||||
@@ -6421,11 +6390,14 @@ function MdButtonDirective($mdButtonInkRipple, $mdTheming, $mdAria, $timeout) {
|
||||
}
|
||||
|
||||
function postLink(scope, element, attr) {
|
||||
var node = element[0];
|
||||
$mdTheming(element);
|
||||
$mdButtonInkRipple.attach(scope, element);
|
||||
|
||||
// Use async expect to support possible bindings in the button label
|
||||
$mdAria.expectWithText(element, 'aria-label');
|
||||
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
|
||||
@@ -8368,17 +8340,12 @@ function iosScrollFix(node) {
|
||||
this.clearErrorState();
|
||||
|
||||
if (this.dateUtil.isValidDate(date)) {
|
||||
// Force all dates to midnight in order to ignore the time portion.
|
||||
date = this.dateUtil.createDateAtMidnight(date);
|
||||
|
||||
if (this.dateUtil.isValidDate(this.minDate)) {
|
||||
var minDate = this.dateUtil.createDateAtMidnight(this.minDate);
|
||||
this.ngModelCtrl.$setValidity('mindate', date >= minDate);
|
||||
this.ngModelCtrl.$setValidity('mindate', date >= this.minDate);
|
||||
}
|
||||
|
||||
if (this.dateUtil.isValidDate(this.maxDate)) {
|
||||
var maxDate = this.dateUtil.createDateAtMidnight(this.maxDate);
|
||||
this.ngModelCtrl.$setValidity('maxdate', date <= maxDate);
|
||||
this.ngModelCtrl.$setValidity('maxdate', date <= this.maxDate);
|
||||
}
|
||||
|
||||
if (angular.isFunction(this.dateFilter)) {
|
||||
@@ -9741,9 +9708,7 @@ function MdDialogProvider($$interimElementProvider) {
|
||||
|
||||
// When focus is about to move out of the dialog, we want to intercept it and redirect it
|
||||
// back to the dialog element.
|
||||
var focusHandler = function() {
|
||||
element.focus();
|
||||
};
|
||||
var focusHandler = angular.bind(element, element.focus);
|
||||
topFocusTrap.addEventListener('focus', focusHandler);
|
||||
bottomFocusTrap.addEventListener('focus', focusHandler);
|
||||
|
||||
@@ -10350,14 +10315,6 @@ MdDividerDirective.$inject = ["$mdTheming"];
|
||||
* space where the actions will appear, you must also add the `md-hover-full` class to the speed
|
||||
* dial element. Without this, the hover effect will only occur on top of the trigger.
|
||||
*
|
||||
* See the demos for more information.
|
||||
*
|
||||
* ## Troubleshooting
|
||||
*
|
||||
* If your speed dial shows the closing animation upon launch, you may need to use `ng-cloak` on
|
||||
* the parent container to ensure that it is only visible once ready. We have plans to remove this
|
||||
* necessity in the future.
|
||||
*
|
||||
* @usage
|
||||
* <hljs lang="html">
|
||||
* <md-fab-speed-dial md-direction="up" class="md-fling">
|
||||
@@ -10517,7 +10474,7 @@ MdDividerDirective.$inject = ["$mdTheming"];
|
||||
offsetDelay = index * delay;
|
||||
|
||||
styles.opacity = ctrl.isOpen ? 1 : 0;
|
||||
styles.transform = styles.webkitTransform = ctrl.isOpen ? 'scale(1)' : 'scale(0)';
|
||||
styles.transform = styles.webkitTransform = ctrl.isOpen ? 'scale(1)' : 'scale(0.1)';
|
||||
styles.transitionDelay = (ctrl.isOpen ? offsetDelay : (items.length - offsetDelay)) + 'ms';
|
||||
|
||||
// Make the items closest to the trigger have the highest z-index
|
||||
@@ -11829,14 +11786,10 @@ function inputTextareaDirective($mdUtil, $window, $mdAria) {
|
||||
}
|
||||
|
||||
var isErrorGetter = containerCtrl.isErrorGetter || function() {
|
||||
return ngModelCtrl.$invalid && (ngModelCtrl.$touched || isParentFormSubmitted());
|
||||
};
|
||||
|
||||
var isParentFormSubmitted = function () {
|
||||
var parent = $mdUtil.getClosest(element, 'form');
|
||||
var form = parent ? angular.element(parent).controller('form') : null;
|
||||
|
||||
return form ? form.$submitted : false;
|
||||
return ngModelCtrl.$invalid && (
|
||||
ngModelCtrl.$touched ||
|
||||
(ngModelCtrl.$$parentForm && ngModelCtrl.$$parentForm.$submitted)
|
||||
);
|
||||
};
|
||||
|
||||
scope.$watch(isErrorGetter, containerCtrl.setInvalid);
|
||||
@@ -15583,7 +15536,7 @@ function SliderDirective($$rAF, $window, $mdAria, $mdUtil, $mdConstant, $mdThemi
|
||||
|
||||
var numSteps = Math.floor( (max - min) / step );
|
||||
if (!tickCanvas) {
|
||||
tickCanvas = angular.element('<canvas>').css('position', 'absolute');
|
||||
tickCanvas = angular.element('<canvas style="position:absolute;">');
|
||||
tickContainer.append(tickCanvas);
|
||||
|
||||
var trackTicksStyle = $window.getComputedStyle(tickContainer[0]);
|
||||
@@ -21509,14 +21462,19 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
}, function(val, attr) {
|
||||
this.element.setAttribute(attr, val);
|
||||
}, this);
|
||||
|
||||
angular.forEach({
|
||||
'pointer-events' : 'none',
|
||||
'display' : 'block'
|
||||
}, function(val, style) {
|
||||
this.element.style[style] = val;
|
||||
}, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clone the Icon DOM element.
|
||||
*/
|
||||
function cloneSVG(){
|
||||
// If the element or any of its children have a style attribute, then a CSP policy without
|
||||
// 'unsafe-inline' in the style-src directive, will result in a violation.
|
||||
return this.element.cloneNode(true);
|
||||
}
|
||||
|
||||
@@ -22603,7 +22561,7 @@ MenuBarController.prototype.disableOpenOnHover = function() {
|
||||
this.openOnHoverEnabled = false;
|
||||
var parentToolbar;
|
||||
if (parentToolbar = this.parentToolbar) {
|
||||
parentToolbar.style.cssText = parentToolbar.dataset.mdRestoreStyle || '';
|
||||
parentToolbar.setAttribute('style', parentToolbar.dataset.mdRestoreStyle || '');
|
||||
}
|
||||
angular
|
||||
.element(this.getMenus())
|
||||
@@ -23430,9 +23388,6 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
|
||||
|
||||
function handleMaxTabWidth (newWidth, oldWidth) {
|
||||
if (newWidth !== oldWidth) {
|
||||
angular.forEach(elements.tabs, function(tab) {
|
||||
tab.style.maxWidth = newWidth + 'px';
|
||||
});
|
||||
$mdUtil.nextTick(ctrl.updateInkBarStyles);
|
||||
}
|
||||
}
|
||||
@@ -24170,6 +24125,7 @@ function MdTabs () {
|
||||
'<md-tab-item ' +
|
||||
'tabindex="-1" ' +
|
||||
'class="md-tab" ' +
|
||||
'style="max-width: {{ $mdTabsCtrl.maxTabWidth + \'px\' }}" ' +
|
||||
'ng-repeat="tab in $mdTabsCtrl.tabs" ' +
|
||||
'role="tab" ' +
|
||||
'aria-controls="tab-content-{{::tab.id}}" ' +
|
||||
@@ -24287,4 +24243,4 @@ angular.module("material.core").constant("$MD_THEME_CSS", "md-autocomplete.md-TH
|
||||
})();
|
||||
|
||||
|
||||
})(window, window.angular);;window.ngMaterial={version:{full: "1.0.3-master-0918596"}};
|
||||
})(window, window.angular);;window.ngMaterial={version:{full: "1.0.1-master-8ef798f"}};
|
||||
Reference in New Issue
Block a user