From b05e31969ddcf7bb2cf5217c08ca193464a09cae Mon Sep 17 00:00:00 2001 From: markuczy <129275100+markuczy@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:51:09 +0200 Subject: [PATCH] fix: app config service exported correctly (#537) --- libs/angular-accelerator/src/index.ts | 1 - libs/angular-accelerator/src/lib/angular-accelerator.module.ts | 3 +-- libs/angular-integration-interface/src/index.ts | 1 + .../src/lib/services/app-config-service.ts | 2 +- libs/portal-integration-angular/src/index.ts | 1 + 5 files changed, 4 insertions(+), 4 deletions(-) rename libs/{angular-accelerator => angular-integration-interface}/src/lib/services/app-config-service.ts (97%) diff --git a/libs/angular-accelerator/src/index.ts b/libs/angular-accelerator/src/index.ts index 8ff170ca..87ae2c0a 100644 --- a/libs/angular-accelerator/src/index.ts +++ b/libs/angular-accelerator/src/index.ts @@ -23,7 +23,6 @@ export * from './lib/components/data-loading-error/data-loading-error.component' // services export * from './lib/services/breadcrumb.service' export * from './lib/services/translation-cache.service' -export * from './lib/services/app-config-service' // pipes export * from './lib/pipes/dynamic.pipe' diff --git a/libs/angular-accelerator/src/lib/angular-accelerator.module.ts b/libs/angular-accelerator/src/lib/angular-accelerator.module.ts index b60b4074..de1e8bd1 100644 --- a/libs/angular-accelerator/src/lib/angular-accelerator.module.ts +++ b/libs/angular-accelerator/src/lib/angular-accelerator.module.ts @@ -4,7 +4,7 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms' import { RouterModule } from '@angular/router' import { MissingTranslationHandler, MissingTranslationHandlerParams, TranslateModule } from '@ngx-translate/core' -import { UserService } from '@onecx/angular-integration-interface' +import { AppConfigService, UserService } from '@onecx/angular-integration-interface' import { AngularRemoteComponentsModule } from '@onecx/angular-remote-components' import { firstValueFrom, skip } from 'rxjs' @@ -30,7 +30,6 @@ import { TooltipOnOverflowDirective } from './directives/tooltipOnOverflow.direc import { DynamicPipe } from './pipes/dynamic.pipe' import { OcxTimeAgoPipe } from './pipes/ocxtimeago.pipe' import { DynamicLocaleId } from './utils/dynamic-locale-id' -import { AppConfigService } from './services/app-config-service' export class AngularAcceleratorMissingTranslationHandler implements MissingTranslationHandler { handle(params: MissingTranslationHandlerParams) { diff --git a/libs/angular-integration-interface/src/index.ts b/libs/angular-integration-interface/src/index.ts index ffd738f4..942aee7c 100644 --- a/libs/angular-integration-interface/src/index.ts +++ b/libs/angular-integration-interface/src/index.ts @@ -1,4 +1,5 @@ // services +export * from './lib/services/app-config-service' export * from './lib/services/app-state.service' export * from './lib/services/configuration.service' export * from './lib/services/user.service' diff --git a/libs/angular-accelerator/src/lib/services/app-config-service.ts b/libs/angular-integration-interface/src/lib/services/app-config-service.ts similarity index 97% rename from libs/angular-accelerator/src/lib/services/app-config-service.ts rename to libs/angular-integration-interface/src/lib/services/app-config-service.ts index 8530835c..5772fc53 100644 --- a/libs/angular-accelerator/src/lib/services/app-config-service.ts +++ b/libs/angular-integration-interface/src/lib/services/app-config-service.ts @@ -4,7 +4,7 @@ import { Injectable } from '@angular/core' import { Config } from '@onecx/integration-interface' import { BehaviorSubject, firstValueFrom } from 'rxjs' -@Injectable({ providedIn: 'any' }) +@Injectable() export class AppConfigService { config$ = new BehaviorSubject<{ [key: string]: string }>({}) diff --git a/libs/portal-integration-angular/src/index.ts b/libs/portal-integration-angular/src/index.ts index c8c09b7c..b5c48695 100644 --- a/libs/portal-integration-angular/src/index.ts +++ b/libs/portal-integration-angular/src/index.ts @@ -82,6 +82,7 @@ export * from './lib/core/utils/portal-api-configuration.utils' export * from '@onecx/angular-accelerator' export { + AppConfigService, AppStateService, ConfigurationService, UserService,