{ "version": 3, "sources": ["libs/mediio-plattform/dashboard/newsfeed/feature/src/lib/permissions/news-permissions.ts", "libs/mediio-plattform/content-manager/categories/feature/src/lib/permissions/categories-permissions.ts", "libs/mediio-plattform/content-manager/categories/feature/src/lib/plugins/excel-export-categories-plugin.ts", "libs/mediio-plattform/content-manager/feature/src/lib/providers/provide-content-manager-feature.ts", "libs/mediio-plattform/document-management/feature/src/lib/providers/provide-document-management-feature.ts", "libs/mediio-plattform/medical-shop-2/feature/src/lib/providers/provide-medical-shop-feature.ts"], "sourcesContent": ["import { permissions } from '@mpk/shared/domain';\r\n\r\n/**\r\n * Permissions for the\r\n */\r\nenum NewsPermissionsEnum {\r\n None = 0,\r\n\r\n /**\r\n * News can be created in my organization\r\n */\r\n CreateNewsForOwnOrganization = 1,\r\n\r\n /**\r\n * News can be created in all organizations\r\n */\r\n CreateNewsForAllOrganizations = 2 | CreateNewsForOwnOrganization,\r\n}\r\n\r\nexport const NewsPermissions = permissions(NewsPermissionsEnum, {\r\n featureId: 'News',\r\n});\r\n", "import { permissions } from '@mp/kernel/permissions/domain';\r\n\r\nenum CategoriesPermissionsEnum {\r\n None = 0,\r\n /**\r\n * View and export categories.\r\n */\r\n ViewAndExportCategories = 1,\r\n}\r\n\r\nexport const CategoriesPermissions = permissions(CategoriesPermissionsEnum, {\r\n featureId: 'Categories',\r\n});\r\n", "import { inject } from '@angular/core';\r\nimport { lastValueFrom } from 'rxjs';\r\n\r\nimport { type CategoryType } from '@core/shared/domain';\r\n// eslint-disable-next-line @nx/enforce-module-boundaries\r\nimport { CategoriesService } from '@mp/content-manager/categories/data-access';\r\nimport { type CategoriesExportPlugin } from '@mpcm/shared';\r\nimport { LoginContextService } from '@mpk/shared/data-access';\r\n\r\nimport { CategoriesPermissions } from '../permissions';\r\n\r\n/**\r\n * Factory to create the Excel categories export plugin.\r\n */\r\nexport function createExcelExportCategoriesPlugin(): CategoriesExportPlugin {\r\n const loginContextService = inject(LoginContextService);\r\n const categoriesService = inject(CategoriesService);\r\n\r\n return {\r\n displayName: 'Excel Warengruppen-Export',\r\n description: 'Exportiert die Warengruppen in eine Excel-Datei',\r\n isEnabled: loginContextService.permission(CategoriesPermissions.ViewAndExportCategories),\r\n execute(categoryType: CategoryType, version: string): Promise {\r\n return lastValueFrom(categoriesService.exportCategoriesExcel(categoryType, version));\r\n },\r\n };\r\n}\r\n", "import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';\r\n\r\nimport { ArticleMatcherPermissions } from '@mp/content-manager/article-matching/article-matcher/feature';\r\nimport { ArticleSearchPermissions } from '@mp/content-manager/artikelsuche/feature';\r\nimport { CategoriesPermissions, createExcelExportCategoriesPlugin } from '@mp/content-manager/categories/feature';\r\nimport { ArticleRangesPermissions } from '@mp/content-manager/core';\r\nimport { IndustryCatalogsPermissions } from '@mp/content-manager/industriekataloge/feature';\r\nimport {\r\n ClinicCatalogsPermissions,\r\n createClinicCatalogInfoTabPlugin,\r\n} from '@mp/content-manager/klinikkataloge/feature';\r\nimport { PlatformCatalogsPermissions } from '@mp/content-manager/plattformkataloge/feature';\r\nimport { provideModuleInfo } from '@mp/shared/util';\r\nimport { provideCategoriesExport } from '@mpcm/shared';\r\nimport { provideModulePermissions } from '@mpk/shared/data-access';\r\nimport { permissions } from '@mpk/shared/domain';\r\nimport { CURRENT_ORGANIZATION_INFO_TAB_PLUGIN } from '@mpk/shared/util';\r\n\r\nconst moduleName = 'ContentManager';\r\n\r\nexport function provideContentManagerFeature(): EnvironmentProviders[] {\r\n return [\r\n provideModuleInfo(moduleName, {\r\n displayName: 'Content Management',\r\n }),\r\n provideModulePermissions(\r\n moduleName,\r\n ArticleMatcherPermissions,\r\n ArticleSearchPermissions,\r\n IndustryCatalogsPermissions,\r\n ClinicCatalogsPermissions,\r\n PlatformCatalogsPermissions,\r\n ArticleRangesPermissions,\r\n UploadPermissions,\r\n CategoriesPermissions,\r\n ),\r\n provideCategoriesExport(createExcelExportCategoriesPlugin),\r\n makeEnvironmentProviders([\r\n {\r\n provide: CURRENT_ORGANIZATION_INFO_TAB_PLUGIN,\r\n multi: true,\r\n useFactory: createClinicCatalogInfoTabPlugin,\r\n },\r\n ]),\r\n ];\r\n}\r\n\r\n// TODO: Refactor upload widget folder location\r\nenum UploadPermissionsEnum {\r\n None = 0,\r\n /**\r\n * Use Upload widget.\r\n */\r\n UseUpload = 1,\r\n\r\n /**\r\n * Use Upload widget and manage entries.\r\n */\r\n ManageUpload = 2 | UseUpload,\r\n}\r\n\r\nexport const UploadPermissions = permissions(UploadPermissionsEnum, {\r\n featureId: 'Upload',\r\n});\r\n", "import { EnvironmentProviders } from '@angular/core';\r\n\r\nimport { PurchaseRequisitionsPermissions } from '@mp/document-management/core';\r\nimport { provideModuleInfo } from '@mp/shared/util';\r\nimport { provideModulePermissions } from '@mpk/shared/data-access';\r\n\r\nconst moduleName = 'DocumentManagement';\r\n\r\nexport function provideDocumentManagementFeature(): EnvironmentProviders[] {\r\n return [\r\n provideModuleInfo(moduleName, {\r\n displayName: 'Belege',\r\n }),\r\n provideModulePermissions(moduleName, PurchaseRequisitionsPermissions),\r\n ];\r\n}\r\n", "import { EnvironmentProviders } from '@angular/core';\r\n\r\nimport { MedicalShopPermissions } from '@mp/medical-shop-2/core';\r\nimport { provideModuleInfo } from '@mp/shared/util';\r\nimport { provideModulePermissions } from '@mpk/shared/data-access';\r\n\r\nconst moduleName = 'MedicalShop';\r\n\r\nexport function provideMedicalShopFeature(): EnvironmentProviders[] {\r\n return [\r\n provideModuleInfo(moduleName, {\r\n displayName: 'Medical Shop',\r\n }),\r\n provideModulePermissions(moduleName, MedicalShopPermissions),\r\n ];\r\n}\r\n"], "mappings": "glBAKA,IAAKA,EAAL,SAAKA,EAAmB,CACtBA,OAAAA,EAAAA,EAAA,KAAA,CAAA,EAAA,OAKAA,EAAAA,EAAA,6BAAA,CAAA,EAAA,+BAKAA,EAAAA,EAAA,8BAAA,CAAA,EAAA,gCAXGA,CAYL,EAZKA,GAAmB,CAAA,CAAA,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AO,CACLC,EAAkBF,EAAY,CAC5BG,YAAa,eACd,EACDC,EAAyBJ,EAAYK,CAAsB,CAAC,CAEhE", "names": ["NewsPermissionsEnum", "NewsPermissions", "permissions", "featureId", "CategoriesPermissionsEnum", "CategoriesPermissions", "permissions", "featureId", "createExcelExportCategoriesPlugin", "loginContextService", "inject", "LoginContextService", "categoriesService", "CategoriesService", "displayName", "description", "isEnabled", "permission", "CategoriesPermissions", "ViewAndExportCategories", "execute", "categoryType", "version", "lastValueFrom", "exportCategoriesExcel", "moduleName", "provideContentManagerFeature", "provideModuleInfo", "displayName", "provideModulePermissions", "ArticleMatcherPermissions", "ArticleSearchPermissions", "IndustryCatalogsPermissions", "ClinicCatalogsPermissions", "PlatformCatalogsPermissions", "ArticleRangesPermissions", "UploadPermissions", "CategoriesPermissions", "provideCategoriesExport", "createExcelExportCategoriesPlugin", "makeEnvironmentProviders", "provide", "CURRENT_ORGANIZATION_INFO_TAB_PLUGIN", "multi", "useFactory", "createClinicCatalogInfoTabPlugin", "UploadPermissionsEnum", "permissions", "featureId", "moduleName", "provideDocumentManagementFeature", "provideModuleInfo", "displayName", "provideModulePermissions", "PurchaseRequisitionsPermissions", "moduleName", "provideMedicalShopFeature", "provideModuleInfo", "displayName", "provideModulePermissions", "MedicalShopPermissions"] }