@coolon/angular-ui-powerups 14.47.0 → 14.47.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.
@@ -6410,15 +6410,6 @@ class PlaceComponent extends DisposableComponent {
6410
6410
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
6411
6411
  when(this._active).becomesTruthy(() => this._notifyPlaceReady());
6412
6412
  this.childPlaces$ = ListModel.constant(this.placeDefinition.children.map(d => d.component));
6413
- this.authorisedChildPlaces$ = chain(this.childPlaces$)
6414
- .select(placeType => {
6415
- const definition = PlaceComponent.getDefinition(placeType);
6416
- const guard = this.placeRouter.authService.accessGuard$.value;
6417
- return guard.isAuthorised(definition) || this.placeRouter.activeVisit$.value?.isPlaceActive(definition);
6418
- }, {
6419
- postponeWhile: this.placeRouter.navigationInProgress$,
6420
- dependsOn: [this.placeRouter.authService.accessGuard$, this.placeRouter.activeVisit$]
6421
- });
6422
6413
  }
6423
6414
  initialiseVisit(visit, notifyVisitChanged) {
6424
6415
  assert.isNil(this.visitModel.value);
@@ -6442,11 +6433,8 @@ class PlaceComponent extends DisposableComponent {
6442
6433
  // notifyVisitChanged(this.visitModel.value, visit)
6443
6434
  // }
6444
6435
  }
6445
- /**
6446
- * @deprecated use authorisedChildPlaces$ instead
6447
- */
6448
6436
  get childPlaces() {
6449
- return this.authorisedChildPlaces$.value;
6437
+ return this.childPlaces$.value;
6450
6438
  }
6451
6439
  updateVisit(visit) {
6452
6440
  assert.isTruthy(this.isInitialised());
@@ -10311,7 +10299,16 @@ class AbstractPlaceNavigationComponent extends DisposableComponent {
10311
10299
  this.placeFaces = new Map();
10312
10300
  this.trackByPlaceDef = (index, data) => data.place;
10313
10301
  const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
10314
- this.placeDefinitions = chain(this.places$).map(c => PlaceComponent.getDefinition(c));
10302
+ this.authorisedPlaces$ = chain(this.places$)
10303
+ .select(placeType => {
10304
+ const definition = PlaceComponent.getDefinition(placeType);
10305
+ const guard = this.placeRouter.authService.accessGuard$.value;
10306
+ return guard.isAuthorised(definition) || this.placeRouter.activeVisit$.value?.isPlaceActive(definition);
10307
+ }, {
10308
+ postponeWhile: this.placeRouter.navigationInProgress$,
10309
+ dependsOn: [this.placeRouter.authService.accessGuard$, this.placeRouter.activeVisit$]
10310
+ });
10311
+ this.placeDefinitions = chain(this.authorisedPlaces$).map(c => PlaceComponent.getDefinition(c));
10315
10312
  this.commandFactory = Command.createFactory((placeDefinition) => {
10316
10313
  this.placeRouter.navigate(placeDefinition.component);
10317
10314
  });