@coolon/angular-ui-powerups 12.4.0-alpha.45 → 12.4.0-alpha.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/coolon-angular-ui-powerups.umd.js +10 -9
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +7 -5
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +7 -5
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/place-router.d.ts +2 -2
- package/package.json +1 -1
|
@@ -9025,6 +9025,9 @@
|
|
|
9025
9025
|
{ type: i1$1.UrlSerializer }
|
|
9026
9026
|
]; };
|
|
9027
9027
|
|
|
9028
|
+
function asArray(item) {
|
|
9029
|
+
return Array.isArray(item) ? item : [item];
|
|
9030
|
+
}
|
|
9028
9031
|
exports.PlaceRouter = /** @class */ (function (_super) {
|
|
9029
9032
|
__extends(PlaceRouter, _super);
|
|
9030
9033
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -9204,17 +9207,15 @@
|
|
|
9204
9207
|
};
|
|
9205
9208
|
PlaceRouter.prototype.navigate = function (visit, options) {
|
|
9206
9209
|
var _this = this;
|
|
9210
|
+
var commands = asArray(visit).reduce(function (result, v) {
|
|
9211
|
+
return __spreadArray(__spreadArray(__spreadArray([], __read(result)), [v.placeDefinition.path]), __read(_this.createRouteParameters(v)));
|
|
9212
|
+
}, []);
|
|
9207
9213
|
return this.doNavigation(visit, function (router) { return __awaiter(_this, void 0, void 0, function () {
|
|
9208
|
-
var commands;
|
|
9209
9214
|
return __generator(this, function (_a) {
|
|
9210
9215
|
switch (_a.label) {
|
|
9211
|
-
case 0:
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
], __read(this.createRouteParameters(visit)));
|
|
9215
|
-
return [4 /*yield*/, this.angularRouter.navigate(commands, {
|
|
9216
|
-
relativeTo: options ? options.relativeTo : null
|
|
9217
|
-
})];
|
|
9216
|
+
case 0: return [4 /*yield*/, this.angularRouter.navigate(commands, {
|
|
9217
|
+
relativeTo: options ? options.relativeTo : null
|
|
9218
|
+
})];
|
|
9218
9219
|
case 1:
|
|
9219
9220
|
_a.sent();
|
|
9220
9221
|
return [2 /*return*/];
|
|
@@ -9233,7 +9234,7 @@
|
|
|
9233
9234
|
pectin.lang.illegalState('Navigation already in progress');
|
|
9234
9235
|
}
|
|
9235
9236
|
navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
9236
|
-
navigation.storeVisit(
|
|
9237
|
+
asArray(visit).forEach(function (v) { return navigation.storeVisit(v); });
|
|
9237
9238
|
this.transitionTo(navigation);
|
|
9238
9239
|
_a.label = 1;
|
|
9239
9240
|
case 1:
|