chore(js/css): update generated files

pull/273/head
Francis Lachapelle 2020-08-10 10:56:55 -04:00
parent d72ab79496
commit ec02147281
9 changed files with 56 additions and 70 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

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* This causes it to be incompatible with plugins that depend on @uirouter/core. * 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. * 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 * For more information, see https://ui-router.github.io/blog/uirouter-for-angularjs-umd-bundles
* @version v1.0.27 * @version v1.0.28
* @link https://ui-router.github.io * @link https://ui-router.github.io
* @license MIT License, http://www.opensource.org/licenses/MIT * @license MIT License, http://www.opensource.org/licenses/MIT
*/ */
@ -8415,6 +8415,7 @@
UIRouterPluginBase: UIRouterPluginBase UIRouterPluginBase: UIRouterPluginBase
}); });
/** @publicapi @module ng1 */ /** */
/** @internalapi */ /** @internalapi */
function getNg1ViewConfigFactory() { function getNg1ViewConfigFactory() {
var templateFactory = null; var templateFactory = null;
@ -8868,7 +8869,7 @@
* @internalapi * @internalapi
*/ */
var getStateHookBuilder = function (hookName) { var getStateHookBuilder = function (hookName) {
return function stateHookBuilder(stateObject, parentFn) { return function stateHookBuilder(stateObject) {
var hook = stateObject[hookName]; var hook = stateObject[hookName];
var pathname = hookName === 'onExit' ? 'from' : 'to'; var pathname = hookName === 'onExit' ? 'from' : 'to';
function decoratedNg1Hook(trans, state) { function decoratedNg1Hook(trans, state) {
@ -8915,6 +8916,7 @@
return x != null ? x.toString().replace(/(~~|~2F)/g, function (m) { return ({ '~~': '~', '~2F': '/' }[m]); }) : x; return x != null ? x.toString().replace(/(~~|~2F)/g, function (m) { return ({ '~~': '~', '~2F': '/' }[m]); }) : x;
}; };
}; };
// eslint-disable-next-line @typescript-eslint/no-empty-function
Ng1LocationServices.prototype.dispose = function () { }; Ng1LocationServices.prototype.dispose = function () { };
Ng1LocationServices.prototype.onChange = function (callback) { Ng1LocationServices.prototype.onChange = function (callback) {
var _this = this; var _this = this;
@ -9149,23 +9151,14 @@
return UrlRouterProvider; return UrlRouterProvider;
}()); }());
/** /* eslint-disable @typescript-eslint/no-empty-function */
* # Angular 1 types
*
* UI-Router core provides various Typescript types which you can use for code completion and validating parameter values, etc.
* The customizations to the core types for Angular UI-Router are documented here.
*
* The optional [[$resolve]] service is also documented here.
*
* @preferred @publicapi @module ng1
*/ /** */
ng.module('ui.router.angular1', []); ng.module('ui.router.angular1', []);
var mod_init = ng.module('ui.router.init', ['ng']); var mod_init = ng.module('ui.router.init', ['ng']);
var mod_util = ng.module('ui.router.util', ['ui.router.init']); var mod_util = ng.module('ui.router.util', ['ui.router.init']);
var mod_rtr = ng.module('ui.router.router', ['ui.router.util']); var mod_rtr = ng.module('ui.router.router', ['ui.router.util']);
var mod_state = ng.module('ui.router.state', ['ui.router.router', 'ui.router.util', 'ui.router.angular1']); var mod_state = ng.module('ui.router.state', ['ui.router.router', 'ui.router.util', 'ui.router.angular1']);
var mod_main = ng.module('ui.router', ['ui.router.init', 'ui.router.state', 'ui.router.angular1']); var mod_main = ng.module('ui.router', ['ui.router.init', 'ui.router.state', 'ui.router.angular1']);
var mod_cmpt = ng.module('ui.router.compat', ['ui.router']); // tslint:disable-line var mod_cmpt = ng.module('ui.router.compat', ['ui.router']);
var router = null; var router = null;
$uiRouterProvider.$inject = ['$locationProvider']; $uiRouterProvider.$inject = ['$locationProvider'];
/** This angular 1 provider instantiates a Router and exposes its services via the angular injector */ /** This angular 1 provider instantiates a Router and exposes its services via the angular injector */
@ -9209,7 +9202,7 @@
services.$injector = $injector; services.$injector = $injector;
services.$q = $q; services.$q = $q;
// https://github.com/angular-ui/ui-router/issues/3678 // https://github.com/angular-ui/ui-router/issues/3678
if (!$injector.hasOwnProperty('strictDi')) { if (!Object.prototype.hasOwnProperty.call($injector, 'strictDi')) {
try { try {
$injector.invoke(function (checkStrictDi) { }); $injector.invoke(function (checkStrictDi) { });
} }
@ -9265,21 +9258,13 @@
return tuples.reduce(applyPairs, {}); return tuples.reduce(applyPairs, {});
}; };
/** /* eslint-disable @typescript-eslint/no-empty-interface */
* # Angular 1 Directives
*
* These are the directives included in UI-Router for Angular 1.
* These directives are used in templates to create viewports and link/navigate to states.
*
* @preferred @publicapi @module directives
*/ /** */
/** @hidden */ /** @hidden */
function parseStateRef(ref) { function parseStateRef(ref) {
var parsed;
var paramsOnly = ref.match(/^\s*({[^}]*})\s*$/); var paramsOnly = ref.match(/^\s*({[^}]*})\s*$/);
if (paramsOnly) if (paramsOnly)
ref = '(' + paramsOnly[1] + ')'; ref = '(' + paramsOnly[1] + ')';
parsed = ref.replace(/\n/g, ' ').match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/); var parsed = ref.replace(/\n/g, ' ').match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);
if (!parsed || parsed.length !== 4) if (!parsed || parsed.length !== 4)
throw new Error("Invalid state ref '" + ref + "'"); throw new Error("Invalid state ref '" + ref + "'");
return { state: parsed[1] || null, paramExpr: parsed[3] || null }; return { state: parsed[1] || null, paramExpr: parsed[3] || null };
@ -9312,7 +9297,7 @@
function clickHook(el, $state, $timeout, type, getDef) { function clickHook(el, $state, $timeout, type, getDef) {
return function (e) { return function (e) {
var button = e.which || e.button, target = getDef(); var button = e.which || e.button, target = getDef();
if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || el.attr('target'))) { if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || el.attr('target'))) {
// HACK: This is to allow ng-clicks to be processed before the transition is initiated: // HACK: This is to allow ng-clicks to be processed before the transition is initiated:
var transition_1 = $timeout(function () { var transition_1 = $timeout(function () {
if (!el.attr('disabled')) { if (!el.attr('disabled')) {
@ -9505,7 +9490,6 @@
var type = getTypeInfo(element); var type = getTypeInfo(element);
var active = uiSrefActive[1] || uiSrefActive[0]; var active = uiSrefActive[1] || uiSrefActive[0];
var unlinkInfoFn = null; var unlinkInfoFn = null;
var hookFn;
var rawDef = {}; var rawDef = {};
var getDef = function () { return processedDef($state, element, rawDef); }; var getDef = function () { return processedDef($state, element, rawDef); };
var ref = parseStateRef(attrs.uiSref); var ref = parseStateRef(attrs.uiSref);
@ -9532,7 +9516,7 @@
scope.$on('$destroy', $uiRouter.transitionService.onSuccess({}, update)); scope.$on('$destroy', $uiRouter.transitionService.onSuccess({}, update));
if (!type.clickable) if (!type.clickable)
return; return;
hookFn = clickHook(element, $state, $timeout, type, getDef); var hookFn = clickHook(element, $state, $timeout, type, getDef);
bindEvents(element, scope, hookFn, rawDef.uiStateOpts); bindEvents(element, scope, hookFn, rawDef.uiStateOpts);
}, },
}; };
@ -10056,6 +10040,7 @@
* ``` * ```
*/ */
var uiView; var uiView;
// eslint-disable-next-line prefer-const
uiView = [ uiView = [
'$view', '$view',
'$animate', '$animate',
@ -10063,7 +10048,7 @@
'$interpolate', '$interpolate',
'$q', '$q',
function $ViewDirective($view, $animate, $uiViewScroll, $interpolate, $q) { function $ViewDirective($view, $animate, $uiViewScroll, $interpolate, $q) {
function getRenderer(attrs, scope) { function getRenderer() {
return { return {
enter: function (element, target, cb) { enter: function (element, target, cb) {
if (ng.version.minor > 2) { if (ng.version.minor > 2) {
@ -10099,7 +10084,7 @@
compile: function (tElement, tAttrs, $transclude) { compile: function (tElement, tAttrs, $transclude) {
return function (scope, $element, attrs) { return function (scope, $element, attrs) {
var onloadExp = attrs['onload'] || '', autoScrollExp = attrs['autoscroll'], renderer = getRenderer(), inherited = $element.inheritedData('$uiView') || rootData, name = $interpolate(attrs['uiView'] || attrs['name'] || '')(scope) || '$default'; var onloadExp = attrs['onload'] || '', autoScrollExp = attrs['autoscroll'], renderer = getRenderer(), inherited = $element.inheritedData('$uiView') || rootData, name = $interpolate(attrs['uiView'] || attrs['name'] || '')(scope) || '$default';
var previousEl, currentEl, currentScope, viewConfig, unregister; var previousEl, currentEl, currentScope, viewConfig;
var activeUIView = { var activeUIView = {
$type: 'ng1', $type: 'ng1',
id: directive.count++, id: directive.count++,
@ -10128,7 +10113,7 @@
} }
$element.data('$uiView', { $uiView: activeUIView }); $element.data('$uiView', { $uiView: activeUIView });
updateView(); updateView();
unregister = $view.registerUIView(activeUIView); var unregister = $view.registerUIView(activeUIView);
scope.$on('$destroy', function () { scope.$on('$destroy', function () {
trace.traceUIViewEvent('Destroying/Unregistering', activeUIView); trace.traceUIViewEvent('Destroying/Unregistering', activeUIView);
unregister(); unregister();
@ -10214,9 +10199,9 @@
return directive; return directive;
}, },
]; ];
$ViewDirectiveFill.$inject = ['$compile', '$controller', '$transitions', '$view', '$q', '$timeout']; $ViewDirectiveFill.$inject = ['$compile', '$controller', '$transitions', '$view', '$q'];
/** @hidden */ /** @hidden */
function $ViewDirectiveFill($compile, $controller, $transitions, $view, $q, $timeout) { function $ViewDirectiveFill($compile, $controller, $transitions, $view, $q) {
var getControllerAs = parse('viewDecl.controllerAs'); var getControllerAs = parse('viewDecl.controllerAs');
var getResolveAs = parse('viewDecl.resolveAs'); var getResolveAs = parse('viewDecl.resolveAs');
return { return {

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