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
8f90aa96fe
commit
2c24901803
10 files changed
+246
-115
No files matched your search
+224
-93
@@ -2,7 +2,7 @@
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v1.1.1-master-d774b76
|
||||
* v1.1.1-master-b8357dc
|
||||
*/
|
||||
(function( window, angular, undefined ){
|
||||
"use strict";
|
||||
@@ -9842,7 +9842,7 @@ function MdDialogDirective($$rAF, $mdTheming, $mdDialog) {
|
||||
function MdDialogProvider($$interimElementProvider) {
|
||||
// Elements to capture and redirect focus when the user presses tab at the dialog boundary.
|
||||
advancedDialogOptions.$inject = ["$mdDialog", "$mdConstant"];
|
||||
dialogDefaultOptions.$inject = ["$mdDialog", "$mdAria", "$mdUtil", "$mdConstant", "$animate", "$document", "$window", "$rootElement", "$log", "$injector", "$mdTheming", "$interpolate"];
|
||||
dialogDefaultOptions.$inject = ["$mdDialog", "$mdAria", "$mdUtil", "$mdConstant", "$animate", "$document", "$window", "$rootElement", "$log", "$injector", "$mdTheming", "$interpolate", "$mdInteraction"];
|
||||
var topFocusTrap, bottomFocusTrap;
|
||||
|
||||
return $$interimElementProvider('$mdDialog')
|
||||
@@ -9921,7 +9921,7 @@ function MdDialogProvider($$interimElementProvider) {
|
||||
|
||||
/* @ngInject */
|
||||
function dialogDefaultOptions($mdDialog, $mdAria, $mdUtil, $mdConstant, $animate, $document, $window, $rootElement,
|
||||
$log, $injector, $mdTheming, $interpolate) {
|
||||
$log, $injector, $mdTheming, $interpolate, $mdInteraction) {
|
||||
|
||||
return {
|
||||
hasBackdrop: true,
|
||||
@@ -10081,7 +10081,10 @@ function MdDialogProvider($$interimElementProvider) {
|
||||
// Exposed cleanup function from the $mdCompiler.
|
||||
options.cleanupElement();
|
||||
|
||||
if (!options.$destroy) options.origin.focus();
|
||||
// Restores the focus to the origin element if the last interaction upon opening was a keyboard.
|
||||
if (!options.$destroy && options.originInteraction === 'keyboard') {
|
||||
options.origin.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10133,7 +10136,8 @@ function MdDialogProvider($$interimElementProvider) {
|
||||
options.openFrom = getBoundingClientRect(getDomElement(options.openFrom));
|
||||
|
||||
if ( options.targetEvent ) {
|
||||
options.origin = getBoundingClientRect(options.targetEvent.target, options.origin);
|
||||
options.origin = getBoundingClientRect(options.targetEvent.target, options.origin);
|
||||
options.originInteraction = $mdInteraction.getLastInteractionType();
|
||||
}
|
||||
|
||||
|
||||
@@ -10629,6 +10633,7 @@ function MdDividerDirective($mdTheming) {
|
||||
|
||||
function MdFabController($scope, $element, $animate, $mdUtil, $mdConstant, $timeout) {
|
||||
var vm = this;
|
||||
var initialAnimationAttempts = 0;
|
||||
|
||||
// NOTE: We use async eval(s) below to avoid conflicts with any existing digest loops
|
||||
|
||||
@@ -10649,12 +10654,23 @@ function MdDividerDirective($mdTheming) {
|
||||
$scope.$evalAsync("vm.isOpen = !vm.isOpen");
|
||||
};
|
||||
|
||||
setupDefaults();
|
||||
setupListeners();
|
||||
setupWatchers();
|
||||
/*
|
||||
* Angular Lifecycle hook for newer Angular versions.
|
||||
* Bindings are not guaranteed to have been assigned in the controller, but they are in the $onInit hook.
|
||||
*/
|
||||
vm.$onInit = function() {
|
||||
setupDefaults();
|
||||
setupListeners();
|
||||
setupWatchers();
|
||||
|
||||
var initialAnimationAttempts = 0;
|
||||
fireInitialAnimations();
|
||||
fireInitialAnimations();
|
||||
};
|
||||
|
||||
// For Angular 1.4 and older, where there are no lifecycle hooks but bindings are pre-assigned,
|
||||
// manually call the $onInit hook.
|
||||
if (angular.version.major === 1 && angular.version.minor <= 4) {
|
||||
this.$onInit();
|
||||
}
|
||||
|
||||
function setupDefaults() {
|
||||
// Set the default direction to 'down' if none is specified
|
||||
@@ -14911,6 +14927,16 @@ angular
|
||||
* @returns {!MdPanelRef}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name MdPanelRef#updateAnimation
|
||||
* @description
|
||||
* Updates the animation configuration for a panel. You can use this to change
|
||||
* the panel's animation without having to re-create it.
|
||||
*
|
||||
* @param {!MdPanelAnimation} animation
|
||||
*/
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* MdPanelPosition *
|
||||
@@ -15556,6 +15582,9 @@ function MdPanelRef(config, $injector) {
|
||||
/** @private @const {!angular.$mdUtil} */
|
||||
this._$mdUtil = $injector.get('$mdUtil');
|
||||
|
||||
/** @private @const {!angular.$mdTheming} */
|
||||
this._$mdTheming = $injector.get('$mdTheming');
|
||||
|
||||
/** @private @const {!angular.Scope} */
|
||||
this._$rootScope = $injector.get('$rootScope');
|
||||
|
||||
@@ -16098,7 +16127,8 @@ MdPanelRef.prototype._createPanel = function() {
|
||||
|
||||
|
||||
/**
|
||||
* Adds the styles for the panel, such as positioning and z-index.
|
||||
* Adds the styles for the panel, such as positioning and z-index. Also,
|
||||
* themes the panel element and panel container using `$mdTheming`.
|
||||
* @returns {!angular.$q.Promise<!MdPanelRef>}
|
||||
* @private
|
||||
*/
|
||||
@@ -16109,9 +16139,13 @@ MdPanelRef.prototype._addStyles = function() {
|
||||
self.panelEl.css('z-index', self.config['zIndex'] + 1);
|
||||
|
||||
var hideAndResolve = function() {
|
||||
// Theme the element and container.
|
||||
self._setTheming();
|
||||
|
||||
// Remove left: -9999px and add hidden class.
|
||||
self.panelEl.css('left', '');
|
||||
self.panelContainer.addClass(MD_PANEL_HIDDEN);
|
||||
|
||||
resolve(self);
|
||||
};
|
||||
|
||||
@@ -16127,17 +16161,31 @@ MdPanelRef.prototype._addStyles = function() {
|
||||
return; // Don't setup positioning.
|
||||
}
|
||||
|
||||
// Wait for angular to finish processing the template, then position it
|
||||
// correctly. This is necessary so that the panel will have a defined height
|
||||
// and width.
|
||||
// Wait for angular to finish processing the template
|
||||
self._$rootScope['$$postDigest'](function() {
|
||||
// Position it correctly. This is necessary so that the panel will have a
|
||||
// defined height and width.
|
||||
self._updatePosition(true);
|
||||
|
||||
// Theme the element and container.
|
||||
self._setTheming();
|
||||
|
||||
resolve(self);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Sets the `$mdTheming` classes on the `panelContainer` and `panelEl`.
|
||||
* @private
|
||||
*/
|
||||
MdPanelRef.prototype._setTheming = function() {
|
||||
this._$mdTheming(this.panelEl);
|
||||
this._$mdTheming(this.panelContainer);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Updates the position configuration of a panel
|
||||
* @param {!MdPanelPosition} position
|
||||
@@ -16305,15 +16353,17 @@ MdPanelRef.prototype._configureEscapeToClose = function() {
|
||||
*/
|
||||
MdPanelRef.prototype._configureClickOutsideToClose = function() {
|
||||
if (this.config['clickOutsideToClose']) {
|
||||
var target = this.panelContainer;
|
||||
var sourceElem;
|
||||
var target = this.config['propagateContainerEvents'] ?
|
||||
angular.element(document.body) :
|
||||
this.panelContainer;
|
||||
var sourceEl;
|
||||
|
||||
// Keep track of the element on which the mouse originally went down
|
||||
// so that we can only close the backdrop when the 'click' started on it.
|
||||
// A simple 'click' handler does not work,
|
||||
// it sets the target object as the element the mouse went down on.
|
||||
// A simple 'click' handler does not work, it sets the target object as the
|
||||
// element the mouse went down on.
|
||||
var mousedownHandler = function(ev) {
|
||||
sourceElem = ev.target;
|
||||
sourceEl = ev.target;
|
||||
};
|
||||
|
||||
// We check if our original element and the target is the backdrop
|
||||
@@ -16321,7 +16371,15 @@ MdPanelRef.prototype._configureClickOutsideToClose = function() {
|
||||
// panel we don't want to panel to close.
|
||||
var self = this;
|
||||
var mouseupHandler = function(ev) {
|
||||
if (sourceElem === target[0] && ev.target === target[0]) {
|
||||
if (self.config['propagateContainerEvents']) {
|
||||
|
||||
// We check if the sourceEl of the event is the panel element or one
|
||||
// of it's children. If it is not, then close the panel.
|
||||
if (sourceEl !== self.panelEl[0] && !self.panelEl[0].contains(sourceEl)) {
|
||||
self.close();
|
||||
}
|
||||
|
||||
} else if (sourceEl === target[0] && ev.target === target[0]) {
|
||||
ev.stopPropagation();
|
||||
ev.preventDefault();
|
||||
|
||||
@@ -16406,6 +16464,19 @@ MdPanelRef.prototype._configureTrapFocus = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Updates the animation of a panel.
|
||||
* @param {!MdPanelAnimation} animation
|
||||
*/
|
||||
MdPanelRef.prototype.updateAnimation = function(animation) {
|
||||
this.config['animation'] = animation;
|
||||
|
||||
if (this._backdropRef) {
|
||||
this._backdropRef.config.animation.duration(animation._rawDuration);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Animate the panel opening.
|
||||
* @returns {!angular.$q.Promise} A promise that is resolved when the panel has
|
||||
@@ -16635,6 +16706,7 @@ MdPanelRef.prototype.removeFromGroup = function(groupName) {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Possible default closeReasons for the close function.
|
||||
* @enum {string}
|
||||
@@ -16644,6 +16716,7 @@ MdPanelRef.closeReasons = {
|
||||
ESCAPE: 'escapeToClose',
|
||||
};
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* MdPanelPosition *
|
||||
*****************************************************************************/
|
||||
@@ -17138,7 +17211,7 @@ MdPanelPosition.prototype._reduceTranslateValues =
|
||||
* @private
|
||||
*/
|
||||
MdPanelPosition.prototype._setPanelPosition = function(panelEl) {
|
||||
// Remove the class in case it has been added before.
|
||||
// Remove the "position adjusted" class in case it has been added before.
|
||||
panelEl.removeClass('_md-panel-position-adjusted');
|
||||
|
||||
// Only calculate the position if necessary.
|
||||
@@ -17150,6 +17223,7 @@ MdPanelPosition.prototype._setPanelPosition = function(panelEl) {
|
||||
if (this._actualPosition) {
|
||||
this._calculatePanelPosition(panelEl, this._actualPosition);
|
||||
this._setTransform(panelEl);
|
||||
this._constrainToViewport(panelEl);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -17163,8 +17237,6 @@ MdPanelPosition.prototype._setPanelPosition = function(panelEl) {
|
||||
}
|
||||
}
|
||||
|
||||
// Class that can be used to re-style the panel if it was repositioned.
|
||||
panelEl.addClass('_md-panel-position-adjusted');
|
||||
this._constrainToViewport(panelEl);
|
||||
};
|
||||
|
||||
@@ -17176,6 +17248,8 @@ MdPanelPosition.prototype._setPanelPosition = function(panelEl) {
|
||||
*/
|
||||
MdPanelPosition.prototype._constrainToViewport = function(panelEl) {
|
||||
var margin = MdPanelPosition.viewportMargin;
|
||||
var initialTop = this._top;
|
||||
var initialLeft = this._left;
|
||||
|
||||
if (this.getTop()) {
|
||||
var top = parseInt(this.getTop());
|
||||
@@ -17200,8 +17274,15 @@ MdPanelPosition.prototype._constrainToViewport = function(panelEl) {
|
||||
this._left = left - (right - viewportWidth + margin) + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
// Class that can be used to re-style the panel if it was repositioned.
|
||||
panelEl.toggleClass(
|
||||
'_md-panel-position-adjusted',
|
||||
this._top !== initialTop || this._left !== initialLeft
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Switches between 'start' and 'end'.
|
||||
* @param {string} position Horizontal position of the panel
|
||||
@@ -17391,6 +17472,7 @@ MdPanelAnimation.prototype.closeTo = function(closeTo) {
|
||||
return this;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Specifies the duration of the animation in milliseconds.
|
||||
* @param {number|{open: number, close: number}} duration
|
||||
@@ -17416,6 +17498,7 @@ MdPanelAnimation.prototype.duration = function(duration) {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns the element and bounds for the animation target.
|
||||
* @param {string|!Element|{top: number, left: number}} location
|
||||
@@ -22674,7 +22757,7 @@ function mdToolbarDirective($$rAF, $mdConstant, $mdUtil, $mdTheming, $animate) {
|
||||
* @ngdoc module
|
||||
* @name material.components.tooltip
|
||||
*/
|
||||
MdTooltipDirective.$inject = ["$timeout", "$window", "$$rAF", "$document", "$interpolate", "$mdUtil", "$mdTheming", "$mdPanel", "$$mdTooltipRegistry"];
|
||||
MdTooltipDirective.$inject = ["$timeout", "$window", "$$rAF", "$document", "$interpolate", "$mdUtil", "$mdPanel", "$$mdTooltipRegistry"];
|
||||
angular
|
||||
.module('material.components.tooltip', [
|
||||
'material.core',
|
||||
@@ -22719,7 +22802,7 @@ angular
|
||||
* Defaults to bottom.
|
||||
*/
|
||||
function MdTooltipDirective($timeout, $window, $$rAF, $document, $interpolate,
|
||||
$mdUtil, $mdTheming, $mdPanel, $$mdTooltipRegistry) {
|
||||
$mdUtil, $mdPanel, $$mdTooltipRegistry) {
|
||||
|
||||
var ENTER_EVENTS = 'focus touchstart mouseenter';
|
||||
var LEAVE_EVENTS = 'blur touchcancel mouseleave';
|
||||
@@ -22754,9 +22837,6 @@ function MdTooltipDirective($timeout, $window, $$rAF, $document, $interpolate,
|
||||
var origin, position, panelPosition, panelRef, autohide, showTimeout,
|
||||
elementFocusedOnWindowBlur = null;
|
||||
|
||||
// Initialize the theming of the tooltip.
|
||||
$mdTheming(element);
|
||||
|
||||
// Set defaults
|
||||
setDefaults();
|
||||
|
||||
@@ -27652,20 +27732,15 @@ function MdContactChips($mdTheming, $mdUtil) {
|
||||
/** @final */
|
||||
this.$$rAF = $$rAF;
|
||||
|
||||
/** @final */
|
||||
this.$mdDateLocale = $mdDateLocale;
|
||||
|
||||
/** @final {Date} */
|
||||
this.today = this.dateUtil.createDateAtMidnight();
|
||||
|
||||
/** @type {!angular.NgModelController} */
|
||||
this.ngModelCtrl = null;
|
||||
|
||||
/**
|
||||
* The currently visible calendar view. Note the prefix on the scope value,
|
||||
* which is necessary, because the datepicker seems to reset the real one value if the
|
||||
* calendar is open, but the value on the datepicker's scope is empty.
|
||||
* @type {String}
|
||||
*/
|
||||
this.currentView = this._currentView || 'month';
|
||||
|
||||
/** @type {String} Class applied to the selected date cell. */
|
||||
this.SELECTED_DATE_CLASS = 'md-calendar-selected-date';
|
||||
|
||||
@@ -27760,18 +27835,42 @@ function MdContactChips($mdTheming, $mdUtil) {
|
||||
handleKeyElement.off('keydown', boundKeyHandler);
|
||||
});
|
||||
|
||||
if (this.minDate && this.minDate > $mdDateLocale.firstRenderableDate) {
|
||||
this.firstRenderableDate = this.minDate;
|
||||
} else {
|
||||
this.firstRenderableDate = $mdDateLocale.firstRenderableDate;
|
||||
// For Angular 1.4 and older, where there are no lifecycle hooks but bindings are pre-assigned,
|
||||
// manually call the $onInit hook.
|
||||
if (angular.version.major === 1 && angular.version.minor <= 4) {
|
||||
this.$onInit();
|
||||
}
|
||||
|
||||
if (this.maxDate && this.maxDate < $mdDateLocale.lastRenderableDate) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Angular Lifecycle hook for newer Angular versions.
|
||||
* Bindings are not guaranteed to have been assigned in the controller, but they are in the $onInit hook.
|
||||
*/
|
||||
CalendarCtrl.prototype.$onInit = function() {
|
||||
|
||||
/**
|
||||
* The currently visible calendar view. Note the prefix on the scope value,
|
||||
* which is necessary, because the datepicker seems to reset the real one value if the
|
||||
* calendar is open, but the value on the datepicker's scope is empty.
|
||||
* @type {String}
|
||||
*/
|
||||
this.currentView = this._currentView || 'month';
|
||||
|
||||
var dateLocale = this.$mdDateLocale;
|
||||
|
||||
if (this.minDate && this.minDate > dateLocale.firstRenderableDate) {
|
||||
this.firstRenderableDate = this.minDate;
|
||||
} else {
|
||||
this.firstRenderableDate = dateLocale.firstRenderableDate;
|
||||
}
|
||||
|
||||
if (this.maxDate && this.maxDate < dateLocale.lastRenderableDate) {
|
||||
this.lastRenderableDate = this.maxDate;
|
||||
} else {
|
||||
this.lastRenderableDate = $mdDateLocale.lastRenderableDate;
|
||||
this.lastRenderableDate = dateLocale.lastRenderableDate;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Sets up the controller's reference to ngModelController.
|
||||
@@ -28358,8 +28457,8 @@ function MdContactChips($mdTheming, $mdUtil) {
|
||||
// of repeated items that are linked, and then those elements have their bindings updated.
|
||||
// Since the months are not generated by bindings, we simply regenerate the entire thing
|
||||
// when the binding (offset) changes.
|
||||
scope.$watch(function() { return monthBodyCtrl.offset; }, function(offset, oldOffset) {
|
||||
if (offset !== oldOffset) {
|
||||
scope.$watch(function() { return monthBodyCtrl.offset; }, function(offset) {
|
||||
if (angular.isNumber(offset)) {
|
||||
monthBodyCtrl.generateContent();
|
||||
}
|
||||
});
|
||||
@@ -28873,8 +28972,8 @@ function MdContactChips($mdTheming, $mdUtil) {
|
||||
yearBodyCtrl.calendarCtrl = calendarCtrl;
|
||||
yearBodyCtrl.yearCtrl = yearCtrl;
|
||||
|
||||
scope.$watch(function() { return yearBodyCtrl.offset; }, function(offset, oldOffset) {
|
||||
if (offset !== oldOffset) {
|
||||
scope.$watch(function() { return yearBodyCtrl.offset; }, function(offset) {
|
||||
if (angular.isNumber(offset)) {
|
||||
yearBodyCtrl.generateContent();
|
||||
}
|
||||
});
|
||||
@@ -29918,12 +30017,8 @@ function MdContactChips($mdTheming, $mdUtil) {
|
||||
/** @final */
|
||||
this.$$rAF = $$rAF;
|
||||
|
||||
/**
|
||||
* Holds locale-specific formatters, parsers, labels etc. Allows
|
||||
* the user to override specific ones from the $mdDateLocale provider.
|
||||
* @type {!Object}
|
||||
*/
|
||||
this.locale = this.dateLocale ? angular.extend({}, $mdDateLocale, this.dateLocale) : $mdDateLocale;
|
||||
/** @final */
|
||||
this.$mdDateLocale = $mdDateLocale;
|
||||
|
||||
/**
|
||||
* The root document element. This is used for attaching a top-level click handler to
|
||||
@@ -30038,10 +30133,6 @@ function MdContactChips($mdTheming, $mdUtil) {
|
||||
$mdTheming($element);
|
||||
$mdTheming(angular.element(this.calendarPane));
|
||||
|
||||
this.installPropertyInterceptors();
|
||||
this.attachChangeListeners();
|
||||
this.attachInteractionListeners();
|
||||
|
||||
var self = this;
|
||||
|
||||
$scope.$on('$destroy', function() {
|
||||
@@ -30059,8 +30150,33 @@ function MdContactChips($mdTheming, $mdUtil) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// For Angular 1.4 and older, where there are no lifecycle hooks but bindings are pre-assigned,
|
||||
// manually call the $onInit hook.
|
||||
if (angular.version.major === 1 && angular.version.minor <= 4) {
|
||||
this.$onInit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Angular Lifecycle hook for newer Angular versions.
|
||||
* Bindings are not guaranteed to have been assigned in the controller, but they are in the $onInit hook.
|
||||
*/
|
||||
DatePickerCtrl.prototype.$onInit = function() {
|
||||
|
||||
/**
|
||||
* Holds locale-specific formatters, parsers, labels etc. Allows
|
||||
* the user to override specific ones from the $mdDateLocale provider.
|
||||
* @type {!Object}
|
||||
*/
|
||||
this.locale = this.dateLocale ? angular.extend({}, this.$mdDateLocale, this.dateLocale) : this.$mdDateLocale;
|
||||
|
||||
this.installPropertyInterceptors();
|
||||
this.attachChangeListeners();
|
||||
this.attachInteractionListeners();
|
||||
};
|
||||
|
||||
/**
|
||||
* Sets up the controller's reference to ngModelController and
|
||||
* applies Angular's `input[type="date"]` directive.
|
||||
@@ -33797,38 +33913,9 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
|
||||
destroyed = false,
|
||||
loaded = false;
|
||||
|
||||
// define one-way bindings
|
||||
defineOneWayBinding('stretchTabs', handleStretchTabs);
|
||||
|
||||
// define public properties with change handlers
|
||||
defineProperty('focusIndex', handleFocusIndexChange, ctrl.selectedIndex || 0);
|
||||
defineProperty('offsetLeft', handleOffsetChange, 0);
|
||||
defineProperty('hasContent', handleHasContent, false);
|
||||
defineProperty('maxTabWidth', handleMaxTabWidth, getMaxTabWidth());
|
||||
defineProperty('shouldPaginate', handleShouldPaginate, false);
|
||||
|
||||
// define boolean attributes
|
||||
defineBooleanAttribute('noInkBar', handleInkBar);
|
||||
defineBooleanAttribute('dynamicHeight', handleDynamicHeight);
|
||||
defineBooleanAttribute('noPagination');
|
||||
defineBooleanAttribute('swipeContent');
|
||||
defineBooleanAttribute('noDisconnect');
|
||||
defineBooleanAttribute('autoselect');
|
||||
defineBooleanAttribute('noSelectClick');
|
||||
defineBooleanAttribute('centerTabs', handleCenterTabs, false);
|
||||
defineBooleanAttribute('enableDisconnect');
|
||||
|
||||
// define public properties
|
||||
ctrl.scope = $scope;
|
||||
ctrl.parent = $scope.$parent;
|
||||
ctrl.tabs = [];
|
||||
ctrl.lastSelectedIndex = null;
|
||||
ctrl.hasFocus = false;
|
||||
ctrl.styleTabItemFocus = false;
|
||||
ctrl.shouldCenterTabs = shouldCenterTabs();
|
||||
ctrl.tabContentPrefix = 'tab-content-';
|
||||
|
||||
// define public methods
|
||||
// Define public methods
|
||||
ctrl.$onInit = $onInit;
|
||||
ctrl.updatePagination = $mdUtil.debounce(updatePagination, 100);
|
||||
ctrl.redirectFocus = redirectFocus;
|
||||
ctrl.attachRipple = attachRipple;
|
||||
@@ -33848,12 +33935,56 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
|
||||
ctrl.updateTabOrder = $mdUtil.debounce(updateTabOrder, 100);
|
||||
ctrl.getFocusedTabId = getFocusedTabId;
|
||||
|
||||
init();
|
||||
// For Angular 1.4 and older, where there are no lifecycle hooks but bindings are pre-assigned,
|
||||
// manually call the $onInit hook.
|
||||
if (angular.version.major === 1 && angular.version.minor <= 4) {
|
||||
this.$onInit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform initialization for the controller, setup events and watcher(s)
|
||||
* Angular Lifecycle hook for newer Angular versions.
|
||||
* Bindings are not guaranteed to have been assigned in the controller, but they are in the $onInit hook.
|
||||
*/
|
||||
function init () {
|
||||
function $onInit() {
|
||||
// Define one-way bindings
|
||||
defineOneWayBinding('stretchTabs', handleStretchTabs);
|
||||
|
||||
// Define public properties with change handlers
|
||||
defineProperty('focusIndex', handleFocusIndexChange, ctrl.selectedIndex || 0);
|
||||
defineProperty('offsetLeft', handleOffsetChange, 0);
|
||||
defineProperty('hasContent', handleHasContent, false);
|
||||
defineProperty('maxTabWidth', handleMaxTabWidth, getMaxTabWidth());
|
||||
defineProperty('shouldPaginate', handleShouldPaginate, false);
|
||||
|
||||
// Define boolean attributes
|
||||
defineBooleanAttribute('noInkBar', handleInkBar);
|
||||
defineBooleanAttribute('dynamicHeight', handleDynamicHeight);
|
||||
defineBooleanAttribute('noPagination');
|
||||
defineBooleanAttribute('swipeContent');
|
||||
defineBooleanAttribute('noDisconnect');
|
||||
defineBooleanAttribute('autoselect');
|
||||
defineBooleanAttribute('noSelectClick');
|
||||
defineBooleanAttribute('centerTabs', handleCenterTabs, false);
|
||||
defineBooleanAttribute('enableDisconnect');
|
||||
|
||||
// Define public properties
|
||||
ctrl.scope = $scope;
|
||||
ctrl.parent = $scope.$parent;
|
||||
ctrl.tabs = [];
|
||||
ctrl.lastSelectedIndex = null;
|
||||
ctrl.hasFocus = false;
|
||||
ctrl.styleTabItemFocus = false;
|
||||
ctrl.shouldCenterTabs = shouldCenterTabs();
|
||||
ctrl.tabContentPrefix = 'tab-content-';
|
||||
|
||||
// Setup the tabs controller after all bindings are available.
|
||||
setupTabsController();
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform setup for the controller, setup events and watcher(s)
|
||||
*/
|
||||
function setupTabsController () {
|
||||
ctrl.selectedIndex = ctrl.selectedIndex || 0;
|
||||
compileTemplate();
|
||||
configureWatchers();
|
||||
@@ -34982,8 +35113,8 @@ function MdTabsTemplate ($compile, $mdUtil) {
|
||||
|
||||
})();
|
||||
(function(){
|
||||
angular.module("material.core").constant("$MD_THEME_CSS", "md-autocomplete.md-THEME_NAME-theme{background:'{{background-A100}}'}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){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.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover{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}}';color:'{{foreground-1}}'}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{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 md-icon{color:'{{accent-contrast}}'}.md-button.md-THEME_NAME-theme.md-primary{color:'{{primary-color}}'}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:'{{primary-contrast}}';background-color:'{{primary-color}}'}.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{color:'{{primary-contrast}}'}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.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]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{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]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:'{{accent-A700}}'}.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-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:'{{warn-contrast}}';background-color:'{{warn-color}}'}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:'{{warn-contrast}}'}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:'{{warn-600}}'}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:'{{warn-color}}'}.md-button.md-THEME_NAME-theme.md-accent{color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:'{{accent-contrast}}';background-color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:'{{accent-contrast}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:'{{accent-A700}}'}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEMELine truncated
|
||||
angular.module("material.core").constant("$MD_THEME_CSS", "md-autocomplete.md-THEME_NAME-theme{background:'{{background-A100}}'}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){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.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover{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}}';color:'{{foreground-1}}'}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{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 md-icon{color:'{{accent-contrast}}'}.md-button.md-THEME_NAME-theme.md-primary{color:'{{primary-color}}'}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:'{{primary-contrast}}';background-color:'{{primary-color}}'}.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{color:'{{primary-contrast}}'}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.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]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{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]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:'{{accent-A700}}'}.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-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:'{{warn-contrast}}';background-color:'{{warn-color}}'}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:'{{warn-contrast}}'}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:'{{warn-600}}'}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:'{{warn-color}}'}.md-button.md-THEME_NAME-theme.md-accent{color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:'{{accent-contrast}}';background-color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:'{{accent-contrast}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:'{{accent-A700}}'}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEMELine truncated
|
||||
})();
|
||||
|
||||
|
||||
})(window, window.angular);;window.ngMaterial={version:{full: "1.1.1-master-d774b76"}};
|
||||
})(window, window.angular);;window.ngMaterial={version:{full: "1.1.1-master-b8357dc"}};
|
||||
Reference in new issue
Block a user