@coolon/angular-ui-powerups 12.4.0-alpha.89 → 12.4.0-alpha.90

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.
@@ -9930,16 +9930,36 @@
9930
9930
  var _a = pectin.Dsl.disposeWith(activePlace), when = _a.when, chain = _a.chain, valueOf = _a.valueOf;
9931
9931
  when(this.routerVisitModel)
9932
9932
  .changes(function (visit) {
9933
- activePlace.updateVisit(visit);
9933
+ _this.pushVisitChangeToComponent(activePlace, visit);
9934
9934
  }, {
9935
9935
  unless: valueOf.any(this._isPushingVisitToRoute, this.routerVisitModel.isNil()).areTruthy()
9936
9936
  });
9937
9937
  };
9938
+ PlaceOutletComponent.prototype.pushVisitChangeToComponent = function (activePlace, visit) {
9939
+ activePlace.updateVisit(visit);
9940
+ };
9938
9941
  PlaceOutletComponent.prototype.pushVisitChangeToRoute = function (previous, current) {
9939
- var _this = this;
9940
- this._isPushingVisitToRoute.value = true;
9941
- this.placeRouter.pushVisitChangesToRoute(previous, current).finally(function () {
9942
- _this._isPushingVisitToRoute.value = false;
9942
+ return __awaiter(this, void 0, void 0, function () {
9943
+ return __generator(this, function (_a) {
9944
+ switch (_a.label) {
9945
+ case 0:
9946
+ _a.trys.push([0, , 2, 3]);
9947
+ this._isPushingVisitToRoute.value = true;
9948
+ return [4 /*yield*/, this.placeRouter.pushVisitChangesToRoute(previous, current)];
9949
+ case 1:
9950
+ _a.sent();
9951
+ return [3 /*break*/, 3];
9952
+ case 2:
9953
+ this._isPushingVisitToRoute.value = false;
9954
+ return [7 /*endfinally*/];
9955
+ case 3:
9956
+ // sanitisers may have adjusted other values in the visit to we check and write it back.
9957
+ if (current.hasRoutingChangedFrom(this.routerVisitModel.value)) {
9958
+ this.pushVisitChangeToComponent(this.activePlaceModel.value, this.routerVisitModel.value);
9959
+ }
9960
+ return [2 /*return*/];
9961
+ }
9962
+ });
9943
9963
  });
9944
9964
  };
9945
9965
  // @Trace()