@acorex/platform 20.8.21 → 20.8.23

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.
@@ -5,6 +5,7 @@ import { signalStore, withState, withComputed, withMethods, patchState } from '@
5
5
  import * as i1 from '@acorex/components/skeleton';
6
6
  import { AXSkeletonModule } from '@acorex/components/skeleton';
7
7
  import { Subject, interval, fromEvent } from 'rxjs';
8
+ import { AXTranslationService } from '@acorex/core/translation';
8
9
  import { AXCalendarService } from '@acorex/core/date-time';
9
10
  import { startWith, map, debounceTime } from 'rxjs/operators';
10
11
 
@@ -2298,21 +2299,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
2298
2299
 
2299
2300
  class AXPAppStartUpService {
2300
2301
  constructor() {
2302
+ //#region ---- Services & Dependencies ----
2303
+ this.translationService = inject(AXTranslationService);
2304
+ //#endregion
2305
+ //#region ---- Class Properties ----
2301
2306
  this.tasks = [];
2302
2307
  }
2308
+ //#endregion
2309
+ //#region ---- Public Methods ----
2303
2310
  registerTask(task) {
2304
2311
  this.tasks.push(task);
2305
2312
  }
2306
2313
  async runAllTasks() {
2307
2314
  for (const task of this.tasks.sort((a, b) => a.priority - b.priority)) {
2308
- this.updateStatus(task.statusText);
2315
+ await this.updateStatus(task.statusText);
2309
2316
  await task.run();
2310
2317
  }
2311
2318
  }
2312
- updateStatus(status) {
2319
+ //#endregion
2320
+ //#region ---- Utility Methods ----
2321
+ async updateStatus(statusKey) {
2313
2322
  const loadingText = document.querySelector('#loadingText');
2314
2323
  if (loadingText) {
2315
- loadingText.innerHTML = status;
2324
+ loadingText.innerHTML = await this.translationService.translateAsync(statusKey);
2316
2325
  }
2317
2326
  }
2318
2327
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: AXPAppStartUpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -2349,7 +2358,7 @@ class AXPModuleManifestModule {
2349
2358
  // Register manifest initialization task
2350
2359
  appInitService.registerTask({
2351
2360
  name: 'ModuleManifests',
2352
- statusText: 'Loading module manifests...',
2361
+ statusText: '@general:startup-tasks.module-manifests',
2353
2362
  priority: 1, // Load early, before features/permissions
2354
2363
  run: async () => {
2355
2364
  await manifestRegistry.initialize();