@open-rlb/ng-app 3.1.0 → 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.
|
@@ -724,6 +724,7 @@ class LanguageService {
|
|
|
724
724
|
case 'es': return 'Español';
|
|
725
725
|
case 'fr': return 'Francés';
|
|
726
726
|
case 'ja': return '日本語';
|
|
727
|
+
case 'de': return 'Deutsch';
|
|
727
728
|
default: return '';
|
|
728
729
|
}
|
|
729
730
|
}
|
|
@@ -741,11 +742,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
741
742
|
}] }] });
|
|
742
743
|
|
|
743
744
|
class AppBreadcrumbService {
|
|
744
|
-
constructor(router, route, loggerService, languageService) {
|
|
745
|
+
constructor(router, route, loggerService, languageService, idService) {
|
|
745
746
|
this.router = router;
|
|
746
747
|
this.route = route;
|
|
747
748
|
this.loggerService = loggerService;
|
|
748
749
|
this.languageService = languageService;
|
|
750
|
+
this.idService = idService;
|
|
749
751
|
this._breadcrumbs$ = new BehaviorSubject([]);
|
|
750
752
|
this.breadcrumbs$ = this._breadcrumbs$.asObservable();
|
|
751
753
|
this.logger = this.loggerService.for(this.constructor.name);
|
|
@@ -775,7 +777,8 @@ class AppBreadcrumbService {
|
|
|
775
777
|
if (label && (urlPart || breadcrumbs.length === 0)) {
|
|
776
778
|
breadcrumbs.push({
|
|
777
779
|
label: this.languageService.translate(label),
|
|
778
|
-
link: accumulatedLink || '/'
|
|
780
|
+
link: accumulatedLink || '/',
|
|
781
|
+
id: `breadcrumb${this.idService.id}`
|
|
779
782
|
});
|
|
780
783
|
this.logger.debug('Pushed breadcrumb', { label, link: accumulatedLink });
|
|
781
784
|
}
|
|
@@ -785,13 +788,13 @@ class AppBreadcrumbService {
|
|
|
785
788
|
}
|
|
786
789
|
return breadcrumbs;
|
|
787
790
|
}
|
|
788
|
-
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 }); }
|
|
789
792
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppBreadcrumbService, providedIn: 'root' }); }
|
|
790
793
|
}
|
|
791
794
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppBreadcrumbService, decorators: [{
|
|
792
795
|
type: Injectable,
|
|
793
796
|
args: [{ providedIn: 'root' }]
|
|
794
|
-
}], 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 }] });
|
|
795
798
|
|
|
796
799
|
class LocalCacheService {
|
|
797
800
|
constructor(options) {
|