@coolon/angular-ui-powerups 12.4.0 → 12.4.1

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.
@@ -816,7 +816,7 @@
816
816
  { type: i0.Component, args: [{
817
817
  selector: 'aup-busy-overlay',
818
818
  template: "<ng-content></ng-content>\n<div class=\"busy-overlay-backdrop\" *ngIf=\"busyModel.value\">\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"52\"></mat-progress-spinner>\n</div>\n",
819
- styles: [":host{position:relative}div.busy-overlay-backdrop{z-index:10;z-index:var(--aup-busy-overlay-z-index, 10);position:absolute;background-color:#0003;top:0;left:0;bottom:0;right:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}\n"]
819
+ styles: [":host{position:relative;display:flex;flex-direction:column;align-items:stretch}div.busy-overlay-backdrop{z-index:10;z-index:var(--aup-busy-overlay-z-index, 10);position:absolute;background-color:#0003;top:0;left:0;bottom:0;right:0;display:grid;grid-template-columns:auto;grid-template-rows:auto;place-content:center}\n"]
820
820
  },] }
821
821
  ];
822
822
  BusyOverlayComponent.ctorParameters = function () { return []; };
@@ -6068,7 +6068,7 @@
6068
6068
  { type: i0.Component, args: [{
6069
6069
  selector: 'aup-activity-container',
6070
6070
  template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let activityRef of activityRefs; let i = index; trackBy: activityIndex\">\n <aup-busy-overlay [busyModel]=\"busy\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <!--\n We have issues where angular is triggering a leave animation when an\n new activity is started, but is not running the enter animation\n when it is scrolled back into view. So we track the tab changes and\n disable all animations inside the tab while we're animating.\n -->\n <div class=\"activity-outlet-wrapper\" [@.disabled]=\"!activityRef.focused\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"activityRef\"></aup-activity-outlet>\n </div>\n </aup-busy-overlay>\n </mat-tab>\n</mat-tab-group>\n",
6071
- styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}\n"]
6071
+ styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-busy-overlay{flex:1}.activity-outlet-wrapper{flex:1}\n"]
6072
6072
  },] }
6073
6073
  ];
6074
6074
  ActivityContainerComponent.ctorParameters = function () { return []; };
@@ -6517,7 +6517,7 @@
6517
6517
  { type: i0.Component, args: [{
6518
6518
  selector: 'aup-in-place-interaction-context',
6519
6519
  template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs [dynamicHeight]=\"false\" [animationDuration]=\"animationDuration\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n",
6520
- styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}\n"]
6520
+ styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}aup-activity-container{flex:1}\n"]
6521
6521
  },] }
6522
6522
  ];
6523
6523
  InPlaceInteractionContextComponent.ctorParameters = function () { return [
@@ -9913,6 +9913,7 @@
9913
9913
  var visitModel = new pectin.MutableValueModel(routerVisit);
9914
9914
  pectin.DebugContext.tag(visitModel, "PlaceOutletComponent[" + activePlace.constructor.name + ")].visitModel");
9915
9915
  activePlace.initialiseVisit(routerVisit, function (current, previous) {
9916
+ console.log("initialiseVisitCallback", { routerVisitModel: _this.routerVisitModel.value });
9916
9917
  _this.pushVisitChangeToRoute(previous, current);
9917
9918
  });
9918
9919
  var finishPlaceLoad = function () {
@@ -9931,6 +9932,7 @@
9931
9932
  var _a = pectin.Dsl.disposeWith(activePlace), when = _a.when, chain = _a.chain, valueOf = _a.valueOf;
9932
9933
  when(this.routerVisitModel)
9933
9934
  .changes(function (visit) {
9935
+ console.log("routerVisitModel.change", { routerVisitModel: _this.routerVisitModel.value });
9934
9936
  _this.pushVisitChangeToComponent(activePlace, visit);
9935
9937
  }, {
9936
9938
  unless: valueOf.any(this._isPushingVisitToRoute, this.routerVisitModel.isNil()).areTruthy()
@@ -9941,6 +9943,7 @@
9941
9943
  };
9942
9944
  PlaceOutletComponent.prototype.pushVisitChangeToRoute = function (previous, current) {
9943
9945
  return __awaiter(this, void 0, void 0, function () {
9946
+ var routerVisit;
9944
9947
  return __generator(this, function (_a) {
9945
9948
  switch (_a.label) {
9946
9949
  case 0:
@@ -9954,9 +9957,9 @@
9954
9957
  this._isPushingVisitToRoute.value = false;
9955
9958
  return [7 /*endfinally*/];
9956
9959
  case 3:
9957
- // sanitisers may have adjusted other values in the visit to we check and write it back.
9958
- if (current.hasRoutingChangedFrom(this.routerVisitModel.value)) {
9959
- this.pushVisitChangeToComponent(this.activePlaceModel.value, this.routerVisitModel.value);
9960
+ routerVisit = this.routerVisitModel.value;
9961
+ if (routerVisit && current.hasRoutingChangedFrom(routerVisit)) {
9962
+ this.pushVisitChangeToComponent(this.activePlaceModel.value, routerVisit);
9960
9963
  }
9961
9964
  return [2 /*return*/];
9962
9965
  }