@onecx/angular-accelerator 6.11.1 → 6.12.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.
|
@@ -450,13 +450,22 @@ class ManualBreadcrumbsTopic extends Topic {
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
let BreadcrumbService = class BreadcrumbService {
|
|
453
|
+
get itemsSource$() {
|
|
454
|
+
this._itemSource$ ??= new ManualBreadcrumbsTopic();
|
|
455
|
+
return this._itemSource$;
|
|
456
|
+
}
|
|
457
|
+
set itemsSource$(source) {
|
|
458
|
+
this._itemSource$ = source;
|
|
459
|
+
}
|
|
460
|
+
get itemsHandler() {
|
|
461
|
+
this._itemsHandler ??= this.itemsSource$.pipe(map((manualBreadcrumbs) => manualBreadcrumbs.menuItems));
|
|
462
|
+
return this._itemsHandler;
|
|
463
|
+
}
|
|
453
464
|
constructor() {
|
|
454
465
|
this.router = inject(Router);
|
|
455
466
|
this.activeRoute = inject(ActivatedRoute);
|
|
456
467
|
this.translateService = inject(TranslateService);
|
|
457
|
-
this.itemsSource$ = new ManualBreadcrumbsTopic();
|
|
458
468
|
this.generatedItemsSource = new BehaviorSubject([]);
|
|
459
|
-
this.itemsHandler = this.itemsSource$.pipe(map((manualBreadcrumbs) => manualBreadcrumbs.menuItems));
|
|
460
469
|
this.generateBreadcrumbs(this.activeRoute.snapshot);
|
|
461
470
|
this.router.events
|
|
462
471
|
.pipe(untilDestroyed(this), filter((e) => e instanceof NavigationEnd))
|
|
@@ -465,6 +474,9 @@ let BreadcrumbService = class BreadcrumbService {
|
|
|
465
474
|
this.generateBreadcrumbs(root);
|
|
466
475
|
});
|
|
467
476
|
}
|
|
477
|
+
ngOnDestroy() {
|
|
478
|
+
this._itemSource$?.destroy();
|
|
479
|
+
}
|
|
468
480
|
generateBreadcrumbs(route) {
|
|
469
481
|
if (route?.data['mfeInfo']) {
|
|
470
482
|
const breadcrumbs = [
|
|
@@ -5500,11 +5512,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
5500
5512
|
}] } });
|
|
5501
5513
|
|
|
5502
5514
|
class PortalDialogService {
|
|
5515
|
+
get eventsTopic() {
|
|
5516
|
+
this._eventsTopic$ ??= new EventsTopic();
|
|
5517
|
+
return this._eventsTopic$;
|
|
5518
|
+
}
|
|
5519
|
+
set eventsTopic(source) {
|
|
5520
|
+
this._eventsTopic$ = source;
|
|
5521
|
+
}
|
|
5503
5522
|
constructor() {
|
|
5504
5523
|
this.dialogService = inject(DialogService);
|
|
5505
5524
|
this.translateService = inject(TranslateService);
|
|
5506
5525
|
this.router = inject(Router);
|
|
5507
|
-
this.eventsTopic = new EventsTopic();
|
|
5508
5526
|
this.skipStyleScoping = inject(SKIP_STYLE_SCOPING, { optional: true });
|
|
5509
5527
|
this.remoteComponentConfig = inject(REMOTE_COMPONENT_CONFIG, { optional: true });
|
|
5510
5528
|
this.appStateService = inject(AppStateService);
|
|
@@ -5524,7 +5542,7 @@ class PortalDialogService {
|
|
|
5524
5542
|
}
|
|
5525
5543
|
ngOnDestroy() {
|
|
5526
5544
|
this.cleanupAndCloseDialog();
|
|
5527
|
-
this.
|
|
5545
|
+
this._eventsTopic$?.destroy();
|
|
5528
5546
|
}
|
|
5529
5547
|
openDialog(title, componentOrMessage, primaryButtonTranslationKeyOrDetails, secondaryButtonTranslationKeyOrDetails, extrasOrShowXButton = {}) {
|
|
5530
5548
|
const dialogOptions = typeof extrasOrShowXButton === 'object'
|