From dfe13621b9a74b7be8fc0705078d9ebcddbe2390 Mon Sep 17 00:00:00 2001 From: markuczy Date: Tue, 7 May 2024 08:13:19 +0200 Subject: [PATCH] feat: providePortalDialogService utility function --- libs/portal-integration-angular/src/index.ts | 1 + .../lib/core/utils/provide-portal-dialog-service.utils.ts | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 libs/portal-integration-angular/src/lib/core/utils/provide-portal-dialog-service.utils.ts diff --git a/libs/portal-integration-angular/src/index.ts b/libs/portal-integration-angular/src/index.ts index c53b80bb..3758df44 100644 --- a/libs/portal-integration-angular/src/index.ts +++ b/libs/portal-integration-angular/src/index.ts @@ -80,6 +80,7 @@ export * from './lib/core/utils/image-logo-url.utils' export * from './lib/core/utils/add-initialize-module-guard.utils' export * from './lib/core/utils/translate-service-initializer.utils' export * from './lib/core/utils/portal-api-configuration.utils' +export * from './lib/core/utils/provide-portal-dialog-service.utils' export * from '@onecx/angular-accelerator' export * from '@onecx/angular-integration-interface' diff --git a/libs/portal-integration-angular/src/lib/core/utils/provide-portal-dialog-service.utils.ts b/libs/portal-integration-angular/src/lib/core/utils/provide-portal-dialog-service.utils.ts new file mode 100644 index 00000000..d0bf2cf0 --- /dev/null +++ b/libs/portal-integration-angular/src/lib/core/utils/provide-portal-dialog-service.utils.ts @@ -0,0 +1,6 @@ +import { DialogService } from 'primeng/dynamicdialog' +import { PortalDialogService } from '../../services/portal-dialog.service' + +export function providePortalDialogService() { + return [DialogService, PortalDialogService] +}