@openmfp/portal-ui-lib 0.197.15 → 0.198.1

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject, Optional, Inject, provideAppInitializer, signal, ChangeDetectionStrategy, Component, ViewEncapsulation, makeEnvironmentProviders } from '@angular/core';
2
+ import { provideAppInitializer, inject, Injectable, Optional, Inject, signal, ChangeDetectionStrategy, Component, ViewEncapsulation, makeEnvironmentProviders } from '@angular/core';
3
3
  import * as i1 from '@angular/common/http';
4
4
  import { HttpHeaders, HttpErrorResponse, HttpClient, provideHttpClient } from '@angular/common/http';
5
5
  import { firstValueFrom, Subject, lastValueFrom, tap, filter } from 'rxjs';
@@ -13,6 +13,33 @@ import { filter as filter$1 } from 'rxjs/operators';
13
13
  import isMatch from 'lodash.ismatch';
14
14
  import { $localize } from '@angular/localize/init';
15
15
 
16
+ const ERROR_COMPONENT_CONFIG = 'OPENMFP_ERROR_COMPONENT_CONFIG';
17
+ const THEMING_SERVICE = 'OPENMFP_THEMING_SERVICE';
18
+ const LUIGI_STATIC_SETTINGS_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_STATIC_SETTINGS_CONFIG_SERVICE';
19
+ const LUIGI_CUSTOM_MESSAGE_LISTENERS_INJECTION_TOKEN = 'OPENMFP_LUIGI_CUSTOM_MESSAGE_LISTENERS';
20
+ const LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE';
21
+ const LUIGI_APP_SWITCHER_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_APP_SWITCHER_CONFIG_SERVICE';
22
+ const LUIGI_USER_PROFILE_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_USER_PROFILE_CONFIG_SERVICE';
23
+ const LUIGI_BREADCRUMB_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_BREADCRUMB_CONFIG_SERVICE';
24
+ const LUIGI_NODE_CHANGE_HOOK_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_NODE_CHANGE_HOOK_CONFIG_SERVICE';
25
+ const LUIGI_EXTENDED_GLOBAL_CONTEXT_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_NODES_EXTENDED_CONTEXT_SERVICE';
26
+ const LOCAL_CONFIGURATION_SERVICE_INJECTION_TOKEN = 'OPENMFP_LOCAL_CONFIGURATION_SERVICE';
27
+ const LUIGI_NODES_CUSTOM_GLOBAL_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_NODES_CUSTOM_GLOBAL_SERVICE';
28
+ const LUIGI_CUSTOM_NODE_PROCESSING_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_CUSTOM_NODE_PROCESSING_SERVICE';
29
+ const LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE';
30
+ const LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE';
31
+ const HEADER_BAR_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_HEADER_BAR_CONFIG_SERVICE';
32
+ const LUIGI_ROUTING_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_ROUTING_CONFIG_SERVICE';
33
+ const NAVIGATION_REDIRECT_STRATEGY_INJECTION_TOKEN = 'OPENMFP_NAVIGATION_REDIRECT_STRATEGY';
34
+ const ANALYTICS_TRACKER_INJECTION_TOKEN = 'OPENMFP_ANALYTICS_TRACKER';
35
+
36
+ const provideAnalyticsTracking = () => provideAppInitializer(() => {
37
+ const trackers = inject(ANALYTICS_TRACKER_INJECTION_TOKEN, {
38
+ optional: true,
39
+ }) ?? [];
40
+ trackers.forEach((tracker) => tracker.initialize().catch());
41
+ });
42
+
16
43
  const luigi = globalThis.Luigi;
17
44
  class LuigiCoreService {
18
45
  setConfig(config) {
@@ -385,25 +412,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
385
412
  }]
386
413
  }] });
387
414
 
388
- const ERROR_COMPONENT_CONFIG = 'OPENMFP_ERROR_COMPONENT_CONFIG';
389
- const THEMING_SERVICE = 'OPENMFP_THEMING_SERVICE';
390
- const LUIGI_STATIC_SETTINGS_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_STATIC_SETTINGS_CONFIG_SERVICE';
391
- const LUIGI_CUSTOM_MESSAGE_LISTENERS_INJECTION_TOKEN = 'OPENMFP_LUIGI_CUSTOM_MESSAGE_LISTENERS';
392
- const LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE';
393
- const LUIGI_APP_SWITCHER_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_APP_SWITCHER_CONFIG_SERVICE';
394
- const LUIGI_USER_PROFILE_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_USER_PROFILE_CONFIG_SERVICE';
395
- const LUIGI_BREADCRUMB_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_BREADCRUMB_CONFIG_SERVICE';
396
- const LUIGI_NODE_CHANGE_HOOK_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_NODE_CHANGE_HOOK_CONFIG_SERVICE';
397
- const LUIGI_EXTENDED_GLOBAL_CONTEXT_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_NODES_EXTENDED_CONTEXT_SERVICE';
398
- const LOCAL_CONFIGURATION_SERVICE_INJECTION_TOKEN = 'OPENMFP_LOCAL_CONFIGURATION_SERVICE';
399
- const LUIGI_NODES_CUSTOM_GLOBAL_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_NODES_CUSTOM_GLOBAL_SERVICE';
400
- const LUIGI_CUSTOM_NODE_PROCESSING_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_CUSTOM_NODE_PROCESSING_SERVICE';
401
- const LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE';
402
- const LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE';
403
- const HEADER_BAR_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_HEADER_BAR_CONFIG_SERVICE';
404
- const LUIGI_ROUTING_CONFIG_SERVICE_INJECTION_TOKEN = 'OPENMFP_LUIGI_ROUTING_CONFIG_SERVICE';
405
- const NAVIGATION_REDIRECT_STRATEGY_INJECTION_TOKEN = 'OPENMFP_NAVIGATION_REDIRECT_STRATEGY';
406
-
407
415
  class GlobalContextConfigService {
408
416
  constructor() {
409
417
  this.authService = inject(AuthService);
@@ -2937,6 +2945,7 @@ function providePortal(options = {}) {
2937
2945
  provideBootstrap(),
2938
2946
  provideSessionRefresh(),
2939
2947
  provideNavigationTracker(),
2948
+ provideAnalyticsTracking(),
2940
2949
  provideLanguageServices(),
2941
2950
  provideRouter(portalRouts),
2942
2951
  { provide: RouteReuseStrategy, useClass: CustomReuseStrategy },
@@ -3045,6 +3054,11 @@ const addOptionalProviders = (options) => {
3045
3054
  provide: NAVIGATION_REDIRECT_STRATEGY_INJECTION_TOKEN,
3046
3055
  useClass: options.navigationRedirectStrategy || DefaultNavigationRedirectStrategy,
3047
3056
  });
3057
+ (options.analyticsTrackers || []).forEach((trackerClass) => providers.push({
3058
+ provide: ANALYTICS_TRACKER_INJECTION_TOKEN,
3059
+ multi: true,
3060
+ useClass: trackerClass,
3061
+ }));
3048
3062
  return providers;
3049
3063
  };
3050
3064
 
@@ -3057,5 +3071,5 @@ const addOptionalProviders = (options) => {
3057
3071
  * Generated bundle index. Do not edit.
3058
3072
  */
3059
3073
 
3060
- export { AppSwitcherConfigServiceImpl, AuthConfigService, AuthEvent, AuthService, ConfigService, CustomMessageListenersService, CustomReuseStrategy, DefaultNavigationRedirectStrategy, DefaultUserProfileConfigService, ERROR_COMPONENT_CONFIG, EntityType, EnvConfigService, ErrorScreenComponent, GlobalContextConfigService, HEADER_BAR_CONFIG_SERVICE_INJECTION_TOKEN, HeaderBarService, I18nService, IframeService, LOCAL_CONFIGURATION_SERVICE_INJECTION_TOKEN, LUIGI_APP_SWITCHER_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE_INJECTION_TOKEN, LUIGI_BREADCRUMB_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_MESSAGE_LISTENERS_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_EXTENDED_GLOBAL_CONTEXT_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_NODES_CUSTOM_GLOBAL_SERVICE_INJECTION_TOKEN, LUIGI_NODE_CHANGE_HOOK_SERVICE_INJECTION_TOKEN, LUIGI_ROUTING_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_STATIC_SETTINGS_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_USER_PROFILE_CONFIG_SERVICE_INJECTION_TOKEN, LocalConfigurationServiceImpl, LocalNodesService, LocalStorageKeys, LoginEventService, LoginEventType, LuigiCoreService, LuigiNodesService, NAVIGATION_REDIRECT_STRATEGY_INJECTION_TOKEN, NavHeaderService, NetworkVisibility, NodeContextProcessingServiceImpl, NodeUtilsService, PortalComponent, PreserveQueryParamsUrlHandlingStrategy, RequestHeadersService, RoutingConfigServiceImpl, SessionRefreshService, StaticSettingsConfigServiceImpl, THEMING_SERVICE, UserSettingsConfigService, VPNService, featureToggleLocalStorage, localDevelopmentSettingsLocalStorage, matchesJMESPath, potentialVPNResourceLoadable, providePortal, transformLegacyBacktickLiterals, userSettingsLocalStorage };
3074
+ export { ANALYTICS_TRACKER_INJECTION_TOKEN, AppSwitcherConfigServiceImpl, AuthConfigService, AuthEvent, AuthService, ConfigService, CustomMessageListenersService, CustomReuseStrategy, DefaultNavigationRedirectStrategy, DefaultUserProfileConfigService, ERROR_COMPONENT_CONFIG, EntityType, EnvConfigService, ErrorScreenComponent, GlobalContextConfigService, HEADER_BAR_CONFIG_SERVICE_INJECTION_TOKEN, HeaderBarService, I18nService, IframeService, LOCAL_CONFIGURATION_SERVICE_INJECTION_TOKEN, LUIGI_APP_SWITCHER_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE_INJECTION_TOKEN, LUIGI_BREADCRUMB_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_MESSAGE_LISTENERS_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_EXTENDED_GLOBAL_CONTEXT_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_NODES_CUSTOM_GLOBAL_SERVICE_INJECTION_TOKEN, LUIGI_NODE_CHANGE_HOOK_SERVICE_INJECTION_TOKEN, LUIGI_ROUTING_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_STATIC_SETTINGS_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_USER_PROFILE_CONFIG_SERVICE_INJECTION_TOKEN, LocalConfigurationServiceImpl, LocalNodesService, LocalStorageKeys, LoginEventService, LoginEventType, LuigiCoreService, LuigiNodesService, NAVIGATION_REDIRECT_STRATEGY_INJECTION_TOKEN, NavHeaderService, NetworkVisibility, NodeContextProcessingServiceImpl, NodeUtilsService, PortalComponent, PreserveQueryParamsUrlHandlingStrategy, RequestHeadersService, RoutingConfigServiceImpl, SessionRefreshService, StaticSettingsConfigServiceImpl, THEMING_SERVICE, UserSettingsConfigService, VPNService, featureToggleLocalStorage, localDevelopmentSettingsLocalStorage, matchesJMESPath, potentialVPNResourceLoadable, providePortal, transformLegacyBacktickLiterals, userSettingsLocalStorage };
3061
3075
  //# sourceMappingURL=openmfp-portal-ui-lib.mjs.map