(js/css) Update generated files

pull/258/head
InverseBot 2019-06-30 00:49:36 -04:00
parent 0fba247bd6
commit 6fb26ee2aa
14 changed files with 154 additions and 133 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
!function(){"use strict";function e(e,t){if(e.state("mail",{url:"/Mail",views:{mailboxes:{templateUrl:"UIxMailMainFrame",controller:"MailboxesController",controllerAs:"app"}},resolve:{stateAccounts:o}}).state("mail.account",{url:"/:accountId",abstract:!0,views:{mailbox:{template:"<ui-view/>"}},resolve:{stateAccount:r}}).state("mail.account.virtualMailbox",{url:"/virtual",views:{"mailbox@mail":{templateUrl:"UIxMailFolderTemplate",controller:"MailboxController",controllerAs:"mailbox"}},resolve:{stateMailbox:n}}).state("mail.account.virtualMailbox.message",{url:"/:mailboxId/:messageId",views:{message:{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},resolve:{stateMailbox:c,stateMessages:l,stateMessage:u},onEnter:d,onExit:m}).state("mail.account.inbox",{url:"/inbox",onEnter:i}).state("mail.account.mailbox",{url:"/:mailboxId",views:{"mailbox@mail":{templateUrl:"UIxMailFolderTemplate",controller:"MailboxController",controllerAs:"mailbox"}},resolve:{stateMailbox:s,stateMessages:l}}).state("mail.account.mailbox.message",{url:"/:messageId",views:{message:{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},onEnter:d,onExit:m,resolve:{stateMessage:u}}),t.rules.otherwise("/Mail/0/inbox"),navigator&&navigator.registerProtocolHandler){var a=window.location.origin+window.ApplicationBaseURL+"UIxMailPopupView#!/Mail/0/INBOX/new?%s";try{navigator.registerProtocolHandler("mailto",a,"SOGo")}catch(e){}}}function o(e,t,a){var o=a.$findAll(e.mailAccounts),r=[];return angular.forEach(o,function(t,e){var a=t.$getMailboxes();0===e?r.push(a.then(function(e){return t})):r.push(t)}),t.all(r)}function r(t,e){return _.find(e,function(e){return e.id==t.accountId})}function s(e,t,a,o,r){var i,l,n=o(t.mailboxId);return l=function(e){var t=_.find(e,function(e){return e.path==n});return t||angular.forEach(e,function(e){!t&&e.children&&0<e.children.length&&(t=l(e.children))}),t},r.selectedFolder&&!r.$virtualMode&&(r.selectedFolder.$isLoading=!0),a.$getMailboxes().then(function(e){if(i=l(e))return i.$topIndex=0,i.selectFolder(),i;$state.go("mail.account",{accountId:s.$account.id})})}function i(t,a,o){return t.injector().getAsync("stateAccount").then(function(e){return 0<e.$mailboxes.length?t.router.stateService.target("mail.account.mailbox",{accountId:e.id,mailboxId:a(e.$mailboxes[0].path)}):(o.selectedFolder=!1,t.router.stateService.target("mail"))})}function l(e,t,a,o){return a.$virtualMode?[]:o?o.$filter().catch(function(){return e.reject("Mailbox not found")}):e.reject("Mailbox doesn't exist")}function n(e,t){return t.$virtualMode?t.selectedFolder:e.reject("No virtual mailbox defined")}function c(e,t,a,o){var r=a(o.mailboxId);return t.$virtualMode?(t.selectedFolder.resetSelectedMessage(),_.find(t.selectedFolder.$mailboxes,function(e){return e.path==r})):e.reject("No virtual mailbox defined for message")}function u(e,t,a,o,r,i){var l;if(l=_.find(r.$messages,function(e){return e.uid==parseInt(a.messageId)}))return l.$reload({useCache:!0});o.go("mail.account.mailbox",{accountId:r.$account.id,mailboxId:t(r.path)})}function d(e,t){t.selectedMessage=parseInt(e.messageId)}function m(e){delete e.selectedMessage}function t(e,t,a,o,r){e.DebugEnabled||o.defaultErrorHandler(function(){}),t.onError({to:"mail.**"},function(e){"mail"!=e.to().name&&!e.ignored()&&e.error().message.indexOf("superseded")<0&&(a.error("transition error to "+e.to().name+": "+e.error().detail),r.selectedFolder=!1,o.go("mail"))})}angular.module("SOGo.MailerUI",["ngCookies","ui.router","ck","angularFileUpload","SOGo.Common","SOGo.ContactsUI","SOGo.SchedulerUI","ngAnimate","SOGo.PreferencesUI"]).config(e).run(t),e.$inject=["$stateProvider","$urlServiceProvider"],o.$inject=["$window","$q","Account"],r.$inject=["$stateParams","stateAccounts"],s.$inject=["$q","$stateParams","stateAccount","decodeUriFilter","Mailbox"],i.$inject=["$transition$","encodeUriFilter","Mailbox"],l.$inject=["$q","$state","Mailbox","stateMailbox"],n.$inject=["$q","Mailbox"],c.$inject=["$q","Mailbox","decodeUriFilter","$stateParams"],u.$inject=["Mailbox","encodeUriFilter","$stateParams","$state","stateMailbox","stateMessages"],d.$inject=["$stateParams","stateMailbox"],m.$inject=["stateMailbox"],t.$inject=["$window","$transitions","$log","$state","Mailbox"]}();
!function(){"use strict";function e(e,t){if(e.state("mail",{url:"/Mail",views:{mailboxes:{templateUrl:"UIxMailMainFrame",controller:"MailboxesController",controllerAs:"app"}},resolve:{stateAccounts:o}}).state("mail.account",{url:"/:accountId",abstract:!0,views:{mailbox:{template:"<ui-view/>"}},resolve:{stateAccount:r}}).state("mail.account.virtualMailbox",{url:"/virtual",views:{"mailbox@mail":{templateUrl:"UIxMailFolderTemplate",controller:"MailboxController",controllerAs:"mailbox"}},resolve:{stateMailbox:n}}).state("mail.account.virtualMailbox.message",{url:"/:mailboxId/:messageId",views:{message:{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},resolve:{stateMailbox:c,stateMessages:l,stateMessage:u},onEnter:d,onExit:m}).state("mail.account.inbox",{url:"/inbox",onEnter:i}).state("mail.account.mailbox",{url:"/:mailboxId",views:{"mailbox@mail":{templateUrl:"UIxMailFolderTemplate",controller:"MailboxController",controllerAs:"mailbox"}},resolve:{stateMailbox:s,stateMessages:l}}).state("mail.account.mailbox.message",{url:"/:messageId",views:{message:{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},onEnter:d,onExit:m,resolve:{stateMessage:u}}),t.rules.otherwise("/Mail/0/inbox"),navigator&&navigator.registerProtocolHandler){var a=window.location.origin+window.ApplicationBaseURL+"UIxMailPopupView#!/Mail/0/INBOX/new?%s";try{navigator.registerProtocolHandler("mailto",a,"SOGo")}catch(e){}}}function o(e,t,a){var o=a.$findAll(e.mailAccounts),r=[];return angular.forEach(o,function(t,e){var a=t.$getMailboxes();0===e?r.push(a.then(function(e){return t})):r.push(t)}),t.all(r)}function r(t,e){return _.find(e,function(e){return e.id==t.accountId})}function s(e,t,a,o,r){var i,l,n=o(o(t.mailboxId));return l=function(e){var t=_.find(e,function(e){return e.path==n});return t||angular.forEach(e,function(e){!t&&e.children&&0<e.children.length&&(t=l(e.children))}),t},r.selectedFolder&&!r.$virtualMode&&(r.selectedFolder.$isLoading=!0),a.$getMailboxes().then(function(e){if(i=l(e))return i.$topIndex=0,i.selectFolder(),i;$state.go("mail.account",{accountId:s.$account.id})})}function i(t,a,o){return t.injector().getAsync("stateAccount").then(function(e){return 0<e.$mailboxes.length?t.router.stateService.target("mail.account.mailbox",{accountId:e.id,mailboxId:a(e.$mailboxes[0].path)}):(o.selectedFolder=!1,t.router.stateService.target("mail"))})}function l(e,t,a,o){return a.$virtualMode?[]:o?o.$filter().catch(function(){return e.reject("Mailbox not found")}):e.reject("Mailbox doesn't exist")}function n(e,t){return t.$virtualMode?t.selectedFolder:e.reject("No virtual mailbox defined")}function c(e,t,a,o){var r=a(o.mailboxId);return t.$virtualMode?(t.selectedFolder.resetSelectedMessage(),_.find(t.selectedFolder.$mailboxes,function(e){return e.path==r})):e.reject("No virtual mailbox defined for message")}function u(e,t,a,o,r,i){var l;if(l=_.find(r.$messages,function(e){return e.uid==parseInt(a.messageId)}))return l.$reload({useCache:!0});o.go("mail.account.mailbox",{accountId:r.$account.id,mailboxId:t(r.path)})}function d(e,t){t.selectedMessage=parseInt(e.messageId)}function m(e){delete e.selectedMessage}function t(e,t,a,o,r){e.DebugEnabled||o.defaultErrorHandler(function(){}),t.onError({to:"mail.**"},function(e){"mail"!=e.to().name&&!e.ignored()&&e.error().message.indexOf("superseded")<0&&(a.error("transition error to "+e.to().name+": "+e.error().detail),r.selectedFolder=!1,o.go("mail"))})}angular.module("SOGo.MailerUI",["ngCookies","ui.router","ck","angularFileUpload","SOGo.Common","SOGo.ContactsUI","SOGo.SchedulerUI","ngAnimate","SOGo.PreferencesUI"]).config(e).run(t),e.$inject=["$stateProvider","$urlServiceProvider"],o.$inject=["$window","$q","Account"],r.$inject=["$stateParams","stateAccounts"],s.$inject=["$q","$stateParams","stateAccount","decodeUriFilter","Mailbox"],i.$inject=["$transition$","encodeUriFilter","Mailbox"],l.$inject=["$q","$state","Mailbox","stateMailbox"],n.$inject=["$q","Mailbox"],c.$inject=["$q","Mailbox","decodeUriFilter","$stateParams"],u.$inject=["Mailbox","encodeUriFilter","$stateParams","$state","stateMailbox","stateMessages"],d.$inject=["$stateParams","stateMailbox"],m.$inject=["stateMailbox"],t.$inject=["$window","$transitions","$log","$state","Mailbox"]}();
//# sourceMappingURL=Mailer.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,15 +4,15 @@
* This causes it to be incompatible with plugins that depend on @uirouter/core.
* We recommend switching to the ui-router-core.js and ui-router-angularjs.js bundles instead.
* For more information, see https://ui-router.github.io/blog/uirouter-for-angularjs-umd-bundles
* @version v1.0.20
* @version v1.0.22
* @link https://ui-router.github.io
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('angular')) :
typeof define === 'function' && define.amd ? define(['exports', 'angular'], factory) :
(factory((global['@uirouter/angularjs'] = {}),global.angular));
}(this, (function (exports,ng_from_import) { 'use strict';
(global = global || self, factory(global['@uirouter/angularjs'] = {}, global.angular));
}(this, function (exports, ng_from_import) { 'use strict';
/** @publicapi @module ng1 */ /** */
/** @hidden */ var ng_from_global = angular;
@ -2206,7 +2206,9 @@
*/
PathUtils.applyViewConfigs = function ($view, path, states) {
// Only apply the viewConfigs to the nodes for the given states
path.filter(function (node) { return inArray(states, node.state); }).forEach(function (node) {
path
.filter(function (node) { return inArray(states, node.state); })
.forEach(function (node) {
var viewDecls = values(node.state.views || {});
var subPath = PathUtils.subPath(path, function (n) { return n === node; });
var viewConfigs = viewDecls.map(function (view) { return $view.createViewConfig(subPath, view); });
@ -2690,15 +2692,18 @@
}
var getUrlBuilder = function ($urlMatcherFactoryProvider, root$$1) {
return function urlBuilder(stateObject) {
var state = stateObject.self;
var stateDec = stateObject.self;
// For future states, i.e., states whose name ends with `.**`,
// match anything that starts with the url prefix
if (state && state.url && state.name && state.name.match(/\.\*\*$/)) {
state.url += '{remainder:any}'; // match any path (.*)
if (stateDec && stateDec.url && stateDec.name && stateDec.name.match(/\.\*\*$/)) {
var newStateDec = {};
copy(stateDec, newStateDec);
newStateDec.url += '{remainder:any}'; // match any path (.*)
stateDec = newStateDec;
}
var parent = stateObject.parent;
var parsed = parseUrl(state.url);
var url = !parsed ? state.url : $urlMatcherFactoryProvider.compile(parsed.val, { state: state });
var parsed = parseUrl(stateDec.url);
var url = !parsed ? stateDec.url : $urlMatcherFactoryProvider.compile(parsed.val, { state: stateDec });
if (!url)
return null;
if (!$urlMatcherFactoryProvider.isMatcher(url))
@ -3560,7 +3565,7 @@
* - If a function, matchState calls the function with the state and returns true if the function's result is truthy.
* @returns {boolean}
*/
function matchState(state, criterion) {
function matchState(state, criterion, transition) {
var toMatch = isString(criterion) ? [criterion] : criterion;
function matchGlobs(_state) {
var globStrings = toMatch;
@ -3573,7 +3578,7 @@
return false;
}
var matchFn = (isFunction(toMatch) ? toMatch : matchGlobs);
return !!matchFn(state);
return !!matchFn(state, transition);
}
/**
* @internalapi
@ -3608,10 +3613,10 @@
* with `entering: (state) => true` which only matches when a state is actually
* being entered.
*/
RegisteredHook.prototype._matchingNodes = function (nodes, criterion) {
RegisteredHook.prototype._matchingNodes = function (nodes, criterion, transition) {
if (criterion === true)
return nodes;
var matching = nodes.filter(function (node) { return matchState(node.state, criterion); });
var matching = nodes.filter(function (node) { return matchState(node.state, criterion, transition); });
return matching.length ? matching : null;
};
/**
@ -3646,7 +3651,7 @@
* };
* ```
*/
RegisteredHook.prototype._getMatchingNodes = function (treeChanges) {
RegisteredHook.prototype._getMatchingNodes = function (treeChanges, transition) {
var _this = this;
var criteria = extend(this._getDefaultMatchCriteria(), this.matchCriteria);
var paths = values(this.tranSvc._pluginapi._getPathTypes());
@ -3656,7 +3661,7 @@
var isStateHook = pathtype.scope === exports.TransitionHookScope.STATE;
var path = treeChanges[pathtype.name] || [];
var nodes = isStateHook ? path : [tail(path)];
mn[pathtype.name] = _this._matchingNodes(nodes, criteria[pathtype.name]);
mn[pathtype.name] = _this._matchingNodes(nodes, criteria[pathtype.name], transition);
return mn;
}, {});
};
@ -3666,8 +3671,8 @@
* @returns an IMatchingNodes object, or null. If an IMatchingNodes object is returned, its values
* are the matching [[PathNode]]s for each [[HookMatchCriterion]] (to, from, exiting, retained, entering)
*/
RegisteredHook.prototype.matches = function (treeChanges) {
var matches = this._getMatchingNodes(treeChanges);
RegisteredHook.prototype.matches = function (treeChanges, transition) {
var matches = this._getMatchingNodes(treeChanges, transition);
// Check if all the criteria matched the TreeChanges object
var allMatched = values(matches).every(identity);
return allMatched ? matches : null;
@ -3736,7 +3741,7 @@
var transition = this.transition;
var treeChanges = transition.treeChanges();
// Find all the matching registered hooks for a given hook type
var matchingHooks = this.getMatchingHooks(hookType, treeChanges);
var matchingHooks = this.getMatchingHooks(hookType, treeChanges, transition);
if (!matchingHooks)
return [];
var baseHookOptions = {
@ -3745,7 +3750,7 @@
};
var makeTransitionHooks = function (hook) {
// Fetch the Nodes that caused this hook to match.
var matches = hook.matches(treeChanges);
var matches = hook.matches(treeChanges, transition);
// Select the PathNode[] that will be used as TransitionHook context objects
var matchingNodes = matches[hookType.criteriaMatchPath.name];
// Return an array of HookTuples
@ -3776,7 +3781,7 @@
*
* @returns an array of matched [[RegisteredHook]]s
*/
HookBuilder.prototype.getMatchingHooks = function (hookType, treeChanges) {
HookBuilder.prototype.getMatchingHooks = function (hookType, treeChanges, transition) {
var isCreate = hookType.hookPhase === exports.TransitionHookPhase.CREATE;
// Instance and Global hook registries
var $transitions = this.transition.router.transitionService;
@ -3785,7 +3790,7 @@
.map(function (reg) { return reg.getHooks(hookType.name); }) // Get named hooks from registries
.filter(assertPredicate(isArray, "broken event named: " + hookType.name)) // Sanity check
.reduce(unnestR, []) // Un-nest RegisteredHook[][] to RegisteredHook[] array
.filter(function (hook) { return hook.matches(treeChanges); }); // Only those satisfying matchCriteria
.filter(function (hook) { return hook.matches(treeChanges, transition); }); // Only those satisfying matchCriteria
};
return HookBuilder;
}());
@ -3969,8 +3974,8 @@
// TODO: Also compare parameters
return this.is({ to: compare.$to().name, from: compare.$from().name });
}
return !((compare.to && !matchState(this.$to(), compare.to)) ||
(compare.from && !matchState(this.$from(), compare.from)));
return !((compare.to && !matchState(this.$to(), compare.to, this)) ||
(compare.from && !matchState(this.$from(), compare.from, this)));
};
Transition.prototype.params = function (pathname) {
if (pathname === void 0) { pathname = 'to'; }
@ -4993,13 +4998,16 @@
return UrlMatcher;
}());
var __assign = (undefined && undefined.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
var __assign = (undefined && undefined.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
/** @internalapi */
var ParamFactory = /** @class */ (function () {
@ -7655,7 +7663,7 @@
*/
var rejectedTransitionHandler = function (trans) { return function (error) {
if (error instanceof Rejection) {
var isLatest = router.globals.lastStartedTransitionId === trans.$id;
var isLatest = router.globals.lastStartedTransitionId <= trans.$id;
if (error.type === exports.RejectType.IGNORED) {
isLatest && router.urlRouter.update();
// Consider ignored `Transition.run()` as a successful `transitionTo`
@ -8124,9 +8132,12 @@
}());
var __extends = (undefined && undefined.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
@ -8155,9 +8166,12 @@
}(BaseLocationServices));
var __extends$1 = (undefined && undefined.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
@ -8180,9 +8194,12 @@
}(BaseLocationServices));
var __extends$2 = (undefined && undefined.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
@ -8306,7 +8323,7 @@
BrowserLocationConfig.prototype.getBaseHref = function () {
var baseTag = document.getElementsByTagName('base')[0];
if (baseTag && baseTag.href) {
return baseTag.href.replace(/^(https?:)?\/\/[^/]*/, '');
return baseTag.href.replace(/^([^/:]*:)?\/\/[^/]*/, '');
}
return this._isHtml5 ? '/' : location.pathname || '/';
};
@ -10708,5 +10725,5 @@
Object.defineProperty(exports, '__esModule', { value: true });
})));
}));
//# sourceMappingURL=angular-ui-router.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long