chore(js/css): update generated files

This commit is contained in:
InverseBot
2020-04-29 17:05:48 -04:00
parent d99bbbb37e
commit 260aa1971b
4 changed files with 197 additions and 196 deletions
+62 -63
View File
@@ -4,7 +4,7 @@
* 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.25
* @version v1.0.26
* @link https://ui-router.github.io
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
@@ -23,8 +23,8 @@
*
* These utility functions are exported, but are subject to change without notice.
*
* @module common_hof
*/ /** */
* @packageDocumentation @module common_hof
*/
var __spreadArrays = (undefined && undefined.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
@@ -246,8 +246,8 @@
* These predicates return true/false based on the input.
* Although these functions are exported, they are subject to change without notice.
*
* @module common_predicates
*/ /** */
* @packageDocumentation @module common_predicates
*/
var toStr = Object.prototype.toString;
var tis = function (t) { return function (x) { return typeof x === t; }; };
var isUndefined = tis('undefined');
@@ -819,7 +819,7 @@
var silenceUncaughtInPromise = function (promise) { return promise.catch(function (e) { return 0; }) && promise; };
var silentRejection = function (error) { return silenceUncaughtInPromise(services.$q.reject(error)); };
/** @publicapi @module core */
/** @packageDocumentation @publicapi @module core */
/**
* Matches state names using glob-like pattern strings.
*
@@ -898,7 +898,7 @@
return Glob;
}());
/** @publicapi @module common */ /** */
/** @packageDocumentation @publicapi @module common */
var Queue = /** @class */ (function () {
function Queue(_items, _limit) {
if (_items === void 0) { _items = []; }
@@ -946,7 +946,7 @@
return Queue;
}());
/** @publicapi @module transition */ /** */
/** @packageDocumentation @publicapi @module transition */
(function (RejectType) {
/**
@@ -1062,8 +1062,8 @@
*
* Although these functions are exported, they are subject to change without notice.
*
* @module common_strings
*/ /** */
* @packageDocumentation @module common_strings
*/
/**
* Returns a string shortened to a maximum length
*
@@ -1189,7 +1189,10 @@
return pushR(acc, x);
}
/** workaround for missing console object in IE9 when dev tools haven't been opened o_O */
/**
* workaround for missing console object in IE9 when dev tools haven't been opened o_O
* @packageDocumentation @module core
*/
var noopConsoleStub = { log: noop, error: noop, table: noop };
function ie9Console(console) {
var bound = function (fn) { return Function.prototype.bind.call(fn, console); };
@@ -1252,7 +1255,7 @@
* app.run($trace => $trace.enable());
* ```
*
* @publicapi @module trace
* @packageDocumentation @publicapi @module trace
*/
/** @hidden */
function uiViewString(uiview) {
@@ -1455,7 +1458,7 @@
*/
var trace = new Trace();
/** @publicapi @module params */ /** */
/** @packageDocumentation @publicapi @module params */
/**
* An internal class which implements [[ParamTypeDefinition]].
*
@@ -1601,7 +1604,7 @@
});
}
/** @publicapi @module params */ /** */
/** @packageDocumentation @publicapi @module params */
/** @hidden */
var hasOwn = Object.prototype.hasOwnProperty;
/** @hidden */
@@ -1801,7 +1804,7 @@
return Param;
}());
/** @publicapi @module params */ /** */
/** @packageDocumentation @publicapi @module params */
/**
* A registry for parameter types.
*
@@ -1955,7 +1958,7 @@
}
initDefaultTypes();
/** @publicapi @module params */ /** */
/** @packageDocumentation @publicapi @module params */
/** @internalapi */
var StateParams = /** @class */ (function () {
function StateParams(params) {
@@ -1991,7 +1994,7 @@
return StateParams;
}());
/** @internalapi @module path */ /** */
/** @packageDocumentation @internalapi @module path */
/**
* A node in a [[TreeChanges]] path
*
@@ -2064,7 +2067,7 @@
return PathNode;
}());
/** @publicapi @module state */ /** */
/** @packageDocumentation @publicapi @module state */
/**
* Encapsulate the target (destination) state/params/options of a [[Transition]].
*
@@ -2198,11 +2201,13 @@
return new TargetState(this._stateRegistry, this._identifier, this._params, newOpts);
};
/** Returns true if the object has a state property that might be a state or state name */
TargetState.isDef = function (obj) { return obj && obj.state && (isString(obj.state) || isString(obj.state.name)); };
TargetState.isDef = function (obj) {
return obj && obj.state && (isString(obj.state) || (isObject(obj.state) && isString(obj.state.name)));
};
return TargetState;
}());
/** @internalapi @module path */ /** */
/** @packageDocumentation @internalapi @module path */
/**
* This class contains functions which convert TargetStates, Nodes and paths from one type to another.
*/
@@ -2378,7 +2383,7 @@
},
};
/** @publicapi @module resolve */ /** */
/** @packageDocumentation @publicapi @module resolve */
// TODO: explicitly make this user configurable
var defaultResolvePolicy = {
when: 'LAZY',
@@ -2484,7 +2489,7 @@
return Resolvable;
}());
/** @publicapi @module resolve */ /** */
/** @packageDocumentation @publicapi @module resolve */
var whens = resolvePolicies.when;
var ALL_WHENS = [whens.EAGER, whens.LAZY];
var EAGER_WHENS = [whens.EAGER];
@@ -2677,7 +2682,7 @@
return UIInjectorImpl;
}());
/** @publicapi @module state */ /** */
/** @packageDocumentation @publicapi @module state */
var parseUrl = function (url) {
if (!isString(url))
return false;
@@ -3059,12 +3064,14 @@
StateObject.isStateClass = function (stateDecl) {
return isFunction(stateDecl) && stateDecl['__uiRouterState'] === true;
};
/** Predicate which returns true if the object is a [[StateDeclaration]] object */
StateObject.isStateDeclaration = function (obj) { return isFunction(obj['$$state']); };
/** Predicate which returns true if the object is an internal [[StateObject]] object */
StateObject.isState = function (obj) { return isObject(obj['__stateObjectCache']); };
return StateObject;
}());
/** @publicapi @module state */ /** */
/** @packageDocumentation @publicapi @module state */
var StateMatcher = /** @class */ (function () {
function StateMatcher(_states) {
this._states = _states;
@@ -3121,7 +3128,7 @@
return StateMatcher;
}());
/** @publicapi @module state */ /** */
/** @packageDocumentation @publicapi @module state */
/** @internalapi */
var StateQueueManager = /** @class */ (function () {
function StateQueueManager(router, states, builder, listeners) {
@@ -3207,7 +3214,7 @@
return StateQueueManager;
}());
/** @publicapi @module state */ /** */
/** @packageDocumentation @publicapi @module state */
var StateRegistry = /** @class */ (function () {
/** @internalapi */
function StateRegistry(router) {
@@ -3368,7 +3375,7 @@
TransitionHookScope[TransitionHookScope["STATE"] = 1] = "STATE";
})(exports.TransitionHookScope || (exports.TransitionHookScope = {}));
/** @publicapi @module transition */ /** */
/** @packageDocumentation @publicapi @module transition */
var defaultOptions = {
current: noop,
transition: null,
@@ -3557,7 +3564,7 @@
return TransitionHook;
}());
/** @publicapi @module transition */ /** */
/** @packageDocumentation @publicapi @module transition */
/**
* Determines if the given state matches the matchCriteria
*
@@ -3706,7 +3713,7 @@
return hookRegistrationFn;
}
/** @publicapi @module transition */ /** */
/** @packageDocumentation @publicapi @module transition */
/**
* This class returns applicable TransitionHooks for a specific Transition instance.
*
@@ -3818,7 +3825,7 @@
};
}
/** @publicapi @module transition */ /** */
/** @packageDocumentation @publicapi @module transition */
/** @hidden */
var stateSelf = prop('self');
/**
@@ -4477,7 +4484,7 @@
return Transition;
}());
/** @publicapi @module url */ /** */
/** @packageDocumentation @publicapi @module url */
/** @hidden */
function quoteRegExp(str, param) {
var surroundPattern = ['', ''], result = str.replace(/[\\\[\]\^$*+?.()|{}]/g, '\\$&');
@@ -5100,7 +5107,6 @@
return UrlMatcherFactory;
}());
/** @publicapi @module url */ /** */
/**
* Creates a [[UrlRule]]
*
@@ -5121,11 +5127,11 @@
};
UrlRuleFactory.prototype.create = function (what, handler) {
var _this = this;
var isState = StateObject.isState;
var isState = StateObject.isState, isStateDeclaration = StateObject.isStateDeclaration;
var makeRule = pattern([
[isString, function (_what) { return makeRule(_this.compile(_what)); }],
[is(UrlMatcher), function (_what) { return _this.fromUrlMatcher(_what, handler); }],
[isState, function (_what) { return _this.fromState(_what, _this.router); }],
[or(isState, isStateDeclaration), function (_what) { return _this.fromState(_what, _this.router); }],
[is(RegExp), function (_what) { return _this.fromRegExp(_what, handler); }],
[isFunction, function (_what) { return new BaseUrlRule(_what, handler); }],
]);
@@ -5206,7 +5212,8 @@
* // Starts a transition to 'foo' with params: { fooId: '123', barId: '456' }
* ```
*/
UrlRuleFactory.prototype.fromState = function (state, router) {
UrlRuleFactory.prototype.fromState = function (stateOrDecl, router) {
var state = StateObject.isStateDeclaration(stateOrDecl) ? stateOrDecl.$$state() : stateOrDecl;
/**
* Handles match by transitioning to matched state
*
@@ -5293,7 +5300,7 @@
return BaseUrlRule;
}());
/** @publicapi @module url */ /** */
/** @packageDocumentation @publicapi @module url */
/** @hidden */
function appendBasePath(url, isHtml5, absolute, baseHref) {
if (baseHref === '/')
@@ -5426,7 +5433,7 @@
return UrlRouter;
}());
/** @publicapi @module view */ /** */
/** @packageDocumentation @publicapi @module view */
/**
* The View service
*
@@ -5712,7 +5719,7 @@
return ViewService;
}());
/** @publicapi @module core */ /** */
/** @packageDocumentation @publicapi @module core */
/**
* Global router state
*
@@ -6495,7 +6502,7 @@
return UrlService;
}());
/** @publicapi @module core */ /** */
/** @packageDocumentation @publicapi @module core */
/** @hidden */
var _routerInstance = 0;
/** @hidden */
@@ -6670,7 +6677,7 @@
return UIRouter;
}());
/** @internalapi @module hooks */ /** */
/** @packageDocumentation @internalapi @module hooks */
function addCoreResolvables(trans) {
trans.addResolvable(Resolvable.fromData(UIRouter, trans.router), '');
trans.addResolvable(Resolvable.fromData(Transition, trans), '');
@@ -6702,7 +6709,7 @@
});
};
/** @internalapi @module hooks */ /** */
/** @packageDocumentation @internalapi @module hooks */
/**
* A [[TransitionHookFn]] that redirects to a different state or params
*
@@ -6789,7 +6796,7 @@
return transitionService.onEnter({ entering: function (state) { return !!state.onEnter; } }, onEnterHook);
};
/** @internalapi @module hooks */ /** */
/** @packageDocumentation @internalapi @module hooks */
var RESOLVE_HOOK_PRIORITY = 1000;
/**
* A [[TransitionHookFn]] which resolves all EAGER Resolvables in the To Path
@@ -6841,7 +6848,7 @@
return transitionService.onFinish({}, resolveRemaining, { priority: RESOLVE_HOOK_PRIORITY });
};
/** @internalapi @module hooks */ /** */
/** @packageDocumentation @internalapi @module hooks */
/**
* A [[TransitionHookFn]] which waits for the views to load
*
@@ -7058,7 +7065,7 @@
return TransitionEventType;
}());
/** @internalapi @module hooks */ /** */
/** @packageDocumentation @internalapi @module hooks */
/**
* A [[TransitionHookFn]] that skips a transition if it should be ignored
*
@@ -7085,7 +7092,7 @@
return transitionService.onBefore({}, ignoredHook, { priority: -9999 });
};
/** @internalapi @module hooks */ /** */
/** @packageDocumentation @internalapi @module hooks */
/**
* A [[TransitionHookFn]] that rejects the Transition if it is invalid
*
@@ -7102,7 +7109,7 @@
return transitionService.onBefore({}, invalidTransitionHook, { priority: -10000 });
};
/** @publicapi @module transition */ /** */
/** @packageDocumentation @publicapi @module transition */
/**
* The default [[Transition]] options.
*
@@ -7302,7 +7309,7 @@
TransitionService.prototype._definePathType = function (name, hookScope) {
this._criteriaPaths[name] = { name: name, scope: hookScope };
};
/** * @hidden */
/** @hidden */
// tslint:disable-next-line
TransitionService.prototype._getPathTypes = function () {
return this._criteriaPaths;
@@ -7340,7 +7347,7 @@
return TransitionService;
}());
/** @publicapi @module state */ /** */
/** @packageDocumentation @publicapi @module state */
/**
* Provides state related service functions
*
@@ -7892,7 +7899,7 @@
return StateService;
}());
/** @internalapi @module vanilla */ /** */
/** @packageDocumentation @internalapi @module vanilla */
/**
* An angular1-like promise api
*
@@ -7946,7 +7953,7 @@
},
};
/** @internalapi @module vanilla */ /** */
/** @packageDocumentation @internalapi @module vanilla */
// globally available injectables
var globals = {};
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;
@@ -8039,7 +8046,7 @@
},
};
/** @internalapi @module vanilla */ /** */
/** @packageDocumentation @internalapi @module vanilla */
var keyValsToObjectR = function (accum, _a) {
var key = _a[0], val = _a[1];
if (!accum.hasOwnProperty(key)) {
@@ -8092,7 +8099,7 @@
};
}
/** @internalapi @module vanilla */ /** */
/** @packageDocumentation @internalapi @module vanilla */
/** A base `LocationServices` */
var BaseLocationServices = /** @class */ (function () {
function BaseLocationServices(router, fireAfterUpdate) {
@@ -8282,7 +8289,7 @@
return MemoryLocationConfig;
}());
/** @internalapi @module vanilla */
/** @packageDocumentation @internalapi @module vanilla */
/** A `LocationConfig` that delegates to the browser's `location` object */
var BrowserLocationConfig = /** @class */ (function () {
function BrowserLocationConfig(router, _isHtml5) {
@@ -8327,7 +8334,7 @@
return BrowserLocationConfig;
}());
/** @internalapi @module vanilla */ /** */
/** @packageDocumentation @internalapi @module vanilla */
function servicesPlugin(router) {
services.$injector = $injector;
services.$q = $q;
@@ -8340,14 +8347,6 @@
/** A `UIRouterPlugin` that gets/sets the current location from an in-memory object */
var memoryLocationPlugin = locationPluginFactory('vanilla.memoryLocation', false, MemoryLocationService, MemoryLocationConfig);
/**
* # Core classes and interfaces
*
* The classes and interfaces that are core to ui-router and do not belong
* to a more specific subsystem (such as resolve).
*
* @preferred @publicapi @module core
*/ /** */
/** @internalapi */
var UIRouterPluginBase = /** @class */ (function () {
function UIRouterPluginBase() {
@@ -8356,7 +8355,7 @@
return UIRouterPluginBase;
}());
/** @publicapi @module common */ /** */
/** @packageDocumentation @publicapi @module common */
var index = /*#__PURE__*/Object.freeze({
__proto__: null,