@open-rlb/ng-app 3.1.1 → 3.1.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.
@@ -742,11 +742,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
742
742
  }] }] });
743
743
 
744
744
  class AppBreadcrumbService {
745
- constructor(router, route, loggerService, languageService) {
745
+ constructor(router, route, loggerService, languageService, idService) {
746
746
  this.router = router;
747
747
  this.route = route;
748
748
  this.loggerService = loggerService;
749
749
  this.languageService = languageService;
750
+ this.idService = idService;
750
751
  this._breadcrumbs$ = new BehaviorSubject([]);
751
752
  this.breadcrumbs$ = this._breadcrumbs$.asObservable();
752
753
  this.logger = this.loggerService.for(this.constructor.name);
@@ -776,7 +777,8 @@ class AppBreadcrumbService {
776
777
  if (label && (urlPart || breadcrumbs.length === 0)) {
777
778
  breadcrumbs.push({
778
779
  label: this.languageService.translate(label),
779
- link: accumulatedLink || '/'
780
+ link: accumulatedLink || '/',
781
+ id: `breadcrumb${this.idService.id}`
780
782
  });
781
783
  this.logger.debug('Pushed breadcrumb', { label, link: accumulatedLink });
782
784
  }
@@ -786,13 +788,13 @@ class AppBreadcrumbService {
786
788
  }
787
789
  return breadcrumbs;
788
790
  }
789
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppBreadcrumbService, deps: [{ token: i2.Router }, { token: i2.ActivatedRoute }, { token: AppLoggerService }, { token: LanguageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
791
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppBreadcrumbService, deps: [{ token: i2.Router }, { token: i2.ActivatedRoute }, { token: AppLoggerService }, { token: LanguageService }, { token: i2$1.UniqueIdService }], target: i0.ɵɵFactoryTarget.Injectable }); }
790
792
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppBreadcrumbService, providedIn: 'root' }); }
791
793
  }
792
794
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppBreadcrumbService, decorators: [{
793
795
  type: Injectable,
794
796
  args: [{ providedIn: 'root' }]
795
- }], ctorParameters: () => [{ type: i2.Router }, { type: i2.ActivatedRoute }, { type: AppLoggerService }, { type: LanguageService }] });
797
+ }], ctorParameters: () => [{ type: i2.Router }, { type: i2.ActivatedRoute }, { type: AppLoggerService }, { type: LanguageService }, { type: i2$1.UniqueIdService }] });
796
798
 
797
799
  class LocalCacheService {
798
800
  constructor(options) {