mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-19 14:25:21 +00:00
(js/css) Update generated files
This commit is contained in:
1 parent
eb14676489
commit
401bea2133
6 files changed
+285
-178
No files matched your search
+270
-163
@@ -2,7 +2,7 @@
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v1.0.6-master-ba130f2
|
||||
* v1.1.0-rc2-master-0fc0f3e
|
||||
*/
|
||||
(function( window, angular, undefined ){
|
||||
"use strict";
|
||||
@@ -4682,9 +4682,8 @@ angular.module('material.core.theming.palette', [])
|
||||
'700': '#616161',
|
||||
'800': '#424242',
|
||||
'900': '#212121',
|
||||
'1000': '#000000',
|
||||
'A100': '#ffffff',
|
||||
'A200': '#eeeeee',
|
||||
'A200': '#000000',
|
||||
'A400': '#303030',
|
||||
'A700': '#616161',
|
||||
'contrastDefaultColor': 'dark',
|
||||
@@ -4826,7 +4825,7 @@ var DARK_DEFAULT_HUES = {
|
||||
'default': 'A400',
|
||||
'hue-1': '800',
|
||||
'hue-2': '900',
|
||||
'hue-3': '1000'
|
||||
'hue-3': 'A200'
|
||||
}
|
||||
};
|
||||
THEME_COLOR_TYPES.forEach(function(colorType) {
|
||||
@@ -5272,7 +5271,7 @@ function generateAllThemes($injector) {
|
||||
|
||||
// The user specifies a 'default' contrast color as either light or dark,
|
||||
// then explicitly lists which hues are the opposite contrast (eg. A100 has dark, A200 has light)
|
||||
function sanitizePalette(palette) {
|
||||
function sanitizePalette(palette, name) {
|
||||
var defaultContrast = palette.contrastDefaultColor;
|
||||
var lightColors = palette.contrastLightColors || [];
|
||||
var strongLightColors = palette.contrastStrongLightColors || [];
|
||||
@@ -6727,7 +6726,12 @@ angular
|
||||
* @param {string=} ng-change Angular expression to be executed when input changes due to user interaction with the input element.
|
||||
* @param {boolean=} md-no-ink Use of attribute indicates use of ripple ink effects
|
||||
* @param {string=} aria-label Adds label to checkbox for accessibility.
|
||||
* Defaults to checkbox's text. If no default text is found, a warning will be logged.
|
||||
* Defaults to checkbox's text. If no default text is found, a warning will be logged.
|
||||
* @param {expression=} md-indeterminate This determines when the checkbox should be rendered as 'indeterminate'.
|
||||
* If a truthy expression or no value is passed in the checkbox renders in the md-indeterminate state.
|
||||
* If falsy expression is passed in it just looks like a normal unchecked checkbox.
|
||||
* The indeterminate, checked, and unchecked states are mutually exclusive. A box cannot be in any two states at the same time.
|
||||
* When a checkbox is indeterminate that overrides any checked/unchecked rendering logic.
|
||||
*
|
||||
* @usage
|
||||
* <hljs lang="html">
|
||||
@@ -6755,7 +6759,7 @@ function MdCheckboxDirective(inputDirective, $mdAria, $mdConstant, $mdTheming, $
|
||||
transclude: true,
|
||||
require: '?ngModel',
|
||||
priority: 210, // Run before ngAria
|
||||
template:
|
||||
template:
|
||||
'<div class="_md-container" md-ink-ripple md-ink-ripple-checkbox>' +
|
||||
'<div class="_md-icon"></div>' +
|
||||
'</div>' +
|
||||
@@ -6769,6 +6773,7 @@ function MdCheckboxDirective(inputDirective, $mdAria, $mdConstant, $mdTheming, $
|
||||
|
||||
function compile (tElement, tAttrs) {
|
||||
var container = tElement.children();
|
||||
var mdIndeterminateStateEnabled = tAttrs.hasOwnProperty('mdIndeterminate');
|
||||
|
||||
tAttrs.type = 'checkbox';
|
||||
tAttrs.tabindex = tAttrs.tabindex || '0';
|
||||
@@ -6789,8 +6794,13 @@ function MdCheckboxDirective(inputDirective, $mdAria, $mdConstant, $mdTheming, $
|
||||
});
|
||||
|
||||
return function postLink(scope, element, attr, ngModelCtrl) {
|
||||
var isIndeterminate;
|
||||
ngModelCtrl = ngModelCtrl || $mdUtil.fakeNgModel();
|
||||
$mdTheming(element);
|
||||
if (mdIndeterminateStateEnabled) {
|
||||
setIndeterminateState();
|
||||
scope.$watch(attr.mdIndeterminate, setIndeterminateState);
|
||||
}
|
||||
|
||||
if (attr.ngChecked) {
|
||||
scope.$watch(
|
||||
@@ -6856,6 +6866,7 @@ function MdCheckboxDirective(inputDirective, $mdAria, $mdConstant, $mdTheming, $
|
||||
listener(ev);
|
||||
}
|
||||
}
|
||||
|
||||
function listener(ev) {
|
||||
if (element[0].hasAttribute('disabled')) {
|
||||
return;
|
||||
@@ -6871,12 +6882,20 @@ function MdCheckboxDirective(inputDirective, $mdAria, $mdConstant, $mdTheming, $
|
||||
}
|
||||
|
||||
function render() {
|
||||
if(ngModelCtrl.$viewValue) {
|
||||
if(ngModelCtrl.$viewValue && !isIndeterminate) {
|
||||
element.addClass(CHECKED_CSS);
|
||||
} else {
|
||||
element.removeClass(CHECKED_CSS);
|
||||
}
|
||||
}
|
||||
|
||||
function setIndeterminateState(newValue) {
|
||||
isIndeterminate = newValue !== false;
|
||||
if (isIndeterminate) {
|
||||
element.attr('aria-checked', 'mixed');
|
||||
}
|
||||
element.toggleClass('md-indeterminate', isIndeterminate);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -9620,7 +9639,7 @@ function MdDialogProvider($$interimElementProvider) {
|
||||
var badActions = element[0].querySelectorAll('.md-actions');
|
||||
|
||||
if (badActions.length > 0) {
|
||||
$log.warn('Using a class of md-actions is deprected, please use <md-dialog-actions>.');
|
||||
$log.warn('Using a class of md-actions is deprecated, please use <md-dialog-actions>.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11736,9 +11755,7 @@ function GridTileCaptionDirective() {
|
||||
* @description
|
||||
* Icon
|
||||
*/
|
||||
angular.module('material.components.icon', [
|
||||
'material.core'
|
||||
]);
|
||||
angular.module('material.components.icon', ['material.core']);
|
||||
|
||||
})();
|
||||
(function(){
|
||||
@@ -11780,6 +11797,11 @@ angular.module('material.components.input', [
|
||||
* Input and textarea elements will not behave properly unless the md-input-container
|
||||
* parent is provided.
|
||||
*
|
||||
* A single `<md-input-container>` should contain only one `<input>` element, otherwise it will throw an error.
|
||||
*
|
||||
* <b>Exception:</b> Hidden inputs (`<input type="hidden" />`) are ignored and will not throw an error, so
|
||||
* you may combine these with other inputs.
|
||||
*
|
||||
* @param md-is-error {expression=} When the given expression evaluates to true, the input container
|
||||
* will go into error state. Defaults to erroring if the input has been touched and is invalid.
|
||||
* @param md-no-float {boolean=} When present, `placeholder` attributes on the input will not be converted to floating
|
||||
@@ -11904,7 +11926,9 @@ function labelDirective() {
|
||||
* specified, a character counter will be shown underneath the input.<br/><br/>
|
||||
* The purpose of **`md-maxlength`** is exactly to show the max length counter text. If you don't
|
||||
* want the counter text and only need "plain" validation, you can use the "simple" `ng-maxlength`
|
||||
* or maxlength attributes.
|
||||
* or maxlength attributes.<br/><br/>
|
||||
* **Note:** Only valid for text/string inputs (not numeric).
|
||||
*
|
||||
* @param {string=} aria-label Aria-label is required when no label is present. A warning message
|
||||
* will be logged in the console if not present.
|
||||
* @param {string=} placeholder An alternative approach to using aria-label when the label is not
|
||||
@@ -12015,7 +12039,10 @@ function inputTextareaDirective($mdUtil, $window, $mdAria, $timeout) {
|
||||
|
||||
|
||||
if (!containerCtrl) return;
|
||||
if (containerCtrl.input) {
|
||||
if (attr.type === 'hidden') {
|
||||
element.attr('aria-hidden', 'true');
|
||||
return;
|
||||
} else if (containerCtrl.input) {
|
||||
throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!");
|
||||
}
|
||||
containerCtrl.input = element;
|
||||
@@ -12704,10 +12731,12 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
|
||||
restrict: 'E',
|
||||
controller: 'MdListController',
|
||||
compile: function(tEl, tAttrs) {
|
||||
|
||||
// Check for proxy controls (no ng-click on parent, and a control inside)
|
||||
var secondaryItems = tEl[0].querySelectorAll('.md-secondary');
|
||||
var hasProxiedElement;
|
||||
var proxyElement;
|
||||
var itemContainer = tEl;
|
||||
|
||||
tEl[0].setAttribute('role', 'listitem');
|
||||
|
||||
@@ -12746,14 +12775,13 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
|
||||
}
|
||||
|
||||
function wrapIn(type) {
|
||||
var container;
|
||||
if (type == 'div') {
|
||||
container = angular.element('<div class="_md-no-style _md-list-item-inner">');
|
||||
container.append(tEl.contents());
|
||||
itemContainer = angular.element('<div class="_md-no-style _md-list-item-inner">');
|
||||
itemContainer.append(tEl.contents());
|
||||
tEl.addClass('_md-proxy-focus');
|
||||
} else {
|
||||
// Element which holds the default list-item content.
|
||||
container = angular.element(
|
||||
itemContainer = angular.element(
|
||||
'<div class="md-button _md-no-style">'+
|
||||
' <div class="_md-list-item-inner"></div>'+
|
||||
'</div>'
|
||||
@@ -12768,58 +12796,48 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
|
||||
copyAttributes(tEl[0], buttonWrap[0]);
|
||||
|
||||
// Append the button wrap before our list-item content, because it will overlay in relative.
|
||||
container.prepend(buttonWrap);
|
||||
container.children().eq(1).append(tEl.contents());
|
||||
itemContainer.prepend(buttonWrap);
|
||||
itemContainer.children().eq(1).append(tEl.contents());
|
||||
|
||||
tEl.addClass('_md-button-wrap');
|
||||
}
|
||||
|
||||
tEl[0].setAttribute('tabindex', '-1');
|
||||
tEl.append(container);
|
||||
tEl.append(itemContainer);
|
||||
}
|
||||
|
||||
function wrapSecondaryItems() {
|
||||
if (secondaryItems.length === 1) {
|
||||
wrapSecondaryItem(secondaryItems[0], tEl);
|
||||
} else if (secondaryItems.length > 1) {
|
||||
var secondaryItemsWrapper = angular.element('<div class="_md-secondary-container">');
|
||||
angular.forEach(secondaryItems, function(secondaryItem) {
|
||||
wrapSecondaryItem(secondaryItem, secondaryItemsWrapper, true);
|
||||
});
|
||||
tEl.append(secondaryItemsWrapper);
|
||||
}
|
||||
var secondaryItemsWrapper = angular.element('<div class="_md-secondary-container">');
|
||||
|
||||
angular.forEach(secondaryItems, function(secondaryItem) {
|
||||
wrapSecondaryItem(secondaryItem, secondaryItemsWrapper);
|
||||
});
|
||||
|
||||
// Since the secondary item container is static we need to fill the remaing space.
|
||||
var spaceFiller = angular.element('<div class="flex"></div>');
|
||||
itemContainer.append(spaceFiller);
|
||||
|
||||
itemContainer.append(secondaryItemsWrapper);
|
||||
}
|
||||
|
||||
function wrapSecondaryItem(secondaryItem, container, hasSecondaryItemsWrapper) {
|
||||
function wrapSecondaryItem(secondaryItem, container) {
|
||||
if (secondaryItem && !isButton(secondaryItem) && secondaryItem.hasAttribute('ng-click')) {
|
||||
$mdAria.expect(secondaryItem, 'aria-label');
|
||||
var buttonWrapper;
|
||||
if (hasSecondaryItemsWrapper) {
|
||||
buttonWrapper = angular.element('<md-button class="md-icon-button">');
|
||||
} else {
|
||||
buttonWrapper = angular.element('<md-button class="_md-secondary-container md-icon-button">');
|
||||
}
|
||||
var buttonWrapper = angular.element('<md-button class="md-secondary md-icon-button">');
|
||||
copyAttributes(secondaryItem, buttonWrapper[0]);
|
||||
secondaryItem.setAttribute('tabindex', '-1');
|
||||
secondaryItem.classList.remove('md-secondary');
|
||||
buttonWrapper.append(secondaryItem);
|
||||
secondaryItem = buttonWrapper[0];
|
||||
}
|
||||
|
||||
// Check for a secondary item and move it outside
|
||||
if ( secondaryItem && (
|
||||
secondaryItem.hasAttribute('ng-click') ||
|
||||
( tAttrs.ngClick &&
|
||||
isProxiedElement(secondaryItem) )
|
||||
)) {
|
||||
// When using multiple secondary items we need to remove their secondary class to be
|
||||
// orderd correctly in the list-item
|
||||
if (hasSecondaryItemsWrapper) {
|
||||
secondaryItem.classList.remove('md-secondary');
|
||||
}
|
||||
tEl.addClass('md-with-secondary');
|
||||
container.append(secondaryItem);
|
||||
if (secondaryItem && (!hasClickEvent(secondaryItem) || (!tAttrs.ngClick && isProxiedElement(secondaryItem)))) {
|
||||
// In this case we remove the secondary class, so we can identify it later, when we searching for the
|
||||
// proxy items.
|
||||
angular.element(secondaryItem).removeClass('md-secondary');
|
||||
}
|
||||
|
||||
tEl.addClass('md-with-secondary');
|
||||
container.append(secondaryItem);
|
||||
}
|
||||
|
||||
function copyAttributes(item, wrapper) {
|
||||
@@ -12844,14 +12862,23 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
|
||||
return nodeName == "MD-BUTTON" || nodeName == "BUTTON";
|
||||
}
|
||||
|
||||
function hasClickEvent (element) {
|
||||
var attr = element.attributes;
|
||||
for (var i = 0; i < attr.length; i++) {
|
||||
if (tAttrs.$normalize(attr[i].name) === 'ngClick') return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
return postLink;
|
||||
|
||||
function postLink($scope, $element, $attr, ctrl) {
|
||||
|
||||
var proxies = [],
|
||||
firstChild = $element[0].firstElementChild,
|
||||
hasClick = firstChild && firstChild.firstElementChild &&
|
||||
hasClickEvent(firstChild.firstElementChild);
|
||||
var proxies = [],
|
||||
firstElement = $element[0].firstElementChild,
|
||||
isButtonWrap = $element.hasClass('_md-button-wrap'),
|
||||
clickChild = isButtonWrap ? firstElement.firstElementChild : firstElement,
|
||||
hasClick = clickChild && hasClickEvent(clickChild);
|
||||
|
||||
computeProxies();
|
||||
computeClickable();
|
||||
@@ -12877,22 +12904,19 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
|
||||
});
|
||||
}
|
||||
|
||||
function hasClickEvent (element) {
|
||||
var attr = element.attributes;
|
||||
for (var i = 0; i < attr.length; i++) {
|
||||
if ($attr.$normalize(attr[i].name) === 'ngClick') return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function computeProxies() {
|
||||
var children = $element.children();
|
||||
if (children.length && !children[0].hasAttribute('ng-click')) {
|
||||
if (firstElement && firstElement.children && !hasClick) {
|
||||
|
||||
angular.forEach(proxiedTypes, function(type) {
|
||||
angular.forEach(firstChild.querySelectorAll(type), function(child) {
|
||||
|
||||
// All elements which are not capable for being used a proxy have the .md-secondary class
|
||||
// applied. These items had been sorted out in the secondary wrap function.
|
||||
angular.forEach(firstElement.querySelectorAll(type + ':not(.md-secondary)'), function(child) {
|
||||
proxies.push(child);
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
function computeClickable() {
|
||||
@@ -12905,12 +12929,12 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
|
||||
}
|
||||
}
|
||||
|
||||
var firstChildKeypressListener = function(e) {
|
||||
var clickChildKeypressListener = function(e) {
|
||||
if (e.target.nodeName != 'INPUT' && e.target.nodeName != 'TEXTAREA' && !e.target.isContentEditable) {
|
||||
var keyCode = e.which || e.keyCode;
|
||||
if (keyCode == $mdConstant.KEY_CODE.SPACE) {
|
||||
if (firstChild) {
|
||||
firstChild.click();
|
||||
if (clickChild) {
|
||||
clickChild.click();
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
@@ -12919,16 +12943,16 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
|
||||
};
|
||||
|
||||
if (!hasClick && !proxies.length) {
|
||||
firstChild && firstChild.addEventListener('keypress', firstChildKeypressListener);
|
||||
clickChild && clickChild.addEventListener('keypress', clickChildKeypressListener);
|
||||
}
|
||||
|
||||
$element.off('click');
|
||||
$element.off('keypress');
|
||||
|
||||
if (proxies.length == 1 && firstChild) {
|
||||
if (proxies.length == 1 && clickChild) {
|
||||
$element.children().eq(0).on('click', function(e) {
|
||||
var parentButton = $mdUtil.getClosest(e.target, 'BUTTON');
|
||||
if (!parentButton && firstChild.contains(e.target)) {
|
||||
if (!parentButton && clickChild.contains(e.target)) {
|
||||
angular.forEach(proxies, function(proxy) {
|
||||
if (e.target !== proxy && !proxy.contains(e.target)) {
|
||||
angular.element(proxy).triggerHandler('click');
|
||||
@@ -12939,7 +12963,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) {
|
||||
}
|
||||
|
||||
$scope.$on('$destroy', function () {
|
||||
firstChild && firstChild.removeEventListener('keypress', firstChildKeypressListener);
|
||||
clickChild && clickChild.removeEventListener('keypress', clickChildKeypressListener);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -13602,6 +13626,8 @@ angular.module('material.components.select', [
|
||||
* @param {expression=} md-on-close Expression to be evaluated when the select is closed.
|
||||
* @param {expression=} md-on-open Expression to be evaluated when opening the select.
|
||||
* Will hide the select options and show a spinner until the evaluated promise resolves.
|
||||
* @param {expression=} md-selected-text Expression to be evaluated that will return a string
|
||||
* to be displayed as a placeholder in the select input box when it is closed.
|
||||
* @param {string=} placeholder Placeholder hint text.
|
||||
* @param {string=} aria-label Optional label for accessibility. Only necessary if no placeholder or
|
||||
* explicit label is present.
|
||||
@@ -13752,7 +13778,9 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
|
||||
element.empty().append(valueEl);
|
||||
element.append(selectTemplate);
|
||||
|
||||
attr.tabindex = attr.tabindex || '0';
|
||||
if(!attr.tabindex){
|
||||
attr.$set('tabindex', 0);
|
||||
}
|
||||
|
||||
return function postLink(scope, element, attr, ctrls) {
|
||||
var untouched = true;
|
||||
@@ -13821,9 +13849,16 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
|
||||
|
||||
mdSelectCtrl.setLabelText = function(text) {
|
||||
mdSelectCtrl.setIsPlaceholder(!text);
|
||||
// Use placeholder attribute, otherwise fallback to the md-input-container label
|
||||
var tmpPlaceholder = attr.placeholder || (containerCtrl && containerCtrl.label ? containerCtrl.label.text() : '');
|
||||
text = text || tmpPlaceholder || '';
|
||||
|
||||
if (attr.mdSelectedText) {
|
||||
text = $parse(attr.mdSelectedText)(scope);
|
||||
} else {
|
||||
// Use placeholder attribute, otherwise fallback to the md-input-container label
|
||||
var tmpPlaceholder = attr.placeholder ||
|
||||
(containerCtrl && containerCtrl.label ? containerCtrl.label.text() : '');
|
||||
text = text || tmpPlaceholder || '';
|
||||
}
|
||||
|
||||
var target = valueEl.children().eq(0);
|
||||
target.html(text);
|
||||
};
|
||||
@@ -13852,19 +13887,19 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
|
||||
}
|
||||
});
|
||||
|
||||
// Wait until postDigest so that we attach after ngModel's
|
||||
// blur listener so we can set untouched.
|
||||
$mdUtil.nextTick(function () {
|
||||
element.on('blur', function() {
|
||||
if (untouched) {
|
||||
untouched = false;
|
||||
ngModelCtrl.$setUntouched();
|
||||
// Attach before ngModel's blur listener to stop propagation of blur event
|
||||
// to prevent from setting $touched.
|
||||
element.on('blur', function(event) {
|
||||
if (untouched) {
|
||||
untouched = false;
|
||||
if (selectScope.isOpen) {
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
|
||||
if (selectScope.isOpen) return;
|
||||
containerCtrl && containerCtrl.setFocused(false);
|
||||
inputCheckValue();
|
||||
});
|
||||
if (selectScope.isOpen) return;
|
||||
containerCtrl && containerCtrl.setFocused(false);
|
||||
inputCheckValue();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13940,23 +13975,25 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
|
||||
}
|
||||
isDisabled = disabled;
|
||||
if (disabled) {
|
||||
element.attr({'tabindex': -1, 'aria-disabled': 'true'});
|
||||
element.off('click', openSelect);
|
||||
element.off('keydown', handleKeypress);
|
||||
element
|
||||
.attr({'aria-disabled': 'true'})
|
||||
.removeAttr('tabindex')
|
||||
.off('click', openSelect)
|
||||
.off('keydown', handleKeypress);
|
||||
} else {
|
||||
element.attr({'tabindex': attr.tabindex, 'aria-disabled': 'false'});
|
||||
element.on('click', openSelect);
|
||||
element.on('keydown', handleKeypress);
|
||||
element
|
||||
.attr({'tabindex': attr.tabindex, 'aria-disabled': 'false'})
|
||||
.on('click', openSelect)
|
||||
.on('keydown', handleKeypress);
|
||||
}
|
||||
});
|
||||
|
||||
if (!attr.disabled && !attr.ngDisabled) {
|
||||
element.attr({'tabindex': attr.tabindex, 'aria-disabled': 'false'});
|
||||
if (!attr.hasOwnProperty('disabled') && !attr.hasOwnProperty('ngDisabled')) {
|
||||
element.attr({'aria-disabled': 'false'});
|
||||
element.on('click', openSelect);
|
||||
element.on('keydown', handleKeypress);
|
||||
}
|
||||
|
||||
|
||||
var ariaAttrs = {
|
||||
role: 'listbox',
|
||||
'aria-expanded': 'false',
|
||||
@@ -14799,7 +14836,7 @@ function SelectProvider($$interimElementProvider) {
|
||||
}
|
||||
newOption = optionsArray[index];
|
||||
if (newOption.hasAttribute('disabled')) newOption = undefined;
|
||||
} while (!newOption && index < optionsArray.length - 1 && index > 0)
|
||||
} while (!newOption && index < optionsArray.length - 1 && index > 0);
|
||||
newOption && newOption.focus();
|
||||
opts.focusedNode = newOption;
|
||||
}
|
||||
@@ -15050,7 +15087,6 @@ function SelectProvider($$interimElementProvider) {
|
||||
}
|
||||
SelectProvider.$inject = ["$$interimElementProvider"];
|
||||
|
||||
|
||||
})();
|
||||
(function(){
|
||||
"use strict";
|
||||
@@ -15329,6 +15365,7 @@ function SidenavDirective($mdMedia, $mdUtil, $mdConstant, $mdTheming, $animate,
|
||||
*/
|
||||
function postLink(scope, element, attr, sidenavCtrl) {
|
||||
var lastParentOverFlow;
|
||||
var backdrop;
|
||||
var triggeringElement = null;
|
||||
var promise = $q.when(true);
|
||||
var isLockedOpenParsed = $parse(attr.mdIsLockedOpen);
|
||||
@@ -15341,7 +15378,11 @@ function SidenavDirective($mdMedia, $mdUtil, $mdConstant, $mdTheming, $animate,
|
||||
$mdMedia: $mdMedia
|
||||
});
|
||||
};
|
||||
var backdrop = !angular.isDefined(attr.mdDisableBackdrop) ? $mdUtil.createBackdrop(scope, "_md-sidenav-backdrop md-opaque ng-enter") : undefined;
|
||||
|
||||
// Only create the backdrop if the backdrop isn't disabled.
|
||||
if (!angular.isDefined(attr.mdDisableBackdrop)) {
|
||||
backdrop = $mdUtil.createBackdrop(scope, "_md-sidenav-backdrop md-opaque ng-enter");
|
||||
}
|
||||
|
||||
$mdTheming(element);
|
||||
|
||||
@@ -17204,18 +17245,22 @@ function MdToastProvider($$interimElementProvider) {
|
||||
// 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>';
|
||||
var templateRoot = document.createElement('md-template');
|
||||
templateRoot.innerHTML = template;
|
||||
|
||||
parsedTemplate.empty().append(wrappedContent);
|
||||
for (var i = 0; i < templateRoot.children.length; i++) {
|
||||
if (templateRoot.children[i].nodeName === 'MD-TOAST') {
|
||||
var wrapper = angular.element('<div class="md-toast-content">');
|
||||
wrapper.append(templateRoot.children[i].children);
|
||||
templateRoot.children[i].appendChild(wrapper[0]);
|
||||
}
|
||||
}
|
||||
|
||||
// Underlying interimElement expects a template string.
|
||||
return parsedTemplate[0].outerHTML;
|
||||
|
||||
return templateRoot.outerHTML;
|
||||
}
|
||||
|
||||
return shouldAddWrapper ?
|
||||
'<div class="md-toast-content">' + template + '</div>' :
|
||||
template || '';
|
||||
return template || '';
|
||||
}
|
||||
};
|
||||
|
||||
@@ -17225,6 +17270,8 @@ function MdToastProvider($$interimElementProvider) {
|
||||
var isSmScreen = !$mdMedia('gt-sm');
|
||||
|
||||
element = $mdUtil.extractElementByName(element, 'md-toast', true);
|
||||
options.element = element;
|
||||
|
||||
options.onSwipe = function(ev, gesture) {
|
||||
//Add the relevant swipe class to the element so it can animate correctly
|
||||
var swipe = ev.type.replace('$md.','');
|
||||
@@ -18827,7 +18874,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
|
||||
selectedItemWatchers = [],
|
||||
hasFocus = false,
|
||||
lastCount = 0,
|
||||
promiseFetch = false;
|
||||
fetchesInProgress = 0;
|
||||
|
||||
//-- public variables with handlers
|
||||
defineProperty('hidden', handleHiddenChange, true);
|
||||
@@ -18844,6 +18891,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
|
||||
ctrl.id = $mdUtil.nextUid();
|
||||
ctrl.isDisabled = null;
|
||||
ctrl.isRequired = null;
|
||||
ctrl.isReadonly = null;
|
||||
ctrl.hasNotFound = false;
|
||||
|
||||
//-- public methods
|
||||
@@ -18974,6 +19022,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
|
||||
var wait = parseInt($scope.delay, 10) || 0;
|
||||
$attrs.$observe('disabled', function (value) { ctrl.isDisabled = $mdUtil.parseAttributeBoolean(value, false); });
|
||||
$attrs.$observe('required', function (value) { ctrl.isRequired = $mdUtil.parseAttributeBoolean(value, false); });
|
||||
$attrs.$observe('readonly', function (value) { ctrl.isReadonly = $mdUtil.parseAttributeBoolean(value, false); });
|
||||
$scope.$watch('searchText', wait ? $mdUtil.debounce(handleSearchText, wait) : handleSearchText);
|
||||
$scope.$watch('selectedItem', selectedItemChange);
|
||||
angular.element($window).on('resize', positionDropdown);
|
||||
@@ -19421,7 +19470,9 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
|
||||
* Clears the searchText value and selected item.
|
||||
*/
|
||||
function clearValue () {
|
||||
// Set the loading to true so we don't see flashes of content
|
||||
// Set the loading to true so we don't see flashes of content.
|
||||
// The flashing will only occour when an async request is running.
|
||||
// So the loading process will stop when the results had been retrieved.
|
||||
setLoading(true);
|
||||
|
||||
// Reset our variables
|
||||
@@ -19429,9 +19480,6 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
|
||||
ctrl.matches = [];
|
||||
$scope.searchText = '';
|
||||
|
||||
// Tell the select to fire and select nothing
|
||||
select(-1);
|
||||
|
||||
// Per http://www.w3schools.com/jsref/event_oninput.asp
|
||||
var eventObj = document.createEvent('CustomEvent');
|
||||
eventObj.initCustomEvent('input', true, true, { value: $scope.searchText });
|
||||
@@ -19447,24 +19495,26 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
|
||||
function fetchResults (searchText) {
|
||||
var items = $scope.$parent.$eval(itemExpr),
|
||||
term = searchText.toLowerCase(),
|
||||
isList = angular.isArray(items);
|
||||
isList = angular.isArray(items),
|
||||
isPromise = !!items.then; // Every promise should contain a `then` property
|
||||
|
||||
if ( isList ) handleResults(items);
|
||||
else handleAsyncResults(items);
|
||||
if (isList) handleResults(items);
|
||||
else if (isPromise) handleAsyncResults(items);
|
||||
|
||||
function handleAsyncResults(items) {
|
||||
if ( !items ) return;
|
||||
|
||||
items = $q.when(items);
|
||||
fetchesInProgress++;
|
||||
setLoading(true);
|
||||
promiseFetch = true;
|
||||
|
||||
$mdUtil.nextTick(function () {
|
||||
items
|
||||
.then(handleResults)
|
||||
.finally(function(){
|
||||
setLoading(false);
|
||||
promiseFetch = false;
|
||||
if (--fetchesInProgress === 0) {
|
||||
setLoading(false);
|
||||
}
|
||||
});
|
||||
},true, $scope);
|
||||
}
|
||||
@@ -19472,9 +19522,16 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
|
||||
function handleResults (matches) {
|
||||
cache[ term ] = matches;
|
||||
if ((searchText || '') !== ($scope.searchText || '')) return; //-- just cache the results if old request
|
||||
|
||||
ctrl.matches = matches;
|
||||
ctrl.hidden = shouldHide();
|
||||
|
||||
// If loading is in progress, then we'll end the progress. This is needed for example,
|
||||
// when the `clear` button was clicked, because there we always show the loading process, to prevent flashing.
|
||||
if (ctrl.loading) setLoading(false);
|
||||
|
||||
if ($scope.selectOnMatch) selectItemOnMatch();
|
||||
|
||||
updateMessages();
|
||||
positionDropdown();
|
||||
}
|
||||
@@ -19523,6 +19580,10 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
|
||||
}
|
||||
}
|
||||
|
||||
function isPromiseFetching() {
|
||||
return fetchesInProgress !== 0;
|
||||
}
|
||||
|
||||
function scrollTo (offset) {
|
||||
elements.$.scrollContainer.controller('mdVirtualRepeatContainer').scrollTo(offset);
|
||||
}
|
||||
@@ -19530,7 +19591,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
|
||||
function notFoundVisible () {
|
||||
var textLength = (ctrl.scope.searchText || '').length;
|
||||
|
||||
return ctrl.hasNotFound && !hasMatches() && (!ctrl.loading || promiseFetch) && textLength >= getMinLength() && (hasFocus || noBlur) && !hasSelection();
|
||||
return ctrl.hasNotFound && !hasMatches() && (!ctrl.loading || isPromiseFetching()) && textLength >= getMinLength() && (hasFocus || noBlur) && !hasSelection();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -19631,6 +19692,7 @@ angular
|
||||
* @param {boolean=} md-autofocus If true, the autocomplete will be automatically focused when a `$mdDialog`,
|
||||
* `$mdBottomsheet` or `$mdSidenav`, which contains the autocomplete, is opening. <br/><br/>
|
||||
* Also the autocomplete will immediately focus the input element.
|
||||
* @param {boolean=} md-no-asterisk When present, asterisk will not be appended to the floating label
|
||||
* @param {boolean=} md-autoselect If true, the first item will be selected by default
|
||||
* @param {string=} md-menu-class This will be applied to the dropdown menu for styling
|
||||
* @param {string=} md-floating-label This will add a floating label to autocomplete and wrap it in
|
||||
@@ -19816,12 +19878,14 @@ function MdAutocomplete () {
|
||||
name="{{inputName}}"\
|
||||
autocomplete="off"\
|
||||
ng-required="$mdAutocompleteCtrl.isRequired"\
|
||||
ng-readonly="$mdAutocompleteCtrl.isReadonly"\
|
||||
ng-minlength="inputMinlength"\
|
||||
ng-maxlength="inputMaxlength"\
|
||||
ng-disabled="$mdAutocompleteCtrl.isDisabled"\
|
||||
ng-model="$mdAutocompleteCtrl.scope.searchText"\
|
||||
ng-keydown="$mdAutocompleteCtrl.keydown($event)"\
|
||||
ng-blur="$mdAutocompleteCtrl.blur()"\
|
||||
' + (attr.mdNoAsterisk != null ? 'md-no-asterisk="' + attr.mdNoAsterisk + '"' : '') + '\
|
||||
ng-focus="$mdAutocompleteCtrl.focus()"\
|
||||
aria-owns="ul-{{$mdAutocompleteCtrl.id}}"\
|
||||
' + (attr.mdSelectOnFocus != null ? 'md-select-on-focus=""' : '') + '\
|
||||
@@ -19842,6 +19906,7 @@ function MdAutocomplete () {
|
||||
autocomplete="off"\
|
||||
ng-required="$mdAutocompleteCtrl.isRequired"\
|
||||
ng-disabled="$mdAutocompleteCtrl.isDisabled"\
|
||||
ng-readonly="$mdAutocompleteCtrl.isReadonly"\
|
||||
ng-model="$mdAutocompleteCtrl.scope.searchText"\
|
||||
ng-keydown="$mdAutocompleteCtrl.keydown($event)"\
|
||||
ng-blur="$mdAutocompleteCtrl.blur()"\
|
||||
@@ -20559,7 +20624,7 @@ MdChipsCtrl.prototype.inputKeydown = function(event) {
|
||||
// Only append the chip and reset the chip buffer if the max chips limit isn't reached.
|
||||
if (this.hasMaxChipsReached()) return;
|
||||
|
||||
this.appendChip(chipBuffer);
|
||||
this.appendChip(chipBuffer.trim());
|
||||
this.resetChipBuffer();
|
||||
}
|
||||
};
|
||||
@@ -21130,6 +21195,7 @@ MdChipsCtrl.prototype.hasFocus = function () {
|
||||
ng-model="$mdChipsCtrl.chipBuffer"\
|
||||
ng-focus="$mdChipsCtrl.onInputFocus()"\
|
||||
ng-blur="$mdChipsCtrl.onInputBlur()"\
|
||||
ng-trim="false"\
|
||||
ng-keydown="$mdChipsCtrl.inputKeydown($event)">';
|
||||
|
||||
var CHIP_DEFAULT_TEMPLATE = '\
|
||||
@@ -21666,10 +21732,15 @@ angular
|
||||
*
|
||||
* When using Material Font Icons with ligatures:
|
||||
* <hljs lang="html">
|
||||
* <!-- For Material Design Icons -->
|
||||
* <!-- The class '.material-icons' is auto-added if a style has NOT been specified -->
|
||||
* <!--
|
||||
* For Material Design Icons
|
||||
* The class '.material-icons' is auto-added if a style has NOT been specified
|
||||
* since `material-icons` is the default fontset. So your markup:
|
||||
* -->
|
||||
* <md-icon> face </md-icon>
|
||||
* <!-- becomes this at runtime: -->
|
||||
* <md-icon md-font-set="material-icons"> face </md-icon>
|
||||
* <!-- If the fontset does not support ligature names, then we need to use the ligature unicode.-->
|
||||
* <md-icon>  </md-icon>
|
||||
* <!-- The class '.material-icons' must be manually added if other styles are also specified-->
|
||||
* <md-icon class="material-icons md-light md-48"> face </md-icon>
|
||||
@@ -21680,24 +21751,18 @@ angular
|
||||
* <hljs lang="js">
|
||||
* // Specify a font-icon style alias
|
||||
* angular.config(function($mdIconProvider) {
|
||||
* $mdIconProvider.fontSet('fa', 'fontawesome');
|
||||
* $mdIconProvider.fontSet('md', 'material-icons');
|
||||
* });
|
||||
* </hljs>
|
||||
*
|
||||
* <hljs lang="html">
|
||||
* <md-icon md-font-set="fa">email</md-icon>
|
||||
* <md-icon md-font-set="md">favorite</md-icon>
|
||||
* </hljs>
|
||||
*
|
||||
*/
|
||||
function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
|
||||
return {
|
||||
scope: {
|
||||
fontSet : '@mdFontSet',
|
||||
fontIcon: '@mdFontIcon',
|
||||
svgIcon : '@mdSvgIcon',
|
||||
svgSrc : '@mdSvgSrc'
|
||||
},
|
||||
restrict: 'E',
|
||||
link : postLink
|
||||
};
|
||||
@@ -21715,12 +21780,12 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
// If using a font-icon, then the textual name of the icon itself
|
||||
// provides the aria-label.
|
||||
|
||||
var label = attr.alt || scope.fontIcon || scope.svgIcon || element.text();
|
||||
var label = attr.alt || attr.mdFontIcon || attr.mdSvgIcon || element.text();
|
||||
var attrName = attr.$normalize(attr.$attr.mdSvgIcon || attr.$attr.mdSvgSrc || '');
|
||||
|
||||
if ( !attr['aria-label'] ) {
|
||||
|
||||
if (label != '' && !parentsHaveText() ) {
|
||||
if (label !== '' && !parentsHaveText() ) {
|
||||
|
||||
$mdAria.expect(element, 'aria-label', label);
|
||||
$mdAria.expect(element, 'role', 'img');
|
||||
@@ -21761,11 +21826,11 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
}
|
||||
|
||||
function prepareForFontIcon() {
|
||||
if (!scope.svgIcon && !scope.svgSrc) {
|
||||
if (scope.fontIcon) {
|
||||
element.addClass('md-font ' + scope.fontIcon);
|
||||
if (!attr.mdSvgIcon && !attr.mdSvgSrc) {
|
||||
if (attr.mdFontIcon) {
|
||||
element.addClass('md-font ' + attr.mdFontIcon);
|
||||
}
|
||||
element.addClass($mdIcon.fontSet(scope.fontSet));
|
||||
element.addClass($mdIcon.fontSet(attr.mdFontSet));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21796,6 +21861,22 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
* the `$mdIcon` service searches its registry for the associated source URL;
|
||||
* that URL is used to on-demand load and parse the SVG dynamically.
|
||||
*
|
||||
* **Notice:** Most font-icons libraries do not support ligatures (for example `fontawesome`).<br/>
|
||||
* In such cases you are not able to use the icon's ligature name - Like so:
|
||||
*
|
||||
* <hljs lang="html">
|
||||
* <md-icon md-font-set="fa">fa-bell</md-icon>
|
||||
* </hljs>
|
||||
*
|
||||
* You should instead use the given unicode, instead of the ligature name.
|
||||
*
|
||||
* <p ng-hide="true"> ##// Notice we can't use a hljs element here, because the characters will be escaped.</p>
|
||||
* ```html
|
||||
* <md-icon md-font-set="fa"></md-icon>
|
||||
* ```
|
||||
*
|
||||
* All unicode ligatures are prefixed with the `&#x` string.
|
||||
*
|
||||
* @usage
|
||||
* <hljs lang="js">
|
||||
* app.config(function($mdIconProvider) {
|
||||
@@ -21803,7 +21884,7 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
* // Configure URLs for icons specified by [set:]id.
|
||||
*
|
||||
* $mdIconProvider
|
||||
* .defaultFontSet( 'fontawesome' )
|
||||
* .defaultFontSet( 'fa' ) // This sets our default fontset className.
|
||||
* .defaultIconSet('my/app/icons.svg') // Register a default set of SVG icons
|
||||
* .iconSet('social', 'my/app/social.svg') // Register a named icon set of SVGs
|
||||
* .icon('android', 'my/app/android.svg') // Register a specific icon (by name)
|
||||
@@ -21955,7 +22036,29 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
* @usage
|
||||
* <hljs lang="js">
|
||||
* app.config(function($mdIconProvider) {
|
||||
* $mdIconProvider.defaultFontSet( 'fontawesome' );
|
||||
* $mdIconProvider.defaultFontSet( 'fa' );
|
||||
* });
|
||||
* </hljs>
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name $mdIconProvider#fontSet
|
||||
*
|
||||
* @description
|
||||
* When using a font set for `<md-icon>` you must specify the correct font classname in the `md-font-set`
|
||||
* attribute. If the fonset className is really long, your markup may become cluttered... an easy
|
||||
* solution is to define an `alias` for your fontset:
|
||||
*
|
||||
* @param {string} alias of the specified fontset.
|
||||
* @param {string} className of the fontset.
|
||||
*
|
||||
* @usage
|
||||
* <hljs lang="js">
|
||||
* app.config(function($mdIconProvider) {
|
||||
* // In this case, we set an alias for the `material-icons` fontset.
|
||||
* $mdIconProvider.fontSet('md', 'material-icons');
|
||||
* });
|
||||
* </hljs>
|
||||
*
|
||||
@@ -22093,9 +22196,9 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
|
||||
},
|
||||
|
||||
$get : ['$http', '$q', '$log', '$templateCache', function($http, $q, $log, $templateCache) {
|
||||
$get : ['$http', '$q', '$log', '$templateCache', '$mdUtil', function($http, $q, $log, $templateCache, $mdUtil) {
|
||||
this.preloadIcons($templateCache);
|
||||
return MdIconService(config, $http, $q, $log, $templateCache);
|
||||
return MdIconService(config, $http, $q, $log, $templateCache, $mdUtil);
|
||||
}]
|
||||
};
|
||||
|
||||
@@ -22150,7 +22253,7 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
*/
|
||||
|
||||
/* @ngInject */
|
||||
function MdIconService(config, $http, $q, $log, $templateCache) {
|
||||
function MdIconService(config, $http, $q, $log, $templateCache, $mdUtil) {
|
||||
var iconCache = {};
|
||||
var urlRegex = /[-\w@:%\+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%\+.~#?&//=]*)?/i;
|
||||
var dataUrlRegex = /^data:image\/svg\+xml[\s*;\w\-\=]*?(base64)?,(.*)$/i;
|
||||
@@ -22170,7 +22273,7 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
// If already loaded and cached, use a clone of the cached icon.
|
||||
// Otherwise either load by URL, or lookup in the registry and then load by URL, and cache.
|
||||
|
||||
if ( iconCache[id] ) return $q.when( iconCache[id].clone() );
|
||||
if ( iconCache[id] ) return $q.when( transformClone(iconCache[id]) );
|
||||
if ( urlRegex.test(id) || dataUrlRegex.test(id) ) return loadByURL(id).then( cacheIcon(id) );
|
||||
if ( id.indexOf(':') == -1 ) id = '$default:' + id;
|
||||
|
||||
@@ -22195,24 +22298,28 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
return result;
|
||||
}
|
||||
|
||||
function transformClone(cacheElement) {
|
||||
var clone = cacheElement.clone();
|
||||
var cacheSuffix = '_cache' + $mdUtil.nextUid();
|
||||
|
||||
// We need to modify for each cached icon the id attributes.
|
||||
// This is needed because SVG id's are treated as normal DOM ids
|
||||
// and should not have a duplicated id.
|
||||
if (clone.id) clone.id += cacheSuffix;
|
||||
angular.forEach(clone.querySelectorAll('[id]'), function (item) {
|
||||
item.id += cacheSuffix;
|
||||
});
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare and cache the loaded icon for the specified `id`
|
||||
*/
|
||||
function cacheIcon( id ) {
|
||||
|
||||
return function updateCache( _icon ) {
|
||||
var icon = isIcon(_icon) ? _icon : new Icon(_icon, config[id]);
|
||||
|
||||
//clear id attributes to prevent aria issues
|
||||
var elem = icon.element;
|
||||
elem.removeAttribute('id');
|
||||
|
||||
angular.forEach(elem.querySelectorAll('[id]'), function(item) {
|
||||
item.removeAttribute('id');
|
||||
});
|
||||
|
||||
iconCache[id] = icon;
|
||||
|
||||
return function updateCache( icon ) {
|
||||
iconCache[id] = isIcon(icon) ? icon : new Icon(icon, config[id]);
|
||||
|
||||
return iconCache[id].clone();
|
||||
};
|
||||
@@ -22344,7 +22451,7 @@ function mdIconDirective($mdIcon, $mdTheming, $mdAria ) {
|
||||
}
|
||||
|
||||
}
|
||||
MdIconService.$inject = ["config", "$http", "$q", "$log", "$templateCache"];
|
||||
MdIconService.$inject = ["config", "$http", "$q", "$log", "$templateCache", "$mdUtil"];
|
||||
|
||||
})();
|
||||
(function(){
|
||||
@@ -24268,19 +24375,19 @@ MdProgressCircularDirective.$inject = ["$$rAF", "$window", "$mdProgressCircular"
|
||||
*
|
||||
* @property {number} durationIndeterminate Duration of the indeterminate animation.
|
||||
* @property {number} startIndeterminate Indeterminate animation start point.
|
||||
* @param {number} endIndeterminate Indeterminate animation end point.
|
||||
* @param {number} rotationDurationIndeterminate Duration of the indeterminate rotating animation.
|
||||
* @param {function} easeFnIndeterminate Easing function to be used when animating
|
||||
* @property {number} endIndeterminate Indeterminate animation end point.
|
||||
* @property {number} rotationDurationIndeterminate Duration of the indeterminate rotating animation.
|
||||
* @property {function} easeFnIndeterminate Easing function to be used when animating
|
||||
* between the indeterminate values.
|
||||
*
|
||||
* @property {(function(object): object)} configure Used to modify the default options.
|
||||
*
|
||||
* @usage
|
||||
* <hljs lang="js">
|
||||
* myAppModule.config(function($mdProgressCircular) {
|
||||
* myAppModule.config(function($mdProgressCircularProvider) {
|
||||
*
|
||||
* // Example of changing the default progress options.
|
||||
* $mdProgressCircular.configure({
|
||||
* $mdProgressCircularProvider.configure({
|
||||
* progressSize: 100,
|
||||
* strokeWidth: 20,
|
||||
* duration: 800
|
||||
@@ -25568,8 +25675,8 @@ MdTabsTemplate.$inject = ["$compile", "$mdUtil"];
|
||||
|
||||
})();
|
||||
(function(){
|
||||
angular.module("material.core").constant("$MD_THEME_CSS", "/* Only used with Theme processes */html.md-THEME_NAME-theme, body.md-THEME_NAME-theme { color: '{{foreground-1}}'; background-color: '{{background-50}}'; }md-autocomplete.md-THEME_NAME-theme { background: '{{background-A100}}'; } md-autocomplete.md-THEME_NAME-theme[disabled] { background: '{{background-100}}'; } md-autocomplete.md-THEME_NAME-theme button md-icon path { fill: '{{background-600}}'; } md-autocomplete.md-THEME_NAME-theme button:after { background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions-container.md-THEME_NAME-theme { background: '{{background-A100}}'; } .md-autocomplete-suggestions-container.md-THEME_NAME-theme li { color: '{{background-900}}'; } .md-autocomplete-suggestions-container.md-THEME_NAME-theme li .highlight { color: '{{background-600}}'; } .md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions-container.md-THEME_NAME-theme li.selected { background: '{{background-200}}'; }md-backdrop { background-color: '{{background-900-0.0}}'; } md-backdrop.md-opaque.md-THEME_NAME-theme { background-color: '{{background-900-1.0}}'; }md-bottom-sheet.md-THEME_NAME-theme { background-color: '{{background-50}}'; border-top-color: '{{background-300}}'; } md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item { color: '{{foreground-1}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { background-color: '{{background-50}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme:not([disabled]):hover,.md-button.md-THEME_NAME-theme:not([disabled]):hover { background-color: '{{background-500-0.2}}'; }a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]).md-focused { background-color: '{{background-500-0.2}}'; }a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover,.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover { background-color: transparent; }a.md-button.md-THEME_NAME-theme.md-fab,.md-button.md-THEME_NAME-theme.md-fab { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; }a.md-button.md-THEME_NAME-theme.md-primary,.md-button.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab { color: '{{primary-contrast}}'; background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon { color: '{{primary-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover { background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused { background-color: '{{primary-600}}'; } a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon { color: '{{primary-color}}'; }a.md-button.md-THEME_NAME-theme.md-fab,.md-button.md-THEME_NAME-theme.md-fab { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).mdLine truncated
|
||||
angular.module("material.core").constant("$MD_THEME_CSS", "/* Only used with Theme processes */html.md-THEME_NAME-theme, body.md-THEME_NAME-theme { color: '{{foreground-1}}'; background-color: '{{background-color}}'; }md-autocomplete.md-THEME_NAME-theme { background: '{{background-A100}}'; } md-autocomplete.md-THEME_NAME-theme[disabled] { background: '{{background-100}}'; } md-autocomplete.md-THEME_NAME-theme button md-icon path { fill: '{{background-600}}'; } md-autocomplete.md-THEME_NAME-theme button:after { background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions-container.md-THEME_NAME-theme { background: '{{background-A100}}'; } .md-autocomplete-suggestions-container.md-THEME_NAME-theme li { color: '{{background-900}}'; } .md-autocomplete-suggestions-container.md-THEME_NAME-theme li .highlight { color: '{{background-600}}'; } .md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions-container.md-THEME_NAME-theme li.selected { background: '{{background-200}}'; }md-backdrop { background-color: '{{background-900-0.0}}'; } md-backdrop.md-opaque.md-THEME_NAME-theme { background-color: '{{background-900-1.0}}'; }md-bottom-sheet.md-THEME_NAME-theme { background-color: '{{background-50}}'; border-top-color: '{{background-300}}'; } md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item { color: '{{foreground-1}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { background-color: '{{background-50}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { color: '{{foreground-1}}'; }.md-button.md-THEME_NAME-theme:not([disabled]):hover { background-color: '{{background-500-0.2}}'; }.md-button.md-THEME_NAME-theme:not([disabled]).md-focused { background-color: '{{background-500-0.2}}'; }.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover { background-color: transparent; }.md-button.md-THEME_NAME-theme.md-fab { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } .md-button.md-THEME_NAME-theme.md-fab md-icon { color: '{{accent-contrast}}'; } .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-600}}'; } .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-600}}'; }.md-button.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab { color: '{{primary-contrast}}'; background-color: '{{primary-color}}'; } .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon { color: '{{primary-contrast}}'; } .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover { background-color: '{{primary-600}}'; } .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused { background-color: '{{primary-600}}'; } .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon { color: '{{primary-color}}'; }.md-button.md-THEME_NAME-theme.md-fab { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon { color: '{{accent-contrast}}'; } .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-600}}'; } .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-600}}'; }.md-button.md-THEME_NAME-theme.md-raised { color: '{{background-900}}'; background-color: '{{background-50}}'; } .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon { color: '{{background-900}}'; } .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover { background-color: '{{background-50}}'; } .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused { background-color: '{{background-200}}'; }.md-button.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; } .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab { color: '{{warn-contrast}}'; background-color: '{{warn-color}}'; } .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon { color: '{{warn-contrast}}'; } .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover { background-color: '{{warn-600}}'; } .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused { background-color: '{{warn-600}}'; } .md-button.md-THEME_NAME-theme.md-warn:Line truncated
|
||||
})();
|
||||
|
||||
|
||||
})(window, window.angular);;window.ngMaterial={version:{full: "1.0.6-master-ba130f2"}};
|
||||
})(window, window.angular);;window.ngMaterial={version:{full: "1.1.0-rc2-master-0fc0f3e"}};
|
||||
Reference in new issue
Block a user