@softheon/armature 21.13.0 → 21.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softheon/armature",
3
- "version": "21.13.0",
3
+ "version": "21.15.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.8.1"
6
6
  },
@@ -5,7 +5,7 @@ import * as i6 from '@ngx-translate/core';
5
5
  import { TranslateService, TranslationObject } from '@ngx-translate/core';
6
6
  import { AuthConfig, OAuthService, OAuthStorage } from 'angular-oauth2-oidc';
7
7
  import * as rxjs from 'rxjs';
8
- import { Observable, Subscription, BehaviorSubject } from 'rxjs';
8
+ import { Observable, Subscription, BehaviorSubject, Subject } from 'rxjs';
9
9
  import * as i3 from '@angular/router';
10
10
  import { Router, ActivatedRoute } from '@angular/router';
11
11
  import * as i2 from '@angular/common';
@@ -7497,5 +7497,117 @@ declare class EntityInjectWrapperComponent implements OnInit {
7497
7497
  static ɵcmp: i0.ɵɵComponentDeclaration<EntityInjectWrapperComponent, "lib-entity-inject-wrapper", never, { "defaultSize": { "alias": "defaultSize"; "required": false; }; }, { "expandClicked": "expandClicked"; "closeClicked": "closeClicked"; }, never, ["*"], true, never>;
7498
7498
  }
7499
7499
 
7500
- export { ALERT_BANNER_CONFIG, AbstractSamlEntryService, AbstractSamlService, AbstractStartupService, AccessTokenClaims, AlertBannerComponent, AlertBannerModule, AlertBannerService, AlertService, AlphaNumericDirective, AppTemplateComponent, ApplicationUserModel, ArRoleNavService, ArmError, ArmatureFooterComponent, ArmatureFooterModule, ArmatureHeaderComponent, ArmatureHeaderModule, ArmatureModule, ArmatureNavigationComponent, ArmatureResizePanelsModule, Attribute, AuthorizationService, B2bNavComponent, BannerService, BannerType, BaseComponentModule, BaseConfigService, CacheExpirationType, ComponentSavePrintComponent, ComponentSavePrintService, Configuration, ConfirmAddressData, CoverageDetail, CssOverride, CssOverrideDirective, CustomAuthConfigService, DISABLE_ACCESS_FOR_NO_PAGES_ROLE, DISTRIBUTED_CACHE_BASE_PATH, DataStoreConfig, DateInputFilterDirective, DecodedAccessToken, DefaultConfigService, DialogResult, DistributedCacheModule, ENTITY_SESSION_STORAGE_PREFIX, ENTITY_SS_CONFIG_PREFIX, EntityBaseComponent, EntityHelperService, EntityInjectWrapperComponent, FAQ, FAQConfig, FEDERATED_MODULE_ID, FaqComponent, FaqModule, FeedbackToolComponent, FeedbackToolModule, FooterConfig, FormsModule, HYBRID_SAML_OAUTH_CONFIG, HeaderAuthSettings, HybridSamlOAuthConfig, HybridSamlOauthService, InputTrimDirective, LINE_OF_COVERAGE, LettersCharactersDirective, LettersOnlyDirective, MarketSelectionConfig, MarketSelectionService, MfeModule, MobileHeaderMenuComponent, ModalData, NavigationModule, NumbersOnlyDirective, Oauth2RoleService, OauthModule, PhoneFormatPipe, PolicyPerson, RBAC_CONFIG, RbacActionDirective, RbacConfig, RbacModule, RedirectSamlComponent, RedirectSamlRequest, RedirectSessionConfigs, ResizePanelsComponent, RoleAccess, RoleNavService, RoutePath, RumConfig, RumModule, RumService, SESSION_CONFIG, SOF_BLANK_LANGUAGE_OVERRIDE, SOF_DATE_PIPE_FORMATS, STATUS, SamlModule, SamlService, SelectedMarketContext, ServerCacheService, SessionConfig, SessionService, SharedErrorService, SiteMapComponent, SiteMapDirection, SnackbarService, SofAddressComponent, SofAlertComponent, SofArComponentSavePrintModule, SofBadgeComponent, SofBannerComponent, SofBlankPipe, SofBottomSheetComponent, SofBreadcrumbsHierarchyComponent, SofBreadcrumbsHistoryComponent, SofButtonToggleGroupComponent, SofCalloutComponent, SofChartSkeletonLoaderComponent, SofChipComponent, SofCompareAddressPipe, SofConfirmAddressComponent, SofConfirmAddressCountyChangeComponent, SofContextComponent, SofDatePipe, SofDropdownButtonComponent, SofErrorCommonComponent, SofHandleComponent, SofHeaderComponent, SofImageCheckboxComponent, SofInputStepperComponent, SofModalComponent, SofNavPanelComponent, SofPipeModule, SofProgressBarComponent, SofRadioCardComponent, SofSegmentedControlComponent, SofSelectComponent, SofSimpleAlertComponent, SofSkeletonLoaderComponent, SofSnackbarComponent, SofSsnPipe, SofStarRatingComponent, SofSubNavigationComponent, SofSvgLoaderComponent, SofTabsComponent, SofToastComponent, SofUtilityButtonComponent, SoftheonErrorHandlerService, SsoGatewayEntryService, SsoGatewayModel, States, TextOverflowEllipsisTooltipDirective, ThemeModule, ThemeService, ToastService, TypedSession, USER_ENTITY_SERVICE_CONFIG, UserEntityService, UserEntityServiceConfig, ValidationKeys, WINDOW, httpVerb, initializerFactory, keyPathPrefix, languageStorageKey, newGuid, pascalToCamel, preSignInRouteStorageKey, removeMenuRole, routeToPreLoginRoute, sessionBasePathFactory, userInitialsPipe };
7500
+ declare class MfeEventBusData {
7501
+ private uuid;
7502
+ get globalId(): string;
7503
+ eventScope: string | undefined;
7504
+ eventData: any | unknown;
7505
+ constructor();
7506
+ }
7507
+
7508
+ /**
7509
+ * Event bus service for communication between MFEs (Micro Frontends).
7510
+ *
7511
+ * This service manages event queues for each registered MFE and provides:
7512
+ * - Publishing events to MFE-specific queues
7513
+ * - Retrieving unretrieved events for a given consumer
7514
+ * - Automatic management of event consumption per consumer
7515
+ *
7516
+ * Events are tracked by a unique globalId to ensure each event is only
7517
+ * retrieved once per consumer unless explicitly republished.
7518
+ *
7519
+ * @example
7520
+ * // Publish an event
7521
+ * eventBus.publishEvent('entity-mfe', { globalId: '123', eventScope: 'test', data: {} });
7522
+ *
7523
+ * // Subscribe to events
7524
+ * eventBus.getLatestEvents('entity-mfe', 'my-consumer').subscribe(events => {
7525
+ * console.log('Received events:', events);
7526
+ * });
7527
+ */
7528
+ declare class MfeDataEventBus implements OnDestroy {
7529
+ /** HTTP client for fetching the manifest configuration */
7530
+ http: HttpClient;
7531
+ /** Map of MFE names to their event queues */
7532
+ private eventQueues;
7533
+ /** Map of consumer keys (mfeName-consumer) to sets of retrieved event IDs */
7534
+ private retrievedEventIds;
7535
+ /** Subscription container for cleanup on destroy */
7536
+ private subscription;
7537
+ constructor();
7538
+ /** Cleanup subscriptions when the service is destroyed */
7539
+ ngOnDestroy(): void;
7540
+ /**
7541
+ * Publishes an event to a specific MFE's event queue.
7542
+ *
7543
+ * If there is a pending request for this MFE, the event will be immediately
7544
+ * delivered to the waiting consumer. Otherwise, the event is stored in the queue.
7545
+ *
7546
+ * @param mfeName - The name of the target MFE
7547
+ * @param data - The event data to publish
7548
+ *
7549
+ * @example
7550
+ * eventBus.publishEvent('entity-mfe', {
7551
+ * globalId: 'evt-001',
7552
+ * eventScope: 'entity-update',
7553
+ * payload: { entityId: 123 }
7554
+ * });
7555
+ */
7556
+ publishEvent(mfeName: string, data: MfeEventBusData): void;
7557
+ /**
7558
+ * Retrieves all unretrieved events from the queue that have not been seen
7559
+ * by the pending request yet.
7560
+ *
7561
+ * @param mfeName - The name of the MFE
7562
+ * @param consumer - The consumer identifier
7563
+ * @param retrievedIds - Set of already retrieved event IDs for this request
7564
+ * @returns Array of unretrieved events
7565
+ */
7566
+ private getAllUnretrievedEvents;
7567
+ /**
7568
+ * Gets events for a specific MFE that have not been retrieved yet.
7569
+ *
7570
+ * If there are existing unretrieved events, they are returned immediately.
7571
+ * If the queue is empty, a pending request is set up to wait for new events.
7572
+ *
7573
+ * When using pending requests, events are batched and emitted all at once
7574
+ * when publishEvent is called, ensuring the subscriber receives the final
7575
+ * complete list of events.
7576
+ *
7577
+ * @param mfeName - The name of the MFE to get events from
7578
+ * @param consumer - A unique identifier for the consumer (e.g., component name)
7579
+ * @returns A Subject that will emit an array of unretrieved events and then complete
7580
+ *
7581
+ * @example
7582
+ * // In a component
7583
+ * eventBus.getLatestEvents('entity-mfe', 'my-component').subscribe(events => {
7584
+ * // events contains all events not previously retrieved
7585
+ * events.forEach(event => this.processEvent(event));
7586
+ * });
7587
+ *
7588
+ * // When entity updates occur
7589
+ * eventBus.publishEvent('entity-mfe', { globalId: '1', eventScope: 'update', data: {} });
7590
+ * eventBus.publishEvent('entity-mfe', { globalId: '2', eventScope: 'update', data: {} });
7591
+ *
7592
+ * // The subscriber will receive both events in a single array
7593
+ */
7594
+ getLatestEvents(mfeName: string, consumer: string): Subject<MfeEventBusData[]>;
7595
+ /**
7596
+ * Loads the MFE manifest configuration from the server.
7597
+ *
7598
+ * The manifest is expected to be a Map where keys are MFE names.
7599
+ * Each MFE in the manifest gets its own event queue initialized.
7600
+ */
7601
+ private loadMfManifest;
7602
+ /**
7603
+ * Parses the manifest and initializes event queues for each MFE.
7604
+ *
7605
+ * @param manifest - A map of MFE names from the manifest configuration
7606
+ */
7607
+ private parseManifest;
7608
+ static ɵfac: i0.ɵɵFactoryDeclaration<MfeDataEventBus, never>;
7609
+ static ɵprov: i0.ɵɵInjectableDeclaration<MfeDataEventBus>;
7610
+ }
7611
+
7612
+ export { ALERT_BANNER_CONFIG, AbstractSamlEntryService, AbstractSamlService, AbstractStartupService, AccessTokenClaims, AlertBannerComponent, AlertBannerModule, AlertBannerService, AlertService, AlphaNumericDirective, AppTemplateComponent, ApplicationUserModel, ArRoleNavService, ArmError, ArmatureFooterComponent, ArmatureFooterModule, ArmatureHeaderComponent, ArmatureHeaderModule, ArmatureModule, ArmatureNavigationComponent, ArmatureResizePanelsModule, Attribute, AuthorizationService, B2bNavComponent, BannerService, BannerType, BaseComponentModule, BaseConfigService, CacheExpirationType, ComponentSavePrintComponent, ComponentSavePrintService, Configuration, ConfirmAddressData, CoverageDetail, CssOverride, CssOverrideDirective, CustomAuthConfigService, DISABLE_ACCESS_FOR_NO_PAGES_ROLE, DISTRIBUTED_CACHE_BASE_PATH, DataStoreConfig, DateInputFilterDirective, DecodedAccessToken, DefaultConfigService, DialogResult, DistributedCacheModule, ENTITY_SESSION_STORAGE_PREFIX, ENTITY_SS_CONFIG_PREFIX, EntityBaseComponent, EntityHelperService, EntityInjectWrapperComponent, FAQ, FAQConfig, FEDERATED_MODULE_ID, FaqComponent, FaqModule, FeedbackToolComponent, FeedbackToolModule, FooterConfig, FormsModule, HYBRID_SAML_OAUTH_CONFIG, HeaderAuthSettings, HybridSamlOAuthConfig, HybridSamlOauthService, InputTrimDirective, LINE_OF_COVERAGE, LettersCharactersDirective, LettersOnlyDirective, MarketSelectionConfig, MarketSelectionService, MfeDataEventBus, MfeEventBusData, MfeModule, MobileHeaderMenuComponent, ModalData, NavigationModule, NumbersOnlyDirective, Oauth2RoleService, OauthModule, PhoneFormatPipe, PolicyPerson, RBAC_CONFIG, RbacActionDirective, RbacConfig, RbacModule, RedirectSamlComponent, RedirectSamlRequest, RedirectSessionConfigs, ResizePanelsComponent, RoleAccess, RoleNavService, RoutePath, RumConfig, RumModule, RumService, SESSION_CONFIG, SOF_BLANK_LANGUAGE_OVERRIDE, SOF_DATE_PIPE_FORMATS, STATUS, SamlModule, SamlService, SelectedMarketContext, ServerCacheService, SessionConfig, SessionService, SharedErrorService, SiteMapComponent, SiteMapDirection, SnackbarService, SofAddressComponent, SofAlertComponent, SofArComponentSavePrintModule, SofBadgeComponent, SofBannerComponent, SofBlankPipe, SofBottomSheetComponent, SofBreadcrumbsHierarchyComponent, SofBreadcrumbsHistoryComponent, SofButtonToggleGroupComponent, SofCalloutComponent, SofChartSkeletonLoaderComponent, SofChipComponent, SofCompareAddressPipe, SofConfirmAddressComponent, SofConfirmAddressCountyChangeComponent, SofContextComponent, SofDatePipe, SofDropdownButtonComponent, SofErrorCommonComponent, SofHandleComponent, SofHeaderComponent, SofImageCheckboxComponent, SofInputStepperComponent, SofModalComponent, SofNavPanelComponent, SofPipeModule, SofProgressBarComponent, SofRadioCardComponent, SofSegmentedControlComponent, SofSelectComponent, SofSimpleAlertComponent, SofSkeletonLoaderComponent, SofSnackbarComponent, SofSsnPipe, SofStarRatingComponent, SofSubNavigationComponent, SofSvgLoaderComponent, SofTabsComponent, SofToastComponent, SofUtilityButtonComponent, SoftheonErrorHandlerService, SsoGatewayEntryService, SsoGatewayModel, States, TextOverflowEllipsisTooltipDirective, ThemeModule, ThemeService, ToastService, TypedSession, USER_ENTITY_SERVICE_CONFIG, UserEntityService, UserEntityServiceConfig, ValidationKeys, WINDOW, httpVerb, initializerFactory, keyPathPrefix, languageStorageKey, newGuid, pascalToCamel, preSignInRouteStorageKey, removeMenuRole, routeToPreLoginRoute, sessionBasePathFactory, userInitialsPipe };
7501
7613
  export type { AccountManagementAssertionModel, AccountManagementResponseModel, Address, AlertBannerColors, AlertBannerConfig, AlertBannerContext, AssertedUserModel, BadgeTooltipData, BannerActionButtonConfig, BaseConfig, BottomSheetData, BrandingModel, Breadcrumb, ButtonBadgeConfig, ButtonData, ButtonToggleData, ButtonToggleTooltipData, CalloutActionButtonConfig, Chip, ConfigurationParameters, ConfirmAddressCountyChangeData, ContactInfo, ContextMenuItem, County, CreateCacheEntryRequestModel, CustomWorkFlowActionEvent, EntityConfigBase, EntityDto, ErrorModel, ErrorReference, Extension, Finance, Folder, FolderLink, HandleInput, HeaderConfig, HeaderExternalLinks, HeaderLanguageSettings, HeaderSettings, HeaderThemeSettings, HeaderUserMenuData, HttpVerb, ISamlRequest, ISamlResponse, ISsoResponseModel, IdentityProfile, MarketSelection, MobileHeaderNavSettings, NavBadgeUpdate, NavNode, NavNodeAvailableBadge, NavNodeBadgeConfig, NavPanelLogo, NavPanelNode, NavPanelSettings, NavigationAdvancedSettings, NavigationConfig, NavigationSettings, NavigationThemeSettings, OAuthModel, OidcAuthSettings, Person, Policy, PreferencesRow, Profile, ResizeEvent, RetrieveCacheEntryResponseModel, SegmentedControlData, SelectOption, SessionGetResponseModel, SessionPostRequestModel, SessionPostResponseModel, SessionPutRequestModel, SessionPutResponseModel, SessionResponseModel, SettingsProfile, SiteMapConfig, SiteMapLink, SiteMapNode, SkeletonAnimation, SkeletonBarChartDirection, SkeletonChartType, SkeletonShape, Snackbar, SofDatePipeFormat, Styles, SubNavNodes, SubNavigationData, SubdomainConfig, TabNavLink, ThemePaletteColorsModel, ThemePaletteModel, ToastModel, TrackingModel, UpdateCacheEntryRequestModel, UserFeedback, ValidationRecordsRow };