@onecx/angular-integration-interface 7.0.0-rc.9 → 7.0.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/fesm2022/onecx-angular-integration-interface-mocks.mjs +21 -21
- package/fesm2022/onecx-angular-integration-interface-mocks.mjs.map +1 -1
- package/fesm2022/onecx-angular-integration-interface.mjs +157 -63
- package/fesm2022/onecx-angular-integration-interface.mjs.map +1 -1
- package/index.d.ts +238 -11
- package/mocks/index.d.ts +116 -7
- package/package.json +10 -8
- package/lib/api/constants.d.ts +0 -2
- package/lib/api/injection-tokens.d.ts +0 -16
- package/lib/model/config-key.model.d.ts +0 -34
- package/lib/services/app-config-service.d.ts +0 -16
- package/lib/services/app-state.service.d.ts +0 -22
- package/lib/services/configuration.service.d.ts +0 -18
- package/lib/services/portal-message.service.d.ts +0 -30
- package/lib/services/remote-components.service.d.ts +0 -9
- package/lib/services/shell-capability.service.d.ts +0 -17
- package/lib/services/theme.service.d.ts +0 -9
- package/lib/services/user.service.d.ts +0 -18
- package/lib/services/workspace.service.d.ts +0 -21
- package/mocks/app-config-service-mock.d.ts +0 -20
- package/mocks/app-state-service-mock.d.ts +0 -20
- package/mocks/configuration-service-mock.d.ts +0 -22
- package/mocks/portal-message-service-mock.d.ts +0 -18
- package/mocks/remote-components-service-mock.d.ts +0 -13
- package/mocks/shell-capability-service-mock.d.ts +0 -13
- package/mocks/user-service-mock.d.ts +0 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onecx-angular-integration-interface.mjs","sources":["../../../../libs/angular-integration-interface/src/lib/services/app-config-service.ts","../../../../libs/angular-integration-interface/src/lib/services/app-state.service.ts","../../../../libs/angular-integration-interface/src/lib/api/injection-tokens.ts","../../../../libs/angular-integration-interface/src/lib/model/config-key.model.ts","../../../../libs/angular-integration-interface/src/lib/services/configuration.service.ts","../../../../libs/angular-integration-interface/src/lib/api/constants.ts","../../../../libs/angular-integration-interface/src/lib/services/user.service.ts","../../../../libs/angular-integration-interface/src/lib/services/portal-message.service.ts","../../../../libs/angular-integration-interface/src/lib/services/theme.service.ts","../../../../libs/angular-integration-interface/src/lib/services/remote-components.service.ts","../../../../libs/angular-integration-interface/src/lib/services/workspace.service.ts","../../../../libs/angular-integration-interface/src/lib/services/shell-capability.service.ts","../../../../libs/angular-integration-interface/src/index.ts","../../../../libs/angular-integration-interface/src/onecx-angular-integration-interface.ts"],"sourcesContent":["import { Location } from '@angular/common'\nimport { HttpClient } from '@angular/common/http'\nimport { Injectable, inject } from '@angular/core'\nimport { Config } from '@onecx/integration-interface'\nimport { BehaviorSubject, firstValueFrom } from 'rxjs'\n\n@Injectable()\nexport class AppConfigService {\n private http = inject(HttpClient)\n\n config$ = new BehaviorSubject<{ [key: string]: string }>({})\n\n public init(baseUrl: string): Promise<void> {\n return new Promise((resolve, reject) => {\n const loadConfigPromise: Promise<Config> = firstValueFrom(\n this.http.get<Config>(Location.joinWithSlash(baseUrl, 'assets/env.json'))\n )\n\n loadConfigPromise\n .then(async (config) => {\n if (config) {\n this.config$.next(config)\n resolve()\n }\n })\n .catch((e) => {\n console.log(`Failed to load env configuration`)\n reject(e)\n })\n })\n }\n\n public getProperty(key: string): string | undefined {\n return this.config$.getValue()?.[key]\n }\n\n public setProperty(key: string, val: string) {\n this.config$.next({ ...this.config$.value, [key]: val })\n }\n\n public getConfig(): { [key: string]: string } {\n return this.config$.getValue()\n }\n}\n","import { Injectable, OnDestroy } from '@angular/core'\nimport {\n GlobalErrorTopic,\n GlobalLoadingTopic,\n CurrentMfeTopic,\n CurrentPageTopic,\n CurrentWorkspaceTopic,\n IsAuthenticatedTopic,\n CurrentLocationTopic,\n} from '@onecx/integration-interface'\n\n@Injectable({ providedIn: 'root' })\nexport class AppStateService implements OnDestroy {\n globalError$ = new GlobalErrorTopic()\n globalLoading$ = new GlobalLoadingTopic()\n currentMfe$ = new CurrentMfeTopic()\n currentLocation$ = new CurrentLocationTopic()\n\n /**\n * This topic will only fire when pageInfo.path matches document.location.pathname,\n * if not it will fire undefined.\n */\n currentPage$ = new CurrentPageTopic()\n currentWorkspace$ = new CurrentWorkspaceTopic()\n\n /**\n * This Topic is initialized as soon as the authentication is done\n */\n isAuthenticated$ = new IsAuthenticatedTopic()\n\n ngOnDestroy(): void {\n this.globalError$.destroy()\n this.globalLoading$.destroy()\n this.currentMfe$.destroy()\n this.currentPage$.destroy()\n this.currentLocation$.destroy()\n this.currentWorkspace$.destroy()\n this.isAuthenticated$.destroy()\n }\n}\n","import { InjectionToken } from '@angular/core'\n\nexport interface LibConfig {\n appId: string\n portalId: string\n /**\n * If true, the tkit-module will not try to load remote env values from server(GET /assets/env.json)\n */\n skipRemoteConfigLoad: boolean\n /**\n * URL from which the remote config will be loaded, default: '/assets/env.json'\n */\n remoteConfigURL: string\n}\nexport const APP_CONFIG = new InjectionToken<LibConfig>('APP_CONFIG')\n\nexport const SANITY_CHECK = new InjectionToken<string>('OCXSANITY_CHECK')\n\nexport const APPLICATION_NAME = new InjectionToken<string>('APPLICATION_NAME')\n","export enum CONFIG_KEY {\n TKIT_PORTAL_DEFAULT_THEME = 'TKIT_PORTAL_DEFAULT_THEME',\n TKIT_PORTAL_DISABLE_THEME_MANAGEMENT = 'TKIT_PORTAL_DISABLE_THEME_MANAGEMENT',\n TKIT_PORTAL_THEME_SERVER_URL = 'TKIT_PORTAL_THEME_SERVER_URL',\n TKIT_TOKEN_ROLE_CLAIM_NAME = 'TKIT_TOKEN_ROLE_CLAIM_NAME',\n TKIT_PORTAL_ID = 'TKIT_PORTAL_ID',\n TKIT_SUPPORTED_LANGUAGES = 'TKIT_SUPPORTED_LANGUAGES',\n TKIT_SEARCH_BASE_URL = 'TKIT_SEARCH_BASE_URL',\n APP_BASE_HREF = 'APP_BASE_HREF',\n KEYCLOAK_REALM = 'KEYCLOAK_REALM',\n KEYCLOAK_ENABLE_SILENT_SSO = 'KEYCLOAK_ENABLE_SILENT_SSO',\n KEYCLOAK_URL = 'KEYCLOAK_URL',\n KEYCLOAK_CLIENT_ID = 'KEYCLOAK_CLIENT_ID',\n ONECX_PORTAL_FAVORITES_DISABLED = 'ONECX_PORTAL_FAVORITES_DISABLED',\n ONECX_PORTAL_FEEDBACK_DISABLED = 'ONECX_PORTAL_FEEDBACK_DISABLED',\n ONECX_PORTAL_SEARCH_DISABLED = 'ONECX_PORTAL_SEARCH_DISABLED',\n ONECX_PORTAL_SUPPORT_TICKET_DISABLED = 'ONECX_PORTAL_SUPPORT_TICKET_DISABLED',\n ONECX_PORTAL_ANNOUNCEMENTS_DISABLED = 'ONECX_PORTAL_ANNOUNCEMENTS_DISABLED',\n ONECX_PORTAL_PASSWORD_CHANGE_DISABLED = 'ONECX_PORTAL_PASSWORD_CHANGE_DISABLED',\n ONECX_PORTAL_SETTINGS_DISABLED = 'ONECX_PORTAL_SETTINGS_DISABLED',\n ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED = 'ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED',\n ONECX_PORTAL_HELP_DISABLED = 'ONECX_PORTAL_HELP_DISABLED',\n ONECX_PORTAL_SEARCH_BUTTONS_REVERSED = 'ONECX_PORTAL_SEARCH_BUTTONS_REVERSED',\n APP_VERSION = 'APP_VERSION',\n IS_SHELL = 'IS_SHELL',\n AUTH_SERVICE = 'AUTH_SERVICE',\n AUTH_SERVICE_CUSTOM_URL = 'AUTH_SERVICE_CUSTOM_URL',\n AUTH_SERVICE_CUSTOM_MODULE_NAME = 'AUTH_SERVICE_CUSTOM_MODULE_NAME',\n POLYFILL_SCOPE_MODE = 'POLYFILL_SCOPE_MODE'\n}\n\nexport enum POLYFILL_SCOPE_MODE {\n PERFORMANCE = 'PERFORMANCE',\n PRECISION = 'PRECISION',\n}","import { HttpClient } from '@angular/common/http'\nimport { Injectable, OnDestroy, inject } from '@angular/core'\nimport { firstValueFrom, map } from 'rxjs'\nimport { Config, ConfigurationTopic } from '@onecx/integration-interface'\nimport { APP_CONFIG } from '../api/injection-tokens'\nimport { CONFIG_KEY } from '../model/config-key.model'\nimport Semaphore from 'ts-semaphore'\n\n@Injectable({ providedIn: 'root' })\nexport class ConfigurationService implements OnDestroy {\n private http = inject(HttpClient)\n private defaultConfig = inject<{\n [key: string]: string\n }>(APP_CONFIG, { optional: true })\n\n private config$ = new ConfigurationTopic()\n private semaphore = new Semaphore(1)\n\n ngOnDestroy(): void {\n this.config$.destroy()\n }\n\n public init(): Promise<boolean> {\n return new Promise((resolve, reject) => {\n const skipRemoteConfigLoad = this.defaultConfig && this.defaultConfig['skipRemoteConfigLoad']\n let loadConfigPromise: Promise<Config>\n\n const inlinedConfig = (window as typeof window & { APP_CONFIG: Config })['APP_CONFIG']\n if (inlinedConfig) {\n console.log(`ENV resolved from injected config`)\n loadConfigPromise = Promise.resolve(inlinedConfig)\n } else {\n if (skipRemoteConfigLoad) {\n console.log(\n '📢 TKA001: Remote config load is disabled. To enable it, remove the \"skipRemoteConfigLoad\" key in your environment.json'\n )\n loadConfigPromise = Promise.resolve(this.defaultConfig || {})\n } else {\n loadConfigPromise = firstValueFrom(\n this.http.get<Config>((this.defaultConfig && this.defaultConfig['remoteConfigURL']) || 'assets/env.json')\n )\n }\n }\n\n loadConfigPromise\n .then(async (config) => {\n await this.config$.publish({ ...this.defaultConfig, ...(config ?? {}) }).then(() => {\n resolve(true)\n })\n })\n .catch((e) => {\n console.log(`Failed to load env configuration`)\n reject(e)\n })\n })\n }\n\n get isInitialized(): Promise<void> {\n return this.config$.isInitialized\n }\n\n public async getProperty(key: CONFIG_KEY): Promise<string | undefined> {\n if (!Object.values(CONFIG_KEY).includes(key)) {\n console.error('Invalid config key ', key)\n }\n return firstValueFrom(this.config$.pipe(map((config) => config[key])))\n }\n\n public async setProperty(key: string, val: string) {\n return this.semaphore.use(async () => {\n const currentValues = await firstValueFrom(this.config$.asObservable())\n currentValues[key] = val\n await this.config$.publish(currentValues)\n })\n }\n\n public async getConfig(): Promise<Config | undefined> {\n return firstValueFrom(this.config$.asObservable())\n }\n}\n","export const API_PREFIX = 'portal-api'\n\nexport const DEFAULT_LANG = 'en'\n","import { Injectable, OnDestroy } from '@angular/core'\nimport { PermissionsTopic, UserProfile, UserProfileTopic } from '@onecx/integration-interface'\nimport { BehaviorSubject, firstValueFrom, map } from 'rxjs'\nimport { DEFAULT_LANG } from '../api/constants'\nimport { getNormalizedBrowserLocales } from '@onecx/accelerator'\n\n@Injectable({ providedIn: 'root' })\nexport class UserService implements OnDestroy {\n profile$ = new UserProfileTopic()\n lang$ = new BehaviorSubject(this.determineLanguage() ?? DEFAULT_LANG)\n\n private permissionsTopic$ = new PermissionsTopic()\n\n constructor() {\n this.profile$\n .pipe(\n map((profile) => {\n let locales = profile.settings?.locales\n\n if (!locales) {\n return this.useOldLangSetting(profile)\n }\n\n if (locales.length === 0) {\n locales = getNormalizedBrowserLocales()\n }\n\n // the lang$ should contain the first language, because locales is an ordered list\n // length of 2 is checked because we need the general language\n // never choose 'en-US', but choose 'en'\n const firstLang = locales.find((l) => l.length === 2) ?? DEFAULT_LANG\n return firstLang\n })\n )\n .subscribe(this.lang$)\n }\n\n ngOnDestroy(): void {\n this.profile$.destroy()\n }\n\n useOldLangSetting(profile: UserProfile): string {\n return profile.accountSettings?.localeAndTimeSettings?.locale ?? this.determineLanguage() ?? DEFAULT_LANG\n }\n\n getPermissions() {\n return this.permissionsTopic$.asObservable()\n }\n\n async hasPermission(permissionKey: string | string[] | undefined): Promise<boolean> {\n if (!permissionKey) return true\n\n if (Array.isArray(permissionKey)) {\n const permissions = await Promise.all(permissionKey.map((key) => this.hasPermission(key)))\n return permissions.every((hasPermission) => hasPermission)\n }\n\n return firstValueFrom(\n this.permissionsTopic$.pipe(\n map((permissions) => {\n const result = permissions.includes(permissionKey)\n if (!result) {\n console.log(`👮♀️ No permission for: ${permissionKey}`)\n }\n return !!result\n })\n )\n )\n }\n\n private determineLanguage(): string | undefined {\n if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {\n return undefined\n }\n\n let browserLang: any = window.navigator.languages ? window.navigator.languages[0] : null\n browserLang = browserLang || window.navigator.language\n\n if (typeof browserLang === 'undefined') {\n return undefined\n }\n\n if (browserLang.indexOf('-') !== -1) {\n browserLang = browserLang.split('-')[0]\n }\n\n if (browserLang.indexOf('_') !== -1) {\n browserLang = browserLang.split('_')[0]\n }\n\n return browserLang\n }\n\n get isInitialized(): Promise<void> {\n return Promise.all([\n this.permissionsTopic$.isInitialized,\n this.profile$.isInitialized,\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n ]).then(() => {})\n }\n}\n","import { Injectable, OnDestroy, inject } from '@angular/core'\nimport { TranslateService } from '@ngx-translate/core'\nimport { MessageTopic } from '@onecx/integration-interface'\nimport { combineLatest, first, of } from 'rxjs'\n\nexport type Message = {\n summaryKey?: string\n summaryParameters?: object\n detailKey?: string\n detailParameters?: object\n id?: any\n key?: string\n life?: number\n sticky?: boolean\n closable?: boolean\n data?: any\n icon?: string\n contentStyleClass?: string\n styleClass?: string\n}\n\n@Injectable({ providedIn: 'any' })\nexport class PortalMessageService implements OnDestroy {\n private translateService = inject(TranslateService)\n\n message$ = new MessageTopic()\n\n success(msg: Message) {\n this.addTranslated('success', msg)\n }\n\n info(msg: Message) {\n this.addTranslated('info', msg)\n }\n\n error(msg: Message) {\n this.addTranslated('error', msg)\n }\n\n warning(msg: Message) {\n this.addTranslated('warning', msg)\n }\n\n private addTranslated(severity: string, msg: Message) {\n combineLatest([\n msg.summaryKey ? this.translateService.get(msg.summaryKey || '', msg.summaryParameters) : of(undefined),\n msg.detailKey ? this.translateService.get(msg.detailKey, msg.detailParameters) : of(undefined),\n ])\n .pipe(first())\n .subscribe(([summaryTranslation, detailTranslation]: string[]) => {\n this.message$.publish({\n ...msg,\n severity: severity,\n summary: summaryTranslation,\n detail: detailTranslation,\n })\n })\n }\n\n ngOnDestroy(): void {\n this.message$.destroy()\n }\n}\n","import { Injectable, OnDestroy } from '@angular/core'\nimport { CurrentThemeTopic } from '@onecx/integration-interface'\n\n@Injectable({ providedIn: 'root' })\nexport class ThemeService implements OnDestroy {\n currentTheme$ = new CurrentThemeTopic()\n ngOnDestroy(): void {\n this.currentTheme$.destroy()\n }\n}\n","import { Injectable, OnDestroy } from '@angular/core'\nimport { RemoteComponentsTopic } from '@onecx/integration-interface'\n\n@Injectable({ providedIn: 'root' })\nexport class RemoteComponentsService implements OnDestroy {\n remoteComponents$ = new RemoteComponentsTopic()\n\n ngOnDestroy(): void {\n this.remoteComponents$.destroy()\n }\n}\n","import { Location } from '@angular/common'\nimport { Injectable, inject } from '@angular/core'\nimport { Endpoint, Route } from '@onecx/integration-interface'\nimport { Observable, map } from 'rxjs'\nimport { AppStateService } from './app-state.service'\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WorkspaceService {\n protected appStateService = inject(AppStateService)\n\n private aliasStart = '[['\n private aliasEnd = ']]'\n private paramStart = '{'\n private paramEnd = '}'\n\n getUrl(\n productName: string,\n appId: string,\n endpointName?: string,\n endpointParameters?: Record<string, unknown>\n ): Observable<string> {\n return this.appStateService.currentWorkspace$.pipe(\n map((workspace) => {\n const finalUrl = this.constructRouteUrl(workspace, appId, productName, endpointName, endpointParameters)\n return finalUrl\n })\n )\n }\n\n doesUrlExistFor(productName: string, appId: string, endpointName?: string): Observable<boolean> {\n return this.appStateService.currentWorkspace$.pipe(\n map((workspace) => {\n const checkEndpoint = endpointName !== undefined && endpointName.length > 0\n\n if (workspace.routes == undefined) {\n return false\n }\n const route = this.filterRouteFromList(workspace.routes, appId, productName)\n\n if (checkEndpoint) {\n if (!route || route.endpoints === undefined || route.endpoints.length == 0) {\n return false\n }\n\n const endpoint = route.endpoints.find((ep) => ep.name === endpointName)\n return !!(endpoint && endpoint.path && endpoint.path.length > 0)\n } else {\n return !!(route && route.baseUrl && route.baseUrl.length > 0)\n }\n })\n )\n }\n\n private constructBaseUrlFromWorkspace(workspace: any): string {\n if (workspace.baseUrl === undefined) {\n console.log('WARNING: There was no baseUrl for received workspace.')\n return ''\n }\n return workspace.baseUrl\n }\n\n private constructRouteUrl(\n workspace: any,\n appId: string,\n productName: string,\n endpointName?: string,\n endpointParameters?: Record<string, unknown>\n ): string {\n const route = this.filterRouteFromList(workspace.routes, appId, productName)\n let url = this.constructBaseUrlFromWorkspace(workspace)\n if (!route) {\n console.log(\n `WARNING: No route.baseUrl could be found for given appId \"${appId}\" and productName \"${productName}\"`\n )\n\n return url\n }\n\n if (route.baseUrl !== undefined && route.baseUrl.length > 0) {\n url = route.baseUrl\n }\n if (endpointName == undefined) {\n return url\n }\n\n url = Location.joinWithSlash(url, this.constructEndpointUrl(route, endpointName, endpointParameters))\n return url\n }\n\n private constructEndpointUrl(\n route: any,\n endpointName: string,\n endpointParameters: Record<string, unknown> = {}\n ): string {\n if (!route.endpoints) {\n return ''\n }\n const finalEndpoint = this.dissolveEndpoint(endpointName, route.endpoints)\n if (!finalEndpoint || finalEndpoint.path === undefined) {\n console.log('WARNING: No endpoint or endpoint.path could be found')\n return ''\n }\n\n const paramsFilled = this.fillParamsForPath(finalEndpoint.path, endpointParameters)\n if (paramsFilled === undefined) {\n console.log('WARNING: Params could not be filled correctly')\n return ''\n }\n\n return paramsFilled\n }\n\n private filterRouteFromList(routes: Array<Route>, appId: string, productName: string): Route | undefined {\n if (!routes) {\n return undefined\n }\n\n const productRoutes = routes.filter((route) => route.appId === appId && route.productName === productName)\n\n if (productRoutes.length === 0) {\n return undefined\n }\n\n if (productRoutes.length > 1) {\n console.log('WARNING: There were more than one route. First route has been used.')\n }\n\n return productRoutes[0]\n }\n\n private dissolveEndpoint(endpointName: string, endpoints: Array<Endpoint>): Endpoint | undefined {\n let endpoint = endpoints.find((ep) => ep.name === endpointName)\n\n if (!endpoint) {\n return undefined\n }\n\n while (endpoint.path?.includes(this.aliasStart)) {\n const path: string = endpoint.path\n const startIdx = path.indexOf(this.aliasStart) + this.aliasStart.length\n const endIdx = path.lastIndexOf(this.aliasEnd)\n if (endIdx <= startIdx) {\n return undefined\n }\n const aliasName = path.substring(startIdx, endIdx)\n endpoint = endpoints.find((ep) => ep.name === aliasName)\n\n if (!endpoint) {\n return undefined\n }\n }\n\n return endpoint\n }\n\n private fillParamsForPath(path: string, endpointParameters: Record<string, unknown>): string {\n while (path.includes(this.paramStart)) {\n const paramName = path.substring(\n path.indexOf(this.paramStart) + this.paramStart.length,\n path.indexOf(this.paramEnd)\n )\n const paramValue = this.getStringFromUnknown(endpointParameters[paramName])\n if (paramValue != undefined && paramValue.length > 0) {\n path = path.replace(this.paramStart.concat(paramName).concat(this.paramEnd), paramValue)\n } else {\n console.log(`WARNING: Searched param \"${paramName}\" was not found in given param list `)\n return ''\n }\n }\n return path\n }\n\n private getStringFromUnknown(value: unknown): string {\n if (value === null || value === undefined) {\n return ''\n } else if (typeof value === 'string') {\n return value\n } else {\n return String(value)\n }\n }\n}\n","import { Injectable } from '@angular/core'\n\ndeclare global {\n interface Window {\n 'onecx-shell-capabilities': Capability[]\n }\n}\n\nexport enum Capability {\n CURRENT_LOCATION_TOPIC = 'currentLocationTopic',\n PARAMETERS_TOPIC = 'parametersTopic',\n ACTIVENESS_AWARE_MENUS = 'activenessAwareMenus',\n}\n\n@Injectable({ providedIn: 'root' })\nexport class ShellCapabilityService {\n static setCapabilities(capabilities: Capability[]): void {\n window['onecx-shell-capabilities'] = capabilities\n }\n\n hasCapability(capability: Capability): boolean {\n return window['onecx-shell-capabilities']?.includes(capability) ?? false\n }\n}\n","// services\nexport * from './lib/services/app-config-service'\nexport * from './lib/services/app-state.service'\nexport * from './lib/services/configuration.service'\nexport * from './lib/services/user.service'\nexport * from './lib/services/portal-message.service'\nexport * from './lib/services/theme.service'\nexport * from './lib/services/remote-components.service'\nexport * from './lib/services/workspace.service'\nexport * from './lib/services/shell-capability.service'\n\n// models\nexport * from './lib/model/config-key.model'\n\n// core\nexport * from './lib/api/injection-tokens'\n\n// utils\n\nexport { MfeInfo, Theme } from '@onecx/integration-interface'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index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EAAA;QAClC,OAAO,MAAM,CAAC,0BAA0B,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,IAAI,KAAK;;+GAN/D,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,cADT,MAAM,EAAA,CAAA,CAAA;;4FACnB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACdlC;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"onecx-angular-integration-interface.mjs","sources":["../../../../libs/angular-integration-interface/src/lib/services/app-config-service.ts","../../../../libs/angular-integration-interface/src/lib/services/app-state.service.ts","../../../../libs/angular-integration-interface/src/lib/api/injection-tokens.ts","../../../../libs/angular-integration-interface/src/lib/model/config-key.model.ts","../../../../libs/angular-integration-interface/src/lib/services/configuration.service.ts","../../../../libs/angular-integration-interface/src/lib/api/constants.ts","../../../../libs/angular-integration-interface/src/lib/services/user.service.ts","../../../../libs/angular-integration-interface/src/lib/services/portal-message.service.ts","../../../../libs/angular-integration-interface/src/lib/services/theme.service.ts","../../../../libs/angular-integration-interface/src/lib/services/remote-components.service.ts","../../../../libs/angular-integration-interface/src/lib/services/workspace.service.ts","../../../../libs/angular-integration-interface/src/lib/services/shell-capability.service.ts","../../../../libs/angular-integration-interface/src/lib/services/image-repository.service.ts","../../../../libs/angular-integration-interface/src/index.ts","../../../../libs/angular-integration-interface/src/onecx-angular-integration-interface.ts"],"sourcesContent":["import { Location } from '@angular/common'\nimport { HttpClient } from '@angular/common/http'\nimport { Injectable, inject } from '@angular/core'\nimport { Config } from '@onecx/integration-interface'\nimport { BehaviorSubject, firstValueFrom } from 'rxjs'\n\n@Injectable()\nexport class AppConfigService {\n private http = inject(HttpClient)\n\n config$ = new BehaviorSubject<{ [key: string]: string }>({})\n\n public init(baseUrl: string): Promise<void> {\n return new Promise((resolve, reject) => {\n const loadConfigPromise: Promise<Config> = firstValueFrom(\n this.http.get<Config>(Location.joinWithSlash(baseUrl, 'assets/env.json'))\n )\n\n loadConfigPromise\n .then(async (config) => {\n if (config) {\n this.config$.next(config)\n resolve()\n }\n })\n .catch((e) => {\n console.log(`Failed to load env configuration`)\n reject(e)\n })\n })\n }\n\n public getProperty(key: string): string | undefined {\n return this.config$.getValue()?.[key]\n }\n\n public setProperty(key: string, val: string) {\n this.config$.next({ ...this.config$.value, [key]: val })\n }\n\n public getConfig(): { [key: string]: string } {\n return this.config$.getValue()\n }\n}\n","import { Injectable, OnDestroy } from '@angular/core'\nimport {\n GlobalErrorTopic,\n GlobalLoadingTopic,\n CurrentMfeTopic,\n CurrentPageTopic,\n CurrentWorkspaceTopic,\n IsAuthenticatedTopic,\n CurrentLocationTopic,\n} from '@onecx/integration-interface'\n\n@Injectable({ providedIn: 'root' })\nexport class AppStateService implements OnDestroy {\n private _globalError$: GlobalErrorTopic | undefined\n get globalError$(): GlobalErrorTopic {\n this._globalError$ ??= new GlobalErrorTopic()\n return this._globalError$\n }\n set globalError$(source: GlobalErrorTopic) {\n this._globalError$ = source\n }\n private _globalLoading$: GlobalLoadingTopic | undefined\n get globalLoading$(): GlobalLoadingTopic {\n this._globalLoading$ ??= new GlobalLoadingTopic()\n return this._globalLoading$\n }\n set globalLoading$(source: GlobalLoadingTopic) {\n this._globalLoading$ = source\n }\n private _currentMfe$: CurrentMfeTopic | undefined\n get currentMfe$(): CurrentMfeTopic {\n this._currentMfe$ ??= new CurrentMfeTopic()\n return this._currentMfe$\n }\n set currentMfe$(source: CurrentMfeTopic) {\n this._currentMfe$ = source\n }\n private _currentLocation$: CurrentLocationTopic | undefined\n get currentLocation$(): CurrentLocationTopic {\n this._currentLocation$ ??= new CurrentLocationTopic()\n return this._currentLocation$\n }\n set currentLocation$(source: CurrentLocationTopic) {\n this._currentLocation$ = source\n }\n\n private _currentPage$: CurrentPageTopic | undefined\n /**\n * This topic will only fire when pageInfo.path matches document.location.pathname,\n * if not it will fire undefined.\n */\n get currentPage$(): CurrentPageTopic {\n this._currentPage$ ??= new CurrentPageTopic()\n return this._currentPage$\n }\n set currentPage$(source: CurrentPageTopic) {\n this._currentPage$ = source\n }\n _currentWorkspace$: CurrentWorkspaceTopic | undefined\n get currentWorkspace$(): CurrentWorkspaceTopic {\n this._currentWorkspace$ ??= new CurrentWorkspaceTopic()\n return this._currentWorkspace$\n }\n set currentWorkspace$(source: CurrentWorkspaceTopic) {\n this._currentWorkspace$ = source\n }\n\n /**\n * This Topic is initialized as soon as the authentication is done\n */\n private _isAuthenticated$: IsAuthenticatedTopic | undefined\n get isAuthenticated$(): IsAuthenticatedTopic {\n this._isAuthenticated$ ??= new IsAuthenticatedTopic()\n return this._isAuthenticated$\n }\n set isAuthenticated$(source: IsAuthenticatedTopic) {\n this._isAuthenticated$ = source\n }\n\n ngOnDestroy(): void {\n this._globalError$?.destroy()\n this._globalLoading$?.destroy()\n this._currentMfe$?.destroy()\n this._currentPage$?.destroy()\n this._currentLocation$?.destroy()\n this._currentWorkspace$?.destroy()\n this._isAuthenticated$?.destroy()\n }\n}\n","import { InjectionToken } from '@angular/core'\n\nexport interface LibConfig {\n appId: string\n portalId: string\n /**\n * If true, the tkit-module will not try to load remote env values from server(GET /assets/env.json)\n */\n skipRemoteConfigLoad: boolean\n /**\n * URL from which the remote config will be loaded, default: '/assets/env.json'\n */\n remoteConfigURL: string\n}\nexport const APP_CONFIG = new InjectionToken<LibConfig>('APP_CONFIG')\n\nexport const SANITY_CHECK = new InjectionToken<string>('OCXSANITY_CHECK')\n\nexport const APPLICATION_NAME = new InjectionToken<string>('APPLICATION_NAME')\n","export enum CONFIG_KEY {\n TKIT_PORTAL_DEFAULT_THEME = 'TKIT_PORTAL_DEFAULT_THEME',\n TKIT_PORTAL_DISABLE_THEME_MANAGEMENT = 'TKIT_PORTAL_DISABLE_THEME_MANAGEMENT',\n TKIT_PORTAL_THEME_SERVER_URL = 'TKIT_PORTAL_THEME_SERVER_URL',\n TKIT_TOKEN_ROLE_CLAIM_NAME = 'TKIT_TOKEN_ROLE_CLAIM_NAME',\n TKIT_PORTAL_ID = 'TKIT_PORTAL_ID',\n TKIT_SUPPORTED_LANGUAGES = 'TKIT_SUPPORTED_LANGUAGES',\n TKIT_SEARCH_BASE_URL = 'TKIT_SEARCH_BASE_URL',\n APP_BASE_HREF = 'APP_BASE_HREF',\n KEYCLOAK_REALM = 'KEYCLOAK_REALM',\n KEYCLOAK_ENABLE_SILENT_SSO = 'KEYCLOAK_ENABLE_SILENT_SSO',\n KEYCLOAK_URL = 'KEYCLOAK_URL',\n KEYCLOAK_CLIENT_ID = 'KEYCLOAK_CLIENT_ID',\n ONECX_PORTAL_FAVORITES_DISABLED = 'ONECX_PORTAL_FAVORITES_DISABLED',\n ONECX_PORTAL_FEEDBACK_DISABLED = 'ONECX_PORTAL_FEEDBACK_DISABLED',\n ONECX_PORTAL_SEARCH_DISABLED = 'ONECX_PORTAL_SEARCH_DISABLED',\n ONECX_PORTAL_SUPPORT_TICKET_DISABLED = 'ONECX_PORTAL_SUPPORT_TICKET_DISABLED',\n ONECX_PORTAL_ANNOUNCEMENTS_DISABLED = 'ONECX_PORTAL_ANNOUNCEMENTS_DISABLED',\n ONECX_PORTAL_PASSWORD_CHANGE_DISABLED = 'ONECX_PORTAL_PASSWORD_CHANGE_DISABLED',\n ONECX_PORTAL_SETTINGS_DISABLED = 'ONECX_PORTAL_SETTINGS_DISABLED',\n ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED = 'ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED',\n ONECX_PORTAL_HELP_DISABLED = 'ONECX_PORTAL_HELP_DISABLED',\n ONECX_PORTAL_SEARCH_BUTTONS_REVERSED = 'ONECX_PORTAL_SEARCH_BUTTONS_REVERSED',\n APP_VERSION = 'APP_VERSION',\n IS_SHELL = 'IS_SHELL',\n AUTH_SERVICE = 'AUTH_SERVICE',\n AUTH_SERVICE_CUSTOM_URL = 'AUTH_SERVICE_CUSTOM_URL',\n AUTH_SERVICE_CUSTOM_MODULE_NAME = 'AUTH_SERVICE_CUSTOM_MODULE_NAME',\n POLYFILL_SCOPE_MODE = 'POLYFILL_SCOPE_MODE'\n}\n\nexport enum POLYFILL_SCOPE_MODE {\n PERFORMANCE = 'PERFORMANCE',\n PRECISION = 'PRECISION',\n}","import { HttpClient } from '@angular/common/http'\nimport { Injectable, OnDestroy, inject } from '@angular/core'\nimport { firstValueFrom, map } from 'rxjs'\nimport { Config, ConfigurationTopic } from '@onecx/integration-interface'\nimport { APP_CONFIG } from '../api/injection-tokens'\nimport { CONFIG_KEY } from '../model/config-key.model'\nimport Semaphore from 'ts-semaphore'\n\n@Injectable({ providedIn: 'root' })\nexport class ConfigurationService implements OnDestroy {\n private http = inject(HttpClient)\n private defaultConfig = inject<{\n [key: string]: string\n }>(APP_CONFIG, { optional: true })\n\n _config$: ConfigurationTopic | undefined\n get config$() {\n this._config$ ??= new ConfigurationTopic()\n return this._config$\n }\n set config$(source: ConfigurationTopic) {\n this._config$ = source\n }\n private semaphore = new Semaphore(1)\n\n ngOnDestroy(): void {\n this._config$?.destroy()\n }\n\n public init(): Promise<boolean> {\n return new Promise((resolve, reject) => {\n const skipRemoteConfigLoad = this.defaultConfig && this.defaultConfig['skipRemoteConfigLoad']\n let loadConfigPromise: Promise<Config>\n\n const inlinedConfig = (window as typeof window & { APP_CONFIG: Config })['APP_CONFIG']\n if (inlinedConfig) {\n console.log(`ENV resolved from injected config`)\n loadConfigPromise = Promise.resolve(inlinedConfig)\n } else {\n if (skipRemoteConfigLoad) {\n console.log(\n '📢 TKA001: Remote config load is disabled. To enable it, remove the \"skipRemoteConfigLoad\" key in your environment.json'\n )\n loadConfigPromise = Promise.resolve(this.defaultConfig || {})\n } else {\n loadConfigPromise = firstValueFrom(\n this.http.get<Config>((this.defaultConfig && this.defaultConfig['remoteConfigURL']) || 'assets/env.json')\n )\n }\n }\n\n loadConfigPromise\n .then(async (config) => {\n await this.config$.publish({ ...this.defaultConfig, ...(config ?? {}) }).then(() => {\n resolve(true)\n })\n })\n .catch((e) => {\n console.log(`Failed to load env configuration`)\n reject(e)\n })\n })\n }\n\n get isInitialized(): Promise<void> {\n return this.config$.isInitialized\n }\n\n public async getProperty(key: CONFIG_KEY): Promise<string | undefined> {\n if (!Object.values(CONFIG_KEY).includes(key)) {\n console.error('Invalid config key ', key)\n }\n return firstValueFrom(this.config$.pipe(map((config) => config[key])))\n }\n\n public async setProperty(key: string, val: string) {\n return this.semaphore.use(async () => {\n const currentValues = await firstValueFrom(this.config$.asObservable())\n currentValues[key] = val\n await this.config$.publish(currentValues)\n })\n }\n\n public async getConfig(): Promise<Config | undefined> {\n return firstValueFrom(this.config$.asObservable())\n }\n}\n","export const API_PREFIX = 'portal-api'\n\nexport const DEFAULT_LANG = 'en'\n","import { Injectable, OnDestroy } from '@angular/core'\nimport { PermissionsTopic, UserProfile, UserProfileTopic } from '@onecx/integration-interface'\nimport { BehaviorSubject, firstValueFrom, map } from 'rxjs'\nimport { DEFAULT_LANG } from '../api/constants'\nimport { getNormalizedBrowserLocales } from '@onecx/accelerator'\n\n@Injectable({ providedIn: 'root' })\nexport class UserService implements OnDestroy {\n profile$ = new UserProfileTopic()\n lang$ = new BehaviorSubject(this.determineLanguage() ?? DEFAULT_LANG)\n\n _permissionsTopic$: PermissionsTopic | undefined\n get permissionsTopic$() {\n this._permissionsTopic$ ??= new PermissionsTopic()\n return this._permissionsTopic$\n }\n set permissionsTopic$(source: PermissionsTopic) {\n this._permissionsTopic$ = source\n }\n\n constructor() {\n this.profile$\n .pipe(\n map((profile) => {\n let locales = profile.settings?.locales\n\n if (!locales) {\n return this.useOldLangSetting(profile)\n }\n\n if (locales.length === 0) {\n locales = getNormalizedBrowserLocales()\n }\n\n // the lang$ should contain the first language, because locales is an ordered list\n // length of 2 is checked because we need the general language\n // never choose 'en-US', but choose 'en'\n const firstLang = locales.find((l) => l.length === 2) ?? DEFAULT_LANG\n return firstLang\n })\n )\n .subscribe(this.lang$)\n }\n\n ngOnDestroy(): void {\n this.profile$.destroy()\n this._permissionsTopic$?.destroy()\n }\n\n useOldLangSetting(profile: UserProfile): string {\n return profile.accountSettings?.localeAndTimeSettings?.locale ?? this.determineLanguage() ?? DEFAULT_LANG\n }\n\n getPermissions() {\n return this.permissionsTopic$.asObservable()\n }\n\n async hasPermission(permissionKey: string | string[] | undefined): Promise<boolean> {\n if (!permissionKey) return true\n\n if (Array.isArray(permissionKey)) {\n const permissions = await Promise.all(permissionKey.map((key) => this.hasPermission(key)))\n return permissions.every((hasPermission) => hasPermission)\n }\n\n return firstValueFrom(\n this.permissionsTopic$.pipe(\n map((permissions) => {\n const result = permissions.includes(permissionKey)\n if (!result) {\n console.log(`👮♀️ No permission for: ${permissionKey}`)\n }\n return !!result\n })\n )\n )\n }\n\n private determineLanguage(): string | undefined {\n if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {\n return undefined\n }\n\n let browserLang: any = window.navigator.languages ? window.navigator.languages[0] : null\n browserLang = browserLang || window.navigator.language\n\n if (typeof browserLang === 'undefined') {\n return undefined\n }\n\n if (browserLang.indexOf('-') !== -1) {\n browserLang = browserLang.split('-')[0]\n }\n\n if (browserLang.indexOf('_') !== -1) {\n browserLang = browserLang.split('_')[0]\n }\n\n return browserLang\n }\n\n get isInitialized(): Promise<void> {\n return Promise.all([\n this.permissionsTopic$.isInitialized,\n this.profile$.isInitialized,\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n ]).then(() => {})\n }\n}\n","import { Injectable, OnDestroy, inject } from '@angular/core'\nimport { TranslateService } from '@ngx-translate/core'\nimport { MessageTopic } from '@onecx/integration-interface'\nimport { combineLatest, first, of } from 'rxjs'\n\nexport type Message = {\n summaryKey?: string\n summaryParameters?: object\n detailKey?: string\n detailParameters?: object\n id?: any\n key?: string\n life?: number\n sticky?: boolean\n closable?: boolean\n data?: any\n icon?: string\n contentStyleClass?: string\n styleClass?: string\n}\n\n@Injectable({ providedIn: 'any' })\nexport class PortalMessageService implements OnDestroy {\n private translateService = inject(TranslateService)\n\n _message$: MessageTopic | undefined\n get message$() {\n this._message$ ??= new MessageTopic()\n return this._message$\n }\n set message$(source: MessageTopic) {\n this._message$ = source\n }\n\n success(msg: Message) {\n this.addTranslated('success', msg)\n }\n\n info(msg: Message) {\n this.addTranslated('info', msg)\n }\n\n error(msg: Message) {\n this.addTranslated('error', msg)\n }\n\n warning(msg: Message) {\n this.addTranslated('warning', msg)\n }\n\n private addTranslated(severity: string, msg: Message) {\n combineLatest([\n msg.summaryKey ? this.translateService.get(msg.summaryKey || '', msg.summaryParameters) : of(undefined),\n msg.detailKey ? this.translateService.get(msg.detailKey, msg.detailParameters) : of(undefined),\n ])\n .pipe(first())\n .subscribe(([summaryTranslation, detailTranslation]: string[]) => {\n this.message$.publish({\n ...msg,\n severity: severity,\n summary: summaryTranslation,\n detail: detailTranslation,\n })\n })\n }\n\n ngOnDestroy(): void {\n this._message$?.destroy()\n }\n}\n","import { Injectable, OnDestroy } from '@angular/core'\nimport { CurrentThemeTopic } from '@onecx/integration-interface'\n\n@Injectable({ providedIn: 'root' })\nexport class ThemeService implements OnDestroy {\n _currentTheme$: CurrentThemeTopic | undefined\n get currentTheme$() {\n this._currentTheme$ ??= new CurrentThemeTopic()\n return this._currentTheme$\n }\n set currentTheme$(source: CurrentThemeTopic) {\n this._currentTheme$ = source\n }\n ngOnDestroy(): void {\n this._currentTheme$?.destroy()\n }\n}\n","import { Injectable, OnDestroy } from '@angular/core'\nimport { RemoteComponentsTopic } from '@onecx/integration-interface'\n\n@Injectable({ providedIn: 'root' })\nexport class RemoteComponentsService implements OnDestroy {\n _remoteComponents$: RemoteComponentsTopic | undefined\n get remoteComponents$() {\n this._remoteComponents$ ??= new RemoteComponentsTopic()\n return this._remoteComponents$\n }\n set remoteComponents$(source: RemoteComponentsTopic) {\n this._remoteComponents$ = source\n }\n\n ngOnDestroy(): void {\n this._remoteComponents$?.destroy()\n }\n}\n","import { Location } from '@angular/common'\nimport { Injectable, inject } from '@angular/core'\nimport { Endpoint, Route } from '@onecx/integration-interface'\nimport { Observable, map } from 'rxjs'\nimport { AppStateService } from './app-state.service'\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WorkspaceService {\n protected appStateService = inject(AppStateService)\n\n private aliasStart = '[['\n private aliasEnd = ']]'\n private paramStart = '{'\n private paramEnd = '}'\n\n getUrl(\n productName: string,\n appId: string,\n endpointName?: string,\n endpointParameters?: Record<string, unknown>\n ): Observable<string> {\n return this.appStateService.currentWorkspace$.pipe(\n map((workspace) => {\n const finalUrl = this.constructRouteUrl(workspace, appId, productName, endpointName, endpointParameters)\n return finalUrl\n })\n )\n }\n\n doesUrlExistFor(productName: string, appId: string, endpointName?: string): Observable<boolean> {\n return this.appStateService.currentWorkspace$.pipe(\n map((workspace) => {\n const checkEndpoint = endpointName !== undefined && endpointName.length > 0\n\n if (workspace.routes == undefined) {\n return false\n }\n const route = this.filterRouteFromList(workspace.routes, appId, productName)\n\n if (checkEndpoint) {\n if (!route || route.endpoints === undefined || route.endpoints.length == 0) {\n return false\n }\n\n const endpoint = route.endpoints.find((ep) => ep.name === endpointName)\n return !!(endpoint && endpoint.path && endpoint.path.length > 0)\n } else {\n return !!(route && route.baseUrl && route.baseUrl.length > 0)\n }\n })\n )\n }\n\n private constructBaseUrlFromWorkspace(workspace: any): string {\n if (workspace.baseUrl === undefined) {\n console.log('WARNING: There was no baseUrl for received workspace.')\n return ''\n }\n return workspace.baseUrl\n }\n\n private constructRouteUrl(\n workspace: any,\n appId: string,\n productName: string,\n endpointName?: string,\n endpointParameters?: Record<string, unknown>\n ): string {\n const route = this.filterRouteFromList(workspace.routes, appId, productName)\n let url = this.constructBaseUrlFromWorkspace(workspace)\n if (!route) {\n console.log(\n `WARNING: No route.baseUrl could be found for given appId \"${appId}\" and productName \"${productName}\"`\n )\n\n return url\n }\n\n if (route.baseUrl !== undefined && route.baseUrl.length > 0) {\n url = route.baseUrl\n }\n if (endpointName == undefined) {\n return url\n }\n\n url = Location.joinWithSlash(url, this.constructEndpointUrl(route, endpointName, endpointParameters))\n return url\n }\n\n private constructEndpointUrl(\n route: any,\n endpointName: string,\n endpointParameters: Record<string, unknown> = {}\n ): string {\n if (!route.endpoints) {\n return ''\n }\n const finalEndpoint = this.dissolveEndpoint(endpointName, route.endpoints)\n if (!finalEndpoint || finalEndpoint.path === undefined) {\n console.log('WARNING: No endpoint or endpoint.path could be found')\n return ''\n }\n\n const paramsFilled = this.fillParamsForPath(finalEndpoint.path, endpointParameters)\n if (paramsFilled === undefined) {\n console.log('WARNING: Params could not be filled correctly')\n return ''\n }\n\n return paramsFilled\n }\n\n private filterRouteFromList(routes: Array<Route>, appId: string, productName: string): Route | undefined {\n if (!routes) {\n return undefined\n }\n\n const productRoutes = routes.filter((route) => route.appId === appId && route.productName === productName)\n\n if (productRoutes.length === 0) {\n return undefined\n }\n\n if (productRoutes.length > 1) {\n console.log('WARNING: There were more than one route. First route has been used.')\n }\n\n return productRoutes[0]\n }\n\n private dissolveEndpoint(endpointName: string, endpoints: Array<Endpoint>): Endpoint | undefined {\n let endpoint = endpoints.find((ep) => ep.name === endpointName)\n\n if (!endpoint) {\n return undefined\n }\n\n while (endpoint.path?.includes(this.aliasStart)) {\n const path: string = endpoint.path\n const startIdx = path.indexOf(this.aliasStart) + this.aliasStart.length\n const endIdx = path.lastIndexOf(this.aliasEnd)\n if (endIdx <= startIdx) {\n return undefined\n }\n const aliasName = path.substring(startIdx, endIdx)\n endpoint = endpoints.find((ep) => ep.name === aliasName)\n\n if (!endpoint) {\n return undefined\n }\n }\n\n return endpoint\n }\n\n private fillParamsForPath(path: string, endpointParameters: Record<string, unknown>): string {\n while (path.includes(this.paramStart)) {\n const paramName = path.substring(\n path.indexOf(this.paramStart) + this.paramStart.length,\n path.indexOf(this.paramEnd)\n )\n const paramValue = this.getStringFromUnknown(endpointParameters[paramName])\n if (paramValue != undefined && paramValue.length > 0) {\n path = path.replace(this.paramStart.concat(paramName).concat(this.paramEnd), paramValue)\n } else {\n console.log(`WARNING: Searched param \"${paramName}\" was not found in given param list `)\n return ''\n }\n }\n return path\n }\n\n private getStringFromUnknown(value: unknown): string {\n if (value === null || value === undefined) {\n return ''\n } else if (typeof value === 'string') {\n return value\n } else {\n return String(value)\n }\n }\n}\n","import { Injectable } from '@angular/core'\n\ndeclare global {\n interface Window {\n 'onecx-shell-capabilities': Capability[]\n }\n}\n\nexport enum Capability {\n CURRENT_LOCATION_TOPIC = 'currentLocationTopic',\n PARAMETERS_TOPIC = 'parametersTopic',\n ACTIVENESS_AWARE_MENUS = 'activenessAwareMenus',\n}\n\n@Injectable({ providedIn: 'root' })\nexport class ShellCapabilityService {\n static setCapabilities(capabilities: Capability[]): void {\n window['onecx-shell-capabilities'] = capabilities\n }\n\n hasCapability(capability: Capability): boolean {\n return window['onecx-shell-capabilities']?.includes(capability) ?? false\n }\n}\n","import { Injectable, OnDestroy } from \"@angular/core\";\nimport { ImageRepositoryService as ImageRepositryInterface, ImageRepositoryTopic } from '@onecx/integration-interface'\n\n@Injectable({providedIn: 'root'}) \nexport class ImageRepositoryService implements OnDestroy {\n private readonly imageRepositoryInterface = new ImageRepositryInterface();\n get imageRepositoryTopic() {\n return this.imageRepositoryInterface.imageRepositoryTopic;\n }\n\n set imageRepositoryTopic(source: ImageRepositoryTopic) {\n this.imageRepositoryInterface.imageRepositoryTopic = source;\n }\n\n async getUrl(names: string[]): Promise<string | undefined>;\n async getUrl(names: string[], fallbackUrl: string): Promise<string>;\n async getUrl(names: string[], fallbackUrl?: string): Promise<string | undefined> {\n if (fallbackUrl) {\n return this.imageRepositoryInterface.getUrl(names, fallbackUrl);\n }\n return this.imageRepositoryInterface.getUrl(names);\n } \n\n ngOnDestroy(): void {\n this.imageRepositoryInterface.destroy();\n }\n\n destroy() {\n this.ngOnDestroy();\n }\n}","// services\nexport * from './lib/services/app-config-service'\nexport * from './lib/services/app-state.service'\nexport * from './lib/services/configuration.service'\nexport * from './lib/services/user.service'\nexport * from './lib/services/portal-message.service'\nexport * from './lib/services/theme.service'\nexport * from './lib/services/remote-components.service'\nexport * from './lib/services/workspace.service'\nexport * from './lib/services/shell-capability.service'\nexport * from './lib/services/image-repository.service'\n\n// models\nexport * from './lib/model/config-key.model'\n\n// core\nexport * from './lib/api/injection-tokens'\n\n// utils\n\nexport { MfeInfo, Theme } from '@onecx/integration-interface'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ImageRepositryInterface"],"mappings":";;;;;;;;;;MAOa,gBAAgB,CAAA;AAD7B,IAAA,WAAA,GAAA;AAEU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AAEjC,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAA4B,EAAE,CAAC;AAiC7D,IAAA;AA/BQ,IAAA,IAAI,CAAC,OAAe,EAAA;QACzB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAI;YACrC,MAAM,iBAAiB,GAAoB,cAAc,CACvD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAS,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAC1E;YAED;AACG,iBAAA,IAAI,CAAC,OAAO,MAAM,KAAI;gBACrB,IAAI,MAAM,EAAE;AACV,oBAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;AACzB,oBAAA,OAAO,EAAE;gBACX;AACF,YAAA,CAAC;AACA,iBAAA,KAAK,CAAC,CAAC,CAAC,KAAI;AACX,gBAAA,OAAO,CAAC,GAAG,CAAC,CAAA,gCAAA,CAAkC,CAAC;gBAC/C,MAAM,CA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B,CAAC,MAAM,CAAC,KAAK,CAAC;IACtD;IAEA,WAAW,GAAA;AACP,QAAA,IAAI,CAAC,wBAAwB,CAAC,OAAO,EAAE;IAC3C;IAEA,OAAO,GAAA;QACH,IAAI,CAAC,WAAW,EAAE;IACtB;+GAzBS,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,cADV,MAAM,EAAA,CAAA,CAAA;;4FAClB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;ACHhC;;ACAA;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,12 +1,239 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export * from './lib/services/theme.service';
|
|
7
|
-
export * from './lib/services/remote-components.service';
|
|
8
|
-
export * from './lib/services/workspace.service';
|
|
9
|
-
export * from './lib/services/shell-capability.service';
|
|
10
|
-
export * from './lib/model/config-key.model';
|
|
11
|
-
export * from './lib/api/injection-tokens';
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { OnDestroy, InjectionToken } from '@angular/core';
|
|
5
|
+
import { GlobalErrorTopic, GlobalLoadingTopic, CurrentMfeTopic, CurrentLocationTopic, CurrentPageTopic, CurrentWorkspaceTopic, IsAuthenticatedTopic, ConfigurationTopic, Config, UserProfileTopic, PermissionsTopic, UserProfile, MessageTopic, CurrentThemeTopic, RemoteComponentsTopic, ImageRepositoryTopic } from '@onecx/integration-interface';
|
|
12
6
|
export { MfeInfo, Theme } from '@onecx/integration-interface';
|
|
7
|
+
|
|
8
|
+
declare class AppConfigService {
|
|
9
|
+
private http;
|
|
10
|
+
config$: BehaviorSubject<{
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
}>;
|
|
13
|
+
init(baseUrl: string): Promise<void>;
|
|
14
|
+
getProperty(key: string): string | undefined;
|
|
15
|
+
setProperty(key: string, val: string): void;
|
|
16
|
+
getConfig(): {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class AppStateService implements OnDestroy {
|
|
24
|
+
private _globalError$;
|
|
25
|
+
get globalError$(): GlobalErrorTopic;
|
|
26
|
+
set globalError$(source: GlobalErrorTopic);
|
|
27
|
+
private _globalLoading$;
|
|
28
|
+
get globalLoading$(): GlobalLoadingTopic;
|
|
29
|
+
set globalLoading$(source: GlobalLoadingTopic);
|
|
30
|
+
private _currentMfe$;
|
|
31
|
+
get currentMfe$(): CurrentMfeTopic;
|
|
32
|
+
set currentMfe$(source: CurrentMfeTopic);
|
|
33
|
+
private _currentLocation$;
|
|
34
|
+
get currentLocation$(): CurrentLocationTopic;
|
|
35
|
+
set currentLocation$(source: CurrentLocationTopic);
|
|
36
|
+
private _currentPage$;
|
|
37
|
+
/**
|
|
38
|
+
* This topic will only fire when pageInfo.path matches document.location.pathname,
|
|
39
|
+
* if not it will fire undefined.
|
|
40
|
+
*/
|
|
41
|
+
get currentPage$(): CurrentPageTopic;
|
|
42
|
+
set currentPage$(source: CurrentPageTopic);
|
|
43
|
+
_currentWorkspace$: CurrentWorkspaceTopic | undefined;
|
|
44
|
+
get currentWorkspace$(): CurrentWorkspaceTopic;
|
|
45
|
+
set currentWorkspace$(source: CurrentWorkspaceTopic);
|
|
46
|
+
/**
|
|
47
|
+
* This Topic is initialized as soon as the authentication is done
|
|
48
|
+
*/
|
|
49
|
+
private _isAuthenticated$;
|
|
50
|
+
get isAuthenticated$(): IsAuthenticatedTopic;
|
|
51
|
+
set isAuthenticated$(source: IsAuthenticatedTopic);
|
|
52
|
+
ngOnDestroy(): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppStateService, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppStateService>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare enum CONFIG_KEY {
|
|
58
|
+
TKIT_PORTAL_DEFAULT_THEME = "TKIT_PORTAL_DEFAULT_THEME",
|
|
59
|
+
TKIT_PORTAL_DISABLE_THEME_MANAGEMENT = "TKIT_PORTAL_DISABLE_THEME_MANAGEMENT",
|
|
60
|
+
TKIT_PORTAL_THEME_SERVER_URL = "TKIT_PORTAL_THEME_SERVER_URL",
|
|
61
|
+
TKIT_TOKEN_ROLE_CLAIM_NAME = "TKIT_TOKEN_ROLE_CLAIM_NAME",
|
|
62
|
+
TKIT_PORTAL_ID = "TKIT_PORTAL_ID",
|
|
63
|
+
TKIT_SUPPORTED_LANGUAGES = "TKIT_SUPPORTED_LANGUAGES",
|
|
64
|
+
TKIT_SEARCH_BASE_URL = "TKIT_SEARCH_BASE_URL",
|
|
65
|
+
APP_BASE_HREF = "APP_BASE_HREF",
|
|
66
|
+
KEYCLOAK_REALM = "KEYCLOAK_REALM",
|
|
67
|
+
KEYCLOAK_ENABLE_SILENT_SSO = "KEYCLOAK_ENABLE_SILENT_SSO",
|
|
68
|
+
KEYCLOAK_URL = "KEYCLOAK_URL",
|
|
69
|
+
KEYCLOAK_CLIENT_ID = "KEYCLOAK_CLIENT_ID",
|
|
70
|
+
ONECX_PORTAL_FAVORITES_DISABLED = "ONECX_PORTAL_FAVORITES_DISABLED",
|
|
71
|
+
ONECX_PORTAL_FEEDBACK_DISABLED = "ONECX_PORTAL_FEEDBACK_DISABLED",
|
|
72
|
+
ONECX_PORTAL_SEARCH_DISABLED = "ONECX_PORTAL_SEARCH_DISABLED",
|
|
73
|
+
ONECX_PORTAL_SUPPORT_TICKET_DISABLED = "ONECX_PORTAL_SUPPORT_TICKET_DISABLED",
|
|
74
|
+
ONECX_PORTAL_ANNOUNCEMENTS_DISABLED = "ONECX_PORTAL_ANNOUNCEMENTS_DISABLED",
|
|
75
|
+
ONECX_PORTAL_PASSWORD_CHANGE_DISABLED = "ONECX_PORTAL_PASSWORD_CHANGE_DISABLED",
|
|
76
|
+
ONECX_PORTAL_SETTINGS_DISABLED = "ONECX_PORTAL_SETTINGS_DISABLED",
|
|
77
|
+
ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED = "ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED",
|
|
78
|
+
ONECX_PORTAL_HELP_DISABLED = "ONECX_PORTAL_HELP_DISABLED",
|
|
79
|
+
ONECX_PORTAL_SEARCH_BUTTONS_REVERSED = "ONECX_PORTAL_SEARCH_BUTTONS_REVERSED",
|
|
80
|
+
APP_VERSION = "APP_VERSION",
|
|
81
|
+
IS_SHELL = "IS_SHELL",
|
|
82
|
+
AUTH_SERVICE = "AUTH_SERVICE",
|
|
83
|
+
AUTH_SERVICE_CUSTOM_URL = "AUTH_SERVICE_CUSTOM_URL",
|
|
84
|
+
AUTH_SERVICE_CUSTOM_MODULE_NAME = "AUTH_SERVICE_CUSTOM_MODULE_NAME",
|
|
85
|
+
POLYFILL_SCOPE_MODE = "POLYFILL_SCOPE_MODE"
|
|
86
|
+
}
|
|
87
|
+
declare enum POLYFILL_SCOPE_MODE {
|
|
88
|
+
PERFORMANCE = "PERFORMANCE",
|
|
89
|
+
PRECISION = "PRECISION"
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare class ConfigurationService implements OnDestroy {
|
|
93
|
+
private http;
|
|
94
|
+
private defaultConfig;
|
|
95
|
+
_config$: ConfigurationTopic | undefined;
|
|
96
|
+
get config$(): ConfigurationTopic;
|
|
97
|
+
set config$(source: ConfigurationTopic);
|
|
98
|
+
private semaphore;
|
|
99
|
+
ngOnDestroy(): void;
|
|
100
|
+
init(): Promise<boolean>;
|
|
101
|
+
get isInitialized(): Promise<void>;
|
|
102
|
+
getProperty(key: CONFIG_KEY): Promise<string | undefined>;
|
|
103
|
+
setProperty(key: string, val: string): Promise<void>;
|
|
104
|
+
getConfig(): Promise<Config | undefined>;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
|
|
106
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare class UserService implements OnDestroy {
|
|
110
|
+
profile$: UserProfileTopic;
|
|
111
|
+
lang$: BehaviorSubject<string>;
|
|
112
|
+
_permissionsTopic$: PermissionsTopic | undefined;
|
|
113
|
+
get permissionsTopic$(): PermissionsTopic;
|
|
114
|
+
set permissionsTopic$(source: PermissionsTopic);
|
|
115
|
+
constructor();
|
|
116
|
+
ngOnDestroy(): void;
|
|
117
|
+
useOldLangSetting(profile: UserProfile): string;
|
|
118
|
+
getPermissions(): rxjs.Observable<string[]>;
|
|
119
|
+
hasPermission(permissionKey: string | string[] | undefined): Promise<boolean>;
|
|
120
|
+
private determineLanguage;
|
|
121
|
+
get isInitialized(): Promise<void>;
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
123
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type Message = {
|
|
127
|
+
summaryKey?: string;
|
|
128
|
+
summaryParameters?: object;
|
|
129
|
+
detailKey?: string;
|
|
130
|
+
detailParameters?: object;
|
|
131
|
+
id?: any;
|
|
132
|
+
key?: string;
|
|
133
|
+
life?: number;
|
|
134
|
+
sticky?: boolean;
|
|
135
|
+
closable?: boolean;
|
|
136
|
+
data?: any;
|
|
137
|
+
icon?: string;
|
|
138
|
+
contentStyleClass?: string;
|
|
139
|
+
styleClass?: string;
|
|
140
|
+
};
|
|
141
|
+
declare class PortalMessageService implements OnDestroy {
|
|
142
|
+
private translateService;
|
|
143
|
+
_message$: MessageTopic | undefined;
|
|
144
|
+
get message$(): MessageTopic;
|
|
145
|
+
set message$(source: MessageTopic);
|
|
146
|
+
success(msg: Message): void;
|
|
147
|
+
info(msg: Message): void;
|
|
148
|
+
error(msg: Message): void;
|
|
149
|
+
warning(msg: Message): void;
|
|
150
|
+
private addTranslated;
|
|
151
|
+
ngOnDestroy(): void;
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PortalMessageService, never>;
|
|
153
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PortalMessageService>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class ThemeService implements OnDestroy {
|
|
157
|
+
_currentTheme$: CurrentThemeTopic | undefined;
|
|
158
|
+
get currentTheme$(): CurrentThemeTopic;
|
|
159
|
+
set currentTheme$(source: CurrentThemeTopic);
|
|
160
|
+
ngOnDestroy(): void;
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
162
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class RemoteComponentsService implements OnDestroy {
|
|
166
|
+
_remoteComponents$: RemoteComponentsTopic | undefined;
|
|
167
|
+
get remoteComponents$(): RemoteComponentsTopic;
|
|
168
|
+
set remoteComponents$(source: RemoteComponentsTopic);
|
|
169
|
+
ngOnDestroy(): void;
|
|
170
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoteComponentsService, never>;
|
|
171
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RemoteComponentsService>;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare class WorkspaceService {
|
|
175
|
+
protected appStateService: AppStateService;
|
|
176
|
+
private aliasStart;
|
|
177
|
+
private aliasEnd;
|
|
178
|
+
private paramStart;
|
|
179
|
+
private paramEnd;
|
|
180
|
+
getUrl(productName: string, appId: string, endpointName?: string, endpointParameters?: Record<string, unknown>): Observable<string>;
|
|
181
|
+
doesUrlExistFor(productName: string, appId: string, endpointName?: string): Observable<boolean>;
|
|
182
|
+
private constructBaseUrlFromWorkspace;
|
|
183
|
+
private constructRouteUrl;
|
|
184
|
+
private constructEndpointUrl;
|
|
185
|
+
private filterRouteFromList;
|
|
186
|
+
private dissolveEndpoint;
|
|
187
|
+
private fillParamsForPath;
|
|
188
|
+
private getStringFromUnknown;
|
|
189
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceService, never>;
|
|
190
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WorkspaceService>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare global {
|
|
194
|
+
interface Window {
|
|
195
|
+
'onecx-shell-capabilities': Capability[];
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
declare enum Capability {
|
|
199
|
+
CURRENT_LOCATION_TOPIC = "currentLocationTopic",
|
|
200
|
+
PARAMETERS_TOPIC = "parametersTopic",
|
|
201
|
+
ACTIVENESS_AWARE_MENUS = "activenessAwareMenus"
|
|
202
|
+
}
|
|
203
|
+
declare class ShellCapabilityService {
|
|
204
|
+
static setCapabilities(capabilities: Capability[]): void;
|
|
205
|
+
hasCapability(capability: Capability): boolean;
|
|
206
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShellCapabilityService, never>;
|
|
207
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShellCapabilityService>;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
declare class ImageRepositoryService implements OnDestroy {
|
|
211
|
+
private readonly imageRepositoryInterface;
|
|
212
|
+
get imageRepositoryTopic(): ImageRepositoryTopic;
|
|
213
|
+
set imageRepositoryTopic(source: ImageRepositoryTopic);
|
|
214
|
+
getUrl(names: string[]): Promise<string | undefined>;
|
|
215
|
+
getUrl(names: string[], fallbackUrl: string): Promise<string>;
|
|
216
|
+
ngOnDestroy(): void;
|
|
217
|
+
destroy(): void;
|
|
218
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageRepositoryService, never>;
|
|
219
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ImageRepositoryService>;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
interface LibConfig {
|
|
223
|
+
appId: string;
|
|
224
|
+
portalId: string;
|
|
225
|
+
/**
|
|
226
|
+
* If true, the tkit-module will not try to load remote env values from server(GET /assets/env.json)
|
|
227
|
+
*/
|
|
228
|
+
skipRemoteConfigLoad: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* URL from which the remote config will be loaded, default: '/assets/env.json'
|
|
231
|
+
*/
|
|
232
|
+
remoteConfigURL: string;
|
|
233
|
+
}
|
|
234
|
+
declare const APP_CONFIG: InjectionToken<LibConfig>;
|
|
235
|
+
declare const SANITY_CHECK: InjectionToken<string>;
|
|
236
|
+
declare const APPLICATION_NAME: InjectionToken<string>;
|
|
237
|
+
|
|
238
|
+
export { APPLICATION_NAME, APP_CONFIG, AppConfigService, AppStateService, CONFIG_KEY, Capability, ConfigurationService, ImageRepositoryService, POLYFILL_SCOPE_MODE, PortalMessageService, RemoteComponentsService, SANITY_CHECK, ShellCapabilityService, ThemeService, UserService, WorkspaceService };
|
|
239
|
+
export type { LibConfig, Message };
|
package/mocks/index.d.ts
CHANGED
|
@@ -1,8 +1,117 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export * from './user-service-mock';
|
|
7
|
-
export * from './shell-capability-service-mock';
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
+
import { AppConfigService, AppStateService, CONFIG_KEY, ConfigurationService, Message as Message$1, PortalMessageService, RemoteComponentsService, UserService, Capability, ShellCapabilityService } from '@onecx/angular-integration-interface';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { MfeInfo, PageInfo, Workspace, CurrentLocationTopicPayload, Config, Message, RemoteComponentsInfo, UserProfile } from '@onecx/integration-interface';
|
|
5
|
+
import { FakeTopic } from '@onecx/accelerator';
|
|
8
6
|
export * from '@onecx/accelerator';
|
|
7
|
+
|
|
8
|
+
declare function provideAppConfigServiceMock(): (typeof AppConfigServiceMock | {
|
|
9
|
+
provide: typeof AppConfigService;
|
|
10
|
+
useExisting: typeof AppConfigServiceMock;
|
|
11
|
+
})[];
|
|
12
|
+
declare class AppConfigServiceMock {
|
|
13
|
+
config$: BehaviorSubject<{
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
}>;
|
|
16
|
+
init(baseUrl: string): Promise<void>;
|
|
17
|
+
getProperty(key: string): string | undefined;
|
|
18
|
+
setProperty(key: string, val: string): void;
|
|
19
|
+
getConfig(): {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigServiceMock, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigServiceMock>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare function provideAppStateServiceMock(): (typeof AppStateServiceMock | {
|
|
27
|
+
provide: typeof AppStateService;
|
|
28
|
+
useExisting: typeof AppStateServiceMock;
|
|
29
|
+
})[];
|
|
30
|
+
declare class AppStateServiceMock {
|
|
31
|
+
globalError$: FakeTopic<unknown>;
|
|
32
|
+
globalLoading$: FakeTopic<boolean>;
|
|
33
|
+
currentMfe$: FakeTopic<MfeInfo>;
|
|
34
|
+
currentPage$: FakeTopic<PageInfo | undefined>;
|
|
35
|
+
currentPortal$: FakeTopic<Workspace>;
|
|
36
|
+
currentWorkspace$: FakeTopic<Workspace>;
|
|
37
|
+
currentLocation$: FakeTopic<CurrentLocationTopicPayload>;
|
|
38
|
+
isAuthenticated$: FakeTopic<null>;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppStateServiceMock, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppStateServiceMock>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare function provideConfigurationServiceMock(): (typeof ConfigurationServiceMock | {
|
|
44
|
+
provide: typeof ConfigurationService;
|
|
45
|
+
useExisting: typeof ConfigurationServiceMock;
|
|
46
|
+
})[];
|
|
47
|
+
declare class ConfigurationServiceMock {
|
|
48
|
+
config$: FakeTopic<Config>;
|
|
49
|
+
private resolveInitPromise;
|
|
50
|
+
private isInitializedPromise;
|
|
51
|
+
constructor();
|
|
52
|
+
init(config?: Config): Promise<boolean>;
|
|
53
|
+
get isInitialized(): Promise<void>;
|
|
54
|
+
getProperty(key: CONFIG_KEY): Promise<string | undefined>;
|
|
55
|
+
setProperty(key: string, val: string): Promise<void>;
|
|
56
|
+
getConfig(): Promise<Config | undefined>;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationServiceMock, never>;
|
|
58
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationServiceMock>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare function providePortalMessageServiceMock(): (typeof PortalMessageServiceMock | {
|
|
62
|
+
provide: typeof PortalMessageService;
|
|
63
|
+
useExisting: typeof PortalMessageServiceMock;
|
|
64
|
+
})[];
|
|
65
|
+
declare class PortalMessageServiceMock {
|
|
66
|
+
message$: FakeTopic<Message>;
|
|
67
|
+
success(msg: Message$1): void;
|
|
68
|
+
info(msg: Message$1): void;
|
|
69
|
+
error(msg: Message$1): void;
|
|
70
|
+
warning(msg: Message$1): void;
|
|
71
|
+
private addTranslated;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PortalMessageServiceMock, never>;
|
|
73
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PortalMessageServiceMock>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare function provideRemoteComponentsServiceMock(): (typeof RemoteComponentsServiceMock | {
|
|
77
|
+
provide: typeof RemoteComponentsService;
|
|
78
|
+
useExisting: typeof RemoteComponentsServiceMock;
|
|
79
|
+
})[];
|
|
80
|
+
declare class RemoteComponentsServiceMock {
|
|
81
|
+
remoteComponents$: FakeTopic<RemoteComponentsInfo>;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoteComponentsServiceMock, never>;
|
|
83
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RemoteComponentsServiceMock>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare function provideUserServiceMock(): (typeof UserServiceMock | {
|
|
87
|
+
provide: typeof UserService;
|
|
88
|
+
useExisting: typeof UserServiceMock;
|
|
89
|
+
})[];
|
|
90
|
+
declare class UserServiceMock {
|
|
91
|
+
profile$: FakeTopic<UserProfile>;
|
|
92
|
+
permissionsTopic$: FakeTopic<string[]>;
|
|
93
|
+
lang$: BehaviorSubject<string>;
|
|
94
|
+
hasPermission(permissionKey: string | string[]): Promise<boolean>;
|
|
95
|
+
getPermissions(): Observable<string[]>;
|
|
96
|
+
determineLanguage(): string | undefined;
|
|
97
|
+
extractPermissions(userProfile: UserProfile): string[] | null;
|
|
98
|
+
get isInitialized(): Promise<void>;
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserServiceMock, never>;
|
|
100
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserServiceMock>;
|
|
101
|
+
}
|
|
102
|
+
type MockUserService = UserServiceMock;
|
|
103
|
+
|
|
104
|
+
declare function provideShellCapabilityServiceMock(): (typeof ShellCapabilityServiceMock | {
|
|
105
|
+
provide: typeof ShellCapabilityService;
|
|
106
|
+
useExisting: typeof ShellCapabilityServiceMock;
|
|
107
|
+
})[];
|
|
108
|
+
declare class ShellCapabilityServiceMock {
|
|
109
|
+
static capabilities: Capability[];
|
|
110
|
+
static setCapabilities(capabilities: Capability[]): void;
|
|
111
|
+
hasCapability(capability: Capability): boolean;
|
|
112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShellCapabilityServiceMock, never>;
|
|
113
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShellCapabilityServiceMock>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export { AppConfigServiceMock, AppStateServiceMock, ConfigurationServiceMock, PortalMessageServiceMock, RemoteComponentsServiceMock, ShellCapabilityServiceMock, UserServiceMock, provideAppConfigServiceMock, provideAppStateServiceMock, provideConfigurationServiceMock, providePortalMessageServiceMock, provideRemoteComponentsServiceMock, provideShellCapabilityServiceMock, provideUserServiceMock };
|
|
117
|
+
export type { MockUserService };
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onecx/angular-integration-interface",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/onecx/onecx-portal-ui-libs"
|
|
8
|
+
},
|
|
5
9
|
"peerDependencies": {
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@onecx/accelerator": "^7.0.0
|
|
8
|
-
"@onecx/nx-migration-utils": "^7.0.0
|
|
9
|
-
"@onecx/integration-interface": "^7.0.0
|
|
10
|
+
"@angular/core": "^20.0.0",
|
|
11
|
+
"@onecx/accelerator": "^7.0.0",
|
|
12
|
+
"@onecx/nx-migration-utils": "^7.0.0",
|
|
13
|
+
"@onecx/integration-interface": "^7.0.0",
|
|
10
14
|
"rxjs": "~7.8.1",
|
|
11
|
-
"@nx/devkit": "^
|
|
15
|
+
"@nx/devkit": "^22.0.2",
|
|
12
16
|
"@phenomnomnominal/tsquery": "^6",
|
|
13
17
|
"ts-semaphore": "^1.0.0",
|
|
14
|
-
"@jest/globals": "29.7.0",
|
|
15
|
-
"jest-extended": "^6.0.0",
|
|
16
18
|
"typescript": "^5.5.4"
|
|
17
19
|
},
|
|
18
20
|
"dependencies": {
|
package/lib/api/constants.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export interface LibConfig {
|
|
3
|
-
appId: string;
|
|
4
|
-
portalId: string;
|
|
5
|
-
/**
|
|
6
|
-
* If true, the tkit-module will not try to load remote env values from server(GET /assets/env.json)
|
|
7
|
-
*/
|
|
8
|
-
skipRemoteConfigLoad: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* URL from which the remote config will be loaded, default: '/assets/env.json'
|
|
11
|
-
*/
|
|
12
|
-
remoteConfigURL: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const APP_CONFIG: InjectionToken<LibConfig>;
|
|
15
|
-
export declare const SANITY_CHECK: InjectionToken<string>;
|
|
16
|
-
export declare const APPLICATION_NAME: InjectionToken<string>;
|