@onecx/angular-accelerator 4.40.2 → 4.41.0
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.
- package/esm2020/lib/services/translation-cache.service.mjs +9 -5
- package/esm2020/lib/utils/create-remote-component-translate-loader.utils.mjs +5 -3
- package/esm2020/lib/utils/create-translate-loader.utils.mjs +5 -3
- package/fesm2015/onecx-angular-accelerator.mjs +16 -8
- package/fesm2015/onecx-angular-accelerator.mjs.map +1 -1
- package/fesm2020/onecx-angular-accelerator.mjs +16 -8
- package/fesm2020/onecx-angular-accelerator.mjs.map +1 -1
- package/lib/services/translation-cache.service.d.ts +2 -0
- package/lib/utils/create-remote-component-translate-loader.utils.d.ts +3 -1
- package/lib/utils/create-translate-loader.utils.d.ts +3 -1
- package/package.json +1 -1
|
@@ -2,10 +2,12 @@ import { OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TranslationCacheService implements OnDestroy {
|
|
5
|
+
private id;
|
|
5
6
|
private translationTopic$;
|
|
6
7
|
private translations$;
|
|
7
8
|
constructor();
|
|
8
9
|
ngOnDestroy(): void;
|
|
10
|
+
setId(id: string): void;
|
|
9
11
|
getTranslationFile(url: string, cacheMissFunction: () => Observable<any>): Observable<any>;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationCacheService, never>;
|
|
11
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationCacheService>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
2
3
|
import { TranslateLoader } from '@ngx-translate/core';
|
|
3
4
|
import { ReplaySubject } from 'rxjs';
|
|
4
5
|
import { TranslationCacheService } from '../services/translation-cache.service';
|
|
5
|
-
export declare
|
|
6
|
+
export declare const REMOTE_COMPONENT_ID: InjectionToken<string>;
|
|
7
|
+
export declare function createRemoteComponentTranslateLoader(http: HttpClient, baseUrlReplaySubject$: ReplaySubject<string>, remoteComponentId: string, translationCacheService?: TranslationCacheService): TranslateLoader;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
2
3
|
import { TranslateLoader } from '@ngx-translate/core';
|
|
3
4
|
import { AppStateService } from '@onecx/angular-integration-interface';
|
|
4
5
|
import { TranslationCacheService } from '../services/translation-cache.service';
|
|
5
|
-
export declare
|
|
6
|
+
export declare const MFE_ID: InjectionToken<string>;
|
|
7
|
+
export declare function createTranslateLoader(http: HttpClient, appStateService: AppStateService, mfeId: string, translationCacheService?: TranslationCacheService): TranslateLoader;
|