@coolon/angular-ui-powerups 14.29.0 → 14.29.2

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.
@@ -6527,9 +6527,9 @@ class Visit {
6527
6527
  return this;
6528
6528
  }
6529
6529
  get segments() {
6530
- return this.resolveSegments(this.definedSegments);
6530
+ return this.resolveSegments([this.definedSegments]);
6531
6531
  }
6532
- resolveSegments(...defaults) {
6532
+ resolveSegments(defaults) {
6533
6533
  return this.destinationPlaceDef.ancestorsAndSelf()
6534
6534
  .map(a => {
6535
6535
  const visit = new VisitSegment(a, {});
@@ -6540,8 +6540,11 @@ class Visit {
6540
6540
  });
6541
6541
  }
6542
6542
  copyWithDefaultsFrom(other) {
6543
- const segments = this.resolveSegments(this.definedSegments, other.definedSegments);
6544
- return new Visit(segments);
6543
+ const defaults = [this.definedSegments];
6544
+ if (other) {
6545
+ defaults.push(other.definedSegments);
6546
+ }
6547
+ return new Visit(this.resolveSegments(defaults));
6545
6548
  }
6546
6549
  copyAndReplaceSegment(replace) {
6547
6550
  // console.log("copyAndReplaceSegment", replace.toDebugString());
@@ -9951,7 +9954,7 @@ class AbstractPlaceNavigationComponent extends DisposableComponent {
9951
9954
  .map(c => PlaceComponent.getDefinition(c))
9952
9955
  .select(d => {
9953
9956
  const guard = placeRouter.accessGuard$.value;
9954
- return guard.isAuthorised(d) || placeRouter.activeVisit$.value.isPlaceActive(d);
9957
+ return guard.isAuthorised(d) || placeRouter.activeVisit$.value?.isPlaceActive(d);
9955
9958
  }, {
9956
9959
  postponeWhile: placeRouter.navigationInProgress$,
9957
9960
  dependsOn: [placeRouter.accessGuard$, placeRouter.activeVisit$]